|
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 EMsvGetChildIds |
|
18 |
|
19 //****************************************** |
|
20 // We should have ReadUserData capability to get the childs ids. |
|
21 // If we have the same SID but not ReadUserData we will get a filtered return containing only the entries we own. |
|
22 //****************************************** |
|
23 |
|
24 PRINT Running EMsvGetChildIds : Read Caps = ReadUserData. 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 // Clean the message store |
|
31 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CleanMessageStore.script |
|
32 |
|
33 // Create 30 entries owned by 101F7777 |
|
34 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateMultipleEntryInbox.script |
|
35 |
|
36 // Wait for MessagingTestServer to die |
|
37 DELAY 5000 |
|
38 |
|
39 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe |
|
40 |
|
41 // Create 30 entries owned by 101F7776 |
|
42 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateMultipleEntryInbox.script |
|
43 |
|
44 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00008000 -SID 101F7776 C:\sys\bin\SendProxyServer.exe |
|
45 |
|
46 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvGetChildIds_All.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 //****************************************** |
|
54 // We should have ReadUserData capability to get the childs ids. |
|
55 // If we have the same SID but not ReadUserData we will get a filtered return containing only the entries we own. |
|
56 //****************************************** |
|
57 |
|
58 PRINT Running EMsvGetChildIds : Read Caps = 0. Same SID. Should only get the messages created by same SID. |
|
59 |
|
60 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script |
|
61 |
|
62 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7777 C:\sys\bin\MessagingTestServer.exe |
|
63 |
|
64 // Clean the message store |
|
65 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CleanMessageStore.script |
|
66 |
|
67 // Create 30 entries owned by 101F7777 |
|
68 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateMultipleEntryInbox.script |
|
69 |
|
70 // Wait for MessagingTestServer to die |
|
71 DELAY 5000 |
|
72 |
|
73 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe |
|
74 |
|
75 // Create 30 entries owned by 101F7776 |
|
76 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateMultipleEntryInbox.script |
|
77 |
|
78 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00000000 -SID 101F7776 C:\sys\bin\SendProxyServer.exe |
|
79 |
|
80 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvGetChildIds_Owned.script |
|
81 |
|
82 // Need delay to allow SendProxyServer shutting down |
|
83 DELAY 3000 |
|
84 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script |
|
85 |
|
86 |
|
87 //****************************************** |
|
88 // We should have ReadUserData capability to get the childs ids. |
|
89 // If we have the same SID but not ReadUserData we will get a filtered return containing only the entries we own. |
|
90 //****************************************** |
|
91 |
|
92 PRINT Running EMsvGetChildIds : Read Caps = ReadUserData. Different SID. Should Pass. |
|
93 |
|
94 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script |
|
95 |
|
96 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7777 C:\sys\bin\MessagingTestServer.exe |
|
97 |
|
98 // Clean the message store |
|
99 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CleanMessageStore.script |
|
100 |
|
101 // Create 30 entries owned by 101F7777 |
|
102 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateMultipleEntryInbox.script |
|
103 |
|
104 // Wait for MessagingTestServer to die |
|
105 DELAY 5000 |
|
106 |
|
107 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe |
|
108 |
|
109 // Create 30 entries owned by 101F7776 |
|
110 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateMultipleEntryInbox.script |
|
111 |
|
112 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00008000 -SID 101F7777 C:\sys\bin\SendProxyServer.exe |
|
113 |
|
114 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvGetChildIds_All.script |
|
115 |
|
116 // Need delay to allow SendProxyServer shutting down |
|
117 DELAY 3000 |
|
118 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script |
|
119 |
|
120 |
|
121 //****************************************** |
|
122 // We should have ReadUserData capability to get the childs ids. |
|
123 // If we have the same SID but not ReadUserData we will get a filtered return containing only the entries we own. |
|
124 //****************************************** |
|
125 |
|
126 PRINT Running EMsvGetChildIds : Read Caps = 0. Different SID. Should get no messages. |
|
127 |
|
128 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script |
|
129 |
|
130 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe |
|
131 |
|
132 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00000000 -SID 101F7777 C:\sys\bin\SendProxyServer.exe |
|
133 |
|
134 // Clean the message store |
|
135 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CleanMessageStore.script |
|
136 |
|
137 // Create 30 entries owned by 101F7776 |
|
138 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateMultipleEntryInbox.script |
|
139 |
|
140 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvGetChildIds_None.script |
|
141 |
|
142 // Need delay to allow SendProxyServer shutting down |
|
143 DELAY 3000 |
|
144 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script |
|
145 |