title: TestNG - configfailurepolicy="continue" is not working for retried test
body: <p>Though configfailurepolicy value is set as &quot;continue&quot;, the retried test is getting skipped.</p>
  <p><strong>Example:</strong></p>
  <p>testng.xml - At suite level, configfailurepolicy value is set as &quot;continue&quot;</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;!DOCTYPE suite SYSTEM &quot;http://testng.org/testng-1.0.dtd&quot;&gt;
  &lt;suite name=&quot;Suite&quot; parallel=&quot;classes&quot; thread-count=&quot;1&quot;
      configfailurepolicy=&quot;continue&quot;&gt;
      &lt;test name=&quot;Front-End&quot;&gt;
          &lt;classes&gt;
              &lt;class
                  name=&quot;com.tests.ExcepionAfterMethodTest&quot;&gt;
              &lt;/class&gt;
          &lt;/classes&gt;
      &lt;/test&gt;
  &lt;/suite&gt;
  </code></pre>
  <p>Test: Throwing an exception in configuration (i.e., @AfterMethod) method to cause failure. And using RetryAnalyzer to retry the failed test.</p>
  <pre><code>import org.testng.Assert;
  import org.testng.annotations.Test;
  
  public class ExcepionAfterMethodTest{
  
      @BeforeMethod(alwaysRun=true)
      public void beforeMethod() {
          System.out.println(&quot;Before Method&quot;);
      }
      
      @Test (alwaysRun=true, retryAnalyzer=RetryAnalyzer.class)
      public void method() {
          System.out.println(&quot;Method&quot;);
          Assert.assertTrue(false);
      }
  
      @Test (alwaysRun=true)
      public void method1() {
          System.out.println(&quot;Method1&quot;);
      }
  
      @AfterMethod(alwaysRun=true)
      public void afterMethod() throws Exception {
          System.out.println(&quot;After Method&quot;);
          throw new Exception();
      }
  }
  </code></pre>
  <p>RetryAnalyzer: Will retry once, if a failure occurs.</p>
  <pre><code>import org.testng.IRetryAnalyzer;
  import org.testng.ITestResult;
  
  public class RetryAnalyzer implements IRetryAnalyzer {
  
      private int counter = 0;
      private int retryLimit = 1;
  
      @Override
      public boolean retry(ITestResult result) {
          if (counter &lt; retryLimit) {
              counter++;
              return true;
          }
          return false;
      }
  }
  </code></pre>
  <p>Result: Because of failure in @AfterMethod, the test is retried, but the @Test  is skipped. Hence, 'Method' is not printed in the result at the 5th line.</p>
  <blockquote>
  <p>Before Method</p>
  <p>Method</p>
  <p>After Method</p>
  <p>Before Method</p>
  <p>After Method</p>
  <p>Method1</p>
  <p>After Method</p>
  </blockquote>
  <p>Expected Result: As configfailurepolicy is configured as &quot;continue&quot;, the retried test shouldn't be skipped. So, expecting 'Method' should be printed in the result at the 5th line as below.</p>
  <blockquote>
  <p>Before Method</p>
  <p>Method</p>
  <p>After Method</p>
  <p>Before Method</p>
  <p><strong>Method</strong></p>
  <p>After Method</p>
  <p>Method1</p>
  <p>After Method</p>
  </blockquote>