ContributionsMost RecentMost LikesSolutionsRe: In jenkins external groovy scripts dont find jars to import Hi Nastya_Khovrina , sorry for late response. in my local drive directory structure looks like test-automation/xxx/ProjectA Inside projectA, corresponding project.xml is present with multiple test cases. Each test case has some groovy scripts. In local machine, we manually copy the required dependency under this location C:\Program Files (x86)\SmartBear\SoapUI-5.4.0\lib and it works fine. I added a seperate groovy script under test-automation/groovy-lib/ . I call this script from the test cases present under test-automation/xxx/ProjectA. In jenkins, whenGroovy script which is present under project.xml, it finds all the dependency(common groovy lib and also in house jars). And In jenkins, for all of our internal Jars, we use 'Additional classpath' under 'build environment' step. They work all fine. From the test case, the groovy script CreateUser.groovy is getting called, this is present under test-automation/groovy-lib/ does not find the related dependency. But when that script is present under test-automation/xxx/ProjectA/ProjectA.xml it finds all the dependencies. Any suggestion would be highly appreciated. Thank you. Thanks, Arindam Re: In jenkins external groovy scripts dont find jars to import Nastya_Khovrina Thank you very much for your reply. Sorry for late reply. This does not help, I think, I might have raised the question under SOAP UI pro, instead of cummunity edtition. Let me try to elaborate more, we use soap ui community version, until now it has worked fine. In jenkins, for all of our internal Jars, we use 'Additional classpath' under 'build environment' step. So, the groovy scripts which are present under multiple projectX.xml, do find the related dependencies properly. As soon as, there is an independent groovy script, which is outside the project xml, can not find those dependencies. Any lead would be highly appreaciated. In jenkins external groovy scripts dont find jars to import The groovy scripts which are present under project.xml does find all jars to be imported which are present I pulled out common functions and built a seperate script library and placed it outside the project xml, and call those methods from a groovy script present inside project.xml: the dependenices could not be imported. INFO [SoapUI] Adding [/***/jenkins/home/workspace/******Regression_Maven/***soapui-integration/ext/xyz.jar] to extensions classpath All those jars are required seperately are present in the workspace, but the seperate groovy script is unable to find it. file:/***/jenkins/home/workspace/*****-Regression_Maven/****-soapui/****-soapui-projects/Regression_****/groovy-lib/***/Create***.groovy: 7: unable to resolve class xyz.xyzUtility @ line 7, column 1. import xyz.xyzUtility Any suggession would be highly appreciated. Re: Multiple projects with the soapui plugin.redfish4ktc2 It seems the problem has been introduced with version 4.6.3 of 'soapui-pro-maven-plugin'. We use SOAP UI pro, the licensed version to manage our projects. I will do the test with runnertype parameter. The goal 'test-multi' is not yet available for the latest soapui pro version(4.6.4), that's the reason, I am looking forward to 'maven-soapui-extension-plugin' version 4.6.3.1. Wondering, if is there any plan to fix the problem with 'SoapUIMultiThreadedHttpConnectionManager.setMaxTotal' soon? Thank you.Re: Multiple projects with the soapui plugin.redfish4ktc2 Thank you for your response. I did run with -e option, which resulted the stacktrace(part of it) : [ERROR] Failed to execute goal com.github.redfish4ktc.soapui:maven-soapui-extension-plugin:4.6.3.1:test (default) on project soapui-maven2-plugin: Execution default of goal com.github.redfish 4ktc.soapui:maven-soapui-extension-plugin:4.6.3.1:test failed: An API incompatibility was encountered while executing com.github.redfish4ktc.soapui:maven-soapui-extension-plugin:4.6.3.1:test: java.lang.NoSuchMethodError: com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager.setMaxTotal(I)V at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214) at org.apache.maven.cli.MavenCli.main(MavenCli.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal com.github.redfish4ktc.soapui:maven-soapui-extension-plugin:4.6.3.1:test failed: An API incompatibility was encountered while executing com.github.redfish4ktc.soapui:maven-soapui-extension-plugin:4.6.3.1:test: java.lang.NoSuchMethodError: com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThr eadedHttpConnectionManager.setMaxTotal(I)V Wondering, if 'SoapUIMultiThreadedHttpConnectionManager' has been properly build with the latest stable version? I checked with soap-ui-pro-maven-plugin version, 4.6.1 and it worked all fine, but with that version, I think, I can not use the latest feature of including/excluding project files by their pattern. I took the latest available version of soap-ui-pro-maven-plugin (version 4.6.4). Here I get the same error as I faced with 'maven-soapui-extension-plugin' version 4.6.3.1 missing dependencies and then the same error mentioned before. In my code, I have groovy, jdbc dependencies, which I added manually. Would you suggest any other steps which I should do; having the new feature of executing multiple projects with include and exclude option, would be really helpful. Thank you.Re: Multiple projects with the soapui plugin.redfish4ktc2 Thank you for your response. This is what I have done : - Used stable version 4.6.3.1 - Removed all the manually downloaded and disabled the dependency lines(which I added at the beginning) - Used the required plug in repositories(did it previously as well, seeing the wiki), which looks like : <pluginRepositories> <pluginRepository> <id>smartbear-sweden-plugin-repository</id> <url>http://www.soapui.org/repository/maven2/</url> </pluginRepository> <pluginRepository> <id>sonatype-snapshots</id> <url>http://oss.sonatype.org/content/repositories/snapshots</url> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>false</enabled> </releases> </pluginRepository> </pluginRepositories> - Then executed my test, I get missing class defs.. so I enabled the dependency lines which were : <dependency> <groupId>commons-cli</groupId> <artifactId>commons-cli</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>net.sf.squirrel-sql.thirdparty-non-maven</groupId> <artifactId>com-fifesoft-rsyntaxtextarea</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</artifactId> <version>2.2.2</version> </dependency> <dependency> <groupId>org.apache.xmlbeans</groupId> <artifactId>xmlbeans</artifactId> <version>2.6.0</version> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.1-alpha2</version> </dependency> <dependency> <groupId>com.jgoodies</groupId> <artifactId>looks</artifactId> <version>2.2.2</version> </dependency> <dependency> <groupId>com.jgoodies</groupId> <artifactId>jgoodies-forms</artifactId> <version>1.6.0</version> </dependency> - Now I am getting the same problem as before, Caused by: org.apache.maven.plugin.PluginContainerException: An API incompatibility was encountered while executing com.github.redfish4ktc.soapui:maven-soapui-extension-plugin:4.6.3.1:test: ava.lang.NoSuchMethodError: com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager.setMaxTotal(I)V Would you recommend any other steps, which I should do? Thank you.Re: Multiple projects with the soapui plugin.Hi, Sorry for the late response.. Thank you very much for your effort. I just tried with '4.6.3.1-SNAPSHOT'. I kind of needed to manually all the dependencies one after another and after that I landed up with this problem : Caused by: org.apache.maven.plugin.PluginContainerException: An API incompatibility was encountered while executing com.github.redfish4ktc.soapui:maven-soapui-extension-plugin:4.6.3.1-SNAPSHO T:test: java.lang.NoSuchMethodError: com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager.setMaxTotal(I)V java.lang.NoSuchMethodError: com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager.setMaxTotal(I)V Any suggestion? I am really looking forward to use the <include>/<exclude> feature. Thank you.Re: Multiple projects with the soapui plugin.Looking forward to see the solution. Thanks very much for your initiative.Re: Multiple projects with the soapui plugin.redfish4ktc2 : What I meant : say 50 soap ui projects are marked as High Priority. So if I wish to execute all the high priority soap ui projects, i just specify it in pom some how(ofcourse not by adding all the project names) or by using jenkins. 'LabeledTestGroupsPublisher' is just plug in to group test results. In simple word, I was looking for some simple solution to execute multiple soap ui projects. Soap UI really sucks with multiple project execution and it seems the problem is known since 2010.Re: Multiple projects with the soapui plugin.I am new to SOAP UI, at my company its heavily used. After spending couple of days with SOAP UI test execution, I get to realize that it's really problematic not to have a feature which would allow to execute multiple soap ui projects together from maven rather adding each project details in the pom.xml. Wondering, is there any way to add any group name like 'high Priority', 'regression' in the <project-name>.xml, so that I can use 'LabeledTestGroupsPublisher' plug in from Jenkins.