Is it possible to include error handling when verifying an element exists in a visual test?

Is it possible to include error handling when verifying an element exists in a visual test?

 
Created On:  3rd April 2013

Problem:

Is it possible to include error handling when verifying an element exists in a visual test?

Resolution:

It is possible to include error handling in a visual test when using verification; this will ensure the test does not pass or fail depending on whether the element is verified but carries on through the rest of the steps.

The first step is to add in the verification.  This is done by right-clicking on the relevant test step, selecting "Insert - Test Logic and Verification" as shown below:

 

After following the verification wizard to select the type of verification requried, for example that the element exists or the text matches;  we can then set up the error handling.  It is important that the error handling step is inserted before the verification step.

To insert the error handling highlight the test step before the verification step, right click and "select Insert - Error Handling" as  shown below:

The error handling step is inserted and it is possible to change the settings in the step properties.  In the 'Action to take' field you can either end the test, skip to the next step, skip to a certain step or retry the step:

The error handling provides the ability to determine that a test simply does not fail if the verification failed but will instead carry on.  It can also be enhanced to perform certain test steps depending on the verification outcome or to write certain information to a variable or log.

 

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-04-09 13:52
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.