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                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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 ?    4 Yes 2 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 ?    4 Yes 2 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 ?    1 Yes 1 No
Deepu
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Difference between image checkpoint and bitmap checkpoint  2
Hi,The question is write a script for the following scenario. scenario:in a job portal i entered QTP 3yrs testing then click search button.then it displays results like Test lead bangalore (here is a checkbox). Test lead hyderabad check box so on... question is if test lead position in bangalore then checkbox shld be enabled automatically.. Thatavarti-Technologies3
what type of scripts are asked in qtp?  2
w is descriptive programming TCS2
Diff b/w Test Design and Test case design? What is the Design Review's and Code Review's. When will you conduct tese reviews?  1
How to connect to data base?  2
how to record a word doc using qtp i.e open a word doc,type something and save the doc can someone send me the code.  2
Which Databases supports for QTP?  2
After running scripts how you report results ,there is any specific report form Novartis4
Give me exact application where we should use low level recording? CTS5
How to open an application through scripting?  9
explian qtp frame work and what is the use of it? what is the neceecity of this? explian detail?  2
How can we change the .mtr file to .tsr file and vice-versa Wipro2
How to retrive XML file data in QTP ? using Script(Chandana) Wipro5
I am having trouble understanding #1 how to paramaterize a userid and password that I need to call in about 25 existing scripts. I need to know how to Create a Reuseable action for 25 existing scripts that will call the exact same userid and password? I need to know how to create a Reuseable action and then have it called by existing scripts being run in a batch.  1
HI. Plz Clarifie my doubt,having 2+yrs experience in Testing , But My accedamics(Xth,INTER) are Less than 60%, But B.Tech 72%. It creats any problem , When i change to any MNC. plz tell me......... lot of friends told it's a problem, Some people says NO problem, What .............  3
Can anybody give the script of below things. 1. Add sheet 2. Adding columns 3. Set the values in that columns(In the rows) 4. Close the sheet 5. How can we create 3 sheets in one Excel sheet?? TCS2
what r the executing modes in QTP  2
what is the advatages of merging of object repositories in Qtp9.0 TCS2
Tell me the QTP Advantages and Disadvatages ? Accenture3
 
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