{"_id":"56fae4bb6efc3b2000b5fd9e","parentDoc":null,"__v":11,"project":"559b65bd8b04e90d00702d54","version":{"_id":"559b65bd8b04e90d00702d57","project":"559b65bd8b04e90d00702d54","__v":6,"createdAt":"2015-07-07T05:38:05.890Z","releaseDate":"2015-07-07T05:38:05.890Z","categories":["559b65be8b04e90d00702d58","55a46e7468c7e20d0036d4d1","55a4971be6c2470d002a6483","55a4a690e10ba50d00b40bba","55a4bcf31a5f991700a94066","56cf5c8d336aa60b0086a40d"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"56cf5c8d336aa60b0086a40d","__v":1,"pages":["56cf5ea2287eb20b009f9f2e"],"project":"559b65bd8b04e90d00702d54","version":"559b65bd8b04e90d00702d57","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-02-25T19:57:01.905Z","from_sync":false,"order":2,"slug":"advanced","title":"Advanced"},"user":"559b658d8b04e90d00702d52","updates":["56faeff295334c0e00f55f46","56fb17e39e443a0e00b489a3","573a10cdc6c5181700961fae","57cd5b3a4bddd10e00c49953"],"next":{"pages":[],"description":""},"createdAt":"2016-03-29T20:25:31.785Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"Since Chimp uses Selenium, you get the benefit of using all of the cloud based testing services.\n\nHere is a sample command that you could use to setup a connection with Sauce Labs:\n```\nchimp --host=\"ondemand.saucelabs.com\" --port=80 --key=\"SAUCE_KEY\" \n      --user=\"SAUCE_USER\" --name=\"foo\"\n```\n\nYou can also put these settings in a configuration file like this:\n\n```json\nmodule.exports = {\n  user: \"SAUCE_USER\",\n  key: \"SAUCE_KEY\",\n  port: 80,\n  host: \"ondemand.saucelabs.com\",\n  name: \"foo\"\n};\n```\n\nSee the [Configuration page](doc:command-line-options) for more details on setting up a configuration file.\n\n\n### Browser Stack Example\n```\nmodule.exports = {\n    // - - - - CHIMP - - - -\n    user: \"My Browserstack Username\",\n    key: \"My Browserstack Access Key\",\n    port: 80,\n    host: \"hub-cloud.browserstack.com\",\n    browser: \"Chrome\",\n\n    // - - - - WEBDRIVER-IO  - - - -\n    webdriverio: {\n        desiredCapabilities: {\n            'browserstack.local': true,\n            'build': 'My Build',\n            'project': 'My Project Name',\n            'os' : 'Windows',\n            'os_version' : '7'\n        }\n    },\n};\n```","excerpt":"","slug":"using-saucelabs-browserstack-seleniumgrid","type":"basic","title":"Cloud services"}
Since Chimp uses Selenium, you get the benefit of using all of the cloud based testing services. Here is a sample command that you could use to setup a connection with Sauce Labs: ``` chimp --host="ondemand.saucelabs.com" --port=80 --key="SAUCE_KEY" --user="SAUCE_USER" --name="foo" ``` You can also put these settings in a configuration file like this: ```json module.exports = { user: "SAUCE_USER", key: "SAUCE_KEY", port: 80, host: "ondemand.saucelabs.com", name: "foo" }; ``` See the [Configuration page](doc:command-line-options) for more details on setting up a configuration file. ### Browser Stack Example ``` module.exports = { // - - - - CHIMP - - - - user: "My Browserstack Username", key: "My Browserstack Access Key", port: 80, host: "hub-cloud.browserstack.com", browser: "Chrome", // - - - - WEBDRIVER-IO - - - - webdriverio: { desiredCapabilities: { 'browserstack.local': true, 'build': 'My Build', 'project': 'My Project Name', 'os' : 'Windows', 'os_version' : '7' } }, }; ```