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());
public void modifyTestElement(TestElement element) { super.configureTestElement(element); ReportPage page = (ReportPage)element; page.setCSS(cssURL.getText()); page.setFooterURL(footerURL.getText()); page.setHeaderURL(headerURL.getText()); page.setIndex(String.valueOf(makeIndex.isSelected())); page.setIntroduction(introduction.getText()); page.setTitle(pageTitle.getText());
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/report/gui/ReportPageGui.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void configure(TestElement el) {
1
public void 
2
		super.configure(el);
3
		SoapSampler sampler = (SoapSampler) el;
4
		urlField.setText(sampler.getURLData());
5
		sendSoapAction.setSelected(sampler.getSendSOAPAction());
6
		soapAction.setText(sampler.getSOAPAction());
7
		soapXml
2
modifyTestElement(TestElement element) {
3
        super.configureTestElement(element);
4
        ReportPage page = (ReportPage)element;
5
        page.setCSS(cssURL.getText());
6
        page.setFooterURL(footerURL.getText());
7
        page.setHeaderURL(headerURL.getText());
8
.setText(sampler.getXmlData());
8
        page.set
9
        soapXmlFile.setFilename(sampler.getXmlFile());
10
        useKeepAlive.setSelected(samp
9
Index(String.valueOf(makeIndex.isSelected()));
10
        page.setIntroduction(introduction.getText());
11
ler.getUseKeepAlive());
11
        page.setTitle(pageTitle.getText());
12
	
12
	
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