SpecFlow.DSL 0.0.4

There is a newer version of this package available.
See the version list below for details.
Install-Package SpecFlow.DSL -Version 0.0.4
dotnet add package SpecFlow.DSL --version 0.0.4
<PackageReference Include="SpecFlow.DSL" Version="0.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SpecFlow.DSL --version 0.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SpecFlow.DSL, 0.0.4"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install SpecFlow.DSL as a Cake Addin
#addin nuget:?package=SpecFlow.DSL&version=0.0.4

// Install SpecFlow.DSL as a Cake Tool
#tool nuget:?package=SpecFlow.DSL&version=0.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

An enhancement to Specflow DSL to be able to use dynamic test data in specflow steps by bringing in variables, regular expressions and simple calculations.

- Create dynamic test data and refer it in another step

When enter [[var=50]] //assign 50 to a variable named "var"

Then [[var]] equals 50 // now get variable "var" value

- Create dynamic test data using regular expression

When enter [[var=RegEx([0-9]{3})]] //assign var with 3 digit random number

Then [[var]] is a 3 digits number // now get variable "var" value

- Same applies to SpecFlow tables:
When create new user with the following details:
    |Field   | Value                                 |
    |UserName| [[name=RegEx([a-z]{5,8})]]            |        
|Password| [[pwd=RegEx([a-z]{3}[0-9]{3})]]       |
Then verify can login with username="[[name]]" and password="[[pwd]]"

- Support customerise transformation

    for example, you want to map Today to YYYY:MM:dd, add the following code in one of your Specflow steps
or put it in BeforeScenario step.
           .addTransformer(s => s.ToLower() == today ? DateTime.Now.ToString("yyyy/MM/dd") : s);

    Now in Specflow feature files, you can write:
When entered "[[timeVar=Today]]"  //timeVar will be assigned to yyyy/MM/dd, e.g 2017/12/04

- Calculations are currently NOT supported but can be supported by customerisation

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.1 811 8/18/2021
3.0.0 172 8/16/2021
0.0.4 1,442 4/12/2017
0.0.3 735 4/11/2017