1. What is a Checkpoint?
QTP enables you to add checks to your test. A checkpoint is a verification point that compares a current value for a specified property with the expected value for that property. This enables us to identify whether our Web site or application is functioning correctly.
When you add a checkpoint, QTP adds a checkpoint to the current row in the Keyword View and adds a Check Checkpoint statement in the Expert View. By default, the checkpoint name receives the name of the test object on which the checkpoint is being performed. You can choose to specify a different name for the checkpoint or accept the default name.
When you run the test, QTP compares the expected results of the checkpoint to the current results. If the results do not match, the checkpoint fails. You can view the results of the checkpoint in the Test Results window.
Tip: You can also use the CheckProperty method and the CheckItemProperty method to check specific property or item property values.
QTP enables you to add checks to your test. A checkpoint is a verification point that compares a current value for a specified property with the expected value for that property. This enables us to identify whether our Web site or application is functioning correctly.
When you add a checkpoint, QTP adds a checkpoint to the current row in the Keyword View and adds a Check Checkpoint statement in the Expert View. By default, the checkpoint name receives the name of the test object on which the checkpoint is being performed. You can choose to specify a different name for the checkpoint or accept the default name.
When you run the test, QTP compares the expected results of the checkpoint to the current results. If the results do not match, the checkpoint fails. You can view the results of the checkpoint in the Test Results window.
Tip: You can also use the CheckProperty method and the CheckItemProperty method to check specific property or item property values.
2. What is a Bitmap Check Point in QTP?
You can check an area of a Web page or application as a bitmap. While creating a test, you specify the area you want to check by selecting an object. You can check an entire object or any area within an object. QTP captures the visible part of the specified object as a bitmap (QTP does not capture any part that is scrolled off of the screen, for example), and inserts a checkpoint in the test. You can choose to save the entire object with your test, or you can choose to save only the selected area of the object with your test to save disk space.
When you run the test, QTP compares the object or selected area of the object currently displayed on the Web page or application with the bitmap stored when the test was recorded. If there are differences, QTP captures a bitmap of the actual object and displays it with the expected bitmap in the details portion of the Test Results window. By comparing the two bitmaps (expected and actual), you can identify the nature of the discrepancy.
To create a bitmap checkpoint while recording:
1. Choose Insert > Checkpoint > Bitmap Checkpoint, or click the Insert Checkpoint or Output Value button and choose Bitmap Checkpoint.
The QTP window is hidden, and the pointer turns into a pointing hand.
Note: If the object you want to check can only be displayed by performing an event (such as such as right-clicking or moving the pointer over an object to display a context menu), hold the left CTRL key. The pointing hand temporarily turns into a standard pointer and you can perform the event. When the object you want to check is displayed, release the left CTRL key.
The pointer becomes a pointing hand again. You can also use the left CTRL key to change the window focus. Additionally, if the window containing the object you want to select is minimized, you can display it by holding the left CTRL key, right-clicking the application in the Windows task bar, and choosing Restore from the context menu.
2. Click an object to check in your Web page or application.
You can check an area of a Web page or application as a bitmap. While creating a test, you specify the area you want to check by selecting an object. You can check an entire object or any area within an object. QTP captures the visible part of the specified object as a bitmap (QTP does not capture any part that is scrolled off of the screen, for example), and inserts a checkpoint in the test. You can choose to save the entire object with your test, or you can choose to save only the selected area of the object with your test to save disk space.
When you run the test, QTP compares the object or selected area of the object currently displayed on the Web page or application with the bitmap stored when the test was recorded. If there are differences, QTP captures a bitmap of the actual object and displays it with the expected bitmap in the details portion of the Test Results window. By comparing the two bitmaps (expected and actual), you can identify the nature of the discrepancy.
To create a bitmap checkpoint while recording:
1. Choose Insert > Checkpoint > Bitmap Checkpoint, or click the Insert Checkpoint or Output Value button and choose Bitmap Checkpoint.
The QTP window is hidden, and the pointer turns into a pointing hand.
Note: If the object you want to check can only be displayed by performing an event (such as such as right-clicking or moving the pointer over an object to display a context menu), hold the left CTRL key. The pointing hand temporarily turns into a standard pointer and you can perform the event. When the object you want to check is displayed, release the left CTRL key.
The pointer becomes a pointing hand again. You can also use the left CTRL key to change the window focus. Additionally, if the window containing the object you want to select is minimized, you can display it by holding the left CTRL key, right-clicking the application in the Windows task bar, and choosing Restore from the context menu.
2. Click an object to check in your Web page or application.
3. What is a Database Check Point in QTP?
You can use database checkpoints in your test to check databases accessed by your Web site or application, and to detect defects. To do this, you define a query on your database. Then you create a database checkpoint that checks the results of the query.
You can define a database query in the following ways:
• Using Microsoft Query. You can install Microsoft Query from the custom installation of Microsoft Office.
• By manually defining an SQL statement.
4. What is a Image Check Point in QTP?
Image Checkpoint checks the value of an image in your application or Web page. For example, you can check that a selected image's source file is correct.
Note: You create an image checkpoint by inserting a standard checkpoint on an image object.
5. What is a Page Check Point in QTP?
Page Checkpoint checks the characteristics of a Web page. For example, you can check how long a Web page takes to load or whether a Web page contains broken links.
Note: You create a page checkpoint by inserting a standard checkpoint on a page object.
Page checkpoints are supported for the Web add-in environment
6. What is a Standard Check Point in QTP?
Standard Checkpoint checks the property value of an object in your application or Web page. The standard checkpoint checks a variety of objects such as buttons, radio buttons, combo boxes, lists, and so forth. For example, you can check that a radio button is activated after it is selected or you can check the value of an edit box.
Standard checkpoints are supported for all add-in environments
7. What is a Table Check Point in QTP?
Table checkpoint checks information within a table. For example, suppose your application or Web site contains a table listing all available flights fromNew York to San Francisco . You can add a table checkpoint to check that the time of the first flight in the table is correct.
Note: You create a table checkpoint by inserting a standard checkpoint on a table object.
8. What is a Text Area Check Point in QTP?
Text Area Checkpoint checks that a text string is displayed within a defined area in a Windows application, according to specified criteria. For example, suppose your Visual Basic application has a button that says View Doc , where is replaced by the four digit code entered in a form elsewhere in the application. You can create a text area checkpoint to confirm that the number displayed on the button is the same as the number entered in the form.
Text area checkpoints are supported for Standard Windows, Visual Basic, and ActiveX add-in environments.
Text area checkpoints are also supported for some external add-in environments, such as Java.
You can use database checkpoints in your test to check databases accessed by your Web site or application, and to detect defects. To do this, you define a query on your database. Then you create a database checkpoint that checks the results of the query.
You can define a database query in the following ways:
• Using Microsoft Query. You can install Microsoft Query from the custom installation of Microsoft Office.
• By manually defining an SQL statement.
4. What is a Image Check Point in QTP?
Image Checkpoint checks the value of an image in your application or Web page. For example, you can check that a selected image's source file is correct.
Note: You create an image checkpoint by inserting a standard checkpoint on an image object.
5. What is a Page Check Point in QTP?
Page Checkpoint checks the characteristics of a Web page. For example, you can check how long a Web page takes to load or whether a Web page contains broken links.
Note: You create a page checkpoint by inserting a standard checkpoint on a page object.
Page checkpoints are supported for the Web add-in environment
6. What is a Standard Check Point in QTP?
Standard Checkpoint checks the property value of an object in your application or Web page. The standard checkpoint checks a variety of objects such as buttons, radio buttons, combo boxes, lists, and so forth. For example, you can check that a radio button is activated after it is selected or you can check the value of an edit box.
Standard checkpoints are supported for all add-in environments
7. What is a Table Check Point in QTP?
Table checkpoint checks information within a table. For example, suppose your application or Web site contains a table listing all available flights from
Note: You create a table checkpoint by inserting a standard checkpoint on a table object.
8. What is a Text Area Check Point in QTP?
Text Area Checkpoint checks that a text string is displayed within a defined area in a Windows application, according to specified criteria. For example, suppose your Visual Basic application has a button that says View Doc , where is replaced by the four digit code entered in a form elsewhere in the application. You can create a text area checkpoint to confirm that the number displayed on the button is the same as the number entered in the form.
Text area checkpoints are supported for Standard Windows, Visual Basic, and ActiveX add-in environments.
Text area checkpoints are also supported for some external add-in environments, such as Java.
9. What is the Diff between Image check-point and Bit map Check point?
Image Checkpoints checks the properties of the image and not the Actual image. So through image check points you can verify it index, ALT Tag, URL of the image.
While the Bitmap check points actually checks the image comparing bit by bit. Through this you can check the whole image or part of the image.
Image Checkpoints checks the properties of the image and not the Actual image. So through image check points you can verify it index, ALT Tag, URL of the image.
While the Bitmap check points actually checks the image comparing bit by bit. Through this you can check the whole image or part of the image.
No comments:
Post a Comment