# HG changeset patch # User Dremov Kirill (Nokia-D-MSW/Tampere) # Date 1284701444 -10800 # Node ID dcd4152cfe554bf5229ab9a6b17d8937198e66b0 # Parent 8a530a83576ac1c9c95014c3795b73937ad15525 Revision: 201035 Kit: 201037 diff -r 8a530a83576a -r dcd4152cfe55 appfw/apparchitecture/apgrfx/APGCLI.CPP --- a/appfw/apparchitecture/apgrfx/APGCLI.CPP Thu Sep 02 20:36:53 2010 +0300 +++ b/appfw/apparchitecture/apgrfx/APGCLI.CPP Fri Sep 17 08:30:44 2010 +0300 @@ -2105,8 +2105,10 @@ //If the size of the buffer is not enough expand it to required size and pass it again. if(returnValue==KErrOverflow) { - buffer->ExpandL(0, sizeRequired); - returnValue=SendReceiveWithReconnect(EAppListUpdatedAppsInfo,TIpcArgs(&ptr, &pckg)); + sizeRequired=pckg(); + buffer->ResizeL(sizeRequired); + TPtr8 newPtr=buffer->Ptr(0); + returnValue=SendReceiveWithReconnect(EAppListUpdatedAppsInfo,TIpcArgs(&newPtr, &pckg)); } if(returnValue==KErrNone) diff -r 8a530a83576a -r dcd4152cfe55 appfw/apparchitecture/apserv/APSSES.CPP --- a/appfw/apparchitecture/apserv/APSSES.CPP Thu Sep 02 20:36:53 2010 +0300 +++ b/appfw/apparchitecture/apserv/APSSES.CPP Fri Sep 17 08:30:44 2010 +0300 @@ -2410,7 +2410,7 @@ void CApaAppListServSession::UpdatedAppsInfoL(const RMessage2& aMessage) { //Read the buffer size - TInt sizeOfBuffer=aMessage.Int1(); + TInt sizeOfBuffer=aMessage.GetDesMaxLengthL(0); TInt count=iAppsUpdated.Count(); TInt sizeRequired= sizeof(TInt)+(sizeof(TApaAppUpdateInfo) * count); diff -r 8a530a83576a -r dcd4152cfe55 contextframework/cfw/src/cfserver/cfphasebase.cpp --- a/contextframework/cfw/src/cfserver/cfphasebase.cpp Thu Sep 02 20:36:53 2010 +0300 +++ b/contextframework/cfw/src/cfserver/cfphasebase.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2008 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -95,8 +95,10 @@ FUNC_LOG; __ASSERT_DEBUG( iStarterRequest, Panic( ENoRequestToComplete ) ); - - User::RequestComplete( iStarterRequest, KErrCancel ); + if ( iStarterRequest ) + { + User::RequestComplete( iStarterRequest, KErrCancel ); + } } //----------------------------------------------------------------------------- diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/ATCmdPlugin/src/atcmdplugin.cpp --- a/coreapplicationuis/ATCmdPlugin/src/atcmdplugin.cpp Thu Sep 02 20:36:53 2010 +0300 +++ b/coreapplicationuis/ATCmdPlugin/src/atcmdplugin.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -1,6 +1,6 @@ /* - * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). + * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -216,7 +216,11 @@ void CATCmdPluginEcom::HandleCommand( const TDesC8& aCmd, RBuf8& aReply, TBool /* aReplyNeeded */) { TRACE_FUNC_ENTRY - aReply.Create(REPLY_BUFFER_SIZE); + TInt errValue = aReply.Create(REPLY_BUFFER_SIZE); + if(errValue != KErrNone) + { + HandleCommandCompleted( errValue,EReplyTypeError ); + } aReply.Zero(); iReplyBuf = &aReply; diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/Rfs/tsrc/RfsTestModule/Bmarm/RfsTestModuleU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/tsrc/RfsTestModule/Bmarm/RfsTestModuleU.DEF Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/Rfs/tsrc/RfsTestModule/Bwins/RfsTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/tsrc/RfsTestModule/Bwins/RfsTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/Rfs/tsrc/RfsTestModule/conf/ui_RfsTestModule.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/tsrc/RfsTestModule/conf/ui_RfsTestModule.cfg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,107 @@ + +[Test] +title TestRfsHandlerL +create RfsTestModule RfsHandler +RfsHandler TestCRfsHandlerL +delete RfsHandler +[Endtest] + +[Test] +title TestActivateRfs +create RfsTestModule RfsHandler +RfsHandler SetupL +RfsHandler SpecialSetupL +RfsHandler TestActivateRfsLL +RfsHandler Teardown +RfsHandler SpecialTeardown +delete RfsHandler +[Endtest] + +[Test] +title TestCancelRfs +create RfsTestModule RfsHandler +RfsHandler SetupL +RfsHandler TestCancelL +RfsHandler Teardown +delete RfsHandler +[Endtest] + +[Test] +title TestConnectRfsServer +create RfsTestModule RfsClient +RfsClient TestConnectAndCloseL +delete RfsClient +[Endtest] + +[Test] +title TestPerformRfsNormal +create RfsTestModule RfsClient +RfsClient RRfsClientSetupL +RfsClient TestPerformRfsNormalL +RfsClient RRfsClientTeardown +delete RfsClient +[Endtest] + +[Test] +title TestPerformRfsDeep +create RfsTestModule RfsClient +RfsClient RRfsClientSetupL +RfsClient TestPerformRfsDeepL +RfsClient RRfsClientTeardown +delete RfsClient +[Endtest] + +[Test] +title TestPerformPostEikonRfs +create RfsTestModule RfsClient +RfsClient RRfsClientSetupL +RfsClient TestPerformPostEikonRfsL +RfsClient RRfsClientTeardown +delete RfsClient +[Endtest] + +[Test] +title TestPerformPostEikonRfsDeep +create RfsTestModule RfsClient +RfsClient RRfsClientSetupL +RfsClient TestPerformPostEikonRfsDeepL +RfsClient RRfsClientTeardown +delete RfsClient +[Endtest] + +[Test] +title TestRunScriptInDescriptorNoError +create RfsTestModule RfsClient +RfsClient RRfsClientSetupL +RfsClient TestRunScriptInDescriptorNoErrorL +RfsClient RRfsClientTeardown +delete RfsClient +[Endtest] + +[Test] +title TestRunScriptInDescriptorSyntaxError +create RfsTestModule RfsClient +RfsClient RRfsClientSetupL +RfsClient TestRunScriptInDescriptorSyntaxErrorL +RfsClient RRfsClientTeardown +delete RfsClient +[Endtest] + +[Test] +title TestRunScriptInFileNoError +create RfsTestModule RfsClient +RfsClient RRfsClientSetupL +RfsClient TestRunScriptInFileNoErrorL +RfsClient RRfsClientTeardown +delete RfsClient +[Endtest] + +[Test] +title TestRunScriptInFileNotFound +create RfsTestModule RfsClient +RfsClient RRfsClientSetupL +RfsClient TestRunScriptInFileNotFoundL +RfsClient RRfsClientTeardown +delete RfsClient +[Endtest] + \ No newline at end of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/Rfs/tsrc/RfsTestModule/eabi/RfsTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/tsrc/RfsTestModule/eabi/RfsTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/Rfs/tsrc/RfsTestModule/group/RfsTestModule.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/tsrc/RfsTestModule/group/RfsTestModule.bat Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,1 @@ +atsinterface –testmodule testscripter –config E:\Rfs\ui_RfsTestModule.cfg \ No newline at end of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/Rfs/tsrc/RfsTestModule/group/RfsTestModule.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/tsrc/RfsTestModule/group/RfsTestModule.mmp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,80 @@ +/*TYPE TESTCLASS*/ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: MMP file for STIF Test Framework's TestScripter +* testclass test module. +* +*/ + +#include + +SMPSAFE + +TARGET RfsTestModule.dll +TARGETTYPE dll +UID 0x1000008D 0x101FB3E3 + +CAPABILITY ALL -TCB +/* Remove comments and replace 0x00000000 with correct vendor id */ +// VENDORID 0x00000000 +/* Remove comments and replace 0x00000000 with correct secure id */ +// SECUREID 0x00000000 + +//TARGETPATH ?target_path +DEFFILE RfsTestModule.def + +USERINCLUDE ../inc + +OS_LAYER_SYSTEMINCLUDE +MW_LAYER_SYSTEMINCLUDE + +SOURCEPATH ../src + +SOURCE RfsTestModule.cpp + +//RESOURCE resource_file +//RESOURCE resource_file2 + +LIBRARY euser.lib +LIBRARY stiftestinterface.lib +LIBRARY stiftestengine.lib +LIBRARY rfs.lib // Restore Factory Settings API +LIBRARY ws32.lib // RWsSession +LIBRARY cone.lib // CCoeEnv + +LANG SC + +/* +START WINS +?wins_specific_information +END + +START MARM +?marm_specific_information +END +*/ +// Other possible keywords: + +// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes) +/* +START BITMAP ?target +TARGETPATH ?emulated_path_on_target_machine +HEADER +SOURCE ?color_depth ?source_bitmap +END +*/ +// DEFFILE ?filename +// AIF ?filename + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/Rfs/tsrc/RfsTestModule/group/RfsTestModule.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/tsrc/RfsTestModule/group/RfsTestModule.pkg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,60 @@ +; +; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; All rights reserved. +; This component and the accompanying materials are made available +; under the terms of "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: +; +; Installation file for STIF +; + +; Languages +&EN + +; Provide value for uid +#{"STIF"},(0x00000000),1,1,0,TYPE=SA + +; Series60 product id for S60 3.0 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + +; Localised Vendor name +%{"Nokia"} + +; Unique Vendor name +:"Nokia" + +; Logo +; None + +; Package signature - Optional +; None + +; Start of Package body + +; Condition blocks +; None + +; Options list +; None + +; Install files +"\epoc32\release\armv5\udeb\RfsTestModule.dll" - "!:\Sys\Bin\RfsTestModule.dll" + +; Embedded SIS +; None + +; End of Package body + +; PKG dependencies +; None + +; PKG capabilities +; None diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/Rfs/tsrc/RfsTestModule/group/RfsTestModule.sis Binary file coreapplicationuis/Rfs/tsrc/RfsTestModule/group/RfsTestModule.sis has changed diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/Rfs/tsrc/RfsTestModule/group/RfsTestModule_DoxyFile.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/tsrc/RfsTestModule/group/RfsTestModule_DoxyFile.txt Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,240 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "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: +# +# + +# Doxyfile 1.4.1 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = RfsTestModule +PROJECT_NUMBER = +OUTPUT_DIRECTORY = P:\\RfsTestModule\ +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = YES +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = NO +STRIP_FROM_PATH = +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +DISTRIBUTE_GROUP_DOC = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = YES +OPTIMIZE_OUTPUT_JAVA = NO +SUBGROUPING = YES +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = YES +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = NO +EXTRACT_LOCAL_METHODS = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = YES +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = NO +GENERATE_TESTLIST = NO +GENERATE_BUGLIST = NO +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = YES +FILE_VERSION_FILTER = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = P:\\RfsTestModule\ +FILE_PATTERNS = *.h \ + *.rh \ + *.hrh +RECURSIVE = YES +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = NO +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = NO +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = YES +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +BINARY_TOC = YES +TOC_EXPAND = YES +DISABLE_INDEX = YES +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = YES +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = YES +RTF_OUTPUT = Doc +COMPACT_RTF = YES +RTF_HYPERLINKS = YES +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = YES +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = NONSHARABLE_CLASS +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = NO +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = YES +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 0 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/Rfs/tsrc/RfsTestModule/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/tsrc/RfsTestModule/group/bld.inf Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: +* +*/ + +PRJ_PLATFORMS +// specify the platforms your component needs to be built for here +// defaults to WINS MARM so you can ignore this if you just build these + + DEFAULT + +PRJ_TESTEXPORTS +// NOTE: If using ARS requirements all export operations should be done under this. +// 'abld test export' +../rom/RfsTestModule.iby CORE_MW_LAYER_IBY_EXPORT_PATH(RfsTestModule.iby) + +PRJ_EXPORTS +// Specify the source file followed by its destination here +// copy will be used to copy the source file to its destination +// If there's no destination then the source file will be copied +// to the same name in \epoc32\include +// Example: +/* +\agnmodel\inc\AGMCOMON.H +*/ + + +PRJ_TESTMMPFILES + + RfsTestModule.mmp + +PRJ_MMPFILES + + +// Specify the .mmp files required for building the important component +// releasables. +// +// Specify "tidy" if the component you need to build doesn't need to be +// released. Specify "ignore" if the MMP file exists but should be +// ignored. +// Example: +/* +\agnmodel\group\agnmodel.mmp +#if defined(MARM) +\agnmodel\group\agsvexe.mmp +#endif +*/ + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/Rfs/tsrc/RfsTestModule/inc/RfsTestModule.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/tsrc/RfsTestModule/inc/RfsTestModule.h Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,226 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: STIF testclass declaration +* +*/ + +#ifndef RFSTESTMODULE_H +#define RFSTESTMODULE_H + +// INCLUDES +#include +#include +#include +#include +#include +#include // TKeyEvent +#include +#include +#include + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def +#define TEST_CLASS_VERSION_MAJOR 0 +#define TEST_CLASS_VERSION_MINOR 0 +#define TEST_CLASS_VERSION_BUILD 0 + +// Logging path +_LIT( KRfsTestModuleLogPath, "\\logs\\testframework\\RfsTestModule\\" ); +// Log file +_LIT( KRfsTestModuleLogFile, "RfsTestModule.txt" ); +_LIT( KRfsTestModuleLogFileWithTitle, "RfsTestModule_[%S].txt" ); + +// FUNCTION PROTOTYPES +//?type ?function_name(?arg_list); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; +class CRfsTestModule; + +// DATA TYPES +//enum ?declaration +//typedef ?declaration +//extern ?data_type; + +// CLASS DECLARATION + +/** +* CRfsTestModule test class for STIF Test Framework TestScripter. +* ?other_description_lines +* +* @lib ?library +* @since ?Series60_version +*/ +NONSHARABLE_CLASS(CRfsTestModule) : public CScriptBase + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CRfsTestModule* NewL( CTestModuleIf& aTestModuleIf ); + + /** + * Destructor. + */ + virtual ~CRfsTestModule(); + + public: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + public: // Functions from base classes + + /** + * From CScriptBase Runs a script line. + * @since ?Series60_version + * @param aItem Script line containing method name and parameters + * @return Symbian OS error code + */ + virtual TInt RunMethodL( CStifItemParser& aItem ); + + protected: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + protected: // Functions from base classes + + /** + * From ?base_class ?member_description + */ + //?type ?member_function(); + + private: + + /** + * C++ default constructor. + */ + CRfsTestModule( CTestModuleIf& aTestModuleIf ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + // Prohibit copy constructor if not deriving from CBase. + // ?classname( const ?classname& ); + // Prohibit assigment operator if not deriving from CBase. + // ?classname& operator=( const ?classname& ); + + /** + * Frees all resources allocated from test methods. + * @since ?Series60_version + */ + void Delete(); + + /** + * Test methods are listed below. + */ + + // CRfsHandler test methods + //void SetupEmptyL(); + //void TeardownEmpty(); + TInt SetupL(CStifItemParser& aItem); + TInt Teardown(CStifItemParser& aItem); + TInt SpecialSetupL(CStifItemParser& aItem); + TInt SpecialTeardown(CStifItemParser& aItem); + TInt TestCRfsHandlerL(CStifItemParser& aItem); + TInt TestActivateRfsLL(CStifItemParser& aItem); + TInt TestCancelL(CStifItemParser& aItem); + + + static TInt SimulateRightSoftkey( TAny* aPtr); + void DoSimulateRightL(); + + // RRfsClient test + TInt RRfsClientSetupEmptyL(CStifItemParser& aItem); + TInt RRfsClientSetupL(CStifItemParser& aItem); + TInt RRfsClientTeardown(CStifItemParser& aItem); + TInt RRfsClientTeardownEmpty(CStifItemParser& aItem); + + TInt TestConnectAndCloseL(CStifItemParser& aItem); + TInt TestPerformRfsNormalL(CStifItemParser& aItem); + TInt TestPerformRfsDeepL(CStifItemParser& aItem); + TInt TestPerformPostEikonRfsL(CStifItemParser& aItem); + TInt TestPerformPostEikonRfsDeepL(CStifItemParser& aItem); + TInt TestRunScriptInDescriptorNoErrorL(CStifItemParser& aItem); + TInt TestRunScriptInDescriptorSyntaxErrorL(CStifItemParser& aItem); + TInt TestRunScriptInFileNoErrorL(CStifItemParser& aItem); + TInt TestRunScriptInFileNotFoundL(CStifItemParser& aItem); + + + + /** + * Example test method. + * @since ?Series60_version + * @param aItem Script line containing parameters. + * @return Symbian OS error code. + */ + //virtual TInt ExampleL( CStifItemParser& aItem ); + + /** + * Method used to log version of test class + */ + void SendTestClassVersion(); + + //ADD NEW METHOD DEC HERE + //[TestMethods] - Do not remove + + public: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + protected: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + private: // Data + + // ?one_line_short_description_of_data + //?data_declaration; + + // Reserved pointer for future extension + //TAny* iReserved; + CRfsHandler* iCRfsHandler; + CPeriodic* iPeriodic; + CActiveScheduler* iScheduler; + RRfsClient iRRfsClient; + + public: // Friend classes + //?friend_class_declaration; + protected: // Friend classes + //?friend_class_declaration; + private: // Friend classes + //?friend_class_declaration; + + }; + +#endif // RFSTESTMODULE_H + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/Rfs/tsrc/RfsTestModule/init/TestFramework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/tsrc/RfsTestModule/init/TestFramework.ini Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,221 @@ +# +# This is STIF initialization file +# Comment lines start with '#'-character. +# See STIF TestFramework users guide.doc for instructions + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set following test engine settings: +# - Set Test Reporting mode. TestReportMode's possible values are: +# + 'Summary': Summary of the tested test cases. +# + 'Environment': Hardware and software info. +# + 'TestCases': Test case report. +# + 'FullReport': Set of all above ones. +# + Example 'TestReportMode= Summary TestCases' +# +# - CreateTestReport setting controls report creation mode +# + YES, Test report will created. +# + NO, No Test report. +# +# - File path indicates the base path of the test report. +# - File name indicates the name of the test report. +# +# - File format indicates the type of the test report. +# + TXT, Test report file will be txt type, for example 'TestReport.txt'. +# + HTML, Test report will be html type, for example 'TestReport.html'. +# + XML, Test report will be xml type, for example 'TestReport.xml'. +# Note, that xml format is available only when output is set to FILE. +# +# - File output indicates output source of the test report. +# + FILE, Test report logging to file. +# + RDEBUG, Test report logging to using rdebug. +# +# - File Creation Mode indicates test report overwriting if file exist. +# + OVERWRITE, Overwrites if the Test report file exist. +# + APPEND, Continue logging after the old Test report information if +# report exist. +# - Sets a device reset module's dll name(Reboot). +# + If Nokia specific reset module is not available or it is not correct one +# StifHWResetStub module may use as a template for user specific reset +# module. +# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation +# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02 +# + +[Engine_Defaults] + +TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment', + # 'TestCases' or 'FullReport' + +CreateTestReport= YES # Possible values: YES or NO + +TestReportFilePath= C:\LOGS\TestFramework\ +TestReportFileName= TestReport + +TestReportFormat= TXT # Possible values: TXT, HTML or XML +TestReportOutput= FILE # Possible values: FILE or RDEBUG +TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting + +DisableMeasurement= stifmeasurementdisablenone # Possible values are: + # 'stifmeasurementdisablenone', 'stifmeasurementdisableall' + # 'stifmeasurementplugin01', 'stifmeasurementplugin02', + # 'stifmeasurementplugin03', 'stifmeasurementplugin04', + # 'stifmeasurementplugin05' or 'stifbappeaprofiler' + +Timeout= 0 # Default timeout value for each test case. In milliseconds +UITestingSupport= YES # Possible values: YES or NO +#SeparateProcesses= YES # Possible values: YES or NO (default: NO) +[End_Defaults] + +[New_Module] +ModuleName= testscripter +TestCaseFile= c:\testframework\ui_RfsTestModule.cfg +[End_Module] + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Module configurations start +# Modules are added between module tags +# tags. Module name is specified after ModuleName= tag, like +# ModuleName= XXXXXXXXX +# Modules might have initialisation file, specified as +# IniFile= c:\testframework\YYYYYY +# Modules might have several configuration files, like +# TestCaseFile= c:\testframework\NormalCases.txt +# TestCaseFile= c:\testframework\SmokeCases.txt +# TestCaseFile= c:\testframework\ManualCases.txt + +# (TestCaseFile is synonym for old term ConfigFile) + +# Following case specifies demo module settings. Demo module +# does not read any settings from file, so tags +# IniFile and TestCaseFile are not used. +# In the simplest case it is enough to specify only the +# name of the test module when adding new test module + + + +# Load testmoduleXXX, optionally with initialization file and/or test case files +#[New_Module] +#ModuleName= testmodulexxx + +#TestModuleXXX used initialization file +#IniFile= c:\testframework\init.txt + +#TestModuleXXX used configuration file(s) +#TestCaseFile= c:\testframework\testcases1.cfg +#TestCaseFile= c:\testframework\testcases2.cfg +#TestCaseFile= c:\testframework\manualtestcases.cfg + +#[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set STIF logging overwrite parameters for Logger. +# Hardware and emulator environment logging path and styles can +# be configured from here to overwrite the Logger's implemented values. +# +# Settings description: +# - Indicates option for creation log directory/directories. If log directory/directories +# is/are not created by user they will make by software. +# + YES, Create log directory/directories if not allready exist. +# + NO, Log directory/directories not created. Only created one is used. +# +# - Overwrite emulator path setting. +# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined +# Logger's path 'D:\\LOGS\\Module\\' with those definition the path +# will be 'C:\LOGS\TestFramework\LOGS\Module\' +# +# - Overwrite emulator's logging format. +# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'. +# + HTML, Log file(s) will be html type(s), for example 'Module.html'. +# +# - Overwrited emulator logging output source. +# + FILE, Logging to file(s). +# + RDEBUG, Logging to using rdebug(s). +# +# - Overwrite hardware path setting (Same description as above in emulator path). +# - Overwrite hardware's logging format(Same description as above in emulator format). +# - Overwrite hardware's logging output source(Same description as above in emulator output). +# +# - File Creation Mode indicates file overwriting if file exist. +# + OVERWRITE, Overwrites if file(s) exist. +# + APPEND, Continue logging after the old logging information if file(s) exist. +# +# - Will thread id include to the log filename. +# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'. +# + NO, No thread id to log file(s), Example filename 'Module.txt'. +# +# - Will time stamps include the to log file. +# + YES, Time stamp added to each line in log file(s). Time stamp is +# for example'12.Nov.2003 115958 LOGGING INFO' +# + NO, No time stamp(s). +# +# - Will line breaks include to the log file. +# + YES, Each logging event includes line break and next log event is in own line. +# + NO, No line break(s). +# +# - Will event ranking include to the log file. +# + YES, Event ranking number added to each line in log file(s). Ranking number +# depends on environment's tics, for example(includes time stamp also) +# '012 12.Nov.2003 115958 LOGGING INFO' +# + NO, No event ranking. +# +# - Will write log file in unicode format. +# + YES, Log file will be written in unicode format +# + NO, Log will be written as normal, not unicode, file. +# + +[Logger_Defaults] + +#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#' +#NOTE: TestEngine and TestServer logging settings cannot change here + +#CreateLogDirectories= YES # Possible values: YES or NO + +#EmulatorBasePath= C:\LOGS\TestFramework\ +#EmulatorFormat= HTML # Possible values: TXT or HTML +#EmulatorOutput= FILE # Possible values: FILE or RDEBUG + +#HardwareBasePath= D:\LOGS\TestFramework\ +#HardwareFormat= HTML # Possible values: TXT or HTML +#HardwareOutput= FILE # Possible values: FILE or RDEBUG + +#FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +#ThreadIdToLogFile= YES # Possible values: YES or NO +#WithTimeStamp= YES # Possible values: YES or NO +#WithLineBreak= YES # Possible values: YES or NO +#WithEventRanking= YES # Possible values: YES or NO + +#FileUnicode= YES # Possible values: YES or NO +#AddTestCaseTitle= YES # Possible values: YES or NO +[End_Logger_Defaults] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set filters to be used by ConsoleUI. +# If you want to use filter with ConsoleUI, simply remove comments +# from section below and provide valid filter entries. +# Each filter line has to start with "filter= " keyword. +# Filter can contain special wildcard characters: +# * which stands for none or any literal; +# ? which stands for single character. +# Filters are not case-sensitive. + +#[Filters] +#filter= *math* +#filter= *radio* +#[End_Filters] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +# End of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/Rfs/tsrc/RfsTestModule/rom/RfsTestModule.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/tsrc/RfsTestModule/rom/RfsTestModule.iby Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,12 @@ +#ifndef __RFSTESTMODULE_IBY__ +#define __RFSTESTMODULE_IBY__ + +file=ABI_DIR\BUILD_DIR\RfsTestModule.dll SHARED_LIB_DIR\RfsTestModule.dll + +data=\epoc32\data\z\system\data\TestFramework.ini \testframework\RFS_TestFramework.ini + +data=\epoc32\data\z\system\data\ui_RfsTestModule.cfg \testframework\ui_RfsTestModule.cfg + + + +#endif diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/Rfs/tsrc/RfsTestModule/src/RfsTestModule.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/tsrc/RfsTestModule/src/RfsTestModule.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,465 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: This file contains testclass implementation. +* +*/ + +// INCLUDE FILES +#include +#include "RfsTestModule.h" +#include +#include +#include + + +// EXTERNAL DATA STRUCTURES +//extern ?external_data; + +// EXTERNAL FUNCTION PROTOTYPES +//extern ?external_function( ?arg_type,?arg_type ); + +// CONSTANTS +//const ?type ?constant_var = ?constant; +namespace +{ + // Filename of a test RFS script + _LIT( KLitTestScriptFile, "z:\\data\\coreappuistestdata\\rfs_testscript0.txt" ); + + _LIT( KLitTestScriptFileNotFound, "z:\\data\\coreappuistestdata\\thisfileisnotfound.yes"); + + // Simple RFS script, no error + _LIT( KLitTestScriptDesc, "CD C:\\system\\data\\"); + + // Simple RFS script with syntax error + _LIT( KLitTestScriptDescErr, "CerrorD C:\\system\\data\\"); +} + +// MACROS +//#define ?macro ?macro_def + +// LOCAL CONSTANTS AND MACROS +//const ?type ?constant_var = ?constant; +//#define ?macro_name ?macro_def + +// MODULE DATA STRUCTURES +//enum ?declaration +//typedef ?declaration + +// LOCAL FUNCTION PROTOTYPES +//?type ?function_name( ?arg_type, ?arg_type ); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; + +// ============================= LOCAL FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// ?function_name ?description. +// ?description +// Returns: ?value_1: ?description +// ?value_n: ?description_line1 +// ?description_line2 +// ----------------------------------------------------------------------------- +// +/* +?type ?function_name( + ?arg_type arg, // ?description + ?arg_type arg) // ?description + { + + ?code // ?comment + + // ?comment + ?code + } +*/ + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CRfsTestModule::CRfsTestModule +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CRfsTestModule::CRfsTestModule( + CTestModuleIf& aTestModuleIf ): + CScriptBase( aTestModuleIf ) + { + } + +// ----------------------------------------------------------------------------- +// CRfsTestModule::ConstructL +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CRfsTestModule::ConstructL() + { + //Read logger settings to check whether test case name is to be + //appended to log file name. + RSettingServer settingServer; + TInt ret = settingServer.Connect(); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Struct to StifLogger settigs. + TLoggerSettings loggerSettings; + // Parse StifLogger defaults from STIF initialization file. + ret = settingServer.GetLoggerSettings(loggerSettings); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Close Setting server session + settingServer.Close(); + + TFileName logFileName; + + if(loggerSettings.iAddTestCaseTitle) + { + TName title; + TestModuleIf().GetTestCaseTitleL(title); + logFileName.Format(KRfsTestModuleLogFileWithTitle, &title); + } + else + { + logFileName.Copy(KRfsTestModuleLogFile); + } + + iLog = CStifLogger::NewL( KRfsTestModuleLogPath, + logFileName, + CStifLogger::ETxt, + CStifLogger::EFile, + EFalse ); + + SendTestClassVersion(); + } + +// ----------------------------------------------------------------------------- +// CRfsTestModule::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CRfsTestModule* CRfsTestModule::NewL( + CTestModuleIf& aTestModuleIf ) + { + CRfsTestModule* self = new (ELeave) CRfsTestModule( aTestModuleIf ); + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + + return self; + + } + +void CRfsTestModule::Delete() + { + + } + +// Destructor +CRfsTestModule::~CRfsTestModule() + { + + // Delete resources allocated from test methods + Delete(); + + // Delete logger + delete iLog; + + } + +//----------------------------------------------------------------------------- +// CRfsTestModule::SendTestClassVersion +// Method used to send version of test class +//----------------------------------------------------------------------------- +// +void CRfsTestModule::SendTestClassVersion() + { + TVersion moduleVersion; + moduleVersion.iMajor = TEST_CLASS_VERSION_MAJOR; + moduleVersion.iMinor = TEST_CLASS_VERSION_MINOR; + moduleVersion.iBuild = TEST_CLASS_VERSION_BUILD; + + TFileName moduleName; + moduleName = _L("RfsTestModule.dll"); + + TBool newVersionOfMethod = ETrue; + TestModuleIf().SendTestModuleVersion(moduleVersion, moduleName, newVersionOfMethod); + } + +// ========================== OTHER EXPORTED FUNCTIONS ========================= + +// ----------------------------------------------------------------------------- +// LibEntryL is a polymorphic Dll entry point. +// Returns: CScriptBase: New CScriptBase derived object +// ----------------------------------------------------------------------------- +// +EXPORT_C CScriptBase* LibEntryL( + CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework + { + + return ( CScriptBase* ) CRfsTestModule::NewL( aTestModuleIf ); + + } + + + +// ----------------------------------------------------------------------------- +// CRfsTestModule::RunMethodL +// Run specified method. Contains also table of test mothods and their names. +// ----------------------------------------------------------------------------- +// +TInt CRfsTestModule::RunMethodL( + CStifItemParser& aItem ) + { + + static TStifFunctionInfo const KFunctions[] = + { + // Copy this line for every implemented function. + // First string is the function name used in TestScripter script file. + // Second is the actual implementation member function. + //ENTRY( "Example", CRfsTestModule::ExampleL ), + + // CRfsHandler test cases + ENTRY( "TestCRfsHandlerL", CRfsTestModule::TestCRfsHandlerL ), + ENTRY( "SetupL", CRfsTestModule::SetupL ), + ENTRY( "Teardown", CRfsTestModule::Teardown ), + ENTRY( "SpecialSetupL", CRfsTestModule::SpecialSetupL ), + ENTRY( "SpecialTeardown", CRfsTestModule::SpecialTeardown ), + ENTRY( "TestActivateRfsLL", CRfsTestModule::TestActivateRfsLL ), + ENTRY( "TestCancelL", CRfsTestModule::TestCancelL ), + + // RRfsClient test cases + ENTRY( "RRfsClientSetupL", CRfsTestModule::RRfsClientSetupL ), + ENTRY( "RRfsClientTeardown", CRfsTestModule::RRfsClientTeardown ), + ENTRY( "TestConnectAndCloseL", CRfsTestModule::TestConnectAndCloseL ), + ENTRY( "TestPerformRfsNormalL", CRfsTestModule::TestPerformRfsNormalL ), + ENTRY( "TestPerformRfsDeepL", CRfsTestModule::TestPerformRfsDeepL ), + ENTRY( "TestPerformPostEikonRfsL", CRfsTestModule::TestPerformPostEikonRfsL ), + ENTRY( "TestPerformPostEikonRfsDeepL", CRfsTestModule::TestPerformPostEikonRfsDeepL ), + ENTRY( "TestRunScriptInDescriptorNoErrorL", CRfsTestModule::TestRunScriptInDescriptorNoErrorL ), + ENTRY( "TestRunScriptInDescriptorSyntaxErrorL", CRfsTestModule::TestRunScriptInDescriptorSyntaxErrorL ), + ENTRY( "TestRunScriptInFileNoErrorL", CRfsTestModule::TestRunScriptInFileNoErrorL ), + ENTRY( "TestRunScriptInFileNotFoundL", CRfsTestModule::TestRunScriptInFileNotFoundL ), + + //ADD NEW ENTRY HERE + // [test cases entries] - Do not remove + + }; + + const TInt count = sizeof( KFunctions ) / + sizeof( TStifFunctionInfo ); + + return RunInternalL( KFunctions, count, aItem ); + + } +// Test Methods +TInt CRfsTestModule::SetupL(CStifItemParser& /*aItem*/) + { + RDebug::Print(_L("Entered SetupL")); + iCRfsHandler = new( ELeave ) CRfsHandler; + STIF_ASSERT_NOT_NULL(iCRfsHandler); + return KErrNone; + } + +TInt CRfsTestModule::Teardown(CStifItemParser& /*aItem*/) + { + RDebug::Print(_L("Entered Teardown")); + delete iCRfsHandler; + iCRfsHandler = NULL; + return KErrNone; + } + +TInt CRfsTestModule::SpecialSetupL(CStifItemParser& /*aItem*/) + { + RDebug::Print(_L("Entered SpecialSetupL")); + iPeriodic = CPeriodic::NewL( CActive::EPriorityStandard ); + STIF_ASSERT_NOT_NULL(iPeriodic); + return KErrNone; + } + + +TInt CRfsTestModule::SpecialTeardown( CStifItemParser& /*aItem*/) + { + RDebug::Print(_L("Entered SpecialTeardown")); + if ( iPeriodic ) + { + iPeriodic->Cancel(); + } + delete iPeriodic; + return KErrNone; + } + +TInt CRfsTestModule::TestCRfsHandlerL(CStifItemParser& /*aItem*/ ) + { + RDebug::Print(_L("Entered TestCRfsHandlerL")); + CRfsHandler* handler = new( ELeave ) CRfsHandler; + STIF_ASSERT_NOT_NULL(handler); + delete handler; + return KErrNone; + } + +TInt CRfsTestModule::TestActivateRfsLL( CStifItemParser& /*aItem*/ ) + { + RDebug::Print(_L("Entered TestActivateRfsLL")); + if ( !iPeriodic->IsActive() ) + { + iPeriodic->Start( 4000000, 1000000, TCallBack( SimulateRightSoftkey, static_cast( this ) ) ); + } + + TRAPD(err, iCRfsHandler->ActivateRfsL( ERfsNormal )); + STIF_ASSERT_EQUALS( KErrNone, err ); + return KErrNone; + } + +TInt CRfsTestModule::TestCancelL( CStifItemParser& /*aItem*/ ) + { + RDebug::Print(_L("Entered TestCancelL")); + iCRfsHandler->Cancel( ); + return KErrNone; + } + +TInt CRfsTestModule::SimulateRightSoftkey( TAny* aPtr) + { + RDebug::Print(_L("Entered SimulateRightSoftkey")); + CRfsTestModule* instL = static_cast( aPtr ); + instL->DoSimulateRightL(); + return KErrNone; + } + +void CRfsTestModule::DoSimulateRightL() + { + RDebug::Print(_L("Entered DoSimulateRightL")); + TKeyEvent event; + event.iCode = EKeyCBA2; + event.iScanCode = 0; + event.iRepeats = 0; + event.iModifiers = 0; + + TWsEvent wsEvent; + *( wsEvent.Key() ) = event; + wsEvent.SetType( EEventKey ); + wsEvent.SetTimeNow(); + + RDebug::Print(_L("Entered DoSimulateRightL--2")); + RWsSession* ws = &CCoeEnv::Static()->WsSession(); + + TInt wgId = ws->GetFocusWindowGroup(); + RDebug::Print(_L("DoSimulateRightL: window focus group id = %d"),wgId); + + ws->SendEventToWindowGroup( wgId, wsEvent ); + + iPeriodic->Cancel(); + RDebug::Print(_L("Leaving DoSimulateRightL")); + } + + +//RRfsClient functions +TInt CRfsTestModule::RRfsClientSetupL( CStifItemParser& /*aItem*/ ) + { + RDebug::Print(_L("Entered RRfsClientSetupL")); + TInt err = iRRfsClient.Connect(); + STIF_ASSERT_EQUALS( KErrNone, err ); + return KErrNone; + } + +TInt CRfsTestModule::RRfsClientTeardown( CStifItemParser& /*aItem*/ ) + { + RDebug::Print(_L("Entered RRfsClientTeardown")); + iRRfsClient.Close(); + return KErrNone; + } + +TInt CRfsTestModule::TestConnectAndCloseL( CStifItemParser& /*aItem*/ ) + { + RDebug::Print(_L("Entered TestConnectAndCloseL")); + RRfsClient client; + TInt err = client.Connect(); + STIF_ASSERT_EQUALS( KErrNone, err ); + client.Close(); + return KErrNone; + } + +TInt CRfsTestModule::TestPerformRfsNormalL( CStifItemParser& /*aItem*/ ) + { + RDebug::Print(_L("Entered TestPerformRfsNormalL")); + TInt err = iRRfsClient.PerformRfs( ERfsNormal ); + RDebug::Print(_L("TestPerformRfsNormalL: iRRfsClient.PerformRfs returns with err = %d"), err); + STIF_ASSERT_EQUALS( KErrNone, err ); + return KErrNone; + } + +TInt CRfsTestModule::TestPerformRfsDeepL( CStifItemParser& /*aItem*/ ) + { + RDebug::Print(_L("Entered TestPerformRfsDeepL")); + TInt err = iRRfsClient.PerformRfs( ERfsDeep ); + RDebug::Print(_L("TestPerformRfsDeepL: iRRfsClient.PerformRfs returns with err = %d"), err); + STIF_ASSERT_EQUALS( KErrNone, err ); + return KErrNone; + } + +TInt CRfsTestModule::TestPerformPostEikonRfsL( CStifItemParser& /*aItem*/ ) + { + RDebug::Print(_L("Entered TestPerformPostEikonRfsL")); + TInt err = iRRfsClient.PerformPostEikonRfs( ERfsNormal ); + STIF_ASSERT_EQUALS( KErrNone, err ); + return KErrNone; + } + +TInt CRfsTestModule::TestPerformPostEikonRfsDeepL( CStifItemParser& /*aItem*/ ) + { + RDebug::Print(_L("Entered TestPerformPostEikonRfsDeepL")); + TInt err = iRRfsClient.PerformPostEikonRfs( ERfsDeep ); + STIF_ASSERT_EQUALS( KErrNone, err ); + return KErrNone; + } + +TInt CRfsTestModule::TestRunScriptInDescriptorNoErrorL( CStifItemParser& /*aItem*/ ) + { + RDebug::Print(_L("Entered TestRunScriptInDescriptorNoErrorL")); + TInt err = iRRfsClient.RunScriptInDescriptor( KLitTestScriptDesc ); + STIF_ASSERT_EQUALS( KErrNone, err ); + return KErrNone; + } + +TInt CRfsTestModule::TestRunScriptInDescriptorSyntaxErrorL( CStifItemParser& /*aItem*/ ) + { + RDebug::Print(_L("Entered TestRunScriptInDescriptorSyntaxErrorL")); + TInt err = iRRfsClient.RunScriptInDescriptor( KLitTestScriptDescErr ); + STIF_ASSERT_EQUALS( KErrGeneral, err ); + return KErrNone; + } + +TInt CRfsTestModule::TestRunScriptInFileNoErrorL( CStifItemParser& /*aItem*/ ) + { + RDebug::Print(_L("Entered TestRunScriptInFileNoErrorL")); + TInt err = iRRfsClient.RunScriptInFile( KLitTestScriptFile ); + RDebug::Print(_L("TestRunScriptInFileNoErrorL: iRRfsClient.RunScriptInFile returns with err = %d"), err); + STIF_ASSERT_EQUALS( KErrNone, err ); + return KErrNone; + } + +TInt CRfsTestModule::TestRunScriptInFileNotFoundL( CStifItemParser& /*aItem*/ ) + { + RDebug::Print(_L("Entered TestRunScriptInFileNotFoundL")); + TInt err = iRRfsClient.RunScriptInFile( KLitTestScriptFileNotFound ); + RDebug::Print(_L("TestRunScriptInFileNotFoundL: iRRfsClient.RunScriptInFile returns with err = %d"), err); + STIF_ASSERT_EQUALS( KErrNotFound, err ); + return KErrNone; + } + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/SysAp/Src/SysApAppUi.cpp --- a/coreapplicationuis/SysAp/Src/SysApAppUi.cpp Thu Sep 02 20:36:53 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApAppUi.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -465,6 +465,10 @@ MMCStatusChangedL(); iHideFirstBeep = EFalse; #else // RD_MULTIPLE_DRIVE + if(iSysApDriveList == NULL) + { + iSysApDriveList = CSysApDriveList::NewL( iEikonEnv->FsSession() ); + } iSysApDriveList->MountDrive( iSysApDriveList->DefaultMemoryCard() ); UpdateInsertedMemoryCardsL(); #endif // RD_MULTIPLE_DRIVE @@ -472,6 +476,11 @@ if ( iSysApFeatureManager->MmcHotSwapSupported() ) { + if(iSysApMMCObserver == NULL) + { + iSysApMMCObserver = CSysApMMCObserver::NewL( + iEikonEnv->FsSession(), *iSysApDriveList, *this, iSysApFeatureManager->MmcHotSwapSupported() ); + } iSysApMMCObserver->StartMountObserver(); } @@ -565,23 +574,7 @@ if( IsStateNormal() ) { TRACES( RDebug::Print(_L("CSysApAppUi::DoStateChangedL to normal state.") ) ); - - if ( iSysApFeatureManager->MmcSupported() ) - { -#ifndef RD_MULTIPLE_DRIVE - MountMMC(); - MMCStatusChangedL(); - iHideFirstBeep = EFalse; -#else // RD_MULTIPLE_DRIVE - iSysApDriveList->MountDrive( iSysApDriveList->DefaultMemoryCard() ); - UpdateInsertedMemoryCardsL(); -#endif // RD_MULTIPLE_DRIVE - } - if ( iSysApFeatureManager->MmcHotSwapSupported() ) - { - iSysApMMCObserver->StartMountObserver(); - } - + iSysApBtController = CreateSysApBtControllerL( *this ); iSysApBtSapController = CreateSysApBtSapControllerL( *this ); @@ -2773,10 +2766,6 @@ { //Do nothing:: To supress warning } - if (iSysApKeyManagement && aKeyEvent.iCode != EKeyPowerOff && aKeyEvent.iCode != 'E') - { - response = iSysApKeyManagement->HandleKeyEventL(aKeyEvent, aType ); - } if( aType == EEventKey ) { diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/SysAp/Src/SysApPubSubObserver.cpp --- a/coreapplicationuis/SysAp/Src/SysApPubSubObserver.cpp Thu Sep 02 20:36:53 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApPubSubObserver.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -992,7 +992,8 @@ break; case EEikSecurityQueryLights: // for device lock security query - iSysApAppUi.SetLightsOnSecurityQueryL(); + case ESecurityUIsLightsQueryOnRequest: + iSysApAppUi.SetLightsOnSecurityQueryL(); break; default: diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/SysAp/Src/memorycard/sysapdrivelist.cpp --- a/coreapplicationuis/SysAp/Src/memorycard/sysapdrivelist.cpp Thu Sep 02 20:36:53 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/memorycard/sysapdrivelist.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -55,7 +55,6 @@ { // Get the default memory card. If memory card is unavailable, // then get the next best suitable drive. - iDefaultMemoryCard = 0; TInt err( DriveInfo::GetDefaultDrive( DriveInfo::EDefaultRemovableMassStorage, iDefaultMemoryCard ) ); diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/Bmarm/AIRFSPluginTestModuleU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/Bmarm/AIRFSPluginTestModuleU.DEF Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/Bwins/AIRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/Bwins/AIRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/conf/AIRFSPluginTestModule.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/conf/AIRFSPluginTestModule.cfg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,37 @@ +[Test] +title AI_Create and destroy RfsPlugin +create AIRFSPluginTestModule testClass +testClass CreatePlugin +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title AI_Test RestoreFactorySettingsL +create AIRFSPluginTestModule testClass +testClass CreatePlugin +testClass RestoreFactorySettings +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title AI_Test GetScriptL +create AIRFSPluginTestModule testClass +testClass CreatePlugin +testClass GetScript +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title AI_Test ExecuteCustomCommandL +create AIRFSPluginTestModule testClass +testClass CreatePlugin +testClass ExecuteCustomCommand +testClass DestroyPlugin +delete testClass +[Endtest] + + + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/eabi/AIRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/eabi/AIRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/group/AIRFSPluginTestModule.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/group/AIRFSPluginTestModule.mmp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,78 @@ +/*TYPE TESTCLASS*/ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: MMP file for STIF Test Framework's TestScripter +* testclass test module. +* +*/ + +#include + +SMPSAFE + +TARGET AIRFSPluginTestModule.dll +TARGETTYPE dll +UID 0x1000008D 0x101FB3E3 + +CAPABILITY ALL -TCB +/* Remove comments and replace 0x00000000 with correct vendor id */ +// VENDORID 0x00000000 +/* Remove comments and replace 0x00000000 with correct secure id */ +// SECUREID 0x00000000 + +//TARGETPATH ?target_path +DEFFILE AIRFSPluginTestModule.def + +USERINCLUDE ../inc + +OS_LAYER_SYSTEMINCLUDE +MW_LAYER_SYSTEMINCLUDE + +SOURCEPATH ../src + +SOURCE AIRFSPluginTestModule.cpp + +//RESOURCE resource_file +//RESOURCE resource_file2 + +LIBRARY euser.lib +LIBRARY stiftestinterface.lib +LIBRARY stiftestengine.lib +LIBRARY ecom.lib + +LANG SC + +/* +START WINS +?wins_specific_information +END + +START MARM +?marm_specific_information +END +*/ +// Other possible keywords: + +// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes) +/* +START BITMAP ?target +TARGETPATH ?emulated_path_on_target_machine +HEADER +SOURCE ?color_depth ?source_bitmap +END +*/ +// DEFFILE ?filename +// AIF ?filename + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/group/AIRFSPluginTestModule.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/group/AIRFSPluginTestModule.pkg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,60 @@ +; +; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; All rights reserved. +; This component and the accompanying materials are made available +; under the terms of "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: +; +; Installation file for STIF +; + +; Languages +&EN + +; Provide value for uid +#{"STIF"},(0x00000000),1,1,0,TYPE=SA + +; Series60 product id for S60 3.0 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + +; Localised Vendor name +%{"Nokia"} + +; Unique Vendor name +:"Nokia" + +; Logo +; None + +; Package signature - Optional +; None + +; Start of Package body + +; Condition blocks +; None + +; Options list +; None + +; Install files +"\epoc32\release\armv5\udeb\AIRFSPluginTestModule.dll" - "!:\Sys\Bin\AIRFSPluginTestModule.dll" + +; Embedded SIS +; None + +; End of Package body + +; PKG dependencies +; None + +; PKG capabilities +; None diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/group/AIRFSPluginTestModule_DoxyFile.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/group/AIRFSPluginTestModule_DoxyFile.txt Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,240 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "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: +# +# + +# Doxyfile 1.4.1 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = AIRFSPluginTestModule +PROJECT_NUMBER = +OUTPUT_DIRECTORY = R:\sf\mw\appsupport\coreapplicationuis\rfsplugins\tsrc\rfspluginstest\\AIRFSPluginTestModule\ +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = YES +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = NO +STRIP_FROM_PATH = +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +DISTRIBUTE_GROUP_DOC = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = YES +OPTIMIZE_OUTPUT_JAVA = NO +SUBGROUPING = YES +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = YES +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = NO +EXTRACT_LOCAL_METHODS = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = YES +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = NO +GENERATE_TESTLIST = NO +GENERATE_BUGLIST = NO +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = YES +FILE_VERSION_FILTER = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = R:\sf\mw\appsupport\coreapplicationuis\rfsplugins\tsrc\rfspluginstest\\AIRFSPluginTestModule\ +FILE_PATTERNS = *.h \ + *.rh \ + *.hrh +RECURSIVE = YES +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = NO +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = NO +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = YES +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +BINARY_TOC = YES +TOC_EXPAND = YES +DISABLE_INDEX = YES +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = YES +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = YES +RTF_OUTPUT = Doc +COMPACT_RTF = YES +RTF_HYPERLINKS = YES +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = YES +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = NONSHARABLE_CLASS +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = NO +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = YES +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 0 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/group/bld.inf Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,66 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: +* +*/ + +PRJ_PLATFORMS +// specify the platforms your component needs to be built for here +// defaults to WINS MARM so you can ignore this if you just build these + + DEFAULT + +PRJ_TESTEXPORTS +// NOTE: If using ARS requirements all export operations should be done under this. +// 'abld test export' +../init/TestFramework.ini /epoc32/winscw/c/TestFramework/TestFramework.ini +../init/TestFramework.ini /epoc32/data/z/system/data/TestFramework.ini + +../conf/AIRFSPluginTestModule.cfg /epoc32/winscw/c/TestFramework/AIRFSPluginTestModule.cfg +../conf/AIRFSPluginTestModule.cfg /epoc32/data/z/system/data/AIRFSPluginTestModule.cfg + +../rom/AIRFSPluginTestModule.iby CORE_MW_LAYER_IBY_EXPORT_PATH(AIRFSPluginTestModule.iby) + +PRJ_EXPORTS +// Specify the source file followed by its destination here +// copy will be used to copy the source file to its destination +// If there's no destination then the source file will be copied +// to the same name in \epoc32\include +// Example: +/* +\agnmodel\inc\AGMCOMON.H +*/ + +PRJ_TESTMMPFILES + + AIRFSPluginTestModule.mmp + +PRJ_MMPFILES + + +// Specify the .mmp files required for building the important component +// releasables. +// +// Specify "tidy" if the component you need to build doesn't need to be +// released. Specify "ignore" if the MMP file exists but should be +// ignored. +// Example: +/* +\agnmodel\group\agnmodel.mmp +#if defined(MARM) +\agnmodel\group\agsvexe.mmp +#endif +*/ + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/inc/AIRFSPluginTestModule.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/inc/AIRFSPluginTestModule.h Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,168 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: STIF testclass declaration +* +*/ + +#ifndef AIRFSPLUGINTESTMODULE_H +#define AIRFSPLUGINTESTMODULE_H + +// INCLUDES +#include +#include +#include +#include + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def +#define TEST_CLASS_VERSION_MAJOR 0 +#define TEST_CLASS_VERSION_MINOR 0 +#define TEST_CLASS_VERSION_BUILD 0 + +// Logging path +_LIT( KAIRFSPluginTestModuleLogPath, "\\logs\\testframework\\AIRFSPluginTestModule\\" ); +// Log file +_LIT( KAIRFSPluginTestModuleLogFile, "AIRFSPluginTestModule.txt" ); +_LIT( KAIRFSPluginTestModuleLogFileWithTitle, "AIRFSPluginTestModule_[%S].txt" ); + +// FUNCTION PROTOTYPES +//?type ?function_name(?arg_list); + +// FORWARD DECLARATIONS +class CRFSPlugin; + +//class ?FORWARD_CLASSNAME; +class CAIRFSPluginTestModule; + +// DATA TYPES +//enum ?declaration +//typedef ?declaration +//extern ?data_type; + +// CLASS DECLARATION + +/** +* CAIRFSPluginTestModule test class for STIF Test Framework TestScripter. +* ?other_description_lines +* +* @lib ?library +* @since ?Series60_version +*/ +NONSHARABLE_CLASS(CAIRFSPluginTestModule) : public CScriptBase + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CAIRFSPluginTestModule* NewL( CTestModuleIf& aTestModuleIf ); + + /** + * Destructor. + */ + virtual ~CAIRFSPluginTestModule(); + + public: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + public: // Functions from base classes + + /** + * From CScriptBase Runs a script line. + * @since ?Series60_version + * @param aItem Script line containing method name and parameters + * @return Symbian OS error code + */ + virtual TInt RunMethodL( CStifItemParser& aItem ); + + protected: // New functions + + TInt CreatePlugin( CStifItemParser& aItem ); + TInt DestroyPlugin( CStifItemParser& aItem ); + TInt RestoreFactorySettings( CStifItemParser& aItem ); + TInt GetScript( CStifItemParser& aItem ); + TInt ExecuteCustomCommand( CStifItemParser& aItem ); + + protected: // Functions from base classes + + /** + * From ?base_class ?member_description + */ + //?type ?member_function(); + + private: + + /** + * C++ default constructor. + */ + CAIRFSPluginTestModule( CTestModuleIf& aTestModuleIf ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + // Prohibit copy constructor if not deriving from CBase. + // ?classname( const ?classname& ); + // Prohibit assigment operator if not deriving from CBase. + // ?classname& operator=( const ?classname& ); + + /** + * Frees all resources allocated from test methods. + * @since ?Series60_version + */ + void Delete(); + + + /** + * Method used to log version of test class + */ + void SendTestClassVersion(); + + //ADD NEW METHOD DEC HERE + //[TestMethods] - Do not remove + + public: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + protected: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + private: // Data + CRFSPlugin* iPlugin; + + public: // Friend classes + //?friend_class_declaration; + protected: // Friend classes + //?friend_class_declaration; + private: // Friend classes + //?friend_class_declaration; + + }; + +#endif // AIRFSPLUGINTESTMODULE_H + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/init/TestFramework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/init/TestFramework.ini Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,219 @@ +# +# This is STIF initialization file +# Comment lines start with '#'-character. +# See STIF TestFramework users guide.doc for instructions + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set following test engine settings: +# - Set Test Reporting mode. TestReportMode's possible values are: +# + 'Summary': Summary of the tested test cases. +# + 'Environment': Hardware and software info. +# + 'TestCases': Test case report. +# + 'FullReport': Set of all above ones. +# + Example 'TestReportMode= Summary TestCases' +# +# - CreateTestReport setting controls report creation mode +# + YES, Test report will created. +# + NO, No Test report. +# +# - File path indicates the base path of the test report. +# - File name indicates the name of the test report. +# +# - File format indicates the type of the test report. +# + TXT, Test report file will be txt type, for example 'TestReport.txt'. +# + HTML, Test report will be html type, for example 'TestReport.html'. +# + XML, Test report will be xml type, for example 'TestReport.xml'. +# Note, that xml format is available only when output is set to FILE. +# +# - File output indicates output source of the test report. +# + FILE, Test report logging to file. +# + RDEBUG, Test report logging to using rdebug. +# +# - File Creation Mode indicates test report overwriting if file exist. +# + OVERWRITE, Overwrites if the Test report file exist. +# + APPEND, Continue logging after the old Test report information if +# report exist. +# - Sets a device reset module's dll name(Reboot). +# + If Nokia specific reset module is not available or it is not correct one +# StifHWResetStub module may use as a template for user specific reset +# module. +# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation +# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02 +# + +[Engine_Defaults] + +TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment', + # 'TestCases' or 'FullReport' + +CreateTestReport= YES # Possible values: YES or NO + +TestReportFilePath= C:\LOGS\TestFramework\ +TestReportFileName= TestReport + +TestReportFormat= TXT # Possible values: TXT, HTML or XML +TestReportOutput= FILE # Possible values: FILE or RDEBUG +TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting + +DisableMeasurement= stifmeasurementdisablenone # Possible values are: + # 'stifmeasurementdisablenone', 'stifmeasurementdisableall' + # 'stifmeasurementplugin01', 'stifmeasurementplugin02', + # 'stifmeasurementplugin03', 'stifmeasurementplugin04', + # 'stifmeasurementplugin05' or 'stifbappeaprofiler' + +Timeout= 0 # Default timeout value for each test case. In milliseconds +#UITestingSupport= YES # Possible values: YES or NO +#SeparateProcesses= YES # Possible values: YES or NO (default: NO) +[End_Defaults] + +[New_Module] +ModuleName= testscripter +TestCaseFile= Z:\TestFramework\AIRFSPluginTestModule.cfg +[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Module configurations start +# Modules are added between module tags +# tags. Module name is specified after ModuleName= tag, like +# ModuleName= XXXXXXXXX +# Modules might have initialisation file, specified as +# IniFile= c:\testframework\YYYYYY +# Modules might have several configuration files, like +# TestCaseFile= c:\testframework\NormalCases.txt +# TestCaseFile= c:\testframework\SmokeCases.txt +# TestCaseFile= c:\testframework\ManualCases.txt + +# (TestCaseFile is synonym for old term ConfigFile) + +# Following case specifies demo module settings. Demo module +# does not read any settings from file, so tags +# IniFile and TestCaseFile are not used. +# In the simplest case it is enough to specify only the +# name of the test module when adding new test module + + + +# Load testmoduleXXX, optionally with initialization file and/or test case files +#[New_Module] +#ModuleName= testmodulexxx + +#TestModuleXXX used initialization file +#IniFile= c:\testframework\init.txt + +#TestModuleXXX used configuration file(s) +#TestCaseFile= c:\testframework\testcases1.cfg +#TestCaseFile= c:\testframework\testcases2.cfg +#TestCaseFile= c:\testframework\manualtestcases.cfg + +#[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set STIF logging overwrite parameters for Logger. +# Hardware and emulator environment logging path and styles can +# be configured from here to overwrite the Logger's implemented values. +# +# Settings description: +# - Indicates option for creation log directory/directories. If log directory/directories +# is/are not created by user they will make by software. +# + YES, Create log directory/directories if not allready exist. +# + NO, Log directory/directories not created. Only created one is used. +# +# - Overwrite emulator path setting. +# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined +# Logger's path 'D:\\LOGS\\Module\\' with those definition the path +# will be 'C:\LOGS\TestFramework\LOGS\Module\' +# +# - Overwrite emulator's logging format. +# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'. +# + HTML, Log file(s) will be html type(s), for example 'Module.html'. +# +# - Overwrited emulator logging output source. +# + FILE, Logging to file(s). +# + RDEBUG, Logging to using rdebug(s). +# +# - Overwrite hardware path setting (Same description as above in emulator path). +# - Overwrite hardware's logging format(Same description as above in emulator format). +# - Overwrite hardware's logging output source(Same description as above in emulator output). +# +# - File Creation Mode indicates file overwriting if file exist. +# + OVERWRITE, Overwrites if file(s) exist. +# + APPEND, Continue logging after the old logging information if file(s) exist. +# +# - Will thread id include to the log filename. +# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'. +# + NO, No thread id to log file(s), Example filename 'Module.txt'. +# +# - Will time stamps include the to log file. +# + YES, Time stamp added to each line in log file(s). Time stamp is +# for example'12.Nov.2003 115958 LOGGING INFO' +# + NO, No time stamp(s). +# +# - Will line breaks include to the log file. +# + YES, Each logging event includes line break and next log event is in own line. +# + NO, No line break(s). +# +# - Will event ranking include to the log file. +# + YES, Event ranking number added to each line in log file(s). Ranking number +# depends on environment's tics, for example(includes time stamp also) +# '012 12.Nov.2003 115958 LOGGING INFO' +# + NO, No event ranking. +# +# - Will write log file in unicode format. +# + YES, Log file will be written in unicode format +# + NO, Log will be written as normal, not unicode, file. +# + +[Logger_Defaults] + +#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#' +#NOTE: TestEngine and TestServer logging settings cannot change here + +#CreateLogDirectories= YES # Possible values: YES or NO + +#EmulatorBasePath= C:\LOGS\TestFramework\ +#EmulatorFormat= HTML # Possible values: TXT or HTML +#EmulatorOutput= FILE # Possible values: FILE or RDEBUG + +#HardwareBasePath= D:\LOGS\TestFramework\ +#HardwareFormat= HTML # Possible values: TXT or HTML +#HardwareOutput= FILE # Possible values: FILE or RDEBUG + +#FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +#ThreadIdToLogFile= YES # Possible values: YES or NO +#WithTimeStamp= YES # Possible values: YES or NO +#WithLineBreak= YES # Possible values: YES or NO +#WithEventRanking= YES # Possible values: YES or NO + +#FileUnicode= YES # Possible values: YES or NO +#AddTestCaseTitle= YES # Possible values: YES or NO +[End_Logger_Defaults] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set filters to be used by ConsoleUI. +# If you want to use filter with ConsoleUI, simply remove comments +# from section below and provide valid filter entries. +# Each filter line has to start with "filter= " keyword. +# Filter can contain special wildcard characters: +# * which stands for none or any literal; +# ? which stands for single character. +# Filters are not case-sensitive. + +#[Filters] +#filter= *math* +#filter= *radio* +#[End_Filters] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +# End of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/rom/AIRFSPluginTestModule.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/rom/AIRFSPluginTestModule.iby Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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 __AIRFSPLUGINTESTMODULE_IBY__ +#define __AIRFSPLUGINTESTMODULE_IBY__ + +file=ABI_DIR\BUILD_DIR\AIRFSPluginTestModule.dll SHARED_LIB_DIR\AIRFSPluginTestModule.dll + +//data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini + +data=\epoc32\data\z\system\data\AIRFSPluginTestModule.cfg \testframework\AIRFSPluginTestModule.cfg + + + +#endif \ No newline at end of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/src/AIRFSPluginTestModule.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/AIRFSPluginTestModule/src/AIRFSPluginTestModule.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,308 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: This file contains testclass implementation. +* +*/ + +// INCLUDE FILES +#include +#include "AIRFSPluginTestModule.h" +#include +#include + +// EXTERNAL DATA STRUCTURES +//extern ?external_data; + +// EXTERNAL FUNCTION PROTOTYPES +//extern ?external_function( ?arg_type,?arg_type ); + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def + +// LOCAL CONSTANTS AND MACROS +//const ?type ?constant_var = ?constant; +//#define ?macro_name ?macro_def + +// MODULE DATA STRUCTURES +//enum ?declaration +//typedef ?declaration + +// LOCAL FUNCTION PROTOTYPES +//?type ?function_name( ?arg_type, ?arg_type ); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; + +// ============================= LOCAL FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// ?function_name ?description. +// ?description +// Returns: ?value_1: ?description +// ?value_n: ?description_line1 +// ?description_line2 +// ----------------------------------------------------------------------------- +// +/* +?type ?function_name( + ?arg_type arg, // ?description + ?arg_type arg) // ?description + { + + ?code // ?comment + + // ?comment + ?code + } +*/ + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CAIRFSPluginTestModule::CAIRFSPluginTestModule +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CAIRFSPluginTestModule::CAIRFSPluginTestModule( + CTestModuleIf& aTestModuleIf ): + CScriptBase( aTestModuleIf ) + { + } + +// ----------------------------------------------------------------------------- +// CAIRFSPluginTestModule::Delete +// Delete here all resources allocated and opened from test methods. +// Called from destructor. +// ----------------------------------------------------------------------------- +// +void CAIRFSPluginTestModule::Delete() + { + + } + +// ----------------------------------------------------------------------------- +// CAIRFSPluginTestModule::ConstructL +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CAIRFSPluginTestModule::ConstructL() + { + //Read logger settings to check whether test case name is to be + //appended to log file name. + RSettingServer settingServer; + TInt ret = settingServer.Connect(); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Struct to StifLogger settigs. + TLoggerSettings loggerSettings; + // Parse StifLogger defaults from STIF initialization file. + ret = settingServer.GetLoggerSettings(loggerSettings); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Close Setting server session + settingServer.Close(); + + TFileName logFileName; + + if(loggerSettings.iAddTestCaseTitle) + { + TName title; + TestModuleIf().GetTestCaseTitleL(title); + logFileName.Format(KAIRFSPluginTestModuleLogFileWithTitle, &title); + } + else + { + logFileName.Copy(KAIRFSPluginTestModuleLogFile); + } + + iLog = CStifLogger::NewL( KAIRFSPluginTestModuleLogPath, + logFileName, + CStifLogger::ETxt, + CStifLogger::EFile, + EFalse ); + + SendTestClassVersion(); + } + +// ----------------------------------------------------------------------------- +// CAIRFSPluginTestModule::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CAIRFSPluginTestModule* CAIRFSPluginTestModule::NewL( + CTestModuleIf& aTestModuleIf ) + { + CAIRFSPluginTestModule* self = new (ELeave) CAIRFSPluginTestModule( aTestModuleIf ); + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + + return self; + + } + +// Destructor +CAIRFSPluginTestModule::~CAIRFSPluginTestModule() + { + + // Delete resources allocated from test methods + Delete(); + + delete iPlugin; + REComSession::FinalClose(); + + // Delete logger + delete iLog; + + } + +//----------------------------------------------------------------------------- +// CAIRFSPluginTestModule::SendTestClassVersion +// Method used to send version of test class +//----------------------------------------------------------------------------- +// +void CAIRFSPluginTestModule::SendTestClassVersion() + { + TVersion moduleVersion; + moduleVersion.iMajor = TEST_CLASS_VERSION_MAJOR; + moduleVersion.iMinor = TEST_CLASS_VERSION_MINOR; + moduleVersion.iBuild = TEST_CLASS_VERSION_BUILD; + + TFileName moduleName; + moduleName = _L("AIRFSPluginTestModule.dll"); + + TBool newVersionOfMethod = ETrue; + TestModuleIf().SendTestModuleVersion(moduleVersion, moduleName, newVersionOfMethod); + } + + + +// ----------------------------------------------------------------------------- +// CAIRFSPluginTestModule::RunMethodL +// Run specified method. Contains also table of test mothods and their names. +// ----------------------------------------------------------------------------- +// +TInt CAIRFSPluginTestModule::RunMethodL( + CStifItemParser& aItem ) + { + + static TStifFunctionInfo const KFunctions[] = + { + // Copy this line for every implemented function. + // First string is the function name used in TestScripter script file. + // Second is the actual implementation member function. + //ENTRY( "Example", CAIRFSPluginTestModule::ExampleL ), + //ADD NEW ENTRY HERE + // [test cases entries] - Do not remove + ENTRY( "CreatePlugin", CAIRFSPluginTestModule::CreatePlugin ), + ENTRY( "DestroyPlugin", CAIRFSPluginTestModule::DestroyPlugin ), + ENTRY( "RestoreFactorySettings", CAIRFSPluginTestModule::RestoreFactorySettings ), + ENTRY( "GetScript", CAIRFSPluginTestModule::GetScript ), + ENTRY( "ExecuteCustomCommand", CAIRFSPluginTestModule::ExecuteCustomCommand ), + }; + + const TInt count = sizeof( KFunctions ) / + sizeof( TStifFunctionInfo ); + + return RunInternalL( KFunctions, count, aItem ); + + } + +TInt CAIRFSPluginTestModule::CreatePlugin(CStifItemParser& /*aItem */) + { + RDebug::Print(_L("CAIRFSPluginTestModule::CreatePlugin")); + STIF_ASSERT_NOT_LEAVES(iPlugin = CRFSPlugin::NewL( TUid::Uid( 0x2000F8B2 ) ) ); + STIF_ASSERT_NOT_NULL( iPlugin ); + + return KErrNone; + + } +TInt CAIRFSPluginTestModule::DestroyPlugin(CStifItemParser& /*aItem*/ ) + { + RDebug::Print(_L("CAIRFSPluginTestModule::DestroyPlugin")); + delete iPlugin; + iPlugin = NULL; + + return KErrNone; + } +TInt CAIRFSPluginTestModule::RestoreFactorySettings(CStifItemParser& /*aItem*/ ) + { + RDebug::Print(_L("CAIRFSPluginTestModule::RestoreFactorySettings")); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( ENormalRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EDeepRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EInitRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( static_cast( 100 ) ) ); + return KErrNone; + } +TInt CAIRFSPluginTestModule::GetScript(CStifItemParser& /*aItem*/ ) + { + RDebug::Print(_L("CAIRFSPluginTestModule::GetScript")); + TBuf<256> path; + //TBuf<256> buf; + //buf.Copy(KExpectedScript); + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( ENormalRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EDeepRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EInitRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( static_cast( 100 ), path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + return KErrNone; + } +TInt CAIRFSPluginTestModule::ExecuteCustomCommand(CStifItemParser& /*aItem*/ ) + { + RDebug::Print(_L("CAIRFSPluginTestModule::ExecuteCustomCommand")); + TBuf<256> param1( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( ENormalRfs, param1 ) ); + TBuf<1> param2( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EDeepRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EInitRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( static_cast( 100 ), param2 ) ); + return KErrNone; + } + +// ========================== OTHER EXPORTED FUNCTIONS ========================= + +// ----------------------------------------------------------------------------- +// LibEntryL is a polymorphic Dll entry point. +// Returns: CScriptBase: New CScriptBase derived object +// ----------------------------------------------------------------------------- +// +EXPORT_C CScriptBase* LibEntryL( + CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework + { + + return ( CScriptBase* ) CAIRFSPluginTestModule::NewL( aTestModuleIf ); + + } + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/Bmarm/CertRFSPluginTestModuleU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/Bmarm/CertRFSPluginTestModuleU.DEF Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/Bwins/CertRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/Bwins/CertRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/conf/CertRFSPluginTestModule.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/conf/CertRFSPluginTestModule.cfg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,39 @@ +[Test] +title Cert_Create and destroy RfsPlugin +create CertRFSPluginTestModule testClass +testClass CreatePlugin +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Cert_Test RestoreFactorySettingsL +create CertRFSPluginTestModule testClass +testClass CreatePlugin +testClass RestoreFactorySettings +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Cert_Test GetScriptL +create CertRFSPluginTestModule testClass +testClass CreatePlugin +testClass GetScript +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Cert_Test ExecuteCustomCommandL +create CertRFSPluginTestModule testClass +testClass CreatePlugin +testClass ExecuteCustomCommand +testClass DestroyPlugin +delete testClass +[Endtest] + + + + + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/eabi/CertRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/eabi/CertRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/group/CertRFSPluginTestModule.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/group/CertRFSPluginTestModule.mmp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,78 @@ +/*TYPE TESTCLASS*/ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: MMP file for STIF Test Framework's TestScripter +* testclass test module. +* +*/ + +#include + +SMPSAFE + +TARGET CertRFSPluginTestModule.dll +TARGETTYPE dll +UID 0x1000008D 0x101FB3E3 + +CAPABILITY ALL -TCB +/* Remove comments and replace 0x00000000 with correct vendor id */ +// VENDORID 0x00000000 +/* Remove comments and replace 0x00000000 with correct secure id */ +// SECUREID 0x00000000 + +//TARGETPATH ?target_path +DEFFILE CertRFSPluginTestModule.def + +USERINCLUDE ../inc + +OS_LAYER_SYSTEMINCLUDE +MW_LAYER_SYSTEMINCLUDE + +SOURCEPATH ../src + +SOURCE CertRFSPluginTestModule.cpp + +//RESOURCE resource_file +//RESOURCE resource_file2 + +LIBRARY euser.lib +LIBRARY stiftestinterface.lib +LIBRARY stiftestengine.lib +LIBRARY ecom.lib + +LANG SC + +/* +START WINS +?wins_specific_information +END + +START MARM +?marm_specific_information +END +*/ +// Other possible keywords: + +// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes) +/* +START BITMAP ?target +TARGETPATH ?emulated_path_on_target_machine +HEADER +SOURCE ?color_depth ?source_bitmap +END +*/ +// DEFFILE ?filename +// AIF ?filename + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/group/CertRFSPluginTestModule.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/group/CertRFSPluginTestModule.pkg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,60 @@ +; +; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; All rights reserved. +; This component and the accompanying materials are made available +; under the terms of "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: +; +; Installation file for STIF +; + +; Languages +&EN + +; Provide value for uid +#{"STIF"},(0x00000000),1,1,0,TYPE=SA + +; Series60 product id for S60 3.0 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + +; Localised Vendor name +%{"Nokia"} + +; Unique Vendor name +:"Nokia" + +; Logo +; None + +; Package signature - Optional +; None + +; Start of Package body + +; Condition blocks +; None + +; Options list +; None + +; Install files +"\epoc32\release\armv5\udeb\CertRFSPluginTestModule.dll" - "!:\Sys\Bin\CertRFSPluginTestModule.dll" + +; Embedded SIS +; None + +; End of Package body + +; PKG dependencies +; None + +; PKG capabilities +; None diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/group/CertRFSPluginTestModule_DoxyFile.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/group/CertRFSPluginTestModule_DoxyFile.txt Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,240 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "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: +# +# + +# Doxyfile 1.4.1 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = CertRFSPluginTestModule +PROJECT_NUMBER = +OUTPUT_DIRECTORY = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\CertRFSPluginTestModule\ +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = YES +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = NO +STRIP_FROM_PATH = +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +DISTRIBUTE_GROUP_DOC = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = YES +OPTIMIZE_OUTPUT_JAVA = NO +SUBGROUPING = YES +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = YES +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = NO +EXTRACT_LOCAL_METHODS = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = YES +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = NO +GENERATE_TESTLIST = NO +GENERATE_BUGLIST = NO +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = YES +FILE_VERSION_FILTER = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\CertRFSPluginTestModule\ +FILE_PATTERNS = *.h \ + *.rh \ + *.hrh +RECURSIVE = YES +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = NO +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = NO +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = YES +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +BINARY_TOC = YES +TOC_EXPAND = YES +DISABLE_INDEX = YES +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = YES +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = YES +RTF_OUTPUT = Doc +COMPACT_RTF = YES +RTF_HYPERLINKS = YES +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = YES +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = NONSHARABLE_CLASS +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = NO +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = YES +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 0 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/group/bld.inf Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,68 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: +* +*/ + +PRJ_PLATFORMS +// specify the platforms your component needs to be built for here +// defaults to WINS MARM so you can ignore this if you just build these + + DEFAULT + +PRJ_TESTEXPORTS +// NOTE: If using ARS requirements all export operations should be done under this. +// 'abld test export' + +../init/TestFramework.ini /epoc32/winscw/c/TestFramework/TestFramework.ini +../init/TestFramework.ini /epoc32/data/z/system/data/TestFramework.ini + +../conf/CertRFSPluginTestModule.cfg /epoc32/winscw/c/TestFramework/CertRFSPluginTestModule.cfg +../conf/CertRFSPluginTestModule.cfg /epoc32/data/z/system/data/CertRFSPluginTestModule.cfg + +../rom/CertRFSPluginTestModule.iby CORE_MW_LAYER_IBY_EXPORT_PATH(CertRFSPluginTestModule.iby) + +PRJ_EXPORTS +// Specify the source file followed by its destination here +// copy will be used to copy the source file to its destination +// If there's no destination then the source file will be copied +// to the same name in \epoc32\include +// Example: +/* +\agnmodel\inc\AGMCOMON.H +*/ + + +PRJ_TESTMMPFILES + + CertRFSPluginTestModule.mmp + +PRJ_MMPFILES + + +// Specify the .mmp files required for building the important component +// releasables. +// +// Specify "tidy" if the component you need to build doesn't need to be +// released. Specify "ignore" if the MMP file exists but should be +// ignored. +// Example: +/* +\agnmodel\group\agnmodel.mmp +#if defined(MARM) +\agnmodel\group\agsvexe.mmp +#endif +*/ + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/inc/CertRFSPluginTestModule.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/inc/CertRFSPluginTestModule.h Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,182 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: STIF testclass declaration +* +*/ + +#ifndef CERTRFSPLUGINTESTMODULE_H +#define CERTRFSPLUGINTESTMODULE_H + +// INCLUDES +#include +#include +#include +#include + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def +#define TEST_CLASS_VERSION_MAJOR 0 +#define TEST_CLASS_VERSION_MINOR 0 +#define TEST_CLASS_VERSION_BUILD 0 + +// Logging path +_LIT( KCertRFSPluginTestModuleLogPath, "\\logs\\testframework\\CertRFSPluginTestModule\\" ); +// Log file +_LIT( KCertRFSPluginTestModuleLogFile, "CertRFSPluginTestModule.txt" ); +_LIT( KCertRFSPluginTestModuleLogFileWithTitle, "CertRFSPluginTestModule_[%S].txt" ); + +// FUNCTION PROTOTYPES +//?type ?function_name(?arg_list); + + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; +class CRFSPlugin; +class CCertRFSPluginTestModule; + +// DATA TYPES +//enum ?declaration +//typedef ?declaration +//extern ?data_type; + +// CLASS DECLARATION + +/** +* CCertRFSPluginTestModule test class for STIF Test Framework TestScripter. +* ?other_description_lines +* +* @lib ?library +* @since ?Series60_version +*/ +NONSHARABLE_CLASS(CCertRFSPluginTestModule) : public CScriptBase + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CCertRFSPluginTestModule* NewL( CTestModuleIf& aTestModuleIf ); + + /** + * Destructor. + */ + virtual ~CCertRFSPluginTestModule(); + + public: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + public: // Functions from base classes + + /** + * From CScriptBase Runs a script line. + * @since ?Series60_version + * @param aItem Script line containing method name and parameters + * @return Symbian OS error code + */ + virtual TInt RunMethodL( CStifItemParser& aItem ); + + protected: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + protected: // Functions from base classes + + /** + * From ?base_class ?member_description + */ + //?type ?member_function(); + + private: + + /** + * C++ default constructor. + */ + CCertRFSPluginTestModule( CTestModuleIf& aTestModuleIf ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + // Prohibit copy constructor if not deriving from CBase. + // ?classname( const ?classname& ); + // Prohibit assigment operator if not deriving from CBase. + // ?classname& operator=( const ?classname& ); + + /** + * Frees all resources allocated from test methods. + * @since ?Series60_version + */ + void Delete(); + + + /** + * Method used to log version of test class + */ + void SendTestClassVersion(); + + /** + * Test methods are listed below. + */ + TInt CreatePlugin( CStifItemParser& aItem ); + TInt DestroyPlugin( CStifItemParser& aItem ); + TInt RestoreFactorySettings( CStifItemParser& aItem ); + TInt GetScript( CStifItemParser& aItem ); + TInt ExecuteCustomCommand( CStifItemParser& aItem ); + // Add new test methods here + + public: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + protected: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + private: // Data + CRFSPlugin* iPlugin; + // ?one_line_short_description_of_data + //?data_declaration; + + // Reserved pointer for future extension + //TAny* iReserved; + + public: // Friend classes + //?friend_class_declaration; + protected: // Friend classes + //?friend_class_declaration; + private: // Friend classes + //?friend_class_declaration; + + }; + +#endif // CERTRFSPLUGINTESTMODULE_H + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/init/TestFramework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/init/TestFramework.ini Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,219 @@ +# +# This is STIF initialization file +# Comment lines start with '#'-character. +# See STIF TestFramework users guide.doc for instructions + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set following test engine settings: +# - Set Test Reporting mode. TestReportMode's possible values are: +# + 'Summary': Summary of the tested test cases. +# + 'Environment': Hardware and software info. +# + 'TestCases': Test case report. +# + 'FullReport': Set of all above ones. +# + Example 'TestReportMode= Summary TestCases' +# +# - CreateTestReport setting controls report creation mode +# + YES, Test report will created. +# + NO, No Test report. +# +# - File path indicates the base path of the test report. +# - File name indicates the name of the test report. +# +# - File format indicates the type of the test report. +# + TXT, Test report file will be txt type, for example 'TestReport.txt'. +# + HTML, Test report will be html type, for example 'TestReport.html'. +# + XML, Test report will be xml type, for example 'TestReport.xml'. +# Note, that xml format is available only when output is set to FILE. +# +# - File output indicates output source of the test report. +# + FILE, Test report logging to file. +# + RDEBUG, Test report logging to using rdebug. +# +# - File Creation Mode indicates test report overwriting if file exist. +# + OVERWRITE, Overwrites if the Test report file exist. +# + APPEND, Continue logging after the old Test report information if +# report exist. +# - Sets a device reset module's dll name(Reboot). +# + If Nokia specific reset module is not available or it is not correct one +# StifHWResetStub module may use as a template for user specific reset +# module. +# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation +# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02 +# + +[Engine_Defaults] + +TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment', + # 'TestCases' or 'FullReport' + +CreateTestReport= YES # Possible values: YES or NO + +TestReportFilePath= C:\LOGS\TestFramework\ +TestReportFileName= TestReport + +TestReportFormat= TXT # Possible values: TXT, HTML or XML +TestReportOutput= FILE # Possible values: FILE or RDEBUG +TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting + +DisableMeasurement= stifmeasurementdisablenone # Possible values are: + # 'stifmeasurementdisablenone', 'stifmeasurementdisableall' + # 'stifmeasurementplugin01', 'stifmeasurementplugin02', + # 'stifmeasurementplugin03', 'stifmeasurementplugin04', + # 'stifmeasurementplugin05' or 'stifbappeaprofiler' + +Timeout= 0 # Default timeout value for each test case. In milliseconds +#UITestingSupport= YES # Possible values: YES or NO +#SeparateProcesses= YES # Possible values: YES or NO (default: NO) +[End_Defaults] + +[New_Module] +ModuleName= testscripter +TestCaseFile= Z:\TestFramework\CertRFSPluginTestModule.cfg +[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Module configurations start +# Modules are added between module tags +# tags. Module name is specified after ModuleName= tag, like +# ModuleName= XXXXXXXXX +# Modules might have initialisation file, specified as +# IniFile= c:\testframework\YYYYYY +# Modules might have several configuration files, like +# TestCaseFile= c:\testframework\NormalCases.txt +# TestCaseFile= c:\testframework\SmokeCases.txt +# TestCaseFile= c:\testframework\ManualCases.txt + +# (TestCaseFile is synonym for old term ConfigFile) + +# Following case specifies demo module settings. Demo module +# does not read any settings from file, so tags +# IniFile and TestCaseFile are not used. +# In the simplest case it is enough to specify only the +# name of the test module when adding new test module + + + +# Load testmoduleXXX, optionally with initialization file and/or test case files +#[New_Module] +#ModuleName= testmodulexxx + +#TestModuleXXX used initialization file +#IniFile= c:\testframework\init.txt + +#TestModuleXXX used configuration file(s) +#TestCaseFile= c:\testframework\testcases1.cfg +#TestCaseFile= c:\testframework\testcases2.cfg +#TestCaseFile= c:\testframework\manualtestcases.cfg + +#[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set STIF logging overwrite parameters for Logger. +# Hardware and emulator environment logging path and styles can +# be configured from here to overwrite the Logger's implemented values. +# +# Settings description: +# - Indicates option for creation log directory/directories. If log directory/directories +# is/are not created by user they will make by software. +# + YES, Create log directory/directories if not allready exist. +# + NO, Log directory/directories not created. Only created one is used. +# +# - Overwrite emulator path setting. +# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined +# Logger's path 'D:\\LOGS\\Module\\' with those definition the path +# will be 'C:\LOGS\TestFramework\LOGS\Module\' +# +# - Overwrite emulator's logging format. +# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'. +# + HTML, Log file(s) will be html type(s), for example 'Module.html'. +# +# - Overwrited emulator logging output source. +# + FILE, Logging to file(s). +# + RDEBUG, Logging to using rdebug(s). +# +# - Overwrite hardware path setting (Same description as above in emulator path). +# - Overwrite hardware's logging format(Same description as above in emulator format). +# - Overwrite hardware's logging output source(Same description as above in emulator output). +# +# - File Creation Mode indicates file overwriting if file exist. +# + OVERWRITE, Overwrites if file(s) exist. +# + APPEND, Continue logging after the old logging information if file(s) exist. +# +# - Will thread id include to the log filename. +# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'. +# + NO, No thread id to log file(s), Example filename 'Module.txt'. +# +# - Will time stamps include the to log file. +# + YES, Time stamp added to each line in log file(s). Time stamp is +# for example'12.Nov.2003 115958 LOGGING INFO' +# + NO, No time stamp(s). +# +# - Will line breaks include to the log file. +# + YES, Each logging event includes line break and next log event is in own line. +# + NO, No line break(s). +# +# - Will event ranking include to the log file. +# + YES, Event ranking number added to each line in log file(s). Ranking number +# depends on environment's tics, for example(includes time stamp also) +# '012 12.Nov.2003 115958 LOGGING INFO' +# + NO, No event ranking. +# +# - Will write log file in unicode format. +# + YES, Log file will be written in unicode format +# + NO, Log will be written as normal, not unicode, file. +# + +[Logger_Defaults] + +#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#' +#NOTE: TestEngine and TestServer logging settings cannot change here + +#CreateLogDirectories= YES # Possible values: YES or NO + +#EmulatorBasePath= C:\LOGS\TestFramework\ +#EmulatorFormat= HTML # Possible values: TXT or HTML +#EmulatorOutput= FILE # Possible values: FILE or RDEBUG + +#HardwareBasePath= D:\LOGS\TestFramework\ +#HardwareFormat= HTML # Possible values: TXT or HTML +#HardwareOutput= FILE # Possible values: FILE or RDEBUG + +#FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +#ThreadIdToLogFile= YES # Possible values: YES or NO +#WithTimeStamp= YES # Possible values: YES or NO +#WithLineBreak= YES # Possible values: YES or NO +#WithEventRanking= YES # Possible values: YES or NO + +#FileUnicode= YES # Possible values: YES or NO +#AddTestCaseTitle= YES # Possible values: YES or NO +[End_Logger_Defaults] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set filters to be used by ConsoleUI. +# If you want to use filter with ConsoleUI, simply remove comments +# from section below and provide valid filter entries. +# Each filter line has to start with "filter= " keyword. +# Filter can contain special wildcard characters: +# * which stands for none or any literal; +# ? which stands for single character. +# Filters are not case-sensitive. + +#[Filters] +#filter= *math* +#filter= *radio* +#[End_Filters] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +# End of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/rom/CertRFSPluginTestModule.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/rom/CertRFSPluginTestModule.iby Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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 __CERTRFSPLUGINTESTMODULE_IBY__ +#define __CERTRFSPLUGINTESTMODULE_IBY__ + +file=ABI_DIR\BUILD_DIR\CertRFSPluginTestModule.dll SHARED_LIB_DIR\CertRFSPluginTestModule.dll + +//data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini + +data=\epoc32\data\z\system\data\CertRFSPluginTestModule.cfg \testframework\CertRFSPluginTestModule.cfg + + + +#endif \ No newline at end of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/src/CertRFSPluginTestModule.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/CertRFSPluginTestModule/src/CertRFSPluginTestModule.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,304 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: This file contains testclass implementation. +* +*/ + +// INCLUDE FILES +#include +#include "CertRFSPluginTestModule.h" +#include +#include + +// EXTERNAL DATA STRUCTURES +//extern ?external_data; + +// EXTERNAL FUNCTION PROTOTYPES +//extern ?external_function( ?arg_type,?arg_type ); + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def + +// LOCAL CONSTANTS AND MACROS +//const ?type ?constant_var = ?constant; +//#define ?macro_name ?macro_def + +// MODULE DATA STRUCTURES +//enum ?declaration +//typedef ?declaration + +// LOCAL FUNCTION PROTOTYPES +//?type ?function_name( ?arg_type, ?arg_type ); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; + +// ============================= LOCAL FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// ?function_name ?description. +// ?description +// Returns: ?value_1: ?description +// ?value_n: ?description_line1 +// ?description_line2 +// ----------------------------------------------------------------------------- +// +/* +?type ?function_name( + ?arg_type arg, // ?description + ?arg_type arg) // ?description + { + + ?code // ?comment + + // ?comment + ?code + } +*/ + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CCertRFSPluginTestModule::CCertRFSPluginTestModule +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CCertRFSPluginTestModule::CCertRFSPluginTestModule( + CTestModuleIf& aTestModuleIf ): + CScriptBase( aTestModuleIf ) + { + } + +// ----------------------------------------------------------------------------- +// CCertRFSPluginTestModule::ConstructL +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CCertRFSPluginTestModule::ConstructL() + { + //Read logger settings to check whether test case name is to be + //appended to log file name. + RSettingServer settingServer; + TInt ret = settingServer.Connect(); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Struct to StifLogger settigs. + TLoggerSettings loggerSettings; + // Parse StifLogger defaults from STIF initialization file. + ret = settingServer.GetLoggerSettings(loggerSettings); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Close Setting server session + settingServer.Close(); + + TFileName logFileName; + + if(loggerSettings.iAddTestCaseTitle) + { + TName title; + TestModuleIf().GetTestCaseTitleL(title); + logFileName.Format(KCertRFSPluginTestModuleLogFileWithTitle, &title); + } + else + { + logFileName.Copy(KCertRFSPluginTestModuleLogFile); + } + + iLog = CStifLogger::NewL( KCertRFSPluginTestModuleLogPath, + logFileName, + CStifLogger::ETxt, + CStifLogger::EFile, + EFalse ); + + SendTestClassVersion(); + } + +// ----------------------------------------------------------------------------- +// CCertRFSPluginTestModule::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CCertRFSPluginTestModule* CCertRFSPluginTestModule::NewL( + CTestModuleIf& aTestModuleIf ) + { + CCertRFSPluginTestModule* self = new (ELeave) CCertRFSPluginTestModule( aTestModuleIf ); + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + + return self; + + } + +// ----------------------------------------------------------------------------- +// CCertRFSPluginTestModule::Delete +// Delete here all resources allocated and opened from test methods. +// Called from destructor. +// ----------------------------------------------------------------------------- +// +void CCertRFSPluginTestModule::Delete() + { + + } + +// Destructor +CCertRFSPluginTestModule::~CCertRFSPluginTestModule() + { + + // Delete resources allocated from test methods + Delete(); + + delete iPlugin; + REComSession::FinalClose(); + + // Delete logger + delete iLog; + + } + +// ----------------------------------------------------------------------------- +// CCertRFSPluginTestModule::RunMethodL +// Run specified method. Contains also table of test mothods and their names. +// ----------------------------------------------------------------------------- +// +TInt CCertRFSPluginTestModule::RunMethodL( + CStifItemParser& aItem ) + { + + static TStifFunctionInfo const KFunctions[] = + { + // Copy this line for every implemented function. + // First string is the function name used in TestScripter script file. + // Second is the actual implementation member function. + ENTRY( "CreatePlugin", CCertRFSPluginTestModule::CreatePlugin ), + ENTRY( "DestroyPlugin", CCertRFSPluginTestModule::DestroyPlugin ), + ENTRY( "RestoreFactorySettings", CCertRFSPluginTestModule::RestoreFactorySettings ), + ENTRY( "GetScript", CCertRFSPluginTestModule::GetScript ), + ENTRY( "ExecuteCustomCommand", CCertRFSPluginTestModule::ExecuteCustomCommand ), + //ADD NEW ENTRY HERE + // [test cases entries] - Do not remove + + }; + + const TInt count = sizeof( KFunctions ) / + sizeof( TStifFunctionInfo ); + + return RunInternalL( KFunctions, count, aItem ); + + } + +TInt CCertRFSPluginTestModule::CreatePlugin(CStifItemParser& /*aItem */) + { + STIF_ASSERT_NOT_LEAVES(iPlugin = CRFSPlugin::NewL( TUid::Uid( 0x2000F8AE ) ) ); + STIF_ASSERT_NOT_NULL( iPlugin ); + + return KErrNone; + + } +TInt CCertRFSPluginTestModule::DestroyPlugin(CStifItemParser& /*aItem*/ ) + { + delete iPlugin; + iPlugin = NULL; + + return KErrNone; + } + +TInt CCertRFSPluginTestModule::RestoreFactorySettings(CStifItemParser& /*aItem*/ ) + { + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( ENormalRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EDeepRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EInitRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( static_cast( 100 ) ) ); + return KErrNone; + } + +TInt CCertRFSPluginTestModule::GetScript(CStifItemParser& /*aItem*/ ) + { + TBuf<256> path; + //TBuf<256> buf; + //buf.Copy(KExpectedScript); + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( ENormalRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EDeepRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EInitRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( static_cast( 100 ), path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + return KErrNone; + } + +TInt CCertRFSPluginTestModule::ExecuteCustomCommand(CStifItemParser& /*aItem*/ ) + { + TBuf<256> param1( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( ENormalRfs, param1 ) ); + TBuf<1> param2( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EDeepRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EInitRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( static_cast( 100 ), param2 ) ); + return KErrNone; + } + +//----------------------------------------------------------------------------- +// CCertRFSPluginTestModule::SendTestClassVersion +// Method used to send version of test class +//----------------------------------------------------------------------------- +// +void CCertRFSPluginTestModule::SendTestClassVersion() + { + TVersion moduleVersion; + moduleVersion.iMajor = TEST_CLASS_VERSION_MAJOR; + moduleVersion.iMinor = TEST_CLASS_VERSION_MINOR; + moduleVersion.iBuild = TEST_CLASS_VERSION_BUILD; + + TFileName moduleName; + moduleName = _L("CertRFSPluginTestModule.dll"); + + TBool newVersionOfMethod = ETrue; + TestModuleIf().SendTestModuleVersion(moduleVersion, moduleName, newVersionOfMethod); + } + +// ========================== OTHER EXPORTED FUNCTIONS ========================= + +// ----------------------------------------------------------------------------- +// LibEntryL is a polymorphic Dll entry point. +// Returns: CScriptBase: New CScriptBase derived object +// ----------------------------------------------------------------------------- +// +EXPORT_C CScriptBase* LibEntryL( + CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework + { + + return ( CScriptBase* ) CCertRFSPluginTestModule::NewL( aTestModuleIf ); + + } + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/Bmarm/ClockRFSPluginTestModuleU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/Bmarm/ClockRFSPluginTestModuleU.DEF Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/Bwins/ClockRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/Bwins/ClockRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/conf/ClockRFSPluginTestModule.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/conf/ClockRFSPluginTestModule.cfg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,39 @@ +[Test] +title Clock_Create and destroy RfsPlugin +create ClockRFSPluginTestModule testClass +testClass CreatePlugin +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Clock_Test RestoreFactorySettingsL +create ClockRFSPluginTestModule testClass +testClass CreatePlugin +testClass RestoreFactorySettings +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Clock_Test GetScriptL +create ClockRFSPluginTestModule testClass +testClass CreatePlugin +testClass GetScript +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Clock_Test ExecuteCustomCommandL +create ClockRFSPluginTestModule testClass +testClass CreatePlugin +testClass ExecuteCustomCommand +testClass DestroyPlugin +delete testClass +[Endtest] + + + + + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/eabi/ClockRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/eabi/ClockRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/group/ClockRFSPluginTestModule.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/group/ClockRFSPluginTestModule.mmp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,77 @@ +/*TYPE TESTCLASS*/ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: MMP file for STIF Test Framework's TestScripter +* testclass test module. +* +*/ + +#include + +SMPSAFE + +TARGET ClockRFSPluginTestModule.dll +TARGETTYPE dll +UID 0x1000008D 0x101FB3E3 + +CAPABILITY ALL -TCB +/* Remove comments and replace 0x00000000 with correct vendor id */ +// VENDORID 0x00000000 +/* Remove comments and replace 0x00000000 with correct secure id */ +// SECUREID 0x00000000 + +//TARGETPATH ?target_path +DEFFILE ClockRFSPluginTestModule.def + +USERINCLUDE ../inc + +MW_LAYER_SYSTEMINCLUDE + +SOURCEPATH ../src + +SOURCE ClockRFSPluginTestModule.cpp + +//RESOURCE resource_file +//RESOURCE resource_file2 + +LIBRARY euser.lib +LIBRARY stiftestinterface.lib +LIBRARY stiftestengine.lib +LIBRARY ecom.lib + +LANG SC + +/* +START WINS +?wins_specific_information +END + +START MARM +?marm_specific_information +END +*/ +// Other possible keywords: + +// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes) +/* +START BITMAP ?target +TARGETPATH ?emulated_path_on_target_machine +HEADER +SOURCE ?color_depth ?source_bitmap +END +*/ +// DEFFILE ?filename +// AIF ?filename + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/group/ClockRFSPluginTestModule.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/group/ClockRFSPluginTestModule.pkg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,60 @@ +; +; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; All rights reserved. +; This component and the accompanying materials are made available +; under the terms of "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: +; +; Installation file for STIF +; + +; Languages +&EN + +; Provide value for uid +#{"STIF"},(0x00000000),1,1,0,TYPE=SA + +; Series60 product id for S60 3.0 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + +; Localised Vendor name +%{"Nokia"} + +; Unique Vendor name +:"Nokia" + +; Logo +; None + +; Package signature - Optional +; None + +; Start of Package body + +; Condition blocks +; None + +; Options list +; None + +; Install files +"\epoc32\release\armv5\udeb\ClockRFSPluginTestModule.dll" - "!:\Sys\Bin\ClockRFSPluginTestModule.dll" + +; Embedded SIS +; None + +; End of Package body + +; PKG dependencies +; None + +; PKG capabilities +; None diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/group/ClockRFSPluginTestModule_DoxyFile.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/group/ClockRFSPluginTestModule_DoxyFile.txt Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,240 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "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: +# +# + +# Doxyfile 1.4.1 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = ClockRFSPluginTestModule +PROJECT_NUMBER = +OUTPUT_DIRECTORY = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\ClockRFSPluginTestModule\ +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = YES +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = NO +STRIP_FROM_PATH = +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +DISTRIBUTE_GROUP_DOC = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = YES +OPTIMIZE_OUTPUT_JAVA = NO +SUBGROUPING = YES +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = YES +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = NO +EXTRACT_LOCAL_METHODS = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = YES +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = NO +GENERATE_TESTLIST = NO +GENERATE_BUGLIST = NO +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = YES +FILE_VERSION_FILTER = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\ClockRFSPluginTestModule\ +FILE_PATTERNS = *.h \ + *.rh \ + *.hrh +RECURSIVE = YES +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = NO +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = NO +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = YES +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +BINARY_TOC = YES +TOC_EXPAND = YES +DISABLE_INDEX = YES +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = YES +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = YES +RTF_OUTPUT = Doc +COMPACT_RTF = YES +RTF_HYPERLINKS = YES +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = YES +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = NONSHARABLE_CLASS +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = NO +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = YES +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 0 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/group/bld.inf Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: +* +*/ + +PRJ_PLATFORMS +// specify the platforms your component needs to be built for here +// defaults to WINS MARM so you can ignore this if you just build these + + DEFAULT + +PRJ_TESTEXPORTS +// NOTE: If using ARS requirements all export operations should be done under this. +// 'abld test export' +../init/TestFramework.ini /epoc32/winscw/c/TestFramework/TestFramework.ini +../init/TestFramework.ini /epoc32/data/z/system/data/TestFramework.ini + +../conf/ClockRFSPluginTestModule.cfg /epoc32/winscw/c/TestFramework/ClockRFSPluginTestModule.cfg +../conf/ClockRFSPluginTestModule.cfg /epoc32/data/z/system/data/ClockRFSPluginTestModule.cfg + +../rom/ClockRFSPluginTestModule.iby CORE_MW_LAYER_IBY_EXPORT_PATH(ClockRFSPluginTestModule.iby) + + +PRJ_EXPORTS +// Specify the source file followed by its destination here +// copy will be used to copy the source file to its destination +// If there's no destination then the source file will be copied +// to the same name in \epoc32\include +// Example: +/* +\agnmodel\inc\AGMCOMON.H +*/ + +PRJ_TESTMMPFILES + + ClockRFSPluginTestModule.mmp + +PRJ_MMPFILES + + +// Specify the .mmp files required for building the important component +// releasables. +// +// Specify "tidy" if the component you need to build doesn't need to be +// released. Specify "ignore" if the MMP file exists but should be +// ignored. +// Example: +/* +\agnmodel\group\agnmodel.mmp +#if defined(MARM) +\agnmodel\group\agsvexe.mmp +#endif +*/ + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/inc/ClockRFSPluginTestModule.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/inc/ClockRFSPluginTestModule.h Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,178 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: STIF testclass declaration +* +*/ + +#ifndef CLOCKRFSPLUGINTESTMODULE_H +#define CLOCKRFSPLUGINTESTMODULE_H + +// INCLUDES +#include +#include +#include +#include + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def +#define TEST_CLASS_VERSION_MAJOR 0 +#define TEST_CLASS_VERSION_MINOR 0 +#define TEST_CLASS_VERSION_BUILD 0 + +// Logging path +_LIT( KClockRFSPluginTestModuleLogPath, "\\logs\\testframework\\ClockRFSPluginTestModule\\" ); +// Log file +_LIT( KClockRFSPluginTestModuleLogFile, "ClockRFSPluginTestModule.txt" ); +_LIT( KClockRFSPluginTestModuleLogFileWithTitle, "ClockRFSPluginTestModule_[%S].txt" ); + +// FUNCTION PROTOTYPES +//?type ?function_name(?arg_list); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; +class CRFSPlugin; +class CClockRFSPluginTestModule; + +// DATA TYPES +//enum ?declaration +//typedef ?declaration +//extern ?data_type; + +// CLASS DECLARATION + +/** +* CClockRFSPluginTestModule test class for STIF Test Framework TestScripter. +* ?other_description_lines +* +* @lib ?library +* @since ?Series60_version +*/ +NONSHARABLE_CLASS(CClockRFSPluginTestModule) : public CScriptBase + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CClockRFSPluginTestModule* NewL( CTestModuleIf& aTestModuleIf ); + + /** + * Destructor. + */ + virtual ~CClockRFSPluginTestModule(); + + public: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + public: // Functions from base classes + + /** + * From CScriptBase Runs a script line. + * @since ?Series60_version + * @param aItem Script line containing method name and parameters + * @return Symbian OS error code + */ + virtual TInt RunMethodL( CStifItemParser& aItem ); + + protected: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + protected: // Functions from base classes + + /** + * From ?base_class ?member_description + */ + //?type ?member_function(); + + private: + + /** + * C++ default constructor. + */ + CClockRFSPluginTestModule( CTestModuleIf& aTestModuleIf ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + // Prohibit copy constructor if not deriving from CBase. + // ?classname( const ?classname& ); + // Prohibit assigment operator if not deriving from CBase. + // ?classname& operator=( const ?classname& ); + + /** + * Frees all resources allocated from test methods. + * @since ?Series60_version + */ + void Delete(); + + /** + * Test methods are listed below. + */ + TInt CreatePlugin( CStifItemParser& aItem ); + TInt DestroyPlugin( CStifItemParser& aItem ); + TInt RestoreFactorySettings( CStifItemParser& aItem ); + TInt GetScript( CStifItemParser& aItem ); + TInt ExecuteCustomCommand( CStifItemParser& aItem ); + // Add new test methods here + + /** + * Method used to log version of test class + */ + void SendTestClassVersion(); + + //ADD NEW METHOD DEC HERE + //[TestMethods] - Do not remove + + public: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + protected: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + private: // Data + CRFSPlugin* iPlugin; + + public: // Friend classes + //?friend_class_declaration; + protected: // Friend classes + //?friend_class_declaration; + private: // Friend classes + //?friend_class_declaration; + + }; + +#endif // CLOCKRFSPLUGINTESTMODULE_H + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/init/TestFramework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/init/TestFramework.ini Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,219 @@ +# +# This is STIF initialization file +# Comment lines start with '#'-character. +# See STIF TestFramework users guide.doc for instructions + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set following test engine settings: +# - Set Test Reporting mode. TestReportMode's possible values are: +# + 'Summary': Summary of the tested test cases. +# + 'Environment': Hardware and software info. +# + 'TestCases': Test case report. +# + 'FullReport': Set of all above ones. +# + Example 'TestReportMode= Summary TestCases' +# +# - CreateTestReport setting controls report creation mode +# + YES, Test report will created. +# + NO, No Test report. +# +# - File path indicates the base path of the test report. +# - File name indicates the name of the test report. +# +# - File format indicates the type of the test report. +# + TXT, Test report file will be txt type, for example 'TestReport.txt'. +# + HTML, Test report will be html type, for example 'TestReport.html'. +# + XML, Test report will be xml type, for example 'TestReport.xml'. +# Note, that xml format is available only when output is set to FILE. +# +# - File output indicates output source of the test report. +# + FILE, Test report logging to file. +# + RDEBUG, Test report logging to using rdebug. +# +# - File Creation Mode indicates test report overwriting if file exist. +# + OVERWRITE, Overwrites if the Test report file exist. +# + APPEND, Continue logging after the old Test report information if +# report exist. +# - Sets a device reset module's dll name(Reboot). +# + If Nokia specific reset module is not available or it is not correct one +# StifHWResetStub module may use as a template for user specific reset +# module. +# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation +# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02 +# + +[Engine_Defaults] + +TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment', + # 'TestCases' or 'FullReport' + +CreateTestReport= YES # Possible values: YES or NO + +TestReportFilePath= C:\LOGS\TestFramework\ +TestReportFileName= TestReport + +TestReportFormat= TXT # Possible values: TXT, HTML or XML +TestReportOutput= FILE # Possible values: FILE or RDEBUG +TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting + +DisableMeasurement= stifmeasurementdisablenone # Possible values are: + # 'stifmeasurementdisablenone', 'stifmeasurementdisableall' + # 'stifmeasurementplugin01', 'stifmeasurementplugin02', + # 'stifmeasurementplugin03', 'stifmeasurementplugin04', + # 'stifmeasurementplugin05' or 'stifbappeaprofiler' + +Timeout= 0 # Default timeout value for each test case. In milliseconds +#UITestingSupport= YES # Possible values: YES or NO +#SeparateProcesses= YES # Possible values: YES or NO (default: NO) +[End_Defaults] + +[New_Module] +ModuleName= testscripter +TestCaseFile= Z:\TestFramework\ClockRFSPluginTestModule.cfg +[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Module configurations start +# Modules are added between module tags +# tags. Module name is specified after ModuleName= tag, like +# ModuleName= XXXXXXXXX +# Modules might have initialisation file, specified as +# IniFile= c:\testframework\YYYYYY +# Modules might have several configuration files, like +# TestCaseFile= c:\testframework\NormalCases.txt +# TestCaseFile= c:\testframework\SmokeCases.txt +# TestCaseFile= c:\testframework\ManualCases.txt + +# (TestCaseFile is synonym for old term ConfigFile) + +# Following case specifies demo module settings. Demo module +# does not read any settings from file, so tags +# IniFile and TestCaseFile are not used. +# In the simplest case it is enough to specify only the +# name of the test module when adding new test module + + + +# Load testmoduleXXX, optionally with initialization file and/or test case files +#[New_Module] +#ModuleName= testmodulexxx + +#TestModuleXXX used initialization file +#IniFile= c:\testframework\init.txt + +#TestModuleXXX used configuration file(s) +#TestCaseFile= c:\testframework\testcases1.cfg +#TestCaseFile= c:\testframework\testcases2.cfg +#TestCaseFile= c:\testframework\manualtestcases.cfg + +#[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set STIF logging overwrite parameters for Logger. +# Hardware and emulator environment logging path and styles can +# be configured from here to overwrite the Logger's implemented values. +# +# Settings description: +# - Indicates option for creation log directory/directories. If log directory/directories +# is/are not created by user they will make by software. +# + YES, Create log directory/directories if not allready exist. +# + NO, Log directory/directories not created. Only created one is used. +# +# - Overwrite emulator path setting. +# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined +# Logger's path 'D:\\LOGS\\Module\\' with those definition the path +# will be 'C:\LOGS\TestFramework\LOGS\Module\' +# +# - Overwrite emulator's logging format. +# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'. +# + HTML, Log file(s) will be html type(s), for example 'Module.html'. +# +# - Overwrited emulator logging output source. +# + FILE, Logging to file(s). +# + RDEBUG, Logging to using rdebug(s). +# +# - Overwrite hardware path setting (Same description as above in emulator path). +# - Overwrite hardware's logging format(Same description as above in emulator format). +# - Overwrite hardware's logging output source(Same description as above in emulator output). +# +# - File Creation Mode indicates file overwriting if file exist. +# + OVERWRITE, Overwrites if file(s) exist. +# + APPEND, Continue logging after the old logging information if file(s) exist. +# +# - Will thread id include to the log filename. +# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'. +# + NO, No thread id to log file(s), Example filename 'Module.txt'. +# +# - Will time stamps include the to log file. +# + YES, Time stamp added to each line in log file(s). Time stamp is +# for example'12.Nov.2003 115958 LOGGING INFO' +# + NO, No time stamp(s). +# +# - Will line breaks include to the log file. +# + YES, Each logging event includes line break and next log event is in own line. +# + NO, No line break(s). +# +# - Will event ranking include to the log file. +# + YES, Event ranking number added to each line in log file(s). Ranking number +# depends on environment's tics, for example(includes time stamp also) +# '012 12.Nov.2003 115958 LOGGING INFO' +# + NO, No event ranking. +# +# - Will write log file in unicode format. +# + YES, Log file will be written in unicode format +# + NO, Log will be written as normal, not unicode, file. +# + +[Logger_Defaults] + +#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#' +#NOTE: TestEngine and TestServer logging settings cannot change here + +#CreateLogDirectories= YES # Possible values: YES or NO + +#EmulatorBasePath= C:\LOGS\TestFramework\ +#EmulatorFormat= HTML # Possible values: TXT or HTML +#EmulatorOutput= FILE # Possible values: FILE or RDEBUG + +#HardwareBasePath= D:\LOGS\TestFramework\ +#HardwareFormat= HTML # Possible values: TXT or HTML +#HardwareOutput= FILE # Possible values: FILE or RDEBUG + +#FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +#ThreadIdToLogFile= YES # Possible values: YES or NO +#WithTimeStamp= YES # Possible values: YES or NO +#WithLineBreak= YES # Possible values: YES or NO +#WithEventRanking= YES # Possible values: YES or NO + +#FileUnicode= YES # Possible values: YES or NO +#AddTestCaseTitle= YES # Possible values: YES or NO +[End_Logger_Defaults] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set filters to be used by ConsoleUI. +# If you want to use filter with ConsoleUI, simply remove comments +# from section below and provide valid filter entries. +# Each filter line has to start with "filter= " keyword. +# Filter can contain special wildcard characters: +# * which stands for none or any literal; +# ? which stands for single character. +# Filters are not case-sensitive. + +#[Filters] +#filter= *math* +#filter= *radio* +#[End_Filters] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +# End of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/rom/ClockRFSPluginTestModule.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/rom/ClockRFSPluginTestModule.iby Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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 __CLOCKRFSPLUGINTESTMODULE_IBY__ +#define __CLOCKRFSPLUGINTESTMODULE_IBY__ + +file=ABI_DIR\BUILD_DIR\ClockRFSPluginTestModule.dll SHARED_LIB_DIR\ClockRFSPluginTestModule.dll + +//data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini + +data=\epoc32\data\z\system\data\ClockRFSPluginTestModule.cfg \testframework\ClockRFSPluginTestModule.cfg + + + +#endif \ No newline at end of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/src/ClockRFSPluginTestModule.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/src/ClockRFSPluginTestModule.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,301 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: This file contains testclass implementation. +* +*/ + +// INCLUDE FILES +#include +#include "ClockRFSPluginTestModule.h" +#include +#include + +// EXTERNAL DATA STRUCTURES +//extern ?external_data; + +// EXTERNAL FUNCTION PROTOTYPES +//extern ?external_function( ?arg_type,?arg_type ); + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def + +// LOCAL CONSTANTS AND MACROS +//const ?type ?constant_var = ?constant; +//#define ?macro_name ?macro_def + +// MODULE DATA STRUCTURES +//enum ?declaration +//typedef ?declaration + +// LOCAL FUNCTION PROTOTYPES +//?type ?function_name( ?arg_type, ?arg_type ); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; + +// ============================= LOCAL FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// ?function_name ?description. +// ?description +// Returns: ?value_1: ?description +// ?value_n: ?description_line1 +// ?description_line2 +// ----------------------------------------------------------------------------- +// +/* +?type ?function_name( + ?arg_type arg, // ?description + ?arg_type arg) // ?description + { + + ?code // ?comment + + // ?comment + ?code + } +*/ + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CClockRFSPluginTestModule::CClockRFSPluginTestModule +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CClockRFSPluginTestModule::CClockRFSPluginTestModule( + CTestModuleIf& aTestModuleIf ): + CScriptBase( aTestModuleIf ) + { + } + +// ----------------------------------------------------------------------------- +// CClockRFSPluginTestModule::ConstructL +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CClockRFSPluginTestModule::ConstructL() + { + //Read logger settings to check whether test case name is to be + //appended to log file name. + RSettingServer settingServer; + TInt ret = settingServer.Connect(); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Struct to StifLogger settigs. + TLoggerSettings loggerSettings; + // Parse StifLogger defaults from STIF initialization file. + ret = settingServer.GetLoggerSettings(loggerSettings); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Close Setting server session + settingServer.Close(); + + TFileName logFileName; + + if(loggerSettings.iAddTestCaseTitle) + { + TName title; + TestModuleIf().GetTestCaseTitleL(title); + logFileName.Format(KClockRFSPluginTestModuleLogFileWithTitle, &title); + } + else + { + logFileName.Copy(KClockRFSPluginTestModuleLogFile); + } + + iLog = CStifLogger::NewL( KClockRFSPluginTestModuleLogPath, + logFileName, + CStifLogger::ETxt, + CStifLogger::EFile, + EFalse ); + + SendTestClassVersion(); + } + +// ----------------------------------------------------------------------------- +// CClockRFSPluginTestModule::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CClockRFSPluginTestModule* CClockRFSPluginTestModule::NewL( + CTestModuleIf& aTestModuleIf ) + { + CClockRFSPluginTestModule* self = new (ELeave) CClockRFSPluginTestModule( aTestModuleIf ); + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + + return self; + + } + +// ----------------------------------------------------------------------------- +// CClockRFSPluginTestModule::Delete +// Delete here all resources allocated and opened from test methods. +// Called from destructor. +// ----------------------------------------------------------------------------- +// +void CClockRFSPluginTestModule::Delete() + { + + } + +// Destructor +CClockRFSPluginTestModule::~CClockRFSPluginTestModule() + { + + // Delete resources allocated from test methods + Delete(); + + // Delete logger + delete iLog; + + } + +//----------------------------------------------------------------------------- +// CClockRFSPluginTestModule::SendTestClassVersion +// Method used to send version of test class +//----------------------------------------------------------------------------- +// +void CClockRFSPluginTestModule::SendTestClassVersion() + { + TVersion moduleVersion; + moduleVersion.iMajor = TEST_CLASS_VERSION_MAJOR; + moduleVersion.iMinor = TEST_CLASS_VERSION_MINOR; + moduleVersion.iBuild = TEST_CLASS_VERSION_BUILD; + + TFileName moduleName; + moduleName = _L("ClockRFSPluginTestModule.dll"); + + TBool newVersionOfMethod = ETrue; + TestModuleIf().SendTestModuleVersion(moduleVersion, moduleName, newVersionOfMethod); + } + +// ----------------------------------------------------------------------------- +// CClockRFSPluginTestModule::RunMethodL +// Run specified method. Contains also table of test mothods and their names. +// ----------------------------------------------------------------------------- +// +TInt CClockRFSPluginTestModule::RunMethodL( + CStifItemParser& aItem ) + { + + static TStifFunctionInfo const KFunctions[] = + { + // Copy this line for every implemented function. + // First string is the function name used in TestScripter script file. + // Second is the actual implementation member function. + ENTRY( "CreatePlugin", CClockRFSPluginTestModule::CreatePlugin ), + ENTRY( "DestroyPlugin", CClockRFSPluginTestModule::DestroyPlugin ), + ENTRY( "RestoreFactorySettings", CClockRFSPluginTestModule::RestoreFactorySettings ), + ENTRY( "GetScript", CClockRFSPluginTestModule::GetScript ), + ENTRY( "ExecuteCustomCommand", CClockRFSPluginTestModule::ExecuteCustomCommand ), + //ADD NEW ENTRY HERE + // [test cases entries] - Do not remove + + }; + + const TInt count = sizeof( KFunctions ) / + sizeof( TStifFunctionInfo ); + + return RunInternalL( KFunctions, count, aItem ); + + } + +TInt CClockRFSPluginTestModule::CreatePlugin(CStifItemParser& /*aItem */) + { + STIF_ASSERT_NOT_LEAVES(iPlugin = CRFSPlugin::NewL( TUid::Uid( 0x2000F8B3 ) ) ); + STIF_ASSERT_NOT_NULL( iPlugin ); + + return KErrNone; + + } +TInt CClockRFSPluginTestModule::DestroyPlugin(CStifItemParser& /*aItem*/ ) + { + delete iPlugin; + iPlugin = NULL; + + return KErrNone; + } + +TInt CClockRFSPluginTestModule::RestoreFactorySettings(CStifItemParser& /*aItem*/ ) + { + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( ENormalRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EDeepRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EInitRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( static_cast( 100 ) ) ); + return KErrNone; + } + +TInt CClockRFSPluginTestModule::GetScript(CStifItemParser& /*aItem*/ ) + { + TBuf<256> path; + //TBuf<256> buf; + //buf.Copy(KExpectedScript); + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( ENormalRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EDeepRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EInitRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( static_cast( 100 ), path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + return KErrNone; + } + +TInt CClockRFSPluginTestModule::ExecuteCustomCommand(CStifItemParser& /*aItem*/ ) + { + TBuf<256> param1( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( ENormalRfs, param1 ) ); + TBuf<1> param2( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EDeepRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EInitRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( static_cast( 100 ), param2 ) ); + return KErrNone; + } + +// ========================== OTHER EXPORTED FUNCTIONS ========================= + +// ----------------------------------------------------------------------------- +// LibEntryL is a polymorphic Dll entry point. +// Returns: CScriptBase: New CScriptBase derived object +// ----------------------------------------------------------------------------- +// +EXPORT_C CScriptBase* LibEntryL( + CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework + { + + return ( CScriptBase* ) CClockRFSPluginTestModule::NewL( aTestModuleIf ); + + } + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/Bmarm/DatastoreRFSPluginTestModuleU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/Bmarm/DatastoreRFSPluginTestModuleU.DEF Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/Bwins/DatastoreRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/Bwins/DatastoreRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/conf/DatastoreRFSPluginTestModule.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/conf/DatastoreRFSPluginTestModule.cfg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,39 @@ +[Test] +title Datastore_Create and destroy RfsPlugin +create DatastoreRFSPluginTestModule testClass +testClass CreatePlugin +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Datastore_Test RestoreFactorySettingsL +create DatastoreRFSPluginTestModule testClass +testClass CreatePlugin +testClass RestoreFactorySettings +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Datastore_Test GetScriptL +create DatastoreRFSPluginTestModule testClass +testClass CreatePlugin +testClass GetScript +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Datastore_Test ExecuteCustomCommandL +create DatastoreRFSPluginTestModule testClass +testClass CreatePlugin +testClass ExecuteCustomCommand +testClass DestroyPlugin +delete testClass +[Endtest] + + + + + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/eabi/DatastoreRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/eabi/DatastoreRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/group/DatastoreRFSPluginTestModule.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/group/DatastoreRFSPluginTestModule.mmp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,77 @@ +/*TYPE TESTCLASS*/ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: MMP file for STIF Test Framework's TestScripter +* testclass test module. +* +*/ + +#include + +SMPSAFE + +TARGET DatastoreRFSPluginTestModule.dll +TARGETTYPE dll +UID 0x1000008D 0x101FB3E3 + +CAPABILITY ALL -TCB +/* Remove comments and replace 0x00000000 with correct vendor id */ +// VENDORID 0x00000000 +/* Remove comments and replace 0x00000000 with correct secure id */ +// SECUREID 0x00000000 + +//TARGETPATH ?target_path +DEFFILE DatastoreRFSPluginTestModule.def + +USERINCLUDE ../inc + +MW_LAYER_SYSTEMINCLUDE + +SOURCEPATH ../src + +SOURCE DatastoreRFSPluginTestModule.cpp + +//RESOURCE resource_file +//RESOURCE resource_file2 + +LIBRARY euser.lib +LIBRARY stiftestinterface.lib +LIBRARY stiftestengine.lib +LIBRARY ecom.lib + +LANG SC + +/* +START WINS +?wins_specific_information +END + +START MARM +?marm_specific_information +END +*/ +// Other possible keywords: + +// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes) +/* +START BITMAP ?target +TARGETPATH ?emulated_path_on_target_machine +HEADER +SOURCE ?color_depth ?source_bitmap +END +*/ +// DEFFILE ?filename +// AIF ?filename + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/group/DatastoreRFSPluginTestModule.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/group/DatastoreRFSPluginTestModule.pkg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,60 @@ +; +; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; All rights reserved. +; This component and the accompanying materials are made available +; under the terms of "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: +; +; Installation file for STIF +; + +; Languages +&EN + +; Provide value for uid +#{"STIF"},(0x00000000),1,1,0,TYPE=SA + +; Series60 product id for S60 3.0 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + +; Localised Vendor name +%{"Nokia"} + +; Unique Vendor name +:"Nokia" + +; Logo +; None + +; Package signature - Optional +; None + +; Start of Package body + +; Condition blocks +; None + +; Options list +; None + +; Install files +"\epoc32\release\armv5\udeb\DatastoreRFSPluginTestModule.dll" - "!:\Sys\Bin\DatastoreRFSPluginTestModule.dll" + +; Embedded SIS +; None + +; End of Package body + +; PKG dependencies +; None + +; PKG capabilities +; None diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/group/DatastoreRFSPluginTestModule_DoxyFile.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/group/DatastoreRFSPluginTestModule_DoxyFile.txt Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,240 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "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: +# +# + +# Doxyfile 1.4.1 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = DatastoreRFSPluginTestModule +PROJECT_NUMBER = +OUTPUT_DIRECTORY = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\DatastoreRFSPluginTestModule\ +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = YES +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = NO +STRIP_FROM_PATH = +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +DISTRIBUTE_GROUP_DOC = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = YES +OPTIMIZE_OUTPUT_JAVA = NO +SUBGROUPING = YES +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = YES +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = NO +EXTRACT_LOCAL_METHODS = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = YES +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = NO +GENERATE_TESTLIST = NO +GENERATE_BUGLIST = NO +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = YES +FILE_VERSION_FILTER = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\DatastoreRFSPluginTestModule\ +FILE_PATTERNS = *.h \ + *.rh \ + *.hrh +RECURSIVE = YES +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = NO +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = NO +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = YES +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +BINARY_TOC = YES +TOC_EXPAND = YES +DISABLE_INDEX = YES +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = YES +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = YES +RTF_OUTPUT = Doc +COMPACT_RTF = YES +RTF_HYPERLINKS = YES +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = YES +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = NONSHARABLE_CLASS +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = NO +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = YES +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 0 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/group/bld.inf Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: +* +*/ + +PRJ_PLATFORMS +// specify the platforms your component needs to be built for here +// defaults to WINS MARM so you can ignore this if you just build these + + DEFAULT + +PRJ_TESTEXPORTS +// NOTE: If using ARS requirements all export operations should be done under this. +// 'abld test export' +../init/TestFramework.ini /epoc32/winscw/c/TestFramework/TestFramework.ini +../init/TestFramework.ini /epoc32/data/z/system/data/TestFramework.ini + +../conf/DatastoreRFSPluginTestModule.cfg /epoc32/winscw/c/TestFramework/DatastoreRFSPluginTestModule.cfg +../conf/DatastoreRFSPluginTestModule.cfg /epoc32/data/z/system/data/DatastoreRFSPluginTestModule.cfg + +../rom/DatastoreRFSPluginTestModule.iby CORE_MW_LAYER_IBY_EXPORT_PATH(DatastoreRFSPluginTestModule.iby) + + +PRJ_EXPORTS +// Specify the source file followed by its destination here +// copy will be used to copy the source file to its destination +// If there's no destination then the source file will be copied +// to the same name in \epoc32\include +// Example: +/* +\agnmodel\inc\AGMCOMON.H +*/ + +PRJ_TESTMMPFILES + + DatastoreRFSPluginTestModule.mmp + +PRJ_MMPFILES + + +// Specify the .mmp files required for building the important component +// releasables. +// +// Specify "tidy" if the component you need to build doesn't need to be +// released. Specify "ignore" if the MMP file exists but should be +// ignored. +// Example: +/* +\agnmodel\group\agnmodel.mmp +#if defined(MARM) +\agnmodel\group\agsvexe.mmp +#endif +*/ + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/inc/DatastoreRFSPluginTestModule.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/inc/DatastoreRFSPluginTestModule.h Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,178 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: STIF testclass declaration +* +*/ + +#ifndef DATASTORERFSPLUGINTESTMODULE_H +#define DATASTORERFSPLUGINTESTMODULE_H + +// INCLUDES +#include +#include +#include +#include + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def +#define TEST_CLASS_VERSION_MAJOR 0 +#define TEST_CLASS_VERSION_MINOR 0 +#define TEST_CLASS_VERSION_BUILD 0 + +// Logging path +_LIT( KDatastoreRFSPluginTestModuleLogPath, "\\logs\\testframework\\DatastoreRFSPluginTestModule\\" ); +// Log file +_LIT( KDatastoreRFSPluginTestModuleLogFile, "DatastoreRFSPluginTestModule.txt" ); +_LIT( KDatastoreRFSPluginTestModuleLogFileWithTitle, "DatastoreRFSPluginTestModule_[%S].txt" ); + +// FUNCTION PROTOTYPES +//?type ?function_name(?arg_list); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; +class CRFSPlugin; +class CDatastoreRFSPluginTestModule; + +// DATA TYPES +//enum ?declaration +//typedef ?declaration +//extern ?data_type; + +// CLASS DECLARATION + +/** +* CDatastoreRFSPluginTestModule test class for STIF Test Framework TestScripter. +* ?other_description_lines +* +* @lib ?library +* @since ?Series60_version +*/ +NONSHARABLE_CLASS(CDatastoreRFSPluginTestModule) : public CScriptBase + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CDatastoreRFSPluginTestModule* NewL( CTestModuleIf& aTestModuleIf ); + + /** + * Destructor. + */ + virtual ~CDatastoreRFSPluginTestModule(); + + public: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + public: // Functions from base classes + + /** + * From CScriptBase Runs a script line. + * @since ?Series60_version + * @param aItem Script line containing method name and parameters + * @return Symbian OS error code + */ + virtual TInt RunMethodL( CStifItemParser& aItem ); + + protected: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + protected: // Functions from base classes + + /** + * From ?base_class ?member_description + */ + //?type ?member_function(); + + private: + + /** + * C++ default constructor. + */ + CDatastoreRFSPluginTestModule( CTestModuleIf& aTestModuleIf ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + // Prohibit copy constructor if not deriving from CBase. + // ?classname( const ?classname& ); + // Prohibit assigment operator if not deriving from CBase. + // ?classname& operator=( const ?classname& ); + + /** + * Frees all resources allocated from test methods. + * @since ?Series60_version + */ + void Delete(); + + /** + * Test methods are listed below. + */ + TInt CreatePlugin( CStifItemParser& aItem ); + TInt DestroyPlugin( CStifItemParser& aItem ); + TInt RestoreFactorySettings( CStifItemParser& aItem ); + TInt GetScript( CStifItemParser& aItem ); + TInt ExecuteCustomCommand( CStifItemParser& aItem ); + // Add new test methods here + + /** + * Method used to log version of test class + */ + void SendTestClassVersion(); + + //ADD NEW METHOD DEC HERE + //[TestMethods] - Do not remove + + public: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + protected: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + private: // Data + CRFSPlugin* iPlugin; + + public: // Friend classes + //?friend_class_declaration; + protected: // Friend classes + //?friend_class_declaration; + private: // Friend classes + //?friend_class_declaration; + + }; + +#endif // DATASTORERFSPLUGINTESTMODULE_H + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/init/TestFramework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/init/TestFramework.ini Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,219 @@ +# +# This is STIF initialization file +# Comment lines start with '#'-character. +# See STIF TestFramework users guide.doc for instructions + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set following test engine settings: +# - Set Test Reporting mode. TestReportMode's possible values are: +# + 'Summary': Summary of the tested test cases. +# + 'Environment': Hardware and software info. +# + 'TestCases': Test case report. +# + 'FullReport': Set of all above ones. +# + Example 'TestReportMode= Summary TestCases' +# +# - CreateTestReport setting controls report creation mode +# + YES, Test report will created. +# + NO, No Test report. +# +# - File path indicates the base path of the test report. +# - File name indicates the name of the test report. +# +# - File format indicates the type of the test report. +# + TXT, Test report file will be txt type, for example 'TestReport.txt'. +# + HTML, Test report will be html type, for example 'TestReport.html'. +# + XML, Test report will be xml type, for example 'TestReport.xml'. +# Note, that xml format is available only when output is set to FILE. +# +# - File output indicates output source of the test report. +# + FILE, Test report logging to file. +# + RDEBUG, Test report logging to using rdebug. +# +# - File Creation Mode indicates test report overwriting if file exist. +# + OVERWRITE, Overwrites if the Test report file exist. +# + APPEND, Continue logging after the old Test report information if +# report exist. +# - Sets a device reset module's dll name(Reboot). +# + If Nokia specific reset module is not available or it is not correct one +# StifHWResetStub module may use as a template for user specific reset +# module. +# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation +# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02 +# + +[Engine_Defaults] + +TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment', + # 'TestCases' or 'FullReport' + +CreateTestReport= YES # Possible values: YES or NO + +TestReportFilePath= C:\LOGS\TestFramework\ +TestReportFileName= TestReport + +TestReportFormat= TXT # Possible values: TXT, HTML or XML +TestReportOutput= FILE # Possible values: FILE or RDEBUG +TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting + +DisableMeasurement= stifmeasurementdisablenone # Possible values are: + # 'stifmeasurementdisablenone', 'stifmeasurementdisableall' + # 'stifmeasurementplugin01', 'stifmeasurementplugin02', + # 'stifmeasurementplugin03', 'stifmeasurementplugin04', + # 'stifmeasurementplugin05' or 'stifbappeaprofiler' + +Timeout= 0 # Default timeout value for each test case. In milliseconds +#UITestingSupport= YES # Possible values: YES or NO +#SeparateProcesses= YES # Possible values: YES or NO (default: NO) +[End_Defaults] + +[New_Module] +ModuleName= testscripter +TestCaseFile= Z:\TestFramework\DatastoreRFSPluginTestModule.cfg +[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Module configurations start +# Modules are added between module tags +# tags. Module name is specified after ModuleName= tag, like +# ModuleName= XXXXXXXXX +# Modules might have initialisation file, specified as +# IniFile= c:\testframework\YYYYYY +# Modules might have several configuration files, like +# TestCaseFile= c:\testframework\NormalCases.txt +# TestCaseFile= c:\testframework\SmokeCases.txt +# TestCaseFile= c:\testframework\ManualCases.txt + +# (TestCaseFile is synonym for old term ConfigFile) + +# Following case specifies demo module settings. Demo module +# does not read any settings from file, so tags +# IniFile and TestCaseFile are not used. +# In the simplest case it is enough to specify only the +# name of the test module when adding new test module + + + +# Load testmoduleXXX, optionally with initialization file and/or test case files +#[New_Module] +#ModuleName= testmodulexxx + +#TestModuleXXX used initialization file +#IniFile= c:\testframework\init.txt + +#TestModuleXXX used configuration file(s) +#TestCaseFile= c:\testframework\testcases1.cfg +#TestCaseFile= c:\testframework\testcases2.cfg +#TestCaseFile= c:\testframework\manualtestcases.cfg + +#[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set STIF logging overwrite parameters for Logger. +# Hardware and emulator environment logging path and styles can +# be configured from here to overwrite the Logger's implemented values. +# +# Settings description: +# - Indicates option for creation log directory/directories. If log directory/directories +# is/are not created by user they will make by software. +# + YES, Create log directory/directories if not allready exist. +# + NO, Log directory/directories not created. Only created one is used. +# +# - Overwrite emulator path setting. +# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined +# Logger's path 'D:\\LOGS\\Module\\' with those definition the path +# will be 'C:\LOGS\TestFramework\LOGS\Module\' +# +# - Overwrite emulator's logging format. +# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'. +# + HTML, Log file(s) will be html type(s), for example 'Module.html'. +# +# - Overwrited emulator logging output source. +# + FILE, Logging to file(s). +# + RDEBUG, Logging to using rdebug(s). +# +# - Overwrite hardware path setting (Same description as above in emulator path). +# - Overwrite hardware's logging format(Same description as above in emulator format). +# - Overwrite hardware's logging output source(Same description as above in emulator output). +# +# - File Creation Mode indicates file overwriting if file exist. +# + OVERWRITE, Overwrites if file(s) exist. +# + APPEND, Continue logging after the old logging information if file(s) exist. +# +# - Will thread id include to the log filename. +# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'. +# + NO, No thread id to log file(s), Example filename 'Module.txt'. +# +# - Will time stamps include the to log file. +# + YES, Time stamp added to each line in log file(s). Time stamp is +# for example'12.Nov.2003 115958 LOGGING INFO' +# + NO, No time stamp(s). +# +# - Will line breaks include to the log file. +# + YES, Each logging event includes line break and next log event is in own line. +# + NO, No line break(s). +# +# - Will event ranking include to the log file. +# + YES, Event ranking number added to each line in log file(s). Ranking number +# depends on environment's tics, for example(includes time stamp also) +# '012 12.Nov.2003 115958 LOGGING INFO' +# + NO, No event ranking. +# +# - Will write log file in unicode format. +# + YES, Log file will be written in unicode format +# + NO, Log will be written as normal, not unicode, file. +# + +[Logger_Defaults] + +#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#' +#NOTE: TestEngine and TestServer logging settings cannot change here + +#CreateLogDirectories= YES # Possible values: YES or NO + +#EmulatorBasePath= C:\LOGS\TestFramework\ +#EmulatorFormat= HTML # Possible values: TXT or HTML +#EmulatorOutput= FILE # Possible values: FILE or RDEBUG + +#HardwareBasePath= D:\LOGS\TestFramework\ +#HardwareFormat= HTML # Possible values: TXT or HTML +#HardwareOutput= FILE # Possible values: FILE or RDEBUG + +#FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +#ThreadIdToLogFile= YES # Possible values: YES or NO +#WithTimeStamp= YES # Possible values: YES or NO +#WithLineBreak= YES # Possible values: YES or NO +#WithEventRanking= YES # Possible values: YES or NO + +#FileUnicode= YES # Possible values: YES or NO +#AddTestCaseTitle= YES # Possible values: YES or NO +[End_Logger_Defaults] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set filters to be used by ConsoleUI. +# If you want to use filter with ConsoleUI, simply remove comments +# from section below and provide valid filter entries. +# Each filter line has to start with "filter= " keyword. +# Filter can contain special wildcard characters: +# * which stands for none or any literal; +# ? which stands for single character. +# Filters are not case-sensitive. + +#[Filters] +#filter= *math* +#filter= *radio* +#[End_Filters] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +# End of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/rom/DatastoreRFSPluginTestModule.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/rom/DatastoreRFSPluginTestModule.iby Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,27 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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 __DATASTORERFSPLUGINTESTMODULE_IBY__ +#define __DATASTORERFSPLUGINTESTMODULE_IBY__ + +file=ABI_DIR\BUILD_DIR\DatastoreRFSPluginTestModule.dll SHARED_LIB_DIR\DatastoreRFSPluginTestModule.dll + +//data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini + +data=\epoc32\data\z\system\data\DatastoreRFSPluginTestModule.cfg \testframework\DatastoreRFSPluginTestModule.cfg + +#endif \ No newline at end of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/src/DatastoreRFSPluginTestModule.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DatastoreRFSPluginTestModule/src/DatastoreRFSPluginTestModule.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,305 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: This file contains testclass implementation. +* +*/ + +// INCLUDE FILES +#include +#include "DatastoreRFSPluginTestModule.h" +#include +#include + +// EXTERNAL DATA STRUCTURES +//extern ?external_data; + +// EXTERNAL FUNCTION PROTOTYPES +//extern ?external_function( ?arg_type,?arg_type ); + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def + +// LOCAL CONSTANTS AND MACROS +//const ?type ?constant_var = ?constant; +//#define ?macro_name ?macro_def + +// MODULE DATA STRUCTURES +//enum ?declaration +//typedef ?declaration + +// LOCAL FUNCTION PROTOTYPES +//?type ?function_name( ?arg_type, ?arg_type ); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; + +// ============================= LOCAL FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// ?function_name ?description. +// ?description +// Returns: ?value_1: ?description +// ?value_n: ?description_line1 +// ?description_line2 +// ----------------------------------------------------------------------------- +// +/* +?type ?function_name( + ?arg_type arg, // ?description + ?arg_type arg) // ?description + { + + ?code // ?comment + + // ?comment + ?code + } +*/ + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CDatastoreRFSPluginTestModule::CDatastoreRFSPluginTestModule +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CDatastoreRFSPluginTestModule::CDatastoreRFSPluginTestModule( + CTestModuleIf& aTestModuleIf ): + CScriptBase( aTestModuleIf ) + { + } + +// ----------------------------------------------------------------------------- +// CDatastoreRFSPluginTestModule::ConstructL +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CDatastoreRFSPluginTestModule::ConstructL() + { + //Read logger settings to check whether test case name is to be + //appended to log file name. + RSettingServer settingServer; + TInt ret = settingServer.Connect(); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Struct to StifLogger settigs. + TLoggerSettings loggerSettings; + // Parse StifLogger defaults from STIF initialization file. + ret = settingServer.GetLoggerSettings(loggerSettings); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Close Setting server session + settingServer.Close(); + + TFileName logFileName; + + if(loggerSettings.iAddTestCaseTitle) + { + TName title; + TestModuleIf().GetTestCaseTitleL(title); + logFileName.Format(KDatastoreRFSPluginTestModuleLogFileWithTitle, &title); + } + else + { + logFileName.Copy(KDatastoreRFSPluginTestModuleLogFile); + } + + iLog = CStifLogger::NewL( KDatastoreRFSPluginTestModuleLogPath, + logFileName, + CStifLogger::ETxt, + CStifLogger::EFile, + EFalse ); + + SendTestClassVersion(); + } + +// ----------------------------------------------------------------------------- +// CDatastoreRFSPluginTestModule::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CDatastoreRFSPluginTestModule* CDatastoreRFSPluginTestModule::NewL( + CTestModuleIf& aTestModuleIf ) + { + CDatastoreRFSPluginTestModule* self = new (ELeave) CDatastoreRFSPluginTestModule( aTestModuleIf ); + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + + return self; + + } + +// ----------------------------------------------------------------------------- +// CDatastoreRFSPluginTestModule::Delete +// Delete here all resources allocated and opened from test methods. +// Called from destructor. +// ----------------------------------------------------------------------------- +// +void CDatastoreRFSPluginTestModule::Delete() + { + + } + +// Destructor +CDatastoreRFSPluginTestModule::~CDatastoreRFSPluginTestModule() + { + + // Delete resources allocated from test methods + Delete(); + + delete iPlugin; + REComSession::FinalClose(); + + // Delete logger + delete iLog; + + } + +//----------------------------------------------------------------------------- +// CDatastoreRFSPluginTestModule::SendTestClassVersion +// Method used to send version of test class +//----------------------------------------------------------------------------- +// +void CDatastoreRFSPluginTestModule::SendTestClassVersion() + { + TVersion moduleVersion; + moduleVersion.iMajor = TEST_CLASS_VERSION_MAJOR; + moduleVersion.iMinor = TEST_CLASS_VERSION_MINOR; + moduleVersion.iBuild = TEST_CLASS_VERSION_BUILD; + + TFileName moduleName; + moduleName = _L("DatastoreRFSPluginTestModule.dll"); + + TBool newVersionOfMethod = ETrue; + TestModuleIf().SendTestModuleVersion(moduleVersion, moduleName, newVersionOfMethod); + } + +// ----------------------------------------------------------------------------- +// CDatastoreRFSPluginTestModule::RunMethodL +// Run specified method. Contains also table of test mothods and their names. +// ----------------------------------------------------------------------------- +// +TInt CDatastoreRFSPluginTestModule::RunMethodL( + CStifItemParser& aItem ) + { + + static TStifFunctionInfo const KFunctions[] = + { + // Copy this line for every implemented function. + // First string is the function name used in TestScripter script file. + // Second is the actual implementation member function. + ENTRY( "CreatePlugin", CDatastoreRFSPluginTestModule::CreatePlugin ), + ENTRY( "DestroyPlugin", CDatastoreRFSPluginTestModule::DestroyPlugin ), + ENTRY( "RestoreFactorySettings", CDatastoreRFSPluginTestModule::RestoreFactorySettings ), + ENTRY( "GetScript", CDatastoreRFSPluginTestModule::GetScript ), + ENTRY( "ExecuteCustomCommand", CDatastoreRFSPluginTestModule::ExecuteCustomCommand ), + //ADD NEW ENTRY HERE + // [test cases entries] - Do not remove + + }; + + const TInt count = sizeof( KFunctions ) / + sizeof( TStifFunctionInfo ); + + return RunInternalL( KFunctions, count, aItem ); + + } + +TInt CDatastoreRFSPluginTestModule::CreatePlugin(CStifItemParser& /*aItem */) + { + STIF_ASSERT_NOT_LEAVES(iPlugin = CRFSPlugin::NewL( TUid::Uid( 0x2000F8B7 ) ) ); + STIF_ASSERT_NOT_NULL( iPlugin ); + + return KErrNone; + + } +TInt CDatastoreRFSPluginTestModule::DestroyPlugin(CStifItemParser& /*aItem*/ ) + { + delete iPlugin; + iPlugin = NULL; + + return KErrNone; + } + +TInt CDatastoreRFSPluginTestModule::RestoreFactorySettings(CStifItemParser& /*aItem*/ ) + { + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( ENormalRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EDeepRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EInitRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( static_cast( 100 ) ) ); + return KErrNone; + } + +TInt CDatastoreRFSPluginTestModule::GetScript(CStifItemParser& /*aItem*/ ) + { + TBuf<256> path; + //TBuf<256> buf; + //buf.Copy(KExpectedScript); + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( ENormalRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EDeepRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EInitRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( static_cast( 100 ), path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + return KErrNone; + } + +TInt CDatastoreRFSPluginTestModule::ExecuteCustomCommand(CStifItemParser& /*aItem*/ ) + { + TBuf<256> param1( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( ENormalRfs, param1 ) ); + TBuf<1> param2( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EDeepRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EInitRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( static_cast( 100 ), param2 ) ); + return KErrNone; + } + + +// ========================== OTHER EXPORTED FUNCTIONS ========================= + +// ----------------------------------------------------------------------------- +// LibEntryL is a polymorphic Dll entry point. +// Returns: CScriptBase: New CScriptBase derived object +// ----------------------------------------------------------------------------- +// +EXPORT_C CScriptBase* LibEntryL( + CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework + { + + return ( CScriptBase* ) CDatastoreRFSPluginTestModule::NewL( aTestModuleIf ); + + } + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/Bmarm/DefaultFolderRFSPluginTestModuleU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/Bmarm/DefaultFolderRFSPluginTestModuleU.DEF Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/Bwins/DefaultFolderRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/Bwins/DefaultFolderRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/conf/DefaultFolderRFSPluginTestModule.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/conf/DefaultFolderRFSPluginTestModule.cfg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,39 @@ +[Test] +title Default_Create and destroy RfsPlugin +create DefaultFolderRFSPluginTestModule testClass +testClass CreatePlugin +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Default_Test RestoreFactorySettingsL +create DefaultFolderRFSPluginTestModule testClass +testClass CreatePlugin +testClass RestoreFactorySettings +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Default_Test GetScriptL +create DefaultFolderRFSPluginTestModule testClass +testClass CreatePlugin +testClass GetScript +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Default_Test ExecuteCustomCommandL +create DefaultFolderRFSPluginTestModule testClass +testClass CreatePlugin +testClass ExecuteCustomCommand +testClass DestroyPlugin +delete testClass +[Endtest] + + + + + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/eabi/DefaultFolderRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/eabi/DefaultFolderRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/group/DefaultFolderRFSPluginTestModule.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/group/DefaultFolderRFSPluginTestModule.mmp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,77 @@ +/*TYPE TESTCLASS*/ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: MMP file for STIF Test Framework's TestScripter +* testclass test module. +* +*/ + +#include + +SMPSAFE + +TARGET DefaultFolderRFSPluginTestModule.dll +TARGETTYPE dll +UID 0x1000008D 0x101FB3E3 + +CAPABILITY ALL -TCB +/* Remove comments and replace 0x00000000 with correct vendor id */ +// VENDORID 0x00000000 +/* Remove comments and replace 0x00000000 with correct secure id */ +// SECUREID 0x00000000 + +//TARGETPATH ?target_path +DEFFILE DefaultFolderRFSPluginTestModule.def + +USERINCLUDE ../inc + +MW_LAYER_SYSTEMINCLUDE + +SOURCEPATH ../src + +SOURCE DefaultFolderRFSPluginTestModule.cpp + +//RESOURCE resource_file +//RESOURCE resource_file2 + +LIBRARY euser.lib +LIBRARY stiftestinterface.lib +LIBRARY stiftestengine.lib +LIBRARY ecom.lib + +LANG SC + +/* +START WINS +?wins_specific_information +END + +START MARM +?marm_specific_information +END +*/ +// Other possible keywords: + +// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes) +/* +START BITMAP ?target +TARGETPATH ?emulated_path_on_target_machine +HEADER +SOURCE ?color_depth ?source_bitmap +END +*/ +// DEFFILE ?filename +// AIF ?filename + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/group/DefaultFolderRFSPluginTestModule.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/group/DefaultFolderRFSPluginTestModule.pkg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,60 @@ +; +; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; All rights reserved. +; This component and the accompanying materials are made available +; under the terms of "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: +; +; Installation file for STIF +; + +; Languages +&EN + +; Provide value for uid +#{"STIF"},(0x00000000),1,1,0,TYPE=SA + +; Series60 product id for S60 3.0 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + +; Localised Vendor name +%{"Nokia"} + +; Unique Vendor name +:"Nokia" + +; Logo +; None + +; Package signature - Optional +; None + +; Start of Package body + +; Condition blocks +; None + +; Options list +; None + +; Install files +"\epoc32\release\armv5\udeb\DefaultFolderRFSPluginTestModule.dll" - "!:\Sys\Bin\DefaultFolderRFSPluginTestModule.dll" + +; Embedded SIS +; None + +; End of Package body + +; PKG dependencies +; None + +; PKG capabilities +; None diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/group/DefaultFolderRFSPluginTestModule_DoxyFile.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/group/DefaultFolderRFSPluginTestModule_DoxyFile.txt Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,240 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "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: +# +# + +# Doxyfile 1.4.1 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = DefaultFolderRFSPluginTestModule +PROJECT_NUMBER = +OUTPUT_DIRECTORY = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\DefaultFolderRFSPluginTestModule\ +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = YES +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = NO +STRIP_FROM_PATH = +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +DISTRIBUTE_GROUP_DOC = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = YES +OPTIMIZE_OUTPUT_JAVA = NO +SUBGROUPING = YES +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = YES +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = NO +EXTRACT_LOCAL_METHODS = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = YES +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = NO +GENERATE_TESTLIST = NO +GENERATE_BUGLIST = NO +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = YES +FILE_VERSION_FILTER = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\DefaultFolderRFSPluginTestModule\ +FILE_PATTERNS = *.h \ + *.rh \ + *.hrh +RECURSIVE = YES +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = NO +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = NO +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = YES +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +BINARY_TOC = YES +TOC_EXPAND = YES +DISABLE_INDEX = YES +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = YES +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = YES +RTF_OUTPUT = Doc +COMPACT_RTF = YES +RTF_HYPERLINKS = YES +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = YES +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = NONSHARABLE_CLASS +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = NO +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = YES +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 0 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/group/bld.inf Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: +* +*/ + +PRJ_PLATFORMS +// specify the platforms your component needs to be built for here +// defaults to WINS MARM so you can ignore this if you just build these + + DEFAULT + +PRJ_TESTEXPORTS +// NOTE: If using ARS requirements all export operations should be done under this. +// 'abld test export' +../init/TestFramework.ini /epoc32/winscw/c/TestFramework/TestFramework.ini +../init/TestFramework.ini /epoc32/data/z/system/data/TestFramework.ini + +../conf/DefaultFolderRFSPluginTestModule.cfg /epoc32/winscw/c/TestFramework/DefaultFolderRFSPluginTestModule.cfg +../conf/DefaultFolderRFSPluginTestModule.cfg /epoc32/data/z/system/data/DefaultFolderRFSPluginTestModule.cfg + +../rom/DefaultFolderRFSPluginTestModule.iby CORE_MW_LAYER_IBY_EXPORT_PATH(DefaultFolderRFSPluginTestModule.iby) + + +PRJ_EXPORTS +// Specify the source file followed by its destination here +// copy will be used to copy the source file to its destination +// If there's no destination then the source file will be copied +// to the same name in \epoc32\include +// Example: +/* +\agnmodel\inc\AGMCOMON.H +*/ + +PRJ_TESTMMPFILES + + DefaultFolderRFSPluginTestModule.mmp + +PRJ_MMPFILES + + +// Specify the .mmp files required for building the important component +// releasables. +// +// Specify "tidy" if the component you need to build doesn't need to be +// released. Specify "ignore" if the MMP file exists but should be +// ignored. +// Example: +/* +\agnmodel\group\agnmodel.mmp +#if defined(MARM) +\agnmodel\group\agsvexe.mmp +#endif +*/ + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/inc/DefaultFolderRFSPluginTestModule.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/inc/DefaultFolderRFSPluginTestModule.h Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,177 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: STIF testclass declaration +* +*/ + +#ifndef DEFAULTFOLDERRFSPLUGINTESTMODULE_H +#define DEFAULTFOLDERRFSPLUGINTESTMODULE_H + +// INCLUDES +#include +#include +#include +#include + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def +#define TEST_CLASS_VERSION_MAJOR 0 +#define TEST_CLASS_VERSION_MINOR 0 +#define TEST_CLASS_VERSION_BUILD 0 + +// Logging path +_LIT( KDefaultFolderRFSPluginTestModuleLogPath, "\\logs\\testframework\\DefaultFolderRFSPluginTestModule\\" ); +// Log file +_LIT( KDefaultFolderRFSPluginTestModuleLogFile, "DefaultFolderRFSPluginTestModule.txt" ); +_LIT( KDefaultFolderRFSPluginTestModuleLogFileWithTitle, "DefaultFolderRFSPluginTestModule_[%S].txt" ); + +// FUNCTION PROTOTYPES +//?type ?function_name(?arg_list); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; +class CRFSPlugin; +class CDefaultFolderRFSPluginTestModule; + +// DATA TYPES +//enum ?declaration +//typedef ?declaration +//extern ?data_type; + +// CLASS DECLARATION + +/** +* CDefaultFolderRFSPluginTestModule test class for STIF Test Framework TestScripter. +* ?other_description_lines +* +* @lib ?library +* @since ?Series60_version +*/ +NONSHARABLE_CLASS(CDefaultFolderRFSPluginTestModule) : public CScriptBase + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CDefaultFolderRFSPluginTestModule* NewL( CTestModuleIf& aTestModuleIf ); + + /** + * Destructor. + */ + virtual ~CDefaultFolderRFSPluginTestModule(); + + public: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + public: // Functions from base classes + + /** + * From CScriptBase Runs a script line. + * @since ?Series60_version + * @param aItem Script line containing method name and parameters + * @return Symbian OS error code + */ + virtual TInt RunMethodL( CStifItemParser& aItem ); + + protected: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + protected: // Functions from base classes + + /** + * From ?base_class ?member_description + */ + //?type ?member_function(); + + private: + + /** + * C++ default constructor. + */ + CDefaultFolderRFSPluginTestModule( CTestModuleIf& aTestModuleIf ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + // Prohibit copy constructor if not deriving from CBase. + // ?classname( const ?classname& ); + // Prohibit assigment operator if not deriving from CBase. + // ?classname& operator=( const ?classname& ); + + /** + * Frees all resources allocated from test methods. + * @since ?Series60_version + */ + void Delete(); + + /** + * Test methods are listed below. + */ + TInt CreatePlugin( CStifItemParser& aItem ); + TInt DestroyPlugin( CStifItemParser& aItem ); + TInt RestoreFactorySettings( CStifItemParser& aItem ); + TInt GetScript( CStifItemParser& aItem ); + TInt ExecuteCustomCommand( CStifItemParser& aItem ); + + /** + * Method used to log version of test class + */ + void SendTestClassVersion(); + + //ADD NEW METHOD DEC HERE + //[TestMethods] - Do not remove + + public: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + protected: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + private: // Data + CRFSPlugin* iPlugin; + + public: // Friend classes + //?friend_class_declaration; + protected: // Friend classes + //?friend_class_declaration; + private: // Friend classes + //?friend_class_declaration; + + }; + +#endif // DEFAULTFOLDERRFSPLUGINTESTMODULE_H + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/init/TestFramework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/init/TestFramework.ini Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,220 @@ +# +# This is STIF initialization file +# Comment lines start with '#'-character. +# See STIF TestFramework users guide.doc for instructions + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set following test engine settings: +# - Set Test Reporting mode. TestReportMode's possible values are: +# + 'Summary': Summary of the tested test cases. +# + 'Environment': Hardware and software info. +# + 'TestCases': Test case report. +# + 'FullReport': Set of all above ones. +# + Example 'TestReportMode= Summary TestCases' +# +# - CreateTestReport setting controls report creation mode +# + YES, Test report will created. +# + NO, No Test report. +# +# - File path indicates the base path of the test report. +# - File name indicates the name of the test report. +# +# - File format indicates the type of the test report. +# + TXT, Test report file will be txt type, for example 'TestReport.txt'. +# + HTML, Test report will be html type, for example 'TestReport.html'. +# + XML, Test report will be xml type, for example 'TestReport.xml'. +# Note, that xml format is available only when output is set to FILE. +# +# - File output indicates output source of the test report. +# + FILE, Test report logging to file. +# + RDEBUG, Test report logging to using rdebug. +# +# - File Creation Mode indicates test report overwriting if file exist. +# + OVERWRITE, Overwrites if the Test report file exist. +# + APPEND, Continue logging after the old Test report information if +# report exist. +# - Sets a device reset module's dll name(Reboot). +# + If Nokia specific reset module is not available or it is not correct one +# StifHWResetStub module may use as a template for user specific reset +# module. +# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation +# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02 +# + +[Engine_Defaults] + +TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment', + # 'TestCases' or 'FullReport' + +CreateTestReport= YES # Possible values: YES or NO + +TestReportFilePath= C:\LOGS\TestFramework\ +TestReportFileName= TestReport + +TestReportFormat= TXT # Possible values: TXT, HTML or XML +TestReportOutput= FILE # Possible values: FILE or RDEBUG +TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting + +DisableMeasurement= stifmeasurementdisablenone # Possible values are: + # 'stifmeasurementdisablenone', 'stifmeasurementdisableall' + # 'stifmeasurementplugin01', 'stifmeasurementplugin02', + # 'stifmeasurementplugin03', 'stifmeasurementplugin04', + # 'stifmeasurementplugin05' or 'stifbappeaprofiler' + +Timeout= 0 # Default timeout value for each test case. In milliseconds +#UITestingSupport= YES # Possible values: YES or NO +#SeparateProcesses= YES # Possible values: YES or NO (default: NO) +[End_Defaults] + +[New_Module] +ModuleName= testscripter +TestCaseFile= Z:\TestFramework\DefaultFolderRFSPluginTestModule.cfg +[End_Module] + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Module configurations start +# Modules are added between module tags +# tags. Module name is specified after ModuleName= tag, like +# ModuleName= XXXXXXXXX +# Modules might have initialisation file, specified as +# IniFile= c:\testframework\YYYYYY +# Modules might have several configuration files, like +# TestCaseFile= c:\testframework\NormalCases.txt +# TestCaseFile= c:\testframework\SmokeCases.txt +# TestCaseFile= c:\testframework\ManualCases.txt + +# (TestCaseFile is synonym for old term ConfigFile) + +# Following case specifies demo module settings. Demo module +# does not read any settings from file, so tags +# IniFile and TestCaseFile are not used. +# In the simplest case it is enough to specify only the +# name of the test module when adding new test module + + + +# Load testmoduleXXX, optionally with initialization file and/or test case files +#[New_Module] +#ModuleName= testmodulexxx + +#TestModuleXXX used initialization file +#IniFile= c:\testframework\init.txt + +#TestModuleXXX used configuration file(s) +#TestCaseFile= c:\testframework\testcases1.cfg +#TestCaseFile= c:\testframework\testcases2.cfg +#TestCaseFile= c:\testframework\manualtestcases.cfg + +#[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set STIF logging overwrite parameters for Logger. +# Hardware and emulator environment logging path and styles can +# be configured from here to overwrite the Logger's implemented values. +# +# Settings description: +# - Indicates option for creation log directory/directories. If log directory/directories +# is/are not created by user they will make by software. +# + YES, Create log directory/directories if not allready exist. +# + NO, Log directory/directories not created. Only created one is used. +# +# - Overwrite emulator path setting. +# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined +# Logger's path 'D:\\LOGS\\Module\\' with those definition the path +# will be 'C:\LOGS\TestFramework\LOGS\Module\' +# +# - Overwrite emulator's logging format. +# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'. +# + HTML, Log file(s) will be html type(s), for example 'Module.html'. +# +# - Overwrited emulator logging output source. +# + FILE, Logging to file(s). +# + RDEBUG, Logging to using rdebug(s). +# +# - Overwrite hardware path setting (Same description as above in emulator path). +# - Overwrite hardware's logging format(Same description as above in emulator format). +# - Overwrite hardware's logging output source(Same description as above in emulator output). +# +# - File Creation Mode indicates file overwriting if file exist. +# + OVERWRITE, Overwrites if file(s) exist. +# + APPEND, Continue logging after the old logging information if file(s) exist. +# +# - Will thread id include to the log filename. +# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'. +# + NO, No thread id to log file(s), Example filename 'Module.txt'. +# +# - Will time stamps include the to log file. +# + YES, Time stamp added to each line in log file(s). Time stamp is +# for example'12.Nov.2003 115958 LOGGING INFO' +# + NO, No time stamp(s). +# +# - Will line breaks include to the log file. +# + YES, Each logging event includes line break and next log event is in own line. +# + NO, No line break(s). +# +# - Will event ranking include to the log file. +# + YES, Event ranking number added to each line in log file(s). Ranking number +# depends on environment's tics, for example(includes time stamp also) +# '012 12.Nov.2003 115958 LOGGING INFO' +# + NO, No event ranking. +# +# - Will write log file in unicode format. +# + YES, Log file will be written in unicode format +# + NO, Log will be written as normal, not unicode, file. +# + +[Logger_Defaults] + +#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#' +#NOTE: TestEngine and TestServer logging settings cannot change here + +#CreateLogDirectories= YES # Possible values: YES or NO + +#EmulatorBasePath= C:\LOGS\TestFramework\ +#EmulatorFormat= HTML # Possible values: TXT or HTML +#EmulatorOutput= FILE # Possible values: FILE or RDEBUG + +#HardwareBasePath= D:\LOGS\TestFramework\ +#HardwareFormat= HTML # Possible values: TXT or HTML +#HardwareOutput= FILE # Possible values: FILE or RDEBUG + +#FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +#ThreadIdToLogFile= YES # Possible values: YES or NO +#WithTimeStamp= YES # Possible values: YES or NO +#WithLineBreak= YES # Possible values: YES or NO +#WithEventRanking= YES # Possible values: YES or NO + +#FileUnicode= YES # Possible values: YES or NO +#AddTestCaseTitle= YES # Possible values: YES or NO +[End_Logger_Defaults] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set filters to be used by ConsoleUI. +# If you want to use filter with ConsoleUI, simply remove comments +# from section below and provide valid filter entries. +# Each filter line has to start with "filter= " keyword. +# Filter can contain special wildcard characters: +# * which stands for none or any literal; +# ? which stands for single character. +# Filters are not case-sensitive. + +#[Filters] +#filter= *math* +#filter= *radio* +#[End_Filters] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +# End of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/rom/DefaultFolderRFSPluginTestModule.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/rom/DefaultFolderRFSPluginTestModule.iby Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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 __DEFAULTFOLDERRFSPLUGINTESTMODULE_IBY__ +#define __DEFAULTFOLDERRFSPLUGINTESTMODULE_IBY__ + +file=ABI_DIR\BUILD_DIR\DefaultFolderRFSPluginTestModule.dll SHARED_LIB_DIR\DefaultFolderRFSPluginTestModule.dll + +//data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini + +data=\epoc32\data\z\system\data\DefaultFolderRFSPluginTestModule.cfg \testframework\DefaultFolderRFSPluginTestModule.cfg + + + +#endif diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/src/DefaultFolderRFSPluginTestModule.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/DefaultFolderRFSPluginTestModule/src/DefaultFolderRFSPluginTestModule.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,305 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: This file contains testclass implementation. +* +*/ + +// INCLUDE FILES +#include +#include "DefaultFolderRFSPluginTestModule.h" +#include +#include + +// EXTERNAL DATA STRUCTURES +//extern ?external_data; + +// EXTERNAL FUNCTION PROTOTYPES +//extern ?external_function( ?arg_type,?arg_type ); + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def + +// LOCAL CONSTANTS AND MACROS +//const ?type ?constant_var = ?constant; +//#define ?macro_name ?macro_def + +// MODULE DATA STRUCTURES +//enum ?declaration +//typedef ?declaration + +// LOCAL FUNCTION PROTOTYPES +//?type ?function_name( ?arg_type, ?arg_type ); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; + +// ============================= LOCAL FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// ?function_name ?description. +// ?description +// Returns: ?value_1: ?description +// ?value_n: ?description_line1 +// ?description_line2 +// ----------------------------------------------------------------------------- +// +/* +?type ?function_name( + ?arg_type arg, // ?description + ?arg_type arg) // ?description + { + + ?code // ?comment + + // ?comment + ?code + } +*/ + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CDefaultFolderRFSPluginTestModule::CDefaultFolderRFSPluginTestModule +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CDefaultFolderRFSPluginTestModule::CDefaultFolderRFSPluginTestModule( + CTestModuleIf& aTestModuleIf ): + CScriptBase( aTestModuleIf ) + { + } + +// ----------------------------------------------------------------------------- +// CDefaultFolderRFSPluginTestModule::ConstructL +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CDefaultFolderRFSPluginTestModule::ConstructL() + { + //Read logger settings to check whether test case name is to be + //appended to log file name. + RSettingServer settingServer; + TInt ret = settingServer.Connect(); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Struct to StifLogger settigs. + TLoggerSettings loggerSettings; + // Parse StifLogger defaults from STIF initialization file. + ret = settingServer.GetLoggerSettings(loggerSettings); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Close Setting server session + settingServer.Close(); + + TFileName logFileName; + + if(loggerSettings.iAddTestCaseTitle) + { + TName title; + TestModuleIf().GetTestCaseTitleL(title); + logFileName.Format(KDefaultFolderRFSPluginTestModuleLogFileWithTitle, &title); + } + else + { + logFileName.Copy(KDefaultFolderRFSPluginTestModuleLogFile); + } + + iLog = CStifLogger::NewL( KDefaultFolderRFSPluginTestModuleLogPath, + logFileName, + CStifLogger::ETxt, + CStifLogger::EFile, + EFalse ); + + SendTestClassVersion(); + } + +// ----------------------------------------------------------------------------- +// CDefaultFolderRFSPluginTestModule::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CDefaultFolderRFSPluginTestModule* CDefaultFolderRFSPluginTestModule::NewL( + CTestModuleIf& aTestModuleIf ) + { + CDefaultFolderRFSPluginTestModule* self = new (ELeave) CDefaultFolderRFSPluginTestModule( aTestModuleIf ); + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + + return self; + + } + +// ----------------------------------------------------------------------------- +// CDefaultFolderRFSPluginTestModule::Delete +// Delete here all resources allocated and opened from test methods. +// Called from destructor. +// ----------------------------------------------------------------------------- +// +void CDefaultFolderRFSPluginTestModule::Delete() + { + + } + +// Destructor +CDefaultFolderRFSPluginTestModule::~CDefaultFolderRFSPluginTestModule() + { + // Delete resources allocated from test methods + Delete(); + + delete iPlugin; + REComSession::FinalClose(); + + // Delete logger + delete iLog; + + } + +//----------------------------------------------------------------------------- +// CDefaultFolderRFSPluginTestModule::SendTestClassVersion +// Method used to send version of test class +//----------------------------------------------------------------------------- +// +void CDefaultFolderRFSPluginTestModule::SendTestClassVersion() + { + TVersion moduleVersion; + moduleVersion.iMajor = TEST_CLASS_VERSION_MAJOR; + moduleVersion.iMinor = TEST_CLASS_VERSION_MINOR; + moduleVersion.iBuild = TEST_CLASS_VERSION_BUILD; + + TFileName moduleName; + moduleName = _L("DefaultFolderRFSPluginTestModule.dll"); + + TBool newVersionOfMethod = ETrue; + TestModuleIf().SendTestModuleVersion(moduleVersion, moduleName, newVersionOfMethod); + } + +// ----------------------------------------------------------------------------- +// CDefaultFolderRFSPluginTestModule::RunMethodL +// Run specified method. Contains also table of test mothods and their names. +// ----------------------------------------------------------------------------- +// +TInt CDefaultFolderRFSPluginTestModule::RunMethodL( + CStifItemParser& aItem ) + { + + static TStifFunctionInfo const KFunctions[] = + { + // Copy this line for every implemented function. + // First string is the function name used in TestScripter script file. + // Second is the actual implementation member function. + ENTRY( "CreatePlugin", CDefaultFolderRFSPluginTestModule::CreatePlugin ), + ENTRY( "DestroyPlugin", CDefaultFolderRFSPluginTestModule::DestroyPlugin ), + ENTRY( "RestoreFactorySettings", CDefaultFolderRFSPluginTestModule::RestoreFactorySettings ), + ENTRY( "GetScript", CDefaultFolderRFSPluginTestModule::GetScript ), + ENTRY( "ExecuteCustomCommand", CDefaultFolderRFSPluginTestModule::ExecuteCustomCommand ), + //ADD NEW ENTRY HERE + // [test cases entries] - Do not remove + + }; + + const TInt count = sizeof( KFunctions ) / + sizeof( TStifFunctionInfo ); + + return RunInternalL( KFunctions, count, aItem ); + + } + +TInt CDefaultFolderRFSPluginTestModule::CreatePlugin(CStifItemParser& /*aItem */) + { + STIF_ASSERT_NOT_LEAVES(iPlugin = CRFSPlugin::NewL( TUid::Uid( 0x2000F8AF ) ) ); + STIF_ASSERT_NOT_NULL( iPlugin ); + + return KErrNone; + + } +TInt CDefaultFolderRFSPluginTestModule::DestroyPlugin(CStifItemParser& /*aItem*/ ) + { + delete iPlugin; + iPlugin = NULL; + + return KErrNone; + } + +TInt CDefaultFolderRFSPluginTestModule::RestoreFactorySettings(CStifItemParser& /*aItem*/ ) + { + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( ENormalRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EDeepRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EInitRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( static_cast( 100 ) ) ); + return KErrNone; + } + +TInt CDefaultFolderRFSPluginTestModule::GetScript(CStifItemParser& /*aItem*/ ) + { + TBuf<256> path; + //TBuf<256> buf; + //buf.Copy(KExpectedScript); + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( ENormalRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EDeepRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EInitRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( static_cast( 100 ), path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + return KErrNone; + } + +TInt CDefaultFolderRFSPluginTestModule::ExecuteCustomCommand(CStifItemParser& /*aItem*/ ) + { + TBuf<256> param1( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( ENormalRfs, param1 ) ); + TBuf<1> param2( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EDeepRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EInitRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( static_cast( 100 ), param2 ) ); + return KErrNone; + } + + + +// ========================== OTHER EXPORTED FUNCTIONS ========================= + +// ----------------------------------------------------------------------------- +// LibEntryL is a polymorphic Dll entry point. +// Returns: CScriptBase: New CScriptBase derived object +// ----------------------------------------------------------------------------- +// +EXPORT_C CScriptBase* LibEntryL( + CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework + { + + return ( CScriptBase* ) CDefaultFolderRFSPluginTestModule::NewL( aTestModuleIf ); + + } + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/Bmarm/FormatterRFSPluginTestModuleU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/Bmarm/FormatterRFSPluginTestModuleU.DEF Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/Bwins/FormatterRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/Bwins/FormatterRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/conf/ui_FormatterRFSPluginTestModule.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/conf/ui_FormatterRFSPluginTestModule.cfg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,107 @@ +[Test] +title TestConstructorL +create FormatterRFSPluginTestModule FormatterRFSPlugin +FormatterRFSPlugin SetupEmptyL +FormatterRFSPlugin TestConstructorL +FormatterRFSPlugin Teardown +delete FormatterRFSPlugin +[Endtest] + +[Test] +title TestConstructorLWithExcludeList +create FormatterRFSPluginTestModule FormatterRFSPlugin +FormatterRFSPlugin SetupExcludeListOnlyL +FormatterRFSPlugin TestConstructorL +FormatterRFSPlugin TeardownExcludeList +delete FormatterRFSPlugin +[Endtest] + +[Test] +title TestConstructorLWithAppSpecificExcludeList +create FormatterRFSPluginTestModule FormatterRFSPlugin +FormatterRFSPlugin SetupAppSpecExcludeListOnlyL +FormatterRFSPlugin TestConstructorL +FormatterRFSPlugin TeardownAppSpecExcludeList +delete FormatterRFSPlugin +[Endtest] + +[Test] +title RestoreFactorySettings +create FormatterRFSPluginTestModule FormatterRFSPlugin +FormatterRFSPlugin SetupL +FormatterRFSPlugin TestRestoreL +FormatterRFSPlugin Teardown +delete FormatterRFSPlugin +[Endtest] + +[Test] +title RestoreFactorySettingsWithExcludeList +create FormatterRFSPluginTestModule FormatterRFSPlugin +FormatterRFSPlugin SetupExcludeListL +FormatterRFSPlugin TestRestoreL +FormatterRFSPlugin TeardownExcludeList +delete FormatterRFSPlugin +[Endtest] + +[Test] +title RestoreFactorySettingsWithAppSpecificExcludeList +create FormatterRFSPluginTestModule FormatterRFSPlugin +FormatterRFSPlugin SetupAppSpecExcludeListOnlyL +FormatterRFSPlugin TestRestoreL +FormatterRFSPlugin TeardownAppSpecExcludeList +delete FormatterRFSPlugin +[Endtest] + +[Test] +title CustomCommand +create FormatterRFSPluginTestModule FormatterRFSPlugin +FormatterRFSPlugin SetupL +FormatterRFSPlugin TestCustomCommandL +FormatterRFSPlugin Teardown +delete FormatterRFSPlugin +[Endtest] + +[Test] +title CustomCommandWithExcludeList +create FormatterRFSPluginTestModule FormatterRFSPlugin +FormatterRFSPlugin SetupExcludeListL +FormatterRFSPlugin TestCustomCommandL +FormatterRFSPlugin TeardownExcludeList +delete FormatterRFSPlugin +[Endtest] + +[Test] +title CustomCommandWithAppSpecificExcludeList +create FormatterRFSPluginTestModule FormatterRFSPlugin +FormatterRFSPlugin SetupAppSpecExcludeListOnlyL +FormatterRFSPlugin TestCustomCommandL +FormatterRFSPlugin TeardownAppSpecExcludeList +delete FormatterRFSPlugin +[Endtest] + +[Test] +title Script +create FormatterRFSPluginTestModule FormatterRFSPlugin +FormatterRFSPlugin SetupConditionalL +FormatterRFSPlugin TestGetScriptConditionalL +FormatterRFSPlugin Teardown +delete FormatterRFSPlugin +[Endtest] + +[Test] +title ScriptWithExcludeList +create FormatterRFSPluginTestModule FormatterRFSPlugin +FormatterRFSPlugin SetupExcludeListL +FormatterRFSPlugin TestGetScriptEmptyL +FormatterRFSPlugin TeardownExcludeList +delete FormatterRFSPlugin +[Endtest] + +[Test] +title ScriptWithAppSpecificExcludeList +create FormatterRFSPluginTestModule FormatterRFSPlugin +FormatterRFSPlugin SetupAppSpecExcludeListL +FormatterRFSPlugin TestGetScriptEmptyL +FormatterRFSPlugin TeardownAppSpecExcludeList +delete FormatterRFSPlugin +[Endtest] diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/eabi/FormatterRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/eabi/FormatterRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/group/FormatterRFSPluginTestModule.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/group/FormatterRFSPluginTestModule.mmp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,80 @@ +/*TYPE TESTCLASS*/ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: MMP file for STIF Test Framework's TestScripter +* testclass test module. +* +*/ + +#include + +SMPSAFE + +TARGET FormatterRFSPluginTestModule.dll +TARGETTYPE dll +UID 0x1000008D 0x101FB3E3 + +CAPABILITY ALL -TCB +/* Remove comments and replace 0x00000000 with correct vendor id */ +// VENDORID 0x00000000 +/* Remove comments and replace 0x00000000 with correct secure id */ +// SECUREID 0x00000000 + +//TARGETPATH ?target_path +DEFFILE FormatterRFSPluginTestModule.def + +USERINCLUDE ../inc +USERINCLUDE ../../../../FormatterRFSPlugin/inc + +MW_LAYER_SYSTEMINCLUDE +OS_LAYER_SYSTEMINCLUDE + +SOURCEPATH ../src + +SOURCE FormatterRFSPluginTestModule.cpp + +//RESOURCE resource_file +//RESOURCE resource_file2 + +LIBRARY euser.lib +LIBRARY stiftestinterface.lib +LIBRARY stiftestengine.lib +LIBRARY ecom.lib +LIBRARY efsrv.lib + +LANG SC + +/* +START WINS +?wins_specific_information +END + +START MARM +?marm_specific_information +END +*/ +// Other possible keywords: + +// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes) +/* +START BITMAP ?target +TARGETPATH ?emulated_path_on_target_machine +HEADER +SOURCE ?color_depth ?source_bitmap +END +*/ +// DEFFILE ?filename +// AIF ?filename + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/group/FormatterRFSPluginTestModule.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/group/FormatterRFSPluginTestModule.pkg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,60 @@ +; +; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; All rights reserved. +; This component and the accompanying materials are made available +; under the terms of "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: +; +; Installation file for STIF +; + +; Languages +&EN + +; Provide value for uid +#{"STIF"},(0x00000000),1,1,0,TYPE=SA + +; Series60 product id for S60 3.0 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + +; Localised Vendor name +%{"Nokia"} + +; Unique Vendor name +:"Nokia" + +; Logo +; None + +; Package signature - Optional +; None + +; Start of Package body + +; Condition blocks +; None + +; Options list +; None + +; Install files +"\epoc32\release\armv5\udeb\FormatterRFSPluginTestModule.dll" - "!:\Sys\Bin\FormatterRFSPluginTestModule.dll" + +; Embedded SIS +; None + +; End of Package body + +; PKG dependencies +; None + +; PKG capabilities +; None diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/group/FormatterRFSPluginTestModule_DoxyFile.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/group/FormatterRFSPluginTestModule_DoxyFile.txt Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,240 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "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: +# +# + +# Doxyfile 1.4.1 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = FormatterRFSPluginTestModule +PROJECT_NUMBER = +OUTPUT_DIRECTORY = M:\Synergy\rfsplugins-bh1dsgasanobroy1\rfsplugins\tsrc\rfspluginstest\\FormatterRFSPluginTestModule\ +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = YES +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = NO +STRIP_FROM_PATH = +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +DISTRIBUTE_GROUP_DOC = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = YES +OPTIMIZE_OUTPUT_JAVA = NO +SUBGROUPING = YES +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = YES +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = NO +EXTRACT_LOCAL_METHODS = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = YES +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = NO +GENERATE_TESTLIST = NO +GENERATE_BUGLIST = NO +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = YES +FILE_VERSION_FILTER = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = M:\Synergy\rfsplugins-bh1dsgasanobroy1\rfsplugins\tsrc\rfspluginstest\\FormatterRFSPluginTestModule\ +FILE_PATTERNS = *.h \ + *.rh \ + *.hrh +RECURSIVE = YES +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = NO +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = NO +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = YES +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +BINARY_TOC = YES +TOC_EXPAND = YES +DISABLE_INDEX = YES +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = YES +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = YES +RTF_OUTPUT = Doc +COMPACT_RTF = YES +RTF_HYPERLINKS = YES +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = YES +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = NONSHARABLE_CLASS +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = NO +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = YES +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 0 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/group/FormatterRFSPluginTestModule_nrm.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/group/FormatterRFSPluginTestModule_nrm.mmp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,80 @@ +/*TYPE TESTCLASS*/ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: MMP file for STIF Test Framework's TestScripter +* testclass test module. +* +*/ + +#include + +SMPSAFE + +TARGET FormatterRFSPluginTestModule.dll +TARGETTYPE dll +UID 0x1000008D 0x101FB3E3 + +CAPABILITY ALL -TCB +/* Remove comments and replace 0x00000000 with correct vendor id */ +// VENDORID 0x00000000 +/* Remove comments and replace 0x00000000 with correct secure id */ +// SECUREID 0x00000000 + +//TARGETPATH ?target_path +DEFFILE FormatterRFSPluginTestModule.def + +USERINCLUDE ../inc +USERINCLUDE ../../../../FormatterRFSPlugin/inc + +MW_LAYER_SYSTEMINCLUDE +OS_LAYER_SYSTEMINCLUDE + +SOURCEPATH ../src + +SOURCE FormatterRFSPluginTestModule.cpp + +//RESOURCE resource_file +//RESOURCE resource_file2 + +LIBRARY euser.lib +LIBRARY stiftestinterface.lib +LIBRARY stiftestengine.lib +LIBRARY ecom.lib +LIBRARY efsrv.lib + +LANG SC + +/* +START WINS +?wins_specific_information +END + +START MARM +?marm_specific_information +END +*/ +// Other possible keywords: + +// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes) +/* +START BITMAP ?target +TARGETPATH ?emulated_path_on_target_machine +HEADER +SOURCE ?color_depth ?source_bitmap +END +*/ +// DEFFILE ?filename +// AIF ?filename + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/group/bld.inf Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: +* +*/ + +PRJ_PLATFORMS +// specify the platforms your component needs to be built for here +// defaults to WINS MARM so you can ignore this if you just build these + + DEFAULT + +PRJ_TESTEXPORTS +// NOTE: If using ARS requirements all export operations should be done under this. +// 'abld test export' + +PRJ_EXPORTS +// Specify the source file followed by its destination here +// copy will be used to copy the source file to its destination +// If there's no destination then the source file will be copied +// to the same name in \epoc32\include +// Example: +/* +\agnmodel\inc\AGMCOMON.H +*/ + +//../init/TestFramework.ini /epoc32/winscw/c/TestFramework/TestFramework.ini +//../init/TestFramework.ini /epoc32/data/z/system/data/TestFramework.ini + +../conf/ui_FormatterRFSPluginTestModule.cfg /epoc32/winscw/c/TestFramework/ui_FormatterRFSPluginTestModule.cfg +../conf/ui_FormatterRFSPluginTestModule.cfg /epoc32/data/z/system/data/ui_FormatterRFSPluginTestModule.cfg + +../rom/FormatterRFSPluginTestModule.iby CORE_MW_LAYER_IBY_EXPORT_PATH(FormatterRFSPluginTestModule.iby) + + +PRJ_TESTMMPFILES + + FormatterRFSPluginTestModule.mmp + +PRJ_MMPFILES + + FormatterRFSPluginTestModule_nrm.mmp + +// Specify the .mmp files required for building the important component +// releasables. +// +// Specify "tidy" if the component you need to build doesn't need to be +// released. Specify "ignore" if the MMP file exists but should be +// ignored. +// Example: +/* +\agnmodel\group\agnmodel.mmp +#if defined(MARM) +\agnmodel\group\agsvexe.mmp +#endif +*/ + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/inc/FormatterRFSPluginTestModule.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/inc/FormatterRFSPluginTestModule.h Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,211 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: STIF testclass declaration +* +*/ + +#ifndef FORMATTERRFSPLUGINTESTMODULE_H +#define FORMATTERRFSPLUGINTESTMODULE_H + +// INCLUDES +#include +#include +#include +#include + +class CRFSPlugin; + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def +#define TEST_CLASS_VERSION_MAJOR 0 +#define TEST_CLASS_VERSION_MINOR 0 +#define TEST_CLASS_VERSION_BUILD 0 + +// Logging path +_LIT( KFormatterRFSPluginTestModuleLogPath, "\\logs\\testframework\\FormatterRFSPluginTestModule\\" ); +// Log file +_LIT( KFormatterRFSPluginTestModuleLogFile, "FormatterRFSPluginTestModule.txt" ); +_LIT( KFormatterRFSPluginTestModuleLogFileWithTitle, "FormatterRFSPluginTestModule_[%S].txt" ); + +// FUNCTION PROTOTYPES +//?type ?function_name(?arg_list); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; +class CFormatterRFSPluginTestModule; + +// DATA TYPES +//enum ?declaration +//typedef ?declaration +//extern ?data_type; + +// CLASS DECLARATION + +/** +* CFormatterRFSPluginTestModule test class for STIF Test Framework TestScripter. +* ?other_description_lines +* +* @lib ?library +* @since ?Series60_version +*/ +NONSHARABLE_CLASS(CFormatterRFSPluginTestModule) : public CScriptBase + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CFormatterRFSPluginTestModule* NewL( CTestModuleIf& aTestModuleIf ); + + /** + * Destructor. + */ + virtual ~CFormatterRFSPluginTestModule(); + + public: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + public: // Functions from base classes + + /** + * From CScriptBase Runs a script line. + * @since ?Series60_version + * @param aItem Script line containing method name and parameters + * @return Symbian OS error code + */ + virtual TInt RunMethodL( CStifItemParser& aItem ); + + protected: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + protected: // Functions from base classes + + /** + * From ?base_class ?member_description + */ + //?type ?member_function(); + + private: + + /** + * C++ default constructor. + */ + CFormatterRFSPluginTestModule( CTestModuleIf& aTestModuleIf ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + // Prohibit copy constructor if not deriving from CBase. + // ?classname( const ?classname& ); + // Prohibit assigment operator if not deriving from CBase. + // ?classname& operator=( const ?classname& ); + + /** + * Frees all resources allocated from test methods. + * @since ?Series60_version + */ + void Delete(); + + /** + * Test methods are listed below. + */ + private: // New methods + + TInt SetupEmptyL(CStifItemParser& aItem); + TInt SetupConditionalL(CStifItemParser& aItem); + TInt SetupL(CStifItemParser& aItem); + TInt SetupExcludeListOnlyL(CStifItemParser& aItem); + TInt SetupAppSpecExcludeListOnlyL(CStifItemParser& aItem); + TInt SetupExcludeListL(CStifItemParser& aItem); + TInt SetupAppSpecExcludeListL(CStifItemParser& aItem); + TInt Teardown(CStifItemParser& aItem); + TInt TeardownExcludeList(CStifItemParser& aItem); + TInt TeardownAppSpecExcludeList(CStifItemParser& aItem); + + TInt TestConstructorL(CStifItemParser& aItem); + TInt TestConstructorNoMemoryL(CStifItemParser& aItem); + + TInt TestRestoreConditionalL(CStifItemParser& aItem); + TInt TestRestoreL(CStifItemParser& aItem); + TInt TestRestoreWithExcludeListL(CStifItemParser& aItem); + TInt TestRestoreNoMemoryL(CStifItemParser& aItem); + TInt TestGetScriptConditionalL(CStifItemParser& aItem); + TInt TestGetScriptL(CStifItemParser& aItem); + TInt TestGetScriptEmptyL(CStifItemParser& aItem); + TInt TestCustomCommandL(CStifItemParser& aItem); + + void AppExcludeListsExistL(); + + /** + * Example test method. + * @since ?Series60_version + * @param aItem Script line containing parameters. + * @return Symbian OS error code. + */ + //virtual TInt ExampleL( CStifItemParser& aItem ); + + /** + * Method used to log version of test class + */ + void SendTestClassVersion(); + + //ADD NEW METHOD DEC HERE + //[TestMethods] - Do not remove + + public: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + protected: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + private: // Data + + /** Instance of the class that this test suite is testing. */ + CRFSPlugin* iTestObj; + + TBool iAppSpecificFilesExist; + + public: // Friend classes + //?friend_class_declaration; + protected: // Friend classes + //?friend_class_declaration; + private: // Friend classes + //?friend_class_declaration; + + }; + +#endif // FORMATTERRFSPLUGINTESTMODULE_H + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/init/TestFramework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/init/TestFramework.ini Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,219 @@ +# +# This is STIF initialization file +# Comment lines start with '#'-character. +# See STIF TestFramework users guide.doc for instructions + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set following test engine settings: +# - Set Test Reporting mode. TestReportMode's possible values are: +# + 'Summary': Summary of the tested test cases. +# + 'Environment': Hardware and software info. +# + 'TestCases': Test case report. +# + 'FullReport': Set of all above ones. +# + Example 'TestReportMode= Summary TestCases' +# +# - CreateTestReport setting controls report creation mode +# + YES, Test report will created. +# + NO, No Test report. +# +# - File path indicates the base path of the test report. +# - File name indicates the name of the test report. +# +# - File format indicates the type of the test report. +# + TXT, Test report file will be txt type, for example 'TestReport.txt'. +# + HTML, Test report will be html type, for example 'TestReport.html'. +# + XML, Test report will be xml type, for example 'TestReport.xml'. +# Note, that xml format is available only when output is set to FILE. +# +# - File output indicates output source of the test report. +# + FILE, Test report logging to file. +# + RDEBUG, Test report logging to using rdebug. +# +# - File Creation Mode indicates test report overwriting if file exist. +# + OVERWRITE, Overwrites if the Test report file exist. +# + APPEND, Continue logging after the old Test report information if +# report exist. +# - Sets a device reset module's dll name(Reboot). +# + If Nokia specific reset module is not available or it is not correct one +# StifHWResetStub module may use as a template for user specific reset +# module. +# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation +# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02 +# + +[Engine_Defaults] + +TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment', + # 'TestCases' or 'FullReport' + +CreateTestReport= YES # Possible values: YES or NO + +TestReportFilePath= C:\LOGS\TestFramework\ +TestReportFileName= TestReport + +TestReportFormat= TXT # Possible values: TXT, HTML or XML +TestReportOutput= FILE # Possible values: FILE or RDEBUG +TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting + +DisableMeasurement= stifmeasurementdisablenone # Possible values are: + # 'stifmeasurementdisablenone', 'stifmeasurementdisableall' + # 'stifmeasurementplugin01', 'stifmeasurementplugin02', + # 'stifmeasurementplugin03', 'stifmeasurementplugin04', + # 'stifmeasurementplugin05' or 'stifbappeaprofiler' + +Timeout= 0 # Default timeout value for each test case. In milliseconds +UITestingSupport= YES # Possible values: YES or NO +#SeparateProcesses= YES # Possible values: YES or NO (default: NO) +[End_Defaults] + +[New_Module] +ModuleName= testscripter +TestCaseFile= Z:\TestFramework\ui_FormatterRFSPluginTestModule.cfg +[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Module configurations start +# Modules are added between module tags +# tags. Module name is specified after ModuleName= tag, like +# ModuleName= XXXXXXXXX +# Modules might have initialisation file, specified as +# IniFile= c:\testframework\YYYYYY +# Modules might have several configuration files, like +# TestCaseFile= c:\testframework\NormalCases.txt +# TestCaseFile= c:\testframework\SmokeCases.txt +# TestCaseFile= c:\testframework\ManualCases.txt + +# (TestCaseFile is synonym for old term ConfigFile) + +# Following case specifies demo module settings. Demo module +# does not read any settings from file, so tags +# IniFile and TestCaseFile are not used. +# In the simplest case it is enough to specify only the +# name of the test module when adding new test module + + + +# Load testmoduleXXX, optionally with initialization file and/or test case files +#[New_Module] +#ModuleName= testmodulexxx + +#TestModuleXXX used initialization file +#IniFile= c:\testframework\init.txt + +#TestModuleXXX used configuration file(s) +#TestCaseFile= c:\testframework\testcases1.cfg +#TestCaseFile= c:\testframework\testcases2.cfg +#TestCaseFile= c:\testframework\manualtestcases.cfg + +#[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set STIF logging overwrite parameters for Logger. +# Hardware and emulator environment logging path and styles can +# be configured from here to overwrite the Logger's implemented values. +# +# Settings description: +# - Indicates option for creation log directory/directories. If log directory/directories +# is/are not created by user they will make by software. +# + YES, Create log directory/directories if not allready exist. +# + NO, Log directory/directories not created. Only created one is used. +# +# - Overwrite emulator path setting. +# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined +# Logger's path 'D:\\LOGS\\Module\\' with those definition the path +# will be 'C:\LOGS\TestFramework\LOGS\Module\' +# +# - Overwrite emulator's logging format. +# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'. +# + HTML, Log file(s) will be html type(s), for example 'Module.html'. +# +# - Overwrited emulator logging output source. +# + FILE, Logging to file(s). +# + RDEBUG, Logging to using rdebug(s). +# +# - Overwrite hardware path setting (Same description as above in emulator path). +# - Overwrite hardware's logging format(Same description as above in emulator format). +# - Overwrite hardware's logging output source(Same description as above in emulator output). +# +# - File Creation Mode indicates file overwriting if file exist. +# + OVERWRITE, Overwrites if file(s) exist. +# + APPEND, Continue logging after the old logging information if file(s) exist. +# +# - Will thread id include to the log filename. +# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'. +# + NO, No thread id to log file(s), Example filename 'Module.txt'. +# +# - Will time stamps include the to log file. +# + YES, Time stamp added to each line in log file(s). Time stamp is +# for example'12.Nov.2003 115958 LOGGING INFO' +# + NO, No time stamp(s). +# +# - Will line breaks include to the log file. +# + YES, Each logging event includes line break and next log event is in own line. +# + NO, No line break(s). +# +# - Will event ranking include to the log file. +# + YES, Event ranking number added to each line in log file(s). Ranking number +# depends on environment's tics, for example(includes time stamp also) +# '012 12.Nov.2003 115958 LOGGING INFO' +# + NO, No event ranking. +# +# - Will write log file in unicode format. +# + YES, Log file will be written in unicode format +# + NO, Log will be written as normal, not unicode, file. +# + +[Logger_Defaults] + +#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#' +#NOTE: TestEngine and TestServer logging settings cannot change here + +#CreateLogDirectories= YES # Possible values: YES or NO + +#EmulatorBasePath= C:\LOGS\TestFramework\ +#EmulatorFormat= HTML # Possible values: TXT or HTML +#EmulatorOutput= FILE # Possible values: FILE or RDEBUG + +#HardwareBasePath= D:\LOGS\TestFramework\ +#HardwareFormat= HTML # Possible values: TXT or HTML +#HardwareOutput= FILE # Possible values: FILE or RDEBUG + +#FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +#ThreadIdToLogFile= YES # Possible values: YES or NO +#WithTimeStamp= YES # Possible values: YES or NO +#WithLineBreak= YES # Possible values: YES or NO +#WithEventRanking= YES # Possible values: YES or NO + +#FileUnicode= YES # Possible values: YES or NO +#AddTestCaseTitle= YES # Possible values: YES or NO +[End_Logger_Defaults] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set filters to be used by ConsoleUI. +# If you want to use filter with ConsoleUI, simply remove comments +# from section below and provide valid filter entries. +# Each filter line has to start with "filter= " keyword. +# Filter can contain special wildcard characters: +# * which stands for none or any literal; +# ? which stands for single character. +# Filters are not case-sensitive. + +#[Filters] +#filter= *math* +#filter= *radio* +#[End_Filters] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +# End of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/rom/FormatterRFSPluginTestModule.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/rom/FormatterRFSPluginTestModule.iby Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,12 @@ +#ifndef __FORMATTERRFSPLUGINTESTMODULE_IBY__ +#define __FORMATTERRFSPLUGINTESTMODULE_IBY__ + +file=ABI_DIR\BUILD_DIR\FormatterRFSPluginTestModule.dll SHARED_LIB_DIR\FormatterRFSPluginTestModule.dll + +//data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini + +data=\epoc32\data\z\system\data\ui_FormatterRFSPluginTestModule.cfg \testframework\ui_FormatterRFSPluginTestModule.cfg + + + +#endif diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/src/FormatterRFSPluginTestModule.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/src/FormatterRFSPluginTestModule.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,669 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: This file contains testclass implementation. +* +*/ + +// INCLUDE FILES +#include +#include "FormatterRFSPluginTestModule.h" +#include + +#include +#include + +#include "formatterrfsplugincommon.h" +_LIT( KExcludeListPath,"c:\\private\\100059C9\\" ); +_LIT( KExcludeListName, "c:\\private\\100059C9\\excludelist.txt" ); +_LIT( KExcludeListAppSpecFolder, "c:\\private\\102073ea\\excludes\\" ); +_LIT( KExcludeListAppSpecName, "c:\\private\\102073ea\\excludes\\12345678.exc" ); +_LIT8( KDefaultExcludeList, "c:\\*.*\n" ); +_LIT( KExpectedScript, "2000F8F4:00000001;" ); + +// EXTERNAL DATA STRUCTURES +//extern ?external_data; + +// EXTERNAL FUNCTION PROTOTYPES +//extern ?external_function( ?arg_type,?arg_type ); + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def + +// LOCAL CONSTANTS AND MACROS +//const ?type ?constant_var = ?constant; +//#define ?macro_name ?macro_def + +// MODULE DATA STRUCTURES +//enum ?declaration +//typedef ?declaration + +// LOCAL FUNCTION PROTOTYPES +//?type ?function_name( ?arg_type, ?arg_type ); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; + +// ============================= LOCAL FUNCTIONS =============================== +// --------------------------------------------------------------------------- +// CreateExcludeListFileL +// --------------------------------------------------------------------------- +// +static void CreateExcludeListFileL( const TDesC& aFile ) + { + RFs fs; + TInt err = fs.Connect(); + RDebug::Print(_L("Failed to connect to file server = %d"),err); + User::LeaveIfError( err ); + CleanupClosePushL( fs ); + + err = fs.MkDirAll(KExcludeListPath); + if( err != KErrNone && err != KErrAlreadyExists ) + { + User::Leave( err ); + } + + err = fs.MkDirAll( KExcludeListAppSpecFolder ); + if( err != KErrNone && err != KErrAlreadyExists ) + { + User::Leave( err ); + } + RFile file; + err = file.Replace( fs, aFile, EFileWrite ); + RDebug::Print(_L("Failed to create file = %d"),err); + User::LeaveIfError( err ); + err = file.Write( KDefaultExcludeList ); + RDebug::Print(_L("Failed to write exclude list = %d"),err); + User::LeaveIfError( err ); + + file.Close(); + + CleanupStack::PopAndDestroy( &fs ); + } + + +// --------------------------------------------------------------------------- +// DeleteExcludeListFileL +// --------------------------------------------------------------------------- +// +static void DeleteExcludeListFileL( const TDesC& aFile ) + { + RFs fs; + TInt err = fs.Connect(); + RDebug::Print(_L("Failed to connect to file server = %d"),err); + User::LeaveIfError( err ); + CleanupClosePushL( fs ); + + err = fs.Delete( aFile ); + + CleanupStack::PopAndDestroy( &fs ); + } + + +// --------------------------------------------------------------------------- +// RunSecureFormatterL +// --------------------------------------------------------------------------- +// +static void RunSecureFormatterL() + { + RProcess process; + CleanupClosePushL( process ); + TInt err = process.Create( KSecureFormatter, KNullDesC ); + RDebug::Print(_L("Failed to create process = %d"),err); + User::LeaveIfError( err ); + + TRequestStatus status; + process.Logon( status ); + process.Resume(); + User::WaitForRequest( status ); + RDebug::Print(_L("secure formatter failed = %d"),err); + + CleanupStack::PopAndDestroy( &process ); + } + + + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::CFormatterRFSPluginTestModule +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CFormatterRFSPluginTestModule::CFormatterRFSPluginTestModule( + CTestModuleIf& aTestModuleIf ): + CScriptBase( aTestModuleIf ) + { + } + +// ----------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::ConstructL +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CFormatterRFSPluginTestModule::ConstructL() + { + //Read logger settings to check whether test case name is to be + //appended to log file name. + RSettingServer settingServer; + TInt ret = settingServer.Connect(); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Struct to StifLogger settigs. + TLoggerSettings loggerSettings; + // Parse StifLogger defaults from STIF initialization file. + ret = settingServer.GetLoggerSettings(loggerSettings); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Close Setting server session + settingServer.Close(); + + TFileName logFileName; + + if(loggerSettings.iAddTestCaseTitle) + { + TName title; + TestModuleIf().GetTestCaseTitleL(title); + logFileName.Format(KFormatterRFSPluginTestModuleLogFileWithTitle, &title); + } + else + { + logFileName.Copy(KFormatterRFSPluginTestModuleLogFile); + } + + iLog = CStifLogger::NewL( KFormatterRFSPluginTestModuleLogPath, + logFileName, + CStifLogger::ETxt, + CStifLogger::EFile, + EFalse ); + + SendTestClassVersion(); + } + +// ----------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CFormatterRFSPluginTestModule* CFormatterRFSPluginTestModule::NewL( + CTestModuleIf& aTestModuleIf ) + { + CFormatterRFSPluginTestModule* self = new (ELeave) CFormatterRFSPluginTestModule( aTestModuleIf ); + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + + return self; + + } + +// Destructor +CFormatterRFSPluginTestModule::~CFormatterRFSPluginTestModule() + { + + // Delete resources allocated from test methods + Delete(); + + // Delete logger + delete iLog; + + } + + +void CFormatterRFSPluginTestModule::Delete() + { + + } + +//----------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::SendTestClassVersion +// Method used to send version of test class +//----------------------------------------------------------------------------- +// +void CFormatterRFSPluginTestModule::SendTestClassVersion() + { + TVersion moduleVersion; + moduleVersion.iMajor = TEST_CLASS_VERSION_MAJOR; + moduleVersion.iMinor = TEST_CLASS_VERSION_MINOR; + moduleVersion.iBuild = TEST_CLASS_VERSION_BUILD; + + TFileName moduleName; + moduleName = _L("FormatterRFSPluginTestModule.dll"); + + TBool newVersionOfMethod = ETrue; + TestModuleIf().SendTestModuleVersion(moduleVersion, moduleName, newVersionOfMethod); + } + + +// ----------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::RunMethodL +// Run specified method. Contains also table of test mothods and their names. +// ----------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::RunMethodL( + CStifItemParser& aItem ) + { + + static TStifFunctionInfo const KFunctions[] = + { + // Copy this line for every implemented function. + // First string is the function name used in TestScripter script file. + // Second is the actual implementation member function. + // ENTRY( "Example", CFormatterRFSPluginTestModule::ExampleL ), + //ADD NEW ENTRY HERE + ENTRY( "SetupEmptyL", CFormatterRFSPluginTestModule::SetupEmptyL ), + ENTRY( "SetupConditionalL", CFormatterRFSPluginTestModule::SetupConditionalL ), + ENTRY( "SetupL", CFormatterRFSPluginTestModule::SetupL ), + ENTRY( "SetupExcludeListOnlyL", CFormatterRFSPluginTestModule::SetupExcludeListOnlyL ), + ENTRY( "SetupExcludeListL", CFormatterRFSPluginTestModule::SetupExcludeListL ), + ENTRY( "SetupAppSpecExcludeListOnlyL", CFormatterRFSPluginTestModule::SetupAppSpecExcludeListOnlyL ), + ENTRY( "SetupAppSpecExcludeListL", CFormatterRFSPluginTestModule::SetupAppSpecExcludeListL ), + ENTRY( "Teardown", CFormatterRFSPluginTestModule::Teardown ), + ENTRY( "TeardownExcludeList", CFormatterRFSPluginTestModule::TeardownExcludeList ), + ENTRY( "TeardownAppSpecExcludeList", CFormatterRFSPluginTestModule::TeardownAppSpecExcludeList ), + ENTRY( "TestConstructorL", CFormatterRFSPluginTestModule::TestConstructorL ), + ENTRY( "TestConstructorNoMemoryL", CFormatterRFSPluginTestModule::TestConstructorNoMemoryL ), + ENTRY( "TestRestoreConditionalL", CFormatterRFSPluginTestModule::TestRestoreConditionalL ), + ENTRY( "TestRestoreL", CFormatterRFSPluginTestModule::TestRestoreL ), + ENTRY( "TestRestoreWithExcludeListL", CFormatterRFSPluginTestModule::TestRestoreWithExcludeListL ), + ENTRY( "TestRestoreNoMemoryL", CFormatterRFSPluginTestModule::TestRestoreNoMemoryL ), + ENTRY( "TestGetScriptConditionalL", CFormatterRFSPluginTestModule::TestGetScriptConditionalL ), + ENTRY( "TestGetScriptL", CFormatterRFSPluginTestModule::TestGetScriptL ), + ENTRY( "TestGetScriptEmptyL", CFormatterRFSPluginTestModule::TestGetScriptEmptyL ), + ENTRY( "TestCustomCommandL", CFormatterRFSPluginTestModule::TestCustomCommandL ), + + // [test cases entries] - Do not remove + + }; + + const TInt count = sizeof( KFunctions ) / + sizeof( TStifFunctionInfo ); + + return RunInternalL( KFunctions, count, aItem ); + + } + +// ==========================TEST METHODS======================================= +// --------------------------------------------------------------------------- +// CFormatterRfsPluginTestSuite::SetupEmptyL +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::SetupEmptyL(CStifItemParser& /*aItem*/) + { + iTestObj = NULL; + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRfsPluginTestSuite::SetupConditionalL +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::SetupConditionalL(CStifItemParser& /*aItem*/) + { + AppExcludeListsExistL(); + iTestObj = CRFSPlugin::NewL( TUid::Uid( 0x2001CB74 ) ); + + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::SetupL +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::SetupL(CStifItemParser& aItem) + { + SetupEmptyL(aItem); + iTestObj = CRFSPlugin::NewL( TUid::Uid( 0x2001CB74 ) ); + + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::SetupExcludeListOnlyL +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::SetupExcludeListOnlyL(CStifItemParser& /*aItem*/) + { + CreateExcludeListFileL( KExcludeListName ); + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::SetupExcludeListL +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::SetupExcludeListL(CStifItemParser& aItem) + { + CreateExcludeListFileL( KExcludeListName ); + SetupL(aItem); + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::SetupAppSpecExcludeListOnlyL +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::SetupAppSpecExcludeListOnlyL(CStifItemParser& aItem) + { + CreateExcludeListFileL( KExcludeListAppSpecName ); + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::SetupAppSpecExcludeListL +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::SetupAppSpecExcludeListL(CStifItemParser& aItem) + { + CreateExcludeListFileL( KExcludeListAppSpecName ); + SetupL(aItem); + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::Teardown +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::Teardown(CStifItemParser& /*aItem*/) + { + delete iTestObj; + iTestObj = NULL; + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::TeardownExcludeList +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::TeardownExcludeList(CStifItemParser& aItem) + { + Teardown(aItem); + TRAP_IGNORE( DeleteExcludeListFileL( KExcludeListName ) ); + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::TeardownAppSpecExcludeList +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::TeardownAppSpecExcludeList(CStifItemParser& aItem) + { + Teardown(aItem); + TRAP_IGNORE( DeleteExcludeListFileL( KExcludeListAppSpecName ) ); + + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::TestConstructorL +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::TestConstructorL(CStifItemParser& /*aItem*/) + { + STIF_ASSERT_NOT_LEAVES( iTestObj = CRFSPlugin::NewL( TUid::Uid( 0x2001CB74 ) ) ); + STIF_ASSERT_NOT_NULL( iTestObj ); + //delete iTestObj; + //iTestObj = NULL; + + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::TestConstructorNoMemoryL +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::TestConstructorNoMemoryL(CStifItemParser& /*aItem*/) + { + STIF_ASSERT_LEAVES_WITH( KErrNoMemory, + iTestObj = CRFSPlugin::NewL( TUid::Uid( 0x2001CB74 ) )); + //EUNIT_ASSERT( !iTestObj ); + STIF_ASSERT_NULL(iTestObj); + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::TestRestoreConditionalL +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::TestRestoreConditionalL(CStifItemParser& aItem) + { + if( iAppSpecificFilesExist ) + { + TestRestoreNoMemoryL(aItem); + } + else + { + TestRestoreL(aItem); + } + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::TestRestoreL +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::TestRestoreL(CStifItemParser& /*aItem*/) + { + STIF_ASSERT_NOT_LEAVES( iTestObj->RestoreFactorySettingsL( ENormalRfs ) ); + STIF_ASSERT_NOT_LEAVES( iTestObj->RestoreFactorySettingsL( EDeepRfs ) ); + STIF_ASSERT_NOT_LEAVES( iTestObj->RestoreFactorySettingsL( EInitRfs ) ); + STIF_ASSERT_NOT_LEAVES( iTestObj->RestoreFactorySettingsL( static_cast( 100 ) ) ); + + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::TestRestoreWithExcludeListL +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::TestRestoreWithExcludeListL(CStifItemParser& /*aItem*/) + { + STIF_ASSERT_LEAVES_WITH( KErrPermissionDenied, iTestObj->RestoreFactorySettingsL( ENormalRfs )); + STIF_ASSERT_LEAVES_WITH( KErrPermissionDenied, iTestObj->RestoreFactorySettingsL( EDeepRfs )); + STIF_ASSERT_LEAVES_WITH( KErrPermissionDenied, iTestObj->RestoreFactorySettingsL( EInitRfs )); + STIF_ASSERT_LEAVES_WITH( KErrPermissionDenied, iTestObj->RestoreFactorySettingsL( static_cast( 100 ) )); + + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::TestRestoreNoMemoryL +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::TestRestoreNoMemoryL(CStifItemParser& /*aItem*/) + { + STIF_ASSERT_LEAVES_WITH( KErrNoMemory, iTestObj->RestoreFactorySettingsL( ENormalRfs )); + STIF_ASSERT_LEAVES_WITH( KErrNoMemory, iTestObj->RestoreFactorySettingsL( EDeepRfs )); + STIF_ASSERT_LEAVES_WITH( KErrNoMemory, iTestObj->RestoreFactorySettingsL( EInitRfs )); + STIF_ASSERT_LEAVES_WITH( KErrNoMemory, iTestObj->RestoreFactorySettingsL( static_cast( 100 ) )); + + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::TestGetScriptConditionalL +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::TestGetScriptConditionalL(CStifItemParser& aItem) + { + if( iAppSpecificFilesExist ) + { + TestGetScriptEmptyL(aItem); + } + else + { + TestGetScriptL(aItem); + } + + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::TestGetScriptL +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::TestGetScriptL(CStifItemParser& /*aItem*/) + { + TBuf<256> path; + TBuf<256> buf; + buf.Copy(KExpectedScript); + STIF_ASSERT_NOT_LEAVES( iTestObj->GetScriptL( ENormalRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iTestObj->GetScriptL( EDeepRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iTestObj->GetScriptL( EInitRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iTestObj->GetScriptL( static_cast( 100 ), path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + STIF_ASSERT_EQUALS( buf, path ); + + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::TestGetScriptEmptyL +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::TestGetScriptEmptyL(CStifItemParser& /*aItem*/) + { + TBuf<256> path; + TBuf<256> buf; + buf.Copy(KNullDesC); + + STIF_ASSERT_NOT_LEAVES( iTestObj->GetScriptL( ENormalRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + STIF_ASSERT_EQUALS( buf, path); + + STIF_ASSERT_NOT_LEAVES( iTestObj->GetScriptL( EDeepRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + STIF_ASSERT_EQUALS( buf, path); + + STIF_ASSERT_NOT_LEAVES( iTestObj->GetScriptL( EInitRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iTestObj->GetScriptL( static_cast( 100 ), path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + STIF_ASSERT_EQUALS( buf, path ); + + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// CFormatterRFSPluginTestModule::TestCustomCommandL +// --------------------------------------------------------------------------- +// +TInt CFormatterRFSPluginTestModule::TestCustomCommandL(CStifItemParser& /*aItem*/) + { + TBuf<256> param1( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iTestObj->ExecuteCustomCommandL( ENormalRfs, param1 ) ); + TBuf<1> param2( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iTestObj->ExecuteCustomCommandL( EDeepRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iTestObj->ExecuteCustomCommandL( EInitRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iTestObj->ExecuteCustomCommandL( static_cast( 100 ), param2 ) ); + + return KErrNone; + } + + +// --------------------------------------------------------------------------- +// AppExcludeListsExistL +// --------------------------------------------------------------------------- +// +void CFormatterRFSPluginTestModule::AppExcludeListsExistL() + { + RFs fs; + TInt err = fs.Connect(); + RDebug::Print(_L("Failed to connect to file server = %d"), err); + User::LeaveIfError( err ); + CleanupClosePushL( fs ); + + HBufC* buf = HBufC::NewLC( KMaxFileName ); + TPtr bufPtr = buf->Des(); + bufPtr.Append( KApplicationExcludeListPath ); + bufPtr.Append( KApplicationExcludeListFileSearchPattern ); + bufPtr[0] = fs.GetSystemDriveChar(); + + CDir* dirC = NULL; + TInt errC = fs.GetDir( bufPtr, KEntryAttNormal, ESortNone, dirC ); + CDir* dirZ = NULL; + bufPtr[0] = KDefaultRom()[0]; + TInt errZ = fs.GetDir( bufPtr, KEntryAttNormal, ESortNone, dirZ ); + + if( (errC == KErrNone && dirC->Count() ) || + (errZ == KErrNone && dirZ->Count() ) ) + { + iAppSpecificFilesExist = ETrue; + } + else + { + iAppSpecificFilesExist = EFalse; + } + + delete dirC; + delete dirZ; + CleanupStack::PopAndDestroy( buf ); + CleanupStack::PopAndDestroy( &fs ); + } + + +// ========================== OTHER EXPORTED FUNCTIONS ========================= + +// ----------------------------------------------------------------------------- +// LibEntryL is a polymorphic Dll entry point. +// Returns: CScriptBase: New CScriptBase derived object +// ----------------------------------------------------------------------------- +// +EXPORT_C CScriptBase* LibEntryL( + CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework + { + + return ( CScriptBase* ) CFormatterRFSPluginTestModule::NewL( aTestModuleIf ); + + } + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/Bmarm/NitzRFSPluginTestModuleU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/Bmarm/NitzRFSPluginTestModuleU.DEF Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/Bwins/NitzRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/Bwins/NitzRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/conf/NitzRFSPluginTestModule.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/conf/NitzRFSPluginTestModule.cfg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,54 @@ +[Test] +title Nitz_Create and destroy RfsPlugin +create NitzRFSPluginTestModule testClass +print About to create_plugin +testClass CreatePlugin +print Plugin created +testClass DestroyPlugin +print Plugin destroyed +delete testClass +[Endtest] + +[Test] +title Nitz_Test RestoreFactorySettingsL +create NitzRFSPluginTestModule testClass +print About to create_plugin +testClass CreatePlugin +print Plugin created +testClass RestoreFactorySettings +testClass DestroyPlugin +print Plugin destroyed +delete testClass +[Endtest] + +[Test] +title Nitz_Test GetScriptL +create NitzRFSPluginTestModule testClass +print About to create_plugin +testClass CreatePlugin +print Plugin created +testClass GetScript +testClass DestroyPlugin +print Plugin destroyed +delete testClass +[Endtest] + +[Test] +title Nitz_Test ExecuteCustomCommandL +create NitzRFSPluginTestModule testClass +print About to create_plugin +testClass CreatePlugin +print Plugin created +testClass ExecuteCustomCommand +testClass DestroyPlugin +print Plugin destroyed +delete testClass +[Endtest] + + + + + + + + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/eabi/NitzRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/eabi/NitzRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/group/NitzRFSPluginTestModule.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/group/NitzRFSPluginTestModule.mmp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,77 @@ +/*TYPE TESTCLASS*/ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: MMP file for STIF Test Framework's TestScripter +* testclass test module. +* +*/ + +#include + +SMPSAFE + +TARGET NitzRFSPluginTestModule.dll +TARGETTYPE dll +UID 0x1000008D 0x101FB3E3 + +CAPABILITY ALL -TCB +/* Remove comments and replace 0x00000000 with correct vendor id */ +// VENDORID 0x00000000 +/* Remove comments and replace 0x00000000 with correct secure id */ +// SECUREID 0x00000000 + +//TARGETPATH ?target_path +DEFFILE NitzRFSPluginTestModule.def + +USERINCLUDE ../inc + +MW_LAYER_SYSTEMINCLUDE + +SOURCEPATH ../src + +SOURCE NitzRFSPluginTestModule.cpp + +//RESOURCE resource_file +//RESOURCE resource_file2 + +LIBRARY euser.lib +LIBRARY stiftestinterface.lib +LIBRARY stiftestengine.lib +LIBRARY ecom.lib + +LANG SC + +/* +START WINS +?wins_specific_information +END + +START MARM +?marm_specific_information +END +*/ +// Other possible keywords: + +// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes) +/* +START BITMAP ?target +TARGETPATH ?emulated_path_on_target_machine +HEADER +SOURCE ?color_depth ?source_bitmap +END +*/ +// DEFFILE ?filename +// AIF ?filename + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/group/NitzRFSPluginTestModule.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/group/NitzRFSPluginTestModule.pkg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,60 @@ +; +; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; All rights reserved. +; This component and the accompanying materials are made available +; under the terms of "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: +; +; Installation file for STIF +; + +; Languages +&EN + +; Provide value for uid +#{"STIF"},(0x00000000),1,1,0,TYPE=SA + +; Series60 product id for S60 3.0 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + +; Localised Vendor name +%{"Nokia"} + +; Unique Vendor name +:"Nokia" + +; Logo +; None + +; Package signature - Optional +; None + +; Start of Package body + +; Condition blocks +; None + +; Options list +; None + +; Install files +"\epoc32\release\armv5\udeb\NitzRFSPluginTestModule.dll" - "!:\Sys\Bin\NitzRFSPluginTestModule.dll" + +; Embedded SIS +; None + +; End of Package body + +; PKG dependencies +; None + +; PKG capabilities +; None diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/group/NitzRFSPluginTestModule_DoxyFile.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/group/NitzRFSPluginTestModule_DoxyFile.txt Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,240 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "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: +# +# + +# Doxyfile 1.4.1 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = NitzRFSPluginTestModule +PROJECT_NUMBER = +OUTPUT_DIRECTORY = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\NitzRFSPluginTestModule\ +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = YES +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = NO +STRIP_FROM_PATH = +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +DISTRIBUTE_GROUP_DOC = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = YES +OPTIMIZE_OUTPUT_JAVA = NO +SUBGROUPING = YES +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = YES +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = NO +EXTRACT_LOCAL_METHODS = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = YES +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = NO +GENERATE_TESTLIST = NO +GENERATE_BUGLIST = NO +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = YES +FILE_VERSION_FILTER = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\NitzRFSPluginTestModule\ +FILE_PATTERNS = *.h \ + *.rh \ + *.hrh +RECURSIVE = YES +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = NO +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = NO +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = YES +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +BINARY_TOC = YES +TOC_EXPAND = YES +DISABLE_INDEX = YES +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = YES +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = YES +RTF_OUTPUT = Doc +COMPACT_RTF = YES +RTF_HYPERLINKS = YES +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = YES +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = NONSHARABLE_CLASS +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = NO +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = YES +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 0 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/group/bld.inf Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: +* +*/ + +PRJ_PLATFORMS +// specify the platforms your component needs to be built for here +// defaults to WINS MARM so you can ignore this if you just build these + + DEFAULT + +PRJ_TESTEXPORTS +// NOTE: If using ARS requirements all export operations should be done under this. +// 'abld test export' +../init/TestFramework.ini /epoc32/winscw/c/TestFramework/TestFramework.ini +../init/TestFramework.ini /epoc32/data/z/system/data/TestFramework.ini + +../conf/NitzRFSPluginTestModule.cfg /epoc32/winscw/c/TestFramework/NitzRFSPluginTestModule.cfg +../conf/NitzRFSPluginTestModule.cfg /epoc32/data/z/system/data/NitzRFSPluginTestModule.cfg + +../rom/NitzRFSPluginTestModule.iby CORE_MW_LAYER_IBY_EXPORT_PATH(NitzRFSPluginTestModule.iby) + + +PRJ_EXPORTS +// Specify the source file followed by its destination here +// copy will be used to copy the source file to its destination +// If there's no destination then the source file will be copied +// to the same name in \epoc32\include +// Example: +/* +\agnmodel\inc\AGMCOMON.H +*/ + +PRJ_TESTMMPFILES + + NitzRFSPluginTestModule.mmp + +PRJ_MMPFILES + + +// Specify the .mmp files required for building the important component +// releasables. +// +// Specify "tidy" if the component you need to build doesn't need to be +// released. Specify "ignore" if the MMP file exists but should be +// ignored. +// Example: +/* +\agnmodel\group\agnmodel.mmp +#if defined(MARM) +\agnmodel\group\agsvexe.mmp +#endif +*/ + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/inc/NitzRFSPluginTestModule.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/inc/NitzRFSPluginTestModule.h Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,177 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: STIF testclass declaration +* +*/ + +#ifndef NITZRFSPLUGINTESTMODULE_H +#define NITZRFSPLUGINTESTMODULE_H + +// INCLUDES +#include +#include +#include +#include + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def +#define TEST_CLASS_VERSION_MAJOR 0 +#define TEST_CLASS_VERSION_MINOR 0 +#define TEST_CLASS_VERSION_BUILD 0 + +// Logging path +_LIT( KNitzRFSPluginTestModuleLogPath, "\\logs\\testframework\\NitzRFSPluginTestModule\\" ); +// Log file +_LIT( KNitzRFSPluginTestModuleLogFile, "NitzRFSPluginTestModule.txt" ); +_LIT( KNitzRFSPluginTestModuleLogFileWithTitle, "NitzRFSPluginTestModule_[%S].txt" ); + +// FUNCTION PROTOTYPES +//?type ?function_name(?arg_list); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; +class CRFSPlugin; +class CNitzRFSPluginTestModule; + +// DATA TYPES +//enum ?declaration +//typedef ?declaration +//extern ?data_type; + +// CLASS DECLARATION + +/** +* CNitzRFSPluginTestModule test class for STIF Test Framework TestScripter. +* ?other_description_lines +* +* @lib ?library +* @since ?Series60_version +*/ +NONSHARABLE_CLASS(CNitzRFSPluginTestModule) : public CScriptBase + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CNitzRFSPluginTestModule* NewL( CTestModuleIf& aTestModuleIf ); + + /** + * Destructor. + */ + virtual ~CNitzRFSPluginTestModule(); + + public: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + public: // Functions from base classes + + /** + * From CScriptBase Runs a script line. + * @since ?Series60_version + * @param aItem Script line containing method name and parameters + * @return Symbian OS error code + */ + virtual TInt RunMethodL( CStifItemParser& aItem ); + + protected: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + protected: // Functions from base classes + + /** + * From ?base_class ?member_description + */ + //?type ?member_function(); + + private: + + /** + * C++ default constructor. + */ + CNitzRFSPluginTestModule( CTestModuleIf& aTestModuleIf ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + // Prohibit copy constructor if not deriving from CBase. + // ?classname( const ?classname& ); + // Prohibit assigment operator if not deriving from CBase. + // ?classname& operator=( const ?classname& ); + + /** + * Frees all resources allocated from test methods. + * @since ?Series60_version + */ + void Delete(); + + /** + * Test methods are listed below. + */ + TInt CreatePlugin( CStifItemParser& aItem ); + TInt DestroyPlugin( CStifItemParser& aItem ); + TInt RestoreFactorySettings( CStifItemParser& aItem ); + TInt GetScript( CStifItemParser& aItem ); + TInt ExecuteCustomCommand( CStifItemParser& aItem ); + + /** + * Method used to log version of test class + */ + void SendTestClassVersion(); + + //ADD NEW METHOD DEC HERE + //[TestMethods] - Do not remove + + public: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + protected: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + private: // Data + CRFSPlugin* iPlugin; + + public: // Friend classes + //?friend_class_declaration; + protected: // Friend classes + //?friend_class_declaration; + private: // Friend classes + //?friend_class_declaration; + + }; + +#endif // NITZRFSPLUGINTESTMODULE_H + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/init/TestFramework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/init/TestFramework.ini Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,219 @@ +# +# This is STIF initialization file +# Comment lines start with '#'-character. +# See STIF TestFramework users guide.doc for instructions + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set following test engine settings: +# - Set Test Reporting mode. TestReportMode's possible values are: +# + 'Summary': Summary of the tested test cases. +# + 'Environment': Hardware and software info. +# + 'TestCases': Test case report. +# + 'FullReport': Set of all above ones. +# + Example 'TestReportMode= Summary TestCases' +# +# - CreateTestReport setting controls report creation mode +# + YES, Test report will created. +# + NO, No Test report. +# +# - File path indicates the base path of the test report. +# - File name indicates the name of the test report. +# +# - File format indicates the type of the test report. +# + TXT, Test report file will be txt type, for example 'TestReport.txt'. +# + HTML, Test report will be html type, for example 'TestReport.html'. +# + XML, Test report will be xml type, for example 'TestReport.xml'. +# Note, that xml format is available only when output is set to FILE. +# +# - File output indicates output source of the test report. +# + FILE, Test report logging to file. +# + RDEBUG, Test report logging to using rdebug. +# +# - File Creation Mode indicates test report overwriting if file exist. +# + OVERWRITE, Overwrites if the Test report file exist. +# + APPEND, Continue logging after the old Test report information if +# report exist. +# - Sets a device reset module's dll name(Reboot). +# + If Nokia specific reset module is not available or it is not correct one +# StifHWResetStub module may use as a template for user specific reset +# module. +# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation +# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02 +# + +[Engine_Defaults] + +TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment', + # 'TestCases' or 'FullReport' + +CreateTestReport= YES # Possible values: YES or NO + +TestReportFilePath= C:\LOGS\TestFramework\ +TestReportFileName= TestReport + +TestReportFormat= TXT # Possible values: TXT, HTML or XML +TestReportOutput= FILE # Possible values: FILE or RDEBUG +TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting + +DisableMeasurement= stifmeasurementdisablenone # Possible values are: + # 'stifmeasurementdisablenone', 'stifmeasurementdisableall' + # 'stifmeasurementplugin01', 'stifmeasurementplugin02', + # 'stifmeasurementplugin03', 'stifmeasurementplugin04', + # 'stifmeasurementplugin05' or 'stifbappeaprofiler' + +Timeout= 0 # Default timeout value for each test case. In milliseconds +#UITestingSupport= YES # Possible values: YES or NO +#SeparateProcesses= YES # Possible values: YES or NO (default: NO) +[End_Defaults] + +[New_Module] +ModuleName= testscripter +TestCaseFile= Z:\TestFramework\NitzRFSPluginTestModule.cfg +[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Module configurations start +# Modules are added between module tags +# tags. Module name is specified after ModuleName= tag, like +# ModuleName= XXXXXXXXX +# Modules might have initialisation file, specified as +# IniFile= c:\testframework\YYYYYY +# Modules might have several configuration files, like +# TestCaseFile= c:\testframework\NormalCases.txt +# TestCaseFile= c:\testframework\SmokeCases.txt +# TestCaseFile= c:\testframework\ManualCases.txt + +# (TestCaseFile is synonym for old term ConfigFile) + +# Following case specifies demo module settings. Demo module +# does not read any settings from file, so tags +# IniFile and TestCaseFile are not used. +# In the simplest case it is enough to specify only the +# name of the test module when adding new test module + + + +# Load testmoduleXXX, optionally with initialization file and/or test case files +#[New_Module] +#ModuleName= testmodulexxx + +#TestModuleXXX used initialization file +#IniFile= c:\testframework\init.txt + +#TestModuleXXX used configuration file(s) +#TestCaseFile= c:\testframework\testcases1.cfg +#TestCaseFile= c:\testframework\testcases2.cfg +#TestCaseFile= c:\testframework\manualtestcases.cfg + +#[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set STIF logging overwrite parameters for Logger. +# Hardware and emulator environment logging path and styles can +# be configured from here to overwrite the Logger's implemented values. +# +# Settings description: +# - Indicates option for creation log directory/directories. If log directory/directories +# is/are not created by user they will make by software. +# + YES, Create log directory/directories if not allready exist. +# + NO, Log directory/directories not created. Only created one is used. +# +# - Overwrite emulator path setting. +# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined +# Logger's path 'D:\\LOGS\\Module\\' with those definition the path +# will be 'C:\LOGS\TestFramework\LOGS\Module\' +# +# - Overwrite emulator's logging format. +# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'. +# + HTML, Log file(s) will be html type(s), for example 'Module.html'. +# +# - Overwrited emulator logging output source. +# + FILE, Logging to file(s). +# + RDEBUG, Logging to using rdebug(s). +# +# - Overwrite hardware path setting (Same description as above in emulator path). +# - Overwrite hardware's logging format(Same description as above in emulator format). +# - Overwrite hardware's logging output source(Same description as above in emulator output). +# +# - File Creation Mode indicates file overwriting if file exist. +# + OVERWRITE, Overwrites if file(s) exist. +# + APPEND, Continue logging after the old logging information if file(s) exist. +# +# - Will thread id include to the log filename. +# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'. +# + NO, No thread id to log file(s), Example filename 'Module.txt'. +# +# - Will time stamps include the to log file. +# + YES, Time stamp added to each line in log file(s). Time stamp is +# for example'12.Nov.2003 115958 LOGGING INFO' +# + NO, No time stamp(s). +# +# - Will line breaks include to the log file. +# + YES, Each logging event includes line break and next log event is in own line. +# + NO, No line break(s). +# +# - Will event ranking include to the log file. +# + YES, Event ranking number added to each line in log file(s). Ranking number +# depends on environment's tics, for example(includes time stamp also) +# '012 12.Nov.2003 115958 LOGGING INFO' +# + NO, No event ranking. +# +# - Will write log file in unicode format. +# + YES, Log file will be written in unicode format +# + NO, Log will be written as normal, not unicode, file. +# + +[Logger_Defaults] + +#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#' +#NOTE: TestEngine and TestServer logging settings cannot change here + +#CreateLogDirectories= YES # Possible values: YES or NO + +#EmulatorBasePath= C:\LOGS\TestFramework\ +#EmulatorFormat= HTML # Possible values: TXT or HTML +#EmulatorOutput= FILE # Possible values: FILE or RDEBUG + +#HardwareBasePath= D:\LOGS\TestFramework\ +#HardwareFormat= HTML # Possible values: TXT or HTML +#HardwareOutput= FILE # Possible values: FILE or RDEBUG + +#FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +#ThreadIdToLogFile= YES # Possible values: YES or NO +#WithTimeStamp= YES # Possible values: YES or NO +#WithLineBreak= YES # Possible values: YES or NO +#WithEventRanking= YES # Possible values: YES or NO + +#FileUnicode= YES # Possible values: YES or NO +#AddTestCaseTitle= YES # Possible values: YES or NO +[End_Logger_Defaults] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set filters to be used by ConsoleUI. +# If you want to use filter with ConsoleUI, simply remove comments +# from section below and provide valid filter entries. +# Each filter line has to start with "filter= " keyword. +# Filter can contain special wildcard characters: +# * which stands for none or any literal; +# ? which stands for single character. +# Filters are not case-sensitive. + +#[Filters] +#filter= *math* +#filter= *radio* +#[End_Filters] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +# End of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/rom/NitzRFSPluginTestModule.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/rom/NitzRFSPluginTestModule.iby Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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 __NITZRFSPLUGINTESTMODULE_IBY__ +#define __NITZRFSPLUGINTESTMODULE_IBY__ + +file=ABI_DIR\BUILD_DIR\NitzRFSPluginTestModule.dll SHARED_LIB_DIR\NitzRFSPluginTestModule.dll + +//data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini + +data=\epoc32\data\z\system\data\NitzRFSPluginTestModule.cfg \testframework\NitzRFSPluginTestModule.cfg + + + +#endif diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/src/NitzRFSPluginTestModule.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/NitzRFSPluginTestModule/src/NitzRFSPluginTestModule.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,304 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: This file contains testclass implementation. +* +*/ + +// INCLUDE FILES +#include +#include "NitzRFSPluginTestModule.h" +#include +#include + +// EXTERNAL DATA STRUCTURES +//extern ?external_data; + +// EXTERNAL FUNCTION PROTOTYPES +//extern ?external_function( ?arg_type,?arg_type ); + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def + +// LOCAL CONSTANTS AND MACROS +//const ?type ?constant_var = ?constant; +//#define ?macro_name ?macro_def + +// MODULE DATA STRUCTURES +//enum ?declaration +//typedef ?declaration + +// LOCAL FUNCTION PROTOTYPES +//?type ?function_name( ?arg_type, ?arg_type ); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; + +// ============================= LOCAL FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// ?function_name ?description. +// ?description +// Returns: ?value_1: ?description +// ?value_n: ?description_line1 +// ?description_line2 +// ----------------------------------------------------------------------------- +// +/* +?type ?function_name( + ?arg_type arg, // ?description + ?arg_type arg) // ?description + { + + ?code // ?comment + + // ?comment + ?code + } +*/ + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CNitzRFSPluginTestModule::CNitzRFSPluginTestModule +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CNitzRFSPluginTestModule::CNitzRFSPluginTestModule( + CTestModuleIf& aTestModuleIf ): + CScriptBase( aTestModuleIf ) + { + } + +// ----------------------------------------------------------------------------- +// CNitzRFSPluginTestModule::ConstructL +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CNitzRFSPluginTestModule::ConstructL() + { + //Read logger settings to check whether test case name is to be + //appended to log file name. + RSettingServer settingServer; + TInt ret = settingServer.Connect(); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Struct to StifLogger settigs. + TLoggerSettings loggerSettings; + // Parse StifLogger defaults from STIF initialization file. + ret = settingServer.GetLoggerSettings(loggerSettings); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Close Setting server session + settingServer.Close(); + + TFileName logFileName; + + if(loggerSettings.iAddTestCaseTitle) + { + TName title; + TestModuleIf().GetTestCaseTitleL(title); + logFileName.Format(KNitzRFSPluginTestModuleLogFileWithTitle, &title); + } + else + { + logFileName.Copy(KNitzRFSPluginTestModuleLogFile); + } + + iLog = CStifLogger::NewL( KNitzRFSPluginTestModuleLogPath, + logFileName, + CStifLogger::ETxt, + CStifLogger::EFile, + EFalse ); + + SendTestClassVersion(); + } + +// ----------------------------------------------------------------------------- +// CNitzRFSPluginTestModule::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CNitzRFSPluginTestModule* CNitzRFSPluginTestModule::NewL( + CTestModuleIf& aTestModuleIf ) + { + CNitzRFSPluginTestModule* self = new (ELeave) CNitzRFSPluginTestModule( aTestModuleIf ); + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + + return self; + + } + +// ----------------------------------------------------------------------------- +// CNitzRFSPluginTestModule::Delete +// Delete here all resources allocated and opened from test methods. +// Called from destructor. +// ----------------------------------------------------------------------------- +// +void CNitzRFSPluginTestModule::Delete() + { + + } + +// Destructor +CNitzRFSPluginTestModule::~CNitzRFSPluginTestModule() + { + + // Delete resources allocated from test methods + Delete(); + + delete iPlugin; + REComSession::FinalClose(); + + // Delete logger + delete iLog; + + } + +//----------------------------------------------------------------------------- +// CNitzRFSPluginTestModule::SendTestClassVersion +// Method used to send version of test class +//----------------------------------------------------------------------------- +// +void CNitzRFSPluginTestModule::SendTestClassVersion() + { + TVersion moduleVersion; + moduleVersion.iMajor = TEST_CLASS_VERSION_MAJOR; + moduleVersion.iMinor = TEST_CLASS_VERSION_MINOR; + moduleVersion.iBuild = TEST_CLASS_VERSION_BUILD; + + TFileName moduleName; + moduleName = _L("NitzRFSPluginTestModule.dll"); + + TBool newVersionOfMethod = ETrue; + TestModuleIf().SendTestModuleVersion(moduleVersion, moduleName, newVersionOfMethod); + } + +// ----------------------------------------------------------------------------- +// CNitzRFSPluginTestModule::RunMethodL +// Run specified method. Contains also table of test mothods and their names. +// ----------------------------------------------------------------------------- +// +TInt CNitzRFSPluginTestModule::RunMethodL( + CStifItemParser& aItem ) + { + + static TStifFunctionInfo const KFunctions[] = + { + // Copy this line for every implemented function. + // First string is the function name used in TestScripter script file. + // Second is the actual implementation member function. + ENTRY( "CreatePlugin", CNitzRFSPluginTestModule::CreatePlugin ), + ENTRY( "DestroyPlugin", CNitzRFSPluginTestModule::DestroyPlugin ), + ENTRY( "RestoreFactorySettings", CNitzRFSPluginTestModule::RestoreFactorySettings ), + ENTRY( "GetScript", CNitzRFSPluginTestModule::GetScript ), + ENTRY( "ExecuteCustomCommand", CNitzRFSPluginTestModule::ExecuteCustomCommand ), + //ADD NEW ENTRY HERE + // [test cases entries] - Do not remove + + }; + + const TInt count = sizeof( KFunctions ) / + sizeof( TStifFunctionInfo ); + + return RunInternalL( KFunctions, count, aItem ); + + } + +TInt CNitzRFSPluginTestModule::CreatePlugin(CStifItemParser& /*aItem */) + { + STIF_ASSERT_NOT_LEAVES(iPlugin = CRFSPlugin::NewL( TUid::Uid( 0x2000F8B4 ) ) ); + STIF_ASSERT_NOT_NULL( iPlugin ); + + return KErrNone; + + } +TInt CNitzRFSPluginTestModule::DestroyPlugin(CStifItemParser& /*aItem*/ ) + { + delete iPlugin; + iPlugin = NULL; + + return KErrNone; + } + +TInt CNitzRFSPluginTestModule::RestoreFactorySettings(CStifItemParser& /*aItem*/ ) + { + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( ENormalRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EDeepRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EInitRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( static_cast( 100 ) ) ); + return KErrNone; + } + +TInt CNitzRFSPluginTestModule::GetScript(CStifItemParser& /*aItem*/ ) + { + TBuf<256> path; + //TBuf<256> buf; + //buf.Copy(KExpectedScript); + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( ENormalRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EDeepRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EInitRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( static_cast( 100 ), path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + return KErrNone; + } + +TInt CNitzRFSPluginTestModule::ExecuteCustomCommand(CStifItemParser& /*aItem*/ ) + { + TBuf<256> param1( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( ENormalRfs, param1 ) ); + TBuf<1> param2( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EDeepRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EInitRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( static_cast( 100 ), param2 ) ); + return KErrNone; + } + +// ========================== OTHER EXPORTED FUNCTIONS ========================= + +// ----------------------------------------------------------------------------- +// LibEntryL is a polymorphic Dll entry point. +// Returns: CScriptBase: New CScriptBase derived object +// ----------------------------------------------------------------------------- +// +EXPORT_C CScriptBase* LibEntryL( + CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework + { + + return ( CScriptBase* ) CNitzRFSPluginTestModule::NewL( aTestModuleIf ); + + } + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/Bmarm/RfsDisplayContrastPluginTestModuleU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/Bmarm/RfsDisplayContrastPluginTestModuleU.DEF Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/Bwins/RfsDisplayContrastPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/Bwins/RfsDisplayContrastPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/conf/RfsDisplayContrastPluginTestModule.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/conf/RfsDisplayContrastPluginTestModule.cfg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,42 @@ +[Test] +title DisplayConstrast_Create and destroy RfsPlugin +create RfsDisplayContrastPluginTestModule testClass +testClass CreatePlugin +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title DisplayConstrast_Test RestoreFactorySettingsL +create RfsDisplayContrastPluginTestModule testClass +testClass CreatePlugin +testClass RestoreFactorySettings +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title DisplayConstrast_Test GetScriptL +create RfsDisplayContrastPluginTestModule testClass +testClass CreatePlugin +testClass GetScript +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title DisplayConstrast_Test ExecuteCustomCommandL +create RfsDisplayContrastPluginTestModule testClass +testClass CreatePlugin +testClass ExecuteCustomCommand +testClass DestroyPlugin +delete testClass +[Endtest] + + + + + + + + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/eabi/RfsDisplayContrastPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/eabi/RfsDisplayContrastPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/group/RfsDisplayContrastPluginTestModule.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/group/RfsDisplayContrastPluginTestModule.mmp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,78 @@ +/*TYPE TESTCLASS*/ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: MMP file for STIF Test Framework's TestScripter +* testclass test module. +* +*/ + +#include + +SMPSAFE + +TARGET RfsDisplayContrastPluginTestModule.dll +TARGETTYPE dll +UID 0x1000008D 0x101FB3E3 + +CAPABILITY ALL -TCB +/* Remove comments and replace 0x00000000 with correct vendor id */ +// VENDORID 0x00000000 +/* Remove comments and replace 0x00000000 with correct secure id */ +// SECUREID 0x00000000 + +//TARGETPATH ?target_path +DEFFILE RfsDisplayContrastPluginTestModule.def + +USERINCLUDE ../inc + +OS_LAYER_SYSTEMINCLUDE +MW_LAYER_SYSTEMINCLUDE + +SOURCEPATH ../src + +SOURCE RfsDisplayContrastPluginTestModule.cpp + +//RESOURCE resource_file +//RESOURCE resource_file2 + +LIBRARY euser.lib +LIBRARY stiftestinterface.lib +LIBRARY stiftestengine.lib +LIBRARY ecom.lib + +LANG SC + +/* +START WINS +?wins_specific_information +END + +START MARM +?marm_specific_information +END +*/ +// Other possible keywords: + +// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes) +/* +START BITMAP ?target +TARGETPATH ?emulated_path_on_target_machine +HEADER +SOURCE ?color_depth ?source_bitmap +END +*/ +// DEFFILE ?filename +// AIF ?filename + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/group/RfsDisplayContrastPluginTestModule.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/group/RfsDisplayContrastPluginTestModule.pkg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,60 @@ +; +; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; All rights reserved. +; This component and the accompanying materials are made available +; under the terms of "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: +; +; Installation file for STIF +; + +; Languages +&EN + +; Provide value for uid +#{"STIF"},(0x00000000),1,1,0,TYPE=SA + +; Series60 product id for S60 3.0 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + +; Localised Vendor name +%{"Nokia"} + +; Unique Vendor name +:"Nokia" + +; Logo +; None + +; Package signature - Optional +; None + +; Start of Package body + +; Condition blocks +; None + +; Options list +; None + +; Install files +"\epoc32\release\armv5\udeb\RfsDisplayContrastPluginTestModule.dll" - "!:\Sys\Bin\RfsDisplayContrastPluginTestModule.dll" + +; Embedded SIS +; None + +; End of Package body + +; PKG dependencies +; None + +; PKG capabilities +; None diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/group/RfsDisplayContrastPluginTestModule_DoxyFile.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/group/RfsDisplayContrastPluginTestModule_DoxyFile.txt Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,240 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "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: +# +# + +# Doxyfile 1.4.1 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = RfsDisplayContrastPluginTestModule +PROJECT_NUMBER = +OUTPUT_DIRECTORY = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\RfsDisplayContrastPluginTestModule\ +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = YES +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = NO +STRIP_FROM_PATH = +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +DISTRIBUTE_GROUP_DOC = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = YES +OPTIMIZE_OUTPUT_JAVA = NO +SUBGROUPING = YES +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = YES +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = NO +EXTRACT_LOCAL_METHODS = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = YES +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = NO +GENERATE_TESTLIST = NO +GENERATE_BUGLIST = NO +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = YES +FILE_VERSION_FILTER = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\RfsDisplayContrastPluginTestModule\ +FILE_PATTERNS = *.h \ + *.rh \ + *.hrh +RECURSIVE = YES +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = NO +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = NO +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = YES +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +BINARY_TOC = YES +TOC_EXPAND = YES +DISABLE_INDEX = YES +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = YES +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = YES +RTF_OUTPUT = Doc +COMPACT_RTF = YES +RTF_HYPERLINKS = YES +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = YES +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = NONSHARABLE_CLASS +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = NO +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = YES +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 0 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/group/bld.inf Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: +* +*/ + +PRJ_PLATFORMS +// specify the platforms your component needs to be built for here +// defaults to WINS MARM so you can ignore this if you just build these + + DEFAULT + +PRJ_EXPORTS +// Specify the source file followed by its destination here +// copy will be used to copy the source file to its destination +// If there's no destination then the source file will be copied +// to the same name in \epoc32\include +// Example: +/* +\agnmodel\inc\AGMCOMON.H +*/ + +PRJ_TESTEXPORTS +// NOTE: If using ARS requirements all export operations should be done under this. +// 'abld test export' + +../init/TestFramework.ini /epoc32/winscw/c/TestFramework/TestFramework.ini +../init/TestFramework.ini /epoc32/data/z/system/data/TestFramework.ini + +../conf/RfsDisplayContrastPluginTestModule.cfg /epoc32/winscw/c/TestFramework/RfsDisplayContrastPluginTestModule.cfg +../conf/RfsDisplayContrastPluginTestModule.cfg /epoc32/data/z/system/data/RfsDisplayContrastPluginTestModule.cfg + +../rom/RfsDisplayContrastPluginTestModule.iby CORE_MW_LAYER_IBY_EXPORT_PATH(RfsDisplayContrastPluginTestModule.iby) + +PRJ_TESTMMPFILES + + RfsDisplayContrastPluginTestModule.mmp + +PRJ_MMPFILES + + +// Specify the .mmp files required for building the important component +// releasables. +// +// Specify "tidy" if the component you need to build doesn't need to be +// released. Specify "ignore" if the MMP file exists but should be +// ignored. +// Example: +/* +\agnmodel\group\agnmodel.mmp +#if defined(MARM) +\agnmodel\group\agsvexe.mmp +#endif +*/ + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/inc/RfsDisplayContrastPluginTestModule.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/inc/RfsDisplayContrastPluginTestModule.h Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,177 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: STIF testclass declaration +* +*/ + +#ifndef RFSDISPLAYCONTRASTPLUGINTESTMODULE_H +#define RFSDISPLAYCONTRASTPLUGINTESTMODULE_H + +// INCLUDES +#include +#include +#include +#include + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def +#define TEST_CLASS_VERSION_MAJOR 0 +#define TEST_CLASS_VERSION_MINOR 0 +#define TEST_CLASS_VERSION_BUILD 0 + +// Logging path +_LIT( KRfsDisplayContrastPluginTestModuleLogPath, "\\logs\\testframework\\RfsDisplayContrastPluginTestModule\\" ); +// Log file +_LIT( KRfsDisplayContrastPluginTestModuleLogFile, "RfsDisplayContrastPluginTestModule.txt" ); +_LIT( KRfsDisplayContrastPluginTestModuleLogFileWithTitle, "RfsDisplayContrastPluginTestModule_[%S].txt" ); + +// FUNCTION PROTOTYPES +//?type ?function_name(?arg_list); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; +class CRFSPlugin; +class CRfsDisplayContrastPluginTestModule; + +// DATA TYPES +//enum ?declaration +//typedef ?declaration +//extern ?data_type; + +// CLASS DECLARATION + +/** +* CRfsDisplayContrastPluginTestModule test class for STIF Test Framework TestScripter. +* ?other_description_lines +* +* @lib ?library +* @since ?Series60_version +*/ +NONSHARABLE_CLASS(CRfsDisplayContrastPluginTestModule) : public CScriptBase + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CRfsDisplayContrastPluginTestModule* NewL( CTestModuleIf& aTestModuleIf ); + + /** + * Destructor. + */ + virtual ~CRfsDisplayContrastPluginTestModule(); + + public: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + public: // Functions from base classes + + /** + * From CScriptBase Runs a script line. + * @since ?Series60_version + * @param aItem Script line containing method name and parameters + * @return Symbian OS error code + */ + virtual TInt RunMethodL( CStifItemParser& aItem ); + + protected: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + protected: // Functions from base classes + + /** + * From ?base_class ?member_description + */ + //?type ?member_function(); + + private: + + /** + * C++ default constructor. + */ + CRfsDisplayContrastPluginTestModule( CTestModuleIf& aTestModuleIf ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + // Prohibit copy constructor if not deriving from CBase. + // ?classname( const ?classname& ); + // Prohibit assigment operator if not deriving from CBase. + // ?classname& operator=( const ?classname& ); + + /** + * Frees all resources allocated from test methods. + * @since ?Series60_version + */ + void Delete(); + + /** + * Test methods are listed below. + */ + TInt CreatePlugin( CStifItemParser& aItem ); + TInt DestroyPlugin( CStifItemParser& aItem ); + TInt RestoreFactorySettings( CStifItemParser& aItem ); + TInt GetScript( CStifItemParser& aItem ); + TInt ExecuteCustomCommand( CStifItemParser& aItem ); + + /** + * Method used to log version of test class + */ + void SendTestClassVersion(); + + //ADD NEW METHOD DEC HERE + //[TestMethods] - Do not remove + + public: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + protected: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + private: // Data + CRFSPlugin* iPlugin; + + public: // Friend classes + //?friend_class_declaration; + protected: // Friend classes + //?friend_class_declaration; + private: // Friend classes + //?friend_class_declaration; + + }; + +#endif // RFSDISPLAYCONTRASTPLUGINTESTMODULE_H + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/init/TestFramework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/init/TestFramework.ini Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,219 @@ +# +# This is STIF initialization file +# Comment lines start with '#'-character. +# See STIF TestFramework users guide.doc for instructions + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set following test engine settings: +# - Set Test Reporting mode. TestReportMode's possible values are: +# + 'Summary': Summary of the tested test cases. +# + 'Environment': Hardware and software info. +# + 'TestCases': Test case report. +# + 'FullReport': Set of all above ones. +# + Example 'TestReportMode= Summary TestCases' +# +# - CreateTestReport setting controls report creation mode +# + YES, Test report will created. +# + NO, No Test report. +# +# - File path indicates the base path of the test report. +# - File name indicates the name of the test report. +# +# - File format indicates the type of the test report. +# + TXT, Test report file will be txt type, for example 'TestReport.txt'. +# + HTML, Test report will be html type, for example 'TestReport.html'. +# + XML, Test report will be xml type, for example 'TestReport.xml'. +# Note, that xml format is available only when output is set to FILE. +# +# - File output indicates output source of the test report. +# + FILE, Test report logging to file. +# + RDEBUG, Test report logging to using rdebug. +# +# - File Creation Mode indicates test report overwriting if file exist. +# + OVERWRITE, Overwrites if the Test report file exist. +# + APPEND, Continue logging after the old Test report information if +# report exist. +# - Sets a device reset module's dll name(Reboot). +# + If Nokia specific reset module is not available or it is not correct one +# StifHWResetStub module may use as a template for user specific reset +# module. +# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation +# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02 +# + +[Engine_Defaults] + +TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment', + # 'TestCases' or 'FullReport' + +CreateTestReport= YES # Possible values: YES or NO + +TestReportFilePath= C:\LOGS\TestFramework\ +TestReportFileName= TestReport + +TestReportFormat= TXT # Possible values: TXT, HTML or XML +TestReportOutput= FILE # Possible values: FILE or RDEBUG +TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting + +DisableMeasurement= stifmeasurementdisablenone # Possible values are: + # 'stifmeasurementdisablenone', 'stifmeasurementdisableall' + # 'stifmeasurementplugin01', 'stifmeasurementplugin02', + # 'stifmeasurementplugin03', 'stifmeasurementplugin04', + # 'stifmeasurementplugin05' or 'stifbappeaprofiler' + +Timeout= 0 # Default timeout value for each test case. In milliseconds +#UITestingSupport= YES # Possible values: YES or NO +#SeparateProcesses= YES # Possible values: YES or NO (default: NO) +[End_Defaults] + +[New_Module] +ModuleName= testscripter +TestCaseFile= Z:\TestFramework\RfsDisplayContrastPluginTestModule.cfg +[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Module configurations start +# Modules are added between module tags +# tags. Module name is specified after ModuleName= tag, like +# ModuleName= XXXXXXXXX +# Modules might have initialisation file, specified as +# IniFile= c:\testframework\YYYYYY +# Modules might have several configuration files, like +# TestCaseFile= c:\testframework\NormalCases.txt +# TestCaseFile= c:\testframework\SmokeCases.txt +# TestCaseFile= c:\testframework\ManualCases.txt + +# (TestCaseFile is synonym for old term ConfigFile) + +# Following case specifies demo module settings. Demo module +# does not read any settings from file, so tags +# IniFile and TestCaseFile are not used. +# In the simplest case it is enough to specify only the +# name of the test module when adding new test module + + + +# Load testmoduleXXX, optionally with initialization file and/or test case files +#[New_Module] +#ModuleName= testmodulexxx + +#TestModuleXXX used initialization file +#IniFile= c:\testframework\init.txt + +#TestModuleXXX used configuration file(s) +#TestCaseFile= c:\testframework\testcases1.cfg +#TestCaseFile= c:\testframework\testcases2.cfg +#TestCaseFile= c:\testframework\manualtestcases.cfg + +#[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set STIF logging overwrite parameters for Logger. +# Hardware and emulator environment logging path and styles can +# be configured from here to overwrite the Logger's implemented values. +# +# Settings description: +# - Indicates option for creation log directory/directories. If log directory/directories +# is/are not created by user they will make by software. +# + YES, Create log directory/directories if not allready exist. +# + NO, Log directory/directories not created. Only created one is used. +# +# - Overwrite emulator path setting. +# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined +# Logger's path 'D:\\LOGS\\Module\\' with those definition the path +# will be 'C:\LOGS\TestFramework\LOGS\Module\' +# +# - Overwrite emulator's logging format. +# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'. +# + HTML, Log file(s) will be html type(s), for example 'Module.html'. +# +# - Overwrited emulator logging output source. +# + FILE, Logging to file(s). +# + RDEBUG, Logging to using rdebug(s). +# +# - Overwrite hardware path setting (Same description as above in emulator path). +# - Overwrite hardware's logging format(Same description as above in emulator format). +# - Overwrite hardware's logging output source(Same description as above in emulator output). +# +# - File Creation Mode indicates file overwriting if file exist. +# + OVERWRITE, Overwrites if file(s) exist. +# + APPEND, Continue logging after the old logging information if file(s) exist. +# +# - Will thread id include to the log filename. +# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'. +# + NO, No thread id to log file(s), Example filename 'Module.txt'. +# +# - Will time stamps include the to log file. +# + YES, Time stamp added to each line in log file(s). Time stamp is +# for example'12.Nov.2003 115958 LOGGING INFO' +# + NO, No time stamp(s). +# +# - Will line breaks include to the log file. +# + YES, Each logging event includes line break and next log event is in own line. +# + NO, No line break(s). +# +# - Will event ranking include to the log file. +# + YES, Event ranking number added to each line in log file(s). Ranking number +# depends on environment's tics, for example(includes time stamp also) +# '012 12.Nov.2003 115958 LOGGING INFO' +# + NO, No event ranking. +# +# - Will write log file in unicode format. +# + YES, Log file will be written in unicode format +# + NO, Log will be written as normal, not unicode, file. +# + +[Logger_Defaults] + +#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#' +#NOTE: TestEngine and TestServer logging settings cannot change here + +#CreateLogDirectories= YES # Possible values: YES or NO + +#EmulatorBasePath= C:\LOGS\TestFramework\ +#EmulatorFormat= HTML # Possible values: TXT or HTML +#EmulatorOutput= FILE # Possible values: FILE or RDEBUG + +#HardwareBasePath= D:\LOGS\TestFramework\ +#HardwareFormat= HTML # Possible values: TXT or HTML +#HardwareOutput= FILE # Possible values: FILE or RDEBUG + +#FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +#ThreadIdToLogFile= YES # Possible values: YES or NO +#WithTimeStamp= YES # Possible values: YES or NO +#WithLineBreak= YES # Possible values: YES or NO +#WithEventRanking= YES # Possible values: YES or NO + +#FileUnicode= YES # Possible values: YES or NO +#AddTestCaseTitle= YES # Possible values: YES or NO +[End_Logger_Defaults] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set filters to be used by ConsoleUI. +# If you want to use filter with ConsoleUI, simply remove comments +# from section below and provide valid filter entries. +# Each filter line has to start with "filter= " keyword. +# Filter can contain special wildcard characters: +# * which stands for none or any literal; +# ? which stands for single character. +# Filters are not case-sensitive. + +#[Filters] +#filter= *math* +#filter= *radio* +#[End_Filters] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +# End of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/rom/RfsDisplayContrastPluginTestModule.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/rom/RfsDisplayContrastPluginTestModule.iby Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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 __RFSDISPLAYCONTRASTPLUGINTESTMODULE_IBY__ +#define __RFSDISPLAYCONTRASTPLUGINTESTMODULE_IBY__ + +file=ABI_DIR\BUILD_DIR\RfsDisplayContrastPluginTestModule.dll SHARED_LIB_DIR\RfsDisplayContrastPluginTestModule.dll + +//data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini + +data=\epoc32\data\z\system\data\RfsDisplayContrastPluginTestModule.cfg \testframework\RfsDisplayContrastPluginTestModule.cfg + + + +#endif diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/src/RfsDisplayContrastPluginTestModule.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/RfsDisplayContrastPluginTestModule/src/RfsDisplayContrastPluginTestModule.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,306 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: This file contains testclass implementation. +* +*/ + +// INCLUDE FILES +#include +#include "RfsDisplayContrastPluginTestModule.h" +#include +#include + +// EXTERNAL DATA STRUCTURES +//extern ?external_data; + +// EXTERNAL FUNCTION PROTOTYPES +//extern ?external_function( ?arg_type,?arg_type ); + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def + +// LOCAL CONSTANTS AND MACROS +//const ?type ?constant_var = ?constant; +//#define ?macro_name ?macro_def + +// MODULE DATA STRUCTURES +//enum ?declaration +//typedef ?declaration + +// LOCAL FUNCTION PROTOTYPES +//?type ?function_name( ?arg_type, ?arg_type ); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; + +// ============================= LOCAL FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// ?function_name ?description. +// ?description +// Returns: ?value_1: ?description +// ?value_n: ?description_line1 +// ?description_line2 +// ----------------------------------------------------------------------------- +// +/* +?type ?function_name( + ?arg_type arg, // ?description + ?arg_type arg) // ?description + { + + ?code // ?comment + + // ?comment + ?code + } +*/ + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CRfsDisplayContrastPluginTestModule::CRfsDisplayContrastPluginTestModule +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CRfsDisplayContrastPluginTestModule::CRfsDisplayContrastPluginTestModule( + CTestModuleIf& aTestModuleIf ): + CScriptBase( aTestModuleIf ) + { + } + +// ----------------------------------------------------------------------------- +// CRfsDisplayContrastPluginTestModule::ConstructL +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CRfsDisplayContrastPluginTestModule::ConstructL() + { + //Read logger settings to check whether test case name is to be + //appended to log file name. + RSettingServer settingServer; + TInt ret = settingServer.Connect(); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Struct to StifLogger settigs. + TLoggerSettings loggerSettings; + // Parse StifLogger defaults from STIF initialization file. + ret = settingServer.GetLoggerSettings(loggerSettings); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Close Setting server session + settingServer.Close(); + + TFileName logFileName; + + if(loggerSettings.iAddTestCaseTitle) + { + TName title; + TestModuleIf().GetTestCaseTitleL(title); + logFileName.Format(KRfsDisplayContrastPluginTestModuleLogFileWithTitle, &title); + } + else + { + logFileName.Copy(KRfsDisplayContrastPluginTestModuleLogFile); + } + + iLog = CStifLogger::NewL( KRfsDisplayContrastPluginTestModuleLogPath, + logFileName, + CStifLogger::ETxt, + CStifLogger::EFile, + EFalse ); + + SendTestClassVersion(); + } + +// ----------------------------------------------------------------------------- +// CRfsDisplayContrastPluginTestModule::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CRfsDisplayContrastPluginTestModule* CRfsDisplayContrastPluginTestModule::NewL( + CTestModuleIf& aTestModuleIf ) + { + CRfsDisplayContrastPluginTestModule* self = new (ELeave) CRfsDisplayContrastPluginTestModule( aTestModuleIf ); + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + + return self; + + } + +// ----------------------------------------------------------------------------- +// CRfsDisplayContrastPluginTestModule::Delete +// Delete here all resources allocated and opened from test methods. +// Called from destructor. +// ----------------------------------------------------------------------------- +// +void CRfsDisplayContrastPluginTestModule::Delete() + { + + } + +// Destructor +CRfsDisplayContrastPluginTestModule::~CRfsDisplayContrastPluginTestModule() + { + + // Delete resources allocated from test methods + Delete(); + + delete iPlugin; + REComSession::FinalClose(); + + // Delete logger + delete iLog; + + } + +//----------------------------------------------------------------------------- +// CRfsDisplayContrastPluginTestModule::SendTestClassVersion +// Method used to send version of test class +//----------------------------------------------------------------------------- +// +void CRfsDisplayContrastPluginTestModule::SendTestClassVersion() + { + TVersion moduleVersion; + moduleVersion.iMajor = TEST_CLASS_VERSION_MAJOR; + moduleVersion.iMinor = TEST_CLASS_VERSION_MINOR; + moduleVersion.iBuild = TEST_CLASS_VERSION_BUILD; + + TFileName moduleName; + moduleName = _L("RfsDisplayContrastPluginTestModule.dll"); + + TBool newVersionOfMethod = ETrue; + TestModuleIf().SendTestModuleVersion(moduleVersion, moduleName, newVersionOfMethod); + } + +// ----------------------------------------------------------------------------- +// CRfsDisplayContrastPluginTestModule::RunMethodL +// Run specified method. Contains also table of test mothods and their names. +// ----------------------------------------------------------------------------- +// +TInt CRfsDisplayContrastPluginTestModule::RunMethodL( + CStifItemParser& aItem ) + { + + static TStifFunctionInfo const KFunctions[] = + { + // Copy this line for every implemented function. + // First string is the function name used in TestScripter script file. + // Second is the actual implementation member function. + ENTRY( "CreatePlugin", CRfsDisplayContrastPluginTestModule::CreatePlugin ), + ENTRY( "DestroyPlugin", CRfsDisplayContrastPluginTestModule::DestroyPlugin ), + ENTRY( "RestoreFactorySettings", CRfsDisplayContrastPluginTestModule::RestoreFactorySettings ), + ENTRY( "GetScript", CRfsDisplayContrastPluginTestModule::GetScript ), + ENTRY( "ExecuteCustomCommand", CRfsDisplayContrastPluginTestModule::ExecuteCustomCommand ), + //ADD NEW ENTRY HERE + // [test cases entries] - Do not remove + + }; + + const TInt count = sizeof( KFunctions ) / + sizeof( TStifFunctionInfo ); + + return RunInternalL( KFunctions, count, aItem ); + + } + +TInt CRfsDisplayContrastPluginTestModule::CreatePlugin(CStifItemParser& /*aItem */) + { + STIF_ASSERT_NOT_LEAVES(iPlugin = CRFSPlugin::NewL( TUid::Uid( 0x102073BD ) ) ); + STIF_ASSERT_NOT_NULL( iPlugin ); + + return KErrNone; + + } +TInt CRfsDisplayContrastPluginTestModule::DestroyPlugin(CStifItemParser& /*aItem*/ ) + { + delete iPlugin; + iPlugin = NULL; + + return KErrNone; + } + +TInt CRfsDisplayContrastPluginTestModule::RestoreFactorySettings(CStifItemParser& /*aItem*/ ) + { + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( ENormalRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EDeepRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EInitRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( static_cast( 100 ) ) ); + return KErrNone; + } + +TInt CRfsDisplayContrastPluginTestModule::GetScript(CStifItemParser& /*aItem*/ ) + { + TBuf<256> path; + //TBuf<256> buf; + //buf.Copy(KExpectedScript); + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( ENormalRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EDeepRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EInitRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( static_cast( 100 ), path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + return KErrNone; + } + +TInt CRfsDisplayContrastPluginTestModule::ExecuteCustomCommand(CStifItemParser& /*aItem*/ ) + { + TBuf<256> param1( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( ENormalRfs, param1 ) ); + TBuf<1> param2( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EDeepRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EInitRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( static_cast( 100 ), param2 ) ); + return KErrNone; + } + + + +// ========================== OTHER EXPORTED FUNCTIONS ========================= + +// ----------------------------------------------------------------------------- +// LibEntryL is a polymorphic Dll entry point. +// Returns: CScriptBase: New CScriptBase derived object +// ----------------------------------------------------------------------------- +// +EXPORT_C CScriptBase* LibEntryL( + CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework + { + + return ( CScriptBase* ) CRfsDisplayContrastPluginTestModule::NewL( aTestModuleIf ); + + } + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/Bmarm/SipRFSPluginTestModuleU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/Bmarm/SipRFSPluginTestModuleU.DEF Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/Bwins/SipRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/Bwins/SipRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/conf/SipRFSPluginTestModule.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/conf/SipRFSPluginTestModule.cfg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,42 @@ +[Test] +title SIP_Create and destroy RfsPlugin +create SipRFSPluginTestModule testClass +testClass CreatePlugin +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title SIP_Test RestoreFactorySettingsL +create SipRFSPluginTestModule testClass +testClass CreatePlugin +testClass RestoreFactorySettings +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title SIP_Test GetScriptL +create SipRFSPluginTestModule testClass +testClass CreatePlugin +testClass GetScript +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title SIP_Test ExecuteCustomCommandL +create SipRFSPluginTestModule testClass +testClass CreatePlugin +testClass ExecuteCustomCommand +testClass DestroyPlugin +delete testClass +[Endtest] + + + + + + + + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/eabi/SipRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/eabi/SipRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/group/SipRFSPluginTestModule.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/group/SipRFSPluginTestModule.mmp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,77 @@ +/*TYPE TESTCLASS*/ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: MMP file for STIF Test Framework's TestScripter +* testclass test module. +* +*/ + +#include + +SMPSAFE + +TARGET SipRFSPluginTestModule.dll +TARGETTYPE dll +UID 0x1000008D 0x101FB3E3 + +CAPABILITY ALL -TCB +/* Remove comments and replace 0x00000000 with correct vendor id */ +// VENDORID 0x00000000 +/* Remove comments and replace 0x00000000 with correct secure id */ +// SECUREID 0x00000000 + +//TARGETPATH ?target_path +DEFFILE SipRFSPluginTestModule.def + +USERINCLUDE ../inc + +MW_LAYER_SYSTEMINCLUDE + +SOURCEPATH ../src + +SOURCE SipRFSPluginTestModule.cpp + +//RESOURCE resource_file +//RESOURCE resource_file2 + +LIBRARY euser.lib +LIBRARY stiftestinterface.lib +LIBRARY stiftestengine.lib +LIBRARY ecom.lib + +LANG SC + +/* +START WINS +?wins_specific_information +END + +START MARM +?marm_specific_information +END +*/ +// Other possible keywords: + +// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes) +/* +START BITMAP ?target +TARGETPATH ?emulated_path_on_target_machine +HEADER +SOURCE ?color_depth ?source_bitmap +END +*/ +// DEFFILE ?filename +// AIF ?filename + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/group/SipRFSPluginTestModule.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/group/SipRFSPluginTestModule.pkg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,60 @@ +; +; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; All rights reserved. +; This component and the accompanying materials are made available +; under the terms of "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: +; +; Installation file for STIF +; + +; Languages +&EN + +; Provide value for uid +#{"STIF"},(0x00000000),1,1,0,TYPE=SA + +; Series60 product id for S60 3.0 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + +; Localised Vendor name +%{"Nokia"} + +; Unique Vendor name +:"Nokia" + +; Logo +; None + +; Package signature - Optional +; None + +; Start of Package body + +; Condition blocks +; None + +; Options list +; None + +; Install files +"\epoc32\release\armv5\udeb\SipRFSPluginTestModule.dll" - "!:\Sys\Bin\SipRFSPluginTestModule.dll" + +; Embedded SIS +; None + +; End of Package body + +; PKG dependencies +; None + +; PKG capabilities +; None diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/group/SipRFSPluginTestModule_DoxyFile.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/group/SipRFSPluginTestModule_DoxyFile.txt Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,240 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "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: +# +# + +# Doxyfile 1.4.1 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = SipRFSPluginTestModule +PROJECT_NUMBER = +OUTPUT_DIRECTORY = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\SipRFSPluginTestModule\ +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = YES +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = NO +STRIP_FROM_PATH = +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +DISTRIBUTE_GROUP_DOC = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = YES +OPTIMIZE_OUTPUT_JAVA = NO +SUBGROUPING = YES +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = YES +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = NO +EXTRACT_LOCAL_METHODS = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = YES +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = NO +GENERATE_TESTLIST = NO +GENERATE_BUGLIST = NO +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = YES +FILE_VERSION_FILTER = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\SipRFSPluginTestModule\ +FILE_PATTERNS = *.h \ + *.rh \ + *.hrh +RECURSIVE = YES +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = NO +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = NO +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = YES +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +BINARY_TOC = YES +TOC_EXPAND = YES +DISABLE_INDEX = YES +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = YES +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = YES +RTF_OUTPUT = Doc +COMPACT_RTF = YES +RTF_HYPERLINKS = YES +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = YES +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = NONSHARABLE_CLASS +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = NO +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = YES +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 0 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/group/bld.inf Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,66 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: +* +*/ + +PRJ_PLATFORMS +// specify the platforms your component needs to be built for here +// defaults to WINS MARM so you can ignore this if you just build these + + DEFAULT + +PRJ_TESTEXPORTS +// NOTE: If using ARS requirements all export operations should be done under this. +// 'abld test export' +../init/TestFramework.ini /epoc32/winscw/c/TestFramework/TestFramework.ini +../init/TestFramework.ini /epoc32/data/z/system/data/TestFramework.ini + +../conf/SipRFSPluginTestModule.cfg /epoc32/winscw/c/TestFramework/SipRFSPluginTestModule.cfg +../conf/SipRFSPluginTestModule.cfg /epoc32/data/z/system/data/SipRFSPluginTestModule.cfg + +../rom/SipRFSPluginTestModule.iby CORE_MW_LAYER_IBY_EXPORT_PATH(SipRFSPluginTestModule.iby) + +PRJ_EXPORTS +// Specify the source file followed by its destination here +// copy will be used to copy the source file to its destination +// If there's no destination then the source file will be copied +// to the same name in \epoc32\include +// Example: +/* +\agnmodel\inc\AGMCOMON.H +*/ + +PRJ_TESTMMPFILES + + SipRFSPluginTestModule.mmp + +PRJ_MMPFILES + + +// Specify the .mmp files required for building the important component +// releasables. +// +// Specify "tidy" if the component you need to build doesn't need to be +// released. Specify "ignore" if the MMP file exists but should be +// ignored. +// Example: +/* +\agnmodel\group\agnmodel.mmp +#if defined(MARM) +\agnmodel\group\agsvexe.mmp +#endif +*/ + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/inc/SipRFSPluginTestModule.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/inc/SipRFSPluginTestModule.h Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,177 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: STIF testclass declaration +* +*/ + +#ifndef SIPRFSPLUGINTESTMODULE_H +#define SIPRFSPLUGINTESTMODULE_H + +// INCLUDES +#include +#include +#include +#include + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def +#define TEST_CLASS_VERSION_MAJOR 0 +#define TEST_CLASS_VERSION_MINOR 0 +#define TEST_CLASS_VERSION_BUILD 0 + +// Logging path +_LIT( KSipRFSPluginTestModuleLogPath, "\\logs\\testframework\\SipRFSPluginTestModule\\" ); +// Log file +_LIT( KSipRFSPluginTestModuleLogFile, "SipRFSPluginTestModule.txt" ); +_LIT( KSipRFSPluginTestModuleLogFileWithTitle, "SipRFSPluginTestModule_[%S].txt" ); + +// FUNCTION PROTOTYPES +//?type ?function_name(?arg_list); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; +class CRFSPlugin; +class CSipRFSPluginTestModule; + +// DATA TYPES +//enum ?declaration +//typedef ?declaration +//extern ?data_type; + +// CLASS DECLARATION + +/** +* CSipRFSPluginTestModule test class for STIF Test Framework TestScripter. +* ?other_description_lines +* +* @lib ?library +* @since ?Series60_version +*/ +NONSHARABLE_CLASS(CSipRFSPluginTestModule) : public CScriptBase + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CSipRFSPluginTestModule* NewL( CTestModuleIf& aTestModuleIf ); + + /** + * Destructor. + */ + virtual ~CSipRFSPluginTestModule(); + + public: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + public: // Functions from base classes + + /** + * From CScriptBase Runs a script line. + * @since ?Series60_version + * @param aItem Script line containing method name and parameters + * @return Symbian OS error code + */ + virtual TInt RunMethodL( CStifItemParser& aItem ); + + protected: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + protected: // Functions from base classes + + /** + * From ?base_class ?member_description + */ + //?type ?member_function(); + + private: + + /** + * C++ default constructor. + */ + CSipRFSPluginTestModule( CTestModuleIf& aTestModuleIf ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + // Prohibit copy constructor if not deriving from CBase. + // ?classname( const ?classname& ); + // Prohibit assigment operator if not deriving from CBase. + // ?classname& operator=( const ?classname& ); + + /** + * Frees all resources allocated from test methods. + * @since ?Series60_version + */ + void Delete(); + + /** + * Test methods are listed below. + */ + TInt CreatePlugin( CStifItemParser& aItem ); + TInt DestroyPlugin( CStifItemParser& aItem ); + TInt RestoreFactorySettings( CStifItemParser& aItem ); + TInt GetScript( CStifItemParser& aItem ); + TInt ExecuteCustomCommand( CStifItemParser& aItem ); + + /** + * Method used to log version of test class + */ + void SendTestClassVersion(); + + //ADD NEW METHOD DEC HERE + //[TestMethods] - Do not remove + + public: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + protected: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + private: // Data + CRFSPlugin* iPlugin; + + public: // Friend classes + //?friend_class_declaration; + protected: // Friend classes + //?friend_class_declaration; + private: // Friend classes + //?friend_class_declaration; + + }; + +#endif // SIPRFSPLUGINTESTMODULE_H + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/init/TestFramework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/init/TestFramework.ini Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,219 @@ +# +# This is STIF initialization file +# Comment lines start with '#'-character. +# See STIF TestFramework users guide.doc for instructions + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set following test engine settings: +# - Set Test Reporting mode. TestReportMode's possible values are: +# + 'Summary': Summary of the tested test cases. +# + 'Environment': Hardware and software info. +# + 'TestCases': Test case report. +# + 'FullReport': Set of all above ones. +# + Example 'TestReportMode= Summary TestCases' +# +# - CreateTestReport setting controls report creation mode +# + YES, Test report will created. +# + NO, No Test report. +# +# - File path indicates the base path of the test report. +# - File name indicates the name of the test report. +# +# - File format indicates the type of the test report. +# + TXT, Test report file will be txt type, for example 'TestReport.txt'. +# + HTML, Test report will be html type, for example 'TestReport.html'. +# + XML, Test report will be xml type, for example 'TestReport.xml'. +# Note, that xml format is available only when output is set to FILE. +# +# - File output indicates output source of the test report. +# + FILE, Test report logging to file. +# + RDEBUG, Test report logging to using rdebug. +# +# - File Creation Mode indicates test report overwriting if file exist. +# + OVERWRITE, Overwrites if the Test report file exist. +# + APPEND, Continue logging after the old Test report information if +# report exist. +# - Sets a device reset module's dll name(Reboot). +# + If Nokia specific reset module is not available or it is not correct one +# StifHWResetStub module may use as a template for user specific reset +# module. +# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation +# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02 +# + +[Engine_Defaults] + +TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment', + # 'TestCases' or 'FullReport' + +CreateTestReport= YES # Possible values: YES or NO + +TestReportFilePath= C:\LOGS\TestFramework\ +TestReportFileName= TestReport + +TestReportFormat= TXT # Possible values: TXT, HTML or XML +TestReportOutput= FILE # Possible values: FILE or RDEBUG +TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting + +DisableMeasurement= stifmeasurementdisablenone # Possible values are: + # 'stifmeasurementdisablenone', 'stifmeasurementdisableall' + # 'stifmeasurementplugin01', 'stifmeasurementplugin02', + # 'stifmeasurementplugin03', 'stifmeasurementplugin04', + # 'stifmeasurementplugin05' or 'stifbappeaprofiler' + +Timeout= 0 # Default timeout value for each test case. In milliseconds +#UITestingSupport= YES # Possible values: YES or NO +#SeparateProcesses= YES # Possible values: YES or NO (default: NO) +[End_Defaults] + +[New_Module] +ModuleName= testscripter +TestCaseFile= Z:\TestFramework\SipRFSPluginTestModule.cfg +[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Module configurations start +# Modules are added between module tags +# tags. Module name is specified after ModuleName= tag, like +# ModuleName= XXXXXXXXX +# Modules might have initialisation file, specified as +# IniFile= c:\testframework\YYYYYY +# Modules might have several configuration files, like +# TestCaseFile= c:\testframework\NormalCases.txt +# TestCaseFile= c:\testframework\SmokeCases.txt +# TestCaseFile= c:\testframework\ManualCases.txt + +# (TestCaseFile is synonym for old term ConfigFile) + +# Following case specifies demo module settings. Demo module +# does not read any settings from file, so tags +# IniFile and TestCaseFile are not used. +# In the simplest case it is enough to specify only the +# name of the test module when adding new test module + + + +# Load testmoduleXXX, optionally with initialization file and/or test case files +#[New_Module] +#ModuleName= testmodulexxx + +#TestModuleXXX used initialization file +#IniFile= c:\testframework\init.txt + +#TestModuleXXX used configuration file(s) +#TestCaseFile= c:\testframework\testcases1.cfg +#TestCaseFile= c:\testframework\testcases2.cfg +#TestCaseFile= c:\testframework\manualtestcases.cfg + +#[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set STIF logging overwrite parameters for Logger. +# Hardware and emulator environment logging path and styles can +# be configured from here to overwrite the Logger's implemented values. +# +# Settings description: +# - Indicates option for creation log directory/directories. If log directory/directories +# is/are not created by user they will make by software. +# + YES, Create log directory/directories if not allready exist. +# + NO, Log directory/directories not created. Only created one is used. +# +# - Overwrite emulator path setting. +# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined +# Logger's path 'D:\\LOGS\\Module\\' with those definition the path +# will be 'C:\LOGS\TestFramework\LOGS\Module\' +# +# - Overwrite emulator's logging format. +# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'. +# + HTML, Log file(s) will be html type(s), for example 'Module.html'. +# +# - Overwrited emulator logging output source. +# + FILE, Logging to file(s). +# + RDEBUG, Logging to using rdebug(s). +# +# - Overwrite hardware path setting (Same description as above in emulator path). +# - Overwrite hardware's logging format(Same description as above in emulator format). +# - Overwrite hardware's logging output source(Same description as above in emulator output). +# +# - File Creation Mode indicates file overwriting if file exist. +# + OVERWRITE, Overwrites if file(s) exist. +# + APPEND, Continue logging after the old logging information if file(s) exist. +# +# - Will thread id include to the log filename. +# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'. +# + NO, No thread id to log file(s), Example filename 'Module.txt'. +# +# - Will time stamps include the to log file. +# + YES, Time stamp added to each line in log file(s). Time stamp is +# for example'12.Nov.2003 115958 LOGGING INFO' +# + NO, No time stamp(s). +# +# - Will line breaks include to the log file. +# + YES, Each logging event includes line break and next log event is in own line. +# + NO, No line break(s). +# +# - Will event ranking include to the log file. +# + YES, Event ranking number added to each line in log file(s). Ranking number +# depends on environment's tics, for example(includes time stamp also) +# '012 12.Nov.2003 115958 LOGGING INFO' +# + NO, No event ranking. +# +# - Will write log file in unicode format. +# + YES, Log file will be written in unicode format +# + NO, Log will be written as normal, not unicode, file. +# + +[Logger_Defaults] + +#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#' +#NOTE: TestEngine and TestServer logging settings cannot change here + +#CreateLogDirectories= YES # Possible values: YES or NO + +#EmulatorBasePath= C:\LOGS\TestFramework\ +#EmulatorFormat= HTML # Possible values: TXT or HTML +#EmulatorOutput= FILE # Possible values: FILE or RDEBUG + +#HardwareBasePath= D:\LOGS\TestFramework\ +#HardwareFormat= HTML # Possible values: TXT or HTML +#HardwareOutput= FILE # Possible values: FILE or RDEBUG + +#FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +#ThreadIdToLogFile= YES # Possible values: YES or NO +#WithTimeStamp= YES # Possible values: YES or NO +#WithLineBreak= YES # Possible values: YES or NO +#WithEventRanking= YES # Possible values: YES or NO + +#FileUnicode= YES # Possible values: YES or NO +#AddTestCaseTitle= YES # Possible values: YES or NO +[End_Logger_Defaults] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set filters to be used by ConsoleUI. +# If you want to use filter with ConsoleUI, simply remove comments +# from section below and provide valid filter entries. +# Each filter line has to start with "filter= " keyword. +# Filter can contain special wildcard characters: +# * which stands for none or any literal; +# ? which stands for single character. +# Filters are not case-sensitive. + +#[Filters] +#filter= *math* +#filter= *radio* +#[End_Filters] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +# End of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/rom/SipRFSPluginTestModule.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/rom/SipRFSPluginTestModule.iby Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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 __SIPRFSPLUGINTESTMODULE_IBY__ +#define __SIPRFSPLUGINTESTMODULE_IBY__ + +file=ABI_DIR\BUILD_DIR\SipRFSPluginTestModule.dll SHARED_LIB_DIR\SipRFSPluginTestModule.dll + +//data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini + +data=\epoc32\data\z\system\data\SipRFSPluginTestModule.cfg \testframework\SipRFSPluginTestModule.cfg + + + +#endif diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/src/SipRFSPluginTestModule.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SipRFSPluginTestModule/src/SipRFSPluginTestModule.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,304 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: This file contains testclass implementation. +* +*/ + +// INCLUDE FILES +#include +#include "SipRFSPluginTestModule.h" +#include +#include + +// EXTERNAL DATA STRUCTURES +//extern ?external_data; + +// EXTERNAL FUNCTION PROTOTYPES +//extern ?external_function( ?arg_type,?arg_type ); + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def + +// LOCAL CONSTANTS AND MACROS +//const ?type ?constant_var = ?constant; +//#define ?macro_name ?macro_def + +// MODULE DATA STRUCTURES +//enum ?declaration +//typedef ?declaration + +// LOCAL FUNCTION PROTOTYPES +//?type ?function_name( ?arg_type, ?arg_type ); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; + +// ============================= LOCAL FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// ?function_name ?description. +// ?description +// Returns: ?value_1: ?description +// ?value_n: ?description_line1 +// ?description_line2 +// ----------------------------------------------------------------------------- +// +/* +?type ?function_name( + ?arg_type arg, // ?description + ?arg_type arg) // ?description + { + + ?code // ?comment + + // ?comment + ?code + } +*/ + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CSipRFSPluginTestModule::CSipRFSPluginTestModule +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CSipRFSPluginTestModule::CSipRFSPluginTestModule( + CTestModuleIf& aTestModuleIf ): + CScriptBase( aTestModuleIf ) + { + } + +// ----------------------------------------------------------------------------- +// CSipRFSPluginTestModule::ConstructL +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CSipRFSPluginTestModule::ConstructL() + { + //Read logger settings to check whether test case name is to be + //appended to log file name. + RSettingServer settingServer; + TInt ret = settingServer.Connect(); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Struct to StifLogger settigs. + TLoggerSettings loggerSettings; + // Parse StifLogger defaults from STIF initialization file. + ret = settingServer.GetLoggerSettings(loggerSettings); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Close Setting server session + settingServer.Close(); + + TFileName logFileName; + + if(loggerSettings.iAddTestCaseTitle) + { + TName title; + TestModuleIf().GetTestCaseTitleL(title); + logFileName.Format(KSipRFSPluginTestModuleLogFileWithTitle, &title); + } + else + { + logFileName.Copy(KSipRFSPluginTestModuleLogFile); + } + + iLog = CStifLogger::NewL( KSipRFSPluginTestModuleLogPath, + logFileName, + CStifLogger::ETxt, + CStifLogger::EFile, + EFalse ); + + SendTestClassVersion(); + } + +// ----------------------------------------------------------------------------- +// CSipRFSPluginTestModule::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CSipRFSPluginTestModule* CSipRFSPluginTestModule::NewL( + CTestModuleIf& aTestModuleIf ) + { + CSipRFSPluginTestModule* self = new (ELeave) CSipRFSPluginTestModule( aTestModuleIf ); + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + + return self; + + } + +// ----------------------------------------------------------------------------- +// CSipRFSPluginTestModule::Delete +// Delete here all resources allocated and opened from test methods. +// Called from destructor. +// ----------------------------------------------------------------------------- +// +void CSipRFSPluginTestModule::Delete() + { + + } + +// Destructor +CSipRFSPluginTestModule::~CSipRFSPluginTestModule() + { + + // Delete resources allocated from test methods + Delete(); + + delete iPlugin; + REComSession::FinalClose(); + + // Delete logger + delete iLog; + + } + +//----------------------------------------------------------------------------- +// CSipRFSPluginTestModule::SendTestClassVersion +// Method used to send version of test class +//----------------------------------------------------------------------------- +// +void CSipRFSPluginTestModule::SendTestClassVersion() + { + TVersion moduleVersion; + moduleVersion.iMajor = TEST_CLASS_VERSION_MAJOR; + moduleVersion.iMinor = TEST_CLASS_VERSION_MINOR; + moduleVersion.iBuild = TEST_CLASS_VERSION_BUILD; + + TFileName moduleName; + moduleName = _L("SipRFSPluginTestModule.dll"); + + TBool newVersionOfMethod = ETrue; + TestModuleIf().SendTestModuleVersion(moduleVersion, moduleName, newVersionOfMethod); + } + +// ----------------------------------------------------------------------------- +// CSipRFSPluginTestModule::RunMethodL +// Run specified method. Contains also table of test mothods and their names. +// ----------------------------------------------------------------------------- +// +TInt CSipRFSPluginTestModule::RunMethodL( + CStifItemParser& aItem ) + { + + static TStifFunctionInfo const KFunctions[] = + { + // Copy this line for every implemented function. + // First string is the function name used in TestScripter script file. + // Second is the actual implementation member function. + ENTRY( "CreatePlugin", CSipRFSPluginTestModule::CreatePlugin ), + ENTRY( "DestroyPlugin", CSipRFSPluginTestModule::DestroyPlugin ), + ENTRY( "RestoreFactorySettings", CSipRFSPluginTestModule::RestoreFactorySettings ), + ENTRY( "GetScript", CSipRFSPluginTestModule::GetScript ), + ENTRY( "ExecuteCustomCommand", CSipRFSPluginTestModule::ExecuteCustomCommand ), + //ADD NEW ENTRY HERE + // [test cases entries] - Do not remove + + }; + + const TInt count = sizeof( KFunctions ) / + sizeof( TStifFunctionInfo ); + + return RunInternalL( KFunctions, count, aItem ); + + } + +TInt CSipRFSPluginTestModule::CreatePlugin(CStifItemParser& /*aItem */) + { + STIF_ASSERT_NOT_LEAVES(iPlugin = CRFSPlugin::NewL( TUid::Uid( 0x2001959E ) ) ); + STIF_ASSERT_NOT_NULL( iPlugin ); + + return KErrNone; + + } +TInt CSipRFSPluginTestModule::DestroyPlugin(CStifItemParser& /*aItem*/ ) + { + delete iPlugin; + iPlugin = NULL; + + return KErrNone; + } + +TInt CSipRFSPluginTestModule::RestoreFactorySettings(CStifItemParser& /*aItem*/ ) + { + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( ENormalRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EDeepRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EInitRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( static_cast( 100 ) ) ); + return KErrNone; + } + +TInt CSipRFSPluginTestModule::GetScript(CStifItemParser& /*aItem*/ ) + { + TBuf<256> path; + //TBuf<256> buf; + //buf.Copy(KExpectedScript); + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( ENormalRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EDeepRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EInitRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( static_cast( 100 ), path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + return KErrNone; + } + +TInt CSipRFSPluginTestModule::ExecuteCustomCommand(CStifItemParser& /*aItem*/ ) + { + TBuf<256> param1( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( ENormalRfs, param1 ) ); + TBuf<1> param2( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EDeepRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EInitRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( static_cast( 100 ), param2 ) ); + return KErrNone; + } + +// ========================== OTHER EXPORTED FUNCTIONS ========================= + +// ----------------------------------------------------------------------------- +// LibEntryL is a polymorphic Dll entry point. +// Returns: CScriptBase: New CScriptBase derived object +// ----------------------------------------------------------------------------- +// +EXPORT_C CScriptBase* LibEntryL( + CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework + { + + return ( CScriptBase* ) CSipRFSPluginTestModule::NewL( aTestModuleIf ); + + } + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/Bmarm/StarterRFSPluginTestModuleU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/Bmarm/StarterRFSPluginTestModuleU.DEF Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/Bwins/StarterRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/Bwins/StarterRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/conf/StarterRFSPluginTestModule.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/conf/StarterRFSPluginTestModule.cfg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,42 @@ +[Test] +title Starter_Create and destroy RfsPlugin +create StarterRFSPluginTestModule testClass +testClass CreatePlugin +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Starter_Test RestoreFactorySettingsL +create StarterRFSPluginTestModule testClass +testClass CreatePlugin +testClass RestoreFactorySettings +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Starter_Test GetScriptL +create StarterRFSPluginTestModule testClass +testClass CreatePlugin +testClass GetScript +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Starter_Test ExecuteCustomCommandL +create StarterRFSPluginTestModule testClass +testClass CreatePlugin +testClass ExecuteCustomCommand +testClass DestroyPlugin +delete testClass +[Endtest] + + + + + + + + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/eabi/StarterRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/eabi/StarterRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/group/StarterRFSPluginTestModule.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/group/StarterRFSPluginTestModule.mmp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,77 @@ +/*TYPE TESTCLASS*/ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: MMP file for STIF Test Framework's TestScripter +* testclass test module. +* +*/ + +#include + +SMPSAFE + +TARGET StarterRFSPluginTestModule.dll +TARGETTYPE dll +UID 0x1000008D 0x101FB3E3 + +CAPABILITY ALL -TCB +/* Remove comments and replace 0x00000000 with correct vendor id */ +// VENDORID 0x00000000 +/* Remove comments and replace 0x00000000 with correct secure id */ +// SECUREID 0x00000000 + +//TARGETPATH ?target_path +DEFFILE StarterRFSPluginTestModule.def + +USERINCLUDE ../inc + +MW_LAYER_SYSTEMINCLUDE + +SOURCEPATH ../src + +SOURCE StarterRFSPluginTestModule.cpp + +//RESOURCE resource_file +//RESOURCE resource_file2 + +LIBRARY euser.lib +LIBRARY stiftestinterface.lib +LIBRARY stiftestengine.lib +LIBRARY ecom.lib + +LANG SC + +/* +START WINS +?wins_specific_information +END + +START MARM +?marm_specific_information +END +*/ +// Other possible keywords: + +// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes) +/* +START BITMAP ?target +TARGETPATH ?emulated_path_on_target_machine +HEADER +SOURCE ?color_depth ?source_bitmap +END +*/ +// DEFFILE ?filename +// AIF ?filename + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/group/StarterRFSPluginTestModule.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/group/StarterRFSPluginTestModule.pkg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,60 @@ +; +; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; All rights reserved. +; This component and the accompanying materials are made available +; under the terms of "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: +; +; Installation file for STIF +; + +; Languages +&EN + +; Provide value for uid +#{"STIF"},(0x00000000),1,1,0,TYPE=SA + +; Series60 product id for S60 3.0 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + +; Localised Vendor name +%{"Nokia"} + +; Unique Vendor name +:"Nokia" + +; Logo +; None + +; Package signature - Optional +; None + +; Start of Package body + +; Condition blocks +; None + +; Options list +; None + +; Install files +"\epoc32\release\armv5\udeb\StarterRFSPluginTestModule.dll" - "!:\Sys\Bin\StarterRFSPluginTestModule.dll" + +; Embedded SIS +; None + +; End of Package body + +; PKG dependencies +; None + +; PKG capabilities +; None diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/group/StarterRFSPluginTestModule_DoxyFile.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/group/StarterRFSPluginTestModule_DoxyFile.txt Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,240 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "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: +# +# + +# Doxyfile 1.4.1 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = StarterRFSPluginTestModule +PROJECT_NUMBER = +OUTPUT_DIRECTORY = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\StarterRFSPluginTestModule\ +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = YES +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = NO +STRIP_FROM_PATH = +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +DISTRIBUTE_GROUP_DOC = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = YES +OPTIMIZE_OUTPUT_JAVA = NO +SUBGROUPING = YES +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = YES +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = NO +EXTRACT_LOCAL_METHODS = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = YES +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = NO +GENERATE_TESTLIST = NO +GENERATE_BUGLIST = NO +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = YES +FILE_VERSION_FILTER = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\StarterRFSPluginTestModule\ +FILE_PATTERNS = *.h \ + *.rh \ + *.hrh +RECURSIVE = YES +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = NO +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = NO +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = YES +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +BINARY_TOC = YES +TOC_EXPAND = YES +DISABLE_INDEX = YES +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = YES +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = YES +RTF_OUTPUT = Doc +COMPACT_RTF = YES +RTF_HYPERLINKS = YES +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = YES +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = NONSHARABLE_CLASS +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = NO +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = YES +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 0 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/group/bld.inf Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: +* +*/ + +PRJ_PLATFORMS +// specify the platforms your component needs to be built for here +// defaults to WINS MARM so you can ignore this if you just build these + + DEFAULT + +PRJ_TESTEXPORTS +// NOTE: If using ARS requirements all export operations should be done under this. +// 'abld test export' +../init/TestFramework.ini /epoc32/winscw/c/TestFramework/TestFramework.ini +../init/TestFramework.ini /epoc32/data/z/system/data/TestFramework.ini + +../conf/StarterRFSPluginTestModule.cfg /epoc32/winscw/c/TestFramework/StarterRFSPluginTestModule.cfg +../conf/StarterRFSPluginTestModule.cfg /epoc32/data/z/system/data/StarterRFSPluginTestModule.cfg + +../rom/StarterRFSPluginTestModule.iby CORE_MW_LAYER_IBY_EXPORT_PATH(StarterRFSPluginTestModule.iby) + + +PRJ_EXPORTS +// Specify the source file followed by its destination here +// copy will be used to copy the source file to its destination +// If there's no destination then the source file will be copied +// to the same name in \epoc32\include +// Example: +/* +\agnmodel\inc\AGMCOMON.H +*/ + +PRJ_TESTMMPFILES + + StarterRFSPluginTestModule.mmp + +PRJ_MMPFILES + + +// Specify the .mmp files required for building the important component +// releasables. +// +// Specify "tidy" if the component you need to build doesn't need to be +// released. Specify "ignore" if the MMP file exists but should be +// ignored. +// Example: +/* +\agnmodel\group\agnmodel.mmp +#if defined(MARM) +\agnmodel\group\agsvexe.mmp +#endif +*/ + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/inc/StarterRFSPluginTestModule.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/inc/StarterRFSPluginTestModule.h Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,177 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: STIF testclass declaration +* +*/ + +#ifndef STARTERRFSPLUGINTESTMODULE_H +#define STARTERRFSPLUGINTESTMODULE_H + +// INCLUDES +#include +#include +#include +#include + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def +#define TEST_CLASS_VERSION_MAJOR 0 +#define TEST_CLASS_VERSION_MINOR 0 +#define TEST_CLASS_VERSION_BUILD 0 + +// Logging path +_LIT( KStarterRFSPluginTestModuleLogPath, "\\logs\\testframework\\StarterRFSPluginTestModule\\" ); +// Log file +_LIT( KStarterRFSPluginTestModuleLogFile, "StarterRFSPluginTestModule.txt" ); +_LIT( KStarterRFSPluginTestModuleLogFileWithTitle, "StarterRFSPluginTestModule_[%S].txt" ); + +// FUNCTION PROTOTYPES +//?type ?function_name(?arg_list); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; +class CRFSPlugin; +class CStarterRFSPluginTestModule; + +// DATA TYPES +//enum ?declaration +//typedef ?declaration +//extern ?data_type; + +// CLASS DECLARATION + +/** +* CStarterRFSPluginTestModule test class for STIF Test Framework TestScripter. +* ?other_description_lines +* +* @lib ?library +* @since ?Series60_version +*/ +NONSHARABLE_CLASS(CStarterRFSPluginTestModule) : public CScriptBase + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CStarterRFSPluginTestModule* NewL( CTestModuleIf& aTestModuleIf ); + + /** + * Destructor. + */ + virtual ~CStarterRFSPluginTestModule(); + + public: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + public: // Functions from base classes + + /** + * From CScriptBase Runs a script line. + * @since ?Series60_version + * @param aItem Script line containing method name and parameters + * @return Symbian OS error code + */ + virtual TInt RunMethodL( CStifItemParser& aItem ); + + protected: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + protected: // Functions from base classes + + /** + * From ?base_class ?member_description + */ + //?type ?member_function(); + + private: + + /** + * C++ default constructor. + */ + CStarterRFSPluginTestModule( CTestModuleIf& aTestModuleIf ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + // Prohibit copy constructor if not deriving from CBase. + // ?classname( const ?classname& ); + // Prohibit assigment operator if not deriving from CBase. + // ?classname& operator=( const ?classname& ); + + /** + * Frees all resources allocated from test methods. + * @since ?Series60_version + */ + void Delete(); + + /** + * Test methods are listed below. + */ + TInt CreatePlugin( CStifItemParser& aItem ); + TInt DestroyPlugin( CStifItemParser& aItem ); + TInt RestoreFactorySettings( CStifItemParser& aItem ); + TInt GetScript( CStifItemParser& aItem ); + TInt ExecuteCustomCommand( CStifItemParser& aItem ); + + /** + * Method used to log version of test class + */ + void SendTestClassVersion(); + + //ADD NEW METHOD DEC HERE + //[TestMethods] - Do not remove + + public: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + protected: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + private: // Data + CRFSPlugin* iPlugin; + + public: // Friend classes + //?friend_class_declaration; + protected: // Friend classes + //?friend_class_declaration; + private: // Friend classes + //?friend_class_declaration; + + }; + +#endif // STARTERRFSPLUGINTESTMODULE_H + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/init/TestFramework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/init/TestFramework.ini Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,219 @@ +# +# This is STIF initialization file +# Comment lines start with '#'-character. +# See STIF TestFramework users guide.doc for instructions + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set following test engine settings: +# - Set Test Reporting mode. TestReportMode's possible values are: +# + 'Summary': Summary of the tested test cases. +# + 'Environment': Hardware and software info. +# + 'TestCases': Test case report. +# + 'FullReport': Set of all above ones. +# + Example 'TestReportMode= Summary TestCases' +# +# - CreateTestReport setting controls report creation mode +# + YES, Test report will created. +# + NO, No Test report. +# +# - File path indicates the base path of the test report. +# - File name indicates the name of the test report. +# +# - File format indicates the type of the test report. +# + TXT, Test report file will be txt type, for example 'TestReport.txt'. +# + HTML, Test report will be html type, for example 'TestReport.html'. +# + XML, Test report will be xml type, for example 'TestReport.xml'. +# Note, that xml format is available only when output is set to FILE. +# +# - File output indicates output source of the test report. +# + FILE, Test report logging to file. +# + RDEBUG, Test report logging to using rdebug. +# +# - File Creation Mode indicates test report overwriting if file exist. +# + OVERWRITE, Overwrites if the Test report file exist. +# + APPEND, Continue logging after the old Test report information if +# report exist. +# - Sets a device reset module's dll name(Reboot). +# + If Nokia specific reset module is not available or it is not correct one +# StifHWResetStub module may use as a template for user specific reset +# module. +# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation +# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02 +# + +[Engine_Defaults] + +TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment', + # 'TestCases' or 'FullReport' + +CreateTestReport= YES # Possible values: YES or NO + +TestReportFilePath= C:\LOGS\TestFramework\ +TestReportFileName= TestReport + +TestReportFormat= TXT # Possible values: TXT, HTML or XML +TestReportOutput= FILE # Possible values: FILE or RDEBUG +TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting + +DisableMeasurement= stifmeasurementdisablenone # Possible values are: + # 'stifmeasurementdisablenone', 'stifmeasurementdisableall' + # 'stifmeasurementplugin01', 'stifmeasurementplugin02', + # 'stifmeasurementplugin03', 'stifmeasurementplugin04', + # 'stifmeasurementplugin05' or 'stifbappeaprofiler' + +Timeout= 0 # Default timeout value for each test case. In milliseconds +#UITestingSupport= YES # Possible values: YES or NO +#SeparateProcesses= YES # Possible values: YES or NO (default: NO) +[End_Defaults] + +[New_Module] +ModuleName= testscripter +TestCaseFile= Z:\TestFramework\StarterRFSPluginTestModule.cfg +[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Module configurations start +# Modules are added between module tags +# tags. Module name is specified after ModuleName= tag, like +# ModuleName= XXXXXXXXX +# Modules might have initialisation file, specified as +# IniFile= c:\testframework\YYYYYY +# Modules might have several configuration files, like +# TestCaseFile= c:\testframework\NormalCases.txt +# TestCaseFile= c:\testframework\SmokeCases.txt +# TestCaseFile= c:\testframework\ManualCases.txt + +# (TestCaseFile is synonym for old term ConfigFile) + +# Following case specifies demo module settings. Demo module +# does not read any settings from file, so tags +# IniFile and TestCaseFile are not used. +# In the simplest case it is enough to specify only the +# name of the test module when adding new test module + + + +# Load testmoduleXXX, optionally with initialization file and/or test case files +#[New_Module] +#ModuleName= testmodulexxx + +#TestModuleXXX used initialization file +#IniFile= c:\testframework\init.txt + +#TestModuleXXX used configuration file(s) +#TestCaseFile= c:\testframework\testcases1.cfg +#TestCaseFile= c:\testframework\testcases2.cfg +#TestCaseFile= c:\testframework\manualtestcases.cfg + +#[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set STIF logging overwrite parameters for Logger. +# Hardware and emulator environment logging path and styles can +# be configured from here to overwrite the Logger's implemented values. +# +# Settings description: +# - Indicates option for creation log directory/directories. If log directory/directories +# is/are not created by user they will make by software. +# + YES, Create log directory/directories if not allready exist. +# + NO, Log directory/directories not created. Only created one is used. +# +# - Overwrite emulator path setting. +# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined +# Logger's path 'D:\\LOGS\\Module\\' with those definition the path +# will be 'C:\LOGS\TestFramework\LOGS\Module\' +# +# - Overwrite emulator's logging format. +# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'. +# + HTML, Log file(s) will be html type(s), for example 'Module.html'. +# +# - Overwrited emulator logging output source. +# + FILE, Logging to file(s). +# + RDEBUG, Logging to using rdebug(s). +# +# - Overwrite hardware path setting (Same description as above in emulator path). +# - Overwrite hardware's logging format(Same description as above in emulator format). +# - Overwrite hardware's logging output source(Same description as above in emulator output). +# +# - File Creation Mode indicates file overwriting if file exist. +# + OVERWRITE, Overwrites if file(s) exist. +# + APPEND, Continue logging after the old logging information if file(s) exist. +# +# - Will thread id include to the log filename. +# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'. +# + NO, No thread id to log file(s), Example filename 'Module.txt'. +# +# - Will time stamps include the to log file. +# + YES, Time stamp added to each line in log file(s). Time stamp is +# for example'12.Nov.2003 115958 LOGGING INFO' +# + NO, No time stamp(s). +# +# - Will line breaks include to the log file. +# + YES, Each logging event includes line break and next log event is in own line. +# + NO, No line break(s). +# +# - Will event ranking include to the log file. +# + YES, Event ranking number added to each line in log file(s). Ranking number +# depends on environment's tics, for example(includes time stamp also) +# '012 12.Nov.2003 115958 LOGGING INFO' +# + NO, No event ranking. +# +# - Will write log file in unicode format. +# + YES, Log file will be written in unicode format +# + NO, Log will be written as normal, not unicode, file. +# + +[Logger_Defaults] + +#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#' +#NOTE: TestEngine and TestServer logging settings cannot change here + +#CreateLogDirectories= YES # Possible values: YES or NO + +#EmulatorBasePath= C:\LOGS\TestFramework\ +#EmulatorFormat= HTML # Possible values: TXT or HTML +#EmulatorOutput= FILE # Possible values: FILE or RDEBUG + +#HardwareBasePath= D:\LOGS\TestFramework\ +#HardwareFormat= HTML # Possible values: TXT or HTML +#HardwareOutput= FILE # Possible values: FILE or RDEBUG + +#FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +#ThreadIdToLogFile= YES # Possible values: YES or NO +#WithTimeStamp= YES # Possible values: YES or NO +#WithLineBreak= YES # Possible values: YES or NO +#WithEventRanking= YES # Possible values: YES or NO + +#FileUnicode= YES # Possible values: YES or NO +#AddTestCaseTitle= YES # Possible values: YES or NO +[End_Logger_Defaults] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set filters to be used by ConsoleUI. +# If you want to use filter with ConsoleUI, simply remove comments +# from section below and provide valid filter entries. +# Each filter line has to start with "filter= " keyword. +# Filter can contain special wildcard characters: +# * which stands for none or any literal; +# ? which stands for single character. +# Filters are not case-sensitive. + +#[Filters] +#filter= *math* +#filter= *radio* +#[End_Filters] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +# End of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/rom/StarterRFSPluginTestModule.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/rom/StarterRFSPluginTestModule.iby Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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 __STARTERRFSPLUGINTESTMODULE_IBY__ +#define __STARTERRFSPLUGINTESTMODULE_IBY__ + +file=ABI_DIR\BUILD_DIR\StarterRFSPluginTestModule.dll SHARED_LIB_DIR\StarterRFSPluginTestModule.dll + +//data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini + +data=\epoc32\data\z\system\data\StarterRFSPluginTestModule.cfg \testframework\StarterRFSPluginTestModule.cfg + + + +#endif diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/src/StarterRFSPluginTestModule.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/StarterRFSPluginTestModule/src/StarterRFSPluginTestModule.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,305 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: This file contains testclass implementation. +* +*/ + +// INCLUDE FILES +#include +#include "StarterRFSPluginTestModule.h" +#include +#include + +// EXTERNAL DATA STRUCTURES +//extern ?external_data; + +// EXTERNAL FUNCTION PROTOTYPES +//extern ?external_function( ?arg_type,?arg_type ); + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def + +// LOCAL CONSTANTS AND MACROS +//const ?type ?constant_var = ?constant; +//#define ?macro_name ?macro_def + +// MODULE DATA STRUCTURES +//enum ?declaration +//typedef ?declaration + +// LOCAL FUNCTION PROTOTYPES +//?type ?function_name( ?arg_type, ?arg_type ); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; + +// ============================= LOCAL FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// ?function_name ?description. +// ?description +// Returns: ?value_1: ?description +// ?value_n: ?description_line1 +// ?description_line2 +// ----------------------------------------------------------------------------- +// +/* +?type ?function_name( + ?arg_type arg, // ?description + ?arg_type arg) // ?description + { + + ?code // ?comment + + // ?comment + ?code + } +*/ + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CStarterRFSPluginTestModule::CStarterRFSPluginTestModule +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CStarterRFSPluginTestModule::CStarterRFSPluginTestModule( + CTestModuleIf& aTestModuleIf ): + CScriptBase( aTestModuleIf ) + { + } + +// ----------------------------------------------------------------------------- +// CStarterRFSPluginTestModule::ConstructL +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CStarterRFSPluginTestModule::ConstructL() + { + //Read logger settings to check whether test case name is to be + //appended to log file name. + RSettingServer settingServer; + TInt ret = settingServer.Connect(); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Struct to StifLogger settigs. + TLoggerSettings loggerSettings; + // Parse StifLogger defaults from STIF initialization file. + ret = settingServer.GetLoggerSettings(loggerSettings); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Close Setting server session + settingServer.Close(); + + TFileName logFileName; + + if(loggerSettings.iAddTestCaseTitle) + { + TName title; + TestModuleIf().GetTestCaseTitleL(title); + logFileName.Format(KStarterRFSPluginTestModuleLogFileWithTitle, &title); + } + else + { + logFileName.Copy(KStarterRFSPluginTestModuleLogFile); + } + + iLog = CStifLogger::NewL( KStarterRFSPluginTestModuleLogPath, + logFileName, + CStifLogger::ETxt, + CStifLogger::EFile, + EFalse ); + + SendTestClassVersion(); + } + +// ----------------------------------------------------------------------------- +// CStarterRFSPluginTestModule::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CStarterRFSPluginTestModule* CStarterRFSPluginTestModule::NewL( + CTestModuleIf& aTestModuleIf ) + { + CStarterRFSPluginTestModule* self = new (ELeave) CStarterRFSPluginTestModule( aTestModuleIf ); + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + + return self; + + } + +// ----------------------------------------------------------------------------- +// CStarterRFSPluginTestModule::Delete +// Delete here all resources allocated and opened from test methods. +// Called from destructor. +// ----------------------------------------------------------------------------- +// +void CStarterRFSPluginTestModule::Delete() + { + + } + +// Destructor +CStarterRFSPluginTestModule::~CStarterRFSPluginTestModule() + { + + // Delete resources allocated from test methods + Delete(); + + delete iPlugin; + REComSession::FinalClose(); + + // Delete logger + delete iLog; + + } + +//----------------------------------------------------------------------------- +// CStarterRFSPluginTestModule::SendTestClassVersion +// Method used to send version of test class +//----------------------------------------------------------------------------- +// +void CStarterRFSPluginTestModule::SendTestClassVersion() + { + TVersion moduleVersion; + moduleVersion.iMajor = TEST_CLASS_VERSION_MAJOR; + moduleVersion.iMinor = TEST_CLASS_VERSION_MINOR; + moduleVersion.iBuild = TEST_CLASS_VERSION_BUILD; + + TFileName moduleName; + moduleName = _L("StarterRFSPluginTestModule.dll"); + + TBool newVersionOfMethod = ETrue; + TestModuleIf().SendTestModuleVersion(moduleVersion, moduleName, newVersionOfMethod); + } + +// ----------------------------------------------------------------------------- +// CStarterRFSPluginTestModule::RunMethodL +// Run specified method. Contains also table of test mothods and their names. +// ----------------------------------------------------------------------------- +// +TInt CStarterRFSPluginTestModule::RunMethodL( + CStifItemParser& aItem ) + { + + static TStifFunctionInfo const KFunctions[] = + { + // Copy this line for every implemented function. + // First string is the function name used in TestScripter script file. + // Second is the actual implementation member function. + ENTRY( "CreatePlugin", CStarterRFSPluginTestModule::CreatePlugin ), + ENTRY( "DestroyPlugin", CStarterRFSPluginTestModule::DestroyPlugin ), + ENTRY( "RestoreFactorySettings", CStarterRFSPluginTestModule::RestoreFactorySettings ), + ENTRY( "GetScript", CStarterRFSPluginTestModule::GetScript ), + ENTRY( "ExecuteCustomCommand", CStarterRFSPluginTestModule::ExecuteCustomCommand ), + //ADD NEW ENTRY HERE + // [test cases entries] - Do not remove + + }; + + const TInt count = sizeof( KFunctions ) / + sizeof( TStifFunctionInfo ); + + return RunInternalL( KFunctions, count, aItem ); + + } + +TInt CStarterRFSPluginTestModule::CreatePlugin(CStifItemParser& /*aItem */) + { + STIF_ASSERT_NOT_LEAVES(iPlugin = CRFSPlugin::NewL( TUid::Uid( 0x2000F8B0 ) ) ); + STIF_ASSERT_NOT_NULL( iPlugin ); + + return KErrNone; + + } +TInt CStarterRFSPluginTestModule::DestroyPlugin(CStifItemParser& /*aItem*/ ) + { + delete iPlugin; + iPlugin = NULL; + + return KErrNone; + } + +TInt CStarterRFSPluginTestModule::RestoreFactorySettings(CStifItemParser& /*aItem*/ ) + { + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( ENormalRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EDeepRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EInitRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( static_cast( 100 ) ) ); + return KErrNone; + } + +TInt CStarterRFSPluginTestModule::GetScript(CStifItemParser& /*aItem*/ ) + { + TBuf<256> path; + //TBuf<256> buf; + //buf.Copy(KExpectedScript); + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( ENormalRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EDeepRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EInitRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( static_cast( 100 ), path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + return KErrNone; + } + +TInt CStarterRFSPluginTestModule::ExecuteCustomCommand(CStifItemParser& /*aItem*/ ) + { + TBuf<256> param1( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( ENormalRfs, param1 ) ); + TBuf<1> param2( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EDeepRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EInitRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( static_cast( 100 ), param2 ) ); + return KErrNone; + } + + +// ========================== OTHER EXPORTED FUNCTIONS ========================= + +// ----------------------------------------------------------------------------- +// LibEntryL is a polymorphic Dll entry point. +// Returns: CScriptBase: New CScriptBase derived object +// ----------------------------------------------------------------------------- +// +EXPORT_C CScriptBase* LibEntryL( + CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework + { + + return ( CScriptBase* ) CStarterRFSPluginTestModule::NewL( aTestModuleIf ); + + } + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/Bmarm/SyncMLRFSPluginTestModuleU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/Bmarm/SyncMLRFSPluginTestModuleU.DEF Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/Bwins/SyncMLRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/Bwins/SyncMLRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/conf/SyncMLRFSPluginTestModule.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/conf/SyncMLRFSPluginTestModule.cfg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,39 @@ +[Test] +title SyncML_Create and destroy RfsPlugin +create SyncMLRFSPluginTestModule testClass +testClass CreatePlugin +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title SyncML_Test RestoreFactorySettingsL +create SyncMLRFSPluginTestModule testClass +testClass CreatePlugin +testClass RestoreFactorySettings +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title SyncML_Test GetScriptL +create SyncMLRFSPluginTestModule testClass +testClass CreatePlugin +testClass GetScript +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title SyncML_Test ExecuteCustomCommandL +create SyncMLRFSPluginTestModule testClass +testClass CreatePlugin +testClass ExecuteCustomCommand +testClass DestroyPlugin +delete testClass +[Endtest] + + + + + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/eabi/SyncMLRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/eabi/SyncMLRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/group/SyncMLRFSPluginTestModule.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/group/SyncMLRFSPluginTestModule.mmp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,78 @@ +/*TYPE TESTCLASS*/ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: MMP file for STIF Test Framework's TestScripter +* testclass test module. +* +*/ + +#include + +SMPSAFE + +TARGET SyncMLRFSPluginTestModule.dll +TARGETTYPE dll +UID 0x1000008D 0x101FB3E3 + +CAPABILITY ALL -TCB +/* Remove comments and replace 0x00000000 with correct vendor id */ +// VENDORID 0x00000000 +/* Remove comments and replace 0x00000000 with correct secure id */ +// SECUREID 0x00000000 + +//TARGETPATH ?target_path +DEFFILE SyncMLRFSPluginTestModule.def + +USERINCLUDE ../inc + +//OS_LAYER_SYSTEMINCLUDE +MW_LAYER_SYSTEMINCLUDE + +SOURCEPATH ../src + +SOURCE SyncMLRFSPluginTestModule.cpp + +//RESOURCE resource_file +//RESOURCE resource_file2 + +LIBRARY euser.lib +LIBRARY stiftestinterface.lib +LIBRARY stiftestengine.lib +LIBRARY ecom.lib + +LANG SC + +/* +START WINS +?wins_specific_information +END + +START MARM +?marm_specific_information +END +*/ +// Other possible keywords: + +// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes) +/* +START BITMAP ?target +TARGETPATH ?emulated_path_on_target_machine +HEADER +SOURCE ?color_depth ?source_bitmap +END +*/ +// DEFFILE ?filename +// AIF ?filename + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/group/SyncMLRFSPluginTestModule.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/group/SyncMLRFSPluginTestModule.pkg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,60 @@ +; +; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; All rights reserved. +; This component and the accompanying materials are made available +; under the terms of "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: +; +; Installation file for STIF +; + +; Languages +&EN + +; Provide value for uid +#{"STIF"},(0x00000000),1,1,0,TYPE=SA + +; Series60 product id for S60 3.0 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + +; Localised Vendor name +%{"Nokia"} + +; Unique Vendor name +:"Nokia" + +; Logo +; None + +; Package signature - Optional +; None + +; Start of Package body + +; Condition blocks +; None + +; Options list +; None + +; Install files +"\epoc32\release\armv5\udeb\SyncMLRFSPluginTestModule.dll" - "!:\Sys\Bin\SyncMLRFSPluginTestModule.dll" + +; Embedded SIS +; None + +; End of Package body + +; PKG dependencies +; None + +; PKG capabilities +; None diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/group/SyncMLRFSPluginTestModule_DoxyFile.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/group/SyncMLRFSPluginTestModule_DoxyFile.txt Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,240 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "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: +# +# + +# Doxyfile 1.4.1 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = SyncMLRFSPluginTestModule +PROJECT_NUMBER = +OUTPUT_DIRECTORY = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\SyncMLRFSPluginTestModule\ +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = YES +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = NO +STRIP_FROM_PATH = +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +DISTRIBUTE_GROUP_DOC = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = YES +OPTIMIZE_OUTPUT_JAVA = NO +SUBGROUPING = YES +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = YES +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = NO +EXTRACT_LOCAL_METHODS = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = YES +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = NO +GENERATE_TESTLIST = NO +GENERATE_BUGLIST = NO +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = YES +FILE_VERSION_FILTER = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\SyncMLRFSPluginTestModule\ +FILE_PATTERNS = *.h \ + *.rh \ + *.hrh +RECURSIVE = YES +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = NO +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = NO +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = YES +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +BINARY_TOC = YES +TOC_EXPAND = YES +DISABLE_INDEX = YES +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = YES +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = YES +RTF_OUTPUT = Doc +COMPACT_RTF = YES +RTF_HYPERLINKS = YES +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = YES +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = NONSHARABLE_CLASS +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = NO +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = YES +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 0 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/group/bld.inf Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,68 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: +* +*/ + +PRJ_PLATFORMS +// specify the platforms your component needs to be built for here +// defaults to WINS MARM so you can ignore this if you just build these + + DEFAULT + +PRJ_TESTEXPORTS +// NOTE: If using ARS requirements all export operations should be done under this. +// 'abld test export' + +../init/TestFramework.ini /epoc32/winscw/c/TestFramework/TestFramework.ini +../init/TestFramework.ini /epoc32/data/z/system/data/TestFramework.ini + +../conf/SyncMLRFSPluginTestModule.cfg /epoc32/winscw/c/TestFramework/SyncMLRFSPluginTestModule.cfg +../conf/SyncMLRFSPluginTestModule.cfg /epoc32/data/z/system/data/SyncMLRFSPluginTestModule.cfg + +../rom/SyncMLRFSPluginTestModule.iby CORE_MW_LAYER_IBY_EXPORT_PATH(SyncMLRFSPluginTestModule.iby) + + +PRJ_EXPORTS +// Specify the source file followed by its destination here +// copy will be used to copy the source file to its destination +// If there's no destination then the source file will be copied +// to the same name in \epoc32\include +// Example: +/* +\agnmodel\inc\AGMCOMON.H +*/ + +PRJ_TESTMMPFILES + + SyncMLRFSPluginTestModule.mmp + +PRJ_MMPFILES + + +// Specify the .mmp files required for building the important component +// releasables. +// +// Specify "tidy" if the component you need to build doesn't need to be +// released. Specify "ignore" if the MMP file exists but should be +// ignored. +// Example: +/* +\agnmodel\group\agnmodel.mmp +#if defined(MARM) +\agnmodel\group\agsvexe.mmp +#endif +*/ + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/inc/SyncMLRFSPluginTestModule.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/inc/SyncMLRFSPluginTestModule.h Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,177 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: STIF testclass declaration +* +*/ + +#ifndef SYNCMLRFSPLUGINTESTMODULE_H +#define SYNCMLRFSPLUGINTESTMODULE_H + +// INCLUDES +#include +#include +#include +#include + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def +#define TEST_CLASS_VERSION_MAJOR 0 +#define TEST_CLASS_VERSION_MINOR 0 +#define TEST_CLASS_VERSION_BUILD 0 + +// Logging path +_LIT( KSyncMLRFSPluginTestModuleLogPath, "\\logs\\testframework\\SyncMLRFSPluginTestModule\\" ); +// Log file +_LIT( KSyncMLRFSPluginTestModuleLogFile, "SyncMLRFSPluginTestModule.txt" ); +_LIT( KSyncMLRFSPluginTestModuleLogFileWithTitle, "SyncMLRFSPluginTestModule_[%S].txt" ); + +// FUNCTION PROTOTYPES +//?type ?function_name(?arg_list); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; +class CRFSPlugin; +class CSyncMLRFSPluginTestModule; + +// DATA TYPES +//enum ?declaration +//typedef ?declaration +//extern ?data_type; + +// CLASS DECLARATION + +/** +* CSyncMLRFSPluginTestModule test class for STIF Test Framework TestScripter. +* ?other_description_lines +* +* @lib ?library +* @since ?Series60_version +*/ +NONSHARABLE_CLASS(CSyncMLRFSPluginTestModule) : public CScriptBase + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CSyncMLRFSPluginTestModule* NewL( CTestModuleIf& aTestModuleIf ); + + /** + * Destructor. + */ + virtual ~CSyncMLRFSPluginTestModule(); + + public: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + public: // Functions from base classes + + /** + * From CScriptBase Runs a script line. + * @since ?Series60_version + * @param aItem Script line containing method name and parameters + * @return Symbian OS error code + */ + virtual TInt RunMethodL( CStifItemParser& aItem ); + + protected: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + protected: // Functions from base classes + + /** + * From ?base_class ?member_description + */ + //?type ?member_function(); + + private: + + /** + * C++ default constructor. + */ + CSyncMLRFSPluginTestModule( CTestModuleIf& aTestModuleIf ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + // Prohibit copy constructor if not deriving from CBase. + // ?classname( const ?classname& ); + // Prohibit assigment operator if not deriving from CBase. + // ?classname& operator=( const ?classname& ); + + /** + * Frees all resources allocated from test methods. + * @since ?Series60_version + */ + void Delete(); + + /** + * Test methods are listed below. + */ + TInt CreatePlugin( CStifItemParser& aItem ); + TInt DestroyPlugin( CStifItemParser& aItem ); + TInt RestoreFactorySettings( CStifItemParser& aItem ); + TInt GetScript( CStifItemParser& aItem ); + TInt ExecuteCustomCommand( CStifItemParser& aItem ); + + /** + * Method used to log version of test class + */ + void SendTestClassVersion(); + + //ADD NEW METHOD DEC HERE + //[TestMethods] - Do not remove + + public: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + protected: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + private: // Data + CRFSPlugin* iPlugin; + + public: // Friend classes + //?friend_class_declaration; + protected: // Friend classes + //?friend_class_declaration; + private: // Friend classes + //?friend_class_declaration; + + }; + +#endif // SYNCMLRFSPLUGINTESTMODULE_H + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/init/TestFramework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/init/TestFramework.ini Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,219 @@ +# +# This is STIF initialization file +# Comment lines start with '#'-character. +# See STIF TestFramework users guide.doc for instructions + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set following test engine settings: +# - Set Test Reporting mode. TestReportMode's possible values are: +# + 'Summary': Summary of the tested test cases. +# + 'Environment': Hardware and software info. +# + 'TestCases': Test case report. +# + 'FullReport': Set of all above ones. +# + Example 'TestReportMode= Summary TestCases' +# +# - CreateTestReport setting controls report creation mode +# + YES, Test report will created. +# + NO, No Test report. +# +# - File path indicates the base path of the test report. +# - File name indicates the name of the test report. +# +# - File format indicates the type of the test report. +# + TXT, Test report file will be txt type, for example 'TestReport.txt'. +# + HTML, Test report will be html type, for example 'TestReport.html'. +# + XML, Test report will be xml type, for example 'TestReport.xml'. +# Note, that xml format is available only when output is set to FILE. +# +# - File output indicates output source of the test report. +# + FILE, Test report logging to file. +# + RDEBUG, Test report logging to using rdebug. +# +# - File Creation Mode indicates test report overwriting if file exist. +# + OVERWRITE, Overwrites if the Test report file exist. +# + APPEND, Continue logging after the old Test report information if +# report exist. +# - Sets a device reset module's dll name(Reboot). +# + If Nokia specific reset module is not available or it is not correct one +# StifHWResetStub module may use as a template for user specific reset +# module. +# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation +# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02 +# + +[Engine_Defaults] + +TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment', + # 'TestCases' or 'FullReport' + +CreateTestReport= YES # Possible values: YES or NO + +TestReportFilePath= C:\LOGS\TestFramework\ +TestReportFileName= TestReport + +TestReportFormat= TXT # Possible values: TXT, HTML or XML +TestReportOutput= FILE # Possible values: FILE or RDEBUG +TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting + +DisableMeasurement= stifmeasurementdisablenone # Possible values are: + # 'stifmeasurementdisablenone', 'stifmeasurementdisableall' + # 'stifmeasurementplugin01', 'stifmeasurementplugin02', + # 'stifmeasurementplugin03', 'stifmeasurementplugin04', + # 'stifmeasurementplugin05' or 'stifbappeaprofiler' + +Timeout= 0 # Default timeout value for each test case. In milliseconds +#UITestingSupport= YES # Possible values: YES or NO +#SeparateProcesses= YES # Possible values: YES or NO (default: NO) +[End_Defaults] + +[New_Module] +ModuleName= testscripter +TestCaseFile= Z:\TestFramework\SyncMLRFSPluginTestModule.cfg +[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Module configurations start +# Modules are added between module tags +# tags. Module name is specified after ModuleName= tag, like +# ModuleName= XXXXXXXXX +# Modules might have initialisation file, specified as +# IniFile= c:\testframework\YYYYYY +# Modules might have several configuration files, like +# TestCaseFile= c:\testframework\NormalCases.txt +# TestCaseFile= c:\testframework\SmokeCases.txt +# TestCaseFile= c:\testframework\ManualCases.txt + +# (TestCaseFile is synonym for old term ConfigFile) + +# Following case specifies demo module settings. Demo module +# does not read any settings from file, so tags +# IniFile and TestCaseFile are not used. +# In the simplest case it is enough to specify only the +# name of the test module when adding new test module + + + +# Load testmoduleXXX, optionally with initialization file and/or test case files +#[New_Module] +#ModuleName= testmodulexxx + +#TestModuleXXX used initialization file +#IniFile= c:\testframework\init.txt + +#TestModuleXXX used configuration file(s) +#TestCaseFile= c:\testframework\testcases1.cfg +#TestCaseFile= c:\testframework\testcases2.cfg +#TestCaseFile= c:\testframework\manualtestcases.cfg + +#[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set STIF logging overwrite parameters for Logger. +# Hardware and emulator environment logging path and styles can +# be configured from here to overwrite the Logger's implemented values. +# +# Settings description: +# - Indicates option for creation log directory/directories. If log directory/directories +# is/are not created by user they will make by software. +# + YES, Create log directory/directories if not allready exist. +# + NO, Log directory/directories not created. Only created one is used. +# +# - Overwrite emulator path setting. +# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined +# Logger's path 'D:\\LOGS\\Module\\' with those definition the path +# will be 'C:\LOGS\TestFramework\LOGS\Module\' +# +# - Overwrite emulator's logging format. +# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'. +# + HTML, Log file(s) will be html type(s), for example 'Module.html'. +# +# - Overwrited emulator logging output source. +# + FILE, Logging to file(s). +# + RDEBUG, Logging to using rdebug(s). +# +# - Overwrite hardware path setting (Same description as above in emulator path). +# - Overwrite hardware's logging format(Same description as above in emulator format). +# - Overwrite hardware's logging output source(Same description as above in emulator output). +# +# - File Creation Mode indicates file overwriting if file exist. +# + OVERWRITE, Overwrites if file(s) exist. +# + APPEND, Continue logging after the old logging information if file(s) exist. +# +# - Will thread id include to the log filename. +# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'. +# + NO, No thread id to log file(s), Example filename 'Module.txt'. +# +# - Will time stamps include the to log file. +# + YES, Time stamp added to each line in log file(s). Time stamp is +# for example'12.Nov.2003 115958 LOGGING INFO' +# + NO, No time stamp(s). +# +# - Will line breaks include to the log file. +# + YES, Each logging event includes line break and next log event is in own line. +# + NO, No line break(s). +# +# - Will event ranking include to the log file. +# + YES, Event ranking number added to each line in log file(s). Ranking number +# depends on environment's tics, for example(includes time stamp also) +# '012 12.Nov.2003 115958 LOGGING INFO' +# + NO, No event ranking. +# +# - Will write log file in unicode format. +# + YES, Log file will be written in unicode format +# + NO, Log will be written as normal, not unicode, file. +# + +[Logger_Defaults] + +#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#' +#NOTE: TestEngine and TestServer logging settings cannot change here + +#CreateLogDirectories= YES # Possible values: YES or NO + +#EmulatorBasePath= C:\LOGS\TestFramework\ +#EmulatorFormat= HTML # Possible values: TXT or HTML +#EmulatorOutput= FILE # Possible values: FILE or RDEBUG + +#HardwareBasePath= D:\LOGS\TestFramework\ +#HardwareFormat= HTML # Possible values: TXT or HTML +#HardwareOutput= FILE # Possible values: FILE or RDEBUG + +#FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +#ThreadIdToLogFile= YES # Possible values: YES or NO +#WithTimeStamp= YES # Possible values: YES or NO +#WithLineBreak= YES # Possible values: YES or NO +#WithEventRanking= YES # Possible values: YES or NO + +#FileUnicode= YES # Possible values: YES or NO +#AddTestCaseTitle= YES # Possible values: YES or NO +[End_Logger_Defaults] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set filters to be used by ConsoleUI. +# If you want to use filter with ConsoleUI, simply remove comments +# from section below and provide valid filter entries. +# Each filter line has to start with "filter= " keyword. +# Filter can contain special wildcard characters: +# * which stands for none or any literal; +# ? which stands for single character. +# Filters are not case-sensitive. + +#[Filters] +#filter= *math* +#filter= *radio* +#[End_Filters] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +# End of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/rom/SyncMLRFSPluginTestModule.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/rom/SyncMLRFSPluginTestModule.iby Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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 __SYNCMLRFSPLUGINTESTMODULE_IBY__ +#define __SYNCMLRFSPLUGINTESTMODULE_IBY__ + +file=ABI_DIR\BUILD_DIR\SyncMLRFSPluginTestModule.dll SHARED_LIB_DIR\SyncMLRFSPluginTestModule.dll + +//data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini + +data=\epoc32\data\z\system\data\SyncMLRFSPluginTestModule.cfg \testframework\SyncMLRFSPluginTestModule.cfg + + + +#endif diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/src/SyncMLRFSPluginTestModule.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/SyncMLRFSPluginTestModule/src/SyncMLRFSPluginTestModule.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,305 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: This file contains testclass implementation. +* +*/ + +// INCLUDE FILES +#include +#include "SyncMLRFSPluginTestModule.h" +#include +#include + +// EXTERNAL DATA STRUCTURES +//extern ?external_data; + +// EXTERNAL FUNCTION PROTOTYPES +//extern ?external_function( ?arg_type,?arg_type ); + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def + +// LOCAL CONSTANTS AND MACROS +//const ?type ?constant_var = ?constant; +//#define ?macro_name ?macro_def + +// MODULE DATA STRUCTURES +//enum ?declaration +//typedef ?declaration + +// LOCAL FUNCTION PROTOTYPES +//?type ?function_name( ?arg_type, ?arg_type ); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; + +// ============================= LOCAL FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// ?function_name ?description. +// ?description +// Returns: ?value_1: ?description +// ?value_n: ?description_line1 +// ?description_line2 +// ----------------------------------------------------------------------------- +// +/* +?type ?function_name( + ?arg_type arg, // ?description + ?arg_type arg) // ?description + { + + ?code // ?comment + + // ?comment + ?code + } +*/ + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CSyncMLRFSPluginTestModule::CSyncMLRFSPluginTestModule +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CSyncMLRFSPluginTestModule::CSyncMLRFSPluginTestModule( + CTestModuleIf& aTestModuleIf ): + CScriptBase( aTestModuleIf ) + { + } + +// ----------------------------------------------------------------------------- +// CSyncMLRFSPluginTestModule::ConstructL +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CSyncMLRFSPluginTestModule::ConstructL() + { + //Read logger settings to check whether test case name is to be + //appended to log file name. + RSettingServer settingServer; + TInt ret = settingServer.Connect(); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Struct to StifLogger settigs. + TLoggerSettings loggerSettings; + // Parse StifLogger defaults from STIF initialization file. + ret = settingServer.GetLoggerSettings(loggerSettings); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Close Setting server session + settingServer.Close(); + + TFileName logFileName; + + if(loggerSettings.iAddTestCaseTitle) + { + TName title; + TestModuleIf().GetTestCaseTitleL(title); + logFileName.Format(KSyncMLRFSPluginTestModuleLogFileWithTitle, &title); + } + else + { + logFileName.Copy(KSyncMLRFSPluginTestModuleLogFile); + } + + iLog = CStifLogger::NewL( KSyncMLRFSPluginTestModuleLogPath, + logFileName, + CStifLogger::ETxt, + CStifLogger::EFile, + EFalse ); + + SendTestClassVersion(); + } + +// ----------------------------------------------------------------------------- +// CSyncMLRFSPluginTestModule::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CSyncMLRFSPluginTestModule* CSyncMLRFSPluginTestModule::NewL( + CTestModuleIf& aTestModuleIf ) + { + CSyncMLRFSPluginTestModule* self = new (ELeave) CSyncMLRFSPluginTestModule( aTestModuleIf ); + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + + return self; + + } + +// ----------------------------------------------------------------------------- +// CSyncMLRFSPluginTestModule::Delete +// Delete here all resources allocated and opened from test methods. +// Called from destructor. +// ----------------------------------------------------------------------------- +// +void CSyncMLRFSPluginTestModule::Delete() + { + + } + +// Destructor +CSyncMLRFSPluginTestModule::~CSyncMLRFSPluginTestModule() + { + + // Delete resources allocated from test methods + Delete(); + + delete iPlugin; + REComSession::FinalClose(); + + // Delete logger + delete iLog; + + } + +//----------------------------------------------------------------------------- +// CSyncMLRFSPluginTestModule::SendTestClassVersion +// Method used to send version of test class +//----------------------------------------------------------------------------- +// +void CSyncMLRFSPluginTestModule::SendTestClassVersion() + { + TVersion moduleVersion; + moduleVersion.iMajor = TEST_CLASS_VERSION_MAJOR; + moduleVersion.iMinor = TEST_CLASS_VERSION_MINOR; + moduleVersion.iBuild = TEST_CLASS_VERSION_BUILD; + + TFileName moduleName; + moduleName = _L("SyncMLRFSPluginTestModule.dll"); + + TBool newVersionOfMethod = ETrue; + TestModuleIf().SendTestModuleVersion(moduleVersion, moduleName, newVersionOfMethod); + } + +// ----------------------------------------------------------------------------- +// CSyncMLRFSPluginTestModule::RunMethodL +// Run specified method. Contains also table of test mothods and their names. +// ----------------------------------------------------------------------------- +// +TInt CSyncMLRFSPluginTestModule::RunMethodL( + CStifItemParser& aItem ) + { + + static TStifFunctionInfo const KFunctions[] = + { + // Copy this line for every implemented function. + // First string is the function name used in TestScripter script file. + // Second is the actual implementation member function. + ENTRY( "CreatePlugin", CSyncMLRFSPluginTestModule::CreatePlugin ), + ENTRY( "DestroyPlugin", CSyncMLRFSPluginTestModule::DestroyPlugin ), + ENTRY( "RestoreFactorySettings", CSyncMLRFSPluginTestModule::RestoreFactorySettings ), + ENTRY( "GetScript", CSyncMLRFSPluginTestModule::GetScript ), + ENTRY( "ExecuteCustomCommand", CSyncMLRFSPluginTestModule::ExecuteCustomCommand ), + //ADD NEW ENTRY HERE + // [test cases entries] - Do not remove + + }; + + const TInt count = sizeof( KFunctions ) / + sizeof( TStifFunctionInfo ); + + return RunInternalL( KFunctions, count, aItem ); + + } + +TInt CSyncMLRFSPluginTestModule::CreatePlugin(CStifItemParser& /*aItem */) + { + STIF_ASSERT_NOT_LEAVES(iPlugin = CRFSPlugin::NewL( TUid::Uid( 0x2000F8B1 ) ) ); + STIF_ASSERT_NOT_NULL( iPlugin ); + + return KErrNone; + + } +TInt CSyncMLRFSPluginTestModule::DestroyPlugin(CStifItemParser& /*aItem*/ ) + { + delete iPlugin; + iPlugin = NULL; + + return KErrNone; + } + +TInt CSyncMLRFSPluginTestModule::RestoreFactorySettings(CStifItemParser& /*aItem*/ ) + { + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( ENormalRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EDeepRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EInitRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( static_cast( 100 ) ) ); + return KErrNone; + } + +TInt CSyncMLRFSPluginTestModule::GetScript(CStifItemParser& /*aItem*/ ) + { + TBuf<256> path; + //TBuf<256> buf; + //buf.Copy(KExpectedScript); + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( ENormalRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EDeepRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EInitRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( static_cast( 100 ), path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + return KErrNone; + } + +TInt CSyncMLRFSPluginTestModule::ExecuteCustomCommand(CStifItemParser& /*aItem*/ ) + { + TBuf<256> param1( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( ENormalRfs, param1 ) ); + TBuf<1> param2( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EDeepRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EInitRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( static_cast( 100 ), param2 ) ); + return KErrNone; + } + + +// ========================== OTHER EXPORTED FUNCTIONS ========================= + +// ----------------------------------------------------------------------------- +// LibEntryL is a polymorphic Dll entry point. +// Returns: CScriptBase: New CScriptBase derived object +// ----------------------------------------------------------------------------- +// +EXPORT_C CScriptBase* LibEntryL( + CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework + { + + return ( CScriptBase* ) CSyncMLRFSPluginTestModule::NewL( aTestModuleIf ); + + } + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/Bmarm/TelephonyRFSPluginTestModuleU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/Bmarm/TelephonyRFSPluginTestModuleU.DEF Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/Bwins/TelephonyRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/Bwins/TelephonyRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/conf/TelephonyRFSPluginTestModule.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/conf/TelephonyRFSPluginTestModule.cfg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,40 @@ +[Test] +title Telephony_Create and destroy RfsPlugin +create TelephonyRFSPluginTestModule testClass +testClass CreatePlugin +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Telephony_Test RestoreFactorySettingsL +create TelephonyRFSPluginTestModule testClass +testClass CreatePlugin +testClass RestoreFactorySettings +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Telephony_Test GetScriptL +create TelephonyRFSPluginTestModule testClass +testClass CreatePlugin +testClass GetScript +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Telephony_Test ExecuteCustomCommandL +create TelephonyRFSPluginTestModule testClass +testClass CreatePlugin +testClass ExecuteCustomCommand +testClass DestroyPlugin +delete testClass +[Endtest] + + + + + + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/eabi/TelephonyRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/eabi/TelephonyRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/group/TelephonyRFSPluginTestModule.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/group/TelephonyRFSPluginTestModule.mmp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,78 @@ +/*TYPE TESTCLASS*/ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: MMP file for STIF Test Framework's TestScripter +* testclass test module. +* +*/ + +#include + +SMPSAFE + +TARGET TelephonyRFSPluginTestModule.dll +TARGETTYPE dll +UID 0x1000008D 0x101FB3E3 + +CAPABILITY ALL -TCB +/* Remove comments and replace 0x00000000 with correct vendor id */ +// VENDORID 0x00000000 +/* Remove comments and replace 0x00000000 with correct secure id */ +// SECUREID 0x00000000 + +//TARGETPATH ?target_path +DEFFILE TelephonyRFSPluginTestModule.def + +USERINCLUDE ../inc + +OS_LAYER_SYSTEMINCLUDE +MW_LAYER_SYSTEMINCLUDE + +SOURCEPATH ../src + +SOURCE TelephonyRFSPluginTestModule.cpp + +//RESOURCE resource_file +//RESOURCE resource_file2 + +LIBRARY euser.lib +LIBRARY stiftestinterface.lib +LIBRARY stiftestengine.lib +LIBRARY ecom.lib + +LANG SC + +/* +START WINS +?wins_specific_information +END + +START MARM +?marm_specific_information +END +*/ +// Other possible keywords: + +// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes) +/* +START BITMAP ?target +TARGETPATH ?emulated_path_on_target_machine +HEADER +SOURCE ?color_depth ?source_bitmap +END +*/ +// DEFFILE ?filename +// AIF ?filename + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/group/TelephonyRFSPluginTestModule.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/group/TelephonyRFSPluginTestModule.pkg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,60 @@ +; +; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; All rights reserved. +; This component and the accompanying materials are made available +; under the terms of "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: +; +; Installation file for STIF +; + +; Languages +&EN + +; Provide value for uid +#{"STIF"},(0x00000000),1,1,0,TYPE=SA + +; Series60 product id for S60 3.0 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + +; Localised Vendor name +%{"Nokia"} + +; Unique Vendor name +:"Nokia" + +; Logo +; None + +; Package signature - Optional +; None + +; Start of Package body + +; Condition blocks +; None + +; Options list +; None + +; Install files +"\epoc32\release\armv5\udeb\TelephonyRFSPluginTestModule.dll" - "!:\Sys\Bin\TelephonyRFSPluginTestModule.dll" + +; Embedded SIS +; None + +; End of Package body + +; PKG dependencies +; None + +; PKG capabilities +; None diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/group/TelephonyRFSPluginTestModule_DoxyFile.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/group/TelephonyRFSPluginTestModule_DoxyFile.txt Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,240 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "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: +# +# + +# Doxyfile 1.4.1 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = TelephonyRFSPluginTestModule +PROJECT_NUMBER = +OUTPUT_DIRECTORY = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\TelephonyRFSPluginTestModule\ +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = YES +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = NO +STRIP_FROM_PATH = +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +DISTRIBUTE_GROUP_DOC = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = YES +OPTIMIZE_OUTPUT_JAVA = NO +SUBGROUPING = YES +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = YES +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = NO +EXTRACT_LOCAL_METHODS = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = YES +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = NO +GENERATE_TESTLIST = NO +GENERATE_BUGLIST = NO +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = YES +FILE_VERSION_FILTER = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\tsrc\rfspluginstest\\TelephonyRFSPluginTestModule\ +FILE_PATTERNS = *.h \ + *.rh \ + *.hrh +RECURSIVE = YES +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = NO +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = NO +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = YES +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +BINARY_TOC = YES +TOC_EXPAND = YES +DISABLE_INDEX = YES +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = YES +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = YES +RTF_OUTPUT = Doc +COMPACT_RTF = YES +RTF_HYPERLINKS = YES +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = YES +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = NONSHARABLE_CLASS +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = NO +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = YES +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 0 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/group/bld.inf Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,66 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: +* +*/ + +PRJ_PLATFORMS +// specify the platforms your component needs to be built for here +// defaults to WINS MARM so you can ignore this if you just build these + + DEFAULT + +PRJ_TESTEXPORTS +// NOTE: If using ARS requirements all export operations should be done under this. +// 'abld test export' +../init/TestFramework.ini /epoc32/winscw/c/TestFramework/TestFramework.ini +../init/TestFramework.ini /epoc32/data/z/system/data/TestFramework.ini + +../conf/TelephonyRFSPluginTestModule.cfg /epoc32/winscw/c/TestFramework/TelephonyRFSPluginTestModule.cfg +../conf/TelephonyRFSPluginTestModule.cfg /epoc32/data/z/system/data/TelephonyRFSPluginTestModule.cfg + +../rom/TelephonyRFSPluginTestModule.iby CORE_MW_LAYER_IBY_EXPORT_PATH(TelephonyRFSPluginTestModule.iby) + +PRJ_EXPORTS +// Specify the source file followed by its destination here +// copy will be used to copy the source file to its destination +// If there's no destination then the source file will be copied +// to the same name in \epoc32\include +// Example: +/* +\agnmodel\inc\AGMCOMON.H +*/ + +PRJ_TESTMMPFILES + + TelephonyRFSPluginTestModule.mmp + +PRJ_MMPFILES + + +// Specify the .mmp files required for building the important component +// releasables. +// +// Specify "tidy" if the component you need to build doesn't need to be +// released. Specify "ignore" if the MMP file exists but should be +// ignored. +// Example: +/* +\agnmodel\group\agnmodel.mmp +#if defined(MARM) +\agnmodel\group\agsvexe.mmp +#endif +*/ + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/inc/TelephonyRFSPluginTestModule.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/inc/TelephonyRFSPluginTestModule.h Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,177 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: STIF testclass declaration +* +*/ + +#ifndef TELEPHONYRFSPLUGINTESTMODULE_H +#define TELEPHONYRFSPLUGINTESTMODULE_H + +// INCLUDES +#include +#include +#include +#include + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def +#define TEST_CLASS_VERSION_MAJOR 0 +#define TEST_CLASS_VERSION_MINOR 0 +#define TEST_CLASS_VERSION_BUILD 0 + +// Logging path +_LIT( KTelephonyRFSPluginTestModuleLogPath, "\\logs\\testframework\\TelephonyRFSPluginTestModule\\" ); +// Log file +_LIT( KTelephonyRFSPluginTestModuleLogFile, "TelephonyRFSPluginTestModule.txt" ); +_LIT( KTelephonyRFSPluginTestModuleLogFileWithTitle, "TelephonyRFSPluginTestModule_[%S].txt" ); + +// FUNCTION PROTOTYPES +//?type ?function_name(?arg_list); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; +class CRFSPlugin; +class CTelephonyRFSPluginTestModule; + +// DATA TYPES +//enum ?declaration +//typedef ?declaration +//extern ?data_type; + +// CLASS DECLARATION + +/** +* CTelephonyRFSPluginTestModule test class for STIF Test Framework TestScripter. +* ?other_description_lines +* +* @lib ?library +* @since ?Series60_version +*/ +NONSHARABLE_CLASS(CTelephonyRFSPluginTestModule) : public CScriptBase + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CTelephonyRFSPluginTestModule* NewL( CTestModuleIf& aTestModuleIf ); + + /** + * Destructor. + */ + virtual ~CTelephonyRFSPluginTestModule(); + + public: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + public: // Functions from base classes + + /** + * From CScriptBase Runs a script line. + * @since ?Series60_version + * @param aItem Script line containing method name and parameters + * @return Symbian OS error code + */ + virtual TInt RunMethodL( CStifItemParser& aItem ); + + protected: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + protected: // Functions from base classes + + /** + * From ?base_class ?member_description + */ + //?type ?member_function(); + + private: + + /** + * C++ default constructor. + */ + CTelephonyRFSPluginTestModule( CTestModuleIf& aTestModuleIf ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + // Prohibit copy constructor if not deriving from CBase. + // ?classname( const ?classname& ); + // Prohibit assigment operator if not deriving from CBase. + // ?classname& operator=( const ?classname& ); + + /** + * Frees all resources allocated from test methods. + * @since ?Series60_version + */ + void Delete(); + + /** + * Test methods are listed below. + */ + TInt CreatePlugin( CStifItemParser& aItem ); + TInt DestroyPlugin( CStifItemParser& aItem ); + TInt RestoreFactorySettings( CStifItemParser& aItem ); + TInt GetScript( CStifItemParser& aItem ); + TInt ExecuteCustomCommand( CStifItemParser& aItem ); + + /** + * Method used to log version of test class + */ + void SendTestClassVersion(); + + //ADD NEW METHOD DEC HERE + //[TestMethods] - Do not remove + + public: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + protected: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + private: // Data + CRFSPlugin* iPlugin; + + public: // Friend classes + //?friend_class_declaration; + protected: // Friend classes + //?friend_class_declaration; + private: // Friend classes + //?friend_class_declaration; + + }; + +#endif // TELEPHONYRFSPLUGINTESTMODULE_H + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/init/TestFramework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/init/TestFramework.ini Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,219 @@ +# +# This is STIF initialization file +# Comment lines start with '#'-character. +# See STIF TestFramework users guide.doc for instructions + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set following test engine settings: +# - Set Test Reporting mode. TestReportMode's possible values are: +# + 'Summary': Summary of the tested test cases. +# + 'Environment': Hardware and software info. +# + 'TestCases': Test case report. +# + 'FullReport': Set of all above ones. +# + Example 'TestReportMode= Summary TestCases' +# +# - CreateTestReport setting controls report creation mode +# + YES, Test report will created. +# + NO, No Test report. +# +# - File path indicates the base path of the test report. +# - File name indicates the name of the test report. +# +# - File format indicates the type of the test report. +# + TXT, Test report file will be txt type, for example 'TestReport.txt'. +# + HTML, Test report will be html type, for example 'TestReport.html'. +# + XML, Test report will be xml type, for example 'TestReport.xml'. +# Note, that xml format is available only when output is set to FILE. +# +# - File output indicates output source of the test report. +# + FILE, Test report logging to file. +# + RDEBUG, Test report logging to using rdebug. +# +# - File Creation Mode indicates test report overwriting if file exist. +# + OVERWRITE, Overwrites if the Test report file exist. +# + APPEND, Continue logging after the old Test report information if +# report exist. +# - Sets a device reset module's dll name(Reboot). +# + If Nokia specific reset module is not available or it is not correct one +# StifHWResetStub module may use as a template for user specific reset +# module. +# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation +# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02 +# + +[Engine_Defaults] + +TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment', + # 'TestCases' or 'FullReport' + +CreateTestReport= YES # Possible values: YES or NO + +TestReportFilePath= C:\LOGS\TestFramework\ +TestReportFileName= TestReport + +TestReportFormat= TXT # Possible values: TXT, HTML or XML +TestReportOutput= FILE # Possible values: FILE or RDEBUG +TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting + +DisableMeasurement= stifmeasurementdisablenone # Possible values are: + # 'stifmeasurementdisablenone', 'stifmeasurementdisableall' + # 'stifmeasurementplugin01', 'stifmeasurementplugin02', + # 'stifmeasurementplugin03', 'stifmeasurementplugin04', + # 'stifmeasurementplugin05' or 'stifbappeaprofiler' + +Timeout= 0 # Default timeout value for each test case. In milliseconds +#UITestingSupport= YES # Possible values: YES or NO +#SeparateProcesses= YES # Possible values: YES or NO (default: NO) +[End_Defaults] + +[New_Module] +ModuleName= testscripter +TestCaseFile= Z:\TestFramework\TelephonyRFSPluginTestModule.cfg +[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Module configurations start +# Modules are added between module tags +# tags. Module name is specified after ModuleName= tag, like +# ModuleName= XXXXXXXXX +# Modules might have initialisation file, specified as +# IniFile= c:\testframework\YYYYYY +# Modules might have several configuration files, like +# TestCaseFile= c:\testframework\NormalCases.txt +# TestCaseFile= c:\testframework\SmokeCases.txt +# TestCaseFile= c:\testframework\ManualCases.txt + +# (TestCaseFile is synonym for old term ConfigFile) + +# Following case specifies demo module settings. Demo module +# does not read any settings from file, so tags +# IniFile and TestCaseFile are not used. +# In the simplest case it is enough to specify only the +# name of the test module when adding new test module + + + +# Load testmoduleXXX, optionally with initialization file and/or test case files +#[New_Module] +#ModuleName= testmodulexxx + +#TestModuleXXX used initialization file +#IniFile= c:\testframework\init.txt + +#TestModuleXXX used configuration file(s) +#TestCaseFile= c:\testframework\testcases1.cfg +#TestCaseFile= c:\testframework\testcases2.cfg +#TestCaseFile= c:\testframework\manualtestcases.cfg + +#[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set STIF logging overwrite parameters for Logger. +# Hardware and emulator environment logging path and styles can +# be configured from here to overwrite the Logger's implemented values. +# +# Settings description: +# - Indicates option for creation log directory/directories. If log directory/directories +# is/are not created by user they will make by software. +# + YES, Create log directory/directories if not allready exist. +# + NO, Log directory/directories not created. Only created one is used. +# +# - Overwrite emulator path setting. +# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined +# Logger's path 'D:\\LOGS\\Module\\' with those definition the path +# will be 'C:\LOGS\TestFramework\LOGS\Module\' +# +# - Overwrite emulator's logging format. +# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'. +# + HTML, Log file(s) will be html type(s), for example 'Module.html'. +# +# - Overwrited emulator logging output source. +# + FILE, Logging to file(s). +# + RDEBUG, Logging to using rdebug(s). +# +# - Overwrite hardware path setting (Same description as above in emulator path). +# - Overwrite hardware's logging format(Same description as above in emulator format). +# - Overwrite hardware's logging output source(Same description as above in emulator output). +# +# - File Creation Mode indicates file overwriting if file exist. +# + OVERWRITE, Overwrites if file(s) exist. +# + APPEND, Continue logging after the old logging information if file(s) exist. +# +# - Will thread id include to the log filename. +# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'. +# + NO, No thread id to log file(s), Example filename 'Module.txt'. +# +# - Will time stamps include the to log file. +# + YES, Time stamp added to each line in log file(s). Time stamp is +# for example'12.Nov.2003 115958 LOGGING INFO' +# + NO, No time stamp(s). +# +# - Will line breaks include to the log file. +# + YES, Each logging event includes line break and next log event is in own line. +# + NO, No line break(s). +# +# - Will event ranking include to the log file. +# + YES, Event ranking number added to each line in log file(s). Ranking number +# depends on environment's tics, for example(includes time stamp also) +# '012 12.Nov.2003 115958 LOGGING INFO' +# + NO, No event ranking. +# +# - Will write log file in unicode format. +# + YES, Log file will be written in unicode format +# + NO, Log will be written as normal, not unicode, file. +# + +[Logger_Defaults] + +#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#' +#NOTE: TestEngine and TestServer logging settings cannot change here + +#CreateLogDirectories= YES # Possible values: YES or NO + +#EmulatorBasePath= C:\LOGS\TestFramework\ +#EmulatorFormat= HTML # Possible values: TXT or HTML +#EmulatorOutput= FILE # Possible values: FILE or RDEBUG + +#HardwareBasePath= D:\LOGS\TestFramework\ +#HardwareFormat= HTML # Possible values: TXT or HTML +#HardwareOutput= FILE # Possible values: FILE or RDEBUG + +#FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +#ThreadIdToLogFile= YES # Possible values: YES or NO +#WithTimeStamp= YES # Possible values: YES or NO +#WithLineBreak= YES # Possible values: YES or NO +#WithEventRanking= YES # Possible values: YES or NO + +#FileUnicode= YES # Possible values: YES or NO +#AddTestCaseTitle= YES # Possible values: YES or NO +[End_Logger_Defaults] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set filters to be used by ConsoleUI. +# If you want to use filter with ConsoleUI, simply remove comments +# from section below and provide valid filter entries. +# Each filter line has to start with "filter= " keyword. +# Filter can contain special wildcard characters: +# * which stands for none or any literal; +# ? which stands for single character. +# Filters are not case-sensitive. + +#[Filters] +#filter= *math* +#filter= *radio* +#[End_Filters] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +# End of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/rom/TelephonyRFSPluginTestModule.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/rom/TelephonyRFSPluginTestModule.iby Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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 __TELEPHONYRFSPLUGINTESTMODULE_IBY__ +#define __TELEPHONYRFSPLUGINTESTMODULE_IBY__ + +file=ABI_DIR\BUILD_DIR\TelephonyRFSPluginTestModule.dll SHARED_LIB_DIR\TelephonyRFSPluginTestModule.dll + +//data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini + +data=\epoc32\data\z\system\data\TelephonyRFSPluginTestModule.cfg \testframework\TelephonyRFSPluginTestModule.cfg + + + +#endif diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/src/TelephonyRFSPluginTestModule.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/TelephonyRFSPluginTestModule/src/TelephonyRFSPluginTestModule.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,304 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: This file contains testclass implementation. +* +*/ + +// INCLUDE FILES +#include +#include "TelephonyRFSPluginTestModule.h" +#include +#include + +// EXTERNAL DATA STRUCTURES +//extern ?external_data; + +// EXTERNAL FUNCTION PROTOTYPES +//extern ?external_function( ?arg_type,?arg_type ); + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def + +// LOCAL CONSTANTS AND MACROS +//const ?type ?constant_var = ?constant; +//#define ?macro_name ?macro_def + +// MODULE DATA STRUCTURES +//enum ?declaration +//typedef ?declaration + +// LOCAL FUNCTION PROTOTYPES +//?type ?function_name( ?arg_type, ?arg_type ); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; + +// ============================= LOCAL FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// ?function_name ?description. +// ?description +// Returns: ?value_1: ?description +// ?value_n: ?description_line1 +// ?description_line2 +// ----------------------------------------------------------------------------- +// +/* +?type ?function_name( + ?arg_type arg, // ?description + ?arg_type arg) // ?description + { + + ?code // ?comment + + // ?comment + ?code + } +*/ + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CTelephonyRFSPluginTestModule::CTelephonyRFSPluginTestModule +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CTelephonyRFSPluginTestModule::CTelephonyRFSPluginTestModule( + CTestModuleIf& aTestModuleIf ): + CScriptBase( aTestModuleIf ) + { + } + +// ----------------------------------------------------------------------------- +// CTelephonyRFSPluginTestModule::ConstructL +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CTelephonyRFSPluginTestModule::ConstructL() + { + //Read logger settings to check whether test case name is to be + //appended to log file name. + RSettingServer settingServer; + TInt ret = settingServer.Connect(); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Struct to StifLogger settigs. + TLoggerSettings loggerSettings; + // Parse StifLogger defaults from STIF initialization file. + ret = settingServer.GetLoggerSettings(loggerSettings); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Close Setting server session + settingServer.Close(); + + TFileName logFileName; + + if(loggerSettings.iAddTestCaseTitle) + { + TName title; + TestModuleIf().GetTestCaseTitleL(title); + logFileName.Format(KTelephonyRFSPluginTestModuleLogFileWithTitle, &title); + } + else + { + logFileName.Copy(KTelephonyRFSPluginTestModuleLogFile); + } + + iLog = CStifLogger::NewL( KTelephonyRFSPluginTestModuleLogPath, + logFileName, + CStifLogger::ETxt, + CStifLogger::EFile, + EFalse ); + + SendTestClassVersion(); + } + +// ----------------------------------------------------------------------------- +// CTelephonyRFSPluginTestModule::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CTelephonyRFSPluginTestModule* CTelephonyRFSPluginTestModule::NewL( + CTestModuleIf& aTestModuleIf ) + { + CTelephonyRFSPluginTestModule* self = new (ELeave) CTelephonyRFSPluginTestModule( aTestModuleIf ); + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + + return self; + + } + +// ----------------------------------------------------------------------------- +// CTelephonyRFSPluginTestModule::Delete +// Delete here all resources allocated and opened from test methods. +// Called from destructor. +// ----------------------------------------------------------------------------- +// +void CTelephonyRFSPluginTestModule::Delete() + { + + } + +// Destructor +CTelephonyRFSPluginTestModule::~CTelephonyRFSPluginTestModule() + { + + // Delete resources allocated from test methods + Delete(); + + delete iPlugin; + REComSession::FinalClose(); + + // Delete logger + delete iLog; + + } + +//----------------------------------------------------------------------------- +// CTelephonyRFSPluginTestModule::SendTestClassVersion +// Method used to send version of test class +//----------------------------------------------------------------------------- +// +void CTelephonyRFSPluginTestModule::SendTestClassVersion() + { + TVersion moduleVersion; + moduleVersion.iMajor = TEST_CLASS_VERSION_MAJOR; + moduleVersion.iMinor = TEST_CLASS_VERSION_MINOR; + moduleVersion.iBuild = TEST_CLASS_VERSION_BUILD; + + TFileName moduleName; + moduleName = _L("TelephonyRFSPluginTestModule.dll"); + + TBool newVersionOfMethod = ETrue; + TestModuleIf().SendTestModuleVersion(moduleVersion, moduleName, newVersionOfMethod); + } + +// ----------------------------------------------------------------------------- +// CTelephonyRFSPluginTestModule::RunMethodL +// Run specified method. Contains also table of test mothods and their names. +// ----------------------------------------------------------------------------- +// +TInt CTelephonyRFSPluginTestModule::RunMethodL( + CStifItemParser& aItem ) + { + + static TStifFunctionInfo const KFunctions[] = + { + // Copy this line for every implemented function. + // First string is the function name used in TestScripter script file. + // Second is the actual implementation member function. + ENTRY( "CreatePlugin", CTelephonyRFSPluginTestModule::CreatePlugin ), + ENTRY( "DestroyPlugin", CTelephonyRFSPluginTestModule::DestroyPlugin ), + ENTRY( "RestoreFactorySettings", CTelephonyRFSPluginTestModule::RestoreFactorySettings ), + ENTRY( "GetScript", CTelephonyRFSPluginTestModule::GetScript ), + ENTRY( "ExecuteCustomCommand", CTelephonyRFSPluginTestModule::ExecuteCustomCommand ), + //ADD NEW ENTRY HERE + // [test cases entries] - Do not remove + + }; + + const TInt count = sizeof( KFunctions ) / + sizeof( TStifFunctionInfo ); + + return RunInternalL( KFunctions, count, aItem ); + + } + +TInt CTelephonyRFSPluginTestModule::CreatePlugin(CStifItemParser& /*aItem */) + { + STIF_ASSERT_NOT_LEAVES(iPlugin = CRFSPlugin::NewL( TUid::Uid( 0x2000F8B6 ) ) ); + STIF_ASSERT_NOT_NULL( iPlugin ); + + return KErrNone; + + } +TInt CTelephonyRFSPluginTestModule::DestroyPlugin(CStifItemParser& /*aItem*/ ) + { + delete iPlugin; + iPlugin = NULL; + + return KErrNone; + } + +TInt CTelephonyRFSPluginTestModule::RestoreFactorySettings(CStifItemParser& /*aItem*/ ) + { + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( ENormalRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EDeepRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EInitRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( static_cast( 100 ) ) ); + return KErrNone; + } + +TInt CTelephonyRFSPluginTestModule::GetScript(CStifItemParser& /*aItem*/ ) + { + TBuf<256> path; + //TBuf<256> buf; + //buf.Copy(KExpectedScript); + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( ENormalRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EDeepRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EInitRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( static_cast( 100 ), path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + return KErrNone; + } + +TInt CTelephonyRFSPluginTestModule::ExecuteCustomCommand(CStifItemParser& /*aItem*/ ) + { + TBuf<256> param1( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( ENormalRfs, param1 ) ); + TBuf<1> param2( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EDeepRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EInitRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( static_cast( 100 ), param2 ) ); + return KErrNone; + } + +// ========================== OTHER EXPORTED FUNCTIONS ========================= + +// ----------------------------------------------------------------------------- +// LibEntryL is a polymorphic Dll entry point. +// Returns: CScriptBase: New CScriptBase derived object +// ----------------------------------------------------------------------------- +// +EXPORT_C CScriptBase* LibEntryL( + CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework + { + + return ( CScriptBase* ) CTelephonyRFSPluginTestModule::NewL( aTestModuleIf ); + + } + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/Bmarm/UnitconverterRFSPluginTestModuleU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/Bmarm/UnitconverterRFSPluginTestModuleU.DEF Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/Bwins/UnitconverterRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/Bwins/UnitconverterRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/conf/UnitconverterRFSPluginTestModule.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/conf/UnitconverterRFSPluginTestModule.cfg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,37 @@ +[Test] +title Unitconverter_Create and destroy RfsPlugin +create UnitconverterRFSPluginTestModule testClass +testClass CreatePlugin +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Unitconverter_Test RestoreFactorySettingsL +create UnitconverterRFSPluginTestModule testClass +testClass CreatePlugin +testClass RestoreFactorySettings +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Unitconverter_Test GetScriptL +create UnitconverterRFSPluginTestModule testClass +testClass CreatePlugin +testClass GetScript +testClass DestroyPlugin +delete testClass +[Endtest] + +[Test] +title Unitconverter_Test ExecuteCustomCommandL +create UnitconverterRFSPluginTestModule testClass +testClass CreatePlugin +testClass ExecuteCustomCommand +testClass DestroyPlugin +delete testClass +[Endtest] + + + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/eabi/UnitconverterRFSPluginTestModuleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/eabi/UnitconverterRFSPluginTestModuleu.def Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/group/UnitconverterRFSPluginTestModule.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/group/UnitconverterRFSPluginTestModule.mmp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,78 @@ +/*TYPE TESTCLASS*/ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: MMP file for STIF Test Framework's TestScripter +* testclass test module. +* +*/ + +#include + +SMPSAFE + +TARGET UnitconverterRFSPluginTestModule.dll +TARGETTYPE dll +UID 0x1000008D 0x101FB3E3 + +CAPABILITY ALL -TCB +/* Remove comments and replace 0x00000000 with correct vendor id */ +// VENDORID 0x00000000 +/* Remove comments and replace 0x00000000 with correct secure id */ +// SECUREID 0x00000000 + +//TARGETPATH ?target_path +DEFFILE UnitconverterRFSPluginTestModule.def + +USERINCLUDE ../inc + +OS_LAYER_SYSTEMINCLUDE +MW_LAYER_SYSTEMINCLUDE + +SOURCEPATH ../src + +SOURCE UnitconverterRFSPluginTestModule.cpp + +//RESOURCE resource_file +//RESOURCE resource_file2 + +LIBRARY euser.lib +LIBRARY stiftestinterface.lib +LIBRARY stiftestengine.lib +LIBRARY ecom.lib + +LANG SC + +/* +START WINS +?wins_specific_information +END + +START MARM +?marm_specific_information +END +*/ +// Other possible keywords: + +// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes) +/* +START BITMAP ?target +TARGETPATH ?emulated_path_on_target_machine +HEADER +SOURCE ?color_depth ?source_bitmap +END +*/ +// DEFFILE ?filename +// AIF ?filename + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/group/UnitconverterRFSPluginTestModule.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/group/UnitconverterRFSPluginTestModule.pkg Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,60 @@ +; +; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; All rights reserved. +; This component and the accompanying materials are made available +; under the terms of "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: +; +; Installation file for STIF +; + +; Languages +&EN + +; Provide value for uid +#{"STIF"},(0x00000000),1,1,0,TYPE=SA + +; Series60 product id for S60 3.0 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + +; Localised Vendor name +%{"Nokia"} + +; Unique Vendor name +:"Nokia" + +; Logo +; None + +; Package signature - Optional +; None + +; Start of Package body + +; Condition blocks +; None + +; Options list +; None + +; Install files +"\epoc32\release\armv5\udeb\UnitconverterRFSPluginTestModule.dll" - "!:\Sys\Bin\UnitconverterRFSPluginTestModule.dll" + +; Embedded SIS +; None + +; End of Package body + +; PKG dependencies +; None + +; PKG capabilities +; None diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/group/UnitconverterRFSPluginTestModule_DoxyFile.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/group/UnitconverterRFSPluginTestModule_DoxyFile.txt Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,240 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "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: +# +# + +# Doxyfile 1.4.1 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = UnitconverterRFSPluginTestModule +PROJECT_NUMBER = +OUTPUT_DIRECTORY = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\\UnitconverterRFSPluginTestModule\ +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = YES +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = NO +STRIP_FROM_PATH = +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +DISTRIBUTE_GROUP_DOC = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = YES +OPTIMIZE_OUTPUT_JAVA = NO +SUBGROUPING = YES +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = YES +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = NO +EXTRACT_LOCAL_METHODS = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = YES +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = NO +GENERATE_TESTLIST = NO +GENERATE_BUGLIST = NO +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = YES +FILE_VERSION_FILTER = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = Q:\Synergy\rfsplugins-bh1dsgasanobroy\rfsplugins\\UnitconverterRFSPluginTestModule\ +FILE_PATTERNS = *.h \ + *.rh \ + *.hrh +RECURSIVE = YES +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = NO +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = NO +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = YES +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +BINARY_TOC = YES +TOC_EXPAND = YES +DISABLE_INDEX = YES +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = YES +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = YES +RTF_OUTPUT = Doc +COMPACT_RTF = YES +RTF_HYPERLINKS = YES +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = YES +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = NONSHARABLE_CLASS +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = NO +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = YES +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 0 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/group/bld.inf Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: +* +*/ + +PRJ_PLATFORMS +// specify the platforms your component needs to be built for here +// defaults to WINS MARM so you can ignore this if you just build these + + DEFAULT + +PRJ_TESTEXPORTS +// NOTE: If using ARS requirements all export operations should be done under this. +// 'abld test export' +../init/TestFramework.ini /epoc32/winscw/c/TestFramework/TestFramework.ini +../init/TestFramework.ini /epoc32/data/z/system/data/TestFramework.ini + +../conf/UnitconverterRFSPluginTestModule.cfg /epoc32/winscw/c/TestFramework/UnitconverterRFSPluginTestModule.cfg +../conf/UnitconverterRFSPluginTestModule.cfg /epoc32/data/z/system/data/UnitconverterRFSPluginTestModule.cfg + +../rom/UnitconverterRFSPluginTestModule.iby CORE_MW_LAYER_IBY_EXPORT_PATH(UnitconverterRFSPluginTestModule.iby) + + +PRJ_EXPORTS +// Specify the source file followed by its destination here +// copy will be used to copy the source file to its destination +// If there's no destination then the source file will be copied +// to the same name in \epoc32\include +// Example: +/* +\agnmodel\inc\AGMCOMON.H +*/ + +PRJ_TESTMMPFILES + + UnitconverterRFSPluginTestModule.mmp + +PRJ_MMPFILES + + +// Specify the .mmp files required for building the important component +// releasables. +// +// Specify "tidy" if the component you need to build doesn't need to be +// released. Specify "ignore" if the MMP file exists but should be +// ignored. +// Example: +/* +\agnmodel\group\agnmodel.mmp +#if defined(MARM) +\agnmodel\group\agsvexe.mmp +#endif +*/ + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/inc/UnitconverterRFSPluginTestModule.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/inc/UnitconverterRFSPluginTestModule.h Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,176 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: STIF testclass declaration +* +*/ + +#ifndef UNITCONVERTERRFSPLUGINTESTMODULE_H +#define UNITCONVERTERRFSPLUGINTESTMODULE_H + +// INCLUDES +#include +#include +#include +#include + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def +#define TEST_CLASS_VERSION_MAJOR 0 +#define TEST_CLASS_VERSION_MINOR 0 +#define TEST_CLASS_VERSION_BUILD 0 + +// Logging path +_LIT( KUnitconverterRFSPluginTestModuleLogPath, "\\logs\\testframework\\UnitconverterRFSPluginTestModule\\" ); +// Log file +_LIT( KUnitconverterRFSPluginTestModuleLogFile, "UnitconverterRFSPluginTestModule.txt" ); +_LIT( KUnitconverterRFSPluginTestModuleLogFileWithTitle, "UnitconverterRFSPluginTestModule_[%S].txt" ); + +// FUNCTION PROTOTYPES +//?type ?function_name(?arg_list); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; +class CRFSPlugin; +class CUnitconverterRFSPluginTestModule; + +// DATA TYPES +//enum ?declaration +//typedef ?declaration +//extern ?data_type; + +// CLASS DECLARATION + +/** +* CUnitconverterRFSPluginTestModule test class for STIF Test Framework TestScripter. +* ?other_description_lines +* +* @lib ?library +* @since ?Series60_version +*/ +NONSHARABLE_CLASS(CUnitconverterRFSPluginTestModule) : public CScriptBase + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CUnitconverterRFSPluginTestModule* NewL( CTestModuleIf& aTestModuleIf ); + + /** + * Destructor. + */ + virtual ~CUnitconverterRFSPluginTestModule(); + + public: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + public: // Functions from base classes + + /** + * From CScriptBase Runs a script line. + * @since ?Series60_version + * @param aItem Script line containing method name and parameters + * @return Symbian OS error code + */ + virtual TInt RunMethodL( CStifItemParser& aItem ); + + protected: // New functions + + /** + * ?member_description. + * @since ?Series60_version + * @param ?arg1 ?description + * @return ?description + */ + //?type ?member_function( ?type ?arg1 ); + + protected: // Functions from base classes + + /** + * From ?base_class ?member_description + */ + //?type ?member_function(); + + private: + + /** + * C++ default constructor. + */ + CUnitconverterRFSPluginTestModule( CTestModuleIf& aTestModuleIf ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + // Prohibit copy constructor if not deriving from CBase. + // ?classname( const ?classname& ); + // Prohibit assigment operator if not deriving from CBase. + // ?classname& operator=( const ?classname& ); + + /** + * Frees all resources allocated from test methods. + * @since ?Series60_version + */ + void Delete(); + + /** + * Test methods are listed below. + */ + TInt CreatePlugin( CStifItemParser& aItem ); + TInt DestroyPlugin( CStifItemParser& aItem ); + TInt RestoreFactorySettings( CStifItemParser& aItem ); + TInt GetScript( CStifItemParser& aItem ); + TInt ExecuteCustomCommand( CStifItemParser& aItem ); + + /** + * Method used to log version of test class + */ + void SendTestClassVersion(); + + //ADD NEW METHOD DEC HERE + //[TestMethods] - Do not remove + + public: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + protected: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + private: // Data + CRFSPlugin* iPlugin; + public: // Friend classes + //?friend_class_declaration; + protected: // Friend classes + //?friend_class_declaration; + private: // Friend classes + //?friend_class_declaration; + + }; + +#endif // UNITCONVERTERRFSPLUGINTESTMODULE_H + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/init/TestFramework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/init/TestFramework.ini Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,219 @@ +# +# This is STIF initialization file +# Comment lines start with '#'-character. +# See STIF TestFramework users guide.doc for instructions + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set following test engine settings: +# - Set Test Reporting mode. TestReportMode's possible values are: +# + 'Summary': Summary of the tested test cases. +# + 'Environment': Hardware and software info. +# + 'TestCases': Test case report. +# + 'FullReport': Set of all above ones. +# + Example 'TestReportMode= Summary TestCases' +# +# - CreateTestReport setting controls report creation mode +# + YES, Test report will created. +# + NO, No Test report. +# +# - File path indicates the base path of the test report. +# - File name indicates the name of the test report. +# +# - File format indicates the type of the test report. +# + TXT, Test report file will be txt type, for example 'TestReport.txt'. +# + HTML, Test report will be html type, for example 'TestReport.html'. +# + XML, Test report will be xml type, for example 'TestReport.xml'. +# Note, that xml format is available only when output is set to FILE. +# +# - File output indicates output source of the test report. +# + FILE, Test report logging to file. +# + RDEBUG, Test report logging to using rdebug. +# +# - File Creation Mode indicates test report overwriting if file exist. +# + OVERWRITE, Overwrites if the Test report file exist. +# + APPEND, Continue logging after the old Test report information if +# report exist. +# - Sets a device reset module's dll name(Reboot). +# + If Nokia specific reset module is not available or it is not correct one +# StifHWResetStub module may use as a template for user specific reset +# module. +# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation +# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02 +# + +[Engine_Defaults] + +TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment', + # 'TestCases' or 'FullReport' + +CreateTestReport= YES # Possible values: YES or NO + +TestReportFilePath= C:\LOGS\TestFramework\ +TestReportFileName= TestReport + +TestReportFormat= TXT # Possible values: TXT, HTML or XML +TestReportOutput= FILE # Possible values: FILE or RDEBUG +TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting + +DisableMeasurement= stifmeasurementdisablenone # Possible values are: + # 'stifmeasurementdisablenone', 'stifmeasurementdisableall' + # 'stifmeasurementplugin01', 'stifmeasurementplugin02', + # 'stifmeasurementplugin03', 'stifmeasurementplugin04', + # 'stifmeasurementplugin05' or 'stifbappeaprofiler' + +Timeout= 0 # Default timeout value for each test case. In milliseconds +#UITestingSupport= YES # Possible values: YES or NO +#SeparateProcesses= YES # Possible values: YES or NO (default: NO) +[End_Defaults] + +[New_Module] +ModuleName= testscripter +TestCaseFile= Z:\TestFramework\UnitconverterRFSPluginTestModule.cfg +[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Module configurations start +# Modules are added between module tags +# tags. Module name is specified after ModuleName= tag, like +# ModuleName= XXXXXXXXX +# Modules might have initialisation file, specified as +# IniFile= c:\testframework\YYYYYY +# Modules might have several configuration files, like +# TestCaseFile= c:\testframework\NormalCases.txt +# TestCaseFile= c:\testframework\SmokeCases.txt +# TestCaseFile= c:\testframework\ManualCases.txt + +# (TestCaseFile is synonym for old term ConfigFile) + +# Following case specifies demo module settings. Demo module +# does not read any settings from file, so tags +# IniFile and TestCaseFile are not used. +# In the simplest case it is enough to specify only the +# name of the test module when adding new test module + + + +# Load testmoduleXXX, optionally with initialization file and/or test case files +#[New_Module] +#ModuleName= testmodulexxx + +#TestModuleXXX used initialization file +#IniFile= c:\testframework\init.txt + +#TestModuleXXX used configuration file(s) +#TestCaseFile= c:\testframework\testcases1.cfg +#TestCaseFile= c:\testframework\testcases2.cfg +#TestCaseFile= c:\testframework\manualtestcases.cfg + +#[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set STIF logging overwrite parameters for Logger. +# Hardware and emulator environment logging path and styles can +# be configured from here to overwrite the Logger's implemented values. +# +# Settings description: +# - Indicates option for creation log directory/directories. If log directory/directories +# is/are not created by user they will make by software. +# + YES, Create log directory/directories if not allready exist. +# + NO, Log directory/directories not created. Only created one is used. +# +# - Overwrite emulator path setting. +# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined +# Logger's path 'D:\\LOGS\\Module\\' with those definition the path +# will be 'C:\LOGS\TestFramework\LOGS\Module\' +# +# - Overwrite emulator's logging format. +# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'. +# + HTML, Log file(s) will be html type(s), for example 'Module.html'. +# +# - Overwrited emulator logging output source. +# + FILE, Logging to file(s). +# + RDEBUG, Logging to using rdebug(s). +# +# - Overwrite hardware path setting (Same description as above in emulator path). +# - Overwrite hardware's logging format(Same description as above in emulator format). +# - Overwrite hardware's logging output source(Same description as above in emulator output). +# +# - File Creation Mode indicates file overwriting if file exist. +# + OVERWRITE, Overwrites if file(s) exist. +# + APPEND, Continue logging after the old logging information if file(s) exist. +# +# - Will thread id include to the log filename. +# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'. +# + NO, No thread id to log file(s), Example filename 'Module.txt'. +# +# - Will time stamps include the to log file. +# + YES, Time stamp added to each line in log file(s). Time stamp is +# for example'12.Nov.2003 115958 LOGGING INFO' +# + NO, No time stamp(s). +# +# - Will line breaks include to the log file. +# + YES, Each logging event includes line break and next log event is in own line. +# + NO, No line break(s). +# +# - Will event ranking include to the log file. +# + YES, Event ranking number added to each line in log file(s). Ranking number +# depends on environment's tics, for example(includes time stamp also) +# '012 12.Nov.2003 115958 LOGGING INFO' +# + NO, No event ranking. +# +# - Will write log file in unicode format. +# + YES, Log file will be written in unicode format +# + NO, Log will be written as normal, not unicode, file. +# + +[Logger_Defaults] + +#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#' +#NOTE: TestEngine and TestServer logging settings cannot change here + +#CreateLogDirectories= YES # Possible values: YES or NO + +#EmulatorBasePath= C:\LOGS\TestFramework\ +#EmulatorFormat= HTML # Possible values: TXT or HTML +#EmulatorOutput= FILE # Possible values: FILE or RDEBUG + +#HardwareBasePath= D:\LOGS\TestFramework\ +#HardwareFormat= HTML # Possible values: TXT or HTML +#HardwareOutput= FILE # Possible values: FILE or RDEBUG + +#FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +#ThreadIdToLogFile= YES # Possible values: YES or NO +#WithTimeStamp= YES # Possible values: YES or NO +#WithLineBreak= YES # Possible values: YES or NO +#WithEventRanking= YES # Possible values: YES or NO + +#FileUnicode= YES # Possible values: YES or NO +#AddTestCaseTitle= YES # Possible values: YES or NO +[End_Logger_Defaults] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set filters to be used by ConsoleUI. +# If you want to use filter with ConsoleUI, simply remove comments +# from section below and provide valid filter entries. +# Each filter line has to start with "filter= " keyword. +# Filter can contain special wildcard characters: +# * which stands for none or any literal; +# ? which stands for single character. +# Filters are not case-sensitive. + +#[Filters] +#filter= *math* +#filter= *radio* +#[End_Filters] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +# End of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/rom/UnitconverterRFSPluginTestModule.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/rom/UnitconverterRFSPluginTestModule.iby Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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 __UNITCONVERTERRFSPLUGINTESTMODULE_IBY__ +#define __UNITCONVERTERRFSPLUGINTESTMODULE_IBY__ + +file=ABI_DIR\BUILD_DIR\UnitconverterRFSPluginTestModule.dll SHARED_LIB_DIR\UnitconverterRFSPluginTestModule.dll + +data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini + +data=\epoc32\data\z\system\data\UnitconverterRFSPluginTestModule.cfg \testframework\UnitconverterRFSPluginTestModule.cfg + + + +#endif diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/src/UnitconverterRFSPluginTestModule.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/UnitconverterRFSPluginTestModule/src/UnitconverterRFSPluginTestModule.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,304 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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: This file contains testclass implementation. +* +*/ + +// INCLUDE FILES +#include +#include "UnitconverterRFSPluginTestModule.h" +#include +#include + +// EXTERNAL DATA STRUCTURES +//extern ?external_data; + +// EXTERNAL FUNCTION PROTOTYPES +//extern ?external_function( ?arg_type,?arg_type ); + +// CONSTANTS +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def + +// LOCAL CONSTANTS AND MACROS +//const ?type ?constant_var = ?constant; +//#define ?macro_name ?macro_def + +// MODULE DATA STRUCTURES +//enum ?declaration +//typedef ?declaration + +// LOCAL FUNCTION PROTOTYPES +//?type ?function_name( ?arg_type, ?arg_type ); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; + +// ============================= LOCAL FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// ?function_name ?description. +// ?description +// Returns: ?value_1: ?description +// ?value_n: ?description_line1 +// ?description_line2 +// ----------------------------------------------------------------------------- +// +/* +?type ?function_name( + ?arg_type arg, // ?description + ?arg_type arg) // ?description + { + + ?code // ?comment + + // ?comment + ?code + } +*/ + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CUnitconverterRFSPluginTestModule::CUnitconverterRFSPluginTestModule +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CUnitconverterRFSPluginTestModule::CUnitconverterRFSPluginTestModule( + CTestModuleIf& aTestModuleIf ): + CScriptBase( aTestModuleIf ) + { + } + +// ----------------------------------------------------------------------------- +// CUnitconverterRFSPluginTestModule::ConstructL +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CUnitconverterRFSPluginTestModule::ConstructL() + { + //Read logger settings to check whether test case name is to be + //appended to log file name. + RSettingServer settingServer; + TInt ret = settingServer.Connect(); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Struct to StifLogger settigs. + TLoggerSettings loggerSettings; + // Parse StifLogger defaults from STIF initialization file. + ret = settingServer.GetLoggerSettings(loggerSettings); + if(ret != KErrNone) + { + User::Leave(ret); + } + // Close Setting server session + settingServer.Close(); + + TFileName logFileName; + + if(loggerSettings.iAddTestCaseTitle) + { + TName title; + TestModuleIf().GetTestCaseTitleL(title); + logFileName.Format(KUnitconverterRFSPluginTestModuleLogFileWithTitle, &title); + } + else + { + logFileName.Copy(KUnitconverterRFSPluginTestModuleLogFile); + } + + iLog = CStifLogger::NewL( KUnitconverterRFSPluginTestModuleLogPath, + logFileName, + CStifLogger::ETxt, + CStifLogger::EFile, + EFalse ); + + SendTestClassVersion(); + } + +// ----------------------------------------------------------------------------- +// CUnitconverterRFSPluginTestModule::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CUnitconverterRFSPluginTestModule* CUnitconverterRFSPluginTestModule::NewL( + CTestModuleIf& aTestModuleIf ) + { + CUnitconverterRFSPluginTestModule* self = new (ELeave) CUnitconverterRFSPluginTestModule( aTestModuleIf ); + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + + return self; + + } + +// ----------------------------------------------------------------------------- +// CUnitconverterRFSPluginTestModule::Delete +// Delete here all resources allocated and opened from test methods. +// Called from destructor. +// ----------------------------------------------------------------------------- +// +void CUnitconverterRFSPluginTestModule::Delete() + { + + } + +// Destructor +CUnitconverterRFSPluginTestModule::~CUnitconverterRFSPluginTestModule() + { + + // Delete resources allocated from test methods + Delete(); + + delete iPlugin; + REComSession::FinalClose(); + + // Delete logger + delete iLog; + + } + +//----------------------------------------------------------------------------- +// CUnitconverterRFSPluginTestModule::SendTestClassVersion +// Method used to send version of test class +//----------------------------------------------------------------------------- +// +void CUnitconverterRFSPluginTestModule::SendTestClassVersion() + { + TVersion moduleVersion; + moduleVersion.iMajor = TEST_CLASS_VERSION_MAJOR; + moduleVersion.iMinor = TEST_CLASS_VERSION_MINOR; + moduleVersion.iBuild = TEST_CLASS_VERSION_BUILD; + + TFileName moduleName; + moduleName = _L("UnitconverterRFSPluginTestModule.dll"); + + TBool newVersionOfMethod = ETrue; + TestModuleIf().SendTestModuleVersion(moduleVersion, moduleName, newVersionOfMethod); + } + +// ----------------------------------------------------------------------------- +// CUnitconverterRFSPluginTestModule::RunMethodL +// Run specified method. Contains also table of test mothods and their names. +// ----------------------------------------------------------------------------- +// +TInt CUnitconverterRFSPluginTestModule::RunMethodL( + CStifItemParser& aItem ) + { + + static TStifFunctionInfo const KFunctions[] = + { + // Copy this line for every implemented function. + // First string is the function name used in TestScripter script file. + // Second is the actual implementation member function. + ENTRY( "CreatePlugin", CUnitconverterRFSPluginTestModule::CreatePlugin ), + ENTRY( "DestroyPlugin", CUnitconverterRFSPluginTestModule::DestroyPlugin ), + ENTRY( "RestoreFactorySettings", CUnitconverterRFSPluginTestModule::RestoreFactorySettings ), + ENTRY( "GetScript", CUnitconverterRFSPluginTestModule::GetScript ), + ENTRY( "ExecuteCustomCommand", CUnitconverterRFSPluginTestModule::ExecuteCustomCommand ), + //ADD NEW ENTRY HERE + // [test cases entries] - Do not remove + + }; + + const TInt count = sizeof( KFunctions ) / + sizeof( TStifFunctionInfo ); + + return RunInternalL( KFunctions, count, aItem ); + + } + +TInt CUnitconverterRFSPluginTestModule::CreatePlugin(CStifItemParser& /*aItem */) + { + STIF_ASSERT_NOT_LEAVES(iPlugin = CRFSPlugin::NewL( TUid::Uid( 0x2000F8B5 ) ) ); + STIF_ASSERT_NOT_NULL( iPlugin ); + + return KErrNone; + + } +TInt CUnitconverterRFSPluginTestModule::DestroyPlugin(CStifItemParser& /*aItem*/ ) + { + delete iPlugin; + iPlugin = NULL; + + return KErrNone; + } + +TInt CUnitconverterRFSPluginTestModule::RestoreFactorySettings(CStifItemParser& /*aItem*/ ) + { + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( ENormalRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EDeepRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( EInitRfs ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->RestoreFactorySettingsL( static_cast( 100 ) ) ); + return KErrNone; + } + +TInt CUnitconverterRFSPluginTestModule::GetScript(CStifItemParser& /*aItem*/ ) + { + TBuf<256> path; + //TBuf<256> buf; + //buf.Copy(KExpectedScript); + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( ENormalRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EDeepRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( EInitRfs, path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + STIF_ASSERT_NOT_LEAVES( iPlugin->GetScriptL( static_cast( 100 ), path ) ); + RDebug::Print(_L( "Script = '%S'"), &path ); + //STIF_ASSERT_EQUALS( buf, path ); + + return KErrNone; + } + +TInt CUnitconverterRFSPluginTestModule::ExecuteCustomCommand(CStifItemParser& /*aItem*/ ) + { + TBuf<256> param1( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( ENormalRfs, param1 ) ); + TBuf<1> param2( KNullDesC ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EDeepRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( EInitRfs, param2 ) ); + STIF_ASSERT_NOT_LEAVES( iPlugin->ExecuteCustomCommandL( static_cast( 100 ), param2 ) ); + return KErrNone; + } + +// ========================== OTHER EXPORTED FUNCTIONS ========================= + +// ----------------------------------------------------------------------------- +// LibEntryL is a polymorphic Dll entry point. +// Returns: CScriptBase: New CScriptBase derived object +// ----------------------------------------------------------------------------- +// +EXPORT_C CScriptBase* LibEntryL( + CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework + { + + return ( CScriptBase* ) CUnitconverterRFSPluginTestModule::NewL( aTestModuleIf ); + + } + +// End of File diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/group/bld.inf --- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/group/bld.inf Thu Sep 02 20:36:53 2010 +0300 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/group/bld.inf Fri Sep 17 08:30:44 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -23,7 +23,12 @@ PRJ_TESTEXPORTS ../init/msgcentrerfsplugintest.ini /epoc32/winscw/c/testframework/testframework.ini +../init/msgcentrerfsplugintest.ini /epoc32/data/z/system/data/TestFramework.ini + ../conf/msgcentrerfsplugintest.cfg /epoc32/winscw/c/testframework/msgcentrerfsplugintest.cfg +../conf/msgcentrerfsplugintest.cfg /epoc32/data/z/system/data/msgcentrerfsplugintest.cfg + +../rom/msgcentrerfsplugintest.iby CORE_MW_LAYER_IBY_EXPORT_PATH(msgcentrerfsplugintest.iby) PRJ_TESTMMPFILES msgcentrerfsplugintest.mmp diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/init/msgcentrerfsplugintest.ini --- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/init/msgcentrerfsplugintest.ini Thu Sep 02 20:36:53 2010 +0300 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/init/msgcentrerfsplugintest.ini Fri Sep 17 08:30:44 2010 +0300 @@ -91,7 +91,7 @@ [New_Module] ModuleName= TestScripter -TestCaseFile= c:\testframework\msgcentrerfsplugintest.cfg +TestCaseFile= Z:\testframework\msgcentrerfsplugintest.cfg [End_Module] diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/rom/msgcentrerfsplugintest.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/rom/msgcentrerfsplugintest.iby Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "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 __MSGCENTRERFSPLUGINTEST_IBY__ +#define __MSGCENTRERFSPLUGINTEST_IBY__ + +file=ABI_DIR\BUILD_DIR\msgcentrerfsplugintest.dll SHARED_LIB_DIR\msgcentrerfsplugintest.dll + +//data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini + +data=\epoc32\data\z\system\data\msgcentrerfsplugintest.cfg \testframework\msgcentrerfsplugintest.cfg + + + +#endif diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/conf/secureformattertest.cfg --- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/conf/secureformattertest.cfg Thu Sep 02 20:36:53 2010 +0300 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/conf/secureformattertest.cfg Fri Sep 17 08:30:44 2010 +0300 @@ -20,196 +20,224 @@ [Test] title Empty exclude list - delete everything create secureformattertest testcase -testcase RunTestL c:\testdata\testspec_001.txt c:\testdata\testexclude_001.txt +//testcase RunTestL c:\testdata\testspec_001.txt c:\testdata\testexclude_001.txt +testcase RunTestL z:\testdata\testspec_001.txt z:\testdata\testexclude_001.txt delete testcase [Endtest] [Test] title No exclude list - delete everything create secureformattertest testcase -testcase RunTestL c:\testdata\testspec_001.txt +//testcase RunTestL c:\testdata\testspec_001.txt +testcase RunTestL z:\testdata\testspec_001.txt delete testcase [Endtest] [Test] title Protect one directory but not its contents create secureformattertest testcase -testcase RunTestL c:\testdata\testspec_002.txt c:\testdata\testexclude_002.txt +//testcase RunTestL c:\testdata\testspec_002.txt c:\testdata\testexclude_002.txt +testcase RunTestL z:\testdata\testspec_002.txt z:\testdata\testexclude_002.txt delete testcase [Endtest] [Test] title Protect some subdirectories create secureformattertest testcase -testcase RunTestL c:\testdata\testspec_003.txt c:\testdata\testexclude_003.txt +//testcase RunTestL c:\testdata\testspec_003.txt c:\testdata\testexclude_003.txt +testcase RunTestL z:\testdata\testspec_003.txt z:\testdata\testexclude_003.txt delete testcase [Endtest] [Test] title Protect a directory with all its content create secureformattertest testcase -testcase RunTestL c:\testdata\testspec_004.txt c:\testdata\testexclude_004.txt +//testcase RunTestL c:\testdata\testspec_004.txt c:\testdata\testexclude_004.txt +testcase RunTestL z:\testdata\testspec_004.txt z:\testdata\testexclude_004.txt delete testcase [Endtest] [Test] title Protect files by file extension create secureformattertest testcase -testcase RunTestL c:\testdata\testspec_005.txt c:\testdata\testexclude_005.txt +//testcase RunTestL c:\testdata\testspec_005.txt c:\testdata\testexclude_005.txt +testcase RunTestL z:\testdata\testspec_005.txt z:\testdata\testexclude_005.txt delete testcase [Endtest] [Test] title Protect specific files - directory not explicitly protected create secureformattertest testcase -testcase RunTestL c:\testdata\testspec_006.txt c:\testdata\testexclude_006.txt +//testcase RunTestL c:\testdata\testspec_006.txt c:\testdata\testexclude_006.txt +testcase RunTestL z:\testdata\testspec_006.txt z:\testdata\testexclude_006.txt delete testcase [Endtest] [Test] title Protect specific files - directory is explicitly protected create secureformattertest testcase -testcase RunTestL c:\testdata\testspec_007.txt c:\testdata\testexclude_007.txt +//testcase RunTestL c:\testdata\testspec_007.txt c:\testdata\testexclude_007.txt +testcase RunTestL z:\testdata\testspec_007.txt z:\testdata\testexclude_007.txt delete testcase [Endtest] [Test] title Protect all files in a folder - not subfolders create secureformattertest testcase -testcase RunTestL c:\testdata\testspec_008.txt c:\testdata\testexclude_008.txt +//testcase RunTestL c:\testdata\testspec_008.txt c:\testdata\testexclude_008.txt +testcase RunTestL z:\testdata\testspec_008.txt z:\testdata\testexclude_008.txt delete testcase [Endtest] [Test] title Protect files by pattern 1 create secureformattertest testcase -testcase RunTestL c:\testdata\testspec_009.txt c:\testdata\testexclude_009.txt +//testcase RunTestL c:\testdata\testspec_009.txt c:\testdata\testexclude_009.txt +testcase RunTestL z:\testdata\testspec_009.txt z:\testdata\testexclude_009.txt delete testcase [Endtest] [Test] title Protect files by pattern 2 create secureformattertest testcase -testcase RunTestL c:\testdata\testspec_010.txt c:\testdata\testexclude_010.txt +//testcase RunTestL c:\testdata\testspec_010.txt c:\testdata\testexclude_010.txt +testcase RunTestL z:\testdata\testspec_010.txt z:\testdata\testexclude_010.txt delete testcase [Endtest] [Test] title Protect files by pattern 3 create secureformattertest testcase -testcase RunTestL c:\testdata\testspec_011.txt c:\testdata\testexclude_011.txt +//testcase RunTestL c:\testdata\testspec_011.txt c:\testdata\testexclude_011.txt +testcase RunTestL z:\testdata\testspec_011.txt z:\testdata\testexclude_011.txt delete testcase [Endtest] [Test] title Protect everything on drive create secureformattertest testcase -testcase RunTestL c:\testdata\testspec_012.txt c:\testdata\testexclude_012.txt +//testcase RunTestL c:\testdata\testspec_012.txt c:\testdata\testexclude_012.txt +testcase RunTestL z:\testdata\testspec_012.txt z:\testdata\testexclude_012.txt delete testcase [Endtest] [Test] title Special case - file open 1 create secureformattertest testcase -testcase RunSpecialTestFileOpenL c:\testdata\testspec_013.txt c:\testdata\testexclude_013.txt d:\special.txt KReadShareExclusive +//testcase RunSpecialTestFileOpenL c:\testdata\testspec_013.txt c:\testdata\testexclude_013.txt d:\special.txt KReadShareExclusive +testcase RunSpecialTestFileOpenL z:\testdata\testspec_013.txt z:\testdata\testexclude_013.txt d:\special.txt KReadShareExclusive delete testcase [Endtest] [Test] title Special case - file open 2 create secureformattertest testcase -testcase RunSpecialTestFileOpenL c:\testdata\testspec_013.txt c:\testdata\testexclude_013.txt d:\special.txt KReadShareReadersOnly +//testcase RunSpecialTestFileOpenL c:\testdata\testspec_013.txt c:\testdata\testexclude_013.txt d:\special.txt KReadShareReadersOnly +testcase RunSpecialTestFileOpenL z:\testdata\testspec_013.txt z:\testdata\testexclude_013.txt d:\special.txt KReadShareReadersOnly delete testcase [Endtest] [Test] title Special case - file open 3 create secureformattertest testcase -testcase RunSpecialTestFileOpenL c:\testdata\testspec_013.txt c:\testdata\testexclude_013.txt d:\special.txt KReadShareAny +//testcase RunSpecialTestFileOpenL c:\testdata\testspec_013.txt c:\testdata\testexclude_013.txt d:\special.txt KReadShareAny +testcase RunSpecialTestFileOpenL z:\testdata\testspec_013.txt z:\testdata\testexclude_013.txt d:\special.txt KReadShareAny delete testcase [Endtest] [Test] title Special case - file open 4 create secureformattertest testcase -testcase RunSpecialTestFileOpenL c:\testdata\testspec_013.txt c:\testdata\testexclude_013.txt d:\special.txt KReadShareReadersOrWriters +//testcase RunSpecialTestFileOpenL c:\testdata\testspec_013.txt c:\testdata\testexclude_013.txt d:\special.txt KReadShareReadersOrWriters +testcase RunSpecialTestFileOpenL z:\testdata\testspec_013.txt z:\testdata\testexclude_013.txt d:\special.txt KReadShareReadersOrWriters delete testcase [Endtest] [Test] title Special case - file open 5 create secureformattertest testcase -testcase RunSpecialTestFileOpenL c:\testdata\testspec_013.txt c:\testdata\testexclude_013.txt d:\special.txt KWriteShareExclusive +//testcase RunSpecialTestFileOpenL c:\testdata\testspec_013.txt c:\testdata\testexclude_013.txt d:\special.txt KWriteShareExclusive +testcase RunSpecialTestFileOpenL z:\testdata\testspec_013.txt z:\testdata\testexclude_013.txt d:\special.txt KWriteShareExclusive delete testcase [Endtest] [Test] title Special case - file open 6 create secureformattertest testcase -testcase RunSpecialTestFileOpenL c:\testdata\testspec_013.txt c:\testdata\testexclude_013.txt d:\special.txt KWriteShareAny +//testcase RunSpecialTestFileOpenL c:\testdata\testspec_013.txt c:\testdata\testexclude_013.txt d:\special.txt KWriteShareAny +testcase RunSpecialTestFileOpenL z:\testdata\testspec_013.txt z:\testdata\testexclude_013.txt d:\special.txt KWriteShareAny delete testcase [Endtest] [Test] title Special case - file open 7 create secureformattertest testcase -testcase RunSpecialTestFileOpenL c:\testdata\testspec_013.txt c:\testdata\testexclude_013.txt d:\special.txt KWriteShareReadersOrWriters +//testcase RunSpecialTestFileOpenL c:\testdata\testspec_013.txt c:\testdata\testexclude_013.txt d:\special.txt KWriteShareReadersOrWriters +testcase RunSpecialTestFileOpenL z:\testdata\testspec_013.txt z:\testdata\testexclude_013.txt d:\special.txt KWriteShareReadersOrWriters delete testcase [Endtest] [Test] title Special case - file attributes 1 create secureformattertest testcase -testcase RunSpecialTestAttributesL c:\testdata\testspec_014.txt c:\testdata\testexclude_014.txt d:\special.txt KEntryAttArchive +//testcase RunSpecialTestAttributesL c:\testdata\testspec_014.txt c:\testdata\testexclude_014.txt d:\special.txt KEntryAttArchive +testcase RunSpecialTestAttributesL z:\testdata\testspec_014.txt z:\testdata\testexclude_014.txt d:\special.txt KEntryAttArchive delete testcase [Endtest] [Test] title Special case - file attributes 2 create secureformattertest testcase -testcase RunSpecialTestAttributesL c:\testdata\testspec_014.txt c:\testdata\testexclude_014.txt d:\special.txt KEntryAttReadOnly +//testcase RunSpecialTestAttributesL c:\testdata\testspec_014.txt c:\testdata\testexclude_014.txt d:\special.txt KEntryAttReadOnly +testcase RunSpecialTestAttributesL z:\testdata\testspec_014.txt z:\testdata\testexclude_014.txt d:\special.txt KEntryAttReadOnly delete testcase [Endtest] [Test] title Special case - file attributes 3 create secureformattertest testcase -testcase RunSpecialTestAttributesL c:\testdata\testspec_014.txt c:\testdata\testexclude_014.txt d:\special.txt KEntryAttHidden +//testcase RunSpecialTestAttributesL c:\testdata\testspec_014.txt c:\testdata\testexclude_014.txt d:\special.txt KEntryAttHidden +testcase RunSpecialTestAttributesL z:\testdata\testspec_014.txt z:\testdata\testexclude_014.txt d:\special.txt KEntryAttHidden delete testcase [Endtest] [Test] title Special case - file attributes 4 create secureformattertest testcase -testcase RunSpecialTestAttributesL c:\testdata\testspec_014.txt c:\testdata\testexclude_014.txt d:\special.txt KEntryAttSystem +//testcase RunSpecialTestAttributesL c:\testdata\testspec_014.txt c:\testdata\testexclude_014.txt d:\special.txt KEntryAttSystem +testcase RunSpecialTestAttributesL z:\testdata\testspec_014.txt z:\testdata\testexclude_014.txt d:\special.txt KEntryAttSystem delete testcase [Endtest] [Test] title Special case - directory attributes 1 create secureformattertest testcase -testcase RunSpecialTestAttributesL c:\testdata\testspec_015.txt c:\testdata\testexclude_015.txt d:\special\ KEntryAttArchive +//testcase RunSpecialTestAttributesL c:\testdata\testspec_015.txt c:\testdata\testexclude_015.txt d:\special\ KEntryAttArchive +testcase RunSpecialTestAttributesL z:\testdata\testspec_015.txt z:\testdata\testexclude_015.txt d:\special\ KEntryAttArchive delete testcase [Endtest] [Test] title Special case - directory attributes 2 create secureformattertest testcase -testcase RunSpecialTestAttributesL c:\testdata\testspec_015.txt c:\testdata\testexclude_015.txt d:\special\ KEntryAttReadOnly +//testcase RunSpecialTestAttributesL c:\testdata\testspec_015.txt c:\testdata\testexclude_015.txt d:\special\ KEntryAttReadOnly +testcase RunSpecialTestAttributesL z:\testdata\testspec_015.txt z:\testdata\testexclude_015.txt d:\special\ KEntryAttReadOnly delete testcase [Endtest] [Test] title Special case - directory attributes 3 create secureformattertest testcase -testcase RunSpecialTestAttributesL c:\testdata\testspec_015.txt c:\testdata\testexclude_015.txt d:\special\ KEntryAttHidden +//testcase RunSpecialTestAttributesL c:\testdata\testspec_015.txt c:\testdata\testexclude_015.txt d:\special\ KEntryAttHidden +testcase RunSpecialTestAttributesL z:\testdata\testspec_015.txt z:\testdata\testexclude_015.txt d:\special\ KEntryAttHidden delete testcase [Endtest] [Test] title Special case - directory attributes 4 create secureformattertest testcase -testcase RunSpecialTestAttributesL c:\testdata\testspec_015.txt c:\testdata\testexclude_015.txt d:\special\ KEntryAttSystem +//testcase RunSpecialTestAttributesL c:\testdata\testspec_015.txt c:\testdata\testexclude_015.txt d:\special\ KEntryAttSystem +testcase RunSpecialTestAttributesL z:\testdata\testspec_015.txt z:\testdata\testexclude_015.txt d:\special\ KEntryAttSystem delete testcase [Endtest] @@ -228,7 +256,8 @@ [Test] title App specific case 1 create secureformattertest testcase -testcase RunAppSpecialTestL c:\testdata\app_spec_001.txt +//testcase RunAppSpecialTestL c:\testdata\app_spec_001.txt +testcase RunAppSpecialTestL z:\testdata\app_spec_001.txt delete testcase [Endtest] @@ -238,7 +267,8 @@ [Test] title App specific case 2 create secureformattertest testcase -testcase RunAppSpecialTestL c:\testdata\app_spec_002.txt c:\testdata\app_spec_001.exc +//testcase RunAppSpecialTestL c:\testdata\app_spec_002.txt c:\testdata\app_spec_001.exc +testcase RunAppSpecialTestL z:\testdata\app_spec_002.txt Z:\private\102073ea\excludes\app_spec_001.exc delete testcase [Endtest] @@ -248,7 +278,8 @@ [Test] title App specific case 3 create secureformattertest testcase -testcase RunAppSpecialTestL c:\testdata\app_spec_003.txt c:\testdata\app_spec_002.exc +//testcase RunAppSpecialTestL c:\testdata\app_spec_003.txt c:\testdata\app_spec_002.exc +testcase RunAppSpecialTestL z:\testdata\app_spec_003.txt Z:\private\102073ea\excludes\app_spec_002.exc delete testcase [Endtest] @@ -260,7 +291,8 @@ [Test] title App specific case 4 create secureformattertest testcase -testcase RunAppSpecialTestL c:\testdata\app_spec_004.txt c:\testdata\app_spec_003.exc c:\testdata\app_spec_004.exc +//testcase RunAppSpecialTestL c:\testdata\app_spec_004.txt c:\testdata\app_spec_003.exc c:\testdata\app_spec_004.exc +testcase RunAppSpecialTestL z:\testdata\app_spec_004.txt Z:\private\102073ea\excludes\app_spec_003.exc Z:\private\102073ea\excludes\app_spec_004.exc delete testcase [Endtest] @@ -272,7 +304,8 @@ [Test] title App specific case 5 create secureformattertest testcase -testcase RunAppSpecialTestL c:\testdata\app_spec_005.txt c:\testdata\app_spec_005.exc +//testcase RunAppSpecialTestL c:\testdata\app_spec_005.txt c:\testdata\app_spec_005.exc +testcase RunAppSpecialTestL z:\testdata\app_spec_005.txt Z:\private\102073ea\excludes\app_spec_005.exc delete testcase [Endtest] @@ -282,7 +315,8 @@ [Test] title App specific case 6 create secureformattertest testcase -testcase RunAppSpecialReplaceTestL c:\testdata\app_spec_006.txt c:\testdata\app_spec_006.exc c:\testdata\app_spec_007.exc +//testcase RunAppSpecialReplaceTestL c:\testdata\app_spec_006.txt c:\testdata\app_spec_006.exc c:\testdata\app_spec_007.exc +testcase RunAppSpecialReplaceTestL z:\testdata\app_spec_006.txt Z:\private\102073ea\excludes\app_spec_006.exc Z:\private\102073ea\excludes\app_spec_007.exc delete testcase [Endtest] @@ -293,7 +327,8 @@ [Test] title App specific case 7 create secureformattertest testcase -testcase RunAppSpecialTestL c:\testdata\app_spec_007.txt c:\testdata\app_spec_dummy.exc +//testcase RunAppSpecialTestL c:\testdata\app_spec_007.txt c:\testdata\app_spec_dummy.exc +testcase RunAppSpecialTestL z:\testdata\app_spec_007.txt Z:\private\102073ea\excludes\app_spec_dummy.exc delete testcase [Endtest] diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/group/bld.inf --- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/group/bld.inf Thu Sep 02 20:36:53 2010 +0300 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/group/bld.inf Fri Sep 17 08:30:44 2010 +0300 @@ -27,10 +27,11 @@ secureformattertest.mmp PRJ_TESTEXPORTS -../rom/secureformattertest.iby CORE_MW_LAYER_IBY_EXPORT_PATH(secureformattertest.iby) +//../rom/secureformattertest.iby CORE_MW_LAYER_IBY_EXPORT_PATH(secureformattertest.iby) -../init/secureformattertest.ini /epoc32/winscw/c/TestFramework/secureformattertest.ini -../conf/secureformattertest.cfg /epoc32/winscw/c/TestFramework/secureformattertest.cfg +//../init/TestFramework.ini /epoc32/winscw/c/TestFramework/TestFramework.ini +//../conf/secureformattertest.cfg /epoc32/winscw/c/TestFramework/secureformattertest.cfg + ../data/testexclude_001.txt /epoc32/winscw/c/testdata/testexclude_001.txt ../data/testexclude_002.txt /epoc32/winscw/c/testdata/testexclude_002.txt ../data/testexclude_003.txt /epoc32/winscw/c/testdata/testexclude_003.txt @@ -72,6 +73,11 @@ ../data/app_spec_rom_dummy.exc /epoc32/data/Z/private/102073ea/excludes/app_spec_dummy.exc ../data/app_spec_rom_dummy.exc /epoc32/release/winscw/udeb/z/private/102073ea/excludes/app_spec_dummy.exc ../data/app_spec_rom_dummy.exc /epoc32/release/winscw/urel/z/private/102073ea/excludes/app_spec_dummy.exc +../data/app_spec_003.exc /epoc32/data/Z/private/102073ea/excludes/app_spec_003.exc +../data/app_spec_004.exc /epoc32/data/Z/private/102073ea/excludes/app_spec_004.exc +../data/app_spec_005.exc /epoc32/data/Z/private/102073ea/excludes/app_spec_005.exc +../data/app_spec_006.exc /epoc32/data/Z/private/102073ea/excludes/app_spec_006.exc +../data/app_spec_007.exc /epoc32/data/Z/private/102073ea/excludes/app_spec_007.exc // Application specific test specs and exclude lists @@ -90,3 +96,61 @@ ../data/app_spec_005.txt /epoc32/winscw/c/testdata/app_spec_005.txt ../data/app_spec_006.txt /epoc32/winscw/c/testdata/app_spec_006.txt ../data/app_spec_007.txt /epoc32/winscw/c/testdata/app_spec_007.txt + +// Test exclude specific data exported to ROM drive +../data/testexclude_001.txt /epoc32/data/z/testdata/testexclude_001.txt +../data/testexclude_002.txt /epoc32/data/z/testdata/testexclude_002.txt +../data/testexclude_003.txt /epoc32/data/z/testdata/testexclude_003.txt +../data/testexclude_004.txt /epoc32/data/z/testdata/testexclude_004.txt +../data/testexclude_005.txt /epoc32/data/z/testdata/testexclude_005.txt +../data/testexclude_006.txt /epoc32/data/z/testdata/testexclude_006.txt +../data/testexclude_007.txt /epoc32/data/z/testdata/testexclude_007.txt +../data/testexclude_008.txt /epoc32/data/z/testdata/testexclude_008.txt +../data/testexclude_009.txt /epoc32/data/z/testdata/testexclude_009.txt +../data/testexclude_010.txt /epoc32/data/z/testdata/testexclude_010.txt +../data/testexclude_011.txt /epoc32/data/z/testdata/testexclude_011.txt +../data/testexclude_012.txt /epoc32/data/z/testdata/testexclude_012.txt +../data/testexclude_013.txt /epoc32/data/z/testdata/testexclude_013.txt +../data/testexclude_014.txt /epoc32/data/z/testdata/testexclude_014.txt +../data/testexclude_015.txt /epoc32/data/z/testdata/testexclude_015.txt +../data/testspec_001.txt /epoc32/data/z/testdata/testspec_001.txt +../data/testspec_002.txt /epoc32/data/z/testdata/testspec_002.txt +../data/testspec_003.txt /epoc32/data/z/testdata/testspec_003.txt +../data/testspec_004.txt /epoc32/data/z/testdata/testspec_004.txt +../data/testspec_005.txt /epoc32/data/z/testdata/testspec_005.txt +../data/testspec_006.txt /epoc32/data/z/testdata/testspec_006.txt +../data/testspec_007.txt /epoc32/data/z/testdata/testspec_007.txt +../data/testspec_008.txt /epoc32/data/z/testdata/testspec_008.txt +../data/testspec_009.txt /epoc32/data/z/testdata/testspec_009.txt +../data/testspec_010.txt /epoc32/data/z/testdata/testspec_010.txt +../data/testspec_011.txt /epoc32/data/z/testdata/testspec_011.txt +../data/testspec_012.txt /epoc32/data/z/testdata/testspec_012.txt +../data/testspec_013.txt /epoc32/data/z/testdata/testspec_013.txt +../data/testspec_014.txt /epoc32/data/z/testdata/testspec_014.txt +../data/testspec_015.txt /epoc32/data/z/testdata/testspec_015.txt + +../data/app_spec_001.txt /epoc32/data/z/testdata/app_spec_001.txt +../data/app_spec_002.txt /epoc32/data/z/testdata/app_spec_002.txt +../data/app_spec_003.txt /epoc32/data/z/testdata/app_spec_003.txt +../data/app_spec_004.txt /epoc32/data/z/testdata/app_spec_004.txt +../data/app_spec_005.txt /epoc32/data/z/testdata/app_spec_005.txt +../data/app_spec_006.txt /epoc32/data/z/testdata/app_spec_006.txt +../data/app_spec_007.txt /epoc32/data/z/testdata/app_spec_007.txt + +PRJ_EXPORTS +// Specify the source file followed by its destination here +// copy will be used to copy the source file to its destination +// If there's no destination then the source file will be copied +// to the same name in \epoc32\include +// Example: +/* +\agnmodel\inc\AGMCOMON.H +*/ + +../init/TestFramework.ini /epoc32/winscw/c/TestFramework/TestFramework.ini +../init/TestFramework.ini /epoc32/data/z/system/data/TestFramework.ini + +../conf/secureformattertest.cfg /epoc32/winscw/c/TestFramework/secureformattertest.cfg +../conf/secureformattertest.cfg /epoc32/data/z/system/data/secureformattertest.cfg + +../rom/secureformattertest.iby CORE_MW_LAYER_IBY_EXPORT_PATH(secureformattertest.iby) \ No newline at end of file diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/group/secureformattertest.mmp --- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/group/secureformattertest.mmp Thu Sep 02 20:36:53 2010 +0300 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/group/secureformattertest.mmp Fri Sep 17 08:30:44 2010 +0300 @@ -41,3 +41,5 @@ LIBRARY stiftestinterface.lib MACRO __FUNC_TRACE__ + +UNPAGED diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/init/TestFramework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/init/TestFramework.ini Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,18 @@ +# This is STIFTestFramework initialization file +# Comment lines start with '#'-character. +# See STIF TestFramework users guide.doc for instructions + +[Engine_Defaults] +TestReportMode= FullReport # Possible values are: 'Summary', 'Environment', 'TestCases' or 'FullReport' +CreateTestReport= YES # Possible values: YES or NO +TestReportFilePath= E:\LOGS\TestFramework\ +TestReportFileName= TestReport +TestReportFormat= HTML # Possible values: TXT or HTML +TestReportOutput= FILE # Possible values: FILE or RDEBUG +TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND +[End_Defaults] + +[New_Module] +ModuleName= TestScripter +TestCaseFile= c:\testframework\secureformattertest.cfg +[End_Module] diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/init/secureformattertest.ini --- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/init/secureformattertest.ini Thu Sep 02 20:36:53 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -# This is STIFTestFramework initialization file -# Comment lines start with '#'-character. -# See STIF TestFramework users guide.doc for instructions - -[Engine_Defaults] -TestReportMode= FullReport # Possible values are: 'Summary', 'Environment', 'TestCases' or 'FullReport' -CreateTestReport= YES # Possible values: YES or NO -TestReportFilePath= E:\LOGS\TestFramework\ -TestReportFileName= TestReport -TestReportFormat= HTML # Possible values: TXT or HTML -TestReportOutput= FILE # Possible values: FILE or RDEBUG -TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND -[End_Defaults] - -[New_Module] -ModuleName= TestScripter -TestCaseFile= c:\testframework\secureformattertest.cfg -[End_Module] diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/rom/secureformattertest.iby --- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/rom/secureformattertest.iby Thu Sep 02 20:36:53 2010 +0300 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/rom/secureformattertest.iby Fri Sep 17 08:30:44 2010 +0300 @@ -20,6 +20,50 @@ data=DATAZ_\private\102073ea\excludes\app_spec_001.exc private\102073ea\excludes\app_spec_001.exc data=DATAZ_\private\102073ea\excludes\app_spec_002.exc private\102073ea\excludes\app_spec_002.exc +data=DATAZ_\private\102073ea\excludes\app_spec_003.exc private\102073ea\excludes\app_spec_003.exc +data=DATAZ_\private\102073ea\excludes\app_spec_004.exc private\102073ea\excludes\app_spec_004.exc +data=DATAZ_\private\102073ea\excludes\app_spec_005.exc private\102073ea\excludes\app_spec_005.exc +data=DATAZ_\private\102073ea\excludes\app_spec_006.exc private\102073ea\excludes\app_spec_006.exc +data=DATAZ_\private\102073ea\excludes\app_spec_007.exc private\102073ea\excludes\app_spec_007.exc + data=DATAZ_\private\102073ea\excludes\app_spec_dummy.exc private\102073ea\excludes\app_spec_dummy.exc +file=ABI_DIR\BUILD_DIR\secureformattertest.dll SHARED_LIB_DIR\secureformattertest.dll +file=ABI_DIR\BUILD_DIR\testdatacreator.exe sys\bin\testdatacreator.exe + +//data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini + +data=\epoc32\data\z\system\data\secureformattertest.cfg \testframework\secureformattertest.cfg + +data = DATAZ_\testdata\testexclude_001.txt testdata\testexclude_001.txt +data = DATAZ_\testdata\testexclude_002.txt testdata\testexclude_002.txt +data = DATAZ_\testdata\testexclude_003.txt testdata\testexclude_003.txt +data = DATAZ_\testdata\testexclude_004.txt testdata\testexclude_004.txt +data = DATAZ_\testdata\testexclude_005.txt testdata\testexclude_005.txt +data = DATAZ_\testdata\testexclude_006.txt testdata\testexclude_006.txt +data = DATAZ_\testdata\testexclude_007.txt testdata\testexclude_007.txt +data = DATAZ_\testdata\testexclude_008.txt testdata\testexclude_008.txt +data = DATAZ_\testdata\testexclude_009.txt testdata\testexclude_009.txt +data = DATAZ_\testdata\testexclude_010.txt testdata\testexclude_010.txt +data = DATAZ_\testdata\testexclude_011.txt testdata\testexclude_011.txt +data = DATAZ_\testdata\testexclude_012.txt testdata\testexclude_012.txt +data = DATAZ_\testdata\testexclude_013.txt testdata\testexclude_013.txt +data = DATAZ_\testdata\testexclude_014.txt testdata\testexclude_014.txt +data = DATAZ_\testdata\testexclude_015.txt testdata\testexclude_015.txt +data = DATAZ_\testdata\testspec_001.txt testdata\testspec_001.txt +data = DATAZ_\testdata\testspec_002.txt testdata\testspec_002.txt +data = DATAZ_\testdata\testspec_003.txt testdata\testspec_003.txt +data = DATAZ_\testdata\testspec_004.txt testdata\testspec_004.txt +data = DATAZ_\testdata\testspec_005.txt testdata\testspec_005.txt +data = DATAZ_\testdata\testspec_006.txt testdata\testspec_006.txt +data = DATAZ_\testdata\testspec_007.txt testdata\testspec_007.txt +data = DATAZ_\testdata\testspec_008.txt testdata\testspec_008.txt +data = DATAZ_\testdata\testspec_009.txt testdata\testspec_009.txt +data = DATAZ_\testdata\testspec_010.txt testdata\testspec_010.txt +data = DATAZ_\testdata\testspec_011.txt testdata\testspec_011.txt +data = DATAZ_\testdata\testspec_012.txt testdata\testspec_012.txt +data = DATAZ_\testdata\testspec_013.txt testdata\testspec_013.txt +data = DATAZ_\testdata\testspec_014.txt testdata\testspec_014.txt +data = DATAZ_\testdata\testspec_015.txt testdata\testspec_015.txt + #endif //__SECUREFORMATTERTEST_IBY__ diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/src/secureformattertest.cpp --- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/src/secureformattertest.cpp Thu Sep 02 20:36:53 2010 +0300 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/src/secureformattertest.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -25,6 +25,7 @@ // Drive to be cleaned in the tests _LIT( KRootDir, "d:\\" ); +_LIT( KDefaultExcludeListPath,"d:\\private\\100059C9\\" ); // Default exclude list location _LIT( KDefaultExcludeList, "d:\\private\\100059C9\\excludelist.txt" ); // String passed to secureformatter in case default exclude list not used @@ -65,8 +66,10 @@ process.Resume(); User::WaitForRequest( status ); ERROR( status.Int(), "secure formatter failed" ); - User::LeaveIfError( status.Int() ); - + //User::LeaveIfError( status.Int() ); + + //RDebug::Print(_L("RunSecureFormatterL : before process.Kill(KErrNone)")); + //process.Kill(KErrNone); CleanupStack::PopAndDestroy( &process ); CleanupStack::PopAndDestroy( arg ); } @@ -108,8 +111,10 @@ process.Resume(); User::WaitForRequest( status ); ERROR( status.Int(), "testdatacreator.exe failed" ); - User::LeaveIfError( status.Int() ); + //User::LeaveIfError( status.Int() ); + //RDebug::Print(_L("RunTestDataCreatorL : before process.Kill(KErrNone)")); + //process.Kill(KErrNone); CleanupStack::PopAndDestroy( &process ); } @@ -249,7 +254,26 @@ void CSecureFormatterTest::ConstructL() { FUNC_LOG; + RFs fs; + TInt err = fs.Connect(); + RDebug::Print(_L("Connect to file server returned with = %d"),err); + User::LeaveIfError( err ); + CleanupClosePushL( fs ); + err = fs.MkDirAll(KAppSpecificExcludeListFolder); + RDebug::Print(_L("fs.MkDirAll(KAppSpecificExcludeListFolder) err = %d"), err); + if( err != KErrNone && err != KErrAlreadyExists ) + { + User::Leave( err ); + } + + err = fs.MkDirAll(KDefaultExcludeListPath); + RDebug::Print(_L("fs.MkDirAll(KDefaultExcludeListPath)= %d"), err); + if( err != KErrNone && err != KErrAlreadyExists ) + { + User::Leave( err ); + } + CleanupStack::PopAndDestroy( &fs ); RunTestDataCreatorL( KNullDesC ); // Run one time to stabilize request count } @@ -441,6 +465,7 @@ do { + err = aItem.GetNextString( name ); if ( err == KErrNone ) { diff -r 8a530a83576a -r dcd4152cfe55 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/testdatacreator/src/filecreator.cpp --- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/testdatacreator/src/filecreator.cpp Thu Sep 02 20:36:53 2010 +0300 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/testdatacreator/src/filecreator.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -66,7 +66,7 @@ RFile file; TInt err = file.Replace( iFs, aName, EFileWrite ); ERROR_1( err, "Failed to create file %S", &aName ); - User::LeaveIfError( err ); + //User::LeaveIfError( err ); CleanupClosePushL( file ); TInt blockSize = iWriteBuf->Size(); diff -r 8a530a83576a -r dcd4152cfe55 openenvutils/commandshell/shell/commands/ps/src/main.cpp --- a/openenvutils/commandshell/shell/commands/ps/src/main.cpp Thu Sep 02 20:36:53 2010 +0300 +++ b/openenvutils/commandshell/shell/commands/ps/src/main.cpp Fri Sep 17 08:30:44 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -259,13 +259,27 @@ if((fflag)) { if(rem<=(proc.FileName()).Length()+5) - Result.ReAlloc((proc.FileName()).Length()+Result.MaxLength()); + { + c = Result.ReAlloc((proc.FileName()).Length()+Result.MaxLength()); + if(c!=KErrNone) + { + printf("Error") ; + exit(1); + } + } Result.AppendFormat(_L(" [%s]"),(proc.FileName()).PtrZ()); } else { if(rem<=procname.Length()) - Result.ReAlloc(procname.Length()+Result.MaxLength()); + { + c = Result.ReAlloc(procname.Length()+Result.MaxLength()); + if(c!=KErrNone) + { + printf("Error") ; + exit(1); + } + } Result.Append(procname); } diff -r 8a530a83576a -r dcd4152cfe55 package_definition.xml --- a/package_definition.xml Thu Sep 02 20:36:53 2010 +0300 +++ b/package_definition.xml Fri Sep 17 08:30:44 2010 +0300 @@ -1,224 +1,351 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 8a530a83576a -r dcd4152cfe55 package_map.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/package_map.xml Fri Sep 17 08:30:44 2010 +0300 @@ -0,0 +1,1 @@ + diff -r 8a530a83576a -r dcd4152cfe55 sysresmonitoring/oommonitor/data/oomconfig.xml --- a/sysresmonitoring/oommonitor/data/oomconfig.xml Thu Sep 02 20:36:53 2010 +0300 +++ b/sysresmonitoring/oommonitor/data/oomconfig.xml Fri Sep 17 08:30:44 2010 +0300 @@ -1,5 +1,5 @@ - + @@ -128,7 +128,7 @@ - +