01: package org.jzonic.webtester;
02:
03: import java.util.List;
04: import java.util.Vector;
05:
06: /**
07: * @author Mecky
08: */
09: public class WebTestSuiteResult {
10:
11: private String suiteName;
12: private int errorCounter;
13: private List results;
14: private boolean success = true;
15:
16: public WebTestSuiteResult(String suiteName) {
17: this .suiteName = suiteName;
18: results = new Vector();
19: errorCounter = 0;
20: }
21:
22: public void addTestResult(WebTestResult result) {
23: if (!result.isSuccess()) {
24: errorCounter++;
25: success = false;
26: }
27: results.add(result);
28: }
29:
30: public int getErrorCounter() {
31: return errorCounter;
32: }
33:
34: public int getTotalCounter() {
35: return results.size();
36: }
37:
38: public List getTestResults() {
39: return results;
40: }
41:
42: public boolean isSuccess() {
43: return success;
44: }
45:
46: public String getTestSuiteName() {
47: return suiteName;
48: }
49: }
|