Package org.qubership.atp.ram.services
Class TestRunService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompareByExecutionRequestIds(List<UUID> executionRequestIds) Get all test runs by executionRequestIds.countAllByExecutionRequestId(UUID executionRequestId) longcountAllByExecutionRequestIdAndExecutionStatusIn(UUID uuid, List<ExecutionStatuses> executionStatuses) create(Project newProject, TestPlan newTestPlan, TestRun testRun, ExecutionRequest newExecutionRequest) Deprecated.use method from TestRunLoggingControllervoiddeleteByUuid(UUID uuid) filterFailedLogRecordsWithMetaInfo(Stream<LogRecord> logRecords) Filter failed log records with metainfo.filterLogRecordsWithValidationParams(Stream<LogRecord> logRecords) Filter log records with validation params.findAllByExecutionRequestId(UUID executionRequestId) Find execution request by specified identifier.findAllByExecutionRequestIdAndNameNotIs(UUID execReqId, String excludeName) findAllByUuidInAndExecutionStatusIn(List<UUID> testRunIds, List<ExecutionStatuses> list) findAllRatesByUuidIn(Collection<UUID> testRunsIds) findByExecutionRequestIdAndName(UUID executionRequestId, String searchValue) Find Test Runs by specified Execution Request Id and part of Test Run name.Returns TR by name or create new.Return list of LR with fields: validationLabels, validationTable, testingStatus.findTestCaseIdsByExecutionRequestId(UUID executionRequestId) Find set of TestCase id by execution request id.findTestRunExecReqIdByUuid(UUID testRunId) Return TR with field 'executionRequestId' only.findTestRunsByNamesLabelsValidationLabels(UUID executionRequestId, TestRunsByValidationLabelsRequest filter) Searches test runs filtered by names, statuses, labels, validation labels.findTestRunsForFdrByExecutionRequestId(UUID executionRequestId) Find list of TestRuns by specified identifier.findTestRunsUuidAndTestingStatusByErId(UUID executionRequestId) Find list of Test Runs with uuid and testing status by Execution Request id.findTestRunsUuidByExecutionRequestId(UUID executionRequestId) Get list of Test Run id's by Execution Request id.findTestRunsWithFillStatusByRequestId(UUID executionRequestId) findTestRunsWithScreenshotsByExecutionRequestId(UUID executionRequestId) voidfinishTestRun(TestRun testRun, boolean isDelayed) Finish test run: set finished status if final status not already set, calculates finish date and duration.finishTestRuns(List<UUID> testRunUuids, boolean isDelayed) Stop set ofTestRunfound by uuids.getAllContextVariables(UUID testRunId) Gets all context variables from logRecords by testRunId.getAllFailedLogRecords(Set<UUID> testRunIds) getAllFailedLogRecords(UUID testRunUuid) getAllLogRecordPreviews(UUID testRunId, LogRecordFilteringRequest filteringRequest) Get test run log record previews.getAllLogRecordsUuidByTestRunId(UUID testRunId) getAllSectionNotCompoundLogRecords(UUID testRunId) getAllTestingStatusLogRecordsByTestRunId(UUID testRunUuid) getAnalyzedTestRuns(int startIndex, int endIndex, AnalyzedTestRunSortedColumns columnType, org.springframework.data.domain.Sort.Direction sortType, TestRunSearchRequest filter) Get test runs for analyze with filtration.getByIds(Collection<UUID> ids) getByTestCase(UUID testCaseId) Get Test Ru by uuid.getCountLrsForCurrentEr(UUID executionRequestId) Get count of LR-s for current ER.Getting data for test results (use in atp-catalogue).getEnrichedTestRunsByExecutionRequestId(UUID executionRequestId) Get enriched test runs by specified execution request id.Get classifier of failure reasons.longgetFinishDateOfLastTestRun(UUID requestUuid) Return finish date of last TR or 0, if TR is null.getFirstFailedStep(UUID testRunId) Get first failed step for test run.getLastInProgressLogRecord(UUID testRunId) getLastInProgressOrcLogRecord(UUID testRunId) getNonGroupedTestRuns(UUID executionRequestId) Get non-grouped test runs by execution request.getProjectIdByTestCaseId(UUID testCaseId) Return id of the project that owns the test case by test run object.getProjectIdByTestRun(TestRun testRun) Return id of the project that owns the test run by test run object.Return id of the project that owns the test run by test run id.getProjectIdByTestRunIds(Set<UUID> testRuns) Return id of the project that owns the test runs.Get root cause names map for further processing performance.getRootCauseNamesMap(Set<UUID> rootCausesId) Get root cause names map for current Ids.getStatusUpdate(StatusUpdateRequest request) Get status update for test runs and their log records.getTestCasesNamesForProject(UUID projectId) Returns names of testCases for project.getTestRunByIdWithParent(UUID uuid) Found info about current test run and his parent, if exists.getTestRunChildren(UUID parentTestRunId) Get test run children.getTestRunDslNamesMap(List<TestRun> testRuns) Get test run data set lists map for further processing performance.getTestRunFailedLogRecordsMap(Collection<TestRun> testRuns) Get test run failed log records map for further processing performance.getTestRunForNodeTree(UUID testRunId) Return test run with not all fields.getTestRunNodeWithFailedLogRecords(List<TestRun> testRuns, ValidationLabelConfigTemplate template, TestRunsDataContext context) List of TR node with list of failed LR-s.getTestRunsDataContext(List<TestRun> testRuns, TestRunsDataContextLoadOptions options, boolean isVirtual) Get test runs data context for further processing performance.getTestRunsForProject(UUID projectUuid) Find test run for current project.getTestRunsForResuming(List<UUID> testRunIds) Find ExecutionRequests with Suspended status.getTestRunsForStoppingOrTerminating(List<UUID> testRunIds) Find TestRuns with In Progress status.Groups Test Runs by Root Causes names.getTestRunsIdByExecutionRequestIdAndTestingStatus(UUID executionRequestId, TestingStatuses testingStatuses) Get TR-s with field 'uuid'.getTestRunsIdByExecutionRequestIdAndTestingStatuses(UUID executionRequestId, List<TestingStatuses> testingStatuses) Get TR-s with field 'uuid'.Map<UUID, Set<JiraTicket>> getTestRunsIssuesMap(UUID executionRequestId, Collection<UUID> testRunIds) Get test run issues map.getTestRunsNotInExecutionRequestCompareTable(List<UUID> executionRequestIds) Get all test runs by executionRequestIds.getTestRunsRatesWithFailedLr(UUID executionRequestId) Get TR-s with first failed LR.getTestRunsUuidErIdByTestingStatusesAndUuidIn(List<UUID> testRunIds, List<TestingStatuses> testingStatuses) Get TR-s with fields: 'uuid' and 'execution request id'.getTestRunsUuidTestingStatusErIdByUuidIn(List<UUID> testRunIds, TestingStatuses testingStatuses) Get TR-s with fields: 'uuid' and 'execution request id'.getTestRunTestCase(UUID testRunId) Get test run test case.getTestRunTestCasesLabelsMap(List<TestRun> testRuns) Get test run test cases map for further processing performance.getTestRunValidationLabels(UUID testRunId) Get test run validation labels.getTestRunValidationLogRecordsMap(Collection<TestRun> testRuns) Get test run validation log records map for further processing performance.Get classifier of testing statuses.getTopLevelLogRecords(UUID uuid, LogRecordFilteringRequest filteringRequest) labelsPathSearch(LabelsPathSearchRequest searchRequest) Searches test runs by execution request id and labels.Patch test run.Propagate defects to comments of test runs.revertTestingStatusForLogRecord(UUID logRecordId) Revert testing status for log record and correct test run status as well.saveRootCause(UUID uuid, UUID rootCauseId) Find test run by uuid and set rootCauseId for test run.saveRootCausesForListOfTestRuns(List<UUID> uuids, UUID rootCauseId) Find test runs by uuids and set rootCauseId for test runs.search(TestRunSearchRequest filter, int page, int size) searchEnriched(TestRunSearchRequest filter, int page, int size) Search an return enriched test runs by filter request.voidBulk set comments to test runs.Set failure reason to several test runs.voidsetFdrLink(UUID testRunId, String fdrLink) Set fdr link in testrun.voidsetFinalTestRuns(SetBulkFinalTestRuns request) Bulk set Test Runs as Final.stopTestRun(com.google.gson.JsonObject request) Deprecated.use method from TestRunLoggingControllerstopTestRuns(List<UUID> testRunUuids) Stop set ofTestRunfound by uuids.voidunsetRootCauseForLinkedTestRuns(UUID rootCauseId) Unset root cause for linked test runs.voidupdateAnalyzedTestRun(UUID testRunId, AnalyzedTestRunRequest analyzedTestRun) Update test run from analyze tab.voidupdateAnyFieldsForTestRunsByUuid(UUID testRunId, Map<String, Object> fieldsToUpdate, Class<?> entityClass) Update rootCauseId for testRuns.voidupdateFieldRootCauseIdByTestRunsIds(List<UUID> listTestRunIds, UUID rootCauseId) Update rootCauseId for testRuns.updateLogRecordsTestingStatus(UUID testRunUuid, TestingStatuses statuses) Update NotStarted log records testing status.updateOrCreate(com.google.gson.JsonObject request) Deprecated.use method from TestRunLoggingControllervoidupdateStatusesAndFinishDateTestRuns(UUID testRunId, ExecutionStatuses executionStatus, TestingStatuses testingStatus, Timestamp finishDate, long duration) voidupdateTestRunsStatusToTerminatedByErId(UUID executionRequestId) Terminate not finished test runs for current ER.voidupdateTestRunsTestingStatus(List<TestingStatusUpdateRequest> testingStatusUpdateRequests) Bulk update test runs with testing status hard.voidupdateTestRunsWithJiraTickets(List<JiraTicketUpdateRequest> updateRequests) Update test runs with jira tickets keys.updTestingStatus(UUID testRunId, boolean isReplaceTestRunStatus) Upd testing status test run.updTestingStatusHard(UUID uuid, TestingStatuses testingStatuses) Change testing status of Test run without compare and propagate to test case if test run is last for the test case.updTestingStatusHardAndBrowserNames(TestRun testRun, TestingStatuses testingStatuses, List<String> browserNames) Change browser names of Test run.voidupsertTestRunStatisticReportLabelParam(UUID testRunId, String paramName, TestRunStatistic.ReportLabelParameterData data) Create or update test run statistic report label param.Methods inherited from class org.qubership.atp.ram.services.CrudService
get, getAll, saveAll
-
Constructor Details
-
TestRunService
public TestRunService()
-
-
Method Details
-
getByUuid
Get Test Ru by uuid.- Parameters:
testRunId- Test Run identifier.- Returns:
- found Test Run.
-
getShortTestRunsByIds
-
getByIds
-
repository
- Specified by:
repositoryin classCrudService<TestRun>
-
getByTestCase
-
getAllInProgressTestRuns
-
getLastInProgressLogRecord
-
getLastInProgressOrcLogRecord
-
deleteByUuid
-
create
@Deprecated public TestRun create(Project newProject, TestPlan newTestPlan, TestRun testRun, ExecutionRequest newExecutionRequest) Deprecated.use method from TestRunLoggingControllerCreate test run.- Parameters:
newProject- project datanewTestPlan- test plan datatestRun- creation requestnewExecutionRequest- execution request data- Returns:
- created test run
-
patch
Patch test run. Null properties, empty maps and collections are ignored.- Parameters:
testRun- contains properties to be patched- Returns:
- patched test run
-
getAllSectionNotCompoundLogRecords
-
getAllLogRecordsByTestRunId
-
getAllFilteredLogRecordsByTestRunId
public List<LogRecord> getAllFilteredLogRecordsByTestRunId(UUID id, @Nullable LogRecordFilteringRequest filter) -
getAllLogRecordsUuidByTestRunId
-
getAllFailedLogRecords
-
getAllFailedLogRecords
-
getAllTestingStatusLogRecordsByTestRunId
-
updateLogRecordsTestingStatus
Update NotStarted log records testing status.- Parameters:
testRunUuid- testRunId UUID.statuses- TestingStatuses.- Returns:
- List of LogRecords.
-
getDataForTestResultByExecutionRequestId
Getting data for test results (use in atp-catalogue).- Parameters:
erId- for found data- Returns:
- map with data about test runs for current ER
-
getTopLevelLogRecords
-
save
- Overrides:
savein classCrudService<TestRun>
-
updateStatusesAndFinishDateTestRuns
public void updateStatusesAndFinishDateTestRuns(UUID testRunId, ExecutionStatuses executionStatus, TestingStatuses testingStatus, Timestamp finishDate, long duration) -
findAllByExecutionRequestId
Find execution request by specified identifier.- Parameters:
executionRequestId- execution request identifier- Returns:
- founded execution request
-
findTestRunsForFdrByExecutionRequestId
Find list of TestRuns by specified identifier.- Parameters:
executionRequestId- execution request identifier- Returns:
- list of TestRuns
-
findTestCaseIdsByExecutionRequestId
Find set of TestCase id by execution request id.- Parameters:
executionRequestId- execution request identifier- Returns:
- founded list of TestRuns
-
getTestRunChildren
Get test run children.- Parameters:
parentTestRunId- parent testrun id- Returns:
- list of testruns
-
findSortedByExecutionRequestId
-
setFdrLink
Set fdr link in testrun. -
stopTestRun
Deprecated.use method from TestRunLoggingControllerStopTestRunfound by testRunUuid.- Returns:
- finish message if
TestRunwas stop or throw IllegalStateException otherwise
-
saveRootCause
Find test run by uuid and set rootCauseId for test run.- Returns:
- update object
TestRun
-
saveRootCausesForListOfTestRuns
Find test runs by uuids and set rootCauseId for test runs.- Returns:
- update objects
TestRun
-
updateFieldRootCauseIdByTestRunsIds
Update rootCauseId for testRuns. -
updateAnyFieldsForTestRunsByUuid
public void updateAnyFieldsForTestRunsByUuid(UUID testRunId, Map<String, Object> fieldsToUpdate, Class<?> entityClass) Update rootCauseId for testRuns. -
getTestRunsForProject
Find test run for current project. 1. Find ER-s by project ID 2. Find TR-s for found ER-s- Parameters:
projectUuid- for find- Returns:
- list of
TestRun
-
countAllByExecutionRequestIdAndExecutionStatusIn
public long countAllByExecutionRequestIdAndExecutionStatusIn(UUID uuid, List<ExecutionStatuses> executionStatuses) -
getTestRunsGroupedByRootCauses
Groups Test Runs by Root Causes names.- Parameters:
erId- Execution Request Id.- Returns:
- Map with Root Cause name and number of Test Runs.
-
getFinishDateOfLastTestRun
Return finish date of last TR or 0, if TR is null. -
getTestCasesNamesForProject
Returns names of testCases for project. -
findByNameAndRequestUuidOrCreateNew
Returns TR by name or create new. -
findTestRunsWithFillStatusByRequestId
-
getProjectIdByTestRunId
Return id of the project that owns the test run by test run id. -
getProjectIdByTestRun
Return id of the project that owns the test run by test run object. -
getProjectIdByTestCaseId
Return id of the project that owns the test case by test run object. -
getProjectIdByTestRunIds
Return id of the project that owns the test runs. -
getTestRunsForStoppingOrTerminating
Find TestRuns with In Progress status.- Parameters:
testRunIds- set of TR ids.- Returns:
- ids of TRs with In Progress status.
-
getTestRunsForResuming
Find ExecutionRequests with Suspended status.- Parameters:
testRunIds- set of TR ids.- Returns:
- ids of TRs with Suspended status.
-
updateTestRunsStatusToTerminatedByErId
Terminate not finished test runs for current ER.- Parameters:
executionRequestId- for found test runs
-
updateOrCreate
Deprecated.use method from TestRunLoggingControllerUpdate or create test run.- Parameters:
request- upsert request- Returns:
- created or updated test run identifier
-
findTestRunsUuidAndTestingStatusByErId
Find list of Test Runs with uuid and testing status by Execution Request id.- Parameters:
executionRequestId- TestRun uuid.- Returns:
- list of Test Runs.
-
getTestRunByIdWithParent
Found info about current test run and his parent, if exists.- Parameters:
uuid- for found test run- Returns:
- current test run and his parent
-
getAllLogRecordPreviews
public List<LogRecordPreviewResponse> getAllLogRecordPreviews(UUID testRunId, LogRecordFilteringRequest filteringRequest) Get test run log record previews.- Parameters:
testRunId- test run idfilteringRequest- Filtering request- Returns:
- response
-
getTestRunTestCase
Get test run test case.- Parameters:
testRunId- test run id- Returns:
- test case info
-
getNonGroupedTestRuns
Get non-grouped test runs by execution request.- Parameters:
executionRequestId- execution request id- Returns:
- list of test runs
-
stopTestRuns
Stop set ofTestRunfound by uuids. -
finishTestRuns
Stop set ofTestRunfound by uuids. -
getEnrichedTestRunsByExecutionRequestId
Get enriched test runs by specified execution request id.- Parameters:
executionRequestId- execution request id- Returns:
- found enriched test runs
-
upsertTestRunStatisticReportLabelParam
public void upsertTestRunStatisticReportLabelParam(UUID testRunId, String paramName, TestRunStatistic.ReportLabelParameterData data) Create or update test run statistic report label param.- Parameters:
testRunId- test run iddata- param data
-
findAllByExecutionRequestIdAndNameNotIs
-
findAllRatesByUuidIn
-
getAnalyzedTestRuns
public AnalyzedTestRunResponse getAnalyzedTestRuns(int startIndex, int endIndex, AnalyzedTestRunSortedColumns columnType, org.springframework.data.domain.Sort.Direction sortType, TestRunSearchRequest filter) Get test runs for analyze with filtration.- Parameters:
startIndex- start indexendIndex- end indexcolumnType- column for sortingsortType- sorting typefilter- filter- Returns:
- filtered test runs for analyze
-
search
-
searchEnriched
public PaginationResponse<EnrichedTestRun> searchEnriched(TestRunSearchRequest filter, int page, int size) Search an return enriched test runs by filter request.- Parameters:
filter- search requestpage- page numbersize- page size- Returns:
- founded test runs
-
updateAnalyzedTestRun
Update test run from analyze tab.- Parameters:
testRunId- test run idanalyzedTestRun- info to update
-
getTestStatuses
Get classifier of testing statuses.- Returns:
- classifier of testing statuses
-
getFailureReasons
Get classifier of failure reasons.- Returns:
- classifier of failure reasons
-
countAllByExecutionRequestId
-
findTestRunForExecutionSummaryByExecutionRequestId
-
getTestRunsDataContext
public TestRunsDataContext getTestRunsDataContext(List<TestRun> testRuns, TestRunsDataContextLoadOptions options, boolean isVirtual) Get test runs data context for further processing performance.- Parameters:
testRuns- input test runsoptions- options for getting info- Returns:
- result map
-
getTestRunValidationLogRecordsMap
Get test run validation log records map for further processing performance.- Parameters:
testRuns- input test runs- Returns:
- result map
-
getTestRunFailedLogRecordsMap
Get test run failed log records map for further processing performance.- Parameters:
testRuns- input test runs- Returns:
- result map
-
filterLogRecordsWithValidationParams
Filter log records with validation params.- Parameters:
logRecords- input log records- Returns:
- log records with validation params
-
filterFailedLogRecordsWithMetaInfo
Filter failed log records with metainfo.- Parameters:
logRecords- input log records- Returns:
- failed log records with meta info
-
getTestRunTestCasesLabelsMap
Get test run test cases map for further processing performance.- Parameters:
testRuns- input test runs- Returns:
- result map
-
getRootCauseNamesMap
Get root cause names map for further processing performance.- Returns:
- result map
-
getRootCauseNamesMap
Get root cause names map for current Ids.- Returns:
- result map
-
getTestRunDslNamesMap
Get test run data set lists map for further processing performance.- Parameters:
testRuns- input test runs- Returns:
- result map
-
getTestRunsIssuesMap
public Map<UUID,Set<JiraTicket>> getTestRunsIssuesMap(UUID executionRequestId, Collection<UUID> testRunIds) Get test run issues map.- Parameters:
executionRequestId- execution request identifiertestRunIds- test run identifiers- Returns:
- result map
-
getTestRunNodeWithFailedLogRecords
public List<LabelNodeReportResponse.TestRunNodeResponse> getTestRunNodeWithFailedLogRecords(List<TestRun> testRuns, ValidationLabelConfigTemplate template, TestRunsDataContext context) List of TR node with list of failed LR-s.- Parameters:
testRuns- test runstemplate- validation template- Returns:
- list of TR node with list of failed LR-s
-
getFirstFailedStep
Get first failed step for test run.- Parameters:
testRunId- test run identifier- Returns:
- first failed log record
-
compareByExecutionRequestIds
public List<CompareTreeTestRunResponse> compareByExecutionRequestIds(List<UUID> executionRequestIds) Get all test runs by executionRequestIds.- Parameters:
executionRequestIds- upsert request.- Returns:
- created or updated test run identifier
-
getTestRunsNotInExecutionRequestCompareTable
public List<BaseEntityResponse> getTestRunsNotInExecutionRequestCompareTable(List<UUID> executionRequestIds) Get all test runs by executionRequestIds.- Parameters:
executionRequestIds- upsert request.- Returns:
- created or updated test run identifier
-
findByExecutionRequestIdAndName
Find Test Runs by specified Execution Request Id and part of Test Run name.- Parameters:
executionRequestId- execution request identifiersearchValue- part of test run name- Returns:
- list of Test Runs
-
getStatusUpdate
Get status update for test runs and their log records.- Parameters:
request- status update request- Returns:
- status update response
-
updTestingStatus
Upd testing status test run.- Parameters:
testRunId- the test run id- Returns:
- the test run
-
revertTestingStatusForLogRecord
Revert testing status for log record and correct test run status as well.- Parameters:
logRecordId- the log record id- Returns:
- the log record
-
findTestRunsUuidByExecutionRequestId
Get list of Test Run id's by Execution Request id.- Parameters:
executionRequestId- Execution Request id.- Returns:
- list of Test Run id's.
-
getTestRunForNodeTree
Return test run with not all fields.- Parameters:
testRunId- for find test run- Returns:
- found test run
-
findTestRunExecReqIdByUuid
Return TR with field 'executionRequestId' only.- Parameters:
testRunId- for find TR- Returns:
- found test run
-
updateTestRunsWithJiraTickets
Update test runs with jira tickets keys.- Parameters:
updateRequests- - jira ticket update request
-
findLogRecordsWithValidationParamsAndStatusByTrId
Return list of LR with fields: validationLabels, validationTable, testingStatus.- Parameters:
testRunId- for search of log records- Returns:
- list of log records for current test run
-
getTestRunValidationLabels
Get test run validation labels.- Parameters:
testRunId- test run identifier- Returns:
- label params list
-
unsetRootCauseForLinkedTestRuns
Unset root cause for linked test runs.- Parameters:
rootCauseId- root cause identifier
-
getTestRunsIdByExecutionRequestIdAndTestingStatus
public List<TestRun> getTestRunsIdByExecutionRequestIdAndTestingStatus(UUID executionRequestId, TestingStatuses testingStatuses) Get TR-s with field 'uuid'.- Parameters:
executionRequestId- for searchtestingStatuses- for search- Returns:
- list of TR-s
-
getTestRunsIdByExecutionRequestIdAndTestingStatuses
public List<TestRun> getTestRunsIdByExecutionRequestIdAndTestingStatuses(UUID executionRequestId, List<TestingStatuses> testingStatuses) Get TR-s with field 'uuid'.- Parameters:
executionRequestId- for searchtestingStatuses- for search- Returns:
- list of TR-s
-
getTestRunsUuidTestingStatusErIdByUuidIn
public List<TestRun> getTestRunsUuidTestingStatusErIdByUuidIn(List<UUID> testRunIds, TestingStatuses testingStatuses) Get TR-s with fields: 'uuid' and 'execution request id'.- Parameters:
testRunIds- for searchtestingStatuses- for search- Returns:
- list of TR-s
-
getTestRunsUuidErIdByTestingStatusesAndUuidIn
public List<TestRun> getTestRunsUuidErIdByTestingStatusesAndUuidIn(List<UUID> testRunIds, List<TestingStatuses> testingStatuses) Get TR-s with fields: 'uuid' and 'execution request id'.- Parameters:
testRunIds- for searchtestingStatuses- for search- Returns:
- list of TR-s
-
setFailureReasonToTestRuns
Set failure reason to several test runs.- Parameters:
request- bulk request- Returns:
- updated test runs
-
updateTestRunsTestingStatus
public void updateTestRunsTestingStatus(List<TestingStatusUpdateRequest> testingStatusUpdateRequests) Bulk update test runs with testing status hard.- Parameters:
testingStatusUpdateRequests- - test run testing status update request
-
updTestingStatusHard
Change testing status of Test run without compare and propagate to test case if test run is last for the test case.- Parameters:
uuid- of TRtestingStatuses- is new testing status- Returns:
- updated
TestRun
-
updTestingStatusHardAndBrowserNames
public TestRun updTestingStatusHardAndBrowserNames(TestRun testRun, TestingStatuses testingStatuses, List<String> browserNames) Change browser names of Test run.- Parameters:
testRun- testRuntestingStatuses- is new browser namesbrowserNames- is new browser names- Returns:
- updated
TestRun
-
getTestRunsRatesWithFailedLr
Get TR-s with first failed LR.- Parameters:
executionRequestId- ER id- Returns:
- TR-s with failed LT
-
findAllByUuidInAndExecutionStatusIn
-
finishTestRun
Finish test run: set finished status if final status not already set, calculates finish date and duration.- Parameters:
testRun- - test run.isDelayed- - if set to true, finishDate and duration are not updated.
-
setCommentToTestRuns
Bulk set comments to test runs.- Parameters:
request- input data request
-
setFinalTestRuns
Bulk set Test Runs as Final. -
getCountLrsForCurrentEr
Get count of LR-s for current ER.- Parameters:
executionRequestId- for found TR-s- Returns:
- count of LR-s
-
findTestRunsWithScreenshotsByExecutionRequestId
-
findTestRunsByNamesLabelsValidationLabels
@Cacheable("testRunsInfo") public List<TestRunWithValidationLabelsResponse> findTestRunsByNamesLabelsValidationLabels(UUID executionRequestId, TestRunsByValidationLabelsRequest filter) Searches test runs filtered by names, statuses, labels, validation labels.- Parameters:
filter- filter with labels, test run names, validation labels and test run statuses- Returns:
- list of test runs info
-
labelsPathSearch
Searches test runs by execution request id and labels.- Parameters:
searchRequest- search request- Returns:
- test runs with ids and names
-
getAllContextVariables
Gets all context variables from logRecords by testRunId.- Parameters:
testRunId- testRunId- Returns:
- list of context variables
-
propagateDefectsToComments
public TestRunDefectsPropagationResponse propagateDefectsToComments(TestRunDefectsPropagationRequest request) Propagate defects to comments of test runs.- Parameters:
request- request- Returns:
- response
-