similar to: Using Selenium with a mock-method on associated Model ???

Displaying 20 results from an estimated 1000 matches similar to: "Using Selenium with a mock-method on associated Model ???"

2006 Sep 18
2
Mocha + Selenium-on-rails loading problem ?
Hello All, I need to stub two class methods before a selenium call. The .rsel is : require ''mocha'' SalesConfigWork.stubs(:load_work_data) SalesConfigWork.stubs(:delete_work_data) setup :fixtures => :sales_config_works open "/" The Selenium test runner result is : undefined method `stubs'' for SalesConfigWork:Class Extracted source (around line *#0*):
2006 Nov 15
1
how to handle alert box message in selenium test?
hi guys, how to handle alert box message in selenium test? i want to handle alert box. i want to test(verify text present) the text in alert box & then click ok to alert box. how can i do this.? plz tell me... advance thx. regards, karthick. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2007 Jun 11
0
Selenium RC Fu (plus js unit)
We''ve been threatening to open source this for a while, most recently during Alex and Brian''s talk at Railsconf [1]. See the readme [2] for more info, and the source/rdocs for all the gory details. Feedback and contributions are very welcome. Thanks, pt. [1] http://www.slideshare.net/alexchaffee/fullstack-webapp-testing-with-selenium-and-rails [2] == Introduction Welcome to
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"
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
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 =
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 =
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
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,
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 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
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 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
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 Feb 16
3
How to use Selenium from Rails
I caught two different approaches to integrate Selenium to Rails: http://svn.viney.net.nz/things/rails/plugins/selenium_testing/README http://andthennothing.net/archives/2006/02/05/selenium-on-rails It seems that the first makes it easy to right the tests, and the second makes it easy to run them. Am I correct? Any chance of the two hooking up and cross polinating? -- Posted via