CI/CD: Automated test a!startRuleTestsApplications via Web Api call returns incorrect test result

Hi everyone. I have created a web api call and run this function a!startRuleTestsApplications as part of my CI/CD (using Jenkins) practices. However, i noticed that Appian is not returning me the test results correctly.

Example, in my API response, it says Test A in expression rule A fails with this message:

"Failure/Error: Error at input: paymentEvaluation" where paymentEvaluation is of Any Type data type

But when i ran manually by going into the rule A in Appian and click 'Run All Tests', it shows me success. Im assuming the error happens via API call is because in my Test A input expression, i am calling another rule to return me the data as my input. 

 

Other than hardcoding the expected values in the Test Case expression, does anyone know why this is happening and what can I do to work around it?

  Discussion posts and replies are publicly visible