@Retention(value=RUNTIME)
@Target(value={METHOD,CONSTRUCTOR,TYPE})
public @interface Parameters
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String[] |
value
The list of variables used to fill the parameters of this method.
|
public abstract java.lang.String[] value
@Parameters({ "xmlPath" })
@Test
public void verifyXmlFile(String path) { ... }
and in testng.xml:
<parameter name="xmlPath" value="account.xml" />