2013-02-05 16:07:27 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
multi
|
2014-01-25 06:29:35 +08:00
|
|
|
verbose logs
|
2013-02-05 16:07:27 +08:00
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data1>
|
2014-02-01 07:52:08 +08:00
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-02-01 07:52:08 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Content-Length: 47
|
|
|
|
|
2013-02-05 16:07:27 +08:00
|
|
|
file contents should appear once for each file
|
|
|
|
</data1>
|
|
|
|
<data2>
|
2014-02-01 07:52:08 +08:00
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-02-01 07:52:08 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Content-Length: 47
|
|
|
|
|
2013-02-05 16:07:27 +08:00
|
|
|
file contents should appear once for each file
|
|
|
|
</data2>
|
|
|
|
<data3>
|
2014-02-01 07:52:08 +08:00
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-02-01 07:52:08 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Content-Length: 47
|
|
|
|
|
2013-02-05 16:07:27 +08:00
|
|
|
file contents should appear once for each file
|
|
|
|
</data3>
|
|
|
|
<data4>
|
2014-02-01 07:52:08 +08:00
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-02-01 07:52:08 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Content-Length: 47
|
|
|
|
|
2013-02-05 16:07:27 +08:00
|
|
|
file contents should appear once for each file
|
|
|
|
</data4>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<tool>
|
2021-03-13 00:38:26 +08:00
|
|
|
lib%TESTNUMBER
|
2013-02-05 16:07:27 +08:00
|
|
|
</tool>
|
|
|
|
<name>
|
|
|
|
HTTP GET connection cache limit (CURLMOPT_MAXCONNECTS)
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/path/%TESTNUMBER %HOSTIP %HTTPPORT
|
2013-02-05 16:07:27 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /path/%TESTNUMBER0001 HTTP/1.1
|
2013-02-05 16:07:27 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /path/%TESTNUMBER0002 HTTP/1.1
|
2013-02-05 16:07:27 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /path/%TESTNUMBER0003 HTTP/1.1
|
2013-02-05 16:07:27 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /path/%TESTNUMBER0004 HTTP/1.1
|
2013-02-05 16:07:27 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
<strip>
|
|
|
|
^Host:.*
|
|
|
|
</strip>
|
2021-03-13 00:38:26 +08:00
|
|
|
<file name="log/stderr%TESTNUMBER" mode="text">
|
2013-02-05 16:07:27 +08:00
|
|
|
* Connection #0 to host server1.example.com left intact
|
|
|
|
* Connection #1 to host server2.example.com left intact
|
|
|
|
* Connection #2 to host server3.example.com left intact
|
|
|
|
* Closing connection 0
|
|
|
|
* Connection #3 to host server4.example.com left intact
|
|
|
|
</file>
|
|
|
|
<stripfile>
|
|
|
|
$_ = '' if (($_ !~ /left intact/) && ($_ !~ /Closing connection/))
|
|
|
|
</stripfile>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|