# Writing Scenario Files

open Proxy_scenario_engine


or

open Mockup_scenario_engine


depending on the desired mode to execute the scenario. The mode "proxy" is the default one and starts a whole sandboxed, proxied network whereas the mode "mockup" simulates multiple bakers and nodes in a single executable (see the section on the mockup engine for more details).

There is a single function to call to execute a scenario, run_scenario which takes as argument a value of type scenario.

This call should be the last top-level call of the scenario file, as the program will exit after the scenario is over with a code indicating success or a failure in the execution of the scenario.