Skip to content

Commit bab7df7

Browse files
DylanLaceyKazuCocoa
authored andcommitted
Clarify disabling Sauce Labs. (#471)
* Update readme.md Clarified that using the SAUCE environment variables forces Sauce on. * Update driver.rb Clarify how to disable Sauce Labs entirely.
1 parent cf0bda0 commit bab7df7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/appium_lib/driver.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,9 @@ class Driver
281281
# This value is independent of what the server is using
282282
# @return [Integer]
283283
attr_reader :default_wait
284-
# Username for use on Sauce Labs
284+
# Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_USERNAME is in ENV.
285285
attr_accessor :sauce_username
286-
# Access Key for use on Sauce Labs
286+
# Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_ACCESS_KEY is in ENV.
287287
attr_accessor :sauce_access_key
288288
# Appium's server port
289289
attr_accessor :appium_port

readme.md

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ gem install --no-rdoc --no-ri appium_lib
4545
- `SAUCE_USERNAME` Sauce username
4646
- `SAUCE_ACCESS_KEY` Sauce API key
4747

48+
(Note: If these variables are set, all tests will use Sauce Labs unless over-ridden in configuration.)
49+
4850
#### Troubleshooting
4951

5052
1. Does `adb kill-server; adb devices` list an active Android device?

0 commit comments

Comments
 (0)