Ejemplo n.º 1
0
 /* Implements JMeterGUIComponent.modifyTestElement(TestElement) */
 @Override
 public void modifyTestElement(TestElement plan) {
   super.configureTestElement(plan);
   if (plan instanceof ReportPlan) {
     ReportPlan rp = (ReportPlan) plan;
     rp.setUserDefinedVariables((Arguments) argsPanel.createTestElement());
     rp.setProperty(ReportPlan.REPORT_COMMENTS, commentPanel.getText());
     rp.setBasedir(baseDir.getFilename());
   }
 }
Ejemplo n.º 2
0
  /**
   * A newly created component can be initialized with the contents of a Test Element object by
   * calling this method. The component is responsible for querying the Test Element object for the
   * relevant information to display in its GUI.
   *
   * @param el the TestElement to configure
   */
  @Override
  public void configure(TestElement el) {
    super.configure(el);

    if (el.getProperty(ReportPlan.USER_DEFINED_VARIABLES) != null) {
      argsPanel.configure(
          (Arguments) el.getProperty(ReportPlan.USER_DEFINED_VARIABLES).getObjectValue());
    }
    commentPanel.setText(el.getPropertyAsString(ReportPlan.REPORT_COMMENTS));
    baseDir.setFilename(el.getPropertyAsString(ReportPlan.BASEDIR));
  }