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

How to open a new test using quicktest professional (qtp)?

527


What is keyword view?

560


Is it possible to switch between recording modes during a test creation?

588


Explain different recording modes?

578


Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?

1687






Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance

1519


Which functionalities of QTP used in banking project?

1917


Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?

1227


What is Associate Repository in QTP 9.2 ?

595


Is it possible to call win runner script in qtp?

623


How many types of Automation frameworks are there in UFT? Describe them.

554


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

2425


What is the purpose of loading qtp add-ins?

621


What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????

1715


What are the different types of functions available in qtp and explain ?

562