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

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


    }

    @Test
    public void shouldSetAndroidDriverHostPort() {
        gui.androidDriverHostPort.setText("some_port");
        final AndroidDriverConfig testElement = (AndroidDriverConfig) gui.createTestElement();
        assertThat(testElement.getAndroidDriverHostPort(), is("some_port"));
    }
View Full Code Here


        assertThat(gui.androidDriverHostPort.getText(), is("8080"));
    }

    @Test
    public void shouldSetAndroidDriverHostPortOnConfigure() {
        AndroidDriverConfig config = new AndroidDriverConfig();
        config.setAndroidDriverHostPort("some_port");
        gui.configure(config);

        assertThat(gui.androidDriverHostPort.getText(), is(config.getAndroidDriverHostPort()));
    }
View Full Code Here

    @Override
    public void configure(TestElement element) {
        super.configure(element);
        if(element instanceof AndroidDriverConfig) {
            AndroidDriverConfig config = (AndroidDriverConfig) element;
            androidDriverHostPort.setText(config.getAndroidDriverHostPort());
        }
    }
View Full Code Here

        }
    }

    @Override
    public TestElement createTestElement() {
        AndroidDriverConfig element = new AndroidDriverConfig();
        modifyTestElement(element);
        return element;
    }
View Full Code Here

    @Override
    public void modifyTestElement(TestElement element) {
        super.modifyTestElement(element);
        if(element instanceof AndroidDriverConfig) {
            AndroidDriverConfig config = (AndroidDriverConfig)element;
            config.setAndroidDriverHostPort(androidDriverHostPort.getText());
        }
    }
View Full Code Here

TOP

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

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.