Create a basic scenario to run simulations
Create a basic scenario to test your startSession
and
getOffer
APIs in design time to make sure they return the expected
results.
About this task
Procedure
- From the Simulator tab in your interactive channel, click Create a basic scenario in the Scenario palatte.
- Enter a name for your basic scenario.
- Enter a description.
- Select an audience level from the drop-down list.
-
Select an audience ID.
You can either enter an audience ID manually or search for an audience ID.
If no record is found that matches your search criteria, you can create a temporary record with the scenario definition to match the criteria. This scenario definition is not in your database. Unica Interact creates a temporary record that matches your search conditions. The audience ID textbox displays as Temporary Record. The Temporary Record is always created with anonymous audience ID, regardless what you specified in the search conditions. The scenario can be saved with Temporary Record conditions, reloaded, and run with saved the Temporary Record, but this Temporary Record is not created in the profile table. It is only saved with the scenario definition as name-value-pairs. If you select a profile record that exists in the profile table, the Temporary Record is removed from scenario definition.
-
Select a Zone from the drop-down list. Since all interact points in a
zone behave the same, Unica Interact picks the first
IP in the selected zone and sets it as the IP parameter in the
getOffers
API. Only zones that have IPs defined are displayed in the drop-down list. - Enter the Number of offers for the scenario to return. If you do not enter the number of offers, Unica Interact returns all offers assigned in the strategy.
- Click Save to add this scenario to your saved scenarios. From Saved scenarios you can also edit, copy, or delete previously saved scenarios.
-
Click Run to test this scenario.
The simulation runs on a different thread. You can still browse or edit simulation scenarios, but cannot start another run until your previous run is complete.
Note: You cannot run an unsaved scenario. If you create or edit a scenario, you must save it before you can run the scenario with your updates. If you try to run an unsaved scenario, your last saved scenario runs instead. - Click Abort to abort the simulation run, if needed.
Results
getOffers
method on the Simulation results tab. You can view the offer name,
description, offer code, treatment code, and score. You can view additional attribute by clicking
the icon in the View attribute column. By default, the results are displayed
by highest score. Under the Log tab, you can also view the log results for your scenario run. Only the log entries for the last scenario run is displayed. The logs displayed on this tab are the as same as those logged in interact.log, but this tab filters the logs by the session ID and the start timestamp of your simulation run. The level of logging is determined by interact_log4j.properties.