FitNesse.NET
Symbol Handlers
The symbol save operator (>>) and the symbol recall operator (<<) can be used to collect a value at one place in a story test and then use it in other places.

The symbol save operator can be used in any expected value cell. Instead of comparing the actual value to an expected value, the actual value is saved with the symbol name.

CellHandlerStory
stringstring?
something something >>mysymbol
null null >>nullsymbol

The symbol recall operator can be used in any input or expected value cell. The value used will be the last value saved with the symbol name.

CellHandlerStory
stringstring?
somethingsomething <<mysymbol
something <<mysymbolsomething
null <<nullsymbolnull
nullnull <<nullsymbol

To use symbols with FitLibrary fixtures, you must modify the FitLibrary cell handler list.

configuration set up
addfitlibrary.CellHandlersSymbolSaveHandler
addfitlibrary.CellHandlersSymbolRecallHandler

eg.InfoFixture
setresult6
checkresult 6 >>six
setresult6 <<six
checkresult6 <<six

Symbols can be erased with the Clear Symbols Fixture.

Notes:

This is a seperate feature from the FitNesse wiki symbol feature.

© Copyright 2007,2008 Syterra Software Inc. All rights reserved.