browserstack-node-sdk 1.55.6 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/generated/sdk-messages_pb.d.ts +64 -0
- package/generated/sdk-messages_pb.js +512 -0
- package/generated/sdk_grpc_pb.d.ts +5 -0
- package/generated/sdk_grpc_pb.js +33 -0
- package/package.json +3 -2
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -0
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a53_0x506eed=a53_0x57cd;function a53_0x57cd(_0x31a239,_0x49affe){const _0x1922f0=a53_0x1922();return a53_0x57cd=function(_0x57cd23,_0x1d0388){_0x57cd23=_0x57cd23-0x1ee;let _0x58b4b2=_0x1922f0[_0x57cd23];return _0x58b4b2;},a53_0x57cd(_0x31a239,_0x49affe);}(function(_0x1e43fc,_0x16b931){const _0x2dc74f=a53_0x57cd,_0x3700c8=_0x1e43fc();while(!![]){try{const _0x460804=-parseInt(_0x2dc74f(0x206))/0x1*(-parseInt(_0x2dc74f(0x21f))/0x2)+parseInt(_0x2dc74f(0x24a))/0x3*(-parseInt(_0x2dc74f(0x1f6))/0x4)+-parseInt(_0x2dc74f(0x1fd))/0x5*(parseInt(_0x2dc74f(0x219))/0x6)+parseInt(_0x2dc74f(0x21a))/0x7*(parseInt(_0x2dc74f(0x210))/0x8)+parseInt(_0x2dc74f(0x21d))/0x9+parseInt(_0x2dc74f(0x1ef))/0xa+-parseInt(_0x2dc74f(0x1f5))/0xb;if(_0x460804===_0x16b931)break;else _0x3700c8['push'](_0x3700c8['shift']());}catch(_0x901baa){_0x3700c8['push'](_0x3700c8['shift']());}}}(a53_0x1922,0x55cf4));const path=require(a53_0x506eed(0x1fb)),url=require(a53_0x506eed(0x23f)),util=require(a53_0x506eed(0x22e)),{nestedKeyValue,isFalse}=require(a53_0x506eed(0x213)),{debug,getPlatformDetails}=require('../../helpers/test-observability/utils'),logger=require(a53_0x506eed(0x21c))[a53_0x506eed(0x1f2)],constants=require('../utils/constants'),BrowserstackCLI=require(a53_0x506eed(0x20a)),AutomationFrameworkState=require(a53_0x506eed(0x22a)),HookState=require('../v2/state/hookState.js'),getBrowserFromWSEndpoint=_0x12b3cd=>{const _0x5c4048=a53_0x506eed,_0x788040={'LCTNQ':'chrome','WBXoC':function(_0x14bd93,_0x2ad0ff){return _0x14bd93(_0x2ad0ff);}};try{const _0x15b8e0=url[_0x5c4048(0x234)](_0x12b3cd),_0x44876d=new URLSearchParams(_0x15b8e0[_0x5c4048(0x203)]),_0x5ca5a5=Object[_0x5c4048(0x235)](_0x44876d[_0x5c4048(0x20b)]()),_0x1a102f=JSON[_0x5c4048(0x234)](_0x5ca5a5[_0x5c4048(0x1f3)]);if(_0x1a102f&&(_0x1a102f[_0x5c4048(0x238)]||_0x1a102f['browserName']))return _0x1a102f[_0x5c4048(0x238)]||_0x1a102f[_0x5c4048(0x22f)];return _0x788040[_0x5c4048(0x209)];}catch(_0x1e4dfc){_0x788040[_0x5c4048(0x244)](debug,_0x5c4048(0x218)+_0x1e4dfc[_0x5c4048(0x233)]());}},getCloudProviderFromWsEndpoint=_0x5dd609=>{const _0xf9e286=a53_0x506eed,_0x5cec7c={};_0x5cec7c[_0xf9e286(0x1f1)]=_0xf9e286(0x23b),_0x5cec7c['xCzLW']='unknown_grid';const _0x4a7ec1=_0x5cec7c;if(_0x5dd609[_0xf9e286(0x1f8)](constants[_0xf9e286(0x223)])||_0x5dd609[_0xf9e286(0x1f8)](constants[_0xf9e286(0x225)]))return _0x4a7ec1['VnzCP'];return _0x4a7ec1[_0xf9e286(0x208)];},a53_0x16017c={};a53_0x16017c[a53_0x506eed(0x1ee)]=undefined,a53_0x16017c[a53_0x506eed(0x22c)]=undefined,a53_0x16017c[a53_0x506eed(0x238)]=undefined,a53_0x16017c['browser_version']=undefined,a53_0x16017c[a53_0x506eed(0x212)]=undefined,a53_0x16017c[a53_0x506eed(0x21b)]=undefined,a53_0x16017c[a53_0x506eed(0x23c)]=undefined,a53_0x16017c[a53_0x506eed(0x1f4)]={};class PuppeteerSessionDetails{static [a53_0x506eed(0x246)]=a53_0x16017c;constructor(){const _0x17d482=a53_0x506eed,_0x355376={};_0x355376[_0x17d482(0x1fc)]='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0xeb2861=_0x355376;throw new Error(_0xeb2861[_0x17d482(0x1fc)]);}static [a53_0x506eed(0x214)]=null;static async[a53_0x506eed(0x226)](_0x27f35e,_0x3c7f04){const _0xc57c5e=a53_0x506eed,_0x5e6139={'jQHvF':_0xc57c5e(0x20e),'wMoXK':function(_0x28a391,_0x3cdc2d){return _0x28a391===_0x3cdc2d;},'PHAjP':_0xc57c5e(0x1fa),'IvMnx':'local_grid','UHxnn':function(_0x4eed09,_0x4748d9){return _0x4eed09(_0x4748d9);},'eofdv':_0xc57c5e(0x23b),'UWWgN':_0xc57c5e(0x23e),'IlnON':_0xc57c5e(0x201),'DWgLs':function(_0xf620cb,_0x472644){return _0xf620cb(_0x472644);},'LVWpz':function(_0x1f9c6c){return _0x1f9c6c();}};try{let _0x45e494=_0x5e6139[_0xc57c5e(0x202)],_0x12143d=null;_0x27f35e&&_0x5e6139[_0xc57c5e(0x227)](typeof _0x27f35e['version'],_0x5e6139['PHAjP'])&&(_0x12143d=await _0x27f35e[_0xc57c5e(0x237)]());let _0x39c912=null,_0x548ee3=null,_0x3e2841=null,_0x3b5246=_0x5e6139[_0xc57c5e(0x20f)];if(_0x3c7f04){_0x3b5246=_0x5e6139[_0xc57c5e(0x1ff)](getCloudProviderFromWsEndpoint,_0x3c7f04);if(_0x5e6139[_0xc57c5e(0x227)](_0x3b5246,_0x5e6139[_0xc57c5e(0x21e)]))_0x3e2841=constants['ATS_WSS_URL_REGEX']?constants[_0xc57c5e(0x220)][_0xc57c5e(0x240)](_0x3c7f04)?_0x5e6139[_0xc57c5e(0x211)]:_0x5e6139[_0xc57c5e(0x200)]:_0x5e6139[_0xc57c5e(0x200)],_0x45e494=_0x5e6139['DWgLs'](getBrowserFromWSEndpoint,_0x3c7f04)||_0x45e494,_0x39c912=this[_0xc57c5e(0x246)][_0xc57c5e(0x212)],_0x548ee3=this[_0xc57c5e(0x246)][_0xc57c5e(0x21b)];else{const _0x5b7658=await _0x5e6139['LVWpz'](getPlatformDetails);_0x39c912=_0x5b7658[_0xc57c5e(0x221)],_0x548ee3=_0x5b7658[_0xc57c5e(0x217)];}}else{const _0x348e5b=await _0x5e6139[_0xc57c5e(0x239)](getPlatformDetails);_0x39c912=_0x348e5b[_0xc57c5e(0x221)],_0x548ee3=_0x348e5b['platformVersion'];}const _0x30e833={};_0x30e833[_0xc57c5e(0x238)]=_0x45e494,_0x30e833[_0xc57c5e(0x207)]=_0x12143d,_0x30e833['capabilities']={},_0x30e833[_0xc57c5e(0x212)]=_0x39c912,_0x30e833[_0xc57c5e(0x21b)]=_0x548ee3,_0x30e833[_0xc57c5e(0x23c)]=_0x3e2841;const _0x39f3ad=_0x30e833,_0x44a983={};_0x44a983[_0xc57c5e(0x1ee)]=_0x3b5246,this['currentSessionDetails']=Object['assign']({},this[_0xc57c5e(0x246)],_0x44a983,_0x39f3ad);}catch(_0x2bbc9c){_0x5e6139['UHxnn'](debug,_0xc57c5e(0x228)+util[_0xc57c5e(0x248)](_0x2bbc9c)),this[_0xc57c5e(0x214)]=_0x2bbc9c[_0xc57c5e(0x233)]();}}static[a53_0x506eed(0x24c)](_0x1fd441){const _0x1cc61b=a53_0x506eed,_0x59bdda={'lqORz':function(_0x59b6f4,_0x5974ba){return _0x59b6f4===_0x5974ba;},'NweNj':_0x1cc61b(0x241),'xgKCX':function(_0x3a5c9d,_0x379703){return _0x3a5c9d(_0x379703);},'eYhDY':function(_0x31be71,_0x21bd02){return _0x31be71===_0x21bd02;},'vuZcS':function(_0x1cc7d5,_0x53c79e){return _0x1cc7d5(_0x53c79e);},'fbbLM':_0x1cc61b(0x24b),'YOSUV':function(_0x2b1e10,_0x5ab1d4){return _0x2b1e10(_0x5ab1d4);}},_0x550702=this;try{const _0x5431ad=_0x1fd441['_connection']||_0x1fd441['connection'];if(!_0x5431ad||_0x5431ad['_bstackPatched'])return;const _0x3e587a=_0x5431ad[_0x1cc61b(0x247)];_0x5431ad['onmessage']=function(_0x1ddde7){const _0x436425=_0x1cc61b;try{const _0x583595=_0x59bdda['lqORz'](typeof _0x1ddde7,_0x59bdda[_0x436425(0x236)])?JSON[_0x436425(0x234)](_0x1ddde7):_0x1ddde7,_0x3b5440=_0x583595?.[_0x436425(0x23a)]||_0x583595?.[_0x436425(0x230)]||_0x583595?.[_0x436425(0x22d)]?.['bsParams']||_0x583595?.[_0x436425(0x22d)]?.[_0x436425(0x23a)]||_0x583595?.['result']?.[_0x436425(0x230)]||_0x583595?.['result']?.[_0x436425(0x23a)];if(_0x3b5440){if(BrowserstackCLI[_0x436425(0x20c)]()[_0x436425(0x215)]()){const _0x4227fc={};_0x4227fc[_0x436425(0x216)]=_0x583595,BrowserstackCLI[_0x436425(0x20c)]()[_0x436425(0x222)]()[_0x436425(0x23d)](AutomationFrameworkState[_0x436425(0x232)],HookState[_0x436425(0x242)],_0x4227fc);}else{const _0x3b0af0=_0x3b5440[_0x436425(0x1fe)],_0x1622de=_0x3b5440['platformDetails'];_0x1622de&&(_0x59bdda['xgKCX'](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+JSON['stringify'](_0x1622de)),_0x550702[_0x436425(0x246)]['platform']=_0x1622de[_0x436425(0x221)],_0x550702['currentSessionDetails'][_0x436425(0x21b)]=_0x1622de[_0x436425(0x217)]),_0x3b0af0&&(_0x59bdda[_0x436425(0x205)](debug,_0x436425(0x231)+_0x3b0af0),_0x550702[_0x436425(0x246)][_0x436425(0x22c)]=_0x3b0af0);}_0x59bdda[_0x436425(0x249)](typeof _0x1ddde7,_0x59bdda['NweNj'])&&(delete _0x583595['bStackParams'],delete _0x583595[_0x436425(0x230)],_0x583595[_0x436425(0x22d)]&&(delete _0x583595['params'][_0x436425(0x230)],delete _0x583595[_0x436425(0x22d)]['bStackParams']),_0x583595['result']&&(delete _0x583595[_0x436425(0x22b)][_0x436425(0x230)],delete _0x583595[_0x436425(0x22b)]['bStackParams']));}}catch(_0x2ada77){_0x59bdda[_0x436425(0x204)](debug,_0x436425(0x1f9)+_0x2ada77['message']);}return _0x3e587a?.[_0x436425(0x224)](this,arguments);},_0x5431ad[_0x1cc61b(0x243)]=!![],logger[_0x1cc61b(0x245)](_0x59bdda['fbbLM']);}catch(_0x599b03){_0x59bdda[_0x1cc61b(0x1f0)](debug,_0x1cc61b(0x1f7)+util[_0x1cc61b(0x248)](_0x599b03)),_0x550702[_0x1cc61b(0x214)]=_0x599b03[_0x1cc61b(0x233)]();}}static[a53_0x506eed(0x20d)](){const _0x2a6c25=a53_0x506eed;return this[_0x2a6c25(0x246)];}}function a53_0x1922(){const _0x4d65ae=['automate','jQHvF','query','vuZcS','xgKCX','1wwHGFX','browser_version','xCzLW','LCTNQ','../v2/browserstackCLI','entries','getInstance','getDetails','chrome','IvMnx','8vJFQeU','UWWgN','platform','../../helpers/helper','sessionError','isRunning','message','platformVersion','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','1326jiLPWn','2207933JOyIUq','platform_version','../../helpers/logger','5228856YtuPPz','eofdv','1077598BmrVco','ATS_WSS_URL_REGEX','platformName','getAutomationFramework','BSTACK_URL','apply','BSTACK_ATS_URL','setupBrowserDetails','wMoXK','Error\x20in\x20setupBrowserDetails:\x20','exports','../v2/state/automationFrameworkState.js','result','bsSessionId','params','util','browserName','bsParams','Setting\x20session\x20id\x20received\x20from\x20BS\x20','PLAYWRIGHT_DISPATCH','toString','parse','fromEntries','NweNj','version','browser','LVWpz','bStackParams','browserstack','product','trackEvent','turboscale','url','test','string','POST','_bstackPatched','WBXoC','debug','currentSessionDetails','onmessage','format','eYhDY','4893axQNzI','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','patchConnection','cloudProvider','2947640TDqghP','YOSUV','VnzCP','winstonLogger','caps','capabilities','9215085aCQLlY','672seCfHT','Error\x20in\x20patchConnection:\x20','includes','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','function','path','DJWfn','6035iVAjwp','sessionId','UHxnn','IlnON'];a53_0x1922=function(){return _0x4d65ae;};return a53_0x1922();}module[a53_0x506eed(0x229)]=PuppeteerSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54_0x16e26d=a54_0x1588;(function(_0x3ab89f,_0x2f9400){const _0x2f488a=a54_0x1588,_0x59c999=_0x3ab89f();while(!![]){try{const _0x13ac9e=-parseInt(_0x2f488a(0x1ee))/0x1*(-parseInt(_0x2f488a(0x1d7))/0x2)+-parseInt(_0x2f488a(0x1fd))/0x3*(parseInt(_0x2f488a(0x1dd))/0x4)+parseInt(_0x2f488a(0x1e9))/0x5+-parseInt(_0x2f488a(0x1f5))/0x6*(parseInt(_0x2f488a(0x1f3))/0x7)+-parseInt(_0x2f488a(0x1d0))/0x8*(-parseInt(_0x2f488a(0x1ef))/0x9)+-parseInt(_0x2f488a(0x1fa))/0xa*(-parseInt(_0x2f488a(0x1dc))/0xb)+-parseInt(_0x2f488a(0x1d5))/0xc*(parseInt(_0x2f488a(0x1e7))/0xd);if(_0x13ac9e===_0x2f9400)break;else _0x59c999['push'](_0x59c999['shift']());}catch(_0x497535){_0x59c999['push'](_0x59c999['shift']());}}}(a54_0x5b5a,0x38114));const {isTrue,isBrowserstackInfra}=require(a54_0x16e26d(0x1de)),setKeepAlive=require(a54_0x16e26d(0x1f9)),util=require(a54_0x16e26d(0x1ec)),logger=require(a54_0x16e26d(0x1e0))['winstonLogger'],{shouldProcessEventForTesthub}=require(a54_0x16e26d(0x1da)),{addRequestSpy}=require('../../helpers/test-observability/utils'),a54_0x124ef3={};function a54_0x1588(_0x3042c6,_0x1feda4){const _0x5b5af2=a54_0x5b5a();return a54_0x1588=function(_0x158869,_0x1d124f){_0x158869=_0x158869-0x1cf;let _0x2e5386=_0x5b5af2[_0x158869];return _0x2e5386;},a54_0x1588(_0x3042c6,_0x1feda4);}function a54_0x5b5a(){const _0x3ed638=['36RfUEGP','BROWSERSTACK_PUPPETEER','env','initializePuppeteerPatching','193109QeTHkA','JEST','24denzaM','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','bootstrap','debug','../../helpers/setKeepAlive','1522460jQoxYt','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','PUPPETEER','1046220VDrMpA','__skipSessionName','skipSessionStatus','276984LZCsMU','puppeteer','true','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','397836qOOSOe','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','20882kaZHrs','getInstance','../utils/constants','../../helpers/testhub/utils','../v2/cliUtils','11dczQWH','4UmADsj','../../helpers/helper','format','../../helpers/logger','__workerDetails','skipSessionName','currentTest','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','../v2/browserstackCLI','catch','39fDtQGp','o11ySyncDone','712335WIlQxh','../utils/puppeteer-patcher','jestConfig','util','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','34VlBqEI'];a54_0x5b5a=function(){return _0x3ed638;};return a54_0x5b5a();}a54_0x124ef3['workerInfo']=undefined,a54_0x124ef3[a54_0x16e26d(0x1e3)]={},a54_0x124ef3[a54_0x16e26d(0x1e8)]=![],a54_0x124ef3['pwPage']=null,a54_0x124ef3['isPageFixture']=![],a54_0x124ef3[a54_0x16e26d(0x1e3)]['id']=undefined,a54_0x124ef3[a54_0x16e26d(0x1e3)]['testInfo']=undefined;const workerDetails=a54_0x124ef3;global[a54_0x16e26d(0x1e1)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global['jestConfig'])try{isBrowserstackInfra()?(global[a54_0x16e26d(0x1fe)]=isTrue(global['jestConfig']?.[a54_0x16e26d(0x1e2)]),global['__skipSessionStatus']=isTrue(global[a54_0x16e26d(0x1eb)]?.[a54_0x16e26d(0x1cf)])):(global['__skipSessionName']=!![],global['__skipSessionStatus']=!![]);const helper=require('../../helpers/helper'),puppeteerVersion=helper['getPackageVersion'](a54_0x16e26d(0x1d1))||helper['getPackageVersion']('puppeteer-core');if(puppeteerVersion)try{logger['debug'](a54_0x16e26d(0x1d6)),puppeteerPatcher=require(a54_0x16e26d(0x1ea)),puppeteerPatcher[a54_0x16e26d(0x1f2)](global['jestConfig']),logger[a54_0x16e26d(0x1f8)](a54_0x16e26d(0x1f6));}catch(a54_0x5dffc6){logger['debug'](a54_0x16e26d(0x1d4)+util['format'](a54_0x5dffc6));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a54_0x16e26d(0x1e5)),CLIUtils=require(a54_0x16e26d(0x1db)),{FRAMEWORKS}=require(a54_0x16e26d(0x1d9));BrowserstackCLI[a54_0x16e26d(0x1d8)]()['isCliEnabled']()&&(logger[a54_0x16e26d(0x1f8)](a54_0x16e26d(0x1d3)),process[a54_0x16e26d(0x1f1)][a54_0x16e26d(0x1f0)]=a54_0x16e26d(0x1d2),CLIUtils['setFrameworkDetail'](FRAMEWORKS[a54_0x16e26d(0x1f4)],FRAMEWORKS[a54_0x16e26d(0x1fc)]),BrowserstackCLI['getInstance']()[a54_0x16e26d(0x1f7)]()[a54_0x16e26d(0x1e6)](_0x4c07dc=>{const _0x4fa88d=a54_0x16e26d;logger[_0x4fa88d(0x1f8)]('[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20'+util['format'](_0x4c07dc));}));}catch(a54_0xb15bea){logger[a54_0x16e26d(0x1f8)](a54_0x16e26d(0x1ed)+util['format'](a54_0xb15bea));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a54_0x596aa2){logger['debug'](a54_0x16e26d(0x1fb)+util[a54_0x16e26d(0x1df)](a54_0x596aa2));}logger[a54_0x16e26d(0x1f8)](a54_0x16e26d(0x1e4));
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a55_0x595c(){const _0x3822e0=['codeceptjs','command','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','VERSION','stack','setBrowserStackAutomationDisable','INTEGRATIONS','describe','disableAutoCaptureLogs','qUVNE','alias','push','--mochaRequire','JEST','EBqTi','SDK_CLEANUP','Parsing\x20command\x20line\x20arguments','vGRNM','28178oqLalY','--no-opts','xfkCw','child_process','OvEHL','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','ojEsQ','load\x20[subcommand]','pw:*','version','pw:channel\x20auto-capture\x20seed\x20failed:\x20','tvdZS','IhvMU','config','iKQBZ','eVmPG','NEWMAN','./vanilla-js/command','cucumber-js','framework','PbLsY','4345800uLEmQC','--require','PLAYWRIGHT','38988gemyMh','./codeceptjs/command','lRTSS','existsSync','TDsdB','env','usage','JzNmY','5563685ambPLZ','includes','VtZXx','trim','../helpers/BrowserStackSetup','-pw:channel','getPwChannelLogPath','./mocha/command','hWfbH','../helpers/helper','option','DEBUG','OimXq','DliND','integrations','./newman/command','playwright','ats','mocha','boolean','25157mWKxzs','PDNfQ','URAzS','map','isUndefined','find','../../ats/src/index','-pw:*','sendLogs','filter','.browserstack','debug','help','strict','spawn','PUdja','./playwright/command','setTestObservabilityDisable','unlinkSync','showHelpOnFail','CVcpm','./nightwatch/command','split','pw:channel','CPyRE','parserConfiguration','.local-not-set.json','run','rAycm','HELP','HST','jypTQ','some','pxLUu','vanilla','join','demandCommand','format','usage:\x20$0\x20<command>\x20[args]','../helpers/performance/constants','CODECEPTJS','exitProcess','CBZbi','12672472cKxkRF','./load/index','./newman/helper','vvgzd','slice','89Uijpmx','DEBUG_FILE','eFkIp','wrap','message','--package','UaxJq','end','exitCode','EVENTS','GaTkl','assign','rmUMx','./jest/command','jest','PYTAt','9zBBfwC','Running\x20SDK\x20with\x20args\x20','mocha/lib/cli/commands.js','../helpers/test-observability/constants','CjSpV','CUCUMBER','newman','plWyv','77IFUmMc','handler','4PvziGF','244506apdbom','findAndReplace','INFO','winstonLogger','IXXAR','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','fireFunnelTestEvent','MOCHA','start','dot-notation','../helpers/utilities','./utils/constants','mocha/lib/cli/cli.js','./cucumber-js/command','Runs\x20the\x20binary\x20with\x20load\x20command','argv','getConfigPath','KLzSr','MCETL','hYMbN','riwWw','SDK_SETUP','RmfiG','nightwatch','error','FgIer','node','14872480jURmFL','ALzYy'];a55_0x595c=function(){return _0x3822e0;};return a55_0x595c();}const a55_0x1f34a4=a55_0x1292;(function(_0x15c10b,_0x44dcac){const _0xbe5b5d=a55_0x1292,_0x3dbcb6=_0x15c10b();while(!![]){try{const _0x40cd4e=-parseInt(_0xbe5b5d(0x1a6))/0x1*(parseInt(_0xbe5b5d(0x1f0))/0x2)+-parseInt(_0xbe5b5d(0x205))/0x3+-parseInt(_0xbe5b5d(0x1c0))/0x4*(parseInt(_0xbe5b5d(0x210))/0x5)+-parseInt(_0xbe5b5d(0x1c1))/0x6*(-parseInt(_0xbe5b5d(0x1be))/0x7)+-parseInt(_0xbe5b5d(0x1a1))/0x8*(parseInt(_0xbe5b5d(0x1b6))/0x9)+-parseInt(_0xbe5b5d(0x1dc))/0xa+-parseInt(_0xbe5b5d(0x224))/0xb*(-parseInt(_0xbe5b5d(0x208))/0xc);if(_0x40cd4e===_0x44dcac)break;else _0x3dbcb6['push'](_0x3dbcb6['shift']());}catch(_0x113798){_0x3dbcb6['push'](_0x3dbcb6['shift']());}}}(a55_0x595c,0xf239f));const fs=require('fs'),path=require('path'),util=require('util'),spawn=require(a55_0x1f34a4(0x1f3))[a55_0x1f34a4(0x184)],{requireModule}=require(a55_0x1f34a4(0x219)),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a55_0x1f34a4(0x19d))[a55_0x1f34a4(0x1af)],helper=require(a55_0x1f34a4(0x219)),utilities=require(a55_0x1f34a4(0x1cb)),{default:BrowserStackSetup}=require(a55_0x1f34a4(0x214)),{FRAMEWORKS}=require(a55_0x1f34a4(0x1b9)),runIntegrations=require('./integrations/command'),yargs=require('yargs'),Constants=require(a55_0x1f34a4(0x1cc)),BrowserstackCLI=require('./v2/browserstackCLI'),{isNewman}=require(a55_0x1f34a4(0x1a3)),logger=require('../helpers/logger')[a55_0x1f34a4(0x1c4)],origArgs=Object[a55_0x1f34a4(0x1b1)]([],process[a55_0x1f34a4(0x1d0)]),captureError=async(_0x548da7,_0x3df318,_0x281b10,_0xff5dd2=null,_0x4779ff=![])=>{const _0x14e595=a55_0x1f34a4,_0x145b6f={'CVcpm':function(_0x5cd01e,_0x16da5e,_0x108adb,_0x79426a){return _0x5cd01e(_0x16da5e,_0x108adb,_0x79426a);},'KLzSr':'SDKTestSuccessful'};try{logger['info'](_0x14e595(0x1b7)+origArgs[_0x14e595(0x199)]('\x20')),await _0x145b6f[_0x14e595(0x18a)](_0x548da7,_0x3df318,_0xff5dd2,_0x281b10);}catch(_0x38d795){process[_0x14e595(0x1ae)]=0x1,logger[_0x14e595(0x1d9)](util['format'](_0x38d795));const _0x2b504b={'globalException':util[_0x14e595(0x19b)]('%j',_0x38d795)};PerformanceTester[_0x14e595(0x1ad)](PerformanceEvents[_0x14e595(0x1d6)],![],util[_0x14e595(0x19b)](_0x38d795));if(helper[_0x14e595(0x228)](global['config'])&&helper[_0x14e595(0x228)](global[_0x14e595(0x203)]))return;try{utilities[_0x14e595(0x1c7)](_0x145b6f[_0x14e595(0x1d2)],_0x2b504b,global['config'],global[_0x14e595(0x203)]);}catch(_0x272735){logger[_0x14e595(0x181)](_0x14e595(0x1f5)+_0x272735[_0x14e595(0x1e2)]);}try{await helper[_0x14e595(0x17e)](global[_0x14e595(0x1fd)]);}catch(_0x34e485){logger[_0x14e595(0x181)]('Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20'+_0x34e485[_0x14e595(0x1e2)]);}PerformanceTester['end'](PerformanceEvents[_0x14e595(0x1d6)],![],util[_0x14e595(0x19b)](_0x38d795));}finally{!_0x4779ff&&await BrowserstackCLI['getInstance']()['stop'](),PerformanceTester['start'](PerformanceEvents[_0x14e595(0x1ed)]);}};try{const browserstackFolderPath=path[a55_0x1f34a4(0x199)](helper['homedir'](),a55_0x1f34a4(0x180));if(fs[a55_0x1f34a4(0x20b)](browserstackFolderPath)){const filePath=path[a55_0x1f34a4(0x199)](browserstackFolderPath,a55_0x1f34a4(0x190));fs[a55_0x1f34a4(0x20b)](filePath)&&fs[a55_0x1f34a4(0x188)](filePath);}}catch(a55_0x4f93bd){logger[a55_0x1f34a4(0x181)](a55_0x1f34a4(0x1c6)+a55_0x4f93bd[a55_0x1f34a4(0x1aa)]);}process[a55_0x1f34a4(0x1d0)][a55_0x1f34a4(0x211)](a55_0x1f34a4(0x222))&&(!process['argv'][a55_0x1f34a4(0x211)]('--opts')&&process[a55_0x1f34a4(0x1d0)]['push'](a55_0x1f34a4(0x1f1)),!process[a55_0x1f34a4(0x1d0)][a55_0x1f34a4(0x229)](_0x52d31e=>_0x52d31e['includes']('--config'))&&process[a55_0x1f34a4(0x1d0)][a55_0x1f34a4(0x1e9)]('--no-config'),!process['argv'][a55_0x1f34a4(0x211)](a55_0x1f34a4(0x1ab))&&process[a55_0x1f34a4(0x1d0)]['push']('--no-package'),helper[a55_0x1f34a4(0x1c2)](process[a55_0x1f34a4(0x1d0)],a55_0x1f34a4(0x206),a55_0x1f34a4(0x1ea)));PerformanceTester[a55_0x1f34a4(0x1c9)](PerformanceEvents[a55_0x1f34a4(0x1d6)]);function a55_0x1292(_0x16a0b7,_0x324146){const _0x595ccb=a55_0x595c();return a55_0x1292=function(_0x12924c,_0x52a8b9){_0x12924c=_0x12924c-0x17d;let _0x26e854=_0x595ccb[_0x12924c];return _0x26e854;},a55_0x1292(_0x16a0b7,_0x324146);}const a55_0x2aff8c={};a55_0x2aff8c[a55_0x1f34a4(0x1ca)]=![];const argv=yargs[a55_0x1f34a4(0x18f)](a55_0x2aff8c)[a55_0x1f34a4(0x20e)](a55_0x1f34a4(0x19c))[a55_0x1f34a4(0x1e8)]('v',a55_0x1f34a4(0x1f9))[a55_0x1f34a4(0x1e5)]('v')['alias']('h',a55_0x1f34a4(0x182))[a55_0x1f34a4(0x182)]('help')[a55_0x1f34a4(0x189)](!![],Constants[a55_0x1f34a4(0x1e1)][a55_0x1f34a4(0x193)])[a55_0x1f34a4(0x1df)](a55_0x1f34a4(0x1b4),Constants[a55_0x1f34a4(0x1eb)][a55_0x1f34a4(0x1c3)],function(_0x5436a5){const _0x2efcdb=a55_0x1f34a4,_0x131c2f={'iUjBa':_0x2efcdb(0x1b4),'eFkIp':function(_0x1c358f,_0x394ada,_0x51b05c,_0x5efee5,_0x1bd4d5,_0x1eb2f8){return _0x1c358f(_0x394ada,_0x51b05c,_0x5efee5,_0x1bd4d5,_0x1eb2f8);},'RmfiG':function(_0x48ab60,_0x40b0ad){return _0x48ab60(_0x40b0ad);},'vGRNM':_0x2efcdb(0x1b3)},_0x105770=process[_0x2efcdb(0x1d0)][_0x2efcdb(0x1a5)](0x2);helper[_0x2efcdb(0x187)](),helper[_0x2efcdb(0x1e3)](),_0x5436a5[_0x2efcdb(0x183)](![]);const _0x48d820=new BrowserStackSetup(_0x5436a5[_0x2efcdb(0x1d0)],_0x131c2f['iUjBa']);return _0x131c2f[_0x2efcdb(0x1a8)](captureError,_0x131c2f[_0x2efcdb(0x1d7)](require,_0x131c2f[_0x2efcdb(0x1ef)]),_0x5436a5[_0x2efcdb(0x1d0)],_0x48d820,_0x105770,!![]);})[a55_0x1f34a4(0x1df)](a55_0x1f34a4(0x222),Constants[a55_0x1f34a4(0x1c8)][a55_0x1f34a4(0x1c3)],_0x6c49e0=>{const _0x34f1dd=a55_0x1f34a4,_0x3321e2={'tvdZS':function(_0xe04c6f,_0x5b777a,_0x459a49,_0x2971f2){return _0xe04c6f(_0x5b777a,_0x459a49,_0x2971f2);},'IhvMU':function(_0x30b9a6,_0xbb9bf4){return _0x30b9a6(_0xbb9bf4);},'TDsdB':_0x34f1dd(0x217),'qUVNE':_0x34f1dd(0x222),'CjSpV':_0x34f1dd(0x1ee),'rAycm':function(_0x20fe62,_0x3d37e3,_0xceac74){return _0x20fe62(_0x3d37e3,_0xceac74);},'pxLUu':'mocha/lib/cli/run.js','iKQBZ':function(_0x290eff,_0x15e178,_0x4c97bb){return _0x290eff(_0x15e178,_0x4c97bb);},'CPyRE':_0x34f1dd(0x1b8),'OimXq':_0x34f1dd(0x1cd),'ALzYy':function(_0x2d7a91){return _0x2d7a91();}};process[_0x34f1dd(0x1d0)]=process[_0x34f1dd(0x1d0)][_0x34f1dd(0x1a5)](0x1),helper[_0x34f1dd(0x187)](),helper['setBrowserStackAutomationDisable']();const _0x1aa525=new BrowserStackSetup(_0x6c49e0['argv'],_0x3321e2[_0x34f1dd(0x1e7)]);logger[_0x34f1dd(0x181)](_0x3321e2[_0x34f1dd(0x1ba)]);const _0x14e597=_0x3321e2[_0x34f1dd(0x192)](requireModule,_0x3321e2[_0x34f1dd(0x197)],_0x3321e2['qUVNE']),_0x894093=_0x3321e2[_0x34f1dd(0x1fe)](requireModule,_0x3321e2[_0x34f1dd(0x18e)],_0x3321e2[_0x34f1dd(0x1e7)]);delete _0x14e597['handler'],_0x14e597[_0x34f1dd(0x1bf)]=function(_0x58d3a9){const _0x46d527=_0x34f1dd;return _0x3321e2[_0x46d527(0x1fb)](captureError,_0x3321e2[_0x46d527(0x1fc)](require,_0x3321e2[_0x46d527(0x20c)]),_0x58d3a9,_0x1aa525);},_0x894093[_0x34f1dd(0x191)]=_0x14e597;const {main:_0x4681eb}=_0x3321e2[_0x34f1dd(0x192)](requireModule,_0x3321e2[_0x34f1dd(0x21c)],_0x3321e2[_0x34f1dd(0x1e7)]);_0x3321e2[_0x34f1dd(0x1dd)](_0x4681eb);})['command']('cucumber-js',Constants[a55_0x1f34a4(0x1bb)]['INFO'],function(_0x1d6c40){const _0x2232b2=a55_0x1f34a4,_0x267193={'vvgzd':_0x2232b2(0x202),'URAzS':function(_0x114efe,_0x33b3b6,_0x489f31,_0x41aa11,_0x15be34,_0x52c5dd){return _0x114efe(_0x33b3b6,_0x489f31,_0x41aa11,_0x15be34,_0x52c5dd);},'CBZbi':function(_0x571987,_0x12a70d){return _0x571987(_0x12a70d);},'PYTAt':_0x2232b2(0x1ce)},_0xd53f76=process[_0x2232b2(0x1d0)]['slice'](0x2),_0x3b0fcf=new BrowserStackSetup(_0x1d6c40[_0x2232b2(0x1d0)],_0x267193[_0x2232b2(0x1a4)]);return _0x267193[_0x2232b2(0x226)](captureError,_0x267193[_0x2232b2(0x1a0)](require,_0x267193[_0x2232b2(0x1b5)]),_0x1d6c40['argv'],_0x3b0fcf,_0xd53f76,!![]);})['command'](a55_0x1f34a4(0x1db),Constants['VANILLA'][a55_0x1f34a4(0x1c3)],function(_0x504c04){const _0x2412d6=a55_0x1f34a4,_0x51f91c={'plWyv':_0x2412d6(0x198),'PDNfQ':function(_0x3e16f0,_0x445707){return _0x3e16f0(_0x445707);},'jypTQ':_0x2412d6(0x1bc),'xfkCw':function(_0x5d751f,_0x15098c,_0x701324,_0xefc476,_0x2a181c){return _0x5d751f(_0x15098c,_0x701324,_0xefc476,_0x2a181c);},'UaxJq':_0x2412d6(0x21f),'eVmPG':function(_0x928baa,_0x54b762,_0x229b7e,_0x179211,_0x2146ef){return _0x928baa(_0x54b762,_0x229b7e,_0x179211,_0x2146ef);},'GaTkl':function(_0x55a0e5,_0x551110){return _0x55a0e5(_0x551110);},'DliND':_0x2412d6(0x201)},_0x3d052b=process[_0x2412d6(0x1d0)][_0x2412d6(0x1a5)](0x2),_0x56274d=new BrowserStackSetup(_0x504c04[_0x2412d6(0x1d0)],_0x51f91c[_0x2412d6(0x1bd)]),_0x1ac98d=_0x56274d?_0x56274d[_0x2412d6(0x1fd)]:null;if(_0x51f91c[_0x2412d6(0x225)](isNewman,_0x1ac98d))return _0x56274d['framework']=_0x51f91c[_0x2412d6(0x195)],global['framework']=_0x51f91c['jypTQ'],_0x51f91c[_0x2412d6(0x1f2)](captureError,_0x51f91c['PDNfQ'](require,_0x51f91c[_0x2412d6(0x1ac)]),_0x504c04[_0x2412d6(0x1d0)],_0x56274d,_0x3d052b);return _0x51f91c[_0x2412d6(0x1ff)](captureError,_0x51f91c[_0x2412d6(0x1b0)](require,_0x51f91c[_0x2412d6(0x21d)]),_0x504c04[_0x2412d6(0x1d0)],_0x56274d,_0x3d052b);})[a55_0x1f34a4(0x1df)](a55_0x1f34a4(0x1d8),Constants['NIGHTWATCH']['INFO'],function(_0x3d2e4f){const _0x1af907=a55_0x1f34a4,_0x1ef7fa={'riwWw':function(_0x21ebee,_0x4febfd,_0xe87859,_0x5c2ba5,_0x120875){return _0x21ebee(_0x4febfd,_0xe87859,_0x5c2ba5,_0x120875);},'FgIer':function(_0x3dd069,_0x58712b){return _0x3dd069(_0x58712b);},'EKQPg':_0x1af907(0x18b)},_0x229c10=process[_0x1af907(0x1d0)][_0x1af907(0x1a5)](0x2),_0x3b43c8=new BrowserStackSetup(_0x3d2e4f[_0x1af907(0x1d0)]);return _0x1ef7fa[_0x1af907(0x1d5)](captureError,_0x1ef7fa[_0x1af907(0x1da)](require,_0x1ef7fa['EKQPg']),_0x3d2e4f['argv'],_0x3b43c8,_0x229c10);})['command'](a55_0x1f34a4(0x1de),Constants[a55_0x1f34a4(0x19e)]['INFO'],function(_0x554a6f){const _0x4f048c=a55_0x1f34a4,_0x5611dc={'VtZXx':'codeceptjs','IOIox':function(_0x5f1e3f,_0x30cfea,_0x21afc2,_0x58d1c0,_0x5c0125){return _0x5f1e3f(_0x30cfea,_0x21afc2,_0x58d1c0,_0x5c0125);},'sllOp':function(_0x1b824f,_0x1b6e46){return _0x1b824f(_0x1b6e46);},'hWfbH':_0x4f048c(0x209)},_0x5bfb8b=process['argv'][_0x4f048c(0x1a5)](0x2),_0x305310=new BrowserStackSetup(_0x554a6f[_0x4f048c(0x1d0)],_0x5611dc[_0x4f048c(0x212)]);return _0x5611dc['IOIox'](captureError,_0x5611dc['sllOp'](require,_0x5611dc[_0x4f048c(0x218)]),_0x554a6f[_0x4f048c(0x1d0)],_0x305310,_0x5bfb8b);})[a55_0x1f34a4(0x1df)]('ats',Constants[a55_0x1f34a4(0x194)]['INFO'],function(_0x3d579c){const _0xc702ce=a55_0x1f34a4,_0x43a355={'KelKy':function(_0x197ec7,_0x4aa599,_0x366890){return _0x197ec7(_0x4aa599,_0x366890);},'PbLsY':function(_0x245254,_0x62b253){return _0x245254(_0x62b253);},'PUdja':_0xc702ce(0x22a)},_0x68894a=process[_0xc702ce(0x1d0)][_0xc702ce(0x1a5)](0x2);return _0x43a355['KelKy'](captureError,_0x43a355[_0xc702ce(0x204)](require,_0x43a355[_0xc702ce(0x185)]),_0x3d579c);})[a55_0x1f34a4(0x1df)](a55_0x1f34a4(0x21e),Constants[a55_0x1f34a4(0x1e4)][a55_0x1f34a4(0x1c3)],function(_0xc977cd){const _0x459ba2={'fUscM':function(_0x4d0cdb,_0x55d908){return _0x4d0cdb(_0x55d908);}};return _0x459ba2['fUscM'](runIntegrations,_0xc977cd);})[a55_0x1f34a4(0x1df)](a55_0x1f34a4(0x220),Constants[a55_0x1f34a4(0x207)][a55_0x1f34a4(0x1c3)],function(_0x56b827){const _0x4f09c5=a55_0x1f34a4,_0x2c791d={'uZDJT':_0x4f09c5(0x18d),'IXXAR':function(_0x2dc19f,_0xa380e4){return _0x2dc19f&&_0xa380e4;},'JzNmY':function(_0x4d9e79,_0x46371a,_0x31e0f6,_0xfa5b4f,_0x834063,_0x4e7a77){return _0x4d9e79(_0x46371a,_0x31e0f6,_0xfa5b4f,_0x834063,_0x4e7a77);},'lRTSS':function(_0xdf9c80,_0x23475d){return _0xdf9c80(_0x23475d);},'OvEHL':_0x4f09c5(0x186)},_0x389970=process[_0x4f09c5(0x1d0)]['slice'](0x2);helper[_0x4f09c5(0x1d1)](process['argv'])&&(process['env']['BROWSERSTACK_CONFIG_FILE_PATH']=helper[_0x4f09c5(0x1d1)](process['argv']));helper[_0x4f09c5(0x187)](),helper[_0x4f09c5(0x1e3)]();const _0x3213d5=new BrowserStackSetup(_0x56b827[_0x4f09c5(0x1d0)],FRAMEWORKS[_0x4f09c5(0x207)]);try{if(!_0x3213d5[_0x4f09c5(0x1fd)]||!_0x3213d5[_0x4f09c5(0x1fd)][_0x4f09c5(0x1e6)]){const _0x3ee64a=_0x2c791d['uZDJT'],_0x2178c8=process[_0x4f09c5(0x20d)][_0x4f09c5(0x21b)]||'',_0x2a8547=_0x2178c8[_0x4f09c5(0x18c)](',')[_0x4f09c5(0x227)](_0x4f4561=>_0x4f4561[_0x4f09c5(0x213)]())[_0x4f09c5(0x17f)](Boolean),_0x260d01=_0x2a8547['some'](_0x5269e6=>_0x5269e6===_0x4f09c5(0x215)||_0x5269e6===_0x4f09c5(0x17d)||_0x5269e6==='-*'),_0x4d835b=_0x2a8547[_0x4f09c5(0x196)](_0x15b538=>_0x15b538===_0x3ee64a||_0x15b538===_0x4f09c5(0x1f8)||_0x15b538==='*');if(_0x2c791d[_0x4f09c5(0x1c5)](!_0x260d01,!_0x4d835b)){const _0x5155cd=helper[_0x4f09c5(0x216)]();_0x5155cd&&(process[_0x4f09c5(0x20d)][_0x4f09c5(0x21b)]=_0x2178c8?_0x2178c8+','+_0x3ee64a:_0x3ee64a,!process[_0x4f09c5(0x20d)][_0x4f09c5(0x1a7)]&&(process['env'][_0x4f09c5(0x1a7)]=_0x5155cd));}}}catch(_0x1d762b){logger[_0x4f09c5(0x181)](_0x4f09c5(0x1fa)+util[_0x4f09c5(0x19b)](_0x1d762b));}return _0x2c791d[_0x4f09c5(0x20f)](captureError,_0x2c791d[_0x4f09c5(0x20a)](require,_0x2c791d[_0x4f09c5(0x1f4)]),_0x56b827[_0x4f09c5(0x1d0)],_0x3213d5,_0x389970,!![]);})['command'](a55_0x1f34a4(0x1f7),a55_0x1f34a4(0x1cf),function(_0x2a1e93){const _0x317641=a55_0x1f34a4,_0x51a64d={};_0x51a64d[_0x317641(0x1f6)]=_0x317641(0x182),_0x51a64d['MCETL']=_0x317641(0x223),_0x51a64d[_0x317641(0x1b2)]='Show\x20help';const _0x12deb3=_0x51a64d;return _0x2a1e93[_0x317641(0x182)](![])[_0x317641(0x21a)](_0x12deb3[_0x317641(0x1f6)],{'alias':'h','type':_0x12deb3[_0x317641(0x1d3)],'describe':_0x12deb3[_0x317641(0x1b2)]})['strict'](![])[_0x317641(0x19f)](![]);},function(_0x335b06){const _0x5c66d8=a55_0x1f34a4,_0x3e1cea={'hYMbN':function(_0x13f789,_0x2cffbd,_0x4dac94){return _0x13f789(_0x2cffbd,_0x4dac94);},'nANmc':function(_0x568af8,_0x3101e8){return _0x568af8(_0x3101e8);},'BOVmS':_0x5c66d8(0x1a2)},_0x268ab1={};return _0x268ab1['argv']=_0x335b06,_0x3e1cea[_0x5c66d8(0x1d4)](captureError,_0x3e1cea['nANmc'](require,_0x3e1cea['BOVmS']),_0x268ab1);})['command']('newman',Constants[a55_0x1f34a4(0x200)][a55_0x1f34a4(0x1c3)],function(_0x4cbeef){const _0x41920b=a55_0x1f34a4,_0x36cf6b={'lJoHR':_0x41920b(0x1bc),'PEKuH':function(_0x4055c2,_0x4699e7,_0x1bde05,_0x537c6c,_0x4d093f){return _0x4055c2(_0x4699e7,_0x1bde05,_0x537c6c,_0x4d093f);},'uOVQt':function(_0x22dfff,_0x15fe0d){return _0x22dfff(_0x15fe0d);},'EBqTi':'./newman/command'},_0x2aa5e2=process[_0x41920b(0x1d0)][_0x41920b(0x1a5)](0x2);helper[_0x41920b(0x187)](),helper[_0x41920b(0x1e3)](),_0x4cbeef['strict'](![]);const _0x43f29f=new BrowserStackSetup(_0x4cbeef[_0x41920b(0x1d0)],_0x36cf6b['lJoHR']);return _0x36cf6b['PEKuH'](captureError,_0x36cf6b['uOVQt'](require,_0x36cf6b[_0x41920b(0x1ec)]),_0x4cbeef[_0x41920b(0x1d0)],_0x43f29f,_0x2aa5e2);})[a55_0x1f34a4(0x19a)](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a55_0x1f34a4(0x1a9)](null)['argv'];!helper[a55_0x1f34a4(0x228)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a55_0x1f34a4(0x221)&&console[a55_0x1f34a4(0x1d9)](a55_0x1f34a4(0x1e0));
|
|
2
|
+
'use strict';const a55_0x4eb42f=a55_0x226c;(function(_0x30d045,_0xe471d3){const _0x219d09=a55_0x226c,_0x29363b=_0x30d045();while(!![]){try{const _0x29ba46=parseInt(_0x219d09(0xcf))/0x1+-parseInt(_0x219d09(0x131))/0x2*(-parseInt(_0x219d09(0xc9))/0x3)+-parseInt(_0x219d09(0x120))/0x4+-parseInt(_0x219d09(0xf5))/0x5*(parseInt(_0x219d09(0x13f))/0x6)+parseInt(_0x219d09(0xdb))/0x7+parseInt(_0x219d09(0xe7))/0x8+parseInt(_0x219d09(0x119))/0x9*(-parseInt(_0x219d09(0x129))/0xa);if(_0x29ba46===_0xe471d3)break;else _0x29363b['push'](_0x29363b['shift']());}catch(_0x1aae02){_0x29363b['push'](_0x29363b['shift']());}}}(a55_0x4f3f,0xc4005));function a55_0x226c(_0x33687e,_0x287071){const _0x4f3ff0=a55_0x4f3f();return a55_0x226c=function(_0x226cd0,_0x433982){_0x226cd0=_0x226cd0-0xa6;let _0x927e1b=_0x4f3ff0[_0x226cd0];return _0x927e1b;},a55_0x226c(_0x33687e,_0x287071);}const fs=require('fs'),path=require('path'),util=require(a55_0x4eb42f(0xde)),spawn=require('child_process')[a55_0x4eb42f(0xb5)],{requireModule}=require('../helpers/helper'),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a55_0x4eb42f(0x143))[a55_0x4eb42f(0xd0)],helper=require(a55_0x4eb42f(0x116)),utilities=require(a55_0x4eb42f(0xe1)),{default:BrowserStackSetup}=require(a55_0x4eb42f(0xe0)),{FRAMEWORKS}=require(a55_0x4eb42f(0xbf)),runIntegrations=require(a55_0x4eb42f(0x104)),yargs=require('yargs'),Constants=require(a55_0x4eb42f(0xfa)),BrowserstackCLI=require(a55_0x4eb42f(0x127)),{isNewman}=require(a55_0x4eb42f(0xfb)),logger=require(a55_0x4eb42f(0xd1))[a55_0x4eb42f(0x115)],origArgs=Object[a55_0x4eb42f(0xc5)]([],process[a55_0x4eb42f(0x11f)]),captureError=async(_0x2a2738,_0x409d80,_0x54d22e,_0x10f6fc=null,_0x4d6747=![])=>{const _0x3ef4de=a55_0x4eb42f,_0x40e288={'UXzVp':function(_0x41ce8e,_0x40c3d8,_0x29a019,_0x159c2e){return _0x41ce8e(_0x40c3d8,_0x29a019,_0x159c2e);},'VYcBd':'SDKTestSuccessful'};try{logger[_0x3ef4de(0xf3)](_0x3ef4de(0x107)+origArgs[_0x3ef4de(0xcc)]('\x20')),await _0x40e288[_0x3ef4de(0x121)](_0x2a2738,_0x409d80,_0x10f6fc,_0x54d22e);}catch(_0x305d56){process[_0x3ef4de(0xa6)]=0x1,logger[_0x3ef4de(0xea)](util['format'](_0x305d56));const _0x409c11={'globalException':util[_0x3ef4de(0x12d)]('%j',_0x305d56)};PerformanceTester[_0x3ef4de(0xef)](PerformanceEvents[_0x3ef4de(0x135)],![],util['format'](_0x305d56));if(helper[_0x3ef4de(0x148)](global[_0x3ef4de(0x12e)])&&helper[_0x3ef4de(0x148)](global['framework']))return;try{utilities[_0x3ef4de(0x139)](_0x40e288[_0x3ef4de(0x130)],_0x409c11,global[_0x3ef4de(0x12e)],global['framework']);}catch(_0x36b1b1){logger[_0x3ef4de(0xe9)](_0x3ef4de(0x122)+_0x36b1b1['stack']);}try{await helper[_0x3ef4de(0x10d)](global[_0x3ef4de(0x12e)]);}catch(_0x57f71c){logger[_0x3ef4de(0xe9)](_0x3ef4de(0xbb)+_0x57f71c['stack']);}PerformanceTester[_0x3ef4de(0xef)](PerformanceEvents[_0x3ef4de(0x135)],![],util[_0x3ef4de(0x12d)](_0x305d56));}finally{!_0x4d6747&&await BrowserstackCLI[_0x3ef4de(0x133)]()['stop'](),PerformanceTester[_0x3ef4de(0xb8)](PerformanceEvents[_0x3ef4de(0xee)]);}};try{const browserstackFolderPath=path[a55_0x4eb42f(0xcc)](helper[a55_0x4eb42f(0x114)](),'.browserstack');if(fs[a55_0x4eb42f(0xbd)](browserstackFolderPath)){const filePath=path[a55_0x4eb42f(0xcc)](browserstackFolderPath,'.local-not-set.json');fs[a55_0x4eb42f(0xbd)](filePath)&&fs[a55_0x4eb42f(0xfe)](filePath);}}catch(a55_0x33925e){logger['debug'](a55_0x4eb42f(0xc7)+a55_0x33925e[a55_0x4eb42f(0xfc)]);}function a55_0x4f3f(){const _0x2653e1=['AMmjc','iOskY','RWuNP','INFO','load\x20[subcommand]','sendLogs','demandCommand','ats','findAndReplace','dyjTB','LKJsw','JbSHz','homedir','winstonLogger','../helpers/helper','NEWMAN','BerfK','1024722GZNuDS','option','CUCUMBER','node','DigYs','YcHyp','argv','2372404lIKWZo','UXzVp','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','cucumber-js','Parsing\x20command\x20line\x20arguments','./cucumber-js/command','filter','./v2/browserstackCLI','VANILLA','20XDZUDT','nightwatch','../../ats/src/index','setTestObservabilityDisable','format','config','ICTkt','VYcBd','683662JAAFFI','auxzJ','getInstance','strict','SDK_SETUP','pw:channel\x20auto-capture\x20seed\x20failed:\x20','showHelpOnFail','setBrowserStackAutomationDisable','fireFunnelTestEvent','jest','mocha/lib/cli/commands.js','newman','split','help','272334qTgSYG','mRPqT','some','pw:channel','../helpers/performance/constants','cRpFF','getConfigPath','Undnm','--no-opts','isUndefined','exitCode','--opts','SHHNy','dElyB','Opzdj','gJllQ','./load/index','./mocha/command','./newman/command','handler','lyEve','usage','mocha/lib/cli/run.js','usage:\x20$0\x20<command>\x20[args]','JNhos','spawn','--no-package','IMxFS','start','PLAYWRIGHT','GwtBe','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','slice','existsSync','umNdJ','../helpers/test-observability/constants','RcTrA','dzVWP','cFPGB','disableAutoCaptureLogs','push','assign','playwright','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','describe','6bwLdox','gXPGB','PhKNG','join','eBIBb','DEBUG_FILE','644201Fyjxke','EVENTS','../helpers/logger','DEUHc','map','wrap','getPwChannelLogPath','QACuh','Show\x20help','Runs\x20the\x20binary\x20with\x20load\x20command','mocha/lib/cli/cli.js','icaJc','1941492ACeNkF','HST','NIGHTWATCH','util','env','../helpers/BrowserStackSetup','../helpers/utilities','command','NWAcw','DEBUG','--require','-pw:*','8498928soNcpz','codeceptjs','debug','error','FMEea','mocha','boolean','SDK_CLEANUP','end','CODECEPTJS','includes','wQvZY','info','--no-config','115bAECCx','./jest/command','JEST','framework','dot-notation','./utils/constants','./newman/helper','message','pkXqV','unlinkSync','niApa','JpEcE','exitProcess','trim','iwyDD','./integrations/command','integrations','BROWSERSTACK_CONFIG_FILE_PATH','Running\x20SDK\x20with\x20args\x20'];a55_0x4f3f=function(){return _0x2653e1;};return a55_0x4f3f();}process[a55_0x4eb42f(0x11f)][a55_0x4eb42f(0xf1)](a55_0x4eb42f(0xec))&&(!process[a55_0x4eb42f(0x11f)][a55_0x4eb42f(0xf1)](a55_0x4eb42f(0xa7))&&process[a55_0x4eb42f(0x11f)][a55_0x4eb42f(0xc4)](a55_0x4eb42f(0x147)),!process['argv']['find'](_0x19f9d4=>_0x19f9d4[a55_0x4eb42f(0xf1)]('--config'))&&process[a55_0x4eb42f(0x11f)]['push'](a55_0x4eb42f(0xf4)),!process[a55_0x4eb42f(0x11f)]['includes']('--package')&&process[a55_0x4eb42f(0x11f)]['push'](a55_0x4eb42f(0xb6)),helper[a55_0x4eb42f(0x110)](process[a55_0x4eb42f(0x11f)],a55_0x4eb42f(0xe5),'--mochaRequire'));PerformanceTester[a55_0x4eb42f(0xb8)](PerformanceEvents[a55_0x4eb42f(0x135)]);const a55_0x49a271={};a55_0x49a271[a55_0x4eb42f(0xf9)]=![];const argv=yargs['parserConfiguration'](a55_0x49a271)[a55_0x4eb42f(0xb1)](a55_0x4eb42f(0xb3))['alias']('v','version')[a55_0x4eb42f(0xc8)]('v')['alias']('h',a55_0x4eb42f(0x13e))[a55_0x4eb42f(0x13e)]('help')[a55_0x4eb42f(0x137)](!![],Constants['VERSION']['HELP'])['command'](a55_0x4eb42f(0x13a),Constants[a55_0x4eb42f(0xf7)]['INFO'],function(_0x5e7749){const _0x57c5ef=a55_0x4eb42f,_0x5177b8={'JNhos':_0x57c5ef(0x13a),'JbSHz':function(_0x45c2d5,_0x12693a,_0x3bebdc,_0x9b5fef,_0x24231c,_0x2d81a2){return _0x45c2d5(_0x12693a,_0x3bebdc,_0x9b5fef,_0x24231c,_0x2d81a2);},'PTgkX':function(_0x249b83,_0x19b831){return _0x249b83(_0x19b831);},'wXITS':_0x57c5ef(0xf6)},_0x19e8d0=process['argv'][_0x57c5ef(0xbc)](0x2);helper['setTestObservabilityDisable'](),helper[_0x57c5ef(0x138)](),_0x5e7749['strict'](![]);const _0x42d7af=new BrowserStackSetup(_0x5e7749[_0x57c5ef(0x11f)],_0x5177b8[_0x57c5ef(0xb4)]);return _0x5177b8[_0x57c5ef(0x113)](captureError,_0x5177b8['PTgkX'](require,_0x5177b8['wXITS']),_0x5e7749[_0x57c5ef(0x11f)],_0x42d7af,_0x19e8d0,!![]);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0xec),Constants['MOCHA'][a55_0x4eb42f(0x10b)],_0x1fe898=>{const _0x865cda=a55_0x4eb42f,_0x2fb9e1={'lzVow':function(_0x5d8965,_0x2cb40e,_0x2bb759,_0x440b6e){return _0x5d8965(_0x2cb40e,_0x2bb759,_0x440b6e);},'lyEve':function(_0x14920a,_0x2af60f){return _0x14920a(_0x2af60f);},'AMhrD':_0x865cda(0xad),'Opzdj':_0x865cda(0xec),'AMmjc':_0x865cda(0x124),'DigYs':function(_0x557502,_0x4b3ec5,_0x250a9){return _0x557502(_0x4b3ec5,_0x250a9);},'umNdJ':_0x865cda(0xb2),'niApa':function(_0xaac6e3,_0x55657e,_0x571d48){return _0xaac6e3(_0x55657e,_0x571d48);},'cFPGB':_0x865cda(0x13b),'PhKNG':_0x865cda(0xd9),'RcTrA':function(_0x18e555){return _0x18e555();}};process[_0x865cda(0x11f)]=process['argv'][_0x865cda(0xbc)](0x1),helper[_0x865cda(0x12c)](),helper['setBrowserStackAutomationDisable']();const _0x3b7baa=new BrowserStackSetup(_0x1fe898[_0x865cda(0x11f)],_0x2fb9e1[_0x865cda(0xaa)]);logger[_0x865cda(0xe9)](_0x2fb9e1[_0x865cda(0x108)]);const _0xb9b333=_0x2fb9e1[_0x865cda(0x11d)](requireModule,_0x2fb9e1[_0x865cda(0xbe)],_0x2fb9e1['Opzdj']),_0xd50f9=_0x2fb9e1[_0x865cda(0xff)](requireModule,_0x2fb9e1[_0x865cda(0xc2)],_0x2fb9e1['Opzdj']);delete _0xb9b333[_0x865cda(0xaf)],_0xb9b333['handler']=function(_0x245aec){const _0x226fd1=_0x865cda;return _0x2fb9e1['lzVow'](captureError,_0x2fb9e1[_0x226fd1(0xb0)](require,_0x2fb9e1['AMhrD']),_0x245aec,_0x3b7baa);},_0xd50f9['run']=_0xb9b333;const {main:_0x1527d0}=_0x2fb9e1[_0x865cda(0x11d)](requireModule,_0x2fb9e1[_0x865cda(0xcb)],_0x2fb9e1[_0x865cda(0xaa)]);_0x2fb9e1[_0x865cda(0xc0)](_0x1527d0);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x123),Constants[a55_0x4eb42f(0x11b)]['INFO'],function(_0x53b0a7){const _0x2a1dad=a55_0x4eb42f,_0x74830f={'RWuNP':'cucumber-js','eBIBb':function(_0x53006c,_0xe4577a,_0x302b44,_0x4ad43b,_0x357755,_0x5b0fed){return _0x53006c(_0xe4577a,_0x302b44,_0x4ad43b,_0x357755,_0x5b0fed);},'dyjTB':function(_0x51483f,_0x40ddcb){return _0x51483f(_0x40ddcb);},'BerfK':_0x2a1dad(0x125)},_0x1794b8=process[_0x2a1dad(0x11f)]['slice'](0x2),_0x1998bb=new BrowserStackSetup(_0x53b0a7[_0x2a1dad(0x11f)],_0x74830f[_0x2a1dad(0x10a)]);return _0x74830f[_0x2a1dad(0xcd)](captureError,_0x74830f[_0x2a1dad(0x111)](require,_0x74830f[_0x2a1dad(0x118)]),_0x53b0a7[_0x2a1dad(0x11f)],_0x1998bb,_0x1794b8,!![]);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x11c),Constants[a55_0x4eb42f(0x128)][a55_0x4eb42f(0x10b)],function(_0x5bbbba){const _0x48f22f=a55_0x4eb42f,_0x4fd1c3={'icaJc':'vanilla','IMxFS':function(_0x4ee765,_0x4434dc){return _0x4ee765(_0x4434dc);},'hKIZd':_0x48f22f(0x13c),'DEUHc':function(_0x45130e,_0x5f237d,_0x3bba8d,_0x388e80,_0x2d8afe){return _0x45130e(_0x5f237d,_0x3bba8d,_0x388e80,_0x2d8afe);},'pkXqV':_0x48f22f(0xae),'qRsTm':function(_0x3253bc,_0x4a0274,_0xe6f5fc,_0x363891,_0x435677){return _0x3253bc(_0x4a0274,_0xe6f5fc,_0x363891,_0x435677);},'LKJsw':function(_0x143acf,_0x55c46a){return _0x143acf(_0x55c46a);},'iOskY':'./vanilla-js/command'},_0x837376=process[_0x48f22f(0x11f)][_0x48f22f(0xbc)](0x2),_0x57c364=new BrowserStackSetup(_0x5bbbba[_0x48f22f(0x11f)],_0x4fd1c3[_0x48f22f(0xda)]),_0x1447f2=_0x57c364?_0x57c364['config']:null;if(_0x4fd1c3[_0x48f22f(0xb7)](isNewman,_0x1447f2))return _0x57c364[_0x48f22f(0xf8)]=_0x4fd1c3['hKIZd'],global[_0x48f22f(0xf8)]=_0x4fd1c3['hKIZd'],_0x4fd1c3[_0x48f22f(0xd2)](captureError,_0x4fd1c3['IMxFS'](require,_0x4fd1c3[_0x48f22f(0xfd)]),_0x5bbbba['argv'],_0x57c364,_0x837376);return _0x4fd1c3['qRsTm'](captureError,_0x4fd1c3[_0x48f22f(0x112)](require,_0x4fd1c3[_0x48f22f(0x109)]),_0x5bbbba['argv'],_0x57c364,_0x837376);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x12a),Constants[a55_0x4eb42f(0xdd)][a55_0x4eb42f(0x10b)],function(_0x29c965){const _0x19585d=a55_0x4eb42f,_0x4cb8d1={'YcHyp':function(_0x235d87,_0x47c10a,_0x4b87ea,_0x8bba5b,_0x157eca){return _0x235d87(_0x47c10a,_0x4b87ea,_0x8bba5b,_0x157eca);},'FMEea':function(_0x313396,_0x17fa01){return _0x313396(_0x17fa01);},'thGoh':'./nightwatch/command'},_0x4ef00d=process[_0x19585d(0x11f)][_0x19585d(0xbc)](0x2),_0x367a7d=new BrowserStackSetup(_0x29c965['argv']);return _0x4cb8d1[_0x19585d(0x11e)](captureError,_0x4cb8d1[_0x19585d(0xeb)](require,_0x4cb8d1['thGoh']),_0x29c965[_0x19585d(0x11f)],_0x367a7d,_0x4ef00d);})['command'](a55_0x4eb42f(0xe8),Constants[a55_0x4eb42f(0xf0)][a55_0x4eb42f(0x10b)],function(_0x37a47f){const _0x456073=a55_0x4eb42f,_0x2b3055={'XmTfj':'codeceptjs','ICTkt':function(_0x1a4e14,_0x2a85bd,_0x198c4d,_0x2c7664,_0x1250b8){return _0x1a4e14(_0x2a85bd,_0x198c4d,_0x2c7664,_0x1250b8);},'JpEcE':function(_0x3c1047,_0x1a98df){return _0x3c1047(_0x1a98df);},'Undnm':'./codeceptjs/command'},_0x4d5088=process[_0x456073(0x11f)]['slice'](0x2),_0x163f67=new BrowserStackSetup(_0x37a47f[_0x456073(0x11f)],_0x2b3055['XmTfj']);return _0x2b3055[_0x456073(0x12f)](captureError,_0x2b3055[_0x456073(0x100)](require,_0x2b3055[_0x456073(0x146)]),_0x37a47f['argv'],_0x163f67,_0x4d5088);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x10f),Constants[a55_0x4eb42f(0xdc)]['INFO'],function(_0x4a9cf1){const _0x37b379=a55_0x4eb42f,_0x26e440={'mRPqT':function(_0x4e9296,_0xe680a3,_0x5a7190){return _0x4e9296(_0xe680a3,_0x5a7190);},'iwyDD':function(_0x5849c4,_0x589a9f){return _0x5849c4(_0x589a9f);},'rLQEV':_0x37b379(0x12b)},_0x51b192=process[_0x37b379(0x11f)][_0x37b379(0xbc)](0x2);return _0x26e440[_0x37b379(0x140)](captureError,_0x26e440[_0x37b379(0x103)](require,_0x26e440['rLQEV']),_0x4a9cf1);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x105),Constants['INTEGRATIONS'][a55_0x4eb42f(0x10b)],function(_0x9fadf7){const _0x4cc5d0=a55_0x4eb42f,_0x55a5d5={'cRpFF':function(_0x348c55,_0x2d1977){return _0x348c55(_0x2d1977);}};return _0x55a5d5[_0x4cc5d0(0x144)](runIntegrations,_0x9fadf7);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0xc6),Constants[a55_0x4eb42f(0xb9)][a55_0x4eb42f(0x10b)],function(_0x4a94b9){const _0x447584=a55_0x4eb42f,_0x1b8eaa={'GLhmW':_0x447584(0x142),'auxzJ':function(_0x46b224,_0x201b54){return _0x46b224&&_0x201b54;},'gJllQ':function(_0x4f18d6,_0x10f63a,_0x399188,_0x1c93e7,_0x183356,_0xefa621){return _0x4f18d6(_0x10f63a,_0x399188,_0x1c93e7,_0x183356,_0xefa621);},'QACuh':function(_0x4621ef,_0x1c1f43){return _0x4621ef(_0x1c1f43);},'nPzYu':'./playwright/command'},_0x165601=process['argv'][_0x447584(0xbc)](0x2);helper[_0x447584(0x145)](process['argv'])&&(process[_0x447584(0xdf)][_0x447584(0x106)]=helper[_0x447584(0x145)](process[_0x447584(0x11f)]));helper['setTestObservabilityDisable'](),helper[_0x447584(0x138)]();const _0x242af2=new BrowserStackSetup(_0x4a94b9[_0x447584(0x11f)],FRAMEWORKS[_0x447584(0xb9)]);try{if(!_0x242af2[_0x447584(0x12e)]||!_0x242af2[_0x447584(0x12e)][_0x447584(0xc3)]){const _0x9e06c=_0x1b8eaa['GLhmW'],_0xe6c013=process[_0x447584(0xdf)]['DEBUG']||'',_0x454ee1=_0xe6c013[_0x447584(0x13d)](',')[_0x447584(0xd3)](_0x1a8bc0=>_0x1a8bc0[_0x447584(0x102)]())[_0x447584(0x126)](Boolean),_0x23fb34=_0x454ee1[_0x447584(0x141)](_0x229d8a=>_0x229d8a==='-pw:channel'||_0x229d8a===_0x447584(0xe6)||_0x229d8a==='-*'),_0x475734=_0x454ee1[_0x447584(0x141)](_0x1ed734=>_0x1ed734===_0x9e06c||_0x1ed734==='pw:*'||_0x1ed734==='*');if(_0x1b8eaa[_0x447584(0x132)](!_0x23fb34,!_0x475734)){const _0x3d6efb=helper[_0x447584(0xd5)]();_0x3d6efb&&(process[_0x447584(0xdf)][_0x447584(0xe4)]=_0xe6c013?_0xe6c013+','+_0x9e06c:_0x9e06c,!process[_0x447584(0xdf)][_0x447584(0xce)]&&(process[_0x447584(0xdf)]['DEBUG_FILE']=_0x3d6efb));}}}catch(_0x3cb1bb){logger[_0x447584(0xe9)](_0x447584(0x136)+util['format'](_0x3cb1bb));}return _0x1b8eaa[_0x447584(0xab)](captureError,_0x1b8eaa[_0x447584(0xd6)](require,_0x1b8eaa['nPzYu']),_0x4a94b9[_0x447584(0x11f)],_0x242af2,_0x165601,!![]);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x10c),a55_0x4eb42f(0xd8),function(_0x498a1e){const _0x3b837b=a55_0x4eb42f,_0x465da={};_0x465da[_0x3b837b(0xca)]=_0x3b837b(0x13e),_0x465da['SHHNy']=_0x3b837b(0xed),_0x465da['dzVWP']=_0x3b837b(0xd7);const _0x39536a=_0x465da;return _0x498a1e[_0x3b837b(0x13e)](![])[_0x3b837b(0x11a)](_0x39536a[_0x3b837b(0xca)],{'alias':'h','type':_0x39536a[_0x3b837b(0xa8)],'describe':_0x39536a[_0x3b837b(0xc1)]})['strict'](![])[_0x3b837b(0x101)](![]);},function(_0x162709){const _0x41edf4=a55_0x4eb42f,_0x28c894={'GwtBe':function(_0x2271d8,_0x757da7,_0x21d9dc){return _0x2271d8(_0x757da7,_0x21d9dc);},'wQvZY':function(_0x3d270b,_0x40a001){return _0x3d270b(_0x40a001);},'EaagZ':_0x41edf4(0xac)},_0x5f5c20={};return _0x5f5c20[_0x41edf4(0x11f)]=_0x162709,_0x28c894[_0x41edf4(0xba)](captureError,_0x28c894[_0x41edf4(0xf2)](require,_0x28c894['EaagZ']),_0x5f5c20);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x13c),Constants[a55_0x4eb42f(0x117)][a55_0x4eb42f(0x10b)],function(_0x388ace){const _0xc8e4db=a55_0x4eb42f,_0x410e33={'NWAcw':_0xc8e4db(0x13c),'LvZHm':function(_0xd970b,_0x38a25d,_0x4749eb,_0x347de6,_0x40d714){return _0xd970b(_0x38a25d,_0x4749eb,_0x347de6,_0x40d714);},'ASaIo':function(_0x34b56b,_0x4bda28){return _0x34b56b(_0x4bda28);},'dElyB':_0xc8e4db(0xae)},_0x2273cc=process[_0xc8e4db(0x11f)][_0xc8e4db(0xbc)](0x2);helper[_0xc8e4db(0x12c)](),helper['setBrowserStackAutomationDisable'](),_0x388ace[_0xc8e4db(0x134)](![]);const _0x53bd24=new BrowserStackSetup(_0x388ace[_0xc8e4db(0x11f)],_0x410e33[_0xc8e4db(0xe3)]);return _0x410e33['LvZHm'](captureError,_0x410e33['ASaIo'](require,_0x410e33[_0xc8e4db(0xa9)]),_0x388ace[_0xc8e4db(0x11f)],_0x53bd24,_0x2273cc);})[a55_0x4eb42f(0x10e)](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a55_0x4eb42f(0xd4)](null)['argv'];!helper[a55_0x4eb42f(0x148)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!=='ats'&&console[a55_0x4eb42f(0xea)]('Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.');
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const a56_0x4b260b=a56_0x1925;(function(_0x381955,_0x4cbeb0){const _0x40b38b=a56_0x1925,_0x1783ed=_0x381955();while(!![]){try{const _0x500af2=parseInt(_0x40b38b(0x117))/0x1*(parseInt(_0x40b38b(0x11f))/0x2)+parseInt(_0x40b38b(0xed))/0x3+parseInt(_0x40b38b(0x106))/0x4+-parseInt(_0x40b38b(0x133))/0x5+parseInt(_0x40b38b(0x12e))/0x6+-parseInt(_0x40b38b(0x115))/0x7+-parseInt(_0x40b38b(0xff))/0x8;if(_0x500af2===_0x4cbeb0)break;else _0x1783ed['push'](_0x1783ed['shift']());}catch(_0xe6209c){_0x1783ed['push'](_0x1783ed['shift']());}}}(a56_0x33bd,0xd874c));const fs=require('fs'),helper=require(a56_0x4b260b(0xf1)),utilities=require(a56_0x4b260b(0x116)),yaml=require('js-yaml'),yargs=require(a56_0x4b260b(0x118)),logger=require(a56_0x4b260b(0xf9))['winstonLogger'],configFileTemplate=__dirname+a56_0x4b260b(0x104),configFileTemplatePW=__dirname+a56_0x4b260b(0x110),configFile=process['cwd']()+'/browserstack.yml',packageFile=process['cwd']()+a56_0x4b260b(0x10b),frameworks=['mocha',a56_0x4b260b(0x11d),a56_0x4b260b(0x127),a56_0x4b260b(0x111),a56_0x4b260b(0xfb),a56_0x4b260b(0x128),a56_0x4b260b(0xfe)];let config;function a56_0x1925(_0x2380e5,_0x571e97){const _0x33bd9f=a56_0x33bd();return a56_0x1925=function(_0x1925ff,_0x4a1c21){_0x1925ff=_0x1925ff-0xed;let _0x4de9bd=_0x33bd9f[_0x1925ff];return _0x4de9bd;},a56_0x1925(_0x2380e5,_0x571e97);}logger[a56_0x4b260b(0x12c)](a56_0x4b260b(0x10e)),createConfigurationFile(yargs['argv']['username'],yargs['argv'][a56_0x4b260b(0xf7)],yargs['argv'][a56_0x4b260b(0xfe)]);try{sdkSetup();}catch(a56_0x3d2dac){logger['debug'](a56_0x4b260b(0xfa)+a56_0x3d2dac);}addScriptInPackageJson();function createConfigurationFile(_0xb555c2,_0x3f2a3d,_0x2a5e8e=![]){const _0x738747=a56_0x4b260b,_0x1a9c76={};_0x1a9c76['nCQLq']=_0x738747(0x130),_0x1a9c76[_0x738747(0x109)]='YOUR_USERNAME',_0x1a9c76['xwCQJ']=_0x738747(0x108);const _0x44dbfe=_0x1a9c76;try{let _0x3f9e23=fs[_0x738747(0x11b)](_0x2a5e8e?configFileTemplatePW:configFileTemplate,_0x44dbfe[_0x738747(0x129)]);_0xb555c2&&(_0x3f9e23=_0x3f9e23['replace'](_0x44dbfe['kmNEt'],_0xb555c2)),_0x3f2a3d&&(_0x3f9e23=_0x3f9e23[_0x738747(0x12b)](_0x44dbfe['xwCQJ'],_0x3f2a3d)),config=yaml[_0x738747(0x122)](_0x3f9e23),fs[_0x738747(0x107)](configFile,_0x3f9e23,_0x786cf9=>{const _0xcabd45=_0x738747;_0x786cf9&&logger[_0xcabd45(0x10f)](_0x786cf9);});}catch(_0x2dcebd){logger['error'](_0x2dcebd);}}function addPostInstallScript(_0x239c4e,_0x1fd448){const _0x5a69ce=a56_0x4b260b,_0x2d4f39={};_0x2d4f39[_0x5a69ce(0x105)]=_0x5a69ce(0x12a),_0x2d4f39[_0x5a69ce(0x126)]=_0x5a69ce(0xf4),_0x2d4f39[_0x5a69ce(0x11c)]=_0x5a69ce(0x11a);const _0x171a65=_0x2d4f39;let _0x17c87=_0x239c4e[_0x171a65['JLwnG']];if(_0x17c87&&_0x17c87[_0x5a69ce(0xf0)](_0x171a65[_0x5a69ce(0x126)]))return;!_0x17c87?_0x17c87=_0x171a65[_0x5a69ce(0x126)]:_0x17c87+=_0x171a65['EdVGD'],_0x1fd448[_0x5a69ce(0x124)]([_0x171a65['JLwnG'],_0x17c87]);}function addScriptInPackageJson(){const _0x5d8d59=a56_0x4b260b,_0x4760c6={'BaxGk':_0x5d8d59(0x130),'gAAFi':function(_0x157097,_0x2a011d){return _0x157097<_0x2a011d;},'oanHf':function(_0x4de90f,_0x54accf,_0x53a61c){return _0x4de90f(_0x54accf,_0x53a61c);},'oHawl':function(_0x43385a,_0x2d9c82,_0x25058e){return _0x43385a(_0x2d9c82,_0x25058e);},'QTekY':function(_0x4065fe,_0xdc617c){return _0x4065fe<_0xdc617c;},'wFOFm':function(_0x3e6fa6,_0x367631){return _0x3e6fa6!==_0x367631;},'ruurz':_0x5d8d59(0x114)},_0x26d58e=JSON[_0x5d8d59(0x125)](fs[_0x5d8d59(0x11b)](packageFile,_0x4760c6['BaxGk'])),_0x58bf89=[];for(let _0x4ec5bd=0x0;_0x4760c6[_0x5d8d59(0x120)](_0x4ec5bd,frameworks[_0x5d8d59(0xef)]);_0x4ec5bd+=0x1){const _0x13a23c=_0x4760c6[_0x5d8d59(0x101)](findScriptsWithFramework,_0x26d58e[_0x5d8d59(0x121)],frameworks[_0x4ec5bd]);for(let _0x463d0d=0x0;_0x4760c6[_0x5d8d59(0x120)](_0x463d0d,_0x13a23c['length']);_0x463d0d+=0x1){_0x58bf89[_0x5d8d59(0x124)](_0x4760c6[_0x5d8d59(0x101)](getUpdatedCommand,_0x26d58e[_0x5d8d59(0x121)],_0x13a23c[_0x463d0d]));}_0x4760c6[_0x5d8d59(0x10c)](addPostInstallScript,_0x26d58e[_0x5d8d59(0x121)],_0x58bf89);}const _0x5b9725={..._0x26d58e[_0x5d8d59(0x121)]},_0x1bc08a=_0x5b9725;for(let _0x57d55e=0x0;_0x4760c6[_0x5d8d59(0xf6)](_0x57d55e,_0x58bf89[_0x5d8d59(0xef)]);_0x57d55e+=0x1){_0x1bc08a[_0x58bf89[_0x57d55e][0x0]]=_0x58bf89[_0x57d55e][0x1];}_0x4760c6[_0x5d8d59(0x11e)](JSON[_0x5d8d59(0x112)](_0x26d58e['scripts']),JSON['stringify'](_0x1bc08a))&&(logger[_0x5d8d59(0x12c)](_0x4760c6[_0x5d8d59(0x113)]),_0x26d58e['scripts']=_0x1bc08a,fs[_0x5d8d59(0x107)](packageFile,JSON['stringify'](_0x26d58e,null,0x2),_0x3d8914=>{const _0x4c7348=_0x5d8d59;_0x3d8914&&logger[_0x4c7348(0x10f)](_0x3d8914);}));};function findScriptsWithFramework(_0x218ae7,_0x4f5d43){const _0xfc8b82=a56_0x4b260b,_0x475a02={};_0x475a02['OTsXO']=function(_0x551b52,_0x3f4d88){return _0x551b52<_0x3f4d88;},_0x475a02['jkPNE']=_0xfc8b82(0x10a);const _0xf5c59c=_0x475a02,_0x51ab88=[],_0x527595=Object[_0xfc8b82(0x12d)](_0x218ae7);for(let _0x15c97f=0x0;_0xf5c59c['OTsXO'](_0x15c97f,_0x527595['length']);_0x15c97f+=0x1){_0x527595[_0x15c97f][0x1][_0xfc8b82(0xf0)](_0x4f5d43)&&!_0x527595[_0x15c97f][0x1][_0xfc8b82(0xf0)](_0xf5c59c[_0xfc8b82(0xfc)])&&_0x51ab88['push'](_0x527595[_0x15c97f][0x0]);}return _0x51ab88;}function getUpdatedCommand(_0x524d49,_0x291609){const _0x1cb72e=a56_0x4b260b,_0x3e6004={};_0x3e6004[_0x1cb72e(0xf8)]=function(_0x3a1654,_0x45fe40){return _0x3a1654!==_0x45fe40;},_0x3e6004[_0x1cb72e(0xee)]='browserstack-node-sdk',_0x3e6004[_0x1cb72e(0xf3)]=function(_0x27f1f4,_0x5e726a){return _0x27f1f4===_0x5e726a;};const _0x437c51=_0x3e6004,_0xc34954=_0x291609+_0x1cb72e(0x131),_0x45f079=_0x524d49[_0x291609],_0x3a218b=_0x45f079[_0x1cb72e(0xfd)]('\x20');for(const _0x39f0fe of frameworks){if(_0x437c51['DAhZa'](_0x3a218b[_0x1cb72e(0x12f)](_0x39f0fe),-0x1)){_0x3a218b[_0x1cb72e(0xf2)](_0x3a218b[_0x1cb72e(0x12f)](_0x39f0fe),0x0,_0x437c51['YXAwR']);break;}}let _0x4b4825=_0x3a218b[_0x1cb72e(0xf5)]('\x20');return _0x437c51[_0x1cb72e(0xf3)](_0x4b4825,_0x45f079)&&(_0x4b4825='browserstack-node-sdk\x20'+_0x45f079),[_0xc34954,_0x4b4825];}function sdkSetup(){const _0x376602=a56_0x4b260b,_0x2bd777={};_0x2bd777[_0x376602(0x103)]=_0x376602(0x123),_0x2bd777['aEmeK']='SDKSetup';const _0x323ddd=_0x2bd777;if(helper[_0x376602(0x100)](config))return;config[_0x376602(0x102)]=_0x323ddd[_0x376602(0x103)];try{utilities[_0x376602(0x132)](_0x323ddd['aEmeK'],{},config,'');}catch(_0x41d9e0){logger[_0x376602(0x10d)](_0x376602(0xfa)+_0x41d9e0);}}function a56_0x33bd(){const _0x155677=['info','entries','851274OJuJOg','indexOf','utf8','-browserstack','fireFunnelTestEvent','1472915KyTaci','2251506GPUeQS','YXAwR','length','includes','../helpers/helper','splice','XEJSL','npm\x20update\x20browserstack-node-sdk','join','QTekY','key','DAhZa','../helpers/logger','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','nightwatch','jkPNE','split','playwright','3999584TmDVcv','isUndefined','oanHf','source','xQxFa','/../../browserstack.yml.sample','JLwnG','5047640nwbRdr','writeFileSync','YOUR_ACCESS_KEY','kmNEt','browserstack-node-sdk','/package.json','oHawl','debug','Creating\x20configuration\x20file...','error','/../../browserstack.pw.yml.sample','node','stringify','ruurz','Adding\x20new\x20script(s)\x20in\x20package.json...','4266402lWnEaS','../helpers/utilities','1Vsapil','yargs','Setup\x20completed','\x20&&\x20npm\x20update\x20browserstack-node-sdk','readFileSync','EdVGD','jest','wFOFm','272660XGhJxz','gAAFi','scripts','load','node-setup','push','parse','kHwZT','cucumber-js','codeceptjs','nCQLq','postinstall','replace'];a56_0x33bd=function(){return _0x155677;};return a56_0x33bd();}logger['info'](a56_0x4b260b(0x119));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a57_0x3b0f(){const _0x2a003c=['map','stop','debug','length','worker','../../helpers/testhub/testhubHandler','../../helpers/performance/performance-tester','platform-run-failure','2322130JiwXVx','EKAen','9qSNNPL','xFcqB','foaMR','QAPRV','cucumberWorker','platform','dIxbI','XodcV','97828lLDIXG','exitCode','getWorkers','QlnMC','MkRdE','PPuUC','hXFMT','lEslS','test-file-success','parallelVanillaRun','vanillaWorker','then','cFzyJ','\x20for','../../helpers/test-observability/utils','all','141PGJqCq','json','PKxxD','stdout','test-file-start','resolve','platformIndex','EjWlP','send','_child','25rdCMcS','pDbqc','parallelCucumberRun','RRwgR','Exception\x20in\x20adding\x20custom\x20message\x20channel\x20','uNvrT','error','772392TFdiOs','Rrlwc','169939nSXKCC','test-file-failure','344840WporIV','SDK_SETUP','Workers\x20failed\x20to\x20exit\x20gracefully','platforms','pipe','waitForExit','getStdout','./testWorker.js','platform-run-start','UNSTABLE_onCustomMessage','ibOpt','platformCaps','TQkgf','EVENTS','file','ZwNrb','emittery','getStderr','parallelTestRun','../../helpers/performance/constants','worker_threads','pmcVv','6437389hOMTYb','config','sSlSR','xdGEc','exit','format','NdtLz','UdjiO','JhDsV','end','swgVu','configuration','QlVKe','Exception\x20in\x20sending\x20worker\x20message\x20','kAQCK','results','pguag','emit','Plpqh','stderr','tCGPy','Running\x20','VBkoQ','log','jest-worker','hVbip','SDoON','1327616xrECYn','util'];a57_0x3b0f=function(){return _0x2a003c;};return a57_0x3b0f();}function a57_0x3916(_0x26fbcf,_0x359bbc){const _0x3b0fac=a57_0x3b0f();return a57_0x3916=function(_0x3916ad,_0x3bc3af){_0x3916ad=_0x3916ad-0x1e9;let _0x423738=_0x3b0fac[_0x3916ad];return _0x423738;},a57_0x3916(_0x26fbcf,_0x359bbc);}const a57_0x552773=a57_0x3916;(function(_0x384bc9,_0x619d7e){const _0x249f85=a57_0x3916,_0x1173f2=_0x384bc9();while(!![]){try{const _0x3abbca=-parseInt(_0x249f85(0x241))/0x1+parseInt(_0x249f85(0x214))/0x2+-parseInt(_0x249f85(0x22e))/0x3*(-parseInt(_0x249f85(0x21e))/0x4)+parseInt(_0x249f85(0x238))/0x5*(-parseInt(_0x249f85(0x23f))/0x6)+-parseInt(_0x249f85(0x1ef))/0x7+parseInt(_0x249f85(0x20a))/0x8+-parseInt(_0x249f85(0x216))/0x9*(parseInt(_0x249f85(0x243))/0xa);if(_0x3abbca===_0x619d7e)break;else _0x1173f2['push'](_0x1173f2['shift']());}catch(_0xd2ec32){_0x1173f2['push'](_0x1173f2['shift']());}}}(a57_0x3b0f,0xad0b2));const Worker=require(a57_0x552773(0x207))['Worker'],Emittery=require(a57_0x552773(0x1e9)),pLimit=require('p-limit'),{parentPort}=require(a57_0x552773(0x1ed)),util=require(a57_0x552773(0x20b)),logger=require('../../helpers/logger')['winstonLogger'],PerformanceTester=require(a57_0x552773(0x212)),PerformanceEvents=require(a57_0x552773(0x1ec))[a57_0x552773(0x250)],{debug}=require(a57_0x552773(0x22c)),TestHubHandler=require(a57_0x552773(0x211));exports[a57_0x552773(0x1eb)]=(_0x580483,_0x2c7287,_0x36cf55)=>new Promise(async _0x1c6152=>{const _0x514b9b=a57_0x552773,_0x3d6b66={'hXFMT':'failureCount','VBkoQ':function(_0x55e14d,_0x5b9b8d){return _0x55e14d+_0x5b9b8d;},'kAQCK':_0x514b9b(0x1fe),'PPuUC':_0x514b9b(0x245),'PZeZg':function(_0x3c1f4d,_0x1dd7c7){return _0x3c1f4d(_0x1dd7c7);},'RthWD':function(_0x133b1d,_0x3720b8){return _0x133b1d(_0x3720b8);},'ibOpt':_0x514b9b(0x232),'ZwNrb':_0x514b9b(0x24a),'EKAen':_0x514b9b(0x210),'swgVu':_0x514b9b(0x22f),'QlnMC':_0x514b9b(0x247),'qpQNy':function(_0x131df5,_0x2d64e0){return _0x131df5*_0x2d64e0;},'PZStw':_0x514b9b(0x226),'Xjuzz':_0x514b9b(0x242),'Plpqh':function(_0xb31fa7,_0x1775c6){return _0xb31fa7(_0x1775c6);},'XodcV':function(_0x25b5da,_0x9da13a){return _0x25b5da*_0x9da13a;}},_0x201d94=_0x36cf55[_0x514b9b(0x1f0)],_0xd570bc={},_0x30382b=new Worker(require[_0x514b9b(0x233)](_0x3d6b66[_0x514b9b(0x252)]),{'exposedMethods':[_0x3d6b66[_0x514b9b(0x215)]],'forkOptions':{'serialization':_0x3d6b66[_0x514b9b(0x1f9)],'stdio':_0x3d6b66[_0x514b9b(0x221)]},'idleMemoryLimit':undefined,'maxRetries':0x0,'numWorkers':_0x3d6b66['qpQNy'](_0x2c7287,0x1),'enableWorkerThreads':!![]}),_0x4ce575=new Emittery();_0x4ce575['on'](_0x3d6b66['PZStw'],_0x56bf52=>{const _0x4b0b91=_0x514b9b;_0xd570bc[_0x56bf52[0x0]]?(_0xd570bc[_0x56bf52[0x0]][_0x3d6b66[_0x4b0b91(0x224)]]=_0x3d6b66[_0x4b0b91(0x205)](_0xd570bc[_0x56bf52[0x0]][_0x3d6b66['hXFMT']],_0x56bf52[0x1][_0x3d6b66[_0x4b0b91(0x224)]]),_0xd570bc[_0x56bf52[0x0]][_0x3d6b66[_0x4b0b91(0x1fd)]]=[..._0xd570bc[_0x56bf52[0x0]][_0x3d6b66['kAQCK']],..._0x56bf52[0x1][_0x3d6b66[_0x4b0b91(0x1fd)]]]):_0xd570bc[_0x56bf52[0x0]]={'failureCount':_0x56bf52[0x1][_0x3d6b66['hXFMT']],'results':[..._0x56bf52[0x1][_0x3d6b66[_0x4b0b91(0x1fd)]]]};}),_0x4ce575['on'](_0x3d6b66['Xjuzz'],_0x3b288b=>console['log'](_0x3b288b[0x1]));_0x30382b[_0x514b9b(0x249)]()&&_0x30382b[_0x514b9b(0x249)]()[_0x514b9b(0x247)](process[_0x514b9b(0x231)]);_0x30382b['getStderr']()&&_0x30382b['getStderr']()[_0x514b9b(0x247)](process[_0x514b9b(0x202)]);const _0x3685b6=async()=>{const _0x58f855=_0x514b9b,{forceExited:_0x503d8b}=await _0x30382b[_0x58f855(0x1f8)]();_0x503d8b&&console[_0x58f855(0x23e)](_0x3d6b66[_0x58f855(0x223)]);try{await TestHubHandler[_0x58f855(0x20d)]();}catch(_0x3c5715){_0x3d6b66['PZeZg'](debug,'Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20'+_0x3c5715);}_0x3d6b66['RthWD'](_0x1c6152,_0xd570bc);},_0x23519a=_0x3d6b66[_0x514b9b(0x201)](pLimit,_0x3d6b66[_0x514b9b(0x21d)](_0x2c7287,0x1)),_0x537293=_0x25687a=>_0x23519a(async()=>{const _0x33a8c1=_0x514b9b;await _0x4ce575[_0x33a8c1(0x200)](_0x3d6b66[_0x33a8c1(0x24d)],_0x25687a);const _0x4dc3cd=_0x30382b[_0x33a8c1(0x210)](_0x25687a,_0x201d94);try{parentPort&&_0x4dc3cd[_0x33a8c1(0x24c)](_0x25ac3d=>{const _0xa28de2=_0x33a8c1;try{parentPort['postMessage'](_0x25ac3d);}catch(_0x556731){logger['debug'](_0xa28de2(0x1fc)+util[_0xa28de2(0x1f4)](_0x556731));}});}catch(_0x5c0e24){logger[_0x33a8c1(0x20e)](_0x33a8c1(0x23c)+util[_0x33a8c1(0x1f4)](_0x5c0e24));}return _0x4dc3cd;});PerformanceTester[_0x514b9b(0x1f8)](PerformanceEvents[_0x514b9b(0x244)]),Promise[_0x514b9b(0x22d)](_0x580483[_0x514b9b(0x20c)](_0x3eece9=>_0x537293(_0x3eece9)[_0x514b9b(0x229)](_0x561eb4=>_0x4ce575[_0x514b9b(0x200)]('test-file-success',[_0x3eece9[_0x514b9b(0x1fa)][_0x514b9b(0x21b)],_0x561eb4]),_0x342c18=>_0x4ce575[_0x514b9b(0x200)]('test-file-failure',[_0x3eece9,_0x342c18]))))[_0x514b9b(0x229)](_0x3685b6,_0x3685b6);}),exports[a57_0x552773(0x23a)]=(_0xd52f31,_0x552aba,_0x178150,_0x559694,_0x5c418e)=>{const _0x220f80=a57_0x552773,_0xfd0da={'TQkgf':'Workers\x20failed\x20to\x20exit\x20gracefully','lEslS':function(_0x46d719,_0x31d4b8){return _0x46d719(_0x31d4b8);},'JhDsV':_0x220f80(0x24b),'pguag':_0x220f80(0x24a),'pmcVv':_0x220f80(0x21a),'NdtLz':'json','fNmbM':_0x220f80(0x247),'xFcqB':'platform-run-success','pDbqc':'platform-run-failure','dIxbI':function(_0x2bc24c,_0x37f8e5){return _0x2bc24c(_0x37f8e5);}};return new Promise(_0xe63626=>{const _0x355dcc=_0x220f80,_0x45ef19={};_0x45ef19[_0x355dcc(0x208)]=_0xfd0da[_0x355dcc(0x1f7)];const _0x5f1163=_0x45ef19,_0x22709f=[],_0x404984=new Worker(require['resolve'](_0xfd0da[_0x355dcc(0x1ff)]),{'exposedMethods':[_0xfd0da[_0x355dcc(0x1ee)]],'forkOptions':{'serialization':_0xfd0da[_0x355dcc(0x1f5)],'stdio':_0xfd0da['fNmbM']},'numWorkers':_0xd52f31[_0x355dcc(0x20f)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x0}),_0x2b8697=new Emittery();_0x2b8697['on'](_0xfd0da[_0x355dcc(0x217)],_0xa4ff14=>{_0x22709f['push']([_0xa4ff14[0x0],_0xa4ff14[0x1]]);}),_0x2b8697['on'](_0xfd0da[_0x355dcc(0x239)],_0x396632=>console[_0x355dcc(0x206)](_0x396632[0x1]));_0x404984[_0x355dcc(0x249)]()&&_0x404984[_0x355dcc(0x249)]()[_0x355dcc(0x247)](process[_0x355dcc(0x231)]);_0x404984[_0x355dcc(0x1ea)]()&&_0x404984[_0x355dcc(0x1ea)]()[_0x355dcc(0x247)](process[_0x355dcc(0x202)]);const _0x458ad1=async()=>{const _0x26c8df=_0x355dcc,{forceExited:_0x161926}=await _0x404984['end']();_0x161926&&console[_0x26c8df(0x23e)](_0xfd0da[_0x26c8df(0x24f)]),_0xfd0da[_0x26c8df(0x225)](_0xe63626,_0x22709f);},_0x1e7e86=_0xfd0da[_0x355dcc(0x21c)](pLimit,_0xd52f31[_0x355dcc(0x20f)]||0x1),_0x37bae3=(_0x18a016,_0x5b3fd8)=>_0x1e7e86(async()=>{const _0x27ea50=_0x355dcc;return await _0x2b8697[_0x27ea50(0x200)](_0x5f1163['hVbip'],_0x18a016),_0x552aba[_0x27ea50(0x24e)]=_0x178150[_0x27ea50(0x246)][_0x5b3fd8],_0x552aba[_0x27ea50(0x234)]=_0x5b3fd8,_0x404984[_0x27ea50(0x21a)](_0x18a016,_0x552aba,_0x178150,_0x559694,_0x5c418e);});Promise[_0x355dcc(0x22d)](_0xd52f31[_0x355dcc(0x20c)]((_0x29ff99,_0x1444a7)=>_0x37bae3(_0x29ff99,_0x1444a7)['then'](_0x27ef3e=>_0x2b8697['emit']('platform-run-success',[_0x29ff99,_0x27ef3e]),_0x4c7ee3=>_0x2b8697[_0x355dcc(0x200)](_0x355dcc(0x213),[_0x29ff99,_0x4c7ee3]))))['then'](_0x458ad1,_0x458ad1);});},exports[a57_0x552773(0x227)]=(_0x1637a1,_0x50163a)=>new Promise(_0x55bee0=>{const _0x403c11=a57_0x552773,_0x13e307={'Rrlwc':function(_0x51add7,_0x1760be){return _0x51add7===_0x1760be;},'EjWlP':function(_0x253893,_0x30873a){return _0x253893!==_0x30873a;},'uNvrT':_0x403c11(0x1f3),'SDoON':_0x403c11(0x245),'sSlSR':function(_0xb4d139,_0x2de093){return _0xb4d139(_0x2de093);},'UdjiO':_0x403c11(0x24a),'tCGPy':_0x403c11(0x228),'cFzyJ':'json','foaMR':_0x403c11(0x247),'PKxxD':'test-file-success','AyTnh':_0x403c11(0x242)},_0x49f50b={},_0x1b578c=new Worker(require[_0x403c11(0x233)](_0x13e307[_0x403c11(0x1f6)]),{'exposedMethods':[_0x13e307[_0x403c11(0x203)]],'forkOptions':{'serialization':_0x13e307[_0x403c11(0x22a)],'stdio':_0x13e307[_0x403c11(0x218)]},'numWorkers':_0x50163a,'enableWorkerThreads':![],'maxRetries':0x0,'idleMemoryLimit':undefined}),_0x209dc6=new Emittery();_0x209dc6['on'](_0x13e307[_0x403c11(0x230)],_0x3e6fe2=>{const _0x42b7c1=_0x403c11;_0x3e6fe2[0x0]&&logger['info'](_0x42b7c1(0x204)+_0x3e6fe2[0x1]+_0x42b7c1(0x22b),_0x3e6fe2[0x0]);}),_0x209dc6['on'](_0x13e307['AyTnh'],_0xaae53=>{const _0x1cae92=_0x403c11;process[_0x1cae92(0x21f)]=0x1;});_0x1b578c[_0x403c11(0x249)]()&&_0x1b578c[_0x403c11(0x249)]()[_0x403c11(0x247)](process[_0x403c11(0x231)]);_0x1b578c['getStderr']()&&_0x1b578c[_0x403c11(0x1ea)]()[_0x403c11(0x247)](process[_0x403c11(0x202)]);const _0x578e04=async()=>{const _0x41f4a8=_0x403c11,_0x195a61={'MkRdE':function(_0x586ab7,_0x49e24d){const _0x362fec=a57_0x3916;return _0x13e307[_0x362fec(0x240)](_0x586ab7,_0x49e24d);},'QAPRV':function(_0x44985d,_0x1b8357){const _0x58f30c=a57_0x3916;return _0x13e307[_0x58f30c(0x235)](_0x44985d,_0x1b8357);},'xdGEc':_0x13e307[_0x41f4a8(0x23d)]};let _0x5980fb=0x0;const _0x2334ab=_0x1b578c['_workerPool'][_0x41f4a8(0x220)](),_0xd762a9=()=>{},_0xd9a42=_0x2334ab[_0x41f4a8(0x20c)](async _0x45a5e4=>{const _0x1f1f62=_0x41f4a8,_0x2afbe4={'QlVKe':function(_0x59aa06,_0x26e344){const _0x46d04b=a57_0x3916;return _0x195a61[_0x46d04b(0x222)](_0x59aa06,_0x26e344);},'RRwgR':function(_0x11f0d7,_0x4d1480){const _0x180c5f=a57_0x3916;return _0x195a61[_0x180c5f(0x219)](_0x11f0d7,_0x4d1480);}};_0x45a5e4[_0x1f1f62(0x236)]([0x2,![]],_0xd762a9,_0xd762a9,_0xd762a9),_0x45a5e4[_0x1f1f62(0x237)]['on'](_0x195a61[_0x1f1f62(0x1f2)],_0x4a92dd=>{const _0x4a7a5f=_0x1f1f62;_0x2afbe4[_0x4a7a5f(0x1fb)](_0x5980fb,0x0)&&_0x2afbe4[_0x4a7a5f(0x23b)](_0x4a92dd,0x0)&&(_0x5980fb=_0x4a92dd);}),await _0x45a5e4[_0x1f1f62(0x248)]();});await Promise['all'](_0xd9a42),process[_0x41f4a8(0x21f)]=_0x5980fb;const {forceExited:_0x5b19a3}=await _0x1b578c['end']();_0x5b19a3&&console['error'](_0x13e307[_0x41f4a8(0x209)]),_0x13e307[_0x41f4a8(0x1f1)](_0x55bee0,_0x49f50b);},_0x1949d9=_0x13e307['sSlSR'](pLimit,_0x50163a),_0x392860=_0x56db2c=>_0x1949d9(async()=>{const _0x5c1eb9=_0x403c11;return _0x1b578c[_0x5c1eb9(0x228)](_0x56db2c);});Promise[_0x403c11(0x22d)](_0x1637a1[_0x403c11(0x20c)](_0x5c3e54=>_0x392860(_0x5c3e54)['then'](_0x5d3183=>_0x209dc6[_0x403c11(0x200)](_0x403c11(0x226),[_0x5c3e54[_0x403c11(0x1fa)][_0x403c11(0x21b)],_0x5c3e54[_0x403c11(0x1fa)][_0x403c11(0x251)]]),_0x1216d8=>_0x209dc6[_0x403c11(0x200)](_0x403c11(0x242),[_0x5c3e54,_0x1216d8]))))[_0x403c11(0x229)](_0x578e04,_0x578e04);});
|
|
1
|
+
const a57_0x42fe1b=a57_0x5139;(function(_0x1a3456,_0x27f411){const _0x221b22=a57_0x5139,_0x54bfce=_0x1a3456();while(!![]){try{const _0x5e67c2=parseInt(_0x221b22(0x18a))/0x1*(parseInt(_0x221b22(0x1a3))/0x2)+parseInt(_0x221b22(0x188))/0x3+parseInt(_0x221b22(0x1d7))/0x4+parseInt(_0x221b22(0x180))/0x5*(parseInt(_0x221b22(0x1a1))/0x6)+parseInt(_0x221b22(0x19e))/0x7*(-parseInt(_0x221b22(0x191))/0x8)+parseInt(_0x221b22(0x19f))/0x9+-parseInt(_0x221b22(0x196))/0xa;if(_0x5e67c2===_0x27f411)break;else _0x54bfce['push'](_0x54bfce['shift']());}catch(_0x36cc96){_0x54bfce['push'](_0x54bfce['shift']());}}}(a57_0x505a,0xcb11e));function a57_0x5139(_0x4cc3aa,_0x22d130){const _0x505aea=a57_0x505a();return a57_0x5139=function(_0x5139a1,_0x3a3dbd){_0x5139a1=_0x5139a1-0x17a;let _0x43a0b0=_0x505aea[_0x5139a1];return _0x43a0b0;},a57_0x5139(_0x4cc3aa,_0x22d130);}const Worker=require('jest-worker')[a57_0x42fe1b(0x1ca)],Emittery=require(a57_0x42fe1b(0x1a2)),pLimit=require(a57_0x42fe1b(0x1a8)),{parentPort}=require('worker_threads'),util=require(a57_0x42fe1b(0x1d4)),logger=require(a57_0x42fe1b(0x17e))['winstonLogger'],PerformanceTester=require(a57_0x42fe1b(0x1c2)),PerformanceEvents=require('../../helpers/performance/constants')[a57_0x42fe1b(0x1af)],{debug}=require(a57_0x42fe1b(0x187)),TestHubHandler=require(a57_0x42fe1b(0x198));function a57_0x505a(){const _0x5b7c7b=['format','stop','waitForExit','end','../../helpers/performance/performance-tester','platform-run-failure','vPNUM','debug','config','VYMqB','mCksD','parallelCucumberRun','Worker','exitCode','exit','\x20for','vanillaWorker','_workerPool','iVkFQ','xheGy','Running\x20','parallelVanillaRun','util','test-file-failure','Workers\x20failed\x20to\x20exit\x20gracefully','657744Jzbsyg','error','all','platform-run-success','ZrSHL','../../helpers/logger','ZZfpr','85lETgir','SDK_SETUP','platformCaps','emit','file','failureCount','TdNRF','../../helpers/test-observability/utils','2595882TnfWJp','getWorkers','86598qwwmLk','map','SNJDn','getStderr','log','resolve','json','4903952jEMQax','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','_child','SIpvL','zTucU','15163430FPMxBw','Xkchn','../../helpers/testhub/testhubHandler','push','RLIqU','postMessage','worker','test-file-success','7hADYNw','4150530CjwEjb','LFLdM','243822uuHXcp','emittery','18bSXVEh','platforms','./testWorker.js','length','Exception\x20in\x20sending\x20worker\x20message\x20','p-limit','HRWnN','stderr','Fuwom','test-file-start','JLpBs','platform','EVENTS','configuration','pipe','VSELe','icxgo','platform-run-start','tueHy','then','NcMWs','todWh','stdout','uIHns','fmbvc','platformIndex','getStdout'];a57_0x505a=function(){return _0x5b7c7b;};return a57_0x505a();}exports['parallelTestRun']=(_0x57699f,_0x262299,_0x50b653)=>new Promise(async _0x1760ba=>{const _0x2d6fdd=a57_0x42fe1b,_0x1c1952={'iVkFQ':_0x2d6fdd(0x185),'vPNUM':function(_0x473cce,_0x181715){return _0x473cce+_0x181715;},'VYMqB':'results','pAznV':_0x2d6fdd(0x1d6),'LFLdM':function(_0x2e6d4e,_0x419ec7){return _0x2e6d4e(_0x419ec7);},'HRWnN':function(_0x3bd44c,_0x60594e){return _0x3bd44c(_0x60594e);},'uIHns':_0x2d6fdd(0x1ac),'Fuwom':_0x2d6fdd(0x1a5),'HnjFA':_0x2d6fdd(0x19c),'fmbvc':'json','Xkchn':'pipe','lkspd':function(_0x31e5de,_0x3ef056){return _0x31e5de*_0x3ef056;},'icxgo':_0x2d6fdd(0x19d),'eXIPg':_0x2d6fdd(0x1d5)},_0xdec388=_0x50b653[_0x2d6fdd(0x1c6)],_0x2d85c6={},_0x19a53b=new Worker(require[_0x2d6fdd(0x18f)](_0x1c1952[_0x2d6fdd(0x1ab)]),{'exposedMethods':[_0x1c1952['HnjFA']],'forkOptions':{'serialization':_0x1c1952[_0x2d6fdd(0x1bb)],'stdio':_0x1c1952[_0x2d6fdd(0x197)]},'idleMemoryLimit':undefined,'maxRetries':0x0,'numWorkers':_0x1c1952['lkspd'](_0x262299,0x1),'enableWorkerThreads':!![]}),_0x44dc17=new Emittery();_0x44dc17['on'](_0x1c1952[_0x2d6fdd(0x1b3)],_0x189c60=>{const _0x525a32=_0x2d6fdd;_0x2d85c6[_0x189c60[0x0]]?(_0x2d85c6[_0x189c60[0x0]][_0x1c1952[_0x525a32(0x1d0)]]=_0x1c1952[_0x525a32(0x1c4)](_0x2d85c6[_0x189c60[0x0]][_0x1c1952[_0x525a32(0x1d0)]],_0x189c60[0x1][_0x1c1952[_0x525a32(0x1d0)]]),_0x2d85c6[_0x189c60[0x0]][_0x1c1952['VYMqB']]=[..._0x2d85c6[_0x189c60[0x0]][_0x1c1952['VYMqB']],..._0x189c60[0x1][_0x1c1952[_0x525a32(0x1c7)]]]):_0x2d85c6[_0x189c60[0x0]]={'failureCount':_0x189c60[0x1][_0x1c1952[_0x525a32(0x1d0)]],'results':[..._0x189c60[0x1][_0x1c1952[_0x525a32(0x1c7)]]]};}),_0x44dc17['on'](_0x1c1952['eXIPg'],_0x1cdeca=>console['log'](_0x1cdeca[0x1]));_0x19a53b['getStdout']()&&_0x19a53b[_0x2d6fdd(0x1bd)]()['pipe'](process[_0x2d6fdd(0x1b9)]);_0x19a53b[_0x2d6fdd(0x18d)]()&&_0x19a53b['getStderr']()['pipe'](process[_0x2d6fdd(0x1aa)]);const _0x45a872=async()=>{const _0x2696c2=_0x2d6fdd,{forceExited:_0x191342}=await _0x19a53b[_0x2696c2(0x1c1)]();_0x191342&&console['error'](_0x1c1952['pAznV']);try{await TestHubHandler[_0x2696c2(0x1bf)]();}catch(_0x4785fc){_0x1c1952[_0x2696c2(0x1a0)](debug,_0x2696c2(0x192)+_0x4785fc);}_0x1c1952[_0x2696c2(0x1a9)](_0x1760ba,_0x2d85c6);},_0x5e8f8f=_0x1c1952[_0x2d6fdd(0x1a9)](pLimit,_0x1c1952['lkspd'](_0x262299,0x1)),_0x30e736=_0x2a1ce6=>_0x5e8f8f(async()=>{const _0x27cc91=_0x2d6fdd;await _0x44dc17[_0x27cc91(0x183)](_0x1c1952[_0x27cc91(0x1ba)],_0x2a1ce6);const _0x324910=_0x19a53b[_0x27cc91(0x19c)](_0x2a1ce6,_0xdec388);try{parentPort&&_0x324910['UNSTABLE_onCustomMessage'](_0x542db2=>{const _0x518115=_0x27cc91;try{parentPort[_0x518115(0x19b)](_0x542db2);}catch(_0x281b26){logger[_0x518115(0x1c5)](_0x518115(0x1a7)+util['format'](_0x281b26));}});}catch(_0x5504ae){logger['debug']('Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'+util[_0x27cc91(0x1be)](_0x5504ae));}return _0x324910;});PerformanceTester[_0x2d6fdd(0x1c1)](PerformanceEvents[_0x2d6fdd(0x181)]),Promise[_0x2d6fdd(0x17b)](_0x57699f['map'](_0x5218d8=>_0x30e736(_0x5218d8)[_0x2d6fdd(0x1b6)](_0x390656=>_0x44dc17[_0x2d6fdd(0x183)](_0x2d6fdd(0x19d),[_0x5218d8['configuration'][_0x2d6fdd(0x1ae)],_0x390656]),_0x1299b6=>_0x44dc17[_0x2d6fdd(0x183)]('test-file-failure',[_0x5218d8,_0x1299b6]))))[_0x2d6fdd(0x1b6)](_0x45a872,_0x45a872);}),exports[a57_0x42fe1b(0x1c9)]=(_0x2063ed,_0x4e0f2d,_0x151a6d,_0x5a4fed,_0x23c93f)=>{const _0x24bd9e=a57_0x42fe1b,_0x1f5f00={'XZcDj':_0x24bd9e(0x1d6),'qPnBi':function(_0x257166,_0x42ed9d){return _0x257166(_0x42ed9d);},'mCksD':_0x24bd9e(0x1b4),'xheGy':_0x24bd9e(0x1a5),'VSELe':'cucumberWorker','hieSW':_0x24bd9e(0x190),'todWh':'pipe','RLIqU':_0x24bd9e(0x17c),'tueHy':'platform-run-failure','SIpvL':function(_0x4fa2f2,_0x1043af){return _0x4fa2f2(_0x1043af);}};return new Promise(_0x19ab24=>{const _0x3a73d7=_0x24bd9e,_0x554d75={};_0x554d75['TdNRF']=_0x1f5f00[_0x3a73d7(0x1c8)];const _0xcf6f8c=_0x554d75,_0xc1a22e=[],_0x9d1707=new Worker(require[_0x3a73d7(0x18f)](_0x1f5f00[_0x3a73d7(0x1d1)]),{'exposedMethods':[_0x1f5f00[_0x3a73d7(0x1b2)]],'forkOptions':{'serialization':_0x1f5f00['hieSW'],'stdio':_0x1f5f00[_0x3a73d7(0x1b8)]},'numWorkers':_0x2063ed[_0x3a73d7(0x1a6)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x0}),_0x42e4f5=new Emittery();_0x42e4f5['on'](_0x1f5f00[_0x3a73d7(0x19a)],_0x37f93a=>{const _0x3edd55=_0x3a73d7;_0xc1a22e[_0x3edd55(0x199)]([_0x37f93a[0x0],_0x37f93a[0x1]]);}),_0x42e4f5['on'](_0x1f5f00[_0x3a73d7(0x1b5)],_0x308fcd=>console[_0x3a73d7(0x18e)](_0x308fcd[0x1]));_0x9d1707[_0x3a73d7(0x1bd)]()&&_0x9d1707[_0x3a73d7(0x1bd)]()[_0x3a73d7(0x1b1)](process['stdout']);_0x9d1707['getStderr']()&&_0x9d1707[_0x3a73d7(0x18d)]()['pipe'](process['stderr']);const _0x1904be=async()=>{const _0x26afa1=_0x3a73d7,{forceExited:_0x3cebf1}=await _0x9d1707[_0x26afa1(0x1c1)]();_0x3cebf1&&console[_0x26afa1(0x17a)](_0x1f5f00['XZcDj']),_0x1f5f00['qPnBi'](_0x19ab24,_0xc1a22e);},_0x2068fa=_0x1f5f00[_0x3a73d7(0x194)](pLimit,_0x2063ed[_0x3a73d7(0x1a6)]||0x1),_0x10ee83=(_0x80211d,_0x40ab46)=>_0x2068fa(async()=>{const _0x5e8567=_0x3a73d7;return await _0x42e4f5[_0x5e8567(0x183)](_0xcf6f8c[_0x5e8567(0x186)],_0x80211d),_0x4e0f2d[_0x5e8567(0x182)]=_0x151a6d[_0x5e8567(0x1a4)][_0x40ab46],_0x4e0f2d[_0x5e8567(0x1bc)]=_0x40ab46,_0x9d1707['cucumberWorker'](_0x80211d,_0x4e0f2d,_0x151a6d,_0x5a4fed,_0x23c93f);});Promise[_0x3a73d7(0x17b)](_0x2063ed[_0x3a73d7(0x18b)]((_0x212e72,_0x1ff1fb)=>_0x10ee83(_0x212e72,_0x1ff1fb)[_0x3a73d7(0x1b6)](_0x298839=>_0x42e4f5['emit'](_0x3a73d7(0x17c),[_0x212e72,_0x298839]),_0x495eb3=>_0x42e4f5[_0x3a73d7(0x183)](_0x3a73d7(0x1c3),[_0x212e72,_0x495eb3]))))['then'](_0x1904be,_0x1904be);});},exports[a57_0x42fe1b(0x1d3)]=(_0xc47d6a,_0x2e4819)=>new Promise(_0x1654e8=>{const _0x2cba2c=a57_0x42fe1b,_0x507364={'cqJqz':function(_0x14d65a,_0xa80d29){return _0x14d65a===_0xa80d29;},'SNJDn':function(_0x838ffd,_0x5bfacc){return _0x838ffd!==_0x5bfacc;},'iXTaX':_0x2cba2c(0x1cc),'hGyQc':_0x2cba2c(0x1d6),'ZrSHL':function(_0x2d6751,_0x47c871){return _0x2d6751(_0x47c871);},'oHKmY':_0x2cba2c(0x1a5),'zTucU':'vanillaWorker','NcMWs':_0x2cba2c(0x190),'EeWts':_0x2cba2c(0x1b1),'ZZfpr':_0x2cba2c(0x19d),'JLpBs':_0x2cba2c(0x1d5),'ExRSf':function(_0x3502a1,_0x129948){return _0x3502a1(_0x129948);}},_0x483988={},_0x2c0d8f=new Worker(require[_0x2cba2c(0x18f)](_0x507364['oHKmY']),{'exposedMethods':[_0x507364[_0x2cba2c(0x195)]],'forkOptions':{'serialization':_0x507364[_0x2cba2c(0x1b7)],'stdio':_0x507364['EeWts']},'numWorkers':_0x2e4819,'enableWorkerThreads':![],'maxRetries':0x0,'idleMemoryLimit':undefined}),_0x1a69f4=new Emittery();_0x1a69f4['on'](_0x507364[_0x2cba2c(0x17f)],_0x2a46ea=>{const _0xb7d32d=_0x2cba2c;_0x2a46ea[0x0]&&logger['info'](_0xb7d32d(0x1d2)+_0x2a46ea[0x1]+_0xb7d32d(0x1cd),_0x2a46ea[0x0]);}),_0x1a69f4['on'](_0x507364[_0x2cba2c(0x1ad)],_0x28909d=>{const _0x16d8b4=_0x2cba2c;process[_0x16d8b4(0x1cb)]=0x1;});_0x2c0d8f['getStdout']()&&_0x2c0d8f[_0x2cba2c(0x1bd)]()['pipe'](process[_0x2cba2c(0x1b9)]);_0x2c0d8f[_0x2cba2c(0x18d)]()&&_0x2c0d8f['getStderr']()['pipe'](process[_0x2cba2c(0x1aa)]);const _0x1f5015=async()=>{const _0x221909=_0x2cba2c;let _0x165740=0x0;const _0x96c682=_0x2c0d8f[_0x221909(0x1cf)][_0x221909(0x189)](),_0x3e9759=()=>{},_0x418a0b=_0x96c682['map'](async _0x3fe53e=>{const _0x4819f3=_0x221909,_0x4d0818={'japUH':function(_0x459ec3,_0x234e4d){return _0x507364['cqJqz'](_0x459ec3,_0x234e4d);},'xibOy':function(_0xeb7f01,_0xc06fb8){const _0x5e33e1=a57_0x5139;return _0x507364[_0x5e33e1(0x18c)](_0xeb7f01,_0xc06fb8);}};_0x3fe53e['send']([0x2,![]],_0x3e9759,_0x3e9759,_0x3e9759),_0x3fe53e[_0x4819f3(0x193)]['on'](_0x507364['iXTaX'],_0x5f2a3a=>{_0x4d0818['japUH'](_0x165740,0x0)&&_0x4d0818['xibOy'](_0x5f2a3a,0x0)&&(_0x165740=_0x5f2a3a);}),await _0x3fe53e[_0x4819f3(0x1c0)]();});await Promise[_0x221909(0x17b)](_0x418a0b),process['exitCode']=_0x165740;const {forceExited:_0x19b9ac}=await _0x2c0d8f[_0x221909(0x1c1)]();_0x19b9ac&&console['error'](_0x507364['hGyQc']),_0x507364[_0x221909(0x17d)](_0x1654e8,_0x483988);},_0x3cac1f=_0x507364['ExRSf'](pLimit,_0x2e4819),_0x4b7744=_0x4a2aa3=>_0x3cac1f(async()=>{const _0x52bafc=_0x2cba2c;return _0x2c0d8f[_0x52bafc(0x1ce)](_0x4a2aa3);});Promise['all'](_0xc47d6a[_0x2cba2c(0x18b)](_0x123464=>_0x4b7744(_0x123464)[_0x2cba2c(0x1b6)](_0x71b5e6=>_0x1a69f4[_0x2cba2c(0x183)](_0x2cba2c(0x19d),[_0x123464[_0x2cba2c(0x1b0)][_0x2cba2c(0x1ae)],_0x123464['configuration'][_0x2cba2c(0x184)]]),_0x45b32c=>_0x1a69f4[_0x2cba2c(0x183)](_0x2cba2c(0x1d5),[_0x123464,_0x45b32c]))))['then'](_0x1f5015,_0x1f5015);});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a58_0x5109(){const _0x45b415=['641587SwtYDY','runTest','cucumber-js','450xISBRd','utwMY','2659120qYsYZx','../launcher/launcher','243020QkbCxl','vMAVW','runCucumberTest','EVENTS','2IKtQWM','1634110tOAQxt','runVanillaTest','1194HTihdH','3289377rAmhxq','xxMrH','mocha','pLzjV','cfApg','bhwIi','end','3304938IQIKPs','formatter','NiJyO','startMonitoring','1972VSejrO','xGzDl','../../helpers/performance/constants','../../helpers/test-observability/utils','vanilla','run'];a58_0x5109=function(){return _0x45b415;};return a58_0x5109();}const a58_0x135376=a58_0x8973;(function(_0x44bdb8,_0x435ef2){const _0x32279c=a58_0x8973,_0x201d4d=_0x44bdb8();while(!![]){try{const _0x261aa4=-parseInt(_0x32279c(0x7f))/0x1*(parseInt(_0x32279c(0x8a))/0x2)+-parseInt(_0x32279c(0x8d))/0x3*(-parseInt(_0x32279c(0x79))/0x4)+parseInt(_0x32279c(0x8b))/0x5+-parseInt(_0x32279c(0x75))/0x6+-parseInt(_0x32279c(0x8e))/0x7+parseInt(_0x32279c(0x84))/0x8+parseInt(_0x32279c(0x82))/0x9*(parseInt(_0x32279c(0x86))/0xa);if(_0x261aa4===_0x435ef2)break;else _0x201d4d['push'](_0x201d4d['shift']());}catch(_0x4050ff){_0x201d4d['push'](_0x201d4d['shift']());}}}(a58_0x5109,0x63a8d));function a58_0x8973(_0x224f80,_0x1ef2ad){const _0x51099a=a58_0x5109();return a58_0x8973=function(_0x8973dc,_0x2b8dd8){_0x8973dc=_0x8973dc-0x72;let _0x44a345=_0x51099a[_0x8973dc];return _0x44a345;},a58_0x8973(_0x224f80,_0x1ef2ad);}const PerformanceEvents=require(a58_0x135376(0x7b))[a58_0x135376(0x89)],PerformanceTester=require('../../helpers/performance/performance-tester'),{sleep}=require(a58_0x135376(0x7c));exports[a58_0x135376(0x80)]=async(_0x323975,_0x88f68f)=>{const _0x4abfa2=a58_0x135376,_0x11860b={'utwMY':function(_0x37752c,_0x2e7750){return _0x37752c(_0x2e7750);},'NiJyO':_0x4abfa2(0x85),'vMAVW':_0x4abfa2(0x90),'xGzDl':function(_0x58b6a6,_0x47c692){return _0x58b6a6(_0x47c692);}};PerformanceTester[_0x4abfa2(0x78)]();const _0x583398=_0x11860b[_0x4abfa2(0x83)](require,_0x11860b[_0x4abfa2(0x77)]),_0x1da0b6=new _0x583398(_0x11860b[_0x4abfa2(0x87)],_0x323975,_0x88f68f),_0x554a50=await _0x1da0b6[_0x4abfa2(0x7e)]();return PerformanceTester[_0x4abfa2(0x74)](PerformanceEvents['SDK_POST_TEST']),await _0x11860b[_0x4abfa2(0x7a)](sleep,0x3e8),PerformanceTester['stopMonitoring'](),_0x554a50;},exports[a58_0x135376(0x88)]=async(_0x273191,_0x3c2230,_0x3a5d9b,_0x231d4d,_0xdcb3a6)=>{const _0x2cad6b=a58_0x135376,_0x4d9eb5={'xxMrH':function(_0x22bb37,_0xebdaa1){return _0x22bb37(_0xebdaa1);},'MBjGr':_0x2cad6b(0x85),'cfApg':_0x2cad6b(0x81)},_0x115bc1={'capability':_0x273191,..._0x3c2230},_0x5a0215={};_0x5a0215['configuration']=_0x115bc1,_0x5a0215[_0x2cad6b(0x76)]=_0xdcb3a6;const _0x21e48e=_0x5a0215,_0x25f922=_0x4d9eb5[_0x2cad6b(0x8f)](require,_0x4d9eb5['MBjGr']),_0xdf7e32=new _0x25f922(_0x4d9eb5[_0x2cad6b(0x72)],_0x21e48e,_0x3a5d9b,_0x231d4d);return await _0xdf7e32[_0x2cad6b(0x7e)]();},exports[a58_0x135376(0x8c)]=async _0x5b37f7=>{const _0xcc6730=a58_0x135376,_0x58c1a6={'bhwIi':function(_0x2d9dd2,_0x3e3942){return _0x2d9dd2(_0x3e3942);},'pLzjV':_0xcc6730(0x85),'atCah':_0xcc6730(0x7d)},_0x1dfdbe=_0x58c1a6[_0xcc6730(0x73)](require,_0x58c1a6[_0xcc6730(0x91)]),_0x36d746=new _0x1dfdbe(_0x58c1a6['atCah'],_0x5b37f7);return await _0x36d746['run']();};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a59_0x1c25(){const _0xfe0b71=['vanillaWorker','812370fNslXN','1014376GwJrlw','28Gfcwnk','./runTest','650672aZEcxt','xUKei','10LWYGmI','27QKzSTY','409599RqkQvC','661227uEvOFm','3557860iGHuSk','cucumberWorker','ASZRo','worker','262696tyJRtr'];a59_0x1c25=function(){return _0xfe0b71;};return a59_0x1c25();}const a59_0x22e898=a59_0x3f48;(function(_0x4c8414,_0x3f4ba2){const _0x263e2a=a59_0x3f48,_0x5dd8d9=_0x4c8414();while(!![]){try{const _0x2c33fb=-parseInt(_0x263e2a(0xfa))/0x1+parseInt(_0x263e2a(0xf3))/0x2+-parseInt(_0x263e2a(0xfb))/0x3+-parseInt(_0x263e2a(0xf0))/0x4+parseInt(_0x263e2a(0xf8))/0x5*(-parseInt(_0x263e2a(0xf2))/0x6)+-parseInt(_0x263e2a(0xf4))/0x7*(parseInt(_0x263e2a(0xf6))/0x8)+-parseInt(_0x263e2a(0xf9))/0x9*(-parseInt(_0x263e2a(0xec))/0xa);if(_0x2c33fb===_0x3f4ba2)break;else _0x5dd8d9['push'](_0x5dd8d9['shift']());}catch(_0x6a2068){_0x5dd8d9['push'](_0x5dd8d9['shift']());}}}(a59_0x1c25,0x45072));function a59_0x3f48(_0x32993f,_0x100498){const _0x1c25ab=a59_0x1c25();return a59_0x3f48=function(_0x3f4801,_0x15b6af){_0x3f4801=_0x3f4801-0xec;let _0x12d002=_0x1c25ab[_0x3f4801];return _0x12d002;},a59_0x3f48(_0x32993f,_0x100498);}const {runTest,runCucumberTest,runVanillaTest}=require(a59_0x22e898(0xf5));exports[a59_0x22e898(0xef)]=async(_0x1f2cf1,_0x4e9d23)=>{const _0x380467=a59_0x22e898,_0x1d02d2={'ASZRo':function(_0x3ae658,_0x5e5cdb,_0x5f950){return _0x3ae658(_0x5e5cdb,_0x5f950);}};return await _0x1d02d2[_0x380467(0xee)](runTest,_0x1f2cf1,_0x4e9d23);},exports[a59_0x22e898(0xed)]=async(_0x5beda0,_0x2c559d,_0x39c94d,_0x34bc2e,_0x386770)=>{const _0xdaa7cd=a59_0x22e898,_0x2c4650={'xUKei':function(_0x461034,_0x1a0e9e,_0x913dce,_0x2afb48,_0x33754e,_0x1a23c0){return _0x461034(_0x1a0e9e,_0x913dce,_0x2afb48,_0x33754e,_0x1a23c0);}};return await _0x2c4650[_0xdaa7cd(0xf7)](runCucumberTest,_0x5beda0,_0x2c559d,_0x39c94d,_0x34bc2e,_0x386770);},exports[a59_0x22e898(0xf1)]=async _0x4c8317=>{const _0x40724f={'BKEDM':function(_0x5c03d7,_0x230ca7){return _0x5c03d7(_0x230ca7);}};return await _0x40724f['BKEDM'](runVanillaTest,_0x4c8317);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a60_0x4492(_0x547558,_0x109d26){const _0x5ca3aa=a60_0x5ca3();return a60_0x4492=function(_0x4492a1,_0x5489e2){_0x4492a1=_0x4492a1-0x1b2;let _0x2c8c25=_0x5ca3aa[_0x4492a1];return _0x2c8c25;},a60_0x4492(_0x547558,_0x109d26);}function a60_0x5ca3(){const _0xebed86=['ljbzW','rkoTr','api','qoniE','getAutoCaptureLogsAPIUrl','PjxKd','wMPgH','WNEsA','observability','APcHU','8kYoCup','EDS_URL','apis','ftBgt','ftDwy','jHFVH','mMWhc','qFmyi','KUdoR','NgcPX','60093fgQQWS','kiuuv','automate','lQSHE','EBOvN','/puppeteer?caps=','jFkfc','XaXdF','mBoBk','gtFhD','gvqki','CiKJO','GsIce','BROWSERSTACK_API_URL','getPlaywrightHubUrl','lKuzu','./sharedUtils','getAppAutomateSessionStatusAPIUrl','KnItD','APP_UPLOAD_URL','OvIeJ','getAutomateSessionNameAPIUrl','69996938QGwfBF','getBStackAPIUrl','endsWith','rbKew','xGdZM','iMQaE','73126aBcjTB','getAutomateSessionsListAPIUrl','XsZty','OBSERVABILITY_UPLOAD_URL','getInstance','getAppAutomateSessionNameAPIUrl','PLDFh','15195820cdbrNJ','qMwFo','getAppAutomateSessionsListAPIUrl','crnKX','9981828THkjMa','KGptC','zEzqX','getPuppeteerHubUrl','zNxjL','JCmUV','7035255vsUlgO','getConfig','LyvCc','EsFCs','7vuCrPX','DJPHt','toString','Oiqvy','mCaIt','ubSPa','HubWS','AnTVO','rMKcC','obSlS','wss:','../v2/browserstackCLI','AfhgK','apntO','1568HFPgkX','eetyN','msePC','cdp','KLOkx','liICe','3033663eQuiyL','replace','appAutomate','QKYiG','BigyS','pDmwg','wIKax','upload','4kMFBuT'];a60_0x5ca3=function(){return _0xebed86;};return a60_0x5ca3();}const a60_0x29efb4=a60_0x4492;(function(_0x54d727,_0x1e860d){const _0x541c57=a60_0x4492,_0x373909=_0x54d727();while(!![]){try{const _0x12df32=-parseInt(_0x541c57(0x212))/0x1*(-parseInt(_0x541c57(0x1d6))/0x2)+parseInt(_0x541c57(0x1ff))/0x3*(parseInt(_0x541c57(0x207))/0x4)+parseInt(_0x541c57(0x1e7))/0x5+parseInt(_0x541c57(0x1e1))/0x6*(parseInt(_0x541c57(0x1eb))/0x7)+parseInt(_0x541c57(0x1f9))/0x8*(parseInt(_0x541c57(0x1ba))/0x9)+parseInt(_0x541c57(0x1dd))/0xa+-parseInt(_0x541c57(0x1d0))/0xb;if(_0x12df32===_0x1e860d)break;else _0x373909['push'](_0x373909['shift']());}catch(_0x1ce870){_0x373909['push'](_0x373909['shift']());}}}(a60_0x5ca3,0xccea2));const constants=require('./constants'),{nestedKeyValue}=require(a60_0x29efb4(0x1ca)),getBrowserstackCLI=()=>{const _0x3adcc5=a60_0x29efb4,_0x3b872e={'JCmUV':function(_0x3fb408,_0x2b4482){return _0x3fb408(_0x2b4482);},'crnKX':_0x3adcc5(0x1f6)};return _0x3b872e[_0x3adcc5(0x1e6)](require,_0x3b872e[_0x3adcc5(0x1e0)]);};class APIUtilityMethods{static[a60_0x29efb4(0x1d1)](_0x203842){const _0xf3cc38=a60_0x29efb4,_0xe24a85={'eetyN':function(_0x1dd25f){return _0x1dd25f();},'ftBgt':function(_0x42997b,_0x595a2b,_0x2e9d52){return _0x42997b(_0x595a2b,_0x2e9d52);},'obSlS':'apis','Zvizd':_0xf3cc38(0x1bc),'QKYiG':_0xf3cc38(0x20a),'cjxGn':function(_0x141a2a,_0x122279){return _0x141a2a===_0x122279;},'KUdoR':function(_0x15693b,_0x49adaf){return _0x15693b+_0x49adaf;}},_0xe435ae=_0xe24a85[_0xf3cc38(0x1fa)](getBrowserstackCLI),_0xc62387=_0xe24a85[_0xf3cc38(0x1b3)](nestedKeyValue,_0xe435ae[_0xf3cc38(0x1da)]()[_0xf3cc38(0x1e8)](),[_0xe24a85[_0xf3cc38(0x1f4)],_0xe24a85['Zvizd'],_0xe24a85[_0xf3cc38(0x202)]])||constants[_0xf3cc38(0x1c7)];if(!_0x203842||_0xe24a85['cjxGn'](_0x203842,''))return _0xc62387;const _0x8ee801=_0xc62387[_0xf3cc38(0x1d2)]('/')?_0xc62387:_0xe24a85[_0xf3cc38(0x1b8)](_0xc62387,'/');return new URL(_0x203842,_0x8ee801)['toString']();}static['getEdsInstrumentationAPIUrl'](_0x269061){const _0x3ee50c=a60_0x29efb4,_0x5b4260={'xOKDf':function(_0x45fd90){return _0x45fd90();},'qMwFo':function(_0x142018,_0x3a478a,_0x11dd57){return _0x142018(_0x3a478a,_0x11dd57);},'EHTPo':_0x3ee50c(0x1b2),'OruIE':'edsInstrumentation','apntO':_0x3ee50c(0x20a),'BaUYn':function(_0x3293ba,_0xdb457c){return _0x3293ba===_0xdb457c;},'qoniE':function(_0x5e0569,_0x3bd006){return _0x5e0569+_0x3bd006;}},_0xa485a9=_0x5b4260['xOKDf'](getBrowserstackCLI),_0x11b0f5=_0x5b4260[_0x3ee50c(0x1de)](nestedKeyValue,_0xa485a9[_0x3ee50c(0x1da)]()[_0x3ee50c(0x1e8)](),[_0x5b4260['EHTPo'],_0x5b4260['OruIE'],_0x5b4260[_0x3ee50c(0x1f8)]])||constants[_0x3ee50c(0x213)];if(!_0x269061||_0x5b4260['BaUYn'](_0x269061,''))return _0x11b0f5;const _0x23efa7=_0x11b0f5[_0x3ee50c(0x1d2)]('/')?_0x11b0f5:_0x5b4260[_0x3ee50c(0x20b)](_0x11b0f5,'/');return new URL(_0x269061,_0x23efa7)['toString']();}static['getAutomateSessionStatusAPIUrl'](_0x373548){const _0x290c4c=a60_0x29efb4,_0x307dd9={'SFJaa':function(_0x54d13a){return _0x54d13a();},'APcHU':function(_0x293d0c,_0x178042,_0x58e179){return _0x293d0c(_0x178042,_0x58e179);},'iMQaE':_0x290c4c(0x1b2),'zNxjL':_0x290c4c(0x1bc),'kLcWF':_0x290c4c(0x20a),'wIKax':function(_0x46603f,_0xc604c){return _0x46603f===_0xc604c;},'DJPHt':function(_0x3d59af,_0x133e79){return _0x3d59af+_0x133e79;}},_0x383d54=_0x307dd9['SFJaa'](getBrowserstackCLI),_0x5f1635=_0x307dd9[_0x290c4c(0x211)](nestedKeyValue,_0x383d54[_0x290c4c(0x1da)]()[_0x290c4c(0x1e8)](),[_0x307dd9[_0x290c4c(0x1d5)],_0x307dd9[_0x290c4c(0x1e5)],_0x307dd9['kLcWF']])||constants[_0x290c4c(0x1c7)];if(!_0x373548||_0x307dd9[_0x290c4c(0x205)](_0x373548,''))return _0x5f1635;const _0x268b2f=_0x5f1635[_0x290c4c(0x1d2)]('/')?_0x5f1635:_0x307dd9[_0x290c4c(0x1ec)](_0x5f1635,'/');return new URL(_0x373548,_0x268b2f)[_0x290c4c(0x1ed)]();}static[a60_0x29efb4(0x1cb)](_0xd2a51f){const _0x21cb99=a60_0x29efb4,_0x2cc087={'qFmyi':function(_0x223657){return _0x223657();},'Oiqvy':function(_0x160c1c,_0x5e991a,_0x4ccebc){return _0x160c1c(_0x5e991a,_0x4ccebc);},'fsKPC':_0x21cb99(0x1b2),'pDmwg':'appAutomate','HubWS':_0x21cb99(0x20a),'GTjnB':function(_0x29fb35,_0x118244){return _0x29fb35===_0x118244;},'zEzqX':function(_0xa1082c,_0x1174ce){return _0xa1082c+_0x1174ce;}},_0x1f165a=_0x2cc087[_0x21cb99(0x1b7)](getBrowserstackCLI),_0x29af97=_0x2cc087[_0x21cb99(0x1ee)](nestedKeyValue,_0x1f165a[_0x21cb99(0x1da)]()['getConfig'](),[_0x2cc087['fsKPC'],_0x2cc087[_0x21cb99(0x204)],_0x2cc087[_0x21cb99(0x1f1)]])||constants['BROWSERSTACK_API_URL'];if(!_0xd2a51f||_0x2cc087['GTjnB'](_0xd2a51f,''))return _0x29af97;const _0x54235d=_0x29af97[_0x21cb99(0x1d2)]('/')?_0x29af97:_0x2cc087[_0x21cb99(0x1e3)](_0x29af97,'/');return new URL(_0xd2a51f,_0x54235d)[_0x21cb99(0x1ed)]();}static[a60_0x29efb4(0x1cf)](_0x1afe8f){const _0x13124b=a60_0x29efb4,_0x55c226={'HBREJ':function(_0x18bfd3){return _0x18bfd3();},'ftDwy':function(_0x102b8e,_0x16132d,_0x7281eb){return _0x102b8e(_0x16132d,_0x7281eb);},'VPkuH':_0x13124b(0x1b2),'LyvCc':_0x13124b(0x1bc),'CiKJO':_0x13124b(0x20a),'WNEsA':function(_0x43d760,_0x1b6a96){return _0x43d760===_0x1b6a96;},'qTKvb':function(_0x52673d,_0x53be6c){return _0x52673d+_0x53be6c;}},_0x33ce8f=_0x55c226['HBREJ'](getBrowserstackCLI),_0x5e1063=_0x55c226[_0x13124b(0x1b4)](nestedKeyValue,_0x33ce8f['getInstance']()[_0x13124b(0x1e8)](),[_0x55c226['VPkuH'],_0x55c226[_0x13124b(0x1e9)],_0x55c226[_0x13124b(0x1c5)]])||constants['BROWSERSTACK_API_URL'];if(!_0x1afe8f||_0x55c226[_0x13124b(0x20f)](_0x1afe8f,''))return _0x5e1063;const _0x140c1d=_0x5e1063[_0x13124b(0x1d2)]('/')?_0x5e1063:_0x55c226['qTKvb'](_0x5e1063,'/');return new URL(_0x1afe8f,_0x140c1d)['toString']();}static[a60_0x29efb4(0x1db)](_0x284b7e){const _0x32e389=a60_0x29efb4,_0x242121={'wKrNL':function(_0x251f9d){return _0x251f9d();},'BzGZM':function(_0x182227,_0x1a1a3b,_0x40f373){return _0x182227(_0x1a1a3b,_0x40f373);},'PjxKd':_0x32e389(0x1b2),'lQSHE':_0x32e389(0x201),'ubSPa':_0x32e389(0x20a),'BokFm':function(_0x4f2264,_0x46f4e4){return _0x4f2264===_0x46f4e4;},'OvIeJ':function(_0x4ecfed,_0x4988e8){return _0x4ecfed+_0x4988e8;}},_0x3e4cdf=_0x242121['wKrNL'](getBrowserstackCLI),_0x1f8f76=_0x242121['BzGZM'](nestedKeyValue,_0x3e4cdf[_0x32e389(0x1da)]()['getConfig'](),[_0x242121[_0x32e389(0x20d)],_0x242121[_0x32e389(0x1bd)],_0x242121[_0x32e389(0x1f0)]])||constants[_0x32e389(0x1c7)];if(!_0x284b7e||_0x242121['BokFm'](_0x284b7e,''))return _0x1f8f76;const _0x423bf8=_0x1f8f76[_0x32e389(0x1d2)]('/')?_0x1f8f76:_0x242121[_0x32e389(0x1ce)](_0x1f8f76,'/');return new URL(_0x284b7e,_0x423bf8)[_0x32e389(0x1ed)]();}static[a60_0x29efb4(0x1d7)](_0x571c78){const _0x3a8ad5=a60_0x29efb4,_0x1649ea={'kiuuv':function(_0x30d5f7){return _0x30d5f7();},'GsIce':function(_0x439d92,_0x1a6c03,_0x8a1467){return _0x439d92(_0x1a6c03,_0x8a1467);},'mCaIt':'apis','rbKew':_0x3a8ad5(0x1bc),'ljbzW':_0x3a8ad5(0x20a),'jHFVH':function(_0x45f783,_0x3a7382){return _0x45f783===_0x3a7382;},'XsZty':function(_0x7e5d38,_0x5a1434){return _0x7e5d38+_0x5a1434;}},_0x58adba=_0x1649ea[_0x3a8ad5(0x1bb)](getBrowserstackCLI),_0x3f9db8=_0x1649ea[_0x3a8ad5(0x1c6)](nestedKeyValue,_0x58adba['getInstance']()[_0x3a8ad5(0x1e8)](),[_0x1649ea[_0x3a8ad5(0x1ef)],_0x1649ea[_0x3a8ad5(0x1d3)],_0x1649ea[_0x3a8ad5(0x208)]])||constants[_0x3a8ad5(0x1c7)];if(!_0x571c78||_0x1649ea[_0x3a8ad5(0x1b5)](_0x571c78,''))return _0x3f9db8;const _0x21642d=_0x3f9db8['endsWith']('/')?_0x3f9db8:_0x1649ea[_0x3a8ad5(0x1d8)](_0x3f9db8,'/');return new URL(_0x571c78,_0x21642d)[_0x3a8ad5(0x1ed)]()[_0x3a8ad5(0x200)](/^https?:\/\//,'');}static[a60_0x29efb4(0x1df)](_0x469b2b){const _0x59f248=a60_0x29efb4,_0xcb9d78={'AfhgK':function(_0x3475af){return _0x3475af();},'tmPsQ':function(_0x47b5ca,_0x36022f,_0x87a00){return _0x47b5ca(_0x36022f,_0x87a00);},'wMPgH':'apis','YVFXp':_0x59f248(0x201),'lKuzu':'api','EsFCs':function(_0x3387e2,_0x24420b){return _0x3387e2===_0x24420b;},'JKoBZ':function(_0x4e7ef7,_0x339b26){return _0x4e7ef7+_0x339b26;}},_0x396352=_0xcb9d78[_0x59f248(0x1f7)](getBrowserstackCLI),_0x4e4b6d=_0xcb9d78['tmPsQ'](nestedKeyValue,_0x396352[_0x59f248(0x1da)]()[_0x59f248(0x1e8)](),[_0xcb9d78[_0x59f248(0x20e)],_0xcb9d78['YVFXp'],_0xcb9d78[_0x59f248(0x1c9)]])||constants[_0x59f248(0x1cd)];if(!_0x469b2b||_0xcb9d78[_0x59f248(0x1ea)](_0x469b2b,''))return _0x4e4b6d;const _0x193b8d=_0x4e4b6d[_0x59f248(0x1d2)]('/')?_0x4e4b6d:_0xcb9d78['JKoBZ'](_0x4e4b6d,'/');return new URL(_0x469b2b,_0x193b8d)[_0x59f248(0x1ed)]()['replace'](/^https?:\/\//,'');}static[a60_0x29efb4(0x20c)](_0x40caf7){const _0x5b88a5=a60_0x29efb4,_0x17b022={'uFTYm':function(_0x214836){return _0x214836();},'KLOkx':function(_0x268421,_0x5e465b,_0x4779c6){return _0x268421(_0x5e465b,_0x4779c6);},'XaXdF':_0x5b88a5(0x1b2),'mMWhc':_0x5b88a5(0x210),'AXpqA':_0x5b88a5(0x206),'gvqki':function(_0x485d08,_0x4f6d08){return _0x485d08===_0x4f6d08;},'KGptC':function(_0x33d96f,_0x204e33){return _0x33d96f+_0x204e33;}},_0x1b9954=_0x17b022['uFTYm'](getBrowserstackCLI),_0x215751=_0x17b022[_0x5b88a5(0x1fd)](nestedKeyValue,_0x1b9954['getInstance']()[_0x5b88a5(0x1e8)](),[_0x17b022[_0x5b88a5(0x1c1)],_0x17b022[_0x5b88a5(0x1b6)],_0x17b022['AXpqA']])||constants[_0x5b88a5(0x1d9)];if(!_0x40caf7||_0x17b022[_0x5b88a5(0x1c4)](_0x40caf7,''))return _0x215751;const _0x78cf66=_0x215751['endsWith']('/')?_0x215751:_0x17b022[_0x5b88a5(0x1e2)](_0x215751,'/');return new URL(_0x40caf7,_0x78cf66)[_0x5b88a5(0x1ed)]();}static[a60_0x29efb4(0x1c8)](_0x335108){const _0x50250e=a60_0x29efb4,_0x47346f={'msePC':function(_0x410dff){return _0x410dff();},'liICe':function(_0x274720,_0x564bed,_0x37d84d){return _0x274720(_0x564bed,_0x37d84d);},'AnTVO':_0x50250e(0x1b2),'EBOvN':_0x50250e(0x1bc),'Ukozi':'cdp','CMfJr':_0x50250e(0x1f5),'JrnDv':function(_0xf9e43a,_0x23424b){return _0xf9e43a===_0x23424b;},'BigyS':function(_0x17f69f,_0x56c3f8){return _0x17f69f+_0x56c3f8;},'jFkfc':'/playwright?caps='},_0x41a013=_0x47346f[_0x50250e(0x1fb)](getBrowserstackCLI),_0x1c639f=_0x47346f[_0x50250e(0x1fe)](nestedKeyValue,_0x41a013[_0x50250e(0x1da)]()[_0x50250e(0x1e8)](),[_0x47346f[_0x50250e(0x1f2)],_0x47346f[_0x50250e(0x1be)],_0x47346f['Ukozi']]),_0x4c6ebf=(_0x1c639f?_0x1c639f[_0x50250e(0x200)](/^https:/,_0x47346f['CMfJr']):null)||constants['PLAYWRIGHT_HUB_URL'];let _0x515213;if(!_0x335108||_0x47346f['JrnDv'](_0x335108,''))_0x515213=_0x4c6ebf;else{const _0x74fdc4=_0x4c6ebf['endsWith']('/')?_0x4c6ebf:_0x47346f[_0x50250e(0x203)](_0x4c6ebf,'/');_0x515213=new URL(_0x335108,_0x74fdc4)[_0x50250e(0x1ed)]();}return!_0x515213['endsWith'](_0x47346f[_0x50250e(0x1c0)])&&(_0x515213+=_0x47346f[_0x50250e(0x1c0)]),_0x515213;}static[a60_0x29efb4(0x1e4)](_0x4488a4){const _0x42228a=a60_0x29efb4,_0x2ddda4={'PLDFh':function(_0x3487b4){return _0x3487b4();},'gtFhD':function(_0x49b75c,_0x41acfb,_0x2af06c){return _0x49b75c(_0x41acfb,_0x2af06c);},'GdHbX':_0x42228a(0x1b2),'KnItD':'automate','xGdZM':_0x42228a(0x1fc),'rMKcC':_0x42228a(0x1f5),'mBoBk':function(_0x5b1ee5,_0x5c65d2){return _0x5b1ee5===_0x5c65d2;},'NgcPX':function(_0x375e9a,_0x419206){return _0x375e9a+_0x419206;},'rkoTr':_0x42228a(0x1bf)},_0x53621c=_0x2ddda4[_0x42228a(0x1dc)](getBrowserstackCLI),_0x540d81=_0x2ddda4[_0x42228a(0x1c3)](nestedKeyValue,_0x53621c[_0x42228a(0x1da)]()['getConfig'](),[_0x2ddda4['GdHbX'],_0x2ddda4[_0x42228a(0x1cc)],_0x2ddda4[_0x42228a(0x1d4)]]),_0x31a13e=(_0x540d81?_0x540d81[_0x42228a(0x200)](/^https:/,_0x2ddda4[_0x42228a(0x1f3)]):null)||constants['PUPPETEER_HUB_URL'];let _0x4a076;if(!_0x4488a4||_0x2ddda4[_0x42228a(0x1c2)](_0x4488a4,''))_0x4a076=_0x31a13e;else{const _0x5974d5=_0x31a13e[_0x42228a(0x1d2)]('/')?_0x31a13e:_0x2ddda4[_0x42228a(0x1b9)](_0x31a13e,'/');_0x4a076=new URL(_0x4488a4,_0x5974d5)['toString']();}return!_0x4a076[_0x42228a(0x1d2)](_0x2ddda4[_0x42228a(0x209)])&&(_0x4a076+=_0x2ddda4[_0x42228a(0x209)]),_0x4a076;}}module['exports']=APIUtilityMethods;
|
|
1
|
+
const a60_0x2c737d=a60_0x1f6f;(function(_0x4a205d,_0x32f175){const _0x3531df=a60_0x1f6f,_0x47cda1=_0x4a205d();while(!![]){try{const _0x4998ee=parseInt(_0x3531df(0x22b))/0x1+parseInt(_0x3531df(0x215))/0x2*(parseInt(_0x3531df(0x1eb))/0x3)+parseInt(_0x3531df(0x211))/0x4*(-parseInt(_0x3531df(0x226))/0x5)+parseInt(_0x3531df(0x232))/0x6*(parseInt(_0x3531df(0x205))/0x7)+-parseInt(_0x3531df(0x21c))/0x8*(parseInt(_0x3531df(0x1e5))/0x9)+parseInt(_0x3531df(0x1e7))/0xa+parseInt(_0x3531df(0x20a))/0xb*(-parseInt(_0x3531df(0x1f4))/0xc);if(_0x4998ee===_0x32f175)break;else _0x47cda1['push'](_0x47cda1['shift']());}catch(_0x26af2b){_0x47cda1['push'](_0x47cda1['shift']());}}}(a60_0x262e,0xc9782));const constants=require('./constants'),{nestedKeyValue}=require(a60_0x2c737d(0x245)),getBrowserstackCLI=()=>{const _0x5e4a91=a60_0x2c737d,_0x3fc9a6={'hUZaC':function(_0x1c90da,_0x38b6ca){return _0x1c90da(_0x38b6ca);},'TcVWS':_0x5e4a91(0x1ed)};return _0x3fc9a6[_0x5e4a91(0x22c)](require,_0x3fc9a6[_0x5e4a91(0x1ee)]);};function a60_0x1f6f(_0x401ce6,_0x30b3f1){const _0x262ebd=a60_0x262e();return a60_0x1f6f=function(_0x1f6fb3,_0x32c0ae){_0x1f6fb3=_0x1f6fb3-0x1e5;let _0x2fd0cc=_0x262ebd[_0x1f6fb3];return _0x2fd0cc;},a60_0x1f6f(_0x401ce6,_0x30b3f1);}class APIUtilityMethods{static[a60_0x2c737d(0x1f8)](_0x3e1ad7){const _0x1a49ac=a60_0x2c737d,_0x75d345={'fRiob':function(_0x4b0430){return _0x4b0430();},'TvBuR':function(_0x500985,_0x5ec202,_0x4e5b7a){return _0x500985(_0x5ec202,_0x4e5b7a);},'nGvoT':_0x1a49ac(0x1ff),'BFfYM':_0x1a49ac(0x1f0),'JoyDD':_0x1a49ac(0x1e8),'OiQRM':function(_0x50cb6b,_0x407fb7){return _0x50cb6b===_0x407fb7;},'yOiqA':function(_0xa51dc4,_0x1b7f14){return _0xa51dc4+_0x1b7f14;}},_0x1a82d4=_0x75d345[_0x1a49ac(0x207)](getBrowserstackCLI),_0x18a552=_0x75d345[_0x1a49ac(0x20f)](nestedKeyValue,_0x1a82d4[_0x1a49ac(0x204)]()[_0x1a49ac(0x217)](),[_0x75d345[_0x1a49ac(0x1ef)],_0x75d345['BFfYM'],_0x75d345[_0x1a49ac(0x1f9)]])||constants[_0x1a49ac(0x239)];if(!_0x3e1ad7||_0x75d345[_0x1a49ac(0x221)](_0x3e1ad7,''))return _0x18a552;const _0x25adb5=_0x18a552[_0x1a49ac(0x233)]('/')?_0x18a552:_0x75d345[_0x1a49ac(0x23d)](_0x18a552,'/');return new URL(_0x3e1ad7,_0x25adb5)[_0x1a49ac(0x21d)]();}static['getEdsInstrumentationAPIUrl'](_0x3fe72f){const _0x3ac19d=a60_0x2c737d,_0x46a086={'gFYIN':function(_0x2e630a){return _0x2e630a();},'fyujD':function(_0x56170b,_0x50a1bc,_0x218ada){return _0x56170b(_0x50a1bc,_0x218ada);},'NHJkh':_0x3ac19d(0x1ff),'daREA':'edsInstrumentation','hnwmg':_0x3ac19d(0x1e8),'qQOeB':function(_0x2bf866,_0x360962){return _0x2bf866===_0x360962;},'TgONM':function(_0x213b6e,_0x1a1830){return _0x213b6e+_0x1a1830;}},_0x4a3d93=_0x46a086[_0x3ac19d(0x210)](getBrowserstackCLI),_0x52ff08=_0x46a086['fyujD'](nestedKeyValue,_0x4a3d93['getInstance']()[_0x3ac19d(0x217)](),[_0x46a086['NHJkh'],_0x46a086[_0x3ac19d(0x240)],_0x46a086['hnwmg']])||constants['EDS_URL'];if(!_0x3fe72f||_0x46a086[_0x3ac19d(0x223)](_0x3fe72f,''))return _0x52ff08;const _0x4c6626=_0x52ff08[_0x3ac19d(0x233)]('/')?_0x52ff08:_0x46a086[_0x3ac19d(0x236)](_0x52ff08,'/');return new URL(_0x3fe72f,_0x4c6626)['toString']();}static[a60_0x2c737d(0x224)](_0x96d842){const _0x4588bf=a60_0x2c737d,_0x34320b={'kgAIz':function(_0x306946){return _0x306946();},'QcNsJ':function(_0x1814ab,_0x469e77,_0x1983d4){return _0x1814ab(_0x469e77,_0x1983d4);},'IVOxB':_0x4588bf(0x1ff),'GOgnY':_0x4588bf(0x1f0),'RhmVT':_0x4588bf(0x1e8),'sXJfr':function(_0x1e9e9e,_0x5d1893){return _0x1e9e9e===_0x5d1893;},'aKxJl':function(_0x405207,_0xde8244){return _0x405207+_0xde8244;}},_0x3556fe=_0x34320b[_0x4588bf(0x1f3)](getBrowserstackCLI),_0x56ccb2=_0x34320b[_0x4588bf(0x21a)](nestedKeyValue,_0x3556fe[_0x4588bf(0x204)]()['getConfig'](),[_0x34320b[_0x4588bf(0x20b)],_0x34320b[_0x4588bf(0x22e)],_0x34320b[_0x4588bf(0x1fb)]])||constants['BROWSERSTACK_API_URL'];if(!_0x96d842||_0x34320b['sXJfr'](_0x96d842,''))return _0x56ccb2;const _0x38c5f9=_0x56ccb2[_0x4588bf(0x233)]('/')?_0x56ccb2:_0x34320b['aKxJl'](_0x56ccb2,'/');return new URL(_0x96d842,_0x38c5f9)[_0x4588bf(0x21d)]();}static[a60_0x2c737d(0x23c)](_0x570c2f){const _0x4531a3=a60_0x2c737d,_0x528778={'UXnVT':function(_0x1c0456){return _0x1c0456();},'EAVEx':function(_0x5cc3fc,_0x497d6b,_0x449308){return _0x5cc3fc(_0x497d6b,_0x449308);},'AhegM':_0x4531a3(0x1ff),'RHVYX':'appAutomate','LAzNp':_0x4531a3(0x1e8),'hSSqs':function(_0x550635,_0x3809dd){return _0x550635===_0x3809dd;},'pRdtj':function(_0x2db191,_0x4bb392){return _0x2db191+_0x4bb392;}},_0x42b7b5=_0x528778['UXnVT'](getBrowserstackCLI),_0x46c62a=_0x528778[_0x4531a3(0x200)](nestedKeyValue,_0x42b7b5[_0x4531a3(0x204)]()[_0x4531a3(0x217)](),[_0x528778['AhegM'],_0x528778[_0x4531a3(0x1fc)],_0x528778['LAzNp']])||constants[_0x4531a3(0x239)];if(!_0x570c2f||_0x528778['hSSqs'](_0x570c2f,''))return _0x46c62a;const _0x96cf3=_0x46c62a[_0x4531a3(0x233)]('/')?_0x46c62a:_0x528778[_0x4531a3(0x22d)](_0x46c62a,'/');return new URL(_0x570c2f,_0x96cf3)[_0x4531a3(0x21d)]();}static['getAutomateSessionNameAPIUrl'](_0x45664c){const _0xf8cfb1=a60_0x2c737d,_0x4f8717={'viCrf':function(_0xfb58eb){return _0xfb58eb();},'ckKAB':function(_0x27bfaf,_0x5e79c9,_0x4c8b4f){return _0x27bfaf(_0x5e79c9,_0x4c8b4f);},'OAXyo':_0xf8cfb1(0x1ff),'przfR':_0xf8cfb1(0x1f0),'VuGVm':_0xf8cfb1(0x1e8),'RnPbW':function(_0x330466,_0x291555){return _0x330466===_0x291555;},'xsXuL':function(_0x4a3ebc,_0x35711a){return _0x4a3ebc+_0x35711a;}},_0x4fb597=_0x4f8717[_0xf8cfb1(0x235)](getBrowserstackCLI),_0x9f4cb2=_0x4f8717[_0xf8cfb1(0x219)](nestedKeyValue,_0x4fb597[_0xf8cfb1(0x204)]()[_0xf8cfb1(0x217)](),[_0x4f8717[_0xf8cfb1(0x209)],_0x4f8717[_0xf8cfb1(0x213)],_0x4f8717['VuGVm']])||constants['BROWSERSTACK_API_URL'];if(!_0x45664c||_0x4f8717[_0xf8cfb1(0x20d)](_0x45664c,''))return _0x9f4cb2;const _0x534b7b=_0x9f4cb2['endsWith']('/')?_0x9f4cb2:_0x4f8717[_0xf8cfb1(0x23b)](_0x9f4cb2,'/');return new URL(_0x45664c,_0x534b7b)[_0xf8cfb1(0x21d)]();}static[a60_0x2c737d(0x1fd)](_0x126380){const _0x5001d7=a60_0x2c737d,_0x446196={'VqydW':function(_0x46f007){return _0x46f007();},'hnZTP':function(_0x5249d3,_0x1b17ce,_0x1497e9){return _0x5249d3(_0x1b17ce,_0x1497e9);},'IHKuy':_0x5001d7(0x1ff),'faKme':_0x5001d7(0x21f),'gXrVD':_0x5001d7(0x1e8),'wRSbJ':function(_0x167ff0,_0x3866fc){return _0x167ff0===_0x3866fc;},'qbVjA':function(_0x40735f,_0xec5835){return _0x40735f+_0xec5835;}},_0x386fc6=_0x446196[_0x5001d7(0x206)](getBrowserstackCLI),_0x21a3cd=_0x446196[_0x5001d7(0x1e9)](nestedKeyValue,_0x386fc6[_0x5001d7(0x204)]()[_0x5001d7(0x217)](),[_0x446196[_0x5001d7(0x23a)],_0x446196['faKme'],_0x446196[_0x5001d7(0x1ec)]])||constants[_0x5001d7(0x239)];if(!_0x126380||_0x446196[_0x5001d7(0x1f2)](_0x126380,''))return _0x21a3cd;const _0x4bebec=_0x21a3cd[_0x5001d7(0x233)]('/')?_0x21a3cd:_0x446196[_0x5001d7(0x227)](_0x21a3cd,'/');return new URL(_0x126380,_0x4bebec)[_0x5001d7(0x21d)]();}static['getAutomateSessionsListAPIUrl'](_0xfc3beb){const _0x62082f=a60_0x2c737d,_0x2cc3c7={'oCGOT':function(_0x57dc40){return _0x57dc40();},'jxRCZ':function(_0x180016,_0x4ea348,_0x535fc1){return _0x180016(_0x4ea348,_0x535fc1);},'hzXOQ':'apis','VsmPj':_0x62082f(0x1f0),'JyFoT':_0x62082f(0x1e8),'NeidQ':function(_0x1735d1,_0x4f5370){return _0x1735d1===_0x4f5370;},'pHgmD':function(_0x2c1783,_0x251b69){return _0x2c1783+_0x251b69;}},_0x132e45=_0x2cc3c7[_0x62082f(0x201)](getBrowserstackCLI),_0x3b03b3=_0x2cc3c7[_0x62082f(0x238)](nestedKeyValue,_0x132e45['getInstance']()['getConfig'](),[_0x2cc3c7[_0x62082f(0x229)],_0x2cc3c7['VsmPj'],_0x2cc3c7['JyFoT']])||constants[_0x62082f(0x239)];if(!_0xfc3beb||_0x2cc3c7[_0x62082f(0x234)](_0xfc3beb,''))return _0x3b03b3;const _0x1058ea=_0x3b03b3[_0x62082f(0x233)]('/')?_0x3b03b3:_0x2cc3c7['pHgmD'](_0x3b03b3,'/');return new URL(_0xfc3beb,_0x1058ea)[_0x62082f(0x21d)]()[_0x62082f(0x214)](/^https?:\/\//,'');}static[a60_0x2c737d(0x225)](_0x2d851d){const _0x4b0a61=a60_0x2c737d,_0x23a2a5={'NNqcN':function(_0x23c199){return _0x23c199();},'BHTPF':function(_0x5b7883,_0x315317,_0xb41be5){return _0x5b7883(_0x315317,_0xb41be5);},'RTeoE':'apis','cTysE':_0x4b0a61(0x21f),'GKnDN':_0x4b0a61(0x1e8),'HlOoa':function(_0x5d686f,_0x2c4576){return _0x5d686f===_0x2c4576;},'SmFxp':function(_0x566c8d,_0x7be26e){return _0x566c8d+_0x7be26e;}},_0x53bb0c=_0x23a2a5['NNqcN'](getBrowserstackCLI),_0x408543=_0x23a2a5[_0x4b0a61(0x21b)](nestedKeyValue,_0x53bb0c[_0x4b0a61(0x204)]()[_0x4b0a61(0x217)](),[_0x23a2a5[_0x4b0a61(0x1fe)],_0x23a2a5[_0x4b0a61(0x246)],_0x23a2a5['GKnDN']])||constants[_0x4b0a61(0x208)];if(!_0x2d851d||_0x23a2a5['HlOoa'](_0x2d851d,''))return _0x408543;const _0xf2a13e=_0x408543['endsWith']('/')?_0x408543:_0x23a2a5[_0x4b0a61(0x230)](_0x408543,'/');return new URL(_0x2d851d,_0xf2a13e)['toString']()[_0x4b0a61(0x214)](/^https?:\/\//,'');}static[a60_0x2c737d(0x237)](_0x27409f){const _0x716eee=a60_0x2c737d,_0x1cf4b8={'UDfpn':function(_0x1ead55){return _0x1ead55();},'wJHWp':function(_0x402240,_0x200c1e,_0x5c1323){return _0x402240(_0x200c1e,_0x5c1323);},'AUUPb':_0x716eee(0x1ff),'KNkmI':_0x716eee(0x202),'lTHzR':_0x716eee(0x1f7),'DWrcn':function(_0x1bace0,_0x16122a){return _0x1bace0===_0x16122a;},'ZliTJ':function(_0xf09638,_0x4dd25c){return _0xf09638+_0x4dd25c;}},_0xbe5e5d=_0x1cf4b8['UDfpn'](getBrowserstackCLI),_0x208047=_0x1cf4b8[_0x716eee(0x20e)](nestedKeyValue,_0xbe5e5d[_0x716eee(0x204)]()[_0x716eee(0x217)](),[_0x1cf4b8['AUUPb'],_0x1cf4b8[_0x716eee(0x216)],_0x1cf4b8[_0x716eee(0x21e)]])||constants[_0x716eee(0x1f6)];if(!_0x27409f||_0x1cf4b8[_0x716eee(0x1e6)](_0x27409f,''))return _0x208047;const _0x3b62fc=_0x208047[_0x716eee(0x233)]('/')?_0x208047:_0x1cf4b8['ZliTJ'](_0x208047,'/');return new URL(_0x27409f,_0x3b62fc)[_0x716eee(0x21d)]();}static[a60_0x2c737d(0x241)](_0x20188d){const _0x1caad1=a60_0x2c737d,_0x307ab2={'gFABd':function(_0x90ce32){return _0x90ce32();},'cESNr':function(_0xd7c895,_0x19a1c8,_0x1c4adc){return _0xd7c895(_0x19a1c8,_0x1c4adc);},'DuGQu':_0x1caad1(0x1ff),'DVTzA':_0x1caad1(0x1f0),'jcIGf':_0x1caad1(0x1fa),'pEHaY':_0x1caad1(0x1f5),'YsIEb':function(_0x5b3568,_0x539b08){return _0x5b3568===_0x539b08;},'eXMBX':function(_0x19d0e3,_0x2bcb90){return _0x19d0e3+_0x2bcb90;},'vjbea':_0x1caad1(0x231)},_0x4abb04=_0x307ab2[_0x1caad1(0x220)](getBrowserstackCLI),_0x27e59f=_0x307ab2[_0x1caad1(0x20c)](nestedKeyValue,_0x4abb04[_0x1caad1(0x204)]()[_0x1caad1(0x217)](),[_0x307ab2['DuGQu'],_0x307ab2[_0x1caad1(0x243)],_0x307ab2[_0x1caad1(0x22f)]]),_0x230b13=(_0x27e59f?_0x27e59f['replace'](/^https:/,_0x307ab2['pEHaY']):null)||constants[_0x1caad1(0x1f1)];let _0x2c1972;if(!_0x20188d||_0x307ab2['YsIEb'](_0x20188d,''))_0x2c1972=_0x230b13;else{const _0x404833=_0x230b13[_0x1caad1(0x233)]('/')?_0x230b13:_0x307ab2[_0x1caad1(0x228)](_0x230b13,'/');_0x2c1972=new URL(_0x20188d,_0x404833)['toString']();}return!_0x2c1972[_0x1caad1(0x233)](_0x307ab2['vjbea'])&&(_0x2c1972+=_0x307ab2['vjbea']),_0x2c1972;}static['getPuppeteerHubUrl'](_0x216697){const _0xf46627=a60_0x2c737d,_0x93b2f2={'IwwzO':function(_0x463195){return _0x463195();},'EMHVw':function(_0x2f6ff5,_0x3d3549,_0x33cf43){return _0x2f6ff5(_0x3d3549,_0x33cf43);},'hrowm':'apis','ANUcg':_0xf46627(0x1f0),'UOGiY':_0xf46627(0x1fa),'jVkRV':_0xf46627(0x1f5),'fpbBQ':function(_0x26d288,_0x232096){return _0x26d288===_0x232096;},'VzhTp':function(_0x2abd5c,_0x521af4){return _0x2abd5c+_0x521af4;},'KXiwF':_0xf46627(0x212)},_0x388ad2=_0x93b2f2[_0xf46627(0x23e)](getBrowserstackCLI),_0x1849bf=_0x93b2f2[_0xf46627(0x23f)](nestedKeyValue,_0x388ad2[_0xf46627(0x204)]()[_0xf46627(0x217)](),[_0x93b2f2[_0xf46627(0x222)],_0x93b2f2[_0xf46627(0x1ea)],_0x93b2f2[_0xf46627(0x22a)]]),_0x1827ff=(_0x1849bf?_0x1849bf[_0xf46627(0x214)](/^https:/,_0x93b2f2[_0xf46627(0x242)]):null)||constants['PUPPETEER_HUB_URL'];let _0x5b4eab;if(!_0x216697||_0x93b2f2[_0xf46627(0x218)](_0x216697,''))_0x5b4eab=_0x1827ff;else{const _0x43a967=_0x1827ff[_0xf46627(0x233)]('/')?_0x1827ff:_0x93b2f2[_0xf46627(0x203)](_0x1827ff,'/');_0x5b4eab=new URL(_0x216697,_0x43a967)[_0xf46627(0x21d)]();}return!_0x5b4eab[_0xf46627(0x233)](_0x93b2f2[_0xf46627(0x244)])&&(_0x5b4eab+=_0x93b2f2[_0xf46627(0x244)]),_0x5b4eab;}}function a60_0x262e(){const _0x1fca85=['getBStackAPIUrl','JoyDD','cdp','RhmVT','RHVYX','getAppAutomateSessionNameAPIUrl','RTeoE','apis','EAVEx','oCGOT','observability','VzhTp','getInstance','14DYjFKo','VqydW','fRiob','APP_UPLOAD_URL','OAXyo','11VHQoHE','IVOxB','cESNr','RnPbW','wJHWp','TvBuR','gFYIN','764hLqBHK','/puppeteer?caps=','przfR','replace','19868Zvutas','KNkmI','getConfig','fpbBQ','ckKAB','QcNsJ','BHTPF','8TMBVuh','toString','lTHzR','appAutomate','gFABd','OiQRM','hrowm','qQOeB','getAutomateSessionStatusAPIUrl','getAppAutomateSessionsListAPIUrl','9245AzveWg','qbVjA','eXMBX','hzXOQ','UOGiY','589346LHsUYz','hUZaC','pRdtj','GOgnY','jcIGf','SmFxp','/playwright?caps=','1726638DhcHZm','endsWith','NeidQ','viCrf','TgONM','getAutoCaptureLogsAPIUrl','jxRCZ','BROWSERSTACK_API_URL','IHKuy','xsXuL','getAppAutomateSessionStatusAPIUrl','yOiqA','IwwzO','EMHVw','daREA','getPlaywrightHubUrl','jVkRV','DVTzA','KXiwF','./sharedUtils','cTysE','4024143nmnbIX','DWrcn','9786870swvLAK','api','hnZTP','ANUcg','96LYklZj','gXrVD','../v2/browserstackCLI','TcVWS','nGvoT','automate','PLAYWRIGHT_HUB_URL','wRSbJ','kgAIz','10031556DLBOyp','wss:','OBSERVABILITY_UPLOAD_URL','upload'];a60_0x262e=function(){return _0x1fca85;};return a60_0x262e();}module['exports']=APIUtilityMethods;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a61_0x17cb(_0x2ff1bc,_0x16a813){const _0x2b1c28=a61_0x2b1c();return a61_0x17cb=function(_0x17cbd7,_0x4607b1){_0x17cbd7=_0x17cbd7-0x1a1;let _0x7b09c2=_0x2b1c28[_0x17cbd7];return _0x7b09c2;},a61_0x17cb(_0x2ff1bc,_0x16a813);}const a61_0x29a527=a61_0x17cb;(function(_0x4c1ec3,_0x788ae1){const _0x3f48f2=a61_0x17cb,_0x513138=_0x4c1ec3();while(!![]){try{const _0x1b1063=-parseInt(_0x3f48f2(0x1ec))/0x1*(-parseInt(_0x3f48f2(0x1e4))/0x2)+-parseInt(_0x3f48f2(0x1bd))/0x3+parseInt(_0x3f48f2(0x1cd))/0x4*(-parseInt(_0x3f48f2(0x1cf))/0x5)+parseInt(_0x3f48f2(0x1d7))/0x6+-parseInt(_0x3f48f2(0x1ce))/0x7+-parseInt(_0x3f48f2(0x208))/0x8*(-parseInt(_0x3f48f2(0x209))/0x9)+parseInt(_0x3f48f2(0x1ee))/0xa*(parseInt(_0x3f48f2(0x1c2))/0xb);if(_0x1b1063===_0x788ae1)break;else _0x513138['push'](_0x513138['shift']());}catch(_0x1ff3a8){_0x513138['push'](_0x513138['shift']());}}}(a61_0x2b1c,0xaa628));const logger=require('../../helpers/logger')[a61_0x29a527(0x1b7)],BrowserstackCLI=require(a61_0x29a527(0x200)),GrpcClient=require(a61_0x29a527(0x1b9)),constants=require('./constants');class ClientTroubleShootingService{static [a61_0x29a527(0x1b8)]=null;static [a61_0x29a527(0x1e0)]=new Set();static async['getErrorDetails'](_0x342ebb){const _0x17de38=a61_0x29a527,_0x731bf5={};_0x731bf5[_0x17de38(0x1aa)]=function(_0x2b13c2,_0x299df1){return _0x2b13c2!==_0x299df1;};const _0xabd99b=_0x731bf5;try{if(BrowserstackCLI[_0x17de38(0x1b1)]()[_0x17de38(0x1f1)]()){const _0x2a60df=await GrpcClient[_0x17de38(0x1b1)]()[_0x17de38(0x1c6)](_0x342ebb);if(_0xabd99b['BkHbb'](_0x2a60df,null)&&_0x2a60df[_0x17de38(0x1c3)]())return{'errorCode':_0x2a60df[_0x17de38(0x204)](),'errorMessage':_0x2a60df[_0x17de38(0x1fe)]()};return{};}return{};}catch(_0x9d81e1){return this['logError'](_0x17de38(0x1a5)+_0x342ebb+':',_0x9d81e1),{};}}static async['getAggregatedErrorCodes'](){const _0x1e1e18=a61_0x29a527,_0x12d34c={};_0x12d34c[_0x1e1e18(0x1f0)]=function(_0x4ed937,_0x3e83c5){return _0x4ed937!==_0x3e83c5;},_0x12d34c[_0x1e1e18(0x1b3)]=_0x1e1e18(0x1a8),_0x12d34c[_0x1e1e18(0x1d2)]=_0x1e1e18(0x1c8);const _0x513f60=_0x12d34c;try{if(BrowserstackCLI['getInstance']()['isRunning']()){const _0x56898a=await GrpcClient[_0x1e1e18(0x1b1)]()[_0x1e1e18(0x1d4)]();if(_0x513f60[_0x1e1e18(0x1f0)](_0x56898a,null)&&_0x56898a[_0x1e1e18(0x1c3)]()){const _0x3aed79=Buffer['from'](_0x56898a[_0x1e1e18(0x1d5)](),_0x513f60['ivtZr'])['toString'](),_0x2f1945=_0x3aed79?JSON['parse'](_0x3aed79):[],_0x23fb9b=_0x56898a[_0x1e1e18(0x1eb)](),_0x12625f=_0x56898a[_0x1e1e18(0x1df)](),_0x23d9e7=Buffer['from'](_0x56898a[_0x1e1e18(0x1d8)](),_0x513f60[_0x1e1e18(0x1b3)])['toString'](),_0x1e65e4=_0x23d9e7?JSON[_0x1e1e18(0x1b0)](_0x23d9e7):[],_0x396318={};return _0x396318[_0x1e1e18(0x1cb)]=_0x2f1945,_0x396318[_0x1e1e18(0x1c7)]=_0x23fb9b,_0x396318[_0x1e1e18(0x1bc)]=_0x12625f,_0x396318[_0x1e1e18(0x1c0)]=_0x1e65e4,_0x396318;}const _0x53bb7a={};return _0x53bb7a['errorCodes']=[],_0x53bb7a[_0x1e1e18(0x1c7)]='',_0x53bb7a[_0x1e1e18(0x1bc)]='',_0x53bb7a['errorCodesOccurredInCLI']=[],_0x53bb7a;}const _0x3dc426={};return _0x3dc426[_0x1e1e18(0x1cb)]=[],_0x3dc426[_0x1e1e18(0x1c7)]='',_0x3dc426[_0x1e1e18(0x1bc)]='',_0x3dc426[_0x1e1e18(0x1c0)]=[],_0x3dc426;}catch(_0x2ffb7c){this[_0x1e1e18(0x1bb)](_0x513f60[_0x1e1e18(0x1d2)],_0x2ffb7c);const _0x43c98f={};return _0x43c98f[_0x1e1e18(0x1cb)]=[],_0x43c98f['documentationLink']='',_0x43c98f[_0x1e1e18(0x1bc)]='',_0x43c98f['errorCodesOccurredInCLI']=[],_0x43c98f;}}static['logSituation'](_0x357a77,_0x580361){const _0xa68950=a61_0x29a527;logger[_0xa68950(0x1a3)](_0x357a77+':\x20'+_0x580361);}static[a61_0x29a527(0x1ba)](_0x1663a1){const _0x3925b0=a61_0x29a527,_0x43a76d={};_0x43a76d[_0x3925b0(0x207)]=function(_0x15e987,_0x191c7f){return _0x15e987!=_0x191c7f;},_0x43a76d[_0x3925b0(0x1b4)]=function(_0x4c4b97,_0x156726){return _0x4c4b97>_0x156726;},_0x43a76d[_0x3925b0(0x1dc)]=function(_0x2e4a59,_0x29ba17){return _0x2e4a59!=_0x29ba17;};const _0x583898=_0x43a76d,_0x5841e0=[];if(_0x583898[_0x3925b0(0x207)](_0x1663a1,null)&&_0x583898['JwZGJ'](_0x1663a1[_0x3925b0(0x1c0)],null)&&_0x583898[_0x3925b0(0x1b4)](_0x1663a1[_0x3925b0(0x1c0)][_0x3925b0(0x1be)],0x0))for(const _0x45f718 of _0x1663a1['errorCodesOccurredInCLI']){_0x583898[_0x3925b0(0x207)](_0x45f718[_0x3925b0(0x1f8)],null)&&_0x583898['zJbIt'](_0x45f718[_0x3925b0(0x1c4)],null)&&(_0x5841e0[_0x3925b0(0x1cc)](_0x45f718[_0x3925b0(0x1f8)]),this[_0x3925b0(0x1a7)](_0x45f718[_0x3925b0(0x1f8)],_0x45f718[_0x3925b0(0x1c4)]));}return _0x5841e0;}static[a61_0x29a527(0x1ca)](){const _0x4f3ea0=a61_0x29a527;return this[_0x4f3ea0(0x1b8)];}static[a61_0x29a527(0x1bb)](_0x140c4e,_0xf853e2){const _0x2aaeac=a61_0x29a527,_0x40f031={};_0x40f031[_0x2aaeac(0x1a1)]=function(_0x4e96b5,_0x20e2e1){return _0x4e96b5===_0x20e2e1;},_0x40f031['XgKLN']='object';const _0x1b32df=_0x40f031;if(_0x1b32df[_0x2aaeac(0x1a1)](typeof _0xf853e2,_0x1b32df[_0x2aaeac(0x1f6)]))try{logger['error'](_0x2aaeac(0x1d9)+_0x140c4e+'\x20'+JSON['stringify'](_0xf853e2));}catch(_0x51bd96){logger[_0x2aaeac(0x1ff)](_0x2aaeac(0x1d9)+_0x140c4e+'\x20'+_0xf853e2);}else logger['error'](_0x2aaeac(0x1d9)+_0x140c4e+'\x20'+_0xf853e2);}static async[a61_0x29a527(0x1d0)](_0x24c5d6){const _0x5a73cf=a61_0x29a527,_0x5b0fbc={};_0x5b0fbc[_0x5a73cf(0x1d3)]=_0x5a73cf(0x203),_0x5b0fbc['kikuk']=function(_0x8638e,_0xb716f8){return _0x8638e===_0xb716f8;},_0x5b0fbc[_0x5a73cf(0x1fc)]=_0x5a73cf(0x1e8),_0x5b0fbc[_0x5a73cf(0x1fa)]=_0x5a73cf(0x1db);const _0x396372=_0x5b0fbc,_0xe13610=await this[_0x5a73cf(0x1d1)](_0x396372[_0x5a73cf(0x1d3)]);if(!_0xe13610||_0x396372[_0x5a73cf(0x1da)](Object[_0x5a73cf(0x1c5)](_0xe13610)['length'],0x0)){this['logError'](_0x396372[_0x5a73cf(0x1fc)],_0xe13610);return;}this['logSituation'](_0xe13610['errorCode'],_0xe13610[_0x5a73cf(0x1c4)][_0x5a73cf(0x1f9)](_0x396372[_0x5a73cf(0x1fa)],_0x24c5d6));}static async[a61_0x29a527(0x1ed)](){const _0x252747=a61_0x29a527,_0x5ebd35={};_0x5ebd35[_0x252747(0x1e9)]=_0x252747(0x1b5),_0x5ebd35[_0x252747(0x1f5)]=function(_0x146b1c,_0x5818a8){return _0x146b1c===_0x5818a8;},_0x5ebd35[_0x252747(0x1e3)]=_0x252747(0x1fb);const _0x2b3db2=_0x5ebd35,_0x107520=await this[_0x252747(0x1d1)](_0x2b3db2[_0x252747(0x1e9)]);if(!_0x107520||_0x2b3db2[_0x252747(0x1f5)](Object[_0x252747(0x1c5)](_0x107520)[_0x252747(0x1be)],0x0)){this[_0x252747(0x1bb)](_0x2b3db2[_0x252747(0x1e3)],_0x107520);return;}this['logSituation'](_0x107520['errorCode'],_0x107520[_0x252747(0x1c4)]);}static async[a61_0x29a527(0x1f3)](){const _0x9bcb76=a61_0x29a527,_0x4efb2c={};_0x4efb2c[_0x9bcb76(0x1a2)]=_0x9bcb76(0x1ae),_0x4efb2c[_0x9bcb76(0x1a9)]=function(_0x222bc8,_0x260c59){return _0x222bc8===_0x260c59;},_0x4efb2c[_0x9bcb76(0x1a6)]=_0x9bcb76(0x201);const _0x2a5763=_0x4efb2c,_0x4f4789=await this[_0x9bcb76(0x1d1)](_0x2a5763[_0x9bcb76(0x1a2)]);if(!_0x4f4789||_0x2a5763[_0x9bcb76(0x1a9)](Object['keys'](_0x4f4789)[_0x9bcb76(0x1be)],0x0)){this[_0x9bcb76(0x1bb)](_0x2a5763['eihSR'],_0x4f4789);return;}this[_0x9bcb76(0x1a7)](_0x4f4789[_0x9bcb76(0x1f8)],_0x4f4789['errorMessage']);}static async[a61_0x29a527(0x1b2)](){const _0x19603e=a61_0x29a527,_0x35d517={};_0x35d517[_0x19603e(0x1ad)]=_0x19603e(0x1e1),_0x35d517[_0x19603e(0x1e2)]=function(_0x55cf33,_0x4a4d43){return _0x55cf33===_0x4a4d43;},_0x35d517[_0x19603e(0x205)]='SSL\x20Certificate\x20Issue\x20details\x20not\x20found.\x20To\x20pass\x20a\x20custom\x20CA\x20bundle,\x20set\x20NODE_EXTRA_CA_CERTS\x20or\x20BROWSERSTACK_EXTRA_CA_CERTS\x20env\x20var\x20to\x20the\x20certificate\x20file\x20path.';const _0x51a906=_0x35d517,_0x1eec2b=await this[_0x19603e(0x1d1)](_0x51a906[_0x19603e(0x1ad)]);if(!_0x1eec2b||_0x51a906[_0x19603e(0x1e2)](Object['keys'](_0x1eec2b)[_0x19603e(0x1be)],0x0)){this[_0x19603e(0x1bb)](_0x51a906[_0x19603e(0x205)],_0x1eec2b);return;}this[_0x19603e(0x1a7)](_0x1eec2b[_0x19603e(0x1f8)],_0x1eec2b[_0x19603e(0x1c4)]);}static['reportDotBrowserStackFolderNotAccessibleIssue'](){const _0x412167=a61_0x29a527,_0x4f27e0={};_0x4f27e0[_0x412167(0x1c1)]='.browserstack\x20folder\x20not\x20accessible',_0x4f27e0['aYjlB']=function(_0x145163,_0x557048){return _0x145163===_0x557048;},_0x4f27e0[_0x412167(0x1dd)]=_0x412167(0x1e5);const _0x3960a0=_0x4f27e0,_0xc4abd8=constants[_0x412167(0x1ef)][_0x3960a0[_0x412167(0x1c1)]];if(!_0xc4abd8||_0x3960a0[_0x412167(0x1f4)](Object[_0x412167(0x1c5)](_0xc4abd8)['length'],0x0)){this['logError'](_0x3960a0[_0x412167(0x1dd)],_0xc4abd8);return;}this[_0x412167(0x1e0)][_0x412167(0x1fd)](_0xc4abd8[0x0]),this[_0x412167(0x1a7)](_0xc4abd8[0x0],_0xc4abd8[0x1]);}static async[a61_0x29a527(0x1b6)](_0x4ac3cc){const _0x58b7bd=a61_0x29a527,_0x388106={};_0x388106[_0x58b7bd(0x1e7)]=_0x58b7bd(0x1bf),_0x388106[_0x58b7bd(0x1f7)]=function(_0x20ff90,_0x42e14d){return _0x20ff90===_0x42e14d;},_0x388106[_0x58b7bd(0x1f2)]=_0x58b7bd(0x1e6),_0x388106[_0x58b7bd(0x1af)]=_0x58b7bd(0x1a4);const _0x23c236=_0x388106,_0x55989f=await this[_0x58b7bd(0x1d1)](_0x23c236[_0x58b7bd(0x1e7)]);if(!_0x55989f||_0x23c236[_0x58b7bd(0x1f7)](Object[_0x58b7bd(0x1c5)](_0x55989f)[_0x58b7bd(0x1be)],0x0)){this[_0x58b7bd(0x1bb)](_0x23c236[_0x58b7bd(0x1f2)],_0x55989f);return;}const _0x1527d1=_0x55989f[_0x58b7bd(0x1c4)]['replace'](_0x23c236[_0x58b7bd(0x1af)],_0x4ac3cc);this[_0x58b7bd(0x1a7)](_0x55989f['errorCode'],_0x1527d1);}static async[a61_0x29a527(0x1c9)](){const _0x186a1e=a61_0x29a527,_0x428a48={};_0x428a48[_0x186a1e(0x1ab)]=function(_0x3567df,_0x3deb3c){return _0x3567df>_0x3deb3c;},_0x428a48['BWAFU']=_0x186a1e(0x1de),_0x428a48[_0x186a1e(0x206)]='{CLIENT_TROUBLESHOOTING_DOCUMENTATION}';const _0x300b6d=_0x428a48,_0x3f6769=await this['getAggregatedErrorCodes'](),_0x307034=this[_0x186a1e(0x1ba)](_0x3f6769),_0x42e775=Array[_0x186a1e(0x202)](_0x3f6769[_0x186a1e(0x1cb)])?_0x3f6769[_0x186a1e(0x1cb)]:[],_0x9fe2eb=_0x300b6d[_0x186a1e(0x1ab)](this[_0x186a1e(0x1e0)]['size'],0x0)?Array[_0x186a1e(0x1ea)](this[_0x186a1e(0x1e0)]):[],_0x45a696=new Set([..._0x42e775,..._0x307034,..._0x9fe2eb]),_0x427a7d=Array[_0x186a1e(0x1ea)](_0x45a696);if(_0x300b6d[_0x186a1e(0x1ab)](_0x427a7d['length'],0x0)){const _0x2b396b=_0x3f6769[_0x186a1e(0x1bc)][_0x186a1e(0x1f9)](_0x300b6d[_0x186a1e(0x1ac)],_0x427a7d['join'](',\x20'))[_0x186a1e(0x1f9)](_0x300b6d[_0x186a1e(0x206)],_0x3f6769[_0x186a1e(0x1c7)]);logger[_0x186a1e(0x1a3)](_0x2b396b),this['cachedErrorCodes']=_0x427a7d;}}}module[a61_0x29a527(0x1d6)]=ClientTroubleShootingService;function a61_0x2b1c(){const _0xde95a6=['GuJAH','JwZGJ','1852856oUJZQZ','9XySpcl','ygxKC','BrNyg','warn','{ENV_VAR}','Error\x20in\x20getting\x20error\x20details\x20for\x20','eihSR','logSituation','base64','mcayP','BkHbb','yITFP','BWAFU','hnHkQ','browserstack\x20cloud\x20not\x20reachable','KnRMT','parse','getInstance','reportSSLCertIssue','ivtZr','vjKlY','Session\x20Linking\x20Issue','reportConflictingEnvVarIssue','winstonLogger','cachedErrorCodes','../v2/grpcClient','checkForErrorsOccuredInCLI','logError','finalErrorMessage','1289337UpYWVs','length','conflicting\x20env\x20var\x20detected','errorCodesOccurredInCLI','KtRDQ','3827307cIsXJN','getSuccess','errorMessage','keys','reportClientTroubleshootingError','documentationLink','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','reportFinalDetectionState','getCachedErrorCodes','errorCodes','push','1142840vpgSqO','1333171SEhTRG','10clFPzF','reportProcessInterruptionSituation','getErrorDetails','BBnAK','qGtiH','getAggregatedClientTroubleshootingErrors','getErrorCodes','exports','1585986mRbCQl','getErrorCodesOccurredInCli','[ClientTroubleShootingService]\x20','kikuk','{SIGNAL}','zJbIt','QEBgk','{ERROR_CODES}','getFinalErrorMessage','errorCodesOccurredWhenCLINotRunning','ssl\x20cert\x20issue','mITIk','mhnvq','13418bCWWFr','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','Conflicting\x20Env\x20Var\x20details\x20not\x20found','GGnZj','Process\x20Interruption\x20details\x20not\x20found:','iMqUG','from','getDocumentationLink','104bpwArz','reportSessionLinkingIssue','20ybwAOA','CLIENT_TROUBLESHOOTING_HASH','UbdLD','isRunning','aOaaY','reportConnectivityIssue','aYjlB','WNkSo','XgKLN','aBVwH','errorCode','replace','HmiRR','Session\x20Linking\x20Issue\x20details\x20not\x20found','tJIUP','add','getErrorMessage','error','../v2/browserstackCLI','Connectivity\x20Issue\x20details\x20not\x20found','isArray','Process\x20Interruption','getErrorCode','uvsaG'];a61_0x2b1c=function(){return _0xde95a6;};return a61_0x2b1c();}
|
|
1
|
+
const a61_0x15d1f0=a61_0x2406;(function(_0x2834a7,_0x3f254e){const _0x4c5eab=a61_0x2406,_0x9ec2ca=_0x2834a7();while(!![]){try{const _0x523ce7=-parseInt(_0x4c5eab(0x13e))/0x1+-parseInt(_0x4c5eab(0x16f))/0x2*(parseInt(_0x4c5eab(0x12b))/0x3)+parseInt(_0x4c5eab(0x158))/0x4+-parseInt(_0x4c5eab(0x12d))/0x5*(parseInt(_0x4c5eab(0x17a))/0x6)+parseInt(_0x4c5eab(0x13b))/0x7*(parseInt(_0x4c5eab(0x151))/0x8)+parseInt(_0x4c5eab(0x129))/0x9+parseInt(_0x4c5eab(0x143))/0xa*(parseInt(_0x4c5eab(0x131))/0xb);if(_0x523ce7===_0x3f254e)break;else _0x9ec2ca['push'](_0x9ec2ca['shift']());}catch(_0x810da1){_0x9ec2ca['push'](_0x9ec2ca['shift']());}}}(a61_0x126b,0x88776));function a61_0x2406(_0x30c70b,_0x93a8bc){const _0x126bf4=a61_0x126b();return a61_0x2406=function(_0x240658,_0x365917){_0x240658=_0x240658-0x11d;let _0x4517f7=_0x126bf4[_0x240658];return _0x4517f7;},a61_0x2406(_0x30c70b,_0x93a8bc);}const logger=require(a61_0x15d1f0(0x161))[a61_0x15d1f0(0x13a)],BrowserstackCLI=require(a61_0x15d1f0(0x15a)),GrpcClient=require('../v2/grpcClient'),constants=require(a61_0x15d1f0(0x169));class ClientTroubleShootingService{static [a61_0x15d1f0(0x11e)]=null;static ['errorCodesOccurredWhenCLINotRunning']=new Set();static async[a61_0x15d1f0(0x15c)](_0x2f41e1){const _0x4d0d15=a61_0x15d1f0,_0x510bf0={};_0x510bf0[_0x4d0d15(0x181)]=function(_0x2a7ecc,_0x3e959d){return _0x2a7ecc!==_0x3e959d;};const _0x2fb2ac=_0x510bf0;try{if(BrowserstackCLI[_0x4d0d15(0x126)]()[_0x4d0d15(0x172)]()){const _0x5d9ced=await GrpcClient['getInstance']()['reportClientTroubleshootingError'](_0x2f41e1);if(_0x2fb2ac[_0x4d0d15(0x181)](_0x5d9ced,null)&&_0x5d9ced[_0x4d0d15(0x144)]())return{'errorCode':_0x5d9ced[_0x4d0d15(0x184)](),'errorMessage':_0x5d9ced['getErrorMessage']()};return{};}return{};}catch(_0x9b3fc){return this['logError'](_0x4d0d15(0x13f)+_0x2f41e1+':',_0x9b3fc),{};}}static async[a61_0x15d1f0(0x15f)](){const _0x502328=a61_0x15d1f0,_0x312d80={};_0x312d80['WoZyu']=function(_0x44d83e,_0x3f9bcf){return _0x44d83e!==_0x3f9bcf;},_0x312d80[_0x502328(0x168)]=_0x502328(0x13d),_0x312d80[_0x502328(0x174)]='Error\x20in\x20getting\x20aggregated\x20error\x20codes:';const _0x25aee1=_0x312d80;try{if(BrowserstackCLI[_0x502328(0x126)]()[_0x502328(0x172)]()){const _0x5ba7c3=await GrpcClient[_0x502328(0x126)]()[_0x502328(0x15e)]();if(_0x25aee1[_0x502328(0x142)](_0x5ba7c3,null)&&_0x5ba7c3[_0x502328(0x144)]()){const _0x587ba0=Buffer['from'](_0x5ba7c3['getErrorCodes'](),_0x25aee1[_0x502328(0x168)])['toString'](),_0x4b3455=_0x587ba0?JSON[_0x502328(0x157)](_0x587ba0):[],_0x5a77b7=_0x5ba7c3[_0x502328(0x133)](),_0x9ee42f=_0x5ba7c3[_0x502328(0x124)](),_0x2c8f9a=Buffer[_0x502328(0x16c)](_0x5ba7c3[_0x502328(0x175)](),_0x25aee1[_0x502328(0x168)])[_0x502328(0x130)](),_0x21e148=_0x2c8f9a?JSON[_0x502328(0x157)](_0x2c8f9a):[],_0x66ee5f={};return _0x66ee5f[_0x502328(0x121)]=_0x4b3455,_0x66ee5f[_0x502328(0x149)]=_0x5a77b7,_0x66ee5f[_0x502328(0x154)]=_0x9ee42f,_0x66ee5f[_0x502328(0x171)]=_0x21e148,_0x66ee5f;}const _0x2fd6ce={};return _0x2fd6ce['errorCodes']=[],_0x2fd6ce['documentationLink']='',_0x2fd6ce[_0x502328(0x154)]='',_0x2fd6ce[_0x502328(0x171)]=[],_0x2fd6ce;}const _0x22286f={};return _0x22286f['errorCodes']=[],_0x22286f[_0x502328(0x149)]='',_0x22286f[_0x502328(0x154)]='',_0x22286f['errorCodesOccurredInCLI']=[],_0x22286f;}catch(_0x20a732){this[_0x502328(0x123)](_0x25aee1[_0x502328(0x174)],_0x20a732);const _0xfb2d52={};return _0xfb2d52[_0x502328(0x121)]=[],_0xfb2d52[_0x502328(0x149)]='',_0xfb2d52[_0x502328(0x154)]='',_0xfb2d52[_0x502328(0x171)]=[],_0xfb2d52;}}static['logSituation'](_0x16aa89,_0x272a75){logger['warn'](_0x16aa89+':\x20'+_0x272a75);}static['checkForErrorsOccuredInCLI'](_0x1408a8){const _0x1344f2=a61_0x15d1f0,_0x59d952={};_0x59d952[_0x1344f2(0x136)]=function(_0x2cdb22,_0x162495){return _0x2cdb22!=_0x162495;},_0x59d952['QBWTW']=function(_0x46bb13,_0x14f502){return _0x46bb13>_0x14f502;},_0x59d952[_0x1344f2(0x13c)]=function(_0x6d324d,_0x5f3227){return _0x6d324d!=_0x5f3227;};const _0xeb4a4=_0x59d952,_0x1ac02d=[];if(_0xeb4a4['DRZXg'](_0x1408a8,null)&&_0xeb4a4['DRZXg'](_0x1408a8['errorCodesOccurredInCLI'],null)&&_0xeb4a4[_0x1344f2(0x178)](_0x1408a8[_0x1344f2(0x171)]['length'],0x0))for(const _0x2cead2 of _0x1408a8[_0x1344f2(0x171)]){_0xeb4a4['DRZXg'](_0x2cead2[_0x1344f2(0x16b)],null)&&_0xeb4a4[_0x1344f2(0x13c)](_0x2cead2['errorMessage'],null)&&(_0x1ac02d[_0x1344f2(0x159)](_0x2cead2[_0x1344f2(0x16b)]),this['logSituation'](_0x2cead2[_0x1344f2(0x16b)],_0x2cead2['errorMessage']));}return _0x1ac02d;}static['getCachedErrorCodes'](){const _0x28a21b=a61_0x15d1f0;return this[_0x28a21b(0x11e)];}static[a61_0x15d1f0(0x123)](_0x2546cd,_0x983f72){const _0x4324e9=a61_0x15d1f0,_0x5f86f={};_0x5f86f[_0x4324e9(0x14e)]=function(_0x57d4c1,_0x50928a){return _0x57d4c1===_0x50928a;},_0x5f86f[_0x4324e9(0x120)]=_0x4324e9(0x138);const _0x350a3e=_0x5f86f;if(_0x350a3e[_0x4324e9(0x14e)](typeof _0x983f72,_0x350a3e[_0x4324e9(0x120)]))try{logger[_0x4324e9(0x134)](_0x4324e9(0x186)+_0x2546cd+'\x20'+JSON[_0x4324e9(0x17c)](_0x983f72));}catch(_0x41a025){logger[_0x4324e9(0x134)]('[ClientTroubleShootingService]\x20'+_0x2546cd+'\x20'+_0x983f72);}else logger[_0x4324e9(0x134)](_0x4324e9(0x186)+_0x2546cd+'\x20'+_0x983f72);}static async[a61_0x15d1f0(0x135)](_0x5e0992){const _0x2945b8=a61_0x15d1f0,_0x1cd887={};_0x1cd887[_0x2945b8(0x14b)]=_0x2945b8(0x17b),_0x1cd887[_0x2945b8(0x177)]=function(_0x4b685c,_0x47e888){return _0x4b685c===_0x47e888;},_0x1cd887[_0x2945b8(0x170)]=_0x2945b8(0x152),_0x1cd887[_0x2945b8(0x14c)]=_0x2945b8(0x146);const _0x4e2b3e=_0x1cd887,_0x8bf75c=await this[_0x2945b8(0x15c)](_0x4e2b3e['FzJXq']);if(!_0x8bf75c||_0x4e2b3e[_0x2945b8(0x177)](Object[_0x2945b8(0x160)](_0x8bf75c)[_0x2945b8(0x164)],0x0)){this[_0x2945b8(0x123)](_0x4e2b3e['TGNYg'],_0x8bf75c);return;}this[_0x2945b8(0x12a)](_0x8bf75c[_0x2945b8(0x16b)],_0x8bf75c['errorMessage']['replace'](_0x4e2b3e[_0x2945b8(0x14c)],_0x5e0992));}static async[a61_0x15d1f0(0x16a)](){const _0xc05873=a61_0x15d1f0,_0x4b32e8={};_0x4b32e8[_0xc05873(0x125)]=_0xc05873(0x14a),_0x4b32e8[_0xc05873(0x132)]=function(_0x1904e7,_0x21f96d){return _0x1904e7===_0x21f96d;},_0x4b32e8[_0xc05873(0x183)]='Session\x20Linking\x20Issue\x20details\x20not\x20found';const _0x115d43=_0x4b32e8,_0x2f2fb1=await this[_0xc05873(0x15c)](_0x115d43[_0xc05873(0x125)]);if(!_0x2f2fb1||_0x115d43[_0xc05873(0x132)](Object[_0xc05873(0x160)](_0x2f2fb1)[_0xc05873(0x164)],0x0)){this[_0xc05873(0x123)](_0x115d43[_0xc05873(0x183)],_0x2f2fb1);return;}this[_0xc05873(0x12a)](_0x2f2fb1[_0xc05873(0x16b)],_0x2f2fb1[_0xc05873(0x141)]);}static async[a61_0x15d1f0(0x15b)](){const _0x4f02eb=a61_0x15d1f0,_0x2ecbfa={};_0x2ecbfa[_0x4f02eb(0x148)]=_0x4f02eb(0x14d),_0x2ecbfa[_0x4f02eb(0x153)]=function(_0x62b93e,_0x8c58c1){return _0x62b93e===_0x8c58c1;},_0x2ecbfa[_0x4f02eb(0x155)]=_0x4f02eb(0x17d);const _0x39a95f=_0x2ecbfa,_0x37fc0e=await this[_0x4f02eb(0x15c)](_0x39a95f[_0x4f02eb(0x148)]);if(!_0x37fc0e||_0x39a95f[_0x4f02eb(0x153)](Object['keys'](_0x37fc0e)['length'],0x0)){this['logError'](_0x39a95f[_0x4f02eb(0x155)],_0x37fc0e);return;}this['logSituation'](_0x37fc0e[_0x4f02eb(0x16b)],_0x37fc0e[_0x4f02eb(0x141)]);}static async[a61_0x15d1f0(0x14f)](){const _0x254d70=a61_0x15d1f0,_0x44aaea={};_0x44aaea[_0x254d70(0x163)]=_0x254d70(0x11f),_0x44aaea[_0x254d70(0x15d)]=function(_0x41aab9,_0x1c120c){return _0x41aab9===_0x1c120c;},_0x44aaea['zKAsg']=_0x254d70(0x137);const _0x2729ac=_0x44aaea,_0x1ddf27=await this[_0x254d70(0x15c)](_0x2729ac[_0x254d70(0x163)]);if(!_0x1ddf27||_0x2729ac[_0x254d70(0x15d)](Object[_0x254d70(0x160)](_0x1ddf27)['length'],0x0)){this['logError'](_0x2729ac[_0x254d70(0x166)],_0x1ddf27);return;}this[_0x254d70(0x12a)](_0x1ddf27[_0x254d70(0x16b)],_0x1ddf27[_0x254d70(0x141)]);}static[a61_0x15d1f0(0x127)](){const _0xfa9115=a61_0x15d1f0,_0x5c9a94={};_0x5c9a94[_0xfa9115(0x17e)]='.browserstack\x20folder\x20not\x20accessible',_0x5c9a94[_0xfa9115(0x128)]=function(_0x187703,_0x2bfee8){return _0x187703===_0x2bfee8;},_0x5c9a94[_0xfa9115(0x162)]=_0xfa9115(0x165);const _0x97fa12=_0x5c9a94,_0x5a2f9f=constants[_0xfa9115(0x17f)][_0x97fa12['Izdri']];if(!_0x5a2f9f||_0x97fa12[_0xfa9115(0x128)](Object[_0xfa9115(0x160)](_0x5a2f9f)[_0xfa9115(0x164)],0x0)){this['logError'](_0x97fa12['VVHdz'],_0x5a2f9f);return;}this[_0xfa9115(0x140)]['add'](_0x5a2f9f[0x0]),this[_0xfa9115(0x12a)](_0x5a2f9f[0x0],_0x5a2f9f[0x1]);}static async[a61_0x15d1f0(0x16d)](_0x50b56d){const _0x4de20c=a61_0x15d1f0,_0x3cf05a={};_0x3cf05a[_0x4de20c(0x12e)]=_0x4de20c(0x173),_0x3cf05a[_0x4de20c(0x147)]=function(_0x1b5cb9,_0x5d18f4){return _0x1b5cb9===_0x5d18f4;},_0x3cf05a[_0x4de20c(0x182)]='Conflicting\x20Env\x20Var\x20details\x20not\x20found',_0x3cf05a[_0x4de20c(0x150)]=_0x4de20c(0x12c);const _0x359b1d=_0x3cf05a,_0x3f0b66=await this[_0x4de20c(0x15c)](_0x359b1d[_0x4de20c(0x12e)]);if(!_0x3f0b66||_0x359b1d[_0x4de20c(0x147)](Object[_0x4de20c(0x160)](_0x3f0b66)[_0x4de20c(0x164)],0x0)){this[_0x4de20c(0x123)](_0x359b1d['zzsuV'],_0x3f0b66);return;}const _0x593b47=_0x3f0b66[_0x4de20c(0x141)]['replace'](_0x359b1d[_0x4de20c(0x150)],_0x50b56d);this['logSituation'](_0x3f0b66[_0x4de20c(0x16b)],_0x593b47);}static async[a61_0x15d1f0(0x11d)](){const _0x308b7c=a61_0x15d1f0,_0x1d4032={};_0x1d4032[_0x308b7c(0x139)]=function(_0x2f75ac,_0x1263b1){return _0x2f75ac>_0x1263b1;},_0x1d4032[_0x308b7c(0x176)]=function(_0x1d3660,_0x435d7e){return _0x1d3660>_0x435d7e;},_0x1d4032[_0x308b7c(0x12f)]=_0x308b7c(0x180),_0x1d4032[_0x308b7c(0x156)]='{CLIENT_TROUBLESHOOTING_DOCUMENTATION}';const _0x523de7=_0x1d4032,_0x123f5a=await this['getAggregatedErrorCodes'](),_0x2c32ec=this[_0x308b7c(0x167)](_0x123f5a),_0x8da922=Array[_0x308b7c(0x145)](_0x123f5a['errorCodes'])?_0x123f5a['errorCodes']:[],_0x4baa12=_0x523de7['arkrs'](this[_0x308b7c(0x140)]['size'],0x0)?Array[_0x308b7c(0x16c)](this[_0x308b7c(0x140)]):[],_0x361fa4=new Set([..._0x8da922,..._0x2c32ec,..._0x4baa12]),_0x463b03=Array[_0x308b7c(0x16c)](_0x361fa4);if(_0x523de7[_0x308b7c(0x176)](_0x463b03[_0x308b7c(0x164)],0x0)){const _0x46c2aa=_0x123f5a['finalErrorMessage'][_0x308b7c(0x179)](_0x523de7[_0x308b7c(0x12f)],_0x463b03[_0x308b7c(0x122)](',\x20'))['replace'](_0x523de7['CUkby'],_0x123f5a[_0x308b7c(0x149)]);logger[_0x308b7c(0x16e)](_0x46c2aa),this['cachedErrorCodes']=_0x463b03;}}}function a61_0x126b(){const _0x2bb6cc=['reportProcessInterruptionSituation','DRZXg','SSL\x20Certificate\x20Issue\x20details\x20not\x20found.\x20To\x20pass\x20a\x20custom\x20CA\x20bundle,\x20set\x20NODE_EXTRA_CA_CERTS\x20or\x20BROWSERSTACK_EXTRA_CA_CERTS\x20env\x20var\x20to\x20the\x20certificate\x20file\x20path.','object','arkrs','winstonLogger','232197kXMLnb','kMEuJ','base64','1074400cXypNs','Error\x20in\x20getting\x20error\x20details\x20for\x20','errorCodesOccurredWhenCLINotRunning','errorMessage','WoZyu','10dABUbg','getSuccess','isArray','{SIGNAL}','CqqOE','lXeJR','documentationLink','Session\x20Linking\x20Issue','FzJXq','nRzxV','browserstack\x20cloud\x20not\x20reachable','FZAsd','reportSSLCertIssue','CtbAh','112DoumzW','Process\x20Interruption\x20details\x20not\x20found:','ysqXF','finalErrorMessage','tgWVc','CUkby','parse','1505748riRcjm','push','../v2/browserstackCLI','reportConnectivityIssue','getErrorDetails','gLvkf','getAggregatedClientTroubleshootingErrors','getAggregatedErrorCodes','keys','../../helpers/logger','VVHdz','gmaHc','length','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','zKAsg','checkForErrorsOccuredInCLI','WdMof','./constants','reportSessionLinkingIssue','errorCode','from','reportConflictingEnvVarIssue','warn','26PCfCYU','TGNYg','errorCodesOccurredInCLI','isRunning','conflicting\x20env\x20var\x20detected','Lrykw','getErrorCodesOccurredInCli','OgSfT','xfQwf','QBWTW','replace','40692cBxJun','Process\x20Interruption','stringify','Connectivity\x20Issue\x20details\x20not\x20found','Izdri','CLIENT_TROUBLESHOOTING_HASH','{ERROR_CODES}','uegxs','zzsuV','JXZFI','getErrorCode','exports','[ClientTroubleShootingService]\x20','reportFinalDetectionState','cachedErrorCodes','ssl\x20cert\x20issue','CjjrW','errorCodes','join','logError','getFinalErrorMessage','VRrPF','getInstance','reportDotBrowserStackFolderNotAccessibleIssue','qdgnD','1995030eZhKhV','logSituation','105405ukToRp','{ENV_VAR}','85CLfncl','NgRAg','rDamz','toString','12572054rCqPvP','xgqrc','getDocumentationLink','error'];a61_0x126b=function(){return _0x2bb6cc;};return a61_0x126b();}module[a61_0x15d1f0(0x185)]=ClientTroubleShootingService;
|