File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/reporters/MailerModel.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/reporters/MailerModel.java | |||
Method name: void add(SampleResult)
|
Method name: void add(SampleResult)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | if (siteDown && (sample.getTime() != -1) && !successMsgSent) {↵ | 1 | if (↵ | |
2 | // Send the mail ...↵ | |||
3 | if (successCount > getSuccessLimit()) {↵ | |||
4 | ↵ | 2 | this.isFailing() && !siteDown && !failureMsgSent) {↵ | |
3 | // Send the mail ...↵ | |||
5 | Vector addressVector = getAddressVector();↵ | 4 | Vector addressVector = getAddressVector();↵ | |
5 | if (addressVector.size() != 0) {↵ | |||
6 | try {↵ | 6 | try {↵ | |
7 | sendMail(getFromAddress(), addressVector, getSuccessSubject(), "URL Restarted: "↵ | 7 | sendMail(getFromAddress(), addressVector, getFailureSubject(), "URL Failed: "↵ | |
8 | + sample.getSampleLabel(), getSmtpHost());↵ | 8 | + sample.getSampleLabel(), getSmtpHost());↵ | |
9 | } catch (Exception e) {↵ | 9 | } catch (Exception e) {↵ | |
10 | log.error("Problem sending mail", e);↵ | 10 | log.error("Problem sending mail", e);↵ | |
11 | }↵ | 11 | }↵ | |
12 | siteDown = false;↵ | 12 | siteDown = true;↵ | |
13 | successMsgSent = true;↵ | 13 | failureMsgSent = true;↵ | |
14 | failureCount = 0;↵ | 14 | successCount = 0;↵ | |
15 | failureMsgSent = false;↵ | 15 | successMsgSent = false;↵ | |
16 | }↵ | 16 | }↵ | |
17 | } | 17 |
| |
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 5 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.1 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16 | Vector addressVector = getAddressVector(); | | |||||||||||||||
17 | try | 8 | try | ||||||||||||||
18 | sendMail(getFromAddress(), addressVector, getSuccessSubject(), "URL Restarted: " + sample.getSampleLabel(), getSmtpHost()); |
| 9 | sendMail(getFromAddress(), addressVector, getFailureSubject(), "URL Failed: " + sample.getSampleLabel(), getSmtpHost()); |
Row | Violation |
---|