Slackbot
03/01/2024, 11:10 AMTom
03/01/2024, 11:26 AMNuno Frias
03/01/2024, 11:30 AM{
"mappings": [
{
"scenarioName": "My test scenario",
"requiredScenarioState": "Started",
"request": {
"method": "GET",
"urlPattern": "/example"
},
"response": {
"status": 200,
"jsonBody": {
"stepNumer": 0
}
}
},
{
"scenarioName": "My test scenario",
"requiredScenarioState": "Started",
"newScenarioState": "Step1",
"request": {
"method": "GET",
"urlPattern": "/example"
},
"response": {
"status": 200,
"jsonBody": {
"stepNumer": 1
}
}
},
{
"scenarioName": "My test scenario",
"requiredScenarioState": "Step1",
"newScenarioState": "Step2",
"request": {
"method": "GET",
"urlPattern": "/example"
},
"response": {
"status": 200,
"jsonBody": {
"stepNumer": 2
}
}
},
{
"scenarioName": "My test scenario",
"requiredScenarioState": "Step2",
"newScenarioState": "Step3",
"request": {
"method": "GET",
"urlPattern": "/example"
},
"response": {
"status": 200,
"jsonBody": {
"stepNumer": 3
}
}
},
{
"scenarioName": "My test scenario",
"requiredScenarioState": "Step3",
"newScenarioState": "Step4",
"request": {
"method": "GET",
"urlPattern": "/example"
},
"response": {
"status": 200,
"jsonBody": {
"stepNumer": 4
}
}
}
]
}
When I send my requests I get:
$ curl <http://localhost:11091/example>
{"stepNumer":1}
$ curl <http://localhost:11091/example>
{"stepNumer":2}
$ curl <http://localhost:11091/example>
{"stepNumer":3}
$ curl <http://localhost:11091/example>
{"stepNumer":4}
I would expect the first request to return "stepNumer":0
Nuno Frias
03/01/2024, 11:31 AMTom
03/01/2024, 11:31 AMNuno Frias
03/01/2024, 11:32 AM"newScenarioState"
?Tom
03/01/2024, 11:33 AMNuno Frias
03/01/2024, 11:34 AMNuno Frias
03/01/2024, 11:35 AMNuno Frias
03/01/2024, 11:35 AMTom
03/01/2024, 11:35 AMTom
03/01/2024, 11:36 AMnewScenarioState
is optional, but there’s never a case where you can’t have it