public void modifyTestElement(TestElement extractor) { super.configureTestElement(extractor); if ( extractor instanceof XPathExtractor){ XPathExtractor xpath = (XPathExtractor)extractor; xpath.setDefaultValue(defaultField.getText()); xpath.setRefName(refNameField.getText()); xpath.setXPathQuery(xpathQueryField.getText()); xpath.setTolerant(tolerant.isSelected()); xpath.setNameSpace(nameSpace.isSelected()); xpath.setShowWarnings(showWarnings.isSelected()); xpath.setReportErrors(reportErrors.isSelected()); xpath.setQuiet(quiet.isSelected()); }
public void configure(TestElement el) { super.configure(el); SoapSampler sampler = (SoapSampler) el; urlField.setText(sampler.getURLData()); sendSoapAction.setSelected(sampler.getSendSOAPAction()); soapAction.setText(sampler.getSOAPAction()); soapXml.setText(sampler.getXmlData()); soapXmlFile.setFilename(sampler.getXmlFile()); useKeepAlive.setSelected(sampler.getUseKeepAlive());
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/extractor/gui/XPathExtractorGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/control/gui/SoapSamplerGui.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void modifyTestElement(TestElement extractor) {
1
public void 
2
        super.configureTestElement(extractor);
3
        if ( extractor instanceof XPathExtractor){
4
            XPathExtractor xpath = (XPathExtractor)extractor;
5
            xpath.setDefaultValue(default
2
configure(TestElement el) {
3
		super.configure(el);
4
		SoapSampler sampler = (SoapSampler) el;
6
Field.getText());
5
		urlField.setText(
7
            xpath.setRefName(refNameField.getText());
8
            xpath.setXPathQuery(xpathQueryField.getText());
9
            xpath.setTolerant(tolerant.isSelected());
10
            xpath.setNameSpace(nameSpace.isSelected());
11
            xpath.setShowWarnings(showWarnings.isSelected
6
sampler.getURLData());
7
		sendSoapAction.setSelected(sampler.getSendSOAPAction());
8
		soapAction.setText(sampler.getSOAPAction());
9
		soapXml.setText(sampler.getXmlData());
12
());
10
        soapXmlFile.setFilename(sampler.getXmlFile());
13
            xpath.setReportErrors(reportErrors.isSelected());
11
        
14
            xpath.setQuiet(quiet.isSelected());
15
        }
16
    
12
useKeepAlive.setSelected(sampler.getUseKeepAlive());
13
	
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0