Difference between @BeforeTest and @BeforeClass annotation | Selenium Forum
M
Posted on 28/12/2016
can you please explain difference between "[b:cs3llulv][u:cs3llulv]@BeforeTest and @BeforeClass[/u:cs3llulv][/b:cs3llulv]" annotation in Testng.

it seems both are functioning similarly.

when code is run through testng.xml, in console output both these annotations are displayed only once.

M
Replied on 28/12/2016

take a look at this q/a

http://stackoverflow.com/questions/30587454/difference-between-beforeclass-and-beforetest-in-testng