Spring Boot - Introduction to TestNG

preview_player
Показать описание
This will be the first video of too many related to testing! Stay tuned!

At this video you will have an introduction of the annotations of TestNG.

The annotations we will check are:
- annotation @BeforeTest / @AfterTest
- annotation @BeforeClass / @AfterClass
- annotation @BeforeMethod / @AfterMethod
- annotation @Test
+ property expectedExceptions
+ property expectedExceptionsMessageRegEx
+ property priority

Keep in mind the annotation’s execution order (example of one configuration):

* ' @BeforeTest
* ' ' @BeforeClass
* ' ' ' @BeforeMethod
* ' ' ' ' testMethodCC
* ' ' ' @AfterMethod
* ' ' ' @BeforeMethod
* ' ' ' ' testMethodDD
* ' ' ' @AfterMethod
* ' ' @AfterClass
* ' @AfterTest
* ' @BeforeTest
* ' ' @BeforeClass
* ' ' ' @BeforeMethod
* ' ' ' ' testMethodAA
* ' ' ' @AfterMethod
* ' ' ' @BeforeMethod
* ' ' ' ' testMethodBB
* ' ' ' @AfterMethod
* ' ' @AfterClass
* ' ' @BeforeClass
* ' ' ' @BeforeMethod
* ' ' ' ' testMethodCC
* ' ' ' @AfterMethod
* ' ' ' @BeforeMethod
* ' ' ' ' testMethodDD
* ' ' ' @AfterMethod
* ' ' @AfterClass
* ' @AfterTest

Рекомендации по теме
join shbcf.ru