1 | public void configure(TestElement element) {↵ | | |
|
2 | super.configure(element);↵ | | |
|
3 | CounterConfig config = (CounterConfig) element;↵ | | |
|
4 | star↵ | | 1 | if ( extractor instanceof XPathExtractor){↵
|
| | | 2 | XPathExtractor xpath = (XPathExtractor)extractor;↵
|
5 | tField.setText(config.getStartAsString());↵ | | 3 | xpath.setDefaultValue(defaultField.getText(↵
|
6 | end↵ | | 4 | ));↵
|
7 | Field.setText(config.getEndAsString());↵ | | 5 | xpath.setRefName(refNameField.getText(↵
|
8 | incr↵ | | 6 | ));↵
|
9 | Field.setText(config.getIncrementAsString↵ | | 7 | xpath.setXPathQuery(xpathQueryField.getText());↵
|
10 | ());↵ | | 8 | xpath.setTolerant(tolerant.isSelected());↵
|
11 | formatField.setText(config.getFormat());↵ | | 9 | ↵
|
12 | varNameField.setText(config.getVarName());↵ | | |
|
13 | perUserField.setSelected(config.isPerUser());↵ | | |
|
14 | | | 10 | xpath.setNameSpace(nameSpace.isSelected());↵
|
| | | 11 | xpath.setShowWarnings(showWarnings.isSelected());↵
|
| | | 12 | xpath.setReportErrors(reportErrors.isSelected());↵
|
| | | 13 | xpath.setQuiet(quiet.isSelected());↵
|
| | | 14 |
|