Updating with Overwrite
Background
How to Update ScenariosOvewriting
The following will overwite the scenario with newly recorded requests and their respective responses.
Steps
Select the scenario you want to overwrite. To select the scenario, set the scenario key:
stoobly-agent config scenario set <SCENARIO_KEY>Set the Agent to record mode with overwrite policy.
stoobly-agent intercept configure --mode record --policy overwriteEnable request interception with the Agent.
stoobly-agent intercept enableReplay the scenario either by trigging requests from the application or rerunning a test.
In the Proxy settings go to the Data section.
Set a scenario
For the Record Policy, choose overwrite. Then click the Update button at the bottom
Finally set the Proxy Mode at the top left to Record and click the Run button to start intercepting requests
Below is a screenshot showing what the UI configuration will look like:

Cleanup
After ovewriting your scenario successfully, you can disable intercepting requests with the Agent with the following command:
stoobly-agent intercept disableYou can also update your scenario key back to what it was before or you can clear it out so the Agent will not use any scenario. To clear the active scenario, run the following command:
stoobly-agent config scenario clearLast updated
Was this helpful?