Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
8 changes: 4 additions & 4 deletions 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 Expand Up @@ -350,7 +350,7 @@ class _InsightsHandler {
testData.integrations = {}
if (this._browser && this._platformMeta) {
const provider = getCloudProvider(this._browser)
testData.integrations[provider] = this.getIntegrationsObject()
testData.integrations[provider] = this.getIntegrationsObject() //
}
}

Expand Down Expand Up @@ -665,7 +665,7 @@ class _InsightsHandler {
testData.integrations = {}
if (this._browser && this._platformMeta) {
const provider = getCloudProvider(this._browser)
testData.integrations[provider] = this.getIntegrationsObject()
testData.integrations[provider] = this.getIntegrationsObject() //
}
}

Expand Down Expand Up @@ -766,7 +766,7 @@ class _InsightsHandler {
testData.integrations = {}
if (this._browser && this._platformMeta) {
const provider = getCloudProvider(this._browser)
testData.integrations[provider] = this.getIntegrationsObject()
testData.integrations[provider] = this.getIntegrationsObject() //
}
}

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
1 change: 1 addition & 0 deletions packages/wdio-browserstack-service/src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export default class BrowserstackService implements Services.ServiceInstance {
this._config.framework,
this._caps
)
process.env.BROWSERSTACK_OBSERVABILITY_PRODUCT = this._isAppAutomate() ? 'app-automate' : (process.env.BROWSERSTACK_TURBOSCALE === 'true' ? 'turboscale' : 'automate')
await this._insightsHandler.before()
}

Expand Down