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()); }
if (s instanceof SoapSampler) { SoapSampler sampler = (SoapSampler) s; sampler.setURLData(urlField.getText()); sampler.setXmlData(soapXml.getText()); sampler.setXmlFile(soapXmlFile.getFilename()); sampler.setSOAPAction(soapAction.getText()); sampler.setSendSOAPAction(sendSoapAction.isSelected()); sampler.setUseKeepAlive(useKeepAlive.isSelected());
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) {
2
        super.configureTestElement(extractor);
3
        if ( extractor instanceof XPathExtractor){
1
if (s instanceof SoapSampler) {
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.setNameSpace(nameSpace.isSelected());
10
            xpath.setShowWarnings(showWarnings.isSelected());
11
            xpath.setReportErrors(reportErrors.isSelected());
12
            xpath.setQuiet(quiet
2
			SoapSampler sampler = (SoapSampler) s;
3
			sampler.setURLData(urlField.getText());
4
			sampler.setXmlData(soapXml.getText());
5
            sampler.setXmlFile(soapXmlFile.getFilename());
6
			sampler.setSOAPAction(soapAction.getText());
7
			sampler.setSendSOAPAction(sendSoapAction.isSelected());
13
.isSelected());
8
			sampler.setUseKeepAlive(useKeepAlive.isSelected());
14
        }
15
    
9
		
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