Serenity and Cucumber Quick Start
Home > Requirements > Api > Playing the game
Report generated 08-01-2026 10:13

Feature: Playing the game

Scenarios

POST http://localhost:37655/wordle/api/auth/register

POST http://localhost:37655/wordle/api/auth/login

Create a new game

Play the word 'ABCDE'

POST http://localhost:37655/wordle/api/auth/register

POST http://localhost:37655/wordle/api/auth/login

Create a new game

Create a new game with the word BLAND

Play the word 'BLAND'

Request the answer

POST http://localhost:37655/wordle/api/auth/register

POST http://localhost:37655/wordle/api/auth/login

Create a new game

Play the word 'FEAST'

Get the game history

POST http://localhost:37655/wordle/api/auth/register

POST http://localhost:37655/wordle/api/auth/login

Create a new game

Play the words '{FEAST,BEAST}'

Get the game history

POST http://localhost:37655/wordle/api/auth/register

POST http://localhost:37655/wordle/api/auth/login

Create a new game

Get the game result

POST http://localhost:37655/wordle/api/auth/register

POST http://localhost:37655/wordle/api/auth/login

Create a new game

Request the answer

POST http://localhost:37655/wordle/api/auth/register

POST http://localhost:37655/wordle/api/auth/login

Create a new game

Create a new game with the word BLAND

Play the words '{BEAST,BRAIN,BLAND}'

The game history should be correctly recorded

The player wins

POST http://localhost:37655/wordle/api/auth/register

POST http://localhost:37655/wordle/api/auth/login

Create a new game

Play the word 'FEAST'

POST http://localhost:37655/wordle/api/auth/register

POST http://localhost:37655/wordle/api/auth/login

Create a new game

Create a new game with the word {word}

Play the word '{word}'

Get the game history

POST http://localhost:37655/wordle/api/auth/register

POST http://localhost:37655/wordle/api/auth/login

Create a new game

Create a new game with the word {word}

Play the word 'ORGAN'

Get the game history

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 10 Total Duration 5s
Total Number of Test Cases 14 Fastest Test 281ms
Number of Manual Test Cases 0 Slowest Test 1s
Tests Started Jan 08, 2026 10:13:40 Average Execution Time 580ms
Tests Finished Jan 08, 2026 10:13:46 Total Execution Time 6s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Playing the game Invalid words should be rejected with a 403 error 4 10:13:40 653ms SUCCESS
Playing the game After the game has finished the answer can be revealed via via GET /api/game/{id}/answer 6 10:13:41 926ms SUCCESS
Playing the game When we make a move, the move is recorded in the game history 5 10:13:42 634ms SUCCESS
Playing the game We can check the current state of the game by sending a GET to /api/game/{id}/guesses 5 10:13:42 801ms SUCCESS
Playing the game We can get the current game result by sending a GET to /api/game/{id}/result 4 10:13:43 588ms SUCCESS
Playing the game If we try to ask for the answer by sending a GET to /api/game/{id}/answer 4 10:13:44 743ms SUCCESS
Playing the game This is an example of a complete game played via the API 7 10:13:44 1s 032ms SUCCESS
Playing the game We make a move by posting a word to the with the /api/game/{id}/word end-point 4 10:13:44 414ms SUCCESS
Playing the game Each cell should be rendered in the correct color
3 passing test cases
6 10:13:45 355ms SUCCESS
Playing the game shouldShowRowOfColoredCells(String, String, String, String, String, String, String)
3 passing test cases
6 10:13:45 485ms SUCCESS

Manual Tests

No manual tests were recorded
Serenity BDD version 5.0.4