browserstack-node-sdk 1.58.0 → 1.60.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 +3 -3
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/assets/report.html +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/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.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/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -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/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/bin/v2/cliUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a84_0x530dc9=a84_0x4f7e;(function(_0x568a78,_0x24f952){const _0x150558=a84_0x4f7e,_0x444f9e=_0x568a78();while(!![]){try{const _0x45de6c=-parseInt(_0x150558(0x24b))/0x1+-parseInt(_0x150558(0x243))/0x2+-parseInt(_0x150558(0x289))/0x3*(parseInt(_0x150558(0x250))/0x4)+parseInt(_0x150558(0x217))/0x5*(parseInt(_0x150558(0x20a))/0x6)+-parseInt(_0x150558(0x267))/0x7*(parseInt(_0x150558(0x1b6))/0x8)+-parseInt(_0x150558(0x247))/0x9*(-parseInt(_0x150558(0x25b))/0xa)+-parseInt(_0x150558(0x23f))/0xb*(-parseInt(_0x150558(0x1fe))/0xc);if(_0x45de6c===_0x24f952)break;else _0x444f9e['push'](_0x444f9e['shift']());}catch(_0x5f2d64){_0x444f9e['push'](_0x444f9e['shift']());}}}(a84_0x2a8d,0x67058));const fs=require('fs'),os=require('os'),url=require(a84_0x530dc9(0x221)),path=require(a84_0x530dc9(0x25e)),{exec}=require('child_process'),{https}=require(a84_0x530dc9(0x266)),yauzl=require(a84_0x530dc9(0x287)),util=require(a84_0x530dc9(0x277)),{getFrameworkVersion}=require(a84_0x530dc9(0x1cc)),{threadId}=require(a84_0x530dc9(0x239)),PerformanceTester=require(a84_0x530dc9(0x1cb)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a84_0x530dc9(0x251)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a84_0x530dc9(0x203)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require(a84_0x530dc9(0x226)),TestFrameworkInstance=require(a84_0x530dc9(0x273)),HookState=require(a84_0x530dc9(0x22c)),TestFrameworkState=require(a84_0x530dc9(0x1f4)),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a84_0x530dc9(0x26b)),{getBStackAPIUrl}=require(a84_0x530dc9(0x215));class CLIUtils{['automationFrameworkDetail']={};['testFrameworkDetail']={};static[a84_0x530dc9(0x23d)](){const _0x2e241c=a84_0x530dc9,_0x8a5a14={};_0x8a5a14[_0x2e241c(0x1fb)]=function(_0x430e09,_0x4bfbd7){return _0x430e09===_0x4bfbd7;},_0x8a5a14['ytpGP']=_0x2e241c(0x23c);const _0x2cccf8=_0x8a5a14;return _0x2cccf8['sMpBi'](process[_0x2e241c(0x27d)][_0x2e241c(0x1f9)],_0x2cccf8['ytpGP']);}static['getCLIParamsForDevEnv'](){const _0x7ff3b0=a84_0x530dc9,_0x40f89b={};return _0x40f89b['id']=process[_0x7ff3b0(0x27d)][_0x7ff3b0(0x1f9)],_0x40f89b[_0x7ff3b0(0x201)]=_0x7ff3b0(0x262)+process[_0x7ff3b0(0x27d)]['BROWSERSTACK_CLI_ENV']+_0x7ff3b0(0x220),_0x40f89b;}static[a84_0x530dc9(0x1e4)](){const _0x19b39d=a84_0x530dc9,_0x376339={'zBlDc':function(_0x4b3723,_0x2ee0bf){return _0x4b3723(_0x2ee0bf);},'WAXgH':_0x19b39d(0x1e9)};return _0x376339[_0x19b39d(0x237)](require,_0x376339[_0x19b39d(0x1ce)])['version'];}static['getSdkLanguage'](){const _0xadcc25=a84_0x530dc9,_0xcacd3f={};_0xcacd3f['KuHIA']=_0xadcc25(0x27b);const _0x168c41=_0xcacd3f;return _0x168c41['KuHIA'];}static async['setupCliPath'](_0x48c3d4){const _0xf44fa6=a84_0x530dc9,_0x5550f5={'EWNlp':_0xf44fa6(0x1dd),'lBLtC':function(_0x171d10,_0x2fe91d){return _0x171d10(_0x2fe91d);},'DVhki':function(_0xd0200a,_0x4e1e52){return _0xd0200a(_0x4e1e52);},'ugVkV':_0xf44fa6(0x1c6)};logger[_0xf44fa6(0x20b)](_0x5550f5[_0xf44fa6(0x271)]);const _0x5e66fc=process[_0xf44fa6(0x27d)][_0xf44fa6(0x207)];if(!_0x5550f5[_0xf44fa6(0x1f1)](isNullOrEmpty,_0x5e66fc))return logger['debug']('Development\x20Cli\x20Path:\x20'+_0x5e66fc),_0x5e66fc;try{const _0x6b1570=this['getCliDir']();if(_0x5550f5[_0xf44fa6(0x26e)](isNullOrEmpty,_0x6b1570))throw new Error(_0x5550f5['ugVkV']);const _0x592e0e=this[_0xf44fa6(0x265)](_0x6b1570),_0x5ebe54=await this[_0xf44fa6(0x1c4)](_0x592e0e,_0x6b1570,_0x48c3d4);return logger[_0xf44fa6(0x20b)](_0xf44fa6(0x246)+_0x5ebe54),_0x5ebe54;}catch(_0x18d6a5){logger[_0xf44fa6(0x20b)](_0xf44fa6(0x258)+util[_0xf44fa6(0x279)](_0x18d6a5));}return null;}static async['checkAndUpdateCli'](_0x3db83c,_0x2e03a5,_0x2bd6c8){const _0xf6fa4b=a84_0x530dc9,_0x12b015={'zsveF':function(_0x317a7c){return _0x317a7c();},'fgMXH':function(_0x404d8e,_0x584567){return _0x404d8e(_0x584567);},'HghdQ':function(_0x41f1a1,_0x72ab0b,_0x58fed0){return _0x41f1a1(_0x72ab0b,_0x58fed0);},'oImmX':_0xf6fa4b(0x252),'sjQBh':'url'};PerformanceTester['start'](PerformanceEvents[_0xf6fa4b(0x242)]),logger['info']('Current\x20CLI\x20Path\x20Found:\x20'+_0x3db83c);const _0x46bc89=_0x12b015[_0xf6fa4b(0x28e)](getHostInfo),_0x327abf={'sdk_version':CLIUtils[_0xf6fa4b(0x1e4)](),'os':_0x46bc89['platform'],'os_arch':_0x46bc89[_0xf6fa4b(0x23e)],'cli_version':'0','sdk_language':this[_0xf6fa4b(0x229)]()};!_0x12b015[_0xf6fa4b(0x228)](isNullOrEmpty,_0x3db83c)&&(_0x327abf['cli_version']=await this[_0xf6fa4b(0x1e0)](_0x3db83c+_0xf6fa4b(0x212)));const _0x38c8dc=await this['requestToUpdateCLI'](_0x327abf,_0x2bd6c8);process['env'][_0xf6fa4b(0x1bc)]&&(logger[_0xf6fa4b(0x248)](_0xf6fa4b(0x284)+process[_0xf6fa4b(0x27d)][_0xf6fa4b(0x1bc)]),_0x38c8dc[_0xf6fa4b(0x252)][_0xf6fa4b(0x221)]=process[_0xf6fa4b(0x27d)][_0xf6fa4b(0x1bc)]);if(_0x12b015[_0xf6fa4b(0x26c)](nestedKeyValue,_0x38c8dc,[_0x12b015[_0xf6fa4b(0x1f0)],_0x12b015[_0xf6fa4b(0x1f5)]])){logger['debug'](_0xf6fa4b(0x1ba)+_0x327abf[_0xf6fa4b(0x20f)]);if(!_0x12b015[_0xf6fa4b(0x228)](isNullOrEmpty,_0x3db83c)&&this[_0xf6fa4b(0x20c)](_0x3db83c))return logger['warn'](_0xf6fa4b(0x224)+_0x3db83c),PerformanceTester[_0xf6fa4b(0x1e5)](PerformanceEvents[_0xf6fa4b(0x242)]),_0x3db83c;const _0x4edbcb=await this[_0xf6fa4b(0x24c)](_0x12b015['HghdQ'](nestedKeyValue,_0x38c8dc,[_0x12b015[_0xf6fa4b(0x1f0)],_0x12b015['sjQBh']]),_0x2e03a5);return PerformanceTester[_0xf6fa4b(0x1e5)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x4edbcb;}return PerformanceTester[_0xf6fa4b(0x1e5)](PerformanceEvents[_0xf6fa4b(0x242)]),_0x3db83c;}static[a84_0x530dc9(0x1e1)](){const _0x1504f1=a84_0x530dc9,_0x1b958a={'ExHQV':function(_0xf9c6,_0x4d1b94){return _0xf9c6(_0x4d1b94);},'vfEIq':_0x1504f1(0x1c6),'ZogrB':'cli','YGEDP':function(_0x2f2bca,_0x5c9836){return _0x2f2bca(_0x5c9836);}},_0x47a334=this[_0x1504f1(0x28c)]();try{if(_0x1b958a['ExHQV'](isNullOrEmpty,_0x47a334))throw new Error(_0x1b958a[_0x1504f1(0x1b4)]);const _0xa222e6=path[_0x1504f1(0x28f)](_0x47a334,_0x1b958a['ZogrB']);return!fs[_0x1504f1(0x28d)](_0xa222e6)&&_0x1b958a['YGEDP'](createDir,_0xa222e6),_0xa222e6;}catch(_0x19a8d1){logger[_0x1504f1(0x20b)](_0x1504f1(0x1d5)+util[_0x1504f1(0x279)](_0x19a8d1));}}static[a84_0x530dc9(0x28c)](){const _0x19f3bf=a84_0x530dc9,_0x9b1b3d={'BuvBX':_0x19f3bf(0x270),'UHuEt':function(_0x361d99,_0x149253){return _0x361d99(_0x149253);},'ukFyu':function(_0x263a9a,_0x3a31a8){return _0x263a9a(_0x3a31a8);}},_0x2b4e69=[process['env'][_0x19f3bf(0x256)],path[_0x19f3bf(0x28f)](os[_0x19f3bf(0x253)](),_0x9b1b3d['BuvBX']),path[_0x19f3bf(0x28f)](os['tmpdir'](),_0x9b1b3d['BuvBX'])];for(const _0x176678 of _0x2b4e69){if(_0x9b1b3d['UHuEt'](isNullOrEmpty,_0x176678))continue;try{if(fs[_0x19f3bf(0x28d)](_0x176678)){logger[_0x19f3bf(0x20b)](_0x19f3bf(0x282)+_0x176678+_0x19f3bf(0x1ea));if(!_0x9b1b3d[_0x19f3bf(0x211)](isModifiable,_0x176678)){logger['debug'](_0x19f3bf(0x269)+_0x176678);const _0xb482a6=_0x9b1b3d[_0x19f3bf(0x211)](setReadWriteExecuteAccess,_0x176678);if(!_0x9b1b3d[_0x19f3bf(0x211)](isTrue,_0xb482a6)){logger[_0x19f3bf(0x278)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x176678);continue;}}}else{logger[_0x19f3bf(0x20b)](_0x19f3bf(0x1f7)+_0x176678),_0x9b1b3d[_0x19f3bf(0x231)](createDir,_0x176678),logger['debug'](_0x19f3bf(0x269)+_0x176678);const _0x501e3c=_0x9b1b3d[_0x19f3bf(0x231)](setReadWriteExecuteAccess,_0x176678);!_0x9b1b3d[_0x19f3bf(0x211)](isTrue,_0x501e3c)&&logger[_0x19f3bf(0x278)](_0x19f3bf(0x1c2)+_0x176678);}return _0x176678;}catch(_0x2dff16){logger[_0x19f3bf(0x235)](_0x19f3bf(0x227)+util[_0x19f3bf(0x279)](_0x2dff16));}}return null;}static[a84_0x530dc9(0x265)](_0x2e8d53){const _0x58f9c8=a84_0x530dc9,_0x511c58={};_0x511c58[_0x58f9c8(0x1af)]=function(_0x52284a,_0x14eaf0){return _0x52284a>_0x14eaf0;};const _0x362855=_0x511c58;try{if(!fs[_0x58f9c8(0x28d)](_0x2e8d53)||!fs[_0x58f9c8(0x20e)](_0x2e8d53)['isDirectory']())return'';const _0x1bce2=fs[_0x58f9c8(0x1d0)](_0x2e8d53)['map'](_0x5d0fe5=>path[_0x58f9c8(0x28f)](_0x2e8d53,_0x5d0fe5))[_0x58f9c8(0x280)](_0x1c46ed=>fs[_0x58f9c8(0x20e)](_0x1c46ed)[_0x58f9c8(0x1ec)]()&&path['basename'](_0x1c46ed)['startsWith'](_0x58f9c8(0x1f6)));if(_0x362855[_0x58f9c8(0x1af)](_0x1bce2['length'],0x0)){const _0x6dd9b5=_0x1bce2['map'](_0x33afb=>({'filePath':_0x33afb,'mtime':fs['statSync'](_0x33afb)['mtime']}))[_0x58f9c8(0x1bb)]((_0x2c7202,_0x5745d1)=>{const _0x5a5b97=_0x58f9c8;if(!_0x2c7202||!_0x2c7202[_0x5a5b97(0x1d9)])return _0x5745d1;if(_0x362855['fTCuQ'](_0x5745d1[_0x5a5b97(0x1d9)],_0x2c7202[_0x5a5b97(0x1d9)]))return _0x5745d1;return _0x2c7202;},{});return _0x6dd9b5?_0x6dd9b5['filePath']:'';}return'';}catch(_0x5eb23e){return logger[_0x58f9c8(0x235)](_0x58f9c8(0x268)+util['format'](_0x5eb23e)),'';}}static [a84_0x530dc9(0x1ff)]=async(_0x5b327e,_0x361204)=>{const _0x3ce1ed=a84_0x530dc9,_0x404403={'wjpEa':function(_0x4eebb2,_0x2e76c2,_0x1d85fe,_0x1876ce,_0x10c170){return _0x4eebb2(_0x2e76c2,_0x1d85fe,_0x1876ce,_0x10c170);},'ejrVK':_0x3ce1ed(0x1c5)},_0x1ce548={};_0x1ce548['qs']=_0x5b327e;const _0x4dbadc=await _0x404403['wjpEa'](nodeRequest,_0x404403[_0x3ce1ed(0x218)],UPDATED_CLI_ENDPOINT,_0x1ce548,_0x361204);return logger[_0x3ce1ed(0x20b)](_0x3ce1ed(0x1b5)+JSON[_0x3ce1ed(0x286)](_0x4dbadc)),_0x4dbadc;};static[a84_0x530dc9(0x20c)](_0x157ac5){const _0x1f28ce=a84_0x530dc9;try{const _0x5c4a7c=fs[_0x1f28ce(0x1c7)](_0x157ac5,'r+');return fs[_0x1f28ce(0x1c3)](_0x5c4a7c),![];}catch(_0x2398d5){if(BINARY_BUSY_ERROR_CODES['includes'](_0x2398d5['code']))return logger[_0x1f28ce(0x20b)]('Binary\x20is\x20busy:\x20'+_0x157ac5),!![];return logger['debug'](_0x1f28ce(0x264)+_0x2398d5[_0x1f28ce(0x249)]),![];}}static['runShellCommand'](_0x226be3,_0x1838d3=''){const _0x509223=a84_0x530dc9,_0x1d176f={'upQom':function(_0x5a392f,_0x13cb2c){return _0x5a392f(_0x13cb2c);},'bDxyU':_0x509223(0x22d),'KFLJq':_0x509223(0x1d1),'hrxlV':function(_0x47ac94,_0x325e04){return _0x47ac94(_0x325e04);},'eWVFW':function(_0x25c0aa,_0x52637d,_0x2b90ba,_0x195e87){return _0x25c0aa(_0x52637d,_0x2b90ba,_0x195e87);},'uKqoi':'error'};return new Promise((_0x1c54da,_0x4101d8)=>{const _0x2fd112=_0x509223,_0x731d4f={'bRzhF':_0x1d176f[_0x2fd112(0x1c0)],'hOaKN':function(_0x4c90b8,_0x552d10){return _0x1d176f['hrxlV'](_0x4c90b8,_0x552d10);},'tVljR':function(_0x4e707e,_0xce0f45){const _0x1d05e2=_0x2fd112;return _0x1d176f[_0x1d05e2(0x234)](_0x4e707e,_0xce0f45);},'Xzeii':_0x1d176f['bDxyU']},_0x1e02bd={};_0x1e02bd[_0x2fd112(0x288)]=_0x1838d3,_0x1e02bd[_0x2fd112(0x1e7)]=0x1388;const _0x422b49=_0x1d176f[_0x2fd112(0x254)](exec,_0x226be3,_0x1e02bd,(_0x40bf4c,_0x1381a2,_0x20f87f)=>{const _0xe7d3e3=_0x2fd112;if(_0x40bf4c){if(_0x226be3[_0xe7d3e3(0x21a)](_0x731d4f[_0xe7d3e3(0x1b9)])&&(_0x1381a2[_0xe7d3e3(0x25f)]()||_0x20f87f[_0xe7d3e3(0x25f)]())){const _0x58f63f=_0x1381a2[_0xe7d3e3(0x25f)]()||_0x20f87f[_0xe7d3e3(0x25f)]();logger[_0xe7d3e3(0x20b)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x58f63f+'\x22'),_0x731d4f[_0xe7d3e3(0x21e)](_0x1c54da,_0x58f63f);}else _0x731d4f[_0xe7d3e3(0x22e)](_0x1c54da,_0x20f87f[_0xe7d3e3(0x25f)]()||_0x731d4f[_0xe7d3e3(0x245)]);}else logger['debug'](_0xe7d3e3(0x272)+_0x1381a2[_0xe7d3e3(0x25f)]()+'\x22'),_0x731d4f[_0xe7d3e3(0x21e)](_0x1c54da,_0x1381a2[_0xe7d3e3(0x25f)]());});_0x422b49['on'](_0x1d176f[_0x2fd112(0x281)],()=>{const _0x2090d7=_0x2fd112;_0x1d176f[_0x2090d7(0x22a)](_0x1c54da,_0x1d176f[_0x2090d7(0x219)]);});});}static [a84_0x530dc9(0x24c)]=async(_0x3bcb84,_0x96c9a1)=>{const _0x4cf92c=a84_0x530dc9,_0x5cc277={'yZtCl':function(_0x5dfbe1,_0x1f9d4c){return _0x5dfbe1(_0x1f9d4c);},'oLnee':_0x4cf92c(0x238),'VWHZf':function(_0x317bcc,_0x40e19b){return _0x317bcc(_0x40e19b);},'NbNIt':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','WHdue':function(_0x1841a3,_0x1fb72f){return _0x1841a3(_0x1fb72f);},'JYSWR':_0x4cf92c(0x235)};PerformanceTester[_0x4cf92c(0x222)](PerformanceEvents[_0x4cf92c(0x22b)]),logger['debug'](_0x4cf92c(0x1e2)+_0x3bcb84);try{const _0x1b534f=url[_0x4cf92c(0x1d8)](_0x3bcb84),_0x45eece=path[_0x4cf92c(0x28f)](_0x96c9a1,_0x4cf92c(0x1b2)+process['pid']+_0x4cf92c(0x24f)),_0x3483e9=fs['createWriteStream'](_0x45eece);return new Promise((_0x4aa750,_0x56431c)=>{const _0x25b3d8=_0x4cf92c,_0x3d74a9={'nlaSH':_0x5cc277[_0x25b3d8(0x1fd)],'VesNM':function(_0x3f8f50,_0x48e5d5){return _0x5cc277['VWHZf'](_0x3f8f50,_0x48e5d5);},'MvGjR':_0x5cc277['NbNIt'],'nPuHj':function(_0x83684b,_0x2a7e5b){const _0x4f7b3c=_0x25b3d8;return _0x5cc277[_0x4f7b3c(0x27c)](_0x83684b,_0x2a7e5b);},'LQqnH':function(_0xf9221f,_0x1e1a24){const _0x564ae4=_0x25b3d8;return _0x5cc277[_0x564ae4(0x27c)](_0xf9221f,_0x1e1a24);},'rvQez':function(_0xd2dc9c,_0x51de3d){return _0x5cc277['WHdue'](_0xd2dc9c,_0x51de3d);},'wODDG':_0x5cc277['JYSWR']};https[_0x25b3d8(0x24a)](_0x1b534f,function(_0x199a7b){const _0x354270=_0x25b3d8,_0x3b6423={'UOZKq':function(_0x46de42,_0x2d0cf7){const _0xfc41ba=a84_0x4f7e;return _0x3d74a9[_0xfc41ba(0x232)](_0x46de42,_0x2d0cf7);}},_0x2e4732=null;_0x199a7b[_0x354270(0x274)](_0x3483e9),_0x199a7b['on'](_0x3d74a9['wODDG'],function(_0x542c7f){const _0xb4c7f5=_0x354270;logger[_0xb4c7f5(0x235)](util[_0xb4c7f5(0x279)](_0x3d74a9[_0xb4c7f5(0x1da)],_0x542c7f)),PerformanceTester['end'](PerformanceEvents[_0xb4c7f5(0x22b)],![],util['format'](_0x542c7f)),_0x3d74a9[_0xb4c7f5(0x25a)](_0x56431c,_0x542c7f);}),_0x3483e9['on'](_0x3d74a9[_0x354270(0x1be)],function(_0x107c16){const _0x1665fa=_0x354270;logger[_0x1665fa(0x235)](util[_0x1665fa(0x279)](_0x3d74a9[_0x1665fa(0x283)],_0x107c16)),PerformanceTester[_0x1665fa(0x1e5)](PerformanceEvents[_0x1665fa(0x22b)],![],util[_0x1665fa(0x279)](_0x107c16)),_0x3d74a9['nPuHj'](_0x56431c,_0x107c16);}),CLIUtils['downloadFileStream'](_0x3483e9,_0x2e4732,_0x45eece,_0x96c9a1,_0x25141b=>{const _0x5bfa35=_0x354270;PerformanceTester[_0x5bfa35(0x1e5)](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x3b6423[_0x5bfa35(0x1c1)](_0x4aa750,_0x25141b);},_0x340db9=>{const _0x20f612=_0x354270;PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x20f612(0x279)](_0x340db9)),_0x3d74a9[_0x20f612(0x202)](_0x56431c,_0x340db9);});})['on'](_0x5cc277[_0x25b3d8(0x263)],function(_0x55e849){const _0x30d928=_0x25b3d8;logger['error'](_0x30d928(0x216)+util['format'](_0x55e849)),PerformanceTester['end'](PerformanceEvents[_0x30d928(0x22b)],![],util[_0x30d928(0x279)](_0x55e849)),_0x5cc277[_0x30d928(0x1df)](_0x56431c,_0x55e849);});});}catch(_0x14cbf3){PerformanceTester[_0x4cf92c(0x1e5)](PerformanceEvents[_0x4cf92c(0x22b)],![],util[_0x4cf92c(0x279)](_0x14cbf3)),logger['debug'](_0x4cf92c(0x1b0)+util[_0x4cf92c(0x279)](_0x14cbf3));}};static[a84_0x530dc9(0x261)](_0x2edb97,_0xff5c2f,_0x556f60,_0x11aa91,_0x2f1764,_0x127110){const _0x2df66a=a84_0x530dc9,_0xf7200a={'xxkYw':function(_0x341d22,_0xba6204){return _0x341d22(_0xba6204);},'HjGIg':_0x2df66a(0x275),'kNUPP':_0x2df66a(0x1e5),'ceogf':function(_0x33af52,_0x288483){return _0x33af52!==_0x288483;},'sQwdM':function(_0x4db1d5,_0xad0735){return _0x4db1d5(_0xad0735);},'EGIEJ':_0x2df66a(0x235),'egQfZ':function(_0x4ab44c,_0x386a81){return _0x4ab44c(_0x386a81);},'CxAcq':function(_0x1103eb,_0x45bc56){return _0x1103eb!==_0x45bc56;},'VAIps':'EXDEV','obRKd':_0x2df66a(0x1db),'kZYbA':'entry'};_0x2edb97['on'](_0xf7200a[_0x2df66a(0x21f)],function(){const _0x26aee6=_0x2df66a,_0x49a80c={'rEaQW':function(_0x2091f0,_0x4a5aab){const _0x2310e6=a84_0x4f7e;return _0xf7200a[_0x2310e6(0x1cf)](_0x2091f0,_0x4a5aab);},'RbKDa':_0xf7200a[_0x26aee6(0x21f)],'WoUoP':_0xf7200a[_0x26aee6(0x26d)],'foBVD':function(_0x29fa93,_0x35d66a){const _0x1cd49d=_0x26aee6;return _0xf7200a[_0x1cd49d(0x21d)](_0x29fa93,_0x35d66a);},'SzOwm':function(_0x54bebf,_0x1e0594){const _0x5efc15=_0x26aee6;return _0xf7200a[_0x5efc15(0x1cf)](_0x54bebf,_0x1e0594);},'JouOB':function(_0x14a1b7,_0x56f0d4){return _0xf7200a['sQwdM'](_0x14a1b7,_0x56f0d4);},'YmDvv':_0xf7200a[_0x26aee6(0x244)],'hXkOq':function(_0x507b7c,_0x35d311){const _0x4cee11=_0x26aee6;return _0xf7200a[_0x4cee11(0x22f)](_0x507b7c,_0x35d311);},'AhYDS':function(_0x5bdfaf,_0x4d9547){const _0x830d9e=_0x26aee6;return _0xf7200a[_0x830d9e(0x200)](_0x5bdfaf,_0x4d9547);},'Fekju':_0xf7200a['VAIps'],'fVtCJ':_0xf7200a[_0x26aee6(0x24e)],'Xszig':function(_0x2d8d87,_0x134219){const _0x34047a=_0x26aee6;return _0xf7200a[_0x34047a(0x1cf)](_0x2d8d87,_0x134219);},'AizRs':_0xf7200a[_0x26aee6(0x1d3)]},_0x502d34={};_0x502d34[_0x26aee6(0x20d)]=!![],yauzl[_0x26aee6(0x21c)](_0x556f60,_0x502d34,function(_0x4e6de5,_0x6c1e9a){const _0x9474f8=_0x26aee6,_0x5defdb={'cRInB':function(_0x32c9d9,_0x11fa2e){return _0x49a80c['AhYDS'](_0x32c9d9,_0x11fa2e);},'ClCpL':_0x49a80c[_0x9474f8(0x1b3)],'kLIOg':function(_0x423a67,_0x109feb){return _0x49a80c['SzOwm'](_0x423a67,_0x109feb);},'tJUJt':_0x49a80c[_0x9474f8(0x1ed)]};if(_0x4e6de5){_0x49a80c[_0x9474f8(0x1bf)](_0x127110,_0x4e6de5);return;}_0x6c1e9a[_0x9474f8(0x1de)](),_0x6c1e9a['on'](_0x49a80c[_0x9474f8(0x257)],_0x47632d=>{const _0x1be130=_0x9474f8,_0x2d9237={'fYaRk':function(_0x55d561,_0x1202d7){return _0x49a80c['rEaQW'](_0x55d561,_0x1202d7);},'EQKcN':function(_0x1ce571,_0xf645e5){const _0x15bc16=a84_0x4f7e;return _0x49a80c[_0x15bc16(0x230)](_0x1ce571,_0xf645e5);},'ycEuh':_0x49a80c[_0x1be130(0x259)],'hlZAo':_0x49a80c['WoUoP']};if(/\/$/['test'](_0x47632d[_0x1be130(0x26f)])){_0x6c1e9a['readEntry']();return;}!_0xff5c2f&&(_0xff5c2f=_0x47632d[_0x1be130(0x26f)]);if(_0x49a80c[_0x1be130(0x28b)](_0x47632d[_0x1be130(0x26f)],_0xff5c2f))_0x6c1e9a[_0x1be130(0x1de)]();else{const _0x580301=_0x47632d[_0x1be130(0x26f)],_0x4759ee=path['join'](_0x11aa91,_0x580301+_0x1be130(0x209)+process[_0x1be130(0x208)]);let _0x22107;try{_0x22107=fs[_0x1be130(0x1d6)](_0x4759ee);}catch(_0xa0d7a6){if(BINARY_BUSY_ERROR_CODES[_0x1be130(0x21a)](_0xa0d7a6[_0x1be130(0x210)])){const _0x10201c=path[_0x1be130(0x28f)](_0x11aa91,_0x580301);if(fs['existsSync'](_0x10201c)){logger[_0x1be130(0x278)](_0x1be130(0x1d2)+_0x580301),fs[_0x1be130(0x1ef)](_0x556f60,_0x575d5d=>{const _0xc6d5ee=_0x1be130;_0x575d5d&&logger[_0xc6d5ee(0x278)](_0xc6d5ee(0x27a)+_0x556f60);}),_0x49a80c[_0x1be130(0x223)](_0x2f1764,_0x10201c);return;}logger['warn']('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x580301);}_0x49a80c[_0x1be130(0x1eb)](_0x127110,_0xa0d7a6);return;}_0x22107['on'](_0x49a80c[_0x1be130(0x1b8)],_0x36aebf=>{const _0x5631bf=_0x1be130;if(BINARY_BUSY_ERROR_CODES[_0x5631bf(0x21a)](_0x36aebf[_0x5631bf(0x210)])){const _0x3a45ea=path[_0x5631bf(0x28f)](_0x11aa91,_0x580301);_0x22107['close'](),fs[_0x5631bf(0x28d)](_0x3a45ea)?(logger[_0x5631bf(0x278)](_0x5631bf(0x21b)+_0x36aebf['message']),_0x6c1e9a[_0x5631bf(0x275)](),fs[_0x5631bf(0x1ef)](_0x556f60,_0x558c0=>{const _0x43a96b=_0x5631bf;_0x558c0&&logger['warn'](_0x43a96b(0x27a)+_0x556f60);}),_0x2d9237[_0x5631bf(0x285)](_0x2f1764,_0x3a45ea)):(logger[_0x5631bf(0x278)](_0x5631bf(0x1bd)+_0x36aebf[_0x5631bf(0x249)]),fs['unlink'](_0x4759ee,()=>{}),_0x2d9237['EQKcN'](_0x127110,_0x36aebf));}else fs[_0x5631bf(0x1ef)](_0x4759ee,()=>{}),_0x2d9237[_0x5631bf(0x290)](_0x127110,_0x36aebf);}),_0x6c1e9a[_0x1be130(0x206)](_0x47632d,function(_0x51f279,_0x3b89c4){const _0x3bd2b8=_0x1be130,_0x583eb5={};_0x583eb5['gMqCd']=_0x2d9237['ycEuh'];const _0x519d90=_0x583eb5;if(_0x51f279){fs[_0x3bd2b8(0x1ef)](_0x4759ee,()=>{}),_0x2d9237[_0x3bd2b8(0x285)](_0x127110,_0x51f279);return;}_0x3b89c4['on'](_0x2d9237[_0x3bd2b8(0x240)],function(){const _0x5d872d=_0x3bd2b8;_0x22107[_0x5d872d(0x1e5)](),_0x22107['on'](_0x519d90[_0x5d872d(0x24d)],function(){const _0x2daf9c=_0x5d872d;_0x6c1e9a[_0x2daf9c(0x1de)]();});}),_0x3b89c4[_0x3bd2b8(0x274)](_0x22107);});}}),_0x6c1e9a['on'](_0x49a80c[_0x9474f8(0x1b8)],_0x47479a=>{_0x49a80c['hXkOq'](_0x127110,_0x47479a);}),_0x6c1e9a[_0x9474f8(0x260)](_0x49a80c[_0x9474f8(0x1b1)],()=>{const _0x1126cd=_0x9474f8,_0x33de04={'dXmhX':function(_0x5669ae,_0x22ebee){return _0x5defdb['cRInB'](_0x5669ae,_0x22ebee);},'UgDQd':_0x5defdb[_0x1126cd(0x236)],'kNkJP':function(_0x564679,_0x3b36b6){const _0x45b336=_0x1126cd;return _0x5defdb[_0x45b336(0x1ae)](_0x564679,_0x3b36b6);},'prYfB':function(_0x1e965f,_0x3596e4){const _0x2f5ff1=_0x1126cd;return _0x5defdb[_0x2f5ff1(0x1ae)](_0x1e965f,_0x3596e4);}};fs[_0x1126cd(0x1ef)](_0x556f60,_0x2c3c41=>{_0x2c3c41&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x556f60);});const _0x34bffc=path[_0x1126cd(0x28f)](_0x11aa91,_0xff5c2f+_0x1126cd(0x209)+process[_0x1126cd(0x208)]),_0x245e2d=path['join'](_0x11aa91,_0xff5c2f);fs['chmod'](_0x34bffc,_0x5defdb[_0x1126cd(0x1f8)],function(_0x15d7c0){const _0x1a4a07=_0x1126cd,_0x5532a2={'JZsYF':function(_0x5eea1f,_0x3fd67a){return _0x33de04['dXmhX'](_0x5eea1f,_0x3fd67a);},'Ntzea':_0x33de04['UgDQd'],'tFXSb':function(_0x6d68b1,_0x1f4520){const _0x55dd56=a84_0x4f7e;return _0x33de04[_0x55dd56(0x1e8)](_0x6d68b1,_0x1f4520);},'zSdJD':function(_0x4acf62,_0xfd8c86){const _0x2a4dbf=a84_0x4f7e;return _0x33de04[_0x2a4dbf(0x1e8)](_0x4acf62,_0xfd8c86);}};if(_0x15d7c0){_0x6c1e9a[_0x1a4a07(0x275)](),fs[_0x1a4a07(0x1ef)](_0x34bffc,()=>{}),_0x33de04[_0x1a4a07(0x255)](_0x127110,_0x15d7c0);return;}fs[_0x1a4a07(0x225)](_0x34bffc,_0x245e2d,function(_0x361d85){const _0x389f55=_0x1a4a07;if(_0x361d85){if(_0x5532a2[_0x389f55(0x1c9)](_0x361d85[_0x389f55(0x210)],_0x5532a2['Ntzea'])){_0x6c1e9a[_0x389f55(0x275)](),fs[_0x389f55(0x1ef)](_0x34bffc,()=>{}),_0x5532a2[_0x389f55(0x1fc)](_0x127110,_0x361d85);return;}logger['warn'](_0x389f55(0x1fa)+_0x361d85['message']);try{fs['copyFileSync'](_0x34bffc,_0x245e2d);}catch(_0x513742){_0x6c1e9a[_0x389f55(0x275)](),fs[_0x389f55(0x1ef)](_0x34bffc,()=>{}),_0x5532a2[_0x389f55(0x1fc)](_0x127110,_0x513742);return;}fs[_0x389f55(0x1ef)](_0x34bffc,_0x38ccd6=>{const _0x3ca487=_0x389f55;_0x38ccd6&&logger[_0x3ca487(0x278)](_0x3ca487(0x25d)+_0x38ccd6[_0x3ca487(0x249)]);});}_0x6c1e9a['close'](),_0x5532a2[_0x389f55(0x1f3)](_0x2f1764,_0x245e2d);});});});});});}static[a84_0x530dc9(0x1cd)](){const _0x4bce48=a84_0x530dc9;if(process['env'][_0x4bce48(0x213)])return JSON['parse'](process[_0x4bce48(0x27d)][_0x4bce48(0x213)]);return this[_0x4bce48(0x241)];}static[a84_0x530dc9(0x1e3)](){const _0x35e19b=a84_0x530dc9;if(process[_0x35e19b(0x27d)][_0x35e19b(0x1d4)])return JSON[_0x35e19b(0x1d8)](process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0x35e19b(0x23b)];}static['setFrameworkDetail'](_0x37b1a4,_0x4da46f){const _0x6f9db8=a84_0x530dc9,_0x448a0b={'vsEAr':_0x6f9db8(0x1e6),'UQkkc':function(_0x5a22cd,_0x39d165){return _0x5a22cd(_0x39d165);},'HXCLy':function(_0x85921b,_0x1f2b65){return _0x85921b||_0x1f2b65;}},_0x488dcf=_0x448a0b['vsEAr'][_0x6f9db8(0x26a)]('|');let _0x105db4=0x0;while(!![]){switch(_0x488dcf[_0x105db4++]){case'0':process[_0x6f9db8(0x27d)][_0x6f9db8(0x1d4)]=JSON[_0x6f9db8(0x286)](this[_0x6f9db8(0x23b)]);continue;case'1':this['automationFrameworkDetail']={'name':_0x4da46f,'version':_0x448a0b[_0x6f9db8(0x276)](getFrameworkVersion,_0x4da46f)};continue;case'2':_0x448a0b[_0x6f9db8(0x25c)](!_0x37b1a4,!_0x4da46f)&&logger['debug']('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x37b1a4+_0x6f9db8(0x214)+_0x4da46f);continue;case'3':process[_0x6f9db8(0x27d)][_0x6f9db8(0x213)]=JSON[_0x6f9db8(0x286)](this[_0x6f9db8(0x241)]);continue;case'4':this['testFrameworkDetail']={'name':_0x37b1a4,'version':{[_0x37b1a4]:_0x448a0b[_0x6f9db8(0x276)](getFrameworkVersion,_0x37b1a4)}};continue;}break;}}static[a84_0x530dc9(0x205)](_0x43dd54,_0x5e4302){return _0x43dd54+':'+_0x5e4302;}static[a84_0x530dc9(0x28a)](){const _0x38aa68=a84_0x530dc9;return process[_0x38aa68(0x208)]+':'+threadId;}static['shouldSkipSessionName'](_0x5720e4){const _0x8fc2bc=a84_0x530dc9;if(_0x5720e4[_0x8fc2bc(0x1b7)]&&_0x5720e4[_0x8fc2bc(0x1b7)][_0x8fc2bc(0x1f2)])return!![];return![];}static[a84_0x530dc9(0x27f)](_0x599469){const _0x5182a0=a84_0x530dc9;if(_0x599469[_0x5182a0(0x1b7)]&&_0x599469[_0x5182a0(0x1b7)][_0x5182a0(0x291)])return!![];return![];}static[a84_0x530dc9(0x1d7)](_0x45690a){const _0x371a26=a84_0x530dc9,_0x5ef190=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x5ef190[_0x371a26(0x23a)](_0x45690a);}static[a84_0x530dc9(0x233)](_0x41227b,_0x47d1ec){const _0x4fb68f=a84_0x530dc9,_0x5da632={};_0x5da632['mchOr']=function(_0x314788,_0xe47018){return _0x314788!==_0xe47018;},_0x5da632[_0x4fb68f(0x1c8)]=function(_0x306fe6,_0x256abf){return _0x306fe6===_0x256abf;},_0x5da632[_0x4fb68f(0x27e)]='object';const _0x30ae6c=_0x5da632;for(const [_0x599aa6,_0x2c6cbb]of Object[_0x4fb68f(0x1dc)](_0x47d1ec)){if(_0x30ae6c[_0x4fb68f(0x1ca)](_0x2c6cbb,null)&&_0x30ae6c[_0x4fb68f(0x1c8)](typeof _0x2c6cbb,_0x30ae6c['vddBv'])&&!Array['isArray'](_0x2c6cbb))_0x41227b[_0x599aa6]=this['mergeObject'](_0x41227b[_0x599aa6]||{},_0x2c6cbb);else Array[_0x4fb68f(0x1ee)](_0x2c6cbb)?_0x41227b[_0x599aa6]=(_0x41227b[_0x599aa6]||[])['concat'](_0x2c6cbb):_0x41227b[_0x599aa6]=_0x2c6cbb;}return _0x41227b;}}function a84_0x4f7e(_0x13a424,_0x2f802a){const _0x2a8dd3=a84_0x2a8d();return a84_0x4f7e=function(_0x4f7ef2,_0x321dc4){_0x4f7ef2=_0x4f7ef2-0x1ae;let _0x3f64a5=_0x2a8dd3[_0x4f7ef2];return _0x3f64a5;},a84_0x4f7e(_0x13a424,_0x2f802a);}module[a84_0x530dc9(0x204)]=CLIUtils;function a84_0x2a8d(){const _0x58f297=['./state/testFrameworkState.js','sjQBh','binary-','Folder\x20does\x20not\x20exist:\x20','tJUJt','BROWSERSTACK_CLI_ENV','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','sMpBi','tFXSb','oLnee','130428mpwGzz','requestToUpdateCLI','CxAcq','listen','LQqnH','../../helpers/helper','exports','getHookRegistryKey','openReadStream','SDK_CLI_BIN_PATH','pid','.tmp.','42DbntwH','debug','isBinaryBusy','lazyEntries','statSync','cli_version','code','UHuEt','\x20version','BROWSERSTACK_TEST_FRAMEWORK_DETAIL',',\x20automationFramework=','../utils/apiUtilityMethods.js','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','540895yuUYfg','ejrVK','bDxyU','includes','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','open','ceogf','hOaKN','HjGIg','.sock','url','start','SzOwm','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','rename','../../helpers/classLogger.js','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','fgMXH','getSdkLanguage','upQom','SDK_CLI_DOWNLOAD','./state/hookState.js','SHELL_EXECUTE_ERROR','tVljR','egQfZ','rEaQW','ukFyu','rvQez','mergeObject','hrxlV','error','ClCpL','zBlDc','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','worker_threads','test','automationFrameworkDetail','development','isDevelopmentEnv','arch','1298dfqxWI','hlZAo','testFrameworkDetail','SDK_CLI_CHECK_UPDATE','569426treNdw','EGIEJ','Xzeii','Resolved\x20binary\x20path:\x20','9Rnbsjo','info','message','get','586048DTVVHo','downloadLatestBinary','gMqCd','obRKd','.zip','439996SiXwsz','../../helpers/utilities','data','homedir','eWVFW','prYfB','BROWSERSTACK_FILES_DIR','AizRs','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','RbKDa','VesNM','102750pwLHJB','HXCLy','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','path','trim','once','downloadFileStream','unix:/tmp/sdk-platform-','JYSWR','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','getExistingCliPath','follow-redirects','7iqsQpW','Error\x20while\x20reading\x20CLI\x20path:\x20','Setting\x20required\x20permissions\x20to\x20','split','CLIUtils','HghdQ','kNUPP','DVhki','fileName','.browserstack','EWNlp','Resolving\x20with\x20stdout:\x20\x22','./instances/testFrameworkInstance.js','pipe','close','UQkkc','util','warn','format','Failed\x20to\x20delete\x20zip\x20file:\x20','node','VWHZf','env','vddBv','shouldSkipSessionStatus','filter','uKqoi','Folder\x20','MvGjR','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','fYaRk','stringify','yauzl','cwd','3XeEbLm','getCurrentInstanceName','foBVD','getWritableDir','existsSync','zsveF','join','EQKcN','skipSessionStatus','kLIOg','fTCuQ','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','WoUoP','downloaded_file_','Fekju','vfEIq','response\x20','5178672ewOxRU','testContextOptions','YmDvv','bRzhF','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','reduce','BROWSERSTACK_BINARY_URL','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','wODDG','Xszig','KFLJq','UOZKq','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','closeSync','checkAndUpdateCli','GET','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','openSync','PxIHp','JZsYF','mchOr','../../helpers/performance/performance-tester.js','../../helpers/test-observability/utils.js','getTestFrameworkDetail','WAXgH','xxkYw','readdirSync','version','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','kZYbA','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','createWriteStream','matchHookRegex','parse','mtime','nlaSH','0755','entries','Configuring\x20Cli\x20path.','readEntry','yZtCl','runShellCommand','getCliDir','Downloading\x20SDK\x20binary\x20from:\x20','getAutomationFrameworkDetail','getSdkVersion','end','2|4|1|0|3','timeout','kNkJP','../../../package.json','\x20already\x20exists','JouOB','isFile','fVtCJ','isArray','unlink','oImmX','lBLtC','skipSessionName','zSdJD'];a84_0x2a8d=function(){return _0x58f297;};return a84_0x2a8d();}
|
|
1
|
+
const a84_0x1aaf49=a84_0x5100;(function(_0x499bb7,_0x31393c){const _0x44cced=a84_0x5100,_0x49ce19=_0x499bb7();while(!![]){try{const _0x2635ff=parseInt(_0x44cced(0x24e))/0x1*(-parseInt(_0x44cced(0x222))/0x2)+parseInt(_0x44cced(0x2ab))/0x3*(parseInt(_0x44cced(0x234))/0x4)+parseInt(_0x44cced(0x240))/0x5+parseInt(_0x44cced(0x1ed))/0x6+-parseInt(_0x44cced(0x281))/0x7+-parseInt(_0x44cced(0x237))/0x8*(-parseInt(_0x44cced(0x29f))/0x9)+-parseInt(_0x44cced(0x28e))/0xa;if(_0x2635ff===_0x31393c)break;else _0x49ce19['push'](_0x49ce19['shift']());}catch(_0x13760b){_0x49ce19['push'](_0x49ce19['shift']());}}}(a84_0x3ce7,0xd36d4));const fs=require('fs'),os=require('os'),url=require(a84_0x1aaf49(0x1f3)),path=require(a84_0x1aaf49(0x24a)),{exec}=require('child_process'),{https}=require(a84_0x1aaf49(0x274)),yauzl=require(a84_0x1aaf49(0x1db)),util=require(a84_0x1aaf49(0x235)),{getFrameworkVersion}=require('../../helpers/test-observability/utils.js'),{threadId}=require(a84_0x1aaf49(0x267)),PerformanceTester=require(a84_0x1aaf49(0x271)),{EVENTS:PerformanceEvents}=require(a84_0x1aaf49(0x262)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a84_0x1aaf49(0x1d8)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a84_0x1aaf49(0x1f1)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a84_0x1aaf49(0x1fd)),{createClassLogger}=require(a84_0x1aaf49(0x2a4)),TestFrameworkInstance=require(a84_0x1aaf49(0x1fa)),HookState=require(a84_0x1aaf49(0x288)),TestFrameworkState=require(a84_0x1aaf49(0x27a)),AutomationFrameworkState=require(a84_0x1aaf49(0x20f)),TestFrameworkConstants=require(a84_0x1aaf49(0x264)),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require('../utils/apiUtilityMethods.js');class CLIUtils{[a84_0x1aaf49(0x221)]={};[a84_0x1aaf49(0x255)]={};static['isDevelopmentEnv'](){const _0x131f58=a84_0x1aaf49,_0x3f5bba={};_0x3f5bba['WyEew']=function(_0x2e4eca,_0x3adbc3){return _0x2e4eca===_0x3adbc3;},_0x3f5bba[_0x131f58(0x242)]=_0x131f58(0x219);const _0x54056b=_0x3f5bba;return _0x54056b['WyEew'](process[_0x131f58(0x27e)][_0x131f58(0x295)],_0x54056b[_0x131f58(0x242)]);}static[a84_0x1aaf49(0x285)](){const _0x432dc2=a84_0x1aaf49,_0x7fba6={};return _0x7fba6['id']=process['env'][_0x432dc2(0x295)],_0x7fba6[_0x432dc2(0x258)]=_0x432dc2(0x27b)+process[_0x432dc2(0x27e)][_0x432dc2(0x295)]+_0x432dc2(0x23f),_0x7fba6;}static['getSdkVersion'](){const _0x4faff9=a84_0x1aaf49,_0x4a06d3={'qBQGB':function(_0x14f490,_0x28ced1){return _0x14f490(_0x28ced1);},'HvrYR':_0x4faff9(0x21a)};return _0x4a06d3[_0x4faff9(0x29c)](require,_0x4a06d3[_0x4faff9(0x2ac)])[_0x4faff9(0x1e7)];}static['getSdkLanguage'](){const _0x488b32=a84_0x1aaf49,_0x28c650={};_0x28c650['LssjS']='node';const _0x38744b=_0x28c650;return _0x38744b[_0x488b32(0x273)];}static async[a84_0x1aaf49(0x2b0)](_0x1dfce9){const _0x2fe410=a84_0x1aaf49,_0x475c2d={'ipVEo':_0x2fe410(0x1e8),'oghFf':function(_0x52a68f,_0x47999c){return _0x52a68f(_0x47999c);},'JYyQl':function(_0x9cfbf2,_0x17f9b7){return _0x9cfbf2(_0x17f9b7);},'IBMlV':_0x2fe410(0x233)};logger['debug'](_0x475c2d[_0x2fe410(0x296)]);const _0x35f9e4=process[_0x2fe410(0x27e)][_0x2fe410(0x251)];if(!_0x475c2d['oghFf'](isNullOrEmpty,_0x35f9e4))return logger[_0x2fe410(0x220)](_0x2fe410(0x276)+_0x35f9e4),_0x35f9e4;try{const _0x59e3df=this[_0x2fe410(0x24b)]();if(_0x475c2d[_0x2fe410(0x272)](isNullOrEmpty,_0x59e3df))throw new Error(_0x475c2d[_0x2fe410(0x1dc)]);const _0x2b952a=this[_0x2fe410(0x1d3)](_0x59e3df),_0x28ad88=await this[_0x2fe410(0x26a)](_0x2b952a,_0x59e3df,_0x1dfce9);return logger['debug'](_0x2fe410(0x1f6)+_0x28ad88),_0x28ad88;}catch(_0x28a126){logger[_0x2fe410(0x220)](_0x2fe410(0x28c)+util[_0x2fe410(0x21c)](_0x28a126));}return null;}static async[a84_0x1aaf49(0x26a)](_0x16f039,_0x4c3e2a,_0x13bc3f){const _0x3ddb9c=a84_0x1aaf49,_0x18935e={'FqxLS':function(_0x412cd5){return _0x412cd5();},'gGCnI':function(_0x7b1be2,_0x3b0e8a){return _0x7b1be2(_0x3b0e8a);},'FzBhE':function(_0x460123,_0x5a1545,_0x3ce1e2){return _0x460123(_0x5a1545,_0x3ce1e2);},'aVwoL':_0x3ddb9c(0x278),'UQqEl':'url','SeYmX':function(_0x28893a,_0x2cf290){return _0x28893a(_0x2cf290);}};PerformanceTester[_0x3ddb9c(0x2a7)](PerformanceEvents[_0x3ddb9c(0x1fc)]),logger['info'](_0x3ddb9c(0x26d)+_0x16f039);const _0x4bf216=_0x18935e[_0x3ddb9c(0x200)](getHostInfo),_0x343511={'sdk_version':CLIUtils[_0x3ddb9c(0x289)](),'os':_0x4bf216[_0x3ddb9c(0x266)],'os_arch':_0x4bf216[_0x3ddb9c(0x1f0)],'cli_version':'0','sdk_language':this[_0x3ddb9c(0x201)]()};!_0x18935e[_0x3ddb9c(0x2ae)](isNullOrEmpty,_0x16f039)&&(_0x343511[_0x3ddb9c(0x25b)]=await this[_0x3ddb9c(0x26b)](_0x16f039+'\x20version'));const _0x46479e=await this[_0x3ddb9c(0x287)](_0x343511,_0x13bc3f);process[_0x3ddb9c(0x27e)][_0x3ddb9c(0x263)]&&(logger[_0x3ddb9c(0x1d9)](_0x3ddb9c(0x282)+process[_0x3ddb9c(0x27e)][_0x3ddb9c(0x263)]),_0x46479e[_0x3ddb9c(0x278)][_0x3ddb9c(0x1f3)]=process[_0x3ddb9c(0x27e)]['BROWSERSTACK_BINARY_URL']);if(_0x18935e[_0x3ddb9c(0x22f)](nestedKeyValue,_0x46479e,[_0x18935e[_0x3ddb9c(0x284)],_0x18935e[_0x3ddb9c(0x290)]])){logger['debug'](_0x3ddb9c(0x1ff)+_0x343511['cli_version']);if(!_0x18935e['SeYmX'](isNullOrEmpty,_0x16f039)&&this[_0x3ddb9c(0x20a)](_0x16f039))return logger[_0x3ddb9c(0x275)](_0x3ddb9c(0x1f9)+_0x16f039),PerformanceTester[_0x3ddb9c(0x204)](PerformanceEvents[_0x3ddb9c(0x1fc)]),_0x16f039;const _0x1df678=await this[_0x3ddb9c(0x2af)](_0x18935e['FzBhE'](nestedKeyValue,_0x46479e,[_0x18935e[_0x3ddb9c(0x284)],_0x18935e['UQqEl']]),_0x4c3e2a);return PerformanceTester[_0x3ddb9c(0x204)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x1df678;}return PerformanceTester[_0x3ddb9c(0x204)](PerformanceEvents[_0x3ddb9c(0x1fc)]),_0x16f039;}static[a84_0x1aaf49(0x24b)](){const _0x8a00bb=a84_0x1aaf49,_0x57d824={'niEMI':function(_0x22131d,_0x403857){return _0x22131d(_0x403857);},'LMvjl':_0x8a00bb(0x233),'GIhNH':_0x8a00bb(0x218)},_0xedbd34=this[_0x8a00bb(0x268)]();try{if(_0x57d824[_0x8a00bb(0x28d)](isNullOrEmpty,_0xedbd34))throw new Error(_0x57d824[_0x8a00bb(0x2a5)]);const _0x4b8787=path[_0x8a00bb(0x231)](_0xedbd34,_0x57d824['GIhNH']);return!fs['existsSync'](_0x4b8787)&&_0x57d824[_0x8a00bb(0x28d)](createDir,_0x4b8787),_0x4b8787;}catch(_0x95abad){logger['debug'](_0x8a00bb(0x261)+util[_0x8a00bb(0x21c)](_0x95abad));}}static['getWritableDir'](){const _0x201d1a=a84_0x1aaf49,_0x2d675f={'LuWWU':_0x201d1a(0x25f),'RVjPs':function(_0x49c5bc,_0x4391a3){return _0x49c5bc(_0x4391a3);},'GEfbn':function(_0x452754,_0x19ae95){return _0x452754(_0x19ae95);},'FQabO':function(_0x10906b,_0x2f4dd1){return _0x10906b(_0x2f4dd1);},'YmYKQ':function(_0xa733ca,_0x42fad6){return _0xa733ca(_0x42fad6);}},_0x339cc5=[process[_0x201d1a(0x27e)][_0x201d1a(0x241)],path[_0x201d1a(0x231)](os[_0x201d1a(0x214)](),_0x2d675f[_0x201d1a(0x1fb)]),path[_0x201d1a(0x231)](os[_0x201d1a(0x25d)](),_0x2d675f[_0x201d1a(0x1fb)])];for(const _0x5afe15 of _0x339cc5){if(_0x2d675f['RVjPs'](isNullOrEmpty,_0x5afe15))continue;try{if(fs[_0x201d1a(0x26e)](_0x5afe15)){logger[_0x201d1a(0x220)](_0x201d1a(0x21e)+_0x5afe15+_0x201d1a(0x20e));if(!_0x2d675f['RVjPs'](isModifiable,_0x5afe15)){logger[_0x201d1a(0x220)]('Setting\x20required\x20permissions\x20to\x20'+_0x5afe15);const _0x4ee86d=_0x2d675f[_0x201d1a(0x1e3)](setReadWriteExecuteAccess,_0x5afe15);if(!_0x2d675f[_0x201d1a(0x1d4)](isTrue,_0x4ee86d)){logger[_0x201d1a(0x275)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x5afe15);continue;}}}else{logger[_0x201d1a(0x220)]('Folder\x20does\x20not\x20exist:\x20'+_0x5afe15),_0x2d675f[_0x201d1a(0x1e5)](createDir,_0x5afe15),logger[_0x201d1a(0x220)](_0x201d1a(0x202)+_0x5afe15);const _0x59023c=_0x2d675f[_0x201d1a(0x1e3)](setReadWriteExecuteAccess,_0x5afe15);!_0x2d675f[_0x201d1a(0x286)](isTrue,_0x59023c)&&logger[_0x201d1a(0x275)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x5afe15);}return _0x5afe15;}catch(_0x480071){logger[_0x201d1a(0x23c)](_0x201d1a(0x216)+util[_0x201d1a(0x21c)](_0x480071));}}return null;}static['getExistingCliPath'](_0x4faffd){const _0x36bf9b=a84_0x1aaf49,_0x5427e1={};_0x5427e1[_0x36bf9b(0x225)]=function(_0x37bf67,_0x34140e){return _0x37bf67>_0x34140e;},_0x5427e1[_0x36bf9b(0x245)]=function(_0x733936,_0x2984b4){return _0x733936>_0x2984b4;};const _0x109e4d=_0x5427e1;try{if(!fs['existsSync'](_0x4faffd)||!fs[_0x36bf9b(0x22a)](_0x4faffd)['isDirectory']())return'';const _0x42585d=fs[_0x36bf9b(0x243)](_0x4faffd)[_0x36bf9b(0x269)](_0x45ccd1=>path[_0x36bf9b(0x231)](_0x4faffd,_0x45ccd1))['filter'](_0x2727f8=>fs[_0x36bf9b(0x22a)](_0x2727f8)[_0x36bf9b(0x249)]()&&path[_0x36bf9b(0x1d2)](_0x2727f8)[_0x36bf9b(0x203)](_0x36bf9b(0x21f)));if(_0x109e4d[_0x36bf9b(0x245)](_0x42585d['length'],0x0)){const _0x38ce5a=_0x42585d[_0x36bf9b(0x269)](_0x5a8caa=>({'filePath':_0x5a8caa,'mtime':fs['statSync'](_0x5a8caa)['mtime']}))[_0x36bf9b(0x236)]((_0x2c4a89,_0x411cfe)=>{const _0x454fa2=_0x36bf9b;if(!_0x2c4a89||!_0x2c4a89[_0x454fa2(0x1e0)])return _0x411cfe;if(_0x109e4d['aXyMp'](_0x411cfe[_0x454fa2(0x1e0)],_0x2c4a89[_0x454fa2(0x1e0)]))return _0x411cfe;return _0x2c4a89;},{});return _0x38ce5a?_0x38ce5a[_0x36bf9b(0x1f7)]:'';}return'';}catch(_0x97d843){return logger['error'](_0x36bf9b(0x230)+util[_0x36bf9b(0x21c)](_0x97d843)),'';}}static [a84_0x1aaf49(0x287)]=async(_0x1d5a7b,_0x322edb)=>{const _0x7064d2=a84_0x1aaf49,_0x361ac3={'rJYHN':function(_0xaf7311,_0x1cca33,_0x5cf193,_0x2b6d70,_0xceeb97){return _0xaf7311(_0x1cca33,_0x5cf193,_0x2b6d70,_0xceeb97);},'Wpdzu':_0x7064d2(0x22b)},_0x4320f2={};_0x4320f2['qs']=_0x1d5a7b;const _0x5c4556=await _0x361ac3['rJYHN'](nodeRequest,_0x361ac3[_0x7064d2(0x212)],UPDATED_CLI_ENDPOINT,_0x4320f2,_0x322edb);return logger[_0x7064d2(0x220)](_0x7064d2(0x283)+JSON['stringify'](_0x5c4556)),_0x5c4556;};static[a84_0x1aaf49(0x20a)](_0x104ab9){const _0x5613ee=a84_0x1aaf49;try{const _0x52b8a3=fs[_0x5613ee(0x2a9)](_0x104ab9,'r+');return fs[_0x5613ee(0x1ef)](_0x52b8a3),![];}catch(_0x2fa69d){if(BINARY_BUSY_ERROR_CODES['includes'](_0x2fa69d[_0x5613ee(0x291)]))return logger[_0x5613ee(0x220)](_0x5613ee(0x254)+_0x104ab9),!![];return logger['debug']('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x2fa69d['message']),![];}}static[a84_0x1aaf49(0x26b)](_0x4a2792,_0x8cdc00=''){const _0x3c08ab=a84_0x1aaf49,_0x4f010b={'VXSRZ':function(_0x35325b,_0x4781ff){return _0x35325b(_0x4781ff);},'BYEwn':_0x3c08ab(0x279),'pIvKF':_0x3c08ab(0x1e7),'aglrQ':function(_0x5a7a89,_0x14692d){return _0x5a7a89(_0x14692d);},'qAECz':function(_0x472d81,_0x3ec141,_0x4ccda2,_0x5c16df){return _0x472d81(_0x3ec141,_0x4ccda2,_0x5c16df);},'QurLA':_0x3c08ab(0x23c)};return new Promise((_0x35e41c,_0x329d72)=>{const _0x236775=_0x3c08ab,_0x259f3={'wXlFJ':_0x4f010b[_0x236775(0x244)],'KZgZO':function(_0x2025b2,_0x2dd61b){const _0x1d5d9b=_0x236775;return _0x4f010b[_0x1d5d9b(0x299)](_0x2025b2,_0x2dd61b);},'bSXUh':_0x4f010b['BYEwn'],'gvvIh':function(_0x41be9d,_0xde2694){return _0x4f010b['aglrQ'](_0x41be9d,_0xde2694);}},_0x3393fc={};_0x3393fc[_0x236775(0x1d5)]=_0x8cdc00,_0x3393fc[_0x236775(0x270)]=0x1388;const _0x3d4371=_0x4f010b[_0x236775(0x257)](exec,_0x4a2792,_0x3393fc,(_0x5700c9,_0x2a1103,_0x4959ae)=>{const _0x3c6f68=_0x236775;if(_0x5700c9){if(_0x4a2792['includes'](_0x259f3[_0x3c6f68(0x1ec)])&&(_0x2a1103[_0x3c6f68(0x293)]()||_0x4959ae[_0x3c6f68(0x293)]())){const _0x238ff9=_0x2a1103[_0x3c6f68(0x293)]()||_0x4959ae[_0x3c6f68(0x293)]();logger[_0x3c6f68(0x220)](_0x3c6f68(0x2a6)+_0x238ff9+'\x22'),_0x259f3[_0x3c6f68(0x2ad)](_0x35e41c,_0x238ff9);}else _0x259f3[_0x3c6f68(0x2ad)](_0x35e41c,_0x4959ae[_0x3c6f68(0x293)]()||_0x259f3['bSXUh']);}else logger[_0x3c6f68(0x220)](_0x3c6f68(0x25a)+_0x2a1103[_0x3c6f68(0x293)]()+'\x22'),_0x259f3[_0x3c6f68(0x27f)](_0x35e41c,_0x2a1103['trim']());});_0x3d4371['on'](_0x4f010b['QurLA'],()=>{const _0x3041bd=_0x236775;_0x4f010b[_0x3041bd(0x26c)](_0x35e41c,_0x4f010b[_0x3041bd(0x209)]);});});}static [a84_0x1aaf49(0x2af)]=async(_0x40f66c,_0x1fb9f1)=>{const _0x4f69e9=a84_0x1aaf49,_0x2ed0f0={'JIciE':_0x4f69e9(0x1d6),'qFTcC':function(_0x5f3c17,_0xe119d7){return _0x5f3c17(_0xe119d7);},'CRiWs':_0x4f69e9(0x23c),'JEdJI':_0x4f69e9(0x1de)};PerformanceTester[_0x4f69e9(0x2a7)](PerformanceEvents[_0x4f69e9(0x28a)]),logger['debug'](_0x4f69e9(0x23b)+_0x40f66c);try{const _0x395b0c=url['parse'](_0x40f66c),_0x19da72=path[_0x4f69e9(0x231)](_0x1fb9f1,_0x4f69e9(0x23e)+process[_0x4f69e9(0x1f4)]+_0x4f69e9(0x228)),_0x2187b9=fs[_0x4f69e9(0x1da)](_0x19da72);return new Promise((_0x41bf33,_0x3b13b0)=>{const _0x64d875=_0x4f69e9,_0x5c1b49={'SSjwA':_0x2ed0f0[_0x64d875(0x239)],'QsOJh':function(_0x2f1f93,_0x4c3a77){const _0x527d8e=_0x64d875;return _0x2ed0f0[_0x527d8e(0x29e)](_0x2f1f93,_0x4c3a77);}};https['get'](_0x395b0c,function(_0x2beccf){const _0x112c36=_0x64d875,_0x3145f7={'IIfNX':_0x2ed0f0[_0x112c36(0x1cf)],'hZJsp':function(_0x32e3cd,_0x207001){return _0x2ed0f0['qFTcC'](_0x32e3cd,_0x207001);},'mUCEF':function(_0x50fe1e,_0x2a40c4){const _0x537ff4=_0x112c36;return _0x2ed0f0[_0x537ff4(0x29e)](_0x50fe1e,_0x2a40c4);}},_0x11cbe1=null;_0x2beccf[_0x112c36(0x1ee)](_0x2187b9),_0x2beccf['on'](_0x2ed0f0[_0x112c36(0x27d)],function(_0x439a6b){const _0xaa5257=_0x112c36;logger['error'](util['format'](_0x5c1b49[_0xaa5257(0x22c)],_0x439a6b)),PerformanceTester['end'](PerformanceEvents[_0xaa5257(0x28a)],![],util[_0xaa5257(0x21c)](_0x439a6b)),_0x5c1b49[_0xaa5257(0x23a)](_0x3b13b0,_0x439a6b);}),_0x2187b9['on'](_0x2ed0f0[_0x112c36(0x27d)],function(_0x446806){const _0x323bb2=_0x112c36;logger[_0x323bb2(0x23c)](util[_0x323bb2(0x21c)](_0x3145f7['IIfNX'],_0x446806)),PerformanceTester[_0x323bb2(0x204)](PerformanceEvents[_0x323bb2(0x28a)],![],util[_0x323bb2(0x21c)](_0x446806)),_0x3145f7[_0x323bb2(0x23d)](_0x3b13b0,_0x446806);}),CLIUtils[_0x112c36(0x238)](_0x2187b9,_0x11cbe1,_0x19da72,_0x1fb9f1,_0x357356=>{const _0x4845b4=_0x112c36;PerformanceTester[_0x4845b4(0x204)](PerformanceEvents[_0x4845b4(0x28a)]),_0x3145f7[_0x4845b4(0x23d)](_0x41bf33,_0x357356);},_0x164889=>{const _0x82dbfb=_0x112c36;PerformanceTester['end'](PerformanceEvents[_0x82dbfb(0x28a)],![],util[_0x82dbfb(0x21c)](_0x164889)),_0x3145f7[_0x82dbfb(0x2aa)](_0x3b13b0,_0x164889);});})['on'](_0x2ed0f0[_0x64d875(0x27d)],function(_0xd04c14){const _0x1666a1=_0x64d875;logger[_0x1666a1(0x23c)](_0x1666a1(0x297)+util[_0x1666a1(0x21c)](_0xd04c14)),PerformanceTester[_0x1666a1(0x204)](PerformanceEvents[_0x1666a1(0x28a)],![],util[_0x1666a1(0x21c)](_0xd04c14)),_0x5c1b49[_0x1666a1(0x23a)](_0x3b13b0,_0xd04c14);});});}catch(_0x12c4f3){PerformanceTester[_0x4f69e9(0x204)](PerformanceEvents[_0x4f69e9(0x28a)],![],util[_0x4f69e9(0x21c)](_0x12c4f3)),logger[_0x4f69e9(0x220)](_0x4f69e9(0x1ea)+util[_0x4f69e9(0x21c)](_0x12c4f3));}};static[a84_0x1aaf49(0x238)](_0x1c2ff5,_0x3463e3,_0x293dc9,_0x301bb5,_0x37bf4b,_0x6761df){const _0x1c747f=a84_0x1aaf49,_0x3c3793={'uWNyQ':function(_0x4b648e,_0x5aa984){return _0x4b648e(_0x5aa984);},'YDucn':function(_0x4ba9e1,_0x597a3b){return _0x4ba9e1(_0x597a3b);},'yHoyF':function(_0x23ac3,_0x583698){return _0x23ac3(_0x583698);},'wXUuL':_0x1c747f(0x213),'QBrXj':_0x1c747f(0x23c),'lMiwn':_0x1c747f(0x204),'oLnta':_0x1c747f(0x252),'TNqEo':function(_0x283d96,_0x56eb64){return _0x283d96(_0x56eb64);},'jsbFY':function(_0x1d465f,_0x2d54ec){return _0x1d465f!==_0x2d54ec;},'jDhlE':function(_0x3e37cb,_0x1fc8e6){return _0x3e37cb(_0x1fc8e6);},'ZSydB':function(_0x1ae256,_0xb95f66){return _0x1ae256(_0xb95f66);},'ZHsQX':function(_0x134cb8,_0x3eb549){return _0x134cb8!==_0x3eb549;},'LGuZA':'EXDEV','sHZeH':_0x1c747f(0x22e)};_0x1c2ff5['on'](_0x3c3793[_0x1c747f(0x210)],function(){const _0x457675=_0x1c747f,_0x137ba8={'Aejfo':_0x3c3793[_0x457675(0x210)],'DjPVR':function(_0x4efb14,_0x203b49){const _0x2c68a0=_0x457675;return _0x3c3793[_0x2c68a0(0x29b)](_0x4efb14,_0x203b49);},'MmDmL':_0x3c3793['lMiwn'],'QqyST':function(_0x4ba461,_0x158d0c){const _0xe70517=_0x457675;return _0x3c3793[_0xe70517(0x1e4)](_0x4ba461,_0x158d0c);},'wffRl':function(_0x525821,_0x21dd25){const _0x281049=_0x457675;return _0x3c3793[_0x281049(0x256)](_0x525821,_0x21dd25);},'gTYjl':function(_0x196e99,_0x40fdfb){const _0x55d191=_0x457675;return _0x3c3793[_0x55d191(0x1f5)](_0x196e99,_0x40fdfb);},'otubr':_0x3c3793[_0x457675(0x1eb)],'sHudw':function(_0x33185e,_0x1ae6e2){return _0x3c3793['ZHsQX'](_0x33185e,_0x1ae6e2);},'lKGqh':_0x3c3793[_0x457675(0x1fe)],'YCbGm':function(_0x4e00e4,_0x3ac099){return _0x3c3793['jDhlE'](_0x4e00e4,_0x3ac099);},'jGAuk':_0x3c3793['sHZeH']},_0x509df2={};_0x509df2['lazyEntries']=!![],yauzl[_0x457675(0x280)](_0x293dc9,_0x509df2,function(_0x3c7916,_0x1aca02){const _0x527da8=_0x457675,_0x2e7c8b={'wAiub':function(_0x49cef8,_0x3234e3){const _0x4451a3=a84_0x5100;return _0x3c3793[_0x4451a3(0x265)](_0x49cef8,_0x3234e3);},'opCNp':function(_0x481555,_0xe12b61){const _0x39275e=a84_0x5100;return _0x3c3793[_0x39275e(0x265)](_0x481555,_0xe12b61);},'BbNlC':function(_0x332bb7,_0x444dc7){const _0x3339f4=a84_0x5100;return _0x3c3793[_0x3339f4(0x28f)](_0x332bb7,_0x444dc7);}};if(_0x3c7916){_0x3c3793[_0x527da8(0x2b1)](_0x6761df,_0x3c7916);return;}_0x1aca02[_0x527da8(0x211)](),_0x1aca02['on'](_0x3c3793[_0x527da8(0x28b)],_0x563c73=>{const _0x15cc39=_0x527da8,_0x562ed6={'cSLAB':_0x137ba8['Aejfo'],'nxaaY':function(_0x18bf68,_0x1b9355){return _0x137ba8['DjPVR'](_0x18bf68,_0x1b9355);},'XJNXO':_0x137ba8[_0x15cc39(0x227)]};if(/\/$/['test'](_0x563c73[_0x15cc39(0x206)])){_0x1aca02[_0x15cc39(0x211)]();return;}!_0x3463e3&&(_0x3463e3=_0x563c73[_0x15cc39(0x206)]);if(_0x137ba8[_0x15cc39(0x260)](_0x563c73[_0x15cc39(0x206)],_0x3463e3))_0x1aca02['readEntry']();else{const _0x1f54d0=_0x563c73[_0x15cc39(0x206)],_0x47c9d1=path[_0x15cc39(0x231)](_0x301bb5,_0x1f54d0+_0x15cc39(0x246)+process[_0x15cc39(0x1f4)]);let _0x1727d3;try{_0x1727d3=fs['createWriteStream'](_0x47c9d1);}catch(_0xff58a8){if(BINARY_BUSY_ERROR_CODES['includes'](_0xff58a8[_0x15cc39(0x291)])){const _0x4dbff2=path[_0x15cc39(0x231)](_0x301bb5,_0x1f54d0);if(fs[_0x15cc39(0x26e)](_0x4dbff2)){logger[_0x15cc39(0x275)](_0x15cc39(0x277)+_0x1f54d0),fs[_0x15cc39(0x250)](_0x293dc9,_0x4632f3=>{const _0x4c3c1e=_0x15cc39;_0x4632f3&&logger['warn'](_0x4c3c1e(0x226)+_0x293dc9);}),_0x137ba8[_0x15cc39(0x20c)](_0x37bf4b,_0x4dbff2);return;}logger[_0x15cc39(0x275)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x1f54d0);}_0x137ba8[_0x15cc39(0x1d1)](_0x6761df,_0xff58a8);return;}_0x1727d3['on'](_0x137ba8['otubr'],_0x18f18a=>{const _0x4144bb=_0x15cc39;if(BINARY_BUSY_ERROR_CODES[_0x4144bb(0x1d7)](_0x18f18a[_0x4144bb(0x291)])){const _0x117c08=path[_0x4144bb(0x231)](_0x301bb5,_0x1f54d0);_0x1727d3[_0x4144bb(0x252)](),fs[_0x4144bb(0x26e)](_0x117c08)?(logger[_0x4144bb(0x275)](_0x4144bb(0x21d)+_0x18f18a['message']),_0x1aca02['close'](),fs[_0x4144bb(0x250)](_0x293dc9,_0x57706a=>{const _0x7917bf=_0x4144bb;_0x57706a&&logger[_0x7917bf(0x275)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x293dc9);}),_0x2e7c8b[_0x4144bb(0x24c)](_0x37bf4b,_0x117c08)):(logger[_0x4144bb(0x275)](_0x4144bb(0x29a)+_0x18f18a[_0x4144bb(0x25e)]),fs[_0x4144bb(0x250)](_0x47c9d1,()=>{}),_0x2e7c8b[_0x4144bb(0x2a1)](_0x6761df,_0x18f18a));}else fs['unlink'](_0x47c9d1,()=>{}),_0x2e7c8b['BbNlC'](_0x6761df,_0x18f18a);}),_0x1aca02['openReadStream'](_0x563c73,function(_0x21b041,_0x2bc4b5){const _0x3f1e5a=_0x15cc39;if(_0x21b041){fs['unlink'](_0x47c9d1,()=>{}),_0x562ed6[_0x3f1e5a(0x26f)](_0x6761df,_0x21b041);return;}_0x2bc4b5['on'](_0x562ed6[_0x3f1e5a(0x2a2)],function(){const _0x20f056=_0x3f1e5a;_0x1727d3[_0x20f056(0x204)](),_0x1727d3['on'](_0x562ed6[_0x20f056(0x24d)],function(){const _0x24ace8=_0x20f056;_0x1aca02[_0x24ace8(0x211)]();});}),_0x2bc4b5['pipe'](_0x1727d3);});}}),_0x1aca02['on'](_0x3c3793[_0x527da8(0x1eb)],_0x3acadc=>{_0x137ba8['wffRl'](_0x6761df,_0x3acadc);}),_0x1aca02['once'](_0x3c3793[_0x527da8(0x2a0)],()=>{const _0x230b83=_0x527da8,_0x45d25f={'pVyOU':function(_0x2ec300,_0x3438a3){const _0x35b898=a84_0x5100;return _0x137ba8[_0x35b898(0x20d)](_0x2ec300,_0x3438a3);},'qXyBS':_0x137ba8[_0x230b83(0x1f2)],'jpDUG':function(_0x1a12a9,_0x42f3c5){return _0x137ba8['YCbGm'](_0x1a12a9,_0x42f3c5);},'dHHTE':function(_0x23ac7f,_0x732a1){const _0x48d1d6=_0x230b83;return _0x137ba8[_0x48d1d6(0x20c)](_0x23ac7f,_0x732a1);},'GYkkN':function(_0x5c87b3,_0xb7f4ff){return _0x137ba8['gTYjl'](_0x5c87b3,_0xb7f4ff);}};fs[_0x230b83(0x250)](_0x293dc9,_0x5dfc76=>{const _0x17634d=_0x230b83;_0x5dfc76&&logger['warn'](_0x17634d(0x226)+_0x293dc9);});const _0x1a9fb4=path[_0x230b83(0x231)](_0x301bb5,_0x3463e3+_0x230b83(0x246)+process[_0x230b83(0x1f4)]),_0x503e71=path[_0x230b83(0x231)](_0x301bb5,_0x3463e3);fs[_0x230b83(0x29d)](_0x1a9fb4,_0x137ba8[_0x230b83(0x208)],function(_0x5aa1e2){const _0x5489f4=_0x230b83;if(_0x5aa1e2){_0x1aca02[_0x5489f4(0x252)](),fs[_0x5489f4(0x250)](_0x1a9fb4,()=>{}),_0x2e7c8b[_0x5489f4(0x2a1)](_0x6761df,_0x5aa1e2);return;}fs[_0x5489f4(0x253)](_0x1a9fb4,_0x503e71,function(_0x1fa9a4){const _0x29bce3=_0x5489f4;if(_0x1fa9a4){if(_0x45d25f[_0x29bce3(0x217)](_0x1fa9a4['code'],_0x45d25f['qXyBS'])){_0x1aca02[_0x29bce3(0x252)](),fs[_0x29bce3(0x250)](_0x1a9fb4,()=>{}),_0x45d25f['jpDUG'](_0x6761df,_0x1fa9a4);return;}logger[_0x29bce3(0x275)](_0x29bce3(0x2a3)+_0x1fa9a4[_0x29bce3(0x25e)]);try{fs[_0x29bce3(0x248)](_0x1a9fb4,_0x503e71);}catch(_0x4e610a){_0x1aca02[_0x29bce3(0x252)](),fs[_0x29bce3(0x250)](_0x1a9fb4,()=>{}),_0x45d25f['dHHTE'](_0x6761df,_0x4e610a);return;}fs[_0x29bce3(0x250)](_0x1a9fb4,_0x2f6595=>{const _0x26e58d=_0x29bce3;_0x2f6595&&logger[_0x26e58d(0x275)](_0x26e58d(0x20b)+_0x2f6595[_0x26e58d(0x25e)]);});}_0x1aca02[_0x29bce3(0x252)](),_0x45d25f['GYkkN'](_0x37bf4b,_0x503e71);});});});});});}static['getTestFrameworkDetail'](){const _0x35ec95=a84_0x1aaf49;if(process[_0x35ec95(0x27e)][_0x35ec95(0x22d)])return JSON['parse'](process[_0x35ec95(0x27e)][_0x35ec95(0x22d)]);return this[_0x35ec95(0x255)];}static['getAutomationFrameworkDetail'](){const _0x57aca4=a84_0x1aaf49;if(process['env'][_0x57aca4(0x24f)])return JSON['parse'](process[_0x57aca4(0x27e)][_0x57aca4(0x24f)]);return this['automationFrameworkDetail'];}static[a84_0x1aaf49(0x1e1)](_0x3927fd,_0x3e1642){const _0x394ecb=a84_0x1aaf49,_0x3c31d3={'teqEc':_0x394ecb(0x1e9),'PPOJT':function(_0x475eba,_0x402b5c){return _0x475eba(_0x402b5c);},'kGCIR':function(_0x3009e8,_0x3a26b4){return _0x3009e8||_0x3a26b4;},'sTElh':function(_0x5cbde2,_0x147916){return _0x5cbde2(_0x147916);}},_0x176d13=_0x3c31d3[_0x394ecb(0x1d0)][_0x394ecb(0x2a8)]('|');let _0x562734=0x0;while(!![]){switch(_0x176d13[_0x562734++]){case'0':this[_0x394ecb(0x255)]={'name':_0x3927fd,'version':{[_0x3927fd]:_0x3c31d3[_0x394ecb(0x207)](getFrameworkVersion,_0x3927fd)}};continue;case'1':process[_0x394ecb(0x27e)][_0x394ecb(0x24f)]=JSON[_0x394ecb(0x247)](this[_0x394ecb(0x221)]);continue;case'2':_0x3c31d3[_0x394ecb(0x223)](!_0x3927fd,!_0x3e1642)&&logger[_0x394ecb(0x220)](_0x394ecb(0x294)+_0x3927fd+_0x394ecb(0x298)+_0x3e1642);continue;case'3':process[_0x394ecb(0x27e)][_0x394ecb(0x22d)]=JSON['stringify'](this['testFrameworkDetail']);continue;case'4':this['automationFrameworkDetail']={'name':_0x3e1642,'version':_0x3c31d3['sTElh'](getFrameworkVersion,_0x3e1642)};continue;}break;}}static[a84_0x1aaf49(0x205)](_0xd2d402,_0x1a802b){return _0xd2d402+':'+_0x1a802b;}static[a84_0x1aaf49(0x1e2)](){const _0xafd1d3=a84_0x1aaf49;return process[_0xafd1d3(0x1f4)]+':'+threadId;}static[a84_0x1aaf49(0x215)](_0x458d24){const _0x3d62a1=a84_0x1aaf49;if(_0x458d24[_0x3d62a1(0x1dd)]&&_0x458d24[_0x3d62a1(0x1dd)]['skipSessionName'])return!![];return![];}static['shouldSkipSessionStatus'](_0x28afcd){const _0x56e34e=a84_0x1aaf49;if(_0x28afcd[_0x56e34e(0x1dd)]&&_0x28afcd[_0x56e34e(0x1dd)]['skipSessionStatus'])return!![];return![];}static[a84_0x1aaf49(0x1df)](_0x4da01c){const _0x5a51c9=a84_0x1aaf49,_0x19843c=new RegExp(TestFrameworkConstants[_0x5a51c9(0x25c)]);return _0x19843c['test'](_0x4da01c);}static[a84_0x1aaf49(0x292)](_0xeb9ebb,_0x2ad8bb){const _0x267b61=a84_0x1aaf49,_0x57b7eb={};_0x57b7eb[_0x267b61(0x1f8)]=function(_0x557ca3,_0x42d832){return _0x557ca3!==_0x42d832;},_0x57b7eb[_0x267b61(0x224)]=function(_0x26b767,_0x1ff61a){return _0x26b767===_0x1ff61a;},_0x57b7eb[_0x267b61(0x27c)]=_0x267b61(0x259);const _0x3875e0=_0x57b7eb;for(const [_0x547303,_0x48ca65]of Object[_0x267b61(0x229)](_0x2ad8bb)){if(_0x3875e0['etvTe'](_0x48ca65,null)&&_0x3875e0[_0x267b61(0x224)](typeof _0x48ca65,_0x3875e0['jyIFp'])&&!Array[_0x267b61(0x21b)](_0x48ca65))_0xeb9ebb[_0x547303]=this['mergeObject'](_0xeb9ebb[_0x547303]||{},_0x48ca65);else Array[_0x267b61(0x21b)](_0x48ca65)?_0xeb9ebb[_0x547303]=(_0xeb9ebb[_0x547303]||[])[_0x267b61(0x232)](_0x48ca65):_0xeb9ebb[_0x547303]=_0x48ca65;}return _0xeb9ebb;}}function a84_0x5100(_0x381b3c,_0x43f967){const _0x3ce788=a84_0x3ce7();return a84_0x5100=function(_0x5100e9,_0x509a08){_0x5100e9=_0x5100e9-0x1cf;let _0x3ea317=_0x3ce788[_0x5100e9];return _0x3ea317;},a84_0x5100(_0x381b3c,_0x43f967);}module[a84_0x1aaf49(0x1e6)]=CLIUtils;function a84_0x3ce7(){const _0x450cda=['Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','TNqEo','qBQGB','chmod','qFTcC','27TDWtcF','lMiwn','opCNp','XJNXO','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','../../helpers/classLogger.js','LMvjl','CLI\x20version\x20found\x20despite\x20error:\x20\x22','start','split','openSync','mUCEF','3TPNJqq','HvrYR','KZgZO','gGCnI','downloadLatestBinary','setupCliPath','yHoyF','JIciE','teqEc','gTYjl','basename','getExistingCliPath','RVjPs','cwd','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','includes','../../helpers/utilities','info','createWriteStream','yauzl','IBMlV','testContextOptions','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','matchHookRegex','mtime','setFrameworkDetail','getCurrentInstanceName','GEfbn','jsbFY','FQabO','exports','version','Configuring\x20Cli\x20path.','2|0|4|1|3','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','QBrXj','wXlFJ','816708rlYIaI','pipe','closeSync','arch','../../helpers/helper','lKGqh','url','pid','ZSydB','Resolved\x20binary\x20path:\x20','filePath','etvTe','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','./instances/testFrameworkInstance.js','LuWWU','SDK_CLI_CHECK_UPDATE','../utils/constants','LGuZA','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','FqxLS','getSdkLanguage','Setting\x20required\x20permissions\x20to\x20','startsWith','end','getHookRegistryKey','fileName','PPOJT','jGAuk','BYEwn','isBinaryBusy','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','wffRl','sHudw','\x20already\x20exists','./state/automationFrameworkState.js','oLnta','readEntry','Wpdzu','entry','homedir','shouldSkipSessionName','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','pVyOU','cli','development','../../../package.json','isArray','format','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Folder\x20','binary-','debug','automationFrameworkDetail','62EkNDQQ','kGCIR','pjaPY','aXyMp','Failed\x20to\x20delete\x20zip\x20file:\x20','MmDmL','.zip','entries','statSync','GET','SSjwA','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','0755','FzBhE','Error\x20while\x20reading\x20CLI\x20path:\x20','join','concat','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','3126908wOhRfG','util','reduce','3944808kOjWIp','downloadFileStream','JEdJI','QsOJh','Downloading\x20SDK\x20binary\x20from:\x20','error','hZJsp','downloaded_file_','.sock','822195pDOBKY','BROWSERSTACK_FILES_DIR','lrjxy','readdirSync','pIvKF','avcat','.tmp.','stringify','copyFileSync','isFile','path','getCliDir','wAiub','cSLAB','10103ZjFMnI','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','unlink','SDK_CLI_BIN_PATH','close','rename','Binary\x20is\x20busy:\x20','testFrameworkDetail','jDhlE','qAECz','listen','object','Resolving\x20with\x20stdout:\x20\x22','cli_version','HOOK_REGEX','tmpdir','message','.browserstack','QqyST','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','../../helpers/performance/constants','BROWSERSTACK_BINARY_URL','./framework/constants/testFrameworkConstants.js','uWNyQ','platform','worker_threads','getWritableDir','map','checkAndUpdateCli','runShellCommand','VXSRZ','Current\x20CLI\x20Path\x20Found:\x20','existsSync','nxaaY','timeout','../../helpers/performance/performance-tester.js','JYyQl','LssjS','follow-redirects','warn','Development\x20Cli\x20Path:\x20','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','data','SHELL_EXECUTE_ERROR','./state/testFrameworkState.js','unix:/tmp/sdk-platform-','jyIFp','CRiWs','env','gvvIh','open','7242816EOoSly','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','response\x20','aVwoL','getCLIParamsForDevEnv','YmYKQ','requestToUpdateCLI','./state/hookState.js','getSdkVersion','SDK_CLI_DOWNLOAD','wXUuL','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','niEMI','3477020tboHnQ','YDucn','UQqEl','code','mergeObject','trim','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','BROWSERSTACK_CLI_ENV','ipVEo','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20',',\x20automationFramework=','aglrQ'];a84_0x3ce7=function(){return _0x450cda;};return a84_0x3ce7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a85_0x1c6409=a85_0x138c;(function(_0x5cafb5,_0x45bb41){const _0x10709b=a85_0x138c,_0x3cd99a=_0x5cafb5();while(!![]){try{const _0x3033f5=parseInt(_0x10709b(0x1af))/0x1+parseInt(_0x10709b(0x1f3))/0x2+-parseInt(_0x10709b(0x1d1))/0x3+-parseInt(_0x10709b(0x228))/0x4+parseInt(_0x10709b(0x1c5))/0x5*(-parseInt(_0x10709b(0x218))/0x6)+-parseInt(_0x10709b(0x1ba))/0x7*(parseInt(_0x10709b(0x1ae))/0x8)+parseInt(_0x10709b(0x227))/0x9;if(_0x3033f5===_0x45bb41)break;else _0x3cd99a['push'](_0x3cd99a['shift']());}catch(_0x24b9d4){_0x3cd99a['push'](_0x3cd99a['shift']());}}}(a85_0x3f9e,0xcb74b));function a85_0x138c(_0x46f108,_0x1d32ae){const _0x3f9ed2=a85_0x3f9e();return a85_0x138c=function(_0x138c35,_0x1ba74c){_0x138c35=_0x138c35-0x1a4;let _0x294c33=_0x3f9ed2[_0x138c35];return _0x294c33;},a85_0x138c(_0x46f108,_0x1d32ae);}function a85_0x3f9e(){const _0xc691f5=['fJEiG','RQSXA','tmpdir','QHIRR','CjKNh','COCdn','TEST','UVXBF','106626JjcYEv','elrtI','readFileSync','mtimeMs','buildHashedId','buildLevelTags','./modules/playwrightDriverModule','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','setCustomTags','\x20->\x20values=','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','addMultipleEntries','isRunning','KEY_CUSTOM_TAGS','cpqOc','15995556mCASoE','230896ErdyLT','setTestDetails','./framework/automationFramework','parse','./state/testFrameworkState','getState','getTestFrameworkDetail','PluWD','length','keys','../../helpers/classLogger','getBuildTagsFilePath','statSync','name','resolveInstance','PtXDN','exports','KgZwu','136Milhxg','797911QRKLyg','toObject','MODULE_NAME','getTrackedInstance','now','POST','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','values','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','CustomTagManager','kqRly','309393dgZslH',',\x20finalTags=','xdjIS','testInfo','writeFile','modules','CvtUM','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','mergeIntoTags','kJpVn','from','425sueFgf','testLevelTags','dZnYl','trim','promises','ms)\x20','getBuildTagsRunId','entries','multi_dropdown','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','./state/hookState','join','1018302YxgQqr','message',',\x20key=','../../helpers/helper','getInstance','DPifp','_testInternals','./cliUtils','yKwFF','isArray','./modules/testhubModule',',\x20existingTags=','VVThF','getTestDetails','testhubConfig','BUILD_TAG_FILE_PREFIX','ULOoU','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','PzBbd','get','fblnu','clearTags','unlinkSync','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','getTestIdentifierFromTestInfo','PIqsV','env','mergeBuildLevelTags','getAllData','utf8','string','.json','includes','wGVEv','1834472EUVAQA','jEsfC','./TestInfo','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','jest','KEY_TEST_ID','stringify','getTestLevelTags','nOKrn','./browserstackCLI','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','readdirSync','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','getTestUUID','pid',',\x20values=','getTestFramework','path','iXPPJ','debug','getBuildLevelTags','aggregateBuildLevelTagsFromTmp','endsWith','mergeValues','Pacei','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','YDEdF','retry','field_type'];a85_0x3f9e=function(){return _0xc691f5;};return a85_0x3f9e();}const fs=require('fs'),os=require('os'),path=require(a85_0x1c6409(0x204)),helper=require(a85_0x1c6409(0x1d4)),AutomationFramework=require(a85_0x1c6409(0x22a)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require(a85_0x1c6409(0x21e)),TestInfo=require(a85_0x1c6409(0x1f5)),TestHubModule=require(a85_0x1c6409(0x1db)),{createClassLogger}=require(a85_0x1c6409(0x1a6)),logger=createClassLogger(a85_0x1c6409(0x1b8)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function getBuildTagsRunId(){const _0x1e50b1=a85_0x1c6409,_0x5c8f22={};_0x5c8f22[_0x1e50b1(0x1ab)]=function(_0x1513fb,_0x2480ce){return _0x1513fb===_0x2480ce;},_0x5c8f22[_0x1e50b1(0x1c7)]='null';const _0x4bdb53=_0x5c8f22,_0x484d47=process[_0x1e50b1(0x1eb)]['BROWSERSTACK_TESTHUB_UUID'];if(!_0x484d47||_0x4bdb53[_0x1e50b1(0x1ab)](_0x484d47,_0x4bdb53[_0x1e50b1(0x1c7)]))return null;return _0x484d47;}function getBuildTagsFilePath(_0x4bba56){const _0x472e8f=a85_0x1c6409;return path[_0x472e8f(0x1d0)](os[_0x472e8f(0x212)](),''+BUILD_TAG_FILE_PREFIX+_0x4bba56+'_'+process[_0x472e8f(0x201)]+'.json');}class CustomTagManager{static [a85_0x1c6409(0x21d)]={};static ['testLevelTags']={};static['mergeValues'](_0xa0513c,_0x23982f){const _0x39057d=a85_0x1c6409;return Array[_0x39057d(0x1c4)](new Set([..._0xa0513c||[],..._0x23982f||[]]));}static[a85_0x1c6409(0x1c2)](_0x389bf4,_0xa138c5,_0x16610d){const _0x2d1da6=a85_0x1c6409,_0x1bfa54={};_0x1bfa54[_0x2d1da6(0x1c0)]='multi_dropdown';const _0x51faea=_0x1bfa54;if(!_0x389bf4[_0xa138c5]){const _0x5d17d9={};_0x5d17d9['field_type']=_0x51faea['CvtUM'],_0x5d17d9[_0x2d1da6(0x1b6)]=[..._0x16610d||[]],_0x389bf4[_0xa138c5]=_0x5d17d9;}else!_0x389bf4[_0xa138c5][_0x2d1da6(0x20f)]&&(_0x389bf4[_0xa138c5][_0x2d1da6(0x20f)]=_0x51faea[_0x2d1da6(0x1c0)]),!Array['isArray'](_0x389bf4[_0xa138c5]['values'])&&(_0x389bf4[_0xa138c5][_0x2d1da6(0x1b6)]=[]),_0x389bf4[_0xa138c5][_0x2d1da6(0x1b6)]=CustomTagManager['mergeValues'](_0x389bf4[_0xa138c5][_0x2d1da6(0x1b6)],_0x16610d);return _0x389bf4;}static async[a85_0x1c6409(0x220)](_0x53df36,_0xedfd1b,_0x393820=![]){const _0x595297=a85_0x1c6409,_0x5d8061={'RQSXA':function(_0xc9011c,_0x378519){return _0xc9011c!==_0x378519;},'fblnu':_0x595297(0x1ef),'KgZwu':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','iIMtm':_0x595297(0x1e2),'kqRly':function(_0x4627d3,_0x2a84fc){return _0x4627d3===_0x2a84fc;},'PIqsV':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','cpqOc':function(_0x28a87e,_0x55c81a){return _0x28a87e===_0x55c81a;},'PzBbd':_0x595297(0x222),'QHIRR':function(_0x2fec65,_0x2a0a23){return _0x2fec65(_0x2a0a23);},'UVXBF':_0x595297(0x1fc),'fJEiG':function(_0x1d6e91){return _0x1d6e91();},'YDEdF':_0x595297(0x1cd),'Pacei':function(_0x22bd2a,_0x18e48e){return _0x22bd2a>_0x18e48e;},'LtPWl':function(_0x90b2d1,_0x50c101){return _0x90b2d1(_0x50c101);},'yKwFF':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','ULOoU':':jest-','nOKrn':_0x595297(0x1d8),'vXgzZ':_0x595297(0x1f7),'wGVEv':_0x595297(0x1c1),'jEsfC':function(_0x3655c8,_0x2db96c){return _0x3655c8(_0x2db96c);},'amAgI':_0x595297(0x1f6),'CjKNh':function(_0x5ef74b,_0x2de6fc){return _0x5ef74b(_0x2de6fc);},'ITNQL':_0x595297(0x22c),'xdjIS':_0x595297(0x1cf),'kJpVn':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x5d8061[_0x595297(0x211)](typeof _0x53df36,_0x5d8061['fblnu'])){logger[_0x595297(0x206)](_0x5d8061[_0x595297(0x1ad)]);return;}if(_0x5d8061[_0x595297(0x211)](typeof _0xedfd1b,_0x5d8061[_0x595297(0x1e5)])){logger['debug'](_0x5d8061['iIMtm']);return;}if(_0x5d8061[_0x595297(0x1b9)](_0x53df36[_0x595297(0x1c8)](),'')){logger[_0x595297(0x206)](_0x5d8061[_0x595297(0x1ea)]);return;}if(_0x5d8061[_0x595297(0x226)](_0xedfd1b[_0x595297(0x1c8)](),'')){logger[_0x595297(0x206)](_0x5d8061[_0x595297(0x1e3)]);return;}const _0x33dc9a=helper['parseCommaSeparatedValues'](_0xedfd1b);if(_0x393820){const _0x43df14=_0x5d8061[_0x595297(0x213)](require,_0x5d8061[_0x595297(0x217)]),_0x403227=_0x43df14[_0x595297(0x1d5)](),_0x35d927=_0x403227&&_0x403227[_0x595297(0x1bf)][TestHubModule[_0x595297(0x1b1)]];if(_0x35d927){const _0x105ba8=_0x35d927?.[_0x595297(0x1df)]?.[_0x595297(0x1b0)]()?.[_0x595297(0x21c)];TestInfo[_0x595297(0x200)](_0x105ba8);const _0x3b4690=TestInfo[_0x595297(0x1de)](_0x105ba8),_0x56dbcd=_0x3b4690[TestFrameworkConstants[_0x595297(0x225)]]||{};CustomTagManager[_0x595297(0x1c2)](_0x56dbcd,_0x53df36,_0x33dc9a),_0x3b4690[TestFrameworkConstants[_0x595297(0x225)]]=_0x56dbcd,TestInfo[_0x595297(0x229)](_0x105ba8,_0x3b4690);!this[_0x595297(0x21d)][_0x105ba8]&&(this['buildLevelTags'][_0x105ba8]={});this[_0x595297(0x21d)][_0x105ba8][_0x53df36]=CustomTagManager[_0x595297(0x20a)](this[_0x595297(0x21d)][_0x105ba8][_0x53df36],_0x33dc9a);try{const _0x6cbde4=_0x5d8061[_0x595297(0x210)](getBuildTagsRunId);if(_0x6cbde4){const _0x36857b={};for(const [_0x239795,_0x671c51]of Object[_0x595297(0x1cc)](this[_0x595297(0x21d)][_0x105ba8]||{})){_0x36857b[_0x239795]={'field_type':_0x5d8061[_0x595297(0x20d)],'values':Array[_0x595297(0x1da)](_0x671c51)?[..._0x671c51]:[]};}_0x5d8061[_0x595297(0x20b)](Object[_0x595297(0x1a5)](_0x36857b)[_0x595297(0x1a4)],0x0)&&await fs[_0x595297(0x1c9)][_0x595297(0x1be)](_0x5d8061['LtPWl'](getBuildTagsFilePath,_0x6cbde4),JSON['stringify'](_0x36857b));}else logger['debug'](_0x5d8061[_0x595297(0x1d9)]);}catch(_0x4501d9){logger[_0x595297(0x206)]('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0x4501d9&&_0x4501d9[_0x595297(0x1d2)]?_0x4501d9[_0x595297(0x1d2)]:_0x4501d9));}}}else{let _0x3062e1;const _0x6b250b=global['__jestCurrentTestIdentifier'];let _0x49a924=![];if(_0x6b250b&&_0x6b250b[_0x595297(0x1f1)](_0x5d8061[_0x595297(0x1e1)]))_0x49a924=!![],_0x3062e1=_0x6b250b;else try{const _0x42298f=_0x5d8061[_0x595297(0x213)](require,_0x5d8061[_0x595297(0x1fb)]),_0x33648e=_0x5d8061['QHIRR'](require,_0x5d8061['UVXBF']);if(_0x33648e[_0x595297(0x1d5)]()[_0x595297(0x224)]()){const _0x160929=_0x42298f[_0x595297(0x22e)]();if(_0x5d8061['cpqOc'](_0x160929?.[_0x595297(0x1a9)]?.['toLowerCase'](),_0x5d8061['vXgzZ'])){const _0x195324=AutomationFramework[_0x595297(0x1b2)]();_0x3062e1=AutomationFramework[_0x595297(0x22d)](_0x195324,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x3062e1&&_0x3062e1['includes'](_0x5d8061[_0x595297(0x1e1)])&&(_0x49a924=!![]);}}}catch(_0xbb576c){logger[_0x595297(0x206)](_0x595297(0x1ff)+_0xbb576c);}if(_0x49a924){if(!_0x3062e1)throw new Error(_0x5d8061[_0x595297(0x1f2)]);const _0x31a14a=_0x5d8061[_0x595297(0x1f4)](require,_0x5d8061[_0x595297(0x217)]),_0x5bd004=_0x31a14a[_0x595297(0x1d5)]()[_0x595297(0x203)]();if(!_0x5bd004)throw new Error(_0x5d8061['amAgI']);const _0x46324b=_0x5d8061['CjKNh'](require,_0x5d8061['ITNQL']),_0x463411=_0x5d8061[_0x595297(0x214)](require,_0x5d8061[_0x595297(0x1bc)]),_0x42fe0a=_0x5bd004[_0x595297(0x1aa)](_0x46324b[_0x595297(0x216)],_0x463411[_0x595297(0x1b4)]);if(!_0x42fe0a)throw new Error(_0x5d8061[_0x595297(0x1c3)]);const _0x5bd981=_0x42fe0a[_0x595297(0x1ed)]()[_0x595297(0x1e4)](_0x3062e1)||{},_0x3d8a56=_0x5bd981[TestFrameworkConstants[_0x595297(0x225)]]||{};logger['debug'](_0x595297(0x1ce)+_0x3062e1+_0x595297(0x1d3)+_0x53df36+_0x595297(0x202)+JSON[_0x595297(0x1f9)](_0x33dc9a)+_0x595297(0x1dc)+JSON[_0x595297(0x1f9)](_0x3d8a56)),CustomTagManager[_0x595297(0x1c2)](_0x3d8a56,_0x53df36,_0x33dc9a),logger['debug']('[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key='+_0x53df36+_0x595297(0x221)+JSON[_0x595297(0x1f9)](_0x3d8a56[_0x53df36][_0x595297(0x1b6)]));const _0x298026={[TestFrameworkConstants[_0x595297(0x225)]]:_0x3d8a56},_0x450fb1={};_0x450fb1[_0x3062e1]=_0x298026,_0x42fe0a[_0x595297(0x223)](_0x450fb1),logger[_0x595297(0x206)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x3062e1+_0x595297(0x1bb)+JSON['stringify'](_0x3d8a56)),!this[_0x595297(0x1c6)][_0x3062e1]&&(this[_0x595297(0x1c6)][_0x3062e1]={}),this['testLevelTags'][_0x3062e1][_0x53df36]=CustomTagManager['mergeValues'](this['testLevelTags'][_0x3062e1][_0x53df36],_0x33dc9a);}else{const _0x35b53d=global['__workerDetails']?.['currentTest']?.[_0x595297(0x1bd)];if(!_0x35b53d){const _0x3b47c1=AutomationFramework[_0x595297(0x1b2)]();_0x3062e1=AutomationFramework[_0x595297(0x22d)](_0x3b47c1,PlaywrightDriverModule[_0x595297(0x1f8)],'');}else _0x3062e1=TestInfo[_0x595297(0x1e9)](_0x35b53d,_0x35b53d[_0x595297(0x20e)]);const _0x1b78db=TestInfo[_0x595297(0x1de)](_0x3062e1),_0x416442=_0x1b78db[TestFrameworkConstants[_0x595297(0x225)]]||{};CustomTagManager[_0x595297(0x1c2)](_0x416442,_0x53df36,_0x33dc9a),_0x1b78db[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x416442,TestInfo[_0x595297(0x229)](_0x3062e1,_0x1b78db),!this[_0x595297(0x1c6)][_0x3062e1]&&(this[_0x595297(0x1c6)][_0x3062e1]={}),this[_0x595297(0x1c6)][_0x3062e1][_0x53df36]=CustomTagManager[_0x595297(0x20a)](this[_0x595297(0x1c6)][_0x3062e1][_0x53df36],_0x33dc9a);}}}static[a85_0x1c6409(0x207)](){const _0xdf1798=a85_0x1c6409,_0x57eb24={...this[_0xdf1798(0x21d)]};return _0x57eb24;}static[a85_0x1c6409(0x1fa)](){const _0x419dad={...this['testLevelTags']};return _0x419dad;}static[a85_0x1c6409(0x1e6)](){const _0x29d12e=a85_0x1c6409;this[_0x29d12e(0x21d)]={},this[_0x29d12e(0x1c6)]={};}static[a85_0x1c6409(0x1ec)](_0x2aa0e6,_0x29dda9){const _0x134066=a85_0x1c6409,_0xbc633f={};_0xbc633f['COCdn']=function(_0x1367c1,_0x41dd14){return _0x1367c1||_0x41dd14;};const _0x45ed0a=_0xbc633f;if(!_0x2aa0e6)return;!this[_0x134066(0x21d)][_0x2aa0e6]&&(this['buildLevelTags'][_0x2aa0e6]={});for(const [_0x3f05d4,_0x1f0de2]of Object[_0x134066(0x1cc)](_0x45ed0a[_0x134066(0x215)](_0x29dda9,{}))){if(!_0x1f0de2||!Array[_0x134066(0x1da)](_0x1f0de2[_0x134066(0x1b6)]))continue;this['buildLevelTags'][_0x2aa0e6][_0x3f05d4]=CustomTagManager[_0x134066(0x20a)](this['buildLevelTags'][_0x2aa0e6][_0x3f05d4],_0x1f0de2[_0x134066(0x1b6)]);}}static[a85_0x1c6409(0x208)](_0x453464,_0x92af0e){const _0x34aae5=a85_0x1c6409,_0x4b915d={};_0x4b915d['elrtI']=_0x34aae5(0x20c),_0x4b915d['PluWD']=function(_0x3d0af4,_0x1d7040){return _0x3d0af4*_0x1d7040;},_0x4b915d[_0x34aae5(0x205)]=function(_0x284626,_0x30b12e){return _0x284626*_0x30b12e;},_0x4b915d[_0x34aae5(0x1d6)]=function(_0x5463cf,_0x1eca39){return _0x5463cf>_0x1eca39;},_0x4b915d['oJLuC']=function(_0x175bd2,_0x2727c7){return _0x175bd2-_0x2727c7;},_0x4b915d[_0x34aae5(0x1dd)]=_0x34aae5(0x1ee);const _0x2a5433=_0x4b915d;if(!_0x453464)return logger[_0x34aae5(0x206)](_0x2a5433[_0x34aae5(0x219)]),0x0;let _0xdb0074;try{_0xdb0074=os[_0x34aae5(0x212)]();}catch(_0x41eea4){return logger[_0x34aae5(0x206)](_0x34aae5(0x1fd)+_0x41eea4),0x0;}let _0x2943e7;try{_0x2943e7=fs[_0x34aae5(0x1fe)](_0xdb0074);}catch(_0x52ea19){return logger[_0x34aae5(0x206)](_0x34aae5(0x21f)+_0x52ea19),0x0;}const _0xcd4b5a=''+BUILD_TAG_FILE_PREFIX+_0x453464+'_',_0x2b9c34=_0x2943e7['filter'](_0x40fedb=>_0x40fedb['startsWith'](_0xcd4b5a)&&_0x40fedb[_0x34aae5(0x209)](_0x34aae5(0x1f0))),_0x127402=_0x2a5433['PluWD'](_0x2a5433[_0x34aae5(0x205)](_0x2a5433[_0x34aae5(0x22f)](0x2,0x3c),0x3c),0x3e8);let _0x34f0ed=0x0;for(const _0xc68bcc of _0x2b9c34){const _0x103fc2=path['join'](_0xdb0074,_0xc68bcc);try{const _0x3c5863=fs[_0x34aae5(0x1a8)](_0x103fc2);if(_0x2a5433[_0x34aae5(0x1d6)](_0x2a5433['oJLuC'](Date[_0x34aae5(0x1b3)](),_0x3c5863[_0x34aae5(0x21b)]),_0x127402)){logger[_0x34aae5(0x206)](_0x34aae5(0x1b5)+_0x127402+_0x34aae5(0x1ca)+_0xc68bcc);try{fs[_0x34aae5(0x1e7)](_0x103fc2);}catch(_0x10ddab){logger[_0x34aae5(0x206)](_0x34aae5(0x1b7)+_0xc68bcc+':\x20'+(_0x10ddab&&_0x10ddab[_0x34aae5(0x1d2)]?_0x10ddab['message']:_0x10ddab));}continue;}const _0x1316b4=fs[_0x34aae5(0x21a)](_0x103fc2,_0x2a5433[_0x34aae5(0x1dd)]),_0x3608c5=JSON[_0x34aae5(0x22b)](_0x1316b4);this[_0x34aae5(0x1ec)](_0x92af0e,_0x3608c5),_0x34f0ed+=0x1;}catch(_0x2dc489){logger[_0x34aae5(0x206)](_0x34aae5(0x1e8)+_0xc68bcc+':\x20'+(_0x2dc489&&_0x2dc489[_0x34aae5(0x1d2)]?_0x2dc489[_0x34aae5(0x1d2)]:_0x2dc489));}try{fs[_0x34aae5(0x1e7)](_0x103fc2);}catch(_0x5da010){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'+_0xc68bcc+':\x20'+(_0x5da010&&_0x5da010[_0x34aae5(0x1d2)]?_0x5da010[_0x34aae5(0x1d2)]:_0x5da010));}}return _0x34f0ed;}}const a85_0x29591c={};a85_0x29591c[a85_0x1c6409(0x1cb)]=getBuildTagsRunId,a85_0x29591c[a85_0x1c6409(0x1a7)]=getBuildTagsFilePath,a85_0x29591c[a85_0x1c6409(0x1e0)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a85_0x1c6409(0x1d7)]=a85_0x29591c,module[a85_0x1c6409(0x1ac)]=CustomTagManager;
|
|
1
|
+
'use strict';function a85_0x2b2d(){const _0x171ae9=['CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','zEYfH','__workerDetails','./state/hookState','CJvJs','getBuildTagsFilePath','KEY_TEST_ID','mergeValues','multi_dropdown','NJNIb','OMwCq','bHbZT','parse','222gOUxgc','50030OlcIkn','prWdD','getTestFramework','entries','utf8','RtXzU','name',',\x20finalTags=','promises','readFileSync','5304012ZTBzPD','retry','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','string','pOkOZ','bstack_build_tags_','keys','mergeIntoTags','BUILD_TAG_FILE_PREFIX','YooHS','aggregateBuildLevelTagsFromTmp','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','IIzTZ','writeFile','29819tXWwVD','10038175KhTDIb','BTuEo','getAllData','trim','getBuildTagsRunId','./browserstackCLI','AIWFn','KSzur','oNlfX','cZlew','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','__jestCurrentTestIdentifier','61497BGwATA','sMgPQ','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','null','2530050PcKYOT','debug','length','resolveInstance','pUQnt','unlinkSync','808EgdNZy','setCustomTags','stringify',',\x20existingTags=','tmpdir','./TestInfo','toObject','getTestLevelTags','CustomTagManager','exports','KEY_CUSTOM_TAGS','BROWSERSTACK_TESTHUB_UUID','field_type','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','setTestDetails','MODULE_NAME','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','isArray','./modules/playwrightDriverModule','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','KDKOj','suRrS','6lesaHG','UaPVA','XutNp','getTestIdentifierFromTestInfo','.json','./modules/testhubModule','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','testLevelTags','_testInternals','188142KVVUUk','getBuildLevelTags','pid','XXkrO','beMnf','readdirSync','getState','../../helpers/classLogger','tHkYq','OWjHl','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','buildHashedId','env','getInstance','currentTest','toLowerCase','modules',':jest-','parseCommaSeparatedValues','./cliUtils','ms)\x20','testInfo',',\x20key=','getTrackedInstance','filter','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','values','getTestDetails','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','message','includes','DBadz','nmrWG','POST','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','TGzvG','join','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','AgwwX','RZyfr','statSync','startsWith','buildLevelTags'];a85_0x2b2d=function(){return _0x171ae9;};return a85_0x2b2d();}const a85_0x57f39f=a85_0x46d9;(function(_0x21fb0f,_0x302383){const _0x1fbda3=a85_0x46d9,_0x214d9d=_0x21fb0f();while(!![]){try{const _0xcc3d68=parseInt(_0x1fbda3(0xa8))/0x1*(parseInt(_0x1fbda3(0xd5))/0x2)+parseInt(_0x1fbda3(0xde))/0x3+-parseInt(_0x1fbda3(0x99))/0x4+-parseInt(_0x1fbda3(0x8f))/0x5*(parseInt(_0x1fbda3(0x116))/0x6)+parseInt(_0x1fbda3(0xa9))/0x7+parseInt(_0x1fbda3(0xbf))/0x8*(parseInt(_0x1fbda3(0xb5))/0x9)+parseInt(_0x1fbda3(0xb9))/0xa;if(_0xcc3d68===_0x302383)break;else _0x214d9d['push'](_0x214d9d['shift']());}catch(_0x5352ac){_0x214d9d['push'](_0x214d9d['shift']());}}}(a85_0x2b2d,0xcb655));function a85_0x46d9(_0x4a192e,_0x42854e){const _0x2b2de0=a85_0x2b2d();return a85_0x46d9=function(_0x46d9a1,_0x5f5d95){_0x46d9a1=_0x46d9a1-0x8f;let _0x34589d=_0x2b2de0[_0x46d9a1];return _0x34589d;},a85_0x46d9(_0x4a192e,_0x42854e);}const fs=require('fs'),os=require('os'),path=require('path'),helper=require('../../helpers/helper'),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require(a85_0x57f39f(0xd1)),TestInfo=require(a85_0x57f39f(0xc4)),TestHubModule=require(a85_0x57f39f(0xda)),{createClassLogger}=require(a85_0x57f39f(0xe5)),logger=createClassLogger(a85_0x57f39f(0xc7)),BUILD_TAG_FILE_PREFIX=a85_0x57f39f(0x9f);function getBuildTagsRunId(){const _0xb3651a=a85_0x57f39f,_0xa6d103={};_0xa6d103[_0xb3651a(0xe1)]=function(_0x270cd2,_0x1c0a80){return _0x270cd2===_0x1c0a80;},_0xa6d103[_0xb3651a(0xd4)]=_0xb3651a(0xb8);const _0x533d26=_0xa6d103,_0x29f7df=process[_0xb3651a(0xea)][_0xb3651a(0xca)];if(!_0x29f7df||_0x533d26['XXkrO'](_0x29f7df,_0x533d26['suRrS']))return null;return _0x29f7df;}function getBuildTagsFilePath(_0x3f70f9){const _0x1a7ee9=a85_0x57f39f;return path[_0x1a7ee9(0x102)](os[_0x1a7ee9(0xc3)](),''+BUILD_TAG_FILE_PREFIX+_0x3f70f9+'_'+process[_0x1a7ee9(0xe0)]+_0x1a7ee9(0xd9));}class CustomTagManager{static ['buildLevelTags']={};static ['testLevelTags']={};static[a85_0x57f39f(0x110)](_0xd797bf,_0x3d5201){return Array['from'](new Set([..._0xd797bf||[],..._0x3d5201||[]]));}static[a85_0x57f39f(0xa1)](_0x25bdf5,_0x762f65,_0x33ccf6){const _0xf33aee=a85_0x57f39f,_0x51d393={};_0x51d393[_0xf33aee(0xfe)]=_0xf33aee(0x111);const _0x3203be=_0x51d393;if(!_0x25bdf5[_0x762f65]){const _0x2377f1={};_0x2377f1['field_type']=_0x3203be[_0xf33aee(0xfe)],_0x2377f1[_0xf33aee(0xf8)]=[..._0x33ccf6||[]],_0x25bdf5[_0x762f65]=_0x2377f1;}else!_0x25bdf5[_0x762f65][_0xf33aee(0xcb)]&&(_0x25bdf5[_0x762f65][_0xf33aee(0xcb)]=_0x3203be[_0xf33aee(0xfe)]),!Array[_0xf33aee(0xd0)](_0x25bdf5[_0x762f65][_0xf33aee(0xf8)])&&(_0x25bdf5[_0x762f65]['values']=[]),_0x25bdf5[_0x762f65][_0xf33aee(0xf8)]=CustomTagManager['mergeValues'](_0x25bdf5[_0x762f65][_0xf33aee(0xf8)],_0x33ccf6);return _0x25bdf5;}static async[a85_0x57f39f(0xc0)](_0x2f3c81,_0x14e253,_0x473291=![]){const _0x2cd191=a85_0x57f39f,_0x32b647={'pSSto':function(_0x282c0a,_0x4ee39f){return _0x282c0a!==_0x4ee39f;},'sMgPQ':_0x2cd191(0x9d),'KDKOj':_0x2cd191(0x9c),'XutNp':function(_0x38c1d8,_0x1bf483){return _0x38c1d8!==_0x1bf483;},'GMZOu':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','KSzur':function(_0x24680d,_0x551921){return _0x24680d===_0x551921;},'pOkOZ':_0x2cd191(0xfa),'zEYfH':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','oNlfX':function(_0x51486e,_0x31d2fe){return _0x51486e(_0x31d2fe);},'bHbZT':_0x2cd191(0xae),'UaPVA':function(_0x297915){return _0x297915();},'xyyph':_0x2cd191(0x111),'TGzvG':function(_0x4f389a,_0x19dd9c){return _0x4f389a>_0x19dd9c;},'beMnf':_0x2cd191(0xdb),'AgwwX':_0x2cd191(0xef),'UPDtZ':_0x2cd191(0xf1),'BTuEo':function(_0x2b0324,_0x39c0a0){return _0x2b0324(_0x39c0a0);},'prWdD':function(_0xcf68fe,_0x2554cf){return _0xcf68fe===_0x2554cf;},'TLMMd':'jest','ygqvb':_0x2cd191(0xe8),'tHkYq':function(_0x2d4d85,_0x10aba8){return _0x2d4d85(_0x10aba8);},'cZlew':_0x2cd191(0xcc),'CJvJs':function(_0x5695f1,_0x410655){return _0x5695f1(_0x410655);},'OMwCq':'./state/testFrameworkState','OWjHl':_0x2cd191(0x10c),'IIzTZ':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x32b647['pSSto'](typeof _0x2f3c81,_0x32b647['sMgPQ'])){logger['debug'](_0x32b647[_0x2cd191(0xd3)]);return;}if(_0x32b647[_0x2cd191(0xd7)](typeof _0x14e253,_0x32b647[_0x2cd191(0xb6)])){logger[_0x2cd191(0xba)](_0x32b647['GMZOu']);return;}if(_0x32b647[_0x2cd191(0xb0)](_0x2f3c81[_0x2cd191(0xac)](),'')){logger[_0x2cd191(0xba)](_0x32b647[_0x2cd191(0x9e)]);return;}if(_0x32b647[_0x2cd191(0xb0)](_0x14e253[_0x2cd191(0xac)](),'')){logger['debug'](_0x32b647[_0x2cd191(0x10a)]);return;}const _0xaf183b=helper[_0x2cd191(0xf0)](_0x14e253);if(_0x473291){const _0x54e304=_0x32b647[_0x2cd191(0xb1)](require,_0x32b647['bHbZT']),_0x3e04ab=_0x54e304[_0x2cd191(0xeb)](),_0x13806c=_0x3e04ab&&_0x3e04ab[_0x2cd191(0xee)][TestHubModule[_0x2cd191(0xce)]];if(_0x13806c){const _0x3f7598=_0x13806c?.['testhubConfig']?.[_0x2cd191(0xc5)]()?.[_0x2cd191(0xe9)];TestInfo['getTestUUID'](_0x3f7598);const _0x1e52af=TestInfo['getTestDetails'](_0x3f7598),_0x1e1e18=_0x1e52af[TestFrameworkConstants[_0x2cd191(0xc9)]]||{};CustomTagManager[_0x2cd191(0xa1)](_0x1e1e18,_0x2f3c81,_0xaf183b),_0x1e52af[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x1e1e18,TestInfo[_0x2cd191(0xcd)](_0x3f7598,_0x1e52af);!this[_0x2cd191(0x108)][_0x3f7598]&&(this[_0x2cd191(0x108)][_0x3f7598]={});this['buildLevelTags'][_0x3f7598][_0x2f3c81]=CustomTagManager[_0x2cd191(0x110)](this[_0x2cd191(0x108)][_0x3f7598][_0x2f3c81],_0xaf183b);try{const _0x1f25be=_0x32b647[_0x2cd191(0xd6)](getBuildTagsRunId);if(_0x1f25be){const _0x8ffb04={};for(const [_0xc8f4dd,_0x1bcafe]of Object[_0x2cd191(0x92)](this[_0x2cd191(0x108)][_0x3f7598]||{})){_0x8ffb04[_0xc8f4dd]={'field_type':_0x32b647['xyyph'],'values':Array[_0x2cd191(0xd0)](_0x1bcafe)?[..._0x1bcafe]:[]};}_0x32b647[_0x2cd191(0x101)](Object[_0x2cd191(0xa0)](_0x8ffb04)[_0x2cd191(0xbb)],0x0)&&await fs[_0x2cd191(0x97)][_0x2cd191(0xa7)](_0x32b647[_0x2cd191(0xb1)](getBuildTagsFilePath,_0x1f25be),JSON[_0x2cd191(0xc1)](_0x8ffb04));}else logger[_0x2cd191(0xba)](_0x32b647[_0x2cd191(0xe2)]);}catch(_0x1a6693){logger['debug'](_0x2cd191(0xb3)+(_0x1a6693&&_0x1a6693[_0x2cd191(0xfb)]?_0x1a6693[_0x2cd191(0xfb)]:_0x1a6693));}}}else{let _0x2bf149;const _0x59a71f=global[_0x2cd191(0xb4)];let _0x13df73=![];if(_0x59a71f&&_0x59a71f[_0x2cd191(0xfc)](_0x32b647[_0x2cd191(0x104)]))_0x13df73=!![],_0x2bf149=_0x59a71f;else try{const _0x137b3c=_0x32b647['oNlfX'](require,_0x32b647['UPDtZ']),_0x617c79=_0x32b647[_0x2cd191(0xaa)](require,_0x32b647[_0x2cd191(0x114)]);if(_0x617c79[_0x2cd191(0xeb)]()['isRunning']()){const _0x17e307=_0x137b3c['getTestFrameworkDetail']();if(_0x32b647[_0x2cd191(0x90)](_0x17e307?.[_0x2cd191(0x95)]?.[_0x2cd191(0xed)](),_0x32b647['TLMMd'])){const _0x29b533=AutomationFramework[_0x2cd191(0xf5)]();_0x2bf149=AutomationFramework[_0x2cd191(0xe4)](_0x29b533,PlaywrightDriverModule[_0x2cd191(0x10f)],''),_0x2bf149&&_0x2bf149['includes'](_0x32b647['AgwwX'])&&(_0x13df73=!![]);}}}catch(_0x1d41ad){logger['debug'](_0x2cd191(0x103)+_0x1d41ad);}if(_0x13df73){if(!_0x2bf149)throw new Error(_0x32b647['ygqvb']);const _0x1ce7c5=_0x32b647[_0x2cd191(0xe6)](require,_0x32b647[_0x2cd191(0x114)]),_0x215728=_0x1ce7c5[_0x2cd191(0xeb)]()[_0x2cd191(0x91)]();if(!_0x215728)throw new Error(_0x32b647[_0x2cd191(0xb2)]);const _0x5e1094=_0x32b647[_0x2cd191(0x10d)](require,_0x32b647[_0x2cd191(0x113)]),_0x7bee03=_0x32b647[_0x2cd191(0x10d)](require,_0x32b647[_0x2cd191(0xe7)]),_0x5758ad=_0x215728[_0x2cd191(0xbc)](_0x5e1094['TEST'],_0x7bee03[_0x2cd191(0xff)]);if(!_0x5758ad)throw new Error(_0x32b647[_0x2cd191(0xa6)]);const _0x1c75c8=_0x5758ad[_0x2cd191(0xab)]()['get'](_0x2bf149)||{},_0x41aee3=_0x1c75c8[TestFrameworkConstants[_0x2cd191(0xc9)]]||{};logger[_0x2cd191(0xba)](_0x2cd191(0x100)+_0x2bf149+_0x2cd191(0xf4)+_0x2f3c81+',\x20values='+JSON[_0x2cd191(0xc1)](_0xaf183b)+_0x2cd191(0xc2)+JSON[_0x2cd191(0xc1)](_0x41aee3)),CustomTagManager[_0x2cd191(0xa1)](_0x41aee3,_0x2f3c81,_0xaf183b),logger[_0x2cd191(0xba)]('[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key='+_0x2f3c81+'\x20->\x20values='+JSON[_0x2cd191(0xc1)](_0x41aee3[_0x2f3c81][_0x2cd191(0xf8)]));const _0x2d636e={[TestFrameworkConstants[_0x2cd191(0xc9)]]:_0x41aee3},_0xb527ef={};_0xb527ef[_0x2bf149]=_0x2d636e,_0x5758ad['addMultipleEntries'](_0xb527ef),logger[_0x2cd191(0xba)](_0x2cd191(0xa5)+_0x2bf149+_0x2cd191(0x96)+JSON[_0x2cd191(0xc1)](_0x41aee3)),!this['testLevelTags'][_0x2bf149]&&(this[_0x2cd191(0xdc)][_0x2bf149]={}),this[_0x2cd191(0xdc)][_0x2bf149][_0x2f3c81]=CustomTagManager['mergeValues'](this[_0x2cd191(0xdc)][_0x2bf149][_0x2f3c81],_0xaf183b);}else{const _0x79dcfb=global[_0x2cd191(0x10b)]?.[_0x2cd191(0xec)]?.[_0x2cd191(0xf3)];if(!_0x79dcfb){const _0x1e6b0a=AutomationFramework[_0x2cd191(0xf5)]();_0x2bf149=AutomationFramework[_0x2cd191(0xe4)](_0x1e6b0a,PlaywrightDriverModule[_0x2cd191(0x10f)],'');}else _0x2bf149=TestInfo[_0x2cd191(0xd8)](_0x79dcfb,_0x79dcfb[_0x2cd191(0x9a)]);const _0x881840=TestInfo[_0x2cd191(0xf9)](_0x2bf149),_0x159d29=_0x881840[TestFrameworkConstants[_0x2cd191(0xc9)]]||{};CustomTagManager[_0x2cd191(0xa1)](_0x159d29,_0x2f3c81,_0xaf183b),_0x881840[TestFrameworkConstants[_0x2cd191(0xc9)]]=_0x159d29,TestInfo[_0x2cd191(0xcd)](_0x2bf149,_0x881840),!this[_0x2cd191(0xdc)][_0x2bf149]&&(this['testLevelTags'][_0x2bf149]={}),this[_0x2cd191(0xdc)][_0x2bf149][_0x2f3c81]=CustomTagManager[_0x2cd191(0x110)](this[_0x2cd191(0xdc)][_0x2bf149][_0x2f3c81],_0xaf183b);}}}static[a85_0x57f39f(0xdf)](){const _0x5d1c1c=a85_0x57f39f,_0x25709c={...this[_0x5d1c1c(0x108)]};return _0x25709c;}static[a85_0x57f39f(0xc6)](){const _0x3e383b={...this['testLevelTags']};return _0x3e383b;}static['clearTags'](){const _0xdf7d77=a85_0x57f39f;this[_0xdf7d77(0x108)]={},this[_0xdf7d77(0xdc)]={};}static['mergeBuildLevelTags'](_0x355250,_0x19331c){const _0x2ca55f=a85_0x57f39f,_0x2b488e={};_0x2b488e['pUQnt']=function(_0x2029f0,_0x1a9592){return _0x2029f0||_0x1a9592;};const _0x3f9823=_0x2b488e;if(!_0x355250)return;!this['buildLevelTags'][_0x355250]&&(this[_0x2ca55f(0x108)][_0x355250]={});for(const [_0x261fae,_0x2f7447]of Object[_0x2ca55f(0x92)](_0x3f9823[_0x2ca55f(0xbd)](_0x19331c,{}))){if(!_0x2f7447||!Array[_0x2ca55f(0xd0)](_0x2f7447[_0x2ca55f(0xf8)]))continue;this[_0x2ca55f(0x108)][_0x355250][_0x261fae]=CustomTagManager[_0x2ca55f(0x110)](this['buildLevelTags'][_0x355250][_0x261fae],_0x2f7447[_0x2ca55f(0xf8)]);}}static[a85_0x57f39f(0xa4)](_0x20c75f,_0x54c749){const _0x592910=a85_0x57f39f,_0xeaa194={};_0xeaa194[_0x592910(0xa3)]=_0x592910(0xcf),_0xeaa194[_0x592910(0xfd)]=function(_0x309c04,_0x59cca3){return _0x309c04*_0x59cca3;},_0xeaa194[_0x592910(0x94)]=function(_0x4b9a47,_0x2b8fb8){return _0x4b9a47*_0x2b8fb8;},_0xeaa194['RZyfr']=function(_0x2a8831,_0x243156){return _0x2a8831>_0x243156;},_0xeaa194[_0x592910(0x112)]=function(_0x2f66b2,_0x26ddd9){return _0x2f66b2-_0x26ddd9;},_0xeaa194['AIWFn']=_0x592910(0x93);const _0x39d461=_0xeaa194;if(!_0x20c75f)return logger[_0x592910(0xba)](_0x39d461[_0x592910(0xa3)]),0x0;let _0x281a8b;try{_0x281a8b=os['tmpdir']();}catch(_0xc61e1d){return logger[_0x592910(0xba)](_0x592910(0xb7)+_0xc61e1d),0x0;}let _0x3c927b;try{_0x3c927b=fs[_0x592910(0xe3)](_0x281a8b);}catch(_0x4462d6){return logger[_0x592910(0xba)](_0x592910(0x9b)+_0x4462d6),0x0;}const _0x344b06=''+BUILD_TAG_FILE_PREFIX+_0x20c75f+'_',_0x3cc4eb=_0x3c927b[_0x592910(0xf6)](_0x214b6f=>_0x214b6f[_0x592910(0x107)](_0x344b06)&&_0x214b6f['endsWith'](_0x592910(0xd9))),_0x27bf18=_0x39d461['DBadz'](_0x39d461[_0x592910(0xfd)](_0x39d461[_0x592910(0x94)](0x2,0x3c),0x3c),0x3e8);let _0x22ee37=0x0;for(const _0x2af2f1 of _0x3cc4eb){const _0x362513=path[_0x592910(0x102)](_0x281a8b,_0x2af2f1);try{const _0x1dfef7=fs[_0x592910(0x106)](_0x362513);if(_0x39d461[_0x592910(0x105)](_0x39d461[_0x592910(0x112)](Date['now'](),_0x1dfef7['mtimeMs']),_0x27bf18)){logger[_0x592910(0xba)](_0x592910(0xf7)+_0x27bf18+_0x592910(0xf2)+_0x2af2f1);try{fs[_0x592910(0xbe)](_0x362513);}catch(_0x46da8d){logger[_0x592910(0xba)](_0x592910(0xd2)+_0x2af2f1+':\x20'+(_0x46da8d&&_0x46da8d[_0x592910(0xfb)]?_0x46da8d[_0x592910(0xfb)]:_0x46da8d));}continue;}const _0x4d3e21=fs[_0x592910(0x98)](_0x362513,_0x39d461[_0x592910(0xaf)]),_0x13c8cf=JSON[_0x592910(0x115)](_0x4d3e21);this['mergeBuildLevelTags'](_0x54c749,_0x13c8cf),_0x22ee37+=0x1;}catch(_0x12f10d){logger[_0x592910(0xba)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x2af2f1+':\x20'+(_0x12f10d&&_0x12f10d['message']?_0x12f10d[_0x592910(0xfb)]:_0x12f10d));}try{fs['unlinkSync'](_0x362513);}catch(_0x316033){logger['debug'](_0x592910(0x109)+_0x2af2f1+':\x20'+(_0x316033&&_0x316033[_0x592910(0xfb)]?_0x316033[_0x592910(0xfb)]:_0x316033));}}return _0x22ee37;}}const a85_0xbe723a={};a85_0xbe723a[a85_0x57f39f(0xad)]=getBuildTagsRunId,a85_0xbe723a[a85_0x57f39f(0x10e)]=getBuildTagsFilePath,a85_0xbe723a[a85_0x57f39f(0xa2)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a85_0x57f39f(0xdd)]=a85_0xbe723a,module[a85_0x57f39f(0xc8)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x57cf38=a86_0x19b4;(function(_0x140dc0,_0x19c957){const _0x32a01f=a86_0x19b4,_0x1f6e4a=_0x140dc0();while(!![]){try{const _0x2497c9=-parseInt(_0x32a01f(0x8b))/0x1+parseInt(_0x32a01f(0x90))/0x2*(parseInt(_0x32a01f(0x93))/0x3)+-parseInt(_0x32a01f(0x92))/0x4*(parseInt(_0x32a01f(0x8a))/0x5)+-parseInt(_0x32a01f(0x82))/0x6+parseInt(_0x32a01f(0x91))/0x7*(parseInt(_0x32a01f(0x8c))/0x8)+parseInt(_0x32a01f(0x86))/0x9*(-parseInt(_0x32a01f(0x8e))/0xa)+-parseInt(_0x32a01f(0x89))/0xb*(-parseInt(_0x32a01f(0x83))/0xc);if(_0x2497c9===_0x19c957)break;else _0x1f6e4a['push'](_0x1f6e4a['shift']());}catch(_0x3419d2){_0x1f6e4a['push'](_0x1f6e4a['shift']());}}}(a86_0x19f4,0xd4abc));function a86_0x19f4(){const _0x490cb4=['264DSpxkI','XvSDV','1786716lOWabx','894300iVCEVw','freeze','observers','666KtrpjA','exports','notifyObserver','418vpHINA','155zFqIwn','777442dIFtmE','1544vxilcy','registerObserver','174970MCScnH','getInstance','38450gfJGHi','2275CDoEkO','173596GaSPjU'];a86_0x19f4=function(){return _0x490cb4;};return a86_0x19f4();}const {createClassLogger}=require('../../helpers/classLogger.js');function a86_0x19b4(_0x55af88,_0x131190){const _0x19f423=a86_0x19f4();return a86_0x19b4=function(_0x19b4fc,_0x1f526c){_0x19b4fc=_0x19b4fc-0x81;let _0x29419d=_0x19f423[_0x19b4fc];return _0x29419d;},a86_0x19b4(_0x55af88,_0x131190);}class EventDispatcher{static #instance=null;constructor(){const _0x38e0c4=a86_0x19b4;this[_0x38e0c4(0x85)]={};}static['getInstance'](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a86_0x57cf38(0x8d)](_0x4bf258,_0x90c5b8){const _0x54b34=a86_0x57cf38;!this[_0x54b34(0x85)][_0x4bf258]&&(this[_0x54b34(0x85)][_0x4bf258]=[]),this[_0x54b34(0x85)][_0x4bf258]['push'](_0x90c5b8);}async[a86_0x57cf38(0x88)](_0xe814e3,_0x533ea6){const _0x52a36b=a86_0x57cf38,_0x7b0b52={'XvSDV':function(_0x344137,_0x2f1376){return _0x344137(_0x2f1376);}};if(this[_0x52a36b(0x85)][_0xe814e3]){for(const _0x2e5fa7 of this[_0x52a36b(0x85)][_0xe814e3]){await _0x7b0b52[_0x52a36b(0x81)](_0x2e5fa7,_0x533ea6);}return;}}}const eventDispatcher=EventDispatcher[a86_0x57cf38(0x8f)]();Object[a86_0x57cf38(0x84)](eventDispatcher),module[a86_0x57cf38(0x87)]=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x1ce517=a87_0x181e;(function(_0x3d0ff9,_0x28021a){const _0x5999e9=a87_0x181e,_0x3097a6=_0x3d0ff9();while(!![]){try{const _0x2106f4=-parseInt(_0x5999e9(0x9d))/0x1*(-parseInt(_0x5999e9(0xbb))/0x2)+-parseInt(_0x5999e9(0xa4))/0x3*(parseInt(_0x5999e9(0xc0))/0x4)+parseInt(_0x5999e9(0xc2))/0x5+-parseInt(_0x5999e9(0xae))/0x6*(parseInt(_0x5999e9(0xb6))/0x7)+-parseInt(_0x5999e9(0x9f))/0x8*(-parseInt(_0x5999e9(0xbd))/0x9)+parseInt(_0x5999e9(0xac))/0xa*(-parseInt(_0x5999e9(0xab))/0xb)+-parseInt(_0x5999e9(0xa3))/0xc*(-parseInt(_0x5999e9(0xa8))/0xd);if(_0x2106f4===_0x28021a)break;else _0x3097a6['push'](_0x3097a6['shift']());}catch(_0x49f2a6){_0x3097a6['push'](_0x3097a6['shift']());}}}(a87_0x1f0f,0x5266e));const {createClassLogger}=require(a87_0x1ce517(0xad)),util=require(a87_0x1ce517(0xa6)),eventDispatcher=require(a87_0x1ce517(0x9e)),CLIUtils=require(a87_0x1ce517(0xbc)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger('AutomationFramework');class AutomationFramework{static [a87_0x1ce517(0xaf)]=new Map();static [a87_0x1ce517(0xb8)]='automation_sessions';static ['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS']='non_browserstack_automation_sessions';constructor(_0x173f35,_0x35a8da){const _0x2d64f6=a87_0x1ce517;this[_0x2d64f6(0xa2)]=_0x173f35,this['automationFrameworkVersion']=_0x35a8da;}[a87_0x1ce517(0xb2)](){const _0x3fcf69=a87_0x1ce517;return this[_0x3fcf69(0xa2)];}[a87_0x1ce517(0xbf)](){const _0x59dc1e=a87_0x1ce517;return this[_0x59dc1e(0xb0)];}async[a87_0x1ce517(0xa9)](_0xa8ea36,_0x456e7e,_0x4cbf04={}){const _0x6efdab=a87_0x1ce517;logger[_0x6efdab(0x9c)](_0x6efdab(0xa0)+_0xa8ea36+_0x6efdab(0xb1)+_0x456e7e);}async['runHooks'](_0x2749b1,_0x5ea679,_0x5b556d,_0x5bad02={}){const _0x33adc3=a87_0x1ce517,_0xb5d8d3=CLIUtils['getHookRegistryKey'](_0x5ea679,_0x5b556d);_0x2749b1&&_0x2749b1['setState'](_0x5ea679),await eventDispatcher[_0x33adc3(0xb4)](_0xb5d8d3,_0x5bad02);}static[a87_0x1ce517(0xbe)](_0x40b5eb,_0x115887,_0x5ac880){const _0x5ef21b=a87_0x1ce517;eventDispatcher[_0x5ef21b(0xbe)](CLIUtils['getHookRegistryKey'](_0x40b5eb,_0x115887),_0x5ac880);}static[a87_0x1ce517(0xa5)](_0x571331,_0x218238){const _0xb75622=a87_0x1ce517;AutomationFramework[_0xb75622(0xaf)]['set'](_0x571331[_0xb75622(0xa1)](),_0x218238);}static[a87_0x1ce517(0xb9)](){const _0x3a257d=a87_0x1ce517,_0x5af416=TrackedInstance[_0x3a257d(0xb7)](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x3a257d(0xaf)][_0x3a257d(0xb3)](_0x5af416[_0x3a257d(0xa1)]());}static[a87_0x1ce517(0xb5)](_0xf08d30,_0x40e87e,_0x3cd0d8){const _0xed253c=a87_0x1ce517;_0xf08d30[_0xed253c(0xba)]()[_0xed253c(0xaa)](_0x40e87e,_0x3cd0d8);}static[a87_0x1ce517(0xa7)](_0x297b0c,_0xf1f45c){const _0x2929de=a87_0x1ce517;return _0x297b0c[_0x2929de(0xba)]()['get'](_0xf1f45c);}}function a87_0x181e(_0x33b4db,_0x36e563){const _0x1f0f6e=a87_0x1f0f();return a87_0x181e=function(_0x181ed9,_0x373dd8){_0x181ed9=_0x181ed9-0x9c;let _0x3721b2=_0x1f0f6e[_0x181ed9];return _0x3721b2;},a87_0x181e(_0x33b4db,_0x36e563);}module[a87_0x1ce517(0xc1)]=AutomationFramework;function a87_0x1f0f(){const _0x3d3e9c=['4ZiTJKe','exports','2118650roqOsu','debug','447983zskRvx','../eventDispatcher.js','894232XXKDxw','trackEvent:\x20automationFrameworkState=','getId','automationFrameworkName','259356KKzshe','430662UAoNsY','setTrackedInstance','util','getState','182SbinJi','trackEvent','set','2342373lWmjBi','30eCyHLz','../../../helpers/classLogger.js','42sIAIih','instances','automationFrameworkVersion','\x20hookState=','getAutomationFrameworkName','get','notifyObserver','setState','166173JqPdhQ','createContext','KEY_AUTOMATION_SESSIONS','getTrackedInstance','getAllData','2EQKDYt','../cliUtils.js','9iTwKQP','registerObserver','getAutomationFrameworkVersion'];a87_0x1f0f=function(){return _0x3d3e9c;};return a87_0x1f0f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x35aa67=a88_0x16a3;(function(_0x5bffc3,_0x53cf76){const _0x51b797=a88_0x16a3,_0x572b19=_0x5bffc3();while(!![]){try{const _0x39167f=-parseInt(_0x51b797(0xba))/0x1*(parseInt(_0x51b797(0xa5))/0x2)+parseInt(_0x51b797(0xb9))/0x3*(-parseInt(_0x51b797(0xa6))/0x4)+-parseInt(_0x51b797(0xad))/0x5+parseInt(_0x51b797(0xbb))/0x6+-parseInt(_0x51b797(0xaa))/0x7*(parseInt(_0x51b797(0xbc))/0x8)+-parseInt(_0x51b797(0xb5))/0x9*(parseInt(_0x51b797(0xb4))/0xa)+parseInt(_0x51b797(0xc4))/0xb;if(_0x39167f===_0x53cf76)break;else _0x572b19['push'](_0x572b19['shift']());}catch(_0x2e823d){_0x572b19['push'](_0x572b19['shift']());}}}(a88_0x3b02,0xdccf6));function a88_0x3b02(){const _0x4042e8=['KEY_PLATFORM_INDEX','KEY_IS_BROWSERSTACK_HUB','KEY_STARTED_AT','3EIRNer','1065773HCwDTb','8155428NiodFY','40024OgjNhW','platform_index','w3cexecutescriptasync','screenshot','KEY_FRAMEWORK_SESSION_ID','quit','KEY_HUB_URL','w3cexecutescript','43000309icpMZt','COMMAND_QUIT','BROWSERSTACK_PLATFORM_INDEX','2SezNsg','6502088zDRmTq','COMMAND_SCREENSHOT','COMMAND_NEW_SESSION','COMMAND_GET','595pJqVQz','KEY_ENDED_AT','exports','2187395oWsHDo','capabilities','get','newsession','hub_url','ENV_BROWSERSTACK_PLATFORM_INDEX','input_capabilities','50wBtYmu','1457802IErvAO'];a88_0x3b02=function(){return _0x4042e8;};return a88_0x3b02();}const a88_0x34df24={};function a88_0x16a3(_0x366899,_0x2dce2f){const _0x3b028e=a88_0x3b02();return a88_0x16a3=function(_0x16a3c3,_0x496c77){_0x16a3c3=_0x16a3c3-0xa3;let _0xcc7200=_0x3b028e[_0x16a3c3];return _0xcc7200;},a88_0x16a3(_0x366899,_0x2dce2f);}a88_0x34df24[a88_0x35aa67(0xb2)]=a88_0x35aa67(0xa4),a88_0x34df24[a88_0x35aa67(0xc2)]=a88_0x35aa67(0xb1),a88_0x34df24[a88_0x35aa67(0xc0)]='framework_session_id',a88_0x34df24['KEY_INPUT_CAPABILITIES']=a88_0x35aa67(0xb3),a88_0x34df24['KEY_CAPABILITIES']=a88_0x35aa67(0xae),a88_0x34df24[a88_0x35aa67(0xb7)]='is_browserstack_hub',a88_0x34df24[a88_0x35aa67(0xb8)]='started_at',a88_0x34df24[a88_0x35aa67(0xab)]='ended_at',a88_0x34df24[a88_0x35aa67(0xb6)]=a88_0x35aa67(0xbd),a88_0x34df24[a88_0x35aa67(0xa8)]=a88_0x35aa67(0xb0),a88_0x34df24[a88_0x35aa67(0xa9)]=a88_0x35aa67(0xaf),a88_0x34df24[a88_0x35aa67(0xa7)]=a88_0x35aa67(0xbf),a88_0x34df24['COMMAND_W3C_EXECUTE_SCRIPT']=a88_0x35aa67(0xc3),a88_0x34df24['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']=a88_0x35aa67(0xbe),a88_0x34df24[a88_0x35aa67(0xa3)]=a88_0x35aa67(0xc1);const AutomationFrameworkConstants=a88_0x34df24;module[a88_0x35aa67(0xac)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a89_0x36bf(_0x4502ec,_0x5b4923){const _0x4c4abe=a89_0x4c4a();return a89_0x36bf=function(_0x36bfa6,_0x4c7a35){_0x36bfa6=_0x36bfa6-0xc6;let _0x4295f5=_0x4c4abe[_0x36bfa6];return _0x4295f5;},a89_0x36bf(_0x4502ec,_0x5b4923);}const a89_0x1934fc=a89_0x36bf;function a89_0x4c4a(){const _0x19a651=['KEY_TEST_FAILURE_TYPE','event_started_at','test_attachments','619386LrvvDb','HOOK_REGEX','KEY_PLATFORM_INDEX','KEY_TEST_SCREENSHOTS','test_name','7YeDiXq','test_screenshots','test_uuid','KEY_TEST_FAILURE_REASON','KEY_TEST_FRAMEWORK_NAME','KEY_EVENT_STARTED_AT','pending','KEY_HOOKS_FINISHED','hook_result','test_scope','KEY_FILE_SIZE','KEY_HOOK_LOGS','KEY_TEST_RESULT','KEY_TEST_RETRY_OF','KEY_TEST_LOCATION','KEY_TEST_ENDED_AT','test_duration','KEY_TEST_NAME','KEY_TEST_UUID','KEY_SESSION_NAME','test_hook_last_finished','hook_name','hook_logs','KEY_HOOK_NAME','KIND_LOG','KEY_TEST_RESULT_AT','hook_id','automate_session_reason','test_tags','file_path','test_result_at','test_hooks_finished','test_meta','KEY_TEST_SCOPES','KEY_HOOK_RESULT','hook_failure','test_framework_name','6389955DKIKVS','11980460XtwHVq','test_failure','test_failure_reason','MAX_NESTED_STEP_DEPTH','KEY_TEST_STARTED_AT','KEY_HOOK_LAST_STARTED','file_level','platform_index','15bAzxEy','KEY_HOOK_FAILURE_TYPE','6554800FRsjkb','KEY_FILE_NAME','test_failure_type','KIND_SCREENSHOT','test_scopes','test_session_name','test_id','KEY_TEST_DURATION','KEY_HOOKS_STARTED','KEY_FILE_LEVEL','test_code','test_result','file_size','29426lEIUwz','KEY_EVENT_ENDED_AT','KEY_TEST_FILE_PATH','DEFAULT_HOOK_RESULT','431633xzHjAf','176553WCNPAJ','hook_failure_reason','KEY_AUTOMATE_SESSION_NAME','8NZinGm','KEY_TEST_LOGS','KEY_TEST_FAILURE','test_hook_last_started','KEY_HOOK_LAST_FINISHED','KEY_TEST_TAGS','KEY_TEST_CODE','automate_session_status','MAX_TOP_LEVEL_STEPS','test_logs','KEY_HOOK_FAILURE_REASON','KEY_TEST_ATTACHMENTS','test_hooks_started','test_rerun_name','KEY_HOOK_ID','KEY_AUTOMATE_SESSION_STATUS'];a89_0x4c4a=function(){return _0x19a651;};return a89_0x4c4a();}(function(_0xfb34e,_0x31b346){const _0x270cd9=a89_0x36bf,_0x4eb4f7=_0xfb34e();while(!![]){try{const _0xc10c5c=-parseInt(_0x270cd9(0x102))/0x1+-parseInt(_0x270cd9(0xfe))/0x2+parseInt(_0x270cd9(0x103))/0x3*(-parseInt(_0x270cd9(0x106))/0x4)+-parseInt(_0x270cd9(0xef))/0x5*(parseInt(_0x270cd9(0x119))/0x6)+parseInt(_0x270cd9(0x11e))/0x7*(parseInt(_0x270cd9(0xf1))/0x8)+-parseInt(_0x270cd9(0xe6))/0x9+parseInt(_0x270cd9(0xe7))/0xa;if(_0xc10c5c===_0x31b346)break;else _0x4eb4f7['push'](_0x4eb4f7['shift']());}catch(_0x31d6af){_0x4eb4f7['push'](_0x4eb4f7['shift']());}}}(a89_0x4c4a,0x69dfc));const a89_0x5f51ba={};a89_0x5f51ba[a89_0x1934fc(0xd3)]=a89_0x1934fc(0x120),a89_0x5f51ba['KEY_TEST_ID']=a89_0x1934fc(0xf7),a89_0x5f51ba[a89_0x1934fc(0xd2)]=a89_0x1934fc(0x11d),a89_0x5f51ba[a89_0x1934fc(0x100)]='test_file_path',a89_0x5f51ba[a89_0x1934fc(0x10b)]=a89_0x1934fc(0xdd),a89_0x5f51ba[a89_0x1934fc(0xcd)]=a89_0x1934fc(0xfc),a89_0x5f51ba[a89_0x1934fc(0xda)]=a89_0x1934fc(0xdf),a89_0x5f51ba[a89_0x1934fc(0xeb)]='test_started_at',a89_0x5f51ba[a89_0x1934fc(0xd0)]='test_ended_at',a89_0x5f51ba[a89_0x1934fc(0xcf)]='test_location',a89_0x5f51ba[a89_0x1934fc(0xf8)]=a89_0x1934fc(0xd1),a89_0x5f51ba['KEY_TEST_SCOPE']=a89_0x1934fc(0xca),a89_0x5f51ba[a89_0x1934fc(0xe2)]=a89_0x1934fc(0xf5),a89_0x5f51ba[a89_0x1934fc(0x122)]=a89_0x1934fc(0xe5),a89_0x5f51ba['KEY_TEST_FRAMEWORK_VERSION']='test_framework_version',a89_0x5f51ba[a89_0x1934fc(0x10c)]=a89_0x1934fc(0xfb),a89_0x5f51ba['KEY_TEST_RERUN_NAME']=a89_0x1934fc(0x113),a89_0x5f51ba[a89_0x1934fc(0xce)]='retry_of',a89_0x5f51ba[a89_0x1934fc(0x11b)]=a89_0x1934fc(0xee),a89_0x5f51ba[a89_0x1934fc(0x108)]=a89_0x1934fc(0xe8),a89_0x5f51ba[a89_0x1934fc(0x116)]=a89_0x1934fc(0xf3),a89_0x5f51ba[a89_0x1934fc(0x121)]=a89_0x1934fc(0xe9),a89_0x5f51ba[a89_0x1934fc(0x107)]=a89_0x1934fc(0x10f),a89_0x5f51ba['KEY_TEST_META']=a89_0x1934fc(0xe1),a89_0x5f51ba[a89_0x1934fc(0xd4)]=a89_0x1934fc(0xf6),a89_0x5f51ba[a89_0x1934fc(0x105)]='automate_session_name',a89_0x5f51ba[a89_0x1934fc(0x115)]=a89_0x1934fc(0x10d),a89_0x5f51ba['KEY_AUTOMATE_SESSION_REASON']=a89_0x1934fc(0xdc),a89_0x5f51ba[a89_0x1934fc(0xc6)]=a89_0x1934fc(0x117),a89_0x5f51ba[a89_0x1934fc(0xff)]='event_ended_at',a89_0x5f51ba[a89_0x1934fc(0x114)]=a89_0x1934fc(0xdb),a89_0x5f51ba[a89_0x1934fc(0xe3)]=a89_0x1934fc(0xc9),a89_0x5f51ba[a89_0x1934fc(0xf0)]='hook_failure_type',a89_0x5f51ba[a89_0x1934fc(0x110)]=a89_0x1934fc(0x104),a89_0x5f51ba['KEY_HOOK_FAILURE']=a89_0x1934fc(0xe4),a89_0x5f51ba[a89_0x1934fc(0xcc)]=a89_0x1934fc(0xd7),a89_0x5f51ba[a89_0x1934fc(0xd8)]=a89_0x1934fc(0xd6),a89_0x5f51ba['DEFAULT_TEST_RESULT']=a89_0x1934fc(0xc7),a89_0x5f51ba[a89_0x1934fc(0x101)]='pending',a89_0x5f51ba[a89_0x1934fc(0xf4)]='TEST_SCREENSHOT',a89_0x5f51ba[a89_0x1934fc(0xd9)]='TEST_LOG',a89_0x5f51ba[a89_0x1934fc(0x11a)]='^(BEFORE_|AFTER_)',a89_0x5f51ba[a89_0x1934fc(0xf9)]=a89_0x1934fc(0x112),a89_0x5f51ba[a89_0x1934fc(0xc8)]=a89_0x1934fc(0xe0),a89_0x5f51ba[a89_0x1934fc(0xec)]=a89_0x1934fc(0x109),a89_0x5f51ba[a89_0x1934fc(0x10a)]=a89_0x1934fc(0xd5),a89_0x5f51ba['KEY_LOGS']='logs',a89_0x5f51ba['KEY_CUSTOM_TAGS']='custom_metadata',a89_0x5f51ba[a89_0x1934fc(0x111)]=a89_0x1934fc(0x118),a89_0x5f51ba[a89_0x1934fc(0xcb)]=a89_0x1934fc(0xfd),a89_0x5f51ba[a89_0x1934fc(0xf2)]='file_name',a89_0x5f51ba['KEY_FILE_PATH']=a89_0x1934fc(0xde),a89_0x5f51ba[a89_0x1934fc(0xfa)]=a89_0x1934fc(0xed),a89_0x5f51ba[a89_0x1934fc(0x11c)]=a89_0x1934fc(0x11f),a89_0x5f51ba[a89_0x1934fc(0x10e)]=0xa,a89_0x5f51ba[a89_0x1934fc(0xea)]=0x2;const TestFrameworkConstants=a89_0x5f51ba;module['exports']=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a90_0x7336(_0x1aed41,_0x5ab991){const _0x74141c=a90_0x7414();return a90_0x7336=function(_0x733601,_0x20ccd0){_0x733601=_0x733601-0xcc;let _0x311831=_0x74141c[_0x733601];return _0x311831;},a90_0x7336(_0x1aed41,_0x5ab991);}function a90_0x7414(){const _0x4f446f=['KEY_HOOK_LAST_STARTED','exports','getProcessId','KEY_HOOK_FAILURE','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','EIOgt','../grpcClient','testUUID','3954UDdHst',',\x20error:\x20','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KEY_TEST_RERUN_NAME','KEY_TEST_FRAMEWORK_NAME','failure','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','gRIdL','Pxbgd','KEY_TEST_NAME','./constants/testFrameworkConstants.js','LOG_REPORT','storePendingHook','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','get',',\x20state=','endedAt',',\x20state:\x20','KEY_LOGS','KEY_CUSTOM_TAGS','util','\x20testState:\x20','518HdcfzG','yuDDu','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','KEY_HOOK_LAST_FINISHED','\x20with\x20result:\x20','../instances/testFrameworkInstance.js','meta','tags','KEY_HOOK_RESULT','parseCucumberTest','push','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','uFqNL','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','finishedAt','KEY_TEST_ID','getCurrentInstanceName','ajljj','NONE','getInstance','PRE','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_TEST_ENDED_AT',',\x20storing\x20as\x20pending\x20hook','testFrameworkState','parseCucumberTestResult','YPUmb','dBDgW','2843814Octykp','KEY_TEST_META','POST','debug','../../../helpers/helper.js','uuid','vlJmV','failure_type','testData','started_at','./testFramework','addMultipleEntries','rZDsn','WSPhR','browserstackPlatformIndex','hookState','createTestFrameworkEventPayload','toISOString','logCreatedEvent','elsiC','DEFAULT_TEST_RESULT','unknown','KEY_HOOKS_FINISHED','KEY_HOOK_LOGS','eventJson','length','hooks','Feplw','finished_at','YvGpm','21ekVvIQ','result','CucumberTestFramework','1239641jIJDMI','urwFK','KEY_TEST_LOCATION','processPendingHooks','deFij','setTrackedInstance','\x20response=','10llzxpq','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','failed','KEY_TEST_RESULT','testFrameworkName','customRerunParam','KEY_TEST_FAILURE_REASON','hook_type','KEY_AUTOMATE_SESSION_NAME','name','\x20hookState:\x20','../instances/trackedInstance.js','DEFAULT_HOOK_RESULT','KEY_TEST_FAILURE','KEY_TEST_ATTACHMENTS','getCurrentTestState','KEY_HOOK_NAME','KEY_TEST_FILE_PATH','getThreadId','wSsxJ','getTrackedInstance','test_run_id','startedAt','inspect','596720MxLXFW','\x20with\x20UUID:\x20','Cucumber\x20log\x20created\x20event','QUbEe','getTestFrameworksVersions','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','trackCucumberInstance','sendLogCreatedEvent','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','JAvBC','Bwqir','getTestUUID','KEY_TEST_FRAMEWORK_VERSION','KEY_HOOK_ID','KEY_TEST_UUID','trackHookEvent','CTogW','../../../helpers/classLogger.js','pop','ceil','code','passed','KEY_EVENT_STARTED_AT','location','KEY_TEST_STARTED_AT','runHooks','KEY_TEST_LOGS','SnobD','args','KEY_TEST_FAILURE_TYPE','body','key','\x20and\x20args\x20=\x20','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','split','UnhandledError','hookData','from','sXOFd','7864365AxkhPn','../state/hookState.js','test','file_name','toString','812656gcXoUM','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','failure_reason','kXqsB','concat','resolveInstance','getAllData','trackEvent','rmPVe','getTestDetails','failure_data','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','7353207eCATHT','Stored\x20pending\x20hook\x20for\x20testId:\x20','vpMnZ','getRef','removePendingHooks','Parsed\x20cucumber\x20test:\x20','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','LeoDl','Tracked\x20cucumber\x20hook\x20event:\x20','testFrameworkVersion','trackCucumberInstance:\x20saved\x20instance\x20contextId=','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','lOFBB','\x20payload=','TEST','\x20&\x20hookState=',',\x20hookState:\x20','MgaoO','\x20target=','\x20&\x20hook\x20=\x20','instance','oraCA','error','keys','addPendingHook','KEY_HOOKS_STARTED','setTestDetails','executionContext','format','KEY_TEST_CODE','rerun_name','matchHookRegex','trackEvent:\x20unsupported\x20testFrameworkState=','../cliUtils.js','\x20pending\x20hooks\x20for\x20testId:\x20','../TestInfo.js','ykchn'];a90_0x7414=function(){return _0x4f446f;};return a90_0x7414();}const a90_0x4133ae=a90_0x7336;(function(_0x47bc63,_0x2dd772){const _0x23776d=a90_0x7336,_0x3e9c67=_0x47bc63();while(!![]){try{const _0x1092c7=parseInt(_0x23776d(0x138))/0x1+-parseInt(_0x23776d(0xfb))/0x2*(-parseInt(_0x23776d(0xe5))/0x3)+-parseInt(_0x23776d(0x157))/0x4+parseInt(_0x23776d(0x17e))/0x5+parseInt(_0x23776d(0x117))/0x6*(-parseInt(_0x23776d(0x135))/0x7)+parseInt(_0x23776d(0x183))/0x8+parseInt(_0x23776d(0x18f))/0x9*(-parseInt(_0x23776d(0x13f))/0xa);if(_0x1092c7===_0x2dd772)break;else _0x3e9c67['push'](_0x3e9c67['shift']());}catch(_0x23ae22){_0x3e9c67['push'](_0x3e9c67['shift']());}}}(a90_0x7414,0xd3c14));const TestFramework=require(a90_0x4133ae(0x121)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a90_0x4133ae(0x17f)),{createClassLogger}=require(a90_0x4133ae(0x168)),TestFrameworkInstance=require(a90_0x4133ae(0x100)),CLIUtils=require(a90_0x4133ae(0xd9)),TrackedInstance=require(a90_0x4133ae(0x14a)),TestFrameworkConstants=require(a90_0x4133ae(0xef)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a90_0x4133ae(0x11b)),logger=createClassLogger(a90_0x4133ae(0x137)),{v4:uuidv4}=require(a90_0x4133ae(0x11c)),util=require(a90_0x4133ae(0xf9)),TestInfo=require(a90_0x4133ae(0xdb)),GrpcClient=require(a90_0x4133ae(0xe3));class CucumberTestFramework extends TestFramework{constructor(_0x124c9f,_0x20cbef,_0x55ab6b){super(_0x124c9f,_0x20cbef,_0x55ab6b);}async['trackEvent'](_0x4d5dc7,_0x5ae711,_0x14f603={}){const _0x3dab32=a90_0x4133ae,_0x54e792={};_0x54e792[_0x3dab32(0x172)]=_0x3dab32(0x140),_0x54e792['wSsxJ']=function(_0x55736c,_0x18a1e0){return _0x55736c===_0x18a1e0;},_0x54e792[_0x3dab32(0x161)]=function(_0x2958b4,_0x2fa8ae){return _0x2958b4===_0x2fa8ae;},_0x54e792[_0x3dab32(0x115)]=_0x3dab32(0x178);const _0x1ce56b=_0x54e792;await super[_0x3dab32(0x18a)](_0x4d5dc7,_0x5ae711,_0x14f603);const _0x23b429=this['resolveInstance'](_0x4d5dc7,_0x5ae711,_0x14f603);if(!_0x23b429){logger['debug'](_0x1ce56b[_0x3dab32(0x172)]);return;}try{let _0x4786dc,_0x588b71;switch(_0x4d5dc7){case TestFrameworkState[_0x3dab32(0x19d)]:_0x4786dc=_0x14f603['test'],_0x588b71=TestInfo[_0x3dab32(0x162)](_0x4786dc['id']);if(_0x1ce56b[_0x3dab32(0x152)](_0x5ae711,HookState[_0x3dab32(0x10f)])){logger[_0x3dab32(0x11a)](_0x3dab32(0xf2)+_0x4786dc['id']);const _0x1ecd57={};_0x1ecd57[_0x3dab32(0xe4)]=_0x588b71,_0x1ecd57['testData']=_0x4786dc,_0x23b429['addMultipleEntries'](this[_0x3dab32(0x104)](_0x1ecd57)),logger[_0x3dab32(0x11a)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x4786dc['id']),await this[_0x3dab32(0x13b)](_0x23b429,_0x4786dc['id']);}else{if(_0x1ce56b[_0x3dab32(0x161)](_0x5ae711,HookState[_0x3dab32(0x119)])){const _0xb2090={};_0xb2090['testUUID']=_0x588b71,_0xb2090[_0x3dab32(0x11f)]=_0x4786dc,_0x23b429[_0x3dab32(0x122)](this['parseCucumberTestResult'](_0xb2090)),await this[_0x3dab32(0x13b)](_0x23b429,_0x4786dc['id']);}}break;case TestFrameworkState[_0x3dab32(0xf0)]:_0x1ce56b[_0x3dab32(0x161)](_0x5ae711,HookState[_0x3dab32(0x119)])&&await this[_0x3dab32(0x15e)](_0x23b429,_0x4d5dc7,_0x14f603);break;default:if(CLIUtils[_0x3dab32(0xd7)](_0x4d5dc7['toString']()[_0x3dab32(0x179)]('.')[0x1])){const _0x3b8abe=await this[_0x3dab32(0x166)](_0x23b429,_0x4d5dc7,_0x5ae711,_0x14f603);_0x23b429['addMultipleEntries'](_0x3b8abe);}else logger[_0x3dab32(0x11a)](_0x3dab32(0xd8)+_0x4d5dc7+_0x3dab32(0x19e)+_0x5ae711);break;}}catch(_0x46b248){logger[_0x3dab32(0xce)](util[_0x3dab32(0xd4)](_0x1ce56b[_0x3dab32(0x115)],_0x4d5dc7,_0x5ae711,_0x14f603[_0x3dab32(0x130)],_0x46b248));}_0x14f603[_0x3dab32(0xcc)]=_0x23b429,await this[_0x3dab32(0x170)](_0x23b429,_0x4d5dc7,_0x5ae711,_0x14f603);}[a90_0x4133ae(0x188)](_0xd965e0,_0x9e257d,_0x2b0645={}){const _0x1b117b=a90_0x4133ae,_0x29c0ba={};_0x29c0ba[_0x1b117b(0xec)]=function(_0xe9c43d,_0x12b39e){return _0xe9c43d===_0x12b39e;},_0x29c0ba[_0x1b117b(0x15a)]=function(_0x503744,_0x4e4b5a){return _0x503744===_0x4e4b5a;};const _0xb41c6=_0x29c0ba;let _0x4f5026=null;return(_0xb41c6[_0x1b117b(0xec)](_0xd965e0,TestFrameworkState['INIT_TEST'])||_0xb41c6[_0x1b117b(0x15a)](_0xd965e0,TestFrameworkState[_0x1b117b(0x10d)]))&&this[_0x1b117b(0x15d)](_0xd965e0,_0x2b0645),_0x4f5026=TestFramework[_0x1b117b(0x153)](),_0x4f5026;}[a90_0x4133ae(0x15d)](_0x1beeee,_0x4539c4){const _0x2a1579=a90_0x4133ae,_0x529da9=CLIUtils[_0x2a1579(0x10b)](),_0x44381c=TrackedInstance['createContext'](_0x529da9);let _0x364c1a=null;logger['debug'](_0x2a1579(0x184)+_0x529da9+_0x2a1579(0xf4)+_0x1beeee),_0x364c1a=new TestFrameworkInstance(_0x44381c,this['getTestFrameworks'](),this[_0x2a1579(0x15b)](),_0x1beeee,HookState[_0x2a1579(0x10d)]),TestFramework[_0x2a1579(0x13d)](_0x44381c,_0x364c1a),logger[_0x2a1579(0x11a)](_0x2a1579(0x199)+_0x44381c['getId']()+_0x2a1579(0x1a1)+_0x529da9);}[a90_0x4133ae(0x104)](_0x52b040){const _0x3d4578=a90_0x4133ae,_0x500b0d={};_0x500b0d[_0x3d4578(0x134)]=_0x3d4578(0x195);const _0x1814cb=_0x500b0d,{testUUID:_0xb4b7b0,testData:_0x5dfee9}=_0x52b040;if(!_0x5dfee9||!_0x5dfee9['uuid'])return logger[_0x3d4578(0x11a)](_0x1814cb[_0x3d4578(0x134)]),{};const _0x491414=_0xb4b7b0,_0x3313f7=_0x5dfee9['uuid'],_0x2eb21b=this['getTestFrameworks']()[0x0],_0x4a9ac6=this[_0x3d4578(0x15b)](),_0x2d3629={[TestFrameworkConstants[_0x3d4578(0xe9)]]:_0x2eb21b,[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x4a9ac6[_0x2eb21b],[TestFrameworkConstants[_0x3d4578(0x171)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x3d4578(0xd1)]]:{},[TestFrameworkConstants[_0x3d4578(0x165)]]:_0x491414,[TestFrameworkConstants[_0x3d4578(0x142)]]:TestFrameworkConstants[_0x3d4578(0x12b)],[TestFrameworkConstants[_0x3d4578(0x147)]]:_0x5dfee9[_0x3d4578(0x148)]||'',[TestFrameworkConstants[_0x3d4578(0x150)]]:_0x5dfee9[_0x3d4578(0x181)]||'',[TestFrameworkConstants[_0x3d4578(0x10a)]]:_0x3313f7,[TestFrameworkConstants[_0x3d4578(0xee)]]:_0x5dfee9[_0x3d4578(0x148)]||'',[TestFrameworkConstants[_0x3d4578(0x13a)]]:_0x5dfee9[_0x3d4578(0x16e)]||'',[TestFrameworkConstants[_0x3d4578(0xd5)]]:_0x5dfee9[_0x3d4578(0x175)]?.[_0x3d4578(0x16b)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x5dfee9[_0x3d4578(0x102)]||[],[TestFrameworkConstants[_0x3d4578(0x16f)]]:_0x5dfee9[_0x3d4578(0x155)]||new Date()[_0x3d4578(0x128)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x5dfee9['scopes']?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x5dfee9['scopes']||[],[TestFrameworkConstants[_0x3d4578(0xe8)]]:_0x5dfee9[_0x3d4578(0x144)]?.[_0x3d4578(0xd6)]||_0x5dfee9[_0x3d4578(0x148)]||'',[TestFrameworkConstants[_0x3d4578(0xf8)]]:{},[TestFrameworkConstants[_0x3d4578(0x118)]]:_0x5dfee9[_0x3d4578(0x101)]||{}};TestInfo[_0x3d4578(0xd2)](_0x3313f7,_0x2d3629),logger[_0x3d4578(0x11a)](_0x3d4578(0x194)+_0x5dfee9[_0x3d4578(0x148)]+_0x3d4578(0x158)+_0x491414);const _0x25aa3d={};return _0x25aa3d[_0x3313f7]=_0x2d3629,_0x25aa3d;}[a90_0x4133ae(0x114)](_0x1899db){const _0x114f82=a90_0x4133ae,_0x408dd0={'ajljj':_0x114f82(0x15f),'jnzIs':_0x114f82(0x12c),'LeoDl':function(_0x2de282,_0xcd717c){return _0x2de282===_0xcd717c;},'JAvBC':_0x114f82(0x141),'SADNA':'UnhandledError','rmPVe':function(_0x5b008f,_0x274052,_0xdcb50b){return _0x5b008f(_0x274052,_0xdcb50b);},'elsiC':function(_0x35a131,_0x4c4019){return _0x35a131>_0x4c4019;}},{testUUID:_0x32004a,testData:_0x1db124}=_0x1899db;if(!_0x1db124||!_0x1db124['uuid'])return logger['debug'](_0x408dd0[_0x114f82(0x10c)]),{};const _0x3ff235=this[_0x114f82(0x188)](TestFrameworkState[_0x114f82(0x19d)],HookState[_0x114f82(0x119)]),_0x17757a=_0x1db124['uuid'],_0xf21c7a=TestInfo['getTestDetails'](_0x17757a)||{},_0x121041=_0xf21c7a?_0xf21c7a[TestFrameworkConstants[_0x114f82(0xf8)]]||{}:{},_0x107649={..._0xf21c7a,[TestFrameworkConstants[_0x114f82(0x142)]]:_0x1db124[_0x114f82(0x136)]||_0x408dd0['jnzIs'],[TestFrameworkConstants[_0x114f82(0x111)]]:_0x1db124[_0x114f82(0x109)]||new Date()[_0x114f82(0x128)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()['toISOString'](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x121041,[TestFrameworkConstants[_0x114f82(0xf7)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x1db124[_0x114f82(0x101)]||{}};_0x408dd0[_0x114f82(0x196)](_0x1db124['result'],_0x408dd0[_0x114f82(0x160)])&&_0x1db124[_0x114f82(0xea)]&&(_0x107649[TestFrameworkConstants[_0x114f82(0x174)]]=_0x1db124[_0x114f82(0x11e)]||_0x408dd0['SADNA'],_0x107649[TestFrameworkConstants[_0x114f82(0x145)]]=_0x1db124['failure_reason']||'',_0x107649[TestFrameworkConstants[_0x114f82(0x14c)]]=_0x1db124[_0x114f82(0xea)]);const _0xd05976=TestInfo[_0x114f82(0x18c)](_0x17757a)[TestFrameworkConstants[_0x114f82(0x14d)]]||{},_0x3621b6=_0x408dd0[_0x114f82(0x18b)](getManualUploadLogs,_0xd05976,_0x3ff235[_0x114f82(0x189)]()[_0x114f82(0xf3)](_0x17757a)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x408dd0[_0x114f82(0x12a)](_0x3621b6[_0x114f82(0x130)],0x0)){const _0x1cddcb=_0x107649[TestFrameworkConstants['KEY_LOGS']]||[];_0x107649[TestFrameworkConstants[_0x114f82(0xf7)]]=[..._0x1cddcb,..._0x3621b6];}_0x1db124[_0x114f82(0x131)]&&_0x408dd0[_0x114f82(0x12a)](_0x1db124['hooks'][_0x114f82(0x130)],0x0)&&(_0x107649[TestFrameworkConstants[_0x114f82(0x12d)]]=_0x1db124[_0x114f82(0x131)]);TestInfo[_0x114f82(0xd2)](_0x17757a,_0x107649),logger[_0x114f82(0x11a)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x1db124[_0x114f82(0x148)]+_0x114f82(0xff)+_0x1db124['result']);const _0x20fccd={};return _0x20fccd[_0x17757a]=_0x107649,_0x20fccd;}async[a90_0x4133ae(0x166)](_0x3d056b,_0x212774,_0x378f04,_0x398b84){const _0x2eae56=a90_0x4133ae,_0x574eb8={'Pxbgd':_0x2eae56(0x106),'oraCA':function(_0x1a7104){return _0x1a7104();},'lOFBB':function(_0x4add35,_0x16be11){return _0x4add35 in _0x16be11;},'uFqNL':function(_0x432d45,_0x2f05f2){return _0x432d45===_0x2f05f2;},'jpPLY':function(_0x322832,_0xa105a2){return _0x322832===_0xa105a2;},'WSPhR':function(_0x295209,_0x32c6a3){return _0x295209>_0x32c6a3;},'urwFK':function(_0x5ce54c,_0x3b7362){return _0x5ce54c===_0x3b7362;},'CTogW':_0x2eae56(0x141),'vlJmV':_0x2eae56(0x17a),'sXOFd':_0x2eae56(0x16c),'Feplw':function(_0x2e8383,_0x577aab){return _0x2e8383!==_0x577aab;}},{hookData:_0x41d0ad}=_0x398b84;if(!_0x41d0ad)return logger[_0x2eae56(0x11a)](_0x574eb8[_0x2eae56(0xed)]),{};const _0xd891b=_0x41d0ad[_0x2eae56(0x11c)]||_0x574eb8[_0x2eae56(0xcd)](uuidv4),_0x39cb5f=_0x41d0ad['test_run_id'],_0x14b098=_0x212774[_0x2eae56(0x182)]()['split']('.')[0x1],_0x393867=TestInfo['getTestDetails'](_0x39cb5f)[TestFrameworkConstants[_0x2eae56(0xf8)]]||{},_0x3151a2=_0x3d056b[_0x2eae56(0x189)]()[_0x2eae56(0xf3)](_0x39cb5f);if(!_0x3151a2)return logger['debug'](_0x2eae56(0x15c)+_0x39cb5f+_0x2eae56(0x112)),this[_0x2eae56(0xf1)](_0x3d056b,_0x39cb5f,_0x212774,_0x378f04,_0x398b84),{};let _0x4701b1=_0x3151a2[TestFrameworkConstants[_0x2eae56(0xd1)]];!_0x4701b1&&(_0x4701b1={});!_0x574eb8[_0x2eae56(0x19b)](_0x14b098,_0x4701b1)&&(_0x4701b1[_0x14b098]=[]);let _0x3ce3b4=_0x3151a2[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x3ce3b4&&(_0x3ce3b4={});!_0x574eb8[_0x2eae56(0x19b)](_0x14b098,_0x3ce3b4)&&(_0x3ce3b4[_0x14b098]=[]);const _0x47ad11={[TestFrameworkConstants[_0x2eae56(0xd1)]]:_0x4701b1,[TestFrameworkConstants[_0x2eae56(0x12d)]]:_0x3ce3b4},_0x5dd226={};_0x5dd226[_0x39cb5f]=_0x47ad11;const _0x536432=_0x5dd226;if(_0x574eb8[_0x2eae56(0x107)](_0x378f04,HookState[_0x2eae56(0x10f)])){const _0x18282f={[TestFrameworkConstants[_0x2eae56(0x164)]]:_0xd891b,[TestFrameworkConstants[_0x2eae56(0x103)]]:TestFrameworkConstants[_0x2eae56(0x14b)],[TestFrameworkConstants[_0x2eae56(0x16d)]]:_0x41d0ad[_0x2eae56(0x120)],[TestFrameworkConstants[_0x2eae56(0x12e)]]:[],[TestFrameworkConstants[_0x2eae56(0x14f)]]:_0x41d0ad[_0x2eae56(0x146)],[TestFrameworkConstants[_0x2eae56(0xf8)]]:_0x393867};_0x18282f[_0x2eae56(0x176)]=_0x14b098;const _0x11807b=_0x18282f;_0x4701b1[_0x14b098][_0x2eae56(0x105)](_0x11807b),_0x536432[_0x39cb5f][TestFrameworkConstants[_0x2eae56(0xdd)]]=_0x14b098,logger[_0x2eae56(0x11a)](_0x2eae56(0xfd)+_0x14b098+_0x2eae56(0x1a2)+_0x11807b+'\x20\x20and\x20args\x20=\x20'+_0x398b84);}else{if(_0x574eb8['jpPLY'](_0x378f04,HookState['POST'])){const _0x25ca4d=_0x41d0ad['result'],_0x3e4c91=_0x4701b1[_0x14b098]||[];logger[_0x2eae56(0x11a)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x3e4c91+_0x2eae56(0x177)+_0x398b84);if(_0x574eb8[_0x2eae56(0x124)](_0x3e4c91['length'],0x0)){const _0x2d54cc=_0x3e4c91[_0x2eae56(0x169)]();_0x574eb8[_0x2eae56(0x139)](_0x41d0ad[_0x2eae56(0x136)],_0x574eb8[_0x2eae56(0x167)])&&_0x41d0ad[_0x2eae56(0x18d)]?(_0x2d54cc[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x41d0ad[_0x2eae56(0x11e)]||_0x574eb8[_0x2eae56(0x11d)],_0x2d54cc[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x41d0ad[_0x2eae56(0x185)]||'',_0x2d54cc[TestFrameworkConstants[_0x2eae56(0xe0)]]=_0x41d0ad[_0x2eae56(0x18d)]):_0x2d54cc[TestFrameworkConstants[_0x2eae56(0x103)]]=_0x574eb8[_0x2eae56(0x17d)];_0x574eb8[_0x2eae56(0x132)](_0x25ca4d,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x2d54cc[TestFrameworkConstants[_0x2eae56(0x103)]]=_0x25ca4d);_0x2d54cc[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x41d0ad[_0x2eae56(0x133)]||new Date()[_0x2eae56(0x128)](),_0x2d54cc[TestFrameworkConstants[_0x2eae56(0xf8)]]=_0x393867;const _0x1a6c20=_0x2d54cc[TestFrameworkConstants['KEY_HOOK_ID']];!_0x3ce3b4[_0x14b098]&&(_0x3ce3b4[_0x14b098]=[]),_0x3ce3b4[_0x14b098]['push'](_0x2d54cc),_0x536432[_0x39cb5f][TestFrameworkConstants[_0x2eae56(0xfe)]]=_0x14b098;}}}return logger[_0x2eae56(0x11a)](_0x2eae56(0x197)+_0x41d0ad[_0x2eae56(0x146)]+'\x20with\x20id\x20'+_0xd891b+'\x20for\x20test:\x20'+_0x39cb5f),_0x536432;}[a90_0x4133ae(0x127)](_0x320132){const _0x4b853a=a90_0x4133ae,_0x2b70a3={};_0x2b70a3['RxaBL']='base64';const _0x1d9f8e=_0x2b70a3;try{const _0xbbe367=_0x320132[_0x4b853a(0x180)]?_0x320132[_0x4b853a(0x180)]['id']:_0x320132[_0x4b853a(0x17b)][_0x4b853a(0x154)],_0x3e076a=_0x320132['instance'],_0x565983=_0x3e076a['getContext'](),_0x3b6608=_0x3e076a['getAllData']()[_0x4b853a(0xf3)](_0xbbe367);if(!_0x3b6608)return logger[_0x4b853a(0x11a)](_0x4b853a(0x19a)+_0xbbe367),{};logger[_0x4b853a(0x11a)]('createTestFrameworkEventPayload\x20testId:\x20'+_0xbbe367);const {[TestFrameworkConstants[_0x4b853a(0xe9)]]:_0x17d3cb='',[TestFrameworkConstants[_0x4b853a(0x163)]]:_0x108809='',[TestFrameworkConstants[_0x4b853a(0x16f)]]:_0x2f734a='',[TestFrameworkConstants[_0x4b853a(0x111)]]:_0x179d69=''}=_0x3b6608,_0x397f15=_0x3e076a[_0x4b853a(0x14e)]()[_0x4b853a(0x182)]()['split']('.')[0x1],_0x87f937=_0x3e076a['getCurrentHookState']()[_0x4b853a(0x182)]()['split']('.')[0x1],_0x2f9443=global?.[_0x4b853a(0x125)]??0x0,_0x4abbd1=_0x3e076a[_0x4b853a(0x192)](),_0x5d83d8=Buffer[_0x4b853a(0x17c)](JSON['stringify'](_0x3b6608))[_0x4b853a(0x182)](_0x1d9f8e['RxaBL']),_0x618fe3={'hash':_0x565983['getId'](),'threadId':_0x565983[_0x4b853a(0x151)]()['toString'](),'processId':_0x565983[_0x4b853a(0xdf)]()[_0x4b853a(0x182)]()},_0x160f5f={};_0x160f5f['platformIndex']=_0x2f9443,_0x160f5f[_0x4b853a(0x143)]=_0x17d3cb,_0x160f5f[_0x4b853a(0x198)]=_0x108809,_0x160f5f[_0x4b853a(0x113)]=_0x397f15,_0x160f5f[_0x4b853a(0x126)]=_0x87f937,_0x160f5f[_0x4b853a(0x155)]=_0x2f734a,_0x160f5f[_0x4b853a(0xf5)]=_0x179d69,_0x160f5f[_0x4b853a(0x11c)]=_0x4abbd1,_0x160f5f[_0x4b853a(0x12f)]=_0x5d83d8,_0x160f5f[_0x4b853a(0xd3)]=_0x618fe3;const _0x16cb27=_0x160f5f;return logger[_0x4b853a(0x11a)](_0x4b853a(0x108)+_0xbbe367+_0x4b853a(0xfa)+_0x397f15+_0x4b853a(0x149)+_0x87f937),_0x16cb27;}catch(_0x17b394){return logger[_0x4b853a(0xce)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util['format'](_0x17b394)),{};}}async[a90_0x4133ae(0x15e)](_0x420c99,_0x51ecd7,_0x41d442){const _0x1c2fc1=a90_0x4133ae,_0x93ede3={'MgaoO':function(_0x135130,_0x47aee0,_0x186638){return _0x135130(_0x47aee0,_0x186638);},'kXqsB':function(_0xa05974,_0x10c389){return _0xa05974===_0x10c389;},'vpMnZ':_0x1c2fc1(0xe1),'deFij':function(_0x242ba3,_0x2bc935){return _0x242ba3/_0x2bc935;},'ykchn':function(_0x10dcf1,_0x4903fd){return _0x10dcf1<_0x4903fd;},'yuDDu':function(_0x5361b5,_0xacc4d5){return _0x5361b5*_0xacc4d5;},'rZDsn':function(_0x15a2a3,_0x570682){return _0x15a2a3+_0x570682;},'EIOgt':function(_0x20001f,_0x52b955){return _0x20001f+_0x52b955;},'uWHrf':_0x1c2fc1(0x159)};try{const _0x980475=_0x41d442[_0x1c2fc1(0xe4)],_0x153ccd=_0x420c99[_0x1c2fc1(0x189)]()[_0x1c2fc1(0xf3)](_0x980475),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x398388='',[TestFrameworkConstants[_0x1c2fc1(0x163)]]:_0x3dc49c=''}=_0x153ccd,_0x5975e9=TestInfo['readLogObjects'](_0x980475),_0x459b12=TestInfo[_0x1c2fc1(0x18c)](_0x980475)[TestFrameworkConstants[_0x1c2fc1(0x14d)]]||{},_0x42182c=_0x93ede3[_0x1c2fc1(0x1a0)](getMediaArtifactsLogs,_0x459b12,_0x420c99[_0x1c2fc1(0x189)]()['get'](_0x980475)[TestFrameworkConstants[_0x1c2fc1(0x165)]]),_0x16425c=(_0x5975e9||[])[_0x1c2fc1(0x187)](_0x42182c||[]);if(!_0x16425c||_0x93ede3[_0x1c2fc1(0x186)](_0x16425c['length'],0x0)){logger[_0x1c2fc1(0x11a)](_0x93ede3[_0x1c2fc1(0x191)]);return;}const _0x3a1c2a=0x28,_0x5a132d=Math[_0x1c2fc1(0x16a)](_0x93ede3[_0x1c2fc1(0x13c)](_0x16425c['length'],_0x3a1c2a));for(let _0x3b7e03=0x0;_0x93ede3[_0x1c2fc1(0xdc)](_0x3b7e03,_0x5a132d);_0x3b7e03++){const _0x19d59c=_0x93ede3[_0x1c2fc1(0xfc)](_0x3b7e03,_0x3a1c2a),_0x13b439=_0x93ede3[_0x1c2fc1(0x123)](_0x19d59c,_0x3a1c2a),_0x51d96c=_0x16425c['slice'](_0x19d59c,_0x13b439),_0x1edd35={'platformIndex':global?.[_0x1c2fc1(0x125)]??0x0,'logs':_0x51d96c,'testFrameworkName':_0x398388,'testFrameworkVersion':_0x3dc49c,'testFrameworkState':_0x51ecd7['toString']()[_0x1c2fc1(0x179)]('.')[0x1]};logger[_0x1c2fc1(0x11a)](_0x1c2fc1(0x110)+_0x980475+'\x20batch\x20'+_0x93ede3[_0x1c2fc1(0xe2)](_0x3b7e03,0x1)+'/'+_0x5a132d+_0x1c2fc1(0x19c)+util['inspect'](_0x1edd35));const _0x15be6d=await GrpcClient[_0x1c2fc1(0x10e)]()[_0x1c2fc1(0x129)](_0x1edd35);logger[_0x1c2fc1(0x11a)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x980475+'\x20batch\x20'+_0x93ede3[_0x1c2fc1(0x123)](_0x3b7e03,0x1)+'/'+_0x5a132d+_0x1c2fc1(0x13e)+util[_0x1c2fc1(0x156)](_0x15be6d));}}catch(_0x39d6c9){logger[_0x1c2fc1(0xce)](_0x1c2fc1(0xeb)+util[_0x1c2fc1(0xd4)](_0x39d6c9));}logger[_0x1c2fc1(0x11a)](_0x93ede3['uWHrf']);}[a90_0x4133ae(0xf1)](_0x3f581d,_0x2a9f8e,_0x242a60,_0x44c8dd,_0x165f69){const _0xf0cb36=a90_0x4133ae,_0x25d56d={'testId':_0x2a9f8e,'testFrameworkState':_0x242a60,'hookState':_0x44c8dd,'args':_0x165f69,'timestamp':new Date()[_0xf0cb36(0x128)]()};_0x3f581d[_0xf0cb36(0xd0)](_0x2a9f8e,_0x25d56d),logger[_0xf0cb36(0x11a)](_0xf0cb36(0x190)+_0x2a9f8e+_0xf0cb36(0xf6)+_0x242a60+_0xf0cb36(0x19f)+_0x44c8dd);}async[a90_0x4133ae(0x13b)](_0xe60d92,_0x451880){const _0x5db2da=a90_0x4133ae,_0x2226bc={};_0x2226bc[_0x5db2da(0x116)]=function(_0x325be3,_0x27b9e7){return _0x325be3>_0x27b9e7;};const _0x2363f7=_0x2226bc;if(!_0xe60d92['hasPendingHooks'](_0x451880))return;const _0x1106aa=_0xe60d92['getPendingHooks'](_0x451880);logger['debug']('Processing\x20'+_0x1106aa[_0x5db2da(0x130)]+_0x5db2da(0xda)+_0x451880);for(const _0x30285a of _0x1106aa){try{const _0xee5767=await this[_0x5db2da(0x166)](_0xe60d92,_0x30285a['testFrameworkState'],_0x30285a['hookState'],_0x30285a[_0x5db2da(0x173)]);_0xee5767&&_0x2363f7['dBDgW'](Object[_0x5db2da(0xcf)](_0xee5767)[_0x5db2da(0x130)],0x0)&&_0xe60d92[_0x5db2da(0x122)](_0xee5767),await this[_0x5db2da(0x170)](_0xe60d92,_0x30285a[_0x5db2da(0x113)],_0x30285a[_0x5db2da(0x126)],_0x30285a[_0x5db2da(0x173)]);}catch(_0x473405){logger['error'](_0x5db2da(0x18e)+_0x451880+_0x5db2da(0xe6)+_0x473405);}}_0xe60d92[_0x5db2da(0x193)](_0x451880),logger[_0x5db2da(0x11a)](_0x5db2da(0xe7)+_0x451880);}}module[a90_0x4133ae(0xde)]=CucumberTestFramework;
|
|
1
|
+
const a90_0xa22afe=a90_0x5404;(function(_0x20623d,_0x1189ec){const _0xb7443b=a90_0x5404,_0x4c7736=_0x20623d();while(!![]){try{const _0x256b06=-parseInt(_0xb7443b(0x207))/0x1*(-parseInt(_0xb7443b(0x23e))/0x2)+-parseInt(_0xb7443b(0x288))/0x3+-parseInt(_0xb7443b(0x21e))/0x4*(parseInt(_0xb7443b(0x27f))/0x5)+parseInt(_0xb7443b(0x295))/0x6*(parseInt(_0xb7443b(0x21c))/0x7)+-parseInt(_0xb7443b(0x1fa))/0x8*(parseInt(_0xb7443b(0x277))/0x9)+-parseInt(_0xb7443b(0x203))/0xa+parseInt(_0xb7443b(0x2a5))/0xb;if(_0x256b06===_0x1189ec)break;else _0x4c7736['push'](_0x4c7736['shift']());}catch(_0x2abfee){_0x4c7736['push'](_0x4c7736['shift']());}}}(a90_0x3223,0x91a01));const TestFramework=require(a90_0xa22afe(0x2aa)),TestFrameworkState=require(a90_0xa22afe(0x234)),HookState=require(a90_0xa22afe(0x1f8)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a90_0xa22afe(0x28f)),CLIUtils=require(a90_0xa22afe(0x28c)),TrackedInstance=require(a90_0xa22afe(0x2ba)),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a90_0xa22afe(0x26d)),logger=createClassLogger(a90_0xa22afe(0x287)),{v4:uuidv4}=require(a90_0xa22afe(0x2b7)),util=require(a90_0xa22afe(0x280)),TestInfo=require(a90_0xa22afe(0x222)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x3c0538,_0x5ef876,_0x19fb99){super(_0x3c0538,_0x5ef876,_0x19fb99);}async[a90_0xa22afe(0x238)](_0x2a8e37,_0x1b3aaf,_0x373687={}){const _0x3b352e=a90_0xa22afe,_0x13e213={};_0x13e213['vsQHZ']='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x13e213['KTxMg']=function(_0x28fb8f,_0x4e927c){return _0x28fb8f===_0x4e927c;},_0x13e213[_0x3b352e(0x25f)]=function(_0x48706c,_0x1bf8ff){return _0x48706c===_0x1bf8ff;},_0x13e213['oZnQC']='trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s';const _0x27c9b3=_0x13e213;await super[_0x3b352e(0x238)](_0x2a8e37,_0x1b3aaf,_0x373687);const _0x15e2d3=this[_0x3b352e(0x29a)](_0x2a8e37,_0x1b3aaf,_0x373687);if(!_0x15e2d3){logger[_0x3b352e(0x21b)](_0x27c9b3['vsQHZ']);return;}try{let _0x2428f9,_0x4507e9;switch(_0x2a8e37){case TestFrameworkState[_0x3b352e(0x250)]:_0x2428f9=_0x373687[_0x3b352e(0x240)],_0x4507e9=TestInfo[_0x3b352e(0x21d)](_0x2428f9['id']);if(_0x27c9b3[_0x3b352e(0x23f)](_0x1b3aaf,HookState[_0x3b352e(0x255)])){logger[_0x3b352e(0x21b)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x2428f9['id']);const _0x16418c={};_0x16418c[_0x3b352e(0x293)]=_0x4507e9,_0x16418c[_0x3b352e(0x1f3)]=_0x2428f9,_0x15e2d3[_0x3b352e(0x27b)](this[_0x3b352e(0x242)](_0x16418c)),logger[_0x3b352e(0x21b)](_0x3b352e(0x2a0)+_0x2428f9['id']),await this['processPendingHooks'](_0x15e2d3,_0x2428f9['id']);}else{if(_0x27c9b3[_0x3b352e(0x23f)](_0x1b3aaf,HookState[_0x3b352e(0x24e)])){const _0x222e1={};_0x222e1['testUUID']=_0x4507e9,_0x222e1['testData']=_0x2428f9,_0x15e2d3[_0x3b352e(0x27b)](this[_0x3b352e(0x275)](_0x222e1)),await this[_0x3b352e(0x202)](_0x15e2d3,_0x2428f9['id']);}}break;case TestFrameworkState[_0x3b352e(0x210)]:_0x27c9b3[_0x3b352e(0x25f)](_0x1b3aaf,HookState[_0x3b352e(0x24e)])&&await this['sendLogCreatedEvent'](_0x15e2d3,_0x2a8e37,_0x373687);break;default:if(CLIUtils[_0x3b352e(0x2a8)](_0x2a8e37['toString']()[_0x3b352e(0x22e)]('.')[0x1])){const _0x3d3b63=await this[_0x3b352e(0x236)](_0x15e2d3,_0x2a8e37,_0x1b3aaf,_0x373687);_0x15e2d3['addMultipleEntries'](_0x3d3b63);}else logger[_0x3b352e(0x21b)](_0x3b352e(0x225)+_0x2a8e37+_0x3b352e(0x22c)+_0x1b3aaf);break;}}catch(_0x2e6540){logger[_0x3b352e(0x291)](util[_0x3b352e(0x283)](_0x27c9b3[_0x3b352e(0x226)],_0x2a8e37,_0x1b3aaf,_0x373687['length'],_0x2e6540));}_0x373687[_0x3b352e(0x2ab)]=_0x15e2d3,await this[_0x3b352e(0x20a)](_0x15e2d3,_0x2a8e37,_0x1b3aaf,_0x373687);}[a90_0xa22afe(0x29a)](_0x5dc73d,_0x5d6751,_0x4908b8={}){const _0x49a0f3=a90_0xa22afe,_0x1be233={};_0x1be233[_0x49a0f3(0x229)]=function(_0x41f94b,_0x43339c){return _0x41f94b===_0x43339c;};const _0x329369=_0x1be233;let _0x10e1af=null;return(_0x329369['npdTb'](_0x5dc73d,TestFrameworkState['INIT_TEST'])||_0x329369['npdTb'](_0x5dc73d,TestFrameworkState['NONE']))&&this['trackCucumberInstance'](_0x5dc73d,_0x4908b8),_0x10e1af=TestFramework['getTrackedInstance'](),_0x10e1af;}[a90_0xa22afe(0x227)](_0x3ed79b,_0x35b861){const _0x5d0cfd=a90_0xa22afe,_0x558231=CLIUtils['getCurrentInstanceName'](),_0x32f9a7=TrackedInstance[_0x5d0cfd(0x2a7)](_0x558231);let _0x555dfa=null;logger['debug']('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0x558231+_0x5d0cfd(0x2ae)+_0x3ed79b),_0x555dfa=new TestFrameworkInstance(_0x32f9a7,this[_0x5d0cfd(0x2a6)](),this[_0x5d0cfd(0x297)](),_0x3ed79b,HookState[_0x5d0cfd(0x249)]),TestFramework[_0x5d0cfd(0x221)](_0x32f9a7,_0x555dfa),logger[_0x5d0cfd(0x21b)](_0x5d0cfd(0x252)+_0x32f9a7[_0x5d0cfd(0x20e)]()+_0x5d0cfd(0x228)+_0x558231);}[a90_0xa22afe(0x242)](_0x2e3325){const _0xebcbb5=a90_0xa22afe,_0x40d8cf={};_0x40d8cf[_0xebcbb5(0x2b8)]='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x576c5b=_0x40d8cf,{testUUID:_0x3a236d,testData:_0xd6545e}=_0x2e3325;if(!_0xd6545e||!_0xd6545e[_0xebcbb5(0x2b7)])return logger[_0xebcbb5(0x21b)](_0x576c5b['LvhLI']),{};const _0x12b457=_0x3a236d,_0x4dec1a=_0xd6545e[_0xebcbb5(0x2b7)],_0x4f162a=this[_0xebcbb5(0x2a6)]()[0x0],_0x8c80fc=this[_0xebcbb5(0x297)](),_0x1b0f77={[TestFrameworkConstants[_0xebcbb5(0x206)]]:_0x4f162a,[TestFrameworkConstants[_0xebcbb5(0x22f)]]:_0x8c80fc[_0x4f162a],[TestFrameworkConstants[_0xebcbb5(0x292)]]:[],[TestFrameworkConstants[_0xebcbb5(0x27c)]]:{},[TestFrameworkConstants[_0xebcbb5(0x298)]]:{},[TestFrameworkConstants[_0xebcbb5(0x245)]]:_0x12b457,[TestFrameworkConstants[_0xebcbb5(0x244)]]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0xebcbb5(0x26f)]]:_0xd6545e[_0xebcbb5(0x212)]||'',[TestFrameworkConstants[_0xebcbb5(0x279)]]:_0xd6545e[_0xebcbb5(0x27e)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x4dec1a,[TestFrameworkConstants[_0xebcbb5(0x256)]]:_0xd6545e[_0xebcbb5(0x212)]||'',[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0xd6545e[_0xebcbb5(0x1f1)]||'',[TestFrameworkConstants[_0xebcbb5(0x2b0)]]:_0xd6545e[_0xebcbb5(0x1f7)]?.[_0xebcbb5(0x20c)]||null,[TestFrameworkConstants[_0xebcbb5(0x2b3)]]:_0xd6545e['tags']||[],[TestFrameworkConstants[_0xebcbb5(0x2b5)]]:_0xd6545e[_0xebcbb5(0x218)]||new Date()[_0xebcbb5(0x267)](),[TestFrameworkConstants[_0xebcbb5(0x247)]]:_0xd6545e[_0xebcbb5(0x274)]?.[0x0]||'',[TestFrameworkConstants[_0xebcbb5(0x214)]]:_0xd6545e[_0xebcbb5(0x274)]||[],[TestFrameworkConstants[_0xebcbb5(0x24f)]]:_0xd6545e[_0xebcbb5(0x29c)]?.[_0xebcbb5(0x2b6)]||_0xd6545e[_0xebcbb5(0x212)]||'',[TestFrameworkConstants[_0xebcbb5(0x26e)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0xd6545e[_0xebcbb5(0x29f)]||{}};TestInfo[_0xebcbb5(0x23b)](_0x4dec1a,_0x1b0f77),logger['debug'](_0xebcbb5(0x28b)+_0xd6545e[_0xebcbb5(0x212)]+_0xebcbb5(0x24c)+_0x12b457);const _0x21812a={};return _0x21812a[_0x4dec1a]=_0x1b0f77,_0x21812a;}[a90_0xa22afe(0x275)](_0x34ae8b){const _0x48f92c=a90_0xa22afe,_0x3e3769={'phJJX':_0x48f92c(0x223),'sqRyf':_0x48f92c(0x254),'fYVTw':function(_0x2a2d1f,_0x1ff9b3){return _0x2a2d1f===_0x1ff9b3;},'KHvLk':_0x48f92c(0x2b9),'XjfaM':_0x48f92c(0x28d),'xPbeE':function(_0x290f63,_0x16e3b1,_0x2d37fb){return _0x290f63(_0x16e3b1,_0x2d37fb);},'LkCUq':function(_0x1e1791,_0x37aef3){return _0x1e1791>_0x37aef3;}},{testUUID:_0xb037eb,testData:_0x2b0ff2}=_0x34ae8b;if(!_0x2b0ff2||!_0x2b0ff2[_0x48f92c(0x2b7)])return logger[_0x48f92c(0x21b)](_0x3e3769[_0x48f92c(0x29e)]),{};const _0x47236b=this['resolveInstance'](TestFrameworkState['TEST'],HookState[_0x48f92c(0x24e)]),_0x5c06c1=_0x2b0ff2['uuid'],_0x4f854b=TestInfo[_0x48f92c(0x263)](_0x5c06c1)||{},_0x30855a=_0x4f854b?_0x4f854b[TestFrameworkConstants[_0x48f92c(0x26e)]]||{}:{},_0x1aaa42={..._0x4f854b,[TestFrameworkConstants[_0x48f92c(0x244)]]:_0x2b0ff2[_0x48f92c(0x1f5)]||_0x3e3769[_0x48f92c(0x284)],[TestFrameworkConstants[_0x48f92c(0x21f)]]:_0x2b0ff2['finishedAt']||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x48f92c(0x267)](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x30855a,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants[_0x48f92c(0x261)]]:_0x2b0ff2[_0x48f92c(0x29f)]||{}};_0x3e3769['fYVTw'](_0x2b0ff2['result'],_0x3e3769[_0x48f92c(0x258)])&&_0x2b0ff2['failure']&&(_0x1aaa42[TestFrameworkConstants[_0x48f92c(0x216)]]=_0x2b0ff2[_0x48f92c(0x1f6)]||_0x3e3769[_0x48f92c(0x20b)],_0x1aaa42[TestFrameworkConstants[_0x48f92c(0x278)]]=_0x2b0ff2[_0x48f92c(0x22a)]||'',_0x1aaa42[TestFrameworkConstants[_0x48f92c(0x233)]]=_0x2b0ff2[_0x48f92c(0x224)]);const _0x3c6cbe=TestInfo[_0x48f92c(0x263)](_0x5c06c1)[TestFrameworkConstants[_0x48f92c(0x26b)]]||{},_0x28fc6f=_0x3e3769[_0x48f92c(0x241)](getManualUploadLogs,_0x3c6cbe,_0x47236b['getAllData']()[_0x48f92c(0x1f2)](_0x5c06c1)[TestFrameworkConstants[_0x48f92c(0x245)]]);if(_0x3e3769[_0x48f92c(0x2bb)](_0x28fc6f[_0x48f92c(0x239)],0x0)){const _0x534013=_0x1aaa42[TestFrameworkConstants[_0x48f92c(0x2ad)]]||[];_0x1aaa42[TestFrameworkConstants[_0x48f92c(0x2ad)]]=[..._0x534013,..._0x28fc6f];}_0x2b0ff2[_0x48f92c(0x262)]&&_0x3e3769[_0x48f92c(0x2bb)](_0x2b0ff2[_0x48f92c(0x262)][_0x48f92c(0x239)],0x0)&&(_0x1aaa42[TestFrameworkConstants[_0x48f92c(0x27c)]]=_0x2b0ff2[_0x48f92c(0x262)]);TestInfo[_0x48f92c(0x23b)](_0x5c06c1,_0x1aaa42),logger['debug'](_0x48f92c(0x296)+_0x2b0ff2[_0x48f92c(0x212)]+'\x20with\x20result:\x20'+_0x2b0ff2[_0x48f92c(0x1f5)]);const _0x441c8e={};return _0x441c8e[_0x5c06c1]=_0x1aaa42,_0x441c8e;}async[a90_0xa22afe(0x236)](_0x522a1e,_0x25a236,_0x1f9c71,_0x11172e){const _0x3cfb3b=a90_0xa22afe,_0x5b6fa7={'adzMV':_0x3cfb3b(0x25c),'vdPDc':function(_0x850b86){return _0x850b86();},'USgyI':function(_0x2f4b9d,_0x36c81a){return _0x2f4b9d in _0x36c81a;},'RiiWi':function(_0x77a752,_0x519c93){return _0x77a752===_0x519c93;},'DFRJx':function(_0xdd56d4,_0x10ed1f){return _0xdd56d4===_0x10ed1f;},'IsMzo':function(_0x6d46e5,_0x1ae0b4){return _0x6d46e5>_0x1ae0b4;},'EtLLX':_0x3cfb3b(0x2b9),'saelI':_0x3cfb3b(0x28d),'hEzeN':'passed','sCQoX':function(_0x109795,_0x40cfff){return _0x109795!==_0x40cfff;}},{hookData:_0x397e01}=_0x11172e;if(!_0x397e01)return logger[_0x3cfb3b(0x21b)](_0x5b6fa7[_0x3cfb3b(0x1fc)]),{};const _0x38997e=_0x397e01['uuid']||_0x5b6fa7[_0x3cfb3b(0x2af)](uuidv4),_0x11556a=_0x397e01[_0x3cfb3b(0x269)],_0x2f1303=_0x25a236[_0x3cfb3b(0x29d)]()['split']('.')[0x1],_0x586629=TestInfo[_0x3cfb3b(0x263)](_0x11556a)[TestFrameworkConstants[_0x3cfb3b(0x26e)]]||{},_0x3d3dec=_0x522a1e['getAllData']()['get'](_0x11556a);if(!_0x3d3dec)return logger[_0x3cfb3b(0x21b)]('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x11556a+_0x3cfb3b(0x243)),this[_0x3cfb3b(0x211)](_0x522a1e,_0x11556a,_0x25a236,_0x1f9c71,_0x11172e),{};let _0x34c7c9=_0x3d3dec[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x34c7c9&&(_0x34c7c9={});!_0x5b6fa7[_0x3cfb3b(0x23a)](_0x2f1303,_0x34c7c9)&&(_0x34c7c9[_0x2f1303]=[]);let _0x478a1f=_0x3d3dec[TestFrameworkConstants[_0x3cfb3b(0x27c)]];!_0x478a1f&&(_0x478a1f={});!_0x5b6fa7['USgyI'](_0x2f1303,_0x478a1f)&&(_0x478a1f[_0x2f1303]=[]);const _0x80dd47={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x34c7c9,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x478a1f},_0x1eabd1={};_0x1eabd1[_0x11556a]=_0x80dd47;const _0x4093e5=_0x1eabd1;if(_0x5b6fa7[_0x3cfb3b(0x200)](_0x1f9c71,HookState[_0x3cfb3b(0x255)])){const _0x793fa1={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x38997e,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0x3cfb3b(0x294)],[TestFrameworkConstants[_0x3cfb3b(0x220)]]:_0x397e01['started_at'],[TestFrameworkConstants[_0x3cfb3b(0x208)]]:[],[TestFrameworkConstants[_0x3cfb3b(0x1ff)]]:_0x397e01[_0x3cfb3b(0x24d)],[TestFrameworkConstants[_0x3cfb3b(0x26e)]]:_0x586629};_0x793fa1[_0x3cfb3b(0x2b1)]=_0x2f1303;const _0x33b327=_0x793fa1;_0x34c7c9[_0x2f1303][_0x3cfb3b(0x251)](_0x33b327),_0x4093e5[_0x11556a][TestFrameworkConstants[_0x3cfb3b(0x20f)]]=_0x2f1303,logger['debug'](_0x3cfb3b(0x266)+_0x2f1303+'\x20&\x20hook\x20=\x20'+_0x33b327+'\x20\x20and\x20args\x20=\x20'+_0x11172e);}else{if(_0x5b6fa7[_0x3cfb3b(0x25e)](_0x1f9c71,HookState[_0x3cfb3b(0x24e)])){const _0x10d895=_0x397e01['result'],_0x162de6=_0x34c7c9[_0x2f1303]||[];logger[_0x3cfb3b(0x21b)](_0x3cfb3b(0x28a)+_0x162de6+_0x3cfb3b(0x286)+_0x11172e);if(_0x5b6fa7[_0x3cfb3b(0x27d)](_0x162de6['length'],0x0)){const _0x414398=_0x162de6[_0x3cfb3b(0x2a9)]();_0x5b6fa7[_0x3cfb3b(0x200)](_0x397e01['result'],_0x5b6fa7['EtLLX'])&&_0x397e01[_0x3cfb3b(0x26c)]?(_0x414398[TestFrameworkConstants[_0x3cfb3b(0x20d)]]=_0x397e01['failure_type']||_0x5b6fa7[_0x3cfb3b(0x22d)],_0x414398[TestFrameworkConstants[_0x3cfb3b(0x204)]]=_0x397e01['failure_reason']||'',_0x414398[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0x397e01[_0x3cfb3b(0x26c)]):_0x414398[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x5b6fa7[_0x3cfb3b(0x215)];_0x5b6fa7[_0x3cfb3b(0x2bc)](_0x10d895,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x414398[TestFrameworkConstants[_0x3cfb3b(0x25b)]]=_0x10d895);_0x414398[TestFrameworkConstants[_0x3cfb3b(0x231)]]=_0x397e01['finished_at']||new Date()[_0x3cfb3b(0x267)](),_0x414398[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x586629;const _0xd35f50=_0x414398[TestFrameworkConstants['KEY_HOOK_ID']];!_0x478a1f[_0x2f1303]&&(_0x478a1f[_0x2f1303]=[]),_0x478a1f[_0x2f1303][_0x3cfb3b(0x251)](_0x414398),_0x4093e5[_0x11556a][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x2f1303;}}}return logger[_0x3cfb3b(0x21b)]('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x397e01[_0x3cfb3b(0x24d)]+_0x3cfb3b(0x299)+_0x38997e+_0x3cfb3b(0x24a)+_0x11556a),_0x4093e5;}['createTestFrameworkEventPayload'](_0x496ed2){const _0x18d6e1=a90_0xa22afe,_0x4aba95={};_0x4aba95[_0x18d6e1(0x2a1)]=_0x18d6e1(0x230);const _0x927267=_0x4aba95;try{const _0x548cb0=_0x496ed2['test']?_0x496ed2[_0x18d6e1(0x240)]['id']:_0x496ed2[_0x18d6e1(0x1fb)]['test_run_id'],_0x2ca581=_0x496ed2[_0x18d6e1(0x2ab)],_0x3c5d95=_0x2ca581['getContext'](),_0x2f4eeb=_0x2ca581[_0x18d6e1(0x259)]()[_0x18d6e1(0x1f2)](_0x548cb0);if(!_0x2f4eeb)return logger[_0x18d6e1(0x21b)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x548cb0),{};logger[_0x18d6e1(0x21b)](_0x18d6e1(0x1f4)+_0x548cb0);const {[TestFrameworkConstants[_0x18d6e1(0x206)]]:_0xa2faf8='',[TestFrameworkConstants[_0x18d6e1(0x22f)]]:_0x3a68cd='',[TestFrameworkConstants[_0x18d6e1(0x2b5)]]:_0xbe7275='',[TestFrameworkConstants[_0x18d6e1(0x21f)]]:_0x24d264=''}=_0x2f4eeb,_0xa98780=_0x2ca581[_0x18d6e1(0x209)]()[_0x18d6e1(0x29d)]()[_0x18d6e1(0x22e)]('.')[0x1],_0x2db3e1=_0x2ca581[_0x18d6e1(0x2a3)]()[_0x18d6e1(0x29d)]()['split']('.')[0x1],_0x50922b=global?.[_0x18d6e1(0x1fe)]??0x0,_0x5820d4=_0x2ca581[_0x18d6e1(0x21a)](),_0xa2e77c=Buffer[_0x18d6e1(0x23c)](JSON[_0x18d6e1(0x271)](_0x2f4eeb))[_0x18d6e1(0x29d)](_0x927267[_0x18d6e1(0x2a1)]),_0x151eca={'hash':_0x3c5d95[_0x18d6e1(0x20e)](),'threadId':_0x3c5d95['getThreadId']()[_0x18d6e1(0x29d)](),'processId':_0x3c5d95[_0x18d6e1(0x213)]()[_0x18d6e1(0x29d)]()},_0x5416cb={};_0x5416cb[_0x18d6e1(0x232)]=_0x50922b,_0x5416cb[_0x18d6e1(0x260)]=_0xa2faf8,_0x5416cb[_0x18d6e1(0x253)]=_0x3a68cd,_0x5416cb['testFrameworkState']=_0xa98780,_0x5416cb['hookState']=_0x2db3e1,_0x5416cb['startedAt']=_0xbe7275,_0x5416cb[_0x18d6e1(0x201)]=_0x24d264,_0x5416cb[_0x18d6e1(0x2b7)]=_0x5820d4,_0x5416cb[_0x18d6e1(0x2b4)]=_0xa2e77c,_0x5416cb[_0x18d6e1(0x1f9)]=_0x151eca;const _0x25a043=_0x5416cb;return logger[_0x18d6e1(0x21b)](_0x18d6e1(0x2a4)+_0x548cb0+_0x18d6e1(0x26a)+_0xa98780+'\x20hookState:\x20'+_0x2db3e1),_0x25a043;}catch(_0x527bb9){return logger[_0x18d6e1(0x291)](_0x18d6e1(0x2b2)+util[_0x18d6e1(0x283)](_0x527bb9)),{};}}async[a90_0xa22afe(0x273)](_0x57b07b,_0xd50297,_0x5f0948){const _0x17ddc8=a90_0xa22afe,_0x23b2e1={'cKsTP':function(_0x57675a,_0x22455f,_0x531115){return _0x57675a(_0x22455f,_0x531115);},'nGIDK':function(_0x434bd1,_0x461b7e){return _0x434bd1===_0x461b7e;},'GFvjh':_0x17ddc8(0x25a),'aMveV':function(_0x52a367,_0x571a97){return _0x52a367/_0x571a97;},'dFkPJ':function(_0x44a0d8,_0x1d879f){return _0x44a0d8<_0x1d879f;},'yxsWj':function(_0x37dc12,_0xfdccc7){return _0x37dc12*_0xfdccc7;},'HIWET':function(_0x5b74f7,_0x48bdba){return _0x5b74f7+_0x48bdba;},'KTQFp':function(_0x3cdebf,_0x21714f){return _0x3cdebf+_0x21714f;},'PLlsJ':function(_0x50b7b0,_0x58b9a6){return _0x50b7b0+_0x58b9a6;},'PjIrf':_0x17ddc8(0x27a)};try{const _0x27e72c=_0x5f0948['testUUID'],_0x4ddd84=_0x57b07b[_0x17ddc8(0x259)]()['get'](_0x27e72c),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x3082ca='',[TestFrameworkConstants[_0x17ddc8(0x22f)]]:_0x514c9d=''}=_0x4ddd84,_0x1278e8=TestInfo[_0x17ddc8(0x289)](_0x27e72c),_0x39600c=TestInfo['getTestDetails'](_0x27e72c)[TestFrameworkConstants[_0x17ddc8(0x26b)]]||{},_0x312945=_0x23b2e1['cKsTP'](getMediaArtifactsLogs,_0x39600c,_0x57b07b['getAllData']()[_0x17ddc8(0x1f2)](_0x27e72c)[TestFrameworkConstants[_0x17ddc8(0x245)]]),_0x4d4aa0=(_0x1278e8||[])['concat'](_0x312945||[]);if(!_0x4d4aa0||_0x23b2e1['nGIDK'](_0x4d4aa0[_0x17ddc8(0x239)],0x0)){logger['debug'](_0x23b2e1[_0x17ddc8(0x237)]);return;}const _0x16029d=0x28,_0x130478=Math[_0x17ddc8(0x24b)](_0x23b2e1['aMveV'](_0x4d4aa0[_0x17ddc8(0x239)],_0x16029d));for(let _0x28d1f6=0x0;_0x23b2e1['dFkPJ'](_0x28d1f6,_0x130478);_0x28d1f6++){const _0xd8fb1a=_0x23b2e1[_0x17ddc8(0x257)](_0x28d1f6,_0x16029d),_0x2d480c=_0x23b2e1[_0x17ddc8(0x28e)](_0xd8fb1a,_0x16029d),_0x186602=_0x4d4aa0['slice'](_0xd8fb1a,_0x2d480c),_0x4e46db={'platformIndex':global?.[_0x17ddc8(0x1fe)]??0x0,'logs':_0x186602,'testFrameworkName':_0x3082ca,'testFrameworkVersion':_0x514c9d,'testFrameworkState':_0xd50297[_0x17ddc8(0x29d)]()[_0x17ddc8(0x22e)]('.')[0x1]};logger['debug'](_0x17ddc8(0x2a2)+_0x27e72c+'\x20batch\x20'+_0x23b2e1[_0x17ddc8(0x217)](_0x28d1f6,0x1)+'/'+_0x130478+_0x17ddc8(0x205)+util[_0x17ddc8(0x281)](_0x4e46db));const _0x1ace8a=await GrpcClient['getInstance']()['logCreatedEvent'](_0x4e46db);logger[_0x17ddc8(0x21b)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x27e72c+_0x17ddc8(0x270)+_0x23b2e1[_0x17ddc8(0x29b)](_0x28d1f6,0x1)+'/'+_0x130478+_0x17ddc8(0x235)+util[_0x17ddc8(0x281)](_0x1ace8a));}}catch(_0x14222e){logger['error'](_0x17ddc8(0x219)+util[_0x17ddc8(0x283)](_0x14222e));}logger['debug'](_0x23b2e1['PjIrf']);}[a90_0xa22afe(0x211)](_0x462365,_0x497f88,_0x30f59a,_0x49cc06,_0x559c4f){const _0x1714b3=a90_0xa22afe,_0x37c573={'testId':_0x497f88,'testFrameworkState':_0x30f59a,'hookState':_0x49cc06,'args':_0x559c4f,'timestamp':new Date()['toISOString']()};_0x462365[_0x1714b3(0x1fd)](_0x497f88,_0x37c573),logger[_0x1714b3(0x21b)](_0x1714b3(0x272)+_0x497f88+_0x1714b3(0x276)+_0x30f59a+_0x1714b3(0x268)+_0x49cc06);}async[a90_0xa22afe(0x202)](_0x57c5ff,_0x42ad17){const _0x2aa3ca=a90_0xa22afe,_0x23ba0f={};_0x23ba0f[_0x2aa3ca(0x282)]=function(_0x2c375b,_0x5259bf){return _0x2c375b>_0x5259bf;};const _0x341d38=_0x23ba0f;if(!_0x57c5ff[_0x2aa3ca(0x265)](_0x42ad17))return;const _0x3191cb=_0x57c5ff[_0x2aa3ca(0x2bd)](_0x42ad17);logger[_0x2aa3ca(0x21b)](_0x2aa3ca(0x290)+_0x3191cb[_0x2aa3ca(0x239)]+_0x2aa3ca(0x25d)+_0x42ad17);for(const _0xabf0e3 of _0x3191cb){try{const _0x6b2e30=await this[_0x2aa3ca(0x236)](_0x57c5ff,_0xabf0e3[_0x2aa3ca(0x264)],_0xabf0e3[_0x2aa3ca(0x2ac)],_0xabf0e3['args']);_0x6b2e30&&_0x341d38[_0x2aa3ca(0x282)](Object['keys'](_0x6b2e30)[_0x2aa3ca(0x239)],0x0)&&_0x57c5ff['addMultipleEntries'](_0x6b2e30),await this['runHooks'](_0x57c5ff,_0xabf0e3[_0x2aa3ca(0x264)],_0xabf0e3[_0x2aa3ca(0x2ac)],_0xabf0e3['args']);}catch(_0x233003){logger[_0x2aa3ca(0x291)](_0x2aa3ca(0x246)+_0x42ad17+_0x2aa3ca(0x22b)+_0x233003);}}_0x57c5ff[_0x2aa3ca(0x285)](_0x42ad17),logger[_0x2aa3ca(0x21b)](_0x2aa3ca(0x248)+_0x42ad17);}}function a90_0x5404(_0x4c1f99,_0x1fcf05){const _0x322388=a90_0x3223();return a90_0x5404=function(_0x5404a5,_0x54c38b){_0x5404a5=_0x5404a5-0x1f1;let _0xcee250=_0x322388[_0x5404a5];return _0xcee250;},a90_0x5404(_0x4c1f99,_0x1fcf05);}function a90_0x3223(){const _0x45114d=['split','KEY_TEST_FRAMEWORK_VERSION','base64','KEY_EVENT_ENDED_AT','platformIndex','KEY_TEST_FAILURE','../state/testFrameworkState.js','\x20response=','trackHookEvent','GFvjh','trackEvent','length','USgyI','setTestDetails','from','exports','2eUaNYZ','KTxMg','test','xPbeE','parseCucumberTest',',\x20storing\x20as\x20pending\x20hook','KEY_TEST_RESULT','KEY_TEST_UUID','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_SCOPE','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','NONE','\x20for\x20test:\x20','ceil','\x20with\x20UUID:\x20','hook_type','POST','KEY_TEST_RERUN_NAME','TEST','push','trackCucumberInstance:\x20saved\x20instance\x20contextId=','testFrameworkVersion','unknown','PRE','KEY_TEST_NAME','yxsWj','KHvLk','getAllData','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','KEY_HOOK_RESULT','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','\x20pending\x20hooks\x20for\x20testId:\x20','DFRJx','orhVD','testFrameworkName','KEY_TEST_META','hooks','getTestDetails','testFrameworkState','hasPendingHooks','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','toISOString',',\x20hookState:\x20','test_run_id','\x20testState:\x20','KEY_TEST_ATTACHMENTS','failure_data','../../../helpers/helper.js','KEY_CUSTOM_TAGS','KEY_AUTOMATE_SESSION_NAME','\x20batch\x20','stringify','Stored\x20pending\x20hook\x20for\x20testId:\x20','sendLogCreatedEvent','scopes','parseCucumberTestResult',',\x20state:\x20','855GvMsgZ','KEY_TEST_FAILURE_REASON','KEY_TEST_FILE_PATH','Cucumber\x20log\x20created\x20event','addMultipleEntries','KEY_HOOKS_FINISHED','IsMzo','file_name','5iTyrPa','util','inspect','KfbUi','format','sqRyf','removePendingHooks','\x20and\x20args\x20=\x20','CucumberTestFramework','1000071ILkDpy','readLogObjects','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','Parsed\x20cucumber\x20test:\x20','../cliUtils.js','UnhandledError','HIWET','../instances/testFrameworkInstance.js','Processing\x20','error','KEY_TEST_LOGS','testUUID','DEFAULT_HOOK_RESULT','4975548FbNAYv','Updated\x20cucumber\x20test\x20result:\x20','getTestFrameworksVersions','KEY_HOOKS_STARTED','\x20with\x20id\x20','resolveInstance','PLlsJ','customRerunParam','toString','phJJX','meta','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','urzsb','sendLogCreatedEvent:\x20for\x20testId:\x20','getCurrentHookState','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','11362153TGpYoj','getTestFrameworks','createContext','matchHookRegex','pop','./testFramework','instance','hookState','KEY_LOGS',',\x20state=','vdPDc','KEY_TEST_CODE','key','Error\x20in\x20createTestFrameworkEventPayload:\x20','KEY_TEST_TAGS','eventJson','KEY_TEST_STARTED_AT','rerun_name','uuid','LvhLI','failed','../instances/trackedInstance.js','LkCUq','sCQoX','getPendingHooks','location','get','testData','createTestFrameworkEventPayload\x20testId:\x20','result','failure_type','body','../state/hookState.js','executionContext','71696aoGSGK','hookData','adzMV','addPendingHook','browserstackPlatformIndex','KEY_HOOK_NAME','RiiWi','endedAt','processPendingHooks','7559680LDXNhl','KEY_HOOK_FAILURE_REASON','\x20payload=','KEY_TEST_FRAMEWORK_NAME','1050281MeNIMY','KEY_HOOK_LOGS','getCurrentTestState','runHooks','XjfaM','code','KEY_HOOK_FAILURE_TYPE','getId','KEY_HOOK_LAST_STARTED','LOG_REPORT','storePendingHook','name','getProcessId','KEY_TEST_SCOPES','hEzeN','KEY_TEST_FAILURE_TYPE','KTQFp','startedAt','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','getRef','debug','7KFfOoq','getTestUUID','1501064lLNwTJ','KEY_TEST_ENDED_AT','KEY_EVENT_STARTED_AT','setTrackedInstance','../TestInfo.js','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','failure','trackEvent:\x20unsupported\x20testFrameworkState=','oZnQC','trackCucumberInstance','\x20target=','npdTb','failure_reason',',\x20error:\x20','\x20&\x20hookState=','saelI'];a90_0x3223=function(){return _0x45114d;};return a90_0x3223();}module[a90_0xa22afe(0x23d)]=CucumberTestFramework;
|