Más contenido relacionado La actualidad más candente (20) Test ng3. TestNG links
● Mij examples
– https://github.com/franck-benault/test-TestNG
● Official web site
– http://testng.org
5. TestNG last version
● Maven (last version 10/2015)
● <dependency>
● <groupId>org.testng</groupId>
● <artifactId>testng</artifactId>
● <version>6.9.9</version>
● <scope>test</scope>
● </dependency>
8. TestNG main annotations
TestNG JUnit
@Test @Test
@BeforeMethod @Before
@AfterMethod @After
@BeforeClass @BeforeClass (static)
@AfterClass @AfterClass (static)
@BeforeTest -
@AfterTest -
11. TestNG Check Exceptions
● More flexible than JUnit
– Attributes of @Test annotation
● ExceptedExceptions
● ExceptedExceptionsMessageRegExp
– You can put several exceptions