browserstack-node-sdk 1.55.0 → 1.55.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +4 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/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
package/src/bin/v2/cliUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a72_0x213a94=a72_0x3c4c;(function(_0x524d64,_0x250662){const _0x2f97f3=a72_0x3c4c,_0x182a94=_0x524d64();while(!![]){try{const _0xfee2dc=parseInt(_0x2f97f3(0x274))/0x1+parseInt(_0x2f97f3(0x284))/0x2+parseInt(_0x2f97f3(0x202))/0x3*(-parseInt(_0x2f97f3(0x292))/0x4)+parseInt(_0x2f97f3(0x1ba))/0x5*(parseInt(_0x2f97f3(0x1c0))/0x6)+parseInt(_0x2f97f3(0x1b7))/0x7+parseInt(_0x2f97f3(0x1f2))/0x8+-parseInt(_0x2f97f3(0x205))/0x9;if(_0xfee2dc===_0x250662)break;else _0x182a94['push'](_0x182a94['shift']());}catch(_0x2e6cb5){_0x182a94['push'](_0x182a94['shift']());}}}(a72_0x1732,0xe7c70));const fs=require('fs'),os=require('os'),url=require(a72_0x213a94(0x1d4)),path=require(a72_0x213a94(0x1f6)),{exec}=require(a72_0x213a94(0x20f)),{https}=require(a72_0x213a94(0x1c1)),yauzl=require(a72_0x213a94(0x276)),util=require('util'),{getFrameworkVersion}=require(a72_0x213a94(0x23e)),{threadId}=require(a72_0x213a94(0x1cb)),PerformanceTester=require(a72_0x213a94(0x27e)),{EVENTS:PerformanceEvents}=require(a72_0x213a94(0x222)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a72_0x213a94(0x1e6)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require(a72_0x213a94(0x1e4)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a72_0x213a94(0x28b)),TestFrameworkState=require(a72_0x213a94(0x278)),AutomationFrameworkState=require(a72_0x213a94(0x1ce)),TestFrameworkConstants=require(a72_0x213a94(0x255)),logger=createClassLogger(a72_0x213a94(0x219)),{getBStackAPIUrl}=require(a72_0x213a94(0x1dc));function a72_0x3c4c(_0x20b647,_0xa97675){const _0x17320f=a72_0x1732();return a72_0x3c4c=function(_0x3c4cda,_0x1bd533){_0x3c4cda=_0x3c4cda-0x1b2;let _0x33843f=_0x17320f[_0x3c4cda];return _0x33843f;},a72_0x3c4c(_0x20b647,_0xa97675);}class CLIUtils{['automationFrameworkDetail']={};[a72_0x213a94(0x25f)]={};static['isDevelopmentEnv'](){const _0x3b0c2e=a72_0x213a94,_0x44344e={};_0x44344e[_0x3b0c2e(0x212)]=function(_0x47d8f6,_0x4b99ec){return _0x47d8f6===_0x4b99ec;},_0x44344e['zxTPr']=_0x3b0c2e(0x272);const _0x5b68dc=_0x44344e;return _0x5b68dc[_0x3b0c2e(0x212)](process[_0x3b0c2e(0x27b)][_0x3b0c2e(0x231)],_0x5b68dc[_0x3b0c2e(0x1f0)]);}static[a72_0x213a94(0x216)](){const _0x15a13c=a72_0x213a94,_0x1b0671={};return _0x1b0671['id']=process[_0x15a13c(0x27b)][_0x15a13c(0x231)],_0x1b0671[_0x15a13c(0x1c7)]=_0x15a13c(0x1e0)+process[_0x15a13c(0x27b)][_0x15a13c(0x231)]+_0x15a13c(0x265),_0x1b0671;}static[a72_0x213a94(0x267)](){const _0x21001f=a72_0x213a94,_0x4bf12b={'NwKmC':function(_0x3638d0,_0x4dfdf3){return _0x3638d0(_0x4dfdf3);},'vAVfJ':_0x21001f(0x1b6)};return _0x4bf12b['NwKmC'](require,_0x4bf12b['vAVfJ'])[_0x21001f(0x213)];}static['getSdkLanguage'](){const _0x3bb00e=a72_0x213a94,_0x4ec4d7={};_0x4ec4d7[_0x3bb00e(0x1cd)]=_0x3bb00e(0x1ff);const _0x5c9f63=_0x4ec4d7;return _0x5c9f63[_0x3bb00e(0x1cd)];}static async[a72_0x213a94(0x1ef)](_0x34ac25){const _0x5d28d2=a72_0x213a94,_0x1937ad={'ypfal':_0x5d28d2(0x1d2),'tOhBW':function(_0x48f264,_0x3fda14){return _0x48f264(_0x3fda14);},'ECEqX':function(_0x200037,_0x45f071){return _0x200037(_0x45f071);},'qlGaU':_0x5d28d2(0x204)};logger[_0x5d28d2(0x256)](_0x1937ad['ypfal']);const _0x431fc9=process['env']['SDK_CLI_BIN_PATH'];if(!_0x1937ad[_0x5d28d2(0x1d1)](isNullOrEmpty,_0x431fc9))return logger['debug'](_0x5d28d2(0x291)+_0x431fc9),_0x431fc9;try{const _0x10eefa=this[_0x5d28d2(0x1b8)]();if(_0x1937ad[_0x5d28d2(0x22a)](isNullOrEmpty,_0x10eefa))throw new Error(_0x1937ad[_0x5d28d2(0x1eb)]);const _0x457936=this[_0x5d28d2(0x1c8)](_0x10eefa),_0x51628e=await this[_0x5d28d2(0x1f9)](_0x457936,_0x10eefa,_0x34ac25);return logger[_0x5d28d2(0x256)](_0x5d28d2(0x1f3)+_0x51628e),_0x51628e;}catch(_0x159962){logger[_0x5d28d2(0x256)](_0x5d28d2(0x273)+util[_0x5d28d2(0x244)](_0x159962));}return null;}static async[a72_0x213a94(0x1f9)](_0x30b668,_0x34f246,_0x38fd18){const _0x2e9b73=a72_0x213a94,_0x51efc4={'ffpzX':function(_0x4b991d){return _0x4b991d();},'GWXYg':function(_0x1710eb,_0x14a8ed){return _0x1710eb(_0x14a8ed);},'nyNzA':function(_0x4ba71e,_0xd7314e,_0x55c6c2){return _0x4ba71e(_0xd7314e,_0x55c6c2);},'XIaQv':_0x2e9b73(0x28f),'pEYhN':'url','HSWeo':function(_0x193f58,_0xab551f){return _0x193f58(_0xab551f);},'bNryM':function(_0x3b68a2,_0x5c35ce,_0x35973b){return _0x3b68a2(_0x5c35ce,_0x35973b);}};PerformanceTester[_0x2e9b73(0x248)](PerformanceEvents[_0x2e9b73(0x1b4)]),logger[_0x2e9b73(0x24f)](_0x2e9b73(0x27f)+_0x30b668);const _0x7f2a90=_0x51efc4['ffpzX'](getHostInfo),_0x37aa33={'sdk_version':CLIUtils[_0x2e9b73(0x267)](),'os':_0x7f2a90[_0x2e9b73(0x275)],'os_arch':_0x7f2a90[_0x2e9b73(0x203)],'cli_version':'0','sdk_language':this[_0x2e9b73(0x1cc)]()};!_0x51efc4['GWXYg'](isNullOrEmpty,_0x30b668)&&(_0x37aa33[_0x2e9b73(0x287)]=await this[_0x2e9b73(0x289)](_0x30b668+'\x20version'));const _0x8e0bba=await this[_0x2e9b73(0x270)](_0x37aa33,_0x38fd18);process[_0x2e9b73(0x27b)][_0x2e9b73(0x20d)]&&(logger[_0x2e9b73(0x24f)](_0x2e9b73(0x223)+process[_0x2e9b73(0x27b)][_0x2e9b73(0x20d)]),_0x8e0bba[_0x2e9b73(0x28f)][_0x2e9b73(0x1d4)]=process[_0x2e9b73(0x27b)][_0x2e9b73(0x20d)]);if(_0x51efc4[_0x2e9b73(0x258)](nestedKeyValue,_0x8e0bba,[_0x51efc4[_0x2e9b73(0x264)],_0x51efc4[_0x2e9b73(0x201)]])){logger[_0x2e9b73(0x256)](_0x2e9b73(0x1de)+_0x37aa33[_0x2e9b73(0x287)]);if(!_0x51efc4['HSWeo'](isNullOrEmpty,_0x30b668)&&this[_0x2e9b73(0x20a)](_0x30b668))return logger[_0x2e9b73(0x1dd)](_0x2e9b73(0x1db)+_0x30b668),PerformanceTester[_0x2e9b73(0x1e9)](PerformanceEvents[_0x2e9b73(0x1b4)]),_0x30b668;const _0xe1eac3=await this[_0x2e9b73(0x261)](_0x51efc4['bNryM'](nestedKeyValue,_0x8e0bba,[_0x51efc4[_0x2e9b73(0x264)],_0x51efc4['pEYhN']]),_0x34f246);return PerformanceTester[_0x2e9b73(0x1e9)](PerformanceEvents[_0x2e9b73(0x1b4)]),_0xe1eac3;}return PerformanceTester[_0x2e9b73(0x1e9)](PerformanceEvents[_0x2e9b73(0x1b4)]),_0x30b668;}static[a72_0x213a94(0x1b8)](){const _0x246fd1=a72_0x213a94,_0x851577={'HrbtB':function(_0x3904b3,_0x73050d){return _0x3904b3(_0x73050d);},'OAPdS':_0x246fd1(0x204),'GmVIj':_0x246fd1(0x1e7),'yNkbZ':function(_0x2d0a4d,_0x2cc1d0){return _0x2d0a4d(_0x2cc1d0);}},_0x59339a=this[_0x246fd1(0x215)]();try{if(_0x851577['HrbtB'](isNullOrEmpty,_0x59339a))throw new Error(_0x851577[_0x246fd1(0x1ea)]);const _0x578e36=path[_0x246fd1(0x262)](_0x59339a,_0x851577[_0x246fd1(0x225)]);return!fs[_0x246fd1(0x1e8)](_0x578e36)&&_0x851577['yNkbZ'](createDir,_0x578e36),_0x578e36;}catch(_0x51df24){logger[_0x246fd1(0x256)](_0x246fd1(0x229)+util[_0x246fd1(0x244)](_0x51df24));}}static[a72_0x213a94(0x215)](){const _0x23fd0e=a72_0x213a94,_0x71f0b1={'FxiiN':_0x23fd0e(0x296),'hTcur':function(_0x3b46ca,_0x4f4623){return _0x3b46ca(_0x4f4623);},'MHVzB':function(_0x1b66c8,_0x27d750){return _0x1b66c8(_0x27d750);},'IsMma':function(_0x4b64ad,_0x102144){return _0x4b64ad(_0x102144);},'NXdKk':function(_0x5847ae,_0x2b6d02){return _0x5847ae(_0x2b6d02);}},_0x39be75=[process[_0x23fd0e(0x27b)][_0x23fd0e(0x24c)],path[_0x23fd0e(0x262)](os['homedir'](),_0x71f0b1[_0x23fd0e(0x290)]),path[_0x23fd0e(0x262)](os[_0x23fd0e(0x283)](),_0x71f0b1[_0x23fd0e(0x290)])];for(const _0x2cd2b5 of _0x39be75){if(_0x71f0b1[_0x23fd0e(0x224)](isNullOrEmpty,_0x2cd2b5))continue;try{if(fs[_0x23fd0e(0x1e8)](_0x2cd2b5)){logger[_0x23fd0e(0x256)](_0x23fd0e(0x23b)+_0x2cd2b5+_0x23fd0e(0x207));if(!_0x71f0b1[_0x23fd0e(0x224)](isModifiable,_0x2cd2b5)){logger[_0x23fd0e(0x256)]('Setting\x20required\x20permissions\x20to\x20'+_0x2cd2b5);const _0x58b85a=_0x71f0b1[_0x23fd0e(0x1c4)](setReadWriteExecuteAccess,_0x2cd2b5);if(!_0x71f0b1[_0x23fd0e(0x27c)](isTrue,_0x58b85a)){logger['warn'](_0x23fd0e(0x221)+_0x2cd2b5);continue;}}}else{logger[_0x23fd0e(0x256)](_0x23fd0e(0x266)+_0x2cd2b5),_0x71f0b1['NXdKk'](createDir,_0x2cd2b5),logger[_0x23fd0e(0x256)]('Setting\x20required\x20permissions\x20to\x20'+_0x2cd2b5);const _0xdd672c=_0x71f0b1[_0x23fd0e(0x224)](setReadWriteExecuteAccess,_0x2cd2b5);!_0x71f0b1['IsMma'](isTrue,_0xdd672c)&&logger[_0x23fd0e(0x1dd)](_0x23fd0e(0x221)+_0x2cd2b5);}return _0x2cd2b5;}catch(_0x4389ae){logger[_0x23fd0e(0x1bc)](_0x23fd0e(0x1fd)+util[_0x23fd0e(0x244)](_0x4389ae));}}return null;}static['getExistingCliPath'](_0x246375){const _0x2a29f5=a72_0x213a94,_0xf20635={};_0xf20635['uGdOt']=function(_0xc1cb54,_0x2ee4ee){return _0xc1cb54>_0x2ee4ee;},_0xf20635[_0x2a29f5(0x1d7)]=function(_0x2c4059,_0xc36abd){return _0x2c4059>_0xc36abd;};const _0x553354=_0xf20635;try{if(!fs['existsSync'](_0x246375)||!fs['statSync'](_0x246375)[_0x2a29f5(0x28e)]())return'';const _0x56aaa8=fs[_0x2a29f5(0x1c2)](_0x246375)[_0x2a29f5(0x1ee)](_0x4fb635=>path['join'](_0x246375,_0x4fb635))[_0x2a29f5(0x1be)](_0x5357bb=>fs[_0x2a29f5(0x26e)](_0x5357bb)[_0x2a29f5(0x21b)]()&&path[_0x2a29f5(0x211)](_0x5357bb)[_0x2a29f5(0x280)](_0x2a29f5(0x1d6)));if(_0x553354[_0x2a29f5(0x1d7)](_0x56aaa8[_0x2a29f5(0x281)],0x0)){const _0x2b4511=_0x56aaa8[_0x2a29f5(0x1ee)](_0xcea310=>({'filePath':_0xcea310,'mtime':fs[_0x2a29f5(0x26e)](_0xcea310)[_0x2a29f5(0x247)]}))[_0x2a29f5(0x1e5)]((_0x4ed8ee,_0x321dea)=>{const _0x235c08=_0x2a29f5;if(!_0x4ed8ee||!_0x4ed8ee[_0x235c08(0x247)])return _0x321dea;if(_0x553354[_0x235c08(0x271)](_0x321dea[_0x235c08(0x247)],_0x4ed8ee[_0x235c08(0x247)]))return _0x321dea;return _0x4ed8ee;},{});return _0x2b4511?_0x2b4511[_0x2a29f5(0x209)]:'';}return'';}catch(_0x198404){return logger['error'](_0x2a29f5(0x226)+util['format'](_0x198404)),'';}}static ['requestToUpdateCLI']=async(_0x4a0003,_0x4c112b)=>{const _0x2f8b30=a72_0x213a94,_0x15965a={'YYpgO':function(_0x1e62f7,_0x768bba,_0x4b2a6b,_0x36fcf5,_0x1113aa){return _0x1e62f7(_0x768bba,_0x4b2a6b,_0x36fcf5,_0x1113aa);},'RBmPm':_0x2f8b30(0x288)},_0x3a152b={};_0x3a152b['qs']=_0x4a0003;const _0x35b8b2=await _0x15965a[_0x2f8b30(0x1d9)](nodeRequest,_0x15965a[_0x2f8b30(0x1c3)],UPDATED_CLI_ENDPOINT,_0x3a152b,_0x4c112b);return logger[_0x2f8b30(0x256)](_0x2f8b30(0x236)+JSON[_0x2f8b30(0x293)](_0x35b8b2)),_0x35b8b2;};static['isBinaryBusy'](_0x5d38b9){const _0x14c8c2=a72_0x213a94;try{const _0x3a2ec7=fs[_0x14c8c2(0x1d0)](_0x5d38b9,'r+');return fs[_0x14c8c2(0x1e1)](_0x3a2ec7),![];}catch(_0x4ca09e){if(BINARY_BUSY_ERROR_CODES[_0x14c8c2(0x243)](_0x4ca09e[_0x14c8c2(0x257)]))return logger[_0x14c8c2(0x256)](_0x14c8c2(0x252)+_0x5d38b9),!![];return logger['debug']('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x4ca09e['message']),![];}}static['runShellCommand'](_0x3ae480,_0x150d74=''){const _0x4d17e0=a72_0x213a94,_0x5de758={'NRcIn':'version','SJQJG':function(_0x885c4d,_0x5053ab){return _0x885c4d(_0x5053ab);},'zpTjR':'SHELL_EXECUTE_ERROR','Btsfu':function(_0x2e5e2d,_0x108456,_0x29bf4d,_0xad20be){return _0x2e5e2d(_0x108456,_0x29bf4d,_0xad20be);},'IaIkJ':_0x4d17e0(0x1bc)};return new Promise((_0x472c61,_0x485a34)=>{const _0xddb98a=_0x4d17e0,_0x5901c7={};_0x5901c7[_0xddb98a(0x1b5)]=_0x150d74,_0x5901c7[_0xddb98a(0x230)]=0x1388;const _0x575f6e=_0x5de758[_0xddb98a(0x235)](exec,_0x3ae480,_0x5901c7,(_0x4fb0bb,_0x1e406c,_0x3f2c52)=>{const _0x3e1d9d=_0xddb98a;if(_0x4fb0bb){if(_0x3ae480[_0x3e1d9d(0x243)](_0x5de758[_0x3e1d9d(0x241)])&&(_0x1e406c[_0x3e1d9d(0x1cf)]()||_0x3f2c52[_0x3e1d9d(0x1cf)]())){const _0x254499=_0x1e406c['trim']()||_0x3f2c52[_0x3e1d9d(0x1cf)]();logger[_0x3e1d9d(0x256)](_0x3e1d9d(0x25d)+_0x254499+'\x22'),_0x5de758['SJQJG'](_0x472c61,_0x254499);}else _0x5de758['SJQJG'](_0x472c61,_0x3f2c52[_0x3e1d9d(0x1cf)]()||_0x5de758[_0x3e1d9d(0x20e)]);}else logger[_0x3e1d9d(0x256)](_0x3e1d9d(0x1f4)+_0x1e406c[_0x3e1d9d(0x1cf)]()+'\x22'),_0x5de758[_0x3e1d9d(0x28a)](_0x472c61,_0x1e406c[_0x3e1d9d(0x1cf)]());});_0x575f6e['on'](_0x5de758[_0xddb98a(0x1c9)],()=>{const _0x1f6e35=_0xddb98a;_0x5de758[_0x1f6e35(0x28a)](_0x472c61,_0x5de758[_0x1f6e35(0x20e)]);});});}static ['downloadLatestBinary']=async(_0x8a1dda,_0x75b3bc)=>{const _0x3b002c=a72_0x213a94,_0x85fcd2={'zhOgG':_0x3b002c(0x233),'hEkum':function(_0x363d32,_0x54f936){return _0x363d32(_0x54f936);},'PNhHy':function(_0x414a69,_0x363c69){return _0x414a69(_0x363c69);},'fEmAo':'error','rDTZo':_0x3b002c(0x21c),'PbmtZ':function(_0xf10e8a,_0x42c1ce){return _0xf10e8a(_0x42c1ce);}};PerformanceTester[_0x3b002c(0x248)](PerformanceEvents[_0x3b002c(0x253)]),logger['debug'](_0x3b002c(0x206)+_0x8a1dda);try{const _0x342bb1=url[_0x3b002c(0x1d8)](_0x8a1dda),_0x40363e=path['join'](_0x75b3bc,_0x3b002c(0x285)+process[_0x3b002c(0x227)]+_0x3b002c(0x20c)),_0x351d1d=fs[_0x3b002c(0x26c)](_0x40363e);return new Promise((_0x4656d3,_0x15ec49)=>{const _0x2878b5=_0x3b002c,_0x28ef25={'iMPhF':_0x85fcd2[_0x2878b5(0x1c5)],'iname':function(_0x49cf56,_0x476d97){const _0x23038f=_0x2878b5;return _0x85fcd2[_0x23038f(0x282)](_0x49cf56,_0x476d97);}};https[_0x2878b5(0x269)](_0x342bb1,function(_0x146ed5){const _0x2121f7=_0x2878b5,_0x2221cf={'iLGLJ':_0x85fcd2[_0x2121f7(0x25e)],'bLuWV':function(_0x2e56df,_0xe23c44){const _0xe6b133=_0x2121f7;return _0x85fcd2[_0xe6b133(0x1fb)](_0x2e56df,_0xe23c44);},'mspah':function(_0x2c2b4b,_0x34c7ee){const _0x56083f=_0x2121f7;return _0x85fcd2[_0x56083f(0x25a)](_0x2c2b4b,_0x34c7ee);}},_0x52d508=null;_0x146ed5[_0x2121f7(0x24a)](_0x351d1d),_0x146ed5['on'](_0x85fcd2[_0x2121f7(0x1fc)],function(_0x20775c){const _0xae4a65=_0x2121f7;logger[_0xae4a65(0x1bc)](util['format'](_0x2221cf[_0xae4a65(0x294)],_0x20775c)),PerformanceTester[_0xae4a65(0x1e9)](PerformanceEvents[_0xae4a65(0x253)],![],util['format'](_0x20775c)),_0x2221cf[_0xae4a65(0x1da)](_0x15ec49,_0x20775c);}),_0x351d1d['on'](_0x85fcd2['fEmAo'],function(_0x3ff25a){const _0x37de20=_0x2121f7;logger[_0x37de20(0x1bc)](util[_0x37de20(0x244)](_0x28ef25[_0x37de20(0x237)],_0x3ff25a)),PerformanceTester[_0x37de20(0x1e9)](PerformanceEvents[_0x37de20(0x253)],![],util[_0x37de20(0x244)](_0x3ff25a)),_0x28ef25[_0x37de20(0x263)](_0x15ec49,_0x3ff25a);}),CLIUtils[_0x2121f7(0x228)](_0x351d1d,_0x52d508,_0x40363e,_0x75b3bc,_0x13b7ea=>{const _0x5c3609=_0x2121f7;PerformanceTester[_0x5c3609(0x1e9)](PerformanceEvents[_0x5c3609(0x253)]),_0x2221cf[_0x5c3609(0x26b)](_0x4656d3,_0x13b7ea);},_0x3057ac=>{const _0x3add54=_0x2121f7;PerformanceTester['end'](PerformanceEvents[_0x3add54(0x253)],![],util[_0x3add54(0x244)](_0x3057ac)),_0x2221cf[_0x3add54(0x1da)](_0x15ec49,_0x3057ac);});})['on'](_0x85fcd2['fEmAo'],function(_0x347b54){const _0x2c023a=_0x2878b5;logger[_0x2c023a(0x1bc)](_0x2c023a(0x1e3)+util[_0x2c023a(0x244)](_0x347b54)),PerformanceTester[_0x2c023a(0x1e9)](PerformanceEvents[_0x2c023a(0x253)],![],util[_0x2c023a(0x244)](_0x347b54)),_0x28ef25[_0x2c023a(0x263)](_0x15ec49,_0x347b54);});});}catch(_0xbca25c){PerformanceTester[_0x3b002c(0x1e9)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x3b002c(0x244)](_0xbca25c)),logger[_0x3b002c(0x256)]('Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20'+util[_0x3b002c(0x244)](_0xbca25c));}};static[a72_0x213a94(0x228)](_0x56601a,_0x3d8784,_0x595bba,_0x5386c2,_0x36cba6,_0x4f93da){const _0x2d7778=a72_0x213a94,_0x22414d={'BVRyp':function(_0x3fe3ab,_0x4fda4d){return _0x3fe3ab(_0x4fda4d);},'FPSaF':_0x2d7778(0x1e9),'PCRmI':function(_0x326170,_0x5de605){return _0x326170(_0x5de605);},'QRrGF':_0x2d7778(0x1fe),'FASpy':'error','ougTO':function(_0x3aeb08,_0x49011f){return _0x3aeb08(_0x49011f);},'SsvbD':_0x2d7778(0x240),'JLxBL':function(_0x54843c,_0x217fdb){return _0x54843c!==_0x217fdb;},'UVEhV':function(_0x3460c6,_0x45397f){return _0x3460c6(_0x45397f);},'aSqty':function(_0x342b08,_0x2c0bbb){return _0x342b08(_0x2c0bbb);},'Mjnfd':_0x2d7778(0x1f1),'hNwhk':'0755'};_0x56601a['on'](_0x22414d[_0x2d7778(0x200)],function(){const _0x11f4c0=_0x2d7778,_0x8c1241={'zOcwP':function(_0x37f1a4,_0x587b73){const _0x5e9d4f=a72_0x3c4c;return _0x22414d[_0x5e9d4f(0x1ca)](_0x37f1a4,_0x587b73);},'ZEbBX':_0x22414d[_0x11f4c0(0x200)],'DCAtX':function(_0x2b3c1f,_0x920c6f){return _0x22414d['JLxBL'](_0x2b3c1f,_0x920c6f);},'QkcjJ':function(_0x1efa56,_0x1d6ef2){const _0x3864c3=_0x11f4c0;return _0x22414d[_0x3864c3(0x250)](_0x1efa56,_0x1d6ef2);},'zMOVl':function(_0x63dd58,_0x14b222){const _0x1035e2=_0x11f4c0;return _0x22414d[_0x1035e2(0x24e)](_0x63dd58,_0x14b222);},'NlDCi':_0x22414d[_0x11f4c0(0x299)],'vggfh':_0x22414d[_0x11f4c0(0x24d)],'LAVzX':_0x22414d[_0x11f4c0(0x232)]},_0x2dcf90={};_0x2dcf90[_0x11f4c0(0x220)]=!![],yauzl['open'](_0x595bba,_0x2dcf90,function(_0x36f285,_0x396f6a){const _0x5b3eea=_0x11f4c0,_0x29058f={'fOmRT':function(_0x15a2be,_0x33f586){const _0xb748a7=a72_0x3c4c;return _0x22414d[_0xb748a7(0x1c6)](_0x15a2be,_0x33f586);},'QwWku':_0x22414d[_0x5b3eea(0x23a)]};if(_0x36f285){_0x22414d[_0x5b3eea(0x26a)](_0x4f93da,_0x36f285);return;}_0x396f6a[_0x5b3eea(0x1bd)](),_0x396f6a['on'](_0x22414d[_0x5b3eea(0x251)],_0x90b33c=>{const _0x4d4e7d=_0x5b3eea,_0x33095d={'aRcSN':function(_0x3bb061,_0x5e0f33){const _0x21b103=a72_0x3c4c;return _0x8c1241[_0x21b103(0x218)](_0x3bb061,_0x5e0f33);},'CGgmK':function(_0x5e5e99,_0x363611){const _0x2dda40=a72_0x3c4c;return _0x8c1241[_0x2dda40(0x218)](_0x5e5e99,_0x363611);},'soXMJ':_0x8c1241[_0x4d4e7d(0x268)]};if(/\/$/[_0x4d4e7d(0x210)](_0x90b33c[_0x4d4e7d(0x297)])){_0x396f6a[_0x4d4e7d(0x1bd)]();return;}!_0x3d8784&&(_0x3d8784=_0x90b33c[_0x4d4e7d(0x297)]);if(_0x8c1241[_0x4d4e7d(0x1b3)](_0x90b33c['fileName'],_0x3d8784))_0x396f6a['readEntry']();else{const _0x4a1a08=_0x90b33c[_0x4d4e7d(0x297)],_0x1b1673=path[_0x4d4e7d(0x262)](_0x5386c2,_0x4a1a08+_0x4d4e7d(0x26d)+process[_0x4d4e7d(0x227)]);let _0x30fd92;try{_0x30fd92=fs[_0x4d4e7d(0x26c)](_0x1b1673);}catch(_0xa104d8){if(BINARY_BUSY_ERROR_CODES[_0x4d4e7d(0x243)](_0xa104d8[_0x4d4e7d(0x257)])){const _0x25ea52=path[_0x4d4e7d(0x262)](_0x5386c2,_0x4a1a08);if(fs[_0x4d4e7d(0x1e8)](_0x25ea52)){logger[_0x4d4e7d(0x1dd)](_0x4d4e7d(0x1f5)+_0x4a1a08),fs['unlink'](_0x595bba,_0x28b9b4=>{const _0x3a8c2d=_0x4d4e7d;_0x28b9b4&&logger[_0x3a8c2d(0x1dd)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x595bba);}),_0x8c1241['QkcjJ'](_0x36cba6,_0x25ea52);return;}logger[_0x4d4e7d(0x1dd)](_0x4d4e7d(0x21f)+_0x4a1a08);}_0x8c1241[_0x4d4e7d(0x1b9)](_0x4f93da,_0xa104d8);return;}_0x30fd92['on'](_0x8c1241[_0x4d4e7d(0x1bf)],_0x59588e=>{const _0x41425f=_0x4d4e7d;if(BINARY_BUSY_ERROR_CODES['includes'](_0x59588e['code'])){const _0x1a27d7=path[_0x41425f(0x262)](_0x5386c2,_0x4a1a08);_0x30fd92[_0x41425f(0x240)](),fs[_0x41425f(0x1e8)](_0x1a27d7)?(logger[_0x41425f(0x1dd)](_0x41425f(0x28c)+_0x59588e['message']),_0x396f6a[_0x41425f(0x240)](),fs[_0x41425f(0x22e)](_0x595bba,_0x46f070=>{const _0x3da5b4=_0x41425f;_0x46f070&&logger[_0x3da5b4(0x1dd)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x595bba);}),_0x33095d[_0x41425f(0x23c)](_0x36cba6,_0x1a27d7)):(logger[_0x41425f(0x1dd)](_0x41425f(0x1f8)+_0x59588e[_0x41425f(0x1d3)]),fs['unlink'](_0x1b1673,()=>{}),_0x33095d[_0x41425f(0x23c)](_0x4f93da,_0x59588e));}else fs[_0x41425f(0x22e)](_0x1b1673,()=>{}),_0x33095d[_0x41425f(0x245)](_0x4f93da,_0x59588e);}),_0x396f6a[_0x4d4e7d(0x25c)](_0x90b33c,function(_0xd2934e,_0x3ee81c){const _0x55d257=_0x4d4e7d;if(_0xd2934e){fs[_0x55d257(0x22e)](_0x1b1673,()=>{}),_0x29058f[_0x55d257(0x214)](_0x4f93da,_0xd2934e);return;}_0x3ee81c['on'](_0x29058f[_0x55d257(0x1d5)],function(){const _0x416506=_0x55d257;_0x30fd92['end'](),_0x30fd92['on'](_0x33095d[_0x416506(0x1bb)],function(){const _0x276304=_0x416506;_0x396f6a[_0x276304(0x1bd)]();});}),_0x3ee81c['pipe'](_0x30fd92);});}}),_0x396f6a['on'](_0x22414d[_0x5b3eea(0x299)],_0x3f0652=>{const _0x4a6894=_0x5b3eea;_0x8c1241[_0x4a6894(0x1b9)](_0x4f93da,_0x3f0652);}),_0x396f6a[_0x5b3eea(0x25b)](_0x22414d[_0x5b3eea(0x23a)],()=>{const _0x849fe0=_0x5b3eea,_0x31fba0={'qXmQV':function(_0x58c809,_0x5f0c3c){const _0x57729b=a72_0x3c4c;return _0x8c1241[_0x57729b(0x1b3)](_0x58c809,_0x5f0c3c);},'Yyzec':_0x8c1241[_0x849fe0(0x28d)],'buCHR':function(_0x1cb943,_0x316c25){const _0x5c7563=_0x849fe0;return _0x8c1241[_0x5c7563(0x24b)](_0x1cb943,_0x316c25);}};fs[_0x849fe0(0x22e)](_0x595bba,_0x424d95=>{const _0x41248a=_0x849fe0;_0x424d95&&logger[_0x41248a(0x1dd)](_0x41248a(0x234)+_0x595bba);});const _0x282861=path[_0x849fe0(0x262)](_0x5386c2,_0x3d8784+_0x849fe0(0x26d)+process[_0x849fe0(0x227)]),_0x9fe0b6=path[_0x849fe0(0x262)](_0x5386c2,_0x3d8784);fs[_0x849fe0(0x260)](_0x282861,_0x8c1241['LAVzX'],function(_0x3b8b34){const _0x5b4d73=_0x849fe0,_0x2ab3d1={'iKnDn':function(_0x44e028,_0x26bc05){const _0x509ec4=a72_0x3c4c;return _0x31fba0[_0x509ec4(0x295)](_0x44e028,_0x26bc05);},'MIKBY':_0x31fba0[_0x5b4d73(0x298)],'yBgnf':function(_0xa7b1b0,_0x3fc00c){const _0x23016e=_0x5b4d73;return _0x31fba0[_0x23016e(0x239)](_0xa7b1b0,_0x3fc00c);},'OsmAI':function(_0x29da72,_0x412374){return _0x31fba0['buCHR'](_0x29da72,_0x412374);}};if(_0x3b8b34){_0x396f6a[_0x5b4d73(0x240)](),fs[_0x5b4d73(0x22e)](_0x282861,()=>{}),_0x31fba0[_0x5b4d73(0x239)](_0x4f93da,_0x3b8b34);return;}fs[_0x5b4d73(0x27a)](_0x282861,_0x9fe0b6,function(_0x12261f){const _0x2eca15=_0x5b4d73;if(_0x12261f){if(_0x2ab3d1['iKnDn'](_0x12261f['code'],_0x2ab3d1[_0x2eca15(0x21d)])){_0x396f6a[_0x2eca15(0x240)](),fs[_0x2eca15(0x22e)](_0x282861,()=>{}),_0x2ab3d1[_0x2eca15(0x254)](_0x4f93da,_0x12261f);return;}logger[_0x2eca15(0x1dd)](_0x2eca15(0x22b)+_0x12261f[_0x2eca15(0x1d3)]);try{fs[_0x2eca15(0x277)](_0x282861,_0x9fe0b6);}catch(_0x2fe8c2){_0x396f6a['close'](),fs['unlink'](_0x282861,()=>{}),_0x2ab3d1['OsmAI'](_0x4f93da,_0x2fe8c2);return;}fs[_0x2eca15(0x22e)](_0x282861,_0x1efd2f=>{const _0x47ccba=_0x2eca15;_0x1efd2f&&logger[_0x47ccba(0x1dd)](_0x47ccba(0x1ec)+_0x1efd2f[_0x47ccba(0x1d3)]);});}_0x396f6a['close'](),_0x2ab3d1['OsmAI'](_0x36cba6,_0x9fe0b6);});});});});});}static['getTestFrameworkDetail'](){const _0x5c3819=a72_0x213a94;if(process[_0x5c3819(0x27b)][_0x5c3819(0x22f)])return JSON[_0x5c3819(0x1d8)](process[_0x5c3819(0x27b)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this[_0x5c3819(0x25f)];}static['getAutomationFrameworkDetail'](){const _0x1d9cf7=a72_0x213a94;if(process[_0x1d9cf7(0x27b)][_0x1d9cf7(0x1b2)])return JSON[_0x1d9cf7(0x1d8)](process[_0x1d9cf7(0x27b)][_0x1d9cf7(0x1b2)]);return this[_0x1d9cf7(0x286)];}static[a72_0x213a94(0x23f)](_0x5a4d13,_0x48d27){const _0xaf0d7a=a72_0x213a94,_0x224a7e={'fLSPe':_0xaf0d7a(0x1e2),'kAfBZ':function(_0x466dc0,_0x467fc7){return _0x466dc0(_0x467fc7);},'DUiEA':function(_0x26821e,_0x450185){return _0x26821e||_0x450185;}},_0x3bb065=_0x224a7e['fLSPe'][_0xaf0d7a(0x21a)]('|');let _0x50a20a=0x0;while(!![]){switch(_0x3bb065[_0x50a20a++]){case'0':this[_0xaf0d7a(0x286)]={'name':_0x48d27,'version':_0x224a7e[_0xaf0d7a(0x27d)](getFrameworkVersion,_0x48d27)};continue;case'1':this[_0xaf0d7a(0x25f)]={'name':_0x5a4d13,'version':{[_0x5a4d13]:_0x224a7e[_0xaf0d7a(0x27d)](getFrameworkVersion,_0x5a4d13)}};continue;case'2':_0x224a7e[_0xaf0d7a(0x259)](!_0x5a4d13,!_0x48d27)&&logger[_0xaf0d7a(0x256)](_0xaf0d7a(0x249)+_0x5a4d13+_0xaf0d7a(0x217)+_0x48d27);continue;case'3':process[_0xaf0d7a(0x27b)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0xaf0d7a(0x293)](this[_0xaf0d7a(0x25f)]);continue;case'4':process[_0xaf0d7a(0x27b)][_0xaf0d7a(0x1b2)]=JSON[_0xaf0d7a(0x293)](this[_0xaf0d7a(0x286)]);continue;}break;}}static[a72_0x213a94(0x22c)](_0x20c00b,_0x159335){return _0x20c00b+':'+_0x159335;}static[a72_0x213a94(0x1fa)](){const _0x335441=a72_0x213a94;return process[_0x335441(0x227)]+':'+threadId;}static[a72_0x213a94(0x23d)](_0x26a413){const _0x5ea342=a72_0x213a94;if(_0x26a413[_0x5ea342(0x246)]&&_0x26a413[_0x5ea342(0x246)]['skipSessionName'])return!![];return![];}static[a72_0x213a94(0x208)](_0x16b7fa){const _0x21d5ce=a72_0x213a94;if(_0x16b7fa[_0x21d5ce(0x246)]&&_0x16b7fa[_0x21d5ce(0x246)][_0x21d5ce(0x22d)])return!![];return![];}static[a72_0x213a94(0x20b)](_0x295177){const _0x33f41b=a72_0x213a94,_0x3d3402=new RegExp(TestFrameworkConstants[_0x33f41b(0x279)]);return _0x3d3402[_0x33f41b(0x210)](_0x295177);}static['mergeObject'](_0x174b42,_0x708b67){const _0x4664c1=a72_0x213a94,_0x278295={};_0x278295[_0x4664c1(0x1f7)]=function(_0x181a99,_0x3dce33){return _0x181a99!==_0x3dce33;},_0x278295['zLrzV']=function(_0x344e27,_0x246038){return _0x344e27===_0x246038;},_0x278295[_0x4664c1(0x1ed)]=_0x4664c1(0x26f);const _0xbb504f=_0x278295;for(const [_0x336d55,_0x3eafcb]of Object[_0x4664c1(0x21e)](_0x708b67)){if(_0xbb504f['oPOWE'](_0x3eafcb,null)&&_0xbb504f[_0x4664c1(0x242)](typeof _0x3eafcb,_0xbb504f[_0x4664c1(0x1ed)])&&!Array[_0x4664c1(0x238)](_0x3eafcb))_0x174b42[_0x336d55]=this[_0x4664c1(0x1df)](_0x174b42[_0x336d55]||{},_0x3eafcb);else Array[_0x4664c1(0x238)](_0x3eafcb)?_0x174b42[_0x336d55]=(_0x174b42[_0x336d55]||[])['concat'](_0x3eafcb):_0x174b42[_0x336d55]=_0x3eafcb;}return _0x174b42;}}module['exports']=CLIUtils;function a72_0x1732(){const _0x16c811=['Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','ECEqX','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','getHookRegistryKey','skipSessionStatus','unlink','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','timeout','BROWSERSTACK_CLI_ENV','hNwhk','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','Failed\x20to\x20delete\x20zip\x20file:\x20','Btsfu','response\x20','iMPhF','isArray','buCHR','FPSaF','Folder\x20','aRcSN','shouldSkipSessionName','../../helpers/test-observability/utils.js','setFrameworkDetail','close','NRcIn','zLrzV','includes','format','CGgmK','testContextOptions','mtime','start','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','pipe','QkcjJ','BROWSERSTACK_FILES_DIR','Mjnfd','aSqty','info','UVEhV','QRrGF','Binary\x20is\x20busy:\x20','SDK_CLI_DOWNLOAD','yBgnf','./framework/constants/testFrameworkConstants.js','debug','code','nyNzA','DUiEA','PNhHy','once','openReadStream','CLI\x20version\x20found\x20despite\x20error:\x20\x22','zhOgG','testFrameworkDetail','chmod','downloadLatestBinary','join','iname','XIaQv','.sock','Folder\x20does\x20not\x20exist:\x20','getSdkVersion','ZEbBX','get','PCRmI','mspah','createWriteStream','.tmp.','statSync','object','requestToUpdateCLI','uGdOt','development','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','1770494VyKddI','platform','yauzl','copyFileSync','./state/testFrameworkState.js','HOOK_REGEX','rename','env','IsMma','kAfBZ','../../helpers/performance/performance-tester.js','Current\x20CLI\x20Path\x20Found:\x20','startsWith','length','PbmtZ','tmpdir','2279064EePNEZ','downloaded_file_','automationFrameworkDetail','cli_version','GET','runShellCommand','SJQJG','./state/hookState.js','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','vggfh','isDirectory','data','FxiiN','Development\x20Cli\x20Path:\x20','30136nCqMSI','stringify','iLGLJ','qXmQV','.browserstack','fileName','Yyzec','FASpy','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','DCAtX','SDK_CLI_CHECK_UPDATE','cwd','../../../package.json','2524935iqXnIv','getCliDir','zMOVl','3177805PZKtCY','soXMJ','error','readEntry','filter','NlDCi','6YrMtTR','follow-redirects','readdirSync','RBmPm','MHVzB','rDTZo','BVRyp','listen','getExistingCliPath','IaIkJ','ougTO','worker_threads','getSdkLanguage','pPORl','./state/automationFrameworkState.js','trim','openSync','tOhBW','Configuring\x20Cli\x20path.','message','url','QwWku','binary-','PQlDm','parse','YYpgO','bLuWV','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','../utils/apiUtilityMethods.js','warn','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','mergeObject','unix:/tmp/sdk-platform-','closeSync','2|1|0|4|3','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','../../helpers/classLogger.js','reduce','../../helpers/helper','cli','existsSync','end','OAPdS','qlGaU','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','KcdHZ','map','setupCliPath','zxTPr','EXDEV','7037512HvWZxr','Resolved\x20binary\x20path:\x20','Resolving\x20with\x20stdout:\x20\x22','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','path','oPOWE','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','checkAndUpdateCli','getCurrentInstanceName','hEkum','fEmAo','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','entry','node','SsvbD','pEYhN','228fndbNN','arch','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','29376333xMpMoX','Downloading\x20SDK\x20binary\x20from:\x20','\x20already\x20exists','shouldSkipSessionStatus','filePath','isBinaryBusy','matchHookRegex','.zip','BROWSERSTACK_BINARY_URL','zpTjR','child_process','test','basename','slFwc','version','fOmRT','getWritableDir','getCLIParamsForDevEnv',',\x20automationFramework=','zOcwP','CLIUtils','split','isFile','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','MIKBY','entries','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','lazyEntries','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','../../helpers/performance/constants','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','hTcur','GmVIj','Error\x20while\x20reading\x20CLI\x20path:\x20','pid','downloadFileStream'];a72_0x1732=function(){return _0x16c811;};return a72_0x1732();}
|
|
1
|
+
const a72_0x9e1b87=a72_0x41d7;function a72_0x41d7(_0x5ef6a3,_0x5982a4){const _0x1540b8=a72_0x1540();return a72_0x41d7=function(_0x41d749,_0x56bf20){_0x41d749=_0x41d749-0x1ac;let _0x155417=_0x1540b8[_0x41d749];return _0x155417;},a72_0x41d7(_0x5ef6a3,_0x5982a4);}function a72_0x1540(){const _0xbfca3f=['.tmp.','1955BwwPCm','CLI\x20version\x20found\x20despite\x20error:\x20\x22','getCLIParamsForDevEnv','listen','concat','GnFzQ','existsSync','tMfrI','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','hjmrq','Failed\x20to\x20delete\x20zip\x20file:\x20','map','start','node','getSdkVersion','yOZpd','QeVDn','cli_version','SHELL_EXECUTE_ERROR','env','BROWSERSTACK_BINARY_URL','Resolved\x20binary\x20path:\x20','FuxUV','chmod','test','tLhuC','openReadStream','../utils/constants','vvFbp','Typda','rqwAm','BxQgj','./framework/constants/testFrameworkConstants.js','../../helpers/classLogger.js','OAATI','lRMyW','../../helpers/performance/constants','suqDr','kjdZd','Kvtrq','NhtbP','Ytntz','path','WuyEP','moJjx','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','889SYVyPm','isDirectory','mtime','platform','openSync','KdFol','UGKhA','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','xzzxl','AgbnH','VgUFv','ORCNt','mKwlq','close','qGoSB','kHRTi','pipe','hOEug','anZER','unlink','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','stringify','./instances/testFrameworkInstance.js','parse','homedir','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','CLglb','getHookRegistryKey','132GDIGdK','iPLsU','../../helpers/helper','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','pid','iOXHu','BgVzH','INggj','readdirSync','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','closeSync','cli','OwuAl','follow-redirects','copyFileSync','926328DQCbba','end','zhqUJ','EOayE','jdiAa','trim','150MVpBzB','warn','SDK_CLI_DOWNLOAD','BdcPl','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','join','OZupJ','TrIvT','Folder\x20','object','jYdpd','xwPPQ','yauzl','cMjEy','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','BROWSERSTACK_CLI_ENV','url','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','isBinaryBusy','mergeObject','cVHQi','testContextOptions','CrcVq','response\x20','oKJJO','./state/automationFrameworkState.js','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','SDK_CLI_CHECK_UPDATE','unix:/tmp/sdk-platform-','Configuring\x20Cli\x20path.','LKqxt','version','createWriteStream','./state/testFrameworkState.js','automationFrameworkDetail','20BwdHqU','./state/hookState.js','ihzvh','UzjKg','eQDsy','includes','18032EudAnq','getWritableDir','../../helpers/test-observability/utils.js','1492348fQOZud','GET','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','code','BRUXr','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','yROYP','ghkPS','PfOwx','zODWR','matchHookRegex','Setting\x20required\x20permissions\x20to\x20','146934sUIweT','.browserstack','isArray','EXDEV','cAwUf','util','getTestFrameworkDetail','format','downloadFileStream','debug','error','startsWith','../utils/apiUtilityMethods.js','obnqx','.sock','756uvkmKD','worker_threads','ZSNtP','\x20already\x20exists','xuvzw','getExistingCliPath','TRIrC','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','checkAndUpdateCli','info','shouldSkipSessionStatus','child_process','readEntry','cwd','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','entries','getCliDir','Folder\x20does\x20not\x20exist:\x20','zWyli','jKvCy','getSdkLanguage','2|0|3|4|1','1186821ZdLrKQ','runShellCommand','pfgjo','filePath','skipSessionName','requestToUpdateCLI','isDevelopmentEnv','open','getAutomationFrameworkDetail','fileName','downloadLatestBinary','data','entry','basename','skipSessionStatus','../../helpers/utilities','DCDvR','timeout','QgtbS','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','rename','development','CLIUtils','QYTXy','../../../package.json','Error\x20while\x20reading\x20CLI\x20path:\x20','binary-','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','0755','Downloading\x20SDK\x20binary\x20from:\x20','filter','testFrameworkDetail','statSync','fgLDf','message'];a72_0x1540=function(){return _0xbfca3f;};return a72_0x1540();}(function(_0x1d81c6,_0x47a8d8){const _0x4040bb=a72_0x41d7,_0x109cac=_0x1d81c6();while(!![]){try{const _0x515a91=parseInt(_0x4040bb(0x256))/0x1*(-parseInt(_0x4040bb(0x1bd))/0x2)+parseInt(_0x4040bb(0x250))/0x3+parseInt(_0x4040bb(0x241))/0x4*(parseInt(_0x4040bb(0x1f7))/0x5)+parseInt(_0x4040bb(0x1ae))/0x6+-parseInt(_0x4040bb(0x225))/0x7*(-parseInt(_0x4040bb(0x27f))/0x8)+-parseInt(_0x4040bb(0x1d3))/0x9*(parseInt(_0x4040bb(0x279))/0xa)+-parseInt(_0x4040bb(0x282))/0xb;if(_0x515a91===_0x47a8d8)break;else _0x109cac['push'](_0x109cac['shift']());}catch(_0x1c9f47){_0x109cac['push'](_0x109cac['shift']());}}}(a72_0x1540,0x2b0c0));const fs=require('fs'),os=require('os'),url=require(a72_0x9e1b87(0x266)),path=require(a72_0x9e1b87(0x221)),{exec}=require(a72_0x9e1b87(0x1c8)),{https}=require(a72_0x9e1b87(0x24e)),yauzl=require(a72_0x9e1b87(0x262)),util=require(a72_0x9e1b87(0x1b3)),{getFrameworkVersion}=require(a72_0x9e1b87(0x281)),{threadId}=require(a72_0x9e1b87(0x1be)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a72_0x9e1b87(0x21b)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a72_0x9e1b87(0x1e2)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a72_0x9e1b87(0x243)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a72_0x9e1b87(0x212)),{createClassLogger}=require(a72_0x9e1b87(0x218)),TestFrameworkInstance=require(a72_0x9e1b87(0x23b)),HookState=require(a72_0x9e1b87(0x27a)),TestFrameworkState=require(a72_0x9e1b87(0x277)),AutomationFrameworkState=require(a72_0x9e1b87(0x26f)),TestFrameworkConstants=require(a72_0x9e1b87(0x217)),logger=createClassLogger(a72_0x9e1b87(0x1e9)),{getBStackAPIUrl}=require(a72_0x9e1b87(0x1ba));class CLIUtils{[a72_0x9e1b87(0x278)]={};[a72_0x9e1b87(0x1f2)]={};static[a72_0x9e1b87(0x1d9)](){const _0x403cde=a72_0x9e1b87,_0x499859={};_0x499859[_0x403cde(0x27d)]=function(_0x1695c6,_0x4d5686){return _0x1695c6===_0x4d5686;},_0x499859[_0x403cde(0x260)]=_0x403cde(0x1e8);const _0x435b2c=_0x499859;return _0x435b2c['eQDsy'](process[_0x403cde(0x20a)][_0x403cde(0x265)],_0x435b2c[_0x403cde(0x260)]);}static[a72_0x9e1b87(0x1f9)](){const _0x30ea85=a72_0x9e1b87,_0x44d267={};return _0x44d267['id']=process['env'][_0x30ea85(0x265)],_0x44d267[_0x30ea85(0x1fa)]=_0x30ea85(0x272)+process[_0x30ea85(0x20a)][_0x30ea85(0x265)]+_0x30ea85(0x1bc),_0x44d267;}static[a72_0x9e1b87(0x205)](){const _0x345782=a72_0x9e1b87,_0x21011a={'hOEug':function(_0x1b7f52,_0x3e550e){return _0x1b7f52(_0x3e550e);},'QgtbS':_0x345782(0x1eb)};return _0x21011a[_0x345782(0x236)](require,_0x21011a[_0x345782(0x1e5)])[_0x345782(0x275)];}static[a72_0x9e1b87(0x1d1)](){const _0x21eb5e=a72_0x9e1b87,_0x2d1475={};_0x2d1475[_0x21eb5e(0x248)]=_0x21eb5e(0x204);const _0x534829=_0x2d1475;return _0x534829[_0x21eb5e(0x248)];}static async['setupCliPath'](_0x5bf047){const _0x37c83c=a72_0x9e1b87,_0x5bba57={'yROYP':_0x37c83c(0x273),'OZupJ':function(_0x1e64eb,_0x38e83a){return _0x1e64eb(_0x38e83a);},'vzYeK':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x37c83c(0x1b7)](_0x5bba57[_0x37c83c(0x289)]);const _0x569d4d=process[_0x37c83c(0x20a)]['SDK_CLI_BIN_PATH'];if(!_0x5bba57[_0x37c83c(0x25c)](isNullOrEmpty,_0x569d4d))return logger[_0x37c83c(0x1b7)]('Development\x20Cli\x20Path:\x20'+_0x569d4d),_0x569d4d;try{const _0x2921ff=this[_0x37c83c(0x1cd)]();if(_0x5bba57[_0x37c83c(0x25c)](isNullOrEmpty,_0x2921ff))throw new Error(_0x5bba57['vzYeK']);const _0x2f69c4=this[_0x37c83c(0x1c2)](_0x2921ff),_0x45213e=await this[_0x37c83c(0x1c5)](_0x2f69c4,_0x2921ff,_0x5bf047);return logger['debug'](_0x37c83c(0x20c)+_0x45213e),_0x45213e;}catch(_0x4d2271){logger['debug'](_0x37c83c(0x239)+util[_0x37c83c(0x1b5)](_0x4d2271));}return null;}static async[a72_0x9e1b87(0x1c5)](_0x376ae0,_0x16934f,_0x3400b7){const _0x2d55a8=a72_0x9e1b87,_0x525c27={'lElHe':function(_0x3a51c5){return _0x3a51c5();},'tMfrI':function(_0x849ed8,_0x5a67f9){return _0x849ed8(_0x5a67f9);},'anZER':function(_0x481b76,_0xff0cf3,_0x2c28a5){return _0x481b76(_0xff0cf3,_0x2c28a5);},'obnqx':_0x2d55a8(0x1de),'iPLsU':_0x2d55a8(0x266),'FHBOi':function(_0x1b3c9a,_0x48f58f,_0x3fbabf){return _0x1b3c9a(_0x48f58f,_0x3fbabf);}};PerformanceTester[_0x2d55a8(0x203)](PerformanceEvents[_0x2d55a8(0x271)]),logger[_0x2d55a8(0x1c6)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x376ae0);const _0xa8d1d6=_0x525c27['lElHe'](getHostInfo),_0x5cf2c6={'sdk_version':CLIUtils['getSdkVersion'](),'os':_0xa8d1d6[_0x2d55a8(0x228)],'os_arch':_0xa8d1d6['arch'],'cli_version':'0','sdk_language':this[_0x2d55a8(0x1d1)]()};!_0x525c27[_0x2d55a8(0x1fe)](isNullOrEmpty,_0x376ae0)&&(_0x5cf2c6['cli_version']=await this[_0x2d55a8(0x1d4)](_0x376ae0+'\x20version'));const _0x4479e0=await this[_0x2d55a8(0x1d8)](_0x5cf2c6,_0x3400b7);process[_0x2d55a8(0x20a)][_0x2d55a8(0x20b)]&&(logger['info']('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process[_0x2d55a8(0x20a)]['BROWSERSTACK_BINARY_URL']),_0x4479e0[_0x2d55a8(0x1de)][_0x2d55a8(0x266)]=process[_0x2d55a8(0x20a)]['BROWSERSTACK_BINARY_URL']);if(_0x525c27[_0x2d55a8(0x237)](nestedKeyValue,_0x4479e0,[_0x525c27[_0x2d55a8(0x1bb)],_0x525c27[_0x2d55a8(0x242)]])){logger['debug'](_0x2d55a8(0x288)+_0x5cf2c6[_0x2d55a8(0x208)]);if(!_0x525c27['tMfrI'](isNullOrEmpty,_0x376ae0)&&this[_0x2d55a8(0x268)](_0x376ae0))return logger[_0x2d55a8(0x257)](_0x2d55a8(0x25a)+_0x376ae0),PerformanceTester[_0x2d55a8(0x251)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x376ae0;const _0xe1690a=await this[_0x2d55a8(0x1dd)](_0x525c27['FHBOi'](nestedKeyValue,_0x4479e0,[_0x525c27[_0x2d55a8(0x1bb)],_0x525c27[_0x2d55a8(0x242)]]),_0x16934f);return PerformanceTester['end'](PerformanceEvents[_0x2d55a8(0x271)]),_0xe1690a;}return PerformanceTester['end'](PerformanceEvents[_0x2d55a8(0x271)]),_0x376ae0;}static[a72_0x9e1b87(0x1cd)](){const _0x12cb55=a72_0x9e1b87,_0x5cd594={'cAwUf':function(_0x4444cc,_0x3b755d){return _0x4444cc(_0x3b755d);},'Ytntz':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','LedXU':_0x12cb55(0x24c)},_0x3cfc08=this[_0x12cb55(0x280)]();try{if(_0x5cd594[_0x12cb55(0x1b2)](isNullOrEmpty,_0x3cfc08))throw new Error(_0x5cd594[_0x12cb55(0x220)]);const _0x8f40f7=path[_0x12cb55(0x25b)](_0x3cfc08,_0x5cd594['LedXU']);return!fs[_0x12cb55(0x1fd)](_0x8f40f7)&&_0x5cd594[_0x12cb55(0x1b2)](createDir,_0x8f40f7),_0x8f40f7;}catch(_0x1fbe34){logger[_0x12cb55(0x1b7)](_0x12cb55(0x244)+util[_0x12cb55(0x1b5)](_0x1fbe34));}}static[a72_0x9e1b87(0x280)](){const _0x236ad2=a72_0x9e1b87,_0x2c3805={'WuyEP':_0x236ad2(0x1af),'AgbnH':function(_0xbf493c,_0x56653a){return _0xbf493c(_0x56653a);},'ghkPS':function(_0x23f24f,_0x42a36d){return _0x23f24f(_0x42a36d);},'vvFbp':function(_0x91c746,_0x2edb41){return _0x91c746(_0x2edb41);},'xuvzw':function(_0xb31929,_0x5eafdd){return _0xb31929(_0x5eafdd);},'RjJfr':function(_0x1b2e70,_0x205bec){return _0x1b2e70(_0x205bec);}},_0x363165=[process[_0x236ad2(0x20a)]['BROWSERSTACK_FILES_DIR'],path['join'](os[_0x236ad2(0x23d)](),_0x2c3805[_0x236ad2(0x222)]),path[_0x236ad2(0x25b)](os['tmpdir'](),_0x2c3805[_0x236ad2(0x222)])];for(const _0xc540ca of _0x363165){if(_0x2c3805[_0x236ad2(0x22e)](isNullOrEmpty,_0xc540ca))continue;try{if(fs[_0x236ad2(0x1fd)](_0xc540ca)){logger['debug'](_0x236ad2(0x25e)+_0xc540ca+_0x236ad2(0x1c0));if(!_0x2c3805[_0x236ad2(0x28a)](isModifiable,_0xc540ca)){logger[_0x236ad2(0x1b7)](_0x236ad2(0x1ad)+_0xc540ca);const _0x42a8b5=_0x2c3805[_0x236ad2(0x22e)](setReadWriteExecuteAccess,_0xc540ca);if(!_0x2c3805[_0x236ad2(0x28a)](isTrue,_0x42a8b5)){logger[_0x236ad2(0x257)](_0x236ad2(0x224)+_0xc540ca);continue;}}}else{logger[_0x236ad2(0x1b7)](_0x236ad2(0x1ce)+_0xc540ca),_0x2c3805[_0x236ad2(0x213)](createDir,_0xc540ca),logger[_0x236ad2(0x1b7)]('Setting\x20required\x20permissions\x20to\x20'+_0xc540ca);const _0x197d0a=_0x2c3805[_0x236ad2(0x1c1)](setReadWriteExecuteAccess,_0xc540ca);!_0x2c3805['RjJfr'](isTrue,_0x197d0a)&&logger[_0x236ad2(0x257)](_0x236ad2(0x224)+_0xc540ca);}return _0xc540ca;}catch(_0x485a47){logger[_0x236ad2(0x1b8)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x236ad2(0x1b5)](_0x485a47));}}return null;}static[a72_0x9e1b87(0x1c2)](_0x1c4244){const _0x3851d2=a72_0x9e1b87,_0x30811a={};_0x30811a['wbrmi']=function(_0xd7f331,_0x23560d){return _0xd7f331>_0x23560d;},_0x30811a[_0x3851d2(0x253)]=function(_0x601222,_0x33a04d){return _0x601222>_0x33a04d;};const _0x184f04=_0x30811a;try{if(!fs[_0x3851d2(0x1fd)](_0x1c4244)||!fs[_0x3851d2(0x1f3)](_0x1c4244)[_0x3851d2(0x226)]())return'';const _0x493651=fs[_0x3851d2(0x249)](_0x1c4244)[_0x3851d2(0x202)](_0x103139=>path[_0x3851d2(0x25b)](_0x1c4244,_0x103139))[_0x3851d2(0x1f1)](_0x207453=>fs[_0x3851d2(0x1f3)](_0x207453)['isFile']()&&path[_0x3851d2(0x1e0)](_0x207453)[_0x3851d2(0x1b9)](_0x3851d2(0x1ed)));if(_0x184f04[_0x3851d2(0x253)](_0x493651['length'],0x0)){const _0x54966d=_0x493651[_0x3851d2(0x202)](_0x57cd82=>({'filePath':_0x57cd82,'mtime':fs[_0x3851d2(0x1f3)](_0x57cd82)['mtime']}))['reduce']((_0x4b70b4,_0x322f4c)=>{const _0x4fd603=_0x3851d2;if(!_0x4b70b4||!_0x4b70b4['mtime'])return _0x322f4c;if(_0x184f04['wbrmi'](_0x322f4c[_0x4fd603(0x227)],_0x4b70b4['mtime']))return _0x322f4c;return _0x4b70b4;},{});return _0x54966d?_0x54966d[_0x3851d2(0x1d6)]:'';}return'';}catch(_0x292755){return logger[_0x3851d2(0x1b8)](_0x3851d2(0x1ec)+util[_0x3851d2(0x1b5)](_0x292755)),'';}}static ['requestToUpdateCLI']=async(_0x14c15f,_0x3ec134)=>{const _0x3c5c03=a72_0x9e1b87,_0x2c1c5a={'UzjKg':function(_0x24a733,_0x379228,_0x4e381e,_0x4db277,_0x29e78d){return _0x24a733(_0x379228,_0x4e381e,_0x4db277,_0x29e78d);},'mKwlq':_0x3c5c03(0x283)},_0x16d1ed={};_0x16d1ed['qs']=_0x14c15f;const _0xce2492=await _0x2c1c5a[_0x3c5c03(0x27c)](nodeRequest,_0x2c1c5a[_0x3c5c03(0x231)],UPDATED_CLI_ENDPOINT,_0x16d1ed,_0x3ec134);return logger[_0x3c5c03(0x1b7)](_0x3c5c03(0x26d)+JSON[_0x3c5c03(0x23a)](_0xce2492)),_0xce2492;};static[a72_0x9e1b87(0x268)](_0x388742){const _0x44fa55=a72_0x9e1b87;try{const _0x141fb6=fs[_0x44fa55(0x229)](_0x388742,'r+');return fs[_0x44fa55(0x24b)](_0x141fb6),![];}catch(_0x4765cb){if(BINARY_BUSY_ERROR_CODES[_0x44fa55(0x27e)](_0x4765cb[_0x44fa55(0x286)]))return logger[_0x44fa55(0x1b7)]('Binary\x20is\x20busy:\x20'+_0x388742),!![];return logger[_0x44fa55(0x1b7)](_0x44fa55(0x24a)+_0x4765cb[_0x44fa55(0x1f5)]),![];}}static['runShellCommand'](_0x253240,_0x26e8e4=''){const _0x45ced4=a72_0x9e1b87,_0x26bde2={'moJjx':_0x45ced4(0x275),'kHRTi':function(_0x52e19d,_0x1391fa){return _0x52e19d(_0x1391fa);},'VgUFv':_0x45ced4(0x209),'xzzxl':function(_0x4f82df,_0x19034f){return _0x4f82df(_0x19034f);},'UGKhA':function(_0x1a307a,_0x2c8cd0){return _0x1a307a(_0x2c8cd0);},'VSVmo':function(_0x5b76a8,_0x1c4c12,_0x35b4c8,_0x3fab6b){return _0x5b76a8(_0x1c4c12,_0x35b4c8,_0x3fab6b);},'uzoNX':_0x45ced4(0x1b8)};return new Promise((_0x4b29cb,_0x1c6d55)=>{const _0x37ecd9=_0x45ced4,_0x1a8195={};_0x1a8195[_0x37ecd9(0x1ca)]=_0x26e8e4,_0x1a8195[_0x37ecd9(0x1e4)]=0x1388;const _0x3f33b4=_0x26bde2['VSVmo'](exec,_0x253240,_0x1a8195,(_0x37653f,_0x30f589,_0x32a63f)=>{const _0xb468db=_0x37ecd9;if(_0x37653f){if(_0x253240['includes'](_0x26bde2[_0xb468db(0x223)])&&(_0x30f589[_0xb468db(0x255)]()||_0x32a63f[_0xb468db(0x255)]())){const _0xfea6a0=_0x30f589[_0xb468db(0x255)]()||_0x32a63f[_0xb468db(0x255)]();logger[_0xb468db(0x1b7)](_0xb468db(0x1f8)+_0xfea6a0+'\x22'),_0x26bde2['kHRTi'](_0x4b29cb,_0xfea6a0);}else _0x26bde2[_0xb468db(0x234)](_0x4b29cb,_0x32a63f[_0xb468db(0x255)]()||_0x26bde2[_0xb468db(0x22f)]);}else logger['debug']('Resolving\x20with\x20stdout:\x20\x22'+_0x30f589[_0xb468db(0x255)]()+'\x22'),_0x26bde2[_0xb468db(0x22d)](_0x4b29cb,_0x30f589['trim']());});_0x3f33b4['on'](_0x26bde2['uzoNX'],()=>{const _0x227013=_0x37ecd9;_0x26bde2[_0x227013(0x22b)](_0x4b29cb,_0x26bde2['VgUFv']);});});}static [a72_0x9e1b87(0x1dd)]=async(_0x5e90d2,_0x48291b)=>{const _0x5be1cb=a72_0x9e1b87,_0x1892d4={'QYTXy':function(_0x467c6,_0x30f6df){return _0x467c6(_0x30f6df);},'qGoSB':_0x5be1cb(0x1cb),'PfOwx':function(_0x3bf5ee,_0x474966){return _0x3bf5ee(_0x474966);},'ZdBJe':_0x5be1cb(0x284),'DfnJA':function(_0x494f05,_0x47d70f){return _0x494f05(_0x47d70f);},'zODWR':_0x5be1cb(0x1b8)};PerformanceTester[_0x5be1cb(0x203)](PerformanceEvents[_0x5be1cb(0x258)]),logger[_0x5be1cb(0x1b7)](_0x5be1cb(0x1f0)+_0x5e90d2);try{const _0x42b5f4=url[_0x5be1cb(0x23c)](_0x5e90d2),_0x396390=path[_0x5be1cb(0x25b)](_0x48291b,'downloaded_file_'+process[_0x5be1cb(0x245)]+'.zip'),_0x4fd4f1=fs[_0x5be1cb(0x276)](_0x396390);return new Promise((_0x56f99a,_0x42f62b)=>{const _0x38ce07=_0x5be1cb,_0x58bb26={'BxQgj':_0x1892d4[_0x38ce07(0x233)],'ZSNtP':function(_0x526ab3,_0x4a1fd4){const _0x549fe3=_0x38ce07;return _0x1892d4[_0x549fe3(0x28b)](_0x526ab3,_0x4a1fd4);},'cMjEy':_0x1892d4['ZdBJe'],'zgHDt':function(_0x4c1917,_0x57c117){return _0x1892d4['DfnJA'](_0x4c1917,_0x57c117);},'CLglb':_0x1892d4[_0x38ce07(0x28c)]};https['get'](_0x42b5f4,function(_0x3feef9){const _0xdf964e=_0x38ce07,_0x250c53={'OAATI':_0x58bb26[_0xdf964e(0x263)],'lRMyW':function(_0x266452,_0x46483c){return _0x58bb26['zgHDt'](_0x266452,_0x46483c);},'UwhfS':function(_0xf4f345,_0x25f596){return _0x58bb26['zgHDt'](_0xf4f345,_0x25f596);}},_0x1461f4=null;_0x3feef9[_0xdf964e(0x235)](_0x4fd4f1),_0x3feef9['on'](_0x58bb26['CLglb'],function(_0x687d52){const _0x553bf0=_0xdf964e;logger[_0x553bf0(0x1b8)](util[_0x553bf0(0x1b5)](_0x58bb26[_0x553bf0(0x216)],_0x687d52)),PerformanceTester[_0x553bf0(0x251)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x553bf0(0x1b5)](_0x687d52)),_0x58bb26[_0x553bf0(0x1bf)](_0x42f62b,_0x687d52);}),_0x4fd4f1['on'](_0x58bb26[_0xdf964e(0x23f)],function(_0x39f828){const _0x2b6728=_0xdf964e;logger[_0x2b6728(0x1b8)](util[_0x2b6728(0x1b5)](_0x250c53[_0x2b6728(0x219)],_0x39f828)),PerformanceTester[_0x2b6728(0x251)](PerformanceEvents[_0x2b6728(0x258)],![],util[_0x2b6728(0x1b5)](_0x39f828)),_0x250c53[_0x2b6728(0x21a)](_0x42f62b,_0x39f828);}),CLIUtils[_0xdf964e(0x1b6)](_0x4fd4f1,_0x1461f4,_0x396390,_0x48291b,_0xcb4239=>{const _0x386391=_0xdf964e;PerformanceTester[_0x386391(0x251)](PerformanceEvents[_0x386391(0x258)]),_0x250c53['UwhfS'](_0x56f99a,_0xcb4239);},_0x4b3913=>{const _0xc8bf37=_0xdf964e;PerformanceTester[_0xc8bf37(0x251)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0xc8bf37(0x1b5)](_0x4b3913)),_0x58bb26[_0xc8bf37(0x1bf)](_0x42f62b,_0x4b3913);});})['on'](_0x1892d4[_0x38ce07(0x28c)],function(_0x555ef8){const _0x54159a=_0x38ce07;logger[_0x54159a(0x1b8)](_0x54159a(0x264)+util['format'](_0x555ef8)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x54159a(0x1b5)](_0x555ef8)),_0x1892d4[_0x54159a(0x1ea)](_0x42f62b,_0x555ef8);});});}catch(_0xd6717e){PerformanceTester[_0x5be1cb(0x251)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0xd6717e)),logger[_0x5be1cb(0x1b7)](_0x5be1cb(0x267)+util[_0x5be1cb(0x1b5)](_0xd6717e));}};static[a72_0x9e1b87(0x1b6)](_0x3a2e8a,_0x2b69d9,_0x2897fe,_0x13366b,_0x45e451,_0x4acebd){const _0x58fca9=a72_0x9e1b87,_0x29c529={'hjmrq':_0x58fca9(0x232),'NUVCa':function(_0xb7af27,_0x65fabe){return _0xb7af27(_0x65fabe);},'jdiAa':_0x58fca9(0x251),'BRUXr':function(_0x51edbc,_0xfab0ed){return _0x51edbc(_0xfab0ed);},'LKqxt':_0x58fca9(0x1df),'GnFzQ':_0x58fca9(0x1b8),'kjdZd':function(_0x348a38,_0x50c42a){return _0x348a38(_0x50c42a);},'pfgjo':function(_0x15080c,_0x16a9c6){return _0x15080c!==_0x16a9c6;},'ORCNt':function(_0x3a6e9e,_0x2a5145){return _0x3a6e9e(_0x2a5145);},'IboyC':_0x58fca9(0x1b1),'zhqUJ':function(_0x53fd31,_0xdd8e33){return _0x53fd31(_0xdd8e33);},'fgLDf':_0x58fca9(0x1ef)};_0x3a2e8a['on'](_0x29c529[_0x58fca9(0x200)],function(){const _0x3122d5=_0x58fca9,_0x11e90b={'zWyli':function(_0xd680b1,_0x22557d){const _0x59718d=a72_0x41d7;return _0x29c529[_0x59718d(0x21d)](_0xd680b1,_0x22557d);},'BdcPl':function(_0x1b5ecd,_0x353093){const _0x2cac1a=a72_0x41d7;return _0x29c529[_0x2cac1a(0x1d5)](_0x1b5ecd,_0x353093);},'QeVDn':function(_0x466870,_0x36626d){const _0x4f2716=a72_0x41d7;return _0x29c529[_0x4f2716(0x230)](_0x466870,_0x36626d);},'yOZpd':_0x29c529[_0x3122d5(0x1fc)],'tLhuC':function(_0x2f181d,_0x43b065){const _0x29354a=_0x3122d5;return _0x29c529[_0x29354a(0x1d5)](_0x2f181d,_0x43b065);},'KdFol':_0x29c529['IboyC'],'OwuAl':function(_0x4155ba,_0x40e0fc){const _0x4570ee=_0x3122d5;return _0x29c529[_0x4570ee(0x252)](_0x4155ba,_0x40e0fc);},'Typda':_0x29c529[_0x3122d5(0x1f4)]},_0x3e7c53={};_0x3e7c53['lazyEntries']=!![],yauzl[_0x3122d5(0x1da)](_0x2897fe,_0x3e7c53,function(_0x3df21e,_0x449406){const _0xbf6c1=_0x3122d5,_0x3a1ba0={'cVHQi':_0x29c529[_0xbf6c1(0x200)],'Kvtrq':function(_0x2dc40b,_0x2f07e8){return _0x29c529['NUVCa'](_0x2dc40b,_0x2f07e8);},'BgVzH':_0x29c529[_0xbf6c1(0x254)]};if(_0x3df21e){_0x29c529[_0xbf6c1(0x287)](_0x4acebd,_0x3df21e);return;}_0x449406[_0xbf6c1(0x1c9)](),_0x449406['on'](_0x29c529[_0xbf6c1(0x274)],_0x60aec6=>{const _0x9558a8=_0xbf6c1,_0x25a73b={'CrcVq':function(_0x4849f7,_0x506a11){const _0x295289=a72_0x41d7;return _0x11e90b[_0x295289(0x1cf)](_0x4849f7,_0x506a11);},'jKvCy':function(_0x196be3,_0x2f71ae){return _0x11e90b['zWyli'](_0x196be3,_0x2f71ae);}};if(/\/$/['test'](_0x60aec6['fileName'])){_0x449406[_0x9558a8(0x1c9)]();return;}!_0x2b69d9&&(_0x2b69d9=_0x60aec6[_0x9558a8(0x1dc)]);if(_0x11e90b[_0x9558a8(0x259)](_0x60aec6[_0x9558a8(0x1dc)],_0x2b69d9))_0x449406[_0x9558a8(0x1c9)]();else{const _0xb149b4=_0x60aec6[_0x9558a8(0x1dc)],_0x5e9046=path[_0x9558a8(0x25b)](_0x13366b,_0xb149b4+_0x9558a8(0x1f6)+process[_0x9558a8(0x245)]);let _0x11bd50;try{_0x11bd50=fs['createWriteStream'](_0x5e9046);}catch(_0x41e855){if(BINARY_BUSY_ERROR_CODES[_0x9558a8(0x27e)](_0x41e855[_0x9558a8(0x286)])){const _0x291f89=path[_0x9558a8(0x25b)](_0x13366b,_0xb149b4);if(fs[_0x9558a8(0x1fd)](_0x291f89)){logger[_0x9558a8(0x257)](_0x9558a8(0x1c4)+_0xb149b4),fs[_0x9558a8(0x238)](_0x2897fe,_0x52762c=>{const _0x29505d=_0x9558a8;_0x52762c&&logger['warn'](_0x29505d(0x201)+_0x2897fe);}),_0x11e90b['zWyli'](_0x45e451,_0x291f89);return;}logger[_0x9558a8(0x257)](_0x9558a8(0x1e6)+_0xb149b4);}_0x11e90b[_0x9558a8(0x207)](_0x4acebd,_0x41e855);return;}_0x11bd50['on'](_0x11e90b[_0x9558a8(0x206)],_0x2f7585=>{const _0x473628=_0x9558a8;if(BINARY_BUSY_ERROR_CODES[_0x473628(0x27e)](_0x2f7585['code'])){const _0x31e10f=path[_0x473628(0x25b)](_0x13366b,_0xb149b4);_0x11bd50['close'](),fs['existsSync'](_0x31e10f)?(logger[_0x473628(0x257)](_0x473628(0x270)+_0x2f7585['message']),_0x449406[_0x473628(0x232)](),fs[_0x473628(0x238)](_0x2897fe,_0x6d5316=>{const _0x2737d3=_0x473628;_0x6d5316&&logger[_0x2737d3(0x257)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x2897fe);}),_0x25a73b[_0x473628(0x26c)](_0x45e451,_0x31e10f)):(logger[_0x473628(0x257)]('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x2f7585[_0x473628(0x1f5)]),fs['unlink'](_0x5e9046,()=>{}),_0x25a73b[_0x473628(0x1d0)](_0x4acebd,_0x2f7585));}else fs['unlink'](_0x5e9046,()=>{}),_0x25a73b['CrcVq'](_0x4acebd,_0x2f7585);}),_0x449406[_0x9558a8(0x211)](_0x60aec6,function(_0x5db674,_0x2dbd20){const _0x2eb589=_0x9558a8,_0x4fb5f0={};_0x4fb5f0['DCDvR']=_0x3a1ba0[_0x2eb589(0x26a)];const _0x3bd4fc=_0x4fb5f0;if(_0x5db674){fs['unlink'](_0x5e9046,()=>{}),_0x3a1ba0['Kvtrq'](_0x4acebd,_0x5db674);return;}_0x2dbd20['on'](_0x3a1ba0[_0x2eb589(0x247)],function(){const _0x37bc0a=_0x2eb589;_0x11bd50[_0x37bc0a(0x251)](),_0x11bd50['on'](_0x3bd4fc[_0x37bc0a(0x1e3)],function(){_0x449406['readEntry']();});}),_0x2dbd20['pipe'](_0x11bd50);});}}),_0x449406['on'](_0x29c529[_0xbf6c1(0x1fc)],_0x52f4e3=>{const _0x16fe35=_0xbf6c1;_0x3a1ba0[_0x16fe35(0x21e)](_0x4acebd,_0x52f4e3);}),_0x449406['once'](_0x29c529['jdiAa'],()=>{const _0x23012b=_0xbf6c1,_0x537f12={'iOXHu':function(_0x51ac9e,_0x4d6f58){const _0x541e1f=a72_0x41d7;return _0x11e90b[_0x541e1f(0x210)](_0x51ac9e,_0x4d6f58);},'suqDr':_0x11e90b[_0x23012b(0x22a)],'rqwAm':function(_0x3bfdbd,_0x1d9757){const _0x2fb858=_0x23012b;return _0x11e90b[_0x2fb858(0x24d)](_0x3bfdbd,_0x1d9757);},'TRIrC':function(_0x4bb3b9,_0x123527){return _0x11e90b['QeVDn'](_0x4bb3b9,_0x123527);}};fs['unlink'](_0x2897fe,_0x907759=>{const _0x48385a=_0x23012b;_0x907759&&logger[_0x48385a(0x257)](_0x48385a(0x201)+_0x2897fe);});const _0x543854=path[_0x23012b(0x25b)](_0x13366b,_0x2b69d9+_0x23012b(0x1f6)+process[_0x23012b(0x245)]),_0x113b64=path['join'](_0x13366b,_0x2b69d9);fs[_0x23012b(0x20e)](_0x543854,_0x11e90b[_0x23012b(0x214)],function(_0x34d5eb){const _0x1fe4fc=_0x23012b;if(_0x34d5eb){_0x449406[_0x1fe4fc(0x232)](),fs[_0x1fe4fc(0x238)](_0x543854,()=>{}),_0x537f12[_0x1fe4fc(0x1c3)](_0x4acebd,_0x34d5eb);return;}fs[_0x1fe4fc(0x1e7)](_0x543854,_0x113b64,function(_0x5da401){const _0x396357=_0x1fe4fc;if(_0x5da401){if(_0x537f12[_0x396357(0x246)](_0x5da401['code'],_0x537f12[_0x396357(0x21c)])){_0x449406[_0x396357(0x232)](),fs[_0x396357(0x238)](_0x543854,()=>{}),_0x537f12[_0x396357(0x215)](_0x4acebd,_0x5da401);return;}logger['warn'](_0x396357(0x1ee)+_0x5da401[_0x396357(0x1f5)]);try{fs[_0x396357(0x24f)](_0x543854,_0x113b64);}catch(_0x69995a){_0x449406[_0x396357(0x232)](),fs[_0x396357(0x238)](_0x543854,()=>{}),_0x537f12[_0x396357(0x215)](_0x4acebd,_0x69995a);return;}fs[_0x396357(0x238)](_0x543854,_0x42bdfb=>{const _0x450aad=_0x396357;_0x42bdfb&&logger[_0x450aad(0x257)](_0x450aad(0x23e)+_0x42bdfb[_0x450aad(0x1f5)]);});}_0x449406['close'](),_0x537f12[_0x396357(0x1c3)](_0x45e451,_0x113b64);});});});});});}static[a72_0x9e1b87(0x1b4)](){const _0x2472bc=a72_0x9e1b87;if(process[_0x2472bc(0x20a)][_0x2472bc(0x1ff)])return JSON['parse'](process[_0x2472bc(0x20a)][_0x2472bc(0x1ff)]);return this[_0x2472bc(0x1f2)];}static[a72_0x9e1b87(0x1db)](){const _0x5f4f93=a72_0x9e1b87;if(process[_0x5f4f93(0x20a)][_0x5f4f93(0x22c)])return JSON['parse'](process[_0x5f4f93(0x20a)][_0x5f4f93(0x22c)]);return this['automationFrameworkDetail'];}static['setFrameworkDetail'](_0x47b5ca,_0x2a0757){const _0x47328c=a72_0x9e1b87,_0x4a48a5={'TrIvT':_0x47328c(0x1d2),'oKJJO':function(_0x1c0c77,_0x3d99af){return _0x1c0c77(_0x3d99af);},'AVTFk':function(_0x52724b,_0x187d7f){return _0x52724b||_0x187d7f;},'NhtbP':function(_0x39bd31,_0x3f0358){return _0x39bd31(_0x3f0358);}},_0x1b7d66=_0x4a48a5[_0x47328c(0x25d)]['split']('|');let _0x4c78b3=0x0;while(!![]){switch(_0x1b7d66[_0x4c78b3++]){case'0':this[_0x47328c(0x1f2)]={'name':_0x47b5ca,'version':{[_0x47b5ca]:_0x4a48a5[_0x47328c(0x26e)](getFrameworkVersion,_0x47b5ca)}};continue;case'1':process[_0x47328c(0x20a)][_0x47328c(0x1ff)]=JSON[_0x47328c(0x23a)](this['testFrameworkDetail']);continue;case'2':_0x4a48a5['AVTFk'](!_0x47b5ca,!_0x2a0757)&&logger[_0x47328c(0x1b7)](_0x47328c(0x285)+_0x47b5ca+',\x20automationFramework='+_0x2a0757);continue;case'3':this['automationFrameworkDetail']={'name':_0x2a0757,'version':_0x4a48a5[_0x47328c(0x21f)](getFrameworkVersion,_0x2a0757)};continue;case'4':process[_0x47328c(0x20a)][_0x47328c(0x22c)]=JSON[_0x47328c(0x23a)](this[_0x47328c(0x278)]);continue;}break;}}static[a72_0x9e1b87(0x240)](_0x2920b0,_0xce0518){return _0x2920b0+':'+_0xce0518;}static['getCurrentInstanceName'](){const _0x59170a=a72_0x9e1b87;return process[_0x59170a(0x245)]+':'+threadId;}static['shouldSkipSessionName'](_0x5cf3eb){const _0xff6351=a72_0x9e1b87;if(_0x5cf3eb['testContextOptions']&&_0x5cf3eb[_0xff6351(0x26b)][_0xff6351(0x1d7)])return!![];return![];}static[a72_0x9e1b87(0x1c7)](_0x5116dd){const _0x52fb78=a72_0x9e1b87;if(_0x5116dd[_0x52fb78(0x26b)]&&_0x5116dd[_0x52fb78(0x26b)][_0x52fb78(0x1e1)])return!![];return![];}static[a72_0x9e1b87(0x1ac)](_0x149241){const _0x53392d=a72_0x9e1b87,_0xe3766c=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0xe3766c[_0x53392d(0x20f)](_0x149241);}static[a72_0x9e1b87(0x269)](_0x1b17e2,_0x410a93){const _0x51ceb5=a72_0x9e1b87,_0x520c2c={};_0x520c2c['FuxUV']=function(_0x390b39,_0x50d382){return _0x390b39!==_0x50d382;},_0x520c2c[_0x51ceb5(0x27b)]=function(_0x4ea73a,_0x877958){return _0x4ea73a===_0x877958;},_0x520c2c['xwPPQ']=_0x51ceb5(0x25f);const _0x59588f=_0x520c2c;for(const [_0x4b3d05,_0x3d5416]of Object[_0x51ceb5(0x1cc)](_0x410a93)){if(_0x59588f[_0x51ceb5(0x20d)](_0x3d5416,null)&&_0x59588f[_0x51ceb5(0x27b)](typeof _0x3d5416,_0x59588f[_0x51ceb5(0x261)])&&!Array[_0x51ceb5(0x1b0)](_0x3d5416))_0x1b17e2[_0x4b3d05]=this[_0x51ceb5(0x269)](_0x1b17e2[_0x4b3d05]||{},_0x3d5416);else Array[_0x51ceb5(0x1b0)](_0x3d5416)?_0x1b17e2[_0x4b3d05]=(_0x1b17e2[_0x4b3d05]||[])[_0x51ceb5(0x1fb)](_0x3d5416):_0x1b17e2[_0x4b3d05]=_0x3d5416;}return _0x1b17e2;}}module['exports']=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a73_0x1fa1f0=a73_0x4572;(function(_0x408545,_0x4d67e1){const _0x48eab2=a73_0x4572,_0x203f87=_0x408545();while(!![]){try{const _0x3bb168=parseInt(_0x48eab2(0x1d7))/0x1*(parseInt(_0x48eab2(0x1e3))/0x2)+parseInt(_0x48eab2(0x1f8))/0x3+parseInt(_0x48eab2(0x1f2))/0x4*(parseInt(_0x48eab2(0x1d3))/0x5)+parseInt(_0x48eab2(0x1d0))/0x6+parseInt(_0x48eab2(0x1ae))/0x7+parseInt(_0x48eab2(0x1be))/0x8*(parseInt(_0x48eab2(0x1f5))/0x9)+-parseInt(_0x48eab2(0x1b0))/0xa*(parseInt(_0x48eab2(0x1c6))/0xb);if(_0x3bb168===_0x4d67e1)break;else _0x203f87['push'](_0x203f87['shift']());}catch(_0xb64d89){_0x203f87['push'](_0x203f87['shift']());}}}(a73_0x4f65,0x7508b));const BrowserstackCLI=require(a73_0x1fa1f0(0x1b9)),helper=require(a73_0x1fa1f0(0x1ea)),AutomationFramework=require(a73_0x1fa1f0(0x1a7)),TestFrameworkConstants=require(a73_0x1fa1f0(0x1d5)),PlaywrightDriverModule=require(a73_0x1fa1f0(0x1d2)),TestInfo=require('./TestInfo'),TestHubModule=require(a73_0x1fa1f0(0x1df)),{createClassLogger}=require(a73_0x1fa1f0(0x1b5)),logger=createClassLogger('CustomTagManager');class CustomTagManager{static [a73_0x1fa1f0(0x1e4)]={};static [a73_0x1fa1f0(0x1d8)]={};static['setCustomTags'](_0x2ee329,_0x2552c2,_0x283723=![]){const _0x5ab66d=a73_0x1fa1f0,_0x5ebc0d={'BUqBj':function(_0x5e866e,_0x3adb15){return _0x5e866e!==_0x3adb15;},'pGhFG':_0x5ab66d(0x1a2),'MBSfg':_0x5ab66d(0x1cf),'vBYBu':function(_0x4e4a2c,_0x608b74){return _0x4e4a2c!==_0x608b74;},'UIqnw':_0x5ab66d(0x1f0),'fNrAC':function(_0x298d10,_0x52ff84){return _0x298d10===_0x52ff84;},'uTznq':_0x5ab66d(0x1f4),'fMOmb':_0x5ab66d(0x1e7),'LOrJB':_0x5ab66d(0x1d9),'eDNif':_0x5ab66d(0x1c9),'AVJXc':function(_0x338f0c,_0x37cbb4){return _0x338f0c(_0x37cbb4);},'KiTDU':_0x5ab66d(0x1bd),'XuGAQ':function(_0x182e73,_0x70bd7b){return _0x182e73===_0x70bd7b;},'YqNGd':_0x5ab66d(0x1b3),'CkIys':_0x5ab66d(0x1e1),'gWRso':_0x5ab66d(0x1a8),'JOcEv':_0x5ab66d(0x1cd),'SWoqh':'./state/hookState','DlDsg':_0x5ab66d(0x1b6)};if(_0x5ebc0d[_0x5ab66d(0x1ce)](typeof _0x2ee329,_0x5ebc0d['pGhFG']))throw new Error(_0x5ebc0d[_0x5ab66d(0x1c8)]);if(_0x5ebc0d[_0x5ab66d(0x1b1)](typeof _0x2552c2,_0x5ebc0d[_0x5ab66d(0x1dc)]))throw new Error(_0x5ebc0d[_0x5ab66d(0x1ac)]);if(_0x5ebc0d[_0x5ab66d(0x1c1)](_0x2ee329[_0x5ab66d(0x1d1)](),''))throw new Error(_0x5ebc0d['uTznq']);if(_0x5ebc0d['fNrAC'](_0x2552c2[_0x5ab66d(0x1d1)](),''))throw new Error(_0x5ebc0d[_0x5ab66d(0x1cc)]);const _0x191839=helper[_0x5ab66d(0x1ca)](_0x2552c2);if(_0x283723){const _0xd8b999=BrowserstackCLI[_0x5ab66d(0x1a3)]()[_0x5ab66d(0x1f6)][TestHubModule[_0x5ab66d(0x1db)]];if(_0xd8b999){const _0x487d56=_0xd8b999?.[_0x5ab66d(0x1a6)]?.[_0x5ab66d(0x1c3)]()?.[_0x5ab66d(0x1da)];TestInfo[_0x5ab66d(0x1fa)](_0x487d56);const _0x44bd81=TestInfo['getTestDetails'](_0x487d56),_0x166dfb=_0x44bd81[TestFrameworkConstants[_0x5ab66d(0x1d4)]]||{};if(!_0x166dfb[_0x2ee329]){const _0x5d3d37={};_0x5d3d37[_0x5ab66d(0x1c0)]=_0x5ebc0d[_0x5ab66d(0x1d6)],_0x5d3d37[_0x5ab66d(0x1e2)]=[..._0x191839],_0x166dfb[_0x2ee329]=_0x5d3d37;}else _0x166dfb[_0x2ee329][_0x5ab66d(0x1e2)]=[..._0x191839];_0x44bd81[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x166dfb,TestInfo['setTestDetails'](_0x487d56,_0x44bd81),!this[_0x5ab66d(0x1e4)][_0x487d56]&&(this[_0x5ab66d(0x1e4)][_0x487d56]={}),this[_0x5ab66d(0x1e4)][_0x487d56][_0x2ee329]=[..._0x191839];}}else{let _0x342b2f;const _0x1f0dac=global[_0x5ab66d(0x1c4)];let _0x1df558=![];if(_0x1f0dac&&_0x1f0dac[_0x5ab66d(0x1b4)](_0x5ebc0d['eDNif']))_0x1df558=!![],_0x342b2f=_0x1f0dac;else try{const _0xa442fb=_0x5ebc0d[_0x5ab66d(0x1f1)](require,_0x5ebc0d[_0x5ab66d(0x1a5)]);if(BrowserstackCLI[_0x5ab66d(0x1a3)]()[_0x5ab66d(0x1bc)]()){const _0x58c268=_0xa442fb['getTestFrameworkDetail']();if(_0x5ebc0d['XuGAQ'](_0x58c268?.[_0x5ab66d(0x1e8)]?.[_0x5ab66d(0x1f7)](),_0x5ebc0d['YqNGd'])){const _0x3a624c=AutomationFramework[_0x5ab66d(0x1cb)]();_0x342b2f=AutomationFramework[_0x5ab66d(0x1bb)](_0x3a624c,PlaywrightDriverModule[_0x5ab66d(0x1b7)],''),_0x342b2f&&_0x342b2f[_0x5ab66d(0x1b4)](_0x5ebc0d[_0x5ab66d(0x1c2)])&&(_0x1df558=!![]);}}}catch(_0xba4a67){logger[_0x5ab66d(0x1af)](_0x5ab66d(0x1ee)+_0xba4a67);}if(_0x1df558){if(!_0x342b2f)throw new Error(_0x5ebc0d[_0x5ab66d(0x1ad)]);const _0x5c456d=BrowserstackCLI[_0x5ab66d(0x1a3)]()['getTestFramework']();if(!_0x5c456d)throw new Error(_0x5ebc0d[_0x5ab66d(0x1ef)]);const _0x336f6e=_0x5ebc0d['AVJXc'](require,_0x5ebc0d[_0x5ab66d(0x1e5)]),_0x4d2930=_0x5ebc0d[_0x5ab66d(0x1f1)](require,_0x5ebc0d[_0x5ab66d(0x1ba)]),_0x28135d=_0x5c456d['resolveInstance'](_0x336f6e[_0x5ab66d(0x1ab)],_0x4d2930[_0x5ab66d(0x1de)]);if(!_0x28135d)throw new Error(_0x5ebc0d[_0x5ab66d(0x1e9)]);const _0x480f9a=_0x28135d['getAllData']()[_0x5ab66d(0x1eb)](_0x342b2f)||{},_0xfbea61=_0x480f9a[TestFrameworkConstants[_0x5ab66d(0x1d4)]]||{};logger[_0x5ab66d(0x1af)]('[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier='+_0x342b2f+_0x5ab66d(0x1c7)+_0x2ee329+_0x5ab66d(0x1bf)+JSON[_0x5ab66d(0x1aa)](_0x191839)+_0x5ab66d(0x1f3)+JSON[_0x5ab66d(0x1aa)](_0xfbea61));if(!_0xfbea61[_0x2ee329]){const _0x467bbd={};_0x467bbd[_0x5ab66d(0x1c0)]=_0x5ebc0d[_0x5ab66d(0x1d6)],_0x467bbd['values']=[..._0x191839],_0xfbea61[_0x2ee329]=_0x467bbd,logger[_0x5ab66d(0x1af)](_0x5ab66d(0x1f9)+_0x2ee329+_0x5ab66d(0x1a9)+JSON['stringify'](_0x191839));}else _0xfbea61[_0x2ee329][_0x5ab66d(0x1e2)]=[..._0x191839],logger[_0x5ab66d(0x1af)]('[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key='+_0x2ee329+_0x5ab66d(0x1b8)+JSON[_0x5ab66d(0x1aa)](_0x191839));const _0x31495c={[TestFrameworkConstants[_0x5ab66d(0x1d4)]]:_0xfbea61},_0xfc547a={};_0xfc547a[_0x342b2f]=_0x31495c,_0x28135d[_0x5ab66d(0x1b2)](_0xfc547a),logger[_0x5ab66d(0x1af)](_0x5ab66d(0x1ec)+_0x342b2f+_0x5ab66d(0x1ed)+JSON[_0x5ab66d(0x1aa)](_0xfbea61)),!this[_0x5ab66d(0x1d8)][_0x342b2f]&&(this[_0x5ab66d(0x1d8)][_0x342b2f]={}),this[_0x5ab66d(0x1d8)][_0x342b2f][_0x2ee329]=[..._0x191839];}else{const _0x34ad4a=global[_0x5ab66d(0x1dd)]?.['currentTest']?.[_0x5ab66d(0x1e0)];if(!_0x34ad4a){const _0x45a070=AutomationFramework[_0x5ab66d(0x1cb)]();_0x342b2f=AutomationFramework['getState'](_0x45a070,PlaywrightDriverModule[_0x5ab66d(0x1b7)],'');}else _0x342b2f=TestInfo[_0x5ab66d(0x1e6)](_0x34ad4a,_0x34ad4a['retry']);const _0x2db6e0=TestInfo[_0x5ab66d(0x1a4)](_0x342b2f),_0x1ad6d8=_0x2db6e0[TestFrameworkConstants[_0x5ab66d(0x1d4)]]||{};if(!_0x1ad6d8[_0x2ee329]){const _0x36006d={};_0x36006d['field_type']=_0x5ebc0d['LOrJB'],_0x36006d[_0x5ab66d(0x1e2)]=[..._0x191839],_0x1ad6d8[_0x2ee329]=_0x36006d;}else _0x1ad6d8[_0x2ee329][_0x5ab66d(0x1e2)]=[..._0x191839];_0x2db6e0[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x1ad6d8,TestInfo['setTestDetails'](_0x342b2f,_0x2db6e0),!this['testLevelTags'][_0x342b2f]&&(this[_0x5ab66d(0x1d8)][_0x342b2f]={}),this[_0x5ab66d(0x1d8)][_0x342b2f][_0x2ee329]=[..._0x191839];}}}static[a73_0x1fa1f0(0x1c5)](){const _0x527d1d=a73_0x1fa1f0,_0x327524={...this[_0x527d1d(0x1e4)]};return _0x327524;}static['getTestLevelTags'](){const _0x5a276c={...this['testLevelTags']};return _0x5a276c;}static['clearTags'](){const _0x61efbc=a73_0x1fa1f0;this[_0x61efbc(0x1e4)]={},this[_0x61efbc(0x1d8)]={};}}function a73_0x4f65(){const _0x36d68a=['toLowerCase','2865570MyErOx','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','getTestUUID','string','getInstance','getTestDetails','KiTDU','testhubConfig','./framework/automationFramework','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','\x20with\x20values=','stringify','TEST','UIqnw','CkIys','1509669DoahnW','debug','234730NvZzKK','vBYBu','addMultipleEntries','jest','includes','../../helpers/classLogger','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','KEY_TEST_ID','\x20with\x20new\x20values=','./browserstackCLI','SWoqh','getState','isRunning','./cliUtils','8FNDLwh',',\x20values=','field_type','fNrAC','eDNif','toObject','__jestCurrentTestIdentifier','getBuildLevelTags','649FJgiJQ',',\x20key=','MBSfg',':jest-','parseCommaSeparatedValues','getTrackedInstance','fMOmb','./state/testFrameworkState','BUqBj','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','1976172rjMLZY','trim','./modules/playwrightDriverModule','415iNiobJ','KEY_CUSTOM_TAGS','./framework/constants/testFrameworkConstants','LOrJB','7hDzQEA','testLevelTags','multi_dropdown','buildHashedId','MODULE_NAME','pGhFG','__workerDetails','POST','./modules/testhubModule','testInfo','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','values','45718GPhMwk','buildLevelTags','JOcEv','getTestIdentifierFromTestInfo','Custom\x20tag\x20value\x20cannot\x20be\x20empty','name','DlDsg','../../helpers/helper','get','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=',',\x20finalTags=','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','gWRso','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','AVJXc','9564ijMVti',',\x20existingTags=','Custom\x20tag\x20key\x20cannot\x20be\x20empty','50337HGsvMw','modules'];a73_0x4f65=function(){return _0x36d68a;};return a73_0x4f65();}function a73_0x4572(_0x45c398,_0x39bc06){const _0x4f656d=a73_0x4f65();return a73_0x4572=function(_0x457273,_0x2ba7ba){_0x457273=_0x457273-0x1a2;let _0x2a8156=_0x4f656d[_0x457273];return _0x2a8156;},a73_0x4572(_0x45c398,_0x39bc06);}module['exports']=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a74_0x5dc2(_0x12f2df,_0x21d72b){const _0x5c908a=a74_0x5c90();return a74_0x5dc2=function(_0x5dc210,_0x301a5f){_0x5dc210=_0x5dc210-0xc9;let _0x1dc0e6=_0x5c908a[_0x5dc210];return _0x1dc0e6;},a74_0x5dc2(_0x12f2df,_0x21d72b);}const a74_0x240ee8=a74_0x5dc2;(function(_0x4a540b,_0x117f42){const _0x5c1cfc=a74_0x5dc2,_0x246ce2=_0x4a540b();while(!![]){try{const _0x4066ae=-parseInt(_0x5c1cfc(0xc9))/0x1*(-parseInt(_0x5c1cfc(0xcc))/0x2)+-parseInt(_0x5c1cfc(0xcb))/0x3*(parseInt(_0x5c1cfc(0xce))/0x4)+parseInt(_0x5c1cfc(0xd2))/0x5+parseInt(_0x5c1cfc(0xca))/0x6+-parseInt(_0x5c1cfc(0xd1))/0x7+parseInt(_0x5c1cfc(0xd3))/0x8*(parseInt(_0x5c1cfc(0xd7))/0x9)+-parseInt(_0x5c1cfc(0xcd))/0xa;if(_0x4066ae===_0x117f42)break;else _0x246ce2['push'](_0x246ce2['shift']());}catch(_0x4b082a){_0x246ce2['push'](_0x246ce2['shift']());}}}(a74_0x5c90,0xe975c));const {createClassLogger}=require(a74_0x240ee8(0xd5));class EventDispatcher{static #instance=null;constructor(){const _0x2e6fae=a74_0x240ee8;this[_0x2e6fae(0xd6)]={};}static['getInstance'](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a74_0x240ee8(0xd0)](_0x59a210,_0x490eae){const _0x5ca160=a74_0x240ee8;!this[_0x5ca160(0xd6)][_0x59a210]&&(this['observers'][_0x59a210]=[]),this['observers'][_0x59a210][_0x5ca160(0xd8)](_0x490eae);}async[a74_0x240ee8(0xda)](_0xeec950,_0x244433){const _0x4187d0=a74_0x240ee8,_0x4104ca={'zskYX':function(_0x4f1eea,_0x27f5b5){return _0x4f1eea(_0x27f5b5);}};if(this[_0x4187d0(0xd6)][_0xeec950]){for(const _0x1080dc of this['observers'][_0xeec950]){await _0x4104ca[_0x4187d0(0xcf)](_0x1080dc,_0x244433);}return;}}}const eventDispatcher=EventDispatcher[a74_0x240ee8(0xd4)]();function a74_0x5c90(){const _0x3e2b1d=['../../helpers/classLogger.js','observers','5150187rJoznd','push','freeze','notifyObserver','1tyfqRV','7452216oHxPjj','1317NbkiLn','3424472XJALdX','7986070GusCwA','11612AKwjcW','zskYX','registerObserver','7467005FARLTf','2847380iAxRMS','8TSfBDg','getInstance'];a74_0x5c90=function(){return _0x3e2b1d;};return a74_0x5c90();}Object[a74_0x240ee8(0xd9)](eventDispatcher),module['exports']=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a75_0x4146(){const _0xabd0f8=['getCurrentInstanceName','120624rVwOIi','getTrackedInstance','trackEvent','notifyObserver','253686peuiJs','110ukGCWY','../../../helpers/classLogger.js','instances','registerObserver','get','7IkTchU','getId','141pJAEui','debug','createContext','175296JRgEcj','automationFrameworkName','../cliUtils.js','../eventDispatcher.js','setState','set','2731416cmhdIW','automationFrameworkVersion','getAutomationFrameworkName','1638801tTaIYb','getAllData','KEY_AUTOMATION_SESSIONS','15HauFOz','\x20hookState=','automation_sessions','783706wakfIS','setTrackedInstance','runHooks','AutomationFramework','getState','non_browserstack_automation_sessions','../instances/trackedInstance.js','getAutomationFrameworkVersion','758qvhmKo','getHookRegistryKey'];a75_0x4146=function(){return _0xabd0f8;};return a75_0x4146();}const a75_0x17358a=a75_0xb57b;function a75_0xb57b(_0x2df99a,_0x482ee5){const _0x4146c4=a75_0x4146();return a75_0xb57b=function(_0xb57b54,_0x3b6295){_0xb57b54=_0xb57b54-0x1d3;let _0x5f08b9=_0x4146c4[_0xb57b54];return _0x5f08b9;},a75_0xb57b(_0x2df99a,_0x482ee5);}(function(_0xdc8fe2,_0x925bab){const _0x1188c7=a75_0xb57b,_0x187270=_0xdc8fe2();while(!![]){try{const _0x20dc7b=-parseInt(_0x1188c7(0x1db))/0x1*(-parseInt(_0x1188c7(0x1f5))/0x2)+parseInt(_0x1188c7(0x1f8))/0x3+-parseInt(_0x1188c7(0x1de))/0x4+parseInt(_0x1188c7(0x1ea))/0x5*(-parseInt(_0x1188c7(0x1d3))/0x6)+parseInt(_0x1188c7(0x1d9))/0x7*(-parseInt(_0x1188c7(0x1e4))/0x8)+-parseInt(_0x1188c7(0x1e7))/0x9+parseInt(_0x1188c7(0x1d4))/0xa*(parseInt(_0x1188c7(0x1ed))/0xb);if(_0x20dc7b===_0x925bab)break;else _0x187270['push'](_0x187270['shift']());}catch(_0x4e04b6){_0x187270['push'](_0x187270['shift']());}}}(a75_0x4146,0x2cb82));const {createClassLogger}=require(a75_0x17358a(0x1d5)),util=require('util'),eventDispatcher=require(a75_0x17358a(0x1e1)),CLIUtils=require(a75_0x17358a(0x1e0)),TrackedInstance=require(a75_0x17358a(0x1f3)),logger=createClassLogger(a75_0x17358a(0x1f0));class AutomationFramework{static [a75_0x17358a(0x1d6)]=new Map();static [a75_0x17358a(0x1e9)]=a75_0x17358a(0x1ec);static ['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS']=a75_0x17358a(0x1f2);constructor(_0x309569,_0x4ae7fb){const _0x308042=a75_0x17358a;this[_0x308042(0x1df)]=_0x309569,this[_0x308042(0x1e5)]=_0x4ae7fb;}[a75_0x17358a(0x1e6)](){const _0x385f0b=a75_0x17358a;return this[_0x385f0b(0x1df)];}[a75_0x17358a(0x1f4)](){return this['automationFrameworkVersion'];}async[a75_0x17358a(0x1fa)](_0x1d781b,_0x4b7d5f,_0x33b31d={}){const _0xfab949=a75_0x17358a;logger[_0xfab949(0x1dc)]('trackEvent:\x20automationFrameworkState='+_0x1d781b+_0xfab949(0x1eb)+_0x4b7d5f);}async[a75_0x17358a(0x1ef)](_0x24e58e,_0x4238af,_0x5e12db,_0x3830da={}){const _0x36c8ce=a75_0x17358a,_0x1abadf=CLIUtils[_0x36c8ce(0x1f6)](_0x4238af,_0x5e12db);_0x24e58e&&_0x24e58e[_0x36c8ce(0x1e2)](_0x4238af),await eventDispatcher[_0x36c8ce(0x1fb)](_0x1abadf,_0x3830da);}static[a75_0x17358a(0x1d7)](_0x586b6b,_0x2d7f61,_0x5028af){eventDispatcher['registerObserver'](CLIUtils['getHookRegistryKey'](_0x586b6b,_0x2d7f61),_0x5028af);}static[a75_0x17358a(0x1ee)](_0xe60038,_0x3d35ed){const _0x336e59=a75_0x17358a;AutomationFramework['instances']['set'](_0xe60038[_0x336e59(0x1da)](),_0x3d35ed);}static[a75_0x17358a(0x1f9)](){const _0x697f8b=a75_0x17358a,_0x3ebaf8=TrackedInstance[_0x697f8b(0x1dd)](CLIUtils[_0x697f8b(0x1f7)]());return AutomationFramework[_0x697f8b(0x1d6)][_0x697f8b(0x1d8)](_0x3ebaf8['getId']());}static[a75_0x17358a(0x1e2)](_0x17480e,_0x1b68a,_0x5d6e15){const _0x11309d=a75_0x17358a;_0x17480e[_0x11309d(0x1e8)]()[_0x11309d(0x1e3)](_0x1b68a,_0x5d6e15);}static[a75_0x17358a(0x1f1)](_0x162bf2,_0x3c3dbe){const _0x5c990b=a75_0x17358a;return _0x162bf2['getAllData']()[_0x5c990b(0x1d8)](_0x3c3dbe);}}module['exports']=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x33e61c=a76_0xa18b;(function(_0x18e5f1,_0x44acd4){const _0x4bc351=a76_0xa18b,_0x385c77=_0x18e5f1();while(!![]){try{const _0x5481d6=-parseInt(_0x4bc351(0x1be))/0x1+parseInt(_0x4bc351(0x1b0))/0x2+parseInt(_0x4bc351(0x1c1))/0x3*(parseInt(_0x4bc351(0x1bc))/0x4)+-parseInt(_0x4bc351(0x1b7))/0x5*(-parseInt(_0x4bc351(0x1ac))/0x6)+parseInt(_0x4bc351(0x1bf))/0x7*(parseInt(_0x4bc351(0x1ae))/0x8)+parseInt(_0x4bc351(0x1a8))/0x9*(parseInt(_0x4bc351(0x1b9))/0xa)+-parseInt(_0x4bc351(0x1b1))/0xb;if(_0x5481d6===_0x44acd4)break;else _0x385c77['push'](_0x385c77['shift']());}catch(_0x402f9f){_0x385c77['push'](_0x385c77['shift']());}}}(a76_0x1ebb,0xe8da0));const a76_0x179fb4={};a76_0x179fb4[a76_0x33e61c(0x1b5)]=a76_0x33e61c(0x1ab),a76_0x179fb4[a76_0x33e61c(0x1b6)]=a76_0x33e61c(0x1a5),a76_0x179fb4['KEY_FRAMEWORK_SESSION_ID']='framework_session_id',a76_0x179fb4['KEY_INPUT_CAPABILITIES']=a76_0x33e61c(0x1aa),a76_0x179fb4[a76_0x33e61c(0x1a4)]='capabilities',a76_0x179fb4[a76_0x33e61c(0x1b2)]=a76_0x33e61c(0x1c0),a76_0x179fb4[a76_0x33e61c(0x1c3)]=a76_0x33e61c(0x1a9),a76_0x179fb4[a76_0x33e61c(0x1ad)]=a76_0x33e61c(0x1c2),a76_0x179fb4[a76_0x33e61c(0x1bb)]=a76_0x33e61c(0x1c5),a76_0x179fb4['COMMAND_NEW_SESSION']='newsession',a76_0x179fb4[a76_0x33e61c(0x1c4)]=a76_0x33e61c(0x1af),a76_0x179fb4[a76_0x33e61c(0x1bd)]=a76_0x33e61c(0x1a7),a76_0x179fb4[a76_0x33e61c(0x1b8)]=a76_0x33e61c(0x1a6),a76_0x179fb4[a76_0x33e61c(0x1b3)]=a76_0x33e61c(0x1ba),a76_0x179fb4[a76_0x33e61c(0x1b4)]='quit';function a76_0x1ebb(){const _0x351947=['KEY_STARTED_AT','COMMAND_GET','platform_index','KEY_CAPABILITIES','hub_url','w3cexecutescript','screenshot','81927LHlBrJ','started_at','input_capabilities','BROWSERSTACK_PLATFORM_INDEX','84282uhgDWC','KEY_ENDED_AT','9998104VpZgzp','get','2296642RAOctX','23576256ekbxYd','KEY_IS_BROWSERSTACK_HUB','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','COMMAND_QUIT','ENV_BROWSERSTACK_PLATFORM_INDEX','KEY_HUB_URL','140gEyyjn','COMMAND_W3C_EXECUTE_SCRIPT','290UzRngZ','w3cexecutescriptasync','KEY_PLATFORM_INDEX','12592togVLK','COMMAND_SCREENSHOT','307759VkdthU','7chdOlW','is_browserstack_hub','333LJTqSG','ended_at'];a76_0x1ebb=function(){return _0x351947;};return a76_0x1ebb();}const AutomationFrameworkConstants=a76_0x179fb4;function a76_0xa18b(_0x1b7336,_0x2989c2){const _0x1ebbf5=a76_0x1ebb();return a76_0xa18b=function(_0xa18b98,_0x2a1646){_0xa18b98=_0xa18b98-0x1a4;let _0x2f81f8=_0x1ebbf5[_0xa18b98];return _0x2f81f8;},a76_0xa18b(_0x1b7336,_0x2989c2);}module['exports']=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a77_0x5118(){const _0x3d05a2=['KIND_SCREENSHOT','test_duration','test_hooks_started','TEST_SCREENSHOT','KEY_HOOK_NAME','KEY_PLATFORM_INDEX','hook_id','test_rerun_name','test_attachments','KEY_TEST_STARTED_AT','1298130qlHLUb','test_tags','hook_result','test_location','test_hook_last_started','hook_name','test_failure','automate_session_status','test_id','event_started_at','file_size','1908550trVDvU','test_file_path','KEY_TEST_FAILURE_TYPE','KEY_TEST_UUID','test_result','DEFAULT_TEST_RESULT','KEY_HOOK_LAST_STARTED','KEY_TEST_CODE','KEY_TEST_TAGS','test_uuid','KEY_TEST_RERUN_NAME','KEY_HOOK_FAILURE_TYPE','18iEqPHt','928dEVBLQ','KEY_TEST_NAME','KEY_AUTOMATE_SESSION_REASON','KEY_TEST_FRAMEWORK_VERSION','test_started_at','KEY_FILE_SIZE','file_path','file_level','test_hook_last_finished','KEY_HOOK_ID','test_logs','hook_logs','KEY_AUTOMATE_SESSION_NAME','test_meta','TEST_LOG','test_session_name','KEY_TEST_FAILURE','KEY_FILE_LEVEL','KEY_TEST_SCOPES','KEY_HOOK_RESULT','event_ended_at','KIND_LOG','553374xcMbFK','KEY_LOGS','test_scopes','5217MsYhDe','KEY_TEST_FILE_PATH','test_ended_at','test_name','KEY_EVENT_ENDED_AT','5IBirNr','pending','111574IsVYvD','KEY_TEST_LOGS','KEY_TEST_RETRY_OF','1917488dEEDFu','automate_session_name','hook_failure_reason','457506aMLpFM','KEY_TEST_DURATION','KEY_TEST_RESULT_AT','KEY_HOOK_LOGS','test_scope','platform_index','KEY_SESSION_NAME','custom_metadata','test_result_at','hook_failure','KEY_TEST_ATTACHMENTS'];a77_0x5118=function(){return _0x3d05a2;};return a77_0x5118();}const a77_0x3b1c80=a77_0x2bc3;function a77_0x2bc3(_0xfbb449,_0x3e1d0a){const _0x511834=a77_0x5118();return a77_0x2bc3=function(_0x2bc3d8,_0x6af516){_0x2bc3d8=_0x2bc3d8-0xc0;let _0x4e28c3=_0x511834[_0x2bc3d8];return _0x4e28c3;},a77_0x2bc3(_0xfbb449,_0x3e1d0a);}(function(_0x47dc9e,_0x88e026){const _0x5501ce=a77_0x2bc3,_0x4fb5ec=_0x47dc9e();while(!![]){try{const _0x53d9d9=parseInt(_0x5501ce(0xd2))/0x1*(parseInt(_0x5501ce(0xd4))/0x2)+parseInt(_0x5501ce(0xcd))/0x3*(-parseInt(_0x5501ce(0x107))/0x4)+parseInt(_0x5501ce(0xef))/0x5+-parseInt(_0x5501ce(0xca))/0x6+parseInt(_0x5501ce(0xda))/0x7+-parseInt(_0x5501ce(0xd7))/0x8+parseInt(_0x5501ce(0x106))/0x9*(parseInt(_0x5501ce(0xfa))/0xa);if(_0x53d9d9===_0x88e026)break;else _0x4fb5ec['push'](_0x4fb5ec['shift']());}catch(_0x5df7cf){_0x4fb5ec['push'](_0x4fb5ec['shift']());}}}(a77_0x5118,0x3d19a));const a77_0x19c554={};a77_0x19c554[a77_0x3b1c80(0xfd)]=a77_0x3b1c80(0x103),a77_0x19c554['KEY_TEST_ID']=a77_0x3b1c80(0xf7),a77_0x19c554[a77_0x3b1c80(0x108)]=a77_0x3b1c80(0xd0),a77_0x19c554[a77_0x3b1c80(0xce)]=a77_0x3b1c80(0xfb),a77_0x19c554[a77_0x3b1c80(0x102)]=a77_0x3b1c80(0xf0),a77_0x19c554['KEY_TEST_RESULT']=a77_0x3b1c80(0xfe),a77_0x19c554[a77_0x3b1c80(0xdc)]=a77_0x3b1c80(0xe2),a77_0x19c554[a77_0x3b1c80(0xee)]=a77_0x3b1c80(0x10b),a77_0x19c554['KEY_TEST_ENDED_AT']=a77_0x3b1c80(0xcf),a77_0x19c554['KEY_TEST_LOCATION']=a77_0x3b1c80(0xf2),a77_0x19c554[a77_0x3b1c80(0xdb)]=a77_0x3b1c80(0xe6),a77_0x19c554['KEY_TEST_SCOPE']=a77_0x3b1c80(0xde),a77_0x19c554[a77_0x3b1c80(0xc6)]=a77_0x3b1c80(0xcc),a77_0x19c554['KEY_TEST_FRAMEWORK_NAME']='test_framework_name',a77_0x19c554[a77_0x3b1c80(0x10a)]='test_framework_version',a77_0x19c554[a77_0x3b1c80(0x101)]='test_code',a77_0x19c554[a77_0x3b1c80(0x104)]=a77_0x3b1c80(0xec),a77_0x19c554[a77_0x3b1c80(0xd6)]='retry_of',a77_0x19c554[a77_0x3b1c80(0xea)]=a77_0x3b1c80(0xdf),a77_0x19c554[a77_0x3b1c80(0xc4)]=a77_0x3b1c80(0xf5),a77_0x19c554[a77_0x3b1c80(0xfc)]='test_failure_type',a77_0x19c554['KEY_TEST_FAILURE_REASON']='test_failure_reason',a77_0x19c554[a77_0x3b1c80(0xd5)]=a77_0x3b1c80(0x111),a77_0x19c554['KEY_TEST_META']=a77_0x3b1c80(0xc1),a77_0x19c554[a77_0x3b1c80(0xe0)]=a77_0x3b1c80(0xc3),a77_0x19c554[a77_0x3b1c80(0xc0)]=a77_0x3b1c80(0xd8),a77_0x19c554['KEY_AUTOMATE_SESSION_STATUS']=a77_0x3b1c80(0xf6),a77_0x19c554[a77_0x3b1c80(0x109)]='automate_session_reason',a77_0x19c554['KEY_EVENT_STARTED_AT']=a77_0x3b1c80(0xf8),a77_0x19c554[a77_0x3b1c80(0xd1)]=a77_0x3b1c80(0xc8),a77_0x19c554[a77_0x3b1c80(0x110)]=a77_0x3b1c80(0xeb),a77_0x19c554[a77_0x3b1c80(0xc7)]=a77_0x3b1c80(0xf1),a77_0x19c554[a77_0x3b1c80(0x105)]='hook_failure_type',a77_0x19c554['KEY_HOOK_FAILURE_REASON']=a77_0x3b1c80(0xd9),a77_0x19c554['KEY_HOOK_FAILURE']=a77_0x3b1c80(0xe3),a77_0x19c554[a77_0x3b1c80(0xdd)]=a77_0x3b1c80(0x112),a77_0x19c554[a77_0x3b1c80(0xe9)]=a77_0x3b1c80(0xf4),a77_0x19c554[a77_0x3b1c80(0xff)]='pending',a77_0x19c554['DEFAULT_HOOK_RESULT']=a77_0x3b1c80(0xd3),a77_0x19c554[a77_0x3b1c80(0xe5)]=a77_0x3b1c80(0xe8),a77_0x19c554[a77_0x3b1c80(0xc9)]=a77_0x3b1c80(0xc2),a77_0x19c554['HOOK_REGEX']='^(BEFORE_|AFTER_)',a77_0x19c554['KEY_HOOKS_STARTED']=a77_0x3b1c80(0xe7),a77_0x19c554['KEY_HOOKS_FINISHED']='test_hooks_finished',a77_0x19c554[a77_0x3b1c80(0x100)]=a77_0x3b1c80(0xf3),a77_0x19c554['KEY_HOOK_LAST_FINISHED']=a77_0x3b1c80(0x10f),a77_0x19c554[a77_0x3b1c80(0xcb)]='logs',a77_0x19c554['KEY_CUSTOM_TAGS']=a77_0x3b1c80(0xe1),a77_0x19c554[a77_0x3b1c80(0xe4)]=a77_0x3b1c80(0xed),a77_0x19c554[a77_0x3b1c80(0x10c)]=a77_0x3b1c80(0xf9),a77_0x19c554['KEY_FILE_NAME']='file_name',a77_0x19c554['KEY_FILE_PATH']=a77_0x3b1c80(0x10d),a77_0x19c554[a77_0x3b1c80(0xc5)]=a77_0x3b1c80(0x10e),a77_0x19c554['MAX_TOP_LEVEL_STEPS']=0xa,a77_0x19c554['MAX_NESTED_STEP_DEPTH']=0x2;const TestFrameworkConstants=a77_0x19c554;module['exports']=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a78_0x542386=a78_0x5681;(function(_0x5d1414,_0x595778){const _0x554caa=a78_0x5681,_0x329b07=_0x5d1414();while(!![]){try{const _0x10ed94=-parseInt(_0x554caa(0x1e6))/0x1+-parseInt(_0x554caa(0x16d))/0x2+-parseInt(_0x554caa(0x187))/0x3+-parseInt(_0x554caa(0x1bc))/0x4+-parseInt(_0x554caa(0x210))/0x5+-parseInt(_0x554caa(0x1d7))/0x6+parseInt(_0x554caa(0x196))/0x7*(parseInt(_0x554caa(0x1b2))/0x8);if(_0x10ed94===_0x595778)break;else _0x329b07['push'](_0x329b07['shift']());}catch(_0x117e2d){_0x329b07['push'](_0x329b07['shift']());}}}(a78_0xfbc3,0xdbf1c));const TestFramework=require(a78_0x542386(0x1c5)),TestFrameworkState=require(a78_0x542386(0x224)),HookState=require(a78_0x542386(0x19f)),{createClassLogger}=require(a78_0x542386(0x195)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a78_0x542386(0x1a6)),TrackedInstance=require(a78_0x542386(0x20d)),TestFrameworkConstants=require(a78_0x542386(0x188)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a78_0x542386(0x20b)),logger=createClassLogger(a78_0x542386(0x229)),{v4:uuidv4}=require(a78_0x542386(0x1c3)),util=require(a78_0x542386(0x198)),TestInfo=require(a78_0x542386(0x231)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x365a4c,_0x2ed97c,_0x4d9045){super(_0x365a4c,_0x2ed97c,_0x4d9045);}async['trackEvent'](_0x52e106,_0x365fb1,_0x313958={}){const _0x16ec6a=a78_0x542386,_0x93417={};_0x93417[_0x16ec6a(0x16e)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x93417[_0x16ec6a(0x208)]=function(_0x3ac2f3,_0x57076f){return _0x3ac2f3===_0x57076f;},_0x93417[_0x16ec6a(0x19d)]=function(_0x6cd95a,_0x144783){return _0x6cd95a===_0x144783;},_0x93417[_0x16ec6a(0x172)]=function(_0x164a91,_0x4b38df){return _0x164a91===_0x4b38df;},_0x93417[_0x16ec6a(0x181)]=_0x16ec6a(0x1c7);const _0x33eed6=_0x93417;await super[_0x16ec6a(0x16f)](_0x52e106,_0x365fb1,_0x313958);const _0x87d023=this[_0x16ec6a(0x1d9)](_0x52e106,_0x365fb1,_0x313958);if(!_0x87d023){logger[_0x16ec6a(0x1fc)](_0x33eed6[_0x16ec6a(0x16e)]);return;}try{let _0x3c3db4,_0x39dbea;switch(_0x52e106){case TestFrameworkState[_0x16ec6a(0x1b5)]:_0x3c3db4=_0x313958[_0x16ec6a(0x1d2)],_0x39dbea=TestInfo[_0x16ec6a(0x19c)](_0x3c3db4['id']);if(_0x33eed6[_0x16ec6a(0x208)](_0x365fb1,HookState[_0x16ec6a(0x176)])){logger['debug']('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x3c3db4['id']);const _0x5f2949={};_0x5f2949['testUUID']=_0x39dbea,_0x5f2949[_0x16ec6a(0x1b1)]=_0x3c3db4,_0x87d023[_0x16ec6a(0x17c)](this['parseCucumberTest'](_0x5f2949)),logger[_0x16ec6a(0x1fc)](_0x16ec6a(0x168)+_0x3c3db4['id']),await this[_0x16ec6a(0x1b8)](_0x87d023,_0x3c3db4['id']);}else{if(_0x33eed6[_0x16ec6a(0x19d)](_0x365fb1,HookState[_0x16ec6a(0x17d)])){const _0xa2bb9f={};_0xa2bb9f['testUUID']=_0x39dbea,_0xa2bb9f[_0x16ec6a(0x1b1)]=_0x3c3db4,_0x87d023[_0x16ec6a(0x17c)](this[_0x16ec6a(0x1ba)](_0xa2bb9f)),await this['processPendingHooks'](_0x87d023,_0x3c3db4['id']);}}break;case TestFrameworkState[_0x16ec6a(0x1a5)]:_0x33eed6[_0x16ec6a(0x172)](_0x365fb1,HookState[_0x16ec6a(0x17d)])&&await this[_0x16ec6a(0x222)](_0x87d023,_0x52e106,_0x313958);break;default:if(CLIUtils['matchHookRegex'](_0x52e106[_0x16ec6a(0x166)]()['split']('.')[0x1])){const _0x44660c=await this[_0x16ec6a(0x232)](_0x87d023,_0x52e106,_0x365fb1,_0x313958);_0x87d023[_0x16ec6a(0x17c)](_0x44660c);}else logger[_0x16ec6a(0x1fc)]('trackEvent:\x20unsupported\x20testFrameworkState='+_0x52e106+_0x16ec6a(0x17f)+_0x365fb1);break;}}catch(_0x550dc8){logger['error'](util[_0x16ec6a(0x192)](_0x33eed6['xyELt'],_0x52e106,_0x365fb1,_0x313958[_0x16ec6a(0x193)],_0x550dc8));}_0x313958[_0x16ec6a(0x1ed)]=_0x87d023,await this[_0x16ec6a(0x215)](_0x87d023,_0x52e106,_0x365fb1,_0x313958);}[a78_0x542386(0x1d9)](_0xfd5e25,_0x45b196,_0x590525={}){const _0x356d21=a78_0x542386,_0x1c6cfb={};_0x1c6cfb[_0x356d21(0x1cf)]=function(_0x11c335,_0x3a8556){return _0x11c335===_0x3a8556;},_0x1c6cfb['rVNqg']=function(_0x3f6379,_0x1e9d06){return _0x3f6379===_0x1e9d06;};const _0x5ee6f1=_0x1c6cfb;let _0x4c7995=null;return(_0x5ee6f1[_0x356d21(0x1cf)](_0xfd5e25,TestFrameworkState['INIT_TEST'])||_0x5ee6f1[_0x356d21(0x1b4)](_0xfd5e25,TestFrameworkState[_0x356d21(0x21f)]))&&this['trackCucumberInstance'](_0xfd5e25,_0x590525),_0x4c7995=TestFramework[_0x356d21(0x1ce)](),_0x4c7995;}[a78_0x542386(0x171)](_0x1bdc05,_0x20da7b){const _0x307987=a78_0x542386,_0x2c6f97=CLIUtils[_0x307987(0x1cb)](),_0x231eae=TrackedInstance[_0x307987(0x20e)](_0x2c6f97);let _0x50a284=null;logger[_0x307987(0x1fc)](_0x307987(0x1f4)+_0x2c6f97+_0x307987(0x201)+_0x1bdc05),_0x50a284=new TestFrameworkInstance(_0x231eae,this['getTestFrameworks'](),this[_0x307987(0x22c)](),_0x1bdc05,HookState['NONE']),TestFramework[_0x307987(0x1b0)](_0x231eae,_0x50a284),logger[_0x307987(0x1fc)](_0x307987(0x1ff)+_0x231eae[_0x307987(0x1f8)]()+_0x307987(0x1d8)+_0x2c6f97);}[a78_0x542386(0x227)](_0x4f1698){const _0x540e01=a78_0x542386,_0x3d0540={};_0x3d0540[_0x540e01(0x1e1)]=_0x540e01(0x1b3);const _0x26375a=_0x3d0540,{testUUID:_0x520c68,testData:_0x3a7a2c}=_0x4f1698;if(!_0x3a7a2c||!_0x3a7a2c['uuid'])return logger[_0x540e01(0x1fc)](_0x26375a[_0x540e01(0x1e1)]),{};const _0xafe4be=_0x520c68,_0x431ea9=_0x3a7a2c['uuid'],_0x579557=this['getTestFrameworks']()[0x0],_0x46df1c=this[_0x540e01(0x22c)](),_0x4f1c47={[TestFrameworkConstants[_0x540e01(0x212)]]:_0x579557,[TestFrameworkConstants[_0x540e01(0x1da)]]:_0x46df1c[_0x579557],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants[_0x540e01(0x22b)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants[_0x540e01(0x18c)]]:_0xafe4be,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x540e01(0x1a8)],[TestFrameworkConstants[_0x540e01(0x1fd)]]:_0x3a7a2c[_0x540e01(0x200)]||'',[TestFrameworkConstants[_0x540e01(0x1f6)]]:_0x3a7a2c[_0x540e01(0x189)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x431ea9,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x3a7a2c[_0x540e01(0x200)]||'',[TestFrameworkConstants[_0x540e01(0x226)]]:_0x3a7a2c['location']||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x3a7a2c[_0x540e01(0x1af)]?.[_0x540e01(0x1d1)]||null,[TestFrameworkConstants[_0x540e01(0x1fb)]]:_0x3a7a2c[_0x540e01(0x17e)]||[],[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x3a7a2c[_0x540e01(0x1d0)]||new Date()[_0x540e01(0x1f3)](),[TestFrameworkConstants[_0x540e01(0x1a1)]]:_0x3a7a2c[_0x540e01(0x1ab)]?.[0x0]||'',[TestFrameworkConstants[_0x540e01(0x1cc)]]:_0x3a7a2c['scopes']||[],[TestFrameworkConstants[_0x540e01(0x219)]]:_0x3a7a2c['customRerunParam']?.['rerun_name']||_0x3a7a2c[_0x540e01(0x200)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants[_0x540e01(0x16a)]]:_0x3a7a2c[_0x540e01(0x1a4)]||{}};TestInfo[_0x540e01(0x18a)](_0x431ea9,_0x4f1c47),logger[_0x540e01(0x1fc)](_0x540e01(0x1dd)+_0x3a7a2c[_0x540e01(0x200)]+'\x20with\x20UUID:\x20'+_0xafe4be);const _0x40e3cb={};return _0x40e3cb[_0x431ea9]=_0x4f1c47,_0x40e3cb;}[a78_0x542386(0x1ba)](_0x2056cd){const _0x2736c5=a78_0x542386,_0x4f19fe={'jxWwk':_0x2736c5(0x1ac),'Eswnf':'unknown','JiPtK':function(_0x165d0a,_0x3679be){return _0x165d0a===_0x3679be;},'CNeql':_0x2736c5(0x21e),'uJHfK':_0x2736c5(0x20f),'PBwTr':function(_0x105562,_0x4fa102,_0x34233f){return _0x105562(_0x4fa102,_0x34233f);},'sDYIK':function(_0x5a15c7,_0x46a1df){return _0x5a15c7>_0x46a1df;}},{testUUID:_0x1c8750,testData:_0x95344a}=_0x2056cd;if(!_0x95344a||!_0x95344a[_0x2736c5(0x1c3)])return logger[_0x2736c5(0x1fc)](_0x4f19fe[_0x2736c5(0x18d)]),{};const _0x33a31a=this[_0x2736c5(0x1d9)](TestFrameworkState['TEST'],HookState[_0x2736c5(0x17d)]),_0x263d84=_0x95344a[_0x2736c5(0x1c3)],_0x38980c=TestInfo[_0x2736c5(0x22e)](_0x263d84)||{},_0x5f1154=_0x38980c?_0x38980c[TestFrameworkConstants[_0x2736c5(0x213)]]||{}:{},_0x2b01c3={..._0x38980c,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x95344a[_0x2736c5(0x194)]||_0x4f19fe[_0x2736c5(0x214)],[TestFrameworkConstants[_0x2736c5(0x1be)]]:_0x95344a[_0x2736c5(0x18f)]||new Date()[_0x2736c5(0x1f3)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()['toISOString'](),[TestFrameworkConstants[_0x2736c5(0x213)]]:_0x5f1154,[TestFrameworkConstants[_0x2736c5(0x209)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x95344a[_0x2736c5(0x1a4)]||{}};_0x4f19fe['JiPtK'](_0x95344a[_0x2736c5(0x194)],_0x4f19fe[_0x2736c5(0x190)])&&_0x95344a[_0x2736c5(0x20c)]&&(_0x2b01c3[TestFrameworkConstants[_0x2736c5(0x1e7)]]=_0x95344a[_0x2736c5(0x228)]||_0x4f19fe[_0x2736c5(0x1d4)],_0x2b01c3[TestFrameworkConstants[_0x2736c5(0x1c0)]]=_0x95344a[_0x2736c5(0x1f2)]||'',_0x2b01c3[TestFrameworkConstants[_0x2736c5(0x178)]]=_0x95344a[_0x2736c5(0x20c)]);const _0x12fd86=TestInfo[_0x2736c5(0x22e)](_0x263d84)[TestFrameworkConstants[_0x2736c5(0x20a)]]||{},_0x187c11=_0x4f19fe['PBwTr'](getManualUploadLogs,_0x12fd86,_0x33a31a[_0x2736c5(0x1f1)]()['get'](_0x263d84)[TestFrameworkConstants[_0x2736c5(0x18c)]]);if(_0x4f19fe[_0x2736c5(0x1bb)](_0x187c11[_0x2736c5(0x193)],0x0)){const _0x15eb6e=_0x2b01c3[TestFrameworkConstants[_0x2736c5(0x209)]]||[];_0x2b01c3[TestFrameworkConstants[_0x2736c5(0x209)]]=[..._0x15eb6e,..._0x187c11];}_0x95344a[_0x2736c5(0x1d3)]&&_0x4f19fe[_0x2736c5(0x1bb)](_0x95344a[_0x2736c5(0x1d3)][_0x2736c5(0x193)],0x0)&&(_0x2b01c3[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x95344a[_0x2736c5(0x1d3)]);TestInfo[_0x2736c5(0x18a)](_0x263d84,_0x2b01c3),logger[_0x2736c5(0x1fc)](_0x2736c5(0x16c)+_0x95344a[_0x2736c5(0x200)]+_0x2736c5(0x1ad)+_0x95344a[_0x2736c5(0x194)]);const _0x13aa60={};return _0x13aa60[_0x263d84]=_0x2b01c3,_0x13aa60;}async[a78_0x542386(0x232)](_0x72991a,_0x7694a4,_0x93f38a,_0x23b547){const _0x268c83=a78_0x542386,_0x2be2d4={'sWeLA':_0x268c83(0x216),'RfpLy':function(_0x7eb9d8){return _0x7eb9d8();},'MtjBh':function(_0x35e9a8,_0x1564a9){return _0x35e9a8 in _0x1564a9;},'DFFjZ':function(_0x2ae1b9,_0x1dede3){return _0x2ae1b9===_0x1dede3;},'NloYd':function(_0x5bd4b9,_0x39f677){return _0x5bd4b9===_0x39f677;},'vrxge':function(_0x3552f0,_0x3b9326){return _0x3552f0>_0x3b9326;},'UZauV':function(_0x3e5ab6,_0x4dc4d6){return _0x3e5ab6===_0x4dc4d6;},'pAiIm':'failed','aBlTd':'UnhandledError','ksFhk':_0x268c83(0x206),'TflAc':function(_0x251db1,_0x2390e4){return _0x251db1!==_0x2390e4;}},{hookData:_0x27016f}=_0x23b547;if(!_0x27016f)return logger['debug'](_0x2be2d4[_0x268c83(0x1db)]),{};const _0x185447=_0x27016f[_0x268c83(0x1c3)]||_0x2be2d4[_0x268c83(0x1f0)](uuidv4),_0x474ca6=_0x27016f[_0x268c83(0x1df)],_0x3b5921=_0x7694a4[_0x268c83(0x166)]()['split']('.')[0x1],_0x491012=TestInfo['getTestDetails'](_0x474ca6)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x410220=_0x72991a['getAllData']()[_0x268c83(0x183)](_0x474ca6);if(!_0x410220)return logger[_0x268c83(0x1fc)](_0x268c83(0x21b)+_0x474ca6+',\x20storing\x20as\x20pending\x20hook'),this['storePendingHook'](_0x72991a,_0x474ca6,_0x7694a4,_0x93f38a,_0x23b547),{};let _0x135e04=_0x410220[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x135e04&&(_0x135e04={});!_0x2be2d4[_0x268c83(0x1bf)](_0x3b5921,_0x135e04)&&(_0x135e04[_0x3b5921]=[]);let _0x101d7d=_0x410220[TestFrameworkConstants[_0x268c83(0x22b)]];!_0x101d7d&&(_0x101d7d={});!_0x2be2d4[_0x268c83(0x1bf)](_0x3b5921,_0x101d7d)&&(_0x101d7d[_0x3b5921]=[]);const _0x36afdf={[TestFrameworkConstants[_0x268c83(0x1c9)]]:_0x135e04,[TestFrameworkConstants[_0x268c83(0x22b)]]:_0x101d7d},_0x56bfd2={};_0x56bfd2[_0x474ca6]=_0x36afdf;const _0x50766e=_0x56bfd2;if(_0x2be2d4['DFFjZ'](_0x93f38a,HookState['PRE'])){const _0x926d30={[TestFrameworkConstants[_0x268c83(0x220)]]:_0x185447,[TestFrameworkConstants[_0x268c83(0x204)]]:TestFrameworkConstants[_0x268c83(0x182)],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0x27016f[_0x268c83(0x1dc)],[TestFrameworkConstants[_0x268c83(0x1e0)]]:[],[TestFrameworkConstants[_0x268c83(0x1e3)]]:_0x27016f[_0x268c83(0x1bd)],[TestFrameworkConstants[_0x268c83(0x213)]]:_0x491012};_0x926d30[_0x268c83(0x1f5)]=_0x3b5921;const _0x39cfda=_0x926d30;_0x135e04[_0x3b5921][_0x268c83(0x1d5)](_0x39cfda),_0x50766e[_0x474ca6][TestFrameworkConstants[_0x268c83(0x184)]]=_0x3b5921,logger[_0x268c83(0x1fc)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x3b5921+_0x268c83(0x1c2)+_0x39cfda+_0x268c83(0x225)+_0x23b547);}else{if(_0x2be2d4['NloYd'](_0x93f38a,HookState[_0x268c83(0x17d)])){const _0x511cd4=_0x27016f['result'],_0x2ada7d=_0x135e04[_0x3b5921]||[];logger[_0x268c83(0x1fc)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x2ada7d+_0x268c83(0x1f9)+_0x23b547);if(_0x2be2d4[_0x268c83(0x1aa)](_0x2ada7d[_0x268c83(0x193)],0x0)){const _0x1ad95a=_0x2ada7d['pop']();_0x2be2d4['UZauV'](_0x27016f[_0x268c83(0x194)],_0x2be2d4['pAiIm'])&&_0x27016f['failure_data']?(_0x1ad95a[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x27016f[_0x268c83(0x228)]||_0x2be2d4[_0x268c83(0x1fa)],_0x1ad95a[TestFrameworkConstants[_0x268c83(0x170)]]=_0x27016f[_0x268c83(0x1f2)]||'',_0x1ad95a[TestFrameworkConstants[_0x268c83(0x199)]]=_0x27016f[_0x268c83(0x1ae)]):_0x1ad95a[TestFrameworkConstants[_0x268c83(0x204)]]=_0x2be2d4[_0x268c83(0x1c8)];_0x2be2d4[_0x268c83(0x19e)](_0x511cd4,TestFrameworkConstants[_0x268c83(0x182)])&&(_0x1ad95a[TestFrameworkConstants[_0x268c83(0x204)]]=_0x511cd4);_0x1ad95a[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x27016f[_0x268c83(0x1e8)]||new Date()[_0x268c83(0x1f3)](),_0x1ad95a[TestFrameworkConstants[_0x268c83(0x213)]]=_0x491012;const _0x138b44=_0x1ad95a[TestFrameworkConstants['KEY_HOOK_ID']];!_0x101d7d[_0x3b5921]&&(_0x101d7d[_0x3b5921]=[]),_0x101d7d[_0x3b5921]['push'](_0x1ad95a),_0x50766e[_0x474ca6][TestFrameworkConstants[_0x268c83(0x1b7)]]=_0x3b5921;}}}return logger['debug'](_0x268c83(0x16b)+_0x27016f['hook_type']+_0x268c83(0x205)+_0x185447+_0x268c83(0x169)+_0x474ca6),_0x50766e;}[a78_0x542386(0x17b)](_0x3ec793){const _0x3dbfaf=a78_0x542386,_0x47e9f5={};_0x47e9f5[_0x3dbfaf(0x1ea)]=_0x3dbfaf(0x211);const _0xad96a2=_0x47e9f5;try{const _0x197fc8=_0x3ec793[_0x3dbfaf(0x1d2)]?_0x3ec793['test']['id']:_0x3ec793[_0x3dbfaf(0x230)][_0x3dbfaf(0x1df)],_0x4a4f50=_0x3ec793[_0x3dbfaf(0x1ed)],_0x2bda57=_0x4a4f50[_0x3dbfaf(0x218)](),_0xcc6ab0=_0x4a4f50[_0x3dbfaf(0x1f1)]()[_0x3dbfaf(0x183)](_0x197fc8);if(!_0xcc6ab0)return logger['debug'](_0x3dbfaf(0x1ca)+_0x197fc8),{};logger[_0x3dbfaf(0x1fc)]('createTestFrameworkEventPayload\x20testId:\x20'+_0x197fc8);const {[TestFrameworkConstants[_0x3dbfaf(0x212)]]:_0x11af24='',[TestFrameworkConstants[_0x3dbfaf(0x1da)]]:_0x3a9b04='',[TestFrameworkConstants[_0x3dbfaf(0x1b6)]]:_0x1a6fbc='',[TestFrameworkConstants[_0x3dbfaf(0x1be)]]:_0x58b77c=''}=_0xcc6ab0,_0xe4d923=_0x4a4f50[_0x3dbfaf(0x175)]()[_0x3dbfaf(0x166)]()[_0x3dbfaf(0x191)]('.')[0x1],_0x345b1e=_0x4a4f50[_0x3dbfaf(0x1ec)]()['toString']()[_0x3dbfaf(0x191)]('.')[0x1],_0x1040de=global?.[_0x3dbfaf(0x17a)]??0x0,_0x1141b3=_0x4a4f50[_0x3dbfaf(0x221)](),_0x4b1ee3=Buffer['from'](JSON[_0x3dbfaf(0x1e4)](_0xcc6ab0))[_0x3dbfaf(0x166)](_0xad96a2['CedpO']),_0x5afc42={'hash':_0x2bda57[_0x3dbfaf(0x1f8)](),'threadId':_0x2bda57['getThreadId']()[_0x3dbfaf(0x166)](),'processId':_0x2bda57[_0x3dbfaf(0x1a3)]()['toString']()},_0x4aa7d8={};_0x4aa7d8[_0x3dbfaf(0x21a)]=_0x1040de,_0x4aa7d8['testFrameworkName']=_0x11af24,_0x4aa7d8[_0x3dbfaf(0x1ee)]=_0x3a9b04,_0x4aa7d8[_0x3dbfaf(0x18e)]=_0xe4d923,_0x4aa7d8[_0x3dbfaf(0x19a)]=_0x345b1e,_0x4aa7d8[_0x3dbfaf(0x1d0)]=_0x1a6fbc,_0x4aa7d8[_0x3dbfaf(0x19b)]=_0x58b77c,_0x4aa7d8[_0x3dbfaf(0x1c3)]=_0x1141b3,_0x4aa7d8[_0x3dbfaf(0x1a9)]=_0x4b1ee3,_0x4aa7d8[_0x3dbfaf(0x1a2)]=_0x5afc42;const _0x1c7964=_0x4aa7d8;return logger[_0x3dbfaf(0x1fc)](_0x3dbfaf(0x1a7)+_0x197fc8+_0x3dbfaf(0x223)+_0xe4d923+'\x20hookState:\x20'+_0x345b1e),_0x1c7964;}catch(_0x64b301){return logger[_0x3dbfaf(0x1eb)](_0x3dbfaf(0x22d)+util[_0x3dbfaf(0x192)](_0x64b301)),{};}}async[a78_0x542386(0x222)](_0x4ca50c,_0x57b29a,_0x3959d5){const _0x128a70=a78_0x542386,_0x3fed19={'DobHj':function(_0x52b2f1,_0x47d28a,_0x3a3212){return _0x52b2f1(_0x47d28a,_0x3a3212);},'PLYHw':function(_0x3e5ad4,_0x3791f6){return _0x3e5ad4===_0x3791f6;},'idMpE':_0x128a70(0x1f7),'yZpNn':function(_0x4f350f,_0x280dbc){return _0x4f350f/_0x280dbc;},'MiITt':function(_0x500da4,_0x451881){return _0x500da4<_0x451881;},'mHZMJ':function(_0x3e1e14,_0x4d1977){return _0x3e1e14*_0x4d1977;},'lqbpP':function(_0x4ca9c3,_0x3ea818){return _0x4ca9c3+_0x3ea818;},'SYCTw':function(_0x14de8b,_0x532aad){return _0x14de8b+_0x532aad;},'jcINX':_0x128a70(0x167)};try{const _0x3e8762=_0x3959d5[_0x128a70(0x1c4)],_0x407091=_0x4ca50c[_0x128a70(0x1f1)]()[_0x128a70(0x183)](_0x3e8762),{[TestFrameworkConstants[_0x128a70(0x212)]]:_0x4d4eee='',[TestFrameworkConstants[_0x128a70(0x1da)]]:_0x39a635=''}=_0x407091,_0x95046a=TestInfo['readLogObjects'](_0x3e8762),_0x51b9ad=TestInfo[_0x128a70(0x22e)](_0x3e8762)[TestFrameworkConstants[_0x128a70(0x20a)]]||{},_0x411e47=_0x3fed19[_0x128a70(0x1e2)](getMediaArtifactsLogs,_0x51b9ad,_0x4ca50c[_0x128a70(0x1f1)]()['get'](_0x3e8762)[TestFrameworkConstants[_0x128a70(0x18c)]]),_0x28e3f5=(_0x95046a||[])['concat'](_0x411e47||[]);if(!_0x28e3f5||_0x3fed19[_0x128a70(0x173)](_0x28e3f5['length'],0x0)){logger[_0x128a70(0x1fc)](_0x3fed19[_0x128a70(0x179)]);return;}const _0x1788ce=0x28,_0x4f068f=Math[_0x128a70(0x22f)](_0x3fed19[_0x128a70(0x1ef)](_0x28e3f5[_0x128a70(0x193)],_0x1788ce));for(let _0x67f22=0x0;_0x3fed19['MiITt'](_0x67f22,_0x4f068f);_0x67f22++){const _0x2ed351=_0x3fed19[_0x128a70(0x177)](_0x67f22,_0x1788ce),_0x5a30a3=_0x3fed19[_0x128a70(0x1c6)](_0x2ed351,_0x1788ce),_0x2bc84e=_0x28e3f5[_0x128a70(0x197)](_0x2ed351,_0x5a30a3),_0xcd2968={'platformIndex':global?.[_0x128a70(0x17a)]??0x0,'logs':_0x2bc84e,'testFrameworkName':_0x4d4eee,'testFrameworkVersion':_0x39a635,'testFrameworkState':_0x57b29a[_0x128a70(0x166)]()[_0x128a70(0x191)]('.')[0x1]};logger[_0x128a70(0x1fc)](_0x128a70(0x1fe)+_0x3e8762+_0x128a70(0x22a)+_0x3fed19[_0x128a70(0x1e9)](_0x67f22,0x1)+'/'+_0x4f068f+_0x128a70(0x185)+util['inspect'](_0xcd2968));const _0x1c0ca=await GrpcClient[_0x128a70(0x186)]()['logCreatedEvent'](_0xcd2968);logger[_0x128a70(0x1fc)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x3e8762+_0x128a70(0x22a)+_0x3fed19[_0x128a70(0x1c6)](_0x67f22,0x1)+'/'+_0x4f068f+_0x128a70(0x1de)+util[_0x128a70(0x18b)](_0x1c0ca));}}catch(_0xb55708){logger[_0x128a70(0x1eb)](_0x128a70(0x202)+util['format'](_0xb55708));}logger['debug'](_0x3fed19[_0x128a70(0x1cd)]);}[a78_0x542386(0x21c)](_0x232785,_0x569ca3,_0x513917,_0x485b94,_0x3d0946){const _0x24ebff=a78_0x542386,_0x4ef4ba={'testId':_0x569ca3,'testFrameworkState':_0x513917,'hookState':_0x485b94,'args':_0x3d0946,'timestamp':new Date()[_0x24ebff(0x1f3)]()};_0x232785[_0x24ebff(0x207)](_0x569ca3,_0x4ef4ba),logger['debug']('Stored\x20pending\x20hook\x20for\x20testId:\x20'+_0x569ca3+_0x24ebff(0x217)+_0x513917+',\x20hookState:\x20'+_0x485b94);}async[a78_0x542386(0x1b8)](_0x48468e,_0x486429){const _0x1f8ef3=a78_0x542386,_0x3451f4={};_0x3451f4[_0x1f8ef3(0x21d)]=function(_0x9e9851,_0x2aceac){return _0x9e9851>_0x2aceac;};const _0x10c9de=_0x3451f4;if(!_0x48468e[_0x1f8ef3(0x1e5)](_0x486429))return;const _0x2fc758=_0x48468e[_0x1f8ef3(0x1c1)](_0x486429);logger[_0x1f8ef3(0x1fc)](_0x1f8ef3(0x1a0)+_0x2fc758[_0x1f8ef3(0x193)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x486429);for(const _0x2abaf2 of _0x2fc758){try{const _0x3d9b77=await this['trackHookEvent'](_0x48468e,_0x2abaf2[_0x1f8ef3(0x18e)],_0x2abaf2[_0x1f8ef3(0x19a)],_0x2abaf2[_0x1f8ef3(0x180)]);_0x3d9b77&&_0x10c9de['GwUpk'](Object[_0x1f8ef3(0x203)](_0x3d9b77)[_0x1f8ef3(0x193)],0x0)&&_0x48468e[_0x1f8ef3(0x17c)](_0x3d9b77),await this[_0x1f8ef3(0x215)](_0x48468e,_0x2abaf2[_0x1f8ef3(0x18e)],_0x2abaf2[_0x1f8ef3(0x19a)],_0x2abaf2[_0x1f8ef3(0x180)]);}catch(_0x2d1e4e){logger[_0x1f8ef3(0x1eb)]('Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20'+_0x486429+_0x1f8ef3(0x1b9)+_0x2d1e4e);}}_0x48468e[_0x1f8ef3(0x1d6)](_0x486429),logger[_0x1f8ef3(0x1fc)]('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0x486429);}}function a78_0x5681(_0x55ac11,_0x402fb6){const _0xfbc3bc=a78_0xfbc3();return a78_0x5681=function(_0x568103,_0x26eea8){_0x568103=_0x568103-0x166;let _0x5c1a05=_0xfbc3bc[_0x568103];return _0x5c1a05;},a78_0x5681(_0x55ac11,_0x402fb6);}module[a78_0x542386(0x174)]=CucumberTestFramework;function a78_0xfbc3(){const _0x39e5ed=['getInstance','3357897byrNNW','./constants/testFrameworkConstants.js','file_name','setTestDetails','inspect','KEY_TEST_UUID','jxWwk','testFrameworkState','finishedAt','CNeql','split','format','length','result','../../../helpers/classLogger.js','7LZFNez','slice','util','KEY_HOOK_FAILURE','hookState','endedAt','getTestUUID','uKHDV','TflAc','../state/hookState.js','Processing\x20','KEY_TEST_SCOPE','executionContext','getProcessId','meta','LOG_REPORT','../cliUtils.js','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','DEFAULT_TEST_RESULT','eventJson','vrxge','scopes','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','\x20with\x20result:\x20','failure_data','body','setTrackedInstance','testData','41151568WarJdA','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','rVNqg','TEST','KEY_TEST_STARTED_AT','KEY_HOOK_LAST_FINISHED','processPendingHooks',',\x20error:\x20','parseCucumberTestResult','sDYIK','1220144FfNenO','hook_type','KEY_TEST_ENDED_AT','MtjBh','KEY_TEST_FAILURE_REASON','getPendingHooks','\x20&\x20hook\x20=\x20','uuid','testUUID','./testFramework','lqbpP','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','ksFhk','KEY_HOOKS_STARTED','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','getCurrentInstanceName','KEY_TEST_SCOPES','jcINX','getTrackedInstance','NbifC','startedAt','code','test','hooks','uJHfK','push','removePendingHooks','2686224bnMpCL','\x20target=','resolveInstance','KEY_TEST_FRAMEWORK_VERSION','sWeLA','started_at','Parsed\x20cucumber\x20test:\x20','\x20response=','test_run_id','KEY_HOOK_LOGS','OkZlX','DobHj','KEY_HOOK_NAME','stringify','hasPendingHooks','1716453SbAGGM','KEY_TEST_FAILURE_TYPE','finished_at','SYCTw','CedpO','error','getCurrentHookState','instance','testFrameworkVersion','yZpNn','RfpLy','getAllData','failure_reason','toISOString','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','key','KEY_TEST_FILE_PATH','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','getId','\x20and\x20args\x20=\x20','aBlTd','KEY_TEST_TAGS','debug','KEY_AUTOMATE_SESSION_NAME','sendLogCreatedEvent:\x20for\x20testId:\x20','trackCucumberInstance:\x20saved\x20instance\x20contextId=','name',',\x20state=','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','keys','KEY_HOOK_RESULT','\x20with\x20id\x20','passed','addPendingHook','vdlbk','KEY_LOGS','KEY_TEST_ATTACHMENTS','../../../helpers/helper.js','failure','../instances/trackedInstance.js','createContext','UnhandledError','2912545qsQWXw','base64','KEY_TEST_FRAMEWORK_NAME','KEY_CUSTOM_TAGS','Eswnf','runHooks','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event',',\x20state:\x20','getContext','KEY_TEST_RERUN_NAME','platformIndex','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','storePendingHook','GwUpk','failed','NONE','KEY_HOOK_ID','getRef','sendLogCreatedEvent','\x20testState:\x20','../state/testFrameworkState.js','\x20\x20and\x20args\x20=\x20','KEY_TEST_LOCATION','parseCucumberTest','failure_type','CucumberTestFramework','\x20batch\x20','KEY_HOOKS_FINISHED','getTestFrameworksVersions','Error\x20in\x20createTestFrameworkEventPayload:\x20','getTestDetails','ceil','hookData','../TestInfo.js','trackHookEvent','toString','Cucumber\x20log\x20created\x20event','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','\x20for\x20test:\x20','KEY_TEST_META','Tracked\x20cucumber\x20hook\x20event:\x20','Updated\x20cucumber\x20test\x20result:\x20','144106eRHLjT','fjUYo','trackEvent','KEY_HOOK_FAILURE_REASON','trackCucumberInstance','WlAqw','PLYHw','exports','getCurrentTestState','PRE','mHZMJ','KEY_TEST_FAILURE','idMpE','browserstackPlatformIndex','createTestFrameworkEventPayload','addMultipleEntries','POST','tags','\x20&\x20hookState=','args','xyELt','DEFAULT_HOOK_RESULT','get','KEY_HOOK_LAST_STARTED','\x20payload='];a78_0xfbc3=function(){return _0x39e5ed;};return a78_0xfbc3();}
|
|
1
|
+
function a78_0x1487(_0x435774,_0x5788ab){const _0x30a153=a78_0x30a1();return a78_0x1487=function(_0x1487a3,_0x40e2ad){_0x1487a3=_0x1487a3-0x13d;let _0x116eb4=_0x30a153[_0x1487a3];return _0x116eb4;},a78_0x1487(_0x435774,_0x5788ab);}const a78_0x210409=a78_0x1487;(function(_0x35799c,_0x31482d){const _0x2b5bae=a78_0x1487,_0x5b4fe9=_0x35799c();while(!![]){try{const _0x15a76b=parseInt(_0x2b5bae(0x1ce))/0x1+parseInt(_0x2b5bae(0x1fb))/0x2*(parseInt(_0x2b5bae(0x1aa))/0x3)+parseInt(_0x2b5bae(0x163))/0x4*(parseInt(_0x2b5bae(0x1bc))/0x5)+parseInt(_0x2b5bae(0x1dd))/0x6+-parseInt(_0x2b5bae(0x1bf))/0x7*(parseInt(_0x2b5bae(0x1f5))/0x8)+parseInt(_0x2b5bae(0x1fc))/0x9+-parseInt(_0x2b5bae(0x15d))/0xa;if(_0x15a76b===_0x31482d)break;else _0x5b4fe9['push'](_0x5b4fe9['shift']());}catch(_0x3b0f97){_0x5b4fe9['push'](_0x5b4fe9['shift']());}}}(a78_0x30a1,0x5a450));const TestFramework=require('./testFramework'),TestFrameworkState=require(a78_0x210409(0x15c)),HookState=require(a78_0x210409(0x162)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a78_0x210409(0x1cd)),TrackedInstance=require(a78_0x210409(0x1fa)),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger(a78_0x210409(0x1d3)),{v4:uuidv4}=require(a78_0x210409(0x18f)),util=require(a78_0x210409(0x1b5)),TestInfo=require(a78_0x210409(0x182)),GrpcClient=require(a78_0x210409(0x153));class CucumberTestFramework extends TestFramework{constructor(_0x53d3c6,_0x180137,_0xc70b6f){super(_0x53d3c6,_0x180137,_0xc70b6f);}async['trackEvent'](_0x148cac,_0xab7769,_0x476e9c={}){const _0x5cbb55=a78_0x210409,_0xbe3142={};_0xbe3142['zIdqr']='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0xbe3142[_0x5cbb55(0x1b4)]=function(_0x55a4a9,_0x2b73ae){return _0x55a4a9===_0x2b73ae;},_0xbe3142['GIGZO']=function(_0x23d5b6,_0x1a204e){return _0x23d5b6===_0x1a204e;},_0xbe3142[_0x5cbb55(0x176)]=_0x5cbb55(0x1fe);const _0x314546=_0xbe3142;await super[_0x5cbb55(0x204)](_0x148cac,_0xab7769,_0x476e9c);const _0x43c5f3=this[_0x5cbb55(0x1e1)](_0x148cac,_0xab7769,_0x476e9c);if(!_0x43c5f3){logger['debug'](_0x314546[_0x5cbb55(0x169)]);return;}try{let _0x285845,_0xb0474f;switch(_0x148cac){case TestFrameworkState[_0x5cbb55(0x1a1)]:_0x285845=_0x476e9c[_0x5cbb55(0x196)],_0xb0474f=TestInfo['getTestUUID'](_0x285845['id']);if(_0x314546[_0x5cbb55(0x1b4)](_0xab7769,HookState[_0x5cbb55(0x1af)])){logger[_0x5cbb55(0x1a3)](_0x5cbb55(0x19b)+_0x285845['id']);const _0x37a0d6={};_0x37a0d6[_0x5cbb55(0x16d)]=_0xb0474f,_0x37a0d6[_0x5cbb55(0x15f)]=_0x285845,_0x43c5f3['addMultipleEntries'](this[_0x5cbb55(0x174)](_0x37a0d6)),logger[_0x5cbb55(0x1a3)](_0x5cbb55(0x148)+_0x285845['id']),await this[_0x5cbb55(0x177)](_0x43c5f3,_0x285845['id']);}else{if(_0x314546[_0x5cbb55(0x1b4)](_0xab7769,HookState['POST'])){const _0xd60812={};_0xd60812[_0x5cbb55(0x16d)]=_0xb0474f,_0xd60812[_0x5cbb55(0x15f)]=_0x285845,_0x43c5f3[_0x5cbb55(0x17e)](this[_0x5cbb55(0x180)](_0xd60812)),await this[_0x5cbb55(0x177)](_0x43c5f3,_0x285845['id']);}}break;case TestFrameworkState[_0x5cbb55(0x150)]:_0x314546[_0x5cbb55(0x1d2)](_0xab7769,HookState[_0x5cbb55(0x187)])&&await this['sendLogCreatedEvent'](_0x43c5f3,_0x148cac,_0x476e9c);break;default:if(CLIUtils['matchHookRegex'](_0x148cac[_0x5cbb55(0x183)]()['split']('.')[0x1])){const _0x2d6fc8=await this[_0x5cbb55(0x17b)](_0x43c5f3,_0x148cac,_0xab7769,_0x476e9c);_0x43c5f3[_0x5cbb55(0x17e)](_0x2d6fc8);}else logger['debug'](_0x5cbb55(0x1cc)+_0x148cac+_0x5cbb55(0x18e)+_0xab7769);break;}}catch(_0x183d2c){logger[_0x5cbb55(0x207)](util[_0x5cbb55(0x1cf)](_0x314546[_0x5cbb55(0x176)],_0x148cac,_0xab7769,_0x476e9c['length'],_0x183d2c));}_0x476e9c[_0x5cbb55(0x157)]=_0x43c5f3,await this[_0x5cbb55(0x172)](_0x43c5f3,_0x148cac,_0xab7769,_0x476e9c);}[a78_0x210409(0x1e1)](_0x308bf9,_0x294260,_0x55c67f={}){const _0x2fc472=a78_0x210409,_0x56a5ca={};_0x56a5ca[_0x2fc472(0x1e3)]=function(_0x32b1b6,_0x561c52){return _0x32b1b6===_0x561c52;},_0x56a5ca['tOdfH']=function(_0x59d098,_0x16f643){return _0x59d098===_0x16f643;};const _0xf5877f=_0x56a5ca;let _0x1f5e5d=null;return(_0xf5877f[_0x2fc472(0x1e3)](_0x308bf9,TestFrameworkState['INIT_TEST'])||_0xf5877f[_0x2fc472(0x142)](_0x308bf9,TestFrameworkState['NONE']))&&this[_0x2fc472(0x166)](_0x308bf9,_0x55c67f),_0x1f5e5d=TestFramework[_0x2fc472(0x201)](),_0x1f5e5d;}['trackCucumberInstance'](_0x53c86f,_0x2464f6){const _0x25f915=a78_0x210409,_0x4d7bcc=CLIUtils['getCurrentInstanceName'](),_0x4862ab=TrackedInstance[_0x25f915(0x1c4)](_0x4d7bcc);let _0x32c868=null;logger['debug'](_0x25f915(0x1be)+_0x4d7bcc+_0x25f915(0x173)+_0x53c86f),_0x32c868=new TestFrameworkInstance(_0x4862ab,this[_0x25f915(0x175)](),this['getTestFrameworksVersions'](),_0x53c86f,HookState['NONE']),TestFramework[_0x25f915(0x155)](_0x4862ab,_0x32c868),logger[_0x25f915(0x1a3)](_0x25f915(0x1e8)+_0x4862ab[_0x25f915(0x1d5)]()+_0x25f915(0x19e)+_0x4d7bcc);}[a78_0x210409(0x174)](_0x5be53c){const _0x256225=a78_0x210409,_0x5860ea={};_0x5860ea[_0x256225(0x1fd)]=_0x256225(0x1c1);const _0x5cc293=_0x5860ea,{testUUID:_0x5f4cea,testData:_0x12a3a7}=_0x5be53c;if(!_0x12a3a7||!_0x12a3a7[_0x256225(0x18f)])return logger[_0x256225(0x1a3)](_0x5cc293['EkJub']),{};const _0x53baa6=_0x5f4cea,_0x4cbdf6=_0x12a3a7[_0x256225(0x18f)],_0x123e72=this[_0x256225(0x175)]()[0x0],_0x4f4365=this[_0x256225(0x192)](),_0x56b946={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x123e72,[TestFrameworkConstants[_0x256225(0x1f0)]]:_0x4f4365[_0x123e72],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants[_0x256225(0x1f7)]]:{},[TestFrameworkConstants[_0x256225(0x1b6)]]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x53baa6,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x256225(0x1b9)],[TestFrameworkConstants[_0x256225(0x1a8)]]:_0x12a3a7[_0x256225(0x165)]||'',[TestFrameworkConstants[_0x256225(0x154)]]:_0x12a3a7[_0x256225(0x193)]||'',[TestFrameworkConstants[_0x256225(0x158)]]:_0x4cbdf6,[TestFrameworkConstants[_0x256225(0x149)]]:_0x12a3a7[_0x256225(0x165)]||'',[TestFrameworkConstants[_0x256225(0x1ad)]]:_0x12a3a7[_0x256225(0x19d)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x12a3a7[_0x256225(0x1f3)]?.[_0x256225(0x167)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x12a3a7[_0x256225(0x1a7)]||[],[TestFrameworkConstants[_0x256225(0x206)]]:_0x12a3a7['startedAt']||new Date()[_0x256225(0x198)](),[TestFrameworkConstants[_0x256225(0x1e0)]]:_0x12a3a7[_0x256225(0x18a)]?.[0x0]||'',[TestFrameworkConstants[_0x256225(0x1e2)]]:_0x12a3a7[_0x256225(0x18a)]||[],[TestFrameworkConstants[_0x256225(0x160)]]:_0x12a3a7[_0x256225(0x1c2)]?.[_0x256225(0x1bd)]||_0x12a3a7[_0x256225(0x165)]||'',[TestFrameworkConstants[_0x256225(0x184)]]:{},[TestFrameworkConstants[_0x256225(0x197)]]:_0x12a3a7['meta']||{}};TestInfo[_0x256225(0x14c)](_0x4cbdf6,_0x56b946),logger[_0x256225(0x1a3)](_0x256225(0x143)+_0x12a3a7[_0x256225(0x165)]+'\x20with\x20UUID:\x20'+_0x53baa6);const _0x195dbd={};return _0x195dbd[_0x4cbdf6]=_0x56b946,_0x195dbd;}['parseCucumberTestResult'](_0x4cc74d){const _0x2007fe=a78_0x210409,_0x19c514={'hSsTC':_0x2007fe(0x1f4),'Nqehc':_0x2007fe(0x13d),'ryQTl':function(_0x60879a,_0x46ca44){return _0x60879a===_0x46ca44;},'bfKHq':_0x2007fe(0x159),'gcLJd':_0x2007fe(0x14b),'zZrhx':function(_0x3f4a28,_0x49dc8d,_0x9a9110){return _0x3f4a28(_0x49dc8d,_0x9a9110);},'YYxRa':function(_0xcdc0d4,_0x35e8c3){return _0xcdc0d4>_0x35e8c3;},'kDJeB':function(_0x15dd80,_0x24398f){return _0x15dd80>_0x24398f;}},{testUUID:_0x483f71,testData:_0x15cfc2}=_0x4cc74d;if(!_0x15cfc2||!_0x15cfc2[_0x2007fe(0x18f)])return logger[_0x2007fe(0x1a3)](_0x19c514['hSsTC']),{};const _0x3d58ec=this[_0x2007fe(0x1e1)](TestFrameworkState[_0x2007fe(0x1a1)],HookState[_0x2007fe(0x187)]),_0x146e99=_0x15cfc2['uuid'],_0x1a2d36=TestInfo[_0x2007fe(0x19f)](_0x146e99)||{},_0x44922a=_0x1a2d36?_0x1a2d36[TestFrameworkConstants[_0x2007fe(0x184)]]||{}:{},_0x5e62ea={..._0x1a2d36,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x15cfc2[_0x2007fe(0x14f)]||_0x19c514[_0x2007fe(0x195)],[TestFrameworkConstants[_0x2007fe(0x1ac)]]:_0x15cfc2['finishedAt']||new Date()[_0x2007fe(0x198)](),[TestFrameworkConstants[_0x2007fe(0x1ec)]]:new Date()[_0x2007fe(0x198)](),[TestFrameworkConstants[_0x2007fe(0x184)]]:_0x44922a,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x15cfc2[_0x2007fe(0x170)]||{}};_0x19c514[_0x2007fe(0x1da)](_0x15cfc2['result'],_0x19c514[_0x2007fe(0x14d)])&&_0x15cfc2[_0x2007fe(0x146)]&&(_0x5e62ea[TestFrameworkConstants[_0x2007fe(0x141)]]=_0x15cfc2[_0x2007fe(0x145)]||_0x19c514[_0x2007fe(0x1c9)],_0x5e62ea[TestFrameworkConstants[_0x2007fe(0x17d)]]=_0x15cfc2[_0x2007fe(0x1ca)]||'',_0x5e62ea[TestFrameworkConstants[_0x2007fe(0x1c8)]]=_0x15cfc2[_0x2007fe(0x146)]);const _0x789f6e=TestInfo['getTestDetails'](_0x146e99)[TestFrameworkConstants[_0x2007fe(0x1db)]]||{},_0x299951=_0x19c514[_0x2007fe(0x1c5)](getManualUploadLogs,_0x789f6e,_0x3d58ec[_0x2007fe(0x1cb)]()[_0x2007fe(0x1c6)](_0x146e99)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x19c514[_0x2007fe(0x190)](_0x299951[_0x2007fe(0x16b)],0x0)){const _0xd2354a=_0x5e62ea[TestFrameworkConstants[_0x2007fe(0x1a9)]]||[];_0x5e62ea[TestFrameworkConstants['KEY_LOGS']]=[..._0xd2354a,..._0x299951];}_0x15cfc2[_0x2007fe(0x168)]&&_0x19c514['kDJeB'](_0x15cfc2[_0x2007fe(0x168)]['length'],0x0)&&(_0x5e62ea[TestFrameworkConstants[_0x2007fe(0x1f7)]]=_0x15cfc2['hooks']);TestInfo[_0x2007fe(0x14c)](_0x146e99,_0x5e62ea),logger['debug'](_0x2007fe(0x1a5)+_0x15cfc2[_0x2007fe(0x165)]+_0x2007fe(0x15a)+_0x15cfc2[_0x2007fe(0x14f)]);const _0x3ee9a4={};return _0x3ee9a4[_0x146e99]=_0x5e62ea,_0x3ee9a4;}async[a78_0x210409(0x17b)](_0x514e27,_0x8ab5d6,_0x4a5140,_0x1e4e46){const _0x53ed8e=a78_0x210409,_0x54999d={'NSBHa':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','DGDjW':function(_0x2b910d){return _0x2b910d();},'pldvu':function(_0x45897c,_0x34cf72){return _0x45897c in _0x34cf72;},'iUDIV':function(_0x16a9e1,_0x2e30f0){return _0x16a9e1===_0x2e30f0;},'rayeE':function(_0x1a893e,_0x209759){return _0x1a893e>_0x209759;},'bXFcv':function(_0x4dcd6b,_0x5ae334){return _0x4dcd6b===_0x5ae334;},'wtEgJ':_0x53ed8e(0x159),'Zohtl':_0x53ed8e(0x14b),'RcdKy':_0x53ed8e(0x1d1),'DOJJj':function(_0x517162,_0x1544de){return _0x517162!==_0x1544de;}},{hookData:_0x266f15}=_0x1e4e46;if(!_0x266f15)return logger[_0x53ed8e(0x1a3)](_0x54999d[_0x53ed8e(0x185)]),{};const _0x47f30d=_0x266f15['uuid']||_0x54999d[_0x53ed8e(0x1df)](uuidv4),_0x5d0d1f=_0x266f15['test_run_id'],_0x4bca08=_0x8ab5d6[_0x53ed8e(0x183)]()[_0x53ed8e(0x194)]('.')[0x1],_0x1a25a1=TestInfo[_0x53ed8e(0x19f)](_0x5d0d1f)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x52af3a=_0x514e27[_0x53ed8e(0x1cb)]()[_0x53ed8e(0x1c6)](_0x5d0d1f);if(!_0x52af3a)return logger['debug'](_0x53ed8e(0x156)+_0x5d0d1f+_0x53ed8e(0x18c)),this[_0x53ed8e(0x19c)](_0x514e27,_0x5d0d1f,_0x8ab5d6,_0x4a5140,_0x1e4e46),{};let _0x2f608e=_0x52af3a[TestFrameworkConstants[_0x53ed8e(0x1b6)]];!_0x2f608e&&(_0x2f608e={});!_0x54999d[_0x53ed8e(0x1ea)](_0x4bca08,_0x2f608e)&&(_0x2f608e[_0x4bca08]=[]);let _0xf55af9=_0x52af3a[TestFrameworkConstants[_0x53ed8e(0x1f7)]];!_0xf55af9&&(_0xf55af9={});!_0x54999d[_0x53ed8e(0x1ea)](_0x4bca08,_0xf55af9)&&(_0xf55af9[_0x4bca08]=[]);const _0x4756d9={[TestFrameworkConstants[_0x53ed8e(0x1b6)]]:_0x2f608e,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0xf55af9},_0x18c6f3={};_0x18c6f3[_0x5d0d1f]=_0x4756d9;const _0x1044ea=_0x18c6f3;if(_0x54999d[_0x53ed8e(0x19a)](_0x4a5140,HookState[_0x53ed8e(0x1af)])){const _0x452065={[TestFrameworkConstants[_0x53ed8e(0x144)]]:_0x47f30d,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0x53ed8e(0x205)],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0x266f15[_0x53ed8e(0x1ee)],[TestFrameworkConstants[_0x53ed8e(0x1d9)]]:[],[TestFrameworkConstants[_0x53ed8e(0x209)]]:_0x266f15[_0x53ed8e(0x1a6)],[TestFrameworkConstants[_0x53ed8e(0x184)]]:_0x1a25a1};_0x452065['key']=_0x4bca08;const _0x2234d3=_0x452065;_0x2f608e[_0x4bca08][_0x53ed8e(0x1d8)](_0x2234d3),_0x1044ea[_0x5d0d1f][TestFrameworkConstants[_0x53ed8e(0x1ed)]]=_0x4bca08,logger[_0x53ed8e(0x1a3)](_0x53ed8e(0x17a)+_0x4bca08+_0x53ed8e(0x1f6)+_0x2234d3+'\x20\x20and\x20args\x20=\x20'+_0x1e4e46);}else{if(_0x54999d[_0x53ed8e(0x19a)](_0x4a5140,HookState[_0x53ed8e(0x187)])){const _0x2410fe=_0x266f15[_0x53ed8e(0x14f)],_0x25f3fb=_0x2f608e[_0x4bca08]||[];logger[_0x53ed8e(0x1a3)](_0x53ed8e(0x13f)+_0x25f3fb+_0x53ed8e(0x18b)+_0x1e4e46);if(_0x54999d['rayeE'](_0x25f3fb['length'],0x0)){const _0x308aee=_0x25f3fb[_0x53ed8e(0x1b0)]();_0x54999d[_0x53ed8e(0x1ba)](_0x266f15['result'],_0x54999d[_0x53ed8e(0x1e6)])&&_0x266f15[_0x53ed8e(0x191)]?(_0x308aee[TestFrameworkConstants[_0x53ed8e(0x1c7)]]=_0x266f15['failure_type']||_0x54999d['Zohtl'],_0x308aee[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x266f15[_0x53ed8e(0x1ca)]||'',_0x308aee[TestFrameworkConstants[_0x53ed8e(0x171)]]=_0x266f15[_0x53ed8e(0x191)]):_0x308aee[TestFrameworkConstants[_0x53ed8e(0x1f1)]]=_0x54999d[_0x53ed8e(0x1bb)];_0x54999d[_0x53ed8e(0x200)](_0x2410fe,TestFrameworkConstants[_0x53ed8e(0x205)])&&(_0x308aee[TestFrameworkConstants[_0x53ed8e(0x1f1)]]=_0x2410fe);_0x308aee[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x266f15[_0x53ed8e(0x1d4)]||new Date()[_0x53ed8e(0x198)](),_0x308aee[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x1a25a1;const _0x45e18e=_0x308aee[TestFrameworkConstants[_0x53ed8e(0x144)]];!_0xf55af9[_0x4bca08]&&(_0xf55af9[_0x4bca08]=[]),_0xf55af9[_0x4bca08][_0x53ed8e(0x1d8)](_0x308aee),_0x1044ea[_0x5d0d1f][TestFrameworkConstants[_0x53ed8e(0x181)]]=_0x4bca08;}}}return logger[_0x53ed8e(0x1a3)](_0x53ed8e(0x1c3)+_0x266f15[_0x53ed8e(0x1a6)]+_0x53ed8e(0x179)+_0x47f30d+'\x20for\x20test:\x20'+_0x5d0d1f),_0x1044ea;}[a78_0x210409(0x1ab)](_0x3c901d){const _0x84c222=a78_0x210409,_0x6fad01={};_0x6fad01['vXiaZ']=_0x84c222(0x20b);const _0x3d6db8=_0x6fad01;try{const _0x205995=_0x3c901d[_0x84c222(0x196)]?_0x3c901d[_0x84c222(0x196)]['id']:_0x3c901d[_0x84c222(0x186)][_0x84c222(0x1e5)],_0x2f6235=_0x3c901d[_0x84c222(0x157)],_0x31d3a3=_0x2f6235[_0x84c222(0x1a4)](),_0x42ebb4=_0x2f6235['getAllData']()[_0x84c222(0x1c6)](_0x205995);if(!_0x42ebb4)return logger[_0x84c222(0x1a3)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x205995),{};logger['debug'](_0x84c222(0x1f9)+_0x205995);const {[TestFrameworkConstants[_0x84c222(0x1f2)]]:_0x25d645='',[TestFrameworkConstants[_0x84c222(0x1f0)]]:_0x12b543='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x5a641e='',[TestFrameworkConstants[_0x84c222(0x1ac)]]:_0x2ebe59=''}=_0x42ebb4,_0x4a0c0a=_0x2f6235[_0x84c222(0x17f)]()[_0x84c222(0x183)]()['split']('.')[0x1],_0x1c0dd2=_0x2f6235[_0x84c222(0x1de)]()[_0x84c222(0x183)]()['split']('.')[0x1],_0x42a00f=global?.['browserstackPlatformIndex']??0x0,_0x3995fd=_0x2f6235['getRef'](),_0x479712=Buffer[_0x84c222(0x16a)](JSON[_0x84c222(0x1e4)](_0x42ebb4))['toString'](_0x3d6db8[_0x84c222(0x1b1)]),_0x4f44fc={'hash':_0x31d3a3[_0x84c222(0x1d5)](),'threadId':_0x31d3a3['getThreadId']()[_0x84c222(0x183)](),'processId':_0x31d3a3['getProcessId']()[_0x84c222(0x183)]()},_0x4f20b5={};_0x4f20b5[_0x84c222(0x161)]=_0x42a00f,_0x4f20b5[_0x84c222(0x189)]=_0x25d645,_0x4f20b5['testFrameworkVersion']=_0x12b543,_0x4f20b5[_0x84c222(0x16f)]=_0x4a0c0a,_0x4f20b5[_0x84c222(0x151)]=_0x1c0dd2,_0x4f20b5[_0x84c222(0x1a2)]=_0x5a641e,_0x4f20b5[_0x84c222(0x13e)]=_0x2ebe59,_0x4f20b5[_0x84c222(0x18f)]=_0x3995fd,_0x4f20b5[_0x84c222(0x178)]=_0x479712,_0x4f20b5[_0x84c222(0x208)]=_0x4f44fc;const _0x232a56=_0x4f20b5;return logger[_0x84c222(0x1a3)](_0x84c222(0x1c0)+_0x205995+'\x20testState:\x20'+_0x4a0c0a+_0x84c222(0x1ff)+_0x1c0dd2),_0x232a56;}catch(_0x2a580b){return logger[_0x84c222(0x207)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x84c222(0x1cf)](_0x2a580b)),{};}}async['sendLogCreatedEvent'](_0x51b322,_0x2cbc18,_0x264389){const _0x4d08e2=a78_0x210409,_0x5cf5cc={'ZhyXy':function(_0x4b1178,_0x412f13,_0x2d1306){return _0x4b1178(_0x412f13,_0x2d1306);},'EioKR':function(_0xddba90,_0x5a74af){return _0xddba90===_0x5a74af;},'CRFfE':_0x4d08e2(0x1dc),'Zdbli':function(_0x53cbc0,_0x4ae1b6){return _0x53cbc0/_0x4ae1b6;},'ybLWa':function(_0x46bbd1,_0x79fe67){return _0x46bbd1<_0x79fe67;},'OhXIK':function(_0x5ab170,_0x231fa3){return _0x5ab170*_0x231fa3;},'hgqcR':function(_0x50bee3,_0x2d9b1d){return _0x50bee3+_0x2d9b1d;},'YhPyP':'Cucumber\x20log\x20created\x20event'};try{const _0x52980d=_0x264389[_0x4d08e2(0x16d)],_0x2b55ae=_0x51b322['getAllData']()[_0x4d08e2(0x1c6)](_0x52980d),{[TestFrameworkConstants[_0x4d08e2(0x1f2)]]:_0x13eb10='',[TestFrameworkConstants[_0x4d08e2(0x1f0)]]:_0x5cc1b9=''}=_0x2b55ae,_0x106364=TestInfo[_0x4d08e2(0x203)](_0x52980d),_0x1d006e=TestInfo[_0x4d08e2(0x19f)](_0x52980d)[TestFrameworkConstants[_0x4d08e2(0x1db)]]||{},_0x3626d9=_0x5cf5cc[_0x4d08e2(0x1b2)](getMediaArtifactsLogs,_0x1d006e,_0x51b322['getAllData']()[_0x4d08e2(0x1c6)](_0x52980d)[TestFrameworkConstants[_0x4d08e2(0x1e7)]]),_0x428e0d=(_0x106364||[])[_0x4d08e2(0x17c)](_0x3626d9||[]);if(!_0x428e0d||_0x5cf5cc[_0x4d08e2(0x1ae)](_0x428e0d[_0x4d08e2(0x16b)],0x0)){logger[_0x4d08e2(0x1a3)](_0x5cf5cc['CRFfE']);return;}const _0x2b13b4=0x28,_0x36ea09=Math[_0x4d08e2(0x14a)](_0x5cf5cc[_0x4d08e2(0x1b7)](_0x428e0d[_0x4d08e2(0x16b)],_0x2b13b4));for(let _0x558691=0x0;_0x5cf5cc[_0x4d08e2(0x1a0)](_0x558691,_0x36ea09);_0x558691++){const _0x34fafb=_0x5cf5cc['OhXIK'](_0x558691,_0x2b13b4),_0x213490=_0x5cf5cc[_0x4d08e2(0x152)](_0x34fafb,_0x2b13b4),_0x591e60=_0x428e0d['slice'](_0x34fafb,_0x213490),_0x1ee700={'platformIndex':global?.[_0x4d08e2(0x16e)]??0x0,'logs':_0x591e60,'testFrameworkName':_0x13eb10,'testFrameworkVersion':_0x5cc1b9,'testFrameworkState':_0x2cbc18[_0x4d08e2(0x183)]()[_0x4d08e2(0x194)]('.')[0x1]};logger[_0x4d08e2(0x1a3)](_0x4d08e2(0x164)+_0x52980d+_0x4d08e2(0x1b3)+_0x5cf5cc[_0x4d08e2(0x152)](_0x558691,0x1)+'/'+_0x36ea09+_0x4d08e2(0x188)+util[_0x4d08e2(0x14e)](_0x1ee700));const _0x5e3808=await GrpcClient[_0x4d08e2(0x202)]()[_0x4d08e2(0x18d)](_0x1ee700);logger[_0x4d08e2(0x1a3)](_0x4d08e2(0x164)+_0x52980d+_0x4d08e2(0x1b3)+_0x5cf5cc['hgqcR'](_0x558691,0x1)+'/'+_0x36ea09+_0x4d08e2(0x15e)+util[_0x4d08e2(0x14e)](_0x5e3808));}}catch(_0x555735){logger[_0x4d08e2(0x207)](_0x4d08e2(0x1f8)+util['format'](_0x555735));}logger[_0x4d08e2(0x1a3)](_0x5cf5cc[_0x4d08e2(0x1e9)]);}['storePendingHook'](_0x4811ec,_0x135989,_0xdd9e93,_0x57ff08,_0x1e5810){const _0x47fc46=a78_0x210409,_0x562280={'testId':_0x135989,'testFrameworkState':_0xdd9e93,'hookState':_0x57ff08,'args':_0x1e5810,'timestamp':new Date()['toISOString']()};_0x4811ec[_0x47fc46(0x199)](_0x135989,_0x562280),logger[_0x47fc46(0x1a3)]('Stored\x20pending\x20hook\x20for\x20testId:\x20'+_0x135989+_0x47fc46(0x1d6)+_0xdd9e93+_0x47fc46(0x1eb)+_0x57ff08);}async[a78_0x210409(0x177)](_0x21b33c,_0x580966){const _0x117596=a78_0x210409,_0xe36957={};_0xe36957[_0x117596(0x1d7)]=function(_0x340b70,_0x4d2816){return _0x340b70>_0x4d2816;};const _0x377cda=_0xe36957;if(!_0x21b33c[_0x117596(0x147)](_0x580966))return;const _0x55dbc6=_0x21b33c['getPendingHooks'](_0x580966);logger['debug'](_0x117596(0x1b8)+_0x55dbc6[_0x117596(0x16b)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x580966);for(const _0x23bf58 of _0x55dbc6){try{const _0x53909b=await this['trackHookEvent'](_0x21b33c,_0x23bf58[_0x117596(0x16f)],_0x23bf58[_0x117596(0x151)],_0x23bf58[_0x117596(0x140)]);_0x53909b&&_0x377cda['KjiYz'](Object[_0x117596(0x15b)](_0x53909b)['length'],0x0)&&_0x21b33c[_0x117596(0x17e)](_0x53909b),await this[_0x117596(0x172)](_0x21b33c,_0x23bf58[_0x117596(0x16f)],_0x23bf58[_0x117596(0x151)],_0x23bf58[_0x117596(0x140)]);}catch(_0x1413c4){logger['error'](_0x117596(0x16c)+_0x580966+_0x117596(0x20a)+_0x1413c4);}}_0x21b33c[_0x117596(0x1ef)](_0x580966),logger['debug'](_0x117596(0x1d0)+_0x580966);}}function a78_0x30a1(){const _0x58c8ff=['KEY_TEST_FAILURE_REASON','addMultipleEntries','getCurrentTestState','parseCucumberTestResult','KEY_HOOK_LAST_FINISHED','../TestInfo.js','toString','KEY_CUSTOM_TAGS','NSBHa','hookData','POST','\x20payload=','testFrameworkName','scopes','\x20and\x20args\x20=\x20',',\x20storing\x20as\x20pending\x20hook','logCreatedEvent','\x20&\x20hookState=','uuid','YYxRa','failure_data','getTestFrameworksVersions','file_name','split','Nqehc','test','KEY_TEST_META','toISOString','addPendingHook','iUDIV','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','storePendingHook','location','\x20target=','getTestDetails','ybLWa','TEST','startedAt','debug','getContext','Updated\x20cucumber\x20test\x20result:\x20','hook_type','tags','KEY_AUTOMATE_SESSION_NAME','KEY_LOGS','24IHeHTq','createTestFrameworkEventPayload','KEY_TEST_ENDED_AT','KEY_TEST_LOCATION','EioKR','PRE','pop','vXiaZ','ZhyXy','\x20batch\x20','brfmJ','util','KEY_HOOKS_STARTED','Zdbli','Processing\x20','DEFAULT_TEST_RESULT','bXFcv','RcdKy','25GyrfRV','rerun_name','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','35Waglec','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','customRerunParam','Tracked\x20cucumber\x20hook\x20event:\x20','createContext','zZrhx','get','KEY_HOOK_FAILURE_TYPE','KEY_TEST_FAILURE','gcLJd','failure_reason','getAllData','trackEvent:\x20unsupported\x20testFrameworkState=','../cliUtils.js','243582dJmGFW','format','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','passed','GIGZO','CucumberTestFramework','finished_at','getId',',\x20state:\x20','KjiYz','push','KEY_HOOK_LOGS','ryQTl','KEY_TEST_ATTACHMENTS','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','3508428SMhEQK','getCurrentHookState','DGDjW','KEY_TEST_SCOPE','resolveInstance','KEY_TEST_SCOPES','ifNLA','stringify','test_run_id','wtEgJ','KEY_TEST_UUID','trackCucumberInstance:\x20saved\x20instance\x20contextId=','YhPyP','pldvu',',\x20hookState:\x20','KEY_TEST_RESULT_AT','KEY_HOOK_LAST_STARTED','started_at','removePendingHooks','KEY_TEST_FRAMEWORK_VERSION','KEY_HOOK_RESULT','KEY_TEST_FRAMEWORK_NAME','body','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','1108536SNLOLi','\x20&\x20hook\x20=\x20','KEY_HOOKS_FINISHED','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','createTestFrameworkEventPayload\x20testId:\x20','../instances/trackedInstance.js','35128jWlZBL','5579865RjSkiI','EkJub','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','\x20hookState:\x20','DOJJj','getTrackedInstance','getInstance','readLogObjects','trackEvent','DEFAULT_HOOK_RESULT','KEY_TEST_STARTED_AT','error','executionContext','KEY_HOOK_NAME',',\x20error:\x20','base64','unknown','endedAt','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','args','KEY_TEST_FAILURE_TYPE','tOdfH','Parsed\x20cucumber\x20test:\x20','KEY_HOOK_ID','failure_type','failure','hasPendingHooks','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','KEY_TEST_NAME','ceil','UnhandledError','setTestDetails','bfKHq','inspect','result','LOG_REPORT','hookState','hgqcR','../grpcClient','KEY_TEST_FILE_PATH','setTrackedInstance','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','instance','KEY_TEST_ID','failed','\x20with\x20result:\x20','keys','../state/testFrameworkState.js','9109130DBDOzc','\x20response=','testData','KEY_TEST_RERUN_NAME','platformIndex','../state/hookState.js','307740vNnvOq','sendLogCreatedEvent:\x20for\x20testId:\x20','name','trackCucumberInstance','code','hooks','zIdqr','from','length','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','testUUID','browserstackPlatformIndex','testFrameworkState','meta','KEY_HOOK_FAILURE','runHooks',',\x20state=','parseCucumberTest','getTestFrameworks','yXwpX','processPendingHooks','eventJson','\x20with\x20id\x20','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','trackHookEvent','concat'];a78_0x30a1=function(){return _0x58c8ff;};return a78_0x30a1();}module['exports']=CucumberTestFramework;
|