@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface FTCucumberOptions
Example 2: Providing folder to the feature files
@FTCucumberOptions(cucumberOptions = { "--glue", "", "Features\\ValidateOrderFeature.feature" })
Example 3: Providing more than one feature file
@FTCucumberOptions(cucumberOptions = { "--glue", "", "Features" })
Example 4: Providing 2 glue(step definition) options.
@FTCucumberOptions(cucumberOptions = { "--glue", "", "Features\\PlaceOrder.feature", "Features\\ValidateOrder.feature", })
Example 5: Print readable output on FT console
@FTCucumberOptions(cucumberOptions = { "--glue", "com.package1", //Folder inside project- com/package1 "--glue", "com.package2", //Folder inside project- com/package2 "Features\\ValidateOrderFeature.feature" })
Example 6: Run specific tagged scenario using --tags options.
@FTCucumberOptions(cucumberOptions = { "--glue", "", "--plugin", "pretty", "--monochrome", "Features\\ValidateOrderFeature.feature" })
Example 7: Run using --tags options by ORing of tags
@FTCucumberOptions(cucumberOptions = { "--glue", "", "--plugin", "pretty", "--monochrome", "--tags", "@smoke", "Features\\ValidateOrderFeature.feature" })
Example 8: Run using --tags options by ANDing of tags
@FTCucumberOptions(cucumberOptions = { "--glue", "", "--plugin", "pretty", "--monochrome", "--tags", "@smoke,@sanity", "Features\\ValidateOrderFeature.feature" })
Example 9: Run using --tags options by using NOT(~) combination
@FTCucumberOptions(cucumberOptions = { "--glue", "", "--plugin", "pretty", "--monochrome", "--tags", "@smoke", "--tags", "@sanity", "Features\\ValidateOrderFeature.feature" })
Example 10: Run using only feature file or folder to feature file(s)
@FTCucumberOptions(cucumberOptions = { "--glue", "", "--plugin", "pretty", "--monochrome", "--tags", "~@smoke", "Features\\ValidateOrderFeature.feature" })
@FTCucumberOptions(cucumberOptions = { "Features\\ValidateOrderFeature.feature" })
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String[] |
cucumberOptions
this is the methods that takes all the cucumber CLI options, in the same syntax.
|