insightsetappname
insightsetappname |
Purpose
Sets the value to use for the application name during a test.
Synopsis
procedure insightsetappname(newappname:text)
Argument
newappname
|
The string to use for the application name
|
Example
insightsetappname('My App') writeln('app name = ',insightgetappname)
Demonstration of setting the application name then outputting it
Further information
1. Used to mock the Insight application state when testing code outside of an Insight scenario.
2. Without calling this function,
insightgetappname will return "appname" in test mode.
3. Calling this procedure when
insight_testmode is
false will cause the model to abort with a runtime error.
Related topics