You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Option 1: Using a deployed serverless demo (no tunnel required)
78
79
Sauce Labs will open a browser and load a test url. The following command requires the [Chime SDK serverless demo](https://github.com/aws/amazon-chime-sdk-js/tree/main/demos/serverless) deployed in your AWS account. If you haven't already, follow the [Chime SDK serverless demo instruction](https://github.com/aws/amazon-chime-sdk-js/tree/main/demos/serverless) to deploy the demo. You can set the demo url as an environment variable with the following command:
79
80
```bash
80
-
export TEST_URL=<Chime SDK for JavaScript serverelss demo URL>
81
+
export TEST_URL=<Chime SDK for JavaScript serverless demo URL>
81
82
```
82
83
83
84
The following command can be used to run browser compatibility tests with default settings on Sauce Labs:
@@ -86,6 +87,38 @@ The following command can be used to run browser compatibility tests with defaul
86
87
npm run test -- --test-name AudioTest --host saucelabs --test-type browser-compatibility
87
88
```
88
89
90
+
#### Option 2: Using a local Sauce Connect tunnel
91
+
If you want to test against the local demo server (served on `127.0.0.1:8080`), you need to set up a Sauce Connect tunnel so that SauceLabs browsers can reach your local machine.
export JOB_ID=<same UUID used when starting the tunnel>
116
+
117
+
npm run test -- --test-name AudioTest --host saucelabs --test-type browser-compatibility
118
+
```
119
+
120
+
The `JOB_ID` must match the `--tunnel-name` used when starting `sc` — this is how SauceLabs routes browser traffic through your tunnel.
121
+
89
122
There are scenarios where a test might not be compatible with one of the browsers or OS. In that case, the user can provide a custom config with an updated clients array. `sample_test.config.json` is a sample test config already provided.
90
123
The following command can be used to run a browser compatibility test with a custom config:
0 commit comments