Sha256: a3895257edcd92f63026206c3b5800158cfb617364ab22c61ef6cffd339eb847

Contents?: true

Size: 1.08 KB

Versions: 8

Compression:

Stored size: 1.08 KB

Contents

What if you want to increment the value of one of the columns of your fixture table at run time? You can use the !-IncrementColumnsValue-! decorator. This lets you increment column's values. This decorator supports the following data types:
 * int or integer
 * double
 * string
 * date

!|Increment Columns Value|numerator|of type|int|by|5|
|Division|
|numerator|denominator|quotient()|
|10|2|5|
|10|3|5|
|10|4|5|

!|Increment Columns Value|numerator|of type|integer|by|5|
|Division|
|numerator|denominator|quotient()|
|10|2|5|
|10|3|5|
|10|4|5|

!|Increment Columns Value|numerator|of type|double|by|10.2|
|Division|
|numerator|denominator|quotient()|
|10.2|2|5.1|
|10.2|4|5.1|

!|Increment Columns Value|numerator|of type|string|by|5|
|Division|
|numerator|denominator|quotient()|
|5|1|5|
|5|11|5|
|5|111|5|

Updates the dates by 5 days.
!|Increment Columns Value|inDate|of type|date|by|5|
|Get Dates|
|inDate|updatedDate()|
|12/02/2006|12/02/2006|
|12/02/2006|12/07/2006|
|12/22/2006|01/01/2007|

This decorator by itself is not as useful. But piped with other decorators this can be really handy.

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xcfit-0.9.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteFitDecoratorTests/IncrementColumnsValues/content.txt
xcfit-0.8.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteFitDecoratorTests/IncrementColumnsValues/content.txt
xcfit-0.7.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteFitDecoratorTests/IncrementColumnsValues/content.txt
xcfit-0.6.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteFitDecoratorTests/IncrementColumnsValues/content.txt
xcfit-0.5.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteFitDecoratorTests/IncrementColumnsValues/content.txt
xcfit-0.4.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteFitDecoratorTests/IncrementColumnsValues/content.txt
xcfit-0.3.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteFitDecoratorTests/IncrementColumnsValues/content.txt
xcfit-0.2.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteFitDecoratorTests/IncrementColumnsValues/content.txt