Checkpoint Options Area (Checkpoint Properties Dialog Box) - Text/Text Area Checkpoints
Relevant for: GUI tests and scripted GUI components
When working with a Text or Text Area checkpoint, the Configure Value area displays three different sets of options, depending on if you are editing the text to check, the text before the checked text, or the text after the checked text:
User interface elements are described below:
UI Element |
Description |
---|---|
Constant |
(Default) Sets the expected value of the checked text as a constant. For details on modifying values, see Configure Value Area. Tip: The Constant box displays the checked text. You can change the checked text by typing in the Constant box or by using the Configure the text for text checkpoints. |
Parameter |
Sets the expected value of the checked text as a parameter. For details on modifying values, see Configure Value Area. |
Match case |
Conducts a case-sensitive check. |
Exact match |
Checks for the exact expected text. For example, if you create a checkpoint with the following description, Check that New York is displayed between Flight departing from and to San Francisco, and select Exact match, if the actual text is New York City, the checkpoint fails. If you do not select Exact match, the checkpoint passes because the expected text is contained within the actual text. |
Ignore spaces |
Ignores spaces in the captured text when performing the check. The presence or absence of spaces does not affect the outcome of the check. |
Text not displayed |
Checks that the text string is not displayed. For example, if you create a checkpoint with the following description, Check that New York is displayed between Flight departing from and to San Francisco, and select Text not displayed, UFT One checks that the text New York is not displayed. |
User interface elements are described below:
UI Element |
Description |
---|---|
Use the text before |
Checks the text before the checked text. To ignore this text, clear this check box. |
Text to check is displayed after occurrence _ of |
Checks that the checked text is displayed after the specified text. If the identical text string you specify is displayed more than once on the page, you can specify the occurrence of the string to which you are referring. If you accept the default text that UFT One recommends, the number in the dialog box will be correct. If you modify the text, confirm that the occurrence number is accurate. If you choose a non-unique text string, change the occurrence number appropriately. For example, if you want to check that the words Advantage Online Shopping are displayed after the fourth occurrence of the word the, enter 4 in the Text to check is displayed after occurrence box. |
Constant |
(Default) Sets the expected value of the text before the checked text as a constant. For details on modifying values, see Configure Value Area. If you modify the text, whenever possible, use a string that is unique within the object so that the occurrence number is 1. Tip: The Constant box displays the text before the checked text. You can change the text by typing in the Constant box or by using the Configure the text for text checkpoints. |
Parameter |
Sets the expected value of the text before the checked text as a parameter. For details on modifying values, see Configure Value Area. |
User interface elements are described below:
UI Element |
Description |
---|---|
Use the text after |
Checks the text after the checked text. To ignore this text, clear this check box. |
Text to check is displayed before occurrence _ of |
Checks that the checked text is displayed before the specified text. If the identical text string you specify is displayed more than once on the page, you can specify to which occurrence of the string you are referring. Note: UFT One starts counting occurrences of the specified Text After value from the beginning of the text string you selected to output, and includes any occurrences within the output value string itself. If you accept the default text that UFT One recommends, the number in the dialog box will be correct. If you modify the text, confirm that the occurrence number is also accurate. If you choose a non-unique text string, change the occurrence number appropriately. For example, if you want to check that the words Advantage Online Shopping are displayed before the fourth occurrence of the word the (where occurrences are counted only at the end of the text defined in the Text Before option area), enter 4 in the Text to check is displayed before occurrence box. |
Constant |
(Default) Sets the expected value of the text after the checked text as a constant. For details on modifying values, see Configure Value Area. If you modify the text, whenever possible, use a string that is unique within the object so that the occurrence number is 1. Tip: The Constant box displays the text after the checked text. You can change the text by typing in the Constant box or by using the Configure the text for text checkpoints. |
Parameter |
Sets the expected value of the text after the checked text as a parameter. For details on modifying values, see Configure Value Area. |
Return to the Checkpoint Properties Dialog box topic.