Class ScenarioExecutionEngineAsync
- java.lang.Object
-
- com.chutneytesting.server.core.domain.execution.ScenarioExecutionEngineAsync
-
public class ScenarioExecutionEngineAsync extends Object
-
-
Constructor Summary
Constructors Constructor Description ScenarioExecutionEngineAsync(ExecutionHistoryRepository executionHistoryRepository, ServerTestEngine executionEngine, ExecutionStateRepository executionStateRepository, ChutneyMetrics metrics, TestCasePreProcessors testCasePreProcessors, com.fasterxml.jackson.databind.ObjectMapper objectMapper)ScenarioExecutionEngineAsync(ExecutionHistoryRepository executionHistoryRepository, ServerTestEngine executionEngine, ExecutionStateRepository executionStateRepository, ChutneyMetrics metrics, TestCasePreProcessors testCasePreProcessors, com.fasterxml.jackson.databind.ObjectMapper objectMapper, long retentionDelaySeconds, long debounceMilliSeconds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Longexecute(ExecutionRequest executionRequest)Longexecute(ExecutionRequest executionRequest, Optional<org.apache.commons.lang3.tuple.Pair<String,Integer>> executionDataSet)Execute a test case with ExecutionEngine and store StepExecutionReport.io.reactivex.Observable<ScenarioExecutionReport>followExecution(String scenarioId, Long executionId)voidpause(String scenarioId, Long executionId)voidresume(String scenarioId, Long executionId)voidsetDebounceMilliSeconds(long debounceMilliSeconds)voidsetRetentionDelaySeconds(long retentionDelaySeconds)voidstop(String scenarioId, Long executionId)
-
-
-
Constructor Detail
-
ScenarioExecutionEngineAsync
public ScenarioExecutionEngineAsync(ExecutionHistoryRepository executionHistoryRepository, ServerTestEngine executionEngine, ExecutionStateRepository executionStateRepository, ChutneyMetrics metrics, TestCasePreProcessors testCasePreProcessors, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
ScenarioExecutionEngineAsync
public ScenarioExecutionEngineAsync(ExecutionHistoryRepository executionHistoryRepository, ServerTestEngine executionEngine, ExecutionStateRepository executionStateRepository, ChutneyMetrics metrics, TestCasePreProcessors testCasePreProcessors, com.fasterxml.jackson.databind.ObjectMapper objectMapper, long retentionDelaySeconds, long debounceMilliSeconds)
-
-
Method Detail
-
execute
public Long execute(ExecutionRequest executionRequest)
-
execute
public Long execute(ExecutionRequest executionRequest, Optional<org.apache.commons.lang3.tuple.Pair<String,Integer>> executionDataSet)
Execute a test case with ExecutionEngine and store StepExecutionReport.- Parameters:
executionRequest- with the test case to execute and the environment chosen- Returns:
- execution id.
-
followExecution
public io.reactivex.Observable<ScenarioExecutionReport> followExecution(String scenarioId, Long executionId)
-
setRetentionDelaySeconds
public void setRetentionDelaySeconds(long retentionDelaySeconds)
-
setDebounceMilliSeconds
public void setDebounceMilliSeconds(long debounceMilliSeconds)
-
-