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

i have 100 manual test cases, how to automate from no 1. ols detail steps

1 Answers  


How to change the run-time value of a property for an object?

3 Answers   Crea,


Which environments does qtp support?

0 Answers  


What are table and db checkpoints?

0 Answers  


How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..

0 Answers  


What does VBS file contain?

1 Answers  


how to open Excel sheet & write in it & save it?

1 Answers   InTech,


How to merge the two object repositories

3 Answers   Wipro,


How to connect to the Database from QTP?

10 Answers   DB, Thatavarti Technologies, Xchanging,


Can u Reduce the size of Object repository? What are the problems u have faced in Qtp tool?

2 Answers   IncRev,


What is keyword driven framework, what is "key" in It.

2 Answers   IBM,


I have multiple radio buttons i need to select a radio buton and i dont want to hard code i have a generic function for it there i have used select#0 so it selects first radio button but for other script i want to select the 4th radio button how i can make it still more generic

4 Answers   Accenture, Acentia, LM,


Categories