1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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 ?
répondu il y a un an
Contenus pertinents
- demandé il y a un an
- Réponse acceptéedemandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a un an