Package net.thucydides.core.webdriver

Examples of net.thucydides.core.webdriver.Configuration


        ThucydidesWebDriverSupport.initializeFieldsIn(testCase);
        injectDependenciesInto(testCase);
    }

    private static void initStepListener() {
        Configuration configuration = Injectors.getInjector().getInstance(Configuration.class);
        File outputDirectory = configuration.getOutputDirectory();
        StepListener listener  = new BaseStepListener(outputDirectory, getPages());
        stepListenerThreadLocal.set(listener);
        StepEventBus.getEventBus().registerListener(getStepListener());
    }
View Full Code Here


            return filename.endsWith(".xml");
        }
    }

    protected ThucydidesRunner getNormalTestRunnerUsing(Class<?> testClass) throws Throwable {
        Configuration configuration = new SystemPropertiesConfiguration(environmentVariables);
        WebDriverFactory factory = new WebDriverFactory(environmentVariables);
        return new ThucydidesRunner(testClass, factory, configuration);
    }
View Full Code Here

        WebDriverFactory factory = new WebDriverFactory(environmentVariables);
        return new ThucydidesRunner(testClass, factory, configuration);
    }
   
    protected ThucydidesParameterizedRunner getTestRunnerUsing(Class<?> testClass) throws Throwable {
        Configuration configuration = new SystemPropertiesConfiguration(environmentVariables);
        WebDriverFactory factory = new WebDriverFactory(environmentVariables);
        BatchManager batchManager = new BatchManagerProvider(configuration).get();
        return new ThucydidesParameterizedRunner(testClass, configuration, factory, batchManager);
    }
View Full Code Here

        BatchManager batchManager = new BatchManagerProvider(configuration).get();
        return new ThucydidesParameterizedRunner(testClass, configuration, factory, batchManager);
    }

    protected ThucydidesParameterizedRunner getStubbedTestRunnerUsing(Class<?> testClass) throws Throwable {
        Configuration configuration = new SystemPropertiesConfiguration(environmentVariables);
        WebDriverFactory factory = new WebDriverFactory(environmentVariables);
        BatchManager batchManager = new BatchManagerProvider(configuration).get();
        return new ThucydidesParameterizedRunner(testClass, configuration, factory, batchManager) {
            @Override
            public void generateReports() {
View Full Code Here

        final String systemDefinedBaseUrl = "http://www.google.com.au";

        environmentVariables.setProperty("webdriver.base.url", systemDefinedBaseUrl);

        Configuration Configuration = new SystemPropertiesConfiguration(environmentVariables);
        final Pages pages = new Pages(driver, Configuration);
        pages.get(SimplePage.class).open();

        verify(driver).get(driverUrl.capture());
        assertThat(driverUrl.getValue(), containsString(systemDefinedBaseUrl));
View Full Code Here

        PageFactory.initElements(decorator, pageObject);

  }
 
  private ElementLocatorFactorySelector getElementLocatorFactorySelector() {
      Configuration configuration = Injectors.getInjector().getInstance(Configuration.class);
      return new ElementLocatorFactorySelector(configuration);
  }
View Full Code Here

    public void initEnvironment() {
        environmentVariables = new MockEnvironmentVariables();
    }

    protected ThucydidesRunner getTestRunnerUsing(Class<?> testClass) throws InitializationError {
        Configuration configuration = new SystemPropertiesConfiguration(environmentVariables);
        WebDriverFactory factory = new WebDriverFactory(environmentVariables);
        return new ThucydidesRunner(testClass, factory, configuration);
    }
View Full Code Here

TOP

Related Classes of net.thucydides.core.webdriver.Configuration

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.