Test Execution Framework
FreshTotal Control includes an XML-based testing framework for comprehensive testing across multiple applications or sections of a single app.
Architecture
Components
| Component | File | Purpose |
|---|---|---|
| Test Execution Config (TEC) | .tec | Top-level configuration — devices, iterations, timing |
| Test Harness | .harness | Container grouping test suites and nested harnesses |
| Test Suite | .suite | Collection of test scripts for an app |
| Test Script | .py / .js | Individual test with FindNode assertions |
How It Works
- TEC defines what to run, on which devices, how many times
- Harness organizes suites hierarchically
- Suites group related test scripts for an app
- Scripts use FindNode + assert for validation
- Results output as JSON + log files
- Report generator processes results (custom generators supported)
Assertion Model
FindNode is the core of each test script:
FindNodelocates UI elements by properties (not coordinates)assertvalidates element state- Assert fail = test fail; otherwise pass
File Locations
After installation, test framework files are at:
%appdata%\Sigma-RT\Total Control\modules\testRunning 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
- In Script window, click Test Execution
- Click + to create new configuration
- Configure: Name, Target, Devices, Test Run, Iterations, Log paths
- Click Save and Run
- View results in the list
- Click log icon for report and execution logs
See Also
- Test Harness & Suites — XML structure details
- FindNode — Query language for test assertions