مشاركة عبر


فئة TestWorkflowRunActionRepetitionResult

مساحة الاسم: Microsoft.Azure.Workflows.UnitTesting.Definitions

تعمل هذه الفئة على TestWorkflowRunActionResult توسيع الفئة لتمثيل النتيجة من إجراء في تكرار حلقي لسير عمل تطبيق منطقي قياسي يتم تشغيله أثناء تنفيذ اختبار الوحدة. يمكن أن تظهر مثل هذه الإجراءات داخل لكل تكرار حلقي أو حتى التكرارات الحلقية.

الاستخدام

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 لا
الإجراءات الفرعية نتائج الإجراء المتداخلة سلسلة القاموس<، TestWorkflowRunActionResult> لا
التكرار نتائج إجراء التكرار TestWorkflowRunActionRepetitionResult لا
عنصر التكرار عنصر التكرار TestIterationItem لا