Open r4f431007 opened 4 years ago
This is my XML file.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Books Tests" parallel="tests">
<test name="Chrome Test">
<parameter name="browser" value="chrome" />
<groups>
<run>
<include name="EULA" />
</run>
</groups>
<classes>
<class name="JavaTest" />
</classes>
</test>
<test name="Firefox Test">
<parameter name="browser" value="firefox" />
<groups>
<run>
<include name="Books" />
</run>
</groups>
<classes>
<class name="JavaTest" />
</classes>
</test>
</suite>
I'm having the same issue. testng.xml ran from Eclipse displayes @Test method twice. If you need any data in particular (pom, testng.xml...) just let me know.
Update: it's not just duplicating the tests. If i have, say, 4
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite verbose="2" name="Suite">
<!-- <test thread-count="5" name="Test"> -->
<test name="Login tests">
<classes>
<class name="testng.Login" />
</classes>
</test>
<test name="Smoke test">
<classes>
<class name="testng.Smoke" />
</classes>
</test>
<test name="Document search test">
<classes>
<class name="testng.DocumentsSearch" />
</classes>
</test>
<test name="Production order search test">
<classes>
<class name="testng.POSearch" />
</classes>
</test>
</suite>
This will result in test methods in Login class to be displayed 4 times, 3 times for methods in Smoke, 2 times for methods in DocumentsSearch and POSearch will be displayed correctly.
Any relate message in "Error Log" view
This had never happened on 6.14.3, since I changed to 7.0.0 it's happening.
The Dependency Management tool for your project
Operating System