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,sheetid)
pwd=Datatable.value(rowid2,sheetid)
Browser().page().webedit().set username
Browser().page().webedit().set pwd
Browser().page().webbutton.click

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!

1439


How are cgi programs, applets, javascripts, ActiveX components, etc. to be maintained, tracked, controlled, and tested?

701


How do you compare the structure of 2 tables in database and check whether they are similar using qtp.

1478


Explain advantages and disadvantages of ddf?

603


Can you list some technologies that support qtp?

554






Explain how to use QTP to check broken links on a page?

589


Hi, Can we open a test in qtp10 which is saved in qtp 9.2?

1438


how to idetfy which test cases are automated?who will deside that plz tell me

1538


What are the 3 main stages involved in testing with qtp?

561


can the activities of test case design be automated?

1456


what is the diff between manual test plan document and automation test plan doc.can u explain indetail.

1645


Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you

1447


Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?

1230


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

1497


Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,

1382