Parse input into data structure for core
nartydev opened this issue · 0 comments
nartydev commented
Note: this is blocked by #13
The input config and args must be parsed to be usable by the core.
By default, search inside config.json
within the current directory.
{
"request": {
"url": "",
"method": "",
"body": {},
"headers": [],
"queryParams": []
},
"args": {
"requestPerSecond": 10,
"requestsCount": 100,
"totalTimeout": 1000,
"requestTimeout": 800
},
"metadata": {
"collection": "",
"label": ""
"tag": "",
},
}
Each parameter must be overridable by command line arguments (flags).
# look for config.json in root directory
runner
# pass explicit path to config file
runner --config path/to/file
# pass any option flag to override
runner -rps 20