Displaying 20 results from an estimated 5000 matches similar to: "[cucumber] Use of Scenario Outline for validation stuff ?"
2010 Mar 01
0
stubbing CAPTCHA to pass Cucumber scenario
Hi,
I''m trying to start using cucumber. I''ve done login, logout scenarious,
but stumbled in CAPTCHA validation on user registration page. As I get I
should stub CAPTCHA validation method. I guess I should implement
stubbing Given step or include stubbing code in Before filter?
I use validates_captcha gem, thus instance method to stub is
module ValidatesCaptcha
module
2009 Mar 31
1
Getting the file a scenario is defined in (Cucumber)
In Cucumber...
Is there a simple way to find out what file a scenario is defined in?
I''d like to use this information to load a set of fixtures depending on
which feature is being run. So if I''m running the ''login.feature'' file,
I''d like to be able to load the set of fixtures under
''/fixtures/login/*.yml''
_Kevin
--
Posted via
2012 Jun 19
0
validation method breaks cucumber scenario
I''m trying to find an effective way to validate the following:
I have 3 form fields, a select menu a checkbox and a textfield. They can
all be left blank on submission, but if you select two or more it
should prompt an error. If the user chooses to, only one field should
be allowed to be submitted.
I tried the following but it seems to be breaking my cucumber scenario.
Only the first
2008 Nov 26
5
could one scenario depend on another in cucumber?
I think it is a common test case you would meet. For example, you want
to test a user registry scenario. You write:
Scenario: User Registry
When I dosth
Then I dosth
...
And now business has some changes. Register should have to activate his
account by a secret code sent by mobile phone. So you need to write the
other scenario:
Scenario: User Registry and Account Activation By Mobile
2009 Jan 17
10
Cucumber Scenario Outlines Output Insufficient
I''m having problems knowing what a scenario outline I''ve created is doing.
In particular I have no idea about what steps are being matched when the
outline is run so when I break something I can''t find out what is wrong. Is
there any progress on getting better output for scenario outlines.
TIA
Andrew
-------------- next part --------------
An HTML attachment was
2010 Jul 08
3
my web app seed data and cucumber
I''m writing a web app which is used a SaS. Each customer has their own
db and app directory. I have a rake task which creates all necessary
minimum data to run their website: default rights and roles, a
superadmin user, a "us_states" table already populated, some local
depots and terminals (it''s a logistics app).
I don''t have any cucumber scenarios for it and
2009 Apr 27
2
Cucumber: Setting Dependency among scenarios
Hi,
I am planning to use cucumber-java for my java project for automated
testing. I would like to know if there is any option in cucumber, by
which we can explicitly provide dependency among running scenarios. For
example:
I have a ValidateProfile.java and a ProfileSignIn.java.
public class ValidateProfile {
...
public ValidatedProfile validate(String userName, String
2009 Feb 16
0
[Cucumber] 0 scenarios running "dirty" features in Autotest
When running autotest with AUTOFEATURE=true, all of my specs and
features run fine.
However, if I have a feature containing a scenario that fails, autotest
lists that feature, but then returns "0 scenarios", and then runs all of
the features again.
Any idea why this might be?
Best,
Tom
--
Posted via http://www.ruby-forum.com/.
2009 Mar 13
0
[cucumber] A Perl 5 mini-cucumber
Hi All,
I wrote a Cucumber version in Perl 5.
It''s very minimal, but maybe someone will find it interesting.
Check it out on http://github.com/kesor/p5-cucumber
-
evgeny
2012 Feb 02
1
Missing files with rails generate cucumber:install
when ranning cucumber:install
and generate me this files
<code>
create config/cucumber.yml
create script/cucumber
chmod script/cucumber
create features/step_definitions
create features/support
create features/support/env.rb
exist lib/tasks
create lib/tasks/cucumber.rake
gsub config/database.yml
gsub config/database.yml
force config/database.yml
</code>
im searching for the
2010 Feb 26
0
ruby script/cucumber -tags producing a gem error
When I do "ruby script/cucumber" the tests run no issues. When I do
the same thing but -tags tag_name I get a gem version error:
Where is it coming from and why??
Using the default profile...
RubyGem version error: rack(1.0.1 not = 1.1.0)
(Gem::LoadError)
F:/BACKUP/Backup/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:827:in
`report_activate_error''
2009 Feb 13
2
[cucumber][v0.2alpha]Where could I find API docs for custom formatters?
Hi,
I''m working on update my local Cucumber to the latest version. But it seems
the old formatter APIs(step_failed, scenario_executed, etc.) don''t work any
more. Are there some documents or even Cucumber source code I can refer to?
Thanks in advance,
Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2010 Jul 01
1
using rSpec stub in Cucumber with rSpec2
Hello,
I have a Rails3beta4 project where I want to use rSpec stubs in a Cucumber
feature. Unfortunately it looks like requiring ''spec/stubs/cucumber'' in
env.rb does not work anymore: I get a "no such file to load --
spec/stubs/cucumber (LoadError)" error.
Is it possible to use rSpec stubs in Cucumber with rSpec2? If not, is there
any other viable alternative?
Thanks
2009 Apr 15
0
Ambigous error while running cucumber features
Hello,
I was just trying out a cucumber-java example with selenium
integrated. My feature file has two scenarios and while executing the
command "cucumber features", It is executing the first scenario
succesfully, but for the second scenario I am getting the ambiguity
error (Cucumber::Ambiguous):
Scenario: Find what I''m looking for in yahoo #
2008 Nov 03
2
Cucumber and autotest
Hey all,
Does anyone know how to disable the cucumber autotest support on a
project? With this commit:
http://github.com/aslakhellesoy/cucumber/commit/93470e2580b5e3cfe0c8eb3fce86e21bf8afa219
The cucumber features are worked into the autotest cycle automatically.
This is cool, but on some projects I don''t think it fits well with my
red->green->refactor cycle. Any ideas on
2009 Feb 25
5
[Cucumber] pretty html output?
Cucumberists (and RSpec Classic users ;):
How can we convert a Cucumber feature file into HTML with syntax highlighting?
Not the test-runner output; that''s preprocessed so it does not match the input
file...
Tx!
--
Phlip
2009 Sep 16
1
Problems while loading 'spec/stubs/cucumber'
Rodrigo Flores wrote:
> Hi
>
> I''m reading the rspec book and I''m having problems when I require the
> file ''spec/stubs/cucumber''. When I go to an IRB prompt and type
> require ''spec/stubs/cucumber'' after requiring another libraries [1] I
> get the false in ''spec/expectations'' and an error in
>
2009 Feb 02
5
[Cucumber] Cucumber and acts_as_xapian
Hey list,
Anyone have experience with acts_as_xapian and Cucumber? I''m
struggling with updating xapian''s index, to actually "find" fluff
that has been indexed..
In a scenario, I''m adding a bunch of articles, and in the actual
search step, I run:
When "I search for \"$query\"" do |query|
%x[rake RAILS_ENV=test xapian:update_index]
2010 Jan 19
0
rake cucumber features fails
Hey Guys,
Ubuntu 9.10
Env: Ruby 1.9.1
Rails 2.3.5
RSpec 1.3.1
Cucumber 0.6.1
Cucumber-rails 0.2.3
I''m starting with BDD with Cucumber/RSpec.
After creating a rails app, I did script/generate rspec and cucumber.
First problem, I can''t run cucumber by its own, as Ryan Bates does in his
screencast.
He freely runs "cucumber features -n"
2009 May 06
0
Cucumber, Webrat, RSpec and Mechanize for Non-Ruby Apps
The folks here have given me the task of figuring out if cucumber can
be used successfully to test some of our apps.
I have the latest versions of rails, mechanize, cucumber webrat and
rspec installed.
#/cuketest/features/google.feature
Feature: New PC
In order to get a sweet new PC
As a apple nerd
I want to find apple.com
Scenario: Get a sweet new computer
Given I visit