autostep / AutoStep

AutoStep Testing Framework - Core Libraries and Components
MIT License
22 stars 1 forks source link

Gherkin Language Features - Parameter Expressions #12

Closed alistairjevans closed 4 years ago

alistairjevans commented 4 years ago

Switch to using Gherkin parameter expressions using curly braces (instead of quote marks).

Unlike gherkin, the default value inside the curly braces should default to being the name of a parameter, rather than the type. If the name equals the standard types however, we will assume that's what they mean.

Someone can specify a colon inside the parameter declaration to specify a format.

Example Declarations:


   I want to click the {string} button # named argument 'string', of type 'string'
   I want to click the {button} button  # defaults to a string argument
   I want to click the {int} button # named argument 'int', of type 'int'
   I want to calculate {value1:int} plus {value2:int}.
alistairjevans commented 4 years ago

Fixed by #17