{"id":15043937,"url":"https://github.com/testingbot/testingbot_ruby","last_synced_at":"2025-08-12T18:45:48.905Z","repository":{"id":59157749,"uuid":"2169870","full_name":"testingbot/testingbot_ruby","owner":"testingbot","description":"Ruby gem to use with the Cloud Selenium Service at testingbot.com","archived":false,"fork":false,"pushed_at":"2023-03-22T15:51:00.000Z","size":8114,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T19:11:16.649Z","etag":null,"topics":["rspec","rubygem","selenium","testingbot","webdriver"],"latest_commit_sha":null,"homepage":"https://testingbot.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/testingbot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-08-07T19:13:30.000Z","updated_at":"2023-06-23T11:41:14.000Z","dependencies_parsed_at":"2024-09-25T01:51:34.019Z","dependency_job_id":"2668a315-f401-4881-9dae-acc12fdcc666","html_url":"https://github.com/testingbot/testingbot_ruby","commit_stats":{"total_commits":151,"total_committers":4,"mean_commits":37.75,"dds":0.07284768211920534,"last_synced_commit":"b6b8c3d100ab8c5506cdee0705baa29f8cb34bbd"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingbot%2Ftestingbot_ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingbot%2Ftestingbot_ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingbot%2Ftestingbot_ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingbot%2Ftestingbot_ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/testingbot","download_url":"https://codeload.github.com/testingbot/testingbot_ruby/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237843831,"owners_count":19375211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rspec","rubygem","selenium","testingbot","webdriver"],"created_at":"2024-09-24T20:49:50.931Z","updated_at":"2025-02-08T17:31:07.165Z","avatar_url":"https://github.com/testingbot.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gem Version](https://badge.fury.io/rb/testingbot.svg)](https://badge.fury.io/rb/testingbot)\n[![Test Changes](https://github.com/testingbot/testingbot_ruby/actions/workflows/test.yml/badge.svg)](https://github.com/testingbot/testingbot_ruby/actions/workflows/test.yml)\n\n# Testingbot-Ruby\n\nThis is the TestingBot Ruby client which makes it easy to \ninteract with the [TestingBot API](https://testingbot.com/support/api)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'testingbot'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install testingbot\n\n\n## Configuration\n\nYou'll need a [TestingBot account](https://testingbot.com).  TestingBot offers free trials.\n\n## Setup\n\nOnce you have a TestingBot account, you can retrieve your unique TestingBot Key and Secret from the [TestingBot dashboard](https://testingbot.com/members)\n\n## Usage\n\n```ruby\n@api = TestingBot::Api.new(key, secret)\n```\n\n#### Environment variables\nYou can set these environment variables to authenticate with our API:\n\n```bash\nTB_KEY=Your TestingBot Key\nTB_SECRET=Your TestingBot Secret\n```\n\n### get_browsers\nGets a list of browsers you can test on\n\n```ruby\n@api.get_browsers\n```\n\n### get_devices\nGets a list of (physical) devices you can test on\n\n```ruby\n@api.get_devices\n```\n\n### get_available_devices\nGets a list of available (physical) devices you can test on\n\n```ruby\n@api.get_available_devices\n```\n\n### get_team\nGets info about the current team you belong to\n\n```ruby\n@api.get_team\n```\n\n### get_users_in_team\nGets all users in your team\n\n```ruby\n@api.get_users_in_team(offset = 0, count = 10)\n```\n\n### get_user_in_team\nGet info about a specific user in your team\n\n```ruby\n@api.get_user_in_team(user_id)\n```\n\n### create_user_in_team\nAdd a user to your current team. You need to have ADMIN rights to do this.\n\n```ruby\n@api.create_user_in_team(user = {})\n```\n\n### update_user_in_team\nUpdates a specific user in your team.\n\n```ruby\n@api.update_user_in_team(user_id, user = {})\n```\n\n### reset_credentials\nResets the credentials for a specific user\n\n```ruby\n@api.reset_credentials(user_id)\n```\n\n### take_screenshots\nTake screenshots for a specific URL on specific browsers\n\n```ruby\n@api.take_screenshots(configuration)\n```\n\n### get_screenshots_history\nRetrieve screenshots that were previously generated\n\n```ruby\n@api.get_screenshots_history(offset = 0, count = 10)\n```\n\n### get_screenshots\nGet screenshots from a specific id\n\n```ruby\n@api.get_screenshots(screenshots_id)\n```\n\n### get_user_info\nGets your user information\n\n```ruby\n@api.get_user_info\n```\n\n### update_user_info\nUpdates your user information\n\n```ruby\n@api.update_user_info({ \"first_name\" =\u003e 'my name' })\n```\n\n### update_test\nUpdates a Test with Meta-data to display on TestingBot.\nFor example, you can specify the test name and whether the test succeeded or failed:\n\n```ruby\n@api.update_test(webdriver_session_id, { :name =\u003e new_name, :success =\u003e true })\n```\n\n### get_test\nGets meta information for a test/job by passing in the WebDriver sessionID of the test you ran on TestingBot:\n\n```ruby\n@api.get_test(webdriver_session_id)\n```\n\n### get_tests\nGets a list of previous jobs/tests that you ran on TestingBot, order by last run:\n\n```ruby\n@api.get_tests(0, 10)\n```\n\n### delete_test\nDeletes a test from TestingBot\n\n```ruby\n@api.delete_test(webdriver_session_id)\n```\n\n### stop_test\nStops a running test on TestingBot\n\n```ruby\n@api.stop_test(webdriver_session_id)\n```\n\n### get_builds\nGets a list of builds that you ran on TestingBot, order by last run:\n\n```ruby\n@api.get_builds(0, 10)\n```\n\n### get_build\nGets a build from TestingBot\n\n```ruby\n@api.get_build(build_identifier)\n```\n\n### delete_build\nDeletes a build from TestingBot\n\n```ruby\n@api.delete_build(build_identifier)\n```\n\n### get_tunnels\nGets a list of active tunnels for your account.\n\n```ruby\n@api.get_tunnels\n```\n\n### delete_tunnel\nDeletes an active tunnel.\n\n```ruby\n@api.delete_tunnel(tunnel_identifier)\n```\n\n### upload_local_file\nUploads a local file (APK or IPA file) to TestingBot Storage for Mobile App Testing.\n\n```ruby\n@api.upload_local_file(localFilePath)\n```\n\n### upload_remote_file\nUploads a remote file (APK or IPA URL) to TestingBot Storage for Mobile App Testing.\n\n```ruby\n@api.upload_remote_file(remoteFileUrl)\n```\n\n### get_uploaded_files\nRetrieves files previously uploaded TestingBot Storage for Mobile App Testing.\n\n```ruby\n@api.get_uploaded_files(offset = 0, count = 30)\n```\n\n### get_uploaded_file\nRetrieves meta-data for a file previously uploaded to TestingBot Storage.\n\n```ruby\n@api.get_uploaded_file(app_url)\n```\n\n### delete_uploaded_file\nDeletes a previously uploaded file\n\n```ruby\n@api.delete_uploaded_file(remoteFileUrl)\n```\n\n### upload_remote_file\nUploads a remote file (APK or IPA URL) to TestingBot Storage for Mobile App Testing.\n\n```ruby\n@api.upload_remote_file(remoteFileUrl)\n```\n\n### get_authentication_hash\nCalculates the hash necessary to share tests with other people\n\n```ruby\n@api.get_authentication_hash(identifier)\n```\n\n## Contributing\n\n1. Fork this repository\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestingbot%2Ftestingbot_ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestingbot%2Ftestingbot_ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestingbot%2Ftestingbot_ruby/lists"}