Section 39.1. Runners


39.1. Runners

As we saw in Chapter 37, a runner carries out three functions in turn.

  1. It inputs data in some form and converts it into a Parse TRee. For example, a FileRunner inputs HTML from a file.

  2. It creates a new Fixture object and calls its doTables() method, passing the Parse TRee.

  3. It writes the report. A FileRunner writes this to an HTML file. FitNesse returns this HTML as a wiki page.

To create a custom runner, we need to write code to carry out each of these steps. The FitLibrary class CustomRunner can be used to drastically simplify this task, allowing you to avoid knowing about most of the internal details of Fit.



    Fit for Developing Software. Framework for Integrated Tests
    Fit for Developing Software: Framework for Integrated Tests
    ISBN: 0321269349
    EAN: 2147483647
    Year: 2005
    Pages: 331

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net