Skip to content

Commit

Permalink
update artillery script for new testing round
Browse files Browse the repository at this point in the history
  • Loading branch information
efir-tractatus committed Feb 7, 2021
1 parent 84df78e commit da228db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 44 deletions.
34 changes: 0 additions & 34 deletions loadTesting/Results

This file was deleted.

20 changes: 10 additions & 10 deletions loadTesting/artillery_get_questions.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
config:
target: "http://localhost:4000"
target: 'http://192.168.1.7:8080'
phases:
- duration: 60
arrivalRate: 5
Expand All @@ -8,19 +8,19 @@ config:
arrivalRate: 5
rampTo: 100
name: Ramp up load
# - duration: 600
# arrivalRate: 50
# name: Sustained load
- duration: 300
arrivalRate: 200
name: Sustained load
payload:
# Load search keywords from an external CSV file and make them available
# to virtual user scenarios as variable "keywords":
path: "products.csv"
path: 'products.csv'
fields:
- "product"
- 'product'
scenarios:
# We define one scenario:
- name: "Get Questions in a Product"
- name: 'Get Questions in a Product'
flow:
- get:
url: "/graphql"
body: "query={ getQuestions(product_id: {{ product }}){ _id body name email date answers{ _id body name email photos } } }"
- post:
url: '/graphql'
json: { 'query': '{getQuestions(product_id: {{product}}){_id}}' }

0 comments on commit da228db

Please sign in to comment.