I am able to successfully execute TestNG script but while I am trying to execute the same using Jenkins, it shows the following:
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:
Why does it skip all 3 test cases?
您可能应该使用verbose =“ 10”来检查它为什么跳过测试。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.