TestWorkflowRunActionRepetitionResult class

Namespace: Microsoft.Azure.Workflows.UnitTesting.Definitions

This class extends the TestWorkflowRunActionResult class to represent the result from an action in a loop iteration for a Standard logic app workflow run during unit test execution. Such actions can appear inside For each loops or Until loops.

Usage

var callExternalSystemsAction = testFlowRun.Actions["Call_External_Systems"];

for (int i=0; i<callExternalSystemsAction.Repetitions.Length; i++)
{
    var currActionRepetition = callExternalSystemsAction.Repetitions[i];

    // Check action repetition status and code
    Assert.AreEqual(expected: "200", actual: currActionRepetition.Code);
    Assert.AreEqual(expected: TestWorkflowStatus.Succeeded, actual: currActionRepetition.Status);

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

    // Check action repetition error
    Assert.IsNull(currActionRepetition.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
IterationItem The iteration item TestIterationItem No