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-g0R8lVqzWK4@public.gmane.org", name: "tester" And the user with email: "test-g0R8lVqzWK4@public.gmane.org" is a "<role>" And I am on login_path And I should see "Inloggen" within "h1" When I fill in "login" with "test-g0R8lVqzWK4@public.gmane.org" And I fill in "password" with "123456" And I press "login" And I should see "Welcome." And I should not see "Inloggen" within "h1" Examples: | role | | admin | | Retailer | | Client | | superuser | | tester | 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? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Jeroen van Ingen wrote in post #960472:> > 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? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Jeroen van Ingen wrote in post #960472:> 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-g0R8lVqzWK4@public.gmane.org", name: > "tester" > And the user with email: "test-g0R8lVqzWK4@public.gmane.org" is a "<role>" > And I am on login_path > And I should see "Inloggen" within "h1" > When I fill in "login" with "test-g0R8lVqzWK4@public.gmane.org" > And I fill in "password" with "123456" > And I press "login" > And I should see "Welcome." > And I should not see "Inloggen" within "h1" > > Examples: > | role | > | admin | > | Retailer | > | Client | > | superuser | > | tester | > > 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.If you turn on HTML output, I believe it will mark the failing examples in red. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.