Table of Contents

Class TestCaseExecutor

Namespace
Microsoft.Accordant
Assembly
Accordant.Operations.dll
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

context TestingContext

The testing context with registered services.

testCases IList<ConcurrentTestCase>

The test cases to execute.

initialState IState

The initial state for each test.

options TestExecutionOptions

Execution 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

context TestingContext
stateProfile StateProfile
operationCallName string
operation IOperation
request object
options TestExecutionOptions
emitDiagnosticLogsDuringValidation bool

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

context TestingContext

The testing context with registered services.

testCases IList<SequentialTestCase>

The test cases to execute.

initialState IState

The initial state for each test.

options TestExecutionOptions

Execution options.

Returns

Task<IList<TestCaseExecutionResult>>

The execution results for each test case.