1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/test/testexecutelogbase.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,63 @@
1.4 +/*
1.5 +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +*
1.19 +*/
1.20 +
1.21 +
1.22 +/**
1.23 + @file TestExecuteLogBase.h
1.24 +*/
1.25 +
1.26 +#if !(defined __TESTEXECUTE_LOG_BASE_H__)
1.27 +#define __TESTEXECUTE_LOG_BASE_H__
1.28 +
1.29 +#include <e32base.h>
1.30 +#include <test/testexecutelog.h>
1.31 +#include <test/testexecutepipslog.h>
1.32 +#include <test/rfilelogger.h>
1.33 +#include <test/blockitems.h>
1.34 +
1.35 +// Abstract base class for all logging operations for TEF
1.36 +class MTestExecuteLogBase
1.37 +/**
1.38 +@internalComponent
1.39 +@test
1.40 +*/
1.41 + {
1.42 +public:
1.43 + virtual ~MTestExecuteLogBase() {};
1.44 + IMPORT_C virtual void InitialiseLoggingL(const TDesC& aScriptFilePath, TBool aSeparateLogFileMode, TInt aLogLevel) = 0;
1.45 + IMPORT_C virtual void TerminateLoggingL(const TInt aCommentedCommandsCount, const TInt aRemotePanicsCount, const TInt aRunScriptFailCount) = 0;
1.46 + IMPORT_C virtual void LogExtra(const TText8* aFile, TInt aLine, TInt aSeverity,TRefByValue<const TDesC> aFmt,...) = 0;
1.47 + IMPORT_C virtual void LogTestCaseResult(const TDesC& aFile, TInt aLine, TInt aSeverity, const TDesC& aCommand, const TDesC& aTestCaseName, TVerdict aResult) = 0;
1.48 + IMPORT_C virtual void LogToXml(const TText8* aFile, TInt aLine, TInt aSeverity,const TDesC& aCommandName, const TInt aNumberOfParams, TExtraLogField* aLogFields) = 0;
1.49 + IMPORT_C virtual void LogToXml(const TText8* aFile, TInt aLine, TInt aSeverity,const TDesC& aCommandName) = 0;
1.50 + IMPORT_C virtual void PrintCurrentScriptLine(TDes& aCurrentScriptLine) = 0;
1.51 + IMPORT_C virtual void LogResult(TVerdict aResult, const TDesC& aPanicString, TInt aScriptLineNumber,const TDesC& aCommand,const TDesC& aScriptFile,TInt aSeverity) = 0;
1.52 + IMPORT_C virtual TVerdict LogBlock( TTEFItemArray* aItemArray, const TInt aScriptLineNumber ) = 0;
1.53 + IMPORT_C virtual void SetLoggerOptions(TInt aLogMode) = 0;
1.54 + IMPORT_C virtual TInt Connect() = 0;
1.55 + IMPORT_C virtual void Close() = 0;
1.56 + IMPORT_C virtual RTestExecuteLogServ& HtmlLogger() = 0;
1.57 + IMPORT_C virtual RTestExecutePIPSLogServ& PIPSLogger() = 0;
1.58 + IMPORT_C virtual RFileFlogger& XmlLogger() = 0;
1.59 + IMPORT_C virtual TInt ShareAuto() = 0;
1.60 + IMPORT_C virtual void Write(const TDesC& aLogBuffer) = 0;
1.61 + IMPORT_C virtual void WriteFormat(TRefByValue<const TDesC> aFmt,...) = 0;
1.62 + IMPORT_C virtual void Write(const TDesC8& aLogBuffer) = 0;
1.63 + IMPORT_C virtual void WriteFormat(TRefByValue<const TDesC8> aFmt,...) = 0;
1.64 + };
1.65 +
1.66 +#endif