Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain the differences between table and db checkpoints?

945


How to call a test from another test?

1293


What is the extension of qtp local repository?

948


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.

1906


How to open a new test using quicktest professional?

967


Can we run test with out adding object in object repository? How it is possible?

1015


How to export quicktest professional (qtp) results to an .xls file?

1096


How to execute a winrunner script in quicktest professional (qtp)?

888


How many types of object repository in qtp?

1037


What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?

1043


What is the short cut keys for the following?

1052


"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...

1927


how to write xml output check point bu useing descriptive programing .means without useing output check point

2059


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 :)

1766


How does qtp identify the object in the application?

899