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
Explain about datafile/verification of date file when file is not available in local system?
How to add verification steps to tests?
What is an expert view and keyword view?
How to use conditional loops in qtp ?
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?
What are the different types of recovery operation?
hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?
What are the differences between quicktest professional (qtp) and winrunner?
Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.
What are the challenges u faced in testing with crm domain? How u overcome with?
What is qtpro? What is quick test pro?
Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this
How do client side image and server side image work?
what could go wrong with test automation?
How did you resolve conflicts present in Object Repository?