Transform Phrases
Useful Configures the Gherkin parser with phrases that support simple (map/reduce) style data transformations
Item Index
Methods
Transform a variable using Javascript
(
-
varname -
javascript
Transform some variable using a Javascript function
Parameters:
-
varnameString- variable to transform
-
javascriptString- inline javascript
Example:
When I transform something with:
this.transformed = this.transformed?this.transformed+1:1;
THEN something.transformed should be true
