Class HttpTestEngine
- java.lang.Object
-
- com.chutneytesting.engine.api.execution.HttpTestEngine
-
- All Implemented Interfaces:
TestEngine
@RestController @CrossOrigin(origins="*") public class HttpTestEngine extends Object implements TestEngine
Exposes Scenario execution HTTP service. Used by agents only for the moment
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXECUTION_URL
-
Constructor Summary
Constructors Constructor Description HttpTestEngine(TestEngine embeddedTestEngine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StepExecutionReportDtoexecute(ExecutionRequestDto request)LongexecuteAsync(ExecutionRequestDto request)voidpauseExecution(Long executionId)io.reactivex.Observable<StepExecutionReportDto>receiveNotification(Long executionId)voidresumeExecution(Long executionId)voidstopExecution(Long executionId)
-
-
-
Field Detail
-
EXECUTION_URL
public static final String EXECUTION_URL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HttpTestEngine
public HttpTestEngine(TestEngine embeddedTestEngine)
-
-
Method Detail
-
execute
@PreAuthorize("hasAuthority(\'SCENARIO_EXECUTE\')") @PostMapping(path="/api/scenario/execution/v1", consumes="application/json", produces="application/json") public StepExecutionReportDto execute(@RequestBody ExecutionRequestDto request)- Specified by:
executein interfaceTestEngine
-
executeAsync
public Long executeAsync(ExecutionRequestDto request)
- Specified by:
executeAsyncin interfaceTestEngine
-
receiveNotification
public io.reactivex.Observable<StepExecutionReportDto> receiveNotification(Long executionId)
- Specified by:
receiveNotificationin interfaceTestEngine
-
pauseExecution
public void pauseExecution(Long executionId)
- Specified by:
pauseExecutionin interfaceTestEngine
-
resumeExecution
public void resumeExecution(Long executionId)
- Specified by:
resumeExecutionin interfaceTestEngine
-
stopExecution
public void stopExecution(Long executionId)
- Specified by:
stopExecutionin interfaceTestEngine
-
-