gurpreet31
4 years agoOccasional Contributor
Log test step response and assertions in SoapUI OpenSource
I wish to log all the assertions and the test step responses in the soapui logs. Can you please help. Thank you.
- 4 years agoWhich type of assertion are you using?
How do you see the logs for them currently?
What do you like to improve to be precise?
Regarding logging the response for each step, one needs to implement the respective listeners.
Please look at "ist of events". But these are available out-of-the-box in pro software.
https://support.smartbear.com/readyapi/docs/testing/handling-events.html
Also please see
https://www.soapui.org/docs/extension-plugins/old-style-extensions/developing-old-style-extensions/#2-Event-Listeners-in-soapUI
If you want the same in the Open Source, please use below library and implement appropriate method.
https://github.com/nmrao/soapuiExtensions
Those methods are called when certain event has happened.
For example, after each Request, log response. You need to write code either in pro or free to log the response.
You can use SubmitListerner.afterSubmit and write script in your case.