Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.testng.annotations
Annotation Type Factory

    @Retention(value=RUNTIME)
    @Target(value=METHOD)
    public @interface Factory

Marks a method as a factory that returns objects that will be used by TestNG as Test classes. The method must return Object[].

Author:
  Cedric Beust

Optional Element Summary
`java.lang.String` | `dataProvider` The name of the data provider for this test method.
`java.lang.String[]` | `parameters` Deprecated. Use @Parameters

### parameters

    @Deprecated
    public abstract java.lang.String[] parameters

  Deprecated. Use @Parameters

  The list of variables used to fill the parameters of this method. These variables must be defined in the property file.

  Default:
    {}

### dataProvider

    public abstract java.lang.String dataProvider

  The name of the data provider for this test method.

  See Also:
    `DataProvider`
  Default:
    ""

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT