how to write the descriptive programming in QTP for
loginwindow.without using Step generator,object repository
for referecnes
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / kishorekumar.byreddy
Dim lg,an,pwd,ok
set lg=decription.create()
set an=decription.create()
set pwd=decription.create()
set ok=decription.create()
lg("text").value="LOGIN"
an("attached text").value="AGENT NAME:"
pwd("attached text").value="PASSWORD:"
ok("text").value="OK"
Dialog(lg).activate
Dialog(lg).winedit(an).set"kishore"
Dialog(lg).winedit(pwd).setsecure"mercury"
Dialog(lg).winbutton(ok).click
i think this is the perfect to login descriptive 2nd method
this is very importent, every company prefer to this method
in realtime also, so please carefull
any queries on this please send to this
mail "kishorekumarbyreddy@gmail.com"
and this my num: 09811244850
Is This Answer Correct ? | 6 Yes | 3 No |
Answer / grsmrc2118@yahoo.com
hi you can write it by taking assistance from objectspy and
looking at methods and properties
dialog("text:=login).activate
dialog("text:=login).winedit("attachedtext:=agent
name:").set "mayur"
dialog("text:=login).winedit
("attachedtext:=password").setsecure "*********************"
dialog("text:=login").winbutton("text:=OK").click
but the better answer in interviews is explain that it is
hard to remember all the methods so by taking assistance
from object spy we are going to write
regards
naidu
Is This Answer Correct ? | 4 Yes | 9 No |
what are the functions availabla in QTP? what are the data types in QTP?
what is the long form of QTP ?
How to use regular expression in descriptive programming?
How to attach a file to TD?
How to import excel sheet to QC?
Apart from VB script What are the fundamental criteria to gain the knowledge to write QTP script without OR and recording ?
how to retrieve the column headers in database using vbscript statement in QTP
What are default add-ins in qtp?
How many ways we can parameterize data in QTP?
How to get the column count and column name from the resultset in the database connection program?
I have two actions in my QTP test and two iterations in my DataSheet. I want to execute the Action 1 for the two iterations only after which i want to exceute the next Action2. How is this possible?
What is the diffrence bettween QTP 9.0 and QTP 9.1?