|
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 PRINT Authentication Server Performance 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 RUN_UTILS CopyFile C:\tauth\tauthsvr\testdata\pinplugin_inactive.txt C:\pinplugin_inactive.txt |
|
44 RUN_TEST_STEP_RESULT 0 100 tAuthSvr_new INIT_CENREP c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defaultplugin1 |
|
45 RUN_UTILS DeleteFile C:\t_pinplugindlg_in.dat |
|
46 RUN_UTILS DeleteFile C:\t_pinplugindlg_out.dat |
|
47 |
|
48 START_TESTCASE SEC-AUT-AUTHSVR-PERFORMANCE-TEST0001 |
|
49 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\ |
|
50 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REMOVE_DBS |
|
51 RUN_TEST_STEP_RESULT 0 100 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvr_performance.ini Test0001 |
|
52 END_TESTCASE SEC-AUT-AUTHSVR-PERFORMANCE-TEST0001 |
|
53 |
|
54 START_TESTCASE SEC-AUT-AUTHSVR-PERFORMANCE-TEST0002 |
|
55 RUN_TEST_STEP_RESULT 0 100 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvr_performance.ini Test0002 |
|
56 END_TESTCASE SEC-AUT-AUTHSVR-PERFORMANCE-TEST0002 |
|
57 |
|
58 START_TESTCASE SEC-AUT-AUTHSVR-PERFORMANCE-TEST0003 |
|
59 RUN_TEST_STEP_RESULT 0 100 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvr_performance.ini Test0003 |
|
60 END_TESTCASE SEC-AUT-AUTHSVR-PERFORMANCE-TEST0003 |
|
61 |
|
62 START_TESTCASE SEC-AUT-AUTHSVR-PERFORMANCE-TEST0004 |
|
63 RUN_TEST_STEP !Result=0 100 tAuthSvr REMOVE_DBS |
|
64 RUN_TEST_STEP !Result=0 100 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvr_performance.ini Test0004 |
|
65 END_TESTCASE SEC-AUT-AUTHSVR-PERFORMANCE-TEST0004 |
|
66 |
|
67 // authenticate with 2 plugins. |
|
68 START_TESTCASE SEC-AUT-AUTHSVR-PERFORMANCE-TEST0005 |
|
69 RUN_TEST_STEP_RESULT 0 100 tAuthSvr OOM_TEST c:\tauth\tAuthSvr\scripts\tauthsvr_performance.ini Test0005 |
|
70 END_TESTCASE SEC-AUT-AUTHSVR-PERFORMANCE-TEST0005 |
|
71 |
|
72 RUN_UTILS DeleteFile C:\pinplugin_inactive.txt |