hey guys. I'm trying todo the stateful behavior. ...
# help
t
hey guys. I'm trying todo the stateful behavior. I've created this scenario in the mapping folder
Copy code
{
  "mappings": [
    {
      "scenarioName": "PDP Product",
      "requiredScenarioState": "Started",
      "newScenarioState": "Product selected",
      "request": {
        "method": "GET",
        "url": "/api/v3/xxxlutz.at/products/008021030201"
      },
      "response": {
        "status": 200,
        "bodyFileName": "req.json"
      }
    },
    {
      "scenarioName": "PDP Product",
      "requiredScenarioState": "Product selected",
      "request": {
        "method": "GET",
        "url": "api/v3/xxxlutz.at/carts/155294111"
      },
      "response": {
        "status": 200,
        "bodyFileName": "cart.json"
      }
    }
  ]
}
the route is samples/hello/stubs/mappings/expensive.json