telephonyserverplugins/simtsy/test/Te_Sim/Te_SimTestServer.cpp
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2006-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 //
       
    15 
       
    16 /**
       
    17  @file
       
    18 */
       
    19 
       
    20 #include "Te_SimTestServer.h"
       
    21 
       
    22 #include "Te_SimAPNControlList.h"
       
    23 #include "Te_SimAPNControlListStatus.h"
       
    24 #include "Te_SimBatteryChargerTest.h"
       
    25 #include "Te_SimBasicVoiceTest.h"
       
    26 #include "Te_SimCallOOMTest.h"
       
    27 #include "Te_SimCallOpenTest.h"
       
    28 #include "Te_SimDtmfTest.h"
       
    29 #include "Te_SimEmergencyCallTest.h"
       
    30 #include "Te_SimGetSubscriberIdTest.h"
       
    31 #include "Te_SimIncomingDataTest.h"
       
    32 #include "Te_SimIndicatorTest.h"
       
    33 #include "Te_SimMiscTest.h"
       
    34 #include "Te_SimNetworkStatusTest.h"
       
    35 #include "Te_SimNitzTest.h"
       
    36 #include "Te_SimCellInfoTest.h"
       
    37 #include "Te_SimNoConfigFileTest.h"
       
    38 #include "Te_SimOutGoingDataTest.h"
       
    39 #include "Te_SimPacketAdditionalParamsTest.h"
       
    40 #include "Te_SimPacketContextTest.h"
       
    41 #include "Te_SimPacketCorruptedConfigFileTest.h"
       
    42 #include "Te_SimPacketFinalContextTest.h"
       
    43 #include "Te_SimPacketGPRSNotifyConfigCancelTest.h"
       
    44 #include "Te_SimPacketGPRSNotifyConfigChangeTest.h"
       
    45 #include "Te_SimPacketGPRSContextTest.h"
       
    46 #include "Te_SimPacketGPRSQOSTest.h"
       
    47 #include "Te_SimPacketRel99Rel5QOSTest.h"
       
    48 #include "Te_SimPacketRel99Rel5QOSPubSubNotifTest.h"
       
    49 #include "Te_SimPacketGPRSRel99NotifyProfileChangeTest.h"
       
    50 #include "Te_SimPacketNotify2ThreadTest.h"
       
    51 #include "Te_SimPacketPenultimateContextTest.h"
       
    52 #include "Te_SimPacketQoS.h"
       
    53 #include "Te_SimPacketRel5ContextTest.h"
       
    54 #include "Te_SimPacketRel5QOSTest.h"
       
    55 #include "Te_SimPacketRel99ContextTest.h"
       
    56 #include "Te_SimPacketRel99QOSTest.h"
       
    57 #include "Te_SimPacketTest.h"
       
    58 #include "Te_SimPhBkErrorOOBTest.h"
       
    59 #include "Te_SimPhBkLockInfoTest.h"
       
    60 #include "Te_SimPhBkPhoneSecurityTest.h"
       
    61 #include "Te_SimPhBkSecurityCapsTest.h"
       
    62 #include "Te_SimPhBkSmartCardTest.h"
       
    63 #include "Te_SimPhBkSmartCardUSimTest.h"
       
    64 #include "Te_SimPhBkStoreICCLockedTest.h"
       
    65 #include "Te_SimPhBkStoreTest.h"
       
    66 #include "Te_SimPhBkStoreUICCLockedTest.h"
       
    67 #include "Te_SimPhBkUSimAppsTest.h"
       
    68 #include "Te_SimPhBkUSimErrorOOBTest.h"
       
    69 #include "Te_SimPhBkUSimStoreTest.h"
       
    70 #include "Te_SimONStoreTest.h"
       
    71 #include "Te_SimSatTest.h"
       
    72 #include "Te_SimSignalStrengthTest.h"
       
    73 #include "Te_SimSmsListTest.h"
       
    74 #include "Te_SimSmsReceiveModesTest.h"
       
    75 #include "Te_SimSmsRxTest.h"
       
    76 #include "Te_SimSmsStoreTest.h"
       
    77 #include "Te_SimSmsTxTest.h"
       
    78 #include "Te_SimTestServer.h"
       
    79 #include "Te_SimTestStepBase.h"
       
    80 #include "Te_SimVoiceTest.h"
       
    81 #include "Te_SimPacketNetworkNotifyConfigChangeTest.h"
       
    82 #include "Te_SimUSimRel6Test.h"
       
    83 
       
    84 CSimTestServer* CSimTestServer::NewL()
       
    85 /**
       
    86  * @return - Instance of the test server
       
    87  * Same code for Secure and non-secure variants
       
    88  * Called inside the MainL() function to create and start the
       
    89  * CTestServer derived server.
       
    90  */
       
    91 	{
       
    92 	CSimTestServer * testServer = new (ELeave) CSimTestServer();
       
    93 	CleanupStack::PushL(testServer);
       
    94 	RProcess	handle = RProcess();
       
    95 	TParsePtrC	serverName(handle.FileName());
       
    96 	testServer->ConstructL(serverName.Name());
       
    97 	CleanupStack::Pop(testServer);
       
    98 	return testServer;
       
    99 	}
       
   100 
       
   101 LOCAL_C void MainL()
       
   102 /**
       
   103  * Secure variant
       
   104  * Much simpler, uses the new Rendezvous() call to sync with the client
       
   105  */
       
   106 	{
       
   107    	TInt result = StartC32();
       
   108 	if (result != KErrNone  &&  result != KErrAlreadyExists)
       
   109 		{
       
   110 		User::Leave(result);
       
   111 		}
       
   112 
       
   113 	CActiveScheduler* sched=NULL;
       
   114 	sched=new(ELeave) CActiveScheduler;
       
   115 	CActiveScheduler::Install(sched);
       
   116 
       
   117 	
       
   118 	// Create the CTestServer derived server
       
   119 	CSimTestServer* testServer = NULL;
       
   120 	TRAPD(err,testServer = CSimTestServer::NewL());
       
   121 	if(!err)
       
   122 		{
       
   123 		// Sync with the client and enter the active scheduler
       
   124 		RProcess::Rendezvous(KErrNone);
       
   125 		sched->Start();
       
   126 		}
       
   127 	delete testServer;
       
   128 	delete sched;
       
   129 	}
       
   130 
       
   131 GLDEF_C TInt E32Main()
       
   132 /**
       
   133  * @return - Standard Epoc error code on process exit
       
   134  * Secure variant only
       
   135  * Process entry point. Called by client using RProcess API
       
   136  */
       
   137 	{
       
   138 	__UHEAP_MARK;
       
   139 	CTrapCleanup* cleanup = CTrapCleanup::New();
       
   140 	if(cleanup == NULL)
       
   141 		{
       
   142 		return KErrNoMemory;
       
   143 		}
       
   144 	TRAPD(err,MainL());
       
   145 	delete cleanup;
       
   146 	__UHEAP_MARKEND;
       
   147 	return err;
       
   148     }
       
   149 
       
   150 CTestStep* CSimTestServer::CreateTestStep(const TDesC& aStepName)
       
   151 /**
       
   152  * @return - A CTestStep derived instance
       
   153  * Secure and non-secure variants
       
   154  * Implementation of CTestServer pure virtual
       
   155  */
       
   156 	{
       
   157 	CTestStep* testStep = NULL;
       
   158 
       
   159    if (aStepName == _L("AdditionalParamsContextTest"))
       
   160 		{
       
   161 		testStep = new CSimPacketAdditionalParamsTest;
       
   162 		}
       
   163 	else if (aStepName == _L("AdditionalParamsContextTest2"))
       
   164 		{
       
   165 		testStep = new CSimPacketAdditionalParamsTest2;
       
   166 		}
       
   167 	else if (aStepName == _L("AdditionalParamsContextTest3"))
       
   168 		{
       
   169 		testStep = new CSimPacketAdditionalParamsTest3;
       
   170 		}
       
   171 	else if(aStepName == _L("BatteryChargerTest"))
       
   172 		{
       
   173 		testStep = new CSimBatteryChargerTest;
       
   174 		}
       
   175 	else if(aStepName == _L("BasicVoiceTest"))
       
   176 		{
       
   177 		testStep = new CSimBasicVoiceTest;
       
   178 		}
       
   179 	else if(aStepName == _L("BinaryAdditionalParamsContextTest1"))
       
   180 		{
       
   181 		testStep = new CSimPacketBinaryAdditionalParamsTest1;
       
   182 		}
       
   183 	else if(aStepName == _L("BinaryAdditionalParamsContextTest2"))
       
   184 		{
       
   185 		testStep = new CSimPacketBinaryAdditionalParamsTest2;
       
   186 		}
       
   187 	else if(aStepName == _L("CallOOMTest"))
       
   188 		{
       
   189 		testStep = new CSimCallOOMTest;
       
   190 		}
       
   191 	else if(aStepName == _L("CallOpenTest"))
       
   192 		{
       
   193 		testStep = new CSimCallOpenTest;
       
   194 		}
       
   195 	else if(aStepName == _L("ContextTest"))
       
   196 		{
       
   197 		testStep = new CSimPacketContextTest;
       
   198 		}
       
   199 	else if(aStepName == _L("CorruptedConfigFileTest"))
       
   200 		{
       
   201 		testStep = new CSimPacketCorruptedConfigFileTest;
       
   202 		}
       
   203 	else if (aStepName == _L("DefaultAdditionalParamsContextTest"))
       
   204 		{
       
   205 		testStep = new CSimPacketDefaultAdditionalParamsTest;
       
   206 		}
       
   207 	else if (aStepName == _L("DefaultBinaryAdditionalParamsContextTest"))
       
   208 		{
       
   209 		testStep = new CSimPacketDefaultBinaryAdditionalParamsTest;
       
   210 		}		
       
   211 	else if(aStepName == _L("DtmfTest"))
       
   212 		{
       
   213 		testStep = new CSimDtmfTest;
       
   214 		}
       
   215 	else if(aStepName == _L("EmergencyCallTest"))
       
   216 		{
       
   217 		testStep = new CSimEmergencyCallTest;
       
   218 		}
       
   219 	else if(aStepName == _L("ErrorOOBTest"))
       
   220 		{
       
   221 		testStep = new CSimPhBkErrorOOBTest;
       
   222 		}
       
   223 	else if(aStepName == _L("FinalContextTest"))
       
   224 		{
       
   225 		testStep = new CSimPacketFinalContextTest;
       
   226 		}
       
   227 	else if(aStepName == _L("GetSubscriberIdTest"))
       
   228 		{
       
   229 		testStep = new CSimGetSubscriberIdTest;
       
   230 		}
       
   231 	else if(aStepName == _L("GPRSNotifyConfigChangeTest"))
       
   232 		{
       
   233 		testStep = new CSimPacketGPRSNotifyConfigChangeTest;
       
   234 		}
       
   235 	else if(aStepName == _L("GPRSNotifyConfigCancelTest"))
       
   236 		{
       
   237 		testStep = new CSimPacketGPRSNotifyConfigCancelTest;
       
   238 		}
       
   239 	else if(aStepName == _L("GPRSContextTest"))
       
   240 		{
       
   241 		testStep = new CSimPacketGPRSContextTest;
       
   242 		}
       
   243 	else if(aStepName == _L("GPRSQOSTest"))
       
   244 		{
       
   245 		testStep = new CSimPacketGPRSQOSTest;
       
   246 		}
       
   247 	else if(aStepName == _L("GPRSRel99NotifyProfileChangeTest"))
       
   248 		{
       
   249 		testStep = new CSimPacketGPRSRel99NotifyProfileChangeTest;
       
   250 		}
       
   251 	else if(aStepName == _L("IncomingDataTest"))
       
   252 		{
       
   253 		testStep = new CSimIncomingDataTest;
       
   254 		}
       
   255 	else if(aStepName == _L("IndicatorTest"))
       
   256 		{
       
   257 		testStep = new CSimIndicatorTest;
       
   258 		}
       
   259 	else if(aStepName == _L("LockInfoTest"))
       
   260 		{
       
   261 		testStep = new CSimPhBkLockInfoTest;
       
   262 		}
       
   263 	else if(aStepName == _L("MiscTest"))
       
   264 		{
       
   265 		testStep = new CSimMiscTest;
       
   266 		}
       
   267 	else if(aStepName == _L("NetworkStatusTest"))
       
   268 		{
       
   269 		testStep = new CSimNetworkStatusTest;
       
   270 		}
       
   271 	else if(aStepName == _L("NitzTest"))
       
   272 		{
       
   273 		testStep = new CSimNitzTest;
       
   274 		}
       
   275 	else if(aStepName == _L("CellInfoTest"))
       
   276 		{
       
   277 		testStep = new CSimCellInfoTest;
       
   278 		}
       
   279 	else if(aStepName == _L("NoConfigFileTest"))
       
   280 		{
       
   281 		testStep = new CSimNoConfigFileTest;
       
   282 		}
       
   283 	else if(aStepName == _L("Notify2ThreadTest"))
       
   284 		{
       
   285 		testStep = new CSimPacketNotify2ThreadTest;
       
   286 		}
       
   287 	else if(aStepName == _L("OutGoingDataTest"))
       
   288 		{
       
   289 		testStep = new CSimOutGoingDataTest;
       
   290 		}
       
   291 	else if(aStepName == _L("PacketTest"))
       
   292 		{
       
   293 		testStep = new CSimPacketsTest;
       
   294 		}
       
   295 	else if(aStepName == _L("PenultimateContextTest"))
       
   296 		{
       
   297 		testStep = new CSimPacketPenultimateContextTest;
       
   298 		}
       
   299 	else if(aStepName == _L("PhBkStoreTest"))
       
   300 		{
       
   301 		testStep = new CSimPhBkStoreTest;
       
   302 		}
       
   303 	else if(aStepName == _L("PhBkUSimStoreTest"))
       
   304 		{
       
   305 		testStep = new CSimPhBkUSimStoreTest;
       
   306 		}
       
   307 	else if(aStepName == _L("PhoneSecurityTest"))
       
   308 		{
       
   309 		testStep = new CSimPhBkPhoneSecurityTest;
       
   310 		}
       
   311 	else if(aStepName == _L("ONStoreTest"))
       
   312 		{
       
   313 		testStep = new CSimONStoreTest;
       
   314 		}
       
   315 	else if(aStepName == _L("Rel5ContextTest"))
       
   316 		{
       
   317 		testStep = new CSimPacketRel5ContextTest;
       
   318 		}
       
   319 	else if(aStepName == _L("Rel5QOSTest"))
       
   320 		{
       
   321 		testStep = new CSimPacketRel5QOSTest;
       
   322 		}
       
   323 	else if(aStepName == _L("Rel99ContextTest"))
       
   324 		{
       
   325 		testStep = new CSimPacketRel99ContextTest;
       
   326 		}
       
   327 	else if(aStepName == _L("Rel99QOSTest"))
       
   328 		{
       
   329 		testStep = new CSimPacketRel99QOSTest;
       
   330 		}
       
   331 	else if(aStepName == _L("Rel99Rel5QOSTest"))
       
   332 		{
       
   333 		testStep = new CSimPacketRel99Rel5QOSTest;
       
   334 		}
       
   335 	else if(aStepName == _L("Rel99Rel5QOSPubSubNotifTest"))
       
   336 		{
       
   337 		testStep = new CSimPacketRel99Rel5QOSPubSubNotifTest;
       
   338 		}
       
   339 	else if(aStepName == _L("SatTest"))
       
   340 		{
       
   341 		testStep = new CSimSatTest;
       
   342 		}
       
   343 	else if(aStepName == _L("SatTestRetMMPCmd"))
       
   344 		{
       
   345 		testStep = new CSimSatRetMMPCmdTest;
       
   346 		}
       
   347 	else if(aStepName == _L("SatTestSubMMPCmd"))
       
   348 		{
       
   349 		testStep = new CSimSatSubMMPCmdTest;
       
   350 		}
       
   351 	else if(aStepName == _L("SatTestDispMMPCmd"))
       
   352 		{
       
   353 		testStep = new CSimSatDispMMPCmdTest;
       
   354 		}
       
   355 	else if(aStepName == _L("SatTestSetFrmsPCmd"))
       
   356 		{
       
   357 			testStep = new CSimSatSetFrmsPCmdTest;
       
   358 		}
       
   359 	else if(aStepName == _L("SatTestGetFrmsPCmd"))
       
   360 		{
       
   361 			testStep = new CSimSatGetFrmsPCmdTest;
       
   362 		}
       
   363 	else if(aStepName == _L("SatTestMmsNotificationDownload"))
       
   364 		{
       
   365 			testStep = new CSimSatMmsNotificationDownload;
       
   366 		}
       
   367 	else if(aStepName == _L("SatTestProvideLocalInfo"))
       
   368 		{
       
   369 			testStep = new CSimSatProvideLocalInfo;
       
   370 		}
       
   371 	else if(aStepName == _L("SatTestUssdDataDownload"))
       
   372 		{
       
   373 			testStep = new CSimSatUssdDataDownload;
       
   374 		}
       
   375 	else if(aStepName == _L("SatTestLaunchBrowser"))
       
   376 		{
       
   377 			testStep = new CSimSatLnchBrwsr;
       
   378 		}
       
   379 	else if(aStepName == _L("SatTestOpenChnl"))
       
   380 		{
       
   381 			testStep = new CSimSatOpenChnl;
       
   382 		}
       
   383 	else if(aStepName == _L("SatTestPlayTone"))
       
   384 		{
       
   385 			testStep = new CSimSatPlayTone;
       
   386 		}
       
   387 	else if(aStepName == _L("SatTestSetupCall"))
       
   388 		{
       
   389 			testStep = new CSimSatSetupCall;
       
   390 		}
       
   391 	else if(aStepName == _L("SatTestRefresh"))
       
   392 		{
       
   393 			testStep = new CSimSatRefresh;
       
   394 		}
       
   395 	else if(aStepName == _L("SatTestEventDnld"))
       
   396 		{
       
   397 			testStep = new CSimSatEventDnld;
       
   398 		}
       
   399 	else if(aStepName == _L("SatTestSendUssd"))
       
   400 		{
       
   401 			testStep = new CSimSatSendUssd;
       
   402 		}
       
   403 	else if(aStepName == _L("SatTestGenPCmd"))
       
   404 		{
       
   405 			testStep = new CSimSatGenPCmd;
       
   406 		}
       
   407 	else if(aStepName == _L("SatTestElemFiles"))
       
   408 		{
       
   409 			testStep = new CSimSatElemFile;
       
   410 		}
       
   411 	else if(aStepName == _L("SecurityCapsTest"))
       
   412 		{
       
   413 		testStep = new CSimPhBkSecurityCapsTest;
       
   414 		}
       
   415 	else if(aStepName == _L("SetQoSDelayOnFirstSet"))
       
   416 		{
       
   417 		testStep = new CSetQoSDelayOnFirstSet;
       
   418 		}
       
   419 	else if(aStepName == _L("SetQoSDelayOnThirdSet"))
       
   420 		{
       
   421 		testStep = new CSetQoSDelayOnThirdSet;
       
   422 		}
       
   423 	else if(aStepName == _L("SetQoSDelayUnset"))
       
   424 		{
       
   425 		testStep = new CSetQoSDelayUnset;
       
   426 		}
       
   427 	else if(aStepName == _L("SetQoSNegativeDelay"))
       
   428 		{
       
   429 		testStep = new CSetQoSNegativeDelay;
       
   430 		}
       
   431 	else if(aStepName == _L("SignalStrengthTest"))
       
   432 		{
       
   433 		testStep = new CSimSignalStrengthTest;
       
   434 		}
       
   435 	else if(aStepName == _L("SmartCardTest"))
       
   436 		{
       
   437 		testStep = new CSimPhBkSmartCardTest;
       
   438 		}
       
   439 	else if(aStepName == _L("SmartCardUSimTest"))
       
   440 		{
       
   441 		testStep = new CSimPhBkSmartCardUSimTest;
       
   442 		}
       
   443 	else if(aStepName == _L("SetVersion"))
       
   444 		{
       
   445 		testStep = new CSetVersion;
       
   446 		}
       
   447 	else if(aStepName == _L("CheckVersionSupport"))
       
   448 		{
       
   449 		testStep = new CCheckVersionSupport;
       
   450 		}
       
   451 	else if(aStepName == _L("SmsListTest"))
       
   452 		{
       
   453 		testStep = new CSimSmsListTest;
       
   454 		}
       
   455 	else if(aStepName == _L("SmsRecieveModesTest"))
       
   456 		{
       
   457 		testStep = new CSimSmsReceiveModesTest;
       
   458 		}
       
   459 	else if(aStepName == _L("SmsRxTest"))
       
   460 		{
       
   461 		testStep = new CSimSmsRxTest;
       
   462 		}
       
   463 	else if(aStepName == _L("SmsStoreTest"))
       
   464 		{
       
   465 		testStep = new CSimSmsStoreTest;
       
   466 		}
       
   467 	else if(aStepName == _L("SmsTxTest"))
       
   468 		{
       
   469 		testStep = new CSimSmsTxTest;
       
   470 		}
       
   471 	else if(aStepName == _L("StoreICCLockedTest"))
       
   472 		{
       
   473 		testStep = new CSimPhBkStoreICCLockedTest;
       
   474 		}
       
   475 	else if(aStepName == _L("StoreUICCLockedTest"))
       
   476 		{
       
   477 		testStep = new CSimPhBkStoreUICCLockedTest;
       
   478 		}
       
   479 	else if(aStepName == _L("USimAppsTest"))
       
   480 		{
       
   481 		testStep = new CSimPhBkUSimAppsTest;
       
   482 		}
       
   483 	else if(aStepName == _L("USimErrorOOBTest"))
       
   484 		{
       
   485 		testStep = new CSimPhBkUSimErrorOOBTest;
       
   486 		}
       
   487 	else if(aStepName == _L("VoiceTest"))
       
   488 		{
       
   489 		testStep = new CSimVoiceTest;
       
   490 		}
       
   491 	else if(aStepName == _L("APNControlList"))
       
   492 		{
       
   493 		testStep = new CSimAPNControlList;
       
   494 		}		
       
   495 	else if(aStepName == _L("APNControlListStatus"))
       
   496 		{
       
   497 		testStep = new CSimAPNControlListStatus;
       
   498 		}			
       
   499 	else if(aStepName == _L("NetworkNotifyConfigChangeTest"))
       
   500 		{
       
   501 		testStep = new CSimPacketNetworkNotifyConfigChangeTest;
       
   502 		}
       
   503 	else if(aStepName == _L("VideomailTest1"))
       
   504 		{
       
   505 		testStep = new CSimVideomailTest1;
       
   506 		}
       
   507 	else if(aStepName == _L("VideomailTest2"))
       
   508 		{
       
   509 		testStep = new CSimVideomailTest2;
       
   510 		}
       
   511 	else if(aStepName == _L("VideomailTest3"))
       
   512 		{
       
   513 		testStep = new CSimVideomailTest3;
       
   514 		}
       
   515 	else if(aStepName == _L("VideomailTest4"))
       
   516 		{
       
   517 		testStep = new CSimVideomailTest4;
       
   518 		}		
       
   519 	else if(aStepName == _L("VideomailTest5"))
       
   520 		{
       
   521 		testStep = new CSimVideomailTest5;
       
   522 		}	
       
   523 	else if(aStepName == _L("WlanTest1"))
       
   524 		{
       
   525 		testStep = new CSimWlanTest1;
       
   526 		}
       
   527 	else if(aStepName == _L("WlanTest2"))
       
   528 		{
       
   529 		testStep = new CSimWlanTest2;
       
   530 		}
       
   531 	else if(aStepName == _L("WlanTest3"))
       
   532 		{
       
   533 		testStep = new CSimWlanTest3;
       
   534 		}
       
   535 	else if(aStepName == _L("WlanTest4"))
       
   536 		{
       
   537 		testStep = new CSimWlanTest4;
       
   538 		}
       
   539 	else if(aStepName == _L("WlanTest5"))
       
   540 		{
       
   541 		testStep = new CSimWlanTest5;
       
   542 		}
       
   543 	else if(aStepName == _L("WlanTest6"))
       
   544 		{
       
   545 		testStep = new CSimWlanTest6;
       
   546 		}
       
   547 	else if(aStepName == _L("WlanTest7"))
       
   548 		{
       
   549 		testStep = new CSimWlanTest7;
       
   550 		}
       
   551 	else if(aStepName == _L("WlanTest8"))
       
   552 		{
       
   553 		testStep = new CSimWlanTest8;
       
   554 		}
       
   555 	else if(aStepName == _L("WlanTest9"))
       
   556 		{
       
   557 		testStep = new CSimWlanTest9;
       
   558 		}
       
   559 	else if(aStepName == _L("WlanTest10"))
       
   560 		{
       
   561 		testStep = new CSimWlanTest10;
       
   562 		}
       
   563 	else if(aStepName == _L("WlanTest11"))
       
   564 		{
       
   565 		testStep = new CSimWlanTest11;
       
   566 		}
       
   567 	else if(aStepName == _L("WlanTest12"))
       
   568 		{
       
   569 		testStep = new CSimWlanTest12;
       
   570 		}
       
   571 	else if(aStepName == _L("WlanTest13"))
       
   572 		{
       
   573 		testStep = new CSimWlanTest13;
       
   574 		}
       
   575 	else if(aStepName == _L("WlanTest14"))
       
   576 		{
       
   577 		testStep = new CSimWlanTest14;
       
   578 		}
       
   579 	else if(aStepName == _L("WlanTest15"))
       
   580 		{
       
   581 		testStep = new CSimWlanTest15;
       
   582 		}
       
   583 	else if(aStepName == _L("WlanTest16"))
       
   584 		{
       
   585 		testStep = new CSimWlanTest16;
       
   586 		}
       
   587 	else if(aStepName == _L("WlanTest17"))
       
   588 		{
       
   589 		testStep = new CSimWlanTest17;
       
   590 		}
       
   591 	else if(aStepName == _L("WlanTest18"))
       
   592 		{
       
   593 		testStep = new CSimWlanTest18;
       
   594 		}
       
   595 	else if(aStepName == _L("WlanTest19"))
       
   596 		{
       
   597 		testStep = new CSimWlanTest19;
       
   598 		}
       
   599 	else if(aStepName == _L("WlanTest20"))
       
   600 		{
       
   601 		testStep = new CSimWlanTest20;
       
   602 		}
       
   603 	else if(aStepName == _L("WlanTest21"))
       
   604 		{
       
   605 		testStep = new CSimWlanTest21;
       
   606 		}
       
   607 	else if(aStepName == _L("WlanTest22"))
       
   608 		{
       
   609 		testStep = new CSimWlanTest22;
       
   610 		}
       
   611 	else if(aStepName == _L("3GSecurityContextTest1"))
       
   612 		{
       
   613 		testStep = new CSim3GSecurityContextTest1;
       
   614 		}
       
   615 	else if(aStepName == _L("3GSecurityContextTest2"))
       
   616 		{
       
   617 		testStep = new CSim3GSecurityContextTest2;
       
   618 		}
       
   619 	else if(aStepName == _L("3GSecurityContextTest3"))
       
   620 		{
       
   621 		testStep = new CSim3GSecurityContextTest3;
       
   622 		}
       
   623 	else if(aStepName == _L("3GSecurityContextTest4"))
       
   624 		{
       
   625 		testStep = new CSim3GSecurityContextTest4;
       
   626 		}
       
   627 	else if(aStepName == _L("3GSecurityContextTest5"))
       
   628 		{
       
   629 		testStep = new CSim3GSecurityContextTest5;
       
   630 		}
       
   631 	else if(aStepName == _L("UsimR6GBATest1"))
       
   632 		{
       
   633 		testStep = new CSimUsimR6GBATest1;
       
   634 		}	
       
   635 	else if(aStepName == _L("UsimR6GBATest2"))
       
   636 		{
       
   637 		testStep = new CSimUsimR6GBATest2;
       
   638 		}	
       
   639 	else if(aStepName == _L("UsimR6GBATest3"))
       
   640 		{
       
   641 		testStep = new CSimUsimR6GBATest3;
       
   642 		}	
       
   643 	else if(aStepName == _L("UsimR6GBATest4"))
       
   644 		{
       
   645 		testStep = new CSimUsimR6GBATest4;
       
   646 		}	
       
   647 	else if(aStepName == _L("UsimR6GBATest5"))
       
   648 		{
       
   649 		testStep = new CSimUsimR6GBATest5;
       
   650 		}	
       
   651 	else if(aStepName == _L("UsimR6GBATest6"))
       
   652 		{
       
   653 		testStep = new CSimUsimR6GBATest6;
       
   654 		}	
       
   655 	else if(aStepName == _L("UsimR6GBATest7"))
       
   656 		{
       
   657 		testStep = new CSimUsimR6GBATest7;
       
   658 		}	
       
   659 	else if(aStepName == _L("UsimR6GBATest8"))
       
   660 		{
       
   661 		testStep = new CSimUsimR6GBATest8;
       
   662 		}	
       
   663 	else if(aStepName == _L("UsimR6GBATest9"))
       
   664 		{
       
   665 		testStep = new CSimUsimR6GBATest9;
       
   666 		}	
       
   667 	else if(aStepName == _L("UsimR6GBATest10"))
       
   668 		{
       
   669 		testStep = new CSimUsimR6GBATest10;
       
   670 		}	
       
   671 	else if(aStepName == _L("UsimR6GBATest11"))
       
   672 		{
       
   673 		testStep = new CSimUsimR6GBATest11;
       
   674 		}	
       
   675 	else if(aStepName == _L("UsimR6GBATest12"))
       
   676 		{
       
   677 		testStep = new CSimUsimR6GBATest12;
       
   678 		}	
       
   679 	else if(aStepName == _L("UsimR6GBATest13"))
       
   680 		{
       
   681 		testStep = new CSimUsimR6GBATest13;
       
   682 		}	
       
   683 	else if(aStepName == _L("UsimR6GBATest14"))
       
   684 		{
       
   685 		testStep = new CSimUsimR6GBATest14;
       
   686 		}	
       
   687 	else if(aStepName == _L("UsimR6GBATest15"))
       
   688 		{
       
   689 		testStep = new CSimUsimR6GBATest15;
       
   690 		}
       
   691 	else if(aStepName == _L("UsimR6GBATest16"))
       
   692 		{
       
   693 		testStep = new CSimUsimR6GBATest16;
       
   694 		}	
       
   695 	else if(aStepName == _L("UsimR6GBATest17"))
       
   696 		{
       
   697 		testStep = new CSimUsimR6GBATest17;
       
   698 		}	
       
   699 	else if(aStepName == _L("UsimR6GBATest18"))
       
   700 		{
       
   701 		testStep = new CSimUsimR6GBATest18;
       
   702 		}	
       
   703 	else if(aStepName == _L("UsimR6GBATest19"))
       
   704 		{
       
   705 		testStep = new CSimUsimR6GBATest19;
       
   706 		}	
       
   707 	else if(aStepName == _L("UsimR6GBATest20"))
       
   708 		{
       
   709 		testStep = new CSimUsimR6GBATest20;
       
   710 		}
       
   711 	else if(aStepName == _L("UsimR6GBATest21"))
       
   712 		{
       
   713 		testStep = new CSimUsimR6GBATest21;
       
   714 		}	
       
   715 	else if(aStepName == _L("UsimR6GBATest22"))
       
   716 		{
       
   717 		testStep = new CSimUsimR6GBATest22;
       
   718 		}	
       
   719 	else if(aStepName == _L("UsimR6GBATest23"))
       
   720 		{
       
   721 		testStep = new CSimUsimR6GBATest23;
       
   722 		}
       
   723 	else if(aStepName == _L("UsimR6MBMSTest1"))
       
   724 		{
       
   725 		testStep = new CSimUsimR6MBMSTest1;
       
   726 		}	
       
   727 	else if(aStepName == _L("UsimR6MBMSTest2"))
       
   728 		{
       
   729 		testStep = new CSimUsimR6MBMSTest2;
       
   730 		}	
       
   731 	else if(aStepName == _L("UsimR6MBMSTest3"))
       
   732 		{
       
   733 		testStep = new CSimUsimR6MBMSTest3;
       
   734 		}
       
   735 	else if(aStepName == _L("UsimR6MBMSTest4"))
       
   736 		{
       
   737 		testStep = new CSimUsimR6MBMSTest4;
       
   738 		}	
       
   739 	else if(aStepName == _L("UsimR6MBMSTest5"))
       
   740 		{
       
   741 		testStep = new CSimUsimR6MBMSTest5;
       
   742 		}	
       
   743 	else if(aStepName == _L("UsimR6MBMSTest6"))
       
   744 		{
       
   745 		testStep = new CSimUsimR6MBMSTest6;
       
   746 		}
       
   747 	else if(aStepName == _L("UsimR6MBMSTest7"))
       
   748 		{
       
   749 		testStep = new CSimUsimR6MBMSTest7;
       
   750 		}	
       
   751 	else if(aStepName == _L("UsimR6MBMSTest8"))
       
   752 		{
       
   753 		testStep = new CSimUsimR6MBMSTest8;
       
   754 		}	
       
   755 	else if(aStepName == _L("UsimR6MBMSTest9"))
       
   756 		{
       
   757 		testStep = new CSimUsimR6MBMSTest9;
       
   758 		}
       
   759 	else if(aStepName == _L("UsimR6MBMSTest10"))
       
   760 		{
       
   761 		testStep = new CSimUsimR6MBMSTest10;
       
   762 		}	
       
   763 	else if(aStepName == _L("UsimR6MBMSTest11"))
       
   764 		{
       
   765 		testStep = new CSimUsimR6MBMSTest11;
       
   766 		}	
       
   767 	else if(aStepName == _L("UsimR6MBMSTest12"))
       
   768 		{
       
   769 		testStep = new CSimUsimR6MBMSTest12;
       
   770 		}
       
   771 	else if(aStepName == _L("UsimR6MBMSTest13"))
       
   772 		{
       
   773 		testStep = new CSimUsimR6MBMSTest13;
       
   774 		}	
       
   775 	else if(aStepName == _L("UsimR6MBMSTest14"))
       
   776 		{
       
   777 		testStep = new CSimUsimR6MBMSTest14;
       
   778 		}	
       
   779 	else if(aStepName == _L("UsimR6MBMSTest15"))
       
   780 		{
       
   781 		testStep = new CSimUsimR6MBMSTest15;
       
   782 		}
       
   783 	else if(aStepName == _L("UsimR6MBMSTest16"))
       
   784 		{
       
   785 		testStep = new CSimUsimR6MBMSTest16;
       
   786 		}	
       
   787 	else if(aStepName == _L("UsimR6MBMSTest17"))
       
   788 		{
       
   789 		testStep = new CSimUsimR6MBMSTest17;
       
   790 		}
       
   791 	else if(aStepName == _L("UsimR6MBMSTest18"))
       
   792 		{
       
   793 		testStep = new CSimUsimR6MBMSTest18;
       
   794 		}	
       
   795 	else if(aStepName == _L("UsimR6MBMSTest19"))
       
   796 		{
       
   797 		testStep = new CSimUsimR6MBMSTest19;
       
   798 		}	
       
   799 	else if(aStepName == _L("UsimR6MBMSTest20"))
       
   800 		{
       
   801 		testStep = new CSimUsimR6MBMSTest20;
       
   802 		}
       
   803 	else if(aStepName == _L("UsimR6MBMSTest21"))
       
   804 		{
       
   805 		testStep = new CSimUsimR6MBMSTest21;
       
   806 		}
       
   807 	else if(aStepName == _L("UsimR6MBMSTest22"))
       
   808 		{
       
   809 		testStep = new CSimUsimR6MBMSTest22;
       
   810 		}
       
   811 	else if(aStepName == _L("UsimR6MBMSTest23"))
       
   812 		{
       
   813 		testStep = new CSimUsimR6MBMSTest23;
       
   814 		}
       
   815 	else if(aStepName == _L("UsimR6MBMSTest24"))
       
   816 		{
       
   817 		testStep = new CSimUsimR6MBMSTest24;
       
   818 		}
       
   819 	else if(aStepName == _L("UsimR6MBMSTest25"))
       
   820 		{
       
   821 		testStep = new CSimUsimR6MBMSTest25;
       
   822 		}
       
   823 	else if(aStepName == _L("UsimR6MBMSTest26"))
       
   824 		{
       
   825 		testStep = new CSimUsimR6MBMSTest26;
       
   826 		}
       
   827 	else if(aStepName == _L("UsimR6MBMSTest27"))
       
   828 		{
       
   829 		testStep = new CSimUsimR6MBMSTest27;
       
   830 		}
       
   831 	else if(aStepName == _L("UsimR6MBMSTest28"))
       
   832 		{
       
   833 		testStep = new CSimUsimR6MBMSTest28;
       
   834 		}
       
   835 	else if(aStepName == _L("UsimR6MBMSTest29"))
       
   836 		{
       
   837 		testStep = new CSimUsimR6MBMSTest29;
       
   838 		}
       
   839    	return testStep;
       
   840 	}
       
   841 
       
   842 
       
   843