July 2019
Intermediate to advanced
536 pages
12h 57m
English
Let's build the test class from the ground up; we will use the Rock Bands test class and data file as an example:
/** * Rock Bands Test Class (JavaDoc left out) * * @author Name * */public class RockBandsTest { // setup/teardown methods @BeforeSuite protected void suiteSetup(ITestContext context) throws Exception { } @AfterSuite protected void suiteTeardown(ITestContext context) throws Exception { } @BeforeTest protected void testSetup(ITestContext context) throws Exception { } @AfterTest protected void testTeardown(ITestContext context) throws Exception { } @BeforeGroups protected void groupsSetup() throws Exception { } @AfterGroups protected void groupsTeardown() throws Exception { } @BeforeClass protected void testClassSetup()
Read now
Unlock full access