This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
generated from inf112-v20/MavenTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Tester
Thomas edited this page May 7, 2020
·
30 revisions
Alle våre automatiske tester kan bli funnet i: ../src/test/java/roborally.
Testene er nummerert.
Dette kan testes med Debug Mode satt til enten true
eller false
- Når du er i menyen til spillet, trykk
Exit Game
med musepekeren.- 1.1 Verifiser at spillet avsluttes
- Når du er i selve spillet, trykk ESC
- 1.2 Verifiser at spillet avsluttes
Dette kan testes med Debug Mode satt til enten true
eller false
- Når du er i selve spillet og timeren teller ned
- trykk M for å åpne menyen.
- 2.1 Verifiser at menyen åpnes
- Trykk så
Continue
for å gå tilbake til spillet. - 2.2 Verifiser at timeren stopper opp når du er i menyen
- Når du er i selve spillet og robotene er i ferd med å utføre en runde
- trykk M for å åpne menyen.
- 2.3 Verifiser at menyen åpnes
- Trykk så
Continue
for å gå tilbake til spillet. - 2.4 Verifiser at
Continue
bringer deg tilbake til spillet - 2.5 Verifiser at robotene ikke har beveget seg siden du gikk inn i menyen
Dette kan testes med Debug Mode satt til enten true
eller false
- Når du ser menyen første gang, trykk 'Start New Game'.
- 3.1 Verifiser at et nytt spillbrett med roboter er klar
- Dersom
Debug Mode = false
- 3.2 Verifiser at spiller automatisk få utdelt kort og timer starter
- Dersom
Debug Mode = true
- Da skjer ikke så mye mer. Se ev. Debug Mode
- Etter du har startet første spill
- La spillet utfører en halv runde
- Trykk M for å åpne menyen
- Trykk
Start New Game
for å starte et nytt spill - 3.3 Verifiser at du får spørsmål om å avslutte eksisternde spill
- 3.4 Verifiser at du får svaralternativ til foregående spørsmål,
Yes
ogNo
- Trykk
Yes
for avslutte aktivt spill - Trykk nok en gang på
Start New Game
.- 3.5 Verifiser at da skal et nytt spill starte
- Trykk ENTER for å dele ut kort
- Velg noen kort og trykk OK
- 3.6 Verifiser at hele runden spiller med alle 5 faser
Dette kan testes med Debug Mode satt til enten true
eller false
- Use cursor to click "Change Map" in the Menu, verify that "change map"-section is visible
- Use cursor to click on arrows to look at different maps. Verify that visible map changes
- In "Change map", decide a map, use cursor to click "Pick this map", and start the game. Verify that the selected map is used for the new game
- In menu, press "Play a song", verify that a song plays
- In menu, change volume, verify that game volume changes depending on your choice
- Fire laser, verify laser sound
- Move robots, verify movement sound
- Change "Game Speed", verify that a round is played faster or slower, depending on your choice.
- Change "Laser Speed", verify that lasers move faster or slower, depending on your choice.
- In the menu, Start New Game with "FunMode" set it to "On". Verify that board is filled with robots.
- Start New Game with "FunMode" set it to "On", when already in a normal Game. Verify that board is filled with robots.
- Start New Game with "FunMode" set it to "Off", when already in a FunMode Game. Verify that board has 8 robots.
- A FunMode game should run as normal, only difference being many more robots.
Please see the controls for movement.
- Check that
Robot
moves as expected with arrow keys - Push other
Robot
s around. - Check that your
Robot
cannot go outside game board (This will be changed later, because of the game rules). - Move
Robot
into wall to see if collision works. - Move into a stationary laser and verify that laser stop on the
Robot
. - Move out of a stationary laser and verify that laser reappears if the
Robot
was blocking it. - Push
Robot
s into walls to see if collision works. - Push
Robot
s outside of game bord, to see if they go outside
- Check that you can push another
Robot
out of the map,Robot
should be destroyed. - Check that you can push another
Robot
into holes,Robot
should be destroyed. - Check that you can push another
Robot
onto flags and force check flag positions, SPACE. TheRobot
should now have updated its number of visited flags.
- Push other
Robot
s ontop of flags to see if their texture changes. - When your
Robot
is ontop of flags, check if their texture changes. - Push other
Robot
s ontop of hole to see if their texture changes. - When your
Robot
is ontop of hole, check if their texture changes.
Please see the controls for combat
- Check if lasers fire when looking in all four directions by pressing F.
- Check if laser stops on
Robot
s and walls. - Check that lasers cross each other fine.
- When a
Robot
is destroyed, it should reboot toarchiveMarker
. - When a
Robot
have rebooted 3 times, it should be not able to reboot again. i.e. The robot must be destroyed four times for it to be out of the game.
- Move
Robot
to flag 1, press SPACE, check console printA flag has been visited
appears.- Continue for the other flags in ascending order, pressing SPACE on each visist.
- When all flags has been visited as explained above, the console should write a sentence telling you have visisted all flags.
- For each direction
- For both
Normal conveyor belt
andExpress conveoyer bolt
- Move a
Robot
onto on aconveyor belt
, facing that direction - Press T to force one round (with one single phase)
- Verify that the
conveyor belt
moves therobot
in its direction
- Move a
- For both
- For each possible turn
- For both
Normal conveyor belt
andExpress conveoyer bolt
- Move a
Robot
onto on aconveyor belt
, next-to and before the turn we want to test. - Press T to force one round (with one single phase)
- Verify that the
conveyor belt
moves theRobot
onto the turn, and rotates theRobot
90 degrees in the direction of the turn
- Move a
- For both
- For each possible turn
- For both
Normal conveyor belt
andExpress conveoyer bolt
- Move a
Robot
onto on aconveyor belt
, onto the turn we want to test - Press T to force one round (with one single phase)
- Verify that the
conveyor belt
moves theRobot
to next conveyor belt, but does not rotates theRobot
.
- Move a
- For both
- Move a
Robot
onto on aClockwise turning cog
- Press T to force one round (with one single phase)
- Verify that the cog rotates the robot clockwise
- Move a
Robot
onto on aCounter-clockwise turning cog
- Press T to force one round (with one single phase)
- Verify that the cog rotates the robot counter-clockwise
- Press ENTER to verify that the
programming cards
becomes visible on the screen - Using the cursor, press a
programming card
and verify a visual indication for the cards position in the register - Try to select six
programming cards
and verify that this is not possible - Press "Done" to trigger the next round to play
- Do this test for several rounds, such that all cards are tested.
- Move 1
- Move 2
- Move 3
- Rotate Left
- Rotate Right
- U-Turn
- Move backwards 1
- Verify that your robot moves and rotates according to the cards you selected, in order.
- Verify that the number of cards on your hand is dependant on your robots health.
- Verify that can only play a number of cards equal to the minimum of (5, 9-number of damage tokens)
- Do this test for several rounds, such that all cards are tested.