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

Answers were Sorted based on User's Feedback



In Descriptive programing if i use this below code will it work for login window or flight Res Win..

Answer / 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

In Descriptive programing if i use this below code will it work for login window or flight Res Win..

Answer / praveen

Please try with the below answer

dialog("Login").Activate
Dialog("title:=Login").WinEdit("attached text:=Agent
Name:").set"agent123"
Dialog("title:=Login").WinEdit("attached
text:=Password:").set"mercury"
Dialog("title:=Login").winbutton
("text:=OK","regexpwndtitle:=OK").click

u dont have attached text property for Dialog in flight
reservation.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

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

0 Answers  


Is there any site to download QTP....otherwise tell me the way how to get the QTP sofware??????????????????? Thnx in advance

5 Answers   Cegonsoft,


How does you test a weblink which is changing dynamically?

0 Answers  


How do u fetch data from a database ?

2 Answers  


Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution

0 Answers   CFC,






How to recognise the webelement and verifying that webelement is enabled?

0 Answers  


How do we Access, retriew and edit the runtime objects in Automation Testing using QTP

3 Answers   IBM,


Did you use flatfiles in your projects?At what situation you used it?How can you upload flatfiles?

1 Answers  


Tell me about userdefined functions ?

1 Answers  


what are the difference between qtp8.2 to 9.0 surya

1 Answers   Bally Technologies,


write is the code for regular expression in QTP

2 Answers   IBM, Infosys,


How many types of recording modes in qtp? Which will be used when?

0 Answers  


Categories