Skip to main content

GSharp Testbed

The GSharp.Testbed project is the standard way to run, debug, and validate your module before registering it with gSharp. It is a .NET console application that runs locally, acting as a lightweight host for your module so you can test point and context mapping, calculation logic, and user logging, without the need for a live gSharp server.

Once configured, the testbed reads from your data source and executes your calculation as if it were running under a gSharp server. All module properties and methods behave the same, except that the testbed does not write output values back to the data provider (AF/Canary); instead, it logs what would have been written so you can verify behavior.

Important Note

The no-write-back behavior is intentional and exists to protect production data while you develop and debug.

Keep in Mind

Although the behavior of the testbed closely simulates a gSharp server, the particular gSharp server where your calculation will eventually run will typically use a different identity or connection to the data provider than your local user. Make sure the server has equivalent access so it can read the same data you use when testing in the testbed.