I am working on "Automated Testing for expression rules" through SAIL Interface. In my Process Model Start Rule Test (Application) functions returns an Id and I am fetching the result using a!testRunResultForId() function. After fetching the result it gives out TestRunResult which internally owns the data in several data types such as(ApplicationTestResult,ObjectTestResult, TestCaseResult) . Now my problem is how to extract the test case result data from ObjectTestResult as they comes out as Arrays for multiple Test cases.
Kindly help me out. Thanks in advance.
@Guruprakash , You could try this.. 1.For failed test cases, a!forEach(a!testRunResultForId(pv!TestRunId).applicationTestResults.problemObjectsTestResult,fv!item.testCasesResult) 2.For passed test cases, a!forEach(a!testRunResultForId(pv!TestRunId).applicationTestResults.passObjectsTestResult,fv!item.testCasesResult) In case of multiple applicationTestResults, use MNI. Hope it will work for you.
Discussion posts and replies are publicly visible
© 2020 Appian. All rights reserved.