- Create a new scenario file
Scenario files are simply JS files that have a naming convention of "Scenario-{ScenarioName}.JS". Scenario files should only contain the following:
- Base scenario Object (see below)
- Scenario stesps
- Scenario data
- Code to add the scenario to the list of available scenarios
New scenario files can be created from "Scenario-Example.js". This file contains a blank default scenario and adds it to the avilable scenarios.
- Add the new scenario to the list of available scenarios
Once the new scenario file is complete the new scenario file must be included in index.html. This must be done in the section marked for scenario files.
<script src="Scenario-Example.js"></script>
- Add the data steps to the scenario object
scenarios.push(
{
id: '...',
title: '...',
consolidationMode: 'Consolidate',
irMatchKey: 'Email',
steps:
[
// Add new steps of a scenario HERE <---
{
title: '...',
description: '...',
data:
[
// Add new data to a step HERE <---
]
}
]
}
);