|
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 // ReadUserData capability tests |
|
17 LOAD_SUITE TestBookmarksServer_Cap -SharedData |
|
18 |
|
19 START_TESTCASE IWS-APPPROT-BM-PREQ171-I-0017-HP-0004 |
|
20 //ReadUserData_Manager_Mode_Not_Allowed |
|
21 |
|
22 //! @file Cap_00000000_TestBookmarks.script |
|
23 //! @SYMTestCaseID IWS-APPPROT-BM-PREQ171-I-0017-HP-0004 |
|
24 //! @SYMTestCaseDesc Should not be able to open the database in manager mode when the application does not have WriteUserData |
|
25 //! @SYMFssID Application-Protocols/Bookmarks/VISIBILITY.1, Application-Protocols/Bookmarks/VISIBILITY.2 |
|
26 //! @SYMTestStatus Released |
|
27 //! @SYMTestPriority High |
|
28 //! @SYMTestActions 1. Try to open DB in manager mode when application has ReadUserData capability. |
|
29 //! @SYMTestExpectedResults The OpenL function must leave with KErrPermissionDenied. |
|
30 //! @SYMTestType Integration |
|
31 RUN_TEST_STEP !Error=-46 100 TestBookmarksServer_Cap TestBookmarksBaseStep c:\testdata\ini\TestBookmarksSuite_Security.ini Db_Open_Manager_Mode |
|
32 END_TESTCASE IWS-APPPROT-BM-PREQ171-I-0017-HP-0004 |
|
33 |
|
34 START_TESTCASE IWS-APPPROT-BM-PREQ171-I-0017-HP-0005 |
|
35 //ReadUserData_Create_Item_Not_Allowed |
|
36 |
|
37 //! @file Cap_00000000_TestBookmarks.script |
|
38 //! @SYMTestCaseID IWS-APPPROT-BM-PREQ171-I-0017-HP-0005 |
|
39 //! @SYMTestCaseDesc Should not be able to create a new item when application does not have WriteUserData capability. |
|
40 //! @SYMFssID Application-Protocols/Bookmarks/VISIBILITY.1, Application-Protocols/Bookmarks/VISIBILITY.2 |
|
41 //! @SYMTestStatus Released |
|
42 //! @SYMTestPriority High |
|
43 //! @SYMTestActions 1. Try to create an item ( Folder or Bookmark ) when application has ReadUserData capability. |
|
44 //! @SYMTestExpectedResults The CreateFolderL & CreateBookmarkL functions must leave with KErrPermissionDenied. |
|
45 //! @SYMTestType Integration |
|
46 RUN_TEST_STEP !Error=-46 100 TestBookmarksServer_Cap TestCreateBookmarkItemsStep c:\testdata\ini\TestBookmarksSuite.ini MyTestFolder |
|
47 RUN_TEST_STEP !Error=-46 100 TestBookmarksServer_Cap TestCreateBookmarkItemsStep c:\testdata\ini\TestBookmarksSuite.ini MyTestBookmark |
|
48 END_TESTCASE IWS-APPPROT-BM-PREQ171-I-0017-HP-0005 |
|
49 |
|
50 START_TESTCASE IWS-APPPROT-BM-PREQ171-I-0041-HP-0001 |
|
51 //All_Items_Readable_By_ReadUserData_App |
|
52 |
|
53 //! @file Cap_00008000_TestBookmarks.script |
|
54 //! @SYMTestCaseID IWS-APPPROT-BM-PREQ171-I-0041-HP-0001 |
|
55 //! @SYMTestCaseDesc All items must be readable by an application that has ReadUserData |
|
56 //! @SYMFssID Application-Protocols/Bookmarks/ITEMDATA.7 |
|
57 //! @SYMTestStatus Released |
|
58 //! @SYMTestPriority High |
|
59 //! @SYMTestActions 1. Get the description of a writeable folder when the application has ReadUserData |
|
60 //! 2. Get the title of a read-only bookmark when the application has ReadUserData |
|
61 //! 3. Get the visibility of a read-only folder when the application has ReadUserData |
|
62 //! 4. Get the writeability of a read-only folder when the application has ReadUserData |
|
63 //! @SYMTestExpectedResults All items must be readable by an application that has ReadUserData |
|
64 //! @SYMTestType Integration |
|
65 RUN_TEST_STEP 100 TestBookmarksServer_Cap TestGetPropertyStep c:\testdata\ini\TestBookmarksSuite_Security.ini Folder2_GetDescription |
|
66 RUN_TEST_STEP 100 TestBookmarksServer_Cap TestGetPropertyStep c:\testdata\ini\TestBookmarksSuite_Security.ini Bookmark1_GetTitle |
|
67 RUN_TEST_STEP 100 TestBookmarksServer_Cap TestGetPropertyStep c:\testdata\ini\TestBookmarksSuite_Security.ini Folder4_GetPublic_True |
|
68 RUN_TEST_STEP 100 TestBookmarksServer_Cap TestGetPropertyStep c:\testdata\ini\TestBookmarksSuite_Security.ini Folder4_GetWriteable_False |
|
69 END_TESTCASE IWS-APPPROT-BM-PREQ171-I-0041-HP-0001 |
|
70 |
|
71 |
|
72 START_TESTCASE IWS-APPPROT-BM-PREQ171-I-0056-HP-0001 |
|
73 //Set_Last_Visited_ReadUserData |
|
74 |
|
75 //! @file Cap_00008000_TestBookmarks.script |
|
76 //! @SYMTestCaseID IWS-APPPROT-BM-PREQ171-I-0056-HP-0001 |
|
77 //! @SYMTestCaseDesc Set last visited time when application does not have required capabilities |
|
78 //! @SYMFssID Application-Protocols/Bookmarks/BOOKMARK.5 |
|
79 //! @SYMTestStatus Released |
|
80 //! @SYMTestPriority High |
|
81 //! @SYMTestActions 1. Set the last visited time of a bookmark when the application has only ReadUserData |
|
82 //! @SYMTestExpectedResults The operation must fail with KErrPermissionDenied |
|
83 //! @SYMTestType Integration |
|
84 RUN_TEST_STEP !Error=-46 100 TestBookmarksServer_Cap TestSetPropertyStep c:\testdata\ini\TestBookmarksSuite_Security.ini Bookmark1_SetLastVisitedNotManagerMode |
|
85 END_TESTCASE IWS-APPPROT-BM-PREQ171-I-0056-HP-0001 |
|
86 |
|
87 START_TESTCASE IWS-APPPROT-BM-CAP_00008000_TESTBOOKMARKS-0001 |
|
88 //Set_Last_Modified_ReadUserData |
|
89 |
|
90 //! @file Cap_00008000_TestBookmarks.script |
|
91 //! @SYMTestCaseID IWS-APPPROT-BM-CAP_00008000_TESTBOOKMARKS-0001 |
|
92 //! @SYMTestCaseDesc Set last visited time when application does not have required capabilities |
|
93 //! @SYMFssID |
|
94 //! @SYMTestStatus Released |
|
95 //! @SYMTestPriority High |
|
96 //! @SYMTestActions 1. Set the last modified time of a bookmark when the application has only ReadUserData |
|
97 //! @SYMTestExpectedResults The operation must fail with KErrPermissionDenied |
|
98 //! @SYMTestType Integration |
|
99 RUN_TEST_STEP !Error=-46 100 TestBookmarksServer_Cap TestSetPropertyStep c:\testdata\ini\TestBookmarksSuite_Security.ini Bookmark1_SetLastModifiedNotManagerMode |
|
100 END_TESTCASE IWS-APPPROT-BM-CAP_00008000_TESTBOOKMARKS-0001 |