Versions Compared

Key

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

...

Furthermore, you can iterate over the test run and get all the information from the test run directly from the test. You just need to use the same syntax as you have here when we iterate over the test runs from test execution.

...

Test Execution from Test Run associated with Test

With Xporter 5.8.0+ combined with Xray 3.3.0+, we made some major performance improvements.

With these versions, it is now possible to access Test Execution information by iterating over tests and their Test Runs.

Code Block
titleExpand to see the example on sample code
collapsetrue
#{for tests}
	${Tests[n].Key}
	#{for c=Tests[n].TestRunsCount}
		${Tests[n].TestRuns[c].Executed By}
		${Tests[n].TestRuns[c].PreCondition.Key}

		${Tests[n].TestRuns[c].TestExecution.Key}
		${Tests[n].TestRuns[c].TestExecution.Summary}
		${Tests[n].TestRuns[c].TestExecution.Description}
		.......
	#{end}
#{end}

...