I have the following test:
Feature: Test the login for all roles
In order to login
As user
I need to provide my password and username
Scenario Outline: Test login for role
Given user should exist with email: "test@test.nl", name:
"tester"
And the user with email: "test@test.nl" is a "<role>"
And I am on login_path
And I should see "Inloggen" within "h1"
When I fill in "login" with "test@test.nl"
And I fill in "password" with "123456"
And I press "login"
And I should see "Welcome."
And I should not see "Inloggen" within "h1"
I know that it fails on this line 'And I should see "Welcome."' for 2
of the 5 tests. But Cucumber doesn't give which example fails.
Cucumber only gives the failing line of the Scenario Outline and not
from the Examples.
Does anyone know how to get for which example it fails?
I know that it fails on this line 'And I should see "Welcome."' for 2
of the 5 tests. But Cucumber doesn't give which example fails.
Cucumber only gives the failing line of the Scenario Outline and not
from the Examples.
Does anyone know how to get for which example it fails?
Have you tried puts( user data ) statement in the step definition
immediately before the failing test?
I have the following test:
Feature: Test the login for all roles
In order to login
As user
I need to provide my password and username
Scenario Outline: Test login for role
Given user should exist with email: "test@test.nl", name:
"tester"
And the user with email: "test@test.nl" is a "<role>"
And I am on login_path
And I should see "Inloggen" within "h1"
When I fill in "login" with "test@test.nl"
And I fill in "password" with "123456"
And I press "login"
And I should see "Welcome."
And I should not see "Inloggen" within "h1"