|
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 LOAD_SUITE Te_PerformanceFunctionalitySuite |
|
18 |
|
19 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81107 |
|
20 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81107 |
|
21 //! @SYMTestType CIT |
|
22 //! @SYMTestPriority High |
|
23 //! @SYMPREQ 811 |
|
24 //! @SYMTestCaseDesc Low Disk space Test |
|
25 //! @SYMTestActions Simulate disk being full (Create a file that is the same size as the free space available on the disk) |
|
26 //! Attempt various CRUD requests (create, read, update and delete) |
|
27 //! Attempt Compress, recover |
|
28 //! Trap all these api calls |
|
29 //! Store leave value in X |
|
30 //! Repeat test when the disk is no longer full |
|
31 //! @SYMTestExpectedResults For CUD, compress and recover requests X should equal Disk full error |
|
32 //! For read requests X should equal no error (KErrNone) |
|
33 RUN_TEST_STEP 500 Te_PerformanceFunctionalitySuite LowDiskSpaceStep c:\PerformanceFunc\configs\te_PerformanceFunctionalitySuite.ini |
|
34 RUN_TEST_STEP 100 Te_PerformanceFunctionalitySuite LowDiskSpaceStep c:\PerformanceFunc\configs\te_PerformanceFunctionalitySuite.ini cleanup |
|
35 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81107 |
|
36 |
|
37 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81172 |
|
38 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81172 |
|
39 //! @SYMTestType CIT |
|
40 //! @SYMTestPriority High |
|
41 //! @SYMREQ |
|
42 //! REQ5405 |
|
43 //! REQ5406 |
|
44 //! REQ5400 |
|
45 //! @SYMTestCaseDesc Transaction commit low disk test |
|
46 //! @SYMTestActions |
|
47 //! start transaction |
|
48 //! add new contacts Y |
|
49 //! transition to lowdisk mode |
|
50 //! add new contact X |
|
51 //! commit transaction |
|
52 //! @SYMTestExpectedResults |
|
53 //! check that commit successful, |
|
54 //! check that only Y contact were added to the database, |
|
55 //! It is possible commit a transaction if in low disk mode, |
|
56 //! correct error is returned if performing crud operations |
|
57 //! within a transaction while in low disk mode |
|
58 RUN_TEST_STEP 200 Te_PerformanceFunctionalitySuite LowDiskSpaceStep c:\PerformanceFunc\configs\te_PerformanceFunctionalitySuite.ini FailCommitTransaction |
|
59 RUN_TEST_STEP 100 Te_PerformanceFunctionalitySuite LowDiskSpaceStep c:\PerformanceFunc\configs\te_PerformanceFunctionalitySuite.ini cleanup |
|
60 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81172 |
|
61 |
|
62 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81173 |
|
63 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81173 |
|
64 //! @SYMTestType CIT |
|
65 //! @SYMTestPriority High |
|
66 //! @SYMREQ |
|
67 //! REQ5405 |
|
68 //! REQ5406 |
|
69 //! REQ5400 |
|
70 //! @SYMTestCaseDesc Transaction rollback low disk test |
|
71 //! @SYMTestActions |
|
72 //! start transaction |
|
73 //! add new contacts Y |
|
74 //! transition to lowdisk mode |
|
75 //! add new contact X |
|
76 //! rollback transaction |
|
77 //! @SYMTestExpectedResults |
|
78 //! check that commit successful, check that no contact were added to the database, |
|
79 //! It is possible to rollback a transaction if in low disk mode, |
|
80 //! correct error is returned if performing crud operations |
|
81 //! within a transaction while in low disk mode |
|
82 RUN_TEST_STEP 200 Te_PerformanceFunctionalitySuite LowDiskSpaceStep c:\PerformanceFunc\configs\te_PerformanceFunctionalitySuite.ini FailRollbackTransaction |
|
83 RUN_TEST_STEP 100 Te_PerformanceFunctionalitySuite LowDiskSpaceStep c:\PerformanceFunc\configs\te_PerformanceFunctionalitySuite.ini cleanup |
|
84 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81173 |
|
85 |
|
86 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81174 |
|
87 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81174 |
|
88 //! @SYMTestType CIT |
|
89 //! @SYMTestPriority High |
|
90 //! @SYMFssID <App-Engines>/<CntModel>/ CP.1 |
|
91 //! @SYMTestCaseDesc Load contact server in low disk test |
|
92 //! @SYMTestActions |
|
93 //! close all sessions to server |
|
94 //! wait for server to close |
|
95 //! transition to low disk mode |
|
96 //! open new session |
|
97 //! check that new session was opened successfully |
|
98 //! @SYMTestExpectedResults |
|
99 //! check that new session was opened successfully and no errors were generated, |
|
100 //! It is possible to start the contact model server while in low disk mode |
|
101 RUN_TEST_STEP 200 Te_PerformanceFunctionalitySuite LowDiskSpaceStep c:\PerformanceFunc\configs\te_PerformanceFunctionalitySuite.ini StartServer |
|
102 RUN_TEST_STEP 100 Te_PerformanceFunctionalitySuite LowDiskSpaceStep c:\PerformanceFunc\configs\te_PerformanceFunctionalitySuite.ini cleanup |
|
103 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81174 |