This is the TestingBot Ruby client which makes it easy to interact with the TestingBot API
Add this line to your application's Gemfile:
gem 'testingbot'
And then execute:
$ bundle
Or install it yourself as:
$ gem install testingbot
You'll need a TestingBot account. TestingBot offers free trials.
Once you have a TestingBot account, you can retrieve your unique TestingBot Key and Secret from the TestingBot dashboard
@api = TestingBot::Api.new(key, secret)
You can set these environment variables to authenticate with our API:
TB_KEY=Your TestingBot Key
TB_SECRET=Your TestingBot Secret
Gets a list of browsers you can test on
@api.get_browsers
Gets a list of (physical) devices you can test on
@api.get_devices
Gets a list of available (physical) devices you can test on
@api.get_available_devices
Gets info about the current team you belong to
@api.get_team
Gets all users in your team
@api.get_users_in_team(offset = 0, count = 10)
Get info about a specific user in your team
@api.get_user_in_team(user_id)
Add a user to your current team. You need to have ADMIN rights to do this.
@api.create_user_in_team(user = {})
Updates a specific user in your team.
@api.update_user_in_team(user_id, user = {})
Resets the credentials for a specific user
@api.reset_credentials(user_id)
Take screenshots for a specific URL on specific browsers
@api.take_screenshots(configuration)
Retrieve screenshots that were previously generated
@api.get_screenshots_history(offset = 0, count = 10)
Get screenshots from a specific id
@api.get_screenshots(screenshots_id)
Gets your user information
@api.get_user_info
Updates your user information
@api.update_user_info({ "first_name" => 'my name' })
Updates a Test with Meta-data to display on TestingBot. For example, you can specify the test name and whether the test succeeded or failed:
@api.update_test(webdriver_session_id, { :name => new_name, :success => true })
Gets meta information for a test/job by passing in the WebDriver sessionID of the test you ran on TestingBot:
@api.get_test(webdriver_session_id)
Gets a list of previous jobs/tests that you ran on TestingBot, order by last run:
@api.get_tests(0, 10)
Deletes a test from TestingBot
@api.delete_test(webdriver_session_id)
Stops a running test on TestingBot
@api.stop_test(webdriver_session_id)
Gets a list of builds that you ran on TestingBot, order by last run:
@api.get_builds(0, 10)
Gets a build from TestingBot
@api.get_build(build_identifier)
Deletes a build from TestingBot
@api.delete_build(build_identifier)
Gets a list of active tunnels for your account.
@api.get_tunnels
Deletes an active tunnel.
@api.delete_tunnel(tunnel_identifier)
Uploads a local file (APK or IPA file) to TestingBot Storage for Mobile App Testing.
@api.upload_local_file(localFilePath)
Uploads a remote file (APK or IPA URL) to TestingBot Storage for Mobile App Testing.
@api.upload_remote_file(remoteFileUrl)
Retrieves files previously uploaded TestingBot Storage for Mobile App Testing.
@api.get_uploaded_files(offset = 0, count = 30)
Retrieves meta-data for a file previously uploaded to TestingBot Storage.
@api.get_uploaded_file(app_url)
Deletes a previously uploaded file
@api.delete_uploaded_file(remoteFileUrl)
Uploads a remote file (APK or IPA URL) to TestingBot Storage for Mobile App Testing.
@api.upload_remote_file(remoteFileUrl)
Calculates the hash necessary to share tests with other people
@api.get_authentication_hash(identifier)
- Fork this repository
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request