Package com.googlecode.jmeter.plugins.webdriver.config

Examples of com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig


        assertThat(testElement.getFtpPort(), is(123));
    }

    @Test
    public void shouldSetFtpPortTo8080ByDefault() {
        final WebDriverConfig testElement = (WebDriverConfig) gui.createTestElement();
        assertThat(testElement.getFtpPort(), is(8080));
    }
View Full Code Here


    }

    @Test
    public void shouldSetSocksHost() {
        gui.socksProxyHost.setText("host");
        final WebDriverConfig testElement = (WebDriverConfig) gui.createTestElement();
        assertThat(testElement.getSocksHost(), is("host"));
    }
View Full Code Here

    }

    @Test
    public void shouldSetSocksPort() {
        gui.socksProxyPort.setText("123");
        final WebDriverConfig testElement = (WebDriverConfig) gui.createTestElement();
        assertThat(testElement.getSocksPort(), is(123));
    }
View Full Code Here

        assertThat(testElement.getSocksPort(), is(123));
    }

    @Test
    public void shouldSetSocksPortTo8080ByDefault() {
        final WebDriverConfig testElement = (WebDriverConfig) gui.createTestElement();
        assertThat(testElement.getSocksPort(), is(8080));
    }
View Full Code Here

    }

    @Test
    public void shouldSetNoProxyList() {
        gui.noProxyList.setText("somehost,otherhost");
        final WebDriverConfig testElement = (WebDriverConfig) gui.createTestElement();
        assertThat(testElement.getNoProxyHost(), is("somehost,otherhost"));
    }
View Full Code Here

        assertThat(testElement.getNoProxyHost(), is("somehost,otherhost"));
    }

    @Test
    public void shouldSetLocalhostInNoProxyListByDefault() {
        final WebDriverConfig testElement = (WebDriverConfig) gui.createTestElement();
        assertThat(testElement.getNoProxyHost(), is("localhost"));
    }
View Full Code Here

        assertThat(gui.noProxyList.getText(), is("localhost"));
    }

    @Test
    public void shouldSetValuesOnConfigure() {
        WebDriverConfig config = new WebDriverConfigImpl();
        config.setProxyType(ProxyType.AUTO_DETECT);
        config.setProxyPacUrl("pac-url");
        config.setHttpHost("http-host");
        config.setHttpPort(123);
        config.setUseHttpSettingsForAllProtocols(false);
        config.setHttpsHost("https-host");
        config.setHttpPort(123);
        config.setFtpHost("ftp-host");
        config.setFtpPort(123);
        config.setSocksHost("socks-host");
        config.setSocksPort(123);
        config.setNoProxyHost("host,otherhost");

        gui.configure(config);

        assertThat(gui.autoDetectProxy.isSelected(), is(true));
        assertThat(gui.pacUrl.getText(), is(config.getProxyPacUrl()));
        assertThat(gui.httpProxyHost.getText(), is(config.getHttpHost()));
        assertThat(gui.httpProxyPort.getText(), is(String.valueOf(config.getHttpPort())));
        assertThat(gui.useHttpSettingsForAllProtocols.isSelected(), is(config.isUseHttpSettingsForAllProtocols()));
        assertThat(gui.httpsProxyHost.getText(), is(config.getHttpsHost()));
        assertThat(gui.httpsProxyPort.getText(), is(String.valueOf(config.getHttpsPort())));
        assertThat(gui.ftpProxyHost.getText(), is(config.getFtpHost()));
        assertThat(gui.ftpProxyPort.getText(), is(String.valueOf(config.getFtpPort())));
        assertThat(gui.socksProxyHost.getText(), is(config.getSocksHost()));
        assertThat(gui.socksProxyPort.getText(), is(String.valueOf(config.getSocksPort())));
        assertThat(gui.noProxyList.getText(), is(config.getNoProxyHost()));
    }
View Full Code Here

        assertThat(gui.noProxyList.getText(), is(config.getNoProxyHost()));
    }

    @Test
    public void shouldSetExperimentalValuesOnConfigure() {
        WebDriverConfig config = new WebDriverConfigImpl();
        config.setRecreateBrowserOnIterationStart(true);

        gui.configure(config);

        assertThat(gui.recreateBrowserOnIterationStart.isSelected(), is(true));
    }
View Full Code Here

        assertThat(gui.recreateBrowserOnIterationStart.isSelected(), is(true));
    }

    @Test
    public void shouldSetNoProxyOnConfigure() {
        WebDriverConfig config = new WebDriverConfigImpl();
        config.setProxyType(ProxyType.DIRECT);
        gui.configure(config);

        assertThat(gui.directProxy.isSelected(), is(true));
    }
View Full Code Here

        assertThat(gui.directProxy.isSelected(), is(true));
    }

    @Test
    public void shouldSetAutoDetectProxyOnConfigure() {
        WebDriverConfig config = new WebDriverConfigImpl();
        config.setProxyType(ProxyType.AUTO_DETECT);
        gui.configure(config);

        assertThat(gui.autoDetectProxy.isSelected(), is(true));
    }
View Full Code Here

TOP

Related Classes of com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig

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.