public void modifyTestElement(TestElement s) { this.configureTestElement(s); 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()); }
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());
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/control/gui/SoapSamplerGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/extractor/gui/XPathExtractorGui.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void modifyTestElement(TestElement s) {
2
		this.configureTestElement(s);
3
		if (s instanceof SoapSampler) {
1
if ( extractor instanceof XPathExtractor){
4
			SoapSampler sampler = (SoapSampler) s;
5
			sampler.setURLData(urlField.getText());
6
			sampler.setXmlData(soapXml.getText());
7
            sampler.setXmlFile(soapXmlFile.getFilename());
8
			sampler.setSOAPAction(soapAction.getText());
9
			sampler.setSendSOAPAction(sendSoapAction.isSelected());
10
			sampler.setUseKeepAlive(useKeepAlive
2
            XPathExtractor xpath = (XPathExtractor)extractor;
3
            xpath.setDefaultValue(defaultField.getText());
4
            xpath.setRefName(refNameField.getText());
5
            xpath.setXPathQuery(xpathQueryField.getText());
6
            xpath.setTolerant(tolerant.isSelected());
7
            xpath.setNameSpace(nameSpace.isSelected());
8
            xpath.setShowWarnings(showWarnings.isSelected());
9
            xpath.setReportErrors(reportErrors.isSelected());
11
.isSelected());
10
            xpath.setQuiet(quiet.isSelected());
12
		}
13
	
11
        
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