- , когда я запускаю свой файл testng. xml через приглашение cmd с помощью следующей команды, его пустой вывод означает, что тестовые случаи не запущены, но завершили процесс -
java -cp [projectpath] \ lib *; [projectpath] \ target org.testng.TestNG testng. xml
result output via cmd prompt is -
...
... TestNG 6.9.5-SNAPSHOT by Cédric Beust (cedric@beust.com)
...
[TestNG] Running:
[projectpath]\testng.xml
===============================================
TestNgMavenTest
Tests run: 0, Failures: 0, Skips: 0
===============================================
===============================================
TestNgMavenExampleSuite
Total tests run: 0, Failures: 0, Skips: 0
===============================================
[TestNG] Time taken by org.testng.reporters.jq.Main@1b701da1: 131 ms
[TestNG] Time taken by org.testng.reporters.XMLReporter@7dc5e7b4: 23 ms
[TestNG] Time taken by org.testng.reporters.EmailableReporter2@515f550a: 8 ms
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@3f8f9dd6: 35 ms
[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 1 ms
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@379619aa: 0 ms
Please help and suggest what to change in my project. Below is my XML file -
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="TestNgMavenExampleSuite" verbose="2">
<test name="TestNgMavenTest">
<packages>
<package name="test.testcases"/>
<classes>
<class name="LoginTest"/>
</classes>
</packages>
</test>
</suite>
I have also tried this XML -
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="TestNgMavenExampleSuite" verbose="2">
<test name="TestNgMavenTest">
<classes>
<class name="test.testcases.LoginTest"/>
</classes>
</test>
</suite>