Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

🎉 Zephyr for Jira is now Zephyr Squad! Read more about this.

Redirect
filename
delay0
locationhttps://support.smartbear.com/zephyr-squad-server/docs/administration/general-configuration/workflow-validator.html
Table of Contents

This is a feature that essentially validates the workflow for a specific or particular project.

When a project that is configured with the validator from the Zephyr General Configurations page, then the validator will not allow users to set the issue status to ‘Done’ (or any custom status is related to the ‘Done’ category in Jira) if there are any test executions that are have tests with a ‘FAIL’ status. If the validator is not enabled, the workflow will remain the same as default Jira and will transition as usual allowing users to set the status to ‘Done’ regardless of a failed status for a test.

...

Zephyr Workflow Validator Behavior and Limitations

  1. The workflow validator is currently only validating for the test case execution status and checking for the ‘FAIL’ status. With this behavior, if the project has the workflow validator configured for a specific project, the validator will check for all execution statuses for the current test and if any of the execution contains a status as ‘FAIL’, then the validator will not apply the user to transition/change the workflow status to ‘Done’ or any custom workflow status with the similar behavior as ‘Done’.

  2. If the execution status is set to anything aside from ‘FAILPASS/CUSTOM STATUS' (such as ‘PASSUNEXECUTED/FAIL/WIP/BLOCKED/CUSTOM’), then the validator will proceed as normal and will not allow the user to transition/ change the workflow status to ‘Done’ or any custom workflow status with the a similar behavior as ‘Done’.

...

3. When you navigate to the Workflow Validator tab under the General Configurations page, use the ‘Enabling Workflow Validator on Project’ drop-down to select which project that you want to enable the workflow validator for. You can also use the ‘All Project’ checkbox provided in this section to enable the workflow validator for all projects.

...

4. Once you’ve selected a project from the drop-down, the project(s) that will have the workflow validator enabled will be displayed in a table in the ‘Workflow Validator Enabled Projects’ table section below.

...

After changing the status to ‘FAIL’, if you try to change the workflow status from either To-DoDone or In ProgressDone, you will receive an error that will not allow you to change the workflow status.

...

Disable Zephyr Workflow Validator for Single/Multiple Project(s)

...

For example, create a custom status such as ‘Accept’ but include the category behavior of ‘Done’ and check the ‘Allow all statuses to transition to this one’ option. This will allow you to transition to this status from any previous status.

...

3. Let’s test this out now. Create a new test, execute it, and set the status to ‘FAIL’.

After changing the status to ‘FAIL’, if you try to change the workflow status from either To-DoAccept or In ProgressAccept, you will receive an error that will not allow you to change the workflow status.

...