📁 Test Data Set
Ddosify enables you to load test data from CSV files. Later, in your scenario, you can inject variables that you tagged.
We are using this CSV data in config below.
// config_data_csv.json
"data":{
"csv_test": {
"path" : "config/config_testdata/test.csv",
"delimiter": ";",
"vars": {
"0":{"tag":"name"},
"1":{"tag":"city"},
"2":{"tag":"team"},
"3":{"tag":"payload", "type":"json"},
"4":{"tag":"age", "type":"int"}
},
"allow_quota" : true,
"order": "random",
"skip_first_line" : true
}
}
You can refer to tagged variables in your request like below.
// payload.json
{
"name": "{{data.csv_test.name}}",
"team": "{{data.csv_test.team}}",
"city": "{{data.csv_test.city}}",
"payload": "{{data.csv_test.payload}}",
"age": "{{data.csv_test.age}}"
}