traceservices/tracefw/integ_test/ost/TEF/te_ostv2integsuite_functional/testdata/scripts/te_integ_tracecollectorconfigfile.script
changeset 0 08ec8eefde2f
child 23 26645d81f48d
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 
       
     2 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 //
       
    16 
       
    17 //! @File
       
    18 //! @SYMTestSuiteName           te_integ_tracecollectorconfigfile.script
       
    19 //! @SYMScriptTestEnvironment   TEF
       
    20 
       
    21 
       
    22 LOAD_SUITE te_ostv2integsuite_enabled
       
    23 
       
    24 
       
    25 PRINT ConfigFile_Test
       
    26 
       
    27 
       
    28 PREFIX RUN_UTILS
       
    29 MkDir e:\ulogger\
       
    30 Copyfile z:\testdata\configs\configfiletracecontrolconfig.ini e:\ulogger\uloggerconfig.ini
       
    31 MakeReadWrite e:\ulogger\uloggerconfig.ini
       
    32 REMOVE_PREFIX
       
    33 
       
    34 
       
    35 START_TESTCASE                  DT-DEBUG-TRACE-OSTv2-TraceControlPublicConfigFile01-0001
       
    36 //! @SYMTestCaseID              DT-DEBUG-TRACE-OSTv2-TraceControlPublicConfigFile01-0001
       
    37 //! @SYMTestCaseDesc            Run test for publicconfig file path for TraceControl on armv5
       
    38 //! @SYMTestPriority            Critical
       
    39 //! @SYMTestActions             Compare the settings in the TraceControl server with that specified in the test config file in \testdata\configs\configfiletracecontrolconfig.ini
       
    40 //! @SYMTestExpectedResults     Verify that the returned settings match those expected (test step returns a test pass if so)
       
    41 //! @SYMTestType                CT
       
    42 //! @SYMTESTSTATUS              Implemented
       
    43 //! @SYMPREQ                    PREQ2390
       
    44 //! @SYMREQ                     12128 12129
       
    45     START_TEST_BLOCK    100     te_ostv2integsuite_enabled              \testdata\configs\te_integ_tracecollectorconfigfile.ini
       
    46         CREATE_OBJECT           PublicConfigFile                        PublicConfigFile
       
    47         COMMAND                 PublicConfigFile                        doTest
       
    48     END_TEST_BLOCK
       
    49 END_TESTCASE                    DT-DEBUG-TRACE-OSTv2-TraceControlPublicConfigFile01-0001
       
    50 
       
    51 
       
    52 PREFIX RUN_UTILS
       
    53 Copyfile c:\logs\PublicConfigULogger.utf c:\logs\PublicConfigULogger1.utf
       
    54 DeleteFile c:\logs\PublicConfigULogger.utf 
       
    55 DeleteFile e:\ulogger\uloggerconfig.ini
       
    56 REMOVE_PREFIX
       
    57 
       
    58 
       
    59 START_TESTCASE                  DT-DEBUG-TRACE-OSTv2-TraceControlPrivateConfigFile-0001
       
    60 //! @SYMTestCaseID              DT-DEBUG-TRACE-OSTv2-TraceControlPrivateConfigFile-0001
       
    61 //! @SYMTestCaseDesc            Run test for privateconfig file path for TraceControl on armv5
       
    62 //! @SYMTestPriority            Critical
       
    63 //! @SYMTestActions             Having deleted c:\ulogger\uloggerconfig.ini in the public path, now compare the settings in the TraceControl server with that specified by default in the private path
       
    64 //! @SYMTestExpectedResults     Verify that the returned settings match those expected (test step returns a test pass if so)
       
    65 //! @SYMTestType                CT
       
    66 //! @SYMTESTSTATUS              Implemented
       
    67 //! @SYMPREQ                    PREQ2390
       
    68 //! @SYMREQ                     12128 12129
       
    69     START_TEST_BLOCK    100     te_ostv2integsuite_enabled              \testdata\configs\te_integ_tracecollectorconfigfile.ini
       
    70         CREATE_OBJECT           PrivateConfigFile                       PrivateConfigFile
       
    71         COMMAND                 PrivateConfigFile                       doTest
       
    72     END_TEST_BLOCK
       
    73 END_TESTCASE                    DT-DEBUG-TRACE-OSTv2-TraceControlPrivateConfigFile-0001
       
    74 
       
    75 
       
    76 PREFIX RUN_UTILS
       
    77 Copyfile c:\logs\utracedata.utf c:\logs\PrivateConfigULogger.utf
       
    78 DeleteFile c:\logs\utracedata.utf
       
    79 Copyfile z:\testdata\configs\configfiletracecontrolconfig.ini e:\ulogger\uloggerconfig.ini
       
    80 MakeReadWrite e:\ulogger\uloggerconfig.ini
       
    81 REMOVE_PREFIX
       
    82 
       
    83 
       
    84 START_TESTCASE                  DT-DEBUG-TRACE-OSTv2-TraceControlPublicConfigFile02-0001
       
    85 //! @SYMTestCaseID              DT-DEBUG-TRACE-OSTv2-TraceControlPublicConfigFile02-0001
       
    86 //! @SYMTestCaseDesc            Run test for publicconfig file path for TraceControl on armv5
       
    87 //! @SYMTestPriority            Critical
       
    88 //! @SYMTestActions             Having reinstated a config file on the public path, now compare the settings in the TraceControl server with that specified in the public path
       
    89 //! @SYMTestExpectedResults     Verify that the returned settings match those expected (test step returns a test pass if so)
       
    90 //! @SYMTestType                CT
       
    91 //! @SYMTESTSTATUS              Implemented
       
    92 //! @SYMPREQ                    PREQ2390
       
    93 //! @SYMREQ                     12128 12129
       
    94     START_TEST_BLOCK    100     te_ostv2integsuite_enabled              \testdata\configs\te_integ_tracecollectorconfigfile.ini
       
    95         CREATE_OBJECT           PublicConfigFile                        PublicConfigFile
       
    96         COMMAND                 PublicConfigFile                        doTest
       
    97     END_TEST_BLOCK
       
    98 END_TESTCASE                    DT-DEBUG-TRACE-OSTv2-TraceControlPublicConfigFile02-0001
       
    99 
       
   100 
       
   101 PREFIX RUN_UTILS
       
   102 Copyfile c:\logs\PublicConfigULogger.utf c:\logs\PublicConfigULogger2.utf
       
   103 DeleteFile c:\logs\PublicConfigULogger.utf 
       
   104 DeleteFile e:\ulogger\uloggerconfig.ini
       
   105 REMOVE_PREFIX
       
   106 
       
   107 
       
   108 START_TEST_BLOCK    20000       te_ostv2integsuite_enabled              \testdata\configs\te_integ_tracecollectorconfigfile.ini
       
   109     CREATE_OBJECT               DefaultTraceControlConfig               DefaultTraceControlConfig
       
   110     COMMAND                     DefaultTraceControlConfig               doTest
       
   111 END_TEST_BLOCK
       
   112 
       
   113 
       
   114 PRINT Complete_ConfigFile_Tests