sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: */ sl@0: #include sl@0: #include "globalsettings.h" sl@0: #include "screenselect.h" sl@0: #include "wsdynamicresbase.h" sl@0: #include "wsdynamicresbasic.h" sl@0: sl@0: _LIT( KServerName, "wsdynamicrestestserver" ); sl@0: sl@0: GLDEF_C const TTestName ServerName() sl@0: /** sl@0: * ServerName sl@0: * sl@0: * @return - The TEF server name sl@0: */ sl@0: { sl@0: TTestName serverName(KServerName); sl@0: return serverName; sl@0: } sl@0: sl@0: GLDEF_C CTestSuite* CreateTestSuiteL() sl@0: /** sl@0: * Create the overall test suite. sl@0: * sl@0: * @return - The top level suite sl@0: */ sl@0: { sl@0: START_SUITE; sl@0: ADD_TEST_SUITE( CWsDynamicResBasic ); sl@0: ADD_TEST_SUITE( CGlobalSettings ); sl@0: END_SUITE; sl@0: } sl@0: sl@0: _LIT(KSelectScreen0, "SelectScreen0"); sl@0: _LIT(KSelectScreen1, "SelectScreen1"); sl@0: sl@0: GLDEF_C CTestStep* CreateTEFTestStep(const TDesC& aStepName, CTEFUnitServer& /* aServer */) sl@0: /** sl@0: * Create individual test steps, outside the suite. sl@0: */ sl@0: { sl@0: // Initialise test step object to NULL if no TEF step is found sl@0: CTestStep* testStep = NULL; sl@0: sl@0: if (aStepName == KSelectScreen0) sl@0: testStep = new CScreenSelect(0, aStepName); sl@0: else if (aStepName == KSelectScreen1) sl@0: testStep = new CScreenSelect(1, aStepName); sl@0: sl@0: return testStep; sl@0: } sl@0: