If you wanted to have the responses in a certain order (response 1, response 2, etc.), you can use the scenarios functionality to achieve this. Check out the
scenarios documentation.```
{
"scenarioName": "My Scenario",
"requiredScenarioState": "Started",
"newScenarioState": "Called Once",
"request": {}
"response": {
"status": 200,
"body": "First response"
}
}
```
```
{
"scenarioName": "My Scenario",
"requiredScenarioState": "Called Once",
"newScenarioState": "Called Twice",
"request": {}
"response": {
"status": 200,
"body": "Second response"
}
}
```
If you always wanted them to be selected randomly, you could use the mustache templates to
randomly pick a number and have that point to a response file.
```
{
"request": {}
"response": {
"status": 200,
"bodyFileName": "path/to/files/{{{pickRandom '1' '2' '3' '4'}}}.json"
}
```
You'd then want to have the four separate Json response files.