Forum Discussion

magi-i-luften's avatar
magi-i-luften
Occasional Contributor
7 years ago
Solved

How to get actual value for assertion in script - okay to get expected value with getExpectedContent

Hi forum   I'm facing a problem and would like to figure out if my approach is wrong.   Functionality: In ReadyAPI I have a groovy-teststep to control all of my REST webservice-calls. My webser...
  • Radford's avatar
    7 years ago

    I'm not sure if you can get the actual value from the test step assertion, to the best of my knowledge this is just the definition of the assertion.

     

    What you want comes from the test step result, have you investigated what the result messages return to see if they provide what you need, something like:

     

    resultStepCallService.getMessages().each(){ message ->
    	log.error('Error message: ' + message) 
    }