1 | public void modifyTestElement(TestElement extractor) {↵ | | |
|
2 | super.configureTestElement(extractor);↵ | | |
|
3 | if ( extractor instanceof XPathExtractor){↵ | | |
|
4 | XPathExtractor xpath = (XPathExtractor)extractor;↵ | | |
|
5 | xpath.setDefaultValue(defaultField.getText());↵ | | |
|
6 | xpath.setRefName(refNameField.getText());↵ | | |
|
7 | xpath.setXPathQuery(xpathQueryField.getText());↵ | | |
|
8 | xpath.setTolerant(tolerant.isSelected());↵ | | |
|
9 | xpath↵ | | 1 | if (c instanceof CounterConfig) {↵
|
| | | 2 | CounterConfig config = (CounterConfig) c;↵
|
| | | 3 | config.setStart(startField.getText());↵
|
| | | 4 | // Bug 22820 if (endField.getText().length() > 0)↵
|
| | | 5 | {↵
|
| | | 6 | config.setEnd(endField.getText());↵
|
| | | 7 | }↵
|
| | | 8 | config.setIncrement(incrField.getText());↵
|
10 | .setNameSpace(nameSpace.isSelected());↵ | | 9 | config.setVarName(varNameField.getText());↵
|
11 | xpath.setShowWarnings(showWarnings.isSelected());↵ | | 10 | ↵
|
12 | xpath.setReportErrors(reportErrors.isSelected());↵ | | |
|
13 | xpath.setQuiet(quiet↵ | | 11 | config.setFormat(formatField.getText());↵
|
14 | .isSelected());↵ | | 12 | config.setIsPerUser(perUserField.isSelected());↵
|
15 | }↵ | | |
|
16 | | | 13 |
|