Difference between @BeforeTest and @BeforeClass annotation
take a look at this q/a http://stackoverflow.com/questions/30587454/difference-between-beforeclass-and-beforetest-in-testng