SIM001 › Games › Recreation
Your first pylon race › Start, throw at GO, fly five laps passed
As a pilot, I want to race other planes round the pylons, so that I can practise fast, tight turns against somebody.
The test behind the tutorial Your first pylon race: every step it takes, what it checks and what it saw.
Start
From the setup of Recreation.
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

- Every arranged state read back as arranged (16)
1 When the pilot starts a race
When the pilot starts a race Then the game is a race
Expected behaviour: G starts a race.

- the opponents are in hand · G starts a race
- the lap count is 0 · G starts a race
- the cut count is 0 · G starts a race
- the game is a race · G starts a race
- the game clock is waiting for takeoff · G starts a race
- the plane is in hand · G starts a race
2 When the throttle is 80 %
When the throttle is 80 % Then the game clock is counting down And the plane is flying
Expected behaviour: Throttle up throws the plane, The game waits for you to take off.

- the plane is flying · Throttle up throws the plane
- the game clock is counting down · The game waits for you to take off
3 When the countdown ends
When the countdown ends Then the game clock is running
Expected behaviour: At GO the computer pilots throw their planes.

- the opponents are flying · At GO the computer pilots throw their planes
- the game clock is running · At GO the computer pilots throw their planes
4 When the pilot flies a lap
When the pilot flies a lap
Expected behaviour: A lap is once round the outside of the pylons.

- the lap count is 1 · A lap is once round the outside of the pylons
5 When the pilot flies a lap
When the pilot flies a lap
Expected behaviour: A lap is once round the outside of the pylons.

- the lap count is 2 · A lap is once round the outside of the pylons
6 When the pilot flies a lap
When the pilot flies a lap
Expected behaviour: A lap is once round the outside of the pylons.

- the lap count is 3 · A lap is once round the outside of the pylons
7 When the pilot flies a lap
When the pilot flies a lap
Expected behaviour: A lap is once round the outside of the pylons.

- the lap count is 4 · A lap is once round the outside of the pylons
8 When the pilot flies a lap
When the pilot flies a lap Then the lap count is 5 And the game clock is stopped
Expected behaviour: A lap is once round the outside of the pylons, The last lap finishes the race.

- the lap count is 5 · A lap is once round the outside of the pylons
- the game clock is stopped · The last lap finishes the race