SIM001

SIM001 › Flying in the sim › The simulator

Test report

Taking a break › Pause, read the help, carry on passed

As a pilot, I want to stop time mid-flight, so that I can look around or read the help without losing the plane.

The test behind the tutorial Taking a break: every step it takes, what it checks and what it saw.

Start

From the setup of The simulator.

Everything it starts with
Given the throttle is 0 %
  And the pitch stick is centred
  And the roll stick is centred
  And the wings are level
  And the flight controller is missing
  And the flight mode is MANUAL
  And the rates are high
  And differential thrust is on
  And the view is line of sight
  And auto-zoom is on
  And the help screen is hidden
  And the sim is running
  And the battery is at least 99 %
  And the game is free flight
  And the game clock is off
  And the plane is in hand
Screenshot
  • Every arranged state read back as arranged (16)

1 When the throttle is 80 %

When the throttle is 80 %
Then the plane is flying

Expected behaviour: Throttle up throws the plane.

Screenshot

2 When the pilot toggles pause

When the pilot toggles pause
Then the sim is paused

Expected behaviour: P pauses the sim.

Screenshot

3 When the pilot toggles the help

When the pilot toggles the help
Then the help screen is shown

Expected behaviour: H shows the help screen.

Screenshot

4 When the pilot closes the help

When the pilot closes the help
Then the help screen is hidden

Expected behaviour: Esc hides the help screen.

Screenshot

5 When the pilot toggles pause

When the pilot toggles pause
Then the sim is running

Expected behaviour: P again resumes.

Screenshot