|
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 ////////////////////////////////////////////////////////////////////////////////////// |
|
17 // |
|
18 // test.script |
|
19 // |
|
20 //////////////////////////////////////////////////////////////////////////////////// |
|
21 LOAD_SUITE BURTestServer |
|
22 |
|
23 DELAY 120000 |
|
24 |
|
25 PRINT ---------------------------------------------- |
|
26 PRINT Test Backup Restore |
|
27 PRINT ---------------------------------------------- |
|
28 RUN_UTILS DeleteDirectory C:\BackupArchive\ |
|
29 START_TESTCASE MTP-SBE-BACKUPPARTIALBASE-0000 |
|
30 //! @SYMTestCaseID MTP-SBE-BACKUPPARTIALBASE-0000 |
|
31 //! @SYMTestCaseDesc Backup with partial and base |
|
32 //! @SYMPREQ 2492 |
|
33 //! @SYMTestStatus Released |
|
34 //! @SYMTestPriority High |
|
35 //! @SYMTestActions Specify ini file for base and partial backup |
|
36 //! @SYMTestExpectedResults no error |
|
37 //! @SYMTestType CIT |
|
38 RUN_TEST_STEP 100 BURTestServer TestBackup z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0010 |
|
39 END_TESTCASE MTP-SBE-BACKUPPARTIALBASE-0000 |
|
40 |
|
41 START_TESTCASE MTP-SBE-RESTOREPARTIALBASE-0001 |
|
42 //! @SYMTestCaseID MTP-SBE-RESTOREPARTIALBASE-0001 |
|
43 //! @SYMTestCaseDesc restore with partial and base |
|
44 //! @SYMPREQ 2492 |
|
45 //! @SYMTestStatus Released |
|
46 //! @SYMTestPriority High |
|
47 //! @SYMTestActions Specify ini file for base and partial restore |
|
48 //! @SYMTestExpectedResults no error |
|
49 //! @SYMTestType CIT |
|
50 RUN_TEST_STEP 100 BURTestServer TestRestore z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0010 |
|
51 END_TESTCASE MTP-SBE-RESTOREPARTIALBASE-0001 |
|
52 |
|
53 START_TESTCASE MTP-SBE-BACKUPPARTIAL-0002 |
|
54 //! @SYMTestCaseID MTP-SBE-BACKUPPARTIAL-0002 |
|
55 //! @SYMTestCaseDesc Backup with partial and increament |
|
56 //! @SYMPREQ 2492 |
|
57 //! @SYMTestStatus Released |
|
58 //! @SYMTestPriority High |
|
59 //! @SYMTestActions Specify ini file for increament and partial backup |
|
60 //! @SYMTestExpectedResults no error |
|
61 //! @SYMTestType CIT |
|
62 RUN_TEST_STEP 100 BURTestServer TestBackup z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0020 |
|
63 END_TESTCASE MTP-SBE-BACKUPPARTIAL-0002 |
|
64 |
|
65 START_TESTCASE MTP-SBE-RESTOREPARTIAL-0003 |
|
66 //! @SYMTestCaseID MTP-SBE-RESTOREPARTIAL-0003 |
|
67 //! @SYMTestCaseDesc Restore with partial and increament |
|
68 //! @SYMPREQ 2492 |
|
69 //! @SYMTestStatus Released |
|
70 //! @SYMTestPriority High |
|
71 //! @SYMTestActions Specify ini file for increament and partial restore |
|
72 //! @SYMTestExpectedResults no error |
|
73 //! @SYMTestType CIT |
|
74 RUN_TEST_STEP 100 BURTestServer TestRestore z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0020 |
|
75 END_TESTCASE MTP-SBE-RESTOREPARTIAL-0003 |
|
76 |
|
77 START_TESTCASE MTP-SBE-BACKUPFULLBASE-0004 |
|
78 //! @SYMTestCaseID MTP-SBE-BACKUPFULLBASE-0004 |
|
79 //! @SYMTestCaseDesc Backup with full and base |
|
80 //! @SYMPREQ 2492 |
|
81 //! @SYMTestStatus Released |
|
82 //! @SYMTestPriority High |
|
83 //! @SYMTestActions Specify ini file for full and base backup |
|
84 //! @SYMTestExpectedResults no error |
|
85 //! @SYMTestType CIT |
|
86 RUN_TEST_STEP 500 BURTestServer TestBackup z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0030 |
|
87 END_TESTCASE MTP-SBE-BACKUPFULLBASE-0004 |
|
88 |
|
89 START_TESTCASE MTP-SBE-RESTOREFULLBASE-0005 |
|
90 //! @SYMTestCaseID MTP-SBE-RESTOREFULLBASE-0005 |
|
91 //! @SYMTestCaseDesc Restore with full and base |
|
92 //! @SYMPREQ 2492 |
|
93 //! @SYMTestStatus Released |
|
94 //! @SYMTestPriority High |
|
95 //! @SYMTestActions Specify ini file for full and base restore |
|
96 //! @SYMTestExpectedResults no error |
|
97 //! @SYMTestType CIT |
|
98 RUN_TEST_STEP 500 BURTestServer TestRestore z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0030 |
|
99 END_TESTCASE MTP-SBE-RESTOREFULLBASE-0005 |
|
100 |
|
101 START_TESTCASE MTP-SBE-BACKUPFULL-0006 |
|
102 //! @SYMTestCaseID MTP-SBE-BACKUPFULL-0006 |
|
103 //! @SYMTestCaseDesc Backup with full and increament |
|
104 //! @SYMPREQ 2492 |
|
105 //! @SYMTestStatus Released |
|
106 //! @SYMTestPriority High |
|
107 //! @SYMTestActions Specify ini file for full and increament backup |
|
108 //! @SYMTestExpectedResults no error |
|
109 //! @SYMTestType CIT |
|
110 RUN_TEST_STEP 500 BURTestServer TestBackup z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0040 |
|
111 END_TESTCASE MTP-SBE-BACKUPFULL-0006 |
|
112 |
|
113 START_TESTCASE MTP-SBE-RESTOREFULL-0007 |
|
114 //! @SYMTestCaseID MTP-SBE-RESTOREFULL-0007 |
|
115 //! @SYMTestCaseDesc Restore with full and increament |
|
116 //! @SYMPREQ 2492 |
|
117 //! @SYMTestStatus Released |
|
118 //! @SYMTestPriority High |
|
119 //! @SYMTestActions Specify ini file for full and increament restore |
|
120 //! @SYMTestExpectedResults no error |
|
121 //! @SYMTestType CIT |
|
122 RUN_TEST_STEP 500 BURTestServer TestRestore z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0040 |
|
123 END_TESTCASE MTP-SBE-RESTOREFULL-0007 |
|
124 |
|
125 RUN_UTILS DeleteFile c:\sbetest1.txt |
|
126 RUN_UTILS DeleteFile c:\sbetest2.txt |
|
127 RUN_UTILS CopyFile z:\testdata\scripts\sbetestdata\increamenttest.xml c:\sbetest1.txt |
|
128 RUN_UTILS CopyFile z:\testdata\scripts\sbetestdata\increamenttest.xml c:\sbetest2.txt |
|
129 RUN_UTILS MakeReadWrite c:\sbetest1.txt |
|
130 RUN_UTILS MakeReadWrite c:\sbetest2.txt |
|
131 START_TESTCASE MTP-SBE-BACKUPPARTIALBASE-0008 |
|
132 //! @SYMTestCaseID MTP-SBE-BACKUPPARTIALBASE-0008 |
|
133 //! @SYMTestCaseDesc Do passive backup for a data owner which has a very complex backup registration file |
|
134 //! @SYMPREQ 2492 |
|
135 //! @SYMTestStatus Released |
|
136 //! @SYMTestPriority high |
|
137 //! @SYMTestActions Do passive backup for a data owner which has a very complex backup registration file |
|
138 //! @SYMTestExpectedResults Backup succeeds |
|
139 //! @SYMTestType CIT |
|
140 RUN_TEST_STEP 500 BURTestServer TestBackup z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0100 |
|
141 END_TESTCASE MTP-SBE-BACKUPPARTIALBASE-0008 |
|
142 |
|
143 START_TESTCASE MTP-SBE-BACKUPPARTIALBASE-0010 |
|
144 //! @SYMTestCaseID MTP-SBE-BACKUPPARTIALBASE-0010 |
|
145 //! @SYMTestCaseDesc Do passive backup for a data owner with a invalid drive list |
|
146 //! @SYMPREQ 2492 |
|
147 //! @SYMTestStatus Released |
|
148 //! @SYMTestPriority high |
|
149 //! @SYMTestActions Do passive backup for a data owner with a invalid drive list |
|
150 //! @SYMTestExpectedResults Backup fails with error code -1 |
|
151 //! @SYMTestType CIT |
|
152 RUN_TEST_STEP 500 BURTestServer TestBackup z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0110 |
|
153 END_TESTCASE MTP-SBE-BACKUPPARTIALBASE-0010 |
|
154 |
|
155 START_TESTCASE MTP-SBE-BACKUPPARTIALBASE-0012 |
|
156 //! @SYMTestCaseID MTP-SBE-BACKUPPARTIALBASE-0012 |
|
157 //! @SYMTestCaseDesc Do passive backup with abnormal operation sequence |
|
158 //! @SYMPREQ 2492 |
|
159 //! @SYMTestStatus Released |
|
160 //! @SYMTestPriority high |
|
161 //! @SYMTestActions Do passive backup with abnormal operation sequence |
|
162 //! @SYMTestExpectedResults Backup fails with error code -21 |
|
163 //! @SYMTestType CIT |
|
164 RUN_TEST_STEP 500 BURTestServer TestBackup2 z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0120 |
|
165 END_TESTCASE MTP-SBE-BACKUPPARTIALBASE-0012 |