Zephyr reporting
TestReportService is responsible for turning the stored orchestrator report into a Zephyr test-run payload and posting
it through ZephyrWebClient.
How reporting works
verify(...)in your test case fetches one or moreReportDtos from test agents.TestReportService.persistTestResult(...)creates or updates theTestReportentity for theTestRun.- When
ExecuteDoneEventis handled,TestCaseServicecallstestReportService.reportToJira(testId). ZephyrWebClientposts aZephyrTestRunDtotoorchestrator.zephyr.restApiUrl + orchestrator.zephyr.testRunPath.
Payload mapping
The current implementation maps orchestrator data as follows:
- Zephyr test-run name:
BusinessProcess Test Cycle - project key:
TestCase.getJiraProjectKey() - test-case key:
TestCase.getZepyhrTestCaseKey()from the persistedTestCase - environment:
TestRun.getEnvironment() - overall status:
PassforTestConclusion.PASS, otherwiseFail - script steps: one
ZephyrStepDtoper persistedTestResult, using the result detail as the step comment
TestConclusion.NO_RESULT is therefore reported as Fail at the Zephyr level.
Authentication
The current ZephyrWebClient uses HTTP Basic authentication via orchestrator.zephyr.username and
orchestrator.zephyr.password.
Failure path
Abort paths also try to report the test run. TestRunService.abortTestRun(...) and
abortLongRunningTestRun(...) both end by calling reportToJira(testId) and then cleanUp(...).