File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/java/control/gui/BeanShellSamplerGui.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/assertions/gui/BeanShellAssertionGui.java | |||
Method name: void modifyTestElement(TestElement)
|
Method name: void modifyTestElement(TestElement)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | te.clear();↵ | 1 | te.clear();↵ | |
2 | this.configureTestElement(te);↵ | 2 | this.configureTestElement(te);↵ | |
3 | te.setProperty(BeanShellSampler.SCRIPT, scriptField.getText());↵ | 3 | te.setProperty(BeanShellAssertion.SCRIPT, scriptField.getText());↵ | |
4 | te.setProperty(BeanShellSampler.FILENAME, filename.getText());↵ | 4 | te.setProperty(BeanShellAssertion.FILENAME, filename.getText());↵ | |
5 | te.setProperty(BeanShellSampler.PARAMETERS, parameters.getText());↵ | 5 | te.setProperty(BeanShellAssertion.PARAMETERS, parameters.getText());↵ | |
6 | te.setProperty(new BooleanProperty(BeanShellSampler.RESET_INTERPRETER, resetInterpreter.isSelected())); | 6 | te.setProperty(new BooleanProperty(BeanShellAssertion.RESET_INTERPRETER, resetInterpreter.isSelected())); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
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 | 36 |
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | te.clear(); | 1 | te.clear(); | |||||||||||
2 | this.configureTestElement(te); | 2 | this.configureTestElement(te); | |||||||||||
3 | te.setProperty(BeanShellSampler.SCRIPT, scriptField.getText()); |
| 3 | te.setProperty(BeanShellAssertion.SCRIPT, scriptField.getText()); | ||||||||||
4 | te.setProperty(BeanShellSampler.FILENAME, filename.getText()); |
| 4 | te.setProperty(BeanShellAssertion.FILENAME, filename.getText()); | ||||||||||
5 | te.setProperty(BeanShellSampler.PARAMETERS, parameters.getText()); |
| 5 | te.setProperty(BeanShellAssertion.PARAMETERS, parameters.getText()); | ||||||||||
6 | te.setProperty(new BooleanProperty(BeanShellSampler.RESET_INTERPRETER, resetInterpreter.isSelected())); |
| 6 | te.setProperty(new BooleanProperty(BeanShellAssertion.RESET_INTERPRETER, resetInterpreter.isSelected())); |
Row | Violation |
---|