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

What is quicktest professional (qtp window?

592


What are the five challenges you faced in QTP?

2754


what r the main attributes of test automation?

1480


Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek

1571


Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out

1584






what type of run time errors you get while you ar edoing rpg program?

1513


What are the automation metrice in your project?

1714


Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ

1535


Write a script to customize the test results in PDF and HTML format.

2085


Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)

3220


Hi, My name is kishan. I have good Conceptual Knowledge on QTP. In order to Boost up my Confidence Level, I want to do a Project oriented Training only on QTP in Hyderabad. Kindly Let me know which is the Best QTP Project Training Institute in Hyderabad. Thanks in Advance kishan

2058


in a web page hoe to check the dynamic links that rechabging with out using regular expressions

1781


If u r using library files (Instead of Check Points) , How do u do bitmap check ?

1455


Explain how qtp identifies object?

613


How will internal and external links be validated and updated? how often?

639