1 | String getFailure(){↵ | | 1 | String getURL() {↵
|
2 | return getPropertyAsString(FAILURE);↵ | | 2 | return getPropertyAsString(URL);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | |
|
5 | * set the failure message↵ | | |
|
6 | * @param fail↵ | | |
|
7 | */↵ | | |
|
8 | public void setFailure(String fail){↵ | | 4 | public synchronized void setURL(String url) {↵
|
9 | setProperty(FAILURE,fail);↵ | | 5 | setProperty(↵
|
10 | }↵ | | |
|
11 | ↵ | | |
|
12 | /**↵ | | |
|
13 | * The failure code is used by other components↵ | | |
|
14 | */↵ | | |
|
15 | public String getFailureCode↵ | | 6 | URL, url);↵
|
| | | 7 | }↵
|
|
16 | (){↵ | | 8 | public synchronized String getUser() {↵
|
17 | return getPropertyAsString(FAILURECODE);↵ | | 9 | return getPropertyAsString(↵
|
18 | }↵ | | |
|
19 | ↵ | | |
|
20 | /**↵ | | |
|
21 | * Provide some unique code to denote a type of failure↵ | | |
|
22 | * @param code↵ | | |
|
23 | */↵ | | |
|
24 | public void setFailureCode(String code){↵ | | |
|
25 | setProperty(FAILURECODE,code);↵ | | |
|
26 | }↵ | | |
|
|
27 | /**↵ | | |
|
28 | * return the descriptive error for the test↵ | | |
|
29 | */↵ | | |
|
30 | public↵ | | 10 | USERNAME);↵
|
| | | 11 | }↵
|
|
| | | 12 | public synchronized void setUser(String user) {↵
|
| | | 13 | setProperty(USERNAME, user);↵
|
| | | 14 | }↵
|
|
31 | String getError(){↵ | | 15 | public synchronized String getPass() {↵
|
32 | return getPropertyAsString(ERROR);↵ | | 16 | return getPropertyAsString(PASSWORD);↵
|
33 | }↵ | | |
|
34 | ↵ | | |
|
35 | /**↵ | | |
|
36 | * provide a descriptive error for the test method. For↵ | | |
|
37 | * a description of the difference between failure and↵ | | |
|
38 | * error, please refer to the following url↵ | | |
|
39 | * http://junit.sourceforge.net/doc/faq/faq.htm#tests_9↵ | | |
|
40 | * @param error↵ | | |
|
41 | */↵ | | |
|
42 | public void setError(String error){↵ | | |
|
43 | ↵ | | 17 | }↵
|
|
| | | 18 | public synchronized void setPass(String pass) {↵
|
44 | setProperty(ERROR,error);↵ | | 19 | setProperty(↵
|
45 | }↵ | | |
|
46 | ↵ | | |
|
47 | /**↵ | | |
|
48 | * return the error code for the test method. it should↵ | | |
|
49 | * be an unique error code.↵ | | |
|
50 | */↵ | | |
|
51 | public↵ | | 20 | PASSWORD, pass);↵
|
| | | 21 | }↵
|
|
52 | String getErrorCode(){↵ | | 22 | public synchronized String getDomain() {↵
|
53 | return getPropertyAsString(ERRORCODE);↵ | | 23 | return getPropertyAsString(↵
|
54 | ↵ | | 24 | DOMAIN);↵
|
55 | } | | 25 | }
|