espresso-test-lib/EspressoInstrumentation/src/com/tomtom/espresso/test/CucumberHelperTestSteps.java
public static void takeScreenshotOnFail() {
        if ((scenario != null) && (scenario.isFailed())) {
            takeScreenshot("failed");
        }
    }
/**
     * Take a screenshot when the test scenario has failed
     */
Take a screenshot when the test scenario has failed
Take a screenshot when the test scenario has failed
public static void takeScreenshotOnFail() {
        if ((scenario != null) && (scenario.isFailed())) {
            takeScreenshot("failed");
        }
    }
public static void takeScreenshotOnFail ( ) { if ( ( scenario != null ) && ( scenario . isFailed ( ) ) ) { takeScreenshot ( "failed" ) ; } }
Take a screenshot when the test scenario has failed
Take a screenshot when the test scenario has failed