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
How to use actions in qtp ?
Why script error occur in between recording in qtp?
hi to all, i need a code.. in flight application 1.i need to login first then i need to insert 3 new orders... 2.i have to log out 3.i have to login again with different user 4.need to insert 2 new orders 5.then need to log out 6.then again login with different user 7.3 new orders create and log out 8.but we hv to do this using data table and actions please help me
How many types of recording modes in the qtp?
Explain types of descriptive programming?
Is it possible to use two instances of UFT on the same machine? If not why?
How to create runtime property for an object?
How to create a standard checkpoint ?
What is file database?
What are the different kinds of test steps?
Is the qtp course will help to create a virtual object?
How do you configure QTP AND Test director?
Can we record using all the modes in a single script? Explanation with example is appreciated
Explain the difference between call to action and copy action?
how to know no.of mails in our g mail by using vb-script