Skip to content

JRunner

itaiag edited this page Aug 9, 2016 · 1 revision

JRunner

The JRunner is the second module in JSystem; this is the module that is responsible for executing the scenario, helping the user to follow the execution, and at the end of the execution, helping the user to analyze the results.

Scenario Execution

The following section contains a list of scenario execution operations with a short technical description of each operation.

Run

In order to run a scenario, press on the run button, or activate the play menu item (Execution ? Run).

When run is activated, a new JVM for scenario is spawned from JRunner JVM. The new JVM activates an ANT interpreter which executes the scenario script.

Stop

In order to stop scenario execution, press on the stop button, or activate the stop menu item (Execution ? Stop).

The Stop Operation

When the stop operation is activated the remote JVM that executes the scenario is signaled to stop and terminate. Termination is immediate, the tear down method of the currently active test is not executed and system objects are not signaled to release resources.

Pause

In order to pause the scenario execution, press on the pause button, or activate the pause menu item (Execution ? Pause).

Figure 31: Scenario Pause Button

When the pause operation is activated a pause signal is sent to the remote scenario execution JVM, and scenario execution is paused.

In order to implement the pause functionality, the framework uses the reporter service. When the pause signal arrives to the remote tests JVM, a flag is raised, the next time a report message is logged, the reporter identifies that the pause flag is up, and goes over all the system object in the framework repository and signals them to pause by activating their "pause()" and enter the execution thread to the "wait" state.

When the run button is pressed again, the remote test JVM receives the run signal, the "resume()" method of all system objects in the system is invoked and the execution thread is resumed.

Freeze on Fail

In order to signal the JRunner to freeze the execution on test failure, check the "Freeze on fail" check box:

When a test fails a dialog opens and the JRunner waits for user input to continue execution.

Clone this wiki locally