browserstack-node-sdk 1.55.5 → 1.55.6
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/generated/sdk-messages_pb.d.ts +40 -0
- package/generated/sdk-messages_pb.js +322 -2
- 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/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a53_0x4dea(){const _0x3b2986=['57520HOzPKf','VkNFd','xUgTo','test','frASX','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','format','_connection','POST','ceGpf','message','sessionError','connection','../../helpers/helper','toString','setupBrowserDetails','37CpqHoc','SoQmc','getInstance','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','sessionId','BSTACK_URL','1583715fcqmJy','local_grid','bDJQR','99830SxXQQU','bsSessionId','currentSessionDetails','unknown_grid','783372iItDsS','caps','patchConnection','apply','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','../v2/browserstackCLI','browser_version','browser','KigBg','trackEvent','onmessage','kQWOM','function','fromEntries','chrome','ZfzLB','version','platformVersion','bsParams','IoCAe','63jWoPVu','assign','platformName','XLxYo','debug','result','isRunning','114DhJLik','5376959TURgat','params','seSaC','platform_version','onWeq','util','24868XDuiRu','../../helpers/test-observability/utils','YHpqs','../v2/state/automationFrameworkState.js','ATS_WSS_URL_REGEX','exports','includes','lWUJV','product','../utils/constants','stringify','37730minUkP','string','cloudProvider','parse','wBRuS','platform','mNJqV','getDetails','_bstackPatched','automate','Error\x20in\x20patchConnection:\x20','pLwBs','browserName','winstonLogger','path','capabilities','bStackParams'];a53_0x4dea=function(){return _0x3b2986;};return a53_0x4dea();}const a53_0x1de1b1=a53_0x1878;(function(_0x22f165,_0x3d1860){const _0x261b63=a53_0x1878,_0x305817=_0x22f165();while(!![]){try{const _0x155134=parseInt(_0x261b63(0x21e))/0x1*(parseInt(_0x261b63(0x1fd))/0x2)+parseInt(_0x261b63(0x246))/0x3*(parseInt(_0x261b63(0x1f2))/0x4)+parseInt(_0x261b63(0x224))/0x5+-parseInt(_0x261b63(0x22b))/0x6+-parseInt(_0x261b63(0x247))/0x7+-parseInt(_0x261b63(0x20e))/0x8+-parseInt(_0x261b63(0x23f))/0x9*(-parseInt(_0x261b63(0x227))/0xa);if(_0x155134===_0x3d1860)break;else _0x305817['push'](_0x305817['shift']());}catch(_0x1e936b){_0x305817['push'](_0x305817['shift']());}}}(a53_0x4dea,0x6550a));function a53_0x1878(_0x51f1f7,_0x5d0838){const _0x4dea4d=a53_0x4dea();return a53_0x1878=function(_0x18781e,_0x2e4eac){_0x18781e=_0x18781e-0x1f0;let _0x15a299=_0x4dea4d[_0x18781e];return _0x15a299;},a53_0x1878(_0x51f1f7,_0x5d0838);}const path=require(a53_0x1de1b1(0x20b)),url=require('url'),util=require(a53_0x1de1b1(0x1f1)),{nestedKeyValue,isFalse}=require(a53_0x1de1b1(0x21b)),{debug,getPlatformDetails}=require(a53_0x1de1b1(0x1f3)),logger=require('../../helpers/logger')[a53_0x1de1b1(0x20a)],constants=require(a53_0x1de1b1(0x1fb)),BrowserstackCLI=require(a53_0x1de1b1(0x230)),AutomationFrameworkState=require(a53_0x1de1b1(0x1f5)),HookState=require('../v2/state/hookState.js'),getBrowserFromWSEndpoint=_0xe4ba84=>{const _0x9ba50=a53_0x1de1b1,_0x40d5d2={'bDJQR':_0x9ba50(0x239),'KigBg':function(_0x341347,_0x283fd1){return _0x341347(_0x283fd1);}};try{const _0x59ee08=url[_0x9ba50(0x200)](_0xe4ba84),_0x2ef7c2=new URLSearchParams(_0x59ee08['query']),_0x22dbad=Object[_0x9ba50(0x238)](_0x2ef7c2['entries']()),_0x2414c3=JSON[_0x9ba50(0x200)](_0x22dbad[_0x9ba50(0x22c)]);if(_0x2414c3&&(_0x2414c3[_0x9ba50(0x232)]||_0x2414c3[_0x9ba50(0x209)]))return _0x2414c3[_0x9ba50(0x232)]||_0x2414c3[_0x9ba50(0x209)];return _0x40d5d2[_0x9ba50(0x226)];}catch(_0x829f04){_0x40d5d2[_0x9ba50(0x233)](debug,_0x9ba50(0x221)+_0x829f04[_0x9ba50(0x21c)]());}},getCloudProviderFromWsEndpoint=_0x36cddf=>{const _0x5ac7b5=a53_0x1de1b1,_0x190fc5={};_0x190fc5[_0x5ac7b5(0x208)]='browserstack',_0x190fc5[_0x5ac7b5(0x249)]=_0x5ac7b5(0x22a);const _0x1e097a=_0x190fc5;if(_0x36cddf[_0x5ac7b5(0x1f8)](constants[_0x5ac7b5(0x223)])||_0x36cddf[_0x5ac7b5(0x1f8)](constants['BSTACK_ATS_URL']))return _0x1e097a[_0x5ac7b5(0x208)];return _0x1e097a[_0x5ac7b5(0x249)];},a53_0x364b89={};a53_0x364b89[a53_0x1de1b1(0x1ff)]=undefined,a53_0x364b89['bsSessionId']=undefined,a53_0x364b89[a53_0x1de1b1(0x232)]=undefined,a53_0x364b89[a53_0x1de1b1(0x231)]=undefined,a53_0x364b89[a53_0x1de1b1(0x202)]=undefined,a53_0x364b89[a53_0x1de1b1(0x24a)]=undefined,a53_0x364b89[a53_0x1de1b1(0x1fa)]=undefined,a53_0x364b89['capabilities']={};class PuppeteerSessionDetails{static [a53_0x1de1b1(0x229)]=a53_0x364b89;constructor(){const _0x2f498f=a53_0x1de1b1,_0x44b383={};_0x44b383['YHpqs']=_0x2f498f(0x22f);const _0x435ef1=_0x44b383;throw new Error(_0x435ef1[_0x2f498f(0x1f4)]);}static [a53_0x1de1b1(0x219)]=null;static async[a53_0x1de1b1(0x21d)](_0x323fc0,_0x5795d4){const _0x3914cc=a53_0x1de1b1,_0x850f25={'Kwlgm':_0x3914cc(0x239),'ZfzLB':function(_0x16a677,_0x33b988){return _0x16a677===_0x33b988;},'kQWOM':_0x3914cc(0x237),'IoCAe':_0x3914cc(0x225),'fKkUX':function(_0x2dc4d4,_0x3d034b){return _0x2dc4d4(_0x3d034b);},'xUgTo':'browserstack','ceGpf':'turboscale','wBRuS':_0x3914cc(0x206),'VkNFd':function(_0x299a9b,_0x27e7a2){return _0x299a9b(_0x27e7a2);},'djyrI':function(_0x1e17d5){return _0x1e17d5();},'onWeq':function(_0x3e19e2,_0x348907){return _0x3e19e2(_0x348907);}};try{let _0xcada01=_0x850f25['Kwlgm'],_0x26538=null;_0x323fc0&&_0x850f25[_0x3914cc(0x23a)](typeof _0x323fc0[_0x3914cc(0x23b)],_0x850f25[_0x3914cc(0x236)])&&(_0x26538=await _0x323fc0[_0x3914cc(0x23b)]());let _0x39941f=null,_0x2c0836=null,_0x2ca0f7=null,_0xf317b0=_0x850f25[_0x3914cc(0x23e)];if(_0x5795d4){_0xf317b0=_0x850f25['fKkUX'](getCloudProviderFromWsEndpoint,_0x5795d4);if(_0x850f25[_0x3914cc(0x23a)](_0xf317b0,_0x850f25[_0x3914cc(0x210)]))_0x2ca0f7=constants[_0x3914cc(0x1f6)]?constants[_0x3914cc(0x1f6)][_0x3914cc(0x211)](_0x5795d4)?_0x850f25[_0x3914cc(0x217)]:_0x850f25[_0x3914cc(0x201)]:_0x850f25[_0x3914cc(0x201)],_0xcada01=_0x850f25[_0x3914cc(0x20f)](getBrowserFromWSEndpoint,_0x5795d4)||_0xcada01,_0x39941f=this[_0x3914cc(0x229)][_0x3914cc(0x202)],_0x2c0836=this[_0x3914cc(0x229)]['platform_version'];else{const _0x4255ef=await _0x850f25['djyrI'](getPlatformDetails);_0x39941f=_0x4255ef[_0x3914cc(0x241)],_0x2c0836=_0x4255ef['platformVersion'];}}else{const _0x112bf1=await _0x850f25['djyrI'](getPlatformDetails);_0x39941f=_0x112bf1['platformName'],_0x2c0836=_0x112bf1[_0x3914cc(0x23c)];}const _0x2769e0={};_0x2769e0[_0x3914cc(0x232)]=_0xcada01,_0x2769e0[_0x3914cc(0x231)]=_0x26538,_0x2769e0[_0x3914cc(0x20c)]={},_0x2769e0['platform']=_0x39941f,_0x2769e0['platform_version']=_0x2c0836,_0x2769e0[_0x3914cc(0x1fa)]=_0x2ca0f7;const _0x490a3d=_0x2769e0,_0x4adb68={};_0x4adb68['cloudProvider']=_0xf317b0,this['currentSessionDetails']=Object[_0x3914cc(0x240)]({},this[_0x3914cc(0x229)],_0x4adb68,_0x490a3d);}catch(_0x1cfad5){_0x850f25[_0x3914cc(0x1f0)](debug,'Error\x20in\x20setupBrowserDetails:\x20'+util['format'](_0x1cfad5)),this[_0x3914cc(0x219)]=_0x1cfad5[_0x3914cc(0x21c)]();}}static[a53_0x1de1b1(0x22d)](_0x36088b){const _0x4879e0=a53_0x1de1b1,_0xeab836={'lWUJV':function(_0x283d5d,_0x2ea50f){return _0x283d5d===_0x2ea50f;},'SoQmc':_0x4879e0(0x1fe),'frASX':function(_0x4cbadf,_0x5640a4){return _0x4cbadf(_0x5640a4);},'mNJqV':function(_0x4b9d39,_0xe9eb10){return _0x4b9d39(_0xe9eb10);},'brZoy':function(_0x3aac4c,_0x583ea1){return _0x3aac4c(_0x583ea1);},'XLxYo':'[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture'},_0x18a1f7=this;try{const _0x3e2366=_0x36088b[_0x4879e0(0x215)]||_0x36088b[_0x4879e0(0x21a)];if(!_0x3e2366||_0x3e2366[_0x4879e0(0x205)])return;const _0x380d78=_0x3e2366[_0x4879e0(0x235)];_0x3e2366[_0x4879e0(0x235)]=function(_0x174719){const _0x309e29=_0x4879e0;try{const _0x5f0b53=_0xeab836[_0x309e29(0x1f9)](typeof _0x174719,_0xeab836[_0x309e29(0x21f)])?JSON['parse'](_0x174719):_0x174719,_0x37ed77=_0x5f0b53?.['bStackParams']||_0x5f0b53?.[_0x309e29(0x23d)]||_0x5f0b53?.[_0x309e29(0x248)]?.[_0x309e29(0x23d)]||_0x5f0b53?.[_0x309e29(0x248)]?.[_0x309e29(0x20d)]||_0x5f0b53?.['result']?.[_0x309e29(0x23d)]||_0x5f0b53?.[_0x309e29(0x244)]?.[_0x309e29(0x20d)];if(_0x37ed77){if(BrowserstackCLI['getInstance']()[_0x309e29(0x245)]()){const _0x430902={};_0x430902[_0x309e29(0x218)]=_0x5f0b53,BrowserstackCLI[_0x309e29(0x220)]()['getAutomationFramework']()[_0x309e29(0x234)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState[_0x309e29(0x216)],_0x430902);}else{const _0x5ec644=_0x37ed77[_0x309e29(0x222)],_0x5c67e8=_0x37ed77['platformDetails'];_0x5c67e8&&(_0xeab836[_0x309e29(0x212)](debug,_0x309e29(0x213)+JSON[_0x309e29(0x1fc)](_0x5c67e8)),_0x18a1f7[_0x309e29(0x229)][_0x309e29(0x202)]=_0x5c67e8['platformName'],_0x18a1f7['currentSessionDetails'][_0x309e29(0x24a)]=_0x5c67e8[_0x309e29(0x23c)]),_0x5ec644&&(_0xeab836[_0x309e29(0x203)](debug,'Setting\x20session\x20id\x20received\x20from\x20BS\x20'+_0x5ec644),_0x18a1f7[_0x309e29(0x229)][_0x309e29(0x228)]=_0x5ec644);}_0xeab836[_0x309e29(0x1f9)](typeof _0x174719,_0xeab836['SoQmc'])&&(delete _0x5f0b53['bStackParams'],delete _0x5f0b53[_0x309e29(0x23d)],_0x5f0b53[_0x309e29(0x248)]&&(delete _0x5f0b53[_0x309e29(0x248)][_0x309e29(0x23d)],delete _0x5f0b53['params']['bStackParams']),_0x5f0b53['result']&&(delete _0x5f0b53[_0x309e29(0x244)][_0x309e29(0x23d)],delete _0x5f0b53[_0x309e29(0x244)][_0x309e29(0x20d)]));}}catch(_0x2780d4){_0xeab836['brZoy'](debug,'Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20'+_0x2780d4[_0x309e29(0x218)]);}return _0x380d78?.[_0x309e29(0x22e)](this,arguments);},_0x3e2366[_0x4879e0(0x205)]=!![],logger[_0x4879e0(0x243)](_0xeab836[_0x4879e0(0x242)]);}catch(_0x5e0d5a){_0xeab836[_0x4879e0(0x212)](debug,_0x4879e0(0x207)+util[_0x4879e0(0x214)](_0x5e0d5a)),_0x18a1f7[_0x4879e0(0x219)]=_0x5e0d5a['toString']();}}static[a53_0x1de1b1(0x204)](){return this['currentSessionDetails'];}}module[a53_0x1de1b1(0x1f7)]=PuppeteerSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54_0x37fdd2=a54_0x3d1b;function a54_0x2566(){const _0x1a5e0d=['__skipSessionStatus','puppeteer-core','341672bAAEBd','../utils/puppeteer-patcher','getPackageVersion','o11ySyncDone','setFrameworkDetail','skipSessionStatus','pwPage','currentTest','../../helpers/test-observability/utils','puppeteer','initializePuppeteerPatching','../../helpers/setKeepAlive','winstonLogger','__skipSessionName','46580AUxrSK','2qBFSey','7iBBqOy','1943037cMUXFK','198IwrZSZ','jestConfig','../../helpers/testhub/utils','bootstrap','debug','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','skipSessionName','format','273116BxkKQA','593797hpEzkg','testInfo','6HSnLxE','true','8326105ewkjEc','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','isCliEnabled','__workerDetails','env','../../helpers/logger','BROWSERSTACK_PUPPETEER','89724WDqdPB','../../helpers/helper','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','1467hEbZEU','isPageFixture'];a54_0x2566=function(){return _0x1a5e0d;};return a54_0x2566();}(function(_0x389984,_0x2162d7){const _0x5e9f9d=a54_0x3d1b,_0x486d38=_0x389984();while(!![]){try{const _0x33267c=parseInt(_0x5e9f9d(0x158))/0x1*(-parseInt(_0x5e9f9d(0x17b))/0x2)+parseInt(_0x5e9f9d(0x17d))/0x3+parseInt(_0x5e9f9d(0x157))/0x4+parseInt(_0x5e9f9d(0x15c))/0x5*(parseInt(_0x5e9f9d(0x15a))/0x6)+-parseInt(_0x5e9f9d(0x17c))/0x7*(parseInt(_0x5e9f9d(0x16c))/0x8)+-parseInt(_0x5e9f9d(0x168))/0x9*(parseInt(_0x5e9f9d(0x17a))/0xa)+parseInt(_0x5e9f9d(0x17e))/0xb*(-parseInt(_0x5e9f9d(0x165))/0xc);if(_0x33267c===_0x2162d7)break;else _0x486d38['push'](_0x486d38['shift']());}catch(_0x23192f){_0x486d38['push'](_0x486d38['shift']());}}}(a54_0x2566,0xcfb91));function a54_0x3d1b(_0x4a702a,_0x4bcd50){const _0x2566cc=a54_0x2566();return a54_0x3d1b=function(_0x3d1b90,_0x1d1549){_0x3d1b90=_0x3d1b90-0x154;let _0x44b15c=_0x2566cc[_0x3d1b90];return _0x44b15c;},a54_0x3d1b(_0x4a702a,_0x4bcd50);}const {isTrue,isBrowserstackInfra}=require(a54_0x37fdd2(0x166)),setKeepAlive=require(a54_0x37fdd2(0x177)),util=require('util'),logger=require(a54_0x37fdd2(0x163))[a54_0x37fdd2(0x178)],{shouldProcessEventForTesthub}=require(a54_0x37fdd2(0x180)),{addRequestSpy}=require(a54_0x37fdd2(0x174)),a54_0x1db4d3={};a54_0x1db4d3['workerInfo']=undefined,a54_0x1db4d3[a54_0x37fdd2(0x173)]={},a54_0x1db4d3[a54_0x37fdd2(0x16f)]=![],a54_0x1db4d3[a54_0x37fdd2(0x172)]=null,a54_0x1db4d3[a54_0x37fdd2(0x169)]=![],a54_0x1db4d3[a54_0x37fdd2(0x173)]['id']=undefined,a54_0x1db4d3[a54_0x37fdd2(0x173)][a54_0x37fdd2(0x159)]=undefined;const workerDetails=a54_0x1db4d3;global[a54_0x37fdd2(0x161)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global['jestConfig'])try{isBrowserstackInfra()?(global[a54_0x37fdd2(0x179)]=isTrue(global[a54_0x37fdd2(0x17f)]?.[a54_0x37fdd2(0x155)]),global[a54_0x37fdd2(0x16a)]=isTrue(global[a54_0x37fdd2(0x17f)]?.[a54_0x37fdd2(0x171)])):(global[a54_0x37fdd2(0x179)]=!![],global[a54_0x37fdd2(0x16a)]=!![]);const helper=require(a54_0x37fdd2(0x166)),puppeteerVersion=helper[a54_0x37fdd2(0x16e)](a54_0x37fdd2(0x175))||helper[a54_0x37fdd2(0x16e)](a54_0x37fdd2(0x16b));if(puppeteerVersion)try{logger[a54_0x37fdd2(0x182)](a54_0x37fdd2(0x15f)),puppeteerPatcher=require(a54_0x37fdd2(0x16d)),puppeteerPatcher[a54_0x37fdd2(0x176)](global[a54_0x37fdd2(0x17f)]),logger['debug'](a54_0x37fdd2(0x15e));}catch(a54_0x30d1fb){logger[a54_0x37fdd2(0x182)]('[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20'+util['format'](a54_0x30d1fb));}if(puppeteerPatcher)try{const BrowserstackCLI=require('../v2/browserstackCLI'),CLIUtils=require('../v2/cliUtils'),{FRAMEWORKS}=require('../utils/constants');BrowserstackCLI['getInstance']()[a54_0x37fdd2(0x160)]()&&(logger[a54_0x37fdd2(0x182)](a54_0x37fdd2(0x15d)),process[a54_0x37fdd2(0x162)][a54_0x37fdd2(0x164)]=a54_0x37fdd2(0x15b),CLIUtils[a54_0x37fdd2(0x170)](FRAMEWORKS['JEST'],FRAMEWORKS['PUPPETEER']),BrowserstackCLI['getInstance']()[a54_0x37fdd2(0x181)]()['catch'](_0x2f7e4a=>{const _0x221d70=a54_0x37fdd2;logger[_0x221d70(0x182)]('[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20'+util[_0x221d70(0x156)](_0x2f7e4a));}));}catch(a54_0x58dc01){logger[a54_0x37fdd2(0x182)](a54_0x37fdd2(0x154)+util[a54_0x37fdd2(0x156)](a54_0x58dc01));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a54_0xf4f3f2){logger[a54_0x37fdd2(0x182)]('[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20'+util['format'](a54_0xf4f3f2));}logger['debug'](a54_0x37fdd2(0x167));
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a55_0x3ed52f=a55_0x5283;function a55_0x5283(_0x2a9750,_0x5ab595){const _0x5768ae=a55_0x5768();return a55_0x5283=function(_0x528320,_0x4fd92f){_0x528320=_0x528320-0x18f;let _0x5c44bb=_0x5768ae[_0x528320];return _0x5c44bb;},a55_0x5283(_0x2a9750,_0x5ab595);}(function(_0x36dd42,_0xd90739){const _0x9b4723=a55_0x5283,_0x404711=_0x36dd42();while(!![]){try{const _0x4c19af=parseInt(_0x9b4723(0x20d))/0x1*(-parseInt(_0x9b4723(0x1ad))/0x2)+-parseInt(_0x9b4723(0x1cc))/0x3*(-parseInt(_0x9b4723(0x216))/0x4)+parseInt(_0x9b4723(0x1e6))/0x5*(parseInt(_0x9b4723(0x1fa))/0x6)+-parseInt(_0x9b4723(0x1d8))/0x7*(parseInt(_0x9b4723(0x21c))/0x8)+-parseInt(_0x9b4723(0x1aa))/0x9*(parseInt(_0x9b4723(0x19c))/0xa)+parseInt(_0x9b4723(0x199))/0xb+parseInt(_0x9b4723(0x1ca))/0xc*(parseInt(_0x9b4723(0x208))/0xd);if(_0x4c19af===_0xd90739)break;else _0x404711['push'](_0x404711['shift']());}catch(_0x2a00c9){_0x404711['push'](_0x404711['shift']());}}}(a55_0x5768,0xd9103));function a55_0x5768(){const _0x360a08=['rvRmJ','MOCHA','VoTUw','tpzpq','816LoUInp','lRdTV','15033svrKAY','ujxUg','map','nightwatch','command','showHelpOnFail','./playwright/command','split','rFBps','hwusD','config','INTEGRATIONS','77yAwejU','dEQsf','NIGHTWATCH','./mocha/command','ats','lNoHt','usage:\x20$0\x20<command>\x20[args]','PrWer','FzfUE','env','./utils/constants','SDK_CLEANUP','./codeceptjs/command','setBrowserStackAutomationDisable','70TWyTdo','./newman/helper','spawn','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','alias','--require','boolean','yargs','assign','Running\x20SDK\x20with\x20args\x20','existsSync','aqjkt','strict','--no-package','QXneI','QoAyO','node','PLAYWRIGHT','Show\x20help','hgmFV','628158auacyi','push','getInstance','./load/index','otWCD','homedir','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','mocha','oaxFh','-pw:channel','filter','fVEoK','pw:channel\x20auto-capture\x20seed\x20failed:\x20','EVENTS','35373HuNmbL','load\x20[subcommand]','XZyDz','JEST','stack','1287613TdPuFi','exitCode','getConfigPath','isUndefined','ELPUs','../helpers/utilities','mocha/lib/cli/run.js','usage','Runs\x20the\x20binary\x20with\x20load\x20command','1412RURtkG','handler','gsnAE','CUCUMBER','kjbAP','../helpers/performance/performance-tester','558416ayJTzf','UsCyT','error','PlxWk','../../ats/src/index','aeNuL','demandCommand','./jest/command','ZyvMg','IDXOg','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','SDK_SETUP','parserConfiguration','codeceptjs','format','./nightwatch/command','YbMGK','mocha/lib/cli/commands.js','stop','DhHND','abYCC','sendLogs','start','URxMV','info','child_process','some','option','VERSION','NEWMAN','util','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','--no-opts','debug','BgaAE','3417997HQTlzv','uqqqN','DEBUG_FILE','2619380QRCsoV','./integrations/command','usWTF','newman','../helpers/helper','help','INFO','wrap','./cucumber-js/command','findAndReplace','run','CTzId','setTestObservabilityDisable','pSTqy','27nQpBHn','.local-not-set.json','slice','2mrzpSj','../helpers/test-observability/constants','describe','mocha/lib/cli/cli.js','--no-config','integrations','--config','./v2/browserstackCLI','includes','.browserstack','coqWa','--opts','argv','end','rmWqv','fireFunnelTestEvent','jest','framework','ElTFA','pw:*','winstonLogger','disableAutoCaptureLogs','DEBUG','IZrda','join'];a55_0x5768=function(){return _0x360a08;};return a55_0x5768();}const fs=require('fs'),path=require('path'),util=require(a55_0x3ed52f(0x193)),spawn=require(a55_0x3ed52f(0x235))[a55_0x3ed52f(0x1e8)],{requireModule}=require(a55_0x3ed52f(0x1a0)),PerformanceTester=require(a55_0x3ed52f(0x21b)),PerformanceEvents=require('../helpers/performance/constants')[a55_0x3ed52f(0x207)],helper=require(a55_0x3ed52f(0x1a0)),utilities=require(a55_0x3ed52f(0x212)),{default:BrowserStackSetup}=require('../helpers/BrowserStackSetup'),{FRAMEWORKS}=require(a55_0x3ed52f(0x1ae)),runIntegrations=require(a55_0x3ed52f(0x19d)),yargs=require(a55_0x3ed52f(0x1ed)),Constants=require(a55_0x3ed52f(0x1e2)),BrowserstackCLI=require(a55_0x3ed52f(0x1b4)),{isNewman}=require(a55_0x3ed52f(0x1e7)),logger=require('../helpers/logger')[a55_0x3ed52f(0x1c1)],origArgs=Object[a55_0x3ed52f(0x1ee)]([],process[a55_0x3ed52f(0x1b9)]),captureError=async(_0x5cdad,_0x50a209,_0x31187f,_0x298ee6=null,_0x3a2728=![])=>{const _0x2348a5=a55_0x3ed52f,_0x4b0564={'sZeAe':function(_0x506e1b,_0x71334c,_0x2e1d65,_0x5a436d){return _0x506e1b(_0x71334c,_0x2e1d65,_0x5a436d);},'PrWer':'SDKTestSuccessful'};try{logger[_0x2348a5(0x234)](_0x2348a5(0x1ef)+origArgs[_0x2348a5(0x1c5)]('\x20')),await _0x4b0564['sZeAe'](_0x5cdad,_0x50a209,_0x298ee6,_0x31187f);}catch(_0x2197ba){process[_0x2348a5(0x20e)]=0x1,logger['error'](util[_0x2348a5(0x22a)](_0x2197ba));const _0x36159c={'globalException':util['format']('%j',_0x2197ba)};PerformanceTester['end'](PerformanceEvents[_0x2348a5(0x227)],![],util[_0x2348a5(0x22a)](_0x2197ba));if(helper['isUndefined'](global[_0x2348a5(0x1d6)])&&helper[_0x2348a5(0x210)](global[_0x2348a5(0x1be)]))return;try{utilities[_0x2348a5(0x1bc)](_0x4b0564[_0x2348a5(0x1df)],_0x36159c,global[_0x2348a5(0x1d6)],global[_0x2348a5(0x1be)]);}catch(_0x5addf2){logger['debug'](_0x2348a5(0x194)+_0x5addf2[_0x2348a5(0x20c)]);}try{await helper[_0x2348a5(0x231)](global[_0x2348a5(0x1d6)]);}catch(_0x573969){logger['debug'](_0x2348a5(0x226)+_0x573969[_0x2348a5(0x20c)]);}PerformanceTester[_0x2348a5(0x1ba)](PerformanceEvents[_0x2348a5(0x227)],![],util[_0x2348a5(0x22a)](_0x2197ba));}finally{!_0x3a2728&&await BrowserstackCLI[_0x2348a5(0x1fc)]()[_0x2348a5(0x22e)](),PerformanceTester[_0x2348a5(0x232)](PerformanceEvents[_0x2348a5(0x1e3)]);}};try{const browserstackFolderPath=path['join'](helper[a55_0x3ed52f(0x1ff)](),a55_0x3ed52f(0x1b6));if(fs[a55_0x3ed52f(0x1f0)](browserstackFolderPath)){const filePath=path[a55_0x3ed52f(0x1c5)](browserstackFolderPath,a55_0x3ed52f(0x1ab));fs[a55_0x3ed52f(0x1f0)](filePath)&&fs['unlinkSync'](filePath);}}catch(a55_0x1c7dff){logger[a55_0x3ed52f(0x197)](a55_0x3ed52f(0x1e9)+a55_0x1c7dff['message']);}process[a55_0x3ed52f(0x1b9)][a55_0x3ed52f(0x1b5)](a55_0x3ed52f(0x201))&&(!process['argv'][a55_0x3ed52f(0x1b5)](a55_0x3ed52f(0x1b8))&&process['argv'][a55_0x3ed52f(0x1fb)](a55_0x3ed52f(0x196)),!process['argv']['find'](_0xe24ccd=>_0xe24ccd['includes'](a55_0x3ed52f(0x1b3)))&&process[a55_0x3ed52f(0x1b9)][a55_0x3ed52f(0x1fb)](a55_0x3ed52f(0x1b1)),!process[a55_0x3ed52f(0x1b9)][a55_0x3ed52f(0x1b5)]('--package')&&process[a55_0x3ed52f(0x1b9)][a55_0x3ed52f(0x1fb)](a55_0x3ed52f(0x1f3)),helper[a55_0x3ed52f(0x1a5)](process[a55_0x3ed52f(0x1b9)],a55_0x3ed52f(0x1eb),'--mochaRequire'));PerformanceTester[a55_0x3ed52f(0x232)](PerformanceEvents[a55_0x3ed52f(0x227)]);const a55_0x15d772={};a55_0x15d772['dot-notation']=![];const argv=yargs[a55_0x3ed52f(0x228)](a55_0x15d772)[a55_0x3ed52f(0x214)](a55_0x3ed52f(0x1de))[a55_0x3ed52f(0x1ea)]('v','version')[a55_0x3ed52f(0x1af)]('v')['alias']('h',a55_0x3ed52f(0x1a1))[a55_0x3ed52f(0x1a1)]('help')[a55_0x3ed52f(0x1d1)](!![],Constants[a55_0x3ed52f(0x191)]['HELP'])['command'](a55_0x3ed52f(0x1bd),Constants[a55_0x3ed52f(0x20b)][a55_0x3ed52f(0x1a2)],function(_0x40f8d8){const _0x443597=a55_0x3ed52f,_0x33f430={'coqWa':_0x443597(0x1bd),'YbMGK':function(_0x3b8f81,_0x25da55,_0x366d35,_0x529658,_0x3ea271,_0x6b4e5e){return _0x3b8f81(_0x25da55,_0x366d35,_0x529658,_0x3ea271,_0x6b4e5e);},'aeNuL':function(_0xf42907,_0x3834d5){return _0xf42907(_0x3834d5);},'IFZGN':_0x443597(0x223)},_0x50cb87=process[_0x443597(0x1b9)][_0x443597(0x1ac)](0x2);helper[_0x443597(0x1a8)](),helper[_0x443597(0x1e5)](),_0x40f8d8[_0x443597(0x1f2)](![]);const _0x5ad858=new BrowserStackSetup(_0x40f8d8[_0x443597(0x1b9)],_0x33f430[_0x443597(0x1b7)]);return _0x33f430[_0x443597(0x22c)](captureError,_0x33f430[_0x443597(0x221)](require,_0x33f430['IFZGN']),_0x40f8d8['argv'],_0x5ad858,_0x50cb87,!![]);})[a55_0x3ed52f(0x1d0)]('mocha',Constants[a55_0x3ed52f(0x1c7)][a55_0x3ed52f(0x1a2)],_0xbfe4f9=>{const _0x596320=a55_0x3ed52f,_0x4ee79a={'yjzrp':function(_0x4a6cd5,_0x14278f,_0x42f525,_0x433510){return _0x4a6cd5(_0x14278f,_0x42f525,_0x433510);},'oaxFh':function(_0x3c656d,_0x549038){return _0x3c656d(_0x549038);},'kjbAP':_0x596320(0x1db),'fVEoK':'mocha','hwusD':'Parsing\x20command\x20line\x20arguments','lRdTV':function(_0x37fa87,_0x34e0a5,_0x17f8e5){return _0x37fa87(_0x34e0a5,_0x17f8e5);},'pSTqy':_0x596320(0x213),'HFKzV':_0x596320(0x22d),'otWCD':function(_0x31cbe1,_0x3aed65,_0x5c0e18){return _0x31cbe1(_0x3aed65,_0x5c0e18);},'IZrda':_0x596320(0x1b0),'IhAdg':function(_0x3f924e){return _0x3f924e();}};process[_0x596320(0x1b9)]=process[_0x596320(0x1b9)][_0x596320(0x1ac)](0x1),helper[_0x596320(0x1a8)](),helper[_0x596320(0x1e5)]();const _0x301d05=new BrowserStackSetup(_0xbfe4f9['argv'],_0x4ee79a[_0x596320(0x205)]);logger['debug'](_0x4ee79a[_0x596320(0x1d5)]);const _0x4e5b0a=_0x4ee79a[_0x596320(0x1cb)](requireModule,_0x4ee79a[_0x596320(0x1a9)],_0x4ee79a['fVEoK']),_0x52e084=_0x4ee79a[_0x596320(0x1cb)](requireModule,_0x4ee79a['HFKzV'],_0x4ee79a[_0x596320(0x205)]);delete _0x4e5b0a['handler'],_0x4e5b0a[_0x596320(0x217)]=function(_0x53b71d){const _0x521a87=_0x596320;return _0x4ee79a['yjzrp'](captureError,_0x4ee79a[_0x521a87(0x202)](require,_0x4ee79a[_0x521a87(0x21a)]),_0x53b71d,_0x301d05);},_0x52e084[_0x596320(0x1a6)]=_0x4e5b0a;const {main:_0x1cbc58}=_0x4ee79a[_0x596320(0x1fe)](requireModule,_0x4ee79a[_0x596320(0x1c4)],_0x4ee79a[_0x596320(0x205)]);_0x4ee79a['IhAdg'](_0x1cbc58);})[a55_0x3ed52f(0x1d0)]('cucumber-js',Constants[a55_0x3ed52f(0x219)][a55_0x3ed52f(0x1a2)],function(_0x5377ce){const _0x163540=a55_0x3ed52f,_0x17f3f4={'UsCyT':'cucumber-js','XZyDz':function(_0x2c2bbe,_0x41b73e,_0x25a184,_0x397151,_0x4d49a2,_0x14e86f){return _0x2c2bbe(_0x41b73e,_0x25a184,_0x397151,_0x4d49a2,_0x14e86f);},'GvZKG':function(_0x1d575a,_0xeac126){return _0x1d575a(_0xeac126);},'ujxUg':_0x163540(0x1a4)},_0x1fdee4=process[_0x163540(0x1b9)][_0x163540(0x1ac)](0x2),_0x34e63b=new BrowserStackSetup(_0x5377ce['argv'],_0x17f3f4[_0x163540(0x21d)]);return _0x17f3f4[_0x163540(0x20a)](captureError,_0x17f3f4['GvZKG'](require,_0x17f3f4[_0x163540(0x1cd)]),_0x5377ce[_0x163540(0x1b9)],_0x34e63b,_0x1fdee4,!![]);})[a55_0x3ed52f(0x1d0)](a55_0x3ed52f(0x1f6),Constants['VANILLA']['INFO'],function(_0xa25959){const _0x4975c0=a55_0x3ed52f,_0x3d7d4a={'bDtjY':'vanilla','URxMV':function(_0x590bd7,_0x4e775b){return _0x590bd7(_0x4e775b);},'QXneI':_0x4975c0(0x19f),'rvRmJ':function(_0x42a655,_0x5d644e,_0x31290a,_0x2c9fbb,_0x585563){return _0x42a655(_0x5d644e,_0x31290a,_0x2c9fbb,_0x585563);},'uqqqN':'./newman/command','ZyvMg':function(_0x2a2116,_0x1310f2){return _0x2a2116(_0x1310f2);},'begxJ':'./vanilla-js/command'},_0x16c3d1=process['argv'][_0x4975c0(0x1ac)](0x2),_0x542ee4=new BrowserStackSetup(_0xa25959[_0x4975c0(0x1b9)],_0x3d7d4a['bDtjY']),_0x5e7139=_0x542ee4?_0x542ee4[_0x4975c0(0x1d6)]:null;if(_0x3d7d4a[_0x4975c0(0x233)](isNewman,_0x5e7139))return _0x542ee4[_0x4975c0(0x1be)]=_0x3d7d4a[_0x4975c0(0x1f4)],global[_0x4975c0(0x1be)]=_0x3d7d4a[_0x4975c0(0x1f4)],_0x3d7d4a['rvRmJ'](captureError,_0x3d7d4a[_0x4975c0(0x233)](require,_0x3d7d4a[_0x4975c0(0x19a)]),_0xa25959[_0x4975c0(0x1b9)],_0x542ee4,_0x16c3d1);return _0x3d7d4a[_0x4975c0(0x1c6)](captureError,_0x3d7d4a[_0x4975c0(0x224)](require,_0x3d7d4a['begxJ']),_0xa25959[_0x4975c0(0x1b9)],_0x542ee4,_0x16c3d1);})[a55_0x3ed52f(0x1d0)](a55_0x3ed52f(0x1cf),Constants[a55_0x3ed52f(0x1da)]['INFO'],function(_0x1f9e17){const _0x3f320d=a55_0x3ed52f,_0x5b657f={'dEQsf':function(_0xfafb16,_0x461816,_0x2312b7,_0x4e09cd,_0x1088f3){return _0xfafb16(_0x461816,_0x2312b7,_0x4e09cd,_0x1088f3);},'XpPgh':function(_0x116633,_0x92deee){return _0x116633(_0x92deee);},'lNoHt':_0x3f320d(0x22b)},_0x2ba1ad=process[_0x3f320d(0x1b9)][_0x3f320d(0x1ac)](0x2),_0x561e22=new BrowserStackSetup(_0x1f9e17['argv']);return _0x5b657f[_0x3f320d(0x1d9)](captureError,_0x5b657f['XpPgh'](require,_0x5b657f[_0x3f320d(0x1dd)]),_0x1f9e17['argv'],_0x561e22,_0x2ba1ad);})[a55_0x3ed52f(0x1d0)](a55_0x3ed52f(0x229),Constants['CODECEPTJS'][a55_0x3ed52f(0x1a2)],function(_0x2151a3){const _0x5af724=a55_0x3ed52f,_0x1828ba={'VoTUw':_0x5af724(0x229),'usWTF':function(_0x3ec632,_0x36f3bf,_0x28930a,_0x25e76b,_0x533444){return _0x3ec632(_0x36f3bf,_0x28930a,_0x25e76b,_0x533444);},'mGGAW':function(_0x2ea7b2,_0x3100e1){return _0x2ea7b2(_0x3100e1);},'ELPUs':_0x5af724(0x1e4)},_0x974905=process[_0x5af724(0x1b9)][_0x5af724(0x1ac)](0x2),_0x12167d=new BrowserStackSetup(_0x2151a3[_0x5af724(0x1b9)],_0x1828ba[_0x5af724(0x1c8)]);return _0x1828ba[_0x5af724(0x19e)](captureError,_0x1828ba['mGGAW'](require,_0x1828ba[_0x5af724(0x211)]),_0x2151a3[_0x5af724(0x1b9)],_0x12167d,_0x974905);})['command']('ats',Constants['HST']['INFO'],function(_0x5d3e6b){const _0x59127d=a55_0x3ed52f,_0x204116={'PlxWk':function(_0xeb2588,_0xaf57c4,_0xd98a96){return _0xeb2588(_0xaf57c4,_0xd98a96);},'DtaxQ':function(_0x7466ef,_0x52abde){return _0x7466ef(_0x52abde);},'rmWqv':_0x59127d(0x220)},_0xf39a16=process['argv'][_0x59127d(0x1ac)](0x2);return _0x204116[_0x59127d(0x21f)](captureError,_0x204116['DtaxQ'](require,_0x204116[_0x59127d(0x1bb)]),_0x5d3e6b);})[a55_0x3ed52f(0x1d0)](a55_0x3ed52f(0x1b2),Constants[a55_0x3ed52f(0x1d7)][a55_0x3ed52f(0x1a2)],function(_0x1db132){const _0x3fffbd=a55_0x3ed52f,_0x3d5369={'hgmFV':function(_0x405f00,_0x1a985f){return _0x405f00(_0x1a985f);}};return _0x3d5369[_0x3fffbd(0x1f9)](runIntegrations,_0x1db132);})[a55_0x3ed52f(0x1d0)]('playwright',Constants[a55_0x3ed52f(0x1f7)][a55_0x3ed52f(0x1a2)],function(_0x959454){const _0x1513e2=a55_0x3ed52f,_0x48636a={'PfqEg':'pw:channel','FzfUE':function(_0x3f888e,_0x3c956b){return _0x3f888e&&_0x3c956b;},'CTzId':function(_0x12e6ac,_0x195e1b,_0x41d429,_0x1ee995,_0x437970,_0x3e478d){return _0x12e6ac(_0x195e1b,_0x41d429,_0x1ee995,_0x437970,_0x3e478d);},'VfJRV':function(_0x25d4e1,_0x4ed778){return _0x25d4e1(_0x4ed778);},'IDXOg':_0x1513e2(0x1d2)},_0xfc941f=process[_0x1513e2(0x1b9)][_0x1513e2(0x1ac)](0x2);helper[_0x1513e2(0x20f)](process[_0x1513e2(0x1b9)])&&(process[_0x1513e2(0x1e1)]['BROWSERSTACK_CONFIG_FILE_PATH']=helper[_0x1513e2(0x20f)](process['argv']));helper[_0x1513e2(0x1a8)](),helper['setBrowserStackAutomationDisable']();const _0x392467=new BrowserStackSetup(_0x959454['argv'],FRAMEWORKS[_0x1513e2(0x1f7)]);try{if(!_0x392467[_0x1513e2(0x1d6)]||!_0x392467['config'][_0x1513e2(0x1c2)]){const _0x281971=_0x48636a['PfqEg'],_0x581352=process[_0x1513e2(0x1e1)][_0x1513e2(0x1c3)]||'',_0x32abed=_0x581352[_0x1513e2(0x1d3)](',')[_0x1513e2(0x1ce)](_0x595339=>_0x595339['trim']())[_0x1513e2(0x204)](Boolean),_0x4e5c20=_0x32abed[_0x1513e2(0x18f)](_0x1e8d51=>_0x1e8d51===_0x1513e2(0x203)||_0x1e8d51==='-pw:*'||_0x1e8d51==='-*'),_0x17c867=_0x32abed[_0x1513e2(0x18f)](_0x49d455=>_0x49d455===_0x281971||_0x49d455===_0x1513e2(0x1c0)||_0x49d455==='*');if(_0x48636a[_0x1513e2(0x1e0)](!_0x4e5c20,!_0x17c867)){const _0x37edae=helper['getPwChannelLogPath']();_0x37edae&&(process['env'][_0x1513e2(0x1c3)]=_0x581352?_0x581352+','+_0x281971:_0x281971,!process[_0x1513e2(0x1e1)][_0x1513e2(0x19b)]&&(process[_0x1513e2(0x1e1)][_0x1513e2(0x19b)]=_0x37edae));}}}catch(_0x507b7c){logger[_0x1513e2(0x197)](_0x1513e2(0x206)+util[_0x1513e2(0x22a)](_0x507b7c));}return _0x48636a[_0x1513e2(0x1a7)](captureError,_0x48636a['VfJRV'](require,_0x48636a[_0x1513e2(0x225)]),_0x959454[_0x1513e2(0x1b9)],_0x392467,_0xfc941f,!![]);})[a55_0x3ed52f(0x1d0)](a55_0x3ed52f(0x209),a55_0x3ed52f(0x215),function(_0x584639){const _0x613fea=a55_0x3ed52f,_0x4713af={};_0x4713af[_0x613fea(0x230)]=_0x613fea(0x1a1),_0x4713af[_0x613fea(0x22f)]=_0x613fea(0x1ec),_0x4713af[_0x613fea(0x1bf)]=_0x613fea(0x1f8);const _0x258acd=_0x4713af;return _0x584639[_0x613fea(0x1a1)](![])[_0x613fea(0x190)](_0x258acd[_0x613fea(0x230)],{'alias':'h','type':_0x258acd[_0x613fea(0x22f)],'describe':_0x258acd[_0x613fea(0x1bf)]})['strict'](![])['exitProcess'](![]);},function(_0x4cb753){const _0x1e2f15=a55_0x3ed52f,_0x1b213c={'BgaAE':function(_0x15a2bd,_0x5892ba,_0x143258){return _0x15a2bd(_0x5892ba,_0x143258);},'tpzpq':function(_0x5f5ae6,_0x27285c){return _0x5f5ae6(_0x27285c);},'aqjkt':_0x1e2f15(0x1fd)},_0x25ea7b={};return _0x25ea7b[_0x1e2f15(0x1b9)]=_0x4cb753,_0x1b213c[_0x1e2f15(0x198)](captureError,_0x1b213c[_0x1e2f15(0x1c9)](require,_0x1b213c[_0x1e2f15(0x1f1)]),_0x25ea7b);})[a55_0x3ed52f(0x1d0)](a55_0x3ed52f(0x19f),Constants[a55_0x3ed52f(0x192)][a55_0x3ed52f(0x1a2)],function(_0x3e21dc){const _0x10d9d3=a55_0x3ed52f,_0x4049fa={'gsnAE':_0x10d9d3(0x19f),'CRwBg':function(_0x5331ef,_0x33e555,_0xddda89,_0x39568a,_0x335821){return _0x5331ef(_0x33e555,_0xddda89,_0x39568a,_0x335821);},'QoAyO':function(_0x55cded,_0x285479){return _0x55cded(_0x285479);},'rFBps':'./newman/command'},_0xaa1959=process[_0x10d9d3(0x1b9)][_0x10d9d3(0x1ac)](0x2);helper[_0x10d9d3(0x1a8)](),helper[_0x10d9d3(0x1e5)](),_0x3e21dc[_0x10d9d3(0x1f2)](![]);const _0x16f54d=new BrowserStackSetup(_0x3e21dc[_0x10d9d3(0x1b9)],_0x4049fa[_0x10d9d3(0x218)]);return _0x4049fa['CRwBg'](captureError,_0x4049fa[_0x10d9d3(0x1f5)](require,_0x4049fa[_0x10d9d3(0x1d4)]),_0x3e21dc[_0x10d9d3(0x1b9)],_0x16f54d,_0xaa1959);})[a55_0x3ed52f(0x222)](0x1,a55_0x3ed52f(0x195))[a55_0x3ed52f(0x1a3)](null)[a55_0x3ed52f(0x1b9)];!helper['isUndefined'](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a55_0x3ed52f(0x1dc)&&console[a55_0x3ed52f(0x21e)](a55_0x3ed52f(0x200));
|
|
2
|
+
'use strict';function a55_0x595c(){const _0x3822e0=['codeceptjs','command','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','VERSION','stack','setBrowserStackAutomationDisable','INTEGRATIONS','describe','disableAutoCaptureLogs','qUVNE','alias','push','--mochaRequire','JEST','EBqTi','SDK_CLEANUP','Parsing\x20command\x20line\x20arguments','vGRNM','28178oqLalY','--no-opts','xfkCw','child_process','OvEHL','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','ojEsQ','load\x20[subcommand]','pw:*','version','pw:channel\x20auto-capture\x20seed\x20failed:\x20','tvdZS','IhvMU','config','iKQBZ','eVmPG','NEWMAN','./vanilla-js/command','cucumber-js','framework','PbLsY','4345800uLEmQC','--require','PLAYWRIGHT','38988gemyMh','./codeceptjs/command','lRTSS','existsSync','TDsdB','env','usage','JzNmY','5563685ambPLZ','includes','VtZXx','trim','../helpers/BrowserStackSetup','-pw:channel','getPwChannelLogPath','./mocha/command','hWfbH','../helpers/helper','option','DEBUG','OimXq','DliND','integrations','./newman/command','playwright','ats','mocha','boolean','25157mWKxzs','PDNfQ','URAzS','map','isUndefined','find','../../ats/src/index','-pw:*','sendLogs','filter','.browserstack','debug','help','strict','spawn','PUdja','./playwright/command','setTestObservabilityDisable','unlinkSync','showHelpOnFail','CVcpm','./nightwatch/command','split','pw:channel','CPyRE','parserConfiguration','.local-not-set.json','run','rAycm','HELP','HST','jypTQ','some','pxLUu','vanilla','join','demandCommand','format','usage:\x20$0\x20<command>\x20[args]','../helpers/performance/constants','CODECEPTJS','exitProcess','CBZbi','12672472cKxkRF','./load/index','./newman/helper','vvgzd','slice','89Uijpmx','DEBUG_FILE','eFkIp','wrap','message','--package','UaxJq','end','exitCode','EVENTS','GaTkl','assign','rmUMx','./jest/command','jest','PYTAt','9zBBfwC','Running\x20SDK\x20with\x20args\x20','mocha/lib/cli/commands.js','../helpers/test-observability/constants','CjSpV','CUCUMBER','newman','plWyv','77IFUmMc','handler','4PvziGF','244506apdbom','findAndReplace','INFO','winstonLogger','IXXAR','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','fireFunnelTestEvent','MOCHA','start','dot-notation','../helpers/utilities','./utils/constants','mocha/lib/cli/cli.js','./cucumber-js/command','Runs\x20the\x20binary\x20with\x20load\x20command','argv','getConfigPath','KLzSr','MCETL','hYMbN','riwWw','SDK_SETUP','RmfiG','nightwatch','error','FgIer','node','14872480jURmFL','ALzYy'];a55_0x595c=function(){return _0x3822e0;};return a55_0x595c();}const a55_0x1f34a4=a55_0x1292;(function(_0x15c10b,_0x44dcac){const _0xbe5b5d=a55_0x1292,_0x3dbcb6=_0x15c10b();while(!![]){try{const _0x40cd4e=-parseInt(_0xbe5b5d(0x1a6))/0x1*(parseInt(_0xbe5b5d(0x1f0))/0x2)+-parseInt(_0xbe5b5d(0x205))/0x3+-parseInt(_0xbe5b5d(0x1c0))/0x4*(parseInt(_0xbe5b5d(0x210))/0x5)+-parseInt(_0xbe5b5d(0x1c1))/0x6*(-parseInt(_0xbe5b5d(0x1be))/0x7)+-parseInt(_0xbe5b5d(0x1a1))/0x8*(parseInt(_0xbe5b5d(0x1b6))/0x9)+-parseInt(_0xbe5b5d(0x1dc))/0xa+-parseInt(_0xbe5b5d(0x224))/0xb*(-parseInt(_0xbe5b5d(0x208))/0xc);if(_0x40cd4e===_0x44dcac)break;else _0x3dbcb6['push'](_0x3dbcb6['shift']());}catch(_0x113798){_0x3dbcb6['push'](_0x3dbcb6['shift']());}}}(a55_0x595c,0xf239f));const fs=require('fs'),path=require('path'),util=require('util'),spawn=require(a55_0x1f34a4(0x1f3))[a55_0x1f34a4(0x184)],{requireModule}=require(a55_0x1f34a4(0x219)),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a55_0x1f34a4(0x19d))[a55_0x1f34a4(0x1af)],helper=require(a55_0x1f34a4(0x219)),utilities=require(a55_0x1f34a4(0x1cb)),{default:BrowserStackSetup}=require(a55_0x1f34a4(0x214)),{FRAMEWORKS}=require(a55_0x1f34a4(0x1b9)),runIntegrations=require('./integrations/command'),yargs=require('yargs'),Constants=require(a55_0x1f34a4(0x1cc)),BrowserstackCLI=require('./v2/browserstackCLI'),{isNewman}=require(a55_0x1f34a4(0x1a3)),logger=require('../helpers/logger')[a55_0x1f34a4(0x1c4)],origArgs=Object[a55_0x1f34a4(0x1b1)]([],process[a55_0x1f34a4(0x1d0)]),captureError=async(_0x548da7,_0x3df318,_0x281b10,_0xff5dd2=null,_0x4779ff=![])=>{const _0x14e595=a55_0x1f34a4,_0x145b6f={'CVcpm':function(_0x5cd01e,_0x16da5e,_0x108adb,_0x79426a){return _0x5cd01e(_0x16da5e,_0x108adb,_0x79426a);},'KLzSr':'SDKTestSuccessful'};try{logger['info'](_0x14e595(0x1b7)+origArgs[_0x14e595(0x199)]('\x20')),await _0x145b6f[_0x14e595(0x18a)](_0x548da7,_0x3df318,_0xff5dd2,_0x281b10);}catch(_0x38d795){process[_0x14e595(0x1ae)]=0x1,logger[_0x14e595(0x1d9)](util['format'](_0x38d795));const _0x2b504b={'globalException':util[_0x14e595(0x19b)]('%j',_0x38d795)};PerformanceTester[_0x14e595(0x1ad)](PerformanceEvents[_0x14e595(0x1d6)],![],util[_0x14e595(0x19b)](_0x38d795));if(helper[_0x14e595(0x228)](global['config'])&&helper[_0x14e595(0x228)](global[_0x14e595(0x203)]))return;try{utilities[_0x14e595(0x1c7)](_0x145b6f[_0x14e595(0x1d2)],_0x2b504b,global['config'],global[_0x14e595(0x203)]);}catch(_0x272735){logger[_0x14e595(0x181)](_0x14e595(0x1f5)+_0x272735[_0x14e595(0x1e2)]);}try{await helper[_0x14e595(0x17e)](global[_0x14e595(0x1fd)]);}catch(_0x34e485){logger[_0x14e595(0x181)]('Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20'+_0x34e485[_0x14e595(0x1e2)]);}PerformanceTester['end'](PerformanceEvents[_0x14e595(0x1d6)],![],util[_0x14e595(0x19b)](_0x38d795));}finally{!_0x4779ff&&await BrowserstackCLI['getInstance']()['stop'](),PerformanceTester['start'](PerformanceEvents[_0x14e595(0x1ed)]);}};try{const browserstackFolderPath=path[a55_0x1f34a4(0x199)](helper['homedir'](),a55_0x1f34a4(0x180));if(fs[a55_0x1f34a4(0x20b)](browserstackFolderPath)){const filePath=path[a55_0x1f34a4(0x199)](browserstackFolderPath,a55_0x1f34a4(0x190));fs[a55_0x1f34a4(0x20b)](filePath)&&fs[a55_0x1f34a4(0x188)](filePath);}}catch(a55_0x4f93bd){logger[a55_0x1f34a4(0x181)](a55_0x1f34a4(0x1c6)+a55_0x4f93bd[a55_0x1f34a4(0x1aa)]);}process[a55_0x1f34a4(0x1d0)][a55_0x1f34a4(0x211)](a55_0x1f34a4(0x222))&&(!process['argv'][a55_0x1f34a4(0x211)]('--opts')&&process[a55_0x1f34a4(0x1d0)]['push'](a55_0x1f34a4(0x1f1)),!process[a55_0x1f34a4(0x1d0)][a55_0x1f34a4(0x229)](_0x52d31e=>_0x52d31e['includes']('--config'))&&process[a55_0x1f34a4(0x1d0)][a55_0x1f34a4(0x1e9)]('--no-config'),!process['argv'][a55_0x1f34a4(0x211)](a55_0x1f34a4(0x1ab))&&process[a55_0x1f34a4(0x1d0)]['push']('--no-package'),helper[a55_0x1f34a4(0x1c2)](process[a55_0x1f34a4(0x1d0)],a55_0x1f34a4(0x206),a55_0x1f34a4(0x1ea)));PerformanceTester[a55_0x1f34a4(0x1c9)](PerformanceEvents[a55_0x1f34a4(0x1d6)]);function a55_0x1292(_0x16a0b7,_0x324146){const _0x595ccb=a55_0x595c();return a55_0x1292=function(_0x12924c,_0x52a8b9){_0x12924c=_0x12924c-0x17d;let _0x26e854=_0x595ccb[_0x12924c];return _0x26e854;},a55_0x1292(_0x16a0b7,_0x324146);}const a55_0x2aff8c={};a55_0x2aff8c[a55_0x1f34a4(0x1ca)]=![];const argv=yargs[a55_0x1f34a4(0x18f)](a55_0x2aff8c)[a55_0x1f34a4(0x20e)](a55_0x1f34a4(0x19c))[a55_0x1f34a4(0x1e8)]('v',a55_0x1f34a4(0x1f9))[a55_0x1f34a4(0x1e5)]('v')['alias']('h',a55_0x1f34a4(0x182))[a55_0x1f34a4(0x182)]('help')[a55_0x1f34a4(0x189)](!![],Constants[a55_0x1f34a4(0x1e1)][a55_0x1f34a4(0x193)])[a55_0x1f34a4(0x1df)](a55_0x1f34a4(0x1b4),Constants[a55_0x1f34a4(0x1eb)][a55_0x1f34a4(0x1c3)],function(_0x5436a5){const _0x2efcdb=a55_0x1f34a4,_0x131c2f={'iUjBa':_0x2efcdb(0x1b4),'eFkIp':function(_0x1c358f,_0x394ada,_0x51b05c,_0x5efee5,_0x1bd4d5,_0x1eb2f8){return _0x1c358f(_0x394ada,_0x51b05c,_0x5efee5,_0x1bd4d5,_0x1eb2f8);},'RmfiG':function(_0x48ab60,_0x40b0ad){return _0x48ab60(_0x40b0ad);},'vGRNM':_0x2efcdb(0x1b3)},_0x105770=process[_0x2efcdb(0x1d0)][_0x2efcdb(0x1a5)](0x2);helper[_0x2efcdb(0x187)](),helper[_0x2efcdb(0x1e3)](),_0x5436a5[_0x2efcdb(0x183)](![]);const _0x48d820=new BrowserStackSetup(_0x5436a5[_0x2efcdb(0x1d0)],_0x131c2f['iUjBa']);return _0x131c2f[_0x2efcdb(0x1a8)](captureError,_0x131c2f[_0x2efcdb(0x1d7)](require,_0x131c2f[_0x2efcdb(0x1ef)]),_0x5436a5[_0x2efcdb(0x1d0)],_0x48d820,_0x105770,!![]);})[a55_0x1f34a4(0x1df)](a55_0x1f34a4(0x222),Constants[a55_0x1f34a4(0x1c8)][a55_0x1f34a4(0x1c3)],_0x6c49e0=>{const _0x34f1dd=a55_0x1f34a4,_0x3321e2={'tvdZS':function(_0xe04c6f,_0x5b777a,_0x459a49,_0x2971f2){return _0xe04c6f(_0x5b777a,_0x459a49,_0x2971f2);},'IhvMU':function(_0x30b9a6,_0xbb9bf4){return _0x30b9a6(_0xbb9bf4);},'TDsdB':_0x34f1dd(0x217),'qUVNE':_0x34f1dd(0x222),'CjSpV':_0x34f1dd(0x1ee),'rAycm':function(_0x20fe62,_0x3d37e3,_0xceac74){return _0x20fe62(_0x3d37e3,_0xceac74);},'pxLUu':'mocha/lib/cli/run.js','iKQBZ':function(_0x290eff,_0x15e178,_0x4c97bb){return _0x290eff(_0x15e178,_0x4c97bb);},'CPyRE':_0x34f1dd(0x1b8),'OimXq':_0x34f1dd(0x1cd),'ALzYy':function(_0x2d7a91){return _0x2d7a91();}};process[_0x34f1dd(0x1d0)]=process[_0x34f1dd(0x1d0)][_0x34f1dd(0x1a5)](0x1),helper[_0x34f1dd(0x187)](),helper['setBrowserStackAutomationDisable']();const _0x1aa525=new BrowserStackSetup(_0x6c49e0['argv'],_0x3321e2[_0x34f1dd(0x1e7)]);logger[_0x34f1dd(0x181)](_0x3321e2[_0x34f1dd(0x1ba)]);const _0x14e597=_0x3321e2[_0x34f1dd(0x192)](requireModule,_0x3321e2[_0x34f1dd(0x197)],_0x3321e2['qUVNE']),_0x894093=_0x3321e2[_0x34f1dd(0x1fe)](requireModule,_0x3321e2[_0x34f1dd(0x18e)],_0x3321e2[_0x34f1dd(0x1e7)]);delete _0x14e597['handler'],_0x14e597[_0x34f1dd(0x1bf)]=function(_0x58d3a9){const _0x46d527=_0x34f1dd;return _0x3321e2[_0x46d527(0x1fb)](captureError,_0x3321e2[_0x46d527(0x1fc)](require,_0x3321e2[_0x46d527(0x20c)]),_0x58d3a9,_0x1aa525);},_0x894093[_0x34f1dd(0x191)]=_0x14e597;const {main:_0x4681eb}=_0x3321e2[_0x34f1dd(0x192)](requireModule,_0x3321e2[_0x34f1dd(0x21c)],_0x3321e2[_0x34f1dd(0x1e7)]);_0x3321e2[_0x34f1dd(0x1dd)](_0x4681eb);})['command']('cucumber-js',Constants[a55_0x1f34a4(0x1bb)]['INFO'],function(_0x1d6c40){const _0x2232b2=a55_0x1f34a4,_0x267193={'vvgzd':_0x2232b2(0x202),'URAzS':function(_0x114efe,_0x33b3b6,_0x489f31,_0x41aa11,_0x15be34,_0x52c5dd){return _0x114efe(_0x33b3b6,_0x489f31,_0x41aa11,_0x15be34,_0x52c5dd);},'CBZbi':function(_0x571987,_0x12a70d){return _0x571987(_0x12a70d);},'PYTAt':_0x2232b2(0x1ce)},_0xd53f76=process[_0x2232b2(0x1d0)]['slice'](0x2),_0x3b0fcf=new BrowserStackSetup(_0x1d6c40[_0x2232b2(0x1d0)],_0x267193[_0x2232b2(0x1a4)]);return _0x267193[_0x2232b2(0x226)](captureError,_0x267193[_0x2232b2(0x1a0)](require,_0x267193[_0x2232b2(0x1b5)]),_0x1d6c40['argv'],_0x3b0fcf,_0xd53f76,!![]);})['command'](a55_0x1f34a4(0x1db),Constants['VANILLA'][a55_0x1f34a4(0x1c3)],function(_0x504c04){const _0x2412d6=a55_0x1f34a4,_0x51f91c={'plWyv':_0x2412d6(0x198),'PDNfQ':function(_0x3e16f0,_0x445707){return _0x3e16f0(_0x445707);},'jypTQ':_0x2412d6(0x1bc),'xfkCw':function(_0x5d751f,_0x15098c,_0x701324,_0xefc476,_0x2a181c){return _0x5d751f(_0x15098c,_0x701324,_0xefc476,_0x2a181c);},'UaxJq':_0x2412d6(0x21f),'eVmPG':function(_0x928baa,_0x54b762,_0x229b7e,_0x179211,_0x2146ef){return _0x928baa(_0x54b762,_0x229b7e,_0x179211,_0x2146ef);},'GaTkl':function(_0x55a0e5,_0x551110){return _0x55a0e5(_0x551110);},'DliND':_0x2412d6(0x201)},_0x3d052b=process[_0x2412d6(0x1d0)][_0x2412d6(0x1a5)](0x2),_0x56274d=new BrowserStackSetup(_0x504c04[_0x2412d6(0x1d0)],_0x51f91c[_0x2412d6(0x1bd)]),_0x1ac98d=_0x56274d?_0x56274d[_0x2412d6(0x1fd)]:null;if(_0x51f91c[_0x2412d6(0x225)](isNewman,_0x1ac98d))return _0x56274d['framework']=_0x51f91c[_0x2412d6(0x195)],global['framework']=_0x51f91c['jypTQ'],_0x51f91c[_0x2412d6(0x1f2)](captureError,_0x51f91c['PDNfQ'](require,_0x51f91c[_0x2412d6(0x1ac)]),_0x504c04[_0x2412d6(0x1d0)],_0x56274d,_0x3d052b);return _0x51f91c[_0x2412d6(0x1ff)](captureError,_0x51f91c[_0x2412d6(0x1b0)](require,_0x51f91c[_0x2412d6(0x21d)]),_0x504c04[_0x2412d6(0x1d0)],_0x56274d,_0x3d052b);})[a55_0x1f34a4(0x1df)](a55_0x1f34a4(0x1d8),Constants['NIGHTWATCH']['INFO'],function(_0x3d2e4f){const _0x1af907=a55_0x1f34a4,_0x1ef7fa={'riwWw':function(_0x21ebee,_0x4febfd,_0xe87859,_0x5c2ba5,_0x120875){return _0x21ebee(_0x4febfd,_0xe87859,_0x5c2ba5,_0x120875);},'FgIer':function(_0x3dd069,_0x58712b){return _0x3dd069(_0x58712b);},'EKQPg':_0x1af907(0x18b)},_0x229c10=process[_0x1af907(0x1d0)][_0x1af907(0x1a5)](0x2),_0x3b43c8=new BrowserStackSetup(_0x3d2e4f[_0x1af907(0x1d0)]);return _0x1ef7fa[_0x1af907(0x1d5)](captureError,_0x1ef7fa[_0x1af907(0x1da)](require,_0x1ef7fa['EKQPg']),_0x3d2e4f['argv'],_0x3b43c8,_0x229c10);})['command'](a55_0x1f34a4(0x1de),Constants[a55_0x1f34a4(0x19e)]['INFO'],function(_0x554a6f){const _0x4f048c=a55_0x1f34a4,_0x5611dc={'VtZXx':'codeceptjs','IOIox':function(_0x5f1e3f,_0x30cfea,_0x21afc2,_0x58d1c0,_0x5c0125){return _0x5f1e3f(_0x30cfea,_0x21afc2,_0x58d1c0,_0x5c0125);},'sllOp':function(_0x1b824f,_0x1b6e46){return _0x1b824f(_0x1b6e46);},'hWfbH':_0x4f048c(0x209)},_0x5bfb8b=process['argv'][_0x4f048c(0x1a5)](0x2),_0x305310=new BrowserStackSetup(_0x554a6f[_0x4f048c(0x1d0)],_0x5611dc[_0x4f048c(0x212)]);return _0x5611dc['IOIox'](captureError,_0x5611dc['sllOp'](require,_0x5611dc[_0x4f048c(0x218)]),_0x554a6f[_0x4f048c(0x1d0)],_0x305310,_0x5bfb8b);})[a55_0x1f34a4(0x1df)]('ats',Constants[a55_0x1f34a4(0x194)]['INFO'],function(_0x3d579c){const _0xc702ce=a55_0x1f34a4,_0x43a355={'KelKy':function(_0x197ec7,_0x4aa599,_0x366890){return _0x197ec7(_0x4aa599,_0x366890);},'PbLsY':function(_0x245254,_0x62b253){return _0x245254(_0x62b253);},'PUdja':_0xc702ce(0x22a)},_0x68894a=process[_0xc702ce(0x1d0)][_0xc702ce(0x1a5)](0x2);return _0x43a355['KelKy'](captureError,_0x43a355[_0xc702ce(0x204)](require,_0x43a355[_0xc702ce(0x185)]),_0x3d579c);})[a55_0x1f34a4(0x1df)](a55_0x1f34a4(0x21e),Constants[a55_0x1f34a4(0x1e4)][a55_0x1f34a4(0x1c3)],function(_0xc977cd){const _0x459ba2={'fUscM':function(_0x4d0cdb,_0x55d908){return _0x4d0cdb(_0x55d908);}};return _0x459ba2['fUscM'](runIntegrations,_0xc977cd);})[a55_0x1f34a4(0x1df)](a55_0x1f34a4(0x220),Constants[a55_0x1f34a4(0x207)][a55_0x1f34a4(0x1c3)],function(_0x56b827){const _0x4f09c5=a55_0x1f34a4,_0x2c791d={'uZDJT':_0x4f09c5(0x18d),'IXXAR':function(_0x2dc19f,_0xa380e4){return _0x2dc19f&&_0xa380e4;},'JzNmY':function(_0x4d9e79,_0x46371a,_0x31e0f6,_0xfa5b4f,_0x834063,_0x4e7a77){return _0x4d9e79(_0x46371a,_0x31e0f6,_0xfa5b4f,_0x834063,_0x4e7a77);},'lRTSS':function(_0xdf9c80,_0x23475d){return _0xdf9c80(_0x23475d);},'OvEHL':_0x4f09c5(0x186)},_0x389970=process[_0x4f09c5(0x1d0)]['slice'](0x2);helper[_0x4f09c5(0x1d1)](process['argv'])&&(process['env']['BROWSERSTACK_CONFIG_FILE_PATH']=helper[_0x4f09c5(0x1d1)](process['argv']));helper[_0x4f09c5(0x187)](),helper[_0x4f09c5(0x1e3)]();const _0x3213d5=new BrowserStackSetup(_0x56b827[_0x4f09c5(0x1d0)],FRAMEWORKS[_0x4f09c5(0x207)]);try{if(!_0x3213d5[_0x4f09c5(0x1fd)]||!_0x3213d5[_0x4f09c5(0x1fd)][_0x4f09c5(0x1e6)]){const _0x3ee64a=_0x2c791d['uZDJT'],_0x2178c8=process[_0x4f09c5(0x20d)][_0x4f09c5(0x21b)]||'',_0x2a8547=_0x2178c8[_0x4f09c5(0x18c)](',')[_0x4f09c5(0x227)](_0x4f4561=>_0x4f4561[_0x4f09c5(0x213)]())[_0x4f09c5(0x17f)](Boolean),_0x260d01=_0x2a8547['some'](_0x5269e6=>_0x5269e6===_0x4f09c5(0x215)||_0x5269e6===_0x4f09c5(0x17d)||_0x5269e6==='-*'),_0x4d835b=_0x2a8547[_0x4f09c5(0x196)](_0x15b538=>_0x15b538===_0x3ee64a||_0x15b538===_0x4f09c5(0x1f8)||_0x15b538==='*');if(_0x2c791d[_0x4f09c5(0x1c5)](!_0x260d01,!_0x4d835b)){const _0x5155cd=helper[_0x4f09c5(0x216)]();_0x5155cd&&(process[_0x4f09c5(0x20d)][_0x4f09c5(0x21b)]=_0x2178c8?_0x2178c8+','+_0x3ee64a:_0x3ee64a,!process[_0x4f09c5(0x20d)][_0x4f09c5(0x1a7)]&&(process['env'][_0x4f09c5(0x1a7)]=_0x5155cd));}}}catch(_0x1d762b){logger[_0x4f09c5(0x181)](_0x4f09c5(0x1fa)+util[_0x4f09c5(0x19b)](_0x1d762b));}return _0x2c791d[_0x4f09c5(0x20f)](captureError,_0x2c791d[_0x4f09c5(0x20a)](require,_0x2c791d[_0x4f09c5(0x1f4)]),_0x56b827[_0x4f09c5(0x1d0)],_0x3213d5,_0x389970,!![]);})['command'](a55_0x1f34a4(0x1f7),a55_0x1f34a4(0x1cf),function(_0x2a1e93){const _0x317641=a55_0x1f34a4,_0x51a64d={};_0x51a64d[_0x317641(0x1f6)]=_0x317641(0x182),_0x51a64d['MCETL']=_0x317641(0x223),_0x51a64d[_0x317641(0x1b2)]='Show\x20help';const _0x12deb3=_0x51a64d;return _0x2a1e93[_0x317641(0x182)](![])[_0x317641(0x21a)](_0x12deb3[_0x317641(0x1f6)],{'alias':'h','type':_0x12deb3[_0x317641(0x1d3)],'describe':_0x12deb3[_0x317641(0x1b2)]})['strict'](![])[_0x317641(0x19f)](![]);},function(_0x335b06){const _0x5c66d8=a55_0x1f34a4,_0x3e1cea={'hYMbN':function(_0x13f789,_0x2cffbd,_0x4dac94){return _0x13f789(_0x2cffbd,_0x4dac94);},'nANmc':function(_0x568af8,_0x3101e8){return _0x568af8(_0x3101e8);},'BOVmS':_0x5c66d8(0x1a2)},_0x268ab1={};return _0x268ab1['argv']=_0x335b06,_0x3e1cea[_0x5c66d8(0x1d4)](captureError,_0x3e1cea['nANmc'](require,_0x3e1cea['BOVmS']),_0x268ab1);})['command']('newman',Constants[a55_0x1f34a4(0x200)][a55_0x1f34a4(0x1c3)],function(_0x4cbeef){const _0x41920b=a55_0x1f34a4,_0x36cf6b={'lJoHR':_0x41920b(0x1bc),'PEKuH':function(_0x4055c2,_0x4699e7,_0x1bde05,_0x537c6c,_0x4d093f){return _0x4055c2(_0x4699e7,_0x1bde05,_0x537c6c,_0x4d093f);},'uOVQt':function(_0x22dfff,_0x15fe0d){return _0x22dfff(_0x15fe0d);},'EBqTi':'./newman/command'},_0x2aa5e2=process[_0x41920b(0x1d0)][_0x41920b(0x1a5)](0x2);helper[_0x41920b(0x187)](),helper[_0x41920b(0x1e3)](),_0x4cbeef['strict'](![]);const _0x43f29f=new BrowserStackSetup(_0x4cbeef[_0x41920b(0x1d0)],_0x36cf6b['lJoHR']);return _0x36cf6b['PEKuH'](captureError,_0x36cf6b['uOVQt'](require,_0x36cf6b[_0x41920b(0x1ec)]),_0x4cbeef[_0x41920b(0x1d0)],_0x43f29f,_0x2aa5e2);})[a55_0x1f34a4(0x19a)](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a55_0x1f34a4(0x1a9)](null)['argv'];!helper[a55_0x1f34a4(0x228)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a55_0x1f34a4(0x221)&&console[a55_0x1f34a4(0x1d9)](a55_0x1f34a4(0x1e0));
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const a56_0x2c9de7=a56_0x3887;(function(_0xdcc224,_0x3ac587){const _0x1d6574=a56_0x3887,_0xc24e10=_0xdcc224();while(!![]){try{const _0x1e45f2=parseInt(_0x1d6574(0x198))/0x1*(-parseInt(_0x1d6574(0x171))/0x2)+parseInt(_0x1d6574(0x19c))/0x3+-parseInt(_0x1d6574(0x186))/0x4+-parseInt(_0x1d6574(0x17d))/0x5+parseInt(_0x1d6574(0x1a6))/0x6+-parseInt(_0x1d6574(0x170))/0x7*(parseInt(_0x1d6574(0x1a3))/0x8)+parseInt(_0x1d6574(0x163))/0x9;if(_0x1e45f2===_0x3ac587)break;else _0xc24e10['push'](_0xc24e10['shift']());}catch(_0x117aa1){_0xc24e10['push'](_0xc24e10['shift']());}}}(a56_0x4e90,0x748e7));const fs=require('fs'),helper=require(a56_0x2c9de7(0x184)),utilities=require(a56_0x2c9de7(0x1a7)),yaml=require('js-yaml'),yargs=require(a56_0x2c9de7(0x1a1)),logger=require(a56_0x2c9de7(0x19a))[a56_0x2c9de7(0x18e)],configFileTemplate=__dirname+a56_0x2c9de7(0x19e),configFileTemplatePW=__dirname+a56_0x2c9de7(0x178),configFile=process[a56_0x2c9de7(0x1aa)]()+'/browserstack.yml',packageFile=process[a56_0x2c9de7(0x1aa)]()+'/package.json',frameworks=[a56_0x2c9de7(0x19d),a56_0x2c9de7(0x1ab),'cucumber-js','node',a56_0x2c9de7(0x19f),a56_0x2c9de7(0x17f),a56_0x2c9de7(0x172)];function a56_0x3887(_0x10b533,_0x3b8323){const _0x4e9005=a56_0x4e90();return a56_0x3887=function(_0x3887d3,_0x3ab9df){_0x3887d3=_0x3887d3-0x163;let _0x42443d=_0x4e9005[_0x3887d3];return _0x42443d;},a56_0x3887(_0x10b533,_0x3b8323);}let config;logger[a56_0x2c9de7(0x1a9)]('Creating\x20configuration\x20file...'),createConfigurationFile(yargs[a56_0x2c9de7(0x196)][a56_0x2c9de7(0x18b)],yargs[a56_0x2c9de7(0x196)][a56_0x2c9de7(0x177)],yargs[a56_0x2c9de7(0x196)][a56_0x2c9de7(0x172)]);try{sdkSetup();}catch(a56_0x207614){logger['debug'](a56_0x2c9de7(0x189)+a56_0x207614);}addScriptInPackageJson();function createConfigurationFile(_0x42f749,_0x3c9edb,_0x31c8e7=![]){const _0xee2a4d=a56_0x2c9de7,_0x45282b={};_0x45282b[_0xee2a4d(0x1a2)]='utf8',_0x45282b['mSqUf']=_0xee2a4d(0x176),_0x45282b[_0xee2a4d(0x16b)]=_0xee2a4d(0x174);const _0x2edeae=_0x45282b;try{let _0x3f3967=fs[_0xee2a4d(0x18d)](_0x31c8e7?configFileTemplatePW:configFileTemplate,_0x2edeae[_0xee2a4d(0x1a2)]);_0x42f749&&(_0x3f3967=_0x3f3967[_0xee2a4d(0x165)](_0x2edeae[_0xee2a4d(0x18a)],_0x42f749)),_0x3c9edb&&(_0x3f3967=_0x3f3967[_0xee2a4d(0x165)](_0x2edeae[_0xee2a4d(0x16b)],_0x3c9edb)),config=yaml['load'](_0x3f3967),fs['writeFileSync'](configFile,_0x3f3967,_0x4009d9=>{const _0xcd0770=_0xee2a4d;_0x4009d9&&logger[_0xcd0770(0x195)](_0x4009d9);});}catch(_0x4ebc7c){logger['error'](_0x4ebc7c);}}function addPostInstallScript(_0x51d80d,_0x3e9a60){const _0x93ef1b=a56_0x2c9de7,_0x15bdb0={};_0x15bdb0['JgKxZ']=_0x93ef1b(0x185),_0x15bdb0['ftIYz']=_0x93ef1b(0x16c),_0x15bdb0['ZQmXu']=_0x93ef1b(0x169);const _0x118e9b=_0x15bdb0;let _0x3ffbaf=_0x51d80d[_0x118e9b[_0x93ef1b(0x17c)]];if(_0x3ffbaf&&_0x3ffbaf[_0x93ef1b(0x17a)](_0x118e9b[_0x93ef1b(0x175)]))return;!_0x3ffbaf?_0x3ffbaf=_0x118e9b[_0x93ef1b(0x175)]:_0x3ffbaf+=_0x118e9b['ZQmXu'],_0x3e9a60[_0x93ef1b(0x16f)]([_0x118e9b[_0x93ef1b(0x17c)],_0x3ffbaf]);}function addScriptInPackageJson(){const _0x2d0977=a56_0x2c9de7,_0x2dd401={'LDfmc':_0x2d0977(0x166),'kwhat':function(_0x1d2063,_0x34c1c3){return _0x1d2063<_0x34c1c3;},'zwcis':function(_0x31b3ba,_0x43bf52,_0x2662fd){return _0x31b3ba(_0x43bf52,_0x2662fd);},'XiSdl':function(_0x46d337,_0x2c4a01){return _0x46d337<_0x2c4a01;},'ALukX':function(_0x4ac252,_0x462405,_0x1e8449){return _0x4ac252(_0x462405,_0x1e8449);},'ctotO':function(_0x2ef6b1,_0x1bff95){return _0x2ef6b1<_0x1bff95;},'MDMyK':function(_0x1b36fc,_0x4eeaee){return _0x1b36fc!==_0x4eeaee;},'aslvg':_0x2d0977(0x16a)},_0x388783=JSON[_0x2d0977(0x17e)](fs['readFileSync'](packageFile,_0x2dd401[_0x2d0977(0x193)])),_0x47731c=[];for(let _0x41cdbe=0x0;_0x2dd401[_0x2d0977(0x190)](_0x41cdbe,frameworks['length']);_0x41cdbe+=0x1){const _0x1a2652=_0x2dd401[_0x2d0977(0x167)](findScriptsWithFramework,_0x388783['scripts'],frameworks[_0x41cdbe]);for(let _0x2e8191=0x0;_0x2dd401[_0x2d0977(0x181)](_0x2e8191,_0x1a2652['length']);_0x2e8191+=0x1){_0x47731c[_0x2d0977(0x16f)](_0x2dd401['zwcis'](getUpdatedCommand,_0x388783[_0x2d0977(0x18f)],_0x1a2652[_0x2e8191]));}_0x2dd401['ALukX'](addPostInstallScript,_0x388783['scripts'],_0x47731c);}const _0x24709a={..._0x388783['scripts']},_0x529b0f=_0x24709a;for(let _0x5f2135=0x0;_0x2dd401[_0x2d0977(0x187)](_0x5f2135,_0x47731c[_0x2d0977(0x197)]);_0x5f2135+=0x1){_0x529b0f[_0x47731c[_0x5f2135][0x0]]=_0x47731c[_0x5f2135][0x1];}_0x2dd401[_0x2d0977(0x179)](JSON[_0x2d0977(0x192)](_0x388783[_0x2d0977(0x18f)]),JSON[_0x2d0977(0x192)](_0x529b0f))&&(logger['info'](_0x2dd401[_0x2d0977(0x1a4)]),_0x388783[_0x2d0977(0x18f)]=_0x529b0f,fs['writeFileSync'](packageFile,JSON[_0x2d0977(0x192)](_0x388783,null,0x2),_0x2b1f7b=>{const _0x1e30bc=_0x2d0977;_0x2b1f7b&&logger[_0x1e30bc(0x195)](_0x2b1f7b);}));};function findScriptsWithFramework(_0x497359,_0x20e72a){const _0x489169=a56_0x2c9de7,_0x42addd={};_0x42addd[_0x489169(0x17b)]=function(_0x30eaae,_0x5c7ace){return _0x30eaae<_0x5c7ace;},_0x42addd[_0x489169(0x183)]=_0x489169(0x1a0);const _0x196326=_0x42addd,_0x37cc63=[],_0x38a9b1=Object[_0x489169(0x19b)](_0x497359);for(let _0x91def5=0x0;_0x196326[_0x489169(0x17b)](_0x91def5,_0x38a9b1[_0x489169(0x197)]);_0x91def5+=0x1){_0x38a9b1[_0x91def5][0x1][_0x489169(0x17a)](_0x20e72a)&&!_0x38a9b1[_0x91def5][0x1]['includes'](_0x196326['Hyygh'])&&_0x37cc63[_0x489169(0x16f)](_0x38a9b1[_0x91def5][0x0]);}return _0x37cc63;}function getUpdatedCommand(_0x2f171b,_0x3ff093){const _0x424527=a56_0x2c9de7,_0x2eae13={};_0x2eae13[_0x424527(0x182)]=function(_0x215bc7,_0x142e1f){return _0x215bc7!==_0x142e1f;},_0x2eae13[_0x424527(0x1a8)]=_0x424527(0x1a0),_0x2eae13[_0x424527(0x194)]=function(_0x24d0ce,_0x19e7a4){return _0x24d0ce===_0x19e7a4;};const _0x1c0ca0=_0x2eae13,_0x4a55d5=_0x3ff093+_0x424527(0x173),_0x2f31fc=_0x2f171b[_0x3ff093],_0x41571b=_0x2f31fc[_0x424527(0x191)]('\x20');for(const _0xb39923 of frameworks){if(_0x1c0ca0[_0x424527(0x182)](_0x41571b['indexOf'](_0xb39923),-0x1)){_0x41571b[_0x424527(0x180)](_0x41571b[_0x424527(0x164)](_0xb39923),0x0,_0x1c0ca0[_0x424527(0x1a8)]);break;}}let _0x52a969=_0x41571b[_0x424527(0x1a5)]('\x20');return _0x1c0ca0['SjMAj'](_0x52a969,_0x2f31fc)&&(_0x52a969='browserstack-node-sdk\x20'+_0x2f31fc),[_0x4a55d5,_0x52a969];}function sdkSetup(){const _0x52c03c=a56_0x2c9de7,_0x5ea6d5={};_0x5ea6d5['mICaI']=_0x52c03c(0x18c),_0x5ea6d5[_0x52c03c(0x199)]='SDKSetup';const _0x4610ca=_0x5ea6d5;if(helper[_0x52c03c(0x16e)](config))return;config['source']=_0x4610ca[_0x52c03c(0x168)];try{utilities[_0x52c03c(0x188)](_0x4610ca[_0x52c03c(0x199)],{},config,'');}catch(_0x251512){logger['debug']('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+_0x251512);}}function a56_0x4e90(){const _0x2161b0=['Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','mSqUf','username','node-setup','readFileSync','winstonLogger','scripts','kwhat','split','stringify','LDfmc','SjMAj','error','argv','length','685724azviyk','aGdOK','../helpers/logger','entries','2504652svXaxC','mocha','/../../browserstack.yml.sample','nightwatch','browserstack-node-sdk','yargs','cwolU','609352ZSmozv','aslvg','join','2551626LKxlKo','../helpers/utilities','vkmXe','info','cwd','jest','12565602LrpPar','indexOf','replace','utf8','zwcis','mICaI','\x20&&\x20npm\x20update\x20browserstack-node-sdk','Adding\x20new\x20script(s)\x20in\x20package.json...','oorqT','npm\x20update\x20browserstack-node-sdk','Setup\x20completed','isUndefined','push','77RzBHcC','2TXAEDo','playwright','-browserstack','YOUR_ACCESS_KEY','ftIYz','YOUR_USERNAME','key','/../../browserstack.pw.yml.sample','MDMyK','includes','KOYYe','JgKxZ','1747315MKLYpn','parse','codeceptjs','splice','XiSdl','vydbv','Hyygh','../helpers/helper','postinstall','1223488RmPTPT','ctotO','fireFunnelTestEvent'];a56_0x4e90=function(){return _0x2161b0;};return a56_0x4e90();}logger[a56_0x2c9de7(0x1a9)](a56_0x2c9de7(0x16d));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a57_0x2198(){const _0xc2af83=['KEFvO','waitForExit','SDK_SETUP','FaDnv','UhDVK','ykoGE','24832uqPfCo','winstonLogger','parallelTestRun','configuration','all','stderr','../../helpers/test-observability/utils','iNfre','getStdout','test-file-start','results','stdout','1296828AKeMyi','parallelVanillaRun','emittery','RTwHH','eycBb','parallelCucumberRun','Workers\x20failed\x20to\x20exit\x20gracefully','3250390kcZIjw','dfknH','rABTa','MufYt','PvhNj','json','pipe','yMFUr','postMessage','gMsPM','push','jest-worker','218936zsahcy','getStderr','fMnLX','platforms','emit','BOyje','DdpQe','Worker','GqRRH','format','end','then','KBRSi','1715JnrAxx','sALCu','worker','UNSTABLE_onCustomMessage','info','platform-run-start','failureCount','./testWorker.js','exit','cucumberWorker','xTglw','bDjfu','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','worker_threads','13pMiuRL','Qdgom','exitCode','ySugu','send','debug','qslKF','map','log','496975QZnwak','error','platformCaps','UXijj','platform','Exception\x20in\x20sending\x20worker\x20message\x20','config','3TmdPuY','wNgFP','test-file-failure','Running\x20','../../helpers/performance/performance-tester','test-file-success','length','DRAnC','platform-run-success','HArXE','aHxxv','dnwjX','platformIndex','util','1200846dmToyG','EVENTS','_workerPool','KCvjM','p-limit','file','111498EDJzWg','stop','../../helpers/performance/constants','InIEl','vanillaWorker','TWGQa','resolve','QzSUx'];a57_0x2198=function(){return _0xc2af83;};return a57_0x2198();}function a57_0x132c(_0x27e644,_0x204624){const _0x2198f=a57_0x2198();return a57_0x132c=function(_0x132ca3,_0x53910f){_0x132ca3=_0x132ca3-0x8d;let _0x37c1a4=_0x2198f[_0x132ca3];return _0x37c1a4;},a57_0x132c(_0x27e644,_0x204624);}const a57_0x7a5f74=a57_0x132c;(function(_0x3cacc3,_0x501e23){const _0x2a82e0=a57_0x132c,_0x166e81=_0x3cacc3();while(!![]){try{const _0x4dc55a=parseInt(_0x2a82e0(0xd7))/0x1*(parseInt(_0x2a82e0(0x8f))/0x2)+parseInt(_0x2a82e0(0xe7))/0x3*(parseInt(_0x2a82e0(0xbc))/0x4)+parseInt(_0x2a82e0(0xe0))/0x5+parseInt(_0x2a82e0(0xf5))/0x6+-parseInt(_0x2a82e0(0xc9))/0x7*(parseInt(_0x2a82e0(0x9d))/0x8)+-parseInt(_0x2a82e0(0xa9))/0x9+parseInt(_0x2a82e0(0xb0))/0xa;if(_0x4dc55a===_0x501e23)break;else _0x166e81['push'](_0x166e81['shift']());}catch(_0x3b05d3){_0x166e81['push'](_0x166e81['shift']());}}}(a57_0x2198,0x79f12));const Worker=require(a57_0x7a5f74(0xbb))[a57_0x7a5f74(0xc3)],Emittery=require(a57_0x7a5f74(0xab)),pLimit=require(a57_0x7a5f74(0x8d)),{parentPort}=require(a57_0x7a5f74(0xd6)),util=require(a57_0x7a5f74(0xf4)),logger=require('../../helpers/logger')[a57_0x7a5f74(0x9e)],PerformanceTester=require(a57_0x7a5f74(0xeb)),PerformanceEvents=require(a57_0x7a5f74(0x91))[a57_0x7a5f74(0xf6)],{debug}=require(a57_0x7a5f74(0xa3)),TestHubHandler=require('../../helpers/testhub/testhubHandler');exports[a57_0x7a5f74(0x9f)]=(_0x3fd2c7,_0x3ae069,_0x28ddb3)=>new Promise(async _0x2f7063=>{const _0x48e0e5=a57_0x7a5f74,_0x3ec6b6={'DdpQe':_0x48e0e5(0xcf),'xTglw':function(_0x4c4672,_0x38651e){return _0x4c4672+_0x38651e;},'UXijj':_0x48e0e5(0xa7),'CzFab':'Workers\x20failed\x20to\x20exit\x20gracefully','TWGQa':function(_0x333e57,_0xc5ef60){return _0x333e57(_0xc5ef60);},'Qdgom':_0x48e0e5(0xa6),'fMnLX':_0x48e0e5(0xd0),'ySugu':'worker','yMFUr':'json','sALCu':_0x48e0e5(0xb6),'PvhNj':function(_0x51fde6,_0x55a580){return _0x51fde6*_0x55a580;},'iNfre':_0x48e0e5(0xec),'KCvjM':_0x48e0e5(0xe9),'KEFvO':function(_0x81f145,_0x2da03c){return _0x81f145(_0x2da03c);},'bDjfu':function(_0x47f675,_0x42cd7e){return _0x47f675*_0x42cd7e;}},_0x2ae752=_0x28ddb3[_0x48e0e5(0xe6)],_0x4a94a9={},_0x48da26=new Worker(require['resolve'](_0x3ec6b6[_0x48e0e5(0xbe)]),{'exposedMethods':[_0x3ec6b6[_0x48e0e5(0xda)]],'forkOptions':{'serialization':_0x3ec6b6[_0x48e0e5(0xb7)],'stdio':_0x3ec6b6[_0x48e0e5(0xca)]},'idleMemoryLimit':undefined,'maxRetries':0x0,'numWorkers':_0x3ec6b6[_0x48e0e5(0xb4)](_0x3ae069,0x1),'enableWorkerThreads':!![]}),_0x437d78=new Emittery();_0x437d78['on'](_0x3ec6b6[_0x48e0e5(0xa4)],_0x42e75f=>{const _0x42a19d=_0x48e0e5;_0x4a94a9[_0x42e75f[0x0]]?(_0x4a94a9[_0x42e75f[0x0]][_0x3ec6b6['DdpQe']]=_0x3ec6b6[_0x42a19d(0xd3)](_0x4a94a9[_0x42e75f[0x0]][_0x3ec6b6['DdpQe']],_0x42e75f[0x1][_0x3ec6b6[_0x42a19d(0xc2)]]),_0x4a94a9[_0x42e75f[0x0]][_0x3ec6b6[_0x42a19d(0xe3)]]=[..._0x4a94a9[_0x42e75f[0x0]][_0x3ec6b6[_0x42a19d(0xe3)]],..._0x42e75f[0x1][_0x3ec6b6[_0x42a19d(0xe3)]]]):_0x4a94a9[_0x42e75f[0x0]]={'failureCount':_0x42e75f[0x1][_0x3ec6b6[_0x42a19d(0xc2)]],'results':[..._0x42e75f[0x1][_0x3ec6b6['UXijj']]]};}),_0x437d78['on'](_0x3ec6b6[_0x48e0e5(0xf8)],_0x5740da=>console[_0x48e0e5(0xdf)](_0x5740da[0x1]));_0x48da26[_0x48e0e5(0xa5)]()&&_0x48da26[_0x48e0e5(0xa5)]()[_0x48e0e5(0xb6)](process['stdout']);_0x48da26[_0x48e0e5(0xbd)]()&&_0x48da26[_0x48e0e5(0xbd)]()[_0x48e0e5(0xb6)](process[_0x48e0e5(0xa2)]);const _0x3b2e40=async()=>{const _0x276a36=_0x48e0e5,{forceExited:_0x61ac18}=await _0x48da26[_0x276a36(0xc6)]();_0x61ac18&&console[_0x276a36(0xe1)](_0x3ec6b6['CzFab']);try{await TestHubHandler[_0x276a36(0x90)]();}catch(_0x81485f){_0x3ec6b6[_0x276a36(0x94)](debug,_0x276a36(0xd5)+_0x81485f);}_0x3ec6b6[_0x276a36(0x94)](_0x2f7063,_0x4a94a9);},_0x2d621c=_0x3ec6b6[_0x48e0e5(0x97)](pLimit,_0x3ec6b6[_0x48e0e5(0xd4)](_0x3ae069,0x1)),_0x123bd3=_0x4358d1=>_0x2d621c(async()=>{const _0x358fd2=_0x48e0e5;await _0x437d78[_0x358fd2(0xc0)](_0x3ec6b6[_0x358fd2(0xd8)],_0x4358d1);const _0x30b1cd=_0x48da26[_0x358fd2(0xcb)](_0x4358d1,_0x2ae752);try{parentPort&&_0x30b1cd[_0x358fd2(0xcc)](_0x5e43a3=>{const _0x2ffa8b=_0x358fd2;try{parentPort[_0x2ffa8b(0xb8)](_0x5e43a3);}catch(_0x421d89){logger[_0x2ffa8b(0xdc)](_0x2ffa8b(0xe5)+util[_0x2ffa8b(0xc5)](_0x421d89));}});}catch(_0x18b711){logger[_0x358fd2(0xdc)]('Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'+util[_0x358fd2(0xc5)](_0x18b711));}return _0x30b1cd;});PerformanceTester[_0x48e0e5(0xc6)](PerformanceEvents[_0x48e0e5(0x99)]),Promise[_0x48e0e5(0xa1)](_0x3fd2c7[_0x48e0e5(0xde)](_0x1e0816=>_0x123bd3(_0x1e0816)[_0x48e0e5(0xc7)](_0x4694cd=>_0x437d78['emit']('test-file-success',[_0x1e0816[_0x48e0e5(0xa0)][_0x48e0e5(0xe4)],_0x4694cd]),_0x183f0e=>_0x437d78[_0x48e0e5(0xc0)](_0x48e0e5(0xe9),[_0x1e0816,_0x183f0e]))))['then'](_0x3b2e40,_0x3b2e40);}),exports[a57_0x7a5f74(0xae)]=(_0x1ab233,_0x5ea18c,_0x15daef,_0x4c7538,_0x4226ef)=>{const _0x1b9d0e=a57_0x7a5f74,_0x4a1b0b={'GqRRH':_0x1b9d0e(0xce),'VwpQS':_0x1b9d0e(0xaf),'QzSUx':function(_0x19239f,_0x1c9b23){return _0x19239f(_0x1c9b23);},'qslKF':_0x1b9d0e(0xd0),'ykoGE':_0x1b9d0e(0xd2),'gMsPM':_0x1b9d0e(0xb5),'DRAnC':_0x1b9d0e(0xb6),'FaDnv':'platform-run-success','wNgFP':'platform-run-failure'};return new Promise(_0x153516=>{const _0x1c95f8=_0x1b9d0e,_0x37d9cd={'rABTa':_0x4a1b0b['VwpQS'],'dnwjX':function(_0x673fed,_0x342241){const _0x5a963c=a57_0x132c;return _0x4a1b0b[_0x5a963c(0x96)](_0x673fed,_0x342241);}},_0x3df3d0=[],_0x31fcff=new Worker(require[_0x1c95f8(0x95)](_0x4a1b0b[_0x1c95f8(0xdd)]),{'exposedMethods':[_0x4a1b0b[_0x1c95f8(0x9c)]],'forkOptions':{'serialization':_0x4a1b0b[_0x1c95f8(0xb9)],'stdio':_0x4a1b0b[_0x1c95f8(0xee)]},'numWorkers':_0x1ab233[_0x1c95f8(0xed)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x0}),_0x4826a5=new Emittery();_0x4826a5['on'](_0x4a1b0b[_0x1c95f8(0x9a)],_0x443b72=>{const _0x57543a=_0x1c95f8;_0x3df3d0[_0x57543a(0xba)]([_0x443b72[0x0],_0x443b72[0x1]]);}),_0x4826a5['on'](_0x4a1b0b[_0x1c95f8(0xe8)],_0xd8a35e=>console[_0x1c95f8(0xdf)](_0xd8a35e[0x1]));_0x31fcff[_0x1c95f8(0xa5)]()&&_0x31fcff[_0x1c95f8(0xa5)]()['pipe'](process[_0x1c95f8(0xa8)]);_0x31fcff['getStderr']()&&_0x31fcff[_0x1c95f8(0xbd)]()[_0x1c95f8(0xb6)](process['stderr']);const _0x52125e=async()=>{const _0x5168ab=_0x1c95f8,{forceExited:_0x303e41}=await _0x31fcff[_0x5168ab(0xc6)]();_0x303e41&&console['error'](_0x37d9cd[_0x5168ab(0xb2)]),_0x37d9cd[_0x5168ab(0xf2)](_0x153516,_0x3df3d0);},_0x2892a7=_0x4a1b0b['QzSUx'](pLimit,_0x1ab233[_0x1c95f8(0xed)]||0x1),_0x3ca0da=(_0x8b93b5,_0x4e6a20)=>_0x2892a7(async()=>{const _0x2c8fdd=_0x1c95f8;return await _0x4826a5[_0x2c8fdd(0xc0)](_0x4a1b0b[_0x2c8fdd(0xc4)],_0x8b93b5),_0x5ea18c[_0x2c8fdd(0xe2)]=_0x15daef[_0x2c8fdd(0xbf)][_0x4e6a20],_0x5ea18c[_0x2c8fdd(0xf3)]=_0x4e6a20,_0x31fcff[_0x2c8fdd(0xd2)](_0x8b93b5,_0x5ea18c,_0x15daef,_0x4c7538,_0x4226ef);});Promise[_0x1c95f8(0xa1)](_0x1ab233[_0x1c95f8(0xde)]((_0x29e0e2,_0x57ed56)=>_0x3ca0da(_0x29e0e2,_0x57ed56)[_0x1c95f8(0xc7)](_0x3ff60f=>_0x4826a5[_0x1c95f8(0xc0)](_0x1c95f8(0xef),[_0x29e0e2,_0x3ff60f]),_0x5f1710=>_0x4826a5[_0x1c95f8(0xc0)]('platform-run-failure',[_0x29e0e2,_0x5f1710]))))['then'](_0x52125e,_0x52125e);});},exports[a57_0x7a5f74(0xaa)]=(_0xa2cbdc,_0x2c320b)=>new Promise(_0x5d9312=>{const _0x2f8bed=a57_0x7a5f74,_0x332177={'kWeas':function(_0x1e447d,_0x275a7f){return _0x1e447d===_0x275a7f;},'ZDPfK':function(_0x999ceb,_0x4afdbc){return _0x999ceb!==_0x4afdbc;},'eycBb':_0x2f8bed(0xd1),'aHxxv':_0x2f8bed(0xaf),'YVWld':function(_0x4f9c36,_0xac7ed8){return _0x4f9c36(_0xac7ed8);},'KBRSi':'./testWorker.js','BOyje':'vanillaWorker','HArXE':'json','RTwHH':'pipe','UhDVK':'test-file-success','cAver':_0x2f8bed(0xe9),'dfknH':function(_0x1111a1,_0x5d4b08){return _0x1111a1(_0x5d4b08);}},_0x8ceca4={},_0x58c44d=new Worker(require[_0x2f8bed(0x95)](_0x332177[_0x2f8bed(0xc8)]),{'exposedMethods':[_0x332177[_0x2f8bed(0xc1)]],'forkOptions':{'serialization':_0x332177[_0x2f8bed(0xf0)],'stdio':_0x332177[_0x2f8bed(0xac)]},'numWorkers':_0x2c320b,'enableWorkerThreads':![],'maxRetries':0x0,'idleMemoryLimit':undefined}),_0xca57c3=new Emittery();_0xca57c3['on'](_0x332177[_0x2f8bed(0x9b)],_0x364eab=>{const _0x3cf095=_0x2f8bed;_0x364eab[0x0]&&logger[_0x3cf095(0xcd)](_0x3cf095(0xea)+_0x364eab[0x1]+'\x20for',_0x364eab[0x0]);}),_0xca57c3['on'](_0x332177['cAver'],_0x5daa34=>{const _0x2abf85=_0x2f8bed;process[_0x2abf85(0xd9)]=0x1;});_0x58c44d[_0x2f8bed(0xa5)]()&&_0x58c44d['getStdout']()['pipe'](process[_0x2f8bed(0xa8)]);_0x58c44d['getStderr']()&&_0x58c44d[_0x2f8bed(0xbd)]()[_0x2f8bed(0xb6)](process[_0x2f8bed(0xa2)]);const _0x257cf9=async()=>{const _0x537b3c=_0x2f8bed,_0x4568c5={'mJhlb':function(_0x282934,_0x249b57){return _0x332177['kWeas'](_0x282934,_0x249b57);},'InIEl':function(_0x160810,_0x569a18){return _0x332177['ZDPfK'](_0x160810,_0x569a18);},'MufYt':_0x332177[_0x537b3c(0xad)]};let _0x3e598e=0x0;const _0x2e2443=_0x58c44d[_0x537b3c(0xf7)]['getWorkers'](),_0x53c358=()=>{},_0x1fb306=_0x2e2443[_0x537b3c(0xde)](async _0xe759c2=>{const _0xad1702=_0x537b3c;_0xe759c2[_0xad1702(0xdb)]([0x2,![]],_0x53c358,_0x53c358,_0x53c358),_0xe759c2['_child']['on'](_0x4568c5[_0xad1702(0xb3)],_0x437442=>{const _0x1b1821=_0xad1702;_0x4568c5['mJhlb'](_0x3e598e,0x0)&&_0x4568c5[_0x1b1821(0x92)](_0x437442,0x0)&&(_0x3e598e=_0x437442);}),await _0xe759c2[_0xad1702(0x98)]();});await Promise['all'](_0x1fb306),process[_0x537b3c(0xd9)]=_0x3e598e;const {forceExited:_0x309a8d}=await _0x58c44d[_0x537b3c(0xc6)]();_0x309a8d&&console[_0x537b3c(0xe1)](_0x332177[_0x537b3c(0xf1)]),_0x332177['YVWld'](_0x5d9312,_0x8ceca4);},_0x133be0=_0x332177[_0x2f8bed(0xb1)](pLimit,_0x2c320b),_0xaa96cf=_0x914de3=>_0x133be0(async()=>{const _0x2228ea=_0x2f8bed;return _0x58c44d[_0x2228ea(0x93)](_0x914de3);});Promise['all'](_0xa2cbdc[_0x2f8bed(0xde)](_0x47edca=>_0xaa96cf(_0x47edca)[_0x2f8bed(0xc7)](_0x57e204=>_0xca57c3['emit'](_0x2f8bed(0xec),[_0x47edca[_0x2f8bed(0xa0)]['platform'],_0x47edca[_0x2f8bed(0xa0)][_0x2f8bed(0x8e)]]),_0x49de09=>_0xca57c3['emit'](_0x2f8bed(0xe9),[_0x47edca,_0x49de09]))))[_0x2f8bed(0xc7)](_0x257cf9,_0x257cf9);});
|
|
1
|
+
function a57_0x3b0f(){const _0x2a003c=['map','stop','debug','length','worker','../../helpers/testhub/testhubHandler','../../helpers/performance/performance-tester','platform-run-failure','2322130JiwXVx','EKAen','9qSNNPL','xFcqB','foaMR','QAPRV','cucumberWorker','platform','dIxbI','XodcV','97828lLDIXG','exitCode','getWorkers','QlnMC','MkRdE','PPuUC','hXFMT','lEslS','test-file-success','parallelVanillaRun','vanillaWorker','then','cFzyJ','\x20for','../../helpers/test-observability/utils','all','141PGJqCq','json','PKxxD','stdout','test-file-start','resolve','platformIndex','EjWlP','send','_child','25rdCMcS','pDbqc','parallelCucumberRun','RRwgR','Exception\x20in\x20adding\x20custom\x20message\x20channel\x20','uNvrT','error','772392TFdiOs','Rrlwc','169939nSXKCC','test-file-failure','344840WporIV','SDK_SETUP','Workers\x20failed\x20to\x20exit\x20gracefully','platforms','pipe','waitForExit','getStdout','./testWorker.js','platform-run-start','UNSTABLE_onCustomMessage','ibOpt','platformCaps','TQkgf','EVENTS','file','ZwNrb','emittery','getStderr','parallelTestRun','../../helpers/performance/constants','worker_threads','pmcVv','6437389hOMTYb','config','sSlSR','xdGEc','exit','format','NdtLz','UdjiO','JhDsV','end','swgVu','configuration','QlVKe','Exception\x20in\x20sending\x20worker\x20message\x20','kAQCK','results','pguag','emit','Plpqh','stderr','tCGPy','Running\x20','VBkoQ','log','jest-worker','hVbip','SDoON','1327616xrECYn','util'];a57_0x3b0f=function(){return _0x2a003c;};return a57_0x3b0f();}function a57_0x3916(_0x26fbcf,_0x359bbc){const _0x3b0fac=a57_0x3b0f();return a57_0x3916=function(_0x3916ad,_0x3bc3af){_0x3916ad=_0x3916ad-0x1e9;let _0x423738=_0x3b0fac[_0x3916ad];return _0x423738;},a57_0x3916(_0x26fbcf,_0x359bbc);}const a57_0x552773=a57_0x3916;(function(_0x384bc9,_0x619d7e){const _0x249f85=a57_0x3916,_0x1173f2=_0x384bc9();while(!![]){try{const _0x3abbca=-parseInt(_0x249f85(0x241))/0x1+parseInt(_0x249f85(0x214))/0x2+-parseInt(_0x249f85(0x22e))/0x3*(-parseInt(_0x249f85(0x21e))/0x4)+parseInt(_0x249f85(0x238))/0x5*(-parseInt(_0x249f85(0x23f))/0x6)+-parseInt(_0x249f85(0x1ef))/0x7+parseInt(_0x249f85(0x20a))/0x8+-parseInt(_0x249f85(0x216))/0x9*(parseInt(_0x249f85(0x243))/0xa);if(_0x3abbca===_0x619d7e)break;else _0x1173f2['push'](_0x1173f2['shift']());}catch(_0xd2ec32){_0x1173f2['push'](_0x1173f2['shift']());}}}(a57_0x3b0f,0xad0b2));const Worker=require(a57_0x552773(0x207))['Worker'],Emittery=require(a57_0x552773(0x1e9)),pLimit=require('p-limit'),{parentPort}=require(a57_0x552773(0x1ed)),util=require(a57_0x552773(0x20b)),logger=require('../../helpers/logger')['winstonLogger'],PerformanceTester=require(a57_0x552773(0x212)),PerformanceEvents=require(a57_0x552773(0x1ec))[a57_0x552773(0x250)],{debug}=require(a57_0x552773(0x22c)),TestHubHandler=require(a57_0x552773(0x211));exports[a57_0x552773(0x1eb)]=(_0x580483,_0x2c7287,_0x36cf55)=>new Promise(async _0x1c6152=>{const _0x514b9b=a57_0x552773,_0x3d6b66={'hXFMT':'failureCount','VBkoQ':function(_0x55e14d,_0x5b9b8d){return _0x55e14d+_0x5b9b8d;},'kAQCK':_0x514b9b(0x1fe),'PPuUC':_0x514b9b(0x245),'PZeZg':function(_0x3c1f4d,_0x1dd7c7){return _0x3c1f4d(_0x1dd7c7);},'RthWD':function(_0x133b1d,_0x3720b8){return _0x133b1d(_0x3720b8);},'ibOpt':_0x514b9b(0x232),'ZwNrb':_0x514b9b(0x24a),'EKAen':_0x514b9b(0x210),'swgVu':_0x514b9b(0x22f),'QlnMC':_0x514b9b(0x247),'qpQNy':function(_0x131df5,_0x2d64e0){return _0x131df5*_0x2d64e0;},'PZStw':_0x514b9b(0x226),'Xjuzz':_0x514b9b(0x242),'Plpqh':function(_0xb31fa7,_0x1775c6){return _0xb31fa7(_0x1775c6);},'XodcV':function(_0x25b5da,_0x9da13a){return _0x25b5da*_0x9da13a;}},_0x201d94=_0x36cf55[_0x514b9b(0x1f0)],_0xd570bc={},_0x30382b=new Worker(require[_0x514b9b(0x233)](_0x3d6b66[_0x514b9b(0x252)]),{'exposedMethods':[_0x3d6b66[_0x514b9b(0x215)]],'forkOptions':{'serialization':_0x3d6b66[_0x514b9b(0x1f9)],'stdio':_0x3d6b66[_0x514b9b(0x221)]},'idleMemoryLimit':undefined,'maxRetries':0x0,'numWorkers':_0x3d6b66['qpQNy'](_0x2c7287,0x1),'enableWorkerThreads':!![]}),_0x4ce575=new Emittery();_0x4ce575['on'](_0x3d6b66['PZStw'],_0x56bf52=>{const _0x4b0b91=_0x514b9b;_0xd570bc[_0x56bf52[0x0]]?(_0xd570bc[_0x56bf52[0x0]][_0x3d6b66[_0x4b0b91(0x224)]]=_0x3d6b66[_0x4b0b91(0x205)](_0xd570bc[_0x56bf52[0x0]][_0x3d6b66['hXFMT']],_0x56bf52[0x1][_0x3d6b66[_0x4b0b91(0x224)]]),_0xd570bc[_0x56bf52[0x0]][_0x3d6b66[_0x4b0b91(0x1fd)]]=[..._0xd570bc[_0x56bf52[0x0]][_0x3d6b66['kAQCK']],..._0x56bf52[0x1][_0x3d6b66[_0x4b0b91(0x1fd)]]]):_0xd570bc[_0x56bf52[0x0]]={'failureCount':_0x56bf52[0x1][_0x3d6b66['hXFMT']],'results':[..._0x56bf52[0x1][_0x3d6b66[_0x4b0b91(0x1fd)]]]};}),_0x4ce575['on'](_0x3d6b66['Xjuzz'],_0x3b288b=>console['log'](_0x3b288b[0x1]));_0x30382b[_0x514b9b(0x249)]()&&_0x30382b[_0x514b9b(0x249)]()[_0x514b9b(0x247)](process[_0x514b9b(0x231)]);_0x30382b['getStderr']()&&_0x30382b['getStderr']()[_0x514b9b(0x247)](process[_0x514b9b(0x202)]);const _0x3685b6=async()=>{const _0x58f855=_0x514b9b,{forceExited:_0x503d8b}=await _0x30382b[_0x58f855(0x1f8)]();_0x503d8b&&console[_0x58f855(0x23e)](_0x3d6b66[_0x58f855(0x223)]);try{await TestHubHandler[_0x58f855(0x20d)]();}catch(_0x3c5715){_0x3d6b66['PZeZg'](debug,'Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20'+_0x3c5715);}_0x3d6b66['RthWD'](_0x1c6152,_0xd570bc);},_0x23519a=_0x3d6b66[_0x514b9b(0x201)](pLimit,_0x3d6b66[_0x514b9b(0x21d)](_0x2c7287,0x1)),_0x537293=_0x25687a=>_0x23519a(async()=>{const _0x33a8c1=_0x514b9b;await _0x4ce575[_0x33a8c1(0x200)](_0x3d6b66[_0x33a8c1(0x24d)],_0x25687a);const _0x4dc3cd=_0x30382b[_0x33a8c1(0x210)](_0x25687a,_0x201d94);try{parentPort&&_0x4dc3cd[_0x33a8c1(0x24c)](_0x25ac3d=>{const _0xa28de2=_0x33a8c1;try{parentPort['postMessage'](_0x25ac3d);}catch(_0x556731){logger['debug'](_0xa28de2(0x1fc)+util[_0xa28de2(0x1f4)](_0x556731));}});}catch(_0x5c0e24){logger[_0x33a8c1(0x20e)](_0x33a8c1(0x23c)+util[_0x33a8c1(0x1f4)](_0x5c0e24));}return _0x4dc3cd;});PerformanceTester[_0x514b9b(0x1f8)](PerformanceEvents[_0x514b9b(0x244)]),Promise[_0x514b9b(0x22d)](_0x580483[_0x514b9b(0x20c)](_0x3eece9=>_0x537293(_0x3eece9)[_0x514b9b(0x229)](_0x561eb4=>_0x4ce575[_0x514b9b(0x200)]('test-file-success',[_0x3eece9[_0x514b9b(0x1fa)][_0x514b9b(0x21b)],_0x561eb4]),_0x342c18=>_0x4ce575[_0x514b9b(0x200)]('test-file-failure',[_0x3eece9,_0x342c18]))))[_0x514b9b(0x229)](_0x3685b6,_0x3685b6);}),exports[a57_0x552773(0x23a)]=(_0xd52f31,_0x552aba,_0x178150,_0x559694,_0x5c418e)=>{const _0x220f80=a57_0x552773,_0xfd0da={'TQkgf':'Workers\x20failed\x20to\x20exit\x20gracefully','lEslS':function(_0x46d719,_0x31d4b8){return _0x46d719(_0x31d4b8);},'JhDsV':_0x220f80(0x24b),'pguag':_0x220f80(0x24a),'pmcVv':_0x220f80(0x21a),'NdtLz':'json','fNmbM':_0x220f80(0x247),'xFcqB':'platform-run-success','pDbqc':'platform-run-failure','dIxbI':function(_0x2bc24c,_0x37f8e5){return _0x2bc24c(_0x37f8e5);}};return new Promise(_0xe63626=>{const _0x355dcc=_0x220f80,_0x45ef19={};_0x45ef19[_0x355dcc(0x208)]=_0xfd0da[_0x355dcc(0x1f7)];const _0x5f1163=_0x45ef19,_0x22709f=[],_0x404984=new Worker(require['resolve'](_0xfd0da[_0x355dcc(0x1ff)]),{'exposedMethods':[_0xfd0da[_0x355dcc(0x1ee)]],'forkOptions':{'serialization':_0xfd0da[_0x355dcc(0x1f5)],'stdio':_0xfd0da['fNmbM']},'numWorkers':_0xd52f31[_0x355dcc(0x20f)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x0}),_0x2b8697=new Emittery();_0x2b8697['on'](_0xfd0da[_0x355dcc(0x217)],_0xa4ff14=>{_0x22709f['push']([_0xa4ff14[0x0],_0xa4ff14[0x1]]);}),_0x2b8697['on'](_0xfd0da[_0x355dcc(0x239)],_0x396632=>console[_0x355dcc(0x206)](_0x396632[0x1]));_0x404984[_0x355dcc(0x249)]()&&_0x404984[_0x355dcc(0x249)]()[_0x355dcc(0x247)](process[_0x355dcc(0x231)]);_0x404984[_0x355dcc(0x1ea)]()&&_0x404984[_0x355dcc(0x1ea)]()[_0x355dcc(0x247)](process[_0x355dcc(0x202)]);const _0x458ad1=async()=>{const _0x26c8df=_0x355dcc,{forceExited:_0x161926}=await _0x404984['end']();_0x161926&&console[_0x26c8df(0x23e)](_0xfd0da[_0x26c8df(0x24f)]),_0xfd0da[_0x26c8df(0x225)](_0xe63626,_0x22709f);},_0x1e7e86=_0xfd0da[_0x355dcc(0x21c)](pLimit,_0xd52f31[_0x355dcc(0x20f)]||0x1),_0x37bae3=(_0x18a016,_0x5b3fd8)=>_0x1e7e86(async()=>{const _0x27ea50=_0x355dcc;return await _0x2b8697[_0x27ea50(0x200)](_0x5f1163['hVbip'],_0x18a016),_0x552aba[_0x27ea50(0x24e)]=_0x178150[_0x27ea50(0x246)][_0x5b3fd8],_0x552aba[_0x27ea50(0x234)]=_0x5b3fd8,_0x404984[_0x27ea50(0x21a)](_0x18a016,_0x552aba,_0x178150,_0x559694,_0x5c418e);});Promise[_0x355dcc(0x22d)](_0xd52f31[_0x355dcc(0x20c)]((_0x29ff99,_0x1444a7)=>_0x37bae3(_0x29ff99,_0x1444a7)['then'](_0x27ef3e=>_0x2b8697['emit']('platform-run-success',[_0x29ff99,_0x27ef3e]),_0x4c7ee3=>_0x2b8697[_0x355dcc(0x200)](_0x355dcc(0x213),[_0x29ff99,_0x4c7ee3]))))['then'](_0x458ad1,_0x458ad1);});},exports[a57_0x552773(0x227)]=(_0x1637a1,_0x50163a)=>new Promise(_0x55bee0=>{const _0x403c11=a57_0x552773,_0x13e307={'Rrlwc':function(_0x51add7,_0x1760be){return _0x51add7===_0x1760be;},'EjWlP':function(_0x253893,_0x30873a){return _0x253893!==_0x30873a;},'uNvrT':_0x403c11(0x1f3),'SDoON':_0x403c11(0x245),'sSlSR':function(_0xb4d139,_0x2de093){return _0xb4d139(_0x2de093);},'UdjiO':_0x403c11(0x24a),'tCGPy':_0x403c11(0x228),'cFzyJ':'json','foaMR':_0x403c11(0x247),'PKxxD':'test-file-success','AyTnh':_0x403c11(0x242)},_0x49f50b={},_0x1b578c=new Worker(require[_0x403c11(0x233)](_0x13e307[_0x403c11(0x1f6)]),{'exposedMethods':[_0x13e307[_0x403c11(0x203)]],'forkOptions':{'serialization':_0x13e307[_0x403c11(0x22a)],'stdio':_0x13e307[_0x403c11(0x218)]},'numWorkers':_0x50163a,'enableWorkerThreads':![],'maxRetries':0x0,'idleMemoryLimit':undefined}),_0x209dc6=new Emittery();_0x209dc6['on'](_0x13e307[_0x403c11(0x230)],_0x3e6fe2=>{const _0x42b7c1=_0x403c11;_0x3e6fe2[0x0]&&logger['info'](_0x42b7c1(0x204)+_0x3e6fe2[0x1]+_0x42b7c1(0x22b),_0x3e6fe2[0x0]);}),_0x209dc6['on'](_0x13e307['AyTnh'],_0xaae53=>{const _0x1cae92=_0x403c11;process[_0x1cae92(0x21f)]=0x1;});_0x1b578c[_0x403c11(0x249)]()&&_0x1b578c[_0x403c11(0x249)]()[_0x403c11(0x247)](process[_0x403c11(0x231)]);_0x1b578c['getStderr']()&&_0x1b578c[_0x403c11(0x1ea)]()[_0x403c11(0x247)](process[_0x403c11(0x202)]);const _0x578e04=async()=>{const _0x41f4a8=_0x403c11,_0x195a61={'MkRdE':function(_0x586ab7,_0x49e24d){const _0x362fec=a57_0x3916;return _0x13e307[_0x362fec(0x240)](_0x586ab7,_0x49e24d);},'QAPRV':function(_0x44985d,_0x1b8357){const _0x58f30c=a57_0x3916;return _0x13e307[_0x58f30c(0x235)](_0x44985d,_0x1b8357);},'xdGEc':_0x13e307[_0x41f4a8(0x23d)]};let _0x5980fb=0x0;const _0x2334ab=_0x1b578c['_workerPool'][_0x41f4a8(0x220)](),_0xd762a9=()=>{},_0xd9a42=_0x2334ab[_0x41f4a8(0x20c)](async _0x45a5e4=>{const _0x1f1f62=_0x41f4a8,_0x2afbe4={'QlVKe':function(_0x59aa06,_0x26e344){const _0x46d04b=a57_0x3916;return _0x195a61[_0x46d04b(0x222)](_0x59aa06,_0x26e344);},'RRwgR':function(_0x11f0d7,_0x4d1480){const _0x180c5f=a57_0x3916;return _0x195a61[_0x180c5f(0x219)](_0x11f0d7,_0x4d1480);}};_0x45a5e4[_0x1f1f62(0x236)]([0x2,![]],_0xd762a9,_0xd762a9,_0xd762a9),_0x45a5e4[_0x1f1f62(0x237)]['on'](_0x195a61[_0x1f1f62(0x1f2)],_0x4a92dd=>{const _0x4a7a5f=_0x1f1f62;_0x2afbe4[_0x4a7a5f(0x1fb)](_0x5980fb,0x0)&&_0x2afbe4[_0x4a7a5f(0x23b)](_0x4a92dd,0x0)&&(_0x5980fb=_0x4a92dd);}),await _0x45a5e4[_0x1f1f62(0x248)]();});await Promise['all'](_0xd9a42),process[_0x41f4a8(0x21f)]=_0x5980fb;const {forceExited:_0x5b19a3}=await _0x1b578c['end']();_0x5b19a3&&console['error'](_0x13e307[_0x41f4a8(0x209)]),_0x13e307[_0x41f4a8(0x1f1)](_0x55bee0,_0x49f50b);},_0x1949d9=_0x13e307['sSlSR'](pLimit,_0x50163a),_0x392860=_0x56db2c=>_0x1949d9(async()=>{const _0x5c1eb9=_0x403c11;return _0x1b578c[_0x5c1eb9(0x228)](_0x56db2c);});Promise[_0x403c11(0x22d)](_0x1637a1[_0x403c11(0x20c)](_0x5c3e54=>_0x392860(_0x5c3e54)['then'](_0x5d3183=>_0x209dc6[_0x403c11(0x200)](_0x403c11(0x226),[_0x5c3e54[_0x403c11(0x1fa)][_0x403c11(0x21b)],_0x5c3e54[_0x403c11(0x1fa)][_0x403c11(0x251)]]),_0x1216d8=>_0x209dc6[_0x403c11(0x200)](_0x403c11(0x242),[_0x5c3e54,_0x1216d8]))))[_0x403c11(0x229)](_0x578e04,_0x578e04);});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a58_0x1a399e=a58_0x1a6b;function a58_0x3257(){const _0x41f36c=['formatter','startMonitoring','2eAzUXv','1133QjQRNf','run','18RXJCcb','stopMonitoring','../launcher/launcher','497637OGBuCT','mocha','AdlHL','../../helpers/performance/performance-tester','SDK_POST_TEST','1286472CYriVC','jZhxU','7LJzZfP','../../helpers/performance/constants','end','30230KJKJwy','runVanillaTest','2775144wiNIvV','1156275yXkJnx','BvVdH','runCucumberTest','vanilla','jlSdF','cucumber-js','configuration','EVENTS','gZepk','GNqUH','641735tLwkAj','470136YYTHFn','RNKlq'];a58_0x3257=function(){return _0x41f36c;};return a58_0x3257();}(function(_0x12088f,_0x120ed8){const _0x10aa9a=a58_0x1a6b,_0x32805c=_0x12088f();while(!![]){try{const _0x1f59c1=-parseInt(_0x10aa9a(0x18f))/0x1*(parseInt(_0x10aa9a(0x189))/0x2)+-parseInt(_0x10aa9a(0x194))/0x3+parseInt(_0x10aa9a(0x185))/0x4+-parseInt(_0x10aa9a(0x1a6))/0x5*(-parseInt(_0x10aa9a(0x18c))/0x6)+parseInt(_0x10aa9a(0x196))/0x7*(parseInt(_0x10aa9a(0x19b))/0x8)+parseInt(_0x10aa9a(0x19c))/0x9+parseInt(_0x10aa9a(0x199))/0xa*(parseInt(_0x10aa9a(0x18a))/0xb);if(_0x1f59c1===_0x120ed8)break;else _0x32805c['push'](_0x32805c['shift']());}catch(_0x1075e8){_0x32805c['push'](_0x32805c['shift']());}}}(a58_0x3257,0x58963));const PerformanceEvents=require(a58_0x1a399e(0x197))[a58_0x1a399e(0x1a3)],PerformanceTester=require(a58_0x1a399e(0x192)),{sleep}=require('../../helpers/test-observability/utils');function a58_0x1a6b(_0x65f9b4,_0x229b46){const _0x325753=a58_0x3257();return a58_0x1a6b=function(_0x1a6b57,_0x4268e0){_0x1a6b57=_0x1a6b57-0x185;let _0x61ba1f=_0x325753[_0x1a6b57];return _0x61ba1f;},a58_0x1a6b(_0x65f9b4,_0x229b46);}exports['runTest']=async(_0x53fe32,_0x1e482c)=>{const _0x1f5baf=a58_0x1a399e,_0x53a05f={'BvVdH':function(_0x5e2b43,_0x4f56a9){return _0x5e2b43(_0x4f56a9);},'CGkKL':'../launcher/launcher','RNKlq':_0x1f5baf(0x190),'AdlHL':function(_0x5c07f2,_0x92048){return _0x5c07f2(_0x92048);}};PerformanceTester[_0x1f5baf(0x188)]();const _0x3bfc17=_0x53a05f[_0x1f5baf(0x19d)](require,_0x53a05f['CGkKL']),_0x389ee2=new _0x3bfc17(_0x53a05f[_0x1f5baf(0x186)],_0x53fe32,_0x1e482c),_0xbbd549=await _0x389ee2[_0x1f5baf(0x18b)]();return PerformanceTester[_0x1f5baf(0x198)](PerformanceEvents[_0x1f5baf(0x193)]),await _0x53a05f[_0x1f5baf(0x191)](sleep,0x3e8),PerformanceTester[_0x1f5baf(0x18d)](),_0xbbd549;},exports[a58_0x1a399e(0x19e)]=async(_0x351da1,_0x218f96,_0x44a8ae,_0x424c61,_0x3d1af6)=>{const _0xb5fd77=a58_0x1a399e,_0xe0b35={'jZhxU':function(_0x513863,_0x12523d){return _0x513863(_0x12523d);},'PHfiX':'../launcher/launcher','jlSdF':_0xb5fd77(0x1a1)},_0x4591ab={'capability':_0x351da1,..._0x218f96},_0x540662={};_0x540662[_0xb5fd77(0x1a2)]=_0x4591ab,_0x540662[_0xb5fd77(0x187)]=_0x3d1af6;const _0x53f9c9=_0x540662,_0x34c1e3=_0xe0b35[_0xb5fd77(0x195)](require,_0xe0b35['PHfiX']),_0x42c929=new _0x34c1e3(_0xe0b35[_0xb5fd77(0x1a0)],_0x53f9c9,_0x44a8ae,_0x424c61);return await _0x42c929[_0xb5fd77(0x18b)]();},exports[a58_0x1a399e(0x19a)]=async _0x440478=>{const _0x4eaf71=a58_0x1a399e,_0x159296={'GNqUH':function(_0x4a10b9,_0x47d161){return _0x4a10b9(_0x47d161);},'ZqvDM':_0x4eaf71(0x18e),'gZepk':_0x4eaf71(0x19f)},_0x18867e=_0x159296[_0x4eaf71(0x1a5)](require,_0x159296['ZqvDM']),_0x3748e8=new _0x18867e(_0x159296[_0x4eaf71(0x1a4)],_0x440478);return await _0x3748e8['run']();};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a59_0x279716=a59_0x214d;(function(_0x33d765,_0x154013){const _0x3ff3e4=a59_0x214d,_0x29473d=_0x33d765();while(!![]){try{const _0x48c9d7=-parseInt(_0x3ff3e4(0x16a))/0x1*(-parseInt(_0x3ff3e4(0x166))/0x2)+-parseInt(_0x3ff3e4(0x162))/0x3*(-parseInt(_0x3ff3e4(0x165))/0x4)+-parseInt(_0x3ff3e4(0x170))/0x5*(-parseInt(_0x3ff3e4(0x16d))/0x6)+parseInt(_0x3ff3e4(0x163))/0x7+-parseInt(_0x3ff3e4(0x16c))/0x8*(-parseInt(_0x3ff3e4(0x169))/0x9)+-parseInt(_0x3ff3e4(0x164))/0xa+parseInt(_0x3ff3e4(0x168))/0xb;if(_0x48c9d7===_0x154013)break;else _0x29473d['push'](_0x29473d['shift']());}catch(_0x3106ee){_0x29473d['push'](_0x29473d['shift']());}}}(a59_0x2ba2,0x6870d));function a59_0x214d(_0x22c4e7,_0x4407a2){const _0x2ba215=a59_0x2ba2();return a59_0x214d=function(_0x214dbf,_0x5e3965){_0x214dbf=_0x214dbf-0x162;let _0x387cad=_0x2ba215[_0x214dbf];return _0x387cad;},a59_0x214d(_0x22c4e7,_0x4407a2);}const {runTest,runCucumberTest,runVanillaTest}=require('./runTest');function a59_0x2ba2(){const _0x56b1d1=['505444oPKNwU','338fBodyk','cucumberWorker','2033196JpQacC','180ThjmxU','2753ktLnFk','CXSxe','78088Plmfei','12spwmIH','vanillaWorker','worker','5025YcpPxI','6BgAKca','816193htBKfJ','7888550vbzoKf'];a59_0x2ba2=function(){return _0x56b1d1;};return a59_0x2ba2();}exports[a59_0x279716(0x16f)]=async(_0x56a40d,_0x1424f8)=>{const _0x3ef012={'xQAOm':function(_0x2f14d6,_0x23092d,_0x8529ab){return _0x2f14d6(_0x23092d,_0x8529ab);}};return await _0x3ef012['xQAOm'](runTest,_0x56a40d,_0x1424f8);},exports[a59_0x279716(0x167)]=async(_0x123877,_0x4b2fe8,_0x1f57ce,_0x1d766f,_0x5b6cbd)=>{const _0x517f96={'TQSqo':function(_0x5de06b,_0x596f68,_0x5f5583,_0x5dfd6a,_0x5ae7cb,_0x204456){return _0x5de06b(_0x596f68,_0x5f5583,_0x5dfd6a,_0x5ae7cb,_0x204456);}};return await _0x517f96['TQSqo'](runCucumberTest,_0x123877,_0x4b2fe8,_0x1f57ce,_0x1d766f,_0x5b6cbd);},exports[a59_0x279716(0x16e)]=async _0x499ba8=>{const _0x1b1c50=a59_0x279716,_0x483c12={'CXSxe':function(_0x2acc97,_0x4d7eec){return _0x2acc97(_0x4d7eec);}};return await _0x483c12[_0x1b1c50(0x16b)](runVanillaTest,_0x499ba8);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a60_0x52603b=a60_0x5a33;(function(_0x5ac225,_0x3a33c5){const _0x224c4d=a60_0x5a33,_0x56cd6c=_0x5ac225();while(!![]){try{const _0x21e0a6=parseInt(_0x224c4d(0x13f))/0x1*(-parseInt(_0x224c4d(0x13d))/0x2)+parseInt(_0x224c4d(0x137))/0x3*(parseInt(_0x224c4d(0x142))/0x4)+parseInt(_0x224c4d(0x11f))/0x5+-parseInt(_0x224c4d(0x156))/0x6+parseInt(_0x224c4d(0x175))/0x7+-parseInt(_0x224c4d(0x132))/0x8+parseInt(_0x224c4d(0x16c))/0x9;if(_0x21e0a6===_0x3a33c5)break;else _0x56cd6c['push'](_0x56cd6c['shift']());}catch(_0xe3f276){_0x56cd6c['push'](_0x56cd6c['shift']());}}}(a60_0x3ab4,0xd8bfd));const constants=require(a60_0x52603b(0x144)),{nestedKeyValue}=require(a60_0x52603b(0x12a)),getBrowserstackCLI=()=>{const _0x1ff5f5=a60_0x52603b,_0x446c8a={'czhgA':function(_0x502856,_0x3da413){return _0x502856(_0x3da413);},'irIUR':_0x1ff5f5(0x16d)};return _0x446c8a['czhgA'](require,_0x446c8a['irIUR']);};function a60_0x5a33(_0x31ed62,_0x77d764){const _0x3ab450=a60_0x3ab4();return a60_0x5a33=function(_0x5a3377,_0x4d8539){_0x5a3377=_0x5a3377-0x11c;let _0x20f0b3=_0x3ab450[_0x5a3377];return _0x20f0b3;},a60_0x5a33(_0x31ed62,_0x77d764);}function a60_0x3ab4(){const _0x39ce7f=['DjbUx','getInstance','6019960nPPEvO','hCsnk','ikSVO','HVYGy','lGYfT','getAutomateSessionNameAPIUrl','oEmtY','Rjbih','eqqeP','BROWSERSTACK_API_URL','QrqrO','./sharedUtils','EDS_URL','edsInstrumentation','apis','ZNIoS','getBStackAPIUrl','OYeHc','VOMdn','2284456hQpREw','getAppAutomateSessionStatusAPIUrl','joPMr','getEdsInstrumentationAPIUrl','jfaqL','259248SjtLyL','PLAYWRIGHT_HUB_URL','gsjCI','toString','EwefR','MCqEO','2mNVBGC','VIzmq','794991MVWKUq','SZmMz','ZsyCN','8JFUPQW','PUPPETEER_HUB_URL','./constants','taFbD','lojEw','api','OHJqr','ijfjP','Miuvm','QEUVb','HsboB','EtNXm','OBSERVABILITY_UPLOAD_URL','lTVgI','getAutomateSessionsListAPIUrl','PBthy','teyWV','nDTEu','getAppAutomateSessionNameAPIUrl','qYRTG','3270960yOKMNd','zdfsB','wSamu','getPuppeteerHubUrl','MIgbA','endsWith','cdp','CEnjJ','upload','PfoFA','xVYcr','yufDn','QdTYF','/puppeteer?caps=','PJIba','pdUOj','Vqgtr','BdhEy','getPlaywrightHubUrl','XcKyp','lIiyr','nVjvP','3829239DXvpcn','../v2/browserstackCLI','hElOZ','automate','KDBqN','getConfig','WhPuM','TEAvw','mwFaH','4978526UZvZwL','wss:','appAutomate','UZpcv','MqwCv','replace','nGJcJ','lMcji','QEFvc','GzBOd','TQxhf'];a60_0x3ab4=function(){return _0x39ce7f;};return a60_0x3ab4();}class APIUtilityMethods{static[a60_0x52603b(0x12f)](_0x4bc37a){const _0x575884=a60_0x52603b,_0x20c9e4={'PzJVk':function(_0x2900e3){return _0x2900e3();},'TQxhf':function(_0xeac9fa,_0x48ec17,_0x62502c){return _0xeac9fa(_0x48ec17,_0x62502c);},'Miuvm':_0x575884(0x12d),'QEFvc':_0x575884(0x16f),'qfOQX':_0x575884(0x147),'ZsyCN':function(_0x188c0d,_0x418bf5){return _0x188c0d===_0x418bf5;},'taFbD':function(_0x394fe2,_0x1ccc5f){return _0x394fe2+_0x1ccc5f;}},_0x32d83c=_0x20c9e4['PzJVk'](getBrowserstackCLI),_0x55f1d3=_0x20c9e4[_0x575884(0x11c)](nestedKeyValue,_0x32d83c[_0x575884(0x11e)]()[_0x575884(0x171)](),[_0x20c9e4[_0x575884(0x14a)],_0x20c9e4[_0x575884(0x17d)],_0x20c9e4['qfOQX']])||constants['BROWSERSTACK_API_URL'];if(!_0x4bc37a||_0x20c9e4[_0x575884(0x141)](_0x4bc37a,''))return _0x55f1d3;const _0x4bc006=_0x55f1d3[_0x575884(0x15b)]('/')?_0x55f1d3:_0x20c9e4[_0x575884(0x145)](_0x55f1d3,'/');return new URL(_0x4bc37a,_0x4bc006)[_0x575884(0x13a)]();}static[a60_0x52603b(0x135)](_0x4d9a83){const _0x25f082=a60_0x52603b,_0x1a2319={'ZNIoS':function(_0x4bc059){return _0x4bc059();},'lIiyr':function(_0x137bc2,_0x59d515,_0x2ef1cc){return _0x137bc2(_0x59d515,_0x2ef1cc);},'gsjCI':_0x25f082(0x12d),'TEAvw':_0x25f082(0x12c),'oEmtY':'api','VtvxC':function(_0x3538dd,_0x5158cb){return _0x3538dd===_0x5158cb;},'SdGmZ':function(_0x3f9b13,_0x136ed2){return _0x3f9b13+_0x136ed2;}},_0x586458=_0x1a2319[_0x25f082(0x12e)](getBrowserstackCLI),_0x337bd8=_0x1a2319[_0x25f082(0x16a)](nestedKeyValue,_0x586458['getInstance']()[_0x25f082(0x171)](),[_0x1a2319[_0x25f082(0x139)],_0x1a2319[_0x25f082(0x173)],_0x1a2319[_0x25f082(0x125)]])||constants[_0x25f082(0x12b)];if(!_0x4d9a83||_0x1a2319['VtvxC'](_0x4d9a83,''))return _0x337bd8;const _0x42a423=_0x337bd8['endsWith']('/')?_0x337bd8:_0x1a2319['SdGmZ'](_0x337bd8,'/');return new URL(_0x4d9a83,_0x42a423)[_0x25f082(0x13a)]();}static['getAutomateSessionStatusAPIUrl'](_0x14a5b2){const _0x522b0b=a60_0x52603b,_0x2a47aa={'UZpcv':function(_0x3c4a13){return _0x3c4a13();},'EtNXm':function(_0x1b82c2,_0x1e9530,_0x2e1f1a){return _0x1b82c2(_0x1e9530,_0x2e1f1a);},'KjJZo':_0x522b0b(0x12d),'jfaqL':_0x522b0b(0x16f),'Knybu':_0x522b0b(0x147),'QEUVb':function(_0x34b46f,_0x4d3486){return _0x34b46f===_0x4d3486;},'WhPuM':function(_0x4cf6f5,_0x2cc8c4){return _0x4cf6f5+_0x2cc8c4;}},_0xb7df7=_0x2a47aa[_0x522b0b(0x178)](getBrowserstackCLI),_0x42b94e=_0x2a47aa[_0x522b0b(0x14d)](nestedKeyValue,_0xb7df7['getInstance']()['getConfig'](),[_0x2a47aa['KjJZo'],_0x2a47aa[_0x522b0b(0x136)],_0x2a47aa['Knybu']])||constants['BROWSERSTACK_API_URL'];if(!_0x14a5b2||_0x2a47aa[_0x522b0b(0x14b)](_0x14a5b2,''))return _0x42b94e;const _0xc768c=_0x42b94e[_0x522b0b(0x15b)]('/')?_0x42b94e:_0x2a47aa[_0x522b0b(0x172)](_0x42b94e,'/');return new URL(_0x14a5b2,_0xc768c)[_0x522b0b(0x13a)]();}static[a60_0x52603b(0x133)](_0x1250cb){const _0x36977d=a60_0x52603b,_0x95f4={'MqwCv':function(_0x3fe57f){return _0x3fe57f();},'cOmzX':function(_0x44f6fb,_0x515399,_0x59069a){return _0x44f6fb(_0x515399,_0x59069a);},'Kfmhk':_0x36977d(0x12d),'ijfjP':'appAutomate','hCsnk':_0x36977d(0x147),'lTVgI':function(_0x12f53b,_0x2ad31c){return _0x12f53b===_0x2ad31c;},'mwFaH':function(_0xf24c7d,_0x431336){return _0xf24c7d+_0x431336;}},_0x2ff076=_0x95f4[_0x36977d(0x179)](getBrowserstackCLI),_0x1b6fd5=_0x95f4['cOmzX'](nestedKeyValue,_0x2ff076[_0x36977d(0x11e)]()['getConfig'](),[_0x95f4['Kfmhk'],_0x95f4[_0x36977d(0x149)],_0x95f4[_0x36977d(0x120)]])||constants[_0x36977d(0x128)];if(!_0x1250cb||_0x95f4[_0x36977d(0x14f)](_0x1250cb,''))return _0x1b6fd5;const _0x194ee4=_0x1b6fd5[_0x36977d(0x15b)]('/')?_0x1b6fd5:_0x95f4[_0x36977d(0x174)](_0x1b6fd5,'/');return new URL(_0x1250cb,_0x194ee4)[_0x36977d(0x13a)]();}static[a60_0x52603b(0x124)](_0x480dd3){const _0xcfb1cc=a60_0x52603b,_0xa93932={'yjEAr':function(_0x249d03){return _0x249d03();},'QOCTG':function(_0x2500c3,_0x4e571c,_0x428583){return _0x2500c3(_0x4e571c,_0x428583);},'nDTEu':_0xcfb1cc(0x12d),'nVjvP':_0xcfb1cc(0x16f),'xVYcr':_0xcfb1cc(0x147),'GzBOd':function(_0x129155,_0x516961){return _0x129155===_0x516961;},'EwefR':function(_0x1a647e,_0x580fa5){return _0x1a647e+_0x580fa5;}},_0x431eb7=_0xa93932['yjEAr'](getBrowserstackCLI),_0x386c75=_0xa93932['QOCTG'](nestedKeyValue,_0x431eb7[_0xcfb1cc(0x11e)]()[_0xcfb1cc(0x171)](),[_0xa93932[_0xcfb1cc(0x153)],_0xa93932[_0xcfb1cc(0x16b)],_0xa93932[_0xcfb1cc(0x160)]])||constants[_0xcfb1cc(0x128)];if(!_0x480dd3||_0xa93932[_0xcfb1cc(0x17e)](_0x480dd3,''))return _0x386c75;const _0x4414b5=_0x386c75[_0xcfb1cc(0x15b)]('/')?_0x386c75:_0xa93932[_0xcfb1cc(0x13b)](_0x386c75,'/');return new URL(_0x480dd3,_0x4414b5)[_0xcfb1cc(0x13a)]();}static[a60_0x52603b(0x154)](_0x53594f){const _0x51e2c9=a60_0x52603b,_0x38d5af={'nUjNn':function(_0xfde67f){return _0xfde67f();},'teyWV':function(_0x13eb26,_0x11d802,_0x7a37f5){return _0x13eb26(_0x11d802,_0x7a37f5);},'hhvMZ':_0x51e2c9(0x12d),'AKRVF':'appAutomate','bkRPH':_0x51e2c9(0x147),'ikSVO':function(_0x15b625,_0x166033){return _0x15b625===_0x166033;},'pdUOj':function(_0x7b19b,_0x29eb75){return _0x7b19b+_0x29eb75;}},_0x4f3e34=_0x38d5af['nUjNn'](getBrowserstackCLI),_0x5dd3b3=_0x38d5af[_0x51e2c9(0x152)](nestedKeyValue,_0x4f3e34[_0x51e2c9(0x11e)]()['getConfig'](),[_0x38d5af['hhvMZ'],_0x38d5af['AKRVF'],_0x38d5af['bkRPH']])||constants[_0x51e2c9(0x128)];if(!_0x53594f||_0x38d5af[_0x51e2c9(0x121)](_0x53594f,''))return _0x5dd3b3;const _0xad1849=_0x5dd3b3[_0x51e2c9(0x15b)]('/')?_0x5dd3b3:_0x38d5af[_0x51e2c9(0x165)](_0x5dd3b3,'/');return new URL(_0x53594f,_0xad1849)[_0x51e2c9(0x13a)]();}static[a60_0x52603b(0x150)](_0x2ac9d8){const _0x5a8d42=a60_0x52603b,_0x25a947={'Rjbih':function(_0xa23bde){return _0xa23bde();},'SZmMz':function(_0x1480ff,_0xb05128,_0x573412){return _0x1480ff(_0xb05128,_0x573412);},'wSamu':_0x5a8d42(0x12d),'WexrS':_0x5a8d42(0x16f),'PBthy':_0x5a8d42(0x147),'lGYfT':function(_0xe2354d,_0x892216){return _0xe2354d===_0x892216;},'zdfsB':function(_0x2a212f,_0x6b309b){return _0x2a212f+_0x6b309b;}},_0x35fa65=_0x25a947[_0x5a8d42(0x126)](getBrowserstackCLI),_0x53f1e2=_0x25a947[_0x5a8d42(0x140)](nestedKeyValue,_0x35fa65['getInstance']()[_0x5a8d42(0x171)](),[_0x25a947[_0x5a8d42(0x158)],_0x25a947['WexrS'],_0x25a947[_0x5a8d42(0x151)]])||constants[_0x5a8d42(0x128)];if(!_0x2ac9d8||_0x25a947[_0x5a8d42(0x123)](_0x2ac9d8,''))return _0x53f1e2;const _0x40ad9c=_0x53f1e2[_0x5a8d42(0x15b)]('/')?_0x53f1e2:_0x25a947[_0x5a8d42(0x157)](_0x53f1e2,'/');return new URL(_0x2ac9d8,_0x40ad9c)[_0x5a8d42(0x13a)]()[_0x5a8d42(0x17a)](/^https?:\/\//,'');}static['getAppAutomateSessionsListAPIUrl'](_0x9bbf5c){const _0x3e8b9e=a60_0x52603b,_0x23bbc2={'xCnHG':function(_0x1a204f){return _0x1a204f();},'LgFcI':function(_0x40bee5,_0x195873,_0x4d5054){return _0x40bee5(_0x195873,_0x4d5054);},'MCqEO':_0x3e8b9e(0x12d),'qYRTG':_0x3e8b9e(0x177),'HVYGy':_0x3e8b9e(0x147),'nGJcJ':function(_0x2fdb40,_0x1e1da3){return _0x2fdb40===_0x1e1da3;},'OHJqr':function(_0x22be5a,_0x296d13){return _0x22be5a+_0x296d13;}},_0x11160c=_0x23bbc2['xCnHG'](getBrowserstackCLI),_0x459613=_0x23bbc2['LgFcI'](nestedKeyValue,_0x11160c['getInstance']()['getConfig'](),[_0x23bbc2[_0x3e8b9e(0x13c)],_0x23bbc2[_0x3e8b9e(0x155)],_0x23bbc2[_0x3e8b9e(0x122)]])||constants['APP_UPLOAD_URL'];if(!_0x9bbf5c||_0x23bbc2[_0x3e8b9e(0x17b)](_0x9bbf5c,''))return _0x459613;const _0x51d0b8=_0x459613[_0x3e8b9e(0x15b)]('/')?_0x459613:_0x23bbc2[_0x3e8b9e(0x148)](_0x459613,'/');return new URL(_0x9bbf5c,_0x51d0b8)[_0x3e8b9e(0x13a)]()[_0x3e8b9e(0x17a)](/^https?:\/\//,'');}static['getAutoCaptureLogsAPIUrl'](_0x4ed663){const _0x29499f=a60_0x52603b,_0x2e33e0={'VOMdn':function(_0xfc7ea1){return _0xfc7ea1();},'stGyT':function(_0x22cb4d,_0x54186b,_0x132309){return _0x22cb4d(_0x54186b,_0x132309);},'wkfWh':'apis','yufDn':'observability','lojEw':_0x29499f(0x15e),'DjbUx':function(_0x3c7e5c,_0x1e2e3f){return _0x3c7e5c===_0x1e2e3f;},'KDBqN':function(_0x428d25,_0x2e584b){return _0x428d25+_0x2e584b;}},_0x44158b=_0x2e33e0[_0x29499f(0x131)](getBrowserstackCLI),_0x742778=_0x2e33e0['stGyT'](nestedKeyValue,_0x44158b['getInstance']()[_0x29499f(0x171)](),[_0x2e33e0['wkfWh'],_0x2e33e0[_0x29499f(0x161)],_0x2e33e0[_0x29499f(0x146)]])||constants[_0x29499f(0x14e)];if(!_0x4ed663||_0x2e33e0[_0x29499f(0x11d)](_0x4ed663,''))return _0x742778;const _0x2f61ed=_0x742778[_0x29499f(0x15b)]('/')?_0x742778:_0x2e33e0[_0x29499f(0x170)](_0x742778,'/');return new URL(_0x4ed663,_0x2f61ed)[_0x29499f(0x13a)]();}static[a60_0x52603b(0x168)](_0x14f5a4){const _0x43fb4c=a60_0x52603b,_0x223dc0={'OYeHc':function(_0x142d14){return _0x142d14();},'jIszX':function(_0x3af399,_0x3a75a0,_0x143431){return _0x3af399(_0x3a75a0,_0x143431);},'QeIEd':_0x43fb4c(0x12d),'joPMr':_0x43fb4c(0x16f),'XcKyp':_0x43fb4c(0x15c),'PfoFA':'wss:','MIgbA':function(_0x3780ec,_0x2e5bd6){return _0x3780ec===_0x2e5bd6;},'Vqgtr':function(_0x26e188,_0x7d4f8b){return _0x26e188+_0x7d4f8b;},'PJIba':'/playwright?caps='},_0x8ccb80=_0x223dc0[_0x43fb4c(0x130)](getBrowserstackCLI),_0x19ae7b=_0x223dc0['jIszX'](nestedKeyValue,_0x8ccb80[_0x43fb4c(0x11e)]()['getConfig'](),[_0x223dc0['QeIEd'],_0x223dc0[_0x43fb4c(0x134)],_0x223dc0[_0x43fb4c(0x169)]]),_0x487c05=(_0x19ae7b?_0x19ae7b[_0x43fb4c(0x17a)](/^https:/,_0x223dc0[_0x43fb4c(0x15f)]):null)||constants[_0x43fb4c(0x138)];let _0x4a2e38;if(!_0x14f5a4||_0x223dc0[_0x43fb4c(0x15a)](_0x14f5a4,''))_0x4a2e38=_0x487c05;else{const _0x77e1d9=_0x487c05['endsWith']('/')?_0x487c05:_0x223dc0[_0x43fb4c(0x166)](_0x487c05,'/');_0x4a2e38=new URL(_0x14f5a4,_0x77e1d9)[_0x43fb4c(0x13a)]();}return!_0x4a2e38[_0x43fb4c(0x15b)](_0x223dc0[_0x43fb4c(0x164)])&&(_0x4a2e38+=_0x223dc0[_0x43fb4c(0x164)]),_0x4a2e38;}static[a60_0x52603b(0x159)](_0x34da15){const _0xb8149f=a60_0x52603b,_0x5c84f6={'QrqrO':function(_0x23480a){return _0x23480a();},'BdhEy':function(_0x58cacb,_0x2f120f,_0x486905){return _0x58cacb(_0x2f120f,_0x486905);},'eqqeP':'apis','HsboB':_0xb8149f(0x16f),'hElOZ':'cdp','VIzmq':_0xb8149f(0x176),'lMcji':function(_0x22eec1,_0x23657d){return _0x22eec1===_0x23657d;},'QdTYF':function(_0x498309,_0x575d74){return _0x498309+_0x575d74;},'CEnjJ':_0xb8149f(0x163)},_0x17ad5b=_0x5c84f6[_0xb8149f(0x129)](getBrowserstackCLI),_0x548a8b=_0x5c84f6[_0xb8149f(0x167)](nestedKeyValue,_0x17ad5b[_0xb8149f(0x11e)]()[_0xb8149f(0x171)](),[_0x5c84f6[_0xb8149f(0x127)],_0x5c84f6[_0xb8149f(0x14c)],_0x5c84f6[_0xb8149f(0x16e)]]),_0x346b5c=(_0x548a8b?_0x548a8b[_0xb8149f(0x17a)](/^https:/,_0x5c84f6[_0xb8149f(0x13e)]):null)||constants[_0xb8149f(0x143)];let _0xd27ed4;if(!_0x34da15||_0x5c84f6[_0xb8149f(0x17c)](_0x34da15,''))_0xd27ed4=_0x346b5c;else{const _0x541b13=_0x346b5c[_0xb8149f(0x15b)]('/')?_0x346b5c:_0x5c84f6[_0xb8149f(0x162)](_0x346b5c,'/');_0xd27ed4=new URL(_0x34da15,_0x541b13)[_0xb8149f(0x13a)]();}return!_0xd27ed4[_0xb8149f(0x15b)](_0x5c84f6[_0xb8149f(0x15d)])&&(_0xd27ed4+=_0x5c84f6[_0xb8149f(0x15d)]),_0xd27ed4;}}module['exports']=APIUtilityMethods;
|
|
1
|
+
function a60_0x4492(_0x547558,_0x109d26){const _0x5ca3aa=a60_0x5ca3();return a60_0x4492=function(_0x4492a1,_0x5489e2){_0x4492a1=_0x4492a1-0x1b2;let _0x2c8c25=_0x5ca3aa[_0x4492a1];return _0x2c8c25;},a60_0x4492(_0x547558,_0x109d26);}function a60_0x5ca3(){const _0xebed86=['ljbzW','rkoTr','api','qoniE','getAutoCaptureLogsAPIUrl','PjxKd','wMPgH','WNEsA','observability','APcHU','8kYoCup','EDS_URL','apis','ftBgt','ftDwy','jHFVH','mMWhc','qFmyi','KUdoR','NgcPX','60093fgQQWS','kiuuv','automate','lQSHE','EBOvN','/puppeteer?caps=','jFkfc','XaXdF','mBoBk','gtFhD','gvqki','CiKJO','GsIce','BROWSERSTACK_API_URL','getPlaywrightHubUrl','lKuzu','./sharedUtils','getAppAutomateSessionStatusAPIUrl','KnItD','APP_UPLOAD_URL','OvIeJ','getAutomateSessionNameAPIUrl','69996938QGwfBF','getBStackAPIUrl','endsWith','rbKew','xGdZM','iMQaE','73126aBcjTB','getAutomateSessionsListAPIUrl','XsZty','OBSERVABILITY_UPLOAD_URL','getInstance','getAppAutomateSessionNameAPIUrl','PLDFh','15195820cdbrNJ','qMwFo','getAppAutomateSessionsListAPIUrl','crnKX','9981828THkjMa','KGptC','zEzqX','getPuppeteerHubUrl','zNxjL','JCmUV','7035255vsUlgO','getConfig','LyvCc','EsFCs','7vuCrPX','DJPHt','toString','Oiqvy','mCaIt','ubSPa','HubWS','AnTVO','rMKcC','obSlS','wss:','../v2/browserstackCLI','AfhgK','apntO','1568HFPgkX','eetyN','msePC','cdp','KLOkx','liICe','3033663eQuiyL','replace','appAutomate','QKYiG','BigyS','pDmwg','wIKax','upload','4kMFBuT'];a60_0x5ca3=function(){return _0xebed86;};return a60_0x5ca3();}const a60_0x29efb4=a60_0x4492;(function(_0x54d727,_0x1e860d){const _0x541c57=a60_0x4492,_0x373909=_0x54d727();while(!![]){try{const _0x12df32=-parseInt(_0x541c57(0x212))/0x1*(-parseInt(_0x541c57(0x1d6))/0x2)+parseInt(_0x541c57(0x1ff))/0x3*(parseInt(_0x541c57(0x207))/0x4)+parseInt(_0x541c57(0x1e7))/0x5+parseInt(_0x541c57(0x1e1))/0x6*(parseInt(_0x541c57(0x1eb))/0x7)+parseInt(_0x541c57(0x1f9))/0x8*(parseInt(_0x541c57(0x1ba))/0x9)+parseInt(_0x541c57(0x1dd))/0xa+-parseInt(_0x541c57(0x1d0))/0xb;if(_0x12df32===_0x1e860d)break;else _0x373909['push'](_0x373909['shift']());}catch(_0x1ce870){_0x373909['push'](_0x373909['shift']());}}}(a60_0x5ca3,0xccea2));const constants=require('./constants'),{nestedKeyValue}=require(a60_0x29efb4(0x1ca)),getBrowserstackCLI=()=>{const _0x3adcc5=a60_0x29efb4,_0x3b872e={'JCmUV':function(_0x3fb408,_0x2b4482){return _0x3fb408(_0x2b4482);},'crnKX':_0x3adcc5(0x1f6)};return _0x3b872e[_0x3adcc5(0x1e6)](require,_0x3b872e[_0x3adcc5(0x1e0)]);};class APIUtilityMethods{static[a60_0x29efb4(0x1d1)](_0x203842){const _0xf3cc38=a60_0x29efb4,_0xe24a85={'eetyN':function(_0x1dd25f){return _0x1dd25f();},'ftBgt':function(_0x42997b,_0x595a2b,_0x2e9d52){return _0x42997b(_0x595a2b,_0x2e9d52);},'obSlS':'apis','Zvizd':_0xf3cc38(0x1bc),'QKYiG':_0xf3cc38(0x20a),'cjxGn':function(_0x141a2a,_0x122279){return _0x141a2a===_0x122279;},'KUdoR':function(_0x15693b,_0x49adaf){return _0x15693b+_0x49adaf;}},_0xe435ae=_0xe24a85[_0xf3cc38(0x1fa)](getBrowserstackCLI),_0xc62387=_0xe24a85[_0xf3cc38(0x1b3)](nestedKeyValue,_0xe435ae[_0xf3cc38(0x1da)]()[_0xf3cc38(0x1e8)](),[_0xe24a85[_0xf3cc38(0x1f4)],_0xe24a85['Zvizd'],_0xe24a85[_0xf3cc38(0x202)]])||constants[_0xf3cc38(0x1c7)];if(!_0x203842||_0xe24a85['cjxGn'](_0x203842,''))return _0xc62387;const _0x8ee801=_0xc62387[_0xf3cc38(0x1d2)]('/')?_0xc62387:_0xe24a85[_0xf3cc38(0x1b8)](_0xc62387,'/');return new URL(_0x203842,_0x8ee801)['toString']();}static['getEdsInstrumentationAPIUrl'](_0x269061){const _0x3ee50c=a60_0x29efb4,_0x5b4260={'xOKDf':function(_0x45fd90){return _0x45fd90();},'qMwFo':function(_0x142018,_0x3a478a,_0x11dd57){return _0x142018(_0x3a478a,_0x11dd57);},'EHTPo':_0x3ee50c(0x1b2),'OruIE':'edsInstrumentation','apntO':_0x3ee50c(0x20a),'BaUYn':function(_0x3293ba,_0xdb457c){return _0x3293ba===_0xdb457c;},'qoniE':function(_0x5e0569,_0x3bd006){return _0x5e0569+_0x3bd006;}},_0xa485a9=_0x5b4260['xOKDf'](getBrowserstackCLI),_0x11b0f5=_0x5b4260[_0x3ee50c(0x1de)](nestedKeyValue,_0xa485a9[_0x3ee50c(0x1da)]()[_0x3ee50c(0x1e8)](),[_0x5b4260['EHTPo'],_0x5b4260['OruIE'],_0x5b4260[_0x3ee50c(0x1f8)]])||constants[_0x3ee50c(0x213)];if(!_0x269061||_0x5b4260['BaUYn'](_0x269061,''))return _0x11b0f5;const _0x23efa7=_0x11b0f5[_0x3ee50c(0x1d2)]('/')?_0x11b0f5:_0x5b4260[_0x3ee50c(0x20b)](_0x11b0f5,'/');return new URL(_0x269061,_0x23efa7)['toString']();}static['getAutomateSessionStatusAPIUrl'](_0x373548){const _0x290c4c=a60_0x29efb4,_0x307dd9={'SFJaa':function(_0x54d13a){return _0x54d13a();},'APcHU':function(_0x293d0c,_0x178042,_0x58e179){return _0x293d0c(_0x178042,_0x58e179);},'iMQaE':_0x290c4c(0x1b2),'zNxjL':_0x290c4c(0x1bc),'kLcWF':_0x290c4c(0x20a),'wIKax':function(_0x46603f,_0xc604c){return _0x46603f===_0xc604c;},'DJPHt':function(_0x3d59af,_0x133e79){return _0x3d59af+_0x133e79;}},_0x383d54=_0x307dd9['SFJaa'](getBrowserstackCLI),_0x5f1635=_0x307dd9[_0x290c4c(0x211)](nestedKeyValue,_0x383d54[_0x290c4c(0x1da)]()[_0x290c4c(0x1e8)](),[_0x307dd9[_0x290c4c(0x1d5)],_0x307dd9[_0x290c4c(0x1e5)],_0x307dd9['kLcWF']])||constants[_0x290c4c(0x1c7)];if(!_0x373548||_0x307dd9[_0x290c4c(0x205)](_0x373548,''))return _0x5f1635;const _0x268b2f=_0x5f1635[_0x290c4c(0x1d2)]('/')?_0x5f1635:_0x307dd9[_0x290c4c(0x1ec)](_0x5f1635,'/');return new URL(_0x373548,_0x268b2f)[_0x290c4c(0x1ed)]();}static[a60_0x29efb4(0x1cb)](_0xd2a51f){const _0x21cb99=a60_0x29efb4,_0x2cc087={'qFmyi':function(_0x223657){return _0x223657();},'Oiqvy':function(_0x160c1c,_0x5e991a,_0x4ccebc){return _0x160c1c(_0x5e991a,_0x4ccebc);},'fsKPC':_0x21cb99(0x1b2),'pDmwg':'appAutomate','HubWS':_0x21cb99(0x20a),'GTjnB':function(_0x29fb35,_0x118244){return _0x29fb35===_0x118244;},'zEzqX':function(_0xa1082c,_0x1174ce){return _0xa1082c+_0x1174ce;}},_0x1f165a=_0x2cc087[_0x21cb99(0x1b7)](getBrowserstackCLI),_0x29af97=_0x2cc087[_0x21cb99(0x1ee)](nestedKeyValue,_0x1f165a[_0x21cb99(0x1da)]()['getConfig'](),[_0x2cc087['fsKPC'],_0x2cc087[_0x21cb99(0x204)],_0x2cc087[_0x21cb99(0x1f1)]])||constants['BROWSERSTACK_API_URL'];if(!_0xd2a51f||_0x2cc087['GTjnB'](_0xd2a51f,''))return _0x29af97;const _0x54235d=_0x29af97[_0x21cb99(0x1d2)]('/')?_0x29af97:_0x2cc087[_0x21cb99(0x1e3)](_0x29af97,'/');return new URL(_0xd2a51f,_0x54235d)[_0x21cb99(0x1ed)]();}static[a60_0x29efb4(0x1cf)](_0x1afe8f){const _0x13124b=a60_0x29efb4,_0x55c226={'HBREJ':function(_0x18bfd3){return _0x18bfd3();},'ftDwy':function(_0x102b8e,_0x16132d,_0x7281eb){return _0x102b8e(_0x16132d,_0x7281eb);},'VPkuH':_0x13124b(0x1b2),'LyvCc':_0x13124b(0x1bc),'CiKJO':_0x13124b(0x20a),'WNEsA':function(_0x43d760,_0x1b6a96){return _0x43d760===_0x1b6a96;},'qTKvb':function(_0x52673d,_0x53be6c){return _0x52673d+_0x53be6c;}},_0x33ce8f=_0x55c226['HBREJ'](getBrowserstackCLI),_0x5e1063=_0x55c226[_0x13124b(0x1b4)](nestedKeyValue,_0x33ce8f['getInstance']()[_0x13124b(0x1e8)](),[_0x55c226['VPkuH'],_0x55c226[_0x13124b(0x1e9)],_0x55c226[_0x13124b(0x1c5)]])||constants['BROWSERSTACK_API_URL'];if(!_0x1afe8f||_0x55c226[_0x13124b(0x20f)](_0x1afe8f,''))return _0x5e1063;const _0x140c1d=_0x5e1063[_0x13124b(0x1d2)]('/')?_0x5e1063:_0x55c226['qTKvb'](_0x5e1063,'/');return new URL(_0x1afe8f,_0x140c1d)['toString']();}static[a60_0x29efb4(0x1db)](_0x284b7e){const _0x32e389=a60_0x29efb4,_0x242121={'wKrNL':function(_0x251f9d){return _0x251f9d();},'BzGZM':function(_0x182227,_0x1a1a3b,_0x40f373){return _0x182227(_0x1a1a3b,_0x40f373);},'PjxKd':_0x32e389(0x1b2),'lQSHE':_0x32e389(0x201),'ubSPa':_0x32e389(0x20a),'BokFm':function(_0x4f2264,_0x46f4e4){return _0x4f2264===_0x46f4e4;},'OvIeJ':function(_0x4ecfed,_0x4988e8){return _0x4ecfed+_0x4988e8;}},_0x3e4cdf=_0x242121['wKrNL'](getBrowserstackCLI),_0x1f8f76=_0x242121['BzGZM'](nestedKeyValue,_0x3e4cdf[_0x32e389(0x1da)]()['getConfig'](),[_0x242121[_0x32e389(0x20d)],_0x242121[_0x32e389(0x1bd)],_0x242121[_0x32e389(0x1f0)]])||constants[_0x32e389(0x1c7)];if(!_0x284b7e||_0x242121['BokFm'](_0x284b7e,''))return _0x1f8f76;const _0x423bf8=_0x1f8f76[_0x32e389(0x1d2)]('/')?_0x1f8f76:_0x242121[_0x32e389(0x1ce)](_0x1f8f76,'/');return new URL(_0x284b7e,_0x423bf8)[_0x32e389(0x1ed)]();}static[a60_0x29efb4(0x1d7)](_0x571c78){const _0x3a8ad5=a60_0x29efb4,_0x1649ea={'kiuuv':function(_0x30d5f7){return _0x30d5f7();},'GsIce':function(_0x439d92,_0x1a6c03,_0x8a1467){return _0x439d92(_0x1a6c03,_0x8a1467);},'mCaIt':'apis','rbKew':_0x3a8ad5(0x1bc),'ljbzW':_0x3a8ad5(0x20a),'jHFVH':function(_0x45f783,_0x3a7382){return _0x45f783===_0x3a7382;},'XsZty':function(_0x7e5d38,_0x5a1434){return _0x7e5d38+_0x5a1434;}},_0x58adba=_0x1649ea[_0x3a8ad5(0x1bb)](getBrowserstackCLI),_0x3f9db8=_0x1649ea[_0x3a8ad5(0x1c6)](nestedKeyValue,_0x58adba['getInstance']()[_0x3a8ad5(0x1e8)](),[_0x1649ea[_0x3a8ad5(0x1ef)],_0x1649ea[_0x3a8ad5(0x1d3)],_0x1649ea[_0x3a8ad5(0x208)]])||constants[_0x3a8ad5(0x1c7)];if(!_0x571c78||_0x1649ea[_0x3a8ad5(0x1b5)](_0x571c78,''))return _0x3f9db8;const _0x21642d=_0x3f9db8['endsWith']('/')?_0x3f9db8:_0x1649ea[_0x3a8ad5(0x1d8)](_0x3f9db8,'/');return new URL(_0x571c78,_0x21642d)[_0x3a8ad5(0x1ed)]()[_0x3a8ad5(0x200)](/^https?:\/\//,'');}static[a60_0x29efb4(0x1df)](_0x469b2b){const _0x59f248=a60_0x29efb4,_0xcb9d78={'AfhgK':function(_0x3475af){return _0x3475af();},'tmPsQ':function(_0x47b5ca,_0x36022f,_0x87a00){return _0x47b5ca(_0x36022f,_0x87a00);},'wMPgH':'apis','YVFXp':_0x59f248(0x201),'lKuzu':'api','EsFCs':function(_0x3387e2,_0x24420b){return _0x3387e2===_0x24420b;},'JKoBZ':function(_0x4e7ef7,_0x339b26){return _0x4e7ef7+_0x339b26;}},_0x396352=_0xcb9d78[_0x59f248(0x1f7)](getBrowserstackCLI),_0x4e4b6d=_0xcb9d78['tmPsQ'](nestedKeyValue,_0x396352[_0x59f248(0x1da)]()[_0x59f248(0x1e8)](),[_0xcb9d78[_0x59f248(0x20e)],_0xcb9d78['YVFXp'],_0xcb9d78[_0x59f248(0x1c9)]])||constants[_0x59f248(0x1cd)];if(!_0x469b2b||_0xcb9d78[_0x59f248(0x1ea)](_0x469b2b,''))return _0x4e4b6d;const _0x193b8d=_0x4e4b6d[_0x59f248(0x1d2)]('/')?_0x4e4b6d:_0xcb9d78['JKoBZ'](_0x4e4b6d,'/');return new URL(_0x469b2b,_0x193b8d)[_0x59f248(0x1ed)]()['replace'](/^https?:\/\//,'');}static[a60_0x29efb4(0x20c)](_0x40caf7){const _0x5b88a5=a60_0x29efb4,_0x17b022={'uFTYm':function(_0x214836){return _0x214836();},'KLOkx':function(_0x268421,_0x5e465b,_0x4779c6){return _0x268421(_0x5e465b,_0x4779c6);},'XaXdF':_0x5b88a5(0x1b2),'mMWhc':_0x5b88a5(0x210),'AXpqA':_0x5b88a5(0x206),'gvqki':function(_0x485d08,_0x4f6d08){return _0x485d08===_0x4f6d08;},'KGptC':function(_0x33d96f,_0x204e33){return _0x33d96f+_0x204e33;}},_0x1b9954=_0x17b022['uFTYm'](getBrowserstackCLI),_0x215751=_0x17b022[_0x5b88a5(0x1fd)](nestedKeyValue,_0x1b9954['getInstance']()[_0x5b88a5(0x1e8)](),[_0x17b022[_0x5b88a5(0x1c1)],_0x17b022[_0x5b88a5(0x1b6)],_0x17b022['AXpqA']])||constants[_0x5b88a5(0x1d9)];if(!_0x40caf7||_0x17b022[_0x5b88a5(0x1c4)](_0x40caf7,''))return _0x215751;const _0x78cf66=_0x215751['endsWith']('/')?_0x215751:_0x17b022[_0x5b88a5(0x1e2)](_0x215751,'/');return new URL(_0x40caf7,_0x78cf66)[_0x5b88a5(0x1ed)]();}static[a60_0x29efb4(0x1c8)](_0x335108){const _0x50250e=a60_0x29efb4,_0x47346f={'msePC':function(_0x410dff){return _0x410dff();},'liICe':function(_0x274720,_0x564bed,_0x37d84d){return _0x274720(_0x564bed,_0x37d84d);},'AnTVO':_0x50250e(0x1b2),'EBOvN':_0x50250e(0x1bc),'Ukozi':'cdp','CMfJr':_0x50250e(0x1f5),'JrnDv':function(_0xf9e43a,_0x23424b){return _0xf9e43a===_0x23424b;},'BigyS':function(_0x17f69f,_0x56c3f8){return _0x17f69f+_0x56c3f8;},'jFkfc':'/playwright?caps='},_0x41a013=_0x47346f[_0x50250e(0x1fb)](getBrowserstackCLI),_0x1c639f=_0x47346f[_0x50250e(0x1fe)](nestedKeyValue,_0x41a013[_0x50250e(0x1da)]()[_0x50250e(0x1e8)](),[_0x47346f[_0x50250e(0x1f2)],_0x47346f[_0x50250e(0x1be)],_0x47346f['Ukozi']]),_0x4c6ebf=(_0x1c639f?_0x1c639f[_0x50250e(0x200)](/^https:/,_0x47346f['CMfJr']):null)||constants['PLAYWRIGHT_HUB_URL'];let _0x515213;if(!_0x335108||_0x47346f['JrnDv'](_0x335108,''))_0x515213=_0x4c6ebf;else{const _0x74fdc4=_0x4c6ebf['endsWith']('/')?_0x4c6ebf:_0x47346f[_0x50250e(0x203)](_0x4c6ebf,'/');_0x515213=new URL(_0x335108,_0x74fdc4)[_0x50250e(0x1ed)]();}return!_0x515213['endsWith'](_0x47346f[_0x50250e(0x1c0)])&&(_0x515213+=_0x47346f[_0x50250e(0x1c0)]),_0x515213;}static[a60_0x29efb4(0x1e4)](_0x4488a4){const _0x42228a=a60_0x29efb4,_0x2ddda4={'PLDFh':function(_0x3487b4){return _0x3487b4();},'gtFhD':function(_0x49b75c,_0x41acfb,_0x2af06c){return _0x49b75c(_0x41acfb,_0x2af06c);},'GdHbX':_0x42228a(0x1b2),'KnItD':'automate','xGdZM':_0x42228a(0x1fc),'rMKcC':_0x42228a(0x1f5),'mBoBk':function(_0x5b1ee5,_0x5c65d2){return _0x5b1ee5===_0x5c65d2;},'NgcPX':function(_0x375e9a,_0x419206){return _0x375e9a+_0x419206;},'rkoTr':_0x42228a(0x1bf)},_0x53621c=_0x2ddda4[_0x42228a(0x1dc)](getBrowserstackCLI),_0x540d81=_0x2ddda4[_0x42228a(0x1c3)](nestedKeyValue,_0x53621c[_0x42228a(0x1da)]()['getConfig'](),[_0x2ddda4['GdHbX'],_0x2ddda4[_0x42228a(0x1cc)],_0x2ddda4[_0x42228a(0x1d4)]]),_0x31a13e=(_0x540d81?_0x540d81[_0x42228a(0x200)](/^https:/,_0x2ddda4[_0x42228a(0x1f3)]):null)||constants['PUPPETEER_HUB_URL'];let _0x4a076;if(!_0x4488a4||_0x2ddda4[_0x42228a(0x1c2)](_0x4488a4,''))_0x4a076=_0x31a13e;else{const _0x5974d5=_0x31a13e[_0x42228a(0x1d2)]('/')?_0x31a13e:_0x2ddda4[_0x42228a(0x1b9)](_0x31a13e,'/');_0x4a076=new URL(_0x4488a4,_0x5974d5)['toString']();}return!_0x4a076[_0x42228a(0x1d2)](_0x2ddda4[_0x42228a(0x209)])&&(_0x4a076+=_0x2ddda4[_0x42228a(0x209)]),_0x4a076;}}module['exports']=APIUtilityMethods;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a61_0x24f8ec=a61_0x57e6;function a61_0x57e6(_0x4bb8f1,_0x5f952f){const _0x55c132=a61_0x55c1();return a61_0x57e6=function(_0x57e6d4,_0x17a996){_0x57e6d4=_0x57e6d4-0x11c;let _0x5e3e71=_0x55c132[_0x57e6d4];return _0x5e3e71;},a61_0x57e6(_0x4bb8f1,_0x5f952f);}(function(_0x2ac0b2,_0x10753d){const _0x27f333=a61_0x57e6,_0x32ebd2=_0x2ac0b2();while(!![]){try{const _0x5a5c7f=-parseInt(_0x27f333(0x11f))/0x1+-parseInt(_0x27f333(0x13b))/0x2+parseInt(_0x27f333(0x178))/0x3+parseInt(_0x27f333(0x16a))/0x4*(parseInt(_0x27f333(0x15e))/0x5)+-parseInt(_0x27f333(0x144))/0x6+parseInt(_0x27f333(0x158))/0x7*(parseInt(_0x27f333(0x12c))/0x8)+-parseInt(_0x27f333(0x152))/0x9*(-parseInt(_0x27f333(0x14b))/0xa);if(_0x5a5c7f===_0x10753d)break;else _0x32ebd2['push'](_0x32ebd2['shift']());}catch(_0x3066f4){_0x32ebd2['push'](_0x32ebd2['shift']());}}}(a61_0x55c1,0xd7644));const logger=require('../../helpers/logger')[a61_0x24f8ec(0x123)],BrowserstackCLI=require(a61_0x24f8ec(0x155)),GrpcClient=require('../v2/grpcClient'),constants=require('./constants');class ClientTroubleShootingService{static [a61_0x24f8ec(0x122)]=null;static [a61_0x24f8ec(0x121)]=new Set();static async['getErrorDetails'](_0x1dd43b){const _0x483ea1=a61_0x24f8ec,_0x495c60={};_0x495c60[_0x483ea1(0x159)]=function(_0x586d6f,_0x2d86a0){return _0x586d6f!==_0x2d86a0;};const _0x519b97=_0x495c60;try{if(BrowserstackCLI[_0x483ea1(0x13c)]()['isRunning']()){const _0xad484c=await GrpcClient[_0x483ea1(0x13c)]()[_0x483ea1(0x148)](_0x1dd43b);if(_0x519b97['butFj'](_0xad484c,null)&&_0xad484c[_0x483ea1(0x12a)]())return{'errorCode':_0xad484c[_0x483ea1(0x17d)](),'errorMessage':_0xad484c[_0x483ea1(0x131)]()};return{};}return{};}catch(_0x440fc9){return this[_0x483ea1(0x14c)](_0x483ea1(0x11e)+_0x1dd43b+':',_0x440fc9),{};}}static async[a61_0x24f8ec(0x143)](){const _0x57fe33=a61_0x24f8ec,_0x5b7776={};_0x5b7776[_0x57fe33(0x177)]=function(_0x409e4c,_0x35d19f){return _0x409e4c!==_0x35d19f;},_0x5b7776[_0x57fe33(0x137)]=_0x57fe33(0x173),_0x5b7776[_0x57fe33(0x17f)]=_0x57fe33(0x166);const _0x455da1=_0x5b7776;try{if(BrowserstackCLI[_0x57fe33(0x13c)]()[_0x57fe33(0x168)]()){const _0x290e11=await GrpcClient[_0x57fe33(0x13c)]()['getAggregatedClientTroubleshootingErrors']();if(_0x455da1['WlqpI'](_0x290e11,null)&&_0x290e11[_0x57fe33(0x12a)]()){const _0x52ac0d=Buffer[_0x57fe33(0x16d)](_0x290e11[_0x57fe33(0x133)](),_0x455da1[_0x57fe33(0x137)])[_0x57fe33(0x14a)](),_0x1faedc=_0x52ac0d?JSON[_0x57fe33(0x129)](_0x52ac0d):[],_0x1e3f7e=_0x290e11['getDocumentationLink'](),_0x12be95=_0x290e11[_0x57fe33(0x157)](),_0x5594f9=Buffer[_0x57fe33(0x16d)](_0x290e11['getErrorCodesOccurredInCli'](),_0x455da1[_0x57fe33(0x137)])[_0x57fe33(0x14a)](),_0x1c9c5=_0x5594f9?JSON[_0x57fe33(0x129)](_0x5594f9):[],_0x3d61fb={};return _0x3d61fb[_0x57fe33(0x147)]=_0x1faedc,_0x3d61fb['documentationLink']=_0x1e3f7e,_0x3d61fb[_0x57fe33(0x149)]=_0x12be95,_0x3d61fb['errorCodesOccurredInCLI']=_0x1c9c5,_0x3d61fb;}const _0x2044e3={};return _0x2044e3[_0x57fe33(0x147)]=[],_0x2044e3['documentationLink']='',_0x2044e3['finalErrorMessage']='',_0x2044e3[_0x57fe33(0x12b)]=[],_0x2044e3;}const _0x42a391={};return _0x42a391[_0x57fe33(0x147)]=[],_0x42a391[_0x57fe33(0x17b)]='',_0x42a391[_0x57fe33(0x149)]='',_0x42a391[_0x57fe33(0x12b)]=[],_0x42a391;}catch(_0x370a7e){this[_0x57fe33(0x14c)](_0x455da1[_0x57fe33(0x17f)],_0x370a7e);const _0x4cfdee={};return _0x4cfdee['errorCodes']=[],_0x4cfdee[_0x57fe33(0x17b)]='',_0x4cfdee[_0x57fe33(0x149)]='',_0x4cfdee['errorCodesOccurredInCLI']=[],_0x4cfdee;}}static[a61_0x24f8ec(0x141)](_0x3d85a2,_0x593020){const _0x4075cf=a61_0x24f8ec;logger[_0x4075cf(0x13d)](_0x3d85a2+':\x20'+_0x593020);}static[a61_0x24f8ec(0x15a)](_0xd4a7fe){const _0x3c892c=a61_0x24f8ec,_0x4baec4={};_0x4baec4['TCzDG']=function(_0x557791,_0x369feb){return _0x557791!=_0x369feb;},_0x4baec4[_0x3c892c(0x167)]=function(_0x48d1f9,_0x4409f1){return _0x48d1f9!=_0x4409f1;},_0x4baec4[_0x3c892c(0x138)]=function(_0x599613,_0x3b04d8){return _0x599613>_0x3b04d8;},_0x4baec4[_0x3c892c(0x132)]=function(_0x40aa49,_0x415669){return _0x40aa49!=_0x415669;},_0x4baec4[_0x3c892c(0x165)]=function(_0xa4a67f,_0x2065d3){return _0xa4a67f!=_0x2065d3;};const _0x4930c6=_0x4baec4,_0x19cfbb=[];if(_0x4930c6[_0x3c892c(0x181)](_0xd4a7fe,null)&&_0x4930c6[_0x3c892c(0x167)](_0xd4a7fe[_0x3c892c(0x12b)],null)&&_0x4930c6['paCCp'](_0xd4a7fe['errorCodesOccurredInCLI'][_0x3c892c(0x176)],0x0))for(const _0x4c9068 of _0xd4a7fe[_0x3c892c(0x12b)]){_0x4930c6[_0x3c892c(0x132)](_0x4c9068[_0x3c892c(0x170)],null)&&_0x4930c6[_0x3c892c(0x165)](_0x4c9068[_0x3c892c(0x13f)],null)&&(_0x19cfbb[_0x3c892c(0x12d)](_0x4c9068[_0x3c892c(0x170)]),this[_0x3c892c(0x141)](_0x4c9068[_0x3c892c(0x170)],_0x4c9068[_0x3c892c(0x13f)]));}return _0x19cfbb;}static[a61_0x24f8ec(0x161)](){const _0xa4c370=a61_0x24f8ec;return this[_0xa4c370(0x122)];}static[a61_0x24f8ec(0x14c)](_0x1b9332,_0x7d776){const _0x27c898=a61_0x24f8ec,_0x37af7c={};_0x37af7c[_0x27c898(0x180)]=function(_0x542dd0,_0x571749){return _0x542dd0===_0x571749;},_0x37af7c[_0x27c898(0x130)]=_0x27c898(0x17e);const _0x58566f=_0x37af7c;if(_0x58566f['HRcaX'](typeof _0x7d776,_0x58566f['JuIfF']))try{logger['error'](_0x27c898(0x163)+_0x1b9332+'\x20'+JSON[_0x27c898(0x17c)](_0x7d776));}catch(_0x58a8aa){logger[_0x27c898(0x15c)](_0x27c898(0x163)+_0x1b9332+'\x20'+_0x7d776);}else logger[_0x27c898(0x15c)](_0x27c898(0x163)+_0x1b9332+'\x20'+_0x7d776);}static async[a61_0x24f8ec(0x11d)](_0x585839){const _0x17987a=a61_0x24f8ec,_0x20c2b6={};_0x20c2b6[_0x17987a(0x172)]=_0x17987a(0x14f),_0x20c2b6[_0x17987a(0x12e)]=function(_0x4e7c45,_0x4253c0){return _0x4e7c45===_0x4253c0;},_0x20c2b6[_0x17987a(0x14d)]=_0x17987a(0x128),_0x20c2b6[_0x17987a(0x120)]='{SIGNAL}';const _0xa77487=_0x20c2b6,_0x134063=await this[_0x17987a(0x15b)](_0xa77487[_0x17987a(0x172)]);if(!_0x134063||_0xa77487['nGsUv'](Object[_0x17987a(0x145)](_0x134063)[_0x17987a(0x176)],0x0)){this[_0x17987a(0x14c)](_0xa77487[_0x17987a(0x14d)],_0x134063);return;}this[_0x17987a(0x141)](_0x134063[_0x17987a(0x170)],_0x134063[_0x17987a(0x13f)][_0x17987a(0x140)](_0xa77487[_0x17987a(0x120)],_0x585839));}static async['reportSessionLinkingIssue'](){const _0x3084d0=a61_0x24f8ec,_0x1a4ea6={};_0x1a4ea6[_0x3084d0(0x136)]=_0x3084d0(0x135),_0x1a4ea6[_0x3084d0(0x174)]=function(_0x2d13bd,_0x5df2ca){return _0x2d13bd===_0x5df2ca;},_0x1a4ea6[_0x3084d0(0x17a)]=_0x3084d0(0x13e);const _0x234651=_0x1a4ea6,_0x27e32b=await this[_0x3084d0(0x15b)](_0x234651[_0x3084d0(0x136)]);if(!_0x27e32b||_0x234651[_0x3084d0(0x174)](Object[_0x3084d0(0x145)](_0x27e32b)[_0x3084d0(0x176)],0x0)){this[_0x3084d0(0x14c)](_0x234651[_0x3084d0(0x17a)],_0x27e32b);return;}this[_0x3084d0(0x141)](_0x27e32b[_0x3084d0(0x170)],_0x27e32b['errorMessage']);}static async[a61_0x24f8ec(0x164)](){const _0x4cce12=a61_0x24f8ec,_0x2fda11={};_0x2fda11[_0x4cce12(0x146)]=_0x4cce12(0x160),_0x2fda11[_0x4cce12(0x156)]=function(_0x59746f,_0x2c15e4){return _0x59746f===_0x2c15e4;},_0x2fda11[_0x4cce12(0x127)]='Connectivity\x20Issue\x20details\x20not\x20found';const _0x4d89ea=_0x2fda11,_0x40870c=await this['getErrorDetails'](_0x4d89ea['zJExI']);if(!_0x40870c||_0x4d89ea[_0x4cce12(0x156)](Object[_0x4cce12(0x145)](_0x40870c)[_0x4cce12(0x176)],0x0)){this[_0x4cce12(0x14c)](_0x4d89ea[_0x4cce12(0x127)],_0x40870c);return;}this[_0x4cce12(0x141)](_0x40870c['errorCode'],_0x40870c[_0x4cce12(0x13f)]);}static async[a61_0x24f8ec(0x125)](){const _0x525353=a61_0x24f8ec,_0x5e9a10={};_0x5e9a10[_0x525353(0x134)]=_0x525353(0x16e),_0x5e9a10[_0x525353(0x154)]=function(_0x1cd8d4,_0x180a3c){return _0x1cd8d4===_0x180a3c;},_0x5e9a10[_0x525353(0x162)]=_0x525353(0x169);const _0x2ff69f=_0x5e9a10,_0x403e8d=await this['getErrorDetails'](_0x2ff69f[_0x525353(0x134)]);if(!_0x403e8d||_0x2ff69f[_0x525353(0x154)](Object[_0x525353(0x145)](_0x403e8d)['length'],0x0)){this[_0x525353(0x14c)](_0x2ff69f[_0x525353(0x162)],_0x403e8d);return;}this[_0x525353(0x141)](_0x403e8d[_0x525353(0x170)],_0x403e8d['errorMessage']);}static[a61_0x24f8ec(0x153)](){const _0xa54e87=a61_0x24f8ec,_0x2374f2={};_0x2374f2[_0xa54e87(0x12f)]='.browserstack\x20folder\x20not\x20accessible',_0x2374f2['jIyQH']=function(_0x323b37,_0x5297a0){return _0x323b37===_0x5297a0;},_0x2374f2[_0xa54e87(0x150)]='.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found';const _0xe4f9b7=_0x2374f2,_0x4c6be7=constants[_0xa54e87(0x14e)][_0xe4f9b7[_0xa54e87(0x12f)]];if(!_0x4c6be7||_0xe4f9b7['jIyQH'](Object[_0xa54e87(0x145)](_0x4c6be7)[_0xa54e87(0x176)],0x0)){this['logError'](_0xe4f9b7[_0xa54e87(0x150)],_0x4c6be7);return;}this[_0xa54e87(0x121)][_0xa54e87(0x142)](_0x4c6be7[0x0]),this[_0xa54e87(0x141)](_0x4c6be7[0x0],_0x4c6be7[0x1]);}static async[a61_0x24f8ec(0x124)](_0x2e58d6){const _0x270fe2=a61_0x24f8ec,_0x125366={};_0x125366['dvImQ']=_0x270fe2(0x171),_0x125366['vYGyL']=function(_0xf653db,_0x2b516f){return _0xf653db===_0x2b516f;},_0x125366['GDbog']=_0x270fe2(0x182),_0x125366['zTeia']='{ENV_VAR}';const _0x59d13b=_0x125366,_0x52b630=await this['getErrorDetails'](_0x59d13b[_0x270fe2(0x179)]);if(!_0x52b630||_0x59d13b[_0x270fe2(0x139)](Object[_0x270fe2(0x145)](_0x52b630)['length'],0x0)){this['logError'](_0x59d13b[_0x270fe2(0x15f)],_0x52b630);return;}const _0x2e774a=_0x52b630[_0x270fe2(0x13f)][_0x270fe2(0x140)](_0x59d13b[_0x270fe2(0x16b)],_0x2e58d6);this['logSituation'](_0x52b630[_0x270fe2(0x170)],_0x2e774a);}static async[a61_0x24f8ec(0x13a)](){const _0x411a52=a61_0x24f8ec,_0x107115={};_0x107115['AtGxh']=function(_0x3e6fe6,_0x497a85){return _0x3e6fe6>_0x497a85;},_0x107115[_0x411a52(0x16c)]=function(_0x2bc805,_0x3365fe){return _0x2bc805>_0x3365fe;},_0x107115[_0x411a52(0x11c)]='{ERROR_CODES}',_0x107115['HyuWW']=_0x411a52(0x16f);const _0xef1beb=_0x107115,_0x37ad50=await this[_0x411a52(0x143)](),_0xe3cd2b=this[_0x411a52(0x15a)](_0x37ad50),_0x4e088b=Array['isArray'](_0x37ad50[_0x411a52(0x147)])?_0x37ad50['errorCodes']:[],_0x53364a=_0xef1beb[_0x411a52(0x151)](this[_0x411a52(0x121)]['size'],0x0)?Array[_0x411a52(0x16d)](this[_0x411a52(0x121)]):[],_0x61259a=new Set([..._0x4e088b,..._0xe3cd2b,..._0x53364a]),_0x366a6f=Array[_0x411a52(0x16d)](_0x61259a);if(_0xef1beb[_0x411a52(0x16c)](_0x366a6f[_0x411a52(0x176)],0x0)){const _0xb811d4=_0x37ad50[_0x411a52(0x149)][_0x411a52(0x140)](_0xef1beb[_0x411a52(0x11c)],_0x366a6f[_0x411a52(0x175)](',\x20'))[_0x411a52(0x140)](_0xef1beb[_0x411a52(0x126)],_0x37ad50[_0x411a52(0x17b)]);logger[_0x411a52(0x13d)](_0xb811d4),this['cachedErrorCodes']=_0x366a6f;}}}module[a61_0x24f8ec(0x15d)]=ClientTroubleShootingService;function a61_0x55c1(){const _0x14fecf=['getErrorCode','object','kiSPn','HRcaX','TCzDG','Conflicting\x20Env\x20Var\x20details\x20not\x20found','fWTME','reportProcessInterruptionSituation','Error\x20in\x20getting\x20error\x20details\x20for\x20','354929dDwBQA','DdLWf','errorCodesOccurredWhenCLINotRunning','cachedErrorCodes','winstonLogger','reportConflictingEnvVarIssue','reportSSLCertIssue','HyuWW','GrleB','Process\x20Interruption\x20details\x20not\x20found:','parse','getSuccess','errorCodesOccurredInCLI','1264mVmPML','push','nGsUv','mJZMA','JuIfF','getErrorMessage','RhEZw','getErrorCodes','cbrVS','Session\x20Linking\x20Issue','TQzLP','BeOuS','paCCp','vYGyL','reportFinalDetectionState','2728816TtTkID','getInstance','warn','Session\x20Linking\x20Issue\x20details\x20not\x20found','errorMessage','replace','logSituation','add','getAggregatedErrorCodes','4161072GloHvN','keys','zJExI','errorCodes','reportClientTroubleshootingError','finalErrorMessage','toString','70430KChMFs','logError','tylQl','CLIENT_TROUBLESHOOTING_HASH','Process\x20Interruption','GEGVH','AtGxh','2106jKNBjV','reportDotBrowserStackFolderNotAccessibleIssue','VxfIN','../v2/browserstackCLI','bGaZr','getFinalErrorMessage','12292xBPtQI','butFj','checkForErrorsOccuredInCLI','getErrorDetails','error','exports','40CtdmnJ','GDbog','browserstack\x20cloud\x20not\x20reachable','getCachedErrorCodes','fwyAa','[ClientTroubleShootingService]\x20','reportConnectivityIssue','mLHbS','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','MKMzR','isRunning','SSL\x20Certificate\x20Issue\x20details\x20not\x20found.\x20To\x20pass\x20a\x20custom\x20CA\x20bundle,\x20set\x20NODE_EXTRA_CA_CERTS\x20or\x20BROWSERSTACK_EXTRA_CA_CERTS\x20env\x20var\x20to\x20the\x20certificate\x20file\x20path.','353332FRHpue','zTeia','oaVQH','from','ssl\x20cert\x20issue','{CLIENT_TROUBLESHOOTING_DOCUMENTATION}','errorCode','conflicting\x20env\x20var\x20detected','tCsbp','base64','jTIVS','join','length','WlqpI','1988757hkyiYE','dvImQ','tKmCR','documentationLink','stringify'];a61_0x55c1=function(){return _0x14fecf;};return a61_0x55c1();}
|
|
1
|
+
function a61_0x17cb(_0x2ff1bc,_0x16a813){const _0x2b1c28=a61_0x2b1c();return a61_0x17cb=function(_0x17cbd7,_0x4607b1){_0x17cbd7=_0x17cbd7-0x1a1;let _0x7b09c2=_0x2b1c28[_0x17cbd7];return _0x7b09c2;},a61_0x17cb(_0x2ff1bc,_0x16a813);}const a61_0x29a527=a61_0x17cb;(function(_0x4c1ec3,_0x788ae1){const _0x3f48f2=a61_0x17cb,_0x513138=_0x4c1ec3();while(!![]){try{const _0x1b1063=-parseInt(_0x3f48f2(0x1ec))/0x1*(-parseInt(_0x3f48f2(0x1e4))/0x2)+-parseInt(_0x3f48f2(0x1bd))/0x3+parseInt(_0x3f48f2(0x1cd))/0x4*(-parseInt(_0x3f48f2(0x1cf))/0x5)+parseInt(_0x3f48f2(0x1d7))/0x6+-parseInt(_0x3f48f2(0x1ce))/0x7+-parseInt(_0x3f48f2(0x208))/0x8*(-parseInt(_0x3f48f2(0x209))/0x9)+parseInt(_0x3f48f2(0x1ee))/0xa*(parseInt(_0x3f48f2(0x1c2))/0xb);if(_0x1b1063===_0x788ae1)break;else _0x513138['push'](_0x513138['shift']());}catch(_0x1ff3a8){_0x513138['push'](_0x513138['shift']());}}}(a61_0x2b1c,0xaa628));const logger=require('../../helpers/logger')[a61_0x29a527(0x1b7)],BrowserstackCLI=require(a61_0x29a527(0x200)),GrpcClient=require(a61_0x29a527(0x1b9)),constants=require('./constants');class ClientTroubleShootingService{static [a61_0x29a527(0x1b8)]=null;static [a61_0x29a527(0x1e0)]=new Set();static async['getErrorDetails'](_0x342ebb){const _0x17de38=a61_0x29a527,_0x731bf5={};_0x731bf5[_0x17de38(0x1aa)]=function(_0x2b13c2,_0x299df1){return _0x2b13c2!==_0x299df1;};const _0xabd99b=_0x731bf5;try{if(BrowserstackCLI[_0x17de38(0x1b1)]()[_0x17de38(0x1f1)]()){const _0x2a60df=await GrpcClient[_0x17de38(0x1b1)]()[_0x17de38(0x1c6)](_0x342ebb);if(_0xabd99b['BkHbb'](_0x2a60df,null)&&_0x2a60df[_0x17de38(0x1c3)]())return{'errorCode':_0x2a60df[_0x17de38(0x204)](),'errorMessage':_0x2a60df[_0x17de38(0x1fe)]()};return{};}return{};}catch(_0x9d81e1){return this['logError'](_0x17de38(0x1a5)+_0x342ebb+':',_0x9d81e1),{};}}static async['getAggregatedErrorCodes'](){const _0x1e1e18=a61_0x29a527,_0x12d34c={};_0x12d34c[_0x1e1e18(0x1f0)]=function(_0x4ed937,_0x3e83c5){return _0x4ed937!==_0x3e83c5;},_0x12d34c[_0x1e1e18(0x1b3)]=_0x1e1e18(0x1a8),_0x12d34c[_0x1e1e18(0x1d2)]=_0x1e1e18(0x1c8);const _0x513f60=_0x12d34c;try{if(BrowserstackCLI['getInstance']()['isRunning']()){const _0x56898a=await GrpcClient[_0x1e1e18(0x1b1)]()[_0x1e1e18(0x1d4)]();if(_0x513f60[_0x1e1e18(0x1f0)](_0x56898a,null)&&_0x56898a[_0x1e1e18(0x1c3)]()){const _0x3aed79=Buffer['from'](_0x56898a[_0x1e1e18(0x1d5)](),_0x513f60['ivtZr'])['toString'](),_0x2f1945=_0x3aed79?JSON['parse'](_0x3aed79):[],_0x23fb9b=_0x56898a[_0x1e1e18(0x1eb)](),_0x12625f=_0x56898a[_0x1e1e18(0x1df)](),_0x23d9e7=Buffer['from'](_0x56898a[_0x1e1e18(0x1d8)](),_0x513f60[_0x1e1e18(0x1b3)])['toString'](),_0x1e65e4=_0x23d9e7?JSON[_0x1e1e18(0x1b0)](_0x23d9e7):[],_0x396318={};return _0x396318[_0x1e1e18(0x1cb)]=_0x2f1945,_0x396318[_0x1e1e18(0x1c7)]=_0x23fb9b,_0x396318[_0x1e1e18(0x1bc)]=_0x12625f,_0x396318[_0x1e1e18(0x1c0)]=_0x1e65e4,_0x396318;}const _0x53bb7a={};return _0x53bb7a['errorCodes']=[],_0x53bb7a[_0x1e1e18(0x1c7)]='',_0x53bb7a[_0x1e1e18(0x1bc)]='',_0x53bb7a['errorCodesOccurredInCLI']=[],_0x53bb7a;}const _0x3dc426={};return _0x3dc426[_0x1e1e18(0x1cb)]=[],_0x3dc426[_0x1e1e18(0x1c7)]='',_0x3dc426[_0x1e1e18(0x1bc)]='',_0x3dc426[_0x1e1e18(0x1c0)]=[],_0x3dc426;}catch(_0x2ffb7c){this[_0x1e1e18(0x1bb)](_0x513f60[_0x1e1e18(0x1d2)],_0x2ffb7c);const _0x43c98f={};return _0x43c98f[_0x1e1e18(0x1cb)]=[],_0x43c98f['documentationLink']='',_0x43c98f[_0x1e1e18(0x1bc)]='',_0x43c98f['errorCodesOccurredInCLI']=[],_0x43c98f;}}static['logSituation'](_0x357a77,_0x580361){const _0xa68950=a61_0x29a527;logger[_0xa68950(0x1a3)](_0x357a77+':\x20'+_0x580361);}static[a61_0x29a527(0x1ba)](_0x1663a1){const _0x3925b0=a61_0x29a527,_0x43a76d={};_0x43a76d[_0x3925b0(0x207)]=function(_0x15e987,_0x191c7f){return _0x15e987!=_0x191c7f;},_0x43a76d[_0x3925b0(0x1b4)]=function(_0x4c4b97,_0x156726){return _0x4c4b97>_0x156726;},_0x43a76d[_0x3925b0(0x1dc)]=function(_0x2e4a59,_0x29ba17){return _0x2e4a59!=_0x29ba17;};const _0x583898=_0x43a76d,_0x5841e0=[];if(_0x583898[_0x3925b0(0x207)](_0x1663a1,null)&&_0x583898['JwZGJ'](_0x1663a1[_0x3925b0(0x1c0)],null)&&_0x583898[_0x3925b0(0x1b4)](_0x1663a1[_0x3925b0(0x1c0)][_0x3925b0(0x1be)],0x0))for(const _0x45f718 of _0x1663a1['errorCodesOccurredInCLI']){_0x583898[_0x3925b0(0x207)](_0x45f718[_0x3925b0(0x1f8)],null)&&_0x583898['zJbIt'](_0x45f718[_0x3925b0(0x1c4)],null)&&(_0x5841e0[_0x3925b0(0x1cc)](_0x45f718[_0x3925b0(0x1f8)]),this[_0x3925b0(0x1a7)](_0x45f718[_0x3925b0(0x1f8)],_0x45f718[_0x3925b0(0x1c4)]));}return _0x5841e0;}static[a61_0x29a527(0x1ca)](){const _0x4f3ea0=a61_0x29a527;return this[_0x4f3ea0(0x1b8)];}static[a61_0x29a527(0x1bb)](_0x140c4e,_0xf853e2){const _0x2aaeac=a61_0x29a527,_0x40f031={};_0x40f031[_0x2aaeac(0x1a1)]=function(_0x4e96b5,_0x20e2e1){return _0x4e96b5===_0x20e2e1;},_0x40f031['XgKLN']='object';const _0x1b32df=_0x40f031;if(_0x1b32df[_0x2aaeac(0x1a1)](typeof _0xf853e2,_0x1b32df[_0x2aaeac(0x1f6)]))try{logger['error'](_0x2aaeac(0x1d9)+_0x140c4e+'\x20'+JSON['stringify'](_0xf853e2));}catch(_0x51bd96){logger[_0x2aaeac(0x1ff)](_0x2aaeac(0x1d9)+_0x140c4e+'\x20'+_0xf853e2);}else logger['error'](_0x2aaeac(0x1d9)+_0x140c4e+'\x20'+_0xf853e2);}static async[a61_0x29a527(0x1d0)](_0x24c5d6){const _0x5a73cf=a61_0x29a527,_0x5b0fbc={};_0x5b0fbc[_0x5a73cf(0x1d3)]=_0x5a73cf(0x203),_0x5b0fbc['kikuk']=function(_0x8638e,_0xb716f8){return _0x8638e===_0xb716f8;},_0x5b0fbc[_0x5a73cf(0x1fc)]=_0x5a73cf(0x1e8),_0x5b0fbc[_0x5a73cf(0x1fa)]=_0x5a73cf(0x1db);const _0x396372=_0x5b0fbc,_0xe13610=await this[_0x5a73cf(0x1d1)](_0x396372[_0x5a73cf(0x1d3)]);if(!_0xe13610||_0x396372[_0x5a73cf(0x1da)](Object[_0x5a73cf(0x1c5)](_0xe13610)['length'],0x0)){this['logError'](_0x396372[_0x5a73cf(0x1fc)],_0xe13610);return;}this['logSituation'](_0xe13610['errorCode'],_0xe13610[_0x5a73cf(0x1c4)][_0x5a73cf(0x1f9)](_0x396372[_0x5a73cf(0x1fa)],_0x24c5d6));}static async[a61_0x29a527(0x1ed)](){const _0x252747=a61_0x29a527,_0x5ebd35={};_0x5ebd35[_0x252747(0x1e9)]=_0x252747(0x1b5),_0x5ebd35[_0x252747(0x1f5)]=function(_0x146b1c,_0x5818a8){return _0x146b1c===_0x5818a8;},_0x5ebd35[_0x252747(0x1e3)]=_0x252747(0x1fb);const _0x2b3db2=_0x5ebd35,_0x107520=await this[_0x252747(0x1d1)](_0x2b3db2[_0x252747(0x1e9)]);if(!_0x107520||_0x2b3db2[_0x252747(0x1f5)](Object[_0x252747(0x1c5)](_0x107520)[_0x252747(0x1be)],0x0)){this[_0x252747(0x1bb)](_0x2b3db2[_0x252747(0x1e3)],_0x107520);return;}this['logSituation'](_0x107520['errorCode'],_0x107520[_0x252747(0x1c4)]);}static async[a61_0x29a527(0x1f3)](){const _0x9bcb76=a61_0x29a527,_0x4efb2c={};_0x4efb2c[_0x9bcb76(0x1a2)]=_0x9bcb76(0x1ae),_0x4efb2c[_0x9bcb76(0x1a9)]=function(_0x222bc8,_0x260c59){return _0x222bc8===_0x260c59;},_0x4efb2c[_0x9bcb76(0x1a6)]=_0x9bcb76(0x201);const _0x2a5763=_0x4efb2c,_0x4f4789=await this[_0x9bcb76(0x1d1)](_0x2a5763[_0x9bcb76(0x1a2)]);if(!_0x4f4789||_0x2a5763[_0x9bcb76(0x1a9)](Object['keys'](_0x4f4789)[_0x9bcb76(0x1be)],0x0)){this[_0x9bcb76(0x1bb)](_0x2a5763['eihSR'],_0x4f4789);return;}this[_0x9bcb76(0x1a7)](_0x4f4789[_0x9bcb76(0x1f8)],_0x4f4789['errorMessage']);}static async[a61_0x29a527(0x1b2)](){const _0x19603e=a61_0x29a527,_0x35d517={};_0x35d517[_0x19603e(0x1ad)]=_0x19603e(0x1e1),_0x35d517[_0x19603e(0x1e2)]=function(_0x55cf33,_0x4a4d43){return _0x55cf33===_0x4a4d43;},_0x35d517[_0x19603e(0x205)]='SSL\x20Certificate\x20Issue\x20details\x20not\x20found.\x20To\x20pass\x20a\x20custom\x20CA\x20bundle,\x20set\x20NODE_EXTRA_CA_CERTS\x20or\x20BROWSERSTACK_EXTRA_CA_CERTS\x20env\x20var\x20to\x20the\x20certificate\x20file\x20path.';const _0x51a906=_0x35d517,_0x1eec2b=await this[_0x19603e(0x1d1)](_0x51a906[_0x19603e(0x1ad)]);if(!_0x1eec2b||_0x51a906[_0x19603e(0x1e2)](Object['keys'](_0x1eec2b)[_0x19603e(0x1be)],0x0)){this[_0x19603e(0x1bb)](_0x51a906[_0x19603e(0x205)],_0x1eec2b);return;}this[_0x19603e(0x1a7)](_0x1eec2b[_0x19603e(0x1f8)],_0x1eec2b[_0x19603e(0x1c4)]);}static['reportDotBrowserStackFolderNotAccessibleIssue'](){const _0x412167=a61_0x29a527,_0x4f27e0={};_0x4f27e0[_0x412167(0x1c1)]='.browserstack\x20folder\x20not\x20accessible',_0x4f27e0['aYjlB']=function(_0x145163,_0x557048){return _0x145163===_0x557048;},_0x4f27e0[_0x412167(0x1dd)]=_0x412167(0x1e5);const _0x3960a0=_0x4f27e0,_0xc4abd8=constants[_0x412167(0x1ef)][_0x3960a0[_0x412167(0x1c1)]];if(!_0xc4abd8||_0x3960a0[_0x412167(0x1f4)](Object[_0x412167(0x1c5)](_0xc4abd8)['length'],0x0)){this['logError'](_0x3960a0[_0x412167(0x1dd)],_0xc4abd8);return;}this[_0x412167(0x1e0)][_0x412167(0x1fd)](_0xc4abd8[0x0]),this[_0x412167(0x1a7)](_0xc4abd8[0x0],_0xc4abd8[0x1]);}static async[a61_0x29a527(0x1b6)](_0x4ac3cc){const _0x58b7bd=a61_0x29a527,_0x388106={};_0x388106[_0x58b7bd(0x1e7)]=_0x58b7bd(0x1bf),_0x388106[_0x58b7bd(0x1f7)]=function(_0x20ff90,_0x42e14d){return _0x20ff90===_0x42e14d;},_0x388106[_0x58b7bd(0x1f2)]=_0x58b7bd(0x1e6),_0x388106[_0x58b7bd(0x1af)]=_0x58b7bd(0x1a4);const _0x23c236=_0x388106,_0x55989f=await this[_0x58b7bd(0x1d1)](_0x23c236[_0x58b7bd(0x1e7)]);if(!_0x55989f||_0x23c236[_0x58b7bd(0x1f7)](Object[_0x58b7bd(0x1c5)](_0x55989f)[_0x58b7bd(0x1be)],0x0)){this[_0x58b7bd(0x1bb)](_0x23c236[_0x58b7bd(0x1f2)],_0x55989f);return;}const _0x1527d1=_0x55989f[_0x58b7bd(0x1c4)]['replace'](_0x23c236[_0x58b7bd(0x1af)],_0x4ac3cc);this[_0x58b7bd(0x1a7)](_0x55989f['errorCode'],_0x1527d1);}static async[a61_0x29a527(0x1c9)](){const _0x186a1e=a61_0x29a527,_0x428a48={};_0x428a48[_0x186a1e(0x1ab)]=function(_0x3567df,_0x3deb3c){return _0x3567df>_0x3deb3c;},_0x428a48['BWAFU']=_0x186a1e(0x1de),_0x428a48[_0x186a1e(0x206)]='{CLIENT_TROUBLESHOOTING_DOCUMENTATION}';const _0x300b6d=_0x428a48,_0x3f6769=await this['getAggregatedErrorCodes'](),_0x307034=this[_0x186a1e(0x1ba)](_0x3f6769),_0x42e775=Array[_0x186a1e(0x202)](_0x3f6769[_0x186a1e(0x1cb)])?_0x3f6769[_0x186a1e(0x1cb)]:[],_0x9fe2eb=_0x300b6d[_0x186a1e(0x1ab)](this[_0x186a1e(0x1e0)]['size'],0x0)?Array[_0x186a1e(0x1ea)](this[_0x186a1e(0x1e0)]):[],_0x45a696=new Set([..._0x42e775,..._0x307034,..._0x9fe2eb]),_0x427a7d=Array[_0x186a1e(0x1ea)](_0x45a696);if(_0x300b6d[_0x186a1e(0x1ab)](_0x427a7d['length'],0x0)){const _0x2b396b=_0x3f6769[_0x186a1e(0x1bc)][_0x186a1e(0x1f9)](_0x300b6d[_0x186a1e(0x1ac)],_0x427a7d['join'](',\x20'))[_0x186a1e(0x1f9)](_0x300b6d[_0x186a1e(0x206)],_0x3f6769[_0x186a1e(0x1c7)]);logger[_0x186a1e(0x1a3)](_0x2b396b),this['cachedErrorCodes']=_0x427a7d;}}}module[a61_0x29a527(0x1d6)]=ClientTroubleShootingService;function a61_0x2b1c(){const _0xde95a6=['GuJAH','JwZGJ','1852856oUJZQZ','9XySpcl','ygxKC','BrNyg','warn','{ENV_VAR}','Error\x20in\x20getting\x20error\x20details\x20for\x20','eihSR','logSituation','base64','mcayP','BkHbb','yITFP','BWAFU','hnHkQ','browserstack\x20cloud\x20not\x20reachable','KnRMT','parse','getInstance','reportSSLCertIssue','ivtZr','vjKlY','Session\x20Linking\x20Issue','reportConflictingEnvVarIssue','winstonLogger','cachedErrorCodes','../v2/grpcClient','checkForErrorsOccuredInCLI','logError','finalErrorMessage','1289337UpYWVs','length','conflicting\x20env\x20var\x20detected','errorCodesOccurredInCLI','KtRDQ','3827307cIsXJN','getSuccess','errorMessage','keys','reportClientTroubleshootingError','documentationLink','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','reportFinalDetectionState','getCachedErrorCodes','errorCodes','push','1142840vpgSqO','1333171SEhTRG','10clFPzF','reportProcessInterruptionSituation','getErrorDetails','BBnAK','qGtiH','getAggregatedClientTroubleshootingErrors','getErrorCodes','exports','1585986mRbCQl','getErrorCodesOccurredInCli','[ClientTroubleShootingService]\x20','kikuk','{SIGNAL}','zJbIt','QEBgk','{ERROR_CODES}','getFinalErrorMessage','errorCodesOccurredWhenCLINotRunning','ssl\x20cert\x20issue','mITIk','mhnvq','13418bCWWFr','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','Conflicting\x20Env\x20Var\x20details\x20not\x20found','GGnZj','Process\x20Interruption\x20details\x20not\x20found:','iMqUG','from','getDocumentationLink','104bpwArz','reportSessionLinkingIssue','20ybwAOA','CLIENT_TROUBLESHOOTING_HASH','UbdLD','isRunning','aOaaY','reportConnectivityIssue','aYjlB','WNkSo','XgKLN','aBVwH','errorCode','replace','HmiRR','Session\x20Linking\x20Issue\x20details\x20not\x20found','tJIUP','add','getErrorMessage','error','../v2/browserstackCLI','Connectivity\x20Issue\x20details\x20not\x20found','isArray','Process\x20Interruption','getErrorCode','uvsaG'];a61_0x2b1c=function(){return _0xde95a6;};return a61_0x2b1c();}
|