|
1 /** |
|
2 * Copyright (c) 2004-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 |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @released |
|
23 */ |
|
24 |
|
25 #ifndef __T_BUR_TEST_SERVER_H__ |
|
26 #define __T_BUR_TEST_SERVER_H__ |
|
27 |
|
28 #include <test/testexecuteserverbase.h> |
|
29 |
|
30 namespace bur_ts |
|
31 { |
|
32 |
|
33 class CBURTestServer : public CTestServer |
|
34 /** |
|
35 CBURTestServer implements the Backup and Restore Test Server. The Test Server is based |
|
36 on the TestExecute Framework (TEF). |
|
37 |
|
38 When running the Test Server, the TestExecute scipts must specify: |
|
39 |
|
40 LOAD_SUITE BURTestServer |
|
41 |
|
42 This server handles two types of test steps only:\n |
|
43 - TestBackup\n |
|
44 - TestRestore |
|
45 |
|
46 Each test step must carry an ini file listing parameters:\n |
|
47 1. BackupDir=full path of the directory\n |
|
48 The directory to be used for |
|
49 - storing the backup data during a backup operation, or for |
|
50 - retrieving the backup data from during a restore. |
|
51 |
|
52 2. IsPartial=<[0|1]>\n |
|
53 Whether to carry out a partial backup and restore or a full one. |
|
54 |
|
55 3. IsIncremental=<[0|1]>\n |
|
56 Whether to carry out a base back up and restore or an incremental one. |
|
57 |
|
58 4. DriveList=a list of drive letters without spaces\n |
|
59 The drives to be backed up. |
|
60 |
|
61 This ini file must be specifed in the test script for each indiviudal test step, e.g., |
|
62 |
|
63 RUN_TEST_STEP 100 BURTestServer TestBackup c:\\TestScripts\\mySettings.ini |
|
64 |
|
65 @released |
|
66 @internalComponent |
|
67 */ |
|
68 { |
|
69 |
|
70 public: |
|
71 static CBURTestServer* NewL(); |
|
72 ~CBURTestServer(); |
|
73 |
|
74 virtual CTestStep* CreateTestStep(const TDesC& aStepName); |
|
75 }; |
|
76 } |
|
77 |
|
78 #endif // __T_BUR_TEST_SERVER_H__ |