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
8.04k stars 511 forks source link

[Question] How to use http and websocket calls in one flow #1632

Closed savvagen closed 2 years ago

savvagen commented 2 years ago

@hassy Does artillery supports using http and ws engine in one single flow like:


scenarios:
  - name: Onboarding Flow
    engine: ws
    flow:
      - get:
           url: "/my/resource"
           expect:
             - statusCode: 200
      - connect: "{{ iws_url }}"
      - send: "{{ myData }}"
savvagen commented 2 years ago

The answer is here: https://github.com/artilleryio/artillery/issues/1005

qiulang commented 1 year ago

Hi added comment at 1005, so did you see here https://www.artillery.io/docs/guides/guides/socketio-reference#scenario-actions-and-configuration

The Socket.IO engine allows for HTTP actions actions to be used in scenarios alongside emit

hassy commented 1 year ago

@qiulang The Socket.io engine allows you to use HTTP actions in the same scenario