messagingfw/msgtestfw/TestCases/ScriptedTestCases/Capabilities/Cap_EMsvGetRemainingChildren.script
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     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 
       
    17 PRINT Running  EMsvGetRemainingChildren
       
    18 
       
    19 //******************************************
       
    20 // We do not have any ability to read from the inbox.
       
    21 // We should be able to access the entries we own. 
       
    22 //******************************************
       
    23 
       
    24 PRINT Running  EMsvGetRemainingChildren : Read Caps = 0. Same SID. Should Pass.
       
    25 
       
    26 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script
       
    27 
       
    28 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7777 C:\sys\bin\MessagingTestServer.exe
       
    29 
       
    30 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00000000 -SID 101F7776 C:\sys\bin\SendProxyServer.exe
       
    31 
       
    32 // Clean the message store
       
    33 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CleanMessageStore.script
       
    34 
       
    35 // Create some messages owned by 101F7777
       
    36 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateMultipleEntryInbox.script
       
    37 
       
    38 // Wait for MessagingTestServer to die
       
    39 DELAY 5000
       
    40 
       
    41 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe
       
    42 
       
    43 // Create some messages owned by 101F7776
       
    44 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateMultipleEntryInbox.script
       
    45 
       
    46 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvGetRemainingChildren.script
       
    47 
       
    48 // Need delay to allow SendProxyServer shutting down
       
    49 DELAY 3000
       
    50 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script
       
    51 
       
    52 //******************************************
       
    53 // We have the ability to read from the inbox, ie ReadUserData.
       
    54 // We should be able to access all entries.
       
    55 //******************************************
       
    56 
       
    57 PRINT Running  EMsvGetRemainingChildren : Read Caps = ReadUserData. Different SID. Should Pass.
       
    58 
       
    59 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script
       
    60 
       
    61 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe
       
    62 
       
    63 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00008000 -SID 101F7777 C:\sys\bin\SendProxyServer.exe
       
    64 
       
    65 // Clean the message store
       
    66 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CleanMessageStore.script
       
    67 
       
    68 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateMultipleEntryInbox.script
       
    69 
       
    70 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvGetRemainingChildren.script
       
    71 
       
    72 // Need delay to allow SendProxyServer shutting down
       
    73 DELAY 3000
       
    74 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script
       
    75 
       
    76 
       
    77 //******************************************
       
    78 // We do not have the ability to read from the inbox since we do not have ReadUserData.
       
    79 // Also we do not have the same SID, so we should fail. EMsvGetRemainingChildren does not return an error
       
    80 // however, so we must check that no entries were returned.
       
    81 //******************************************
       
    82 
       
    83 PRINT Running  EMsvGetRemainingChildren :  Read Caps = 0. Different SID. Should only get the messages created by same SID.
       
    84 
       
    85 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script
       
    86 
       
    87 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7777 C:\sys\bin\MessagingTestServer.exe
       
    88 
       
    89 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00000000 -SID 101F7777 C:\sys\bin\SendProxyServer.exe
       
    90 
       
    91 // Clean the message store
       
    92 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CleanMessageStore.script
       
    93 
       
    94 // Create some messages owned by 101F7777
       
    95 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateMultipleEntryInbox.script
       
    96 
       
    97 // Wait for MessagingTestServer to die
       
    98 DELAY 5000
       
    99 
       
   100 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe
       
   101 
       
   102 // Create some messages owned by 101F7776
       
   103 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateMultipleEntryInbox.script
       
   104 
       
   105 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvGetRemainingChildren.script
       
   106 
       
   107 DELAY 3000
       
   108 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script