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. |
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...
|
|||||||
|
|||
|
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 |
| The Following User Says Thank You to raj1402 For This Useful Post: | ||
| Sponsored Links |
|
|||
|
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 |
|
|||
|
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..... |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |