Displaying 20 results from an estimated 200 matches similar to: "Selenium RC Fu (plus js unit)"
2007 Jun 13
1
seleniumrc_fu initial test issue
I have the seleniumrc_fu plugin installed and setup according to the
instructions, and can run the selenium:test task if there are no test
cases. My first test case simply does an open_home_page to verify
that things are working at all. Unfortuniately there seems to be an
issue with even this simple a test case. The following suggests that
there is an issue with the getNewBrowserSession
2005 Jun 29
2
Unit testing
Recently, I''ve started to write unit tests for some of my scripts. In
general,it''s no worse in JavaScript than in Ruby or Java. I didn''t have
the courage to try Selenium, but had a look at JsUnit. Unfortunately,
in Konqueror it produces unfathomable errors and in Firefox it is slow
beyond imagination.
Anyway, writing tests for functions that are computational or
2007 Jan 08
1
Controller actions do a bunch of javascript stuff...can I use spec that?
I''ve got a form that isn''t doing a regular POST...what actually
happens is that when onClick gets called, a bunch of javascript stuff
happens. It changes the form''s action to be a different URL. Then it
polls for progress on another server, and when it''s 100% reverts back
to the initial URL.
I know that sounds really ugly (and I agree it is), but
2010 Jun 08
0
How to use Selenium RC in Rails
Hi,
I am trying to use Selenium RC in my rails application. I first
install selenium RC ruby client (>gem install selenium-client). Then
create a "selenium_test.rb" in libs folder. In the file, I create a
class "SeleniumTest".
# libs/selenium_test.rb
require "selenium-client"
class SeleniumTest
attr_reader :browser
def initialize
@browser =
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"
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 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 =
2006 Feb 09
1
Alternative take on Selenium in Rails
Hey there,
There''s been a bit of work going on with Selenium and Rails recently, so
I thought I may as well share what I came up with. Check out my blog
post at http://blog.viney.net.nz/articles/2006/02/09/selenium-testing,
grab the plugin and give it a whirl (be sure to read the README!).
Basically, my approach was to make it possible to write Selenium tests
in the same way that
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,
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
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
2006 Feb 19
2
New version of Selenium on Rails
I''ve just released a new version of Selenium on Rails[1]. It''s a plugin
that makes it easy to test Rails applications through browsers using
Selenium [2].
The major new features are exprimental support for running all tests
through a Rake task (which launches any number of browsers) and a new
format RSelenese.
The Rake task has a few rough edges so I would appreciate if
2008 Dec 21
0
cucumber and selenium
hello,
I am starting out with cucumber and selenium. Whenever I run a rake
features on my features or on cucumber/examples/selenium/features too
many browser windows start... for example if run cucumber
examples/selenium/features 3 browser windows get launched. I commented
out browser closing after tests to see exactly how many windows and for
a simple google search feature I ended up with 3
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 Jul 17
2
Selenium docs or tutorial?
Does anyone have links to any complete Selenium docs or tutorial?
I have Selenium 1.0.9 installed (OS X, Leopard), the proxy server
appears to launch ok, and got the test to reach:
@browser = Selenium::SeleniumDriver.new("localhost", 4444,
"*firefox", "http://www.google.com", 15000)
this method has no documentation as far as I can tell (or
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
2006 Aug 03
0
Selenium on Rails has moved to OpenQA
Hi all,
Selenium on Rails has so far lived on my personal site, but now it has
moved in on OpenQA.
Please get involved and help making testing Rails applications using
Selenium too easy to resist!
http://www.openqa.org/selenium-on-rails/
Cheers,
Jonas Bengtsson
http://andthennothing.net
--
Posted via http://www.ruby-forum.com/.
2006 Feb 19
0
Selenium testing plugin
Greetings,
I''ve just finished a new release of my Selenium testing plugin with much
tighter integration to rails. The rake selenium step has been removed as
all tests are now live (just save your test file and refresh the
browser).
Install it with:
script/plugin install
http://svn.viney.net.nz/things/rails/plugins/selenium_testing
And check out the readme:
2008 Jul 25
0
doing Selenium tests and :confirm inside a link_to_remote does not work
Hello there.
I have a problem doing Selenium tests.
When I try to test my delete method doesn''t prompt me the respective
alert which otherwise would appears before run the destroy method on
the controller.
Without Selenium the application prompt me as the regular way but
within Selenium things go badly.
Here is a part of my view:
<%=link_to_remote
2006 Sep 15
0
Using Selenium with a mock-method on associated Model ???
Hello all,
I have a Selenium test calling |open|/sales/approve_activity|
The data list gathered for this page requires an external database call
to a stored procedure to fill a "work table" that is read for the data
on the page (SQL 2000).
I have the call wrapped in a single-line method.
During my functional test, I mock-disable the stored procedure call, as
the "work table"