Skip to content

Test Execution Framework

Fresh

Total Control includes an XML-based testing framework for comprehensive testing across multiple applications or sections of a single app.

Architecture

Components

ComponentFilePurpose
Test Execution Config (TEC).tecTop-level configuration — devices, iterations, timing
Test Harness.harnessContainer grouping test suites and nested harnesses
Test Suite.suiteCollection of test scripts for an app
Test Script.py / .jsIndividual test with FindNode assertions

How It Works

  1. TEC defines what to run, on which devices, how many times
  2. Harness organizes suites hierarchically
  3. Suites group related test scripts for an app
  4. Scripts use FindNode + assert for validation
  5. Results output as JSON + log files
  6. Report generator processes results (custom generators supported)

Assertion Model

FindNode is the core of each test script:

  • FindNode locates UI elements by properties (not coordinates)
  • assert validates element state
  • Assert fail = test fail; otherwise pass

File Locations

After installation, test framework files are at:

%appdata%\Sigma-RT\Total Control\modules\test

Running Tests

Command Line

Open Total Control > Script > Terminal:

javascript
addToClasspath('C:/Users/admin/AppData/Roaming/Sigma-RT/Total Control/modules/test');
runTest("TestExecutionConfiguration.tec")

UI Method

  1. In Script window, click Test Execution
  2. Click + to create new configuration
  3. Configure: Name, Target, Devices, Test Run, Iterations, Log paths
  4. Click Save and Run
  5. View results in the list
  6. Click log icon for report and execution logs

See Also

Unofficial documentation. Source: sigma-rt.com