Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/Semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

container:
# A Docker image with Semgrep installed. Do not change this.
image: returntocorp/semgrep:1.166.0
image: returntocorp/semgrep:1.166.0@sha256:c180f0c93a17b420c0af5006214a29d3c747c5459c732b740191adf657dd0068
# Skip any PR created by dependabot to avoid permission issues:
if: (github.actor != 'dependabot[bot]')

Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
**/browserstack-cli
**/.DS_Store
**/node_modules/
**/package-lock.json
**/yarn.lock
**/pnpm-lock.yaml
28 changes: 23 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,38 @@
[browserstack-cli-windows](https://load-api.browserstack.com/api/v1/binary?os=win&arch=x64)

- **Linux x86**
[browserstack-cli-linux-x86](https://load-api.browserstack.com/api/v1/binary?os=linux&arch=arm64)
[browserstack-cli-linux-x86](https://load-api.browserstack.com/api/v1/binary?os=linux&arch=x64)

- **Linux ARM**
[browserstack-cli-linux-arm](https://load-api.browserstack.com/api/v1/binary?os=linux&arch=x64)
[browserstack-cli-linux-arm](https://load-api.browserstack.com/api/v1/binary?os=linux&arch=arm64)

> Place the downloaded `browserstack-cli` binary in the root of your project.
> The download is a zip. Extract it and place the `browserstack-cli` binary in the root of your project.

5. **Run tests using BrowserStack CLI**
5. **Verify the BrowserStack CLI**

Before running the binary, check that it is signed by BrowserStack:

- **macOS**: the output must include `TeamIdentifier=YQ5FZQ855D` (Browserstack Inc).

```sh
codesign --verify --strict ./browserstack-cli && codesign -dv ./browserstack-cli 2>&1 | grep TeamIdentifier
```

- **Windows** (PowerShell): `Status` must be `Valid` and the signer must be BrowserStack.

```powershell
Get-AuthenticodeSignature .\browserstack-cli.exe | Format-List Status, SignerCertificate
```

If the check fails, do not run the binary.

6. **Run tests using BrowserStack CLI**

```sh
./browserstack-cli load run
```

6. **View Test Results**
7. **View Test Results**

Visit the [BrowserStack Load-Testing Dashboard](https://load.browserstack.com/projects) to monitor and analyze your test runs.

Expand Down
24 changes: 21 additions & 3 deletions java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,33 @@
- **Linux ARM**
[browserstack-cli-linux-arm](https://load-api.browserstack.com/api/v1/binary?os=linux&arch=arm64)

> Place the downloaded `browserstack-cli` binary in the root of your project.
> The download is a zip. Extract it and place the `browserstack-cli` binary in the root of your project.

4. **Run tests using BrowserStack CLI**
4. **Verify the BrowserStack CLI**

Before running the binary, check that it is signed by BrowserStack:

- **macOS**: the output must include `TeamIdentifier=YQ5FZQ855D` (Browserstack Inc).

```sh
codesign --verify --strict ./browserstack-cli && codesign -dv ./browserstack-cli 2>&1 | grep TeamIdentifier
```

- **Windows** (PowerShell): `Status` must be `Valid` and the signer must be BrowserStack.

```powershell
Get-AuthenticodeSignature .\browserstack-cli.exe | Format-List Status, SignerCertificate
```

If the check fails, do not run the binary.

5. **Run tests using BrowserStack CLI**

```sh
./browserstack-cli load run
```

5. **View Test Results**
6. **View Test Results**

Visit the [BrowserStack Load-Testing Dashboard](https://load.browserstack.com/projects) to monitor and analyze your test runs.

Expand Down
3 changes: 2 additions & 1 deletion java/browserstack-load.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# =============================
# Set BrowserStack Credentials
# =============================
# Add your BrowserStack userName and accessKey here or set BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY as env variables.
# Set BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY as env variables. They override the placeholders below.
# Do not paste your real access key into this file: it is easy to commit and push by mistake.
userName: BROWSERSTACK_USERNAME
accessKey: BROWSERSTACK_ACCESS_KEY

Expand Down
1 change: 0 additions & 1 deletion java/src/test/java/com/example/SimpleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ private WebDriver createDriver() throws Exception {
"--disable-renderer-backgrounding",
"--disable-features=TranslateUI",
"--disable-ipc-flooding-protection",
"--disable-web-security",
"--disable-features=VizDisplayCompositor",
"--disable-logging",
"--silent"
Expand Down
28 changes: 23 additions & 5 deletions jest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,38 @@
[browserstack-cli-windows](https://load-api.browserstack.com/api/v1/binary?os=win&arch=x64)

- **Linux x86**
[browserstack-cli-linux-x86](https://load-api.browserstack.com/api/v1/binary?os=linux&arch=arm64)
[browserstack-cli-linux-x86](https://load-api.browserstack.com/api/v1/binary?os=linux&arch=x64)

- **Linux ARM**
[browserstack-cli-linux-arm](https://load-api.browserstack.com/api/v1/binary?os=linux&arch=x64)
[browserstack-cli-linux-arm](https://load-api.browserstack.com/api/v1/binary?os=linux&arch=arm64)

> Place the downloaded `browserstack-cli` binary in the root of your project.
> The download is a zip. Extract it and place the `browserstack-cli` binary in the root of your project.

4. **Run tests using BrowserStack CLI**
4. **Verify the BrowserStack CLI**

Before running the binary, check that it is signed by BrowserStack:

- **macOS**: the output must include `TeamIdentifier=YQ5FZQ855D` (Browserstack Inc).

```sh
codesign --verify --strict ./browserstack-cli && codesign -dv ./browserstack-cli 2>&1 | grep TeamIdentifier
```

- **Windows** (PowerShell): `Status` must be `Valid` and the signer must be BrowserStack.

```powershell
Get-AuthenticodeSignature .\browserstack-cli.exe | Format-List Status, SignerCertificate
```

If the check fails, do not run the binary.

5. **Run tests using BrowserStack CLI**

```sh
./browserstack-cli load run
```

5. **View Test Results**
6. **View Test Results**

Visit the [BrowserStack Load-Testing Dashboard](https://load.browserstack.com/projects) to monitor and analyze your test runs.

Expand Down
3 changes: 2 additions & 1 deletion jest/browserstack-load.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# =============================
# Set BrowserStack Credentials
# =============================
# Add your BrowserStack userName and accessKey here or set BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY as env variables.
# Set BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY as env variables. They override the placeholders below.
# Do not paste your real access key into this file: it is easy to commit and push by mistake.
userName: BROWSERSTACK_USERNAME
accessKey: BROWSERSTACK_ACCESS_KEY

Expand Down
Loading
Loading