test519 1.2 KB

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