- ccoxMaster
- Posts : 205
Join date : 2012-01-06
Age : 39
Location : Denver, CO
SOLVED:TestNG Groups Not Calling @BeforeMethod
Thu Mar 13, 2014 12:43 am
I am trying to run a subset of scripts that are part of a specific group tag in the @Test. When I try to run these, the scripts will skip the @BeforeMethod which is the method that initiates the driver and opens the browser. What am I doing wrong? Is there another @Before*** I should be using instead. I haven't been able to find much info out there for this.
The solution is to add the (alwaysRun = true) after the method i.e. @BeforeMethod (alwaysRun = true)
The solution is to add the (alwaysRun = true) after the method i.e. @BeforeMethod (alwaysRun = true)
Permissions in this forum:
You cannot reply to topics in this forum