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,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

How we can import data from database?

1203


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 ,

1863


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

2017


what is the difference btn risks & Therads in the Test plan documentation?

2110


can the activities of test case design be automated?

1873


Is the qtp course will help to create a virtual object?

1948


How to Test the mainframe application?

2354


Explain features of the latest version of qtp/ uft 12.1?

1048


What is the syntax to call one script from another?

1033


Give me some real time point of way where exactly we can conduct audits?

1899


What is the file extension of the code file in qtp?

975


Name the different types of recording modes?

1018


What is the basic concept of quicktest professional?

1028


how to find that tools work well with your existing system?

1855


i need qtp tutorial. pls send it to sridhar.k151@g mail.com

2067