browserstack-node-sdk 1.50.2 → 1.50.4
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 +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/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/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/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/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/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.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/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/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 a60_0x143e42=a60_0x431f;function a60_0x3baf(){const _0x225ddb=['Browser\x20name\x20overridden\x20from\x20WebSocket\x20endpoint:\x20','chromium','lLhrq','platformDetails','sJEhO','Error\x20triggering\x20PLAYWRIGHT_DISPATCH\x20event:\x20','isRunning','BROWSERSTACK_TEST_OBSERVABILITY','VtqZE','GDJFO','bsSessionId','browser','turboscale','getAutomationFramework','1570173JoDgyW','124aXsBOr','bStackParams','nzifi','eUtYE','capabilities','_connection','firefox','util','exports','test','automate','params','YEPzY','QcykT','NIEad','use','../v2/browserstackCLI','connection.js','project','MvAfF','channel','query','defineProperty','arpSU','MDrZH','qzyGe','PivBm','_onMessage','wsEndpoint','OxPAy','platformName','osVersion','bVYyX','PLAYWRIGHT_DISPATCH','__platformCaps','SxsCO','fyspL','toString','msedge','CFHcq','trackEvent','triggerPlaywrightDispatchEvent','capabilties','Error\x20in\x20importing\x20connection\x20','Browser\x20found\x20in\x20WebSocket\x20caps:\x20','MASRH','POST','join','PwPic','PADAD','server','function','SkedN','ATS_WSS_URL_REGEX','FNsbm','Acytq','_bstackDispatchPatched','DVGRa','product','aNCok','getTrackedInstance','ZkqfF','Successfully\x20patched\x20CRConnection._onMessage','../../helpers/logger','Connection','FHLFv','cloudProvider','8446500QtuONq','Triggering\x20PLAYWRIGHT_DISPATCH\x20event','Not\x20able\x20to\x20import\x20crConnection','CRConnection\x20already\x20patched','AOkgE','currentSessionDetails','BrowserStack\x20params\x20extracted\x20from\x20WebSocket\x20endpoint','pmfWu','Using\x20browser\x20name\x20from\x20browser\x20object:\x20','includes','NLRIT','pWIQN','dUsNi','browserVersion','dispatch','Failed\x20to\x20parse\x20capabilities\x20from\x20WebSocket:\x20','NXIZM','_bstackCRPatched','toLowerCase','Failed\x20to\x20parse\x20caps\x20from\x20WebSocket:\x20','./constants','getInstance','Found\x20Connection\x20class\x20at:\x20','GBYtZ','chrome','Connection\x20dispatch\x20already\x20patched','os_version','Hgfuf','browserName','tIbAe','_browserType','TFJVX','pLOgc','gecko','safari','local_grid','sessionId','bstack:options','fromEntries','Failed\x20to\x20import\x20connection\x20from\x20','jxTLM','Error\x20in\x20getting\x20browser\x20from\x20WebSocket\x20endpoint:\x20','patchCRConnection','browser_version','format','Error\x20in\x20applying\x20Connection\x20patch\x20','Dlgil','BSTACK_URL','debug','yDswr','MCuXE','platformVersion','EzzGz','Error\x20in\x20finding\x20platform\x20details\x20','juGnd','ZyqOR','../v2/state/automationFrameworkState.js','nZrQW','parse','VSWPK','Device\x20Model\x20is\x20not\x20available','lib','yqIwC','desiredCapabilities','env','hzVEj','BSTACK_ATS_URL','browserstack','13482976EWljyn','lTOmk','patchConnection','FCRpl','prototype','Setting\x20session\x20id\x20received\x20from\x20BS\x20','RGihY','sessionError','ETnzk','WXGoz','setupBrowserDetails','tjLSN','assign','platform',',\x20os=','11058516mjTjfY','TtyXa','Error\x20in\x20importing\x20crConnection','url','webkit','AifWh','model','client','bsParams','apply','MwGaG','BrowserStack\x20params\x20extracted\x20from\x20capabilities:\x20browser=','wKIqz','8628545aLwwAf','5757336gXiUTh','path','fcpGk','getDetails','deviceModel','Session\x20details\x20setup\x20complete:\x20','4946aXEuIh','entries','accessibilityPlatform','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','Successfully\x20patched\x20Connection.dispatch','winstonLogger','pjCSn','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','4BNaFBd','Not\x20able\x20to\x20import\x20Connection\x20class\x20from\x20any\x20path','platform_version','_defaultConnectOptions','edge','xdISX','PGzLo','message','uhULD'];a60_0x3baf=function(){return _0x225ddb;};return a60_0x3baf();}(function(_0x5a3199,_0x380260){const _0x53e4c9=a60_0x431f,_0x2edf00=_0x5a3199();while(!![]){try{const _0x26e6f8=-parseInt(_0x53e4c9(0x169))/0x1*(-parseInt(_0x53e4c9(0x149))/0x2)+parseInt(_0x53e4c9(0x168))/0x3+-parseInt(_0x53e4c9(0x151))/0x4*(parseInt(_0x53e4c9(0x142))/0x5)+parseInt(_0x53e4c9(0x143))/0x6+parseInt(_0x53e4c9(0x1ff))/0x7+-parseInt(_0x53e4c9(0x1f0))/0x8+parseInt(_0x53e4c9(0x1ac))/0x9;if(_0x26e6f8===_0x380260)break;else _0x2edf00['push'](_0x2edf00['shift']());}catch(_0x2a48ec){_0x2edf00['push'](_0x2edf00['shift']());}}}(a60_0x3baf,0xdaf26));const path=require(a60_0x143e42(0x144)),url=require(a60_0x143e42(0x202)),util=require(a60_0x143e42(0x170)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule}=require('../../helpers/helper'),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),{debug,getPlatformDetails}=require('../../helpers/test-observability/utils'),logger=require(a60_0x143e42(0x1a8))[a60_0x143e42(0x14e)],constants=require(a60_0x143e42(0x1c0)),AutomationFramework=require('../v2/framework/automationFramework'),BrowserstackCLI=require(a60_0x143e42(0x179)),AutomationFrameworkState=require(a60_0x143e42(0x1e4)),HookState=require('../v2/state/hookState.js'),{platform}=require('os'),getBrowserNameFromChannel=_0x536f13=>{const _0xe8a10d=a60_0x143e42,_0x2f5ab7={};_0x2f5ab7['NLRIT']=_0xe8a10d(0x1c4),_0x2f5ab7['wKIqz']=_0xe8a10d(0x155),_0x2f5ab7[_0xe8a10d(0x1b0)]=_0xe8a10d(0x16f),_0x2f5ab7[_0xe8a10d(0x182)]=_0xe8a10d(0x1ce);const _0x57e058=_0x2f5ab7;if(_0x536f13['includes'](_0x57e058['NLRIT']))return _0x57e058[_0xe8a10d(0x1b6)];if(_0x536f13[_0xe8a10d(0x1b5)](_0x57e058[_0xe8a10d(0x20b)]))return _0x57e058[_0xe8a10d(0x20b)];if(_0x536f13[_0xe8a10d(0x1b5)](_0x57e058['AOkgE']))return _0x57e058['AOkgE'];if(_0x536f13[_0xe8a10d(0x1b5)](_0x57e058[_0xe8a10d(0x182)]))return _0x57e058['qzyGe'];},getBrowserFromWSEndpoint=_0x34c33b=>{const _0x4dd2e8=a60_0x143e42,_0x1496ef={'EQIvi':_0x4dd2e8(0x1d1),'GDJFO':function(_0x1219ff,_0x156180){return _0x1219ff(_0x156180);},'pmfWu':function(_0x3ed079,_0x296a04){return _0x3ed079(_0x296a04);},'fyspL':_0x4dd2e8(0x155),'TXSJT':_0x4dd2e8(0x18f),'SxsCO':_0x4dd2e8(0x16f),'MvAfF':_0x4dd2e8(0x1cd),'pjCSn':_0x4dd2e8(0x1ce),'CiOhE':_0x4dd2e8(0x203),'NXIZM':_0x4dd2e8(0x1c4)};try{const _0x149cbd=url[_0x4dd2e8(0x1e6)](_0x34c33b),_0x45f3ff=new URLSearchParams(_0x149cbd['query']),_0x1bb036=Object[_0x4dd2e8(0x1d2)](_0x45f3ff['entries']()),_0x10ffe7=[_0x1bb036['caps'],_0x1bb036[_0x4dd2e8(0x16d)],_0x1bb036[_0x4dd2e8(0x1eb)],_0x1bb036['browserstack_capabilities']];for(const _0x2824d8 of _0x10ffe7){if(_0x2824d8)try{const _0x113db6=JSON[_0x4dd2e8(0x1e6)](_0x2824d8),_0x44da8b=_0x113db6['browserName']||_0x113db6[_0x4dd2e8(0x165)]||_0x113db6[_0x1496ef['EQIvi']]?.['browserName'];if(_0x44da8b)return _0x1496ef[_0x4dd2e8(0x163)](debug,_0x4dd2e8(0x195)+_0x44da8b),_0x44da8b['toLowerCase']();}catch(_0x351856){_0x1496ef[_0x4dd2e8(0x1b3)](debug,_0x4dd2e8(0x1bf)+_0x351856['message']);}}if(_0x34c33b['includes'](_0x1496ef[_0x4dd2e8(0x18d)])||_0x34c33b[_0x4dd2e8(0x1b5)](_0x1496ef['TXSJT']))return _0x1496ef[_0x4dd2e8(0x18d)];if(_0x34c33b[_0x4dd2e8(0x1b5)](_0x1496ef['SxsCO'])||_0x34c33b[_0x4dd2e8(0x1b5)](_0x1496ef[_0x4dd2e8(0x17c)]))return _0x1496ef[_0x4dd2e8(0x18c)];if(_0x34c33b[_0x4dd2e8(0x1b5)](_0x1496ef['pjCSn'])||_0x34c33b[_0x4dd2e8(0x1b5)](_0x1496ef['CiOhE']))return _0x1496ef[_0x4dd2e8(0x14f)];return _0x1496ef[_0x4dd2e8(0x1bc)];}catch(_0x22b53c){return _0x1496ef[_0x4dd2e8(0x163)](debug,_0x4dd2e8(0x1d5)+_0x22b53c[_0x4dd2e8(0x18e)]()),_0x1496ef['NXIZM'];}},getCloudProviderFromWsEndpoint=_0x4cf4f1=>{const _0x57dda7=a60_0x143e42,_0x3579fd={};_0x3579fd[_0x57dda7(0x176)]=_0x57dda7(0x1ef),_0x3579fd['PwPic']='unknown_grid';const _0x3fba99=_0x3579fd;if(_0x4cf4f1[_0x57dda7(0x1b5)](constants[_0x57dda7(0x1db)])||_0x4cf4f1[_0x57dda7(0x1b5)](constants[_0x57dda7(0x1ee)]))return _0x3fba99[_0x57dda7(0x176)];return _0x3fba99[_0x57dda7(0x199)];},a60_0x3eff85={};a60_0x3eff85['cloudProvider']=undefined,a60_0x3eff85['bsSessionId']=undefined,a60_0x3eff85[a60_0x143e42(0x165)]=undefined,a60_0x3eff85['browser_version']=undefined,a60_0x3eff85[a60_0x143e42(0x1fd)]=undefined,a60_0x3eff85['platform_version']=undefined,a60_0x3eff85[a60_0x143e42(0x1a3)]=undefined,a60_0x3eff85['capabilities']={};function a60_0x431f(_0xc5335,_0x114b0a){const _0x3bafa1=a60_0x3baf();return a60_0x431f=function(_0x431fa5,_0x76b15c){_0x431fa5=_0x431fa5-0x142;let _0x26b399=_0x3bafa1[_0x431fa5];return _0x26b399;},a60_0x431f(_0xc5335,_0x114b0a);}class SharedPlaywrightSessionDetails{static ['currentSessionDetails']=a60_0x3eff85;constructor(){const _0x1c3978=a60_0x143e42,_0x278a5b={};_0x278a5b[_0x1c3978(0x156)]='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x2f5abd=_0x278a5b;throw new Error(_0x2f5abd['xdISX']);}static [a60_0x143e42(0x1f7)]=null;static[a60_0x143e42(0x1fa)](_0x2f7438,_0x111e5d,_0x32456b=null){const _0x255edb=a60_0x143e42,_0x4a9446={'TtyXa':function(_0x1ebcfb,_0x4e0009){return _0x1ebcfb===_0x4e0009;},'EzzGz':_0x255edb(0x19c),'hzVEj':_0x255edb(0x14c),'TFJVX':function(_0x1b74ad,_0x156b02){return _0x1b74ad===_0x156b02;},'SkedN':_0x255edb(0x1e8),'lLhrq':_0x255edb(0x1cf),'yDswr':function(_0x189f11,_0x2ca306,_0x380561){return _0x189f11(_0x2ca306,_0x380561);},'aNCok':'_browserType','tIbAe':'_defaultConnectOptions','arpSU':function(_0x31852d,_0xa12501,_0x227765){return _0x31852d(_0xa12501,_0x227765);},'FHLFv':_0x255edb(0x17b),'FNsbm':_0x255edb(0x178),'sJEhO':'connectOptions','juGnd':function(_0x3e75f1,_0x1af425){return _0x3e75f1(_0x1af425);},'DVGRa':_0x255edb(0x1ef),'pWIQN':_0x255edb(0x166),'FCRpl':_0x255edb(0x173),'hBkRD':function(_0x24ed8d,_0xcb6348){return _0x24ed8d===_0xcb6348;},'pjhlO':'chromium','ETnzk':function(_0x1bfc68,_0x2b9fe7){return _0x1bfc68(_0x2b9fe7);},'bVYyX':function(_0x5759ed,_0x2bce4c){return _0x5759ed+_0x2bce4c;},'NIEad':'playwright-','ulqlr':function(_0x4251ca){return _0x4251ca();},'Dlgil':function(_0x30e4ce,_0x585e5d,_0x18611b){return _0x30e4ce(_0x585e5d,_0x18611b);},'MwGaG':_0x255edb(0x1fa)},_0x599bea=this;return _0x4a9446[_0x255edb(0x1da)](o11yErrorHandler,async function _0x57a91e(_0x62275e,_0x2264a7,_0x2a6103=null){const _0x5753c7=_0x255edb;let _0x3bf62b=_0x62275e['_name'],_0x4d82fa=null;_0x62275e&&_0x4a9446[_0x5753c7(0x200)](typeof _0x62275e['version'],_0x4a9446[_0x5753c7(0x1e0)])?_0x4d82fa=_0x62275e['version']():logger[_0x5753c7(0x1dc)](_0x4a9446[_0x5753c7(0x1ed)]);let _0x28b9af=null;_0x62275e&&_0x4a9446[_0x5753c7(0x1cb)](typeof _0x62275e['model'],_0x4a9446[_0x5753c7(0x1e0)])?_0x28b9af=_0x62275e[_0x5753c7(0x205)]():logger[_0x5753c7(0x1dc)](_0x4a9446[_0x5753c7(0x19d)]);let _0x4eb962=null,_0x46784=null,_0x4c92c2=null,_0x451c29=_0x4a9446[_0x5753c7(0x15c)];if(_0x62275e[_0x5753c7(0x16e)]['isRemote']()||global[_0x5753c7(0x14b)]){let _0x406221=null;_0x4a9446[_0x5753c7(0x1dd)](nestedKeyValue,_0x62275e,[_0x4a9446[_0x5753c7(0x1a4)],_0x4a9446[_0x5753c7(0x1c9)]])?_0x406221=_0x62275e[_0x5753c7(0x1ca)][_0x5753c7(0x154)]:_0x406221=_0x4a9446[_0x5753c7(0x180)](nestedKeyValue,_0x2264a7,[_0x4a9446[_0x5753c7(0x1aa)],_0x4a9446[_0x5753c7(0x19f)],_0x4a9446[_0x5753c7(0x15e)]]);const _0x57fde7=_0x2a6103||_0x406221&&_0x406221[_0x5753c7(0x185)];if(_0x57fde7){_0x451c29=_0x4a9446[_0x5753c7(0x1e2)](getCloudProviderFromWsEndpoint,_0x57fde7);if(_0x4a9446[_0x5753c7(0x1cb)](_0x451c29,_0x4a9446[_0x5753c7(0x1a2)])){_0x4c92c2=constants[_0x5753c7(0x19e)][_0x5753c7(0x172)](_0x57fde7)?_0x4a9446[_0x5753c7(0x1b7)]:_0x4a9446[_0x5753c7(0x1f3)];const _0xa48f05=_0x4a9446['juGnd'](getBrowserFromWSEndpoint,_0x57fde7);if(_0xa48f05&&(!_0x3bf62b||_0x4a9446['hBkRD'](_0x3bf62b,_0x4a9446['pjhlO'])))_0x3bf62b=_0xa48f05,logger['debug'](_0x5753c7(0x15a)+_0x3bf62b);else _0x3bf62b&&logger[_0x5753c7(0x1dc)](_0x5753c7(0x1b4)+_0x3bf62b);_0x4eb962=_0x599bea[_0x5753c7(0x1b1)][_0x5753c7(0x1fd)],_0x46784=_0x599bea[_0x5753c7(0x1b1)][_0x5753c7(0x153)];}}}else{_0x2264a7&&_0x2264a7['project']&&_0x2264a7[_0x5753c7(0x17b)][_0x5753c7(0x178)]&&_0x2264a7[_0x5753c7(0x17b)][_0x5753c7(0x178)][_0x5753c7(0x17d)]?_0x3bf62b=_0x4a9446[_0x5753c7(0x1f8)](getBrowserNameFromChannel,_0x2264a7[_0x5753c7(0x17b)][_0x5753c7(0x178)][_0x5753c7(0x17d)]):_0x3bf62b=_0x4a9446[_0x5753c7(0x189)](_0x4a9446[_0x5753c7(0x177)],_0x3bf62b[_0x5753c7(0x1be)]());const _0x46fa76=await _0x4a9446['ulqlr'](getPlatformDetails);_0x4eb962=_0x46fa76['platformName'],_0x46784=_0x46fa76['platformVersion'];}const _0x4c1174={};_0x4c1174[_0x5753c7(0x165)]=_0x3bf62b,_0x4c1174['browser_version']=_0x4d82fa,_0x4c1174[_0x5753c7(0x16d)]={},_0x4c1174[_0x5753c7(0x1fd)]=_0x4eb962,_0x4c1174[_0x5753c7(0x153)]=_0x46784,_0x4c1174[_0x5753c7(0x1a3)]=_0x4c92c2;const _0x19ac5f=_0x4c1174;_0x28b9af&&(_0x19ac5f[_0x5753c7(0x16d)][_0x5753c7(0x147)]=_0x28b9af);const _0x33bc52={};_0x33bc52['cloudProvider']=_0x451c29,_0x599bea[_0x5753c7(0x1b1)]=Object[_0x5753c7(0x1fc)]({},_0x599bea[_0x5753c7(0x1b1)],_0x33bc52,_0x19ac5f);const _0x20d132={};_0x20d132[_0x5753c7(0x165)]=_0x599bea[_0x5753c7(0x1b1)][_0x5753c7(0x165)],_0x20d132[_0x5753c7(0x1b9)]=_0x599bea[_0x5753c7(0x1b1)][_0x5753c7(0x1d7)],_0x20d132[_0x5753c7(0x1fd)]=_0x599bea['currentSessionDetails']['platform'],_0x20d132['platformVersion']=_0x599bea['currentSessionDetails']['platform_version'],_0x20d132[_0x5753c7(0x1ab)]=_0x599bea[_0x5753c7(0x1b1)]['cloudProvider'],_0x20d132['product']=_0x599bea['currentSessionDetails'][_0x5753c7(0x1a3)],logger[_0x5753c7(0x1dc)](_0x5753c7(0x148)+JSON['stringify'](_0x20d132));},_0x4a9446[_0x255edb(0x209)])(_0x2f7438,_0x111e5d,_0x32456b);}static['patch'](){const _0x2992a5=a60_0x143e42;this[_0x2992a5(0x1f2)](),this[_0x2992a5(0x1d6)]();}static[a60_0x143e42(0x1f2)](){const _0x4142ca=a60_0x143e42,_0x59a187={'lTOmk':function(_0xa4d495,_0x392919){return _0xa4d495(_0x392919);},'SgzxO':'lib','uhULD':_0x4142ca(0x206),'nzifi':_0x4142ca(0x17a),'MCuXE':function(_0x334c44,_0x31ec4c){return _0x334c44(_0x31ec4c);},'ZyqOR':_0x4142ca(0x152),'WXGoz':function(_0x4826ac,_0x2daa05){return _0x4826ac!=_0x2daa05;},'RGihY':_0x4142ca(0x1c5),'jxTLM':_0x4142ca(0x1ba),'FmREA':_0x4142ca(0x14d),'GBYtZ':function(_0x2a8c16,_0x69084e){return _0x2a8c16(_0x69084e);}},_0x515913=this;if(!this['Connection'])try{const _0x2a2a65=[path[_0x4142ca(0x198)](_0x59a187['SgzxO'],_0x59a187[_0x4142ca(0x159)],_0x59a187[_0x4142ca(0x16b)]),path[_0x4142ca(0x198)](_0x59a187['SgzxO'],_0x59a187[_0x4142ca(0x16b)]),path[_0x4142ca(0x198)](_0x59a187[_0x4142ca(0x159)],_0x59a187['nzifi'])];for(const _0x1332c5 of _0x2a2a65){try{const _0x26f150=_0x59a187[_0x4142ca(0x1f1)](importFileFromPWCore,_0x1332c5);if(_0x26f150&&_0x26f150[_0x4142ca(0x1a9)]){this[_0x4142ca(0x1a9)]=_0x26f150[_0x4142ca(0x1a9)],logger['debug'](_0x4142ca(0x1c2)+_0x1332c5);break;}}catch(_0x56b9b8){_0x59a187['MCuXE'](debug,_0x4142ca(0x1d3)+_0x1332c5+':\x20'+_0x56b9b8[_0x4142ca(0x18e)]());}}if(!this['Connection']){_0x59a187['MCuXE'](debug,_0x59a187[_0x4142ca(0x1e3)]);return;}}catch(_0x2031ce){_0x59a187[_0x4142ca(0x1f1)](debug,_0x4142ca(0x194)+_0x2031ce[_0x4142ca(0x18e)]());return;}const _0x3bb9fe=this[_0x4142ca(0x1a9)];try{if(_0x59a187[_0x4142ca(0x1f9)](_0x3bb9fe,null)){const _0x69bded=_0x3bb9fe[_0x4142ca(0x1f4)]['dispatch'];if(!_0x59a187[_0x4142ca(0x1de)](isFalse,process[_0x4142ca(0x1ec)][_0x4142ca(0x161)])){if(_0x3bb9fe[_0x4142ca(0x1f4)]['_bstackDispatchPatched']){logger['debug'](_0x59a187[_0x4142ca(0x1f6)]);return;}Object[_0x4142ca(0x17f)](_0x3bb9fe['prototype'],_0x59a187[_0x4142ca(0x1d4)],{'get':function(){return async function _0x180539(_0x1f464c){const _0x4eec7d=a60_0x431f;if(BrowserstackCLI[_0x4eec7d(0x1c1)]()[_0x4eec7d(0x160)]()){const _0x2413a7={};_0x2413a7[_0x4eec7d(0x158)]=_0x1f464c,await BrowserstackCLI[_0x4eec7d(0x1c1)]()[_0x4eec7d(0x167)]()[_0x4eec7d(0x191)](AutomationFrameworkState[_0x4eec7d(0x18a)],HookState['POST'],_0x2413a7);}else{const _0x500efc=_0x1f464c&&_0x1f464c[_0x4eec7d(0x174)]&&_0x1f464c[_0x4eec7d(0x174)][_0x4eec7d(0x207)];if(_0x500efc){const _0x1ecab7=_0x500efc[_0x4eec7d(0x1d0)],_0x44d020=_0x500efc[_0x4eec7d(0x15d)];_0x44d020&&(_0x59a187[_0x4eec7d(0x1f1)](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+_0x44d020[_0x4eec7d(0x18e)]()),_0x515913['currentSessionDetails']['platform']=_0x44d020[_0x4eec7d(0x187)],_0x515913[_0x4eec7d(0x1b1)][_0x4eec7d(0x153)]=_0x44d020[_0x4eec7d(0x1df)]),_0x1ecab7&&(_0x59a187[_0x4eec7d(0x1f1)](debug,_0x4eec7d(0x1f5)+_0x1ecab7),_0x515913['currentSessionDetails'][_0x4eec7d(0x164)]=_0x1ecab7);}}return _0x69bded['apply'](this,arguments);};}}),_0x3bb9fe[_0x4142ca(0x1f4)][_0x4142ca(0x1a1)]=!![],logger['debug'](_0x59a187['FmREA']);}}}catch(_0x5315ec){_0x59a187[_0x4142ca(0x1c3)](debug,_0x4142ca(0x1d9)+_0x5315ec),_0x515913[_0x4142ca(0x1f7)]=_0x5315ec[_0x4142ca(0x18e)]();}}static['patchCRConnection'](){const _0x4b116e=a60_0x143e42,_0x47ea3d={'Hgfuf':function(_0x4a1896,_0x5f4481){return _0x4a1896(_0x5f4481);},'eUtYE':function(_0x57b4e8,_0x15449a){return _0x57b4e8(_0x15449a);},'PivBm':_0x4b116e(0x1e9),'fcpGk':_0x4b116e(0x19b),'XgsGz':_0x4b116e(0x15b),'MDrZH':'crConnection.js','pLOgc':_0x4b116e(0x1ae),'VtqZE':function(_0x2d8ee8,_0x4ec4d3){return _0x2d8ee8(_0x4ec4d3);},'hECun':_0x4b116e(0x201),'qeDKT':function(_0x47e79d,_0x155996){return _0x47e79d!=_0x155996;},'yqIwC':_0x4b116e(0x1af),'pbJEL':_0x4b116e(0x184),'nvPPX':_0x4b116e(0x1a7),'Acytq':function(_0x54225b,_0xf6392b){return _0x54225b(_0xf6392b);}},_0x5aafa5=this;let _0x41c36e=null;try{const _0x18572e=path[_0x4b116e(0x198)](_0x47ea3d[_0x4b116e(0x183)],_0x47ea3d[_0x4b116e(0x145)],_0x47ea3d['XgsGz'],_0x47ea3d[_0x4b116e(0x181)]),_0x507fef=_0x47ea3d[_0x4b116e(0x1c7)](importFileFromPWCore,_0x18572e);!_0x507fef?_0x47ea3d['eUtYE'](debug,_0x47ea3d[_0x4b116e(0x1cc)]):_0x41c36e=_0x507fef['CRConnection'];}catch(_0x5eab28){_0x47ea3d[_0x4b116e(0x162)](debug,_0x47ea3d['hECun']);}try{if(_0x47ea3d['qeDKT'](_0x41c36e,null)){const _0x437c57=_0x41c36e['prototype']['_onMessage'];if(_0x41c36e[_0x4b116e(0x1f4)][_0x4b116e(0x1bd)]){logger[_0x4b116e(0x1dc)](_0x47ea3d[_0x4b116e(0x1ea)]);return;}Object['defineProperty'](_0x41c36e[_0x4b116e(0x1f4)],_0x47ea3d['pbJEL'],{'get':function(){const _0x16d384={'tjLSN':function(_0x29b868,_0x6b7b1c){return _0x47ea3d['Hgfuf'](_0x29b868,_0x6b7b1c);},'AifWh':function(_0x341e0c,_0x35867f){const _0x342a5c=a60_0x431f;return _0x47ea3d[_0x342a5c(0x16c)](_0x341e0c,_0x35867f);},'nZrQW':function(_0x42cc08,_0x3f1cab){const _0x3abacb=a60_0x431f;return _0x47ea3d[_0x3abacb(0x16c)](_0x42cc08,_0x3f1cab);}};return async function _0x2614a0(_0x3c216c){const _0x1f3993=a60_0x431f;try{if(BrowserstackCLI['getInstance']()['isRunning']()){const _0x434069={};_0x434069[_0x1f3993(0x158)]=_0x3c216c,await BrowserstackCLI[_0x1f3993(0x1c1)]()[_0x1f3993(0x167)]()[_0x1f3993(0x191)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState['POST'],_0x434069),delete _0x3c216c['bStackParams'];}else{const _0x393c20=_0x3c216c[_0x1f3993(0x16a)];if(_0x393c20){delete _0x3c216c[_0x1f3993(0x16a)];const _0x3b816a=_0x393c20['sessionId'],_0x1b3864=_0x393c20[_0x1f3993(0x15d)];_0x1b3864&&(_0x16d384[_0x1f3993(0x1fb)](debug,_0x1f3993(0x150)+_0x1b3864[_0x1f3993(0x18e)]()),_0x5aafa5[_0x1f3993(0x1b1)][_0x1f3993(0x1fd)]=_0x1b3864['platformName'],_0x5aafa5[_0x1f3993(0x1b1)][_0x1f3993(0x153)]=_0x1b3864[_0x1f3993(0x1df)]),_0x3b816a&&(_0x16d384[_0x1f3993(0x204)](debug,'Setting\x20session\x20id\x20received\x20from\x20browserstack\x20'+_0x3b816a),_0x5aafa5[_0x1f3993(0x1b1)][_0x1f3993(0x164)]=_0x3b816a);}}}catch(_0x50494f){_0x16d384[_0x1f3993(0x1e5)](debug,_0x1f3993(0x1e1)+_0x50494f[_0x1f3993(0x18e)]());}return _0x437c57[_0x1f3993(0x208)](this,arguments);};}}),_0x41c36e[_0x4b116e(0x1f4)][_0x4b116e(0x1bd)]=!![],logger[_0x4b116e(0x1dc)](_0x47ea3d['nvPPX']);}}catch(_0x239736){_0x47ea3d[_0x4b116e(0x1a0)](debug,'Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20'+_0x239736),_0x5aafa5[_0x4b116e(0x1f7)]=_0x239736[_0x4b116e(0x18e)]();}}static['extractBrowserStackParams'](_0xd87f41,_0x2f0502){const _0x11cda7=a60_0x143e42,_0x47b8c1={'VSWPK':'bstack:options','PGzLo':function(_0x3db68c,_0x3c787e){return _0x3db68c||_0x3c787e;},'HjMzJ':function(_0x3fa11f,_0x54d240){return _0x3fa11f||_0x54d240;},'OxPAy':function(_0x863b19,_0x24c264){return _0x863b19===_0x24c264;},'CFHcq':'string','YEPzY':_0x11cda7(0x1b2),'dUsNi':function(_0x1603b9,_0x38fa37){return _0x1603b9(_0x38fa37);},'PADAD':function(_0x3bad56,_0x4959c3){return _0x3bad56(_0x4959c3);}};let _0x23a702=null,_0x3ce1c6=null;try{const _0x517c48=[_0x2f0502,global[_0x11cda7(0x18b)],global[_0x11cda7(0x193)]];for(const _0x9a85de of _0x517c48){if(_0x9a85de&&(!_0x3ce1c6||!_0x3ce1c6['sessionId'])){const _0x5d830b=_0x9a85de[_0x11cda7(0x1d0)]||_0x9a85de[_0x47b8c1[_0x11cda7(0x1e7)]]?.[_0x11cda7(0x1d0)],_0x39dd64=_0x9a85de[_0x11cda7(0x1c8)]||_0x9a85de[_0x11cda7(0x165)]||_0x9a85de[_0x47b8c1[_0x11cda7(0x1e7)]]?.[_0x11cda7(0x1c8)],_0x11e049=_0x9a85de['browserVersion']||_0x9a85de['browser_version']||_0x9a85de[_0x47b8c1['VSWPK']]?.[_0x11cda7(0x1b9)],_0x1c5d83=_0x9a85de['os']||_0x9a85de[_0x11cda7(0x1fd)]||_0x9a85de[_0x47b8c1[_0x11cda7(0x1e7)]]?.['os'],_0x488cd5=_0x9a85de['osVersion']||_0x9a85de[_0x11cda7(0x1c6)]||_0x9a85de[_0x47b8c1['VSWPK']]?.[_0x11cda7(0x188)];if(_0x47b8c1[_0x11cda7(0x157)](_0x5d830b,_0x39dd64)||_0x1c5d83){const _0x3fc8b1={};_0x3fc8b1[_0x11cda7(0x1c8)]=_0x39dd64,_0x3fc8b1['browserVersion']=_0x11e049,_0x3fc8b1['os']=_0x1c5d83,_0x3fc8b1[_0x11cda7(0x188)]=_0x488cd5,_0x3fc8b1[_0x11cda7(0x187)]=_0x9a85de[_0x11cda7(0x187)]||_0x1c5d83,_0x3fc8b1[_0x11cda7(0x1df)]=_0x9a85de[_0x11cda7(0x1df)]||_0x488cd5;const _0x1c4916={};_0x1c4916[_0x11cda7(0x1d0)]=_0x5d830b,_0x1c4916['platformDetails']=_0x3fc8b1,_0x3ce1c6=_0x1c4916;if(_0x47b8c1['HjMzJ'](_0x5d830b,_0x39dd64)){logger[_0x11cda7(0x1dc)](_0x11cda7(0x20a)+_0x39dd64+_0x11cda7(0x1fe)+_0x1c5d83);break;}}}}if(_0xd87f41&&_0x47b8c1[_0x11cda7(0x186)](typeof _0xd87f41,_0x47b8c1[_0x11cda7(0x190)]))try{const _0x28e045=url[_0x11cda7(0x1e6)](_0xd87f41),_0x17b6b7=new URLSearchParams(_0x28e045[_0x11cda7(0x17e)]),_0x339837=Object[_0x11cda7(0x1d2)](_0x17b6b7[_0x11cda7(0x14a)]()),_0x5d3074=[_0x339837['caps'],_0x339837[_0x11cda7(0x16d)],_0x339837[_0x11cda7(0x1eb)]];for(const _0x9a5cb of _0x5d3074){if(_0x9a5cb&&(!_0x23a702||!_0x23a702[_0x11cda7(0x1d0)]))try{const _0x2f465d=JSON[_0x11cda7(0x1e6)](_0x9a5cb),_0x22759d={};_0x22759d[_0x11cda7(0x1d0)]=_0x2f465d['sessionId']||_0x2f465d[_0x47b8c1['VSWPK']]?.[_0x11cda7(0x1d0)],_0x22759d[_0x11cda7(0x15d)]={},_0x22759d[_0x11cda7(0x15d)]['browserName']=_0x2f465d['browserName']||_0x2f465d[_0x11cda7(0x165)],_0x22759d[_0x11cda7(0x15d)][_0x11cda7(0x1b9)]=_0x2f465d[_0x11cda7(0x1b9)]||_0x2f465d[_0x11cda7(0x1d7)],_0x22759d[_0x11cda7(0x15d)]['os']=_0x2f465d['os']||_0x2f465d[_0x11cda7(0x1fd)],_0x22759d[_0x11cda7(0x15d)][_0x11cda7(0x188)]=_0x2f465d[_0x11cda7(0x188)]||_0x2f465d[_0x11cda7(0x1c6)],_0x22759d[_0x11cda7(0x15d)]['platformName']=_0x2f465d[_0x11cda7(0x187)]||_0x2f465d['os']||_0x2f465d[_0x11cda7(0x1fd)],_0x22759d[_0x11cda7(0x15d)][_0x11cda7(0x1df)]=_0x2f465d['platformVersion']||_0x2f465d[_0x11cda7(0x188)]||_0x2f465d[_0x11cda7(0x1c6)],_0x23a702=_0x22759d;if(_0x23a702[_0x11cda7(0x1d0)]||_0x23a702[_0x11cda7(0x15d)][_0x11cda7(0x1c8)]){logger[_0x11cda7(0x1dc)](_0x47b8c1[_0x11cda7(0x175)]);break;}}catch(_0x48181c){_0x47b8c1[_0x11cda7(0x1b8)](debug,_0x11cda7(0x1bb)+_0x48181c[_0x11cda7(0x18e)]());}}}catch(_0x483399){_0x47b8c1[_0x11cda7(0x1b8)](debug,'Error\x20parsing\x20WebSocket\x20endpoint:\x20'+_0x483399['toString']());}}catch(_0x148ff9){_0x47b8c1[_0x11cda7(0x19a)](debug,'Error\x20extracting\x20BrowserStack\x20parameters:\x20'+util[_0x11cda7(0x1d8)](_0x148ff9));}const _0xe2a7d7={};return _0xe2a7d7[_0x11cda7(0x207)]=_0x23a702,_0xe2a7d7[_0x11cda7(0x16a)]=_0x3ce1c6,_0xe2a7d7;}static async[a60_0x143e42(0x192)](_0x4f261a,_0x2d27b4){const _0x3358e3=a60_0x143e42,_0x5305ca={'xxUdZ':function(_0x4dbd54,_0x3e0890){return _0x4dbd54||_0x3e0890;},'ZkqfF':_0x3358e3(0x1ad),'tlwOF':function(_0x4e6f94,_0x25e735){return _0x4e6f94||_0x25e735;},'MASRH':function(_0x5b38e9,_0x3e7836){return _0x5b38e9(_0x3e7836);}};try{if(!BrowserstackCLI['getInstance']()['isRunning']())return;if(_0x5305ca['xxUdZ'](_0x4f261a,_0x2d27b4)){logger[_0x3358e3(0x1dc)](_0x5305ca[_0x3358e3(0x1a6)]);const _0x533b69={'params':_0x4f261a?{'bsParams':_0x4f261a}:null,'bStackParams':_0x5305ca['tlwOF'](_0x2d27b4,null)},_0x3c166f=AutomationFramework[_0x3358e3(0x1a5)](),_0x2b9fe5={};_0x2b9fe5['message']=_0x533b69,_0x2b9fe5['instance']=_0x3c166f,await BrowserstackCLI[_0x3358e3(0x1c1)]()[_0x3358e3(0x167)]()[_0x3358e3(0x191)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState[_0x3358e3(0x197)],_0x2b9fe5);}}catch(_0x59d040){_0x5305ca[_0x3358e3(0x196)](debug,_0x3358e3(0x15f)+util['format'](_0x59d040));}}static[a60_0x143e42(0x146)](){return this['currentSessionDetails'];}}module[a60_0x143e42(0x171)]=SharedPlaywrightSessionDetails;
|
|
1
|
+
const a60_0x12591f=a60_0x1566;(function(_0x28f617,_0x140b72){const _0x270d1c=a60_0x1566,_0x17210c=_0x28f617();while(!![]){try{const _0x376df1=-parseInt(_0x270d1c(0x125))/0x1+-parseInt(_0x270d1c(0x15b))/0x2*(-parseInt(_0x270d1c(0x134))/0x3)+parseInt(_0x270d1c(0x136))/0x4+-parseInt(_0x270d1c(0xcb))/0x5*(-parseInt(_0x270d1c(0x169))/0x6)+-parseInt(_0x270d1c(0x112))/0x7+-parseInt(_0x270d1c(0x173))/0x8+-parseInt(_0x270d1c(0x131))/0x9;if(_0x376df1===_0x140b72)break;else _0x17210c['push'](_0x17210c['shift']());}catch(_0x2ce591){_0x17210c['push'](_0x17210c['shift']());}}}(a60_0x52ca,0x37464));function a60_0x1566(_0x1fcc3d,_0x3d71a1){const _0x52cac0=a60_0x52ca();return a60_0x1566=function(_0x1566b9,_0x16be85){_0x1566b9=_0x1566b9-0xc1;let _0x3c80fa=_0x52cac0[_0x1566b9];return _0x3c80fa;},a60_0x1566(_0x1fcc3d,_0x3d71a1);}function a60_0x52ca(){const _0x4d54b7=['product','59174udOlne','kSAlB','../../helpers/logger','qFEsI','Qgqqo','tmwVu','Failed\x20to\x20parse\x20capabilities\x20from\x20WebSocket:\x20','gecko','GTlFo','getTrackedInstance','akAwt','Error\x20triggering\x20PLAYWRIGHT_DISPATCH\x20event:\x20','instance','wBTNY','6pmJTMV','pOCxc','triggerPlaywrightDispatchEvent','os_version','CRConnection','chromium','PGvXL','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','asoxh','query','1834616RQFJkt','winstonLogger','MUxHt','Setting\x20session\x20id\x20received\x20from\x20BS\x20','osVersion','QelAd','Xpjlm','trackEvent','CjWJX','platformVersion','webkit','toLowerCase','RlMtk','RtUYV','toString','bAIIN','defineProperty','browserName','zxPqg','connection.js','./constants','server','Connection','gSJha','lHQis','Triggering\x20PLAYWRIGHT_DISPATCH\x20event','hHWzi','sessionError','bstack:options','prototype','rEHLW','Device\x20Model\x20is\x20not\x20available','CNeRv','CRConnection\x20already\x20patched','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','browserstack','playwright-','stringify','ipZMu','Connection\x20dispatch\x20already\x20patched','XybNn','RdMtt','platform_version','use','desiredCapabilities','879940RBnjgB','pmHFw','cloudProvider','PLAYWRIGHT_DISPATCH','Error\x20extracting\x20BrowserStack\x20parameters:\x20','getAutomationFramework','fromEntries','ATS_WSS_URL_REGEX','eAnhG','Browser\x20found\x20in\x20WebSocket\x20caps:\x20','rAejo','KaGmq','KarVY','extractBrowserStackParams','msedge','HWtPp','hpdSo','rJycC','crConnection.js','TdmFT','browserVersion','hZsgz','_bstackDispatchPatched','project','url','KWcYA','Failed\x20to\x20parse\x20caps\x20from\x20WebSocket:\x20','NBuEE','_bstackCRPatched','Found\x20Connection\x20class\x20at:\x20','tiEwB','wsEndpoint','gQusn','WHVTz','edge','../../helpers/test-observability/utils','Using\x20browser\x20name\x20from\x20browser\x20object:\x20','includes','turboscale','zbFNS','Not\x20able\x20to\x20import\x20Connection\x20class\x20from\x20any\x20path','zBgtB','format','KHIeG','join','bsSessionId','chrome','isRunning','_browserType','piqiW','yBOIB','channel','DzYoS','elkiZ','Error\x20in\x20importing\x20connection\x20','BSTACK_ATS_URL','env','oRFki','CsHWm','Not\x20able\x20to\x20import\x20crConnection','browser','vMCPZ','rbjNh','Error\x20parsing\x20WebSocket\x20endpoint:\x20','tbxTg','VUBmt','message','firefox','string','_onMessage','QUItO','87374fNXJzG','platform','parse','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','kRogs','wxknb','fBxfH','bStackParams','../../helpers/helper','MbxaJ','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','sessionId','xwYWP','Error\x20in\x20importing\x20crConnection','Browser\x20name\x20overridden\x20from\x20WebSocket\x20endpoint:\x20','BrowserStack\x20params\x20extracted\x20from\x20WebSocket\x20endpoint','BROWSERSTACK_TEST_OBSERVABILITY','client','mpoJh','377377HQBuCo','caps','../../helpers/test-observability/error-handler','__platformCaps','glJxM','lkZPw','lib','browserstack_capabilities','rIMlH','version','../v2/framework/automationFramework','POST','1381185LwsByD','assign','Failed\x20to\x20import\x20connection\x20from\x20','39Brneco','platformDetails','1753744wJugmD','TQjuO','getInstance','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','Successfully\x20patched\x20Connection.dispatch','platformName','local_grid','YUBKs','bsParams','../v2/state/automationFrameworkState.js','setupBrowserDetails',',\x20os=','debug','TJZCE','zzZHB','apply','_defaultConnectOptions','qHlXA','browser_version','Error\x20in\x20finding\x20platform\x20details\x20','../v2/browserstackCLI','safari','qDUak','pthBq','isRemote','patchConnection','currentSessionDetails','patchCRConnection','capabilities','util','path','test','eKspD','accessibilityPlatform','HKuwG','params'];a60_0x52ca=function(){return _0x4d54b7;};return a60_0x52ca();}const path=require(a60_0x12591f(0x154)),url=require(a60_0x12591f(0xe3)),util=require(a60_0x12591f(0x153)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a60_0x12591f(0x11a)),{o11yErrorHandler}=require(a60_0x12591f(0x127)),{debug,getPlatformDetails}=require(a60_0x12591f(0xee)),logger=require(a60_0x12591f(0x15d))[a60_0x12591f(0x174)],constants=require(a60_0x12591f(0x187)),AutomationFramework=require(a60_0x12591f(0x12f)),BrowserstackCLI=require(a60_0x12591f(0x14a)),AutomationFrameworkState=require(a60_0x12591f(0x13f)),HookState=require('../v2/state/hookState.js'),{platform}=require('os'),getBrowserNameFromChannel=_0x45ce3d=>{const _0x177dca=a60_0x12591f,_0x13d94b={};_0x13d94b['tmwVu']=_0x177dca(0xf9),_0x13d94b[_0x177dca(0x18b)]=_0x177dca(0xed),_0x13d94b['xwYWP']=_0x177dca(0x10e),_0x13d94b[_0x177dca(0xdb)]=_0x177dca(0x14b);const _0x293a33=_0x13d94b;if(_0x45ce3d[_0x177dca(0xf0)](_0x293a33[_0x177dca(0x160)]))return _0x293a33[_0x177dca(0x160)];if(_0x45ce3d[_0x177dca(0xf0)](_0x293a33['lHQis']))return _0x293a33[_0x177dca(0x18b)];if(_0x45ce3d[_0x177dca(0xf0)](_0x293a33[_0x177dca(0x11e)]))return _0x293a33[_0x177dca(0x11e)];if(_0x45ce3d[_0x177dca(0xf0)](_0x293a33[_0x177dca(0xdb)]))return _0x293a33[_0x177dca(0xdb)];},getBrowserFromWSEndpoint=_0x16d7bb=>{const _0x1ea0d3=a60_0x12591f,_0x3f70f8={'KarVY':_0x1ea0d3(0x18f),'ygTRx':function(_0x1abb78,_0x38e5b8){return _0x1abb78(_0x38e5b8);},'wBTNY':function(_0x4edc30,_0x270b5e){return _0x4edc30(_0x270b5e);},'qDUak':_0x1ea0d3(0xed),'WHVTz':_0x1ea0d3(0xd9),'qFEsI':_0x1ea0d3(0x10e),'Xpjlm':_0x1ea0d3(0x162),'HKuwG':_0x1ea0d3(0x14b),'yBOIB':_0x1ea0d3(0x17d),'rAejo':_0x1ea0d3(0xf9)};try{const _0x2decf7=url[_0x1ea0d3(0x114)](_0x16d7bb),_0x157f3e=new URLSearchParams(_0x2decf7[_0x1ea0d3(0x172)]),_0x2e192e=Object[_0x1ea0d3(0xd1)](_0x157f3e['entries']()),_0x5e710c=[_0x2e192e['caps'],_0x2e192e[_0x1ea0d3(0x152)],_0x2e192e[_0x1ea0d3(0xca)],_0x2e192e[_0x1ea0d3(0x12c)]];for(const _0x31a461 of _0x5e710c){if(_0x31a461)try{const _0x4990e8=JSON['parse'](_0x31a461),_0x20a8b0=_0x4990e8[_0x1ea0d3(0x184)]||_0x4990e8['browser']||_0x4990e8[_0x3f70f8[_0x1ea0d3(0xd7)]]?.[_0x1ea0d3(0x184)];if(_0x20a8b0)return _0x3f70f8['ygTRx'](debug,_0x1ea0d3(0xd4)+_0x20a8b0),_0x20a8b0[_0x1ea0d3(0x17e)]();}catch(_0x2d4fce){_0x3f70f8[_0x1ea0d3(0x168)](debug,_0x1ea0d3(0xe5)+_0x2d4fce[_0x1ea0d3(0x10d)]);}}if(_0x16d7bb[_0x1ea0d3(0xf0)](_0x3f70f8[_0x1ea0d3(0x14c)])||_0x16d7bb['includes'](_0x3f70f8[_0x1ea0d3(0xec)]))return _0x3f70f8[_0x1ea0d3(0x14c)];if(_0x16d7bb['includes'](_0x3f70f8[_0x1ea0d3(0x15e)])||_0x16d7bb[_0x1ea0d3(0xf0)](_0x3f70f8[_0x1ea0d3(0x179)]))return _0x3f70f8['qFEsI'];if(_0x16d7bb[_0x1ea0d3(0xf0)](_0x3f70f8['HKuwG'])||_0x16d7bb[_0x1ea0d3(0xf0)](_0x3f70f8[_0x1ea0d3(0xfd)]))return _0x3f70f8[_0x1ea0d3(0x158)];return _0x3f70f8[_0x1ea0d3(0xd5)];}catch(_0x3b9706){return _0x3f70f8['wBTNY'](debug,'Error\x20in\x20getting\x20browser\x20from\x20WebSocket\x20endpoint:\x20'+_0x3b9706['toString']()),_0x3f70f8[_0x1ea0d3(0xd5)];}},getCloudProviderFromWsEndpoint=_0x5f4bf3=>{const _0x5d6c1a=a60_0x12591f,_0x33cfcd={};_0x33cfcd[_0x5d6c1a(0x116)]=_0x5d6c1a(0xc1),_0x33cfcd[_0x5d6c1a(0x12d)]='unknown_grid';const _0x4047c3=_0x33cfcd;if(_0x5f4bf3['includes'](constants['BSTACK_URL'])||_0x5f4bf3[_0x5d6c1a(0xf0)](constants[_0x5d6c1a(0x102)]))return _0x4047c3['kRogs'];return _0x4047c3[_0x5d6c1a(0x12d)];},a60_0x91f187={};a60_0x91f187[a60_0x12591f(0xcd)]=undefined,a60_0x91f187['bsSessionId']=undefined,a60_0x91f187[a60_0x12591f(0x107)]=undefined,a60_0x91f187[a60_0x12591f(0x148)]=undefined,a60_0x91f187[a60_0x12591f(0x113)]=undefined,a60_0x91f187[a60_0x12591f(0xc8)]=undefined,a60_0x91f187[a60_0x12591f(0x15a)]=undefined,a60_0x91f187['capabilities']={};class SharedPlaywrightSessionDetails{static [a60_0x12591f(0x150)]=a60_0x91f187;constructor(){const _0x3aa422=a60_0x12591f,_0xbb5c35={};_0xbb5c35[_0x3aa422(0x16f)]=_0x3aa422(0x170);const _0x59e965=_0xbb5c35;throw new Error(_0x59e965[_0x3aa422(0x16f)]);}static ['sessionError']=null;static[a60_0x12591f(0x140)](_0x2a450a,_0xbaeaf3,_0x3cd647=null){const _0x25c4ce=a60_0x12591f,_0x168163={'vuPTq':function(_0x307aa2,_0x16a5ee){return _0x307aa2===_0x16a5ee;},'eAnhG':'function','CsHWm':_0x25c4ce(0x139),'TvpbS':function(_0x562c1c,_0x1c3a9a){return _0x562c1c===_0x1c3a9a;},'hHWzi':_0x25c4ce(0x192),'vMCPZ':_0x25c4ce(0x13c),'kSAlB':function(_0x504748,_0xbad493,_0x19296a){return _0x504748(_0xbad493,_0x19296a);},'pthBq':_0x25c4ce(0xfb),'CjWJX':_0x25c4ce(0x146),'akAwt':function(_0x585be3,_0x2cd9fe,_0x3afead){return _0x585be3(_0x2cd9fe,_0x3afead);},'zzZHB':'project','zPRzU':_0x25c4ce(0xc9),'ieuzS':'connectOptions','tiEwB':function(_0x4753ae,_0x546a41){return _0x4753ae(_0x546a41);},'rbjNh':function(_0x5bbb80,_0x43dcf7){return _0x5bbb80===_0x43dcf7;},'ryLHS':_0x25c4ce(0xc1),'qHlXA':_0x25c4ce(0xf1),'TdmFT':'automate','QUItO':function(_0x10a423,_0x40fc5b){return _0x10a423(_0x40fc5b);},'eKspD':_0x25c4ce(0x16e),'mpoJh':function(_0x3119ac){return _0x3119ac();},'ipZMu':function(_0x55502e,_0x5b1094){return _0x55502e&&_0x5b1094;},'VUBmt':function(_0x32e8f7){return _0x32e8f7();},'HWtPp':function(_0x21745a,_0x64708c){return _0x21745a(_0x64708c);},'rwGPp':function(_0x201c25,_0x1b5700){return _0x201c25+_0x1b5700;},'pOCxc':_0x25c4ce(0xc2),'XybNn':_0x25c4ce(0x140)},_0x1213c6=this;return _0x168163[_0x25c4ce(0x15c)](o11yErrorHandler,async function _0x33e788(_0x237366,_0x24f32b,_0x5d7912=null){const _0x115c20=_0x25c4ce;let _0xb133dd=_0x237366['_name'],_0x19c8b5=null;_0x237366&&_0x168163['vuPTq'](typeof _0x237366[_0x115c20(0x12e)],_0x168163[_0x115c20(0xd3)])?_0x19c8b5=_0x237366[_0x115c20(0x12e)]():logger['debug'](_0x168163[_0x115c20(0x105)]);let _0x5cc1f9=null;_0x237366&&_0x168163['TvpbS'](typeof _0x237366['model'],_0x168163[_0x115c20(0xd3)])?_0x5cc1f9=_0x237366['model']():logger['debug'](_0x168163[_0x115c20(0x18d)]);let _0x2503d0=null,_0x56c559=null,_0x559725=null,_0x351c07=_0x168163[_0x115c20(0x108)];if(_0x237366['_connection'][_0x115c20(0x14e)]()||global[_0x115c20(0x157)]){let _0xb34235=null;_0x168163['kSAlB'](nestedKeyValue,_0x237366,[_0x168163[_0x115c20(0x14d)],_0x168163[_0x115c20(0x17b)]])?_0xb34235=_0x237366[_0x115c20(0xfb)][_0x115c20(0x146)]:_0xb34235=_0x168163[_0x115c20(0x165)](nestedKeyValue,_0x24f32b,[_0x168163[_0x115c20(0x144)],_0x168163['zPRzU'],_0x168163['ieuzS']]);const _0x617bb6=_0x5d7912||_0xb34235&&_0xb34235[_0x115c20(0xea)];if(_0x617bb6){_0x351c07=_0x168163[_0x115c20(0xe9)](getCloudProviderFromWsEndpoint,_0x617bb6);if(_0x168163[_0x115c20(0x109)](_0x351c07,_0x168163['ryLHS'])){_0x559725=constants[_0x115c20(0xd2)][_0x115c20(0x155)](_0x617bb6)?_0x168163[_0x115c20(0x147)]:_0x168163[_0x115c20(0xde)];const _0x32c646=_0x168163[_0x115c20(0x111)](getBrowserFromWSEndpoint,_0x617bb6);if(_0x32c646&&(!_0xb133dd||_0x168163[_0x115c20(0x109)](_0xb133dd,_0x168163[_0x115c20(0x156)])))_0xb133dd=_0x32c646,logger['debug'](_0x115c20(0x120)+_0xb133dd);else _0xb133dd&&logger['debug'](_0x115c20(0xef)+_0xb133dd);_0x2503d0=_0x1213c6[_0x115c20(0x150)]['platform'],_0x56c559=_0x1213c6[_0x115c20(0x150)][_0x115c20(0xc8)];}else{const _0x44162f=await _0x168163[_0x115c20(0x124)](getPlatformDetails);_0x2503d0=_0x44162f[_0x115c20(0x13b)],_0x56c559=_0x44162f[_0x115c20(0x17c)];}}if(_0x168163[_0x115c20(0xc4)](!_0x2503d0,!_0x56c559)&&!_0x168163['VUBmt'](isBrowserstackInfra)){const _0x3c1517=await _0x168163[_0x115c20(0x10c)](getPlatformDetails);_0x2503d0=_0x3c1517['platformName'],_0x56c559=_0x3c1517[_0x115c20(0x17c)];}}else{_0x24f32b&&_0x24f32b[_0x115c20(0xe2)]&&_0x24f32b[_0x115c20(0xe2)][_0x115c20(0xc9)]&&_0x24f32b['project'][_0x115c20(0xc9)][_0x115c20(0xfe)]?_0xb133dd=_0x168163[_0x115c20(0xda)](getBrowserNameFromChannel,_0x24f32b[_0x115c20(0xe2)][_0x115c20(0xc9)]['channel']):_0xb133dd=_0x168163['rwGPp'](_0x168163[_0x115c20(0x16a)],_0xb133dd[_0x115c20(0x17e)]());const _0x5ed247=await _0x168163['mpoJh'](getPlatformDetails);_0x2503d0=_0x5ed247[_0x115c20(0x13b)],_0x56c559=_0x5ed247[_0x115c20(0x17c)];}const _0x1d657a={};_0x1d657a[_0x115c20(0x107)]=_0xb133dd,_0x1d657a[_0x115c20(0x148)]=_0x19c8b5,_0x1d657a[_0x115c20(0x152)]={},_0x1d657a[_0x115c20(0x113)]=_0x2503d0,_0x1d657a['platform_version']=_0x56c559,_0x1d657a['product']=_0x559725;const _0x280293=_0x1d657a;_0x5cc1f9&&(_0x280293[_0x115c20(0x152)]['deviceModel']=_0x5cc1f9);const _0x2dc3d6={};_0x2dc3d6['cloudProvider']=_0x351c07,_0x1213c6[_0x115c20(0x150)]=Object[_0x115c20(0x132)]({},_0x1213c6[_0x115c20(0x150)],_0x2dc3d6,_0x280293);const _0x4f4d5a={};_0x4f4d5a[_0x115c20(0x107)]=_0x1213c6[_0x115c20(0x150)][_0x115c20(0x107)],_0x4f4d5a[_0x115c20(0xdf)]=_0x1213c6['currentSessionDetails'][_0x115c20(0x148)],_0x4f4d5a['platform']=_0x1213c6[_0x115c20(0x150)][_0x115c20(0x113)],_0x4f4d5a[_0x115c20(0x17c)]=_0x1213c6['currentSessionDetails']['platform_version'],_0x4f4d5a[_0x115c20(0xcd)]=_0x1213c6['currentSessionDetails']['cloudProvider'],_0x4f4d5a['product']=_0x1213c6['currentSessionDetails'][_0x115c20(0x15a)],logger['debug']('Session\x20details\x20setup\x20complete:\x20'+JSON[_0x115c20(0xc3)](_0x4f4d5a));},_0x168163[_0x25c4ce(0xc6)])(_0x2a450a,_0xbaeaf3,_0x3cd647);}static['patch'](){const _0x5bbf15=a60_0x12591f;this['patchConnection'](),this[_0x5bbf15(0x151)]();}static[a60_0x12591f(0x14f)](){const _0x7a25c5=a60_0x12591f,_0x10b1e3={'RlMtk':function(_0x21b715,_0x2e09d2){return _0x21b715(_0x2e09d2);},'RdMtt':_0x7a25c5(0x12b),'glJxM':_0x7a25c5(0x123),'zxPqg':_0x7a25c5(0x186),'jCLXr':function(_0x2665f9,_0x4f2974){return _0x2665f9(_0x4f2974);},'elkiZ':function(_0x232d77,_0x3d04a3){return _0x232d77(_0x3d04a3);},'SGDkh':function(_0x308eb7,_0x967f5d){return _0x308eb7(_0x967f5d);},'xMJMJ':_0x7a25c5(0xf3),'hZsgz':function(_0x2f77a6,_0xe1e75c){return _0x2f77a6(_0xe1e75c);},'NBuEE':function(_0x48c191,_0xecffb8){return _0x48c191!=_0xecffb8;},'gQusn':function(_0x5aa180,_0x198e8e){return _0x5aa180(_0x198e8e);},'pmHFw':_0x7a25c5(0xc5),'YUBKs':'dispatch','MUxHt':_0x7a25c5(0x13a),'wxknb':function(_0x1fc6df,_0x292d76){return _0x1fc6df(_0x292d76);}},_0x4bc325=this;if(!this[_0x7a25c5(0x189)])try{const _0x2f15ff=[path['join'](_0x10b1e3[_0x7a25c5(0xc7)],_0x10b1e3[_0x7a25c5(0x129)],_0x10b1e3[_0x7a25c5(0x185)]),path['join'](_0x10b1e3[_0x7a25c5(0xc7)],_0x10b1e3[_0x7a25c5(0x185)]),path[_0x7a25c5(0xf7)](_0x10b1e3[_0x7a25c5(0x129)],_0x10b1e3[_0x7a25c5(0x185)])];for(const _0x35cf9f of _0x2f15ff){try{const _0x20637b=_0x10b1e3['jCLXr'](importFileFromPWCore,_0x35cf9f);if(_0x20637b&&_0x20637b[_0x7a25c5(0x189)]){this['Connection']=_0x20637b[_0x7a25c5(0x189)],logger['debug'](_0x7a25c5(0xe8)+_0x35cf9f);break;}}catch(_0x28fbeb){_0x10b1e3[_0x7a25c5(0x100)](debug,_0x7a25c5(0x133)+_0x35cf9f+':\x20'+_0x28fbeb[_0x7a25c5(0x181)]());}}if(!this[_0x7a25c5(0x189)]){_0x10b1e3['SGDkh'](debug,_0x10b1e3['xMJMJ']);return;}}catch(_0x2d9393){_0x10b1e3[_0x7a25c5(0xe0)](debug,_0x7a25c5(0x101)+_0x2d9393[_0x7a25c5(0x181)]());return;}const _0x9f5e48=this[_0x7a25c5(0x189)];try{if(_0x10b1e3[_0x7a25c5(0xe6)](_0x9f5e48,null)){const _0x2f3e15=_0x9f5e48[_0x7a25c5(0x190)]['dispatch'];if(!_0x10b1e3[_0x7a25c5(0xeb)](isFalse,process[_0x7a25c5(0x103)][_0x7a25c5(0x122)])){if(_0x9f5e48['prototype'][_0x7a25c5(0xe1)]){logger[_0x7a25c5(0x142)](_0x10b1e3[_0x7a25c5(0xcc)]);return;}Object[_0x7a25c5(0x183)](_0x9f5e48[_0x7a25c5(0x190)],_0x10b1e3[_0x7a25c5(0x13d)],{'get':function(){const _0x4719ee={'oRFki':function(_0x5ce175,_0x445c6f){const _0x163a01=a60_0x1566;return _0x10b1e3[_0x163a01(0x17f)](_0x5ce175,_0x445c6f);}};return async function _0x5900a4(_0x4b8ca9){const _0x4cab7a=a60_0x1566;if(BrowserstackCLI['getInstance']()[_0x4cab7a(0xfa)]()){const _0x139a8b={};_0x139a8b[_0x4cab7a(0x10d)]=_0x4b8ca9,await BrowserstackCLI[_0x4cab7a(0x138)]()[_0x4cab7a(0xd0)]()[_0x4cab7a(0x17a)](AutomationFrameworkState[_0x4cab7a(0xce)],HookState[_0x4cab7a(0x130)],_0x139a8b);}else{const _0x1abfa3=_0x4b8ca9&&_0x4b8ca9[_0x4cab7a(0x159)]&&_0x4b8ca9[_0x4cab7a(0x159)][_0x4cab7a(0x13e)];if(_0x1abfa3){const _0x2fa6c6=_0x1abfa3[_0x4cab7a(0x11d)],_0x3fe6a8=_0x1abfa3[_0x4cab7a(0x135)];_0x3fe6a8&&(_0x4719ee[_0x4cab7a(0x104)](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+_0x3fe6a8['toString']()),_0x4bc325[_0x4cab7a(0x150)]['platform']=_0x3fe6a8['platformName'],_0x4bc325[_0x4cab7a(0x150)][_0x4cab7a(0xc8)]=_0x3fe6a8[_0x4cab7a(0x17c)]),_0x2fa6c6&&(_0x4719ee[_0x4cab7a(0x104)](debug,_0x4cab7a(0x176)+_0x2fa6c6),_0x4bc325[_0x4cab7a(0x150)][_0x4cab7a(0xf8)]=_0x2fa6c6);}}return _0x2f3e15[_0x4cab7a(0x145)](this,arguments);};}}),_0x9f5e48[_0x7a25c5(0x190)]['_bstackDispatchPatched']=!![],logger[_0x7a25c5(0x142)](_0x10b1e3[_0x7a25c5(0x175)]);}}}catch(_0x3ad531){_0x10b1e3[_0x7a25c5(0x117)](debug,'Error\x20in\x20applying\x20Connection\x20patch\x20'+_0x3ad531),_0x4bc325[_0x7a25c5(0x18e)]=_0x3ad531[_0x7a25c5(0x181)]();}}static[a60_0x12591f(0x151)](){const _0x3afe22=a60_0x12591f,_0x41725f={'KaGmq':function(_0x5b1815,_0x342276){return _0x5b1815(_0x342276);},'MbxaJ':function(_0x273987,_0x2b012f){return _0x273987(_0x2b012f);},'DIuzi':_0x3afe22(0x12b),'CNeRv':_0x3afe22(0x188),'Hwykm':_0x3afe22(0x16e),'zbFNS':_0x3afe22(0xdd),'rEHLW':function(_0x5d5e71,_0x3d33ea){return _0x5d5e71(_0x3d33ea);},'zBgtB':function(_0x114d10,_0x2d15f9){return _0x114d10(_0x2d15f9);},'asoxh':_0x3afe22(0x106),'tbxTg':function(_0x2130ff,_0x22cd63){return _0x2130ff(_0x22cd63);},'QelAd':_0x3afe22(0x11f),'gSJha':function(_0x2a121a,_0x426b4a){return _0x2a121a!=_0x426b4a;},'KWcYA':_0x3afe22(0x194),'piqiW':_0x3afe22(0x110),'fBxfH':'Successfully\x20patched\x20CRConnection._onMessage'},_0x4b89d2=this;let _0x3a3262=null;try{const _0x308ef7=path[_0x3afe22(0xf7)](_0x41725f['DIuzi'],_0x41725f[_0x3afe22(0x193)],_0x41725f['Hwykm'],_0x41725f[_0x3afe22(0xf2)]),_0x38e0f2=_0x41725f[_0x3afe22(0x191)](importFileFromPWCore,_0x308ef7);!_0x38e0f2?_0x41725f[_0x3afe22(0xf4)](debug,_0x41725f[_0x3afe22(0x171)]):_0x3a3262=_0x38e0f2[_0x3afe22(0x16d)];}catch(_0x58732c){_0x41725f[_0x3afe22(0x10b)](debug,_0x41725f[_0x3afe22(0x178)]);}try{if(_0x41725f[_0x3afe22(0x18a)](_0x3a3262,null)){const _0x7c15b0=_0x3a3262[_0x3afe22(0x190)][_0x3afe22(0x110)];if(_0x3a3262['prototype'][_0x3afe22(0xe7)]){logger[_0x3afe22(0x142)](_0x41725f[_0x3afe22(0xe4)]);return;}Object['defineProperty'](_0x3a3262[_0x3afe22(0x190)],_0x41725f[_0x3afe22(0xfc)],{'get':function(){const _0x5b7a97={'TJZCE':function(_0x581893,_0x17a708){const _0x12dc44=a60_0x1566;return _0x41725f[_0x12dc44(0xd6)](_0x581893,_0x17a708);},'RtUYV':function(_0x4d67ed,_0x2e630e){const _0x1e0f4b=a60_0x1566;return _0x41725f[_0x1e0f4b(0x11b)](_0x4d67ed,_0x2e630e);}};return async function _0x1b9327(_0x5b118e){const _0x333318=a60_0x1566;try{if(BrowserstackCLI[_0x333318(0x138)]()[_0x333318(0xfa)]()){const _0x40a217={};_0x40a217[_0x333318(0x10d)]=_0x5b118e,await BrowserstackCLI['getInstance']()[_0x333318(0xd0)]()['trackEvent'](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState['POST'],_0x40a217),delete _0x5b118e['bStackParams'];}else{const _0x2e6df2=_0x5b118e[_0x333318(0x119)];if(_0x2e6df2){delete _0x5b118e[_0x333318(0x119)];const _0x3ab74d=_0x2e6df2[_0x333318(0x11d)],_0x29c007=_0x2e6df2[_0x333318(0x135)];_0x29c007&&(_0x5b7a97[_0x333318(0x143)](debug,_0x333318(0x115)+_0x29c007['toString']()),_0x4b89d2['currentSessionDetails'][_0x333318(0x113)]=_0x29c007[_0x333318(0x13b)],_0x4b89d2[_0x333318(0x150)][_0x333318(0xc8)]=_0x29c007[_0x333318(0x17c)]),_0x3ab74d&&(_0x5b7a97['TJZCE'](debug,_0x333318(0x11c)+_0x3ab74d),_0x4b89d2[_0x333318(0x150)]['bsSessionId']=_0x3ab74d);}}}catch(_0x3d683a){_0x5b7a97[_0x333318(0x180)](debug,_0x333318(0x149)+_0x3d683a[_0x333318(0x181)]());}return _0x7c15b0['apply'](this,arguments);};}}),_0x3a3262[_0x3afe22(0x190)][_0x3afe22(0xe7)]=!![],logger[_0x3afe22(0x142)](_0x41725f[_0x3afe22(0x118)]);}}catch(_0x361fcc){_0x41725f['tbxTg'](debug,_0x3afe22(0x195)+_0x361fcc),_0x4b89d2[_0x3afe22(0x18e)]=_0x361fcc['toString']();}}static[a60_0x12591f(0xd8)](_0x1f7b93,_0x511c6e){const _0x340f54=a60_0x12591f,_0x479f73={'KHIeG':'bstack:options','TQjuO':function(_0x8d1a44,_0xd7d48a){return _0x8d1a44||_0xd7d48a;},'JRBls':function(_0x308636,_0x4f4021){return _0x308636===_0x4f4021;},'GhLIy':_0x340f54(0x10f),'DixeI':_0x340f54(0x121),'Qgqqo':function(_0x449732,_0x4a55a8){return _0x449732(_0x4a55a8);},'DzYoS':function(_0x4e2189,_0x8f3cca){return _0x4e2189(_0x8f3cca);}};let _0x15c412=null,_0xc9c54=null;try{const _0x515364=[_0x511c6e,global[_0x340f54(0x128)],global['capabilties']];for(const _0x26d56f of _0x515364){if(_0x26d56f&&(!_0xc9c54||!_0xc9c54[_0x340f54(0x11d)])){const _0x3826f7=_0x26d56f[_0x340f54(0x11d)]||_0x26d56f[_0x479f73[_0x340f54(0xf6)]]?.[_0x340f54(0x11d)],_0x5320a9=_0x26d56f['browserName']||_0x26d56f[_0x340f54(0x107)]||_0x26d56f[_0x479f73['KHIeG']]?.[_0x340f54(0x184)],_0x14b846=_0x26d56f[_0x340f54(0xdf)]||_0x26d56f[_0x340f54(0x148)]||_0x26d56f[_0x479f73[_0x340f54(0xf6)]]?.[_0x340f54(0xdf)],_0x1fc890=_0x26d56f['os']||_0x26d56f[_0x340f54(0x113)]||_0x26d56f[_0x479f73['KHIeG']]?.['os'],_0x2e16a3=_0x26d56f['osVersion']||_0x26d56f[_0x340f54(0x16c)]||_0x26d56f[_0x479f73[_0x340f54(0xf6)]]?.[_0x340f54(0x177)];if(_0x479f73[_0x340f54(0x137)](_0x3826f7,_0x5320a9)||_0x1fc890){const _0x35f92d={};_0x35f92d[_0x340f54(0x184)]=_0x5320a9,_0x35f92d['browserVersion']=_0x14b846,_0x35f92d['os']=_0x1fc890,_0x35f92d['osVersion']=_0x2e16a3,_0x35f92d[_0x340f54(0x13b)]=_0x26d56f[_0x340f54(0x13b)]||_0x1fc890,_0x35f92d[_0x340f54(0x17c)]=_0x26d56f[_0x340f54(0x17c)]||_0x2e16a3;const _0x2f5a67={};_0x2f5a67[_0x340f54(0x11d)]=_0x3826f7,_0x2f5a67['platformDetails']=_0x35f92d,_0xc9c54=_0x2f5a67;if(_0x479f73[_0x340f54(0x137)](_0x3826f7,_0x5320a9)){logger['debug']('BrowserStack\x20params\x20extracted\x20from\x20capabilities:\x20browser='+_0x5320a9+_0x340f54(0x141)+_0x1fc890);break;}}}}if(_0x1f7b93&&_0x479f73['JRBls'](typeof _0x1f7b93,_0x479f73['GhLIy']))try{const _0x538e5d=url[_0x340f54(0x114)](_0x1f7b93),_0x5671ee=new URLSearchParams(_0x538e5d[_0x340f54(0x172)]),_0x116031=Object[_0x340f54(0xd1)](_0x5671ee['entries']()),_0x5528bf=[_0x116031[_0x340f54(0x126)],_0x116031[_0x340f54(0x152)],_0x116031[_0x340f54(0xca)]];for(const _0x4d4cae of _0x5528bf){if(_0x4d4cae&&(!_0x15c412||!_0x15c412['sessionId']))try{const _0xb34ade=JSON[_0x340f54(0x114)](_0x4d4cae),_0x26b655={};_0x26b655[_0x340f54(0x11d)]=_0xb34ade[_0x340f54(0x11d)]||_0xb34ade[_0x479f73['KHIeG']]?.[_0x340f54(0x11d)],_0x26b655[_0x340f54(0x135)]={},_0x26b655[_0x340f54(0x135)]['browserName']=_0xb34ade[_0x340f54(0x184)]||_0xb34ade[_0x340f54(0x107)],_0x26b655[_0x340f54(0x135)]['browserVersion']=_0xb34ade[_0x340f54(0xdf)]||_0xb34ade[_0x340f54(0x148)],_0x26b655[_0x340f54(0x135)]['os']=_0xb34ade['os']||_0xb34ade[_0x340f54(0x113)],_0x26b655[_0x340f54(0x135)][_0x340f54(0x177)]=_0xb34ade['osVersion']||_0xb34ade[_0x340f54(0x16c)],_0x26b655[_0x340f54(0x135)][_0x340f54(0x13b)]=_0xb34ade[_0x340f54(0x13b)]||_0xb34ade['os']||_0xb34ade[_0x340f54(0x113)],_0x26b655[_0x340f54(0x135)]['platformVersion']=_0xb34ade[_0x340f54(0x17c)]||_0xb34ade[_0x340f54(0x177)]||_0xb34ade[_0x340f54(0x16c)],_0x15c412=_0x26b655;if(_0x15c412[_0x340f54(0x11d)]||_0x15c412['platformDetails'][_0x340f54(0x184)]){logger[_0x340f54(0x142)](_0x479f73['DixeI']);break;}}catch(_0x794bfe){_0x479f73[_0x340f54(0x15f)](debug,_0x340f54(0x161)+_0x794bfe[_0x340f54(0x181)]());}}}catch(_0x2d98b0){_0x479f73[_0x340f54(0x15f)](debug,_0x340f54(0x10a)+_0x2d98b0[_0x340f54(0x181)]());}}catch(_0x26f82f){_0x479f73[_0x340f54(0xff)](debug,_0x340f54(0xcf)+util[_0x340f54(0xf5)](_0x26f82f));}const _0x440451={};return _0x440451[_0x340f54(0x13e)]=_0x15c412,_0x440451['bStackParams']=_0xc9c54,_0x440451;}static async[a60_0x12591f(0x16b)](_0x283e90,_0x2682ef){const _0x17d615=a60_0x12591f,_0x443638={'lkZPw':function(_0x33d61d,_0x387131){return _0x33d61d||_0x387131;},'rJycC':_0x17d615(0x18c),'bAIIN':function(_0x5170fc,_0x322683){return _0x5170fc||_0x322683;},'GTlFo':function(_0x211d5d,_0x61b557){return _0x211d5d(_0x61b557);}};try{if(!BrowserstackCLI[_0x17d615(0x138)]()[_0x17d615(0xfa)]())return;if(_0x443638[_0x17d615(0x12a)](_0x283e90,_0x2682ef)){logger[_0x17d615(0x142)](_0x443638[_0x17d615(0xdc)]);const _0x43e0a6={'params':_0x283e90?{'bsParams':_0x283e90}:null,'bStackParams':_0x443638[_0x17d615(0x182)](_0x2682ef,null)},_0xc0caa2=AutomationFramework[_0x17d615(0x164)](),_0x3bfb3e={};_0x3bfb3e[_0x17d615(0x10d)]=_0x43e0a6,_0x3bfb3e[_0x17d615(0x167)]=_0xc0caa2,await BrowserstackCLI[_0x17d615(0x138)]()['getAutomationFramework']()[_0x17d615(0x17a)](AutomationFrameworkState[_0x17d615(0xce)],HookState['POST'],_0x3bfb3e);}}catch(_0x195370){_0x443638[_0x17d615(0x163)](debug,_0x17d615(0x166)+util['format'](_0x195370));}}static['getDetails'](){const _0x5010b1=a60_0x12591f;return this[_0x5010b1(0x150)];}}module['exports']=SharedPlaywrightSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a61_0x27b01c=a61_0x1382;function a61_0x1382(_0x1c4faf,_0x4ecb8f){const _0x48216b=a61_0x4821();return a61_0x1382=function(_0x1382fa,_0x23fc44){_0x1382fa=_0x1382fa-0x1d4;let _0x4fcb2f=_0x48216b[_0x1382fa];return _0x4fcb2f;},a61_0x1382(_0x1c4faf,_0x4ecb8f);}(function(_0x4247ac,_0x5ed76d){const _0x5a39b8=a61_0x1382,_0x5e2fe9=_0x4247ac();while(!![]){try{const _0x4fc3a8=-parseInt(_0x5a39b8(0x1e3))/0x1+-parseInt(_0x5a39b8(0x1d6))/0x2*(parseInt(_0x5a39b8(0x1db))/0x3)+parseInt(_0x5a39b8(0x1e5))/0x4*(parseInt(_0x5a39b8(0x1df))/0x5)+-parseInt(_0x5a39b8(0x1de))/0x6*(-parseInt(_0x5a39b8(0x1e1))/0x7)+-parseInt(_0x5a39b8(0x1d7))/0x8+-parseInt(_0x5a39b8(0x1e6))/0x9*(-parseInt(_0x5a39b8(0x1dd))/0xa)+parseInt(_0x5a39b8(0x1d5))/0xb;if(_0x4fc3a8===_0x5ed76d)break;else _0x5e2fe9['push'](_0x5e2fe9['shift']());}catch(_0x5ec513){_0x5e2fe9['push'](_0x5e2fe9['shift']());}}}(a61_0x4821,0x1f6cb));const isHash=_0x541cce=>Boolean(_0x541cce&&typeof _0x541cce===a61_0x27b01c(0x1da)&&!Array[a61_0x27b01c(0x1e2)](_0x541cce)),nestedKeyValue=(_0x361876,_0x818275)=>{const _0x2b18b2=a61_0x27b01c,_0x4193f0={'cmoKg':function(_0x25e725,_0x201118){return _0x25e725===_0x201118;},'oPMts':function(_0x11fadb,_0x11e8a7){return _0x11fadb===_0x11e8a7;},'WEwmD':_0x2b18b2(0x1e7),'QtsVK':function(_0x3e64a4,_0x89985d){return _0x3e64a4(_0x89985d);}};return _0x818275[_0x2b18b2(0x1d9)]((_0x54e03c,_0x37a364)=>{const _0x3cd218=_0x2b18b2;if(_0x4193f0[_0x3cd218(0x1e8)](_0x54e03c,undefined)||_0x4193f0[_0x3cd218(0x1d8)](_0x54e03c,null))return undefined;if(_0x54e03c&&_0x4193f0['cmoKg'](typeof _0x54e03c[_0x3cd218(0x1e0)],_0x4193f0['WEwmD']))return _0x54e03c[_0x3cd218(0x1e0)](_0x37a364);if(_0x4193f0[_0x3cd218(0x1dc)](isHash,_0x54e03c))return _0x54e03c[_0x37a364];return undefined;},_0x361876);},a61_0x9d68c3={};function a61_0x4821(){const _0x389507=['isArray','56558jtngix','exports','124dsRFau','250227WTRDyO','function','cmoKg','isHash','267487qweZnf','266782YtLbEi','415872BRODMX','oPMts','reduce','object','3MfRWHO','QtsVK','10HGEBDs','6cVufwM','24985zQYywg','get','1145347NFogtl'];a61_0x4821=function(){return _0x389507;};return a61_0x4821();}a61_0x9d68c3[a61_0x27b01c(0x1d4)]=isHash,a61_0x9d68c3['nestedKeyValue']=nestedKeyValue,module[a61_0x27b01c(0x1e4)]=a61_0x9d68c3;
|
package/src/bin/v2/TestInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a62_0x4378a2=a62_0x581e;(function(_0x412298,_0x2ac11c){const _0x4c18a8=a62_0x581e,_0x5bc932=_0x412298();while(!![]){try{const _0x33de80=parseInt(_0x4c18a8(0x1dc))/0x1+parseInt(_0x4c18a8(0x21d))/0x2*(-parseInt(_0x4c18a8(0x227))/0x3)+-parseInt(_0x4c18a8(0x20c))/0x4+-parseInt(_0x4c18a8(0x1b3))/0x5+-parseInt(_0x4c18a8(0x1a1))/0x6*(parseInt(_0x4c18a8(0x1ca))/0x7)+parseInt(_0x4c18a8(0x216))/0x8+parseInt(_0x4c18a8(0x1f1))/0x9;if(_0x33de80===_0x2ac11c)break;else _0x5bc932['push'](_0x5bc932['shift']());}catch(_0x1a9e8c){_0x5bc932['push'](_0x5bc932['shift']());}}}(a62_0x2dbf,0x9a37b));const fs=require('fs'),path=require(a62_0x4378a2(0x198)),{TEMP_STORE_DIR_NAME}=require(a62_0x4378a2(0x1d1)),{nestedKeyValue}=require(a62_0x4378a2(0x21e)),logger=require('../../helpers/logger')[a62_0x4378a2(0x1e0)],util=require('util'),helper=require(a62_0x4378a2(0x21e)),{createClassLogger}=require(a62_0x4378a2(0x1a5)),lockfile=require('proper-lockfile'),{v4:uuidv4}=require(a62_0x4378a2(0x20e));class TestInfo{static ['tests']={};static [a62_0x4378a2(0x1fa)]=TestInfo[a62_0x4378a2(0x1b1)]();static [a62_0x4378a2(0x1c8)]=path[a62_0x4378a2(0x1d7)](TestInfo[a62_0x4378a2(0x1fa)],a62_0x4378a2(0x1e6));static [a62_0x4378a2(0x1a6)]=null;[a62_0x4378a2(0x204)]=createClassLogger(a62_0x4378a2(0x211));static[a62_0x4378a2(0x1fc)](_0x3c899a){const _0x9ce745=a62_0x4378a2,_0x120673={};_0x120673[_0x9ce745(0x223)]=_0x9ce745(0x1d3),_0x120673[_0x9ce745(0x1bf)]=_0x9ce745(0x1e6);const _0x56f18a=_0x120673,_0x41d445=_0x56f18a[_0x9ce745(0x223)][_0x9ce745(0x1a9)]('|');let _0x282ca3=0x0;while(!![]){switch(_0x41d445[_0x282ca3++]){case'0':const _0x5cedcd={};_0x5cedcd[_0x9ce745(0x1f0)]=!![],fs[_0x9ce745(0x1b4)](this[_0x9ce745(0x1c8)],_0x5cedcd);continue;case'1':const _0x3ce073={};_0x3ce073[_0x9ce745(0x1f0)]=!![],fs[_0x9ce745(0x1b4)](this[_0x9ce745(0x1fa)],_0x3ce073);continue;case'2':this[_0x9ce745(0x1fa)]=TestInfo[_0x9ce745(0x1b1)]();continue;case'3':logger[_0x9ce745(0x1a7)](_0x9ce745(0x1e1)+this['dirPath']);continue;case'4':this['testFramework']=_0x3c899a;continue;case'5':this[_0x9ce745(0x1c8)]=path[_0x9ce745(0x1d7)](this[_0x9ce745(0x1fa)],_0x56f18a['ywwHn']);continue;case'6':this[_0x9ce745(0x20b)]();continue;}break;}}static['getStoreDirName'](){const _0xde358=a62_0x4378a2,_0x2ab5ef={};_0x2ab5ef[_0xde358(0x21f)]=function(_0x685e80,_0x3f8c83){return _0x685e80+_0x3f8c83;},_0x2ab5ef[_0xde358(0x19e)]=_0xde358(0x1ba);const _0xd86d9=_0x2ab5ef;return _0xd86d9['uWdtE'](_0xd86d9[_0xde358(0x21f)](TEMP_STORE_DIR_NAME,'-'),process[_0xde358(0x1e3)]['BS_TESTOPS_BUILD_HASHED_ID']||_0xd86d9[_0xde358(0x19e)]);}static[a62_0x4378a2(0x19f)](){const _0x32b1cd=a62_0x4378a2,_0x3a187c={};_0x3a187c[_0x32b1cd(0x1fb)]=function(_0x37b2cd,_0x11645b){return _0x37b2cd+_0x11645b;},_0x3a187c['ZXjSo']=_0x32b1cd(0x1ba);const _0xeb43d4=_0x3a187c;return path['join'](_0xeb43d4[_0x32b1cd(0x1fb)](_0xeb43d4[_0x32b1cd(0x1fb)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x32b1cd(0x1cd)]||_0xeb43d4[_0x32b1cd(0x1ea)]));}static[a62_0x4378a2(0x19a)](){const _0x1bd3d1=a62_0x4378a2,_0x5c7412={};_0x5c7412[_0x1bd3d1(0x226)]=_0x1bd3d1(0x1e6);const _0x41eaa7=_0x5c7412;return path['join'](this[_0x1bd3d1(0x19f)](),_0x41eaa7['LWHaO']);}static[a62_0x4378a2(0x202)](_0x2c3147){const _0x3c35b8=a62_0x4378a2,_0x2eb5d9={};_0x2eb5d9[_0x3c35b8(0x221)]=function(_0x360e71,_0x2ee540){return _0x360e71+_0x2ee540;},_0x2eb5d9[_0x3c35b8(0x205)]=_0x3c35b8(0x1cf);const _0x697c57=_0x2eb5d9;return path[_0x3c35b8(0x1d7)](this[_0x3c35b8(0x1fa)],_0x697c57['Yzpmo'](_0x2c3147,_0x697c57[_0x3c35b8(0x205)]));}static['getTestRunIdFromTestInfo'](_0x2732f){const _0x26d837=a62_0x4378a2,_0x5879ce={};_0x5879ce['JwkKE']=function(_0x30c541,_0x3ccb03){return _0x30c541+_0x3ccb03;},_0x5879ce['iXxnO']=function(_0x54072f,_0xe17127){return _0x54072f+_0xe17127;},_0x5879ce['wCOXw']=function(_0x19b56b,_0x171f9d){return _0x19b56b+_0x171f9d;};const _0x4de3b0=_0x5879ce;return _0x4de3b0['JwkKE'](_0x4de3b0[_0x26d837(0x206)](_0x4de3b0[_0x26d837(0x19d)](_0x4de3b0[_0x26d837(0x1e8)](this[_0x26d837(0x199)](_0x2732f),'-'),this['getTestIdFromTestInfo'](_0x2732f)),'-'),_0x2732f[_0x26d837(0x219)]);}static[a62_0x4378a2(0x199)](_0x321b98){const _0x2846d6=a62_0x4378a2,_0x5141ae={'EaRHX':function(_0x4557da,_0x31e49f,_0x30516c){return _0x4557da(_0x31e49f,_0x30516c);},'CQXiV':_0x2846d6(0x1a2),'JjTaO':_0x2846d6(0x218),'tQYap':function(_0x590268,_0x2958a6,_0x18b93d){return _0x590268(_0x2958a6,_0x18b93d);},'THzRm':_0x2846d6(0x1f9),'ntXYX':_0x2846d6(0x1b5)};return _0x5141ae[_0x2846d6(0x1e5)](nestedKeyValue,_0x321b98,[_0x5141ae[_0x2846d6(0x209)],_0x5141ae[_0x2846d6(0x1af)]])||_0x5141ae[_0x2846d6(0x1ef)](nestedKeyValue,_0x321b98,[_0x5141ae['THzRm'],_0x5141ae[_0x2846d6(0x1e7)]]);}static[a62_0x4378a2(0x1de)](_0x436a18){const _0x3ace75=a62_0x4378a2,_0x112530={'SpZiX':function(_0x649f1e,_0x41c9ac,_0x468aef){return _0x649f1e(_0x41c9ac,_0x468aef);},'CVVsF':'_test'};return _0x112530[_0x3ace75(0x220)](nestedKeyValue,_0x436a18,[_0x112530[_0x3ace75(0x1ce)],'id'])||_0x436a18['testId'];}static[a62_0x4378a2(0x224)](_0x4ee254,_0x4fe7eb){const _0x749a98=a62_0x4378a2,_0x3e7f2f={};_0x3e7f2f[_0x749a98(0x1ab)]=function(_0x706199,_0x1a1d8e){return _0x706199+_0x1a1d8e;};const _0x30c8d7=_0x3e7f2f;return _0x30c8d7['fHMSP'](_0x30c8d7['fHMSP'](this['getTestIdFromTestInfo'](_0x4ee254),'-'),_0x4fe7eb);}static[a62_0x4378a2(0x1bb)](_0x12f222){const _0x2b7776=a62_0x4378a2,_0x5f4ec6={'NCypD':function(_0x227d7e,_0x18f7c1){return _0x227d7e===_0x18f7c1;},'qxUCo':_0x2b7776(0x19c),'CfjbJ':function(_0x3bece5){return _0x3bece5();}};try{if(this['tests'][_0x12f222]&&_0x5f4ec6[_0x2b7776(0x1df)](typeof this[_0x2b7776(0x1ed)][_0x12f222]['uuid'],_0x5f4ec6[_0x2b7776(0x1f5)]))return this[_0x2b7776(0x1ed)][_0x12f222]['uuid'];const _0x12c110=this[_0x2b7776(0x202)](_0x12f222),_0x140182=path[_0x2b7776(0x1ae)](_0x12c110);if(fs[_0x2b7776(0x210)](_0x140182)){const _0x2f3d1a=JSON[_0x2b7776(0x203)](fs[_0x2b7776(0x1c3)](_0x12c110)['toString']());return this[_0x2b7776(0x1ed)][_0x12f222]=_0x2f3d1a,this[_0x2b7776(0x1ed)][_0x12f222]['uuid'];}this['tests'][_0x12f222]={'uuid':_0x5f4ec6[_0x2b7776(0x1eb)](uuidv4)};try{fs[_0x2b7776(0x1db)](_0x12c110,JSON[_0x2b7776(0x1f7)](this[_0x2b7776(0x1ed)][_0x12f222]));}catch(_0x2540f0){logger['error'](_0x2b7776(0x1aa)+_0x12f222+':\x20'+_0x2540f0[_0x2b7776(0x1e4)]);}return this[_0x2b7776(0x1ed)][_0x12f222][_0x2b7776(0x20e)];}catch(_0x3aba0f){return logger['error'](_0x2b7776(0x1d2)+_0x12f222+':\x20'+_0x3aba0f['message']),null;}}static[a62_0x4378a2(0x1be)](_0x536063){const _0x521813=a62_0x4378a2,_0x1839cb=path[_0x521813(0x1d7)](this[_0x521813(0x1fa)],_0x536063+'_platformDetails.json');if(fs[_0x521813(0x210)](_0x1839cb))return fs[_0x521813(0x1c3)](_0x1839cb)['toString']();}static[a62_0x4378a2(0x1f3)](_0x2af782,_0x9072a5){const _0x423ea8=a62_0x4378a2,_0x3160c2=path['join'](this['dirPath'],_0x9072a5+_0x423ea8(0x215));fs[_0x423ea8(0x1db)](_0x3160c2,_0x2af782[_0x423ea8(0x217)]());}static[a62_0x4378a2(0x20b)](){const _0x27008f=a62_0x4378a2,_0x25632e={};_0x25632e[_0x27008f(0x1f0)]=!![],_0x25632e[_0x27008f(0x225)]=!![],fs[_0x27008f(0x1ec)](this[_0x27008f(0x1fa)],_0x25632e);}static[a62_0x4378a2(0x1a8)](_0x2b0fbd){const _0x48114c=a62_0x4378a2,_0x18753d=this[_0x48114c(0x202)](_0x2b0fbd);if(fs[_0x48114c(0x210)](_0x18753d))try{const _0x314587=JSON[_0x48114c(0x203)](fs[_0x48114c(0x1c3)](_0x18753d)[_0x48114c(0x217)]());return this[_0x48114c(0x1ed)][_0x2b0fbd]=_0x314587,_0x314587;}catch(_0x35b5b7){return logger[_0x48114c(0x1b2)](_0x48114c(0x1ac)+_0x18753d+':\x20'+util[_0x48114c(0x21a)](_0x35b5b7)+_0x48114c(0x1d6)),{};}return{};}static[a62_0x4378a2(0x1c0)](_0x9e360b,_0x232608,_0x5677eb=![]){const _0x56912a=a62_0x4378a2,_0x1e4b1e={'jrQZt':function(_0x42c475){return _0x42c475();}};logger[_0x56912a(0x1b2)](_0x56912a(0x21b)+process[_0x56912a(0x1ff)]+'\x20Setting\x20test\x20details\x20for\x20'+_0x9e360b+_0x56912a(0x1d5)+JSON['stringify'](_0x232608));const _0x15075c=this[_0x56912a(0x202)](_0x9e360b);if(fs[_0x56912a(0x210)](_0x15075c))try{const _0x1fca92=lockfile['lockSync'](_0x15075c),_0x4d1a05=JSON[_0x56912a(0x203)](fs['readFileSync'](_0x15075c)[_0x56912a(0x217)]());if(_0x5677eb)this[_0x56912a(0x1ed)][_0x9e360b]=helper[_0x56912a(0x1c1)](_0x4d1a05,_0x232608);else{const _0x77b8d5={..._0x4d1a05,..._0x232608};this[_0x56912a(0x1ed)][_0x9e360b]=_0x77b8d5;}fs[_0x56912a(0x1db)](_0x15075c,JSON[_0x56912a(0x1f7)](this[_0x56912a(0x1ed)][_0x9e360b])),_0x1e4b1e[_0x56912a(0x208)](_0x1fca92);}catch(_0x2bb5a9){logger[_0x56912a(0x1b2)](_0x56912a(0x1ac)+_0x15075c+':\x20'+util[_0x56912a(0x21a)](_0x2bb5a9)+_0x56912a(0x1a4));}}static[a62_0x4378a2(0x1d9)](_0x52259c,_0x19ec1f){const _0x427e9e=a62_0x4378a2,_0x1a7924={'hjJaN':function(_0x16ec02,_0x227236){return _0x16ec02!==_0x227236;},'PzTXI':_0x427e9e(0x207),'AOeFc':function(_0x14a77b){return _0x14a77b();}};logger['debug'](_0x427e9e(0x1bd)+process[_0x427e9e(0x1ff)]+_0x427e9e(0x1e2)+_0x52259c+'}');const _0xba3456=this[_0x427e9e(0x202)](_0x52259c);try{let _0x53b3fe={};if(fs[_0x427e9e(0x210)](_0xba3456)){const _0xb0a960=lockfile[_0x427e9e(0x197)](_0xba3456);_0x53b3fe=JSON[_0x427e9e(0x203)](fs['readFileSync'](_0xba3456)[_0x427e9e(0x217)]()),(!_0x53b3fe[_0x427e9e(0x1c6)]||_0x1a7924[_0x427e9e(0x1c2)](typeof _0x53b3fe[_0x427e9e(0x1c6)],_0x1a7924[_0x427e9e(0x1ee)]))&&(_0x53b3fe[_0x427e9e(0x1c6)]={}),(!_0x53b3fe[_0x427e9e(0x1c6)][_0x52259c]||!Array['isArray'](_0x53b3fe[_0x427e9e(0x1c6)][_0x52259c]))&&(_0x53b3fe[_0x427e9e(0x1c6)][_0x52259c]=[]),_0x53b3fe[_0x427e9e(0x1c6)][_0x52259c]['push'](_0x19ec1f),this['tests'][_0x52259c]=_0x53b3fe,fs['writeFileSync'](_0xba3456,JSON[_0x427e9e(0x1f7)](this[_0x427e9e(0x1ed)][_0x52259c])),_0x1a7924[_0x427e9e(0x1fe)](_0xb0a960);}else{const _0x59b8de={};_0x59b8de['uuid']=_0x52259c,_0x59b8de['logObjects']={},_0x59b8de['logObjects'][_0x52259c]=[_0x19ec1f],_0x53b3fe=_0x59b8de,this[_0x427e9e(0x1ed)][_0x52259c]=_0x53b3fe,fs[_0x427e9e(0x1db)](_0xba3456,JSON[_0x427e9e(0x1f7)](this[_0x427e9e(0x1ed)][_0x52259c]));}}catch(_0x32f4a6){logger[_0x427e9e(0x1b2)]('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0xba3456+':\x20'+util['format'](_0x32f4a6)+'.\x20Unable\x20to\x20add\x20console\x20log.');}}static[a62_0x4378a2(0x21c)](_0x2bf63e){const _0x5e97fa=a62_0x4378a2,_0x3c8a5c={'QXLVJ':function(_0x32876e,_0x46448d){return _0x32876e!==_0x46448d;},'FSaJq':_0x5e97fa(0x207),'RquaG':function(_0x2eae04){return _0x2eae04();},'GpPVG':function(_0x897e4a,_0x24d8ec){return _0x897e4a===_0x24d8ec;},'iIzjh':function(_0x1ba97d){return _0x1ba97d();}};logger[_0x5e97fa(0x1b2)](_0x5e97fa(0x213)+process[_0x5e97fa(0x1ff)]+_0x5e97fa(0x1b7)+_0x2bf63e);const _0x2afed2=this['getFilePath'](_0x2bf63e);try{if(!fs['existsSync'](_0x2afed2))return logger[_0x5e97fa(0x1b2)](_0x5e97fa(0x1d8)+_0x2bf63e),[];const _0x3363db=lockfile['lockSync'](_0x2afed2),_0x13f5a3=JSON[_0x5e97fa(0x203)](fs['readFileSync'](_0x2afed2)[_0x5e97fa(0x217)]());if(!_0x13f5a3[_0x5e97fa(0x1c6)]||_0x3c8a5c[_0x5e97fa(0x1c7)](typeof _0x13f5a3[_0x5e97fa(0x1c6)],_0x3c8a5c[_0x5e97fa(0x19b)]))return logger[_0x5e97fa(0x1b2)](_0x5e97fa(0x1a3)+_0x2bf63e),_0x3c8a5c['RquaG'](_0x3363db),[];if(!_0x13f5a3['logObjects'][_0x2bf63e]||!Array['isArray'](_0x13f5a3[_0x5e97fa(0x1c6)][_0x2bf63e])||_0x3c8a5c[_0x5e97fa(0x200)](_0x13f5a3[_0x5e97fa(0x1c6)][_0x2bf63e][_0x5e97fa(0x1d0)],0x0))return logger[_0x5e97fa(0x1b2)]('readLogObjects:\x20No\x20log\x20objects\x20found\x20for\x20testId:\x20'+_0x2bf63e),_0x3c8a5c[_0x5e97fa(0x1e9)](_0x3363db),[];const _0x36046a=[..._0x13f5a3[_0x5e97fa(0x1c6)][_0x2bf63e]];return logger[_0x5e97fa(0x1b2)](_0x5e97fa(0x1b9)+_0x36046a[_0x5e97fa(0x1d0)]+'\x20log\x20objects\x20for\x20testId:\x20'+_0x2bf63e),_0x13f5a3[_0x5e97fa(0x1c6)][_0x2bf63e]=[],this['tests'][_0x2bf63e]=_0x13f5a3,fs[_0x5e97fa(0x1db)](_0x2afed2,JSON[_0x5e97fa(0x1f7)](this[_0x5e97fa(0x1ed)][_0x2bf63e])),_0x3c8a5c[_0x5e97fa(0x1ad)](_0x3363db),_0x36046a;}catch(_0x4abfc1){return logger[_0x5e97fa(0x1b2)]('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0x2afed2+':\x20'+util[_0x5e97fa(0x21a)](_0x4abfc1)+_0x5e97fa(0x1f2)),[];}}static[a62_0x4378a2(0x20d)](_0x3de9b4){const _0x17b0a8=a62_0x4378a2,_0x1d93d9={};_0x1d93d9[_0x17b0a8(0x1bc)]='Error\x20handling\x20trace\x20file\x20paths:\x20%O';const _0x30795f=_0x1d93d9;try{const _0x68f15f=process['pid'],_0x148f78=path[_0x17b0a8(0x1d7)](TestInfo[_0x17b0a8(0x19a)](),_0x68f15f+_0x17b0a8(0x1c9));let _0x3323a4=[];fs['existsSync'](_0x148f78)&&(_0x3323a4=JSON['parse'](fs['readFileSync'](_0x148f78)[_0x17b0a8(0x217)]()));if(!_0x3323a4[_0x17b0a8(0x214)](_0x3321bb=>_0x3321bb[_0x17b0a8(0x201)]===_0x3de9b4[_0x17b0a8(0x201)])){_0x3323a4[_0x17b0a8(0x1d4)](_0x3de9b4);const _0x40b5e8=path[_0x17b0a8(0x20a)](_0x148f78);if(!fs[_0x17b0a8(0x210)](_0x40b5e8)){const _0x2e0a6b={};_0x2e0a6b[_0x17b0a8(0x1f0)]=!![],fs['mkdirSync'](_0x40b5e8,_0x2e0a6b);}fs['writeFileSync'](_0x148f78,JSON[_0x17b0a8(0x1f7)](_0x3323a4));}}catch(_0x145bfa){logger['error'](util[_0x17b0a8(0x21a)](_0x30795f[_0x17b0a8(0x1bc)],_0x145bfa));}}static['getTraceFilePaths'](){const _0x3e0cab=a62_0x4378a2,_0x29427c={};_0x29427c['SMRpl']=_0x3e0cab(0x1c9),_0x29427c[_0x3e0cab(0x1c5)]=_0x3e0cab(0x1fd);const _0x1f646d=_0x29427c,_0x97a6ea=[];try{const _0x2b7395=TestInfo[_0x3e0cab(0x19a)]();if(!fs[_0x3e0cab(0x210)](_0x2b7395))return _0x97a6ea;const _0x4acd13=fs['readdirSync'](_0x2b7395);_0x4acd13[_0x3e0cab(0x20f)](_0x2b8676=>{const _0x178afa=_0x3e0cab;if(_0x2b8676[_0x178afa(0x1b8)](_0x1f646d[_0x178afa(0x1cb)])){const _0x583db3=JSON[_0x178afa(0x203)](fs[_0x178afa(0x1c3)](path[_0x178afa(0x1d7)](_0x2b7395,_0x2b8676))[_0x178afa(0x217)]());_0x97a6ea[_0x178afa(0x1d4)](..._0x583db3);}});}catch(_0x57c29e){logger[_0x3e0cab(0x1b6)](util[_0x3e0cab(0x21a)](_0x1f646d[_0x3e0cab(0x1c5)],_0x57c29e));}const _0x5df221={};return _0x97a6ea[_0x3e0cab(0x20f)](_0x2ed7d6=>{const _0x3249df=_0x3e0cab;_0x5df221[_0x2ed7d6[_0x3249df(0x201)]]=_0x2ed7d6;}),Object[_0x3e0cab(0x1cc)](_0x5df221);}static[a62_0x4378a2(0x1da)](_0x4f40bf,_0xe2318a){const _0x21040a=a62_0x4378a2,_0x44c196={};_0x44c196['oXfTk']=_0x21040a(0x1dd),_0x44c196[_0x21040a(0x1b0)]=_0x21040a(0x222),_0x44c196[_0x21040a(0x1a0)]=_0x21040a(0x1f6);const _0x39dcf6=_0x44c196;try{const _0x3521a0=path['join'](helper['homedir'](),_0x39dcf6[_0x21040a(0x1f4)]);if(!fs[_0x21040a(0x210)](_0x3521a0)){const _0x3b4940={};_0x3b4940['recursive']=!![],fs['mkdirSync'](_0x3521a0,_0x3b4940);}fs[_0x21040a(0x1c4)](path[_0x21040a(0x1d7)](_0x3521a0,_0x21040a(0x1f8)+_0xe2318a+'.txt'),_0x4f40bf+'\x0a',_0x39dcf6[_0x21040a(0x1b0)]);}catch(_0x33e751){logger[_0x21040a(0x1b6)](util['format'](_0x39dcf6[_0x21040a(0x1a0)],_0x33e751));}}}function a62_0x581e(_0x1183e2,_0x3fb794){const _0x2dbf83=a62_0x2dbf();return a62_0x581e=function(_0x581e9a,_0x33ed30){_0x581e9a=_0x581e9a-0x197;let _0x5b2715=_0x2dbf83[_0x581e9a];return _0x5b2715;},a62_0x581e(_0x1183e2,_0x3fb794);}function a62_0x2dbf(){const _0x1272d9=['RquaG','resolve','JjTaO','bViue','getStoreDirName','debug','4207385IOCuIb','mkdirSync','__projectId','error','\x20Retrieving\x20logs\x20for\x20','endsWith','readLogObjects:\x20Retrieved\x20','default','getTestUUID','jJUSq','storeLogObjects:\x20processId:\x20','getAccessibilityPlatformValidation','ywwHn','setTestDetails','mergeDeep','hjJaN','readFileSync','appendFileSync','ggVNl','logObjects','QXLVJ','traceZipDir','_traceZipPaths.json','5212809DMrGdu','SMRpl','values','BS_TESTOPS_BUILD_HASHED_ID','CVVsF','.json','length','../../helpers/test-observability/constants','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','2|5|4|6|1|0|3','push','\x20with\x20details:\x20','.\x20Returning\x20empty\x20test\x20details.','join','readLogObjects:\x20No\x20file\x20found\x20for\x20testId:\x20','storeLogObjects','appendToTracePaths','writeFileSync','71042kdgLMC','.browserstack','getTestIdFromTestInfo','NCypD','winstonLogger','Setting\x20up\x20TestInfo\x20directory\x20at\x20','\x20Adding\x20console\x20log\x20for\x20','env','message','EaRHX','traceZipPaths','ntXYX','wCOXw','iIzjh','ZXjSo','CfjbJ','rmSync','tests','PzTXI','tQYap','recursive','27716085PHNkll','.\x20Unable\x20to\x20retrieve\x20log\x20objects.','setAccessibilityPlatformValidation','oXfTk','qxUCo','Error\x20writing\x20trace\x20file:\x20%O','stringify','trace_','project','dirPath','YtcRN','setup','Error\x20reading\x20trace\x20file\x20paths:\x20%O','AOeFc','pid','GpPVG','filePath','getFilePath','parse','logger','Vyxjc','iXxnO','object','jrQZt','CQXiV','dirname','shutdown','1553520CUuGuk','addTraceFilePath','uuid','forEach','existsSync','TestInfo','exports','readLogObjects:\x20processId:\x20','some','_platformDetails.json','4113416JxlAAh','toString','_projectId','retry','format','[setTestDetails]\x20processId:\x20','readLogObjects','6JNsxeT','../../helpers/helper','uWdtE','SpZiX','Yzpmo','utf8','eDpby','getTestIdentifierFromTestInfo','force','LWHaO','1058565GrQYYD','lockSync','path','getProjectIdFromTestInfo','getTraceZipDir','FSaJq','string','JwkKE','xSuOC','getStoreDirPath','vpwpr','6KUvKHd','_test','readLogObjects:\x20No\x20logObjects\x20object\x20found\x20for\x20testId:\x20','.\x20Unable\x20to\x20set\x20test\x20details.','../../helpers/classLogger.js','testFramework','info','getTestDetails','split','Error\x20writing\x20test\x20details\x20to\x20file\x20for\x20','fHMSP','Failed\x20to\x20acquire\x20lock\x20for\x20'];a62_0x2dbf=function(){return _0x1272d9;};return a62_0x2dbf();}module[a62_0x4378a2(0x212)]=TestInfo;
|
|
1
|
+
function a62_0xca5e(){const _0x1ef929=['setup','BS_TESTOPS_BUILD_HASHED_ID','VYHHf','filePath','fZUTB','.\x20Unable\x20to\x20set\x20test\x20details.','object','tjhNq','Error\x20writing\x20trace\x20file:\x20%O','13723758bBHEHj','qLMad','forEach','LueZv','retry','logger','5630275JImvqr','setAccessibilityPlatformValidation','ohKOh','.\x20Unable\x20to\x20retrieve\x20log\x20objects.','ETkZo','8akwMOC','proper-lockfile','PQTyo','mSAGb','SRCko','dirPath','toString','dynIZ','apqIQ','utf8','storeLogObjects','Error\x20handling\x20trace\x20file\x20paths:\x20%O','XEsGb','WoGBG','zNrhq','__projectId','KsAEd','773163JWMhAk','214YFoqOp','ZpNye','force','trace_','getFilePath','project','qEsgx','traceZipPaths','FeJPk','.browserstack','hiTbg','[setTestDetails]\x20processId:\x20','Npqbg','342782JHYIDD','existsSync','getTestIdentifierFromTestInfo','getTraceFilePaths','\x20Adding\x20console\x20log\x20for\x20','../../helpers/logger','readLogObjects','setTestDetails','tests','values','../../helpers/classLogger.js','resolve','join','some','Failed\x20to\x20acquire\x20lock\x20for\x20','\x20with\x20details:\x20','YGdMI','mergeDeep','stringify','format','traceZipDir','endsWith','default','lockSync','error','push','uTODf','appendToTracePaths','getTestIdFromTestInfo','duViF','_platformDetails.json','2|1|6|3|5|0|4','path','921039rxqnWT','AIwxe','../../helpers/helper','getTraceZipDir','readdirSync','uuid','string','Mvpil','../../helpers/test-observability/constants','uyzli','Setting\x20up\x20TestInfo\x20directory\x20at\x20','logObjects','debug','Error\x20writing\x20test\x20details\x20to\x20file\x20for\x20','nAGSw','addTraceFilePath','Error\x20while\x20getting\x20test\x20UUID\x20for\x20','getProjectIdFromTestInfo','AuIcx','18VAgdwE','testFramework','8310TlPeuA','parse','writeFileSync','shutdown','getStoreDirName','4723100XDBySL','pid','recursive','info','aMHnn','TestInfo','getTestRunIdFromTestInfo','qlGOD','.\x20Unable\x20to\x20add\x20console\x20log.','getStoreDirPath','readLogObjects:\x20No\x20logObjects\x20object\x20found\x20for\x20testId:\x20','DZqIL','\x20Setting\x20test\x20details\x20for\x20','readFileSync','isArray','DvVhY','split','_traceZipPaths.json','length','readLogObjects:\x20processId:\x20','\x20Retrieving\x20logs\x20for\x20','testId','message','1460HGOTfi','sxQPp','getTestDetails','mkdirSync'];a62_0xca5e=function(){return _0x1ef929;};return a62_0xca5e();}function a62_0x16b3(_0x64a99c,_0x472f6c){const _0xca5eb8=a62_0xca5e();return a62_0x16b3=function(_0x16b34e,_0x3170df){_0x16b34e=_0x16b34e-0xad;let _0x31a732=_0xca5eb8[_0x16b34e];return _0x31a732;},a62_0x16b3(_0x64a99c,_0x472f6c);}const a62_0x285a6e=a62_0x16b3;(function(_0x5ac2f9,_0x17728e){const _0x4b793e=a62_0x16b3,_0xbc8f07=_0x5ac2f9();while(!![]){try{const _0x3ced8b=parseInt(_0x4b793e(0xc5))/0x1+-parseInt(_0x4b793e(0xc6))/0x2*(parseInt(_0x4b793e(0x109))/0x3)+-parseInt(_0x4b793e(0x10e))/0x4+-parseInt(_0x4b793e(0xaf))/0x5+parseInt(_0x4b793e(0x107))/0x6*(-parseInt(_0x4b793e(0xf4))/0x7)+-parseInt(_0x4b793e(0xb4))/0x8*(parseInt(_0x4b793e(0x132))/0x9)+parseInt(_0x4b793e(0x125))/0xa*(parseInt(_0x4b793e(0xd3))/0xb);if(_0x3ced8b===_0x17728e)break;else _0xbc8f07['push'](_0xbc8f07['shift']());}catch(_0x334724){_0xbc8f07['push'](_0xbc8f07['shift']());}}}(a62_0xca5e,0xc3502));const fs=require('fs'),path=require(a62_0x285a6e(0xf3)),{TEMP_STORE_DIR_NAME}=require(a62_0x285a6e(0xfc)),{nestedKeyValue}=require(a62_0x285a6e(0xf6)),logger=require(a62_0x285a6e(0xd8))['winstonLogger'],util=require('util'),helper=require(a62_0x285a6e(0xf6)),{createClassLogger}=require(a62_0x285a6e(0xdd)),lockfile=require(a62_0x285a6e(0xb5)),{v4:uuidv4}=require(a62_0x285a6e(0xf9));class TestInfo{static ['tests']={};static [a62_0x285a6e(0xb9)]=TestInfo[a62_0x285a6e(0x10d)]();static [a62_0x285a6e(0xe7)]=path['join'](TestInfo[a62_0x285a6e(0xb9)],a62_0x285a6e(0xcd));static [a62_0x285a6e(0x108)]=null;[a62_0x285a6e(0xae)]=createClassLogger(a62_0x285a6e(0x113));static[a62_0x285a6e(0x129)](_0x4411e1){const _0x5d6ecf=a62_0x285a6e,_0x200d9a={};_0x200d9a[_0x5d6ecf(0xb8)]=_0x5d6ecf(0xf2),_0x200d9a[_0x5d6ecf(0x11d)]=_0x5d6ecf(0xcd);const _0x56a6ba=_0x200d9a,_0x385d2e=_0x56a6ba[_0x5d6ecf(0xb8)][_0x5d6ecf(0x11e)]('|');let _0x2fb0bb=0x0;while(!![]){switch(_0x385d2e[_0x2fb0bb++]){case'0':const _0xf23d0b={};_0xf23d0b[_0x5d6ecf(0x110)]=!![],fs[_0x5d6ecf(0x128)](this[_0x5d6ecf(0xe7)],_0xf23d0b);continue;case'1':this['traceZipDir']=path['join'](this[_0x5d6ecf(0xb9)],_0x56a6ba[_0x5d6ecf(0x11d)]);continue;case'2':this[_0x5d6ecf(0xb9)]=TestInfo[_0x5d6ecf(0x10d)]();continue;case'3':this[_0x5d6ecf(0x10c)]();continue;case'4':logger[_0x5d6ecf(0x111)](_0x5d6ecf(0xfe)+this[_0x5d6ecf(0xb9)]);continue;case'5':const _0x17108d={};_0x17108d['recursive']=!![],fs[_0x5d6ecf(0x128)](this['dirPath'],_0x17108d);continue;case'6':this['testFramework']=_0x4411e1;continue;}break;}}static['getStoreDirName'](){const _0x48cc7c=a62_0x285a6e,_0x458fe6={};_0x458fe6[_0x48cc7c(0xc0)]=function(_0x21d729,_0xeb26f2){return _0x21d729+_0xeb26f2;},_0x458fe6['qLMad']=_0x48cc7c(0xe9);const _0x5f4068=_0x458fe6;return _0x5f4068[_0x48cc7c(0xc0)](_0x5f4068[_0x48cc7c(0xc0)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x48cc7c(0x12a)]||_0x5f4068[_0x48cc7c(0x133)]);}static[a62_0x285a6e(0x117)](){const _0x2c3884=a62_0x285a6e,_0x176af6={};_0x176af6[_0x2c3884(0xbb)]=function(_0x4614f8,_0x1e4b93){return _0x4614f8+_0x1e4b93;},_0x176af6['KzjWI']=_0x2c3884(0xe9);const _0x935e6d=_0x176af6;return path['join'](_0x935e6d[_0x2c3884(0xbb)](_0x935e6d[_0x2c3884(0xbb)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x2c3884(0x12a)]||_0x935e6d['KzjWI']));}static[a62_0x285a6e(0xf7)](){const _0x3e3f4d=a62_0x285a6e,_0x3a49b5={};_0x3a49b5[_0x3e3f4d(0xd0)]=_0x3e3f4d(0xcd);const _0x270972=_0x3a49b5;return path['join'](this[_0x3e3f4d(0x117)](),_0x270972[_0x3e3f4d(0xd0)]);}static[a62_0x285a6e(0xca)](_0x1924d2){const _0x5977ff=a62_0x285a6e,_0x1a64b7={};_0x1a64b7[_0x5977ff(0x130)]=function(_0xb08226,_0x34c676){return _0xb08226+_0x34c676;},_0x1a64b7[_0x5977ff(0xf0)]='.json';const _0x62c94a=_0x1a64b7;return path[_0x5977ff(0xdf)](this[_0x5977ff(0xb9)],_0x62c94a['tjhNq'](_0x1924d2,_0x62c94a[_0x5977ff(0xf0)]));}static[a62_0x285a6e(0x114)](_0xd6ce9c){const _0x5918b3=a62_0x285a6e,_0x25ac32={};_0x25ac32[_0x5918b3(0xce)]=function(_0x4314f9,_0x5819ba){return _0x4314f9+_0x5819ba;},_0x25ac32[_0x5918b3(0x106)]=function(_0xe37926,_0x4ba6cb){return _0xe37926+_0x4ba6cb;};const _0x493e10=_0x25ac32;return _0x493e10[_0x5918b3(0xce)](_0x493e10[_0x5918b3(0x106)](_0x493e10[_0x5918b3(0xce)](_0x493e10[_0x5918b3(0xce)](this[_0x5918b3(0x105)](_0xd6ce9c),'-'),this['getTestIdFromTestInfo'](_0xd6ce9c)),'-'),_0xd6ce9c[_0x5918b3(0xad)]);}static[a62_0x285a6e(0x105)](_0x238a5a){const _0x372af5=a62_0x285a6e,_0x176ef1={'ocBfw':function(_0x37280a,_0x4c7428,_0x37ab1e){return _0x37280a(_0x4c7428,_0x37ab1e);},'KsAEd':'_test','apqIQ':'_projectId','AIwxe':function(_0x2abac9,_0x1855a2,_0x1c7344){return _0x2abac9(_0x1855a2,_0x1c7344);},'qlGOD':_0x372af5(0xcb),'VYHHf':_0x372af5(0xc3)};return _0x176ef1['ocBfw'](nestedKeyValue,_0x238a5a,[_0x176ef1[_0x372af5(0xc4)],_0x176ef1[_0x372af5(0xbc)]])||_0x176ef1[_0x372af5(0xf5)](nestedKeyValue,_0x238a5a,[_0x176ef1[_0x372af5(0x115)],_0x176ef1[_0x372af5(0x12b)]]);}static[a62_0x285a6e(0xef)](_0x4c1e1d){const _0x547030=a62_0x285a6e,_0x416ad8={'nAGSw':function(_0x4c5cb8,_0x7e60f0,_0x53d973){return _0x4c5cb8(_0x7e60f0,_0x53d973);},'ohKOh':'_test'};return _0x416ad8[_0x547030(0x102)](nestedKeyValue,_0x4c1e1d,[_0x416ad8[_0x547030(0xb1)],'id'])||_0x4c1e1d[_0x547030(0x123)];}static[a62_0x285a6e(0xd5)](_0x13a2b2,_0x3cd4f5){const _0x39afef=a62_0x285a6e,_0x5e50d2={};_0x5e50d2[_0x39afef(0xfd)]=function(_0x494078,_0x460fca){return _0x494078+_0x460fca;},_0x5e50d2[_0x39afef(0x12d)]=function(_0x841c75,_0x5180b8){return _0x841c75+_0x5180b8;};const _0x1158d2=_0x5e50d2;return _0x1158d2[_0x39afef(0xfd)](_0x1158d2[_0x39afef(0x12d)](this[_0x39afef(0xef)](_0x13a2b2),'-'),_0x3cd4f5);}static['getTestUUID'](_0x245762){const _0x1e4fa8=a62_0x285a6e,_0x52a4a2={'HxWmb':function(_0x10a39d,_0x4fa744){return _0x10a39d===_0x4fa744;},'CaooB':_0x1e4fa8(0xfa),'zNrhq':function(_0x2e04b0){return _0x2e04b0();}};try{if(this[_0x1e4fa8(0xdb)][_0x245762]&&_0x52a4a2['HxWmb'](typeof this['tests'][_0x245762][_0x1e4fa8(0xf9)],_0x52a4a2['CaooB']))return this[_0x1e4fa8(0xdb)][_0x245762]['uuid'];const _0xa2a8ff=this['getFilePath'](_0x245762),_0x585fec=path[_0x1e4fa8(0xde)](_0xa2a8ff);if(fs[_0x1e4fa8(0xd4)](_0x585fec)){const _0x1b3a88=JSON[_0x1e4fa8(0x10a)](fs['readFileSync'](_0xa2a8ff)[_0x1e4fa8(0xba)]());return this['tests'][_0x245762]=_0x1b3a88,this[_0x1e4fa8(0xdb)][_0x245762]['uuid'];}this[_0x1e4fa8(0xdb)][_0x245762]={'uuid':_0x52a4a2[_0x1e4fa8(0xc2)](uuidv4)};try{fs[_0x1e4fa8(0x10b)](_0xa2a8ff,JSON['stringify'](this[_0x1e4fa8(0xdb)][_0x245762]));}catch(_0x41864f){logger['error'](_0x1e4fa8(0x101)+_0x245762+':\x20'+_0x41864f[_0x1e4fa8(0x124)]);}return this[_0x1e4fa8(0xdb)][_0x245762][_0x1e4fa8(0xf9)];}catch(_0x10867d){return logger['error'](_0x1e4fa8(0x104)+_0x245762+':\x20'+_0x10867d[_0x1e4fa8(0x124)]),null;}}static['getAccessibilityPlatformValidation'](_0x51e6aa){const _0x5773d0=a62_0x285a6e,_0x8c09b5=path['join'](this[_0x5773d0(0xb9)],_0x51e6aa+_0x5773d0(0xf1));if(fs[_0x5773d0(0xd4)](_0x8c09b5))return fs[_0x5773d0(0x11b)](_0x8c09b5)[_0x5773d0(0xba)]();}static[a62_0x285a6e(0xb0)](_0x93060e,_0x1b67af){const _0x28be8d=a62_0x285a6e,_0x48ad33=path['join'](this[_0x28be8d(0xb9)],_0x1b67af+_0x28be8d(0xf1));fs[_0x28be8d(0x10b)](_0x48ad33,_0x93060e[_0x28be8d(0xba)]());}static['shutdown'](){const _0x3354e5=a62_0x285a6e,_0x31fd42={};_0x31fd42[_0x3354e5(0x110)]=!![],_0x31fd42[_0x3354e5(0xc8)]=!![],fs['rmSync'](this['dirPath'],_0x31fd42);}static[a62_0x285a6e(0x127)](_0x4a1992){const _0x69ad3d=a62_0x285a6e,_0x3c7c72=this[_0x69ad3d(0xca)](_0x4a1992);if(fs[_0x69ad3d(0xd4)](_0x3c7c72))try{const _0x3bff30=JSON[_0x69ad3d(0x10a)](fs[_0x69ad3d(0x11b)](_0x3c7c72)[_0x69ad3d(0xba)]());return this[_0x69ad3d(0xdb)][_0x4a1992]=_0x3bff30,_0x3bff30;}catch(_0x1b4c58){return logger[_0x69ad3d(0x100)](_0x69ad3d(0xe1)+_0x3c7c72+':\x20'+util['format'](_0x1b4c58)+'.\x20Returning\x20empty\x20test\x20details.'),{};}return{};}static[a62_0x285a6e(0xda)](_0x3a69d5,_0x5c1222,_0x520723=![]){const _0xcff233=a62_0x285a6e,_0x3ee28c={'Mvpil':function(_0x511b4){return _0x511b4();}};logger[_0xcff233(0x100)](_0xcff233(0xd1)+process[_0xcff233(0x10f)]+_0xcff233(0x11a)+_0x3a69d5+_0xcff233(0xe2)+JSON[_0xcff233(0xe5)](_0x5c1222));const _0xe0ac93=this[_0xcff233(0xca)](_0x3a69d5);if(fs[_0xcff233(0xd4)](_0xe0ac93))try{const _0x37f4cf=lockfile['lockSync'](_0xe0ac93),_0x31f606=JSON['parse'](fs[_0xcff233(0x11b)](_0xe0ac93)['toString']());if(_0x520723)this[_0xcff233(0xdb)][_0x3a69d5]=helper[_0xcff233(0xe4)](_0x31f606,_0x5c1222);else{const _0x439f54={..._0x31f606,..._0x5c1222};this['tests'][_0x3a69d5]=_0x439f54;}fs[_0xcff233(0x10b)](_0xe0ac93,JSON[_0xcff233(0xe5)](this[_0xcff233(0xdb)][_0x3a69d5])),_0x3ee28c[_0xcff233(0xfb)](_0x37f4cf);}catch(_0x1f86a3){logger['debug'](_0xcff233(0xe1)+_0xe0ac93+':\x20'+util['format'](_0x1f86a3)+_0xcff233(0x12e));}}static[a62_0x285a6e(0xbe)](_0x56348c,_0x4b66aa){const _0x5e2108=a62_0x285a6e,_0x15a8fd={'mSAGb':function(_0x45b35e,_0x15c546){return _0x45b35e!==_0x15c546;},'uTODf':'object','PQTyo':function(_0x3aeb78){return _0x3aeb78();}};logger[_0x5e2108(0x100)]('storeLogObjects:\x20processId:\x20'+process[_0x5e2108(0x10f)]+_0x5e2108(0xd7)+_0x56348c+'}');const _0xda7581=this[_0x5e2108(0xca)](_0x56348c);try{let _0x2d068f={};if(fs[_0x5e2108(0xd4)](_0xda7581)){const _0x3554df=lockfile['lockSync'](_0xda7581);_0x2d068f=JSON[_0x5e2108(0x10a)](fs['readFileSync'](_0xda7581)[_0x5e2108(0xba)]()),(!_0x2d068f[_0x5e2108(0xff)]||_0x15a8fd[_0x5e2108(0xb7)](typeof _0x2d068f[_0x5e2108(0xff)],_0x15a8fd[_0x5e2108(0xed)]))&&(_0x2d068f[_0x5e2108(0xff)]={}),(!_0x2d068f[_0x5e2108(0xff)][_0x56348c]||!Array['isArray'](_0x2d068f[_0x5e2108(0xff)][_0x56348c]))&&(_0x2d068f['logObjects'][_0x56348c]=[]),_0x2d068f[_0x5e2108(0xff)][_0x56348c][_0x5e2108(0xec)](_0x4b66aa),this[_0x5e2108(0xdb)][_0x56348c]=_0x2d068f,fs[_0x5e2108(0x10b)](_0xda7581,JSON['stringify'](this[_0x5e2108(0xdb)][_0x56348c])),_0x15a8fd[_0x5e2108(0xb6)](_0x3554df);}else{const _0xa91fe={};_0xa91fe[_0x5e2108(0xf9)]=_0x56348c,_0xa91fe[_0x5e2108(0xff)]={},_0xa91fe[_0x5e2108(0xff)][_0x56348c]=[_0x4b66aa],_0x2d068f=_0xa91fe,this['tests'][_0x56348c]=_0x2d068f,fs[_0x5e2108(0x10b)](_0xda7581,JSON[_0x5e2108(0xe5)](this[_0x5e2108(0xdb)][_0x56348c]));}}catch(_0x3332df){logger['debug']('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0xda7581+':\x20'+util[_0x5e2108(0xe6)](_0x3332df)+_0x5e2108(0x116));}}static[a62_0x285a6e(0xd9)](_0x4ac1b2){const _0x350355=a62_0x285a6e,_0x200a1c={'qEsgx':function(_0x4ad393,_0x15fd14){return _0x4ad393!==_0x15fd14;},'TeGbO':_0x350355(0x12f),'gokiS':function(_0x472148){return _0x472148();},'YGdMI':function(_0x11a6c7,_0x17de81){return _0x11a6c7===_0x17de81;},'sxQPp':function(_0x15012d){return _0x15012d();},'ETkZo':function(_0x361bfb){return _0x361bfb();}};logger[_0x350355(0x100)](_0x350355(0x121)+process[_0x350355(0x10f)]+_0x350355(0x122)+_0x4ac1b2);const _0x481e95=this[_0x350355(0xca)](_0x4ac1b2);try{if(!fs[_0x350355(0xd4)](_0x481e95))return logger[_0x350355(0x100)]('readLogObjects:\x20No\x20file\x20found\x20for\x20testId:\x20'+_0x4ac1b2),[];const _0x2c1e9e=lockfile[_0x350355(0xea)](_0x481e95),_0x4c2b4d=JSON[_0x350355(0x10a)](fs[_0x350355(0x11b)](_0x481e95)[_0x350355(0xba)]());if(!_0x4c2b4d[_0x350355(0xff)]||_0x200a1c[_0x350355(0xcc)](typeof _0x4c2b4d[_0x350355(0xff)],_0x200a1c['TeGbO']))return logger['debug'](_0x350355(0x118)+_0x4ac1b2),_0x200a1c['gokiS'](_0x2c1e9e),[];if(!_0x4c2b4d[_0x350355(0xff)][_0x4ac1b2]||!Array[_0x350355(0x11c)](_0x4c2b4d[_0x350355(0xff)][_0x4ac1b2])||_0x200a1c[_0x350355(0xe3)](_0x4c2b4d[_0x350355(0xff)][_0x4ac1b2][_0x350355(0x120)],0x0))return logger[_0x350355(0x100)]('readLogObjects:\x20No\x20log\x20objects\x20found\x20for\x20testId:\x20'+_0x4ac1b2),_0x200a1c[_0x350355(0x126)](_0x2c1e9e),[];const _0x4e2ceb=[..._0x4c2b4d[_0x350355(0xff)][_0x4ac1b2]];return logger['debug']('readLogObjects:\x20Retrieved\x20'+_0x4e2ceb['length']+'\x20log\x20objects\x20for\x20testId:\x20'+_0x4ac1b2),_0x4c2b4d[_0x350355(0xff)][_0x4ac1b2]=[],this[_0x350355(0xdb)][_0x4ac1b2]=_0x4c2b4d,fs['writeFileSync'](_0x481e95,JSON[_0x350355(0xe5)](this[_0x350355(0xdb)][_0x4ac1b2])),_0x200a1c[_0x350355(0xb3)](_0x2c1e9e),_0x4e2ceb;}catch(_0x1bc1ee){return logger[_0x350355(0x100)]('Failed\x20to\x20acquire\x20lock\x20for\x20'+_0x481e95+':\x20'+util[_0x350355(0xe6)](_0x1bc1ee)+_0x350355(0xb2)),[];}}static[a62_0x285a6e(0x103)](_0x1528c4){const _0x237066=a62_0x285a6e,_0x3b2ec8={};_0x3b2ec8[_0x237066(0x119)]=_0x237066(0xbf);const _0x223a95=_0x3b2ec8;try{const _0x5626a0=process[_0x237066(0x10f)],_0x549687=path[_0x237066(0xdf)](TestInfo[_0x237066(0xf7)](),_0x5626a0+_0x237066(0x11f));let _0x100190=[];fs[_0x237066(0xd4)](_0x549687)&&(_0x100190=JSON['parse'](fs['readFileSync'](_0x549687)['toString']()));if(!_0x100190[_0x237066(0xe0)](_0x51e89a=>_0x51e89a['filePath']===_0x1528c4[_0x237066(0x12c)])){_0x100190[_0x237066(0xec)](_0x1528c4);const _0x253cdd=path['dirname'](_0x549687);if(!fs[_0x237066(0xd4)](_0x253cdd)){const _0x1c46f7={};_0x1c46f7[_0x237066(0x110)]=!![],fs[_0x237066(0x128)](_0x253cdd,_0x1c46f7);}fs['writeFileSync'](_0x549687,JSON['stringify'](_0x100190));}}catch(_0x52b454){logger[_0x237066(0xeb)](util[_0x237066(0xe6)](_0x223a95[_0x237066(0x119)],_0x52b454));}}static[a62_0x285a6e(0xd6)](){const _0x398246=a62_0x285a6e,_0x3dd38d={};_0x3dd38d[_0x398246(0xc7)]=_0x398246(0x11f),_0x3dd38d[_0x398246(0xc1)]='Error\x20reading\x20trace\x20file\x20paths:\x20%O';const _0x2403ba=_0x3dd38d,_0x56c35a=[];try{const _0x3b8ee5=TestInfo['getTraceZipDir']();if(!fs[_0x398246(0xd4)](_0x3b8ee5))return _0x56c35a;const _0x58d4b9=fs[_0x398246(0xf8)](_0x3b8ee5);_0x58d4b9[_0x398246(0x134)](_0x1cf8a1=>{const _0xace2a9=_0x398246;if(_0x1cf8a1[_0xace2a9(0xe8)](_0x2403ba[_0xace2a9(0xc7)])){const _0xd0f80d=JSON[_0xace2a9(0x10a)](fs[_0xace2a9(0x11b)](path[_0xace2a9(0xdf)](_0x3b8ee5,_0x1cf8a1))[_0xace2a9(0xba)]());_0x56c35a[_0xace2a9(0xec)](..._0xd0f80d);}});}catch(_0x4a9d6c){logger[_0x398246(0xeb)](util[_0x398246(0xe6)](_0x2403ba[_0x398246(0xc1)],_0x4a9d6c));}const _0x37ade5={};return _0x56c35a['forEach'](_0x494651=>{_0x37ade5[_0x494651['filePath']]=_0x494651;}),Object[_0x398246(0xdc)](_0x37ade5);}static[a62_0x285a6e(0xee)](_0x37851c,_0x2fd897){const _0x313658=a62_0x285a6e,_0x54208f={};_0x54208f[_0x313658(0x135)]=_0x313658(0xcf),_0x54208f[_0x313658(0xd2)]=_0x313658(0xbd),_0x54208f[_0x313658(0x112)]=_0x313658(0x131);const _0x7b6e9f=_0x54208f;try{const _0xa8be6a=path[_0x313658(0xdf)](helper['homedir'](),_0x7b6e9f['LueZv']);if(!fs[_0x313658(0xd4)](_0xa8be6a)){const _0x56b784={};_0x56b784['recursive']=!![],fs['mkdirSync'](_0xa8be6a,_0x56b784);}fs['appendFileSync'](path['join'](_0xa8be6a,_0x313658(0xc9)+_0x2fd897+'.txt'),_0x37851c+'\x0a',_0x7b6e9f[_0x313658(0xd2)]);}catch(_0x524b7d){logger[_0x313658(0xeb)](util['format'](_0x7b6e9f[_0x313658(0x112)],_0x524b7d));}}}module['exports']=TestInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a63_0x2d0fcf=a63_0x1ca7;function a63_0x1ca7(_0x406182,_0x4e6ca3){const _0x527ff4=a63_0x527f();return a63_0x1ca7=function(_0x1ca7eb,_0x1130bf){_0x1ca7eb=_0x1ca7eb-0xdd;let _0x23003f=_0x527ff4[_0x1ca7eb];return _0x23003f;},a63_0x1ca7(_0x406182,_0x4e6ca3);}(function(_0x334de2,_0x17ee3f){const _0x30d471=a63_0x1ca7,_0x39804f=_0x334de2();while(!![]){try{const _0x759f77=parseInt(_0x30d471(0x111))/0x1+-parseInt(_0x30d471(0x119))/0x2+parseInt(_0x30d471(0x17e))/0x3+-parseInt(_0x30d471(0x175))/0x4*(-parseInt(_0x30d471(0x186))/0x5)+-parseInt(_0x30d471(0x170))/0x6+-parseInt(_0x30d471(0xee))/0x7*(parseInt(_0x30d471(0x19e))/0x8)+-parseInt(_0x30d471(0x130))/0x9;if(_0x759f77===_0x17ee3f)break;else _0x39804f['push'](_0x39804f['shift']());}catch(_0x6a7208){_0x39804f['push'](_0x39804f['shift']());}}}(a63_0x527f,0x67ccd));const {spawn}=require(a63_0x2d0fcf(0x14c)),GrpcClient=require(a63_0x2d0fcf(0xec)),util=require('util'),CLIUtils=require('./cliUtils.js'),PlaywrightAutomationFramework=require(a63_0x2d0fcf(0x120)),PlaywrightTestFramework=require(a63_0x2d0fcf(0xfb)),CucumberTestFramework=require(a63_0x2d0fcf(0x17b)),JestTestFramework=require(a63_0x2d0fcf(0xfe)),{createClassLogger}=require(a63_0x2d0fcf(0x155)),PerformanceTester=require(a63_0x2d0fcf(0x17a)),{EVENTS:PerformanceEvents}=require(a63_0x2d0fcf(0x160)),AccessibilityModule=require(a63_0x2d0fcf(0x144)),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS}=require(a63_0x2d0fcf(0x132)),helper=require(a63_0x2d0fcf(0x102)),TestFrameworkConstants=require(a63_0x2d0fcf(0x10f)),buildLogger=require(a63_0x2d0fcf(0xf3))[a63_0x2d0fcf(0x143)],LoadTestModule=require(a63_0x2d0fcf(0x1aa)),TestInfo=require(a63_0x2d0fcf(0x19d));class BrowserstackCLI{static #instance=null;static [a63_0x2d0fcf(0x191)]=null;static [a63_0x2d0fcf(0x115)]=null;static [a63_0x2d0fcf(0x11c)]=null;['process']=null;['isMainConnected']=![];[a63_0x2d0fcf(0x1bf)]=![];[a63_0x2d0fcf(0x122)]=null;[a63_0x2d0fcf(0x1c3)]={};['testFramework']=null;['automationFramework']=null;[a63_0x2d0fcf(0x180)]=createClassLogger('BrowserstackCLI');constructor(){const _0x39e8e4=a63_0x2d0fcf;this[_0x39e8e4(0x112)]=![],this[_0x39e8e4(0x1b3)]={},this[_0x39e8e4(0xf5)]={},this[_0x39e8e4(0xe2)]={};}static[a63_0x2d0fcf(0x12b)](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async[a63_0x2d0fcf(0x159)](){const _0x2592a3=a63_0x2d0fcf,_0x2907f2={};_0x2907f2[_0x2592a3(0x19c)]=_0x2592a3(0xfa);const _0x4a9a38=_0x2907f2;if(helper[_0x2592a3(0x136)](process[_0x2592a3(0x149)][_0x2592a3(0x1a5)])){this['logger'][_0x2592a3(0x14e)](_0x4a9a38['KDIvn']);return;}PerformanceTester[_0x2592a3(0x157)](PerformanceEvents[_0x2592a3(0x16e)]);try{const _0x34c7e2=process['env']['BROWSERSTACK_CLI_BIN_SESSION_ID']||null;this[_0x2592a3(0x1a7)](),this['setupTestFramework']();if(_0x34c7e2){await this[_0x2592a3(0x129)](_0x34c7e2),PerformanceTester['end'](PerformanceEvents[_0x2592a3(0x16e)]);return;}await this[_0x2592a3(0x1b1)]();}catch(_0x29507a){this[_0x2592a3(0x180)][_0x2592a3(0x153)]('bootstrap:\x20failed\x20to\x20bootstrap='+(_0x29507a['stack']||_0x29507a)),await this[_0x2592a3(0x172)](),PerformanceTester['end'](PerformanceEvents[_0x2592a3(0x16e)],![],util[_0x2592a3(0xe9)](_0x29507a));}}async['startMain'](){const _0x8eb6=a63_0x2d0fcf,_0x18b4ae={};_0x18b4ae['BfXiu']=_0x8eb6(0xeb),_0x18b4ae['UUroX']=_0x8eb6(0x113);const _0x487679=_0x18b4ae;this[_0x8eb6(0x180)][_0x8eb6(0x14e)](_0x487679[_0x8eb6(0x1b0)]),await this[_0x8eb6(0x157)](),this['logger'][_0x8eb6(0xf4)](_0x487679[_0x8eb6(0x1ae)]);const _0x129c85=await GrpcClient[_0x8eb6(0x12b)]()[_0x8eb6(0x168)]();this['isMainConnected']=!![],this[_0x8eb6(0x101)](_0x129c85);}[a63_0x2d0fcf(0x101)](_0x5b94a3){const _0x135ec1=a63_0x2d0fcf,_0x3dbb6f={'KPofL':function(_0x4eba67,_0x3bdb18){return _0x4eba67(_0x3bdb18);},'jXARa':_0x135ec1(0x1c1),'DkOen':'./modules/testhubModule.js','ImEvm':_0x135ec1(0x181),'yARCf':'loadModules:\x20Loading\x20modules','NPMxE':'getObservability','HjJuk':_0x135ec1(0x127),'KtUNn':_0x135ec1(0x1bc),'zPppg':function(_0xcf0ac6,_0x56bb84){return _0xcf0ac6||_0x56bb84;},'ItRVK':function(_0x36dd28,_0x2ecdce){return _0x36dd28===_0x2ecdce;},'NRTEe':_0x135ec1(0x13d),'dYdyC':function(_0xa72da8,_0x1bb89b){return _0xa72da8&&_0x1bb89b;}},_0x951014=_0x3dbb6f[_0x135ec1(0x135)](require,_0x3dbb6f['jXARa']),_0x509e75=_0x3dbb6f['KPofL'](require,_0x3dbb6f[_0x135ec1(0x183)]),_0x5f3461=_0x3dbb6f[_0x135ec1(0x135)](require,_0x3dbb6f[_0x135ec1(0x14a)]);this['logger'][_0x135ec1(0x14e)](_0x3dbb6f[_0x135ec1(0x10b)]),this[_0x135ec1(0x122)]=_0x5b94a3['getBinSessionId'](),this[_0x135ec1(0x180)][_0x135ec1(0x14e)](_0x135ec1(0x178)+this[_0x135ec1(0x122)]),this[_0x135ec1(0x134)](_0x5b94a3),this[_0x135ec1(0x1c7)]();!this[_0x135ec1(0x1bf)]&&this[_0x135ec1(0x152)](_0x5b94a3);const _0x48a00b=_0x3dbb6f['NPMxE'],_0xecbb31=_0x3dbb6f[_0x135ec1(0x145)],_0x3dc7d3=_0x3dbb6f[_0x135ec1(0x1c4)],_0x15d60e=_0x5b94a3[_0x48a00b]()&&_0x5b94a3[_0x48a00b]()[_0x3dc7d3](),_0x374c09=_0x5b94a3[_0xecbb31]()&&_0x5b94a3[_0xecbb31]()[_0x3dc7d3](),_0x17b692=process[_0x135ec1(0x149)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']&&JSON['parse'](process[_0x135ec1(0x149)][_0x135ec1(0x138)]);_0x3dbb6f[_0x135ec1(0x169)](_0x15d60e,_0x374c09)&&(this['modules'][_0x509e75[_0x135ec1(0x184)]]=new _0x509e75(_0x5b94a3['getTesthub'](),_0x17b692));_0x15d60e&&(this[_0x135ec1(0x1c3)][_0x5f3461[_0x135ec1(0x184)]]=new _0x5f3461(_0x5b94a3[_0x48a00b]()));if(_0x374c09)this['modules'][AccessibilityModule[_0x135ec1(0x184)]]=new AccessibilityModule(_0x5b94a3[_0xecbb31]());else try{const _0x1bcb40=_0x5b94a3[_0xecbb31](),_0x4b0d0d=_0x1bcb40&&_0x3dbb6f[_0x135ec1(0xff)](typeof _0x1bcb40[_0x3dc7d3],_0x3dbb6f[_0x135ec1(0x10e)])?!!_0x1bcb40[_0x3dc7d3]():![];this[_0x135ec1(0x180)]['info']('Accessibility\x20success='+_0x4b0d0d);if(_0x3dbb6f[_0x135ec1(0xe4)](!_0x4b0d0d,_0x1bcb40)){const _0x4cbbf7=_0x1bcb40[_0x135ec1(0xf8)]?_0x1bcb40[_0x135ec1(0xf8)]():_0x1bcb40;_0x4cbbf7[_0x135ec1(0xf6)]&&Array[_0x135ec1(0x12f)](_0x4cbbf7['errorsList'])&&(this[_0x135ec1(0x180)][_0x135ec1(0x153)](_0x135ec1(0xf0)+_0x4cbbf7[_0x135ec1(0xf6)]['length']+_0x135ec1(0x15d)),_0x4cbbf7[_0x135ec1(0xf6)][_0x135ec1(0x110)]((_0x47221b,_0x2bdb71)=>{const _0x26fc88=_0x135ec1;this[_0x26fc88(0x180)][_0x26fc88(0x153)](_0x26fc88(0x126)+_0x47221b[_0x26fc88(0x1a4)]+']\x20'+_0x47221b[_0x26fc88(0x13e)]);}),_0x4cbbf7['errorTraceId']&&this['logger'][_0x135ec1(0x153)](_0x135ec1(0x1a1)+_0x4cbbf7[_0x135ec1(0x11d)]),_0x4cbbf7[_0x135ec1(0x164)]&&this[_0x135ec1(0x180)]['error'](_0x135ec1(0x19f)+_0x4cbbf7[_0x135ec1(0x164)]));}}catch(_0x3ccbb8){this[_0x135ec1(0x180)]['error'](_0x135ec1(0x1bd)+_0x3ccbb8);}this[_0x135ec1(0x1c3)][_0x951014[_0x135ec1(0x184)]]=new _0x951014(_0x17b692),this[_0x135ec1(0xdf)]();}['getAccessibilityModule'](){const _0x50ea09=a63_0x2d0fcf;return this[_0x50ea09(0x1c3)][AccessibilityModule[_0x50ea09(0x184)]];}async['configureModules'](){const _0x585fe1=a63_0x2d0fcf;for(const _0x1b5857 in this[_0x585fe1(0x1c3)]){const _0x182841=this[_0x585fe1(0x1c3)][_0x1b5857];await _0x182841[_0x585fe1(0x141)](this[_0x585fe1(0x122)],0x0,GrpcClient[_0x585fe1(0x12b)]()[_0x585fe1(0x117)],this['config']);}}async[a63_0x2d0fcf(0x157)](){const _0xcd1c78=a63_0x2d0fcf,_0x278eb9={'BabFS':function(_0x477fe8,_0x459c25){return _0x477fe8!==_0x459c25;},'XcSBM':'ready','hrlyj':function(_0x249e6d){return _0x249e6d();},'EHoyE':function(_0x70ceb1,_0x1a972b){return _0x70ceb1(_0x1a972b);},'dQIiR':_0xcd1c78(0x198),'URhtv':_0xcd1c78(0x153),'hCCIi':_0xcd1c78(0x118),'FekdA':'Failed\x20to\x20get\x20CLI\x20binary\x20path.\x20CLI\x20setup\x20failed.','MPVrh':'sdk','Bmege':function(_0x568cc4,_0x1deb7c,_0xb73ebb,_0x5e7b9b){return _0x568cc4(_0x1deb7c,_0xb73ebb,_0x5e7b9b);},'TIrEb':'failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found'};PerformanceTester[_0xcd1c78(0x157)](PerformanceEvents[_0xcd1c78(0x193)]);if(CLIUtils[_0xcd1c78(0x11a)]())return this['loadCliParams'](CLIUtils[_0xcd1c78(0xe8)]()),PerformanceTester[_0xcd1c78(0x11e)](PerformanceEvents['SDK_CLI_START']),Promise[_0xcd1c78(0x1a8)]();if(this[_0xcd1c78(0x13f)]&&this[_0xcd1c78(0x13f)][_0xcd1c78(0x116)])return PerformanceTester[_0xcd1c78(0x11e)](PerformanceEvents[_0xcd1c78(0x193)]),Promise[_0xcd1c78(0x1a8)]();const _0x459f0d=await this[_0xcd1c78(0x1b7)]();if(!_0x459f0d)throw new Error(_0x278eb9['FekdA']);const _0xfcdede=[_0x459f0d,_0x278eb9['MPVrh']];this[_0xcd1c78(0x180)]['info'](_0xcd1c78(0xe5)+_0xfcdede+'\x27');const _0x43f304={};_0x43f304[_0xcd1c78(0x149)]=process[_0xcd1c78(0x149)],this['process']=_0x278eb9[_0xcd1c78(0x128)](spawn,_0xfcdede[0x0],_0xfcdede[_0xcd1c78(0xf7)](0x1),_0x43f304);if(!this[_0xcd1c78(0x13f)][_0xcd1c78(0x151)])throw new Error(_0x278eb9[_0xcd1c78(0x1b4)]);return new Promise((_0x1768f5,_0x5a2fcd)=>{const _0x533d77=_0xcd1c78,_0x55d710={'DkvHj':function(_0x584b9e,_0x57b4ee){const _0x3d4ae5=a63_0x1ca7;return _0x278eb9[_0x3d4ae5(0x17f)](_0x584b9e,_0x57b4ee);},'IhHSJ':_0x278eb9[_0x533d77(0x16a)],'PJOIA':function(_0x404797){return _0x278eb9['hrlyj'](_0x404797);},'iPWSH':function(_0x2d5983,_0x1c0a86){const _0x6efa90=_0x533d77;return _0x278eb9[_0x6efa90(0x195)](_0x2d5983,_0x1c0a86);}},_0x2cf494={};this[_0x533d77(0x13f)]['stdout']['on'](_0x278eb9[_0x533d77(0x15e)],_0x1b7cad=>{const _0x127206=_0x533d77,_0x1efede=_0x1b7cad[_0x127206(0xe3)]()[_0x127206(0x18e)]()[_0x127206(0x154)]('\x0a');for(const _0xc2df92 of _0x1efede){if(/^(id|listen|port)=.*$/[_0x127206(0x18b)](_0xc2df92)){const [_0x589f8c,_0x160c32]=_0xc2df92[_0x127206(0x154)]('=',0x2);_0x55d710[_0x127206(0x197)](_0x160c32,undefined)&&(_0x2cf494[_0x589f8c]=_0x160c32);}if(_0xc2df92[_0x127206(0x12e)]()[_0x127206(0x13c)](_0x55d710['IhHSJ'])){this[_0x127206(0x14b)](_0x2cf494),PerformanceTester[_0x127206(0x11e)](PerformanceEvents[_0x127206(0x193)]),_0x55d710[_0x127206(0x167)](_0x1768f5);return;}}}),this['process'][_0x533d77(0xed)]['on'](_0x278eb9[_0x533d77(0x15e)],_0x58ee4d=>{const _0x13f730=_0x533d77;this[_0x13f730(0x180)][_0x13f730(0x153)](_0x13f730(0x162)+_0x58ee4d[_0x13f730(0xe3)]()[_0x13f730(0x18e)]());}),this[_0x533d77(0x13f)]['on'](_0x278eb9[_0x533d77(0x106)],_0x20099a=>{const _0x3edf1e=_0x533d77;_0x2cf494['error']='Error\x20in\x20start:\x20'+_0x20099a['message'],PerformanceTester[_0x3edf1e(0x11e)](PerformanceEvents[_0x3edf1e(0x193)],![],_0x20099a),_0x55d710[_0x3edf1e(0x1c6)](_0x5a2fcd,new Error('Failed\x20to\x20start\x20CLI\x20process:\x20'+_0x20099a[_0x3edf1e(0x13e)]));}),this[_0x533d77(0x13f)]['on'](_0x278eb9[_0x533d77(0xf2)],_0x480ea8=>{const _0x56a32f=_0x533d77;_0x55d710['DkvHj'](_0x480ea8,0x0)&&_0x55d710[_0x56a32f(0x1c6)](_0x5a2fcd,new Error(_0x56a32f(0x1c2)+_0x480ea8));});});}async['stop'](_0x37428b=null){const _0x5eb64e=a63_0x2d0fcf,_0x39b5ec={'qsCti':_0x5eb64e(0x189),'Zmvph':function(_0x33bfe5){return _0x33bfe5();},'PrDDZ':_0x5eb64e(0x194),'kiNhg':'SIGKILL','ljqCR':_0x5eb64e(0x188),'TNUYM':function(_0x100200,_0x39f8cf,_0x4e28df){return _0x100200(_0x39f8cf,_0x4e28df);},'EYslN':_0x5eb64e(0x11b),'vaSPU':_0x5eb64e(0x124),'hWNuA':function(_0x7bb11d,_0x4d4e50){return _0x7bb11d(_0x4d4e50);},'QZqDl':_0x5eb64e(0x177),'JQjCD':_0x5eb64e(0x103),'tOGec':_0x5eb64e(0xde),'iylSu':_0x5eb64e(0x163)};if(!this[_0x5eb64e(0x1bb)]()){this[_0x5eb64e(0x180)][_0x5eb64e(0x14e)](_0x39b5ec[_0x5eb64e(0x156)]);return;}PerformanceTester[_0x5eb64e(0x157)](PerformanceEvents[_0x5eb64e(0x15c)]),this[_0x5eb64e(0x180)][_0x5eb64e(0x14e)](_0x39b5ec[_0x5eb64e(0xfd)]);try{if(this[_0x5eb64e(0x1b8)]){const _0x40f01b=_0x39b5ec[_0x5eb64e(0x18d)](require,_0x39b5ec[_0x5eb64e(0x18a)]),_0x3cc715=this[_0x5eb64e(0x1c3)][_0x5eb64e(0x1b2)]?.[_0x5eb64e(0x121)]?.[_0x5eb64e(0xf8)]()?.['buildHashedId'],_0x24138d=TestInfo['getTestDetails'](_0x3cc715),_0x58e247=_0x24138d[TestFrameworkConstants[_0x5eb64e(0x176)]]||{},_0x4b0cd1=await GrpcClient[_0x5eb64e(0x12b)]()[_0x5eb64e(0x16b)](JSON[_0x5eb64e(0x104)](_0x58e247),_0x37428b);_0x4b0cd1&&_0x4b0cd1['getSuccess']()&&_0x4b0cd1['getAutomateBuildlink']()&&(BrowserstackCLI[_0x5eb64e(0x191)]=_0x4b0cd1[_0x5eb64e(0xea)](),BrowserstackCLI['HashedID']=_0x4b0cd1[_0x5eb64e(0x199)]()),await _0x40f01b[_0x5eb64e(0x190)](),TestInfo[_0x5eb64e(0x158)](),buildLogger[_0x5eb64e(0x14e)](_0x5eb64e(0x123)+BrowserstackCLI['BuildLink']+_0x5eb64e(0x13a)+BrowserstackCLI['HashedID']+_0x5eb64e(0x100)+BrowserstackCLI[_0x5eb64e(0x11c)]);}await this[_0x5eb64e(0x1ab)]();const _0x17b146=GrpcClient[_0x5eb64e(0x12b)]()[_0x5eb64e(0x1b6)]();if(_0x17b146){try{_0x17b146[_0x5eb64e(0x118)](),this[_0x5eb64e(0x180)][_0x5eb64e(0x14e)](_0x39b5ec['JQjCD']);}catch(_0x4a5e65){this[_0x5eb64e(0x180)]['error'](util[_0x5eb64e(0xe9)](_0x39b5ec[_0x5eb64e(0x109)],_0x4a5e65));}await new Promise(_0x427eb0=>setTimeout(_0x427eb0,0x1388));}this[_0x5eb64e(0x13f)]&&this['process']['pid']&&(this['logger'][_0x5eb64e(0x14e)](_0x39b5ec[_0x5eb64e(0x17d)]),this[_0x5eb64e(0x13f)][_0x5eb64e(0x16f)](),await new Promise(_0x112a58=>{const _0x464667=_0x5eb64e;let _0x3f75b3=![];this[_0x464667(0x13f)]['on'](_0x39b5ec[_0x464667(0x139)],()=>{const _0x57f037=_0x464667;this[_0x57f037(0x180)]['info'](_0x39b5ec['qsCti']),_0x3f75b3=!![],PerformanceTester['end'](PerformanceEvents[_0x57f037(0x15c)]),_0x39b5ec[_0x57f037(0x1b9)](_0x112a58);}),_0x39b5ec['TNUYM'](setTimeout,()=>{const _0x37a737=_0x464667;!_0x3f75b3&&(this['logger'][_0x37a737(0x182)](_0x39b5ec[_0x37a737(0x1af)]),this['process'][_0x37a737(0x16f)](_0x39b5ec[_0x37a737(0xe0)]),PerformanceTester[_0x37a737(0x11e)](PerformanceEvents[_0x37a737(0x15c)]),_0x39b5ec[_0x37a737(0x1b9)](_0x112a58));},0xbb8);}));}catch(_0x1926e3){PerformanceTester['end'](PerformanceEvents[_0x5eb64e(0x15c)],![],util[_0x5eb64e(0xe9)](_0x1926e3)),this[_0x5eb64e(0x180)][_0x5eb64e(0x153)]('stop:\x20error\x20in\x20stop\x20session\x20exception='+(_0x1926e3[_0x5eb64e(0x173)]||_0x1926e3));}_0x37428b?this['process'][_0x5eb64e(0x15b)]=0x1:this[_0x5eb64e(0x13f)][_0x5eb64e(0x15b)]=0x0,this[_0x5eb64e(0x1bf)]=![],this[_0x5eb64e(0x1b8)]=![],process[_0x5eb64e(0x149)][_0x5eb64e(0x147)]=null;}async['unConfigureModules'](){const _0x510762=a63_0x2d0fcf,_0x3dff07={};_0x3dff07['JAHQM']='Unconfiguring\x20modules';const _0x20dd4e=_0x3dff07;this[_0x510762(0x180)][_0x510762(0x14e)](_0x20dd4e[_0x510762(0x192)]);}[a63_0x2d0fcf(0x14b)](_0x55522f){const _0x6a2d62=a63_0x2d0fcf;this[_0x6a2d62(0x180)]['info'](_0x6a2d62(0x1c0)+JSON[_0x6a2d62(0x104)](_0x55522f)),this['cliParams']=_0x55522f,GrpcClient[_0x6a2d62(0x12b)]()[_0x6a2d62(0xdd)](_0x55522f);}async['startChild'](_0x23a24f){const _0x2b485c=a63_0x2d0fcf,_0x5c8230={};_0x5c8230[_0x2b485c(0x10d)]=_0x2b485c(0x179);const _0x1549eb=_0x5c8230;PerformanceTester[_0x2b485c(0x157)](PerformanceEvents[_0x2b485c(0x15f)]);try{this[_0x2b485c(0x180)][_0x2b485c(0x14e)]('Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20'+_0x23a24f);const _0xef3d35=GrpcClient['getInstance']();if(_0xef3d35&&_0xef3d35[_0x2b485c(0x108)]()&&_0xef3d35['getChannel']()){this['logger'][_0x2b485c(0x14e)](_0x1549eb['dmTTe']);return;}GrpcClient[_0x2b485c(0x12b)]()[_0x2b485c(0xe6)]();const _0x457ab5=await GrpcClient['getInstance']()['connectBinSession']();this['isChildConnected']=!![],this[_0x2b485c(0x101)](_0x457ab5),PerformanceTester['end'](PerformanceEvents[_0x2b485c(0x15f)]);}catch(_0x5a5cc5){PerformanceTester[_0x2b485c(0x11e)](PerformanceEvents['SDK_CONNECT_BIN_SESSION'],![],util[_0x2b485c(0xe9)](_0x5a5cc5)),this[_0x2b485c(0x180)][_0x2b485c(0x153)]('Failed\x20to\x20start\x20as\x20child\x20process:\x20'+util[_0x2b485c(0xe9)](_0x5a5cc5));}}static[a63_0x2d0fcf(0x1be)](){const _0x33083b=a63_0x2d0fcf;try{return BrowserstackCLI[_0x33083b(0x12b)]()[_0x33083b(0x1bb)]();}catch(_0x35117a){return![];}}[a63_0x2d0fcf(0x1bb)](){const _0x9461e5=a63_0x2d0fcf,_0x2c076a={};_0x2c076a[_0x9461e5(0x1a2)]=function(_0x1ab81c,_0x474efb){return _0x1ab81c!==_0x474efb;},_0x2c076a[_0x9461e5(0x18c)]=function(_0x25e2e2,_0x5a7b7f){return _0x25e2e2===_0x5a7b7f;},_0x2c076a[_0x9461e5(0x14d)]=function(_0x276864,_0x6e8c63){return _0x276864!==_0x6e8c63;};const _0x5f2585=_0x2c076a;return CLIUtils['isDevelopmentEnv']()||this[_0x9461e5(0x1b8)]&&_0x5f2585[_0x9461e5(0x1a2)](this[_0x9461e5(0x13f)],null)&&_0x5f2585[_0x9461e5(0x18c)](this[_0x9461e5(0x13f)][_0x9461e5(0x15b)],null)&&_0x5f2585[_0x9461e5(0x14d)](GrpcClient[_0x9461e5(0x12b)]()['getClient'](),null)&&!GrpcClient[_0x9461e5(0x12b)]()[_0x9461e5(0x1b6)]()[_0x9461e5(0x12a)]||this[_0x9461e5(0x1bf)]&&_0x5f2585['kQmje'](GrpcClient['getInstance']()[_0x9461e5(0x1b6)](),null)&&!GrpcClient[_0x9461e5(0x12b)]()[_0x9461e5(0x1b6)]()[_0x9461e5(0x12a)];}[a63_0x2d0fcf(0x10c)](){const _0x30303f=a63_0x2d0fcf;return this[_0x30303f(0xe2)];}[a63_0x2d0fcf(0x19b)](_0x1ae4ae,_0x13a19f,_0xdc6def=null){const _0xf728cb=a63_0x2d0fcf,_0x1b411f={};_0x1b411f[_0xf728cb(0x12d)]=function(_0xf6abec,_0x1c20c0){return _0xf6abec||_0x1c20c0;};const _0x3c5df2=_0x1b411f;this[_0xf728cb(0xe2)]=_0x3c5df2[_0xf728cb(0x12d)](_0x1ae4ae,{}),this[_0xf728cb(0x107)]=_0x13a19f,this[_0xf728cb(0x140)]=_0xdc6def,process[_0xf728cb(0x149)][_0xf728cb(0x114)]=this[_0xf728cb(0xe2)]?.[_0xf728cb(0x1a0)]||![];const _0x45c677=CLIUtils[_0xf728cb(0x15a)](),_0x1d3c24=CLIUtils[_0xf728cb(0x16d)]();LoadTestModule['isLTSSession'](this['browserstackConfig'])&&LoadTestModule['setLTSSessionId'](this['browserstackConfig']||{}),helper[_0xf728cb(0x131)](process['env'][_0xf728cb(0x114)])||!(CLI_SUPPORTED_FRAMEWORKS[_0xf728cb(0x13c)](_0x45c677[_0xf728cb(0x11f)][_0xf728cb(0x12e)]())&&CLI_SUPPORTED_FRAMEWORKS['includes'](_0x1d3c24[_0xf728cb(0x11f)]['toLowerCase']()))?process[_0xf728cb(0x149)][_0xf728cb(0x1a5)]=![]:process[_0xf728cb(0x149)][_0xf728cb(0x1a5)]=!![];}async[a63_0x2d0fcf(0x1b7)](){const _0x540f5d=a63_0x2d0fcf,_0x183796={};_0x183796[_0x540f5d(0x171)]=_0x540f5d(0x1a6),_0x183796[_0x540f5d(0x105)]='CLIUtils.setupCliPath\x20returned\x20null';const _0x494b54=_0x183796;if(!this[_0x540f5d(0x1ad)])try{this[_0x540f5d(0x180)][_0x540f5d(0xf4)](_0x494b54[_0x540f5d(0x171)]),this[_0x540f5d(0x1ad)]=await CLIUtils[_0x540f5d(0x18f)](this['browserstackConfig']),!this[_0x540f5d(0x1ad)]?this['logger'][_0x540f5d(0x153)](_0x494b54[_0x540f5d(0x105)]):this[_0x540f5d(0x180)]['debug'](_0x540f5d(0x137)+this[_0x540f5d(0x1ad)]);}catch(_0x2c475c){this[_0x540f5d(0x180)][_0x540f5d(0x153)]('Error\x20in\x20setupCliPath:\x20'+_0x2c475c[_0x540f5d(0x13e)]),this[_0x540f5d(0x1ad)]=null;}return this[_0x540f5d(0x1ad)];}[a63_0x2d0fcf(0x165)](){const _0x2cea82=a63_0x2d0fcf;return helper[_0x2cea82(0x131)](process[_0x2cea82(0x149)]['BROWSERSTACK_CLI_ENABLED']);}[a63_0x2d0fcf(0x19a)](){return this['config'];}[a63_0x2d0fcf(0x134)](_0x23fdb7){const _0x2f4f62=a63_0x2d0fcf,_0x47f90a={};_0x47f90a[_0x2f4f62(0xf9)]='loading\x20Modules.';const _0x3e19ec=_0x47f90a;try{this[_0x2f4f62(0x1b3)]=JSON[_0x2f4f62(0x16c)](_0x23fdb7[_0x2f4f62(0x19a)]()),this['logger'][_0x2f4f62(0x14e)](_0x3e19ec[_0x2f4f62(0xf9)]);}catch(_0x27c662){this[_0x2f4f62(0x180)][_0x2f4f62(0x153)](_0x2f4f62(0xe1)+util['format'](_0x27c662));}}[a63_0x2d0fcf(0x1c7)](){const _0x5d38bd=a63_0x2d0fcf,_0x3ae58b={};_0x3ae58b[_0x5d38bd(0x12c)]=_0x5d38bd(0x196),_0x3ae58b[_0x5d38bd(0x142)]=_0x5d38bd(0x1b5),_0x3ae58b[_0x5d38bd(0x187)]=_0x5d38bd(0x166);const _0x3a5d70=_0x3ae58b;try{if(!this[_0x5d38bd(0xe2)]){this[_0x5d38bd(0x180)][_0x5d38bd(0xf4)](_0x3a5d70['MSTxQ']);return;}const _0xe2b1e4=this[_0x5d38bd(0x19a)]();if(!_0xe2b1e4){this[_0x5d38bd(0x180)][_0x5d38bd(0xf4)](_0x3a5d70['dDWTj']);return;}!helper[_0x5d38bd(0x174)](_0xe2b1e4['accessibility'])&&(this[_0x5d38bd(0xe2)]['accessibility']=_0xe2b1e4[_0x5d38bd(0x14f)],this['logger']['debug'](_0x5d38bd(0x125)+_0xe2b1e4[_0x5d38bd(0x14f)])),!helper[_0x5d38bd(0x174)](_0xe2b1e4[_0x5d38bd(0x146)])&&(this[_0x5d38bd(0xe2)]['accessibilityOptions']=_0xe2b1e4[_0x5d38bd(0x146)],this[_0x5d38bd(0x180)][_0x5d38bd(0xf4)](_0x3a5d70[_0x5d38bd(0x187)]));}catch(_0x2fa3b2){this['logger'][_0x5d38bd(0x153)](_0x5d38bd(0x1ac)+util[_0x5d38bd(0xe9)](_0x2fa3b2));}}['setCliArgs'](_0x409a76){const _0x416b38=a63_0x2d0fcf;try{this[_0x416b38(0xf5)]=_0x409a76[_0x416b38(0xf1)]()[_0x416b38(0x154)](','),this[_0x416b38(0x180)]['info'](_0x416b38(0x1c5)+JSON[_0x416b38(0x104)](this[_0x416b38(0xf5)]));}catch(_0x4a20c9){this['logger'][_0x416b38(0x153)](_0x416b38(0x10a)+util[_0x416b38(0xe9)](_0x4a20c9));}}[a63_0x2d0fcf(0xf1)](){const _0x42aead=a63_0x2d0fcf;return this[_0x42aead(0xf5)];}[a63_0x2d0fcf(0x161)](){const _0x2669f6=a63_0x2d0fcf,_0x19e798={};_0x19e798[_0x2669f6(0xef)]=function(_0x960ca9,_0x3a6197){return _0x960ca9===_0x3a6197;},_0x19e798[_0x2669f6(0x150)]=function(_0xcbf16,_0x3a47e7){return _0xcbf16===_0x3a47e7;};const _0x5451ad=_0x19e798,_0x389efb=CLIUtils['getTestFrameworkDetail']();if(_0x5451ad[_0x2669f6(0xef)](_0x389efb[_0x2669f6(0x11f)][_0x2669f6(0x12e)](),FRAMEWORKS[_0x2669f6(0x13b)][_0x2669f6(0x12e)]()))this['testFramework']=new PlaywrightTestFramework([_0x389efb[_0x2669f6(0x11f)]],_0x389efb['version']);else{if(_0x5451ad['IjiJL'](_0x389efb['name'][_0x2669f6(0x12e)](),FRAMEWORKS[_0x2669f6(0xfc)][_0x2669f6(0x12e)]()))this[_0x2669f6(0x17c)]=new CucumberTestFramework([_0x389efb['name']],_0x389efb[_0x2669f6(0x1a3)]);else _0x5451ad[_0x2669f6(0x150)](_0x389efb[_0x2669f6(0x11f)][_0x2669f6(0x12e)](),FRAMEWORKS['JEST']['toLowerCase']())&&(this[_0x2669f6(0x17c)]=new JestTestFramework([_0x389efb['name']],_0x389efb['version']));}}['setupAutomationFramework'](){const _0x4dea99=a63_0x2d0fcf,_0x3da78e={};_0x3da78e[_0x4dea99(0x1a9)]=function(_0x461db0,_0x4baa3f){return _0x461db0===_0x4baa3f;};const _0x4c3ec6=_0x3da78e,_0x2171e1=CLIUtils[_0x4dea99(0x16d)]();_0x4c3ec6[_0x4dea99(0x1a9)](_0x2171e1['name'][_0x4dea99(0x12e)](),FRAMEWORKS[_0x4dea99(0x13b)][_0x4dea99(0x12e)]())&&(this[_0x4dea99(0x148)]=new PlaywrightAutomationFramework(_0x2171e1[_0x4dea99(0x11f)],_0x2171e1['version']));}['getTestFramework'](){const _0xe51f01=a63_0x2d0fcf;return this[_0xe51f01(0x17c)];}[a63_0x2d0fcf(0x133)](){const _0xac8b92=a63_0x2d0fcf;return this[_0xac8b92(0x148)];}[a63_0x2d0fcf(0xe7)](){const _0x46c850=a63_0x2d0fcf;return this[_0x46c850(0x140)];}[a63_0x2d0fcf(0x1ba)](){const _0x226fce=a63_0x2d0fcf;return this[_0x226fce(0x107)];}}module[a63_0x2d0fcf(0x185)]=BrowserstackCLI;function a63_0x527f(){const _0x28a4e7=['KDIvn','./TestInfo.js','1924344tAamXP','Error\x20Code:\x20','turboScale','Error\x20Trace\x20ID:\x20','MeeqP','version','key','BROWSERSTACK_CLI_ENABLED','Setting\x20up\x20CLI\x20binary\x20path...','setupAutomationFramework','resolve','EgYfl','./modules/loadTestModule.js','unConfigureModules','syncAccessibilityConfig:\x20error=','SDK_CLI_BIN_PATH','UUroX','PrDDZ','BfXiu','startMain','TestHubModule','config','TIrEb','syncAccessibilityConfig:\x20CLI\x20config\x20not\x20available,\x20skipping\x20sync','getChannel','getCliBinPath','isMainConnected','Zmvph','getBrowserstackConfigPath','isRunning','getSuccess','Error\x20reading\x20accessibility\x20success\x20value:\x20','isCLIEnabled','isChildConnected','CLI\x20params\x20loaded:\x20','./modules/playwrightDriverModule.js','CLI\x20process\x20exited\x20with\x20code\x20','modules','KtUNn','setCliArgs:\x20cliArgs=','iPWSH','syncAccessibilityConfig','init','stop:\x20error\x20in\x20closing\x20channel:\x20%s','configureModules','kiNhg','setConfig:\x20error=','browserstackConfig','toString','dYdyC','spawning\x20command=\x27','connect','getBrowserstackCliConfig','getCLIParamsForDevEnv','format','getAutomateBuildlink','startMain:\x20Starting\x20main\x20process','./grpcClient.js','stderr','7xUKCtb','IjiJL','Accessibility\x20initialization\x20failed\x20with\x20','getCliArgs','hCCIi','../../helpers/logger.js','debug','cliArgs','errorsList','slice','toObject','OXGmC','Disabling\x20CLI.','./framework/playwrightTestFramework.js','CUCUMBER','vaSPU','./framework/jestTestFramework.js','ItRVK','\x20o11y_uuid=','loadModules','../../helpers/helper.js','stop:\x20channel\x20closed','stringify','eoQEX','URhtv','browserstackConfigPath','getClient','tOGec','setCliArgs:\x20error=','yARCf','getBrowserstackConfig','dmTTe','NRTEe','./framework/constants/testFrameworkConstants.js','forEach','407088aSsIdG','initialized','startMain:\x20main-process\x20started','BROWSERSTACK_TURBOSCALE','HashedID','connected','client','close','957062vrhjXD','isDevelopmentEnv','stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','O11yHashedID','errorTraceId','end','name','./framework/playwrightAutomationFramework.js','testhubConfig','binSessionId','stop:\x20stopBinSession\x20build_link=','stop:\x20CLI\x20stop\x20triggered','syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibility\x20from\x20CLI\x20response:\x20','Error:\x20[','getAccessibility','Bmege','startChild','isClosed','getInstance','MSTxQ','jwndn','toLowerCase','isArray','855441SagnzB','isTrue','../utils/constants.js','getAutomationFramework','setConfig','KPofL','isFalse','CLI\x20binary\x20path\x20resolved\x20to:\x20','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','ljqCR','\x20hashed_id=','PLAYWRIGHT','includes','function','message','process','browserstackCliConfig','configure','dDWTj','buildLogger','./modules/accessibilityModule.js','HjJuk','accessibilityOptions','BROWSERSTACK_CLI_ENV','automationFramework','env','ImEvm','loadCliParams','child_process','kQmje','info','accessibility','NHDQB','pid','setCliArgs','error','split','../../helpers/classLogger.js','EYslN','start','shutdown','bootstrap','getTestFrameworkDetail','exitCode','SDK_CLI_ON_STOP','\x20errors:','dQIiR','SDK_CONNECT_BIN_SESSION','../../helpers/performance/constants','setupTestFramework','CLI\x20stderr:\x20','stop:\x20shutting\x20down\x20CLI','code','isCliEnabled','syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibilityOptions\x20from\x20CLI\x20response','PJOIA','startBinSession','zPppg','XcSBM','stopBinSession','parse','getAutomationFrameworkDetail','SDK_CLI_ON_BOOTSTRAP','kill','3609762UnsKZN','IuOyq','stop','stack','isUndefined','44UKbOXB','KEY_CUSTOM_TAGS','./uploadAttachmentsManager.js','loadModules:\x20binSessionId=','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','../../helpers/performance/performance-tester.js','./framework/cucumberTestFramework.js','testFramework','iylSu','1947690dPmmhA','BabFS','logger','./modules/observabilityModule.js','warn','DkOen','MODULE_NAME','exports','356635iNtdgE','dIIAB','exit','stop:\x20CLI\x20process\x20exited','QZqDl','test','rQNqx','hWNuA','trim','setupCliPath','clearAttachments','BuildLink','JAHQM','SDK_CLI_START','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','EHoyE','syncAccessibilityConfig:\x20browserstackConfig\x20not\x20set,\x20skipping\x20sync','DkvHj','data','getHashedId','getConfig','setBrowserstackConfig'];a63_0x527f=function(){return _0x28a4e7;};return a63_0x527f();}
|
|
1
|
+
const a63_0x4e094b=a63_0x4083;(function(_0x1bbcff,_0x61792){const _0x3b6013=a63_0x4083,_0xacb78f=_0x1bbcff();while(!![]){try{const _0x56103d=-parseInt(_0x3b6013(0x16d))/0x1+-parseInt(_0x3b6013(0x183))/0x2+-parseInt(_0x3b6013(0x141))/0x3+parseInt(_0x3b6013(0x149))/0x4*(parseInt(_0x3b6013(0x1c8))/0x5)+-parseInt(_0x3b6013(0x13f))/0x6*(-parseInt(_0x3b6013(0x219))/0x7)+-parseInt(_0x3b6013(0x217))/0x8+parseInt(_0x3b6013(0x1fc))/0x9;if(_0x56103d===_0x61792)break;else _0xacb78f['push'](_0xacb78f['shift']());}catch(_0x1656aa){_0xacb78f['push'](_0xacb78f['shift']());}}}(a63_0x34a0,0x73a5c));const {spawn}=require(a63_0x4e094b(0x16b)),GrpcClient=require(a63_0x4e094b(0x1d2)),util=require(a63_0x4e094b(0x142)),CLIUtils=require('./cliUtils.js'),PlaywrightAutomationFramework=require(a63_0x4e094b(0x161)),PlaywrightTestFramework=require(a63_0x4e094b(0x168)),CucumberTestFramework=require(a63_0x4e094b(0x1df)),JestTestFramework=require(a63_0x4e094b(0x1ed)),{createClassLogger}=require(a63_0x4e094b(0x202)),PerformanceTester=require(a63_0x4e094b(0x145)),{EVENTS:PerformanceEvents}=require(a63_0x4e094b(0x1ce)),AccessibilityModule=require('./modules/accessibilityModule.js'),{CLI_SUPPORTED_FRAMEWORKS,FRAMEWORKS}=require('../utils/constants.js'),helper=require(a63_0x4e094b(0x17f)),TestFrameworkConstants=require(a63_0x4e094b(0x1cb)),buildLogger=require(a63_0x4e094b(0x1f1))[a63_0x4e094b(0x218)],LoadTestModule=require('./modules/loadTestModule.js'),TestInfo=require('./TestInfo.js');function a63_0x4083(_0x226bb6,_0x1bc323){const _0x34a01b=a63_0x34a0();return a63_0x4083=function(_0x408354,_0x158a06){_0x408354=_0x408354-0x137;let _0x2576bc=_0x34a01b[_0x408354];return _0x2576bc;},a63_0x4083(_0x226bb6,_0x1bc323);}function a63_0x34a0(){const _0x127bae=['../../helpers/helper.js','isFalse','PGJJO','kill','388998fPmGdI','pLsGS','toLowerCase','stopBinSession','syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibilityOptions\x20from\x20CLI\x20response','BuildLink','start','setCliArgs:\x20cliArgs=','O11yHashedID','startChild','format','getAutomationFrameworkDetail','isMainConnected','NrWsN','loadCliParams','startMain:\x20main-process\x20started','getTestFramework','stop:\x20shutting\x20down\x20CLI','isTrue','client','Disabling\x20CLI.','Error\x20Trace\x20ID:\x20','popSL','pjQwr','setupTestFramework','getHashedId','startBinSession','KEY_CUSTOM_TAGS','NgLIS','stop:\x20error\x20in\x20stop\x20session\x20exception=','stdout','syncAccessibilityConfig:\x20error=','TPzqI','getAccessibility','isArray','resolve','zLaId','buildHashedId','stringify','JZpfZ','iTxBt','BROWSERSTACK_CLI_BIN_SESSION_ID','getAutomationFramework','clearAttachments','isRunning','JEST','XWXus','LRCrR','BROWSERSTACK_CLI_ENV','stop:\x20channel\x20closed','info','QaVte','SDK_CLI_ON_STOP','getCliBinPath','isCLIEnabled','code','failed\x20to\x20start\x20CLI,\x20no\x20PID\x20found','setupCliPath','process','exit','toString','getInstance','SDK_CONNECT_BIN_SESSION','nOhDk','length','stderr','vSLIN','config','exitCode','34195tANAjJ','ENEEO','getClient','./framework/constants/testFrameworkConstants.js','MODULE_NAME','LWhgS','../../helpers/performance/constants','setConfig','Setting\x20up\x20CLI\x20binary\x20path...','ZirNR','./grpcClient.js','function','startMain','SDK_CLI_BIN_PATH','gEdmU','getCliArgs','trim','umgTX','CRDmo','PLAYWRIGHT','./modules/observabilityModule.js','version','isDevelopmentEnv','./framework/cucumberTestFramework.js','automationFramework','errorsList','FrwiD','aASph','key','BROWSERSTACK_CLI_ENABLED','getConfig','SDK_CLI_ON_BOOTSTRAP','BROWSERSTACK_TURBOSCALE','CLqav','syncAccessibilityConfig:\x20browserstackConfig\x20not\x20set,\x20skipping\x20sync','browserstackConfigPath','XPRHV','./framework/jestTestFramework.js','accessibilityOptions','ready','bootstrap','../../helpers/logger.js','Error:\x20[','testhubConfig','getSuccess','Starting\x20as\x20child\x20process\x20with\x20session\x20ID:\x20','connected','spawning\x20command=\x27','end','slice','./modules/playwrightDriverModule.js','utvRh','8376732QzqNMf','pid','stop:\x20process\x20exit\x20timeout,\x20forcing\x20kill','izopa','\x20o11y_uuid=','setLTSSessionId','../../helpers/classLogger.js','GzKXQ','RNmzY','SSIbF','getCLIParamsForDevEnv','Failed\x20to\x20start\x20as\x20child\x20process:\x20','accessibility','UJqIh','npLjc','YiKhg','gnrHB','loadModules:\x20binSessionId=','logger','sdk','CLIUtils.setupCliPath\x20returned\x20null','modules','Error\x20reading\x20accessibility\x20success\x20value:\x20','browserstackCliConfig','error','setCliArgs','turboScale','3446864kloUUh','buildLogger','21XfjYbG','pIanx','toObject','Ahpks','getObservability','split','loadModules','warn','loading\x20Modules.','ziPzX','PtsCw','stack','syncAccessibilityConfig:\x20Updated\x20browserstackConfig.accessibility\x20from\x20CLI\x20response:\x20','bootstrap:\x20failed\x20to\x20bootstrap=','SDK_CLI_START','setConfig:\x20error=','CLI\x20process\x20exited\x20with\x20code\x20','PmatM','1307370jJRSco','startChild:\x20client\x20and\x20channel\x20already\x20exist,\x20stopping\x20here','2649726LIQVuH','util','isChildConnected','XCqUN','../../helpers/performance/performance-tester.js','loadModules:\x20Loading\x20modules','dFsSO','Error\x20in\x20setupCliPath:\x20','328KkrnZx','message','browserstackConfig','fHdmk','forEach','HashedID','unConfigureModules','getAccessibilityModule','muTBS','\x20errors:','TxjiS','isClosed','setCliArgs:\x20error=','pKDBJ','getChannel','name','init','connect','errorTraceId','syncAccessibilityConfig','Unconfiguring\x20modules','./modules/testhubModule.js','GiUbQ','CLI\x20params\x20loaded:\x20','./framework/playwrightAutomationFramework.js','getBrowserstackCliConfig','AJITR','testFramework','Accessibility\x20success=','FUtaA','parse','./framework/playwrightTestFramework.js','debug','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','child_process','YbOry','162940iJRMWr','bbeRW','binSessionId','lnJkc','close','SIGKILL','TestHubModule','env','./uploadAttachmentsManager.js','syncAccessibilityConfig:\x20CLI\x20config\x20not\x20available,\x20skipping\x20sync','gpPCE','EqBWd','startMain:\x20Starting\x20main\x20process','getAutomateBuildlink','data','cliArgs','bhhWy','includes'];a63_0x34a0=function(){return _0x127bae;};return a63_0x34a0();}class BrowserstackCLI{static #instance=null;static [a63_0x4e094b(0x188)]=null;static [a63_0x4e094b(0x14e)]=null;static ['O11yHashedID']=null;['process']=null;[a63_0x4e094b(0x18f)]=![];[a63_0x4e094b(0x143)]=![];[a63_0x4e094b(0x16f)]=null;['modules']={};[a63_0x4e094b(0x164)]=null;[a63_0x4e094b(0x1e0)]=null;[a63_0x4e094b(0x20e)]=createClassLogger('BrowserstackCLI');constructor(){const _0x339b1a=a63_0x4e094b;this['initialized']=![],this[_0x339b1a(0x1c6)]={},this['cliArgs']={},this[_0x339b1a(0x14b)]={};}static['getInstance'](){return!BrowserstackCLI.#instance&&(BrowserstackCLI.#instance=new BrowserstackCLI()),BrowserstackCLI.#instance;}async[a63_0x4e094b(0x1f0)](){const _0x6e14c4=a63_0x4e094b,_0x44c9ea={};_0x44c9ea[_0x6e14c4(0x203)]=_0x6e14c4(0x197);const _0x346c9f=_0x44c9ea;if(helper[_0x6e14c4(0x180)](process[_0x6e14c4(0x174)]['BROWSERSTACK_CLI_ENABLED'])){this['logger']['info'](_0x346c9f['GzKXQ']);return;}PerformanceTester[_0x6e14c4(0x189)](PerformanceEvents['SDK_CLI_ON_BOOTSTRAP']);try{const _0x37e3d3=process[_0x6e14c4(0x174)][_0x6e14c4(0x1ac)]||null;this['setupAutomationFramework'](),this[_0x6e14c4(0x19b)]();if(_0x37e3d3){await this[_0x6e14c4(0x18c)](_0x37e3d3),PerformanceTester[_0x6e14c4(0x1f8)](PerformanceEvents[_0x6e14c4(0x1e7)]);return;}await this[_0x6e14c4(0x1d4)]();}catch(_0xcd6cb7){this[_0x6e14c4(0x20e)][_0x6e14c4(0x214)](_0x6e14c4(0x13a)+(_0xcd6cb7[_0x6e14c4(0x138)]||_0xcd6cb7)),await this['stop'](),PerformanceTester['end'](PerformanceEvents[_0x6e14c4(0x1e7)],![],util[_0x6e14c4(0x18d)](_0xcd6cb7));}}async[a63_0x4e094b(0x1d4)](){const _0x3c90e8=a63_0x4e094b,_0x4a6568={};_0x4a6568[_0x3c90e8(0x1e9)]=_0x3c90e8(0x179),_0x4a6568[_0x3c90e8(0x222)]=_0x3c90e8(0x192);const _0x59d45e=_0x4a6568;this[_0x3c90e8(0x20e)][_0x3c90e8(0x1b5)](_0x59d45e[_0x3c90e8(0x1e9)]),await this[_0x3c90e8(0x189)](),this['logger'][_0x3c90e8(0x169)](_0x59d45e[_0x3c90e8(0x222)]);const _0x2f1403=await GrpcClient[_0x3c90e8(0x1c0)]()[_0x3c90e8(0x19d)]();this[_0x3c90e8(0x18f)]=!![],this[_0x3c90e8(0x21f)](_0x2f1403);}[a63_0x4e094b(0x21f)](_0x556500){const _0x32c228=a63_0x4e094b,_0x41dea7={'gnrHB':function(_0x142f1e,_0x3ef7ac){return _0x142f1e(_0x3ef7ac);},'dFsSO':_0x32c228(0x1fa),'AJITR':function(_0x45806d,_0x4e5b02){return _0x45806d(_0x4e5b02);},'pLsGS':_0x32c228(0x15e),'LRCrR':_0x32c228(0x1dc),'aASph':_0x32c228(0x146),'XWXus':_0x32c228(0x21d),'XPRHV':_0x32c228(0x1a4),'fHdmk':_0x32c228(0x1f4),'GiUbQ':function(_0x3c3065,_0x2871ae){return _0x3c3065||_0x2871ae;},'PtsCw':function(_0x19f76e,_0x18286f){return _0x19f76e===_0x18286f;},'PWJtL':_0x32c228(0x1d3),'gpPCE':function(_0xe7c5d8,_0x163eaa){return _0xe7c5d8&&_0x163eaa;}},_0x5a3255=_0x41dea7[_0x32c228(0x20c)](require,_0x41dea7[_0x32c228(0x147)]),_0x89e9f1=_0x41dea7[_0x32c228(0x163)](require,_0x41dea7[_0x32c228(0x184)]),_0x101613=_0x41dea7['gnrHB'](require,_0x41dea7[_0x32c228(0x1b2)]);this[_0x32c228(0x20e)][_0x32c228(0x1b5)](_0x41dea7[_0x32c228(0x1e3)]),this[_0x32c228(0x16f)]=_0x556500['getBinSessionId'](),this[_0x32c228(0x20e)][_0x32c228(0x1b5)](_0x32c228(0x20d)+this['binSessionId']),this[_0x32c228(0x1cf)](_0x556500),this[_0x32c228(0x15c)]();!this[_0x32c228(0x143)]&&this[_0x32c228(0x215)](_0x556500);const _0x574af6=_0x41dea7[_0x32c228(0x1b1)],_0x56d98f=_0x41dea7[_0x32c228(0x1ec)],_0x4af9c5=_0x41dea7[_0x32c228(0x14c)],_0x36ced0=_0x556500[_0x574af6]()&&_0x556500[_0x574af6]()[_0x4af9c5](),_0x4aa40c=_0x556500[_0x56d98f]()&&_0x556500[_0x56d98f]()[_0x4af9c5](),_0xb43840=process[_0x32c228(0x174)][_0x32c228(0x16a)]&&JSON[_0x32c228(0x167)](process['env']['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);_0x41dea7[_0x32c228(0x15f)](_0x36ced0,_0x4aa40c)&&(this[_0x32c228(0x211)][_0x89e9f1[_0x32c228(0x1cc)]]=new _0x89e9f1(_0x556500['getTesthub'](),_0xb43840));_0x36ced0&&(this['modules'][_0x101613[_0x32c228(0x1cc)]]=new _0x101613(_0x556500[_0x574af6]()));if(_0x4aa40c)this[_0x32c228(0x211)][AccessibilityModule['MODULE_NAME']]=new AccessibilityModule(_0x556500[_0x56d98f]());else try{const _0x2bfc14=_0x556500[_0x56d98f](),_0x12e6d7=_0x2bfc14&&_0x41dea7[_0x32c228(0x137)](typeof _0x2bfc14[_0x4af9c5],_0x41dea7['PWJtL'])?!!_0x2bfc14[_0x4af9c5]():![];this[_0x32c228(0x20e)][_0x32c228(0x1b5)](_0x32c228(0x165)+_0x12e6d7);if(_0x41dea7[_0x32c228(0x177)](!_0x12e6d7,_0x2bfc14)){const _0x3871c0=_0x2bfc14[_0x32c228(0x21b)]?_0x2bfc14['toObject']():_0x2bfc14;_0x3871c0[_0x32c228(0x1e1)]&&Array[_0x32c228(0x1a5)](_0x3871c0[_0x32c228(0x1e1)])&&(this[_0x32c228(0x20e)][_0x32c228(0x214)]('Accessibility\x20initialization\x20failed\x20with\x20'+_0x3871c0[_0x32c228(0x1e1)][_0x32c228(0x1c3)]+_0x32c228(0x152)),_0x3871c0[_0x32c228(0x1e1)][_0x32c228(0x14d)]((_0x101673,_0x168e1b)=>{const _0x2b8409=_0x32c228;this[_0x2b8409(0x20e)][_0x2b8409(0x214)](_0x2b8409(0x1f2)+_0x101673[_0x2b8409(0x1e4)]+']\x20'+_0x101673[_0x2b8409(0x14a)]);}),_0x3871c0[_0x32c228(0x15b)]&&this[_0x32c228(0x20e)]['error'](_0x32c228(0x198)+_0x3871c0[_0x32c228(0x15b)]),_0x3871c0[_0x32c228(0x1ba)]&&this['logger'][_0x32c228(0x214)]('Error\x20Code:\x20'+_0x3871c0['code']));}}catch(_0x40652a){this[_0x32c228(0x20e)][_0x32c228(0x214)](_0x32c228(0x212)+_0x40652a);}this[_0x32c228(0x211)][_0x5a3255[_0x32c228(0x1cc)]]=new _0x5a3255(_0xb43840),this['configureModules']();}[a63_0x4e094b(0x150)](){const _0x415d80=a63_0x4e094b;return this['modules'][AccessibilityModule[_0x415d80(0x1cc)]];}async['configureModules'](){const _0x3d2798=a63_0x4e094b;for(const _0xe3c733 in this[_0x3d2798(0x211)]){const _0x2c261c=this[_0x3d2798(0x211)][_0xe3c733];await _0x2c261c['configure'](this['binSessionId'],0x0,GrpcClient[_0x3d2798(0x1c0)]()[_0x3d2798(0x196)],this[_0x3d2798(0x1c6)]);}}async[a63_0x4e094b(0x189)](){const _0x3bde3e=a63_0x4e094b,_0x136a76={'lnJkc':function(_0x1d66cf,_0x31c57c){return _0x1d66cf!==_0x31c57c;},'vSLIN':_0x3bde3e(0x1ef),'FrwiD':function(_0x4bfcc0){return _0x4bfcc0();},'FUtaA':function(_0x570932,_0x56be7b){return _0x570932(_0x56be7b);},'XCqUN':function(_0x279198,_0x41834e){return _0x279198!==_0x41834e;},'SKiVN':function(_0x440278,_0x737e6e){return _0x440278(_0x737e6e);},'npLjc':_0x3bde3e(0x17b),'gEdmU':_0x3bde3e(0x214),'utvRh':_0x3bde3e(0x171),'NgLIS':'Failed\x20to\x20get\x20CLI\x20binary\x20path.\x20CLI\x20setup\x20failed.','nOhDk':_0x3bde3e(0x20f),'LWhgS':function(_0x32d384,_0xb2b433,_0x384a4b,_0x397e8e){return _0x32d384(_0xb2b433,_0x384a4b,_0x397e8e);},'NrWsN':_0x3bde3e(0x1bb)};PerformanceTester['start'](PerformanceEvents[_0x3bde3e(0x13b)]);if(CLIUtils[_0x3bde3e(0x1de)]())return this[_0x3bde3e(0x191)](CLIUtils[_0x3bde3e(0x206)]()),PerformanceTester[_0x3bde3e(0x1f8)](PerformanceEvents[_0x3bde3e(0x13b)]),Promise[_0x3bde3e(0x1a6)]();if(this[_0x3bde3e(0x1bd)]&&this[_0x3bde3e(0x1bd)][_0x3bde3e(0x1f6)])return PerformanceTester[_0x3bde3e(0x1f8)](PerformanceEvents[_0x3bde3e(0x13b)]),Promise['resolve']();const _0x24eece=await this[_0x3bde3e(0x1b8)]();if(!_0x24eece)throw new Error(_0x136a76[_0x3bde3e(0x19f)]);const _0x5c3707=[_0x24eece,_0x136a76[_0x3bde3e(0x1c2)]];this['logger'][_0x3bde3e(0x1b5)](_0x3bde3e(0x1f7)+_0x5c3707+'\x27');const _0x468a46={};_0x468a46[_0x3bde3e(0x174)]=process[_0x3bde3e(0x174)],this[_0x3bde3e(0x1bd)]=_0x136a76[_0x3bde3e(0x1cd)](spawn,_0x5c3707[0x0],_0x5c3707[_0x3bde3e(0x1f9)](0x1),_0x468a46);if(!this[_0x3bde3e(0x1bd)][_0x3bde3e(0x1fd)])throw new Error(_0x136a76[_0x3bde3e(0x190)]);return new Promise((_0x95130,_0x392b2c)=>{const _0x3522b9=_0x3bde3e,_0x586899={};this[_0x3522b9(0x1bd)][_0x3522b9(0x1a1)]['on'](_0x136a76['npLjc'],_0x17edc7=>{const _0x34a0b9=_0x3522b9,_0x611375=_0x17edc7['toString']()[_0x34a0b9(0x1d8)]()['split']('\x0a');for(const _0x452e48 of _0x611375){if(/^(id|listen|port)=.*$/['test'](_0x452e48)){const [_0x41e7f9,_0x951f51]=_0x452e48[_0x34a0b9(0x21e)]('=',0x2);_0x136a76[_0x34a0b9(0x170)](_0x951f51,undefined)&&(_0x586899[_0x41e7f9]=_0x951f51);}if(_0x452e48[_0x34a0b9(0x185)]()[_0x34a0b9(0x17e)](_0x136a76[_0x34a0b9(0x1c5)])){this['loadCliParams'](_0x586899),PerformanceTester[_0x34a0b9(0x1f8)](PerformanceEvents[_0x34a0b9(0x13b)]),_0x136a76[_0x34a0b9(0x1e2)](_0x95130);return;}}}),this[_0x3522b9(0x1bd)][_0x3522b9(0x1c4)]['on'](_0x136a76[_0x3522b9(0x20a)],_0x4d17ee=>{const _0x4310a6=_0x3522b9;this[_0x4310a6(0x20e)][_0x4310a6(0x214)]('CLI\x20stderr:\x20'+_0x4d17ee[_0x4310a6(0x1bf)]()[_0x4310a6(0x1d8)]());}),this[_0x3522b9(0x1bd)]['on'](_0x136a76[_0x3522b9(0x1d6)],_0x2a323a=>{const _0x1dd30f=_0x3522b9;_0x586899[_0x1dd30f(0x214)]='Error\x20in\x20start:\x20'+_0x2a323a[_0x1dd30f(0x14a)],PerformanceTester[_0x1dd30f(0x1f8)](PerformanceEvents[_0x1dd30f(0x13b)],![],_0x2a323a),_0x136a76[_0x1dd30f(0x166)](_0x392b2c,new Error('Failed\x20to\x20start\x20CLI\x20process:\x20'+_0x2a323a[_0x1dd30f(0x14a)]));}),this['process']['on'](_0x136a76[_0x3522b9(0x1fb)],_0x5b2c53=>{const _0x4e2623=_0x3522b9;_0x136a76[_0x4e2623(0x144)](_0x5b2c53,0x0)&&_0x136a76['SKiVN'](_0x392b2c,new Error(_0x4e2623(0x13d)+_0x5b2c53));});});}async['stop'](_0x5afbf1=null){const _0xac4f98=a63_0x4e094b,_0x1be882={'bLTsZ':'stop:\x20CLI\x20process\x20exited','umgTX':function(_0x32d47a){return _0x32d47a();},'muTBS':_0xac4f98(0x1fe),'bhhWy':_0xac4f98(0x172),'xdbSN':_0xac4f98(0x1be),'yjdNi':function(_0x7d2b30,_0x1b9a82,_0x4c03cc){return _0x7d2b30(_0x1b9a82,_0x4c03cc);},'jSdzH':'stop:\x20CLI\x20is\x20not\x20running,\x20skipping\x20stop','TPzqI':'stop:\x20CLI\x20stop\x20triggered','izopa':function(_0x37ebdb,_0x235a98){return _0x37ebdb(_0x235a98);},'Vhdfh':_0xac4f98(0x175),'YiKhg':_0xac4f98(0x1b4),'iTxBt':'stop:\x20error\x20in\x20closing\x20channel:\x20%s','PGJJO':_0xac4f98(0x194)};if(!this[_0xac4f98(0x1af)]()){this[_0xac4f98(0x20e)][_0xac4f98(0x1b5)](_0x1be882['jSdzH']);return;}PerformanceTester[_0xac4f98(0x189)](PerformanceEvents['SDK_CLI_ON_STOP']),this[_0xac4f98(0x20e)][_0xac4f98(0x1b5)](_0x1be882[_0xac4f98(0x1a3)]);try{if(this[_0xac4f98(0x18f)]){const _0x1335b7=_0x1be882[_0xac4f98(0x1ff)](require,_0x1be882['Vhdfh']),_0xd37192=this['modules'][_0xac4f98(0x173)]?.[_0xac4f98(0x1f3)]?.['toObject']()?.[_0xac4f98(0x1a8)],_0x5a1a28=TestInfo['getTestDetails'](_0xd37192),_0x4d249a=_0x5a1a28[TestFrameworkConstants[_0xac4f98(0x19e)]]||{},_0x502dd9=await GrpcClient[_0xac4f98(0x1c0)]()[_0xac4f98(0x186)](JSON[_0xac4f98(0x1a9)](_0x4d249a),_0x5afbf1);_0x502dd9&&_0x502dd9['getSuccess']()&&_0x502dd9[_0xac4f98(0x17a)]()&&(BrowserstackCLI[_0xac4f98(0x188)]=_0x502dd9[_0xac4f98(0x17a)](),BrowserstackCLI[_0xac4f98(0x14e)]=_0x502dd9[_0xac4f98(0x19c)]()),await _0x1335b7[_0xac4f98(0x1ae)](),TestInfo['shutdown'](),buildLogger[_0xac4f98(0x1b5)]('stop:\x20stopBinSession\x20build_link='+BrowserstackCLI[_0xac4f98(0x188)]+'\x20hashed_id='+BrowserstackCLI[_0xac4f98(0x14e)]+_0xac4f98(0x200)+BrowserstackCLI[_0xac4f98(0x18b)]);}await this[_0xac4f98(0x14f)]();const _0x21c70b=GrpcClient[_0xac4f98(0x1c0)]()[_0xac4f98(0x157)]();if(_0x21c70b){try{_0x21c70b[_0xac4f98(0x171)](),this[_0xac4f98(0x20e)][_0xac4f98(0x1b5)](_0x1be882[_0xac4f98(0x20b)]);}catch(_0x2681ea){this[_0xac4f98(0x20e)]['error'](util[_0xac4f98(0x18d)](_0x1be882[_0xac4f98(0x1ab)],_0x2681ea));}await new Promise(_0xc5532c=>setTimeout(_0xc5532c,0x1388));}this['process']&&this[_0xac4f98(0x1bd)][_0xac4f98(0x1fd)]&&(this['logger'][_0xac4f98(0x1b5)](_0x1be882[_0xac4f98(0x181)]),this['process'][_0xac4f98(0x182)](),await new Promise(_0x5bc95f=>{const _0x35f8d6=_0xac4f98,_0x4369d5={'ZirNR':_0x1be882[_0x35f8d6(0x151)],'pjQwr':_0x1be882[_0x35f8d6(0x17d)],'popSL':function(_0xcb1780){const _0x36ba0d=_0x35f8d6;return _0x1be882[_0x36ba0d(0x1d9)](_0xcb1780);}};let _0x505f2=![];this['process']['on'](_0x1be882['xdbSN'],()=>{const _0x268631=_0x35f8d6;this[_0x268631(0x20e)][_0x268631(0x1b5)](_0x1be882['bLTsZ']),_0x505f2=!![],PerformanceTester[_0x268631(0x1f8)](PerformanceEvents[_0x268631(0x1b7)]),_0x1be882[_0x268631(0x1d9)](_0x5bc95f);}),_0x1be882['yjdNi'](setTimeout,()=>{const _0x165646=_0x35f8d6;!_0x505f2&&(this[_0x165646(0x20e)][_0x165646(0x220)](_0x4369d5[_0x165646(0x1d1)]),this[_0x165646(0x1bd)][_0x165646(0x182)](_0x4369d5[_0x165646(0x19a)]),PerformanceTester['end'](PerformanceEvents['SDK_CLI_ON_STOP']),_0x4369d5[_0x165646(0x199)](_0x5bc95f));},0xbb8);}));}catch(_0x641200){PerformanceTester[_0xac4f98(0x1f8)](PerformanceEvents[_0xac4f98(0x1b7)],![],util[_0xac4f98(0x18d)](_0x641200)),this[_0xac4f98(0x20e)][_0xac4f98(0x214)](_0xac4f98(0x1a0)+(_0x641200[_0xac4f98(0x138)]||_0x641200));}_0x5afbf1?this['process'][_0xac4f98(0x1c7)]=0x1:this[_0xac4f98(0x1bd)][_0xac4f98(0x1c7)]=0x0,this[_0xac4f98(0x143)]=![],this['isMainConnected']=![],process['env'][_0xac4f98(0x1b3)]=null;}async[a63_0x4e094b(0x14f)](){const _0x430fbf=a63_0x4e094b,_0x4d03a6={};_0x4d03a6[_0x430fbf(0x1c9)]=_0x430fbf(0x15d);const _0x25b76f=_0x4d03a6;this[_0x430fbf(0x20e)]['info'](_0x25b76f['ENEEO']);}[a63_0x4e094b(0x191)](_0x19c7f6){const _0x521499=a63_0x4e094b;this[_0x521499(0x20e)][_0x521499(0x1b5)](_0x521499(0x160)+JSON[_0x521499(0x1a9)](_0x19c7f6)),this['cliParams']=_0x19c7f6,GrpcClient[_0x521499(0x1c0)]()[_0x521499(0x159)](_0x19c7f6);}async[a63_0x4e094b(0x18c)](_0x200837){const _0x14dd3f=a63_0x4e094b,_0x50dc10={};_0x50dc10[_0x14dd3f(0x1da)]=_0x14dd3f(0x140);const _0x5b33f6=_0x50dc10;PerformanceTester['start'](PerformanceEvents[_0x14dd3f(0x1c1)]);try{this[_0x14dd3f(0x20e)][_0x14dd3f(0x1b5)](_0x14dd3f(0x1f5)+_0x200837);const _0x3f65c4=GrpcClient['getInstance']();if(_0x3f65c4&&_0x3f65c4[_0x14dd3f(0x1ca)]()&&_0x3f65c4['getChannel']()){this[_0x14dd3f(0x20e)][_0x14dd3f(0x1b5)](_0x5b33f6['CRDmo']);return;}GrpcClient[_0x14dd3f(0x1c0)]()[_0x14dd3f(0x15a)]();const _0x44ac20=await GrpcClient[_0x14dd3f(0x1c0)]()['connectBinSession']();this[_0x14dd3f(0x143)]=!![],this[_0x14dd3f(0x21f)](_0x44ac20),PerformanceTester[_0x14dd3f(0x1f8)](PerformanceEvents['SDK_CONNECT_BIN_SESSION']);}catch(_0x451840){PerformanceTester['end'](PerformanceEvents[_0x14dd3f(0x1c1)],![],util['format'](_0x451840)),this[_0x14dd3f(0x20e)][_0x14dd3f(0x214)](_0x14dd3f(0x207)+util[_0x14dd3f(0x18d)](_0x451840));}}static[a63_0x4e094b(0x1b9)](){const _0x194dad=a63_0x4e094b;try{return BrowserstackCLI[_0x194dad(0x1c0)]()[_0x194dad(0x1af)]();}catch(_0xd87380){return![];}}[a63_0x4e094b(0x1af)](){const _0x187d2d=a63_0x4e094b,_0x5d4a97={};_0x5d4a97[_0x187d2d(0x21a)]=function(_0x53e5fb,_0x265023){return _0x53e5fb!==_0x265023;},_0x5d4a97[_0x187d2d(0x178)]=function(_0x2046c3,_0x11b659){return _0x2046c3===_0x11b659;},_0x5d4a97[_0x187d2d(0x204)]=function(_0x2a10a6,_0x41f75f){return _0x2a10a6!==_0x41f75f;},_0x5d4a97[_0x187d2d(0x156)]=function(_0x1bd4fb,_0x56cfcc){return _0x1bd4fb!==_0x56cfcc;};const _0xd51bb3=_0x5d4a97;return CLIUtils[_0x187d2d(0x1de)]()||this[_0x187d2d(0x18f)]&&_0xd51bb3[_0x187d2d(0x21a)](this[_0x187d2d(0x1bd)],null)&&_0xd51bb3[_0x187d2d(0x178)](this[_0x187d2d(0x1bd)][_0x187d2d(0x1c7)],null)&&_0xd51bb3['RNmzY'](GrpcClient[_0x187d2d(0x1c0)]()[_0x187d2d(0x1ca)](),null)&&!GrpcClient['getInstance']()[_0x187d2d(0x157)]()[_0x187d2d(0x154)]||this['isChildConnected']&&_0xd51bb3[_0x187d2d(0x156)](GrpcClient[_0x187d2d(0x1c0)]()['getChannel'](),null)&&!GrpcClient[_0x187d2d(0x1c0)]()[_0x187d2d(0x157)]()['isClosed'];}['getBrowserstackConfig'](){const _0x2772fc=a63_0x4e094b;return this[_0x2772fc(0x14b)];}['setBrowserstackConfig'](_0x1f0f4e,_0x34da70,_0x76c755=null){const _0x37d533=a63_0x4e094b,_0x42872b={};_0x42872b[_0x37d533(0x205)]=function(_0x8498a9,_0x132393){return _0x8498a9||_0x132393;};const _0x492e2a=_0x42872b;this[_0x37d533(0x14b)]=_0x492e2a[_0x37d533(0x205)](_0x1f0f4e,{}),this['browserstackConfigPath']=_0x34da70,this[_0x37d533(0x213)]=_0x76c755,process['env'][_0x37d533(0x1e8)]=this[_0x37d533(0x14b)]?.[_0x37d533(0x216)]||![];const _0x2b3418=CLIUtils['getTestFrameworkDetail'](),_0x81b03e=CLIUtils[_0x37d533(0x18e)]();LoadTestModule['isLTSSession'](this[_0x37d533(0x14b)])&&LoadTestModule[_0x37d533(0x201)](this[_0x37d533(0x14b)]||{}),helper[_0x37d533(0x195)](process['env'][_0x37d533(0x1e8)])||!(CLI_SUPPORTED_FRAMEWORKS[_0x37d533(0x17e)](_0x2b3418[_0x37d533(0x158)]['toLowerCase']())&&CLI_SUPPORTED_FRAMEWORKS[_0x37d533(0x17e)](_0x81b03e[_0x37d533(0x158)][_0x37d533(0x185)]()))?process[_0x37d533(0x174)][_0x37d533(0x1e5)]=![]:process[_0x37d533(0x174)][_0x37d533(0x1e5)]=!![];}async[a63_0x4e094b(0x1b8)](){const _0x312af8=a63_0x4e094b,_0x31c771={};_0x31c771[_0x312af8(0x21c)]=_0x312af8(0x1d0),_0x31c771['QaVte']=_0x312af8(0x210);const _0xe25334=_0x31c771;if(!this[_0x312af8(0x1d5)])try{this[_0x312af8(0x20e)][_0x312af8(0x169)](_0xe25334[_0x312af8(0x21c)]),this[_0x312af8(0x1d5)]=await CLIUtils[_0x312af8(0x1bc)](this[_0x312af8(0x14b)]),!this[_0x312af8(0x1d5)]?this[_0x312af8(0x20e)]['error'](_0xe25334[_0x312af8(0x1b6)]):this[_0x312af8(0x20e)][_0x312af8(0x169)]('CLI\x20binary\x20path\x20resolved\x20to:\x20'+this[_0x312af8(0x1d5)]);}catch(_0x393d16){this[_0x312af8(0x20e)][_0x312af8(0x214)](_0x312af8(0x148)+_0x393d16[_0x312af8(0x14a)]),this[_0x312af8(0x1d5)]=null;}return this['SDK_CLI_BIN_PATH'];}['isCliEnabled'](){const _0x2f6a20=a63_0x4e094b;return helper[_0x2f6a20(0x195)](process[_0x2f6a20(0x174)][_0x2f6a20(0x1e5)]);}[a63_0x4e094b(0x1e6)](){return this['config'];}['setConfig'](_0x59373a){const _0x60adc0=a63_0x4e094b,_0x4b0060={};_0x4b0060[_0x60adc0(0x16c)]=_0x60adc0(0x221);const _0x1b581d=_0x4b0060;try{this[_0x60adc0(0x1c6)]=JSON[_0x60adc0(0x167)](_0x59373a['getConfig']()),this[_0x60adc0(0x20e)]['info'](_0x1b581d[_0x60adc0(0x16c)]);}catch(_0x4f8bf7){this['logger'][_0x60adc0(0x214)](_0x60adc0(0x13c)+util[_0x60adc0(0x18d)](_0x4f8bf7));}}[a63_0x4e094b(0x15c)](){const _0x3aaa9d=a63_0x4e094b,_0x222714={};_0x222714[_0x3aaa9d(0x209)]=_0x3aaa9d(0x1ea),_0x222714[_0x3aaa9d(0x1a7)]=_0x3aaa9d(0x176),_0x222714[_0x3aaa9d(0x1aa)]=_0x3aaa9d(0x187);const _0x41c920=_0x222714;try{if(!this[_0x3aaa9d(0x14b)]){this[_0x3aaa9d(0x20e)]['debug'](_0x41c920[_0x3aaa9d(0x209)]);return;}const _0x1f7b4f=this['getConfig']();if(!_0x1f7b4f){this[_0x3aaa9d(0x20e)]['debug'](_0x41c920[_0x3aaa9d(0x1a7)]);return;}!helper['isUndefined'](_0x1f7b4f[_0x3aaa9d(0x208)])&&(this[_0x3aaa9d(0x14b)][_0x3aaa9d(0x208)]=_0x1f7b4f['accessibility'],this[_0x3aaa9d(0x20e)][_0x3aaa9d(0x169)](_0x3aaa9d(0x139)+_0x1f7b4f[_0x3aaa9d(0x208)])),!helper['isUndefined'](_0x1f7b4f['accessibilityOptions'])&&(this[_0x3aaa9d(0x14b)]['accessibilityOptions']=_0x1f7b4f[_0x3aaa9d(0x1ee)],this[_0x3aaa9d(0x20e)][_0x3aaa9d(0x169)](_0x41c920[_0x3aaa9d(0x1aa)]));}catch(_0x1ed9f9){this[_0x3aaa9d(0x20e)][_0x3aaa9d(0x214)](_0x3aaa9d(0x1a2)+util['format'](_0x1ed9f9));}}[a63_0x4e094b(0x215)](_0xb4e079){const _0x5ca04f=a63_0x4e094b;try{this[_0x5ca04f(0x17c)]=_0xb4e079[_0x5ca04f(0x1d7)]()[_0x5ca04f(0x21e)](','),this[_0x5ca04f(0x20e)]['info'](_0x5ca04f(0x18a)+JSON[_0x5ca04f(0x1a9)](this[_0x5ca04f(0x17c)]));}catch(_0x34f8e7){this['logger'][_0x5ca04f(0x214)](_0x5ca04f(0x155)+util['format'](_0x34f8e7));}}[a63_0x4e094b(0x1d7)](){const _0x382d26=a63_0x4e094b;return this[_0x382d26(0x17c)];}[a63_0x4e094b(0x19b)](){const _0x35ec0f=a63_0x4e094b,_0x253df3={};_0x253df3[_0x35ec0f(0x16e)]=function(_0x2d9c8d,_0x4f3d5d){return _0x2d9c8d===_0x4f3d5d;},_0x253df3[_0x35ec0f(0x153)]=function(_0x1d1a31,_0x244818){return _0x1d1a31===_0x244818;};const _0x3936f5=_0x253df3,_0x318d41=CLIUtils['getTestFrameworkDetail']();if(_0x3936f5[_0x35ec0f(0x16e)](_0x318d41[_0x35ec0f(0x158)]['toLowerCase'](),FRAMEWORKS[_0x35ec0f(0x1db)][_0x35ec0f(0x185)]()))this[_0x35ec0f(0x164)]=new PlaywrightTestFramework([_0x318d41['name']],_0x318d41['version']);else{if(_0x3936f5[_0x35ec0f(0x16e)](_0x318d41[_0x35ec0f(0x158)][_0x35ec0f(0x185)](),FRAMEWORKS['CUCUMBER'][_0x35ec0f(0x185)]()))this['testFramework']=new CucumberTestFramework([_0x318d41[_0x35ec0f(0x158)]],_0x318d41[_0x35ec0f(0x1dd)]);else _0x3936f5[_0x35ec0f(0x153)](_0x318d41[_0x35ec0f(0x158)][_0x35ec0f(0x185)](),FRAMEWORKS[_0x35ec0f(0x1b0)][_0x35ec0f(0x185)]())&&(this[_0x35ec0f(0x164)]=new JestTestFramework([_0x318d41[_0x35ec0f(0x158)]],_0x318d41['version']));}}['setupAutomationFramework'](){const _0x43f5a4=a63_0x4e094b,_0x8aa33={};_0x8aa33[_0x43f5a4(0x13e)]=function(_0x3f5228,_0x751e77){return _0x3f5228===_0x751e77;};const _0x50d608=_0x8aa33,_0x53206c=CLIUtils[_0x43f5a4(0x18e)]();_0x50d608[_0x43f5a4(0x13e)](_0x53206c[_0x43f5a4(0x158)][_0x43f5a4(0x185)](),FRAMEWORKS[_0x43f5a4(0x1db)][_0x43f5a4(0x185)]())&&(this[_0x43f5a4(0x1e0)]=new PlaywrightAutomationFramework(_0x53206c[_0x43f5a4(0x158)],_0x53206c[_0x43f5a4(0x1dd)]));}[a63_0x4e094b(0x193)](){const _0x14a1bd=a63_0x4e094b;return this[_0x14a1bd(0x164)];}[a63_0x4e094b(0x1ad)](){const _0x252a26=a63_0x4e094b;return this[_0x252a26(0x1e0)];}[a63_0x4e094b(0x162)](){const _0xd8863a=a63_0x4e094b;return this[_0xd8863a(0x213)];}['getBrowserstackConfigPath'](){const _0x3e1448=a63_0x4e094b;return this[_0x3e1448(0x1eb)];}}module['exports']=BrowserstackCLI;
|
package/src/bin/v2/cliUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a64_0x87aa47=a64_0x4d12;(function(_0x515dc6,_0x4c98ec){const _0x36b868=a64_0x4d12,_0x4ad0d2=_0x515dc6();while(!![]){try{const _0x25e9f7=parseInt(_0x36b868(0x14f))/0x1*(-parseInt(_0x36b868(0x19c))/0x2)+parseInt(_0x36b868(0x158))/0x3*(-parseInt(_0x36b868(0x1d1))/0x4)+-parseInt(_0x36b868(0x17d))/0x5*(parseInt(_0x36b868(0x192))/0x6)+parseInt(_0x36b868(0x20d))/0x7+-parseInt(_0x36b868(0x1eb))/0x8+-parseInt(_0x36b868(0x1de))/0x9*(parseInt(_0x36b868(0x193))/0xa)+parseInt(_0x36b868(0x17b))/0xb*(parseInt(_0x36b868(0x1d4))/0xc);if(_0x25e9f7===_0x4c98ec)break;else _0x4ad0d2['push'](_0x4ad0d2['shift']());}catch(_0x4307ec){_0x4ad0d2['push'](_0x4ad0d2['shift']());}}}(a64_0x2333,0x25dce));const fs=require('fs'),os=require('os'),url=require(a64_0x87aa47(0x1f0)),path=require(a64_0x87aa47(0x1b3)),{exec}=require(a64_0x87aa47(0x1c4)),{https}=require(a64_0x87aa47(0x1dd)),yauzl=require('yauzl'),util=require(a64_0x87aa47(0x198)),{getFrameworkVersion}=require(a64_0x87aa47(0x1f5)),{threadId}=require(a64_0x87aa47(0x202)),PerformanceTester=require(a64_0x87aa47(0x150)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a64_0x87aa47(0x153)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a64_0x87aa47(0x188)),{createClassLogger}=require(a64_0x87aa47(0x173)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a64_0x87aa47(0x17e)),TestFrameworkState=require(a64_0x87aa47(0x1a4)),AutomationFrameworkState=require(a64_0x87aa47(0x1f7)),TestFrameworkConstants=require(a64_0x87aa47(0x15f)),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a64_0x87aa47(0x1db));function a64_0x2333(){const _0x5776c3=['xrKZT','getAutomationFrameworkDetail','isFile','2mPxtNB','../../helpers/performance/performance-tester.js','skipSessionStatus','getSdkLanguage','../../helpers/helper','fPTDY','SDK_CLI_CHECK_UPDATE','Binary\x20is\x20busy:\x20','reduce','3laXoll','oSPQZ','Development\x20Cli\x20Path:\x20','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','join','LBJgk','ywEgT','./framework/constants/testFrameworkConstants.js','filePath','openSync','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','nWQqR','Setting\x20required\x20permissions\x20to\x20','isArray','zCszc','BROWSERSTACK_CLI_ENV','testContextOptions','OaePS','shouldSkipSessionStatus','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','NucDk','arch','.sock','cdoTo','debug','FWpct','code','../../helpers/classLogger.js','automationFrameworkDetail','SHELL_EXECUTE_ERROR',',\x20automationFramework=','parse','skipSessionName','info','downloaded_file.zip','7898682PsQqqv','SDK_CLI_BIN_PATH','235DGmrsV','./state/hookState.js','Folder\x20does\x20not\x20exist:\x20','error','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','getCurrentInstanceName','HPTqp','downloadLatestBinary','message','warn','isBinaryBusy','../utils/constants','AkbVF','CFIhy','format','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','getExistingCliPath','cgxCt','csRxn','jSTHS','fkTNf','29136kliAzD','1011470HPAwxU','Failed\x20to\x20delete\x20zip\x20file:\x20','GhPGe','GFuIm','runShellCommand','util','dmmag','0755','Xdqbl','452dugzmc','split','isDirectory','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','Resolved\x20binary\x20path:\x20','mergeObject','fileName','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','./state/testFrameworkState.js','Configuring\x20Cli\x20path.','startsWith','miaUu','once','map','xvUut','statSync','jIcbs','osadu','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','homedir','cRhvC','open','openReadStream','path','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','UjVlD','BROWSERSTACK_BINARY_URL','.browserstack','getSdkVersion','mtime','rPsDt','response\x20','existsSync','end','chmod','basename','exports','0|1|2|4|3','Downloading\x20SDK\x20binary\x20from:\x20','Current\x20CLI\x20Path\x20Found:\x20','child_process','data','trim','includes','getCliDir','entry','cwd','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','ziGAe','xKRIb','sNOeG','node','jpBUH','516980gOBoFg','QITWP','HOOK_REGEX','12xdldrO','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','EOYYW','close','wvrWF','ZwHLU','development','../utils/apiUtilityMethods.js','platform','follow-redirects','18AZBxKC','yskRZ','testFrameworkDetail','qKVOL','YlFPB','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','yyEyW','ZRdSc','stringify','CBBSp','erIFt','Error\x20while\x20reading\x20CLI\x20path:\x20','KyaDC','1274360OxpfAd','cli_version','SQPod','setFrameworkDetail','test','url','downloadFileStream','closeSync','getCLIParamsForDevEnv','readEntry','../../helpers/test-observability/utils.js','checkAndUpdateCli','./state/automationFrameworkState.js','readdirSync','Rzamv','pbiJG','yyauq','tmpdir','unlink','unix:/tmp/sdk-platform-','pipe','mkssk','createWriteStream','worker_threads','getWritableDir','../../../package.json','JcYpl','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','setupCliPath','getHookRegistryKey','cli','matchHookRegex','Binary\x20file\x20is\x20currently\x20in\x20use,\x20skipping\x20download\x20and\x20continuing\x20with\x20existing\x20binary:\x20','ENtPt','1095794dgbpsv','KOUmj','HJUqu','CLI\x20version\x20found\x20despite\x20error:\x20\x22','requestToUpdateCLI','env','lWASM','SDK_CLI_DOWNLOAD','getTestFrameworkDetail','ArAtG','entries','BROWSERSTACK_FILES_DIR'];a64_0x2333=function(){return _0x5776c3;};return a64_0x2333();}function a64_0x4d12(_0x581022,_0x10b214){const _0x2333ed=a64_0x2333();return a64_0x4d12=function(_0x4d12f5,_0x19f834){_0x4d12f5=_0x4d12f5-0x145;let _0x5570e3=_0x2333ed[_0x4d12f5];return _0x5570e3;},a64_0x4d12(_0x581022,_0x10b214);}class CLIUtils{[a64_0x87aa47(0x174)]={};[a64_0x87aa47(0x1e0)]={};static['isDevelopmentEnv'](){const _0x33615b=a64_0x87aa47,_0x54a507={};_0x54a507[_0x33615b(0x1b0)]=function(_0x18522d,_0x2058b4){return _0x18522d===_0x2058b4;},_0x54a507[_0x33615b(0x18f)]=_0x33615b(0x1da);const _0x1dec4d=_0x54a507;return _0x1dec4d[_0x33615b(0x1b0)](process[_0x33615b(0x145)][_0x33615b(0x167)],_0x1dec4d[_0x33615b(0x18f)]);}static[a64_0x87aa47(0x1f3)](){const _0x2f706b=a64_0x87aa47,_0xf7776e={};return _0xf7776e['id']=process[_0x2f706b(0x145)][_0x2f706b(0x167)],_0xf7776e['listen']=_0x2f706b(0x1fe)+process[_0x2f706b(0x145)][_0x2f706b(0x167)]+_0x2f706b(0x16e),_0xf7776e;}static[a64_0x87aa47(0x1b8)](){const _0x122787=a64_0x87aa47,_0xdadd35={'ahCSw':function(_0x3cca09,_0x1083dc){return _0x3cca09(_0x1083dc);},'nWQqR':_0x122787(0x204)};return _0xdadd35['ahCSw'](require,_0xdadd35[_0x122787(0x163)])['version'];}static[a64_0x87aa47(0x152)](){const _0x3487da=a64_0x87aa47,_0x40f6a8={};_0x40f6a8['pbiJG']=_0x3487da(0x1cf);const _0x17f185=_0x40f6a8;return _0x17f185[_0x3487da(0x1fa)];}static async[a64_0x87aa47(0x207)](_0x575720){const _0x53fec8=a64_0x87aa47,_0x22e3d8={'dmmag':_0x53fec8(0x1a5),'yyEyW':function(_0x40243c,_0x22c276){return _0x40243c(_0x22c276);},'HPTqp':_0x53fec8(0x1d5)};logger[_0x53fec8(0x170)](_0x22e3d8[_0x53fec8(0x199)]);const _0x1545fd=process[_0x53fec8(0x145)][_0x53fec8(0x17c)];if(!_0x22e3d8[_0x53fec8(0x1e4)](isNullOrEmpty,_0x1545fd))return logger[_0x53fec8(0x170)](_0x53fec8(0x15a)+_0x1545fd),_0x1545fd;try{const _0x2dca51=this[_0x53fec8(0x1c8)]();if(_0x22e3d8[_0x53fec8(0x1e4)](isNullOrEmpty,_0x2dca51))throw new Error(_0x22e3d8[_0x53fec8(0x183)]);const _0x9e3d46=this[_0x53fec8(0x18d)](_0x2dca51),_0x34e27e=await this[_0x53fec8(0x1f6)](_0x9e3d46,_0x2dca51,_0x575720);return logger[_0x53fec8(0x170)](_0x53fec8(0x1a0)+_0x34e27e),_0x34e27e;}catch(_0x1e102e){logger['debug']('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x53fec8(0x18b)](_0x1e102e));}return null;}static async[a64_0x87aa47(0x1f6)](_0x5ec90b,_0x1b519d,_0xc4e3b7){const _0xa72916=a64_0x87aa47,_0x3ca69e={'ziGAe':function(_0x42fa1e){return _0x42fa1e();},'xKRIb':function(_0x35aeb3,_0x5ee8fe){return _0x35aeb3(_0x5ee8fe);},'CFIhy':function(_0x4d6b25,_0x446778,_0x576a16){return _0x4d6b25(_0x446778,_0x576a16);},'OaePS':'data','UjVlD':'url'};PerformanceTester['start'](PerformanceEvents[_0xa72916(0x155)]),logger[_0xa72916(0x179)](_0xa72916(0x1c3)+_0x5ec90b);const _0x1f4116=_0x3ca69e[_0xa72916(0x1cc)](getHostInfo),_0x4d742a={'sdk_version':CLIUtils['getSdkVersion'](),'os':_0x1f4116[_0xa72916(0x1dc)],'os_arch':_0x1f4116[_0xa72916(0x16d)],'cli_version':'0','sdk_language':this[_0xa72916(0x152)]()};!_0x3ca69e[_0xa72916(0x1cd)](isNullOrEmpty,_0x5ec90b)&&(_0x4d742a['cli_version']=await this[_0xa72916(0x197)](_0x5ec90b+'\x20version'));const _0xcbf5b=await this[_0xa72916(0x211)](_0x4d742a,_0xc4e3b7);process[_0xa72916(0x145)][_0xa72916(0x1b6)]&&(logger[_0xa72916(0x179)](_0xa72916(0x1e3)+process['env'][_0xa72916(0x1b6)]),_0xcbf5b[_0xa72916(0x1c5)]['url']=process['env']['BROWSERSTACK_BINARY_URL']);if(_0x3ca69e[_0xa72916(0x18a)](nestedKeyValue,_0xcbf5b,[_0x3ca69e[_0xa72916(0x169)],_0x3ca69e[_0xa72916(0x1b5)]])){logger[_0xa72916(0x170)](_0xa72916(0x206)+_0x4d742a[_0xa72916(0x1ec)]);if(!_0x3ca69e[_0xa72916(0x1cd)](isNullOrEmpty,_0x5ec90b)&&this[_0xa72916(0x187)](_0x5ec90b))return logger[_0xa72916(0x186)](_0xa72916(0x1a3)+_0x5ec90b),PerformanceTester[_0xa72916(0x1bd)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x5ec90b;const _0x30e5cb=await this[_0xa72916(0x184)](_0x3ca69e[_0xa72916(0x18a)](nestedKeyValue,_0xcbf5b,[_0x3ca69e['OaePS'],_0x3ca69e[_0xa72916(0x1b5)]]),_0x1b519d);return PerformanceTester[_0xa72916(0x1bd)](PerformanceEvents[_0xa72916(0x155)]),_0x30e5cb;}return PerformanceTester[_0xa72916(0x1bd)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x5ec90b;}static[a64_0x87aa47(0x1c8)](){const _0xfb7541=a64_0x87aa47,_0x517104={'Rzamv':function(_0x58715e,_0x14f6e1){return _0x58715e(_0x14f6e1);},'ZsGXS':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','mkssk':_0xfb7541(0x209)},_0x4be0d3=this[_0xfb7541(0x203)]();try{if(_0x517104[_0xfb7541(0x1f9)](isNullOrEmpty,_0x4be0d3))throw new Error(_0x517104['ZsGXS']);const _0x582d1b=path[_0xfb7541(0x15c)](_0x4be0d3,_0x517104[_0xfb7541(0x200)]);return!fs[_0xfb7541(0x1bc)](_0x582d1b)&&_0x517104['Rzamv'](createDir,_0x582d1b),_0x582d1b;}catch(_0x3e5cbb){logger[_0xfb7541(0x170)](_0xfb7541(0x181)+util['format'](_0x3e5cbb));}}static[a64_0x87aa47(0x203)](){const _0x2ee5e8=a64_0x87aa47,_0x1ec88c={'GhPGe':_0x2ee5e8(0x1b7),'MeYYl':function(_0x19bdce,_0x4988c7){return _0x19bdce(_0x4988c7);},'yyauq':function(_0x5ea509,_0x5998b2){return _0x5ea509(_0x5998b2);},'jSTHS':function(_0x3c7bec,_0x3c7760){return _0x3c7bec(_0x3c7760);},'gPqTS':function(_0x286c39,_0x40cf26){return _0x286c39(_0x40cf26);},'KyaDC':function(_0x2bbde6,_0x2c533c){return _0x2bbde6(_0x2c533c);}},_0xea4971=[process[_0x2ee5e8(0x145)][_0x2ee5e8(0x14b)],path[_0x2ee5e8(0x15c)](os[_0x2ee5e8(0x1af)](),_0x1ec88c[_0x2ee5e8(0x195)]),path['join'](os[_0x2ee5e8(0x1fc)](),_0x1ec88c[_0x2ee5e8(0x195)])];for(const _0x484d16 of _0xea4971){if(_0x1ec88c['MeYYl'](isNullOrEmpty,_0x484d16))continue;try{if(fs[_0x2ee5e8(0x1bc)](_0x484d16)){logger[_0x2ee5e8(0x170)]('Folder\x20'+_0x484d16+'\x20already\x20exists');if(!_0x1ec88c[_0x2ee5e8(0x1fb)](isModifiable,_0x484d16)){logger[_0x2ee5e8(0x170)](_0x2ee5e8(0x164)+_0x484d16);const _0x5d8de0=_0x1ec88c[_0x2ee5e8(0x190)](setReadWriteExecuteAccess,_0x484d16);if(!_0x1ec88c[_0x2ee5e8(0x190)](isTrue,_0x5d8de0)){logger[_0x2ee5e8(0x186)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x484d16);continue;}}}else{logger[_0x2ee5e8(0x170)](_0x2ee5e8(0x17f)+_0x484d16),_0x1ec88c['gPqTS'](createDir,_0x484d16),logger[_0x2ee5e8(0x170)](_0x2ee5e8(0x164)+_0x484d16);const _0x1e6159=_0x1ec88c['KyaDC'](setReadWriteExecuteAccess,_0x484d16);!_0x1ec88c[_0x2ee5e8(0x1ea)](isTrue,_0x1e6159)&&logger[_0x2ee5e8(0x186)](_0x2ee5e8(0x1ae)+_0x484d16);}return _0x484d16;}catch(_0x2fcb8a){logger[_0x2ee5e8(0x180)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util['format'](_0x2fcb8a));}}return null;}static['getExistingCliPath'](_0x427357){const _0x1e8c7e=a64_0x87aa47,_0x3514cc={};_0x3514cc[_0x1e8c7e(0x1e8)]=function(_0xfac8eb,_0xc1f415){return _0xfac8eb>_0xc1f415;};const _0x3903e9=_0x3514cc;try{if(!fs[_0x1e8c7e(0x1bc)](_0x427357)||!fs[_0x1e8c7e(0x1ab)](_0x427357)[_0x1e8c7e(0x19e)]())return'';const _0x3778e6=fs[_0x1e8c7e(0x1f8)](_0x427357)['map'](_0x1ea2a8=>path[_0x1e8c7e(0x15c)](_0x427357,_0x1ea2a8))['filter'](_0x5a1964=>fs[_0x1e8c7e(0x1ab)](_0x5a1964)[_0x1e8c7e(0x14e)]()&&path[_0x1e8c7e(0x1bf)](_0x5a1964)[_0x1e8c7e(0x1a6)]('binary-'));if(_0x3903e9[_0x1e8c7e(0x1e8)](_0x3778e6['length'],0x0)){const _0x36b3f0=_0x3778e6[_0x1e8c7e(0x1a9)](_0x3ea1d2=>({'filePath':_0x3ea1d2,'mtime':fs[_0x1e8c7e(0x1ab)](_0x3ea1d2)[_0x1e8c7e(0x1b9)]}))[_0x1e8c7e(0x157)]((_0x349505,_0x36e1da)=>{const _0x56a79d=_0x1e8c7e;if(!_0x349505||!_0x349505[_0x56a79d(0x1b9)])return _0x36e1da;if(_0x3903e9['erIFt'](_0x36e1da[_0x56a79d(0x1b9)],_0x349505['mtime']))return _0x36e1da;return _0x349505;},{});return _0x36b3f0?_0x36b3f0[_0x1e8c7e(0x160)]:'';}return'';}catch(_0x13dee8){return logger[_0x1e8c7e(0x180)](_0x1e8c7e(0x1e9)+util['format'](_0x13dee8)),'';}}static [a64_0x87aa47(0x211)]=async(_0x1e02fc,_0x3514d6)=>{const _0x3bc1f7=a64_0x87aa47,_0x1f0349={'UaHHM':function(_0x4fed7f,_0x3bc5aa,_0x57e1c9,_0x2c1ea5,_0xaf4189){return _0x4fed7f(_0x3bc5aa,_0x57e1c9,_0x2c1ea5,_0xaf4189);},'ijdTG':'GET'},_0x1b44da={};_0x1b44da['qs']=_0x1e02fc;const _0x52b822=await _0x1f0349['UaHHM'](nodeRequest,_0x1f0349['ijdTG'],UPDATED_CLI_ENDPOINT,_0x1b44da,_0x3514d6);return logger[_0x3bc1f7(0x170)](_0x3bc1f7(0x1bb)+JSON[_0x3bc1f7(0x1e6)](_0x52b822)),_0x52b822;};static[a64_0x87aa47(0x187)](_0x5d8ed3){const _0x306c81=a64_0x87aa47;try{const _0x51444b=fs[_0x306c81(0x161)](_0x5d8ed3,'r+');return fs[_0x306c81(0x1f2)](_0x51444b),![];}catch(_0x449a55){if(BINARY_BUSY_ERROR_CODES[_0x306c81(0x1c7)](_0x449a55[_0x306c81(0x172)]))return logger[_0x306c81(0x170)](_0x306c81(0x156)+_0x5d8ed3),!![];return logger[_0x306c81(0x170)](_0x306c81(0x162)+_0x449a55[_0x306c81(0x185)]),![];}}static[a64_0x87aa47(0x197)](_0xd853b6,_0x2abe9d=''){const _0x300bc4=a64_0x87aa47,_0x4bf085={'ZRdSc':'version','Vchqn':function(_0x33392f,_0x4b2cce){return _0x33392f(_0x4b2cce);},'LBJgk':function(_0x542252,_0x239996){return _0x542252(_0x239996);},'jpBUH':_0x300bc4(0x175),'DMRVL':function(_0x436595,_0x347e6f){return _0x436595(_0x347e6f);},'fPTDY':function(_0x56d40b,_0x5c885b){return _0x56d40b(_0x5c885b);},'ENtPt':function(_0x10fba4,_0x4e7337,_0x1104a8,_0x192974){return _0x10fba4(_0x4e7337,_0x1104a8,_0x192974);},'cgxCt':_0x300bc4(0x180)};return new Promise((_0x33b012,_0x30e789)=>{const _0x4ce426=_0x300bc4,_0x35a1af={};_0x35a1af[_0x4ce426(0x1ca)]=_0x2abe9d,_0x35a1af['timeout']=0x1388;const _0x24c3b7=_0x4bf085[_0x4ce426(0x20c)](exec,_0xd853b6,_0x35a1af,(_0x46fa9a,_0x41e49f,_0x208503)=>{const _0x17ecef=_0x4ce426;if(_0x46fa9a){if(_0xd853b6[_0x17ecef(0x1c7)](_0x4bf085[_0x17ecef(0x1e5)])&&(_0x41e49f[_0x17ecef(0x1c6)]()||_0x208503[_0x17ecef(0x1c6)]())){const _0x206147=_0x41e49f[_0x17ecef(0x1c6)]()||_0x208503['trim']();logger[_0x17ecef(0x170)](_0x17ecef(0x210)+_0x206147+'\x22'),_0x4bf085['Vchqn'](_0x33b012,_0x206147);}else _0x4bf085[_0x17ecef(0x15d)](_0x33b012,_0x208503[_0x17ecef(0x1c6)]()||_0x4bf085[_0x17ecef(0x1d0)]);}else logger[_0x17ecef(0x170)]('Resolving\x20with\x20stdout:\x20\x22'+_0x41e49f[_0x17ecef(0x1c6)]()+'\x22'),_0x4bf085['DMRVL'](_0x33b012,_0x41e49f[_0x17ecef(0x1c6)]());});_0x24c3b7['on'](_0x4bf085[_0x4ce426(0x18e)],()=>{const _0x5daf19=_0x4ce426;_0x4bf085[_0x5daf19(0x154)](_0x33b012,_0x4bf085['jpBUH']);});});}static [a64_0x87aa47(0x184)]=async(_0x1ae504,_0x3c6df1)=>{const _0x54a1be=a64_0x87aa47,_0x5baf20={'PdhDZ':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','rPsDt':function(_0x1b79c1,_0x1b7b44){return _0x1b79c1(_0x1b7b44);},'ywEgT':_0x54a1be(0x180),'qKVOL':_0x54a1be(0x19f),'EOYYW':function(_0x3c9af2,_0x45404e){return _0x3c9af2(_0x45404e);},'Neeyn':_0x54a1be(0x17a)};PerformanceTester['start'](PerformanceEvents[_0x54a1be(0x147)]),logger['debug'](_0x54a1be(0x1c2)+_0x1ae504);try{const _0x4bccf4=url[_0x54a1be(0x177)](_0x1ae504),_0x26f703=path[_0x54a1be(0x15c)](_0x3c6df1,_0x5baf20['Neeyn']),_0x27d4f6=fs[_0x54a1be(0x201)](_0x26f703);return new Promise((_0x569d2d,_0x138c85)=>{const _0x54b251=_0x54a1be,_0x399b87={'wvrWF':_0x5baf20[_0x54b251(0x1e1)],'Xdqbl':function(_0x42dbbe,_0x36d3b7){const _0x239231=_0x54b251;return _0x5baf20[_0x239231(0x1d6)](_0x42dbbe,_0x36d3b7);},'NucDk':function(_0x298114,_0x16ec12){const _0x1c758c=_0x54b251;return _0x5baf20[_0x1c758c(0x1ba)](_0x298114,_0x16ec12);}};https['get'](_0x4bccf4,function(_0x57f5da){const _0x3c6250=_0x54b251,_0x337b0b={'oSPQZ':_0x5baf20['PdhDZ'],'JcYpl':function(_0x45ca69,_0x345ee1){return _0x5baf20['rPsDt'](_0x45ca69,_0x345ee1);}},_0x57101c=null;_0x57f5da[_0x3c6250(0x1ff)](_0x27d4f6),_0x57f5da['on'](_0x5baf20[_0x3c6250(0x15e)],function(_0x22ab8f){const _0x3e5871=_0x3c6250;logger['error'](util[_0x3e5871(0x18b)](_0x337b0b[_0x3e5871(0x159)],_0x22ab8f)),PerformanceTester['end'](PerformanceEvents[_0x3e5871(0x147)],![],util[_0x3e5871(0x18b)](_0x22ab8f)),_0x337b0b[_0x3e5871(0x205)](_0x138c85,_0x22ab8f);}),_0x27d4f6['on'](_0x5baf20[_0x3c6250(0x15e)],function(_0x4a99b1){const _0x4f0dba=_0x3c6250;logger['error'](util[_0x4f0dba(0x18b)](_0x399b87[_0x4f0dba(0x1d8)],_0x4a99b1)),PerformanceTester[_0x4f0dba(0x1bd)](PerformanceEvents[_0x4f0dba(0x147)],![],util[_0x4f0dba(0x18b)](_0x4a99b1)),_0x399b87[_0x4f0dba(0x19b)](_0x138c85,_0x4a99b1);}),CLIUtils[_0x3c6250(0x1f1)](_0x27d4f6,_0x57101c,_0x26f703,_0x3c6df1,_0x569d2d,_0x138c85),PerformanceTester[_0x3c6250(0x1bd)](PerformanceEvents['SDK_CLI_DOWNLOAD']);})['on'](_0x5baf20[_0x54b251(0x15e)],function(_0x2800fe){const _0x40564f=_0x54b251;logger['error'](_0x40564f(0x1b4)+util['format'](_0x2800fe)),PerformanceTester[_0x40564f(0x1bd)](PerformanceEvents[_0x40564f(0x147)],![],util[_0x40564f(0x18b)](_0x2800fe)),_0x399b87[_0x40564f(0x16c)](_0x138c85,_0x2800fe);});});}catch(_0x51dd91){PerformanceTester[_0x54a1be(0x1bd)](PerformanceEvents[_0x54a1be(0x147)],![],util[_0x54a1be(0x18b)](_0x51dd91)),logger['debug'](_0x54a1be(0x1cb)+util[_0x54a1be(0x18b)](_0x51dd91));}};static[a64_0x87aa47(0x1f1)](_0xf46b5a,_0x1a4007,_0x2b43b9,_0x1a7c36,_0x29f11d,_0x39ee01){const _0x2d3ab5=a64_0x87aa47,_0x669217={'QITWP':function(_0x145461,_0x54cd1e){return _0x145461(_0x54cd1e);},'SQPod':_0x2d3ab5(0x1bd),'SMdlX':_0x2d3ab5(0x180),'cdoTo':function(_0x16dba4,_0xb4e8bf){return _0x16dba4===_0xb4e8bf;},'rKiPs':function(_0x1779ba,_0x23dcf9){return _0x1779ba(_0x23dcf9);},'YlFPB':_0x2d3ab5(0x19a),'yskRZ':function(_0x4d9782,_0x4cbe31){return _0x4d9782(_0x4cbe31);},'miaUu':_0x2d3ab5(0x1c9),'HJUqu':_0x2d3ab5(0x1d7)};_0xf46b5a['on'](_0x669217[_0x2d3ab5(0x20f)],function(){const _0x307f05=_0x2d3ab5,_0x2d6ac5={'ArAtG':function(_0x695cb4,_0x5a1d97){const _0x2585b6=a64_0x4d12;return _0x669217[_0x2585b6(0x1d2)](_0x695cb4,_0x5a1d97);},'lRcig':_0x669217[_0x307f05(0x1ed)],'zCszc':function(_0x371563,_0x33a053){const _0x5b2020=_0x307f05;return _0x669217[_0x5b2020(0x1d2)](_0x371563,_0x33a053);},'sNOeG':_0x669217['SMdlX'],'KOUmj':function(_0x228a21,_0x3054ca){const _0x59d5ed=_0x307f05;return _0x669217[_0x59d5ed(0x16f)](_0x228a21,_0x3054ca);},'xvUut':function(_0x36b047,_0xda6510){return _0x669217['rKiPs'](_0x36b047,_0xda6510);},'PlBAt':_0x669217[_0x307f05(0x1e2)],'CBBSp':function(_0x33c644,_0x21d0e5){const _0x5cfaf0=_0x307f05;return _0x669217[_0x5cfaf0(0x1df)](_0x33c644,_0x21d0e5);},'QIpTe':function(_0x44780f,_0x3bc08e){const _0x21a539=_0x307f05;return _0x669217[_0x21a539(0x1df)](_0x44780f,_0x3bc08e);},'lWASM':_0x669217[_0x307f05(0x1a7)]},_0x266a4={};_0x266a4['lazyEntries']=!![],yauzl[_0x307f05(0x1b1)](_0x2b43b9,_0x266a4,function(_0x593142,_0x1b082b){const _0x4fd2da=_0x307f05,_0x168cb0={'HxkQc':function(_0x16ee5f,_0x3677c7){const _0x4cae14=a64_0x4d12;return _0x2d6ac5[_0x4cae14(0x1e7)](_0x16ee5f,_0x3677c7);},'AkbVF':function(_0x40d198,_0x4d3e24){return _0x2d6ac5['zCszc'](_0x40d198,_0x4d3e24);},'hOeFs':function(_0x3984b7,_0x5981da){return _0x2d6ac5['QIpTe'](_0x3984b7,_0x5981da);}};_0x593142&&_0x2d6ac5[_0x4fd2da(0x1aa)](_0x39ee01,_0x593142),_0x1b082b[_0x4fd2da(0x1f4)](),_0x1b082b['on'](_0x2d6ac5[_0x4fd2da(0x146)],_0x22b780=>{const _0x297eaf=_0x4fd2da,_0x5a9042={'Nqtxu':function(_0x5f0927,_0x168c9d){const _0x37562e=a64_0x4d12;return _0x2d6ac5[_0x37562e(0x149)](_0x5f0927,_0x168c9d);},'EAdBf':_0x2d6ac5['lRcig']};!_0x1a4007&&(_0x1a4007=_0x22b780[_0x297eaf(0x1a2)]);if(/\/$/[_0x297eaf(0x1ef)](_0x22b780[_0x297eaf(0x1a2)]))_0x1b082b[_0x297eaf(0x1f4)]();else{const _0x1919d9=_0x22b780[_0x297eaf(0x1a2)],_0xd936a1=path['join'](_0x1a7c36,_0x1919d9);let _0x532946;try{_0x532946=fs[_0x297eaf(0x201)](_0xd936a1);}catch(_0x2f6078){if(BINARY_BUSY_ERROR_CODES[_0x297eaf(0x1c7)](_0x2f6078[_0x297eaf(0x172)])){logger[_0x297eaf(0x186)](_0x297eaf(0x20b)+_0x1919d9),fs[_0x297eaf(0x1fd)](_0x2b43b9,_0x1f68da=>{const _0x31fec0=_0x297eaf;_0x1f68da&&logger[_0x31fec0(0x186)](_0x31fec0(0x194)+_0x2b43b9);}),_0x2d6ac5[_0x297eaf(0x149)](_0x29f11d,_0xd936a1);return;}_0x2d6ac5[_0x297eaf(0x166)](_0x39ee01,_0x2f6078);return;}_0x532946['on'](_0x2d6ac5[_0x297eaf(0x1ce)],_0x1eb734=>{const _0x52903f=_0x297eaf;BINARY_BUSY_ERROR_CODES[_0x52903f(0x1c7)](_0x1eb734[_0x52903f(0x172)])?(logger[_0x52903f(0x186)]('Binary\x20file\x20became\x20busy\x20during\x20write,\x20continuing\x20with\x20existing\x20binary:\x20'+_0x1eb734[_0x52903f(0x185)]),_0x532946[_0x52903f(0x1d7)](),fs[_0x52903f(0x1fd)](_0x2b43b9,_0x412174=>{_0x412174&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x2b43b9);}),_0x168cb0['HxkQc'](_0x29f11d,_0xd936a1)):_0x168cb0[_0x52903f(0x189)](_0x39ee01,_0x1eb734);}),_0x1b082b[_0x297eaf(0x1b2)](_0x22b780,function(_0x2ea011,_0x3eb56f){const _0x187151=_0x297eaf;_0x2ea011&&_0x5a9042['Nqtxu'](_0x39ee01,_0x2ea011),_0x3eb56f['on'](_0x5a9042['EAdBf'],function(){const _0x49a98f=a64_0x4d12;_0x532946[_0x49a98f(0x1d7)](),_0x1b082b[_0x49a98f(0x1f4)]();}),_0x3eb56f[_0x187151(0x1ff)](_0x532946);}),_0x2d6ac5[_0x297eaf(0x20e)](_0x22b780[_0x297eaf(0x1a2)],_0x1a4007)&&_0x1b082b[_0x297eaf(0x1d7)]();}}),_0x1b082b['on'](_0x2d6ac5[_0x4fd2da(0x1ce)],_0x59188b=>{_0x168cb0['hOeFs'](_0x39ee01,_0x59188b);}),_0x1b082b[_0x4fd2da(0x1a8)](_0x2d6ac5['lRcig'],()=>{const _0x266809=_0x4fd2da,_0x697a50={'xrKZT':function(_0xdf216c,_0x1b1708){const _0x198dac=a64_0x4d12;return _0x2d6ac5[_0x198dac(0x1aa)](_0xdf216c,_0x1b1708);}};fs['unlink'](_0x2b43b9,_0x3538f4=>{const _0x551506=a64_0x4d12;_0x3538f4&&logger[_0x551506(0x186)](_0x551506(0x194)+_0x2b43b9);}),fs[_0x266809(0x1be)](path[_0x266809(0x15c)](_0x1a7c36,_0x1a4007),_0x2d6ac5['PlBAt'],function(_0x460578){const _0x507ce6=_0x266809;_0x460578&&_0x697a50[_0x507ce6(0x14c)](_0x39ee01,_0x460578),_0x697a50[_0x507ce6(0x14c)](_0x29f11d,path[_0x507ce6(0x15c)](_0x1a7c36,_0x1a4007));}),_0x1b082b[_0x266809(0x1d7)]();});});});}static[a64_0x87aa47(0x148)](){const _0x620275=a64_0x87aa47;if(process[_0x620275(0x145)][_0x620275(0x15b)])return JSON[_0x620275(0x177)](process['env']['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this[_0x620275(0x1e0)];}static[a64_0x87aa47(0x14d)](){const _0x35120f=a64_0x87aa47;if(process[_0x35120f(0x145)][_0x35120f(0x18c)])return JSON[_0x35120f(0x177)](process[_0x35120f(0x145)][_0x35120f(0x18c)]);return this[_0x35120f(0x174)];}static[a64_0x87aa47(0x1ee)](_0x3f74df,_0x3889bc){const _0x25dddd=a64_0x87aa47,_0x844da5={'GFuIm':_0x25dddd(0x1c1),'jIcbs':function(_0x36b5fb,_0x5aab87){return _0x36b5fb||_0x5aab87;},'osadu':function(_0xc3fc80,_0x49dfb3){return _0xc3fc80(_0x49dfb3);}},_0x1590cd=_0x844da5[_0x25dddd(0x196)][_0x25dddd(0x19d)]('|');let _0x482ccb=0x0;while(!![]){switch(_0x1590cd[_0x482ccb++]){case'0':_0x844da5[_0x25dddd(0x1ac)](!_0x3f74df,!_0x3889bc)&&logger['debug'](_0x25dddd(0x16b)+_0x3f74df+_0x25dddd(0x176)+_0x3889bc);continue;case'1':this[_0x25dddd(0x1e0)]={'name':_0x3f74df,'version':{[_0x3f74df]:_0x844da5[_0x25dddd(0x1ad)](getFrameworkVersion,_0x3f74df)}};continue;case'2':this[_0x25dddd(0x174)]={'name':_0x3889bc,'version':_0x844da5[_0x25dddd(0x1ad)](getFrameworkVersion,_0x3889bc)};continue;case'3':process[_0x25dddd(0x145)][_0x25dddd(0x15b)]=JSON[_0x25dddd(0x1e6)](this[_0x25dddd(0x1e0)]);continue;case'4':process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON[_0x25dddd(0x1e6)](this[_0x25dddd(0x174)]);continue;}break;}}static[a64_0x87aa47(0x208)](_0x42b699,_0x34d8da){return _0x42b699+':'+_0x34d8da;}static[a64_0x87aa47(0x182)](){return process['pid']+':'+threadId;}static['shouldSkipSessionName'](_0x41358e){const _0x5870c6=a64_0x87aa47;if(_0x41358e[_0x5870c6(0x168)]&&_0x41358e[_0x5870c6(0x168)][_0x5870c6(0x178)])return!![];return![];}static[a64_0x87aa47(0x16a)](_0x50f297){const _0x346dae=a64_0x87aa47;if(_0x50f297[_0x346dae(0x168)]&&_0x50f297['testContextOptions'][_0x346dae(0x151)])return!![];return![];}static[a64_0x87aa47(0x20a)](_0x3dc3eb){const _0x1d6df8=a64_0x87aa47,_0x28d389=new RegExp(TestFrameworkConstants[_0x1d6df8(0x1d3)]);return _0x28d389['test'](_0x3dc3eb);}static[a64_0x87aa47(0x1a1)](_0x5dd63c,_0x553c5d){const _0x28f020=a64_0x87aa47,_0x4bf41f={};_0x4bf41f[_0x28f020(0x1d9)]=function(_0xcde4af,_0x2c6566){return _0xcde4af!==_0x2c6566;},_0x4bf41f[_0x28f020(0x171)]=function(_0x283f2c,_0x28f326){return _0x283f2c===_0x28f326;},_0x4bf41f[_0x28f020(0x191)]='object';const _0x43d18b=_0x4bf41f;for(const [_0xa0b8f6,_0x49d78b]of Object[_0x28f020(0x14a)](_0x553c5d)){if(_0x43d18b['ZwHLU'](_0x49d78b,null)&&_0x43d18b[_0x28f020(0x171)](typeof _0x49d78b,_0x43d18b['fkTNf'])&&!Array[_0x28f020(0x165)](_0x49d78b))_0x5dd63c[_0xa0b8f6]=this['mergeObject'](_0x5dd63c[_0xa0b8f6]||{},_0x49d78b);else Array[_0x28f020(0x165)](_0x49d78b)?_0x5dd63c[_0xa0b8f6]=(_0x5dd63c[_0xa0b8f6]||[])['concat'](_0x49d78b):_0x5dd63c[_0xa0b8f6]=_0x49d78b;}return _0x5dd63c;}}module[a64_0x87aa47(0x1c0)]=CLIUtils;
|
|
1
|
+
const a64_0x5eb13a=a64_0xaf48;(function(_0x2a1777,_0x2dfc21){const _0x473fe0=a64_0xaf48,_0x532ef2=_0x2a1777();while(!![]){try{const _0xae9244=parseInt(_0x473fe0(0x157))/0x1+parseInt(_0x473fe0(0x1e6))/0x2*(parseInt(_0x473fe0(0x195))/0x3)+-parseInt(_0x473fe0(0x187))/0x4*(-parseInt(_0x473fe0(0x1f6))/0x5)+parseInt(_0x473fe0(0x20e))/0x6*(parseInt(_0x473fe0(0x1db))/0x7)+parseInt(_0x473fe0(0x1eb))/0x8+parseInt(_0x473fe0(0x205))/0x9+parseInt(_0x473fe0(0x148))/0xa*(-parseInt(_0x473fe0(0x170))/0xb);if(_0xae9244===_0x2dfc21)break;else _0x532ef2['push'](_0x532ef2['shift']());}catch(_0xa8981f){_0x532ef2['push'](_0x532ef2['shift']());}}}(a64_0x4fbc,0x8f87f));function a64_0xaf48(_0x342b2e,_0x6b1059){const _0x4fbc0d=a64_0x4fbc();return a64_0xaf48=function(_0xaf48b3,_0x1f513b){_0xaf48b3=_0xaf48b3-0x144;let _0x2d4569=_0x4fbc0d[_0xaf48b3];return _0x2d4569;},a64_0xaf48(_0x342b2e,_0x6b1059);}function a64_0x4fbc(){const _0x314a60=['qrHNL','dJBWM','error','debug','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','svtZZ','rDddM','Setting\x20required\x20permissions\x20to\x20','SHELL_EXECUTE_ERROR','cIsKv','includes','exports','once','openReadStream','.browserstack','bEUTB','MgTNu','\x20version','isDevelopmentEnv','chmod','ctsta','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','lazyEntries','SDK_CLI_CHECK_UPDATE','RWbqN','getWritableDir','testFrameworkDetail','development','aOFOO','sGNwO','Failed\x20to\x20delete\x20zip\x20file:\x20','open','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','filter','fileName','./instances/testFrameworkInstance.js','Binary\x20file\x20became\x20busy\x20during\x20write,\x20continuing\x20with\x20existing\x20binary:\x20','Folder\x20does\x20not\x20exist:\x20','ivymm','xRUXE','../utils/apiUtilityMethods.js','BwKQX','indUM','../../helpers/performance/performance-tester.js','reduce','getCurrentInstanceName','xsxzf','yGoun','cli_version','mergeObject','isArray','pipe','BROWSERSTACK_FILES_DIR','trim','kSWed','path','existsSync','Resolved\x20binary\x20path:\x20','platform','UDOCd','code','Folder\x20','YgQCZ','mHHxJ','frtth','mIucj','concat','119QqlvUk','data','JKjON','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','downloadLatestBinary','oDkfq','WVYIL','url','basename','KIsjE','getCliDir','99278tvKTmk','cNjKq','bbURN','gVWtv','tFZXV','3693848ceODfi','PpbLQ','timeout','close','util','createWriteStream','pid','hTNgU','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','QzQIp','fufXI','2768400YWjozK','PNcGl','checkAndUpdateCli','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','TdPDs','object','version','iWQCd','matchHookRegex','getHookRegistryKey','HOOK_REGEX','get','testContextOptions','warn','binary-','2610279ZfEUtk','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','start','automationFrameworkDetail','downloadFileStream','../../helpers/utilities','isBinaryBusy','Resolving\x20with\x20stdout:\x20\x22','ZfxpW','183894SBUIpT','getExistingCliPath','../../helpers/helper','getSdkLanguage','BROWSERSTACK_CLI_ENV','rkpHl','PayyT','ISELo','4100sQZTxG','SDK_CLI_BIN_PATH','Development\x20Cli\x20Path:\x20','tUeKz','getTestFrameworkDetail','McrpL','stringify','downloaded_file.zip','BfVWZ','split','child_process','QnXwb','setFrameworkDetail',',\x20automationFramework=','cLmLC','764547kcSHQx','../../helpers/test-observability/utils.js','getCLIParamsForDevEnv','kmCzF','4|2|1|3|0','sFYCE','map','../../helpers/classLogger.js','../../helpers/performance/constants','message','parse','HjYjC','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','format','startsWith','rymqz','Error\x20while\x20reading\x20CLI\x20path:\x20','ferxc','mtime','cwd','jbpDD','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','jWjnf','hwLug','end','79046xmeoLh','wPpxU','PfxoL','./framework/constants/testFrameworkConstants.js','closeSync','eDiHM','Binary\x20file\x20is\x20currently\x20in\x20use,\x20skipping\x20download\x20and\x20continuing\x20with\x20existing\x20binary:\x20','BROWSERSTACK_BINARY_URL','env','arch','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','SDK_CLI_DOWNLOAD','unlink','vlCBs','IAeZl','join','BTGah','entries','info','runShellCommand','test','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','getSdkVersion','4WutyiN','openSync','shouldSkipSessionName','readdirSync','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','RLfAq','statSync','jFyHD','Downloading\x20SDK\x20binary\x20from:\x20','CLIUtils','length','skipSessionStatus','follow-redirects','NXqxx','57WhvYuz','response\x20','Qushw'];a64_0x4fbc=function(){return _0x314a60;};return a64_0x4fbc();}const fs=require('fs'),os=require('os'),url=require('url'),path=require(a64_0x5eb13a(0x1cf)),{exec}=require(a64_0x5eb13a(0x152)),{https}=require(a64_0x5eb13a(0x193)),yauzl=require('yauzl'),util=require(a64_0x5eb13a(0x1ef)),{getFrameworkVersion}=require(a64_0x5eb13a(0x158)),{threadId}=require('worker_threads'),PerformanceTester=require(a64_0x5eb13a(0x1c3)),{EVENTS:PerformanceEvents}=require(a64_0x5eb13a(0x15f)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a64_0x5eb13a(0x20a)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a64_0x5eb13a(0x210)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require(a64_0x5eb13a(0x15e)),TestFrameworkInstance=require(a64_0x5eb13a(0x1bb)),HookState=require('./state/hookState.js'),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a64_0x5eb13a(0x173)),logger=createClassLogger(a64_0x5eb13a(0x190)),{getBStackAPIUrl}=require(a64_0x5eb13a(0x1c0));class CLIUtils{['automationFrameworkDetail']={};[a64_0x5eb13a(0x1b2)]={};static[a64_0x5eb13a(0x1aa)](){const _0xcf9707=a64_0x5eb13a,_0x3d7ccd={};_0x3d7ccd[_0xcf9707(0x1b5)]=function(_0x583f0f,_0x1ba59b){return _0x583f0f===_0x1ba59b;},_0x3d7ccd[_0xcf9707(0x1bf)]=_0xcf9707(0x1b3);const _0x21b65b=_0x3d7ccd;return _0x21b65b[_0xcf9707(0x1b5)](process[_0xcf9707(0x178)]['BROWSERSTACK_CLI_ENV'],_0x21b65b[_0xcf9707(0x1bf)]);}static[a64_0x5eb13a(0x159)](){const _0x46f318=a64_0x5eb13a,_0x13ff30={};return _0x13ff30['id']=process[_0x46f318(0x178)][_0x46f318(0x144)],_0x13ff30['listen']='unix:/tmp/sdk-platform-'+process[_0x46f318(0x178)][_0x46f318(0x144)]+'.sock',_0x13ff30;}static[a64_0x5eb13a(0x186)](){const _0x23966f=a64_0x5eb13a,_0x54e34d={'PNcGl':function(_0x204770,_0x8175e7){return _0x204770(_0x8175e7);},'yGoun':'../../../package.json'};return _0x54e34d[_0x23966f(0x1f7)](require,_0x54e34d[_0x23966f(0x1c7)])[_0x23966f(0x1fc)];}static[a64_0x5eb13a(0x211)](){const _0x2b1020=a64_0x5eb13a,_0x552b02={};_0x552b02[_0x2b1020(0x1e4)]='node';const _0x4b9e39=_0x552b02;return _0x4b9e39[_0x2b1020(0x1e4)];}static async['setupCliPath'](_0x327e70){const _0x4b01be=a64_0x5eb13a,_0x44986e={'ctsta':'Configuring\x20Cli\x20path.','kSWed':function(_0x344f5d,_0x2b2b9c){return _0x344f5d(_0x2b2b9c);},'UDOCd':_0x4b01be(0x1f9)};logger['debug'](_0x44986e[_0x4b01be(0x1ac)]);const _0x106f95=process[_0x4b01be(0x178)][_0x4b01be(0x149)];if(!_0x44986e['kSWed'](isNullOrEmpty,_0x106f95))return logger[_0x4b01be(0x19b)](_0x4b01be(0x14a)+_0x106f95),_0x106f95;try{const _0x430b65=this['getCliDir']();if(_0x44986e[_0x4b01be(0x1ce)](isNullOrEmpty,_0x430b65))throw new Error(_0x44986e[_0x4b01be(0x1d3)]);const _0x44b4c6=this['getExistingCliPath'](_0x430b65),_0x1c0ed8=await this[_0x4b01be(0x1f8)](_0x44b4c6,_0x430b65,_0x327e70);return logger['debug'](_0x4b01be(0x1d1)+_0x1c0ed8),_0x1c0ed8;}catch(_0xa44038){logger[_0x4b01be(0x19b)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x4b01be(0x164)](_0xa44038));}return null;}static async['checkAndUpdateCli'](_0xd13e54,_0x1aac22,_0x4ead29){const _0x447866=a64_0x5eb13a,_0x2b364f={'dJBWM':function(_0x603d32){return _0x603d32();},'BfVWZ':function(_0x97bea7,_0x2304f5){return _0x97bea7(_0x2304f5);},'RWbqN':function(_0x5130ad,_0x3986ac,_0x4d3d6d){return _0x5130ad(_0x3986ac,_0x4d3d6d);},'rDddM':_0x447866(0x1dc),'wPpxU':'url','QzQIp':function(_0xc5f98,_0x376fbb){return _0xc5f98(_0x376fbb);},'indUM':function(_0x2816de,_0x2c9566,_0x1f9c97){return _0x2816de(_0x2c9566,_0x1f9c97);}};PerformanceTester[_0x447866(0x207)](PerformanceEvents[_0x447866(0x1af)]),logger[_0x447866(0x182)]('Current\x20CLI\x20Path\x20Found:\x20'+_0xd13e54);const _0x43482a=_0x2b364f[_0x447866(0x199)](getHostInfo),_0x120f03={'sdk_version':CLIUtils[_0x447866(0x186)](),'os':_0x43482a[_0x447866(0x1d2)],'os_arch':_0x43482a[_0x447866(0x179)],'cli_version':'0','sdk_language':this[_0x447866(0x211)]()};!_0x2b364f[_0x447866(0x150)](isNullOrEmpty,_0xd13e54)&&(_0x120f03[_0x447866(0x1c8)]=await this[_0x447866(0x183)](_0xd13e54+_0x447866(0x1a9)));const _0x8b4d99=await this['requestToUpdateCLI'](_0x120f03,_0x4ead29);process[_0x447866(0x178)][_0x447866(0x177)]&&(logger['info'](_0x447866(0x1b8)+process[_0x447866(0x178)][_0x447866(0x177)]),_0x8b4d99[_0x447866(0x1dc)][_0x447866(0x1e2)]=process[_0x447866(0x178)][_0x447866(0x177)]);if(_0x2b364f[_0x447866(0x1b0)](nestedKeyValue,_0x8b4d99,[_0x2b364f[_0x447866(0x19e)],_0x2b364f[_0x447866(0x171)]])){logger[_0x447866(0x19b)](_0x447866(0x1ad)+_0x120f03[_0x447866(0x1c8)]);if(!_0x2b364f[_0x447866(0x1f4)](isNullOrEmpty,_0xd13e54)&&this[_0x447866(0x20b)](_0xd13e54))return logger[_0x447866(0x203)](_0x447866(0x19c)+_0xd13e54),PerformanceTester['end'](PerformanceEvents[_0x447866(0x1af)]),_0xd13e54;const _0x21a835=await this[_0x447866(0x1df)](_0x2b364f[_0x447866(0x1c2)](nestedKeyValue,_0x8b4d99,[_0x2b364f[_0x447866(0x19e)],_0x2b364f[_0x447866(0x171)]]),_0x1aac22);return PerformanceTester[_0x447866(0x16f)](PerformanceEvents[_0x447866(0x1af)]),_0x21a835;}return PerformanceTester[_0x447866(0x16f)](PerformanceEvents[_0x447866(0x1af)]),_0xd13e54;}static[a64_0x5eb13a(0x1e5)](){const _0x156185=a64_0x5eb13a,_0x29d319={'PpbLQ':function(_0x52585d,_0x455159){return _0x52585d(_0x455159);},'IAeZl':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','hBkEt':'cli'},_0x2baafd=this[_0x156185(0x1b1)]();try{if(_0x29d319[_0x156185(0x1ec)](isNullOrEmpty,_0x2baafd))throw new Error(_0x29d319[_0x156185(0x17e)]);const _0x35740c=path[_0x156185(0x17f)](_0x2baafd,_0x29d319['hBkEt']);return!fs[_0x156185(0x1d0)](_0x35740c)&&_0x29d319[_0x156185(0x1ec)](createDir,_0x35740c),_0x35740c;}catch(_0x2c3819){logger[_0x156185(0x19b)]('Error\x20in\x20getting\x20writable\x20directory,\x20writableDir='+util[_0x156185(0x164)](_0x2c3819));}}static[a64_0x5eb13a(0x1b1)](){const _0x2b5aaa=a64_0x5eb13a,_0x29eb9f={'cLmLC':_0x2b5aaa(0x1a6),'fufXI':function(_0x5248e5,_0x33f8fd){return _0x5248e5(_0x33f8fd);},'vlCBs':function(_0x260091,_0x1cc2bc){return _0x260091(_0x1cc2bc);},'bbURN':function(_0x266a72,_0x18605d){return _0x266a72(_0x18605d);}},_0x591a74=[process['env'][_0x2b5aaa(0x1cc)],path[_0x2b5aaa(0x17f)](os['homedir'](),_0x29eb9f[_0x2b5aaa(0x156)]),path[_0x2b5aaa(0x17f)](os['tmpdir'](),_0x29eb9f['cLmLC'])];for(const _0x358a53 of _0x591a74){if(_0x29eb9f[_0x2b5aaa(0x1f5)](isNullOrEmpty,_0x358a53))continue;try{if(fs['existsSync'](_0x358a53)){logger[_0x2b5aaa(0x19b)](_0x2b5aaa(0x1d5)+_0x358a53+'\x20already\x20exists');if(!_0x29eb9f['fufXI'](isModifiable,_0x358a53)){logger[_0x2b5aaa(0x19b)](_0x2b5aaa(0x19f)+_0x358a53);const _0x1a4070=_0x29eb9f[_0x2b5aaa(0x1f5)](setReadWriteExecuteAccess,_0x358a53);if(!_0x29eb9f[_0x2b5aaa(0x17d)](isTrue,_0x1a4070)){logger[_0x2b5aaa(0x203)](_0x2b5aaa(0x18b)+_0x358a53);continue;}}}else{logger['debug'](_0x2b5aaa(0x1bd)+_0x358a53),_0x29eb9f[_0x2b5aaa(0x1e8)](createDir,_0x358a53),logger[_0x2b5aaa(0x19b)](_0x2b5aaa(0x19f)+_0x358a53);const _0x541bbd=_0x29eb9f[_0x2b5aaa(0x17d)](setReadWriteExecuteAccess,_0x358a53);!_0x29eb9f['vlCBs'](isTrue,_0x541bbd)&&logger[_0x2b5aaa(0x203)](_0x2b5aaa(0x18b)+_0x358a53);}return _0x358a53;}catch(_0x495503){logger[_0x2b5aaa(0x19a)](_0x2b5aaa(0x1f3)+util['format'](_0x495503));}}return null;}static[a64_0x5eb13a(0x20f)](_0xc76d46){const _0x1a6bc9=a64_0x5eb13a,_0x2fb529={};_0x2fb529[_0x1a6bc9(0x153)]=function(_0x55c8ea,_0x4feff5){return _0x55c8ea>_0x4feff5;},_0x2fb529[_0x1a6bc9(0x16d)]=function(_0x2f9af2,_0x2e5eeb){return _0x2f9af2>_0x2e5eeb;};const _0xb27563=_0x2fb529;try{if(!fs['existsSync'](_0xc76d46)||!fs[_0x1a6bc9(0x18d)](_0xc76d46)['isDirectory']())return'';const _0x512e54=fs[_0x1a6bc9(0x18a)](_0xc76d46)[_0x1a6bc9(0x15d)](_0x367cea=>path[_0x1a6bc9(0x17f)](_0xc76d46,_0x367cea))[_0x1a6bc9(0x1b9)](_0x35e823=>fs[_0x1a6bc9(0x18d)](_0x35e823)['isFile']()&&path[_0x1a6bc9(0x1e3)](_0x35e823)[_0x1a6bc9(0x165)](_0x1a6bc9(0x204)));if(_0xb27563[_0x1a6bc9(0x16d)](_0x512e54[_0x1a6bc9(0x191)],0x0)){const _0x1f5e7c=_0x512e54[_0x1a6bc9(0x15d)](_0x1a2e56=>({'filePath':_0x1a2e56,'mtime':fs['statSync'](_0x1a2e56)[_0x1a6bc9(0x169)]}))[_0x1a6bc9(0x1c4)]((_0x20729d,_0x24b353)=>{const _0x588bb4=_0x1a6bc9;if(!_0x20729d||!_0x20729d[_0x588bb4(0x169)])return _0x24b353;if(_0xb27563[_0x588bb4(0x153)](_0x24b353[_0x588bb4(0x169)],_0x20729d['mtime']))return _0x24b353;return _0x20729d;},{});return _0x1f5e7c?_0x1f5e7c['filePath']:'';}return'';}catch(_0x3aef0f){return logger['error'](_0x1a6bc9(0x167)+util[_0x1a6bc9(0x164)](_0x3aef0f)),'';}}static ['requestToUpdateCLI']=async(_0x36e866,_0xe6b04a)=>{const _0x2793b6=a64_0x5eb13a,_0x575176={'UJwPJ':function(_0x596480,_0x286f74,_0x2ddf0f,_0x1c8040,_0x13797a){return _0x596480(_0x286f74,_0x2ddf0f,_0x1c8040,_0x13797a);},'gVWtv':'GET'},_0x31c6ab={};_0x31c6ab['qs']=_0x36e866;const _0x511a62=await _0x575176['UJwPJ'](nodeRequest,_0x575176[_0x2793b6(0x1e9)],UPDATED_CLI_ENDPOINT,_0x31c6ab,_0xe6b04a);return logger[_0x2793b6(0x19b)](_0x2793b6(0x196)+JSON[_0x2793b6(0x14e)](_0x511a62)),_0x511a62;};static[a64_0x5eb13a(0x20b)](_0x5276f4){const _0x4caff2=a64_0x5eb13a;try{const _0x1cc233=fs[_0x4caff2(0x188)](_0x5276f4,'r+');return fs[_0x4caff2(0x174)](_0x1cc233),![];}catch(_0x1e49ad){if(BINARY_BUSY_ERROR_CODES['includes'](_0x1e49ad[_0x4caff2(0x1d4)]))return logger['debug']('Binary\x20is\x20busy:\x20'+_0x5276f4),!![];return logger[_0x4caff2(0x19b)](_0x4caff2(0x163)+_0x1e49ad[_0x4caff2(0x160)]),![];}}static[a64_0x5eb13a(0x183)](_0x5ad987,_0x3e2d23=''){const _0x41b2c8=a64_0x5eb13a,_0x57bca5={'cYYUL':_0x41b2c8(0x1fc),'hwLug':function(_0x417566,_0x1a13eb){return _0x417566(_0x1a13eb);},'NXqxx':_0x41b2c8(0x1a0),'ivymm':function(_0x2ef803,_0x563bb1){return _0x2ef803(_0x563bb1);},'kmCzF':function(_0x327478,_0x32d799,_0x112c34,_0x4bd696){return _0x327478(_0x32d799,_0x112c34,_0x4bd696);},'eDiHM':_0x41b2c8(0x19a)};return new Promise((_0x1b53f5,_0x3e7ead)=>{const _0x3a93e9=_0x41b2c8,_0x3e7ec8={'frtth':function(_0x3f5a51,_0x56bcf4){const _0x39a80d=a64_0xaf48;return _0x57bca5[_0x39a80d(0x1be)](_0x3f5a51,_0x56bcf4);},'hTNgU':_0x57bca5[_0x3a93e9(0x194)]},_0x1241fb={};_0x1241fb[_0x3a93e9(0x16a)]=_0x3e2d23,_0x1241fb[_0x3a93e9(0x1ed)]=0x1388;const _0x60e369=_0x57bca5[_0x3a93e9(0x15a)](exec,_0x5ad987,_0x1241fb,(_0x3e8c7e,_0x54d508,_0x460c4f)=>{const _0x3ecf43=_0x3a93e9;if(_0x3e8c7e){if(_0x5ad987[_0x3ecf43(0x1a2)](_0x57bca5['cYYUL'])&&(_0x54d508[_0x3ecf43(0x1cd)]()||_0x460c4f[_0x3ecf43(0x1cd)]())){const _0x2b70fd=_0x54d508[_0x3ecf43(0x1cd)]()||_0x460c4f[_0x3ecf43(0x1cd)]();logger['debug']('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x2b70fd+'\x22'),_0x57bca5['hwLug'](_0x1b53f5,_0x2b70fd);}else _0x57bca5[_0x3ecf43(0x16e)](_0x1b53f5,_0x460c4f[_0x3ecf43(0x1cd)]()||_0x57bca5[_0x3ecf43(0x194)]);}else logger['debug'](_0x3ecf43(0x20c)+_0x54d508[_0x3ecf43(0x1cd)]()+'\x22'),_0x57bca5[_0x3ecf43(0x16e)](_0x1b53f5,_0x54d508[_0x3ecf43(0x1cd)]());});_0x60e369['on'](_0x57bca5[_0x3a93e9(0x175)],()=>{const _0x1f03a6=_0x3a93e9;_0x3e7ec8[_0x1f03a6(0x1d8)](_0x1b53f5,_0x3e7ec8[_0x1f03a6(0x1f2)]);});});}static ['downloadLatestBinary']=async(_0x533426,_0x187ee1)=>{const _0x1298f9=a64_0x5eb13a,_0x2761a3={'ferxc':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','McrpL':function(_0x53b999,_0x1f7c2f){return _0x53b999(_0x1f7c2f);},'BwKQX':_0x1298f9(0x17a),'HjYjC':_0x1298f9(0x19a),'mIucj':function(_0x1ddb3a,_0x2aacdf){return _0x1ddb3a(_0x2aacdf);},'WVYIL':_0x1298f9(0x14f)};PerformanceTester[_0x1298f9(0x207)](PerformanceEvents[_0x1298f9(0x17b)]),logger['debug'](_0x1298f9(0x18f)+_0x533426);try{const _0x342123=url[_0x1298f9(0x161)](_0x533426),_0x2ca409=path[_0x1298f9(0x17f)](_0x187ee1,_0x2761a3[_0x1298f9(0x1e1)]),_0xafd8be=fs[_0x1298f9(0x1f0)](_0x2ca409);return new Promise((_0x31f219,_0x1cb25f)=>{const _0x1823cf=_0x1298f9;https[_0x1823cf(0x201)](_0x342123,function(_0x21d5d5){const _0x55e340=_0x1823cf,_0x5f0f88={'oDkfq':_0x2761a3[_0x55e340(0x168)],'tUeKz':function(_0xa9e7de,_0x1183c3){const _0x3fde7b=_0x55e340;return _0x2761a3[_0x3fde7b(0x14d)](_0xa9e7de,_0x1183c3);},'jFyHD':_0x2761a3[_0x55e340(0x1c1)]},_0x3728b0=null;_0x21d5d5[_0x55e340(0x1cb)](_0xafd8be),_0x21d5d5['on'](_0x2761a3['HjYjC'],function(_0x576e79){const _0x449c9e=_0x55e340;logger[_0x449c9e(0x19a)](util[_0x449c9e(0x164)](_0x5f0f88[_0x449c9e(0x1e0)],_0x576e79)),PerformanceTester[_0x449c9e(0x16f)](PerformanceEvents[_0x449c9e(0x17b)],![],util['format'](_0x576e79)),_0x5f0f88['tUeKz'](_0x1cb25f,_0x576e79);}),_0xafd8be['on'](_0x2761a3[_0x55e340(0x162)],function(_0x425b67){const _0x489ed3=_0x55e340;logger[_0x489ed3(0x19a)](util['format'](_0x5f0f88[_0x489ed3(0x18e)],_0x425b67)),PerformanceTester[_0x489ed3(0x16f)](PerformanceEvents[_0x489ed3(0x17b)],![],util['format'](_0x425b67)),_0x5f0f88[_0x489ed3(0x14b)](_0x1cb25f,_0x425b67);}),CLIUtils['downloadFileStream'](_0xafd8be,_0x3728b0,_0x2ca409,_0x187ee1,_0x31f219,_0x1cb25f),PerformanceTester[_0x55e340(0x16f)](PerformanceEvents[_0x55e340(0x17b)]);})['on'](_0x2761a3['HjYjC'],function(_0x517969){const _0x149a8d=_0x1823cf;logger[_0x149a8d(0x19a)](_0x149a8d(0x1de)+util['format'](_0x517969)),PerformanceTester[_0x149a8d(0x16f)](PerformanceEvents[_0x149a8d(0x17b)],![],util['format'](_0x517969)),_0x2761a3[_0x149a8d(0x1d9)](_0x1cb25f,_0x517969);});});}catch(_0x2292da){PerformanceTester[_0x1298f9(0x16f)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x1298f9(0x164)](_0x2292da)),logger['debug']('Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20'+util[_0x1298f9(0x164)](_0x2292da));}};static[a64_0x5eb13a(0x209)](_0xee0cb4,_0x4beadd,_0x93bc35,_0x43e956,_0x3ac759,_0x5f3caa){const _0x3dbbf1=a64_0x5eb13a,_0x4e059a={'Qushw':function(_0x2c018e,_0x3dfc52){return _0x2c018e(_0x3dfc52);},'qzBCf':'0755','CtFYg':_0x3dbbf1(0x16f),'xsxzf':_0x3dbbf1(0x19a),'JKjON':function(_0x4cc5b3,_0x441ab5){return _0x4cc5b3===_0x441ab5;},'pVLzW':function(_0x3c1333,_0x169c82){return _0x3c1333(_0x169c82);},'MjAor':'entry','rymqz':_0x3dbbf1(0x1ee)};_0xee0cb4['on'](_0x4e059a[_0x3dbbf1(0x166)],function(){const _0x310882=_0x3dbbf1,_0x3d1c8e={'BhaSQ':function(_0x39bcb2,_0x559f64){return _0x4e059a['Qushw'](_0x39bcb2,_0x559f64);},'qrHNL':_0x4e059a['qzBCf'],'cNjKq':function(_0x18f546,_0x4c0e20){const _0x59fde3=a64_0xaf48;return _0x4e059a[_0x59fde3(0x197)](_0x18f546,_0x4c0e20);},'rkpHl':_0x4e059a['CtFYg'],'ZfxpW':_0x4e059a[_0x310882(0x1c6)],'OdqkF':function(_0xfc7e7f,_0xe127e5){const _0x39a635=_0x310882;return _0x4e059a[_0x39a635(0x1dd)](_0xfc7e7f,_0xe127e5);},'bEUTB':function(_0x5833a,_0x447afb){return _0x4e059a['pVLzW'](_0x5833a,_0x447afb);},'sFYCE':_0x4e059a['MjAor']},_0x194f51={};_0x194f51[_0x310882(0x1ae)]=!![],yauzl[_0x310882(0x1b7)](_0x93bc35,_0x194f51,function(_0x45210d,_0x3baaf8){const _0x488604=_0x310882,_0x4eca9a={'ISELo':function(_0x27368b,_0xcbbcb9){const _0x5b811e=a64_0xaf48;return _0x3d1c8e[_0x5b811e(0x1e7)](_0x27368b,_0xcbbcb9);},'PfxoL':function(_0x2f50cf,_0x5c3fc0){const _0x4b8872=a64_0xaf48;return _0x3d1c8e[_0x4b8872(0x1e7)](_0x2f50cf,_0x5c3fc0);},'mHHxJ':_0x3d1c8e['rkpHl'],'cIsKv':_0x3d1c8e[_0x488604(0x20d)],'PayyT':function(_0x2a4e68,_0x324978){return _0x3d1c8e['OdqkF'](_0x2a4e68,_0x324978);}};_0x45210d&&_0x3d1c8e[_0x488604(0x1a7)](_0x5f3caa,_0x45210d),_0x3baaf8['readEntry'](),_0x3baaf8['on'](_0x3d1c8e[_0x488604(0x15c)],_0x2a665a=>{const _0x5a6b6f=_0x488604,_0x291f99={'MgTNu':function(_0x161aa0,_0x56e73e){const _0x264855=a64_0xaf48;return _0x4eca9a[_0x264855(0x147)](_0x161aa0,_0x56e73e);},'NIsnv':function(_0x41c9ec,_0x3bc993){const _0x1cc45b=a64_0xaf48;return _0x4eca9a[_0x1cc45b(0x172)](_0x41c9ec,_0x3bc993);},'jbpDD':_0x4eca9a[_0x5a6b6f(0x1d7)]};!_0x4beadd&&(_0x4beadd=_0x2a665a['fileName']);if(/\/$/['test'](_0x2a665a['fileName']))_0x3baaf8['readEntry']();else{const _0x34159e=_0x2a665a[_0x5a6b6f(0x1ba)],_0xabb087=path['join'](_0x43e956,_0x34159e);let _0x137153;try{_0x137153=fs[_0x5a6b6f(0x1f0)](_0xabb087);}catch(_0x2e312f){if(BINARY_BUSY_ERROR_CODES[_0x5a6b6f(0x1a2)](_0x2e312f[_0x5a6b6f(0x1d4)])){logger['warn'](_0x5a6b6f(0x176)+_0x34159e),fs[_0x5a6b6f(0x17c)](_0x93bc35,_0x269624=>{const _0xb05576=_0x5a6b6f;_0x269624&&logger[_0xb05576(0x203)](_0xb05576(0x1b6)+_0x93bc35);}),_0x4eca9a['ISELo'](_0x3ac759,_0xabb087);return;}_0x4eca9a[_0x5a6b6f(0x172)](_0x5f3caa,_0x2e312f);return;}_0x137153['on'](_0x4eca9a[_0x5a6b6f(0x1a1)],_0x4401fd=>{const _0x435223=_0x5a6b6f;BINARY_BUSY_ERROR_CODES[_0x435223(0x1a2)](_0x4401fd['code'])?(logger[_0x435223(0x203)](_0x435223(0x1bc)+_0x4401fd[_0x435223(0x160)]),_0x137153[_0x435223(0x1ee)](),fs[_0x435223(0x17c)](_0x93bc35,_0x1d3df5=>{const _0x3f6f39=_0x435223;_0x1d3df5&&logger[_0x3f6f39(0x203)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x93bc35);}),_0x291f99[_0x435223(0x1a8)](_0x3ac759,_0xabb087)):_0x291f99['MgTNu'](_0x5f3caa,_0x4401fd);}),_0x3baaf8[_0x5a6b6f(0x1a5)](_0x2a665a,function(_0x523719,_0x2429ba){const _0x282451=_0x5a6b6f;_0x523719&&_0x291f99['NIsnv'](_0x5f3caa,_0x523719),_0x2429ba['on'](_0x291f99[_0x282451(0x16b)],function(){_0x137153['close'](),_0x3baaf8['readEntry']();}),_0x2429ba[_0x282451(0x1cb)](_0x137153);}),_0x4eca9a[_0x5a6b6f(0x146)](_0x2a665a['fileName'],_0x4beadd)&&_0x3baaf8[_0x5a6b6f(0x1ee)]();}}),_0x3baaf8['on'](_0x3d1c8e['ZfxpW'],_0x52ec8d=>{const _0x3718d7=_0x488604;_0x4eca9a[_0x3718d7(0x147)](_0x5f3caa,_0x52ec8d);}),_0x3baaf8[_0x488604(0x1a4)](_0x3d1c8e[_0x488604(0x145)],()=>{const _0x5c6f10=_0x488604,_0x1b7bf5={'RLfAq':function(_0x1f2405,_0x4afd18){return _0x3d1c8e['BhaSQ'](_0x1f2405,_0x4afd18);}};fs[_0x5c6f10(0x17c)](_0x93bc35,_0x8cdaa3=>{const _0x2de56f=_0x5c6f10;_0x8cdaa3&&logger[_0x2de56f(0x203)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x93bc35);}),fs[_0x5c6f10(0x1ab)](path['join'](_0x43e956,_0x4beadd),_0x3d1c8e[_0x5c6f10(0x198)],function(_0x3d4929){const _0x526978=_0x5c6f10;_0x3d4929&&_0x1b7bf5['RLfAq'](_0x5f3caa,_0x3d4929),_0x1b7bf5[_0x526978(0x18c)](_0x3ac759,path[_0x526978(0x17f)](_0x43e956,_0x4beadd));}),_0x3baaf8[_0x5c6f10(0x1ee)]();});});});}static[a64_0x5eb13a(0x14c)](){const _0x2af47f=a64_0x5eb13a;if(process[_0x2af47f(0x178)][_0x2af47f(0x206)])return JSON[_0x2af47f(0x161)](process[_0x2af47f(0x178)][_0x2af47f(0x206)]);return this['testFrameworkDetail'];}static['getAutomationFrameworkDetail'](){const _0x2dff0a=a64_0x5eb13a;if(process[_0x2dff0a(0x178)][_0x2dff0a(0x16c)])return JSON['parse'](process[_0x2dff0a(0x178)][_0x2dff0a(0x16c)]);return this[_0x2dff0a(0x208)];}static[a64_0x5eb13a(0x154)](_0x3440bb,_0x258fa5){const _0x29413a=a64_0x5eb13a,_0x85c37={'aOFOO':_0x29413a(0x15b),'iWQCd':function(_0x48129a,_0x1d19fb){return _0x48129a(_0x1d19fb);},'TdPDs':function(_0x1f2480,_0x32f906){return _0x1f2480(_0x32f906);},'tFZXV':function(_0x48eae9,_0x449554){return _0x48eae9||_0x449554;}},_0x362e32=_0x85c37[_0x29413a(0x1b4)][_0x29413a(0x151)]('|');let _0x98c9ce=0x0;while(!![]){switch(_0x362e32[_0x98c9ce++]){case'0':process[_0x29413a(0x178)][_0x29413a(0x206)]=JSON[_0x29413a(0x14e)](this['testFrameworkDetail']);continue;case'1':this[_0x29413a(0x208)]={'name':_0x258fa5,'version':_0x85c37[_0x29413a(0x1fd)](getFrameworkVersion,_0x258fa5)};continue;case'2':this['testFrameworkDetail']={'name':_0x3440bb,'version':{[_0x3440bb]:_0x85c37[_0x29413a(0x1fa)](getFrameworkVersion,_0x3440bb)}};continue;case'3':process['env'][_0x29413a(0x16c)]=JSON[_0x29413a(0x14e)](this[_0x29413a(0x208)]);continue;case'4':_0x85c37[_0x29413a(0x1ea)](!_0x3440bb,!_0x258fa5)&&logger[_0x29413a(0x19b)](_0x29413a(0x185)+_0x3440bb+_0x29413a(0x155)+_0x258fa5);continue;}break;}}static[a64_0x5eb13a(0x1ff)](_0x46b815,_0x1d0e33){return _0x46b815+':'+_0x1d0e33;}static[a64_0x5eb13a(0x1c5)](){const _0x546bc7=a64_0x5eb13a;return process[_0x546bc7(0x1f1)]+':'+threadId;}static[a64_0x5eb13a(0x189)](_0x47e098){const _0x52b85a=a64_0x5eb13a;if(_0x47e098['testContextOptions']&&_0x47e098[_0x52b85a(0x202)]['skipSessionName'])return!![];return![];}static['shouldSkipSessionStatus'](_0x50ad9c){const _0x37a561=a64_0x5eb13a;if(_0x50ad9c[_0x37a561(0x202)]&&_0x50ad9c[_0x37a561(0x202)][_0x37a561(0x192)])return!![];return![];}static[a64_0x5eb13a(0x1fe)](_0xd4af8){const _0x124d14=a64_0x5eb13a,_0x547e08=new RegExp(TestFrameworkConstants[_0x124d14(0x200)]);return _0x547e08[_0x124d14(0x184)](_0xd4af8);}static[a64_0x5eb13a(0x1c9)](_0xea6942,_0x336bb6){const _0x52f220=a64_0x5eb13a,_0xbe6ba5={};_0xbe6ba5[_0x52f220(0x19d)]=function(_0x5a2006,_0x2cdf9c){return _0x5a2006!==_0x2cdf9c;},_0xbe6ba5[_0x52f220(0x180)]=function(_0x35ce75,_0x460d16){return _0x35ce75===_0x460d16;},_0xbe6ba5[_0x52f220(0x1d6)]=_0x52f220(0x1fb);const _0x55ab62=_0xbe6ba5;for(const [_0x2308f5,_0x344b7e]of Object[_0x52f220(0x181)](_0x336bb6)){if(_0x55ab62[_0x52f220(0x19d)](_0x344b7e,null)&&_0x55ab62[_0x52f220(0x180)](typeof _0x344b7e,_0x55ab62['YgQCZ'])&&!Array[_0x52f220(0x1ca)](_0x344b7e))_0xea6942[_0x2308f5]=this['mergeObject'](_0xea6942[_0x2308f5]||{},_0x344b7e);else Array[_0x52f220(0x1ca)](_0x344b7e)?_0xea6942[_0x2308f5]=(_0xea6942[_0x2308f5]||[])[_0x52f220(0x1da)](_0x344b7e):_0xea6942[_0x2308f5]=_0x344b7e;}return _0xea6942;}}module[a64_0x5eb13a(0x1a3)]=CLIUtils;
|