Questions tagged [artillery]

Artillery is a load testing and functional testing toolkit, which allows you to test HTTP, Socket.io, WebSockets, and AWS Kinesis.

Artillery is a load testing and functional testing toolkit which allows you to test HTTP, Socket.io, WebSockets, and AWS Kinesis.

Resources

Official Documentation

97 questions
1
vote
0 answers

serverless artillery package not converting boolean to boolean values and null values to null

I am trying to use serverless artillery package for load testing AWS lambda functions(nodejs). I see two issues with this package. As the documentation claims, the boolean values in the input are not taken as boolean values, but are converted to…
user4002112
  • 141
  • 1
  • 2
  • 18
1
vote
2 answers

Artillery.io Login and capture response and cookies before each VU runs

Using Artillery.io load tester I am trying to login each VU Before running the Scenarios flow (I do not want the login requests to be part of the scenario results) I tried moving the login flow to the beforeScenario but that doesn't seem to…
Yehuda Schwartz
  • 3,378
  • 3
  • 29
  • 38
1
vote
0 answers

Content-Type not being added to Header - Artillery.io

I am trying to create a scenario to curity to get a access token. From my debugging it looks like that the Content-Type is not working scenarios: - flow: - log: "getting token" - post: url: "/....." headers: …
James Mclaren
  • 666
  • 4
  • 10
  • 25
1
vote
1 answer

Artillery.io using Body url encoded form not working

It's worth noting that my request works in Postman. I essentially have the following scenarios: - name: 'Hit the Endpoint' flow: - log: "Hit the endpoint" - post: url: "/endpoint" headers: accept:…
James Mclaren
  • 666
  • 4
  • 10
  • 25
1
vote
1 answer

Artillery repeats same line from payload file

I'm trying to run a simple load test using Artillery. Ideally, each request should include data for a user, taken from the payload file: config: target: http://localhost:8000 payload: path: "../SampleData.csv" fields: - "userId" …
Stuart
  • 48
  • 5
1
vote
1 answer

Artillery not launching scenarios

I'm running my node server on http://localhost:5000 and wanted to do a performance test using artillery. Here is my yaml file: config: target: http://localhost:5000 phases: - duration: 20 arrivalRate: 3 name: Warm up scenarios: - name: Test1 …
kapil sarwat
  • 97
  • 1
  • 8
1
vote
2 answers

Is there a way to upload files with Artillery?

Is there a good approach to test upload files (form-data) with artillery? The http-file-uploads plugin inly works with Artillery Pro. I tried the solution given in this thread https://github.com/artilleryio/artillery/issues/320 writing a…
user_id
  • 37
  • 1
  • 8
1
vote
0 answers

Stress-testing with artillery - Getting an auth0 bearer token using login flow

I want to use artillery.io as a stress-testing tool, and want to setup a basic stress-test. But all my url's are behind an auth wall (using Auth0) and I want to try to get a valid token for the testing session so that my backend does not throw me…
Øystein Amundsen
  • 3,993
  • 8
  • 44
  • 63
1
vote
1 answer

Artillery - script.scenarios.forEach is not a function

I am new to Artillery and stuck in basic flow, I am getting following issue:- artillery run test_load.yaml /usr/local/lib/node_modules/artillery/lib/commands/run.js:315 script.scenarios.forEach(function(scenario) { …
zzz
  • 497
  • 3
  • 14
  • 32
1
vote
0 answers

TypeError: Cannot read property 'capture' of null while running artillery.io script

I get the following error when I try to run the command: artillery run realtime_transcribing_test.yaml: TypeError: Cannot read property 'capture' of null. realtime_transcribing_test.yaml: config: target: "ws://localhost:8001/calls/live-calls" …
Piyush Das
  • 610
  • 1
  • 7
  • 18
1
vote
1 answer

How can artillery.io load testing be distributed across multiple cores

It is likely realized when attempting to run larger scale tests with artillery.io that high CPU warnings will be displayed. As this technology runs a node process to drive test scenarios defined in yaml scripts, the single-core process can attempt…
madeyejm
  • 472
  • 3
  • 14
1
vote
1 answer

Get text content of captured selector in artillery test

I have an artillery test which I'd like to have check a title on a page to ensure that it is correct. I'm able to capture the element nicely using capture: - selector: "#BodyContent_lblWelcome" as: title This element is a…
stimms
  • 42,945
  • 30
  • 96
  • 149
1
vote
2 answers

Artillery: Load JSON document from CSV file

My lambda function which I want to test expects a complex json and as per my understanding json needs to go into the csv file. My problem is I have tried various ways to load the json from csv but keep getting errors. I am not sure if this is even…
Irfan
  • 566
  • 7
  • 13
1
vote
1 answer

How do i set a proxy url for Artillery load test?

We have to use a proxy server to send requests to our API for security purposes. it is in the http //: format. How do I add this proxy server in my ArtilleryJS yml file so that requests are sent using this proxy? there is a…
Souparno
  • 350
  • 1
  • 5
  • 18
1
vote
3 answers

How to capture an attribute from a random JSON index in serverless artillery

In Artillery, how can I capture the attribute of a random index in a JSON array returned from a GET, so my subsequent POSTs are evenly distributed across the…
Joe Alamo
  • 133
  • 1
  • 7