Versions Compared

Key

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

Since Xray uses issue types in order to map the different testing entities, you 're can take advantage of utilize it in order to implement workflow mechanisms.

This is unique and powerful because it allows you to have full control of your testing process , by controlling the transition of statuses in these issue types.

You can then also invoke post-functions when certain statuses are met, such as notifying certain stakeholders or generate highly detailed reports; this can be quite useful.

The following table summarizes some possible aims use cases for implementing JIRA Jira workflows on top of Xray issue types.


Issue TypeWorkflow usage scenarios
Pre-Condition
  • Manage specification lifecyle
Test
  • Manage specification lifecyle
  • Disable tests for new executions
Test Set
  • Manage specification lifecyle
Test Execution
  • Manage execution lifecyle
Test Plan
  • Manage plan lifecyle


Using JIRA Jira workflows is not mandatory, but they can be used to enhance your process. Some general General recommendations on when using workflows thoughthem:

  • Don’t overcomplicate the workflows, but respect your internal process.
    • Add "reviewing statuses” where appropriate (at specification and execution).
  • Define global workflows for your test-related issues and also for your requirements.


Xray provides some workflow control mechanisms that are able to integrate with Jira workflows. All these settings can be found in Global Preferences.

It's possible to:

  • Disallow executions of Tests with workflow statuses
  • Disallow executions with workflow statuses
    • For Test Executions in specific status
  • Set the "In progress Test Execution workflow status"
    • After the first run (i.e., after one the Test Runs in that Test Execution has run)
  • Set the "Resolved Test Execution workflow status"
    • When all runs are in final status  (i.e., after all Test Runs that in that Test Execution have been run and have a final status)
  • Set the Resolution for Resolved Test Execution, when the "Resolved Test Execution workflow status" is set


Info
titlePlease note

The following workflows being presented are just examples. Implement a workflow that is adapted to your own needs.


Tests and Pre-Conditions

Gliffy Diagram
nametests_preconditions_sample_workflow
pagePin1

Recommendations

  • Have a status for “deprecated” testsTests; you can then disallow executions for Tests in this status, in Xray settings.
  • Have an initial stage for the specification (e.g., “draft” or “new”) and then another status whenever it’s ready to be used.

Test Sets

In Test Sets, workflows can be used to identify that a given Test Set is fully specified or not. They can also be used (e.g., by companies/departments providing testing services) as a way to manage the implementation and the delivery of the Test cases associated with that Test Set.


Gliffy Diagram
nametestsets_sample_workflow_new
pagePin1

Recommendations

...

  • You can eventually implement similar workflows for Tests, Pre-Conditions and Test Sets.
  • In more conventional scenarios, it may be preferable to keep this workflow as simple as possible.Ha

Test Executions


Gliffy Diagram
namesimplesample_workflow_new
pagePin1

Recommendations

  • Have To keep it simple, you can have an initial status (e.g., “new”) then , another when it’s in progress (e.g., “in progress”) and then another when it’s finished (e.g. “closed”).
  • If your Test Executions needs approval or you have a reviewing state, you can then disallow executions for it, in the Xray settings. 
  • You may need to have an interim status if you need to review the results of a Test Execution; for . For Test Executions, it may be quite appropriate , for both for manual and automated testing (due to flaky tests).

Test Plan


Gliffy Diagram
namesimplesample_workflow_new
pagePin1

Recommendations

  • Have an initial status (e.g., “new”) then , another when it’s in progress (e.g., “in progress”), and then another when it’s finished (e.g., “closed”).
  • You may need to have an interim status if you need to review the results of a Test Plan.