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
QTP script is not working on other's machine..
How will you compare keyword and expert view?
Can we record an application running on a remote machine using qtp?
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)
Diff b/w Health care domain and Banking Domain?
What is the use of running the scripts in Hidden-mode in UFT?
hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.
Explain runtime dynamic settings?
X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?
what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”
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
What are main panes available in qtp test browser?
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
What are the technics follow in writing VB script?
What are the views available in qtp?