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 |
Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?
Is it possible to change the name of a test object. I mean when we are recording the script for an object (for Ex: Username is a text field which has value "Babu",i am recording that). Then the Name of the object will become "Babu" in object repository. If i want to change "babu" as "xxxxx" .. is it possible to do? Pls help me in this .. if you didn't understand the question, pls let me know.
In descriptive programming how we know the properties of the objects, if application is not developed and the prototype of the application is also not developed.
how will load the object during runtime?
hi i have one doubt i have 4 yrs exp in testing and iam working one mnc in north but i have completed my degree correspodene is the companies are accept in south side some people are tellig they won't agree but i need correct answer plz let me know which companies are taking and not taking thanks in advance
How i can change shared repository to per test repository in qtp
Can you tell me the differences between writing the VB script manually for a application and recording the same application in QTP , with a example?
if there r 10 windows open in QTP write a command to close all 10 windows at a time ?
what is the hierachy of Descreptive programming?
i'm using QTP 8.2. A person using QTP 9.0 sends me a QTP TestScript, same when i try to open , an error comes "unexpected file format". Why?? and how to resolve the problem??
what is debugging testing?
Explain the terms test and business component?