네임스페이스: Microsoft.Azure.Workflows.UnitTesting.Definitions
이 클래스는 TestWorkflowRunActionResult
단위 테스트 실행 중에 실행되는 표준 논리 앱 워크플로에 대한 루프 반복 작업의 결과를 나타내도록 클래스를 확장합니다. 이러한 작업은 For 각 루프 또는 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);
}
속성
이름 | 설명 | 유형 | 필수 |
---|---|---|---|
이름 | 작업 이름 | 문자열 | 예 |
입력 | 작업 실행 입력 | JToken | 아니오 |
출력물 | 작업 실행 출력 | JToken | 아니오 |
코드 | 작업 상태 코드 | 문자열 | 아니오 |
상태 | 작업 상태 | TestWorkflowStatus | 예 |
오류 | 작업 오류 | TestErrorInfo | 아니오 |
ChildActions | 중첩된 작업 결과 | <사전 문자열, TestWorkflowRunActionResult> | 아니오 |
반복 | 반복 작업 결과 | TestWorkflowRunActionRepetitionResult | 아니오 |
IterationItem | 반복 항목 | TestIterationItem | 아니오 |
관련 콘텐츠
- ActionMock 클래스 정의
- TriggerMock 클래스 정의
- TestActionExecutionContext 클래스 정의
- TestExecutionContext 클래스 정의
- TestIterationItem 클래스 정의
- TestWorkflowRun 클래스 정의
- TestErrorInfo 클래스 정의
- TestErrorResponseAdditionalInfo 클래스 정의
- TestWorkflowOutputParameter 클래스 정의
- TestWorkflowRunActionResult 클래스 정의
- TestWorkflowRunTriggerResult 클래스 정의
- TestWorkflowStatus 열거형 정의
- UnitTestExecutor 클래스 정의