Forum Discussion
Hi meetu1,
I think this approach of asserting the response at Test Suite Level is not good because you will come to know about any Environment down or other issues after the execution of each and every Test Case.
Best Approach is assert each and every Request you are adding into Test Case.
For the Solution of your Scenario:
Write a groovy class with assertions that you want to include , make a jar and place it in the {{..\bin\ext}} folder of SoapUI/ReadyAPI.
Restart SoapUI/ReadyAPI.
Go to the request step and add script assertions, import groovy class and invoke the assertion method written in jar.
Do Like if you Find this as solution
Thanks,
Himanshu Tayal
- meetu17 years agoNew Contributor
Thanks HimanshuTayal I already have script assertions at the request level but was wondering if there is any way to add them at project level as all my requests have similar assertions so instead of adding assertion at each request if I could use some event listener which would assert the response of each request.