Package org.qubership.atp.ram.services
Class CatalogueService
java.lang.Object
org.qubership.atp.ram.services.CatalogueService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidautoSyncTestRunsWithJira(UUID projectId, UUID executionRequestId, boolean syncTestCases, boolean syncTestRuns, List<TestRunToJiraInfo> testRunToJiraInfos) Auto sync test runs and test cases with jira.checkHashSumForScenario(Map<UUID, String> hashSums) Send request to catalog to check the hashsum for scenarios from input map id-hashsum.createJiraTicket(UUID testPlanId, JiraIssueCreateRequest request) Create Jira ticket.voiddeleteLabelTemplateById(UUID labelTemplateId) Delete label template data from catalogue.Get issues from catalogue.getJiraTicket(UUID testPlanId, String key) Create Jira ticket.getLabelsByIds(Set<UUID> labelIds) Get labels by ids.getLabelTemplateById(UUID labelTemplateId) Get label template data from catalogue.getProjectData(UUID projectId) Get project from catalogue.getScenarioIdByTestCaseId(UUID testCaseId) Send request in catalog to get scenario id by test case id.getTestCaseById(UUID testCaseId) Get test case by id.getTestCaseLabelsByIds(List<TestRun> testRuns) Found test cases by specified identifiers.getTestCases(CaseSearchRequest request) Get test cases by search request.getTestPlan(UUID testPlanId) Get test plan from catalogue.getTestPlanJiraComponents(UUID testPlanId) Get test plan jira components.getTestScope(UUID testScopeId) Get test scope from catalogue.rerunExecutionRequest(RerunRequestDto rerunRequestDto) Search issues by keys and fields.voidupdateCaseStatuses(List<TestRun> listTestRun) Send to catalogue status updates for a list of testCases.
-
Constructor Details
-
CatalogueService
public CatalogueService()
-
-
Method Details
-
autoSyncTestRunsWithJira
public void autoSyncTestRunsWithJira(UUID projectId, UUID executionRequestId, boolean syncTestCases, boolean syncTestRuns, List<TestRunToJiraInfo> testRunToJiraInfos) Auto sync test runs and test cases with jira.- Parameters:
projectId- - project idexecutionRequestId- - execution request id for syncsyncTestCases- - is test cases' sync neededsyncTestRuns- - is test runs' sync neededtestRunToJiraInfos- - test runs info to sync
-
updateCaseStatuses
Send to catalogue status updates for a list of testCases.- Parameters:
listTestRun- set of test case ids
-
getScenarioIdByTestCaseId
Send request in catalog to get scenario id by test case id.- Parameters:
testCaseId- the test case id- Returns:
- the scenario id
-
checkHashSumForScenario
Send request to catalog to check the hashsum for scenarios from input map id-hashsum. If one of the scenario from input map fails validation then method returns false.- Parameters:
hashSums- the hash sums- Returns:
- the boolean
-
getProjectData
Get project from catalogue.- Parameters:
projectId- project id- Returns:
- project or null, if ID = null
-
getTestCaseLabelsByIds
Found test cases by specified identifiers.- Parameters:
testRuns- list test runs- Returns:
- founded test cases
-
getLabelTemplateById
Get label template data from catalogue.- Parameters:
labelTemplateId- label template identifier- Returns:
- label template data
-
deleteLabelTemplateById
Delete label template data from catalogue.- Parameters:
labelTemplateId- label template identifier
-
getIssues
Get issues from catalogue.- Parameters:
issueIds- ids of issues you want to get- Returns:
- issues
-
getTestPlan
Get test plan from catalogue.- Parameters:
testPlanId- test plan identifier- Returns:
- test plan data
-
getTestScope
Get test scope from catalogue.- Parameters:
testScopeId- scope id- Returns:
- scope or null, if ID = null
-
getTestCases
Get test cases by search request.- Parameters:
request- search request- Returns:
- founded test cases
-
getTestCaseById
Get test case by id.- Parameters:
testCaseId- test case identifier- Returns:
- founded test cases
-
getLabelsByIds
Get labels by ids.- Parameters:
labelIds- label identifiers- Returns:
- founded labels
-
createJiraTicket
Create Jira ticket.- Parameters:
testPlanId- test plan identifierrequest- creation request- Returns:
- created issue
-
getJiraTicket
Create Jira ticket.- Parameters:
testPlanId- test plan identifierkey- for search- Returns:
- issue
-
getTestPlanJiraComponents
Get test plan jira components.- Parameters:
testPlanId- test plan identifier- Returns:
- jiraComponentsListResponse
-
rerunExecutionRequest
-
searchIssues
Search issues by keys and fields.- Parameters:
testPlanId- test plan identifierkeys- keys for searchfields- fields for search- Returns:
- founded issues
-