FitNesse Tutorials 9

Posted by Brett Schuchert Fri, 03 Apr 2009 00:35:00 GMT

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!

Comments

Leave a response

  1. Avatar
    marc hill about 15 hours later:

    Outstanding! Thanks. marc

  2. Avatar
    Brett L. Schuchert about 16 hours later:

    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.

  3. Avatar
    frasi 8 days later:

    great tutorial, thanks

  4. Avatar
    frasi 8 days later:

    great tutorial, thanks

  5. Avatar
    cheap metin2 yang 6 months later:

    wonderful!

  6. Avatar
    psn card 12 months later:

    Thanks for sharing this great article! That is very interesting Smile I love reading and I am always searching for informative information like this.

  7. Avatar
    hanlyone about 1 year later:

    That is very interesting Smile I love reading and I am always searching for informative information like this.

  8. Avatar
    FLV extractor about 1 year later:

    come to have a look

  9. Avatar
    HID kit about 1 year later:

    Come on the rock.

Comments