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

QTP script is not working on other's machine..

1531


How will you compare keyword and expert view?

524


Can we record an application running on a remote machine using qtp?

719


The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)

2800


Diff b/w Health care domain and Banking Domain?

4211






What is the use of running the scripts in Hidden-mode in UFT?

680


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

1834


Explain runtime dynamic settings?

2022


X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?

1499


what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”

1486


1.explain end to end process of qc,2.how many tabs are in qc9.0,qc10.0 3.what is review, how many reviews are following in aproject 4.how will you get the requirements 5.why do we choose testing 6.how to export tc's and requirements to qc through add-ins

1430


What are main panes available in qtp test browser?

531


i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api

1488


What are the technics follow in writing VB script?

1529


What are the views available in qtp?

581