ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
how we connect oracle or sql data server database to qtp.
 Question Submitted By :: B.susant Achary
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how we connect oracle or sql data server database to qtp.
Answer
# 1
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 ?    0 Yes 0 No
Ram
 
  Re: how we connect oracle or sql data server database to qtp.
Answer
# 2
You may try:

Dim rs,sq,pkey
set conn=createobject("adodb.connection")
set rs=createobject("adodb.recordset")
' Oracle client is required to be installed on your box
conn.open= "Provider=OraOLEDB.Oracle.1;Password=***;Persist
Security Info=True;User ID=****;SERVER=****;Data
Source=****;DBQ=****;"
sql="your sql"
rs.open sql,conn

rs.close
set rs=nothing

conn.close
set conn=nothing
 
Is This Answer Correct ?    0 Yes 0 No
Mohit
 
 
 
  Re: how we connect oracle or sql data server database to qtp.
Answer
# 3
Hi Ram I was your answer for this. Can you kindly let me
know in details steps on How we can connect to database. i
am using QTP9.2 and SQL Server Database. I am new for QTP
and this would be of great help.Thanks
 
Is This Answer Correct ?    0 Yes 0 No
Deepu
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Can any one tell the different properties and values of differnt objects like Browser,Page,link,webedit,webcombobox,webradio botton,webcheckbox and web button.Because I am facing a lot of problems in interviews with Descriptive Programing.I never worked on web Application...Pls help any one as soon as possible....  1
when we right click on the desktop of any operating system we find a menu , consisting of refresh,edit,open,paste and cut etc... how to load the object and object properties of that menu in QTP iFlex2
How can i find out any "text's" coordinates in excel sheet For example: I want to know the coordinates of "F" Column in the excell sheet While recording when i clicked on F column it is showing the coordinate values 385,9 but with out recording how can i find out them Suppose i want to clik on "H" column writing the script like this Window("Book1").WinObject("Book1").Click (...........) Here I Dont know what (x y )values should i enter Please any one can help me? Livetek1
Explain about Hybrid Framework IBM2
WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP? CTS7
How can we retrieve the links from a web page where links are dynamically changing(for eg take a online shopping website) and then we have to click on all the links present in the webpage and go to the repective pages and again come back to the first page..  2
What does VBS file contain...??? what is VBS file.. ??? GE4
Batch testing in howmany ways u perfrom in QTP Lehman-Brothers2
How to Test Dynamic links ? Wipro2
Can u Reduce the size of Object repository? What are the problems u have faced in Qtp tool? IncRev2
what is defination of regression testing?  2
what is the Exact Meaning of Environment Variables? AppLabs7
Syntax for how to call one script from another? and Syntax to call one "Action" in another?  2
what is Business Process Testing plz explain? iFlex5
In QTP 8.2 there are lot of check points is this same in latest version QTP 9.5 ?  1
How you test the object which is dynamically changes its location? Wipro6
i am trying to capture the URL from the open browser and store it. pls give me solution how we can do this in QTP. thanks  2
Login to flight app, in window flight reservation set the date field and select flyfrom as Frankfurt and verify whether flyto list box has the item FrankFurt, log the results. Cap-Gemini1
what is frame work of qtp? ITC-Infotech3
What type of error u will get if u have not installed java add in in java project? what is the error name ? Verizon1
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com