How to set SoapUI project properties via Maven command line
I have a few project properies in SoapUI project. I also have those project properties overriddenin Maven pom.xml, for eg. ... <projectProperties> <value>propname1=propvalue1</value> <value>propname2=propvalue2</value> ... <value>propname9=propvalue9</value> </projectProperties> When running from command line using maven, SoapUI property values are overridden by the ones in Maven pom.xml, as expected. I need to run SoapUI from command line using Maven but needto use the properties specified in SoapUI project, not Maven. Is there any way to specify these properties in Maven command line? If not, is there any other solution? Versions: SoapUI Pro 5.1.2 maven-soapui-pro-plugin 4.5.1 I also found a related post (http://forum.soapui.org/viewtopic.php?t=20839) and tried to use the flag -Dsoapui.projectProperties but have not been successful. Since exact syntax is not specified in the post, I tried many variationsFor eg: - -Dsoapui.projectProperties.propname1.value="propvalue1" -Dsoapui.projectProperties.proname1="propvalue1"7.7KViews0likes3CommentsSoapUI NG Pro integration with Jenkins?
Ok, so I'm facing a SNI problem: opensource SoapUI 5.2.1 refuses to sendExtension server_name in the SSL handshake and as a result I getSSLHandshakeException. I did a bit of digging and opensource SoapUI 5.2.2 might have a fix for SNI - but I just can't find it at the official com.smartbear.soapui Maven repository, opensource SoapUI v5.2.2 is there at the github though but I can't seem to build it... SO with all that unnecessary hassleI've decided to give SoapUI NG Pro a go: but I don't get it how do I integrate your new fancy SoapUI NG Pro with Jenkins? Apart from shiny advertisement and happy-happy sales pitches I could find almost 0 information on actual Jenkins integration! Oh, I did find "Ready-API-jenkins-plugin" and that didn't work - did it mean to? According to that plugin description it's meant to run mockups and not SoapUI tests ?!! PS ...All I really need is a version of SoapUI which supports SNI (sends Extension server_name in the SSL handshake) and has a well documented (not well advertised) way of integrating with JenkinsSolved6.1KViews0likes8CommentsHow to get reporting at test step level instead of test case level what surefire currently provides
I am running my test via jenkins and i have surefire plugin which generates xml reports in my workspace. But this report has run status of all test suites and all test cases. Each test case will have failed test step information too. I want a way by which i can have run status of each test step whether failed or passed. Can some one help here if we can do this with surefire plugin or with some other way/plugin. Thanks a lot.4.4KViews0likes7CommentsSuppressing info logging when using a maven plugin
Hello, I am using the ready-api maven plugin to run tests. I have a composite project. I am trying to supress the logging and output file creation because it is filling up the filesystem on our jenkins build slave. <logger name="com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner" level="warn" additivity="false"> <appender-ref ref="STDOUT"/> </logger> Here is what I have tried, none of which seems to supress the info logging: - logback.xml in src/main/java/resources <- set the log level to warn for the SoapUIProTestCaseRunner - logback.xml in src/test/java/resources <- set the log level to warn for the SoapUIProTestCaseRunner - soapui-log4j.xml in src/main/java/resources <- set the log level to warn for the SoapUIProTestCaseRunner - soapui-log4j.xml in src/test/java/resources <- set the log level to warn for the SoapUIProTestCaseRunner I am wondering why the project is not picking up the logging level when I build it. We do not have the acess to SOAP_UI home directory to install the logging configuration there. So, that is not an option for us.Solved4.3KViews0likes9CommentsSU 5.1.2 Maven plugin RuntimeException:java.lang.ClassCastException:
Following problem ocurrs during execution of maven project with soapUi pro 5.1.2 plugin. Thanks in advance for help with this issue. RuntimeException:java.lang.ClassCastException: org.apache.xmlbeans.impl.xpath.saxon.XBeansXPath cannot be cast to org.apache.xmlbeans.impl.store.SaxonXBeansDelegate$SelectPathInterface] Pom file: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.tieto.soapUI</groupId> <artifactId>soapui-maven2-plugin</artifactId> <packaging>jar</packaging> <version>2.1</version> <name>HelenWSBasicMavenProject</name> <description>HelenWSBasicMavenProject</description> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <findbugs.version>2.5.2</findbugs.version> <checkstyle.version>2.9.1</checkstyle.version> <surefire.reportplugin.version>2.2</surefire.reportplugin.version> <cobertura.version>2.5.2</cobertura.version> </properties> <dependencies> <dependency> <groupId>com.fifesoft</groupId> <artifactId>rsyntaxtextarea</artifactId> <version>2.0.7</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency> </dependencies> <pluginRepositories> <pluginRepository> <id>codehausPluginRepository</id> <url>https://nexus.codehaus.org/content/groups/snapshots-group/org/codehaus/mojo/</url> </pluginRepository> <pluginRepository> <id>SmartBearPluginRepository</id> <url>http://www.soapui.org/repository/maven2/</url> </pluginRepository> <pluginRepository> <id>mvnPluginRepository</id> <url>http://mirrors.ibiblio.org/maven/mule/dependencies/maven2/</url> </pluginRepository> <pluginRepository> <id>apache.snapshots</id> <name>Apache Development Snapshot Repository</name> <url>https://repository.apache.org/content/repositories/snapshots/</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> </pluginRepositories> <licenses> <license> <name>Oracle Technology Network Development and Distribution License Terms</name> <url>http://www.oracle.com/technology/software/htdocs/distlic.html</url> </license> </licenses> <build> <plugins> <plugin> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-pro-maven-plugin</artifactId> <version>5.1.2</version> <dependencies> <dependency> <groupId>oracle</groupId> <artifactId>ojdbc14</artifactId> <version>10.2.0.2</version> </dependency> <dependency> <groupId>org.reflections</groupId> <artifactId>reflections</artifactId> <version>0.9.9-RC1</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>3.10-FINAL</version> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.6</version> </dependency> <dependency> <groupId>com.jgoodies</groupId> <artifactId>jgoodies-binding</artifactId> <version>2.7.0</version> </dependency> <dependency> <groupId>com.jgoodies</groupId> <artifactId>jgoodies-validation</artifactId> <version>2.4.2</version> </dependency> <dependency> <groupId>com.jgoodies</groupId> <artifactId>jgoodies-forms</artifactId> <version>1.6.0</version> </dependency> <dependency> <groupId>com.jgoodies</groupId> <artifactId>jgoodies-looks</artifactId> <version>2.5.2</version> </dependency> </dependencies> <executions> <execution> <phase>test</phase> <goals> <goal>test</goal> </goals> <configuration> <argLine>-Xms1024m -Xmx2048m -XX:smileytongue:ermSize=150m -XX:+HeapDumpOnOutOfMemoryError</argLine> <id>HelenWSBasicMavenProject</id> <projectFile>src/test/soapui/HelenWebServiceAutomation-soapui-project.xml</projectFile> <outputFolder>${project.build.directory}/surefire-reports</outputFolder> <junitReport>true</junitReport> <exportAll>true</exportAll> <printReport>true</printReport> <projectProperties> </projectProperties> <soapuiProperties> <property> <name>soapui.logroot</name> <value>${project.build.directory}/soapui-logs/</value> </property> <property> <name>soapui.ext.libraries</name> <value>ext</value> </property> <property> <name>soapui.scripting.library</name> <value>scripts</value> </property> <property> <name>soapui.home</name> <value>${env.SOAPUI_HOME}/bin</value> </property> </soapuiProperties> <inputProject /> <outputProject /> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-clean-plugin</artifactId> <version>2.6.1</version> <configuration> <filesets> <fileset> <directory>.</directory> <includes> <include>**/*.log</include> </includes> </fileset> <fileset> <directory>./report</directory> </fileset> </filesets> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>${findbugs.version}</version> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>${cobertura.version}</version> <configuration> <formats> <format>xml</format> </formats> </configuration> </plugin> </plugins> </build> <reporting> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>${findbugs.version}</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>${checkstyle.version}</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <version>${surefire.reportplugin.version}</version> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>${cobertura.version}</version> <configuration> <formats> <format>xml</format> </formats> </configuration> </plugin> </plugins> </reporting> <organization> <name>patios.com</name> </organization> </project> Jenkins error: [ERROR] ----------------- Messages ------------------------------ [ERROR] [Check for existence of [ReturnCode]] XPathContains assertion failed for path [declare namespace ns1='http://schemas.forum.com/ForumService/V150'; [ERROR] exists( //ns1:CheckIsAliveOutput/ns1:ReturnCode)] : RuntimeException:java.lang.ClassCastException: org.apache.xmlbeans.impl.xpath.saxon.XBeansXPath cannot be cast to org.apache.xmlbeans.impl.store.SaxonXBeansDelegate$SelectPathInterface4KViews0likes3CommentsReadyAPI - Soap NG Pro - Run headless on TeamCity CI - Console Installation - Licence
Hello, We are trying to improve our continuous integration process and the automation of tests execution. For this we would like to set up a smoke test suite which would be easily executable from a TeamCity instance which means that it has to run headless. As a current status we arrived to make it work on a local machine. We noticed that we are forced to have a local installation of ReadyAPI together with a configured hermesJMS to bundle it into our maven build using the 'ready-api-maven-plugin' since we did not find any version of the plugin containing an embedded version of ReadyAPI. To setup the same build on the TeamCity build we only have some linux agents with limited access and no serverx (no ui - headless). We did not find anything in the documentation regarding the installation of ReadyAPI using console + how to setup a licence using console as well.. Could youindicate us how to achieve this without any UI!? Please find below our current maven configuration: ... <plugin> <groupId>com.smartbear</groupId> <artifactId>ready-api-maven-plugin</artifactId> <version>1.7.0</version> <executions> <execution> <id>functionalTests</id> <phase>test</phase> <goals> <goal>test</goal> </goals> <configuration> <optOutUsageStatistics>true</optOutUsageStatistics> <projectFile>${project.build.testOutputDirectory}/soapui/${soapuiProject}</projectFile> <printReport>true</printReport> <reportFormat>HTML</reportFormat> <testFailIgnore>true</testFailIgnore> <junitReport>true</junitReport> <outputFolder>${project.build.directory}/surefire-reports</outputFolder> <testFailIgnore>true</testFailIgnore> <exportAll>false</exportAll> <environment>${environment}</environment> <globalProperties> <globalProperty>hermesConfig=${hermesConfig}</globalProperty> <globalProperty>someProp=${someProp}</globalProperty> </globalProperties> <readyApiProperties> <property> <name>soapui.home</name> <value>${soapui.home}</value> </property> </readyApiProperties> </configuration> </execution> </executions> </plugin> ... Thanks a lot!3.9KViews1like9CommentsMaven Soapui Plugin with json assertions does not work well in junit test
Maven Soapui Plugin with json assertions does not work well when i use last respository version in a maven project: <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-maven-plugin</artifactId> <version>5.1.3</version> Logs: 17:37:26,465 ERROR [TestAssertionRegistry] Missing assertion for type [JsonPath RegEx Match] 17:37:26,482 ERROR [TestAssertionRegistry] Missing assertion for type [JsonPath Count] When will it be released 5.1.2 version to be able to use this type of assertion? A lot of thanks!!!!! Cristian Romero Matesanz3.9KViews0likes3CommentsInclude Ready API Maven Plugin in Maven Build
I am trying to have a SoapUI testing run through maven (Ready API 1.9.0) but I'm having an issue getting the plugin with the following error: Could not find artifact com.smartbear:ready-api-soapui-pro:jar:1.9.0 in group(https;//forgeLocation). I think it also couldn't find some other ready-api plugin stuff that looked like they had a similar name. I currently cannot add those plugin(s) to the location they are looking at them for, so I was wondering how I could add them to my maven build and just look for them there. Any help would be great. Thanks!Solved3.7KViews0likes1CommentHow can I include dependencies from an external jar file into a groovy script test step
Hello Community, I am using the ready-api maven plugin. I have my dependency in the pom.xml. The depedency is being downloaded. My question is how can I use the classes in this jar file in a groovy test step. I have tried using an import statement, but the script does not know where to locate the jar. As a side note, we do not have admin rights on our local machines so I cannot install the jar file to the soapUi install directory. So, I need a way to tell SoapUi how to find the Jar file. I pulled my code out into intelliJ and it works, but I cannot get it to work inside of soapUi.Solved3.6KViews0likes5CommentsReady api maven plugin - how to execute all suites in a composite project
I am trying to run all of the test suites in my ready-api project using the maven plugin. If I do not specify a test suite directly, I get the following stack trace. java.lang.ClassNotFoundException: com.sun.jdi.request.EventRequest at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.eviware.soapui.tools.DebugSupport.<clinit>(DebugSupport.java:19) at com.eviware.soapui.impl.wsdl.teststeps.registry.GroovyScriptStepFactory.buildTestStep(GroovyScriptStepFactory.java:38) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.createTestStepFromConfig(WsdlTestCase.java:390) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.<init>(WsdlTestCase.java:162) at com.eviware.soapui.impl.wsdl.WsdlTestCasePro.<init>(WsdlTestCasePro.java:64) at com.eviware.soapui.impl.wsdl.WsdlTestSuitePro.buildTestCase(WsdlTestSuitePro.java:85) at com.eviware.soapui.impl.wsdl.WsdlTestSuitePro.buildTestCase(WsdlTestSuitePro.java:1) at com.eviware.soapui.impl.wsdl.WsdlTestSuite.<init>(WsdlTestSuite.java:115) at com.eviware.soapui.impl.wsdl.WsdlTestSuitePro.<init>(WsdlTestSuitePro.java:48) at com.eviware.soapui.impl.wsdl.WsdlProjectPro.buildTestSuite(WsdlProjectPro.java:1146) at com.eviware.soapui.impl.wsdl.WsdlProjectPro.loadProject(WsdlProjectPro.java:416) at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:284) at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:263) at com.eviware.soapui.impl.wsdl.WsdlProjectPro.<init>(WsdlProjectPro.java:193) at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(WsdlProjectProFactory.java:112) at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(WsdlProjectProFactory.java:1) at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.getWsdlProject(AbstractSoapUIRunner.java:385) at com.smartbear.ready.cmd.runner.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:325) at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.runRunner(SoapUIProTestCaseRunner.java:97) at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:264) at com.eviware.soapui.maven2.TestMojo.execute(TestMojo.java:152)Solved2.8KViews0likes7Comments