1 | String getSuccessCode(){↵ | | |
|
2 | return getPropertyAsString(SUCCESSCODE);↵ | | |
|
3 | }↵ | | |
|
|
4 | /**↵ | | |
|
5 | * set the succes code. the success code should↵ | | |
|
6 | * be unique.↵ | | |
|
7 | * @param code↵ | | |
|
8 | */↵ | | |
|
9 | public void setSuccessCode(String code){↵ | | |
|
10 | setProperty(SUCCESSCODE,code);↵ | | |
|
11 | }↵ | | |
|
12 | ↵ | | |
|
13 | /**↵ | | |
|
14 | * get the failure message↵ | | |
|
15 | */↵ | | |
|
16 | public String getFailure(){↵ | | 1 | String getFailure(){↵
|
17 | return getPropertyAsString(FAILURE);↵ | | 2 | return getPropertyAsString(FAILURE);↵
|
18 | }↵ | | 3 | }↵
|
|
19 | /**↵ | | 4 | /**↵
|
20 | * set the failure message↵ | | 5 | * set the failure message↵
|
21 | * @param fail↵ | | 6 | * @param fail↵
|
22 | */↵ | | 7 | */↵
|
23 | public void setFailure(String fail){↵ | | 8 | public void setFailure(String fail){↵
|
24 | setProperty(FAILURE,fail);↵ | | 9 | setProperty(FAILURE,fail);↵
|
25 | }↵ | | 10 | }↵
|
26 | ↵ | | 11 | ↵
|
27 | /**↵ | | 12 | /**↵
|
28 | * The failure code is used by other components↵ | | 13 | * The failure code is used by other components↵
|
29 | */↵ | | 14 | */↵
|
30 | public String getFailureCode(){↵ | | 15 | public String getFailureCode(){↵
|
31 | return getPropertyAsString(FAILURECODE);↵ | | 16 | return getPropertyAsString(FAILURECODE);↵
|
32 | } | | 17 | }↵
|
| | | 18 | ↵
|
| | | 19 | /**↵
|
| | | 20 | * Provide some unique code to denote a type of failure↵
|
| | | 21 | * @param code↵
|
| | | 22 | */↵
|
| | | 23 | public void setFailureCode(String code){↵
|
| | | 24 | setProperty(FAILURECODE,code);↵
|
| | | 25 | }↵
|
|
| | | 26 | /**↵
|
| | | 27 | * return the descriptive error for the test↵
|
| | | 28 | */↵
|
| | | 29 | public String getError(){↵
|
| | | 30 | return getPropertyAsString(ERROR);↵
|
| | | 31 | }
|