我在ubuntu终端上运行TestNG xml文件时,chrome驱动程序未运行

时间:2019-02-13 04:00:15

标签: ubuntu selenium-webdriver terminal testng selenium-chromedriver

我正在ubuntu终端上运行TestNG XML文件,但是chrome浏览器未启动,并且测试用例失败。如果我从eclipse运行相同的用例,则测试用例通过

dev2@dev2-ThinkCentre-M72e:~/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
===============================================

selenium project directory screenshot

0 个答案:

没有答案