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
who QTP recognizes the object stored in object repository?
How you will rate urself in QTP in the range of 0 to 5
assume i have few url link how will i dynamically call then using descriptive programming?
Explain advantages and disadvantages kdf?
I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?
give me the code to save all messages of inbox of gmail into a folder and notepad
You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?
what is review
What is quick test pro? What is a quick test professional?
What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)
What are the different recording modes and how do they work?
Name the different types of recording modes?
how to post xml data from QTP scripts to any application?
What is file database?
Is there any relation between Keyword Driven Framework and Recording modes provided in QTP( whether Recording modes are applied on keyword driven framework or not?)