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 modifyTestElement(TestElement)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | super.configure(el);↵ | 1 | this.configure↵ | |
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());↵ | |||
8 | useKeepAlive.setSelected(sampler.getUseKeepAlive↵ | 2 | TestElement(element);↵ | |
3 | BarChart bc = (BarChart)element;↵ | |||
4 | bc.setXAxis(xItems.getText());↵ | |||
5 | bc.setYAxis(yItems.getText());↵ | |||
6 | bc.setXLabel(xAxisLabel.getText());↵ | |||
7 | bc.setYLabel(yAxisLabel.getText());↵ | |||
8 | bc.setCaption(caption.getText());↵ | |||
9 | ()); | 9 | bc.setURL(url.getText()); | |
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 | 2 |
Number of unmapped statements in the first code fragment | 6 |
Number of unmapped statements in the second code fragment | 6 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super.configure(el); |
| 1 | this.configureTestElement(element); | ||||||||||||||||||||||
2 | SoapSampler sampler = (SoapSampler)el; |
| 2 | BarChart bc = (BarChart)element; | ||||||||||||||||||||||
| 3 | bc.setXAxis(xItems.getText()); | ||||||||||||||||||||||||
3 | urlField.setText(sampler.getURLData()); | | ||||||||||||||||||||||||
| 4 | bc.setYAxis(yItems.getText()); | ||||||||||||||||||||||||
4 | sendSoapAction.setSelected(sampler.getSendSOAPAction()); | | ||||||||||||||||||||||||
| 5 | bc.setXLabel(xAxisLabel.getText()); | ||||||||||||||||||||||||
5 | soapAction.setText(sampler.getSOAPAction()); | | ||||||||||||||||||||||||
| 6 | bc.setYLabel(yAxisLabel.getText()); | ||||||||||||||||||||||||
6 | soapXml.setText(sampler.getXmlData()); | | ||||||||||||||||||||||||
| 7 | bc.setCaption(caption.getText()); | ||||||||||||||||||||||||
7 | soapXmlFile.setFilename(sampler.getXmlFile()); | | ||||||||||||||||||||||||
| 8 | bc.setURL(url.getText()); | ||||||||||||||||||||||||
8 | useKeepAlive.setSelected(sampler.getUseKeepAlive()); | |
Row | Violation |
---|---|
1 | Expression super.configure(el) is a void method call, and thus it cannot be parameterized |
2 | Expression this.configureTestElement(element) is a void method call, and thus it cannot be parameterized |
3 | 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 |