public void configure(TestElement element) { super.configure(element); ReportPage page = (ReportPage)element; cssURL.setText(page.getCSS()); footerURL.setText(page.getFooterURL()); headerURL.setText(page.getHeaderURL()); makeIndex.setSelected(page.getIndex()); introduction.setText(page.getIntroduction()); pageTitle.setText(page.getTitle());
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/report/gui/ReportPageGui.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 element) {
2
        super.configure(element);
3
        ReportPage page = (ReportPage)element;
4
        cssURL.setText(page.getCSS());
5
        footerURL.setText(page.getFooterURL());
6
        headerURL.setText(page.getHeaderURL());
7
        makeIndex.setSelected(page.getIndex());
8
        introdu
1
if (s instanceof SoapSampler) {
2
			SoapSampler sampler = (SoapSampler) s;
3
			sampler.setURLData(urlField.getText());
4
			sampler.setXmlData(soapXml.getText());
5
            sampler.setXmlFile(soapXmlFile.getFilename());
9
ction.setText(page.getIntroduction());
6
			sampler.setSOAPAction(soapAction.getText(
10
        pageTit
7
));
8
			sampler.setSendSOAPAction(sendSoapAction.isSelected());
11
le.setText(page.getTitle());
9
			sampler.setUseKeepAlive(useKeepAlive.isSelected());
12
    
10
		
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