TestNg -- Before Suite & After Suite | Selenium Forum
M
Posted on 01/08/2016
1) Before Suite & After Suite is not restricted at PACKAGE level. Is this at PROJECT level??
for e.g. There are 2 packages, Package A and Package B with multiple classes in each of them. If "Before Suite" & "After Suite" is defined in one class and if BATCH run is done through testngxml file then console is displaying results of all classes in both packages.

M
Replied on 01/08/2016

you have to put all the tests in one suite in testng.xml.