david2
4 years agoOccasional Contributor
How to Print to Assertion Log?
In ReadyAPI/SoapUI Pro, when a test case fails, I would like to print a custom message to the assertion log (see the "Compare" tab), as well as printing the endpoint that has failed. Is this possible? Or even simply printing the variables from the DataSource?
Thanks. Here two examples fail, pass cases respectively.
//this will show the endpoint as assertion fails assert 1==0, context.expand( '${DataSource#EndPoint}' )
//Below doesnot show anything as assertion passes assert 1==1, context.expand( '${DataSource#EndPoint}' )