Read and execute simple test scripts using Node SerialPort and Electron.
Pre-requisites:
Clone the repository using git and cd into it.
Install and start the project for local development:
npm install
npm startnpm run makeEventually, the final distributable ZIP will be in
out/make/zip/[PLATFORM]/[ARCH]/SysCol-[PLATFORM]-[ARCH]-[VERSION].zip
- Windows
out\make\zip\squirrel.windows\x64\SysCol-1.0.0 Setup.exe
- macOS
out/make/zip/darwin/x64/SysCol-darwin-x64-1.0.0.zipout/make/zip/darwin/arm64/SysCol-darwin-arm64-1.0.0.zip
A command has the following format:
{sc, xxx, yyyy1, ... zzzzN}
- starts with
"{sc,"(scstands for SysCol) - ends with
"}" xxxis the 3-letter command code lowercaseyis the first parameterzis the Nth parameter
A response has the same format of the command, except
- it is all uppercase.
- ends with
"}\r\n"
A macro starts with a @.
@close_log_file- close the log file@close_serial_port- close the COM port@confirm_test PROMPT TEST_ID LABEL_1 VALUE_1 LABEL_2 VALUE_2 SUCCESS_VALUE- fake test@continue PROMPT LABEL- display the prompt and wait for the user to click the button@echo- print a debug text line@if fail | pass COMMAND- execute the specified command on given condition@open_log_file FILENAME FORMAT- write a log file in the given format (fullortests-only)@open_serial_port COM BAUD_RATE-START_BITS-PARITY-STOP_BITS- open the given COM port@run_script SCRIPT_FILE- run sub script (serial port can be reused)@timeout TIME- set the execution timeout of subsequent commands@wait TIME- stop execution for the given amount of time
-
Windows
Control+N-File>New Window- open a script in a new windowControl+O-File>Open Script- open a script in the current windowControl+W-File>Close Window- close the current windowAlt+F4-File>Exit- quit the applicationControl+R-Script>Run- (reload and) run the current scriptF8-Script>Interrupt- interrupt current script execution
-
macOS
Command+N-File>New Window- open a script in a new windowCommand+O-File>Open Script- open a script in the current windowCommand+W-File>Close Window- close the current windowCommand+Q-SysCol>Quit- quit the applicationCommand+R-Script>Run- (reload and) run the current scriptCommand+.-Script>Interrupt- interrupt current script execution