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 / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is vbscript language a case-sensitive language and what does it mean?

756


What is vbscript?

798


How regexp.execute method works?

811


How do you declare a variable in vbscript?

824


What are the naming conventions while declaring a variable in the vbscript language?

821


Write a Script for ATM in QTP

3573


Which event is triggered when mouse focus comes out of an element in the vbscript language?

697


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

3236


How will you get a combined string from array of string in vbscript?

728


How to declare an array in vbscript?

876


Explain the asc function?

678


Does VB/Win make standalone .EXE files?

3117


What is vbscript language used for and which earlier language is it modeled upon?

741


What are the 2 ways in which a variable can be declared in the vbscript language?

787


What is the technology used by vb script?

727