backupandrestore/backuptest/burtestserver/testscripts/test_backuppackage.script
branchRCL_3
changeset 15 f85613f12947
equal deleted inserted replaced
13:81da3301b632 15:f85613f12947
       
     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_backuppackage.script
       
    20 // for testing backup datas of installed applications 
       
    21 //
       
    22 ////////////////////////////////////////////////////////////////////////////////////
       
    23 LOAD_SUITE BURTestServer
       
    24 
       
    25 PRINT ----------------------------------------------
       
    26 PRINT  Test Backup and Restore package applications
       
    27 PRINT ----------------------------------------------
       
    28 RUN_PROGRAM 1000 swiconsole /i Z:\testdata\scripts\sbetestdata\bigexeforbackup.sis /optimal
       
    29 RUN_PROGRAM 1000 swiconsole /i Z:\testdata\scripts\sbetestdata\test_dll_nopublic.SIS /optimal
       
    30 RUN_UTILS DeleteDirectory C:\BackupArchive\
       
    31 RUN_UTILS DeleteDirectory C:\system\temp\
       
    32 RUN_UTILS CopyFile  Z:\testdata\scripts\sbetestdata\private_file1.dat C:\private\81000014\private_file1.dat
       
    33 RUN_UTILS MakeReadWrite C:\private\81000014\private_file1.dat
       
    34 
       
    35 RUN_UTILS DeleteDirectory C:\public\
       
    36 RUN_UTILS MkDir C:\public\
       
    37 RUN_UTILS MkDir C:\public\81113002\
       
    38 RUN_UTILS MkDir C:\public\test\
       
    39 RUN_UTILS CopyFile  Z:\testdata\scripts\sbetestdata\public_file1.dat  C:\public\81113002\public_file1.dat
       
    40 RUN_UTILS CopyFile  Z:\testdata\scripts\sbetestdata\public_file2.dat  C:\public\81113002\public_file2.dat
       
    41 RUN_UTILS CopyFile  Z:\testdata\scripts\sbetestdata\private_file1.dat C:\public\test\private_file1.dat
       
    42 RUN_UTILS MakeReadWrite C:\public\81113002\public_file1.dat
       
    43 RUN_UTILS MakeReadWrite C:\public\81113002\public_file2.dat
       
    44 RUN_UTILS MakeReadWrite C:\public\test\private_file1.dat
       
    45 
       
    46 START_TESTCASE MTP-SBE-BACKUPPACKAGE-0000
       
    47 //! @SYMTestCaseID MTP-SBE-BACKUPPACKAGE-0000
       
    48 //! @SYMTestCaseDesc	        Backup big data which owner is install application
       
    49 //! @SYMPREQ                    PREQ2492      
       
    50 //! @SYMTestStatus              Released
       
    51 //! @SYMTestPriority            High 
       
    52 //! @SYMTestActions             Backup executable files and private data of install application
       
    53 //! @SYMTestExpectedResults     1. The success message displayed in the console.
       
    54 //!                             2. No any error or warning message displayed in the console.
       
    55 //! @SYMTestType                CIT
       
    56 RUN_TEST_STEP 100 BURTestServer TestBackup z:\testdata\scripts\sbetestdata\test.ini PACKAGE_0010
       
    57 END_TESTCASE MTP-SBE-BACKUPPACKAGE-0000
       
    58 RUN_UTILS DeleteFile C:\private\81000014\private_file1.dat
       
    59 
       
    60 START_TESTCASE MTP-SBE-RESTOREBACKUPPACKAGE-0001
       
    61 //! @SYMTestCaseID MTP-SBE-RESTOREBACKUPPACKAGE-0001
       
    62 //! @SYMTestCaseDesc            Restore big data which owner is install application
       
    63 //! @SYMPREQ                    PREQ2492    
       
    64 //! @SYMTestStatus              Released  
       
    65 //! @SYMTestPriority            High
       
    66 //! @SYMTestActions             Restore executable files and private datas of install application from bakcup file.
       
    67 //! @SYMTestExpectedResults     1. The failure message of restore displayed in the console
       
    68 //!                             2. The executable files are not be restored.
       
    69 //!                             3. The private files are not be restored.
       
    70 //! @SYMTestType                CIT
       
    71 RUN_TEST_STEP 100 BURTestServer TestRestore z:\testdata\scripts\sbetestdata\test.ini PACKAGE_0020
       
    72 END_TESTCASE MTP-SBE-RESTOREBACKUPPACKAGE-0001
       
    73 RUN_UTILS DeleteFile C:\private\81000014\private_file1.dat
       
    74 
       
    75 START_TESTCASE MTP-SBE-BACKUPPACKAGE-0002
       
    76 //! @SYMTestCaseID MTP-SBE-BACKUPPACKAGE-0002
       
    77 //! @SYMTestCaseDesc            Backup DLLs data which are installed as part of package
       
    78 //! @SYMPREQ                    PREQ2492
       
    79 //! @SYMTestStatus              Released  
       
    80 //! @SYMTestPriority            High
       
    81 //! @SYMTestActions             Backup executable files and private data of install DLL
       
    82 //! @SYMTestExpectedResults     1. The success message displayed in the console.
       
    83 //!                             2. No any error or warning message displayed in the console.
       
    84 //! @SYMTestType                CIT
       
    85 RUN_TEST_STEP 100 BURTestServer TestBackup z:\testdata\scripts\sbetestdata\test.ini PACKAGE_0030
       
    86 END_TESTCASE MTP-SBE-BACKUPPACKAGE-0002
       
    87 
       
    88 START_TESTCASE MTP-SBE-RESTOREBACKUPPACKAGE-0003
       
    89 //! @SYMTestCaseID MTP-SBE-RESTOREBACKUPPACKAGE-0003
       
    90 //! @SYMTestCaseDesc            Backup DLLs data which are installed as part of package
       
    91 //! @SYMPREQ                    PREQ2492
       
    92 //! @SYMTestStatus              Released
       
    93 //! @SYMTestPriority            High
       
    94 //! @SYMTestActions             Restore executable files and private datas of install DLL from bakcup file.
       
    95 //! @SYMTestExpectedResults     1. The failure message of restore displayed in the console
       
    96 //!                             2. The executable files are not be restored.
       
    97 //!                             3. The private files are not be restored.
       
    98 //! @SYMTestType                CIT
       
    99 RUN_TEST_STEP 100 BURTestServer TestRestore z:\testdata\scripts\sbetestdata\test.ini PACKAGE_0040
       
   100 END_TESTCASE MTP-SBE-RESTOREBACKUPPACKAGE-0003
       
   101 
       
   102 RUN_UTILS DeleteFile C:\public\81113002\public_file1.dat
       
   103 RUN_UTILS DeleteFile C:\public\81113002\public_file2.dat
       
   104 RUN_UTILS DeleteFile C:\public\test\private_file1.dat
       
   105 RUN_UTILS DeleteDirectory C:\public\81113002\
       
   106 RUN_UTILS DeleteDirectory C:\public\test\
       
   107 RUN_UTILS DeleteDirectory C:\public\
       
   108 RUN_PROGRAM 900 swiconsole /u /uid 0x8111300b /pkg "big exe for backup" /vendor "Unique Vendor Name" /optimal
       
   109 RUN_PROGRAM 1000 swiconsole /u /uid 0x81113002 /pkg "tswinocapability" /vendor "Symbian" /optimal