Quantcast

How to handle WebSocket event in Jmeter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to handle WebSocket event in Jmeter

niraj
Hello All,

Did anyone tried to work on script which has also Web Socket request?

I am not able to record and run the event which is getting fired at client
end while adding Annotation which uses WebSocket.

Please let me know if there is a way to handle the web socket in Jmeter.

Thanks,
Niraj
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to handle WebSocket event in Jmeter

Shmuel Krakower
I haven't done this, but are you sure it goes through the proxy?
(i.e. stop the proxy server and notice that the event is now failing - if
it won't it doesn't go through the proxy)

Shmuel.


On Thu, Jul 12, 2012 at 12:05 PM, Niraj <[hidden email]> wrote:

> Hello All,
>
> Did anyone tried to work on script which has also Web Socket request?
>
> I am not able to record and run the event which is getting fired at client
> end while adding Annotation which uses WebSocket.
>
> Please let me know if there is a way to handle the web socket in Jmeter.
>
> Thanks,
> Niraj
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to handle WebSocket event in Jmeter

niraj
Yes it goes throw proxy. Because it also operates on 8080 port.

On Thu, Jul 12, 2012 at 4:46 PM, Shmuel Krakower <[hidden email]> wrote:

> I haven't done this, but are you sure it goes through the proxy?
> (i.e. stop the proxy server and notice that the event is now failing - if
> it won't it doesn't go through the proxy)
>
> Shmuel.
>
>
> On Thu, Jul 12, 2012 at 12:05 PM, Niraj <[hidden email]> wrote:
>
> > Hello All,
> >
> > Did anyone tried to work on script which has also Web Socket request?
> >
> > I am not able to record and run the event which is getting fired at
> client
> > end while adding Annotation which uses WebSocket.
> >
> > Please let me know if there is a way to handle the web socket in Jmeter.
> >
> > Thanks,
> > Niraj
> >
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to handle WebSocket event in Jmeter

Shmuel Krakower
Hi Niraj,
Did you solve this somehow? Please share.

Best,
Shmuel.


On Thu, Jul 12, 2012 at 2:37 PM, Niraj <[hidden email]> wrote:

> Yes it goes throw proxy. Because it also operates on 8080 port.
>
> On Thu, Jul 12, 2012 at 4:46 PM, Shmuel Krakower <[hidden email]>
> wrote:
>
> > I haven't done this, but are you sure it goes through the proxy?
> > (i.e. stop the proxy server and notice that the event is now failing - if
> > it won't it doesn't go through the proxy)
> >
> > Shmuel.
> >
> >
> > On Thu, Jul 12, 2012 at 12:05 PM, Niraj <[hidden email]>
> wrote:
> >
> > > Hello All,
> > >
> > > Did anyone tried to work on script which has also Web Socket request?
> > >
> > > I am not able to record and run the event which is getting fired at
> > client
> > > end while adding Annotation which uses WebSocket.
> > >
> > > Please let me know if there is a way to handle the web socket in
> Jmeter.
> > >
> > > Thanks,
> > > Niraj
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to handle WebSocket event in Jmeter

niraj
Hi Shamuel,

I am not sure how web socket implemented at your end, but at our end Web
socket request is WS protocol not HTTP.

Also when we send a web socket request there is one event triggered at
client end which is again did not catch by Jmeter proxy.

So till now we just got the build without web socket. I am not sure if
Jmeter currently supports WS requests.

Thanks,
Niraj

On Tue, Aug 7, 2012 at 8:21 PM, Shmuel Krakower <[hidden email]> wrote:

> Hi Niraj,
> Did you solve this somehow? Please share.
>
> Best,
> Shmuel.
>
>
> On Thu, Jul 12, 2012 at 2:37 PM, Niraj <[hidden email]> wrote:
>
> > Yes it goes throw proxy. Because it also operates on 8080 port.
> >
> > On Thu, Jul 12, 2012 at 4:46 PM, Shmuel Krakower <[hidden email]>
> > wrote:
> >
> > > I haven't done this, but are you sure it goes through the proxy?
> > > (i.e. stop the proxy server and notice that the event is now failing -
> if
> > > it won't it doesn't go through the proxy)
> > >
> > > Shmuel.
> > >
> > >
> > > On Thu, Jul 12, 2012 at 12:05 PM, Niraj <[hidden email]>
> > wrote:
> > >
> > > > Hello All,
> > > >
> > > > Did anyone tried to work on script which has also Web Socket request?
> > > >
> > > > I am not able to record and run the event which is getting fired at
> > > client
> > > > end while adding Annotation which uses WebSocket.
> > > >
> > > > Please let me know if there is a way to handle the web socket in
> > Jmeter.
> > > >
> > > > Thanks,
> > > > Niraj
> > > >
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to handle WebSocket event in Jmeter

