|
1 // |
|
2 // Copyright (c) 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 the License "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 // httpclient.ini |
|
17 // |
|
18 // Script file for running HTTP Service API tests |
|
19 // |
|
20 //! @file httpclient.ini |
|
21 // |
|
22 |
|
23 |
|
24 [TEST1] |
|
25 |
|
26 |
|
27 ##Use Case 1 |
|
28 |
|
29 TestCaseName= "HTTP CLIENT API GET" |
|
30 Method=GET |
|
31 Uri= http://127.0.0.1/index.html |
|
32 RawRequest= GET /index.html HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n |
|
33 RawResponse= HTTP/1.1 200 OK\r\nDate: Tue, 03 Nov 2009 06:46:38 GMT\r\nContent-Type: text/plain\r\nContent-Length: 11\r\n\r\n |
|
34 ResponseBody= Hello World |
|
35 StatusCode= 200 |
|
36 ResponseFieldCount= 3 |
|
37 ResponseHeader1= Content-Length |
|
38 ResponseHeader1ValueCount= 1 |
|
39 ResponseHeader1.Value1= 11 |
|
40 ResponseHeader2= Content-Type |
|
41 ResponseHeader2ValueCount= 1 |
|
42 ResponseHeader2.Value1= text/plain |
|
43 ResponseHeader3= Date |
|
44 ResponseHeader3ValueCount= 1 |
|
45 ResponseHeader3.Value1= Tue, 03 Nov 2009 06:46:38 GMT |
|
46 |
|
47 [TEST2] |
|
48 |
|
49 TestCaseName= "HTTP CLIENT API GET2" |
|
50 Method=GET |
|
51 Uri= http://127.0.0.1/index2.html |
|
52 RawRequest= GET /index2.html HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n |
|
53 RawResponse= HTTP/1.1 200 OK\r\nContent-Type: text/plain; charset=UTF-8\r\nContent-Length: 11\r\n\r\n |
|
54 ResponseBody= Hello World |
|
55 StatusCode= 200 |
|
56 ResponseFieldCount= 2 |
|
57 ResponseHeader1= Content-Length |
|
58 ResponseHeader1ValueCount= 1 |
|
59 ResponseHeader1.Value1= 11 |
|
60 ResponseHeader2= Content-Type |
|
61 ResponseHeader2ValueCount= 1 |
|
62 ResponseHeader2.Value1= text/plain |
|
63 ResponseHeader2.Field1ParamCount= 1 |
|
64 ResponseHeader2.Field1.ParamName1= charset |
|
65 ResponseHeader2.Field1.ParamValue1= UTF-8 |
|
66 |
|
67 [TEST3] |
|
68 |
|
69 TestCaseName= "HTTP CLIENT API GET3" |
|
70 Method=GET |
|
71 Uri= http://127.0.0.1/index3.html |
|
72 RawRequest= GET /index3.html HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n |
|
73 RawResponse= HTTP/1.1 200 OK\r\nCache-Control: private, max-age=0, max-stale=60\r\nContent-Type: text/plain; charset=UTF-8\r\nContent-Length: 11\r\n\r\n |
|
74 ResponseBody= Hello World |
|
75 StatusCode= 200 |
|
76 ResponseFieldCount= 3 |
|
77 ResponseHeader1= Content-Length |
|
78 ResponseHeader1ValueCount= 1 |
|
79 ResponseHeader1.Value1= 11 |
|
80 ResponseHeader2= Content-Type |
|
81 ResponseHeader2ValueCount= 1 |
|
82 ResponseHeader2.Value1= text/plain |
|
83 ResponseHeader2.Field1ParamCount= 1 |
|
84 ResponseHeader2.Field1.ParamName1= charset |
|
85 ResponseHeader2.Field1.ParamValue1= UTF-8 |
|
86 ResponseHeader3= Cache-Control |
|
87 ResponseHeader3ValueCount= 1 |
|
88 ResponseHeader3.Value1= private |
|
89 ResponseHeader3ParamCount= 2 |
|
90 ResponseHeader3.ParamName1= max-age |
|
91 ResponseHeader3.ParamValue1= 0 |
|
92 ResponseHeader3.ParamName2= max-stale |
|
93 ResponseHeader3.ParamValue2= 60 |
|
94 |
|
95 |
|
96 [TEST4] |
|
97 |
|
98 TestCaseName= "HTTP CLIENT API GET4" |
|
99 Method=GET |
|
100 Uri= http://127.0.0.1/index4.html |
|
101 RawRequest= GET /index4.html HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n |
|
102 RawResponse= HTTP/1.1 200 OK\r\nX-Content-Type-Options: nosniff\r\nContent-Type: text/plain; charset=UTF-8\r\nContent-Length: 11\r\n\r\n |
|
103 ResponseBody= Hello World |
|
104 StatusCode= 200 |
|
105 ResponseFieldCount= 3 |
|
106 ResponseHeader1= Content-Length |
|
107 ResponseHeader1ValueCount= 1 |
|
108 ResponseHeader1.Value1= 11 |
|
109 ResponseHeader2= Content-Type |
|
110 ResponseHeader2ValueCount= 1 |
|
111 ResponseHeader2.Value1= text/plain |
|
112 ResponseHeader2.Field1ParamCount= 1 |
|
113 ResponseHeader2.Field1.ParamName1= charset |
|
114 ResponseHeader2.Field1.ParamValue1= UTF-8 |
|
115 ResponseHeader3= X-Content-Type-Options |
|
116 ResponseHeader3ValueCount= 1 |
|
117 ResponseHeader3.Value1= nosniff |
|
118 |
|
119 |
|
120 [TEST5] |
|
121 |
|
122 TestCaseName= "HTTP CLIENT API GET5" |
|
123 Method=GET |
|
124 Uri= http://127.0.0.1/index5.html |
|
125 RawRequest= GET /index5.html HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n |
|
126 RawResponse= HTTP/1.1 200 OK\r\nCache-Control: private, max-age=0\r\nX-Content-Type-Options: nosniff\r\nContent-Type: text/plain; charset=UTF-8\r\nContent-Length: 11\r\n\r\n |
|
127 ResponseBody= Hello World |
|
128 StatusCode= 200 |
|
129 ResponseFieldCount= 4 |
|
130 ResponseHeader1= Content-Length |
|
131 ResponseHeader1ValueCount= 1 |
|
132 ResponseHeader1.Value1= 11 |
|
133 ResponseHeader2= Content-Type |
|
134 ResponseHeader2ValueCount= 1 |
|
135 ResponseHeader2.Value1= text/plain |
|
136 ResponseHeader2.Field1ParamCount= 1 |
|
137 ResponseHeader2.Field1.ParamName1= charset |
|
138 ResponseHeader2.Field1.ParamValue1= UTF-8 |
|
139 ResponseHeader3= Cache-Control |
|
140 ResponseHeader3ValueCount= 1 |
|
141 ResponseHeader3.Value1= private |
|
142 ResponseHeader3ParamCount= 1 |
|
143 ResponseHeader3.ParamName1= max-age |
|
144 ResponseHeader3.ParamValue1= 0 |
|
145 ResponseHeader4= X-Content-Type-Options |
|
146 ResponseHeader4ValueCount= 1 |
|
147 ResponseHeader4.Value1= nosniff |
|
148 |
|
149 [TEST6] |
|
150 |
|
151 TestCaseName= "HTTP CLIENT API GET6" |
|
152 Method=GET |
|
153 Uri= http://127.0.0.1/index6.html |
|
154 RawRequest= GET /index6.html HTTP/1.1\r\nHost: 127.0.0.1\r\nAccept: text/xml, application/xml, application/xhtml+xml, text/html; q=0.9, text/plain; q=0.8, image/png, */*; q=0.5\r\nUser-Agent: HTTP Client API Test\r\n\r\n |
|
155 RawResponse= HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 11\r\n\r\n |
|
156 ResponseBody= ABCDE EFGHI |
|
157 StatusCode= 200 |
|
158 RequestFieldCount= 1 |
|
159 RequestHeader1= Accept |
|
160 RequestHeader1ValueCount= 7 |
|
161 RequestHeader1.Value1= text/xml |
|
162 RequestHeader1.Value2= application/xml |
|
163 RequestHeader1.Value3= application/xhtml+xml |
|
164 RequestHeader1.Value4= text/html |
|
165 RequestHeader1.Value4ParamCount= 1 |
|
166 RequestHeader1.Value4.ParamName1= q |
|
167 RequestHeader1.Value4.ParamValue1= 0.9 |
|
168 RequestHeader1.Value5= text/plain |
|
169 RequestHeader1.Value5ParamCount= 1 |
|
170 RequestHeader1.Value5.ParamName1= q |
|
171 RequestHeader1.Value5.ParamValue1= 0.8 |
|
172 RequestHeader1.Value6= image/png |
|
173 RequestHeader1.Value7= */* |
|
174 RequestHeader1.Value7ParamCount= 1 |
|
175 RequestHeader1.Value7.ParamName1= q |
|
176 RequestHeader1.Value7.ParamValue1= 0.5 |
|
177 ResponseFieldCount= 2 |
|
178 ResponseHeader1= Content-Length |
|
179 ResponseHeader1ValueCount= 1 |
|
180 ResponseHeader1.Value1= 11 |
|
181 ResponseHeader2= Content-Type |
|
182 ResponseHeader2ValueCount= 1 |
|
183 ResponseHeader2.Value1= text/plain |
|
184 |
|
185 |
|
186 [TEST7] |
|
187 TestCaseName= "HTTP CLIENT API GET7" |
|
188 Method=GET |
|
189 Uri= http://127.0.0.1/testdl.txt |
|
190 StatusCode= 200 |
|
191 RawRequest= GET /testdl.txt HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n |
|
192 RawResponse= HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 26\r\n\r\n |
|
193 ResponseFileName= C:\HttpTest\httpservicetest\testdl.txt |
|
194 ResponseFileNameStore= C:\HttpTest\httpservicetest\testdlstore.txt |
|
195 |
|
196 [TEST8] |
|
197 TestCaseName= "HTTP CLIENT API GET8" |
|
198 Method=GET |
|
199 Uri= http://127.0.0.1/testdl2.txt |
|
200 StatusCode= 200 |
|
201 RawRequest= GET /testdl2.txt HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n |
|
202 RawResponse= HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 396500\r\n\r\n |
|
203 ResponseFileName= C:\HttpTest\httpservicetest\testdl2.txt |
|
204 ResponseFileNameStore= C:\HttpTest\httpservicetest\testdlstore2.txt |
|
205 |
|
206 [TEST9] |
|
207 TestCaseName= "HTTP CLIENT API GET9" |
|
208 Method=GET |
|
209 Uri= http://127.0.0.1/index9.html |
|
210 StatusCode= 200 |
|
211 RawRequest= GET /index9.html HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n |
|
212 RawResponse= HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 0\r\n\r\n |
|
213 ConnDisconnect= ETrue |
|
214 ExpectedError= -36 |
|
215 |
|
216 [TEST10] |
|
217 TestCaseName= "HTTP CLIENT API GET10" |
|
218 Method=GET |
|
219 Uri= http://127.0.0.1/index10.html |
|
220 StatusCode= 200 |
|
221 RawRequest= GET /index10.html HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n |
|
222 RawResponse= HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 0\r\n\r\n |
|
223 NoRetryOnDisconnect= ETrue |
|
224 ConnDisconnect= ETrue |
|
225 ExpectedError= -7377 |
|
226 |
|
227 [TEST11] |
|
228 TestCaseName= "HTTP CLIENT API GET11" |
|
229 Method=GET |
|
230 Uri= http://127.0.0.1/testdl2.txt |
|
231 StatusCode= 200 |
|
232 RawRequest= GET /testdl2.txt HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n |
|
233 RawResponse= HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 396500\r\n\r\n |
|
234 ResponseFileName= C:\HttpTest\httpservicetest\testdl2.txt |
|
235 ResponseFileNameStore= C:\HttpTest\httpservicetest\testdlstore3.txt |
|
236 ResponseDynamicAndStatic= ETrue |
|
237 |
|
238 [TEST12] |
|
239 TestCaseName= "HTTP CLIENT API POST1" |
|
240 Method=POST |
|
241 Uri= http://127.0.0.1/post.html |
|
242 StatusCode= 200 |
|
243 RawRequest= POST /post.html HTTP/1.1\r\nHost: 127.0.0.1\r\nContent-Type: text/plain\r\nContent-Length: 11\r\nUser-Agent: HTTP Client API Test\r\n\r\nHello World |
|
244 RawResponse= HTTP/1.1 200 OK\r\nContent-Length: 0\r\n\r\n |
|
245 RequestBody= Hello World |
|
246 RequestFieldCount= 1 |
|
247 RequestHeader1= Content-Type |
|
248 RequestHeader1ValueCount= 1 |
|
249 RequestHeader1.Value1= text/plain |
|
250 |
|
251 [TEST13] |
|
252 TestCaseName= "HTTP CLIENT API POST2" |
|
253 Method=POST |
|
254 Uri= http://127.0.0.1/testdl2.txt |
|
255 StatusCode= 200 |
|
256 RawRequest= POST /testdl2.txt HTTP/1.1\r\nHost: 127.0.0.1\r\nContent-Type: text/plain\r\nContent-Length: 396500\r\nUser-Agent: HTTP Client API Test\r\n\r\n |
|
257 RawResponse= HTTP/1.1 200 OK\r\nContent-Length: 0\r\n\r\n |
|
258 RequestFieldCount= 1 |
|
259 RequestHeader1= Content-Type |
|
260 RequestHeader1ValueCount= 1 |
|
261 RequestHeader1.Value1= text/plain |
|
262 RequestFileName= C:\HttpTest\httpservicetest\testdl2.txt |
|
263 RequestFileNameStore= C:\HttpTest\httpservicetest\testulstore2.txt |
|
264 |
|
265 [TEST14] |
|
266 TestCaseName= "HTTP CLIENT API GET12" |
|
267 Method=GET |
|
268 Uri= http://www.symbian.org/ |
|
269 StatusCode= 200 |
|
270 OnlineTest= ETrue |
|
271 ProxyAddress= 10.29.23.12:9003 |
|
272 |
|
273 [TEST15] |
|
274 TestCaseName= "HTTP CLIENT API GET13" |
|
275 Method=GET |
|
276 Uri= http://www.nokia.com/ |
|
277 StatusCode= 200 |
|
278 OnlineTest= ETrue |
|
279 ProxyAddress= 10.29.23.12:9003 |
|
280 |
|
281 [TEST16] |
|
282 TestCaseName= "HTTP CLIENT API GET14" |
|
283 Method=GET |
|
284 Uri= http://127.0.0.1/index17.html |
|
285 RawRequest= GET /index17.html HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n |
|
286 RawResponse= HTTP/1.1 504 Gateway Timeout\r\nContent-Type: text/plain\r\nContent-Length: 0\r\n\r\n |
|
287 StatusCode= 504 |
|
288 ResponseFieldCount= 2 |
|
289 ResponseHeader1= Content-Length |
|
290 ResponseHeader1ValueCount= 1 |
|
291 ResponseHeader1.Value1= 0 |
|
292 ResponseHeader2= Content-Type |
|
293 ResponseHeader2ValueCount= 1 |
|
294 ResponseHeader2.Value1= text/plain |
|
295 ResponseTimeout= ETrue |
|
296 ExpectedError= -7377 |
|
297 |
|
298 [TEST17] |
|
299 TestCaseName= "HTTP CLIENT API GET15" |
|
300 Method=GET |
|
301 Uri= http://127.0.0.1/index18.html |
|
302 RawRequest= GET /index18.html HTTP/1.1\r\nHost: 127.0.0.1\r\nAccept: */*\r\nUser-Agent: HTTP Client API Test\r\n\r\n |
|
303 RawResponse= HTTP/1.1 301 Moved Permanently\r\nLocation: http://10.29.23.12/manual/index.html\r\n\r\n |
|
304 StatusCode= 200 |
|
305 OnlineTest= ETrue |
|
306 Redirection= ETrue |
|
307 |
|
308 [TEST18] |
|
309 TestCaseName= "HTTP CLIENT API GET16" |
|
310 Method=GET |
|
311 Uri= http://127.0.0.1/testdl2.txt |
|
312 StatusCode= 200 |
|
313 RawRequest= GET /testdl2.txt HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n |
|
314 RawResponse= HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 396500\r\n\r\n |
|
315 NotifyTransferProgress= ETrue |
|
316 ResponseFileName= C:\HttpTest\httpservicetest\testdl2.txt |
|
317 ResponseFileNameStore= C:\HttpTest\httpservicetest\testdlstore2.txt |
|
318 |
|
319 [TEST19] |
|
320 TestCaseName= "HTTP CLIENT API POST3" |
|
321 Method=POST |
|
322 Uri= http://127.0.0.1/testdl2.txt |
|
323 StatusCode= 200 |
|
324 RawRequest= POST /testdl2.txt HTTP/1.1\r\nHost: 127.0.0.1\r\nContent-Type: text/plain\r\nContent-Length: 396500\r\nUser-Agent: HTTP Client API Test\r\n\r\n |
|
325 RawResponse= HTTP/1.1 200 OK\r\nContent-Length: 0\r\n\r\n |
|
326 NotifyTransferProgress= ETrue |
|
327 RequestFieldCount= 1 |
|
328 RequestHeader1= Content-Type |
|
329 RequestHeader1ValueCount= 1 |
|
330 RequestHeader1.Value1= text/plain |
|
331 RequestFileName= C:\HttpTest\httpservicetest\testdl2.txt |
|
332 RequestFileNameStore= C:\HttpTest\httpservicetest\testulstore3.txt |
|
333 |
|
334 |
|
335 [#Done] |
|
336 |