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