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.
Discussion posts and replies are publicly visible
Have you tried using the shared component? Sounds like that is exactly what you are building.
@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.
I also have a requirement to read all test results and display those in a grid /graph . I tried using the shared component but I am not able to open this link it gives me 403 error. Could you please tell me if there is a smart service written already using which we can covert this nested results easily.
© 2023 Appian. All rights reserved.