TestNG [错误]没有找到测试套件。无所事事

时间:2015-06-09 12:06:24

标签: java xml selenium-webdriver command testng

我是 无法从命令行运行testng测试套件我正在使用Windows系统

  

TestNG [错误]找不到测试套件。无所事事      有报告听众我已经从我的xml删除了,我已从库

删除了这些罐子

我已经提到了这个链接 No Test suite found nothing to run

用于运行测试套件的命令

cd C:\Users\workspace\myproject

java -cp C:\Users\workspace\myproject\libs\*;C:\Users\workspace\myproject\bin org.testng.TestNG Analytics.xml

Analytics.xml
<?xml version="1.0" encoding="UTF-8"?>
<suite name="BLR_Analytics" verbose="10" parallel="tests">

    <test name="Login" group-by-instances="true" verbose="3">
            <classes>
                <class name="analyticsMain.MainExecute" />

            </classes>
    </test>

</suite>    

请帮忙 谢谢, 切塔尼亚

1 个答案:

答案 0 :(得分:0)

When I started to run TestNG xml from console,I got lots of errors.I am not sure which error you are getting exactly,you try following one:

java -cp "C:\TestNG\testng.jar;C:\TestNG\jcommander.jar;H:\project\Test\src;c:\selenium-webdriver\selenium-java-2.45.0.jar;c:\selenium-webdriver\libs\*" org.testng.TestNG testng.xml

Add all these jars according to your settings.