Versions Compared

Key

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

...

  • Use Slack's Block Kit Builder tool to sketch the layout of the notification and the respective payload you need to send to Slack's webhook endpoint 
  • 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

...