17 |
17 |
18 LOAD_SUITE tunitcustcmd_server |
18 LOAD_SUITE tunitcustcmd_server |
19 |
19 |
20 START_TESTCASE DEVSRVS-SSREFPLUGINS-CUSTCMD-0022 |
20 START_TESTCASE DEVSRVS-SSREFPLUGINS-CUSTCMD-0022 |
21 //! @SYMTestCaseID DEVSRVS-SSREFPLUGINS-CUSTCMD-0022 |
21 //! @SYMTestCaseID DEVSRVS-SSREFPLUGINS-CUSTCMD-0022 |
22 //! @SYMPREQ PREQ1871 |
|
23 //! @SYMTestType UT |
22 //! @SYMTestType UT |
24 //! @SYMTestPriority High |
23 //! @SYMTestPriority High |
25 //! @SYMTestStatus Implemented |
24 //! @SYMTestStatus Implemented |
26 //! @SYMTestCaseDesc Tests the behaviour of CCustomCmdPublishStartupMode. |
25 //! @SYMTestCaseDesc Tests the behaviour of CCustomCmdPublishStartupMode with all the required capabilities (PowerMgmt,ProtServ & WriteDeviceData). |
27 //! Tests the cancel behaviour of CCustomCmdPublishStartupMode. |
26 //! Tests the cancel behaviour of CCustomCmdPublishStartupMode. |
28 //! @SYMTestActions doTestCreateExecuteAndDestroyL() The test performs operations on a CCustomCmdPublishStartupMode object, namely calling the following methods: |
27 //! @SYMTestActions doTestCreateExecuteAndDestroyL() The test performs operations on a CCustomCmdPublishStartupMode object, namely calling the following methods: |
29 //! 1. NewL - Creating the object |
28 //! 1. NewL - Creating the object |
30 //! 2. Initialize - Initialising the custom cmd |
29 //! 2. Initialize - Initialising the custom cmd |
31 //! 3. Execute - Executing the custom cmd |
30 //! 3. Execute - Executing the custom cmd |
35 //! 2. Initialize - Initialising the custom cmd |
34 //! 2. Initialize - Initialising the custom cmd |
36 //! 3. Execute - Executing the custom cmd |
35 //! 3. Execute - Executing the custom cmd |
37 //! 4. ExecuteCancel - Cancels the custom command |
36 //! 4. ExecuteCancel - Cancels the custom command |
38 //! 5. Close - Closes the custom command |
37 //! 5. Close - Closes the custom command |
39 //! @SYMTestExpectedResults Command should execute normally and should complete with KErrNone. |
38 //! @SYMTestExpectedResults Command should execute normally and should complete with KErrNone. |
40 RUN_TEST_STEP 100 tunitcustcmd_server CCustomCmdTestPublishStartupMode |
39 RUN_TEST_STEP 100 tunitcustcmd_server TestPublishStartupModeWithCap |
41 END_TESTCASE DEVSRVS-SSREFPLUGINS-CUSTCMD-0022 |
40 END_TESTCASE DEVSRVS-SSREFPLUGINS-CUSTCMD-0022 |
42 |
41 |
|
42 RUN_PROGRAM 50 setcap.exe tunitcustcmd_server.exe 000024 tunitcustcmd_server_WithoutCap1.exe |
|
43 |
|
44 LOAD_SUITE tunitcustcmd_server_WithoutCap1 |
|
45 |
|
46 START_TESTCASE DEVSRVS-SSREFPLUGINS-CUSTCMD-0032 |
|
47 //! @SYMTestCaseID DEVSRVS-SSREFPLUGINS-CUSTCMD-0032 |
|
48 //! @TaskID bh1sosd4#32 |
|
49 //! @SYMTestType UT |
|
50 //! @SYMTestPriority High |
|
51 //! @SYMTestStatus Implemented |
|
52 //! @SYMTestCaseDesc Tests whether setting the Central Repository key 101f8762 fails without proper write capabilities (without ProtServ capability) |
|
53 //! @SYMTestActions doTestStepPreambleL() The test performs operations on a CRepository object, namely calling the following methods: |
|
54 //! 1. NewL - Creating the object |
|
55 //! 2. Set - Setting the Central Repository key |
|
56 //! @SYMTestExpectedResults Setting the Central Repository key 101f8762 should fail & complete with KErrPermissionDenied. |
|
57 RUN_TEST_STEP 100 tunitcustcmd_server_WithoutCap1 TestPublishStartupModeWithoutCap |
|
58 END_TESTCASE DEVSRVS-SSREFPLUGINS-CUSTCMD-0032 |
|
59 |
|
60 RUN_PROGRAM 50 setcap.exe tunitcustcmd_server.exe 000120 tunitcustcmd_server_WithoutCap2.exe |
|
61 |
|
62 LOAD_SUITE tunitcustcmd_server_WithoutCap2 |
|
63 |
|
64 START_TESTCASE DEVSRVS-SSREFPLUGINS-CUSTCMD-0033 |
|
65 //! @SYMTestCaseID DEVSRVS-SSREFPLUGINS-CUSTCMD-0033 |
|
66 //! @TaskID bh1sosd4#32 |
|
67 //! @SYMTestType UT |
|
68 //! @SYMTestPriority High |
|
69 //! @SYMTestStatus Implemented |
|
70 //! @SYMTestCaseDesc Tests whether setting the Central repository key 101f8762 fails without write capabilities (without PowerMgmt capability) |
|
71 //! @SYMTestActions doTestStepPreambleL() The test performs operations on a CRepository object, namely calling the following methods: |
|
72 //! 1. NewL - Creating the object |
|
73 //! 2. Set - Setting the Central Repository key |
|
74 //! @SYMTestExpectedResults Setting the Central Repository key 101f8762 should fail & complete with KErrPermissionDenied. |
|
75 RUN_TEST_STEP 100 tunitcustcmd_server_WithoutCap2 TestPublishStartupModeWithoutCap |
|
76 END_TESTCASE DEVSRVS-SSREFPLUGINS-CUSTCMD-0033 |
|
77 |
|
78 RUN_PROGRAM 50 setcap.exe tunitcustcmd_server.exe 000104 tunitcustcmd_server_WithoutCap3.exe |
|
79 |
|
80 LOAD_SUITE tunitcustcmd_server_WithoutCap3 |
|
81 |
|
82 START_TESTCASE DEVSRVS-SSREFPLUGINS-CUSTCMD-0034 |
|
83 //! @SYMTestCaseID DEVSRVS-SSREFPLUGINS-CUSTCMD-0034 |
|
84 //! @TaskID bh1sosd4#32 |
|
85 //! @SYMTestType UT |
|
86 //! @SYMTestPriority High |
|
87 //! @SYMTestStatus Implemented |
|
88 //! @SYMTestCaseDesc Tests whether setting the Central repository key 101f8762 fails without write capabilities (without WriteDeviceData capability) |
|
89 //! @SYMTestActions doTestStepPreambleL() The test performs operations on a CRepository object, namely calling the following methods: |
|
90 //! 1. NewL - Creating the object |
|
91 //! 2. Set - Setting the Central Repository key |
|
92 //! @SYMTestExpectedResults Setting the Central Repository key 101f8762 should fail & complete with KErrPermissionDenied. |
|
93 RUN_TEST_STEP 100 tunitcustcmd_server_WithoutCap3 TestPublishStartupModeWithoutCap |
|
94 END_TESTCASE DEVSRVS-SSREFPLUGINS-CUSTCMD-0034 |