Serenity and Cucumber Quick Start
Home > Requirements > Api
Report generated 12-03-2024 07:14

Capability: Api

Feature Coverage By Scenario

Requirements Overview

Key Statistics

Number of Scenarios 33
Total Number of Test Cases 33
Tests Started Mar 12, 2024 07:14:24
Tests Finished Mar 12, 2024 07:14:33
Total Duration 8s
Fastest Test 96ms
Slowest Test 2s
Average Execution Time 459ms
Total Execution Time 15s

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 33 Total Duration 8s
Total Number of Test Cases 33 Fastest Test 96ms
Number of Manual Test Cases 0 Slowest Test 2s
Tests Started Mar 12, 2024 07:14:24 Average Execution Time 459ms
Tests Finished Mar 12, 2024 07:14:33 Total Execution Time 15s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Wordle Status Check We can check the status of the Wordle service by sending a GET to /api/service 1 07:14:24 2s 238ms SUCCESS
Creating a new game The new game should initially be In Progress 4 07:14:24 2s 653ms SUCCESS
Creating a new game Each new game should be assigned a unique id 3 07:14:25 1s 132ms SUCCESS
Creating a new game The new game should contain no moves 4 07:14:28 233ms SUCCESS
Game history and statistics Game results are recorded in the game history 9 07:14:24 2s 646ms SUCCESS
Game history and statistics Game statistics can be retrieved for the current player 11 07:14:30 239ms SUCCESS
Game history and statistics Player statistics should appear in the leaderboard 11 07:14:31 189ms SUCCESS
Getting hints We can request a hint for the current game via GET /api/game/{id}/hint 5 07:14:28 298ms SUCCESS
Getting hints Hints should include "The word starts with the letter B"
1 passing test case
6 07:14:32 147ms SUCCESS
Getting hints Hints should include "The word ends with the letter D"
1 passing test case
6 07:14:32 339ms SUCCESS
Getting hints Hints should include "The word contains 1 vowel"
1 passing test case
6 07:14:32 184ms SUCCESS
Playing the game Invalid words should be rejected with a 403 error 4 07:14:29 296ms SUCCESS
Playing the game When we make a move, the move is recorded in the game history 5 07:14:29 312ms SUCCESS
Playing the game After the game has finished the answer can be revealed via via GET /api/game/{id}/answer 6 07:14:29 213ms SUCCESS
Playing the game We can check the current state of the game by sending a GET to /api/game/{id}/guesses 5 07:14:30 165ms SUCCESS
Playing the game This is an example of a complete game played via the API 7 07:14:30 288ms SUCCESS
Playing the game We can get the current game result by sending a GET to /api/game/{id}/result 4 07:14:30 268ms SUCCESS
Playing the game We make a move by posting a word to the with the /api/game/{id}/word end-point 4 07:14:31 211ms SUCCESS
Playing the game If we try to ask for the answer by sending a GET to /api/game/{id}/answer 4 07:14:31 282ms SUCCESS
Playing the game [1] word=CRYPT, guess=CRYPT, cell1=GREEN, cell2=GREEN, cell3=GREEN, cell4=GREEN, cell5=GREEN
1 passing test case
6 07:14:32 096ms SUCCESS
Playing the game [2] word=CRYPT, guess=BOARD, cell1=GRAY, cell2=GRAY, cell3=GRAY, cell4=YELLOW, cell5=GRAY
1 passing test case
6 07:14:32 157ms SUCCESS
Playing the game [3] word=CRYPT, guess=CROWN, cell1=GREEN, cell2=GREEN, cell3=GRAY, cell4=GRAY, cell5=GRAY
1 passing test case
6 07:14:32 165ms SUCCESS
Playing the game When the word is CRYPT and the guess is ORGAN, the row is GRAY, GREEN, GRAY, GRAY, GRAY
1 passing test case
6 07:14:32 308ms SUCCESS
Playing the game When the word is CRYPT and the guess is BRACE, the row is GRAY, GREEN, GRAY, YELLOW, GRAY
1 passing test case
6 07:14:32 186ms SUCCESS
Playing the game When the word is CRYPT and the guess is CRYPT, the row is GREEN, GREEN, GREEN, GREEN, GREEN
1 passing test case
6 07:14:32 230ms SUCCESS
Registering a new user Password should be stored as a hashed password 1 07:14:28 226ms SUCCESS
Registering a new user Email must be unique 2 07:14:28 168ms SUCCESS
Registering a new user Username must be unique 2 07:14:29 135ms SUCCESS
Registering a new user Players need to register before they can login and play 1 07:14:29 263ms SUCCESS
Registering a new user Logged-on players can play the game 3 07:14:29 247ms SUCCESS
Registering a new user Password must not be empty 1 07:14:30 121ms SUCCESS
Registering a new user Users cannot access the game without logging on 2 07:14:30 305ms SUCCESS
Registering a new user Players can log on with their username and password 2 07:14:30 239ms SUCCESS

Manual Tests

No manual tests were recorded
Serenity BDD version 4.1.3