【发布时间】:2019-01-20 12:04:27
【问题描述】:
我正在创建一个 appium 框架,我想知道我可以使用什么稳定版本的 Junit?在我的 maven 项目(Junit 3.8.1)中找到的默认版本非常非常旧,但是当我尝试在 Eclipse 中使用最新版本的 JUnit 时,它不喜欢它并在我的项目中放置了一个红色的“x” .
那么我可以使用什么
Java. 1.8
Appium desktop 1.8.1
java-client 5.0.4
selenium-java 3.11.0
TestNG 6.11
完全不使用 JUnit 会更容易吗?
<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>5.0.4</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.11.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.testng/testng -->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
【问题讨论】:
-
使用testng for appium就不需要使用junit了。
标签: java maven automation frameworks appium