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
 String dataProvider
          The name of the data provider for this test method.
 String[] parameters
          Deprecated. Use @Parameters
 

parameters

@Deprecated
public abstract 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 String dataProvider
The name of the data provider for this test method.

See Also:
DataProvider
Default:
""


Copyright © 2011. All Rights Reserved.