Class TestCaseExecutor
public class TestCaseExecutor
- Inheritance
-
TestCaseExecutor
- Inherited Members
Methods
ExecuteConcurrentTestCases(TestingContext, IList<ConcurrentTestCase>, IState, TestExecutionOptions)
Executes the given concurrent test cases with the specified initial state. The provided context is used for all tests with registered services.
public static Task<IList<TestCaseExecutionResult>> ExecuteConcurrentTestCases(TestingContext context, IList<ConcurrentTestCase> testCases, IState initialState, TestExecutionOptions options)
Parameters
contextTestingContextThe testing context with registered services.
testCasesIList<ConcurrentTestCase>The test cases to execute.
initialStateIStateThe initial state for each test.
optionsTestExecutionOptionsExecution options.
Returns
- Task<IList<TestCaseExecutionResult>>
The execution results for each test case.
ExecuteOperationCallAsync(TestingContext, StateProfile, string, IOperation, object, TestExecutionOptions, bool)
This method calls an operation with the given request, retrying if needed and returns the response.
public static Task<(StateProfile, bool, string, object)> ExecuteOperationCallAsync(TestingContext context, StateProfile stateProfile, string operationCallName, IOperation operation, object request, TestExecutionOptions options, bool emitDiagnosticLogsDuringValidation = false)
Parameters
contextTestingContextstateProfileStateProfileoperationCallNamestringoperationIOperationrequestobjectoptionsTestExecutionOptionsemitDiagnosticLogsDuringValidationbool
Returns
- Task<(StateProfile, bool, string, object)>
ExecuteSequentialTestCases(TestingContext, IList<SequentialTestCase>, IState, TestExecutionOptions)
Executes the given sequential test cases with the specified initial state. The provided context is used for all tests with registered services.
public static Task<IList<TestCaseExecutionResult>> ExecuteSequentialTestCases(TestingContext context, IList<SequentialTestCase> testCases, IState initialState, TestExecutionOptions options)
Parameters
contextTestingContextThe testing context with registered services.
testCasesIList<SequentialTestCase>The test cases to execute.
initialStateIStateThe initial state for each test.
optionsTestExecutionOptionsExecution options.
Returns
- Task<IList<TestCaseExecutionResult>>
The execution results for each test case.