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

write a VBscript code to parametrize test script using test
data from sqlserver database?

Answer Posted / rajh

dim con,rec
set con=create object("adodb.connection")
set rec=create object("adodb.recordset")
con.open"provider=sqloledb.1;server=name;username=scott;pwd=tiger;database=dbname'
rec.open"sql statement"con
while not rec.eof
window("winmame").winedit("uname").set rs.fields(un)
in the same way use the data
loop

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to break the object spy ?

1148


What are the steps involved in recovery scenario wizard?

947


How many number of actions possible in qtp?

996


How to customize qtp?

994


How QTP identify the system time that's changes every seconds?

1006


Does quicktest professional (qtp) is unicode compatible?

973


what you mean by artifact,milestone...

1938


What does mean by Scope of Automation?n How we defined it?

1993


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?

1000


What is the difference between run time object and test object in QTP?

1003


what is profile tool?

2153


Hi ,Can any one pleas explain how to test splash objects using QTP?

2320


What is text/text area checkpoint?

1009


What is RTM (require ment tracebulity marix) fromate?

1990


How to execute a winrunner script in quicktest professional?

981