Sha256: b7a3d5fa33b50b7df36e9f3e52bee5e9640a881fce576fa64dee46d2cbc76730

Contents?: true

Size: 790 Bytes

Versions: 1

Compression:

Stored size: 790 Bytes

Contents

require "rubygems"
gem "selenium-client"
require "selenium/client"
gem 'test-unit'
require 'test/unit'

gem "testingbot"
require "testingbot"

class ExampleTest < TestingBot::TestCase
  attr_reader :browser

  def setup
    @browser = Selenium::Client::Driver.new \
        :host => "hub.testingbot.com",
        :port => 4444, 
        :browser => "iexplore", 
        :platform => "WINDOWS",
        :version => "7",
        :url => "http://www.google.com", 
        :timeout_in_second => 60
      
    browser.extra = "First test" # some custom data you can pass with your tests
    
    browser.start_new_browser_session
  end

  def teardown
    browser.close_current_browser_session
  end

  def test_page_search
    browser.open "/"
    assert_equal "Google", browser.title
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
testingbot-0.0.6 examples/test_unit.rb