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

Hi cud you plz answer my question.. what is the size of Object Repository?

8 Answers   TCS,


Is there a function to find the number of occurrences of sub strings within a string?

1 Answers  


What is keyword view and Expert view in QTP?

1 Answers   Crea,


if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column which is worked for both edit and delete..how to write script for the button to test both operation on the web table using desriptive programing.. plz help me on script wheather using getroproperty Q2)what is the command for taking valiue from a web table in qtp

6 Answers   Logica CMG,


What is parameter in qtp?

0 Answers  






how interviews will be on QTP?

0 Answers   Fidelity,


what is exacltly TIERS ?

0 Answers  


Hi Friends, while playing the recorded test i am getting this error "Cannot identify the object "q" (of class WebEdit). Verify that this object's properties match an object currently displayed in your application." error is coming in this line of code "Line (2): "Browser("Google").Page("Google").WebEdit("q").Set "airtel broadband"". " .... please tell me how to overcome this problem. need help asap... Thanx in advance

3 Answers  


1. In build1 there is a page with two check boxes and a submit button. You have prepared a script for that page and its working fine. In Build 2 the developers have added two checkboxes in the page. Will the script prepared for Build 1 work for Build 2 or not. If yes, why and if No, why. Remember the developers have not touched the object properties of the textboxes in the page.

3 Answers   ADP,


what is the difference between window command and dialog command

1 Answers  


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

0 Answers   ABC, scintel,


In Test Director bug rEPORTS, wHAT ARE THE CONTENTS(fIELDS)? iF yoU PREAPARE BUG REPORT IN eXCEL sHEET , hOW U SEND TO dEVELOPMENT TEAM THRW T.D?

1 Answers  


Categories