Serenity BDD TodoMVC
Home > Requirements > Cucumber > Maintain my todo list > Completing todos
Report generated 23-05-2024 08:43

Feature: Completing todos

In order to make me feel a sense of accomplishment
As a forgetful person
I want to be to view all of things I have completed

Scenarios

Given Jane has a todo list containing Buy some milk, Walk the dog

When she completes the task called "Walk the dog"

Then her todo list should contain Buy some milk, Walk the dog

But the "Walk the dog" task should be shown as Completed

Given James has a todo list containing Buy some milk, Walk the dog

When he completes the task called "Walk the dog"

And he filters her list to show only Completed tasks

Then her todo list should contain Walk the dog

Given Sarah has a todo list containing {Initial Tasks}

When she completes the task called "Walk the dog"

Then the "{Task}" task should be shown as {Final Status}

Examples:

Initial TasksTaskFinal Status
Buy some milk, Walk the dogWalk the dogCompleted
Walk the dogWalk the dogCompleted
Buy some milk, Walk the dogBuy some milkActive

Given Jill has a todo list containing Buy some milk, Walk the dog

When she filters her list to show only Completed tasks

Then her todo list should be empty

Given Sophie has a todo list containing Buy some milk, Walk the dog

Then her remaining todo count should be 2

When she completes the task called "Walk the dog"

Then her remaining todo count should be 1

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 5 Total Duration 12s
Total Number of Test Cases 7 Fastest Test 2s
Number of Manual Test Cases 0 Slowest Test 9s
Tests Started May 23, 2024 08:43:43 Average Execution Time 5s
Tests Finished May 23, 2024 08:43:55 Total Execution Time 34s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Completing todos When a task is completed it remains in the main list Chrome,linux 4 08:43:43 9s 991ms SUCCESS
Completing todos Completed tasks should appear in the Completed list Chrome,linux 4 08:43:43 9s 501ms SUCCESS
Completing todos Completed tasks should be shown as Completed
3 passing test cases
Chrome,linux 3 08:43:52 3s 010ms SUCCESS
Completing todos The list of completed items should be empty if nothing has been completed Chrome,linux 3 08:43:51 4s 410ms SUCCESS
Completing todos The todo count should keep track of how many todos remain Chrome,linux 4 08:43:43 7s 401ms SUCCESS

Manual Tests

No manual tests were recorded
Serenity BDD version 4.1.12