How to skip all cucumber-jvm scenarios when first scenario is failed

I have 8 cucumber-jvm scenarios and the very first measure the page load time and environment availability. In order to avoid unnecessary runs, if the first scenario is failed - for instance, environment is not available, or loading to slow - all others scenarios should be skipped.

How can I do that?

My cucumberOptions:

@RunWith(Cucumber.class)

@CucumberOptions(

strict = true,

features = {"src/test/resources/features"},

glue = {"stepDefinitions"},

format = { "progress", "html:target/Results",

"json:target/Results/cucumber.json"},

tags = {"@test"})

public class TestRunner {

}

Thanks!...

Read More »

By: StackOverFlow - Tuesday, 13 March

Related Posts