cancel
Showing results for 
Search instead for 
Did you mean: 

Error in ReadyAPI! logs when trying to execute a Setup Script before running a project

amishasher
New Contributor

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;

 

Snippet from the POM file

<dependency>
<groupId>com.smartbear</groupId>
<artifactId>ready-api-core</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>com.smartbear</groupId>
<artifactId>ready-api-runners</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>com.smartbear</groupId>
<artifactId>ready-api-soapui-ng</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>com.smartbear</groupId>
<artifactId>ready-api-ui</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>com.smartbear</groupId>
<artifactId>ready-api-soapui-pro</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>com.smartbear</groupId>
<artifactId>ready-api-projects</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>com.smartbear</groupId>
<artifactId>ready-api-license</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>com.smartbear</groupId>
<artifactId>ready-api-module-base</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>com.smartbear</groupId>
<artifactId>ready-api-service-v</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>com.smartbear</groupId>
<artifactId>ready-api-service-v-core</artifactId>
<version>1.6.0</version>
</dependency>

 

 

2 REPLIES 2
NBorovykh
Moderator

Re: Error in ReadyAPI! logs when trying to execute a Setup Script before running a project

Hello,

 

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.↓↓↓↓↓
amishasher
New Contributor

Re: Error in ReadyAPI! logs when trying to execute a Setup Script before running a project

Hi Natalie,

                Sorry for the late reply.

I tried importing the dependency from the package that you mentioned

 

import com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner;

 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.

 

Thanks a lot

 

Amish

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors