简体   繁体   English

Jenkins:Jenkins未运行TestNG测试

[英]Jenkins: Jenkins not running TestNG Tests

I am able to successfully execute TestNG script but while I am trying to execute the same using Jenkins, it shows the following: 我能够成功执行TestNG脚本,但是当我尝试使用Jenkins执行相同脚本时,它显示以下内容:

Started by user anonymous
Building in workspace C:\Users\user\Desktop\xyz
[xyz] $ cmd /c call C:\windows\TEMP\hudson1998633505158708122.bat

C:\Users\user\Desktop\xyz>run.bat

C:\Users\user\Desktop\xyz>java -cp bin;lib/* org.testng.TestNG testng.xml 
[TestNG] Running:
  C:\Users\user\Desktop\xyz\testng.xml

log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies).
log4j:WARN Please initialize the log4j system properly.
Test case 1 is end

===============================================
Suite
Total tests run: 3, Failures: 0, Skips: 3
===============================================

Finished: SUCCESS

However, I am able to execute bat file and TestNG script successfully as below is the TestNG report: 但是,我能够成功执行bat文件和TestNG脚本,如下是TestNG报告:

在此处输入图片说明

Why does it skip all 3 test cases? 为什么它跳过所有3个测试用例?

您可能应该使用verbose =“ 10”来检查它为什么跳过测试。

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

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