Package com.vaadin.tests.tb3.MultiBrowserTest

Examples of com.vaadin.tests.tb3.MultiBrowserTest.Browser


     */
    private Collection<DesiredCapabilities> getDesiredCapabilities(
            AbstractTB3Test testClassInstance) {
        Collection<DesiredCapabilities> desiredCapabilites = getFilteredCapabilities(testClassInstance);

        Browser runLocallyBrowser = testClassInstance.getRunLocallyBrowser();
        if (runLocallyBrowser != null) {
            desiredCapabilites = new ArrayList<DesiredCapabilities>();
            desiredCapabilites.add(runLocallyBrowser.getDesiredCapabilities());
        }

        return desiredCapabilites;
    }
View Full Code Here


     *             If something goes wrong
     */
    protected void setupDriver() throws Exception {
        DesiredCapabilities capabilities;

        Browser runLocallyBrowser = getRunLocallyBrowser();
        if (runLocallyBrowser != null) {
            if (System.getenv().containsKey("TEAMCITY_VERSION")) {
                throw new RuntimeException(
                        "@RunLocally is not supported for tests run on the build server");
            }
            capabilities = runLocallyBrowser.getDesiredCapabilities();
            setupLocalDriver(capabilities);
        } else {
            capabilities = getDesiredCapabilities();

            for (int i = 1; i <= BROWSER_INIT_ATTEMPTS; i++) {
View Full Code Here

        setDesiredCapabilities(desiredCapabilities);
    }

    @Override
    protected Browser getRunLocallyBrowser() {
        Browser runLocallyBrowser = super.getRunLocallyBrowser();
        if (runLocallyBrowser != null) {
            // Always use annotation value if present
            return runLocallyBrowser;
        }
View Full Code Here

TOP

Related Classes of com.vaadin.tests.tb3.MultiBrowserTest.Browser

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.