browserstack-node-sdk 1.61.0 → 1.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/browserstack.pw.yml.sample +10 -0
- package/browserstack.yml.sample +10 -0
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a54_0x57ca(){const _0xb9337=['aqrLl','ghNPF','setAccessibilityPlatformValidation','traceZipPaths','getStoreDirPath','getTestRunIdFromTestInfo','EzjKO','setTestDetails','../../../helpers/helper','jbfDV','8bgGNPp','recursive','message','Error\x20handling\x20trace\x20file\x20paths:\x20','TCpdT','error','readFileSync','_test','shutdown','MhKSu','../../../helpers/test-observability/constants','mkdirSync','_platformDetails.json','getTestUUID','AYyjo','3750534soraQt','aEySy','Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20','setIntegrations','debug','21KiPrcx','15122PVAeBS','568355JsXjPi','329901PacARs','wzXpV','forEach','kCnfn','OczDk','pid','tests','12400430SnYGMx','uzufR','RQKha','uJmpN','values','TwXXF','util','filePath','.txt','endsWith','.browserstack','utf8','getDirPath','appendFileSync','OyHEc','wfXtX','BS_TESTOPS_BUILD_HASHED_ID','__projectId','_integrations.json','parse','WNApD','addTraceFilePath','Atsuf','_projectId','string','stringify','join','push','.json','getFilePath','137eHgMqE','dJfNU','appendToTracePaths','readdirSync','njIpi','uuid','toString','1788QJxyeb','2537280HvWnBq','gJeFN','trace_','setup','getProjectIdFromTestInfo','env','homedir','existsSync','8AesrQk','_traceZipPaths.json','GWrxh','1832850xbJKde','Error\x20writing\x20trace\x20file:\x20','rmSync','retry','getStoreDirName','writeFileSync','getTraceZipDir','default','11YLGQxo','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','exports','../../../helpers/logger','XKtbe','getTestDetails'];a54_0x57ca=function(){return _0xb9337;};return a54_0x57ca();}const a54_0x6b64c=a54_0x4cda;(function(_0x167113,_0x55b0d5){const _0x53d3a5=a54_0x4cda,_0x4e5fdd=_0x167113();while(!![]){try{const _0x39e470=-parseInt(_0x53d3a5(0x16c))/0x1*(parseInt(_0x53d3a5(0x1ac))/0x2)+parseInt(_0x53d3a5(0x17f))/0x3+-parseInt(_0x53d3a5(0x197))/0x4*(-parseInt(_0x53d3a5(0x1ad))/0x5)+-parseInt(_0x53d3a5(0x174))/0x6*(parseInt(_0x53d3a5(0x1ab))/0x7)+-parseInt(_0x53d3a5(0x17c))/0x8*(parseInt(_0x53d3a5(0x1a6))/0x9)+-parseInt(_0x53d3a5(0x14e))/0xa*(parseInt(_0x53d3a5(0x187))/0xb)+-parseInt(_0x53d3a5(0x173))/0xc*(-parseInt(_0x53d3a5(0x1ae))/0xd);if(_0x39e470===_0x55b0d5)break;else _0x4e5fdd['push'](_0x4e5fdd['shift']());}catch(_0x33df19){_0x4e5fdd['push'](_0x4e5fdd['shift']());}}}(a54_0x57ca,0xa0b17));function a54_0x4cda(_0x4ce977,_0x551546){const _0x57cad4=a54_0x57ca();return a54_0x4cda=function(_0x4cdaa5,_0x5d70a2){_0x4cdaa5=_0x4cdaa5-0x149;let _0x2f1c26=_0x57cad4[_0x4cdaa5];return _0x2f1c26;},a54_0x4cda(_0x4ce977,_0x551546);}const fs=require('fs'),path=require('path'),{v4:uuidv4}=require(a54_0x6b64c(0x171)),{TEMP_STORE_DIR_NAME}=require(a54_0x6b64c(0x1a1)),{nestedKeyValue}=require(a54_0x6b64c(0x195)),logger=require(a54_0x6b64c(0x18a))['winstonLogger'],{getLogDir}=require(a54_0x6b64c(0x18a)),util=require(a54_0x6b64c(0x154)),helper=require(a54_0x6b64c(0x195));class TestDetails{static ['tests']={};static[a54_0x6b64c(0x177)](){const _0xbafbf8=a54_0x6b64c;this[_0xbafbf8(0x19f)]();const _0x44c4cf={};_0x44c4cf['recursive']=!![],fs[_0xbafbf8(0x1a2)](this[_0xbafbf8(0x15a)](),_0x44c4cf);const _0x35720a={};_0x35720a[_0xbafbf8(0x198)]=!![],fs[_0xbafbf8(0x1a2)](this[_0xbafbf8(0x185)](),_0x35720a);}static['getStoreDirName'](){const _0x50dca2=a54_0x6b64c,_0xf746bb={};_0xf746bb[_0x50dca2(0x196)]=function(_0x2fa39c,_0x1c6c6b){return _0x2fa39c+_0x1c6c6b;},_0xf746bb[_0x50dca2(0x17e)]=function(_0x211303,_0x60e825){return _0x211303+_0x60e825;};const _0x285b45=_0xf746bb;return _0x285b45['jbfDV'](_0x285b45['GWrxh'](TEMP_STORE_DIR_NAME,'-'),process[_0x50dca2(0x179)]['BS_TESTOPS_BUILD_HASHED_ID']);}static[a54_0x6b64c(0x191)](){const _0x261fa0=a54_0x6b64c,_0x145d1b={};_0x145d1b[_0x261fa0(0x1a5)]=function(_0x1327ef,_0x32f6c4){return _0x1327ef+_0x32f6c4;},_0x145d1b[_0x261fa0(0x170)]=function(_0x2636e9,_0x1f2768){return _0x2636e9+_0x1f2768;},_0x145d1b[_0x261fa0(0x14a)]=_0x261fa0(0x186);const _0x5074fb=_0x145d1b;return path[_0x261fa0(0x168)](_0x5074fb['AYyjo'](_0x5074fb[_0x261fa0(0x170)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x261fa0(0x15e)]||_0x5074fb[_0x261fa0(0x14a)]));}static[a54_0x6b64c(0x185)](){const _0x1f42c3=a54_0x6b64c,_0x3552df={};_0x3552df['wfXtX']=_0x1f42c3(0x190);const _0x2e4f76=_0x3552df;return path[_0x1f42c3(0x168)](this[_0x1f42c3(0x191)](),_0x2e4f76[_0x1f42c3(0x15d)]);}static[a54_0x6b64c(0x15a)](){const _0x42d595=a54_0x6b64c;return TestDetails[_0x42d595(0x183)]();}static['getFilePath'](_0x49afe1){const _0x53203d=a54_0x6b64c,_0x3e9e62={};_0x3e9e62[_0x53203d(0x150)]=function(_0x58ef61,_0x5400d7){return _0x58ef61+_0x5400d7;},_0x3e9e62[_0x53203d(0x162)]=_0x53203d(0x16a);const _0x23b060=_0x3e9e62;return path[_0x53203d(0x168)](this[_0x53203d(0x15a)](),_0x23b060[_0x53203d(0x150)](_0x49afe1,_0x23b060[_0x53203d(0x162)]));}static[a54_0x6b64c(0x192)](_0x4b981a){const _0x1fb73d=a54_0x6b64c,_0x4533ef={};_0x4533ef[_0x1fb73d(0x18d)]=function(_0x219d4a,_0x5b1234){return _0x219d4a+_0x5b1234;};const _0x2d2921=_0x4533ef;return _0x2d2921[_0x1fb73d(0x18d)](_0x2d2921[_0x1fb73d(0x18d)](this['getTestIdFromTestInfo'](_0x4b981a),'-'),_0x4b981a[_0x1fb73d(0x182)]);}static[a54_0x6b64c(0x178)](_0x41bb1d){const _0x4af0c3=a54_0x6b64c,_0x17bc5b={'aEySy':function(_0x4c690a,_0x362672,_0x4433e5){return _0x4c690a(_0x362672,_0x4433e5);},'XKtbe':_0x4af0c3(0x19e),'SvZJx':_0x4af0c3(0x165),'OczDk':function(_0x122885,_0x42f676,_0x6faec9){return _0x122885(_0x42f676,_0x6faec9);},'OyHEc':'project','wzXpV':_0x4af0c3(0x15f)};return _0x17bc5b[_0x4af0c3(0x1a7)](nestedKeyValue,_0x41bb1d,[_0x17bc5b[_0x4af0c3(0x18b)],_0x17bc5b['SvZJx']])||_0x17bc5b[_0x4af0c3(0x14b)](nestedKeyValue,_0x41bb1d,[_0x17bc5b[_0x4af0c3(0x15c)],_0x17bc5b[_0x4af0c3(0x1af)]]);}static['getTestIdFromTestInfo'](_0x43866a){const _0x34c649=a54_0x6b64c,_0x2c790a={'jilJh':function(_0x5b342e,_0x3cfb93,_0x569276){return _0x5b342e(_0x3cfb93,_0x569276);},'uJmpN':_0x34c649(0x19e)};return _0x2c790a['jilJh'](nestedKeyValue,_0x43866a,[_0x2c790a[_0x34c649(0x151)],'id'])||_0x43866a['testId'];}static[a54_0x6b64c(0x1a4)](_0x10d70e){const _0x2a80d7=a54_0x6b64c,_0x19783e={'TwXXF':function(_0x1dc476,_0x2f9244){return _0x1dc476===_0x2f9244;},'uzufR':_0x2a80d7(0x166),'Atsuf':function(_0x5a2d7e){return _0x5a2d7e();}};if(this[_0x2a80d7(0x14d)][_0x10d70e]&&_0x19783e[_0x2a80d7(0x153)](typeof this[_0x2a80d7(0x14d)][_0x10d70e][_0x2a80d7(0x171)],_0x19783e[_0x2a80d7(0x14f)]))return this['tests'][_0x10d70e][_0x2a80d7(0x171)];const _0x38fe6b=this[_0x2a80d7(0x16b)](_0x10d70e);if(_0x38fe6b&&fs['existsSync'](_0x38fe6b)){const _0x1d4757=JSON[_0x2a80d7(0x161)](fs[_0x2a80d7(0x19d)](_0x38fe6b)['toString']());return this[_0x2a80d7(0x14d)][_0x10d70e]=_0x1d4757,this[_0x2a80d7(0x14d)][_0x10d70e][_0x2a80d7(0x171)];}return this['tests'][_0x10d70e]={'uuid':_0x19783e[_0x2a80d7(0x164)](uuidv4)},fs[_0x2a80d7(0x184)](_0x38fe6b,JSON[_0x2a80d7(0x167)](this[_0x2a80d7(0x14d)][_0x10d70e])),this[_0x2a80d7(0x14d)][_0x10d70e][_0x2a80d7(0x171)];}static['getAccessibilityPlatformValidation'](_0x15903d){const _0x164b95=a54_0x6b64c,_0x1ac26e=path[_0x164b95(0x168)](this['getDirPath'](),_0x15903d+_0x164b95(0x1a3));if(_0x1ac26e&&fs['existsSync'](_0x1ac26e))return fs[_0x164b95(0x19d)](_0x1ac26e)[_0x164b95(0x172)]();}static[a54_0x6b64c(0x18f)](_0x481dd8,_0x2d2b8d){const _0x457286=a54_0x6b64c,_0x21e854=path[_0x457286(0x168)](this['getDirPath'](),_0x2d2b8d+'_platformDetails.json');fs[_0x457286(0x184)](_0x21e854,_0x481dd8['toString']());}static['getIntegrations'](_0x6a507d){const _0x564d20=a54_0x6b64c,_0x24b982=path['join'](this['getDirPath'](),_0x6a507d+_0x564d20(0x160));if(_0x24b982&&fs[_0x564d20(0x17b)](_0x24b982))try{return JSON['parse'](fs[_0x564d20(0x19d)](_0x24b982)[_0x564d20(0x172)]());}catch(_0x447a4d){return logger[_0x564d20(0x1aa)](_0x564d20(0x1a8)+_0x6a507d+':\x20'+(_0x447a4d&&_0x447a4d['message'])),null;}return null;}static[a54_0x6b64c(0x1a9)](_0x5d9d9c,_0x3c2c96){const _0x3b25d3=a54_0x6b64c,_0x11d555={};_0x11d555[_0x3b25d3(0x193)]=function(_0x2a1123,_0x69dd16){return _0x2a1123||_0x69dd16;};const _0x5ee835=_0x11d555;if(_0x5ee835[_0x3b25d3(0x193)](!_0x5d9d9c,!_0x3c2c96))return;try{const _0x4e3fd9=this[_0x3b25d3(0x15a)](),_0x2fd658={};_0x2fd658[_0x3b25d3(0x198)]=!![],fs[_0x3b25d3(0x1a2)](_0x4e3fd9,_0x2fd658);const _0x3874b4=path[_0x3b25d3(0x168)](_0x4e3fd9,_0x5d9d9c+_0x3b25d3(0x160));fs[_0x3b25d3(0x184)](_0x3874b4,JSON['stringify'](_0x3c2c96));}catch(_0x13688f){logger[_0x3b25d3(0x1aa)](_0x3b25d3(0x188)+_0x5d9d9c+':\x20'+(_0x13688f&&_0x13688f[_0x3b25d3(0x199)]));}}static[a54_0x6b64c(0x19f)](){const _0x70f06a=a54_0x6b64c,_0x4859cd={};_0x4859cd[_0x70f06a(0x198)]=!![],_0x4859cd['force']=!![],fs[_0x70f06a(0x181)](this[_0x70f06a(0x15a)](),_0x4859cd);}static[a54_0x6b64c(0x18c)](_0x2107b2){const _0x129b64=a54_0x6b64c;if(this[_0x129b64(0x14d)][_0x2107b2])return this[_0x129b64(0x14d)][_0x2107b2];const _0x36fde2=this[_0x129b64(0x16b)](_0x2107b2);if(_0x36fde2&&fs[_0x129b64(0x17b)](_0x36fde2)){const _0x4f64b3=JSON[_0x129b64(0x161)](fs[_0x129b64(0x19d)](_0x36fde2)[_0x129b64(0x172)]());return this[_0x129b64(0x14d)][_0x2107b2]=_0x4f64b3,_0x4f64b3;}return{};}static[a54_0x6b64c(0x194)](_0x27b52d,_0x1a251e){const _0x5de262=a54_0x6b64c,_0xea81a2=this[_0x5de262(0x16b)](_0x27b52d);if(_0xea81a2&&fs[_0x5de262(0x17b)](_0xea81a2)){const _0x368f53=JSON['parse'](fs[_0x5de262(0x19d)](_0xea81a2)[_0x5de262(0x172)]()),_0xe93c9b={..._0x368f53,..._0x1a251e};this[_0x5de262(0x14d)][_0x27b52d]=_0xe93c9b;}else this[_0x5de262(0x14d)][_0x27b52d]=_0x1a251e;fs[_0x5de262(0x184)](_0xea81a2,this[_0x5de262(0x14d)][_0x27b52d]);}static[a54_0x6b64c(0x163)](_0x2539f2){const _0x11f467=a54_0x6b64c,_0x47e195={};_0x47e195[_0x11f467(0x19b)]=_0x11f467(0x19a);const _0x2f6f35=_0x47e195;try{const _0x1998de=process[_0x11f467(0x14c)],_0x44fe4f=path[_0x11f467(0x168)](TestDetails['getTraceZipDir'](),_0x1998de+_0x11f467(0x17d));let _0x32a4e3=[];_0x44fe4f&&fs[_0x11f467(0x17b)](_0x44fe4f)&&(_0x32a4e3=JSON['parse'](fs[_0x11f467(0x19d)](_0x44fe4f)[_0x11f467(0x172)]())),!_0x32a4e3['some'](_0x559971=>_0x559971['filePath']===_0x2539f2[_0x11f467(0x155)])&&(_0x32a4e3[_0x11f467(0x169)](_0x2539f2),fs[_0x11f467(0x184)](_0x44fe4f,JSON[_0x11f467(0x167)](_0x32a4e3)));}catch(_0x25345b){logger['error'](_0x2f6f35[_0x11f467(0x19b)],_0x25345b);}}static['getTraceFilePaths'](){const _0xbc680c=a54_0x6b64c,_0x4c3d05={};_0x4c3d05[_0xbc680c(0x16d)]=_0xbc680c(0x17d),_0x4c3d05[_0xbc680c(0x18e)]='Error\x20reading\x20trace\x20file\x20paths:\x20%s';const _0x3e5aec=_0x4c3d05,_0x1a15b7=[];try{const _0x837161=TestDetails[_0xbc680c(0x185)]();if(_0x837161&&!fs[_0xbc680c(0x17b)](_0x837161))return _0x1a15b7;const _0xeda6c9=fs[_0xbc680c(0x16f)](_0x837161);_0xeda6c9[_0xbc680c(0x149)](_0x5cf978=>{const _0x241fbb=_0xbc680c;if(_0x5cf978&&_0x5cf978[_0x241fbb(0x157)](_0x3e5aec[_0x241fbb(0x16d)])){const _0x431a82=JSON[_0x241fbb(0x161)](fs[_0x241fbb(0x19d)](path['join'](_0x837161,_0x5cf978))[_0x241fbb(0x172)]());_0x1a15b7[_0x241fbb(0x169)](..._0x431a82);}});}catch(_0x172893){logger[_0xbc680c(0x19c)](util['format'](_0x3e5aec[_0xbc680c(0x18e)],_0x172893));}const _0x483f1f={};return _0x1a15b7[_0xbc680c(0x149)](_0x54e223=>{const _0x30d9f9=_0xbc680c;_0x483f1f[_0x54e223[_0x30d9f9(0x155)]]=_0x54e223;}),Object[_0xbc680c(0x152)](_0x483f1f);}static[a54_0x6b64c(0x16e)](_0x118a8a,_0x566bbe){const _0x2ffa6f=a54_0x6b64c,_0x36b7e8={};_0x36b7e8['MhKSu']=_0x2ffa6f(0x158),_0x36b7e8[_0x2ffa6f(0x175)]=_0x2ffa6f(0x159);const _0x581a3f=_0x36b7e8;try{const _0x570c9e=path['join'](helper[_0x2ffa6f(0x17a)](),_0x581a3f[_0x2ffa6f(0x1a0)]);if(!fs[_0x2ffa6f(0x17b)](_0x570c9e)){const _0x283ab4={};_0x283ab4[_0x2ffa6f(0x198)]=!![],fs[_0x2ffa6f(0x1a2)](_0x570c9e,_0x283ab4);}fs[_0x2ffa6f(0x15b)](path[_0x2ffa6f(0x168)](_0x570c9e,_0x2ffa6f(0x176)+_0x566bbe+_0x2ffa6f(0x156)),_0x118a8a+'\x0a',_0x581a3f[_0x2ffa6f(0x175)]);}catch(_0x5cbcc2){console[_0x2ffa6f(0x19c)](_0x2ffa6f(0x180)+_0x5cbcc2[_0x2ffa6f(0x199)]);}}}module[a54_0x6b64c(0x189)]=TestDetails;
|
|
1
|
+
const a54_0x36d2bf=a54_0x188e;function a54_0x2321(){const _0x17ca35=['_platformDetails.json','udTaU','setIntegrations','getAccessibilityPlatformValidation','../../../helpers/helper','filePath','uLGZV','sNiOA','getIntegrations','678080Hmojtw','KPAPN','path','Error\x20handling\x20trace\x20file\x20paths:\x20','151807hwGmIp','.json','getStoreDirName','bSYie','parse','2348577LwNaUr','setAccessibilityPlatformValidation','recursive','join','rmSync','995928xAeBxo','string','PmpyV','_test','some','getTestIdFromTestInfo','values','getTestUUID','wSTHk','BS_TESTOPS_BUILD_HASHED_ID','appendFileSync','stringify','oeKZK','message','yvChG','tests','getDirPath','existsSync','gYsnK','setTestDetails','pid','endsWith','Error\x20writing\x20trace\x20file:\x20','../../../helpers/logger','xRnRx','forEach','homedir','env','shutdown','error','Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20','_traceZipPaths.json','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','.browserstack','55075WCeJjP','getFilePath','getStoreDirPath','.txt','readdirSync','exports','debug','force','HUJcb','mkdirSync','getTestDetails','28aEuukI','8847432EZExAO','retry','GtxyH','MHrJO','format','IcDoI','285723nQAclO','hlMtM','trBps','uuid','vEIff','readFileSync','traceZipPaths','SDXTp','setup','DtCfH','writeFileSync','toString','UzBmt','push','OdCjN','_integrations.json','utf8','util','getTraceZipDir'];a54_0x2321=function(){return _0x17ca35;};return a54_0x2321();}(function(_0x203d78,_0x2f5c50){const _0x414c86=a54_0x188e,_0x39fdbc=_0x203d78();while(!![]){try{const _0x28b85a=parseInt(_0x414c86(0xd2))/0x1+-parseInt(_0x414c86(0xce))/0x2+-parseInt(_0x414c86(0x110))/0x3+parseInt(_0x414c86(0x109))/0x4*(-parseInt(_0x414c86(0xfe))/0x5)+-parseInt(_0x414c86(0xdc))/0x6+-parseInt(_0x414c86(0xd7))/0x7+parseInt(_0x414c86(0x10a))/0x8;if(_0x28b85a===_0x2f5c50)break;else _0x39fdbc['push'](_0x39fdbc['shift']());}catch(_0x11330a){_0x39fdbc['push'](_0x39fdbc['shift']());}}}(a54_0x2321,0x3bc73));const fs=require('fs'),path=require(a54_0x36d2bf(0xd0)),{v4:uuidv4}=require(a54_0x36d2bf(0x113)),{TEMP_STORE_DIR_NAME}=require('../../../helpers/test-observability/constants'),{nestedKeyValue}=require(a54_0x36d2bf(0xc9)),logger=require('../../../helpers/logger')['winstonLogger'],{getLogDir}=require(a54_0x36d2bf(0xf3)),util=require(a54_0x36d2bf(0x121)),helper=require('../../../helpers/helper');function a54_0x188e(_0x484587,_0x56c6d5){const _0x2321df=a54_0x2321();return a54_0x188e=function(_0x188e42,_0x40998f){_0x188e42=_0x188e42-0xc5;let _0x1f18ab=_0x2321df[_0x188e42];return _0x1f18ab;},a54_0x188e(_0x484587,_0x56c6d5);}class TestDetails{static [a54_0x36d2bf(0xeb)]={};static[a54_0x36d2bf(0x118)](){const _0x47b2b9=a54_0x36d2bf;this['shutdown']();const _0x209c0c={};_0x209c0c['recursive']=!![],fs[_0x47b2b9(0x107)](this['getDirPath'](),_0x209c0c);const _0x56836f={};_0x56836f[_0x47b2b9(0xd9)]=!![],fs['mkdirSync'](this[_0x47b2b9(0x122)](),_0x56836f);}static[a54_0x36d2bf(0xd4)](){const _0x4244eb=a54_0x36d2bf,_0x209054={};_0x209054['bSYie']=function(_0x2dac45,_0x250767){return _0x2dac45+_0x250767;};const _0x2a9713=_0x209054;return _0x2a9713['bSYie'](_0x2a9713[_0x4244eb(0xd5)](TEMP_STORE_DIR_NAME,'-'),process['env']['BS_TESTOPS_BUILD_HASHED_ID']);}static['getStoreDirPath'](){const _0x376b16=a54_0x36d2bf,_0x25c3ad={};_0x25c3ad[_0x376b16(0x11e)]=function(_0x208f5c,_0x3e0a54){return _0x208f5c+_0x3e0a54;},_0x25c3ad[_0x376b16(0x111)]='default';const _0x52eca2=_0x25c3ad;return path[_0x376b16(0xda)](_0x52eca2[_0x376b16(0x11e)](_0x52eca2['OdCjN'](TEMP_STORE_DIR_NAME,'-'),process[_0x376b16(0xf7)][_0x376b16(0xe5)]||_0x52eca2[_0x376b16(0x111)]));}static[a54_0x36d2bf(0x122)](){const _0x460aaa=a54_0x36d2bf,_0x18994e={};_0x18994e['UzBmt']=_0x460aaa(0x116);const _0x432c5f=_0x18994e;return path[_0x460aaa(0xda)](this[_0x460aaa(0x100)](),_0x432c5f[_0x460aaa(0x11c)]);}static[a54_0x36d2bf(0xec)](){const _0xcd25ac=a54_0x36d2bf;return TestDetails[_0xcd25ac(0xd4)]();}static[a54_0x36d2bf(0xff)](_0x236b76){const _0x3805b2=a54_0x36d2bf,_0x4cade8={};_0x4cade8[_0x3805b2(0x10d)]=function(_0x3bcce9,_0x57267a){return _0x3bcce9+_0x57267a;},_0x4cade8[_0x3805b2(0xcc)]=_0x3805b2(0xd3);const _0x30731d=_0x4cade8;return path[_0x3805b2(0xda)](this[_0x3805b2(0xec)](),_0x30731d[_0x3805b2(0x10d)](_0x236b76,_0x30731d[_0x3805b2(0xcc)]));}static['getTestRunIdFromTestInfo'](_0x343b80){const _0x4989f3=a54_0x36d2bf,_0x3ce727={};_0x3ce727[_0x4989f3(0xee)]=function(_0x373454,_0x8ef049){return _0x373454+_0x8ef049;},_0x3ce727['xRnRx']=function(_0x38c4f8,_0x3a5d91){return _0x38c4f8+_0x3a5d91;};const _0x420bef=_0x3ce727;return _0x420bef['gYsnK'](_0x420bef[_0x4989f3(0xf4)](this[_0x4989f3(0xe1)](_0x343b80),'-'),_0x343b80[_0x4989f3(0x10b)]);}static['getProjectIdFromTestInfo'](_0x17ce9){const _0x4eca3b=a54_0x36d2bf,_0x60df94={'PmpyV':function(_0x5a8e60,_0x58dce5,_0x304820){return _0x5a8e60(_0x58dce5,_0x304820);},'OstCQ':'_test','SDXTp':'_projectId','oeKZK':function(_0x1e4c63,_0x18b291,_0x4af5a6){return _0x1e4c63(_0x18b291,_0x4af5a6);},'udTaU':'project','qqgPE':'__projectId'};return _0x60df94[_0x4eca3b(0xde)](nestedKeyValue,_0x17ce9,[_0x60df94['OstCQ'],_0x60df94[_0x4eca3b(0x117)]])||_0x60df94[_0x4eca3b(0xe8)](nestedKeyValue,_0x17ce9,[_0x60df94[_0x4eca3b(0xc6)],_0x60df94['qqgPE']]);}static[a54_0x36d2bf(0xe1)](_0x164e35){const _0x21c736=a54_0x36d2bf,_0x56e833={'DtCfH':function(_0xb0adf,_0x450e0a,_0x1b3d01){return _0xb0adf(_0x450e0a,_0x1b3d01);},'KPAPN':_0x21c736(0xdf)};return _0x56e833[_0x21c736(0x119)](nestedKeyValue,_0x164e35,[_0x56e833[_0x21c736(0xcf)],'id'])||_0x164e35['testId'];}static[a54_0x36d2bf(0xe3)](_0x25a77e){const _0x2bd9da=a54_0x36d2bf,_0x3326bb={'yvChG':function(_0x53eaea,_0x3b7bea){return _0x53eaea===_0x3b7bea;},'uLGZV':_0x2bd9da(0xdd),'IcDoI':function(_0x1f15cd){return _0x1f15cd();}};if(this['tests'][_0x25a77e]&&_0x3326bb[_0x2bd9da(0xea)](typeof this['tests'][_0x25a77e][_0x2bd9da(0x113)],_0x3326bb[_0x2bd9da(0xcb)]))return this['tests'][_0x25a77e][_0x2bd9da(0x113)];const _0x5769fe=this[_0x2bd9da(0xff)](_0x25a77e);if(_0x5769fe&&fs[_0x2bd9da(0xed)](_0x5769fe)){const _0x39e61b=JSON[_0x2bd9da(0xd6)](fs[_0x2bd9da(0x115)](_0x5769fe)[_0x2bd9da(0x11b)]());return this[_0x2bd9da(0xeb)][_0x25a77e]=_0x39e61b,this[_0x2bd9da(0xeb)][_0x25a77e][_0x2bd9da(0x113)];}return this[_0x2bd9da(0xeb)][_0x25a77e]={'uuid':_0x3326bb[_0x2bd9da(0x10f)](uuidv4)},fs[_0x2bd9da(0x11a)](_0x5769fe,JSON['stringify'](this[_0x2bd9da(0xeb)][_0x25a77e])),this[_0x2bd9da(0xeb)][_0x25a77e][_0x2bd9da(0x113)];}static[a54_0x36d2bf(0xc8)](_0x1213bb){const _0x593507=a54_0x36d2bf,_0x2cff25=path[_0x593507(0xda)](this[_0x593507(0xec)](),_0x1213bb+_0x593507(0xc5));if(_0x2cff25&&fs[_0x593507(0xed)](_0x2cff25))return fs[_0x593507(0x115)](_0x2cff25)[_0x593507(0x11b)]();}static[a54_0x36d2bf(0xd8)](_0x71f6f6,_0x34b942){const _0x332c18=a54_0x36d2bf,_0x2b994c=path[_0x332c18(0xda)](this[_0x332c18(0xec)](),_0x34b942+_0x332c18(0xc5));fs['writeFileSync'](_0x2b994c,_0x71f6f6[_0x332c18(0x11b)]());}static[a54_0x36d2bf(0xcd)](_0x40a7b6){const _0x40a338=a54_0x36d2bf,_0x33ab0b=path['join'](this[_0x40a338(0xec)](),_0x40a7b6+_0x40a338(0x11f));if(_0x33ab0b&&fs[_0x40a338(0xed)](_0x33ab0b))try{return JSON[_0x40a338(0xd6)](fs[_0x40a338(0x115)](_0x33ab0b)[_0x40a338(0x11b)]());}catch(_0x36e5bd){return logger[_0x40a338(0x104)](_0x40a338(0xfa)+_0x40a7b6+':\x20'+(_0x36e5bd&&_0x36e5bd[_0x40a338(0xe9)])),null;}return null;}static[a54_0x36d2bf(0xc7)](_0x344e6b,_0x579713){const _0x16b894=a54_0x36d2bf,_0x31270e={};_0x31270e['YKPfO']=function(_0x2d62ef,_0x57223a){return _0x2d62ef||_0x57223a;};const _0x219fd1=_0x31270e;if(_0x219fd1['YKPfO'](!_0x344e6b,!_0x579713))return;try{const _0x43f023=this[_0x16b894(0xec)](),_0x33e1e5={};_0x33e1e5[_0x16b894(0xd9)]=!![],fs['mkdirSync'](_0x43f023,_0x33e1e5);const _0x543619=path[_0x16b894(0xda)](_0x43f023,_0x344e6b+_0x16b894(0x11f));fs[_0x16b894(0x11a)](_0x543619,JSON[_0x16b894(0xe7)](_0x579713));}catch(_0xcf16fa){logger[_0x16b894(0x104)](_0x16b894(0xfc)+_0x344e6b+':\x20'+(_0xcf16fa&&_0xcf16fa[_0x16b894(0xe9)]));}}static[a54_0x36d2bf(0xf8)](){const _0x6436e=a54_0x36d2bf,_0x3290c3={};_0x3290c3[_0x6436e(0xd9)]=!![],_0x3290c3[_0x6436e(0x105)]=!![],fs[_0x6436e(0xdb)](this[_0x6436e(0xec)](),_0x3290c3);}static[a54_0x36d2bf(0x108)](_0x3dd5fc){const _0x5b9f48=a54_0x36d2bf;if(this[_0x5b9f48(0xeb)][_0x3dd5fc])return this['tests'][_0x3dd5fc];const _0x32535c=this[_0x5b9f48(0xff)](_0x3dd5fc);if(_0x32535c&&fs[_0x5b9f48(0xed)](_0x32535c)){const _0x813da2=JSON[_0x5b9f48(0xd6)](fs[_0x5b9f48(0x115)](_0x32535c)[_0x5b9f48(0x11b)]());return this[_0x5b9f48(0xeb)][_0x3dd5fc]=_0x813da2,_0x813da2;}return{};}static[a54_0x36d2bf(0xef)](_0x3b5a5f,_0x543d42){const _0x4f62cb=a54_0x36d2bf,_0x28b019=this[_0x4f62cb(0xff)](_0x3b5a5f);if(_0x28b019&&fs[_0x4f62cb(0xed)](_0x28b019)){const _0x4e0e93=JSON[_0x4f62cb(0xd6)](fs[_0x4f62cb(0x115)](_0x28b019)[_0x4f62cb(0x11b)]()),_0x5b40d1={..._0x4e0e93,..._0x543d42};this['tests'][_0x3b5a5f]=_0x5b40d1;}else this[_0x4f62cb(0xeb)][_0x3b5a5f]=_0x543d42;fs['writeFileSync'](_0x28b019,this[_0x4f62cb(0xeb)][_0x3b5a5f]);}static['addTraceFilePath'](_0x3cbe61){const _0x2ca147=a54_0x36d2bf,_0x1237ee={};_0x1237ee[_0x2ca147(0x10c)]=_0x2ca147(0xd1);const _0x143bd0=_0x1237ee;try{const _0x392116=process[_0x2ca147(0xf0)],_0x588fe6=path[_0x2ca147(0xda)](TestDetails[_0x2ca147(0x122)](),_0x392116+_0x2ca147(0xfb));let _0x4874b7=[];_0x588fe6&&fs[_0x2ca147(0xed)](_0x588fe6)&&(_0x4874b7=JSON[_0x2ca147(0xd6)](fs[_0x2ca147(0x115)](_0x588fe6)[_0x2ca147(0x11b)]())),!_0x4874b7[_0x2ca147(0xe0)](_0x1ce1a0=>_0x1ce1a0[_0x2ca147(0xca)]===_0x3cbe61['filePath'])&&(_0x4874b7['push'](_0x3cbe61),fs['writeFileSync'](_0x588fe6,JSON[_0x2ca147(0xe7)](_0x4874b7)));}catch(_0x1a5378){logger[_0x2ca147(0xf9)](_0x143bd0[_0x2ca147(0x10c)],_0x1a5378);}}static['getTraceFilePaths'](){const _0x1b3f54=a54_0x36d2bf,_0x406589={};_0x406589[_0x1b3f54(0x106)]='_traceZipPaths.json',_0x406589['trBps']='Error\x20reading\x20trace\x20file\x20paths:\x20%s';const _0x401885=_0x406589,_0x2fb8ad=[];try{const _0x410896=TestDetails['getTraceZipDir']();if(_0x410896&&!fs[_0x1b3f54(0xed)](_0x410896))return _0x2fb8ad;const _0x426d64=fs[_0x1b3f54(0x102)](_0x410896);_0x426d64[_0x1b3f54(0xf5)](_0x1c82e1=>{const _0x313d3f=_0x1b3f54;if(_0x1c82e1&&_0x1c82e1[_0x313d3f(0xf1)](_0x401885['HUJcb'])){const _0x36b495=JSON[_0x313d3f(0xd6)](fs[_0x313d3f(0x115)](path[_0x313d3f(0xda)](_0x410896,_0x1c82e1))[_0x313d3f(0x11b)]());_0x2fb8ad[_0x313d3f(0x11d)](..._0x36b495);}});}catch(_0x58e13c){logger[_0x1b3f54(0xf9)](util[_0x1b3f54(0x10e)](_0x401885[_0x1b3f54(0x112)],_0x58e13c));}const _0x43b0ab={};return _0x2fb8ad['forEach'](_0x48ddf9=>{_0x43b0ab[_0x48ddf9['filePath']]=_0x48ddf9;}),Object[_0x1b3f54(0xe2)](_0x43b0ab);}static['appendToTracePaths'](_0xb06522,_0x2f9ad6){const _0x2df917=a54_0x36d2bf,_0x1eaeee={};_0x1eaeee[_0x2df917(0xe4)]=_0x2df917(0xfd),_0x1eaeee[_0x2df917(0x114)]=_0x2df917(0x120);const _0x11bf77=_0x1eaeee;try{const _0x157cb8=path[_0x2df917(0xda)](helper[_0x2df917(0xf6)](),_0x11bf77['wSTHk']);if(!fs[_0x2df917(0xed)](_0x157cb8)){const _0x3ea53e={};_0x3ea53e[_0x2df917(0xd9)]=!![],fs['mkdirSync'](_0x157cb8,_0x3ea53e);}fs[_0x2df917(0xe6)](path[_0x2df917(0xda)](_0x157cb8,'trace_'+_0x2f9ad6+_0x2df917(0x101)),_0xb06522+'\x0a',_0x11bf77[_0x2df917(0x114)]);}catch(_0xca0763){console[_0x2df917(0xf9)](_0x2df917(0xf2)+_0xca0763[_0x2df917(0xe9)]);}}}module[a54_0x36d2bf(0x103)]=TestDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a55_0x718dd5=a55_0x45bc;function a55_0x3d6d(){const _0x1d8cc0=['qCANx','edge','EmbTt','TlaVi','AOHfa','NyHXR','Page','getInstance','CRConnection','split','UWNmQ','getAutomationFramework','cloudProvider','NvOmw','dispatch','server','../../helpers/accessibility-automation/scripts','gNszD','browserName','PLAYWRIGHT_DISPATCH','_browserType','BROWSERSTACK_TEST_OBSERVABILITY','Driver\x20Scan\x20result=','_bstackDispatchPatched','DJYKJ','tIjsk','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','POST','ATS_WSS_URL_REGEX','browserstack','debug','currentSessionDetails','PRLhO','../v2/browserstackCLI','SfZlX','mtUvv','BkLtg','35780120QTxBYb','KvjoX','vTTwX','exports','WHZOz','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','toLowerCase','info','2539155vfOXkB','path','unknown_grid','5|1|3|2|0|4','UQAuQ','6378085MdAmNF','shouldWrapCommand','Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20','Failed\x20to\x20perform\x20scan\x20','compareVersions','reportSessionLinkingIssue','HPhIx','UAeqO','GiPxq','yMjOr','RSXZJ','3899452ABMmsD','defineProperty','capabilities','VURyv','MlbII','pwPage','Page\x20Scan\x20result=','test','LWIaP','dRwiE','bsSessionId','playwright-','includes','TITnJ','turboscale','LvEkl','sendMessageToServer','1739460rutJzQ','patch','firefox','query','fromEntries','Error\x20in\x20finding\x20platform\x20details\x20','zFoae','function','connectOptions','../../helpers/logger','sessionId','setupBrowserDetails','EvwAu','oCkFO','product','ZAZiq','Performing\x20scan\x20for\x20','use','browser_version','model','BSTACK_ATS_URL','yQJTi','PLAYWRIGHT','iRREn','trackEvent','8woohsG','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','AOhlH','JimZi','UqQAR','ROdvl','patchConnection','kHrJY','platformDetails','FrTch','kYhVX','deviceModel','wHzAm','format','version','winstonLogger','currentTest','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','aYhnG','qJHxr','bStackParams','Aixnh','bstackPerformA11yScan','project','AXJCu','aWLcM','prototype','BSTACK_URL','platform','parse','sZXUv','getFrameworkVersion','PJeJj','../../helpers/test-observability/constants','crConnection.js','../../bin/playwright/accessibility-helper','wsEndpoint','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','SBbIe','channel','cWPcp','kLnxP','__workerDetails','DPRVm','../v2/state/hookState.js','bcAqw','../../helpers/test-observability/utils','pJRhx','rvzKA','Not\x20able\x20to\x20import\x20crConnection','message','url','YoWmF','getDetails','breSv','../utils/clientTroubleshootingService.js','env','isRunning','Error\x20in\x20importing\x20crConnection','accessibilityPlatform','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','chromium','sYIEj','toString','titlePath','__driver','testInfo','platform_version','local_grid','assign','DHRey','xKQHW','229553iUuDel','../../helpers/helper','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','_onMessage','apply','jUjGI','platformName','RcCuu','eYUKa','chrome','rEVEg','_defaultConnectOptions','platformVersion','WtLPX','wczCx','6565332vXmKPC','lib','sessionError','caps','isRemote','entries','patchCRConnection','KxCuG','Connection','bsParams','webkit','Setting\x20session\x20id\x20received\x20from\x20BS\x20','_name','futXu','BpuPE'];a55_0x3d6d=function(){return _0x1d8cc0;};return a55_0x3d6d();}(function(_0x4511e3,_0x2f0de7){const _0x807acb=a55_0x45bc,_0xfb6505=_0x4511e3();while(!![]){try{const _0x68b5e1=-parseInt(_0x807acb(0x13b))/0x1*(parseInt(_0x807acb(0xf3))/0x2)+parseInt(_0x807acb(0xda))/0x3+-parseInt(_0x807acb(0x196))/0x4+-parseInt(_0x807acb(0x186))/0x5+-parseInt(_0x807acb(0x14a))/0x6+-parseInt(_0x807acb(0x18b))/0x7+parseInt(_0x807acb(0x17e))/0x8;if(_0x68b5e1===_0x2f0de7)break;else _0xfb6505['push'](_0xfb6505['shift']());}catch(_0x152499){_0xfb6505['push'](_0xfb6505['shift']());}}}(a55_0x3d6d,0x9dba4));function a55_0x45bc(_0x5a88d5,_0x49d73c){const _0x3d6da8=a55_0x3d6d();return a55_0x45bc=function(_0x45bc6b,_0x360256){_0x45bc6b=_0x45bc6b-0xd3;let _0x5187e6=_0x3d6da8[_0x45bc6b];return _0x5187e6;},a55_0x45bc(_0x5a88d5,_0x49d73c);}const path=require(a55_0x718dd5(0x187)),url=require(a55_0x718dd5(0x126)),util=require('util'),helper=require(a55_0x718dd5(0x13c)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a55_0x718dd5(0x13c)),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),{debug,getPlatformDetails}=require(a55_0x718dd5(0x121)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{FRAMEWORKS}=require(a55_0x718dd5(0x114)),logger=require(a55_0x718dd5(0xe3))[a55_0x718dd5(0x102)],scripts=require(a55_0x718dd5(0x169)),{browserStackExecuteDriver}=require(a55_0x718dd5(0x116)),AccessibilityHelper=require('./accessibility-helper'),constants=require('../utils/constants'),BrowserstackCLI=require(a55_0x718dd5(0x17a)),AutomationFrameworkState=require('../v2/state/automationFrameworkState.js'),HookState=require(a55_0x718dd5(0x11f)),{performScanWithRetry}=require('../../helpers/accessibility-automation/accessibilityRetryHelper.js'),ClientTroubleShootingService=require(a55_0x718dd5(0x12a)),getBrowserNameFromChannel=_0x32630b=>{const _0x3456e9=a55_0x718dd5,_0x201662={};_0x201662[_0x3456e9(0x166)]=_0x3456e9(0x189),_0x201662[_0x3456e9(0x148)]='safari',_0x201662[_0x3456e9(0x127)]='chrome',_0x201662['kLnxP']=_0x3456e9(0xdc),_0x201662[_0x3456e9(0x140)]=_0x3456e9(0x15a),_0x201662[_0x3456e9(0x111)]=function(_0x2731e2,_0x2cc16e){return _0x2731e2===_0x2cc16e;},_0x201662[_0x3456e9(0x182)]=_0x3456e9(0x154),_0x201662[_0x3456e9(0x143)]='chromium';const _0x557c34=_0x201662,_0x4d901a=_0x557c34[_0x3456e9(0x166)][_0x3456e9(0x162)]('|');let _0x5d0e35=0x0;while(!![]){switch(_0x4d901a[_0x5d0e35++]){case'0':if(_0x32630b[_0x3456e9(0xd5)](_0x557c34['WtLPX']))return _0x557c34[_0x3456e9(0x148)];continue;case'1':if(_0x32630b[_0x3456e9(0xd5)](_0x557c34[_0x3456e9(0x127)]))return _0x557c34[_0x3456e9(0x127)];continue;case'2':if(_0x32630b[_0x3456e9(0xd5)](_0x557c34[_0x3456e9(0x11c)]))return _0x557c34[_0x3456e9(0x11c)];continue;case'3':if(_0x32630b['includes'](_0x557c34[_0x3456e9(0x140)]))return _0x557c34[_0x3456e9(0x140)];continue;case'4':if(_0x557c34['sZXUv'](_0x32630b,_0x557c34['WHZOz']))return _0x557c34['WHZOz'];continue;case'5':if(_0x32630b['includes'](_0x557c34['eYUKa']))return _0x557c34['eYUKa'];continue;}break;}},getBrowserFromWSEndpoint=_0x378aea=>{const _0xe9a22f=a55_0x718dd5,_0x2de948={'NyHXR':_0xe9a22f(0x144),'HPhIx':function(_0x473df3,_0x95cef9){return _0x473df3(_0x95cef9);}};try{const _0x584559=url[_0xe9a22f(0x110)](_0x378aea),_0x5a87ba=new URLSearchParams(_0x584559[_0xe9a22f(0xdd)]),_0x4b2ee6=Object[_0xe9a22f(0xde)](_0x5a87ba[_0xe9a22f(0x14f)]()),_0x5c0a85=JSON['parse'](_0x4b2ee6[_0xe9a22f(0x14d)]);if(_0x5c0a85&&(_0x5c0a85['browser']||_0x5c0a85[_0xe9a22f(0x16b)]))return _0x5c0a85['browser']||_0x5c0a85[_0xe9a22f(0x16b)];return _0x2de948[_0xe9a22f(0x15e)];}catch(_0x22a445){_0x2de948[_0xe9a22f(0x191)](debug,_0xe9a22f(0x173)+_0x22a445['toString']());}},getCloudProviderFromWsEndpoint=_0x571631=>{const _0x5ef2b3=a55_0x718dd5,_0x1ccfa1={};_0x1ccfa1['AOHfa']='browserstack',_0x1ccfa1['RSXZJ']=_0x5ef2b3(0x188);const _0x383ceb=_0x1ccfa1;if(_0x571631[_0x5ef2b3(0xd5)](constants[_0x5ef2b3(0x10e)])||_0x571631['includes'](constants[_0x5ef2b3(0xee)]))return _0x383ceb[_0x5ef2b3(0x15d)];return _0x383ceb[_0x5ef2b3(0x195)];},a55_0x4da92f={};a55_0x4da92f[a55_0x718dd5(0x165)]=undefined,a55_0x4da92f[a55_0x718dd5(0xd3)]=undefined,a55_0x4da92f['browser']=undefined,a55_0x4da92f[a55_0x718dd5(0xec)]=undefined,a55_0x4da92f[a55_0x718dd5(0x10f)]=undefined,a55_0x4da92f[a55_0x718dd5(0x136)]=undefined,a55_0x4da92f[a55_0x718dd5(0xe8)]=undefined,a55_0x4da92f[a55_0x718dd5(0x198)]={};class PlaywrightSessionDetails{static [a55_0x718dd5(0x178)]=a55_0x4da92f;constructor(){const _0x5d23f4=a55_0x718dd5,_0xd7092a={};_0xd7092a[_0x5d23f4(0x129)]='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x24bcf4=_0xd7092a;throw new Error(_0x24bcf4[_0x5d23f4(0x129)]);}static [a55_0x718dd5(0x14c)]=null;static['setupBrowserDetails'](_0xa84c19,_0x55216c,_0x4af360=null){const _0x1e6747=a55_0x718dd5,_0xf89de9={'oCkFO':function(_0x5da297,_0x16d59e){return _0x5da297===_0x16d59e;},'kYhVX':_0x1e6747(0xe1),'wHzAm':'Browser\x20is\x20not\x20defined\x20or\x20not\x20available','OMKzI':function(_0x13f6cf,_0x1d4812){return _0x13f6cf===_0x1d4812;},'xKQHW':'Device\x20Model\x20is\x20not\x20available','KxCuG':_0x1e6747(0x137),'KHYzc':function(_0x193d43,_0x5be431,_0x169cc1){return _0x193d43(_0x5be431,_0x169cc1);},'PRLhO':_0x1e6747(0x16d),'qJXxp':_0x1e6747(0x146),'JimZi':_0x1e6747(0x10a),'futXu':_0x1e6747(0xeb),'kHrJY':_0x1e6747(0xe2),'dRwiE':function(_0x3a8036,_0x23a7b9){return _0x3a8036(_0x23a7b9);},'yMjOr':function(_0x42000b,_0x3fc9fa){return _0x42000b===_0x3fc9fa;},'cWPcp':_0x1e6747(0x176),'QcmGZ':_0x1e6747(0xd7),'aWLcM':'automate','zFoae':function(_0x10f358){return _0x10f358();},'HNLoA':function(_0x455608,_0x4b025c){return _0x455608&&_0x4b025c;},'Aixnh':function(_0xedd186,_0x288e2d){return _0xedd186+_0x288e2d;},'mtUvv':_0x1e6747(0xd4),'qJHxr':function(_0x337afc,_0x26f4ba,_0x2ed1e6){return _0x337afc(_0x26f4ba,_0x2ed1e6);},'DPRVm':_0x1e6747(0xe5)},_0x2cd68d=this;return _0xf89de9[_0x1e6747(0x106)](o11yErrorHandler,async function _0x5b0608(_0x180ba3,_0x2793cb,_0x4ee6e3=null){const _0xe36450=_0x1e6747;let _0x441b36=_0x180ba3[_0xe36450(0x156)],_0x47e88f=null;_0x180ba3&&_0xf89de9[_0xe36450(0xe7)](typeof _0x180ba3['version'],_0xf89de9[_0xe36450(0xfd)])?_0x47e88f=_0x180ba3[_0xe36450(0x101)]():logger[_0xe36450(0x177)](_0xf89de9[_0xe36450(0xff)]);let _0x262cc3=null;_0x180ba3&&_0xf89de9['OMKzI'](typeof _0x180ba3[_0xe36450(0xed)],_0xf89de9['kYhVX'])?_0x262cc3=_0x180ba3[_0xe36450(0xed)]():logger[_0xe36450(0x177)](_0xf89de9[_0xe36450(0x13a)]);let _0x1cd31d=null,_0x38550=null,_0x2216bc=null,_0x359db1=_0xf89de9[_0xe36450(0x151)];if(_0x180ba3['_connection'][_0xe36450(0x14e)]()||global[_0xe36450(0x12e)]&&!process[_0xe36450(0x12b)]['BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE']){let _0x2d3abb=null;_0xf89de9['KHYzc'](nestedKeyValue,_0x180ba3,[_0xf89de9[_0xe36450(0x179)],_0xf89de9['qJXxp']])?_0x2d3abb=_0x180ba3['_browserType'][_0xe36450(0x146)]:_0x2d3abb=_0xf89de9['KHYzc'](nestedKeyValue,_0x2793cb,[_0xf89de9[_0xe36450(0xf6)],_0xf89de9[_0xe36450(0x157)],_0xf89de9[_0xe36450(0xfa)]]);const _0x326683=_0x4ee6e3||_0x2d3abb&&_0x2d3abb[_0xe36450(0x117)];if(_0x326683){_0x359db1=_0xf89de9['dRwiE'](getCloudProviderFromWsEndpoint,_0x326683);if(_0xf89de9[_0xe36450(0x194)](_0x359db1,_0xf89de9[_0xe36450(0x11b)]))_0x2216bc=constants[_0xe36450(0x175)][_0xe36450(0x19d)](_0x326683)?_0xf89de9['QcmGZ']:_0xf89de9[_0xe36450(0x10c)],_0x441b36=_0xf89de9['dRwiE'](getBrowserFromWSEndpoint,_0x326683)||_0x441b36,_0x1cd31d=_0x2cd68d[_0xe36450(0x178)]['platform'],_0x38550=_0x2cd68d['currentSessionDetails'][_0xe36450(0x136)];else{const _0x31be1c=await _0xf89de9[_0xe36450(0xe0)](getPlatformDetails);_0x1cd31d=_0x31be1c['platformName'],_0x38550=_0x31be1c[_0xe36450(0x147)];}}if(_0xf89de9['HNLoA'](!_0x1cd31d,!_0x38550)&&!_0xf89de9[_0xe36450(0xe0)](isBrowserstackInfra)){const _0x52d0a4=await _0xf89de9[_0xe36450(0xe0)](getPlatformDetails);_0x1cd31d=_0x52d0a4['platformName'],_0x38550=_0x52d0a4[_0xe36450(0x147)];}}else{_0x2793cb&&_0x2793cb[_0xe36450(0x10a)][_0xe36450(0xeb)]['channel']?_0x441b36=_0xf89de9[_0xe36450(0x19f)](getBrowserNameFromChannel,_0x2793cb[_0xe36450(0x10a)][_0xe36450(0xeb)][_0xe36450(0x11a)]):_0x441b36=_0xf89de9[_0xe36450(0x108)](_0xf89de9[_0xe36450(0x17c)],_0x441b36[_0xe36450(0x184)]());const _0x3185c7=await _0xf89de9[_0xe36450(0xe0)](getPlatformDetails);_0x1cd31d=_0x3185c7[_0xe36450(0x141)],_0x38550=_0x3185c7[_0xe36450(0x147)];}const _0x5a2f50={};_0x5a2f50['browser']=_0x441b36,_0x5a2f50[_0xe36450(0xec)]=_0x47e88f,_0x5a2f50[_0xe36450(0x198)]={},_0x5a2f50['platform']=_0x1cd31d,_0x5a2f50[_0xe36450(0x136)]=_0x38550,_0x5a2f50['product']=_0x2216bc;const _0x3d3400=_0x5a2f50;_0x262cc3&&(_0x3d3400['capabilities'][_0xe36450(0xfe)]=_0x262cc3);const _0x39e2b3={};_0x39e2b3['cloudProvider']=_0x359db1,_0x2cd68d[_0xe36450(0x178)]=Object[_0xe36450(0x138)]({},_0x2cd68d[_0xe36450(0x178)],_0x39e2b3,_0x3d3400);},_0xf89de9[_0x1e6747(0x11e)])(_0xa84c19,_0x55216c,_0x4af360);}static[a55_0x718dd5(0xdb)](){const _0x7a6b44=a55_0x718dd5;this[_0x7a6b44(0xf9)](),this['patchCRConnection']();}static[a55_0x718dd5(0xf9)](){const _0x1eb9aa=a55_0x718dd5,_0x2521f8={'yQJTi':function(_0x441cc1,_0x41aeea,_0x3863cc){return _0x441cc1(_0x41aeea,_0x3863cc);},'YCeEF':'currentTest','LvEkl':_0x1eb9aa(0x135),'EuNvX':_0x1eb9aa(0x133),'EmbTt':function(_0x1a6448,_0x3d2a6e,_0x309514){return _0x1a6448(_0x3d2a6e,_0x309514);},'EGuHa':_0x1eb9aa(0x11d),'UQAuQ':_0x1eb9aa(0x19b),'UAeqO':function(_0xd0ed8c,_0x1e8ccb){return _0xd0ed8c===_0x1e8ccb;},'TITnJ':_0x1eb9aa(0x15f),'sYIEj':function(_0x3ab8fc,_0x140c41,_0xf9abda,_0x2a4d41){return _0x3ab8fc(_0x140c41,_0xf9abda,_0x2a4d41);},'EvwAu':function(_0x556683,_0x5bad15){return _0x556683||_0x5bad15;},'LWIaP':function(_0xd83cd,_0x36c97f){return _0xd83cd(_0x36c97f);},'aYhnG':'Not\x20able\x20to\x20resolve\x20Connection\x20class','AOhlH':function(_0x13e839,_0x1b1489){return _0x13e839!=_0x1b1489;},'WNMPP':function(_0x139f30,_0x233e27){return _0x139f30!=_0x233e27;},'GiPxq':function(_0x822a33){return _0x822a33();},'SBbIe':_0x1eb9aa(0xd9),'wczCx':function(_0x593996,_0x53b168){return _0x593996(_0x53b168);},'tktQb':'dispatch','tIjsk':_0x1eb9aa(0x12f)},_0x5db249=this;!this[_0x1eb9aa(0x152)]&&(this[_0x1eb9aa(0x152)]=helper['resolveConnectionClass'](),!this['Connection']&&_0x2521f8['LWIaP'](debug,_0x2521f8[_0x1eb9aa(0x105)]));const _0x540de2=this[_0x1eb9aa(0x152)];if(_0x2521f8[_0x1eb9aa(0xf5)](_0x540de2,null)&&_0x540de2[_0x1eb9aa(0x10d)][_0x1eb9aa(0x170)])return;try{if(_0x2521f8['WNMPP'](_0x540de2,null)){const _0x5da55d=_0x540de2[_0x1eb9aa(0x10d)][_0x1eb9aa(0x167)],_0x3c2aa6=_0x540de2['prototype'][_0x1eb9aa(0xd9)];_0x2521f8[_0x1eb9aa(0x193)](isAccessibilityAutomationSession)&&Object[_0x1eb9aa(0x197)](_0x540de2[_0x1eb9aa(0x10d)],_0x2521f8[_0x1eb9aa(0x119)],{'get':function(){const _0x3b37c3=_0x1eb9aa,_0x55767a={'iRREn':function(_0x586d95,_0x560dd2,_0x50e7fc){const _0x2d402d=a55_0x45bc;return _0x2521f8[_0x2d402d(0xef)](_0x586d95,_0x560dd2,_0x50e7fc);},'BkLtg':_0x2521f8['YCeEF'],'bcAqw':_0x2521f8[_0x3b37c3(0xd8)],'pJRhx':_0x2521f8['EuNvX'],'UWNmQ':function(_0x3aa897,_0x190a36,_0x550b8e){const _0x307673=_0x3b37c3;return _0x2521f8[_0x307673(0x15b)](_0x3aa897,_0x190a36,_0x550b8e);},'UqQAR':_0x2521f8['EGuHa'],'FrTch':_0x2521f8[_0x3b37c3(0x18a)],'ROdvl':function(_0x420019,_0xd21535){const _0x180306=_0x3b37c3;return _0x2521f8[_0x180306(0x192)](_0x420019,_0xd21535);},'rEVEg':_0x2521f8[_0x3b37c3(0xd6)],'DJYKJ':function(_0x3dd7c1,_0x566ec8,_0x4cee72,_0x691e96){const _0x1adff5=_0x3b37c3;return _0x2521f8[_0x1adff5(0x131)](_0x3dd7c1,_0x566ec8,_0x4cee72,_0x691e96);}};return async function(){const _0x476aac=_0x3b37c3;try{if(!global[_0x476aac(0x109)]&&global['accessibilityPlatform']&&_0x55767a[_0x476aac(0xf1)](nestedKeyValue,global['__workerDetails'],[_0x55767a[_0x476aac(0x17d)],_0x55767a[_0x476aac(0x120)],_0x55767a[_0x476aac(0x122)]])&&_0x55767a['iRREn'](shouldScanTestForAccessibility,global['__workerDetails'][_0x476aac(0x103)][_0x476aac(0x135)]['titlePath'],!![])&&scripts[_0x476aac(0x18c)](arguments[0x1])){logger[_0x476aac(0x177)](_0x476aac(0xea)+arguments[0x1]),global[_0x476aac(0x109)]=!![];const _0x14d2a0=_0x55767a[_0x476aac(0x163)](nestedKeyValue,global,[_0x55767a[_0x476aac(0xf7)],_0x55767a[_0x476aac(0xfc)]]);_0x14d2a0&&logger[_0x476aac(0x185)](_0x476aac(0x19c)+util[_0x476aac(0x100)](await _0x55767a[_0x476aac(0xf1)](performScanWithRetry,_0x14d2a0,arguments[0x1]))),_0x55767a[_0x476aac(0xf8)](arguments[0x0]['_type'],_0x55767a[_0x476aac(0x145)])&&global[_0x476aac(0x134)]&&logger[_0x476aac(0x185)](_0x476aac(0x16f)+util[_0x476aac(0x100)](await _0x55767a[_0x476aac(0x171)](performScanWithRetry,global[_0x476aac(0x134)],arguments[0x1],scripts['performScan'])));}}catch(_0x155dca){logger['debug'](_0x476aac(0x18e)+util['format'](_0x155dca));}return global['bstackPerformA11yScan']=![],_0x3c2aa6[_0x476aac(0x13f)](this,arguments);};}}),!_0x2521f8[_0x1eb9aa(0x149)](isFalse,process['env'][_0x1eb9aa(0x16e)])&&Object['defineProperty'](_0x540de2[_0x1eb9aa(0x10d)],_0x2521f8['tktQb'],{'get':function(){const _0x491d3c={'AXJCu':function(_0x4bfee5,_0x73df0d){const _0x55b9c7=a55_0x45bc;return _0x2521f8[_0x55b9c7(0xe6)](_0x4bfee5,_0x73df0d);},'TlaVi':function(_0x431627,_0x28c14e){const _0x3384dd=a55_0x45bc;return _0x2521f8[_0x3384dd(0x19e)](_0x431627,_0x28c14e);}};return async function _0x5a0410(_0xd638f6){const _0x3c1709=a55_0x45bc;if(BrowserstackCLI[_0x3c1709(0x160)]()[_0x3c1709(0x12c)]()){const _0xc0a221={};_0xc0a221[_0x3c1709(0x125)]=_0xd638f6,await BrowserstackCLI[_0x3c1709(0x160)]()[_0x3c1709(0x164)]()[_0x3c1709(0xf2)](AutomationFrameworkState[_0x3c1709(0x16c)],HookState[_0x3c1709(0x174)],_0xc0a221);}else{const _0x47850f=_0xd638f6&&_0xd638f6['params']&&_0xd638f6['params'][_0x3c1709(0x153)];if(_0x47850f){const _0x3c411d=_0x47850f[_0x3c1709(0xe4)],_0x58b475=_0x47850f[_0x3c1709(0xfb)];_0x491d3c[_0x3c1709(0x10b)](!_0x3c411d,!_0x58b475)&&await ClientTroubleShootingService[_0x3c1709(0x190)](),_0x58b475&&(_0x491d3c[_0x3c1709(0x15c)](debug,_0x3c1709(0x104)+_0x58b475[_0x3c1709(0x132)]()),_0x5db249[_0x3c1709(0x178)][_0x3c1709(0x10f)]=_0x58b475['platformName'],_0x5db249[_0x3c1709(0x178)][_0x3c1709(0x136)]=_0x58b475[_0x3c1709(0x147)]),_0x3c411d&&(_0x491d3c[_0x3c1709(0x15c)](debug,_0x3c1709(0x155)+_0x3c411d),_0x5db249['currentSessionDetails'][_0x3c1709(0xd3)]=_0x3c411d);}}return _0x5da55d[_0x3c1709(0x13f)](this,arguments);};}}),_0x540de2[_0x1eb9aa(0x10d)][_0x1eb9aa(0x170)]=!![],logger[_0x1eb9aa(0x177)](_0x2521f8[_0x1eb9aa(0x172)]);}}catch(_0x5b1669){_0x2521f8[_0x1eb9aa(0x149)](debug,'Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20'+_0x5b1669),_0x5db249['sessionError']=_0x5b1669[_0x1eb9aa(0x132)]();}}static[a55_0x718dd5(0x150)](){const _0x840199=a55_0x718dd5,_0x50d353={'VURyv':function(_0x4b0c2d,_0x5acd56){return _0x4b0c2d(_0x5acd56);},'KvjoX':function(_0x33cc37,_0xd94757){return _0x33cc37(_0xd94757);},'jbSLa':function(_0x1f8d6d){return _0x1f8d6d();},'RcCuu':function(_0x1ecae4,_0x25f087){return _0x1ecae4>=_0x25f087;},'vTTwX':'1.60.0','vujKX':function(_0x2c0be2,_0x2d9caa){return _0x2c0be2(_0x2d9caa);},'BpuPE':_0x840199(0x183),'PJeJj':_0x840199(0x14b),'DHRey':_0x840199(0x168),'WbBBI':_0x840199(0x130),'MlbII':_0x840199(0x115),'SfZlX':function(_0x4f0cf9,_0x151442){return _0x4f0cf9(_0x151442);},'rvzKA':_0x840199(0x124),'ZAZiq':_0x840199(0x12d),'gNszD':function(_0x5c8b6e,_0xa2ed2){return _0x5c8b6e!=_0xa2ed2;},'qCANx':'_onMessage'},_0x35ae0f=this;if(_0x50d353['jbSLa'](isAccessibilityAutomationSession)){let _0x5e8142=null,_0x39cdb0=![];try{const _0x153f3c=helper[_0x840199(0x112)](FRAMEWORKS[_0x840199(0xf0)]);_0x39cdb0=_0x50d353[_0x840199(0x142)](helper[_0x840199(0x18f)](_0x153f3c,_0x50d353[_0x840199(0x180)]),0x0);}catch(_0x170338){_0x50d353[_0x840199(0x199)](debug,_0x840199(0x18d)+_0x170338[_0x840199(0x132)]());}if(_0x39cdb0)_0x50d353['vujKX'](debug,_0x50d353[_0x840199(0x158)]);else try{const _0x4d720e=path['join'](_0x50d353[_0x840199(0x113)],_0x50d353[_0x840199(0x139)],_0x50d353['WbBBI'],_0x50d353[_0x840199(0x19a)]),_0x2edaaa=_0x50d353[_0x840199(0x17f)](importFileFromPWCore,_0x4d720e);!_0x2edaaa?_0x50d353[_0x840199(0x17b)](debug,_0x50d353[_0x840199(0x123)]):_0x5e8142=_0x2edaaa[_0x840199(0x161)];}catch(_0x1df38a){_0x50d353[_0x840199(0x199)](debug,_0x50d353[_0x840199(0xe9)]);}try{if(_0x50d353[_0x840199(0x16a)](_0x5e8142,null)){const _0x5bcfb0=_0x5e8142['prototype'][_0x840199(0x13e)];Object['defineProperty'](_0x5e8142[_0x840199(0x10d)],_0x50d353[_0x840199(0x159)],{'get':function(){return async function _0x57def5(_0x56feaf){const _0x53ffed=a55_0x45bc;try{if(BrowserstackCLI[_0x53ffed(0x160)]()[_0x53ffed(0x12c)]()){const _0xd4952d={};_0xd4952d[_0x53ffed(0x125)]=_0x56feaf,await BrowserstackCLI[_0x53ffed(0x160)]()[_0x53ffed(0x164)]()['trackEvent'](AutomationFrameworkState[_0x53ffed(0x16c)],HookState['POST'],_0xd4952d),delete _0x56feaf[_0x53ffed(0x107)];}else{const _0x2ce4a3=_0x56feaf['bStackParams'];if(_0x2ce4a3){delete _0x56feaf[_0x53ffed(0x107)];const _0x177f1b=_0x2ce4a3[_0x53ffed(0xe4)],_0x60a2f8=_0x2ce4a3[_0x53ffed(0xfb)];_0x60a2f8&&(_0x50d353[_0x53ffed(0x199)](debug,_0x53ffed(0xf4)+_0x60a2f8[_0x53ffed(0x132)]()),_0x35ae0f[_0x53ffed(0x178)][_0x53ffed(0x10f)]=_0x60a2f8[_0x53ffed(0x141)],_0x35ae0f[_0x53ffed(0x178)][_0x53ffed(0x136)]=_0x60a2f8[_0x53ffed(0x147)]),_0x177f1b&&(_0x50d353[_0x53ffed(0x199)](debug,_0x53ffed(0x118)+_0x177f1b),_0x35ae0f['currentSessionDetails']['bsSessionId']=_0x177f1b);}}}catch(_0x2953d){_0x50d353[_0x53ffed(0x17f)](debug,_0x53ffed(0xdf)+_0x2953d['toString']());}return _0x5bcfb0[_0x53ffed(0x13f)](this,arguments);};}});}}catch(_0x5bc765){_0x50d353[_0x840199(0x199)](debug,_0x840199(0x13d)+_0x5bc765),_0x35ae0f['sessionError']=_0x5bc765[_0x840199(0x132)]();}}}static[a55_0x718dd5(0x128)](){const _0x3086e8=a55_0x718dd5;return this[_0x3086e8(0x178)];}}module[a55_0x718dd5(0x181)]=PlaywrightSessionDetails;
|
|
1
|
+
const a55_0x1ec1e3=a55_0x5956;(function(_0x13eba6,_0x13abb3){const _0x3742cd=a55_0x5956,_0x4fe286=_0x13eba6();while(!![]){try{const _0x824f3d=-parseInt(_0x3742cd(0x208))/0x1+-parseInt(_0x3742cd(0x231))/0x2*(-parseInt(_0x3742cd(0x23c))/0x3)+-parseInt(_0x3742cd(0x269))/0x4+-parseInt(_0x3742cd(0x240))/0x5+parseInt(_0x3742cd(0x26c))/0x6+parseInt(_0x3742cd(0x268))/0x7*(parseInt(_0x3742cd(0x1fa))/0x8)+parseInt(_0x3742cd(0x1ec))/0x9;if(_0x824f3d===_0x13abb3)break;else _0x4fe286['push'](_0x4fe286['shift']());}catch(_0xf8a599){_0x4fe286['push'](_0x4fe286['shift']());}}}(a55_0x5df7,0xf3a97));const path=require(a55_0x1ec1e3(0x1e2)),url=require(a55_0x1ec1e3(0x229)),util=require('util'),helper=require('../../helpers/helper'),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a55_0x1ec1e3(0x248)),{o11yErrorHandler}=require(a55_0x1ec1e3(0x27d)),{debug,getPlatformDetails}=require(a55_0x1ec1e3(0x28d)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a55_0x1ec1e3(0x220)),{FRAMEWORKS}=require(a55_0x1ec1e3(0x29d)),logger=require('../../helpers/logger')[a55_0x1ec1e3(0x242)],scripts=require('../../helpers/accessibility-automation/scripts'),{browserStackExecuteDriver}=require(a55_0x1ec1e3(0x24c)),AccessibilityHelper=require(a55_0x1ec1e3(0x28a)),constants=require(a55_0x1ec1e3(0x1e7)),BrowserstackCLI=require('../v2/browserstackCLI'),AutomationFrameworkState=require('../v2/state/automationFrameworkState.js'),HookState=require(a55_0x1ec1e3(0x2ae)),{performScanWithRetry}=require(a55_0x1ec1e3(0x1ff)),ClientTroubleShootingService=require(a55_0x1ec1e3(0x25c)),getBrowserNameFromChannel=_0x1c9217=>{const _0x372bcc=a55_0x1ec1e3,_0x23a529={};_0x23a529[_0x372bcc(0x1ed)]=_0x372bcc(0x259),_0x23a529[_0x372bcc(0x222)]='chrome',_0x23a529[_0x372bcc(0x226)]=_0x372bcc(0x243),_0x23a529[_0x372bcc(0x244)]=function(_0x3c8603,_0x5918d8){return _0x3c8603===_0x5918d8;},_0x23a529[_0x372bcc(0x253)]=_0x372bcc(0x24f),_0x23a529[_0x372bcc(0x283)]='safari',_0x23a529[_0x372bcc(0x254)]=_0x372bcc(0x2ab),_0x23a529[_0x372bcc(0x20c)]=_0x372bcc(0x234);const _0x3e5254=_0x23a529,_0x8dc7f0=_0x3e5254[_0x372bcc(0x1ed)]['split']('|');let _0x449750=0x0;while(!![]){switch(_0x8dc7f0[_0x449750++]){case'0':if(_0x1c9217['includes'](_0x3e5254[_0x372bcc(0x222)]))return _0x3e5254[_0x372bcc(0x222)];continue;case'1':if(_0x1c9217[_0x372bcc(0x23a)](_0x3e5254[_0x372bcc(0x226)]))return _0x3e5254[_0x372bcc(0x226)];continue;case'2':if(_0x3e5254[_0x372bcc(0x244)](_0x1c9217,_0x3e5254[_0x372bcc(0x253)]))return _0x3e5254[_0x372bcc(0x253)];continue;case'3':if(_0x1c9217[_0x372bcc(0x23a)](_0x3e5254[_0x372bcc(0x283)]))return _0x3e5254[_0x372bcc(0x283)];continue;case'4':if(_0x1c9217[_0x372bcc(0x23a)](_0x3e5254[_0x372bcc(0x254)]))return _0x3e5254['RbnlH'];continue;case'5':if(_0x1c9217[_0x372bcc(0x23a)](_0x3e5254[_0x372bcc(0x20c)]))return _0x3e5254[_0x372bcc(0x20c)];continue;}break;}},getBrowserFromWSEndpoint=_0x47ba32=>{const _0x2aa132=a55_0x1ec1e3,_0x282fa5={'Ijpks':'chrome','YEaVG':function(_0x481d3b,_0x59756b){return _0x481d3b(_0x59756b);}};try{const _0x24fb8f=url[_0x2aa132(0x1ee)](_0x47ba32),_0x1857fe=new URLSearchParams(_0x24fb8f[_0x2aa132(0x282)]),_0x2c9b8c=Object[_0x2aa132(0x20d)](_0x1857fe[_0x2aa132(0x232)]()),_0x301679=JSON[_0x2aa132(0x1ee)](_0x2c9b8c['caps']);if(_0x301679&&(_0x301679[_0x2aa132(0x274)]||_0x301679[_0x2aa132(0x21f)]))return _0x301679[_0x2aa132(0x274)]||_0x301679[_0x2aa132(0x21f)];return _0x282fa5['Ijpks'];}catch(_0x5a59fc){_0x282fa5[_0x2aa132(0x252)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x5a59fc[_0x2aa132(0x276)]());}},getCloudProviderFromWsEndpoint=_0x10c687=>{const _0xa5104c=a55_0x1ec1e3,_0x112c55={};_0x112c55[_0xa5104c(0x28f)]=_0xa5104c(0x246),_0x112c55[_0xa5104c(0x27b)]=_0xa5104c(0x218);const _0x144d80=_0x112c55;if(_0x10c687[_0xa5104c(0x23a)](constants[_0xa5104c(0x219)])||_0x10c687[_0xa5104c(0x23a)](constants['BSTACK_ATS_URL']))return _0x144d80['RyTkt'];return _0x144d80['ETUsb'];},a55_0x3e4c96={};a55_0x3e4c96['cloudProvider']=undefined,a55_0x3e4c96['bsSessionId']=undefined,a55_0x3e4c96['browser']=undefined,a55_0x3e4c96[a55_0x1ec1e3(0x216)]=undefined,a55_0x3e4c96[a55_0x1ec1e3(0x286)]=undefined,a55_0x3e4c96[a55_0x1ec1e3(0x212)]=undefined,a55_0x3e4c96[a55_0x1ec1e3(0x250)]=undefined,a55_0x3e4c96['capabilities']={};class PlaywrightSessionDetails{static [a55_0x1ec1e3(0x280)]=a55_0x3e4c96;constructor(){const _0x75d196=a55_0x1ec1e3,_0x5c7d88={};_0x5c7d88[_0x75d196(0x23f)]='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x39853c=_0x5c7d88;throw new Error(_0x39853c[_0x75d196(0x23f)]);}static [a55_0x1ec1e3(0x299)]=null;static['setupBrowserDetails'](_0x1d68c7,_0x3e0ed2,_0xec61bd=null){const _0x259150=a55_0x1ec1e3,_0x527ad0={'EfimI':function(_0xfc1f1,_0x2c74c6){return _0xfc1f1===_0x2c74c6;},'JCsUu':_0x259150(0x20f),'IxGvd':'Browser\x20is\x20not\x20defined\x20or\x20not\x20available','aIQoa':function(_0x17fa2f,_0x51d6f6){return _0x17fa2f===_0x51d6f6;},'zQxXm':_0x259150(0x294),'gSuLF':'local_grid','tcyrX':function(_0x59eb82,_0x355974,_0xc7555){return _0x59eb82(_0x355974,_0xc7555);},'jVfVP':'_browserType','ZLdNr':'_defaultConnectOptions','pHiJC':_0x259150(0x247),'vUhJR':_0x259150(0x214),'DiSwj':'connectOptions','qQCBq':function(_0x24fa78,_0x56484){return _0x24fa78(_0x56484);},'SsDjc':function(_0x75e675,_0x15c970){return _0x75e675===_0x15c970;},'MxQdz':_0x259150(0x246),'uMdmE':'turboscale','eCgkt':_0x259150(0x293),'iccQN':function(_0x1cdf07){return _0x1cdf07();},'meaLm':function(_0x2a4b3b,_0x185c1e){return _0x2a4b3b&&_0x185c1e;},'MqXYh':function(_0x1c3971){return _0x1c3971();},'VyJGf':function(_0x2c1b88){return _0x2c1b88();},'AGlCG':function(_0xd03cc8,_0x37897e){return _0xd03cc8+_0x37897e;},'pPeaE':_0x259150(0x25b),'enNmE':function(_0x4b9f70){return _0x4b9f70();},'crdmt':function(_0x556149,_0x1a67f9,_0x840ed6){return _0x556149(_0x1a67f9,_0x840ed6);},'TKPYn':_0x259150(0x28b)},_0x4b685c=this;return _0x527ad0[_0x259150(0x25a)](o11yErrorHandler,async function _0x1deb08(_0x1f76f5,_0x3204b7,_0x12e8a1=null){const _0x24cd7d=_0x259150;let _0x15e5a6=_0x1f76f5[_0x24cd7d(0x23e)],_0x50a566=null;_0x1f76f5&&_0x527ad0[_0x24cd7d(0x20b)](typeof _0x1f76f5[_0x24cd7d(0x275)],_0x527ad0[_0x24cd7d(0x23b)])?_0x50a566=_0x1f76f5[_0x24cd7d(0x275)]():logger[_0x24cd7d(0x1fc)](_0x527ad0[_0x24cd7d(0x1f5)]);let _0x34a332=null;_0x1f76f5&&_0x527ad0[_0x24cd7d(0x270)](typeof _0x1f76f5[_0x24cd7d(0x1f3)],_0x527ad0[_0x24cd7d(0x23b)])?_0x34a332=_0x1f76f5[_0x24cd7d(0x1f3)]():logger[_0x24cd7d(0x1fc)](_0x527ad0[_0x24cd7d(0x228)]);let _0x8f07f5=null,_0x7694c1=null,_0x19fff8=null,_0x4d5f08=_0x527ad0[_0x24cd7d(0x2aa)];if(_0x1f76f5[_0x24cd7d(0x2a9)][_0x24cd7d(0x1ef)]()||global['accessibilityPlatform']&&!process[_0x24cd7d(0x1eb)][_0x24cd7d(0x1e4)]){let _0x4a9eae=null;_0x527ad0[_0x24cd7d(0x239)](nestedKeyValue,_0x1f76f5,[_0x527ad0[_0x24cd7d(0x2a1)],_0x527ad0['ZLdNr']])?_0x4a9eae=_0x1f76f5[_0x24cd7d(0x24d)][_0x24cd7d(0x26e)]:_0x4a9eae=_0x527ad0[_0x24cd7d(0x239)](nestedKeyValue,_0x3204b7,[_0x527ad0[_0x24cd7d(0x258)],_0x527ad0['vUhJR'],_0x527ad0[_0x24cd7d(0x1fd)]]);const _0x47165e=_0x12e8a1||_0x4a9eae&&_0x4a9eae[_0x24cd7d(0x1e6)];if(_0x47165e){_0x4d5f08=_0x527ad0[_0x24cd7d(0x1e3)](getCloudProviderFromWsEndpoint,_0x47165e);if(_0x527ad0['SsDjc'](_0x4d5f08,_0x527ad0[_0x24cd7d(0x262)]))_0x19fff8=constants[_0x24cd7d(0x22f)][_0x24cd7d(0x2ad)](_0x47165e)?_0x527ad0[_0x24cd7d(0x285)]:_0x527ad0[_0x24cd7d(0x225)],_0x15e5a6=_0x527ad0[_0x24cd7d(0x1e3)](getBrowserFromWSEndpoint,_0x47165e)||_0x15e5a6,_0x8f07f5=_0x4b685c[_0x24cd7d(0x280)][_0x24cd7d(0x286)],_0x7694c1=_0x4b685c[_0x24cd7d(0x280)][_0x24cd7d(0x212)];else{const _0xcf42e9=await _0x527ad0[_0x24cd7d(0x25f)](getPlatformDetails);_0x8f07f5=_0xcf42e9['platformName'],_0x7694c1=_0xcf42e9[_0x24cd7d(0x22c)];}}if(_0x527ad0[_0x24cd7d(0x290)](!_0x8f07f5,!_0x7694c1)&&!_0x527ad0[_0x24cd7d(0x202)](isBrowserstackInfra)){const _0x53246d=await _0x527ad0[_0x24cd7d(0x2a2)](getPlatformDetails);_0x8f07f5=_0x53246d[_0x24cd7d(0x21a)],_0x7694c1=_0x53246d[_0x24cd7d(0x22c)];}}else{_0x3204b7&&_0x3204b7[_0x24cd7d(0x247)]['use'][_0x24cd7d(0x1e8)]?_0x15e5a6=_0x527ad0[_0x24cd7d(0x1e3)](getBrowserNameFromChannel,_0x3204b7[_0x24cd7d(0x247)]['use'][_0x24cd7d(0x1e8)]):_0x15e5a6=_0x527ad0['AGlCG'](_0x527ad0[_0x24cd7d(0x21d)],_0x15e5a6[_0x24cd7d(0x264)]());const _0x199862=await _0x527ad0[_0x24cd7d(0x249)](getPlatformDetails);_0x8f07f5=_0x199862['platformName'],_0x7694c1=_0x199862[_0x24cd7d(0x22c)];}const _0xc95608={};_0xc95608['browser']=_0x15e5a6,_0xc95608[_0x24cd7d(0x216)]=_0x50a566,_0xc95608[_0x24cd7d(0x298)]={},_0xc95608[_0x24cd7d(0x286)]=_0x8f07f5,_0xc95608[_0x24cd7d(0x212)]=_0x7694c1,_0xc95608[_0x24cd7d(0x250)]=_0x19fff8;const _0x55f169=_0xc95608;_0x34a332&&(_0x55f169['capabilities'][_0x24cd7d(0x263)]=_0x34a332);const _0x18bf35={};_0x18bf35[_0x24cd7d(0x205)]=_0x4d5f08,_0x4b685c[_0x24cd7d(0x280)]=Object[_0x24cd7d(0x251)]({},_0x4b685c['currentSessionDetails'],_0x18bf35,_0x55f169);},_0x527ad0[_0x259150(0x210)])(_0x1d68c7,_0x3e0ed2,_0xec61bd);}static[a55_0x1ec1e3(0x241)](){const _0x409a47=a55_0x1ec1e3;this[_0x409a47(0x21b)](),this[_0x409a47(0x2a4)]();}static['patchConnection'](){const _0x1913e2=a55_0x1ec1e3,_0x579b93={'wfgIe':function(_0x1573a9,_0x4dd8c6,_0x1a7105){return _0x1573a9(_0x4dd8c6,_0x1a7105);},'FvWQj':'currentTest','hzISS':'testInfo','Acfir':_0x1913e2(0x29a),'amyia':function(_0x3942a4,_0xeb6472,_0x1d528a){return _0x3942a4(_0xeb6472,_0x1d528a);},'VLSUv':function(_0x2a303a,_0xe2e7f7,_0x45d5a8){return _0x2a303a(_0xe2e7f7,_0x45d5a8);},'pkzLL':_0x1913e2(0x1f9),'EvTbX':_0x1913e2(0x236),'HakQp':function(_0xb4113f,_0x40a559){return _0xb4113f===_0x40a559;},'nCUZS':_0x1913e2(0x28c),'fhVCd':function(_0x2c4f20,_0x59d709,_0x3a6d46,_0x4a682c){return _0x2c4f20(_0x59d709,_0x3a6d46,_0x4a682c);},'xlSYS':function(_0x178974,_0x56c2f9){return _0x178974||_0x56c2f9;},'fYmEA':function(_0x26cb53,_0x17d03e){return _0x26cb53(_0x17d03e);},'QZrRy':_0x1913e2(0x281),'ygMNS':function(_0x2572b4,_0x566906){return _0x2572b4!=_0x566906;},'wfgGx':function(_0x55c0b2,_0x4c1f5e){return _0x55c0b2!=_0x4c1f5e;},'QxYVk':function(_0x10ab14){return _0x10ab14();},'ZzYEo':_0x1913e2(0x277),'wCeYf':function(_0x5dda24,_0x5c3369){return _0x5dda24(_0x5c3369);},'JapSZ':_0x1913e2(0x1f7),'HRUaf':_0x1913e2(0x1f2),'LaPvL':function(_0x4fd63a,_0x3b8267){return _0x4fd63a(_0x3b8267);}},_0x14f9c5=this;!this[_0x1913e2(0x266)]&&(this['Connection']=helper[_0x1913e2(0x201)](),!this['Connection']&&_0x579b93[_0x1913e2(0x29b)](debug,_0x579b93[_0x1913e2(0x204)]));const _0xd18673=this[_0x1913e2(0x266)];if(_0x579b93[_0x1913e2(0x1fb)](_0xd18673,null)&&_0xd18673[_0x1913e2(0x2a3)][_0x1913e2(0x265)])return;try{if(_0x579b93[_0x1913e2(0x291)](_0xd18673,null)){const _0x3633fc=_0xd18673['prototype'][_0x1913e2(0x1f7)],_0x2b202f=_0xd18673[_0x1913e2(0x2a3)]['sendMessageToServer'];_0x579b93[_0x1913e2(0x213)](isAccessibilityAutomationSession)&&Object[_0x1913e2(0x237)](_0xd18673[_0x1913e2(0x2a3)],_0x579b93[_0x1913e2(0x1fe)],{'get':function(){const _0xa95c2d=_0x1913e2,_0x282203={'mCbcO':function(_0x51af12,_0x4b5936,_0x5258f2){const _0x245e38=a55_0x5956;return _0x579b93[_0x245e38(0x24e)](_0x51af12,_0x4b5936,_0x5258f2);},'ytaIs':_0x579b93[_0xa95c2d(0x1f6)],'ocRoW':_0x579b93[_0xa95c2d(0x20e)],'QGGNp':_0x579b93[_0xa95c2d(0x2a8)],'IbqAg':function(_0x1a6a15,_0x29b8f6,_0x5390c8){const _0x5db65f=_0xa95c2d;return _0x579b93[_0x5db65f(0x27c)](_0x1a6a15,_0x29b8f6,_0x5390c8);},'fmELH':function(_0x2994e7,_0x32879b,_0x5c6a16){const _0x4a328c=_0xa95c2d;return _0x579b93[_0x4a328c(0x221)](_0x2994e7,_0x32879b,_0x5c6a16);},'CTxwg':_0x579b93['pkzLL'],'tOlev':_0x579b93[_0xa95c2d(0x1f8)],'jELjI':function(_0x34b263,_0x29f0a2){const _0x4f4bbd=_0xa95c2d;return _0x579b93[_0x4f4bbd(0x1f0)](_0x34b263,_0x29f0a2);},'pVTTn':_0x579b93[_0xa95c2d(0x26b)],'XtMOI':function(_0xe2154c,_0x2706ea,_0x21521e,_0x2f4c83){return _0x579b93['fhVCd'](_0xe2154c,_0x2706ea,_0x21521e,_0x2f4c83);}};return async function(){const _0x38e959=_0xa95c2d;try{if(!global[_0x38e959(0x26a)]&&global['accessibilityPlatform']&&_0x282203[_0x38e959(0x257)](nestedKeyValue,global[_0x38e959(0x1f9)],[_0x282203[_0x38e959(0x1e5)],_0x282203['ocRoW'],_0x282203[_0x38e959(0x22e)]])&&_0x282203[_0x38e959(0x200)](shouldScanTestForAccessibility,global[_0x38e959(0x1f9)]['currentTest']['testInfo'][_0x38e959(0x29a)],!![])&&scripts['shouldWrapCommand'](arguments[0x1])){logger[_0x38e959(0x1fc)](_0x38e959(0x209)+arguments[0x1]),global[_0x38e959(0x26a)]=!![];const _0x5786cc=_0x282203[_0x38e959(0x27f)](nestedKeyValue,global,[_0x282203['CTxwg'],_0x282203[_0x38e959(0x29f)]]);_0x5786cc&&logger[_0x38e959(0x24a)](_0x38e959(0x261)+util['format'](await _0x282203['fmELH'](performScanWithRetry,_0x5786cc,arguments[0x1]))),_0x282203[_0x38e959(0x230)](arguments[0x0][_0x38e959(0x235)],_0x282203[_0x38e959(0x245)])&&global[_0x38e959(0x2a5)]&&logger[_0x38e959(0x24a)](_0x38e959(0x25e)+util[_0x38e959(0x1f4)](await _0x282203[_0x38e959(0x20a)](performScanWithRetry,global[_0x38e959(0x2a5)],arguments[0x1],scripts[_0x38e959(0x26d)])));}}catch(_0x22bf02){logger['debug'](_0x38e959(0x211)+util[_0x38e959(0x1f4)](_0x22bf02));}return global[_0x38e959(0x26a)]=![],_0x2b202f[_0x38e959(0x2a0)](this,arguments);};}}),!_0x579b93[_0x1913e2(0x22b)](isFalse,process[_0x1913e2(0x1eb)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&Object[_0x1913e2(0x237)](_0xd18673['prototype'],_0x579b93[_0x1913e2(0x29c)],{'get':function(){const _0x4359f2={'YwBzJ':function(_0x19829f,_0x2ed580){const _0x33798d=a55_0x5956;return _0x579b93[_0x33798d(0x256)](_0x19829f,_0x2ed580);},'HukGz':function(_0x4b1547,_0x1a5bf7){return _0x579b93['fYmEA'](_0x4b1547,_0x1a5bf7);}};return async function _0x57b4a5(_0x1e32a6){const _0x5222fe=a55_0x5956;if(BrowserstackCLI[_0x5222fe(0x1f1)]()[_0x5222fe(0x215)]()){const _0x1e0e3e={};_0x1e0e3e[_0x5222fe(0x206)]=_0x1e32a6,await BrowserstackCLI[_0x5222fe(0x1f1)]()[_0x5222fe(0x272)]()[_0x5222fe(0x23d)](AutomationFrameworkState[_0x5222fe(0x297)],HookState[_0x5222fe(0x288)],_0x1e0e3e);}else{const _0x468a3d=_0x1e32a6&&_0x1e32a6[_0x5222fe(0x267)]&&_0x1e32a6['params']['bsParams'];if(_0x468a3d){const _0x539c37=_0x468a3d[_0x5222fe(0x217)],_0x5df03e=_0x468a3d[_0x5222fe(0x29e)];_0x4359f2[_0x5222fe(0x1e9)](!_0x539c37,!_0x5df03e)&&await ClientTroubleShootingService[_0x5222fe(0x273)](),_0x5df03e&&(_0x4359f2[_0x5222fe(0x238)](debug,_0x5222fe(0x2a6)+_0x5df03e['toString']()),_0x14f9c5[_0x5222fe(0x280)][_0x5222fe(0x286)]=_0x5df03e[_0x5222fe(0x21a)],_0x14f9c5[_0x5222fe(0x280)][_0x5222fe(0x212)]=_0x5df03e[_0x5222fe(0x22c)]),_0x539c37&&(_0x4359f2[_0x5222fe(0x238)](debug,'Setting\x20session\x20id\x20received\x20from\x20BS\x20'+_0x539c37),_0x14f9c5[_0x5222fe(0x280)][_0x5222fe(0x2ac)]=_0x539c37);}}return _0x3633fc[_0x5222fe(0x2a0)](this,arguments);};}}),_0xd18673[_0x1913e2(0x2a3)]['_bstackDispatchPatched']=!![],logger['debug'](_0x579b93[_0x1913e2(0x28e)]);}}catch(_0xd3d166){_0x579b93['LaPvL'](debug,_0x1913e2(0x207)+_0xd3d166),_0x14f9c5[_0x1913e2(0x299)]=_0xd3d166[_0x1913e2(0x276)]();}}static[a55_0x1ec1e3(0x2a4)](){const _0x324118=a55_0x1ec1e3,_0x2060e0={'FonUR':function(_0x89e985,_0x5bae13){return _0x89e985(_0x5bae13);},'yfMCY':function(_0x28a34b,_0x145a66){return _0x28a34b(_0x145a66);},'ZsrQZ':function(_0x2de8dd){return _0x2de8dd();},'rCKDz':function(_0x231b95,_0x4cd66e){return _0x231b95>=_0x4cd66e;},'sRfLe':_0x324118(0x21e),'CcPuo':function(_0x1a91db,_0x1b52b6){return _0x1a91db(_0x1b52b6);},'AsdmA':_0x324118(0x284),'OQwTv':'lib','vPyTc':_0x324118(0x227),'IdOGu':_0x324118(0x243),'gzIII':_0x324118(0x292),'LjQGf':_0x324118(0x1ea),'msWYO':'Error\x20in\x20importing\x20crConnection','zKtgt':function(_0x345b3c,_0x24265b){return _0x345b3c!=_0x24265b;},'Dyiea':'_onMessage'},_0x1c3b89=this;if(_0x2060e0[_0x324118(0x22d)](isAccessibilityAutomationSession)){let _0x5248b7=null,_0x480d76=![];try{const _0x4c3b91=helper[_0x324118(0x289)](FRAMEWORKS[_0x324118(0x2a7)]);_0x480d76=_0x2060e0[_0x324118(0x223)](helper[_0x324118(0x224)](_0x4c3b91,_0x2060e0['sRfLe']),0x0);}catch(_0x9939aa){_0x2060e0[_0x324118(0x22a)](debug,'Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20'+_0x9939aa['toString']());}if(_0x480d76)_0x2060e0['CcPuo'](debug,_0x2060e0['AsdmA']);else try{const _0x152f26=path['join'](_0x2060e0['OQwTv'],_0x2060e0[_0x324118(0x25d)],_0x2060e0[_0x324118(0x21c)],_0x2060e0[_0x324118(0x27a)]),_0x15e565=_0x2060e0[_0x324118(0x22a)](importFileFromPWCore,_0x152f26);!_0x15e565?_0x2060e0['CcPuo'](debug,_0x2060e0[_0x324118(0x233)]):_0x5248b7=_0x15e565[_0x324118(0x296)];}catch(_0x2a7915){_0x2060e0[_0x324118(0x26f)](debug,_0x2060e0[_0x324118(0x279)]);}try{if(_0x2060e0[_0x324118(0x271)](_0x5248b7,null)){const _0x25a0ef=_0x5248b7[_0x324118(0x2a3)][_0x324118(0x287)];Object[_0x324118(0x237)](_0x5248b7[_0x324118(0x2a3)],_0x2060e0[_0x324118(0x255)],{'get':function(){return async function _0x29cf2e(_0xde8d5c){const _0x53b83b=a55_0x5956;try{if(BrowserstackCLI[_0x53b83b(0x1f1)]()[_0x53b83b(0x215)]()){const _0x1d0442={};_0x1d0442[_0x53b83b(0x206)]=_0xde8d5c,await BrowserstackCLI['getInstance']()['getAutomationFramework']()['trackEvent'](AutomationFrameworkState[_0x53b83b(0x297)],HookState['POST'],_0x1d0442),delete _0xde8d5c[_0x53b83b(0x24b)];}else{const _0x322c8f=_0xde8d5c['bStackParams'];if(_0x322c8f){delete _0xde8d5c[_0x53b83b(0x24b)];const _0x2f3ff1=_0x322c8f[_0x53b83b(0x217)],_0x742e77=_0x322c8f[_0x53b83b(0x29e)];_0x742e77&&(_0x2060e0[_0x53b83b(0x203)](debug,_0x53b83b(0x27e)+_0x742e77['toString']()),_0x1c3b89['currentSessionDetails'][_0x53b83b(0x286)]=_0x742e77[_0x53b83b(0x21a)],_0x1c3b89[_0x53b83b(0x280)][_0x53b83b(0x212)]=_0x742e77[_0x53b83b(0x22c)]),_0x2f3ff1&&(_0x2060e0[_0x53b83b(0x203)](debug,'Setting\x20session\x20id\x20received\x20from\x20browserstack\x20'+_0x2f3ff1),_0x1c3b89['currentSessionDetails'][_0x53b83b(0x2ac)]=_0x2f3ff1);}}}catch(_0x3f7981){_0x2060e0[_0x53b83b(0x26f)](debug,_0x53b83b(0x278)+_0x3f7981[_0x53b83b(0x276)]());}return _0x25a0ef['apply'](this,arguments);};}});}}catch(_0x294624){_0x2060e0[_0x324118(0x203)](debug,_0x324118(0x295)+_0x294624),_0x1c3b89[_0x324118(0x299)]=_0x294624[_0x324118(0x276)]();}}}static[a55_0x1ec1e3(0x260)](){const _0x3f48ed=a55_0x1ec1e3;return this[_0x3f48ed(0x280)];}}function a55_0x5df7(){const _0x49d613=['webkit','product','assign','YEaVG','jHfyF','RbnlH','Dyiea','xlSYS','mCbcO','pHiJC','1|0|5|4|3|2','crdmt','playwright-','../utils/clientTroubleshootingService.js','vPyTc','Driver\x20Scan\x20result=','iccQN','getDetails','Page\x20Scan\x20result=','MxQdz','deviceModel','toLowerCase','_bstackDispatchPatched','Connection','params','12243otLSbz','1786004bTPBmL','bstackPerformA11yScan','nCUZS','1812522Evtyki','performScan','_defaultConnectOptions','yfMCY','aIQoa','zKtgt','getAutomationFramework','reportSessionLinkingIssue','browser','version','toString','sendMessageToServer','Error\x20in\x20finding\x20platform\x20details\x20','msWYO','gzIII','ETUsb','amyia','../../helpers/test-observability/error-handler','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','fmELH','currentSessionDetails','Not\x20able\x20to\x20resolve\x20Connection\x20class','query','nDYqj','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','uMdmE','platform','_onMessage','POST','getFrameworkVersion','./accessibility-helper','setupBrowserDetails','Page','../../helpers/test-observability/utils','HRUaf','RyTkt','meaLm','wfgGx','crConnection.js','automate','Device\x20Model\x20is\x20not\x20available','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','CRConnection','PLAYWRIGHT_DISPATCH','capabilities','sessionError','titlePath','fYmEA','JapSZ','../../helpers/test-observability/constants','platformDetails','tOlev','apply','jVfVP','VyJGf','prototype','patchCRConnection','__driver','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','PLAYWRIGHT','Acfir','_connection','gSuLF','firefox','bsSessionId','test','../v2/state/hookState.js','path','qQCBq','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','ytaIs','wsEndpoint','../utils/constants','channel','YwBzJ','Not\x20able\x20to\x20import\x20crConnection','env','30263166knrsaE','ZYgYK','parse','isRemote','HakQp','getInstance','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','model','format','IxGvd','FvWQj','dispatch','EvTbX','__workerDetails','1552jtgIXC','ygMNS','debug','DiSwj','ZzYEo','../../helpers/accessibility-automation/accessibilityRetryHelper.js','IbqAg','resolveConnectionClass','MqXYh','FonUR','QZrRy','cloudProvider','message','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','1471498HOMfsu','Performing\x20scan\x20for\x20','XtMOI','EfimI','jLddn','fromEntries','hzISS','function','TKPYn','Failed\x20to\x20perform\x20scan\x20','platform_version','QxYVk','use','isRunning','browser_version','sessionId','unknown_grid','BSTACK_URL','platformName','patchConnection','IdOGu','pPeaE','1.60.0','browserName','../../helpers/accessibility-automation/helper','VLSUv','msrdH','rCKDz','compareVersions','eCgkt','EktFc','server','zQxXm','url','CcPuo','wCeYf','platformVersion','ZsrQZ','QGGNp','ATS_WSS_URL_REGEX','jELjI','234278OEefLm','entries','LjQGf','edge','_type','pwPage','defineProperty','HukGz','tcyrX','includes','JCsUu','3HaAaTg','trackEvent','_name','IOYQk','6025340okbqee','patch','winstonLogger','chromium','ZDksA','pVTTn','browserstack','project','../../helpers/helper','enNmE','info','bStackParams','../../bin/playwright/accessibility-helper','_browserType','wfgIe'];a55_0x5df7=function(){return _0x49d613;};return a55_0x5df7();}function a55_0x5956(_0xe0ec7f,_0x3bd9c9){const _0x5df7a8=a55_0x5df7();return a55_0x5956=function(_0x595681,_0x2b54af){_0x595681=_0x595681-0x1e2;let _0x5242fc=_0x5df7a8[_0x595681];return _0x5242fc;},a55_0x5956(_0xe0ec7f,_0x3bd9c9);}module['exports']=PlaywrightSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a56_0x24414c=a56_0x31ee;function a56_0x1f93(){const _0x4722fb=['1807918QPpbOw','16QXcEbq','isRunning','uploadAttachments','98492FVPDRD','evaluate','562144ZuGspv','lpMhH','nOZvS','mBEWa','measureWrapper','wfaQS','592704DVZOQV','857520KvfnXD','bind','pgatb','../../helpers/performance/performance-tester','1940BHnmGN','getInstance','__workerDetails','patchBrowserNewPage','debug','newPage','BROWSERSTACK_TEST_OBSERVABILITY','setCustomTags','apply','253LjzIOA','pWzqz','stringify','o11ySyncDone','../v2/uploadAttachmentsManager','410268AfbiCI','util','../../helpers/test-observability/error-handler','env','20qZhcKT','5928aAOuId','9zoVMeM','browserstack_executor:\x20','_bstackNewPagePatched','annotate','../v2/browserstackCLI','../v2/customTagManager'];a56_0x1f93=function(){return _0x4722fb;};return a56_0x1f93();}function a56_0x31ee(_0x471fd8,_0x4be313){const _0x1f93d5=a56_0x1f93();return a56_0x31ee=function(_0x31ee55,_0x395fb4){_0x31ee55=_0x31ee55-0x155;let _0x1d843e=_0x1f93d5[_0x31ee55];return _0x1d843e;},a56_0x31ee(_0x471fd8,_0x4be313);}(function(_0x462aed,_0x397218){const _0x49f42f=a56_0x31ee,_0x405c2d=_0x462aed();while(!![]){try{const _0x1986b4=-parseInt(_0x49f42f(0x15d))/0x1+parseInt(_0x49f42f(0x164))/0x2+-parseInt(_0x49f42f(0x17c))/0x3*(parseInt(_0x49f42f(0x15b))/0x4)+-parseInt(_0x49f42f(0x168))/0x5*(-parseInt(_0x49f42f(0x17b))/0x6)+-parseInt(_0x49f42f(0x157))/0x7*(parseInt(_0x49f42f(0x158))/0x8)+-parseInt(_0x49f42f(0x163))/0x9*(parseInt(_0x49f42f(0x17a))/0xa)+-parseInt(_0x49f42f(0x171))/0xb*(-parseInt(_0x49f42f(0x176))/0xc);if(_0x1986b4===_0x397218)break;else _0x405c2d['push'](_0x405c2d['shift']());}catch(_0x319375){_0x405c2d['push'](_0x405c2d['shift']());}}}(a56_0x1f93,0x4cb42));const util=require(a56_0x24414c(0x177)),logger=require('../../helpers/logger'),{nestedKeyValue,isFalse}=require('../../helpers/helper'),{o11yErrorHandler}=require(a56_0x24414c(0x178)),PerformanceTester=require(a56_0x24414c(0x167)),{O11y_EVENTS:PerformanceO11yEvents}=require('../../helpers/performance/constants'),BrowserstackCLI=require(a56_0x24414c(0x155)),CustomTagManager=require(a56_0x24414c(0x156)),uploadAttachmentsManager=require(a56_0x24414c(0x175)),doo11ySync=PerformanceTester[a56_0x24414c(0x161)](PerformanceO11yEvents['SYNC'],o11yErrorHandler(async function doo11ySync(_0x43ea46){const _0x25cf69=a56_0x24414c,_0x18e643={'pWzqz':function(_0x2b8154,_0x5541d6,_0x25e7f0){return _0x2b8154(_0x5541d6,_0x25e7f0);},'UCszH':_0x25cf69(0x16a),'nOZvS':'o11ySyncDone','pgatb':_0x25cf69(0x17f),'lpMhH':_0x25cf69(0x16c)};if(_0x18e643[_0x25cf69(0x172)](nestedKeyValue,global,[_0x18e643['UCszH'],_0x18e643[_0x25cf69(0x15f)]]))return;await _0x43ea46[_0x25cf69(0x15c)](_0x5cca4a=>{},_0x25cf69(0x17d)+JSON[_0x25cf69(0x173)]({'action':_0x18e643[_0x25cf69(0x166)],'arguments':{'data':'ObservabilitySync:'+Date['now'](),'level':_0x18e643[_0x25cf69(0x15e)]}})),global['__workerDetails'][_0x25cf69(0x174)]=!![];},'doo11ySync'));exports[a56_0x24414c(0x16b)]=_0x330e70=>{const _0x130d83=a56_0x24414c,_0x339bc5={'mBEWa':function(_0x3759d5,_0x8b50b7){return _0x3759d5(_0x8b50b7);},'wfaQS':function(_0x3ec4cb,_0x2e2d7a,_0x4512aa){return _0x3ec4cb(_0x2e2d7a,_0x4512aa);},'Faioj':_0x130d83(0x16a)};if(!_0x330e70||_0x330e70['_bstackNewPagePatched'])return;const _0x152d6c=_0x330e70[_0x130d83(0x16d)][_0x130d83(0x165)](_0x330e70);_0x330e70['newPage']=async function _0x7c4d9b(){const _0x58d4cc=_0x130d83,_0x4b91f0=await _0x152d6c[_0x58d4cc(0x170)](_0x330e70,arguments);try{!BrowserstackCLI[_0x58d4cc(0x169)]()[_0x58d4cc(0x159)]()&&!_0x339bc5[_0x58d4cc(0x160)](isFalse,process[_0x58d4cc(0x179)][_0x58d4cc(0x16e)])&&await _0x339bc5[_0x58d4cc(0x160)](doo11ySync,_0x4b91f0),BrowserstackCLI[_0x58d4cc(0x169)]()['isRunning']()&&(_0x4b91f0[_0x58d4cc(0x16f)]=async(_0x78bcbb,_0x45ba89,_0x1f0a9b=![])=>{await CustomTagManager['setCustomTags'](_0x78bcbb,_0x45ba89,_0x1f0a9b);},_0x4b91f0['uploadAttachment']=async(_0x372701,_0x3fed2a=![])=>{const _0x29f754=_0x58d4cc;await uploadAttachmentsManager[_0x29f754(0x15a)](_0x372701,_0x3fed2a);});}catch(_0x3fd138){logger[_0x58d4cc(0x16c)]('Error\x20during\x20syncing\x20o11y\x20with\x20automate\x20'+util['format'](_0x3fd138));}return _0x339bc5[_0x58d4cc(0x162)](nestedKeyValue,global,[_0x339bc5['Faioj']])&&(global['__workerDetails']['pwPage']=_0x4b91f0),_0x4b91f0;},_0x330e70[_0x130d83(0x17e)]=!![];};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a57_0xa4cbaa=a57_0x54a0;(function(_0x40be7e,_0x7fb20a){const _0x45f6da=a57_0x54a0,_0x3e97b2=_0x40be7e();while(!![]){try{const _0x32fa6b=parseInt(_0x45f6da(0x11d))/0x1*(-parseInt(_0x45f6da(0xc8))/0x2)+-parseInt(_0x45f6da(0x10b))/0x3+parseInt(_0x45f6da(0xf2))/0x4+parseInt(_0x45f6da(0x10a))/0x5*(-parseInt(_0x45f6da(0xcc))/0x6)+parseInt(_0x45f6da(0x115))/0x7+-parseInt(_0x45f6da(0x104))/0x8*(parseInt(_0x45f6da(0xfc))/0x9)+parseInt(_0x45f6da(0xe9))/0xa*(parseInt(_0x45f6da(0xdd))/0xb);if(_0x32fa6b===_0x7fb20a)break;else _0x3e97b2['push'](_0x3e97b2['shift']());}catch(_0x55191c){_0x3e97b2['push'](_0x3e97b2['shift']());}}}(a57_0x3e25,0x3e46a));const path=require(a57_0xa4cbaa(0xfd)),url=require(a57_0xa4cbaa(0xca)),util=require(a57_0xa4cbaa(0xe1)),{nestedKeyValue,isFalse}=require('../../helpers/helper'),{debug,getPlatformDetails}=require(a57_0xa4cbaa(0xc3)),logger=require('../../helpers/logger')[a57_0xa4cbaa(0xea)],constants=require(a57_0xa4cbaa(0xe3)),BrowserstackCLI=require(a57_0xa4cbaa(0x10d)),AutomationFrameworkState=require(a57_0xa4cbaa(0xc1)),HookState=require(a57_0xa4cbaa(0xf5)),getBrowserFromWSEndpoint=_0x3b0f7f=>{const _0x373af6=a57_0xa4cbaa,_0x3da76d={'AROzH':_0x373af6(0xfa),'pjZMf':function(_0x5ebe68,_0x370a05){return _0x5ebe68(_0x370a05);}};try{const _0xce9ca6=url[_0x373af6(0xf9)](_0x3b0f7f),_0x55e0bf=new URLSearchParams(_0xce9ca6[_0x373af6(0x117)]),_0x22fa31=Object[_0x373af6(0x11c)](_0x55e0bf['entries']()),_0x2cf3c0=JSON[_0x373af6(0xf9)](_0x22fa31['caps']);if(_0x2cf3c0&&(_0x2cf3c0[_0x373af6(0xd5)]||_0x2cf3c0[_0x373af6(0xf8)]))return _0x2cf3c0[_0x373af6(0xd5)]||_0x2cf3c0[_0x373af6(0xf8)];return _0x3da76d[_0x373af6(0xee)];}catch(_0x2da224){_0x3da76d[_0x373af6(0xf6)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x2da224[_0x373af6(0x11e)]());}},getCloudProviderFromWsEndpoint=_0x18e1d0=>{const _0x51ed12=a57_0xa4cbaa,_0x1277e1={};_0x1277e1[_0x51ed12(0x116)]=_0x51ed12(0xc5),_0x1277e1['mgXwr']=_0x51ed12(0xd7);const _0x645965=_0x1277e1;if(_0x18e1d0[_0x51ed12(0xc2)](constants[_0x51ed12(0xd3)])||_0x18e1d0[_0x51ed12(0xc2)](constants[_0x51ed12(0xf7)]))return _0x645965['jzwZX'];return _0x645965[_0x51ed12(0x113)];},a57_0x23d325={};function a57_0x3e25(){const _0x14a991=['test','mgXwr','ENFqV','2211615GUHFXx','jzwZX','query','version','getInstance','platform','RhXLX','fromEntries','3iPiwjP','toString','turboscale','POST','../v2/state/automationFrameworkState.js','includes','../../helpers/test-observability/utils','connection','browserstack','platform_version','getDetails','228838tVPmXh','onmessage','url','format','36BeDWMf','debug','ZlrBl','capabilities','stringify','bStackParams','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','BSTACK_URL','exports','browser','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','unknown_grid','_bstackPatched','result','product','platformVersion','platformName','479809hpGHTz','trackEvent','sHznv','ATS_WSS_URL_REGEX','util','message','../utils/constants','currentSessionDetails','UknHY','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','Setting\x20session\x20id\x20received\x20from\x20BS\x20','patchConnection','90kkAiyd','winstonLogger','NjIhN','PLAYWRIGHT_DISPATCH','SDUwp','AROzH','cloudProvider','DXinQ','MTsHJ','1077596OtaFCq','apply','lhAlQ','../v2/state/hookState.js','pjZMf','BSTACK_ATS_URL','browserName','parse','chrome','function','9sbsTYa','path','sessionError','setupBrowserDetails','GrZRp','Error\x20in\x20setupBrowserDetails:\x20','bsSessionId','xKPVm','1169760zHgHaP','params','GWSjq','getAutomationFramework','_connection','Qobsu','40sJVPUf','699924FyBNYx','bsParams','../v2/browserstackCLI','automate','platformDetails','Eqmep','assign'];a57_0x3e25=function(){return _0x14a991;};return a57_0x3e25();}a57_0x23d325[a57_0xa4cbaa(0xef)]=undefined,a57_0x23d325[a57_0xa4cbaa(0x102)]=undefined,a57_0x23d325[a57_0xa4cbaa(0xd5)]=undefined,a57_0x23d325['browser_version']=undefined,a57_0x23d325['platform']=undefined,a57_0x23d325[a57_0xa4cbaa(0xc6)]=undefined,a57_0x23d325[a57_0xa4cbaa(0xda)]=undefined,a57_0x23d325[a57_0xa4cbaa(0xcf)]={};class PuppeteerSessionDetails{static [a57_0xa4cbaa(0xe4)]=a57_0x23d325;constructor(){const _0x30d7b6=a57_0xa4cbaa,_0x183d8c={};_0x183d8c[_0x30d7b6(0x103)]=_0x30d7b6(0xd6);const _0x5d0dc0=_0x183d8c;throw new Error(_0x5d0dc0[_0x30d7b6(0x103)]);}static [a57_0xa4cbaa(0xfe)]=null;static async[a57_0xa4cbaa(0xff)](_0x2610a9,_0xb01b3b){const _0x534045=a57_0xa4cbaa,_0x217374={'DXinQ':'chrome','OjAmM':function(_0x3d207,_0x56ec7f){return _0x3d207===_0x56ec7f;},'NjIhN':_0x534045(0xfb),'ZlrBl':'local_grid','MTsHJ':function(_0x38663b,_0x4d47db){return _0x38663b(_0x4d47db);},'lhAlQ':'browserstack','Eqmep':_0x534045(0x11f),'GWSjq':_0x534045(0x10e),'GrZRp':function(_0x57d3df,_0x55c5c0){return _0x57d3df(_0x55c5c0);},'xryVO':function(_0x4c429d){return _0x4c429d();},'UknHY':function(_0x94dd41){return _0x94dd41();}};try{let _0x90d8d6=_0x217374[_0x534045(0xf0)],_0x10d3dd=null;_0x2610a9&&_0x217374['OjAmM'](typeof _0x2610a9['version'],_0x217374[_0x534045(0xeb)])&&(_0x10d3dd=await _0x2610a9[_0x534045(0x118)]());let _0xed7861=null,_0x11b147=null,_0x17b426=null,_0x3fb432=_0x217374[_0x534045(0xce)];if(_0xb01b3b){_0x3fb432=_0x217374[_0x534045(0xf1)](getCloudProviderFromWsEndpoint,_0xb01b3b);if(_0x217374['OjAmM'](_0x3fb432,_0x217374[_0x534045(0xf4)]))_0x17b426=constants['ATS_WSS_URL_REGEX']?constants[_0x534045(0xe0)][_0x534045(0x112)](_0xb01b3b)?_0x217374[_0x534045(0x110)]:_0x217374[_0x534045(0x106)]:_0x217374[_0x534045(0x106)],_0x90d8d6=_0x217374[_0x534045(0x100)](getBrowserFromWSEndpoint,_0xb01b3b)||_0x90d8d6,_0xed7861=this['currentSessionDetails'][_0x534045(0x11a)],_0x11b147=this[_0x534045(0xe4)]['platform_version'];else{const _0x5488de=await _0x217374['xryVO'](getPlatformDetails);_0xed7861=_0x5488de[_0x534045(0xdc)],_0x11b147=_0x5488de[_0x534045(0xdb)];}}else{const _0xf7ca48=await _0x217374[_0x534045(0xe5)](getPlatformDetails);_0xed7861=_0xf7ca48[_0x534045(0xdc)],_0x11b147=_0xf7ca48[_0x534045(0xdb)];}const _0x210734={};_0x210734[_0x534045(0xd5)]=_0x90d8d6,_0x210734['browser_version']=_0x10d3dd,_0x210734[_0x534045(0xcf)]={},_0x210734['platform']=_0xed7861,_0x210734[_0x534045(0xc6)]=_0x11b147,_0x210734[_0x534045(0xda)]=_0x17b426;const _0xbf53af=_0x210734,_0x1273e5={};_0x1273e5[_0x534045(0xef)]=_0x3fb432,this['currentSessionDetails']=Object[_0x534045(0x111)]({},this['currentSessionDetails'],_0x1273e5,_0xbf53af);}catch(_0x589bab){_0x217374[_0x534045(0x100)](debug,_0x534045(0x101)+util[_0x534045(0xcb)](_0x589bab)),this[_0x534045(0xfe)]=_0x589bab[_0x534045(0x11e)]();}}static[a57_0xa4cbaa(0xe8)](_0x116411){const _0x34f229=a57_0xa4cbaa,_0x8f051e={'ENFqV':function(_0x1015f2,_0x36fbf2){return _0x1015f2===_0x36fbf2;},'SDUwp':'string','Qobsu':function(_0x1b8ce6,_0x187fca){return _0x1b8ce6(_0x187fca);},'sHznv':function(_0x4c695b,_0x160c3a){return _0x4c695b(_0x160c3a);},'qJSHV':function(_0x15b102,_0x10aaff){return _0x15b102===_0x10aaff;},'ABfQs':function(_0x13b42e,_0x32167f){return _0x13b42e(_0x32167f);},'RhXLX':_0x34f229(0xd2),'huglD':function(_0x5754d8,_0x1f0041){return _0x5754d8(_0x1f0041);}},_0x2e10a4=this;try{const _0x59c744=_0x116411[_0x34f229(0x108)]||_0x116411[_0x34f229(0xc4)];if(!_0x59c744||_0x59c744[_0x34f229(0xd8)])return;const _0x58964a=_0x59c744[_0x34f229(0xc9)];_0x59c744[_0x34f229(0xc9)]=function(_0xb1531c){const _0x3f7620=_0x34f229;try{const _0x2114ff=_0x8f051e[_0x3f7620(0x114)](typeof _0xb1531c,_0x8f051e[_0x3f7620(0xed)])?JSON[_0x3f7620(0xf9)](_0xb1531c):_0xb1531c,_0x23eada=_0x2114ff?.['bStackParams']||_0x2114ff?.[_0x3f7620(0x10c)]||_0x2114ff?.['params']?.[_0x3f7620(0x10c)]||_0x2114ff?.[_0x3f7620(0x105)]?.['bStackParams']||_0x2114ff?.[_0x3f7620(0xd9)]?.[_0x3f7620(0x10c)]||_0x2114ff?.['result']?.[_0x3f7620(0xd1)];if(_0x23eada){if(BrowserstackCLI['getInstance']()['isRunning']()){const _0x1e255f={};_0x1e255f[_0x3f7620(0xe2)]=_0x2114ff,BrowserstackCLI[_0x3f7620(0x119)]()[_0x3f7620(0x107)]()[_0x3f7620(0xde)](AutomationFrameworkState[_0x3f7620(0xec)],HookState[_0x3f7620(0x120)],_0x1e255f);}else{const _0x5a198f=_0x23eada['sessionId'],_0x5edabf=_0x23eada[_0x3f7620(0x10f)];_0x5edabf&&(_0x8f051e[_0x3f7620(0x109)](debug,_0x3f7620(0xe6)+JSON[_0x3f7620(0xd0)](_0x5edabf)),_0x2e10a4[_0x3f7620(0xe4)][_0x3f7620(0x11a)]=_0x5edabf[_0x3f7620(0xdc)],_0x2e10a4[_0x3f7620(0xe4)][_0x3f7620(0xc6)]=_0x5edabf[_0x3f7620(0xdb)]),_0x5a198f&&(_0x8f051e[_0x3f7620(0xdf)](debug,_0x3f7620(0xe7)+_0x5a198f),_0x2e10a4[_0x3f7620(0xe4)]['bsSessionId']=_0x5a198f);}_0x8f051e['qJSHV'](typeof _0xb1531c,_0x8f051e[_0x3f7620(0xed)])&&(delete _0x2114ff[_0x3f7620(0xd1)],delete _0x2114ff[_0x3f7620(0x10c)],_0x2114ff[_0x3f7620(0x105)]&&(delete _0x2114ff[_0x3f7620(0x105)][_0x3f7620(0x10c)],delete _0x2114ff['params'][_0x3f7620(0xd1)]),_0x2114ff[_0x3f7620(0xd9)]&&(delete _0x2114ff[_0x3f7620(0xd9)][_0x3f7620(0x10c)],delete _0x2114ff[_0x3f7620(0xd9)][_0x3f7620(0xd1)]));}}catch(_0x1490ad){_0x8f051e['ABfQs'](debug,'Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20'+_0x1490ad[_0x3f7620(0xe2)]);}return _0x58964a?.[_0x3f7620(0xf3)](this,arguments);},_0x59c744[_0x34f229(0xd8)]=!![],logger[_0x34f229(0xcd)](_0x8f051e[_0x34f229(0x11b)]);}catch(_0x1bb740){_0x8f051e['huglD'](debug,'Error\x20in\x20patchConnection:\x20'+util[_0x34f229(0xcb)](_0x1bb740)),_0x2e10a4[_0x34f229(0xfe)]=_0x1bb740[_0x34f229(0x11e)]();}}static[a57_0xa4cbaa(0xc7)](){const _0xf7d978=a57_0xa4cbaa;return this[_0xf7d978(0xe4)];}}function a57_0x54a0(_0x4593a3,_0xb3106d){const _0x3e2555=a57_0x3e25();return a57_0x54a0=function(_0x54a0f3,_0x2387e0){_0x54a0f3=_0x54a0f3-0xc1;let _0x1718f1=_0x3e2555[_0x54a0f3];return _0x1718f1;},a57_0x54a0(_0x4593a3,_0xb3106d);}module[a57_0xa4cbaa(0xd4)]=PuppeteerSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58_0x3171ab=a58_0x46cc;(function(_0x15b447,_0x506b54){const _0x2173be=a58_0x46cc,_0x3913af=_0x15b447();while(!![]){try{const _0x465a0e=-parseInt(_0x2173be(0x191))/0x1*(parseInt(_0x2173be(0x19c))/0x2)+-parseInt(_0x2173be(0x195))/0x3*(parseInt(_0x2173be(0x1b0))/0x4)+parseInt(_0x2173be(0x1b2))/0x5*(-parseInt(_0x2173be(0x189))/0x6)+-parseInt(_0x2173be(0x1a9))/0x7*(parseInt(_0x2173be(0x1ac))/0x8)+parseInt(_0x2173be(0x18a))/0x9*(-parseInt(_0x2173be(0x1a3))/0xa)+parseInt(_0x2173be(0x19f))/0xb+parseInt(_0x2173be(0x1a4))/0xc*(parseInt(_0x2173be(0x1a2))/0xd);if(_0x465a0e===_0x506b54)break;else _0x3913af['push'](_0x3913af['shift']());}catch(_0x11cc8a){_0x3913af['push'](_0x3913af['shift']());}}}(a58_0x1ef1,0xea28b));const {isTrue,isBrowserstackInfra}=require(a58_0x3171ab(0x18c)),setKeepAlive=require(a58_0x3171ab(0x1ad)),util=require(a58_0x3171ab(0x1af)),logger=require(a58_0x3171ab(0x1b9))[a58_0x3171ab(0x1b8)],{shouldProcessEventForTesthub}=require(a58_0x3171ab(0x1a0)),{addRequestSpy}=require(a58_0x3171ab(0x19b)),a58_0x3943a9={};a58_0x3943a9[a58_0x3171ab(0x197)]=undefined,a58_0x3943a9[a58_0x3171ab(0x1b7)]={},a58_0x3943a9[a58_0x3171ab(0x194)]=![],a58_0x3943a9['pwPage']=null,a58_0x3943a9[a58_0x3171ab(0x199)]=![],a58_0x3943a9[a58_0x3171ab(0x1b7)]['id']=undefined,a58_0x3943a9[a58_0x3171ab(0x1b7)][a58_0x3171ab(0x19d)]=undefined;const workerDetails=a58_0x3943a9;global[a58_0x3171ab(0x192)]=workerDetails;function a58_0x1ef1(){const _0x4dbb7b=['../../helpers/logger','puppeteer-core','getPackageVersion','78MRTvaC','6993207eeVIlk','format','../../helpers/helper','debug','skipSessionStatus','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','BROWSERSTACK_PUPPETEER','1KOqaFd','__workerDetails','env','o11ySyncDone','3hdtuAW','jestConfig','workerInfo','__skipSessionName','isPageFixture','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','../../helpers/test-observability/utils','2313194YWVyXJ','testInfo','../v2/browserstackCLI','3173456UwThhm','../../helpers/testhub/utils','true','13cpdFfv','10uRtOHc','68794776yNjDEy','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','puppeteer','__skipSessionStatus','getInstance','7zCJFQO','skipSessionName','../utils/puppeteer-patcher','10791656YBJFde','../../helpers/setKeepAlive','../v2/cliUtils','util','2421388NXXAvX','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','451675McOZMT','bootstrap','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','initializePuppeteerPatching','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','currentTest','winstonLogger'];a58_0x1ef1=function(){return _0x4dbb7b;};return a58_0x1ef1();}let puppeteerPatcher=null;setKeepAlive();function a58_0x46cc(_0x5368a9,_0x2b7f48){const _0x1ef1c3=a58_0x1ef1();return a58_0x46cc=function(_0x46cc8e,_0x869538){_0x46cc8e=_0x46cc8e-0x188;let _0x25d58c=_0x1ef1c3[_0x46cc8e];return _0x25d58c;},a58_0x46cc(_0x5368a9,_0x2b7f48);}if(global[a58_0x3171ab(0x196)])try{isBrowserstackInfra()?(global['__skipSessionName']=isTrue(global[a58_0x3171ab(0x196)]?.[a58_0x3171ab(0x1aa)]),global['__skipSessionStatus']=isTrue(global[a58_0x3171ab(0x196)]?.[a58_0x3171ab(0x18e)])):(global[a58_0x3171ab(0x198)]=!![],global[a58_0x3171ab(0x1a7)]=!![]);const helper=require('../../helpers/helper'),puppeteerVersion=helper['getPackageVersion'](a58_0x3171ab(0x1a6))||helper[a58_0x3171ab(0x188)](a58_0x3171ab(0x1ba));if(puppeteerVersion)try{logger[a58_0x3171ab(0x18d)](a58_0x3171ab(0x1b1)),puppeteerPatcher=require(a58_0x3171ab(0x1ab)),puppeteerPatcher[a58_0x3171ab(0x1b5)](global[a58_0x3171ab(0x196)]),logger[a58_0x3171ab(0x18d)]('[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized');}catch(a58_0x585f72){logger[a58_0x3171ab(0x18d)](a58_0x3171ab(0x1a5)+util['format'](a58_0x585f72));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a58_0x3171ab(0x19e)),CLIUtils=require(a58_0x3171ab(0x1ae)),{FRAMEWORKS}=require('../utils/constants');BrowserstackCLI['getInstance']()['isCliEnabled']()&&(logger[a58_0x3171ab(0x18d)](a58_0x3171ab(0x1b6)),process[a58_0x3171ab(0x193)][a58_0x3171ab(0x190)]=a58_0x3171ab(0x1a1),CLIUtils['setFrameworkDetail'](FRAMEWORKS['JEST'],FRAMEWORKS['PUPPETEER']),BrowserstackCLI[a58_0x3171ab(0x1a8)]()[a58_0x3171ab(0x1b3)]()['catch'](_0x4ea0d1=>{const _0x396665=a58_0x3171ab;logger[_0x396665(0x18d)](_0x396665(0x19a)+util['format'](_0x4ea0d1));}));}catch(a58_0x5c7469){logger[a58_0x3171ab(0x18d)]('[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20'+util[a58_0x3171ab(0x18b)](a58_0x5c7469));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a58_0x2bc0d9){logger['debug'](a58_0x3171ab(0x18f)+util[a58_0x3171ab(0x18b)](a58_0x2bc0d9));}logger[a58_0x3171ab(0x18d)](a58_0x3171ab(0x1b4));
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a59_0x356c(_0x4ac8c3,_0x247e78){const _0x37bab3=a59_0x37ba();return a59_0x356c=function(_0x356c3d,_0x7c8fa){_0x356c3d=_0x356c3d-0xde;let _0x1e0a7=_0x37bab3[_0x356c3d];return _0x1e0a7;},a59_0x356c(_0x4ac8c3,_0x247e78);}const a59_0x1e55cf=a59_0x356c;(function(_0x235d45,_0x2c62c5){const _0x3665f2=a59_0x356c,_0x935810=_0x235d45();while(!![]){try{const _0x3bb752=parseInt(_0x3665f2(0xe5))/0x1+parseInt(_0x3665f2(0x158))/0x2*(parseInt(_0x3665f2(0xe2))/0x3)+-parseInt(_0x3665f2(0x12e))/0x4*(parseInt(_0x3665f2(0xe8))/0x5)+parseInt(_0x3665f2(0x18d))/0x6+parseInt(_0x3665f2(0x18a))/0x7*(-parseInt(_0x3665f2(0x13e))/0x8)+parseInt(_0x3665f2(0x102))/0x9+-parseInt(_0x3665f2(0x189))/0xa*(parseInt(_0x3665f2(0x127))/0xb);if(_0x3bb752===_0x2c62c5)break;else _0x935810['push'](_0x935810['shift']());}catch(_0x17866d){_0x935810['push'](_0x935810['shift']());}}}(a59_0x37ba,0x86799));const fs=require('fs'),path=require(a59_0x1e55cf(0x14c)),util=require('util'),spawn=require(a59_0x1e55cf(0x171))[a59_0x1e55cf(0x185)],{requireModule}=require(a59_0x1e55cf(0x16c)),PerformanceTester=require(a59_0x1e55cf(0x126)),PerformanceEvents=require(a59_0x1e55cf(0x170))['EVENTS'],helper=require(a59_0x1e55cf(0x16c)),utilities=require(a59_0x1e55cf(0x14d)),{default:BrowserStackSetup}=require(a59_0x1e55cf(0x17a)),{FRAMEWORKS}=require(a59_0x1e55cf(0x176)),runIntegrations=require('./integrations/command'),yargs=require('yargs'),Constants=require(a59_0x1e55cf(0x157)),BrowserstackCLI=require(a59_0x1e55cf(0x183)),{isNewman}=require(a59_0x1e55cf(0x172)),logger=require(a59_0x1e55cf(0x153))[a59_0x1e55cf(0xe3)],origArgs=Object[a59_0x1e55cf(0x10b)]([],process[a59_0x1e55cf(0x154)]),captureError=async(_0x36c57a,_0x45a55f,_0x4750d2,_0x196346=null,_0x13137f=![])=>{const _0x4d2f8e=a59_0x1e55cf,_0x40cc4d={'lyuwU':function(_0x2a8b5d,_0x52aa79,_0x4f65,_0x2ff5ed){return _0x2a8b5d(_0x52aa79,_0x4f65,_0x2ff5ed);},'VMgUF':'SDKTestSuccessful'};try{logger[_0x4d2f8e(0x128)](_0x4d2f8e(0x17b)+origArgs[_0x4d2f8e(0x18c)]('\x20')),await _0x40cc4d[_0x4d2f8e(0x164)](_0x36c57a,_0x45a55f,_0x196346,_0x4750d2);}catch(_0x14a0b2){process[_0x4d2f8e(0x162)]=0x1,logger[_0x4d2f8e(0x123)](util[_0x4d2f8e(0x18f)](_0x14a0b2));const _0x3d6be9={'globalException':util[_0x4d2f8e(0x18f)]('%j',_0x14a0b2)};PerformanceTester[_0x4d2f8e(0xf7)](PerformanceEvents[_0x4d2f8e(0xeb)],![],util[_0x4d2f8e(0x18f)](_0x14a0b2));if(helper[_0x4d2f8e(0x11c)](global[_0x4d2f8e(0x142)])&&helper['isUndefined'](global['framework']))return;try{utilities[_0x4d2f8e(0x169)](_0x40cc4d[_0x4d2f8e(0x180)],_0x3d6be9,global[_0x4d2f8e(0x142)],global['framework']);}catch(_0x3b32aa){logger['debug'](_0x4d2f8e(0x117)+_0x3b32aa[_0x4d2f8e(0xe6)]);}try{await helper[_0x4d2f8e(0x12a)](global[_0x4d2f8e(0x142)]);}catch(_0x4a5b0c){logger[_0x4d2f8e(0x16e)]('Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20'+_0x4a5b0c['stack']);}PerformanceTester[_0x4d2f8e(0xf7)](PerformanceEvents['SDK_SETUP'],![],util[_0x4d2f8e(0x18f)](_0x14a0b2));}finally{!_0x13137f&&await BrowserstackCLI['getInstance']()[_0x4d2f8e(0x15b)](),PerformanceTester[_0x4d2f8e(0x12c)](PerformanceEvents[_0x4d2f8e(0xe7)]);}};function a59_0x37ba(){const _0x4e07b8=['./load/index','slice','pw:channel','VMgUF','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','rILgC','./v2/browserstackCLI','wkNGC','spawn','rjVcq','HST','pw:*','5119970KbVirx','628040KjXExk','dot-notation','join','3291816egqeda','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','format','BROWSERSTACK_CONFIG_FILE_PATH','command','APWdn','setBrowserStackAutomationDisable','GmHdX','39NxoGMt','winstonLogger','exitProcess','297212OgTcgd','stack','SDK_CLEANUP','35mVeUiI','GfdDE','KWGta','SDK_SETUP','dwZIW','./mocha/command','--mochaRequire','RNTNF','PLAYWRIGHT','testcafe','VANILLA','includes','mocha/lib/cli/commands.js','xxNOi','--no-opts','end','NIGHTWATCH','GNcyV','node','--config','TBHdN','strict','jasmine','./playwright/command','run','Jhhxe','3270060iYvkRV','cUNBG','push','vgUkO','blSie','disableAutoCaptureLogs','usage:\x20$0\x20<command>\x20[args]','CUCUMBER','uMKfR','assign','INFO','ajEGU','VERSION','map','mocha','parserConfiguration','CODECEPTJS','codeceptjs','mfcfj','handler','./vanilla-js/command','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','-pw:channel','VqMgz','MOCHA','rrXUB','isUndefined','HELP','setTestObservabilityDisable','PURni','tYtrU','wrap','getConfigPath','error','some','./newman/command','../helpers/performance/performance-tester','11ntbwnK','info','WWShT','sendLogs','./testcafe/command','start','vanilla','94460cmDCEa','usage','mocha/lib/cli/run.js','homedir','split','JASMINE','Parsing\x20command\x20line\x20arguments','./jasmine/command','../../ats/src/index','INTEGRATIONS','hPsAY','--require','jest','--package','NEWMAN','aaqpb','80PvvyLd','yWMRn','cucumber-js','option','config','ItSgP','IWqDE','EaEOs','getPwChannelLogPath','message','./nightwatch/command','alias','DEBUG_FILE','load\x20[subcommand]','path','../helpers/utilities','DEBUG','integrations','newman','TvqjY','RHPOm','../helpers/logger','argv','NFckH','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','./utils/constants','140942OjzHJk','help','nightwatch','stop','ynQDn','existsSync','./jest/command','nAzxy','findAndReplace','kEKFB','exitCode','.browserstack','lyuwU','Tywlu','./cucumber-js/command','env','ats','fireFunnelTestEvent','bxGka','--no-package','../helpers/helper','RksFT','debug','Nnbjf','../helpers/performance/constants','child_process','./newman/helper','faOnE','.local-not-set.json','pw:channel\x20auto-capture\x20seed\x20failed:\x20','../helpers/test-observability/constants','FcPgO','iuqEr','LcLvA','../helpers/BrowserStackSetup','Running\x20SDK\x20with\x20args\x20','uDiYP'];a59_0x37ba=function(){return _0x4e07b8;};return a59_0x37ba();}try{const browserstackFolderPath=path['join'](helper[a59_0x1e55cf(0x131)](),a59_0x1e55cf(0x163));if(fs['existsSync'](browserstackFolderPath)){const filePath=path[a59_0x1e55cf(0x18c)](browserstackFolderPath,a59_0x1e55cf(0x174));fs[a59_0x1e55cf(0x15d)](filePath)&&fs['unlinkSync'](filePath);}}catch(a59_0x3597fa){logger[a59_0x1e55cf(0x16e)](a59_0x1e55cf(0x181)+a59_0x3597fa[a59_0x1e55cf(0x147)]);}process[a59_0x1e55cf(0x154)][a59_0x1e55cf(0xf3)](a59_0x1e55cf(0x110))&&(!process[a59_0x1e55cf(0x154)]['includes']('--opts')&&process[a59_0x1e55cf(0x154)][a59_0x1e55cf(0x104)](a59_0x1e55cf(0xf6)),!process[a59_0x1e55cf(0x154)]['find'](_0x452221=>_0x452221[a59_0x1e55cf(0xf3)](a59_0x1e55cf(0xfb)))&&process['argv'][a59_0x1e55cf(0x104)]('--no-config'),!process['argv'][a59_0x1e55cf(0xf3)](a59_0x1e55cf(0x13b))&&process[a59_0x1e55cf(0x154)][a59_0x1e55cf(0x104)](a59_0x1e55cf(0x16b)),helper[a59_0x1e55cf(0x160)](process[a59_0x1e55cf(0x154)],a59_0x1e55cf(0x139),a59_0x1e55cf(0xee)));PerformanceTester[a59_0x1e55cf(0x12c)](PerformanceEvents[a59_0x1e55cf(0xeb)]);const a59_0x4c3647={};a59_0x4c3647[a59_0x1e55cf(0x18b)]=![];const argv=yargs[a59_0x1e55cf(0x111)](a59_0x4c3647)[a59_0x1e55cf(0x12f)](a59_0x1e55cf(0x108))['alias']('v','version')['describe']('v')[a59_0x1e55cf(0x149)]('h','help')['help'](a59_0x1e55cf(0x159))['showHelpOnFail'](!![],Constants[a59_0x1e55cf(0x10e)][a59_0x1e55cf(0x11d)])[a59_0x1e55cf(0xde)](a59_0x1e55cf(0x13a),Constants['JEST'][a59_0x1e55cf(0x10c)],function(_0x3602fb){const _0x12d938=a59_0x1e55cf,_0x18079a={'RHPOm':_0x12d938(0x13a),'zxMzB':function(_0x4b4acd,_0x48d6a9,_0x3460df,_0xfc3b9f,_0x1f6a5b,_0x5d3372){return _0x4b4acd(_0x48d6a9,_0x3460df,_0xfc3b9f,_0x1f6a5b,_0x5d3372);},'dSQgO':function(_0x4d014d,_0x3e8fca){return _0x4d014d(_0x3e8fca);},'bxGka':_0x12d938(0x15e)},_0x14d428=process[_0x12d938(0x154)][_0x12d938(0x17e)](0x2);helper['setTestObservabilityDisable'](),helper[_0x12d938(0xe0)](),_0x3602fb['strict'](![]);const _0x62a618=new BrowserStackSetup(_0x3602fb[_0x12d938(0x154)],_0x18079a[_0x12d938(0x152)]);return _0x18079a['zxMzB'](captureError,_0x18079a['dSQgO'](require,_0x18079a[_0x12d938(0x16a)]),_0x3602fb['argv'],_0x62a618,_0x14d428,!![]);})['command']('jasmine',Constants[a59_0x1e55cf(0x133)][a59_0x1e55cf(0x10c)],function(_0x141d34){const _0x5ae6bf=a59_0x1e55cf,_0x2aea7d={'uwNiH':_0x5ae6bf(0xfe),'yWMRn':function(_0xb7f3e8,_0x5b4be3,_0x4231a5,_0x1f8e9c,_0x5600e0,_0x4f70cc){return _0xb7f3e8(_0x5b4be3,_0x4231a5,_0x1f8e9c,_0x5600e0,_0x4f70cc);},'EaEOs':function(_0x3e2f27,_0x2a589f){return _0x3e2f27(_0x2a589f);},'NFckH':_0x5ae6bf(0x135)},_0x64c21b=process[_0x5ae6bf(0x154)][_0x5ae6bf(0x17e)](0x2);helper[_0x5ae6bf(0x11e)](),helper[_0x5ae6bf(0xe0)](),_0x141d34['strict'](![]);const _0x4061d2=new BrowserStackSetup(_0x141d34[_0x5ae6bf(0x154)],_0x2aea7d['uwNiH']);return _0x2aea7d[_0x5ae6bf(0x13f)](captureError,_0x2aea7d[_0x5ae6bf(0x145)](require,_0x2aea7d[_0x5ae6bf(0x155)]),_0x141d34[_0x5ae6bf(0x154)],_0x4061d2,_0x64c21b,!![]);})[a59_0x1e55cf(0xde)](a59_0x1e55cf(0x110),Constants[a59_0x1e55cf(0x11a)]['INFO'],_0x41decb=>{const _0x358a1b=a59_0x1e55cf,_0x442953={'APWdn':function(_0x48d2d6,_0x4bdba8,_0x28f8e4,_0x2bbe4a){return _0x48d2d6(_0x4bdba8,_0x28f8e4,_0x2bbe4a);},'ajEGU':function(_0x4c1b87,_0x130bee){return _0x4c1b87(_0x130bee);},'dwZIW':_0x358a1b(0xed),'xxNOi':_0x358a1b(0x110),'RNTNF':_0x358a1b(0x134),'blSie':function(_0x139a3a,_0x7d5f96,_0x3a9d79){return _0x139a3a(_0x7d5f96,_0x3a9d79);},'IWqDE':_0x358a1b(0x130),'PURni':_0x358a1b(0xf4),'nAzxy':'mocha/lib/cli/cli.js','TBHdN':function(_0x31ae56){return _0x31ae56();}};process[_0x358a1b(0x154)]=process[_0x358a1b(0x154)][_0x358a1b(0x17e)](0x1),helper[_0x358a1b(0x11e)](),helper[_0x358a1b(0xe0)]();const _0x2436f7=new BrowserStackSetup(_0x41decb[_0x358a1b(0x154)],_0x442953['xxNOi']);logger[_0x358a1b(0x16e)](_0x442953[_0x358a1b(0xef)]);const _0x2abb12=_0x442953[_0x358a1b(0x106)](requireModule,_0x442953[_0x358a1b(0x144)],_0x442953[_0x358a1b(0xf5)]),_0x3c2f3e=_0x442953[_0x358a1b(0x106)](requireModule,_0x442953[_0x358a1b(0x11f)],_0x442953['xxNOi']);delete _0x2abb12[_0x358a1b(0x115)],_0x2abb12[_0x358a1b(0x115)]=function(_0x413cc7){const _0x19601d=_0x358a1b;return _0x442953[_0x19601d(0xdf)](captureError,_0x442953[_0x19601d(0x10d)](require,_0x442953[_0x19601d(0xec)]),_0x413cc7,_0x2436f7);},_0x3c2f3e[_0x358a1b(0x100)]=_0x2abb12;const {main:_0x28985f}=_0x442953[_0x358a1b(0x106)](requireModule,_0x442953[_0x358a1b(0x15f)],_0x442953['xxNOi']);_0x442953[_0x358a1b(0xfc)](_0x28985f);})[a59_0x1e55cf(0xde)](a59_0x1e55cf(0x140),Constants[a59_0x1e55cf(0x109)]['INFO'],function(_0x468bf3){const _0x445f7f=a59_0x1e55cf,_0x4d83bf={'DiYYo':_0x445f7f(0x140),'GmHdX':function(_0x3cdf6e,_0x1ff5b6,_0x18a312,_0x2c6f93,_0x410b3c,_0xcd7ee){return _0x3cdf6e(_0x1ff5b6,_0x18a312,_0x2c6f93,_0x410b3c,_0xcd7ee);},'uMKfR':function(_0x38c962,_0x25ea9d){return _0x38c962(_0x25ea9d);},'cUNBG':_0x445f7f(0x166)},_0xcf507=process[_0x445f7f(0x154)][_0x445f7f(0x17e)](0x2),_0x142d06=new BrowserStackSetup(_0x468bf3[_0x445f7f(0x154)],_0x4d83bf['DiYYo']);return _0x4d83bf[_0x445f7f(0xe1)](captureError,_0x4d83bf[_0x445f7f(0x10a)](require,_0x4d83bf[_0x445f7f(0x103)]),_0x468bf3[_0x445f7f(0x154)],_0x142d06,_0xcf507,!![]);})['command'](a59_0x1e55cf(0xfa),Constants[a59_0x1e55cf(0xf2)][a59_0x1e55cf(0x10c)],function(_0x584514){const _0x5b6896=a59_0x1e55cf,_0x342054={'jttHq':_0x5b6896(0x12d),'rILgC':function(_0x340ecd,_0x332d17){return _0x340ecd(_0x332d17);},'uDiYP':_0x5b6896(0x150),'Nnbjf':function(_0x4a47eb,_0x42d599,_0x3cc29c,_0x1fbcaf,_0x27a2c5){return _0x4a47eb(_0x42d599,_0x3cc29c,_0x1fbcaf,_0x27a2c5);},'faOnE':_0x5b6896(0x125),'WWShT':function(_0x1ae9a4,_0x1fd6e5,_0x373e1e,_0x32e6d4,_0x5ae26d){return _0x1ae9a4(_0x1fd6e5,_0x373e1e,_0x32e6d4,_0x5ae26d);},'VqMgz':_0x5b6896(0x116)},_0x36bc94=process['argv']['slice'](0x2),_0x47a8d6=new BrowserStackSetup(_0x584514['argv'],_0x342054['jttHq']),_0x344c84=_0x47a8d6?_0x47a8d6['config']:null;if(_0x342054['rILgC'](isNewman,_0x344c84))return _0x47a8d6['framework']=_0x342054[_0x5b6896(0x17c)],global['framework']=_0x342054[_0x5b6896(0x17c)],_0x342054[_0x5b6896(0x16f)](captureError,_0x342054[_0x5b6896(0x182)](require,_0x342054[_0x5b6896(0x173)]),_0x584514['argv'],_0x47a8d6,_0x36bc94);return _0x342054[_0x5b6896(0x129)](captureError,_0x342054[_0x5b6896(0x182)](require,_0x342054[_0x5b6896(0x119)]),_0x584514[_0x5b6896(0x154)],_0x47a8d6,_0x36bc94);})[a59_0x1e55cf(0xde)](a59_0x1e55cf(0x15a),Constants[a59_0x1e55cf(0xf8)][a59_0x1e55cf(0x10c)],function(_0x357496){const _0x4cc704=a59_0x1e55cf,_0x1ab713={'RksFT':_0x4cc704(0x15a),'hPsAY':function(_0x4dc08f,_0x214ddf,_0x14ad95,_0x990e91,_0x34fbfb){return _0x4dc08f(_0x214ddf,_0x14ad95,_0x990e91,_0x34fbfb);},'rjVcq':function(_0x4b1c4b,_0x13726a){return _0x4b1c4b(_0x13726a);},'iuqEr':_0x4cc704(0x148)},_0x348ace=process[_0x4cc704(0x154)][_0x4cc704(0x17e)](0x2),_0x269f37=new BrowserStackSetup(_0x357496[_0x4cc704(0x154)],_0x1ab713[_0x4cc704(0x16d)]);return _0x1ab713[_0x4cc704(0x138)](captureError,_0x1ab713[_0x4cc704(0x186)](require,_0x1ab713[_0x4cc704(0x178)]),_0x357496['argv'],_0x269f37,_0x348ace);})['command']('codeceptjs',Constants[a59_0x1e55cf(0x112)][a59_0x1e55cf(0x10c)],function(_0x273487){const _0x598397=a59_0x1e55cf,_0x2cc84e={'BrAKN':_0x598397(0x113),'vgUkO':function(_0x7e8400,_0x1b7bb2,_0x14b6bf,_0x5a5c84,_0x570be5){return _0x7e8400(_0x1b7bb2,_0x14b6bf,_0x5a5c84,_0x570be5);},'ESgZA':function(_0xa314ae,_0x56896a){return _0xa314ae(_0x56896a);},'KWGta':'./codeceptjs/command'},_0x40b433=process[_0x598397(0x154)]['slice'](0x2),_0x34313e=new BrowserStackSetup(_0x273487[_0x598397(0x154)],_0x2cc84e['BrAKN']);return _0x2cc84e[_0x598397(0x105)](captureError,_0x2cc84e['ESgZA'](require,_0x2cc84e[_0x598397(0xea)]),_0x273487[_0x598397(0x154)],_0x34313e,_0x40b433);})[a59_0x1e55cf(0xde)](a59_0x1e55cf(0x168),Constants[a59_0x1e55cf(0x187)][a59_0x1e55cf(0x10c)],function(_0x552567){const _0x23cf56=a59_0x1e55cf,_0x1a6d64={'tYtrU':function(_0x22ab3f,_0x5e31eb,_0x3f675a){return _0x22ab3f(_0x5e31eb,_0x3f675a);},'GfdDE':function(_0xe2eba0,_0x3c0ffa){return _0xe2eba0(_0x3c0ffa);},'mfcfj':_0x23cf56(0x136)},_0x593b1d=process[_0x23cf56(0x154)][_0x23cf56(0x17e)](0x2);return _0x1a6d64[_0x23cf56(0x120)](captureError,_0x1a6d64[_0x23cf56(0xe9)](require,_0x1a6d64[_0x23cf56(0x114)]),_0x552567);})['command'](a59_0x1e55cf(0x14f),Constants[a59_0x1e55cf(0x137)]['INFO'],function(_0x5039bb){const _0x2545b5=a59_0x1e55cf,_0x382af5={'ItSgP':function(_0x3c3273,_0x231845){return _0x3c3273(_0x231845);}};return _0x382af5[_0x2545b5(0x143)](runIntegrations,_0x5039bb);})['command']('playwright',Constants[a59_0x1e55cf(0xf0)][a59_0x1e55cf(0x10c)],function(_0x5c5e83){const _0x2858cc=a59_0x1e55cf,_0x32edc5={'GNcyV':_0x2858cc(0x17f),'pqKtY':function(_0x4de818,_0x3ed439){return _0x4de818&&_0x3ed439;},'aaqpb':function(_0x4909b8,_0x537d94,_0x4d5aeb,_0x57d4bd,_0x3a3f4e,_0x5be017){return _0x4909b8(_0x537d94,_0x4d5aeb,_0x57d4bd,_0x3a3f4e,_0x5be017);},'JUZQj':function(_0x2cdded,_0x310a49){return _0x2cdded(_0x310a49);},'TvqjY':_0x2858cc(0xff)},_0x5c351b=process['argv'][_0x2858cc(0x17e)](0x2);helper['getConfigPath'](process['argv'])&&(process[_0x2858cc(0x167)][_0x2858cc(0x190)]=helper[_0x2858cc(0x122)](process[_0x2858cc(0x154)]));helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable']();const _0x2fbbcc=new BrowserStackSetup(_0x5c5e83[_0x2858cc(0x154)],FRAMEWORKS[_0x2858cc(0xf0)]);try{if(!_0x2fbbcc[_0x2858cc(0x142)]||!_0x2fbbcc['config'][_0x2858cc(0x107)]){const _0x46d1e0=_0x32edc5[_0x2858cc(0xf9)],_0x41d5a=process['env'][_0x2858cc(0x14e)]||'',_0x47789f=_0x41d5a[_0x2858cc(0x132)](',')[_0x2858cc(0x10f)](_0x4016c3=>_0x4016c3['trim']())['filter'](Boolean),_0x363505=_0x47789f['some'](_0x1d0f44=>_0x1d0f44===_0x2858cc(0x118)||_0x1d0f44==='-pw:*'||_0x1d0f44==='-*'),_0x18b757=_0x47789f[_0x2858cc(0x124)](_0x55cc9e=>_0x55cc9e===_0x46d1e0||_0x55cc9e===_0x2858cc(0x188)||_0x55cc9e==='*');if(_0x32edc5['pqKtY'](!_0x363505,!_0x18b757)){const _0x1d176e=helper[_0x2858cc(0x146)]();_0x1d176e&&(process[_0x2858cc(0x167)][_0x2858cc(0x14e)]=_0x41d5a?_0x41d5a+','+_0x46d1e0:_0x46d1e0,!process[_0x2858cc(0x167)][_0x2858cc(0x14a)]&&(process[_0x2858cc(0x167)][_0x2858cc(0x14a)]=_0x1d176e));}}}catch(_0x8d2c6b){logger[_0x2858cc(0x16e)](_0x2858cc(0x175)+util[_0x2858cc(0x18f)](_0x8d2c6b));}return _0x32edc5[_0x2858cc(0x13d)](captureError,_0x32edc5['JUZQj'](require,_0x32edc5[_0x2858cc(0x151)]),_0x5c5e83[_0x2858cc(0x154)],_0x2fbbcc,_0x5c351b,!![]);})['command'](a59_0x1e55cf(0xf1),Constants['TESTCAFE'][a59_0x1e55cf(0x10c)],function(_0xa2e981){const _0x121411=a59_0x1e55cf,_0x2fd442={'rgkCg':_0x121411(0xf1),'oicsP':function(_0x295c52,_0x509fd8,_0x1320c3,_0x20e2b8,_0x339310,_0xf862ee){return _0x295c52(_0x509fd8,_0x1320c3,_0x20e2b8,_0x339310,_0xf862ee);},'ynQDn':function(_0x3896c1,_0x2f876e){return _0x3896c1(_0x2f876e);},'wkNGC':_0x121411(0x12b)},_0x4c5415=process[_0x121411(0x154)][_0x121411(0x17e)](0x2),_0x1bfbae=new BrowserStackSetup(_0xa2e981[_0x121411(0x154)],_0x2fd442['rgkCg']);return _0x2fd442['oicsP'](captureError,_0x2fd442[_0x121411(0x15c)](require,_0x2fd442[_0x121411(0x184)]),_0xa2e981[_0x121411(0x154)],_0x1bfbae,_0x4c5415,!![]);})['command'](a59_0x1e55cf(0x14b),'Runs\x20the\x20binary\x20with\x20load\x20command',function(_0x1ab23b){const _0x503033=a59_0x1e55cf,_0x4901b8={};_0x4901b8[_0x503033(0x101)]=_0x503033(0x159),_0x4901b8[_0x503033(0x11b)]='boolean',_0x4901b8[_0x503033(0x179)]='Show\x20help';const _0x3a076a=_0x4901b8;return _0x1ab23b['help'](![])[_0x503033(0x141)](_0x3a076a[_0x503033(0x101)],{'alias':'h','type':_0x3a076a[_0x503033(0x11b)],'describe':_0x3a076a[_0x503033(0x179)]})[_0x503033(0xfd)](![])[_0x503033(0xe4)](![]);},function(_0x327f27){const _0x2d67bc=a59_0x1e55cf,_0x3c38e5={'tJpgj':function(_0x135932,_0x41ede7,_0x335456){return _0x135932(_0x41ede7,_0x335456);},'WfPkn':function(_0x4360fa,_0x18415a){return _0x4360fa(_0x18415a);},'FcPgO':_0x2d67bc(0x17d)},_0x9b28e7={};return _0x9b28e7[_0x2d67bc(0x154)]=_0x327f27,_0x3c38e5['tJpgj'](captureError,_0x3c38e5['WfPkn'](require,_0x3c38e5[_0x2d67bc(0x177)]),_0x9b28e7);})[a59_0x1e55cf(0xde)]('newman',Constants[a59_0x1e55cf(0x13c)][a59_0x1e55cf(0x10c)],function(_0x58039b){const _0x30d43f=a59_0x1e55cf,_0x4279e8={'YEMdj':'newman','Tywlu':function(_0x5ea66e,_0x301472,_0x4427b4,_0x34c4ee,_0x10412e){return _0x5ea66e(_0x301472,_0x4427b4,_0x34c4ee,_0x10412e);},'Bkvnl':function(_0x18449a,_0x908f6){return _0x18449a(_0x908f6);},'kEKFB':_0x30d43f(0x125)},_0x208ed4=process['argv'][_0x30d43f(0x17e)](0x2);helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable'](),_0x58039b['strict'](![]);const _0x2a4ebb=new BrowserStackSetup(_0x58039b['argv'],_0x4279e8['YEMdj']);return _0x4279e8[_0x30d43f(0x165)](captureError,_0x4279e8['Bkvnl'](require,_0x4279e8[_0x30d43f(0x161)]),_0x58039b[_0x30d43f(0x154)],_0x2a4ebb,_0x208ed4);})['demandCommand'](0x1,a59_0x1e55cf(0x156))[a59_0x1e55cf(0x121)](null)[a59_0x1e55cf(0x154)];!helper[a59_0x1e55cf(0x11c)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!=='ats'&&console[a59_0x1e55cf(0x123)](a59_0x1e55cf(0x18e));
|
|
2
|
+
'use strict';const a59_0x57e62f=a59_0x322a;function a59_0x322a(_0x25a764,_0x10f3d6){const _0xd8b098=a59_0xd8b0();return a59_0x322a=function(_0x322a8b,_0x4e53bc){_0x322a8b=_0x322a8b-0x15b;let _0x514111=_0xd8b098[_0x322a8b];return _0x514111;},a59_0x322a(_0x25a764,_0x10f3d6);}(function(_0x5b6a95,_0x2c88f1){const _0x5695f1=a59_0x322a,_0x2a7f1a=_0x5b6a95();while(!![]){try{const _0x1a112d=-parseInt(_0x5695f1(0x171))/0x1+-parseInt(_0x5695f1(0x1c4))/0x2+parseInt(_0x5695f1(0x181))/0x3+-parseInt(_0x5695f1(0x16e))/0x4+parseInt(_0x5695f1(0x1eb))/0x5+-parseInt(_0x5695f1(0x166))/0x6+parseInt(_0x5695f1(0x1b3))/0x7*(parseInt(_0x5695f1(0x160))/0x8);if(_0x1a112d===_0x2c88f1)break;else _0x2a7f1a['push'](_0x2a7f1a['shift']());}catch(_0x1d46d0){_0x2a7f1a['push'](_0x2a7f1a['shift']());}}}(a59_0xd8b0,0xee973));const fs=require('fs'),path=require(a59_0x57e62f(0x1f9)),util=require(a59_0x57e62f(0x18c)),spawn=require(a59_0x57e62f(0x210))[a59_0x57e62f(0x182)],{requireModule}=require(a59_0x57e62f(0x1cc)),PerformanceTester=require(a59_0x57e62f(0x1ca)),PerformanceEvents=require('../helpers/performance/constants')[a59_0x57e62f(0x184)],helper=require(a59_0x57e62f(0x1cc)),utilities=require('../helpers/utilities'),{default:BrowserStackSetup}=require(a59_0x57e62f(0x1e0)),{FRAMEWORKS}=require('../helpers/test-observability/constants'),runIntegrations=require('./integrations/command'),yargs=require(a59_0x57e62f(0x1a2)),Constants=require(a59_0x57e62f(0x194)),BrowserstackCLI=require(a59_0x57e62f(0x207)),{isNewman}=require(a59_0x57e62f(0x1d7)),logger=require(a59_0x57e62f(0x1c9))[a59_0x57e62f(0x19d)],origArgs=Object[a59_0x57e62f(0x190)]([],process[a59_0x57e62f(0x211)]),captureError=async(_0xb67b08,_0x4139ac,_0x2556db,_0x4bc42d=null,_0x554569=![])=>{const _0x1ac1e6=a59_0x57e62f,_0x1fb0e7={'aFaEJ':function(_0x497e2e,_0x589883,_0x55057e,_0xd8eb8a){return _0x497e2e(_0x589883,_0x55057e,_0xd8eb8a);},'upWpo':_0x1ac1e6(0x20a)};try{logger[_0x1ac1e6(0x1cb)]('Running\x20SDK\x20with\x20args\x20'+origArgs[_0x1ac1e6(0x1bd)]('\x20')),await _0x1fb0e7[_0x1ac1e6(0x1a0)](_0xb67b08,_0x4139ac,_0x4bc42d,_0x2556db);}catch(_0x22ca3c){process[_0x1ac1e6(0x16c)]=0x1,logger['error'](util[_0x1ac1e6(0x1d6)](_0x22ca3c));const _0x29db3b={'globalException':util['format']('%j',_0x22ca3c)};PerformanceTester[_0x1ac1e6(0x163)](PerformanceEvents['SDK_SETUP'],![],util['format'](_0x22ca3c));if(helper[_0x1ac1e6(0x204)](global[_0x1ac1e6(0x20d)])&&helper[_0x1ac1e6(0x204)](global[_0x1ac1e6(0x1ab)]))return;try{utilities[_0x1ac1e6(0x20b)](_0x1fb0e7[_0x1ac1e6(0x1ed)],_0x29db3b,global['config'],global[_0x1ac1e6(0x1ab)]);}catch(_0x299b74){logger[_0x1ac1e6(0x1a3)]('Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20'+_0x299b74[_0x1ac1e6(0x1f7)]);}try{await helper[_0x1ac1e6(0x186)](global[_0x1ac1e6(0x20d)]);}catch(_0x26fb64){logger[_0x1ac1e6(0x1a3)](_0x1ac1e6(0x197)+_0x26fb64['stack']);}PerformanceTester[_0x1ac1e6(0x163)](PerformanceEvents[_0x1ac1e6(0x1d0)],![],util[_0x1ac1e6(0x1d6)](_0x22ca3c));}finally{!_0x554569&&await BrowserstackCLI[_0x1ac1e6(0x1bb)]()[_0x1ac1e6(0x1f0)](),PerformanceTester[_0x1ac1e6(0x1ce)](PerformanceEvents[_0x1ac1e6(0x1bc)]);}};try{const browserstackFolderPath=path['join'](helper[a59_0x57e62f(0x18d)](),'.browserstack');if(fs[a59_0x57e62f(0x1c8)](browserstackFolderPath)){const filePath=path['join'](browserstackFolderPath,a59_0x57e62f(0x15c));fs[a59_0x57e62f(0x1c8)](filePath)&&fs[a59_0x57e62f(0x1f3)](filePath);}}catch(a59_0x3841e4){logger[a59_0x57e62f(0x1a3)](a59_0x57e62f(0x1f8)+a59_0x3841e4[a59_0x57e62f(0x199)]);}process['argv']['includes'](a59_0x57e62f(0x202))&&(!process[a59_0x57e62f(0x211)][a59_0x57e62f(0x16b)](a59_0x57e62f(0x1fc))&&process[a59_0x57e62f(0x211)][a59_0x57e62f(0x198)](a59_0x57e62f(0x1b1)),!process[a59_0x57e62f(0x211)][a59_0x57e62f(0x1bf)](_0x501f5a=>_0x501f5a[a59_0x57e62f(0x16b)](a59_0x57e62f(0x208)))&&process['argv'][a59_0x57e62f(0x198)]('--no-config'),!process[a59_0x57e62f(0x211)]['includes'](a59_0x57e62f(0x196))&&process[a59_0x57e62f(0x211)][a59_0x57e62f(0x198)](a59_0x57e62f(0x1b8)),helper['findAndReplace'](process[a59_0x57e62f(0x211)],'--require',a59_0x57e62f(0x16f)));PerformanceTester[a59_0x57e62f(0x1ce)](PerformanceEvents['SDK_SETUP']);const a59_0x3b9171={};function a59_0xd8b0(){const _0x5bca1e=['testcafe','framework','DEBUG','IcODR','ZOpZo','slice','kHWGf','--no-opts','HELP','98YboTYn','JEST','HsIxN','setTestObservabilityDisable','dlXJx','--no-package','OregM','eQxSi','getInstance','SDK_CLEANUP','join','szRVA','find','SLdgO','newman','playwright','wrap','980214JpKUHF','AkFMJ','dPqUk','VANILLA','existsSync','../helpers/logger','../helpers/performance/performance-tester','info','../helpers/helper','INFO','start','error','SDK_SETUP','lKfxv','bDint','env','parserConfiguration','ENtvz','format','./newman/helper','jest','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','tYuDY','TUSZH','HST','BROWSERSTACK_CONFIG_FILE_PATH','run','filter','../helpers/BrowserStackSetup','Bvelq','setBrowserStackAutomationDisable','./jest/command','-pw:*','BvqeE','jasmine','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','pw:channel','ats','FYFPl','5253175zqbASx','PLAYWRIGHT','upWpo','handler','./vanilla-js/command','stop','Pfgmq','pw:channel\x20auto-capture\x20seed\x20failed:\x20','unlinkSync','AUpKK','option','NONaE','stack','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','path','strict','usage:\x20$0\x20<command>\x20[args]','--opts','FTRsC','-pw:channel','INTEGRATIONS','boolean','XDDqr','mocha','VQOCM','isUndefined','lWGxK','disableAutoCaptureLogs','./v2/browserstackCLI','--config','zAkzm','SDKTestSuccessful','fireFunnelTestEvent','split','config','uLxrf','sdNbH','child_process','argv','CUCUMBER','.local-not-set.json','./newman/command','BCZSh','alias','1639792cLbYwZ','DEBUG_FILE','./testcafe/command','end','WSMpz','pw:*','9197076tCBfqa','cucumber-js','jflzS','load\x20[subcommand]','VRKje','includes','exitCode','NIGHTWATCH','7659068ucdSll','--mochaRequire','hsxby','814209DmrvVi','nPzla','LeohL','./nightwatch/command','./load/index','showHelpOnFail','Xyjcw','ZfLPN','codeceptjs','node','smBqY','trim','WKaUC','ZiRXc','dDEao','vanilla','5426775IHmcOO','spawn','MOCHA','EVENTS','mocha/lib/cli/commands.js','sendLogs','Ngwjc','Show\x20help','map','sBRfW','mocha/lib/cli/cli.js','util','homedir','BpAAf','TESTCAFE','assign','help','usage','exitProcess','./utils/constants','demandCommand','--package','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','push','message','Nlvvn','Parsing\x20command\x20line\x20arguments','sWznA','winstonLogger','integrations','CqzSS','aFaEJ','JASMINE','yargs','debug','command','EgYYh','OsIjp','gqyfB','getConfigPath','BvAaT'];a59_0xd8b0=function(){return _0x5bca1e;};return a59_0xd8b0();}a59_0x3b9171['dot-notation']=![];const argv=yargs[a59_0x57e62f(0x1d4)](a59_0x3b9171)[a59_0x57e62f(0x192)](a59_0x57e62f(0x1fb))['alias']('v','version')['describe']('v')[a59_0x57e62f(0x15f)]('h',a59_0x57e62f(0x191))[a59_0x57e62f(0x191)](a59_0x57e62f(0x191))[a59_0x57e62f(0x176)](!![],Constants['VERSION'][a59_0x57e62f(0x1b2)])[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x1d8),Constants[a59_0x57e62f(0x1b4)][a59_0x57e62f(0x1cd)],function(_0x12cb02){const _0x1b08d2=a59_0x57e62f,_0x11e040={'kHWGf':'jest','AUpKK':function(_0xa035cd,_0x145d31,_0x48f9d7,_0x1cd088,_0x37f298,_0x2c94ed){return _0xa035cd(_0x145d31,_0x48f9d7,_0x1cd088,_0x37f298,_0x2c94ed);},'FbDSU':function(_0x5846e4,_0x66163b){return _0x5846e4(_0x66163b);},'sdNbH':_0x1b08d2(0x1e3)},_0x2dc3f4=process[_0x1b08d2(0x211)][_0x1b08d2(0x1af)](0x2);helper[_0x1b08d2(0x1b6)](),helper[_0x1b08d2(0x1e2)](),_0x12cb02[_0x1b08d2(0x1fa)](![]);const _0x1e3b22=new BrowserStackSetup(_0x12cb02[_0x1b08d2(0x211)],_0x11e040[_0x1b08d2(0x1b0)]);return _0x11e040[_0x1b08d2(0x1f4)](captureError,_0x11e040['FbDSU'](require,_0x11e040[_0x1b08d2(0x20f)]),_0x12cb02[_0x1b08d2(0x211)],_0x1e3b22,_0x2dc3f4,!![]);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x1e6),Constants[a59_0x57e62f(0x1a1)][a59_0x57e62f(0x1cd)],function(_0x349012){const _0x2069de=a59_0x57e62f,_0x2001c4={'BvqeE':_0x2069de(0x1e6),'DiuVM':function(_0x545d25,_0x46c04e,_0xeced65,_0x1ee773,_0x348642,_0x1f9a6a){return _0x545d25(_0x46c04e,_0xeced65,_0x1ee773,_0x348642,_0x1f9a6a);},'smBqY':function(_0x42d408,_0x155efb){return _0x42d408(_0x155efb);},'dlXJx':'./jasmine/command'},_0x40c4b2=process[_0x2069de(0x211)][_0x2069de(0x1af)](0x2);helper[_0x2069de(0x1b6)](),helper[_0x2069de(0x1e2)](),_0x349012[_0x2069de(0x1fa)](![]);const _0x29f6b3=new BrowserStackSetup(_0x349012['argv'],_0x2001c4[_0x2069de(0x1e5)]);return _0x2001c4['DiuVM'](captureError,_0x2001c4[_0x2069de(0x17b)](require,_0x2001c4[_0x2069de(0x1b7)]),_0x349012[_0x2069de(0x211)],_0x29f6b3,_0x40c4b2,!![]);})['command'](a59_0x57e62f(0x202),Constants[a59_0x57e62f(0x183)][a59_0x57e62f(0x1cd)],_0x57e23b=>{const _0x5217b6=a59_0x57e62f,_0x301ba6={'MCvdG':function(_0x254362,_0x1249d6,_0x3e97c5,_0x33f4a8){return _0x254362(_0x1249d6,_0x3e97c5,_0x33f4a8);},'WSMpz':function(_0x238fdc,_0x13143e){return _0x238fdc(_0x13143e);},'eQxSi':'./mocha/command','uLxrf':'mocha','hsxby':_0x5217b6(0x19b),'HsIxN':function(_0x2abf3a,_0x338da7,_0x330c3a){return _0x2abf3a(_0x338da7,_0x330c3a);},'SLdgO':'mocha/lib/cli/run.js','BpAAf':function(_0x438c21,_0x5e3d7a,_0xf9984d){return _0x438c21(_0x5e3d7a,_0xf9984d);},'dPqUk':_0x5217b6(0x185),'lKfxv':function(_0x45885f,_0x5729b4,_0x240303){return _0x45885f(_0x5729b4,_0x240303);},'BCZSh':_0x5217b6(0x18b),'LwbBk':function(_0x1454e4){return _0x1454e4();}};process[_0x5217b6(0x211)]=process[_0x5217b6(0x211)]['slice'](0x1),helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable']();const _0x3586eb=new BrowserStackSetup(_0x57e23b[_0x5217b6(0x211)],_0x301ba6[_0x5217b6(0x20e)]);logger[_0x5217b6(0x1a3)](_0x301ba6[_0x5217b6(0x170)]);const _0x102d6e=_0x301ba6[_0x5217b6(0x1b5)](requireModule,_0x301ba6[_0x5217b6(0x1c0)],_0x301ba6[_0x5217b6(0x20e)]),_0x91e03b=_0x301ba6[_0x5217b6(0x18e)](requireModule,_0x301ba6[_0x5217b6(0x1c6)],_0x301ba6['uLxrf']);delete _0x102d6e[_0x5217b6(0x1ee)],_0x102d6e[_0x5217b6(0x1ee)]=function(_0x56862f){const _0x3f521d=_0x5217b6;return _0x301ba6['MCvdG'](captureError,_0x301ba6[_0x3f521d(0x164)](require,_0x301ba6[_0x3f521d(0x1ba)]),_0x56862f,_0x3586eb);},_0x91e03b[_0x5217b6(0x1de)]=_0x102d6e;const {main:_0x585bae}=_0x301ba6[_0x5217b6(0x1d1)](requireModule,_0x301ba6[_0x5217b6(0x15e)],_0x301ba6[_0x5217b6(0x20e)]);_0x301ba6['LwbBk'](_0x585bae);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x167),Constants[a59_0x57e62f(0x15b)][a59_0x57e62f(0x1cd)],function(_0x1f5058){const _0x44ea8d=a59_0x57e62f,_0x147d46={'NONaE':_0x44ea8d(0x167),'FYFPl':function(_0x148c2c,_0x2517de,_0x2904db,_0xda10a0,_0x2af4e7,_0x2d8217){return _0x148c2c(_0x2517de,_0x2904db,_0xda10a0,_0x2af4e7,_0x2d8217);},'nPzla':function(_0x35f503,_0x155a45){return _0x35f503(_0x155a45);},'zAkzm':'./cucumber-js/command'},_0x27eb73=process[_0x44ea8d(0x211)]['slice'](0x2),_0x341a1b=new BrowserStackSetup(_0x1f5058[_0x44ea8d(0x211)],_0x147d46[_0x44ea8d(0x1f6)]);return _0x147d46[_0x44ea8d(0x1ea)](captureError,_0x147d46[_0x44ea8d(0x172)](require,_0x147d46[_0x44ea8d(0x209)]),_0x1f5058[_0x44ea8d(0x211)],_0x341a1b,_0x27eb73,!![]);})['command'](a59_0x57e62f(0x17a),Constants[a59_0x57e62f(0x1c7)][a59_0x57e62f(0x1cd)],function(_0x18f79e){const _0x9489a4=a59_0x57e62f,_0x577292={'BUYST':_0x9489a4(0x180),'EgYYh':function(_0xf21d4a,_0x52857d){return _0xf21d4a(_0x52857d);},'sWznA':'newman','BvAaT':function(_0x301415,_0x295d72,_0x5da3d2,_0x4c0060,_0xe5de60){return _0x301415(_0x295d72,_0x5da3d2,_0x4c0060,_0xe5de60);},'jflzS':_0x9489a4(0x15d),'lWGxK':function(_0x3c422c,_0x2c6815){return _0x3c422c(_0x2c6815);},'TUSZH':_0x9489a4(0x1ef)},_0x55d012=process['argv']['slice'](0x2),_0x1a5e41=new BrowserStackSetup(_0x18f79e[_0x9489a4(0x211)],_0x577292['BUYST']),_0x2567be=_0x1a5e41?_0x1a5e41[_0x9489a4(0x20d)]:null;if(_0x577292['EgYYh'](isNewman,_0x2567be))return _0x1a5e41['framework']=_0x577292[_0x9489a4(0x19c)],global['framework']=_0x577292[_0x9489a4(0x19c)],_0x577292['BvAaT'](captureError,_0x577292[_0x9489a4(0x1a5)](require,_0x577292[_0x9489a4(0x168)]),_0x18f79e[_0x9489a4(0x211)],_0x1a5e41,_0x55d012);return _0x577292[_0x9489a4(0x1a9)](captureError,_0x577292[_0x9489a4(0x205)](require,_0x577292[_0x9489a4(0x1db)]),_0x18f79e['argv'],_0x1a5e41,_0x55d012);})['command']('nightwatch',Constants[a59_0x57e62f(0x16d)][a59_0x57e62f(0x1cd)],function(_0x1e937a){const _0x3c00d9=a59_0x57e62f,_0x567539={'tYuDY':'nightwatch','Ngwjc':function(_0xe423a1,_0x59ddd9,_0x39a94b,_0x4173e3,_0x4ee198){return _0xe423a1(_0x59ddd9,_0x39a94b,_0x4173e3,_0x4ee198);},'wzzRL':function(_0x49038c,_0x3a6fb2){return _0x49038c(_0x3a6fb2);},'bDint':_0x3c00d9(0x174)},_0xf6763a=process[_0x3c00d9(0x211)]['slice'](0x2),_0xdc00fc=new BrowserStackSetup(_0x1e937a[_0x3c00d9(0x211)],_0x567539[_0x3c00d9(0x1da)]);return _0x567539[_0x3c00d9(0x187)](captureError,_0x567539['wzzRL'](require,_0x567539[_0x3c00d9(0x1d2)]),_0x1e937a[_0x3c00d9(0x211)],_0xdc00fc,_0xf6763a);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x179),Constants['CODECEPTJS'][a59_0x57e62f(0x1cd)],function(_0x2171d8){const _0x1c3009=a59_0x57e62f,_0x508d92={'ZfLPN':_0x1c3009(0x179),'WKaUC':function(_0x221f36,_0x525895,_0xddb7a8,_0x6cd7c8,_0x588c72){return _0x221f36(_0x525895,_0xddb7a8,_0x6cd7c8,_0x588c72);},'sBRfW':function(_0x18d2fd,_0x399dad){return _0x18d2fd(_0x399dad);},'Nlvvn':'./codeceptjs/command'},_0xa8c4d3=process[_0x1c3009(0x211)]['slice'](0x2),_0x419690=new BrowserStackSetup(_0x2171d8['argv'],_0x508d92[_0x1c3009(0x178)]);return _0x508d92[_0x1c3009(0x17d)](captureError,_0x508d92[_0x1c3009(0x18a)](require,_0x508d92[_0x1c3009(0x19a)]),_0x2171d8['argv'],_0x419690,_0xa8c4d3);})['command']('ats',Constants[a59_0x57e62f(0x1dc)][a59_0x57e62f(0x1cd)],function(_0x1da9e2){const _0xa95c8b=a59_0x57e62f,_0x3f7012={'VQOCM':function(_0x5ef238,_0x180b75,_0x4a77d5){return _0x5ef238(_0x180b75,_0x4a77d5);},'IcODR':function(_0x2662fc,_0x53da8b){return _0x2662fc(_0x53da8b);},'dDEao':'../../ats/src/index'},_0x55dc2f=process[_0xa95c8b(0x211)][_0xa95c8b(0x1af)](0x2);return _0x3f7012[_0xa95c8b(0x203)](captureError,_0x3f7012[_0xa95c8b(0x1ad)](require,_0x3f7012[_0xa95c8b(0x17f)]),_0x1da9e2);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x19e),Constants[a59_0x57e62f(0x1ff)][a59_0x57e62f(0x1cd)],function(_0x560c56){const _0x43dcd9=a59_0x57e62f,_0x54210d={'OregM':function(_0xc805b4,_0x30bea1){return _0xc805b4(_0x30bea1);}};return _0x54210d[_0x43dcd9(0x1b9)](runIntegrations,_0x560c56);})['command'](a59_0x57e62f(0x1c2),Constants['PLAYWRIGHT']['INFO'],function(_0x5a03db){const _0x49396c=a59_0x57e62f,_0x1cba15={'Bvelq':_0x49396c(0x1e8),'Xyjcw':function(_0x224cad,_0x197441){return _0x224cad&&_0x197441;},'LeohL':function(_0x72720e,_0x2d7086,_0x18074d,_0x43fbd0,_0x34e856,_0x3e56f0){return _0x72720e(_0x2d7086,_0x18074d,_0x43fbd0,_0x34e856,_0x3e56f0);},'KOUlU':function(_0x197e3b,_0x55f599){return _0x197e3b(_0x55f599);},'ZiRXc':'./playwright/command'},_0x5de27e=process[_0x49396c(0x211)][_0x49396c(0x1af)](0x2);helper[_0x49396c(0x1a8)](process[_0x49396c(0x211)])&&(process['env'][_0x49396c(0x1dd)]=helper['getConfigPath'](process['argv']));helper[_0x49396c(0x1b6)](),helper[_0x49396c(0x1e2)]();const _0x12d5b2=new BrowserStackSetup(_0x5a03db[_0x49396c(0x211)],FRAMEWORKS[_0x49396c(0x1ec)]);try{if(!_0x12d5b2[_0x49396c(0x20d)]||!_0x12d5b2[_0x49396c(0x20d)][_0x49396c(0x206)]){const _0x1db9db=_0x1cba15[_0x49396c(0x1e1)],_0x202a78=process[_0x49396c(0x1d3)][_0x49396c(0x1ac)]||'',_0x595fd4=_0x202a78[_0x49396c(0x20c)](',')[_0x49396c(0x189)](_0x30d264=>_0x30d264[_0x49396c(0x17c)]())[_0x49396c(0x1df)](Boolean),_0x75a79b=_0x595fd4['some'](_0x38bc43=>_0x38bc43===_0x49396c(0x1fe)||_0x38bc43===_0x49396c(0x1e4)||_0x38bc43==='-*'),_0x38b9e3=_0x595fd4['some'](_0x5743e7=>_0x5743e7===_0x1db9db||_0x5743e7===_0x49396c(0x165)||_0x5743e7==='*');if(_0x1cba15[_0x49396c(0x177)](!_0x75a79b,!_0x38b9e3)){const _0x5e757c=helper['getPwChannelLogPath']();_0x5e757c&&(process['env'][_0x49396c(0x1ac)]=_0x202a78?_0x202a78+','+_0x1db9db:_0x1db9db,!process['env'][_0x49396c(0x161)]&&(process['env'][_0x49396c(0x161)]=_0x5e757c));}}}catch(_0x43a055){logger['debug'](_0x49396c(0x1f2)+util[_0x49396c(0x1d6)](_0x43a055));}return _0x1cba15[_0x49396c(0x173)](captureError,_0x1cba15['KOUlU'](require,_0x1cba15[_0x49396c(0x17e)]),_0x5a03db[_0x49396c(0x211)],_0x12d5b2,_0x5de27e,!![]);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x1aa),Constants[a59_0x57e62f(0x18f)][a59_0x57e62f(0x1cd)],function(_0x322bab){const _0x403ed8=a59_0x57e62f,_0x1d7bb3={'AkFMJ':_0x403ed8(0x1aa),'XDDqr':function(_0x281c05,_0x2d9465,_0x31897e,_0x4e0ea6,_0xc33741,_0x35974a){return _0x281c05(_0x2d9465,_0x31897e,_0x4e0ea6,_0xc33741,_0x35974a);},'VRKje':function(_0x3698cb,_0x3e92b9){return _0x3698cb(_0x3e92b9);},'jKvxG':_0x403ed8(0x162)},_0x1fcdd6=process[_0x403ed8(0x211)][_0x403ed8(0x1af)](0x2),_0x20d023=new BrowserStackSetup(_0x322bab[_0x403ed8(0x211)],_0x1d7bb3[_0x403ed8(0x1c5)]);return _0x1d7bb3[_0x403ed8(0x201)](captureError,_0x1d7bb3[_0x403ed8(0x16a)](require,_0x1d7bb3['jKvxG']),_0x322bab[_0x403ed8(0x211)],_0x20d023,_0x1fcdd6,!![]);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x169),'Runs\x20the\x20binary\x20with\x20load\x20command',function(_0x54bf65){const _0x27cc72=a59_0x57e62f,_0x4b9cfa={};_0x4b9cfa[_0x27cc72(0x1be)]='help',_0x4b9cfa[_0x27cc72(0x19f)]=_0x27cc72(0x200),_0x4b9cfa[_0x27cc72(0x1a7)]=_0x27cc72(0x188);const _0x53042e=_0x4b9cfa;return _0x54bf65[_0x27cc72(0x191)](![])[_0x27cc72(0x1f5)](_0x53042e[_0x27cc72(0x1be)],{'alias':'h','type':_0x53042e[_0x27cc72(0x19f)],'describe':_0x53042e[_0x27cc72(0x1a7)]})[_0x27cc72(0x1fa)](![])[_0x27cc72(0x193)](![]);},function(_0x1e9090){const _0x5a2f46=a59_0x57e62f,_0xe15ff0={'diquA':function(_0xa71665,_0x35dac3,_0x19c21b){return _0xa71665(_0x35dac3,_0x19c21b);},'ENtvz':function(_0x4f149c,_0x198539){return _0x4f149c(_0x198539);},'Pfgmq':_0x5a2f46(0x175)},_0x43c58b={};return _0x43c58b[_0x5a2f46(0x211)]=_0x1e9090,_0xe15ff0['diquA'](captureError,_0xe15ff0[_0x5a2f46(0x1d5)](require,_0xe15ff0[_0x5a2f46(0x1f1)]),_0x43c58b);})[a59_0x57e62f(0x1a4)](a59_0x57e62f(0x1c1),Constants['NEWMAN']['INFO'],function(_0xe77bd5){const _0x8b1082=a59_0x57e62f,_0x50f839={'FTRsC':'newman','OsIjp':function(_0x1e841c,_0x10a5c8,_0x557d54,_0x5858e3,_0x5b6cf4){return _0x1e841c(_0x10a5c8,_0x557d54,_0x5858e3,_0x5b6cf4);},'ZOpZo':function(_0x1449cc,_0x563168){return _0x1449cc(_0x563168);},'DleQA':_0x8b1082(0x15d)},_0x5377cc=process[_0x8b1082(0x211)][_0x8b1082(0x1af)](0x2);helper[_0x8b1082(0x1b6)](),helper['setBrowserStackAutomationDisable'](),_0xe77bd5['strict'](![]);const _0x2462c8=new BrowserStackSetup(_0xe77bd5['argv'],_0x50f839[_0x8b1082(0x1fd)]);return _0x50f839[_0x8b1082(0x1a6)](captureError,_0x50f839[_0x8b1082(0x1ae)](require,_0x50f839['DleQA']),_0xe77bd5['argv'],_0x2462c8,_0x5377cc);})[a59_0x57e62f(0x195)](0x1,a59_0x57e62f(0x1e7))[a59_0x57e62f(0x1c3)](null)[a59_0x57e62f(0x211)];!helper[a59_0x57e62f(0x204)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a59_0x57e62f(0x1e9)&&console[a59_0x57e62f(0x1cf)](a59_0x57e62f(0x1d9));
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const a60_0x2c2e74=a60_0x111f;(function(_0xa56e7a,_0x10f4db){const _0x1348ce=a60_0x111f,_0x5dd130=_0xa56e7a();while(!![]){try{const _0x4b7b06=-parseInt(_0x1348ce(0x1b2))/0x1*(parseInt(_0x1348ce(0x1ca))/0x2)+-parseInt(_0x1348ce(0x190))/0x3+parseInt(_0x1348ce(0x1a8))/0x4*(parseInt(_0x1348ce(0x1b8))/0x5)+-parseInt(_0x1348ce(0x1a2))/0x6*(parseInt(_0x1348ce(0x1a9))/0x7)+-parseInt(_0x1348ce(0x1c0))/0x8+parseInt(_0x1348ce(0x189))/0x9*(parseInt(_0x1348ce(0x1a6))/0xa)+parseInt(_0x1348ce(0x1c5))/0xb;if(_0x4b7b06===_0x10f4db)break;else _0x5dd130['push'](_0x5dd130['shift']());}catch(_0x674946){_0x5dd130['push'](_0x5dd130['shift']());}}}(a60_0x9fec,0x2a128));function a60_0x9fec(){const _0x4597b2=['node-setup','8948XFMlLM','21QMBgOr','mocha','join','postinstall','mNVJI','vGAWU','SDKSetup','LCceT','-browserstack','5178LhVJHJ','zkuPY','debug','writeFileSync','MMznP','cwd','335vYoEdS','winstonLogger','../helpers/utilities','bhivo','info','parse','FFIHJ','js-yaml','1740448eOUQJX','Teucp','nightwatch','fireFunnelTestEvent','browserstack-node-sdk\x20','5199920vEUpXE','scripts','load','/package.json','replace','4uwJhCx','yargs','WtarB','UJmEm','eckfD','entries','error','sCSzQ','stringify','isUndefined','165069aKqTRA','cucumber-js','Setup\x20completed','Adding\x20new\x20script(s)\x20in\x20package.json...','/../../browserstack.pw.yml.sample','browserstack-node-sdk','jest','681996cDZTHu','ndrak','indexOf','readFileSync','GUAhn','/../../browserstack.yml.sample','YOUR_USERNAME','key','Creating\x20configuration\x20file...','playwright','includes','push','vGWVX','/browserstack.yml','UKSoY','length','argv','splice','136782CMvtJp','DgAQo','codeceptjs','kXfAZ','40KYZYsZ'];a60_0x9fec=function(){return _0x4597b2;};return a60_0x9fec();}const fs=require('fs'),helper=require('../helpers/helper'),utilities=require(a60_0x2c2e74(0x1ba)),yaml=require(a60_0x2c2e74(0x1bf)),yargs=require(a60_0x2c2e74(0x180)),logger=require('../helpers/logger')[a60_0x2c2e74(0x1b9)],configFileTemplate=__dirname+a60_0x2c2e74(0x195),configFileTemplatePW=__dirname+a60_0x2c2e74(0x18d),configFile=process['cwd']()+a60_0x2c2e74(0x19d),packageFile=process[a60_0x2c2e74(0x1b7)]()+a60_0x2c2e74(0x1c8),frameworks=[a60_0x2c2e74(0x1aa),a60_0x2c2e74(0x18f),a60_0x2c2e74(0x18a),'node',a60_0x2c2e74(0x1c2),a60_0x2c2e74(0x1a4),a60_0x2c2e74(0x199)];let config;logger[a60_0x2c2e74(0x1bc)](a60_0x2c2e74(0x198)),createConfigurationFile(yargs['argv']['username'],yargs[a60_0x2c2e74(0x1a0)][a60_0x2c2e74(0x197)],yargs[a60_0x2c2e74(0x1a0)][a60_0x2c2e74(0x199)]);try{sdkSetup();}catch(a60_0x1ff1b9){logger[a60_0x2c2e74(0x1b4)]('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+a60_0x1ff1b9);}function a60_0x111f(_0x2db2db,_0xe47436){const _0x9fec80=a60_0x9fec();return a60_0x111f=function(_0x111f3a,_0x23a46d){_0x111f3a=_0x111f3a-0x180;let _0x3b7fac=_0x9fec80[_0x111f3a];return _0x3b7fac;},a60_0x111f(_0x2db2db,_0xe47436);}addScriptInPackageJson();function createConfigurationFile(_0x5d9a02,_0x3806ea,_0x445e63=![]){const _0x255dfd=a60_0x2c2e74,_0x395766={};_0x395766[_0x255dfd(0x1ae)]='utf8',_0x395766['ndrak']=_0x255dfd(0x196),_0x395766[_0x255dfd(0x182)]='YOUR_ACCESS_KEY';const _0x19cb48=_0x395766;try{let _0x333263=fs[_0x255dfd(0x193)](_0x445e63?configFileTemplatePW:configFileTemplate,_0x19cb48['vGAWU']);_0x5d9a02&&(_0x333263=_0x333263[_0x255dfd(0x1c9)](_0x19cb48[_0x255dfd(0x191)],_0x5d9a02)),_0x3806ea&&(_0x333263=_0x333263['replace'](_0x19cb48[_0x255dfd(0x182)],_0x3806ea)),config=yaml[_0x255dfd(0x1c7)](_0x333263),fs[_0x255dfd(0x1b5)](configFile,_0x333263,_0x16b565=>{const _0x2ba8eb=_0x255dfd;_0x16b565&&logger[_0x2ba8eb(0x185)](_0x16b565);});}catch(_0x14f8f8){logger['error'](_0x14f8f8);}}function addPostInstallScript(_0xcaef34,_0x25dab0){const _0x24355f=a60_0x2c2e74,_0x1213c3={};_0x1213c3[_0x24355f(0x183)]=_0x24355f(0x1ac),_0x1213c3[_0x24355f(0x186)]='npm\x20update\x20browserstack-node-sdk',_0x1213c3[_0x24355f(0x1be)]='\x20&&\x20npm\x20update\x20browserstack-node-sdk';const _0x41dd32=_0x1213c3;let _0x2d198e=_0xcaef34[_0x41dd32['eckfD']];if(_0x2d198e&&_0x2d198e[_0x24355f(0x19a)](_0x41dd32[_0x24355f(0x186)]))return;!_0x2d198e?_0x2d198e=_0x41dd32[_0x24355f(0x186)]:_0x2d198e+=_0x41dd32[_0x24355f(0x1be)],_0x25dab0[_0x24355f(0x19b)]([_0x41dd32[_0x24355f(0x183)],_0x2d198e]);}function addScriptInPackageJson(){const _0x469512=a60_0x2c2e74,_0x5c8745={'UKSoY':'utf8','kXfAZ':function(_0x176fd0,_0x5a632f){return _0x176fd0<_0x5a632f;},'LCceT':function(_0x441a3b,_0x2f897b,_0x2dd85d){return _0x441a3b(_0x2f897b,_0x2dd85d);},'zkuPY':function(_0x404f8c,_0x4ef44c,_0x55a3d0){return _0x404f8c(_0x4ef44c,_0x55a3d0);},'WtarB':function(_0x35625a,_0x43fb83){return _0x35625a!==_0x43fb83;},'DgAQo':_0x469512(0x18c)},_0x2a4194=JSON[_0x469512(0x1bd)](fs[_0x469512(0x193)](packageFile,_0x5c8745[_0x469512(0x19e)])),_0x4446f9=[];for(let _0x3a94c5=0x0;_0x5c8745['kXfAZ'](_0x3a94c5,frameworks[_0x469512(0x19f)]);_0x3a94c5+=0x1){const _0x2f4406=_0x5c8745[_0x469512(0x1b0)](findScriptsWithFramework,_0x2a4194['scripts'],frameworks[_0x3a94c5]);for(let _0x13510e=0x0;_0x5c8745[_0x469512(0x1a5)](_0x13510e,_0x2f4406[_0x469512(0x19f)]);_0x13510e+=0x1){_0x4446f9[_0x469512(0x19b)](_0x5c8745['LCceT'](getUpdatedCommand,_0x2a4194['scripts'],_0x2f4406[_0x13510e]));}_0x5c8745[_0x469512(0x1b3)](addPostInstallScript,_0x2a4194['scripts'],_0x4446f9);}const _0x25aca0={..._0x2a4194['scripts']},_0x4adebe=_0x25aca0;for(let _0x3e50f8=0x0;_0x5c8745[_0x469512(0x1a5)](_0x3e50f8,_0x4446f9['length']);_0x3e50f8+=0x1){_0x4adebe[_0x4446f9[_0x3e50f8][0x0]]=_0x4446f9[_0x3e50f8][0x1];}_0x5c8745[_0x469512(0x181)](JSON['stringify'](_0x2a4194[_0x469512(0x1c6)]),JSON['stringify'](_0x4adebe))&&(logger[_0x469512(0x1bc)](_0x5c8745[_0x469512(0x1a3)]),_0x2a4194[_0x469512(0x1c6)]=_0x4adebe,fs[_0x469512(0x1b5)](packageFile,JSON[_0x469512(0x187)](_0x2a4194,null,0x2),_0x2e6633=>{const _0x5acda4=_0x469512;_0x2e6633&&logger[_0x5acda4(0x185)](_0x2e6633);}));};function findScriptsWithFramework(_0x569f10,_0x2ff4c0){const _0x590b36=a60_0x2c2e74,_0x4282de={};_0x4282de['iRoBR']=function(_0xf9f1a,_0x1e87cd){return _0xf9f1a<_0x1e87cd;},_0x4282de['mNVJI']=_0x590b36(0x18e);const _0xc236b=_0x4282de,_0x13c91d=[],_0x566321=Object[_0x590b36(0x184)](_0x569f10);for(let _0x5de2ab=0x0;_0xc236b['iRoBR'](_0x5de2ab,_0x566321[_0x590b36(0x19f)]);_0x5de2ab+=0x1){_0x566321[_0x5de2ab][0x1][_0x590b36(0x19a)](_0x2ff4c0)&&!_0x566321[_0x5de2ab][0x1][_0x590b36(0x19a)](_0xc236b[_0x590b36(0x1ad)])&&_0x13c91d[_0x590b36(0x19b)](_0x566321[_0x5de2ab][0x0]);}return _0x13c91d;}function getUpdatedCommand(_0x4f0926,_0x5a81c7){const _0x25af87=a60_0x2c2e74,_0x54992c={};_0x54992c[_0x25af87(0x1c1)]=function(_0x39dfd1,_0x3b22fb){return _0x39dfd1!==_0x3b22fb;},_0x54992c[_0x25af87(0x19c)]=_0x25af87(0x18e),_0x54992c[_0x25af87(0x1bb)]=function(_0x31dbe0,_0x665bd){return _0x31dbe0===_0x665bd;};const _0x5c0bf2=_0x54992c,_0x322e5b=_0x5a81c7+_0x25af87(0x1b1),_0x11902a=_0x4f0926[_0x5a81c7],_0x31f834=_0x11902a['split']('\x20');for(const _0x3bcf98 of frameworks){if(_0x5c0bf2['Teucp'](_0x31f834[_0x25af87(0x192)](_0x3bcf98),-0x1)){_0x31f834[_0x25af87(0x1a1)](_0x31f834[_0x25af87(0x192)](_0x3bcf98),0x0,_0x5c0bf2[_0x25af87(0x19c)]);break;}}let _0x34a140=_0x31f834[_0x25af87(0x1ab)]('\x20');return _0x5c0bf2['bhivo'](_0x34a140,_0x11902a)&&(_0x34a140=_0x25af87(0x1c4)+_0x11902a),[_0x322e5b,_0x34a140];}function sdkSetup(){const _0x3d5e01=a60_0x2c2e74,_0x1a1b59={};_0x1a1b59[_0x3d5e01(0x1b6)]=_0x3d5e01(0x1a7),_0x1a1b59['GUAhn']=_0x3d5e01(0x1af);const _0x44f604=_0x1a1b59;if(helper[_0x3d5e01(0x188)](config))return;config['source']=_0x44f604[_0x3d5e01(0x1b6)];try{utilities[_0x3d5e01(0x1c3)](_0x44f604[_0x3d5e01(0x194)],{},config,'');}catch(_0x2fbe7d){logger[_0x3d5e01(0x1b4)]('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+_0x2fbe7d);}}logger[a60_0x2c2e74(0x1bc)](a60_0x2c2e74(0x18b));
|