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



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

Answer / 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

More QTP Interview Questions

How you will rate urself in QTP in the range of 0 to 5

0 Answers   Genpact,


What are the types of data tables in qtp?

0 Answers  


what is main diff of qtp8.2 and qtp9.0?

1 Answers   Covansys,


for a test in QTP i had choose the object repository as shared.after completion of some days i want to conduct the same test again,now the question is HOW TO LOAD THE OBJECT REPOSITORY. is it possible by descriptive programming.could any one tell me how many ways we load it and what is the process?

13 Answers   Logica CMG,


what is smart identification in qtp? pls any give details? thanks in advance

3 Answers   IBM,






How can you pass value one action to another action?

0 Answers  


1. In build1 there is a page with two check boxes and a submit button. You have prepared a script for that page and its working fine. In Build 2 the developers have added two checkboxes in the page. Will the script prepared for Build 1 work for Build 2 or not. If yes, why and if No, why. Remember the developers have not touched the object properties of the textboxes in the page.

3 Answers   ADP,


How to import a test case present in ".xls" file to TD under a Test set?

0 Answers  


What is the entry criteria and exit criteria for your test automation

2 Answers   HP, Virtusa,


what is the difference between seat and concerent licenses.

3 Answers   AppLabs, TCS,


how can i replace any text from the qtp script with some anothere text

1 Answers   Livetek,


HOW to invoke any recorded script in QTP with out using RECORD & PLAYBACK CONCEPT?

1 Answers  


Categories