FitNesse

TodoTests

Test Pages: 5 right, 0 wrong, 1 ignored, 0 exceptions     Assertions: 30 right, 0 wrong, 0 ignored, 0 exceptions (7,003 seconds)

Test Summaries

slim:. itsharpRunner.exe

Test output

Test System: slim:.\fitsharp\Runner.exe

PersistanceTests.CreateTodoAndEnsureItIsPersisted

Top

Included page: .TodoTests.SetUp (edit)

import
Fitnesse.Fixtures

script InitializeFixture
Initialize Application
Initialize Date 01/01/2014

Create A Todo And Ensure It Is Persisted

We want to make sure that an item created is persisted when restarting the application

we clean the database to have no item at all

script Database Fixture
Delete All

We type the text of our todo and hit enter


script Add Todo Popup Fixture
type text test TODO on the textbox and hit enter

We close and start the application again

script Application Fixture
Restart

We check that the todo list contains our item

query: Get all todos
Done Text Due Date
NO test TODO 02/01/2014



PersistanceTests.MarkTodoDoneAndEnsureItIsPersisted

Top

Included page: .TodoTests.SetUp (edit)

import
Fitnesse.Fixtures

script InitializeFixture
Initialize Application
Initialize Date 01/01/2014

Mark a Todo As Done And Ensure It Is Persisted

We want to make sure that an item set to Done is persisted when restarting the application

we reset the database to have sample data

script DatabaseFixture
Populate with sample items

We check a checkbox

script TodoListFixture
check item with text Sample Todo 1


We close and start the application again

script ApplicationFixture
Restart


We check that the todo is present and checked

query:Get all todos
Done Text Due Date
YES Sample Todo 1 01/01/2000
NO Sample Todo 2 01/01/2000
NO Sample Todo 3 01/01/2000

SetUp

Top

Included page: .TodoTests.SetUp (edit)

import
Fitnesse.Fixtures

script InitializeFixture
Initialize Application
Initialize Date 01/01/2014

import
Fitnesse.Fixtures

script InitializeFixture
Initialize Application
Initialize Date 01/01/2014

TodoManipulationTests.AddSimpleTodo

Top

Included page: .TodoTests.SetUp (edit)

import
Fitnesse.Fixtures

script InitializeFixture
Initialize Application
Initialize Date 01/01/2014

Add a simple todo

We want to make sure that an item is created on the items list when we add a todo on the upper part of the page

we clean the database to have no item at all

script DatabaseFixture
Delete All

We click on the "Add" button on the main screen

script MainFixture
Click on Add Button
check Add Todo Popup Visibility Visible

We type the text of our todo and hit enter


script Add Todo Popup Fixture
type text test TODO on the textbox and hit enter

We check that the todo list contains our item only

query: Get all todos
Done Text Due Date
NO test TODO 02/01/2014


TodoManipulationTests.AddTodoWithDate

Top

Included page: .TodoTests.SetUp (edit)

import
Fitnesse.Fixtures

script InitializeFixture
Initialize Application
Initialize Date 01/01/2014

Add a todo with date

We want to make sure that an item is created on the items list when we add a todo on the upper part of the page

we clean the database to have no item at all

script DatabaseFixture
Delete All

We type the text of our todo and hit enter


script Add todo Popup fixture
set date to 2015-12-25
type text Buy a present for Dad on the textbox and hit enter

We check that the todo list contains our item only

query: get all todos
Done Text Due Date
NO Buy a present for Dad 25/12/2015

TodoManipulationTests.MarkTodoAsDone

Top

Included page: .TodoTests.SetUp (edit)

import
Fitnesse.Fixtures

script InitializeFixture
Initialize Application
Initialize Date 01/01/2014

Mark a Todo As Done

We want to make sure that an item is set to Done when checking the checkbox

we reset the database to have sample data

script DatabaseFixture
Populate with sample items

We check a checkbox

script TodoListFixture
check item with text Sample Todo 2


We check that the todo is checked

query: get all todos
Done Text Due Date
NO Sample Todo 1 01/01/2000
YES Sample Todo 2 01/01/2000
NO Sample Todo 3 01/01/2000