Shmuel Krakower
Hi,
Yeah probably proxy wont record your case as it only records http/s traffic.
In your case you will probably need to use wireshark sniffer to see how the
traffic looks like and if it is readable you may try to put it into:
http://jmeter.apache.org/usermanual/component_reference.html#TCP_Sampler

But I guess that it goes as binary data over tcp - so you cannot really
simulate this in a nice way (i.e. parameters or use of data sets) only copy
the binary traffic data from wireshark into the sampler and hope it will
work.

Best,
Shmuel.


On Wed, Aug 8, 2012 at 8:25 AM, Niraj <[hidden email]> wrote:

> Hi Shamuel,
>
> I am not sure how web socket implemented at your end, but at our end Web
> socket request is WS protocol not HTTP.
>
> Also when we send a web socket request there is one event triggered at
> client end which is again did not catch by Jmeter proxy.
>
> So till now we just got the build without web socket. I am not sure if
> Jmeter currently supports WS requests.
>
> Thanks,
> Niraj
>
> On Tue, Aug 7, 2012 at 8:21 PM, Shmuel Krakower <[hidden email]>
> wrote:
>
> > Hi Niraj,
> > Did you solve this somehow? Please share.
> >
> > Best,
> > Shmuel.
> >
> >
> > On Thu, Jul 12, 2012 at 2:37 PM, Niraj <[hidden email]> wrote:
> >
> > > Yes it goes throw proxy. Because it also operates on 8080 port.
> > >
> > > On Thu, Jul 12, 2012 at 4:46 PM, Shmuel Krakower <[hidden email]>
> > > wrote:
> > >
> > > > I haven't done this, but are you sure it goes through the proxy?
> > > > (i.e. stop the proxy server and notice that the event is now failing
> -
> > if
> > > > it won't it doesn't go through the proxy)
> > > >
> > > > Shmuel.
> > > >
> > > >
> > > > On Thu, Jul 12, 2012 at 12:05 PM, Niraj <[hidden email]>
> > > wrote:
> > > >
> > > > > Hello All,
> > > > >
> > > > > Did anyone tried to work on script which has also Web Socket
> request?
> > > > >
> > > > > I am not able to record and run the event which is getting fired at
> > > > client
> > > > > end while adding Annotation which uses WebSocket.
> > > > >
> > > > > Please let me know if there is a way to handle the web socket in
> > > Jmeter.
> > > > >
> > > > > Thanks,
> > > > > Niraj
> > > > >
> > > >
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to handle WebSocket event in Jmeter

fshutdown
This post has NOT been accepted by the mailing list yet.
In reply to this post by niraj
Have a look at this JMeter plugin for WebSocket I have developed.

Link: http://github.com/maciejzaleski/JMeter

Features:

 - Supports HTTS/HTTPS (ws/wss) version of the WebSocket protocol
 - Option to ignore SSL certificate errors
 - Streaming allows for a single connection to remain open for the duration of the test
 - Response has to match predefined regular expression
 - Response timeout
 - Response message backlog (build the Sampler response from multiple server messages)
 - Connection could be closed if server sends a message matching predefined regular expression


niraj wrote
Hello All,

Did anyone tried to work on script which has also Web Socket request?

I am not able to record and run the event which is getting fired at client
end while adding Annotation which uses WebSocket.

Please let me know if there is a way to handle the web socket in Jmeter.

Thanks,
Niraj
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to handle WebSocket event in Jmeter

rajkumar.nagula
This post has NOT been accepted by the mailing list yet.
Hi zaleski,

Can we capture the web socket response which is sent as json object based on a server event in jmeter. Help me in this.

Raj
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to handle WebSocket event in Jmeter

Sivaraj
This post has NOT been accepted by the mailing list yet.
Hi,

Did you manage to test the requirment. I have same requirment but unable to progress further.

If you already achieved. Could you please help me out.

Thanks
Sivaraj
Email: Sivaraj111raajjz@gmail.com
Loading...