From 477993e9e9d90242695c7b9d9393dd21396a2aea Mon Sep 17 00:00:00 2001 From: Yu Yi Yang Date: Mon, 13 May 2024 11:13:44 +0200 Subject: [PATCH] restructure --- docs/dev/test-configuration-options.md | 12 +++++----- .../features/network-throttling.md | 22 +++++++++++++------ 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/docs/dev/test-configuration-options.md b/docs/dev/test-configuration-options.md index e59c2f8a95..32e9e9e5f6 100644 --- a/docs/dev/test-configuration-options.md +++ b/docs/dev/test-configuration-options.md @@ -1554,7 +1554,7 @@ capabilities.setCapability("sauce:options", sauceOptions); ### `networkProfile` -

| OPTIONAL | STRING | Real Devices Only | BETA |

+

| OPTIONAL | STRING | Real Devices Only | iOS BETA |

Set a network profile with predefined network conditions at the beginning of the session. Please refer to the [list of network profiles](https://docs.saucelabs.com/mobile-apps/features/network-throttling/#predefined-network-profiles) for more information about each profile's network conditions. @@ -1571,7 +1571,7 @@ capabilities.setCapability("sauce:options", sauceOptions); ### `networkConditions` -

| OPTIONAL | OBJECT | Real Devices Only | BETA |

+

| OPTIONAL | OBJECT | Real Devices Only | iOS BETA |

Set custom network conditions for `downloadSpeed`, `uploadSpeed`, `latency` or `loss` at the beginning of the session. Not all parameters need to be specified and only the ones specified will have conditioning applied. @@ -1581,10 +1581,10 @@ MutableCapabilities capabilities = new MutableCapabilities(); //... MutableCapabilities sauceOptions = new MutableCapabilities(); sauceOptions.setCapability("networkConditions", ImmutableMap.of( - "downloadSpeed", "input", - "uploadSpeed", "input", - "latency", "input", - "loss", "input", + "downloadSpeed", 5000, + "uploadSpeed", 3000, + "latency", 200, + "loss", 2, )); capabilities.setCapability("sauce:options", sauceOptions); ``` diff --git a/docs/mobile-apps/features/network-throttling.md b/docs/mobile-apps/features/network-throttling.md index 001e94116d..0e2f0375b8 100644 --- a/docs/mobile-apps/features/network-throttling.md +++ b/docs/mobile-apps/features/network-throttling.md @@ -7,8 +7,10 @@ sidebar_label: Network Throttling import useBaseUrl from '@docusaurus/useBaseUrl';

Real Devices Only

+

iOS BETA

With Sauce Labs Network Throttling, you can apply network conditions to do fancy network stuff during live and automated testing. +Something with debugging with network capture. the whole shebang why we do this ## What You'll Need @@ -120,20 +122,26 @@ Funky list of predefined profiles with their specific network conditions in a ta -## Appium Capability for entire session -[Appium Capability networkProfile](https://docs.saucelabs.com/dev/test-configuration-options/#network-profile) +## Automated Testing -## Mid-Session Appium +### Automated Appium Test +* [Appium capability networkProfile](https://docs.saucelabs.com/dev/test-configuration-options/#network-profile) +* [Appium capability networkConditions](https://docs.saucelabs.com/dev/test-configuration-options/#network-conditions) +## Upcoming -## Live Testing +* dynamic mid-session network throttling for automated Appium tests +* dynamic mid-session network throttling for manual Live tests +* network throttling at the beginning of the session for automated native framework tests +## Limitations +:::note Limitations -## Native Testing Frameworks +- iOS network throttling is supported on iOS/iPadOS 14.0 and above. +::: -## More Information -Something about network capture +## More Information - [Network Capture](https://docs.saucelabs.com/mobile-apps/features/network-capture/)