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
18
votes
4 answers

Artillery.IO Logging and Debugging

I'm trying out Artillery.io (http://artillery.io) as a load and performance tool, but I can't seem to get the debugging working. I'm seeing the output and reports get generated, but for certain HTTP responses (404/401/500.x) I want to see the…
BlackSpy
  • 5,563
  • 5
  • 29
  • 38
12
votes
1 answer

How to create random string or Number in artillery load testing script?

For bombarding the server with multiple request with random data in parameters, how can I do it? the message block in artillery script is as below, "message": { "order1": "jngfj2434", "size":…
Chintamani Manjare
  • 1,543
  • 1
  • 13
  • 28
10
votes
2 answers

How to specify nested json body in POST request

I'm trying to set Artillery config to be able to send nested JSON body. This is how my configuration looks like: config: target: phases: - duration: 10 arrivalRate: 20 processor: "./input-parser.js" scenarios: - flow: -…
Bakir Jusufbegovic
  • 2,806
  • 4
  • 32
  • 48
5
votes
1 answer

How to automate the OAuth 2.0 token generation using Artillery?

I want to automate the OAuth 2.0 token automatically via javascript. Is there any way I can do that and obtain the token to use it in the artillery scrtips. For the OAuth token generation I have below details: Auth URL Client ID Scope It is done…
QA_hacks
  • 257
  • 1
  • 6
  • 15
5
votes
2 answers

Artillery: How can I mark a test scenario as failed using artillery load test and show the same in some report?

I am working on some test requirement where I have to fail a load test scenario when p95>100ms. I have written below test snippet: config: target: "https://news.google.com" # Responses have to be sent within 10 seconds or the request will be…
QA_hacks
  • 257
  • 1
  • 6
  • 15
5
votes
0 answers

NodeJS socket.io unable to handle arrival rate in performance test

On performance testing my node.js socket.io app it seems unable to handle the desired amount of concurrent websocket requests. I am testing the application in a Docker environment with the following specs: CPUs: 2 Ram: 4 GB The application is…
Jeroen
  • 1,991
  • 2
  • 16
  • 32
4
votes
1 answer

Artillery: How to publish artillery html report charts into Azure DevOps CI/CD pipeline?

I am working on a requirement where I have to generate the load test report using artillery tool and publish the report stats into our Azure DevOps pipeline. Artillery generates the report into html format and same I want to show into Azure DevOps…
QA_hacks
  • 257
  • 1
  • 6
  • 15
3
votes
0 answers

slsart deploy throwing error, how do I troubleshoot?

I am trying to use the command "slsart deploy" but it's not working for me. How do I troubleshoot the error below? slsart deploy /usr/local/lib/node_modules/serverless/node_modules/type/lib/resolve-exception.js:14 throw error; …
user4002112
  • 141
  • 1
  • 2
  • 18
3
votes
0 answers

How to run and stop running Artillery.io programmatically?

I am interested in implementing artillery.io tests, but I want them to run from inside a small server app, that would receive REST calls to start and stop the load on demand. Yet most help information online are focused on CLI-based stand-alone…
onkami
  • 8,791
  • 17
  • 90
  • 176
3
votes
0 answers

Artillery SocketIO Stream Throughput Test

I want to run an artillery test that spins up n socket.io clients that all listen for periodic packets coming from the server. The idea is that the server is broadcasting json "frames" at a certain interval and I would like to see how quickly the…
3
votes
3 answers

Artillery.io: How to generate test report for each Scenario?

Artillery: How to run the scenarios sequentially and also display the results of each scenario in the same file? I'm currently writing nodejs test with artillery.io to compare performance between two endpoints that I implemented. I defined two…
gerard talla
  • 165
  • 2
  • 3
  • 8
3
votes
3 answers

Using global variables across YAML files within Artillery

Is there any way in which I can say, define a URI that will be used in different .yml files for different Artillery load tests? I am wanting to use the same URI within a number of .yml files to define the target within the config section. I saw the…
physicsboy
  • 5,656
  • 17
  • 70
  • 119
3
votes
1 answer

Can't read CSV file in an artillery script file

I am performing load testing of a microservice and facing an issue while using Artillery. Script is failing when reading a csv file. Trying to import input data from a file in order to create a json request. Simplest script.yml: config: target:…
Kyle Bak
  • 304
  • 1
  • 3
  • 10
2
votes
0 answers

NodeJS Artillery with self signed client certificates

I installed the latest versions of nodejs and Artilliery. I want to do load tests using Artillery in this yml: config: target: "https://my.ip.address:443" phases: - duration: 60 arrivalCount: 100 tls: rejectUnauthorized: false …
coding
  • 627
  • 7
  • 20
2
votes
0 answers

Can we capture the value of a cookie from API response in Artillery.io

I am trying to capture a cookie value from a API response but the user is failing after running the command. config: target: "URL" phases: - duration: 100 arrivalRate: 10 scenarios: - name: "Login and fetch the token" flow: …
1
2 3 4 5 6 7