SIM001

SIM001 › Towers › The rules of Towers

Shown for sim: the game with simulated drones, on this computer. This part isn't run on desktop; the version menu has the others.

Test report

Keep a drone in the air › Recharge over the base, then land for a swap not run

As a commander of a team, I want to recharge a drone at its base, so that it flies for the whole game.

The test behind the tutorial Keep a drone in the air: every step it takes, what it checks and what it saw.

Start

From the setup of The rules of Towers, and:

Given the first Blue drone is over its base
  And the batteries are on
  And the battery of the first Blue drone is 100 s
  And the battery swap is on
Everything it starts with
Given the game of Towers is in play
  And the time left is 600 s
  And the score of Blue is 0 points
  And the score of Red is 0 points
  And the towers held by Blue are 1
  And the west tower is neutral
  And the control of the west tower is 0 %
  And the Blue drones in the west circle are 0
  And the Red drones in the west circle are 0
  And the Blue drones on the ground in the west circle are 0
  And the east tower is neutral
  And the control of the east tower is 0 %
  And the Red drones in the east circle are 0
  And the place is the valley of Towers
  And the Red scout is at its base
  And the first Blue drone is over its base
  And the east tower on the Blue map is neutral
  And the batteries are on
  And the battery of the first Blue drone is 100 s
  And the canopy is off
  And the payload of the second Blue drone is a camera
  And the direction finding is off
  And the emission of the first Blue drone is loud
  And the emission of the Red scout is loud
  And the taskings are off
  And the tasking is none
  And the fronts are off
  And the front is none
  And the faults are off
  And the fault of the first Blue drone is none
  And the cloud base is none
  And the visibility is unlimited
  And the jammers are off
  And the payload of the Red scout is a camera
  And the tags are off
  And the payload of the first Blue drone is a camera
  And the payload of the first Blue drone on the Red map is unknown
  And the battery swap is on
  And the airframes are unlimited
  And the points in the route of the first Blue drone are 0
No screenshot yet: the tests haven't run.
No screenshot yet: the tests haven't run.
  • the game of Towers is in play · arranged
  • the time left is 600 s · arranged
  • the score of Blue is 0 points · arranged
  • the score of Red is 0 points · arranged
  • the towers held by Blue are 1 · arranged
  • the west tower is neutral · arranged
  • the control of the west tower is 0 % · arranged
  • the Blue drones in the west circle are 0 · arranged
  • the Red drones in the west circle are 0 · arranged
  • the Blue drones on the ground in the west circle are 0 · arranged
  • the east tower is neutral · arranged
  • the control of the east tower is 0 % · arranged
  • the Red drones in the east circle are 0 · arranged
  • the place is the valley of Towers · arranged
  • the Red scout is at its base · arranged
  • the first Blue drone is over its base · arranged
  • the east tower on the Blue map is neutral · arranged
  • the batteries are on · arranged
  • the battery of the first Blue drone is 100 s · arranged
  • the canopy is off · arranged
  • the payload of the second Blue drone is a camera · arranged
  • the direction finding is off · arranged
  • the emission of the first Blue drone is loud · arranged
  • the emission of the Red scout is loud · arranged
  • the taskings are off · arranged
  • the tasking is none · arranged
  • the fronts are off · arranged
  • the front is none · arranged
  • the faults are off · arranged
  • the fault of the first Blue drone is none · arranged
  • the cloud base is none · arranged
  • the visibility is unlimited · arranged
  • the jammers are off · arranged
  • the payload of the Red scout is a camera · arranged
  • the tags are off · arranged
  • the payload of the first Blue drone is a camera · arranged
  • the payload of the first Blue drone on the Red map is unknown · arranged
  • the battery swap is on · arranged
  • the airframes are unlimited · arranged
  • the points in the route of the first Blue drone are 0 · arranged

1 When the first Blue drone circles over its base for 25 seconds

When the first Blue drone circles over its base for 25 seconds
Then the battery of the first Blue drone is 175 s

Expected behaviour: A drone that circles over its base recharges 4 s each second.

No screenshot yet: the tests haven't run.
No screenshot yet: the tests haven't run.

2 When the first Blue drone lands at its base

When the first Blue drone lands at its base
Then the condition of the first Blue drone is on the ground

Expected behaviour: A drone that lands is on the ground at its base.

No screenshot yet: the tests haven't run.
No screenshot yet: the tests haven't run.

3 When the game runs for 30 seconds

When the game runs for 30 seconds
Then the battery of the first Blue drone is 240 s

Expected behaviour: A drone that lands at its base gets a full battery after 30 s.

No screenshot yet: the tests haven't run.
No screenshot yet: the tests haven't run.