ContributionsMost RecentMost LikesSolutionsRe: Unknown Swagger version error during import By the way, I forgot to mention that the file I'm trying to import is an Open API version 3.0.1 file Re: Unknown Swagger version error during import There is no plugins folder in that path.I think it might bedue to company restrictions. Re: Unknown Swagger version error during import Hi, I'm using Ready API 2.4.0 on Windows. I checked the lib folder, and found the following jar files. Is this what you were asking to check? Unknown Swagger version error during import Hi All, I'm trying to import a Swagger file v2.0 in ReadtyAPI, but I'm getting an error "java.lang.RuntimeException: Unknown Swagger Version: null" as below I'm not able to install the plugin as well from the Plugin manager due to company restrictions. I can only see the installed plugins, and available plugins are not displayed as below Any idea why this swagger import is failing? If it's due to the missing plugin, is there an alternative way to add it? Thanks Re: MongoDB connection working in ReadyAPI but not in SoapUI free version Hi, Yes, you're right. I was adding it to the wrong folder. When I added it to the lib folder, the connection was working. Thanks Harman MongoDB connection working in ReadyAPI but not in SoapUI free version Hi All, I have a project being used in both ReadyAPI and SoapUI 5.4.0, and I'm using MongoDB. However, the mongoDB connection is working in ReadyAPI but not in SoapUI. I have copied the jar files in the bin/ext folder already. This is how I'm connecting to Mongo: import com.gmongo.GMongo def mongo = new GMongo('127.0.0.1:27017'); def db = mongo.getDB('test'); I get the following when I try to connect to the DB: ERROR:java.lang.NoClassDefFoundError: com/mongodb/ServerAddress java.lang.NoClassDefFoundError: com/mongodb/ServerAddress at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getDeclaredConstructors(Unknown Source) at org.codehaus.groovy.reflection.CachedClass$2$1.run(CachedClass.java:74) at java.security.AccessController.doPrivileged(Native Method) at org.codehaus.groovy.reflection.CachedClass$2.initValue(CachedClass.java:71) at org.codehaus.groovy.reflection.CachedClass$2.initValue(CachedClass.java:69) at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:49) at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:36) at org.codehaus.groovy.reflection.CachedClass.getConstructors(CachedClass.java:268) at groovy.lang.MetaClassImpl.<init>(MetaClassImpl.java:218) at groovy.lang.MetaClassImpl.<init>(MetaClassImpl.java:228) at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.createNormalMetaClass(MetaClassRegistry.java:171) at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.createWithCustomLookup(MetaClassRegistry.java:161) at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.create(MetaClassRegistry.java:144) at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:253) at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:285) at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:257) at org.codehaus.groovy.runtime.InvokerHelper.getMetaClass(InvokerHelper.java:875) at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallConstructorSite(CallSiteArray.java:87) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247) at Script1.run(Script1.groovy:3) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:90) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:141) at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:250) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: com.mongodb.ServerAddress at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Any help why this is failing? SolvedRe: Set endpoint using groovy script which works in Ready API and Soap UI free version Thank you!! It works perfectly in both ReadyAPI and SoapUI!! Set endpoint using groovy script which works in Ready API and Soap UI free version Hello, I have a project which is being run on both Ready API and Soap UI free version. Since, Soap UI free version does not have the "Environment" feature, I need to set it dynamically using groovy script which I'm doing using this: testRunner.testCase.getTestStepByName("xxx").getTestRequest().setEndpoint("myURL") However, this is not setting my endpoint in ReadyAPI, and if I remove the environments from ReadyAPI, I get the pop-up saying my endpoint is not set. All my calls in one test case have different URLs. So, I need to do this in a groovy script before every test step. Any suggestions on how I could make this work which would be compatible for both ReadyAPI and SoapUI free version? SolvedRe: Groovy script not working in SoapUI but works in ReadyAPI Hello, Yes, that was exactly the problem. I figured it out as well. Once I copied the mongo jar files in the /bin/ext folder for SoapUI, my project worked. Thanks for your help!!! :-) Groovy script not working in SoapUI but works in ReadyAPI Hi, I have a project which works in ReadyAPI v2.4.0. I want to run the project in SoapUI-5.4.0, but the groovy script to connect to Mongo fails at the first. The DB setup is the same. I'm not sure why it's failing. Any help is appreciated!! Here's the beginning of the script: import com.gmongo.GMongo def mongo = new GMongo('127.0.0.1:27017'); def db = mongo.getDB('collection'); Here's the error message I get: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script9.groovy: 1: unable to resolve class com.gmongo.GMongo @ line 1, column 1. import com.gmongo.GMongo ^ org.codehaus.groovy.syntax.SyntaxException: unable to resolve class com.gmongo.GMongo @ line 1, column 1. at org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:149) at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1225) at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:178) at org.codehaus.groovy.control.CompilationUnit$11.call(CompilationUnit.java:651) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:931) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:593) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:542) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:694) at groovy.lang.GroovyShell.parse(GroovyShell.java:706) at groovy.lang.GroovyShell.parse(GroovyShell.java:742) at groovy.lang.GroovyShell.parse(GroovyShell.java:733) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:136) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:87) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:141) at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:250) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 1 error Solved