0.0
No commit activity in last 3 years
No release in over 3 years
ruby wrapper of browser stack api
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0
>= 0
 Project Readme

BrowserStack

Ruby Wrapper Of Browser Stack API

Installation

Add this line to your application's Gemfile:

gem 'browser_stack'

And then execute:

$ bundle

Or install it yourself as:

$ gem install browser_stack

Usage

Basic Configuration

 # http://api.browserstack.com/3
 BrowserStack.configure do |config|
  config.api_version="3"
  config.user_name = "amardaxini@gmail.com"
  config.password = "thakkar"
 end

Getting Available Browsers

 # /browsers

 client = BrowserStack::Browser.get_browsers
 client.parse_response

 #/browsers?flat=true

 client = BrowserStack::Browser.get_browsers(true)
 client.parse_response

 # In General for all request
 client.response # will be the http response
 client.response.code # http response code
 client.api_error?
 cleint.error_message

Create a New Browser Worker

# /worker
  worker = BrowserStack::Worker.create_worker({:os=>"Windows",:os_version=>'7',:url=>"url",:browser=>"ie",:browser_version=>"8.0"})
  worker.parse_response

Terminating a worker

# /worker/:id
  delete_worker = BrowserStack::Worker.treminate_worker(worker_id)
  worker.parse_response

Getting Worker Status

# /worker/:id
  worker_status = BrowserStack::Worker.get_worker_status(worker_id)
  worker.parse_response

# /workers  (Get All worker status)
  worker_status = BrowserStack::Worker.get_all_worker_status
  worker.parse_response

Getting API Status

# /status
  api_status = BrowserStack::ApiStatus.get_status

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request