|
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 // |
|
19 // test.script |
|
20 // |
|
21 //////////////////////////////////////////////////////////////////////////////////// |
|
22 LOAD_SUITE BURTestServer |
|
23 |
|
24 PRINT ---------------------------------------------- |
|
25 PRINT Test Increament |
|
26 PRINT ---------------------------------------------- |
|
27 RUN_UTILS DeleteDirectory c:\BackupArchive\ |
|
28 RUN_UTILS DeleteDirectory c:\private\0AB7E58F\ |
|
29 RUN_UTILS DeleteFile c:\publicbackup.xml |
|
30 RUN_UTILS MkDir c:\private\0AB7E58F\ |
|
31 RUN_UTILS CopyFile z:\testdata\scripts\sbetestdata\increamenttest.xml c:\private\0AB7E58F\backup_registration.xml |
|
32 RUN_UTILS MakeReadWrite c:\private\0AB7E58F\backup_registration.xml |
|
33 RUN_UTILS CopyFile c:\private\0AB7E58F\backup_registration.xml c:\private\0AB7E58F\needbackup.xml |
|
34 START_TESTCASE MTP-SBE-BACKUPBASE-0000 |
|
35 //! @SYMTestCaseID MTP-SBE-BACKUPBASE-0000 |
|
36 //! @SYMTestCaseDesc Backup 0AB7E58F |
|
37 //! @SYMPREQ 2492 |
|
38 //! @SYMTestStatus Released |
|
39 //! @SYMTestPriority High |
|
40 //! @SYMTestActions Specify 0AB7E58F need be backup |
|
41 //! @SYMTestExpectedResults no error |
|
42 //! @SYMTestType CIT |
|
43 RUN_TEST_STEP 100 BURTestServer TestBackup z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0080 |
|
44 END_TESTCASE MTP-SBE-BACKUPBASE-0000 |
|
45 |
|
46 RUN_UTILS DeleteFile c:\private\0AB7E58F\needbackup.xml |
|
47 RUN_UTILS CopyFile z:\testdata\scripts\sbetestdata\testbigfile.dat c:\private\0AB7E58F\needbackup.xml |
|
48 RUN_UTILS MakeReadWrite c:\private\0AB7E58F\needbackup.xml |
|
49 RUN_UTILS CopyFile c:\private\0AB7E58F\backup_registration.xml c:\publicbackup.xml |
|
50 START_TESTCASE MTP-SBE-BACKUPINCREAMENT-0010 |
|
51 //! @SYMTestCaseID MTP-SBE-BACKUPINCREAMENT-0010 |
|
52 //! @SYMTestCaseDesc Increament backup 0AB7E58F after some files changed |
|
53 //! @SYMPREQ 2492 |
|
54 //! @SYMTestStatus Released |
|
55 //! @SYMTestPriority High |
|
56 //! @SYMTestActions Specify 0AB7E58F need be backup |
|
57 //! @SYMTestExpectedResults no error |
|
58 //! @SYMTestType CIT |
|
59 RUN_TEST_STEP 100 BURTestServer TestBackup z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0090 |
|
60 END_TESTCASE MTP-SBE-BACKUPINCREAMENT-0010 |
|
61 |
|
62 RUN_UTILS DeleteFile c:\publicbackup.xml |
|
63 RUN_UTILS DeleteFile c:\private\0AB7E58F\needbackup.xml |
|
64 START_TESTCASE MTP-SBE-RESTOREINCREAMENT-0020 |
|
65 //! @SYMTestCaseID MTP-SBE-RESTOREINCREAMENT-0020 |
|
66 //! @SYMTestCaseDesc Increament restore |
|
67 //! @SYMPREQ 2492 |
|
68 //! @SYMTestStatus Released |
|
69 //! @SYMTestPriority High |
|
70 //! @SYMTestActions Specify 0AB7E58F need be increament restore |
|
71 //! @SYMTestExpectedResults no error |
|
72 //! @SYMTestType CIT |
|
73 RUN_TEST_STEP 500 BURTestServer TestRestore z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0090 |
|
74 END_TESTCASE MTP-SBE-RESTOREINCREAMENT-0020 |
|
75 |
|
76 RUN_UTILS DeleteFile c:\private\0AB7E58F\needbackup.xml |
|
77 RUN_UTILS DeleteFile c:\BackupArchive\AB7E58F\C\Passive\Base\data.bkp |
|
78 START_TESTCASE MTP-SBE-INVALIDDATARESTORE-0030 |
|
79 //! @SYMTestCaseID MTP-SBE-INVALIDDATARESTORE-0030 |
|
80 //! @SYMTestCaseDesc Increament restore with invalid data store |
|
81 //! @SYMPREQ 2492 |
|
82 //! @SYMTestStatus Released |
|
83 //! @SYMTestPriority High |
|
84 //! @SYMTestActions Delete some data store data and try restore |
|
85 //! @SYMTestExpectedResults no error and SBE do nothing |
|
86 //! @SYMTestType CIT |
|
87 RUN_TEST_STEP 500 BURTestServer TestRestore z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0090 |
|
88 END_TESTCASE MTP-SBE-INVALIDDATARESTORE-0030 |
|
89 |
|
90 RUN_UTILS DeleteDirectory c:\private\0AB7E58F\ |
|
91 START_TESTCASE MTP-SBE-ACTIVEBASEBACKUP-0040 |
|
92 //! @SYMTestCaseID MTP-SBE-ACTIVEBASEBACKUP-0040 |
|
93 //! @SYMTestCaseDesc Backup an active data owner |
|
94 //! @SYMPREQ 2492 |
|
95 //! @SYMTestStatus Released |
|
96 //! @SYMTestPriority High |
|
97 //! @SYMTestActions Specify active data owner need be backup |
|
98 //! @SYMTestExpectedResults no error |
|
99 //! @SYMTestType CIT |
|
100 RUN_TEST_STEP 100 BURTestServer TestBackup z:\testdata\scripts\sbetestdata\test.ini INC_BACKUP_RESTORE_0010 |
|
101 END_TESTCASE MTP-SBE-ACTIVEBASEBACKUP-0040 |
|
102 |
|
103 START_TESTCASE MTP-SBE-ACTIVEINCBACKUP-0050 |
|
104 //! @SYMTestCaseID MTP-SBE-ACTIVEINCBACKUP-0050 |
|
105 //! @SYMTestCaseDesc Increament backup an active data owner |
|
106 //! @SYMPREQ 2492 |
|
107 //! @SYMTestStatus Released |
|
108 //! @SYMTestPriority High |
|
109 //! @SYMTestActions Specify active data owner need be backup |
|
110 //! @SYMTestExpectedResults no error |
|
111 //! @SYMTestType CIT |
|
112 RUN_TEST_STEP 100 BURTestServer TestBackup z:\testdata\scripts\sbetestdata\test.ini INC_BACKUP_RESTORE_0020 |
|
113 END_TESTCASE MTP-SBE-ACTIVEINCBACKUP-0050 |
|
114 |
|
115 START_TESTCASE MTP-SBE-ACTIVEBASERESTORE-0060 |
|
116 //! @SYMTestCaseID MTP-SBE-ACTIVEBASERESTORE-0060 |
|
117 //! @SYMTestCaseDesc Base restore |
|
118 //! @SYMPREQ 2492 |
|
119 //! @SYMTestStatus Released |
|
120 //! @SYMTestPriority High |
|
121 //! @SYMTestActions Specify the active data owner need be base restore |
|
122 //! @SYMTestType CIT |
|
123 RUN_TEST_STEP 500 BURTestServer TestRestore z:\testdata\scripts\sbetestdata\test.ini INC_BACKUP_RESTORE_0010 |
|
124 END_TESTCASE MTP-SBE-ACTIVEBASERESTORE-0060 |
|
125 |
|
126 START_TESTCASE MTP-SBE-ACTIVEINCRESTORE-0070 |
|
127 //! @SYMTestCaseID MTP-SBE-ACTIVEINCRESTORE-0070 |
|
128 //! @SYMTestCaseDesc Increament restore |
|
129 //! @SYMPREQ 2492 |
|
130 //! @SYMTestStatus Released |
|
131 //! @SYMTestPriority High |
|
132 //! @SYMTestActions Specify the active data owner need be increament restore |
|
133 //! @SYMTestType CIT |
|
134 RUN_TEST_STEP 500 BURTestServer TestRestore z:\testdata\scripts\sbetestdata\test.ini INC_BACKUP_RESTORE_0020 |
|
135 END_TESTCASE MTP-SBE-ACTIVEINCRESTORE-0070 |