browserstack-node-sdk 1.52.3 → 1.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/bin/v2/cliUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a68_0x2fa0f3=a68_0x1b32;(function(_0x5e470a,_0x1fa1bd){const _0x51dcf1=a68_0x1b32,_0x22fb30=_0x5e470a();while(!![]){try{const _0x442341=-parseInt(_0x51dcf1(0x1fa))/0x1+parseInt(_0x51dcf1(0x242))/0x2+parseInt(_0x51dcf1(0x1f4))/0x3*(parseInt(_0x51dcf1(0x26f))/0x4)+-parseInt(_0x51dcf1(0x266))/0x5+-parseInt(_0x51dcf1(0x238))/0x6*(parseInt(_0x51dcf1(0x286))/0x7)+parseInt(_0x51dcf1(0x245))/0x8*(parseInt(_0x51dcf1(0x1b6))/0x9)+parseInt(_0x51dcf1(0x1c8))/0xa;if(_0x442341===_0x1fa1bd)break;else _0x22fb30['push'](_0x22fb30['shift']());}catch(_0x52f4ed){_0x22fb30['push'](_0x22fb30['shift']());}}}(a68_0x5a09,0x8a07b));const fs=require('fs'),os=require('os'),url=require(a68_0x2fa0f3(0x229)),path=require(a68_0x2fa0f3(0x1d6)),{exec}=require(a68_0x2fa0f3(0x1f7)),{https}=require('follow-redirects'),yauzl=require('yauzl'),util=require(a68_0x2fa0f3(0x1e5)),{getFrameworkVersion}=require(a68_0x2fa0f3(0x1c9)),{threadId}=require('worker_threads'),PerformanceTester=require(a68_0x2fa0f3(0x1f5)),{EVENTS:PerformanceEvents}=require(a68_0x2fa0f3(0x1da)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a68_0x2fa0f3(0x24f)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a68_0x2fa0f3(0x1c6)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require(a68_0x2fa0f3(0x1ba)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require('./state/hookState.js'),TestFrameworkState=require(a68_0x2fa0f3(0x20d)),AutomationFrameworkState=require(a68_0x2fa0f3(0x263)),TestFrameworkConstants=require(a68_0x2fa0f3(0x1bf)),logger=createClassLogger(a68_0x2fa0f3(0x241)),{getBStackAPIUrl}=require(a68_0x2fa0f3(0x1d8));class CLIUtils{[a68_0x2fa0f3(0x252)]={};[a68_0x2fa0f3(0x1dc)]={};static[a68_0x2fa0f3(0x1d0)](){const _0x5d8dda=a68_0x2fa0f3,_0x2f295b={};_0x2f295b[_0x5d8dda(0x215)]=function(_0x524b1f,_0x3b0a21){return _0x524b1f===_0x3b0a21;},_0x2f295b['AfFBq']=_0x5d8dda(0x248);const _0x56ca80=_0x2f295b;return _0x56ca80['ofEuM'](process[_0x5d8dda(0x1bc)]['BROWSERSTACK_CLI_ENV'],_0x56ca80['AfFBq']);}static['getCLIParamsForDevEnv'](){const _0x56cde8=a68_0x2fa0f3,_0x597b5d={};return _0x597b5d['id']=process[_0x56cde8(0x1bc)]['BROWSERSTACK_CLI_ENV'],_0x597b5d['listen']=_0x56cde8(0x256)+process[_0x56cde8(0x1bc)]['BROWSERSTACK_CLI_ENV']+_0x56cde8(0x28e),_0x597b5d;}static[a68_0x2fa0f3(0x258)](){const _0x2aec29=a68_0x2fa0f3,_0x80dde8={'ItVYw':function(_0x53024a,_0x3b9c9c){return _0x53024a(_0x3b9c9c);},'JFAlr':'../../../package.json'};return _0x80dde8[_0x2aec29(0x1f0)](require,_0x80dde8[_0x2aec29(0x24c)])[_0x2aec29(0x254)];}static[a68_0x2fa0f3(0x1d4)](){const _0x141ecc=a68_0x2fa0f3,_0x277fb4={};_0x277fb4[_0x141ecc(0x23d)]='node';const _0x14817b=_0x277fb4;return _0x14817b[_0x141ecc(0x23d)];}static async['setupCliPath'](_0x4dfcea){const _0x2b738e=a68_0x2fa0f3,_0x515bd4={'MLkut':'Configuring\x20Cli\x20path.','OmlsI':function(_0x4ecfa6,_0x1e736a){return _0x4ecfa6(_0x1e736a);},'XmtCI':function(_0x70b887,_0x18e08f){return _0x70b887(_0x18e08f);},'CFqVd':_0x2b738e(0x1fc)};logger[_0x2b738e(0x1bd)](_0x515bd4[_0x2b738e(0x201)]);const _0x504a60=process[_0x2b738e(0x1bc)][_0x2b738e(0x1b5)];if(!_0x515bd4[_0x2b738e(0x211)](isNullOrEmpty,_0x504a60))return logger[_0x2b738e(0x1bd)](_0x2b738e(0x206)+_0x504a60),_0x504a60;try{const _0x132f67=this[_0x2b738e(0x272)]();if(_0x515bd4[_0x2b738e(0x26b)](isNullOrEmpty,_0x132f67))throw new Error(_0x515bd4[_0x2b738e(0x26a)]);const _0x26c253=this['getExistingCliPath'](_0x132f67),_0x498d1d=await this[_0x2b738e(0x21d)](_0x26c253,_0x132f67,_0x4dfcea);return logger[_0x2b738e(0x1bd)](_0x2b738e(0x1bb)+_0x498d1d),_0x498d1d;}catch(_0x1b0f3b){logger[_0x2b738e(0x1bd)](_0x2b738e(0x25c)+util[_0x2b738e(0x28c)](_0x1b0f3b));}return null;}static async[a68_0x2fa0f3(0x21d)](_0x151bc4,_0x28f216,_0x48818a){const _0x24e7d9=a68_0x2fa0f3,_0x4deaee={'rzAdT':function(_0x2fa250){return _0x2fa250();},'zqIQh':function(_0x54f93a,_0x23a39e){return _0x54f93a(_0x23a39e);},'YYfAF':function(_0x5bd480,_0x46f2b8,_0x28bea2){return _0x5bd480(_0x46f2b8,_0x28bea2);},'UQkmH':_0x24e7d9(0x228),'xGHgN':_0x24e7d9(0x229),'tpsBY':function(_0xa0e9f0,_0x104de8){return _0xa0e9f0(_0x104de8);},'GCioB':function(_0x557ae5,_0x5580e6,_0x22173f){return _0x557ae5(_0x5580e6,_0x22173f);}};PerformanceTester[_0x24e7d9(0x24a)](PerformanceEvents[_0x24e7d9(0x27b)]),logger[_0x24e7d9(0x222)](_0x24e7d9(0x202)+_0x151bc4);const _0x5108dd=_0x4deaee[_0x24e7d9(0x260)](getHostInfo),_0x17739a={'sdk_version':CLIUtils[_0x24e7d9(0x258)](),'os':_0x5108dd['platform'],'os_arch':_0x5108dd[_0x24e7d9(0x28f)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x4deaee['zqIQh'](isNullOrEmpty,_0x151bc4)&&(_0x17739a['cli_version']=await this['runShellCommand'](_0x151bc4+'\x20version'));const _0x24b13a=await this[_0x24e7d9(0x1d9)](_0x17739a,_0x48818a);process[_0x24e7d9(0x1bc)][_0x24e7d9(0x1e2)]&&(logger[_0x24e7d9(0x222)](_0x24e7d9(0x235)+process[_0x24e7d9(0x1bc)]['BROWSERSTACK_BINARY_URL']),_0x24b13a['data'][_0x24e7d9(0x229)]=process[_0x24e7d9(0x1bc)]['BROWSERSTACK_BINARY_URL']);if(_0x4deaee[_0x24e7d9(0x233)](nestedKeyValue,_0x24b13a,[_0x4deaee[_0x24e7d9(0x280)],_0x4deaee['xGHgN']])){logger['debug']('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x17739a[_0x24e7d9(0x271)]);if(!_0x4deaee[_0x24e7d9(0x289)](isNullOrEmpty,_0x151bc4)&&this['isBinaryBusy'](_0x151bc4))return logger['warn'](_0x24e7d9(0x214)+_0x151bc4),PerformanceTester[_0x24e7d9(0x1d1)](PerformanceEvents[_0x24e7d9(0x27b)]),_0x151bc4;const _0x49e983=await this[_0x24e7d9(0x22a)](_0x4deaee['GCioB'](nestedKeyValue,_0x24b13a,[_0x4deaee[_0x24e7d9(0x280)],_0x4deaee[_0x24e7d9(0x1f1)]]),_0x28f216);return PerformanceTester[_0x24e7d9(0x1d1)](PerformanceEvents[_0x24e7d9(0x27b)]),_0x49e983;}return PerformanceTester[_0x24e7d9(0x1d1)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x151bc4;}static[a68_0x2fa0f3(0x272)](){const _0x48699a=a68_0x2fa0f3,_0x451b15={'glVoJ':function(_0x2c88b0,_0x5a6e18){return _0x2c88b0(_0x5a6e18);},'eYIZG':_0x48699a(0x1fc),'kBYTG':_0x48699a(0x1e1)},_0x3c5e4e=this['getWritableDir']();try{if(_0x451b15[_0x48699a(0x24b)](isNullOrEmpty,_0x3c5e4e))throw new Error(_0x451b15['eYIZG']);const _0x522eb9=path['join'](_0x3c5e4e,_0x451b15[_0x48699a(0x1db)]);return!fs[_0x48699a(0x26c)](_0x522eb9)&&_0x451b15[_0x48699a(0x24b)](createDir,_0x522eb9),_0x522eb9;}catch(_0x4f8b04){logger[_0x48699a(0x1bd)](_0x48699a(0x1e3)+util[_0x48699a(0x28c)](_0x4f8b04));}}static['getWritableDir'](){const _0x287285=a68_0x2fa0f3,_0x1a5911={'psXdB':_0x287285(0x1f9),'MXlmM':function(_0x12fee9,_0x57ac14){return _0x12fee9(_0x57ac14);},'UnQOw':function(_0x577b05,_0x2df794){return _0x577b05(_0x2df794);},'iaroR':function(_0x1d101c,_0x4cedb1){return _0x1d101c(_0x4cedb1);},'PgBfR':function(_0x1df200,_0x47871b){return _0x1df200(_0x47871b);}},_0x287545=[process['env']['BROWSERSTACK_FILES_DIR'],path[_0x287285(0x22b)](os[_0x287285(0x212)](),_0x1a5911[_0x287285(0x265)]),path[_0x287285(0x22b)](os[_0x287285(0x1c7)](),_0x1a5911['psXdB'])];for(const _0x52f30f of _0x287545){if(_0x1a5911[_0x287285(0x28b)](isNullOrEmpty,_0x52f30f))continue;try{if(fs['existsSync'](_0x52f30f)){logger[_0x287285(0x1bd)]('Folder\x20'+_0x52f30f+'\x20already\x20exists');if(!_0x1a5911[_0x287285(0x285)](isModifiable,_0x52f30f)){logger['debug'](_0x287285(0x1c2)+_0x52f30f);const _0x50a357=_0x1a5911[_0x287285(0x28b)](setReadWriteExecuteAccess,_0x52f30f);if(!_0x1a5911[_0x287285(0x285)](isTrue,_0x50a357)){logger[_0x287285(0x1b0)](_0x287285(0x231)+_0x52f30f);continue;}}}else{logger[_0x287285(0x1bd)](_0x287285(0x278)+_0x52f30f),_0x1a5911['UnQOw'](createDir,_0x52f30f),logger[_0x287285(0x1bd)](_0x287285(0x1c2)+_0x52f30f);const _0x2fe14e=_0x1a5911[_0x287285(0x24e)](setReadWriteExecuteAccess,_0x52f30f);!_0x1a5911['PgBfR'](isTrue,_0x2fe14e)&&logger['warn'](_0x287285(0x231)+_0x52f30f);}return _0x52f30f;}catch(_0x2d40b7){logger[_0x287285(0x225)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x287285(0x28c)](_0x2d40b7));}}return null;}static['getExistingCliPath'](_0x44597b){const _0x394314=a68_0x2fa0f3,_0x1098c9={};_0x1098c9[_0x394314(0x21b)]=function(_0x2589fb,_0x1c9f1c){return _0x2589fb>_0x1c9f1c;},_0x1098c9[_0x394314(0x1fe)]=function(_0x3e600c,_0x2e896b){return _0x3e600c>_0x2e896b;};const _0x477b01=_0x1098c9;try{if(!fs[_0x394314(0x26c)](_0x44597b)||!fs[_0x394314(0x279)](_0x44597b)[_0x394314(0x20b)]())return'';const _0x26048a=fs['readdirSync'](_0x44597b)[_0x394314(0x1c1)](_0x386840=>path[_0x394314(0x22b)](_0x44597b,_0x386840))[_0x394314(0x249)](_0x376574=>fs[_0x394314(0x279)](_0x376574)[_0x394314(0x284)]()&&path[_0x394314(0x230)](_0x376574)[_0x394314(0x1ea)]('binary-'));if(_0x477b01[_0x394314(0x1fe)](_0x26048a[_0x394314(0x22c)],0x0)){const _0x4c745d=_0x26048a[_0x394314(0x1c1)](_0x513882=>({'filePath':_0x513882,'mtime':fs[_0x394314(0x279)](_0x513882)['mtime']}))[_0x394314(0x255)]((_0x3acc2a,_0x227889)=>{const _0x1478d7=_0x394314;if(!_0x3acc2a||!_0x3acc2a[_0x1478d7(0x259)])return _0x227889;if(_0x477b01[_0x1478d7(0x21b)](_0x227889[_0x1478d7(0x259)],_0x3acc2a[_0x1478d7(0x259)]))return _0x227889;return _0x3acc2a;},{});return _0x4c745d?_0x4c745d['filePath']:'';}return'';}catch(_0x5d386b){return logger[_0x394314(0x225)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x394314(0x28c)](_0x5d386b)),'';}}static [a68_0x2fa0f3(0x1d9)]=async(_0x3c72d1,_0xe94863)=>{const _0x26755e=a68_0x2fa0f3,_0x5d582a={'RsKOw':function(_0x385713,_0x5996be,_0x1ce0f5,_0x1fc971,_0x7b17bc){return _0x385713(_0x5996be,_0x1ce0f5,_0x1fc971,_0x7b17bc);},'EskHX':_0x26755e(0x218)},_0x5332a7={};_0x5332a7['qs']=_0x3c72d1;const _0x29a055=await _0x5d582a[_0x26755e(0x1fd)](nodeRequest,_0x5d582a['EskHX'],UPDATED_CLI_ENDPOINT,_0x5332a7,_0xe94863);return logger[_0x26755e(0x1bd)](_0x26755e(0x207)+JSON['stringify'](_0x29a055)),_0x29a055;};static['isBinaryBusy'](_0x45126f){const _0x136cc6=a68_0x2fa0f3;try{const _0x5230b1=fs['openSync'](_0x45126f,'r+');return fs[_0x136cc6(0x1b2)](_0x5230b1),![];}catch(_0x3f142f){if(BINARY_BUSY_ERROR_CODES['includes'](_0x3f142f[_0x136cc6(0x277)]))return logger['debug'](_0x136cc6(0x275)+_0x45126f),!![];return logger[_0x136cc6(0x1bd)]('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x3f142f[_0x136cc6(0x1c5)]),![];}}static['runShellCommand'](_0x2e460f,_0x1df629=''){const _0x862f4c=a68_0x2fa0f3,_0xbdaf4e={'ZRIdc':'version','UJgav':function(_0x165fd3,_0x33a1de){return _0x165fd3(_0x33a1de);},'IprPz':function(_0x240aed,_0xb0086d){return _0x240aed(_0xb0086d);},'EQMmf':_0x862f4c(0x23a),'hBXJB':function(_0x53ae36,_0x5c4446,_0x294995,_0x127cca){return _0x53ae36(_0x5c4446,_0x294995,_0x127cca);},'SFltO':_0x862f4c(0x225)};return new Promise((_0x25911d,_0x2b1dca)=>{const _0x4b587f=_0x862f4c,_0x154346={'GMOLq':_0xbdaf4e['ZRIdc'],'tAeWL':function(_0x51d86c,_0x591065){return _0xbdaf4e['UJgav'](_0x51d86c,_0x591065);},'yIsRJ':function(_0x1054c0,_0x1897cd){const _0x476039=a68_0x1b32;return _0xbdaf4e[_0x476039(0x1e4)](_0x1054c0,_0x1897cd);},'YPjMp':_0xbdaf4e['EQMmf']},_0x453990={};_0x453990[_0x4b587f(0x264)]=_0x1df629,_0x453990[_0x4b587f(0x28a)]=0x1388;const _0x273ab3=_0xbdaf4e[_0x4b587f(0x21f)](exec,_0x2e460f,_0x453990,(_0x2aa8a4,_0x364395,_0x12177a)=>{const _0x5c435d=_0x4b587f;if(_0x2aa8a4){if(_0x2e460f['includes'](_0x154346['GMOLq'])&&(_0x364395[_0x5c435d(0x240)]()||_0x12177a[_0x5c435d(0x240)]())){const _0x5e2cb5=_0x364395[_0x5c435d(0x240)]()||_0x12177a[_0x5c435d(0x240)]();logger[_0x5c435d(0x1bd)](_0x5c435d(0x236)+_0x5e2cb5+'\x22'),_0x154346[_0x5c435d(0x1ad)](_0x25911d,_0x5e2cb5);}else _0x154346[_0x5c435d(0x208)](_0x25911d,_0x12177a[_0x5c435d(0x240)]()||_0x154346[_0x5c435d(0x1b9)]);}else logger['debug'](_0x5c435d(0x1ef)+_0x364395[_0x5c435d(0x240)]()+'\x22'),_0x154346[_0x5c435d(0x208)](_0x25911d,_0x364395['trim']());});_0x273ab3['on'](_0xbdaf4e[_0x4b587f(0x20e)],()=>{const _0x5d0465=_0x4b587f;_0x154346[_0x5d0465(0x1ad)](_0x25911d,_0x154346[_0x5d0465(0x1b9)]);});});}static [a68_0x2fa0f3(0x22a)]=async(_0x30d03e,_0x2f4a2c)=>{const _0x11baa2=a68_0x2fa0f3,_0x4b0d84={'SGcMq':function(_0x5edb79,_0x4abe04){return _0x5edb79(_0x4abe04);},'dUDJv':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','uqnJu':function(_0x27e349,_0x1a2058){return _0x27e349(_0x1a2058);},'PpgGr':_0x11baa2(0x203),'bpEki':'error'};PerformanceTester[_0x11baa2(0x24a)](PerformanceEvents[_0x11baa2(0x20f)]),logger[_0x11baa2(0x1bd)](_0x11baa2(0x24d)+_0x30d03e);try{const _0x28cad8=url[_0x11baa2(0x213)](_0x30d03e),_0x42446c=path['join'](_0x2f4a2c,_0x11baa2(0x251)+process['pid']+'.zip'),_0x92d39c=fs[_0x11baa2(0x1d3)](_0x42446c);return new Promise((_0x4ff79e,_0x522b7f)=>{const _0x2e18b9=_0x11baa2,_0x26745b={'LmjAf':function(_0x566049,_0x3a121e){return _0x4b0d84['SGcMq'](_0x566049,_0x3a121e);},'KnMFW':_0x4b0d84['dUDJv'],'egAMl':function(_0x2e8ce4,_0x2bfe61){const _0x2d8984=a68_0x1b32;return _0x4b0d84[_0x2d8984(0x1eb)](_0x2e8ce4,_0x2bfe61);},'GuRRA':_0x4b0d84[_0x2e18b9(0x27d)],'YVGCn':function(_0xd14f96,_0x5ea35a){return _0x4b0d84['uqnJu'](_0xd14f96,_0x5ea35a);},'YwbIh':_0x4b0d84[_0x2e18b9(0x20a)],'zkWog':function(_0x4859d2,_0x16ab69){const _0x481131=_0x2e18b9;return _0x4b0d84[_0x481131(0x22f)](_0x4859d2,_0x16ab69);}};https[_0x2e18b9(0x1b8)](_0x28cad8,function(_0x48547b){const _0x137790=_0x2e18b9,_0x1ad319={'EkIDE':_0x26745b['KnMFW'],'WHzVi':function(_0x2440ac,_0x3529b3){return _0x26745b['egAMl'](_0x2440ac,_0x3529b3);},'vNCtr':_0x26745b[_0x137790(0x257)],'VnTXS':function(_0x12e122,_0x14486a){return _0x26745b['YVGCn'](_0x12e122,_0x14486a);}},_0x4e0e70=null;_0x48547b[_0x137790(0x1ee)](_0x92d39c),_0x48547b['on'](_0x26745b[_0x137790(0x1c4)],function(_0x4ccb9d){const _0x5876c8=_0x137790;logger[_0x5876c8(0x225)](util[_0x5876c8(0x28c)](_0x1ad319[_0x5876c8(0x234)],_0x4ccb9d)),PerformanceTester[_0x5876c8(0x1d1)](PerformanceEvents[_0x5876c8(0x20f)],![],util['format'](_0x4ccb9d)),_0x1ad319[_0x5876c8(0x1f6)](_0x522b7f,_0x4ccb9d);}),_0x92d39c['on'](_0x26745b[_0x137790(0x1c4)],function(_0x2a843d){const _0x533fbc=_0x137790;logger['error'](util['format'](_0x1ad319[_0x533fbc(0x23f)],_0x2a843d)),PerformanceTester['end'](PerformanceEvents[_0x533fbc(0x20f)],![],util['format'](_0x2a843d)),_0x1ad319[_0x533fbc(0x1f6)](_0x522b7f,_0x2a843d);}),CLIUtils['downloadFileStream'](_0x92d39c,_0x4e0e70,_0x42446c,_0x2f4a2c,_0x1e4f83=>{const _0x543df4=_0x137790;PerformanceTester[_0x543df4(0x1d1)](PerformanceEvents[_0x543df4(0x20f)]),_0x1ad319[_0x543df4(0x1c0)](_0x4ff79e,_0x1e4f83);},_0xc93cee=>{const _0x124b2b=_0x137790;PerformanceTester[_0x124b2b(0x1d1)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x124b2b(0x28c)](_0xc93cee)),_0x26745b['LmjAf'](_0x522b7f,_0xc93cee);});})['on'](_0x4b0d84[_0x2e18b9(0x20a)],function(_0x3816ac){const _0x461c6d=_0x2e18b9;logger[_0x461c6d(0x225)](_0x461c6d(0x246)+util[_0x461c6d(0x28c)](_0x3816ac)),PerformanceTester[_0x461c6d(0x1d1)](PerformanceEvents[_0x461c6d(0x20f)],![],util[_0x461c6d(0x28c)](_0x3816ac)),_0x26745b[_0x461c6d(0x204)](_0x522b7f,_0x3816ac);});});}catch(_0x112765){PerformanceTester[_0x11baa2(0x1d1)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x112765)),logger[_0x11baa2(0x1bd)](_0x11baa2(0x227)+util['format'](_0x112765));}};static[a68_0x2fa0f3(0x23e)](_0x15d14e,_0x29e4c4,_0x51a5a0,_0x555a71,_0x9b7243,_0x48c960){const _0x313bb8=a68_0x2fa0f3,_0x13eedb={'fURee':function(_0x19a14b,_0x301279){return _0x19a14b(_0x301279);},'KouLf':_0x313bb8(0x269),'ihmFP':function(_0x42c0eb,_0x29cc23){return _0x42c0eb(_0x29cc23);},'LpqHf':_0x313bb8(0x1d1),'gtNub':function(_0x19e8aa,_0xcfdb49){return _0x19e8aa(_0xcfdb49);},'WNIDG':function(_0x4d4ae3,_0x13a5db){return _0x4d4ae3(_0x13a5db);},'wkyHx':function(_0x1d9a94,_0x489655){return _0x1d9a94!==_0x489655;},'dgHhF':_0x313bb8(0x225),'aQwoa':_0x313bb8(0x273),'ppgfT':function(_0x1c9235,_0x36fe33){return _0x1c9235(_0x36fe33);},'udpnK':function(_0x504b15,_0x1b02c1){return _0x504b15(_0x1b02c1);},'IDkso':_0x313bb8(0x232),'VOAsi':_0x313bb8(0x25b)};_0x15d14e['on'](_0x13eedb[_0x313bb8(0x26e)],function(){const _0x4f5525=_0x313bb8,_0x4ffb9e={'IAeqv':function(_0x364601,_0x2d9309){const _0x5e4fd4=a68_0x1b32;return _0x13eedb[_0x5e4fd4(0x267)](_0x364601,_0x2d9309);},'zCIip':_0x13eedb[_0x4f5525(0x26e)],'JJuns':function(_0x4b1c22,_0x3388b3){const _0x3ae76c=_0x4f5525;return _0x13eedb[_0x3ae76c(0x287)](_0x4b1c22,_0x3388b3);},'bfZlF':_0x13eedb[_0x4f5525(0x1e9)],'kVaip':function(_0x81404,_0x138604){const _0x31517c=_0x4f5525;return _0x13eedb[_0x31517c(0x23b)](_0x81404,_0x138604);},'vOXZs':function(_0xe93c67,_0x163367){const _0x6333c6=_0x4f5525;return _0x13eedb[_0x6333c6(0x20c)](_0xe93c67,_0x163367);},'zMmIR':function(_0x306dc5,_0x18c6f4){const _0x46cfe5=_0x4f5525;return _0x13eedb[_0x46cfe5(0x1e6)](_0x306dc5,_0x18c6f4);},'hwhqi':_0x13eedb[_0x4f5525(0x1ca)],'jpSDJ':_0x13eedb[_0x4f5525(0x23c)],'mJiEg':function(_0x4bb87d,_0x343fd2){const _0x428c5d=_0x4f5525;return _0x13eedb[_0x428c5d(0x1d7)](_0x4bb87d,_0x343fd2);},'nJiuQ':function(_0x53bebd,_0x3bbe89){const _0x457bbc=_0x4f5525;return _0x13eedb[_0x457bbc(0x1ff)](_0x53bebd,_0x3bbe89);},'cFTJP':_0x13eedb['IDkso'],'AYucp':_0x13eedb['VOAsi']},_0x41029e={};_0x41029e[_0x4f5525(0x1cb)]=!![],yauzl[_0x4f5525(0x221)](_0x51a5a0,_0x41029e,function(_0x29c477,_0x180a52){const _0x506426=_0x4f5525,_0x3ad790={'LmmVk':_0x4ffb9e[_0x506426(0x1cd)],'rLYwg':function(_0x30a57c,_0x579c0e){return _0x4ffb9e['JJuns'](_0x30a57c,_0x579c0e);},'hmKsJ':_0x4ffb9e[_0x506426(0x219)],'gPYJK':function(_0x123557,_0x1be8d3){const _0x2a657d=_0x506426;return _0x4ffb9e[_0x2a657d(0x1b4)](_0x123557,_0x1be8d3);},'sNAdW':function(_0x1adc79,_0x164d2e){const _0x2ed0f4=_0x506426;return _0x4ffb9e[_0x2ed0f4(0x25a)](_0x1adc79,_0x164d2e);},'RQGNl':function(_0x5a5c26,_0x5c8968){const _0x2ada8f=_0x506426;return _0x4ffb9e[_0x2ada8f(0x1e7)](_0x5a5c26,_0x5c8968);},'wbgNe':_0x4ffb9e[_0x506426(0x217)],'hMshP':function(_0x537fe7,_0xb1def5){const _0x15a551=_0x506426;return _0x4ffb9e[_0x15a551(0x1e7)](_0x537fe7,_0xb1def5);},'JAMMJ':_0x4ffb9e[_0x506426(0x239)],'mSTBk':function(_0x330045,_0x244f81){const _0xb312da=_0x506426;return _0x4ffb9e[_0xb312da(0x25a)](_0x330045,_0x244f81);},'MRXMH':function(_0x4729b2,_0x557c3d){const _0x5ac00c=_0x506426;return _0x4ffb9e[_0x5ac00c(0x282)](_0x4729b2,_0x557c3d);},'OOBgs':function(_0x5baf94,_0x3ef336){const _0x5f5636=_0x506426;return _0x4ffb9e[_0x5f5636(0x27a)](_0x5baf94,_0x3ef336);},'BxzcX':_0x4ffb9e[_0x506426(0x247)]};if(_0x29c477){_0x4ffb9e[_0x506426(0x27a)](_0x48c960,_0x29c477);return;}_0x180a52[_0x506426(0x224)](),_0x180a52['on'](_0x4ffb9e['AYucp'],_0x5242cc=>{const _0x59677e=_0x506426,_0x4f43fa={'EpuHo':function(_0x3e2113,_0x41e257){const _0x2e3f0c=a68_0x1b32;return _0x3ad790[_0x2e3f0c(0x216)](_0x3e2113,_0x41e257);},'YCBhv':function(_0x3c863c,_0x5a4b6b){return _0x3ad790['sNAdW'](_0x3c863c,_0x5a4b6b);}};if(/\/$/[_0x59677e(0x25d)](_0x5242cc['fileName'])){_0x180a52[_0x59677e(0x224)]();return;}!_0x29e4c4&&(_0x29e4c4=_0x5242cc[_0x59677e(0x223)]);if(_0x3ad790[_0x59677e(0x1ec)](_0x5242cc[_0x59677e(0x223)],_0x29e4c4))_0x180a52['readEntry']();else{const _0x76ad45=_0x5242cc[_0x59677e(0x223)],_0x5292a3=path[_0x59677e(0x22b)](_0x555a71,_0x76ad45+_0x59677e(0x261)+process[_0x59677e(0x210)]);let _0x4e974a;try{_0x4e974a=fs[_0x59677e(0x1d3)](_0x5292a3);}catch(_0x4603ff){if(BINARY_BUSY_ERROR_CODES['includes'](_0x4603ff['code'])){const _0x3b1b68=path['join'](_0x555a71,_0x76ad45);if(fs[_0x59677e(0x26c)](_0x3b1b68)){logger['warn'](_0x59677e(0x21a)+_0x76ad45),fs['unlink'](_0x51a5a0,_0x293aab=>{const _0xfc33d5=_0x59677e;_0x293aab&&logger[_0xfc33d5(0x1b0)](_0xfc33d5(0x243)+_0x51a5a0);}),_0x3ad790[_0x59677e(0x216)](_0x9b7243,_0x3b1b68);return;}logger[_0x59677e(0x1b0)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x76ad45);}_0x3ad790[_0x59677e(0x22d)](_0x48c960,_0x4603ff);return;}_0x4e974a['on'](_0x3ad790[_0x59677e(0x25e)],_0x32da80=>{const _0x21b6ed=_0x59677e;if(BINARY_BUSY_ERROR_CODES[_0x21b6ed(0x283)](_0x32da80[_0x21b6ed(0x277)])){const _0x115913=path[_0x21b6ed(0x22b)](_0x555a71,_0x76ad45);_0x4e974a[_0x21b6ed(0x269)](),fs['existsSync'](_0x115913)?(logger[_0x21b6ed(0x1b0)]('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x32da80[_0x21b6ed(0x1c5)]),_0x180a52[_0x21b6ed(0x269)](),fs[_0x21b6ed(0x1e0)](_0x51a5a0,_0x55d4b2=>{const _0x559c2c=_0x21b6ed;_0x55d4b2&&logger[_0x559c2c(0x1b0)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x51a5a0);}),_0x4f43fa[_0x21b6ed(0x250)](_0x9b7243,_0x115913)):(logger[_0x21b6ed(0x1b0)](_0x21b6ed(0x1f3)+_0x32da80[_0x21b6ed(0x1c5)]),fs['unlink'](_0x5292a3,()=>{}),_0x4f43fa['EpuHo'](_0x48c960,_0x32da80));}else fs[_0x21b6ed(0x1e0)](_0x5292a3,()=>{}),_0x4f43fa[_0x21b6ed(0x220)](_0x48c960,_0x32da80);}),_0x180a52['openReadStream'](_0x5242cc,function(_0x53b391,_0x5f3ac0){const _0x57715b=_0x59677e,_0x53a4a3={};_0x53a4a3['YAqyB']=_0x3ad790[_0x57715b(0x1d2)];const _0x3b729e=_0x53a4a3;if(_0x53b391){fs[_0x57715b(0x1e0)](_0x5292a3,()=>{}),_0x3ad790[_0x57715b(0x1f2)](_0x48c960,_0x53b391);return;}_0x5f3ac0['on'](_0x3ad790['hmKsJ'],function(){const _0x2810b1=_0x57715b;_0x4e974a[_0x2810b1(0x1d1)](),_0x4e974a['on'](_0x3b729e[_0x2810b1(0x1de)],function(){const _0x58605c=_0x2810b1;_0x180a52[_0x58605c(0x224)]();});}),_0x5f3ac0[_0x57715b(0x1ee)](_0x4e974a);});}}),_0x180a52['on'](_0x4ffb9e[_0x506426(0x217)],_0x289033=>{const _0xff414f=_0x506426;_0x4ffb9e[_0xff414f(0x1ae)](_0x48c960,_0x289033);}),_0x180a52[_0x506426(0x1c3)](_0x4ffb9e[_0x506426(0x219)],()=>{const _0x1d8ca7=_0x506426;fs[_0x1d8ca7(0x1e0)](_0x51a5a0,_0x5807f5=>{const _0x1cd8ed=_0x1d8ca7;_0x5807f5&&logger[_0x1cd8ed(0x1b0)](_0x1cd8ed(0x243)+_0x51a5a0);});const _0x444dc5=path[_0x1d8ca7(0x22b)](_0x555a71,_0x29e4c4+_0x1d8ca7(0x261)+process['pid']),_0x443ddd=path[_0x1d8ca7(0x22b)](_0x555a71,_0x29e4c4);fs['chmod'](_0x444dc5,_0x3ad790['BxzcX'],function(_0x421309){const _0x3036b9=_0x1d8ca7,_0x2b23b9={'ADIQC':function(_0x5a7b8b,_0x77b9d8){const _0x29809b=a68_0x1b32;return _0x3ad790[_0x29809b(0x276)](_0x5a7b8b,_0x77b9d8);},'SbhQU':_0x3ad790['JAMMJ'],'FmsXg':function(_0x40b234,_0x2bd247){const _0x38e65d=a68_0x1b32;return _0x3ad790[_0x38e65d(0x22d)](_0x40b234,_0x2bd247);},'BPCTD':function(_0x34cb8a,_0x43f8f4){const _0x533595=a68_0x1b32;return _0x3ad790[_0x533595(0x209)](_0x34cb8a,_0x43f8f4);},'mTQcU':function(_0x2113d3,_0x152beb){const _0x2a8fb8=a68_0x1b32;return _0x3ad790[_0x2a8fb8(0x1fb)](_0x2113d3,_0x152beb);}};if(_0x421309){_0x180a52[_0x3036b9(0x269)](),fs[_0x3036b9(0x1e0)](_0x444dc5,()=>{}),_0x3ad790[_0x3036b9(0x274)](_0x48c960,_0x421309);return;}fs[_0x3036b9(0x288)](_0x444dc5,_0x443ddd,function(_0x23137c){const _0x55858a=_0x3036b9;if(_0x23137c){if(_0x2b23b9[_0x55858a(0x1b7)](_0x23137c[_0x55858a(0x277)],_0x2b23b9[_0x55858a(0x1ce)])){_0x180a52['close'](),fs[_0x55858a(0x1e0)](_0x444dc5,()=>{}),_0x2b23b9[_0x55858a(0x27c)](_0x48c960,_0x23137c);return;}logger[_0x55858a(0x1b0)](_0x55858a(0x1df)+_0x23137c[_0x55858a(0x1c5)]);try{fs['copyFileSync'](_0x444dc5,_0x443ddd);}catch(_0xb6824c){_0x180a52[_0x55858a(0x269)](),fs[_0x55858a(0x1e0)](_0x444dc5,()=>{}),_0x2b23b9[_0x55858a(0x262)](_0x48c960,_0xb6824c);return;}fs['unlink'](_0x444dc5,_0x317442=>{const _0x59b2be=_0x55858a;_0x317442&&logger['warn'](_0x59b2be(0x21c)+_0x317442[_0x59b2be(0x1c5)]);});}_0x180a52[_0x55858a(0x269)](),_0x2b23b9['mTQcU'](_0x9b7243,_0x443ddd);});});});});});}static[a68_0x2fa0f3(0x1b3)](){const _0x4e7635=a68_0x2fa0f3;if(process['env'][_0x4e7635(0x1b1)])return JSON[_0x4e7635(0x213)](process[_0x4e7635(0x1bc)][_0x4e7635(0x1b1)]);return this[_0x4e7635(0x1dc)];}static['getAutomationFrameworkDetail'](){const _0x1834b8=a68_0x2fa0f3;if(process[_0x1834b8(0x1bc)][_0x1834b8(0x1f8)])return JSON[_0x1834b8(0x213)](process[_0x1834b8(0x1bc)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0x1834b8(0x252)];}static[a68_0x2fa0f3(0x1e8)](_0x27ae7f,_0x233181){const _0x481db7=a68_0x2fa0f3,_0x5b2f31={'NTAjZ':_0x481db7(0x27e),'OgPlw':function(_0x2a8b6c,_0x5a1c4a){return _0x2a8b6c(_0x5a1c4a);},'CyOos':function(_0x5a97ac,_0x5620c9){return _0x5a97ac||_0x5620c9;}},_0x4dbd7c=_0x5b2f31[_0x481db7(0x26d)][_0x481db7(0x1ed)]('|');let _0xf3c966=0x0;while(!![]){switch(_0x4dbd7c[_0xf3c966++]){case'0':process[_0x481db7(0x1bc)][_0x481db7(0x1f8)]=JSON[_0x481db7(0x27f)](this[_0x481db7(0x252)]);continue;case'1':process['env']['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x481db7(0x27f)](this[_0x481db7(0x1dc)]);continue;case'2':this['testFrameworkDetail']={'name':_0x27ae7f,'version':{[_0x27ae7f]:_0x5b2f31[_0x481db7(0x1cc)](getFrameworkVersion,_0x27ae7f)}};continue;case'3':_0x5b2f31[_0x481db7(0x281)](!_0x27ae7f,!_0x233181)&&logger[_0x481db7(0x1bd)](_0x481db7(0x1dd)+_0x27ae7f+',\x20automationFramework='+_0x233181);continue;case'4':this['automationFrameworkDetail']={'name':_0x233181,'version':_0x5b2f31[_0x481db7(0x1cc)](getFrameworkVersion,_0x233181)};continue;}break;}}static[a68_0x2fa0f3(0x268)](_0x510b38,_0x54b2f7){return _0x510b38+':'+_0x54b2f7;}static['getCurrentInstanceName'](){const _0x5537dd=a68_0x2fa0f3;return process[_0x5537dd(0x210)]+':'+threadId;}static[a68_0x2fa0f3(0x1d5)](_0x525486){const _0x3c70d3=a68_0x2fa0f3;if(_0x525486[_0x3c70d3(0x22e)]&&_0x525486['testContextOptions'][_0x3c70d3(0x270)])return!![];return![];}static[a68_0x2fa0f3(0x200)](_0x423842){if(_0x423842['testContextOptions']&&_0x423842['testContextOptions']['skipSessionStatus'])return!![];return![];}static[a68_0x2fa0f3(0x1be)](_0x5b5519){const _0x4b5eb4=a68_0x2fa0f3,_0x51975a=new RegExp(TestFrameworkConstants[_0x4b5eb4(0x244)]);return _0x51975a['test'](_0x5b5519);}static[a68_0x2fa0f3(0x237)](_0x39e911,_0x8bcb42){const _0xc74e2f=a68_0x2fa0f3,_0x1cf477={};_0x1cf477[_0xc74e2f(0x1af)]=function(_0x85eff9,_0x2fd7a5){return _0x85eff9!==_0x2fd7a5;},_0x1cf477[_0xc74e2f(0x226)]=function(_0x14e9eb,_0x599e43){return _0x14e9eb===_0x599e43;},_0x1cf477[_0xc74e2f(0x28d)]=_0xc74e2f(0x25f);const _0x24a064=_0x1cf477;for(const [_0x2d14e8,_0x4e574f]of Object[_0xc74e2f(0x253)](_0x8bcb42)){if(_0x24a064[_0xc74e2f(0x1af)](_0x4e574f,null)&&_0x24a064[_0xc74e2f(0x226)](typeof _0x4e574f,_0x24a064[_0xc74e2f(0x28d)])&&!Array[_0xc74e2f(0x205)](_0x4e574f))_0x39e911[_0x2d14e8]=this[_0xc74e2f(0x237)](_0x39e911[_0x2d14e8]||{},_0x4e574f);else Array['isArray'](_0x4e574f)?_0x39e911[_0x2d14e8]=(_0x39e911[_0x2d14e8]||[])[_0xc74e2f(0x1cf)](_0x4e574f):_0x39e911[_0x2d14e8]=_0x4e574f;}return _0x39e911;}}function a68_0x1b32(_0x251b2b,_0x5a58ee){const _0x5a091a=a68_0x5a09();return a68_0x1b32=function(_0x1b3216,_0x33c841){_0x1b3216=_0x1b3216-0x1ad;let _0x3ecbc2=_0x5a091a[_0x1b3216];return _0x3ecbc2;},a68_0x1b32(_0x251b2b,_0x5a58ee);}module[a68_0x2fa0f3(0x21e)]=CLIUtils;function a68_0x5a09(){const _0x153900=['unlink','cli','BROWSERSTACK_BINARY_URL','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','IprPz','util','wkyHx','zMmIR','setFrameworkDetail','LpqHf','startsWith','uqnJu','RQGNl','split','pipe','Resolving\x20with\x20stdout:\x20\x22','ItVYw','xGHgN','rLYwg','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','3PeXKLV','../../helpers/performance/performance-tester.js','WHzVi','child_process','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','.browserstack','681451tmqXXn','MRXMH','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','RsKOw','vxZOk','udpnK','shouldSkipSessionStatus','MLkut','Current\x20CLI\x20Path\x20Found:\x20','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','zkWog','isArray','Development\x20Cli\x20Path:\x20','response\x20','yIsRJ','mSTBk','bpEki','isDirectory','WNIDG','./state/testFrameworkState.js','SFltO','SDK_CLI_DOWNLOAD','pid','OmlsI','homedir','parse','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','ofEuM','gPYJK','hwhqi','GET','bfZlF','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','YRksI','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','checkAndUpdateCli','exports','hBXJB','YCBhv','open','info','fileName','readEntry','error','doYnj','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','data','url','downloadLatestBinary','join','length','sNAdW','testContextOptions','SGcMq','basename','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','0755','YYfAF','EkIDE','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','CLI\x20version\x20found\x20despite\x20error:\x20\x22','mergeObject','1194iwiLDG','jpSDJ','SHELL_EXECUTE_ERROR','gtNub','aQwoa','Vnfjt','downloadFileStream','vNCtr','trim','CLIUtils','1420756RZpqjw','Failed\x20to\x20delete\x20zip\x20file:\x20','HOOK_REGEX','8uSVzTo','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','cFTJP','development','filter','start','glVoJ','JFAlr','Downloading\x20SDK\x20binary\x20from:\x20','iaroR','../../helpers/utilities','EpuHo','downloaded_file_','automationFrameworkDetail','entries','version','reduce','unix:/tmp/sdk-platform-','GuRRA','getSdkVersion','mtime','vOXZs','entry','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','test','wbgNe','object','rzAdT','.tmp.','BPCTD','./state/automationFrameworkState.js','cwd','psXdB','1331220vzkaUR','fURee','getHookRegistryKey','close','CFqVd','XmtCI','existsSync','NTAjZ','KouLf','4481528zgwIIE','skipSessionName','cli_version','getCliDir','EXDEV','OOBgs','Binary\x20is\x20busy:\x20','hMshP','code','Folder\x20does\x20not\x20exist:\x20','statSync','nJiuQ','SDK_CLI_CHECK_UPDATE','FmsXg','PpgGr','3|2|4|0|1','stringify','UQkmH','CyOos','mJiEg','includes','isFile','UnQOw','29239yYigQr','ihmFP','rename','tpsBY','timeout','MXlmM','format','EPiyL','.sock','arch','tAeWL','IAeqv','DZsWQ','warn','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','closeSync','getTestFrameworkDetail','kVaip','SDK_CLI_BIN_PATH','3688695OZyhsM','ADIQC','get','YPjMp','../../helpers/classLogger.js','Resolved\x20binary\x20path:\x20','env','debug','matchHookRegex','./framework/constants/testFrameworkConstants.js','VnTXS','map','Setting\x20required\x20permissions\x20to\x20','once','YwbIh','message','../../helpers/helper','tmpdir','1036740rbIsPE','../../helpers/test-observability/utils.js','dgHhF','lazyEntries','OgPlw','zCIip','SbhQU','concat','isDevelopmentEnv','end','LmmVk','createWriteStream','getSdkLanguage','shouldSkipSessionName','path','ppgfT','../utils/apiUtilityMethods.js','requestToUpdateCLI','../../helpers/performance/constants','kBYTG','testFrameworkDetail','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','YAqyB','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'];a68_0x5a09=function(){return _0x153900;};return a68_0x5a09();}
|
|
1
|
+
const a68_0x450786=a68_0x49d1;(function(_0x56d2ef,_0x43dc4a){const _0x3d2e33=a68_0x49d1,_0x1ebe3d=_0x56d2ef();while(!![]){try{const _0x37dc74=parseInt(_0x3d2e33(0x144))/0x1*(-parseInt(_0x3d2e33(0x1ca))/0x2)+-parseInt(_0x3d2e33(0x19d))/0x3*(parseInt(_0x3d2e33(0x11f))/0x4)+parseInt(_0x3d2e33(0x1b7))/0x5*(-parseInt(_0x3d2e33(0x1df))/0x6)+parseInt(_0x3d2e33(0x105))/0x7*(-parseInt(_0x3d2e33(0x137))/0x8)+parseInt(_0x3d2e33(0x16d))/0x9+-parseInt(_0x3d2e33(0x102))/0xa*(parseInt(_0x3d2e33(0x1a9))/0xb)+parseInt(_0x3d2e33(0x122))/0xc;if(_0x37dc74===_0x43dc4a)break;else _0x1ebe3d['push'](_0x1ebe3d['shift']());}catch(_0x1391e9){_0x1ebe3d['push'](_0x1ebe3d['shift']());}}}(a68_0x4d01,0x88b16));const fs=require('fs'),os=require('os'),url=require('url'),path=require(a68_0x450786(0x168)),{exec}=require(a68_0x450786(0x1d3)),{https}=require(a68_0x450786(0x10d)),yauzl=require(a68_0x450786(0x152)),util=require('util'),{getFrameworkVersion}=require(a68_0x450786(0x10c)),{threadId}=require(a68_0x450786(0x17c)),PerformanceTester=require(a68_0x450786(0x160)),{EVENTS:PerformanceEvents}=require(a68_0x450786(0x1d2)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a68_0x450786(0x19f)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a68_0x450786(0x17b)),{createClassLogger}=require(a68_0x450786(0x193)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a68_0x450786(0x1cc)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a68_0x450786(0x12c));function a68_0x49d1(_0x3c4ea9,_0x510037){const _0x4d01c6=a68_0x4d01();return a68_0x49d1=function(_0x49d110,_0x43dde8){_0x49d110=_0x49d110-0xff;let _0x5eb51e=_0x4d01c6[_0x49d110];return _0x5eb51e;},a68_0x49d1(_0x3c4ea9,_0x510037);}class CLIUtils{[a68_0x450786(0x175)]={};[a68_0x450786(0x12a)]={};static['isDevelopmentEnv'](){const _0x586071=a68_0x450786,_0x90cf35={};_0x90cf35[_0x586071(0x1c0)]=function(_0x130c86,_0x44df54){return _0x130c86===_0x44df54;},_0x90cf35['SPrNi']='development';const _0x27011a=_0x90cf35;return _0x27011a[_0x586071(0x1c0)](process[_0x586071(0x1b4)][_0x586071(0x1a3)],_0x27011a['SPrNi']);}static[a68_0x450786(0x1c3)](){const _0x44d2fa=a68_0x450786,_0x528e76={};return _0x528e76['id']=process['env'][_0x44d2fa(0x1a3)],_0x528e76[_0x44d2fa(0x142)]='unix:/tmp/sdk-platform-'+process[_0x44d2fa(0x1b4)][_0x44d2fa(0x1a3)]+_0x44d2fa(0x1cb),_0x528e76;}static[a68_0x450786(0x1c4)](){const _0x1a8e6b=a68_0x450786,_0x2b3592={'dbolt':function(_0x3609eb,_0x242824){return _0x3609eb(_0x242824);},'uNGtG':_0x1a8e6b(0x115)};return _0x2b3592['dbolt'](require,_0x2b3592[_0x1a8e6b(0x156)])[_0x1a8e6b(0x1d7)];}static['getSdkLanguage'](){const _0x1a1864=a68_0x450786,_0x175497={};_0x175497[_0x1a1864(0x1cf)]=_0x1a1864(0x1c1);const _0x4ff926=_0x175497;return _0x4ff926[_0x1a1864(0x1cf)];}static async[a68_0x450786(0x12b)](_0x29e9ef){const _0x34395c=a68_0x450786,_0x3e5a80={'hVXxj':'Configuring\x20Cli\x20path.','quaNo':function(_0x1286d1,_0x1c3c89){return _0x1286d1(_0x1c3c89);},'rHKKl':function(_0x2d2098,_0x5239cf){return _0x2d2098(_0x5239cf);},'piWwJ':_0x34395c(0x19c)};logger['debug'](_0x3e5a80[_0x34395c(0x133)]);const _0x23ef97=process['env'][_0x34395c(0x1c5)];if(!_0x3e5a80['quaNo'](isNullOrEmpty,_0x23ef97))return logger[_0x34395c(0x100)](_0x34395c(0x1ac)+_0x23ef97),_0x23ef97;try{const _0x3da8ab=this['getCliDir']();if(_0x3e5a80[_0x34395c(0x1be)](isNullOrEmpty,_0x3da8ab))throw new Error(_0x3e5a80[_0x34395c(0x121)]);const _0x47bf28=this[_0x34395c(0x197)](_0x3da8ab),_0x524f46=await this[_0x34395c(0x1a0)](_0x47bf28,_0x3da8ab,_0x29e9ef);return logger['debug'](_0x34395c(0x125)+_0x524f46),_0x524f46;}catch(_0x32b2ad){logger[_0x34395c(0x100)](_0x34395c(0x15f)+util['format'](_0x32b2ad));}return null;}static async[a68_0x450786(0x1a0)](_0x2b8d7e,_0x5e9cf6,_0x2067d2){const _0x2d60be=a68_0x450786,_0xcef67c={'MMpUA':function(_0x48d0a9){return _0x48d0a9();},'pEnJz':function(_0x315b11,_0x445ba3){return _0x315b11(_0x445ba3);},'zxsTG':function(_0x2934ee,_0x3a577d,_0x8ed07b){return _0x2934ee(_0x3a577d,_0x8ed07b);},'CTzPb':_0x2d60be(0x15c),'lIGlH':_0x2d60be(0x188),'RxiUp':function(_0x3e8762,_0x3e761e,_0x15f312){return _0x3e8762(_0x3e761e,_0x15f312);}};PerformanceTester[_0x2d60be(0x12d)](PerformanceEvents[_0x2d60be(0x173)]),logger[_0x2d60be(0x16e)](_0x2d60be(0x151)+_0x2b8d7e);const _0x4edf7c=_0xcef67c[_0x2d60be(0x120)](getHostInfo),_0x519350={'sdk_version':CLIUtils['getSdkVersion'](),'os':_0x4edf7c['platform'],'os_arch':_0x4edf7c['arch'],'cli_version':'0','sdk_language':this[_0x2d60be(0x14d)]()};!_0xcef67c['pEnJz'](isNullOrEmpty,_0x2b8d7e)&&(_0x519350[_0x2d60be(0x1b3)]=await this[_0x2d60be(0x139)](_0x2b8d7e+_0x2d60be(0x111)));const _0x40e796=await this[_0x2d60be(0x169)](_0x519350,_0x2067d2);process[_0x2d60be(0x1b4)][_0x2d60be(0x1d9)]&&(logger[_0x2d60be(0x16e)]('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process[_0x2d60be(0x1b4)][_0x2d60be(0x1d9)]),_0x40e796['data'][_0x2d60be(0x188)]=process[_0x2d60be(0x1b4)]['BROWSERSTACK_BINARY_URL']);if(_0xcef67c['zxsTG'](nestedKeyValue,_0x40e796,[_0xcef67c[_0x2d60be(0x17d)],_0xcef67c[_0x2d60be(0x18d)]])){logger[_0x2d60be(0x100)](_0x2d60be(0x1d5)+_0x519350[_0x2d60be(0x1b3)]);if(!_0xcef67c[_0x2d60be(0x109)](isNullOrEmpty,_0x2b8d7e)&&this[_0x2d60be(0x1d4)](_0x2b8d7e))return logger[_0x2d60be(0x159)](_0x2d60be(0x189)+_0x2b8d7e),PerformanceTester[_0x2d60be(0x161)](PerformanceEvents[_0x2d60be(0x173)]),_0x2b8d7e;const _0x21c580=await this[_0x2d60be(0x150)](_0xcef67c[_0x2d60be(0x128)](nestedKeyValue,_0x40e796,[_0xcef67c['CTzPb'],_0xcef67c[_0x2d60be(0x18d)]]),_0x5e9cf6);return PerformanceTester[_0x2d60be(0x161)](PerformanceEvents[_0x2d60be(0x173)]),_0x21c580;}return PerformanceTester[_0x2d60be(0x161)](PerformanceEvents[_0x2d60be(0x173)]),_0x2b8d7e;}static[a68_0x450786(0x114)](){const _0x3fa149=a68_0x450786,_0x3d1a9f={'XfJkd':function(_0x4fbfd2,_0x18c162){return _0x4fbfd2(_0x18c162);},'cuCgo':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','sMIHe':_0x3fa149(0x1b8)},_0x1ed07e=this[_0x3fa149(0x1b1)]();try{if(_0x3d1a9f[_0x3fa149(0x176)](isNullOrEmpty,_0x1ed07e))throw new Error(_0x3d1a9f[_0x3fa149(0x14f)]);const _0x30b070=path['join'](_0x1ed07e,_0x3d1a9f[_0x3fa149(0x187)]);return!fs[_0x3fa149(0x14a)](_0x30b070)&&_0x3d1a9f[_0x3fa149(0x176)](createDir,_0x30b070),_0x30b070;}catch(_0x4e60cb){logger['debug'](_0x3fa149(0x15b)+util[_0x3fa149(0x129)](_0x4e60cb));}}static[a68_0x450786(0x1b1)](){const _0x31ea79=a68_0x450786,_0xcfad57={'preCD':'.browserstack','CddLb':function(_0x35fa40,_0x174da5){return _0x35fa40(_0x174da5);},'GIXNQ':function(_0x3f86d4,_0x200ff0){return _0x3f86d4(_0x200ff0);},'imxcL':function(_0x9a81ba,_0x1669e3){return _0x9a81ba(_0x1669e3);},'TxoaG':function(_0x3c3ec7,_0x282802){return _0x3c3ec7(_0x282802);},'tcxTA':function(_0x32c871,_0x23224f){return _0x32c871(_0x23224f);},'UkltM':function(_0x539a37,_0xa2637f){return _0x539a37(_0xa2637f);}},_0x2c6c34=[process['env'][_0x31ea79(0x18a)],path['join'](os['homedir'](),_0xcfad57[_0x31ea79(0x163)]),path['join'](os['tmpdir'](),_0xcfad57[_0x31ea79(0x163)])];for(const _0x382b2d of _0x2c6c34){if(_0xcfad57[_0x31ea79(0x1c9)](isNullOrEmpty,_0x382b2d))continue;try{if(fs[_0x31ea79(0x14a)](_0x382b2d)){logger['debug'](_0x31ea79(0x149)+_0x382b2d+_0x31ea79(0x195));if(!_0xcfad57[_0x31ea79(0x15a)](isModifiable,_0x382b2d)){logger[_0x31ea79(0x100)](_0x31ea79(0x130)+_0x382b2d);const _0x2fe7c1=_0xcfad57['CddLb'](setReadWriteExecuteAccess,_0x382b2d);if(!_0xcfad57[_0x31ea79(0x1bd)](isTrue,_0x2fe7c1)){logger['warn'](_0x31ea79(0x13b)+_0x382b2d);continue;}}}else{logger[_0x31ea79(0x100)](_0x31ea79(0x162)+_0x382b2d),_0xcfad57['TxoaG'](createDir,_0x382b2d),logger[_0x31ea79(0x100)](_0x31ea79(0x130)+_0x382b2d);const _0x492ff4=_0xcfad57['tcxTA'](setReadWriteExecuteAccess,_0x382b2d);!_0xcfad57[_0x31ea79(0x13c)](isTrue,_0x492ff4)&&logger[_0x31ea79(0x159)](_0x31ea79(0x13b)+_0x382b2d);}return _0x382b2d;}catch(_0x4dd0ac){logger['error'](_0x31ea79(0x196)+util[_0x31ea79(0x129)](_0x4dd0ac));}}return null;}static[a68_0x450786(0x197)](_0x12df40){const _0x2f3709=a68_0x450786,_0x151776={};_0x151776[_0x2f3709(0x103)]=function(_0x3e5701,_0x154485){return _0x3e5701>_0x154485;},_0x151776[_0x2f3709(0x170)]=function(_0x2d2321,_0x38b212){return _0x2d2321>_0x38b212;};const _0x515fdc=_0x151776;try{if(!fs[_0x2f3709(0x14a)](_0x12df40)||!fs[_0x2f3709(0x172)](_0x12df40)[_0x2f3709(0x19b)]())return'';const _0x426f44=fs[_0x2f3709(0x153)](_0x12df40)['map'](_0x2ac655=>path[_0x2f3709(0x1a6)](_0x12df40,_0x2ac655))[_0x2f3709(0x110)](_0x14596e=>fs['statSync'](_0x14596e)['isFile']()&&path[_0x2f3709(0x127)](_0x14596e)['startsWith'](_0x2f3709(0x14b)));if(_0x515fdc[_0x2f3709(0x170)](_0x426f44[_0x2f3709(0x1dd)],0x0)){const _0x3cc85e=_0x426f44['map'](_0x3cc01f=>({'filePath':_0x3cc01f,'mtime':fs['statSync'](_0x3cc01f)[_0x2f3709(0x13d)]}))['reduce']((_0x1bbe50,_0x47f184)=>{const _0x5854ce=_0x2f3709;if(!_0x1bbe50||!_0x1bbe50['mtime'])return _0x47f184;if(_0x515fdc[_0x5854ce(0x103)](_0x47f184[_0x5854ce(0x13d)],_0x1bbe50['mtime']))return _0x47f184;return _0x1bbe50;},{});return _0x3cc85e?_0x3cc85e['filePath']:'';}return'';}catch(_0x2c78ed){return logger[_0x2f3709(0x146)](_0x2f3709(0x1bc)+util[_0x2f3709(0x129)](_0x2c78ed)),'';}}static ['requestToUpdateCLI']=async(_0xc97c54,_0x5d41f6)=>{const _0x3e0f55=a68_0x450786,_0x457770={'JmZrU':function(_0x3dba3b,_0x461466,_0x42c7a4,_0x573d96,_0x29cfd9){return _0x3dba3b(_0x461466,_0x42c7a4,_0x573d96,_0x29cfd9);},'Ukffa':_0x3e0f55(0x10a)},_0x30baa8={};_0x30baa8['qs']=_0xc97c54;const _0x37db16=await _0x457770['JmZrU'](nodeRequest,_0x457770['Ukffa'],UPDATED_CLI_ENDPOINT,_0x30baa8,_0x5d41f6);return logger[_0x3e0f55(0x100)](_0x3e0f55(0x11c)+JSON['stringify'](_0x37db16)),_0x37db16;};static[a68_0x450786(0x1d4)](_0x4c3c67){const _0x252f08=a68_0x450786;try{const _0x298f89=fs[_0x252f08(0x117)](_0x4c3c67,'r+');return fs[_0x252f08(0x15e)](_0x298f89),![];}catch(_0x19ec57){if(BINARY_BUSY_ERROR_CODES[_0x252f08(0x143)](_0x19ec57[_0x252f08(0x178)]))return logger[_0x252f08(0x100)](_0x252f08(0x116)+_0x4c3c67),!![];return logger[_0x252f08(0x100)](_0x252f08(0x1b2)+_0x19ec57['message']),![];}}static[a68_0x450786(0x139)](_0x188092,_0x5c9528=''){const _0x3e8241=a68_0x450786,_0x48cf08={'fAseB':function(_0x56ec31,_0xe83367){return _0x56ec31(_0xe83367);},'UjeJv':_0x3e8241(0x186),'Yggmx':'version','XjXEv':function(_0x4cdd23,_0x2142d0){return _0x4cdd23(_0x2142d0);},'bckZm':function(_0x493308,_0x3ba0d0,_0x1a3d43,_0x37af9a){return _0x493308(_0x3ba0d0,_0x1a3d43,_0x37af9a);},'yFqiC':_0x3e8241(0x146)};return new Promise((_0x313df6,_0x1433b9)=>{const _0xe011df=_0x3e8241,_0x183100={'XOlWP':_0x48cf08['Yggmx'],'ROhtk':function(_0x4ea3e0,_0x184bd9){const _0x49ea3a=a68_0x49d1;return _0x48cf08[_0x49ea3a(0x1bb)](_0x4ea3e0,_0x184bd9);},'oJEfz':_0x48cf08['UjeJv'],'zYrzT':function(_0x59e9f5,_0x201591){const _0x110ac6=a68_0x49d1;return _0x48cf08[_0x110ac6(0x119)](_0x59e9f5,_0x201591);}},_0x48cac4={};_0x48cac4[_0xe011df(0x17a)]=_0x5c9528,_0x48cac4[_0xe011df(0x141)]=0x1388;const _0x437c22=_0x48cf08['bckZm'](exec,_0x188092,_0x48cac4,(_0x23a14a,_0x13192b,_0x475c23)=>{const _0x366f63=_0xe011df;if(_0x23a14a){if(_0x188092[_0x366f63(0x143)](_0x183100[_0x366f63(0x185)])&&(_0x13192b[_0x366f63(0x165)]()||_0x475c23[_0x366f63(0x165)]())){const _0x18bb94=_0x13192b[_0x366f63(0x165)]()||_0x475c23[_0x366f63(0x165)]();logger[_0x366f63(0x100)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x18bb94+'\x22'),_0x183100[_0x366f63(0x107)](_0x313df6,_0x18bb94);}else _0x183100[_0x366f63(0x107)](_0x313df6,_0x475c23[_0x366f63(0x165)]()||_0x183100[_0x366f63(0x1a2)]);}else logger['debug'](_0x366f63(0x1d0)+_0x13192b[_0x366f63(0x165)]()+'\x22'),_0x183100[_0x366f63(0x1ce)](_0x313df6,_0x13192b[_0x366f63(0x165)]());});_0x437c22['on'](_0x48cf08[_0xe011df(0x135)],()=>{const _0x54c36c=_0xe011df;_0x48cf08[_0x54c36c(0x119)](_0x313df6,_0x48cf08[_0x54c36c(0x138)]);});});}static [a68_0x450786(0x150)]=async(_0x11e101,_0x12a2b4)=>{const _0x5a58d2=a68_0x450786,_0x5517b3={'kRsjg':_0x5a58d2(0x19e),'MYymP':function(_0x4fdebc,_0x5bd89c){return _0x4fdebc(_0x5bd89c);},'iRYEH':function(_0x45eb28,_0x5e89b9){return _0x45eb28(_0x5e89b9);},'SZcCX':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','CUfUu':'error'};PerformanceTester[_0x5a58d2(0x12d)](PerformanceEvents[_0x5a58d2(0x16b)]),logger[_0x5a58d2(0x100)](_0x5a58d2(0x1c7)+_0x11e101);try{const _0x26b5df=url[_0x5a58d2(0x181)](_0x11e101),_0xffa9c2=path[_0x5a58d2(0x1a6)](_0x12a2b4,'downloaded_file_'+process[_0x5a58d2(0x113)]+_0x5a58d2(0x14e)),_0x151123=fs[_0x5a58d2(0x1de)](_0xffa9c2);return new Promise((_0x519b67,_0x412809)=>{const _0x44a74b=_0x5a58d2,_0x7ef2fa={'KLRVB':_0x5517b3['kRsjg'],'yfLyb':function(_0x3d6a4a,_0xcd5c1c){const _0x12ddba=a68_0x49d1;return _0x5517b3[_0x12ddba(0x123)](_0x3d6a4a,_0xcd5c1c);},'mJnvD':function(_0x3192a9,_0x49d81d){const _0x1b02b3=a68_0x49d1;return _0x5517b3[_0x1b02b3(0x123)](_0x3192a9,_0x49d81d);},'qpoIU':function(_0x45b5eb,_0x1b9533){const _0x4d3b18=a68_0x49d1;return _0x5517b3[_0x4d3b18(0x1a1)](_0x45b5eb,_0x1b9533);},'XWQAB':_0x5517b3['SZcCX'],'UATvQ':_0x5517b3[_0x44a74b(0x194)],'Wktcx':function(_0x413b51,_0x2f64ef){return _0x5517b3['MYymP'](_0x413b51,_0x2f64ef);}};https[_0x44a74b(0x158)](_0x26b5df,function(_0x55e90){const _0x26ec75=_0x44a74b,_0x2d4c8b={'ELccN':_0x7ef2fa[_0x26ec75(0x118)],'vChQY':function(_0x5e293f,_0x356de6){const _0x3c82f2=_0x26ec75;return _0x7ef2fa[_0x3c82f2(0x166)](_0x5e293f,_0x356de6);}},_0x65139b=null;_0x55e90[_0x26ec75(0x13f)](_0x151123),_0x55e90['on'](_0x7ef2fa[_0x26ec75(0x1aa)],function(_0x1c0b08){const _0x4842f5=_0x26ec75;logger['error'](util[_0x4842f5(0x129)](_0x2d4c8b[_0x4842f5(0x13a)],_0x1c0b08)),PerformanceTester[_0x4842f5(0x161)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x4842f5(0x129)](_0x1c0b08)),_0x2d4c8b['vChQY'](_0x412809,_0x1c0b08);}),_0x151123['on'](_0x7ef2fa['UATvQ'],function(_0x40b340){const _0x27b4ca=_0x26ec75;logger['error'](util[_0x27b4ca(0x129)](_0x7ef2fa[_0x27b4ca(0x1a7)],_0x40b340)),PerformanceTester[_0x27b4ca(0x161)](PerformanceEvents[_0x27b4ca(0x16b)],![],util[_0x27b4ca(0x129)](_0x40b340)),_0x7ef2fa[_0x27b4ca(0x10f)](_0x412809,_0x40b340);}),CLIUtils[_0x26ec75(0x167)](_0x151123,_0x65139b,_0xffa9c2,_0x12a2b4,_0x2851d6=>{const _0x35b95c=_0x26ec75;PerformanceTester[_0x35b95c(0x161)](PerformanceEvents[_0x35b95c(0x16b)]),_0x7ef2fa[_0x35b95c(0x166)](_0x519b67,_0x2851d6);},_0x526f32=>{const _0xfcc8d=_0x26ec75;PerformanceTester[_0xfcc8d(0x161)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x526f32)),_0x7ef2fa[_0xfcc8d(0x1ad)](_0x412809,_0x526f32);});})['on'](_0x5517b3['CUfUu'],function(_0x52d5db){const _0x1de726=_0x44a74b;logger[_0x1de726(0x146)](_0x1de726(0x1bf)+util[_0x1de726(0x129)](_0x52d5db)),PerformanceTester['end'](PerformanceEvents[_0x1de726(0x16b)],![],util['format'](_0x52d5db)),_0x7ef2fa[_0x1de726(0x171)](_0x412809,_0x52d5db);});});}catch(_0x173c86){PerformanceTester[_0x5a58d2(0x161)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x5a58d2(0x129)](_0x173c86)),logger[_0x5a58d2(0x100)](_0x5a58d2(0x11a)+util[_0x5a58d2(0x129)](_0x173c86));}};static[a68_0x450786(0x167)](_0x27c1d9,_0x4787f9,_0x3a47a9,_0x363aee,_0x421fef,_0x311bf6){const _0x246a1b=a68_0x450786,_0xa29bdd={'ZxLZT':function(_0x13c395,_0x1a4459){return _0x13c395(_0x1a4459);},'djdPw':function(_0x59b3d7,_0x1e8011){return _0x59b3d7(_0x1e8011);},'jDKOg':_0x246a1b(0x1d1),'mVVVt':'error','bZjMF':_0x246a1b(0x161),'sumjx':_0x246a1b(0x124),'gWkmw':function(_0x32c3f8,_0x543fb7){return _0x32c3f8!==_0x543fb7;},'DFuhV':function(_0x3878af,_0x3a0e89){return _0x3878af(_0x3a0e89);},'Wtjch':_0x246a1b(0x1da),'TJdno':_0x246a1b(0x1d8)};_0x27c1d9['on'](_0xa29bdd[_0x246a1b(0x180)],function(){const _0x1adf5d=_0x246a1b,_0x2e32b8={'qSstn':function(_0x1b04b7,_0x15dc6d){const _0x480d4d=a68_0x49d1;return _0xa29bdd[_0x480d4d(0x191)](_0x1b04b7,_0x15dc6d);},'jlsVj':_0xa29bdd[_0x1adf5d(0x180)],'QzfpT':_0xa29bdd[_0x1adf5d(0x11b)],'yHIFL':function(_0x3c9369,_0x2bbe28){const _0x34620a=_0x1adf5d;return _0xa29bdd[_0x34620a(0x1b0)](_0x3c9369,_0x2bbe28);},'Eplsi':function(_0x40eb7f,_0xc82b87){const _0x2c101f=_0x1adf5d;return _0xa29bdd[_0x2c101f(0x199)](_0x40eb7f,_0xc82b87);},'zPqOH':function(_0x484ab6,_0x5731c8){const _0x21b088=_0x1adf5d;return _0xa29bdd[_0x21b088(0x16a)](_0x484ab6,_0x5731c8);},'KXYlK':_0xa29bdd[_0x1adf5d(0x182)],'pYbuV':_0xa29bdd[_0x1adf5d(0x145)],'blTjW':_0xa29bdd[_0x1adf5d(0x1b9)]},_0xd61ff1={};_0xd61ff1[_0x1adf5d(0x147)]=!![],yauzl[_0x1adf5d(0x148)](_0x3a47a9,_0xd61ff1,function(_0x1675cd,_0x5bd867){const _0x29a079=_0x1adf5d,_0x46c6ad={'QPuLf':function(_0x222089,_0x3cc5c3){return _0xa29bdd['ZxLZT'](_0x222089,_0x3cc5c3);},'NiLYU':function(_0x2686f0,_0x27991b){return _0xa29bdd['djdPw'](_0x2686f0,_0x27991b);}};if(_0x1675cd){_0xa29bdd['ZxLZT'](_0x311bf6,_0x1675cd);return;}_0x5bd867[_0x29a079(0x17e)](),_0x5bd867['on'](_0xa29bdd[_0x29a079(0x1d6)],_0x2c5988=>{const _0x53fca7=_0x29a079,_0x309c98={'Cfhss':function(_0x392b02,_0x2774a1){return _0x2e32b8['qSstn'](_0x392b02,_0x2774a1);},'itdvO':function(_0x491d6c,_0x3fb261){return _0x2e32b8['qSstn'](_0x491d6c,_0x3fb261);},'qgnWM':_0x2e32b8[_0x53fca7(0x192)],'ONwXI':_0x2e32b8[_0x53fca7(0x132)]};if(/\/$/['test'](_0x2c5988['fileName'])){_0x5bd867[_0x53fca7(0x17e)]();return;}!_0x4787f9&&(_0x4787f9=_0x2c5988['fileName']);if(_0x2e32b8['yHIFL'](_0x2c5988[_0x53fca7(0x190)],_0x4787f9))_0x5bd867['readEntry']();else{const _0x590aa1=_0x2c5988[_0x53fca7(0x190)],_0x61a121=path[_0x53fca7(0x1a6)](_0x363aee,_0x590aa1+_0x53fca7(0x174)+process['pid']);let _0x1201ac;try{_0x1201ac=fs[_0x53fca7(0x1de)](_0x61a121);}catch(_0x23ee2e){if(BINARY_BUSY_ERROR_CODES['includes'](_0x23ee2e['code'])){const _0x313b3d=path[_0x53fca7(0x1a6)](_0x363aee,_0x590aa1);if(fs[_0x53fca7(0x14a)](_0x313b3d)){logger[_0x53fca7(0x159)](_0x53fca7(0x16f)+_0x590aa1),fs[_0x53fca7(0x1ab)](_0x3a47a9,_0x4eb521=>{const _0x1baf56=_0x53fca7;_0x4eb521&&logger[_0x1baf56(0x159)](_0x1baf56(0x1c6)+_0x3a47a9);}),_0x2e32b8[_0x53fca7(0xff)](_0x421fef,_0x313b3d);return;}logger['warn']('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x590aa1);}_0x2e32b8[_0x53fca7(0x1a8)](_0x311bf6,_0x23ee2e);return;}_0x1201ac['on'](_0x2e32b8[_0x53fca7(0x13e)],_0x3cd9d2=>{const _0x43da61=_0x53fca7;if(BINARY_BUSY_ERROR_CODES['includes'](_0x3cd9d2[_0x43da61(0x178)])){const _0x33df9b=path[_0x43da61(0x1a6)](_0x363aee,_0x590aa1);_0x1201ac['close'](),fs[_0x43da61(0x14a)](_0x33df9b)?(logger[_0x43da61(0x159)]('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x3cd9d2['message']),_0x5bd867['close'](),fs[_0x43da61(0x1ab)](_0x3a47a9,_0x429588=>{const _0x505f0b=_0x43da61;_0x429588&&logger['warn'](_0x505f0b(0x1c6)+_0x3a47a9);}),_0x309c98[_0x43da61(0x11d)](_0x421fef,_0x33df9b)):(logger[_0x43da61(0x159)]('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x3cd9d2['message']),fs[_0x43da61(0x1ab)](_0x61a121,()=>{}),_0x309c98[_0x43da61(0x1a5)](_0x311bf6,_0x3cd9d2));}else fs[_0x43da61(0x1ab)](_0x61a121,()=>{}),_0x309c98[_0x43da61(0x1a5)](_0x311bf6,_0x3cd9d2);}),_0x5bd867[_0x53fca7(0x18b)](_0x2c5988,function(_0x55ac91,_0x4c2a58){const _0xc9a648=_0x53fca7;if(_0x55ac91){fs[_0xc9a648(0x1ab)](_0x61a121,()=>{}),_0x309c98[_0xc9a648(0x11d)](_0x311bf6,_0x55ac91);return;}_0x4c2a58['on'](_0x309c98[_0xc9a648(0x106)],function(){const _0x200457=_0xc9a648;_0x1201ac[_0x200457(0x161)](),_0x1201ac['on'](_0x309c98[_0x200457(0x1cd)],function(){const _0x21cf1a=_0x200457;_0x5bd867[_0x21cf1a(0x17e)]();});}),_0x4c2a58['pipe'](_0x1201ac);});}}),_0x5bd867['on'](_0xa29bdd[_0x29a079(0x182)],_0x41620a=>{_0x46c6ad['QPuLf'](_0x311bf6,_0x41620a);}),_0x5bd867[_0x29a079(0x155)](_0xa29bdd['bZjMF'],()=>{const _0x21cac7=_0x29a079,_0x471d5d={'vqvyD':function(_0x5b9952,_0xfbcc27){const _0x2394ea=a68_0x49d1;return _0x2e32b8[_0x2394ea(0x184)](_0x5b9952,_0xfbcc27);},'VfZIr':_0x2e32b8['pYbuV'],'XZukv':function(_0x2a89bc,_0x1f7bf1){const _0x547667=a68_0x49d1;return _0x2e32b8[_0x547667(0x12f)](_0x2a89bc,_0x1f7bf1);},'pdXnf':function(_0x3ebd64,_0x4104ed){const _0x35a3bf=a68_0x49d1;return _0x2e32b8[_0x35a3bf(0x12f)](_0x3ebd64,_0x4104ed);}};fs['unlink'](_0x3a47a9,_0x1fafed=>{const _0x58d211=a68_0x49d1;_0x1fafed&&logger[_0x58d211(0x159)](_0x58d211(0x1c6)+_0x3a47a9);});const _0x30df92=path[_0x21cac7(0x1a6)](_0x363aee,_0x4787f9+_0x21cac7(0x174)+process[_0x21cac7(0x113)]),_0x16862d=path['join'](_0x363aee,_0x4787f9);fs[_0x21cac7(0x108)](_0x30df92,_0x2e32b8[_0x21cac7(0x101)],function(_0x5dc9ed){const _0x42f9ef=_0x21cac7;if(_0x5dc9ed){_0x5bd867[_0x42f9ef(0x124)](),fs[_0x42f9ef(0x1ab)](_0x30df92,()=>{}),_0x46c6ad[_0x42f9ef(0x104)](_0x311bf6,_0x5dc9ed);return;}fs[_0x42f9ef(0x134)](_0x30df92,_0x16862d,function(_0x547eb1){const _0x1cc55c=_0x42f9ef;if(_0x547eb1){if(_0x471d5d['vqvyD'](_0x547eb1['code'],_0x471d5d[_0x1cc55c(0x10e)])){_0x5bd867[_0x1cc55c(0x124)](),fs[_0x1cc55c(0x1ab)](_0x30df92,()=>{}),_0x471d5d[_0x1cc55c(0x131)](_0x311bf6,_0x547eb1);return;}logger[_0x1cc55c(0x159)]('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x547eb1[_0x1cc55c(0x18f)]);try{fs[_0x1cc55c(0x164)](_0x30df92,_0x16862d);}catch(_0x3c4348){_0x5bd867['close'](),fs['unlink'](_0x30df92,()=>{}),_0x471d5d[_0x1cc55c(0x1ae)](_0x311bf6,_0x3c4348);return;}fs[_0x1cc55c(0x1ab)](_0x30df92,_0x5e86b3=>{const _0xfc0456=_0x1cc55c;_0x5e86b3&&logger[_0xfc0456(0x159)](_0xfc0456(0x183)+_0x5e86b3[_0xfc0456(0x18f)]);});}_0x5bd867[_0x1cc55c(0x124)](),_0x471d5d['XZukv'](_0x421fef,_0x16862d);});});});});});}static[a68_0x450786(0x18c)](){const _0x4142f1=a68_0x450786;if(process[_0x4142f1(0x1b4)][_0x4142f1(0x19a)])return JSON[_0x4142f1(0x181)](process['env'][_0x4142f1(0x19a)]);return this[_0x4142f1(0x12a)];}static[a68_0x450786(0x1b6)](){const _0x48bd5d=a68_0x450786;if(process[_0x48bd5d(0x1b4)][_0x48bd5d(0x112)])return JSON[_0x48bd5d(0x181)](process[_0x48bd5d(0x1b4)][_0x48bd5d(0x112)]);return this[_0x48bd5d(0x175)];}static[a68_0x450786(0x15d)](_0x942ded,_0x4f69d4){const _0x25d719=a68_0x450786,_0x27395f={'giJOR':'4|3|1|2|0','HhoYy':function(_0x18f7ab,_0x4ca3d6){return _0x18f7ab(_0x4ca3d6);},'vdngM':function(_0x389cfb,_0x2680fa){return _0x389cfb(_0x2680fa);},'HKIlI':function(_0x40398e,_0x2f3d03){return _0x40398e||_0x2f3d03;}},_0x9672fd=_0x27395f[_0x25d719(0x10b)][_0x25d719(0x18e)]('|');let _0x2253d6=0x0;while(!![]){switch(_0x9672fd[_0x2253d6++]){case'0':process[_0x25d719(0x1b4)][_0x25d719(0x19a)]=JSON['stringify'](this['testFrameworkDetail']);continue;case'1':this['automationFrameworkDetail']={'name':_0x4f69d4,'version':_0x27395f[_0x25d719(0x136)](getFrameworkVersion,_0x4f69d4)};continue;case'2':process[_0x25d719(0x1b4)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON[_0x25d719(0x154)](this['automationFrameworkDetail']);continue;case'3':this[_0x25d719(0x12a)]={'name':_0x942ded,'version':{[_0x942ded]:_0x27395f[_0x25d719(0x198)](getFrameworkVersion,_0x942ded)}};continue;case'4':_0x27395f[_0x25d719(0x126)](!_0x942ded,!_0x4f69d4)&&logger[_0x25d719(0x100)](_0x25d719(0x12e)+_0x942ded+_0x25d719(0x11e)+_0x4f69d4);continue;}break;}}static['getHookRegistryKey'](_0x1f15ee,_0x3f2614){return _0x1f15ee+':'+_0x3f2614;}static[a68_0x450786(0x17f)](){const _0x3a06c8=a68_0x450786;return process[_0x3a06c8(0x113)]+':'+threadId;}static['shouldSkipSessionName'](_0x42a26a){const _0x22fe3b=a68_0x450786;if(_0x42a26a[_0x22fe3b(0x179)]&&_0x42a26a[_0x22fe3b(0x179)][_0x22fe3b(0x1db)])return!![];return![];}static['shouldSkipSessionStatus'](_0x30685e){const _0xeaeca9=a68_0x450786;if(_0x30685e[_0xeaeca9(0x179)]&&_0x30685e['testContextOptions'][_0xeaeca9(0x1a4)])return!![];return![];}static[a68_0x450786(0x1b5)](_0xfad4f0){const _0x1d638b=a68_0x450786,_0x14e465=new RegExp(TestFrameworkConstants[_0x1d638b(0x177)]);return _0x14e465[_0x1d638b(0x1c8)](_0xfad4f0);}static[a68_0x450786(0x140)](_0x328283,_0x1898a3){const _0x46df23=a68_0x450786,_0x4b264b={};_0x4b264b['aRHjs']=function(_0x1e4d6a,_0x4aab02){return _0x1e4d6a!==_0x4aab02;},_0x4b264b[_0x46df23(0x1af)]=function(_0x18ef90,_0x5188e7){return _0x18ef90===_0x5188e7;},_0x4b264b[_0x46df23(0x14c)]=_0x46df23(0x16c);const _0x21f875=_0x4b264b;for(const [_0x3d806c,_0x516185]of Object[_0x46df23(0x1c2)](_0x1898a3)){if(_0x21f875[_0x46df23(0x1dc)](_0x516185,null)&&_0x21f875[_0x46df23(0x1af)](typeof _0x516185,_0x21f875[_0x46df23(0x14c)])&&!Array['isArray'](_0x516185))_0x328283[_0x3d806c]=this[_0x46df23(0x140)](_0x328283[_0x3d806c]||{},_0x516185);else Array[_0x46df23(0x157)](_0x516185)?_0x328283[_0x3d806c]=(_0x328283[_0x3d806c]||[])[_0x46df23(0x1ba)](_0x516185):_0x328283[_0x3d806c]=_0x516185;}return _0x328283;}}module['exports']=CLIUtils;function a68_0x4d01(){const _0x41ba7d=['\x20version','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','pid','getCliDir','../../../package.json','Binary\x20is\x20busy:\x20','openSync','XWQAB','fAseB','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','bZjMF','response\x20','Cfhss',',\x20automationFramework=','4VsQUsn','MMpUA','piWwJ','20639448XaiOpR','MYymP','close','Resolved\x20binary\x20path:\x20','HKIlI','basename','RxiUp','format','testFrameworkDetail','setupCliPath','../utils/apiUtilityMethods.js','start','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','qSstn','Setting\x20required\x20permissions\x20to\x20','XZukv','QzfpT','hVXxj','rename','yFqiC','HhoYy','1240cMqbIZ','UjeJv','runShellCommand','ELccN','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','UkltM','mtime','KXYlK','pipe','mergeObject','timeout','listen','includes','2nMfrYj','Wtjch','error','lazyEntries','open','Folder\x20','existsSync','binary-','mTwgh','getSdkLanguage','.zip','cuCgo','downloadLatestBinary','Current\x20CLI\x20Path\x20Found:\x20','yauzl','readdirSync','stringify','once','uNGtG','isArray','get','warn','GIXNQ','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','data','setFrameworkDetail','closeSync','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','../../helpers/performance/performance-tester.js','end','Folder\x20does\x20not\x20exist:\x20','preCD','copyFileSync','trim','mJnvD','downloadFileStream','path','requestToUpdateCLI','DFuhV','SDK_CLI_DOWNLOAD','object','9958257wdCsuL','info','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','gUDDN','Wktcx','statSync','SDK_CLI_CHECK_UPDATE','.tmp.','automationFrameworkDetail','XfJkd','HOOK_REGEX','code','testContextOptions','cwd','../utils/constants','worker_threads','CTzPb','readEntry','getCurrentInstanceName','sumjx','parse','mVVVt','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','yHIFL','XOlWP','SHELL_EXECUTE_ERROR','sMIHe','url','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','BROWSERSTACK_FILES_DIR','openReadStream','getTestFrameworkDetail','lIGlH','split','message','fileName','ZxLZT','jlsVj','../../helpers/classLogger.js','CUfUu','\x20already\x20exists','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','getExistingCliPath','vdngM','djdPw','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','isDirectory','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','3056061eojkFn','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','../../helpers/helper','checkAndUpdateCli','iRYEH','oJEfz','BROWSERSTACK_CLI_ENV','skipSessionStatus','itdvO','join','KLRVB','zPqOH','817487kOhfLN','UATvQ','unlink','Development\x20Cli\x20Path:\x20','qpoIU','pdXnf','DwVVS','gWkmw','getWritableDir','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','cli_version','env','matchHookRegex','getAutomationFrameworkDetail','6145OWlUgj','cli','TJdno','concat','XjXEv','Error\x20while\x20reading\x20CLI\x20path:\x20','imxcL','rHKKl','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','ymhIq','node','entries','getCLIParamsForDevEnv','getSdkVersion','SDK_CLI_BIN_PATH','Failed\x20to\x20delete\x20zip\x20file:\x20','Downloading\x20SDK\x20binary\x20from:\x20','test','CddLb','507228mpdewf','.sock','./state/hookState.js','qgnWM','zYrzT','qGLEd','Resolving\x20with\x20stdout:\x20\x22','entry','../../helpers/performance/constants','child_process','isBinaryBusy','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','jDKOg','version','0755','BROWSERSTACK_BINARY_URL','EXDEV','skipSessionName','aRHjs','length','createWriteStream','24JeZkjJ','Eplsi','debug','blTjW','10LuiNYd','bajXQ','NiLYU','29869zdvJju','ONwXI','ROhtk','chmod','pEnJz','GET','giJOR','../../helpers/test-observability/utils.js','follow-redirects','VfZIr','yfLyb','filter'];a68_0x4d01=function(){return _0x41ba7d;};return a68_0x4d01();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a69_0x553d62=a69_0x5f38;(function(_0x508790,_0x56b6f4){const _0x3178ea=a69_0x5f38,_0x436f2d=_0x508790();while(!![]){try{const _0x4f287b=-parseInt(_0x3178ea(0xc3))/0x1+-parseInt(_0x3178ea(0xcb))/0x2+-parseInt(_0x3178ea(0xc0))/0x3+parseInt(_0x3178ea(0xda))/0x4*(-parseInt(_0x3178ea(0xc9))/0x5)+-parseInt(_0x3178ea(0xbe))/0x6*(-parseInt(_0x3178ea(0xad))/0x7)+-parseInt(_0x3178ea(0xb5))/0x8*(parseInt(_0x3178ea(0xee))/0x9)+parseInt(_0x3178ea(0xf9))/0xa*(parseInt(_0x3178ea(0xa4))/0xb);if(_0x4f287b===_0x56b6f4)break;else _0x436f2d['push'](_0x436f2d['shift']());}catch(_0x442e57){_0x436f2d['push'](_0x436f2d['shift']());}}}(a69_0xfefe,0x32435));function a69_0x5f38(_0xb16d19,_0x5390d0){const _0xfefe89=a69_0xfefe();return a69_0x5f38=function(_0x5f38b9,_0x57eef6){_0x5f38b9=_0x5f38b9-0xa4;let _0x4b5613=_0xfefe89[_0x5f38b9];return _0x4b5613;},a69_0x5f38(_0xb16d19,_0x5390d0);}function a69_0xfefe(){const _0x225627=['getTestIdentifierFromTestInfo','./TestInfo','buildLevelTags','field_type','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','name','toObject','MODULE_NAME','stringify','includes','KgzHN','getTestDetails','getTestFrameworkDetail','732392mWmsVd','xbtxm','isRunning','./modules/testhubModule','QkunW','getTrackedInstance',',\x20values=',':jest-','getTestLevelTags','Custom\x20tag\x20key\x20cannot\x20be\x20empty','./state/hookState','../../helpers/helper','getTestFramework','gmrlh','addMultipleEntries','../../helpers/classLogger','testInfo','KEY_TEST_ID','__workerDetails','modules','1026567ZqvNok','testLevelTags','getTestUUID','saxQK','clearTags','parseCommaSeparatedValues','kSCcP','values','KEY_CUSTOM_TAGS','toLowerCase','Custom\x20tag\x20value\x20cannot\x20be\x20empty','10aMyRFK','currentTest','jest','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','14658138XLtCLU','qrGCk','ThPCR','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','./modules/playwrightDriverModule','axOcI','DGkzh','\x20with\x20values=','__jestCurrentTestIdentifier','14AmKShe','./state/testFrameworkState','CustomTagManager','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','POST','string','debug','[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key=','16cWiTeH','setTestDetails','retry','IUzNv','buildHashedId','getBuildLevelTags','./browserstackCLI','mlHjV','resolveInstance','1119432qNxbVH','OhCZy','1068411nKRNzA','SpERt','PKYMs','352843MvGsBk','getInstance','\x20with\x20new\x20values=','./cliUtils','./framework/constants/testFrameworkConstants','getState','5SkdCVM','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','759242tumwKS','exports'];a69_0xfefe=function(){return _0x225627;};return a69_0xfefe();}const BrowserstackCLI=require(a69_0x553d62(0xbb)),helper=require(a69_0x553d62(0xe5)),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a69_0x553d62(0xc7)),PlaywrightDriverModule=require(a69_0x553d62(0xa8)),TestInfo=require(a69_0x553d62(0xce)),TestHubModule=require(a69_0x553d62(0xdd)),{createClassLogger}=require(a69_0x553d62(0xe9)),logger=createClassLogger(a69_0x553d62(0xaf));class CustomTagManager{static [a69_0x553d62(0xcf)]={};static ['testLevelTags']={};static['setCustomTags'](_0x1253dc,_0x1d22dc,_0x40eecf=![]){const _0x2c743e=a69_0x553d62,_0x10f580={'IUzNv':function(_0x244d85,_0x14e45a){return _0x244d85!==_0x14e45a;},'xbtxm':_0x2c743e(0xb2),'ThPCR':'Custom\x20tag\x20key\x20must\x20be\x20a\x20string','SpERt':_0x2c743e(0xa7),'QkunW':function(_0x3b7537,_0x343375){return _0x3b7537===_0x343375;},'gmrlh':_0x2c743e(0xe3),'OhCZy':function(_0x5f500d,_0x3887d3){return _0x5f500d===_0x3887d3;},'nMuBQ':_0x2c743e(0xf8),'axOcI':'multi_dropdown','buGvN':_0x2c743e(0xe1),'saxQK':function(_0x482c73,_0x123e64){return _0x482c73(_0x123e64);},'kSCcP':_0x2c743e(0xc6),'qrGCk':_0x2c743e(0xfb),'fJFCK':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','ijbmw':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','DGkzh':_0x2c743e(0xae),'PKYMs':function(_0xeecaf7,_0x1cd4a6){return _0xeecaf7(_0x1cd4a6);},'KgzHN':_0x2c743e(0xe4),'mlHjV':_0x2c743e(0xd1)};if(_0x10f580[_0x2c743e(0xb8)](typeof _0x1253dc,_0x10f580[_0x2c743e(0xdb)]))throw new Error(_0x10f580[_0x2c743e(0xa6)]);if(_0x10f580['IUzNv'](typeof _0x1d22dc,_0x10f580[_0x2c743e(0xdb)]))throw new Error(_0x10f580[_0x2c743e(0xc1)]);if(_0x10f580[_0x2c743e(0xde)](_0x1253dc['trim'](),''))throw new Error(_0x10f580[_0x2c743e(0xe7)]);if(_0x10f580[_0x2c743e(0xbf)](_0x1d22dc['trim'](),''))throw new Error(_0x10f580['nMuBQ']);const _0x502e64=helper[_0x2c743e(0xf3)](_0x1d22dc);if(_0x40eecf){const _0x1f9106=BrowserstackCLI['getInstance']()[_0x2c743e(0xed)][TestHubModule[_0x2c743e(0xd4)]];if(_0x1f9106){const _0x3bfcd5=_0x1f9106?.['testhubConfig']?.[_0x2c743e(0xd3)]()?.[_0x2c743e(0xb9)];TestInfo[_0x2c743e(0xf0)](_0x3bfcd5);const _0x4a7046=TestInfo[_0x2c743e(0xd8)](_0x3bfcd5),_0x5be220=_0x4a7046[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};if(!_0x5be220[_0x1253dc]){const _0x230f49={};_0x230f49[_0x2c743e(0xd0)]=_0x10f580[_0x2c743e(0xa9)],_0x230f49[_0x2c743e(0xf5)]=[..._0x502e64],_0x5be220[_0x1253dc]=_0x230f49;}else _0x5be220[_0x1253dc][_0x2c743e(0xf5)]=[..._0x502e64];_0x4a7046[TestFrameworkConstants[_0x2c743e(0xf6)]]=_0x5be220,TestInfo['setTestDetails'](_0x3bfcd5,_0x4a7046),!this['buildLevelTags'][_0x3bfcd5]&&(this[_0x2c743e(0xcf)][_0x3bfcd5]={}),this[_0x2c743e(0xcf)][_0x3bfcd5][_0x1253dc]=[..._0x502e64];}}else{let _0x53ac91;const _0x56ae4d=global[_0x2c743e(0xac)];let _0x1b0bfa=![];if(_0x56ae4d&&_0x56ae4d[_0x2c743e(0xd6)](_0x10f580['buGvN']))_0x1b0bfa=!![],_0x53ac91=_0x56ae4d;else try{const _0x7b5967=_0x10f580[_0x2c743e(0xf1)](require,_0x10f580[_0x2c743e(0xf4)]);if(BrowserstackCLI[_0x2c743e(0xc4)]()[_0x2c743e(0xdc)]()){const _0x2c6228=_0x7b5967[_0x2c743e(0xd9)]();if(_0x10f580[_0x2c743e(0xbf)](_0x2c6228?.[_0x2c743e(0xd2)]?.[_0x2c743e(0xf7)](),_0x10f580[_0x2c743e(0xa5)])){const _0x5f36e9=AutomationFramework[_0x2c743e(0xdf)]();_0x53ac91=AutomationFramework['getState'](_0x5f36e9,PlaywrightDriverModule[_0x2c743e(0xeb)],''),_0x53ac91&&_0x53ac91[_0x2c743e(0xd6)](_0x10f580['buGvN'])&&(_0x1b0bfa=!![]);}}}catch(_0x705330){logger[_0x2c743e(0xb3)](_0x2c743e(0xb0)+_0x705330);}if(_0x1b0bfa){if(!_0x53ac91)throw new Error(_0x10f580['fJFCK']);const _0x28d794=BrowserstackCLI[_0x2c743e(0xc4)]()[_0x2c743e(0xe6)]();if(!_0x28d794)throw new Error(_0x10f580['ijbmw']);const _0x240e0b=_0x10f580[_0x2c743e(0xf1)](require,_0x10f580[_0x2c743e(0xaa)]),_0x254892=_0x10f580[_0x2c743e(0xc2)](require,_0x10f580[_0x2c743e(0xd7)]),_0xd3aa7d=_0x28d794[_0x2c743e(0xbd)](_0x240e0b['TEST'],_0x254892[_0x2c743e(0xb1)]);if(!_0xd3aa7d)throw new Error(_0x10f580[_0x2c743e(0xbc)]);const _0x10b593=_0xd3aa7d['getAllData']()['get'](_0x53ac91)||{},_0x5a5738=_0x10b593[TestFrameworkConstants[_0x2c743e(0xf6)]]||{};logger[_0x2c743e(0xb3)](_0x2c743e(0xca)+_0x53ac91+',\x20key='+_0x1253dc+_0x2c743e(0xe0)+JSON[_0x2c743e(0xd5)](_0x502e64)+',\x20existingTags='+JSON[_0x2c743e(0xd5)](_0x5a5738));if(!_0x5a5738[_0x1253dc]){const _0x51ca4f={};_0x51ca4f[_0x2c743e(0xd0)]=_0x10f580[_0x2c743e(0xa9)],_0x51ca4f[_0x2c743e(0xf5)]=[..._0x502e64],_0x5a5738[_0x1253dc]=_0x51ca4f,logger[_0x2c743e(0xb3)](_0x2c743e(0xfc)+_0x1253dc+_0x2c743e(0xab)+JSON['stringify'](_0x502e64));}else _0x5a5738[_0x1253dc][_0x2c743e(0xf5)]=[..._0x502e64],logger[_0x2c743e(0xb3)](_0x2c743e(0xb4)+_0x1253dc+_0x2c743e(0xc5)+JSON[_0x2c743e(0xd5)](_0x502e64));const _0x47c857={[TestFrameworkConstants[_0x2c743e(0xf6)]]:_0x5a5738},_0x291ec9={};_0x291ec9[_0x53ac91]=_0x47c857,_0xd3aa7d[_0x2c743e(0xe8)](_0x291ec9),logger[_0x2c743e(0xb3)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x53ac91+',\x20finalTags='+JSON['stringify'](_0x5a5738)),!this[_0x2c743e(0xef)][_0x53ac91]&&(this['testLevelTags'][_0x53ac91]={}),this['testLevelTags'][_0x53ac91][_0x1253dc]=[..._0x502e64];}else{const _0x53f2e0=global[_0x2c743e(0xec)]?.[_0x2c743e(0xfa)]?.[_0x2c743e(0xea)];if(!_0x53f2e0){const _0x417fe8=AutomationFramework[_0x2c743e(0xdf)]();_0x53ac91=AutomationFramework[_0x2c743e(0xc8)](_0x417fe8,PlaywrightDriverModule[_0x2c743e(0xeb)],'');}else _0x53ac91=TestInfo[_0x2c743e(0xcd)](_0x53f2e0,_0x53f2e0[_0x2c743e(0xb7)]);const _0x56fd81=TestInfo['getTestDetails'](_0x53ac91),_0x16caea=_0x56fd81[TestFrameworkConstants[_0x2c743e(0xf6)]]||{};if(!_0x16caea[_0x1253dc]){const _0x24c08c={};_0x24c08c[_0x2c743e(0xd0)]=_0x10f580[_0x2c743e(0xa9)],_0x24c08c[_0x2c743e(0xf5)]=[..._0x502e64],_0x16caea[_0x1253dc]=_0x24c08c;}else _0x16caea[_0x1253dc][_0x2c743e(0xf5)]=[..._0x502e64];_0x56fd81[TestFrameworkConstants[_0x2c743e(0xf6)]]=_0x16caea,TestInfo[_0x2c743e(0xb6)](_0x53ac91,_0x56fd81),!this[_0x2c743e(0xef)][_0x53ac91]&&(this[_0x2c743e(0xef)][_0x53ac91]={}),this[_0x2c743e(0xef)][_0x53ac91][_0x1253dc]=[..._0x502e64];}}}static[a69_0x553d62(0xba)](){const _0x3c6137=a69_0x553d62,_0x12a2cf={...this[_0x3c6137(0xcf)]};return _0x12a2cf;}static[a69_0x553d62(0xe2)](){const _0x4071e3=a69_0x553d62,_0x15e963={...this[_0x4071e3(0xef)]};return _0x15e963;}static[a69_0x553d62(0xf2)](){const _0x419ca7=a69_0x553d62;this[_0x419ca7(0xcf)]={},this['testLevelTags']={};}}module[a69_0x553d62(0xcc)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x1000ed=a70_0x1bf9;function a70_0x1bf9(_0x3392c5,_0x34cb68){const _0xca7a1f=a70_0xca7a();return a70_0x1bf9=function(_0x1bf9e3,_0x470aeb){_0x1bf9e3=_0x1bf9e3-0x1bf;let _0x45828e=_0xca7a1f[_0x1bf9e3];return _0x45828e;},a70_0x1bf9(_0x3392c5,_0x34cb68);}(function(_0x123c33,_0x22883e){const _0x162241=a70_0x1bf9,_0xe53e24=_0x123c33();while(!![]){try{const _0x409015=-parseInt(_0x162241(0x1c1))/0x1+parseInt(_0x162241(0x1c6))/0x2+-parseInt(_0x162241(0x1c5))/0x3+-parseInt(_0x162241(0x1d0))/0x4*(-parseInt(_0x162241(0x1c2))/0x5)+-parseInt(_0x162241(0x1cb))/0x6*(-parseInt(_0x162241(0x1cc))/0x7)+parseInt(_0x162241(0x1c9))/0x8*(parseInt(_0x162241(0x1c3))/0x9)+-parseInt(_0x162241(0x1c0))/0xa*(parseInt(_0x162241(0x1c7))/0xb);if(_0x409015===_0x22883e)break;else _0xe53e24['push'](_0xe53e24['shift']());}catch(_0x22ecf4){_0xe53e24['push'](_0xe53e24['shift']());}}}(a70_0xca7a,0xf2266));function a70_0xca7a(){const _0x49a8d9=['56914vkPsLS','push','4808EQrlPE','../../helpers/classLogger.js','10158cPBcWq','3143isAFIG','observers','freeze','tuQlU','88UBkewh','registerObserver','770FQBxni','1093178OPXuiT','119270DxfohU','9783nEzuON','notifyObserver','3552678jNEpve','3458832EanIVn'];a70_0xca7a=function(){return _0x49a8d9;};return a70_0xca7a();}const {createClassLogger}=require(a70_0x1000ed(0x1ca));class EventDispatcher{static #instance=null;constructor(){const _0x1e96f7=a70_0x1000ed;this[_0x1e96f7(0x1cd)]={};}static['getInstance'](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a70_0x1000ed(0x1bf)](_0x5981fb,_0xb8359c){const _0x5b22b8=a70_0x1000ed;!this[_0x5b22b8(0x1cd)][_0x5981fb]&&(this['observers'][_0x5981fb]=[]),this[_0x5b22b8(0x1cd)][_0x5981fb][_0x5b22b8(0x1c8)](_0xb8359c);}async[a70_0x1000ed(0x1c4)](_0x1f8587,_0x3148b5){const _0x202b46=a70_0x1000ed,_0x340306={'tuQlU':function(_0x4d1fe4,_0x1dd40a){return _0x4d1fe4(_0x1dd40a);}};if(this[_0x202b46(0x1cd)][_0x1f8587]){for(const _0x27483c of this['observers'][_0x1f8587]){await _0x340306[_0x202b46(0x1cf)](_0x27483c,_0x3148b5);}return;}}}const eventDispatcher=EventDispatcher['getInstance']();Object[a70_0x1000ed(0x1ce)](eventDispatcher),module['exports']=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x59d07f=a71_0x37c2;(function(_0x4eb6e4,_0x526a5b){const _0x3dbec2=a71_0x37c2,_0x45bc43=_0x4eb6e4();while(!![]){try{const _0x4738e2=-parseInt(_0x3dbec2(0xb5))/0x1*(parseInt(_0x3dbec2(0xcb))/0x2)+-parseInt(_0x3dbec2(0xc1))/0x3+parseInt(_0x3dbec2(0xad))/0x4+parseInt(_0x3dbec2(0xaa))/0x5+-parseInt(_0x3dbec2(0xae))/0x6*(-parseInt(_0x3dbec2(0xc4))/0x7)+-parseInt(_0x3dbec2(0xc3))/0x8+-parseInt(_0x3dbec2(0xc7))/0x9*(-parseInt(_0x3dbec2(0xbb))/0xa);if(_0x4738e2===_0x526a5b)break;else _0x45bc43['push'](_0x45bc43['shift']());}catch(_0x2ef9f9){_0x45bc43['push'](_0x45bc43['shift']());}}}(a71_0x3c38,0xbe22c));const {createClassLogger}=require(a71_0x59d07f(0xb3)),util=require(a71_0x59d07f(0xc8)),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a71_0x59d07f(0xb1)),TrackedInstance=require(a71_0x59d07f(0xbf)),logger=createClassLogger(a71_0x59d07f(0xb2));class AutomationFramework{static ['instances']=new Map();static [a71_0x59d07f(0xa9)]=a71_0x59d07f(0xc5);static [a71_0x59d07f(0xc9)]=a71_0x59d07f(0xc6);constructor(_0x298f1b,_0x3ab3c9){const _0x773c4f=a71_0x59d07f;this[_0x773c4f(0xcc)]=_0x298f1b,this[_0x773c4f(0xb7)]=_0x3ab3c9;}[a71_0x59d07f(0xce)](){const _0x1dd711=a71_0x59d07f;return this[_0x1dd711(0xcc)];}[a71_0x59d07f(0xbc)](){return this['automationFrameworkVersion'];}async[a71_0x59d07f(0xab)](_0x444009,_0x36e5b6,_0x147e0f={}){const _0x5e97e6=a71_0x59d07f;logger[_0x5e97e6(0xaf)]('trackEvent:\x20automationFrameworkState='+_0x444009+_0x5e97e6(0xb6)+_0x36e5b6);}async[a71_0x59d07f(0xb8)](_0x18201f,_0x5d938b,_0x2afb95,_0x11c367={}){const _0x46ff50=a71_0x59d07f,_0x283e29=CLIUtils[_0x46ff50(0xb0)](_0x5d938b,_0x2afb95);_0x18201f&&_0x18201f[_0x46ff50(0xba)](_0x5d938b),await eventDispatcher[_0x46ff50(0xa8)](_0x283e29,_0x11c367);}static[a71_0x59d07f(0xb4)](_0x276923,_0x31a609,_0x29601c){const _0x348223=a71_0x59d07f;eventDispatcher['registerObserver'](CLIUtils[_0x348223(0xb0)](_0x276923,_0x31a609),_0x29601c);}static[a71_0x59d07f(0xac)](_0x13184c,_0x4f5467){const _0x3d9158=a71_0x59d07f;AutomationFramework[_0x3d9158(0xcd)][_0x3d9158(0xbd)](_0x13184c[_0x3d9158(0xb9)](),_0x4f5467);}static['getTrackedInstance'](){const _0x9a6232=a71_0x59d07f,_0xa1056c=TrackedInstance['createContext'](CLIUtils[_0x9a6232(0xc2)]());return AutomationFramework[_0x9a6232(0xcd)][_0x9a6232(0xbe)](_0xa1056c['getId']());}static['setState'](_0x1831b4,_0x32640a,_0x11b2b7){const _0x179085=a71_0x59d07f;_0x1831b4[_0x179085(0xa7)]()[_0x179085(0xbd)](_0x32640a,_0x11b2b7);}static[a71_0x59d07f(0xc0)](_0x5187b6,_0x2507a3){const _0x2ee2e6=a71_0x59d07f;return _0x5187b6[_0x2ee2e6(0xa7)]()[_0x2ee2e6(0xbe)](_0x2507a3);}}function a71_0x37c2(_0x3cf97a,_0x41a454){const _0x3c38dd=a71_0x3c38();return a71_0x37c2=function(_0x37c212,_0x317d27){_0x37c212=_0x37c212-0xa7;let _0x364959=_0x3c38dd[_0x37c212];return _0x364959;},a71_0x37c2(_0x3cf97a,_0x41a454);}function a71_0x3c38(){const _0x21684c=['getCurrentInstanceName','3914696IXCAMZ','4929057NcuXZJ','automation_sessions','non_browserstack_automation_sessions','5295852lomJIo','util','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','exports','1226caLlzb','automationFrameworkName','instances','getAutomationFrameworkName','getAllData','notifyObserver','KEY_AUTOMATION_SESSIONS','371365pEYYhY','trackEvent','setTrackedInstance','3917992UbnIwU','6cnPHJN','debug','getHookRegistryKey','../cliUtils.js','AutomationFramework','../../../helpers/classLogger.js','registerObserver','1363fRaJZO','\x20hookState=','automationFrameworkVersion','runHooks','getId','setState','30OhwIoW','getAutomationFrameworkVersion','set','get','../instances/trackedInstance.js','getState','4258662bEFclX'];a71_0x3c38=function(){return _0x21684c;};return a71_0x3c38();}module[a71_0x59d07f(0xca)]=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x41448a=a72_0x5b77;(function(_0x24e594,_0x39a961){const _0x19f283=a72_0x5b77,_0x112b84=_0x24e594();while(!![]){try{const _0x390060=-parseInt(_0x19f283(0xce))/0x1+-parseInt(_0x19f283(0xd1))/0x2*(-parseInt(_0x19f283(0xd6))/0x3)+-parseInt(_0x19f283(0xc2))/0x4*(parseInt(_0x19f283(0xc5))/0x5)+parseInt(_0x19f283(0xd5))/0x6+-parseInt(_0x19f283(0xcf))/0x7+parseInt(_0x19f283(0xda))/0x8+parseInt(_0x19f283(0xcd))/0x9*(parseInt(_0x19f283(0xc7))/0xa);if(_0x390060===_0x39a961)break;else _0x112b84['push'](_0x112b84['shift']());}catch(_0x510f1f){_0x112b84['push'](_0x112b84['shift']());}}}(a72_0x2e04,0x64c48));const a72_0x19a127={};a72_0x19a127[a72_0x41448a(0xd8)]='BROWSERSTACK_PLATFORM_INDEX',a72_0x19a127['KEY_HUB_URL']='hub_url',a72_0x19a127[a72_0x41448a(0xbd)]=a72_0x41448a(0xc1),a72_0x19a127[a72_0x41448a(0xd3)]=a72_0x41448a(0xdc),a72_0x19a127[a72_0x41448a(0xd9)]=a72_0x41448a(0xca),a72_0x19a127[a72_0x41448a(0xcc)]=a72_0x41448a(0xc0),a72_0x19a127['KEY_STARTED_AT']=a72_0x41448a(0xd4),a72_0x19a127['KEY_ENDED_AT']=a72_0x41448a(0xd7),a72_0x19a127[a72_0x41448a(0xd0)]=a72_0x41448a(0xc4),a72_0x19a127[a72_0x41448a(0xcb)]=a72_0x41448a(0xc8),a72_0x19a127['COMMAND_GET']='get',a72_0x19a127['COMMAND_SCREENSHOT']='screenshot',a72_0x19a127[a72_0x41448a(0xc9)]=a72_0x41448a(0xc6),a72_0x19a127[a72_0x41448a(0xdb)]=a72_0x41448a(0xd2),a72_0x19a127[a72_0x41448a(0xc3)]=a72_0x41448a(0xbf);function a72_0x5b77(_0xa39056,_0x418c4f){const _0x2e0479=a72_0x2e04();return a72_0x5b77=function(_0x5b771e,_0x2cc791){_0x5b771e=_0x5b771e-0xbd;let _0x3d8085=_0x2e0479[_0x5b771e];return _0x3d8085;},a72_0x5b77(_0xa39056,_0x418c4f);}function a72_0x2e04(){const _0x40c6de=['451745XgnMis','2725527QUNFhA','KEY_PLATFORM_INDEX','347022DYLCIX','w3cexecutescriptasync','KEY_INPUT_CAPABILITIES','started_at','1276920XolpQo','3klULdz','ended_at','ENV_BROWSERSTACK_PLATFORM_INDEX','KEY_CAPABILITIES','5573744zRwzIY','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','input_capabilities','KEY_FRAMEWORK_SESSION_ID','exports','quit','is_browserstack_hub','framework_session_id','8AuQucn','COMMAND_QUIT','platform_index','1753085XHAuIr','w3cexecutescript','1744070YrALao','newsession','COMMAND_W3C_EXECUTE_SCRIPT','capabilities','COMMAND_NEW_SESSION','KEY_IS_BROWSERSTACK_HUB','45JnwOSN'];a72_0x2e04=function(){return _0x40c6de;};return a72_0x2e04();}const AutomationFrameworkConstants=a72_0x19a127;module[a72_0x41448a(0xbe)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a73_0x5c36(_0x27987a,_0x4fb3c5){const _0x438b09=a73_0x438b();return a73_0x5c36=function(_0x5c36bd,_0x4a4c95){_0x5c36bd=_0x5c36bd-0x1b0;let _0x4e1d11=_0x438b09[_0x5c36bd];return _0x4e1d11;},a73_0x5c36(_0x27987a,_0x4fb3c5);}const a73_0x157683=a73_0x5c36;(function(_0xbe8efd,_0x36b8dd){const _0x12f761=a73_0x5c36,_0x2bda1b=_0xbe8efd();while(!![]){try{const _0x2f71ad=-parseInt(_0x12f761(0x1fa))/0x1*(parseInt(_0x12f761(0x203))/0x2)+-parseInt(_0x12f761(0x202))/0x3+-parseInt(_0x12f761(0x1c3))/0x4+-parseInt(_0x12f761(0x1df))/0x5+parseInt(_0x12f761(0x1fe))/0x6*(-parseInt(_0x12f761(0x1cf))/0x7)+parseInt(_0x12f761(0x1d6))/0x8+-parseInt(_0x12f761(0x1ef))/0x9*(-parseInt(_0x12f761(0x1c2))/0xa);if(_0x2f71ad===_0x36b8dd)break;else _0x2bda1b['push'](_0x2bda1b['shift']());}catch(_0xca9f5b){_0x2bda1b['push'](_0x2bda1b['shift']());}}}(a73_0x438b,0x78b58));function a73_0x438b(){const _0x2c5358=['test_logs','248256XlzZOB','662710UbvuFa','test_file_path','test_failure_reason','KEY_TEST_FAILURE_REASON','file_size','KEY_PLATFORM_INDEX','retry_of','test_duration','KEY_HOOK_LOGS','test_hooks_finished','file_level','KEY_AUTOMATE_SESSION_REASON','test_session_name','DEFAULT_TEST_RESULT','KEY_TEST_SCOPES','KEY_FILE_LEVEL','KEY_TEST_STARTED_AT','TEST_SCREENSHOT','KEY_TEST_META','KEY_TEST_RERUN_NAME','test_result','KEY_HOOK_FAILURE_TYPE','test_failure','2230mDSAJk','482164SOkTNx','KEY_TEST_UUID','hook_name','hook_failure_type','KEY_HOOK_FAILURE','KEY_TEST_ENDED_AT','file_path','test_started_at','test_meta','KEY_TEST_FAILURE','test_id','KEY_AUTOMATE_SESSION_NAME','4592889deBODk','KEY_TEST_FAILURE_TYPE','test_framework_version','custom_metadata','test_ended_at','automate_session_status','test_hook_last_started','6781040kKQUOa','test_hooks_started','KEY_HOOK_RESULT','KEY_HOOKS_FINISHED','test_uuid','test_name','KEY_TEST_LOCATION','hook_logs','KIND_SCREENSHOT','3102025jfteva','KEY_TEST_RESULT_AT','KEY_FILE_SIZE','KEY_TEST_SCOPE','pending','KEY_TEST_LOGS','KEY_SESSION_NAME','KEY_EVENT_ENDED_AT','test_scope','TEST_LOG','KEY_TEST_TAGS','event_ended_at','KEY_HOOK_LAST_FINISHED','KEY_HOOK_NAME','KEY_TEST_RESULT','KEY_CUSTOM_TAGS','58842dfWJIX','KIND_LOG','KEY_HOOKS_STARTED','file_name','test_rerun_name','hook_result','^(BEFORE_|AFTER_)','test_hook_last_finished','test_result_at','test_location','HOOK_REGEX','1vosbds','hook_failure','test_code','automate_session_name','6Rtoluh','KEY_FILE_NAME','automate_session_reason'];a73_0x438b=function(){return _0x2c5358;};return a73_0x438b();}const a73_0x2100d8={};a73_0x2100d8[a73_0x157683(0x1c4)]=a73_0x157683(0x1da),a73_0x2100d8['KEY_TEST_ID']=a73_0x157683(0x1cd),a73_0x2100d8['KEY_TEST_NAME']=a73_0x157683(0x1db),a73_0x2100d8['KEY_TEST_FILE_PATH']=a73_0x157683(0x204),a73_0x2100d8[a73_0x157683(0x1e9)]='test_tags',a73_0x2100d8[a73_0x157683(0x1ed)]=a73_0x157683(0x1bf),a73_0x2100d8[a73_0x157683(0x1e0)]=a73_0x157683(0x1f7),a73_0x2100d8[a73_0x157683(0x1bb)]=a73_0x157683(0x1ca),a73_0x2100d8[a73_0x157683(0x1c8)]=a73_0x157683(0x1d3),a73_0x2100d8[a73_0x157683(0x1dc)]=a73_0x157683(0x1f8),a73_0x2100d8['KEY_TEST_DURATION']=a73_0x157683(0x1b2),a73_0x2100d8[a73_0x157683(0x1e2)]=a73_0x157683(0x1e7),a73_0x2100d8[a73_0x157683(0x1b9)]='test_scopes',a73_0x2100d8['KEY_TEST_FRAMEWORK_NAME']='test_framework_name',a73_0x2100d8['KEY_TEST_FRAMEWORK_VERSION']=a73_0x157683(0x1d1),a73_0x2100d8['KEY_TEST_CODE']=a73_0x157683(0x1fc),a73_0x2100d8[a73_0x157683(0x1be)]=a73_0x157683(0x1f3),a73_0x2100d8['KEY_TEST_RETRY_OF']=a73_0x157683(0x1b1),a73_0x2100d8[a73_0x157683(0x1b0)]='platform_index',a73_0x2100d8[a73_0x157683(0x1cc)]=a73_0x157683(0x1c1),a73_0x2100d8[a73_0x157683(0x1d0)]='test_failure_type',a73_0x2100d8[a73_0x157683(0x206)]=a73_0x157683(0x205),a73_0x2100d8[a73_0x157683(0x1e4)]=a73_0x157683(0x201),a73_0x2100d8[a73_0x157683(0x1bd)]=a73_0x157683(0x1cb),a73_0x2100d8[a73_0x157683(0x1e5)]=a73_0x157683(0x1b7),a73_0x2100d8[a73_0x157683(0x1ce)]=a73_0x157683(0x1fd),a73_0x2100d8['KEY_AUTOMATE_SESSION_STATUS']=a73_0x157683(0x1d4),a73_0x2100d8[a73_0x157683(0x1b6)]=a73_0x157683(0x200),a73_0x2100d8['KEY_EVENT_STARTED_AT']='event_started_at',a73_0x2100d8[a73_0x157683(0x1e6)]=a73_0x157683(0x1ea),a73_0x2100d8['KEY_HOOK_ID']='hook_id',a73_0x2100d8[a73_0x157683(0x1d8)]=a73_0x157683(0x1f4),a73_0x2100d8[a73_0x157683(0x1c0)]=a73_0x157683(0x1c6),a73_0x2100d8['KEY_HOOK_FAILURE_REASON']='hook_failure_reason',a73_0x2100d8[a73_0x157683(0x1c7)]=a73_0x157683(0x1fb),a73_0x2100d8[a73_0x157683(0x1b3)]=a73_0x157683(0x1dd),a73_0x2100d8[a73_0x157683(0x1ec)]=a73_0x157683(0x1c5),a73_0x2100d8[a73_0x157683(0x1b8)]=a73_0x157683(0x1e3),a73_0x2100d8['DEFAULT_HOOK_RESULT']=a73_0x157683(0x1e3),a73_0x2100d8[a73_0x157683(0x1de)]=a73_0x157683(0x1bc),a73_0x2100d8[a73_0x157683(0x1f0)]=a73_0x157683(0x1e8),a73_0x2100d8[a73_0x157683(0x1f9)]=a73_0x157683(0x1f5),a73_0x2100d8[a73_0x157683(0x1f1)]=a73_0x157683(0x1d7),a73_0x2100d8[a73_0x157683(0x1d9)]=a73_0x157683(0x1b4),a73_0x2100d8['KEY_HOOK_LAST_STARTED']=a73_0x157683(0x1d5),a73_0x2100d8[a73_0x157683(0x1eb)]=a73_0x157683(0x1f6),a73_0x2100d8['KEY_LOGS']='logs',a73_0x2100d8[a73_0x157683(0x1ee)]=a73_0x157683(0x1d2),a73_0x2100d8['KEY_TEST_ATTACHMENTS']='test_attachments',a73_0x2100d8[a73_0x157683(0x1e1)]=a73_0x157683(0x207),a73_0x2100d8[a73_0x157683(0x1ff)]=a73_0x157683(0x1f2),a73_0x2100d8['KEY_FILE_PATH']=a73_0x157683(0x1c9),a73_0x2100d8[a73_0x157683(0x1ba)]=a73_0x157683(0x1b5);const TestFrameworkConstants=a73_0x2100d8;module['exports']=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a74_0x1f3df8=a74_0xfeb7;(function(_0x537c07,_0x1c57c0){const _0x4630ba=a74_0xfeb7,_0x24b27a=_0x537c07();while(!![]){try{const _0x5b3950=parseInt(_0x4630ba(0x144))/0x1+parseInt(_0x4630ba(0x125))/0x2*(-parseInt(_0x4630ba(0x149))/0x3)+parseInt(_0x4630ba(0x148))/0x4+-parseInt(_0x4630ba(0x17b))/0x5*(parseInt(_0x4630ba(0x17f))/0x6)+-parseInt(_0x4630ba(0x16b))/0x7*(-parseInt(_0x4630ba(0xdc))/0x8)+-parseInt(_0x4630ba(0x166))/0x9*(-parseInt(_0x4630ba(0x122))/0xa)+-parseInt(_0x4630ba(0xea))/0xb;if(_0x5b3950===_0x1c57c0)break;else _0x24b27a['push'](_0x24b27a['shift']());}catch(_0xaa0371){_0x24b27a['push'](_0x24b27a['shift']());}}}(a74_0x4efd,0xd70bb));const TestFramework=require(a74_0x1f3df8(0x145)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require('../state/hookState.js'),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a74_0x1f3df8(0x150)),CLIUtils=require(a74_0x1f3df8(0x109)),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a74_0x1f3df8(0x189)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a74_0x1f3df8(0x124)),logger=createClassLogger(a74_0x1f3df8(0xff)),{v4:uuidv4}=require(a74_0x1f3df8(0x18f)),util=require(a74_0x1f3df8(0x184)),TestInfo=require(a74_0x1f3df8(0x140)),GrpcClient=require(a74_0x1f3df8(0x14a));function a74_0xfeb7(_0x599a97,_0x6afb97){const _0x4efd9f=a74_0x4efd();return a74_0xfeb7=function(_0xfeb7bd,_0x1ca2a9){_0xfeb7bd=_0xfeb7bd-0xd4;let _0x5946e8=_0x4efd9f[_0xfeb7bd];return _0x5946e8;},a74_0xfeb7(_0x599a97,_0x6afb97);}function a74_0x4efd(){const _0x21edd0=['qnrDo','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','../cliUtils.js','getTestFrameworks','KEY_TEST_RERUN_NAME','testFrameworkName','KEY_HOOK_FAILURE','ceil','result','finished_at','processPendingHooks','pmlix','KEY_EVENT_STARTED_AT','unknown','hasPendingHooks','tags','ybziG','sendLogCreatedEvent','KEY_TEST_STARTED_AT',',\x20error:\x20','KEY_TEST_FILE_PATH','YvqTb','browserstackPlatformIndex','get','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','base64','31250EfSfdG','push','../../../helpers/helper.js','38sZjuSP','trackCucumberInstance','KEY_TEST_FAILURE_REASON','KEY_TEST_UUID','format','storePendingHook','stringify','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KEY_TEST_SCOPES','\x20and\x20args\x20=\x20','trackEvent','KEY_LOGS','getThreadId','KEY_HOOK_LAST_FINISHED','createContext','instance','KEY_TEST_LOGS','getPendingHooks','Processing\x20','Tracked\x20cucumber\x20hook\x20event:\x20','body','getAllData','KEY_HOOKS_FINISHED','\x20&\x20hookState=','LOG_REPORT','KEY_TEST_SCOPE','getId','../TestInfo.js','failure_reason','JVgVD','createTestFrameworkEventPayload\x20testId:\x20','1361478mVULQu','./testFramework','meta','\x20payload=','1346228GaqcST','65211Yjeden','../grpcClient','slice','uhoYq','getCurrentTestState','key','matchHookRegex','../instances/testFrameworkInstance.js','NONE','VOGsO','error','trackHookEvent','failure','eventJson','args','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','length','TQtoa','\x20for\x20test:\x20','hookState','addMultipleEntries','resolveInstance','parseCucumberTestResult','KEY_HOOKS_STARTED','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','name','pop','scopes','KEY_TEST_RESULT_AT','2205oaYcFF','failed','zYQFk','KEY_CUSTOM_TAGS','IYrUo','13062axUuqz','rerun_name','customRerunParam','PRE','getTestUUID','debug','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','\x20&\x20hook\x20=\x20','testFrameworkVersion',',\x20state=','KEY_TEST_LOCATION','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','exports','platformIndex','Error\x20in\x20createTestFrameworkEventPayload:\x20','hookData','111400NGFOmK','KEY_TEST_ID','jzOzJ','location','186yJtRTp','RISRa','keys','KEY_HOOK_LOGS','getInstance','util','tzgXV','runHooks','KEY_TEST_FRAMEWORK_NAME','split','./constants/testFrameworkConstants.js','qCfFZ','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_TAGS','VXddd','KEY_TEST_RESULT','uuid','getRef','setTestDetails','test','testData','Parsed\x20cucumber\x20test:\x20','KEY_TEST_ATTACHMENTS','DeyhF','KLGsy','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','finishedAt','\x20with\x20result:\x20','QXWXr','executionContext','getCurrentHookState','KEY_TEST_FRAMEWORK_VERSION',',\x20storing\x20as\x20pending\x20hook','zvHPR','CcOPy','inspect','getProcessId','failure_type','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','UnhandledError','getTestDetails','code','\x20target=','\x20pending\x20hooks\x20for\x20testId:\x20','auQXw','addPendingHook','TpLgx','getTestFrameworksVersions','startedAt','KEY_HOOK_FAILURE_TYPE','DEFAULT_TEST_RESULT','trackEvent:\x20unsupported\x20testFrameworkState=','getContext','KEY_EVENT_ENDED_AT','2488qkXxMV','POST','hook_type','rKfpp','KEY_AUTOMATE_SESSION_NAME','parseCucumberTest','ZWdFY','passed','setTrackedInstance','getCurrentInstanceName','frUGY','\x20testState:\x20','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_HOOK_NAME','11654236sWThvO','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','readLogObjects','createTestFrameworkEventPayload','KEY_HOOK_RESULT','started_at','testFrameworkState','hooks','\x20with\x20UUID:\x20','from','endedAt','ndGoi','logCreatedEvent','toISOString','toString','biTKQ','failure_data','DEFAULT_HOOK_RESULT','KEY_TEST_FAILURE_TYPE','TEST','KEY_TEST_META','CucumberTestFramework','getTrackedInstance','LyhYx','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','testUUID','\x20\x20and\x20args\x20=\x20','FeseT','test_run_id'];a74_0x4efd=function(){return _0x21edd0;};return a74_0x4efd();}class CucumberTestFramework extends TestFramework{constructor(_0x3e6e36,_0x44a1a7,_0x19b0e6){super(_0x3e6e36,_0x44a1a7,_0x19b0e6);}async[a74_0x1f3df8(0x12f)](_0x391014,_0x43b933,_0x55fc70={}){const _0x554e75=a74_0x1f3df8,_0x3fdf46={};_0x3fdf46['YvqTb']=_0x554e75(0x102),_0x3fdf46['oIfnI']=function(_0x55bb6f,_0x38ae7d){return _0x55bb6f===_0x38ae7d;},_0x3fdf46[_0x554e75(0x142)]=function(_0x33abee,_0x3be32a){return _0x33abee===_0x3be32a;},_0x3fdf46[_0x554e75(0xdf)]=_0x554e75(0x108);const _0x191018=_0x3fdf46;await super[_0x554e75(0x12f)](_0x391014,_0x43b933,_0x55fc70);const _0x559b9e=this[_0x554e75(0x15e)](_0x391014,_0x43b933,_0x55fc70);if(!_0x559b9e){logger[_0x554e75(0x170)](_0x191018[_0x554e75(0x11c)]);return;}try{let _0x47fabf,_0x5a97b1;switch(_0x391014){case TestFrameworkState['TEST']:_0x47fabf=_0x55fc70[_0x554e75(0x192)],_0x5a97b1=TestInfo[_0x554e75(0x16f)](_0x47fabf['id']);if(_0x191018['oIfnI'](_0x43b933,HookState[_0x554e75(0x16e)])){logger[_0x554e75(0x170)](_0x554e75(0x120)+_0x47fabf['id']);const _0xc228df={};_0xc228df['testUUID']=_0x5a97b1,_0xc228df['testData']=_0x47fabf,_0x559b9e[_0x554e75(0x15d)](this[_0x554e75(0xe1)](_0xc228df)),logger['debug']('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x47fabf['id']),await this[_0x554e75(0x111)](_0x559b9e,_0x47fabf['id']);}else{if(_0x191018['oIfnI'](_0x43b933,HookState['POST'])){const _0xc5692c={};_0xc5692c[_0x554e75(0x103)]=_0x5a97b1,_0xc5692c[_0x554e75(0x193)]=_0x47fabf,_0x559b9e[_0x554e75(0x15d)](this['parseCucumberTestResult'](_0xc5692c)),await this[_0x554e75(0x111)](_0x559b9e,_0x47fabf['id']);}}break;case TestFrameworkState[_0x554e75(0x13d)]:_0x191018['JVgVD'](_0x43b933,HookState[_0x554e75(0xdd)])&&await this[_0x554e75(0x118)](_0x559b9e,_0x391014,_0x55fc70);break;default:if(CLIUtils[_0x554e75(0x14f)](_0x391014[_0x554e75(0xf8)]()[_0x554e75(0x188)]('.')[0x1])){const _0x17b1cb=await this[_0x554e75(0x154)](_0x559b9e,_0x391014,_0x43b933,_0x55fc70);_0x559b9e[_0x554e75(0x15d)](_0x17b1cb);}else logger[_0x554e75(0x170)](_0x554e75(0xd9)+_0x391014+_0x554e75(0x13c)+_0x43b933);break;}}catch(_0x3ee133){logger['error'](util['format'](_0x191018[_0x554e75(0xdf)],_0x391014,_0x43b933,_0x55fc70['length'],_0x3ee133));}_0x55fc70[_0x554e75(0x134)]=_0x559b9e,await this[_0x554e75(0x186)](_0x559b9e,_0x391014,_0x43b933,_0x55fc70);}[a74_0x1f3df8(0x15e)](_0x418a8c,_0x45c381,_0x3a658a={}){const _0x553879=a74_0x1f3df8,_0xd6fee0={};_0xd6fee0[_0x553879(0x15a)]=function(_0x292d03,_0x15efa4){return _0x292d03===_0x15efa4;};const _0x1227bd=_0xd6fee0;let _0x1ed11b=null;return(_0x1227bd[_0x553879(0x15a)](_0x418a8c,TestFrameworkState['INIT_TEST'])||_0x1227bd['TQtoa'](_0x418a8c,TestFrameworkState[_0x553879(0x151)]))&&this['trackCucumberInstance'](_0x418a8c,_0x3a658a),_0x1ed11b=TestFramework[_0x553879(0x100)](),_0x1ed11b;}[a74_0x1f3df8(0x126)](_0x181e44,_0x126b7a){const _0x4724ef=a74_0x1f3df8,_0x4e90a6=CLIUtils[_0x4724ef(0xe5)](),_0x1d91e9=TrackedInstance[_0x4724ef(0x133)](_0x4e90a6);let _0x3e8eb7=null;logger[_0x4724ef(0x170)](_0x4724ef(0x171)+_0x4e90a6+_0x4724ef(0x174)+_0x181e44),_0x3e8eb7=new TestFrameworkInstance(_0x1d91e9,this[_0x4724ef(0x10a)](),this[_0x4724ef(0xd5)](),_0x181e44,HookState['NONE']),TestFramework[_0x4724ef(0xe4)](_0x1d91e9,_0x3e8eb7),logger[_0x4724ef(0x170)]('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x1d91e9['getId']()+_0x4724ef(0x1a9)+_0x4e90a6);}[a74_0x1f3df8(0xe1)](_0x34fee9){const _0x4c9d83=a74_0x1f3df8,_0x5964a0={};_0x5964a0[_0x4c9d83(0x14c)]=_0x4c9d83(0x176);const _0x2c98f=_0x5964a0,{testUUID:_0x49a02d,testData:_0xbbec79}=_0x34fee9;if(!_0xbbec79||!_0xbbec79[_0x4c9d83(0x18f)])return logger[_0x4c9d83(0x170)](_0x2c98f[_0x4c9d83(0x14c)]),{};const _0x3c9780=_0x49a02d,_0x493f2c=_0xbbec79['uuid'],_0x4f7e0e=this[_0x4c9d83(0x10a)]()[0x0],_0x399c5d=this['getTestFrameworksVersions'](),_0xaaccc1={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x4f7e0e,[TestFrameworkConstants[_0x4c9d83(0x19e)]]:_0x399c5d[_0x4f7e0e],[TestFrameworkConstants[_0x4c9d83(0x135)]]:[],[TestFrameworkConstants[_0x4c9d83(0x13b)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x3c9780,[TestFrameworkConstants[_0x4c9d83(0x18e)]]:TestFrameworkConstants[_0x4c9d83(0xd8)],[TestFrameworkConstants[_0x4c9d83(0xe0)]]:_0xbbec79[_0x4c9d83(0x162)]||'',[TestFrameworkConstants[_0x4c9d83(0x11b)]]:_0xbbec79['file_name']||'',[TestFrameworkConstants[_0x4c9d83(0x17c)]]:_0x493f2c,[TestFrameworkConstants['KEY_TEST_NAME']]:_0xbbec79[_0x4c9d83(0x162)]||'',[TestFrameworkConstants[_0x4c9d83(0x175)]]:_0xbbec79[_0x4c9d83(0x17e)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0xbbec79[_0x4c9d83(0x139)]?.[_0x4c9d83(0x1a8)]||null,[TestFrameworkConstants[_0x4c9d83(0x18c)]]:_0xbbec79[_0x4c9d83(0x116)]||[],[TestFrameworkConstants[_0x4c9d83(0x119)]]:_0xbbec79['startedAt']||new Date()['toISOString'](),[TestFrameworkConstants[_0x4c9d83(0x13e)]]:_0xbbec79[_0x4c9d83(0x164)]?.[0x0]||'',[TestFrameworkConstants[_0x4c9d83(0x12d)]]:_0xbbec79[_0x4c9d83(0x164)]||[],[TestFrameworkConstants[_0x4c9d83(0x10b)]]:_0xbbec79[_0x4c9d83(0x16d)]?.[_0x4c9d83(0x16c)]||_0xbbec79[_0x4c9d83(0x162)]||'',[TestFrameworkConstants[_0x4c9d83(0x169)]]:{},[TestFrameworkConstants[_0x4c9d83(0xfe)]]:_0xbbec79[_0x4c9d83(0x146)]||{}};TestInfo[_0x4c9d83(0x191)](_0x493f2c,_0xaaccc1),logger[_0x4c9d83(0x170)](_0x4c9d83(0x194)+_0xbbec79[_0x4c9d83(0x162)]+_0x4c9d83(0xf2)+_0x3c9780);const _0x316503={};return _0x316503[_0x493f2c]=_0xaaccc1,_0x316503;}[a74_0x1f3df8(0x15f)](_0x41c860){const _0x421723=a74_0x1f3df8,_0x10b72a={'zYQFk':_0x421723(0x1a5),'oxmIK':_0x421723(0x114),'ZWdFY':function(_0x1c8959,_0x41be7d){return _0x1c8959===_0x41be7d;},'QXWXr':_0x421723(0x167),'zvHPR':_0x421723(0x1a6),'pmlix':function(_0x339e4c,_0x2d72ac,_0x95ae55){return _0x339e4c(_0x2d72ac,_0x95ae55);},'VOGsO':function(_0x59b59c,_0x23da1d){return _0x59b59c>_0x23da1d;},'biTKQ':function(_0x555244,_0xf9217a){return _0x555244>_0xf9217a;}},{testUUID:_0x3a1d5f,testData:_0x26e352}=_0x41c860;if(!_0x26e352||!_0x26e352[_0x421723(0x18f)])return logger[_0x421723(0x170)](_0x10b72a[_0x421723(0x168)]),{};const _0x52d679=this[_0x421723(0x15e)](TestFrameworkState[_0x421723(0xfd)],HookState[_0x421723(0xdd)]),_0x5270e2=_0x26e352[_0x421723(0x18f)],_0x497470=TestInfo[_0x421723(0x1a7)](_0x5270e2)||{},_0x10f2c8=_0x497470?_0x497470[TestFrameworkConstants[_0x421723(0x169)]]||{}:{},_0x2534b6={..._0x497470,[TestFrameworkConstants[_0x421723(0x18e)]]:_0x26e352['result']||_0x10b72a['oxmIK'],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x26e352[_0x421723(0x199)]||new Date()[_0x421723(0xf7)](),[TestFrameworkConstants[_0x421723(0x165)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x421723(0x169)]]:_0x10f2c8,[TestFrameworkConstants[_0x421723(0x130)]]:[],[TestFrameworkConstants[_0x421723(0xfe)]]:_0x26e352[_0x421723(0x146)]||{}};_0x10b72a[_0x421723(0xe2)](_0x26e352[_0x421723(0x10f)],_0x10b72a[_0x421723(0x19b)])&&_0x26e352[_0x421723(0x155)]&&(_0x2534b6[TestFrameworkConstants[_0x421723(0xfc)]]=_0x26e352[_0x421723(0x1a4)]||_0x10b72a[_0x421723(0x1a0)],_0x2534b6[TestFrameworkConstants[_0x421723(0x127)]]=_0x26e352['failure_reason']||'',_0x2534b6[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x26e352[_0x421723(0x155)]);const _0x440bb8=TestInfo[_0x421723(0x1a7)](_0x5270e2)[TestFrameworkConstants[_0x421723(0x195)]]||{},_0x130e43=_0x10b72a[_0x421723(0x112)](getManualUploadLogs,_0x440bb8,_0x52d679['getAllData']()['get'](_0x5270e2)[TestFrameworkConstants[_0x421723(0x128)]]);if(_0x10b72a[_0x421723(0x152)](_0x130e43[_0x421723(0x159)],0x0)){const _0x24051a=_0x2534b6[TestFrameworkConstants[_0x421723(0x130)]]||[];_0x2534b6[TestFrameworkConstants['KEY_LOGS']]=[..._0x24051a,..._0x130e43];}_0x26e352[_0x421723(0xf1)]&&_0x10b72a[_0x421723(0xf9)](_0x26e352[_0x421723(0xf1)]['length'],0x0)&&(_0x2534b6[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x26e352[_0x421723(0xf1)]);TestInfo['setTestDetails'](_0x5270e2,_0x2534b6),logger[_0x421723(0x170)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x26e352[_0x421723(0x162)]+_0x421723(0x19a)+_0x26e352['result']);const _0x440726={};return _0x440726[_0x5270e2]=_0x2534b6,_0x440726;}async[a74_0x1f3df8(0x154)](_0x11afb2,_0x523a35,_0x51b454,_0x2587e1){const _0x8503cb=a74_0x1f3df8,_0xe9aed7={'ybziG':_0x8503cb(0x158),'tGdfI':function(_0x5fb717){return _0x5fb717();},'jzOzJ':function(_0x493675,_0x543418){return _0x493675 in _0x543418;},'frUGY':function(_0x100b66,_0x397696){return _0x100b66===_0x397696;},'ZnQsU':function(_0x188633,_0x59cd01){return _0x188633>_0x59cd01;},'CcOPy':_0x8503cb(0x167),'IYrUo':_0x8503cb(0x1a6),'ndGoi':_0x8503cb(0xe3),'TFmyG':function(_0x2f6c56,_0x44d0da){return _0x2f6c56!==_0x44d0da;}},{hookData:_0x4626dc}=_0x2587e1;if(!_0x4626dc)return logger[_0x8503cb(0x170)](_0xe9aed7[_0x8503cb(0x117)]),{};const _0x4d12e7=_0x4626dc['uuid']||_0xe9aed7['tGdfI'](uuidv4),_0x45819d=_0x4626dc[_0x8503cb(0x106)],_0x274da5=_0x523a35['toString']()[_0x8503cb(0x188)]('.')[0x1],_0x4c17c3=TestInfo[_0x8503cb(0x1a7)](_0x45819d)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x42629e=_0x11afb2['getAllData']()['get'](_0x45819d);if(!_0x42629e)return logger[_0x8503cb(0x170)](_0x8503cb(0xeb)+_0x45819d+_0x8503cb(0x19f)),this[_0x8503cb(0x12a)](_0x11afb2,_0x45819d,_0x523a35,_0x51b454,_0x2587e1),{};let _0x419f17=_0x42629e[TestFrameworkConstants[_0x8503cb(0x160)]];!_0x419f17&&(_0x419f17={});!_0xe9aed7[_0x8503cb(0x17d)](_0x274da5,_0x419f17)&&(_0x419f17[_0x274da5]=[]);let _0x44006d=_0x42629e[TestFrameworkConstants[_0x8503cb(0x13b)]];!_0x44006d&&(_0x44006d={});!_0xe9aed7[_0x8503cb(0x17d)](_0x274da5,_0x44006d)&&(_0x44006d[_0x274da5]=[]);const _0x1cef03={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x419f17,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x44006d},_0x354401={};_0x354401[_0x45819d]=_0x1cef03;const _0x18b356=_0x354401;if(_0xe9aed7[_0x8503cb(0xe6)](_0x51b454,HookState[_0x8503cb(0x16e)])){const _0x5d2233={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x4d12e7,[TestFrameworkConstants[_0x8503cb(0xee)]]:TestFrameworkConstants[_0x8503cb(0xfb)],[TestFrameworkConstants[_0x8503cb(0x113)]]:_0x4626dc[_0x8503cb(0xef)],[TestFrameworkConstants[_0x8503cb(0x182)]]:[],[TestFrameworkConstants[_0x8503cb(0xe9)]]:_0x4626dc[_0x8503cb(0xde)],[TestFrameworkConstants[_0x8503cb(0x169)]]:_0x4c17c3};_0x5d2233[_0x8503cb(0x14e)]=_0x274da5;const _0x34bbfd=_0x5d2233;_0x419f17[_0x274da5][_0x8503cb(0x123)](_0x34bbfd),_0x18b356[_0x45819d][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x274da5,logger[_0x8503cb(0x170)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x274da5+_0x8503cb(0x172)+_0x34bbfd+_0x8503cb(0x104)+_0x2587e1);}else{if(_0xe9aed7[_0x8503cb(0xe6)](_0x51b454,HookState['POST'])){const _0x3abd57=_0x4626dc[_0x8503cb(0x10f)],_0x100e08=_0x419f17[_0x274da5]||[];logger['debug']('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x100e08+_0x8503cb(0x12e)+_0x2587e1);if(_0xe9aed7['ZnQsU'](_0x100e08[_0x8503cb(0x159)],0x0)){const _0x2e5993=_0x100e08[_0x8503cb(0x163)]();_0xe9aed7[_0x8503cb(0xe6)](_0x4626dc[_0x8503cb(0x10f)],_0xe9aed7[_0x8503cb(0x1a1)])&&_0x4626dc[_0x8503cb(0xfa)]?(_0x2e5993[TestFrameworkConstants[_0x8503cb(0xd7)]]=_0x4626dc[_0x8503cb(0x1a4)]||_0xe9aed7[_0x8503cb(0x16a)],_0x2e5993[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x4626dc[_0x8503cb(0x141)]||'',_0x2e5993[TestFrameworkConstants[_0x8503cb(0x10d)]]=_0x4626dc[_0x8503cb(0xfa)]):_0x2e5993[TestFrameworkConstants[_0x8503cb(0xee)]]=_0xe9aed7[_0x8503cb(0xf5)];_0xe9aed7['TFmyG'](_0x3abd57,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x2e5993[TestFrameworkConstants[_0x8503cb(0xee)]]=_0x3abd57);_0x2e5993[TestFrameworkConstants[_0x8503cb(0xdb)]]=_0x4626dc[_0x8503cb(0x110)]||new Date()[_0x8503cb(0xf7)](),_0x2e5993[TestFrameworkConstants[_0x8503cb(0x169)]]=_0x4c17c3;const _0x3df8dc=_0x2e5993[TestFrameworkConstants['KEY_HOOK_ID']];!_0x44006d[_0x274da5]&&(_0x44006d[_0x274da5]=[]),_0x44006d[_0x274da5][_0x8503cb(0x123)](_0x2e5993),_0x18b356[_0x45819d][TestFrameworkConstants[_0x8503cb(0x132)]]=_0x274da5;}}}return logger['debug'](_0x8503cb(0x138)+_0x4626dc[_0x8503cb(0xde)]+'\x20with\x20id\x20'+_0x4d12e7+_0x8503cb(0x15b)+_0x45819d),_0x18b356;}[a74_0x1f3df8(0xed)](_0x258ea8){const _0x2bfd5b=a74_0x1f3df8,_0x1023c2={};_0x1023c2[_0x2bfd5b(0x101)]=_0x2bfd5b(0x121);const _0x15abf4=_0x1023c2;try{const _0x38df36=_0x258ea8[_0x2bfd5b(0x192)]?_0x258ea8[_0x2bfd5b(0x192)]['id']:_0x258ea8[_0x2bfd5b(0x17a)][_0x2bfd5b(0x106)],_0x397d43=_0x258ea8[_0x2bfd5b(0x134)],_0x2537a3=_0x397d43[_0x2bfd5b(0xda)](),_0x5babe9=_0x397d43[_0x2bfd5b(0x13a)]()[_0x2bfd5b(0x11e)](_0x38df36);if(!_0x5babe9)return logger[_0x2bfd5b(0x170)](_0x2bfd5b(0x11f)+_0x38df36),{};logger[_0x2bfd5b(0x170)](_0x2bfd5b(0x143)+_0x38df36);const {[TestFrameworkConstants[_0x2bfd5b(0x187)]]:_0x4f8ad0='',[TestFrameworkConstants[_0x2bfd5b(0x19e)]]:_0x723796='',[TestFrameworkConstants[_0x2bfd5b(0x119)]]:_0x5ef03d='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x3fee7a=''}=_0x5babe9,_0x2ef74e=_0x397d43[_0x2bfd5b(0x14d)]()[_0x2bfd5b(0xf8)]()[_0x2bfd5b(0x188)]('.')[0x1],_0x147976=_0x397d43[_0x2bfd5b(0x19d)]()[_0x2bfd5b(0xf8)]()[_0x2bfd5b(0x188)]('.')[0x1],_0x48dd5f=global?.[_0x2bfd5b(0x11d)]??0x0,_0x4f2cfd=_0x397d43[_0x2bfd5b(0x190)](),_0xedd0e9=Buffer[_0x2bfd5b(0xf3)](JSON[_0x2bfd5b(0x12b)](_0x5babe9))[_0x2bfd5b(0xf8)](_0x15abf4['LyhYx']),_0x20df75={'hash':_0x2537a3[_0x2bfd5b(0x13f)](),'threadId':_0x2537a3[_0x2bfd5b(0x131)]()['toString'](),'processId':_0x2537a3[_0x2bfd5b(0x1a3)]()[_0x2bfd5b(0xf8)]()},_0x5d9dc2={};_0x5d9dc2[_0x2bfd5b(0x178)]=_0x48dd5f,_0x5d9dc2[_0x2bfd5b(0x10c)]=_0x4f8ad0,_0x5d9dc2[_0x2bfd5b(0x173)]=_0x723796,_0x5d9dc2[_0x2bfd5b(0xf0)]=_0x2ef74e,_0x5d9dc2['hookState']=_0x147976,_0x5d9dc2[_0x2bfd5b(0xd6)]=_0x5ef03d,_0x5d9dc2[_0x2bfd5b(0xf4)]=_0x3fee7a,_0x5d9dc2['uuid']=_0x4f2cfd,_0x5d9dc2[_0x2bfd5b(0x156)]=_0xedd0e9,_0x5d9dc2[_0x2bfd5b(0x19c)]=_0x20df75;const _0x3b772f=_0x5d9dc2;return logger[_0x2bfd5b(0x170)](_0x2bfd5b(0x198)+_0x38df36+_0x2bfd5b(0xe7)+_0x2ef74e+'\x20hookState:\x20'+_0x147976),_0x3b772f;}catch(_0x3bd492){return logger[_0x2bfd5b(0x153)](_0x2bfd5b(0x179)+util[_0x2bfd5b(0x129)](_0x3bd492)),{};}}async[a74_0x1f3df8(0x118)](_0x2358eb,_0x5a8999,_0x31764f){const _0x141a10=a74_0x1f3df8,_0x354c7e={'tzgXV':function(_0x51be87,_0x2be0ab,_0x2a3861){return _0x51be87(_0x2be0ab,_0x2a3861);},'auQXw':function(_0x4eceb5,_0x54b9f4){return _0x4eceb5===_0x54b9f4;},'RISRa':_0x141a10(0x161),'VXddd':function(_0xcbc8bd,_0x3ad244){return _0xcbc8bd/_0x3ad244;},'DeyhF':function(_0x3c9239,_0x3f22f5){return _0x3c9239<_0x3f22f5;},'KLGsy':function(_0x3f8cfb,_0x337115){return _0x3f8cfb*_0x337115;},'FeseT':function(_0x1bb758,_0x501321){return _0x1bb758+_0x501321;},'TpLgx':function(_0x3cdefb,_0x2b4f7f){return _0x3cdefb+_0x2b4f7f;},'qnrDo':'Cucumber\x20log\x20created\x20event'};try{const _0x1fad68=_0x31764f[_0x141a10(0x103)],_0x22a190=_0x2358eb[_0x141a10(0x13a)]()['get'](_0x1fad68),{[TestFrameworkConstants[_0x141a10(0x187)]]:_0x3f07c6='',[TestFrameworkConstants[_0x141a10(0x19e)]]:_0x258c7f=''}=_0x22a190,_0x3b12a9=TestInfo[_0x141a10(0xec)](_0x1fad68),_0x386816=TestInfo[_0x141a10(0x1a7)](_0x1fad68)[TestFrameworkConstants[_0x141a10(0x195)]]||{},_0x3aae96=_0x354c7e[_0x141a10(0x185)](getMediaArtifactsLogs,_0x386816,_0x2358eb[_0x141a10(0x13a)]()['get'](_0x1fad68)[TestFrameworkConstants[_0x141a10(0x128)]]),_0x15a795=(_0x3b12a9||[])['concat'](_0x3aae96||[]);if(!_0x15a795||_0x354c7e[_0x141a10(0x1ab)](_0x15a795['length'],0x0)){logger['debug'](_0x354c7e[_0x141a10(0x180)]);return;}const _0x23c5d8=0x28,_0x2a88b7=Math[_0x141a10(0x10e)](_0x354c7e[_0x141a10(0x18d)](_0x15a795[_0x141a10(0x159)],_0x23c5d8));for(let _0x3fad10=0x0;_0x354c7e[_0x141a10(0x196)](_0x3fad10,_0x2a88b7);_0x3fad10++){const _0x7e6e8c=_0x354c7e[_0x141a10(0x197)](_0x3fad10,_0x23c5d8),_0x5322e8=_0x354c7e[_0x141a10(0x105)](_0x7e6e8c,_0x23c5d8),_0x42702b=_0x15a795[_0x141a10(0x14b)](_0x7e6e8c,_0x5322e8),_0xb9783c={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x42702b,'testFrameworkName':_0x3f07c6,'testFrameworkVersion':_0x258c7f,'testFrameworkState':_0x5a8999['toString']()['split']('.')[0x1]};logger['debug'](_0x141a10(0xe8)+_0x1fad68+'\x20batch\x20'+_0x354c7e[_0x141a10(0x105)](_0x3fad10,0x1)+'/'+_0x2a88b7+_0x141a10(0x147)+util[_0x141a10(0x1a2)](_0xb9783c));const _0x5a77a7=await GrpcClient[_0x141a10(0x183)]()[_0x141a10(0xf6)](_0xb9783c);logger[_0x141a10(0x170)](_0x141a10(0xe8)+_0x1fad68+'\x20batch\x20'+_0x354c7e[_0x141a10(0xd4)](_0x3fad10,0x1)+'/'+_0x2a88b7+'\x20response='+util[_0x141a10(0x1a2)](_0x5a77a7));}}catch(_0x3b6b1c){logger['error']('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util[_0x141a10(0x129)](_0x3b6b1c));}logger['debug'](_0x354c7e[_0x141a10(0x107)]);}[a74_0x1f3df8(0x12a)](_0x2e4a66,_0xef0338,_0x5ef94f,_0x3e33ec,_0x1432dc){const _0x3ca5b0=a74_0x1f3df8,_0x34de2e={'testId':_0xef0338,'testFrameworkState':_0x5ef94f,'hookState':_0x3e33ec,'args':_0x1432dc,'timestamp':new Date()[_0x3ca5b0(0xf7)]()};_0x2e4a66[_0x3ca5b0(0x1ac)](_0xef0338,_0x34de2e),logger['debug']('Stored\x20pending\x20hook\x20for\x20testId:\x20'+_0xef0338+',\x20state:\x20'+_0x5ef94f+',\x20hookState:\x20'+_0x3e33ec);}async[a74_0x1f3df8(0x111)](_0x264133,_0x12a7d0){const _0x48019f=a74_0x1f3df8,_0x4fa261={};_0x4fa261[_0x48019f(0x18a)]=function(_0x1301f5,_0x1ea35e){return _0x1301f5>_0x1ea35e;};const _0x5f2528=_0x4fa261;if(!_0x264133[_0x48019f(0x115)](_0x12a7d0))return;const _0x56765c=_0x264133[_0x48019f(0x136)](_0x12a7d0);logger[_0x48019f(0x170)](_0x48019f(0x137)+_0x56765c['length']+_0x48019f(0x1aa)+_0x12a7d0);for(const _0x545cd1 of _0x56765c){try{const _0x15ed1c=await this[_0x48019f(0x154)](_0x264133,_0x545cd1['testFrameworkState'],_0x545cd1[_0x48019f(0x15c)],_0x545cd1[_0x48019f(0x157)]);_0x15ed1c&&_0x5f2528[_0x48019f(0x18a)](Object[_0x48019f(0x181)](_0x15ed1c)[_0x48019f(0x159)],0x0)&&_0x264133[_0x48019f(0x15d)](_0x15ed1c),await this[_0x48019f(0x186)](_0x264133,_0x545cd1[_0x48019f(0xf0)],_0x545cd1[_0x48019f(0x15c)],_0x545cd1[_0x48019f(0x157)]);}catch(_0x15b819){logger[_0x48019f(0x153)](_0x48019f(0x18b)+_0x12a7d0+_0x48019f(0x11a)+_0x15b819);}}_0x264133['removePendingHooks'](_0x12a7d0),logger[_0x48019f(0x170)](_0x48019f(0x12c)+_0x12a7d0);}}module[a74_0x1f3df8(0x177)]=CucumberTestFramework;
|
|
1
|
+
function a74_0x4a3a(_0x2b4106,_0x3f326a){const _0x221f3a=a74_0x221f();return a74_0x4a3a=function(_0x4a3a07,_0x52626b){_0x4a3a07=_0x4a3a07-0x10d;let _0x2fddc5=_0x221f3a[_0x4a3a07];return _0x2fddc5;},a74_0x4a3a(_0x2b4106,_0x3f326a);}const a74_0x186b8e=a74_0x4a3a;(function(_0x394cc,_0x2bc18e){const _0x50089f=a74_0x4a3a,_0x4cae5b=_0x394cc();while(!![]){try{const _0x4f18c0=parseInt(_0x50089f(0x1ae))/0x1*(parseInt(_0x50089f(0x19a))/0x2)+parseInt(_0x50089f(0x1b1))/0x3+-parseInt(_0x50089f(0x125))/0x4+-parseInt(_0x50089f(0x1d6))/0x5+-parseInt(_0x50089f(0x193))/0x6*(-parseInt(_0x50089f(0x10f))/0x7)+parseInt(_0x50089f(0x1bd))/0x8*(parseInt(_0x50089f(0x180))/0x9)+parseInt(_0x50089f(0x131))/0xa;if(_0x4f18c0===_0x2bc18e)break;else _0x4cae5b['push'](_0x4cae5b['shift']());}catch(_0x3f10c5){_0x4cae5b['push'](_0x4cae5b['shift']());}}}(a74_0x221f,0x7787c));function a74_0x221f(){const _0x416378=['stringify','tags','JPHkp','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','VVcdT','failure','JiMyT','DEFAULT_HOOK_RESULT','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','key','rfIfE','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','finished_at','Hizbl','\x20\x20and\x20args\x20=\x20','getTestFrameworksVersions','63114RzlfOP','KEY_HOOK_FAILURE_REASON','platformIndex','endedAt','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','Tracked\x20cucumber\x20hook\x20event:\x20','length','198188UgDXHq','addMultipleEntries','trackHookEvent','\x20with\x20UUID:\x20','\x20response=','PeRmm','KEY_TEST_STARTED_AT','runHooks','from','POST','base64','scopes','HfIxX','unknown','code','test','ixpAP','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','Dsxzz','alinf','4ipGiFW','KEY_TEST_FAILURE_REASON','INIT_TEST','475287CMuXUV','KEY_HOOK_FAILURE','getPendingHooks','KEY_EVENT_STARTED_AT','getRef','toString','getId','MUKOZ','KEY_TEST_NAME','finishedAt','AyjBw','KEY_CUSTOM_TAGS','1616PSoPxG','KEY_TEST_FAILURE','iUCHs','getTestDetails','slice','KRVXY','hookData','name','KEY_TEST_ENDED_AT','GHqwF','removePendingHooks','inspect','pop','KEY_HOOKS_STARTED','KEY_TEST_RESULT_AT','TEST','../TestInfo.js','customRerunParam','KEY_TEST_RERUN_NAME','testFrameworkVersion','getAllData','utedu','KEY_AUTOMATE_SESSION_NAME','GjtMV','DEFAULT_TEST_RESULT','4756315cItwtu','KEY_HOOK_FAILURE_TYPE','getTestFrameworks','testFrameworkName','KEY_HOOK_LAST_STARTED','debug','sgEGU','result','parseCucumberTestResult','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','231HGEsGO','tlYta','exports','ceil','\x20and\x20args\x20=\x20','zQvLy','test_run_id','opXhi','location','browserstackPlatformIndex','getTrackedInstance','sendLogCreatedEvent:\x20for\x20testId:\x20','fvIUN','push','KEY_HOOK_LAST_FINISHED','rerun_name','error','readLogObjects','../state/hookState.js','KEY_TEST_META','util','../grpcClient','2190952gbjCGg','KEY_HOOK_ID','./constants/testFrameworkConstants.js','logCreatedEvent','instance','KEY_EVENT_ENDED_AT','getCurrentInstanceName','get','../../../helpers/helper.js','KEY_HOOK_LOGS','args','failure_data','9365790IuEizH','resolveInstance','parseCucumberTest','bGrCf','PRE','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','../../../helpers/classLogger.js','storePendingHook','KEY_TEST_UUID','../state/testFrameworkState.js','\x20&\x20hookState=','addPendingHook','\x20batch\x20','createTestFrameworkEventPayload\x20testId:\x20','NONE','KEY_TEST_TAGS','createContext',',\x20hookState:\x20','uuid','format','eventJson','getInstance','../instances/trackedInstance.js','hookState','KEY_TEST_ATTACHMENTS','processPendingHooks','HTYeu','setTestDetails','Stored\x20pending\x20hook\x20for\x20testId:\x20','failure_type','getProcessId','started_at',',\x20storing\x20as\x20pending\x20hook','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','passed','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','CXzli','hook_type','meta','createTestFrameworkEventPayload','KEY_HOOK_NAME','toISOString','KEY_HOOK_RESULT','KEY_TEST_FILE_PATH','KYGpd','gqHyV','KEY_TEST_FRAMEWORK_NAME','concat','owLKZ','testUUID','KEY_HOOKS_FINISHED',',\x20state:\x20','failure_reason','file_name','IQblD','testFrameworkState','\x20with\x20result:\x20','body','ntdAP','\x20&\x20hook\x20=\x20','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','matchHookRegex','startedAt','trackCucumberInstance','Updated\x20cucumber\x20test\x20result:\x20','\x20target=','keys','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','trackEvent:\x20unsupported\x20testFrameworkState=','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','hooks','KEY_TEST_SCOPES',',\x20state=','testData','sendLogCreatedEvent','Cucumber\x20log\x20created\x20event','KEY_LOGS','xxnnr','6687UuyOiM','split','dYNNv'];a74_0x221f=function(){return _0x416378;};return a74_0x221f();}const TestFramework=require('./testFramework'),TestFrameworkState=require(a74_0x186b8e(0x13a)),HookState=require(a74_0x186b8e(0x121)),{createClassLogger}=require(a74_0x186b8e(0x137)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a74_0x186b8e(0x147)),TestFrameworkConstants=require(a74_0x186b8e(0x127)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a74_0x186b8e(0x12d)),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require('uuid'),util=require(a74_0x186b8e(0x123)),TestInfo=require(a74_0x186b8e(0x1cd)),GrpcClient=require(a74_0x186b8e(0x124));class CucumberTestFramework extends TestFramework{constructor(_0x4b004f,_0x3e504e,_0x37c3b8){super(_0x4b004f,_0x3e504e,_0x37c3b8);}async['trackEvent'](_0x54c95f,_0x5da2b3,_0x3e9cff={}){const _0x56da63=a74_0x186b8e,_0xf23b5a={};_0xf23b5a[_0x56da63(0x182)]=_0x56da63(0x152),_0xf23b5a[_0x56da63(0x116)]=function(_0x3fa748,_0xb353e1){return _0x3fa748===_0xb353e1;},_0xf23b5a[_0x56da63(0x14b)]=function(_0x4df621,_0x6c22d1){return _0x4df621===_0x6c22d1;},_0xf23b5a[_0x56da63(0x1ad)]=_0x56da63(0x1ab);const _0x4b2198=_0xf23b5a;await super['trackEvent'](_0x54c95f,_0x5da2b3,_0x3e9cff);const _0x2b4257=this['resolveInstance'](_0x54c95f,_0x5da2b3,_0x3e9cff);if(!_0x2b4257){logger['debug'](_0x4b2198['dYNNv']);return;}try{let _0x31d574,_0x18254c;switch(_0x54c95f){case TestFrameworkState[_0x56da63(0x1cc)]:_0x31d574=_0x3e9cff[_0x56da63(0x1a9)],_0x18254c=TestInfo['getTestUUID'](_0x31d574['id']);if(_0x4b2198[_0x56da63(0x116)](_0x5da2b3,HookState[_0x56da63(0x135)])){logger[_0x56da63(0x1db)](_0x56da63(0x197)+_0x31d574['id']);const _0x5e7a4e={};_0x5e7a4e[_0x56da63(0x162)]=_0x18254c,_0x5e7a4e[_0x56da63(0x17b)]=_0x31d574,_0x2b4257[_0x56da63(0x19b)](this[_0x56da63(0x133)](_0x5e7a4e)),logger[_0x56da63(0x1db)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x31d574['id']),await this[_0x56da63(0x14a)](_0x2b4257,_0x31d574['id']);}else{if(_0x4b2198['HTYeu'](_0x5da2b3,HookState[_0x56da63(0x1a3)])){const _0x44897c={};_0x44897c[_0x56da63(0x162)]=_0x18254c,_0x44897c[_0x56da63(0x17b)]=_0x31d574,_0x2b4257['addMultipleEntries'](this[_0x56da63(0x10d)](_0x44897c)),await this[_0x56da63(0x14a)](_0x2b4257,_0x31d574['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x4b2198[_0x56da63(0x116)](_0x5da2b3,HookState['POST'])&&await this[_0x56da63(0x17c)](_0x2b4257,_0x54c95f,_0x3e9cff);break;default:if(CLIUtils[_0x56da63(0x16f)](_0x54c95f['toString']()['split']('.')[0x1])){const _0xd86aa3=await this['trackHookEvent'](_0x2b4257,_0x54c95f,_0x5da2b3,_0x3e9cff);_0x2b4257[_0x56da63(0x19b)](_0xd86aa3);}else logger[_0x56da63(0x1db)](_0x56da63(0x176)+_0x54c95f+_0x56da63(0x13b)+_0x5da2b3);break;}}catch(_0x5dd006){logger[_0x56da63(0x11f)](util[_0x56da63(0x144)](_0x4b2198['alinf'],_0x54c95f,_0x5da2b3,_0x3e9cff[_0x56da63(0x199)],_0x5dd006));}_0x3e9cff[_0x56da63(0x129)]=_0x2b4257,await this['runHooks'](_0x2b4257,_0x54c95f,_0x5da2b3,_0x3e9cff);}['resolveInstance'](_0x419d82,_0x3fe5ba,_0x520fa1={}){const _0x301489=a74_0x186b8e,_0x21b2c1={};_0x21b2c1[_0x301489(0x1aa)]=function(_0x2087a8,_0x38090e){return _0x2087a8===_0x38090e;},_0x21b2c1[_0x301489(0x1d2)]=function(_0x532d17,_0x41752b){return _0x532d17===_0x41752b;};const _0xfe4224=_0x21b2c1;let _0xaaed5f=null;return(_0xfe4224[_0x301489(0x1aa)](_0x419d82,TestFrameworkState[_0x301489(0x1b0)])||_0xfe4224[_0x301489(0x1d2)](_0x419d82,TestFrameworkState[_0x301489(0x13f)]))&&this['trackCucumberInstance'](_0x419d82,_0x520fa1),_0xaaed5f=TestFramework[_0x301489(0x119)](),_0xaaed5f;}[a74_0x186b8e(0x171)](_0x3917ad,_0x48460a){const _0x592903=a74_0x186b8e,_0x2cf469=CLIUtils[_0x592903(0x12b)](),_0x2f73fd=TrackedInstance[_0x592903(0x141)](_0x2cf469);let _0x3b7063=null;logger[_0x592903(0x1db)](_0x592903(0x136)+_0x2cf469+_0x592903(0x17a)+_0x3917ad),_0x3b7063=new TestFrameworkInstance(_0x2f73fd,this[_0x592903(0x1d8)](),this[_0x592903(0x192)](),_0x3917ad,HookState[_0x592903(0x13f)]),TestFramework['setTrackedInstance'](_0x2f73fd,_0x3b7063),logger['debug']('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x2f73fd[_0x592903(0x1b7)]()+_0x592903(0x173)+_0x2cf469);}[a74_0x186b8e(0x133)](_0x283c81){const _0x2440c7=a74_0x186b8e,_0x359303={};_0x359303[_0x2440c7(0x134)]='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x315450=_0x359303,{testUUID:_0xef9a5c,testData:_0x1af3b5}=_0x283c81;if(!_0x1af3b5||!_0x1af3b5[_0x2440c7(0x143)])return logger['debug'](_0x315450[_0x2440c7(0x134)]),{};const _0x2bda74=_0xef9a5c,_0x3a5dc1=_0x1af3b5['uuid'],_0x405775=this[_0x2440c7(0x1d8)]()[0x0],_0x54f38c=this[_0x2440c7(0x192)](),_0xf6cf9a={[TestFrameworkConstants[_0x2440c7(0x15f)]]:_0x405775,[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x54f38c[_0x405775],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants[_0x2440c7(0x163)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants[_0x2440c7(0x139)]]:_0x2bda74,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x2440c7(0x1d5)],[TestFrameworkConstants[_0x2440c7(0x1d3)]]:_0x1af3b5[_0x2440c7(0x1c4)]||'',[TestFrameworkConstants[_0x2440c7(0x15c)]]:_0x1af3b5[_0x2440c7(0x166)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x3a5dc1,[TestFrameworkConstants[_0x2440c7(0x1b9)]]:_0x1af3b5[_0x2440c7(0x1c4)]||'',[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0x1af3b5[_0x2440c7(0x117)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x1af3b5[_0x2440c7(0x16a)]?.[_0x2440c7(0x1a8)]||null,[TestFrameworkConstants[_0x2440c7(0x140)]]:_0x1af3b5[_0x2440c7(0x184)]||[],[TestFrameworkConstants[_0x2440c7(0x1a0)]]:_0x1af3b5[_0x2440c7(0x170)]||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x1af3b5['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x2440c7(0x179)]]:_0x1af3b5[_0x2440c7(0x1a5)]||[],[TestFrameworkConstants[_0x2440c7(0x1cf)]]:_0x1af3b5[_0x2440c7(0x1ce)]?.[_0x2440c7(0x11e)]||_0x1af3b5['name']||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x1af3b5[_0x2440c7(0x157)]||{}};TestInfo[_0x2440c7(0x14c)](_0x3a5dc1,_0xf6cf9a),logger[_0x2440c7(0x1db)]('Parsed\x20cucumber\x20test:\x20'+_0x1af3b5[_0x2440c7(0x1c4)]+_0x2440c7(0x19d)+_0x2bda74);const _0x2b0fa7={};return _0x2b0fa7[_0x3a5dc1]=_0xf6cf9a,_0x2b0fa7;}['parseCucumberTestResult'](_0x4531da){const _0x3ab244=a74_0x186b8e,_0x24ee49={'JPHkp':_0x3ab244(0x186),'HfIxX':_0x3ab244(0x1a7),'xxnnr':function(_0x3220d9,_0x68cf1d){return _0x3220d9===_0x68cf1d;},'zGDXP':'failed','iUCHs':'UnhandledError','GHqwF':function(_0x59b2c3,_0x3f6e90,_0x361478){return _0x59b2c3(_0x3f6e90,_0x361478);},'GjtMV':function(_0x86b6ad,_0x2d7685){return _0x86b6ad>_0x2d7685;},'tlYta':function(_0x2ab027,_0x25ed93){return _0x2ab027>_0x25ed93;}},{testUUID:_0x425b17,testData:_0x32664c}=_0x4531da;if(!_0x32664c||!_0x32664c[_0x3ab244(0x143)])return logger[_0x3ab244(0x1db)](_0x24ee49[_0x3ab244(0x185)]),{};const _0x33a638=this[_0x3ab244(0x132)](TestFrameworkState[_0x3ab244(0x1cc)],HookState['POST']),_0x40d433=_0x32664c[_0x3ab244(0x143)],_0x2023ca=TestInfo[_0x3ab244(0x1c0)](_0x40d433)||{},_0x546258=_0x2023ca?_0x2023ca[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{}:{},_0x39ad1d={..._0x2023ca,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x32664c['result']||_0x24ee49[_0x3ab244(0x1a6)],[TestFrameworkConstants[_0x3ab244(0x1c5)]]:_0x32664c[_0x3ab244(0x1ba)]||new Date()[_0x3ab244(0x15a)](),[TestFrameworkConstants[_0x3ab244(0x1cb)]]:new Date()[_0x3ab244(0x15a)](),[TestFrameworkConstants[_0x3ab244(0x1bc)]]:_0x546258,[TestFrameworkConstants[_0x3ab244(0x17e)]]:[],[TestFrameworkConstants[_0x3ab244(0x122)]]:_0x32664c[_0x3ab244(0x157)]||{}};_0x24ee49[_0x3ab244(0x17f)](_0x32664c[_0x3ab244(0x1dd)],_0x24ee49['zGDXP'])&&_0x32664c[_0x3ab244(0x188)]&&(_0x39ad1d[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x32664c[_0x3ab244(0x14e)]||_0x24ee49[_0x3ab244(0x1bf)],_0x39ad1d[TestFrameworkConstants[_0x3ab244(0x1af)]]=_0x32664c['failure_reason']||'',_0x39ad1d[TestFrameworkConstants[_0x3ab244(0x1be)]]=_0x32664c[_0x3ab244(0x188)]);const _0x55d9d9=TestInfo[_0x3ab244(0x1c0)](_0x40d433)[TestFrameworkConstants[_0x3ab244(0x149)]]||{},_0x552710=_0x24ee49[_0x3ab244(0x1c6)](getManualUploadLogs,_0x55d9d9,_0x33a638['getAllData']()['get'](_0x40d433)[TestFrameworkConstants[_0x3ab244(0x139)]]);if(_0x24ee49[_0x3ab244(0x1d4)](_0x552710[_0x3ab244(0x199)],0x0)){const _0x17c5db=_0x39ad1d[TestFrameworkConstants[_0x3ab244(0x17e)]]||[];_0x39ad1d[TestFrameworkConstants['KEY_LOGS']]=[..._0x17c5db,..._0x552710];}_0x32664c[_0x3ab244(0x178)]&&_0x24ee49[_0x3ab244(0x110)](_0x32664c[_0x3ab244(0x178)][_0x3ab244(0x199)],0x0)&&(_0x39ad1d[TestFrameworkConstants[_0x3ab244(0x163)]]=_0x32664c[_0x3ab244(0x178)]);TestInfo[_0x3ab244(0x14c)](_0x40d433,_0x39ad1d),logger['debug'](_0x3ab244(0x172)+_0x32664c[_0x3ab244(0x1c4)]+_0x3ab244(0x169)+_0x32664c['result']);const _0x235311={};return _0x235311[_0x40d433]=_0x39ad1d,_0x235311;}async[a74_0x186b8e(0x19c)](_0x380f38,_0x1109c1,_0x49ae43,_0x119cf6){const _0x9b462c=a74_0x186b8e,_0x3831af={'AyjBw':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','MUKOZ':function(_0x87d158){return _0x87d158();},'zQvLy':function(_0x4cca83,_0x48358c){return _0x4cca83 in _0x48358c;},'PeRmm':function(_0x23ddfb,_0x18eeb1){return _0x23ddfb===_0x18eeb1;},'rfIfE':function(_0x3d22d5,_0x488c93){return _0x3d22d5===_0x488c93;},'deaJw':function(_0x228fd6,_0x10d1db){return _0x228fd6>_0x10d1db;},'JiMyT':function(_0x50d173,_0x29bf12){return _0x50d173===_0x29bf12;},'KYGpd':'failed','fvIUN':'UnhandledError','ntdAP':_0x9b462c(0x153),'owLKZ':function(_0xb5b850,_0x2db7aa){return _0xb5b850!==_0x2db7aa;}},{hookData:_0x39ff53}=_0x119cf6;if(!_0x39ff53)return logger[_0x9b462c(0x1db)](_0x3831af[_0x9b462c(0x1bb)]),{};const _0x38fddc=_0x39ff53['uuid']||_0x3831af[_0x9b462c(0x1b8)](uuidv4),_0x214411=_0x39ff53[_0x9b462c(0x115)],_0x5f3816=_0x1109c1[_0x9b462c(0x1b6)]()[_0x9b462c(0x181)]('.')[0x1],_0x3456ee=TestInfo['getTestDetails'](_0x214411)[TestFrameworkConstants[_0x9b462c(0x1bc)]]||{},_0x855043=_0x380f38[_0x9b462c(0x1d1)]()[_0x9b462c(0x12c)](_0x214411);if(!_0x855043)return logger[_0x9b462c(0x1db)](_0x9b462c(0x175)+_0x214411+_0x9b462c(0x151)),this[_0x9b462c(0x138)](_0x380f38,_0x214411,_0x1109c1,_0x49ae43,_0x119cf6),{};let _0x313247=_0x855043[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x313247&&(_0x313247={});!_0x3831af[_0x9b462c(0x114)](_0x5f3816,_0x313247)&&(_0x313247[_0x5f3816]=[]);let _0x52e087=_0x855043[TestFrameworkConstants[_0x9b462c(0x163)]];!_0x52e087&&(_0x52e087={});!_0x3831af[_0x9b462c(0x114)](_0x5f3816,_0x52e087)&&(_0x52e087[_0x5f3816]=[]);const _0x2ab03c={[TestFrameworkConstants[_0x9b462c(0x1ca)]]:_0x313247,[TestFrameworkConstants[_0x9b462c(0x163)]]:_0x52e087},_0x462456={};_0x462456[_0x214411]=_0x2ab03c;const _0xc718f0=_0x462456;if(_0x3831af[_0x9b462c(0x19f)](_0x49ae43,HookState[_0x9b462c(0x135)])){const _0x14375c={[TestFrameworkConstants[_0x9b462c(0x126)]]:_0x38fddc,[TestFrameworkConstants[_0x9b462c(0x15b)]]:TestFrameworkConstants[_0x9b462c(0x18a)],[TestFrameworkConstants[_0x9b462c(0x1b4)]]:_0x39ff53[_0x9b462c(0x150)],[TestFrameworkConstants[_0x9b462c(0x12e)]]:[],[TestFrameworkConstants[_0x9b462c(0x159)]]:_0x39ff53[_0x9b462c(0x156)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x3456ee};_0x14375c[_0x9b462c(0x18c)]=_0x5f3816;const _0x516c96=_0x14375c;_0x313247[_0x5f3816][_0x9b462c(0x11c)](_0x516c96),_0xc718f0[_0x214411][TestFrameworkConstants[_0x9b462c(0x1da)]]=_0x5f3816,logger[_0x9b462c(0x1db)](_0x9b462c(0x18e)+_0x5f3816+_0x9b462c(0x16c)+_0x516c96+_0x9b462c(0x191)+_0x119cf6);}else{if(_0x3831af[_0x9b462c(0x18d)](_0x49ae43,HookState[_0x9b462c(0x1a3)])){const _0x2a626a=_0x39ff53['result'],_0x266e4e=_0x313247[_0x5f3816]||[];logger[_0x9b462c(0x1db)](_0x9b462c(0x16d)+_0x266e4e+_0x9b462c(0x113)+_0x119cf6);if(_0x3831af['deaJw'](_0x266e4e[_0x9b462c(0x199)],0x0)){const _0x506672=_0x266e4e[_0x9b462c(0x1c9)]();_0x3831af[_0x9b462c(0x189)](_0x39ff53[_0x9b462c(0x1dd)],_0x3831af[_0x9b462c(0x15d)])&&_0x39ff53[_0x9b462c(0x130)]?(_0x506672[TestFrameworkConstants[_0x9b462c(0x1d7)]]=_0x39ff53[_0x9b462c(0x14e)]||_0x3831af[_0x9b462c(0x11b)],_0x506672[TestFrameworkConstants[_0x9b462c(0x194)]]=_0x39ff53[_0x9b462c(0x165)]||'',_0x506672[TestFrameworkConstants[_0x9b462c(0x1b2)]]=_0x39ff53['failure_data']):_0x506672[TestFrameworkConstants[_0x9b462c(0x15b)]]=_0x3831af[_0x9b462c(0x16b)];_0x3831af[_0x9b462c(0x161)](_0x2a626a,TestFrameworkConstants[_0x9b462c(0x18a)])&&(_0x506672[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x2a626a);_0x506672[TestFrameworkConstants[_0x9b462c(0x12a)]]=_0x39ff53[_0x9b462c(0x18f)]||new Date()[_0x9b462c(0x15a)](),_0x506672[TestFrameworkConstants[_0x9b462c(0x1bc)]]=_0x3456ee;const _0x390b92=_0x506672[TestFrameworkConstants['KEY_HOOK_ID']];!_0x52e087[_0x5f3816]&&(_0x52e087[_0x5f3816]=[]),_0x52e087[_0x5f3816][_0x9b462c(0x11c)](_0x506672),_0xc718f0[_0x214411][TestFrameworkConstants[_0x9b462c(0x11d)]]=_0x5f3816;}}}return logger[_0x9b462c(0x1db)](_0x9b462c(0x198)+_0x39ff53[_0x9b462c(0x156)]+'\x20with\x20id\x20'+_0x38fddc+'\x20for\x20test:\x20'+_0x214411),_0xc718f0;}[a74_0x186b8e(0x158)](_0x104bff){const _0x188d9e=a74_0x186b8e,_0x443140={};_0x443140[_0x188d9e(0x15e)]=_0x188d9e(0x1a4);const _0x37fe58=_0x443140;try{const _0x42b6a0=_0x104bff[_0x188d9e(0x1a9)]?_0x104bff[_0x188d9e(0x1a9)]['id']:_0x104bff[_0x188d9e(0x1c3)][_0x188d9e(0x115)],_0x17f816=_0x104bff[_0x188d9e(0x129)],_0x3dbe97=_0x17f816['getContext'](),_0x20ab99=_0x17f816[_0x188d9e(0x1d1)]()[_0x188d9e(0x12c)](_0x42b6a0);if(!_0x20ab99)return logger[_0x188d9e(0x1db)](_0x188d9e(0x18b)+_0x42b6a0),{};logger[_0x188d9e(0x1db)](_0x188d9e(0x13e)+_0x42b6a0);const {[TestFrameworkConstants[_0x188d9e(0x15f)]]:_0x10c65f='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x533b90='',[TestFrameworkConstants[_0x188d9e(0x1a0)]]:_0x5aa9b4='',[TestFrameworkConstants[_0x188d9e(0x1c5)]]:_0x21718a=''}=_0x20ab99,_0x5bed82=_0x17f816['getCurrentTestState']()[_0x188d9e(0x1b6)]()[_0x188d9e(0x181)]('.')[0x1],_0x22c752=_0x17f816['getCurrentHookState']()[_0x188d9e(0x1b6)]()[_0x188d9e(0x181)]('.')[0x1],_0x4be6f6=global?.[_0x188d9e(0x118)]??0x0,_0x342a77=_0x17f816[_0x188d9e(0x1b5)](),_0x83fe47=Buffer[_0x188d9e(0x1a2)](JSON[_0x188d9e(0x183)](_0x20ab99))[_0x188d9e(0x1b6)](_0x37fe58[_0x188d9e(0x15e)]),_0x512690={'hash':_0x3dbe97[_0x188d9e(0x1b7)](),'threadId':_0x3dbe97['getThreadId']()[_0x188d9e(0x1b6)](),'processId':_0x3dbe97[_0x188d9e(0x14f)]()[_0x188d9e(0x1b6)]()},_0x831ca0={};_0x831ca0[_0x188d9e(0x195)]=_0x4be6f6,_0x831ca0[_0x188d9e(0x1d9)]=_0x10c65f,_0x831ca0[_0x188d9e(0x1d0)]=_0x533b90,_0x831ca0[_0x188d9e(0x168)]=_0x5bed82,_0x831ca0['hookState']=_0x22c752,_0x831ca0['startedAt']=_0x5aa9b4,_0x831ca0[_0x188d9e(0x196)]=_0x21718a,_0x831ca0['uuid']=_0x342a77,_0x831ca0[_0x188d9e(0x145)]=_0x83fe47,_0x831ca0['executionContext']=_0x512690;const _0x578707=_0x831ca0;return logger[_0x188d9e(0x1db)](_0x188d9e(0x154)+_0x42b6a0+'\x20testState:\x20'+_0x5bed82+'\x20hookState:\x20'+_0x22c752),_0x578707;}catch(_0xf64422){return logger[_0x188d9e(0x11f)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x188d9e(0x144)](_0xf64422)),{};}}async[a74_0x186b8e(0x17c)](_0x529e73,_0x14bad7,_0x3690dc){const _0x2b164c=a74_0x186b8e,_0x46789d={'CXzli':function(_0x22e980,_0x3d90c9,_0x31db82){return _0x22e980(_0x3d90c9,_0x31db82);},'lsuhy':function(_0x45601e,_0x3e7254){return _0x45601e===_0x3e7254;},'Dsxzz':_0x2b164c(0x16e),'IQblD':function(_0x158b45,_0x20bc95){return _0x158b45/_0x20bc95;},'DoJaM':function(_0x376690,_0x22ce7b){return _0x376690<_0x22ce7b;},'Hizbl':function(_0x1b2e9a,_0x57c095){return _0x1b2e9a*_0x57c095;},'sgEGU':function(_0xbd29c1,_0x4b51a0){return _0xbd29c1+_0x4b51a0;},'VVcdT':_0x2b164c(0x17d)};try{const _0x52e542=_0x3690dc[_0x2b164c(0x162)],_0xc9085b=_0x529e73[_0x2b164c(0x1d1)]()[_0x2b164c(0x12c)](_0x52e542),{[TestFrameworkConstants[_0x2b164c(0x15f)]]:_0x22550a='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x587dbf=''}=_0xc9085b,_0x2d80c8=TestInfo[_0x2b164c(0x120)](_0x52e542),_0x9df318=TestInfo[_0x2b164c(0x1c0)](_0x52e542)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x263232=_0x46789d[_0x2b164c(0x155)](getMediaArtifactsLogs,_0x9df318,_0x529e73['getAllData']()[_0x2b164c(0x12c)](_0x52e542)[TestFrameworkConstants[_0x2b164c(0x139)]]),_0x51fd14=(_0x2d80c8||[])[_0x2b164c(0x160)](_0x263232||[]);if(!_0x51fd14||_0x46789d['lsuhy'](_0x51fd14[_0x2b164c(0x199)],0x0)){logger[_0x2b164c(0x1db)](_0x46789d[_0x2b164c(0x1ac)]);return;}const _0x52285c=0x28,_0x3b740a=Math[_0x2b164c(0x112)](_0x46789d[_0x2b164c(0x167)](_0x51fd14['length'],_0x52285c));for(let _0x1f434e=0x0;_0x46789d['DoJaM'](_0x1f434e,_0x3b740a);_0x1f434e++){const _0xdc2ffd=_0x46789d[_0x2b164c(0x190)](_0x1f434e,_0x52285c),_0x47331c=_0x46789d[_0x2b164c(0x1dc)](_0xdc2ffd,_0x52285c),_0x4ef691=_0x51fd14[_0x2b164c(0x1c1)](_0xdc2ffd,_0x47331c),_0x117ae4={'platformIndex':global?.[_0x2b164c(0x118)]??0x0,'logs':_0x4ef691,'testFrameworkName':_0x22550a,'testFrameworkVersion':_0x587dbf,'testFrameworkState':_0x14bad7[_0x2b164c(0x1b6)]()[_0x2b164c(0x181)]('.')[0x1]};logger[_0x2b164c(0x1db)](_0x2b164c(0x11a)+_0x52e542+_0x2b164c(0x13d)+_0x46789d[_0x2b164c(0x1dc)](_0x1f434e,0x1)+'/'+_0x3b740a+'\x20payload='+util[_0x2b164c(0x1c8)](_0x117ae4));const _0x32ed4b=await GrpcClient[_0x2b164c(0x146)]()[_0x2b164c(0x128)](_0x117ae4);logger[_0x2b164c(0x1db)](_0x2b164c(0x11a)+_0x52e542+_0x2b164c(0x13d)+_0x46789d['sgEGU'](_0x1f434e,0x1)+'/'+_0x3b740a+_0x2b164c(0x19e)+util[_0x2b164c(0x1c8)](_0x32ed4b));}}catch(_0x5ed263){logger[_0x2b164c(0x11f)]('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util[_0x2b164c(0x144)](_0x5ed263));}logger[_0x2b164c(0x1db)](_0x46789d[_0x2b164c(0x187)]);}[a74_0x186b8e(0x138)](_0x56e5c3,_0x5bdae5,_0x45980a,_0x4752ec,_0x335d7e){const _0x5cb33f=a74_0x186b8e,_0x578ccf={'testId':_0x5bdae5,'testFrameworkState':_0x45980a,'hookState':_0x4752ec,'args':_0x335d7e,'timestamp':new Date()[_0x5cb33f(0x15a)]()};_0x56e5c3[_0x5cb33f(0x13c)](_0x5bdae5,_0x578ccf),logger[_0x5cb33f(0x1db)](_0x5cb33f(0x14d)+_0x5bdae5+_0x5cb33f(0x164)+_0x45980a+_0x5cb33f(0x142)+_0x4752ec);}async['processPendingHooks'](_0x598f6e,_0xa99c3){const _0x277be4=a74_0x186b8e,_0x51d09c={};_0x51d09c[_0x277be4(0x1c2)]=function(_0x54e776,_0x3f1bbd){return _0x54e776>_0x3f1bbd;};const _0x3109b8=_0x51d09c;if(!_0x598f6e['hasPendingHooks'](_0xa99c3))return;const _0x1265d6=_0x598f6e[_0x277be4(0x1b3)](_0xa99c3);logger[_0x277be4(0x1db)]('Processing\x20'+_0x1265d6[_0x277be4(0x199)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0xa99c3);for(const _0x50ef99 of _0x1265d6){try{const _0x413f1f=await this[_0x277be4(0x19c)](_0x598f6e,_0x50ef99['testFrameworkState'],_0x50ef99[_0x277be4(0x148)],_0x50ef99['args']);_0x413f1f&&_0x3109b8[_0x277be4(0x1c2)](Object[_0x277be4(0x174)](_0x413f1f)[_0x277be4(0x199)],0x0)&&_0x598f6e[_0x277be4(0x19b)](_0x413f1f),await this[_0x277be4(0x1a1)](_0x598f6e,_0x50ef99[_0x277be4(0x168)],_0x50ef99['hookState'],_0x50ef99[_0x277be4(0x12f)]);}catch(_0x1ed864){logger[_0x277be4(0x11f)](_0x277be4(0x10e)+_0xa99c3+',\x20error:\x20'+_0x1ed864);}}_0x598f6e[_0x277be4(0x1c7)](_0xa99c3),logger[_0x277be4(0x1db)](_0x277be4(0x177)+_0xa99c3);}}module[a74_0x186b8e(0x111)]=CucumberTestFramework;
|