write a qtp script to enter user name & password for flight
reservation login page from excel sheet
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 |
i have 100 manual test cases, how to automate from no 1. ols detail steps
How to change the run-time value of a property for an object?
Which environments does qtp support?
What are table and db checkpoints?
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…..
What does VBS file contain?
how to open Excel sheet & write in it & save it?
How to merge the two object repositories
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?
What is keyword driven framework, what is "key" in It.
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,