Geeks Talk

Prepare for your Next Interview




Can "Database Checkpoints" be executed in demo Flight Application

This is a discussion on Can "Database Checkpoints" be executed in demo Flight Application within the QTP forums, part of the Software Testing category; Friends, Can "Database Checkpoints" be executed on the demo Flight Application. If yes, please illustrate them in detail. But, I did not find any database, except the notepad file which ...


Go Back   Geeks Talk > Software Testing > QTP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-06-2008
Junior Member
 
Join Date: Sep 2007
Location: Bengaluru
Posts: 16
Thanks: 2
Thanked 1 Time in 1 Post
ravisuriya is on a distinguished road
Can "Database Checkpoints" be executed in demo Flight Application

Friends,

Can "Database Checkpoints" be executed on the demo Flight Application. If yes, please illustrate them in detail. But, I did not find any database, except the notepad file which displayed the information, in a table format.

If I can't practice them on the demo application, give me an example so that I can practice the "Database Checkpoints".

I am waiting for your replies.....

Thank you,
Ravisuriya
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-06-2008
Junior Member
 
Join Date: Sep 2007
Location: Bengaluru
Posts: 16
Thanks: 2
Thanked 1 Time in 1 Post
ravisuriya is on a distinguished road
Re: Can "Database Checkpoints" be executed in demo Flight Application

I tried it out as below:

1. Mentioned the 'Connection String' (DSN).
2. Selected the table 'Orders'.
3. In the displayed table information, selected a Customer_Name in grid. Later, selected radio button Constant in 'Configure value' frame which had value '1'.
4. Clicked on OK in the the Database Checkpoint Properties dialog.
5. Ran the test.
6. Result was displayed as Pass.


The same I tried using by choosing radio button Parameter in 'Configure value' frame by selecting the global sheet option. The customer name was displayed in the column.

Later, I added few more names, among which were already present in the table and few which were not present.

It failed, since the login dialog descriptive program written was in search of 'Login' dialog. Since, the login dialog was not displayed, test failed.




My doubt is,

a) Whether, what I done is right ?
b) How to parameterize this for more customer name or any other column value ?
c) How to continue with the other parameter left over in the data table, for database check point ?
c) How to confirm the result of database checkpoint apart from the test result summary displayed ?
Reply With Quote
  #3 (permalink)  
Old 03-07-2008
Junior Member
 
Join Date: Dec 2007
Location: Bangalore
Posts: 4
Thanks: 0
Thanked 2 Times in 1 Post
sachin_prasi is on a distinguished road
Re: Can "Database Checkpoints" be executed in demo Flight Application

Record the flight application by inserting one record into the order table.
1). Goto insert,checkpoints,database checkpoints.
2) click the specify sql statment manually then click next.
3) Click create button then select machine data source from the toolbar,then select your database name QT_Flight32 from the list and click ok.
4) Type select * from orders in the SQL statement text box then finish.
5) select the entire table or one single row or single column from yor table.Then click ok.
6) Stop record.
7)Goto database of flight32 and delete one record from the orders table.
8)Run the application now your script should fail because you have deleted one record from the database and it will not match with the expected result.
For example if your expected result contains 20 orders and if u are deleting that record from the database your script will fail.


Please go through this and if u have any more post it.
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Remove an application without "uninstall/Remove" option anushya Windows 7 10-18-2008 02:42 PM
systemutil.run "IEplore.exe","URL" is opening 2 browsers Geek_Guest QTP 2 10-09-2007 06:01 AM
difference b/w "group by" and "order by" ? jainbrijesh SQL 9 07-07-2007 02:40 AM
"No scriptable protocol found" recording a Delphi application using session script frankly Rational Robot 0 06-06-2007 05:50 AM
Waht is "testing application in vb.net/java" in black box testing? spd15 Testing Issues 2 04-19-2007 08:40 AM


All times are GMT -4. The time now is 08:15 AM.


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