Skip to content
Open
Show file tree
Hide file tree
Changes from 3 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 packages/wdio-browserstack-service/src/insights-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class _InsightsHandler {
platformName: caps?.platformName,
caps: caps,
sessionId,
product: isAppAutomate ? 'app-automate' : 'automate'
product: process.env.BROWSERSTACK_OBSERVABILITY_PRODUCT
}

this._userCaps = _userCaps
Expand Down
1 change: 1 addition & 0 deletions packages/wdio-browserstack-service/src/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ class _TestReporter extends WDIOReporter {
browser: this._capabilities?.browserName,
browser_version: this._capabilities?.browserVersion,
platform: this._capabilities?.platformName,
product: process.env.BROWSERSTACK_OBSERVABILITY_PRODUCT,
platform_version: getPlatformVersion(this._userCaps as WebdriverIO.Capabilities)
}
}
Expand Down
3 changes: 3 additions & 0 deletions packages/wdio-browserstack-service/src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export default class BrowserstackService implements Services.ServiceInstance {
if (process.env.BROWSERSTACK_TURBOSCALE) {
this._turboScale = process.env.BROWSERSTACK_TURBOSCALE === 'true'
}
process.env.BROWSERSTACK_TURBOSCALE = this._turboScale + ''

// Cucumber specific
const strict = Boolean(this._config.cucumberOpts && this._config.cucumberOpts.strict)
Expand Down Expand Up @@ -138,6 +139,8 @@ export default class BrowserstackService implements Services.ServiceInstance {
if (this._observability) {
patchConsoleLogs()

process.env.BROWSERSTACK_OBSERVABILITY_PRODUCT = this._isAppAutomate() ? 'app-automate' : (process.env.BROWSERSTACK_TURBOSCALE === 'true' ? 'turboscale' : 'automate')

this._insightsHandler = new InsightsHandler(
this._browser,
this._isAppAutomate(),
Expand Down