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());
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 configure(TestElement el) {
2
		super.configure(el);
3
		SoapSampler sampler = (SoapSampler) el;
4
		url
1
if ( extractor instanceof XPathExtractor){
2
            XPathExtractor xpath = (XPathExtractor)extractor;
5
Field.setText(sampler.getURLData());
3
            xpath.setDefaultValue(defaultField.getText(
6
		sendSoapAction.setSelected(sampler.getSendSOAPAction());
7
		soapAction.setText(sampler.getSOAPAction());
8
		soapXml.setText(sampler.getXmlData());
9
        soapXmlFile.setFilename(sampler.getXmlFile
4
));
5
            xpath.setRefName(refNameField.getText());
6
            xpath.setXPathQuery(xpathQueryField.getText());
7
            xpath.setTolerant(tolerant.isSelected());
8
            xpath.setNameSpace(nameSpace.isSelected());
10
());
9
            xpath.setShowWarnings(showWarnings.isSelected());
11
        useKeepAlive.setSelected(sampler.getUseKeepAlive());
10
            
12
	
11
xpath.setReportErrors(reportErrors.isSelected());
12
            xpath.setQuiet(quiet.isSelected());
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