telephonyprotocols/psdagt/TS_PsdAgt/TestSuitePsdAgt.cpp
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2001-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 // TestSuiteEsock.cpp
       
    15 // This main DLL entry point for the TS_Esock.dll
       
    16 // 
       
    17 //
       
    18 
       
    19 
       
    20 
       
    21 // EPOC includes
       
    22 #include <e32base.h>
       
    23 
       
    24 // Test system includes
       
    25 #include "networking/log.h"
       
    26 #include "networking/teststep.h"
       
    27 #include "TestStepPsdAgt.h"
       
    28 #include "networking/testsuite.h"
       
    29 #include "TestSuitePsdAgt.h"
       
    30 
       
    31 // Test Cases
       
    32 #include "Psdagttestcommdbparameters.h"
       
    33 #include "Psdagttestcontextconfigchange.h"
       
    34 #include "PsdAgtTestQoSChange.h"
       
    35 #include "PsdAgtTestNotificationDisabled.h"
       
    36 #include "PsdAgtTestLogging.h"
       
    37 #include "PsdAgtTestSMInitialisation.h"
       
    38 #include "PsdAgtTestNetworkCheck.h"
       
    39 #include "PsdAgtTestCreateContext.h"
       
    40 #include "PsdAgtTestCreateQoS.h"
       
    41 #include "PsdAgtTestActivateContext.h"
       
    42 #include "PsdAgtTestOpen.h"
       
    43 #include "PsdAgtTestCloseLog.h"
       
    44 #include "PsdAgtTestClosure.h"
       
    45 #include "PsdAgtTestReconnect.h"
       
    46 #include "PsdAgtTestOOM.h"
       
    47 
       
    48 
       
    49 
       
    50 // NewTestEtelPacket is exported at ordinal 1
       
    51 // this provides the interface to allow schedule test
       
    52 // to create instances of this test suite
       
    53 EXPORT_C CTestSuitePsdAgt* NewTestSuitePsdAgt( void ) 
       
    54     { 
       
    55 	return new (ELeave) CTestSuitePsdAgt;
       
    56     }
       
    57 
       
    58 // destructor
       
    59 CTestSuitePsdAgt::~CTestSuitePsdAgt()
       
    60 	{
       
    61 	}
       
    62 
       
    63 // Add a test step into the suite
       
    64 void CTestSuitePsdAgt::AddTestStepL( CTestStepPsdAgt * ptrTestStep )
       
    65 	{
       
    66 	// test steps contain a pointer back to the suite which owns them
       
    67 	ptrTestStep->iPsdAgtSuite = this; 
       
    68 
       
    69 	// add the step using tyhe base class method
       
    70 	CTestSuite::AddTestStepL(ptrTestStep);
       
    71 	}
       
    72 
       
    73 
       
    74 // constructor for ESOCK test suite
       
    75 // this creates all the ESOCK test steps and
       
    76 // stores them inside CTestSuiteEsock
       
    77 void CTestSuitePsdAgt::InitialiseL( void )
       
    78 	{
       
    79 
       
    80 	// Start the Comms Server - the Database Server thread runs in this process
       
    81  	// When bootstrapping C32 we have to avoid starting both the normal ETEL (because we use a 
       
    82 	// dummy one of the same server name) and PhBkSyncServer being started, since
       
    83  	// it needs a different CommDB
       
    84  	_LIT(KTelephonyCMIs, "phbsync.cmi,etel.cmi");
       
    85     TInt ret = StartC32WithCMISuppressions(KTelephonyCMIs);
       
    86 	if (!((ret==KErrNone)||(ret==KErrAlreadyExists)))
       
    87 		{
       
    88  		_LIT(KPanicFailedC32,"C32 Failed to start");
       
    89  		User::Panic(KPanicFailedC32, ret);
       
    90 		}
       
    91 
       
    92 	// add test steps
       
    93 	AddTestStepL( new(ELeave) CPsdAgtTest1_1 );
       
    94 	AddTestStepL( new(ELeave) CPsdAgtTest1_2 );
       
    95 	AddTestStepL( new(ELeave) CPsdAgtTest1_3 );
       
    96 	AddTestStepL( new(ELeave) CPsdAgtTest1_4 );
       
    97 	AddTestStepL( new(ELeave) CPsdAgtTest1_5 );
       
    98 	AddTestStepL( new(ELeave) CPsdAgtTest1_6 );
       
    99 	AddTestStepL( new(ELeave) CPsdAgtTest1_7 );
       
   100 	AddTestStepL( new(ELeave) CPsdAgtTest1_8 );
       
   101 	AddTestStepL( new(ELeave) CPsdAgtTest1_9 );
       
   102 	AddTestStepL( new(ELeave) CPsdAgtTest1_10 );
       
   103 	AddTestStepL( new(ELeave) CPsdAgtTest1_11 );
       
   104 	AddTestStepL( new(ELeave) CPsdAgtTest1_12 );
       
   105 	AddTestStepL( new(ELeave) CPsdAgtTest1_13 );
       
   106 	AddTestStepL( new(ELeave) CPsdAgtTest1_14 );
       
   107 	AddTestStepL( new(ELeave) CPsdAgtTest1_15 );
       
   108 	AddTestStepL( new(ELeave) CPsdAgtTest1_16 );
       
   109 
       
   110  	AddTestStepL( new(ELeave) CPsdAgtTest2_1 );
       
   111 	AddTestStepL( new(ELeave) CPsdAgtTest2_2 );
       
   112 	AddTestStepL( new(ELeave) CPsdAgtTest2_3 );
       
   113 	AddTestStepL( new(ELeave) CPsdAgtTest2_4 );
       
   114 
       
   115 	AddTestStepL( new(ELeave) CPsdAgtTest3_1 );
       
   116 	AddTestStepL( new(ELeave) CPsdAgtTest3_2 );
       
   117 	AddTestStepL( new(ELeave) CPsdAgtTest3_3 );
       
   118 	AddTestStepL( new(ELeave) CPsdAgtTest3_4 );
       
   119 	AddTestStepL( new(ELeave) CPsdAgtTest3_5 );
       
   120 	AddTestStepL( new(ELeave) CPsdAgtTest3_6 );
       
   121 	AddTestStepL( new(ELeave) CPsdAgtTest3_7 );
       
   122 	AddTestStepL( new(ELeave) CPsdAgtTest3_8 );
       
   123 	AddTestStepL( new(ELeave) CPsdAgtTest3_9 );
       
   124 	AddTestStepL( new(ELeave) CPsdAgtTest3_10 );
       
   125 	AddTestStepL( new(ELeave) CPsdAgtTest3_11 );
       
   126 	AddTestStepL( new(ELeave) CPsdAgtTest3_12 );
       
   127 	AddTestStepL( new(ELeave) CPsdAgtTest3_13 );
       
   128 	AddTestStepL( new(ELeave) CPsdAgtTest3_14 );
       
   129 	AddTestStepL( new(ELeave) CPsdAgtTest3_15 );
       
   130 	AddTestStepL( new(ELeave) CPsdAgtTest3_16 );
       
   131 	AddTestStepL( new(ELeave) CPsdAgtTest3_17 );
       
   132 	AddTestStepL( new(ELeave) CPsdAgtTest3_18 );
       
   133 	AddTestStepL( new(ELeave) CPsdAgtTest3_19 );
       
   134 	AddTestStepL( new(ELeave) CPsdAgtTest3_20 );
       
   135 	AddTestStepL( new(ELeave) CPsdAgtTest3_21 );
       
   136 	AddTestStepL( new(ELeave) CPsdAgtTest3_22 );
       
   137 	AddTestStepL( new(ELeave) CPsdAgtTest3_23 );
       
   138 	AddTestStepL( new(ELeave) CPsdAgtTest3_24 );
       
   139 	AddTestStepL( new(ELeave) CPsdAgtTest3_25 );
       
   140 	AddTestStepL( new(ELeave) CPsdAgtTest3_26 );
       
   141 	AddTestStepL( new(ELeave) CPsdAgtTest3_27 );
       
   142 	AddTestStepL( new(ELeave) CPsdAgtTest3_28 );
       
   143 	AddTestStepL( new(ELeave) CPsdAgtTest3_29 );
       
   144 	AddTestStepL( new(ELeave) CPsdAgtTest3_30 );
       
   145 	AddTestStepL( new(ELeave) CPsdAgtTest3_31 );
       
   146 
       
   147 	AddTestStepL( new(ELeave) CPsdAgtTest4_1);
       
   148 	
       
   149 	AddTestStepL( new(ELeave) CPsdAgtTest5_1);
       
   150 	AddTestStepL( new(ELeave) CPsdAgtTest5_2);
       
   151 	AddTestStepL( new(ELeave) CPsdAgtTest5_3);
       
   152 
       
   153 	AddTestStepL( new(ELeave) CPsdAgtTest6_1);
       
   154 	AddTestStepL( new(ELeave) CPsdAgtTest6_2);
       
   155 	AddTestStepL( new(ELeave) CPsdAgtTest6_3);
       
   156 	AddTestStepL( new(ELeave) CPsdAgtTest6_4);
       
   157 	AddTestStepL( new(ELeave) CPsdAgtTest6_5);
       
   158 	AddTestStepL( new(ELeave) CPsdAgtTest6_6);
       
   159 	AddTestStepL( new(ELeave) CPsdAgtTest6_7);
       
   160 	AddTestStepL( new(ELeave) CPsdAgtTest6_8);
       
   161 	AddTestStepL( new(ELeave) CPsdAgtTest6_9);
       
   162 	AddTestStepL( new(ELeave) CPsdAgtTest6_10 );
       
   163 	AddTestStepL( new(ELeave) CPsdAgtTest6_11 );
       
   164 	AddTestStepL( new(ELeave) CPsdAgtTest6_12 );
       
   165 
       
   166 
       
   167 	AddTestStepL( new(ELeave) CPsdAgtTest7_1);
       
   168 	AddTestStepL( new(ELeave) CPsdAgtTest7_2);
       
   169 	AddTestStepL( new(ELeave) CPsdAgtTest7_3);
       
   170 	AddTestStepL( new(ELeave) CPsdAgtTest7_4);
       
   171 	AddTestStepL( new(ELeave) CPsdAgtTest7_5);
       
   172 	AddTestStepL( new(ELeave) CPsdAgtTest7_6);
       
   173 
       
   174 	AddTestStepL( new(ELeave) CPsdAgtTest7_7);
       
   175 	AddTestStepL( new(ELeave) CPsdAgtTest7_8);
       
   176 	AddTestStepL( new(ELeave) CPsdAgtTest7_9);
       
   177 	AddTestStepL( new(ELeave) CPsdAgtTest7_10);
       
   178 //	AddTestStepL( new(ELeave) CPsdAgtTest7_11);
       
   179 
       
   180 	AddTestStepL( new(ELeave) CPsdAgtTest8_1);
       
   181 
       
   182 	AddTestStepL( new(ELeave) CPsdAgtTest9_1);
       
   183 
       
   184 	AddTestStepL( new(ELeave) CPsdAgtTest10_1);
       
   185 	AddTestStepL( new(ELeave) CPsdAgtTest10_2);
       
   186 	AddTestStepL( new(ELeave) CPsdAgtTest10_3);
       
   187 
       
   188 	AddTestStepL( new(ELeave) CPsdAgtTest11_1);
       
   189 	AddTestStepL( new(ELeave) CPsdAgtTest11_2);
       
   190 	AddTestStepL( new(ELeave) CPsdAgtTest11_3);
       
   191 	AddTestStepL( new(ELeave) CPsdAgtTest11_4);
       
   192 	AddTestStepL( new(ELeave) CPsdAgtTest11_5);
       
   193 	AddTestStepL( new(ELeave) CPsdAgtTest11_6);
       
   194 	AddTestStepL( new(ELeave) CPsdAgtTest11_7);
       
   195 	AddTestStepL( new(ELeave) CPsdAgtTest11_8);
       
   196 
       
   197 	AddTestStepL( new(ELeave) CPsdAgtTest12_1);
       
   198 	
       
   199 	AddTestStepL( new(ELeave) CPsdAgtTest13_1);
       
   200 	AddTestStepL( new(ELeave) CPsdAgtTest13_2);
       
   201 
       
   202 	AddTestStepL( new(ELeave) CPsdAgtTest14_1);
       
   203 	AddTestStepL( new(ELeave) CPsdAgtTest14_2);
       
   204 	AddTestStepL( new(ELeave) CPsdAgtTest14_3);
       
   205 	AddTestStepL( new(ELeave) CPsdAgtTest14_4);
       
   206 	AddTestStepL( new(ELeave) CPsdAgtTest14_5);
       
   207 
       
   208 	AddTestStepL( new(ELeave) CPsdAgtTest15_1);
       
   209 	AddTestStepL( new(ELeave) CPsdAgtTest15_2);
       
   210 	AddTestStepL( new(ELeave) CPsdAgtTest15_3);
       
   211 	AddTestStepL( new(ELeave) CPsdAgtTest15_4);
       
   212 	}
       
   213 
       
   214 TPtrC CTestSuitePsdAgt::GetVersion( )
       
   215 	{	
       
   216 #ifdef _DEBUG
       
   217 	_LIT(KVersion,"1.001 (udeb)");
       
   218 #else
       
   219 	_LIT(KVersion,"1.001");
       
   220 #endif
       
   221 	return KVersion();
       
   222 	}