Error in ReadyAPI! logs when trying to execute a Setup Script before running a project
I have a soapui project that i build using maven. All the dependencies resolved, i was able to run using the soapui-maven plugin. Recently i switched to the SoapUI Pro plugin (needed to try the Environments feature), after resolving dependencies for the new soapui pro plugin i got it to work with the old *.xml soapui project. But when i build it using maven, i see the following error in the logs. I have a startup script that needs to be run before any of the testsuits within the project are executed. The script however, runs successfully and so does the rest of the project.
ERROR [errorlog] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script1.groovy: 1: unable to resolve class com.eviware.soapui.tools.SoapUITestCaseRunner @ line 1, column 1. import com.eviware.soapui.tools.SoapUITestCaseRunner;
Re: Error in ReadyAPI! logs when trying to execute a Setup Script before running a project
The R!API object model differs from the SoapUI Pro one. Now, the SoapUITestCaseRunner class resides in the com.smartbear.ready.cmd.runner package (ready-api-runners-<version>.jar).
So, to avoid the error you need to replace com.eviware.soapui.tools.SoapUITestCaseRunner with com.smartbear.ready.cmd.runner.SoapUITestCaseRunner in your script. Though, if your script works fine now, it looks like the mentioned class is unused, so you don't need to import it at all.
Natalie Customer Care Team
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
But i still get the same error and the test runs successfully. I created the project with the Non-Pro version (SoapUI 5.2.0) and then used SoapUI NG under Ready!API 1.7.0 to add the environment configurations. Not sure if that has something to do with the error that is being manifested. I've attached the test runner log in the attachments.