Skip to content

Commit

Permalink
restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi-sl committed May 13, 2024
1 parent ff01c14 commit 477993e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
12 changes: 6 additions & 6 deletions docs/dev/test-configuration-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -1554,7 +1554,7 @@ capabilities.setCapability("sauce:options", sauceOptions);

### `networkProfile`

<p><small>| OPTIONAL | STRING | <span className="sauceGreen">Real Devices Only</span> | <span className="sauceGreen">BETA</span> |</small></p>
<p><small>| OPTIONAL | STRING | <span className="sauceGreen">Real Devices Only</span> | <span className="sauceGreen">iOS BETA</span> |</small></p>

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.
Expand All @@ -1571,7 +1571,7 @@ capabilities.setCapability("sauce:options", sauceOptions);

### `networkConditions`

<p><small>| OPTIONAL | OBJECT | <span className="sauceGreen">Real Devices Only</span> | <span className="sauceGreen">BETA</span> |</small></p>
<p><small>| OPTIONAL | OBJECT | <span className="sauceGreen">Real Devices Only</span> | <span className="sauceGreen">iOS BETA</span> |</small></p>

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.
Expand All @@ -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);
```
Expand Down
22 changes: 15 additions & 7 deletions docs/mobile-apps/features/network-throttling.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ sidebar_label: Network Throttling
import useBaseUrl from '@docusaurus/useBaseUrl';

<p><small><span className="sauceGreen">Real Devices Only</span></small></p>
<p><small><span className="sauceGreen">iOS BETA</span></small></p>

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

Expand Down Expand Up @@ -120,20 +122,26 @@ Funky list of predefined profiles with their specific network conditions in a ta
</tbody>
</table>

## 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/)

0 comments on commit 477993e

Please sign in to comment.