In 10.5, the endedState is returning as Boolean.
According to documentation the endedState should come back as a string of these values: ['PASSED', 'FAILED', 'ABORTED', 'FAILED_TO_STAGE', 'RUNNING', 'UNKNOWN']
Release : 10.5
Component : CA Application Test