Displaying 20 results from an estimated 40000 matches similar to: "View testing (rspec/selenium) - test if a file link works"
2007 Dec 10
0
Selenium on Rspec
http://www.kerrybuckley.com/2007/11/07/driving-selenium-from-the-rspec-story-runner-rbehave
found via Bunk and Rambling ? Readable Selenium tests with rspec
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071210/f4ab9dc4/attachment-0001.html
2006 Nov 07
1
RSpec/Selenium start_browser_once patch?
The 0.7.0 vendor/selenium/README.txt references a
"start_browser_once.patch" file. This doesn''t seem to be included in
either the rspec or selenium-rc distributions, and Google finds
nothing... where might I find that patch?
Jay Levitt
2012 Jan 17
2
does jruby rspec have to use selenium?
With jruby and rspec requests, do you have to use selenium webdriver?
I''m confused, with ruby and rubyonrails using cucumber with capybara, I
didn''t have to set the default driver, what was it using and can i use that
with jruby? Things just worked w/o me even having to know about it :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Sep 07
0
Dead easy Watir AND Selenium
Yesterday I added some Watir examples to RSpec''s svn.
Today I added some Selenium (actually - Selenium Remote Control) examples.
It''s dead easy to use both, and the Ruby code you end up writing is
actually quite similar. Here''s a taste:
== Watir ==
require File.dirname(__FILE__) + ''/rspec_watir''
context "Google''s search page" do
2008 May 08
7
Rspec Stories / Selenium Nightmare
I have been using Rspec stories with Webrat feeling very productive and
happy.
Then I needed to do something with Selenium (Webrat could have done what
I needed but it does not yet have the functionality).
Selenium-core as part of a rails plugin looked nice but did not seem to
fit with rspec stories. So I went the Selenium-rc route.
Since Selenium uses a separate instance of rails
2008 Oct 24
2
Mulitbrowser selenium ruby
Hope all is well,
Striaght to the point I wonder if someone has any ideas to help me with
the following problem:
I have written an automation framework in ruby, that uses selenium and
rspec and is run by an ant task, as thats the build process that is
implemented here.
Im currently running all my spec tests in firefox on my local machine by
passing the selenium variable:
@selenium =
2007 Jan 12
5
Integration Testing - Wait, Watir, or Selenium
I''m evaluating what to use for integration testing:
SafariWatir
- integrates nicely with RSpec
- doesn''t work with Ajax because of Safari event firing issues
Selenium
- Works with Ajax
- doesn''t integrate with RSpec
What is the best guess timeframe for RSpec integration testing?
Will it be able to test Ajax application in the early iterations?
Thanks,
Brian Yamabe
2006 Nov 07
1
Should Selenium support be doing rollbacks?
Now that 0.7.0 is forcing me to write properly compartmented specs, I
thought I''d give the "dead easy Selenium support" a try.
Is it supposed to all the things that rspec normally does for me, or is
it just for using rspec-like grammar to surround Selenium tests?
Specifically, should it roll back the database between specifications?
I just did a quick test, and the result
2007 May 09
4
UI testing framework? (w/o selenium)
Hey all,
I am currently working on coming up w/ an easy to use, developer-centric web
testing framework to test a J2EE app with. (I have 3 rails apps in
production, love rspec, and am currently at a java shop).
I''ve looked at selenium, and it just doesn''t seem like it is ready for prime
time, and the target audience is developers. So, having said that, does
the rspec
2007 May 29
2
Selenium, Spec:Ui and ... forks?
I am using Spec:UI to run my Selenium tests, and I want to start
Selenium only once, for many descriptions.
I''ve come quite far solving it by declaring a main ui spec like the following:
require ''pathname''
require File.dirname(__FILE__) + ''/selenium''
$base_url="http://localhost:3000"
$browser =
2008 Jun 09
6
Selenium/Watir usage along side Webrat in story testing
This is related to Selenium/Watir usage along side webrat in story
testing.
MHS_Testing and Rspec-ui provide some great help for testing through
frameworks like Selenium/Watir.
But there is something missing, Webrat has changed the landscape
somewhat with Acceptance Tests/Story Driven development.
Now I have a choice:
1. Tests and rails process run as one test process (Webrat)
2. Use
2007 May 10
1
RSpec 0.9.4
RSpec 0.9.4 has just been released. Gems haven''t rsync''ed around the
globe yet, so you might have to wait a few hours to install it.
The big news this time is Spec::Ui 0.2.0, which has been released
along with RSpec core. This RSpec extension gives you custom Watir
matchers (custom Selenium-RC matchers are not implemented yet).
Moreover, it comes with a custom KICK ASS formatter
2013 Oct 09
0
getting selenium working with jruby/sinatra/cucumber/webrat on windows
I am trying to run cucumber/webrat with Sinatra on Jruby 1.7.3 (1.9.3) on
Windows.
It seems to work ok, but when I try to add selenium to webrat. I get the
error shown below.
It seems like it thinks it is in a linux environment or something as the
error happens when it tries to start selenium server and there is a "&" at
the end of the argument chain. I took a look at capybara
2008 Sep 29
3
rspec-ui overlap with cucumber?
Hi!
I''m using cucumber + selenium and I love it. However I''m looking to
add some methods (example: click_and_wait etc) to the lib. Therefore
looked around a bit and I got two questions:
Firstly about rspec-ui, I''m a little confused, does rspec-ui overlap
with its propose with webrat with cucumber or I''m missing a point?
Secondly, are there any plans to
2011 Mar 03
1
Does RSpec interfere with Pathname#dirname or Pathname#realpath ?
Hi,
I starting a new project, and have run into behavior I cannot
replicate in irb, (i.e. outside of using rspec) when the directory?
returns true, so I thought I''d ask here, in case any one has seen this
badhavior.
ruby-1.9.2-p136
rspec (2.5.0)
rspec-core (2.5.1)
rspec-expectations (2.5.0)
rspec-mocks (2.5.0)
When I try to run this spec:
require Pathname(__FILE__).ascend { |d|
2012 Sep 15
2
[RSpec Testing] Methods take two arguments
Hello,
Here is my *pdf_helper.rb* => http://pastebin.com/QU1kTKXk. I want to test,
if self.create method can take more than two arguments. But, when I try to
run my test. It showed
*PdfHelper Should have two arguments
Failure/Error:
create_pdf.should_receive(object,template).with(user,file)
NameError:
undefined local variable or method `create_pdf'' for
2008 Oct 26
0
daylight savings time difference with rspec?
Hi all,
I wanted to check this with you. I have an rspec example that checks
the correct expiration date set on an object. The expiration is set in
the model with
expires_on = Time.now + next_duration[phase]
where next_duration can either be in units of seconds or n.days (should
be the same thing). n can be 3, 7, 25, or 30 days.
in my example I check an interval because the two events are not
2008 Mar 20
1
stories with selenium and the db
Hi all
Tonight I wanted to test out selenium in a story to test some ajax
stuff on a page.
After struggling for an hour or two with disappearing database objects
I found the solution in a blog post by Kerry Buckley.
with the comment included it reads:
# Don''t add an ActiveRecordSafetyListener, or it''ll roll stuff back
class Spec::Story::Runner::ScenarioRunner
def
2009 Apr 29
1
Cucumber/Webrat/Selenium + SSL?
Has anybody had any luck getting Cucumber, Webrat and Selenium to play
nicely together for SSL sites?
My test environment:
- nginx front-end accepting SSL requests, proxying them to mongrel
back-end
- mongrel back-end accepting normal HTTP requests
- application routes configured with ":protocol => ''https''" so that
URLs generated with "_url"
2011 Apr 30
1
[rspec-rails] Is it bad form to use spec/requests/*_spec.rb for integration tests?
So I wanted to cook up a quick integration test for something, and I''m
using rspec. I personally just don''t like Cucumber - just a personal
preference, not a slam to the test framework at all - and wanted to
stick to just pure rspec. So I dumped a quick spec file in spec/
reqests and ran it, and of course everything works.
But is this considered bad form, or a less-than-good