我创建了一个带截图的硒脚本,我必须在jenkin上运行此脚本,但是当我在Jenkin上运行此脚本时,测试用例失败了,如果我在eclipse上运行相同的脚本,则该脚本成功运行并获取屏幕截图。所以我的问题是我们可以在Jenkin上运行截图的硒脚本吗?
:~/eclipse-workspace/seffcon$ java -cp /home/dev2/eclipse-workspace/seffcon/bin:/home/dev2/eclipse-workspace/seffcon/libs/* org.testng.TestNG testng.xml
[TestNG] Running:
/home/dev2/eclipse-workspace/seffcon/testng.xml
===============================================
Suite
Total tests run: 1, Failures: 1, Skips: 0
===============================================