What Are The Checkpoints Available in QTP/UFT

0
191
Spread the love
  • 29
  • 34
  • 28
  • 35
  •  
  •  
  •  
  • 12
  •  
  •  
    138
    Shares

Practical check automation will allow you to automate the repetitive testing of a big range of eventualities throughout your site. Purposeful testing equipment are an important weapon in your enhancement arsenal whose use delivers a massive productivity get and allows for tiny testing teams to accomplish drastically more function. There is a quite robust financial circumstance for the use of Practical Testing Equipment as part of the advancement and deployment cycle of a site.

Without any further do lets come back to the topic.

Automation can not test all cases. It requires a stable environment to work.All automation tools nowadays capable of storing screenshot and video. So execution verification and debugging is very easy.Every automation has its own reporting process.Most of the functional automation cases are capable of providing value to performance testing.Mostly automation scripts are for regression testing.
With the advancement of functional automation testing, it became very important to verify the flow. Verification can be of link,text,count of links,appearance of images,images etc. QTP provides different approaches to verify these points.Checkpoint approach is one of them. Check points play very important role while designing our automated scripts. It really checks if whatever we are expecting are there or not.Check point is a verification point, it takes expected result from the user and compares with actual results during execution and provides test results. Mainly Checkpoints are used for Data validation.When combined with regular expression,it can be a great tool for assertion in QTP/UFT.
In expert view once Check point is configured QTP/UFT prompts to use the same.

So a checkpoint tells us if the website or application under test is functioning properly or not by comparing a current value for a particular property with the expected value. Once we add a checkpoint UFT adds the same checkpoint to the current row in the keyword view and adds a checkpoint statement in the Expert view. By default the checkpoint takes the name of the test object(on which the checkpoint is performed). However we can change the name by renaming option.

However we need to keep in mind that checkpoints can not added manually. They can only be inserted via UFT interface.

Results of the checkpoints can be viewed in the test result only.

There are 10 Checkpoints available in QTP: They are listed below:

Serial No# Checkpoint Name Description Example or use
1 Standard checkpoint Checks values of objects Mostly check if the checkbox is checked or editbox is enabled etc
2 Text checkpoint Checks if the text string is displayed in correct place Check if the correct string has appeared
3 Text Area checkpoint text area is a place in web or window based application where a long text string can be placed. This checkpoint checks if the text appeared in the defined area. Checks if the text is appear in correct area.
4 Bitmap checkpoint Check an area of a web page or application after capturing it as bitmap Check that Web page or any portion of it is displayed as expected.
5 Database checkpoint Checks the contents of database Check that the value in a database query is correct.
6 Accessibility checkpoint Identify areas of website to check for section 508 compliance Mostly checks the W3C guidelines.
7 XML Checkpoint (from Application)/(from Resource) Checks the data content of XML documents checks the contents of an element to make sure that it’s tag attributes and values have not changed.
8 Page checkpoint Checks the characteristics of a webpage like load time,checks if the page is loaded correctly, checks the broken links
9 Image checkpoint Checks the property value of an image. Checks the source of a file and correctness about the same.
10 Table checkpoint Checks the information in a table. Checks if the value in a table cell is correct.

Note 1: From 6 to 10 checkpoints are only for Web.

Note 2: From 9 to 10 checkpoints are hidden checkpoints, we can insert these checkpoints through standard checkpoint.

How to create Checkpoints in UFT?

We can insert standard checkpoints in 3 ways.
  1. Through Expert view
  2. Through keyword view.
  3. Through Active screen.
  4. Through Insert Menu.

Insert checkpoint through Expert view:

  • Place the cursor on the step in an Expert view
  • Right click
  • Insert Standard Checkpoint option.
  • Select Properties
  • Pass Parameters either through constant or Parameter
  • Click on OK.

Insert checkpoint through Keyword view:

  • Select the object through Keyword view.
  • Select Insert standard Checkpoint option
  • Select properties
  • Pass parameters (Constant or Parameter)
  • Click on OK
  • Select Insert statement option
  • Click on OK.

Insert checkpoint through Active screen:

  • Place the cursor on the required object in Active screen area.
  • Right click
  • Select standard checkpoint option
  • Select Properties
  • Pass Parameters either through constant or Parameter
  • Click on OK.

 Insert Checkpoint through Insert Menu:

  • Keep tool under recording mode
  • Place cursor in desired location
  • Insert
  • Check point
  • Standard checkpoint
  • Show the object
  • click ok
  • Select property and enter expected results
  • Click Ok and stop Recording.

Where Checkpoint Information are stored?

These checkpoints can not be added manually they can only be inserted via QTP’s/UFT’s recommended way to insert or via QTP’s interface. Remember here except standard checkpoints, all checkpoints need to configure during recording mode. So please do it during recording phase only.

QTP stores the checkpoint information in the Action’s resource.mtr location which is located in the test script directory (/Action#/resource.mtr, where Action# is the action
containing the checkpoint).
Ex:
If your checkpoint is in ActionX{x may be 1,2,3,…N} of the test script MyTest,
the path would be “MyTest/ActionX/resource.mtr”.
The checkpoint information is stored in binary form. It is better if we do not alter/ manipulate these files.But if you are comfortable with this you can alter and use according to your need.

The checkpoints information get stored in Object Repository. “.mtr” file .That  is inside the local action folder. That’s why we will capture all these checkpoints during record mode.

Result of checkpoint can be viewed in the test result window. In case if we want to modify the checkpoint, then just right click on the checkpoint and change the property of the object.
It is seen that many a time test engineers keep changing these property to test different check points,but this is not good for maintainability. As per best practices , we must create different checkpoints for different testing.

Apply Parameters in Checkpoints

Using parameter option in every checkpoint we can check every property and data with multiple expected values.

Navigation:

  • Start recording
  • Insert a checkpoint
  • Standard checkpoint
  • Select number of properties by putting tick mark in Checkpoint properties.
  • Click on Parameter option
  • Change the expected values by selecting appropriate parameter name if required
  • Click on OK
  • Pass multiple expected values on data table.

Standard Checkpoint:

It checks object property values. We can use this checkpoint for checking any property value for a web or application under test. The standard checkpoint evaluates the expected values during a run session.
Standard checkpoints can be created for all supported testing environments(if the correct addins are loaded).
Standard checkpoint can be applied to the following objects:
  • Image
  • Tables
  • Webpages properties
  • Other objects

Using standard object checkpoint, we can verify all properties of a single object at a single go.

How to insert Standard Checkpoint?

It is described above . Please refer the article.

Navigation for Editing standard checkpoint

  • Select Checkpoint statement and right click
  • Choose checkpoint properties option
  • Modify the value
  • Click Ok.

Navigation for Deleting standard checkpoint:

  • Select Checkpoint statements and right click
  • Choose delete option.

Inserting Standard check points through active screen:

  • View
  • Active Screen
  • Place cursor in desired location
  • Place mouse pointer on active screen & right click
  • Choose insert standard checkpoint option
  • Click ok
  • Enter expected result
  • Click ok
Note: Inserting Standard check points through keyword view same as in expert view.
Note:
Don't miss out!
Subscribe To Newsletter

Receive top technical news, lesson ideas, travel tips and more!

Invalid email address
Give it a try. You can unsubscribe at any time.

Spread the love
  • 29
  • 34
  • 28
  • 35
  •  
  •  
  •  
  • 12
  •  
  •  
    138
    Shares

LEAVE A REPLY

Please enter your comment!
Please enter your name here