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 / pravati

Rowcount=Datatable.Getsheet(shtid).getrowcount
for i=1 to rowcount
Datatable.Getsheet(shtid).setcurrentrow(i)
username=Datatable.value(rowid1,shtid)
pwd=Datatable.value(rowid2,shtid)
Browser().page().webedit().set username
Browser().page().webedit().set pwd
Browser().page().webbutton.click
next

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?

1625


What is the syntax to call one action in another?

557


What is qtpro?

597


How does quicktest professional identifies the object in the application?

555


How to explain a banking project in interview as a test engineer???

2599






In what occasion we can specify global sheet and action sheet?

570


How many types of recording modes in qtp?

592


How to customize qtp?

614


Hi All, I need code for how to execute qtp scripts from excell sheet

1467


What is test object?

706


Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!

2453


How can you give wait up to 10 seconds in qtp?

588


What are the Disadvantages of shared object repository?

573


Hi,All How to create a link in excel sheet using qtp

3003


how can i pass a "cript"as a parameter in to a function

1462