Versions Compared

Key

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

Table of Contents

Overall Execution Status

You can print the status of the Test Execution by using the following notation:

% per StatusNumber of Tests per Status
${Overall Execution Status.NameOfStatus.Percentage}${Overall Execution Status.NameOfStatus.Count}


Iterating over Tests

As it is not known in advance how many Tests exist in a Test Plan, there is a notation that allows iterating a section over all the Tests of a Test Plan. The notation is:

Code Block
titleExpand to see the examples on sample code
collapsetrue
#{for tests}
	Content and Test Mappings.	Example: ${Tests[n].Key}
#{end}
 
or
 
#{for j=TestsCount}
	Content and Test Mappings.	Example: ${Tests[j].Summary}
#{end}

n is the index of Test, starting from 0. The field TestsCount was created in order to give the total number of Tests.

Here you can print Jira native data or print Xray specific data such as the Steps of the test. Learn more.

Iterating over Test Execution

As it is not known in advance how many Tests exist in a Test Plan, there is a notation that allows iterating a section over all the Tests of a Test Plan. The notation is:

Code Block
titleExpand to see the examples on sample code
collapsetrue
#{for testExecutions}
	Content and Test Mappings.	Example: ${Tests[n].Key}
#{end}
 
or
 
#{for j=TestExecutionsCount}
	Content and Test Mappings.	Example: ${Tests[j].Summary}
#{end}

n is the index of Test, starting from 0. The field TestExecutionsCount was created in order to give the total number of Tests.

Here you can print Jira native data or print Xray specific data such as the list of the Test executed inside of the Test Run and their status. Learn more.