Package org.apache.jmeter.sampler

Examples of org.apache.jmeter.sampler.TestAction


   *
   * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
   */
  public void modifyTestElement(TestElement element) {
    super.configureTestElement(element);
    TestAction ta = (TestAction) element;
    ta.setAction(action);
    ta.setTarget(target);
    ta.setDuration(duration);
  }
View Full Code Here


    return "test_action_title"; // $NON-NLS-1$
  }

  public void configure(TestElement element) {
    super.configure(element);
    TestAction ta = (TestAction) element;

    target = ta.getTarget();
    if (target == TestAction.THREAD)
      targetBox.setSelectedItem(threadTarget);
    else
      targetBox.setSelectedItem(testTarget);

    action = ta.getAction();
    if (action == TestAction.PAUSE)
      pauseButton.setSelected(true);
    else
      stopButton.setSelected(true);

    durationString = ta.getDurationAsString();
    durationField.setText(durationString);
  }
View Full Code Here

  /**
   * @see org.apache.jmeter.gui.JMeterGUIComponent#createTestElement()
   */
  public TestElement createTestElement() {
    TestAction ta = new TestAction();
    modifyTestElement(ta);
    return ta;
  }
View Full Code Here

   *
   * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
   */
  public void modifyTestElement(TestElement element) {
    super.configureTestElement(element);
    TestAction ta = (TestAction) element;
    ta.setAction(action);
    ta.setTarget(target);
    ta.setDuration(durationString);
  }
View Full Code Here

    return "test_action_title";
  }

  public void configure(TestElement element) {
    super.configure(element);
    TestAction ta = (TestAction) element;

    target = ta.getTarget();
    if (target == TestAction.THREAD)
      targetBox.setSelectedItem(threadTarget);
    else
      targetBox.setSelectedItem(testTarget);

    action = ta.getAction();
    if (action == TestAction.PAUSE)
      pauseButton.setSelected(true);
    else
      stopButton.setSelected(true);

    duration = ta.getDuration();
    durationField.setText(Integer.toString(duration));
  }
View Full Code Here

  /**
   * @see org.apache.jmeter.gui.JMeterGUIComponent#createTestElement()
   */
  public TestElement createTestElement() {
    TestAction ta = new TestAction();
    modifyTestElement(ta);
    return ta;
  }
View Full Code Here

   *
   * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
   */
  public void modifyTestElement(TestElement element) {
    super.configureTestElement(element);
    TestAction ta = (TestAction) element;
    ta.setAction(action);
    ta.setTarget(target);
    ta.setDuration(duration);
  }
View Full Code Here

TOP

Related Classes of org.apache.jmeter.sampler.TestAction

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.