Package org.apache.jmeter.config

Examples of org.apache.jmeter.config.Arguments


  /**
   * Constructor for the HTTPSampler object.
   */
  public HTTPSampler()
  {
    setArguments(new Arguments());
  }
View Full Code Here


    /**
   * Constructor for the HTTPSampler2 object.
   */
  public HTTPSampler2()
  {
    setArguments(new Arguments());
  }
View Full Code Here

            assertEquals("value_+here", clone.getEncodedValue());
        }

        public void testConversion() throws Exception
        {
            Arguments args = new Arguments();
            args.addArgument("name.?", "value_ here");
            args.addArgument("name$of property", "value_.+");
            HTTPArgument.convertArgumentsToHTTP(args);
            CollectionProperty argList = args.getArguments();
            HTTPArgument httpArg =
                (HTTPArgument) argList.get(0).getObjectValue();
            assertEquals("name.%3F", httpArg.getEncodedName());
            assertEquals("value_+here", httpArg.getEncodedValue());
            httpArg = (HTTPArgument) argList.get(1).getObjectValue();
View Full Code Here

  protected void setUp()

  {

    Arguments args = new Arguments();

    args.addArgument("username","mstover");

    args.addArgument("password","pass");

    args.addArgument("action","login");

    config = new HTTPSampler();

    config.setName("Full Config");
View Full Code Here

  /** Logging  */
  transient private static Logger log = Hierarchy.getDefaultHierarchy().getLoggerFor("jmeter.protocol.java");

  public JavaSampler() {
    setArguments(new Arguments());
  }
View Full Code Here

      assertEquals("value_+here",clone.getEncodedValue());
    }
   
    public void testConversion() throws Exception
    {
      Arguments args = new Arguments();
      args.addArgument("name.?","value_ here");
      args.addArgument("name$of property","value_.+");
      HTTPArgument.convertArgumentsToHTTP(args);
      List argList = args.getArguments();
      HTTPArgument httpArg = (HTTPArgument)argList.get(0);
      assertEquals("name.%3F",httpArg.getEncodedName());
      assertEquals("value_+here",httpArg.getEncodedValue());
      httpArg = (HTTPArgument)argList.get(1);
      assertEquals("name%24of+property",httpArg.getEncodedName());
View Full Code Here

   ***************************************/
  public TestElement createTestElement()
  {
    ConfigTestElement element = new ConfigTestElement();
    this.configureTestElement(element);
    Arguments args = (Arguments)argsPanel.createTestElement();
    HTTPArgument.convertArgumentsToHTTP(args);
    element.setProperty(HTTPSampler.ARGUMENTS, args);
    element.setProperty(HTTPSampler.DOMAIN, domain.getText());
    element.setProperty(HTTPSampler.PORT, port.getText());
    element.setProperty(HTTPSampler.PROTOCOL, protocol.getText());
View Full Code Here

  /**
   *  Constructor for the JavaConfig object
   */
  public JavaConfig()
  {
    setArguments(new Arguments());
  }
View Full Code Here

    return (String) getPropertyAsString(JavaSampler.CLASSNAME);
  }

  public void addArgument(String name,String value)
  {
    Arguments args = this.getArguments();
    args.addArgument(name,value);
  }
View Full Code Here

    args.addArgument(name,value);
  }

  public void removeArguments()
  {
    this.setProperty(JavaSampler.ARGUMENTS,new Arguments());
  }
View Full Code Here

TOP

Related Classes of org.apache.jmeter.config.Arguments

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.