Checkpoint
enables user to identify whether AUT is correctly working or not by
comparing current value of a particular property with expected value of
that property.
Types of Checkpoints in QTP:
1 .Standard check point
2 .Bit map check point
3 .Text check point
4 .Text area check point
5 .Data base check point
6. XML Check point
7. Table checkpoint
8. Image checkpoint
9. Page check point
10. Accessibility check point
1. Standard Checkpoint:
Standard checkpoint enables users to check object property values.
Three ways to insert standard checkpoints:
a. In expert view,
b. In keyword view,
c. In Active screen.
Steps to follow for Inserting standard checkpoint:
QTP should be in recording mode -->Cursor should be placed in desired location -->Insert Menu -->check point -->Standard checkpoint -->Show the object -->click OK ->select property and enter expected results--> click OK--> Stop Recording.
Steps to follow for Editing standard checkpoint:
Identify Checkpoint statement and right click -->Select checkpoint properties option --> Modify the value -->click OK.
Steps to follow for Deleting standard checkpoint:
Identify Checkpoint statements and right click -->choose delete option.
Inserting Standard check points through active screen:
View -->Active Screen -->Cursor should be placed in desired location -->Mouse pointer is placed on active screen--> right click-->choose insert standard checkpoint option -->click OK -->enter expected result -->click OK
2. Bitmap checkpoint:
Bitmap checkpoint enables user to compare two bitmaps. User can compare complete bitmaps as well as part of the bitmaps.
Steps to follow for Inserting bitmap checkpoint:
QTP should be in Recording mode --> Insert menu --> Checkpoint --> Bitmap checkpoint --> show the Bitmap -->click OK -->select “check only selected area” option if we want to compare part of the bitmap --> click OK -->stop recording.
3. Text Checkpoint:
Text checkpoint enables user to Check object’s text property value in different ways.
Steps to follow for inserting Text checkpoint:
QTP should be in Recording mode -->Insert menu --> checkpoint --> Text checkpoint --> Show the object --> click OK --> Select options --> We can select one or more options --> click OK--> stop Recording.
4. Text Area Checkpoint:
Text Area checkpoint enables user to check the text area present in the application.
Steps to follow for inserting Text Area Checkpoint:
QTP should be in Recording mode --> Insert menu--> Checkpoint --> Text area checkpoint --> Mark the area of text --> select one or more options --> Click ok --> stop recording.
5. Database checkpoint:
Database checkpoint enables user to check the Content of the back end Database.
Steps to follow for inserting Database checkpoint:
QTP need not be in Recording mode and we do not need AUT since data is from backend.
Insert --> checkpoint --> Database checkpoint -->choose “specify SQL statement manually” option -->click next --> click create --> select machine data source --> Select DSN (QT_flight32) --> click OK --> enter SQL statement (select * from orders) --> finish --> click OK.
6. XML Check point:
XML checkpoint enables user to check content of the XML file.
Steps to follow for inserting XML Checkpoint:
QTP should be in Recording mode in web environment -->insert menu -->checkpoint (from application)-->show the xml pages >click OK -->stop Recording.
7. Table checkpoint:
Table checkpoint enables user to check content of the web tables.
Steps to follow for inserting Table checkpoint:
QTP should be in Recording mode under web environment -->Insert menu -->checkpoint -->standard checkpoint >show the web table -->click OK >stop recording.
8. Image checkpoint:
Image checkpoint enables user to check the Image property values.
Steps to follow for Inserting Image Checkpoint:
QTP should be in Recording mode with web environment -->Insert menu -->checkpoint >standard checkpoint -->show the image -->select image -->click OK -->click OK >stop recording.
9. Page checkpoint:
Page checkpoints enables user to check number of Links, Images and Loading time in a web page.It is a hidden checkpoint. we can insert this through standard checkpoint.
Steps to follow for Inserting Page Checkpoint:
QTP should be in Recording mode with web environment -->Insert menu -->checkpoint -->Standard checkpoint >show the web page -->click OK -->click OK -->stop recording.
10. Accessibility checkpoint:
Accessibility enables user to check whether the webpage in our web application is developed according to W3C (World Wide Web consortium) Rules and Regulations or not.It is a configurable checkpoint, according to our requirements, we can customize.
Steps to Configure accessibility checkpoint:
Tools menu-->options-->web -->advanced -->check/uncheck items -->click apply -->click OK
Steps for Inserting Accessibility checkpoint:
Keep tool under recording mode with web environment -->insert-->checkpoint-->accessibility checkpoint-->show the webpage-->click OK-->click OK-->stop recording.
Result Analysis:
a. If item is available but not according to W3C rules then fail.
b. If an item is available, according to W3C rules then Pass.
c. If an item is not available then result would be pass
Points to remember
A Checkpoint is a confirmation or verification point in which the value of some property which is expected at a particular step is compared with the actual value which is displayed in the application. Based on the expected values Checkpoints are classified as follows
Types of Checkpoints in QTP:
1 .Standard check point
2 .Bit map check point
3 .Text check point
4 .Text area check point
5 .Data base check point
6. XML Check point
7. Table checkpoint
8. Image checkpoint
9. Page check point
10. Accessibility check point
1. Standard Checkpoint:
Standard checkpoint enables users to check object property values.
Three ways to insert standard checkpoints:
a. In expert view,
b. In keyword view,
c. In Active screen.
Steps to follow for Inserting standard checkpoint:
QTP should be in recording mode -->Cursor should be placed in desired location -->Insert Menu -->check point -->Standard checkpoint -->Show the object -->click OK ->select property and enter expected results--> click OK--> Stop Recording.
Steps to follow for Editing standard checkpoint:
Identify Checkpoint statement and right click -->Select checkpoint properties option --> Modify the value -->click OK.
Steps to follow for Deleting standard checkpoint:
Identify Checkpoint statements and right click -->choose delete option.
Inserting Standard check points through active screen:
View -->Active Screen -->Cursor should be placed in desired location -->Mouse pointer is placed on active screen--> right click-->choose insert standard checkpoint option -->click OK -->enter expected result -->click OK
2. Bitmap checkpoint:
Bitmap checkpoint enables user to compare two bitmaps. User can compare complete bitmaps as well as part of the bitmaps.
Steps to follow for Inserting bitmap checkpoint:
QTP should be in Recording mode --> Insert menu --> Checkpoint --> Bitmap checkpoint --> show the Bitmap -->click OK -->select “check only selected area” option if we want to compare part of the bitmap --> click OK -->stop recording.
3. Text Checkpoint:
Text checkpoint enables user to Check object’s text property value in different ways.
Steps to follow for inserting Text checkpoint:
QTP should be in Recording mode -->Insert menu --> checkpoint --> Text checkpoint --> Show the object --> click OK --> Select options --> We can select one or more options --> click OK--> stop Recording.
4. Text Area Checkpoint:
Text Area checkpoint enables user to check the text area present in the application.
Steps to follow for inserting Text Area Checkpoint:
QTP should be in Recording mode --> Insert menu--> Checkpoint --> Text area checkpoint --> Mark the area of text --> select one or more options --> Click ok --> stop recording.
5. Database checkpoint:
Database checkpoint enables user to check the Content of the back end Database.
Steps to follow for inserting Database checkpoint:
QTP need not be in Recording mode and we do not need AUT since data is from backend.
Insert --> checkpoint --> Database checkpoint -->choose “specify SQL statement manually” option -->click next --> click create --> select machine data source --> Select DSN (QT_flight32) --> click OK --> enter SQL statement (select * from orders) --> finish --> click OK.
6. XML Check point:
XML checkpoint enables user to check content of the XML file.
Steps to follow for inserting XML Checkpoint:
QTP should be in Recording mode in web environment -->insert menu -->checkpoint (from application)-->show the xml pages >click OK -->stop Recording.
7. Table checkpoint:
Table checkpoint enables user to check content of the web tables.
Steps to follow for inserting Table checkpoint:
QTP should be in Recording mode under web environment -->Insert menu -->checkpoint -->standard checkpoint >show the web table -->click OK >stop recording.
8. Image checkpoint:
Image checkpoint enables user to check the Image property values.
Steps to follow for Inserting Image Checkpoint:
QTP should be in Recording mode with web environment -->Insert menu -->checkpoint >standard checkpoint -->show the image -->select image -->click OK -->click OK >stop recording.
9. Page checkpoint:
Page checkpoints enables user to check number of Links, Images and Loading time in a web page.It is a hidden checkpoint. we can insert this through standard checkpoint.
Steps to follow for Inserting Page Checkpoint:
QTP should be in Recording mode with web environment -->Insert menu -->checkpoint -->Standard checkpoint >show the web page -->click OK -->click OK -->stop recording.
10. Accessibility checkpoint:
Accessibility enables user to check whether the webpage in our web application is developed according to W3C (World Wide Web consortium) Rules and Regulations or not.It is a configurable checkpoint, according to our requirements, we can customize.
Steps to Configure accessibility checkpoint:
Tools menu-->options-->web -->advanced -->check/uncheck items -->click apply -->click OK
Steps for Inserting Accessibility checkpoint:
Keep tool under recording mode with web environment -->insert-->checkpoint-->accessibility checkpoint-->show the webpage-->click OK-->click OK-->stop recording.
Result Analysis:
a. If item is available but not according to W3C rules then fail.
b. If an item is available, according to W3C rules then Pass.
c. If an item is not available then result would be pass
Points to remember
A Checkpoint is a confirmation or verification point in which the value of some property which is expected at a particular step is compared with the actual value which is displayed in the application. Based on the expected values Checkpoints are classified as follows
- Page Checkpoint : A Standard Checkpoint created for a web page can be called a Page Checkpoint. It is used to check total number of links & images on a web page. Page Checkpoints can be used to check Load Time i.e. time taken to load a web page.
- Bitmap Checkpoint helps a user in checking the bitmap of an image or a full web page. It does a pixel by pixel comparison between actual and expected images.
- Image Checkpoint enable you to check properties like source file location of a web image. Unlike , Bitmap Checkpoint you can not check pixels(bitmaps) using image checkpoint.
- Text Checkpoint is Used to check expected text in a web-page or application. This text could be from a specific region of the application or a small portion of text displayed
- Accessibility Checkpoints verifies compliance with World Wide Web Consortium (W3C) instructions and guidelines for Web-based technology and information systems. These Guidelines make it easy for disabled to access the web.
- Database Checkpoints create a query during record time and database values are stored as expected values. Same query is executed during run time and actual & expected values are compared.
- In Table Checkpoint , you dynamically can check the contents of cells of a table (grid) appearing in your environment. You can also check various table properties like row height , cell width and so on. Table Checkpoint is similar to Database Checkpoint
- Using XML Checkpoints you can verify XML Data ,XML Schema, XML Data
No comments:
Post a Comment