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 SecretGets a list of browsers you can test on
@api.get_browsersGets your user information
@api.get_user_infoUpdates 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)Gets a list of active tunnels for your account.
@api.get_tunnelsUploads 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)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
