Sha256: 77bb64d94a30d2341c68377f57d18a69485a40be76e5edfd9ffd8cbec8bfe2b4
Contents?: true
Size: 1.46 KB
Versions: 8
Compression:
Stored size: 1.46 KB
Contents
require "uri" require "net/http" require 'rspec' @@success = true @@check_api = true # disabled until RSpec2 has append_after support # ::RSpec.configuration.after :each do # if @@check_api # api = TestingBot::Api.new # single_test = api.get_single_test(@selenium_driver.session_id) # single_test["success"].should eql(@@success) # single_test["extra"].should eql("just a test") # end # end require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe "Selenium RC test" do before(:all) do @selenium_driver = Selenium::Client::Driver.new \ :browser => "firefox", :url => "http://testingbot.com", :timeout_in_second => 60, :platform => "WINDOWS", :version => "10" end before(:each) do @selenium_driver.start_new_browser_session({ :extra => "just a test" }) end after(:each) do @selenium_driver.close_current_browser_session end context "Connect and run successfully to the TestingBot Grid with Selenium 1 (RC)" do it "should be able to run an RC test successfully" do @check_api = false @selenium_driver.open "/" @selenium_driver.text?("TestingBot").should be_true end end context "Check that we report the test status back successfully" do it "should send a success status to TestingBot upon success of the test" do @check_api = true @selenium_driver.open "/" @selenium_driver.text?("TestingBot").should be_true end end end
Version data entries
8 entries across 8 versions & 1 rubygems