sl@0: // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // f32test\server\t_notify_mfs.cpp sl@0: // sl@0: // sl@0: sl@0: #include "t_notify_perf.h" sl@0: sl@0: RTest test(_L("T_NOTIFY_MFS - Multi File Session Test For Enhanced Notification")); sl@0: sl@0: extern void ClearTestPathL(); sl@0: extern void SetTestPaths(); sl@0: extern void CopyLogFilesL(); sl@0: extern void DeleteLogFilesL(); sl@0: sl@0: //--------------------------------------------- sl@0: //! @SYMTestCaseID PBASE-T_NOTIFY-2457 sl@0: //! @SYMTestType PT/UT sl@0: //! @SYMREQ PREQ1847 sl@0: //! @SYMTestCaseDesc Performance Test – Multiple File Server Sessions, this is only a part of the test case. sl@0: //! It is executed as a functional test here. This test case is also run as performance test in t_notify_perf sl@0: //! @SYMTestActions Perform a series of file operations, create multiple notification threads to collect the notifications. sl@0: //! @SYMTestExpectedResults No notifications are missed sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestStatus Implemented sl@0: //--------------------------------------------- sl@0: LOCAL_C void MultipleFileSessionTestL() sl@0: { sl@0: test.Start(_L("T_NOTIFY_MFS - Test Preparation")); sl@0: sl@0: gPerfMeasure = EFalse; sl@0: SetTestPaths(); sl@0: DeleteLogFilesL(); // Does not write log file but need create the log folder for test stopper to use sl@0: sl@0: const TInt KNumFiles = 10; sl@0: const TInt KNumClients = 4; sl@0: sl@0: test.Next(_L("Single Notification on all clients")); sl@0: ClearTestPathL(); sl@0: TTestSetting setting (KNumFiles, KNumClients, (EEnhanced|EBigBuffer), KDefaultOpList); sl@0: CTestExecutor testcase (setting); sl@0: testcase.RunTestCaseL(); sl@0: sl@0: test.Next(_L("Multi notifications Mode 1, enhanced notification")); sl@0: ClearTestPathL(); sl@0: setting.iOption = (EEnhanced|EBigBuffer|EMultiNoti1); sl@0: testcase.SetTestSetting(setting); sl@0: testcase.RunTestCaseL(); sl@0: sl@0: test.Next(_L("Multi notifications Mode 2, enhanced notification")); sl@0: ClearTestPathL(); sl@0: setting.iOption = (EEnhanced|EBigBuffer|EMultiNoti2); sl@0: testcase.SetTestSetting(setting); sl@0: testcase.RunTestCaseL(); sl@0: sl@0: test.Next(_L("Test finishing - clearing test path")); sl@0: sl@0: ClearTestPathL(); sl@0: test.End(); sl@0: } sl@0: sl@0: // Entry Point sl@0: GLDEF_C void CallTestsL() sl@0: { sl@0: MultipleFileSessionTestL(); sl@0: } sl@0: sl@0: sl@0: