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
Key word driven framework
Hello Everyone, Please provide me the practical example of business component concept of QTP.Like how to create business component,how to connect the quality center etc.... Thanks in advance, Gaytri
Write a QTP script to enter a keyword in to Google search engine?
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?
How can I check if a environment variable exist or not?
before launching qtp, we need to close all the open browsers u dont know what are all the browsers either it might be ie,mozilla etc and u dont know how many brosers are open.... u need to close all these before launching qtp.. can anyone plz temme d solution...
What is the expert view?
Explain step generator in qtp?
Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?
Name the properties you would use for identifying a browser and page when using descriptive programming?
What are the different types of action?
What is checkpoints for quicktest professional (qtp)?
How will internal and external links be validated and updated? how often?
What are the different types of functions available in qtp and explain ?
Hi ,Can any one pleas explain how to test splash objects using QTP?