authenticationservices/authenticationserver/test/tAuthSvr/scripts/tpostmarketplugin_macroenabled.script
changeset 29 ece3df019add
child 34 5b5ca9f4f7b4
equal deleted inserted replaced
19:cd501b96611d 29:ece3df019add
       
     1 //
       
     2 // Copyright (c) 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 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 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
    18 // All rights reserved.
       
    19 // This component and the accompanying materials are made available
       
    20 // under the terms of "Eclipse Public License v1.0"
       
    21 // which accompanies this distribution, and is available
       
    22 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    23 //
       
    24 // Initial Contributors:
       
    25 // Nokia Corporation - initial contribution.
       
    26 //
       
    27 // Contributors:
       
    28 //
       
    29 // Description:
       
    30 //
       
    31 
       
    32 RINT Post Market Plugin tests with KEnablePostMarketAuthenticationPlugins enabled...
       
    33 
       
    34 // Prepare a clone of TAuthSvr to possess authserver's SID.
       
    35 // This is required for modifying the authserver's central repository file.
       
    36 // This clone must be deleted at the end of the test.
       
    37 
       
    38 RUN_PROGRAM 100 SETCAP tAuthSvr.exe 188b0 -SID 102740FC tAuthSvr_new.exe
       
    39 
       
    40 LOAD_SUITE tAuthSvr
       
    41 LOAD_SUITE tAuthSvr_new
       
    42 
       
    43 // This test must be executed in order to set the default plugin, else authserver will never start.
       
    44 
       
    45 RUN_UTILS DeleteFile C:\pinplugin_inactive.txt
       
    46 RUN_TEST_STEP_RESULT 0 100	tAuthSvr_new 	INIT_CENREP c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defaultplugin
       
    47 RUN_UTILS DeleteFile  C:\t_pinplugindlg_in.dat
       
    48 RUN_UTILS DeleteFile  C:\t_pinplugindlg_out.dat
       
    49 
       
    50 
       
    51 // The following tests are run for KEnablePostMarketAutheticationPlugins set using the 
       
    52 // macro SYMBIAN_ENABLE_POST_MARKET_AUTHENTICATION_PLUGINS specified in ROM build for hardware tests and 
       
    53 // patch data KEnablePostMarketAutheticationPlugins set to one in epoc.ini for emulator tests.
       
    54 
       
    55 ////
       
    56 //! @SYMTestCaseID 		SEC-AUT-AUTHPOSTMARKETPLUGIN-0005
       
    57 //! @SYMTestCaseDesc 		Install an upgrade of a ROM plugin whose ROM_Only field is set to zero.Verify that the upgrade version is loaded.
       
    58 //!				during install and ROM version is loaded during uninstall.
       
    59 //! @SYMREQ 			REQ 11235
       
    60 //! @SYMTestPriority 		Medium
       
    61 //! @SYMTestActions  		1)Retrieve the available plugin list before an upgrade is installed.
       
    62 //!		     		2)Install an upgrade of a ROM plugin specified in the ini file.
       
    63 //!		     		3)Repeat step 1.Verify that the plugin count matches the expected,and that 
       
    64 //!                    		the upgrade version of the plugin is loaded by comparing the plugin name with 
       
    65 //!                    		the expected name specified in the ini file.
       
    66 //!				4)Retrieve the plugin list before the upgrade (installed in step 2) is uninstalled.
       
    67 //!				5)Uninstall the ROM upgrade.
       
    68 //!		     		6)Repeat step 1.Verify that the plugin count matches the expected,and that 
       
    69 //!                    		the ROM version of the plugin is loaded by comparing the plugin name with 
       
    70 //!                    		the expected name specified in the ini file.		
       
    71 //! @SYMTestExpectedResults	Upgraded version of the specfied ROM plugin must be loaded during install and ROM version must be loaded after uninstall.
       
    72 //! @SYMDevelopedForRelease 	Diran
       
    73 
       
    74 START_TESTCASE SEC-AUT-AUTHPOSTMARKETPLUGIN-0005
       
    75 RUN_TEST_STEP_RESULT 0 100	tAuthSvr	POST_MARKET_PLUGIN	c:\tauth\tAuthSvr\scripts\tpostmarketplugin.ini Test0001
       
    76 END_TESTCASE SEC-AUT-AUTHPOSTMARKETPLUGIN-0005
       
    77 
       
    78 ////
       
    79 //! @SYMTestCaseID 		SEC-AUT-AUTHPOSTMARKETPLUGIN-0006
       
    80 //! @SYMTestCaseDesc 		Install an upgrade of a ROM plugin whose ROM_Only field is set to one.Verify that the ROM version is loaded during install and uninstall.
       
    81 //! @SYMREQ 			REQ 11235
       
    82 //! @SYMTestPriority 		Medium
       
    83 //! @SYMTestActions  		1)Retrieve the available plugin list before an upgrade is installed.
       
    84 //!		     		2)Install an upgrade of a ROM plugin specified in the ini file.
       
    85 //!		     		3)Repeat step 1.Verify that the plugin count matches the expected,and that 
       
    86 //!                    		the ROM version of the plugin is loaded by comparing the plugin name with 
       
    87 //!                    		the expected name specified in the ini file.
       
    88 //!				4)Retrieve the plugin list before the upgrade (installed in step 2) is uninstalled.
       
    89 //!				5)Uninstall the ROM upgrade.
       
    90 //!		     		6)Repeat step 1.Verify that the plugin count matches the expected,and that 
       
    91 //!                    		the ROM version of the plugin is loaded by comparing the plugin name with 
       
    92 //!                    		the expected name specified in the ini file.			
       
    93 //! @SYMTestExpectedResults	ROM version of the specfied ROM plugin must be loaded during install and uninstall.
       
    94 //! @SYMDevelopedForRelease 	Diran
       
    95 
       
    96 START_TESTCASE SEC-AUT-AUTHPOSTMARKETPLUGIN-0006
       
    97 RUN_TEST_STEP_RESULT 0 100	tAuthSvr	POST_MARKET_PLUGIN	c:\tauth\tAuthSvr\scripts\tpostmarketplugin.ini Test0002
       
    98 END_TESTCASE SEC-AUT-AUTHPOSTMARKETPLUGIN-0006
       
    99 
       
   100 ////
       
   101 //! @SYMTestCaseID 		SEC-AUT-AUTHPOSTMARKETPLUGIN-0007
       
   102 //! @SYMTestCaseDesc 		Install and uninstall a non-ROM plugin.Verify that the plugin count increments by one post install operation 
       
   103 //!				and decrements by one post uninstall operation.
       
   104 //! @SYMREQ 			REQ 11235
       
   105 //! @SYMTestPriority 		Medium
       
   106 //! @SYMTestActions  		1)Retrieve the available plugin list before a non-ROM plugin is installed.
       
   107 //!		     		2)Install non-ROM plugin specified in the ini file.
       
   108 //!		     		3)Repeat step 1.Verify that the plugin count increments by one.
       
   109 //!				4)Retrieve the available plugin list before the non-ROM plugin is uninstalled.
       
   110 //!				5)Uninstall the non-ROM plugin(installed in step 2).
       
   111 //!		     		6)Repeat step 1.Verify that the plugin count decrements by one.
       
   112 //!						
       
   113 //! @SYMTestExpectedResults	Plugin count increments by one post install and decrements by one post uninstall operation.
       
   114 //! @SYMDevelopedForRelease 	Diran
       
   115 
       
   116 START_TESTCASE SEC-AUT-AUTHPOSTMARKETPLUGIN-0007
       
   117 RUN_TEST_STEP_RESULT 0 100	tAuthSvr	POST_MARKET_PLUGIN	c:\tauth\tAuthSvr\scripts\tpostmarketplugin.ini Test0004
       
   118 END_TESTCASE SEC-AUT-AUTHPOSTMARKETPLUGIN-0007
       
   119 
       
   120 ////
       
   121 //! @SYMTestCaseID 		SEC-AUT-AUTHPOSTMARKETPLUGIN-0008
       
   122 //! @SYMTestCaseDesc 		Verify authentication behaviour using a non ROM plugin post install and uninstall operation.
       
   123 //! @SYMREQ 			REQ 11235
       
   124 //! @SYMTestPriority 		Medium
       
   125 //! @SYMTestActions  		1)Install non-ROM plugin specified in the ini file.
       
   126 //!		     		2)Register an identity using a specified pin input.
       
   127 //!				3)Authenticate using the non ROM plugin installed in step 1.
       
   128 //!		     		4)Uninstall the plugin.
       
   129 //!				5)Authenticate again using the sme plugin.
       
   130 //!				
       
   131 //!						
       
   132 //! @SYMTestExpectedResults	Authentication must succeed using the non ROM plugin after install operation 
       
   133 //!				and must fail with KErrAuthServNoSuchPlugin post uninstall operation.
       
   134 //! @SYMDevelopedForRelease 	Diran
       
   135 START_TESTCASE SEC-AUT-AUTHPOSTMARKETPLUGIN-0008
       
   136 
       
   137 RUN_TEST_STEP_RESULT 0 100 tAuthSvr INSTALL_PLUGIN c:\tauth\tAuthSvr\scripts\tpostmarketplugin.ini Test0003
       
   138 DELAY 3000
       
   139 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REMOVE_DBS
       
   140 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REG_IDENTITY c:\tauth\tAuthSvr\scripts\tpostmarketplugin.ini Test0005
       
   141 RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHENTICATE c:\tauth\tAuthSvr\scripts\tpostmarketplugin.ini Test0006
       
   142 RUN_TEST_STEP_RESULT 0 100 tAuthSvr UNINSTALL_PLUGIN c:\tauth\tAuthSvr\scripts\tpostmarketplugin.ini Test0007
       
   143 DELAY 3000
       
   144 RUN_TEST_STEP !Error=-10802 100 tAuthSvr AUTHENTICATE c:\tauth\tAuthSvr\scripts\tpostmarketplugin.ini Test0006
       
   145 END_TESTCASE SEC-AUT-AUTHPOSTMARKETPLUGIN-0008