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...

write a qtp script to enter user name & password for flight
reservation login page from excel sheet

Answer Posted / mudaseer

Set xl=createobject("excel.application")
Set wb=xl.workbooks.open("C:\hello.xls")
Set ws=wb.worksheets(1)
un=ws.cells(1,1)
pwd=ws.cells(1,2)
wb.close
xl.quit
systemutil.Run "C:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight4a.exe"


With dialog("login")
.WinEdit("Agent Name:").Set un
.Winedit("Password:").Set pwd
.WinButton("OK").Click
End With

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?

2079


What is action?

997


Differences between text and test area checkpoints?

1124


what is run-time data?

2194


What is optional step in qtp? How you can add optional step in qtp?

983


Explain object spy in qtp.

1083


how to find that tools work well with your existing system?

1871


How to handle dynamic objects in quicktest professional (qtp)?

954


Through array we can execute the testcase how ? give me example

1907


Name the different types of recording modes?

1034


whow much strong on VB and C?

1944


What is Test Fusion Report in QTP?

1177


please post the interview questions for QA position in FACTSET

4452


after click on compose mail how can we attached a file in qtp with vbscript code

2186


Analyzing the checpoint results?

1037