how can i parameterize a login page by using database
parameterization i fetch the username and password from
database and put this on login page and click on ok button.
so how can we write script for that code please let me know
asap
thanks
Answer Posted / shaveta
rc=datatable.GetSheet("Global").GetRowCount
For i=1 to rc
datatable.GetSheet("Global").SetCurrentRow(i)
systemutil.Run"C:Program FilesHPQuickTest Professionalsamplesflightappflight4a.exe"
With dialog("Login")
.Activate
.WinEdit("AgentName:").Set(datatable.Value("UID","Global"))
.WinEdit("Password:").Set(datatable.Value("password","Global"))
.WinButton("OK").Click
End With
window("Flight Reservation").Close
Next
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.
What is the file extension of the code file and object repository file in QTP?
what is meant by Implicit and explicit requirements?
How you will rate urself in QTP in the range of 0 to 5
How to creating an output value using quicktest professional (qtp)?
what are the challenges you have faced while testing web based application using the automation tools ?
Is QTP supports Unix. If yes, then how the test automation is done?
Difference between test object and run time object?
Explain types of output values?
When to use shared and local object repository?
What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?
Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?
regular expression in qtp standar check point for months from accepting months from january to december only
Can any suggest me what is exposure testing?
How many lines of code in each script of QTP?