xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | </keywords> |
| 7 | </info> |
| 8 | |
| 9 | # |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <data> |
| 13 | HTTP/1.1 200 OK swsbounce
|
| 14 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 15 | Server: test-server/fake
|
| 16 | Content-Length: 8
|
| 17 |
|
| 18 | content |
| 19 | </data> |
| 20 | <data1> |
| 21 | HTTP/1.1 200 OK swsclose
|
| 22 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 23 | Server: test-server/fake
|
| 24 | Content-Length: 9
|
| 25 |
|
| 26 | content2 |
| 27 | </data1> |
| 28 | <datacheck> |
| 29 | HTTP/1.1 200 OK swsbounce
|
| 30 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 31 | Server: test-server/fake
|
| 32 | Content-Length: 8
|
| 33 |
|
| 34 | content |
| 35 | HTTP/1.1 200 OK swsclose
|
| 36 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 37 | Server: test-server/fake
|
| 38 | Content-Length: 9
|
| 39 |
|
| 40 | content2 |
| 41 | </datacheck> |
| 42 | </reply> |
| 43 | |
| 44 | # Client-side |
| 45 | <client> |
| 46 | <server> |
| 47 | http |
| 48 | </server> |
| 49 | # tool is what to use instead of 'curl' |
| 50 | <tool> |
| 51 | lib%TESTNUMBER |
| 52 | </tool> |
| 53 | |
| 54 | <name> |
| 55 | GET same URL twice with different users |
| 56 | </name> |
| 57 | <command> |
| 58 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER |
| 59 | </command> |
| 60 | </client> |
| 61 | |
| 62 | # |
| 63 | # Verify data after the test has been "shot" |
| 64 | <verify> |
| 65 | <protocol> |
| 66 | GET /%TESTNUMBER HTTP/1.1
|
| 67 | Host: %HOSTIP:%HTTPPORT
|
| 68 | Authorization: Basic bW9uc3Rlcjp1bmRlcmJlZA==
|
| 69 | Accept: */*
|
| 70 |
|
| 71 | GET /%TESTNUMBER HTTP/1.1
|
| 72 | Host: %HOSTIP:%HTTPPORT
|
| 73 | Authorization: Basic YW5vdGhlcm1vbnN0ZXI6aW53YXJkcm9iZQ==
|
| 74 | Accept: */*
|
| 75 |
|
| 76 | </protocol> |
| 77 | </verify> |
| 78 | </testcase> |