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.
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.
The link is really old, you can find the app on the appmarket
In Appian 20.2 you can run tests directly from your Compare and Deploy screen: https://docs.appian.com/suite/help/20.2/Appian_Release_Notes.html#review-test-coverage-during-deployment
Discussion posts and replies are publicly visible
© 2020 Appian. All rights reserved.