@BeforeGroups
and AfterGroups
are throwing NullPointer Exception
for each run.
I am running BeforeGroups with Syntax: @BeforeGroups(groups = "ICSInvoice")
and testcases under it with Syntax: @Test(enabled = true, groups = "ICSInvoice")
It is failing at the first line of method with the below error :
Time elapsed: 333.578 sec <<< FAILURE! java.lang.NullPointerException: null
Error coming at the first line:
public void initializeMyGroup() throws Exception {
logger.info("Enable Prerequisite for realms");
Logs:
initializeMyGroup(com.buyer.tests.selenium2.UITests.ManageAccountingTester)
Time elapsed: 333.578 sec <<< FAILURE!
java.lang.NullPointerException: null at com.buyer.tests.selenium2.UITests.ManageAccountingTester.initializeMyGroup(ManageAccountingTester.java:160)
160 is the above line:
logger.info("Enable Prerequisite for realms");