pom.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>org.ceiling</groupId>
  5. <artifactId>aiot-auto-test</artifactId>
  6. <version>1.0-SNAPSHOT</version>
  7. <packaging>jar</packaging>
  8. <name>中赢智能自动化测试框架</name>
  9. <url>http://maven.apache.org</url>
  10. <properties>
  11. <aspectj.version>1.9.24</aspectj.version>
  12. <java.version>8</java.version>
  13. <maven.compiler.source>8</maven.compiler.source>
  14. <maven.compiler.target>8</maven.compiler.target>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <!-- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>-->
  17. <!-- <maven.compiler.encoding>UTF-8</maven.compiler.encoding>-->
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>junit</groupId>
  22. <artifactId>junit</artifactId>
  23. <version>3.8.1</version>
  24. <scope>test</scope>
  25. </dependency>
  26. <!--selenium 最新版有可能会有错误 4.24.0-->
  27. <dependency>
  28. <groupId>org.seleniumhq.selenium</groupId>
  29. <artifactId>selenium-java</artifactId>
  30. <version>4.13.0</version>
  31. </dependency>
  32. <!--浏览器驱动代理-->
  33. <dependency>
  34. <groupId>io.github.bonigarcia</groupId>
  35. <artifactId>webdrivermanager</artifactId>
  36. <version>6.3.0</version>
  37. </dependency>
  38. <!--提供了好用的工具类 文件操作 比如截图-->
  39. <dependency>
  40. <groupId>commons-io</groupId>
  41. <artifactId>commons-io</artifactId>
  42. <version>2.16.1</version>
  43. </dependency>
  44. <!--testng-->
  45. <dependency>
  46. <groupId>org.testng</groupId>
  47. <artifactId>testng</artifactId>
  48. <version>6.14.3</version>
  49. </dependency>
  50. <!-- Allure dependency for attaching screenshots -->
  51. <dependency>
  52. <groupId>io.qameta.allure</groupId>
  53. <artifactId>allure-java-commons</artifactId>
  54. <version>2.17.2</version>
  55. </dependency>
  56. <!--allure testng -->
  57. <dependency>
  58. <groupId>io.qameta.allure</groupId>
  59. <artifactId>allure-testng</artifactId>
  60. <version>2.20.1</version>
  61. </dependency>
  62. <!-- 快速构造数据 -->
  63. <dependency>
  64. <groupId>com.github.javafaker</groupId>
  65. <artifactId>javafaker</artifactId>
  66. <version>1.0.2</version>
  67. </dependency>
  68. <!-- SLF4J API (日志接口) -->
  69. <dependency>
  70. <groupId>org.slf4j</groupId>
  71. <artifactId>slf4j-api</artifactId>
  72. <version>1.7.32</version>
  73. </dependency>
  74. <!-- Logback (SLF4J 的实现) -->
  75. <dependency>
  76. <groupId>ch.qos.logback</groupId>
  77. <artifactId>logback-classic</artifactId>
  78. <version>1.2.6</version>
  79. </dependency>
  80. <!-- Logback 配置文件(如果有) -->
  81. <dependency>
  82. <groupId>ch.qos.logback</groupId>
  83. <artifactId>logback-core</artifactId>
  84. <version>1.2.6</version>
  85. </dependency>
  86. </dependencies>
  87. <build>
  88. <defaultGoal>compile</defaultGoal>
  89. <plugins>
  90. <plugin>
  91. <groupId>org.apache.maven.plugins</groupId>
  92. <artifactId>maven-compiler-plugin</artifactId>
  93. <version>3.11.0</version>
  94. <configuration>
  95. <encoding>UTF-8</encoding>
  96. <source>8</source>
  97. <target>8</target>
  98. </configuration>
  99. </plugin>
  100. <!--maven-surefire-plugin的test目标会自动执行测试源码路径(默认为src/test/java/)下所有符合一组命名模式的测试类-->
  101. <plugin>
  102. <groupId>org.apache.maven.plugins</groupId>
  103. <artifactId>maven-surefire-plugin</artifactId>
  104. <version>3.0.0-M5</version>
  105. <configuration>
  106. <!-- 测试失败后,是否忽略并继续测试 -->
  107. <testFailureIgnore>true</testFailureIgnore>
  108. <suiteXmlFiles>
  109. <suiteXmlFile>target/classes/testng.xml</suiteXmlFile>
  110. </suiteXmlFiles>
  111. <argLine>
  112. -Dfile.encoding=utf-8
  113. -javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"
  114. </argLine>
  115. <systemPropertyVariables>
  116. <property>
  117. <name>allure.results.directory</name>
  118. <value>${project.build.directory}/allure-results</value>
  119. </property>
  120. </systemPropertyVariables>
  121. </configuration>
  122. <dependencies>
  123. <dependency>
  124. <groupId>org.aspectj</groupId>
  125. <artifactId>aspectjweaver</artifactId>
  126. <version>1.9.24</version>
  127. </dependency>
  128. </dependencies>
  129. </plugin>
  130. </plugins>
  131. </build>
  132. </project>