Can any one give me some basic VB script used in QTP ?As i
am new in QTP.Give sample VB script used in QTP? PLZ
Answer Posted / dhana
first of all u need to add Objects in u r Application on
which u want to perform Operations to Object repository.
For ex:u need to Add Browser,Page,Frame,Webedit
(Username,Password),webbutton objects to objectRepository
then once u write "Browser" in Expert view,QTP
automatically vl popup the Browsername so as for page and
for Subsequent objects also...
for ex:
Browser("Browsername").Page("Pagename").frame
("Framename").webedit("Username").set 12345
Browser("Browsername").Page("Pagename").frame
("Framename").webedit("Password").setsecure asdahsxcasjd2362
Browser("Browsername").Page("Pagename").frame
("Framename").webbutton("Login").click
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
distinguish between old version and new version QTP features.
How do you delete unwanted results in qtp?
How many types of actions are there in quicktest professional?
Should have experience in framework means?
one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.
How will you test a keyboard?
Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??
In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.
I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.
How many types of recording modes are there?
Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?
Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance
Explain sub procedure of vbscript.
What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);
How can we retrieve the Bug Ids which are open&Reopen in status through QTP scrit?Please find the script which i tried... Dim objBugFactory, objBug Dim BugId Set TDConnection = QCUtil.TDConnection Set objBug = TDConnection.BugFactory If QCUtil.IsConnected then Reporter.ReportEvent 0, "Connected", "Connected to server: " + QCUtil.TDConnection.ServerName + chr (13) +"Project: " + QCUtil.TDConnection.ProjectName + chr (13) + "Domain: " + QCUtil.TDConnection.DomainName Reporter.ReportEvent 0, "Current time on server is","==>" & TDConnection.ServerTime Else Reporter.ReportEvent 1, "Not connected", "Not connected to Quality Center" End If If mybug.Status="Open" Then BugId=mybug.DefectId MsgBox BugId End If 'OR**********************************--------------------- -----********************************** If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then BugId=Bug_Fields("BG_BUG_ID").Value MsgBox BugId End If