test572 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <testcase>
  2. #Informational
  3. <info>
  4. <keywords>
  5. RTSP
  6. GET_PARAMETER
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data1>
  12. RTSP/1.0 200 OK
  13. Server: RTSPD/libcurl-test
  14. Session: getparams-test
  15. CSeq: 1
  16. </data1>
  17. <data2>
  18. RTSP/1.0 200 OK
  19. Server: RTSPD/libcurl-test
  20. Session: getparams-test
  21. Content-Type: text/parameters
  22. Content-Length: 32
  23. Cseq: 2
  24. scale=enormous
  25. speed=ludicrous
  26. </data2>
  27. <data3>
  28. RTSP/1.0 204 OK
  29. Server: RTSPD/libcurl-test
  30. Session: getparams-test
  31. Cseq: 3
  32. </data3>
  33. <data4>
  34. RTSP/1.0 200 Okie Dokie
  35. Server: RTSPD/libcurl-test
  36. Session: getparams-test
  37. Cseq: 4
  38. Content-Length: 37
  39. packets_received: 1000
  40. jitter: 0.314
  41. </data4>
  42. <data5>
  43. RTSP/1.0 200 OK
  44. Server: RTSPD/libcurl-test
  45. Session: getparams-test
  46. CSeq: 5
  47. Curl-private: swsclose
  48. Informational: Empty Options Response
  49. </data5>
  50. </reply>
  51. # Client-Side
  52. <client>
  53. <server>
  54. rtsp
  55. </server>
  56. <tool>
  57. lib%TESTNUMBER
  58. </tool>
  59. <name>
  60. RTSP GET_PARAMETER (Put/Heartbeat/Post)
  61. </name>
  62. <command>
  63. rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER %LOGDIR/file%TESTNUMBER.txt
  64. </command>
  65. # file written before test command runs
  66. <file name="%LOGDIR/file%TESTNUMBER.txt">
  67. scale
  68. speed
  69. </file>
  70. </client>
  71. <verify>
  72. <strip>
  73. ^If-Modified-Since:.*
  74. </strip>
  75. <protocol>
  76. SETUP rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER0001 RTSP/1.0
  77. CSeq: 1
  78. Transport: Planes/Trains/Automobiles
  79. GET_PARAMETER rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER0002 RTSP/1.0
  80. CSeq: 2
  81. Session: getparams-test
  82. Content-Length: 12
  83. Content-Type: text/parameters
  84. scale
  85. speed
  86. GET_PARAMETER rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER0003 RTSP/1.0
  87. CSeq: 3
  88. Session: getparams-test
  89. GET_PARAMETER rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER0004 RTSP/1.0
  90. CSeq: 4
  91. Session: getparams-test
  92. Content-Length: 24
  93. Content-Type: text/parameters
  94. packets_received
  95. jitter
  96. OPTIONS rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER0005 RTSP/1.0
  97. CSeq: 5
  98. Session: getparams-test
  99. </protocol>
  100. </verify>
  101. </testcase>