cryptomgmtlibs/securitytestfw/test/testhandler2/tScriptSetup.h
changeset 0 2c201484c85f
child 8 35751d3474b7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cryptomgmtlibs/securitytestfw/test/testhandler2/tScriptSetup.h	Wed Jul 08 11:25:26 2009 +0100
@@ -0,0 +1,73 @@
+/*
+* Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*
+*/
+
+
+#ifndef __T_SCRIPTSETUP_H__
+#define __T_SCRIPTSETUP_H__
+
+#include <testhandler2/t_testsetup.h>
+#include <testhandler2/tscripttests.h>
+
+//test setup base classes
+_LIT8(KActionStart, "<action>");
+_LIT8(KActionEnd, "</action>");
+_LIT8(KActionNameStart, "<actionname>");
+_LIT8(KActionNameEnd, "</actionname>");
+_LIT8(KActionTypeStart, "<actiontype>");
+_LIT8(KActionTypeEnd, "</actiontype>");
+_LIT8(KActionBodyStart, "<actionbody>");
+_LIT8(KActionBodyEnd, "</actionbody>");
+_LIT8(KActionResultStart, "<actionresult>");
+_LIT8(KActionResultEnd, "</actionresult>");
+_LIT8(KActionGroupingStart, "<actiongrouping>");
+_LIT8(KActionGroupingEnd, "</actiongrouping>");
+_LIT8(KKnownDefectStart, "<knowndefect>");
+_LIT8(KKnownDefectEnd, "</knowndefect>");
+
+class CTestAction;
+class TTestActionSpec;
+class CTestSetup;
+class CTestSpec;
+
+
+class CScriptSetup : public CTestSetup
+	{
+public:
+	IMPORT_C static CScriptSetup* NewLC(CConsoleBase* aConsole);
+
+public:
+	//aTestSpec is the class that holds the array of test actions, and has the GetNextTest function
+	//theTestTypes is the static array of test types 
+	//aCommandLineSettings contains the command line parameters
+	IMPORT_C virtual void SetupTestsL(RFs& aFs,	CTestSpec& aTestSpec, TScriptTests theTestTypes[],
+			const CTestHandlerSettings& aCommandLineSettings);
+	IMPORT_C ~CScriptSetup();
+
+	IMPORT_C TBool InitialiseL(RFs &aFs, const TDesC& aDefaultScript = KNullDesC, const TDesC& aDefaultLog = KNullDesC, TBool aUseCommandLine = ETrue);
+
+protected:
+	CScriptSetup(CConsoleBase* aConsole);
+
+protected:
+	HBufC8* iTestInput;
+
+protected:
+	IMPORT_C virtual CTestAction* CreateActionL(RFs& aFs, const TTestActionSpec& aTestActionSpec, 
+		const TScriptTests theTestArray[]) const;
+	};
+
+#endif