Annotation Type TestOptions


  • @Retention(RUNTIME)
    @Target({METHOD,TYPE})
    public @interface TestOptions
    Used for specifying some automation test options.
    This annotation can be applied on test methods and classes but some arguments are applicable only methods. See the arguments documentation.
    • Element Detail

      • dataFileFolder

        String dataFileFolder
        Returns:
        the folder holding files with input test data
        Default:
        ""
      • dataFile

        String dataFile
        Returns:
        a file with input test data. It holds data sheets.
        Default:
        ""
      • dataSheet

        String dataSheet
        Applicable only on methods
        Returns:
        the data sheet. It holds the input test data for the method it is applied on.
        Default:
        ""
      • maxRuns

        int maxRuns
        Specifies the max number of times a test can be run. It can be applied on test method or it containing class or some of the parent classes
        Meaningful values are numbers above 1
        Note: It takes effect if a Retry Analyzer is specified for a test.
        Returns:
        Default:
        -1