Jenkins publishes 2x soap test results
My requirement is to run SOAPUI test cases via maven (POM), automate it's build using jenkins and generate a report of the test results. I have successfully done except the last part. I do get the test results but Jenkins returns 2x of them. I mean I have only one test case but Jenkins shows 2 test cases.2x test results Jenkins My POM file contains only one test case: <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.smartbear.samples</groupId> <artifactId>soapui-maven2-plugin</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>Maven 2 SoapUI Sample</name> <url>http://maven.apache.org</url> <pluginRepositories> <pluginRepository> <id>SmartBearPluginRepository</id> <url>http://www.soapui.org/repository/maven2/</url> </pluginRepository> </pluginRepositories> <build> <plugins> <plugin> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-pro-maven-plugin</artifactId> <version>4.6.1</version> <dependencies> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.6</version> </dependency> </dependencies> <executions> <execution> <phase>test</phase> <id>test1</id> <goals> <goal>test</goal> </goals> <configuration> <projectFile>simple-test-soapui-project.xml</projectFile> <junitReport>true</junitReport> <outputFolder>${basedir}/target/surefire-reports</outputFolder> <printReport>true</printReport> <exportAll>true</exportAll> <globalProperties> <value>ENV=DEV</value> </globalProperties> </configuration> </execution> </executions> </plugin> </plugins> </build> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>2.1</version> </plugin> </plugins> </reporting> </project> and my surefire reports shows that I have only one test case: Surefire report containg just one test case How can I setup Jenkins to show only one test case in diagram? Thanks.1KViews0likes1CommentClass Missing - org/apache/log4j/Layout
Hi, I am trying to execute soap ui test from Jenkins with maven commnd. But I am getting this error. [ERROR] Failed to execute goal com.smartbear.soapui:soapui-maven-plugin:5.2.1:test (default-cli) on project OrionAPITest: Execution default-cli of goal com.smartbear.soapui:soapui-maven-plugin:5.2.1:test failed: A required class was missing while executing com.smartbear.soapui:soapui-maven-plugin:5.2.1:test: org/apache/log4j/Layout My pom.xml <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> <version>2.5</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> <version>2.5</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-jcl</artifactId> <version>2.5</version> </dependency> <dependency> <groupId>org.ops4j.pax.logging</groupId> <artifactId>pax-logging-api</artifactId> <version>1.7.2</version> </dependency> <dependency> <groupId>org.ops4j.pax.logging</groupId> <artifactId>pax-logging-service</artifactId> <version>1.7.2</version> </dependency> Does anybody has any idea about this error?1.1KViews0likes0CommentsFailed to create JUnitReportCollector class
Hi All, I am trying to run a build from Jenkins to create a customised JUnit style report. Attached is my pom.xml. I am using com.github.redfish4ktc.soapui:maven-soapui-extension-plugin:4.5.1.4 plugin to generate customised report, i have used the following property in soapuiProperties: <property> <name>soapui.junit.reportCollector</name> <value>test.soapui.CustomJunitReportGenerator</value> </property> This pom.xml works perfectly fine in Maven build in eclipse and generates the desired report, but gives the following exception while building from jenkins and hence i end up with the default JUnit style report:womansad: I get the following exception in jenkins build: WARN org.ktc.soapui.maven.extension.impl.report.ReportCollectorFactory - Failed to create JUnitReportCollector class [C:\api_automation11\src\test\soapui\CustomJunitReportGenerator] so use the default one; error cause: java.lang.ClassNotFoundException: C:\api_automation11\src\test\soapui\CustomJunitReportGenerator mvn goal: mvn clean install com.github.redfish4ktc.soapui:maven-soapui-extension-plugin:test What am i doing wrong? :womanfrustrated:767Views0likes0Comments