0% found this document useful (0 votes)
31 views27 pages

Quick Test Professional (QTP) : QTP Session On 17-Oct-2007 by Yogita

This document discusses different types of checkpoints in QuickTest Professional (QTP). Checkpoints are verification points that compare actual values during testing to expected values. The main types of checkpoints covered are standard, image, table, page, text, bitmap, database, accessibility, and XML checkpoints. Standard checkpoints check property values of objects. Image checkpoints check image properties. Table checkpoints check cell values. Page checkpoints check page load times and links.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views27 pages

Quick Test Professional (QTP) : QTP Session On 17-Oct-2007 by Yogita

This document discusses different types of checkpoints in QuickTest Professional (QTP). Checkpoints are verification points that compare actual values during testing to expected values. The main types of checkpoints covered are standard, image, table, page, text, bitmap, database, accessibility, and XML checkpoints. Standard checkpoints check property values of objects. Image checkpoints check image properties. Table checkpoints check cell values. Page checkpoints check page load times and links.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 27

Quick test professional (QTP)

QTP Session on 17-Oct-2007


by Yogita
QTP Checkpoints
 What is checkpoint?
 Why checkpoint is required?
 Understanding checkpoints
 Types of checkpoints
What is checkpoint

 In Manual Testing generally we are comparing


Actual values with our Expected values and if
both are matched then we call that test case as
passed.
 In the same manner in QTP by default we have
some built-in check points to compare the
Actual values with Expected values.
 Checkpoint is a verification point that checks
the captured expected values with actual
values at runtime.
Why checkpoint is required?
• Checkpoint is required to ensure the feature of the
application works as expected or not.
Understanding checkpoints
• QTP enables us to add checks to verify whether
application functionality is working as expected or
not.
• When we insert checkpoints QTP adds row or step in
the keyword view and inserts the statement with
name of test object being tested.
• We can edit the checkpoint name.
• When we run the test QTP compares with captured
values and fails test if they mismatch.
• We can retrieve the return value of checkpoint.
a = Browser("MyBrowser").Page("MyPage").Check
(CheckPoint("MyProperty"))
Return type is Boolean, either true or false.
Cont..
We can insert checkpoint in two ways.
1. While recording mode:
 Use the command Insert>Checkpoint>> menu and select the
type of checkpoint being inserted.

2. While editing mode:


 Right click the step in the keyword view where you want to add
the checkpoint and choose the Insert standard checkpoint.
 Select the step in the keyword view where you want to add the
checkpoint and choose the Insert>Checkpoint>>.
 Right click on any object and in the Active screen and insert
Checkpoint.
Types of checkpoints
There are 9 types of checkpoints available in QTP, namely

1. Standard checkpoint
2. Image checkpoint
3. Table checkpoint
4. Page checkpoint
5. Text/Text area checkpoint
6. Bitmap checkpoint
7. Database checkpoint
8. Accessibility checkpoint
9. XML checkpoint
Types of checkpoint
1. Standard checkpoint: Checks the property value of the objects in
our windows application or web page.
• It checks the variety of objects such as Textboxes, buttons, radio
buttons, combo boxes, lists etc.
• For eg. you can check the user name textbox for boundary valued
verification.

To add Standard checkpoint while edit mode:


• Right click the in the Keyword view or Expert view and choose
Insert standard checkpoint
• The object dialog box opens
• Select the item you want to check from the displayed object tree.
Cont..
• Click OK. The checkpoint properties dialog box opens.
Cont..
• Specify the settings for the checkpoint .
• Click Ok to close the dialog box.
Cont..
2. Image checkpoint: Checks the property values of the web image.
• In the image checkpoint properties of the dialog box specify which properties to
check.
Cont..
3. Table checkpoint: Checks the value in the table cell is
correct or not.
• For certain environments it shows

• It displays the table checkpoint properties dialog box


for specifying the cells contents and type of the
verification method.
Cont..
Cont..
4. Page checkpoint: Checks the characteristic of a web page.
• Checks how long a web page takes to load or if a web page contains the broken
links.
Cont..
Cont...
5. Text or text area checkpoint: Checks the text is
displayed according to specified criteria on the web
page
• Steps to insert the text checkpoint
. Select the step in the keyword view and can be
highlighted in the active screen, highlight the text to
check.
. Right click and select the Text checkpoint and
configure the text be checked in the Text checkpoint
properties dialog box as shown below.
Cont..
Cont..
6. Bitmap checkpoint: Checks an area of web page or
application as bitmap.
• We can check an object or image and area of object or area of
image.
• QTP fails checkpoint if they mismatch.
• For eg. we can check company logo on any page or any image as
an area of button object.
• Steps to insert bitmap checkpoint:
.Select the step in the keyword view and right click on the
highlighted object on the active screen page.
.Object selection dialog box opens and select the image object as
shown in the below.
Cont..
Cont..
• Select the select area option and drag area to be
checked and see the below dialog box.
Cont..
• Or else click ok button for checking the entire image
object
• QTP adds the step in the keyword view and inserts the
step in the expert view.

7. Data base checkpoint: Checks the contents of the data


base accessed by an application.
• We can checks the values which are entered in the
front end by specifying the query.
• We can make queries two ways.
Cont..
• Create query using Microsoft Query
• Specify SQL statement manually
• Steps to insert the data base checkpoint
.Choose Insert>Checkpoint>Database checkpoint the
data base query wizard opens as shown below.
Cont..
. Choose data source for DB content to be checked.
. Select the table from the DB
. Select the fields to be checked
. Filter and sort the fields if required
. Select the close and return to the QTP or else select
modify fields option for editing query.

• Steps for specifying SQL query:


.Choose specify SQL statement in the DB query wizard
the following screen opens.
Cont..

. Enter the connection string for the data source from( C://Program
files/Mercury interactive/samples/flight/app/flight4a.exe)
. Specify SQL query for our DB checkpoint (For eg. Select * from orders)
Cont..
• Click ok to close the dialog box.
Cont..
.Click ok to close the dialog box
• QTP adds step to KW view and inserts statement in the
expert view
. /* 'Data base checkpoint for checking entire table */
. DbTable("DbTable").Check CheckPoint("DbTable")
Thank You for your time
Please send your suggestions or questions
for clarifications.

You might also like