Enabling and Disabling Tests

The Test List on the right of the main screen shows the list of tests for the current project. Each test has an icon to the left of its name which allows you to see whether it will be performed when you click the Run button in the main part of the screen.

When the Run Tests screen is first shown, the default tests are enabled.

You can change which tests are run and how many times they are run. Changes made on this screen will not be saved, so next time the project is loaded the project defaults will be restored. If you wish to make the change permanent then it needs to be made either in the XJRunner Setup screen of XJDeveloper, or in the Project Management settings in XJRunner.

Control how a test runs by right-clicking on the function or test group, or selecting it and clicking Selected Test at the bottom of the panel.

In either case there are four options related to running tests:

Loop
Run this test continuously (shown as or )
Multiple
You will also need to enter the number of times to run the test (shown as or and the number of loops is shown after the test name)
Once
The normal mode of operation where the test is run once (shown as or Tick)
Do not run
Disable the test from running (shown as or Cross)

Shortcuts to enable/disable tests

A function or group can be quickly toggled between disabled and enabled to run once by a single-click on the test's icon, a double-click on the test's name or by selecting the test and pressing spacebar.

Applying test list presets

Test list presets are subsets of the test list that can all be enabled together. Clicking a preset option on the Presets dropdown menu will reset the test list such that all tests included in the preset are enabled to run once and all other tests are disabled. All projects come with 3 built-in preset options:

All
Sets all tests in the project to be run (once)
None
Sets all tests in the project to not run
Default
Resets the test list to the default tests for the project

Extra custom presets can be added to the project on the XJRunner Setup screen in XJDeveloper. Once added, these custom presets will appear in the Presets dropdown menu and can be applied in the same way as the built-in presets.

Conditions in the test list

If conditions ()are present in the test list, then they can prevent tests from being run in isolation, particularly if the condition refers to the result of a another test. Conditions can therefore be overridden and forced to always evaluate as TRUE or FALSE.

Overriding conditions

To override a condition select it in the test list. The Selected Condition button will appear in the menu at the bottom, from where you can select what value the condition should evaluate to.

Selected Condition

Or alternatively, single-clicking the icon next to the condition or double clicking the condition name will cycle through the three override possibilities.

If forced to True then the icon will appear with a tick next to it and if forced to False a cross will appear .