UNPKG

@chtsinc/ch-playwright-report

Version:

Custom Playwright Reporter that logs test and execution results to MongoDB

27 lines 1.29 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExecutionEnvSetup = void 0; const ch_javascript_sdk_1 = require("@chtsinc/ch-javascript-sdk"); class ExecutionEnvSetup { static createEnvironmentInfo(context) { const envInfo = new ch_javascript_sdk_1.EnvironmentInfo(); envInfo.os = context.os; envInfo.suite = context.suite; envInfo.environment = context.environment; envInfo.formFactor = context.formFactor; envInfo.group = context.group; envInfo.osVersion = context.osVersion ?? undefined; envInfo.siteURL = context.siteURL ?? undefined; envInfo.integration = context.integration; envInfo.siteShortName = context.siteShortName ?? undefined; envInfo.tcReleaseVersion = context.tcReleaseVersion ?? undefined; envInfo.autReleaseVersion = context.autReleaseVersion ?? undefined; envInfo.browserName = context.browserName; envInfo.browserVersion = context.browserVersion ?? undefined; envInfo.deviceName = context.device ?? undefined; envInfo.deviceOrientation = context.deviceOrientation ?? undefined; return envInfo; } } exports.ExecutionEnvSetup = ExecutionEnvSetup; //# sourceMappingURL=execution-env-setup.js.map