Package net.thucydides.core.steps

Examples of net.thucydides.core.steps.StepFactory


    private void setupDefaultListener() throws Exception {
        listener = JUnitStepListener.withOutputDirectory(outputDirectory)
                                    .and().withPageFactory(pages)
                                    .and().withTestClass(MyTestCase.class)
                                    .and().build();
        stepFactory = new StepFactory(pages);
        listener.testRunStarted(Description.createSuiteDescription(MyTestCase.class));
        listener.testStarted(Description.createTestDescription(MyTestCase.class,"app_should_work"));
    }
View Full Code Here


    private void setupFailureListener() throws Exception {
        failureTestListener = JUnitStepListener.withOutputDirectory(outputDirectory)
                .and().withPageFactory(pages)
                .and().withTestClass(ScenarioWithSomeFailingTests.class)
                .and().build();
        stepFactory = new StepFactory(pages);
        failureTestListener.testRunStarted(Description.createSuiteDescription(ScenarioWithSomeFailingTests.class));
        failureTestListener.testStarted(Description.createTestDescription(ScenarioWithSomeFailingTests.class,"app_should_work"));
    }
View Full Code Here

    private static void setupWebdriverManager(WebdriverManager webdriverManager) {
        webdriverManagerThreadLocal.set(webdriverManager);
    }

    private static void initStepFactoryUsing(final Pages pagesObject) {
        stepFactoryThreadLocal.set(new StepFactory(pagesObject));
    }
View Full Code Here

    @Before
    public void initMocks() {
        MockitoAnnotations.initMocks(this);
        Pages pages = new Pages(driver);
        stepFactory = new StepFactory(pages);

    }
View Full Code Here

TOP

Related Classes of net.thucydides.core.steps.StepFactory

Copyright © 2018 www.massapicom. 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.