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