Error handling settings allow users to specify behavior of Qualitia when there is any error during execution of "Actions".
Note:
- Error handling settings are applied only for error conditions and not defects.
For example, execution status of following step is "Defect" and not "Error".
CompareString "a" "ab" "true"
- Error handling settings do not apply if the expression in IF/ELSE IF steps is invalid.
...
Qualitia keywords are provided to specify error handling at step level. Users can select keywords from Action drop-down for Test case as well as task steps.
The keywords for steps are:
- ExitTask:
If this keyword in specified, execution of next step is skipped and execution continues with the next task.This keyword is not available for test case level step.
- ExitTCIteration
If this keyword is specified, execution will skip the current iteration of test case and execute next iteration. If there is only one TC iteration, then the test case execution will stop.
- ExitSuite
If this keyword is specified, execution will stop and no further test cases will be executed.
...
On Error Settings for Dry Run
On the Test Cases screen, the second column of grid indicates "OnError" settingsettings. Refer to the following screenshot, three options can be set for "OnError".
- Double-click the flags shown to edit/change this setting.
Default is set to "Continue".
- ExitTestCaseExitTCIteration
- If this setting is specified, execution will skip the test step fails, Qualitia skips the current iteration of the test case and execute next iteration. If there is only one TC iteration, then the test case execution will stopstops.
- Stop execution of TestCase if any step in this test case fails.
- ExitTask
- If any step of this task fails, skip Qualitia skips all following steps and execute executes next task.
- Continue
- On If any error in any step, do not exit. Continue step of this task fails, Qualitia does not exit and Continues execution of next steps and tasks.
...
OnError
...
Settings for Suite
...
Execution
On Suite the Suites screen, users you can set following OnError optionsflags as per the test case requirements:
- ExitSuite: In case of any failure in at any step of any task TC level or task level step of a TestCaseTest Case, stop the suite execution will be stopped.
- ExitTetCase: If this setting is specifiedExitTCIteration: In case of any failure, execution will skip be skipped for the current iteration of the test case and execute execution will be continued for next iteration. If there is only one test case iteration, then the test case execution will stop and next Test Case in suite will be executed.
- Continue: Continue execution of suite in case of any failures.
Combination of OnError setting on TestCase the Test Cases and Suite screenScreen
- OnError settings at step level always override all other error handling settings.
Following rules apply assuming there are no step level settings explicitly specified for user
- If on Suite the Suites screen, user specifies value as "Continue" and on TestCase the Test Cases screen, values specified are "ExitTask" or "ExitTestCaseExitTCIteration", then settings specified on TestCase the Test Cases screen would will be applicable.
- For values other than "Continue", the setting on Suite Suites screen overrides the setting on test case settings specified on the Test Cases screen.
- Hence if If any task in a TestCase Test Case has "ExitTestCaseExitTCIteration" / "ExitTask" / "Continue" on TestCase the Test Cases screen, but has "ExitSuite" on Suite Suites screen, then in case of any error in Test Case (excluding invalid expression), Qualitia will effectively do "ExitSuite"exists the suite execution.
On Error Condition |
| Overriding |
---|
Screen |
---|
Result |
---|
TC |
Screen | Suite |
---|
Screen | Setting |
| |
---|---|---|---|
Continue | Continue | TC | Continue |
ExitTask | Continue | TC | ExitTask |
ExitTCIteration | Continue | TC |
ExitTCIteration |
Continue |
ExitTCIteration | Suite |
ExitTCIteration |
ExitTask |
ExitTCIteration | Suite |
ExitTCIteration |
ExitTCIteration |
ExitTCIteration | Suite |
ExitTCIteration | |||
Continue | ExitSuite | Suite | ExitSuite |
ExitTask | ExitSuite | Suite | ExitSuite |
ExitTCIteration | ExitSuite | Suite | ExitSuite |