browserstack-node-sdk 1.53.4 → 1.53.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/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/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/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a49_0x51914a=a49_0x5887;(function(_0x82b487,_0x3c45c5){const _0x343204=a49_0x5887,_0x56e792=_0x82b487();while(!![]){try{const _0x5ed432=parseInt(_0x343204(0x11d))/0x1+-parseInt(_0x343204(0xcf))/0x2*(-parseInt(_0x343204(0xc9))/0x3)+-parseInt(_0x343204(0xfa))/0x4+parseInt(_0x343204(0x11a))/0x5*(parseInt(_0x343204(0x11e))/0x6)+parseInt(_0x343204(0x104))/0x7+-parseInt(_0x343204(0x11b))/0x8*(-parseInt(_0x343204(0x114))/0x9)+parseInt(_0x343204(0xe1))/0xa*(-parseInt(_0x343204(0x11f))/0xb);if(_0x5ed432===_0x3c45c5)break;else _0x56e792['push'](_0x56e792['shift']());}catch(_0x8766d8){_0x56e792['push'](_0x56e792['shift']());}}}(a49_0x42be,0x3d62d));function a49_0x5887(_0x290956,_0x5c050c){const _0x42bef6=a49_0x42be();return a49_0x5887=function(_0x588787,_0x449fff){_0x588787=_0x588787-0xc7;let _0x46d8a9=_0x42bef6[_0x588787];return _0x46d8a9;},a49_0x5887(_0x290956,_0x5c050c);}const path=require(a49_0x51914a(0xdc)),url=require(a49_0x51914a(0x113)),util=require(a49_0x51914a(0xfc)),{nestedKeyValue,isFalse}=require(a49_0x51914a(0xf2)),{debug,getPlatformDetails}=require(a49_0x51914a(0x102)),logger=require(a49_0x51914a(0x118))[a49_0x51914a(0x120)],constants=require(a49_0x51914a(0xcd)),BrowserstackCLI=require(a49_0x51914a(0x106)),AutomationFrameworkState=require('../v2/state/automationFrameworkState.js'),HookState=require(a49_0x51914a(0xf0)),getBrowserFromWSEndpoint=_0x842337=>{const _0x47becd=a49_0x51914a,_0xe8cf93={'asNOy':'chrome','UfEuL':function(_0x120aeb,_0x486ba3){return _0x120aeb(_0x486ba3);}};try{const _0x2a82a0=url[_0x47becd(0x123)](_0x842337),_0x3f88dd=new URLSearchParams(_0x2a82a0[_0x47becd(0xd6)]),_0x14c6c6=Object['fromEntries'](_0x3f88dd[_0x47becd(0xf4)]()),_0x1c64da=JSON[_0x47becd(0x123)](_0x14c6c6['caps']);if(_0x1c64da&&(_0x1c64da[_0x47becd(0xde)]||_0x1c64da[_0x47becd(0xe9)]))return _0x1c64da[_0x47becd(0xde)]||_0x1c64da[_0x47becd(0xe9)];return _0xe8cf93[_0x47becd(0xf6)];}catch(_0x54d192){_0xe8cf93[_0x47becd(0xe2)](debug,_0x47becd(0xdb)+_0x54d192[_0x47becd(0xe0)]());}},getCloudProviderFromWsEndpoint=_0x59af90=>{const _0xd8665c=a49_0x51914a,_0x493947={};_0x493947[_0xd8665c(0xe7)]='browserstack',_0x493947[_0xd8665c(0xf1)]=_0xd8665c(0xd5);const _0x5c0c9c=_0x493947;if(_0x59af90[_0xd8665c(0x128)](constants[_0xd8665c(0x115)])||_0x59af90[_0xd8665c(0x128)](constants[_0xd8665c(0xdd)]))return _0x5c0c9c['XYGcD'];return _0x5c0c9c['WEtBH'];},a49_0x2a06ad={};a49_0x2a06ad['cloudProvider']=undefined,a49_0x2a06ad['bsSessionId']=undefined,a49_0x2a06ad['browser']=undefined,a49_0x2a06ad[a49_0x51914a(0x10b)]=undefined,a49_0x2a06ad[a49_0x51914a(0xc8)]=undefined,a49_0x2a06ad[a49_0x51914a(0xd4)]=undefined,a49_0x2a06ad[a49_0x51914a(0xee)]=undefined,a49_0x2a06ad[a49_0x51914a(0xcc)]={};class PuppeteerSessionDetails{static [a49_0x51914a(0x105)]=a49_0x2a06ad;constructor(){const _0x2d07eb=a49_0x51914a,_0x4211ba={};_0x4211ba[_0x2d07eb(0xe6)]=_0x2d07eb(0xef);const _0x37bdf5=_0x4211ba;throw new Error(_0x37bdf5['DIwQb']);}static [a49_0x51914a(0xd2)]=null;static async[a49_0x51914a(0xeb)](_0x1e4137,_0x1d46c4){const _0x2986b5=a49_0x51914a,_0x1e0695={'kMcpx':_0x2986b5(0xf3),'obJYl':function(_0x3ad4fb,_0x9bd126){return _0x3ad4fb===_0x9bd126;},'FsLoc':_0x2986b5(0x103),'sRtvS':'local_grid','DlHPE':function(_0x787cb,_0x27accc){return _0x787cb(_0x27accc);},'eoNsq':function(_0x57181c,_0x18708d){return _0x57181c===_0x18708d;},'NGDPJ':_0x2986b5(0xcb),'OvWjc':_0x2986b5(0xd7),'IHdnB':'automate','kBZnr':function(_0x11a28b,_0x5d79ce){return _0x11a28b(_0x5d79ce);},'flSfT':function(_0x8249aa){return _0x8249aa();},'dZPNP':function(_0x1e3569,_0x403b24){return _0x1e3569(_0x403b24);}};try{let _0x17d22a=_0x1e0695[_0x2986b5(0xd8)],_0x4eef60=null;_0x1e4137&&_0x1e0695[_0x2986b5(0x127)](typeof _0x1e4137['version'],_0x1e0695[_0x2986b5(0x10a)])&&(_0x4eef60=await _0x1e4137[_0x2986b5(0x110)]());let _0x17603b=null,_0xc44711=null,_0x744818=null,_0xcd6747=_0x1e0695[_0x2986b5(0xf8)];if(_0x1d46c4){_0xcd6747=_0x1e0695[_0x2986b5(0xea)](getCloudProviderFromWsEndpoint,_0x1d46c4);if(_0x1e0695['eoNsq'](_0xcd6747,_0x1e0695[_0x2986b5(0xe3)]))_0x744818=constants['ATS_WSS_URL_REGEX']?constants['ATS_WSS_URL_REGEX'][_0x2986b5(0x10e)](_0x1d46c4)?_0x1e0695['OvWjc']:_0x1e0695[_0x2986b5(0xd1)]:_0x1e0695[_0x2986b5(0xd1)],_0x17d22a=_0x1e0695[_0x2986b5(0x10c)](getBrowserFromWSEndpoint,_0x1d46c4)||_0x17d22a,_0x17603b=this[_0x2986b5(0x105)]['platform'],_0xc44711=this[_0x2986b5(0x105)][_0x2986b5(0xd4)];else{const _0x319f5b=await _0x1e0695[_0x2986b5(0xd9)](getPlatformDetails);_0x17603b=_0x319f5b[_0x2986b5(0x111)],_0xc44711=_0x319f5b[_0x2986b5(0x107)];}}else{const _0x86abb4=await _0x1e0695[_0x2986b5(0xd9)](getPlatformDetails);_0x17603b=_0x86abb4[_0x2986b5(0x111)],_0xc44711=_0x86abb4['platformVersion'];}const _0x13e5de={};_0x13e5de['browser']=_0x17d22a,_0x13e5de[_0x2986b5(0x10b)]=_0x4eef60,_0x13e5de[_0x2986b5(0xcc)]={},_0x13e5de[_0x2986b5(0xc8)]=_0x17603b,_0x13e5de[_0x2986b5(0xd4)]=_0xc44711,_0x13e5de[_0x2986b5(0xee)]=_0x744818;const _0x110e5a=_0x13e5de,_0x24d314={};_0x24d314[_0x2986b5(0xda)]=_0xcd6747,this[_0x2986b5(0x105)]=Object[_0x2986b5(0xfd)]({},this[_0x2986b5(0x105)],_0x24d314,_0x110e5a);}catch(_0xe48f6){_0x1e0695[_0x2986b5(0x101)](debug,_0x2986b5(0xed)+util['format'](_0xe48f6)),this['sessionError']=_0xe48f6[_0x2986b5(0xe0)]();}}static[a49_0x51914a(0xdf)](_0x5f0c4a){const _0xfcf4c0=a49_0x51914a,_0x4e2ea1={'WsqPj':function(_0x570073,_0x16d5c0){return _0x570073===_0x16d5c0;},'mtqHB':_0xfcf4c0(0xec),'UWRpu':function(_0x30a25d,_0x113e08){return _0x30a25d(_0x113e08);},'xBecU':function(_0x4920da,_0x205c67){return _0x4920da(_0x205c67);},'bWHaj':function(_0x3c5c7d,_0x41be1a){return _0x3c5c7d===_0x41be1a;},'VkbvX':function(_0x49c812,_0x1296c1){return _0x49c812(_0x1296c1);},'RGRHk':_0xfcf4c0(0xce)},_0x2d333a=this;try{const _0x15f6fa=_0x5f0c4a[_0xfcf4c0(0x124)]||_0x5f0c4a[_0xfcf4c0(0x122)];if(!_0x15f6fa||_0x15f6fa['_bstackPatched'])return;const _0x49da90=_0x15f6fa[_0xfcf4c0(0x112)];_0x15f6fa[_0xfcf4c0(0x112)]=function(_0x581a96){const _0x1f7a3d=_0xfcf4c0;try{const _0x39f9c7=_0x4e2ea1['WsqPj'](typeof _0x581a96,_0x4e2ea1[_0x1f7a3d(0x109)])?JSON[_0x1f7a3d(0x123)](_0x581a96):_0x581a96,_0x37836e=_0x39f9c7?.['bStackParams']||_0x39f9c7?.[_0x1f7a3d(0xff)]||_0x39f9c7?.[_0x1f7a3d(0xc7)]?.[_0x1f7a3d(0xff)]||_0x39f9c7?.['params']?.['bStackParams']||_0x39f9c7?.[_0x1f7a3d(0x121)]?.[_0x1f7a3d(0xff)]||_0x39f9c7?.['result']?.['bStackParams'];if(_0x37836e){if(BrowserstackCLI[_0x1f7a3d(0xe8)]()[_0x1f7a3d(0xca)]()){const _0x191d61={};_0x191d61[_0x1f7a3d(0xe5)]=_0x39f9c7,BrowserstackCLI[_0x1f7a3d(0xe8)]()['getAutomationFramework']()[_0x1f7a3d(0xfb)](AutomationFrameworkState[_0x1f7a3d(0xd3)],HookState[_0x1f7a3d(0xfe)],_0x191d61);}else{const _0x182e7e=_0x37836e[_0x1f7a3d(0x108)],_0x327677=_0x37836e['platformDetails'];_0x327677&&(_0x4e2ea1['UWRpu'](debug,_0x1f7a3d(0x11c)+JSON[_0x1f7a3d(0x100)](_0x327677)),_0x2d333a[_0x1f7a3d(0x105)][_0x1f7a3d(0xc8)]=_0x327677['platformName'],_0x2d333a['currentSessionDetails'][_0x1f7a3d(0xd4)]=_0x327677[_0x1f7a3d(0x107)]),_0x182e7e&&(_0x4e2ea1[_0x1f7a3d(0xf9)](debug,'Setting\x20session\x20id\x20received\x20from\x20BS\x20'+_0x182e7e),_0x2d333a[_0x1f7a3d(0x105)]['bsSessionId']=_0x182e7e);}_0x4e2ea1[_0x1f7a3d(0xd0)](typeof _0x581a96,_0x4e2ea1[_0x1f7a3d(0x109)])&&(delete _0x39f9c7[_0x1f7a3d(0x10f)],delete _0x39f9c7[_0x1f7a3d(0xff)],_0x39f9c7[_0x1f7a3d(0xc7)]&&(delete _0x39f9c7[_0x1f7a3d(0xc7)][_0x1f7a3d(0xff)],delete _0x39f9c7[_0x1f7a3d(0xc7)][_0x1f7a3d(0x10f)]),_0x39f9c7[_0x1f7a3d(0x121)]&&(delete _0x39f9c7['result']['bsParams'],delete _0x39f9c7['result'][_0x1f7a3d(0x10f)]));}}catch(_0x19c49c){_0x4e2ea1['VkbvX'](debug,_0x1f7a3d(0x119)+_0x19c49c[_0x1f7a3d(0xe5)]);}return _0x49da90?.[_0x1f7a3d(0x116)](this,arguments);},_0x15f6fa[_0xfcf4c0(0x125)]=!![],logger[_0xfcf4c0(0x10d)](_0x4e2ea1[_0xfcf4c0(0xf7)]);}catch(_0x5742fd){_0x4e2ea1[_0xfcf4c0(0xe4)](debug,_0xfcf4c0(0xf5)+util['format'](_0x5742fd)),_0x2d333a[_0xfcf4c0(0xd2)]=_0x5742fd['toString']();}}static[a49_0x51914a(0x117)](){const _0x3bb4c8=a49_0x51914a;return this[_0x3bb4c8(0x105)];}}function a49_0x42be(){const _0x15acaf=['_bstackPatched','exports','obJYl','includes','params','platform','3DembCc','isRunning','browserstack','capabilities','../utils/constants','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','495466jGPzHw','bWHaj','IHdnB','sessionError','PLAYWRIGHT_DISPATCH','platform_version','unknown_grid','query','turboscale','kMcpx','flSfT','cloudProvider','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','path','BSTACK_ATS_URL','browser','patchConnection','toString','30DlyCsq','UfEuL','NGDPJ','UWRpu','message','DIwQb','XYGcD','getInstance','browserName','DlHPE','setupBrowserDetails','string','Error\x20in\x20setupBrowserDetails:\x20','product','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','../v2/state/hookState.js','WEtBH','../../helpers/helper','chrome','entries','Error\x20in\x20patchConnection:\x20','asNOy','RGRHk','sRtvS','xBecU','1439340SFzHqM','trackEvent','util','assign','POST','bsParams','stringify','dZPNP','../../helpers/test-observability/utils','function','2368037dZEFBt','currentSessionDetails','../v2/browserstackCLI','platformVersion','sessionId','mtqHB','FsLoc','browser_version','kBZnr','debug','test','bStackParams','version','platformName','onmessage','url','1181835ymbcJq','BSTACK_URL','apply','getDetails','../../helpers/logger','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','500wxMClY','16PtaJKV','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','377737mialsw','8934FmlATo','2801403VcYrJa','winstonLogger','result','connection','parse','_connection'];a49_0x42be=function(){return _0x15acaf;};return a49_0x42be();}module[a49_0x51914a(0x126)]=PuppeteerSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0x4b3707=a50_0x5a09;(function(_0x294302,_0x78b7a7){const _0x3a0446=a50_0x5a09,_0x39d1f5=_0x294302();while(!![]){try{const _0x50f8c9=-parseInt(_0x3a0446(0xf9))/0x1*(parseInt(_0x3a0446(0xf2))/0x2)+parseInt(_0x3a0446(0x10f))/0x3+-parseInt(_0x3a0446(0xfc))/0x4+-parseInt(_0x3a0446(0xf6))/0x5+-parseInt(_0x3a0446(0x111))/0x6+-parseInt(_0x3a0446(0xed))/0x7+-parseInt(_0x3a0446(0x115))/0x8*(-parseInt(_0x3a0446(0xee))/0x9);if(_0x50f8c9===_0x78b7a7)break;else _0x39d1f5['push'](_0x39d1f5['shift']());}catch(_0x2113ab){_0x39d1f5['push'](_0x39d1f5['shift']());}}}(a50_0x22db,0x81beb));const {isTrue,isBrowserstackInfra}=require(a50_0x4b3707(0x10a)),setKeepAlive=require(a50_0x4b3707(0xfb)),util=require('util'),logger=require('../../helpers/logger')[a50_0x4b3707(0xf0)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),{addRequestSpy}=require('../../helpers/test-observability/utils'),a50_0x5b897f={};function a50_0x22db(){const _0x181554=['__skipSessionName','initializePuppeteerPatching','getInstance','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','jestConfig','format','../../helpers/helper','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','bootstrap','catch','BROWSERSTACK_PUPPETEER','1019391NKBRbT','skipSessionStatus','2184252mtnBAB','o11ySyncDone','workerInfo','debug','8FUjVTr','isPageFixture','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','../utils/constants','97958rmvzro','30241269gglTtc','setFrameworkDetail','winstonLogger','../v2/cliUtils','2TDsHyt','true','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','__workerDetails','3645560IMOhoX','puppeteer','testInfo','998583kHZksZ','puppeteer-core','../../helpers/setKeepAlive','4251088Paaoor','skipSessionName','JEST','__skipSessionStatus','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','currentTest','getPackageVersion'];a50_0x22db=function(){return _0x181554;};return a50_0x22db();}a50_0x5b897f[a50_0x4b3707(0x113)]=undefined,a50_0x5b897f[a50_0x4b3707(0x101)]={},a50_0x5b897f[a50_0x4b3707(0x112)]=![],a50_0x5b897f['pwPage']=null,a50_0x5b897f[a50_0x4b3707(0x116)]=![],a50_0x5b897f[a50_0x4b3707(0x101)]['id']=undefined,a50_0x5b897f[a50_0x4b3707(0x101)][a50_0x4b3707(0xf8)]=undefined;const workerDetails=a50_0x5b897f;global[a50_0x4b3707(0xf5)]=workerDetails;let puppeteerPatcher=null;function a50_0x5a09(_0x9a10b4,_0x45a722){const _0x22dbf2=a50_0x22db();return a50_0x5a09=function(_0x5a094a,_0x4a327f){_0x5a094a=_0x5a094a-0xeb;let _0x2a413e=_0x22dbf2[_0x5a094a];return _0x2a413e;},a50_0x5a09(_0x9a10b4,_0x45a722);}setKeepAlive();if(global['jestConfig'])try{isBrowserstackInfra()?(global[a50_0x4b3707(0x103)]=isTrue(global[a50_0x4b3707(0x108)]?.[a50_0x4b3707(0xfd)]),global[a50_0x4b3707(0xff)]=isTrue(global[a50_0x4b3707(0x108)]?.[a50_0x4b3707(0x110)])):(global[a50_0x4b3707(0x103)]=!![],global[a50_0x4b3707(0xff)]=!![]);const helper=require(a50_0x4b3707(0x10a)),puppeteerVersion=helper[a50_0x4b3707(0x102)](a50_0x4b3707(0xf7))||helper[a50_0x4b3707(0x102)](a50_0x4b3707(0xfa));if(puppeteerVersion)try{logger[a50_0x4b3707(0x114)](a50_0x4b3707(0xeb)),puppeteerPatcher=require('../utils/puppeteer-patcher'),puppeteerPatcher[a50_0x4b3707(0x104)](global['jestConfig']),logger[a50_0x4b3707(0x114)](a50_0x4b3707(0x106));}catch(a50_0x179a86){logger['debug'](a50_0x4b3707(0xf4)+util['format'](a50_0x179a86));}if(puppeteerPatcher)try{const BrowserstackCLI=require('../v2/browserstackCLI'),CLIUtils=require(a50_0x4b3707(0xf1)),{FRAMEWORKS}=require(a50_0x4b3707(0xec));BrowserstackCLI['getInstance']()['isCliEnabled']()&&(logger['debug'](a50_0x4b3707(0x100)),process['env'][a50_0x4b3707(0x10e)]=a50_0x4b3707(0xf3),CLIUtils[a50_0x4b3707(0xef)](FRAMEWORKS[a50_0x4b3707(0xfe)],FRAMEWORKS['PUPPETEER']),BrowserstackCLI[a50_0x4b3707(0x105)]()[a50_0x4b3707(0x10c)]()[a50_0x4b3707(0x10d)](_0x36880e=>{const _0x37bf7c=a50_0x4b3707;logger[_0x37bf7c(0x114)]('[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20'+util[_0x37bf7c(0x109)](_0x36880e));}));}catch(a50_0x4635c9){logger[a50_0x4b3707(0x114)]('[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20'+util[a50_0x4b3707(0x109)](a50_0x4635c9));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a50_0x1f507c){logger[a50_0x4b3707(0x114)](a50_0x4b3707(0x107)+util['format'](a50_0x1f507c));}logger[a50_0x4b3707(0x114)](a50_0x4b3707(0x10b));
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a51_0x318921=a51_0x31df;(function(_0x3d6441,_0x1f78aa){const _0x1db694=a51_0x31df,_0x5d31f0=_0x3d6441();while(!![]){try{const _0x36ed87=-parseInt(_0x1db694(0x1cb))/0x1+parseInt(_0x1db694(0x1f8))/0x2*(parseInt(_0x1db694(0x18d))/0x3)+-parseInt(_0x1db694(0x1d3))/0x4+parseInt(_0x1db694(0x18a))/0x5+-parseInt(_0x1db694(0x1fd))/0x6+parseInt(_0x1db694(0x192))/0x7*(-parseInt(_0x1db694(0x189))/0x8)+parseInt(_0x1db694(0x1d1))/0x9;if(_0x36ed87===_0x1f78aa)break;else _0x5d31f0['push'](_0x5d31f0['shift']());}catch(_0x2bca82){_0x5d31f0['push'](_0x5d31f0['shift']());}}}(a51_0x9c42,0x41de6));function a51_0x31df(_0x151b14,_0x1b4446){const _0x9c42f=a51_0x9c42();return a51_0x31df=function(_0x31dfe0,_0x10160c){_0x31dfe0=_0x31dfe0-0x186;let _0xbce89a=_0x9c42f[_0x31dfe0];return _0xbce89a;},a51_0x31df(_0x151b14,_0x1b4446);}const fs=require('fs'),path=require('path'),util=require('util'),spawn=require(a51_0x318921(0x1b7))['spawn'],{requireModule}=require(a51_0x318921(0x1f2)),PerformanceTester=require(a51_0x318921(0x1c4)),PerformanceEvents=require(a51_0x318921(0x1a6))[a51_0x318921(0x197)],helper=require(a51_0x318921(0x1f2)),utilities=require(a51_0x318921(0x196)),{default:BrowserStackSetup}=require(a51_0x318921(0x1ab)),{FRAMEWORKS}=require(a51_0x318921(0x204)),runIntegrations=require(a51_0x318921(0x187)),yargs=require('yargs'),Constants=require(a51_0x318921(0x20c)),BrowserstackCLI=require('./v2/browserstackCLI'),logger=require(a51_0x318921(0x1b3))[a51_0x318921(0x1a5)],origArgs=Object[a51_0x318921(0x1bf)]([],process['argv']),captureError=async(_0xdf381c,_0x3337b6,_0x34a9d3,_0x42c972=null,_0x2ccc5b=![])=>{const _0x597c74=a51_0x318921,_0x1acb7c={'QWpIn':function(_0x2b8947,_0x1ac82a,_0x58bc6b,_0x9f6c92){return _0x2b8947(_0x1ac82a,_0x58bc6b,_0x9f6c92);},'gDcwq':_0x597c74(0x19d)};try{logger[_0x597c74(0x1fc)](_0x597c74(0x1c7)+origArgs[_0x597c74(0x1c8)]('\x20')),await _0x1acb7c[_0x597c74(0x1c3)](_0xdf381c,_0x3337b6,_0x42c972,_0x34a9d3);}catch(_0x518020){process[_0x597c74(0x19a)]=0x1,logger[_0x597c74(0x190)](util[_0x597c74(0x1e1)](_0x518020));const _0x20b31c={'globalException':util[_0x597c74(0x1e1)]('%j',_0x518020)};PerformanceTester[_0x597c74(0x1be)](PerformanceEvents[_0x597c74(0x1e5)],![],util[_0x597c74(0x1e1)](_0x518020));if(helper['isUndefined'](global[_0x597c74(0x1c9)])&&helper[_0x597c74(0x200)](global[_0x597c74(0x1ca)]))return;try{utilities['fireFunnelTestEvent'](_0x1acb7c['gDcwq'],_0x20b31c,global[_0x597c74(0x1c9)],global[_0x597c74(0x1ca)]);}catch(_0x28ebc8){logger[_0x597c74(0x1fe)](_0x597c74(0x1ad)+_0x28ebc8[_0x597c74(0x1b6)]);}try{await helper[_0x597c74(0x1e9)](global[_0x597c74(0x1c9)]);}catch(_0x3dc3c5){logger[_0x597c74(0x1fe)](_0x597c74(0x1c5)+_0x3dc3c5[_0x597c74(0x1b6)]);}PerformanceTester[_0x597c74(0x1be)](PerformanceEvents['SDK_SETUP'],![],util[_0x597c74(0x1e1)](_0x518020));}finally{!_0x2ccc5b&&await BrowserstackCLI['getInstance']()[_0x597c74(0x206)](),PerformanceTester[_0x597c74(0x1bd)](PerformanceEvents[_0x597c74(0x20f)]);}};try{const browserstackFolderPath=path['join'](helper['homedir'](),'.browserstack');if(fs['existsSync'](browserstackFolderPath)){const filePath=path[a51_0x318921(0x1c8)](browserstackFolderPath,'.local-not-set.json');fs[a51_0x318921(0x1c2)](filePath)&&fs[a51_0x318921(0x1b5)](filePath);}}catch(a51_0x183d1d){logger['debug'](a51_0x318921(0x19b)+a51_0x183d1d[a51_0x318921(0x1e8)]);}process[a51_0x318921(0x1de)][a51_0x318921(0x1cc)](a51_0x318921(0x1a0))&&(!process[a51_0x318921(0x1de)][a51_0x318921(0x1cc)](a51_0x318921(0x1a8))&&process['argv'][a51_0x318921(0x1d8)](a51_0x318921(0x203)),!process[a51_0x318921(0x1de)][a51_0x318921(0x1ff)](_0x1c2433=>_0x1c2433[a51_0x318921(0x1cc)](a51_0x318921(0x202)))&&process[a51_0x318921(0x1de)][a51_0x318921(0x1d8)](a51_0x318921(0x1aa)),!process[a51_0x318921(0x1de)][a51_0x318921(0x1cc)](a51_0x318921(0x1c0))&&process[a51_0x318921(0x1de)][a51_0x318921(0x1d8)](a51_0x318921(0x210)),helper[a51_0x318921(0x20d)](process[a51_0x318921(0x1de)],a51_0x318921(0x207),a51_0x318921(0x18c)));PerformanceTester['start'](PerformanceEvents[a51_0x318921(0x1e5)]);const a51_0x45fe81={};function a51_0x9c42(){const _0x46d978=['integrations','./utils/constants','findAndReplace','mocha/lib/cli/cli.js','SDK_CLEANUP','--no-package','jVQaw','version','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','mocha/lib/cli/commands.js','./integrations/command','dot-notation','8JWvgWx','2045315lBbpjs','LeQaM','--mochaRequire','786fLyYkt','./mocha/command','HMRaW','error','./jest/command','2541833BDmQOw','PLAYWRIGHT','QhlcU','lptbS','../helpers/utilities','EVENTS','nightwatch','cucumber-js','exitCode','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','HltXe','SDKTestSuccessful','eLBtV','soMWR','mocha','slice','./load/index','load\x20[subcommand]','HST','winstonLogger','../helpers/performance/constants','setTestObservabilityDisable','--opts','rcuCq','--no-config','../helpers/BrowserStackSetup','xUcfq','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','describe','command','LiQQJ','env','pMvaL','../helpers/logger','help','unlinkSync','stack','child_process','./codeceptjs/command','gmyWI','mocha/lib/cli/run.js','alias','KKGiY','start','end','assign','--package','KFajd','existsSync','QWpIn','../helpers/performance/performance-tester','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','IMqUG','Running\x20SDK\x20with\x20args\x20','join','config','framework','523167TDjojl','includes','vanilla','tanTG','INFO','NmqUm','7642449moDFul','parserConfiguration','1740620ffXktB','handler','setBrowserStackAutomationDisable','codeceptjs','AgSRu','push','node','VANILLA','playwright','Show\x20help','CUCUMBER','argv','wboHj','MOCHA','format','HELP','ats','jest','SDK_SETUP','UjBNB','CdSyY','message','sendLogs','gUPrF','WcKrH','mrxdS','BROWSERSTACK_CONFIG_FILE_PATH','dikLe','getConfigPath','xvlou','NTJKx','../helpers/helper','Veylp','INTEGRATIONS','./cucumber-js/command','CODECEPTJS','run','2830RiFlzP','usage:\x20$0\x20<command>\x20[args]','VERSION','YqliQ','info','226290lUROAe','debug','find','isUndefined','strict','--config','--no-opts','../helpers/test-observability/constants','RNYXc','stop','--require','JEST','option','cKnNX'];a51_0x9c42=function(){return _0x46d978;};return a51_0x9c42();}a51_0x45fe81[a51_0x318921(0x188)]=![];const argv=yargs[a51_0x318921(0x1d2)](a51_0x45fe81)['usage'](a51_0x318921(0x1f9))['alias']('v',a51_0x318921(0x212))[a51_0x318921(0x1ae)]('v')[a51_0x318921(0x1bb)]('h','help')[a51_0x318921(0x1b4)](a51_0x318921(0x1b4))['showHelpOnFail'](!![],Constants[a51_0x318921(0x1fa)][a51_0x318921(0x1e2)])[a51_0x318921(0x1af)]('jest',Constants[a51_0x318921(0x208)][a51_0x318921(0x1cf)],function(_0x271474){const _0x48bea2=a51_0x318921,_0x29ce85={'pMvaL':_0x48bea2(0x1e4),'RNYXc':function(_0x2925d3,_0x15a2fa,_0x388f25,_0x5056f8,_0x18ce8e,_0x502a9d){return _0x2925d3(_0x15a2fa,_0x388f25,_0x5056f8,_0x18ce8e,_0x502a9d);},'qIKni':function(_0x4c1072,_0x2c2642){return _0x4c1072(_0x2c2642);},'rcuCq':_0x48bea2(0x191)},_0x3d398b=process[_0x48bea2(0x1de)][_0x48bea2(0x1a1)](0x2);helper['setTestObservabilityDisable'](),helper[_0x48bea2(0x1d5)](),_0x271474[_0x48bea2(0x201)](![]);const _0x2074a7=new BrowserStackSetup(_0x271474[_0x48bea2(0x1de)],_0x29ce85[_0x48bea2(0x1b2)]);return _0x29ce85[_0x48bea2(0x205)](captureError,_0x29ce85['qIKni'](require,_0x29ce85[_0x48bea2(0x1a9)]),_0x271474[_0x48bea2(0x1de)],_0x2074a7,_0x3d398b,!![]);})['command']('mocha',Constants[a51_0x318921(0x1e0)]['INFO'],_0x4f2fa5=>{const _0x3777c0=a51_0x318921,_0x4fd852={'HltXe':function(_0x2e68bf,_0x43654a,_0x210879,_0x27b58a){return _0x2e68bf(_0x43654a,_0x210879,_0x27b58a);},'UjBNB':function(_0xae697e,_0xe9cf5e){return _0xae697e(_0xe9cf5e);},'zgDCp':_0x3777c0(0x18e),'KKGiY':_0x3777c0(0x1a0),'gUPrF':'Parsing\x20command\x20line\x20arguments','hHVAz':function(_0x23d2bb,_0x4b98a6,_0x19ed13){return _0x23d2bb(_0x4b98a6,_0x19ed13);},'QNHeT':_0x3777c0(0x1ba),'jVQaw':_0x3777c0(0x186),'gQJWm':function(_0x524700,_0x4baf4c,_0x761bcb){return _0x524700(_0x4baf4c,_0x761bcb);},'LeQaM':_0x3777c0(0x20e),'dikLe':function(_0x16397a){return _0x16397a();}};process[_0x3777c0(0x1de)]=process[_0x3777c0(0x1de)][_0x3777c0(0x1a1)](0x1),helper['setTestObservabilityDisable'](),helper[_0x3777c0(0x1d5)]();const _0x4ee6ab=new BrowserStackSetup(_0x4f2fa5['argv'],_0x4fd852['KKGiY']);logger[_0x3777c0(0x1fe)](_0x4fd852[_0x3777c0(0x1ea)]);const _0x2afabe=_0x4fd852['hHVAz'](requireModule,_0x4fd852['QNHeT'],_0x4fd852[_0x3777c0(0x1bc)]),_0x29dccc=_0x4fd852['hHVAz'](requireModule,_0x4fd852[_0x3777c0(0x211)],_0x4fd852[_0x3777c0(0x1bc)]);delete _0x2afabe[_0x3777c0(0x1d4)],_0x2afabe['handler']=function(_0x1d6028){const _0x38f499=_0x3777c0;return _0x4fd852[_0x38f499(0x19c)](captureError,_0x4fd852[_0x38f499(0x1e6)](require,_0x4fd852['zgDCp']),_0x1d6028,_0x4ee6ab);},_0x29dccc[_0x3777c0(0x1f7)]=_0x2afabe;const {main:_0x4dc665}=_0x4fd852['gQJWm'](requireModule,_0x4fd852[_0x3777c0(0x18b)],_0x4fd852[_0x3777c0(0x1bc)]);_0x4fd852[_0x3777c0(0x1ee)](_0x4dc665);})[a51_0x318921(0x1af)](a51_0x318921(0x199),Constants[a51_0x318921(0x1dd)][a51_0x318921(0x1cf)],function(_0x880030){const _0x204017=a51_0x318921,_0x2f1899={'XQIPl':_0x204017(0x199),'NTJKx':function(_0x46ea05,_0x4e10eb,_0x3d610b,_0x3ad333,_0x5c8fb6,_0x176414){return _0x46ea05(_0x4e10eb,_0x3d610b,_0x3ad333,_0x5c8fb6,_0x176414);},'WkBXE':function(_0x49b220,_0x4470b6){return _0x49b220(_0x4470b6);},'Veylp':_0x204017(0x1f5)},_0x4b72e5=process[_0x204017(0x1de)][_0x204017(0x1a1)](0x2),_0x359cfc=new BrowserStackSetup(_0x880030[_0x204017(0x1de)],_0x2f1899['XQIPl']);return _0x2f1899[_0x204017(0x1f1)](captureError,_0x2f1899['WkBXE'](require,_0x2f1899[_0x204017(0x1f3)]),_0x880030[_0x204017(0x1de)],_0x359cfc,_0x4b72e5,!![]);})[a51_0x318921(0x1af)](a51_0x318921(0x1d9),Constants[a51_0x318921(0x1da)][a51_0x318921(0x1cf)],function(_0x27aca4){const _0x577d86=a51_0x318921,_0x3b1c7a={'tanTG':_0x577d86(0x1cd),'soMWR':function(_0x304589,_0x4350df,_0x118776,_0x179310,_0x2f93be){return _0x304589(_0x4350df,_0x118776,_0x179310,_0x2f93be);},'kDSpT':function(_0x4842e6,_0x42e2b8){return _0x4842e6(_0x42e2b8);},'mrxdS':'./vanilla-js/command'},_0x1a28c5=process[_0x577d86(0x1de)][_0x577d86(0x1a1)](0x2),_0x20032c=new BrowserStackSetup(_0x27aca4[_0x577d86(0x1de)],_0x3b1c7a[_0x577d86(0x1ce)]);return _0x3b1c7a[_0x577d86(0x19f)](captureError,_0x3b1c7a['kDSpT'](require,_0x3b1c7a[_0x577d86(0x1ec)]),_0x27aca4[_0x577d86(0x1de)],_0x20032c,_0x1a28c5);})['command'](a51_0x318921(0x198),Constants['NIGHTWATCH']['INFO'],function(_0x52f7a2){const _0x394dc1=a51_0x318921,_0x1a2b92={'gmyWI':function(_0x3c20ac,_0x285479,_0x67dbd5,_0x35b2ad,_0x1e5a3e){return _0x3c20ac(_0x285479,_0x67dbd5,_0x35b2ad,_0x1e5a3e);},'AgSRu':function(_0x46627b,_0xcf4926){return _0x46627b(_0xcf4926);},'YqliQ':'./nightwatch/command'},_0x2c9b52=process[_0x394dc1(0x1de)][_0x394dc1(0x1a1)](0x2),_0xb42c9d=new BrowserStackSetup(_0x52f7a2[_0x394dc1(0x1de)]);return _0x1a2b92[_0x394dc1(0x1b9)](captureError,_0x1a2b92[_0x394dc1(0x1d7)](require,_0x1a2b92[_0x394dc1(0x1fb)]),_0x52f7a2['argv'],_0xb42c9d,_0x2c9b52);})[a51_0x318921(0x1af)](a51_0x318921(0x1d6),Constants[a51_0x318921(0x1f6)][a51_0x318921(0x1cf)],function(_0x20fa22){const _0x5525db=a51_0x318921,_0x1c2db3={'lptbS':_0x5525db(0x1d6),'KFajd':function(_0x1422d3,_0x41e477,_0x304f2b,_0x4d968d,_0x1e63b7){return _0x1422d3(_0x41e477,_0x304f2b,_0x4d968d,_0x1e63b7);},'HMRaW':function(_0x55b6f2,_0x1f4baf){return _0x55b6f2(_0x1f4baf);},'LiQQJ':_0x5525db(0x1b8)},_0xa53d84=process['argv'][_0x5525db(0x1a1)](0x2),_0x2a1e8e=new BrowserStackSetup(_0x20fa22[_0x5525db(0x1de)],_0x1c2db3[_0x5525db(0x195)]);return _0x1c2db3[_0x5525db(0x1c1)](captureError,_0x1c2db3[_0x5525db(0x18f)](require,_0x1c2db3[_0x5525db(0x1b0)]),_0x20fa22[_0x5525db(0x1de)],_0x2a1e8e,_0xa53d84);})[a51_0x318921(0x1af)](a51_0x318921(0x1e3),Constants[a51_0x318921(0x1a4)]['INFO'],function(_0x533f2c){const _0x3d46e5=a51_0x318921,_0x1e0720={'YLTzS':function(_0x2821b0,_0x378bad,_0x41629c){return _0x2821b0(_0x378bad,_0x41629c);},'xUcfq':function(_0xdd02d0,_0x4408d2){return _0xdd02d0(_0x4408d2);},'QhlcU':'../../ats/src/index'},_0x32c822=process['argv'][_0x3d46e5(0x1a1)](0x2);return _0x1e0720['YLTzS'](captureError,_0x1e0720[_0x3d46e5(0x1ac)](require,_0x1e0720[_0x3d46e5(0x194)]),_0x533f2c);})[a51_0x318921(0x1af)](a51_0x318921(0x20b),Constants[a51_0x318921(0x1f4)]['INFO'],function(_0x475bab){const _0x10c19d=a51_0x318921,_0x17559f={'IMqUG':function(_0x41f739,_0x55474e){return _0x41f739(_0x55474e);}};return _0x17559f[_0x10c19d(0x1c6)](runIntegrations,_0x475bab);})['command'](a51_0x318921(0x1db),Constants[a51_0x318921(0x193)][a51_0x318921(0x1cf)],function(_0xbc44c0){const _0x1b0a70=a51_0x318921,_0x21f4a1={'wboHj':function(_0x30f8a3,_0x35aac9,_0x5de1e8,_0xe0459d,_0x23ba67,_0x444964){return _0x30f8a3(_0x35aac9,_0x5de1e8,_0xe0459d,_0x23ba67,_0x444964);},'cKnNX':function(_0x22c2b6,_0x2758ca){return _0x22c2b6(_0x2758ca);},'WcKrH':'./playwright/command'},_0x8c06cd=process[_0x1b0a70(0x1de)][_0x1b0a70(0x1a1)](0x2);helper[_0x1b0a70(0x1ef)](process['argv'])&&(process[_0x1b0a70(0x1b1)][_0x1b0a70(0x1ed)]=helper[_0x1b0a70(0x1ef)](process['argv']));helper[_0x1b0a70(0x1a7)](),helper['setBrowserStackAutomationDisable']();const _0x24309d=new BrowserStackSetup(_0xbc44c0[_0x1b0a70(0x1de)],FRAMEWORKS[_0x1b0a70(0x193)]);return _0x21f4a1[_0x1b0a70(0x1df)](captureError,_0x21f4a1[_0x1b0a70(0x20a)](require,_0x21f4a1[_0x1b0a70(0x1eb)]),_0xbc44c0[_0x1b0a70(0x1de)],_0x24309d,_0x8c06cd,!![]);})[a51_0x318921(0x1af)](a51_0x318921(0x1a3),'Runs\x20the\x20binary\x20with\x20load\x20command',function(_0x2f9f28){const _0x565eb3=a51_0x318921,_0xa0950c={};_0xa0950c[_0x565eb3(0x1f0)]='help',_0xa0950c['NmqUm']='boolean',_0xa0950c['Sphdl']=_0x565eb3(0x1dc);const _0x348438=_0xa0950c;return _0x2f9f28[_0x565eb3(0x1b4)](![])[_0x565eb3(0x209)](_0x348438[_0x565eb3(0x1f0)],{'alias':'h','type':_0x348438[_0x565eb3(0x1d0)],'describe':_0x348438['Sphdl']})['strict'](![])['exitProcess'](![]);},function(_0x4fb352){const _0x26d026=a51_0x318921,_0x4757e8={'eLBtV':function(_0x97960a,_0x259f3a,_0x1ef5b8){return _0x97960a(_0x259f3a,_0x1ef5b8);},'CdSyY':function(_0x407435,_0x292600){return _0x407435(_0x292600);},'ggafX':_0x26d026(0x1a2)},_0x33ae99={};return _0x33ae99[_0x26d026(0x1de)]=_0x4fb352,_0x4757e8[_0x26d026(0x19e)](captureError,_0x4757e8[_0x26d026(0x1e7)](require,_0x4757e8['ggafX']),_0x33ae99);})['demandCommand'](0x1,a51_0x318921(0x213))['wrap'](null)[a51_0x318921(0x1de)];!helper[a51_0x318921(0x200)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a51_0x318921(0x1e3)&&console[a51_0x318921(0x190)]('Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.');
|
|
2
|
+
'use strict';const a51_0x25e60e=a51_0x317c;(function(_0x1cf8c0,_0x2f5834){const _0xb9576b=a51_0x317c,_0x32f9ce=_0x1cf8c0();while(!![]){try{const _0x35adb7=parseInt(_0xb9576b(0xbb))/0x1+-parseInt(_0xb9576b(0xc5))/0x2*(-parseInt(_0xb9576b(0xb3))/0x3)+parseInt(_0xb9576b(0x117))/0x4*(parseInt(_0xb9576b(0xb4))/0x5)+parseInt(_0xb9576b(0xc7))/0x6+parseInt(_0xb9576b(0x102))/0x7*(-parseInt(_0xb9576b(0xc0))/0x8)+-parseInt(_0xb9576b(0x13a))/0x9*(parseInt(_0xb9576b(0x11d))/0xa)+-parseInt(_0xb9576b(0x14c))/0xb*(parseInt(_0xb9576b(0xcb))/0xc);if(_0x35adb7===_0x2f5834)break;else _0x32f9ce['push'](_0x32f9ce['shift']());}catch(_0x5bb1a2){_0x32f9ce['push'](_0x32f9ce['shift']());}}}(a51_0x2e7b,0x41d3b));function a51_0x317c(_0x38319c,_0x5c9cb2){const _0x2e7bba=a51_0x2e7b();return a51_0x317c=function(_0x317cd3,_0x793f49){_0x317cd3=_0x317cd3-0xb1;let _0x1db01c=_0x2e7bba[_0x317cd3];return _0x1db01c;},a51_0x317c(_0x38319c,_0x5c9cb2);}const fs=require('fs'),path=require(a51_0x25e60e(0x10a)),util=require('util'),spawn=require(a51_0x25e60e(0xdf))[a51_0x25e60e(0xe4)],{requireModule}=require(a51_0x25e60e(0xf3)),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require('../helpers/performance/constants')[a51_0x25e60e(0x12e)],helper=require(a51_0x25e60e(0xf3)),utilities=require(a51_0x25e60e(0x116)),{default:BrowserStackSetup}=require('../helpers/BrowserStackSetup'),{FRAMEWORKS}=require('../helpers/test-observability/constants'),runIntegrations=require(a51_0x25e60e(0x130)),yargs=require(a51_0x25e60e(0xd1)),Constants=require(a51_0x25e60e(0x13c)),BrowserstackCLI=require(a51_0x25e60e(0x11c)),logger=require(a51_0x25e60e(0xb7))['winstonLogger'],origArgs=Object[a51_0x25e60e(0x104)]([],process['argv']),captureError=async(_0x220eb7,_0x2642d6,_0x3840ca,_0x30971b=null,_0x49d539=![])=>{const _0xf05354=a51_0x25e60e,_0x48b630={'cHrFI':function(_0x54c3de,_0x4640dc,_0x23cb50,_0x384469){return _0x54c3de(_0x4640dc,_0x23cb50,_0x384469);},'VudaL':'SDKTestSuccessful'};try{logger[_0xf05354(0xf2)]('Running\x20SDK\x20with\x20args\x20'+origArgs[_0xf05354(0x106)]('\x20')),await _0x48b630[_0xf05354(0x110)](_0x220eb7,_0x2642d6,_0x30971b,_0x3840ca);}catch(_0x55909d){process[_0xf05354(0x132)]=0x1,logger[_0xf05354(0xd5)](util[_0xf05354(0xb5)](_0x55909d));const _0x4d76f3={'globalException':util['format']('%j',_0x55909d)};PerformanceTester[_0xf05354(0x11a)](PerformanceEvents[_0xf05354(0x128)],![],util[_0xf05354(0xb5)](_0x55909d));if(helper[_0xf05354(0xeb)](global['config'])&&helper[_0xf05354(0xeb)](global[_0xf05354(0xd7)]))return;try{utilities['fireFunnelTestEvent'](_0x48b630['VudaL'],_0x4d76f3,global[_0xf05354(0x133)],global['framework']);}catch(_0x182e00){logger['debug'](_0xf05354(0xcd)+_0x182e00[_0xf05354(0xd8)]);}try{await helper[_0xf05354(0x100)](global[_0xf05354(0x133)]);}catch(_0x2327b1){logger[_0xf05354(0x145)](_0xf05354(0x13b)+_0x2327b1[_0xf05354(0xd8)]);}PerformanceTester[_0xf05354(0x11a)](PerformanceEvents['SDK_SETUP'],![],util[_0xf05354(0xb5)](_0x55909d));}finally{!_0x49d539&&await BrowserstackCLI[_0xf05354(0x138)]()[_0xf05354(0xf7)](),PerformanceTester[_0xf05354(0x10f)](PerformanceEvents[_0xf05354(0xec)]);}};function a51_0x2e7b(){const _0x2c8ca1=['IQxff','NIGHTWATCH','6585TYQqIF','1033435jOpdNb','format','--mochaRequire','../helpers/logger','-pw:*','PgWfv','jest','476489jxmzXM','load\x20[subcommand]','wrap','wViFM','JlUFi','64mzaNph','qrLRU','PLAYWRIGHT','--package','tNmgI','166jjZugI','INFO','1739772sYjqyR','setTestObservabilityDisable','disableAutoCaptureLogs','mocha/lib/cli/cli.js','24nHbkOw','setBrowserStackAutomationDisable','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','slice','KLDJt','describe','yargs','poVeD','oZHiZ','uKxkZ','error','-pw:channel','framework','stack','alias','pw:channel\x20auto-capture\x20seed\x20failed:\x20','INTEGRATIONS','DEBUG','LUdgE','Parsing\x20command\x20line\x20arguments','child_process','usage:\x20$0\x20<command>\x20[args]','unlinkSync','JSSCI','some','spawn','push','TVpjI','homedir','avmwR','SlCNQ','dot-notation','isUndefined','SDK_CLEANUP','argv','handler','MOCHA','NPErn','playwright','info','../helpers/helper','RMzyE','YOCWl','./mocha/command','stop','--no-package','--config','help','.local-not-set.json','uwfDL','JcLRl','nwBWA','message','sendLogs','GdOns','109697QCPGgQ','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','assign','jCFeC','join','Runs\x20the\x20binary\x20with\x20load\x20command','cDBEY','--require','path','mocha/lib/cli/run.js','zYlzo','boolean','IEFXI','start','cHrFI','run','uCgUA','mocha','vanilla','cucumber-js','../helpers/utilities','4mTiett','strict','./playwright/command','end','getConfigPath','./v2/browserstackCLI','11340MiaVtS','.browserstack','includes','usage','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','YITNk','getPwChannelLogPath','demandCommand','CUCUMBER','DEBUG_FILE','node','SDK_SETUP','exitProcess','fSbmM','mocha/lib/cli/commands.js','./cucumber-js/command','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','EVENTS','ZrUwr','./integrations/command','--no-opts','exitCode','config','codeceptjs','pw:channel','SqDcE','pw:*','getInstance','LgAei','4122vKzmAW','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','./utils/constants','option','CODECEPTJS','JEST','Jbobo','existsSync','showHelpOnFail','map','./vanilla-js/command','debug','env','nightwatch','version','BROWSERSTACK_CONFIG_FILE_PATH','knymW','HQatF','1325258GRkrSB','findAndReplace','command','ohjoz'];a51_0x2e7b=function(){return _0x2c8ca1;};return a51_0x2e7b();}try{const browserstackFolderPath=path[a51_0x25e60e(0x106)](helper[a51_0x25e60e(0xe7)](),a51_0x25e60e(0x11e));if(fs[a51_0x25e60e(0x141)](browserstackFolderPath)){const filePath=path[a51_0x25e60e(0x106)](browserstackFolderPath,a51_0x25e60e(0xfb));fs[a51_0x25e60e(0x141)](filePath)&&fs[a51_0x25e60e(0xe1)](filePath);}}catch(a51_0x34118c){logger[a51_0x25e60e(0x145)](a51_0x25e60e(0x121)+a51_0x34118c[a51_0x25e60e(0xff)]);}process[a51_0x25e60e(0xed)]['includes'](a51_0x25e60e(0x113))&&(!process[a51_0x25e60e(0xed)][a51_0x25e60e(0x11f)]('--opts')&&process[a51_0x25e60e(0xed)]['push'](a51_0x25e60e(0x131)),!process[a51_0x25e60e(0xed)]['find'](_0x18c359=>_0x18c359[a51_0x25e60e(0x11f)](a51_0x25e60e(0xf9)))&&process[a51_0x25e60e(0xed)][a51_0x25e60e(0xe5)]('--no-config'),!process[a51_0x25e60e(0xed)][a51_0x25e60e(0x11f)](a51_0x25e60e(0xc3))&&process[a51_0x25e60e(0xed)][a51_0x25e60e(0xe5)](a51_0x25e60e(0xf8)),helper[a51_0x25e60e(0x14d)](process['argv'],a51_0x25e60e(0x109),a51_0x25e60e(0xb6)));PerformanceTester[a51_0x25e60e(0x10f)](PerformanceEvents[a51_0x25e60e(0x128)]);const a51_0x3cec6e={};a51_0x3cec6e[a51_0x25e60e(0xea)]=![];const argv=yargs['parserConfiguration'](a51_0x3cec6e)[a51_0x25e60e(0x120)](a51_0x25e60e(0xe0))[a51_0x25e60e(0xd9)]('v',a51_0x25e60e(0x148))[a51_0x25e60e(0xd0)]('v')['alias']('h','help')['help'](a51_0x25e60e(0xfa))[a51_0x25e60e(0x142)](!![],Constants['VERSION']['HELP'])[a51_0x25e60e(0x14e)](a51_0x25e60e(0xba),Constants[a51_0x25e60e(0x13f)][a51_0x25e60e(0xc6)],function(_0x4a0a26){const _0x1a9dcc=a51_0x25e60e,_0x44c4a3={'zYlzo':_0x1a9dcc(0xba),'ohjoz':function(_0x642ccf,_0x1d5ded,_0x451328,_0x4f28da,_0x2f1921,_0x21e04e){return _0x642ccf(_0x1d5ded,_0x451328,_0x4f28da,_0x2f1921,_0x21e04e);},'PgWfv':function(_0x59ac31,_0x2b899f){return _0x59ac31(_0x2b899f);},'nwBWA':'./jest/command'},_0x341476=process['argv'][_0x1a9dcc(0xce)](0x2);helper[_0x1a9dcc(0xc8)](),helper[_0x1a9dcc(0xcc)](),_0x4a0a26[_0x1a9dcc(0x118)](![]);const _0xa9098c=new BrowserStackSetup(_0x4a0a26[_0x1a9dcc(0xed)],_0x44c4a3[_0x1a9dcc(0x10c)]);return _0x44c4a3[_0x1a9dcc(0x14f)](captureError,_0x44c4a3[_0x1a9dcc(0xb9)](require,_0x44c4a3[_0x1a9dcc(0xfe)]),_0x4a0a26[_0x1a9dcc(0xed)],_0xa9098c,_0x341476,!![]);})[a51_0x25e60e(0x14e)](a51_0x25e60e(0x113),Constants[a51_0x25e60e(0xef)][a51_0x25e60e(0xc6)],_0x4a2081=>{const _0x346d29=a51_0x25e60e,_0x48754d={'Jbobo':function(_0x505b96,_0x2e63d3,_0x50b81f,_0x23c64b){return _0x505b96(_0x2e63d3,_0x50b81f,_0x23c64b);},'tNmgI':function(_0x4cedec,_0x1dba3b){return _0x4cedec(_0x1dba3b);},'LUdgE':_0x346d29(0xf6),'KLDJt':_0x346d29(0x113),'YOCWl':_0x346d29(0xde),'IEFXI':function(_0x5b51dc,_0x3f1e5b,_0x373729){return _0x5b51dc(_0x3f1e5b,_0x373729);},'cDBEY':_0x346d29(0x10b),'oNZFq':_0x346d29(0x12b),'YITNk':_0x346d29(0xca),'ZrUwr':function(_0x4c81a1){return _0x4c81a1();}};process['argv']=process[_0x346d29(0xed)][_0x346d29(0xce)](0x1),helper[_0x346d29(0xc8)](),helper[_0x346d29(0xcc)]();const _0x1290b6=new BrowserStackSetup(_0x4a2081[_0x346d29(0xed)],_0x48754d[_0x346d29(0xcf)]);logger[_0x346d29(0x145)](_0x48754d[_0x346d29(0xf5)]);const _0x21df0e=_0x48754d[_0x346d29(0x10e)](requireModule,_0x48754d[_0x346d29(0x108)],_0x48754d['KLDJt']),_0x532ffd=_0x48754d[_0x346d29(0x10e)](requireModule,_0x48754d['oNZFq'],_0x48754d[_0x346d29(0xcf)]);delete _0x21df0e[_0x346d29(0xee)],_0x21df0e[_0x346d29(0xee)]=function(_0x5dfc42){const _0x5346e9=_0x346d29;return _0x48754d[_0x5346e9(0x140)](captureError,_0x48754d[_0x5346e9(0xc4)](require,_0x48754d[_0x5346e9(0xdd)]),_0x5dfc42,_0x1290b6);},_0x532ffd[_0x346d29(0x111)]=_0x21df0e;const {main:_0x7398ee}=_0x48754d[_0x346d29(0x10e)](requireModule,_0x48754d[_0x346d29(0x122)],_0x48754d['KLDJt']);_0x48754d[_0x346d29(0x12f)](_0x7398ee);})[a51_0x25e60e(0x14e)]('cucumber-js',Constants[a51_0x25e60e(0x125)][a51_0x25e60e(0xc6)],function(_0x18c175){const _0x2e9432=a51_0x25e60e,_0xdd3670={'fSbmM':_0x2e9432(0x115),'uwfDL':function(_0x37f226,_0x38184a,_0x5ec8a3,_0x213e55,_0x8797c0,_0x1b26d1){return _0x37f226(_0x38184a,_0x5ec8a3,_0x213e55,_0x8797c0,_0x1b26d1);},'JcLRl':function(_0x1b1bcc,_0x454546){return _0x1b1bcc(_0x454546);},'knymW':_0x2e9432(0x12c)},_0x136cd1=process[_0x2e9432(0xed)][_0x2e9432(0xce)](0x2),_0x2e5801=new BrowserStackSetup(_0x18c175[_0x2e9432(0xed)],_0xdd3670[_0x2e9432(0x12a)]);return _0xdd3670[_0x2e9432(0xfc)](captureError,_0xdd3670[_0x2e9432(0xfd)](require,_0xdd3670[_0x2e9432(0x14a)]),_0x18c175[_0x2e9432(0xed)],_0x2e5801,_0x136cd1,!![]);})['command'](a51_0x25e60e(0x127),Constants['VANILLA'][a51_0x25e60e(0xc6)],function(_0x1f309d){const _0x344ce3=a51_0x25e60e,_0x567731={'SqDcE':_0x344ce3(0x114),'fsZli':function(_0x8b6ec3,_0x410f1c,_0x2119b0,_0x5b6636,_0x5f99bb){return _0x8b6ec3(_0x410f1c,_0x2119b0,_0x5b6636,_0x5f99bb);},'ZHQom':function(_0x251a12,_0x6ba73e){return _0x251a12(_0x6ba73e);},'wViFM':_0x344ce3(0x144)},_0x25a037=process[_0x344ce3(0xed)][_0x344ce3(0xce)](0x2),_0x40a51b=new BrowserStackSetup(_0x1f309d['argv'],_0x567731[_0x344ce3(0x136)]);return _0x567731['fsZli'](captureError,_0x567731['ZHQom'](require,_0x567731[_0x344ce3(0xbe)]),_0x1f309d[_0x344ce3(0xed)],_0x40a51b,_0x25a037);})[a51_0x25e60e(0x14e)](a51_0x25e60e(0x147),Constants[a51_0x25e60e(0xb2)]['INFO'],function(_0x282e45){const _0x193515=a51_0x25e60e,_0x10cade={'TVpjI':function(_0x509b78,_0x1357e9,_0x2f6d50,_0x34b387,_0x3bd980){return _0x509b78(_0x1357e9,_0x2f6d50,_0x34b387,_0x3bd980);},'LgAei':function(_0x42bb8b,_0x198b83){return _0x42bb8b(_0x198b83);},'GdOns':'./nightwatch/command'},_0x5725dc=process[_0x193515(0xed)][_0x193515(0xce)](0x2),_0x4187bb=new BrowserStackSetup(_0x282e45[_0x193515(0xed)]);return _0x10cade[_0x193515(0xe6)](captureError,_0x10cade[_0x193515(0x139)](require,_0x10cade[_0x193515(0x101)]),_0x282e45[_0x193515(0xed)],_0x4187bb,_0x5725dc);})[a51_0x25e60e(0x14e)](a51_0x25e60e(0x134),Constants[a51_0x25e60e(0x13e)][a51_0x25e60e(0xc6)],function(_0x4bf82f){const _0x3ab9fc=a51_0x25e60e,_0x2c2559={'uCgUA':_0x3ab9fc(0x134),'oZHiZ':function(_0x537727,_0x410369,_0x408aa8,_0x52fc7f,_0x3b7ad7){return _0x537727(_0x410369,_0x408aa8,_0x52fc7f,_0x3b7ad7);},'JSSCI':function(_0x434dc3,_0x21751b){return _0x434dc3(_0x21751b);},'IQxff':'./codeceptjs/command'},_0x501775=process['argv']['slice'](0x2),_0x4f6981=new BrowserStackSetup(_0x4bf82f['argv'],_0x2c2559[_0x3ab9fc(0x112)]);return _0x2c2559[_0x3ab9fc(0xd3)](captureError,_0x2c2559[_0x3ab9fc(0xe2)](require,_0x2c2559[_0x3ab9fc(0xb1)]),_0x4bf82f[_0x3ab9fc(0xed)],_0x4f6981,_0x501775);})[a51_0x25e60e(0x14e)]('ats',Constants['HST'][a51_0x25e60e(0xc6)],function(_0x539de1){const _0x9e8851=a51_0x25e60e,_0x351971={'osOnk':function(_0x40bc76,_0x2d960e,_0x2ed162){return _0x40bc76(_0x2d960e,_0x2ed162);},'nCTIa':function(_0x8ba88,_0x5a6b37){return _0x8ba88(_0x5a6b37);},'SlCNQ':'../../ats/src/index'},_0x456108=process['argv'][_0x9e8851(0xce)](0x2);return _0x351971['osOnk'](captureError,_0x351971['nCTIa'](require,_0x351971[_0x9e8851(0xe9)]),_0x539de1);})[a51_0x25e60e(0x14e)]('integrations',Constants[a51_0x25e60e(0xdb)][a51_0x25e60e(0xc6)],function(_0x1099f5){const _0x598662=a51_0x25e60e,_0x18bc86={'JlUFi':function(_0x724946,_0xc6ca55){return _0x724946(_0xc6ca55);}};return _0x18bc86[_0x598662(0xbf)](runIntegrations,_0x1099f5);})[a51_0x25e60e(0x14e)](a51_0x25e60e(0xf1),Constants[a51_0x25e60e(0xc2)][a51_0x25e60e(0xc6)],function(_0x2518c4){const _0x2ba943=a51_0x25e60e,_0x1a71ec={'uKxkZ':_0x2ba943(0x135),'NPErn':function(_0x6601a0,_0x450801){return _0x6601a0&&_0x450801;},'HQatF':function(_0x7d3d0,_0x5e28df,_0xe0936b,_0x24eb2b,_0x33c1d8,_0x54296d){return _0x7d3d0(_0x5e28df,_0xe0936b,_0x24eb2b,_0x33c1d8,_0x54296d);},'iAvKI':function(_0x5073d8,_0x3ba76c){return _0x5073d8(_0x3ba76c);},'CZNnC':_0x2ba943(0x119)},_0x445367=process['argv'][_0x2ba943(0xce)](0x2);helper[_0x2ba943(0x11b)](process['argv'])&&(process['env'][_0x2ba943(0x149)]=helper['getConfigPath'](process[_0x2ba943(0xed)]));helper[_0x2ba943(0xc8)](),helper[_0x2ba943(0xcc)]();const _0x53d6ab=new BrowserStackSetup(_0x2518c4[_0x2ba943(0xed)],FRAMEWORKS[_0x2ba943(0xc2)]);try{if(!_0x53d6ab[_0x2ba943(0x133)]||!_0x53d6ab[_0x2ba943(0x133)][_0x2ba943(0xc9)]){const _0x42f70b=_0x1a71ec[_0x2ba943(0xd4)],_0x58ca5a=process[_0x2ba943(0x146)][_0x2ba943(0xdc)]||'',_0x1c0570=_0x58ca5a['split'](',')[_0x2ba943(0x143)](_0x139d87=>_0x139d87['trim']())['filter'](Boolean),_0x1ddf3e=_0x1c0570['some'](_0x837655=>_0x837655===_0x2ba943(0xd6)||_0x837655===_0x2ba943(0xb8)||_0x837655==='-*'),_0x39a834=_0x1c0570[_0x2ba943(0xe3)](_0x188beb=>_0x188beb===_0x42f70b||_0x188beb===_0x2ba943(0x137)||_0x188beb==='*');if(_0x1a71ec[_0x2ba943(0xf0)](!_0x1ddf3e,!_0x39a834)){const _0xe275f4=helper[_0x2ba943(0x123)]();_0xe275f4&&(process[_0x2ba943(0x146)][_0x2ba943(0xdc)]=_0x58ca5a?_0x58ca5a+','+_0x42f70b:_0x42f70b,!process['env'][_0x2ba943(0x126)]&&(process[_0x2ba943(0x146)]['DEBUG_FILE']=_0xe275f4));}}}catch(_0x5b96aa){logger[_0x2ba943(0x145)](_0x2ba943(0xda)+util[_0x2ba943(0xb5)](_0x5b96aa));}return _0x1a71ec[_0x2ba943(0x14b)](captureError,_0x1a71ec['iAvKI'](require,_0x1a71ec['CZNnC']),_0x2518c4[_0x2ba943(0xed)],_0x53d6ab,_0x445367,!![]);})[a51_0x25e60e(0x14e)](a51_0x25e60e(0xbc),a51_0x25e60e(0x107),function(_0x3a2513){const _0x2049d3=a51_0x25e60e,_0xd95e6b={};_0xd95e6b['wXnTi']=_0x2049d3(0xfa),_0xd95e6b['avmwR']=_0x2049d3(0x10d),_0xd95e6b[_0x2049d3(0xc1)]='Show\x20help';const _0x1339d2=_0xd95e6b;return _0x3a2513['help'](![])[_0x2049d3(0x13d)](_0x1339d2['wXnTi'],{'alias':'h','type':_0x1339d2[_0x2049d3(0xe8)],'describe':_0x1339d2[_0x2049d3(0xc1)]})[_0x2049d3(0x118)](![])[_0x2049d3(0x129)](![]);},function(_0x299d86){const _0x12118b=a51_0x25e60e,_0x14cb8d={'jCFeC':function(_0x53a7e7,_0x58fd40,_0x2c457f){return _0x53a7e7(_0x58fd40,_0x2c457f);},'RMzyE':function(_0x31e331,_0x4b6778){return _0x31e331(_0x4b6778);},'poVeD':'./load/index'},_0x82c57d={};return _0x82c57d[_0x12118b(0xed)]=_0x299d86,_0x14cb8d[_0x12118b(0x105)](captureError,_0x14cb8d[_0x12118b(0xf4)](require,_0x14cb8d[_0x12118b(0xd2)]),_0x82c57d);})[a51_0x25e60e(0x124)](0x1,a51_0x25e60e(0x103))[a51_0x25e60e(0xbd)](null)[a51_0x25e60e(0xed)];!helper[a51_0x25e60e(0xeb)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!=='ats'&&console['error'](a51_0x25e60e(0x12d));
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const a52_0x2cddea=a52_0x22ba;(function(_0x3817f6,_0x55125b){const _0x3b4c57=a52_0x22ba,_0x14ab57=_0x3817f6();while(!![]){try{const _0x440720=parseInt(_0x3b4c57(0xaa))/0x1*(-parseInt(_0x3b4c57(0xd6))/0x2)+-parseInt(_0x3b4c57(0xb3))/0x3*(parseInt(_0x3b4c57(0xb7))/0x4)+parseInt(_0x3b4c57(0xba))/0x5+parseInt(_0x3b4c57(0xb1))/0x6+-parseInt(_0x3b4c57(0xce))/0x7+parseInt(_0x3b4c57(0xbd))/0x8+parseInt(_0x3b4c57(0xb2))/0x9;if(_0x440720===_0x55125b)break;else _0x14ab57['push'](_0x14ab57['shift']());}catch(_0x371796){_0x14ab57['push'](_0x14ab57['shift']());}}}(a52_0x468c,0xb0af4));const fs=require('fs'),helper=require(a52_0x2cddea(0xd9)),utilities=require(a52_0x2cddea(0xae)),yaml=require(a52_0x2cddea(0xab)),yargs=require(a52_0x2cddea(0xc3)),logger=require('../helpers/logger')[a52_0x2cddea(0xbe)],configFileTemplate=__dirname+'/../../browserstack.yml.sample',configFileTemplatePW=__dirname+a52_0x2cddea(0xa4),configFile=process['cwd']()+a52_0x2cddea(0xc7),packageFile=process[a52_0x2cddea(0xb6)]()+a52_0x2cddea(0xd7),frameworks=[a52_0x2cddea(0x9d),a52_0x2cddea(0xcd),a52_0x2cddea(0x9b),a52_0x2cddea(0xa8),'nightwatch',a52_0x2cddea(0xbf),a52_0x2cddea(0xa1)];let config;logger[a52_0x2cddea(0x9a)](a52_0x2cddea(0xb5)),createConfigurationFile(yargs[a52_0x2cddea(0x97)][a52_0x2cddea(0x93)],yargs['argv'][a52_0x2cddea(0xc6)],yargs[a52_0x2cddea(0x97)]['playwright']);try{sdkSetup();}catch(a52_0xae9dce){logger[a52_0x2cddea(0xcb)](a52_0x2cddea(0x9e)+a52_0xae9dce);}addScriptInPackageJson();function createConfigurationFile(_0x32518f,_0x11c907,_0x2b7abd=![]){const _0x1bc6df=a52_0x2cddea,_0x44f818={};_0x44f818[_0x1bc6df(0xd2)]=_0x1bc6df(0xa0),_0x44f818[_0x1bc6df(0xc8)]=_0x1bc6df(0xa3),_0x44f818[_0x1bc6df(0xad)]=_0x1bc6df(0xb0);const _0x2ac094=_0x44f818;try{let _0x2234d2=fs['readFileSync'](_0x2b7abd?configFileTemplatePW:configFileTemplate,_0x2ac094['SLcfX']);_0x32518f&&(_0x2234d2=_0x2234d2[_0x1bc6df(0xd3)](_0x2ac094[_0x1bc6df(0xc8)],_0x32518f)),_0x11c907&&(_0x2234d2=_0x2234d2[_0x1bc6df(0xd3)](_0x2ac094[_0x1bc6df(0xad)],_0x11c907)),config=yaml[_0x1bc6df(0xb4)](_0x2234d2),fs[_0x1bc6df(0x99)](configFile,_0x2234d2,_0x1a48cd=>{const _0x84a19a=_0x1bc6df;_0x1a48cd&&logger[_0x84a19a(0xca)](_0x1a48cd);});}catch(_0x1a891b){logger[_0x1bc6df(0xca)](_0x1a891b);}}function addPostInstallScript(_0x5ca3aa,_0x42c23f){const _0x3b47b8=a52_0x2cddea,_0x339d06={};_0x339d06[_0x3b47b8(0xb9)]=_0x3b47b8(0xc5),_0x339d06[_0x3b47b8(0xc9)]='npm\x20update\x20browserstack-node-sdk',_0x339d06[_0x3b47b8(0x98)]='\x20&&\x20npm\x20update\x20browserstack-node-sdk';const _0x14e9a8=_0x339d06;let _0x79c25c=_0x5ca3aa[_0x14e9a8[_0x3b47b8(0xb9)]];if(_0x79c25c&&_0x79c25c[_0x3b47b8(0xc0)](_0x14e9a8['WAstu']))return;!_0x79c25c?_0x79c25c=_0x14e9a8[_0x3b47b8(0xc9)]:_0x79c25c+=_0x14e9a8[_0x3b47b8(0x98)],_0x42c23f['push']([_0x14e9a8['flFYY'],_0x79c25c]);}function addScriptInPackageJson(){const _0x1a27ef=a52_0x2cddea,_0xd1b384={'kTujx':_0x1a27ef(0xa0),'miBno':function(_0x3bc073,_0x52303c){return _0x3bc073<_0x52303c;},'UCwtA':function(_0x352e1e,_0x54c73d,_0x474ec8){return _0x352e1e(_0x54c73d,_0x474ec8);},'WySfM':function(_0x4a8172,_0xafb24e){return _0x4a8172<_0xafb24e;},'IQWQr':function(_0x5f1617,_0x4d9642,_0x326b2a){return _0x5f1617(_0x4d9642,_0x326b2a);},'nmRHy':function(_0x62e8c3,_0x20423b){return _0x62e8c3!==_0x20423b;},'chmpg':'Adding\x20new\x20script(s)\x20in\x20package.json...'},_0x1cee36=JSON[_0x1a27ef(0xbc)](fs[_0x1a27ef(0x94)](packageFile,_0xd1b384[_0x1a27ef(0xc4)])),_0x4b737c=[];for(let _0x24bd4d=0x0;_0xd1b384[_0x1a27ef(0xa9)](_0x24bd4d,frameworks[_0x1a27ef(0xd5)]);_0x24bd4d+=0x1){const _0x43c9a5=_0xd1b384[_0x1a27ef(0xd0)](findScriptsWithFramework,_0x1cee36['scripts'],frameworks[_0x24bd4d]);for(let _0x4c79ee=0x0;_0xd1b384[_0x1a27ef(0xcf)](_0x4c79ee,_0x43c9a5[_0x1a27ef(0xd5)]);_0x4c79ee+=0x1){_0x4b737c[_0x1a27ef(0x9f)](_0xd1b384[_0x1a27ef(0xd0)](getUpdatedCommand,_0x1cee36[_0x1a27ef(0x92)],_0x43c9a5[_0x4c79ee]));}_0xd1b384[_0x1a27ef(0xa6)](addPostInstallScript,_0x1cee36[_0x1a27ef(0x92)],_0x4b737c);}const _0x1478a7={..._0x1cee36[_0x1a27ef(0x92)]},_0x6d0667=_0x1478a7;for(let _0x4d0075=0x0;_0xd1b384[_0x1a27ef(0xcf)](_0x4d0075,_0x4b737c[_0x1a27ef(0xd5)]);_0x4d0075+=0x1){_0x6d0667[_0x4b737c[_0x4d0075][0x0]]=_0x4b737c[_0x4d0075][0x1];}_0xd1b384[_0x1a27ef(0xd4)](JSON[_0x1a27ef(0x95)](_0x1cee36[_0x1a27ef(0x92)]),JSON[_0x1a27ef(0x95)](_0x6d0667))&&(logger[_0x1a27ef(0x9a)](_0xd1b384[_0x1a27ef(0xc1)]),_0x1cee36['scripts']=_0x6d0667,fs['writeFileSync'](packageFile,JSON[_0x1a27ef(0x95)](_0x1cee36,null,0x2),_0x33e37a=>{const _0x2ab4b6=_0x1a27ef;_0x33e37a&&logger[_0x2ab4b6(0xca)](_0x33e37a);}));};function findScriptsWithFramework(_0x46bf8d,_0x3f1da9){const _0x39d4fe=a52_0x2cddea,_0x71a1cb={};_0x71a1cb[_0x39d4fe(0xd1)]=function(_0x43e5c3,_0x5ea54d){return _0x43e5c3<_0x5ea54d;},_0x71a1cb[_0x39d4fe(0xa2)]='browserstack-node-sdk';const _0x2f0e7d=_0x71a1cb,_0x16e6b6=[],_0x3c8a27=Object['entries'](_0x46bf8d);for(let _0x4677aa=0x0;_0x2f0e7d[_0x39d4fe(0xd1)](_0x4677aa,_0x3c8a27['length']);_0x4677aa+=0x1){_0x3c8a27[_0x4677aa][0x1]['includes'](_0x3f1da9)&&!_0x3c8a27[_0x4677aa][0x1][_0x39d4fe(0xc0)](_0x2f0e7d[_0x39d4fe(0xa2)])&&_0x16e6b6[_0x39d4fe(0x9f)](_0x3c8a27[_0x4677aa][0x0]);}return _0x16e6b6;}function getUpdatedCommand(_0x73fcf2,_0x376785){const _0xd7e0b6=a52_0x2cddea,_0x193d9b={};_0x193d9b[_0xd7e0b6(0xa5)]=function(_0xa59507,_0x3cc3a1){return _0xa59507!==_0x3cc3a1;},_0x193d9b[_0xd7e0b6(0x96)]='browserstack-node-sdk',_0x193d9b[_0xd7e0b6(0xcc)]=function(_0x507cbd,_0x44759e){return _0x507cbd===_0x44759e;};const _0x404bec=_0x193d9b,_0x2ad26b=_0x376785+'-browserstack',_0x4941de=_0x73fcf2[_0x376785],_0x4a4fbd=_0x4941de[_0xd7e0b6(0xb8)]('\x20');for(const _0x37fccb of frameworks){if(_0x404bec[_0xd7e0b6(0xa5)](_0x4a4fbd[_0xd7e0b6(0xc2)](_0x37fccb),-0x1)){_0x4a4fbd['splice'](_0x4a4fbd[_0xd7e0b6(0xc2)](_0x37fccb),0x0,_0x404bec[_0xd7e0b6(0x96)]);break;}}let _0xb7b52e=_0x4a4fbd['join']('\x20');return _0x404bec[_0xd7e0b6(0xcc)](_0xb7b52e,_0x4941de)&&(_0xb7b52e=_0xd7e0b6(0xac)+_0x4941de),[_0x2ad26b,_0xb7b52e];}function sdkSetup(){const _0x3b27f6=a52_0x2cddea,_0x269ac0={};_0x269ac0[_0x3b27f6(0xbb)]='node-setup',_0x269ac0[_0x3b27f6(0xa7)]='SDKSetup';const _0x5bb138=_0x269ac0;if(helper[_0x3b27f6(0x9c)](config))return;config[_0x3b27f6(0xaf)]=_0x5bb138[_0x3b27f6(0xbb)];try{utilities['fireFunnelTestEvent'](_0x5bb138[_0x3b27f6(0xa7)],{},config,'');}catch(_0x3dcaa7){logger['debug'](_0x3b27f6(0x9e)+_0x3dcaa7);}}function a52_0x22ba(_0x1a2d47,_0x4f246a){const _0x468cb8=a52_0x468c();return a52_0x22ba=function(_0x22bad1,_0x370707){_0x22bad1=_0x22bad1-0x92;let _0x5408f6=_0x468cb8[_0x22bad1];return _0x5408f6;},a52_0x22ba(_0x1a2d47,_0x4f246a);}function a52_0x468c(){const _0x3bb4e7=['flFYY','149795zEOXUj','rIwSP','parse','10930768VvZbjU','winstonLogger','codeceptjs','includes','chmpg','indexOf','yargs','kTujx','postinstall','key','/browserstack.yml','EgpFY','WAstu','error','debug','dauSA','jest','3329340hjLIyx','WySfM','UCwtA','WRYpB','SLcfX','replace','nmRHy','length','377650XPkrwO','/package.json','Setup\x20completed','../helpers/helper','scripts','username','readFileSync','stringify','MKhDx','argv','juDIk','writeFileSync','info','cucumber-js','isUndefined','mocha','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','push','utf8','playwright','kPWRv','YOUR_USERNAME','/../../browserstack.pw.yml.sample','zDMru','IQWQr','DsYrM','node','miBno','2cHfOpg','js-yaml','browserstack-node-sdk\x20','eePOh','../helpers/utilities','source','YOUR_ACCESS_KEY','2689770PQWySK','3647610jhsMrw','6LGVCEH','load','Creating\x20configuration\x20file...','cwd','1345840LiNqGd','split'];a52_0x468c=function(){return _0x3bb4e7;};return a52_0x468c();}logger[a52_0x2cddea(0x9a)](a52_0x2cddea(0xd8));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a53_0x51cc23=a53_0x4168;(function(_0x455701,_0x32ad3f){const _0x1038e2=a53_0x4168,_0x3d60d5=_0x455701();while(!![]){try{const _0x465c86=parseInt(_0x1038e2(0x18e))/0x1*(-parseInt(_0x1038e2(0x1b6))/0x2)+parseInt(_0x1038e2(0x1cb))/0x3*(parseInt(_0x1038e2(0x1af))/0x4)+-parseInt(_0x1038e2(0x19c))/0x5*(-parseInt(_0x1038e2(0x1d3))/0x6)+-parseInt(_0x1038e2(0x1de))/0x7*(parseInt(_0x1038e2(0x1d2))/0x8)+-parseInt(_0x1038e2(0x1c5))/0x9+parseInt(_0x1038e2(0x1a2))/0xa+parseInt(_0x1038e2(0x1ae))/0xb*(-parseInt(_0x1038e2(0x190))/0xc);if(_0x465c86===_0x32ad3f)break;else _0x3d60d5['push'](_0x3d60d5['shift']());}catch(_0x436290){_0x3d60d5['push'](_0x3d60d5['shift']());}}}(a53_0x1208,0x27614));function a53_0x4168(_0x21d199,_0x545e89){const _0x120808=a53_0x1208();return a53_0x4168=function(_0x41683e,_0x1456d5){_0x41683e=_0x41683e-0x187;let _0xdfb8f0=_0x120808[_0x41683e];return _0xdfb8f0;},a53_0x4168(_0x21d199,_0x545e89);}function a53_0x1208(){const _0x50a907=['ABYgW','55797QNnaeU','platformCaps','util','mNscf','config','exitCode','./testWorker.js','length','test-file-success','results','stdout','jest-worker','WWflN','stderr','EFeNy','KCyOB','frYhI','jdeOr','4053YjZrrt','MNUZJ','348WdHMkt','pipe','EfCNt','log','parallelCucumberRun','\x20for','RrTYe','fTQkc','debug','vanillaWorker','resolve','platform','335YkJobm','bTamp','worker_threads','platform-run-success','hVCgY','end','2348440XWjUIs','cucumberWorker','../../helpers/logger','postMessage','QqUBQ','IobbL','platforms','Workers\x20failed\x20to\x20exit\x20gracefully','_workerPool','waitForExit','configuration','../../helpers/test-observability/utils','61413SHfOJN','5248lHfWZn','map','ojsna','parallelVanillaRun','p-limit','wJMAR','XigoM','42cAPvjj','getStderr','format','Running\x20','UNSTABLE_onCustomMessage','SDK_SETUP','platform-run-failure','getWorkers','RkpVJ','json','winstonLogger','icgHF','TFFHt','getStdout','error','35694uAryIa','push','then','info','vrrVp','qtZDX','402jMiFpZ','file','emit','../../helpers/testhub/testhubHandler','exit','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','test-file-start','104CFqxZG','9426MGRmFD','aZyGe','_child','test-file-failure','worker','HxgGG','send','hQHwc','all','Rexdc'];a53_0x1208=function(){return _0x50a907;};return a53_0x1208();}const Worker=require(a53_0x51cc23(0x187))['Worker'],Emittery=require('emittery'),pLimit=require(a53_0x51cc23(0x1b3)),{parentPort}=require(a53_0x51cc23(0x19e)),util=require(a53_0x51cc23(0x1e0)),logger=require(a53_0x51cc23(0x1a4))[a53_0x51cc23(0x1c0)],PerformanceTester=require('../../helpers/performance/performance-tester'),PerformanceEvents=require('../../helpers/performance/constants')['EVENTS'],{debug}=require(a53_0x51cc23(0x1ad)),TestHubHandler=require(a53_0x51cc23(0x1ce));exports['parallelTestRun']=(_0x449db7,_0x42ff51,_0x45ecfd)=>new Promise(async _0x31ee0b=>{const _0x2e7fda=a53_0x51cc23,_0x49d95c={'TFFHt':'failureCount','EfCNt':function(_0x222014,_0x12b7f4){return _0x222014+_0x12b7f4;},'WWflN':_0x2e7fda(0x1e7),'ABYgW':_0x2e7fda(0x1a9),'mNscf':function(_0x400ff2,_0x3811fe){return _0x400ff2(_0x3811fe);},'PSfky':_0x2e7fda(0x1d1),'aZyGe':'./testWorker.js','MNUZJ':_0x2e7fda(0x1d7),'tfwUR':_0x2e7fda(0x1bf),'vrrVp':_0x2e7fda(0x191),'dShsU':function(_0x4fdcb7,_0x4d833b){return _0x4fdcb7*_0x4d833b;},'fTQkc':'test-file-success','EFeNy':_0x2e7fda(0x1d6),'hVCgY':function(_0x4485e9,_0x2ff2ae){return _0x4485e9*_0x2ff2ae;}},_0xd94165=_0x45ecfd[_0x2e7fda(0x1e2)],_0x5cb87b={},_0x2971f5=new Worker(require[_0x2e7fda(0x19a)](_0x49d95c[_0x2e7fda(0x1d4)]),{'exposedMethods':[_0x49d95c[_0x2e7fda(0x18f)]],'forkOptions':{'serialization':_0x49d95c['tfwUR'],'stdio':_0x49d95c[_0x2e7fda(0x1c9)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0x49d95c['dShsU'](_0x42ff51,0x1),'enableWorkerThreads':!![]}),_0x43aeed=new Emittery();_0x43aeed['on'](_0x49d95c[_0x2e7fda(0x197)],_0x320d5f=>{const _0xc3f862=_0x2e7fda;_0x5cb87b[_0x320d5f[0x0]]?(_0x5cb87b[_0x320d5f[0x0]][_0x49d95c['TFFHt']]=_0x49d95c[_0xc3f862(0x192)](_0x5cb87b[_0x320d5f[0x0]][_0x49d95c['TFFHt']],_0x320d5f[0x1][_0x49d95c[_0xc3f862(0x1c2)]]),_0x5cb87b[_0x320d5f[0x0]][_0x49d95c[_0xc3f862(0x188)]]=[..._0x5cb87b[_0x320d5f[0x0]][_0x49d95c[_0xc3f862(0x188)]],..._0x320d5f[0x1][_0x49d95c['WWflN']]]):_0x5cb87b[_0x320d5f[0x0]]={'failureCount':_0x320d5f[0x1][_0x49d95c[_0xc3f862(0x1c2)]],'results':[..._0x320d5f[0x1][_0x49d95c['WWflN']]]};}),_0x43aeed['on'](_0x49d95c[_0x2e7fda(0x18a)],_0x4b84c9=>console[_0x2e7fda(0x193)](_0x4b84c9[0x1]));_0x2971f5[_0x2e7fda(0x1c3)]()&&_0x2971f5['getStdout']()[_0x2e7fda(0x191)](process[_0x2e7fda(0x1e8)]);_0x2971f5[_0x2e7fda(0x1b7)]()&&_0x2971f5[_0x2e7fda(0x1b7)]()['pipe'](process[_0x2e7fda(0x189)]);const _0x34366d=async()=>{const _0x50f403=_0x2e7fda,{forceExited:_0x20c9ec}=await _0x2971f5[_0x50f403(0x1a1)]();_0x20c9ec&&console['error'](_0x49d95c[_0x50f403(0x1dd)]);try{await TestHubHandler['stop']();}catch(_0x743465){_0x49d95c[_0x50f403(0x1e1)](debug,_0x50f403(0x1d0)+_0x743465);}_0x49d95c['mNscf'](_0x31ee0b,_0x5cb87b);},_0x24c19b=_0x49d95c[_0x2e7fda(0x1e1)](pLimit,_0x49d95c[_0x2e7fda(0x1a0)](_0x42ff51,0x1)),_0x1cf5b1=_0x294513=>_0x24c19b(async()=>{const _0x5dd5fb=_0x2e7fda;await _0x43aeed[_0x5dd5fb(0x1cd)](_0x49d95c['PSfky'],_0x294513);const _0x552104=_0x2971f5[_0x5dd5fb(0x1d7)](_0x294513,_0xd94165);try{parentPort&&_0x552104[_0x5dd5fb(0x1ba)](_0xfa9a25=>{const _0xd6b971=_0x5dd5fb;try{parentPort[_0xd6b971(0x1a5)](_0xfa9a25);}catch(_0xdedf9f){logger[_0xd6b971(0x198)]('Exception\x20in\x20sending\x20worker\x20message\x20'+util[_0xd6b971(0x1b8)](_0xdedf9f));}});}catch(_0x33d881){logger[_0x5dd5fb(0x198)]('Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'+util[_0x5dd5fb(0x1b8)](_0x33d881));}return _0x552104;});PerformanceTester[_0x2e7fda(0x1a1)](PerformanceEvents[_0x2e7fda(0x1bb)]),Promise['all'](_0x449db7[_0x2e7fda(0x1b0)](_0x3b871c=>_0x1cf5b1(_0x3b871c)['then'](_0x930247=>_0x43aeed[_0x2e7fda(0x1cd)](_0x2e7fda(0x1e6),[_0x3b871c['configuration']['platform'],_0x930247]),_0x304e37=>_0x43aeed[_0x2e7fda(0x1cd)](_0x2e7fda(0x1d6),[_0x3b871c,_0x304e37]))))['then'](_0x34366d,_0x34366d);}),exports[a53_0x51cc23(0x194)]=(_0x1156b9,_0x2d463f,_0x1cfafb,_0x1add16,_0x4f27a7)=>{const _0x582a35=a53_0x51cc23,_0x2f1799={'RrTYe':'Workers\x20failed\x20to\x20exit\x20gracefully','RkpVJ':function(_0xd305b1,_0x4527ca){return _0xd305b1(_0x4527ca);},'Rexdc':'platform-run-start','FAWJo':_0x582a35(0x1e4),'IobbL':_0x582a35(0x1a3),'Lgltn':_0x582a35(0x1bf),'frYhI':_0x582a35(0x191),'wJMAR':'platform-run-success','KCyOB':_0x582a35(0x1bc)};return new Promise(_0x214554=>{const _0x16aa44=_0x582a35,_0x157d0d={};_0x157d0d['HxgGG']=_0x2f1799[_0x16aa44(0x1dc)];const _0x35d380=_0x157d0d,_0x3c65d9=[],_0x1b3bef=new Worker(require[_0x16aa44(0x19a)](_0x2f1799['FAWJo']),{'exposedMethods':[_0x2f1799[_0x16aa44(0x1a7)]],'forkOptions':{'serialization':_0x2f1799['Lgltn'],'stdio':_0x2f1799[_0x16aa44(0x18c)]},'numWorkers':_0x1156b9[_0x16aa44(0x1e5)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x20f4e7=new Emittery();_0x20f4e7['on'](_0x2f1799[_0x16aa44(0x1b4)],_0x5330a4=>{const _0x30dc41=_0x16aa44;_0x3c65d9[_0x30dc41(0x1c6)]([_0x5330a4[0x0],_0x5330a4[0x1]]);}),_0x20f4e7['on'](_0x2f1799[_0x16aa44(0x18b)],_0x528df0=>console[_0x16aa44(0x193)](_0x528df0[0x1]));_0x1b3bef[_0x16aa44(0x1c3)]()&&_0x1b3bef[_0x16aa44(0x1c3)]()[_0x16aa44(0x191)](process[_0x16aa44(0x1e8)]);_0x1b3bef[_0x16aa44(0x1b7)]()&&_0x1b3bef[_0x16aa44(0x1b7)]()[_0x16aa44(0x191)](process[_0x16aa44(0x189)]);const _0x577df3=async()=>{const _0x58e3b2=_0x16aa44,{forceExited:_0x3ed20f}=await _0x1b3bef[_0x58e3b2(0x1a1)]();_0x3ed20f&&console[_0x58e3b2(0x1c4)](_0x2f1799[_0x58e3b2(0x196)]),_0x2f1799[_0x58e3b2(0x1be)](_0x214554,_0x3c65d9);},_0x23ebed=_0x2f1799[_0x16aa44(0x1be)](pLimit,_0x1156b9[_0x16aa44(0x1e5)]||0x1),_0x4d2780=(_0x3d3188,_0x584202)=>_0x23ebed(async()=>{const _0x8bc391=_0x16aa44;return await _0x20f4e7[_0x8bc391(0x1cd)](_0x35d380[_0x8bc391(0x1d8)],_0x3d3188),_0x2d463f[_0x8bc391(0x1df)]=_0x1cfafb[_0x8bc391(0x1a8)][_0x584202],_0x2d463f['platformIndex']=_0x584202,_0x1b3bef[_0x8bc391(0x1a3)](_0x3d3188,_0x2d463f,_0x1cfafb,_0x1add16,_0x4f27a7);});Promise['all'](_0x1156b9[_0x16aa44(0x1b0)]((_0x337da2,_0xa975c7)=>_0x4d2780(_0x337da2,_0xa975c7)['then'](_0x4aa1dc=>_0x20f4e7[_0x16aa44(0x1cd)](_0x16aa44(0x19f),[_0x337da2,_0x4aa1dc]),_0x1cc87f=>_0x20f4e7['emit'](_0x16aa44(0x1bc),[_0x337da2,_0x1cc87f]))))[_0x16aa44(0x1c7)](_0x577df3,_0x577df3);});},exports[a53_0x51cc23(0x1b2)]=(_0x2587ab,_0x48823e)=>new Promise(_0x41063f=>{const _0x3841e=a53_0x51cc23,_0x184ec7={'bykHN':_0x3841e(0x1cf),'icgHF':function(_0x541ba1,_0x429b01){return _0x541ba1===_0x429b01;},'QqUBQ':function(_0x5d922c,_0x50edee){return _0x5d922c!==_0x50edee;},'kMFXS':_0x3841e(0x1a9),'qtZDX':function(_0x575803,_0x50889e){return _0x575803(_0x50889e);},'bTamp':_0x3841e(0x1e4),'ojsna':'vanillaWorker','hQHwc':_0x3841e(0x1bf),'QNUZv':_0x3841e(0x191),'jdeOr':_0x3841e(0x1e6),'XigoM':'test-file-failure'},_0x1ff1b9={},_0x24025a=new Worker(require[_0x3841e(0x19a)](_0x184ec7[_0x3841e(0x19d)]),{'exposedMethods':[_0x184ec7[_0x3841e(0x1b1)]],'forkOptions':{'serialization':_0x184ec7[_0x3841e(0x1da)],'stdio':_0x184ec7['QNUZv']},'numWorkers':_0x48823e,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0x28a815=new Emittery();_0x28a815['on'](_0x184ec7[_0x3841e(0x18d)],_0x307cf5=>{const _0x38c307=_0x3841e;_0x307cf5[0x0]&&logger[_0x38c307(0x1c8)](_0x38c307(0x1b9)+_0x307cf5[0x1]+_0x38c307(0x195),_0x307cf5[0x0]);}),_0x28a815['on'](_0x184ec7[_0x3841e(0x1b5)],_0x3dde70=>{const _0x194c3d=_0x3841e;process[_0x194c3d(0x1e3)]=0x1;});_0x24025a[_0x3841e(0x1c3)]()&&_0x24025a[_0x3841e(0x1c3)]()['pipe'](process[_0x3841e(0x1e8)]);_0x24025a[_0x3841e(0x1b7)]()&&_0x24025a[_0x3841e(0x1b7)]()[_0x3841e(0x191)](process['stderr']);const _0x5f3b15=async()=>{const _0x6a9575=_0x3841e,_0x3c9c28={'dVTqX':function(_0x599a4f,_0x22f5b7){const _0x50ea72=a53_0x4168;return _0x184ec7[_0x50ea72(0x1c1)](_0x599a4f,_0x22f5b7);},'rKroE':function(_0x2c4339,_0x5ae396){const _0x23ffcf=a53_0x4168;return _0x184ec7[_0x23ffcf(0x1a6)](_0x2c4339,_0x5ae396);}};let _0x5b82be=0x0;const _0x266283=_0x24025a[_0x6a9575(0x1aa)][_0x6a9575(0x1bd)](),_0x581fdf=()=>{},_0x178f1b=_0x266283['map'](async _0x5968fe=>{const _0x5867a4=_0x6a9575;_0x5968fe[_0x5867a4(0x1d9)]([0x2,![]],_0x581fdf,_0x581fdf,_0x581fdf),_0x5968fe[_0x5867a4(0x1d5)]['on'](_0x184ec7['bykHN'],_0x40f04=>{_0x3c9c28['dVTqX'](_0x5b82be,0x0)&&_0x3c9c28['rKroE'](_0x40f04,0x0)&&(_0x5b82be=_0x40f04);}),await _0x5968fe[_0x5867a4(0x1ab)]();});await Promise['all'](_0x178f1b),process['exitCode']=_0x5b82be;const {forceExited:_0x8d7a66}=await _0x24025a[_0x6a9575(0x1a1)]();_0x8d7a66&&console[_0x6a9575(0x1c4)](_0x184ec7['kMFXS']),_0x184ec7['qtZDX'](_0x41063f,_0x1ff1b9);},_0x8ec71f=_0x184ec7[_0x3841e(0x1ca)](pLimit,_0x48823e),_0x26a8b4=_0xabffad=>_0x8ec71f(async()=>{const _0x21d2ab=_0x3841e;return _0x24025a[_0x21d2ab(0x199)](_0xabffad);});Promise[_0x3841e(0x1db)](_0x2587ab[_0x3841e(0x1b0)](_0x32d115=>_0x26a8b4(_0x32d115)[_0x3841e(0x1c7)](_0x4056cd=>_0x28a815[_0x3841e(0x1cd)](_0x3841e(0x1e6),[_0x32d115[_0x3841e(0x1ac)][_0x3841e(0x19b)],_0x32d115[_0x3841e(0x1ac)][_0x3841e(0x1cc)]]),_0x36edbf=>_0x28a815[_0x3841e(0x1cd)](_0x3841e(0x1d6),[_0x32d115,_0x36edbf]))))[_0x3841e(0x1c7)](_0x5f3b15,_0x5f3b15);});
|
|
1
|
+
const a53_0x269611=a53_0x216e;(function(_0x268652,_0x3368e1){const _0x2bcecc=a53_0x216e,_0x2a4aa6=_0x268652();while(!![]){try{const _0x55b723=-parseInt(_0x2bcecc(0x198))/0x1+-parseInt(_0x2bcecc(0x1b8))/0x2+parseInt(_0x2bcecc(0x177))/0x3+-parseInt(_0x2bcecc(0x18f))/0x4*(parseInt(_0x2bcecc(0x1ca))/0x5)+-parseInt(_0x2bcecc(0x1d1))/0x6+parseInt(_0x2bcecc(0x1c2))/0x7+parseInt(_0x2bcecc(0x1a6))/0x8;if(_0x55b723===_0x3368e1)break;else _0x2a4aa6['push'](_0x2a4aa6['shift']());}catch(_0x5a665c){_0x2a4aa6['push'](_0x2a4aa6['shift']());}}}(a53_0x44ed,0xe4ebc));function a53_0x44ed(){const _0x4414ac=['emit','Exception\x20in\x20sending\x20worker\x20message\x20','platform-run-failure','TzwCL','LwEUp','_child','all','platform','WLIQq','getStdout','Workers\x20failed\x20to\x20exit\x20gracefully','166232HUClec','QkVCI','test-file-start','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','VtpTJ','worker_threads','send','failureCount','gJNaA','postMessage','10143259mouHZh','emittery','\x20for','p-limit','VVqHi','config','getWorkers','getStderr','21330GgnpgE','SDK_SETUP','Worker','stdout','stderr','platformIndex','then','1731612NmuweI','cYVpS','exitCode','waitForExit','gvVuR','../../helpers/performance/performance-tester','test-file-success','2168883fPAobO','gJpHv','resolve','ZqqhJ','../../helpers/test-observability/utils','debug','EVENTS','DghbD','jest-worker','format','SGZKw','pipe','dcoFH','info','worker','bDdGk','exit','JwmKK','vanillaWorker','configuration','length','platformCaps','parallelCucumberRun','platforms','1136bkSgCZ','json','stop','cucumberWorker','WYjTu','qRtrc','end','AkUPy','bHPTo','560878embWcc','rlQkZ','platform-run-success','../../helpers/performance/constants','Running\x20','error','util','DYebJ','map','LXWwW','FVGDN','Nzklx','test-file-failure','platform-run-start','7278416FvgbDc','kAPIa','push','log','QVlLo','zjoQv','_workerPool'];a53_0x44ed=function(){return _0x4414ac;};return a53_0x44ed();}function a53_0x216e(_0x198d21,_0x5921b0){const _0x44eded=a53_0x44ed();return a53_0x216e=function(_0x216e83,_0x15b435){_0x216e83=_0x216e83-0x175;let _0x247708=_0x44eded[_0x216e83];return _0x247708;},a53_0x216e(_0x198d21,_0x5921b0);}const Worker=require(a53_0x269611(0x17f))[a53_0x269611(0x1cc)],Emittery=require(a53_0x269611(0x1c3)),pLimit=require(a53_0x269611(0x1c5)),{parentPort}=require(a53_0x269611(0x1bd)),util=require(a53_0x269611(0x19e)),logger=require('../../helpers/logger')['winstonLogger'],PerformanceTester=require(a53_0x269611(0x175)),PerformanceEvents=require(a53_0x269611(0x19b))[a53_0x269611(0x17d)],{debug}=require(a53_0x269611(0x17b)),TestHubHandler=require('../../helpers/testhub/testhubHandler');exports['parallelTestRun']=(_0x5378c0,_0x57756c,_0x41f42f)=>new Promise(async _0x238139=>{const _0x5bf8f8=a53_0x269611,_0x360a0d={'SGZKw':_0x5bf8f8(0x1bf),'PyFAi':function(_0x292d77,_0x27743c){return _0x292d77+_0x27743c;},'cYVpS':'results','lrNHS':_0x5bf8f8(0x1b7),'xyPhm':function(_0x557b22,_0x319df3){return _0x557b22(_0x319df3);},'LXWwW':function(_0xfb0998,_0x193935){return _0xfb0998(_0x193935);},'rlQkZ':_0x5bf8f8(0x1ba),'TzwCL':'./testWorker.js','AkUPy':_0x5bf8f8(0x185),'VtpTJ':_0x5bf8f8(0x190),'gJNaA':_0x5bf8f8(0x182),'LwEUp':function(_0x938240,_0x449b95){return _0x938240*_0x449b95;},'bDdGk':_0x5bf8f8(0x176),'Nzklx':_0x5bf8f8(0x1a4),'FVGDN':function(_0x1ccebf,_0x21fd92){return _0x1ccebf(_0x21fd92);}},_0x16fe4b=_0x41f42f[_0x5bf8f8(0x1c7)],_0x331b36={},_0x509a7f=new Worker(require[_0x5bf8f8(0x179)](_0x360a0d[_0x5bf8f8(0x1b0)]),{'exposedMethods':[_0x360a0d[_0x5bf8f8(0x196)]],'forkOptions':{'serialization':_0x360a0d[_0x5bf8f8(0x1bc)],'stdio':_0x360a0d[_0x5bf8f8(0x1c0)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0x360a0d[_0x5bf8f8(0x1b1)](_0x57756c,0x1),'enableWorkerThreads':!![]}),_0x58e5bb=new Emittery();_0x58e5bb['on'](_0x360a0d[_0x5bf8f8(0x186)],_0x36a060=>{const _0x1fdc72=_0x5bf8f8;_0x331b36[_0x36a060[0x0]]?(_0x331b36[_0x36a060[0x0]][_0x360a0d[_0x1fdc72(0x181)]]=_0x360a0d['PyFAi'](_0x331b36[_0x36a060[0x0]][_0x360a0d[_0x1fdc72(0x181)]],_0x36a060[0x1][_0x360a0d[_0x1fdc72(0x181)]]),_0x331b36[_0x36a060[0x0]][_0x360a0d[_0x1fdc72(0x1d2)]]=[..._0x331b36[_0x36a060[0x0]][_0x360a0d[_0x1fdc72(0x1d2)]],..._0x36a060[0x1][_0x360a0d[_0x1fdc72(0x1d2)]]]):_0x331b36[_0x36a060[0x0]]={'failureCount':_0x36a060[0x1][_0x360a0d[_0x1fdc72(0x181)]],'results':[..._0x36a060[0x1][_0x360a0d[_0x1fdc72(0x1d2)]]]};}),_0x58e5bb['on'](_0x360a0d[_0x5bf8f8(0x1a3)],_0x6fb4cf=>console['log'](_0x6fb4cf[0x1]));_0x509a7f[_0x5bf8f8(0x1b6)]()&&_0x509a7f[_0x5bf8f8(0x1b6)]()['pipe'](process[_0x5bf8f8(0x1cd)]);_0x509a7f['getStderr']()&&_0x509a7f[_0x5bf8f8(0x1c9)]()[_0x5bf8f8(0x182)](process[_0x5bf8f8(0x1ce)]);const _0x44375a=async()=>{const _0x1b7067=_0x5bf8f8,{forceExited:_0x2e1617}=await _0x509a7f['end']();_0x2e1617&&console['error'](_0x360a0d['lrNHS']);try{await TestHubHandler[_0x1b7067(0x191)]();}catch(_0x231d26){_0x360a0d['xyPhm'](debug,_0x1b7067(0x1bb)+_0x231d26);}_0x360a0d[_0x1b7067(0x1a1)](_0x238139,_0x331b36);},_0x461d9b=_0x360a0d[_0x5bf8f8(0x1a2)](pLimit,_0x360a0d[_0x5bf8f8(0x1b1)](_0x57756c,0x1)),_0x4b23e8=_0x3efbdc=>_0x461d9b(async()=>{const _0x52e7f1=_0x5bf8f8;await _0x58e5bb[_0x52e7f1(0x1ad)](_0x360a0d[_0x52e7f1(0x199)],_0x3efbdc);const _0x46c459=_0x509a7f[_0x52e7f1(0x185)](_0x3efbdc,_0x16fe4b);try{parentPort&&_0x46c459['UNSTABLE_onCustomMessage'](_0x1d3bcf=>{const _0x1a0287=_0x52e7f1;try{parentPort[_0x1a0287(0x1c1)](_0x1d3bcf);}catch(_0x356362){logger['debug'](_0x1a0287(0x1ae)+util[_0x1a0287(0x180)](_0x356362));}});}catch(_0x425625){logger[_0x52e7f1(0x17c)]('Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'+util[_0x52e7f1(0x180)](_0x425625));}return _0x46c459;});PerformanceTester[_0x5bf8f8(0x195)](PerformanceEvents[_0x5bf8f8(0x1cb)]),Promise['all'](_0x5378c0[_0x5bf8f8(0x1a0)](_0x45bf75=>_0x4b23e8(_0x45bf75)['then'](_0x3c3f7e=>_0x58e5bb[_0x5bf8f8(0x1ad)](_0x5bf8f8(0x176),[_0x45bf75[_0x5bf8f8(0x18a)]['platform'],_0x3c3f7e]),_0x4014c3=>_0x58e5bb[_0x5bf8f8(0x1ad)](_0x5bf8f8(0x1a4),[_0x45bf75,_0x4014c3]))))[_0x5bf8f8(0x1d0)](_0x44375a,_0x44375a);}),exports[a53_0x269611(0x18d)]=(_0x3eadb4,_0x5eb5b8,_0x42e8df,_0x232f5e,_0x4f9468)=>{const _0x327730=a53_0x269611,_0x57edbc={'qRtrc':'Workers\x20failed\x20to\x20exit\x20gracefully','WLIQq':function(_0x9a3a4d,_0x3afcf0){return _0x9a3a4d(_0x3afcf0);},'bHPTo':_0x327730(0x1a5),'DYebJ':'./testWorker.js','DghbD':_0x327730(0x192),'gJpHv':'json','BFEef':'pipe','ebbgt':_0x327730(0x19a),'VVqHi':'platform-run-failure','QkVCI':function(_0x535681,_0x33b96b){return _0x535681(_0x33b96b);}};return new Promise(_0x47b257=>{const _0x5f3a86=_0x327730,_0x15a400={};_0x15a400[_0x5f3a86(0x17a)]=_0x57edbc[_0x5f3a86(0x197)];const _0x297267=_0x15a400,_0x313991=[],_0x341e35=new Worker(require[_0x5f3a86(0x179)](_0x57edbc[_0x5f3a86(0x19f)]),{'exposedMethods':[_0x57edbc[_0x5f3a86(0x17e)]],'forkOptions':{'serialization':_0x57edbc[_0x5f3a86(0x178)],'stdio':_0x57edbc['BFEef']},'numWorkers':_0x3eadb4[_0x5f3a86(0x18b)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x186f91=new Emittery();_0x186f91['on'](_0x57edbc['ebbgt'],_0x3aab51=>{const _0x3a0dd9=_0x5f3a86;_0x313991[_0x3a0dd9(0x1a8)]([_0x3aab51[0x0],_0x3aab51[0x1]]);}),_0x186f91['on'](_0x57edbc[_0x5f3a86(0x1c6)],_0x2942de=>console[_0x5f3a86(0x1a9)](_0x2942de[0x1]));_0x341e35['getStdout']()&&_0x341e35[_0x5f3a86(0x1b6)]()[_0x5f3a86(0x182)](process['stdout']);_0x341e35['getStderr']()&&_0x341e35[_0x5f3a86(0x1c9)]()['pipe'](process[_0x5f3a86(0x1ce)]);const _0x1295d8=async()=>{const _0x10ca9a=_0x5f3a86,{forceExited:_0xd388d6}=await _0x341e35[_0x10ca9a(0x195)]();_0xd388d6&&console[_0x10ca9a(0x19d)](_0x57edbc[_0x10ca9a(0x194)]),_0x57edbc[_0x10ca9a(0x1b5)](_0x47b257,_0x313991);},_0x4eb9af=_0x57edbc[_0x5f3a86(0x1b9)](pLimit,_0x3eadb4['length']||0x1),_0x5c7b88=(_0x1d2d5f,_0x279c8e)=>_0x4eb9af(async()=>{const _0x58681f=_0x5f3a86;return await _0x186f91['emit'](_0x297267[_0x58681f(0x17a)],_0x1d2d5f),_0x5eb5b8[_0x58681f(0x18c)]=_0x42e8df[_0x58681f(0x18e)][_0x279c8e],_0x5eb5b8[_0x58681f(0x1cf)]=_0x279c8e,_0x341e35['cucumberWorker'](_0x1d2d5f,_0x5eb5b8,_0x42e8df,_0x232f5e,_0x4f9468);});Promise[_0x5f3a86(0x1b3)](_0x3eadb4[_0x5f3a86(0x1a0)]((_0x228477,_0x24088b)=>_0x5c7b88(_0x228477,_0x24088b)[_0x5f3a86(0x1d0)](_0x34c59a=>_0x186f91[_0x5f3a86(0x1ad)]('platform-run-success',[_0x228477,_0x34c59a]),_0x293c7e=>_0x186f91[_0x5f3a86(0x1ad)](_0x5f3a86(0x1af),[_0x228477,_0x293c7e]))))['then'](_0x1295d8,_0x1295d8);});},exports['parallelVanillaRun']=(_0x3ab74b,_0x303ab4)=>new Promise(_0x1e4577=>{const _0x72a0e3=a53_0x269611,_0x396611={'zjoQv':function(_0x5920af,_0xee6d15){return _0x5920af===_0xee6d15;},'qzBsI':function(_0x5264ae,_0x511528){return _0x5264ae!==_0x511528;},'GOGMQ':_0x72a0e3(0x187),'QVlLo':_0x72a0e3(0x1b7),'gvVuR':function(_0xfcb510,_0x1d73ac){return _0xfcb510(_0x1d73ac);},'WYjTu':'./testWorker.js','hYsOp':_0x72a0e3(0x189),'KBFBf':_0x72a0e3(0x190),'kAPIa':'pipe','ErHOm':_0x72a0e3(0x176),'JwmKK':_0x72a0e3(0x1a4)},_0x736f21={},_0x2c0772=new Worker(require['resolve'](_0x396611[_0x72a0e3(0x193)]),{'exposedMethods':[_0x396611['hYsOp']],'forkOptions':{'serialization':_0x396611['KBFBf'],'stdio':_0x396611[_0x72a0e3(0x1a7)]},'numWorkers':_0x303ab4,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0x56c3e0=new Emittery();_0x56c3e0['on'](_0x396611['ErHOm'],_0x122f35=>{const _0x1f5004=_0x72a0e3;_0x122f35[0x0]&&logger[_0x1f5004(0x184)](_0x1f5004(0x19c)+_0x122f35[0x1]+_0x1f5004(0x1c4),_0x122f35[0x0]);}),_0x56c3e0['on'](_0x396611[_0x72a0e3(0x188)],_0x543a81=>{const _0x371324=_0x72a0e3;process[_0x371324(0x1d3)]=0x1;});_0x2c0772[_0x72a0e3(0x1b6)]()&&_0x2c0772[_0x72a0e3(0x1b6)]()[_0x72a0e3(0x182)](process[_0x72a0e3(0x1cd)]);_0x2c0772[_0x72a0e3(0x1c9)]()&&_0x2c0772['getStderr']()[_0x72a0e3(0x182)](process['stderr']);const _0x78cf24=async()=>{const _0x2fe202=_0x72a0e3;let _0x5428e9=0x0;const _0xde5374=_0x2c0772[_0x2fe202(0x1ac)][_0x2fe202(0x1c8)](),_0x4d3095=()=>{},_0x387f7b=_0xde5374[_0x2fe202(0x1a0)](async _0x4fe0a3=>{const _0x27d67e=_0x2fe202,_0x13418b={'xaUlF':function(_0x1cf636,_0x28db28){const _0x195f8c=a53_0x216e;return _0x396611[_0x195f8c(0x1ab)](_0x1cf636,_0x28db28);},'dcoFH':function(_0x5d8280,_0x3e5d58){return _0x396611['qzBsI'](_0x5d8280,_0x3e5d58);}};_0x4fe0a3[_0x27d67e(0x1be)]([0x2,![]],_0x4d3095,_0x4d3095,_0x4d3095),_0x4fe0a3[_0x27d67e(0x1b2)]['on'](_0x396611['GOGMQ'],_0x1c8b7b=>{const _0x4ad70a=_0x27d67e;_0x13418b['xaUlF'](_0x5428e9,0x0)&&_0x13418b[_0x4ad70a(0x183)](_0x1c8b7b,0x0)&&(_0x5428e9=_0x1c8b7b);}),await _0x4fe0a3[_0x27d67e(0x1d4)]();});await Promise[_0x2fe202(0x1b3)](_0x387f7b),process[_0x2fe202(0x1d3)]=_0x5428e9;const {forceExited:_0x1c5ad7}=await _0x2c0772[_0x2fe202(0x195)]();_0x1c5ad7&&console[_0x2fe202(0x19d)](_0x396611[_0x2fe202(0x1aa)]),_0x396611[_0x2fe202(0x1d5)](_0x1e4577,_0x736f21);},_0x408f8a=_0x396611[_0x72a0e3(0x1d5)](pLimit,_0x303ab4),_0xdbe2bb=_0x509149=>_0x408f8a(async()=>{const _0x54482f=_0x72a0e3;return _0x2c0772[_0x54482f(0x189)](_0x509149);});Promise[_0x72a0e3(0x1b3)](_0x3ab74b[_0x72a0e3(0x1a0)](_0x43dee7=>_0xdbe2bb(_0x43dee7)[_0x72a0e3(0x1d0)](_0x125d63=>_0x56c3e0[_0x72a0e3(0x1ad)](_0x72a0e3(0x176),[_0x43dee7['configuration'][_0x72a0e3(0x1b4)],_0x43dee7['configuration']['file']]),_0x2f1203=>_0x56c3e0[_0x72a0e3(0x1ad)]('test-file-failure',[_0x43dee7,_0x2f1203]))))[_0x72a0e3(0x1d0)](_0x78cf24,_0x78cf24);});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54_0x16a8cb=a54_0x53d3;function a54_0x44c5(){const _0x5c2109=['vanilla','jsXOy','TCsZk','../../helpers/performance/constants','runTest','runVanillaTest','8ugKEpz','../../helpers/test-observability/utils','mocha','EVENTS','145ovGBLb','run','1562323vwcYje','SDK_POST_TEST','315467aEvoQW','formatter','273838XCxPHn','../launcher/launcher','QYTxG','runCucumberTest','1934910jtdsqw','startMonitoring','caBbL','cucumber-js','../../helpers/performance/performance-tester','130632bhSxnN','vXojm','rUYAe','end','9048JxyFDo','SWATd','314292WDmTIo','LXdKX'];a54_0x44c5=function(){return _0x5c2109;};return a54_0x44c5();}(function(_0x580968,_0x2d1d14){const _0x55c0d5=a54_0x53d3,_0xf55f88=_0x580968();while(!![]){try{const _0x5d4e79=parseInt(_0x55c0d5(0x132))/0x1+parseInt(_0x55c0d5(0x134))/0x2+-parseInt(_0x55c0d5(0x122))/0x3+parseInt(_0x55c0d5(0x11c))/0x4+parseInt(_0x55c0d5(0x12e))/0x5*(-parseInt(_0x55c0d5(0x120))/0x6)+parseInt(_0x55c0d5(0x130))/0x7*(parseInt(_0x55c0d5(0x12a))/0x8)+-parseInt(_0x55c0d5(0x117))/0x9;if(_0x5d4e79===_0x2d1d14)break;else _0xf55f88['push'](_0xf55f88['shift']());}catch(_0x8b7011){_0xf55f88['push'](_0xf55f88['shift']());}}}(a54_0x44c5,0x542ab));const PerformanceEvents=require(a54_0x16a8cb(0x127))[a54_0x16a8cb(0x12d)],PerformanceTester=require(a54_0x16a8cb(0x11b)),{sleep}=require(a54_0x16a8cb(0x12b));function a54_0x53d3(_0x347b2d,_0x1828a2){const _0x44c5ec=a54_0x44c5();return a54_0x53d3=function(_0x53d310,_0x3d02ae){_0x53d310=_0x53d310-0x116;let _0x80ad39=_0x44c5ec[_0x53d310];return _0x80ad39;},a54_0x53d3(_0x347b2d,_0x1828a2);}exports[a54_0x16a8cb(0x128)]=async(_0x5107ea,_0x1e1ede)=>{const _0x113cd4=a54_0x16a8cb,_0xf739d8={'vXojm':function(_0x4627aa,_0x3ff721){return _0x4627aa(_0x3ff721);},'QYTxG':'../launcher/launcher','caBbL':_0x113cd4(0x12c)};PerformanceTester[_0x113cd4(0x118)]();const _0x3a90d0=_0xf739d8[_0x113cd4(0x11d)](require,_0xf739d8[_0x113cd4(0x136)]),_0x45480d=new _0x3a90d0(_0xf739d8[_0x113cd4(0x119)],_0x5107ea,_0x1e1ede),_0x200a32=await _0x45480d[_0x113cd4(0x12f)]();return PerformanceTester[_0x113cd4(0x11f)](PerformanceEvents[_0x113cd4(0x131)]),await _0xf739d8[_0x113cd4(0x11d)](sleep,0x3e8),PerformanceTester['stopMonitoring'](),_0x200a32;},exports[a54_0x16a8cb(0x116)]=async(_0x469172,_0x3a88e9,_0x42e4c5,_0xe8594a,_0x130d0f)=>{const _0x11a950=a54_0x16a8cb,_0x497401={'rUYAe':function(_0x5ac13d,_0x15f45e){return _0x5ac13d(_0x15f45e);},'TCsZk':_0x11a950(0x135),'HqpjR':_0x11a950(0x11a)},_0x423322={'capability':_0x469172,..._0x3a88e9},_0x25058a={};_0x25058a['configuration']=_0x423322,_0x25058a[_0x11a950(0x133)]=_0x130d0f;const _0x26a237=_0x25058a,_0x278287=_0x497401[_0x11a950(0x11e)](require,_0x497401[_0x11a950(0x126)]),_0x4cd470=new _0x278287(_0x497401['HqpjR'],_0x26a237,_0x42e4c5,_0xe8594a);return await _0x4cd470[_0x11a950(0x12f)]();},exports[a54_0x16a8cb(0x129)]=async _0x247570=>{const _0x53391f=a54_0x16a8cb,_0x2f5eb7={'LXdKX':function(_0x379f93,_0x4c25ce){return _0x379f93(_0x4c25ce);},'SWATd':_0x53391f(0x135),'jsXOy':_0x53391f(0x124)},_0x2e5e73=_0x2f5eb7[_0x53391f(0x123)](require,_0x2f5eb7[_0x53391f(0x121)]),_0x5d27e1=new _0x2e5e73(_0x2f5eb7[_0x53391f(0x125)],_0x247570);return await _0x5d27e1[_0x53391f(0x12f)]();};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a55_0x1f11c3=a55_0x22b1;(function(_0x1ff062,_0x21caec){const _0x4eb413=a55_0x22b1,_0x195996=_0x1ff062();while(!![]){try{const _0x43a315=parseInt(_0x4eb413(0xf1))/0x1*(parseInt(_0x4eb413(0xf4))/0x2)+-parseInt(_0x4eb413(0xf3))/0x3+-parseInt(_0x4eb413(0xef))/0x4+-parseInt(_0x4eb413(0xf2))/0x5+parseInt(_0x4eb413(0xe8))/0x6*(-parseInt(_0x4eb413(0xea))/0x7)+-parseInt(_0x4eb413(0xe7))/0x8*(-parseInt(_0x4eb413(0xed))/0x9)+-parseInt(_0x4eb413(0xe9))/0xa*(-parseInt(_0x4eb413(0xee))/0xb);if(_0x43a315===_0x21caec)break;else _0x195996['push'](_0x195996['shift']());}catch(_0xa56db){_0x195996['push'](_0x195996['shift']());}}}(a55_0x1970,0x5533c));const {runTest,runCucumberTest,runVanillaTest}=require(a55_0x1f11c3(0xf0));function a55_0x22b1(_0x3b75df,_0x196d01){const _0x1970be=a55_0x1970();return a55_0x22b1=function(_0x22b1e1,_0x2c7080){_0x22b1e1=_0x22b1e1-0xe6;let _0x24b8e1=_0x1970be[_0x22b1e1];return _0x24b8e1;},a55_0x22b1(_0x3b75df,_0x196d01);}exports[a55_0x1f11c3(0xeb)]=async(_0x397838,_0xf283de)=>{const _0x4f3fb9=a55_0x1f11c3,_0x18742c={'mltoI':function(_0x5690e5,_0x1c3485,_0x26280f){return _0x5690e5(_0x1c3485,_0x26280f);}};return await _0x18742c[_0x4f3fb9(0xe6)](runTest,_0x397838,_0xf283de);},exports['cucumberWorker']=async(_0x233e14,_0x4e6d11,_0x2546f2,_0x213359,_0x3016ea)=>{const _0x3e6c42={'ghDZZ':function(_0x367e03,_0x547efe,_0x59a512,_0x158a05,_0xe69b8,_0x3e2a09){return _0x367e03(_0x547efe,_0x59a512,_0x158a05,_0xe69b8,_0x3e2a09);}};return await _0x3e6c42['ghDZZ'](runCucumberTest,_0x233e14,_0x4e6d11,_0x2546f2,_0x213359,_0x3016ea);},exports['vanillaWorker']=async _0x27101e=>{const _0x1e582f=a55_0x1f11c3,_0x466731={'aRGuc':function(_0x19e177,_0x5bd08b){return _0x19e177(_0x5bd08b);}};return await _0x466731[_0x1e582f(0xec)](runVanillaTest,_0x27101e);};function a55_0x1970(){const _0x31f9c3=['./runTest','67UtaiVn','541630JKMHms','824868sGGnpK','10446AkiLOg','mltoI','24KBkpyX','962142drGWeZ','171460iYgGnt','7sBxTyy','worker','aRGuc','1353267BHcXYy','286SNEVbc','1416796xqBzvi'];a55_0x1970=function(){return _0x31f9c3;};return a55_0x1970();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a56_0x3f2e63=a56_0x5494;(function(_0x22fa3a,_0x16de5f){const _0x1adf63=a56_0x5494,_0x491917=_0x22fa3a();while(!![]){try{const _0x782e79=-parseInt(_0x1adf63(0x1f5))/0x1+parseInt(_0x1adf63(0x1e6))/0x2+parseInt(_0x1adf63(0x19e))/0x3*(-parseInt(_0x1adf63(0x1ae))/0x4)+-parseInt(_0x1adf63(0x1fc))/0x5*(parseInt(_0x1adf63(0x1be))/0x6)+-parseInt(_0x1adf63(0x19a))/0x7*(-parseInt(_0x1adf63(0x19f))/0x8)+parseInt(_0x1adf63(0x1ec))/0x9+-parseInt(_0x1adf63(0x1e4))/0xa;if(_0x782e79===_0x16de5f)break;else _0x491917['push'](_0x491917['shift']());}catch(_0x3193eb){_0x491917['push'](_0x491917['shift']());}}}(a56_0x1ade,0x3357f));const constants=require(a56_0x3f2e63(0x1c7)),{nestedKeyValue}=require('./sharedUtils'),getBrowserstackCLI=()=>{const _0x21474d=a56_0x3f2e63,_0x16c871={'xWCNC':function(_0xf2ed3f,_0x1e1f20){return _0xf2ed3f(_0x1e1f20);},'RmNaC':_0x21474d(0x1ee)};return _0x16c871[_0x21474d(0x1cd)](require,_0x16c871[_0x21474d(0x1f4)]);};class APIUtilityMethods{static[a56_0x3f2e63(0x1a0)](_0x5bd87a){const _0x364a8a=a56_0x3f2e63,_0x4c5fc1={'rrxSF':function(_0x40d97d){return _0x40d97d();},'kzghA':function(_0x5bafa8,_0x3775d9,_0x308e41){return _0x5bafa8(_0x3775d9,_0x308e41);},'uORTM':_0x364a8a(0x1b5),'LrZYl':_0x364a8a(0x1e3),'WfzFS':_0x364a8a(0x1bf),'aCSrq':function(_0x2e45b7,_0x4662d2){return _0x2e45b7===_0x4662d2;},'KjJnL':function(_0x2bd392,_0x13f75f){return _0x2bd392+_0x13f75f;}},_0x3e7d03=_0x4c5fc1[_0x364a8a(0x1ea)](getBrowserstackCLI),_0x102e06=_0x4c5fc1['kzghA'](nestedKeyValue,_0x3e7d03[_0x364a8a(0x1b6)]()[_0x364a8a(0x1b4)](),[_0x4c5fc1['uORTM'],_0x4c5fc1[_0x364a8a(0x19b)],_0x4c5fc1[_0x364a8a(0x1ef)]])||constants[_0x364a8a(0x1c3)];if(!_0x5bd87a||_0x4c5fc1['aCSrq'](_0x5bd87a,''))return _0x102e06;const _0x1b54a2=_0x102e06[_0x364a8a(0x1c6)]('/')?_0x102e06:_0x4c5fc1[_0x364a8a(0x1df)](_0x102e06,'/');return new URL(_0x5bd87a,_0x1b54a2)[_0x364a8a(0x1a1)]();}static[a56_0x3f2e63(0x1c2)](_0xc0d363){const _0x25facb=a56_0x3f2e63,_0x1bfbf1={'vHjtA':function(_0x8b102){return _0x8b102();},'kAErP':function(_0x11bdf7,_0xc1ad0e,_0x382e6d){return _0x11bdf7(_0xc1ad0e,_0x382e6d);},'FNnVg':_0x25facb(0x1b5),'lAiHw':'edsInstrumentation','PLSgW':_0x25facb(0x1bf),'pfAhk':function(_0x53b0f4,_0x26e598){return _0x53b0f4===_0x26e598;},'YgHhL':function(_0x2da491,_0x39cfbd){return _0x2da491+_0x39cfbd;}},_0x4f7e52=_0x1bfbf1[_0x25facb(0x1a6)](getBrowserstackCLI),_0x1e33ac=_0x1bfbf1[_0x25facb(0x1c1)](nestedKeyValue,_0x4f7e52[_0x25facb(0x1b6)]()[_0x25facb(0x1b4)](),[_0x1bfbf1[_0x25facb(0x1aa)],_0x1bfbf1[_0x25facb(0x1f6)],_0x1bfbf1['PLSgW']])||constants[_0x25facb(0x1dd)];if(!_0xc0d363||_0x1bfbf1[_0x25facb(0x1ce)](_0xc0d363,''))return _0x1e33ac;const _0x4f3659=_0x1e33ac[_0x25facb(0x1c6)]('/')?_0x1e33ac:_0x1bfbf1[_0x25facb(0x1b7)](_0x1e33ac,'/');return new URL(_0xc0d363,_0x4f3659)[_0x25facb(0x1a1)]();}static[a56_0x3f2e63(0x1a8)](_0x4d0510){const _0x98dbfe=a56_0x3f2e63,_0x8ba9f1={'KrDOe':function(_0x1295b2){return _0x1295b2();},'BFYIA':function(_0x23511e,_0x1521e2,_0x1ad2bd){return _0x23511e(_0x1521e2,_0x1ad2bd);},'wpztP':_0x98dbfe(0x1b5),'riDtn':_0x98dbfe(0x1e3),'cMBkf':_0x98dbfe(0x1bf),'OLgqY':function(_0x2078ee,_0x2eaa50){return _0x2078ee===_0x2eaa50;},'BHuxA':function(_0x39f867,_0x147dcb){return _0x39f867+_0x147dcb;}},_0x1eab95=_0x8ba9f1['KrDOe'](getBrowserstackCLI),_0x124536=_0x8ba9f1[_0x98dbfe(0x1b2)](nestedKeyValue,_0x1eab95[_0x98dbfe(0x1b6)]()['getConfig'](),[_0x8ba9f1['wpztP'],_0x8ba9f1['riDtn'],_0x8ba9f1[_0x98dbfe(0x1e9)]])||constants[_0x98dbfe(0x1c3)];if(!_0x4d0510||_0x8ba9f1['OLgqY'](_0x4d0510,''))return _0x124536;const _0x563e93=_0x124536['endsWith']('/')?_0x124536:_0x8ba9f1[_0x98dbfe(0x1d1)](_0x124536,'/');return new URL(_0x4d0510,_0x563e93)[_0x98dbfe(0x1a1)]();}static['getAppAutomateSessionStatusAPIUrl'](_0x4e55c5){const _0xa0c494=a56_0x3f2e63,_0x31eba5={'pJxAx':function(_0x2fb619){return _0x2fb619();},'DXHZK':function(_0x30b1b9,_0x23c6c8,_0x3e992b){return _0x30b1b9(_0x23c6c8,_0x3e992b);},'eNsqL':_0xa0c494(0x1b5),'KQqSp':_0xa0c494(0x1f3),'NMfiZ':_0xa0c494(0x1bf),'mnmBI':function(_0x5d0f44,_0x450ed8){return _0x5d0f44===_0x450ed8;},'oSgQF':function(_0x322c88,_0x2088d7){return _0x322c88+_0x2088d7;}},_0xa0b774=_0x31eba5['pJxAx'](getBrowserstackCLI),_0x1768a5=_0x31eba5[_0xa0c494(0x19d)](nestedKeyValue,_0xa0b774['getInstance']()[_0xa0c494(0x1b4)](),[_0x31eba5[_0xa0c494(0x19c)],_0x31eba5[_0xa0c494(0x1b1)],_0x31eba5[_0xa0c494(0x1ba)]])||constants[_0xa0c494(0x1c3)];if(!_0x4e55c5||_0x31eba5[_0xa0c494(0x1d2)](_0x4e55c5,''))return _0x1768a5;const _0x34e8fd=_0x1768a5[_0xa0c494(0x1c6)]('/')?_0x1768a5:_0x31eba5[_0xa0c494(0x1a4)](_0x1768a5,'/');return new URL(_0x4e55c5,_0x34e8fd)[_0xa0c494(0x1a1)]();}static['getAutomateSessionNameAPIUrl'](_0x3bf62b){const _0x136783=a56_0x3f2e63,_0x10cfe7={'gYfHR':function(_0x46969c){return _0x46969c();},'ZDtOc':function(_0x3a51e5,_0x435e32,_0x144205){return _0x3a51e5(_0x435e32,_0x144205);},'KjMrc':_0x136783(0x1b5),'rDcJL':_0x136783(0x1e3),'ZRixN':_0x136783(0x1bf),'qjuZh':function(_0x1621db,_0x41ae0a){return _0x1621db===_0x41ae0a;},'OCTMz':function(_0x590249,_0x46663a){return _0x590249+_0x46663a;}},_0x48e43c=_0x10cfe7[_0x136783(0x1bb)](getBrowserstackCLI),_0x2c5aa2=_0x10cfe7[_0x136783(0x1bd)](nestedKeyValue,_0x48e43c[_0x136783(0x1b6)]()['getConfig'](),[_0x10cfe7[_0x136783(0x1b8)],_0x10cfe7[_0x136783(0x1ed)],_0x10cfe7['ZRixN']])||constants['BROWSERSTACK_API_URL'];if(!_0x3bf62b||_0x10cfe7[_0x136783(0x1b3)](_0x3bf62b,''))return _0x2c5aa2;const _0x4f395d=_0x2c5aa2['endsWith']('/')?_0x2c5aa2:_0x10cfe7[_0x136783(0x1d3)](_0x2c5aa2,'/');return new URL(_0x3bf62b,_0x4f395d)[_0x136783(0x1a1)]();}static[a56_0x3f2e63(0x1dc)](_0x104494){const _0x60bce3=a56_0x3f2e63,_0x436656={'XxUVj':function(_0xa180){return _0xa180();},'BjMRd':function(_0x34fa87,_0x29985a,_0x1a2450){return _0x34fa87(_0x29985a,_0x1a2450);},'DPYFN':'apis','zbfEb':_0x60bce3(0x1f3),'keXrG':_0x60bce3(0x1bf),'TSwoI':function(_0x46ea30,_0x5430c3){return _0x46ea30===_0x5430c3;},'IMFgu':function(_0x26f577,_0xf14d09){return _0x26f577+_0xf14d09;}},_0x45a579=_0x436656['XxUVj'](getBrowserstackCLI),_0x2d8f14=_0x436656['BjMRd'](nestedKeyValue,_0x45a579[_0x60bce3(0x1b6)]()[_0x60bce3(0x1b4)](),[_0x436656[_0x60bce3(0x1f7)],_0x436656[_0x60bce3(0x1f8)],_0x436656[_0x60bce3(0x1d6)]])||constants[_0x60bce3(0x1c3)];if(!_0x104494||_0x436656[_0x60bce3(0x1eb)](_0x104494,''))return _0x2d8f14;const _0x4a4bd9=_0x2d8f14[_0x60bce3(0x1c6)]('/')?_0x2d8f14:_0x436656[_0x60bce3(0x1fa)](_0x2d8f14,'/');return new URL(_0x104494,_0x4a4bd9)[_0x60bce3(0x1a1)]();}static[a56_0x3f2e63(0x197)](_0x4ee9fb){const _0x50ef19=a56_0x3f2e63,_0x33e45f={'mRzap':function(_0x3987e6){return _0x3987e6();},'nJUCK':function(_0x2e6cb6,_0x399d64,_0x1d2f6e){return _0x2e6cb6(_0x399d64,_0x1d2f6e);},'DRTxu':'apis','ZPrly':'automate','zDTzN':_0x50ef19(0x1bf),'GUpuU':function(_0xa9086f,_0x1e259c){return _0xa9086f===_0x1e259c;},'ZQLDY':function(_0x53cc38,_0x1ad08a){return _0x53cc38+_0x1ad08a;}},_0x5adf4c=_0x33e45f[_0x50ef19(0x1c9)](getBrowserstackCLI),_0xe26f53=_0x33e45f[_0x50ef19(0x1f9)](nestedKeyValue,_0x5adf4c[_0x50ef19(0x1b6)]()[_0x50ef19(0x1b4)](),[_0x33e45f[_0x50ef19(0x1db)],_0x33e45f[_0x50ef19(0x1e1)],_0x33e45f[_0x50ef19(0x1af)]])||constants[_0x50ef19(0x1c3)];if(!_0x4ee9fb||_0x33e45f[_0x50ef19(0x1f2)](_0x4ee9fb,''))return _0xe26f53;const _0x378fe9=_0xe26f53[_0x50ef19(0x1c6)]('/')?_0xe26f53:_0x33e45f[_0x50ef19(0x1a3)](_0xe26f53,'/');return new URL(_0x4ee9fb,_0x378fe9)['toString']()[_0x50ef19(0x1cf)](/^https?:\/\//,'');}static[a56_0x3f2e63(0x1d0)](_0x3b5a35){const _0x48b8f8=a56_0x3f2e63,_0x207ccf={'cEDdN':function(_0x2caf6a){return _0x2caf6a();},'PbNGY':function(_0xe817cc,_0x5b2081,_0x14d448){return _0xe817cc(_0x5b2081,_0x14d448);},'LBiaQ':_0x48b8f8(0x1b5),'teDCS':_0x48b8f8(0x1f3),'UdGAe':_0x48b8f8(0x1bf),'Zrdli':function(_0x5a710a,_0x3814ab){return _0x5a710a===_0x3814ab;},'nCxkN':function(_0x252e4d,_0x5dcc15){return _0x252e4d+_0x5dcc15;}},_0x2e396a=_0x207ccf[_0x48b8f8(0x1ab)](getBrowserstackCLI),_0x57ebdc=_0x207ccf[_0x48b8f8(0x198)](nestedKeyValue,_0x2e396a['getInstance']()['getConfig'](),[_0x207ccf[_0x48b8f8(0x199)],_0x207ccf[_0x48b8f8(0x1d5)],_0x207ccf['UdGAe']])||constants['APP_UPLOAD_URL'];if(!_0x3b5a35||_0x207ccf[_0x48b8f8(0x1a7)](_0x3b5a35,''))return _0x57ebdc;const _0xfaa2da=_0x57ebdc[_0x48b8f8(0x1c6)]('/')?_0x57ebdc:_0x207ccf['nCxkN'](_0x57ebdc,'/');return new URL(_0x3b5a35,_0xfaa2da)[_0x48b8f8(0x1a1)]()['replace'](/^https?:\/\//,'');}static[a56_0x3f2e63(0x1ac)](_0x5d7252){const _0x4c4cf6=a56_0x3f2e63,_0xe2dd1e={'GhSRo':function(_0x350ab3){return _0x350ab3();},'EVYwY':function(_0x43c2a7,_0x4a1ca9,_0x167c09){return _0x43c2a7(_0x4a1ca9,_0x167c09);},'UFPdI':'apis','ptQHT':'observability','NHUTs':_0x4c4cf6(0x1a2),'vunZO':function(_0x571c20,_0x403283){return _0x571c20===_0x403283;},'jlVYZ':function(_0x1622bc,_0x46a603){return _0x1622bc+_0x46a603;}},_0x44c473=_0xe2dd1e['GhSRo'](getBrowserstackCLI),_0x1c52de=_0xe2dd1e[_0x4c4cf6(0x1ca)](nestedKeyValue,_0x44c473[_0x4c4cf6(0x1b6)]()[_0x4c4cf6(0x1b4)](),[_0xe2dd1e[_0x4c4cf6(0x1de)],_0xe2dd1e[_0x4c4cf6(0x1ad)],_0xe2dd1e['NHUTs']])||constants[_0x4c4cf6(0x1cc)];if(!_0x5d7252||_0xe2dd1e['vunZO'](_0x5d7252,''))return _0x1c52de;const _0x4e691f=_0x1c52de[_0x4c4cf6(0x1c6)]('/')?_0x1c52de:_0xe2dd1e[_0x4c4cf6(0x1e0)](_0x1c52de,'/');return new URL(_0x5d7252,_0x4e691f)[_0x4c4cf6(0x1a1)]();}static[a56_0x3f2e63(0x1c0)](_0x4c78c8){const _0x5698a2=a56_0x3f2e63,_0x1ee8e5={'hgHQr':function(_0x3ca419){return _0x3ca419();},'kHwrL':function(_0x1ed227,_0x1fc57d,_0x30da3d){return _0x1ed227(_0x1fc57d,_0x30da3d);},'kNIHj':_0x5698a2(0x1b5),'DnsNG':_0x5698a2(0x1e3),'QjWMw':_0x5698a2(0x1c5),'wKSRn':_0x5698a2(0x1e5),'XVGwf':function(_0x1efacc,_0x56ec59){return _0x1efacc===_0x56ec59;},'GbzSc':function(_0x37b48a,_0x4b7078){return _0x37b48a+_0x4b7078;},'OUTgN':_0x5698a2(0x1e2)},_0x2cae1a=_0x1ee8e5[_0x5698a2(0x1cb)](getBrowserstackCLI),_0x2d2830=_0x1ee8e5[_0x5698a2(0x1d8)](nestedKeyValue,_0x2cae1a['getInstance']()[_0x5698a2(0x1b4)](),[_0x1ee8e5[_0x5698a2(0x1e7)],_0x1ee8e5[_0x5698a2(0x1bc)],_0x1ee8e5[_0x5698a2(0x1b0)]]),_0x37824c=(_0x2d2830?_0x2d2830['replace'](/^https:/,_0x1ee8e5['wKSRn']):null)||constants[_0x5698a2(0x1a9)];let _0x3370a6;if(!_0x4c78c8||_0x1ee8e5['XVGwf'](_0x4c78c8,''))_0x3370a6=_0x37824c;else{const _0x53b214=_0x37824c[_0x5698a2(0x1c6)]('/')?_0x37824c:_0x1ee8e5['GbzSc'](_0x37824c,'/');_0x3370a6=new URL(_0x4c78c8,_0x53b214)['toString']();}return!_0x3370a6[_0x5698a2(0x1c6)](_0x1ee8e5['OUTgN'])&&(_0x3370a6+=_0x1ee8e5[_0x5698a2(0x1a5)]),_0x3370a6;}static[a56_0x3f2e63(0x1da)](_0x1cd449){const _0x576d9f=a56_0x3f2e63,_0x466d93={'hYshf':function(_0x361166){return _0x361166();},'QswOp':function(_0x507685,_0x4f4a1f,_0x19ce2c){return _0x507685(_0x4f4a1f,_0x19ce2c);},'Qrvgf':_0x576d9f(0x1b5),'PJDsy':'automate','CNWWQ':_0x576d9f(0x1c5),'HohgJ':_0x576d9f(0x1e5),'pLwKZ':function(_0x4a34e3,_0x28cea1){return _0x4a34e3===_0x28cea1;},'UidtI':function(_0x467178,_0x26a1a8){return _0x467178+_0x26a1a8;},'HogoP':'/puppeteer?caps='},_0xc7d40a=_0x466d93[_0x576d9f(0x1c8)](getBrowserstackCLI),_0x3283c2=_0x466d93[_0x576d9f(0x1fb)](nestedKeyValue,_0xc7d40a[_0x576d9f(0x1b6)]()['getConfig'](),[_0x466d93[_0x576d9f(0x1f1)],_0x466d93[_0x576d9f(0x1b9)],_0x466d93[_0x576d9f(0x1d7)]]),_0xd26d56=(_0x3283c2?_0x3283c2[_0x576d9f(0x1cf)](/^https:/,_0x466d93[_0x576d9f(0x1c4)]):null)||constants[_0x576d9f(0x1e8)];let _0x14036a;if(!_0x1cd449||_0x466d93[_0x576d9f(0x1d4)](_0x1cd449,''))_0x14036a=_0xd26d56;else{const _0xa10575=_0xd26d56[_0x576d9f(0x1c6)]('/')?_0xd26d56:_0x466d93[_0x576d9f(0x1d9)](_0xd26d56,'/');_0x14036a=new URL(_0x1cd449,_0xa10575)['toString']();}return!_0x14036a['endsWith'](_0x466d93['HogoP'])&&(_0x14036a+=_0x466d93['HogoP']),_0x14036a;}}function a56_0x1ade(){const _0x1e8238=['mRzap','EVYwY','hgHQr','OBSERVABILITY_UPLOAD_URL','xWCNC','pfAhk','replace','getAppAutomateSessionsListAPIUrl','BHuxA','mnmBI','OCTMz','pLwKZ','teDCS','keXrG','CNWWQ','kHwrL','UidtI','getPuppeteerHubUrl','DRTxu','getAppAutomateSessionNameAPIUrl','EDS_URL','UFPdI','KjJnL','jlVYZ','ZPrly','/playwright?caps=','automate','2498350vTdxzJ','wss:','692058zBhRrH','kNIHj','PUPPETEER_HUB_URL','cMBkf','rrxSF','TSwoI','2064978LrcIcD','rDcJL','../v2/browserstackCLI','WfzFS','exports','Qrvgf','GUpuU','appAutomate','RmNaC','133495yItZvA','lAiHw','DPYFN','zbfEb','nJUCK','IMFgu','QswOp','5675NnFvIS','getAutomateSessionsListAPIUrl','PbNGY','LBiaQ','21eabuXq','LrZYl','eNsqL','DXHZK','660117JRbUyG','1022616hGknBH','getBStackAPIUrl','toString','upload','ZQLDY','oSgQF','OUTgN','vHjtA','Zrdli','getAutomateSessionStatusAPIUrl','PLAYWRIGHT_HUB_URL','FNnVg','cEDdN','getAutoCaptureLogsAPIUrl','ptQHT','4wNtppg','zDTzN','QjWMw','KQqSp','BFYIA','qjuZh','getConfig','apis','getInstance','YgHhL','KjMrc','PJDsy','NMfiZ','gYfHR','DnsNG','ZDtOc','768lGqeqC','api','getPlaywrightHubUrl','kAErP','getEdsInstrumentationAPIUrl','BROWSERSTACK_API_URL','HohgJ','cdp','endsWith','./constants','hYshf'];a56_0x1ade=function(){return _0x1e8238;};return a56_0x1ade();}function a56_0x5494(_0x290f87,_0xee53e0){const _0x1ade7a=a56_0x1ade();return a56_0x5494=function(_0x5494ee,_0x25e022){_0x5494ee=_0x5494ee-0x197;let _0x3d27d0=_0x1ade7a[_0x5494ee];return _0x3d27d0;},a56_0x5494(_0x290f87,_0xee53e0);}module[a56_0x3f2e63(0x1f0)]=APIUtilityMethods;
|
|
1
|
+
function a56_0x3c92(_0x3911cd,_0x4b4e62){const _0x4766c1=a56_0x4766();return a56_0x3c92=function(_0x3c9230,_0x4a1eb7){_0x3c9230=_0x3c9230-0x79;let _0x325049=_0x4766c1[_0x3c9230];return _0x325049;},a56_0x3c92(_0x3911cd,_0x4b4e62);}const a56_0x306cef=a56_0x3c92;(function(_0xf9fd9e,_0x4813e0){const _0x258e7b=a56_0x3c92,_0x5d1237=_0xf9fd9e();while(!![]){try{const _0x2cf60e=-parseInt(_0x258e7b(0xa3))/0x1*(parseInt(_0x258e7b(0xc3))/0x2)+-parseInt(_0x258e7b(0xd8))/0x3+-parseInt(_0x258e7b(0xc6))/0x4+-parseInt(_0x258e7b(0xb6))/0x5+-parseInt(_0x258e7b(0x96))/0x6+-parseInt(_0x258e7b(0x79))/0x7*(parseInt(_0x258e7b(0x9d))/0x8)+parseInt(_0x258e7b(0x7f))/0x9;if(_0x2cf60e===_0x4813e0)break;else _0x5d1237['push'](_0x5d1237['shift']());}catch(_0x1468ee){_0x5d1237['push'](_0x5d1237['shift']());}}}(a56_0x4766,0x409e0));const constants=require('./constants'),{nestedKeyValue}=require(a56_0x306cef(0xa8)),getBrowserstackCLI=()=>{const _0x226f6a=a56_0x306cef,_0x13147b={'SzYvV':function(_0x561e4d,_0xc992c8){return _0x561e4d(_0xc992c8);},'ouxkW':_0x226f6a(0x7a)};return _0x13147b[_0x226f6a(0xb8)](require,_0x13147b[_0x226f6a(0x83)]);};class APIUtilityMethods{static[a56_0x306cef(0xa6)](_0x37f85d){const _0xd38a0a=a56_0x306cef,_0x305fc6={'HRcQO':function(_0x2abb2f){return _0x2abb2f();},'MxBiA':function(_0x4937ac,_0x5bb8e6,_0x4cb341){return _0x4937ac(_0x5bb8e6,_0x4cb341);},'JFIcO':_0xd38a0a(0xab),'zNVpJ':_0xd38a0a(0xbb),'OTdSG':_0xd38a0a(0xce),'CKghi':function(_0x49208a,_0x1c62b6){return _0x49208a===_0x1c62b6;},'LfMyQ':function(_0x1df6e0,_0x23f2e2){return _0x1df6e0+_0x23f2e2;}},_0x17532a=_0x305fc6[_0xd38a0a(0xd2)](getBrowserstackCLI),_0x503e78=_0x305fc6[_0xd38a0a(0xbd)](nestedKeyValue,_0x17532a[_0xd38a0a(0x82)]()[_0xd38a0a(0xa4)](),[_0x305fc6[_0xd38a0a(0xd1)],_0x305fc6['zNVpJ'],_0x305fc6['OTdSG']])||constants['BROWSERSTACK_API_URL'];if(!_0x37f85d||_0x305fc6['CKghi'](_0x37f85d,''))return _0x503e78;const _0x1a03b8=_0x503e78[_0xd38a0a(0x8b)]('/')?_0x503e78:_0x305fc6[_0xd38a0a(0x8c)](_0x503e78,'/');return new URL(_0x37f85d,_0x1a03b8)[_0xd38a0a(0x88)]();}static['getEdsInstrumentationAPIUrl'](_0xf2c06b){const _0x223372=a56_0x306cef,_0x396210={'wFFlA':function(_0x412340){return _0x412340();},'hVnXp':function(_0xa1ba3,_0xf68b4e,_0xeba123){return _0xa1ba3(_0xf68b4e,_0xeba123);},'lBKWq':'apis','ncTqC':_0x223372(0xb3),'UiWVq':'api','njTRX':function(_0x56343c,_0x1f376c){return _0x56343c===_0x1f376c;},'aMigY':function(_0x3366b5,_0x303a2e){return _0x3366b5+_0x303a2e;}},_0x571cb9=_0x396210[_0x223372(0xa1)](getBrowserstackCLI),_0x4a4770=_0x396210['hVnXp'](nestedKeyValue,_0x571cb9['getInstance']()[_0x223372(0xa4)](),[_0x396210[_0x223372(0x9e)],_0x396210[_0x223372(0x99)],_0x396210[_0x223372(0xcd)]])||constants[_0x223372(0xa2)];if(!_0xf2c06b||_0x396210['njTRX'](_0xf2c06b,''))return _0x4a4770;const _0x8d357f=_0x4a4770[_0x223372(0x8b)]('/')?_0x4a4770:_0x396210[_0x223372(0x8f)](_0x4a4770,'/');return new URL(_0xf2c06b,_0x8d357f)[_0x223372(0x88)]();}static[a56_0x306cef(0x92)](_0xa260df){const _0x1dfc50=a56_0x306cef,_0x544230={'VEqJO':function(_0x1a728f){return _0x1a728f();},'lzDjQ':function(_0x103aa4,_0x5cace4,_0x52c85d){return _0x103aa4(_0x5cace4,_0x52c85d);},'AGRLw':_0x1dfc50(0xab),'XYUnh':'automate','YBbZc':'api','wKoYi':function(_0xae5619,_0x33193f){return _0xae5619===_0x33193f;},'vAxya':function(_0x158ee6,_0x54c838){return _0x158ee6+_0x54c838;}},_0x4f6744=_0x544230['VEqJO'](getBrowserstackCLI),_0x7069a4=_0x544230[_0x1dfc50(0xd7)](nestedKeyValue,_0x4f6744[_0x1dfc50(0x82)]()[_0x1dfc50(0xa4)](),[_0x544230['AGRLw'],_0x544230['XYUnh'],_0x544230[_0x1dfc50(0x84)]])||constants[_0x1dfc50(0xc5)];if(!_0xa260df||_0x544230[_0x1dfc50(0x93)](_0xa260df,''))return _0x7069a4;const _0x37392a=_0x7069a4[_0x1dfc50(0x8b)]('/')?_0x7069a4:_0x544230['vAxya'](_0x7069a4,'/');return new URL(_0xa260df,_0x37392a)[_0x1dfc50(0x88)]();}static['getAppAutomateSessionStatusAPIUrl'](_0x4efa20){const _0x43e13e=a56_0x306cef,_0x3c16ab={'kLZLH':function(_0x3595ea){return _0x3595ea();},'ATHnH':function(_0x141bb2,_0x74a20f,_0x536e63){return _0x141bb2(_0x74a20f,_0x536e63);},'vTJpk':_0x43e13e(0xab),'VKGKW':_0x43e13e(0xbe),'DQlPG':_0x43e13e(0xce),'rbCHN':function(_0x323497,_0x262c7d){return _0x323497===_0x262c7d;},'pbgGn':function(_0x50992b,_0x1ea0fe){return _0x50992b+_0x1ea0fe;}},_0x51e703=_0x3c16ab[_0x43e13e(0xb1)](getBrowserstackCLI),_0x571f27=_0x3c16ab[_0x43e13e(0x98)](nestedKeyValue,_0x51e703[_0x43e13e(0x82)]()['getConfig'](),[_0x3c16ab[_0x43e13e(0xac)],_0x3c16ab['VKGKW'],_0x3c16ab[_0x43e13e(0xbf)]])||constants[_0x43e13e(0xc5)];if(!_0x4efa20||_0x3c16ab[_0x43e13e(0xb4)](_0x4efa20,''))return _0x571f27;const _0x5d2851=_0x571f27[_0x43e13e(0x8b)]('/')?_0x571f27:_0x3c16ab[_0x43e13e(0x7b)](_0x571f27,'/');return new URL(_0x4efa20,_0x5d2851)['toString']();}static['getAutomateSessionNameAPIUrl'](_0x3f1a6a){const _0x8ecafb=a56_0x306cef,_0x1f938a={'FyIiz':function(_0x322914){return _0x322914();},'ddPUu':function(_0x2b5f6c,_0xf80b75,_0x42ca39){return _0x2b5f6c(_0xf80b75,_0x42ca39);},'GCvAi':'apis','MYCzA':_0x8ecafb(0xbb),'oisVJ':_0x8ecafb(0xce),'agOIX':function(_0x456f9e,_0x2f3e65){return _0x456f9e===_0x2f3e65;},'wmvAC':function(_0x5f39d4,_0x163250){return _0x5f39d4+_0x163250;}},_0x15ca8a=_0x1f938a['FyIiz'](getBrowserstackCLI),_0x4e1eb5=_0x1f938a['ddPUu'](nestedKeyValue,_0x15ca8a[_0x8ecafb(0x82)]()[_0x8ecafb(0xa4)](),[_0x1f938a[_0x8ecafb(0xa7)],_0x1f938a['MYCzA'],_0x1f938a[_0x8ecafb(0x9c)]])||constants[_0x8ecafb(0xc5)];if(!_0x3f1a6a||_0x1f938a[_0x8ecafb(0x85)](_0x3f1a6a,''))return _0x4e1eb5;const _0x5258f4=_0x4e1eb5[_0x8ecafb(0x8b)]('/')?_0x4e1eb5:_0x1f938a[_0x8ecafb(0xc1)](_0x4e1eb5,'/');return new URL(_0x3f1a6a,_0x5258f4)[_0x8ecafb(0x88)]();}static['getAppAutomateSessionNameAPIUrl'](_0x45ae3b){const _0xd4a417=a56_0x306cef,_0x1acefe={'rKfZA':function(_0x2dfdf2){return _0x2dfdf2();},'BwBbe':function(_0x2cd44b,_0x439ace,_0x5a90e2){return _0x2cd44b(_0x439ace,_0x5a90e2);},'vvdbu':_0xd4a417(0xab),'WQEun':_0xd4a417(0xbe),'BXlmm':_0xd4a417(0xce),'CgKer':function(_0x3a23c2,_0x18be69){return _0x3a23c2===_0x18be69;},'JLxCL':function(_0xdcd1f1,_0x253bf7){return _0xdcd1f1+_0x253bf7;}},_0x39db90=_0x1acefe[_0xd4a417(0x90)](getBrowserstackCLI),_0x214e8b=_0x1acefe[_0xd4a417(0x7c)](nestedKeyValue,_0x39db90['getInstance']()[_0xd4a417(0xa4)](),[_0x1acefe['vvdbu'],_0x1acefe[_0xd4a417(0xb9)],_0x1acefe[_0xd4a417(0x95)]])||constants[_0xd4a417(0xc5)];if(!_0x45ae3b||_0x1acefe[_0xd4a417(0x8a)](_0x45ae3b,''))return _0x214e8b;const _0x3019ef=_0x214e8b[_0xd4a417(0x8b)]('/')?_0x214e8b:_0x1acefe[_0xd4a417(0xb7)](_0x214e8b,'/');return new URL(_0x45ae3b,_0x3019ef)[_0xd4a417(0x88)]();}static[a56_0x306cef(0xd5)](_0xc78a2){const _0x96f2cd=a56_0x306cef,_0x4b4050={'eKsUX':function(_0x3c4595){return _0x3c4595();},'BEOud':function(_0xe5a853,_0x4d2e9c,_0x4a60cf){return _0xe5a853(_0x4d2e9c,_0x4a60cf);},'dHnpE':'apis','RrfYg':'automate','Patfi':_0x96f2cd(0xce),'XguiY':function(_0x4f5d6d,_0x5470ca){return _0x4f5d6d===_0x5470ca;},'tqKVQ':function(_0xce3b82,_0x254561){return _0xce3b82+_0x254561;}},_0x22982e=_0x4b4050['eKsUX'](getBrowserstackCLI),_0x5c3cef=_0x4b4050[_0x96f2cd(0xd0)](nestedKeyValue,_0x22982e[_0x96f2cd(0x82)]()[_0x96f2cd(0xa4)](),[_0x4b4050[_0x96f2cd(0x81)],_0x4b4050[_0x96f2cd(0xc2)],_0x4b4050['Patfi']])||constants[_0x96f2cd(0xc5)];if(!_0xc78a2||_0x4b4050[_0x96f2cd(0x86)](_0xc78a2,''))return _0x5c3cef;const _0x5acd78=_0x5c3cef[_0x96f2cd(0x8b)]('/')?_0x5c3cef:_0x4b4050[_0x96f2cd(0xa9)](_0x5c3cef,'/');return new URL(_0xc78a2,_0x5acd78)[_0x96f2cd(0x88)]()[_0x96f2cd(0x80)](/^https?:\/\//,'');}static[a56_0x306cef(0xad)](_0x488abd){const _0x1fb89f=a56_0x306cef,_0x394c28={'FFNZv':function(_0x1c47fc){return _0x1c47fc();},'wKbTa':function(_0x16c7a1,_0x12f4fe,_0x4c3d3d){return _0x16c7a1(_0x12f4fe,_0x4c3d3d);},'yorEb':'apis','xfOox':_0x1fb89f(0xbe),'eDOTf':_0x1fb89f(0xce),'EuYIK':function(_0x1debe1,_0x4fee4f){return _0x1debe1===_0x4fee4f;},'NLcPo':function(_0x2484b4,_0x5d342d){return _0x2484b4+_0x5d342d;}},_0x4df318=_0x394c28[_0x1fb89f(0x7e)](getBrowserstackCLI),_0xbdfd8e=_0x394c28[_0x1fb89f(0xba)](nestedKeyValue,_0x4df318[_0x1fb89f(0x82)]()['getConfig'](),[_0x394c28[_0x1fb89f(0x9a)],_0x394c28[_0x1fb89f(0xd4)],_0x394c28[_0x1fb89f(0x8d)]])||constants['APP_UPLOAD_URL'];if(!_0x488abd||_0x394c28[_0x1fb89f(0xcf)](_0x488abd,''))return _0xbdfd8e;const _0x3424bc=_0xbdfd8e[_0x1fb89f(0x8b)]('/')?_0xbdfd8e:_0x394c28['NLcPo'](_0xbdfd8e,'/');return new URL(_0x488abd,_0x3424bc)[_0x1fb89f(0x88)]()[_0x1fb89f(0x80)](/^https?:\/\//,'');}static[a56_0x306cef(0xcb)](_0x1305f1){const _0xb3ab5a=a56_0x306cef,_0x352586={'nYEQa':function(_0x3cea88){return _0x3cea88();},'sagxN':function(_0x4f2035,_0x3b78f1,_0x33d003){return _0x4f2035(_0x3b78f1,_0x33d003);},'Hbise':'apis','xEsNm':_0xb3ab5a(0x91),'XfbGI':_0xb3ab5a(0xa5),'EWQPU':function(_0x25c0d9,_0x3fc729){return _0x25c0d9===_0x3fc729;},'ETSBL':function(_0x4ccef3,_0x407fff){return _0x4ccef3+_0x407fff;}},_0xfb9e0a=_0x352586[_0xb3ab5a(0xc7)](getBrowserstackCLI),_0x55e4d1=_0x352586[_0xb3ab5a(0xaf)](nestedKeyValue,_0xfb9e0a[_0xb3ab5a(0x82)]()[_0xb3ab5a(0xa4)](),[_0x352586[_0xb3ab5a(0x7d)],_0x352586[_0xb3ab5a(0xc9)],_0x352586[_0xb3ab5a(0xa0)]])||constants[_0xb3ab5a(0xcc)];if(!_0x1305f1||_0x352586[_0xb3ab5a(0xb5)](_0x1305f1,''))return _0x55e4d1;const _0x2f0900=_0x55e4d1[_0xb3ab5a(0x8b)]('/')?_0x55e4d1:_0x352586['ETSBL'](_0x55e4d1,'/');return new URL(_0x1305f1,_0x2f0900)[_0xb3ab5a(0x88)]();}static[a56_0x306cef(0xc8)](_0x1745cd){const _0x1b47c3=a56_0x306cef,_0x65c7f8={'HCfgt':function(_0xe267c){return _0xe267c();},'ajlXG':function(_0x2bacdf,_0x56fc08,_0x374eef){return _0x2bacdf(_0x56fc08,_0x374eef);},'vqwGk':_0x1b47c3(0xab),'lFTmM':_0x1b47c3(0xbb),'QIYPQ':'cdp','fBQUa':_0x1b47c3(0xb0),'OTtWz':function(_0x3723f1,_0x1d798b){return _0x3723f1===_0x1d798b;},'obVbF':function(_0x1b05c0,_0x1961a3){return _0x1b05c0+_0x1961a3;},'XUTnk':'/playwright?caps='},_0x421a37=_0x65c7f8[_0x1b47c3(0x87)](getBrowserstackCLI),_0x5a2ba7=_0x65c7f8[_0x1b47c3(0xbc)](nestedKeyValue,_0x421a37[_0x1b47c3(0x82)]()[_0x1b47c3(0xa4)](),[_0x65c7f8[_0x1b47c3(0xca)],_0x65c7f8[_0x1b47c3(0xaa)],_0x65c7f8[_0x1b47c3(0xae)]]),_0x477483=(_0x5a2ba7?_0x5a2ba7[_0x1b47c3(0x80)](/^https:/,_0x65c7f8[_0x1b47c3(0x97)]):null)||constants[_0x1b47c3(0x9f)];let _0x296152;if(!_0x1745cd||_0x65c7f8['OTtWz'](_0x1745cd,''))_0x296152=_0x477483;else{const _0x409fb9=_0x477483[_0x1b47c3(0x8b)]('/')?_0x477483:_0x65c7f8['obVbF'](_0x477483,'/');_0x296152=new URL(_0x1745cd,_0x409fb9)[_0x1b47c3(0x88)]();}return!_0x296152['endsWith'](_0x65c7f8[_0x1b47c3(0x89)])&&(_0x296152+=_0x65c7f8[_0x1b47c3(0x89)]),_0x296152;}static['getPuppeteerHubUrl'](_0x166f9c){const _0x269b7d=a56_0x306cef,_0x2337f2={'zScxX':function(_0x2ea117){return _0x2ea117();},'kbexz':function(_0x392193,_0xbc2f8a,_0x4e2a93){return _0x392193(_0xbc2f8a,_0x4e2a93);},'bONZy':_0x269b7d(0xab),'LpJUC':'automate','IgOfK':_0x269b7d(0xb2),'hdyQP':'wss:','EeXkK':function(_0x317e3b,_0x186da1){return _0x317e3b===_0x186da1;},'mporz':function(_0x272629,_0x41a095){return _0x272629+_0x41a095;},'ZaUkk':_0x269b7d(0x94)},_0x26267c=_0x2337f2['zScxX'](getBrowserstackCLI),_0x45e879=_0x2337f2[_0x269b7d(0xc0)](nestedKeyValue,_0x26267c[_0x269b7d(0x82)]()[_0x269b7d(0xa4)](),[_0x2337f2['bONZy'],_0x2337f2[_0x269b7d(0xd9)],_0x2337f2['IgOfK']]),_0x41103d=(_0x45e879?_0x45e879[_0x269b7d(0x80)](/^https:/,_0x2337f2[_0x269b7d(0x8e)]):null)||constants[_0x269b7d(0xc4)];let _0x5c1c73;if(!_0x166f9c||_0x2337f2[_0x269b7d(0xd3)](_0x166f9c,''))_0x5c1c73=_0x41103d;else{const _0x3764a4=_0x41103d['endsWith']('/')?_0x41103d:_0x2337f2['mporz'](_0x41103d,'/');_0x5c1c73=new URL(_0x166f9c,_0x3764a4)[_0x269b7d(0x88)]();}return!_0x5c1c73[_0x269b7d(0x8b)](_0x2337f2[_0x269b7d(0xd6)])&&(_0x5c1c73+=_0x2337f2[_0x269b7d(0xd6)]),_0x5c1c73;}}function a56_0x4766(){const _0x420332=['LfMyQ','eDOTf','hdyQP','aMigY','rKfZA','observability','getAutomateSessionStatusAPIUrl','wKoYi','/puppeteer?caps=','BXlmm','2753766DHEuhJ','fBQUa','ATHnH','ncTqC','yorEb','exports','oisVJ','2552zBqjEs','lBKWq','PLAYWRIGHT_HUB_URL','XfbGI','wFFlA','EDS_URL','169gvmOkf','getConfig','upload','getBStackAPIUrl','GCvAi','./sharedUtils','tqKVQ','lFTmM','apis','vTJpk','getAppAutomateSessionsListAPIUrl','QIYPQ','sagxN','wss:','kLZLH','cdp','edsInstrumentation','rbCHN','EWQPU','2191795Aojgvy','JLxCL','SzYvV','WQEun','wKbTa','automate','ajlXG','MxBiA','appAutomate','DQlPG','kbexz','wmvAC','RrfYg','5342JJNNww','PUPPETEER_HUB_URL','BROWSERSTACK_API_URL','2011064CBVEwX','nYEQa','getPlaywrightHubUrl','xEsNm','vqwGk','getAutoCaptureLogsAPIUrl','OBSERVABILITY_UPLOAD_URL','UiWVq','api','EuYIK','BEOud','JFIcO','HRcQO','EeXkK','xfOox','getAutomateSessionsListAPIUrl','ZaUkk','lzDjQ','1262025EhexQo','LpJUC','2156pDXTVI','../v2/browserstackCLI','pbgGn','BwBbe','Hbise','FFNZv','23715756RXcpZP','replace','dHnpE','getInstance','ouxkW','YBbZc','agOIX','XguiY','HCfgt','toString','XUTnk','CgKer','endsWith'];a56_0x4766=function(){return _0x420332;};return a56_0x4766();}module[a56_0x306cef(0x9b)]=APIUtilityMethods;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a57_0x3904e5=a57_0x38f4;(function(_0x49f805,_0x3cabc1){const _0x17ac3b=a57_0x38f4,_0x2333fe=_0x49f805();while(!![]){try{const _0xa01de5=-parseInt(_0x17ac3b(0xef))/0x1*(-parseInt(_0x17ac3b(0x111))/0x2)+parseInt(_0x17ac3b(0xd8))/0x3+-parseInt(_0x17ac3b(0xee))/0x4*(-parseInt(_0x17ac3b(0xdb))/0x5)+parseInt(_0x17ac3b(0xd2))/0x6*(-parseInt(_0x17ac3b(0x112))/0x7)+parseInt(_0x17ac3b(0xcb))/0x8*(-parseInt(_0x17ac3b(0xe3))/0x9)+-parseInt(_0x17ac3b(0xf6))/0xa*(parseInt(_0x17ac3b(0xf9))/0xb)+-parseInt(_0x17ac3b(0xc5))/0xc*(-parseInt(_0x17ac3b(0xae))/0xd);if(_0xa01de5===_0x3cabc1)break;else _0x2333fe['push'](_0x2333fe['shift']());}catch(_0xba1911){_0x2333fe['push'](_0x2333fe['shift']());}}}(a57_0x431e,0x5a18a));const logger=require(a57_0x3904e5(0xd6))[a57_0x3904e5(0xce)],BrowserstackCLI=require('../v2/browserstackCLI'),GrpcClient=require('../v2/grpcClient'),constants=require(a57_0x3904e5(0x108));class ClientTroubleShootingService{static [a57_0x3904e5(0xd1)]=null;static ['errorCodesOccurredWhenCLINotRunning']=new Set();static async[a57_0x3904e5(0x105)](_0x37abe8){const _0x537751=a57_0x3904e5,_0x4cac57={};_0x4cac57[_0x537751(0xe4)]=function(_0x449811,_0x2979c0){return _0x449811!==_0x2979c0;};const _0x54c1ee=_0x4cac57;try{if(BrowserstackCLI['getInstance']()[_0x537751(0xea)]()){const _0xc349b9=await GrpcClient[_0x537751(0xf8)]()[_0x537751(0xe6)](_0x37abe8);if(_0x54c1ee[_0x537751(0xe4)](_0xc349b9,null)&&_0xc349b9['getSuccess']())return{'errorCode':_0xc349b9[_0x537751(0xf5)](),'errorMessage':_0xc349b9['getErrorMessage']()};return{};}return{};}catch(_0x3e91a0){return this[_0x537751(0xc2)]('Error\x20in\x20getting\x20error\x20details\x20for\x20'+_0x37abe8+':',_0x3e91a0),{};}}static async[a57_0x3904e5(0xe0)](){const _0x3e9ba8=a57_0x3904e5,_0x3c3b25={};_0x3c3b25['gmxCR']=function(_0x1442b4,_0x43a56e){return _0x1442b4!==_0x43a56e;},_0x3c3b25[_0x3e9ba8(0xe1)]=_0x3e9ba8(0xd4),_0x3c3b25[_0x3e9ba8(0xec)]=_0x3e9ba8(0xb6);const _0x503048=_0x3c3b25;try{if(BrowserstackCLI[_0x3e9ba8(0xf8)]()[_0x3e9ba8(0xea)]()){const _0x2b0ceb=await GrpcClient[_0x3e9ba8(0xf8)]()['getAggregatedClientTroubleshootingErrors']();if(_0x503048[_0x3e9ba8(0xde)](_0x2b0ceb,null)&&_0x2b0ceb[_0x3e9ba8(0xb3)]()){const _0x21d83b=Buffer[_0x3e9ba8(0xfe)](_0x2b0ceb[_0x3e9ba8(0xc1)](),_0x503048['GjTQX'])['toString'](),_0x201683=_0x21d83b?JSON[_0x3e9ba8(0xeb)](_0x21d83b):[],_0x52e05c=_0x2b0ceb[_0x3e9ba8(0x10f)](),_0x3b7668=_0x2b0ceb[_0x3e9ba8(0xd5)](),_0x48cc1b=Buffer['from'](_0x2b0ceb['getErrorCodesOccurredInCli'](),_0x503048['GjTQX'])[_0x3e9ba8(0xcf)](),_0x4225c9=_0x48cc1b?JSON['parse'](_0x48cc1b):[],_0x299bae={};return _0x299bae[_0x3e9ba8(0xc3)]=_0x201683,_0x299bae[_0x3e9ba8(0x107)]=_0x52e05c,_0x299bae['finalErrorMessage']=_0x3b7668,_0x299bae['errorCodesOccurredInCLI']=_0x4225c9,_0x299bae;}const _0x1d0f7b={};return _0x1d0f7b['errorCodes']=[],_0x1d0f7b[_0x3e9ba8(0x107)]='',_0x1d0f7b[_0x3e9ba8(0xe5)]='',_0x1d0f7b[_0x3e9ba8(0x100)]=[],_0x1d0f7b;}const _0x29b707={};return _0x29b707['errorCodes']=[],_0x29b707[_0x3e9ba8(0x107)]='',_0x29b707[_0x3e9ba8(0xe5)]='',_0x29b707[_0x3e9ba8(0x100)]=[],_0x29b707;}catch(_0x65dc91){this[_0x3e9ba8(0xc2)](_0x503048[_0x3e9ba8(0xec)],_0x65dc91);const _0x23dc02={};return _0x23dc02[_0x3e9ba8(0xc3)]=[],_0x23dc02['documentationLink']='',_0x23dc02['finalErrorMessage']='',_0x23dc02[_0x3e9ba8(0x100)]=[],_0x23dc02;}}static[a57_0x3904e5(0xfc)](_0x22c355,_0x48dfa5){const _0x334bd4=a57_0x3904e5;logger[_0x334bd4(0xcc)](_0x22c355+':\x20'+_0x48dfa5);}static[a57_0x3904e5(0xc0)](_0x47330e){const _0x180da3=a57_0x3904e5,_0x35efd1={};_0x35efd1[_0x180da3(0x103)]=function(_0x2a8b5d,_0x490f19){return _0x2a8b5d!=_0x490f19;},_0x35efd1[_0x180da3(0xda)]=function(_0x47b579,_0x4090f7){return _0x47b579!=_0x4090f7;},_0x35efd1[_0x180da3(0xb5)]=function(_0x2f3470,_0x25a73f){return _0x2f3470>_0x25a73f;},_0x35efd1[_0x180da3(0xca)]=function(_0x27cf5e,_0x27d9a9){return _0x27cf5e!=_0x27d9a9;};const _0x241a2c=_0x35efd1,_0x1e3a0d=[];if(_0x241a2c[_0x180da3(0x103)](_0x47330e,null)&&_0x241a2c[_0x180da3(0xda)](_0x47330e[_0x180da3(0x100)],null)&&_0x241a2c[_0x180da3(0xb5)](_0x47330e[_0x180da3(0x100)][_0x180da3(0xdc)],0x0))for(const _0x2f671b of _0x47330e['errorCodesOccurredInCLI']){_0x241a2c['rMVJH'](_0x2f671b[_0x180da3(0x104)],null)&&_0x241a2c[_0x180da3(0xca)](_0x2f671b[_0x180da3(0x109)],null)&&(_0x1e3a0d[_0x180da3(0xf4)](_0x2f671b['errorCode']),this['logSituation'](_0x2f671b['errorCode'],_0x2f671b[_0x180da3(0x109)]));}return _0x1e3a0d;}static[a57_0x3904e5(0x10e)](){const _0xee28df=a57_0x3904e5;return this[_0xee28df(0xd1)];}static[a57_0x3904e5(0xc2)](_0x7c5506,_0x1722e4){const _0x52f3b9=a57_0x3904e5,_0xaaa7ad={};_0xaaa7ad[_0x52f3b9(0xc4)]=function(_0x28781a,_0x2e14aa){return _0x28781a===_0x2e14aa;},_0xaaa7ad[_0x52f3b9(0xbe)]='object';const _0x17de4c=_0xaaa7ad;if(_0x17de4c[_0x52f3b9(0xc4)](typeof _0x1722e4,_0x17de4c[_0x52f3b9(0xbe)]))try{logger[_0x52f3b9(0xf0)](_0x52f3b9(0xf2)+_0x7c5506+'\x20'+JSON[_0x52f3b9(0xb7)](_0x1722e4));}catch(_0x1427fd){logger[_0x52f3b9(0xf0)](_0x52f3b9(0xf2)+_0x7c5506+'\x20'+_0x1722e4);}else logger[_0x52f3b9(0xf0)](_0x52f3b9(0xf2)+_0x7c5506+'\x20'+_0x1722e4);}static async['reportProcessInterruptionSituation'](_0x2d4f57){const _0x34d255=a57_0x3904e5,_0x42cd1a={};_0x42cd1a[_0x34d255(0xfa)]=_0x34d255(0xdd),_0x42cd1a[_0x34d255(0x110)]=function(_0x2a3083,_0xdc84dc){return _0x2a3083===_0xdc84dc;},_0x42cd1a[_0x34d255(0xd9)]='Process\x20Interruption\x20details\x20not\x20found:',_0x42cd1a[_0x34d255(0x10b)]=_0x34d255(0xad);const _0xc24686=_0x42cd1a,_0x1b726b=await this[_0x34d255(0x105)](_0xc24686[_0x34d255(0xfa)]);if(!_0x1b726b||_0xc24686[_0x34d255(0x110)](Object[_0x34d255(0xaf)](_0x1b726b)['length'],0x0)){this[_0x34d255(0xc2)](_0xc24686[_0x34d255(0xd9)],_0x1b726b);return;}this[_0x34d255(0xfc)](_0x1b726b[_0x34d255(0x104)],_0x1b726b['errorMessage'][_0x34d255(0xbc)](_0xc24686['UqFbP'],_0x2d4f57));}static async[a57_0x3904e5(0xbf)](){const _0x4c6310=a57_0x3904e5,_0x2757eb={};_0x2757eb[_0x4c6310(0xf7)]='Session\x20Linking\x20Issue',_0x2757eb[_0x4c6310(0xb0)]=function(_0x44bef6,_0x523ccb){return _0x44bef6===_0x523ccb;},_0x2757eb[_0x4c6310(0xb8)]='Session\x20Linking\x20Issue\x20details\x20not\x20found';const _0xd0ee3a=_0x2757eb,_0xa18228=await this[_0x4c6310(0x105)](_0xd0ee3a['KgxUb']);if(!_0xa18228||_0xd0ee3a[_0x4c6310(0xb0)](Object[_0x4c6310(0xaf)](_0xa18228)[_0x4c6310(0xdc)],0x0)){this[_0x4c6310(0xc2)](_0xd0ee3a['ptYKt'],_0xa18228);return;}this[_0x4c6310(0xfc)](_0xa18228[_0x4c6310(0x104)],_0xa18228[_0x4c6310(0x109)]);}static async[a57_0x3904e5(0xc7)](){const _0x555994=a57_0x3904e5,_0x4830cd={};_0x4830cd[_0x555994(0xbd)]=_0x555994(0x113),_0x4830cd[_0x555994(0xff)]=function(_0x1af132,_0x35cabc){return _0x1af132===_0x35cabc;},_0x4830cd[_0x555994(0xab)]=_0x555994(0xb9);const _0x366d3e=_0x4830cd,_0x42f026=await this[_0x555994(0x105)](_0x366d3e[_0x555994(0xbd)]);if(!_0x42f026||_0x366d3e[_0x555994(0xff)](Object['keys'](_0x42f026)[_0x555994(0xdc)],0x0)){this[_0x555994(0xc2)](_0x366d3e[_0x555994(0xab)],_0x42f026);return;}this[_0x555994(0xfc)](_0x42f026['errorCode'],_0x42f026[_0x555994(0x109)]);}static async[a57_0x3904e5(0x10a)](){const _0x41ab2a=a57_0x3904e5,_0x290542={};_0x290542['lhdmo']='ssl\x20cert\x20issue',_0x290542[_0x41ab2a(0xfb)]=function(_0x445710,_0x56413f){return _0x445710===_0x56413f;},_0x290542[_0x41ab2a(0xd0)]=_0x41ab2a(0xb2);const _0x44acbc=_0x290542,_0x42ba01=await this['getErrorDetails'](_0x44acbc[_0x41ab2a(0xed)]);if(!_0x42ba01||_0x44acbc['ltRyx'](Object[_0x41ab2a(0xaf)](_0x42ba01)[_0x41ab2a(0xdc)],0x0)){this[_0x41ab2a(0xc2)](_0x44acbc[_0x41ab2a(0xd0)],_0x42ba01);return;}this[_0x41ab2a(0xfc)](_0x42ba01[_0x41ab2a(0x104)],_0x42ba01[_0x41ab2a(0x109)]);}static[a57_0x3904e5(0xfd)](){const _0x3edbfa=a57_0x3904e5,_0x277bd2={};_0x277bd2['TleEL']=_0x3edbfa(0xe9),_0x277bd2[_0x3edbfa(0xc9)]=function(_0x5e3b92,_0x33e2db){return _0x5e3b92===_0x33e2db;},_0x277bd2['kCWUe']=_0x3edbfa(0xdf);const _0x358397=_0x277bd2,_0x35a1b2=constants['CLIENT_TROUBLESHOOTING_HASH'][_0x358397[_0x3edbfa(0xac)]];if(!_0x35a1b2||_0x358397[_0x3edbfa(0xc9)](Object['keys'](_0x35a1b2)['length'],0x0)){this['logError'](_0x358397[_0x3edbfa(0xe8)],_0x35a1b2);return;}this[_0x3edbfa(0x10d)]['add'](_0x35a1b2[0x0]),this[_0x3edbfa(0xfc)](_0x35a1b2[0x0],_0x35a1b2[0x1]);}static async[a57_0x3904e5(0xc8)](_0xbf1aac){const _0x2ccb04=a57_0x3904e5,_0x49e103={};_0x49e103[_0x2ccb04(0xcd)]=_0x2ccb04(0x106),_0x49e103[_0x2ccb04(0xd7)]=function(_0x36248a,_0x341a65){return _0x36248a===_0x341a65;},_0x49e103[_0x2ccb04(0xe7)]=_0x2ccb04(0xba),_0x49e103[_0x2ccb04(0xb4)]=_0x2ccb04(0xf1);const _0x4c4297=_0x49e103,_0x17a889=await this[_0x2ccb04(0x105)](_0x4c4297['jKbit']);if(!_0x17a889||_0x4c4297[_0x2ccb04(0xd7)](Object['keys'](_0x17a889)[_0x2ccb04(0xdc)],0x0)){this['logError'](_0x4c4297[_0x2ccb04(0xe7)],_0x17a889);return;}const _0x396092=_0x17a889[_0x2ccb04(0x109)][_0x2ccb04(0xbc)](_0x4c4297[_0x2ccb04(0xb4)],_0xbf1aac);this[_0x2ccb04(0xfc)](_0x17a889[_0x2ccb04(0x104)],_0x396092);}static async[a57_0x3904e5(0xbb)](){const _0xc523e9=a57_0x3904e5,_0x172a4d={};_0x172a4d[_0xc523e9(0xf3)]=function(_0x2210e4,_0xefea45){return _0x2210e4>_0xefea45;},_0x172a4d[_0xc523e9(0xe2)]=_0xc523e9(0xd3),_0x172a4d[_0xc523e9(0x10c)]=_0xc523e9(0x101);const _0x2567e8=_0x172a4d,_0x221810=await this[_0xc523e9(0xe0)](),_0x183fc6=this[_0xc523e9(0xc0)](_0x221810),_0x4ffe6f=Array['isArray'](_0x221810[_0xc523e9(0xc3)])?_0x221810[_0xc523e9(0xc3)]:[],_0x55716b=_0x2567e8[_0xc523e9(0xf3)](this['errorCodesOccurredWhenCLINotRunning'][_0xc523e9(0xc6)],0x0)?Array[_0xc523e9(0xfe)](this[_0xc523e9(0x10d)]):[],_0x1261df=new Set([..._0x4ffe6f,..._0x183fc6,..._0x55716b]),_0x45e9e1=Array[_0xc523e9(0xfe)](_0x1261df);if(_0x2567e8[_0xc523e9(0xf3)](_0x45e9e1[_0xc523e9(0xdc)],0x0)){const _0x4eec73=_0x221810[_0xc523e9(0xe5)][_0xc523e9(0xbc)](_0x2567e8[_0xc523e9(0xe2)],_0x45e9e1[_0xc523e9(0xb1)](',\x20'))[_0xc523e9(0xbc)](_0x2567e8['hyvCn'],_0x221810[_0xc523e9(0x107)]);logger[_0xc523e9(0xcc)](_0x4eec73),this[_0xc523e9(0xd1)]=_0x45e9e1;}}}function a57_0x431e(){const _0x2cdabf=['1004829xJhMkU','browserstack\x20cloud\x20not\x20reachable','wkNej','TleEL','{SIGNAL}','1812499wDXNlH','keys','LNNLc','join','SSL\x20Certificate\x20Issue\x20details\x20not\x20found','getSuccess','WcaGd','cBigf','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','stringify','ptYKt','Connectivity\x20Issue\x20details\x20not\x20found','Conflicting\x20Env\x20Var\x20details\x20not\x20found','reportFinalDetectionState','replace','nmWty','tmYZo','reportSessionLinkingIssue','checkForErrorsOccuredInCLI','getErrorCodes','logError','errorCodes','PfAvY','12PljBPE','size','reportConnectivityIssue','reportConflictingEnvVarIssue','uKelP','TpeaM','1535240yOHmjb','warn','jKbit','winstonLogger','toString','Qervb','cachedErrorCodes','6GLssYa','{ERROR_CODES}','base64','getFinalErrorMessage','../../helpers/logger','eyOdg','885084LkuvKM','wHMrS','jRAXy','1965YgKpgJ','length','Process\x20Interruption','gmxCR','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','getAggregatedErrorCodes','GjTQX','ulYZI','9uqBwGy','ajpAz','finalErrorMessage','reportClientTroubleshootingError','Rccmu','kCWUe','.browserstack\x20folder\x20not\x20accessible','isRunning','parse','LZwQh','lhdmo','3456MysGVE','1oQvYNo','error','{ENV_VAR}','[ClientTroubleShootingService]\x20','ppXCy','push','getErrorCode','220tDBcNW','KgxUb','getInstance','260205tIGqzS','yarXy','ltRyx','logSituation','reportDotBrowserStackFolderNotAccessibleIssue','from','ruCuq','errorCodesOccurredInCLI','{CLIENT_TROUBLESHOOTING_DOCUMENTATION}','exports','rMVJH','errorCode','getErrorDetails','conflicting\x20env\x20var\x20detected','documentationLink','./constants','errorMessage','reportSSLCertIssue','UqFbP','hyvCn','errorCodesOccurredWhenCLINotRunning','getCachedErrorCodes','getDocumentationLink','lfBka','901786GZDpMS'];a57_0x431e=function(){return _0x2cdabf;};return a57_0x431e();}function a57_0x38f4(_0x3f03ed,_0xffc31){const _0x431eca=a57_0x431e();return a57_0x38f4=function(_0x38f441,_0x18ab00){_0x38f441=_0x38f441-0xab;let _0x4a72d6=_0x431eca[_0x38f441];return _0x4a72d6;},a57_0x38f4(_0x3f03ed,_0xffc31);}module[a57_0x3904e5(0x102)]=ClientTroubleShootingService;
|
|
1
|
+
function a57_0x118e(){const _0x10fa11=['parse','CJMjN','16mXyooo','SSL\x20Certificate\x20Issue\x20details\x20not\x20found','replace','logError','getErrorCode','isArray','xLCih','exports','reportClientTroubleshootingError','add','getSuccess','{ERROR_CODES}','DoHiq','ArSsG','emRLe','AOiQn','fbVqH','jGrbu','.browserstack\x20folder\x20not\x20accessible','2875155IjeNdx','VSnfg','VljQv','stringify','finalErrorMessage','63qrlHoa','error','errorCodesOccurredWhenCLINotRunning','1450aPPVqb','./constants','getErrorCodesOccurredInCli','winstonLogger','from','dZGGz','isRunning','ScdVg','getInstance','getDocumentationLink','conflicting\x20env\x20var\x20detected','getAggregatedErrorCodes','qRCBk','FxkVM','CLIENT_TROUBLESHOOTING_HASH','reportProcessInterruptionSituation','errorCodes','{CLIENT_TROUBLESHOOTING_DOCUMENTATION}','reportConnectivityIssue','WZtSE','ssl\x20cert\x20issue','logSituation','documentationLink','73998qErsRR','204067bVSJBM','27654CtJFjU','KfSAj','CzMlC','../v2/grpcClient','BjIpA','getFinalErrorMessage','8AnBubr','errorMessage','73998PPEFmg','XeQKr','eIyxC','Conflicting\x20Env\x20Var\x20details\x20not\x20found','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','vxvtI','HivgL','object','[ClientTroubleShootingService]\x20','getErrorDetails','errorCode','Process\x20Interruption\x20details\x20not\x20found:','toString','1728ENfgWA','DbCYu','push','getErrorCodes','checkForErrorsOccuredInCLI','TcPuX','getCachedErrorCodes','keys','uHUpf','../../helpers/logger','length','warn','reportSSLCertIssue','Connectivity\x20Issue\x20details\x20not\x20found','5374232FYZKxa','Error\x20in\x20getting\x20error\x20details\x20for\x20','wzpBH','errorCodesOccurredInCLI','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','join','cachedErrorCodes','972305HVDtVV','fTscd','YeHCG','JrbVj','getErrorMessage','hCswE'];a57_0x118e=function(){return _0x10fa11;};return a57_0x118e();}const a57_0x54458a=a57_0x2b01;(function(_0x2bff67,_0x3b6d46){const _0x39ba3a=a57_0x2b01,_0x148f24=_0x2bff67();while(!![]){try{const _0x3d9fb6=parseInt(_0x39ba3a(0x1a6))/0x1*(parseInt(_0x39ba3a(0x1ad))/0x2)+parseInt(_0x39ba3a(0x186))/0x3+-parseInt(_0x39ba3a(0x173))/0x4*(parseInt(_0x39ba3a(0x16b))/0x5)+parseInt(_0x39ba3a(0x1af))/0x6*(-parseInt(_0x39ba3a(0x18b))/0x7)+parseInt(_0x39ba3a(0x164))/0x8+parseInt(_0x39ba3a(0x1a5))/0x9*(-parseInt(_0x39ba3a(0x18e))/0xa)+parseInt(_0x39ba3a(0x1a7))/0xb*(parseInt(_0x39ba3a(0x1bc))/0xc);if(_0x3d9fb6===_0x3b6d46)break;else _0x148f24['push'](_0x148f24['shift']());}catch(_0x4546d6){_0x148f24['push'](_0x148f24['shift']());}}}(a57_0x118e,0xb1979));const logger=require(a57_0x54458a(0x1c5))[a57_0x54458a(0x191)],BrowserstackCLI=require('../v2/browserstackCLI'),GrpcClient=require(a57_0x54458a(0x1aa)),constants=require(a57_0x54458a(0x18f));class ClientTroubleShootingService{static [a57_0x54458a(0x16a)]=null;static ['errorCodesOccurredWhenCLINotRunning']=new Set();static async['getErrorDetails'](_0x5dfdd0){const _0x515506=a57_0x54458a,_0x590fe7={};_0x590fe7[_0x515506(0x172)]=function(_0x30db7b,_0x3323d0){return _0x30db7b!==_0x3323d0;};const _0xbfdc76=_0x590fe7;try{if(BrowserstackCLI[_0x515506(0x196)]()['isRunning']()){const _0x4359ef=await GrpcClient[_0x515506(0x196)]()[_0x515506(0x17b)](_0x5dfdd0);if(_0xbfdc76['CJMjN'](_0x4359ef,null)&&_0x4359ef[_0x515506(0x17d)]())return{'errorCode':_0x4359ef[_0x515506(0x177)](),'errorMessage':_0x4359ef[_0x515506(0x16f)]()};return{};}return{};}catch(_0x21782e){return this[_0x515506(0x176)](_0x515506(0x165)+_0x5dfdd0+':',_0x21782e),{};}}static async[a57_0x54458a(0x199)](){const _0x356484=a57_0x54458a,_0x1696b2={};_0x1696b2[_0x356484(0x181)]=function(_0x4b9b74,_0x506c85){return _0x4b9b74!==_0x506c85;},_0x1696b2[_0x356484(0x1bd)]='base64',_0x1696b2['zBYdv']=_0x356484(0x168);const _0x1723c2=_0x1696b2;try{if(BrowserstackCLI['getInstance']()[_0x356484(0x194)]()){const _0x4c249c=await GrpcClient[_0x356484(0x196)]()['getAggregatedClientTroubleshootingErrors']();if(_0x1723c2[_0x356484(0x181)](_0x4c249c,null)&&_0x4c249c[_0x356484(0x17d)]()){const _0x1f9df2=Buffer['from'](_0x4c249c[_0x356484(0x1bf)](),_0x1723c2[_0x356484(0x1bd)])[_0x356484(0x1bb)](),_0x4e5bf1=_0x1f9df2?JSON[_0x356484(0x171)](_0x1f9df2):[],_0x52511e=_0x4c249c[_0x356484(0x197)](),_0x3fb348=_0x4c249c[_0x356484(0x1ac)](),_0x12a7fb=Buffer[_0x356484(0x192)](_0x4c249c[_0x356484(0x190)](),_0x1723c2['DbCYu'])[_0x356484(0x1bb)](),_0x3d42f7=_0x12a7fb?JSON[_0x356484(0x171)](_0x12a7fb):[],_0x307075={};return _0x307075[_0x356484(0x19e)]=_0x4e5bf1,_0x307075[_0x356484(0x1a4)]=_0x52511e,_0x307075[_0x356484(0x18a)]=_0x3fb348,_0x307075[_0x356484(0x167)]=_0x3d42f7,_0x307075;}const _0x11e696={};return _0x11e696['errorCodes']=[],_0x11e696[_0x356484(0x1a4)]='',_0x11e696[_0x356484(0x18a)]='',_0x11e696[_0x356484(0x167)]=[],_0x11e696;}const _0x50a1ad={};return _0x50a1ad['errorCodes']=[],_0x50a1ad[_0x356484(0x1a4)]='',_0x50a1ad[_0x356484(0x18a)]='',_0x50a1ad[_0x356484(0x167)]=[],_0x50a1ad;}catch(_0x686f6e){this[_0x356484(0x176)](_0x1723c2['zBYdv'],_0x686f6e);const _0x2358c4={};return _0x2358c4[_0x356484(0x19e)]=[],_0x2358c4[_0x356484(0x1a4)]='',_0x2358c4[_0x356484(0x18a)]='',_0x2358c4[_0x356484(0x167)]=[],_0x2358c4;}}static[a57_0x54458a(0x1a3)](_0x24f46e,_0x122559){const _0x54ba04=a57_0x54458a;logger[_0x54ba04(0x1c7)](_0x24f46e+':\x20'+_0x122559);}static[a57_0x54458a(0x1c0)](_0x239a82){const _0x2d5a0a=a57_0x54458a,_0x482427={};_0x482427[_0x2d5a0a(0x19a)]=function(_0x289fd3,_0x2091a8){return _0x289fd3!=_0x2091a8;},_0x482427[_0x2d5a0a(0x183)]=function(_0x100cbd,_0x342a79){return _0x100cbd>_0x342a79;},_0x482427[_0x2d5a0a(0x1a9)]=function(_0x2fc342,_0x59d3ec){return _0x2fc342!=_0x59d3ec;};const _0x253766=_0x482427,_0x3b6b18=[];if(_0x253766[_0x2d5a0a(0x19a)](_0x239a82,null)&&_0x253766[_0x2d5a0a(0x19a)](_0x239a82[_0x2d5a0a(0x167)],null)&&_0x253766[_0x2d5a0a(0x183)](_0x239a82[_0x2d5a0a(0x167)][_0x2d5a0a(0x1c6)],0x0))for(const _0x594611 of _0x239a82['errorCodesOccurredInCLI']){_0x253766[_0x2d5a0a(0x1a9)](_0x594611[_0x2d5a0a(0x1b9)],null)&&_0x253766[_0x2d5a0a(0x19a)](_0x594611[_0x2d5a0a(0x1ae)],null)&&(_0x3b6b18[_0x2d5a0a(0x1be)](_0x594611[_0x2d5a0a(0x1b9)]),this[_0x2d5a0a(0x1a3)](_0x594611[_0x2d5a0a(0x1b9)],_0x594611[_0x2d5a0a(0x1ae)]));}return _0x3b6b18;}static[a57_0x54458a(0x1c2)](){const _0x548f24=a57_0x54458a;return this[_0x548f24(0x16a)];}static[a57_0x54458a(0x176)](_0x1f60c0,_0x5bc689){const _0x1c90a1=a57_0x54458a,_0x324b2d={};_0x324b2d[_0x1c90a1(0x1b1)]=function(_0x1cbd68,_0x53c2ac){return _0x1cbd68===_0x53c2ac;},_0x324b2d[_0x1c90a1(0x16d)]=_0x1c90a1(0x1b6);const _0x208f7d=_0x324b2d;if(_0x208f7d['eIyxC'](typeof _0x5bc689,_0x208f7d[_0x1c90a1(0x16d)]))try{logger[_0x1c90a1(0x18c)](_0x1c90a1(0x1b7)+_0x1f60c0+'\x20'+JSON[_0x1c90a1(0x189)](_0x5bc689));}catch(_0x587a24){logger[_0x1c90a1(0x18c)](_0x1c90a1(0x1b7)+_0x1f60c0+'\x20'+_0x5bc689);}else logger['error']('[ClientTroubleShootingService]\x20'+_0x1f60c0+'\x20'+_0x5bc689);}static async[a57_0x54458a(0x19d)](_0x92da5a){const _0x2bf7e3=a57_0x54458a,_0x11d6ee={};_0x11d6ee[_0x2bf7e3(0x166)]='Process\x20Interruption',_0x11d6ee[_0x2bf7e3(0x195)]=function(_0x2b764a,_0x312679){return _0x2b764a===_0x312679;},_0x11d6ee[_0x2bf7e3(0x1c1)]=_0x2bf7e3(0x1ba),_0x11d6ee[_0x2bf7e3(0x1c4)]='{SIGNAL}';const _0x3b4c3b=_0x11d6ee,_0x228d47=await this[_0x2bf7e3(0x1b8)](_0x3b4c3b[_0x2bf7e3(0x166)]);if(!_0x228d47||_0x3b4c3b[_0x2bf7e3(0x195)](Object[_0x2bf7e3(0x1c3)](_0x228d47)[_0x2bf7e3(0x1c6)],0x0)){this[_0x2bf7e3(0x176)](_0x3b4c3b[_0x2bf7e3(0x1c1)],_0x228d47);return;}this['logSituation'](_0x228d47[_0x2bf7e3(0x1b9)],_0x228d47[_0x2bf7e3(0x1ae)][_0x2bf7e3(0x175)](_0x3b4c3b[_0x2bf7e3(0x1c4)],_0x92da5a));}static async['reportSessionLinkingIssue'](){const _0x58b610=a57_0x54458a,_0x3d82a4={};_0x3d82a4[_0x58b610(0x170)]='Session\x20Linking\x20Issue',_0x3d82a4['XPCBl']=function(_0x257859,_0x3f7140){return _0x257859===_0x3f7140;},_0x3d82a4[_0x58b610(0x1b4)]='Session\x20Linking\x20Issue\x20details\x20not\x20found';const _0x1d7174=_0x3d82a4,_0x448fad=await this[_0x58b610(0x1b8)](_0x1d7174[_0x58b610(0x170)]);if(!_0x448fad||_0x1d7174['XPCBl'](Object['keys'](_0x448fad)[_0x58b610(0x1c6)],0x0)){this[_0x58b610(0x176)](_0x1d7174[_0x58b610(0x1b4)],_0x448fad);return;}this[_0x58b610(0x1a3)](_0x448fad[_0x58b610(0x1b9)],_0x448fad['errorMessage']);}static async[a57_0x54458a(0x1a0)](){const _0x19efdd=a57_0x54458a,_0x8c713f={};_0x8c713f[_0x19efdd(0x1b0)]='browserstack\x20cloud\x20not\x20reachable',_0x8c713f[_0x19efdd(0x19b)]=function(_0x1f853c,_0xdeb421){return _0x1f853c===_0xdeb421;},_0x8c713f['BjIpA']=_0x19efdd(0x1c9);const _0x38d07d=_0x8c713f,_0x5f154a=await this[_0x19efdd(0x1b8)](_0x38d07d['XeQKr']);if(!_0x5f154a||_0x38d07d['FxkVM'](Object[_0x19efdd(0x1c3)](_0x5f154a)['length'],0x0)){this[_0x19efdd(0x176)](_0x38d07d[_0x19efdd(0x1ab)],_0x5f154a);return;}this[_0x19efdd(0x1a3)](_0x5f154a['errorCode'],_0x5f154a[_0x19efdd(0x1ae)]);}static async[a57_0x54458a(0x1c8)](){const _0x497ec2=a57_0x54458a,_0x3f2e76={};_0x3f2e76[_0x497ec2(0x193)]=_0x497ec2(0x1a2),_0x3f2e76[_0x497ec2(0x1a8)]=function(_0x3e3c25,_0x1a842e){return _0x3e3c25===_0x1a842e;},_0x3f2e76[_0x497ec2(0x179)]=_0x497ec2(0x174);const _0x23862f=_0x3f2e76,_0x2b18be=await this['getErrorDetails'](_0x23862f['dZGGz']);if(!_0x2b18be||_0x23862f[_0x497ec2(0x1a8)](Object[_0x497ec2(0x1c3)](_0x2b18be)[_0x497ec2(0x1c6)],0x0)){this[_0x497ec2(0x176)](_0x23862f[_0x497ec2(0x179)],_0x2b18be);return;}this[_0x497ec2(0x1a3)](_0x2b18be[_0x497ec2(0x1b9)],_0x2b18be[_0x497ec2(0x1ae)]);}static['reportDotBrowserStackFolderNotAccessibleIssue'](){const _0x5c50f0=a57_0x54458a,_0x586953={};_0x586953[_0x5c50f0(0x184)]=_0x5c50f0(0x185),_0x586953[_0x5c50f0(0x16c)]=function(_0x5a6b32,_0x93ab11){return _0x5a6b32===_0x93ab11;},_0x586953['GHonv']=_0x5c50f0(0x1b3);const _0x511e1a=_0x586953,_0x52fdd1=constants[_0x5c50f0(0x19c)][_0x511e1a['jGrbu']];if(!_0x52fdd1||_0x511e1a[_0x5c50f0(0x16c)](Object[_0x5c50f0(0x1c3)](_0x52fdd1)[_0x5c50f0(0x1c6)],0x0)){this[_0x5c50f0(0x176)](_0x511e1a['GHonv'],_0x52fdd1);return;}this[_0x5c50f0(0x18d)][_0x5c50f0(0x17c)](_0x52fdd1[0x0]),this[_0x5c50f0(0x1a3)](_0x52fdd1[0x0],_0x52fdd1[0x1]);}static async['reportConflictingEnvVarIssue'](_0x24cabd){const _0x601783=a57_0x54458a,_0x10fb3d={};_0x10fb3d['DoHiq']=_0x601783(0x198),_0x10fb3d['VSnfg']=function(_0x248bc8,_0x51c4e7){return _0x248bc8===_0x51c4e7;},_0x10fb3d[_0x601783(0x1b5)]=_0x601783(0x1b2),_0x10fb3d['JrbVj']='{ENV_VAR}';const _0x15bfaf=_0x10fb3d,_0x57e964=await this[_0x601783(0x1b8)](_0x15bfaf[_0x601783(0x17f)]);if(!_0x57e964||_0x15bfaf[_0x601783(0x187)](Object[_0x601783(0x1c3)](_0x57e964)[_0x601783(0x1c6)],0x0)){this[_0x601783(0x176)](_0x15bfaf[_0x601783(0x1b5)],_0x57e964);return;}const _0x4a9361=_0x57e964[_0x601783(0x1ae)][_0x601783(0x175)](_0x15bfaf[_0x601783(0x16e)],_0x24cabd);this[_0x601783(0x1a3)](_0x57e964[_0x601783(0x1b9)],_0x4a9361);}static async['reportFinalDetectionState'](){const _0x436e24=a57_0x54458a,_0xb9c495={};_0xb9c495[_0x436e24(0x182)]=function(_0x3a2201,_0x371831){return _0x3a2201>_0x371831;},_0xb9c495[_0x436e24(0x1a1)]=function(_0x840808,_0x591d1c){return _0x840808>_0x591d1c;},_0xb9c495[_0x436e24(0x188)]=_0x436e24(0x17e),_0xb9c495['ArSsG']=_0x436e24(0x19f);const _0xb8709f=_0xb9c495,_0x386426=await this[_0x436e24(0x199)](),_0x4b899e=this[_0x436e24(0x1c0)](_0x386426),_0x4d1541=Array[_0x436e24(0x178)](_0x386426[_0x436e24(0x19e)])?_0x386426[_0x436e24(0x19e)]:[],_0x5350b0=_0xb8709f['AOiQn'](this['errorCodesOccurredWhenCLINotRunning']['size'],0x0)?Array['from'](this[_0x436e24(0x18d)]):[],_0x58de03=new Set([..._0x4d1541,..._0x4b899e,..._0x5350b0]),_0x2a2336=Array[_0x436e24(0x192)](_0x58de03);if(_0xb8709f[_0x436e24(0x1a1)](_0x2a2336['length'],0x0)){const _0x2b5f94=_0x386426['finalErrorMessage'][_0x436e24(0x175)](_0xb8709f['VljQv'],_0x2a2336[_0x436e24(0x169)](',\x20'))[_0x436e24(0x175)](_0xb8709f[_0x436e24(0x180)],_0x386426['documentationLink']);logger[_0x436e24(0x1c7)](_0x2b5f94),this[_0x436e24(0x16a)]=_0x2a2336;}}}function a57_0x2b01(_0x50cb0d,_0x572094){const _0x118e5e=a57_0x118e();return a57_0x2b01=function(_0x2b01da,_0x1b4cb0){_0x2b01da=_0x2b01da-0x164;let _0x300f2e=_0x118e5e[_0x2b01da];return _0x300f2e;},a57_0x2b01(_0x50cb0d,_0x572094);}module[a57_0x54458a(0x17a)]=ClientTroubleShootingService;
|