Top Description Fields Constructors Methods
org.testng.internal.annotations

public Class ParametersAnnotation

extends BaseAnnotation
implements IParametersAnnotation
Class Inheritance
All Implemented Interfaces
org.testng.annotations.IParametersAnnotation, org.testng.annotations.IAnnotation
Imports
org.testng.annotations.IParametersAnnotation

An implementation of IParameters

Field Summary

Modifier and TypeField and Description
private String[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String[]
getValue()

Implements org.testng.annotations.IParametersAnnotation.getValue.

The list of variables used to fill the parameters of this method.
public void
setValue(String[] value)

Inherited from org.testng.internal.annotations.BaseAnnotation:
getConstructorgetMethodgetTestClasssetConstructorsetMethodsetTestClass

Field Detail

m_valueback to summary
private String[] m_value

Constructor Detail

ParametersAnnotationback to summary
public ParametersAnnotation()

Method Detail

getValueback to summary
public String[] getValue()

Implements org.testng.annotations.IParametersAnnotation.getValue.

Doc from org.testng.annotations.IParametersAnnotation.getValue.

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" />

Returns:String[]

the value

Annotations
@Override
setValueback to summary
public void setValue(String[] value)