private void configureHeaders(TradingIdea sampler) {
   Arguments sampleHeaders = sampler.getHeaders();
   if (sampleHeaders != null) {
     headers.configure(sampleHeaders);
   } else {
     headers.clearGui();
   }
 }
 private void configureHeaders(StockParam sampler) {
   Arguments sampleHeaders = sampler.getHeaders();
   if (sampleHeaders != null) {
     headers.configure(sampleHeaders);
   } else {
     headers.clearGui();
   }
 }
예제 #3
0
 @Override
 public void clearGui() {
   super.clearGui();
   functionalMode.setSelected(false);
   serializedMode.setSelected(false);
   tearDownOnShutdown.setSelected(false);
   argsPanel.clear();
   browseJar.clearFiles();
 }
  @Override
  public void modifyTestElement(TestElement te) {
    StockParam sampler = (StockParam) te;
    sampler.clear();
    configureTestElement(sampler);

    super.modifyTestElement(sampler);

    sampler.setHeaders((Arguments) headers.createTestElement());
  }
예제 #5
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());
   }
 }
  @Override
  public void modifyTestElement(TestElement te) {
    TradingIdea sampler = (TradingIdea) te;
    sampler.clear();
    configureTestElement(sampler);

    super.modifyTestElement(sampler);

    sampler.setHeaders((Arguments) headers.createTestElement());
  }
예제 #7
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));
  }
예제 #8
0
 /* Implements JMeterGUIComponent.modifyTestElement(TestElement) */
 @Override
 public void modifyTestElement(TestElement plan) {
   super.configureTestElement(plan);
   if (plan instanceof TestPlan) {
     TestPlan tp = (TestPlan) plan;
     tp.setFunctionalMode(functionalMode.isSelected());
     tp.setTearDownOnShutdown(tearDownOnShutdown.isSelected());
     tp.setSerialized(serializedMode.isSelected());
     tp.setUserDefinedVariables((Arguments) argsPanel.createTestElement());
     tp.setTestPlanClasspathArray(browseJar.getFiles());
   }
 }
예제 #9
0
 @Override
 public void configure(TestElement el) {
   super.configure(el);
   if (el instanceof Arguments) {
     tableModel.clearData();
     HTTPArgument.convertArgumentsToHTTP((Arguments) el);
     PropertyIterator iter = ((Arguments) el).getArguments().iterator();
     while (iter.hasNext()) {
       HTTPArgument arg = (HTTPArgument) iter.next().getObjectValue();
       tableModel.addRow(arg);
     }
   }
   checkDeleteStatus();
 }
예제 #10
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 instanceof TestPlan) {
     TestPlan tp = (TestPlan) el;
     functionalMode.setSelected(tp.isFunctionalMode());
     serializedMode.setSelected(tp.isSerialized());
     tearDownOnShutdown.setSelected(tp.isTearDownOnShutdown());
     final JMeterProperty udv = tp.getUserDefinedVariablesAsProperty();
     if (udv != null) {
       argsPanel.configure((Arguments) udv.getObjectValue());
     }
     browseJar.setFiles(tp.getTestPlanClasspathArray());
   }
 }
예제 #11
0
 @Override
 public void clearGui() {
   super.clearGui();
   headers.clearGui();
 }