Skip to main content

Testing Flow Scripts

General

You can use the dotnet tester to test a script, which can be run like so

dotnet run ScriptName parameters

For example

dotnet run '.\Scripts\Flow\Hardware\NVIDIA - Below Encoder Limit.js' --EncoderLimit 2
dotnet run .\Scripts\System\DownloadClients\PauseSABNZbd.js --var:FileFlows.Url http://fileflows.lan --var:SABnzbd.Url http://sabnzbd.lan/ --var:SABnzbd.ApiKey 123456789ABCDEFGHIJKLMNOP

Variables

Variables are used by System and Shared scripts to read in user configurable values, e.g. a API URL or Access Token.

The should be in the format of [Product].[Name], for example FileFlows.Url


Dotnet Tester Command Line

NameDescriptionUsedExample
--nameA function variable to pass into a scriptfunction Script(MyVariable)--MyVariable "A String"
--var:nameA value to set in the VariablesVariables.MyVariable--var:MyVariable "A String"