简体   繁体   English

Jenkins TestNG插件不显示结果

[英]Jenkins TestNG plugin not displaying the results

I am using the Ant to build my project and run the testng tests. 我正在使用Ant来构建我的项目并运行testng测试。 I am using jenkins to call the Ant targets to run the TestNG tests. 我正在使用jenkins调用Ant目标来运行TestNG测试。 Also have installed the TestNG plugin on jenkins running on same machine where my project is. 还在我的项目所在的同一台机器上运行的jenkins上安装了TestNG插件。

On completion of the Jenkins job, I am getting following and TestNG results are not generated. 完成Jenkins工作后,我得到了跟踪,并且没有生成TestNG结果。

C:\\Users\\Administrator.jenkins\\jobs\\Intel EAMP Automation\\workspace>exit 0 TestNG Reports Processing: START Looking for TestNG results report in workspace using pattern: test-output/testng-results.xml Did not find any matching files. C:\\ Users \\ Administrator.jenkins \\ jobs \\ Intel EAMP Automation \\ workspace> exit 0 TestNG报告处理:START使用模式在工作空间中查找TestNG结果报告:test-output / testng-results.xml未找到任何匹配的文件。 Finished: SUCCESS 完成:成功

My project folder is at location: E:\\Project Folder\\Framework\\Project 我的项目文件夹位于:E:\\ Project Folder \\ Framework \\ Project

which also has build.xml and testng.xml file along with the test-output folder(containing testng-results.xml file). 其中还包含build.xml和testng.xml文件以及test-output文件夹(包含testng-results.xml文件)。

Please suggest how to configure jenkins to show the TestNG results... 请建议如何配置jenkins以显示TestNG结果......

正如解释在这里 ,你必须使用正斜杠,而不是在Windows反斜杠。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM