Forum Discussion

michelch's avatar
michelch
Frequent Visitor
4 years ago

How to get Virtual Services working in ReadyApi 3.4.5

Hello,

 

We are using Soap & Rest Mocks (Virtual Services) for local testing.

 

Now we want to run those test within our Jenkins environment, so a remote environment.
For that we created a Dev environment configuration in ReadyApi.
Within Jenkins we execute the tests using the SoapUI Pro plugin including a reference to the Dev profile.
SoapUIPro ( pathToTestrunner: '/opt/SmartBear/ReadyAPI-3.4.0/bin/testrunner.sh', pathToProjectFile: '/var/lib/jenkins/workspace/IntegrationTests/pasfoto_integration_tests', testSuite: '', testCase: '', testSuiteTags: '', projectPassword: '', environment: 'Dev' )

Previously we used SoapUI and deployed the Mocks as a WAR in Jetty, which worked fluently.

But using ReadyApi we can't get this to work with creating a WAR from the Virtual Service.
When deploying this to Jetty we get a groovy library issue. When changing groovy from 3.0.0->2.24 this is fixed, but then we ran into antother issue.
java.lang.UnsupportedClassVersionError: com/eviware/soapui/mockaswar/MockAsWarServlet has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 (unable to load class [com.eviware.soapui.mockaswar.MockAsWarServlet])

So it looks that won't work.

 

The question is actually, what is neede to get our Virtual Servers running into a remote environment? Or isn't this possible without the VirtServers Pro functionality for which we don't have a license. Is it true that generating a WAR also isn't working anymore with ReadyApi.