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 the object spy in quicktest professional (qtp) 8.0 version?

733


An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?

801


can the activities of test case design be automated?

1658


Explain xml checkpoints.

854


Hi, Can we open a test in qtp10 which is saved in qtp 9.2?

1670


How to replay a script in qtp?

839


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

1758


Anybody plz give, How do you test aframe in a web page? If page cotain text message or Images, tables?

1854


Hi. I have completed B.TECH(CS) , But I will go to "SECURITY CONSOLE OPERATING" [C.C CAMERA abservation]. IF interviwer asks " Why you choose this job ?" What we will say? urgent.........................urgent...........

1684


Should have experience in framework means?

1635


What is a reusable action?

754


What is throw object?

2028


What are the ordinal identifiers in web page?

847


How do client side image and server side image work?

1608


What is clean sweep?

1605