Interface XrayTestRepository
- All Superinterfaces:
XrayEndpoint
- All Known Implementing Classes:
XrayTestRepositoryCloud,XrayTestRepositoryServer
A class for interacting with Xray issues, such as retrieving test steps or creating test execution issues from
local test results.
-
Method Summary
Modifier and TypeMethodDescriptionstatic XrayTestRepositoryGet anXrayTestRepositoryinstance.getTestSteps(Collection<String> testIssueKeys) Retrieve all test steps for the given test issues.Import test execution results using the Xray JSON format.Methods inherited from interface de.qytera.qtaf.xray.repository.xray.XrayEndpoint
getXrayAuthorizationHeaderValue, getXrayURL
-
Method Details
-
getInstance
Get anXrayTestRepositoryinstance. The decision whether a cloud or server instance will be returned depends on the configuredXrayConfigHelper.XRAY_SERVICEvalue.- Returns:
- the instance
-
importExecutionResults
default ImportExecutionResultsResponseDto importExecutionResults(ImportExecutionResultsRequestDto body) throws URISyntaxException, MissingConfigurationValueException Import test execution results using the Xray JSON format.- Parameters:
body- the import execution results DTO- Returns:
- the import execution response DTO
- Throws:
URISyntaxException- if any URLs used during import are invalidMissingConfigurationValueException- if the configuration is invalid- See Also:
-
getTestSteps
Map<String,XrayTestStepResponseDto[]> getTestSteps(Collection<String> testIssueKeys) throws URISyntaxException, MissingConfigurationValueException Retrieve all test steps for the given test issues.- Parameters:
testIssueKeys- the test issues to retrieve the steps for- Returns:
- a mapping of test issue keys to their steps
- Throws:
URISyntaxException- if any URLs used during step retrieval are invalidMissingConfigurationValueException- if the configuration is invalid
-