Pradeep Goli
Pradeep Goli

Reputation: 1

JMeter - Single Page Application - Blazor Application - Web socket connections - Service stack authentication

I have to perform client End Load testing for Single Page application - Blazor server technology which uses Narrum services with Service stack authentication. When tried to record application with JMeter and Blaze meter, I can see only few http requests that to only GET requests. I can't see any session Id's or authentication details like the provided User name and Passwords in those requests. Can any one please suggest whether I need to add the web socket connection explicitly using Web socket sampler to the recorded script or any other suitable tool that can be used for this application Client-End performance? Thanks in advance...

I have tried recording with JMeter, Blazemeter. Also converting Har file to JMX. But no where I can find connection requests. In developer tools observed WSS requests

enter image description hereenter image description here

Upvotes: 0

Views: 348

Answers (2)

James Pulley
James Pulley

Reputation: 5692

Do you have the right tool for your needs? You have a complex application running substantial client sode JavaScript code that is reversing the concept of client and server to have notifications sent to the client. perhaps you might consider a model that runs full browsers so you can inherit a lot of capability that you need?

Upvotes: 0

Dmitri T
Dmitri T

Reputation: 168147

As it evidenced by its name JMeter's HTTP(S) Test Script Recorder is only capable of recording HTTP or HTTPS requests. Same applies to BlazeMeter, current version of Chrome Extension won't record WebSocket traffic. You can submit a feature request for the latter one.

WebSocket is a different protocol and I'm not aware of any existing JMeter plugin which is capable of recording this type of traffic.

In the meantime you can work it around as follows: you can capture the network footprint of the real browser using either your browser developer tools or 3rd-party sniffer like Fiddler or Wireshark. Once you identify which WebSocket requests does browser send you can use i.e. JMeter WebSocket Samplers plugin to simulate these requests with JMeter.

More information: JMeter WebSocket Samplers - A Practical Guide

Upvotes: 0

Related Questions