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:



strict = true,

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

glue = {"stepDefinitions"},

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


tags = {"@test"})

public class TestRunner {



Read More »

By: StackOverFlow - Tuesday, 13 March

Related Posts