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
How software tester can use constants and variables in scripts?
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
There is an excel file of 1 to 100 sheets how you will iterate through it?
How to execute a winrunner script in quicktest professional (qtp)?
How to change the priorities of the recovery scenario properties?
We stored into the objects OR and then write the scripting
How to write business scripts using object repository with different scenarios
Does quicktest professional (qtp) is unicode compatible?
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?
Explain sub procedure of vbscript.
How you debug your script?
what difference between runtime object and text object and what property they have. whether they have same properties or different properties.
what is the difference betn QTP 8.0 AND PREVIOUS VERSION
In qtp, how you can exit for loop?
How do you compare the structure of 2 tables in database and check whether they are similar using qtp.