My questions is while writting descriptve programming, lets
take flight reservation.
Line1: systemutil.Run "D:\Program Files\Mercury
Interactive\QuickTestProfessional\samples\flight\app\flight4
a.exe"
dialog("text:=Login").WinEdit("attached text:=Agent
Name:").Set "mercury"
dialog("text:=Login").WinEdit("attached
text:=Password:").Set "mercury"
dialog("text:=Login").WinButton("text:=OK").click
window("text:=Flight Reservation").Activate
window("text:=Flight Reservation").ActiveX
("acx_name:=MaskEdBox").Type "111111"
window("text:=Flight Reservation").WinComboBox("attached
text:=Fly From:").Select "Frankfurt"
window("text:=Flight Reservation").WinComboBox("attached
text:=Fly To:").Select "London"
window("text:=Flight Reservation").WinButton
("text:=FLIGHT").Click
window("text:=Flight Reservation").dialog("text:=Flights
Table").WinList("text:=From").Select "13536 FRA 08.00AM LON
08.45AM SR $163.00"
window("text:=Flight Reservation").dialog("text:=Flights
Table").WinButton("text:=OK").Click
window("text:=Flight Reservation").WinEdit("attached
text:=Name:").Exist
window("text:=Flight Reservation").WinEdit("attached
text:=Name:").Set "sagar", Now i m getting the error in the
last line. it is not accepting the WinEdit("attached
text:=Name:")
Please do solve this urgent...! and i want to know how to
insert additional properties for an object and which
properties we need to select from the object spy.

Answers were Sorted based on User's Feedback



My questions is while writting descriptve programming, lets take flight reservation. Line1: syste..

Answer / sushil

Because the property Attached Text for ********"Static -
Class:" ****** is also "Name" which is the same
for "WinEdit -Name:-" .So QTP needs additional properties
to recognize
.Give windowid as additional property
IUt will work fine

Is This Answer Correct ?    1 Yes 0 No

My questions is while writting descriptve programming, lets take flight reservation. Line1: syste..

Answer / bfakruddin

window("text:=Flight Reservation").WinEdit("attached text:=Name:","window id:=1014").Set "sagar"

just replace your last step with this you will get it.

you have to provide sufficient information to QTP to identify object on application. QTP Failed to identify object with only property "attached text:=Name:"

that need some more information, by giving window id it feels satisfy and perfomed action what you did.

you have to learn few more about QTP,

Is This Answer Correct ?    1 Yes 0 No

My questions is while writting descriptve programming, lets take flight reservation. Line1: syste..

Answer / g.jaipalreddy(cil testing team

u have to add windowid for your last step
after adding application will not dissplay any error message

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

How will you check that a variable is an array in vbscript?

0 Answers  


Which data type/types are supported by vbscript language and what are their specialties?

0 Answers  


who will create the object?

0 Answers   TCS,


What is the use of the date function in the vbscript language?

0 Answers  


Difference between Do while loop and while wend loop

1 Answers  






Inorder to avoid Message box while writing script which alternative method can be used?

1 Answers  


Here in my automation tool, i am retreiving some values and i need to store this values in the excel. How can i achieve this?. We are using VBA as scripting language. please let me know if you require any further inputs.

1 Answers  


Which operator can be used to check if two numbers are equal or not in vbscript?

0 Answers  


How many data types are supported in Vbscript?

3 Answers   Microsoft,


Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

0 Answers  


Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.

0 Answers  


The function template cocept is implemented in vb.net is ???

0 Answers  


Categories