/** {@inheritDoc} */ @Override public void clearData() { // N.B. don't set xpathExpressionField to empty to keep xpath this.xmlDataField.setText(""); // $NON-NLS-1$ this.xpathResultField.setText(""); // $NON-NLS-1$ }
/** {@inheritDoc} */ @Override public void clearData() { this.jsonDataField.setText(""); // $NON-NLS-1$ // don't set empty to keep json path this.jsonPathResultField.setText(""); // $NON-NLS-1$ }
/** {@inheritDoc} */ @Override public void clearData() { this.cssJqueryDataField.setText(""); // $NON-NLS-1$ this.cssJqueryResultField.setText(""); // $NON-NLS-1$ // don't set cssJqueryField to empty to keep it // don't set attribute to empty to keep it // don't change impl }
/** * Sets initial text resetting undo history * * @param string * The initial text to be set */ public void setInitialText(String string) { setText(string); discardAllEdits(); }
/** * Implements JMeterGUIComponent.clearGui */ @Override public void clearGui() { super.clearGui(); useExpression.setSelected(true); theCondition.setText(""); // $NON-NLS-1$ evaluateAll.setSelected(false); }
/** * Implements JMeterGUIComponent.clearGui */ @Override public void clearGui() { super.clearGui(); theCondition.setText(""); // $NON-NLS-1$ }
/** {@inheritDoc} */ @Override public void renderResult(SampleResult sampleResult) { String response = ViewResultsFullVisualizer.getResponseAsString(sampleResult); try { xmlDataField.setText(response == null ? "" : response); xmlDataField.setCaretPosition(0); } catch (Exception e) { log.error("Exception converting to XML: {}, message: {}", response, e.getMessage(), e); xmlDataField.setText("Exception converting to XML:"+response+ ", message:"+e.getMessage()); xmlDataField.setCaretPosition(0); } }
/** {@inheritDoc} */ @Override public void renderResult(SampleResult sampleResult) { String response = ViewResultsFullVisualizer.getResponseAsString(sampleResult); try { xmlDataField.setText(response == null ? "" : response); xmlDataField.setCaretPosition(0); } catch (Exception e) { log.error("Exception converting to XML: {}, message: {}", response, e.getMessage(), e); xmlDataField.setText("Exception converting to XML:"+response+ ", message:"+e.getMessage()); xmlDataField.setCaretPosition(0); } }
/** * Launch xpath engine to parse a input text * @param textToParse */ private void executeAndShowXPathTester(String textToParse, XPath2Extractor extractor) { if (textToParse != null && textToParse.length() > 0 && this.xpathExpressionField.getText().length() > 0) { this.xpathResultField.setText(process(textToParse, extractor)); this.xpathResultField.setCaretPosition(0); // go to first line } }
/** {@inheritDoc} */ @Override public void renderResult(SampleResult sampleResult) { String response = ViewResultsFullVisualizer.getResponseAsString(sampleResult); try { jsonDataField.setText(response == null ? "" : RenderAsJSON.prettyJSON(response, TAB_SEPARATOR)); //$NON-NLS-1$ jsonDataField.setCaretPosition(0); } catch (Exception e) { log.error("Exception converting to XML: {}, message: {}", response, e.getMessage(), e); //$NON-NLS-1$ $NON-NLS-2$ jsonDataField.setText("Exception converting to XML: "+response+ ", message: "+e.getMessage()); //$NON-NLS-1$ $NON-NLS-2$ jsonDataField.setCaretPosition(0); } }
/** {@inheritDoc} */ @Override public void renderImage(SampleResult sampleResult) { clearData(); cssJqueryDataField.setText(JMeterUtils.getResString("cssjquery_render_no_text")); // $NON-NLS-1$ }
/** {@inheritDoc} */ @Override public void renderImage(SampleResult sampleResult) { clearData(); jsonDataField.setText(JMeterUtils.getResString("jsonpath_render_no_text")); // $NON-NLS-1$ }
/** {@inheritDoc} */ @Override public void renderImage(SampleResult sampleResult) { clearData(); xmlDataField.setText(JMeterUtils.getResString("xpath_tester_no_text")); // $NON-NLS-1$ }
/** {@inheritDoc} */ @Override public void renderImage(SampleResult sampleResult) { clearData(); xmlDataField.setText(JMeterUtils.getResString("xpath_tester_no_text")); // $NON-NLS-1$ }
/** * 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 element * the TestElement to configure */ @Override public void configure(TestElement element) { super.configure(element); if (element instanceof WhileController) { theCondition.setText(((WhileController) element).getCondition()); } }
/** {@inheritDoc} */ @Override public void renderResult(SampleResult sampleResult) { clearData(); String response = ViewResultsFullVisualizer.getResponseAsString(sampleResult); cssJqueryDataField.setText(response); cssJqueryDataField.setCaretPosition(0); }
@Override public void stateChanged(ChangeEvent event) { try { initParameterPanel(); getContentPane().remove(parameterPanel); this.pack(); getContentPane().add(parameterPanel, BorderLayout.CENTER); this.pack(); this.validate(); resultTextArea.setText(""); this.repaint(); } catch (InstantiationException | IllegalAccessException ex) { log.info("Exception during stateChanged", ex); } }
/** * Implements JMeterGUIComponent.clearGui */ @Override public void clearGui() { super.clearGui(); xpathQueryField.setText(""); // $NON-NLS-1$ defaultField.setText(""); // $NON-NLS-1$ refNameField.setText(""); // $NON-NLS-1$ matchNumberField.setText(XPath2Extractor.DEFAULT_VALUE_AS_STRING); // $NON-NLS-1$ namespacesTA.setText(""); }
@Override public void configure(TestElement el) { super.configure(el); XPath2Extractor xpe = (XPath2Extractor) el; showScopeSettings(xpe, true); xpathQueryField.setText(xpe.getXPathQuery()); defaultField.setText(xpe.getDefaultValue()); refNameField.setText(xpe.getRefName()); matchNumberField.setText(xpe.getMatchNumberAsString()); namespacesTA.setText(xpe.getNamespaces()); getFragment.setSelected(xpe.getFragment()); }