55
|
1 |
// Copyright (c) 2010 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 |
//! @file
|
|
17 |
//! @SYMTestSuiteName SYSLIB-CENTRALREPOSITORY-TE_CENTREP_BURSUITE
|
|
18 |
//! @SYMScriptTestEnvironment this script requires Techview ROM for BURTestserver dependency. BURTestserver must be built for this test to run.
|
|
19 |
//! @internalComponent
|
|
20 |
//! @test
|
|
21 |
|
|
22 |
|
|
23 |
PRINT Run te_centrep_bursuite_pma.script Tests
|
|
24 |
|
|
25 |
LOAD_SUITE te_centrep_BURSuite
|
|
26 |
LOAD_SUITE te_centrep_burobserversuite -SharedData
|
|
27 |
LOAD_SUITE BURTestServer
|
|
28 |
|
|
29 |
// Create spoof SID and copy backup registration file
|
|
30 |
|
|
31 |
RUN_UTILS MkDir c:\private\
|
|
32 |
RUN_UTILS MkDir c:\private\0AB7E57C\
|
|
33 |
RUN_UTILS CopyFile z:\TEF_CentralRepository\backup_registration.xml c:\private\0AB7E57C\backup_registration.xml
|
|
34 |
|
|
35 |
RUN_PROGRAM t_deletefileallfiles.exe c:\private\10202be9\persists\protected\f1000200.*
|
|
36 |
RUN_PROGRAM t_deletefileallfiles.exe c:\private\10202be9\persists\f1000200.*
|
|
37 |
RUN_PROGRAM t_killprocess.exe centralrepositorysrv
|
|
38 |
DELAY 2000
|
|
39 |
|
|
40 |
START_TESTCASE PDS-CENTRALREPOSITORY-CT-4131 //Modify
|
|
41 |
//! @SYMTestCaseID PDS-CENTRALREPOSITORY-CT-4131
|
|
42 |
//! @SYMTestCaseDesc Test Backup & Restore functionality, when repository modified
|
|
43 |
//! @SYMTestPriority High
|
|
44 |
//! @SYMTestActions Create repository, backup, modify, restore, check values
|
|
45 |
//! @SYMTestExpectedResults Repository should not be backed-up therefore restore should not have any effect.
|
|
46 |
|
|
47 |
RUN_TEST_STEP 300 te_centrep_BURSuite initialisePMAStep
|
|
48 |
RUN_TEST_STEP -1 BURTestServer TestBackup z:\TEF_CentralRepository\PMA_BUR.ini test1
|
|
49 |
RUN_TEST_STEP 100 te_centrep_BURSuite modifyPMAStep
|
|
50 |
RUN_TEST_STEP -1 BURTestServer TestRestore z:\TEF_CentralRepository\PMA_BUR.ini test1
|
|
51 |
RUN_TEST_STEP 100 te_centrep_BURSuite comparePMAStep z:\TEF_CentralRepository\PMA_BUR.ini step1
|
|
52 |
END_TESTCASE PDS-CENTRALREPOSITORY-CT-4131 //Modify
|
|
53 |
|
|
54 |
RUN_PROGRAM t_deletefileallfiles.exe c:\private\10202be9\persists\protected\f1000200.*
|
|
55 |
RUN_PROGRAM t_killprocess.exe centralrepositorysrv
|
|
56 |
DELAY 2000
|
|
57 |
|
|
58 |
START_TESTCASE PDS-CENTRALREPOSITORY-CT-4132 //Delete
|
|
59 |
//! @SYMTestCaseID PDS-CENTRALREPOSITORY-CT-4132
|
|
60 |
//! @SYMTestCaseDesc Test Backup & Restore functionality, when repository deleted
|
|
61 |
//! @SYMTestPriority High
|
|
62 |
//! @SYMTestActions Create repository, backup, delete, restore, check values
|
|
63 |
//! @SYMTestExpectedResults Repository should not be backed-up therefore restore should not restored the missing repository.
|
|
64 |
|
|
65 |
RUN_TEST_STEP 300 te_centrep_BURSuite initialisePMAStep
|
|
66 |
RUN_TEST_STEP -1 BURTestServer TestBackup z:\TEF_CentralRepository\PMA_BUR.ini test1
|
|
67 |
RUN_PROGRAM t_deletefileallfiles.exe c:\private\10202be9\persists\protected\f1000200.*
|
|
68 |
//Delay to make sure that cache has been emptied.
|
|
69 |
DELAY 8000
|
|
70 |
RUN_TEST_STEP -1 BURTestServer TestRestore z:\TEF_CentralRepository\PMA_BUR.ini test1
|
|
71 |
RUN_TEST_STEP 100 te_centrep_BURSuite comparePMAStep z:\TEF_CentralRepository\PMA_BUR.ini step2
|
|
72 |
END_TESTCASE PDS-CENTRALREPOSITORY-CT-4132 //Delete
|
|
73 |
|
|
74 |
RUN_PROGRAM t_deletefileallfiles.exe c:\private\10202be9\persists\protected\f1000200.*
|
|
75 |
RUN_PROGRAM t_killprocess.exe centralrepositorysrv
|
|
76 |
DELAY 2000
|
|
77 |
|
|
78 |
START_TESTCASE PDS-CENTRALREPOSITORY-CT-4133 //Restore
|
|
79 |
//! @SYMTestCaseID PDS-CENTRALREPOSITORY-CT-4133
|
|
80 |
//! @SYMTestCaseDesc Test Backup & Restore functionality, try to restore a repository that exists in PMA drive
|
|
81 |
//! @SYMTestPriority High
|
|
82 |
//! @SYMTestActions - Create non-PMA repository, backup, delete that rep, restore, check values
|
|
83 |
//! - delete that repository and create PMA repository with same id
|
|
84 |
//! - Try to restore the earlier backed-up repository and check values
|
|
85 |
//! @SYMTestExpectedResults PMA repository should not be affected by the restore
|
|
86 |
wh
|
|
87 |
RUN_UTILS CopyFile z:\private\10202be9\f1000200.crp c:\private\10202be9\persists\f1000200.cre
|
|
88 |
RUN_TEST_STEP -1 BURTestServer TestBackup z:\TEF_CentralRepository\PMA_BUR.ini test1
|
|
89 |
RUN_PROGRAM t_deletefileallfiles.exe c:\private\10202be9\persists\f1000200.*
|
|
90 |
|
|
91 |
RUN_UTILS CopyFile z:\private\10202be9\f1000200.pma c:\private\10202be9\persists\protected\f1000200.cre
|
|
92 |
RUN_PROGRAM t_killprocess.exe centralrepositorysrv
|
|
93 |
// Wait for the server to start up
|
|
94 |
DELAY 2000
|
|
95 |
RUN_TEST_STEP -1 BURTestServer TestRestore z:\TEF_CentralRepository\PMA_BUR.ini test1
|
|
96 |
|
|
97 |
RUN_TEST_STEP 100 te_centrep_BURSuite comparePMAStep z:\TEF_CentralRepository\PMA_BUR.ini step3
|
|
98 |
END_TESTCASE PDS-CENTRALREPOSITORY-CT-4133 //Delete
|
|
99 |
|
|
100 |
RUN_PROGRAM t_deletefileallfiles.exe c:\private\10202be9\persists\protected\f1000200.*
|
|
101 |
RUN_PROGRAM t_deletefileallfiles.exe c:\private\0AB7E57C\backup_registration.xml
|
|
102 |
|
|
103 |
PRINT Completed te_centrep_bursuite_pma.script Tests
|