What steps will reproduce the problem?
The code below will result in 3 failed and 3 passed methods; but the report
file will contain wrong data (see attached emailable-report).
public class TestClass {
@DataProvider(name = "test1")
public Object[][] createData1() {
return new Object[][] {
{new Integer(1)},
{new Integer(2)},
{new Integer(3)},
{new Integer(4)},
{new Integer(5)},
{new Integer(6)},
};
}
@Test(dataProvider = "test1")
public void verifyData1(Integer i) {
if (i%2 == 0)
Assert.fail("failed");
}
}
What is the expected output? What do you see instead?
1.The list of failed tests should contain 3 entries.
2.The list of passed tests should contain 3 entries.
3. "# failed" cell value should be equal to 3 not to 6.
What version of the product are you using? On what operating system?
Reproduced against TestNG(6.8 and 6.9beta). Windows 7 x64.
Please provide any additional information below.
n/a