Releases · browserstack/wdio-browserstack-service · GitHub
Skip to content

Releases: browserstack/wdio-browserstack-service

@wdio/browserstack-service@9.41.0

Choose a tag to compare

@github-actions github-actions released this 21 Oct 12:10
8780f7c

Minor Changes

  • e0009ae: - testManagementOptions set in the BrowserStack service options is now forwarded in full, so issues and issueTracker can link Jira issues to the build. The same JSON can be passed with the BROWSERSTACK_TEST_MANAGEMENT_OPTIONS environment variable or the --browserstack.testManagementOptions CLI argument (Mocha and Cucumber).

@wdio/browserstack-service@8.54.0

Choose a tag to compare

@github-actions github-actions released this 21 Oct 11:53
9bb03b8

Minor Changes

  • 8ff1b20: - testManagementOptions set in the BrowserStack service options is now forwarded in full, so issues and issueTracker can link Jira issues to the build. The same JSON can be passed with the BROWSERSTACK_TEST_MANAGEMENT_OPTIONS environment variable or the --browserstack.testManagementOptions CLI argument (Mocha and Cucumber).

@wdio/browserstack-service@9.40.1

Choose a tag to compare

@github-actions github-actions released this 16 Oct 11:46
f6134db

Patch Changes

  • 493a99f: - Fixed BROWSERSTACK_PROJECT_NAME and BROWSERSTACK_BUILD_NAME being ignored — the environment now takes precedence over the project and build names in your config file, matching the other BrowserStack SDKs.

@wdio/browserstack-service@8.53.3

Choose a tag to compare

@github-actions github-actions released this 16 Oct 11:47
356a85a

Patch Changes

  • c8c2933: - Fixed BROWSERSTACK_PROJECT_NAME and BROWSERSTACK_BUILD_NAME being ignored — the environment now takes precedence over the project and build names in your config file, matching the other BrowserStack SDKs.

@wdio/browserstack-service@9.40.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 12:28
c624b35

Minor Changes

  • 366330e: - browser.setCustomTags() now works with WebdriverIO + CucumberJS: custom metadata set in steps or Cucumber Before/After hooks is reported on the scenario in Test Reporting & Analytics.

@wdio/browserstack-service@8.53.2

Choose a tag to compare

@github-actions github-actions released this 15 Oct 15:49
1a7420c

Patch Changes

  • ccb370d: - SDK-6948: *.bsstag.com hubs are now recognised as BrowserStack on named internal staging envs (BROWSERSTACK_STAGING_ENV / BROWSERSTACK_ENV), so with the CLI flow (default) session marking and TRA linking work there. The classic (non-CLI) flow on a named staging env is not supported; its session update is skipped at debug.

    • SDK-6948: update_cli failures fall back to BROWSERSTACK_BINARY_URL. A failed fallback download uses the cached binary.
    • SDK-6948: _printSessionURL and _update log a failed session lookup or update (HTTP error) at debug instead of throwing.
  • 25529d2: fix(cli): fall back to BROWSERSTACK_BINARY_URL when update_cli fails (SDK-6948)

    update_cli runs during bootstrap — before the binary is spawned and before GRR localizes the API hosts — so it always targets production api.browserstack.com. On an internal staging run (BROWSERSTACK_STAGING_ENV) the staging credentials are rejected there (401), which left the CLI binary path empty and crashed the launcher with spawn('') … ERR_INVALID_ARG_VALUE: 'file' cannot be empty. When update_cli fails and BROWSERSTACK_BINARY_URL is set, download the binary from that URL instead so the run can proceed; the same applies when a 2xx reply carries no download URL and no binary is cached. If that download fails, the cached binary is used when there is one, and both errors are logged. Opt-in only — with the variable unset the original error propagates exactly as before. Ports main/v9 #224 to the v8 line.

  • 7ef36e1: fix(util): recognize *.bsstag.com hosts as BrowserStack on internal staging envs (SDK-6948)

    getCloudProvider and isBrowserstackInfra only matched browserstack.com, so a session pointed at an internal staging env (*.bsstag.com) was classified as non-BrowserStack: session marking and Automate <-> TRA session linking did not work there. *.bsstag.com hosts are now treated as BrowserStack when BROWSERSTACK_STAGING_ENV is a bare env name (e.g. k8s, trimmed; blank means unset) or BROWSERSTACK_ENV is staging/stag/preprod/pre-prod. Hosts are matched case-insensitively. Production behaviour is unchanged. With the CLI flow (the default), session marking and Automate <-> TRA session linking now work on those envs, because the binary supplies the staging session REST host. The classic (non-CLI) flow on a named staging env is not supported: it has no staging session REST host, so the session name/status update is skipped at debug instead of failing the hook. _printSessionURL and _update log a failed session lookup or update (HTTP error reply) at debug instead of throwing. Ports main/v9 #275 to the v8 line.

@wdio/browserstack-service@9.39.6

Choose a tag to compare

@github-actions github-actions released this 13 Oct 13:03
27cc279

Patch Changes

  • 937350b: - Fixed mocha tests that fail by exceeding their timeout being marked "passed" on the Automate / App Automate dashboard, and their builds ending as "timeout" in Test Reporting about an hour after the run. Such tests are now reported as failed, with the timeout error as the reason.
    • Removed the resolveInstance: unable to resolve/create instance ... LOG POST error printed when a wdio before hook writes to the console.

@wdio/browserstack-service@9.39.5

Choose a tag to compare

@github-actions github-actions released this 12 Oct 12:25
0e7bf5d

Patch Changes

  • c6ccf90: - Fixed BrowserStack Automate and App Automate sessions being marked as passed when a Mocha hook (before, beforeEach, after, afterEach) failed.

@wdio/browserstack-service@9.39.4

Choose a tag to compare

@github-actions github-actions released this 06 Oct 10:49
d5eb5ed

Patch Changes

  • 7ed97bc: - Fixed ETXTBSY: text file is busy, open '~/.browserstack/percy' crashes on Linux when Percy is enabled.

@wdio/browserstack-service@9.39.3

Choose a tag to compare

@github-actions github-actions released this 01 Oct 10:13
f226251

Patch Changes

  • 817d036: - Added browser.uploadAttachment(filePath) (also available as browser.uploadMedia) so WebdriverIO tests can attach files to a test, hook, or build in Test Reporting — the same capability the Java, Python and Node SDKs already offer. Pass { buildAttachment: true } to attach to the build instead of the current test.
    • Made BrowserStack session bootstrap tolerant of an incomplete configuration response. Previously an empty or partial response aborted the whole bootstrap, which silently disabled every BrowserStack feature for that run — including custom tags and Test Reporting — and could leave the build with no test results.
  • 706da2a: - Raised the minimum chalk version to 5.6.2 so installs can never resolve the compromised chalk@5.6.1 (GHSA-2v46-p5h4-248w).