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>
请帮忙 谢谢, 切塔尼亚
答案 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.