| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- <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>org.ceiling</groupId>
- <artifactId>aiot-auto-test</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>中赢智能自动化测试框架</name>
- <url>http://maven.apache.org</url>
- <properties>
- <aspectj.version>1.9.24</aspectj.version>
- <java.version>8</java.version>
- <maven.compiler.source>8</maven.compiler.source>
- <maven.compiler.target>8</maven.compiler.target>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <!-- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>-->
- <!-- <maven.compiler.encoding>UTF-8</maven.compiler.encoding>-->
- </properties>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <!--selenium 最新版有可能会有错误 4.24.0-->
- <dependency>
- <groupId>org.seleniumhq.selenium</groupId>
- <artifactId>selenium-java</artifactId>
- <version>4.13.0</version>
- </dependency>
- <!--浏览器驱动代理-->
- <dependency>
- <groupId>io.github.bonigarcia</groupId>
- <artifactId>webdrivermanager</artifactId>
- <version>6.3.0</version>
- </dependency>
- <!--提供了好用的工具类 文件操作 比如截图-->
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- <version>2.16.1</version>
- </dependency>
- <!--testng-->
- <dependency>
- <groupId>org.testng</groupId>
- <artifactId>testng</artifactId>
- <version>6.14.3</version>
- </dependency>
- <!-- Allure dependency for attaching screenshots -->
- <dependency>
- <groupId>io.qameta.allure</groupId>
- <artifactId>allure-java-commons</artifactId>
- <version>2.17.2</version>
- </dependency>
- <!--allure testng -->
- <dependency>
- <groupId>io.qameta.allure</groupId>
- <artifactId>allure-testng</artifactId>
- <version>2.20.1</version>
- </dependency>
- <!-- 快速构造数据 -->
- <dependency>
- <groupId>com.github.javafaker</groupId>
- <artifactId>javafaker</artifactId>
- <version>1.0.2</version>
- </dependency>
- <!-- SLF4J API (日志接口) -->
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <version>1.7.32</version>
- </dependency>
- <!-- Logback (SLF4J 的实现) -->
- <dependency>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-classic</artifactId>
- <version>1.2.6</version>
- </dependency>
- <!-- Logback 配置文件(如果有) -->
- <dependency>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-core</artifactId>
- <version>1.2.6</version>
- </dependency>
-
- </dependencies>
-
- <build>
- <defaultGoal>compile</defaultGoal>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.11.0</version>
- <configuration>
- <encoding>UTF-8</encoding>
- <source>8</source>
- <target>8</target>
- </configuration>
- </plugin>
- <!--maven-surefire-plugin的test目标会自动执行测试源码路径(默认为src/test/java/)下所有符合一组命名模式的测试类-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>3.0.0-M5</version>
- <configuration>
- <!-- 测试失败后,是否忽略并继续测试 -->
- <testFailureIgnore>true</testFailureIgnore>
- <suiteXmlFiles>
- <suiteXmlFile>target/classes/testng.xml</suiteXmlFile>
- </suiteXmlFiles>
- <argLine>
- -Dfile.encoding=utf-8
- -javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"
- </argLine>
- <systemPropertyVariables>
- <property>
- <name>allure.results.directory</name>
- <value>${project.build.directory}/allure-results</value>
- </property>
- </systemPropertyVariables>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>org.aspectj</groupId>
- <artifactId>aspectjweaver</artifactId>
- <version>1.9.24</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </build>
- </project>
|