traceservices/tracefw/integ_test/ost/TEF/te_ostv2integsuite_functional/testdata/scripts/te_integ_tracecollectorclient_enabled.script
changeset 0 08ec8eefde2f
child 23 26645d81f48d
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 //! @File
       
    18 //! @SYMTestSuiteName           te-integ-tracecollectorclient_enabled.script
       
    19 //! @SYMScriptTestEnvironment   TEF
       
    20 
       
    21 
       
    22 LOAD_SUITE te_ostv2integsuite_enabled
       
    23 
       
    24 
       
    25 PRINT API_Functionality_Tests for utrace compiled in
       
    26 
       
    27 START_TESTCASE                  DT-DEBUG-TRACE-OSTv2-TraceControlAPIGroupIDEnabled-0001
       
    28 //! @SYMTestCaseID              DT-DEBUG-TRACE-OSTv2-TraceControlAPIGroupIDEnabled-0001
       
    29 //! @SYMTestCaseDesc            Run test for group ID filter settings in TraceControl server for trace compiled in
       
    30 //! @SYMTestPriority            Critical
       
    31 //! @SYMTestActions             Run a combination of single and multiple group ID filter set() methods and check the contents of the get() methods on server return the filters as expected
       
    32 //! @SYMTestExpectedResults     Verify that the values returned by get methods match those expected from settings (test step returns a test pass if so)
       
    33 //! @SYMTestType                CT
       
    34 //! @SYMTESTSTATUS              Implemented
       
    35 //! @SYMPREQ                    PREQ2390
       
    36 //! @SYMREQ                     12128 12974 12975
       
    37     START_TEST_BLOCK    1000    te_ostv2integsuite_enabled              \testdata\configs\te_integ_tracecollectorclient.ini
       
    38         CREATE_OBJECT           TCMGroupIDFiltering                     TCMGroupIDFiltering
       
    39         COMMAND                 TCMGroupIDFiltering                     doTest
       
    40     END_TEST_BLOCK 
       
    41 END_TESTCASE                    DT-DEBUG-TRACE-OSTv2-TraceControlAPIGroupIDEnabled-0001
       
    42 
       
    43 
       
    44 START_TESTCASE                  DT-DEBUG-TRACE-OSTv2-TraceControlAPICompIDEnabled-0001
       
    45 //! @SYMTestCaseID              DT-DEBUG-TRACE-OSTv2-TraceControlAPICompIDEnabled-0001
       
    46 //! @SYMTestCaseDesc            Run test for component ID filter settings in TraceControl server for trace compiled in
       
    47 //! @SYMTestPriority            Critical
       
    48 //! @SYMTestActions             Run a combination of single and multiple component ID filter set() methods and check the contents of the get() methods on server return the filters as expected
       
    49 //! @SYMTestExpectedResults     Verify that the values returned by get methods match those expected from settings (test step returns a test pass if so)
       
    50 //! @SYMTestType                CT
       
    51 //! @SYMTESTSTATUS              Implemented
       
    52 //! @SYMPREQ                    PREQ2390
       
    53 //! @SYMREQ                     12128 12974 12975
       
    54     START_TEST_BLOCK    20000   te_ostv2integsuite_enabled              \testdata\configs\te_integ_tracecollectorclient.ini
       
    55         CREATE_OBJECT           TCMComponentIDFiltering                 TCMComponentIDFiltering
       
    56         COMMAND                 TCMComponentIDFiltering                 doTest
       
    57     END_TEST_BLOCK 
       
    58 END_TESTCASE                    DT-DEBUG-TRACE-OSTv2-TraceControlAPICompIDEnabled-0001
       
    59 
       
    60 
       
    61 START_TESTCASE                  DT-DEBUG-TRACE-OSTv2-TraceControlAPILoggingEnabled-0001
       
    62 //! @SYMTestCaseID              DT-DEBUG-TRACE-OSTv2-TraceControlAPILoggingEnabled-0001
       
    63 //! @SYMTestCaseDesc            Run test for logging in TraceControl server for trace compiled in on user side
       
    64 //! @SYMTestPriority            Critical
       
    65 //! @SYMTestActions             Run a combination of single and multiple filter and filtering set() methods instrument user-side trace points accordingly for positive, negative and multiple setting tests
       
    66 //! @SYMTestExpectedResults     Verify that the returned trace data and the output trace log files match the settings in the TraceControl accordingly
       
    67 //! @SYMTestType                CT
       
    68 //! @SYMTESTSTATUS              Implemented
       
    69 //! @SYMPREQ                    PREQ2390
       
    70 //! @SYMREQ                     12128 12974 12975 12823 12824 12825 12128 12974 12975
       
    71     START_TEST_BLOCK    20000   te_ostv2integsuite_enabled              \testdata\configs\te_integ_tracecollectorclient.ini
       
    72         CREATE_OBJECT           TCMLogging                              TCMLogging
       
    73         COMMAND                 TCMLogging                              doTest
       
    74     END_TEST_BLOCK 
       
    75 END_TESTCASE                    DT-DEBUG-TRACE-OSTv2-TraceControlAPILoggingEnabled-0001
       
    76 
       
    77 
       
    78 START_TESTCASE                  DT-DEBUG-TRACE-OSTv2-TraceControlADPAPIGroupIDEnabled-0001
       
    79 //! @SYMTestCaseID              DT-DEBUG-TRACE-OSTv2-TraceControlADPAPIGroupIDEnabled-0001
       
    80 //! @SYMTestCaseDesc            Run test for group ID filter and filtering settings in TraceControl server for trace compiled in
       
    81 //! @SYMTestPriority            Critical
       
    82 //! @SYMTestActions             Run a combination of single and multiple group ID filter and filtering set() methods and check the contents of the get() methods on server return the filters as expected
       
    83 //! @SYMTestExpectedResults     Verify that the values returned by get methods match those expected from settings (test step returns a test pass if so)
       
    84 //! @SYMTestType                CT
       
    85 //! @SYMTESTSTATUS              Implemented
       
    86 //! @SYMPREQ                    PREQ2390
       
    87 //! @SYMREQ                     12128 12974 12975
       
    88     START_TEST_BLOCK    1000    te_ostv2integsuite_enabled              \testdata\configs\te_integ_tracecollectorclient.ini
       
    89         CREATE_OBJECT           TCMAdvancedGroupIDFiltering             TCMAdvancedGroupIDFiltering
       
    90         COMMAND                 TCMAdvancedGroupIDFiltering             doTest
       
    91     END_TEST_BLOCK 
       
    92 END_TESTCASE                    DT-DEBUG-TRACE-OSTv2-TraceControlADPAPIGroupIDEnabled-0001
       
    93 
       
    94 
       
    95 PREFIX RUN_UTILS
       
    96 CopyFile C:\logs\ULoggerStartFileTestLog.utf c:\logs\uloggeradpapiprimteststep_enabled.utf
       
    97 DeleteFile C:\logs\ULoggerStartFileTestLog.utf
       
    98 REMOVE_PREFIX
       
    99 
       
   100 
       
   101 START_TESTCASE                  DT-DEBUG-TRACE-OSTv2-TraceControlADPAPICompIDEnabled-0001
       
   102 //! @SYMTestCaseID              DT-DEBUG-TRACE-OSTv2-TraceControlADPAPICompIDEnabled-0001
       
   103 //! @SYMTestCaseDesc            Run test for component ID filter and filtering settings in TraceControl server for trace compiled in
       
   104 //! @SYMTestPriority            Critical
       
   105 //! @SYMTestActions             Run a combination of single and multiple component ID filter and filtering set() methods and check the contents of the get() methods on server return the filters as expected
       
   106 //! @SYMTestExpectedResults     Verify that the values returned by get methods match those expected from settings (test step returns a test pass if so)
       
   107 //! @SYMTestType                CT
       
   108 //! @SYMTESTSTATUS              Implemented
       
   109 //! @SYMPREQ                    PREQ2390
       
   110 //! @SYMREQ                     12128 12974 12975
       
   111     START_TEST_BLOCK    1000    te_ostv2integsuite_enabled              \testdata\configs\te_integ_tracecollectorclient.ini
       
   112         CREATE_OBJECT           TCMAdvancedComponentIDFiltering         TCMAdvancedComponentIDFiltering
       
   113         COMMAND                 TCMAdvancedComponentIDFiltering         doTest
       
   114     END_TEST_BLOCK 
       
   115 END_TESTCASE                    DT-DEBUG-TRACE-OSTv2-TraceControlADPAPICompIDEnabled-0001
       
   116 
       
   117 
       
   118 PREFIX RUN_UTILS
       
   119 CopyFile C:\logs\ULoggerStartFileTestLog.utf c:\logs\uloggeradpapisecondteststep_enabled.utf
       
   120 DeleteFile C:\logs\ULoggerStartFileTestLog.utf
       
   121 REMOVE_PREFIX 
       
   122 
       
   123 
       
   124 START_TESTCASE                  DT-DEBUG-TRACE-OSTv2-TraceControlBufferSizingEnabled-0001
       
   125 //! @SYMTestCaseID              DT-DEBUG-TRACE-OSTv2-TraceControlBufferSizingEnabled-0001
       
   126 //! @SYMTestCaseDesc            Run test for buffersizing settings in TraceControl server for trace compiled in
       
   127 //! @SYMTestPriority            Critical
       
   128 //! @SYMTestActions             Run a combination of buffer resizing methods and run over various stress testing trace instrumentations. check the contents of the output file is as expected
       
   129 //! @SYMTestExpectedResults     Verify that output file contains #traces as expected
       
   130 //! @SYMTestType                CT
       
   131 //! @SYMTESTSTATUS              Implemented
       
   132 //! @SYMPREQ                    PREQ2390
       
   133 //! @SYMREQ                     12152 
       
   134     START_TEST_BLOCK    1000    te_ostv2integsuite_enabled              \testdata\configs\te_integ_tracecollectorclient.ini
       
   135         CREATE_OBJECT           TCMBufferSizing                         TCMBufferSizing
       
   136         COMMAND                 TCMBufferSizing                         doTest
       
   137     END_TEST_BLOCK 
       
   138 END_TESTCASE                    DT-DEBUG-TRACE-OSTv2-TraceControlBufferSizingEnabled-0001
       
   139 
       
   140 
       
   141 START_TESTCASE                  DT-DEBUG-TRACE-OSTv2-TraceControlBufferModeEnabled-0001
       
   142 //! @SYMTestCaseID              DT-DEBUG-TRACE-OSTv2-TraceControlBufferModeEnabled-0001
       
   143 //! @SYMTestCaseDesc            Run test for buffer mode settings in TraceControl server for trace compiled in
       
   144 //! @SYMTestPriority            Critical
       
   145 //! @SYMTestActions             Run a combination of buffer mode change methods and run over various stress testing trace instrumentations. check the contents of the output file is as expected
       
   146 //! @SYMTestExpectedResults     Verify that output file contains a trace pattern as expected from buffer mode type
       
   147 //! @SYMTestType                CT
       
   148 //! @SYMTESTSTATUS              Implemented
       
   149 //! @SYMPREQ                    PREQ2390
       
   150 //! @SYMREQ                     12152 
       
   151     START_TEST_BLOCK    1000    te_ostv2integsuite_enabled              \testdata\configs\te_integ_tracecollectorclient.ini
       
   152         CREATE_OBJECT           TCMBufferMode                           TCMBufferMode
       
   153         COMMAND                 TCMBufferMode                           doTest
       
   154     END_TEST_BLOCK 
       
   155 END_TESTCASE                    DT-DEBUG-TRACE-OSTv2-TraceControlBufferModeEnabled-0001
       
   156 
       
   157 
       
   158 //uncomment test case when kernel side API reimplemented/graceful kernel side behaviour tested
       
   159 //START_TESTCASE                DT-DEBUG-TRACE-OSTv2-TraceControlAPIKernelEnabled-0001
       
   160 //! @SYMTestCaseID              DT-DEBUG-TRACE-OSTv2-TraceControlAPIKernelEnabled-0001
       
   161 //! @SYMTestCaseDesc            Run test for logging in TraceControl server for trace points compiled in on kernel side
       
   162 //! @SYMTestPriority            Critical
       
   163 //! @SYMTestActions             Run a combination of single and multiple filter and filtering set() methods instrument kernel-side trace points accordingly for positive, negative and multiple setting tests
       
   164 //! @SYMTestExpectedResults     Verify that the returned trace data and the output trace log files match the settings in the TraceControl accordingly
       
   165 //! @SYMTestType                CT
       
   166 //! @SYMTESTSTATUS              Implemented
       
   167 //! @SYMPREQ                    PREQ2390
       
   168 //! @SYMREQ                     12128 12974 12975 12823 12824 12825 12128 12974 12975
       
   169 //  START_TEST_BLOCK    1000    te_ostv2integsuite_enabled              \testdata\configs\te_integ_tracecollectorclient.ini
       
   170 //      CREATE_OBJECT           TCMKernelLogging                        TCMKernelLogging
       
   171 //      COMMAND                 TCMKernelLogging                        doTest
       
   172 //  END_TEST_BLOCK 
       
   173 //END_TESTCASE                  DT-DEBUG-TRACE-OSTv2-TraceControlAPIKernelEnabled-0001
       
   174 
       
   175 
       
   176 START_TESTCASE                  DT-DEBUG-TRACE-OSTv2-TraceControlAPIPrintfEnabled-0001
       
   177 //! @SYMTestCaseID              DT-DEBUG-TRACE-OSTv2-TraceControlAPIPrintfEnabled-0001
       
   178 //! @SYMTestCaseDesc            Run test for logging in TraceControl server for trace printf-style points compiled in on user side
       
   179 //! @SYMTestPriority            Critical
       
   180 //! @SYMTestActions             Run a combination of single and multiple filter and filtering set() methods instrument user-side trace printf-style points accordingly for positive, negative and multiple setting tests
       
   181 //! @SYMTestExpectedResults     Verify that the returned trace data and the output trace log files match the settings in the TraceControl accordingly
       
   182 //! @SYMTestType                CT
       
   183 //! @SYMTESTSTATUS              Implemented
       
   184 //! @SYMPREQ                    PREQ2390
       
   185 //! @SYMREQ                     12128 12974 12975 12823 12824 12825 12128 12974 12975
       
   186     START_TEST_BLOCK    1000    te_ostv2integsuite_enabled              \testdata\configs\te_integ_tracecollectorclient.ini
       
   187         CREATE_OBJECT           TCMPrintfLogging                        TCMPrintfLogging
       
   188         COMMAND                 TCMPrintfLogging                        doTest
       
   189     END_TEST_BLOCK 
       
   190 END_TESTCASE                    DT-DEBUG-TRACE-OSTv2-TraceControlAPIPrintfEnabled-0001
       
   191 
       
   192 
       
   193 //uncomment test case when kernel side API reimplemented/graceful kernel side behaviour tested
       
   194 //START_TESTCASE                DT-DEBUG-TRACE-OSTv2-TraceControlAPIKernelPrintfEnabled-0001
       
   195 //! @SYMTestCaseID              DT-DEBUG-TRACE-OSTv2-TraceControlAPIKernelPrintfEnabled-0001
       
   196 //! @SYMTestCaseDesc            Run test for logging in TraceControl server for trace printf-style points compiled in on kernel side
       
   197 //! @SYMTestPriority            Critical
       
   198 //! @SYMTestActions             Run a combination of single and multiple filter and filtering set() methods instrument kernel-side trace printf-style points accordingly for positive, negative and multiple setting tests
       
   199 //! @SYMTestExpectedResults     Verify that the returned trace data and the output trace log files match the settings in the TraceControl accordingly
       
   200 //! @SYMTestType                CT
       
   201 //! @SYMTESTSTATUS              Implemented
       
   202 //! @SYMPREQ                    PREQ2390
       
   203 //! @SYMREQ                     12128 12974 12975 12823 12824 12825 12128 12974 12975
       
   204 //  START_TEST_BLOCK    1000    te_ostv2integsuite_enabled              \testdata\configs\te_integ_tracecollectorclient.ini
       
   205 //      CREATE_OBJECT           TCMKernelPrintfLogging                  TCMKernelPrintfLogging
       
   206 //      COMMAND                 TCMKernelPrintfLogging                  doTest
       
   207 //  END_TEST_BLOCK 
       
   208 //END_TESTCASE                  DT-DEBUG-TRACE-OSTv2-TraceControlAPIKernelPrintfEnabled-0001 
       
   209 
       
   210 
       
   211 PRINT Plugin_Tests
       
   212 
       
   213 
       
   214 START_TESTCASE                  DT-DEBUG-TRACE-OSTv2-TraceControlFilePluginEnabled-0001
       
   215 //! @SYMTestCaseID              DT-DEBUG-TRACE-OSTv2-TraceControlFilePluginEnabled-0001
       
   216 //! @SYMTestCaseDesc            Run test for logging to the file plugin for trace compiled in
       
   217 //! @SYMTestPriority            Critical
       
   218 //! @SYMTestActions             Run a combination of plugin configuration methods for the file plugin and log over trace instrumentation
       
   219 //! @SYMTestExpectedResults     Verify that the trace data is output as expected to the file plugin
       
   220 //! @SYMTestType                CT
       
   221 //! @SYMTESTSTATUS              Implemented
       
   222 //! @SYMPREQ                    PREQ2390
       
   223 //! @SYMREQ                     12129 12153
       
   224     START_TEST_BLOCK    1000    te_ostv2integsuite_enabled              \testdata\configs\te_integ_tracecollectorclient.ini
       
   225         CREATE_OBJECT           TCMFilePlugin                           TCMFilePlugin
       
   226         COMMAND                 TCMFilePlugin                           doTest
       
   227     END_TEST_BLOCK 
       
   228 END_TESTCASE                    DT-DEBUG-TRACE-OSTv2-TraceControlFilePluginEnabled-0001 
       
   229 
       
   230 
       
   231 START_TESTCASE                  DT-DEBUG-TRACE-OSTv2-TraceControlSerialPluginEnabled-0001
       
   232 //! @SYMTestCaseID              DT-DEBUG-TRACE-OSTv2-TraceControlSerialPluginEnabled-0001
       
   233 //! @SYMTestCaseDesc            Run test for logging to the serial plugin for trace compiled in
       
   234 //! @SYMTestPriority            Critical
       
   235 //! @SYMTestActions             Run a combination of plugin configuration methods for the serial plugin and log over trace instrumentation
       
   236 //! @SYMTestExpectedResults     Verify that the trace data is output as expected to the serial plugin
       
   237 //! @SYMTestType                CT
       
   238 //! @SYMTESTSTATUS              Implemented
       
   239 //! @SYMPREQ                    PREQ2390
       
   240 //! @SYMREQ                     12129 12153 12147
       
   241     START_TEST_BLOCK    1000    te_ostv2integsuite_enabled              \testdata\configs\te_integ_tracecollectorclient.ini
       
   242         CREATE_OBJECT           TCMSerialPlugin                         TCMSerialPlugin
       
   243         COMMAND                 TCMSerialPlugin                         doTest
       
   244     END_TEST_BLOCK 
       
   245 END_TESTCASE                    DT-DEBUG-TRACE-OSTv2-TraceControlSerialPluginEnabled-0001
       
   246 
       
   247 
       
   248 START_TESTCASE                  DT-DEBUG-TRACE-OSTv2-TraceControlFilePluginStepErrEnabled-0001
       
   249 //! @SYMTestCaseID              DT-DEBUG-TRACE-OSTv2-TraceControlFilePluginStepErrEnabled-0001
       
   250 //! @SYMTestCaseDesc            Run test for error returns from plugin methods for trace compiled in
       
   251 //! @SYMTestPriority            Critical
       
   252 //! @SYMTestActions             Run a combination of plugin configuration methods for the file plugin and test on the return errors
       
   253 //! @SYMTestExpectedResults     Verify that the errors returned are as expected
       
   254 //! @SYMTestType                CT
       
   255 //! @SYMTESTSTATUS              Implemented
       
   256 //! @SYMPREQ                    PREQ2390
       
   257 //! @SYMREQ                     12129 12153 12147
       
   258     START_TEST_BLOCK    1000    te_ostv2integsuite_enabled              \testdata\configs\te_integ_tracecollectorclient.ini
       
   259         CREATE_OBJECT           TCMFilePluginErr                        TCMFilePluginErr
       
   260         COMMAND                 TCMFilePluginErr                        doTest
       
   261     END_TEST_BLOCK 
       
   262 END_TESTCASE                    DT-DEBUG-TRACE-OSTv2-TraceControlFilePluginStepErrEnabled-0001
       
   263 
       
   264 
       
   265 PRINT Complete_te_TraceControl_Tests for utrace compiled in