Skip to content
smartrics edited this page May 7, 2011 · 11 revisions

The RestFixture is a FitNesse fixture that allows developers and/or product owners to write test fixtures for REST API with simplicity in mind. The idea is to write tests that are self documenting and easy to write and read, without the need to write Java code.

The fixture allows test writers to express tests as actions (any of the allowed HTTP methods) to operate on resource URIs and express expectations on the content of the return code, headers and body. All without writing one single line of Java code.

And it also works as a living documentation of the API.

Overview:

  • “Get Fitnesse With Some Rest”http://smartrics.blogspot.com/2008/08/get-fitnesse-with-some-rest.html,

What’s new:

version 2.0

  • added support for setting custom content-type to adapter map
  • added support for setting bespoke rendering of null value labels via config property
    ‘restfixture.null.value.representation’
  • added ‘comment’ command row so that it’s possible to comment RestFixtures; example
    |comment| the value of ‘replaceme’ is replaceme |
  • added support for SLIM
  • added support for expressions in JavaScript for JSON
  • abandoned local variable store for FitNesse symbols
  • added a toggle button to collapse on/off large content cells
  • added metric build to gather some metrics of the RestFixture code

version 1.1.1

  • bug fix: setHeader now parses multi-line headers
  • API change: added setHeaders (syntactic sugar for multi-line headers)
version 1.1
  • added namespaces support on matcher queries
version 1.0
  • first fully usable release

Documentation:

Clone this wiki locally