Skip to content
ericmeyer edited this page Sep 1, 2012 · 1 revision

Decision Tables

What are they?

They are described here: http://fitnesse.org/FitNesse.UserGuide.SliM.ScriptTable. This document is more how to implement them.

When Would I Use Them?

They are useful for keeping state between steps. They can be used to simulate user workflow.

How to Implement Them

Fitnesse Page

!|script|counting numbers|
|check  |count     |0    |
|increment               |
|check  |count     |1    |

CountingNumbers.h

#import <Foundation/Foundation.h>

@interface CountingNumbers : NSObject

@property (readwrite, assign) int count;

@end

CountingNumbers.m

#import "CountingNumbers.h"

@implementation CountingNumbers

-(void) increment {
    self.count += 1;
}

@end

Clone this wiki locally