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());
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());
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: void configure(TestElement) Method name: void configure(TestElement)
Number of AST nodes: 8 Number of AST nodes: 8
1
super.configure(el);
1
super.configure(el
2
		SoapSampler sampler = (SoapSampler) el;
3
		urlField.setText(sampler.getURLData());
4
		sendSoapAction.setSelected(sampler.getSendSOAPAction());
5
		soapAction.setText(sampler.getSOAPAction());
6
		soapXml.setText(sampler.getXmlData
2
ement);
3
        ReportPage page = (ReportPage)element;
4
        cssURL.setText(page.getCSS());
5
        footerURL.setText(page.getFooterURL());
6
        headerURL.setText(page.getHeaderURL());
7
());
7
        makeIndex.setSelected(page.getIndex());
8
        soapXmlFile.setFilename(sampler.getXmlFile());
8
        introduction.setText(page.getIntroduction());
9
        useKeepAlive.setSelected(sampler.getUseKeepAlive());
9
        pageTitle.setText(page.getTitle());
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons64
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements7
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super.configure(el);
    1
    super.configure(el);
    1
    super.configure(element);
    Differences
    Expression1Expression2Difference
    elelementVARIABLE_NAME_MISMATCH
    1
    super.configure(element);
    2
    SoapSampler sampler = (SoapSampler)el;
    2
    SoapSampler sampler = (SoapSampler)el;
    2
    ReportPage page = (ReportPage)element;
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.protocol.http.sampler.SoapSamplerorg.apache.jmeter.testelement.ReportPageSUBCLASS_TYPE_MISMATCH
    samplerpageVARIABLE_NAME_MISMATCH
    org.apache.jmeter.protocol.http.sampler.SoapSamplerorg.apache.jmeter.testelement.ReportPageSUBCLASS_TYPE_MISMATCH
    org.apache.jmeter.protocol.http.sampler.SoapSamplerorg.apache.jmeter.testelement.ReportPageSUBCLASS_TYPE_MISMATCH
    elelementVARIABLE_NAME_MISMATCH
    2
    ReportPage page = (ReportPage)element;
    3
    urlField.setText(sampler.getURLData());
    3
    urlField.setText(sampler.getURLData());
    3
    cssURL.setText(page.getCSS());
    Differences
    Expression1Expression2Difference
    getURLDatagetCSSMETHOD_INVOCATION_NAME_MISMATCH
    samplerpageVARIABLE_NAME_MISMATCH
    org.apache.jmeter.protocol.http.sampler.SoapSamplerorg.apache.jmeter.testelement.ReportPageSUBCLASS_TYPE_MISMATCH
    urlFieldcssURLVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression sampler.getURLData() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression page.getCSS() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3
    cssURL.setText(page.getCSS());
                                                                                        
    4
    footerURL.setText(page.getFooterURL());
    4
    sendSoapAction.setSelected(sampler.getSendSOAPAction());
    4
    sendSoapAction.setSelected(sampler.getSendSOAPAction());
    6
    makeIndex.setSelected(page.getIndex());
    Differences
    Expression1Expression2Difference
    getSendSOAPActiongetIndexMETHOD_INVOCATION_NAME_MISMATCH
    samplerpageVARIABLE_NAME_MISMATCH
    org.apache.jmeter.protocol.http.sampler.SoapSamplerorg.apache.jmeter.testelement.ReportPageSUBCLASS_TYPE_MISMATCH
    sendSoapActionmakeIndexVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression sampler.getSendSOAPAction() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression page.getIndex() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6
    makeIndex.setSelected(page.getIndex());
    5
    soapAction.setText(sampler.getSOAPAction());
    5
    soapAction.setText(sampler.getSOAPAction());
    5
    headerURL.setText(page.getHeaderURL());
    Differences
    Expression1Expression2Difference
    getSOAPActiongetHeaderURLMETHOD_INVOCATION_NAME_MISMATCH
    samplerpageVARIABLE_NAME_MISMATCH
    org.apache.jmeter.protocol.http.sampler.SoapSamplerorg.apache.jmeter.testelement.ReportPageSUBCLASS_TYPE_MISMATCH
    soapActionheaderURLVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression sampler.getSOAPAction() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression page.getHeaderURL() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5
    headerURL.setText(page.getHeaderURL());
    6
    soapXml.setText(sampler.getXmlData());
    6
    soapXml.setText(sampler.getXmlData());
    7
    introduction.setText(page.getIntroduction());
    Differences
    Expression1Expression2Difference
    getXmlDatagetIntroductionMETHOD_INVOCATION_NAME_MISMATCH
    samplerpageVARIABLE_NAME_MISMATCH
    org.apache.jmeter.protocol.http.sampler.SoapSamplerorg.apache.jmeter.testelement.ReportPageSUBCLASS_TYPE_MISMATCH
    soapXmlintroductionVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression sampler.getXmlData() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression page.getIntroduction() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7
    introduction.setText(page.getIntroduction());
    7
    soapXmlFile.setFilename(sampler.getXmlFile());
    7
    soapXmlFile.setFilename(sampler.getXmlFile());
    8
    pageTitle.setText(page.getTitle());
    Differences
    Expression1Expression2Difference
    setFilenamesetTextMETHOD_INVOCATION_NAME_MISMATCH
    getXmlFilegetTitleMETHOD_INVOCATION_NAME_MISMATCH
    samplerpageVARIABLE_NAME_MISMATCH
    org.apache.jmeter.protocol.http.sampler.SoapSamplerorg.apache.jmeter.testelement.ReportPageSUBCLASS_TYPE_MISMATCH
    soapXmlFilepageTitleVARIABLE_NAME_MISMATCH
    org.apache.jmeter.gui.util.FilePanelorg.apache.jorphan.gui.JLabeledTextFieldSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression soapXmlFile.setFilename(sampler.getXmlFile()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression pageTitle.setText(page.getTitle()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression soapXmlFile.setFilename(sampler.getXmlFile()) is a void method call, and thus it cannot be parameterized
    Expression pageTitle.setText(page.getTitle()) is a void method call, and thus it cannot be parameterized
    Expression sampler.getXmlFile() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression page.getTitle() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8
    pageTitle.setText(page.getTitle());
    8
    useKeepAlive.setSelected(sampler.getUseKeepAlive());
                                                                                                                  
    Precondition Violations (15)
    Row Violation
    1Expression sampler.getURLData() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression page.getCSS() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression sampler.getSendSOAPAction() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression page.getIndex() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression sampler.getSOAPAction() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression page.getHeaderURL() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression sampler.getXmlData() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8Expression page.getIntroduction() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    9Expression soapXmlFile.setFilename(sampler.getXmlFile()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    10Expression pageTitle.setText(page.getTitle()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    11Expression soapXmlFile.setFilename(sampler.getXmlFile()) is a void method call, and thus it cannot be parameterized
    12Expression pageTitle.setText(page.getTitle()) is a void method call, and thus it cannot be parameterized
    13Expression sampler.getXmlFile() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    14Expression page.getTitle() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    15Clone fragment #1 returns variable sampler with type org.apache.jmeter.protocol.http.sampler.SoapSampler , while Clone fragment #2 returns variable page with type org.apache.jmeter.testelement.ReportPage