Commands and Scripts
Overview
Tests are organized by fixture with brief descriptions of purpose and key validations.
Notation: [Test (ID, "Description")] → Test ID and user-facing name.
Commands and scripts
FluxTester works with commands like
`Type("b")`: and scripts `RunScript("...")`
Commands trigger actions like: Thread.Sleep (1000); Assert.False (FluxCrashed ());
A script can do convenient things like loading parts and assinging a material to it.
var parts = Directory.GetFiles (inputPath).Select (a => Flux.FX.LoadPart (a)).ToList ();
foreach (var part in parts) { if (part.Info.MatlName is "NONE") part.Info.MatlName = "1.0038"; part.DoSwitchToBending ();}
A skript could be executed for testing any time within Flux by the menue: View>scripting console and started by e.g.
#load "C:\mm\TSO\script.cs"
Within a test script calls (RunScript("…") and RunScriptWithOutput("…")) are used.