通过cmd提示符运行testNG xml

时间:2014-12-22 10:16:41

标签: java xml selenium selenium-webdriver testng

我的测试NG jar在C:\ TestNG \ testng.jar,' testNG xml:D:\auto\auto\testng.xml java类:D:\auto\auto\src\CloudPlatform\*

selenium:; C:\ Users \ muthus \ Downloads \ selenium-java-2.43.1 \ selenium-2.43.1 \ selenium-2.43.1.jar

我将classpath设置为:C:\TestNG\testng-5.5.jar;C:\Users\muthus\Downloads\selenium-java-2.43.1\selenium-2.43.1\selenium-2.43.1.jar;D:\auto\auto\src\CloudPlatform\*

无法通过cmd提示符运行以下问题:

D:\auto\auto>java -cp C:\TestNG\testng-5.5.jar;D:\auto\auto\src\CloudPlatform\*; 
org.testng.TestNG testng.xml

错误:

D:\auto\auto>java -cp C:\TestNG\testng-5.5.jar;D:\auto\auto\src\CloudPlatform\*;
 org.testng.TestNG testng.xml
Exception in thread "main" org.testng.TestNGException:
No sourcedir was specified
        at org.testng.TestNG.checkConditions(TestNG.java:1170)
        at org.testng.TestNG.privateMain(TestNG.java:1010)
        at org.testng.TestNG.main(TestNG.java:997)

需要你的宝贵帮助!

0 个答案:

没有答案