File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/threads/gui/ThreadGroupGui.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/OnErrorPanel.java | |||
Method name: String onSampleError()
|
Method name: int getOnErrorSetting()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (stopTestBox.isSelected()) {↵ | 1 | if (stopTestBox.isSelected()) {↵ | |
2 | return ThreadGroup.ON_SAMPLE_ERROR_STOPTEST;↵ | 2 | return OnErrorTestElement.ON_ERROR_STOPTEST;↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (stopThrdBox.isSelected()) {↵ | 4 | if (stopThrdBox.isSelected()) {↵ | |
5 | return ThreadGroup.ON_SAMPLE_ERROR_STOPTHREAD;↵ | 5 | return OnErrorTestElement.ON_ERROR_STOPTHREAD;↵ | |
6 | }↵ | 6 | }↵ | |
7 | // Defaults to continue↵ | 7 | // Defaults to continue↵ | |
8 | return ThreadGroup.ON_SAMPLE_ERROR_CONTINUE; | 8 | return OnErrorTestElement.ON_ERROR_CONTINUE; | |
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 14 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 0.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||
---|---|---|---|---|---|---|---|
1 | if (stopTestBox.isSelected()) | 1 | if (stopTestBox.isSelected()) | ||||
|
| 2 | return OnErrorTestElement.ON_ERROR_STOPTEST; | ||||
2 | return ThreadGroup.ON_SAMPLE_ERROR_STOPTEST; |
| | ||||
3 | if (stopThrdBox.isSelected()) | 3 | if (stopThrdBox.isSelected()) | ||||
|
| 4 | return OnErrorTestElement.ON_ERROR_STOPTHREAD; | ||||
4 | return ThreadGroup.ON_SAMPLE_ERROR_STOPTHREAD; |
| | ||||
|
| 5 | return OnErrorTestElement.ON_ERROR_CONTINUE; | ||||
5 | return ThreadGroup.ON_SAMPLE_ERROR_CONTINUE; |
| |
Row | Violation |
---|---|
1 | Unmatched return OnErrorTestElement.ON_ERROR_STOPTEST; |
2 | Unmatched return ThreadGroup.ON_SAMPLE_ERROR_STOPTEST; |
3 | Unmatched return OnErrorTestElement.ON_ERROR_STOPTHREAD; |
4 | Unmatched return ThreadGroup.ON_SAMPLE_ERROR_STOPTHREAD; |
5 | Unmatched return OnErrorTestElement.ON_ERROR_CONTINUE; |
6 | Unmatched return ThreadGroup.ON_SAMPLE_ERROR_CONTINUE; |