Package org.apache.jmeter.protocol.http.sampler

Examples of org.apache.jmeter.protocol.http.sampler.AccessLogSampler


     * @see org.apache.jmeter.gui.JMeterGUIComponent#createTestElement()
     */
    public TestElement createTestElement()
    {
      if (SAMPLER == null){
      SAMPLER = new AccessLogSampler();
      this.configureTestElement(SAMPLER);
      SAMPLER.setParserClassName(parserClassName.getText());
      SAMPLER.setGeneratorClassName(generatorClassName.getText());
      SAMPLER.setLogFile(logFile.getFilename());
      SAMPLER.setDomain(HOSTNAME.getText());
View Full Code Here


      gui = new AccessLogSamplerGui();
    }
       
    public void testCloneSampler() throws Exception
    {
      AccessLogSampler sampler = (AccessLogSampler)gui.createTestElement();
      sampler.addArgument("param","value");
      AccessLogSampler clonedSampler = (AccessLogSampler)sampler.clone();
      clonedSampler.setRunningVersion(true);
      sampler.getArguments().getArgument(0).setValue("new value");
      assertEquals(
        "Sampler didn't clone correctly",
        "new value",
        sampler.getArguments().getArgument(0).getValue());
View Full Code Here

     * @see org.apache.jmeter.gui.JMeterGUIComponent#createTestElement()
     */
    public TestElement createTestElement()
    {
      if (SAMPLER == null){
      SAMPLER = new AccessLogSampler();
      this.configureTestElement(SAMPLER);
      SAMPLER.setParserClassName(parserClassName.getText());
      SAMPLER.setGeneratorClassName(generatorClassName.getText());
      SAMPLER.setLogFile(logFile.getFilename());
      SAMPLER.setDomain(HOSTNAME.getText());
View Full Code Here

      gui = new AccessLogSamplerGui();
    }
       
    public void testCloneSampler() throws Exception
    {
      AccessLogSampler sampler = (AccessLogSampler)gui.createTestElement();
      sampler.addArgument("param","value");
      AccessLogSampler clonedSampler = (AccessLogSampler)sampler.clone();
      clonedSampler.setRunningVersion(true);
      sampler.getArguments().getArgument(0).setValue("new value");
      assertEquals(
        "Sampler didn't clone correctly",
        "new value",
        sampler.getArguments().getArgument(0).getValue());
View Full Code Here

TOP

Related Classes of org.apache.jmeter.protocol.http.sampler.AccessLogSampler

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.