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
Explain the differences between table and db checkpoints?
How to call a test from another test?
What is the extension of qtp local repository?
Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.
How to open a new test using quicktest professional?
Can we run test with out adding object in object repository? How it is possible?
How to export quicktest professional (qtp) results to an .xls file?
How to execute a winrunner script in quicktest professional (qtp)?
How many types of object repository in qtp?
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
What is the short cut keys for the following?
"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...
how to write xml output check point bu useing descriptive programing .means without useing output check point
how could i download qtp in which i get add-in support for 'oracle' is there any way to get it? i finding but not getting pls help me out :)
How does qtp identify the object in the application?