你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
命名空间:Microsoft.Azure.Workflows.UnitTesting.Definitions
此类扩展 TestWorkflowRunActionResult
类,表示在单元测试执行期间标准逻辑应用工作流运行的循环迭代中的作的结果。 此类作可以出现在 For each 循环或 Until 循环中。
用法
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);
}
性能
名称 | DESCRIPTION | 类型 | 必选 |
---|---|---|---|
名称 | 作名称 | 字符串 | 是的 |
输入 | 作执行输入 | JToken | 否 |
输出 | 作执行输出 | JToken | 否 |
代码 | 作状态代码 | 字符串 | 否 |
状态 | 作状态 | TestWorkflowStatus | 是的 |
错误 | 作错误 | TestErrorInfo | 否 |
ChildActions | 嵌套作结果 | <字典字符串,TestWorkflowRunActionResult> | 否 |
重复匹配 | 重复作结果 | TestWorkflowRunActionRepetitionResult | 否 |
IterationItem | 迭代项 | TestIterationItem | 否 |
相关内容
- ActionMock 类定义
- TriggerMock 类定义
- TestActionExecutionContext 类定义
- TestExecutionContext 类定义
- TestIterationItem 类定义
- TestWorkflowRun 类定义
- TestErrorInfo 类定义
- TestErrorResponseAdditionalInfo 类定义
- TestWorkflowOutputParameter 类定义
- TestWorkflowRunActionResult 类定义
- TestWorkflowRunTriggerResult 类定义
- TestWorkflowStatus 枚举定义
- UnitTestExecutor 类定义