我正在尝试将SoapUI测试用例与Allure集成以生成报告。有一个maven项目,我正在使用soapui maven插件来运行测试用例。测试用例运行良好,生成JUnit报告,但没有诱人的结果。请检查我的pom,它可能有一些诱惑插件的错误用法。
<?xml version='1.0' encoding='UTF-8'?><project xmlns:1='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'>
<name>SOAPUI Tests</name>
<version>1.0</version>
<modelVersion>4.0.0</modelVersion>
<groupId>soapui-tests</groupId>
<artifactId>soapui-tests</artifactId>
<description>SoapUI Integration Tests</description>
<properties>
<allure.version>1.4.19</allure.version>
<allure.maven.version>2.4</allure.maven.version>
<surefire.version>2.18.1</surefire.version>
<aspectj.version>1.7.4</aspectj.version>
<soapui.version>4.6.1</soapui.version>
</properties>
<dependencies>
<dependency>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-junit-adaptor</artifactId>
<version>${allure.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>${surefire.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui-maven-plugin</artifactId>
<version>${soapui.version}</version>
<configuration>
<outputFolder>${basedir}/target/soapui-results</outputFolder>
<junitReport>true</junitReport>
<exportAll>true</exportAll >
<printReport>true</printReport>
<testFailIgnore>true</testFailIgnore>
</configuration>
<dependencies>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.5.0-b01</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>x_project.xml</id>
<phase>process-test-classes</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<projectFile>x_project.xml</projectFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.version}</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
<argLine>
-javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar
</argLine>
<properties>
<property>
<name>listener</name>
<value>ru.yandex.qatools.allure.junit.AllureRunListener</value>
</property>
</properties>
</configuration>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<reporting>
<excludeDefaults>true</excludeDefaults>
<plugins>
<plugin>
<groupId>ru.yandex.qatools.allure</groupId>
<artifactId>allure-maven-plugin</artifactId>
<version>${allure.maven.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>${surefire.version}</version>
</plugin>
</plugins>
</reporting>
mnv测试站点命令返回以下错误:
在项目soapui上执行目标测试(默认站点)失败错误- org.apache.maven.plugins:maven-site-plugin:3.3:site :页面生成过程中出错:呈现错误Maven报告:无法生成报告: InvocationTargetException:找不到任何诱人的结果->帮助1
发布于 2016-01-26 19:13:14
我认为Allure报表不是为XML设计的,它是由soapui生成的。我前段时间也尝试过同样的方法,但没有找到解决方案。现在我要联系一下诱人团队。很快就会通知你。
发布于 2016-02-17 17:25:29
正如我在您的pom.xml中看到的,您的测试结果${basedir}/target/soapui-results使用了非标准的输出文件夹。因此,您需要配置allure.results.directory属性来告诉allure插件在哪里查找测试结果。
https://stackoverflow.com/questions/33231444
复制相似问题