First public contribution.
1 // Copyright (c) 2002-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 // Test system includes
20 #include <testframework.h>
22 #include "parseline.h"
24 #include "TSU_MmTsthStep02.h"
25 #include "TSU_MmTsthSuite02.h"
28 TVerdict RTSUMmTsthStep02::OpenL()
30 // initialise iScript and associated objects for tests. if this fails, tests are
31 // inconclusive (will not run)
32 iLogClient = iSuite->LogSystem();
33 TRAPD(err, iTestUtils = CTestUtils::NewL(iLogClient));
36 ERR_PRINTF2(_L("Could not initialise CTestUtils, error code %d"), err);
37 return iTestStepResult = EInconclusive;
40 // NB : CScript has a NewL() for completion only : it is through NewLC that the Test
41 // Framework initialises its CScripts
43 TRAPD(err2, iTestScript = CScript::NewLC(iTestUtils, iLogClient, defTime, KNullDesC);
44 CleanupStack::Pop(iTestScript) );
47 ERR_PRINTF2(_L("Could not initialise CScript, error code %d"), err2);
48 return iTestStepResult = EInconclusive;
51 return iTestStepResult = EPass;
55 void RTSUMmTsthStep02::Close()