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 <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > >
