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 modifyTestElement(TestElement)
|
Method name: void modifyTestElement(TestElement)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 8 | |||
1 | this.configureTestElement(s);↵ | 1 | super.configureTestElement(↵ | |
2 | if (s instanceof SoapSampler) {↵ | |||
3 | SoapSampler sampler = (SoapSampler) s;↵ | |||
4 | sampler.setURLData(urlField.getText());↵ | |||
5 | sampler.setXmlData(soapXml.getText());↵ | |||
6 | sampler.setXmlFile(soapXmlFile.getFilename());↵ | |||
7 | sampler.setSOAPAction(soapAction.getText());↵ | |||
8 | sampler.setSendSOAPAction(sendSoapAction.isSelected());↵ | |||
9 | sampler.setUseKeepAlive(useKeepAlive.isSelected());↵ | |||
10 | } | 2 | 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()));↵ | |||
8 | page.setIntroduction(introduction.getText());↵ | |||
9 |
| |||
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 | 8 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 7 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | this.configureTestElement(s); |
| 1 | super.configureTestElement(element); | ||||||||||||
| 2 | ReportPage page = (ReportPage)element; | ||||||||||||||
| 3 | page.setCSS(cssURL.getText()); | ||||||||||||||
| 4 | page.setFooterURL(footerURL.getText()); | ||||||||||||||
| 5 | page.setHeaderURL(headerURL.getText()); | ||||||||||||||
| 6 | page.setIndex(String.valueOf(makeIndex.isSelected())); | ||||||||||||||
| 7 | page.setIntroduction(introduction.getText()); | ||||||||||||||
| 8 | page.setTitle(pageTitle.getText()); |
Row | Violation |
---|---|
1 | Expression this.configureTestElement(s) is a void method call, and thus it cannot be parameterized |
2 | Expression super.configureTestElement(element) is a void method call, and thus it cannot be parameterized |