public class ParametersAnnotation extends BaseAnnotation implements IParametersAnnotation
| Constructor and Description |
|---|
ParametersAnnotation() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getValue()
The list of variables used to fill the parameters of this method.
|
void |
setValue(String[] value) |
getConstructor, getMethod, getTestClass, setConstructor, setMethod, setTestClasspublic String[] getValue()
IParametersAnnotation
@Parameters({ "xmlPath" })
@Test
public void verifyXmlFile(String path) { ... }
and in testng.xml:
<parameter name="xmlPath" value="account.xml" />
getValue in interface IParametersAnnotationpublic void setValue(String[] value)
Copyright © 2024. All rights reserved.