public String getHost() { return host.getText(); }
public String getPort() { return port.getText(); }
public String getUser() { return user.getText(); }
public String getPwd() { return pwd.getText(); }
private int getIncrScaleYAxis() { int incrYAxisScale = 0; String iyas = incrScaleYAxis.getText(); if (iyas.length() != 0) { incrYAxisScale = Integer.parseInt(iyas); } return incrYAxisScale; }
public String[] getXAxisLabels() { SimpleDateFormat formatter = new SimpleDateFormat(xAxisTimeFormat.getText()); //$NON-NLS-1$ String[] xAxisLabels = new String[(int) durationTest]; // Test can't have a duration more than 2^31 secs (cast from long to int) for (int j = 0; j < durationTest; j++) { xAxisLabels[j] = formatter.format(new Date((minStartTime + j) * intervalValue)); } return xAxisLabels; }
/** * Launch boundaryExtractor engine to parse a input text * @param textToParse */ private void executeAndShowBoundaryExtractorTester(String textToParse) { if (textToParse != null && textToParse.length() > 0 && this.boundaryExtractorFieldLeft.getText().length() > 0 && this.boundaryExtractorFieldRight.getText().length() > 0) { this.boundaryExtractorResultField.setText(process(textToParse)); this.boundaryExtractorResultField.setCaretPosition(0); // go to first line } }
/** * Launch json path engine to parse a input text * @param textToParse */ private void executeAndShowXPathTester(String textToParse) { if (textToParse != null && textToParse.length() > 0 && this.jsonPathExpressionField.getText().length() > 0) { this.jsonPathResultField.setText(process(textToParse)); this.jsonPathResultField.setCaretPosition(0); // go to first line } }
/** * Launch cssJquery engine to parse a input text * @param textToParse */ private void executeAndShowCssJqueryTester(String textToParse) { if (textToParse != null && textToParse.length() > 0 && this.cssJqueryField.getText().length() > 0) { this.cssJqueryResultField.setText(process(textToParse)); this.cssJqueryResultField.setCaretPosition(0); // go to first line } }
/** * Launch xpath engine to parse a input text * @param textToParse */ private void executeAndShowXPathTester(String textToParse, XPathExtractor 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 } }
/** * Launch regexp engine to parse a input text * @param textToParse */ private void executeAndShowRegexpTester(String textToParse) { if (textToParse != null && textToParse.length() > 0 && this.regexpField.getText().length() > 0) { this.regexpResultField.setText(process(textToParse)); this.regexpResultField.setCaretPosition(0); // go to first line } }
/** * Modifies a given TestElement to mirror the data in the gui components. * * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement) */ @Override public void modifyTestElement(TestElement extractor) { super.configureTestElement(extractor); if (extractor instanceof RegExUserParameters) { RegExUserParameters regExUserParams = (RegExUserParameters) extractor; regExUserParams.setRegExRefName(refRegExRefNameField.getText()); regExUserParams.setRegExParamNamesGrNr(paramNamesGrNrField.getText()); regExUserParams.setRegExParamValuesGrNr(paramValuesGrNrField.getText()); } }
@Override public void modifyTestElement(TestElement element) { super.configureTestElement(element); if (element instanceof JSONToXMLConverter) { JSONToXMLConverter conv = (JSONToXMLConverter) element; conv.setJsonInput(jsonInputTextField.getText()); } }
@Override public void modifyTestElement(TestElement element) { super.configureTestElement(element); if (element instanceof JSONToXMLConverter) { JSONToXMLConverter conv = (JSONToXMLConverter) element; conv.setJsonInput(jsonInputTextField.getText()); } }
@Override public void modifyTestElement(TestElement extractor) { super.configureTestElement(extractor); if ( extractor instanceof XPathExtractor){ XPathExtractor xpath = (XPathExtractor)extractor; saveScopeSettings(xpath); xpath.setDefaultValue(defaultField.getText()); xpath.setRefName(refNameField.getText()); xpath.setMatchNumber(matchNumberField.getText()); xpath.setXPathQuery(xpathQueryField.getText()); xpath.setFragment(getFragment.isSelected()); xml.modifyTestElement(xpath); } }
@Override public void modifyTestElement(TestElement extractor) { super.configureTestElement(extractor); if (extractor instanceof XPath2Extractor) { XPath2Extractor xpath = (XPath2Extractor) extractor; saveScopeSettings(xpath); xpath.setDefaultValue(defaultField.getText()); xpath.setRefName(refNameField.getText()); xpath.setMatchNumber(matchNumberField.getText()); xpath.setXPathQuery(xpathQueryField.getText()); xpath.setFragment(getFragment.isSelected()); xpath.setNamespaces(namespacesTA.getText()); } }
@Override public void modifyTestElement(final TestElement testElement) { super.configureTestElement(testElement); final HonoCommanderSampler sampler = (HonoCommanderSampler) testElement; sampler.modifyServerOptions(honoServerOptions); sampler.setReconnectAttempts(reconnectAttempts.getText()); sampler.setTenant(tenant.getText()); sampler.setCommandTimeout(commandTimeOut.getText()); sampler.setCommand(command.getText()); sampler.setCommandPayload(commandPayload.getText()); sampler.setTriggerType(((String) triggerType.getSelectedItem())); }
@Override public void modifyTestElement(TestElement element) { super.configureTestElement(element); if (element instanceof JSONPathAssertion) { JSONPathAssertion jpAssertion = (JSONPathAssertion) element; jpAssertion.setJsonPath(jsonPath.getText()); jpAssertion.setExpectedValue(jsonValue.getText()); jpAssertion.setJsonValidationBool(jsonValidation.isSelected()); jpAssertion.setExpectNull(expectNull.isSelected()); jpAssertion.setInvert(invert.isSelected()); } }
@Override public void modifyTestElement(TestElement element) { super.configureTestElement(element); if (element instanceof JSONPathAssertion) { JSONPathAssertion jpAssertion = (JSONPathAssertion) element; jpAssertion.setJsonPath(jsonPath.getText()); jpAssertion.setExpectedValue(jsonValue.getText()); jpAssertion.setJsonValidationBool(jsonValidation.isSelected()); jpAssertion.setExpectNull(expectNull.isSelected()); jpAssertion.setInvert(invert.isSelected()); jpAssertion.setIsRegex(isRegex.isSelected()); } }
/** * Modifies a given TestElement to mirror the data in the gui components. * * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement) */ @Override public void modifyTestElement(TestElement element) { super.configureTestElement(element); TestAction ta = (TestAction) element; ta.setAction(action); ta.setTarget(target); ta.setDuration(durationField.getText()); }