Package org.apache.jmeter.protocol.http.modifier

Examples of org.apache.jmeter.protocol.http.modifier.ParamMask


   */
  public void modifyTestElement(TestElement m) {
    configureTestElement(m);
    if (m instanceof ParamModifier) {
      ParamModifier modifier = (ParamModifier) m;
      ParamMask mask = modifier.getMask();
      mask.setFieldName(_fieldName.getText());
      mask.setPrefix(_prefix.getText());
      mask.setLowerBound(Long.parseLong(_lowerBound.getText()));
      mask.setIncrement(Long.parseLong(_increment.getText()));
      mask.setUpperBound(Long.parseLong(_upperBound.getText()));
      mask.setSuffix(_suffix.getText());
    }
  }
View Full Code Here


    /**
     * Writes a {@link ParamMask} object in XML format to the given <code>Writer</code>
     */
    public void save(Saveable parm1, Writer out) throws IOException {
        ParamMask mask = (ParamMask) parm1;
        out.write("\n");
        out.write("  <ParamMask>\n");
        out.write("    <mask name=\"");
        out.write(JMeterHandler.convertToXML(mask.getName()));
        out.write("\" prefix=\"");
        out.write(JMeterHandler.convertToXML(mask.getPrefix()));
        out.write("\" upperBound=\"");
        out.write(JMeterHandler.convertToXML(Long.toString(mask.getUpperBound())));
        out.write("\" lowerBound=\"");
        out.write(JMeterHandler.convertToXML(Long.toString(mask.getLowerBound())));
        out.write("\" increment=\"");
        out.write(JMeterHandler.convertToXML(Long.toString(mask.getIncrement())));
        out.write("\">");
        out.write("</mask>\n");
        out.write("  </ParamMask>\n");
    }
View Full Code Here

     * tag does not currently support attributes
     *
     * @param atts The attributes of the XML "ParamMask" tag
     */
    public void setAtts(Attributes atts) throws Exception {
        _mask = new ParamMask();
        _mask.setProperty(TestElement.GUI_CLASS,JMeterHandler.getGuiClass(atts.getValue("type")));
    }
View Full Code Here

   ***************************************/
  public TestElement createTestElement()
  {
    ParamModifier modifier = new ParamModifier();
    configureTestElement(modifier);
    ParamMask mask = modifier.getMask();
    mask.setFieldName(_fieldName.getText());
    mask.setPrefix(_prefix.getText());
    mask.setLowerBound(Long.parseLong(_lowerBound.getText()));
    mask.setIncrement(Long.parseLong(_increment.getText()));
    mask.setUpperBound(Long.parseLong(_upperBound.getText()));
    mask.setSuffix(_suffix.getText());
    mask.resetValue();
    return modifier;
  }
View Full Code Here

TOP

Related Classes of org.apache.jmeter.protocol.http.modifier.ParamMask

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.