test1511 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. CURLOPT_TIMECONDITION
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data>
  11. HTTP/1.1 200 OK
  12. Date: Tue, 09 Nov 2010 14:49:00 GMT
  13. Server: test-server/fakem
  14. Last-Modified: Mon, 22 Apr 2013 17:45:05 GMT
  15. Content-Type: text/html
  16. Content-Length: 12
  17. Connection: close
  18. Hello World
  19. </data>
  20. <datacheck>
  21. HTTP/1.1 200 OK
  22. Date: Tue, 09 Nov 2010 14:49:00 GMT
  23. Server: test-server/fakem
  24. Last-Modified: Mon, 22 Apr 2013 17:45:05 GMT
  25. Content-Type: text/html
  26. Content-Length: 12
  27. Connection: close
  28. HTTP/1.1 200 OK
  29. Date: Tue, 09 Nov 2010 14:49:00 GMT
  30. Server: test-server/fakem
  31. Last-Modified: Mon, 22 Apr 2013 17:45:05 GMT
  32. Content-Type: text/html
  33. Content-Length: 12
  34. Connection: close
  35. Hello World
  36. </datacheck>
  37. </reply>
  38. # Client-side
  39. <client>
  40. <server>
  41. http
  42. </server>
  43. <features>
  44. http
  45. </features>
  46. <tool>
  47. lib%TESTNUMBER
  48. </tool>
  49. <name>
  50. HTTP GET time conditions in repeated requests
  51. </name>
  52. <command>
  53. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  54. </command>
  55. </client>
  56. # Verify data after the test has been "shot"
  57. # TEST_ERR_SUCCESS is errorcode 120
  58. <verify>
  59. <errorcode>
  60. 120
  61. </errorcode>
  62. </verify>
  63. </testcase>