Class TestRailManagementSystem
java.lang.Object
io.github.mov2day.unifiedtest.reporting.testmanagement.AbstractTestManagementSystem
io.github.mov2day.unifiedtest.reporting.testmanagement.TestRailManagementSystem
- All Implemented Interfaces:
TestManagementSystem
Implementation of TestManagementSystem for TestRail.
-
Field Summary
Fields inherited from class io.github.mov2day.unifiedtest.reporting.testmanagement.AbstractTestManagementSystem
config, configured, lastStatus, MAX_RETRIES, pendingResults, RETRY_DELAY_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringconvertFromStatus(String status) Convert test management system specific status to UnifiedTestResult status.protected StringconvertStatus(String status) Convert UnifiedTestResult status to test management system specific status.doPushResults(List<UnifiedTestResult> results) Implementation-specific method to push test results.getName()Get the name of the test management system.protected booleanValidate the configuration for this test management system.Methods inherited from class io.github.mov2day.unifiedtest.reporting.testmanagement.AbstractTestManagementSystem
flushResults, getLastStatus, initialize, isConfigured, pushResults, queueTestResult
-
Constructor Details
-
TestRailManagementSystem
public TestRailManagementSystem()
-
-
Method Details
-
validateConfig
protected boolean validateConfig()Description copied from class:AbstractTestManagementSystemValidate the configuration for this test management system.- Specified by:
validateConfigin classAbstractTestManagementSystem- Returns:
- true if the configuration is valid
-
doPushResults
Description copied from class:AbstractTestManagementSystemImplementation-specific method to push test results.- Specified by:
doPushResultsin classAbstractTestManagementSystem- Parameters:
results- List of test results to push- Returns:
- Map of test names to their corresponding IDs in the test management system
- Throws:
Exception- if the operation fails
-
convertStatus
Description copied from class:AbstractTestManagementSystemConvert UnifiedTestResult status to test management system specific status.- Specified by:
convertStatusin classAbstractTestManagementSystem- Parameters:
status- UnifiedTestResult status- Returns:
- Test management system specific status
-
convertFromStatus
Description copied from class:AbstractTestManagementSystemConvert test management system specific status to UnifiedTestResult status.- Specified by:
convertFromStatusin classAbstractTestManagementSystem- Parameters:
status- Test management system specific status- Returns:
- UnifiedTestResult status
-
getName
Description copied from interface:TestManagementSystemGet the name of the test management system.- Returns:
- System name (e.g., "zephyr", "testrail")
-