telephonyserverplugins/common_tsy/test/integration/src/cctsyintegrationtestims.cpp
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Test step definitions for the IMS functional unit.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @internalTechnology
       
    20 */
       
    21 
       
    22 #include "cctsyintegrationtestims.h"
       
    23 
       
    24 
       
    25 
       
    26 	
       
    27 CCTSYIntegrationTestIMSBase::CCTSYIntegrationTestIMSBase(CEtelSessionMgr& aEtelSessionMgr)
       
    28 	: CCTSYIntegrationTestSuiteStepBase(aEtelSessionMgr)
       
    29 /**
       
    30  * Constructor
       
    31  */
       
    32 	{
       
    33 	}
       
    34 
       
    35 CCTSYIntegrationTestIMSBase::~CCTSYIntegrationTestIMSBase()
       
    36 /*
       
    37  * Destructor
       
    38  */
       
    39 	{
       
    40 	}
       
    41 	
       
    42 
       
    43 CCTSYIntegrationTestIMS0001::CCTSYIntegrationTestIMS0001(CEtelSessionMgr& aEtelSessionMgr)
       
    44 	: CCTSYIntegrationTestIMSBase(aEtelSessionMgr)
       
    45 /**
       
    46  * Constructor.
       
    47  */
       
    48 	{
       
    49 	SetTestStepName(CCTSYIntegrationTestIMS0001::GetTestStepName());
       
    50 	}
       
    51 
       
    52 CCTSYIntegrationTestIMS0001::~CCTSYIntegrationTestIMS0001()
       
    53 /**
       
    54  * Destructor.
       
    55  */
       
    56 	{
       
    57 	}
       
    58 
       
    59 TVerdict CCTSYIntegrationTestIMS0001::doTestStepL()
       
    60 /**
       
    61  * @SYMTestCaseID BA-CTSY-INT-IMS-0001
       
    62  * @SYMFssID BA/CTSY/IMS-0001
       
    63  * @SYMTestCaseDesc Authenticate ISIM
       
    64  * @SYMTestPriority High
       
    65  * @SYMTestActions CAsyncRetrieveAuthorizationInfo::Start
       
    66  * @SYMTestExpectedResults Pass - IMS authenticate completes with KErrNone. Authorization info retrieved.
       
    67  * @SYMTestType CIT
       
    68  * @SYMTestCaseDependencies live/manual
       
    69  *
       
    70  * Reason for test: Verify ISIM authenticated
       
    71  *
       
    72  * @return - TVerdict code
       
    73  */
       
    74 	{
       
    75 
       
    76 	//
       
    77 	// SET UP
       
    78 	//
       
    79 
       
    80 	
       
    81 	// Insert 3G ISIM with smart card applications 
       
    82 
       
    83 
       
    84 	//
       
    85 	// SET UP END
       
    86 	//
       
    87 	
       
    88 	StartTest();
       
    89 	
       
    90 	//
       
    91 	// TEST START
       
    92 	//
       
    93 	
       
    94 	
       
    95 	// Send IMS authenticate command with RMobilePhone::ImsAuthenticate with valid iAUTN,iAUTS,iRAND in RMobilePhone::TImsAuthenticateDataV5 
       
    96 
       
    97 	// Check request completes with KErrNone.
       
    98 
       
    99 	// ===  Check authenticate data populated ===
       
   100 
       
   101 	// Check RMobilePhone::TImsAuthenticateDataV5::iCK has length > 0
       
   102 
       
   103 	// Check RMobilePhone::TImsAuthenticateDataV5::iIK has length > 0
       
   104 
       
   105 	// Check RMobilePhone::TImsAuthenticateDataV5::iRES has length > 0
       
   106 
       
   107 	// Use the helper class for CAsyncRetrieveAuthorizationInfo to start retrieval of the authorization info list from CAsyncRetrieveAuthorizationInfo::Start 
       
   108 
       
   109 	// ===  Check the RMobilePhone::CImsAuthorizationInfoV5 contains valid information ===
       
   110 
       
   111 	// Check iIMPI has length > 0
       
   112 
       
   113 	// Check iIMPUArray.Count() > 0
       
   114 
       
   115 	// Check each item in iIMPUArray has length > 0
       
   116 
       
   117 	// Check iHomeNetworkDomainName has length > 0
       
   118 
       
   119 	// Check iAuthenticationDataSource has length > 0
       
   120 
       
   121 	
       
   122 	//
       
   123 	// TEST END
       
   124 	//
       
   125 
       
   126     StartCleanup();
       
   127 	
       
   128 	// Put any required test clean up here, then remove this comment
       
   129 	
       
   130 	return TestStepResult();
       
   131 	}
       
   132 
       
   133 TPtrC CCTSYIntegrationTestIMS0001::GetTestStepName()
       
   134 /**
       
   135  * @return The test step name.
       
   136  */
       
   137 	{
       
   138 	return _L("CCTSYIntegrationTestIMS0001");
       
   139 	}
       
   140 
       
   141 
       
   142