1 | public void modifyTestElement(TestElement extractor) {↵ | | 1 | public void configure(TestElement↵
|
2 | ↵ | | 2 | element) {↵
|
3 | super.configureTestElement(extractor);↵ | | 3 | super.configure(element↵
|
4 | if ( extractor instanceof XPathExtractor){↵ | | |
|
5 | XPathExtractor xpath = (XPathExtractor)extractor;↵ | | |
|
6 | xpath.setDefaultValue(defaul↵ | | 4 | );↵
|
| | | 5 | BSFSampler sampler = (BSFSampler) element;↵
|
7 | tField.getText());↵ | | 6 | scriptField.setText(↵
|
8 | xpath.setRefName(refNameField.getText());↵ | | |
|
9 | xpath.setXPathQuery(xpathQueryField.getText());↵ | | |
|
10 | xpath.setTolerant(tolerant.isSelected());↵ | | |
|
11 | xpath.setNameSpace(nameSpace.isSelected());↵ | | |
|
12 | xpath.setShowWarnings(showWarnings.isSelected↵ | | 7 | sampler.getScript());↵
|
13 | ());↵ | | 8 | langField.setSelectedItem(sampler.getScriptLanguage());↵
|
14 | xpath.setReportErrors(reportErrors.isSelected());↵ | | 9 | filename.setText(sampler.getFilename());↵
|
15 | xpath.setQuiet(quiet.isSelected());↵ | | 10 | pa↵
|
16 | }↵ | | |
|
17 | | | 11 | rameters.setText(sampler.getParameters());↵
|
| | | 12 |
|