Skip to content

Instantly share code, notes, and snippets.

@ArCiGo
Last active January 30, 2023 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArCiGo/1e791a302b1938b3459540f2a5cd3e09 to your computer and use it in GitHub Desktop.
Save ArCiGo/1e791a302b1938b3459540f2a5cd3e09 to your computer and use it in GitHub Desktop.
config:
# the URL that is going to be tested
target: "<yourMockServerURL>"
plugins:
expect: {}
phases:
# the time that the phase will last, in seconds
- duration: 1
# number of petitions per second during the defined duration
arrivalRate: 1
name: "Phase 1"
defaults:
headers:
Content-type: application/json
scenarios:
- flow:
# getting all users
- get:
url: "/users"
expect:
- statusCode: 200
- contentType: json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment