Prepare for your Next Interview
This is a discussion on Database checkpoint within the QTP forums, part of the Software Testing category; Hi friends, I have a scenario, When user is registered his name and e-mail id is saved in database "tempuser" table, now i have to insert a database checkpoint ...
|
|||
|
Database checkpoint
Hi friends,
I have a scenario, When user is registered his name and e-mail id is saved in database "tempuser" table, now i have to insert a database checkpoint for checking this new data.But problem is if i add a database checkpoint when editing my script, it shows only static data (which is already in table) and i don't need it all, then what will be it's dynamic query and steps using which i can verify my new data which first inserted into table and then checked in the same script.
__________________
Brijesh Jain brijesh.tester@yahoo.co.in http://softwaretestingexpertise.blogspot.com |
| The Following 3 Users Say Thank You to jainbrijesh For This Useful Post: | ||
| Sponsored Links |
|
|||
|
Hi
Use Environment variables or datatable to retreive values for your query.Screen shots for this are attached. Then your job is simple , you just have to change values for your environmental variables/Datatable cells to change the DB checkpoint properties. |
|
|||
|
Dynamically, I think, a query is to be written. I have experience with Rational Robot and with that experience , I can say:
1) With textcheck point, we can capture login name and emailid.(combination of login name and email id is supposed to be unique.i.e two users with same login name and email id can not register twice) 2) Make the query like: select "loginname" from "temptable" where "loginname"="text captured through textcheckpoint" and "password"="password captured through textcheckpoint". 3) If query returns "loginname"="text captured through textcheckpoint", then inserted text to form have been inserted to required table "temptable' else inserted text not found in required table "temptable" I think, this logic should work. Thanks, Debasish Pradhan, Noida Last edited by deba2002 : 01-24-2008 at 03:55 AM. |
|
|||
|
Re: Database checkpoint
I know how to use database checkpoint in qtp. Press the Insert button and click on checkpoint now select database checkpoint. It will open a new window in the new window select the radio button for sql query and right the sql query to open a database table like:
select * from table1 before writing this query select your database. U may also do some change in the database. When u run your test it will show the expected and actual result. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Checkpoint failed | Lokesh M | QTP | 4 | 06-13-2008 12:48 PM |
| XML Checkpoint and Accessibility Checkpoint | Lokesh M | QTP | 1 | 02-28-2008 05:34 AM |
| Standard Checkpoint | pravinspatil | QTP | 2 | 11-21-2007 02:49 AM |
| Database Checkpoint dynamic query | spore | QTP | 2 | 09-24-2007 04:03 AM |
| Webpage / Frame Checkpoint | Lokesh M | QTP | 4 | 12-11-2006 01:00 PM |