|
1 // |
|
2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 //! @file SchSend.script |
|
17 //! @brief Run unit tests on the schsend component resulted from PREQ694 |
|
18 //! |
|
19 |
|
20 PRINT schsend test suite |
|
21 LOAD_SUITE Test_SchSend_Server |
|
22 |
|
23 // --- CMsvSysAgentActions |
|
24 |
|
25 //! @TestCaseId T_CMsvSysAgentActions_StoreRestore |
|
26 //! @TestCaseDesc test CMsvSysAgentActions store and restoration |
|
27 //! @FssId |
|
28 //! @TestActions create a CMsvSysAgentActions object, store it, and restore it, |
|
29 //! @TestExpectedResults the stored and restored objects are identical. |
|
30 //! @TestPriority Medium |
|
31 //! @TestStatus Implemented |
|
32 RUN_TEST_STEP 100 Test_SchSend_Server MsvSysAgentActionsStep z:\testdata\scripts\schsend.ini MsvSysAgentActions1 |
|
33 |
|
34 //! @TestCaseId T_CMsvSysAgentActions_ConditionMetL |
|
35 //! @TestCaseDesc test CMsvSysAgentActions ConditionMetL method |
|
36 //! @FssId |
|
37 //! @TestActions create a CMsvSysAgentActions object, simulate a condition not met in the RSystemAgent, |
|
38 //! @TestExpectedResults the method ConitionMetL returns EFalse, and the returned error action should match. |
|
39 //! @TestPriority Medium |
|
40 //! @TestStatus Implemented |
|
41 RUN_TEST_STEP 100 Test_SchSend_Server MsvSysAgentActionsStep z:\testdata\scripts\schsend.ini MsvSysAgentActions2 |
|
42 |
|
43 //! @TestCaseId T_CMsvScheduledEntry_PendingConditions |
|
44 //! @TestCaseDesc test CMsvScheduledEntry PendingConditions/SetPendingConditions methods |
|
45 //! @FssId |
|
46 //! @TestActions create a TMsvEntry, Set the pending condition, and create a CMsvScheduledEntry object passing |
|
47 //! in the TMsvEntry, get the pending conditions flag using the CMsvScheduledEntry and TMsvEntry API respectively, |
|
48 //! @TestExpectedResults the values returned from the two APIs are the same |
|
49 //! @TestPriority Medium |
|
50 //! @TestStatus Implemented |
|
51 RUN_TEST_STEP 100 Test_SchSend_Server MsvScheduledEntryStep |
|
52 |
|
53 //! @TestCaseId T_CMsvScheduleSettings |
|
54 //! @TestCaseDesc test CMsvScheduleSettings |
|
55 //! @FssId |
|
56 //! @TestActions Create a CMsvScheduleSettings object, test if the default values are correct; |
|
57 //! use the setters to set the member variables, and get the values back, to see if the returned |
|
58 //! values are the same; store and restore the object, and check if the restored object is the same as |
|
59 //! the previous stored one; call the reset method, and check if the values are reset to the defaults |
|
60 //! @TestExpectedResults The object's default values are correctly set after constructing; the values from getters match |
|
61 //! the values used to set; the restored object is identical to the previous stored one; and the values of the object are |
|
62 //! set to defaults after resetting. |
|
63 //! @TestPriority Medium |
|
64 //! @TestStatus Implemented |
|
65 RUN_TEST_STEP 100 Test_SchSend_Server MsvScheduleSettingsStep |
|
66 |
|
67 //! @TestCaseId T_TMsvSchedulePackage |
|
68 //! @TestCaseDesc test TMsvSchedulePackage |
|
69 //! @FssId |
|
70 //! @TestActions Create a TMsvSchedulePackage object, test if the default values are correct; |
|
71 //! pack the package object and unpack it, test if the unpacked object is the same as the previous one. |
|
72 //! @TestExpectedResults The object's default values are correctly set after constructing; the unpacked object is identical |
|
73 //! to the previous packed one. |
|
74 //! @TestPriority Medium |
|
75 //! @TestStatus Implemented |
|
76 RUN_TEST_STEP 100 Test_SchSend_Server MsvSchedulePackageStep |
|
77 |
|
78 //! @TestCaseId T_TMsvOffPeakTime |
|
79 //! @TestCaseDesc test TMsvOffPeakTime |
|
80 //! @FssId |
|
81 //! @TestActions Create a TMsvOffPeakTime object, test if the default values are correct; |
|
82 //! use the setters to set the member variables, and get the values back, to see if the returned values are |
|
83 //! the same; internalize and externalize the object, and check if the internalized object is the same as |
|
84 //! the previous externalized object; test the NextTimeInclusive method, If FromTime is within the validity |
|
85 //! period of this off-peak time, then the next time will be less than or equal to FromTime. |
|
86 //! @TestExpectedResults the default values are correctly set after constructing; the values from getters match |
|
87 //! the values used to set; the internalized object is identical to the previous externalized one; the next time get |
|
88 //! from NextTimeInclusive is less than or equal to FromTim |
|
89 //! @TestPriority Medium |
|
90 //! @TestStatus Implemented |
|
91 RUN_TEST_STEP 100 Test_SchSend_Server MsvOffPeakTimeStep |
|
92 |
|
93 |
|
94 //! @TestCaseId T_CMsvOffPeakTimes |
|
95 //! @TestCaseDesc create a CMsvOffPeakTimes object, store and restore it; given a current time and get the next off peak time; |
|
96 //! @FssId |
|
97 //! @TestExpectedResults The restored object is identical to the previous stored one; the next off peak time matches. |
|
98 //! @TestPriority Medium |
|
99 //! @TestStatus Implemented |
|
100 RUN_TEST_STEP 100 Test_SchSend_Server MsvOffPeakTimeArrayStep |
|
101 |
|
102 //! @TestCaseId T_CMsvSendErrorActions |
|
103 //! @TestCaseDesc test CMsvSendErrorActions |
|
104 //! @FssId |
|
105 //! @TestActions Create a CMsvSendErrorActions object, initialize it, store and restore the object, to see if the |
|
106 //! restored object is the same as the previous stored one; manipulate the object using Add, remove, and get methods; |
|
107 //! restored the object from resource file; get errors from the object, create a new CMsvSendErrorAction object and use |
|
108 //! SetErrorsL to set the errors, test if the error actions in the new object is the same as the old one; set and get the |
|
109 //! default error action to see if it matches. |
|
110 //! @TestExpectedResults The restored object is identical to the previous stored one; after adding a new Send error action |
|
111 //! the object contains the newly added error action; after removing, the object does not contain the removed error action; |
|
112 //! the restored object from the resource file is properly set; the error actions in the new object are the same as the one |
|
113 //! used in set. |
|
114 //! @TestPriority Medium |
|
115 //! @TestStatus Implemented |
|
116 RUN_TEST_STEP 100 Test_SchSend_Server MsvSendErrorActionsStep z:\testdata\scripts\schsend.ini MsvErrorActions |
|
117 |