how to write the descriptive programming in QTP for
loginwindow.without using Step generator,object repository
for referecnes
Answer Posted / shyam.meghansh
how to write the descriptive programming in QTP for
loginwindow.without using Step generator,object repository
for referecnes
V can write Descriptive program in two different ways
Type 1:
SystemUtil.Run "C:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight4a.exe","","C:\Program
Files\Mercury Interactive\QuickTest
Professional\samples\flight\app\","open"
Dialog("Text:=Login").WinEdit("Attached text:=Agent
Name:").set "shyam"
Dialog("Text:=Login").WinEdit("Attached
text:=Password:").set "mercury"
Dialog("Text:=Login").WinButton("text:=OK").click
Type 2:
SystemUtil.Run "C:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight4a.exe","","C:\Program
Files\Mercury Interactive\QuickTest
Professional\samples\flight\app\","open"
Set login=Description.Create()
login("text").value="login"
Set agentname=Description.Create()
agentname("Attached text").value="Agent Name:"
Set password=description.Create()
password("Attached text").value="Password:"
Set ok=Description.Create()
ok("text").value="OK"
Dialog(login).winedit(agentname).set "shyam"
Dialog(login).winedit(password).set "mercury"
dialog(login).winbutton(ok).click
If any other questions mail me
testingwithshyam@gmail.com
Is This Answer Correct ? | 17 Yes | 1 No |
Post New Answer View All Answers
How to test background color and dynamic images during run time can you put the check point for moving objects?
Explain about the test fusion report of quicktest professional (qtp)?
What is the syntax for how to call one script from another?
how did u use automating testing tools in ur job?
Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?
how to create flat file datasubmission in qtp
What are the recording modes in qtp?
How are actions and functions different in QTP?
how interviews will be on QTP?
How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.
How to find operating system information using the qtp script?
What is the limitation to XML Checkpoints?
Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.
How to add verification steps to tests?
how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer