Display results as :

Rechercher Advanced Search


SOLVED:TestNG Groups Not Calling @BeforeMethod

View previous topic View next topic Go down

SOLVED:TestNG Groups Not Calling @BeforeMethod

Post by ccox on 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)


Posts : 205
Join date : 2012-01-06
Age : 32
Location : Denver, CO

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum