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

Where is the Bitmap checkpoint information stored?

1977


Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?

1745


What is 'sleep' in sync point?

831


what type of framework u r using in ur organization

1842


i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.

1642


Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay

2849


Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji

2489


What are the disadvantages of recording test cases in qtp?

808


Can we record using all the modes in a single script? Explanation with example is appreciated

1615


Explain different types of checkpoints?

780


How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet

1793


after click on compose mail how can we attached a file in qtp with vbscript code

1876


can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?

1631


How does you pass optional arguments in qtp?

779


What are the features and benefits of quick test pro (qtp 8.0)?

794