Package de.qytera.qtaf.xray.config
Class XrayConfigHelper
java.lang.Object
de.qytera.qtaf.xray.config.XrayConfigHelper
Xray configuration helper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the API token used during authentication against the Jira instance's REST API.static StringReturns the username for authenticating against the Jira instance's REST API.static StringReturns the bearer token for authenticating against Xray server.static StringReturns the client id for authenticating against Xray cloud.static StringReturns the client secret for authenticating against Xray cloud.static StringReturns the URL of the underlying Jira instance.static StringReturns the project key.static StringReturns the test plan key to attach execution results to.static StringGet Xray server URLstatic StringGet Xray status name for failed test steps.static StringGet Xray status name for passed test steps.static StringGet Xray status name for pending test steps.static StringGet Xray status name for skipped test steps.static StringGet Xray status name for undefined test steps.static IntegerReturns the maximum allowed length of iteration parameter names.static IntegerReturns the maximum allowed length of iteration parameter values.static StringGet Xray status name for failed tests.static StringGet Xray status name for passed tests.static StringGet Xray status name for pending tests.static StringGet Xray status name for skipped tests.static StringGet xray service (cloud | server)static booleanCheck if images should be attached as evidence to Xray test execution importstatic booleanCheck if HTML report should be attached as evidence to Xray test execution importstatic booleanCheck if Xray cloud is enabledstatic booleanCheck if Xray server is enabledstatic booleanReturns whether test issue summaries should be kept as they are in Jira instead of replacing them usingTest.testName()during results upload.static booleanReturns whether test issue steps should be merged into a single step during results upload.static booleanReturns whether test issue steps should be updated during results upload of tests.
-
Field Details
-
XRAY_SERVICE_SELECTOR
- See Also:
-
URL_XRAY_SELECTOR
- See Also:
-
URL_JIRA_SELECTOR
- See Also:
-
PROJECT_KEY
- See Also:
-
AUTHENTICATION_XRAY_CLIENT_ID
- See Also:
-
AUTHENTICATION_XRAY_CLIENT_SECRET
- See Also:
-
AUTHENTICATION_XRAY_BEARER_TOKEN
- See Also:
-
AUTHENTICATION_JIRA_USERNAME
- See Also:
-
AUTHENTICATION_JIRA_API_TOKEN
- See Also:
-
RESULTS_UPLOAD_TEST_PLAN_KEY
- See Also:
-
RESULTS_UPLOAD_SCENARIO_REPORT_EVIDENCE
- See Also:
-
RESULTS_UPLOAD_SCENARIO_IMAGE_EVIDENCE
- See Also:
-
RESULTS_UPLOAD_CUSTOM_STATUS_TEST_PASSED
- See Also:
-
RESULTS_UPLOAD_CUSTOM_STATUS_TEST_FAILED
- See Also:
-
RESULTS_UPLOAD_CUSTOM_STATUS_TEST_PENDING
- See Also:
-
RESULTS_UPLOAD_CUSTOM_STATUS_TEST_SKIPPED
- See Also:
-
RESULTS_UPLOAD_CUSTOM_STATUS_STEP_PASSED
- See Also:
-
RESULTS_UPLOAD_CUSTOM_STATUS_STEP_FAILED
- See Also:
-
RESULTS_UPLOAD_CUSTOM_STATUS_STEP_PENDING
- See Also:
-
RESULTS_UPLOAD_CUSTOM_STATUS_STEP_SKIPPED
- See Also:
-
RESULTS_UPLOAD_CUSTOM_STATUS_STEP_UNDEFINED
- See Also:
-
RESULTS_UPLOAD_TESTS_INFO_STEPS_UPDATE
- See Also:
-
RESULTS_UPLOAD_TESTS_INFO_STEPS_MERGE
- See Also:
-
RESULTS_UPLOAD_TESTS_INFO_KEEP_JIRA_SUMMARY
- See Also:
-
RESULTS_UPLOAD_TESTS_ITERATIONS_PARAMETERS_MAX_LENGTH_NAME
- See Also:
-
RESULTS_UPLOAD_TESTS_ITERATIONS_PARAMETERS_MAX_LENGTH_VALUE
- See Also:
-
-
Method Details
-
getAuthenticationXrayBearerToken
Returns the bearer token for authenticating against Xray server.- Returns:
- the bearer token or null if undefined
-
getAuthenticationXrayClientId
Returns the client id for authenticating against Xray cloud.- Returns:
- the client id or null if undefined
-
getAuthenticationXrayClientSecret
Returns the client secret for authenticating against Xray cloud.- Returns:
- the client secret or null if undefined
-
getAuthenticationJiraUsername
Returns the username for authenticating against the Jira instance's REST API.- Returns:
- the username or null if undefined
-
getAuthenticationJiraAPIToken
Returns the API token used during authentication against the Jira instance's REST API.- Returns:
- the API token or null if undefined
-
getServerUrl
Get Xray server URL- Returns:
- Xray server URL
-
getJiraUrl
Returns the URL of the underlying Jira instance.- Returns:
- the Jira URL or null if undefined
-
getTestStatusPassed
Get Xray status name for passed tests.- Returns:
- the status name if configured, otherwise null
-
getTestStatusFailed
Get Xray status name for failed tests.- Returns:
- the status name if configured, otherwise null
-
getTestStatusPending
Get Xray status name for pending tests.- Returns:
- the status name if configured, otherwise null
-
getTestStatusSkipped
Get Xray status name for skipped tests.- Returns:
- the status name if configured, otherwise null
-
getStepStatusPassed
Get Xray status name for passed test steps.- Returns:
- the status name if configured, otherwise null
-
getStepStatusFailed
Get Xray status name for failed test steps.- Returns:
- the status name if configured, otherwise null
-
getStepStatusPending
Get Xray status name for pending test steps.- Returns:
- the status name if configured, otherwise null
-
getStepStatusSkipped
Get Xray status name for skipped test steps.- Returns:
- the status name if configured, otherwise null
-
getStepStatusUndefined
Get Xray status name for undefined test steps.- Returns:
- the status name if configured, otherwise null
-
getXrayService
Get xray service (cloud | server)- Returns:
- xray service (cloud | server)
-
isXrayServerService
public static boolean isXrayServerService()Check if Xray server is enabled- Returns:
- true if enabled, false otherwise
-
isXrayCloudService
public static boolean isXrayCloudService()Check if Xray cloud is enabled- Returns:
- true if enabled, false otherwise
-
isScenarioReportEvidenceEnabled
public static boolean isScenarioReportEvidenceEnabled()Check if HTML report should be attached as evidence to Xray test execution import- Returns:
- true if enabled, false otherwise
-
isScenarioImageEvidenceEnabled
public static boolean isScenarioImageEvidenceEnabled()Check if images should be attached as evidence to Xray test execution import- Returns:
- true if enabled, false otherwise
-
getTestsIterationsParametersNameMaxLength
Returns the maximum allowed length of iteration parameter names.- Returns:
- the maximum length or null if there is no maximum length
-
getTestsIterationsParametersValueMaxLength
Returns the maximum allowed length of iteration parameter values.- Returns:
- the maximum length or null if there is no maximum length
-
shouldResultsUploadTestsInfoStepsMerge
public static boolean shouldResultsUploadTestsInfoStepsMerge()Returns whether test issue steps should be merged into a single step during results upload.- Returns:
- whether they should be merged
-
shouldResultsUploadTestsInfoStepsUpdate
public static boolean shouldResultsUploadTestsInfoStepsUpdate()Returns whether test issue steps should be updated during results upload of tests.- Returns:
- whether they should be updated
-
shouldResultsUploadTestsInfoKeepJiraSummary
public static boolean shouldResultsUploadTestsInfoKeepJiraSummary()Returns whether test issue summaries should be kept as they are in Jira instead of replacing them usingTest.testName()during results upload.- Returns:
- whether summaries should be kept
-
getProjectKey
Returns the project key.- Returns:
- the configured project key
-
getResultsUploadTestPlanKey
Returns the test plan key to attach execution results to.- Returns:
- the configured test plan key or null if no test plan has been defined
-