0
我想使用maven,surefire和jenkins運行SoapUI xml項目文件。 所有的maven和jenkins都很好,在構建完成後,jenkins中顯示Junit報告(帶有非常基本的信息 - 測試用例名稱和狀態)SoapUI,Maven,Surefire和Jenkins集成
我想用surefire來顯示報告和日誌目標/ surfire-report/all * .xml和* .txt作爲日誌文件)。 如何配置jenkins以顯示surefire報告和日誌文件?
這裏是我的pom.xml文件
<pluginRepositories>
<pluginRepository>
<id>smartbear-sweden-plugin-repository</id>
<url>http://www.soapui.org/repository/maven2/</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui-maven-plugin</artifactId>
<version>5.3.0</version>
<configuration>
<projectFile>${basedir}/src/test/java/Test-API-soapui-project.xml</projectFile>
<outputFolder>${basedir}/target/surefire-reports/</outputFolder>
<junitReport>true</junitReport>
<exportwAll>true</exportwAll>
<printReport>true</printReport>
</configuration>
<executions>
<execution>
<id>soapUI</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui</artifactId>
<version>5.3.0</version>
<exclusions>
<exclusion>
<groupId>javafx</groupId>
<artifactId>jfxrt</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.20</version>
</plugin>
</plugins>
</build>