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());
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 modifyTestElement(TestElement element) {
2
        super.configureTestElement(element);
3
        ReportPage page = (ReportPage)element;
4
        page.setCSS(cssURL.getText());
5
        page.setFooterURL(footerURL.getText());
6
        page.setHeaderURL(headerURL.getText());
7
        page.setIndex(String.valueOf(makeIndex.isSelected
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());
8
()));
6
			sampler.setSOAPAction(soapAction.getText());
9
        page.setIntroduction(introduction.getText());
10
        page.setTitle(pageTitle.getText
7
			sampler.setSendSOAPAction(sendSoapAction.isSelected());
11
());
8
			sampler.setUseKeepAlive(useKeepAlive.isSelected());
12
	
9
		
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