Package org.apache.jmeter.protocol.http.config

Examples of org.apache.jmeter.protocol.http.config.UrlConfig.addArgument()


            inForm = false;
          }
        }
        else if(tag.equalsIgnoreCase("input"))
        {
          url.addArgument(getAttributeValue(nodeAtts, "name"),
              getAttributeValue(nodeAtts, "value"));
        }

        else if(tag.equalsIgnoreCase("textarea"))
          try
View Full Code Here


        }

        else if(tag.equalsIgnoreCase("textarea"))
          try
          {
            url.addArgument(getAttributeValue(nodeAtts, "name"),
                tempNode.getFirstChild().getNodeValue());
          }
          catch(NullPointerException e)
          {
            url.addArgument(getAttributeValue(nodeAtts, "name"), "");
View Full Code Here

            url.addArgument(getAttributeValue(nodeAtts, "name"),
                tempNode.getFirstChild().getNodeValue());
          }
          catch(NullPointerException e)
          {
            url.addArgument(getAttributeValue(nodeAtts, "name"), "");
          }

        else if(tag.equalsIgnoreCase("select"))
          selectName = getAttributeValue(nodeAtts, "name");
View Full Code Here

        {
          String value = getAttributeValue(nodeAtts, "value");
          if(value == null || value.equals(""))
            value = tempNode.getFirstChild().getNodeValue();

          url.addArgument(selectName, value);
        }
      }
      else if(tag.equalsIgnoreCase("form"))
      {
        try
View Full Code Here

  }

  public void testSimpleParse3() throws Exception
  {
    UrlConfig config = makeUrlConfig(".*index.*");
    config.addArgument("param1","value1");
    URL context = new URL("http://www.apache.org/subdir/previous.html");
    String responseText = "<html><head><title>Test page</title></head><body>" +
        "<a href=\"/home/index.html?param1=value1\">Goto index page</a></body></html>";
    Entry entry = new Entry();
    entry.addConfigElement(config);
View Full Code Here

   *@exception  Exception  Description of Exception
   ***********************************************************/
  public void testSimpleFormParse() throws Exception
  {
    UrlConfig config = makeUrlConfig(".*index.html");
    config.addArgument("test","g.*");
    config.setMethod(UrlConfig.POST);
    URL context = new URL("http://www.apache.org/subdir/previous.html");
    Entry entry = new Entry();
    entry.addConfigElement(config);
    String responseText = "<html><head><title>Test page</title></head><body>" +
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.