public void configure(TestElement el) { super.configure(el); XPathExtractor xpe = (XPathExtractor) el; xpathQueryField.setText(xpe.getXPathQuery()); defaultField.setText(xpe.getDefaultValue()); refNameField.setText(xpe.getRefName()); tolerant.setSelected(xpe.isTolerant()); quiet.setSelected(xpe.isQuiet()); showWarnings.setSelected(xpe.showWarnings()); reportErrors.setSelected(xpe.reportErrors()); nameSpace.setSelected(xpe.useNameSpace()); setTidyOptions(tolerant.isSelected());
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()); }
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 configure(TestElement el) {
1
public void modifyTestElement(TestElement s) {
2
		super.configure(el);
2
		this.configure
3
		XPathExtractor xpe = (XPathExtracto
3
TestElement(s);
4
		if (s instanceof SoapSampler) {
4
r) el;
5
			SoapSampler sampler = (SoapSampler) s;
5
		xpathQueryField.setText(xpe.getXPathQuery());
6
			sampler.setURLData(urlField.getText(
6
		defaultField.setText(xpe.getDefaultValue());
7
		refNameField.setText(xpe.getRefN
7
));
8
			sampler.setXmlData(soapXml.getText());
8
ame());
9
            sampler.setXmlFile(soapXmlFile.getFilename());
9
		tolerant.setSelected(xpe.isTolerant());
10
			
10
		quiet.setSelected(xpe.isQuiet());
11
		showWarnings.setSelected(xpe.showWarnings());
12
		reportErrors.setSelected(xpe.reportErrors());
13
		nameSpace.setSelected(xpe.useNameSpace());
14
        setTidyOptions(tolerant
11
sampler.setSOAPAction(soapAction.getText());
12
			sampler.setSendSOAPAction(sendSoapAction.isSelected());
15
.isSelected());
13
			sampler.setUseKeepAlive(useKeepAlive.isSelected());
16
	
14
		}
15
	
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