In Descriptive programing if i use this below code will it
work for login window or flight Res Window. Shud i add the
properties like attached text=login and text=Agent Name in
the object repository and define a new object first. Pls
tell me the procedure in clear inorder to execute this
script.
Dialog("title:=Login").WinEdit("attached text:=Agent
Name:").set"agent123"
Dialog("title:=Login").WinEdit("attached
text:=Password:").set"mercury"
Dialog("attached text:=Login").winbutton("text:=OK").click

Answer Posted / sagar

We can do the Dialog("text:= login").WinEdit("attached text:= Agent Name:").set "user name"

Do the rest

We can use Dialog("text:= login")
Ok

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I recorded a Web App with a Oracle backend using QTP 9.5 and for some reason the scripts don't play back> What am I missing at this point. I recorded the same Apps under Sybase and they work great. This is Oracle 10g. Why won't my scripts play back.

1517


Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,

1348


Tell some commonly used Excel VBA functions?

605


How can I use Call dlls in QTP ?

1794


Explain in brief about the quicktest professional automation object model?

519






Did QTP prove efficient for your project? Yes or No, explain?

6119


How may types of defects identify application or your currently working application?pls give me answer..

1517


hi all here i have tab named "Workbench" By clicking on "workbench" tab.it displays 4 tabs like below workbench common cargo commercial charter "common" tab have 10tabs inside,"cargo" tab also haveing 15 tabs inside and remaining two tabs also having few tabs inside. when clicked on "common" tab.it displaying the script like tab("workbench").select"common" if i clicked on "cargo".it displaying the script like tab"workbench_2").select"cargo" if i clicked on "commercial".it displaying the script like tab"workbench_3").select"commercial" if i clicked on "charter".it displaying the script like tab"workbench_4").select"charter" I have used a "FOR LOOP" for common,commercial,cargo,charter tabs.it was stopped at second tab SO, CAN I RECOGNIZE "WORKBENCH_2,_3,_4" AS A SINGLE VARIABLE if not, can anyone plese help me to solve this

1518


Plz Explain AUTOMATION REFERENCE MODEL?

1686


What are the different types of recording modes?

542


Explain QTP using different development techniques ?

542


How is test case write?

576


How do you know the location Id of an object if you know its index id?

594


How many types of parameters are available in quicktest professional (qtp)?

587


what type of run time errors you get while you ar edoing rpg program?

1515