author | sl |
Tue, 10 Jun 2014 14:32:02 +0200 | |
changeset 1 | 260cb5ec6c19 |
permissions | -rw-r--r-- |
sl@0 | 1 |
// apipolicing.txt |
sl@0 | 2 |
// |
sl@0 | 3 |
// Test API policing of filetokens cert apps store |
sl@0 | 4 |
|
sl@0 | 5 |
//! @file |
sl@0 | 6 |
//! @SYMTestCaseID Sec-tcertapps-apipolicing-1 |
sl@0 | 7 |
//! @SYMTestCaseDesc Initialise |
sl@0 | 8 |
//! @SYMREQ REQ3466 |
sl@0 | 9 |
//! @SYMTestCasePriority High |
sl@0 | 10 |
//! @SYMTestExpectedResults KErrNone |
sl@0 | 11 |
<action> |
sl@0 | 12 |
<actionname>Initialise</actionname> |
sl@0 | 13 |
<actiontype>InitManager</actiontype> |
sl@0 | 14 |
<actionbody> |
sl@0 | 15 |
</actionbody> |
sl@0 | 16 |
<actionresult> |
sl@0 | 17 |
<return>KErrNone</return> |
sl@0 | 18 |
</actionresult> |
sl@0 | 19 |
</action> |
sl@0 | 20 |
|
sl@0 | 21 |
//! @file |
sl@0 | 22 |
//! @SYMTestCaseID Sec-tcertapps-apipolicing-2 |
sl@0 | 23 |
//! @SYMTestCaseDesc Clearing existing applications |
sl@0 | 24 |
//! @SYMREQ REQ3466 |
sl@0 | 25 |
//! @SYMTestCasePriority High |
sl@0 | 26 |
//! @SYMTestExpectedResults KErrNone |
sl@0 | 27 |
<action> |
sl@0 | 28 |
<actionname>Clearing existing applications</actionname> |
sl@0 | 29 |
<actiontype>ClearAllApps</actiontype> |
sl@0 | 30 |
<actionbody> |
sl@0 | 31 |
</actionbody> |
sl@0 | 32 |
<actionresult> |
sl@0 | 33 |
<return>KErrNone</return> |
sl@0 | 34 |
</actionresult> |
sl@0 | 35 |
</action> |
sl@0 | 36 |
|
sl@0 | 37 |
//! @file |
sl@0 | 38 |
//! @SYMTestCaseID Sec-tcertapps-apipolicing-3 |
sl@0 | 39 |
//! @SYMTestCaseDesc Destroy the manager |
sl@0 | 40 |
//! @SYMREQ REQ3466 |
sl@0 | 41 |
//! @SYMTestCasePriority High |
sl@0 | 42 |
//! @SYMTestExpectedResults KErrNone |
sl@0 | 43 |
<action> |
sl@0 | 44 |
<actionname>Destroy the manager</actionname> |
sl@0 | 45 |
<actiontype>DestroyManager</actiontype> |
sl@0 | 46 |
<actionbody> |
sl@0 | 47 |
</actionbody> |
sl@0 | 48 |
<actionresult> |
sl@0 | 49 |
<return>KErrNone</return> |
sl@0 | 50 |
</actionresult> |
sl@0 | 51 |
</action> |
sl@0 | 52 |
|
sl@0 | 53 |
//! @file |
sl@0 | 54 |
//! @SYMTestCaseID Sec-tcertapps-apipolicing-4 |
sl@0 | 55 |
//! @SYMTestCaseDesc Test add protected by WriteDeviceData |
sl@0 | 56 |
//! @SYMREQ REQ3466 |
sl@0 | 57 |
//! @SYMTestCasePriority High |
sl@0 | 58 |
//! @SYMTestExpectedResults KErrNone |
sl@0 | 59 |
<action> |
sl@0 | 60 |
<actionname>Test add protected by WriteDeviceData</actionname> |
sl@0 | 61 |
<actiontype>policytest</actiontype> |
sl@0 | 62 |
<actionbody> |
sl@0 | 63 |
<testexe>t_certapps.exe</testexe> |
sl@0 | 64 |
<excludedcapabilities> |
sl@0 | 65 |
<capability>TCB</capability> |
sl@0 | 66 |
</excludedcapabilities> |
sl@0 | 67 |
<policy> |
sl@0 | 68 |
<capability>WriteDeviceData</capability> |
sl@0 | 69 |
</policy> |
sl@0 | 70 |
|
sl@0 | 71 |
<preactions> |
sl@0 | 72 |
<action> |
sl@0 | 73 |
<actionname>Initialise</actionname> |
sl@0 | 74 |
<actiontype>InitManager</actiontype> |
sl@0 | 75 |
<actionbody> |
sl@0 | 76 |
</actionbody> |
sl@0 | 77 |
<actionresult> |
sl@0 | 78 |
<return>KErrNone</return> |
sl@0 | 79 |
</actionresult> |
sl@0 | 80 |
</action> |
sl@0 | 81 |
</preactions> |
sl@0 | 82 |
|
sl@0 | 83 |
<passactions> |
sl@0 | 84 |
<action> |
sl@0 | 85 |
<actionname>Add applications</actionname> |
sl@0 | 86 |
<actiontype>AddApp</actiontype> |
sl@0 | 87 |
<actionbody> |
sl@0 | 88 |
<uid>24601</uid><appname>My application 1</appname> |
sl@0 | 89 |
<uid>642828</uid><appname>My application 2</appname> |
sl@0 | 90 |
<uid>12345</uid><appname>My application 3</appname> |
sl@0 | 91 |
<uid>10</uid><appname>My application 4</appname> |
sl@0 | 92 |
<uid>12</uid><appname>My application 5</appname> |
sl@0 | 93 |
</actionbody> |
sl@0 | 94 |
<actionresult> |
sl@0 | 95 |
<return>KErrNone</return> |
sl@0 | 96 |
</actionresult> |
sl@0 | 97 |
</action> |
sl@0 | 98 |
|
sl@0 | 99 |
<action> |
sl@0 | 100 |
<actionname>Getting the application list</actionname> |
sl@0 | 101 |
<actiontype>GetApplications</actiontype> |
sl@0 | 102 |
<actionbody> |
sl@0 | 103 |
<uid>24601</uid><appname>My application 1</appname> |
sl@0 | 104 |
<uid>642828</uid><appname>My application 2</appname> |
sl@0 | 105 |
<uid>12345</uid><appname>My application 3</appname> |
sl@0 | 106 |
<uid>10</uid><appname>My application 4</appname> |
sl@0 | 107 |
<uid>12</uid><appname>My application 5</appname> |
sl@0 | 108 |
</actionbody> |
sl@0 | 109 |
<actionresult> |
sl@0 | 110 |
<return>KErrNone</return> |
sl@0 | 111 |
</actionresult> |
sl@0 | 112 |
</action> |
sl@0 | 113 |
</passactions> |
sl@0 | 114 |
|
sl@0 | 115 |
<failactions> |
sl@0 | 116 |
<action> |
sl@0 | 117 |
<actionname>Add applications</actionname> |
sl@0 | 118 |
<actiontype>AddApp</actiontype> |
sl@0 | 119 |
<actionbody> |
sl@0 | 120 |
<uid>24601</uid><appname>My application 1</appname> |
sl@0 | 121 |
<uid>642828</uid><appname>My application 2</appname> |
sl@0 | 122 |
<uid>12345</uid><appname>My application 3</appname> |
sl@0 | 123 |
<uid>10</uid><appname>My application 4</appname> |
sl@0 | 124 |
<uid>12</uid><appname>My application 5</appname> |
sl@0 | 125 |
</actionbody> |
sl@0 | 126 |
<actionresult> |
sl@0 | 127 |
<return>KErrPermissionDenied</return> |
sl@0 | 128 |
</actionresult> |
sl@0 | 129 |
</action> |
sl@0 | 130 |
|
sl@0 | 131 |
<action> |
sl@0 | 132 |
<actionname>Getting the application list</actionname> |
sl@0 | 133 |
<actiontype>GetApplications</actiontype> |
sl@0 | 134 |
<actionbody> |
sl@0 | 135 |
</actionbody> |
sl@0 | 136 |
<actionresult> |
sl@0 | 137 |
<return>KErrNone</return> |
sl@0 | 138 |
</actionresult> |
sl@0 | 139 |
</action> |
sl@0 | 140 |
</failactions> |
sl@0 | 141 |
|
sl@0 | 142 |
<postactions> |
sl@0 | 143 |
<action> |
sl@0 | 144 |
<actionname>Destroy the manager</actionname> |
sl@0 | 145 |
<actiontype>DestroyManager</actiontype> |
sl@0 | 146 |
<actionbody></actionbody> |
sl@0 | 147 |
<actionresult> |
sl@0 | 148 |
<return>KErrNone</return> |
sl@0 | 149 |
</actionresult> |
sl@0 | 150 |
</action> |
sl@0 | 151 |
</postactions> |
sl@0 | 152 |
</actionbody> |
sl@0 | 153 |
<actionresult> |
sl@0 | 154 |
<return>KErrNone</return> |
sl@0 | 155 |
</actionresult> |
sl@0 | 156 |
</action> |
sl@0 | 157 |
|
sl@0 | 158 |
//! @file |
sl@0 | 159 |
//! @SYMTestCaseID Sec-tcertapps-apipolicing-5 |
sl@0 | 160 |
//! @SYMTestCaseDesc Test list not protected |
sl@0 | 161 |
//! @SYMREQ REQ3466 |
sl@0 | 162 |
//! @SYMTestCasePriority High |
sl@0 | 163 |
//! @SYMTestExpectedResults KErrNone |
sl@0 | 164 |
<action> |
sl@0 | 165 |
<actionname>Test list not protected</actionname> |
sl@0 | 166 |
<actiontype>policytest</actiontype> |
sl@0 | 167 |
<actionbody> |
sl@0 | 168 |
<testexe>t_certapps.exe</testexe> |
sl@0 | 169 |
<excludedcapabilities> |
sl@0 | 170 |
<capability>TCB</capability> |
sl@0 | 171 |
</excludedcapabilities> |
sl@0 | 172 |
<policy> |
sl@0 | 173 |
</policy> |
sl@0 | 174 |
|
sl@0 | 175 |
<preactions> |
sl@0 | 176 |
<action> |
sl@0 | 177 |
<actionname>Initialise</actionname> |
sl@0 | 178 |
<actiontype>InitManager</actiontype> |
sl@0 | 179 |
<actionbody> |
sl@0 | 180 |
</actionbody> |
sl@0 | 181 |
<actionresult> |
sl@0 | 182 |
<return>KErrNone</return> |
sl@0 | 183 |
</actionresult> |
sl@0 | 184 |
</action> |
sl@0 | 185 |
</preactions> |
sl@0 | 186 |
|
sl@0 | 187 |
<passactions> |
sl@0 | 188 |
<action> |
sl@0 | 189 |
<actionname>Getting the application list</actionname> |
sl@0 | 190 |
<actiontype>GetApplications</actiontype> |
sl@0 | 191 |
<actionbody> |
sl@0 | 192 |
<uid>24601</uid><appname>My application 1</appname> |
sl@0 | 193 |
<uid>642828</uid><appname>My application 2</appname> |
sl@0 | 194 |
<uid>12345</uid><appname>My application 3</appname> |
sl@0 | 195 |
<uid>10</uid><appname>My application 4</appname> |
sl@0 | 196 |
<uid>12</uid><appname>My application 5</appname> |
sl@0 | 197 |
</actionbody> |
sl@0 | 198 |
<actionresult> |
sl@0 | 199 |
<return>KErrNone</return> |
sl@0 | 200 |
</actionresult> |
sl@0 | 201 |
</action> |
sl@0 | 202 |
</passactions> |
sl@0 | 203 |
|
sl@0 | 204 |
<failactions> |
sl@0 | 205 |
</failactions> |
sl@0 | 206 |
|
sl@0 | 207 |
<postactions> |
sl@0 | 208 |
<action> |
sl@0 | 209 |
<actionname>Destroy the manager</actionname> |
sl@0 | 210 |
<actiontype>DestroyManager</actiontype> |
sl@0 | 211 |
<actionbody></actionbody> |
sl@0 | 212 |
<actionresult> |
sl@0 | 213 |
<return>KErrNone</return> |
sl@0 | 214 |
</actionresult> |
sl@0 | 215 |
</action> |
sl@0 | 216 |
</postactions> |
sl@0 | 217 |
</actionbody> |
sl@0 | 218 |
<actionresult> |
sl@0 | 219 |
<return>KErrNone</return> |
sl@0 | 220 |
</actionresult> |
sl@0 | 221 |
</action> |
sl@0 | 222 |
|
sl@0 | 223 |
//! @file |
sl@0 | 224 |
//! @SYMTestCaseID Sec-tcertapps-apipolicing-6 |
sl@0 | 225 |
//! @SYMTestCaseDesc Test remove protected by WriteDeviceData |
sl@0 | 226 |
//! @SYMREQ REQ3466 |
sl@0 | 227 |
//! @SYMTestCasePriority High |
sl@0 | 228 |
//! @SYMTestExpectedResults KErrNone |
sl@0 | 229 |
<action> |
sl@0 | 230 |
<actionname>Test remove protected by WriteDeviceData</actionname> |
sl@0 | 231 |
<actiontype>policytest</actiontype> |
sl@0 | 232 |
<actionbody> |
sl@0 | 233 |
<testexe>t_certapps.exe</testexe> |
sl@0 | 234 |
<excludedcapabilities> |
sl@0 | 235 |
<capability>TCB</capability> |
sl@0 | 236 |
</excludedcapabilities> |
sl@0 | 237 |
<policy> |
sl@0 | 238 |
<capability>WriteDeviceData</capability> |
sl@0 | 239 |
</policy> |
sl@0 | 240 |
|
sl@0 | 241 |
<preactions> |
sl@0 | 242 |
<action> |
sl@0 | 243 |
<actionname>Initialise</actionname> |
sl@0 | 244 |
<actiontype>InitManager</actiontype> |
sl@0 | 245 |
<actionbody> |
sl@0 | 246 |
</actionbody> |
sl@0 | 247 |
<actionresult> |
sl@0 | 248 |
<return>KErrNone</return> |
sl@0 | 249 |
</actionresult> |
sl@0 | 250 |
</action> |
sl@0 | 251 |
</preactions> |
sl@0 | 252 |
|
sl@0 | 253 |
<passactions> |
sl@0 | 254 |
<action> |
sl@0 | 255 |
<actionname>Remove application UID 24601</actionname> |
sl@0 | 256 |
<actiontype>RemoveApp</actiontype> |
sl@0 | 257 |
<actionbody> |
sl@0 | 258 |
<uid>24601</uid> |
sl@0 | 259 |
</actionbody> |
sl@0 | 260 |
<actionresult> |
sl@0 | 261 |
<return>KErrNone</return> |
sl@0 | 262 |
</actionresult> |
sl@0 | 263 |
</action> |
sl@0 | 264 |
|
sl@0 | 265 |
<action> |
sl@0 | 266 |
<actionname>Getting the application list</actionname> |
sl@0 | 267 |
<actiontype>GetApplications</actiontype> |
sl@0 | 268 |
<actionbody> |
sl@0 | 269 |
<uid>642828</uid><appname>My application 2</appname> |
sl@0 | 270 |
<uid>12345</uid><appname>My application 3</appname> |
sl@0 | 271 |
<uid>10</uid><appname>My application 4</appname> |
sl@0 | 272 |
<uid>12</uid><appname>My application 5</appname> |
sl@0 | 273 |
</actionbody> |
sl@0 | 274 |
<actionresult> |
sl@0 | 275 |
<return>KErrNone</return> |
sl@0 | 276 |
</actionresult> |
sl@0 | 277 |
</action> |
sl@0 | 278 |
</passactions> |
sl@0 | 279 |
|
sl@0 | 280 |
<failactions> |
sl@0 | 281 |
<action> |
sl@0 | 282 |
<actionname>Remove application UID 24601</actionname> |
sl@0 | 283 |
<actiontype>RemoveApp</actiontype> |
sl@0 | 284 |
<actionbody> |
sl@0 | 285 |
<uid>24601</uid> |
sl@0 | 286 |
</actionbody> |
sl@0 | 287 |
<actionresult> |
sl@0 | 288 |
<return>KErrPermissionDenied</return> |
sl@0 | 289 |
</actionresult> |
sl@0 | 290 |
</action> |
sl@0 | 291 |
|
sl@0 | 292 |
<action> |
sl@0 | 293 |
<actionname>Getting the application list</actionname> |
sl@0 | 294 |
<actiontype>GetApplications</actiontype> |
sl@0 | 295 |
<actionbody> |
sl@0 | 296 |
<uid>24601</uid><appname>My application 1</appname> |
sl@0 | 297 |
<uid>642828</uid><appname>My application 2</appname> |
sl@0 | 298 |
<uid>12345</uid><appname>My application 3</appname> |
sl@0 | 299 |
<uid>10</uid><appname>My application 4</appname> |
sl@0 | 300 |
<uid>12</uid><appname>My application 5</appname> |
sl@0 | 301 |
</actionbody> |
sl@0 | 302 |
<actionresult> |
sl@0 | 303 |
<return>KErrNone</return> |
sl@0 | 304 |
</actionresult> |
sl@0 | 305 |
</action> |
sl@0 | 306 |
</failactions> |
sl@0 | 307 |
|
sl@0 | 308 |
<postactions> |
sl@0 | 309 |
<action> |
sl@0 | 310 |
<actionname>Destroy the manager</actionname> |
sl@0 | 311 |
<actiontype>DestroyManager</actiontype> |
sl@0 | 312 |
<actionbody></actionbody> |
sl@0 | 313 |
<actionresult> |
sl@0 | 314 |
<return>KErrNone</return> |
sl@0 | 315 |
</actionresult> |
sl@0 | 316 |
</action> |
sl@0 | 317 |
</postactions> |
sl@0 | 318 |
</actionbody> |
sl@0 | 319 |
<actionresult> |
sl@0 | 320 |
<return>KErrNone</return> |
sl@0 | 321 |
</actionresult> |
sl@0 | 322 |
</action> |
sl@0 | 323 |
|
sl@0 | 324 |
//! @file |
sl@0 | 325 |
//! @SYMTestCaseID Sec-tcertapps-apipolicing-7 |
sl@0 | 326 |
//! @SYMTestCaseDesc Initialise |
sl@0 | 327 |
//! @SYMREQ REQ3466 |
sl@0 | 328 |
//! @SYMTestCasePriority High |
sl@0 | 329 |
//! @SYMTestExpectedResults KErrNone |
sl@0 | 330 |
<action> |
sl@0 | 331 |
<actionname>Initialise</actionname> |
sl@0 | 332 |
<actiontype>InitManager</actiontype> |
sl@0 | 333 |
<actionbody> |
sl@0 | 334 |
</actionbody> |
sl@0 | 335 |
<actionresult> |
sl@0 | 336 |
<return>KErrNone</return> |
sl@0 | 337 |
</actionresult> |
sl@0 | 338 |
</action> |
sl@0 | 339 |
|
sl@0 | 340 |
//! @file |
sl@0 | 341 |
//! @SYMTestCaseID Sec-tcertapps-apipolicing-8 |
sl@0 | 342 |
//! @SYMTestCaseDesc Clearing existing applications |
sl@0 | 343 |
//! @SYMREQ REQ3466 |
sl@0 | 344 |
//! @SYMTestCasePriority High |
sl@0 | 345 |
//! @SYMTestExpectedResults KErrNone |
sl@0 | 346 |
<action> |
sl@0 | 347 |
<actionname>Clearing existing applications</actionname> |
sl@0 | 348 |
<actiontype>ClearAllApps</actiontype> |
sl@0 | 349 |
<actionbody> |
sl@0 | 350 |
</actionbody> |
sl@0 | 351 |
<actionresult> |
sl@0 | 352 |
<return>KErrNone</return> |
sl@0 | 353 |
</actionresult> |
sl@0 | 354 |
</action> |
sl@0 | 355 |
|
sl@0 | 356 |
//! @file |
sl@0 | 357 |
//! @SYMTestCaseID Sec-tcertapps-apipolicing-9 |
sl@0 | 358 |
//! @SYMTestCaseDesc Destroy the manager |
sl@0 | 359 |
//! @SYMREQ REQ3466 |
sl@0 | 360 |
//! @SYMTestCasePriority High |
sl@0 | 361 |
//! @SYMTestExpectedResults KErrNone |
sl@0 | 362 |
<action> |
sl@0 | 363 |
<actionname>Destroy the manager</actionname> |
sl@0 | 364 |
<actiontype>DestroyManager</actiontype> |
sl@0 | 365 |
<actionbody> |
sl@0 | 366 |
</actionbody> |
sl@0 | 367 |
<actionresult> |
sl@0 | 368 |
<return>KErrNone</return> |
sl@0 | 369 |
</actionresult> |
sl@0 | 370 |
</action> |