Class TestRunService

java.lang.Object
org.qubership.atp.ram.services.CrudService<TestRun>
org.qubership.atp.ram.services.TestRunService

@Service public class TestRunService extends CrudService<TestRun>
  • Constructor Details

    • TestRunService

      public TestRunService()
  • Method Details

    • getByUuid

      @Nonnull public TestRun getByUuid(UUID testRunId)
      Get Test Ru by uuid.
      Parameters:
      testRunId - Test Run identifier.
      Returns:
      found Test Run.
    • getShortTestRunsByIds

      public List<TestRun> getShortTestRunsByIds(Collection<UUID> ids)
    • getByIds

      public List<TestRun> getByIds(Collection<UUID> ids)
    • repository

      protected org.springframework.data.mongodb.repository.MongoRepository<TestRun,UUID> repository()
      Specified by:
      repository in class CrudService<TestRun>
    • getByTestCase

      public TestRun getByTestCase(UUID testCaseId)
    • getAllInProgressTestRuns

      public List<TestRun> getAllInProgressTestRuns()
    • getLastInProgressLogRecord

      public LogRecord getLastInProgressLogRecord(UUID testRunId)
    • getLastInProgressOrcLogRecord

      public LogRecord getLastInProgressOrcLogRecord(UUID testRunId)
    • deleteByUuid

      public void deleteByUuid(UUID uuid)
    • create

      @Deprecated public TestRun create(Project newProject, TestPlan newTestPlan, TestRun testRun, ExecutionRequest newExecutionRequest)
      Deprecated.
      use method from TestRunLoggingController
      Create test run.
      Parameters:
      newProject - project data
      newTestPlan - test plan data
      testRun - creation request
      newExecutionRequest - execution request data
      Returns:
      created test run
    • patch

      public TestRun patch(TestRun testRun)
      Patch test run. Null properties, empty maps and collections are ignored.
      Parameters:
      testRun - contains properties to be patched
      Returns:
      patched test run
    • getAllSectionNotCompoundLogRecords

      public List<LogRecord> getAllSectionNotCompoundLogRecords(UUID testRunId)
    • getAllLogRecordsByTestRunId

      public List<LogRecord> getAllLogRecordsByTestRunId(UUID id)
    • getAllFilteredLogRecordsByTestRunId

      public List<LogRecord> getAllFilteredLogRecordsByTestRunId(UUID id, @Nullable LogRecordFilteringRequest filter)
    • getAllLogRecordsUuidByTestRunId

      public List<LogRecord> getAllLogRecordsUuidByTestRunId(UUID testRunId)
    • getAllFailedLogRecords

      public List<LogRecord> getAllFailedLogRecords(UUID testRunUuid)
    • getAllFailedLogRecords

      public List<LogRecord> getAllFailedLogRecords(Set<UUID> testRunIds)
    • getAllTestingStatusLogRecordsByTestRunId

      public List<LogRecord> getAllTestingStatusLogRecordsByTestRunId(UUID testRunUuid)
    • updateLogRecordsTestingStatus

      public List<LogRecord> updateLogRecordsTestingStatus(UUID testRunUuid, TestingStatuses statuses)
      Update NotStarted log records testing status.
      Parameters:
      testRunUuid - testRunId UUID.
      statuses - TestingStatuses.
      Returns:
      List of LogRecords.
    • getDataForTestResultByExecutionRequestId

      public Map<UUID,TestRun> getDataForTestResultByExecutionRequestId(List<UUID> erId)
      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

      public List<LogRecord> getTopLevelLogRecords(UUID uuid, LogRecordFilteringRequest filteringRequest)
    • save

      public TestRun save(TestRun testRun)
      Overrides:
      save in class CrudService<TestRun>
    • updateStatusesAndFinishDateTestRuns

      public void updateStatusesAndFinishDateTestRuns(UUID testRunId, ExecutionStatuses executionStatus, TestingStatuses testingStatus, Timestamp finishDate, long duration)
    • findAllByExecutionRequestId

      public List<TestRun> findAllByExecutionRequestId(UUID executionRequestId)
      Find execution request by specified identifier.
      Parameters:
      executionRequestId - execution request identifier
      Returns:
      founded execution request
    • findTestRunsForFdrByExecutionRequestId

      public List<TestRun> findTestRunsForFdrByExecutionRequestId(UUID executionRequestId)
      Find list of TestRuns by specified identifier.
      Parameters:
      executionRequestId - execution request identifier
      Returns:
      list of TestRuns
    • findTestCaseIdsByExecutionRequestId

      public List<TestRun> findTestCaseIdsByExecutionRequestId(UUID executionRequestId)
      Find set of TestCase id by execution request id.
      Parameters:
      executionRequestId - execution request identifier
      Returns:
      founded list of TestRuns
    • getTestRunChildren

      public List<TestRun> getTestRunChildren(UUID parentTestRunId)
      Get test run children.
      Parameters:
      parentTestRunId - parent testrun id
      Returns:
      list of testruns
    • findSortedByExecutionRequestId

      public List<TestRun> findSortedByExecutionRequestId(UUID erId)
    • setFdrLink

      public void setFdrLink(UUID testRunId, String fdrLink)
      Set fdr link in testrun.
    • stopTestRun

      @Deprecated public String stopTestRun(com.google.gson.JsonObject request)
      Deprecated.
      use method from TestRunLoggingController
      Stop TestRun found by testRunUuid.
      Returns:
      finish message if TestRun was stop or throw IllegalStateException otherwise
    • saveRootCause

      public TestRun saveRootCause(UUID uuid, UUID rootCauseId)
      Find test run by uuid and set rootCauseId for test run.
      Returns:
      update object TestRun
    • saveRootCausesForListOfTestRuns

      public List<TestRun> saveRootCausesForListOfTestRuns(List<UUID> uuids, UUID rootCauseId)
      Find test runs by uuids and set rootCauseId for test runs.
      Returns:
      update objects TestRun
    • updateFieldRootCauseIdByTestRunsIds

      public void updateFieldRootCauseIdByTestRunsIds(List<UUID> listTestRunIds, UUID rootCauseId)
      Update rootCauseId for testRuns.
    • updateAnyFieldsForTestRunsByUuid

      public void updateAnyFieldsForTestRunsByUuid(UUID testRunId, Map<String,Object> fieldsToUpdate, Class<?> entityClass)
      Update rootCauseId for testRuns.
    • getTestRunsForProject

      public List<TestRun> getTestRunsForProject(UUID projectUuid)
      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

      public Map<String,Integer> getTestRunsGroupedByRootCauses(UUID erId)
      Groups Test Runs by Root Causes names.
      Parameters:
      erId - Execution Request Id.
      Returns:
      Map with Root Cause name and number of Test Runs.
    • getFinishDateOfLastTestRun

      public long getFinishDateOfLastTestRun(UUID requestUuid)
      Return finish date of last TR or 0, if TR is null.
    • getTestCasesNamesForProject

      public List<TestRun> getTestCasesNamesForProject(UUID projectId)
      Returns names of testCases for project.
    • findByNameAndRequestUuidOrCreateNew

      public TestRun findByNameAndRequestUuidOrCreateNew(TestRun tr)
      Returns TR by name or create new.
    • findTestRunsWithFillStatusByRequestId

      public List<TestRun> findTestRunsWithFillStatusByRequestId(UUID executionRequestId)
    • getProjectIdByTestRunId

      public UUID getProjectIdByTestRunId(UUID id)
      Return id of the project that owns the test run by test run id.
    • getProjectIdByTestRun

      public UUID getProjectIdByTestRun(TestRun testRun)
      Return id of the project that owns the test run by test run object.
    • getProjectIdByTestCaseId

      public UUID getProjectIdByTestCaseId(UUID testCaseId)
      Return id of the project that owns the test case by test run object.
    • getProjectIdByTestRunIds

      public UUID getProjectIdByTestRunIds(Set<UUID> testRuns)
      Return id of the project that owns the test runs.
    • getTestRunsForStoppingOrTerminating

      public List<UUID> getTestRunsForStoppingOrTerminating(List<UUID> testRunIds)
      Find TestRuns with In Progress status.
      Parameters:
      testRunIds - set of TR ids.
      Returns:
      ids of TRs with In Progress status.
    • getTestRunsForResuming

      public List<UUID> getTestRunsForResuming(List<UUID> testRunIds)
      Find ExecutionRequests with Suspended status.
      Parameters:
      testRunIds - set of TR ids.
      Returns:
      ids of TRs with Suspended status.
    • updateTestRunsStatusToTerminatedByErId

      public void updateTestRunsStatusToTerminatedByErId(UUID executionRequestId)
      Terminate not finished test runs for current ER.
      Parameters:
      executionRequestId - for found test runs
    • updateOrCreate

      @Deprecated public UUID updateOrCreate(com.google.gson.JsonObject request)
      Deprecated.
      use method from TestRunLoggingController
      Update or create test run.
      Parameters:
      request - upsert request
      Returns:
      created or updated test run identifier
    • findTestRunsUuidAndTestingStatusByErId

      public List<TestRun> findTestRunsUuidAndTestingStatusByErId(UUID executionRequestId)
      Find list of Test Runs with uuid and testing status by Execution Request id.
      Parameters:
      executionRequestId - TestRun uuid.
      Returns:
      list of Test Runs.
    • getTestRunByIdWithParent

      public TestRunTreeResponse getTestRunByIdWithParent(UUID uuid)
      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 id
      filteringRequest - Filtering request
      Returns:
      response
    • getTestRunTestCase

      public BaseEntityResponse getTestRunTestCase(UUID testRunId)
      Get test run test case.
      Parameters:
      testRunId - test run id
      Returns:
      test case info
    • getNonGroupedTestRuns

      public List<NonGroupedTestRunResponse> getNonGroupedTestRuns(UUID executionRequestId)
      Get non-grouped test runs by execution request.
      Parameters:
      executionRequestId - execution request id
      Returns:
      list of test runs
    • stopTestRuns

      public List<UUID> stopTestRuns(List<UUID> testRunUuids)
      Stop set of TestRun found by uuids.
      Returns:
      List of UUID of stopped test runs
    • finishTestRuns

      public List<UUID> finishTestRuns(List<UUID> testRunUuids, boolean isDelayed)
      Stop set of TestRun found by uuids.
      Returns:
      List of UUID of stopped test runs
    • getEnrichedTestRunsByExecutionRequestId

      public List<EnrichedTestRun> getEnrichedTestRunsByExecutionRequestId(UUID executionRequestId)
      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 id
      data - param data
    • findAllByExecutionRequestIdAndNameNotIs

      public List<TestRun> findAllByExecutionRequestIdAndNameNotIs(UUID execReqId, String excludeName)
    • findAllRatesByUuidIn

      public List<TestRun> findAllRatesByUuidIn(Collection<UUID> testRunsIds)
    • 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 index
      endIndex - end index
      columnType - column for sorting
      sortType - sorting type
      filter - filter
      Returns:
      filtered test runs for analyze
    • search

      public PaginationResponse<TestRun> search(TestRunSearchRequest filter, int page, int size)
    • searchEnriched

      public PaginationResponse<EnrichedTestRun> searchEnriched(TestRunSearchRequest filter, int page, int size)
      Search an return enriched test runs by filter request.
      Parameters:
      filter - search request
      page - page number
      size - page size
      Returns:
      founded test runs
    • updateAnalyzedTestRun

      public void updateAnalyzedTestRun(UUID testRunId, AnalyzedTestRunRequest analyzedTestRun)
      Update test run from analyze tab.
      Parameters:
      testRunId - test run id
      analyzedTestRun - info to update
    • getTestStatuses

      public Map<TestingStatuses,String> getTestStatuses()
      Get classifier of testing statuses.
      Returns:
      classifier of testing statuses
    • getFailureReasons

      public Map<DefaultRootCauseType,String> getFailureReasons()
      Get classifier of failure reasons.
      Returns:
      classifier of failure reasons
    • countAllByExecutionRequestId

      public Long countAllByExecutionRequestId(UUID executionRequestId)
    • findTestRunForExecutionSummaryByExecutionRequestId

      public List<TestRun> findTestRunForExecutionSummaryByExecutionRequestId(UUID erId)
    • getTestRunsDataContext

      public TestRunsDataContext getTestRunsDataContext(List<TestRun> testRuns, TestRunsDataContextLoadOptions options, boolean isVirtual)
      Get test runs data context for further processing performance.
      Parameters:
      testRuns - input test runs
      options - options for getting info
      Returns:
      result map
    • getTestRunValidationLogRecordsMap

      public Map<UUID,List<LogRecord>> getTestRunValidationLogRecordsMap(Collection<TestRun> testRuns)
      Get test run validation log records map for further processing performance.
      Parameters:
      testRuns - input test runs
      Returns:
      result map
    • getTestRunFailedLogRecordsMap

      public Map<UUID,List<LogRecord>> getTestRunFailedLogRecordsMap(Collection<TestRun> testRuns)
      Get test run failed log records map for further processing performance.
      Parameters:
      testRuns - input test runs
      Returns:
      result map
    • filterLogRecordsWithValidationParams

      public List<LogRecord> filterLogRecordsWithValidationParams(Stream<LogRecord> logRecords)
      Filter log records with validation params.
      Parameters:
      logRecords - input log records
      Returns:
      log records with validation params
    • filterFailedLogRecordsWithMetaInfo

      public List<LogRecord> filterFailedLogRecordsWithMetaInfo(Stream<LogRecord> logRecords)
      Filter failed log records with metainfo.
      Parameters:
      logRecords - input log records
      Returns:
      failed log records with meta info
    • getTestRunTestCasesLabelsMap

      public Map<UUID,TestCaseLabelResponse> getTestRunTestCasesLabelsMap(List<TestRun> testRuns)
      Get test run test cases map for further processing performance.
      Parameters:
      testRuns - input test runs
      Returns:
      result map
    • getRootCauseNamesMap

      public Map<UUID,String> getRootCauseNamesMap()
      Get root cause names map for further processing performance.
      Returns:
      result map
    • getRootCauseNamesMap

      public Map<UUID,String> getRootCauseNamesMap(Set<UUID> rootCausesId)
      Get root cause names map for current Ids.
      Returns:
      result map
    • getTestRunDslNamesMap

      public Map<String,String> getTestRunDslNamesMap(List<TestRun> testRuns)
      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 identifier
      testRunIds - 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 runs
      template - validation template
      Returns:
      list of TR node with list of failed LR-s
    • getFirstFailedStep

      public LogRecord getFirstFailedStep(UUID testRunId)
      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

      public List<TestRun> findByExecutionRequestIdAndName(UUID executionRequestId, String searchValue)
      Find Test Runs by specified Execution Request Id and part of Test Run name.
      Parameters:
      executionRequestId - execution request identifier
      searchValue - part of test run name
      Returns:
      list of Test Runs
    • getStatusUpdate

      public StatusUpdateResponse getStatusUpdate(StatusUpdateRequest request)
      Get status update for test runs and their log records.
      Parameters:
      request - status update request
      Returns:
      status update response
    • updTestingStatus

      public TestRun updTestingStatus(UUID testRunId, boolean isReplaceTestRunStatus)
      Upd testing status test run.
      Parameters:
      testRunId - the test run id
      Returns:
      the test run
    • revertTestingStatusForLogRecord

      public LogRecord revertTestingStatusForLogRecord(UUID logRecordId)
      Revert testing status for log record and correct test run status as well.
      Parameters:
      logRecordId - the log record id
      Returns:
      the log record
    • findTestRunsUuidByExecutionRequestId

      public List<UUID> findTestRunsUuidByExecutionRequestId(UUID executionRequestId)
      Get list of Test Run id's by Execution Request id.
      Parameters:
      executionRequestId - Execution Request id.
      Returns:
      list of Test Run id's.
    • getTestRunForNodeTree

      public TestRun getTestRunForNodeTree(UUID testRunId)
      Return test run with not all fields.
      Parameters:
      testRunId - for find test run
      Returns:
      found test run
    • findTestRunExecReqIdByUuid

      public TestRun findTestRunExecReqIdByUuid(UUID testRunId)
      Return TR with field 'executionRequestId' only.
      Parameters:
      testRunId - for find TR
      Returns:
      found test run
    • updateTestRunsWithJiraTickets

      public void updateTestRunsWithJiraTickets(List<JiraTicketUpdateRequest> updateRequests)
      Update test runs with jira tickets keys.
      Parameters:
      updateRequests - - jira ticket update request
    • findLogRecordsWithValidationParamsAndStatusByTrId

      public List<LogRecord> findLogRecordsWithValidationParamsAndStatusByTrId(UUID testRunId)
      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

      public List<TestingReportLabelParam> getTestRunValidationLabels(UUID testRunId)
      Get test run validation labels.
      Parameters:
      testRunId - test run identifier
      Returns:
      label params list
    • unsetRootCauseForLinkedTestRuns

      public void unsetRootCauseForLinkedTestRuns(UUID rootCauseId)
      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 search
      testingStatuses - 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 search
      testingStatuses - 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 search
      testingStatuses - 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 search
      testingStatuses - for search
      Returns:
      list of TR-s
    • setFailureReasonToTestRuns

      public List<TestRun> setFailureReasonToTestRuns(TestRunsFailureReasonSetBulkRequest request)
      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

      public TestRun 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.
      Parameters:
      uuid - of TR
      testingStatuses - 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 - testRun
      testingStatuses - is new browser names
      browserNames - is new browser names
      Returns:
      updated TestRun
    • getTestRunsRatesWithFailedLr

      public List<TestRunsRatesResponse> getTestRunsRatesWithFailedLr(UUID executionRequestId)
      Get TR-s with first failed LR.
      Parameters:
      executionRequestId - ER id
      Returns:
      TR-s with failed LT
    • findAllByUuidInAndExecutionStatusIn

      public List<TestRun> findAllByUuidInAndExecutionStatusIn(List<UUID> testRunIds, List<ExecutionStatuses> list)
    • finishTestRun

      public void finishTestRun(TestRun testRun, boolean isDelayed)
      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

      public void setCommentToTestRuns(TestRunsCommentSetBulkRequest request)
      Bulk set comments to test runs.
      Parameters:
      request - input data request
    • setFinalTestRuns

      public void setFinalTestRuns(SetBulkFinalTestRuns request)
      Bulk set Test Runs as Final.
    • getCountLrsForCurrentEr

      public Long getCountLrsForCurrentEr(UUID executionRequestId)
      Get count of LR-s for current ER.
      Parameters:
      executionRequestId - for found TR-s
      Returns:
      count of LR-s
    • findTestRunsWithScreenshotsByExecutionRequestId

      public List<TestRun> findTestRunsWithScreenshotsByExecutionRequestId(UUID executionRequestId)
    • 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

      public List<TestRunResponse> labelsPathSearch(LabelsPathSearchRequest searchRequest)
      Searches test runs by execution request id and labels.
      Parameters:
      searchRequest - search request
      Returns:
      test runs with ids and names
    • getAllContextVariables

      public List<ContextVariable> getAllContextVariables(UUID testRunId)
      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