|
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 //! @file |
|
32 //AuthServer OOM Tests |
|
33 |
|
34 RUN_PROGRAM 100 SETCAP tAuthSvr.exe 188b0 -SID 102740FC tAuthSvr_new.exe |
|
35 LOAD_SUITE tAuthSvr_new |
|
36 LOAD_SUITE tAuthSvr |
|
37 |
|
38 |
|
39 //Delete plugin dat files and initialize default plugin value |
|
40 RUN_UTILS DeleteFile C:\pinplugin_inactive.txt |
|
41 RUN_UTILS DeleteFile C:\t_pinplugindlg_in.dat |
|
42 RUN_UTILS DeleteFile C:\t_pinplugindlg_out.dat |
|
43 RUN_TEST_STEP_RESULT 0 100 tAuthSvr_new INIT_CENREP c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defaultplugin |
|
44 |
|
45 |
|
46 |
|
47 //SEE tauthsvroom.ini for instructions on adding OOM tests. |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 //// |
|
55 //! @SYMTestCaseID SEC-AUT-AUTHSVROOM-0001 |
|
56 //! @SYMTestCaseDesc Authserver OOM tests for all published api's |
|
57 //! @SYMREQ REQ4969 4970 4971 4972 4975 4976 4977 4978 4963 4985 5008 5009 |
|
58 //! @SYMTestPriority Medium |
|
59 //! @SYMTestActions |
|
60 //! @SYMTestExpectedResults All tests pass successfully |
|
61 //! @SYMDevelopedForRelease Intulo |
|
62 |
|
63 START_TESTCASE SEC-AUT-AUTHSVROOM-0001 |
|
64 |
|
65 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\ |
|
66 //Synchronous Authenticate API check -- SERVER SIDE |
|
67 RUN_TEST_STEP_RESULT 0 1000 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvroom.ini oom1 |
|
68 |
|
69 |
|
70 //Register API check -- SERVER SIDE |
|
71 RUN_UTILS CopyFile C:\tauth\tauthsvr\testdata\pinplugin_inactive.txt C:\pinplugin_inactive.txt |
|
72 RUN_TEST_STEP_RESULT 0 1000 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvroom.ini oom2 |
|
73 RUN_UTILS DeleteFile C:\pinplugin_inactive.txt |
|
74 |
|
75 |
|
76 //Synchronous Authenticate API check -- CLIENT SIDE |
|
77 RUN_TEST_STEP_RESULT 0 1000 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvroom.ini oom3 |
|
78 |
|
79 |
|
80 //Register API check -- CLIENT SIDE |
|
81 RUN_UTILS CopyFile C:\tauth\tauthsvr\testdata\pinplugin_inactive.txt C:\pinplugin_inactive.txt |
|
82 RUN_TEST_STEP_RESULT 0 1000 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvroom.ini oom4 |
|
83 RUN_UTILS DeleteFile C:\pinplugin_inactive.txt |
|
84 |
|
85 |
|
86 //Asynchronous Authenticate API check -- SERVER SIDE |
|
87 RUN_TEST_STEP_RESULT 0 1000 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvroom.ini oom5 |
|
88 |
|
89 |
|
90 //Asynchronous Authenticate API check -- CLIENT SIDE |
|
91 RUN_TEST_STEP_RESULT 0 1000 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvroom.ini oom6 |
|
92 |
|
93 |
|
94 //Set preffered plugin type check -- SERVER SIDE |
|
95 RUN_TEST_STEP_RESULT 0 1000 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvroom.ini oom7 |
|
96 |
|
97 |
|
98 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REMOVE_DBS |
|
99 RUN_TEST_STEP !RESULT=FAIL 100 tAuthSvr REG_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvroom.ini Test4 |
|
100 RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHENTICATE c:\tauth\tAuthSvr\scripts\tauthsvroom.ini Test3 |
|
101 |
|
102 //Check Remove Identity API -- SERVER SIDE |
|
103 RUN_TEST_STEP_RESULT 0 1000 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvroom.ini oom8 |
|
104 |
|
105 |
|
106 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REMOVE_DBS |
|
107 RUN_TEST_STEP !RESULT=FAIL 100 tAuthSvr REG_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvroom.ini Test4 |
|
108 RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHENTICATE c:\tauth\tAuthSvr\scripts\tauthsvroom.ini Test3 |
|
109 |
|
110 |
|
111 //Check Retrain Plugin API -- SERVER SIDE |
|
112 RUN_TEST_STEP_RESULT 0 1000 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvroom.ini oom10 |
|
113 |
|
114 //Check List PluginsL API -- SERVER SIDE |
|
115 RUN_TEST_STEP_RESULT 0 1000 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvroom.ini oom11 |
|
116 |
|
117 |
|
118 //Check List Active Plugins API -- SERVER SIDE |
|
119 RUN_TEST_STEP_RESULT 0 1000 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvroom.ini oom12 |
|
120 |
|
121 |
|
122 //Check List Plugins of type API -- SERVER SIDE |
|
123 RUN_TEST_STEP_RESULT 0 1000 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvroom.ini oom13 |
|
124 |
|
125 |
|
126 //Check List Plugins With Training status API -- SERVER SIDE |
|
127 RUN_TEST_STEP_RESULT 0 1000 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvroom.ini oom14 |
|
128 |
|
129 |
|
130 //Check List Authentication aliases API |
|
131 RUN_TEST_STEP_RESULT 0 1000 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvroom.ini oom15 |
|
132 |
|
133 |
|
134 //Delete plugin dat files and initialize default plugin value |
|
135 RUN_UTILS DeleteFile C:\pinplugin_inactive.txt |
|
136 RUN_UTILS DeleteFile C:\t_pinplugindlg_in.dat |
|
137 RUN_UTILS DeleteFile C:\t_pinplugindlg_out.dat |
|
138 RUN_TEST_STEP_RESULT 0 100 tAuthSvr_new INIT_CENREP c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defaultplugin |
|
139 |
|
140 |
|
141 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REMOVE_DBS |
|
142 |
|
143 //Expected result is fail because plugin count fails (tauthplugin.rsc is deleted). |
|
144 //This identity is just used in the next few cases |
|
145 RUN_TEST_STEP !RESULT=FAIL tAuthSvr REG_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvroom.ini Test1 |
|
146 RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHENTICATE c:\tauth\tAuthSvr\scripts\tauthsvroom.ini Test2 |
|
147 |
|
148 |
|
149 |
|
150 //Check Reset Identity API (all plugins) |
|
151 |
|
152 RUN_TEST_STEP_RESULT 0 1000 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvroom.ini oom16 |
|
153 |
|
154 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REMOVE_DBS |
|
155 //Expected result is fail because plugin count fails (tauthplugin.rsc is deleted). |
|
156 //This identity is just used in the next few cases |
|
157 RUN_TEST_STEP !RESULT=FAIL tAuthSvr REG_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvroom.ini Test1 |
|
158 RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHENTICATE c:\tauth\tAuthSvr\scripts\tauthsvroom.ini Test2 |
|
159 |
|
160 |
|
161 //Check Reset Identity API (plugins of specified type) |
|
162 |
|
163 RUN_TEST_STEP_RESULT 0 1000 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvroom.ini oom17 |
|
164 |
|
165 |
|
166 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REMOVE_DBS |
|
167 //Expected result is fail because plugin count fails (tauthplugin.rsc is deleted). |
|
168 //This identity is just used in the next few cases |
|
169 RUN_TEST_STEP !RESULT=FAIL tAuthSvr REG_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvroom.ini Test1 |
|
170 RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHENTICATE c:\tauth\tAuthSvr\scripts\tauthsvroom.ini Test2 |
|
171 |
|
172 |
|
173 //Check Reset Identity API (specified plugins) |
|
174 RUN_TEST_STEP_RESULT 0 1000 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvroom.ini oom18 |
|
175 |
|
176 |
|
177 |
|
178 |
|
179 END_TESTCASE SEC-AUT-AUTHSVROOM-0001 |
|
180 |
|
181 |