FitNesse Tutorials 9
Here is another tutorial for FitNesse: http://schuchert.wikispaces.com/FitNesse.Tutorials.2.
This tutorial and the first now all fit together and form one ongoing example. If you work though the first three tutorials at: http://schuchert.wikispaces.com/FitNesse.Tutorials, you’ll have practiced:- Using Decision Tables
- Using Query Tables
- Refactoring within FitNesse
- Using SetUp and TearDown pages
- Understanding inheritance of SetUp and TearDown pages
- Basic test organization under a suite
- Switching into unit testing from acceptance testing
There’s more to go, but that’s a good start to get you cracking at the fundamentals of FitNesse.
As a bonus, there’s a demonstration of some code in Java that produces query results in a snap. The source code is on github: http://github.com/schuchert/queryresultbuilder/tree/master.
Here is one such example taken from that tutorial:
public List<Object> query() {
List<Program> programs = CreateSeasonPassFor.getSeasonPassManager()
.toDoListContentsFor(programId);
QueryResultBuilder builder = new QueryResultBuilder(Program.class);
builder.register("timeSlot", new TimeSlotPropertyHandler());
QueryResult result = builder.build(programs);
return result.render();
}
Hope this is useful!

Outstanding! Thanks. marc
Marc,
Thanks! Glad to do it. Bob and I might write a book with tutorials, reference material and recipes.
My next tutorial will cover script tables. Then scenario tables and finally table tables.
Hope to have a good start on this next phase by end of next week.
great tutorial, thanks
great tutorial, thanks
wonderful!
Thanks for sharing this great article! That is very interesting Smile I love reading and I am always searching for informative information like this.
That is very interesting Smile I love reading and I am always searching for informative information like this.
come to have a look
Come on the rock.