Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 929483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:10:46+00:00 2026-05-15T20:10:46+00:00

I am running BDD steps with cucumber to implement my autlogic login behavior. Scenario:

  • 0

I am running BDD steps with cucumber to implement my autlogic login behavior.

 Scenario: log in
Given a registered user: "test@test.com" with password: "p@ssword" exists
And I am on the homepage
When I follow "Log in"
And I fill in "Username" with "test@test.com"
And I fill in "Password" with "p@ssword"
And I open the page
And I press "Login"
And I open the page
Then I should see "Login successful!"
And I should see "Logout"

this is my scenario and when I hit

Then I should see "Login successful!"

my cucumber step fails but only in webrat. I debugged with launchy and when the web-page appeard there is indeed no message but in development mode, when I run script/server I see my messages.
My controller looks like this

 def create
@user_session = UserSession.new(params[:user_session])
  if @user_session.save
    flash[:notice] = "Login successful!"
   redirect_to root_url
  else
    render :action => 'new'
  end

end

And yes I saw this
http://github.com/binarylogic/authlogic/issuesearch?state=open&q=cucumber+flash#issue/142
and did not understand how this could help me
and this also did not help

Rails/Cucumber/Webrat: redirect_to, flash[:notice] not working

my setup is

*** LOCAL GEMS ***

actionmailer (2.3.8)

actionpack (2.3.8)

activerecord (2.3.8)

activeresource (2.3.8)

activesupport (2.3.8)

authlogic (2.1.5)

builder (2.1.2)

configuration (1.1.0)

cucumber (0.8.4, 0.8.3)

cucumber-rails (0.3.2)

database_cleaner (0.5.2)

declarative_authorization (0.4.1)

diff-lcs (1.1.2)

gherkin (2.1.2, 2.0.2)

json_pure (1.4.3)

launchy (0.3.5)

mysql (2.8.1)

nokogiri (1.4.2)

paperclip (2.3.3)

pickle (0.3.0)

rack (1.2.1, 1.1.0)

rack-test (0.5.4)

rails (2.3.8)

rake (0.8.7)

rspec (1.3.0)

rspec-rails (1.3.2)

syntax (1.0.0)

term-ansicolor (1.0.5)

thoughtbot-factory_girl (1.2.2)

trollop (1.16.2)

webrat (0.7.1)

ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
gem 1.3.7
running on Ubuntu

What can I do to make my cucumber steps pass!

Thanks for any help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T20:10:47+00:00Added an answer on May 15, 2026 at 8:10 pm

    thanks to raynb who pointed me into the right direction. But unfurtunatly this solution did not work but I found this page which puts everything in cucumber.rb… which mad it running now …

    https://webrat.lighthouseapp.com/projects/10503-webrat/tickets/383-reset_session-and-webrat-dont-play-nicely-with-one-another

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running what should be a basic BDD demonstration using Cucumber and Aruba on
After doing some stuff in Ruby on Rails with Cucumber, RSpec and Ruby BDD
Running a ruby on rails project on my mac. I need to test it
Running the latest builds of Rails, Cucumber and Capybara I am getting stuck when
I need to use a BDD testing framework for Android and most frameworks test
I am using Cucumber for BDD development in my Ruby on Rails project and
So I'm writing my app doing feature-first BDD with Rails, Cucumber, RSpec. My client
I want to exclude one, already written feature when running all my cucumber features.
Running a wordcount example provided by http://developer.yahoo.com/hadoop/tutorial/module3.html#running I am running hadoop on a VM
I'm using the Jasmine BDD Javascript library and really enjoying it. I have test

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.