Edit

Share via


TestWorkflowRunActionResult class

Namespace: Microsoft.Azure.Workflows.UnitTesting.Definitions

This class represents the result from an action in a Standard logic app workflow run during unit test execution. This result contains the action execution details. The class supports results from actions in loop iterations and nested actions.

Usage

// Check action status and code
Assert.AreEqual(expected: "200", actual: testFlowRun.Actions["Call_External_Systems"].Code);
Assert.AreEqual(expected: TestWorkflowStatus.Succeeded, actual: testFlowRun.Actions["Call_External_Systems"].Status);

// Check action output value
Assert.AreEqual(expected: "Test", actual: testFlowRun.Actions["Call_External_Systems"].Outputs["outputParam"].Value<string>());

// Check action error
Assert.IsNull(testFlowRun.Actions["Call_External_Systems"].Error);

Properties

Name Description Type Required
Name The action name string Yes
Inputs The action execution inputs JToken No
Outputs The action execution outputs JToken No
Code The action status code string No
Status The action status TestWorkflowStatus Yes
Error The action error TestErrorInfo No
ChildActions The nested action results Dictionary<string, TestWorkflowRunActionResult> No
Repetitions The repetition action results TestWorkflowRunActionRepetitionResult No