Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Sauce OnDemand is a Selenium testing cloud service, developed by Sauce Labs Inc (saucelabs.com). This is the Ruby client adapter for Sauce OnDemand.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.document
.gitignore
LICENSE
README.markdown
Rakefile
VERSION

README.markdown

sauce

Ruby access to Sauce OnDemand

Features

Current:

  • ActiveRecord-like interface for tunnels: Find/create/destroy
  • Same with jobs

Planned:

  • Extend to automatic retrieval of jobs logs, videos, reverse tunnels
  • Start/stop local instances of Sauce RC

Install

gem install sauce

Example

Here's how to start a tunnel using the Sauce gem require 'rubygems' require 'sauce'

account = YAML.load_file "live_account.yml"
client = Sauce::Client.new(:username => account["username"],
                           :access_key => account["access_key"])

tunnel = client.tunnel.create('DomainNames' => ["example.com"])
tunnel.refresh!

client.tunnels.all # => [#<Sauce::Tunnel:0x1250e6c
                             @host=nil,
                             @status="running",
                             @id="389a1c2a3d49861474c512e9a904be9e",
                             @client=#<RestClient::Resource:0x1257fb4
                               @block=nil,
                               @url="https://username:access_key@saucelabs.com/rest/username/",
                               @options={}>,
                             @owner="username">]

tunnel.destroy

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Copyright

Copyright (c) 2010 Sauce Labs Inc. See LICENSE for details.

Something went wrong with that request. Please try again.