We have kind this suite. There are two test with the same name, the first fail and the second not fail.
When we ran this test suite from eclipse testng plugin, it show two test, the first one failing and the second one passed.
But in the IReport passed as report listener only the last one win (the passed).
I dont know if it is a bug (it's weird to have tests with the same name...) but the eclipse plugin do it right (cause i think it's hocked at single test execution for real-time plugin gui update), so i ask if it was intended or not.
TestNG expects these names to be unique across a tag, so you should either use a different name or have one of your test classes implement org.testng.ITest to define a different name.
We have kind this suite. There are two test with the same name, the first fail and the second not fail.
When we ran this test suite from eclipse testng plugin, it show two test, the first one failing and the second one passed.
But in the IReport passed as report listener only the last one win (the passed).
I dont know if it is a bug (it's weird to have tests with the same name...) but the eclipse plugin do it right (cause i think it's hocked at single test execution for real-time plugin gui update), so i ask if it was intended or not.
Here a test to show that: