org.testng.annotations
Annotation Type Factory


@Retention(value=RUNTIME)@Target(value={METHOD,CONSTRUCTOR})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
 StringdataProvider
          The name of the data provider for this test method.
 Class<?>dataProviderClass
          The class where to look for the data provider.
 booleanenabled
          Whether this factory is enabled.
 String[]parameters
          Deprecated. Use @Parameters
 

parameters

@Deprecatedpublic 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:
""

dataProviderClass

public abstract Class<?> dataProviderClass
The class where to look for the data provider. If not specified, the dataprovider will be looked on the class of the current test method or one of its super classes. If this attribute is specified, the data provider method needs to be static on the specified class.

Default:
java.lang.Object.class

enabled

public abstract boolean enabled
Whether this factory is enabled.

Default:
true


Copyright © 2012. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14