I am using testNG with Selenium webdriver2.0.
In my testNG.xml I have
You want to use @Parameter in @BeforeSuite. Suite level parameters are parsed once the suite begins execution and I believe TestNG invokes @BeforeSuite even before the suite is processed:
Here is a workaround: add ITestContext in method parameters to inject
@BeforeSuite(groups = { "abstract" } )
@Parameters({ "configFile" })
public void initFramework(ITestContext context, String configFile) throws Exception {