Examples of FlatScenarioSteps


Examples of net.thucydides.core.steps.samples.FlatScenarioSteps

    public void subsequent_identical_screenshots_should_not_be_duplicated_within_a_step() {

        StepEventBus.getEventBus().testSuiteStarted(MyTestCase.class);
        StepEventBus.getEventBus().testStarted("app_should_work");

        FlatScenarioSteps steps = stepFactory.getStepLibraryFor(FlatScenarioSteps.class);
        steps.step_one();
        steps.step_with_four_identical_screenshots();
        steps.step_two();
        StepEventBus.getEventBus().testFinished(testOutcome);

        assertThat(stepListener.getCurrentTestOutcome().getTestSteps().get(1).getScreenshotCount(), is(1));
    }
View Full Code Here

Examples of net.thucydides.core.steps.samples.FlatScenarioSteps

        configureEventBus("thucydides.take.screenshots","AFTER_EACH_STEP");

        StepEventBus.getEventBus().testSuiteStarted(MyTestCase.class);
        StepEventBus.getEventBus().testStarted("app_should_work");

        FlatScenarioSteps steps = stepFactory.getStepLibraryFor(FlatScenarioSteps.class);
        steps.step_one();
        steps.step_two();
        StepEventBus.getEventBus().testFinished(testOutcome);

        verify(driver, times(2)).getScreenshotAs((OutputType<?>) anyObject());
    }
View Full Code Here

Examples of net.thucydides.core.steps.samples.FlatScenarioSteps

        configureEventBus("thucydides.take.screenshots","AFTER_EACH_STEP");

        StepEventBus.getEventBus().testSuiteStarted(MyTestCase.class);
        StepEventBus.getEventBus().testStarted("app_should_work");

        FlatScenarioSteps steps = stepFactory.getStepLibraryFor(FlatScenarioSteps.class);
        steps.step_with_screenshot();
        StepEventBus.getEventBus().testFinished(testOutcome);

        verify(driver, times(2)).getScreenshotAs((OutputType<?>) anyObject());
    }
View Full Code Here

Examples of net.thucydides.core.steps.samples.FlatScenarioSteps

        configureEventBus("thucydides.take.screenshots","FOR_EACH_ACTION");

        StepEventBus.getEventBus().testSuiteStarted(MyTestCase.class);
        StepEventBus.getEventBus().testStarted("app_should_work");

        FlatScenarioSteps steps = stepFactory.getStepLibraryFor(FlatScenarioSteps.class);
        steps.step_with_screen_changes();
        StepEventBus.getEventBus().testFinished(testOutcome);

        verify(driver, times(3)).getScreenshotAs((OutputType<?>) anyObject());
    }
View Full Code Here

Examples of net.thucydides.core.steps.samples.FlatScenarioSteps

        configureEventBus("thucydides.take.screenshots","AFTER_EACH_STEP");

        StepEventBus.getEventBus().testSuiteStarted(MyTestCase.class);
        StepEventBus.getEventBus().testStarted("app_should_work");

        FlatScenarioSteps steps = stepFactory.getStepLibraryFor(FlatScenarioSteps.class);
        steps.step_with_screen_changes();
        StepEventBus.getEventBus().testFinished(testOutcome);

        verify(driver, times(1)).getScreenshotAs((OutputType<?>) anyObject());
    }
View Full Code Here

Examples of net.thucydides.core.steps.samples.FlatScenarioSteps

        configureEventBus("thucydides.take.screenshots","FOR_EACH_ACTION");

        StepEventBus.getEventBus().testSuiteStarted(MyTestCase.class);
        StepEventBus.getEventBus().testStarted("app_should_work");

        FlatScenarioSteps steps = stepFactory.getStepLibraryFor(FlatScenarioSteps.class);
        steps.step_with_screenshot();
        StepEventBus.getEventBus().testFinished(testOutcome);

        verify(driver, never()).getPageSource();
    }
View Full Code Here

Examples of net.thucydides.core.steps.samples.FlatScenarioSteps

    public void screenshots_should_not_be_taken_for_pending_steps() {

        StepEventBus.getEventBus().testSuiteStarted(MyTestCase.class);
        StepEventBus.getEventBus().testStarted("app_should_work");

        FlatScenarioSteps steps = stepFactory.getStepLibraryFor(FlatScenarioSteps.class);
        steps.pendingStep();
        StepEventBus.getEventBus().testFinished(testOutcome);

        verify(driver, never()).getScreenshotAs((OutputType<?>) anyObject());
    }
View Full Code Here

Examples of net.thucydides.core.steps.samples.FlatScenarioSteps

    public void screenshots_should_not_be_taken_for_pending_steps_among_implemented_steps() {

        StepEventBus.getEventBus().testSuiteStarted(MyTestCase.class);
        StepEventBus.getEventBus().testStarted("app_should_work");

        FlatScenarioSteps steps = stepFactory.getStepLibraryFor(FlatScenarioSteps.class);
        steps.step_one();
        steps.pendingStep();
        StepEventBus.getEventBus().testFinished(testOutcome);

        verify(driver, times(2)).getScreenshotAs((OutputType<?>) anyObject());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.