testng+maven+allure 的测试框架
allure的配置。
参考: https://blog.csdn.net/weixin_37786060/article/details/108030860
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- 默认被测服务器ip和port -->
<!--<ip>10.20.123.22</ip>
<port>8418</port>-->
<testngName>testng.xml</testngName>
<aspectj.version>1.9.2</aspectj.version>
</properties>
<dependency> <groupId>io.qameta.allure</groupId> <artifactId>allure-testng</artifactId> <version>2.0-BETA18</version> </dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>
<properties>
<aspectj.version>1.8.10</aspectj.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20</version> <configuration>
<argLine> -javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar" </argLine>
</configuration>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency> </dependencies>
</plugin>
</plugins>
</build>