Closed sebinjqburst closed 4 years ago
@sebinjqburst - Please include a complete sample that can be used to reproduce the issue, else we would have to close this issue.
Whatever you have shared currently is not enough sufficient to debug the problem.
No response from the user. Closing this issue. If this is still a problem, please add a comment with a standalone test that can be used to reproduce the problem.
@krmahadevan Please find a sample project for reproducing the issue mentioned. https://github.com/sebinjqburst/testngdebug
The issue is in the console alone and not in any of the result files generated. The result in console I'm getting for the above project is:
First Test
PASSED: testOne
===============================================
FirstTest
Tests run: 1, Failures: 0, Skips: 0
===============================================
PASSED: testOne
===============================================
SecondTest
Tests run: 1, Failures: 0, Skips: 0
===============================================
Second Test
PASSED: testOne
PASSED: testTwo
===============================================
SecondTest
Tests run: 2, Failures: 0, Skips: 0
===============================================
===============================================
ARIS automation testing
Total tests run: 2, Passes: 2, Failures: 0, Skips: 0
===============================================
@sebinjqburst - Can you please help explain a bit ? I didn't quite understand the issue in the console output.
@krmahadevan I have only two tests that are declared on two different classes. But the console output shows a total of 3 tests.
First Test
PASSED: testOne
===============================================
FirstTest
Tests run: 1, Failures: 0, Skips: 0
===============================================
Second Test
PASSED: testOne
===============================================
SecondTest
Tests run: 1, Failures: 0, Skips: 0
===============================================
Second Test
PASSED: testOne
PASSED: testTwo
===============================================
SecondTest
Tests run: 2, Failures: 0, Skips: 0
===============================================
The expected output is:
First Test
PASSED: testOne
===============================================
FirstTest
Tests run: 1, Failures: 0, Skips: 0
===============================================
Second Test
PASSED: testTwo
===============================================
SecondTest
Tests run: 1, Failures: 0, Skips: 0
===============================================
As part of fixing https://github.com/cbeust/testng/issues/2220 this issue also stands fixed and the fix will be available in the upcoming version of TestNG (Whatever version gets released after 7.1.0
)
TestNG Version 7.0.0
Expected behavior
Till 7.00-beta1, when I run my test, the first test will be displayed with the methods listed under the same and the second test will be having the methods defined under the second test alone.
Actual behavior
In 7.0.0, after the first test, the methods under them will be displayed and then lists all the other test names with the methods of the first test listed under those names.
Is the issue reproductible on runner?
Test case sample
Output after the first test:
Not sure whether the same is a bug or not, please help if I'm missing some config changes to be done as part of 7.0.0 upgrade.