From ba2a8ca5be424e140b1f477fa29bc0d94027abbb Mon Sep 17 00:00:00 2001 From: Lee <55557130+lee-133@users.noreply.github.com> Date: Fri, 13 Dec 2024 09:53:22 -0600 Subject: [PATCH 1/3] Update real-devices.md (#3042) Removed the space that was in this code block for appium:noReset ```js "appium:noReset" : "true", "sauce:options" : { "cacheId" : "jnc0x1256", } ``` --- docs/mobile-apps/automated-testing/appium/real-devices.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/mobile-apps/automated-testing/appium/real-devices.md b/docs/mobile-apps/automated-testing/appium/real-devices.md index 1e6317351f..db68c46d02 100644 --- a/docs/mobile-apps/automated-testing/appium/real-devices.md +++ b/docs/mobile-apps/automated-testing/appium/real-devices.md @@ -278,7 +278,7 @@ To optimize device availability, consistency, and efficiency for multiple tests, To skip the uninstallation and reinstallation of your app from the device, you can set `noReset` to `true` in conjunction with using a `cacheId`. This setting adds efficiency, but may not be suitable for test setups that require the app's state to be reset between tests. ```js -"appium: noReset" : "true", +"appium:noReset" : "true", "sauce:options" : { "cacheId" : "jnc0x1256", } From 3c9f8bb7d0cfd44ddf22ad8dacc2b7c2063a2279 Mon Sep 17 00:00:00 2001 From: Lee <55557130+lee-133@users.noreply.github.com> Date: Fri, 13 Dec 2024 09:55:57 -0600 Subject: [PATCH 2/3] Update test-configuration-options.md (#3044) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Moved the following 2 capabilities: recordVideo videoUploadOnPass FROM section: Desktop and Mobile Capabilities: Sauce-Specific – Optional TO section: Desktop and Virtual Device Capabilities: Sauce-Specific – Optional As they are not supported on Real Devices. --- docs/dev/test-configuration-options.md | 64 +++++++++++++------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/docs/dev/test-configuration-options.md b/docs/dev/test-configuration-options.md index 118c230d7b..36405481c9 100644 --- a/docs/dev/test-configuration-options.md +++ b/docs/dev/test-configuration-options.md @@ -2006,38 +2006,6 @@ Appium tests for the Real Device Cloud using the W3C protocol MUST use `tunnelNa --- -### `recordVideo` - -
| OPTIONAL | BOOLEAN |
- -Use this to disable video recording. By default, Sauce Labs records a video of every test you run. Disabling video recording can be useful for debugging failing tests as well as having a visual confirmation that a certain feature works (or still works). However, there is an added wait time for screen recording during a test run. - -```java -MutableCapabilities capabilities = new MutableCapabilities(); -//... -MutableCapabilities sauceOptions = new MutableCapabilities(); -sauceOptions.setCapability("recordVideo", false); -capabilities.setCapability("sauce:options", sauceOptions); -``` - ---- - -### `videoUploadOnPass` - -| OPTIONAL | BOOLEAN |
- -Disables video upload for passing tests. `videoUploadOnPass` is an alternative to `recordVideo`; it lets you discard videos for tests you've marked as passing. It disables video post-processing and uploading that may otherwise consume some extra time after your test is complete. - -```java -MutableCapabilities capabilities = new MutableCapabilities(); -//... -MutableCapabilities sauceOptions = new MutableCapabilities(); -sauceOptions.setCapability("videoUploadOnPass", false); -capabilities.setCapability("sauce:options", sauceOptions); -``` - ---- - ### `recordScreenshots`| OPTIONAL | BOOLEAN |
@@ -2139,6 +2107,22 @@ capabilities.setCapability("sauce:options", sauceOptions); --- +### `recordVideo` + +| OPTIONAL | BOOLEAN |
+ +Use this to disable video recording. By default, Sauce Labs records a video of every test you run. Disabling video recording can be useful for debugging failing tests as well as having a visual confirmation that a certain feature works (or still works). However, there is an added wait time for screen recording during a test run. + +```java +MutableCapabilities capabilities = new MutableCapabilities(); +//... +MutableCapabilities sauceOptions = new MutableCapabilities(); +sauceOptions.setCapability("recordVideo", false); +capabilities.setCapability("sauce:options", sauceOptions); +``` + +--- + ### `timeZone`| OPTIONAL | STRING | Desktop and Virtual Devices Only |
@@ -2186,6 +2170,22 @@ The same behavior could be achieved by providing a custom value to the --- +### `videoUploadOnPass` + +| OPTIONAL | BOOLEAN |
+ +Disables video upload for passing tests. `videoUploadOnPass` is an alternative to `recordVideo`; it lets you discard videos for tests you've marked as passing. It disables video post-processing and uploading that may otherwise consume some extra time after your test is complete. + +```java +MutableCapabilities capabilities = new MutableCapabilities(); +//... +MutableCapabilities sauceOptions = new MutableCapabilities(); +sauceOptions.setCapability("videoUploadOnPass", false); +capabilities.setCapability("sauce:options", sauceOptions); +``` + +--- + ### Pre-Run Executables| OPTIONAL | Desktop and Virtual Devices Only |
From 9e62561a8299aa8641118d97632c1565e6cf2f72 Mon Sep 17 00:00:00 2001 From: Lee <55557130+lee-133@users.noreply.github.com> Date: Fri, 13 Dec 2024 09:58:28 -0600 Subject: [PATCH 3/3] Update test-configuration-options.md (#3038) Under appium:appTimeZone, line 883, there was a text formatting issue: f or more details. Updated to: for more details. --- docs/dev/test-configuration-options.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/dev/test-configuration-options.md b/docs/dev/test-configuration-options.md index 36405481c9..8a8b055401 100644 --- a/docs/dev/test-configuration-options.md +++ b/docs/dev/test-configuration-options.md @@ -880,8 +880,7 @@ Using Appium 2? Prevent `appium:`-prefix repetitiveness and start using [`appium Defines the custom time zone override for the application under test. You can use `UTC`, `PST`, `EST`, as well as place-based timezone names such as `America/Los_Angeles`. -See [the list of available time zone identifiers](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) f -or more details. The same behavior could be achieved by providing a custom +See [the list of available time zone identifiers](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for more details. The same behavior could be achieved by providing a custom value to the `TZ` environment variable via the `appium:processArguments` capability. :::note