Top Description Methods
org.testng.annotations

public Interface IParametersAnnotation

extends IAnnotation
Known Direct Implementers
org.testng.internal.annotations.ParametersAnnotation

Encapsulate the @Parameters / @testng.parameters annotation

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

the value
getValue
()

The list of variables used to fill the parameters of this method.

Method Detail

getValueback to summary
public String[] 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