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 / 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 |
Post New Answer View All Answers
How can the spaces from the string be removed?
What is variant in vb script?
How can constants be declared in the vbscript language?
How to write VB script for login module?
Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository
Is vbscript language a case-sensitive language and what does it mean?
What is loose binding? Why is it not a good practice to use it?
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
how to operate webobjects in a webpage using getobject function and then using generic methods?
How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz
What is the purpose of on error resume next statement?
Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?
Mention the rules for using option explicit statement?
Is VB Script Case sensitive or Case insensitive?
Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?