Geeks Talk

Prepare for your Next Interview




Database checkpoint

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 ...


Go Back   Geeks Talk > Software Testing > QTP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 12-29-2007
Moderator
 
Join Date: Sep 2006
Location: Delhi (India)
Posts: 864
Thanks: 12
Thanked 81 Times in 65 Posts
jainbrijesh is on a distinguished road
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
Reply With Quote
The Following 3 Users Say Thank You to jainbrijesh For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 01-17-2008
Expert Member
 
Join Date: Jul 2007
Location: Kolkata
Posts: 110
Thanks: 6
Thanked 7 Times in 7 Posts
animesh.chatterjee is on a distinguished road
Re: Database checkpoint

why dont u use a RO property..
I guess this property is more dynamic and reliable...
Reply With Quote
  #3 (permalink)  
Old 01-24-2008
Junior Member
 
Join Date: Nov 2007
Location: Pune , Maharashtra , India
Posts: 27
Thanks: 2
Thanked 2 Times in 2 Posts
manabh is on a distinguished road
Thumbs up Re: Database checkpoint

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.
Attached Images
File Type: jpg SourceProp.JPG (17.5 KB, 72 views)
File Type: jpg ConnStrProp.JPG (18.5 KB, 58 views)
Reply With Quote
  #4 (permalink)  
Old 01-24-2008
Junior Member
 
Join Date: Jan 2008
Location: Noida, India
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
deba2002 is on a distinguished road
Smile Re: Database checkpoint

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.
Reply With Quote
  #5 (permalink)  
Old 05-29-2008
Junior Member
 
Join Date: May 2008
Location: hyderabad
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sheerazsultana is on a distinguished road
Re: Database checkpoint

can you tell me how to test database in QTP (hyrachially) im new to testng .
thank you
Reply With Quote
  #6 (permalink)  
Old 08-12-2008
Junior Member
 
Join Date: Aug 2008
Location: chennai
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sabari7285 is on a distinguished road
Re: Database checkpoint

Ya i am also new to testing and the database testing some one expalin the framework of the database tesingand the the DB cehckpoint in the QTP
Reply With Quote
  #7 (permalink)  
Old 08-14-2008
Junior Member
 
Join Date: Jun 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
vikas.kr18 is on a distinguished road
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.
Reply With Quote
  #8 (permalink)  
Old 08-23-2008
Junior Member
 
Join Date: Aug 2008
Location: india
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
venkibab is on a distinguished road
Re: Database checkpoint

can you tell me how to test database in QTP im new to testng .
venki
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP


Thread Tools
Display Modes


Similar Threads

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


All times are GMT -4. The time now is 04:13 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved