You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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:

Expand to see the examples on sample code
#{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:

Expand to see the examples on sample code
#{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.

  • No labels