GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing Tools  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 97 of 684    Print  
how to invoke a databse application for database testing?

  
Total Answers and Comments: 2 Last Update: July 08, 2007     Asked by: Mann 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: mckreddi
 
Hi All,

Set cnn=CreateObject("ADODB.Connection")
cnn.Open("Connection String")
set buffer1=cnn.execute("Querry")

while not buffer1.eof
value1=buffer1("Column_Name")
-----
----

buffer1.MoveNext

wend

Above answer was rated as good by the following members:
Ritik1008
January 28, 2006 04:00:24   #1  
saurabhdeswaltavant Member Since: December 2005   Contribution: 10    

RE: how to invoke a databse application for database t...


testconnection( Select * from emptable )

Function testconnection(query)

Set cnn CreateObject( ADODB.Connection )
Set rs CreateObject( ADODB.Recordset )
cnn.ConnectionString DRIVER {Oracle in OraHome92};SERVER servername;UID userid;PWD pwd;DBQ dbinstance
cnn.open

rs.open query cnn
rs.movefirst

for i 0 to rs.fields.count
msgbox rs(i)
next

End Function

by

Vknowth


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
July 08, 2007 06:43:02   #2  
mckreddi Member Since: December 2006   Contribution: 1    

RE: how to invoke a databse application for database t...
Hi All

Set cnn CreateObject("ADODB.Connection")
cnn.Open("Connection String")
set buffer1 cnn.execute("Querry")

while not buffer1.eof
value1 buffer1("Column_Name")
-----
----

buffer1.MoveNext

wend

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

Operates stand-alone, or integrated into Mercury Business Process Testing and Mercury Quality Center. Introduces next-generation “zero-configuration” Keyword Driven testing technology in QuickTest 
Latest Answer : Object spy is used in QTP for Descriptive Programming. to Identify the Object properties ...

Answer posted by shreethik on 2005-06-09 08:36:38: Output values enable to view the values that the application talkes during run time.When paramaterised, the values change for each iteration.Thus by creating 
Latest Answer : By using Text Output value we can capture a runtime value form the application under test and store it in a variable or in a localsheet ...

Latest Answer : BEST APPROACH IS TO USE SHARED OBJECT REPOSITORY.REASON: PROCESSOR SPEED IS GOOD IN SHARED OBJECT REPOSITORY, SINCE DIFFERENT BUSINESS OBJECTS CAN SHARE THE SAME OBJECT REPOSITORY.PER ACTION: IS GOOD WHEN WE ARE USING THE TOOL FIRST TIME FOR PRACTICAL ...

IF we use batch testing.the result shown for last action only.in that how can i get result for every action.

Latest Answer : In SWE section u need to addAutomationEnable = TRUE and at the same time you need to use SWECmd= AutoOn in the URL ...

In order to fetch test data from Database we have to create a adobdb connection object to connect with data base. the syntax is .... >CreateObject("Adodb.connection").  
Latest Answer : Hai Const adOpenStatic = 3Const adLockOptimistic = 3Const adUseClient = 3Set objCon=CreateObject("ADODB.Connection") Set objRec=CreateObject("ADODB.Recordset")objCon.Open "DRIVER={Oracle in OraHome92};SERVER={Servername};UID={Username};PWD={Password};DBQ={Dbnmae}"objRec.CursorLocation ...

how 
Latest Answer : yes u can but it will be done thru scripting. ...
Read Answers (2) | Asked by : vinay

If you have the same application screen with 7 drop down boxes and approximately 70 values how do you test with QTP?
Read Answers (2) | Asked by : damo

These are the new features which are available in QTP8.2 and which are not present in 6.5 version.Keyword View: Lets you easily build and maintain tests without writingVBScripts.Auto-Documentation: Provides 
Latest Answer : Really great help,Thanks ...
Read Answers (2) | Asked by : James

Hi,I am new to QTP, please tell me how to invoke an application in QTP.Forexample:In winrunner we use syntax's like "web_url_valid, web_browser_invoke", like the same way i want in QTP.Else please let me know where can i find these syntaxs in QTP.
answer? 
Read Answers (3) | Asked by : ganesh


 Sponsored Links

 
Related Articles

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

Performing XSLT Transformations inside the Database

Performing XSLT Transformations inside the Database Now that you have the employees XSL stylesheet stored in the database and the xmlusr schema is permitted to access the hr employees table you can create a script that will instruct the database to build an HTML page based on the data stored in hr e
 

Moving All the XML Processing into the Database

Moving All the XML Processing into the Database In the preceding example the database server performs only a part of the XML processing while the rest is still performed by the PHP engine Specifically the database server generates an employees XML document based on the records from the hr employees
 

Performing XML Processing inside the Database

Performing XML Processing inside the Database When building XML enabled applications on top of Oracle there are many advantages to performing the XML processing inside the database when compared to performing it on the client The key advantages to perform XML processing inside the database are as fo
 

SQA Software and Tools

SQA Software and Tools In quality assurance it is always important to get all the help we could get In other industries developers could easily check the products manually and discard those that do not meet the standard The length and the width of the product are checked to maintain standardization
 

Application Development in .NET

ASP NET 2 0 Tutorials Application development in NET Client Side Application Development Client applications are applications that run on the client system or the desktop of the user They are closest to the traditional windows based applications and they display forms or windows on the desktop enabl
 

N-Tier Application Partitioning

N Tier Application Partitioning Application partitioning is a vital process as it provides one with the opportunity to clearly define an even distribution of an application s presentation process and key data components without which you may find yourself feeling quite lost The components may be dis
 

N-Tier Application Manageability

N Tier Application Manageability While it is a fact that N Tier applications tend to provide almost limitless scalability the desire to change or add new forms of functionality can present a challenge in more than one arena Growth on a large scale can make capacity planning quite hard When available
 

Business Network Virtual Communication Tools

Business Network Virtual Communication Tools Since ages the Business community heavily relied on face to face communication for building Business relationships Face to face communications formed the basis for trust in a relationship An individual’ s appearance or the physical appearance of
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape