Displaying 20 results from an estimated 500 matches similar to: "Cucumber Selenium web step to verify value of input field"
2010 Dec 16
1
Ambiguous match error for Cucumber
Hi,
I am trying out the cucumber tutorial
http://www.ultrasaurus.com/sarahblog/2008/12/rails-2-day-3-behavior-driven-development/
My tasklist.feature file is like as follows
"
Feature: Tasks
In order to keep track of tasks
People should be able to
Create a list of tasks
Scenario: List Tasks
Given that I have created a task "task 1"
When I go to the tasks page
Then I should see
2010 Dec 16
12
Capybara + radio buttons
How do I select a radio button when both id and name are identical?:
<input type="radio" name="BILFPB.bilPremieUppgifterFI.under24"
tabindex="13" value="J24" checked="checked" id="forare">Ja
<input type="radio" name="BILFPB.bilPremieUppgifterFI.under24"
tabindex="14" value="N24"
2015 Jun 20
1
Xapian with Json
Hi !
I?m newbie with Xapian !
I?m looking for the best way to index json data to be able to search by name/value pair and Full Text Search using only Xapian.
I did haven?t success to found a complete or a good documentation about json index and search.
Do you know some documentation about ?
Another problem that I have is that: In the same name/value pair sometimes I have different data types
2006 Apr 11
1
Mixins?
As is often the case when I tackle a new platform/language, I get the big
picture very quickly (because frameworks are frameworks are frameworks) but
its the nitty-gritty of the language that bogs me down...
So I have some similar methods on a few of my model classes that I wanted to
push into a helper. Now I reckoned that the Ruby way was to create a module
and mix it in with include. However, I
2008 Dec 02
4
Using Cucumber with latest Webrat
I added cucumber to my rails project using the following commands:
git submodule add git://github.com/aslakhellesoy/cucumber.git \
vendor/plugins/cucumber
ruby script/generate cucumber
git submodule add git://github.com/brynary/webrat.git \
vendor/plugins/webrat
git submodule add git://github.com/dchelimsky/rspec.git \
vendor/plugins/rspec
git submodule add
2013 Jun 18
1
Rails 3 in action book: some files are not generated as written in the book
I''m reading "Rails 3 in action", chapter 3, p. 56.
It is said that the Cucumber skeleton generator
> rails generate cucumber:install
has to also generate the definition for the first step of the Scenario
"Given I am on the homepage" in the file
"features/step_definitions/web_steps.rb"
# file: features/step_definitions/web_steps.rb
Given /^(?:|I )am on
2009 Apr 26
9
Problems running features with Textmate Cucumber bundle
I finally plunked down for the beta RSpec bundle and I''m working
through the initial example. Although I''m a fairly experienced RSpec
user, I''m stlll learning new tricks.
Anyway, I''m going though the mastermind example, and everything is
going well, except that I decided to also try out the Textmate bundle
for Cucumber. I decided to use Ben Mabey''s
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
2009 Mar 30
2
[Cucumber] Bug with background
Seem to be getting a problem when running a feature with background. Running
the whole file works fine however running an individual feature fails. The
background steps are
Background:
Given an admin user Philip exists
When I login as Philip
Then I should be logged in as Philip
running the following scenario on its own causes an error
Scenario: Admin should be able to run a feed #
2009 Mar 19
6
[Cucumber 0.2] Failure to use should
I have a step definition like this:
Then "the account should be created" do
account = Account.find_by_name("my shiny new account")
p account.class
account.should_not be_blank
end
When running this step, I got the error message:
Account(id: integer, name: string, state: string, next_renewal_at: date,
created_at: datetime, updated_at: datetime, full_domain: string,
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
2009 Mar 09
10
Cucumber - RSpec matcher
I must be missing something obvious here but I cannot seem to see it.
I have this step definition:
When /entity named "(.*)" has a legal name "(.*)"/ do |name, legal|
myentity = Entity.find_by_entity_common_name!(name.hll_keycase)
myentity.entity_legal_name.should equal legal.hll_keycase
end
Which fails with this:
And the entity named "Myuser" has a legal
2015 Mar 08
2
Xapian with Couchdb
Hi,
I?m looking for how to integrate couchdb with xapian.
Couchdb has a elasticsearch plugin, but i didn?t find anything about xapian.
How is the best way to do it ?
There some tips / tricks about xapian and couchdb ?
Best Regards !
Carlos
Brazil.
2009 Jul 06
3
Rspec book issue (mastermind example)
Hey Everyone,
Just a simple question. I have read and re-read the examples and I''m
not getting the proper output. I''m on page 73/74 of the Rspec book
and it says I should have "4 steps passed". I think the problem is
within my /step_definition/mastermind.rb" file. It''s definitely not
beyond me to make a mistake, but I have checked and double checked my
2010 Dec 20
1
Check whether link present nor not using cucumber
Hi,
I am using cucumber with webrat for testing my application.
I have admin role in my application.
When admin logs into the system he able to see the "Users" link which
gives an interface to manage users for admin. I have written the feature
like as follows:-
Feature: List All Users
So that Admin can manage users
Scenario: Login as Admin
When I login with user "username"
2008 Dec 10
1
Oddness with fieldnames containing an underscore
Hi all,
I''m not sure if this is a cucumber or webrat thing given that I only
starting tinkering with both last night for the first time (testing
newb as well), but I''ve come across an oddity when trying to write a
scenario to create a user.
Scenario: Register new user
Given I am on the new user page
And I fill in "login" with "fredf"
2008 Mar 05
0
Index Searcher Causes GC Memory Error: "irb: double free or corruption"
My linux Ruby application is using Ferret 0.11.4. I created my own class IndexSearcher to contain
the Searcher of multiple directories. If I do not have the searcher.close called, the end of
runner/console or runner/server will pop out with system error:
*** glibc detected *** irb: double free or corruption (fasttop): 0x0a51d6c0 ***
======= Backtrace: =========
/lib/libc.so.6[0x638ac1]
2012 Jun 14
3
response.should have_content("1 movie") does not seem to work for me
Hey everybody
I have worked quite to near the end of The RSpec Book, but now I''m
having some troubles.
I''m trying to get the last few Cucumber steps to work, which are:
Then /^Caddyshack should be in the Comedy genre$/ do
visit genres_path
click_link "Comedy"
save_and_open_page
response.should have_content("1 movie")
response.should
2006 Apr 22
1
How to save data with dynamic forms?
Hello,
Imagine I have a form designer, which allow me to design a web form (at
run-time).
I don''t have any idea how to save the data in db (table ddl?), so I can
easily list or search the data.
I though of writing the hash directly from the form to db, but I think there
must be better solution(s)?
Any idea, articles or design pattern on the subject?
Thank you all in advance,
Dunnil
2009 May 13
0
Cucumber + Selenium: Programmatically Starting a Test Server
Hi All,
I am trying to learn BDD using the Cucumber framework, and am
integrating Selenium for client side tests. I''ve been playing with
refactoring my cucumber installation a bit, and have pulled the code
to start the selenium server out into a profile-configuration file,
similar to env.rb:
# start selenium
server
@@browser = Selenium::SeleniumDriver.new("localhost", 4444,