testexecmdw/tef/tef/test/legacy/scripts/sampletest.script
branchRCL_3
changeset 3 9397a16b6eb8
parent 1 6edeef394eb7
equal deleted inserted replaced
1:6edeef394eb7 3:9397a16b6eb8
     1 //
       
     2 // Copyright (c) 2005-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 PRINT Legendary RUN_TEST_STEP steps for confirming backward compatibility
       
    18 //
       
    19 PRINT Run all Sample Tests 
       
    20 //
       
    21 LOAD_SUITE SampleServer
       
    22 //
       
    23 #
       
    24 PREFIX RUN_UTILS
       
    25 MkDir ${SYSDRIVE}\SampleTest\
       
    26 CopyFile z:\SampleTest\SampleTest1.script ${SYSDRIVE}\SampleTest\SampleTest1.Script
       
    27 CopyFile z:\SampleTest\SampleTest.ini ${SYSDRIVE}\SampleTest\SampleTest.ini
       
    28 MakeReadWrite ${SYSDRIVE}\SampleTest\SampleTest1.Script
       
    29 MakeReadWrite ${SYSDRIVE}\SampleTest\SampleTest.ini
       
    30 REMOVE_PREFIX
       
    31 
       
    32 START_TESTCASE TC012344
       
    33 START_REPEAT ${SYSDRIVE}\sampletest\sampletest.ini SectionOne repeatParam
       
    34 RUN_TEST_STEP 100 SampleServer SampleStep1  ${SYSDRIVE}\sampletest\sampleTest.ini SectionOne
       
    35 RUN_TEST_STEP 100 SampleServer SampleStep1  ${SYSDRIVE}\sampletest\sampleTest.ini SectionOne
       
    36 END_REPEAT
       
    37 END_TESTCASE TC012344
       
    38 
       
    39 START_TESTCASE TC012345
       
    40 RUN_TEST_STEP 100 SampleServer SampleStep1  ${SYSDRIVE}\sampletest\sampleTest.ini SectionOne
       
    41 END_TESTCASE TC012345
       
    42 
       
    43 //RUN_TEST_STEP_RESULT 0 100 SampleServer SampleStep1  ${SYSDRIVE}\sampletest\sampleTest.ini SectionOne
       
    44 //RUN_TEST_STEP 100 SampleServer SampleStep1  ${SYSDRIVE}\sampletest\sampleTest.ini SectionOne
       
    45 //RUN_PANIC_STEP 100 SampleServer SampleStep1  ${SYSDRIVE}\sampletest\sampleTest.ini SectionOne
       
    46 
       
    47 START_TESTCASE TC012346
       
    48 RUN_TEST_STEP 100 SampleServer SampleStep1  ${SYSDRIVE}\sampletest\sampleTest.ini SectionOne
       
    49 DELAY 5000
       
    50 START_REPEAT ${SYSDRIVE}\sampletest\sampletest.ini SectionOne repeatParam
       
    51 RUN_SCRIPT ${SYSDRIVE}\sampletest\sampletest1.script
       
    52 RUN_PROGRAM Eshell.exe
       
    53 END_REPEAT
       
    54 RUN_PANIC_STEP_RESULT 1 SampleServer 100 SampleServer SampleStep1  ${SYSDRIVE}\sampletest\SampleTest.ini SectionTwo
       
    55 END_TESTCASE TC012346
       
    56 
       
    57 START_REPEAT ${SYSDRIVE}\sampletest\sampletest.ini SectionOne repeatParam
       
    58 CONSECUTIVE
       
    59 PREFIX RUN_PANIC_STEP 100 SampleServer SampleStep1  ${SYSDRIVE}\sampletest\sampleTest.ini
       
    60 SectionTwo
       
    61 SectionTwo
       
    62 REMOVE_PREFIX
       
    63 END_REPEAT
       
    64 
       
    65 PRINT RUN_TEST_STEP with !TEF Parameters
       
    66 
       
    67 PRINT Test that !Error works as expected when the test step result sets the correct error return value
       
    68 RUN_TEST_STEP !Error=-43 100 SampleServer SampleStep4  ${SYSDRIVE}\sampletest\sampleTest.ini SectionOne
       
    69 
       
    70 PRINT Test that !Panic works correctly when the test step panics with a matching panic string
       
    71 RUN_TEST_STEP !PanicString=SampleServer 100 SampleServer SampleStep1  ${SYSDRIVE}\sampletest\sampleTest.ini SectionTwo
       
    72 RUN_TEST_STEP !PanicString="SampleServer" 100 SampleServer SampleStep1  ${SYSDRIVE}\sampletest\sampleTest.ini SectionTwo
       
    73 RUN_TEST_STEP !PanicCode=1 100 SampleServer SampleStep1  ${SYSDRIVE}\sampletest\sampleTest.ini SectionTwo
       
    74 
       
    75 PRINT Test that !Result works as RUN_TEST_STEP_RESULT
       
    76 RUN_TEST_STEP !Result=Pass 100 SampleServer SampleStep4  ${SYSDRIVE}\sampletest\sampleTest.ini SectionOne
       
    77 
       
    78 PRINT Test that !Heap allocates the correct size heap value for the test step thread
       
    79 RUN_TEST_STEP !Heap=0x10000 100 SampleServer SampleStep2  ${SYSDRIVE}\sampletest\sampleTest.ini SectionOne
       
    80 RUN_TEST_STEP !Heap=0x10 100 SampleServer SampleStep2  ${SYSDRIVE}\sampletest\sampleTest.ini SectionOne
       
    81 RUN_TEST_STEP !Heap=0x1000000 100 SampleServer SampleStep2  ${SYSDRIVE}\sampletest\sampleTest.ini SectionOne
       
    82 RUN_TEST_STEP !Heap=0x0 100 SampleServer SampleStep2  ${SYSDRIVE}\sampletest\sampleTest.ini SectionOne
       
    83 
       
    84 PRINT Test various combinations of TEF parameters being passed in
       
    85 RUN_TEST_STEP !PanicCode=1 !PanicString=SampleServer 100 SampleServer SampleStep1  ${SYSDRIVE}\sampletest\sampleTest.ini SectionTwo
       
    86 RUN_TEST_STEP !Error=-43 !Heap=0x10000 100 SampleServer SampleStep4  ${SYSDRIVE}\sampletest\sampleTest.ini SectionOne
       
    87 RUN_TEST_STEP !PanicString=SampleServer !Heap=0x10000 100 SampleServer SampleStep1  ${SYSDRIVE}\sampletest\sampleTest.ini SectionTwo
       
    88 RUN_TEST_STEP !PanicString=SampleServer !PanicCode=1 !Heap=0x10000 100 SampleServer SampleStep1  ${SYSDRIVE}\sampletest\sampleTest.ini SectionTwo
       
    89