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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.