Initializing help system before first use

Activating Test Mode

If you're developing a large and complex Mosel solution to run within Insight, you may want to be able to test parts of this outside of Insight. But how to do this if your Mosel calls mminsight functions? If you put mminsight into test mode, you can simulate (or "mock") how mminsight functions will behave when your Mosel code is run outside of Insight.

To activate test mode, simply set the parameter insight_testmode to be 'true'. When in test mode, the insight_is_scenario parameter will always return 'true' and insightgetmode will return INSIGHT_MODE_RUN, to simulate the behaviour of an Insight scenario.

Test mode should not be activated when running your application inside Insight - only in an external, non-Insight test environment.