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

I need Major Help with a Script I recorded in QTP 9.5. I am recording scripts for a Web-based application(s) I have all the URLs for each application in Excel spreadhsheet so that QTP can pull that particular application from the spreadsheet and run it. The problem is QTP isn't recognizing one particular URL so when I hit run in QTP to run this script it opens the internet Explorer but isn't open the URL I have in the Excel spreadsheet. I've retyped the URL and still QTP won't open this Particular one for some reason. The site its self is working fine but for whatever reason QTP won't open it. How do I resolve this? I have a deadline of next Friday the 7th to complete this task so please help me in any way you can. Thanks in advance

1939


For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?

817


hou can we use vb script in qtp could u tell me breafly

1968


how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

2181


What are the technics follow in writing VB script?

1738


explain structured testing? plz guys with exp. do answer

1657


What do you mean by checkpoints in qtp?

795


What are the different attribute used with regular expression?

751


Explain sub procedure of vbscript.

800


Discuss quicktest professional (qtp) environment?

797


How to connect to a database?

825


Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)

2061


how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?

1547


write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..

2072


What is the registration process and examination fees?

797