Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Data Base Testing using QTP 9.2.

This is a discussion on Data Base Testing using QTP 9.2. within the SQL forums, part of the Databases category; i want o know the steps involved in testing a DATABASE using QTP 9.2. thanks in advance!!! raj...

Go Back   Geeks Talk > Databases > SQL
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 11-05-2007
Contributing Member
 
Join Date: Aug 2007
Posts: 70
Thanks: 12
Thanked 10 Times in 8 Posts
raj1402 is on a distinguished road
Data Base Testing using QTP 9.2.

i want o know the steps involved in testing a DATABASE using QTP 9.2.

thanks in advance!!!
raj
Reply With Quote
The Following User Says Thank You to raj1402 For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 11-22-2007
Moderator
 
Join Date: Sep 2007
Location: Chennai, INDIA
Posts: 406
Thanks: 2
Thanked 197 Times in 91 Posts
sridharrganesan has a spectacular aura aboutsridharrganesan has a spectacular aura aboutsridharrganesan has a spectacular aura about
Re: Data Base Testing using QTP 9.2.

For doing database validation using QTP you have to do the following
a. Insert database check points to validate the records as per the specifications
b. You can write the SQL queries in QTP to do the retrieval, insertion, updation or deletion of records.
c. QTP scripts has to be written along with the SQL queries for doing database testing
Reply With Quote
  #3 (permalink)  
Old 11-22-2007
Expert Member
 
Join Date: Oct 2007
Location: Mumbai
Posts: 354
Thanks: 4
Thanked 58 Times in 47 Posts
bizzzzzare will become famous soon enough
Smile Re: Data Base Testing using QTP 9.2.

Hi Raj,

Database testing using QTP would look something like this -

DSNLess
dim sCon
dim sRec
set sCon = CreateObject("ADODB.Connection")
sCon.Provider = "Microsoft.Jet.OLEDB 4.0"
sCon.connectionString = "DataSourceName = ;UserId = ;Pwd = ;InitialCatalog="
sCon.Open
set sRec = CreateObject("ADODB.Recordset")
sRec.Open "Select * from Table_Name {Conditions}",sCon, adOpenDynamic

Get the individual values stored in sRec using a for loop.

sRec.fields(0) - would fetch the first value stored in the sRec Object.

Cheers.....
Reply With Quote
Reply

  Geeks Talk > Databases > SQL

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Data -driven testing in qtp gouthami123 QTP 5 07-15-2009 03:35 PM
Data Migration Testing dsharma Testing Issues 8 06-18-2008 02:26 PM
How to create dimensional tables in data base Geek_Guest Data Warehousing 3 08-24-2007 10:40 AM
Data base check point it does not connect to SQL bluemoonbala WinRunner 0 08-12-2007 05:21 AM
data streams in xml testing sharmilak Web Testing 0 03-08-2007 01:36 AM


All times are GMT -4. The time now is 09:00 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved