SlideShare a Scribd company logo
QTP -Check Points
Checkpoint is a method used to check the content before and after the step, i.e
it is used to compare the expected value with the actual value displayed in the
application, these checkpoints can be customized according to the
requirements.
The checkpoint can be added while recording the application or it can be added
after the recording is completed using Active screen (For adding Checkpoint
after recording the Active screen must be enabled while recording)
Once the checkpoint is added, the QTP adds a checkpoint to the current row in
keyword view and adds a check checkpoint statement to the expert view.
QTP – Check Points
There are 9 types of check points available in QTP. As given below
• Standard checkpoint
• Text / Text area checkpoint
• Bitmap checkpoint
• Database checkpoint
• Table checkpoint
• Page checkpoint
• Xml checkpoint
• Image checkpoint
• Accessibility checkpoint
QTP – Check Points
QTP – Standard Check Point
Standard checkpoint checks the object property values in an application or a
webpage.
It checks objects like Radio buttons, combo boxes, images, Tables, Web page
properties, links etc.
The Table checkpoint can be used to check all the values in the table, it can be
created by inserting standard checkpoint on the table.
The page checkpoint can also created by inserting standard checkpoint on the
object, the page check point can be used to check the time taken to load a
webpage.
As shown here put
the tool in recording
mode
Click on the Insert
menu
Hover the mouse on
Checkpoint
Then click on the
required checkpoint.
Insert Standard Check Point
Insert Standard Check Point
How to insert a standard checkpoint while recording:
Note : Start a record session.
Step #1) Navigate to Insert Menu -> Checkpoint:
Step #2) – Clicking on this icon also results in the same thing.
Step #3) A list of relevant checkpoints applicable to the current or selected
step on performing one of the steps listed in 1 and 2.
Insert Standard Check Point
Step #4) Select the type of checkpoint. We will select “Standard” in our case.
Step #5) QTP interface gets hidden and the user can choose the object in the
AUT over which the user wants to insert a checkpoint.
Step #6) Select the object and the following screen appears:
Step #7) Choose the object and click OK in the dialog. The checkpoint properties
dialog box is displayed.
Insert Standard Check Point
Step #8) On the Checkpoint
Properties dialog box,
check the checkboxes of the required
property values to be verified
click on OK
Insert Standard Check Point
Insert Standard Check Point
This is how it
looks
Edit / View checkpointproperties
To view the
properties of an
object after inserting
the checkpoint or to
change the property
values, right-click on
the checkpoint
object and then click
on Checkpoint
Properties….
Text Check Point
Text checkpoint: We will use the same example and see how Text checkpoint
is different from inserting a standard checkpoint over the ‘text’ property.
• chose “Insert->Checkpoint->Text checkpoint” from the menu while
recording on the gmail.com page in internet explorer.
• Select the text that you want to verify , set the properties as given in next
screen
• Click OK
Text Check Point
Let us look at each field in this dialog and understand
what role each value we set in this dialog play in our
checkpoint.
1) Name: by default a checkpoint’s name is the
object’s name on which a checkpoint is placed. The
user can change it if required.
2) Class: specifies the type of the object. This is non-
editable.
3) Checkpoint summary: An understandable
explanation of what this checkpoint does.
•For web applications it displays the text that is within
the object in red. Refer to the dialog above.
•For a windows application, it displays the text you
selected while creating the checkpoint.
•Also for a windows application if you selected a text
that is more than one line, then summary area displays
[Complex value].
Bitmap Check Point
Bitmap checkpoint
A lot can be inferred from the name of this checkpoint itself. However, it is often
confused with the Image checkpoint.
Differences between Image and Bitmap checkpoints:
Difference #1: Image checkpoint works only on Web environment whereas
Bitmap checkpoint works on any supported environments.
Difference #2: Bitmap checkpoint can be used to compare an area of
an application or page, an object or any part of an object. On setting this
checkpoint it captures the chosen portion of the screen as a bitmap and
compares it with the result at run time. In contrast, image checkpoint is just for
webimage objects.
Therefore, Bitmap checkpoint captures the visible parts of your AUT and
compares them as bitmaps, pixel by pixel.
Bitmap Check Point
Bitmap checkpoint
A lot can be inferred from the name of this checkpoint itself. However, it is often
confused with the Image checkpoint.
Differences between Image and Bitmap checkpoints:
Difference #1: Image checkpoint works only on Web environment whereas
Bitmap checkpoint works on any supported environments.
Difference #2: Bitmap checkpoint can be used to compare an area of
an application or page, an object or any part of an object. On setting this
checkpoint it captures the chosen portion of the screen as a bitmap and
compares it with the result at run time. In contrast, image checkpoint is just for
webimage objects.
Therefore, Bitmap checkpoint captures the visible parts of your AUT and
compares them as bitmaps, pixel by pixel.
Bitmap Check Point
Couple of important points to remember:
1.Bit map checkpoints are dependent on factors like screen resolution,
Operating systems and RGB settings. So any changes to any of these factors will
cause the checkpoint to fail.
2.When creating the checkpoint, QTP does not record any part that is scrolled
off the screen or hidden by any other object.
3.While capturing the bitmap if another app is overlapping you AUT then that
part of the screen is also captured.
4.It can be added while recording or from the active screen.
Bitmap Check Point
Start a test with record and run settings set in a way that it opens www.gmail.com
on internet explorer when I record the test. Then I select Insert->Checkpoint->Bit
map checkpoint. Then I select the ‘google’ logo on the www.gmail page. The
following dialog opens up:
Bitmap Check Point
Take a close look at the above window.
a) The image appears in the Bitmap checkpoint properties dialog and then
the user has an option to choose either to check for the entire image or
choose a selection.
b) If you check on the ‘Check only selected area’ option to be ON, then you
will be able to select the portion of the image. Since it is hard to represent it
pictorially, I would suggest the readers give it a try practically to see how this
works.
Bitmap Check Point
c) The other options in the screen are basically the fine tuning properties. They
are pixels really there to make sure the checkpoint passes even though certain
RGB or are a little inconsistent.
•RGB tolerance: Once set this value will determine how many RGB values of the
pixels can be different for the checkpoint to not fail.
•Pixel tolerance: when this option is checked on, the user has to select whether
he wants to specify this value in % or a number. For example, if the user chooses
5 pixels and the image has 1000 pixels. If in run time, up to 5 different pixels the
differences are not counted towards failing the checkpoint. If more than 5
differences exist, only then the checkpoint fails. If both RBG tolerance and Pixel
tolerance values are set, RGB tolerance is calculated first.
d) There is also a time out factor that we talked about earlier in previous article.
I will go ahead and choose a portion of the logo and click OK.
Other Check Points
Type Description
File Content Checkpoint Verifies the text in a dynamically generated or accessed file such
as .txt,.pdf
Table Checkpoint Verifies the information within a table. Not all environments are
supported.
Text Checkpoint Verify if the text that is displayed within a defined area in a
Windows-based application, according to specified criteria.
Text Area Checkpoint Verifies if the text string is displayed within a defined area in a
Windows-based application, according to specified criteria.
Accessibility Checkpoint Verifies the page and reports the areas of the Web site that may
not conform to the World Wide Web Consortium (W3C) Web
Content Accessibility Guidelines
Page Checkpoint Verifies the characteristics of a Web page. It can also check for
broken links.
Database Checkpoint Verifies the contents of a database accessed by the application
under test.
XML Checkpoint Verifies the content of the .xml documents or .xml documents in
Web pages and frames.

More Related Content

Similar to Qtp check points

Bdd – with cucumber and gherkin
Bdd – with cucumber and gherkinBdd – with cucumber and gherkin
Bdd – with cucumber and gherkin
Arati Joshi
 
Implementing checkpoint in qtp
Implementing checkpoint in qtpImplementing checkpoint in qtp
Implementing checkpoint in qtp
Ramu Palanki
 
Qtp day 2
Qtp day 2Qtp day 2
Qtp day 2
Prashanth BS
 
About Qtp_1 92
About Qtp_1 92About Qtp_1 92
About Qtp_1 92
techgajanan
 
About QTP 9.2
About QTP 9.2About QTP 9.2
About QTP 9.2
chandrasekhar
 
About Qtp 92
About Qtp 92About Qtp 92
About Qtp 92
techgajanan
 
Interview qutions
Interview qutionsInterview qutions
Interview qutions
satyaragha
 
Qtp interview questions3
Qtp interview questions3Qtp interview questions3
Qtp interview questions3
Ramu Palanki
 
Qtp interview questions3
Qtp interview questions3Qtp interview questions3
Qtp interview questions3
Ramu Palanki
 
RFT Tutorial - 9 How To Create A Properties Verification Point In Rft For Tes...
RFT Tutorial - 9 How To Create A Properties Verification Point In Rft For Tes...RFT Tutorial - 9 How To Create A Properties Verification Point In Rft For Tes...
RFT Tutorial - 9 How To Create A Properties Verification Point In Rft For Tes...
Yogindernath Gupta
 
Interview questions in qtp
Interview questions in qtpInterview questions in qtp
Interview questions in qtp
Ramu Palanki
 
Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professional
sunny.deb
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
Ramu Palanki
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
Ramu Palanki
 
Automation with bpt methodology
Automation with bpt methodologyAutomation with bpt methodology
Automation with bpt methodology
Gopi Nath
 
QSpiders - Chapter 4 Checkpoints
QSpiders - Chapter 4 CheckpointsQSpiders - Chapter 4 Checkpoints
QSpiders - Chapter 4 Checkpoints
Qspiders - Software Testing Training Institute
 
Qtp basic
Qtp basicQtp basic
Qtp basic
Sandeep
 
Bag it Tag It Put it : Project Tracking One Click away
Bag it Tag It Put it : Project Tracking One Click away Bag it Tag It Put it : Project Tracking One Click away
Bag it Tag It Put it : Project Tracking One Click away
Abhishek Bakshi
 
Tao scripting demo
Tao scripting demoTao scripting demo
Tao scripting demo
ganeshbadana
 
QTP Tutorial Slides Presentation.
QTP Tutorial Slides Presentation.QTP Tutorial Slides Presentation.
QTP Tutorial Slides Presentation.
Jaya Priya
 

Similar to Qtp check points (20)

Bdd – with cucumber and gherkin
Bdd – with cucumber and gherkinBdd – with cucumber and gherkin
Bdd – with cucumber and gherkin
 
Implementing checkpoint in qtp
Implementing checkpoint in qtpImplementing checkpoint in qtp
Implementing checkpoint in qtp
 
Qtp day 2
Qtp day 2Qtp day 2
Qtp day 2
 
About Qtp_1 92
About Qtp_1 92About Qtp_1 92
About Qtp_1 92
 
About QTP 9.2
About QTP 9.2About QTP 9.2
About QTP 9.2
 
About Qtp 92
About Qtp 92About Qtp 92
About Qtp 92
 
Interview qutions
Interview qutionsInterview qutions
Interview qutions
 
Qtp interview questions3
Qtp interview questions3Qtp interview questions3
Qtp interview questions3
 
Qtp interview questions3
Qtp interview questions3Qtp interview questions3
Qtp interview questions3
 
RFT Tutorial - 9 How To Create A Properties Verification Point In Rft For Tes...
RFT Tutorial - 9 How To Create A Properties Verification Point In Rft For Tes...RFT Tutorial - 9 How To Create A Properties Verification Point In Rft For Tes...
RFT Tutorial - 9 How To Create A Properties Verification Point In Rft For Tes...
 
Interview questions in qtp
Interview questions in qtpInterview questions in qtp
Interview questions in qtp
 
Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professional
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
 
Automation with bpt methodology
Automation with bpt methodologyAutomation with bpt methodology
Automation with bpt methodology
 
QSpiders - Chapter 4 Checkpoints
QSpiders - Chapter 4 CheckpointsQSpiders - Chapter 4 Checkpoints
QSpiders - Chapter 4 Checkpoints
 
Qtp basic
Qtp basicQtp basic
Qtp basic
 
Bag it Tag It Put it : Project Tracking One Click away
Bag it Tag It Put it : Project Tracking One Click away Bag it Tag It Put it : Project Tracking One Click away
Bag it Tag It Put it : Project Tracking One Click away
 
Tao scripting demo
Tao scripting demoTao scripting demo
Tao scripting demo
 
QTP Tutorial Slides Presentation.
QTP Tutorial Slides Presentation.QTP Tutorial Slides Presentation.
QTP Tutorial Slides Presentation.
 

Recently uploaded

14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
yokeleetan1
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
rpskprasana
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
Ratnakar Mikkili
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
Mukeshwaran Balu
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
nooriasukmaningtyas
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
University of Maribor
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
ssuser36d3051
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
PauloRodrigues104553
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
gerogepatton
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 

Recently uploaded (20)

14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 

Qtp check points

  • 2. Checkpoint is a method used to check the content before and after the step, i.e it is used to compare the expected value with the actual value displayed in the application, these checkpoints can be customized according to the requirements. The checkpoint can be added while recording the application or it can be added after the recording is completed using Active screen (For adding Checkpoint after recording the Active screen must be enabled while recording) Once the checkpoint is added, the QTP adds a checkpoint to the current row in keyword view and adds a check checkpoint statement to the expert view. QTP – Check Points
  • 3. There are 9 types of check points available in QTP. As given below • Standard checkpoint • Text / Text area checkpoint • Bitmap checkpoint • Database checkpoint • Table checkpoint • Page checkpoint • Xml checkpoint • Image checkpoint • Accessibility checkpoint QTP – Check Points
  • 4. QTP – Standard Check Point Standard checkpoint checks the object property values in an application or a webpage. It checks objects like Radio buttons, combo boxes, images, Tables, Web page properties, links etc. The Table checkpoint can be used to check all the values in the table, it can be created by inserting standard checkpoint on the table. The page checkpoint can also created by inserting standard checkpoint on the object, the page check point can be used to check the time taken to load a webpage.
  • 5. As shown here put the tool in recording mode Click on the Insert menu Hover the mouse on Checkpoint Then click on the required checkpoint. Insert Standard Check Point
  • 6. Insert Standard Check Point How to insert a standard checkpoint while recording: Note : Start a record session. Step #1) Navigate to Insert Menu -> Checkpoint: Step #2) – Clicking on this icon also results in the same thing. Step #3) A list of relevant checkpoints applicable to the current or selected step on performing one of the steps listed in 1 and 2.
  • 7. Insert Standard Check Point Step #4) Select the type of checkpoint. We will select “Standard” in our case. Step #5) QTP interface gets hidden and the user can choose the object in the AUT over which the user wants to insert a checkpoint. Step #6) Select the object and the following screen appears: Step #7) Choose the object and click OK in the dialog. The checkpoint properties dialog box is displayed.
  • 9. Step #8) On the Checkpoint Properties dialog box, check the checkboxes of the required property values to be verified click on OK Insert Standard Check Point
  • 10. Insert Standard Check Point This is how it looks
  • 11. Edit / View checkpointproperties To view the properties of an object after inserting the checkpoint or to change the property values, right-click on the checkpoint object and then click on Checkpoint Properties….
  • 12. Text Check Point Text checkpoint: We will use the same example and see how Text checkpoint is different from inserting a standard checkpoint over the ‘text’ property. • chose “Insert->Checkpoint->Text checkpoint” from the menu while recording on the gmail.com page in internet explorer. • Select the text that you want to verify , set the properties as given in next screen • Click OK
  • 13. Text Check Point Let us look at each field in this dialog and understand what role each value we set in this dialog play in our checkpoint. 1) Name: by default a checkpoint’s name is the object’s name on which a checkpoint is placed. The user can change it if required. 2) Class: specifies the type of the object. This is non- editable. 3) Checkpoint summary: An understandable explanation of what this checkpoint does. •For web applications it displays the text that is within the object in red. Refer to the dialog above. •For a windows application, it displays the text you selected while creating the checkpoint. •Also for a windows application if you selected a text that is more than one line, then summary area displays [Complex value].
  • 14. Bitmap Check Point Bitmap checkpoint A lot can be inferred from the name of this checkpoint itself. However, it is often confused with the Image checkpoint. Differences between Image and Bitmap checkpoints: Difference #1: Image checkpoint works only on Web environment whereas Bitmap checkpoint works on any supported environments. Difference #2: Bitmap checkpoint can be used to compare an area of an application or page, an object or any part of an object. On setting this checkpoint it captures the chosen portion of the screen as a bitmap and compares it with the result at run time. In contrast, image checkpoint is just for webimage objects. Therefore, Bitmap checkpoint captures the visible parts of your AUT and compares them as bitmaps, pixel by pixel.
  • 15. Bitmap Check Point Bitmap checkpoint A lot can be inferred from the name of this checkpoint itself. However, it is often confused with the Image checkpoint. Differences between Image and Bitmap checkpoints: Difference #1: Image checkpoint works only on Web environment whereas Bitmap checkpoint works on any supported environments. Difference #2: Bitmap checkpoint can be used to compare an area of an application or page, an object or any part of an object. On setting this checkpoint it captures the chosen portion of the screen as a bitmap and compares it with the result at run time. In contrast, image checkpoint is just for webimage objects. Therefore, Bitmap checkpoint captures the visible parts of your AUT and compares them as bitmaps, pixel by pixel.
  • 16. Bitmap Check Point Couple of important points to remember: 1.Bit map checkpoints are dependent on factors like screen resolution, Operating systems and RGB settings. So any changes to any of these factors will cause the checkpoint to fail. 2.When creating the checkpoint, QTP does not record any part that is scrolled off the screen or hidden by any other object. 3.While capturing the bitmap if another app is overlapping you AUT then that part of the screen is also captured. 4.It can be added while recording or from the active screen.
  • 17. Bitmap Check Point Start a test with record and run settings set in a way that it opens www.gmail.com on internet explorer when I record the test. Then I select Insert->Checkpoint->Bit map checkpoint. Then I select the ‘google’ logo on the www.gmail page. The following dialog opens up:
  • 18. Bitmap Check Point Take a close look at the above window. a) The image appears in the Bitmap checkpoint properties dialog and then the user has an option to choose either to check for the entire image or choose a selection. b) If you check on the ‘Check only selected area’ option to be ON, then you will be able to select the portion of the image. Since it is hard to represent it pictorially, I would suggest the readers give it a try practically to see how this works.
  • 19. Bitmap Check Point c) The other options in the screen are basically the fine tuning properties. They are pixels really there to make sure the checkpoint passes even though certain RGB or are a little inconsistent. •RGB tolerance: Once set this value will determine how many RGB values of the pixels can be different for the checkpoint to not fail. •Pixel tolerance: when this option is checked on, the user has to select whether he wants to specify this value in % or a number. For example, if the user chooses 5 pixels and the image has 1000 pixels. If in run time, up to 5 different pixels the differences are not counted towards failing the checkpoint. If more than 5 differences exist, only then the checkpoint fails. If both RBG tolerance and Pixel tolerance values are set, RGB tolerance is calculated first. d) There is also a time out factor that we talked about earlier in previous article. I will go ahead and choose a portion of the logo and click OK.
  • 20. Other Check Points Type Description File Content Checkpoint Verifies the text in a dynamically generated or accessed file such as .txt,.pdf Table Checkpoint Verifies the information within a table. Not all environments are supported. Text Checkpoint Verify if the text that is displayed within a defined area in a Windows-based application, according to specified criteria. Text Area Checkpoint Verifies if the text string is displayed within a defined area in a Windows-based application, according to specified criteria. Accessibility Checkpoint Verifies the page and reports the areas of the Web site that may not conform to the World Wide Web Consortium (W3C) Web Content Accessibility Guidelines Page Checkpoint Verifies the characteristics of a Web page. It can also check for broken links. Database Checkpoint Verifies the contents of a database accessed by the application under test. XML Checkpoint Verifies the content of the .xml documents or .xml documents in Web pages and frames.