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