Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

websocket.messages_received not displayed in stats #2517

Open
BalzySte opened this issue Feb 26, 2024 · 0 comments
Open

websocket.messages_received not displayed in stats #2517

BalzySte opened this issue Feb 26, 2024 · 0 comments

Comments

@BalzySte
Copy link

Artillery fails to caputure websocket responses and display the messages_received count and rate

Version info:

Artillery: 2.0.6
Node.js:   v21.5.0
OS:        linux

Running this command:

artillery run test.yml

I expected to see this happen:

I expected to see the following stats on top of all the others

websocket.messages_received
websocket.receive_rate

The websocket (wss://echo.websocket.org) echoes back as expected, verified with Postman.

Instead, this happened:

All VUs finished. Total time: 26 seconds

--------------------------------
Summary report @ 14:30:24(+0530)
--------------------------------

vusers.completed: .............................................................. 200
vusers.created: ................................................................ 200
vusers.created_by_name.My WebSocket test: ...................................... 200
vusers.failed: ................................................................. 0
vusers.session_length:
  min: ......................................................................... 4326
  max: ......................................................................... 4588.5
  mean: ........................................................................ 4382.4
  median: ...................................................................... 4403.8
  p95: ......................................................................... 4492.8
  p99: ......................................................................... 4583.6
websocket.messages_sent: ....................................................... 400
websocket.send_rate: ........................................................... 20/sec
artillery run test.yml  11.56s user 1.19s system 43% cpu 29.190 total

Files being used:

test.yml configuration

config:
  target: "wss://echo.websocket.org"
  phases:
    - duration: 20
      arrivalRate: 10
  ws:
    # Set WebSocket subprotocols:

scenarios:
  - name: My WebSocket test
    engine: ws # Enable the Socket.io engine
    flow:
      - send: "Hello world!"
      - think: 3
      - send: "Booo"
      - think: 1

Others:
On top of that, debug messages printed with DEBUG=ws artillery run test.yml only shows SENT messages. There's no mention of RECEIVED messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant