Skip to content

Scripting in Total Control

Fresh

Total Control supports multiple scripting approaches for automation:

Scripting Languages

LanguageBest ForComplexity
AAISSimple tests, quick automationLow
JavaScript (Rhino)Complex scripts, full logicMedium-High
REST APIExternal tools, CI/CD integrationMedium
JS APIDirect TC scriptingMedium

AAIS vs JavaScript

FeatureAAISJavaScript
SyntaxSimple commandsFull JS language
ThreadingMulti-threaded (1-50 devices)Single-threaded per script
File extension.tst.js
Object-basedYesYes
Coordinate-freeYesYes
Error handlingScript stops on failureTry/catch available
VariablesLimited (save/load)Full JS variables
LoopsVia JavaScript blocksNative for/while

Getting Started

  1. AAIS — Best starting point for simple tests. See AAIS Script Language
  2. JavaScript — For complex logic and reusable functions. See JavaScript (Rhino)
  3. Device Classes — Understanding device objects. See Device & DeviceArray

Running Scripts

Scripts run through the Runner interface in either:

  • MDCC (Multi-Device Control Center) — for multi-device execution
  • WDM (Windows Desktop Mode) — for single-device testing

The task window displays progress and logs during execution.

Unofficial documentation. Source: sigma-rt.com