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()); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 64 |
Number of mapped statements | 7 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super.configure(el); |
| 1 | super.configure(element); | |||||||||||||||||||||||||||||||
2 | SoapSampler sampler = (SoapSampler)el; |
| 2 | ReportPage page = (ReportPage)element; | |||||||||||||||||||||||||||||||
3 | urlField.setText(sampler.getURLData()); |
| 3 | cssURL.setText(page.getCSS()); | |||||||||||||||||||||||||||||||
| 4 | footerURL.setText(page.getFooterURL()); | |||||||||||||||||||||||||||||||||
4 | sendSoapAction.setSelected(sampler.getSendSOAPAction()); |
| 6 | makeIndex.setSelected(page.getIndex()); | |||||||||||||||||||||||||||||||
5 | soapAction.setText(sampler.getSOAPAction()); |
| 5 | headerURL.setText(page.getHeaderURL()); | |||||||||||||||||||||||||||||||
6 | soapXml.setText(sampler.getXmlData()); |
| 7 | introduction.setText(page.getIntroduction()); | |||||||||||||||||||||||||||||||
7 | soapXmlFile.setFilename(sampler.getXmlFile()); |
| 8 | pageTitle.setText(page.getTitle()); | |||||||||||||||||||||||||||||||
8 | useKeepAlive.setSelected(sampler.getUseKeepAlive()); | |
Row | Violation |
---|---|
1 | Expression sampler.getURLData() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression page.getCSS() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression sampler.getSendSOAPAction() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression page.getIndex() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression sampler.getSOAPAction() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression page.getHeaderURL() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression sampler.getXmlData() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression page.getIntroduction() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression soapXmlFile.setFilename(sampler.getXmlFile()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression pageTitle.setText(page.getTitle()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression soapXmlFile.setFilename(sampler.getXmlFile()) is a void method call, and thus it cannot be parameterized |
12 | Expression pageTitle.setText(page.getTitle()) is a void method call, and thus it cannot be parameterized |
13 | Expression sampler.getXmlFile() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
14 | Expression page.getTitle() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Clone 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 |