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?
1. Simple project with 2 tests, configured to use retry. One test is written to
always pass and another test is written to always fail
2. Have a myRetryAnalyzer which extends from RetryAnalyzerCount...Set retry
count to say 7
3. Run the tests
What is the expected output? What do you see instead?
Expected out : Total : 2, Pass: 1, Fail : 1
Actually seeing : Total: 9, Pass: 1, Fail: 8
What version of the product are you using? On what operating system?
Latest version of testng - 6.4 ...Mac and Windows 7
Please provide any additional information below.
Here is sample code
Test file
package testng;
import org.testng.Assert;
import org.testng.annotations.Test;
public class RetryTest {
@Test(retryAnalyzer=MyRetry.class, groups={"retry"})
public void test1() {
Assert.assertTrue(true);
}
@Test(retryAnalyzer=MyRetry.class, groups={"retry"})
public void test2() {
Assert.assertTrue(false);
}
}
Retry class
package testng;
import org.testng.ITestResult;
import org.testng.util.RetryAnalyzerCount;
public class MyRetry extends RetryAnalyzerCount {
public MyRetry(){
setCount(7);
}
@Override
public boolean retryMethod(ITestResult arg0) {
// TODO Auto-generated method stub
return true;
}
}
Testng-results -- Note the total, passed and failed count
<?xml version="1.0" encoding="UTF-8"?>
<testng-results skipped="0" failed="8" total="9" passed="1">
<reporter-output>
</reporter-output>
<suite name="Default Suite" duration-ms="117" started-at="2012-03-06T14:05:13Z" finished-at="2012-03-06T14:05:13Z">
<groups>
<group name="retry">
<method signature="testng.RetryTest.test1()" name="test1" class="testng.RetryTest"/>
<method signature="testng.RetryTest.test2()" name="test2" class="testng.RetryTest"/>
</group>
......
Can anyone please address this issue? We have tried 5.8, 5.11, 5.12 and then
6.4 now ....looks like the issue has been there since long time
Original issue reported on code.google.com by [email protected] on 7 Mar 2012 at 12:25
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 7 Mar 2012 at 12:25The text was updated successfully, but these errors were encountered: