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

when will you do debug your script? and explain that process?

1453


How will you report the bug and explain the defect tracking sheet you handled?

2556


I have some real time based question.. 1.what are the challenges you have faced in your current project. 2.what are the bugs you found in your current project. 3.what are the strategies you follow to convert manual test cases into automation test cases. 4.how QTP identify two different browsers. 5. When you create a function library and share object repository what are the problems you have faced 6. How to solve the tool tip problem 7.what are the interesting bug you have found in your current project. 8.what is your daily work as a automation test engg. 9. how to create a weekly status report. 10. how many test cases you write,review and execute per day. 11.what are the uses of SQL in automation. 12.How to retrieve the data in html through vb script. 13.If application is very slow how to test the application in qtp.

3571


What is checkpoint in qtp?

552


Explain qtp(quick test professional)?

583






How to use conditional loops in qtp ?

589


Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution

1667


Can the user toggle between using Local OR and shared OR for the same action?

564


Can we record using all the modes in a single script? Explanation with example is appreciated

1390


in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?

1359


can any one say that where we can download the QTP trail version ??????????

1364


how to explain a claims and insurance project?

1750


Explain different types of checkpoints?

562


How to interact tool & application build in QTP?

1462


what is profile tool?

1609