authenticationservices/authenticationserver/test/tauthcliserv/scripts/tauthcliserv.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 // authentication client server classes tests
       
    19 
       
    20 
       
    21 // Prepare a clone of TAuthSvr to possess authserver's SID.
       
    22 // This is required for modifying the authserver's central repository file.
       
    23 // This clone must be deleted at the end of the test.
       
    24 
       
    25 RUN_PROGRAM 100 SETCAP tAuthSvr.exe 188b0 -SID 102740FC tAuthSvr_new.exe
       
    26 
       
    27 
       
    28 LOAD_SUITE tauthcliserv
       
    29 LOAD_SUITE tpinplugin
       
    30 LOAD_SUITE tAuthSvr_new
       
    31 
       
    32 ////
       
    33 //! @SYMTestCaseID SEC-AUT-AUTHCLISVR-0004
       
    34 //! @SYMTestCaseDesc	Remove_PinPlugin_Data
       
    35 START_TESTCASE SEC-AUT-AUTHCLISVR-0004
       
    36 RUN_UTILS DeleteFile C:\pinplugin_inactive.txt
       
    37 RUN_TEST_STEP_RESULT 0 100	tAuthSvr_new 	INIT_CENREP c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defaultplugin1
       
    38 
       
    39 RUN_UTILS DeleteFile  C:\t_pinplugindlg_in.dat
       
    40 RUN_UTILS DeleteFile  C:\t_pinplugindlg_out.dat
       
    41 END_TESTCASE SEC-AUT-AUTHCLISVR-0004
       
    42 
       
    43 ////
       
    44 //! @SYMTestCaseID SEC-AUT-AUTHCLISVR-0005
       
    45 //! @SYMTestCaseDesc	Initialize_PinPlugin_Data
       
    46 START_TESTCASE SEC-AUT-AUTHCLISVR-0005
       
    47 RUN_TEST_STEP 100 tpinplugin CreateInputFile c:\tauth\tpinplugin\scripts\tpinplugin.ini datfile
       
    48 END_TESTCASE SEC-AUT-AUTHCLISVR-0005
       
    49 
       
    50 ////
       
    51 //! @SYMTestCaseID SEC-AUT-AUTHCLISVR-0001
       
    52 //! @SYMTestCaseDesc	Tests that on first start only the default user in present in the database.
       
    53 //! @SYMREQ REQ 4953 
       
    54 //! @SYMTestPriority Medium
       
    55 //! @SYMTestActions  
       
    56 //! @SYMTestExpectedResults All tests pass.
       
    57 //! @SYMDevelopedForRelease 
       
    58 
       
    59 START_TESTCASE SEC-AUT-AUTHCLISVR-0001
       
    60 RUN_UTILS MKDIR C:\testplugin_active\
       
    61 RUN_TEST_STEP 40 tauthcliserv FIRSTSTART 
       
    62 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
    63 
       
    64 END_TESTCASE SEC-AUT-AUTHCLISVR-0001
       
    65 
       
    66 ////
       
    67 //! @SYMTestCaseID SEC-AUT-AUTHCLISVR-0002
       
    68 //! @SYMTestCaseDesc	Tests that correct list of identities are retrieved from auth server 
       
    69 //!						database.
       
    70 //!						Expected plugins are listed correctly.
       
    71 //!						Authentication of a single and multiple user(s).
       
    72 //! @SYMREQ REQ 4948 
       
    73 //! @SYMTestPriority Medium
       
    74 //! @SYMTestActions  
       
    75 //! @SYMTestExpectedResults All tests pass.
       
    76 //! @SYMDevelopedForRelease 
       
    77 
       
    78 START_TESTCASE SEC-AUT-AUTHCLISVR-0002
       
    79 RUN_UTILS MKDIR C:\testplugin_active\
       
    80 RUN_TEST_STEP 120 tauthcliserv CLIENT 
       
    81 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
    82 
       
    83 END_TESTCASE SEC-AUT-AUTHCLISVR-0002
       
    84 
       
    85 ////
       
    86 //! @SYMTestCaseID SEC-AUT-AUTHCLISVR-0003
       
    87 //! @SYMTestCaseDesc	Tests removal of identity, registration, training and retaining of plugin.
       
    88 //! @SYMREQ REQ 4948 
       
    89 //! @SYMTestPriority Medium
       
    90 //! @SYMTestActions  
       
    91 //! @SYMTestExpectedResults All tests pass.
       
    92 //! @SYMDevelopedForRelease 
       
    93 
       
    94 START_TESTCASE SEC-AUT-AUTHCLISVR-0003
       
    95 RUN_UTILS MKDIR C:\testplugin_active\
       
    96 RUN_TEST_STEP 120 tauthcliserv MGRCLIENT 
       
    97 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
    98 
       
    99 END_TESTCASE SEC-AUT-AUTHCLISVR-0003
       
   100 
       
   101 ////
       
   102 //! @SYMTestCaseID SEC-AUT-AUTHCLISVR-0006
       
   103 //! @SYMTestCaseDesc	Remove_PinPlugin_Data
       
   104 START_TESTCASE SEC-AUT-AUTHCLISVR-0006
       
   105 RUN_UTILS DeleteFile  C:\t_pinplugindlg_in.dat
       
   106 RUN_UTILS DeleteFile  C:\t_pinplugindlg_out.dat
       
   107 END_TESTCASE SEC-AUT-AUTHCLISVR-0006