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.
© 2001-2020 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.