@Test public void testModifyTestElement() { System.out.println("modifyTestElement"); TestElement element = new JSONPathExtractor(); JSONPathExtractorGui instance = new JSONPathExtractorGui(); instance.modifyTestElement(element); }
@Override public void modifyTestElement(TestElement element) { super.configureTestElement(element); if (element instanceof JSONPathExtractor) { JSONPathExtractor extractor = (JSONPathExtractor) element; extractor.setVar(variableNameTextField.getText()); extractor.setJsonPath(jsonPathTextField.getText()); extractor.setDefaultValue(defaultValTextField.getText()); extractor.setSrcVariableName(srcVariableName.getText()); extractor.setSubject(group.getSelection().getActionCommand()); if (inputFormatGroup.getSelection() != null) { extractor.setInputFormat(inputFormatGroup.getSelection().getActionCommand()); } } }
JSONPathExtractorGui extends AbstractPostProcessorGui { @Override public void modifyTestElement(TestElement element) { super.configureTestElement(element); if (element instanceof JSONPathExtractor) { JSONPathExtractor extractor = (JSONPathExtractor) element; extractor.setVar(variableNameTextField.getText()); extractor.setJsonPath(jsonPathTextField.getText()); extractor.setDefaultValue(defaultValTextField.getText()); extractor.setSrcVariableName(srcVariableName.getText()); extractor.setSubject(group.getSelection().getActionCommand()); if (inputFormatGroup.getSelection() != null) { extractor.setInputFormat(inputFormatGroup.getSelection().getActionCommand()); } } } }
JSONPathExtractorGui extends AbstractPostProcessorGui { @Override public void modifyTestElement(TestElement element) { super.configureTestElement(element); if (element instanceof JSONPathExtractor) { JSONPathExtractor extractor = (JSONPathExtractor) element; extractor.setVar(variableNameTextField.getText()); extractor.setJsonPath(jsonPathTextField.getText()); extractor.setDefaultValue(defaultValTextField.getText()); extractor.setSrcVariableName(srcVariableName.getText()); extractor.setSubject(group.getSelection().getActionCommand()); if (inputFormatGroup.getSelection() != null) { extractor.setInputFormat(inputFormatGroup.getSelection().getActionCommand()); } } } JSONPathExtractorGui(); }
JSONPathExtractorGui extends AbstractPostProcessorGui { @Override public void modifyTestElement(TestElement element) { super.configureTestElement(element); if (element instanceof JSONPathExtractor) { JSONPathExtractor extractor = (JSONPathExtractor) element; extractor.setVar(variableNameTextField.getText()); extractor.setJsonPath(jsonPathTextField.getText()); extractor.setDefaultValue(defaultValTextField.getText()); extractor.setSrcVariableName(srcVariableName.getText()); extractor.setSubject(group.getSelection().getActionCommand()); if (inputFormatGroup.getSelection() != null) { extractor.setInputFormat(inputFormatGroup.getSelection().getActionCommand()); } } } JSONPathExtractorGui(); @Override void clearGui(); @Override TestElement createTestElement(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override void modifyTestElement(TestElement element); @Override void configure(TestElement element); }
JSONPathExtractorGui extends AbstractPostProcessorGui { @Override public void modifyTestElement(TestElement element) { super.configureTestElement(element); if (element instanceof JSONPathExtractor) { JSONPathExtractor extractor = (JSONPathExtractor) element; extractor.setVar(variableNameTextField.getText()); extractor.setJsonPath(jsonPathTextField.getText()); extractor.setDefaultValue(defaultValTextField.getText()); extractor.setSrcVariableName(srcVariableName.getText()); extractor.setSubject(group.getSelection().getActionCommand()); if (inputFormatGroup.getSelection() != null) { extractor.setInputFormat(inputFormatGroup.getSelection().getActionCommand()); } } } JSONPathExtractorGui(); @Override void clearGui(); @Override TestElement createTestElement(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override void modifyTestElement(TestElement element); @Override void configure(TestElement element);  }