|
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... |
|
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 // The following tests are run when KEnablePostMarketAutheticationPlugins is set to zero, |
|
51 // i.e post market plugins are not supported. |
|
52 |
|
53 //// |
|
54 //! @SYMTestCaseID SEC-AUT-AUTHPOSTMARKETPLUGIN-0001 |
|
55 //! @SYMTestCaseDesc Install an upgrade of a ROM plugin whose ROM_Only field is set to zero.Verify that the upgrade version is loaded. |
|
56 //! during install and ROM version is loaded during uninstall. |
|
57 //! @SYMREQ REQ 11235 |
|
58 //! @SYMTestPriority Medium |
|
59 //! @SYMTestActions 1)Retrieve the available plugin list before an upgrade is installed. |
|
60 //! 2)Install an upgrade of a ROM plugin specified in the ini file. |
|
61 //! 3)Repeat step 1.Verify that the plugin count matches the expected,and that |
|
62 //! the upgrade version of the plugin is loaded by comparing the plugin name with |
|
63 //! the expected name specified in the ini file. |
|
64 //! 4)Retrieve the plugin list before the upgrade (installed in step 2) is uninstalled. |
|
65 //! 5)Uninstall the ROM upgrade. |
|
66 //! 6)Repeat step 1.Verify that the plugin count matches the expected,and that |
|
67 //! the ROM version of the plugin is loaded by comparing the plugin name with |
|
68 //! the expected name specified in the ini file. |
|
69 //! @SYMTestExpectedResults Upgraded version of the specfied ROM plugin must be loaded during install and ROM version must be loaded after uninstall. |
|
70 //! @SYMDevelopedForRelease Diran |
|
71 |
|
72 START_TESTCASE SEC-AUT-AUTHPOSTMARKETPLUGIN-0001 |
|
73 RUN_TEST_STEP_RESULT 0 100 tAuthSvr POST_MARKET_PLUGIN c:\tauth\tAuthSvr\scripts\tpostmarketplugin.ini Test0001 |
|
74 END_TESTCASE SEC-AUT-AUTHPOSTMARKETPLUGIN-0001 |
|
75 |
|
76 //// |
|
77 //! @SYMTestCaseID SEC-AUT-AUTHPOSTMARKETPLUGIN-0002 |
|
78 //! @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. |
|
79 //! @SYMREQ REQ 11235 |
|
80 //! @SYMTestPriority Medium |
|
81 //! @SYMTestActions 1)Retrieve the available plugin list before an upgrade is installed. |
|
82 //! 2)Install an upgrade of a ROM plugin specified in the ini file. |
|
83 //! 3)Repeat step 1.Verify that the plugin count matches the expected,and that |
|
84 //! the ROM version of the plugin is loaded by comparing the plugin name with |
|
85 //! the expected name specified in the ini file. |
|
86 //! 4)Retrieve the plugin list before the upgrade (installed in step 2) is uninstalled. |
|
87 //! 5)Uninstall the ROM upgrade. |
|
88 //! 6)Repeat step 1.Verify that the plugin count matches the expected,and that |
|
89 //! the ROM version of the plugin is loaded by comparing the plugin name with |
|
90 //! the expected name specified in the ini file. |
|
91 //! @SYMTestExpectedResults ROM version of the specfied ROM plugin must be loaded during install and uninstall. |
|
92 //! @SYMDevelopedForRelease Diran |
|
93 |
|
94 START_TESTCASE SEC-AUT-AUTHPOSTMARKETPLUGIN-0002 |
|
95 RUN_TEST_STEP_RESULT 0 100 tAuthSvr POST_MARKET_PLUGIN c:\tauth\tAuthSvr\scripts\tpostmarketplugin.ini Test0002 |
|
96 END_TESTCASE SEC-AUT-AUTHPOSTMARKETPLUGIN-0002 |
|
97 |
|
98 //// |
|
99 //! @SYMTestCaseID SEC-AUT-AUTHPOSTMARKETPLUGIN-0003 |
|
100 //! @SYMTestCaseDesc Install and uninstall a non-ROM plugin.Verify that the plugin count remains the same pre and post install and uninstall operation. |
|
101 //! @SYMREQ REQ 11235 |
|
102 //! @SYMTestPriority Medium |
|
103 //! @SYMTestActions 1)Retrieve the available plugin list before a non-ROM plugin is installed. |
|
104 //! 2)Install non-ROM plugin specified in the ini file. |
|
105 //! 3)Repeat step 1.Verify that the plugin count remains the same pre and post install operation. |
|
106 //! 4)Retrieve the available plugin list before non-ROM plugin is uninstalled. |
|
107 //! 5)Uninstall the non-ROM plugin(installed in step 2). |
|
108 //! 6)Repeat step 1.Verify that the plugin count remains the same pre and post uninstall operation. |
|
109 //! |
|
110 //! @SYMTestExpectedResults Plugin count remains the same pre and post install and uninstall operation. |
|
111 //! @SYMDevelopedForRelease Diran |
|
112 |
|
113 START_TESTCASE SEC-AUT-AUTHPOSTMARKETPLUGIN-0003 |
|
114 RUN_TEST_STEP_RESULT 0 100 tAuthSvr POST_MARKET_PLUGIN c:\tauth\tAuthSvr\scripts\tpostmarketplugin.ini Test0003 |
|
115 END_TESTCASE SEC-AUT-AUTHPOSTMARKETPLUGIN-0003 |
|
116 |
|
117 //// |
|
118 //! @SYMTestCaseID SEC-AUT-AUTHPOSTMARKETPLUGIN-0004 |
|
119 //! @SYMTestCaseDesc Verify authentication behaviour using a non ROM plugin post install and uninstall operation. |
|
120 //! @SYMREQ REQ 11235 |
|
121 //! @SYMTestPriority Medium |
|
122 //! @SYMTestActions 1)Install non-ROM plugin specified in the ini file. |
|
123 //! 2)Register an identity using a specified pin input. |
|
124 //! 3)Authenticate using the non ROM plugin installed in step 1. |
|
125 //! 4)Uninstall the plugin. |
|
126 //! 5)Authenticate again using the same plugin. |
|
127 //! |
|
128 //! |
|
129 //! @SYMTestExpectedResults Authentication must fail with KErrAuthServNoSuchPlugin using the non ROM plugin |
|
130 //! post install and uninstall operation. |
|
131 //! @SYMDevelopedForRelease Diran |
|
132 START_TESTCASE SEC-AUT-AUTHPOSTMARKETPLUGIN-0004 |
|
133 |
|
134 RUN_TEST_STEP_RESULT 0 100 tAuthSvr INSTALL_PLUGIN c:\tauth\tAuthSvr\scripts\tpostmarketplugin.ini Test0003 |
|
135 DELAY 3000 |
|
136 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REMOVE_DBS |
|
137 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REG_IDENTITY c:\tauth\tAuthSvr\scripts\tpostmarketplugin.ini Test0005 |
|
138 RUN_TEST_STEP !Error=-10802 100 tAuthSvr AUTHENTICATE c:\tauth\tAuthSvr\scripts\tpostmarketplugin.ini Test0006 |
|
139 RUN_TEST_STEP_RESULT 0 100 tAuthSvr UNINSTALL_PLUGIN c:\tauth\tAuthSvr\scripts\tpostmarketplugin.ini Test0007 |
|
140 DELAY 3000 |
|
141 RUN_TEST_STEP !Error=-10802 100 tAuthSvr AUTHENTICATE c:\tauth\tAuthSvr\scripts\tpostmarketplugin.ini Test0006 |
|
142 END_TESTCASE SEC-AUT-AUTHPOSTMARKETPLUGIN-0004 |
|
143 |