Skip to content

Commit a4abe3e

Browse files
Merge pull request #227 from karma-runner/fix/issue-133-mobile-docs
chore: update mobile documentation
2 parents ee79b71 + 060b463 commit a4abe3e

File tree

1 file changed

+27
-15
lines changed

1 file changed

+27
-15
lines changed

README.md

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,35 +41,47 @@ module.exports = function(config) {
4141
sl_chrome: {
4242
base: 'SauceLabs',
4343
browserName: 'chrome',
44-
platform: 'Windows 7',
45-
version: '35'
44+
platform: 'Windows 10',
4645
},
4746
sl_firefox: {
4847
base: 'SauceLabs',
4948
browserName: 'firefox',
50-
version: '30'
51-
},
52-
sl_ios_safari: {
53-
base: 'SauceLabs',
54-
browserName: 'iphone',
55-
platform: 'OS X 10.9',
56-
version: '7.1'
49+
version: 'latest'
5750
},
5851
sl_ie_11: {
5952
base: 'SauceLabs',
6053
browserName: 'internet explorer',
6154
platform: 'Windows 8.1',
62-
version: '11'
6355
},
56+
// Mobile settings
57+
// 1. Go to https://wiki.saucelabs.com/display/DOCS/Platform+Configurator#/
58+
// 2. Select Appium iOS,Android
59+
// 3. Configure your device
60+
// Don't forget to provide the `appiumVersion`
61+
sl_ios_safari: {
62+
base: 'SauceLabs',
63+
deviceName: 'iPhone 11 Simulator',
64+
platformVersion: '13.4',
65+
platformName: 'iOS',
66+
browserName: 'Safari',
67+
appiumVersion: '1.17.1',
68+
deviceOrientation: 'portrait'
69+
},
70+
// !!!!IMPORTANT!!!!
71+
// If you want to use an Android emulator then you can't use localhost.
72+
// Because an Android emulator is a VM it will go to it's own localhost
73+
// and the test will fail. Make change the `hostname` to your
74+
// local ip
6475
sl_android: {
6576
base: 'SauceLabs',
66-
browserName: 'Browser',
77+
deviceName: 'Android GoogleAPI Emulator',
6778
platform: 'Android',
68-
version: '4.4',
69-
deviceName: 'Samsung Galaxy S3 Emulator',
79+
version: '11.0',
80+
browserName: 'chrome',
81+
appiumVersion: '1.18.1',
7082
deviceOrientation: 'portrait'
7183
},
72-
// For W3C way of setting the capabilies check
84+
// For W3C way of setting the capabilities check
7385
// https://wiki.saucelabs.com/display/DOCS/Platform+Configurator#/
7486
// And select WebDriver (W3C) Selenium 3/4, Webdriver.io
7587
sl_chromeW3C: {
@@ -101,7 +113,7 @@ module.exports = function(config) {
101113

102114
### Example karma-sauce-launcher configs
103115

104-
For example configs using this launcher (using Travis CI), check out this repo's [karma file](https://github.com/karma-runner/karma-sauce-launcher/tree/master/examples/karma.conf-ci.js), the [karma-sauce-example repo](https://github.com/saucelabs/karma-sauce-example) (which demonstrates how to use Sauce locally), or [AngularJS' Karma config](https://github.com/angular/angular.js/blob/master/karma-shared.conf.js).
116+
For example configs using this launcher (using Travis CI), check out this repo's [karma file](https://github.com/karma-runner/karma-sauce-launcher/tree/master/examples/karma.conf-ci.js), or [AngularJS' Karma config](https://github.com/angular/angular.js/blob/master/karma-shared.conf.js).
105117

106118
### Example results in Sauce Labs
107119
Version `4.2.0` and lower of this module will give you the following result in Sauce Labs, no matter how many tests you execute.

0 commit comments

Comments
 (0)