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.
Answer Posted / 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 |
Post New Answer View All Answers
What is the difference between VBScript and JavaScript?
What is the purpose of regexp object in vbscript?
write any ttest cases using check points and parameterization
What is event handling in vbscript?
What is the difference between a dictionary and an array?
How to write functions and sub in vb script?
Explain about tristate constants in vbscript?
What is difference between vbscript and vba?
Explain about the functionality of vb script?
What is select case statement?
What is the main difference between function and sub-procedure?
Explain the arrays in vb script?
who will create the object?
What's the difference between vbscript and vb.net?
What is loose binding? Why is it not a good practice to use it?