Versions Compared

Key

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

...

  • send the notification only if there are test failures
    • send the notification only if there is a specific label or custom field on the Test Execution
    • add comments and/or logs of the failed tests to the notification

Tips

To get information about test results using the "Test Execution Status" custom field, the scripts above use the "Test Execution Status" custom field that has an internal representation about the overall testing progress. Note that this internal representation may change in the future.

The table below presents some information you may obtain and how to perform it using Jira automation smart values/expressions. Please see the code snippets above to see how additional information.


Information to obtainJira Automation smart valuesNotes
Total Tests{{Test Execution Status.count}}
Number of tests passing (i.e., reported as "Pass"){{Test Execution Status.statuses.get(0).statusCount}}

A more accurate expression would be:


{{#issue.Test Execution Status.statuses}}{{#if(equals(name,"PASS"))}}{{statusCount}}{{/}}{{/}}

Number of failed tests (i.e., reported as "FAIL")

{{Test Execution Status.statuses.get(1).statusCount}}

A more accurate expression would be:


{{#issue.Test Execution Status.statuses}}{{#if(equals(name,"FAIL"))}}{{statusCount}}{{/}}{{/}}

Test Environments{{issue.Test Environments}}
Linked Test Plan(s) {{issue.Test Plan}}

References

...