jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
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 <> 
04/15/2009 01:22 PM
Please respond to
"JMeter Users List" <>

JMeter Users List <>

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

Thanks for the reply. I've started experimenting with the TCP Sampler, and 
think I'm close, but I'm missing something. May I ask you a few questions 
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 
pasting it into he TCPSampler "text to send" for example:

OPTIONS rtsp:// RTSP/1.0
CSeq: 346

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.


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, <> 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 <>
> 04/13/2009 05:58 PM
> Please respond to
> "JMeter Users List" <>
> To
> JMeter Users List <>
> cc
> Subject
> Does jmeter support RTSP (Real-Time Streaming Protocol)
> *^ <
> 2326 <>, *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<
> but RTSP adds new requests. While HTTP is
> stateless<>,
> RTSP is a stateful protocol. A session identifier is used to keep track 
> 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

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