jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric.Robin...@Schange.com
Subject Re: Does jmeter support RTSP (Real-Time Streaming Protocol)
Date Thu, 16 Apr 2009 13:16:48 GMT
My streaming server needed a CR/LF/CR/LF at the end of the text before it 
would process.
So I created a JMeter User Defined Variable:
        Name: CRLF
        Value: ${__javaScript('\r\n')}

And, for example, my RTSP play is a TCP Sampler with IP and port set 
appropriately and text to send:
        PLAY * RTSP/1.0${CRLF}CSeq: 2${CRLF}Range: npt=0.0-${CRLF}Scale: 
1.0${CRLF}Session: ${session_id}${CRLF}${CRLF}

The variable ${session_id} was pulled from the response to RTSP setup.  I 
check re-use connection, but don't think that's required.





Ed Young <ejy@summitbid.com> 
04/15/2009 01:22 PM
Please respond to
"JMeter Users List" <jmeter-user@jakarta.apache.org>


To
JMeter Users List <jmeter-user@jakarta.apache.org>
cc

Subject
Re: Does jmeter support RTSP (Real-Time Streaming Protocol)






Thanks for the reply. I've started experimenting with the TCP Sampler, and 
I
think I'm close, but I'm missing something. May I ask you a few questions 
on
how you've simulated the requests?

What I've done:
I've sent  some requests generated from a python script and I can setup
sessions and play and teardown, etc. I'm watching the traffic using
wireshark and seeing the requests and responses.

I'm basically copying the valid request text from the wireshark traffic 
and
pasting it into he TCPSampler "text to send" for example:

OPTIONS rtsp://10.253.239.205:554 RTSP/1.0
CSeq: 346
Require: com.comcast.ngod.r2

Wireshark indicates this is an RTSP message, but the streaming server
rejects it.

So, I think I'm on the right track. Any ideas are appreciated.

-Ed

What I've tried to do is to copy the request from wireshark and paste it
into the TCPSampler "text to send".

On Tue, Apr 14, 2009 at 6:00 AM, <Eric.Robinson@schange.com> wrote:

> I have simulated RTSP using the TCP Sampler.
> You can extract the session id from the setup response using a regex
> extractor post-processor.
>
>
>
>
> Ed Young <ejy@summitbid.com>
> 04/13/2009 05:58 PM
> Please respond to
> "JMeter Users List" <jmeter-user@jakarta.apache.org>
>
>
> To
> JMeter Users List <jmeter-user@jakarta.apache.org>
> cc
>
> Subject
> Does jmeter support RTSP (Real-Time Streaming Protocol)
>
>
>
>
>
>
> *^ <http://en.wikipedia.org/wiki/Real_Time_Streaming_Protocol#cite_ref-0
>*
> RFC
> 2326 <http://tools.ietf.org/html/rfc2326>, *Real Time Streaming Protocol
> (RTSP)*, IETF, 1998
>
> That is, can I send simple requests like DESCRIBE, SETTUP, PLAY, PAUSE,
> etc.
>
>
> The RTSP protocol has similarities to HTTP<
> http://en.wikipedia.org/wiki/HTTP>,
> but RTSP adds new requests. While HTTP is
> stateless<http://en.wikipedia.org/wiki/Stateless_server>,
> RTSP is a stateful protocol. A session identifier is used to keep track 
of
> sessions when needed. thus, no permanent TCP connection is needed. RTSP
> messages are sent from client to server, although some exceptions exist
> where the server will send to the client.
>
> Anyone know if there is already jmeter support?
>
> Thanks,
>
> --
> - Ed
>
>


-- 
- Ed


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message