How can I send “NULL” values into “Scenario Outline”?

5,520 views
Skip to first unread message

Thomas Berthe

unread,
Aug 28, 2014, 5:11:44 AM8/28/14
to be...@googlegroups.com
Hi, 

All is in the subject. I want to put some “NULL” values into my “Examples”, is it possible or I have to do a little dirty trick? 

I want something like that:
Scenario Outline: Eating
  Given there are <start> cucumbers
  When I eat <eat> cucumbers
  Then I should have <left> cucumbers

  Examples:
    | start |   eat  |  left  |
    |  12   |  null  |   7    |
    |  20   |    5   |  null  |
Thanks,
Tom.

everzet

unread,
Aug 28, 2014, 5:36:49 AM8/28/14
to be...@googlegroups.com
Hi,

You can’t. Cast them manually in your definitions.

--
You received this message because you are subscribed to the Google Groups "Behat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to behat+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thomas Berthe

unread,
Aug 28, 2014, 6:04:08 AM8/28/14
to be...@googlegroups.com
Ok thanks!
Reply all
Reply to author
Forward
0 new messages