GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing Tools  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 628 of 684    Print  
Database verification
what is Database verification in QTP?


  
Total Answers and Comments: 2 Last Update: August 28, 2008     Asked by: smitha27 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 27, 2008 16:57:39   #1  
Manoj.Srinivas Member Since: August 2008   Contribution: 2    

RE: Database verification
Use this piece of code:

Set mConnection CreateObject( ADODB.Connection )
mConnection.Open Provider SQLOLEDB.1;Data Source ;Initial Catalog <>CATALOG USERNAME PASSWORD
set rs CreateObject( ADODB.recordset )
rs.Open select EMP_NAME from EMP where FileId 'MANOJ' mConnection
sString rs.GetRows(1 0)

MS

 
Is this answer useful? Yes | No
August 28, 2008 09:32:15   #2  
dhanasekars Member Since: August 2008   Contribution: 1    

RE: Database verification
This is simlar to verification of data manually instead here we use QTP to automate the process
This is done by connecting to DB using ADODB connection used Record set collection to manipulate the data

I think the other reply gives the code to connect to DB

Thanks
Dhanasekar S

 
Is this answer useful? Yes | No

 Related Questions

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

Latest Answer : Hi All,Set cnn=CreateObject("ADODB.Connection")cnn.Open("Connection String")set buffer1=cnn.execute("Querry")while not buffer1.eofvalue1=buffer1("Column_Name")---------buffer1.MoveNextwend ...
Read Answers (2) | Asked by : Mann

Hi,what is the procedure of doing SQL/database testing?Is a tester suppose to create procedures,functions,views,triggers etc?
Read Answers (2) | Asked by : mann

Latest Answer : the syntax of Database Check point isDbTable.check checkpoint("DbTable")DbTable is nothing but Data Table which contains all info.regarding databaseRegardsNag ...
Read Answers (2) | Asked by : shital

What is the pre-requisites for XML check point and Database check point in QTP,and what should checked, plz need clear description with an example
Read Answers (1) | Asked by : rajkumar

I have faced one question in interviewhe has given one screen with one bitmap and one edit box.The original bitmap is in data base.Question is first we get the bitmap from database and compare with the screen bitmapHow we can get the bitmap from database.
Read Answers (1) | Asked by : chvenu

When a script is recorded in quick test for connecting 10 rows in the database, can we change script later for 20 rowseither using vbscripting or from front-end can we make that particular change? If 'yes' how?
Read Answers (1) | Asked by : Din Shaw

How to retrive/update database by writing code in expert viewIn my case database is Accessmy dsn name="try"database name="employee.mdb"

Latest Answer : '---------------------------------------------------------------------------------------'Name: OpenConnection'Function: Opens a connection to the required database'Input Parameter:  strDriver, strServer, strUserID, strPassword' strDriver => ...
Read Answers (4) | Asked by : Murali


 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
 

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&rsquo; s appearance or the physical appearance of
 

What are Data Access Tools

Data access is the process of entering a database to store or retrieve data. Data Access Tools are end user oriented tools that allow users to build structured query language (SQL) queries by pointing and clicking on the list of table and fields in the data warehouse. Thorough computing history, t
 

What is Operational Database

Operational Database is the database-of-record, consisting of system-specific reference data and event data belonging to a transaction-update system. It may also contain system control data such as indicators, flags, and counters. The operational database is the source of data for the data warehouse
 

Evolution of database systems

The Evolution of Database systems File Management System Hierarchical database System&nbsp; Network Database System&nbsp; Relational Database System File Management System: The file management system also called as FMS in short is one in which all data is stored on a singl
 

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