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/BarChartGui.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());↵ | |||
7 | soapXmlFile.setFilename(sampler.getXmlFile↵ | 2 | ement);↵ | |
3 | BarChart bc = (BarChart)element;↵ | |||
4 | xItems.setText(bc.getXAxis());↵ | |||
5 | yItems.setText(bc.getYAxis());↵ | |||
6 | xAxisLabel.setText(bc.getXLabel());↵ | |||
7 | yAxisLabel.setText(bc.getYLabel());↵ | |||
8 | ());↵ | 8 | caption.setText(bc.getCaption());↵ | |
9 | useKeepAlive.setSelected(sampler.getUseKeepAlive()); | 9 | url.setText(bc.getURL()); | |
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 | 6 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
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 | BarChart bc = (BarChart)element; | |||||||||||||||||||||||||||||||
| 3 | xItems.setText(bc.getXAxis()); | |||||||||||||||||||||||||||||||||
| 4 | yItems.setText(bc.getYAxis()); | |||||||||||||||||||||||||||||||||
3 | urlField.setText(sampler.getURLData()); |
| 6 | yAxisLabel.setText(bc.getYLabel()); | |||||||||||||||||||||||||||||||
4 | sendSoapAction.setSelected(sampler.getSendSOAPAction()); | | |||||||||||||||||||||||||||||||||
5 | soapAction.setText(sampler.getSOAPAction()); |
| 7 | caption.setText(bc.getCaption()); | |||||||||||||||||||||||||||||||
6 | soapXml.setText(sampler.getXmlData()); |
| 5 | xAxisLabel.setText(bc.getXLabel()); | |||||||||||||||||||||||||||||||
7 | soapXmlFile.setFilename(sampler.getXmlFile()); |
| 8 | url.setText(bc.getURL()); | |||||||||||||||||||||||||||||||
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 bc.getYLabel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression sampler.getSOAPAction() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression bc.getCaption() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression sampler.getXmlData() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression bc.getXLabel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression soapXml cannot be unified with expression xAxisLabel , because common superclass javax.swing.JPanel does not declare member(s) public void setText(java.lang.String) |
8 | Expression soapXmlFile.setFilename(sampler.getXmlFile()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression url.setText(bc.getURL()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression soapXmlFile.setFilename(sampler.getXmlFile()) is a void method call, and thus it cannot be parameterized |
11 | Expression url.setText(bc.getURL()) is a void method call, and thus it cannot be parameterized |
12 | Expression sampler.getXmlFile() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
13 | Expression bc.getURL() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
14 | Clone fragment #1 returns variable sampler with type org.apache.jmeter.protocol.http.sampler.SoapSampler , while Clone fragment #2 returns variable bc with type org.apache.jmeter.testelement.BarChart |