Package com.googlecode.jmeter.plugins.webdriver.sampler

Examples of com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverSampler


        super.configure(element);
    }

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


    }

    @Test
    public void shouldSetParameters() {
        gui.parameters.setText("parameter1 parameter2");
        final WebDriverSampler testElement = (WebDriverSampler) gui.createTestElement();
        assertThat(testElement.getParameters(), is("parameter1 parameter2"));
    }
View Full Code Here

    }

    @Test
    public void shouldSetScript() {
        gui.script.setText("some script");
        final WebDriverSampler testElement = (WebDriverSampler) gui.createTestElement();
        assertThat(testElement.getScript(), is("some script"));
    }
View Full Code Here

        assertThat(gui.parameters.getText(), is(""));
    }

    @Test
    public void shouldSetValuesOnConfigure() {
        WebDriverSampler sampler = new WebDriverSampler();
        sampler.setParameters("param1 param2");
        sampler.setScript("var script;");

        gui.configure(sampler);

        assertThat(gui.script.getText(), is(sampler.getScript()));
        assertThat(gui.parameters.getText(), is(sampler.getParameters()));
    }
View Full Code Here

TOP

Related Classes of com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverSampler

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.