Interface IParametersAnnotation

All Superinterfaces:
IAnnotation

public interface IParametersAnnotation extends IAnnotation
Encapsulate the @Parameters / @testng.parameters annotation
  • Method Summary

    Modifier and Type
    Method
    Description
    The list of variables used to fill the parameters of this method.
  • Method Details

    • getValue

      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:
      the value