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.92k stars 505 forks source link

Get socket.io query parameter by HTTP request #442

Open birbird opened 6 years ago

birbird commented 6 years ago

My test scenario is like:

  1. Http POST request get a token
  2. connet socket.io with the token
  3. emit data to socket and get response

From the doc, I don't find how can achieve this, especially the socket.io with dynamic query parameter Is it possible and how? Any help will be highly appreciated!

andreyrojasGL commented 5 years ago

Any help with this? I have the same issue

loki-screena commented 3 years ago

I tried beforeScenario and artillery-engine-socketio-v3 but no avail.

h6ak commented 3 years ago

Dynamic query parameter is supported in dev preview version (https://github.com/artilleryio/artillery/pull/883), but parameter acquired by HTTP request is not.

I tried beforeScenario and artillery-engine-socketio-v3 but no avail.

It seems that beforeScenario is only available on http engine.