Xray Document Generator writes wrong status

Sandra Blaschke June 8, 2023

Hello Xray-Fans,

we created a Template for the Xray Document Generator based on one of the default templates. We are generating it from Test Executions and have a problem with the displayed statuses since the document doesn't always depict the correct status of the actual execution.

This is the snippet from the template we use:

#{if (%{'${Tests[n].TestStatus}'.equals('FAILED')})}

${Tests[n].TestStatus}

#{end}

#{if (%{'${Tests[n].TestStatus}'.equals('PASSED')})}

${Tests[n].TestStatus}

#{end}

#{if (%{'${Tests[n].TestStatus}'.equals('TO DO')})}

${Tests[n].TestStatus}

#{end}

#{if (%{'${Tests[n].TestStatus}'.equals('EXECUTING')})}

${Tests[n].TestStatus}

#{end}

#{if (%{'${Tests[n].TestStatus}'.equals('ABORTED')})}

${Tests[n].TestStatus}

#{end}

Does maybe someone know a solution or sees an error in the snippet mentioned above?

Thanks in advance

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events