artilleryio / artillery

The complete load testing platform. Everything you need for production-grade load tests. Serverless & distributed. Load test with Playwright. Load test HTTP APIs, GraphQL, WebSocket, and more. Use any Node.js module.
https://www.artillery.io
Mozilla Public License 2.0
7.94k stars 507 forks source link

Log Socket Response always displays undefined #1524

Open kusaljr opened 2 years ago

kusaljr commented 2 years ago
config:
  target: "http://localhost:3000"
  phases:
      - duration: 5 
        arrivalRate: 1
  socketio:
      transports: ["websocket"]

scenarios:
  - name: "Emit an event"
    engine: socketio
    flow:
      - emit:
          channel: "chat-message"
          data: { "msg": "fooBar2" }
          response:
            channel: "chat-message"
            capture: 
              json: "$"
              as: "res"
      - log: "{{res}}"

What am i doing wrong here?

bkmalanN commented 6 days ago

Hi, were you able to fix this?