You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 21, 2017. It is now read-only.
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
Original issue reported on code.google.com by [email protected] on 10 Jan 2013 at 3:33
Original issue reported on code.google.com by
[email protected]
on 10 Jan 2013 at 3:33Attachments:
The text was updated successfully, but these errors were encountered: