how we connect oracle or sql data server database to qtp.

Answer Posted / ram

open qtp-->click record

In Insert Menu-->OutputValue-->Database Output value--
>select specify query manually radio button-->and click at
create button->click new-->select sqlserver from the popup
and click next-->next

u will get connection
DSN=database;UID=username;Trusted_Connection=Yes;APP=QuickTe
st Professional;WSID=computername;

and write sqlstatement

select columnid from tablename (dont put * instead of
columnid)

then automatically the below line is added in qtp
DbTable("DbTable").Output CheckPoint("DbTable")
and do remaining stuff.

u need some more clarification please send the mail to
i.krishna@rediffmail.com

Is This Answer Correct ?    10 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

1650


How many add-ins comes by default with quicktest professional?

627


Explain calling sub procedure.

713


Is it possible to switch between recording modes during a test creation?

680


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

1695






How many number of actions possible in qtp?

693


How to test login module with different username and password by using data driven testing in QTP?

719


What is Associate Repository in QTP 9.2 ?

687


How can i click on any Excel sheet's "H" column with out writing coordinates Ex:Window("Book1").WinObject("Book1").Click 498,14 I dont want to give coordinates like 498,14 Can i open "H" column by writing like Ex:Window("Book1").WinObject("Book1").Click "H" or Ex:Window("Book1").WinObject("Book1").Click "H","1" or Ex:Window("Book1").WinObject("Book1").Click H,1 If i want to click on "Sheet3" of an excel sheet, Can i open like Ex:Window("Book1").WinObject("Book1").Click "Sheet3" Please help me any one

1709


Why to use descriptive programming?

658


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?

634


How to interact tool & application build in QTP?

1555


how will load the object during runtime?

1672


What are the different kinds of test steps?

659


Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?

1784