Functions

The XJTAG DLL defines a number of functions that can be used with the BT-BASIC xdcall command.

load_test_system
Opens an XJTAG project contained in an XJPack file.
close_test_system
Closes a project previously opened with load_test_system.
run_default_tests
Run the default tests in the test list of the current project and wait for it to complete.
run_test
Run a single test from the test list and wait for it to complete.
start_default_tests
Start running the default tests for the current project, and return immediately without waiting for them to complete.
start_test
Start running a single test from the test list and return immediately without waiting for it to complete.
wait_for_running_tests
Wait for any running tests started via start_default_tests or start_test to complete.
stop_running_tests
Abort any running tests started via start_default_tests or start_test.
get_last_test_output
Gets the output from the last tests that were run.
get_last_test_result
Gets the pass/fail result of the last tests that were run.

The xdcall command allows an optional string of parameters to be passed to the function and a return number and a return string to be returned from the function. The maximum length of the parameter string and return string is 80 characters.