org.testng.IHookable
, org.testng.ITestNGListener
public class BMNGRunner extends BMNGAbstractRunner
Constructor | Description |
---|---|
BMNGRunner() |
Modifier and Type | Method | Description |
---|---|---|
void |
bmngAfterClass() |
method inherited by a subclass and recognized by TestNG which ensures that
Byteman rules specified using @BMRule or @BMScript annotations attached to
the subclass are unloaded automatically after executing all of its test methods.
|
void |
bmngAfterTest(Method method) |
method inherited by a subclass and recognized by TestNG which ensures that
Byteman rules specified using @BMRule or @BMScript annotations attached to
a test method are unloaded automatically before executing the method.
|
void |
bmngBeforeClass() |
method inherited by a subclass and recognized by TestNG which ensures that
Byteman rules specified using @BMRule or @BMScript annotations attached to
the subclass are loaded automatically before executing any of its test methods.
|
void |
bmngBeforeTest(Method method) |
method inherited by a subclass and recognized by TestNG which ensures that
Byteman rules specified using @BMRule or @BMScript annotations attached to
a test method are unloaded automatically before executing the method.
|
bmngAfterClass, bmngBeforeClass, run, switchClass
@BeforeClass(alwaysRun=true) public void bmngBeforeClass() throws Exception
Exception
- if the test cannot be run@AfterClass(alwaysRun=true) public void bmngAfterClass() throws Exception
Exception
- if cleanup fails@BeforeMethod(alwaysRun=true) public void bmngBeforeTest(Method method) throws Exception
bmngBeforeTest
in class BMNGAbstractRunner
method
- the test method about to be runException
- if the test cannot be run@AfterMethod(alwaysRun=true) public void bmngAfterTest(Method method) throws Exception
bmngAfterTest
in class BMNGAbstractRunner
method
- the test method about to be runException
- if cleanup failsCopyright © 2018. All rights reserved.