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
2 answers

How to pass login parameters in the artillery.io request

I have started using 'Artillery.io for load testing. Here how to pass authentication parameters like email, password in the load-test.yml, the below throws 401 an unauthorised error while sending the request. Could someone guide me on how to pass…
soccerway
  • 10,371
  • 19
  • 67
  • 132
1
vote
1 answer

Artillery: How exactly does rampto work in artillery?

Not able to understand how rampto works in artillery > - duration: 10 > arrivalRate: 5 > rampTo: 10 Below is my whole scenario: - duration: 5 arrivalRate: 1 - duration: 10 arrivalRate: 5 rampTo: 10 - duration:…
QA_hacks
  • 257
  • 1
  • 6
  • 15
1
vote
1 answer

How to verify that every call of a load test generated a successful result at the end of a process chain?

I have an application that goes like this: ingestion --> queue --> validation --> persistance --> database I want to load test the ingestion and at the end verify that every submitted entry is stored in the database. I have an Artillery script that…
lpacheco
  • 976
  • 1
  • 14
  • 27
1
vote
2 answers

python3 http.server response is not valid (Postman and other tools)

I'm setting up a test server with the basic python3 library http and using the server module. Testing my server, I've managed to properly get and see the response using curl in the terminal: $ curl -H "Content-Type: application/json" -X GET…
fedest
  • 1,190
  • 3
  • 15
  • 35
1
vote
0 answers

Artillery json output differing

I am using artillery and I am exporting the results as a json file with -o result.json The problem is that it seems that the json files structure are not consistent depending on the arrivalRate. When arrivalRate=5, the latencies branch for the…
Enrique
  • 9,920
  • 7
  • 47
  • 59
1
vote
1 answer

Artillery script for API with random number is not working

I am using random number in api call as below, but its giving error. "post": { "url": "https://host/abc?Id=1&Amount={{{$randomNumber(4000,40000)}}}&rate={{{$randomNumber(1000000,1200000)}}}&amountType=1" } It's giving error as { Error: Line…
Chintamani Manjare
  • 1,543
  • 1
  • 13
  • 28
0
votes
0 answers

Run Playwright scripts written in TypeScript with Artillery

We are trying to execute Playwright test scripts written in TypeScript in Artillery. I want suggestions as I could find examples only with Playwright - JavaScript with Artillery. I understand that TypeScript can be transpiled to JavaScript. However,…
SKR
  • 779
  • 4
  • 17
  • 31
0
votes
0 answers

When configuring a test using Artillery, how can we pause between scenarios versus flows?

I'd like to find out how to pause between scenarios versus flows. The advantage to this is that scenarios are labeled and those labels show up in the final report to indicate which requests were made and if they succeeded. I've gone through the…
0
votes
0 answers

Artillery load testing not working with socket.io engine

I'm testing my video-chat app with artillery load testing, when I run a script file with only get request it works, but as soon I use socketio as engine it shows error. config: target: "http://localhost:4200" phases: -…
0
votes
0 answers

Load testing my nodejs API with cluster module

I have a nodejs express API. I set up the cluster module and nginx. Load testing gives me subpar results. Why? So I have a regular nodejs express API with 8 clusters set up. I try load testing to see if there will be a difference and it gives 400…
0
votes
0 answers

Artillery keeps Giving me 400 Errors even though Unit Tests and Manual Testing Works

I am new to this, in a bootcamp trying to get a basic API in Node to work with testing. The routes all work, I have manually tested in Postman. The unit tests also all pass. But when I try and run a basic artillery (v 1.7.9) I get nothing but 400…
NickD
  • 1
0
votes
1 answer

Unable to run npm install in pipeline using Artillery container for performance tests

I'm currently having issues with my performance tests running in the pipeline. I'm using Artillery to execute performance tests on a nightly CRON schedule and the workflow leverages Artillery's container: artilleryio/artillery:latest. The issue I'm…
D.Hodges
  • 1,794
  • 4
  • 24
  • 47
0
votes
0 answers

Confusion in request count via Artillery

I was trying artillery and ran the load test for approx 90mins on an endpoint in AWS. What I have observed the request count in ALB is near about 5K. However, the Artillery test results shows 456000 as http.requests. May be I am not understanding…
user8479984
  • 451
  • 2
  • 9
  • 23
0
votes
0 answers

How can i send a different header id for every request with Artillery?

I'm trying to send for instance 1000 concurrent requests with different request-id header for performance testing. API will notify if a request-id is duplicated, I'm facing Artillery will use same request-id for most requests. Is there any config…
0
votes
1 answer

Does crashing a shared CPU droplet effect others?

'Was unsuccessful with internet searches, sorry in advance if redundant... In using Artillery to test a DigitalOcean shared CPU droplet, would purposefully ramping up the load effect other users? Would pushing the load so high as to crash the…
PatrickReagan
  • 567
  • 5
  • 10