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 use actions in qtp ?

778


Why script error occur in between recording in qtp?

2002


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

1971


How many types of recording modes in the qtp?

827


Explain types of descriptive programming?

819


Is it possible to use two instances of UFT on the same machine? If not why?

832


How to create runtime property for an object?

1689


How to create a standard checkpoint ?

748


What is file database?

1876


What are the different kinds of test steps?

806


Is the qtp course will help to create a virtual object?

1721


How do you configure QTP AND Test director?

1701


Can we record using all the modes in a single script? Explanation with example is appreciated

1620


Explain the difference between call to action and copy action?

730


how to know no.of mails in our g mail by using vb-script

1989