Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How software tester can use constants and variables in scripts?

2184


can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?

2027


There is an excel file of 1 to 100 sheets how you will iterate through it?

940


How to execute a winrunner script in quicktest professional (qtp)?

893


How to change the priorities of the recovery scenario properties?

1103


We stored into the objects OR and then write the scripting

1971


How to write business scripts using object repository with different scenarios

1850


Does quicktest professional (qtp) is unicode compatible?

962


Explain the concept of object repository and how quicktest professional (qtp) recognises objects?

1006


Explain sub procedure of vbscript.

994


How you debug your script?

1004


what difference between runtime object and text object and what property they have. whether they have same properties or different properties.

2138


what is the difference betn QTP 8.0 AND PREVIOUS VERSION

2405


In qtp, how you can exit for loop?

952


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

1883