Ask a Question

Log test step response and assertions in SoapUI OpenSource

SOLVED
gurpreet31
Occasional 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.
1 ACCEPTED SOLUTION

Accepted Solutions
nmrao
Community Hero

Re: Log test step response and assertions in SoapUI OpenSource

Which 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/#...


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.


Regards,
Rao.

View solution in original post

2 REPLIES 2
nmrao
Community Hero

Re: Log test step response and assertions in SoapUI OpenSource

Which 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/#...


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.


Regards,
Rao.

View solution in original post

gurpreet31
Occasional Contributor

Re: Log test step response and assertions in SoapUI OpenSource

Thank you for the guidance.
cancel
Showing results for 
Search instead for 
Did you mean: