mercredi 19 février 2020

How to specify the sequence of tests?

I have 3 tests, but they do not run in the order in which they are written. The first one is always checkMoneyBackButton(), although it is written last. How can I specify the order of execution?

 @Test
 public void checkContentAuthorizationWindow() throws Exception {

    //test1 body...

 }


@Test
public void checkContentCardsWindow() throws Exception {

    //test2 body...

 }

@Test
public void checkMoneyBackButton() throws Exception {

    //test3 body...

 }

Aucun commentaire:

Enregistrer un commentaire