-
Notifications
You must be signed in to change notification settings - Fork 0
/
hello.yml
34 lines (34 loc) · 1.17 KB
/
hello.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
config:
target: "http://localhost:3002"
processor: "./my-functions.js"
phases:
- duration: 300
arrivalRate: 500
scenarios:
- name: "Get a Restaurant's Info"
flow:
# - function: "generateRandomData" {{id}}
- loop:
- get:
url: "/api/restaurants/{{$randomNumber(1,10000000)}}/info"
count: 1
# - name: "Update a Restaurant's Info"
# flow:
# - function: "generateRandomData"
# - loop:
# - post:
# url: "/api/restaurants/info"
# json:
# name: '{{restaurantName}}'
# address: '{{address}}'
# coordinates: '{{coordinates}}'
# phonenumber: '{{phonenumber}}'
# website: '{{website}}'
# monhours: '{{monOpenHours}}-{{monHoursClose}}'
# tueshours: '{{tuesHoursOpen}}-{{tuesHoursClose}}'
# wedhours: '{{wedsHoursOpen}}-{{wedsHoursClose}}'
# thurshours: '{{thursHoursOpen}}-{{thursHoursClose}}'
# frihours: '{{friHoursOpen}}-{{friHoursClose}}'
# sathours: '{{satHoursOpen}}-{{satHoursClose}}'
# sunhours: '{{sunHoursOpen}}-{{sunHoursClose}}'
# count: 1