os/kernelhwsrv/kerneltest/f32test/server/t_notify_mfs.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kerneltest/f32test/server/t_notify_mfs.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,80 @@
     1.4 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// f32test\server\t_notify_mfs.cpp
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +#include "t_notify_perf.h"
    1.22 +
    1.23 +RTest test(_L("T_NOTIFY_MFS - Multi File Session Test For Enhanced Notification"));
    1.24 +
    1.25 +extern void ClearTestPathL();
    1.26 +extern void SetTestPaths();
    1.27 +extern void CopyLogFilesL();
    1.28 +extern void DeleteLogFilesL();
    1.29 +
    1.30 +//---------------------------------------------
    1.31 +//! @SYMTestCaseID          PBASE-T_NOTIFY-2457
    1.32 +//! @SYMTestType            PT/UT
    1.33 +//! @SYMREQ                 PREQ1847
    1.34 +//! @SYMTestCaseDesc        Performance Test – Multiple File Server Sessions, this is only a part of the test case.
    1.35 +//!                         It is executed as a functional test here. This test case is also run as performance test in t_notify_perf 
    1.36 +//! @SYMTestActions         Perform a series of file operations, create multiple notification threads to collect the notifications.                        
    1.37 +//! @SYMTestExpectedResults No notifications are missed
    1.38 +//! @SYMTestPriority        High
    1.39 +//! @SYMTestStatus          Implemented
    1.40 +//---------------------------------------------
    1.41 +LOCAL_C void MultipleFileSessionTestL()
    1.42 +    {
    1.43 +    test.Start(_L("T_NOTIFY_MFS - Test Preparation"));
    1.44 +    
    1.45 +    gPerfMeasure = EFalse;
    1.46 +    SetTestPaths();
    1.47 +    DeleteLogFilesL();  // Does not write log file but need create the log folder for test stopper to use
    1.48 +    
    1.49 +    const TInt KNumFiles = 10;
    1.50 +    const TInt KNumClients = 4;
    1.51 +    
    1.52 +    test.Next(_L("Single Notification on all clients"));
    1.53 +    ClearTestPathL();
    1.54 +    TTestSetting setting (KNumFiles, KNumClients, (EEnhanced|EBigBuffer), KDefaultOpList);
    1.55 +    CTestExecutor testcase (setting);
    1.56 +    testcase.RunTestCaseL();
    1.57 +    
    1.58 +    test.Next(_L("Multi notifications Mode 1, enhanced notification"));
    1.59 +    ClearTestPathL();
    1.60 +    setting.iOption = (EEnhanced|EBigBuffer|EMultiNoti1);
    1.61 +    testcase.SetTestSetting(setting);
    1.62 +    testcase.RunTestCaseL();
    1.63 +    
    1.64 +    test.Next(_L("Multi notifications Mode 2, enhanced notification"));
    1.65 +    ClearTestPathL();
    1.66 +    setting.iOption = (EEnhanced|EBigBuffer|EMultiNoti2);
    1.67 +    testcase.SetTestSetting(setting);
    1.68 +    testcase.RunTestCaseL();
    1.69 +    
    1.70 +    test.Next(_L("Test finishing - clearing test path"));
    1.71 +    
    1.72 +    ClearTestPathL();
    1.73 +    test.End();
    1.74 +    }
    1.75 +
    1.76 +// Entry Point
    1.77 +GLDEF_C void CallTestsL()
    1.78 +    {
    1.79 +    MultipleFileSessionTestL();
    1.80 +    }
    1.81 +
    1.82 +
    1.83 +