epoc32/include/test/testexecutelogbase.h
branchSymbian3
changeset 4 837f303aceeb
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
       
     1 /*
       
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * 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
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 /**
       
    20  @file TestExecuteLogBase.h
       
    21 */
       
    22 
       
    23 #if !(defined __TESTEXECUTE_LOG_BASE_H__)
       
    24 #define __TESTEXECUTE_LOG_BASE_H__
       
    25 
       
    26 #include <e32base.h>
       
    27 #include <test/testexecutelog.h>
       
    28 #include <test/testexecutepipslog.h>
       
    29 #include <test/rfilelogger.h>
       
    30 #include <test/blockitems.h>
       
    31 
       
    32 // Abstract base class for all logging operations for TEF
       
    33 class MTestExecuteLogBase
       
    34 /**
       
    35 @internalComponent
       
    36 @test
       
    37 */
       
    38 	{
       
    39 public:
       
    40 	virtual ~MTestExecuteLogBase() {};
       
    41 	IMPORT_C virtual void InitialiseLoggingL(const TDesC& aScriptFilePath, TBool aSeparateLogFileMode, TInt aLogLevel) = 0;
       
    42 	IMPORT_C virtual void TerminateLoggingL(const TInt aCommentedCommandsCount, const TInt aRemotePanicsCount, const TInt aRunScriptFailCount) = 0;
       
    43 	IMPORT_C virtual void LogExtra(const TText8* aFile, TInt aLine, TInt aSeverity,TRefByValue<const TDesC> aFmt,...) = 0;
       
    44 	IMPORT_C virtual void LogTestCaseResult(const TDesC& aFile, TInt aLine, TInt aSeverity, const TDesC& aCommand, const TDesC& aTestCaseName, TVerdict aResult) = 0;
       
    45 	IMPORT_C virtual void LogToXml(const TText8* aFile, TInt aLine, TInt aSeverity,const TDesC& aCommandName, const TInt aNumberOfParams, TExtraLogField* aLogFields) = 0;
       
    46 	IMPORT_C virtual void LogToXml(const TText8* aFile, TInt aLine, TInt aSeverity,const TDesC& aCommandName) = 0;
       
    47 	IMPORT_C virtual void PrintCurrentScriptLine(TDes& aCurrentScriptLine) = 0;
       
    48 	IMPORT_C virtual void LogResult(TVerdict aResult, const TDesC& aPanicString, TInt aScriptLineNumber,const TDesC& aCommand,const TDesC& aScriptFile,TInt aSeverity) = 0;
       
    49 	IMPORT_C virtual TVerdict LogBlock( TTEFItemArray* aItemArray, const TInt aScriptLineNumber ) = 0;
       
    50 	IMPORT_C virtual void SetLoggerOptions(TInt aLogMode) = 0;
       
    51 	IMPORT_C virtual TInt Connect() = 0;
       
    52 	IMPORT_C virtual void Close() = 0;
       
    53 	IMPORT_C virtual RTestExecuteLogServ& HtmlLogger() = 0;
       
    54 	IMPORT_C virtual RTestExecutePIPSLogServ& PIPSLogger() = 0;
       
    55 	IMPORT_C virtual RFileFlogger& XmlLogger() = 0;
       
    56 	IMPORT_C virtual TInt ShareAuto() = 0;
       
    57 	IMPORT_C virtual void Write(const TDesC& aLogBuffer) = 0;
       
    58 	IMPORT_C virtual void WriteFormat(TRefByValue<const TDesC> aFmt,...) = 0;
       
    59 	IMPORT_C virtual void Write(const TDesC8& aLogBuffer) = 0;
       
    60 	IMPORT_C virtual void WriteFormat(TRefByValue<const TDesC8> aFmt,...) = 0;
       
    61 	};
       
    62 
       
    63 #endif