[JS] Missing EOF at Examples:

3,414 views
Skip to first unread message

rui...@gmail.com

unread,
Nov 23, 2016, 12:46:21 PM11/23/16
to Cukes
Hi all,

I was trying to use Data Driven via 'Examples' in feature file. However, there is an error shows: "Missing EOF at Examples:"



Feature: AdminLogin
Scenario: Create a new product categories with valid entries
Given User is on Product Categories page
And click new category button
When User inputs <"wasit1"> and click Save button
Then System shows Successfully message and new category has been listed in categories list
Examples:
    | wasit1       | password |
    | testuser_1 | Test@153 |
    | testuser_2 | Test@153 |

Anybody know why it happens?

Thanks,
Rui

Andrew Premdas

unread,
Nov 23, 2016, 12:54:21 PM11/23/16
to cu...@googlegroups.com
You have two columns in your table but only one placeholder in your step definition. Perhaps thats why.

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
------------------------
Andrew Premdas

Oscar Rieken

unread,
Nov 23, 2016, 1:01:14 PM11/23/16
to cu...@googlegroups.com
On Wed, Nov 23, 2016 at 12:54 PM, Andrew Premdas <apre...@gmail.com> wrote:
You have two columns in your table but only one placeholder in your step definition. Perhaps thats why.

On 23 November 2016 at 13:49, <rui...@gmail.com> wrote:
Hi all,

I was trying to use Data Driven via 'Examples' in feature file. However, there is an error shows: "Missing EOF at Examples:"

I am pretty sure you can only use Examples with a Scenario Outline

sachin bhangade

unread,
Nov 29, 2016, 7:21:50 PM11/29/16
to Cukes
Instead of "Scenario" use "Scenario Outline" keyword whenever you want to use Examples.
Also you are missing one placeholder "password"(But I don't think that is giving you EOF error)

sandee...@highq.com

unread,
Dec 7, 2016, 3:04:00 AM12/7/16
to Cukes
Hi rui,

see, If you are using the 'Examples:' in your 'Scenario', then you need to use 'Scenario Outlines' instead of 'Scenario' in your feature files.
your problem, will be resolved.

Thanks and Regards.


On Wednesday, 23 November 2016 23:16:21 UTC+5:30, rui...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages