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
0
votes
0 answers

I'm doing performance testing using Artillery, But getting 400 status code

config: environments: dev: target: "https://dev.api.serverless-accelerator.myApp.io/serverless-accelerator" local: target: "http://127.0.0.1:3000/serverless-accelerator" defaults: headers: { Correlation-Object:…
Zak
  • 3
  • 1
0
votes
0 answers

Artillery - Unable to emit data to Java netty-socketio

I'm doing simple load test on netty-socketio Java, here when I run the load test I get "Client connected" message but looks like flows are not getting executed (I don't see any message in console after Client Connected) and all requests are getting…
Swastik
  • 144
  • 2
  • 19
0
votes
0 answers

How do I dynamically set a variable in Artillery to use in my Playwright function

I create a variable in my yml artillery file which I can then access from my Playwright function. variables: redirectUrl: "foo" I then dynamically assign a url I get from an api call to this variable. - post: url:…
0
votes
0 answers

socket.io server fails in scale test with artillery

I am executing the scale on socket.io using artillery using the steps mentioned in the blog - https://www.artillery.io/blog/load-testing-socketio-with-artillery with following modification (adding more users) config: target:…
dgm
  • 2,287
  • 1
  • 23
  • 27
0
votes
0 answers

Artillery return 404 for target url

I have an artillery config setup to test two different versions of my API gateway (Apollo federated Graphql gateway). The V2 gateway URL returns 404 with artillery, but from the browser and Postman, it is accessible. I am quite confused as to why…
0
votes
0 answers

How to install Artillery in a Gradle project

I've been searching online and don't see a way to install Artillery into a Gradle project. The documentation only has npm install. How exactly would I install Artillery.io into a Java Gradle project?
D.Hodges
  • 1,794
  • 4
  • 24
  • 47
0
votes
1 answer

NodeJS: 'MODULE_NOT_FOUND' after installing package

Here is a simple code that I want to run as a NodeJS script: const fs = require('fs'); const { Test } = require('artillery'); const options = { 'key': fs.readFileSync('./key.pem'), cert: fs.readFileSync('./certificates.pem'), ca:…
coding
  • 627
  • 7
  • 20
0
votes
1 answer

serverless artillery - how to view `slsart invoke` results?

Upon running the slsart invoke command, the deployed lambda is triggered and starts generating load against the target endpoint. However, once it finishes running there's no report generated in the CLI. Where can I find it? I do see some results at…
sP_
  • 1,738
  • 2
  • 15
  • 29
0
votes
0 answers

artillery not reporting request latency

I am running an artillery load test on a simple Rails ActiveCable app: config: target: "ws://localhost:3000/cable" phases: - duration: 10 # seconds arrivalRate: 1 # virtual users per second name: "Ramping up the…
guero64
  • 1,019
  • 1
  • 12
  • 18
0
votes
1 answer

Error on AWS API Gateway when running multiple requests without any CloudWatch logs

I'm using Artillery to run a small load test performance against a REST API (Edge endpoint) deployed with AWS API Gateway by using Serverless framework This API has a custom domain/ACM certificate configured and since I'm using Edge endpoint type it…
0
votes
0 answers

How can I use Faker library on Artillery's Docker Image?

So my dilemma is I want to run my script, which has a processor function that uses Faker library, on Gitlab Pipeline. The problem is the Artillery does not have the Faker library. I tried installing Faker inside the docker container as an…
yam09
  • 3
  • 2
0
votes
1 answer

/bin/sh: eval: line 125: /home/node/artillery/bin/artillery: not found when running the Artillery's sample .gitlab-ci.yml on CI/CD

I am a beginner and I want to try to integrate Artillery on Gitlab CI/CD, so I looked for Artillery's documentation and found the steps on how to do it. I followed the instructions and use this sample configuration found in the…
yam09
  • 3
  • 2
0
votes
1 answer

YAML file requires different amounts of indentation for different nodes

I'm attempting to write a YAML config script for a load testing utility called Artillery. The YAML syntax is not making any sense to me though. Artillery appears to deserialize the YAML to a Javascript object syntax so it expects nodes in the YAML…
Neutrino
  • 8,496
  • 4
  • 57
  • 83
0
votes
1 answer

arrivalRate lower than 1 using Artillery

I am trying to design load tests using Artillery on a computation-heavy API which typically requires at least a few seconds to send a response. Starting from examples found in the docs, I was able to run some tests such as this one: config: …
0
votes
1 answer

In Artillery. How do I log ETIMEDOUT?

I have a test that gets an ETIMEDOUT error. I want to know which URL is giving the timeout. I have the following hook already function logIfError(requestParams, response, context, ee, next) { if (response.statusCode !== 200 &&…
Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265