InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Communicating with Business Using FIT and FitNesse

Posted by Geoffrey Wiseman on Nov 21, 2007

Sections
Process & Practices,
Architecture & Design,
Enterprise Architecture
Topics
Agile ,
Business ,
Agile in the Enterprise
Tags
Acceptance Testing ,
Fit / Fitnesse

Although both FIT (Framework for Integrated Test) and FitNesse are used for performing integration and acceptance testing on agile projects, many people have tried to use these as general-purpose testing frameworks, with mixed results. Others have suggested that FIT should be used almost exclusively for cross-functional tests where communicating with the business, or with a customer, is of paramount importance.

If FIT and FitNesse are being mis-applied, perhaps this is due to the relatively limited amount of shared experiences on the subject.
Naresh Jain suggested there aren't enough well-established patterns and anti-patterns:

Should we use statics to share data between fixtures? How to design Fixtures [to inherit or not to inherit]?

In the past few months, a few people have been sharing their experiences with both FIT and FitNesse. James Shore described Five Ways to Misuse FIT, in which he argued that people attempt to use FIT for automation, which it isn't good at, instead of communicating with customers, which it is good at:

Sure, it's called "Framework for Integrated Test". The key word there, though, is "Integrated", not "Test". Fit is actually a fairly weak test automation tool. There are dozens tools (xUnit, Watir, Selenium, not to mention all the high-priced screen scrapers) that do test automation. They do it better than Fit does.

Fit's strength--the one thing it does better than any other tool I know--is that customers are comfortable providing examples in tables. It's a great tool for communicating with customers. If you use it to automate your regression tests, you will come to regret it. If you use it to enhance your collaboration with customers, you'll be much happier.

He concludes with the following points:

  • Fit is good for communication, weak for test automation.
  • People mostly use Fit for test automation, less for communication.

For FitNesse, Naresh Jain shared some Patterns and Anti-Patterns. Mirroring James Shore's opinion of FIT, Naresh suggested that FIT should not be used as a generalized replacement for unit testing:

FitNesse is not a QA testing tool. They can use it to write acceptance tests. But not other types of tests. Keep the tool simple and let it do one job well. With lack of support for test maintenance, it really becomes a big issue for QAs to use this tool effectively.

Instead he recommended that FIT be used for cross-functional testing:

Using FitNesse based acceptance tests for collaboration between cross-functional team members is a great way to help communication within the team. It also encourages every one on the team to talk about the domain entities and hence domain language at the very beginning of the story.

Both Naresh Jain and James Shore have suggested other patterns and anti-patterns, but they both agree on the role that FIT tools play in a software project.

InfoQ has previously covered FIT and FitNesse, including DbFit, FitNesse with .NET and Ruby and a FIT Acceptance Testing Primer.

  • This article is part of a featured topic series on Agile

Related Sponsor

In today’s hyper-competitive world, later may be too late to adopt Agile development and this Roadmap for Success will help you get started. Download "Agile Development: A Manager's Roadmap for Success" now!

No comments

Watch Thread Reply

Educational Content

Jesper Boeg on Priming Kanban

In this interview, Jesper Boeg, author of the new InfoQ book – Priming Kanban, discusses the keys to using Kanban effectively, and how to get started if you are currently using other approaches.

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.