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
How we can import data from database?
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 ,
I need to obtain the parent of an object programatically, so if I have: winButton("aButton") I need to obtain the parent part: window("Window1").Dialog("Dialog1") so I can programatically create a string of the full name of the object to call it with an execute statement in QTP I would like to use something like: part[1] = "window(""Window1"")" part[2] = "dialog(""Dialog1"")" so I can do: exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")" Execute exeLine Apart from keeping a record of the window/dialog hierarchy is there a parent or path function/ command Thanks Adrian
what is the difference btn risks & Therads in the Test plan documentation?
can the activities of test case design be automated?
Is the qtp course will help to create a virtual object?
How to Test the mainframe application?
Explain features of the latest version of qtp/ uft 12.1?
What is the syntax to call one script from another?
Give me some real time point of way where exactly we can conduct audits?
What is the file extension of the code file in qtp?
Name the different types of recording modes?
What is the basic concept of quicktest professional?
how to find that tools work well with your existing system?
i need qtp tutorial. pls send it to sridhar.k151@g mail.com