@Retention(value=RUNTIME) @Target(value={METHOD,CONSTRUCTOR,TYPE}) public @interface Parameters
public abstract String[] value
@Parameters({ "xmlPath" })
@Test
public void verifyXmlFile(String path) { ... }
and in testng.xml:
<parameter name="xmlPath" value="account.xml" />
Copyright © 2015. All rights reserved.