browserstack-node-sdk 1.54.1 → 1.55.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/package.json +3 -3
- 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/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 +2 -0
- package/src/bin/newman/helper.js +1 -0
- package/src/bin/newman/reporter/index.js +1 -0
- package/src/bin/newman/scriptRunner.js +2 -0
- 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/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 -0
- 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/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/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/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/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/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
|
-
const a64_0x35b3b9=a64_0x2500;(function(_0x54bac1,_0x228f9d){const _0x4da07e=a64_0x2500,_0x4610a4=_0x54bac1();while(!![]){try{const _0x552ab5=parseInt(_0x4da07e(0x1d6))/0x1*(-parseInt(_0x4da07e(0x281))/0x2)+-parseInt(_0x4da07e(0x1c6))/0x3+-parseInt(_0x4da07e(0x215))/0x4*(-parseInt(_0x4da07e(0x1e9))/0x5)+parseInt(_0x4da07e(0x1fd))/0x6+-parseInt(_0x4da07e(0x279))/0x7+-parseInt(_0x4da07e(0x23a))/0x8+parseInt(_0x4da07e(0x26f))/0x9;if(_0x552ab5===_0x228f9d)break;else _0x4610a4['push'](_0x4610a4['shift']());}catch(_0xe14ed6){_0x4610a4['push'](_0x4610a4['shift']());}}}(a64_0x4ab2,0x9667d));const path=require(a64_0x35b3b9(0x1ff)),url=require(a64_0x35b3b9(0x1f8)),util=require(a64_0x35b3b9(0x236)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a64_0x35b3b9(0x263)),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),{debug,getPlatformDetails}=require(a64_0x35b3b9(0x20b)),logger=require(a64_0x35b3b9(0x21c))[a64_0x35b3b9(0x252)],constants=require(a64_0x35b3b9(0x206)),AutomationFramework=require(a64_0x35b3b9(0x1f5)),BrowserstackCLI=require(a64_0x35b3b9(0x1c4)),AutomationFrameworkState=require(a64_0x35b3b9(0x1e5)),HookState=require(a64_0x35b3b9(0x245)),{platform}=require('os'),getBrowserNameFromChannel=_0x1d36db=>{const _0x4e4481=a64_0x35b3b9,_0x540f2b={};_0x540f2b[_0x4e4481(0x227)]=_0x4e4481(0x204),_0x540f2b['QNmHW']='edge',_0x540f2b[_0x4e4481(0x1ee)]=_0x4e4481(0x1cd),_0x540f2b['dkZpI']=function(_0x5dca7b,_0xf83595){return _0x5dca7b===_0xf83595;},_0x540f2b[_0x4e4481(0x203)]='webkit',_0x540f2b[_0x4e4481(0x250)]=_0x4e4481(0x26d),_0x540f2b[_0x4e4481(0x1f6)]=_0x4e4481(0x282),_0x540f2b[_0x4e4481(0x1f1)]=_0x4e4481(0x1fb);const _0x2085fe=_0x540f2b,_0x98cce0=_0x2085fe[_0x4e4481(0x227)][_0x4e4481(0x286)]('|');let _0x50fe42=0x0;while(!![]){switch(_0x98cce0[_0x50fe42++]){case'0':if(_0x1d36db['includes'](_0x2085fe[_0x4e4481(0x22b)]))return _0x2085fe[_0x4e4481(0x22b)];continue;case'1':if(_0x1d36db['includes'](_0x2085fe['enbes']))return _0x2085fe[_0x4e4481(0x1ee)];continue;case'2':if(_0x2085fe[_0x4e4481(0x23b)](_0x1d36db,_0x2085fe[_0x4e4481(0x203)]))return _0x2085fe['bxbwy'];continue;case'3':if(_0x1d36db['includes'](_0x2085fe[_0x4e4481(0x250)]))return _0x2085fe[_0x4e4481(0x250)];continue;case'4':if(_0x1d36db['includes'](_0x2085fe['psmlW']))return _0x2085fe[_0x4e4481(0x1f6)];continue;case'5':if(_0x1d36db[_0x4e4481(0x239)](_0x2085fe[_0x4e4481(0x1f1)]))return _0x2085fe[_0x4e4481(0x1f1)];continue;}break;}},getBrowserFromWSEndpoint=_0x4a7d27=>{const _0x16ad49=a64_0x35b3b9,_0x2d0f36={'oJggV':_0x16ad49(0x234),'SwsTQ':function(_0x3b34d6,_0x182aff){return _0x3b34d6(_0x182aff);},'OYVdm':_0x16ad49(0x1e3),'TywqY':_0x16ad49(0x268),'isLdu':'firefox','CNnMP':_0x16ad49(0x276),'MBbQZ':_0x16ad49(0x282),'YMyFK':_0x16ad49(0x1d3),'BlyJt':_0x16ad49(0x1cd)};try{const _0x13ce9e=url[_0x16ad49(0x28b)](_0x4a7d27),_0x41f534=new URLSearchParams(_0x13ce9e[_0x16ad49(0x249)]),_0x4d42ad=Object[_0x16ad49(0x262)](_0x41f534[_0x16ad49(0x255)]()),_0x3a8cf4=[_0x4d42ad[_0x16ad49(0x27c)],_0x4d42ad[_0x16ad49(0x20f)],_0x4d42ad[_0x16ad49(0x257)],_0x4d42ad[_0x16ad49(0x25a)]];for(const _0x40db21 of _0x3a8cf4){if(_0x40db21)try{const _0x4973d5=JSON[_0x16ad49(0x28b)](_0x40db21),_0x31ef1e=_0x4973d5['browserName']||_0x4973d5[_0x16ad49(0x225)]||_0x4973d5[_0x2d0f36[_0x16ad49(0x23f)]]?.['browserName'];if(_0x31ef1e)return _0x2d0f36[_0x16ad49(0x226)](debug,_0x16ad49(0x24d)+_0x31ef1e),_0x31ef1e[_0x16ad49(0x23d)]();}catch(_0x2b6b25){_0x2d0f36[_0x16ad49(0x226)](debug,'Failed\x20to\x20parse\x20caps\x20from\x20WebSocket:\x20'+_0x2b6b25[_0x16ad49(0x248)]);}}if(_0x4a7d27['includes'](_0x2d0f36[_0x16ad49(0x1fa)])||_0x4a7d27['includes'](_0x2d0f36[_0x16ad49(0x22a)]))return _0x2d0f36['OYVdm'];if(_0x4a7d27[_0x16ad49(0x239)](_0x2d0f36['isLdu'])||_0x4a7d27[_0x16ad49(0x239)](_0x2d0f36[_0x16ad49(0x1c7)]))return _0x2d0f36[_0x16ad49(0x1fe)];if(_0x4a7d27[_0x16ad49(0x239)](_0x2d0f36[_0x16ad49(0x272)])||_0x4a7d27['includes'](_0x2d0f36[_0x16ad49(0x243)]))return _0x2d0f36['MBbQZ'];return _0x2d0f36['BlyJt'];}catch(_0x168276){return _0x2d0f36['SwsTQ'](debug,_0x16ad49(0x222)+_0x168276[_0x16ad49(0x1eb)]()),_0x2d0f36[_0x16ad49(0x1d4)];}},getCloudProviderFromWsEndpoint=_0xf4a9b7=>{const _0x37a0d1=a64_0x35b3b9,_0x2a32de={};_0x2a32de[_0x37a0d1(0x1e6)]=_0x37a0d1(0x1e0),_0x2a32de[_0x37a0d1(0x244)]='unknown_grid';const _0x42e967=_0x2a32de;if(_0xf4a9b7[_0x37a0d1(0x239)](constants[_0x37a0d1(0x26e)])||_0xf4a9b7[_0x37a0d1(0x239)](constants[_0x37a0d1(0x230)]))return _0x42e967[_0x37a0d1(0x1e6)];return _0x42e967['cqkgY'];},a64_0x3fd9c5={};a64_0x3fd9c5['cloudProvider']=undefined,a64_0x3fd9c5[a64_0x35b3b9(0x1d9)]=undefined,a64_0x3fd9c5['browser']=undefined,a64_0x3fd9c5[a64_0x35b3b9(0x22c)]=undefined,a64_0x3fd9c5['platform']=undefined,a64_0x3fd9c5[a64_0x35b3b9(0x283)]=undefined,a64_0x3fd9c5[a64_0x35b3b9(0x1e1)]=undefined,a64_0x3fd9c5['capabilities']={};class SharedPlaywrightSessionDetails{static ['currentSessionDetails']=a64_0x3fd9c5;constructor(){const _0x41dbc8=a64_0x35b3b9,_0x523dac={};_0x523dac[_0x41dbc8(0x216)]=_0x41dbc8(0x242);const _0x474cb1=_0x523dac;throw new Error(_0x474cb1[_0x41dbc8(0x216)]);}static [a64_0x35b3b9(0x28a)]=null;static[a64_0x35b3b9(0x223)](_0x8e7aba,_0x3b0542,_0x59f3bb=null){const _0x1295ad=a64_0x35b3b9,_0x3f4fe1={'Dbycj':function(_0x30805b,_0x11e099){return _0x30805b===_0x11e099;},'VkrYT':_0x1295ad(0x20d),'foTtg':_0x1295ad(0x27f),'MZODF':'Device\x20Model\x20is\x20not\x20available','KfJNS':_0x1295ad(0x25d),'vTZiP':function(_0x127fe2,_0x4fb3d8,_0x8b2060){return _0x127fe2(_0x4fb3d8,_0x8b2060);},'xJapt':_0x1295ad(0x27b),'YMoep':_0x1295ad(0x232),'orLfg':_0x1295ad(0x26c),'JdEPL':'use','baoUo':_0x1295ad(0x1f2),'zfxjS':function(_0x57b96c,_0x4a71e5){return _0x57b96c(_0x4a71e5);},'WuUYs':function(_0x7a5d52,_0x359080){return _0x7a5d52===_0x359080;},'hzvfD':'browserstack','XmCdv':_0x1295ad(0x28d),'sMVzJ':_0x1295ad(0x211),'gLdxh':function(_0x5bc2ba,_0x5e82ce){return _0x5bc2ba(_0x5e82ce);},'HmSyF':'chromium','ntXXj':function(_0x4dc62a){return _0x4dc62a();},'ocJeM':function(_0x2e8371,_0x57cded){return _0x2e8371&&_0x57cded;},'fIGpR':function(_0x3227e4){return _0x3227e4();},'WadEv':function(_0x177592,_0x494b11){return _0x177592+_0x494b11;},'eagjT':'playwright-','tunMM':'setupBrowserDetails'},_0x5a28d2=this;return _0x3f4fe1['vTZiP'](o11yErrorHandler,async function _0x571235(_0x5af188,_0x47bb21,_0x3c5d22=null){const _0x3ea39c=_0x1295ad;let _0x1d6497=_0x5af188[_0x3ea39c(0x274)],_0x1622b8=null;_0x5af188&&_0x3f4fe1[_0x3ea39c(0x219)](typeof _0x5af188['version'],_0x3f4fe1[_0x3ea39c(0x275)])?_0x1622b8=_0x5af188[_0x3ea39c(0x217)]():logger[_0x3ea39c(0x1cb)](_0x3f4fe1[_0x3ea39c(0x273)]);let _0x79aa90=null;_0x5af188&&_0x3f4fe1[_0x3ea39c(0x219)](typeof _0x5af188[_0x3ea39c(0x265)],_0x3f4fe1[_0x3ea39c(0x275)])?_0x79aa90=_0x5af188['model']():logger[_0x3ea39c(0x1cb)](_0x3f4fe1[_0x3ea39c(0x205)]);let _0x558025=null,_0x38157a=null,_0x2e6e51=null,_0x580081=_0x3f4fe1[_0x3ea39c(0x285)];if(_0x5af188[_0x3ea39c(0x1ca)]['isRemote']()||global['accessibilityPlatform']){let _0x212b59=null;_0x3f4fe1['vTZiP'](nestedKeyValue,_0x5af188,[_0x3f4fe1[_0x3ea39c(0x218)],_0x3f4fe1[_0x3ea39c(0x208)]])?_0x212b59=_0x5af188['_browserType'][_0x3ea39c(0x232)]:_0x212b59=_0x3f4fe1[_0x3ea39c(0x25c)](nestedKeyValue,_0x47bb21,[_0x3f4fe1[_0x3ea39c(0x1f7)],_0x3f4fe1[_0x3ea39c(0x1cc)],_0x3f4fe1[_0x3ea39c(0x23c)]]);const _0x37e17e=_0x3c5d22||_0x212b59&&_0x212b59['wsEndpoint'];if(_0x37e17e){_0x580081=_0x3f4fe1['zfxjS'](getCloudProviderFromWsEndpoint,_0x37e17e);if(_0x3f4fe1['WuUYs'](_0x580081,_0x3f4fe1[_0x3ea39c(0x287)])){_0x2e6e51=constants['ATS_WSS_URL_REGEX'][_0x3ea39c(0x1ce)](_0x37e17e)?_0x3f4fe1[_0x3ea39c(0x21a)]:_0x3f4fe1['sMVzJ'];const _0x226188=_0x3f4fe1[_0x3ea39c(0x1c5)](getBrowserFromWSEndpoint,_0x37e17e);if(_0x226188&&(!_0x1d6497||_0x3f4fe1[_0x3ea39c(0x219)](_0x1d6497,_0x3f4fe1[_0x3ea39c(0x1da)])))_0x1d6497=_0x226188,logger['debug'](_0x3ea39c(0x20a)+_0x1d6497);else _0x1d6497&&logger[_0x3ea39c(0x1cb)]('Using\x20browser\x20name\x20from\x20browser\x20object:\x20'+_0x1d6497);_0x558025=_0x5a28d2[_0x3ea39c(0x22f)][_0x3ea39c(0x27a)],_0x38157a=_0x5a28d2[_0x3ea39c(0x22f)]['platform_version'];}else{const _0x39cc02=await _0x3f4fe1[_0x3ea39c(0x20e)](getPlatformDetails);_0x558025=_0x39cc02[_0x3ea39c(0x1d1)],_0x38157a=_0x39cc02['platformVersion'];}}if(_0x3f4fe1['ocJeM'](!_0x558025,!_0x38157a)&&!_0x3f4fe1[_0x3ea39c(0x259)](isBrowserstackInfra)){const _0x412f90=await _0x3f4fe1['ntXXj'](getPlatformDetails);_0x558025=_0x412f90[_0x3ea39c(0x1d1)],_0x38157a=_0x412f90['platformVersion'];}}else{_0x47bb21&&_0x47bb21[_0x3ea39c(0x26c)]&&_0x47bb21[_0x3ea39c(0x26c)][_0x3ea39c(0x201)]&&_0x47bb21[_0x3ea39c(0x26c)][_0x3ea39c(0x201)]['channel']?_0x1d6497=_0x3f4fe1['zfxjS'](getBrowserNameFromChannel,_0x47bb21[_0x3ea39c(0x26c)][_0x3ea39c(0x201)][_0x3ea39c(0x1e4)]):_0x1d6497=_0x3f4fe1[_0x3ea39c(0x26a)](_0x3f4fe1['eagjT'],_0x1d6497[_0x3ea39c(0x23d)]());const _0x14ee2a=await _0x3f4fe1[_0x3ea39c(0x259)](getPlatformDetails);_0x558025=_0x14ee2a[_0x3ea39c(0x1d1)],_0x38157a=_0x14ee2a[_0x3ea39c(0x228)];}const _0x2f037d={};_0x2f037d[_0x3ea39c(0x225)]=_0x1d6497,_0x2f037d[_0x3ea39c(0x22c)]=_0x1622b8,_0x2f037d[_0x3ea39c(0x20f)]={},_0x2f037d[_0x3ea39c(0x27a)]=_0x558025,_0x2f037d[_0x3ea39c(0x283)]=_0x38157a,_0x2f037d['product']=_0x2e6e51;const _0x1f213c=_0x2f037d;_0x79aa90&&(_0x1f213c[_0x3ea39c(0x20f)][_0x3ea39c(0x209)]=_0x79aa90);const _0x450b80={};_0x450b80[_0x3ea39c(0x1d7)]=_0x580081,_0x5a28d2[_0x3ea39c(0x22f)]=Object['assign']({},_0x5a28d2[_0x3ea39c(0x22f)],_0x450b80,_0x1f213c);const _0x1449e7={};_0x1449e7[_0x3ea39c(0x225)]=_0x5a28d2[_0x3ea39c(0x22f)]['browser'],_0x1449e7[_0x3ea39c(0x229)]=_0x5a28d2['currentSessionDetails']['browser_version'],_0x1449e7[_0x3ea39c(0x27a)]=_0x5a28d2['currentSessionDetails']['platform'],_0x1449e7[_0x3ea39c(0x228)]=_0x5a28d2[_0x3ea39c(0x22f)][_0x3ea39c(0x283)],_0x1449e7['cloudProvider']=_0x5a28d2[_0x3ea39c(0x22f)][_0x3ea39c(0x1d7)],_0x1449e7[_0x3ea39c(0x1e1)]=_0x5a28d2[_0x3ea39c(0x22f)]['product'],logger['debug'](_0x3ea39c(0x1cf)+JSON[_0x3ea39c(0x213)](_0x1449e7));},_0x3f4fe1['tunMM'])(_0x8e7aba,_0x3b0542,_0x59f3bb);}static[a64_0x35b3b9(0x1dc)](){this['patchConnection'](),this['patchCRConnection']();}static['patchConnection'](){const _0x4322a8=a64_0x35b3b9,_0x337ab8={'vPVOE':function(_0x2f9c89,_0x2fa99f){return _0x2f9c89(_0x2fa99f);},'fWeaU':_0x4322a8(0x25b),'WtVPy':_0x4322a8(0x22d),'GMiFk':_0x4322a8(0x247),'ObDnd':_0x4322a8(0x220),'MCLAJ':function(_0x241b1c,_0x5fe562){return _0x241b1c(_0x5fe562);},'JPNnz':function(_0x2ce3e2,_0x2048d9){return _0x2ce3e2!=_0x2048d9;},'mPwHz':_0x4322a8(0x25f),'HighP':'dispatch','jLfkK':_0x4322a8(0x238)},_0x18bb65=this;if(!this[_0x4322a8(0x1f9)])try{const _0x36c5ea=[path[_0x4322a8(0x21e)](_0x337ab8[_0x4322a8(0x261)],_0x337ab8['WtVPy'],_0x337ab8[_0x4322a8(0x202)]),path['join'](_0x337ab8['fWeaU'],_0x337ab8[_0x4322a8(0x202)]),path[_0x4322a8(0x21e)](_0x337ab8[_0x4322a8(0x221)],_0x337ab8['GMiFk'])];for(const _0x29b846 of _0x36c5ea){try{const _0x2c61dc=_0x337ab8[_0x4322a8(0x1db)](importFileFromPWCore,_0x29b846);if(_0x2c61dc&&_0x2c61dc[_0x4322a8(0x1f9)]){this['Connection']=_0x2c61dc[_0x4322a8(0x1f9)],logger[_0x4322a8(0x1cb)](_0x4322a8(0x22e)+_0x29b846);break;}}catch(_0x2edce4){_0x337ab8['vPVOE'](debug,'Failed\x20to\x20import\x20connection\x20from\x20'+_0x29b846+':\x20'+_0x2edce4['toString']());}}if(!this[_0x4322a8(0x1f9)]){_0x337ab8[_0x4322a8(0x1db)](debug,_0x337ab8[_0x4322a8(0x1de)]);return;}}catch(_0x306d03){_0x337ab8[_0x4322a8(0x200)](debug,'Error\x20in\x20importing\x20connection\x20'+_0x306d03[_0x4322a8(0x1eb)]());return;}const _0x4d1829=this[_0x4322a8(0x1f9)];try{if(_0x337ab8[_0x4322a8(0x1ea)](_0x4d1829,null)){const _0x3b56a8=_0x4d1829['prototype'][_0x4322a8(0x240)];if(!_0x337ab8[_0x4322a8(0x200)](isFalse,process['env'][_0x4322a8(0x23e)])){if(_0x4d1829['prototype'][_0x4322a8(0x271)]){logger[_0x4322a8(0x1cb)](_0x337ab8[_0x4322a8(0x256)]);return;}Object['defineProperty'](_0x4d1829['prototype'],_0x337ab8[_0x4322a8(0x235)],{'get':function(){const _0x576bdd={'eeCeK':function(_0x353278,_0x14daa9){const _0x2d7349=a64_0x2500;return _0x337ab8[_0x2d7349(0x1db)](_0x353278,_0x14daa9);},'bPuaP':function(_0x546e18,_0x34724b){const _0x1c805e=a64_0x2500;return _0x337ab8[_0x1c805e(0x1db)](_0x546e18,_0x34724b);}};return async function _0x4415cf(_0x6f006f){const _0x524e8c=a64_0x2500;if(BrowserstackCLI['getInstance']()[_0x524e8c(0x1d8)]()){const _0x5c0224={};_0x5c0224['message']=_0x6f006f,await BrowserstackCLI[_0x524e8c(0x21d)]()[_0x524e8c(0x1d5)]()[_0x524e8c(0x24c)](AutomationFrameworkState[_0x524e8c(0x289)],HookState[_0x524e8c(0x214)],_0x5c0224);}else{const _0x2d4a0d=_0x6f006f&&_0x6f006f[_0x524e8c(0x1c9)]&&_0x6f006f[_0x524e8c(0x1c9)][_0x524e8c(0x1dd)];if(_0x2d4a0d){const _0x5a586d=_0x2d4a0d['sessionId'],_0x72ef38=_0x2d4a0d[_0x524e8c(0x24f)];_0x72ef38&&(_0x576bdd[_0x524e8c(0x266)](debug,_0x524e8c(0x270)+_0x72ef38[_0x524e8c(0x1eb)]()),_0x18bb65[_0x524e8c(0x22f)][_0x524e8c(0x27a)]=_0x72ef38[_0x524e8c(0x1d1)],_0x18bb65[_0x524e8c(0x22f)][_0x524e8c(0x283)]=_0x72ef38[_0x524e8c(0x228)]),_0x5a586d&&(_0x576bdd[_0x524e8c(0x267)](debug,'Setting\x20session\x20id\x20received\x20from\x20BS\x20'+_0x5a586d),_0x18bb65[_0x524e8c(0x22f)][_0x524e8c(0x1d9)]=_0x5a586d);}}return _0x3b56a8[_0x524e8c(0x241)](this,arguments);};}}),_0x4d1829[_0x4322a8(0x212)]['_bstackDispatchPatched']=!![],logger[_0x4322a8(0x1cb)](_0x337ab8['jLfkK']);}}}catch(_0x42cfd4){_0x337ab8['MCLAJ'](debug,'Error\x20in\x20applying\x20Connection\x20patch\x20'+_0x42cfd4),_0x18bb65['sessionError']=_0x42cfd4[_0x4322a8(0x1eb)]();}}static[a64_0x35b3b9(0x278)](){const _0x35f0bb=a64_0x35b3b9,_0x29ac97={'BXaFm':function(_0x10bfed,_0x53f992){return _0x10bfed(_0x53f992);},'GXiaW':function(_0x3a616a,_0x1f94cd){return _0x3a616a(_0x1f94cd);},'qFWqB':_0x35f0bb(0x25b),'CltDC':'server','tGAXL':'chromium','ZIhLV':_0x35f0bb(0x210),'XTlKS':function(_0x249676,_0x480dae){return _0x249676(_0x480dae);},'PsYCU':_0x35f0bb(0x25e),'LxvUI':function(_0x35e85e,_0x6920ab){return _0x35e85e(_0x6920ab);},'DSphp':_0x35f0bb(0x246),'fLiFg':function(_0x14c844,_0x3a8197){return _0x14c844!=_0x3a8197;},'STGnw':'CRConnection\x20already\x20patched','uXDYC':'_onMessage','ZWExn':'Successfully\x20patched\x20CRConnection._onMessage','oumBk':function(_0x1c11eb,_0x29d237){return _0x1c11eb(_0x29d237);}},_0x5845c8=this;let _0x469330=null;try{const _0x3a2ca8=path[_0x35f0bb(0x21e)](_0x29ac97[_0x35f0bb(0x1f0)],_0x29ac97['CltDC'],_0x29ac97[_0x35f0bb(0x26b)],_0x29ac97['ZIhLV']),_0x2594c1=_0x29ac97[_0x35f0bb(0x24e)](importFileFromPWCore,_0x3a2ca8);!_0x2594c1?_0x29ac97[_0x35f0bb(0x27d)](debug,_0x29ac97[_0x35f0bb(0x280)]):_0x469330=_0x2594c1['CRConnection'];}catch(_0x150a80){_0x29ac97[_0x35f0bb(0x1fc)](debug,_0x29ac97[_0x35f0bb(0x224)]);}try{if(_0x29ac97[_0x35f0bb(0x231)](_0x469330,null)){const _0x284eb0=_0x469330[_0x35f0bb(0x212)]['_onMessage'];if(_0x469330['prototype'][_0x35f0bb(0x1d0)]){logger[_0x35f0bb(0x1cb)](_0x29ac97['STGnw']);return;}Object['defineProperty'](_0x469330[_0x35f0bb(0x212)],_0x29ac97[_0x35f0bb(0x27e)],{'get':function(){return async function _0x2703c5(_0x2230c2){const _0x295801=a64_0x2500;try{if(BrowserstackCLI[_0x295801(0x21d)]()[_0x295801(0x1d8)]()){const _0x9d0167={};_0x9d0167[_0x295801(0x248)]=_0x2230c2,await BrowserstackCLI[_0x295801(0x21d)]()[_0x295801(0x1d5)]()['trackEvent'](AutomationFrameworkState[_0x295801(0x289)],HookState[_0x295801(0x214)],_0x9d0167),delete _0x2230c2[_0x295801(0x1df)];}else{const _0x4dbec0=_0x2230c2[_0x295801(0x1df)];if(_0x4dbec0){delete _0x2230c2[_0x295801(0x1df)];const _0x3bacd1=_0x4dbec0[_0x295801(0x264)],_0x139271=_0x4dbec0[_0x295801(0x24f)];_0x139271&&(_0x29ac97[_0x295801(0x253)](debug,'Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20'+_0x139271['toString']()),_0x5845c8[_0x295801(0x22f)][_0x295801(0x27a)]=_0x139271[_0x295801(0x1d1)],_0x5845c8['currentSessionDetails']['platform_version']=_0x139271[_0x295801(0x228)]),_0x3bacd1&&(_0x29ac97[_0x295801(0x253)](debug,_0x295801(0x233)+_0x3bacd1),_0x5845c8['currentSessionDetails'][_0x295801(0x1d9)]=_0x3bacd1);}}}catch(_0x1fe9b6){_0x29ac97[_0x295801(0x27d)](debug,_0x295801(0x1f3)+_0x1fe9b6[_0x295801(0x1eb)]());}return _0x284eb0[_0x295801(0x241)](this,arguments);};}}),_0x469330[_0x35f0bb(0x212)][_0x35f0bb(0x1d0)]=!![],logger['debug'](_0x29ac97[_0x35f0bb(0x258)]);}}catch(_0xef0503){_0x29ac97[_0x35f0bb(0x1e7)](debug,'Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20'+_0xef0503),_0x5845c8[_0x35f0bb(0x28a)]=_0xef0503['toString']();}}static['extractBrowserStackParams'](_0x49117c,_0x4464e8){const _0x537d6c=a64_0x35b3b9,_0x552069={'AXDVm':_0x537d6c(0x234),'JhEtm':function(_0xe7b804,_0x4dbbe0){return _0xe7b804||_0x4dbbe0;},'wobpm':function(_0x504c59,_0x232978){return _0x504c59===_0x232978;},'YgxUo':_0x537d6c(0x260),'LOawI':_0x537d6c(0x1ed),'zdGlG':function(_0x3fceb8,_0x2cfb39){return _0x3fceb8(_0x2cfb39);},'ZckMV':function(_0x2665d4,_0x14eeac){return _0x2665d4(_0x14eeac);}};let _0x6ac81b=null,_0x3029ad=null;try{const _0xab26d6=[_0x4464e8,global[_0x537d6c(0x269)],global['capabilties']];for(const _0x283703 of _0xab26d6){if(_0x283703&&(!_0x3029ad||!_0x3029ad[_0x537d6c(0x264)])){const _0x577d51=_0x283703['sessionId']||_0x283703[_0x552069[_0x537d6c(0x1c8)]]?.[_0x537d6c(0x264)],_0xef39d3=_0x283703[_0x537d6c(0x21b)]||_0x283703[_0x537d6c(0x225)]||_0x283703[_0x552069['AXDVm']]?.[_0x537d6c(0x21b)],_0x1425c0=_0x283703[_0x537d6c(0x229)]||_0x283703[_0x537d6c(0x22c)]||_0x283703[_0x552069[_0x537d6c(0x1c8)]]?.[_0x537d6c(0x229)],_0x50df4f=_0x283703['os']||_0x283703[_0x537d6c(0x27a)]||_0x283703[_0x552069[_0x537d6c(0x1c8)]]?.['os'],_0xaf6dc9=_0x283703[_0x537d6c(0x28c)]||_0x283703[_0x537d6c(0x20c)]||_0x283703[_0x552069[_0x537d6c(0x1c8)]]?.[_0x537d6c(0x28c)];if(_0x552069[_0x537d6c(0x21f)](_0x577d51,_0xef39d3)||_0x50df4f){const _0x4a5d9a={};_0x4a5d9a[_0x537d6c(0x21b)]=_0xef39d3,_0x4a5d9a['browserVersion']=_0x1425c0,_0x4a5d9a['os']=_0x50df4f,_0x4a5d9a['osVersion']=_0xaf6dc9,_0x4a5d9a[_0x537d6c(0x1d1)]=_0x283703['platformName']||_0x50df4f,_0x4a5d9a['platformVersion']=_0x283703[_0x537d6c(0x228)]||_0xaf6dc9;const _0x5c9c21={};_0x5c9c21[_0x537d6c(0x264)]=_0x577d51,_0x5c9c21[_0x537d6c(0x24f)]=_0x4a5d9a,_0x3029ad=_0x5c9c21;if(_0x552069['JhEtm'](_0x577d51,_0xef39d3)){logger[_0x537d6c(0x1cb)]('BrowserStack\x20params\x20extracted\x20from\x20capabilities:\x20browser='+_0xef39d3+_0x537d6c(0x237)+_0x50df4f);break;}}}}if(_0x49117c&&_0x552069[_0x537d6c(0x284)](typeof _0x49117c,_0x552069[_0x537d6c(0x1d2)]))try{const _0x2a8d41=url['parse'](_0x49117c),_0x6ea506=new URLSearchParams(_0x2a8d41['query']),_0x3b3533=Object['fromEntries'](_0x6ea506[_0x537d6c(0x255)]()),_0x181e96=[_0x3b3533[_0x537d6c(0x27c)],_0x3b3533[_0x537d6c(0x20f)],_0x3b3533['desiredCapabilities']];for(const _0x2516ad of _0x181e96){if(_0x2516ad&&(!_0x6ac81b||!_0x6ac81b[_0x537d6c(0x264)]))try{const _0x52b305=JSON[_0x537d6c(0x28b)](_0x2516ad),_0x4f5e50={};_0x4f5e50[_0x537d6c(0x264)]=_0x52b305['sessionId']||_0x52b305[_0x552069[_0x537d6c(0x1c8)]]?.['sessionId'],_0x4f5e50[_0x537d6c(0x24f)]={},_0x4f5e50[_0x537d6c(0x24f)]['browserName']=_0x52b305[_0x537d6c(0x21b)]||_0x52b305[_0x537d6c(0x225)],_0x4f5e50[_0x537d6c(0x24f)][_0x537d6c(0x229)]=_0x52b305[_0x537d6c(0x229)]||_0x52b305[_0x537d6c(0x22c)],_0x4f5e50[_0x537d6c(0x24f)]['os']=_0x52b305['os']||_0x52b305[_0x537d6c(0x27a)],_0x4f5e50[_0x537d6c(0x24f)]['osVersion']=_0x52b305[_0x537d6c(0x28c)]||_0x52b305[_0x537d6c(0x20c)],_0x4f5e50[_0x537d6c(0x24f)][_0x537d6c(0x1d1)]=_0x52b305['platformName']||_0x52b305['os']||_0x52b305['platform'],_0x4f5e50[_0x537d6c(0x24f)]['platformVersion']=_0x52b305[_0x537d6c(0x228)]||_0x52b305[_0x537d6c(0x28c)]||_0x52b305[_0x537d6c(0x20c)],_0x6ac81b=_0x4f5e50;if(_0x6ac81b[_0x537d6c(0x264)]||_0x6ac81b[_0x537d6c(0x24f)]['browserName']){logger[_0x537d6c(0x1cb)](_0x552069[_0x537d6c(0x24b)]);break;}}catch(_0xd3f1b0){_0x552069['zdGlG'](debug,_0x537d6c(0x1ec)+_0xd3f1b0[_0x537d6c(0x1eb)]());}}}catch(_0x384e14){_0x552069['ZckMV'](debug,_0x537d6c(0x207)+_0x384e14[_0x537d6c(0x1eb)]());}}catch(_0x2f77e4){_0x552069['ZckMV'](debug,'Error\x20extracting\x20BrowserStack\x20parameters:\x20'+util[_0x537d6c(0x1e8)](_0x2f77e4));}const _0x49c8e4={};return _0x49c8e4[_0x537d6c(0x1dd)]=_0x6ac81b,_0x49c8e4['bStackParams']=_0x3029ad,_0x49c8e4;}static async[a64_0x35b3b9(0x1ef)](_0x18f883,_0x4550e7){const _0x19b2a0=a64_0x35b3b9,_0x2102ca={'VSILw':function(_0x3c881f,_0x525143){return _0x3c881f||_0x525143;},'pZSpx':_0x19b2a0(0x277),'HjKRA':function(_0x249c3b,_0x51bfd7){return _0x249c3b(_0x51bfd7);}};try{if(!BrowserstackCLI[_0x19b2a0(0x21d)]()[_0x19b2a0(0x1d8)]())return;if(_0x2102ca['VSILw'](_0x18f883,_0x4550e7)){logger[_0x19b2a0(0x1cb)](_0x2102ca['pZSpx']);const _0x5cb9b7={'params':_0x18f883?{'bsParams':_0x18f883}:null,'bStackParams':_0x2102ca[_0x19b2a0(0x288)](_0x4550e7,null)},_0x2d0dff=AutomationFramework[_0x19b2a0(0x24a)](),_0x58ac53={};_0x58ac53[_0x19b2a0(0x248)]=_0x5cb9b7,_0x58ac53['instance']=_0x2d0dff,await BrowserstackCLI[_0x19b2a0(0x21d)]()['getAutomationFramework']()['trackEvent'](AutomationFrameworkState[_0x19b2a0(0x289)],HookState[_0x19b2a0(0x214)],_0x58ac53);}}catch(_0x41498f){_0x2102ca[_0x19b2a0(0x1e2)](debug,_0x19b2a0(0x1f4)+util[_0x19b2a0(0x1e8)](_0x41498f));}}static[a64_0x35b3b9(0x251)](){const _0x2ab640=a64_0x35b3b9;return this[_0x2ab640(0x22f)];}}function a64_0x4ab2(){const _0x459b23=['triggerPlaywrightDispatchEvent','qFWqB','yZrnp','connectOptions','Error\x20in\x20finding\x20platform\x20details\x20','Error\x20triggering\x20PLAYWRIGHT_DISPATCH\x20event:\x20','../v2/framework/automationFramework','psmlW','orLfg','url','Connection','OYVdm','chromium','LxvUI','2362296IiJcCy','isLdu','path','MCLAJ','use','GMiFk','bxbwy','5|1|0|3|4|2','MZODF','./constants','Error\x20parsing\x20WebSocket\x20endpoint:\x20','YMoep','deviceModel','Browser\x20name\x20overridden\x20from\x20WebSocket\x20endpoint:\x20','../../helpers/test-observability/utils','os_version','function','ntXXj','capabilities','crConnection.js','automate','prototype','stringify','POST','8iAniZo','XHLAP','version','xJapt','Dbycj','XmCdv','browserName','../../helpers/logger','getInstance','join','JhEtm','Not\x20able\x20to\x20import\x20Connection\x20class\x20from\x20any\x20path','WtVPy','Error\x20in\x20getting\x20browser\x20from\x20WebSocket\x20endpoint:\x20','setupBrowserDetails','DSphp','browser','SwsTQ','FJfMv','platformVersion','browserVersion','TywqY','QNmHW','browser_version','client','Found\x20Connection\x20class\x20at:\x20','currentSessionDetails','BSTACK_ATS_URL','fLiFg','_defaultConnectOptions','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','bstack:options','HighP','util',',\x20os=','Successfully\x20patched\x20Connection.dispatch','includes','2874864rHBokZ','dkZpI','baoUo','toLowerCase','BROWSERSTACK_TEST_OBSERVABILITY','oJggV','dispatch','apply','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','YMyFK','cqkgY','../v2/state/hookState.js','Error\x20in\x20importing\x20crConnection','connection.js','message','query','getTrackedInstance','LOawI','trackEvent','Browser\x20found\x20in\x20WebSocket\x20caps:\x20','XTlKS','platformDetails','ojACA','getDetails','winstonLogger','BXaFm','exports','entries','mPwHz','desiredCapabilities','ZWExn','fIGpR','browserstack_capabilities','lib','vTZiP','local_grid','Not\x20able\x20to\x20import\x20crConnection','Connection\x20dispatch\x20already\x20patched','string','fWeaU','fromEntries','../../helpers/helper','sessionId','model','eeCeK','bPuaP','msedge','__platformCaps','WadEv','tGAXL','project','firefox','BSTACK_URL','11305998uYMhFE','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','_bstackDispatchPatched','MBbQZ','foTtg','_name','VkrYT','gecko','Triggering\x20PLAYWRIGHT_DISPATCH\x20event','patchCRConnection','8613696QauctB','platform','_browserType','caps','GXiaW','uXDYC','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','PsYCU','16FtJZfY','safari','platform_version','wobpm','KfJNS','split','hzvfD','VSILw','PLAYWRIGHT_DISPATCH','sessionError','parse','osVersion','turboscale','../v2/browserstackCLI','gLdxh','222801RYRHgS','CNnMP','AXDVm','params','_connection','debug','JdEPL','chrome','test','Session\x20details\x20setup\x20complete:\x20','_bstackCRPatched','platformName','YgxUo','webkit','BlyJt','getAutomationFramework','31082VSKEJv','cloudProvider','isRunning','bsSessionId','HmSyF','vPVOE','patch','bsParams','ObDnd','bStackParams','browserstack','product','HjKRA','edge','channel','../v2/state/automationFrameworkState.js','SeOCf','oumBk','format','2197330lBNnfm','JPNnz','toString','Failed\x20to\x20parse\x20capabilities\x20from\x20WebSocket:\x20','BrowserStack\x20params\x20extracted\x20from\x20WebSocket\x20endpoint','enbes'];a64_0x4ab2=function(){return _0x459b23;};return a64_0x4ab2();}function a64_0x2500(_0x2ba59c,_0x21a0ed){const _0x4ab297=a64_0x4ab2();return a64_0x2500=function(_0x25000c,_0x49b4db){_0x25000c=_0x25000c-0x1c4;let _0x4eb190=_0x4ab297[_0x25000c];return _0x4eb190;},a64_0x2500(_0x2ba59c,_0x21a0ed);}module[a64_0x35b3b9(0x254)]=SharedPlaywrightSessionDetails;
|
|
1
|
+
const a68_0x85a55b=a68_0x2d83;(function(_0x59bbc3,_0x431961){const _0x2b2425=a68_0x2d83,_0x5a1d69=_0x59bbc3();while(!![]){try{const _0xe05c0f=-parseInt(_0x2b2425(0x258))/0x1*(-parseInt(_0x2b2425(0x275))/0x2)+-parseInt(_0x2b2425(0x26a))/0x3*(-parseInt(_0x2b2425(0x1ef))/0x4)+-parseInt(_0x2b2425(0x1a7))/0x5*(parseInt(_0x2b2425(0x20c))/0x6)+-parseInt(_0x2b2425(0x1ff))/0x7*(-parseInt(_0x2b2425(0x211))/0x8)+parseInt(_0x2b2425(0x256))/0x9*(parseInt(_0x2b2425(0x215))/0xa)+parseInt(_0x2b2425(0x1e4))/0xb+-parseInt(_0x2b2425(0x271))/0xc*(parseInt(_0x2b2425(0x25d))/0xd);if(_0xe05c0f===_0x431961)break;else _0x5a1d69['push'](_0x5a1d69['shift']());}catch(_0x2c3d4f){_0x5a1d69['push'](_0x5a1d69['shift']());}}}(a68_0x1e21,0x7e37c));function a68_0x2d83(_0x423bea,_0x55c84a){const _0x1e2167=a68_0x1e21();return a68_0x2d83=function(_0x2d837a,_0x262b71){_0x2d837a=_0x2d837a-0x1a2;let _0x24f7c2=_0x1e2167[_0x2d837a];return _0x24f7c2;},a68_0x2d83(_0x423bea,_0x55c84a);}function a68_0x1e21(){const _0x253708=['message','split','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','connection.js','rwmdK','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','util','mIgfu','Connection','format','3287086uBYzkr','platform','QvJLe','Failed\x20to\x20import\x20connection\x20from\x20','RDxBl','Efabu','isRemote','ImmEO','cloudProvider','tYncy','isRunning','168Lhivvz','browserName','string','_connection','nvGHh','ZXznc','EnJaH','apply','RnNYl','IVNYm','HhGVj','version','function','ThxjO','GMvHR','OPdAK','1059779qASHgv','Error\x20in\x20finding\x20platform\x20details\x20','Error\x20extracting\x20BrowserStack\x20parameters:\x20','AftWf','env','turboscale','sessionId','toString','rIBkq','Using\x20browser\x20name\x20from\x20browser\x20object:\x20','../v2/state/automationFrameworkState.js','POST','bsParams','6wIuQQd','platformVersion','browserstack_capabilities','test','BrowserStack\x20params\x20extracted\x20from\x20WebSocket\x20endpoint','32blUQsD','../v2/state/hookState.js','_defaultConnectOptions','mKrLe','1124590unVNLI','BMoko','ondik','patch','gecko','browserstack','url','bstack:options','fromEntries','RdxFg','toLowerCase','getInstance','Error\x20in\x20importing\x20connection\x20','IZhPu','qGpeH','NbYgj','defineProperty','wsEndpoint','osVersion','COeuh','JbLQO','tlHGU','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','Session\x20details\x20setup\x20complete:\x20','params','iagGQ','model','unknown_grid','../../helpers/helper','Ovmck','dispatch','../../helpers/logger','UlJOp','WORSb','firefox','client','Error\x20triggering\x20PLAYWRIGHT_DISPATCH\x20event:\x20','jpjrU','server','stringify','_name','eOFxu','platform_version','sessionError','browser','chromium','patchConnection','BSTACK_ATS_URL','OCCqZ','browserVersion','QOwkT','Connection\x20dispatch\x20already\x20patched','wkdgD','../../helpers/test-observability/utils','getAutomationFramework','ElxZL','getDetails','capabilties','os_version','bStackParams','msedge','browser_version','channel','extractBrowserStackParams','Setting\x20session\x20id\x20received\x20from\x20BS\x20','18dhXYim','jpQTZ','15069dyCBPB','webkit','DmZvc','patchCRConnection','emEXn','15930980PiviqE','includes','desiredCapabilities','edge','3|4|5|0|2|1','Error\x20in\x20importing\x20crConnection','WtHbn','parse','NfwVy','oyluk','debug','safari','instance','38607ZtPRMA','Successfully\x20patched\x20CRConnection._onMessage','project','mygDh','playwright-','exports','getTrackedInstance','12WdbfPP','accessibilityPlatform','setupBrowserDetails','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','134hUBRhQ','../../helpers/test-observability/error-handler','Error\x20parsing\x20WebSocket\x20endpoint:\x20','Browser\x20found\x20in\x20WebSocket\x20caps:\x20','BrowserStack\x20params\x20extracted\x20from\x20capabilities:\x20browser=','platformName','gbJeV','PLAYWRIGHT_DISPATCH','4685025BMZHSe','TLxhI','nXPJL','_bstackCRPatched','oTXOK','MUxIt','WjgaI','vRTRB','YpcdR','LQLlu','platformDetails','product','_browserType','join','prototype','chrome','VADus','BgVQi','entries','YYfhJ','lib','capabilities','iKevH','uLiEK','trackEvent','BmVtu',',\x20os=','bsSessionId','Not\x20able\x20to\x20import\x20crConnection','use','JSDeI','dYobd','jnCTN','CRConnection\x20already\x20patched','assign','currentSessionDetails','XUonp','caps','local_grid','_bstackDispatchPatched','soXWo','BROWSERSTACK_TEST_OBSERVABILITY','query','Error\x20in\x20getting\x20browser\x20from\x20WebSocket\x20endpoint:\x20','IpAxL','hQisF','ATS_WSS_URL_REGEX','Triggering\x20PLAYWRIGHT_DISPATCH\x20event','GWHHa','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','Found\x20Connection\x20class\x20at:\x20'];a68_0x1e21=function(){return _0x253708;};return a68_0x1e21();}const path=require('path'),url=require(a68_0x85a55b(0x21b)),util=require(a68_0x85a55b(0x1e0)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a68_0x85a55b(0x231)),{o11yErrorHandler}=require(a68_0x85a55b(0x276)),{debug,getPlatformDetails}=require(a68_0x85a55b(0x24a)),logger=require(a68_0x85a55b(0x234))['winstonLogger'],constants=require('./constants'),AutomationFramework=require('../v2/framework/automationFramework'),BrowserstackCLI=require('../v2/browserstackCLI'),AutomationFrameworkState=require(a68_0x85a55b(0x209)),HookState=require(a68_0x85a55b(0x212)),{platform}=require('os'),getBrowserNameFromChannel=_0x126161=>{const _0x2ade72=a68_0x85a55b,_0x403e42={};_0x403e42[_0x2ade72(0x1fe)]=_0x2ade72(0x261),_0x403e42[_0x2ade72(0x1f7)]=_0x2ade72(0x237),_0x403e42[_0x2ade72(0x1ed)]=function(_0x56532f,_0x28b9ba){return _0x56532f===_0x28b9ba;},_0x403e42[_0x2ade72(0x236)]=_0x2ade72(0x259),_0x403e42['iKevH']=_0x2ade72(0x268),_0x403e42[_0x2ade72(0x21e)]=_0x2ade72(0x242),_0x403e42[_0x2ade72(0x1ad)]='chrome',_0x403e42[_0x2ade72(0x1c7)]=_0x2ade72(0x260);const _0x15cfea=_0x403e42,_0x541277=_0x15cfea['OPdAK'][_0x2ade72(0x1db)]('|');let _0x3f24a2=0x0;while(!![]){switch(_0x541277[_0x3f24a2++]){case'0':if(_0x126161['includes'](_0x15cfea[_0x2ade72(0x1f7)]))return _0x15cfea['RnNYl'];continue;case'1':if(_0x15cfea[_0x2ade72(0x1ed)](_0x126161,_0x15cfea[_0x2ade72(0x236)]))return _0x15cfea[_0x2ade72(0x236)];continue;case'2':if(_0x126161[_0x2ade72(0x25e)](_0x15cfea[_0x2ade72(0x1bd)]))return _0x15cfea[_0x2ade72(0x1bd)];continue;case'3':if(_0x126161[_0x2ade72(0x25e)](_0x15cfea[_0x2ade72(0x21e)]))return _0x15cfea[_0x2ade72(0x21e)];continue;case'4':if(_0x126161['includes'](_0x15cfea[_0x2ade72(0x1ad)]))return _0x15cfea[_0x2ade72(0x1ad)];continue;case'5':if(_0x126161[_0x2ade72(0x25e)](_0x15cfea[_0x2ade72(0x1c7)]))return _0x15cfea['jnCTN'];continue;}break;}},getBrowserFromWSEndpoint=_0xb1d946=>{const _0x35eb6b=a68_0x85a55b,_0x574925={'HhGVj':_0x35eb6b(0x21c),'dYobd':function(_0x436d13,_0x35a224){return _0x436d13(_0x35a224);},'mygDh':_0x35eb6b(0x260),'BmVtu':_0x35eb6b(0x251),'oyluk':_0x35eb6b(0x237),'VADus':_0x35eb6b(0x219),'jpjrU':_0x35eb6b(0x268),'wkdgD':'webkit','nvGHh':_0x35eb6b(0x1b6),'RXLmR':function(_0x30082f,_0x4fc229){return _0x30082f(_0x4fc229);}};try{const _0x2e98ce=url[_0x35eb6b(0x264)](_0xb1d946),_0x28dab7=new URLSearchParams(_0x2e98ce['query']),_0x1aac46=Object[_0x35eb6b(0x21d)](_0x28dab7[_0x35eb6b(0x1b9)]()),_0x943a64=[_0x1aac46[_0x35eb6b(0x1cc)],_0x1aac46[_0x35eb6b(0x1bc)],_0x1aac46[_0x35eb6b(0x25f)],_0x1aac46[_0x35eb6b(0x20e)]];for(const _0x5eca9d of _0x943a64){if(_0x5eca9d)try{const _0x39deae=JSON[_0x35eb6b(0x264)](_0x5eca9d),_0x23e70c=_0x39deae[_0x35eb6b(0x1f0)]||_0x39deae[_0x35eb6b(0x241)]||_0x39deae[_0x574925[_0x35eb6b(0x1f9)]]?.['browserName'];if(_0x23e70c)return _0x574925[_0x35eb6b(0x1c6)](debug,_0x35eb6b(0x1a2)+_0x23e70c),_0x23e70c['toLowerCase']();}catch(_0x4b252a){_0x574925[_0x35eb6b(0x1c6)](debug,'Failed\x20to\x20parse\x20caps\x20from\x20WebSocket:\x20'+_0x4b252a['message']);}}if(_0xb1d946[_0x35eb6b(0x25e)](_0x574925[_0x35eb6b(0x26d)])||_0xb1d946[_0x35eb6b(0x25e)](_0x574925[_0x35eb6b(0x1c0)]))return _0x574925[_0x35eb6b(0x26d)];if(_0xb1d946[_0x35eb6b(0x25e)](_0x574925[_0x35eb6b(0x266)])||_0xb1d946['includes'](_0x574925[_0x35eb6b(0x1b7)]))return _0x574925[_0x35eb6b(0x266)];if(_0xb1d946[_0x35eb6b(0x25e)](_0x574925[_0x35eb6b(0x23a)])||_0xb1d946[_0x35eb6b(0x25e)](_0x574925[_0x35eb6b(0x249)]))return _0x574925[_0x35eb6b(0x23a)];return _0x574925['nvGHh'];}catch(_0x22a1b5){return _0x574925['RXLmR'](debug,_0x35eb6b(0x1d2)+_0x22a1b5[_0x35eb6b(0x206)]()),_0x574925[_0x35eb6b(0x1f3)];}},getCloudProviderFromWsEndpoint=_0x37ff9d=>{const _0x2ebd6c=a68_0x85a55b,_0x2f0df0={};_0x2f0df0[_0x2ebd6c(0x229)]=_0x2ebd6c(0x21a),_0x2f0df0['MUxIt']=_0x2ebd6c(0x230);const _0x33ce05=_0x2f0df0;if(_0x37ff9d[_0x2ebd6c(0x25e)](constants['BSTACK_URL'])||_0x37ff9d['includes'](constants[_0x2ebd6c(0x244)]))return _0x33ce05[_0x2ebd6c(0x229)];return _0x33ce05[_0x2ebd6c(0x1ac)];},a68_0x3bd94b={};a68_0x3bd94b['cloudProvider']=undefined,a68_0x3bd94b[a68_0x85a55b(0x1c2)]=undefined,a68_0x3bd94b['browser']=undefined,a68_0x3bd94b['browser_version']=undefined,a68_0x3bd94b['platform']=undefined,a68_0x3bd94b['platform_version']=undefined,a68_0x3bd94b[a68_0x85a55b(0x1b2)]=undefined,a68_0x3bd94b[a68_0x85a55b(0x1bc)]={};class SharedPlaywrightSessionDetails{static [a68_0x85a55b(0x1ca)]=a68_0x3bd94b;constructor(){const _0x357193=a68_0x85a55b,_0x3c1493={};_0x3c1493[_0x357193(0x216)]='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x3edffb=_0x3c1493;throw new Error(_0x3edffb[_0x357193(0x216)]);}static ['sessionError']=null;static[a68_0x85a55b(0x273)](_0xec0b1a,_0x109531,_0x5e443d=null){const _0x269b4f=a68_0x85a55b,_0x1f9858={'Efabu':function(_0x3cf0b8,_0x4b0c4c){return _0x3cf0b8===_0x4b0c4c;},'IVNYm':_0x269b4f(0x1fb),'qciwJ':_0x269b4f(0x22b),'NfwVy':function(_0x4ddb7c,_0x15a7e9){return _0x4ddb7c===_0x15a7e9;},'emEXn':'Device\x20Model\x20is\x20not\x20available','JSDeI':_0x269b4f(0x1cd),'Ovmck':function(_0x38a4c6,_0x3cf39e,_0x28c2fa){return _0x38a4c6(_0x3cf39e,_0x28c2fa);},'nXPJL':_0x269b4f(0x1b3),'QvJLe':_0x269b4f(0x213),'Myasi':function(_0x388087,_0x1827ab,_0x55064d){return _0x388087(_0x1827ab,_0x55064d);},'VGHRm':_0x269b4f(0x26c),'bnOYE':_0x269b4f(0x1c4),'oTXOK':'connectOptions','rIBkq':function(_0x460e49,_0xdd6a3a){return _0x460e49(_0xdd6a3a);},'JMebq':_0x269b4f(0x21a),'UyJKR':_0x269b4f(0x204),'ondik':'automate','PScQc':function(_0x429c2f,_0x2999a1){return _0x429c2f(_0x2999a1);},'iagGQ':_0x269b4f(0x242),'IZhPu':function(_0x31fc2b){return _0x31fc2b();},'bxXSf':function(_0x5c9558,_0x19c9b8){return _0x5c9558&&_0x19c9b8;},'uLiEK':function(_0x289c33){return _0x289c33();},'YYfhJ':function(_0x1ade35,_0x337747){return _0x1ade35(_0x337747);},'fhsrj':function(_0x4747b3,_0x13cec7){return _0x4747b3+_0x13cec7;},'BgVQi':_0x269b4f(0x26e),'qGpeH':function(_0x5f4901){return _0x5f4901();},'iudSK':function(_0x47c988,_0x1b6343,_0x5d4b23){return _0x47c988(_0x1b6343,_0x5d4b23);},'hQisF':_0x269b4f(0x273)},_0x40970b=this;return _0x1f9858['iudSK'](o11yErrorHandler,async function _0x11bd65(_0x2ededf,_0xa02b8,_0x2cdebb=null){const _0xc7e26c=_0x269b4f;let _0x2208f6=_0x2ededf[_0xc7e26c(0x23d)],_0x1ef332=null;_0x2ededf&&_0x1f9858[_0xc7e26c(0x1e9)](typeof _0x2ededf[_0xc7e26c(0x1fa)],_0x1f9858[_0xc7e26c(0x1f8)])?_0x1ef332=_0x2ededf[_0xc7e26c(0x1fa)]():logger[_0xc7e26c(0x267)](_0x1f9858['qciwJ']);let _0x326e96=null;_0x2ededf&&_0x1f9858[_0xc7e26c(0x265)](typeof _0x2ededf[_0xc7e26c(0x22f)],_0x1f9858[_0xc7e26c(0x1f8)])?_0x326e96=_0x2ededf[_0xc7e26c(0x22f)]():logger[_0xc7e26c(0x267)](_0x1f9858[_0xc7e26c(0x25c)]);let _0x11cddc=null,_0x2c0f21=null,_0x2432bb=null,_0x3686a8=_0x1f9858[_0xc7e26c(0x1c5)];if(_0x2ededf[_0xc7e26c(0x1f2)][_0xc7e26c(0x1ea)]()||global[_0xc7e26c(0x272)]){let _0x52bba5=null;_0x1f9858[_0xc7e26c(0x232)](nestedKeyValue,_0x2ededf,[_0x1f9858[_0xc7e26c(0x1a9)],_0x1f9858[_0xc7e26c(0x1e6)]])?_0x52bba5=_0x2ededf[_0xc7e26c(0x1b3)]['_defaultConnectOptions']:_0x52bba5=_0x1f9858['Myasi'](nestedKeyValue,_0xa02b8,[_0x1f9858['VGHRm'],_0x1f9858['bnOYE'],_0x1f9858[_0xc7e26c(0x1ab)]]);const _0x127207=_0x2cdebb||_0x52bba5&&_0x52bba5[_0xc7e26c(0x226)];if(_0x127207){_0x3686a8=_0x1f9858[_0xc7e26c(0x207)](getCloudProviderFromWsEndpoint,_0x127207);if(_0x1f9858['NfwVy'](_0x3686a8,_0x1f9858['JMebq'])){_0x2432bb=constants[_0xc7e26c(0x1d5)][_0xc7e26c(0x20f)](_0x127207)?_0x1f9858['UyJKR']:_0x1f9858[_0xc7e26c(0x217)];const _0x28a732=_0x1f9858['PScQc'](getBrowserFromWSEndpoint,_0x127207);if(_0x28a732&&(!_0x2208f6||_0x1f9858[_0xc7e26c(0x265)](_0x2208f6,_0x1f9858[_0xc7e26c(0x22e)])))_0x2208f6=_0x28a732,logger[_0xc7e26c(0x267)]('Browser\x20name\x20overridden\x20from\x20WebSocket\x20endpoint:\x20'+_0x2208f6);else _0x2208f6&&logger[_0xc7e26c(0x267)](_0xc7e26c(0x208)+_0x2208f6);_0x11cddc=_0x40970b[_0xc7e26c(0x1ca)][_0xc7e26c(0x1e5)],_0x2c0f21=_0x40970b[_0xc7e26c(0x1ca)]['platform_version'];}else{const _0xa7e491=await _0x1f9858['IZhPu'](getPlatformDetails);_0x11cddc=_0xa7e491[_0xc7e26c(0x1a4)],_0x2c0f21=_0xa7e491[_0xc7e26c(0x20d)];}}if(_0x1f9858['bxXSf'](!_0x11cddc,!_0x2c0f21)&&!_0x1f9858[_0xc7e26c(0x222)](isBrowserstackInfra)){const _0x5f5dec=await _0x1f9858[_0xc7e26c(0x1be)](getPlatformDetails);_0x11cddc=_0x5f5dec[_0xc7e26c(0x1a4)],_0x2c0f21=_0x5f5dec[_0xc7e26c(0x20d)];}}else{_0xa02b8&&_0xa02b8[_0xc7e26c(0x26c)]&&_0xa02b8['project'][_0xc7e26c(0x1c4)]&&_0xa02b8[_0xc7e26c(0x26c)][_0xc7e26c(0x1c4)][_0xc7e26c(0x253)]?_0x2208f6=_0x1f9858[_0xc7e26c(0x1ba)](getBrowserNameFromChannel,_0xa02b8[_0xc7e26c(0x26c)][_0xc7e26c(0x1c4)][_0xc7e26c(0x253)]):_0x2208f6=_0x1f9858['fhsrj'](_0x1f9858[_0xc7e26c(0x1b8)],_0x2208f6[_0xc7e26c(0x21f)]());const _0x18b3d8=await _0x1f9858[_0xc7e26c(0x223)](getPlatformDetails);_0x11cddc=_0x18b3d8[_0xc7e26c(0x1a4)],_0x2c0f21=_0x18b3d8[_0xc7e26c(0x20d)];}const _0x50f451={};_0x50f451[_0xc7e26c(0x241)]=_0x2208f6,_0x50f451[_0xc7e26c(0x252)]=_0x1ef332,_0x50f451[_0xc7e26c(0x1bc)]={},_0x50f451[_0xc7e26c(0x1e5)]=_0x11cddc,_0x50f451[_0xc7e26c(0x23f)]=_0x2c0f21,_0x50f451[_0xc7e26c(0x1b2)]=_0x2432bb;const _0x3a14a0=_0x50f451;_0x326e96&&(_0x3a14a0['capabilities']['deviceModel']=_0x326e96);const _0x8a5da2={};_0x8a5da2[_0xc7e26c(0x1ec)]=_0x3686a8,_0x40970b[_0xc7e26c(0x1ca)]=Object[_0xc7e26c(0x1c9)]({},_0x40970b[_0xc7e26c(0x1ca)],_0x8a5da2,_0x3a14a0);const _0xaa99f1={};_0xaa99f1['browser']=_0x40970b['currentSessionDetails'][_0xc7e26c(0x241)],_0xaa99f1[_0xc7e26c(0x246)]=_0x40970b[_0xc7e26c(0x1ca)]['browser_version'],_0xaa99f1[_0xc7e26c(0x1e5)]=_0x40970b['currentSessionDetails']['platform'],_0xaa99f1['platformVersion']=_0x40970b[_0xc7e26c(0x1ca)][_0xc7e26c(0x23f)],_0xaa99f1[_0xc7e26c(0x1ec)]=_0x40970b['currentSessionDetails'][_0xc7e26c(0x1ec)],_0xaa99f1['product']=_0x40970b['currentSessionDetails']['product'],logger[_0xc7e26c(0x267)](_0xc7e26c(0x22c)+JSON[_0xc7e26c(0x23c)](_0xaa99f1));},_0x1f9858[_0x269b4f(0x1d4)])(_0xec0b1a,_0x109531,_0x5e443d);}static[a68_0x85a55b(0x218)](){const _0x466ebe=a68_0x85a55b;this[_0x466ebe(0x243)](),this[_0x466ebe(0x25b)]();}static[a68_0x85a55b(0x243)](){const _0x25f63b=a68_0x85a55b,_0x46256a={'OCCqZ':function(_0x1435cf,_0x57ad11){return _0x1435cf(_0x57ad11);},'JWpUp':_0x25f63b(0x1bb),'GMvHR':_0x25f63b(0x238),'tlHGU':_0x25f63b(0x1dd),'IpAxL':function(_0x3c739e,_0x53f568){return _0x3c739e(_0x53f568);},'GWHHa':function(_0x468b39,_0x2ac1c1){return _0x468b39(_0x2ac1c1);},'ImmEO':function(_0x46e68c,_0x5d192d){return _0x46e68c(_0x5d192d);},'jpQTZ':'Not\x20able\x20to\x20import\x20Connection\x20class\x20from\x20any\x20path','TLxhI':function(_0x3ddff4,_0x16c4fd){return _0x3ddff4!=_0x16c4fd;},'HyjzM':_0x25f63b(0x248),'QOwkT':_0x25f63b(0x233),'vGVbc':'Successfully\x20patched\x20Connection.dispatch'},_0x2eb94a=this;if(!this[_0x25f63b(0x1e2)])try{const _0x2d6f79=[path['join'](_0x46256a['JWpUp'],_0x46256a[_0x25f63b(0x1fd)],_0x46256a[_0x25f63b(0x22a)]),path[_0x25f63b(0x1b4)](_0x46256a['JWpUp'],_0x46256a['tlHGU']),path['join'](_0x46256a[_0x25f63b(0x1fd)],_0x46256a[_0x25f63b(0x22a)])];for(const _0x500bfc of _0x2d6f79){try{const _0x3f55a2=_0x46256a[_0x25f63b(0x1d3)](importFileFromPWCore,_0x500bfc);if(_0x3f55a2&&_0x3f55a2['Connection']){this[_0x25f63b(0x1e2)]=_0x3f55a2[_0x25f63b(0x1e2)],logger[_0x25f63b(0x267)](_0x25f63b(0x1d9)+_0x500bfc);break;}}catch(_0x5937d0){_0x46256a[_0x25f63b(0x1d7)](debug,_0x25f63b(0x1e7)+_0x500bfc+':\x20'+_0x5937d0[_0x25f63b(0x206)]());}}if(!this[_0x25f63b(0x1e2)]){_0x46256a[_0x25f63b(0x1eb)](debug,_0x46256a[_0x25f63b(0x257)]);return;}}catch(_0x4f2ce7){_0x46256a[_0x25f63b(0x245)](debug,_0x25f63b(0x221)+_0x4f2ce7['toString']());return;}const _0x55a553=this[_0x25f63b(0x1e2)];try{if(_0x46256a[_0x25f63b(0x1a8)](_0x55a553,null)){const _0x2a6264=_0x55a553[_0x25f63b(0x1b5)]['dispatch'];if(!_0x46256a[_0x25f63b(0x245)](isFalse,process[_0x25f63b(0x203)][_0x25f63b(0x1d0)])){if(_0x55a553[_0x25f63b(0x1b5)][_0x25f63b(0x1ce)]){logger[_0x25f63b(0x267)](_0x46256a['HyjzM']);return;}Object[_0x25f63b(0x225)](_0x55a553[_0x25f63b(0x1b5)],_0x46256a[_0x25f63b(0x247)],{'get':function(){const _0x438070={'DmZvc':function(_0x25df63,_0x517308){const _0x597a8a=a68_0x2d83;return _0x46256a[_0x597a8a(0x245)](_0x25df63,_0x517308);}};return async function _0x115ee4(_0x3ce5b3){const _0x4ac74f=a68_0x2d83;if(BrowserstackCLI[_0x4ac74f(0x220)]()[_0x4ac74f(0x1ee)]()){const _0x4693ed={};_0x4693ed[_0x4ac74f(0x1da)]=_0x3ce5b3,await BrowserstackCLI[_0x4ac74f(0x220)]()[_0x4ac74f(0x24b)]()['trackEvent'](AutomationFrameworkState[_0x4ac74f(0x1a6)],HookState[_0x4ac74f(0x20a)],_0x4693ed);}else{const _0x5f385b=_0x3ce5b3&&_0x3ce5b3['params']&&_0x3ce5b3[_0x4ac74f(0x22d)][_0x4ac74f(0x20b)];if(_0x5f385b){const _0x193053=_0x5f385b[_0x4ac74f(0x205)],_0x2e7d71=_0x5f385b[_0x4ac74f(0x1b1)];_0x2e7d71&&(_0x438070[_0x4ac74f(0x25a)](debug,_0x4ac74f(0x274)+_0x2e7d71[_0x4ac74f(0x206)]()),_0x2eb94a[_0x4ac74f(0x1ca)][_0x4ac74f(0x1e5)]=_0x2e7d71[_0x4ac74f(0x1a4)],_0x2eb94a['currentSessionDetails'][_0x4ac74f(0x23f)]=_0x2e7d71[_0x4ac74f(0x20d)]),_0x193053&&(_0x438070[_0x4ac74f(0x25a)](debug,_0x4ac74f(0x255)+_0x193053),_0x2eb94a[_0x4ac74f(0x1ca)]['bsSessionId']=_0x193053);}}return _0x2a6264[_0x4ac74f(0x1f6)](this,arguments);};}}),_0x55a553[_0x25f63b(0x1b5)][_0x25f63b(0x1ce)]=!![],logger[_0x25f63b(0x267)](_0x46256a['vGVbc']);}}}catch(_0x333d63){_0x46256a[_0x25f63b(0x1eb)](debug,'Error\x20in\x20applying\x20Connection\x20patch\x20'+_0x333d63),_0x2eb94a['sessionError']=_0x333d63[_0x25f63b(0x206)]();}}static[a68_0x85a55b(0x25b)](){const _0x4b7bc6=a68_0x85a55b,_0x72f63={'YpcdR':function(_0x5793d6,_0x2fbe07){return _0x5793d6(_0x2fbe07);},'NbYgj':_0x4b7bc6(0x1bb),'UlJOp':_0x4b7bc6(0x23b),'KoCcM':_0x4b7bc6(0x242),'ZOvuE':'crConnection.js','mIgfu':function(_0x5706aa,_0x5dc1a1){return _0x5706aa(_0x5dc1a1);},'eOFxu':_0x4b7bc6(0x1c3),'soXWo':function(_0x21b81a,_0x3423b1){return _0x21b81a(_0x3423b1);},'ElxZL':_0x4b7bc6(0x262),'WtHbn':function(_0x17d922,_0x481385){return _0x17d922!=_0x481385;},'XUonp':_0x4b7bc6(0x1c8),'ThxjO':'_onMessage','mKrLe':_0x4b7bc6(0x26b),'LQLlu':function(_0x573099,_0x131230){return _0x573099(_0x131230);}},_0x23946a=this;let _0x38b05c=null;try{const _0x2d523e=path[_0x4b7bc6(0x1b4)](_0x72f63[_0x4b7bc6(0x224)],_0x72f63[_0x4b7bc6(0x235)],_0x72f63['KoCcM'],_0x72f63['ZOvuE']),_0x1ce4f5=_0x72f63[_0x4b7bc6(0x1e1)](importFileFromPWCore,_0x2d523e);!_0x1ce4f5?_0x72f63[_0x4b7bc6(0x1af)](debug,_0x72f63[_0x4b7bc6(0x23e)]):_0x38b05c=_0x1ce4f5['CRConnection'];}catch(_0x3ed3ef){_0x72f63[_0x4b7bc6(0x1cf)](debug,_0x72f63[_0x4b7bc6(0x24c)]);}try{if(_0x72f63[_0x4b7bc6(0x263)](_0x38b05c,null)){const _0x4bbb51=_0x38b05c[_0x4b7bc6(0x1b5)]['_onMessage'];if(_0x38b05c[_0x4b7bc6(0x1b5)][_0x4b7bc6(0x1aa)]){logger[_0x4b7bc6(0x267)](_0x72f63[_0x4b7bc6(0x1cb)]);return;}Object[_0x4b7bc6(0x225)](_0x38b05c['prototype'],_0x72f63[_0x4b7bc6(0x1fc)],{'get':function(){return async function _0x3e4896(_0x54d89c){const _0x525022=a68_0x2d83;try{if(BrowserstackCLI[_0x525022(0x220)]()['isRunning']()){const _0x7bae15={};_0x7bae15['message']=_0x54d89c,await BrowserstackCLI[_0x525022(0x220)]()['getAutomationFramework']()[_0x525022(0x1bf)](AutomationFrameworkState[_0x525022(0x1a6)],HookState[_0x525022(0x20a)],_0x7bae15),delete _0x54d89c[_0x525022(0x250)];}else{const _0x476f95=_0x54d89c[_0x525022(0x250)];if(_0x476f95){delete _0x54d89c['bStackParams'];const _0xa29ac8=_0x476f95[_0x525022(0x205)],_0x294114=_0x476f95[_0x525022(0x1b1)];_0x294114&&(_0x72f63[_0x525022(0x1af)](debug,_0x525022(0x1d8)+_0x294114[_0x525022(0x206)]()),_0x23946a[_0x525022(0x1ca)]['platform']=_0x294114[_0x525022(0x1a4)],_0x23946a[_0x525022(0x1ca)][_0x525022(0x23f)]=_0x294114[_0x525022(0x20d)]),_0xa29ac8&&(_0x72f63[_0x525022(0x1af)](debug,_0x525022(0x1dc)+_0xa29ac8),_0x23946a[_0x525022(0x1ca)][_0x525022(0x1c2)]=_0xa29ac8);}}}catch(_0x3d0038){_0x72f63[_0x525022(0x1af)](debug,_0x525022(0x200)+_0x3d0038[_0x525022(0x206)]());}return _0x4bbb51[_0x525022(0x1f6)](this,arguments);};}}),_0x38b05c[_0x4b7bc6(0x1b5)]['_bstackCRPatched']=!![],logger['debug'](_0x72f63[_0x4b7bc6(0x214)]);}}catch(_0x1c1fbf){_0x72f63[_0x4b7bc6(0x1b0)](debug,_0x4b7bc6(0x1df)+_0x1c1fbf),_0x23946a[_0x4b7bc6(0x240)]=_0x1c1fbf[_0x4b7bc6(0x206)]();}}static[a68_0x85a55b(0x254)](_0x350a8b,_0x1fbb8c){const _0x1a6d7b=a68_0x85a55b,_0x1faa68={'ZXznc':'bstack:options','RDxBl':function(_0x46b98f,_0xeac015){return _0x46b98f||_0xeac015;},'LupYK':function(_0x19bb35,_0x7ce390){return _0x19bb35||_0x7ce390;},'gbJeV':function(_0x1e9978,_0x65eff1){return _0x1e9978===_0x65eff1;},'WbkzC':_0x1a6d7b(0x1f1),'LaWqs':_0x1a6d7b(0x210),'EnJaH':function(_0x2b9c3a,_0x5e533e){return _0x2b9c3a(_0x5e533e);}};let _0x1cb35e=null,_0x3be8ce=null;try{const _0x5e51a8=[_0x1fbb8c,global['__platformCaps'],global[_0x1a6d7b(0x24e)]];for(const _0x152a85 of _0x5e51a8){if(_0x152a85&&(!_0x3be8ce||!_0x3be8ce['sessionId'])){const _0x2da80c=_0x152a85['sessionId']||_0x152a85[_0x1faa68['ZXznc']]?.[_0x1a6d7b(0x205)],_0x3b546b=_0x152a85[_0x1a6d7b(0x1f0)]||_0x152a85[_0x1a6d7b(0x241)]||_0x152a85[_0x1faa68['ZXznc']]?.[_0x1a6d7b(0x1f0)],_0x432f89=_0x152a85[_0x1a6d7b(0x246)]||_0x152a85['browser_version']||_0x152a85[_0x1faa68[_0x1a6d7b(0x1f4)]]?.[_0x1a6d7b(0x246)],_0x2b7a3d=_0x152a85['os']||_0x152a85[_0x1a6d7b(0x1e5)]||_0x152a85[_0x1faa68[_0x1a6d7b(0x1f4)]]?.['os'],_0x5a7e25=_0x152a85['osVersion']||_0x152a85[_0x1a6d7b(0x24f)]||_0x152a85[_0x1faa68[_0x1a6d7b(0x1f4)]]?.['osVersion'];if(_0x1faa68[_0x1a6d7b(0x1e8)](_0x2da80c,_0x3b546b)||_0x2b7a3d){const _0x4cd88f={};_0x4cd88f[_0x1a6d7b(0x1f0)]=_0x3b546b,_0x4cd88f[_0x1a6d7b(0x246)]=_0x432f89,_0x4cd88f['os']=_0x2b7a3d,_0x4cd88f['osVersion']=_0x5a7e25,_0x4cd88f['platformName']=_0x152a85[_0x1a6d7b(0x1a4)]||_0x2b7a3d,_0x4cd88f[_0x1a6d7b(0x20d)]=_0x152a85['platformVersion']||_0x5a7e25;const _0x976a6d={};_0x976a6d[_0x1a6d7b(0x205)]=_0x2da80c,_0x976a6d['platformDetails']=_0x4cd88f,_0x3be8ce=_0x976a6d;if(_0x1faa68['LupYK'](_0x2da80c,_0x3b546b)){logger[_0x1a6d7b(0x267)](_0x1a6d7b(0x1a3)+_0x3b546b+_0x1a6d7b(0x1c1)+_0x2b7a3d);break;}}}}if(_0x350a8b&&_0x1faa68[_0x1a6d7b(0x1a5)](typeof _0x350a8b,_0x1faa68['WbkzC']))try{const _0x20d5f7=url[_0x1a6d7b(0x264)](_0x350a8b),_0x9fd1c6=new URLSearchParams(_0x20d5f7[_0x1a6d7b(0x1d1)]),_0x3f5b57=Object[_0x1a6d7b(0x21d)](_0x9fd1c6[_0x1a6d7b(0x1b9)]()),_0xb5b59a=[_0x3f5b57[_0x1a6d7b(0x1cc)],_0x3f5b57[_0x1a6d7b(0x1bc)],_0x3f5b57[_0x1a6d7b(0x25f)]];for(const _0x16633d of _0xb5b59a){if(_0x16633d&&(!_0x1cb35e||!_0x1cb35e[_0x1a6d7b(0x205)]))try{const _0x2c5b76=JSON[_0x1a6d7b(0x264)](_0x16633d),_0x3c98bd={};_0x3c98bd[_0x1a6d7b(0x205)]=_0x2c5b76[_0x1a6d7b(0x205)]||_0x2c5b76[_0x1faa68[_0x1a6d7b(0x1f4)]]?.[_0x1a6d7b(0x205)],_0x3c98bd[_0x1a6d7b(0x1b1)]={},_0x3c98bd[_0x1a6d7b(0x1b1)][_0x1a6d7b(0x1f0)]=_0x2c5b76['browserName']||_0x2c5b76[_0x1a6d7b(0x241)],_0x3c98bd[_0x1a6d7b(0x1b1)][_0x1a6d7b(0x246)]=_0x2c5b76[_0x1a6d7b(0x246)]||_0x2c5b76['browser_version'],_0x3c98bd[_0x1a6d7b(0x1b1)]['os']=_0x2c5b76['os']||_0x2c5b76[_0x1a6d7b(0x1e5)],_0x3c98bd[_0x1a6d7b(0x1b1)][_0x1a6d7b(0x227)]=_0x2c5b76[_0x1a6d7b(0x227)]||_0x2c5b76[_0x1a6d7b(0x24f)],_0x3c98bd[_0x1a6d7b(0x1b1)][_0x1a6d7b(0x1a4)]=_0x2c5b76[_0x1a6d7b(0x1a4)]||_0x2c5b76['os']||_0x2c5b76['platform'],_0x3c98bd[_0x1a6d7b(0x1b1)][_0x1a6d7b(0x20d)]=_0x2c5b76[_0x1a6d7b(0x20d)]||_0x2c5b76[_0x1a6d7b(0x227)]||_0x2c5b76[_0x1a6d7b(0x24f)],_0x1cb35e=_0x3c98bd;if(_0x1cb35e['sessionId']||_0x1cb35e[_0x1a6d7b(0x1b1)][_0x1a6d7b(0x1f0)]){logger[_0x1a6d7b(0x267)](_0x1faa68['LaWqs']);break;}}catch(_0x397857){_0x1faa68[_0x1a6d7b(0x1f5)](debug,'Failed\x20to\x20parse\x20capabilities\x20from\x20WebSocket:\x20'+_0x397857[_0x1a6d7b(0x206)]());}}}catch(_0x356bdc){_0x1faa68[_0x1a6d7b(0x1f5)](debug,_0x1a6d7b(0x277)+_0x356bdc[_0x1a6d7b(0x206)]());}}catch(_0x45879e){_0x1faa68['EnJaH'](debug,_0x1a6d7b(0x201)+util['format'](_0x45879e));}const _0x3b4daf={};return _0x3b4daf['bsParams']=_0x1cb35e,_0x3b4daf['bStackParams']=_0x3be8ce,_0x3b4daf;}static async['triggerPlaywrightDispatchEvent'](_0xe01367,_0x71869a){const _0x2c4e6f=a68_0x85a55b,_0x1837fd={'AftWf':function(_0xe3ad6f,_0x290f21){return _0xe3ad6f||_0x290f21;},'rwmdK':_0x2c4e6f(0x1d6),'vRTRB':function(_0x1ccd4f,_0x1406e5){return _0x1ccd4f||_0x1406e5;},'COeuh':function(_0x4a4694,_0x4b9be5){return _0x4a4694(_0x4b9be5);}};try{if(!BrowserstackCLI[_0x2c4e6f(0x220)]()['isRunning']())return;if(_0x1837fd[_0x2c4e6f(0x202)](_0xe01367,_0x71869a)){logger[_0x2c4e6f(0x267)](_0x1837fd[_0x2c4e6f(0x1de)]);const _0x58cff9={'params':_0xe01367?{'bsParams':_0xe01367}:null,'bStackParams':_0x1837fd[_0x2c4e6f(0x1ae)](_0x71869a,null)},_0x3f244c=AutomationFramework[_0x2c4e6f(0x270)](),_0x2b4cb5={};_0x2b4cb5[_0x2c4e6f(0x1da)]=_0x58cff9,_0x2b4cb5[_0x2c4e6f(0x269)]=_0x3f244c,await BrowserstackCLI[_0x2c4e6f(0x220)]()[_0x2c4e6f(0x24b)]()['trackEvent'](AutomationFrameworkState[_0x2c4e6f(0x1a6)],HookState[_0x2c4e6f(0x20a)],_0x2b4cb5);}}catch(_0x633e1d){_0x1837fd[_0x2c4e6f(0x228)](debug,_0x2c4e6f(0x239)+util[_0x2c4e6f(0x1e3)](_0x633e1d));}}static[a68_0x85a55b(0x24d)](){const _0x2b4271=a68_0x85a55b;return this[_0x2b4271(0x1ca)];}}module[a68_0x85a55b(0x26f)]=SharedPlaywrightSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a69_0x5633(_0x4ff1b6,_0x4f359b){const _0x2ac51f=a69_0x2ac5();return a69_0x5633=function(_0x5633c0,_0x4b34b7){_0x5633c0=_0x5633c0-0x86;let _0x313e73=_0x2ac51f[_0x5633c0];return _0x313e73;},a69_0x5633(_0x4ff1b6,_0x4f359b);}const a69_0xd668df=a69_0x5633;(function(_0x232cc4,_0x50b4d5){const _0xd3287b=a69_0x5633,_0x4381d3=_0x232cc4();while(!![]){try{const _0xc1edf7=parseInt(_0xd3287b(0x86))/0x1*(-parseInt(_0xd3287b(0x96))/0x2)+parseInt(_0xd3287b(0x87))/0x3*(-parseInt(_0xd3287b(0x8b))/0x4)+parseInt(_0xd3287b(0x90))/0x5*(parseInt(_0xd3287b(0x97))/0x6)+-parseInt(_0xd3287b(0x93))/0x7+parseInt(_0xd3287b(0x8c))/0x8*(parseInt(_0xd3287b(0x95))/0x9)+-parseInt(_0xd3287b(0x91))/0xa*(-parseInt(_0xd3287b(0x8f))/0xb)+parseInt(_0xd3287b(0x8d))/0xc;if(_0xc1edf7===_0x50b4d5)break;else _0x4381d3['push'](_0x4381d3['shift']());}catch(_0x177a9f){_0x4381d3['push'](_0x4381d3['shift']());}}}(a69_0x2ac5,0xae969));function a69_0x2ac5(){const _0x4ee492=['reduce','isHash','exports','39888VTFbbA','8wTzmbb','12955716qFFCsb','isArray','715vEGgGY','1827890WVLRwY','3990QflVdj','IFfJj','7662599stpQOX','nestedKeyValue','12482766wguFjy','1997000nwQGUW','6SXKtHJ','function','RCvgJ','get','gYoBw','1tNtVAt','15wkIJGi'];a69_0x2ac5=function(){return _0x4ee492;};return a69_0x2ac5();}const isHash=_0x24c2cb=>Boolean(_0x24c2cb&&typeof _0x24c2cb==='object'&&!Array[a69_0xd668df(0x8e)](_0x24c2cb)),nestedKeyValue=(_0x2aea9c,_0x25cdf8)=>{const _0x52b38d=a69_0xd668df,_0x2608f4={'IFfJj':function(_0x258149,_0x28638e){return _0x258149===_0x28638e;},'gYoBw':_0x52b38d(0x98),'RCvgJ':function(_0x31100e,_0x858081){return _0x31100e(_0x858081);}};return _0x25cdf8[_0x52b38d(0x88)]((_0x23f0b8,_0x1b2c65)=>{const _0x450491=_0x52b38d;if(_0x2608f4[_0x450491(0x92)](_0x23f0b8,undefined)||_0x2608f4[_0x450491(0x92)](_0x23f0b8,null))return undefined;if(_0x23f0b8&&_0x2608f4[_0x450491(0x92)](typeof _0x23f0b8[_0x450491(0x9a)],_0x2608f4[_0x450491(0x9b)]))return _0x23f0b8['get'](_0x1b2c65);if(_0x2608f4[_0x450491(0x99)](isHash,_0x23f0b8))return _0x23f0b8[_0x1b2c65];return undefined;},_0x2aea9c);},a69_0x2f6c88={};a69_0x2f6c88[a69_0xd668df(0x89)]=isHash,a69_0x2f6c88[a69_0xd668df(0x94)]=nestedKeyValue,module[a69_0xd668df(0x8a)]=a69_0x2f6c88;
|
package/src/bin/v2/TestInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a66_0x2695(){const _0x5ba919=['getStoreDirName','message','jeICD','FYgZM','\x20Retrieving\x20logs\x20for\x20','PbNZC','testFramework','retry','jTrCw','getTestIdentifierFromTestInfo','\x20Adding\x20console\x20log\x20for\x20','7gnUSmi','HQlnA','oPNOP','format','writeFileSync','QwkEu','27TnPhHG','Error\x20writing\x20test\x20details\x20to\x20file\x20for\x20','RDWZV','readLogObjects','trace_','Setting\x20up\x20TestInfo\x20directory\x20at\x20','existsSync','error','szPIU','7561080DemVdA','getTestRunIdFromTestInfo','../../helpers/classLogger.js','logObjects','dzKtn','SEIBX','.json','4141992JhqOuw','getTestIdFromTestInfo','dirPath','tHcwJ','push','testId','2377470LWrdQX','lockSync','getTestUUID','tests','some','SNmSL','readLogObjects:\x20No\x20logObjects\x20object\x20found\x20for\x20testId:\x20','toString','storeLogObjects:\x20processId:\x20','_traceZipPaths.json','_test','XNgRN','mDRst','_platformDetails.json','readFileSync','default','yiIZR','\x20Setting\x20test\x20details\x20for\x20','../../helpers/helper','../../helpers/logger','.\x20Unable\x20to\x20add\x20console\x20log.','.\x20Unable\x20to\x20set\x20test\x20details.','yyBui','resolve','appendToTracePaths','mBMCY','Error\x20writing\x20trace\x20file:\x20%O','lKpBe','pid','uuid','5328010fqUbSO','TnUXb','pFNvV','getTraceFilePaths','addTraceFilePath','dArxM','debug','logger','getTestDetails','isArray','join','appendFileSync','VeCEU','BS_TESTOPS_BUILD_HASHED_ID','winstonLogger','object','traceZipDir','util','JXqZq','__projectId','stringify','length','env','force','Failed\x20to\x20acquire\x20lock\x20for\x20','MkiCm','RFZCz','JsTwj','uevLS','split','TsqHw','dfQIj','getProjectIdFromTestInfo','getAccessibilityPlatformValidation','../../helpers/test-observability/constants','getTraceZipDir','mergeDeep','6994035gEwGlu','uItwR','mkdirSync','[setTestDetails]\x20processId:\x20','5935554jhDpBX','shutdown','getStoreDirPath','141898mYPHKx','recursive','setup','proper-lockfile','filePath','jSFdD','_projectId','forEach','\x20with\x20details:\x20','dEHSF','getFilePath','readdirSync','parse','rUNxk','homedir','traceZipPaths','JAfTr','path','3|6|4|1|5|2|0','rmSync'];a66_0x2695=function(){return _0x5ba919;};return a66_0x2695();}const a66_0x4ee45d=a66_0x2a46;(function(_0x529711,_0x55df21){const _0x302724=a66_0x2a46,_0x364f5e=_0x529711();while(!![]){try{const _0x4ed58a=-parseInt(_0x302724(0x1d7))/0x1*(parseInt(_0x302724(0x1b2))/0x2)+-parseInt(_0x302724(0x1ed))/0x3+parseInt(_0x302724(0x1e0))/0x4+parseInt(_0x302724(0x186))/0x5+-parseInt(_0x302724(0x1af))/0x6*(-parseInt(_0x302724(0x1d1))/0x7)+parseInt(_0x302724(0x1e7))/0x8+-parseInt(_0x302724(0x1ab))/0x9;if(_0x4ed58a===_0x55df21)break;else _0x364f5e['push'](_0x364f5e['shift']());}catch(_0x34ecdf){_0x364f5e['push'](_0x364f5e['shift']());}}}(a66_0x2695,0xeeaf4));const fs=require('fs'),path=require(a66_0x4ee45d(0x1c3)),{TEMP_STORE_DIR_NAME}=require(a66_0x4ee45d(0x1a8)),{nestedKeyValue}=require(a66_0x4ee45d(0x1ff)),logger=require(a66_0x4ee45d(0x200))[a66_0x4ee45d(0x194)],util=require(a66_0x4ee45d(0x197)),helper=require('../../helpers/helper'),{createClassLogger}=require(a66_0x4ee45d(0x1e2)),lockfile=require(a66_0x4ee45d(0x1b5)),{v4:uuidv4}=require(a66_0x4ee45d(0x185));class TestInfo{static [a66_0x4ee45d(0x1f0)]={};static [a66_0x4ee45d(0x1e9)]=TestInfo[a66_0x4ee45d(0x1c6)]();static ['traceZipDir']=path[a66_0x4ee45d(0x190)](TestInfo[a66_0x4ee45d(0x1e9)],a66_0x4ee45d(0x1c1));static [a66_0x4ee45d(0x1cc)]=null;[a66_0x4ee45d(0x18d)]=createClassLogger('TestInfo');static[a66_0x4ee45d(0x1b4)](_0x22c540){const _0x2f6735=a66_0x4ee45d,_0x4acaec={};_0x4acaec[_0x2f6735(0x181)]=_0x2f6735(0x1c4),_0x4acaec[_0x2f6735(0x192)]=_0x2f6735(0x1c1);const _0x32b3d8=_0x4acaec,_0x46c080=_0x32b3d8[_0x2f6735(0x181)][_0x2f6735(0x1a3)]('|');let _0x4df7ef=0x0;while(!![]){switch(_0x46c080[_0x4df7ef++]){case'0':logger['info'](_0x2f6735(0x1dc)+this[_0x2f6735(0x1e9)]);continue;case'1':this[_0x2f6735(0x1b0)]();continue;case'2':const _0x33439e={};_0x33439e['recursive']=!![],fs[_0x2f6735(0x1ad)](this[_0x2f6735(0x196)],_0x33439e);continue;case'3':this[_0x2f6735(0x1e9)]=TestInfo['getStoreDirName']();continue;case'4':this[_0x2f6735(0x1cc)]=_0x22c540;continue;case'5':const _0x1ebbba={};_0x1ebbba['recursive']=!![],fs[_0x2f6735(0x1ad)](this[_0x2f6735(0x1e9)],_0x1ebbba);continue;case'6':this[_0x2f6735(0x196)]=path[_0x2f6735(0x190)](this[_0x2f6735(0x1e9)],_0x32b3d8[_0x2f6735(0x192)]);continue;}break;}}static[a66_0x4ee45d(0x1c6)](){const _0x541c13=a66_0x4ee45d,_0x395d86={};_0x395d86[_0x541c13(0x1a1)]=function(_0x42e850,_0xbc1b29){return _0x42e850+_0xbc1b29;},_0x395d86[_0x541c13(0x1df)]=_0x541c13(0x1fc);const _0x52557a=_0x395d86;return _0x52557a[_0x541c13(0x1a1)](_0x52557a[_0x541c13(0x1a1)](TEMP_STORE_DIR_NAME,'-'),process[_0x541c13(0x19c)][_0x541c13(0x193)]||_0x52557a[_0x541c13(0x1df)]);}static['getStoreDirPath'](){const _0x48f7e9=a66_0x4ee45d,_0x43e879={};_0x43e879[_0x48f7e9(0x1f9)]=function(_0x40e15c,_0x145a8a){return _0x40e15c+_0x145a8a;},_0x43e879['yiIZR']=function(_0x39871b,_0x1bff18){return _0x39871b+_0x1bff18;},_0x43e879['tHcwJ']='default';const _0x42d299=_0x43e879;return path['join'](_0x42d299['mDRst'](_0x42d299[_0x48f7e9(0x1fd)](TEMP_STORE_DIR_NAME,'-'),process[_0x48f7e9(0x19c)][_0x48f7e9(0x193)]||_0x42d299[_0x48f7e9(0x1ea)]));}static[a66_0x4ee45d(0x1a9)](){const _0x33b815=a66_0x4ee45d,_0x1ed5ea={};_0x1ed5ea[_0x33b815(0x1a4)]=_0x33b815(0x1c1);const _0x59e7e7=_0x1ed5ea;return path['join'](this[_0x33b815(0x1b1)](),_0x59e7e7[_0x33b815(0x1a4)]);}static['getFilePath'](_0x50368d){const _0xf1f35a=a66_0x4ee45d,_0x4c94b1={};_0x4c94b1[_0xf1f35a(0x1ce)]=function(_0x3d98d0,_0x39feda){return _0x3d98d0+_0x39feda;},_0x4c94b1[_0xf1f35a(0x1a2)]=_0xf1f35a(0x1e6);const _0x48e144=_0x4c94b1;return path[_0xf1f35a(0x190)](this[_0xf1f35a(0x1e9)],_0x48e144['jTrCw'](_0x50368d,_0x48e144[_0xf1f35a(0x1a2)]));}static[a66_0x4ee45d(0x1e1)](_0x5d1142){const _0x545a80=a66_0x4ee45d,_0x4edbd6={};_0x4edbd6[_0x545a80(0x1b7)]=function(_0x4c8e9b,_0xe67651){return _0x4c8e9b+_0xe67651;},_0x4edbd6[_0x545a80(0x183)]=function(_0x31beb5,_0x54a4d3){return _0x31beb5+_0x54a4d3;},_0x4edbd6['dfQIj']=function(_0x1a03d0,_0x4ce1e9){return _0x1a03d0+_0x4ce1e9;};const _0x298991=_0x4edbd6;return _0x298991[_0x545a80(0x1b7)](_0x298991['jSFdD'](_0x298991[_0x545a80(0x183)](_0x298991[_0x545a80(0x1a5)](this[_0x545a80(0x1a6)](_0x5d1142),'-'),this[_0x545a80(0x1e8)](_0x5d1142)),'-'),_0x5d1142[_0x545a80(0x1cd)]);}static[a66_0x4ee45d(0x1a6)](_0x26497a){const _0x2f0c46=a66_0x4ee45d,_0x348f6f={'PbNZC':function(_0x155378,_0x394313,_0x1c680c){return _0x155378(_0x394313,_0x1c680c);},'uItwR':_0x2f0c46(0x1f7),'RDWZV':_0x2f0c46(0x1b8),'JAfTr':'project','SNmSL':_0x2f0c46(0x199)};return _0x348f6f['PbNZC'](nestedKeyValue,_0x26497a,[_0x348f6f[_0x2f0c46(0x1ac)],_0x348f6f[_0x2f0c46(0x1d9)]])||_0x348f6f[_0x2f0c46(0x1cb)](nestedKeyValue,_0x26497a,[_0x348f6f[_0x2f0c46(0x1c2)],_0x348f6f[_0x2f0c46(0x1f2)]]);}static[a66_0x4ee45d(0x1e8)](_0x5f0782){const _0x503aba=a66_0x4ee45d,_0x224148={'pFNvV':function(_0x4a34fd,_0x2a0ca1,_0x2769d1){return _0x4a34fd(_0x2a0ca1,_0x2769d1);},'HQlnA':'_test'};return _0x224148[_0x503aba(0x188)](nestedKeyValue,_0x5f0782,[_0x224148[_0x503aba(0x1d2)],'id'])||_0x5f0782[_0x503aba(0x1ec)];}static[a66_0x4ee45d(0x1cf)](_0x5e4b13,_0x323a1f){const _0x3be6ba=a66_0x4ee45d,_0x45cbcf={};_0x45cbcf[_0x3be6ba(0x1c8)]=function(_0x4e4705,_0x4a1602){return _0x4e4705+_0x4a1602;};const _0x1fa351=_0x45cbcf;return _0x1fa351[_0x3be6ba(0x1c8)](_0x1fa351['jeICD'](this[_0x3be6ba(0x1e8)](_0x5e4b13),'-'),_0x323a1f);}static[a66_0x4ee45d(0x1ef)](_0x3fb599){const _0x22c631=a66_0x4ee45d,_0xe004f1={'FUzGc':function(_0x126818,_0x10f77b){return _0x126818===_0x10f77b;},'oPNOP':'string','WBspT':function(_0x4dd4ac){return _0x4dd4ac();}};try{if(this[_0x22c631(0x1f0)][_0x3fb599]&&_0xe004f1['FUzGc'](typeof this[_0x22c631(0x1f0)][_0x3fb599][_0x22c631(0x185)],_0xe004f1[_0x22c631(0x1d3)]))return this[_0x22c631(0x1f0)][_0x3fb599][_0x22c631(0x185)];const _0x186f85=this['getFilePath'](_0x3fb599),_0x282e90=path[_0x22c631(0x17f)](_0x186f85);if(fs[_0x22c631(0x1dd)](_0x282e90)){const _0x2d4373=JSON[_0x22c631(0x1be)](fs[_0x22c631(0x1fb)](_0x186f85)[_0x22c631(0x1f4)]());return this[_0x22c631(0x1f0)][_0x3fb599]=_0x2d4373,this['tests'][_0x3fb599][_0x22c631(0x185)];}this[_0x22c631(0x1f0)][_0x3fb599]={'uuid':_0xe004f1['WBspT'](uuidv4)};try{fs[_0x22c631(0x1d5)](_0x186f85,JSON[_0x22c631(0x19a)](this['tests'][_0x3fb599]));}catch(_0x19aa22){logger['error'](_0x22c631(0x1d8)+_0x3fb599+':\x20'+_0x19aa22[_0x22c631(0x1c7)]);}return this[_0x22c631(0x1f0)][_0x3fb599][_0x22c631(0x185)];}catch(_0x25b544){return logger['error']('Error\x20while\x20getting\x20test\x20UUID\x20for\x20'+_0x3fb599+':\x20'+_0x25b544[_0x22c631(0x1c7)]),null;}}static[a66_0x4ee45d(0x1a7)](_0x550183){const _0x4f997b=a66_0x4ee45d,_0x1ce6d7=path[_0x4f997b(0x190)](this[_0x4f997b(0x1e9)],_0x550183+_0x4f997b(0x1fa));if(fs[_0x4f997b(0x1dd)](_0x1ce6d7))return fs[_0x4f997b(0x1fb)](_0x1ce6d7)[_0x4f997b(0x1f4)]();}static['setAccessibilityPlatformValidation'](_0x15bee1,_0xd787de){const _0x4af8d4=a66_0x4ee45d,_0x3249d0=path[_0x4af8d4(0x190)](this[_0x4af8d4(0x1e9)],_0xd787de+_0x4af8d4(0x1fa));fs[_0x4af8d4(0x1d5)](_0x3249d0,_0x15bee1['toString']());}static[a66_0x4ee45d(0x1b0)](){const _0x255b8a=a66_0x4ee45d,_0x276e68={};_0x276e68[_0x255b8a(0x1b3)]=!![],_0x276e68[_0x255b8a(0x19d)]=!![],fs[_0x255b8a(0x1c5)](this[_0x255b8a(0x1e9)],_0x276e68);}static[a66_0x4ee45d(0x18e)](_0x1167a5){const _0x374873=a66_0x4ee45d,_0xf6113e=this[_0x374873(0x1bc)](_0x1167a5);if(fs[_0x374873(0x1dd)](_0xf6113e))try{const _0xc5d8af=JSON[_0x374873(0x1be)](fs[_0x374873(0x1fb)](_0xf6113e)[_0x374873(0x1f4)]());return this['tests'][_0x1167a5]=_0xc5d8af,_0xc5d8af;}catch(_0x323304){return logger['debug'](_0x374873(0x19e)+_0xf6113e+':\x20'+util[_0x374873(0x1d4)](_0x323304)+'.\x20Returning\x20empty\x20test\x20details.'),{};}return{};}static['setTestDetails'](_0x3bd4fe,_0x209c3c,_0x54fbbc=![]){const _0x33dcfd=a66_0x4ee45d,_0x5d6ee3={'yyBui':function(_0x1b0bed){return _0x1b0bed();}};logger[_0x33dcfd(0x18c)](_0x33dcfd(0x1ae)+process[_0x33dcfd(0x184)]+_0x33dcfd(0x1fe)+_0x3bd4fe+_0x33dcfd(0x1ba)+JSON[_0x33dcfd(0x19a)](_0x209c3c));const _0x1f006a=this[_0x33dcfd(0x1bc)](_0x3bd4fe);if(fs[_0x33dcfd(0x1dd)](_0x1f006a))try{const _0x6501c5=lockfile[_0x33dcfd(0x1ee)](_0x1f006a),_0x1a92d0=JSON['parse'](fs[_0x33dcfd(0x1fb)](_0x1f006a)[_0x33dcfd(0x1f4)]());if(_0x54fbbc)this[_0x33dcfd(0x1f0)][_0x3bd4fe]=helper[_0x33dcfd(0x1aa)](_0x1a92d0,_0x209c3c);else{const _0x4f0540={..._0x1a92d0,..._0x209c3c};this['tests'][_0x3bd4fe]=_0x4f0540;}fs[_0x33dcfd(0x1d5)](_0x1f006a,JSON[_0x33dcfd(0x19a)](this[_0x33dcfd(0x1f0)][_0x3bd4fe])),_0x5d6ee3[_0x33dcfd(0x17e)](_0x6501c5);}catch(_0x530964){logger[_0x33dcfd(0x18c)]('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0x1f006a+':\x20'+util[_0x33dcfd(0x1d4)](_0x530964)+_0x33dcfd(0x202));}}static['storeLogObjects'](_0x2e1916,_0xe38117){const _0x1477bb=a66_0x4ee45d,_0x5d9e6e={'dzKtn':function(_0x4e1e7f,_0x3607f6){return _0x4e1e7f!==_0x3607f6;},'SEIBX':_0x1477bb(0x195),'MzZtN':function(_0x1e6db2){return _0x1e6db2();}};logger[_0x1477bb(0x18c)](_0x1477bb(0x1f5)+process[_0x1477bb(0x184)]+_0x1477bb(0x1d0)+_0x2e1916+'}');const _0x13e523=this[_0x1477bb(0x1bc)](_0x2e1916);try{let _0x293b4c={};if(fs[_0x1477bb(0x1dd)](_0x13e523)){const _0x386464=lockfile[_0x1477bb(0x1ee)](_0x13e523);_0x293b4c=JSON[_0x1477bb(0x1be)](fs[_0x1477bb(0x1fb)](_0x13e523)[_0x1477bb(0x1f4)]()),(!_0x293b4c[_0x1477bb(0x1e3)]||_0x5d9e6e[_0x1477bb(0x1e4)](typeof _0x293b4c[_0x1477bb(0x1e3)],_0x5d9e6e[_0x1477bb(0x1e5)]))&&(_0x293b4c[_0x1477bb(0x1e3)]={}),(!_0x293b4c[_0x1477bb(0x1e3)][_0x2e1916]||!Array[_0x1477bb(0x18f)](_0x293b4c[_0x1477bb(0x1e3)][_0x2e1916]))&&(_0x293b4c[_0x1477bb(0x1e3)][_0x2e1916]=[]),_0x293b4c[_0x1477bb(0x1e3)][_0x2e1916][_0x1477bb(0x1eb)](_0xe38117),this[_0x1477bb(0x1f0)][_0x2e1916]=_0x293b4c,fs[_0x1477bb(0x1d5)](_0x13e523,JSON['stringify'](this[_0x1477bb(0x1f0)][_0x2e1916])),_0x5d9e6e['MzZtN'](_0x386464);}else{const _0x43cd01={};_0x43cd01[_0x1477bb(0x185)]=_0x2e1916,_0x43cd01[_0x1477bb(0x1e3)]={},_0x43cd01[_0x1477bb(0x1e3)][_0x2e1916]=[_0xe38117],_0x293b4c=_0x43cd01,this[_0x1477bb(0x1f0)][_0x2e1916]=_0x293b4c,fs[_0x1477bb(0x1d5)](_0x13e523,JSON[_0x1477bb(0x19a)](this['tests'][_0x2e1916]));}}catch(_0x52b461){logger['debug']('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0x13e523+':\x20'+util['format'](_0x52b461)+_0x1477bb(0x201));}}static[a66_0x4ee45d(0x1da)](_0x3027d3){const _0x39a378=a66_0x4ee45d,_0x34bedd={'QwkEu':function(_0x439c56,_0x306b39){return _0x439c56!==_0x306b39;},'ijCQB':_0x39a378(0x195),'dArxM':function(_0x48a789){return _0x48a789();},'RFZCz':function(_0x46f71f,_0xa162b8){return _0x46f71f===_0xa162b8;},'TnUXb':function(_0x384494){return _0x384494();}};logger[_0x39a378(0x18c)]('readLogObjects:\x20processId:\x20'+process['pid']+_0x39a378(0x1ca)+_0x3027d3);const _0x12caa8=this['getFilePath'](_0x3027d3);try{if(!fs[_0x39a378(0x1dd)](_0x12caa8))return logger['debug']('readLogObjects:\x20No\x20file\x20found\x20for\x20testId:\x20'+_0x3027d3),[];const _0x4a90ad=lockfile[_0x39a378(0x1ee)](_0x12caa8),_0x50d0ba=JSON['parse'](fs[_0x39a378(0x1fb)](_0x12caa8)[_0x39a378(0x1f4)]());if(!_0x50d0ba[_0x39a378(0x1e3)]||_0x34bedd[_0x39a378(0x1d6)](typeof _0x50d0ba[_0x39a378(0x1e3)],_0x34bedd['ijCQB']))return logger[_0x39a378(0x18c)](_0x39a378(0x1f3)+_0x3027d3),_0x34bedd[_0x39a378(0x18b)](_0x4a90ad),[];if(!_0x50d0ba[_0x39a378(0x1e3)][_0x3027d3]||!Array[_0x39a378(0x18f)](_0x50d0ba['logObjects'][_0x3027d3])||_0x34bedd[_0x39a378(0x1a0)](_0x50d0ba['logObjects'][_0x3027d3][_0x39a378(0x19b)],0x0))return logger[_0x39a378(0x18c)]('readLogObjects:\x20No\x20log\x20objects\x20found\x20for\x20testId:\x20'+_0x3027d3),_0x34bedd[_0x39a378(0x18b)](_0x4a90ad),[];const _0x5db8ac=[..._0x50d0ba['logObjects'][_0x3027d3]];return logger[_0x39a378(0x18c)]('readLogObjects:\x20Retrieved\x20'+_0x5db8ac['length']+'\x20log\x20objects\x20for\x20testId:\x20'+_0x3027d3),_0x50d0ba[_0x39a378(0x1e3)][_0x3027d3]=[],this[_0x39a378(0x1f0)][_0x3027d3]=_0x50d0ba,fs[_0x39a378(0x1d5)](_0x12caa8,JSON[_0x39a378(0x19a)](this[_0x39a378(0x1f0)][_0x3027d3])),_0x34bedd[_0x39a378(0x187)](_0x4a90ad),_0x5db8ac;}catch(_0x41e40c){return logger[_0x39a378(0x18c)]('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0x12caa8+':\x20'+util[_0x39a378(0x1d4)](_0x41e40c)+'.\x20Unable\x20to\x20retrieve\x20log\x20objects.'),[];}}static[a66_0x4ee45d(0x18a)](_0x2e99fb){const _0x596a60=a66_0x4ee45d,_0x4346b3={};_0x4346b3[_0x596a60(0x1c9)]='Error\x20handling\x20trace\x20file\x20paths:\x20%O';const _0x4ec26b=_0x4346b3;try{const _0x27a9ff=process[_0x596a60(0x184)],_0x18e808=path[_0x596a60(0x190)](TestInfo['getTraceZipDir'](),_0x27a9ff+_0x596a60(0x1f6));let _0x596603=[];fs['existsSync'](_0x18e808)&&(_0x596603=JSON['parse'](fs[_0x596a60(0x1fb)](_0x18e808)[_0x596a60(0x1f4)]()));if(!_0x596603[_0x596a60(0x1f1)](_0x243412=>_0x243412[_0x596a60(0x1b6)]===_0x2e99fb[_0x596a60(0x1b6)])){_0x596603['push'](_0x2e99fb);const _0x52a073=path['dirname'](_0x18e808);if(!fs[_0x596a60(0x1dd)](_0x52a073)){const _0x593421={};_0x593421[_0x596a60(0x1b3)]=!![],fs[_0x596a60(0x1ad)](_0x52a073,_0x593421);}fs[_0x596a60(0x1d5)](_0x18e808,JSON['stringify'](_0x596603));}}catch(_0xf29d3a){logger[_0x596a60(0x1de)](util[_0x596a60(0x1d4)](_0x4ec26b[_0x596a60(0x1c9)],_0xf29d3a));}}static[a66_0x4ee45d(0x189)](){const _0xc6d73a=a66_0x4ee45d,_0x180471={};_0x180471[_0xc6d73a(0x1f8)]=_0xc6d73a(0x1f6),_0x180471[_0xc6d73a(0x1bb)]='Error\x20reading\x20trace\x20file\x20paths:\x20%O';const _0x4ed3a3=_0x180471,_0xef11cd=[];try{const _0x53c312=TestInfo[_0xc6d73a(0x1a9)]();if(!fs[_0xc6d73a(0x1dd)](_0x53c312))return _0xef11cd;const _0x3a01b8=fs[_0xc6d73a(0x1bd)](_0x53c312);_0x3a01b8[_0xc6d73a(0x1b9)](_0x13c2f1=>{const _0x2469b6=_0xc6d73a;if(_0x13c2f1['endsWith'](_0x4ed3a3[_0x2469b6(0x1f8)])){const _0x201311=JSON[_0x2469b6(0x1be)](fs[_0x2469b6(0x1fb)](path['join'](_0x53c312,_0x13c2f1))['toString']());_0xef11cd[_0x2469b6(0x1eb)](..._0x201311);}});}catch(_0x45af19){logger[_0xc6d73a(0x1de)](util[_0xc6d73a(0x1d4)](_0x4ed3a3[_0xc6d73a(0x1bb)],_0x45af19));}const _0x456e10={};return _0xef11cd[_0xc6d73a(0x1b9)](_0x22894f=>{_0x456e10[_0x22894f['filePath']]=_0x22894f;}),Object['values'](_0x456e10);}static[a66_0x4ee45d(0x180)](_0x38bf09,_0x155a54){const _0x546788=a66_0x4ee45d,_0x5b18c9={};_0x5b18c9[_0x546788(0x198)]='.browserstack',_0x5b18c9[_0x546788(0x19f)]='utf8',_0x5b18c9['rUNxk']=_0x546788(0x182);const _0x3a77ed=_0x5b18c9;try{const _0x46b4f0=path[_0x546788(0x190)](helper[_0x546788(0x1c0)](),_0x3a77ed[_0x546788(0x198)]);if(!fs[_0x546788(0x1dd)](_0x46b4f0)){const _0x31f9ef={};_0x31f9ef[_0x546788(0x1b3)]=!![],fs[_0x546788(0x1ad)](_0x46b4f0,_0x31f9ef);}fs[_0x546788(0x191)](path[_0x546788(0x190)](_0x46b4f0,_0x546788(0x1db)+_0x155a54+'.txt'),_0x38bf09+'\x0a',_0x3a77ed['MkiCm']);}catch(_0x1ac907){logger[_0x546788(0x1de)](util[_0x546788(0x1d4)](_0x3a77ed[_0x546788(0x1bf)],_0x1ac907));}}}function a66_0x2a46(_0x77b11a,_0x1fd2d0){const _0x2695eb=a66_0x2695();return a66_0x2a46=function(_0x2a4646,_0x3d1425){_0x2a4646=_0x2a4646-0x17e;let _0x3690e2=_0x2695eb[_0x2a4646];return _0x3690e2;},a66_0x2a46(_0x77b11a,_0x1fd2d0);}module['exports']=TestInfo;
|
|
1
|
+
const a70_0x3e320f=a70_0x1d03;(function(_0x10a406,_0x5511f6){const _0xca1da4=a70_0x1d03,_0x5a255b=_0x10a406();while(!![]){try{const _0x3eaef7=-parseInt(_0xca1da4(0x186))/0x1*(-parseInt(_0xca1da4(0x155))/0x2)+-parseInt(_0xca1da4(0x10c))/0x3+-parseInt(_0xca1da4(0x156))/0x4*(parseInt(_0xca1da4(0x139))/0x5)+parseInt(_0xca1da4(0x15f))/0x6*(-parseInt(_0xca1da4(0x117))/0x7)+parseInt(_0xca1da4(0x161))/0x8*(parseInt(_0xca1da4(0x16e))/0x9)+-parseInt(_0xca1da4(0x140))/0xa+parseInt(_0xca1da4(0x178))/0xb;if(_0x3eaef7===_0x5511f6)break;else _0x5a255b['push'](_0x5a255b['shift']());}catch(_0x382a0c){_0x5a255b['push'](_0x5a255b['shift']());}}}(a70_0x2ddb,0x81dd9));function a70_0x1d03(_0x20b6c9,_0x5010a6){const _0x2ddb64=a70_0x2ddb();return a70_0x1d03=function(_0x1d03c4,_0x385503){_0x1d03c4=_0x1d03c4-0x10b;let _0x4078b4=_0x2ddb64[_0x1d03c4];return _0x4078b4;},a70_0x1d03(_0x20b6c9,_0x5010a6);}const fs=require('fs'),path=require(a70_0x3e320f(0x14f)),{TEMP_STORE_DIR_NAME}=require('../../helpers/test-observability/constants'),{nestedKeyValue}=require('../../helpers/helper'),logger=require('../../helpers/logger')['winstonLogger'],util=require('util'),helper=require(a70_0x3e320f(0x189)),{createClassLogger}=require(a70_0x3e320f(0x10f)),lockfile=require(a70_0x3e320f(0x174)),{v4:uuidv4}=require('uuid');class TestInfo{static [a70_0x3e320f(0x12e)]={};static ['dirPath']=TestInfo[a70_0x3e320f(0x13a)]();static [a70_0x3e320f(0x136)]=path[a70_0x3e320f(0x144)](TestInfo[a70_0x3e320f(0x118)],a70_0x3e320f(0x125));static [a70_0x3e320f(0x10d)]=null;[a70_0x3e320f(0x166)]=createClassLogger('TestInfo');static[a70_0x3e320f(0x17e)](_0x38869b){const _0x4402e0=a70_0x3e320f,_0x7a6772={};_0x7a6772[_0x4402e0(0x169)]=_0x4402e0(0x122),_0x7a6772[_0x4402e0(0x18e)]=_0x4402e0(0x125);const _0x571c73=_0x7a6772,_0x25ad46=_0x571c73[_0x4402e0(0x169)][_0x4402e0(0x170)]('|');let _0x1e174b=0x0;while(!![]){switch(_0x25ad46[_0x1e174b++]){case'0':this['shutdown']();continue;case'1':this[_0x4402e0(0x10d)]=_0x38869b;continue;case'2':const _0x1dc9a9={};_0x1dc9a9[_0x4402e0(0x151)]=!![],fs[_0x4402e0(0x14b)](this['dirPath'],_0x1dc9a9);continue;case'3':this[_0x4402e0(0x118)]=TestInfo[_0x4402e0(0x13a)]();continue;case'4':logger['info'](_0x4402e0(0x191)+this['dirPath']);continue;case'5':const _0x16e39f={};_0x16e39f['recursive']=!![],fs[_0x4402e0(0x14b)](this[_0x4402e0(0x136)],_0x16e39f);continue;case'6':this[_0x4402e0(0x136)]=path[_0x4402e0(0x144)](this[_0x4402e0(0x118)],_0x571c73['hmseo']);continue;}break;}}static[a70_0x3e320f(0x13a)](){const _0x32f82a=a70_0x3e320f,_0x2fa22a={};_0x2fa22a[_0x32f82a(0x154)]=function(_0x33d713,_0x3bbdf4){return _0x33d713+_0x3bbdf4;},_0x2fa22a[_0x32f82a(0x153)]=_0x32f82a(0x137);const _0x21d441=_0x2fa22a;return _0x21d441[_0x32f82a(0x154)](_0x21d441[_0x32f82a(0x154)](TEMP_STORE_DIR_NAME,'-'),process[_0x32f82a(0x143)]['BS_TESTOPS_BUILD_HASHED_ID']||_0x21d441[_0x32f82a(0x153)]);}static[a70_0x3e320f(0x17a)](){const _0x4279b2=a70_0x3e320f,_0x304894={};_0x304894['KZhcG']=function(_0x4a4724,_0x34002f){return _0x4a4724+_0x34002f;},_0x304894[_0x4279b2(0x129)]=function(_0x17242f,_0x317055){return _0x17242f+_0x317055;},_0x304894[_0x4279b2(0x17d)]='default';const _0x2e163b=_0x304894;return path[_0x4279b2(0x144)](_0x2e163b[_0x4279b2(0x130)](_0x2e163b[_0x4279b2(0x129)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x4279b2(0x111)]||_0x2e163b[_0x4279b2(0x17d)]));}static[a70_0x3e320f(0x134)](){const _0x49125d=a70_0x3e320f,_0x48833a={};_0x48833a['uQCdR']=_0x49125d(0x125);const _0x2dd811=_0x48833a;return path[_0x49125d(0x144)](this['getStoreDirPath'](),_0x2dd811[_0x49125d(0x165)]);}static[a70_0x3e320f(0x135)](_0x1919c5){const _0x350484=a70_0x3e320f,_0x17a2aa={};_0x17a2aa['uNkLZ']=function(_0x1ce350,_0x246e2a){return _0x1ce350+_0x246e2a;},_0x17a2aa[_0x350484(0x14a)]=_0x350484(0x163);const _0x5897ed=_0x17a2aa;return path[_0x350484(0x144)](this['dirPath'],_0x5897ed[_0x350484(0x18f)](_0x1919c5,_0x5897ed[_0x350484(0x14a)]));}static[a70_0x3e320f(0x12a)](_0x26c4ff){const _0x5f5d7c=a70_0x3e320f,_0x20aa65={};_0x20aa65[_0x5f5d7c(0x14d)]=function(_0x2a3f0c,_0x1bb31c){return _0x2a3f0c+_0x1bb31c;},_0x20aa65[_0x5f5d7c(0x11d)]=function(_0x52784e,_0x4eb8bf){return _0x52784e+_0x4eb8bf;},_0x20aa65[_0x5f5d7c(0x15d)]=function(_0x8baa0a,_0x2090eb){return _0x8baa0a+_0x2090eb;};const _0x45b210=_0x20aa65;return _0x45b210[_0x5f5d7c(0x14d)](_0x45b210[_0x5f5d7c(0x11d)](_0x45b210['MQYSt'](_0x45b210[_0x5f5d7c(0x15d)](this[_0x5f5d7c(0x113)](_0x26c4ff),'-'),this['getTestIdFromTestInfo'](_0x26c4ff)),'-'),_0x26c4ff[_0x5f5d7c(0x167)]);}static[a70_0x3e320f(0x113)](_0x3b2828){const _0x481c92=a70_0x3e320f,_0x451669={'rdDQw':function(_0x46f90b,_0x56feef,_0x4d54bb){return _0x46f90b(_0x56feef,_0x4d54bb);},'emyYL':_0x481c92(0x147),'XihHu':_0x481c92(0x17f),'KJfFK':function(_0x57f733,_0x3a14cb,_0x34880a){return _0x57f733(_0x3a14cb,_0x34880a);},'kVZZc':_0x481c92(0x190),'gXDXA':_0x481c92(0x175)};return _0x451669[_0x481c92(0x159)](nestedKeyValue,_0x3b2828,[_0x451669[_0x481c92(0x15c)],_0x451669[_0x481c92(0x14c)]])||_0x451669['KJfFK'](nestedKeyValue,_0x3b2828,[_0x451669[_0x481c92(0x177)],_0x451669[_0x481c92(0x142)]]);}static[a70_0x3e320f(0x179)](_0xdfa5bd){const _0x562f97=a70_0x3e320f,_0x5bf63e={'xpAAu':function(_0x29ab1e,_0x11af86,_0x4658cd){return _0x29ab1e(_0x11af86,_0x4658cd);},'pkzIZ':_0x562f97(0x147)};return _0x5bf63e[_0x562f97(0x112)](nestedKeyValue,_0xdfa5bd,[_0x5bf63e[_0x562f97(0x15e)],'id'])||_0xdfa5bd[_0x562f97(0x18b)];}static[a70_0x3e320f(0x16f)](_0x35e70e,_0x5aa3c7){const _0x34b20e=a70_0x3e320f,_0x2636eb={};_0x2636eb[_0x34b20e(0x120)]=function(_0xf8f63b,_0x27306d){return _0xf8f63b+_0x27306d;},_0x2636eb['SHCth']=function(_0x2762c3,_0x400f54){return _0x2762c3+_0x400f54;};const _0x231dcb=_0x2636eb;return _0x231dcb[_0x34b20e(0x120)](_0x231dcb[_0x34b20e(0x141)](this[_0x34b20e(0x179)](_0x35e70e),'-'),_0x5aa3c7);}static['getTestUUID'](_0x17e845){const _0xe0dfc=a70_0x3e320f,_0x44dcbb={'lHZqZ':function(_0x12bee1,_0x50d5de){return _0x12bee1===_0x50d5de;},'cQnPE':'string','ieORO':function(_0x47afce){return _0x47afce();}};try{if(this[_0xe0dfc(0x12e)][_0x17e845]&&_0x44dcbb[_0xe0dfc(0x15b)](typeof this[_0xe0dfc(0x12e)][_0x17e845][_0xe0dfc(0x124)],_0x44dcbb[_0xe0dfc(0x172)]))return this[_0xe0dfc(0x12e)][_0x17e845][_0xe0dfc(0x124)];const _0x13f91b=this[_0xe0dfc(0x135)](_0x17e845),_0x54c97d=path['resolve'](_0x13f91b);if(fs[_0xe0dfc(0x131)](_0x54c97d)){const _0x5a3b0c=JSON[_0xe0dfc(0x16d)](fs[_0xe0dfc(0x173)](_0x13f91b)['toString']());return this[_0xe0dfc(0x12e)][_0x17e845]=_0x5a3b0c,this[_0xe0dfc(0x12e)][_0x17e845][_0xe0dfc(0x124)];}this[_0xe0dfc(0x12e)][_0x17e845]={'uuid':_0x44dcbb[_0xe0dfc(0x171)](uuidv4)};try{fs['writeFileSync'](_0x13f91b,JSON[_0xe0dfc(0x150)](this[_0xe0dfc(0x12e)][_0x17e845]));}catch(_0x4fae3e){logger[_0xe0dfc(0x183)](_0xe0dfc(0x13f)+_0x17e845+':\x20'+_0x4fae3e[_0xe0dfc(0x145)]);}return this['tests'][_0x17e845][_0xe0dfc(0x124)];}catch(_0x46ccf5){return logger[_0xe0dfc(0x183)](_0xe0dfc(0x126)+_0x17e845+':\x20'+_0x46ccf5[_0xe0dfc(0x145)]),null;}}static[a70_0x3e320f(0x18a)](_0x5f3824){const _0x2b3f8f=a70_0x3e320f,_0x12005b=path[_0x2b3f8f(0x144)](this[_0x2b3f8f(0x118)],_0x5f3824+_0x2b3f8f(0x11e));if(fs['existsSync'](_0x12005b))return fs['readFileSync'](_0x12005b)[_0x2b3f8f(0x149)]();}static['setAccessibilityPlatformValidation'](_0x957eed,_0x286ef6){const _0x3a75de=a70_0x3e320f,_0x261683=path[_0x3a75de(0x144)](this[_0x3a75de(0x118)],_0x286ef6+_0x3a75de(0x11e));fs[_0x3a75de(0x160)](_0x261683,_0x957eed[_0x3a75de(0x149)]());}static[a70_0x3e320f(0x10e)](){const _0x22b9e=a70_0x3e320f,_0x5bb98f={};_0x5bb98f[_0x22b9e(0x151)]=!![],_0x5bb98f['force']=!![],fs[_0x22b9e(0x12f)](this[_0x22b9e(0x118)],_0x5bb98f);}static['getTestDetails'](_0x5aa93c){const _0x3e1b26=a70_0x3e320f,_0x3d37c3=this[_0x3e1b26(0x135)](_0x5aa93c);if(fs['existsSync'](_0x3d37c3))try{const _0x53c121=JSON[_0x3e1b26(0x16d)](fs['readFileSync'](_0x3d37c3)[_0x3e1b26(0x149)]());return this[_0x3e1b26(0x12e)][_0x5aa93c]=_0x53c121,_0x53c121;}catch(_0x2a6d4f){return logger[_0x3e1b26(0x16a)](_0x3e1b26(0x13b)+_0x3d37c3+':\x20'+util[_0x3e1b26(0x13e)](_0x2a6d4f)+_0x3e1b26(0x132)),{};}return{};}static[a70_0x3e320f(0x16c)](_0x1cbcde,_0x451cbb,_0x4a3298=![]){const _0x4fa428=a70_0x3e320f,_0x26c759={'uwFkg':function(_0x5564ca){return _0x5564ca();}};logger[_0x4fa428(0x16a)](_0x4fa428(0x110)+process['pid']+'\x20Setting\x20test\x20details\x20for\x20'+_0x1cbcde+'\x20with\x20details:\x20'+JSON[_0x4fa428(0x150)](_0x451cbb));const _0x2f798d=this[_0x4fa428(0x135)](_0x1cbcde);if(fs['existsSync'](_0x2f798d))try{const _0x8bc8ae=lockfile[_0x4fa428(0x13c)](_0x2f798d),_0x28160b=JSON[_0x4fa428(0x16d)](fs['readFileSync'](_0x2f798d)['toString']());if(_0x4a3298)this['tests'][_0x1cbcde]=helper[_0x4fa428(0x11f)](_0x28160b,_0x451cbb);else{const _0x26054e={..._0x28160b,..._0x451cbb};this['tests'][_0x1cbcde]=_0x26054e;}fs[_0x4fa428(0x160)](_0x2f798d,JSON[_0x4fa428(0x150)](this[_0x4fa428(0x12e)][_0x1cbcde])),_0x26c759['uwFkg'](_0x8bc8ae);}catch(_0x38f3eb){logger[_0x4fa428(0x16a)](_0x4fa428(0x13b)+_0x2f798d+':\x20'+util[_0x4fa428(0x13e)](_0x38f3eb)+_0x4fa428(0x123));}}static[a70_0x3e320f(0x128)](_0x51bf58,_0x217167){const _0xdbeaad=a70_0x3e320f,_0x133465={'OxQbL':function(_0x2b33d0,_0x3e0cad){return _0x2b33d0!==_0x3e0cad;},'PSOkx':_0xdbeaad(0x11a),'GcrZg':function(_0x2f2b1d){return _0x2f2b1d();}};logger[_0xdbeaad(0x16a)]('storeLogObjects:\x20processId:\x20'+process[_0xdbeaad(0x152)]+'\x20Adding\x20console\x20log\x20for\x20'+_0x51bf58+'}');const _0x50f711=this[_0xdbeaad(0x135)](_0x51bf58);try{let _0x13f818={};if(fs[_0xdbeaad(0x131)](_0x50f711)){const _0x10b1e5=lockfile[_0xdbeaad(0x13c)](_0x50f711);_0x13f818=JSON[_0xdbeaad(0x16d)](fs[_0xdbeaad(0x173)](_0x50f711)[_0xdbeaad(0x149)]()),(!_0x13f818['logObjects']||_0x133465[_0xdbeaad(0x176)](typeof _0x13f818[_0xdbeaad(0x119)],_0x133465[_0xdbeaad(0x16b)]))&&(_0x13f818['logObjects']={}),(!_0x13f818[_0xdbeaad(0x119)][_0x51bf58]||!Array[_0xdbeaad(0x121)](_0x13f818['logObjects'][_0x51bf58]))&&(_0x13f818['logObjects'][_0x51bf58]=[]),_0x13f818[_0xdbeaad(0x119)][_0x51bf58]['push'](_0x217167),this[_0xdbeaad(0x12e)][_0x51bf58]=_0x13f818,fs[_0xdbeaad(0x160)](_0x50f711,JSON[_0xdbeaad(0x150)](this['tests'][_0x51bf58])),_0x133465[_0xdbeaad(0x180)](_0x10b1e5);}else{const _0x54af14={};_0x54af14[_0xdbeaad(0x124)]=_0x51bf58,_0x54af14[_0xdbeaad(0x119)]={},_0x54af14[_0xdbeaad(0x119)][_0x51bf58]=[_0x217167],_0x13f818=_0x54af14,this[_0xdbeaad(0x12e)][_0x51bf58]=_0x13f818,fs[_0xdbeaad(0x160)](_0x50f711,JSON[_0xdbeaad(0x150)](this[_0xdbeaad(0x12e)][_0x51bf58]));}}catch(_0x4bb902){logger[_0xdbeaad(0x16a)](_0xdbeaad(0x13b)+_0x50f711+':\x20'+util[_0xdbeaad(0x13e)](_0x4bb902)+_0xdbeaad(0x116));}}static['readLogObjects'](_0x21f018){const _0x33437f=a70_0x3e320f,_0x5d65c4={'AedBR':function(_0x2a9dfb,_0x325239){return _0x2a9dfb!==_0x325239;},'dChOR':_0x33437f(0x11a),'eZEvF':function(_0x444e9f){return _0x444e9f();},'aYkXF':function(_0x182f91,_0x3ef029){return _0x182f91===_0x3ef029;}};logger[_0x33437f(0x16a)](_0x33437f(0x127)+process[_0x33437f(0x152)]+'\x20Retrieving\x20logs\x20for\x20'+_0x21f018);const _0x49ddd8=this[_0x33437f(0x135)](_0x21f018);try{if(!fs[_0x33437f(0x131)](_0x49ddd8))return logger[_0x33437f(0x16a)](_0x33437f(0x11b)+_0x21f018),[];const _0x3d8580=lockfile['lockSync'](_0x49ddd8),_0x84cb4e=JSON[_0x33437f(0x16d)](fs[_0x33437f(0x173)](_0x49ddd8)[_0x33437f(0x149)]());if(!_0x84cb4e[_0x33437f(0x119)]||_0x5d65c4[_0x33437f(0x168)](typeof _0x84cb4e[_0x33437f(0x119)],_0x5d65c4['dChOR']))return logger[_0x33437f(0x16a)]('readLogObjects:\x20No\x20logObjects\x20object\x20found\x20for\x20testId:\x20'+_0x21f018),_0x5d65c4[_0x33437f(0x114)](_0x3d8580),[];if(!_0x84cb4e[_0x33437f(0x119)][_0x21f018]||!Array[_0x33437f(0x121)](_0x84cb4e[_0x33437f(0x119)][_0x21f018])||_0x5d65c4[_0x33437f(0x193)](_0x84cb4e[_0x33437f(0x119)][_0x21f018][_0x33437f(0x15a)],0x0))return logger[_0x33437f(0x16a)](_0x33437f(0x12b)+_0x21f018),_0x5d65c4[_0x33437f(0x114)](_0x3d8580),[];const _0x33fe7b=[..._0x84cb4e[_0x33437f(0x119)][_0x21f018]];return logger['debug'](_0x33437f(0x192)+_0x33fe7b[_0x33437f(0x15a)]+_0x33437f(0x138)+_0x21f018),_0x84cb4e['logObjects'][_0x21f018]=[],this[_0x33437f(0x12e)][_0x21f018]=_0x84cb4e,fs['writeFileSync'](_0x49ddd8,JSON['stringify'](this[_0x33437f(0x12e)][_0x21f018])),_0x5d65c4[_0x33437f(0x114)](_0x3d8580),_0x33fe7b;}catch(_0x2f1662){return logger[_0x33437f(0x16a)](_0x33437f(0x13b)+_0x49ddd8+':\x20'+util[_0x33437f(0x13e)](_0x2f1662)+'.\x20Unable\x20to\x20retrieve\x20log\x20objects.'),[];}}static[a70_0x3e320f(0x18d)](_0x367944){const _0x288284=a70_0x3e320f,_0x3b64be={};_0x3b64be[_0x288284(0x182)]=_0x288284(0x158);const _0x10346c=_0x3b64be;try{const _0x24f909=process[_0x288284(0x152)],_0x895178=path[_0x288284(0x144)](TestInfo['getTraceZipDir'](),_0x24f909+_0x288284(0x17c));let _0x532e84=[];fs[_0x288284(0x131)](_0x895178)&&(_0x532e84=JSON[_0x288284(0x16d)](fs[_0x288284(0x173)](_0x895178)[_0x288284(0x149)]()));if(!_0x532e84['some'](_0x346ee7=>_0x346ee7[_0x288284(0x12d)]===_0x367944[_0x288284(0x12d)])){_0x532e84[_0x288284(0x185)](_0x367944);const _0x7794dd=path[_0x288284(0x133)](_0x895178);if(!fs['existsSync'](_0x7794dd)){const _0x5c04ce={};_0x5c04ce[_0x288284(0x151)]=!![],fs[_0x288284(0x14b)](_0x7794dd,_0x5c04ce);}fs[_0x288284(0x160)](_0x895178,JSON[_0x288284(0x150)](_0x532e84));}}catch(_0x3a41be){logger['error'](util[_0x288284(0x13e)](_0x10346c[_0x288284(0x182)],_0x3a41be));}}static[a70_0x3e320f(0x164)](){const _0x4b5e8a=a70_0x3e320f,_0x42f48f={};_0x42f48f[_0x4b5e8a(0x17b)]='_traceZipPaths.json',_0x42f48f[_0x4b5e8a(0x18c)]=_0x4b5e8a(0x11c);const _0x369f04=_0x42f48f,_0x40aec1=[];try{const _0x9da93b=TestInfo[_0x4b5e8a(0x134)]();if(!fs[_0x4b5e8a(0x131)](_0x9da93b))return _0x40aec1;const _0x4e8be5=fs[_0x4b5e8a(0x162)](_0x9da93b);_0x4e8be5[_0x4b5e8a(0x115)](_0x51a55b=>{const _0x153bd3=_0x4b5e8a;if(_0x51a55b[_0x153bd3(0x12c)](_0x369f04[_0x153bd3(0x17b)])){const _0x3593e4=JSON[_0x153bd3(0x16d)](fs[_0x153bd3(0x173)](path['join'](_0x9da93b,_0x51a55b))['toString']());_0x40aec1[_0x153bd3(0x185)](..._0x3593e4);}});}catch(_0x43a950){logger[_0x4b5e8a(0x183)](util['format'](_0x369f04[_0x4b5e8a(0x18c)],_0x43a950));}const _0x548e63={};return _0x40aec1[_0x4b5e8a(0x115)](_0x1a79fc=>{const _0x218b52=_0x4b5e8a;_0x548e63[_0x1a79fc[_0x218b52(0x12d)]]=_0x1a79fc;}),Object[_0x4b5e8a(0x187)](_0x548e63);}static[a70_0x3e320f(0x188)](_0x333ffc,_0x4ada2b){const _0x3ca960=a70_0x3e320f,_0x5e4812={};_0x5e4812['VizAb']='.browserstack',_0x5e4812[_0x3ca960(0x10b)]=_0x3ca960(0x181),_0x5e4812['msCOb']=_0x3ca960(0x14e);const _0x4e98bd=_0x5e4812;try{const _0x570415=path[_0x3ca960(0x144)](helper[_0x3ca960(0x157)](),_0x4e98bd[_0x3ca960(0x13d)]);if(!fs[_0x3ca960(0x131)](_0x570415)){const _0x236acf={};_0x236acf[_0x3ca960(0x151)]=!![],fs[_0x3ca960(0x14b)](_0x570415,_0x236acf);}fs[_0x3ca960(0x146)](path[_0x3ca960(0x144)](_0x570415,'trace_'+_0x4ada2b+_0x3ca960(0x184)),_0x333ffc+'\x0a',_0x4e98bd[_0x3ca960(0x10b)]);}catch(_0x82d813){logger['error'](util['format'](_0x4e98bd['msCOb'],_0x82d813));}}}module[a70_0x3e320f(0x148)]=TestInfo;function a70_0x2ddb(){const _0x1f3083=['shutdown','../../helpers/classLogger.js','[setTestDetails]\x20processId:\x20','BS_TESTOPS_BUILD_HASHED_ID','xpAAu','getProjectIdFromTestInfo','eZEvF','forEach','.\x20Unable\x20to\x20add\x20console\x20log.','1694USQJdM','dirPath','logObjects','object','readLogObjects:\x20No\x20file\x20found\x20for\x20testId:\x20','Error\x20reading\x20trace\x20file\x20paths:\x20%O','MQYSt','_platformDetails.json','mergeDeep','rnHkj','isArray','3|6|1|0|2|5|4','.\x20Unable\x20to\x20set\x20test\x20details.','uuid','traceZipPaths','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','readLogObjects:\x20processId:\x20','storeLogObjects','JVyGB','getTestRunIdFromTestInfo','readLogObjects:\x20No\x20log\x20objects\x20found\x20for\x20testId:\x20','endsWith','filePath','tests','rmSync','KZhcG','existsSync','.\x20Returning\x20empty\x20test\x20details.','dirname','getTraceZipDir','getFilePath','traceZipDir','default','\x20log\x20objects\x20for\x20testId:\x20','5FFsBax','getStoreDirName','Failed\x20to\x20acquire\x20lock\x20for\x20','lockSync','VizAb','format','Error\x20writing\x20test\x20details\x20to\x20file\x20for\x20','1719500cXurRN','SHCth','gXDXA','env','join','message','appendFileSync','_test','exports','toString','SKJCt','mkdirSync','XihHu','DIqjb','Error\x20writing\x20trace\x20file:\x20%O','path','stringify','recursive','pid','QsrzQ','mUEAD','1277482gJfCAg','1892208JwPKtV','homedir','Error\x20handling\x20trace\x20file\x20paths:\x20%O','rdDQw','length','lHZqZ','emyYL','CYqPx','pkzIZ','6024hANjjN','writeFileSync','232gfMyzE','readdirSync','.json','getTraceFilePaths','uQCdR','logger','retry','AedBR','tVTpD','debug','PSOkx','setTestDetails','parse','119205ShIfxS','getTestIdentifierFromTestInfo','split','ieORO','cQnPE','readFileSync','proper-lockfile','__projectId','OxQbL','kVZZc','9054705TWvMiF','getTestIdFromTestInfo','getStoreDirPath','JmrQB','_traceZipPaths.json','bQRXL','setup','_projectId','GcrZg','utf8','DxcpW','error','.txt','push','1AErOjb','values','appendToTracePaths','../../helpers/helper','getAccessibilityPlatformValidation','testId','BczPF','addTraceFilePath','hmseo','uNkLZ','project','Setting\x20up\x20TestInfo\x20directory\x20at\x20','readLogObjects:\x20Retrieved\x20','aYkXF','OziLx','1278306ucoXxq','testFramework'];a70_0x2ddb=function(){return _0x1f3083;};return a70_0x2ddb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a67_0x23aa(_0x18b1da,_0x23bfe4){const _0x32dc08=a67_0x32dc();return a67_0x23aa=function(_0x23aa5f,_0x5ec911){_0x23aa5f=_0x23aa5f-0x85;let _0x18fdd1=_0x32dc08[_0x23aa5f];return _0x18fdd1;},a67_0x23aa(_0x18b1da,_0x23bfe4);}const a67_0x4a0c24=a67_0x23aa;(function(_0x410a89,_0x91a5c){const _0x3189fe=a67_0x23aa,_0x1dea84=_0x410a89();while(!![]){try{const _0x45402c=parseInt(_0x3189fe(0x154))/0x1+-parseInt(_0x3189fe(0xd0))/0x2*(parseInt(_0x3189fe(0x9b))/0x3)+parseInt(_0x3189fe(0x17b))/0x4*(-parseInt(_0x3189fe(0xbf))/0x5)+parseInt(_0x3189fe(0x102))/0x6+parseInt(_0x3189fe(0x143))/0x7*(-parseInt(_0x3189fe(0x148))/0x8)+-parseInt(_0x3189fe(0x198))/0x9*(-parseInt(_0x3189fe(0x16e))/0xa)+parseInt(_0x3189fe(0x120))/0xb;if(_0x45402c===_0x91a5c)break;else _0x1dea84['push'](_0x1dea84['shift']());}catch(_0x4508a3){_0x1dea84['push'](_0x1dea84['shift']());}}}(a67_0x32dc,0x74a7f));const {spawn}=require(a67_0x4a0c24(0x16f)),GrpcClient=require('./grpcClient.js'),util=require('util'),CLIUtils=require(a67_0x4a0c24(0x173)),PlaywrightAutomationFramework=require('./framework/playwrightAutomationFramework.js'),PuppeteerAutomationFramework=require(a67_0x4a0c24(0xf6)),PlaywrightTestFramework=require(a67_0x4a0c24(0xa4)),CucumberTestFramework=require(a67_0x4a0c24(0xc1)),JestTestFramework=require(a67_0x4a0c24(0x165)),{createClassLogger}=require(a67_0x4a0c24(0x161)),PerformanceTester=require(a67_0x4a0c24(0x12b)),{EVENTS:PerformanceEvents}=require(a67_0x4a0c24(0x10c)),AccessibilityModule=require('./modules/accessibilityModule.js'),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS,BINARY_BUSY_ERROR_CODES,MAX_SPAWN_RETRIES,SPAWN_RETRY_DELAY_MS}=require(a67_0x4a0c24(0xe6)),helper=require(a67_0x4a0c24(0x15e)),TestFrameworkConstants=require(a67_0x4a0c24(0x10a)),buildLogger=require(a67_0x4a0c24(0xae))[a67_0x4a0c24(0xda)],LoadTestModule=require(a67_0x4a0c24(0xc0)),TestInfo=require('./TestInfo.js');class BrowserstackCLI{static #instance=null;static ['BuildLink']=null;static ['HashedID']=null;static [a67_0x4a0c24(0x196)]=null;static ['A11yEnabled']=![];[a67_0x4a0c24(0x112)]=null;[a67_0x4a0c24(0xb8)]=![];[a67_0x4a0c24(0x12a)]=![];[a67_0x4a0c24(0x177)]=![];[a67_0x4a0c24(0x16d)]=null;[a67_0x4a0c24(0x16b)]={};[a67_0x4a0c24(0xcd)]=null;[a67_0x4a0c24(0x142)]=null;[a67_0x4a0c24(0xd6)]=createClassLogger('BrowserstackCLI');constructor(){const _0x295e8f=a67_0x4a0c24;this[_0x295e8f(0xee)]=![],this[_0x295e8f(0x12e)]={},this['cliArgs']={},this[_0x295e8f(0xa5)]={};}static[a67_0x4a0c24(0x8a)](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async[a67_0x4a0c24(0x109)](){const _0x1c72e5=a67_0x4a0c24,_0x501a84={};_0x501a84[_0x1c72e5(0xd9)]=_0x1c72e5(0x141);const _0x28e345=_0x501a84;if(helper[_0x1c72e5(0xe1)](process[_0x1c72e5(0x11e)]['BROWSERSTACK_CLI_ENABLED'])){this[_0x1c72e5(0xd6)][_0x1c72e5(0x107)](_0x28e345['qyAmi']);return;}PerformanceTester['start'](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP']);try{const _0x71f1ae=process['env'][_0x1c72e5(0xe7)]||null;this['setupAutomationFramework'](),this[_0x1c72e5(0x17f)]();if(_0x71f1ae){await this[_0x1c72e5(0xea)](_0x71f1ae),PerformanceTester['end'](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP']);return;}await this[_0x1c72e5(0x100)]();}catch(_0x1b998d){this[_0x1c72e5(0xd6)]['error'](_0x1c72e5(0x178)+(_0x1b998d[_0x1c72e5(0x101)]||_0x1b998d)),await this[_0x1c72e5(0x176)](),PerformanceTester['end'](PerformanceEvents[_0x1c72e5(0xa8)],![],util[_0x1c72e5(0xff)](_0x1b998d));}}async[a67_0x4a0c24(0x100)](){const _0x2eb9a9=a67_0x4a0c24,_0x518856={};_0x518856['jyJOS']=_0x2eb9a9(0xfb),_0x518856[_0x2eb9a9(0x103)]=_0x2eb9a9(0x149);const _0x4d74ef=_0x518856;this[_0x2eb9a9(0xd6)][_0x2eb9a9(0x107)](_0x4d74ef[_0x2eb9a9(0x13e)]),await this[_0x2eb9a9(0x18f)](),this[_0x2eb9a9(0xd6)][_0x2eb9a9(0x8c)](_0x4d74ef[_0x2eb9a9(0x103)]);const _0xa4bfeb=await GrpcClient['getInstance']()[_0x2eb9a9(0xb5)]();this['isMainConnected']=!![],this['loadModules'](_0xa4bfeb);}[a67_0x4a0c24(0x19d)](_0x2751c5){const _0x6da743=a67_0x4a0c24,_0x52cd3a={'mBWlW':function(_0x5d9fe7,_0x39326f){return _0x5d9fe7(_0x39326f);},'ZJTdO':'./modules/playwrightDriverModule.js','cJXwa':_0x6da743(0x93),'Nhihy':function(_0x1bc96d,_0x2fc9dc){return _0x1bc96d(_0x2fc9dc);},'FcRbp':_0x6da743(0xc3),'CoyPm':_0x6da743(0xb4),'EcoVA':_0x6da743(0xcf),'ZcRvh':_0x6da743(0x140),'adTtx':_0x6da743(0x19b),'fUBrD':function(_0x3bce6e,_0x3facd5){return _0x3bce6e||_0x3facd5;},'HcZaM':function(_0x240b32,_0xd0c2ab){return _0x240b32!==_0xd0c2ab;},'BxzVN':function(_0x486f1e,_0x242235){return _0x486f1e===_0x242235;},'zHXtz':_0x6da743(0x117),'vTFNq':function(_0x53b34e,_0x2a5329){return _0x53b34e&&_0x2a5329;},'hEbNt':function(_0x1b3103,_0x23dfd5){return _0x1b3103===_0x23dfd5;},'KYLyv':_0x6da743(0x96)},_0x4e2e0e=_0x52cd3a['mBWlW'](require,_0x52cd3a[_0x6da743(0xaf)]),_0x37d94b=_0x52cd3a[_0x6da743(0x133)](require,_0x52cd3a['cJXwa']),_0x59ca84=_0x52cd3a['Nhihy'](require,_0x52cd3a['FcRbp']);this[_0x6da743(0xd6)][_0x6da743(0x107)](_0x52cd3a[_0x6da743(0xc4)]),this[_0x6da743(0x16d)]=_0x2751c5[_0x6da743(0x91)](),this[_0x6da743(0xd6)][_0x6da743(0x107)](_0x6da743(0xc8)+this[_0x6da743(0x16d)]),this[_0x6da743(0x15f)](_0x2751c5),this[_0x6da743(0x158)]();!this[_0x6da743(0x12a)]&&this[_0x6da743(0x108)](_0x2751c5);const _0x585cd9=_0x52cd3a[_0x6da743(0xe2)],_0x5583ff=_0x52cd3a[_0x6da743(0x152)],_0x38fb6c=_0x52cd3a['adTtx'],_0x43f4ef=_0x2751c5[_0x585cd9]()&&_0x2751c5[_0x585cd9]()[_0x38fb6c](),_0x13160e=_0x2751c5[_0x5583ff]()&&_0x2751c5[_0x5583ff]()[_0x38fb6c](),_0x64341b=process[_0x6da743(0x11e)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']&&JSON[_0x6da743(0x9c)](process[_0x6da743(0x11e)][_0x6da743(0x185)]);_0x52cd3a['fUBrD'](_0x43f4ef,_0x13160e)&&(this[_0x6da743(0x16b)][_0x37d94b[_0x6da743(0x11c)]]=new _0x37d94b(_0x2751c5[_0x6da743(0xdc)](),_0x64341b));_0x43f4ef&&(this[_0x6da743(0x16b)][_0x59ca84[_0x6da743(0x11c)]]=new _0x59ca84(_0x2751c5[_0x585cd9]()));if(_0x13160e){this['modules'][AccessibilityModule[_0x6da743(0x11c)]]=new AccessibilityModule(_0x2751c5[_0x5583ff]());const _0x68e747=this[_0x6da743(0x12e)]&&_0x52cd3a[_0x6da743(0x12c)](this['config'][_0x6da743(0xaa)],undefined)&&_0x52cd3a['HcZaM'](this[_0x6da743(0x12e)]['app'],null);BrowserstackCLI[_0x6da743(0x90)]=!_0x68e747;}else try{const _0x165b02=_0x2751c5[_0x5583ff](),_0x4c887b=_0x165b02&&_0x52cd3a[_0x6da743(0xe9)](typeof _0x165b02[_0x38fb6c],_0x52cd3a[_0x6da743(0xf9)])?!!_0x165b02[_0x38fb6c]():![];this[_0x6da743(0xd6)][_0x6da743(0x107)](_0x6da743(0x106)+_0x4c887b);if(_0x52cd3a[_0x6da743(0x105)](!_0x4c887b,_0x165b02)){const _0x393471=_0x165b02[_0x6da743(0x18a)]?_0x165b02[_0x6da743(0x18a)]():_0x165b02;_0x393471[_0x6da743(0xeb)]&&Array[_0x6da743(0x114)](_0x393471['errorsList'])&&(this['logger'][_0x6da743(0x182)](_0x6da743(0xbb)+_0x393471[_0x6da743(0xeb)]['length']+_0x6da743(0x15a)),_0x393471[_0x6da743(0xeb)][_0x6da743(0x13b)]((_0x2c00ba,_0x3a1829)=>{const _0x382872=_0x6da743;this[_0x382872(0xd6)][_0x382872(0x182)](_0x382872(0x194)+_0x2c00ba[_0x382872(0x8b)]+']\x20'+_0x2c00ba[_0x382872(0x11f)]);}),_0x393471[_0x6da743(0x155)]&&this[_0x6da743(0xd6)][_0x6da743(0x182)](_0x6da743(0xba)+_0x393471[_0x6da743(0x155)]),_0x393471[_0x6da743(0xa9)]&&this[_0x6da743(0xd6)][_0x6da743(0x182)]('Error\x20Code:\x20'+_0x393471[_0x6da743(0xa9)]));}}catch(_0x55753b){this[_0x6da743(0xd6)][_0x6da743(0x182)]('Error\x20reading\x20accessibility\x20success\x20value:\x20'+_0x55753b);}const _0x251552=CLIUtils[_0x6da743(0xe3)]();if(_0x52cd3a['hEbNt'](_0x251552[_0x6da743(0xc9)]['toLowerCase'](),FRAMEWORKS['PUPPETEER'][_0x6da743(0xde)]())){const _0x53c8fc=_0x52cd3a[_0x6da743(0x133)](require,_0x52cd3a[_0x6da743(0x9a)]);this[_0x6da743(0x16b)][_0x53c8fc[_0x6da743(0x11c)]]=new _0x53c8fc(_0x64341b);}else this[_0x6da743(0x16b)][_0x4e2e0e[_0x6da743(0x11c)]]=new _0x4e2e0e(_0x64341b);this[_0x6da743(0x177)]=!![],this[_0x6da743(0x17d)]();}[a67_0x4a0c24(0x8d)](){const _0x5722bc=a67_0x4a0c24;return this[_0x5722bc(0x16b)][AccessibilityModule['MODULE_NAME']];}async[a67_0x4a0c24(0x17d)](){const _0x25f11f=a67_0x4a0c24;for(const _0x3afadd in this[_0x25f11f(0x16b)]){const _0x5ea118=this['modules'][_0x3afadd];await _0x5ea118['configure'](this[_0x25f11f(0x16d)],0x0,GrpcClient[_0x25f11f(0x8a)]()['client'],this[_0x25f11f(0x12e)]);}}async[a67_0x4a0c24(0x18f)](){const _0x1ad57c=a67_0x4a0c24,_0x99a8a7={};_0x99a8a7[_0x1ad57c(0x13a)]=_0x1ad57c(0x162),_0x99a8a7[_0x1ad57c(0x14b)]=_0x1ad57c(0xce),_0x99a8a7[_0x1ad57c(0x10e)]=function(_0x2ceeef,_0x4adcc5){return _0x2ceeef<=_0x4adcc5;},_0x99a8a7[_0x1ad57c(0x116)]=function(_0x4c652a,_0x11781f){return _0x4c652a>_0x11781f;},_0x99a8a7[_0x1ad57c(0x179)]=function(_0x9beea3,_0x3dcf87){return _0x9beea3<_0x3dcf87;},_0x99a8a7[_0x1ad57c(0x97)]=_0x1ad57c(0x128);const _0x99deb8=_0x99a8a7;PerformanceTester[_0x1ad57c(0x18f)](PerformanceEvents[_0x1ad57c(0x121)]);if(CLIUtils['isDevelopmentEnv']())return this[_0x1ad57c(0x92)](CLIUtils[_0x1ad57c(0x95)]()),PerformanceTester[_0x1ad57c(0x10f)](PerformanceEvents[_0x1ad57c(0x121)]),Promise[_0x1ad57c(0xb7)]();if(this[_0x1ad57c(0x112)]&&this[_0x1ad57c(0x112)][_0x1ad57c(0xb6)])return PerformanceTester[_0x1ad57c(0x10f)](PerformanceEvents['SDK_CLI_START']),Promise[_0x1ad57c(0xb7)]();const _0x36eaed=await this[_0x1ad57c(0x8f)]();if(!_0x36eaed)throw new Error(_0x99deb8[_0x1ad57c(0x13a)]);const _0x2bbfca=[_0x36eaed,_0x99deb8[_0x1ad57c(0x14b)]];this[_0x1ad57c(0xd6)][_0x1ad57c(0x107)]('spawning\x20command=\x27'+_0x2bbfca+'\x27');for(let _0x59eb5b=0x1;_0x99deb8[_0x1ad57c(0x10e)](_0x59eb5b,MAX_SPAWN_RETRIES);_0x59eb5b++){try{await this['_spawnAndAwaitReady'](_0x2bbfca);_0x99deb8[_0x1ad57c(0x116)](_0x59eb5b,0x1)&&this[_0x1ad57c(0xd6)][_0x1ad57c(0x107)]('spawn\x20succeeded\x20on\x20attempt\x20'+_0x59eb5b+'/'+MAX_SPAWN_RETRIES);break;}catch(_0x523982){if(BINARY_BUSY_ERROR_CODES[_0x1ad57c(0x195)](_0x523982[_0x1ad57c(0xa9)])&&_0x99deb8[_0x1ad57c(0x179)](_0x59eb5b,MAX_SPAWN_RETRIES))this[_0x1ad57c(0xd6)][_0x1ad57c(0x129)]('spawn\x20'+_0x523982['code']+_0x1ad57c(0x144)+_0x59eb5b+'/'+MAX_SPAWN_RETRIES+',\x20retrying\x20in\x20'+SPAWN_RETRY_DELAY_MS+_0x1ad57c(0x183)),this['process']&&(this[_0x1ad57c(0x112)][_0x1ad57c(0x174)](),!this[_0x1ad57c(0x112)][_0x1ad57c(0x113)]&&this[_0x1ad57c(0x112)]['kill'](_0x99deb8['XsDEt']),this[_0x1ad57c(0x112)]=null),await new Promise(_0x529467=>setTimeout(_0x529467,SPAWN_RETRY_DELAY_MS));else throw _0x523982;}}}[a67_0x4a0c24(0xf8)](_0x3b9edb){const _0x45f2cf=a67_0x4a0c24,_0x65efed={'dCExr':function(_0x2e95b0,_0x33889b){return _0x2e95b0!==_0x33889b;},'vxXsg':_0x45f2cf(0x163),'ILaFT':_0x45f2cf(0x15d),'kWBwY':'close','Yczlc':function(_0x38c3bc){return _0x38c3bc();},'MEBYz':_0x45f2cf(0x182),'GzLqz':function(_0x1f1b98,_0x156a1b){return _0x1f1b98(_0x156a1b);},'yFqsq':function(_0x537cb8,_0x192a77){return _0x537cb8!==_0x192a77;},'CJWAv':function(_0x4c5b7d,_0x5cb410,_0x5c824,_0x11e8c8){return _0x4c5b7d(_0x5cb410,_0x5c824,_0x11e8c8);},'SyrPd':function(_0x43c84a,_0x1ae5b9){return _0x43c84a(_0x1ae5b9);},'PjLNz':_0x45f2cf(0x19c),'NrNHi':_0x45f2cf(0x18e)};return new Promise((_0x34b915,_0x1ac455)=>{const _0x5207c5=_0x45f2cf,_0x216697={'qmhmN':function(_0x335bbd,_0x3bd44a){const _0x8500a9=a67_0x23aa;return _0x65efed[_0x8500a9(0x118)](_0x335bbd,_0x3bd44a);},'YqGoG':_0x65efed[_0x5207c5(0xb1)],'iLyKh':_0x65efed[_0x5207c5(0x12d)],'AYHrP':_0x65efed['kWBwY'],'pRngo':function(_0x2270a0){const _0x5c5b4b=_0x5207c5;return _0x65efed[_0x5c5b4b(0xa7)](_0x2270a0);},'tJvWF':_0x65efed[_0x5207c5(0x14e)],'bXCbh':function(_0x15a6c2,_0x4948dc){const _0x59cbeb=_0x5207c5;return _0x65efed[_0x59cbeb(0x99)](_0x15a6c2,_0x4948dc);},'IeUCY':function(_0x4aecc7,_0x37fd72){return _0x65efed['yFqsq'](_0x4aecc7,_0x37fd72);},'eBGRz':function(_0x421e00,_0x220ea1){return _0x65efed['GzLqz'](_0x421e00,_0x220ea1);}},_0x28144c={};_0x28144c[_0x5207c5(0x11e)]=process[_0x5207c5(0x11e)],this['process']=_0x65efed[_0x5207c5(0x199)](spawn,_0x3b9edb[0x0],_0x3b9edb[_0x5207c5(0x18b)](0x1),_0x28144c);if(!this['process']||!this[_0x5207c5(0x112)]['pid']){_0x65efed[_0x5207c5(0xf1)](_0x1ac455,new Error(_0x65efed[_0x5207c5(0x94)]));return;}const _0x5cff0b={};this[_0x5207c5(0x112)]['stdout']['on'](_0x65efed[_0x5207c5(0xd3)],_0x178bf7=>{const _0x1b71c8=_0x5207c5,_0x3bee77={'EYsbr':function(_0x24db86,_0x2cd2c7){const _0x14b06c=a67_0x23aa;return _0x216697[_0x14b06c(0x156)](_0x24db86,_0x2cd2c7);}},_0x7c7e4d=_0x178bf7[_0x1b71c8(0xd1)]()[_0x1b71c8(0x191)]()[_0x1b71c8(0x19e)]('\x0a');for(const _0x18136f of _0x7c7e4d){if(/^(id|listen|port)=.*$/[_0x1b71c8(0x13d)](_0x18136f)){const [_0x3cdb98,_0x45ca73]=_0x18136f[_0x1b71c8(0x19e)]('=',0x2);_0x216697[_0x1b71c8(0x156)](_0x45ca73,undefined)&&(_0x5cff0b[_0x3cdb98]=_0x45ca73);}if(_0x18136f['toLowerCase']()[_0x1b71c8(0x195)](_0x216697['YqGoG'])){const _0xf16592=_0x216697[_0x1b71c8(0xfa)][_0x1b71c8(0x19e)]('|');let _0x43c564=0x0;while(!![]){switch(_0xf16592[_0x43c564++]){case'0':this['process'][_0x1b71c8(0x174)](_0x216697['AYHrP']);continue;case'1':return;case'2':PerformanceTester['end'](PerformanceEvents[_0x1b71c8(0x121)]);continue;case'3':_0x216697[_0x1b71c8(0xb0)](_0x34b915);continue;case'4':this['process']['on'](_0x216697[_0x1b71c8(0x136)],_0x7fd193=>{const _0x220cb8=_0x1b71c8;_0x3bee77[_0x220cb8(0x137)](_0x7fd193,0x0)&&this['logger'][_0x220cb8(0x182)]('CLI\x20process\x20exited\x20with\x20code\x20'+_0x7fd193+_0x220cb8(0x12f));});continue;case'5':this[_0x1b71c8(0x112)][_0x1b71c8(0x174)](_0x216697[_0x1b71c8(0x164)]);continue;case'6':this[_0x1b71c8(0x112)]['on'](_0x216697[_0x1b71c8(0x164)],_0x2823ca=>{const _0x5382b7=_0x1b71c8;this['logger'][_0x5382b7(0x182)](_0x5382b7(0x8e)+_0x2823ca['code']+_0x5382b7(0x18c)+_0x2823ca[_0x5382b7(0x11f)]);});continue;case'7':this[_0x1b71c8(0x92)](_0x5cff0b);continue;}break;}}}}),this[_0x5207c5(0x112)][_0x5207c5(0x180)]['on'](_0x65efed[_0x5207c5(0xd3)],_0x2678a0=>{const _0x4be8bd=_0x5207c5;this[_0x4be8bd(0xd6)][_0x4be8bd(0x182)](_0x4be8bd(0x147)+_0x2678a0[_0x4be8bd(0xd1)]()[_0x4be8bd(0x191)]());}),this[_0x5207c5(0x112)]['on'](_0x65efed[_0x5207c5(0x14e)],_0x188884=>{const _0x130fa7=_0x5207c5;_0x5cff0b[_0x130fa7(0x182)]=_0x130fa7(0x170)+_0x188884['code']+'):\x20'+_0x188884[_0x130fa7(0x11f)],PerformanceTester[_0x130fa7(0x10f)](PerformanceEvents['SDK_CLI_START'],![],_0x188884),_0x216697[_0x130fa7(0x190)](_0x1ac455,_0x188884);}),this['process']['on'](_0x65efed[_0x5207c5(0xdf)],_0x540333=>{const _0xe53465=_0x5207c5;_0x216697[_0xe53465(0x188)](_0x540333,0x0)&&_0x216697[_0xe53465(0x13c)](_0x1ac455,new Error('CLI\x20process\x20exited\x20with\x20code\x20'+_0x540333));});});}async[a67_0x4a0c24(0x176)](_0x2bf07a=null){const _0x456a21=a67_0x4a0c24,_0x3b37a9={'MYKBG':'stop:\x20CLI\x20process\x20exited','mHtHN':function(_0x2c7d3e){return _0x2c7d3e();},'tHeaM':_0x456a21(0xd7),'QIGYf':_0x456a21(0x128),'gqcQA':function(_0x512c8b){return _0x512c8b();},'QSZIK':_0x456a21(0x87),'lQHCf':function(_0x4139b6,_0x426dff,_0x5758a7){return _0x4139b6(_0x426dff,_0x5758a7);},'JXHNi':_0x456a21(0xc2),'LYcJr':_0x456a21(0xfc),'eaTEb':function(_0x4a20ea,_0x35b6a3){return _0x4a20ea(_0x35b6a3);},'svNrS':_0x456a21(0x17a),'AbiLS':_0x456a21(0x187),'XMrrP':_0x456a21(0x192),'ficdq':'stop:\x20shutting\x20down\x20CLI'};if(!this[_0x456a21(0x160)]()){this[_0x456a21(0xd6)][_0x456a21(0x107)](_0x3b37a9['JXHNi']);return;}PerformanceTester['start'](PerformanceEvents[_0x456a21(0xc7)]),this[_0x456a21(0xd6)][_0x456a21(0x107)](_0x3b37a9['LYcJr']);try{if(this[_0x456a21(0xb8)]){const _0x35fe13=_0x3b37a9[_0x456a21(0x126)](require,_0x3b37a9['svNrS']),_0x50e1db=this['modules'][_0x456a21(0x14a)]?.['testhubConfig']?.[_0x456a21(0x18a)]()?.[_0x456a21(0xdb)],_0x322195=TestInfo[_0x456a21(0x14f)](_0x50e1db),_0x361da3=_0x322195[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x2fb2e9=await GrpcClient['getInstance']()[_0x456a21(0xa0)](JSON[_0x456a21(0x171)](_0x361da3),_0x2bf07a);_0x2fb2e9&&_0x2fb2e9[_0x456a21(0x19b)]()&&_0x2fb2e9['getAutomateBuildlink']()&&(BrowserstackCLI[_0x456a21(0xe0)]=_0x2fb2e9['getAutomateBuildlink'](),BrowserstackCLI[_0x456a21(0xf0)]=_0x2fb2e9['getHashedId']()),await _0x35fe13[_0x456a21(0xbd)](),TestInfo['shutdown'](),buildLogger[_0x456a21(0x107)](_0x456a21(0x15b)+BrowserstackCLI[_0x456a21(0xe0)]+'\x20hashed_id='+BrowserstackCLI[_0x456a21(0xf0)]+_0x456a21(0xbc)+BrowserstackCLI[_0x456a21(0x196)]);}await this[_0x456a21(0x9e)]();const _0x23f96c=GrpcClient[_0x456a21(0x8a)]()[_0x456a21(0x115)]();if(_0x23f96c){try{_0x23f96c[_0x456a21(0xed)](),this[_0x456a21(0xd6)][_0x456a21(0x107)](_0x3b37a9['AbiLS']);}catch(_0xfcd06a){this['logger'][_0x456a21(0x182)](util[_0x456a21(0xff)](_0x3b37a9[_0x456a21(0x9f)],_0xfcd06a));}await new Promise(_0x498b6f=>setTimeout(_0x498b6f,0x1388));}this[_0x456a21(0x112)]&&this[_0x456a21(0x112)]['pid']&&(this[_0x456a21(0xd6)][_0x456a21(0x107)](_0x3b37a9[_0x456a21(0x16c)]),this['process'][_0x456a21(0xcb)](),await new Promise(_0x5a7e42=>{const _0x5448c0=_0x456a21,_0xccf895={'BgtrK':_0x3b37a9[_0x5448c0(0x15c)],'xKHYF':_0x3b37a9[_0x5448c0(0xd5)],'ipQpd':function(_0x11aa28){return _0x3b37a9['gqcQA'](_0x11aa28);}};let _0x4bae7b=![];this[_0x5448c0(0x112)]['on'](_0x3b37a9[_0x5448c0(0xa2)],()=>{const _0x473ca1=_0x5448c0;this[_0x473ca1(0xd6)][_0x473ca1(0x107)](_0x3b37a9[_0x473ca1(0x11a)]),_0x4bae7b=!![],PerformanceTester[_0x473ca1(0x10f)](PerformanceEvents[_0x473ca1(0xc7)]),_0x3b37a9[_0x473ca1(0xad)](_0x5a7e42);}),_0x3b37a9[_0x5448c0(0xd2)](setTimeout,()=>{const _0x559453=_0x5448c0;!_0x4bae7b&&(this['logger']['warn'](_0xccf895[_0x559453(0x16a)]),this[_0x559453(0x112)][_0x559453(0xcb)](_0xccf895['xKHYF']),PerformanceTester[_0x559453(0x10f)](PerformanceEvents['SDK_CLI_ON_STOP']),_0xccf895['ipQpd'](_0x5a7e42));},0xbb8);}));}catch(_0x435e4b){PerformanceTester['end'](PerformanceEvents[_0x456a21(0xc7)],![],util[_0x456a21(0xff)](_0x435e4b)),this[_0x456a21(0xd6)][_0x456a21(0x182)]('stop:\x20error\x20in\x20stop\x20session\x20exception='+(_0x435e4b[_0x456a21(0x101)]||_0x435e4b));}_0x2bf07a?this[_0x456a21(0x112)][_0x456a21(0xc6)]=0x1:this[_0x456a21(0x112)][_0x456a21(0xc6)]=0x0,this[_0x456a21(0x12a)]=![],this[_0x456a21(0xb8)]=![],process[_0x456a21(0x11e)][_0x456a21(0x122)]=null;}async[a67_0x4a0c24(0x9e)](){const _0x25e19b=a67_0x4a0c24,_0xc05432={};_0xc05432[_0x25e19b(0x98)]='Unconfiguring\x20modules';const _0x505a4b=_0xc05432;this[_0x25e19b(0xd6)][_0x25e19b(0x107)](_0x505a4b[_0x25e19b(0x98)]);}[a67_0x4a0c24(0x92)](_0x461b15){const _0x1b659e=a67_0x4a0c24;this[_0x1b659e(0xd6)][_0x1b659e(0x107)](_0x1b659e(0xa1)+JSON[_0x1b659e(0x171)](_0x461b15)),this[_0x1b659e(0x13f)]=_0x461b15,GrpcClient['getInstance']()['init'](_0x461b15);}async[a67_0x4a0c24(0xea)](_0x3d1d8d){const _0x864f9=a67_0x4a0c24,_0x47d2e2={};_0x47d2e2[_0x864f9(0x9d)]=_0x864f9(0xd8);const _0x2a923f=_0x47d2e2;PerformanceTester['start'](PerformanceEvents[_0x864f9(0xf4)]);try{this['logger'][_0x864f9(0x107)]('Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20'+_0x3d1d8d);const _0x11a431=GrpcClient[_0x864f9(0x8a)]();if(_0x11a431&&_0x11a431['getClient']()&&_0x11a431[_0x864f9(0x115)]()){this[_0x864f9(0xd6)][_0x864f9(0x107)](_0x2a923f[_0x864f9(0x9d)]);return;}GrpcClient[_0x864f9(0x8a)]()[_0x864f9(0xfd)]();const _0x2a5f12=await GrpcClient[_0x864f9(0x8a)]()[_0x864f9(0xdd)]();this[_0x864f9(0x12a)]=!![],this['loadModules'](_0x2a5f12),PerformanceTester[_0x864f9(0x10f)](PerformanceEvents[_0x864f9(0xf4)]);}catch(_0x588579){PerformanceTester[_0x864f9(0x10f)](PerformanceEvents[_0x864f9(0xf4)],![],util[_0x864f9(0xff)](_0x588579)),this[_0x864f9(0xd6)][_0x864f9(0x182)](_0x864f9(0x146)+util[_0x864f9(0xff)](_0x588579));}}static[a67_0x4a0c24(0x89)](){const _0xd953dd=a67_0x4a0c24;try{return BrowserstackCLI['getInstance']()[_0xd953dd(0x160)]();}catch(_0x52e574){return![];}}[a67_0x4a0c24(0x160)](){const _0xd4a4ab=a67_0x4a0c24,_0x471875={};_0x471875[_0xd4a4ab(0x127)]=function(_0x313d1f,_0x1fd7f9){return _0x313d1f!==_0x1fd7f9;},_0x471875[_0xd4a4ab(0x86)]=function(_0x43086e,_0x147b49){return _0x43086e===_0x147b49;},_0x471875[_0xd4a4ab(0xef)]=function(_0x30fe82,_0x20eaee){return _0x30fe82!==_0x20eaee;};const _0x176939=_0x471875;return CLIUtils[_0xd4a4ab(0x168)]()||this[_0xd4a4ab(0xb8)]&&_0x176939[_0xd4a4ab(0x127)](this[_0xd4a4ab(0x112)],null)&&_0x176939['hlRUR'](this['process'][_0xd4a4ab(0xc6)],null)&&_0x176939[_0xd4a4ab(0xef)](GrpcClient[_0xd4a4ab(0x8a)]()[_0xd4a4ab(0xbe)](),null)&&!GrpcClient[_0xd4a4ab(0x8a)]()['getChannel']()[_0xd4a4ab(0x132)]||this[_0xd4a4ab(0x12a)]&&_0x176939[_0xd4a4ab(0xef)](GrpcClient[_0xd4a4ab(0x8a)]()[_0xd4a4ab(0x115)](),null)&&!GrpcClient[_0xd4a4ab(0x8a)]()['getChannel']()[_0xd4a4ab(0x132)];}[a67_0x4a0c24(0x123)](){const _0x260f39=a67_0x4a0c24;return this[_0x260f39(0x160)]()&&this[_0x260f39(0x177)];}[a67_0x4a0c24(0x85)](){const _0x477b1f=a67_0x4a0c24;return this[_0x477b1f(0xa5)];}[a67_0x4a0c24(0x139)](_0x4fbaae,_0x75b45f,_0x1b7976=null){const _0x197d65=a67_0x4a0c24,_0x293e3c={};_0x293e3c[_0x197d65(0x145)]=function(_0x336979,_0x34a682){return _0x336979||_0x34a682;};const _0x500703=_0x293e3c;this[_0x197d65(0xa5)]=_0x500703[_0x197d65(0x145)](_0x4fbaae,{}),this[_0x197d65(0x159)]=_0x75b45f,this['browserstackCliConfig']=_0x1b7976,process[_0x197d65(0x11e)][_0x197d65(0x186)]=this['browserstackConfig']?.[_0x197d65(0x138)]||![];const _0x102b6b=CLIUtils[_0x197d65(0x135)](),_0x145630=CLIUtils[_0x197d65(0xe3)]();LoadTestModule[_0x197d65(0x14c)](this['browserstackConfig'])&&LoadTestModule[_0x197d65(0x167)](this[_0x197d65(0xa5)]||{}),helper['isTrue'](process[_0x197d65(0x11e)][_0x197d65(0x186)])||!(CLI_SUPPORTED_FRAMEWORKS['includes'](_0x102b6b['name']['toLowerCase']())&&CLI_SUPPORTED_FRAMEWORKS[_0x197d65(0x195)](_0x145630['name']['toLowerCase']()))?process[_0x197d65(0x11e)]['BROWSERSTACK_CLI_ENABLED']=![]:process[_0x197d65(0x11e)][_0x197d65(0xec)]=!![];}async['getCliBinPath'](){const _0x547c01=a67_0x4a0c24,_0x400871={};_0x400871['tDpVC']='Setting\x20up\x20CLI\x20binary\x20path...',_0x400871[_0x547c01(0x157)]=_0x547c01(0xfe);const _0x4c5aae=_0x400871;if(!this[_0x547c01(0x125)])try{this[_0x547c01(0xd6)][_0x547c01(0x8c)](_0x4c5aae[_0x547c01(0xf2)]),this['SDK_CLI_BIN_PATH']=await CLIUtils[_0x547c01(0x197)](this[_0x547c01(0xa5)]),!this[_0x547c01(0x125)]?this[_0x547c01(0xd6)][_0x547c01(0x182)](_0x4c5aae[_0x547c01(0x157)]):this[_0x547c01(0xd6)][_0x547c01(0x8c)](_0x547c01(0xcc)+this[_0x547c01(0x125)]);}catch(_0x535a27){this[_0x547c01(0xd6)][_0x547c01(0x182)](_0x547c01(0x11d)+_0x535a27[_0x547c01(0x11f)]),this['SDK_CLI_BIN_PATH']=null;}return this[_0x547c01(0x125)];}['isCliEnabled'](){const _0x35eb79=a67_0x4a0c24;return helper[_0x35eb79(0x111)](process[_0x35eb79(0x11e)][_0x35eb79(0xec)]);}[a67_0x4a0c24(0x189)](){return this['config'];}[a67_0x4a0c24(0x15f)](_0x3354fe){const _0x44f14c=a67_0x4a0c24,_0x78ad75={};_0x78ad75[_0x44f14c(0xe5)]=function(_0x297133,_0x40d5f2){return _0x297133===_0x40d5f2;},_0x78ad75[_0x44f14c(0x166)]='setConfig:\x20Empty\x20or\x20missing\x20config\x20string\x20from\x20response',_0x78ad75[_0x44f14c(0xac)]=function(_0x5615e0,_0x5a5b9b){return _0x5615e0>_0x5a5b9b;},_0x78ad75[_0x44f14c(0xb2)]='setConfig:\x20Using\x20browserstackConfig\x20as\x20fallback',_0x78ad75[_0x44f14c(0x104)]=_0x44f14c(0x184),_0x78ad75[_0x44f14c(0xc5)]='loading\x20Modules.',_0x78ad75[_0x44f14c(0x18d)]=function(_0x2b8ab8,_0x2f9473){return _0x2b8ab8>_0x2f9473;},_0x78ad75['zsjey']=_0x44f14c(0x88);const _0x42a749=_0x78ad75;try{const _0x3cebc7=_0x3354fe[_0x44f14c(0x189)]?_0x3354fe[_0x44f14c(0x189)]():'';if(!_0x3cebc7||_0x42a749[_0x44f14c(0xe5)](_0x3cebc7[_0x44f14c(0x191)](),'')){this[_0x44f14c(0xd6)][_0x44f14c(0x8c)](_0x42a749[_0x44f14c(0x166)]);this[_0x44f14c(0xa5)]&&_0x42a749[_0x44f14c(0xac)](Object[_0x44f14c(0x124)](this[_0x44f14c(0xa5)])[_0x44f14c(0x175)],0x0)?(this[_0x44f14c(0xd6)]['debug'](_0x42a749[_0x44f14c(0xb2)]),this[_0x44f14c(0x12e)]={'server':this[_0x44f14c(0xa5)]['server'],'hubUrl':this['browserstackConfig'][_0x44f14c(0xab)],'accessibility':this['browserstackConfig'][_0x44f14c(0x110)]||![]}):(this[_0x44f14c(0xd6)][_0x44f14c(0x8c)](_0x42a749['GHhkk']),this[_0x44f14c(0x12e)]={});return;}this[_0x44f14c(0x12e)]=JSON[_0x44f14c(0x9c)](_0x3cebc7),this[_0x44f14c(0xd6)]['info'](_0x42a749['RNeZb']);}catch(_0x24462e){this[_0x44f14c(0xd6)][_0x44f14c(0x182)](_0x44f14c(0xa3)+util['format'](_0x24462e)),this[_0x44f14c(0xa5)]&&_0x42a749[_0x44f14c(0x18d)](Object[_0x44f14c(0x124)](this[_0x44f14c(0xa5)])['length'],0x0)?(this[_0x44f14c(0xd6)][_0x44f14c(0x8c)](_0x42a749['zsjey']),this['config']={'server':this[_0x44f14c(0xa5)][_0x44f14c(0x153)],'hubUrl':this[_0x44f14c(0xa5)][_0x44f14c(0xab)],'accessibility':this[_0x44f14c(0xa5)]['accessibility']||![]}):this[_0x44f14c(0x12e)]={};}}[a67_0x4a0c24(0x158)](){const _0x565d8e=a67_0x4a0c24,_0x506137={};_0x506137[_0x565d8e(0x134)]=_0x565d8e(0xe4),_0x506137['AdDbl']=_0x565d8e(0x131),_0x506137[_0x565d8e(0x119)]=_0x565d8e(0x10b);const _0x1f18c9=_0x506137;try{if(!this['browserstackConfig']){this['logger'][_0x565d8e(0x8c)](_0x1f18c9[_0x565d8e(0x134)]);return;}const _0x73e1f8=this[_0x565d8e(0x189)]();if(!_0x73e1f8){this[_0x565d8e(0xd6)][_0x565d8e(0x8c)](_0x1f18c9[_0x565d8e(0x151)]);return;}!helper[_0x565d8e(0x169)](_0x73e1f8[_0x565d8e(0x110)])&&(this[_0x565d8e(0xa5)][_0x565d8e(0x110)]=_0x73e1f8[_0x565d8e(0x110)],this['logger'][_0x565d8e(0x8c)](_0x565d8e(0x19a)+_0x73e1f8[_0x565d8e(0x110)])),!helper['isUndefined'](_0x73e1f8['accessibilityOptions'])&&(this['browserstackConfig'][_0x565d8e(0xa6)]=_0x73e1f8[_0x565d8e(0xa6)],this[_0x565d8e(0xd6)][_0x565d8e(0x8c)](_0x1f18c9['jPQAm']));}catch(_0x320d53){this[_0x565d8e(0xd6)]['error'](_0x565d8e(0xf3)+util[_0x565d8e(0xff)](_0x320d53));}}[a67_0x4a0c24(0x108)](_0x1255cd){const _0x16ae73=a67_0x4a0c24;try{this[_0x16ae73(0x11b)]=_0x1255cd['getCliArgs']()[_0x16ae73(0x19e)](','),this[_0x16ae73(0xd6)][_0x16ae73(0x107)](_0x16ae73(0xe8)+JSON[_0x16ae73(0x171)](this['cliArgs']));}catch(_0x231706){this['logger'][_0x16ae73(0x182)]('setCliArgs:\x20error='+util[_0x16ae73(0xff)](_0x231706));}}[a67_0x4a0c24(0x10d)](){const _0x144288=a67_0x4a0c24;return this[_0x144288(0x11b)];}[a67_0x4a0c24(0x17f)](){const _0x393524=a67_0x4a0c24,_0x130c4a={};_0x130c4a[_0x393524(0xf5)]=function(_0xc8f13c,_0x2a206e){return _0xc8f13c===_0x2a206e;},_0x130c4a[_0x393524(0xf7)]=function(_0x3d00f7,_0x161338){return _0x3d00f7===_0x161338;};const _0x10627a=_0x130c4a,_0x2c7dff=CLIUtils['getTestFrameworkDetail']();if(_0x10627a[_0x393524(0xf5)](_0x2c7dff['name'][_0x393524(0xde)](),FRAMEWORKS[_0x393524(0xd4)][_0x393524(0xde)]()))this['testFramework']=new PlaywrightTestFramework([_0x2c7dff[_0x393524(0xc9)]],_0x2c7dff[_0x393524(0x17c)]);else{if(_0x10627a[_0x393524(0xf5)](_0x2c7dff[_0x393524(0xc9)]['toLowerCase'](),FRAMEWORKS[_0x393524(0xb3)]['toLowerCase']()))this['testFramework']=new CucumberTestFramework([_0x2c7dff[_0x393524(0xc9)]],_0x2c7dff[_0x393524(0x17c)]);else _0x10627a[_0x393524(0xf7)](_0x2c7dff[_0x393524(0xc9)][_0x393524(0xde)](),FRAMEWORKS[_0x393524(0x14d)][_0x393524(0xde)]())&&(this[_0x393524(0xcd)]=new JestTestFramework([_0x2c7dff[_0x393524(0xc9)]],_0x2c7dff[_0x393524(0x17c)]));}}[a67_0x4a0c24(0xca)](){const _0x1782a9=a67_0x4a0c24,_0x44facd={};_0x44facd[_0x1782a9(0x17e)]=function(_0x32c2e4,_0x37cea5){return _0x32c2e4===_0x37cea5;},_0x44facd[_0x1782a9(0x172)]=function(_0x1c5cb4,_0x1662dd){return _0x1c5cb4===_0x1662dd;};const _0x458b69=_0x44facd,_0x8063f2=CLIUtils[_0x1782a9(0xe3)]();if(_0x458b69['pYBxh'](_0x8063f2[_0x1782a9(0xc9)]['toLowerCase'](),FRAMEWORKS['PLAYWRIGHT'][_0x1782a9(0xde)]()))this[_0x1782a9(0x142)]=new PlaywrightAutomationFramework(_0x8063f2[_0x1782a9(0xc9)],_0x8063f2[_0x1782a9(0x17c)]);else _0x458b69[_0x1782a9(0x172)](_0x8063f2[_0x1782a9(0xc9)][_0x1782a9(0xde)](),FRAMEWORKS[_0x1782a9(0x130)][_0x1782a9(0xde)]())&&(this[_0x1782a9(0x142)]=new PuppeteerAutomationFramework(_0x8063f2[_0x1782a9(0xc9)],_0x8063f2[_0x1782a9(0x17c)]));}[a67_0x4a0c24(0xb9)](){const _0x186c54=a67_0x4a0c24;return this[_0x186c54(0xcd)];}[a67_0x4a0c24(0x181)](){const _0x25bf38=a67_0x4a0c24;return this[_0x25bf38(0x142)];}[a67_0x4a0c24(0x193)](){return this['browserstackCliConfig'];}[a67_0x4a0c24(0x150)](){const _0x17e9c2=a67_0x4a0c24;return this[_0x17e9c2(0x159)];}}module['exports']=BrowserstackCLI;function a67_0x32dc(){const _0x51ba54=['QSZIK','setConfig:\x20error=','./framework/playwrightTestFramework.js','browserstackConfig','accessibilityOptions','Yczlc','SDK_CLI_ON_BOOTSTRAP','code','app','hubUrl','ytkvf','mHtHN','../../helpers/logger.js','ZJTdO','pRngo','vxXsg','VbVgl','CUCUMBER','loadModules:\x20Loading\x20modules','startBinSession','connected','resolve','isMainConnected','getTestFramework','Error\x20Trace\x20ID:\x20','Accessibility\x20initialization\x20failed\x20with\x20','\x20o11y_uuid=','clearAttachments','getClient','70NFLyxs','./modules/loadTestModule.js','./framework/cucumberTestFramework.js','stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','./modules/observabilityModule.js','CoyPm','RNeZb','exitCode','SDK_CLI_ON_STOP','loadModules:\x20binSessionId=','name','setupAutomationFramework','kill','CLI\x20binary\x20path\x20resolved\x20to:\x20','testFramework','sdk','getObservability','467396mEHEsK','toString','lQHCf','NrNHi','PLAYWRIGHT','QIGYf','logger','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','qyAmi','buildLogger','buildHashedId','getTesthub','connectBinSession','toLowerCase','kWBwY','BuildLink','isFalse','EcoVA','getAutomationFrameworkDetail','syncAccessibilityConfig:\x20browserstackConfig\x20not\x20set,\x20skipping\x20sync','kZipa','../utils/constants.js','BROWSERSTACK_CLI_BIN_SESSION_ID','setCliArgs:\x20cliArgs=','BxzVN','startChild','errorsList','BROWSERSTACK_CLI_ENABLED','close','initialized','rHwaJ','HashedID','SyrPd','tDpVC','syncAccessibilityConfig:\x20error=','SDK_CONNECT_BIN_SESSION','nqqyK','./framework/puppeteerAutomationFramework.js','PmHdL','_spawnAndAwaitReady','zHXtz','iLyKh','startMain:\x20Starting\x20main\x20process','stop:\x20CLI\x20stop\x20triggered','connect','CLIUtils.setupCliPath\x20returned\x20null','format','startMain','stack','535320txcCUZ','qiDZq','GHhkk','vTFNq','Accessibility\x20success=','info','setCliArgs','bootstrap','./framework/constants/testFrameworkConstants.js','syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibilityOptions\x20from\x20CLI\x20response','../../helpers/performance/constants','getCliArgs','OdWgH','end','accessibility','isTrue','process','killed','isArray','getChannel','xnKax','function','dCExr','jPQAm','MYKBG','cliArgs','MODULE_NAME','Error\x20in\x20setupCliPath:\x20','env','message','27232183jvzeuR','SDK_CLI_START','BROWSERSTACK_CLI_ENV','isBootstrapped','keys','SDK_CLI_BIN_PATH','eaTEb','nFvgb','SIGKILL','warn','isChildConnected','../../helpers/performance/performance-tester.js','HcZaM','ILaFT','config','\x20after\x20ready\x20—\x20gRPC\x20calls\x20will\x20fail','PUPPETEER','syncAccessibilityConfig:\x20CLI\x20config\x20not\x20available,\x20skipping\x20sync','isClosed','mBWlW','WwHoI','getTestFrameworkDetail','AYHrP','EYsbr','turboScale','setBrowserstackConfig','yKvsd','forEach','eBGRz','test','jyJOS','cliParams','getAccessibility','Disabling\x20CLI.','automationFramework','72107KQiOBR','\x20on\x20attempt\x20','SSEkE','Failed\x20to\x20start\x20as\x20child\x20process:\x20','CLI\x20stderr:\x20','296SQFPip','startMain:\x20main-process\x20started','TestHubModule','Wklke','isLTSSession','JEST','MEBYz','getTestDetails','getBrowserstackConfigPath','AdDbl','ZcRvh','server','34688BxMbqC','errorTraceId','qmhmN','iTyRh','syncAccessibilityConfig','browserstackConfigPath','\x20errors:','stop:\x20stopBinSession\x20build_link=','tHeaM','7|2|5|0|6|4|3|1','../../helpers/helper.js','setConfig','isRunning','../../helpers/classLogger.js','Failed\x20to\x20get\x20CLI\x20binary\x20path.\x20CLI\x20setup\x20failed.','ready','tJvWF','./framework/jestTestFramework.js','wYCzG','setLTSSessionId','isDevelopmentEnv','isUndefined','BgtrK','modules','ficdq','binSessionId','118430xTZIeq','child_process','Error\x20in\x20start\x20(code=','stringify','WGdNT','./cliUtils.js','removeAllListeners','length','stop','_modulesLoaded','bootstrap:\x20failed\x20to\x20bootstrap=','MrzNo','./uploadAttachmentsManager.js','267452hqVjHd','version','configureModules','pYBxh','setupTestFramework','stderr','getAutomationFramework','error','ms...','setConfig:\x20No\x20fallback\x20config\x20available,\x20using\x20empty\x20object','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','BROWSERSTACK_TURBOSCALE','stop:\x20channel\x20closed','IeUCY','getConfig','toObject','slice','\x20msg=','tDDYG','data','start','bXCbh','trim','stop:\x20error\x20in\x20closing\x20channel:\x20%s','getBrowserstackCliConfig','Error:\x20[','includes','O11yHashedID','setupCliPath','99aFMgoC','CJWAv','syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibility\x20from\x20CLI\x20response:\x20','getSuccess','failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','loadModules','split','getBrowserstackConfig','hlRUR','exit','setConfig:\x20Using\x20browserstackConfig\x20after\x20parse\x20error','isCLIEnabled','getInstance','key','debug','getAccessibilityModule','CLI\x20runtime\x20error\x20after\x20ready:\x20code=','getCliBinPath','A11yEnabled','getBinSessionId','loadCliParams','./modules/testhubModule.js','PjLNz','getCLIParamsForDevEnv','./modules/puppeteerDriverModule.js','XsDEt','drxaU','GzLqz','KYLyv','12JHiPjy','parse','UPakh','unConfigureModules','XMrrP','stopBinSession','CLI\x20params\x20loaded:\x20'];a67_0x32dc=function(){return _0x51ba54;};return a67_0x32dc();}
|
|
1
|
+
function a71_0x8795(){const _0x185f56=['27840sosqKm','split','exitCode','UGucT','wMrhb','setupTestFramework','QXvQk','../../helpers/classLogger.js','getSuccess','errorsList','stdout','getCliArgs','loadModules','PoZxb','./framework/jestTestFramework.js','getTestFramework','config','Error\x20in\x20start\x20(code=','spawn\x20succeeded\x20on\x20attempt\x20','./modules/puppeteerDriverModule.js','MQtUV','syncAccessibilityConfig','SIGKILL','Setting\x20up\x20CLI\x20binary\x20path...','CLIUtils.setupCliPath\x20returned\x20null','data','stringify','setupAutomationFramework','loadModules:\x20binSessionId=','setConfig:\x20Using\x20browserstackConfig\x20as\x20fallback','_modulesLoaded','./modules/playwrightDriverModule.js','setConfig:\x20Empty\x20or\x20missing\x20config\x20string\x20from\x20response','CLI\x20binary\x20path\x20resolved\x20to:\x20','eEoRd','pXgdG','xHDOC','WRCgt','aeZyg','function','./framework/newmanTestFramework.js','isDevelopmentEnv','XiLrY','../../helpers/helper.js','util','1236OOIOxH','\x20after\x20ready\x20—\x20gRPC\x20calls\x20will\x20fail','NEWMAN','connected','syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibilityOptions\x20from\x20CLI\x20response','QJBpw','23808924QYHmbI','connectBinSession','close','getAccessibilityModule','3388590aGSuoD','BROWSERSTACK_CLI_BIN_SESSION_ID','isFalse','O11yHashedID','Error\x20Trace\x20ID:\x20','uEpOo','_spawnAndAwaitReady','SDK_CLI_ON_BOOTSTRAP','stop:\x20channel\x20closed','setCliArgs:\x20error=','sdk','BuildLink','PvsAL','7508200fLMogg','testhubConfig','AVWJD','end','RAwaO','env','\x20on\x20attempt\x20','3|6|2|1|0|5|4|7','HashedID','loading\x20Modules.','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','79BEGMZr','RcLVS','browserstackConfigPath','server','startMain','KEY_CUSTOM_TAGS','loadModules:\x20skipping\x20driver\x20module\x20for\x20observability-only\x20framework','ms...','osDJE','isRunning','NalRj','Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20','ZeVoi','LsGMv','SDK_CLI_BIN_PATH','./modules/loadTestModule.js','browserstackConfig','test','BROWSERSTACK_CLI_ENABLED','getAutomationFrameworkDetail','stop:\x20error\x20in\x20closing\x20channel:\x20%s','warn','JEST','getTestFrameworkDetail','key','WXGsw','isChildConnected','setCliArgs','../utils/constants.js','iDqKo','forEach','getBinSessionId','qmORP','svTJo','cliParams','parse','ESoev','buildLogger','configureModules','killed','isClosed','stack','info','message','client','syncAccessibilityConfig:\x20error=','toObject','errorTraceId','TJgPd','spawning\x20command=\x27','ywKey','CLI\x20runtime\x20error\x20after\x20ready:\x20code=','TEtVr','trim','296004xrxmoo','getTestDetails','getAccessibility','getInstance','dMSZy','name','browserstackCliConfig','./framework/constants/testFrameworkConstants.js','startMain:\x20main-process\x20started','gGllx','Fpeca','onRYQ','MwdOy','./modules/accessibilityModule.js','5811920oYcjfm','toLowerCase','yaIah','setCliArgs:\x20cliArgs=','FLxgf','YKkae','unConfigureModules','MODULE_NAME','spawn\x20','child_process','BrowserstackCLI','KAXeo','ILCkR','start','sQCjP','initialized','setConfig:\x20Using\x20browserstackConfig\x20after\x20parse\x20error','../../helpers/performance/constants','includes','NBugR','stop:\x20error\x20in\x20stop\x20session\x20exception=','IDljw','SDK_CONNECT_BIN_SESSION','CLI\x20stderr:\x20','code','turboScale','./modules/testhubModule.js','gdLKh','YuYVo','toString','Error\x20reading\x20accessibility\x20success\x20value:\x20','exit','modules','tnGas','Failed\x20to\x20get\x20CLI\x20binary\x20path.\x20CLI\x20setup\x20failed.','GnEHC','slice','IbZmQ','setBrowserstackConfig','kill','./uploadAttachmentsManager.js','startChild','syncAccessibilityConfig:\x20browserstackConfig\x20not\x20set,\x20skipping\x20sync','cgqEW','loadModules:\x20Loading\x20modules','amtDU','failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','\x20o11y_uuid=','getObservability','MTHJF','hEtwM','oYViE','isCLIEnabled','hubUrl','BROWSERSTACK_CLI_ENV','debug','yMQrw','jomkF','shutdown','../../helpers/logger.js','18319CTpwDv','Unconfiguring\x20modules','./framework/playwrightAutomationFramework.js','oOpJM','logger','CLI\x20process\x20exited\x20with\x20code\x20','Error\x20Code:\x20',',\x20retrying\x20in\x20','):\x20','error','testFramework','ImtcK','SDK_CLI_ON_STOP','vkYDp','stderr','accessibilityOptions','\x20msg=','setConfig','zaIMt','dsyLJ','getChannel','stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','TestHubModule','automationFramework','removeAllListeners','\x20hashed_id=','eHRRi','stop:\x20stopBinSession\x20build_link=','getHashedId','ready','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','isLTSSession','stop','ytMNt','PUPPETEER','./TestInfo.js','version','stop:\x20shutting\x20down\x20CLI','process','format','bBOPS','PLAYWRIGHT','isMainConnected','YJhEP','startBinSession','getCLIParamsForDevEnv','\x20errors:','bootstrap:\x20failed\x20to\x20bootstrap=','stopBinSession','accessibility','NQVMn','CqhSE','Disabling\x20CLI.','zQFtw','binSessionId','isTrue','Accessibility\x20success=','length','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','cliArgs','./grpcClient.js','stop:\x20CLI\x20stop\x20triggered','syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibility\x20from\x20CLI\x20response:\x20','lACsf','getAutomateBuildlink','../../helpers/performance/performance-tester.js','rJwNh','getAutomationFramework','fFlyn','isCliEnabled','A11yEnabled','configure','getConfig','bootstrap','getClient','lzoYx','loadCliParams','isBootstrapped','getCliBinPath','./framework/puppeteerAutomationFramework.js','syncAccessibilityConfig:\x20CLI\x20config\x20not\x20available,\x20skipping\x20sync','CUCUMBER','resolve','SDK_CLI_START'];a71_0x8795=function(){return _0x185f56;};return a71_0x8795();}const a71_0x37ba04=a71_0x1dbb;(function(_0x52d4a6,_0x522df9){const _0x543e57=a71_0x1dbb,_0x5e4ee1=_0x52d4a6();while(!![]){try{const _0x16e777=-parseInt(_0x543e57(0x259))/0x1*(parseInt(_0x543e57(0x20a))/0x2)+-parseInt(_0x543e57(0x241))/0x3+-parseInt(_0x543e57(0x16c))/0x4+-parseInt(_0x543e57(0x17a))/0x5+parseInt(_0x543e57(0x237))/0x6*(parseInt(_0x543e57(0x1b6))/0x7)+parseInt(_0x543e57(0x24e))/0x8+parseInt(_0x543e57(0x23d))/0x9;if(_0x16e777===_0x522df9)break;else _0x5e4ee1['push'](_0x5e4ee1['shift']());}catch(_0x3e70c0){_0x5e4ee1['push'](_0x5e4ee1['shift']());}}}(a71_0x8795,0xa083c));const {spawn}=require(a71_0x37ba04(0x183)),GrpcClient=require(a71_0x37ba04(0x1f2)),util=require(a71_0x37ba04(0x236)),CLIUtils=require('./cliUtils.js'),PlaywrightAutomationFramework=require(a71_0x37ba04(0x1b8)),PuppeteerAutomationFramework=require(a71_0x37ba04(0x205)),PlaywrightTestFramework=require('./framework/playwrightTestFramework.js'),CucumberTestFramework=require('./framework/cucumberTestFramework.js'),JestTestFramework=require(a71_0x37ba04(0x218)),{createClassLogger}=require(a71_0x37ba04(0x211)),PerformanceTester=require(a71_0x37ba04(0x1f7)),{EVENTS:PerformanceEvents}=require(a71_0x37ba04(0x18b)),AccessibilityModule=require(a71_0x37ba04(0x179)),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS,BINARY_BUSY_ERROR_CODES,MAX_SPAWN_RETRIES,SPAWN_RETRY_DELAY_MS}=require(a71_0x37ba04(0x275)),helper=require(a71_0x37ba04(0x235)),TestFrameworkConstants=require(a71_0x37ba04(0x173)),buildLogger=require(a71_0x37ba04(0x1b5))[a71_0x37ba04(0x15b)],LoadTestModule=require(a71_0x37ba04(0x268)),TestInfo=require(a71_0x37ba04(0x1d9));function a71_0x1dbb(_0x199893,_0x2ad8bc){const _0x879508=a71_0x8795();return a71_0x1dbb=function(_0x1dbbda,_0x21ad11){_0x1dbbda=_0x1dbbda-0x155;let _0x403403=_0x879508[_0x1dbbda];return _0x403403;},a71_0x1dbb(_0x199893,_0x2ad8bc);}class BrowserstackCLI{static #instance=null;static ['BuildLink']=null;static [a71_0x37ba04(0x256)]=null;static [a71_0x37ba04(0x244)]=null;static [a71_0x37ba04(0x1fc)]=![];[a71_0x37ba04(0x1dc)]=null;['isMainConnected']=![];[a71_0x37ba04(0x273)]=![];[a71_0x37ba04(0x228)]=![];['binSessionId']=null;[a71_0x37ba04(0x19a)]={};[a71_0x37ba04(0x1c0)]=null;['automationFramework']=null;[a71_0x37ba04(0x1ba)]=createClassLogger(a71_0x37ba04(0x184));constructor(){const _0x410365=a71_0x37ba04;this[_0x410365(0x189)]=![],this['config']={},this[_0x410365(0x1f1)]={},this[_0x410365(0x269)]={};}static[a71_0x37ba04(0x16f)](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async[a71_0x37ba04(0x1ff)](){const _0xbf9b16=a71_0x37ba04,_0x466ce9={};_0x466ce9[_0xbf9b16(0x177)]=_0xbf9b16(0x1ea);const _0x4dbe55=_0x466ce9;if(helper[_0xbf9b16(0x243)](process[_0xbf9b16(0x253)][_0xbf9b16(0x26b)])){this[_0xbf9b16(0x1ba)][_0xbf9b16(0x160)](_0x4dbe55[_0xbf9b16(0x177)]);return;}PerformanceTester['start'](PerformanceEvents[_0xbf9b16(0x248)]);try{const _0x13252e=process[_0xbf9b16(0x253)][_0xbf9b16(0x242)]||null;this[_0xbf9b16(0x225)](),this['setupTestFramework']();if(_0x13252e){await this[_0xbf9b16(0x1a3)](_0x13252e),PerformanceTester[_0xbf9b16(0x251)](PerformanceEvents[_0xbf9b16(0x248)]);return;}await this['startMain']();}catch(_0x460e4f){this[_0xbf9b16(0x1ba)][_0xbf9b16(0x1bf)](_0xbf9b16(0x1e5)+(_0x460e4f[_0xbf9b16(0x15f)]||_0x460e4f)),await this[_0xbf9b16(0x1d6)](),PerformanceTester[_0xbf9b16(0x251)](PerformanceEvents[_0xbf9b16(0x248)],![],util['format'](_0x460e4f));}}async[a71_0x37ba04(0x25d)](){const _0x49b285=a71_0x37ba04,_0x31612d={};_0x31612d['WRCgt']='startMain:\x20Starting\x20main\x20process',_0x31612d[_0x49b285(0x195)]=_0x49b285(0x174);const _0x1d7e98=_0x31612d;this[_0x49b285(0x1ba)][_0x49b285(0x160)](_0x1d7e98[_0x49b285(0x22f)]),await this[_0x49b285(0x187)](),this[_0x49b285(0x1ba)][_0x49b285(0x1b1)](_0x1d7e98['gdLKh']);const _0x56bfae=await GrpcClient[_0x49b285(0x16f)]()[_0x49b285(0x1e2)]();this[_0x49b285(0x1e0)]=!![],this[_0x49b285(0x216)](_0x56bfae);}[a71_0x37ba04(0x216)](_0x549cb0){const _0x4361b8=a71_0x37ba04,_0x1abace={'rJwNh':function(_0x4a9e7a,_0x156777){return _0x4a9e7a(_0x156777);},'gOlXX':_0x4361b8(0x229),'ZeVoi':_0x4361b8(0x194),'TEtVr':'./modules/observabilityModule.js','CYumJ':_0x4361b8(0x1a6),'lzoYx':_0x4361b8(0x1aa),'IbZmQ':_0x4361b8(0x16e),'tBvvS':_0x4361b8(0x212),'bBOPS':function(_0x402532,_0x29ff6f){return _0x402532||_0x29ff6f;},'jomkF':function(_0x358069,_0x4b0ffd){return _0x358069!==_0x4b0ffd;},'oOpJM':function(_0x135509,_0xcf3455){return _0x135509!==_0xcf3455;},'NBugR':function(_0x4dec86,_0x5e109d){return _0x4dec86===_0x5e109d;},'qmORP':_0x4361b8(0x231),'dMSZy':function(_0x177637,_0x5d5394){return _0x177637&&_0x5d5394;},'hFhiu':_0x4361b8(0x25f),'meQhc':_0x4361b8(0x21d)},_0xc60e35=_0x1abace['rJwNh'](require,_0x1abace['gOlXX']),_0x22727f=_0x1abace['rJwNh'](require,_0x1abace[_0x4361b8(0x265)]),_0x281353=_0x1abace['rJwNh'](require,_0x1abace[_0x4361b8(0x16a)]);this[_0x4361b8(0x1ba)][_0x4361b8(0x160)](_0x1abace['CYumJ']),this[_0x4361b8(0x1ec)]=_0x549cb0[_0x4361b8(0x155)](),this[_0x4361b8(0x1ba)][_0x4361b8(0x160)](_0x4361b8(0x226)+this[_0x4361b8(0x1ec)]),this[_0x4361b8(0x1c7)](_0x549cb0),this[_0x4361b8(0x21f)]();!this['isChildConnected']&&this[_0x4361b8(0x274)](_0x549cb0);const _0x16be91=_0x1abace[_0x4361b8(0x201)],_0x181239=_0x1abace[_0x4361b8(0x19f)],_0x186a60=_0x1abace['tBvvS'],_0x26ec16=_0x549cb0[_0x16be91]()&&_0x549cb0[_0x16be91]()[_0x186a60](),_0x3ccfd4=_0x549cb0[_0x181239]()&&_0x549cb0[_0x181239]()[_0x186a60](),_0x241e5f=process[_0x4361b8(0x253)][_0x4361b8(0x1d4)]&&JSON[_0x4361b8(0x159)](process['env'][_0x4361b8(0x1d4)]);_0x1abace[_0x4361b8(0x1de)](_0x26ec16,_0x3ccfd4)&&(this['modules'][_0x22727f['MODULE_NAME']]=new _0x22727f(_0x549cb0['getTesthub'](),_0x241e5f));_0x26ec16&&(this[_0x4361b8(0x19a)][_0x281353[_0x4361b8(0x181)]]=new _0x281353(_0x549cb0[_0x16be91]()));if(_0x3ccfd4){this[_0x4361b8(0x19a)][AccessibilityModule['MODULE_NAME']]=new AccessibilityModule(_0x549cb0[_0x181239]());const _0x112b0f=this['config']&&_0x1abace[_0x4361b8(0x1b3)](this[_0x4361b8(0x21a)]['app'],undefined)&&_0x1abace[_0x4361b8(0x1b9)](this['config']['app'],null);BrowserstackCLI[_0x4361b8(0x1fc)]=!_0x112b0f;}else try{const _0x2b7d51=_0x549cb0[_0x181239](),_0x139f93=_0x2b7d51&&_0x1abace[_0x4361b8(0x18d)](typeof _0x2b7d51[_0x186a60],_0x1abace[_0x4361b8(0x156)])?!!_0x2b7d51[_0x186a60]():![];this[_0x4361b8(0x1ba)][_0x4361b8(0x160)](_0x4361b8(0x1ee)+_0x139f93);if(_0x1abace[_0x4361b8(0x170)](!_0x139f93,_0x2b7d51)){const _0x56e1f0=_0x2b7d51[_0x4361b8(0x164)]?_0x2b7d51[_0x4361b8(0x164)]():_0x2b7d51;_0x56e1f0[_0x4361b8(0x213)]&&Array['isArray'](_0x56e1f0[_0x4361b8(0x213)])&&(this[_0x4361b8(0x1ba)]['error']('Accessibility\x20initialization\x20failed\x20with\x20'+_0x56e1f0[_0x4361b8(0x213)][_0x4361b8(0x1ef)]+_0x4361b8(0x1e4)),_0x56e1f0[_0x4361b8(0x213)][_0x4361b8(0x277)]((_0x3e142e,_0x7752e)=>{const _0x41d0a7=_0x4361b8;this[_0x41d0a7(0x1ba)][_0x41d0a7(0x1bf)]('Error:\x20['+_0x3e142e[_0x41d0a7(0x271)]+']\x20'+_0x3e142e['message']);}),_0x56e1f0['errorTraceId']&&this[_0x4361b8(0x1ba)][_0x4361b8(0x1bf)](_0x4361b8(0x245)+_0x56e1f0[_0x4361b8(0x165)]),_0x56e1f0[_0x4361b8(0x192)]&&this[_0x4361b8(0x1ba)][_0x4361b8(0x1bf)](_0x4361b8(0x1bc)+_0x56e1f0[_0x4361b8(0x192)]));}}catch(_0x4e82c8){this[_0x4361b8(0x1ba)][_0x4361b8(0x1bf)](_0x4361b8(0x198)+_0x4e82c8);}const _0x42c8d5=CLIUtils[_0x4361b8(0x26c)]();if(_0x1abace[_0x4361b8(0x18d)](_0x42c8d5[_0x4361b8(0x171)]['toLowerCase'](),FRAMEWORKS[_0x4361b8(0x239)]['toLowerCase']()))this['logger'][_0x4361b8(0x160)](_0x1abace['hFhiu']);else{if(_0x1abace[_0x4361b8(0x18d)](_0x42c8d5[_0x4361b8(0x171)][_0x4361b8(0x17b)](),FRAMEWORKS[_0x4361b8(0x1d8)][_0x4361b8(0x17b)]())){const _0x29436e=_0x1abace[_0x4361b8(0x1f8)](require,_0x1abace['meQhc']);this[_0x4361b8(0x19a)][_0x29436e[_0x4361b8(0x181)]]=new _0x29436e(_0x241e5f);}else this[_0x4361b8(0x19a)][_0xc60e35['MODULE_NAME']]=new _0xc60e35(_0x241e5f);}this['_modulesLoaded']=!![],this[_0x4361b8(0x15c)]();}[a71_0x37ba04(0x240)](){const _0x4b13f=a71_0x37ba04;return this[_0x4b13f(0x19a)][AccessibilityModule[_0x4b13f(0x181)]];}async[a71_0x37ba04(0x15c)](){const _0x44058c=a71_0x37ba04;for(const _0x218ac5 in this[_0x44058c(0x19a)]){const _0x2b0b06=this[_0x44058c(0x19a)][_0x218ac5];await _0x2b0b06[_0x44058c(0x1fd)](this[_0x44058c(0x1ec)],0x0,GrpcClient['getInstance']()[_0x44058c(0x162)],this[_0x44058c(0x21a)]);}}async['start'](){const _0x56abd8=a71_0x37ba04,_0x22723f={};_0x22723f['IlFiR']=_0x56abd8(0x19c),_0x22723f[_0x56abd8(0x234)]=_0x56abd8(0x24b),_0x22723f[_0x56abd8(0x1f5)]=function(_0x4de18a,_0x28070f){return _0x4de18a<=_0x28070f;},_0x22723f[_0x56abd8(0x1c3)]=function(_0x40e026,_0x4d61a8){return _0x40e026>_0x4d61a8;},_0x22723f[_0x56abd8(0x21e)]=function(_0x5f08a4,_0x864c0a){return _0x5f08a4<_0x864c0a;},_0x22723f[_0x56abd8(0x20d)]=_0x56abd8(0x220);const _0x4c61db=_0x22723f;PerformanceTester['start'](PerformanceEvents[_0x56abd8(0x209)]);if(CLIUtils[_0x56abd8(0x233)]())return this['loadCliParams'](CLIUtils[_0x56abd8(0x1e3)]()),PerformanceTester['end'](PerformanceEvents[_0x56abd8(0x209)]),Promise[_0x56abd8(0x208)]();if(this[_0x56abd8(0x1dc)]&&this[_0x56abd8(0x1dc)][_0x56abd8(0x23a)])return PerformanceTester[_0x56abd8(0x251)](PerformanceEvents['SDK_CLI_START']),Promise['resolve']();const _0xf859e2=await this['getCliBinPath']();if(!_0xf859e2)throw new Error(_0x4c61db['IlFiR']);const _0x2c802a=[_0xf859e2,_0x4c61db[_0x56abd8(0x234)]];this[_0x56abd8(0x1ba)][_0x56abd8(0x160)](_0x56abd8(0x167)+_0x2c802a+'\x27');for(let _0x51dacf=0x1;_0x4c61db[_0x56abd8(0x1f5)](_0x51dacf,MAX_SPAWN_RETRIES);_0x51dacf++){try{await this[_0x56abd8(0x247)](_0x2c802a);_0x4c61db[_0x56abd8(0x1c3)](_0x51dacf,0x1)&&this['logger'][_0x56abd8(0x160)](_0x56abd8(0x21c)+_0x51dacf+'/'+MAX_SPAWN_RETRIES);break;}catch(_0x22010e){if(BINARY_BUSY_ERROR_CODES[_0x56abd8(0x18c)](_0x22010e['code'])&&_0x4c61db[_0x56abd8(0x21e)](_0x51dacf,MAX_SPAWN_RETRIES))this['logger'][_0x56abd8(0x26e)](_0x56abd8(0x182)+_0x22010e[_0x56abd8(0x192)]+_0x56abd8(0x254)+_0x51dacf+'/'+MAX_SPAWN_RETRIES+_0x56abd8(0x1bd)+SPAWN_RETRY_DELAY_MS+_0x56abd8(0x260)),this[_0x56abd8(0x1dc)]&&(this[_0x56abd8(0x1dc)]['removeAllListeners'](),!this[_0x56abd8(0x1dc)][_0x56abd8(0x15d)]&&this['process']['kill'](_0x4c61db[_0x56abd8(0x20d)]),this[_0x56abd8(0x1dc)]=null),await new Promise(_0x13952b=>setTimeout(_0x13952b,SPAWN_RETRY_DELAY_MS));else throw _0x22010e;}}}[a71_0x37ba04(0x247)](_0x120b8d){const _0xafbb5=a71_0x37ba04,_0x1993c2={'GnEHC':function(_0x965940,_0x3ad3ac){return _0x965940!==_0x3ad3ac;},'TJgPd':_0xafbb5(0x1d3),'DtuvE':_0xafbb5(0x255),'JZxvA':_0xafbb5(0x1bf),'cgqEW':_0xafbb5(0x23f),'FLxgf':function(_0x3bdc69){return _0x3bdc69();},'YJhEP':function(_0x5cd151,_0x3b08c5){return _0x5cd151(_0x3b08c5);},'IDljw':function(_0xb2e9df,_0xc9d118,_0x1bf818,_0x40a08a){return _0xb2e9df(_0xc9d118,_0x1bf818,_0x40a08a);},'YKkae':_0xafbb5(0x1a8),'zaIMt':_0xafbb5(0x223)};return new Promise((_0x101d8b,_0xea230b)=>{const _0xa9d36b=_0xafbb5,_0x101f55={'PvsAL':function(_0x406f89,_0x5074a8){const _0x1fc52c=a71_0x1dbb;return _0x1993c2[_0x1fc52c(0x19d)](_0x406f89,_0x5074a8);},'oYViE':function(_0xaeb6a4,_0x273510){const _0x1ef772=a71_0x1dbb;return _0x1993c2[_0x1ef772(0x19d)](_0xaeb6a4,_0x273510);},'QXvQk':_0x1993c2[_0xa9d36b(0x166)],'pXgdG':_0x1993c2['DtuvE'],'MwdOy':_0x1993c2['JZxvA'],'xHDOC':_0x1993c2[_0xa9d36b(0x1a5)],'QJBpw':function(_0x37e48c){const _0x36c519=_0xa9d36b;return _0x1993c2[_0x36c519(0x17e)](_0x37e48c);},'GnIpF':function(_0x16e361,_0x5cb18c){const _0x3c87c7=_0xa9d36b;return _0x1993c2[_0x3c87c7(0x1e1)](_0x16e361,_0x5cb18c);},'wMrhb':function(_0x4dce0f,_0x7cb66e){return _0x1993c2['GnEHC'](_0x4dce0f,_0x7cb66e);},'osDJE':function(_0x3360f5,_0x2cba01){const _0x3c973d=_0xa9d36b;return _0x1993c2[_0x3c973d(0x1e1)](_0x3360f5,_0x2cba01);}},_0x147fad={};_0x147fad['env']=process[_0xa9d36b(0x253)],this['process']=_0x1993c2[_0xa9d36b(0x18f)](spawn,_0x120b8d[0x0],_0x120b8d[_0xa9d36b(0x19e)](0x1),_0x147fad);if(!this[_0xa9d36b(0x1dc)]||!this[_0xa9d36b(0x1dc)]['pid']){_0x1993c2[_0xa9d36b(0x1e1)](_0xea230b,new Error(_0x1993c2[_0xa9d36b(0x17f)]));return;}const _0x33b6fb={};this[_0xa9d36b(0x1dc)][_0xa9d36b(0x214)]['on'](_0x1993c2[_0xa9d36b(0x1c8)],_0x5a5169=>{const _0x543123=_0xa9d36b,_0x313e24=_0x5a5169[_0x543123(0x197)]()[_0x543123(0x16b)]()['split']('\x0a');for(const _0x1a7224 of _0x313e24){if(/^(id|listen|port)=.*$/[_0x543123(0x26a)](_0x1a7224)){const [_0x3760cd,_0xaa5657]=_0x1a7224[_0x543123(0x20b)]('=',0x2);_0x101f55[_0x543123(0x1ad)](_0xaa5657,undefined)&&(_0x33b6fb[_0x3760cd]=_0xaa5657);}if(_0x1a7224[_0x543123(0x17b)]()['includes'](_0x101f55[_0x543123(0x210)])){const _0x4d52c2=_0x101f55[_0x543123(0x22d)]['split']('|');let _0x60c356=0x0;while(!![]){switch(_0x4d52c2[_0x60c356++]){case'0':this[_0x543123(0x1dc)]['on'](_0x101f55['MwdOy'],_0x35e7c4=>{const _0xc88447=_0x543123;this['logger'][_0xc88447(0x1bf)](_0xc88447(0x169)+_0x35e7c4[_0xc88447(0x192)]+_0xc88447(0x1c6)+_0x35e7c4['message']);});continue;case'1':this[_0x543123(0x1dc)]['removeAllListeners'](_0x101f55[_0x543123(0x22e)]);continue;case'2':this[_0x543123(0x1dc)][_0x543123(0x1ce)](_0x101f55[_0x543123(0x178)]);continue;case'3':this[_0x543123(0x202)](_0x33b6fb);continue;case'4':_0x101f55[_0x543123(0x23c)](_0x101d8b);continue;case'5':this[_0x543123(0x1dc)]['on'](_0x101f55[_0x543123(0x22e)],_0x456332=>{const _0x227667=_0x543123;_0x101f55[_0x227667(0x24d)](_0x456332,0x0)&&this['logger'][_0x227667(0x1bf)]('CLI\x20process\x20exited\x20with\x20code\x20'+_0x456332+_0x227667(0x238));});continue;case'6':PerformanceTester[_0x543123(0x251)](PerformanceEvents[_0x543123(0x209)]);continue;case'7':return;}break;}}}}),this[_0xa9d36b(0x1dc)][_0xa9d36b(0x1c4)]['on'](_0x1993c2[_0xa9d36b(0x1c8)],_0x1b636c=>{const _0x151723=_0xa9d36b;this[_0x151723(0x1ba)][_0x151723(0x1bf)](_0x151723(0x191)+_0x1b636c['toString']()[_0x151723(0x16b)]());}),this[_0xa9d36b(0x1dc)]['on'](_0x1993c2['JZxvA'],_0x5b373c=>{const _0x213d13=_0xa9d36b;_0x33b6fb['error']=_0x213d13(0x21b)+_0x5b373c[_0x213d13(0x192)]+_0x213d13(0x1be)+_0x5b373c[_0x213d13(0x161)],PerformanceTester['end'](PerformanceEvents[_0x213d13(0x209)],![],_0x5b373c),_0x101f55['GnIpF'](_0xea230b,_0x5b373c);}),this[_0xa9d36b(0x1dc)]['on'](_0x1993c2[_0xa9d36b(0x1a5)],_0x1deff9=>{const _0x10964c=_0xa9d36b;_0x101f55[_0x10964c(0x20e)](_0x1deff9,0x0)&&_0x101f55[_0x10964c(0x261)](_0xea230b,new Error(_0x10964c(0x1bb)+_0x1deff9));});});}async[a71_0x37ba04(0x1d6)](_0x385435=null){const _0x42bff2=a71_0x37ba04,_0x26b70e={'YuYVo':_0x42bff2(0x1f0),'NalRj':_0x42bff2(0x220),'vqgjf':function(_0xe0c435){return _0xe0c435();},'sQCjP':'stop:\x20CLI\x20process\x20exited','RcLVS':function(_0x3ef530){return _0x3ef530();},'wyInf':_0x42bff2(0x199),'WXGsw':function(_0x5cfc96,_0x56b158,_0x363e7b){return _0x5cfc96(_0x56b158,_0x363e7b);},'dsyLJ':_0x42bff2(0x1cb),'Fpeca':_0x42bff2(0x1f3),'qHLbW':function(_0x20ebe8,_0x47691d){return _0x20ebe8(_0x47691d);},'PoZxb':_0x42bff2(0x1a2),'svTJo':_0x42bff2(0x249),'LsGMv':_0x42bff2(0x26d),'aoRVu':_0x42bff2(0x1db)};if(!this[_0x42bff2(0x262)]()){this['logger'][_0x42bff2(0x160)](_0x26b70e[_0x42bff2(0x1c9)]);return;}PerformanceTester[_0x42bff2(0x187)](PerformanceEvents['SDK_CLI_ON_STOP']),this[_0x42bff2(0x1ba)][_0x42bff2(0x160)](_0x26b70e[_0x42bff2(0x176)]);try{if(this[_0x42bff2(0x1e0)]){const _0x134af2=_0x26b70e['qHLbW'](require,_0x26b70e[_0x42bff2(0x217)]),_0x54f973=this['modules'][_0x42bff2(0x1cc)]?.[_0x42bff2(0x24f)]?.[_0x42bff2(0x164)]()?.['buildHashedId'],_0x2fda99=TestInfo[_0x42bff2(0x16d)](_0x54f973),_0xc97d0a=_0x2fda99[TestFrameworkConstants[_0x42bff2(0x25e)]]||{},_0x9e6634=await GrpcClient[_0x42bff2(0x16f)]()[_0x42bff2(0x1e6)](JSON['stringify'](_0xc97d0a),_0x385435);_0x9e6634&&_0x9e6634['getSuccess']()&&_0x9e6634[_0x42bff2(0x1f6)]()&&(BrowserstackCLI[_0x42bff2(0x24c)]=_0x9e6634[_0x42bff2(0x1f6)](),BrowserstackCLI['HashedID']=_0x9e6634[_0x42bff2(0x1d2)]()),await _0x134af2['clearAttachments'](),TestInfo[_0x42bff2(0x1b4)](),buildLogger[_0x42bff2(0x160)](_0x42bff2(0x1d1)+BrowserstackCLI[_0x42bff2(0x24c)]+_0x42bff2(0x1cf)+BrowserstackCLI[_0x42bff2(0x256)]+_0x42bff2(0x1a9)+BrowserstackCLI[_0x42bff2(0x244)]);}await this[_0x42bff2(0x180)]();const _0x27eeed=GrpcClient[_0x42bff2(0x16f)]()['getChannel']();if(_0x27eeed){try{_0x27eeed[_0x42bff2(0x23f)](),this[_0x42bff2(0x1ba)][_0x42bff2(0x160)](_0x26b70e[_0x42bff2(0x157)]);}catch(_0x1c818c){this[_0x42bff2(0x1ba)]['error'](util['format'](_0x26b70e[_0x42bff2(0x266)],_0x1c818c));}await new Promise(_0x3f923b=>setTimeout(_0x3f923b,0x1388));}this['process']&&this['process']['pid']&&(this['logger']['info'](_0x26b70e['aoRVu']),this[_0x42bff2(0x1dc)][_0x42bff2(0x1a1)](),await new Promise(_0x2de5b5=>{const _0x2a706b=_0x42bff2,_0x54fb73={'ywKey':_0x26b70e[_0x2a706b(0x188)],'eizyB':function(_0xc66767){const _0x7677b5=_0x2a706b;return _0x26b70e[_0x7677b5(0x25a)](_0xc66767);}};let _0x47e887=![];this[_0x2a706b(0x1dc)]['on'](_0x26b70e['wyInf'],()=>{const _0x33f881=_0x2a706b;this[_0x33f881(0x1ba)]['info'](_0x54fb73[_0x33f881(0x168)]),_0x47e887=!![],PerformanceTester[_0x33f881(0x251)](PerformanceEvents[_0x33f881(0x1c2)]),_0x54fb73['eizyB'](_0x2de5b5);}),_0x26b70e[_0x2a706b(0x272)](setTimeout,()=>{const _0xeb5552=_0x2a706b;!_0x47e887&&(this[_0xeb5552(0x1ba)][_0xeb5552(0x26e)](_0x26b70e[_0xeb5552(0x196)]),this[_0xeb5552(0x1dc)][_0xeb5552(0x1a1)](_0x26b70e[_0xeb5552(0x263)]),PerformanceTester['end'](PerformanceEvents[_0xeb5552(0x1c2)]),_0x26b70e['vqgjf'](_0x2de5b5));},0xbb8);}));}catch(_0x1a5c50){PerformanceTester[_0x42bff2(0x251)](PerformanceEvents[_0x42bff2(0x1c2)],![],util[_0x42bff2(0x1dd)](_0x1a5c50)),this[_0x42bff2(0x1ba)][_0x42bff2(0x1bf)](_0x42bff2(0x18e)+(_0x1a5c50[_0x42bff2(0x15f)]||_0x1a5c50));}_0x385435?this[_0x42bff2(0x1dc)][_0x42bff2(0x20c)]=0x1:this[_0x42bff2(0x1dc)]['exitCode']=0x0,this[_0x42bff2(0x273)]=![],this[_0x42bff2(0x1e0)]=![],process['env'][_0x42bff2(0x1b0)]=null;}async[a71_0x37ba04(0x180)](){const _0x2cb05c=a71_0x37ba04,_0x74910a={};_0x74910a[_0x2cb05c(0x185)]=_0x2cb05c(0x1b7);const _0x11d2f9=_0x74910a;this[_0x2cb05c(0x1ba)][_0x2cb05c(0x160)](_0x11d2f9[_0x2cb05c(0x185)]);}['loadCliParams'](_0x387c30){const _0x1e2660=a71_0x37ba04;this[_0x1e2660(0x1ba)]['info']('CLI\x20params\x20loaded:\x20'+JSON[_0x1e2660(0x224)](_0x387c30)),this[_0x1e2660(0x158)]=_0x387c30,GrpcClient[_0x1e2660(0x16f)]()['init'](_0x387c30);}async[a71_0x37ba04(0x1a3)](_0xd5830c){const _0x36e1ee=a71_0x37ba04,_0x21f923={};_0x21f923[_0x36e1ee(0x1ac)]=_0x36e1ee(0x258);const _0x3b3ac0=_0x21f923;PerformanceTester[_0x36e1ee(0x187)](PerformanceEvents['SDK_CONNECT_BIN_SESSION']);try{this[_0x36e1ee(0x1ba)][_0x36e1ee(0x160)](_0x36e1ee(0x264)+_0xd5830c);const _0x22c52b=GrpcClient[_0x36e1ee(0x16f)]();if(_0x22c52b&&_0x22c52b['getClient']()&&_0x22c52b[_0x36e1ee(0x1ca)]()){this['logger'][_0x36e1ee(0x160)](_0x3b3ac0[_0x36e1ee(0x1ac)]);return;}GrpcClient[_0x36e1ee(0x16f)]()['connect']();const _0xe758da=await GrpcClient[_0x36e1ee(0x16f)]()[_0x36e1ee(0x23e)]();this[_0x36e1ee(0x273)]=!![],this[_0x36e1ee(0x216)](_0xe758da),PerformanceTester[_0x36e1ee(0x251)](PerformanceEvents[_0x36e1ee(0x190)]);}catch(_0x560917){PerformanceTester['end'](PerformanceEvents[_0x36e1ee(0x190)],![],util['format'](_0x560917)),this[_0x36e1ee(0x1ba)][_0x36e1ee(0x1bf)]('Failed\x20to\x20start\x20as\x20child\x20process:\x20'+util['format'](_0x560917));}}static[a71_0x37ba04(0x1ae)](){const _0x4a23de=a71_0x37ba04;try{return BrowserstackCLI[_0x4a23de(0x16f)]()[_0x4a23de(0x262)]();}catch(_0x3ded71){return![];}}['isRunning'](){const _0x49dd55=a71_0x37ba04,_0x40aaf5={};_0x40aaf5[_0x49dd55(0x186)]=function(_0x5c595f,_0x22c9d3){return _0x5c595f!==_0x22c9d3;},_0x40aaf5[_0x49dd55(0x1eb)]=function(_0x19b46b,_0xf1e75b){return _0x19b46b===_0xf1e75b;};const _0x565c23=_0x40aaf5;return CLIUtils[_0x49dd55(0x233)]()||this[_0x49dd55(0x1e0)]&&_0x565c23[_0x49dd55(0x186)](this[_0x49dd55(0x1dc)],null)&&_0x565c23[_0x49dd55(0x1eb)](this['process'][_0x49dd55(0x20c)],null)&&_0x565c23['ILCkR'](GrpcClient[_0x49dd55(0x16f)]()[_0x49dd55(0x200)](),null)&&!GrpcClient[_0x49dd55(0x16f)]()[_0x49dd55(0x1ca)]()[_0x49dd55(0x15e)]||this['isChildConnected']&&_0x565c23['ILCkR'](GrpcClient[_0x49dd55(0x16f)]()[_0x49dd55(0x1ca)](),null)&&!GrpcClient[_0x49dd55(0x16f)]()['getChannel']()[_0x49dd55(0x15e)];}[a71_0x37ba04(0x203)](){const _0x16fb88=a71_0x37ba04;return this['isRunning']()&&this[_0x16fb88(0x228)];}['getBrowserstackConfig'](){return this['browserstackConfig'];}[a71_0x37ba04(0x1a0)](_0x4631ec,_0x157e68,_0x1e92cc=null){const _0x2df505=a71_0x37ba04,_0x344f09={};_0x344f09['uEpOo']=function(_0x2522d7,_0x304d2e){return _0x2522d7||_0x304d2e;},_0x344f09['AVWJD']=function(_0x48d1d7,_0x1300fa){return _0x48d1d7===_0x1300fa;},_0x344f09[_0x2df505(0x276)]=function(_0x548f03,_0x310d59){return _0x548f03||_0x310d59;};const _0x126e11=_0x344f09;this['browserstackConfig']=_0x126e11[_0x2df505(0x246)](_0x4631ec,{}),this[_0x2df505(0x25b)]=_0x157e68,this[_0x2df505(0x172)]=_0x1e92cc,process[_0x2df505(0x253)]['BROWSERSTACK_TURBOSCALE']=this[_0x2df505(0x269)]?.[_0x2df505(0x193)]||![];const _0x9229a9=CLIUtils[_0x2df505(0x270)](),_0x44e230=CLIUtils[_0x2df505(0x26c)]();LoadTestModule[_0x2df505(0x1d5)](this[_0x2df505(0x269)])&&LoadTestModule['setLTSSessionId'](this[_0x2df505(0x269)]||{});const _0x1d32ee=_0x126e11[_0x2df505(0x250)](_0x9229a9[_0x2df505(0x171)][_0x2df505(0x17b)](),FRAMEWORKS[_0x2df505(0x239)][_0x2df505(0x17b)]()),_0x138234=CLI_SUPPORTED_FRAMEWORKS['includes'](_0x9229a9[_0x2df505(0x171)][_0x2df505(0x17b)]()),_0x56c05d=CLI_SUPPORTED_FRAMEWORKS[_0x2df505(0x18c)](_0x44e230['name'][_0x2df505(0x17b)]());helper[_0x2df505(0x1ed)](process[_0x2df505(0x253)]['BROWSERSTACK_TURBOSCALE'])||!(_0x138234&&_0x126e11['iDqKo'](_0x56c05d,_0x1d32ee))?process[_0x2df505(0x253)][_0x2df505(0x26b)]=![]:process['env'][_0x2df505(0x26b)]=!![];}async[a71_0x37ba04(0x204)](){const _0x117048=a71_0x37ba04,_0x4d65e8={};_0x4d65e8[_0x117048(0x1d0)]=_0x117048(0x221),_0x4d65e8[_0x117048(0x1d7)]=_0x117048(0x222);const _0x908e5a=_0x4d65e8;if(!this[_0x117048(0x267)])try{this[_0x117048(0x1ba)]['debug'](_0x908e5a[_0x117048(0x1d0)]),this[_0x117048(0x267)]=await CLIUtils['setupCliPath'](this[_0x117048(0x269)]),!this[_0x117048(0x267)]?this['logger']['error'](_0x908e5a[_0x117048(0x1d7)]):this['logger'][_0x117048(0x1b1)](_0x117048(0x22b)+this[_0x117048(0x267)]);}catch(_0xffde36){this[_0x117048(0x1ba)][_0x117048(0x1bf)]('Error\x20in\x20setupCliPath:\x20'+_0xffde36[_0x117048(0x161)]),this[_0x117048(0x267)]=null;}return this[_0x117048(0x267)];}[a71_0x37ba04(0x1fb)](){const _0x43080b=a71_0x37ba04;return helper[_0x43080b(0x1ed)](process[_0x43080b(0x253)][_0x43080b(0x26b)]);}[a71_0x37ba04(0x1fe)](){const _0x374e03=a71_0x37ba04;return this[_0x374e03(0x21a)];}[a71_0x37ba04(0x1c7)](_0x53525f){const _0x348e55=a71_0x37ba04,_0x3db40a={};_0x3db40a[_0x348e55(0x1c1)]=function(_0x4f9ad7,_0x210c41){return _0x4f9ad7===_0x210c41;},_0x3db40a['aeZyg']=_0x348e55(0x22a),_0x3db40a[_0x348e55(0x19b)]=function(_0x1e4e11,_0x15855e){return _0x1e4e11>_0x15855e;},_0x3db40a[_0x348e55(0x1e9)]=_0x348e55(0x227),_0x3db40a[_0x348e55(0x175)]='setConfig:\x20No\x20fallback\x20config\x20available,\x20using\x20empty\x20object',_0x3db40a[_0x348e55(0x22c)]=_0x348e55(0x257),_0x3db40a[_0x348e55(0x1b2)]=_0x348e55(0x18a);const _0x4f2fd2=_0x3db40a;try{const _0x2b60d9=_0x53525f[_0x348e55(0x1fe)]?_0x53525f[_0x348e55(0x1fe)]():'';if(!_0x2b60d9||_0x4f2fd2[_0x348e55(0x1c1)](_0x2b60d9[_0x348e55(0x16b)](),'')){this['logger'][_0x348e55(0x1b1)](_0x4f2fd2[_0x348e55(0x230)]);this[_0x348e55(0x269)]&&_0x4f2fd2['tnGas'](Object['keys'](this[_0x348e55(0x269)])[_0x348e55(0x1ef)],0x0)?(this[_0x348e55(0x1ba)]['debug'](_0x4f2fd2[_0x348e55(0x1e9)]),this['config']={'server':this[_0x348e55(0x269)][_0x348e55(0x25c)],'hubUrl':this[_0x348e55(0x269)][_0x348e55(0x1af)],'accessibility':this[_0x348e55(0x269)][_0x348e55(0x1e7)]||![]}):(this[_0x348e55(0x1ba)][_0x348e55(0x1b1)](_0x4f2fd2[_0x348e55(0x175)]),this[_0x348e55(0x21a)]={});return;}this[_0x348e55(0x21a)]=JSON[_0x348e55(0x159)](_0x2b60d9),this['logger'][_0x348e55(0x160)](_0x4f2fd2[_0x348e55(0x22c)]);}catch(_0xb2c5b6){this[_0x348e55(0x1ba)]['error']('setConfig:\x20error='+util['format'](_0xb2c5b6)),this[_0x348e55(0x269)]&&_0x4f2fd2['tnGas'](Object['keys'](this[_0x348e55(0x269)])[_0x348e55(0x1ef)],0x0)?(this[_0x348e55(0x1ba)][_0x348e55(0x1b1)](_0x4f2fd2[_0x348e55(0x1b2)]),this[_0x348e55(0x21a)]={'server':this[_0x348e55(0x269)][_0x348e55(0x25c)],'hubUrl':this[_0x348e55(0x269)][_0x348e55(0x1af)],'accessibility':this[_0x348e55(0x269)][_0x348e55(0x1e7)]||![]}):this[_0x348e55(0x21a)]={};}}[a71_0x37ba04(0x21f)](){const _0x2cc1c2=a71_0x37ba04,_0x20830a={};_0x20830a[_0x2cc1c2(0x1e8)]=_0x2cc1c2(0x1a4),_0x20830a[_0x2cc1c2(0x17c)]=_0x2cc1c2(0x206),_0x20830a[_0x2cc1c2(0x15a)]=_0x2cc1c2(0x23b);const _0x470b09=_0x20830a;try{if(!this[_0x2cc1c2(0x269)]){this[_0x2cc1c2(0x1ba)]['debug'](_0x470b09[_0x2cc1c2(0x1e8)]);return;}const _0x785931=this['getConfig']();if(!_0x785931){this[_0x2cc1c2(0x1ba)][_0x2cc1c2(0x1b1)](_0x470b09[_0x2cc1c2(0x17c)]);return;}!helper['isUndefined'](_0x785931['accessibility'])&&(this[_0x2cc1c2(0x269)][_0x2cc1c2(0x1e7)]=_0x785931[_0x2cc1c2(0x1e7)],this[_0x2cc1c2(0x1ba)][_0x2cc1c2(0x1b1)](_0x2cc1c2(0x1f4)+_0x785931['accessibility'])),!helper['isUndefined'](_0x785931[_0x2cc1c2(0x1c5)])&&(this[_0x2cc1c2(0x269)][_0x2cc1c2(0x1c5)]=_0x785931['accessibilityOptions'],this[_0x2cc1c2(0x1ba)][_0x2cc1c2(0x1b1)](_0x470b09[_0x2cc1c2(0x15a)]));}catch(_0xccc0b8){this[_0x2cc1c2(0x1ba)][_0x2cc1c2(0x1bf)](_0x2cc1c2(0x163)+util['format'](_0xccc0b8));}}[a71_0x37ba04(0x274)](_0xa95d85){const _0x55afd0=a71_0x37ba04;try{this[_0x55afd0(0x1f1)]=_0xa95d85[_0x55afd0(0x215)]()['split'](','),this[_0x55afd0(0x1ba)][_0x55afd0(0x160)](_0x55afd0(0x17d)+JSON[_0x55afd0(0x224)](this['cliArgs']));}catch(_0x152235){this[_0x55afd0(0x1ba)][_0x55afd0(0x1bf)](_0x55afd0(0x24a)+util[_0x55afd0(0x1dd)](_0x152235));}}[a71_0x37ba04(0x215)](){return this['cliArgs'];}[a71_0x37ba04(0x20f)](){const _0x42785e=a71_0x37ba04,_0x342b91={'MTHJF':function(_0x4478c7,_0x435988){return _0x4478c7===_0x435988;},'RAwaO':function(_0x151e31,_0x20d33d){return _0x151e31(_0x20d33d);},'fFlyn':_0x42785e(0x232)},_0x270742=CLIUtils[_0x42785e(0x270)]();if(_0x342b91[_0x42785e(0x1ab)](_0x270742[_0x42785e(0x171)][_0x42785e(0x17b)](),FRAMEWORKS[_0x42785e(0x1df)]['toLowerCase']()))this[_0x42785e(0x1c0)]=new PlaywrightTestFramework([_0x270742['name']],_0x270742[_0x42785e(0x1da)]);else{if(_0x342b91['MTHJF'](_0x270742['name']['toLowerCase'](),FRAMEWORKS[_0x42785e(0x207)][_0x42785e(0x17b)]()))this[_0x42785e(0x1c0)]=new CucumberTestFramework([_0x270742['name']],_0x270742[_0x42785e(0x1da)]);else{if(_0x342b91[_0x42785e(0x1ab)](_0x270742['name']['toLowerCase'](),FRAMEWORKS[_0x42785e(0x26f)][_0x42785e(0x17b)]()))this['testFramework']=new JestTestFramework([_0x270742[_0x42785e(0x171)]],_0x270742[_0x42785e(0x1da)]);else{if(_0x342b91[_0x42785e(0x1ab)](_0x270742[_0x42785e(0x171)][_0x42785e(0x17b)](),FRAMEWORKS[_0x42785e(0x239)][_0x42785e(0x17b)]())){const _0x21a9c7=_0x342b91[_0x42785e(0x252)](require,_0x342b91[_0x42785e(0x1fa)]);this['testFramework']=new _0x21a9c7([_0x270742[_0x42785e(0x171)]],_0x270742[_0x42785e(0x1da)]);}}}}}[a71_0x37ba04(0x225)](){const _0x30bfa3=a71_0x37ba04,_0x30bbdb={};_0x30bbdb[_0x30bfa3(0x1a7)]=function(_0x5f1eb7,_0x1a14a5){return _0x5f1eb7===_0x1a14a5;};const _0x4c159b=_0x30bbdb,_0x22b316=CLIUtils[_0x30bfa3(0x26c)]();if(_0x4c159b[_0x30bfa3(0x1a7)](_0x22b316[_0x30bfa3(0x171)][_0x30bfa3(0x17b)](),FRAMEWORKS['PLAYWRIGHT'][_0x30bfa3(0x17b)]()))this[_0x30bfa3(0x1cd)]=new PlaywrightAutomationFramework(_0x22b316['name'],_0x22b316[_0x30bfa3(0x1da)]);else _0x4c159b[_0x30bfa3(0x1a7)](_0x22b316[_0x30bfa3(0x171)][_0x30bfa3(0x17b)](),FRAMEWORKS[_0x30bfa3(0x1d8)][_0x30bfa3(0x17b)]())&&(this[_0x30bfa3(0x1cd)]=new PuppeteerAutomationFramework(_0x22b316[_0x30bfa3(0x171)],_0x22b316[_0x30bfa3(0x1da)]));}[a71_0x37ba04(0x219)](){return this['testFramework'];}[a71_0x37ba04(0x1f9)](){const _0x36c944=a71_0x37ba04;return this[_0x36c944(0x1cd)];}['getBrowserstackCliConfig'](){const _0x311ee5=a71_0x37ba04;return this[_0x311ee5(0x172)];}['getBrowserstackConfigPath'](){const _0x52d47a=a71_0x37ba04;return this[_0x52d47a(0x25b)];}}module['exports']=BrowserstackCLI;
|