Versions Compared

Key

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

...

You can also do some automation-related with Xray, specially especially because we use Jira entities and concepts.

...

In this example, we're adding a new option in the "More" menu, by adding a new "web section", "web item" ScriptRunner elements.

The following script , will create a Test Execution containing all the Tests that are part of the current Test Set.

...

In the following example, a "script field" is used to to show the total amount of linked Tests to a given requirement.

...

In the following example, a "script field" is used to to show the total amount of linked defects to a given requirement and also provide a link to easily obtain those defects in the Issue search page.

...

In order to add this option in Jira's UI, we'll need to add a custom "web item" that provide provides an action that will interact with a custom ScriptRunner endpoint, which will be the one doing the HTTP request to the Jenkins server, passing the Test Plan issue key. In order to submit the request to Jenkins, we need to obtain Jenkins username and respective API token along with the project-specific authentication token.

...

In order to add this option in Jira's UI, we'll need to add a custom "web item" that provide provides an action that will interact with a custom ScriptRunner endpoint, which will be the one doing the HTTP request to the Jenkins server, passing the Test Plan issue key. In the ScriptRunner endpoint script, we'll obtain the list of Generic Tests (we're assuming that they will came come from Junit, so they have a certain syntax in the Generic Test Definition field.

In order to submit the request to Jenkins, we need to obtain Jenkins username and respective API token along with the project-specific authentication token.

...