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


Please Help Members By Posting Answers For Below Questions

Explain about datafile/verification of date file when file is not available in local system?

2230


How to add verification steps to tests?

9130


What is an expert view and keyword view?

574


How to use conditional loops in qtp ?

591


I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?

599






What are the different types of recovery operation?

555


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?

1586


What are the differences between quicktest professional (qtp) and winrunner?

574


Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.

2427


What are the challenges u faced in testing with crm domain? How u overcome with?

1489


What is qtpro? What is quick test pro?

564


Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this

2068


How do client side image and server side image work?

1392


what could go wrong with test automation?

1507


How did you resolve conflicts present in Object Repository?

1617