backupandrestore/backuptest/burtestserver/testscripts/test_backupinvalid.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 // test.script
       
    19 //
       
    20 ////////////////////////////////////////////////////////////////////////////////////
       
    21 LOAD_SUITE BURTestServer
       
    22 
       
    23 PRINT ----------------------------------------------
       
    24 PRINT  Test Backup Invalid
       
    25 PRINT ----------------------------------------------
       
    26 RUN_UTILS DeleteDirectory C:\BackupArchive\
       
    27 START_TESTCASE MTP-SBE-BACKUPINVALIDIDS-0000
       
    28 //! @SYMTestCaseID MTP-SBE-BACKUPINVALIDIDS-0000
       
    29 //! @SYMTestCaseDesc Invalid data owner ID test
       
    30 //! @SYMPREQ 2492
       
    31 //! @SYMTestStatus Released
       
    32 //! @SYMTestPriority High
       
    33 //! @SYMTestActions   Specify an invlid id and try backup it.
       
    34 //! @SYMTestExpectedResults SBE can't found and do nothing
       
    35 //! @SYMTestType CIT
       
    36 RUN_TEST_STEP 100 BURTestServer TestBackup z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0050
       
    37 END_TESTCASE MTP-SBE-BACKUPINVALIDIDS-0000
       
    38 
       
    39 START_TESTCASE MTP-SBE-BACKUPINVALIDDRIVE-0001
       
    40 //! @SYMTestCaseID MTP-SBE-BACKUPINVALIDDRIVE-0001
       
    41 //! @SYMTestCaseDesc Invalid drive test
       
    42 //! @SYMPREQ 2492
       
    43 //! @SYMTestStatus Released
       
    44 //! @SYMTestPriority High
       
    45 //! @SYMTestActions   Specify an invalid drive for a data owner to backup
       
    46 //! @SYMTestExpectedResults SBE backup operation return -1
       
    47 //! @SYMTestType CIT
       
    48 RUN_TEST_STEP 100 BURTestServer TestBackup z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0060
       
    49 END_TESTCASE MTP-SBE-BACKUPINVALIDDRIVE-0001
       
    50 
       
    51 RUN_UTILS MkDir c:\private\12345678\
       
    52 RUN_UTILS CopyFile z:\testdata\scripts\sbetestdata\backup_registration.xml c:\private\12345678\backup_registration.xml
       
    53 START_TESTCASE MTP-SBE-BACKUPINVALIDDIR-0002
       
    54 //! @SYMTestCaseID MTP-SBE-BACKUPINVALIDDIR-0002
       
    55 //! @SYMTestCaseDesc Invalid directory test
       
    56 //! @SYMPREQ 2492
       
    57 //! @SYMTestStatus Released
       
    58 //! @SYMTestPriority High
       
    59 //! @SYMTestActions   Specify an invalid directory for a data owner to backup
       
    60 //! @SYMTestExpectedResults SBE can't found and do nothing
       
    61 //! @SYMTestType CIT
       
    62 RUN_TEST_STEP 100 BURTestServer TestBackup z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0070
       
    63 END_TESTCASE MTP-SBE-BACKUPINVALIDDIR-0002
       
    64 
       
    65 RUN_UTILS DeleteDirectory c:\private\12345678\
       
    66 RUN_UTILS DeleteDirectory c:\BackupArchive\
       
    67 RUN_UTILS DeleteDirectory c:\private\0AB7E58F\
       
    68 RUN_UTILS MkDir c:\private\0AB7E58F\
       
    69 RUN_UTILS CopyFile  z:\testdata\scripts\sbetestdata\invalidproxymgr.xml c:\private\0AB7E58F\backup_registration.xml
       
    70 RUN_UTILS MakeReadWrite c:\private\0AB7E58F\backup_registration.xml
       
    71 START_TESTCASE MTP-SBE-BACKUPINVALIDPROXY-0003
       
    72 //! @SYMTestCaseID MTP-SBE-BACKUPINVALIDPROXY-0003
       
    73 //! @SYMTestCaseDesc Invalid proxy manager test
       
    74 //! @SYMPREQ 2492
       
    75 //! @SYMTestStatus Released
       
    76 //! @SYMTestPriority High
       
    77 //! @SYMTestActions   Specify an invalid proxy manager in register file for a data owner to backup
       
    78 //! @SYMTestExpectedResults SBE can't found and do nothing
       
    79 //! @SYMTestType CIT
       
    80 RUN_TEST_STEP 100 BURTestServer TestBackup z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0075
       
    81 END_TESTCASE MTP-SBE-BACKUPINVALIDPROXY-0003
       
    82 
       
    83 RUN_UTILS DeleteDirectory c:\private\0AB7E58F\
       
    84 RUN_UTILS DeleteDirectory c:\BackupArchive\
       
    85 RUN_UTILS MkDir c:\private\0AB7E58F\
       
    86 RUN_UTILS CopyFile  z:\testdata\scripts\sbetestdata\increamenttest.xml c:\private\0AB7E58F\backup_registration.xml
       
    87 RUN_UTILS CopyFile  z:\sys\bin\esock.dll c:\private\0AB7E58F\needbackup.xml
       
    88 START_TESTCASE MTP-SBE-BACKUPREADONLY-0004
       
    89 //! @SYMTestCaseID MTP-SBE-BACKUPREADONLY-0004
       
    90 //! @SYMTestCaseDesc Test readonly file backup. This case only valid on hardware, on winscw, all file is readable.
       
    91 //! @SYMPREQ 2492
       
    92 //! @SYMTestStatus Released
       
    93 //! @SYMTestPriority High
       
    94 //! @SYMTestActions   Backup a read only file
       
    95 //! @SYMTestExpectedResults no error
       
    96 //! @SYMTestType CIT
       
    97 RUN_TEST_STEP 100 BURTestServer TestBackup z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0075
       
    98 END_TESTCASE MTP-SBE-BACKUPREADONLY-0004
       
    99 
       
   100 START_TESTCASE MTP-SBE-RESTOREREADONLY-0005
       
   101 //! @SYMTestCaseID MTP-SBE-RESTOREREADONLY-0005
       
   102 //! @SYMTestCaseDesc Test readonly file restore
       
   103 //! @SYMPREQ 2492
       
   104 //! @SYMTestStatus Released
       
   105 //! @SYMTestPriority High
       
   106 //! @SYMTestActions   Restore a readonly file, but the origin file exist
       
   107 //! @SYMTestExpectedResults -21
       
   108 //! @SYMTestType CIT
       
   109 RUN_TEST_STEP 100 BURTestServer TestRestore z:\testdata\scripts\sbetestdata\test.ini BACKUP_RESTORE_0077
       
   110 END_TESTCASE MTP-SBE-RESTOREREADONLY-0005
       
   111 RUN_UTILS DeleteDirectory c:\private\0AB7E58F\