1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
0
I understand the problem. for a test class like :
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class Class1 {
@Test
public void method1() {....}
@Test
public void method2() {....}
@BeforeClass
public static void setUp() {
driver = new AndroidDriver(new URL(URL), getCapsAndroidEmulAut2());
}
@AfterClass
public static void tearDown() {
driver.quit();
}
}
AWS Device Farm considers Class1 as a suite, each method as a class. According to the results: Farm executes setUp(), then method1(), then tearDown() (this is the first suite) Then Farm executes a new suite : setUp(), then method2(), then tearDown().
While the standard behavior of JUnit is Class1 is a class, il execute setUp(), method1(), method2(), and tearDown().
Any help ?
con risposta un anno fa
Contenuto pertinente
- AWS UFFICIALEAggiornata un mese fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata un anno fa