0
|
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 c:\SampleTest\
|
|
26 |
CopyFile c:\plattest\SampleTest1.script c:\SampleTest\SampleTest1.Script
|
|
27 |
CopyFile c:\plattest\SampleTest.ini c:\SampleTest\SampleTest.ini
|
|
28 |
MakeReadWrite c:\SampleTest\SampleTest1.Script
|
|
29 |
MakeReadWrite c:\SampleTest\SampleTest.ini
|
|
30 |
REMOVE_PREFIX
|
|
31 |
|
|
32 |
START_TESTCASE Huhana
|
|
33 |
START_REPEAT c:\sampletest\sampletest.ini SectionOne repeatParam
|
|
34 |
RUN_TEST_STEP 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionOne
|
|
35 |
RUN_TEST_STEP 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionOne
|
|
36 |
END_REPEAT
|
|
37 |
END_TESTCASE Huhana
|
|
38 |
|
|
39 |
START_TESTCASE Tama
|
|
40 |
START_REPEAT c:\sampletest\sampletest.ini SectionOne repeatParam
|
|
41 |
RUN_TEST_STEP 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionOne
|
|
42 |
RUN_TEST_STEP 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionOne
|
|
43 |
END_REPEAT
|
|
44 |
END_TESTCASE Tama
|
|
45 |
|
|
46 |
|
|
47 |
START_TESTCASE Ngaio
|
|
48 |
RUN_TEST_STEP 100 SampleServer SampleStep3
|
|
49 |
END_TESTCASE Ngaio
|
|
50 |
|
|
51 |
START_TESTCASE Patariki
|
|
52 |
RUN_TEST_STEP 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionOne
|
|
53 |
END_TESTCASE Patariki
|
|
54 |
|
|
55 |
//CONCURRENT
|
|
56 |
//START_TESTCASE Piripi
|
|
57 |
//RUN_TEST_STEP 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionOne
|
|
58 |
//DELAY 5000
|
|
59 |
//START_REPEAT c:\sampletest\sampletest.ini SectionOne repeatParam
|
|
60 |
//RUN_SCRIPT c:\sampletest\sampletest1.script
|
|
61 |
//RUN_PROGRAM Eshell.exe
|
|
62 |
//END_REPEAT
|
|
63 |
//RUN_PANIC_STEP_RESULT 1 SampleServer 100 SampleServer SampleStep1 c:\sampletest\SampleTest.ini SectionTwo
|
|
64 |
//RUN_PROGRAM EPanic.exe
|
|
65 |
//END_TESTCASE Piripi
|
|
66 |
|
|
67 |
|
|
68 |
CONCURRENT
|
|
69 |
START_TESTCASE Tane
|
|
70 |
RUN_TEST_STEP 100 SampleServer SampleStep5
|
|
71 |
END_TESTCASE Tane
|
|
72 |
|
|
73 |
START_TESTCASE Maata
|
|
74 |
RUN_TEST_STEP 100 SampleServer SampleStep6
|
|
75 |
RUN_TEST_STEP 100 SampleServer SampleStep7
|
|
76 |
END_TESTCASE Maata
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
//START_REPEAT c:\sampletest\sampletest.ini SectionOne repeatParam
|
|
81 |
CONSECUTIVE
|
|
82 |
PREFIX RUN_PANIC_STEP 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionTwo
|
|
83 |
REMOVE_PREFIX
|
|
84 |
|
|
85 |
PRINT RUN_TEST_STEP with !TEF Parameters
|
|
86 |
|
|
87 |
PRINT Test that !Error works as expected when the test step result sets the correct error return value
|
|
88 |
RUN_TEST_STEP !Error=-43 100 SampleServer SampleStep2 c:\sampletest\sampleTest.ini SectionOne
|
|
89 |
|
|
90 |
PRINT Test that !Error works correctly when the test step result sets the incorrect error return value
|
|
91 |
RUN_TEST_STEP !Error=43 100 SampleServer SampleStep2 c:\sampletest\sampleTest.ini SectionOne
|
|
92 |
|
|
93 |
PRINT Test that !Error and !Result in combination causes a TEF error in the log file
|
|
94 |
RUN_TEST_STEP !Error=-43 !Result=Fail 100 SampleServer SampleStep2 c:\sampletest\sampleTest.ini SectionOne
|
|
95 |
|
|
96 |
START_TESTCASE Timoti
|
|
97 |
PRINT Test that !Error works correctly when the test step does not return an error
|
|
98 |
RUN_TEST_STEP !Error=-43 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionTwo
|
|
99 |
END_TESTCASE Timoti
|
|
100 |
|
|
101 |
PRINT Test that !Panic works correctly when the test step panics with a matching panic string
|
|
102 |
RUN_TEST_STEP !PanicString=SampleServer 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionTwo
|
|
103 |
RUN_TEST_STEP !PanicString="SampleServer" 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionTwo
|
|
104 |
RUN_TEST_STEP !PanicCode=1 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionTwo
|
|
105 |
|
|
106 |
PRINT Test that !Panic works correctly when the test step panics with a non-matching panic string
|
|
107 |
RUN_TEST_STEP !PanicString=Sample 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionTwo
|
|
108 |
RUN_TEST_STEP !PanicString="Sample" 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionTwo
|
|
109 |
RUN_TEST_STEP !PanicCode=2 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionTwo
|
|
110 |
|
|
111 |
START_TESTCASE Moana
|
|
112 |
RUN_TEST_STEP 100 SampleServer SampleStep11
|
|
113 |
END_TESTCASE Moana
|
|
114 |
|
|
115 |
|
|
116 |
PRINT Test that !Panic works correctly when the test step does not panic
|
|
117 |
RUN_TEST_STEP !PanicString=SampleServer 100 SampleServer SampleStep2 c:\sampletest\sampleTest.ini SectionOne
|
|
118 |
RUN_TEST_STEP !PanicString="SampleServer" 100 SampleServer SampleStep2 c:\sampletest\sampleTest.ini SectionOne
|
|
119 |
RUN_TEST_STEP !PanicCode=1 100 SampleServer SampleStep2 c:\sampletest\sampleTest.ini SectionOne
|
|
120 |
|
|
121 |
PRINT Test that !Result works as RUN_TEST_STEP_RESULT
|
|
122 |
RUN_TEST_STEP !Result=Fail 100 SampleServer SampleStep2 c:\sampletest\sampleTest.ini SectionOne
|
|
123 |
RUN_TEST_STEP !Result=Fail 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionOne
|
|
124 |
|
|
125 |
|
|
126 |
START_TESTCASE Proteus
|
|
127 |
RUN_TEST_STEP 100 SampleServer SampleStep09
|
|
128 |
END_TESTCASE Proteus
|
|
129 |
|
|
130 |
|
|
131 |
PRINT Test that !Heap allocates the correct size heap value for the test step thread
|
|
132 |
RUN_TEST_STEP !Heap=0x10000 100 SampleServer SampleStep2 c:\sampletest\sampleTest.ini SectionOne
|
|
133 |
RUN_TEST_STEP !Heap=0x10 100 SampleServer SampleStep2 c:\sampletest\sampleTest.ini SectionOne
|
|
134 |
RUN_TEST_STEP !Heap=0x1000000 100 SampleServer SampleStep2 c:\sampletest\sampleTest.ini SectionOne
|
|
135 |
RUN_TEST_STEP !Heap=0x0 100 SampleServer SampleStep2 c:\sampletest\sampleTest.ini SectionOne
|
|
136 |
|
|
137 |
START_TESTCASE Paora
|
|
138 |
RUN_TEST_STEP 100 SampleServer SampleStep10
|
|
139 |
START_TESTCASE nested
|
|
140 |
RUN_TEST_STEP 100 SampleServer SampleStep10
|
|
141 |
END_TESTCASE nested
|
|
142 |
END_TESTCASE Paora
|
|
143 |
|
|
144 |
PRINT Test various combinations of TEF parameters being passed in
|
|
145 |
RUN_TEST_STEP !PanicCode=1 !PanicString=SampleServer 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionTwo
|
|
146 |
RUN_TEST_STEP !PanicString=Sample !PanicCode=1 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionTwo
|
|
147 |
RUN_TEST_STEP !PanicString=SampleServer !PanicCode=2 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionTwo
|
|
148 |
RUN_TEST_STEP !Error=-43 !PanicString=SampleServer 100 SampleServer SampleStep2 c:\sampletest\sampleTest.ini SectionOne
|
|
149 |
RUN_TEST_STEP !Error=-43 !PanicCode=1 100 SampleServer SampleStep2 c:\sampletest\sampleTest.ini SectionOne
|
|
150 |
RUN_TEST_STEP !Error=-43 !Heap=0x10000 100 SampleServer SampleStep2 c:\sampletest\sampleTest.ini SectionOne
|
|
151 |
|
|
152 |
START_TESTCASE Mere
|
|
153 |
RUN_TEST_STEP !PanicString=SampleServer !Heap=0x10000 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionTwo
|
|
154 |
RUN_TEST_STEP !PanicString=SampleServer !PanicCode=1 !Heap=0x10000 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionTwo
|
|
155 |
RUN_TEST_STEP !PanicString=SampleServer !Result=Fail 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionTwo
|
|
156 |
RUN_TEST_STEP !PanicCode=1 !Result=Fail 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionTwo
|
|
157 |
RUN_TEST_STEP !PanicString=SampleServer !PanicCode=1 !Result=Fail 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionTwo
|
|
158 |
END_TESTCASE Mere
|
|
159 |
|
|
160 |
PRINT Test a range of edge conditions where multiple TEF parameter entries
|
|
161 |
RUN_TEST_STEP !PanicString=SampleServer !Heap=0x10000 !PanicString=SampleServ 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionTwo
|
|
162 |
RUN_TEST_STEP !Result=Fail !Result=Fail 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionOne
|
|
163 |
RUN_TEST_STEP !Error=43 !Error=-43 100 SampleServer SampleStep2 c:\sampletest\sampleTest.ini SectionOne
|
|
164 |
RUN_TEST_STEP !PanicCode=1 !PanicCode=2 100 SampleServer SampleStep1 c:\sampletest\sampleTest.ini SectionTwo
|
|
165 |
RUN_TEST_STEP !Heap=0x10000 !Heap=0x1000 100 SampleServer SampleStep2 c:\sampletest\sampleTest.ini SectionOne
|
|
166 |
|
|
167 |
PRINT Test with shared data test steps
|
|
168 |
LOAD_SUITE SampleServer -SharedData
|
|
169 |
RUN_TEST_STEP !Error=-43 100 SampleServer SampleStep2 c:\sampletest\sampleTest.ini SectionOne
|
|
170 |
RUN_TEST_STEP !Error=-43 100 SampleServer SampleStep3 c:\sampletest\sampleTest.ini SectionOne
|
|
171 |
|
|
172 |
|
|
173 |
|
|
174 |
START_TESTCASE Roimata
|
|
175 |
RUN_TEST_STEP 100 SampleServer SampleStep13
|
|
176 |
END_TESTCASE Roimata
|
|
177 |
|
|
178 |
|