ObjectFactory (TestNG)

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.testng.annotations
Annotation Type ObjectFactory

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

Marks a method as the object factory to use for creating all test instances. The test classes can only contain one method marked with this annotation, and the method must return an instance of `ITestObjectFactory`.

Since:
  5.6
Author:
  Hani Suleiman

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT