Skip to content

Fixtures UI

itaiag edited this page Aug 9, 2016 · 1 revision

Working with Fixtures from the Runner

Fixtures can be assigned to a test programmatically or by assigning a fixture to a scenario. In order to assign a fixture to a scenario, select the fixture in the "Test Tree" and press on the "Add test to scenario" button. When assigning a fixture to a scenario, the fixture is automatically assigned to all the tests in the scenario.

Note: Assigning a fixture to a test by assigning it to a scenario overrides programmatic assignment. Only one fixture can be assigned to a scenario. Unlike tests, fixtures do not support parameterization.

Fixtures

The JRunner module in JSystem, allows the user to track fixture navigation during scenario execution, and to manually trigger the navigation to fixtures.

In order to track fixture navigation during scenario execution, select the fixtures tab.

The Fixtures tab in the JRunner displays the fixtures that are defined in the system and their resulting hierarchical structure.

During the execution of a scenario, the JRunner graphically navigates down the fixtures tree inside the fixtures tab. The current fixture is highlighted in blue.

Manual Navigation to a Fixture

In order to manually navigate to a fixture press the "Go to" button.

To navigate through "failTearDown" methods, press the "Fail to" method as appears in the JRunner image.

Setting the Current Fixture without Navigation

In order to manually set the current fixture without having to navigate to it, select the fixture and press the "set current" button.

Reference: More on Fixtures can be found in the Fixtures section.

Clone this wiki locally