Thanks for your reply! I neglected to mention this is all ASP.net core
2.2 (C#). So the
signal R library built in to that is handling all of the connection
details for me, including whether to use sockets or long polling or
one or two other options. It was simple to implement. (CORS is the
hassle, but that's another issue.)

So signal R isn't the issue. I just want jmeter to launch a number of
these web pages and let them sit for a number of minutes as they
process and display each newly received message. Sorry I'm having
trouble explaining things.

On 4/14/19, Andrew Burton <andrewburtona...@gmail.com> wrote:
> I've done some SignalR work, and it's a bit of a pain, with the caveat that
> the client library I was using was obsolete.
>
> Do you know how the client page interacts with SignalR, i.e. websockets, or
> long polling? If websockets, you can use the newer Java SignalR client:
> https://docs.microsoft.com/en-us/aspnet/core/signalr/java-client?view=aspnetcore-2.2.
> There should be plenty of information around testing JMeter with
> websockets, but the library will help.
>
> The newer Java SignalR client doesn't support long polling, so if you need
> to simulate that (like I did), you need to use the obsolete/unsupported
> older Java client: https://github.com/SignalR/java-client. The following
> blog post came in really handy:
> https://whatheco.de/2014/03/20/getting-started-with-the-java-signalr-sdk/
>
> You'll need to write a sampler (e.g. using the JSR223 Sampler) to initiate
> the connection to the hub (and make sure you've got the monitoring set up
> to identify number of connected clients), and possibly one to disconnect at
> the end of the test. Whether or not you need a third sampler to sit there
> and listen for a message from the hub to the client is up to you and what
> the goals of the test are. If you just want to make sure you can support x
> number of connected users, you probably won't need it.
>
> Good luck!
>
> On Sat, Apr 13, 2019 at 9:42 AM spamhole0 <spamho...@gmail.com> wrote:
>
>> I have a web page that simply displays messages as they're received
>> from a Signal R hub. I want to load test the hub by launching a number
>> of these client pages. I can't figure out how to configure the thread
>> group and HTTP request in jmeter since there's no input or result. I
>> just want to let each launched page sit there display the messages for
>> a number of minutes.
>>
>> Thanks in advance!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org

Reply via email to