Package org.qubership.atp.ram.services
Class ReportService
java.lang.Object
org.qubership.atp.ram.services.ReportService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExecutionSummary(UUID erId, boolean isExecutionSummaryRunsSummary) GenerateExecutionSummaryResponse.getExecutionSummary(ExecutionRequest executionRequest, boolean isExecutionSummaryRunsSummary) GenerateExecutionSummaryResponse.getFinalTrMapping(UUID initialErId) Get mapping for all final Test Runs from Initial Execution request.getProjectIdByExecutionRequestId(UUID executionRequestId) Gets project id by execution request id.GenerateRootCausesStatisticResponsefor er by id and previous, if exists.GenerateServerSummaryResponsefor er by id.getSummarizeTestRuns(UUID initialErId, List<TestRun> testRuns) getSummaryTestRunsAndSetRerunMapping(UUID initialErId, List<TestRun> testRuns, Map<UUID, RerunDetails> rerunDetailsMapping) Get summary list of Test Runs based on the initial Execution Request, all reruns and relative to current rerun.getTestCasesForExecutionRequest(UUID erId, UUID labelTemplateId, UUID validationTemplateId, boolean isExecutionRequestsSummary, TestCaseWidgetReportRequest request) Generate tree of tests cases mapped to filledLabelTemplate.voidremoveEmptyNodes(LabelNodeReportResponse rootNode) Remove nodes without children nodes and test runs.resolveWidgetConfigFilters(TestCaseWidgetReportRequest request, ExecutionRequest executionRequest) Resolve widget config filters for test cases widget.
-
Constructor Details
-
ReportService
public ReportService()
-
-
Method Details
-
getProjectIdByExecutionRequestId
Gets project id by execution request id. -
getServerSummaryForExecutionRequest
GenerateServerSummaryResponsefor er by id. Or throwAtpEntityNotFoundExceptionif env info doesn't found- Parameters:
erId- for foundEnvironmentsInfo- Returns:
- list of
ServerSummaryResponse
-
getRootCausesStatisticForExecutionRequestAndPrevious
public List<RootCausesStatisticResponse> getRootCausesStatisticForExecutionRequestAndPrevious(UUID erId) GenerateRootCausesStatisticResponsefor er by id and previous, if exists. Or throwAtpEntityNotFoundExceptionif ER is null.- Parameters:
erId- for found ER- Returns:
RootCausesStatisticResponse
-
getTestCasesForExecutionRequest
public LabelNodeReportResponse getTestCasesForExecutionRequest(UUID erId, UUID labelTemplateId, UUID validationTemplateId, boolean isExecutionRequestsSummary, TestCaseWidgetReportRequest request) Generate tree of tests cases mapped to filledLabelTemplate.- Parameters:
erId- for found list TR-s and label template IDisExecutionRequestsSummary- flag to display complex reran details in comparison- Returns:
- tree of tests cases mapped to filled
LabelTemplate
-
resolveWidgetConfigFilters
public WidgetConfigTemplate.Filters resolveWidgetConfigFilters(TestCaseWidgetReportRequest request, ExecutionRequest executionRequest) Resolve widget config filters for test cases widget. -
getSummaryTestRunsAndSetRerunMapping
protected List<TestRun> getSummaryTestRunsAndSetRerunMapping(UUID initialErId, List<TestRun> testRuns, Map<UUID, RerunDetails> rerunDetailsMapping) Get summary list of Test Runs based on the initial Execution Request, all reruns and relative to current rerun. -
getFinalTrMapping
Get mapping for all final Test Runs from Initial Execution request. Mapped: Test Run Id with Tes Run object. -
removeEmptyNodes
Remove nodes without children nodes and test runs.- Parameters:
rootNode- root of the node tree
-
getExecutionSummary
public ExecutionSummaryResponse getExecutionSummary(UUID erId, boolean isExecutionSummaryRunsSummary) GenerateExecutionSummaryResponse.- Parameters:
erId- execution request identifier- Returns:
ExecutionSummaryResponse
-
getExecutionSummary
public ExecutionSummaryResponse getExecutionSummary(ExecutionRequest executionRequest, boolean isExecutionSummaryRunsSummary) GenerateExecutionSummaryResponse.- Parameters:
executionRequest- execution request- Returns:
ExecutionSummaryResponse
-
getSummarizeTestRuns
-