- 我的项目dosnt有一个bin文件夹
- 曾尝试以下:
d:> java命令“Pathtolibfolder \ lib中*; Pathtobinfolder \ bin“ org.testng.TestNG testng.xml从詹金斯(Maven项目)执行的testng.xml
任何想法?
d:> java命令“Pathtolibfolder \ lib中*; Pathtobinfolder \ bin“ org.testng.TestNG testng.xml从詹金斯(Maven项目)执行的testng.xml
任何想法?
如果您正在使用Maven那我就简单地使用万无一失插件,运行测试作为构建的一部分:
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>RELEASE</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
...
</plugins>
只要指定路径到您的testng.xml如果你能利用它的优势使用这种配置。它允许大量的参数化,我已经在我的项目中广泛使用它。
退房本教程得到它挂起:http://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html
什么错误您收到? –
@Maciej Kowalski感谢您的快速响应,它说它无法找到bin目录,我的项目是一个maven项目,所以dosnt有一个bin文件夹? – Gbru