Package org.testng.internal.annotations
Class ParametersAnnotation
- java.lang.Object
-
- org.testng.internal.annotations.BaseAnnotation
-
- org.testng.internal.annotations.ParametersAnnotation
-
- All Implemented Interfaces:
IAnnotation
,IParametersAnnotation
public class ParametersAnnotation extends BaseAnnotation implements IParametersAnnotation
An implementation of IParameters
-
-
Constructor Summary
Constructors Constructor Description ParametersAnnotation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getValue()
The list of variables used to fill the parameters of this method.void
setValue(java.lang.String[] value)
-
Methods inherited from class org.testng.internal.annotations.BaseAnnotation
getConstructor, getMethod, getTestClass, setConstructor, setMethod, setTestClass
-
-
-
-
Method Detail
-
getValue
public java.lang.String[] getValue()
Description copied from interface:IParametersAnnotation
The list of variables used to fill the parameters of this method. These variables must be defined in your testng.xml file. For example@Parameters({ "xmlPath" })
@Test
public void verifyXmlFile(String path) { ... }
and in testng.xml:
<parameter name="xmlPath" value="account.xml" />
- Specified by:
getValue
in interfaceIParametersAnnotation
-
setValue
public void setValue(java.lang.String[] value)
-
-