This works as intended, the test fails (due to haltTesting ()) and repeats 2x
public class A0001_A0003Test extends TestControl { private Kunde kunde = Kunde.FR_WEHLITZ; @Test(retryAnalyzer = TestRepeat.class, groups = {TestGroups.FAILED}, description = "verify adress") public void testkundenDaten_Angaben() throws Exception { bifiTestInitial(); testActions.selectKunde(kunde); haltTesting(); } }
but since I have several tests in one class, I defined repeatAnalyzer at the class level
@Test(retryAnalyzer = TestRepeat.class) public class A0001_A0003Test extends TestControl { private Kunde kunde = Kunde.FR_WEHLITZ; @Test(groups = {TestGroups.FAILED}, description = "verify adress") public void testkundenDaten_Angaben() throws Exception { bifiTestInitial(); testActions.selectKunde(kunde); haltTesting(); } }
but then the test does not repeat, the documentation says:
The effect of class level @Test annotation is to make all public methods of this class to become test methods, even if they are not annotated. You can still repeat the @Test annotation using the method if you want to add certain attributes.
So, was this possible or am I expecting the wrong result?
source share