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