Skip to main content

Entering a DateTime in a DataTable field

Comments

1 comment

  • Mario Steiner

    Hi, what are you trying to achieve? Are you trying to display the current day directly in the Gherkin feature file (directly in your IDE or in your report/living documentation)? Gherkin is only a specification language, which doesn't contain any dynamically generated data like the current day. 

    The automation that connects the Gherkin specifications to source code is called a binding. You can use the so called step argument conversions to work with DateTime formats. 

    You can learn more about how to work with DateTime formates here: How to specify relative periods? - BDD framework for NET (specflow.org) and for bindings here: Step Argument Conversions — documentation (specflow.org)

     

    0

Please sign in to leave a comment.

Powered by Zendesk