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

can any one give me the doccument how to test aproject developed in java language in qtp can here can we use the general vb scripting or we have to use java script here if we have to ese the java script here can any one send me the manual for it means how to write descriptive programming for it thanks in advance

1 Answers  


How does qtp identify the object in the application?

0 Answers  


Hi, I got some difficulties in automating a web check box in a peoplesoft application. Let me explain the scenario, When clicked on a look up button in the application, it navigates to a new page with check boxes and respective options. Below is the source code for one check box and its option. <input type='checkbox' name='H1AU_BUNDLE_WRK_H1AU_SELECT_CH$2' id='H1AU_BUNDLE_WRK_H1AU_SELECT_CH$2' tabindex='34' value="Y" onclick="this.form.H1AU_BUNDLE_WRK_H1AU_SELECT_CH$chk$2.valu e=(this.checked?'Y':'N');submitAction_win0 (this.form,this.name);" /> </td> <td align='left' class='PSLEVEL1GRIDODDROW' > <span class='PSEDITBOX_DISPONLY' >$29 - $29 Cap with FREE Mobile</span> I want to parametrize using "$29 - $29 Cap with FREE Mobile". I am not aware of how to parametrize this. Currently I am parametrizing with 'H1AU_BUNDLE_WRK_H1AU_SELECT_CH$2' Can any one please help me out with this??/

0 Answers  


Does UNIX support QTP? If not what is the other tool used for Unix environment?

2 Answers   Amdocs, Fidelity,


What is vulnerability?

1 Answers   CTS,






I have a WebEdit Object.It is added in object repository.It has two properties Name and Index.In the next release the Name Property is same but the index property is changed.when i run the script will the script Pass or Fail

9 Answers   ADP,


why don’t use real time they r not using check points

1 Answers   Wipro,


plz can any one send me what is Automation Testing Frameworks.. Thanks in advance

1 Answers  


can any one tell me what is syntax error in line msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist 'code ************** Call login("lal="," " ) wait(5) Call errormsg("Invalid email address. [?]" ) Function errormsg(msg) msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist if msgexist then Reporter.ReportEvent micPass,"enter valid username or pwd ",msg else Reporter.ReportEvent micFail, "entered valid uname and pwd",msg end if End Function

5 Answers  


if i have 10 actions and out of 10 actions last 3 actions i renamed will my script exicute sucesfuly r not? changed actions where i can see?

1 Answers   IBM, Infosys,


after click on compose mail how can we attached a file in qtp with vbscript code

0 Answers  


Tell me the situations where we will use Data Driven?

2 Answers  


Categories