diff -r 4e1aa6a622a0 -r a811597961f0 sysstatemgmt/systemstatereferenceplugins/test/tunitcustcmd/scripts/ssrefpluginstest_custcmd_publishstartupmode.script --- a/sysstatemgmt/systemstatereferenceplugins/test/tunitcustcmd/scripts/ssrefpluginstest_custcmd_publishstartupmode.script Tue Feb 02 00:53:00 2010 +0200 +++ b/sysstatemgmt/systemstatereferenceplugins/test/tunitcustcmd/scripts/ssrefpluginstest_custcmd_publishstartupmode.script Sat Feb 20 00:05:00 2010 +0200 @@ -19,11 +19,10 @@ START_TESTCASE DEVSRVS-SSREFPLUGINS-CUSTCMD-0022 //! @SYMTestCaseID DEVSRVS-SSREFPLUGINS-CUSTCMD-0022 -//! @SYMPREQ PREQ1871 //! @SYMTestType UT //! @SYMTestPriority High //! @SYMTestStatus Implemented -//! @SYMTestCaseDesc Tests the behaviour of CCustomCmdPublishStartupMode. +//! @SYMTestCaseDesc Tests the behaviour of CCustomCmdPublishStartupMode with all the required capabilities (PowerMgmt,ProtServ & WriteDeviceData). //! Tests the cancel behaviour of CCustomCmdPublishStartupMode. //! @SYMTestActions doTestCreateExecuteAndDestroyL() The test performs operations on a CCustomCmdPublishStartupMode object, namely calling the following methods: //! 1. NewL - Creating the object @@ -37,6 +36,59 @@ //! 4. ExecuteCancel - Cancels the custom command //! 5. Close - Closes the custom command //! @SYMTestExpectedResults Command should execute normally and should complete with KErrNone. -RUN_TEST_STEP 100 tunitcustcmd_server CCustomCmdTestPublishStartupMode +RUN_TEST_STEP 100 tunitcustcmd_server TestPublishStartupModeWithCap END_TESTCASE DEVSRVS-SSREFPLUGINS-CUSTCMD-0022 +RUN_PROGRAM 50 setcap.exe tunitcustcmd_server.exe 000024 tunitcustcmd_server_WithoutCap1.exe + +LOAD_SUITE tunitcustcmd_server_WithoutCap1 + +START_TESTCASE DEVSRVS-SSREFPLUGINS-CUSTCMD-0032 +//! @SYMTestCaseID DEVSRVS-SSREFPLUGINS-CUSTCMD-0032 +//! @TaskID bh1sosd4#32 +//! @SYMTestType UT +//! @SYMTestPriority High +//! @SYMTestStatus Implemented +//! @SYMTestCaseDesc Tests whether setting the Central Repository key 101f8762 fails without proper write capabilities (without ProtServ capability) +//! @SYMTestActions doTestStepPreambleL() The test performs operations on a CRepository object, namely calling the following methods: +//! 1. NewL - Creating the object +//! 2. Set - Setting the Central Repository key +//! @SYMTestExpectedResults Setting the Central Repository key 101f8762 should fail & complete with KErrPermissionDenied. +RUN_TEST_STEP 100 tunitcustcmd_server_WithoutCap1 TestPublishStartupModeWithoutCap +END_TESTCASE DEVSRVS-SSREFPLUGINS-CUSTCMD-0032 + +RUN_PROGRAM 50 setcap.exe tunitcustcmd_server.exe 000120 tunitcustcmd_server_WithoutCap2.exe + +LOAD_SUITE tunitcustcmd_server_WithoutCap2 + +START_TESTCASE DEVSRVS-SSREFPLUGINS-CUSTCMD-0033 +//! @SYMTestCaseID DEVSRVS-SSREFPLUGINS-CUSTCMD-0033 +//! @TaskID bh1sosd4#32 +//! @SYMTestType UT +//! @SYMTestPriority High +//! @SYMTestStatus Implemented +//! @SYMTestCaseDesc Tests whether setting the Central repository key 101f8762 fails without write capabilities (without PowerMgmt capability) +//! @SYMTestActions doTestStepPreambleL() The test performs operations on a CRepository object, namely calling the following methods: +//! 1. NewL - Creating the object +//! 2. Set - Setting the Central Repository key +//! @SYMTestExpectedResults Setting the Central Repository key 101f8762 should fail & complete with KErrPermissionDenied. +RUN_TEST_STEP 100 tunitcustcmd_server_WithoutCap2 TestPublishStartupModeWithoutCap +END_TESTCASE DEVSRVS-SSREFPLUGINS-CUSTCMD-0033 + +RUN_PROGRAM 50 setcap.exe tunitcustcmd_server.exe 000104 tunitcustcmd_server_WithoutCap3.exe + +LOAD_SUITE tunitcustcmd_server_WithoutCap3 + +START_TESTCASE DEVSRVS-SSREFPLUGINS-CUSTCMD-0034 +//! @SYMTestCaseID DEVSRVS-SSREFPLUGINS-CUSTCMD-0034 +//! @TaskID bh1sosd4#32 +//! @SYMTestType UT +//! @SYMTestPriority High +//! @SYMTestStatus Implemented +//! @SYMTestCaseDesc Tests whether setting the Central repository key 101f8762 fails without write capabilities (without WriteDeviceData capability) +//! @SYMTestActions doTestStepPreambleL() The test performs operations on a CRepository object, namely calling the following methods: +//! 1. NewL - Creating the object +//! 2. Set - Setting the Central Repository key +//! @SYMTestExpectedResults Setting the Central Repository key 101f8762 should fail & complete with KErrPermissionDenied. +RUN_TEST_STEP 100 tunitcustcmd_server_WithoutCap3 TestPublishStartupModeWithoutCap +END_TESTCASE DEVSRVS-SSREFPLUGINS-CUSTCMD-0034 \ No newline at end of file