Code development platform for open source projects from the European Union institutions 🔵 EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content

Xray integration

Test Execution Flow:

  • When tests start running, handleTestRunStarted is called
  • If xray.export=true, it creates a new Test Execution (TE) in Jira
  • The TE ID is stored and a title is generated with timestamp
  • As each test runs:
  1. handleTestCaseStarted tracks test progress
  2. handleTestCaseFinished updates test status in Jira
  3. Test results are sent to Jira with appropriate status codes Summary File Creation Flow:
  • After all tests complete, tearDown() is called
  • If xray.export=true:
  1. Sets TE status to "Done" in Jira
  2. Creates a summary file (test-execution-summary.txt) containing:
  3. TE ID and title
  4. Test statistics (total/completed)
  5. Links to Jira TE and Allure report
  6. Logs the TE link in console Status Mapping: Test statuses are mapped to Jira status codes:
  • PASS → 0
  • FAIL → 3
  • TODO → 2
  • EXECUTING → 2 Conditional Execution:
  • All Jira operations only happen if xray.export=true
  • If xray.export=false, tests run normally without Jira integration
  • Error Handling:
  • Failed tests are logged with error messages
  • Test execution status is tracked Summary file creation errors are caught and logged This implementation ensures that test results are properly tracked in Jira and provides a summary of the test execution for reference.

Merge request reports

Loading