Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 to scroll down a page while recording in qtp. suggest me any method apart from low level recording.

0 Answers  


Differentiate javascript and vbscript?

0 Answers  


Explain the operator precedence in vb script?

0 Answers  


what is extension of the file if its saved from recovery manger to some drive

1 Answers  


Explain about adodb.stream class?

0 Answers  


Hi, Anybody could tell me What is the script for Reverse of Given number. Ex:236--632. Thanks in Advance..

10 Answers   Amazon, CSC,


Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?

0 Answers  


what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?

0 Answers   Estuate,


I want to count the total no of links present in yahoo home page. The script like Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo!India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing But while running the script it is fail (the object not present in the object repository).How to overcome please tell me the detail steps...for QTP9.30

1 Answers  


which is the bset training centre to learn automation tools?

2 Answers  


Explain the support of asp for vb script functionality?

0 Answers  


How will you get a random number between 0 and 1 in vbscript?

0 Answers  


Categories