installationservices/swi/test/tsisregistrytest/Scripts/tsisregistrytest_tcb.script
branchRCL_3
changeset 25 7333d7932ef7
equal deleted inserted replaced
24:5cc91383ab1e 25:7333d7932ef7
       
     1 //
       
     2 // Copyright (c) 2010 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 the License "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 PRINT Run all SisRegistry tests
       
    18 //
       
    19 LOAD_SUITE tSisRegistryTest
       
    20 LOAD_SUITE tuiscriptadaptors
       
    21 //
       
    22 
       
    23 
       
    24 RUN_UTILS MkDir c:\private\10003a3f\import
       
    25 RUN_UTILS MkDir c:\private\10003a3f\import\apps
       
    26 RUN_UTILS CopyFile  z:\tswi\tuiscriptadaptors\data\swiappregintegration02\swiappregintegration02_reg.rsc c:\private\10003a3f\import\apps\swiappregintegration02_reg.rsc
       
    27 //! @file
       
    28 //! @SYMTestCaseID		API-SEC-SISREGISTRY_TCB-0001
       
    29 //! @SYMTestCaseDesc		Add the Application Registration info into SCR from _reg.rsc
       
    30 //! @SYMTestPriority		
       
    31 //! @SYMTestActions		Parse then _reg.rsc file placed in apparc's pvt folder and populate the db and then remove the app data
       
    32 //! @SYMTestExpectedResults	The test completes with KErrNone completion code.
       
    33 
       
    34 
       
    35 START_TESTCASE API-SEC-SISREGISTRY_TCB-0001
       
    36 RUN_TEST_STEP 100 tSisRegistryTest AddAppRegInfo z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder
       
    37 RUN_TEST_STEP 100 tSisRegistryTest CheckAppRegData z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder_C_Drive
       
    38 RUN_TEST_STEP 100 tSisRegistryTest RemoveAppRegInfo z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder
       
    39 RUN_TEST_STEP 100 tSisRegistryTest CheckAppRegData z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder_No_Data
       
    40 END_TESTCASE API-SEC-SISREGISTRY_TCB-0001
       
    41 RUN_UTILS DeleteFile  c:\private\10003a3f\import\apps\swiappregintegration02_reg.rsc
       
    42 
       
    43 //! @file
       
    44 //! @SYMTestCaseID		API-SEC-SISREGISTRY_TCB-0002
       
    45 //! @SYMTestCaseDesc		Add the Application Registration info into SCR from _reg.rsc
       
    46 //! @SYMTestPriority		Low
       
    47 //! @SYMTestActions		Parse then _reg.rsc file placed in non apparc's pvt folder and populate the db
       
    48 //! @SYMTestExpectedResults	The test completes with KErrArgument completion code.
       
    49 
       
    50 START_TESTCASE API-SEC-SISREGISTRY_TCB-0002
       
    51 RUN_TEST_STEP_RESULT -5 100 tSisRegistryTest AddAppRegInfo z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_nonapparc_folder
       
    52 END_TESTCASE API-SEC-SISREGISTRY_TCB-0002
       
    53 
       
    54 RUN_UTILS CopyFile  z:\tswi\tuiscriptadaptors\data\swiappregintegration02\swiappregintegration02_reg.rsc c:\private\10003a3f\import\apps\swiappregintegration02_reg.rsc
       
    55 
       
    56 //! @file
       
    57 //! @SYMTestCaseID		API-SEC-SISREGISTRY_TCB-0003
       
    58 //! @SYMTestCaseDesc		Add the Application Registration info into SCR from _reg.rsc
       
    59 //! @SYMTestPriority		
       
    60 //! @SYMTestActions		Parse then same _reg.rsc file placed in apparc's pvt folder twice and populate the db and then remove the app data.
       
    61 //! @SYMTestExpectedResults	Removes the existing app reg info  and completes with KErrNone completion code
       
    62 
       
    63 START_TESTCASE API-SEC-SISREGISTRY_TCB-0003
       
    64 RUN_TEST_STEP 100 tSisRegistryTest AddAppRegInfo z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder
       
    65 RUN_TEST_STEP 100 tSisRegistryTest AddAppRegInfo z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder
       
    66 RUN_TEST_STEP 100 tSisRegistryTest CheckAppRegData z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder_C_Drive
       
    67 RUN_TEST_STEP 100 tSisRegistryTest RemoveAppRegInfo z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder
       
    68 RUN_TEST_STEP 100 tSisRegistryTest CheckAppRegData z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder_No_Data
       
    69 END_TESTCASE API-SEC-SISREGISTRY_TCB-0003
       
    70 RUN_UTILS DeleteFile  c:\private\10003a3f\import\apps\swiappregintegration02_reg.rsc
       
    71 
       
    72 //! @file
       
    73 //! @SYMTestCaseID		API-SEC-SISREGISTRY_TCB-0004
       
    74 //! @SYMTestCaseDesc		Overwrite the existing Application Registration info with a new one into SCR.
       
    75 //! @SYMTestPriority		
       
    76 //! @SYMTestActions		Install the SA package and its SP upgrade(with app),parse then _reg.rsc file(havig same appuid as of SP) placed in apparc's pvt folder 
       
    77 //!				populate the db and then remove tha app data, the reg data for the .rsc file associated with the removed app(in rom) should come back.
       
    78 //! @SYMTestExpectedResults	Upon removal of reg file data, the reg data for the .rsc file associated with the removed app(in rom) should come back successfully.
       
    79 
       
    80 START_TESTCASE API-SEC-SISREGISTRY_TCB-0004
       
    81 RUN_TEST_STEP 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tswiappregintegration.ini swiappregintegration_base01
       
    82 RUN_TEST_STEP 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tswiappregintegration.ini swiappregintegration_base01_sp
       
    83 RUN_TEST_STEP 100 tSisRegistryTest AddAppRegInfo z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder_base01
       
    84 RUN_TEST_STEP 100 tSisRegistryTest CheckAppRegData z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder_C_Drive_base01
       
    85 RUN_TEST_STEP 100 tSisRegistryTest RemoveAppRegInfo z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder_base01
       
    86 RUN_TEST_STEP 100 tSisRegistryTest CheckAppRegData z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder_z_Drive
       
    87 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tswiappregintegration.ini u_swiappregintegration_base01
       
    88 END_TESTCASE API-SEC-SISREGISTRY_TCB-0004
       
    89 
       
    90 //! @file
       
    91 //! @SYMTestCaseID		API-SEC-SISREGISTRY_TCB-0005
       
    92 //! @SYMTestCaseDesc		Overwrite the existing Application Registration info with a new one into SCR.
       
    93 //! @SYMTestPriority		
       
    94 //! @SYMTestActions		Install the SA package and its SP upgrade(with app),parse then _reg.rsc file(havig same appuid as of SP) placed in apparc's pvt folder 
       
    95 //!				populate the db and then remove tha app data.
       
    96 //! @SYMTestExpectedResults	Upon removal of reg file data, the reg data for the .rsc file associated with the removed app(in rom) should come back.
       
    97 
       
    98 START_TESTCASE API-SEC-SISREGISTRY_TCB-0005
       
    99 RUN_TEST_STEP 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tswiappregintegration.ini swiappregintegration_base01
       
   100 RUN_TEST_STEP 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tswiappregintegration.ini swiappregintegration_base01_sp
       
   101 RUN_TEST_STEP 100 tSisRegistryTest RemoveAppRegInfo z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder_base01
       
   102 RUN_TEST_STEP 100 tSisRegistryTest CheckAppRegData z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder_z_Drive
       
   103 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tswiappregintegration.ini u_swiappregintegration_base01
       
   104 END_TESTCASE API-SEC-SISREGISTRY_TCB-0005
       
   105 
       
   106 //! @file
       
   107 //! @SYMTestCaseID		API-SEC-SISREGISTRY_TCB-0006
       
   108 //! @SYMTestCaseDesc		Removal the Application Registration info from SCR fails.
       
   109 //! @SYMTestPriority		
       
   110 //! @SYMTestActions		Process the path of the app reg filer and if its is non apparc return
       
   111 //! @SYMTestExpectedResults	Completes with KErrArgument completion code
       
   112 
       
   113 START_TESTCASE API-SEC-SISREGISTRY_TCB-0006
       
   114 RUN_TEST_STEP_RESULT -5 100 tSisRegistryTest RemoveAppRegInfo z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_nonapparc_folder
       
   115 END_TESTCASE API-SEC-SISREGISTRY_TCB-0006
       
   116 
       
   117 RUN_UTILS MkDir c:\private\10003a3f\import
       
   118 RUN_UTILS MkDir c:\private\10003a3f\import\apps
       
   119 RUN_UTILS CopyFile  z:\systemtest\testdata\dummy.txt c:\private\10003a3f\import\apps\swiappregintegration02_reg.rsc
       
   120 //! @file
       
   121 //! @SYMTestCaseID		API-SEC-SISREGISTRY_TCB-0007
       
   122 //! @SYMTestCaseDesc		Removal the non _reg.rsc file data from SCR.
       
   123 //! @SYMTestPriority		
       
   124 //! @SYMTestActions		Open the file and check if its a valid _reg.rsc file
       
   125 //! @SYMTestExpectedResults	Completes with KErrArgument completion code
       
   126 
       
   127 START_TESTCASE API-SEC-SISREGISTRY_TCB-0007
       
   128 RUN_TEST_STEP_RESULT -5 100 tSisRegistryTest RemoveAppRegInfo z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_nonapparc_folder
       
   129 END_TESTCASE API-SEC-SISREGISTRY_TCB-0007
       
   130 
       
   131 //! @file
       
   132 //! @SYMTestCaseID		API-SEC-SISREGISTRY_TCB-0008
       
   133 //! @SYMTestCaseDesc		Add the non _reg.rsc file data into SCR
       
   134 //! @SYMTestPriority		
       
   135 //! @SYMTestActions		Open the file and check if its a valid _reg.rsc file
       
   136 //! @SYMTestExpectedResults	Completes with KErrArgument completion code
       
   137 
       
   138 START_TESTCASE API-SEC-SISREGISTRY_TCB-0008
       
   139 RUN_TEST_STEP_RESULT -5 100 tSisRegistryTest AddAppRegInfo z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder
       
   140 END_TESTCASE API-SEC-SISREGISTRY_TCB-0008
       
   141 RUN_UTILS DeleteFile  c:\private\10003a3f\import\apps\swiappregintegration02_reg.rsc
       
   142 
       
   143 RUN_UTILS CopyFile  z:\tswi\tuiscriptadaptors\data\swiappregintegration_base01\swiappregintegration_base01_reg.rsc c:\private\10003a3f\import\apps\swiappregintegration_base01_reg.rsc
       
   144 //! @file
       
   145 //! @SYMTestCaseID		API-SEC-SISREGISTRY_TCB-0009
       
   146 //! @SYMTestCaseDesc		Overwrite the existing Application Registration info present in z drive with a new one(in c drive) into SCR.
       
   147 //! @SYMTestPriority		
       
   148 //! @SYMTestActions		Add the app reg info of reg present in c drive , which overwritres the reg data of rom,  then remove the reg data of c drive 
       
   149 //!				reg data of file in rom should come back.
       
   150 //! @SYMTestExpectedResults     Upon removal of reg file data, reg data of file present in z should comes back
       
   151 
       
   152 START_TESTCASE API-SEC-SISREGISTRY_TCB-0009
       
   153 RUN_TEST_STEP 100 tSisRegistryTest AddAppRegInfo z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder_base01
       
   154 RUN_TEST_STEP 100 tSisRegistryTest CheckAppRegData z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder_C_Drive_base01
       
   155 RUN_TEST_STEP 100 tSisRegistryTest RemoveAppRegInfo z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder_base01
       
   156 RUN_TEST_STEP 100 tSisRegistryTest CheckAppRegData z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder_z_Drive
       
   157 END_TESTCASE API-SEC-SISREGISTRY_TCB-0009
       
   158 RUN_UTILS DeleteFile  c:\private\10003a3f\import\apps\swiappregintegration_base01_reg.rsc
       
   159 
       
   160 RUN_UTILS CopyFile  z:\tswi\tuiscriptadaptors\data\swiappregintegration12\swiappregintegration12_reg.rsc c:\private\10003a3f\import\apps\swiappregintegration12_reg.rsc
       
   161 //! @file
       
   162 //! @SYMTestCaseID		API-SEC-SISREGISTRY_TCB-0010
       
   163 //! @SYMTestCaseDesc		Overwrite the existing Application Registration info with a new one into SCR.
       
   164 //! @SYMTestPriority		
       
   165 //! @SYMTestActions		Add the app reg data of rsc file in c drive overwriting the reg data of the stub in rom having an app (with reg file)
       
   166 //!				remove the reg data of rsc in c drive, the stub should be reregistered.
       
   167 //! @SYMTestExpectedResults	Upon removal of reg file data, the stub with reg data in z should comes back
       
   168 
       
   169 START_TESTCASE API-SEC-SISREGISTRY_TCB-0010
       
   170 RUN_TEST_STEP 100 tSisRegistryTest AddAppRegInfo z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder_eclipse_stub
       
   171 RUN_TEST_STEP 100 tSisRegistryTest CheckAppRegData z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder_eclipse_stub_c
       
   172 RUN_TEST_STEP 100 tSisRegistryTest RemoveAppRegInfo z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder_eclipse_stub
       
   173 RUN_TEST_STEP 100 tSisRegistryTest CheckAppRegData z:\tswi\tsisregistrytest\scripts\tsisregistrytest.ini AddAppRegInfo_apparc_folder_eclipse_stub_z
       
   174 END_TESTCASE API-SEC-SISREGISTRY_TCB-0010
       
   175 RUN_UTILS DeleteFile  c:\private\10003a3f\import\apps\swiappregintegration12_reg.rsc