browserstack-node-sdk 1.65.0 → 1.65.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/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/loadErrors.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/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/node-generic/client.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/reporterArgs.js +1 -0
- 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/nodeGenericTestFramework.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/sdkErrorHandler.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/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/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
|
-
function a84_0x636e(_0x2c35a4,_0x274c06){const _0x27db04=a84_0x27db();return a84_0x636e=function(_0x636ec1,_0x5b8cd9){_0x636ec1=_0x636ec1-0x134;let _0x4b9922=_0x27db04[_0x636ec1];return _0x4b9922;},a84_0x636e(_0x2c35a4,_0x274c06);}const a84_0x20218f=a84_0x636e;(function(_0x96bbff,_0x9cabbc){const _0x2625cf=a84_0x636e,_0x18b78e=_0x96bbff();while(!![]){try{const _0x4351ac=parseInt(_0x2625cf(0x153))/0x1+parseInt(_0x2625cf(0x1af))/0x2*(parseInt(_0x2625cf(0x1a4))/0x3)+-parseInt(_0x2625cf(0x1b3))/0x4*(parseInt(_0x2625cf(0x1dc))/0x5)+-parseInt(_0x2625cf(0x1f8))/0x6+parseInt(_0x2625cf(0x181))/0x7*(-parseInt(_0x2625cf(0x144))/0x8)+-parseInt(_0x2625cf(0x1fc))/0x9+parseInt(_0x2625cf(0x163))/0xa;if(_0x4351ac===_0x9cabbc)break;else _0x18b78e['push'](_0x18b78e['shift']());}catch(_0x4e162c){_0x18b78e['push'](_0x18b78e['shift']());}}}(a84_0x27db,0xa413b));const fs=require('fs'),os=require('os'),url=require(a84_0x20218f(0x1df)),path=require(a84_0x20218f(0x145)),{exec}=require(a84_0x20218f(0x16b)),{https}=require('follow-redirects'),yauzl=require(a84_0x20218f(0x1f9)),util=require(a84_0x20218f(0x1fa)),{getFrameworkVersion}=require(a84_0x20218f(0x167)),{threadId}=require(a84_0x20218f(0x1d4)),PerformanceTester=require(a84_0x20218f(0x164)),{EVENTS:PerformanceEvents}=require(a84_0x20218f(0x208)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a84_0x20218f(0x1bc)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a84_0x20218f(0x1cd)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a84_0x20218f(0x186)),{createClassLogger}=require(a84_0x20218f(0x1c1)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require('./state/hookState.js'),TestFrameworkState=require(a84_0x20218f(0x1a7)),AutomationFrameworkState=require(a84_0x20218f(0x1b0)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a84_0x20218f(0x194));class CLIUtils{['automationFrameworkDetail']={};[a84_0x20218f(0x174)]={};static[a84_0x20218f(0x178)](){const _0x312725=a84_0x20218f,_0x310002={};_0x310002[_0x312725(0x210)]=function(_0xfb6a6e,_0x19f6dc){return _0xfb6a6e===_0x19f6dc;},_0x310002[_0x312725(0x1e3)]='development';const _0x44f1ea=_0x310002;return _0x44f1ea[_0x312725(0x210)](process[_0x312725(0x13e)][_0x312725(0x1cb)],_0x44f1ea[_0x312725(0x1e3)]);}static[a84_0x20218f(0x139)](){const _0x1d9cf7=a84_0x20218f,_0x437d34={};return _0x437d34['id']=process['env'][_0x1d9cf7(0x1cb)],_0x437d34[_0x1d9cf7(0x18e)]='unix:/tmp/sdk-platform-'+process[_0x1d9cf7(0x13e)][_0x1d9cf7(0x1cb)]+_0x1d9cf7(0x1f1),_0x437d34;}static[a84_0x20218f(0x191)](){const _0x47cb5f=a84_0x20218f,_0x279fb3={'ZgGnQ':function(_0x5d6ea3,_0x3daeb7){return _0x5d6ea3(_0x3daeb7);},'MumiQ':_0x47cb5f(0x13b)};return _0x279fb3[_0x47cb5f(0x1ca)](require,_0x279fb3[_0x47cb5f(0x20a)])[_0x47cb5f(0x1e7)];}static[a84_0x20218f(0x155)](){const _0xed5cfe=a84_0x20218f,_0x3d5176={};_0x3d5176['HUWcO']=_0xed5cfe(0x1eb);const _0x402827=_0x3d5176;return _0x402827[_0xed5cfe(0x18b)];}static async['setupCliPath'](_0x34d7ac){const _0x966486=a84_0x20218f,_0x154865={'aPJtM':'Configuring\x20Cli\x20path.','BASBO':function(_0x2bf36a,_0x4bd632){return _0x2bf36a(_0x4bd632);},'harkF':_0x966486(0x1d7)};logger[_0x966486(0x187)](_0x154865[_0x966486(0x1e5)]);const _0x17fec4=process['env'][_0x966486(0x13d)];if(!_0x154865['BASBO'](isNullOrEmpty,_0x17fec4))return logger[_0x966486(0x187)](_0x966486(0x137)+_0x17fec4),_0x17fec4;try{const _0x1b18c8=this[_0x966486(0x1f5)]();if(_0x154865[_0x966486(0x16e)](isNullOrEmpty,_0x1b18c8))throw new Error(_0x154865['harkF']);const _0x1e64e9=this['getExistingCliPath'](_0x1b18c8),_0x36964f=await this[_0x966486(0x1c7)](_0x1e64e9,_0x1b18c8,_0x34d7ac);return logger['debug'](_0x966486(0x17a)+_0x36964f),_0x36964f;}catch(_0x1d9984){logger[_0x966486(0x187)](_0x966486(0x142)+util[_0x966486(0x140)](_0x1d9984));}return null;}static async[a84_0x20218f(0x1c7)](_0x3fa655,_0x4b1248,_0x51f4c8){const _0x3f4789=a84_0x20218f,_0x3cb2b0={'gzlWV':function(_0x37fe44){return _0x37fe44();},'DNStT':function(_0x56d8aa,_0x1ec3a3){return _0x56d8aa(_0x1ec3a3);},'lSIvm':function(_0x1dfa1f,_0x3c2425,_0x122809){return _0x1dfa1f(_0x3c2425,_0x122809);},'nhVgq':_0x3f4789(0x1d6),'AJeEl':_0x3f4789(0x1df),'HJvum':function(_0x5d06f9,_0x58d85e,_0x127788){return _0x5d06f9(_0x58d85e,_0x127788);}};PerformanceTester[_0x3f4789(0x14d)](PerformanceEvents[_0x3f4789(0x1a8)]);try{logger[_0x3f4789(0x19b)](_0x3f4789(0x1cc)+_0x3fa655);const _0x3aeeb5=_0x3cb2b0[_0x3f4789(0x159)](getHostInfo),_0x148611={'sdk_version':CLIUtils[_0x3f4789(0x191)](),'os':_0x3aeeb5['platform'],'os_arch':_0x3aeeb5[_0x3f4789(0x18a)],'cli_version':'0','sdk_language':this[_0x3f4789(0x155)]()};!_0x3cb2b0['DNStT'](isNullOrEmpty,_0x3fa655)&&(_0x148611[_0x3f4789(0x1a6)]=await this[_0x3f4789(0x15c)](_0x3fa655+_0x3f4789(0x162)));const _0xf5a206=await this['requestToUpdateCLI'](_0x148611,_0x51f4c8);process[_0x3f4789(0x13e)][_0x3f4789(0x13f)]&&(logger['info']('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process[_0x3f4789(0x13e)][_0x3f4789(0x13f)]),_0xf5a206[_0x3f4789(0x1d6)][_0x3f4789(0x1df)]=process[_0x3f4789(0x13e)]['BROWSERSTACK_BINARY_URL']);if(_0x3cb2b0[_0x3f4789(0x197)](nestedKeyValue,_0xf5a206,[_0x3cb2b0['nhVgq'],_0x3cb2b0[_0x3f4789(0x202)]])){logger[_0x3f4789(0x187)](_0x3f4789(0x14e)+_0x148611[_0x3f4789(0x1a6)]);if(!_0x3cb2b0[_0x3f4789(0x17c)](isNullOrEmpty,_0x3fa655)&&this[_0x3f4789(0x150)](_0x3fa655))return logger['warn']('Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20'+_0x3fa655),_0x3fa655;return await this[_0x3f4789(0x13c)](_0x3cb2b0[_0x3f4789(0x1c5)](nestedKeyValue,_0xf5a206,[_0x3cb2b0['nhVgq'],_0x3cb2b0[_0x3f4789(0x202)]]),_0x4b1248);}return _0x3fa655;}finally{PerformanceTester[_0x3f4789(0x20c)](PerformanceEvents[_0x3f4789(0x1a8)]);}}static[a84_0x20218f(0x1f5)](){const _0xd586e5=a84_0x20218f,_0x15a9af={'dYQrV':function(_0x131789,_0x3297ea){return _0x131789(_0x3297ea);},'yKbIV':_0xd586e5(0x1d7),'heWmN':_0xd586e5(0x205)},_0xd1a2c1=this['getWritableDir']();try{if(_0x15a9af[_0xd586e5(0x1d5)](isNullOrEmpty,_0xd1a2c1))throw new Error(_0x15a9af['yKbIV']);const _0x1bf930=path['join'](_0xd1a2c1,_0x15a9af[_0xd586e5(0x1e8)]);return!fs[_0xd586e5(0x177)](_0x1bf930)&&_0x15a9af[_0xd586e5(0x1d5)](createDir,_0x1bf930),_0x1bf930;}catch(_0x4aa82a){logger[_0xd586e5(0x187)]('Error\x20in\x20getting\x20writable\x20directory,\x20writableDir='+util[_0xd586e5(0x140)](_0x4aa82a));}}static[a84_0x20218f(0x15b)](){const _0x672204=a84_0x20218f,_0x3f222d={'Tsfsj':_0x672204(0x1b2),'XHhaY':function(_0x1d96f0,_0x17a6fb){return _0x1d96f0(_0x17a6fb);},'TGtcF':function(_0x4fbcb7,_0x2eab23){return _0x4fbcb7(_0x2eab23);},'WPxTe':function(_0x59a48b,_0x3aae93){return _0x59a48b(_0x3aae93);}},_0x3f312b=[process[_0x672204(0x13e)][_0x672204(0x156)],path['join'](os['homedir'](),_0x3f222d[_0x672204(0x15d)]),path['join'](os[_0x672204(0x136)](),_0x3f222d[_0x672204(0x15d)])];for(const _0x4ce512 of _0x3f312b){if(_0x3f222d[_0x672204(0x1ce)](isNullOrEmpty,_0x4ce512))continue;try{if(fs[_0x672204(0x177)](_0x4ce512)){logger[_0x672204(0x187)](_0x672204(0x1c6)+_0x4ce512+_0x672204(0x183));if(!_0x3f222d[_0x672204(0x1ce)](isModifiable,_0x4ce512)){logger[_0x672204(0x187)](_0x672204(0x214)+_0x4ce512);const _0x17b420=_0x3f222d['XHhaY'](setReadWriteExecuteAccess,_0x4ce512);if(!_0x3f222d[_0x672204(0x18c)](isTrue,_0x17b420)){logger[_0x672204(0x189)](_0x672204(0x16c)+_0x4ce512);continue;}}}else{logger[_0x672204(0x187)](_0x672204(0x13a)+_0x4ce512),_0x3f222d[_0x672204(0x18c)](createDir,_0x4ce512),logger[_0x672204(0x187)](_0x672204(0x214)+_0x4ce512);const _0x2bdf0e=_0x3f222d['TGtcF'](setReadWriteExecuteAccess,_0x4ce512);!_0x3f222d[_0x672204(0x1d2)](isTrue,_0x2bdf0e)&&logger['warn'](_0x672204(0x16c)+_0x4ce512);}return _0x4ce512;}catch(_0xae8098){logger[_0x672204(0x20f)](_0x672204(0x15f)+util['format'](_0xae8098));}}return null;}static[a84_0x20218f(0x17e)](_0x364d87){const _0x5cb249=a84_0x20218f,_0x56a073={};_0x56a073['DZUCu']=function(_0x380c82,_0x7a14bf){return _0x380c82>_0x7a14bf;},_0x56a073['tJvPZ']=function(_0x50f4bf,_0x12d493){return _0x50f4bf>_0x12d493;};const _0x4bd358=_0x56a073;try{if(!fs[_0x5cb249(0x177)](_0x364d87)||!fs['statSync'](_0x364d87)[_0x5cb249(0x1b1)]())return'';const _0x5ae893=fs[_0x5cb249(0x16a)](_0x364d87)[_0x5cb249(0x1c8)](_0x43dee8=>path[_0x5cb249(0x169)](_0x364d87,_0x43dee8))['filter'](_0x29cbf5=>fs[_0x5cb249(0x1da)](_0x29cbf5)[_0x5cb249(0x1a5)]()&&path[_0x5cb249(0x219)](_0x29cbf5)[_0x5cb249(0x1ee)](_0x5cb249(0x215)));if(_0x4bd358[_0x5cb249(0x217)](_0x5ae893[_0x5cb249(0x1ab)],0x0)){const _0x93ddc5=_0x5ae893[_0x5cb249(0x1c8)](_0x8fd36b=>({'filePath':_0x8fd36b,'mtime':fs[_0x5cb249(0x1da)](_0x8fd36b)[_0x5cb249(0x207)]}))[_0x5cb249(0x1fe)]((_0x2feed0,_0x5bb957)=>{const _0x368e61=_0x5cb249;if(!_0x2feed0||!_0x2feed0['mtime'])return _0x5bb957;if(_0x4bd358[_0x368e61(0x1db)](_0x5bb957['mtime'],_0x2feed0[_0x368e61(0x207)]))return _0x5bb957;return _0x2feed0;},{});return _0x93ddc5?_0x93ddc5['filePath']:'';}return'';}catch(_0x263499){return logger[_0x5cb249(0x20f)](_0x5cb249(0x171)+util[_0x5cb249(0x140)](_0x263499)),'';}}static [a84_0x20218f(0x184)]=async(_0x253f87,_0x4ec21a)=>{const _0x332398=a84_0x20218f,_0x157779={'ZwJvG':function(_0x4d4fa8,_0x1caca3,_0x31f20e,_0x200d6e,_0x3ddcfd){return _0x4d4fa8(_0x1caca3,_0x31f20e,_0x200d6e,_0x3ddcfd);},'LqSNi':_0x332398(0x1fd)},_0x5e81f4={};_0x5e81f4['qs']=_0x253f87,_0x5e81f4[_0x332398(0x1ec)]=!![];const _0x2b24b2=await _0x157779['ZwJvG'](nodeRequest,_0x157779[_0x332398(0x172)],UPDATED_CLI_ENDPOINT,_0x5e81f4,_0x4ec21a);return logger[_0x332398(0x187)](_0x332398(0x18f)+JSON[_0x332398(0x201)](_0x2b24b2)),_0x2b24b2;};static[a84_0x20218f(0x150)](_0x33ae25){const _0x2dcee3=a84_0x20218f;try{const _0x34585c=fs[_0x2dcee3(0x19a)](_0x33ae25,'r+');return fs[_0x2dcee3(0x1d1)](_0x34585c),![];}catch(_0x83b751){if(BINARY_BUSY_ERROR_CODES['includes'](_0x83b751['code']))return logger[_0x2dcee3(0x187)](_0x2dcee3(0x192)+_0x33ae25),!![];return logger[_0x2dcee3(0x187)]('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x83b751[_0x2dcee3(0x199)]),![];}}static[a84_0x20218f(0x15c)](_0x24c5f1,_0xae8a93=''){const _0x534685=a84_0x20218f,_0x4d5f2d={'LmrQC':function(_0x4d26d7,_0x2b02df){return _0x4d26d7(_0x2b02df);},'UUyEh':_0x534685(0x185),'NWqyk':'version','dwkFH':function(_0x355dfb,_0x5c66d2){return _0x355dfb(_0x5c66d2);},'ZbDHB':function(_0x1eec01,_0x1e905c){return _0x1eec01(_0x1e905c);},'LEZdQ':function(_0x2874ea,_0x25a623,_0x5182e8,_0x2a37c7){return _0x2874ea(_0x25a623,_0x5182e8,_0x2a37c7);},'OQLSX':_0x534685(0x20f)};return new Promise((_0x250d2d,_0x341c59)=>{const _0x1c4e17=_0x534685,_0x56b978={'NlSkt':_0x4d5f2d[_0x1c4e17(0x193)],'rLduC':function(_0x372249,_0x3f1afa){return _0x4d5f2d['dwkFH'](_0x372249,_0x3f1afa);},'JyAyA':function(_0x2c5d6f,_0x509f49){const _0x124271=_0x1c4e17;return _0x4d5f2d[_0x124271(0x1be)](_0x2c5d6f,_0x509f49);},'MGMvg':_0x4d5f2d['UUyEh']},_0x309a54={};_0x309a54[_0x1c4e17(0x1c2)]=_0xae8a93,_0x309a54['timeout']=0x1388;const _0x19e4d2=_0x4d5f2d['LEZdQ'](exec,_0x24c5f1,_0x309a54,(_0x36be61,_0x13a14d,_0x2d5310)=>{const _0x5dfd13=_0x1c4e17;if(_0x36be61){if(_0x24c5f1[_0x5dfd13(0x1ea)](_0x56b978[_0x5dfd13(0x1a3)])&&(_0x13a14d[_0x5dfd13(0x165)]()||_0x2d5310['trim']())){const _0x173201=_0x13a14d[_0x5dfd13(0x165)]()||_0x2d5310[_0x5dfd13(0x165)]();logger[_0x5dfd13(0x187)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x173201+'\x22'),_0x56b978[_0x5dfd13(0x1a1)](_0x250d2d,_0x173201);}else _0x56b978['JyAyA'](_0x250d2d,_0x2d5310['trim']()||_0x56b978['MGMvg']);}else logger[_0x5dfd13(0x187)](_0x5dfd13(0x161)+_0x13a14d[_0x5dfd13(0x165)]()+'\x22'),_0x56b978[_0x5dfd13(0x209)](_0x250d2d,_0x13a14d[_0x5dfd13(0x165)]());});_0x19e4d2['on'](_0x4d5f2d[_0x1c4e17(0x170)],()=>{const _0x35ce4c=_0x1c4e17;_0x4d5f2d[_0x35ce4c(0x19c)](_0x250d2d,_0x4d5f2d[_0x35ce4c(0x21a)]);});});}static [a84_0x20218f(0x13c)]=async(_0x4d34ff,_0x56edda)=>{const _0x4f818f=a84_0x20218f,_0x25c0ac={'XfKcW':_0x4f818f(0x204),'lYjgi':function(_0x2075bf,_0x4b30d5){return _0x2075bf(_0x4b30d5);},'mEGOI':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','GwNSB':function(_0x4ee5b3,_0x3f7168){return _0x4ee5b3>=_0x3f7168;},'qGhjP':_0x4f818f(0x151),'bwGYd':_0x4f818f(0x1f4),'lxszc':_0x4f818f(0x20f),'sCvtX':function(_0x560a1c,_0x2e4cdb){return _0x560a1c(_0x2e4cdb);},'WOkFA':_0x4f818f(0x1d8)};PerformanceTester[_0x4f818f(0x14d)](PerformanceEvents[_0x4f818f(0x1ad)]),logger['debug'](_0x4f818f(0x200)+_0x4d34ff);try{const _0x4b43b1=url[_0x4f818f(0x1bd)](_0x4d34ff),_0x36f312=path[_0x4f818f(0x169)](_0x56edda,'downloaded_file_'+process[_0x4f818f(0x20d)]+_0x4f818f(0x14a)),_0xa2c55e=fs[_0x4f818f(0x14c)](_0x36f312);return new Promise((_0x108776,_0x41cc7e)=>{const _0x210ee2=_0x4f818f,_0x165ab5={'xYOPd':function(_0x23d9d6,_0x4614c9){const _0x39843b=a84_0x636e;return _0x25c0ac[_0x39843b(0x157)](_0x23d9d6,_0x4614c9);}};https[_0x210ee2(0x173)](_0x4b43b1,function(_0x12c1e3){const _0x3f6a0d=_0x210ee2,_0x53035c={'dPQAx':_0x25c0ac[_0x3f6a0d(0x19f)],'sdEUY':function(_0x194474,_0x338f85){const _0x3c7a52=_0x3f6a0d;return _0x25c0ac[_0x3c7a52(0x1e6)](_0x194474,_0x338f85);},'bGbCp':_0x25c0ac['mEGOI'],'koRGT':function(_0x121013,_0x478ed6){return _0x25c0ac['lYjgi'](_0x121013,_0x478ed6);}},_0x3a1bae=null;if(_0x12c1e3[_0x3f6a0d(0x138)]&&_0x25c0ac['GwNSB'](_0x12c1e3[_0x3f6a0d(0x138)],0x190)){const _0x5c4fb2=new Error(_0x3f6a0d(0x141)+_0x12c1e3[_0x3f6a0d(0x138)]+_0x3f6a0d(0x20e)+_0x4d34ff);_0x5c4fb2['code']=_0x25c0ac['qGhjP'],_0x5c4fb2[_0x3f6a0d(0x138)]=_0x12c1e3[_0x3f6a0d(0x138)],logger[_0x3f6a0d(0x20f)](util[_0x3f6a0d(0x140)](_0x25c0ac[_0x3f6a0d(0x1b7)],_0x12c1e3[_0x3f6a0d(0x138)])),PerformanceTester['end'](PerformanceEvents[_0x3f6a0d(0x1ad)],![],'HTTP\x20'+_0x12c1e3[_0x3f6a0d(0x138)]),_0x12c1e3[_0x3f6a0d(0x206)](),_0xa2c55e[_0x3f6a0d(0x1d3)](),fs['unlink'](_0x36f312,()=>{}),_0x25c0ac[_0x3f6a0d(0x1e6)](_0x41cc7e,_0x5c4fb2);return;}_0x12c1e3[_0x3f6a0d(0x14f)](_0xa2c55e),_0x12c1e3['on'](_0x25c0ac['lxszc'],function(_0x222c07){const _0x2c30bd=_0x3f6a0d;logger[_0x2c30bd(0x20f)](util[_0x2c30bd(0x140)](_0x53035c[_0x2c30bd(0x154)],_0x222c07)),PerformanceTester[_0x2c30bd(0x20c)](PerformanceEvents[_0x2c30bd(0x1ad)],![],util[_0x2c30bd(0x140)](_0x222c07)),_0x53035c[_0x2c30bd(0x148)](_0x41cc7e,_0x222c07);}),_0xa2c55e['on'](_0x25c0ac[_0x3f6a0d(0x16d)],function(_0x122fb9){const _0x3bad39=_0x3f6a0d;logger['error'](util['format'](_0x53035c[_0x3bad39(0x1a9)],_0x122fb9)),PerformanceTester[_0x3bad39(0x20c)](PerformanceEvents[_0x3bad39(0x1ad)],![],util[_0x3bad39(0x140)](_0x122fb9)),_0x53035c[_0x3bad39(0x148)](_0x41cc7e,_0x122fb9);}),CLIUtils[_0x3f6a0d(0x203)](_0xa2c55e,_0x3a1bae,_0x36f312,_0x56edda,_0x3625f0=>{const _0x3f3991=_0x3f6a0d;PerformanceTester['end'](PerformanceEvents[_0x3f3991(0x1ad)]),_0x53035c[_0x3f3991(0x135)](_0x108776,_0x3625f0);},_0x437bc7=>{const _0x5cfadc=_0x3f6a0d;PerformanceTester[_0x5cfadc(0x20c)](PerformanceEvents[_0x5cfadc(0x1ad)],![],util[_0x5cfadc(0x140)](_0x437bc7)),_0x165ab5[_0x5cfadc(0x1d9)](_0x41cc7e,_0x437bc7);});})['on'](_0x25c0ac[_0x210ee2(0x16d)],function(_0x403788){const _0x5013f1=_0x210ee2;logger[_0x5013f1(0x20f)](_0x5013f1(0x1ff)+util[_0x5013f1(0x140)](_0x403788)),PerformanceTester[_0x5013f1(0x20c)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x5013f1(0x140)](_0x403788)),_0x165ab5[_0x5013f1(0x1d9)](_0x41cc7e,_0x403788);});});}catch(_0x146551){PerformanceTester[_0x4f818f(0x20c)](PerformanceEvents[_0x4f818f(0x1ad)],![],util[_0x4f818f(0x140)](_0x146551)),logger['error'](util[_0x4f818f(0x140)](_0x25c0ac[_0x4f818f(0x1f3)],_0x146551));throw _0x146551;}};static[a84_0x20218f(0x203)](_0x5441b2,_0x45f43a,_0x2577a1,_0x14ae59,_0x54b5f1,_0x56d5f3){const _0x39c881=a84_0x20218f,_0x69dece={'fYBoQ':function(_0x3e6547,_0x3ca8d1){return _0x3e6547!==_0x3ca8d1;},'ZwteK':_0x39c881(0x1ed),'KcLWl':function(_0x2f3fd3,_0x2864f2){return _0x2f3fd3(_0x2864f2);},'bEAaP':_0x39c881(0x1d0),'OweYF':_0x39c881(0x20c),'kMEVx':_0x39c881(0x1e9),'ioAXP':function(_0x413bbb,_0x14d7a4){return _0x413bbb(_0x14d7a4);},'nbsHY':_0x39c881(0x20f),'ORsMX':function(_0x589c29,_0x4ba523){return _0x589c29(_0x4ba523);},'akyzk':'entry'};_0x5441b2['on'](_0x69dece[_0x39c881(0x19d)],function(){const _0x5eb285=_0x39c881,_0x35723e={'AuvXw':function(_0x2c5e48,_0x51c8af){const _0x1f1baa=a84_0x636e;return _0x69dece[_0x1f1baa(0x1f7)](_0x2c5e48,_0x51c8af);},'pBXqO':_0x69dece['ZwteK'],'hBGwW':function(_0xae85f6,_0x82f2c8){const _0x393320=a84_0x636e;return _0x69dece[_0x393320(0x176)](_0xae85f6,_0x82f2c8);},'PPsTQ':function(_0x5a2663,_0xb6326a){return _0x69dece['KcLWl'](_0x5a2663,_0xb6326a);},'MghFH':_0x69dece[_0x5eb285(0x213)],'UheAs':_0x69dece['OweYF'],'XKjhh':_0x69dece[_0x5eb285(0x19d)],'WIxZK':function(_0x5e024d,_0x2c8de8){const _0x97b23d=_0x5eb285;return _0x69dece[_0x97b23d(0x1f7)](_0x5e024d,_0x2c8de8);},'YGJXn':function(_0x5c3c5c,_0x4bd8fa){return _0x69dece['ioAXP'](_0x5c3c5c,_0x4bd8fa);},'iaDko':_0x69dece['nbsHY'],'oBbNs':function(_0x1285bd,_0x305365){return _0x69dece['ORsMX'](_0x1285bd,_0x305365);},'fuLCo':_0x69dece[_0x5eb285(0x179)]},_0x3d4076={};_0x3d4076['lazyEntries']=!![],yauzl[_0x5eb285(0x18d)](_0x2577a1,_0x3d4076,function(_0x5b4e1d,_0x57fdbc){const _0x49bf90=_0x5eb285,_0x3f9f29={'PEqgB':function(_0x444f32,_0x30f2de){const _0x1ecf89=a84_0x636e;return _0x35723e[_0x1ecf89(0x15a)](_0x444f32,_0x30f2de);},'CoCpZ':_0x35723e[_0x49bf90(0x1b5)],'NHXIx':function(_0x23e67d,_0x5ec360){return _0x35723e['PPsTQ'](_0x23e67d,_0x5ec360);},'ZSYbP':_0x35723e[_0x49bf90(0x1f6)],'ugulA':function(_0x499562,_0x1c599e){const _0xd1198f=_0x49bf90;return _0x35723e[_0xd1198f(0x147)](_0x499562,_0x1c599e);},'ZBmEE':function(_0x5bc3f8,_0x459ba8){const _0x5242ca=_0x49bf90;return _0x35723e[_0x5242ca(0x1de)](_0x5bc3f8,_0x459ba8);},'LYqGl':_0x35723e[_0x49bf90(0x14b)],'wAoUb':function(_0x986e80,_0x39841c){const _0x5679bf=_0x49bf90;return _0x35723e[_0x5679bf(0x1ef)](_0x986e80,_0x39841c);}};if(_0x5b4e1d){_0x35723e[_0x49bf90(0x15a)](_0x56d5f3,_0x5b4e1d);return;}_0x57fdbc[_0x49bf90(0x17f)](),_0x57fdbc['on'](_0x35723e[_0x49bf90(0x1a2)],_0x588ed6=>{const _0x184fff=_0x49bf90,_0x1bf255={'bhVLK':function(_0x480bf9,_0x3629c7){const _0x1497a6=a84_0x636e;return _0x3f9f29[_0x1497a6(0x158)](_0x480bf9,_0x3629c7);},'LzxHU':_0x3f9f29['ZSYbP']};if(/\/$/['test'](_0x588ed6[_0x184fff(0x182)])){_0x57fdbc[_0x184fff(0x17f)]();return;}!_0x45f43a&&(_0x45f43a=_0x588ed6['fileName']);if(_0x3f9f29[_0x184fff(0x1fb)](_0x588ed6[_0x184fff(0x182)],_0x45f43a))_0x57fdbc['readEntry']();else{const _0x3ca9c7=_0x588ed6[_0x184fff(0x182)],_0x5b9ee0=path[_0x184fff(0x169)](_0x14ae59,_0x3ca9c7+'.tmp.'+process['pid']);let _0x2dc15d;try{_0x2dc15d=fs[_0x184fff(0x14c)](_0x5b9ee0);}catch(_0x1dc5bb){if(BINARY_BUSY_ERROR_CODES['includes'](_0x1dc5bb[_0x184fff(0x134)])){const _0x263f4b=path[_0x184fff(0x169)](_0x14ae59,_0x3ca9c7);if(fs[_0x184fff(0x177)](_0x263f4b)){logger[_0x184fff(0x189)](_0x184fff(0x175)+_0x3ca9c7),fs[_0x184fff(0x212)](_0x2577a1,_0x520c90=>{const _0xd72aa0=_0x184fff;_0x520c90&&logger['warn'](_0xd72aa0(0x17b)+_0x2577a1);}),_0x3f9f29['NHXIx'](_0x54b5f1,_0x263f4b);return;}logger[_0x184fff(0x189)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x3ca9c7);}_0x3f9f29['ZBmEE'](_0x56d5f3,_0x1dc5bb);return;}_0x2dc15d['on'](_0x3f9f29[_0x184fff(0x195)],_0x4888ad=>{const _0xbd2591=_0x184fff;if(BINARY_BUSY_ERROR_CODES[_0xbd2591(0x1ea)](_0x4888ad['code'])){const _0x205f32=path[_0xbd2591(0x169)](_0x14ae59,_0x3ca9c7);_0x2dc15d[_0xbd2591(0x1e9)](),fs[_0xbd2591(0x177)](_0x205f32)?(logger[_0xbd2591(0x189)](_0xbd2591(0x198)+_0x4888ad[_0xbd2591(0x199)]),_0x57fdbc['close'](),fs[_0xbd2591(0x212)](_0x2577a1,_0x585a04=>{const _0x2b4b25=_0xbd2591;_0x585a04&&logger[_0x2b4b25(0x189)](_0x2b4b25(0x17b)+_0x2577a1);}),_0x1bf255[_0xbd2591(0x1bb)](_0x54b5f1,_0x205f32)):(logger[_0xbd2591(0x189)]('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x4888ad[_0xbd2591(0x199)]),fs[_0xbd2591(0x212)](_0x5b9ee0,()=>{}),_0x1bf255['bhVLK'](_0x56d5f3,_0x4888ad));}else fs[_0xbd2591(0x212)](_0x5b9ee0,()=>{}),_0x1bf255[_0xbd2591(0x1bb)](_0x56d5f3,_0x4888ad);}),_0x57fdbc[_0x184fff(0x166)](_0x588ed6,function(_0x1569dd,_0x5a0831){const _0x977579=_0x184fff;if(_0x1569dd){fs[_0x977579(0x212)](_0x5b9ee0,()=>{}),_0x3f9f29[_0x977579(0x17d)](_0x56d5f3,_0x1569dd);return;}_0x5a0831['on'](_0x3f9f29[_0x977579(0x190)],function(){const _0x5ac867=_0x977579;_0x2dc15d[_0x5ac867(0x20c)](),_0x2dc15d['on'](_0x1bf255[_0x5ac867(0x1c4)],function(){const _0x55ae93=_0x5ac867;_0x57fdbc[_0x55ae93(0x17f)]();});}),_0x5a0831[_0x977579(0x14f)](_0x2dc15d);});}}),_0x57fdbc['on'](_0x35723e[_0x49bf90(0x14b)],_0x124640=>{const _0xc14ade=_0x49bf90;_0x3f9f29[_0xc14ade(0x1b6)](_0x56d5f3,_0x124640);}),_0x57fdbc[_0x49bf90(0x1b9)](_0x35723e[_0x49bf90(0x1b5)],()=>{const _0x5a41e4=_0x49bf90,_0x58f0e2={'jfaNA':function(_0x20d95d,_0x23508f){const _0x2eb844=a84_0x636e;return _0x35723e[_0x2eb844(0x1cf)](_0x20d95d,_0x23508f);},'MCBRo':_0x35723e['pBXqO'],'MJHiu':function(_0x44662f,_0x465342){const _0xf51c00=a84_0x636e;return _0x35723e[_0xf51c00(0x1e1)](_0x44662f,_0x465342);},'fFdAu':function(_0x169065,_0x2161f4){const _0x12c7b7=a84_0x636e;return _0x35723e[_0x12c7b7(0x1e1)](_0x169065,_0x2161f4);},'jFUzu':function(_0x4bc721,_0x35d2a3){return _0x35723e['PPsTQ'](_0x4bc721,_0x35d2a3);},'fGRvB':function(_0x41866e,_0x210f09){const _0x50934f=a84_0x636e;return _0x35723e[_0x50934f(0x1e1)](_0x41866e,_0x210f09);}};fs[_0x5a41e4(0x212)](_0x2577a1,_0x453e7a=>{const _0x410a7e=_0x5a41e4;_0x453e7a&&logger[_0x410a7e(0x189)](_0x410a7e(0x17b)+_0x2577a1);});const _0x7e33cb=path[_0x5a41e4(0x169)](_0x14ae59,_0x45f43a+_0x5a41e4(0x218)+process['pid']),_0x45aa34=path[_0x5a41e4(0x169)](_0x14ae59,_0x45f43a);fs[_0x5a41e4(0x196)](_0x7e33cb,_0x35723e[_0x5a41e4(0x1ae)],function(_0x19345b){const _0x5c9c2e=_0x5a41e4;if(_0x19345b){_0x57fdbc[_0x5c9c2e(0x1e9)](),fs['unlink'](_0x7e33cb,()=>{}),_0x58f0e2[_0x5c9c2e(0x149)](_0x56d5f3,_0x19345b);return;}fs[_0x5c9c2e(0x1f2)](_0x7e33cb,_0x45aa34,function(_0x3e154d){const _0x343cac=_0x5c9c2e;if(_0x3e154d){if(_0x58f0e2['jfaNA'](_0x3e154d['code'],_0x58f0e2['MCBRo'])){_0x57fdbc[_0x343cac(0x1e9)](),fs['unlink'](_0x7e33cb,()=>{}),_0x58f0e2[_0x343cac(0x1e4)](_0x56d5f3,_0x3e154d);return;}logger[_0x343cac(0x189)](_0x343cac(0x1c9)+_0x3e154d[_0x343cac(0x199)]);try{fs['copyFileSync'](_0x7e33cb,_0x45aa34);}catch(_0x1f1256){_0x57fdbc[_0x343cac(0x1e9)](),fs[_0x343cac(0x212)](_0x7e33cb,()=>{}),_0x58f0e2[_0x343cac(0x152)](_0x56d5f3,_0x1f1256);return;}fs[_0x343cac(0x212)](_0x7e33cb,_0x48599c=>{const _0x403291=_0x343cac;_0x48599c&&logger[_0x403291(0x189)](_0x403291(0x180)+_0x48599c[_0x403291(0x199)]);});}_0x57fdbc[_0x343cac(0x1e9)](),_0x58f0e2[_0x343cac(0x1b8)](_0x54b5f1,_0x45aa34);});});});});});}static['getTestFrameworkDetail'](){const _0x56147b=a84_0x20218f;if(process[_0x56147b(0x13e)][_0x56147b(0x1e2)])return JSON['parse'](process[_0x56147b(0x13e)][_0x56147b(0x1e2)]);return this[_0x56147b(0x174)];}static[a84_0x20218f(0x211)](){const _0x1e616b=a84_0x20218f;if(process[_0x1e616b(0x13e)][_0x1e616b(0x15e)])return JSON[_0x1e616b(0x1bd)](process['env'][_0x1e616b(0x15e)]);return this[_0x1e616b(0x1e0)];}static[a84_0x20218f(0x188)](_0x53c8dd,_0x108453){const _0x36ed13=a84_0x20218f,_0x406fc0={'yBplo':_0x36ed13(0x216),'qwCkd':function(_0x2ec15e,_0x3857f4){return _0x2ec15e(_0x3857f4);},'paoeY':function(_0x4666a2,_0x329283){return _0x4666a2||_0x329283;},'PUEaP':function(_0x384f16,_0x445c0e){return _0x384f16(_0x445c0e);}},_0x1d1f1c=_0x406fc0[_0x36ed13(0x168)]['split']('|');let _0x2f4fec=0x0;while(!![]){switch(_0x1d1f1c[_0x2f4fec++]){case'0':this[_0x36ed13(0x1e0)]={'name':_0x108453,'version':_0x406fc0[_0x36ed13(0x1b4)](getFrameworkVersion,_0x108453)};continue;case'1':process['env'][_0x36ed13(0x1e2)]=JSON[_0x36ed13(0x201)](this[_0x36ed13(0x174)]);continue;case'2':_0x406fc0['paoeY'](!_0x53c8dd,!_0x108453)&&logger[_0x36ed13(0x187)](_0x36ed13(0x1ac)+_0x53c8dd+_0x36ed13(0x1bf)+_0x108453);continue;case'3':this[_0x36ed13(0x174)]={'name':_0x53c8dd,'version':{[_0x53c8dd]:_0x406fc0[_0x36ed13(0x1c3)](getFrameworkVersion,_0x53c8dd)}};continue;case'4':process[_0x36ed13(0x13e)][_0x36ed13(0x15e)]=JSON[_0x36ed13(0x201)](this[_0x36ed13(0x1e0)]);continue;}break;}}static['getHookRegistryKey'](_0x310085,_0x45d1be){return _0x310085+':'+_0x45d1be;}static[a84_0x20218f(0x19e)](){return process['pid']+':'+threadId;}static[a84_0x20218f(0x160)](_0x47ffac){const _0x267a04=a84_0x20218f;if(_0x47ffac[_0x267a04(0x16f)]&&_0x47ffac[_0x267a04(0x16f)]['skipSessionName'])return!![];return![];}static[a84_0x20218f(0x146)](_0x48701e){const _0x5a7ffa=a84_0x20218f;if(_0x48701e[_0x5a7ffa(0x16f)]&&_0x48701e['testContextOptions']['skipSessionStatus'])return!![];return![];}static['matchHookRegex'](_0x1899f9){const _0x439398=a84_0x20218f,_0x49218d=new RegExp(TestFrameworkConstants[_0x439398(0x1a0)]);return _0x49218d[_0x439398(0x143)](_0x1899f9);}static['mergeObject'](_0x4550db,_0x369cec){const _0x21c5cd=a84_0x20218f,_0x1dbc4a={};_0x1dbc4a[_0x21c5cd(0x1ba)]=function(_0x47752e,_0x15f9ee){return _0x47752e!==_0x15f9ee;},_0x1dbc4a['gqKeq']=function(_0x39bc1d,_0x30bcca){return _0x39bc1d===_0x30bcca;},_0x1dbc4a[_0x21c5cd(0x1dd)]=_0x21c5cd(0x1f0);const _0x2fa73c=_0x1dbc4a;for(const [_0x1807a9,_0x9bcde4]of Object['entries'](_0x369cec)){if(_0x2fa73c[_0x21c5cd(0x1ba)](_0x9bcde4,null)&&_0x2fa73c['gqKeq'](typeof _0x9bcde4,_0x2fa73c[_0x21c5cd(0x1dd)])&&!Array['isArray'](_0x9bcde4))_0x4550db[_0x1807a9]=this[_0x21c5cd(0x1c0)](_0x4550db[_0x1807a9]||{},_0x9bcde4);else Array[_0x21c5cd(0x1aa)](_0x9bcde4)?_0x4550db[_0x1807a9]=(_0x4550db[_0x1807a9]||[])['concat'](_0x9bcde4):_0x4550db[_0x1807a9]=_0x9bcde4;}return _0x4550db;}}module[a84_0x20218f(0x20b)]=CLIUtils;function a84_0x27db(){const _0x43d55e=['Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','KcLWl','existsSync','isDevelopmentEnv','akyzk','Resolved\x20binary\x20path:\x20','Failed\x20to\x20delete\x20zip\x20file:\x20','DNStT','PEqgB','getExistingCliPath','readEntry','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','1019613lvZiAi','fileName','\x20already\x20exists','requestToUpdateCLI','SHELL_EXECUTE_ERROR','../utils/constants','debug','setFrameworkDetail','warn','arch','HUWcO','TGtcF','open','listen','response\x20','CoCpZ','getSdkVersion','Binary\x20is\x20busy:\x20','NWqyk','../utils/apiUtilityMethods.js','LYqGl','chmod','lSIvm','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','message','openSync','info','LmrQC','kMEVx','getCurrentInstanceName','XfKcW','HOOK_REGEX','rLduC','fuLCo','NlSkt','24ircYjL','isFile','cli_version','./state/testFrameworkState.js','SDK_CLI_CHECK_UPDATE','bGbCp','isArray','length','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','SDK_CLI_DOWNLOAD','MghFH','110004iaeAfI','./state/automationFrameworkState.js','isDirectory','.browserstack','2988328TZkyxn','qwCkd','UheAs','wAoUb','bwGYd','jFUzu','once','iuINe','bhVLK','../../helpers/utilities','parse','ZbDHB',',\x20automationFramework=','mergeObject','../../helpers/classLogger.js','cwd','PUEaP','LzxHU','HJvum','Folder\x20','checkAndUpdateCli','map','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','ZgGnQ','BROWSERSTACK_CLI_ENV','Current\x20CLI\x20Path\x20Found:\x20','../../helpers/helper','XHhaY','AuvXw','0755','closeSync','WPxTe','destroy','worker_threads','dYQrV','data','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','xYOPd','statSync','DZUCu','5piaLWf','tCZfI','YGJXn','url','automationFrameworkDetail','hBGwW','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','TVrQg','MJHiu','aPJtM','lYjgi','version','heWmN','close','includes','node','preserveStatusCodeOnError','EXDEV','startsWith','oBbNs','object','.sock','rename','WOkFA','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','getCliDir','XKjhh','fYBoQ','6675696ocNbJL','yauzl','util','ugulA','6652629CTmdfE','GET','reduce','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','Downloading\x20SDK\x20binary\x20from:\x20','stringify','AJeEl','downloadFileStream','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','cli','resume','mtime','../../helpers/performance/constants','JyAyA','MumiQ','exports','end','pid','\x20from\x20','error','ddvvC','getAutomationFrameworkDetail','unlink','bEAaP','Setting\x20required\x20permissions\x20to\x20','binary-','2|3|0|4|1','tJvPZ','.tmp.','basename','UUyEh','code','koRGT','tmpdir','Development\x20Cli\x20Path:\x20','statusCode','getCLIParamsForDevEnv','Folder\x20does\x20not\x20exist:\x20','../../../package.json','downloadLatestBinary','SDK_CLI_BIN_PATH','env','BROWSERSTACK_BINARY_URL','format','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','test','40vkfKfQ','path','shouldSkipSessionStatus','WIxZK','sdEUY','fGRvB','.zip','iaDko','createWriteStream','start','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','pipe','isBinaryBusy','DOWNLOAD_HTTP','fFdAu','664724qWbbhH','dPQAx','getSdkLanguage','BROWSERSTACK_FILES_DIR','sCvtX','NHXIx','gzlWV','PPsTQ','getWritableDir','runShellCommand','Tsfsj','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','shouldSkipSessionName','Resolving\x20with\x20stdout:\x20\x22','\x20version','28944930HbOxHB','../../helpers/performance/performance-tester.js','trim','openReadStream','../../helpers/test-observability/utils.js','yBplo','join','readdirSync','child_process','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','lxszc','BASBO','testContextOptions','OQLSX','Error\x20while\x20reading\x20CLI\x20path:\x20','LqSNi','get','testFrameworkDetail'];a84_0x27db=function(){return _0x43d55e;};return a84_0x27db();}
|
|
1
|
+
function a85_0x16a6(_0x6fc326,_0x28f093){const _0x48fe27=a85_0x48fe();return a85_0x16a6=function(_0x16a66f,_0x21f4dd){_0x16a66f=_0x16a66f-0xaf;let _0x1359d9=_0x48fe27[_0x16a66f];return _0x1359d9;},a85_0x16a6(_0x6fc326,_0x28f093);}const a85_0x3a807f=a85_0x16a6;function a85_0x48fe(){const _0xbd1724=['downloadLatestBinary','getAutomationFrameworkDetail','SDK_CLI_CHECK_UPDATE','sgFMp','XkpyG','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','statSync','tyiat','plyhS','qtHix','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','url','closeSync','basename','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','skipSessionName','join','platform','AjeJz','MuWHh','getCliDir','warn','SZgqy','./state/testFrameworkState.js','testFrameworkDetail','fileName','2lBLwEU','exports','Resolved\x20binary\x20path:\x20','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','error','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','DOWNLOAD_HTTP','SDK_CLI_DOWNLOAD','22253DpriiN','yauzl','CADYB','cznWw','BROWSERSTACK_CLI_ENV','env','statusCode','5126268pYrtec','fnjxa','getWritableDir','uhWCz','IblHs','cli_version','testContextOptions','getSdkLanguage','NerNq','CLI\x20version\x20found\x20despite\x20error:\x20\x22','MjkRK','GKliD','getCLIParamsForDevEnv','preserveStatusCodeOnError','ZDRUP','cwd','./state/automationFrameworkState.js','end','vfkhu','close','node','YbOpA','VFiPb','info','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','map','code','mtime','acAUK','concat','data','BROWSERSTACK_BINARY_URL','aMooV','smorH','timeout','Binary\x20is\x20busy:\x20','HleGg','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','getSdkVersion','yQeUD','HVdKG','275QjkLNx','lZUXo','mergeObject','../../helpers/helper','BcguZ','difTI','once','split','TfMnV','0755','./state/hookState.js','KMkvj','PrrIr','shouldSkipSessionStatus','SHELL_EXECUTE_ERROR','952461uRtDhn','DALJB','entries','hLpiB','tAZAw','./instances/testFrameworkInstance.js','object','Configuring\x20Cli\x20path.','util','dbebj','../../helpers/performance/performance-tester.js','openReadStream','OVIpP','runShellCommand','0|4|2|1|3','\x20already\x20exists','VVSVm','version','HTTP\x20','lazyEntries','vZkrf','includes','isBinaryBusy','Development\x20Cli\x20Path:\x20','existsSync','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','downloadFileStream','aQLrN','.zip','QEpEk','./framework/constants/testFrameworkConstants.js','unlink','format','Resolving\x20with\x20stdout:\x20\x22','nujjw','YadOL','setupCliPath','../../helpers/performance/constants','setFrameworkDetail','chmod','USvjn','wUxip','\x20version','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','Failed\x20to\x20delete\x20zip\x20file:\x20','CLIUtils','NXPQK','46088CFPFgV','tezrm','dvckX','1432AWjVZc','filter','Jcbvd','777740eCfDXp','.tmp.','open','vMIDY','getExistingCliPath','startsWith','SYmkX','pid','child_process','trim','UeGMd','path','jTZqI','RGSsp','Setting\x20required\x20permissions\x20to\x20','hvgHR','910lnVptX','test','worker_threads','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','binary-','../utils/apiUtilityMethods.js','../../helpers/test-observability/utils.js','getHookRegistryKey','checkAndUpdateCli','getCurrentInstanceName','entry','tOmhE','shouldSkipSessionName','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','stringify','length','../../helpers/utilities','181266DYrElT','homedir','unix:/tmp/sdk-platform-','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','tmpdir','debug','VaCQK','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','automationFrameworkDetail','xnLze','createWriteStream','Folder\x20','filePath','parse','cKzzZ','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','367949yoltmP','isArray','readdirSync','message','follow-redirects','readEntry','ZIAya','skipSessionStatus','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','../utils/constants','get','pipe','downloaded_file_','TQgJc','ZVisj',',\x20automationFramework=','\x20from\x20'];a85_0x48fe=function(){return _0xbd1724;};return a85_0x48fe();}(function(_0x43d40e,_0x49b22f){const _0x5e7259=a85_0x16a6,_0x372f98=_0x43d40e();while(!![]){try{const _0x5b59ad=parseInt(_0x5e7259(0x18a))/0x1*(-parseInt(_0x5e7259(0xd9))/0x2)+parseInt(_0x5e7259(0xea))/0x3+parseInt(_0x5e7259(0x158))/0x4+-parseInt(_0x5e7259(0x113))/0x5*(parseInt(_0x5e7259(0x17a))/0x6)+-parseInt(_0x5e7259(0x152))/0x7*(-parseInt(_0x5e7259(0x155))/0x8)+parseInt(_0x5e7259(0x122))/0x9+-parseInt(_0x5e7259(0x168))/0xa*(parseInt(_0x5e7259(0xe3))/0xb);if(_0x5b59ad===_0x49b22f)break;else _0x372f98['push'](_0x372f98['shift']());}catch(_0x2f8e96){_0x372f98['push'](_0x372f98['shift']());}}}(a85_0x48fe,0xedc55));const fs=require('fs'),os=require('os'),url=require('url'),path=require(a85_0x3a807f(0x163)),{exec}=require(a85_0x3a807f(0x160)),{https}=require(a85_0x3a807f(0xb2)),yauzl=require(a85_0x3a807f(0xe4)),util=require(a85_0x3a807f(0x12a)),{getFrameworkVersion}=require(a85_0x3a807f(0x16e)),{threadId}=require(a85_0x3a807f(0x16a)),PerformanceTester=require(a85_0x3a807f(0x12c)),{EVENTS:PerformanceEvents}=require(a85_0x3a807f(0x148)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x3a807f(0x179)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x3a807f(0x116)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x3a807f(0xb7)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a85_0x3a807f(0x127)),HookState=require(a85_0x3a807f(0x11d)),TestFrameworkState=require(a85_0x3a807f(0xd6)),AutomationFrameworkState=require(a85_0x3a807f(0xfa)),TestFrameworkConstants=require(a85_0x3a807f(0x141)),logger=createClassLogger(a85_0x3a807f(0x150)),{getBStackAPIUrl}=require(a85_0x3a807f(0x16d));class CLIUtils{[a85_0x3a807f(0x182)]={};[a85_0x3a807f(0xd7)]={};static['isDevelopmentEnv'](){const _0x4b0964=a85_0x3a807f,_0x1a5db2={};_0x1a5db2[_0x4b0964(0xf4)]=function(_0x1a9a19,_0x279dba){return _0x1a9a19===_0x279dba;},_0x1a5db2[_0x4b0964(0x180)]='development';const _0xd5c206=_0x1a5db2;return _0xd5c206[_0x4b0964(0xf4)](process[_0x4b0964(0xe8)][_0x4b0964(0xe7)],_0xd5c206[_0x4b0964(0x180)]);}static[a85_0x3a807f(0xf6)](){const _0x265266=a85_0x3a807f,_0xd25a00={};return _0xd25a00['id']=process[_0x265266(0xe8)][_0x265266(0xe7)],_0xd25a00['listen']=_0x265266(0x17c)+process[_0x265266(0xe8)]['BROWSERSTACK_CLI_ENV']+'.sock',_0xd25a00;}static['getSdkVersion'](){const _0x14f116=a85_0x3a807f,_0x4fdb2e={'lGXNQ':function(_0x3b650f,_0x31d608){return _0x3b650f(_0x31d608);},'difTI':'../../../package.json'};return _0x4fdb2e['lGXNQ'](require,_0x4fdb2e[_0x14f116(0x118)])[_0x14f116(0x133)];}static[a85_0x3a807f(0xf1)](){const _0x133fd7=a85_0x3a807f,_0x52975c={};_0x52975c[_0x133fd7(0x153)]=_0x133fd7(0xfe);const _0x33ae2b=_0x52975c;return _0x33ae2b['tezrm'];}static async[a85_0x3a807f(0x147)](_0x3b1069){const _0x44a946=a85_0x3a807f,_0x4aa9c1={'NtoAV':_0x44a946(0x129),'VVSVm':function(_0x36ab36,_0x442575){return _0x36ab36(_0x442575);},'gZGEM':function(_0x4f1b2b,_0x52996e){return _0x4f1b2b(_0x52996e);},'FxZcJ':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x44a946(0x17f)](_0x4aa9c1['NtoAV']);const _0x5960fb=process[_0x44a946(0xe8)]['SDK_CLI_BIN_PATH'];if(!_0x4aa9c1[_0x44a946(0x132)](isNullOrEmpty,_0x5960fb))return logger[_0x44a946(0x17f)](_0x44a946(0x139)+_0x5960fb),_0x5960fb;try{const _0x24b729=this[_0x44a946(0xd3)]();if(_0x4aa9c1['gZGEM'](isNullOrEmpty,_0x24b729))throw new Error(_0x4aa9c1['FxZcJ']);const _0x2d80a2=this[_0x44a946(0x15c)](_0x24b729),_0x52573b=await this[_0x44a946(0x170)](_0x2d80a2,_0x24b729,_0x3b1069);return logger['debug'](_0x44a946(0xdb)+_0x52573b),_0x52573b;}catch(_0x510459){logger['debug'](_0x44a946(0xb6)+util[_0x44a946(0x143)](_0x510459));}return null;}static async[a85_0x3a807f(0x170)](_0x1b28d4,_0x3f1123,_0x8b1d5){const _0x1c58de=a85_0x3a807f,_0x4b47c2={'QEpEk':function(_0x490993){return _0x490993();},'XkpyG':function(_0x4b441f,_0x39b3fb){return _0x4b441f(_0x39b3fb);},'xnLze':function(_0x85262f,_0x4065,_0x5ee9ff){return _0x85262f(_0x4065,_0x5ee9ff);},'AjeJz':_0x1c58de(0x108),'smorH':_0x1c58de(0xca),'tAZAw':function(_0x4524e3,_0x4adcfc,_0x17387d){return _0x4524e3(_0x4adcfc,_0x17387d);}};PerformanceTester['start'](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);try{logger[_0x1c58de(0x101)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x1b28d4);const _0x5a7a65=_0x4b47c2[_0x1c58de(0x140)](getHostInfo),_0x36e120={'sdk_version':CLIUtils[_0x1c58de(0x110)](),'os':_0x5a7a65[_0x1c58de(0xd0)],'os_arch':_0x5a7a65['arch'],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x4b47c2[_0x1c58de(0xc3)](isNullOrEmpty,_0x1b28d4)&&(_0x36e120[_0x1c58de(0xef)]=await this['runShellCommand'](_0x1b28d4+_0x1c58de(0x14d)));const _0x1315ad=await this['requestToUpdateCLI'](_0x36e120,_0x8b1d5);process['env'][_0x1c58de(0x109)]&&(logger[_0x1c58de(0x101)](_0x1c58de(0xc4)+process[_0x1c58de(0xe8)][_0x1c58de(0x109)]),_0x1315ad[_0x1c58de(0x108)]['url']=process[_0x1c58de(0xe8)]['BROWSERSTACK_BINARY_URL']);if(_0x4b47c2[_0x1c58de(0x183)](nestedKeyValue,_0x1315ad,[_0x4b47c2[_0x1c58de(0xd1)],_0x4b47c2['smorH']])){logger['debug'](_0x1c58de(0x16b)+_0x36e120[_0x1c58de(0xef)]);if(!_0x4b47c2[_0x1c58de(0xc3)](isNullOrEmpty,_0x1b28d4)&&this[_0x1c58de(0x138)](_0x1b28d4))return logger[_0x1c58de(0xd4)](_0x1c58de(0x102)+_0x1b28d4),_0x1b28d4;return await this[_0x1c58de(0xbf)](_0x4b47c2[_0x1c58de(0x126)](nestedKeyValue,_0x1315ad,[_0x4b47c2[_0x1c58de(0xd1)],_0x4b47c2[_0x1c58de(0x10b)]]),_0x3f1123);}return _0x1b28d4;}finally{PerformanceTester['end'](PerformanceEvents[_0x1c58de(0xc1)]);}}static[a85_0x3a807f(0xd3)](){const _0x228c87=a85_0x3a807f,_0x2bf81e={'dvckX':function(_0x3d25c7,_0x4062d2){return _0x3d25c7(_0x4062d2);},'SYmkX':_0x228c87(0xe0),'rAoHA':'cli'},_0x584e31=this[_0x228c87(0xec)]();try{if(_0x2bf81e[_0x228c87(0x154)](isNullOrEmpty,_0x584e31))throw new Error(_0x2bf81e[_0x228c87(0x15e)]);const _0x1d676b=path['join'](_0x584e31,_0x2bf81e['rAoHA']);return!fs[_0x228c87(0x13a)](_0x1d676b)&&_0x2bf81e['dvckX'](createDir,_0x1d676b),_0x1d676b;}catch(_0x3c88e2){logger['debug'](_0x228c87(0x17d)+util[_0x228c87(0x143)](_0x3c88e2));}}static[a85_0x3a807f(0xec)](){const _0x26b338=a85_0x3a807f,_0x425a54={'EGtTG':'.browserstack','lZUXo':function(_0x589682,_0x5689c4){return _0x589682(_0x5689c4);},'NXPQK':function(_0xac55c,_0x20e0ea){return _0xac55c(_0x20e0ea);},'EGlrZ':function(_0x195738,_0x30a77e){return _0x195738(_0x30a77e);},'vfkhu':function(_0x428ef9,_0x3ec3c4){return _0x428ef9(_0x3ec3c4);}},_0xd453d8=[process['env']['BROWSERSTACK_FILES_DIR'],path['join'](os[_0x26b338(0x17b)](),_0x425a54['EGtTG']),path[_0x26b338(0xcf)](os[_0x26b338(0x17e)](),_0x425a54['EGtTG'])];for(const _0x4e3507 of _0xd453d8){if(_0x425a54[_0x26b338(0x114)](isNullOrEmpty,_0x4e3507))continue;try{if(fs['existsSync'](_0x4e3507)){logger[_0x26b338(0x17f)](_0x26b338(0x185)+_0x4e3507+_0x26b338(0x131));if(!_0x425a54[_0x26b338(0x114)](isModifiable,_0x4e3507)){logger[_0x26b338(0x17f)](_0x26b338(0x166)+_0x4e3507);const _0x1278f5=_0x425a54[_0x26b338(0x151)](setReadWriteExecuteAccess,_0x4e3507);if(!_0x425a54['NXPQK'](isTrue,_0x1278f5)){logger['warn']('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x4e3507);continue;}}}else{logger[_0x26b338(0x17f)]('Folder\x20does\x20not\x20exist:\x20'+_0x4e3507),_0x425a54['EGlrZ'](createDir,_0x4e3507),logger[_0x26b338(0x17f)](_0x26b338(0x166)+_0x4e3507);const _0x464dcc=_0x425a54[_0x26b338(0xfc)](setReadWriteExecuteAccess,_0x4e3507);!_0x425a54['EGlrZ'](isTrue,_0x464dcc)&&logger[_0x26b338(0xd4)](_0x26b338(0x13c)+_0x4e3507);}return _0x4e3507;}catch(_0x5547ba){logger[_0x26b338(0xdd)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x26b338(0x143)](_0x5547ba));}}return null;}static[a85_0x3a807f(0x15c)](_0xd0b380){const _0xf9552b=a85_0x3a807f,_0x5109c7={};_0x5109c7[_0xf9552b(0xb4)]=function(_0x4cb7c2,_0x16ee4c){return _0x4cb7c2>_0x16ee4c;},_0x5109c7[_0xf9552b(0xe5)]=function(_0x44e577,_0x4cbd3e){return _0x44e577>_0x4cbd3e;};const _0x309e97=_0x5109c7;try{if(!fs[_0xf9552b(0x13a)](_0xd0b380)||!fs[_0xf9552b(0xc5)](_0xd0b380)['isDirectory']())return'';const _0x2083d2=fs[_0xf9552b(0xb0)](_0xd0b380)[_0xf9552b(0x103)](_0x5f1eda=>path[_0xf9552b(0xcf)](_0xd0b380,_0x5f1eda))[_0xf9552b(0x156)](_0x451122=>fs[_0xf9552b(0xc5)](_0x451122)['isFile']()&&path[_0xf9552b(0xcc)](_0x451122)[_0xf9552b(0x15d)](_0xf9552b(0x16c)));if(_0x309e97[_0xf9552b(0xe5)](_0x2083d2[_0xf9552b(0x178)],0x0)){const _0x524f0e=_0x2083d2[_0xf9552b(0x103)](_0x1a60fb=>({'filePath':_0x1a60fb,'mtime':fs[_0xf9552b(0xc5)](_0x1a60fb)[_0xf9552b(0x105)]}))['reduce']((_0x57b430,_0x35c9f9)=>{const _0x4394f7=_0xf9552b;if(!_0x57b430||!_0x57b430[_0x4394f7(0x105)])return _0x35c9f9;if(_0x309e97['ZIAya'](_0x35c9f9[_0x4394f7(0x105)],_0x57b430[_0x4394f7(0x105)]))return _0x35c9f9;return _0x57b430;},{});return _0x524f0e?_0x524f0e[_0xf9552b(0x186)]:'';}return'';}catch(_0x7ee797){return logger[_0xf9552b(0xdd)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0xf9552b(0x143)](_0x7ee797)),'';}}static ['requestToUpdateCLI']=async(_0x1a914e,_0x1f32af)=>{const _0x3c8320=a85_0x3a807f,_0x4afb47={'oCaXR':function(_0x396a3a,_0x398b74,_0x329527,_0x371eb2,_0x28d15e){return _0x396a3a(_0x398b74,_0x329527,_0x371eb2,_0x28d15e);},'VFzYS':'GET'},_0x18e08c={};_0x18e08c['qs']=_0x1a914e,_0x18e08c[_0x3c8320(0xf7)]=!![];const _0x1dca52=await _0x4afb47['oCaXR'](nodeRequest,_0x4afb47['VFzYS'],UPDATED_CLI_ENDPOINT,_0x18e08c,_0x1f32af);return logger['debug']('response\x20'+JSON[_0x3c8320(0x177)](_0x1dca52)),_0x1dca52;};static[a85_0x3a807f(0x138)](_0xed377c){const _0x55edb6=a85_0x3a807f;try{const _0x4d0ba7=fs['openSync'](_0xed377c,'r+');return fs[_0x55edb6(0xcb)](_0x4d0ba7),![];}catch(_0x3311ee){if(BINARY_BUSY_ERROR_CODES[_0x55edb6(0x137)](_0x3311ee[_0x55edb6(0x104)]))return logger[_0x55edb6(0x17f)](_0x55edb6(0x10d)+_0xed377c),!![];return logger['debug']('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x3311ee['message']),![];}}static[a85_0x3a807f(0x12f)](_0x190333,_0x388ca1=''){const _0x325230=a85_0x3a807f,_0x227bbb={'JPYtK':_0x325230(0x133),'ZVisj':function(_0x36b82d,_0x4b6385){return _0x36b82d(_0x4b6385);},'YbOpA':function(_0x4885b0,_0xb690e6){return _0x4885b0(_0xb690e6);},'wUxip':_0x325230(0x121),'dbebj':function(_0x27fca5,_0x7f6e68){return _0x27fca5(_0x7f6e68);},'RGSsp':function(_0x49a770,_0x2b43fa,_0x5cb54d,_0x3cfc19){return _0x49a770(_0x2b43fa,_0x5cb54d,_0x3cfc19);},'ytMdZ':_0x325230(0xdd)};return new Promise((_0x495bc0,_0x1b3e4c)=>{const _0x523c4f=_0x325230,_0x48886e={};_0x48886e[_0x523c4f(0xf9)]=_0x388ca1,_0x48886e[_0x523c4f(0x10c)]=0x1388;const _0x2ab08d=_0x227bbb[_0x523c4f(0x165)](exec,_0x190333,_0x48886e,(_0x2dde42,_0x512e55,_0x1218e7)=>{const _0xb53ace=_0x523c4f;if(_0x2dde42){if(_0x190333[_0xb53ace(0x137)](_0x227bbb['JPYtK'])&&(_0x512e55['trim']()||_0x1218e7[_0xb53ace(0x161)]())){const _0x4ae10d=_0x512e55['trim']()||_0x1218e7[_0xb53ace(0x161)]();logger[_0xb53ace(0x17f)](_0xb53ace(0xf3)+_0x4ae10d+'\x22'),_0x227bbb[_0xb53ace(0xbc)](_0x495bc0,_0x4ae10d);}else _0x227bbb[_0xb53ace(0xff)](_0x495bc0,_0x1218e7[_0xb53ace(0x161)]()||_0x227bbb['wUxip']);}else logger[_0xb53ace(0x17f)](_0xb53ace(0x144)+_0x512e55['trim']()+'\x22'),_0x227bbb[_0xb53ace(0x12b)](_0x495bc0,_0x512e55[_0xb53ace(0x161)]());});_0x2ab08d['on'](_0x227bbb['ytMdZ'],()=>{const _0x12e5b9=_0x523c4f;_0x227bbb[_0x12e5b9(0xff)](_0x495bc0,_0x227bbb[_0x12e5b9(0x14c)]);});});}static [a85_0x3a807f(0xbf)]=async(_0x59e436,_0x553eb8)=>{const _0x8c1f57=a85_0x3a807f,_0x1fb58c={'IblHs':function(_0x83c989,_0x2078ac){return _0x83c989(_0x2078ac);},'KMkvj':function(_0x87c161,_0x8e5660){return _0x87c161>=_0x8e5660;},'hvgHR':_0x8c1f57(0xe1),'tbDLB':_0x8c1f57(0x14e),'cKzzZ':'error','acAUK':_0x8c1f57(0x181),'yQeUD':function(_0x2c34ec,_0x778dd8){return _0x2c34ec(_0x778dd8);},'GKliD':_0x8c1f57(0xdf),'NerNq':function(_0x50053c,_0x2b4316){return _0x50053c(_0x2b4316);},'TQgJc':function(_0x3273ee,_0x15e76d){return _0x3273ee(_0x15e76d);},'HleGg':'Failed\x20to\x20download\x20SDK\x20binary:\x20%s'};PerformanceTester['start'](PerformanceEvents[_0x8c1f57(0xe2)]),logger[_0x8c1f57(0x17f)]('Downloading\x20SDK\x20binary\x20from:\x20'+_0x59e436);try{const _0xd6d85c=url[_0x8c1f57(0x187)](_0x59e436),_0x217b95=path[_0x8c1f57(0xcf)](_0x553eb8,_0x8c1f57(0xba)+process[_0x8c1f57(0x15f)]+_0x8c1f57(0x13f)),_0x33e6fc=fs[_0x8c1f57(0x184)](_0x217b95);return new Promise((_0x2abf87,_0x34853c)=>{const _0x1a58a5=_0x8c1f57,_0x1d48ee={'YadOL':_0x1fb58c[_0x1a58a5(0x106)],'DALJB':function(_0x562335,_0x39b7e2){const _0x3bac3c=_0x1a58a5;return _0x1fb58c[_0x3bac3c(0x111)](_0x562335,_0x39b7e2);},'TfMnV':_0x1fb58c[_0x1a58a5(0xf5)],'aMooV':function(_0x49cb13,_0x1e567b){const _0x4f7231=_0x1a58a5;return _0x1fb58c[_0x4f7231(0xf2)](_0x49cb13,_0x1e567b);},'plyhS':function(_0x5d7ab1,_0xbe15f0){const _0x2770ec=_0x1a58a5;return _0x1fb58c[_0x2770ec(0xbb)](_0x5d7ab1,_0xbe15f0);}};https[_0x1a58a5(0xb8)](_0xd6d85c,function(_0x4e5e36){const _0x3b860a=_0x1a58a5,_0xed8659={'PrrIr':function(_0x4f6eab,_0x331b50){const _0xad5a4d=a85_0x16a6;return _0x1fb58c[_0xad5a4d(0xee)](_0x4f6eab,_0x331b50);}},_0x47711c=null;if(_0x4e5e36['statusCode']&&_0x1fb58c[_0x3b860a(0x11e)](_0x4e5e36[_0x3b860a(0xe9)],0x190)){const _0x35d54e=new Error('SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20'+_0x4e5e36[_0x3b860a(0xe9)]+_0x3b860a(0xbe)+_0x59e436);_0x35d54e[_0x3b860a(0x104)]=_0x1fb58c[_0x3b860a(0x167)],_0x35d54e[_0x3b860a(0xe9)]=_0x4e5e36[_0x3b860a(0xe9)],logger['error'](util[_0x3b860a(0x143)](_0x1fb58c['tbDLB'],_0x4e5e36['statusCode'])),PerformanceTester[_0x3b860a(0xfb)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],_0x3b860a(0x134)+_0x4e5e36[_0x3b860a(0xe9)]),_0x4e5e36['resume'](),_0x33e6fc['destroy'](),fs[_0x3b860a(0x142)](_0x217b95,()=>{}),_0x1fb58c[_0x3b860a(0xee)](_0x34853c,_0x35d54e);return;}_0x4e5e36[_0x3b860a(0xb9)](_0x33e6fc),_0x4e5e36['on'](_0x1fb58c[_0x3b860a(0x188)],function(_0x4059df){const _0x305725=_0x3b860a;logger['error'](util[_0x305725(0x143)](_0x1d48ee[_0x305725(0x146)],_0x4059df)),PerformanceTester[_0x305725(0xfb)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x305725(0x143)](_0x4059df)),_0x1d48ee[_0x305725(0x123)](_0x34853c,_0x4059df);}),_0x33e6fc['on'](_0x1fb58c[_0x3b860a(0x188)],function(_0x63aa2a){const _0x11aa5d=_0x3b860a;logger['error'](util[_0x11aa5d(0x143)](_0x1d48ee[_0x11aa5d(0x11b)],_0x63aa2a)),PerformanceTester[_0x11aa5d(0xfb)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x11aa5d(0x143)](_0x63aa2a)),_0x1d48ee[_0x11aa5d(0x123)](_0x34853c,_0x63aa2a);}),CLIUtils[_0x3b860a(0x13d)](_0x33e6fc,_0x47711c,_0x217b95,_0x553eb8,_0x1a3f11=>{const _0x4b11a8=_0x3b860a;PerformanceTester[_0x4b11a8(0xfb)](PerformanceEvents[_0x4b11a8(0xe2)]),_0xed8659[_0x4b11a8(0x11f)](_0x2abf87,_0x1a3f11);},_0x1637fc=>{const _0x4b933c=_0x3b860a;PerformanceTester[_0x4b933c(0xfb)](PerformanceEvents[_0x4b933c(0xe2)],![],util[_0x4b933c(0x143)](_0x1637fc)),_0x1d48ee[_0x4b933c(0x10a)](_0x34853c,_0x1637fc);});})['on'](_0x1fb58c[_0x1a58a5(0x188)],function(_0x2f235d){const _0x86633c=_0x1a58a5;logger['error'](_0x86633c(0xcd)+util['format'](_0x2f235d)),PerformanceTester['end'](PerformanceEvents[_0x86633c(0xe2)],![],util[_0x86633c(0x143)](_0x2f235d)),_0x1d48ee[_0x86633c(0xc7)](_0x34853c,_0x2f235d);});});}catch(_0x336201){PerformanceTester[_0x8c1f57(0xfb)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x336201)),logger['error'](util[_0x8c1f57(0x143)](_0x1fb58c[_0x8c1f57(0x10e)],_0x336201));throw _0x336201;}};static['downloadFileStream'](_0x77b2c6,_0x52131e,_0x1d8377,_0x1ac871,_0x2c14f1,_0x2ad34b){const _0x33871b=a85_0x3a807f,_0xabe3f0={'BcguZ':'close','uhWCz':function(_0x4ba239,_0x3edb31){return _0x4ba239(_0x3edb31);},'DUyRc':_0x33871b(0xfb),'hjUlw':function(_0x24c578,_0x3c2374){return _0x24c578!==_0x3c2374;},'hobwJ':_0x33871b(0xdd),'XIegq':'EXDEV','UeGMd':_0x33871b(0x11c),'aQLrN':_0x33871b(0x172)};_0x77b2c6['on'](_0xabe3f0[_0x33871b(0x117)],function(){const _0x3abaf5=_0x33871b,_0x1a3a15={'HVdKG':_0xabe3f0[_0x3abaf5(0x117)],'sgFMp':function(_0x58b58a,_0x366189){const _0x15c12a=_0x3abaf5;return _0xabe3f0[_0x15c12a(0xed)](_0x58b58a,_0x366189);},'ZDRUP':_0xabe3f0['DUyRc'],'jTZqI':function(_0x4d91c0,_0x5e2b33){return _0xabe3f0['hjUlw'](_0x4d91c0,_0x5e2b33);},'tOmhE':function(_0xb8b481,_0x37c8b5){const _0x469157=_0x3abaf5;return _0xabe3f0[_0x469157(0xed)](_0xb8b481,_0x37c8b5);},'SZgqy':_0xabe3f0['hobwJ'],'LZFBR':_0xabe3f0['XIegq'],'fnjxa':_0xabe3f0[_0x3abaf5(0x162)],'TQsSu':function(_0x2e0a6b,_0xbedd73){return _0xabe3f0['uhWCz'](_0x2e0a6b,_0xbedd73);},'cznWw':function(_0x501ae9,_0x33e121){const _0x42b26d=_0x3abaf5;return _0xabe3f0[_0x42b26d(0xed)](_0x501ae9,_0x33e121);},'HvEwY':_0xabe3f0[_0x3abaf5(0x13e)]},_0x5558a4={};_0x5558a4[_0x3abaf5(0x135)]=!![],yauzl[_0x3abaf5(0x15a)](_0x1d8377,_0x5558a4,function(_0x4c2443,_0x39b0aa){const _0x145167=_0x3abaf5,_0x1103ab={'vZkrf':function(_0xdf4191,_0x27942f){return _0x1a3a15['TQsSu'](_0xdf4191,_0x27942f);},'qOeCf':function(_0x4d9fe5,_0x199180){const _0x360b9f=a85_0x16a6;return _0x1a3a15[_0x360b9f(0xc2)](_0x4d9fe5,_0x199180);}};if(_0x4c2443){_0x1a3a15[_0x145167(0xe6)](_0x2ad34b,_0x4c2443);return;}_0x39b0aa[_0x145167(0xb3)](),_0x39b0aa['on'](_0x1a3a15['HvEwY'],_0x304d45=>{const _0x33d713=_0x145167,_0x402eef={'nbRbl':_0x1a3a15[_0x33d713(0x112)],'MuWHh':function(_0x296bdd,_0x278d7d){return _0x1a3a15['sgFMp'](_0x296bdd,_0x278d7d);},'vMIDY':_0x1a3a15[_0x33d713(0xf8)]};if(/\/$/['test'](_0x304d45[_0x33d713(0xd8)])){_0x39b0aa[_0x33d713(0xb3)]();return;}!_0x52131e&&(_0x52131e=_0x304d45['fileName']);if(_0x1a3a15[_0x33d713(0x164)](_0x304d45['fileName'],_0x52131e))_0x39b0aa[_0x33d713(0xb3)]();else{const _0x2793b4=_0x304d45[_0x33d713(0xd8)],_0x181988=path[_0x33d713(0xcf)](_0x1ac871,_0x2793b4+_0x33d713(0x159)+process[_0x33d713(0x15f)]);let _0x1032f2;try{_0x1032f2=fs[_0x33d713(0x184)](_0x181988);}catch(_0x482c49){if(BINARY_BUSY_ERROR_CODES[_0x33d713(0x137)](_0x482c49[_0x33d713(0x104)])){const _0x40d35f=path[_0x33d713(0xcf)](_0x1ac871,_0x2793b4);if(fs[_0x33d713(0x13a)](_0x40d35f)){logger[_0x33d713(0xd4)](_0x33d713(0x176)+_0x2793b4),fs[_0x33d713(0x142)](_0x1d8377,_0x4cf7a9=>{const _0x1415b5=_0x33d713;_0x4cf7a9&&logger[_0x1415b5(0xd4)](_0x1415b5(0x14f)+_0x1d8377);}),_0x1a3a15['tOmhE'](_0x2c14f1,_0x40d35f);return;}logger['warn'](_0x33d713(0x10f)+_0x2793b4);}_0x1a3a15[_0x33d713(0x173)](_0x2ad34b,_0x482c49);return;}_0x1032f2['on'](_0x1a3a15[_0x33d713(0xd5)],_0x2a6ad9=>{const _0x425e13=_0x33d713;if(BINARY_BUSY_ERROR_CODES[_0x425e13(0x137)](_0x2a6ad9[_0x425e13(0x104)])){const _0x3db924=path[_0x425e13(0xcf)](_0x1ac871,_0x2793b4);_0x1032f2[_0x425e13(0xfd)](),fs[_0x425e13(0x13a)](_0x3db924)?(logger['warn']('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x2a6ad9[_0x425e13(0xb1)]),_0x39b0aa['close'](),fs['unlink'](_0x1d8377,_0x145861=>{const _0x3e90fd=_0x425e13;_0x145861&&logger[_0x3e90fd(0xd4)](_0x3e90fd(0x14f)+_0x1d8377);}),_0x1103ab[_0x425e13(0x136)](_0x2c14f1,_0x3db924)):(logger[_0x425e13(0xd4)](_0x425e13(0x189)+_0x2a6ad9[_0x425e13(0xb1)]),fs[_0x425e13(0x142)](_0x181988,()=>{}),_0x1103ab['vZkrf'](_0x2ad34b,_0x2a6ad9));}else fs[_0x425e13(0x142)](_0x181988,()=>{}),_0x1103ab[_0x425e13(0x136)](_0x2ad34b,_0x2a6ad9);}),_0x39b0aa[_0x33d713(0x12d)](_0x304d45,function(_0x87b728,_0x3534cc){const _0x3f2000=_0x33d713,_0x710439={};_0x710439[_0x3f2000(0xc6)]=_0x402eef['nbRbl'];const _0x5cb55d=_0x710439;if(_0x87b728){fs['unlink'](_0x181988,()=>{}),_0x402eef[_0x3f2000(0xd2)](_0x2ad34b,_0x87b728);return;}_0x3534cc['on'](_0x402eef[_0x3f2000(0x15b)],function(){const _0x24311c=_0x3f2000;_0x1032f2[_0x24311c(0xfb)](),_0x1032f2['on'](_0x5cb55d[_0x24311c(0xc6)],function(){_0x39b0aa['readEntry']();});}),_0x3534cc[_0x3f2000(0xb9)](_0x1032f2);});}}),_0x39b0aa['on'](_0x1a3a15[_0x145167(0xd5)],_0x2947e5=>{_0x1103ab['qOeCf'](_0x2ad34b,_0x2947e5);}),_0x39b0aa[_0x145167(0x119)](_0x1a3a15[_0x145167(0xf8)],()=>{const _0x1abdfe=_0x145167,_0x34e3be={'qtHix':function(_0x32dfdc,_0x22eeb8){const _0x127f4f=a85_0x16a6;return _0x1a3a15[_0x127f4f(0x164)](_0x32dfdc,_0x22eeb8);},'hLpiB':_0x1a3a15['LZFBR'],'nujjw':function(_0x5aaf7a,_0x432053){const _0x1efc6a=a85_0x16a6;return _0x1a3a15[_0x1efc6a(0x173)](_0x5aaf7a,_0x432053);}};fs['unlink'](_0x1d8377,_0x13cd8a=>{const _0x53b2f9=a85_0x16a6;_0x13cd8a&&logger[_0x53b2f9(0xd4)](_0x53b2f9(0x14f)+_0x1d8377);});const _0x1ebcbb=path[_0x1abdfe(0xcf)](_0x1ac871,_0x52131e+_0x1abdfe(0x159)+process[_0x1abdfe(0x15f)]),_0x3090bc=path['join'](_0x1ac871,_0x52131e);fs[_0x1abdfe(0x14a)](_0x1ebcbb,_0x1a3a15[_0x1abdfe(0xeb)],function(_0x7eca8){if(_0x7eca8){_0x39b0aa['close'](),fs['unlink'](_0x1ebcbb,()=>{}),_0x1103ab['qOeCf'](_0x2ad34b,_0x7eca8);return;}fs['rename'](_0x1ebcbb,_0x3090bc,function(_0x58f2d7){const _0x1d0571=a85_0x16a6;if(_0x58f2d7){if(_0x34e3be[_0x1d0571(0xc8)](_0x58f2d7[_0x1d0571(0x104)],_0x34e3be[_0x1d0571(0x125)])){_0x39b0aa[_0x1d0571(0xfd)](),fs[_0x1d0571(0x142)](_0x1ebcbb,()=>{}),_0x34e3be[_0x1d0571(0x145)](_0x2ad34b,_0x58f2d7);return;}logger['warn'](_0x1d0571(0xdc)+_0x58f2d7[_0x1d0571(0xb1)]);try{fs['copyFileSync'](_0x1ebcbb,_0x3090bc);}catch(_0x2b7a4c){_0x39b0aa['close'](),fs[_0x1d0571(0x142)](_0x1ebcbb,()=>{}),_0x34e3be[_0x1d0571(0x145)](_0x2ad34b,_0x2b7a4c);return;}fs['unlink'](_0x1ebcbb,_0x174018=>{const _0x1bd08c=_0x1d0571;_0x174018&&logger[_0x1bd08c(0xd4)](_0x1bd08c(0x13b)+_0x174018[_0x1bd08c(0xb1)]);});}_0x39b0aa[_0x1d0571(0xfd)](),_0x34e3be['nujjw'](_0x2c14f1,_0x3090bc);});});});});});}static['getTestFrameworkDetail'](){const _0x4efd6b=a85_0x3a807f;if(process[_0x4efd6b(0xe8)][_0x4efd6b(0x175)])return JSON[_0x4efd6b(0x187)](process[_0x4efd6b(0xe8)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this['testFrameworkDetail'];}static[a85_0x3a807f(0xc0)](){const _0x51774a=a85_0x3a807f;if(process[_0x51774a(0xe8)][_0x51774a(0xde)])return JSON['parse'](process[_0x51774a(0xe8)][_0x51774a(0xde)]);return this[_0x51774a(0x182)];}static[a85_0x3a807f(0x149)](_0xbc2b1,_0x27a60e){const _0x701b4e=a85_0x3a807f,_0xd16363={'SQCpk':_0x701b4e(0x130),'SiZyq':function(_0x5af8f7,_0x7bcd6b){return _0x5af8f7||_0x7bcd6b;},'OVIpP':function(_0x2a5308,_0x33b38f){return _0x2a5308(_0x33b38f);},'USvjn':function(_0x4f37fa,_0x306b6f){return _0x4f37fa(_0x306b6f);}},_0x3dcd91=_0xd16363['SQCpk'][_0x701b4e(0x11a)]('|');let _0x212417=0x0;while(!![]){switch(_0x3dcd91[_0x212417++]){case'0':_0xd16363['SiZyq'](!_0xbc2b1,!_0x27a60e)&&logger[_0x701b4e(0x17f)](_0x701b4e(0xc9)+_0xbc2b1+_0x701b4e(0xbd)+_0x27a60e);continue;case'1':process[_0x701b4e(0xe8)][_0x701b4e(0xde)]=JSON[_0x701b4e(0x177)](this[_0x701b4e(0x182)]);continue;case'2':this[_0x701b4e(0x182)]={'name':_0x27a60e,'version':_0xd16363[_0x701b4e(0x12e)](getFrameworkVersion,_0x27a60e)};continue;case'3':process[_0x701b4e(0xe8)][_0x701b4e(0x175)]=JSON['stringify'](this['testFrameworkDetail']);continue;case'4':this[_0x701b4e(0xd7)]={'name':_0xbc2b1,'version':{[_0xbc2b1]:_0xd16363[_0x701b4e(0x14b)](getFrameworkVersion,_0xbc2b1)}};continue;}break;}}static[a85_0x3a807f(0x16f)](_0x48288f,_0x25cdd4){return _0x48288f+':'+_0x25cdd4;}static[a85_0x3a807f(0x171)](){const _0x1938a1=a85_0x3a807f;return process[_0x1938a1(0x15f)]+':'+threadId;}static[a85_0x3a807f(0x174)](_0x47c41b){const _0x481ef5=a85_0x3a807f;if(_0x47c41b[_0x481ef5(0xf0)]&&_0x47c41b[_0x481ef5(0xf0)][_0x481ef5(0xce)])return!![];return![];}static[a85_0x3a807f(0x120)](_0x1a6fbb){const _0x50e363=a85_0x3a807f;if(_0x1a6fbb[_0x50e363(0xf0)]&&_0x1a6fbb['testContextOptions'][_0x50e363(0xb5)])return!![];return![];}static['matchHookRegex'](_0x3d3918){const _0x31c902=a85_0x3a807f,_0x17c2f5=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x17c2f5[_0x31c902(0x169)](_0x3d3918);}static[a85_0x3a807f(0x115)](_0x3c1f97,_0x39eeed){const _0x284823=a85_0x3a807f,_0x1e27ab={};_0x1e27ab[_0x284823(0x157)]=function(_0x4be786,_0x131f99){return _0x4be786!==_0x131f99;},_0x1e27ab[_0x284823(0x100)]=function(_0x579521,_0x3b11a8){return _0x579521===_0x3b11a8;},_0x1e27ab['LqIMA']=_0x284823(0x128);const _0x3e4c49=_0x1e27ab;for(const [_0x3ab2f4,_0x3a80dc]of Object[_0x284823(0x124)](_0x39eeed)){if(_0x3e4c49['Jcbvd'](_0x3a80dc,null)&&_0x3e4c49[_0x284823(0x100)](typeof _0x3a80dc,_0x3e4c49['LqIMA'])&&!Array['isArray'](_0x3a80dc))_0x3c1f97[_0x3ab2f4]=this['mergeObject'](_0x3c1f97[_0x3ab2f4]||{},_0x3a80dc);else Array[_0x284823(0xaf)](_0x3a80dc)?_0x3c1f97[_0x3ab2f4]=(_0x3c1f97[_0x3ab2f4]||[])[_0x284823(0x107)](_0x3a80dc):_0x3c1f97[_0x3ab2f4]=_0x3a80dc;}return _0x3c1f97;}}module[a85_0x3a807f(0xda)]=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a85_0x3cdf8b=a85_0x3a34;(function(_0x3dfc08,_0x42a797){const _0x5ac9ef=a85_0x3a34,_0x4be911=_0x3dfc08();while(!![]){try{const _0x2f655e=parseInt(_0x5ac9ef(0x20a))/0x1+-parseInt(_0x5ac9ef(0x1d3))/0x2*(parseInt(_0x5ac9ef(0x1c4))/0x3)+-parseInt(_0x5ac9ef(0x206))/0x4+-parseInt(_0x5ac9ef(0x1e7))/0x5*(parseInt(_0x5ac9ef(0x1bf))/0x6)+parseInt(_0x5ac9ef(0x1da))/0x7*(parseInt(_0x5ac9ef(0x1c5))/0x8)+parseInt(_0x5ac9ef(0x211))/0x9*(-parseInt(_0x5ac9ef(0x1f0))/0xa)+parseInt(_0x5ac9ef(0x226))/0xb;if(_0x2f655e===_0x42a797)break;else _0x4be911['push'](_0x4be911['shift']());}catch(_0x5b4d5d){_0x4be911['push'](_0x4be911['shift']());}}}(a85_0x19ee,0x95d31));const fs=require('fs'),os=require('os'),path=require('path'),helper=require(a85_0x3cdf8b(0x207)),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require(a85_0x3cdf8b(0x218)),TestInfo=require('./TestInfo'),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require(a85_0x3cdf8b(0x205)),logger=createClassLogger(a85_0x3cdf8b(0x208)),BUILD_TAG_FILE_PREFIX=a85_0x3cdf8b(0x1ad);function getBuildTagsRunId(){const _0x83c605=a85_0x3cdf8b,_0x42a2fb={};_0x42a2fb['HULpU']=function(_0xd44ed8,_0x11c47a){return _0xd44ed8===_0x11c47a;},_0x42a2fb[_0x83c605(0x1d4)]=_0x83c605(0x1f1);const _0x374982=_0x42a2fb,_0x3b05d7=process[_0x83c605(0x1b3)][_0x83c605(0x21e)];if(!_0x3b05d7||_0x374982['HULpU'](_0x3b05d7,_0x374982['GmJiC']))return null;return _0x3b05d7;}function getBuildTagsFilePath(_0x4edacb){const _0x5f42fb=a85_0x3cdf8b;return path[_0x5f42fb(0x20f)](os[_0x5f42fb(0x1f6)](),''+BUILD_TAG_FILE_PREFIX+_0x4edacb+'_'+process[_0x5f42fb(0x233)]+_0x5f42fb(0x1cb));}class CustomTagManager{static [a85_0x3cdf8b(0x1dd)]={};static [a85_0x3cdf8b(0x1df)]={};static[a85_0x3cdf8b(0x1c7)](_0x21e165,_0x28e406){const _0x2efb3d=a85_0x3cdf8b;return Array[_0x2efb3d(0x1d0)](new Set([..._0x21e165||[],..._0x28e406||[]]));}static[a85_0x3cdf8b(0x213)](_0x33abcb,_0x5d4f62,_0x436797){const _0x2c7f6e=a85_0x3cdf8b,_0x16ae07={};_0x16ae07[_0x2c7f6e(0x1c3)]='multi_dropdown';const _0xb79f0=_0x16ae07;if(!_0x33abcb[_0x5d4f62]){const _0x20db53={};_0x20db53[_0x2c7f6e(0x1bb)]=_0xb79f0[_0x2c7f6e(0x1c3)],_0x20db53['values']=[..._0x436797||[]],_0x33abcb[_0x5d4f62]=_0x20db53;}else!_0x33abcb[_0x5d4f62][_0x2c7f6e(0x1bb)]&&(_0x33abcb[_0x5d4f62][_0x2c7f6e(0x1bb)]=_0xb79f0[_0x2c7f6e(0x1c3)]),!Array[_0x2c7f6e(0x21c)](_0x33abcb[_0x5d4f62][_0x2c7f6e(0x219)])&&(_0x33abcb[_0x5d4f62][_0x2c7f6e(0x219)]=[]),_0x33abcb[_0x5d4f62]['values']=CustomTagManager[_0x2c7f6e(0x1c7)](_0x33abcb[_0x5d4f62][_0x2c7f6e(0x219)],_0x436797);return _0x33abcb;}static async[a85_0x3cdf8b(0x1d6)](_0x308d87,_0x380082,_0x4f5614=![]){const _0xe44053=a85_0x3cdf8b,_0x15274a={'PWmEB':function(_0x155e14,_0x6bda49){return _0x155e14!==_0x6bda49;},'CICqG':_0xe44053(0x1ec),'SQOOQ':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','qjSkT':_0xe44053(0x1d2),'uWjcQ':function(_0x2195a2,_0x3b2b71){return _0x2195a2===_0x3b2b71;},'ppiwS':_0xe44053(0x1f3),'DPXqQ':_0xe44053(0x1c2),'uzZfa':function(_0x59f68e,_0x2e9b06){return _0x59f68e(_0x2e9b06);},'lIMum':_0xe44053(0x20b),'DZKwt':function(_0x1d55f9){return _0x1d55f9();},'AeFnO':_0xe44053(0x237),'lyeQD':function(_0x3a3b06,_0x5dcfa1){return _0x3a3b06>_0x5dcfa1;},'MikWb':function(_0x5a7b23,_0x418dd5){return _0x5a7b23(_0x418dd5);},'ndwxi':_0xe44053(0x22d),'PnVKq':_0xe44053(0x1b1),'MkczN':_0xe44053(0x1fe),'epVoU':_0xe44053(0x1e3),'nFipv':_0xe44053(0x1ae),'prTbV':function(_0x149800,_0x3531f4){return _0x149800(_0x3531f4);},'hfWGE':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','FkEyd':function(_0x262976,_0x33fdc4){return _0x262976(_0x33fdc4);},'vmQXI':_0xe44053(0x1b7),'hlPnq':'./state/hookState','STBiu':_0xe44053(0x1be),'sCkyJ':function(_0x43f3ea,_0x16973f){return _0x43f3ea(_0x16973f);},'eZxiT':_0xe44053(0x1e0)};if(_0x15274a[_0xe44053(0x1c9)](typeof _0x308d87,_0x15274a[_0xe44053(0x1d9)])){logger[_0xe44053(0x22b)](_0x15274a['SQOOQ']);return;}if(_0x15274a[_0xe44053(0x1c9)](typeof _0x380082,_0x15274a['CICqG'])){logger[_0xe44053(0x22b)](_0x15274a[_0xe44053(0x1f7)]);return;}if(_0x15274a[_0xe44053(0x216)](_0x308d87[_0xe44053(0x1b6)](),'')){logger[_0xe44053(0x22b)](_0x15274a['ppiwS']);return;}if(_0x15274a[_0xe44053(0x216)](_0x380082[_0xe44053(0x1b6)](),'')){logger['debug'](_0x15274a[_0xe44053(0x217)]);return;}const _0x420dc5=helper[_0xe44053(0x1ff)](_0x380082);if(_0x4f5614){const _0x3255e1=_0x15274a[_0xe44053(0x223)](require,_0x15274a[_0xe44053(0x201)]),_0x781c1e=_0x3255e1[_0xe44053(0x1fc)](),_0x13e43e=_0x781c1e&&_0x781c1e[_0xe44053(0x1f2)][TestHubModule['MODULE_NAME']];if(_0x13e43e){const _0x1483e9=_0x13e43e?.[_0xe44053(0x230)]?.[_0xe44053(0x1b0)]()?.[_0xe44053(0x22f)];TestInfo['getTestUUID'](_0x1483e9);const _0x37afa3=TestInfo[_0xe44053(0x234)](_0x1483e9),_0x42fccd=_0x37afa3[TestFrameworkConstants[_0xe44053(0x1c8)]]||{};CustomTagManager[_0xe44053(0x213)](_0x42fccd,_0x308d87,_0x420dc5),_0x37afa3[TestFrameworkConstants[_0xe44053(0x1c8)]]=_0x42fccd,TestInfo[_0xe44053(0x214)](_0x1483e9,_0x37afa3);!this['buildLevelTags'][_0x1483e9]&&(this[_0xe44053(0x1dd)][_0x1483e9]={});this[_0xe44053(0x1dd)][_0x1483e9][_0x308d87]=CustomTagManager['mergeValues'](this[_0xe44053(0x1dd)][_0x1483e9][_0x308d87],_0x420dc5);try{const _0x321d42=_0x15274a[_0xe44053(0x1f8)](getBuildTagsRunId);if(_0x321d42){const _0x21428d={};for(const [_0x3656f6,_0x9f1100]of Object[_0xe44053(0x228)](this['buildLevelTags'][_0x1483e9]||{})){_0x21428d[_0x3656f6]={'field_type':_0x15274a[_0xe44053(0x232)],'values':Array[_0xe44053(0x21c)](_0x9f1100)?[..._0x9f1100]:[]};}_0x15274a[_0xe44053(0x224)](Object[_0xe44053(0x1f4)](_0x21428d)[_0xe44053(0x227)],0x0)&&await fs[_0xe44053(0x1d5)]['writeFile'](_0x15274a['MikWb'](getBuildTagsFilePath,_0x321d42),JSON[_0xe44053(0x1e4)](_0x21428d));}else logger[_0xe44053(0x22b)](_0x15274a[_0xe44053(0x1de)]);}catch(_0x4c4c58){logger['debug'](_0xe44053(0x21f)+(_0x4c4c58&&_0x4c4c58[_0xe44053(0x1eb)]?_0x4c4c58[_0xe44053(0x1eb)]:_0x4c4c58));}}}else{let _0x1a4477;const _0x2d1b6d=global[_0xe44053(0x231)];let _0x4b2462=![];if(_0x2d1b6d&&_0x2d1b6d['includes'](_0x15274a[_0xe44053(0x1d1)]))_0x4b2462=!![],_0x1a4477=_0x2d1b6d;else try{const _0x2b2e77=_0x15274a['MikWb'](require,_0x15274a[_0xe44053(0x1fa)]),_0x5b7b24=_0x15274a[_0xe44053(0x223)](require,_0x15274a[_0xe44053(0x201)]);if(_0x5b7b24['getInstance']()[_0xe44053(0x1f9)]()){const _0x272302=_0x2b2e77[_0xe44053(0x1b5)]();if(_0x15274a[_0xe44053(0x216)](_0x272302?.[_0xe44053(0x1ed)]?.['toLowerCase'](),_0x15274a['epVoU'])){const _0x3b42d7=AutomationFramework[_0xe44053(0x202)]();_0x1a4477=AutomationFramework[_0xe44053(0x1ba)](_0x3b42d7,PlaywrightDriverModule[_0xe44053(0x1b9)],''),_0x1a4477&&_0x1a4477[_0xe44053(0x21d)](_0x15274a['PnVKq'])&&(_0x4b2462=!![]);}}}catch(_0x430a10){logger[_0xe44053(0x22b)](_0xe44053(0x1d7)+_0x430a10);}if(_0x4b2462){if(!_0x1a4477)throw new Error(_0x15274a['nFipv']);const _0x3b8e69=_0x15274a[_0xe44053(0x1ce)](require,_0x15274a[_0xe44053(0x201)]),_0x125433=_0x3b8e69['getInstance']()['getTestFramework']();if(!_0x125433)throw new Error(_0x15274a['hfWGE']);const _0x35fb37=_0x15274a['FkEyd'](require,_0x15274a['vmQXI']),_0x577740=_0x15274a[_0xe44053(0x1cf)](require,_0x15274a['hlPnq']),_0x523fa9=_0x125433[_0xe44053(0x22c)](_0x35fb37[_0xe44053(0x1e8)],_0x577740[_0xe44053(0x1fd)]);if(!_0x523fa9)throw new Error(_0x15274a[_0xe44053(0x1d8)]);const _0x488462=_0x523fa9[_0xe44053(0x209)]()['get'](_0x1a4477)||{},_0x48abfc=_0x488462[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0xe44053(0x22b)](_0xe44053(0x22a)+_0x1a4477+_0xe44053(0x210)+_0x308d87+_0xe44053(0x221)+JSON[_0xe44053(0x1e4)](_0x420dc5)+_0xe44053(0x1bc)+JSON[_0xe44053(0x1e4)](_0x48abfc)),CustomTagManager[_0xe44053(0x213)](_0x48abfc,_0x308d87,_0x420dc5),logger[_0xe44053(0x22b)](_0xe44053(0x1bd)+_0x308d87+_0xe44053(0x229)+JSON[_0xe44053(0x1e4)](_0x48abfc[_0x308d87][_0xe44053(0x219)]));const _0x85978b={[TestFrameworkConstants[_0xe44053(0x1c8)]]:_0x48abfc},_0x3c5ce5={};_0x3c5ce5[_0x1a4477]=_0x85978b,_0x523fa9[_0xe44053(0x222)](_0x3c5ce5),logger[_0xe44053(0x22b)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x1a4477+_0xe44053(0x20e)+JSON[_0xe44053(0x1e4)](_0x48abfc)),!this['testLevelTags'][_0x1a4477]&&(this['testLevelTags'][_0x1a4477]={}),this[_0xe44053(0x1df)][_0x1a4477][_0x308d87]=CustomTagManager[_0xe44053(0x1c7)](this[_0xe44053(0x1df)][_0x1a4477][_0x308d87],_0x420dc5);}else{const _0x5bfbfe=global[_0xe44053(0x215)]?.[_0xe44053(0x20d)]?.[_0xe44053(0x203)];if(!_0x5bfbfe){const _0xe51d2a=AutomationFramework[_0xe44053(0x202)]();_0x1a4477=AutomationFramework[_0xe44053(0x1ba)](_0xe51d2a,PlaywrightDriverModule[_0xe44053(0x1b9)],'');if(!_0x1a4477)try{const _0x9b2c7f=_0x15274a[_0xe44053(0x1ef)](require,_0x15274a[_0xe44053(0x201)]),_0x44a221=_0x9b2c7f['getInstance'](),_0x393ad4=_0x44a221&&_0x44a221['getTestFramework']();_0x1a4477=_0x393ad4&&_0x15274a[_0xe44053(0x216)](typeof _0x393ad4[_0xe44053(0x1fb)],_0x15274a['eZxiT'])&&_0x393ad4[_0xe44053(0x1fb)]()||_0x1a4477;}catch(_0x1aa4c5){logger[_0xe44053(0x22b)](_0xe44053(0x22e)+(_0x1aa4c5&&_0x1aa4c5[_0xe44053(0x1eb)]));}}else _0x1a4477=TestInfo[_0xe44053(0x1c1)](_0x5bfbfe,_0x5bfbfe[_0xe44053(0x1ca)]);const _0x38402e=TestInfo[_0xe44053(0x234)](_0x1a4477),_0x3a279c=_0x38402e[TestFrameworkConstants[_0xe44053(0x1c8)]]||{};CustomTagManager[_0xe44053(0x213)](_0x3a279c,_0x308d87,_0x420dc5),_0x38402e[TestFrameworkConstants[_0xe44053(0x1c8)]]=_0x3a279c,TestInfo[_0xe44053(0x214)](_0x1a4477,_0x38402e),!this[_0xe44053(0x1df)][_0x1a4477]&&(this[_0xe44053(0x1df)][_0x1a4477]={}),this['testLevelTags'][_0x1a4477][_0x308d87]=CustomTagManager[_0xe44053(0x1c7)](this[_0xe44053(0x1df)][_0x1a4477][_0x308d87],_0x420dc5);}}}static[a85_0x3cdf8b(0x1e9)](){const _0x2e7d5e=a85_0x3cdf8b,_0x3ca4f8={...this[_0x2e7d5e(0x1dd)]};return _0x3ca4f8;}static[a85_0x3cdf8b(0x225)](){const _0x347f18=a85_0x3cdf8b,_0x48ba97={...this[_0x347f18(0x1df)]};return _0x48ba97;}static['clearTags'](){const _0x4c325f=a85_0x3cdf8b;this[_0x4c325f(0x1dd)]={},this[_0x4c325f(0x1df)]={};}static[a85_0x3cdf8b(0x1e2)](_0x1711db,_0x16295e){const _0x1633a9=a85_0x3cdf8b,_0xb707e5={};_0xb707e5[_0x1633a9(0x235)]=function(_0x50636c,_0x22245e){return _0x50636c||_0x22245e;};const _0x1b127a=_0xb707e5;if(!_0x1711db)return;!this[_0x1633a9(0x1dd)][_0x1711db]&&(this[_0x1633a9(0x1dd)][_0x1711db]={});for(const [_0x4d1502,_0x2ea77f]of Object[_0x1633a9(0x228)](_0x1b127a[_0x1633a9(0x235)](_0x16295e,{}))){if(!_0x2ea77f||!Array[_0x1633a9(0x21c)](_0x2ea77f[_0x1633a9(0x219)]))continue;this[_0x1633a9(0x1dd)][_0x1711db][_0x4d1502]=CustomTagManager[_0x1633a9(0x1c7)](this[_0x1633a9(0x1dd)][_0x1711db][_0x4d1502],_0x2ea77f['values']);}}static[a85_0x3cdf8b(0x1b2)](_0x599049,_0x55d206){const _0x1e1352=a85_0x3cdf8b,_0x4ed372={};_0x4ed372['vCedL']='CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate',_0x4ed372[_0x1e1352(0x1e1)]=function(_0x3876aa,_0x288d0f){return _0x3876aa*_0x288d0f;},_0x4ed372[_0x1e1352(0x1f5)]=function(_0x3a72c5,_0x8a2ae7){return _0x3a72c5*_0x8a2ae7;},_0x4ed372[_0x1e1352(0x21b)]=function(_0x140ab1,_0x34af0c){return _0x140ab1>_0x34af0c;},_0x4ed372[_0x1e1352(0x1e6)]=function(_0x47d705,_0x4ba056){return _0x47d705-_0x4ba056;},_0x4ed372[_0x1e1352(0x1e5)]='utf8';const _0x47b4af=_0x4ed372;if(!_0x599049)return logger[_0x1e1352(0x22b)](_0x47b4af['vCedL']),0x0;let _0x5b74cb;try{_0x5b74cb=os['tmpdir']();}catch(_0x14928e){return logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20'+_0x14928e),0x0;}let _0x234290;try{_0x234290=fs[_0x1e1352(0x1dc)](_0x5b74cb);}catch(_0x2debad){return logger[_0x1e1352(0x22b)](_0x1e1352(0x20c)+_0x2debad),0x0;}const _0x443e13=''+BUILD_TAG_FILE_PREFIX+_0x599049+'_',_0x270aa4=_0x234290[_0x1e1352(0x1b4)](_0x30fcd6=>_0x30fcd6[_0x1e1352(0x1db)](_0x443e13)&&_0x30fcd6['endsWith']('.json')),_0x556c57=_0x47b4af[_0x1e1352(0x1e1)](_0x47b4af[_0x1e1352(0x1e1)](_0x47b4af[_0x1e1352(0x1f5)](0x2,0x3c),0x3c),0x3e8);let _0x20f65c=0x0;for(const _0x51e3c9 of _0x270aa4){const _0x2b1f49=path[_0x1e1352(0x20f)](_0x5b74cb,_0x51e3c9);try{const _0x5eb6c6=fs[_0x1e1352(0x220)](_0x2b1f49);if(_0x47b4af[_0x1e1352(0x21b)](_0x47b4af['HsOWv'](Date[_0x1e1352(0x1c6)](),_0x5eb6c6[_0x1e1352(0x1ea)]),_0x556c57)){logger['debug'](_0x1e1352(0x200)+_0x556c57+_0x1e1352(0x1c0)+_0x51e3c9);try{fs[_0x1e1352(0x1cd)](_0x2b1f49);}catch(_0x2f1627){logger[_0x1e1352(0x22b)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20'+_0x51e3c9+':\x20'+(_0x2f1627&&_0x2f1627[_0x1e1352(0x1eb)]?_0x2f1627[_0x1e1352(0x1eb)]:_0x2f1627));}continue;}const _0x4e3397=fs[_0x1e1352(0x204)](_0x2b1f49,_0x47b4af[_0x1e1352(0x1e5)]),_0x1ab027=JSON[_0x1e1352(0x1b8)](_0x4e3397);this['mergeBuildLevelTags'](_0x55d206,_0x1ab027),_0x20f65c+=0x1;}catch(_0x1b526e){logger[_0x1e1352(0x22b)](_0x1e1352(0x1cc)+_0x51e3c9+':\x20'+(_0x1b526e&&_0x1b526e[_0x1e1352(0x1eb)]?_0x1b526e[_0x1e1352(0x1eb)]:_0x1b526e));}try{fs[_0x1e1352(0x1cd)](_0x2b1f49);}catch(_0x2d8ac5){logger[_0x1e1352(0x22b)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'+_0x51e3c9+':\x20'+(_0x2d8ac5&&_0x2d8ac5['message']?_0x2d8ac5[_0x1e1352(0x1eb)]:_0x2d8ac5));}}return _0x20f65c;}}function a85_0x19ee(){const _0x1e676c=['ndwxi','testLevelTags','function','QLOCB','mergeBuildLevelTags','jest','stringify','nQstI','HsOWv','10oDxrDN','TEST','getBuildLevelTags','mtimeMs','message','string','name','exports','sCkyJ','250210sTBJyG','null','modules','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','keys','mfbkg','tmpdir','qjSkT','DZKwt','isRunning','MkczN','getCurrentTestUUID','getInstance','POST','./cliUtils','parseCommaSeparatedValues','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','lIMum','getTrackedInstance','testInfo','readFileSync','../../helpers/classLogger','2600612wiLeeq','../../helpers/helper','CustomTagManager','getAllData','72248uUqnZn','./browserstackCLI','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','currentTest',',\x20finalTags=','join',',\x20key=','333JGFEqL','getBuildTagsFilePath','mergeIntoTags','setTestDetails','__workerDetails','uWjcQ','DPXqQ','./modules/playwrightDriverModule','values','BUILD_TAG_FILE_PREFIX','FeSOY','isArray','includes','BROWSERSTACK_TESTHUB_UUID','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','statSync',',\x20values=','addMultipleEntries','uzZfa','lyeQD','getTestLevelTags','24523389AvNLTv','length','entries','\x20->\x20values=','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','debug','resolveInstance','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','buildHashedId','testhubConfig','__jestCurrentTestIdentifier','AeFnO','pid','getTestDetails','ISJxe','getBuildTagsRunId','multi_dropdown','bstack_build_tags_','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','_testInternals','toObject',':jest-','aggregateBuildLevelTagsFromTmp','env','filter','getTestFrameworkDetail','trim','./state/testFrameworkState','parse','KEY_TEST_ID','getState','field_type',',\x20existingTags=','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','1271676RQUEcM','ms)\x20','getTestIdentifierFromTestInfo','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','ywYtJ','1305jXIBYx','2728008McneCW','now','mergeValues','KEY_CUSTOM_TAGS','PWmEB','retry','.json','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','unlinkSync','prTbV','MikWb','from','PnVKq','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','134qDjjeN','GmJiC','promises','setCustomTags','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','STBiu','CICqG','7mUrRVa','startsWith','readdirSync','buildLevelTags'];a85_0x19ee=function(){return _0x1e676c;};return a85_0x19ee();}function a85_0x3a34(_0x4ad045,_0x402c20){const _0x19ee9a=a85_0x19ee();return a85_0x3a34=function(_0x3a34ee,_0x5adbeb){_0x3a34ee=_0x3a34ee-0x1ad;let _0x253fff=_0x19ee9a[_0x3a34ee];return _0x253fff;},a85_0x3a34(_0x4ad045,_0x402c20);}const a85_0x19b1fb={};a85_0x19b1fb[a85_0x3cdf8b(0x236)]=getBuildTagsRunId,a85_0x19b1fb[a85_0x3cdf8b(0x212)]=getBuildTagsFilePath,a85_0x19b1fb[a85_0x3cdf8b(0x21a)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a85_0x3cdf8b(0x1af)]=a85_0x19b1fb,module[a85_0x3cdf8b(0x1ee)]=CustomTagManager;
|
|
1
|
+
'use strict';const a86_0x42adc5=a86_0x31be;(function(_0xc45380,_0x4faa02){const _0x3bf45a=a86_0x31be,_0x2fe0c3=_0xc45380();while(!![]){try{const _0x4f9501=parseInt(_0x3bf45a(0xb7))/0x1*(parseInt(_0x3bf45a(0xb1))/0x2)+parseInt(_0x3bf45a(0x98))/0x3+parseInt(_0x3bf45a(0xc4))/0x4+-parseInt(_0x3bf45a(0xda))/0x5+parseInt(_0x3bf45a(0x6b))/0x6*(parseInt(_0x3bf45a(0x7b))/0x7)+parseInt(_0x3bf45a(0xea))/0x8*(-parseInt(_0x3bf45a(0xe6))/0x9)+parseInt(_0x3bf45a(0x91))/0xa;if(_0x4f9501===_0x4faa02)break;else _0x2fe0c3['push'](_0x2fe0c3['shift']());}catch(_0x6ad680){_0x2fe0c3['push'](_0x2fe0c3['shift']());}}}(a86_0x4bb3,0x49002));const fs=require('fs'),os=require('os'),path=require(a86_0x42adc5(0xb2)),helper=require(a86_0x42adc5(0x97)),AutomationFramework=require(a86_0x42adc5(0x80)),TestFrameworkConstants=require(a86_0x42adc5(0x73)),PlaywrightDriverModule=require(a86_0x42adc5(0xdc)),TestInfo=require('./TestInfo'),TestHubModule=require(a86_0x42adc5(0xa5)),{createClassLogger}=require(a86_0x42adc5(0x9b)),logger=createClassLogger('CustomTagManager'),BUILD_TAG_FILE_PREFIX=a86_0x42adc5(0xc1);function a86_0x4bb3(){const _0x3d22b5=['getTestDetails','unlinkSync','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','mergeBuildLevelTags','getTestLevelTags','1494VzNBZa','KEY_TEST_ID','sWtbU','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','pid','fyDZv','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','./framework/constants/testFrameworkConstants','isArray','endsWith','multi_dropdown','POST','VfUwK','retry','BROWSERSTACK_TESTHUB_UUID','12460kKREXI','function',',\x20finalTags=','TEST','FGZtJ','./framework/automationFramework','./cliUtils','ms)\x20','getBuildTagsRunId','debug','jHblG','getBuildTagsFilePath','QLfdH','parse','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','getAllData','efXSh','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','FZTcK','pAgaf','isRunning','clearTags','12430tKMrkY','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','buildHashedId','name','GUiwA','MYucX','../../helpers/helper','761889yXqmZL','getTestFramework','readFileSync','../../helpers/classLogger',',\x20key=','addMultipleEntries','getInstance','setCustomTags','modules','now','buildLevelTags','getCurrentTestUUID','BUILD_TAG_FILE_PREFIX','./modules/testhubModule','nvDTc','promises','toLowerCase','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','getTestUUID','utf8','GYypu','ayxbR','getTestFrameworkDetail','xQfKK','tmpdir','10GoWCsu','path','keys','lYOjQ','statSync','join','41357HGPCAQ','null','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','exports','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','YViFL','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','trim','includes','resolveInstance','bstack_build_tags_','env','./browserstackCLI','57108DqWXYi','kxLLZ','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','mtimeMs','startsWith','QUOVP','setTestDetails','vTBtd','wBthr','./state/hookState',',\x20values=','qGjrY','field_type','CfpxU','KEY_CUSTOM_TAGS','__jestCurrentTestIdentifier','parseCommaSeparatedValues','stringify','currentTest','MODULE_NAME','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','mergeIntoTags','1629505ZskOFC','mergeValues','./modules/playwrightDriverModule','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','pDRay','length','values','SLrIL','jest','testLevelTags','from','testhubConfig','2439hKfKYV','message','getTestIdentifierFromTestInfo','entries','8696GEvemM','getTrackedInstance','getState','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','bhHTw','testInfo'];a86_0x4bb3=function(){return _0x3d22b5;};return a86_0x4bb3();}function a86_0x31be(_0x50e025,_0x5c012a){const _0x4bb35a=a86_0x4bb3();return a86_0x31be=function(_0x31be2d,_0x5a23e0){_0x31be2d=_0x31be2d-0x68;let _0x2f7f1a=_0x4bb35a[_0x31be2d];return _0x2f7f1a;},a86_0x31be(_0x50e025,_0x5c012a);}function getBuildTagsRunId(){const _0x243786=a86_0x42adc5,_0x2167a4={};_0x2167a4[_0x243786(0x85)]=function(_0x3952a8,_0x2ed99d){return _0x3952a8===_0x2ed99d;},_0x2167a4[_0x243786(0xe1)]=_0x243786(0xb8);const _0x1ae92d=_0x2167a4,_0x374de9=process[_0x243786(0xc2)][_0x243786(0x7a)];if(!_0x374de9||_0x1ae92d['jHblG'](_0x374de9,_0x1ae92d['SLrIL']))return null;return _0x374de9;}function getBuildTagsFilePath(_0x5ce2ad){const _0x12ce98=a86_0x42adc5;return path['join'](os[_0x12ce98(0xb0)](),''+BUILD_TAG_FILE_PREFIX+_0x5ce2ad+'_'+process[_0x12ce98(0x70)]+'.json');}class CustomTagManager{static ['buildLevelTags']={};static ['testLevelTags']={};static['mergeValues'](_0x5287e2,_0x4a86a3){const _0x8534e7=a86_0x42adc5;return Array[_0x8534e7(0xe4)](new Set([..._0x5287e2||[],..._0x4a86a3||[]]));}static[a86_0x42adc5(0xd9)](_0x26065b,_0x2f0e98,_0x270f1a){const _0x56c1cc=a86_0x42adc5,_0xcdb9e6={};_0xcdb9e6['GUiwA']=_0x56c1cc(0x76);const _0x50d37b=_0xcdb9e6;if(!_0x26065b[_0x2f0e98]){const _0x5e2e31={};_0x5e2e31[_0x56c1cc(0xd0)]=_0x50d37b['GUiwA'],_0x5e2e31[_0x56c1cc(0xe0)]=[..._0x270f1a||[]],_0x26065b[_0x2f0e98]=_0x5e2e31;}else!_0x26065b[_0x2f0e98]['field_type']&&(_0x26065b[_0x2f0e98][_0x56c1cc(0xd0)]=_0x50d37b[_0x56c1cc(0x95)]),!Array[_0x56c1cc(0x74)](_0x26065b[_0x2f0e98][_0x56c1cc(0xe0)])&&(_0x26065b[_0x2f0e98][_0x56c1cc(0xe0)]=[]),_0x26065b[_0x2f0e98][_0x56c1cc(0xe0)]=CustomTagManager[_0x56c1cc(0xdb)](_0x26065b[_0x2f0e98]['values'],_0x270f1a);return _0x26065b;}static async[a86_0x42adc5(0x9f)](_0x44489a,_0x121d82,_0x3014a9=![]){const _0x20af60=a86_0x42adc5,_0x2e576a={'afrqr':function(_0x3c9444,_0x338219){return _0x3c9444!==_0x338219;},'wBthr':'string','GYypu':_0x20af60(0x72),'QLfdH':_0x20af60(0x68),'NloNr':function(_0x471f27,_0x13b05e){return _0x471f27===_0x13b05e;},'dSSWR':_0x20af60(0xd8),'eyGkJ':function(_0xfd8752,_0x3e4252){return _0xfd8752===_0x3e4252;},'vhDlN':_0x20af60(0x6f),'MYucX':function(_0x340f8d,_0x392979){return _0x340f8d(_0x392979);},'pAgaf':_0x20af60(0xc3),'qGjrY':function(_0xd92303){return _0xd92303();},'CfpxU':_0x20af60(0x76),'sWtbU':function(_0x5ab665,_0x4add63){return _0x5ab665>_0x4add63;},'VfUwK':function(_0x4b2b06,_0x298455){return _0x4b2b06(_0x298455);},'SKPMa':_0x20af60(0xa9),'pDRay':':jest-','ayxbR':_0x20af60(0x81),'dJSuH':function(_0x5c2d15,_0x2e3c78){return _0x5c2d15===_0x2e3c78;},'GEvDP':_0x20af60(0xe2),'lYOjQ':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','xQfKK':function(_0x246766,_0x4e18a9){return _0x246766(_0x4e18a9);},'kxLLZ':_0x20af60(0xc6),'YViFL':'./state/testFrameworkState','sEiYJ':_0x20af60(0xcd),'otlhd':_0x20af60(0xb9),'bhHTw':function(_0x1efefc,_0x296545){return _0x1efefc(_0x296545);},'fyDZv':function(_0xb53f16,_0x5836fd){return _0xb53f16===_0x5836fd;},'nvDTc':_0x20af60(0x7c)};if(_0x2e576a['afrqr'](typeof _0x44489a,_0x2e576a['wBthr'])){logger[_0x20af60(0x84)](_0x2e576a[_0x20af60(0xac)]);return;}if(_0x2e576a['afrqr'](typeof _0x121d82,_0x2e576a[_0x20af60(0xcc)])){logger[_0x20af60(0x84)](_0x2e576a[_0x20af60(0x87)]);return;}if(_0x2e576a['NloNr'](_0x44489a[_0x20af60(0xbe)](),'')){logger[_0x20af60(0x84)](_0x2e576a['dSSWR']);return;}if(_0x2e576a['eyGkJ'](_0x121d82['trim'](),'')){logger['debug'](_0x2e576a['vhDlN']);return;}const _0x46783f=helper[_0x20af60(0xd4)](_0x121d82);if(_0x3014a9){const _0x125191=_0x2e576a[_0x20af60(0x96)](require,_0x2e576a[_0x20af60(0x8e)]),_0x141125=_0x125191[_0x20af60(0x9e)](),_0x4e18f3=_0x141125&&_0x141125[_0x20af60(0xa0)][TestHubModule[_0x20af60(0xd7)]];if(_0x4e18f3){const _0x4fed52=_0x4e18f3?.[_0x20af60(0xe5)]?.['toObject']()?.[_0x20af60(0x93)];TestInfo[_0x20af60(0xaa)](_0x4fed52);const _0x36ced8=TestInfo[_0x20af60(0xf0)](_0x4fed52),_0x233473=_0x36ced8[TestFrameworkConstants[_0x20af60(0xd2)]]||{};CustomTagManager[_0x20af60(0xd9)](_0x233473,_0x44489a,_0x46783f),_0x36ced8[TestFrameworkConstants[_0x20af60(0xd2)]]=_0x233473,TestInfo[_0x20af60(0xca)](_0x4fed52,_0x36ced8);!this[_0x20af60(0xa2)][_0x4fed52]&&(this[_0x20af60(0xa2)][_0x4fed52]={});this[_0x20af60(0xa2)][_0x4fed52][_0x44489a]=CustomTagManager[_0x20af60(0xdb)](this['buildLevelTags'][_0x4fed52][_0x44489a],_0x46783f);try{const _0x294763=_0x2e576a[_0x20af60(0xcf)](getBuildTagsRunId);if(_0x294763){const _0x579a7f={};for(const [_0xc782db,_0x4ca085]of Object[_0x20af60(0xe9)](this[_0x20af60(0xa2)][_0x4fed52]||{})){_0x579a7f[_0xc782db]={'field_type':_0x2e576a[_0x20af60(0xd1)],'values':Array[_0x20af60(0x74)](_0x4ca085)?[..._0x4ca085]:[]};}_0x2e576a[_0x20af60(0x6d)](Object[_0x20af60(0xb3)](_0x579a7f)[_0x20af60(0xdf)],0x0)&&await fs[_0x20af60(0xa7)]['writeFile'](_0x2e576a[_0x20af60(0x78)](getBuildTagsFilePath,_0x294763),JSON[_0x20af60(0xd5)](_0x579a7f));}else logger['debug'](_0x2e576a['SKPMa']);}catch(_0x1d5be3){logger['debug'](_0x20af60(0x92)+(_0x1d5be3&&_0x1d5be3[_0x20af60(0xe7)]?_0x1d5be3['message']:_0x1d5be3));}}}else{let _0x1ecc7a;const _0x275311=global[_0x20af60(0xd3)];let _0x3c34a8=![];if(_0x275311&&_0x275311[_0x20af60(0xbf)](_0x2e576a['pDRay']))_0x3c34a8=!![],_0x1ecc7a=_0x275311;else try{const _0x5aba3c=_0x2e576a['MYucX'](require,_0x2e576a[_0x20af60(0xad)]),_0x26b9cc=_0x2e576a[_0x20af60(0x96)](require,_0x2e576a[_0x20af60(0x8e)]);if(_0x26b9cc[_0x20af60(0x9e)]()[_0x20af60(0x8f)]()){const _0x49c89b=_0x5aba3c[_0x20af60(0xae)]();if(_0x2e576a['dJSuH'](_0x49c89b?.[_0x20af60(0x94)]?.[_0x20af60(0xa8)](),_0x2e576a['GEvDP'])){const _0x25776=AutomationFramework[_0x20af60(0xeb)]();_0x1ecc7a=AutomationFramework[_0x20af60(0xec)](_0x25776,PlaywrightDriverModule[_0x20af60(0x6c)],''),_0x1ecc7a&&_0x1ecc7a[_0x20af60(0xbf)](_0x2e576a[_0x20af60(0xde)])&&(_0x3c34a8=!![]);}}}catch(_0x3ee592){logger[_0x20af60(0x84)]('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x3ee592);}if(_0x3c34a8){if(!_0x1ecc7a)throw new Error(_0x2e576a[_0x20af60(0xb4)]);const _0x316184=_0x2e576a[_0x20af60(0xaf)](require,_0x2e576a['pAgaf']),_0x557780=_0x316184[_0x20af60(0x9e)]()[_0x20af60(0x99)]();if(!_0x557780)throw new Error(_0x2e576a[_0x20af60(0xc5)]);const _0x3c378c=_0x2e576a[_0x20af60(0xaf)](require,_0x2e576a[_0x20af60(0xbc)]),_0x47f281=_0x2e576a[_0x20af60(0x78)](require,_0x2e576a['sEiYJ']),_0x2166c9=_0x557780[_0x20af60(0xc0)](_0x3c378c[_0x20af60(0x7e)],_0x47f281[_0x20af60(0x77)]);if(!_0x2166c9)throw new Error(_0x2e576a['otlhd']);const _0x2cef85=_0x2166c9[_0x20af60(0x8a)]()['get'](_0x1ecc7a)||{},_0x57c39d=_0x2cef85[TestFrameworkConstants[_0x20af60(0xd2)]]||{};logger['debug'](_0x20af60(0x89)+_0x1ecc7a+_0x20af60(0x9c)+_0x44489a+_0x20af60(0xce)+JSON[_0x20af60(0xd5)](_0x46783f)+',\x20existingTags='+JSON['stringify'](_0x57c39d)),CustomTagManager[_0x20af60(0xd9)](_0x57c39d,_0x44489a,_0x46783f),logger['debug'](_0x20af60(0x8c)+_0x44489a+'\x20->\x20values='+JSON[_0x20af60(0xd5)](_0x57c39d[_0x44489a][_0x20af60(0xe0)]));const _0x406ab3={[TestFrameworkConstants[_0x20af60(0xd2)]]:_0x57c39d},_0x13739a={};_0x13739a[_0x1ecc7a]=_0x406ab3,_0x2166c9[_0x20af60(0x9d)](_0x13739a),logger[_0x20af60(0x84)](_0x20af60(0xdd)+_0x1ecc7a+_0x20af60(0x7d)+JSON[_0x20af60(0xd5)](_0x57c39d)),!this[_0x20af60(0xe3)][_0x1ecc7a]&&(this[_0x20af60(0xe3)][_0x1ecc7a]={}),this[_0x20af60(0xe3)][_0x1ecc7a][_0x44489a]=CustomTagManager[_0x20af60(0xdb)](this['testLevelTags'][_0x1ecc7a][_0x44489a],_0x46783f);}else{const _0x209e35=global['__workerDetails']?.[_0x20af60(0xd6)]?.[_0x20af60(0xef)];if(!_0x209e35){const _0x4f3d72=AutomationFramework['getTrackedInstance']();_0x1ecc7a=AutomationFramework[_0x20af60(0xec)](_0x4f3d72,PlaywrightDriverModule[_0x20af60(0x6c)],'');if(!_0x1ecc7a)try{const _0x56f17f=_0x2e576a[_0x20af60(0xee)](require,_0x2e576a[_0x20af60(0x8e)]),_0xdf81d5=_0x56f17f[_0x20af60(0x9e)](),_0x3cd7e0=_0xdf81d5&&_0xdf81d5[_0x20af60(0x99)]();_0x1ecc7a=_0x3cd7e0&&_0x2e576a[_0x20af60(0x71)](typeof _0x3cd7e0[_0x20af60(0xa3)],_0x2e576a[_0x20af60(0xa6)])&&_0x3cd7e0['getCurrentTestUUID']()||_0x1ecc7a;}catch(_0x354e2c){logger[_0x20af60(0x84)](_0x20af60(0xed)+(_0x354e2c&&_0x354e2c[_0x20af60(0xe7)]));}}else _0x1ecc7a=TestInfo[_0x20af60(0xe8)](_0x209e35,_0x209e35[_0x20af60(0x79)]);const _0x4d4d08=TestInfo[_0x20af60(0xf0)](_0x1ecc7a),_0x14cdfa=_0x4d4d08[TestFrameworkConstants[_0x20af60(0xd2)]]||{};CustomTagManager[_0x20af60(0xd9)](_0x14cdfa,_0x44489a,_0x46783f),_0x4d4d08[TestFrameworkConstants[_0x20af60(0xd2)]]=_0x14cdfa,TestInfo[_0x20af60(0xca)](_0x1ecc7a,_0x4d4d08),!this[_0x20af60(0xe3)][_0x1ecc7a]&&(this[_0x20af60(0xe3)][_0x1ecc7a]={}),this['testLevelTags'][_0x1ecc7a][_0x44489a]=CustomTagManager['mergeValues'](this[_0x20af60(0xe3)][_0x1ecc7a][_0x44489a],_0x46783f);}}}static['getBuildLevelTags'](){const _0x7188a0=a86_0x42adc5,_0x2f1561={...this[_0x7188a0(0xa2)]};return _0x2f1561;}static[a86_0x42adc5(0x6a)](){const _0x1086d8=a86_0x42adc5,_0x3f7e9c={...this[_0x1086d8(0xe3)]};return _0x3f7e9c;}static[a86_0x42adc5(0x90)](){const _0x5c3ec6=a86_0x42adc5;this['buildLevelTags']={},this[_0x5c3ec6(0xe3)]={};}static[a86_0x42adc5(0x69)](_0x39f423,_0xb2afe1){const _0x2bbdfb=a86_0x42adc5,_0x4b52a7={};_0x4b52a7[_0x2bbdfb(0xcb)]=function(_0x538244,_0x107ab0){return _0x538244||_0x107ab0;};const _0x17d7d1=_0x4b52a7;if(!_0x39f423)return;!this[_0x2bbdfb(0xa2)][_0x39f423]&&(this[_0x2bbdfb(0xa2)][_0x39f423]={});for(const [_0x5cd484,_0xb71075]of Object['entries'](_0x17d7d1[_0x2bbdfb(0xcb)](_0xb2afe1,{}))){if(!_0xb71075||!Array['isArray'](_0xb71075[_0x2bbdfb(0xe0)]))continue;this[_0x2bbdfb(0xa2)][_0x39f423][_0x5cd484]=CustomTagManager[_0x2bbdfb(0xdb)](this[_0x2bbdfb(0xa2)][_0x39f423][_0x5cd484],_0xb71075[_0x2bbdfb(0xe0)]);}}static['aggregateBuildLevelTagsFromTmp'](_0x3ad400,_0x229166){const _0x536631=a86_0x42adc5,_0x5f389a={};_0x5f389a[_0x536631(0x7f)]=_0x536631(0xbb),_0x5f389a['FZTcK']=function(_0x366ab6,_0xdf3577){return _0x366ab6*_0xdf3577;},_0x5f389a[_0x536631(0x8b)]=function(_0x5a7b9b,_0x86761c){return _0x5a7b9b>_0x86761c;},_0x5f389a[_0x536631(0xc9)]=function(_0x505620,_0x5bd700){return _0x505620-_0x5bd700;},_0x5f389a['hqvrt']=_0x536631(0xab);const _0x479d2b=_0x5f389a;if(!_0x3ad400)return logger[_0x536631(0x84)](_0x479d2b['FGZtJ']),0x0;let _0x337653;try{_0x337653=os[_0x536631(0xb0)]();}catch(_0x3def77){return logger[_0x536631(0x84)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20'+_0x3def77),0x0;}let _0x18a93c;try{_0x18a93c=fs['readdirSync'](_0x337653);}catch(_0x591e94){return logger[_0x536631(0x84)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20'+_0x591e94),0x0;}const _0x2a13d4=''+BUILD_TAG_FILE_PREFIX+_0x3ad400+'_',_0x1d5683=_0x18a93c['filter'](_0x5c1697=>_0x5c1697[_0x536631(0xc8)](_0x2a13d4)&&_0x5c1697[_0x536631(0x75)]('.json')),_0x33739b=_0x479d2b[_0x536631(0x8d)](_0x479d2b[_0x536631(0x8d)](_0x479d2b[_0x536631(0x8d)](0x2,0x3c),0x3c),0x3e8);let _0x265d4d=0x0;for(const _0x5b3bc8 of _0x1d5683){const _0x63e17f=path[_0x536631(0xb6)](_0x337653,_0x5b3bc8);try{const _0x229b8a=fs[_0x536631(0xb5)](_0x63e17f);if(_0x479d2b[_0x536631(0x8b)](_0x479d2b[_0x536631(0xc9)](Date[_0x536631(0xa1)](),_0x229b8a[_0x536631(0xc7)]),_0x33739b)){logger['debug'](_0x536631(0xbd)+_0x33739b+_0x536631(0x82)+_0x5b3bc8);try{fs[_0x536631(0xf1)](_0x63e17f);}catch(_0x305dc3){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20'+_0x5b3bc8+':\x20'+(_0x305dc3&&_0x305dc3[_0x536631(0xe7)]?_0x305dc3['message']:_0x305dc3));}continue;}const _0x24300f=fs[_0x536631(0x9a)](_0x63e17f,_0x479d2b['hqvrt']),_0x15ab0a=JSON[_0x536631(0x88)](_0x24300f);this['mergeBuildLevelTags'](_0x229166,_0x15ab0a),_0x265d4d+=0x1;}catch(_0x1593f1){logger[_0x536631(0x84)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x5b3bc8+':\x20'+(_0x1593f1&&_0x1593f1[_0x536631(0xe7)]?_0x1593f1[_0x536631(0xe7)]:_0x1593f1));}try{fs[_0x536631(0xf1)](_0x63e17f);}catch(_0x12012f){logger[_0x536631(0x84)](_0x536631(0x6e)+_0x5b3bc8+':\x20'+(_0x12012f&&_0x12012f[_0x536631(0xe7)]?_0x12012f[_0x536631(0xe7)]:_0x12012f));}}return _0x265d4d;}}const a86_0x32fc9b={};a86_0x32fc9b[a86_0x42adc5(0x83)]=getBuildTagsRunId,a86_0x32fc9b[a86_0x42adc5(0x86)]=getBuildTagsFilePath,a86_0x32fc9b[a86_0x42adc5(0xa4)]=BUILD_TAG_FILE_PREFIX,CustomTagManager['_testInternals']=a86_0x32fc9b,module[a86_0x42adc5(0xba)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a87_0x33ef(){const _0x183270=['124864ZNlKCx','push','262476UOxZGW','4522078rmAUlI','328741YdaDNw','6EHmkfk','807496AyDeaN','9tDHBAl','56795xPiUbB','40947gwdbwo','notifyObserver','QZXbr','observers','freeze','registerObserver','10xovsGy','getInstance','6nDBpUT'];a87_0x33ef=function(){return _0x183270;};return a87_0x33ef();}const a87_0x4c054b=a87_0x235c;(function(_0x28cc39,_0xca2eb0){const _0x125bd2=a87_0x235c,_0x33d2ba=_0x28cc39();while(!![]){try{const _0xdb354a=parseInt(_0x125bd2(0x1c1))/0x1+-parseInt(_0x125bd2(0x1b8))/0x2*(parseInt(_0x125bd2(0x1bd))/0x3)+parseInt(_0x125bd2(0x1ba))/0x4+parseInt(_0x125bd2(0x1c0))/0x5+-parseInt(_0x125bd2(0x1b7))/0x6*(parseInt(_0x125bd2(0x1bc))/0x7)+parseInt(_0x125bd2(0x1be))/0x8*(-parseInt(_0x125bd2(0x1bf))/0x9)+parseInt(_0x125bd2(0x1b5))/0xa*(parseInt(_0x125bd2(0x1bb))/0xb);if(_0xdb354a===_0xca2eb0)break;else _0x33d2ba['push'](_0x33d2ba['shift']());}catch(_0x273c4f){_0x33d2ba['push'](_0x33d2ba['shift']());}}}(a87_0x33ef,0x3e903));const {createClassLogger}=require('../../helpers/classLogger.js');function a87_0x235c(_0x26b6fe,_0x274377){const _0x33efcb=a87_0x33ef();return a87_0x235c=function(_0x235caf,_0x4e416a){_0x235caf=_0x235caf-0x1b2;let _0x6fd7e0=_0x33efcb[_0x235caf];return _0x6fd7e0;},a87_0x235c(_0x26b6fe,_0x274377);}class EventDispatcher{static #instance=null;constructor(){const _0x2c7a3d=a87_0x235c;this[_0x2c7a3d(0x1b2)]={};}static[a87_0x4c054b(0x1b6)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a87_0x4c054b(0x1b4)](_0x4bce89,_0xd870b){const _0x1947b6=a87_0x4c054b;!this[_0x1947b6(0x1b2)][_0x4bce89]&&(this[_0x1947b6(0x1b2)][_0x4bce89]=[]),this[_0x1947b6(0x1b2)][_0x4bce89][_0x1947b6(0x1b9)](_0xd870b);}async[a87_0x4c054b(0x1c2)](_0x2077f2,_0x53f363){const _0x6b1177=a87_0x4c054b,_0x289ede={'QZXbr':function(_0x47b040,_0x33eff2){return _0x47b040(_0x33eff2);}};if(this[_0x6b1177(0x1b2)][_0x2077f2]){for(const _0x1bfc65 of this[_0x6b1177(0x1b2)][_0x2077f2]){await _0x289ede[_0x6b1177(0x1c3)](_0x1bfc65,_0x53f363);}return;}}}const eventDispatcher=EventDispatcher[a87_0x4c054b(0x1b6)]();Object[a87_0x4c054b(0x1b3)](eventDispatcher),module['exports']=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x32ec5f=a88_0xc80b;(function(_0x5e7d2d,_0x23d45f){const _0x892c2c=a88_0xc80b,_0x3fc413=_0x5e7d2d();while(!![]){try{const _0x6b7029=parseInt(_0x892c2c(0xe0))/0x1+parseInt(_0x892c2c(0xed))/0x2+-parseInt(_0x892c2c(0xe6))/0x3+-parseInt(_0x892c2c(0xd9))/0x4*(-parseInt(_0x892c2c(0xdb))/0x5)+parseInt(_0x892c2c(0xc9))/0x6*(parseInt(_0x892c2c(0xc7))/0x7)+-parseInt(_0x892c2c(0xce))/0x8+parseInt(_0x892c2c(0xea))/0x9*(parseInt(_0x892c2c(0xe7))/0xa);if(_0x6b7029===_0x23d45f)break;else _0x3fc413['push'](_0x3fc413['shift']());}catch(_0x23abe5){_0x3fc413['push'](_0x3fc413['shift']());}}}(a88_0x41f8,0xe39a2));function a88_0xc80b(_0x25719b,_0x2b173e){const _0x41f8de=a88_0x41f8();return a88_0xc80b=function(_0xc80b2f,_0x2dbcc1){_0xc80b2f=_0xc80b2f-0xc5;let _0xa5af8f=_0x41f8de[_0xc80b2f];return _0xa5af8f;},a88_0xc80b(_0x25719b,_0x2b173e);}const {createClassLogger}=require(a88_0x32ec5f(0xe4)),util=require(a88_0x32ec5f(0xe9)),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a88_0x32ec5f(0xcc)),TrackedInstance=require(a88_0x32ec5f(0xe8)),logger=createClassLogger(a88_0x32ec5f(0xdd));class AutomationFramework{static [a88_0x32ec5f(0xd8)]=new Map();static ['KEY_AUTOMATION_SESSIONS']=a88_0x32ec5f(0xec);static [a88_0x32ec5f(0xda)]=a88_0x32ec5f(0xd3);constructor(_0x349220,_0x216e52){const _0x419a4f=a88_0x32ec5f;this[_0x419a4f(0xd6)]=_0x349220,this['automationFrameworkVersion']=_0x216e52;}['getAutomationFrameworkName'](){const _0x52fe33=a88_0x32ec5f;return this[_0x52fe33(0xd6)];}['getAutomationFrameworkVersion'](){const _0x1a2ad5=a88_0x32ec5f;return this[_0x1a2ad5(0xca)];}async['trackEvent'](_0xec9979,_0x183b66,_0xae0d9d={}){const _0x742e02=a88_0x32ec5f;logger[_0x742e02(0xd7)]('trackEvent:\x20automationFrameworkState='+_0xec9979+_0x742e02(0xd0)+_0x183b66);}async[a88_0x32ec5f(0xe5)](_0x173bab,_0x474211,_0x2e9371,_0x286899={}){const _0x197400=a88_0x32ec5f,_0x33d1f8=CLIUtils[_0x197400(0xdc)](_0x474211,_0x2e9371);_0x173bab&&_0x173bab[_0x197400(0xd4)](_0x474211),await eventDispatcher[_0x197400(0xc5)](_0x33d1f8,_0x286899);}static[a88_0x32ec5f(0xcd)](_0x2e0074,_0x5ec345,_0x440541){const _0xa596f1=a88_0x32ec5f;eventDispatcher['registerObserver'](CLIUtils[_0xa596f1(0xdc)](_0x2e0074,_0x5ec345),_0x440541);}static[a88_0x32ec5f(0xcb)](_0x540b36,_0x9e9cc3){const _0x3b7172=a88_0x32ec5f;AutomationFramework['instances'][_0x3b7172(0xc8)](_0x540b36[_0x3b7172(0xdf)](),_0x9e9cc3);}static[a88_0x32ec5f(0xe3)](){const _0x26d0ec=a88_0x32ec5f,_0x1a0bb9=TrackedInstance[_0x26d0ec(0xd5)](CLIUtils[_0x26d0ec(0xd1)]());return AutomationFramework[_0x26d0ec(0xd8)][_0x26d0ec(0xc6)](_0x1a0bb9[_0x26d0ec(0xdf)]());}static[a88_0x32ec5f(0xd4)](_0x6ea4da,_0x186d6d,_0x59c096){const _0x379f3b=a88_0x32ec5f;_0x6ea4da[_0x379f3b(0xcf)]()[_0x379f3b(0xc8)](_0x186d6d,_0x59c096);}static['getState'](_0x47b2ad,_0xb6c7db,_0x514de5=undefined){const _0x5531a3=a88_0x32ec5f,_0x27b736={};_0x27b736[_0x5531a3(0xd2)]=function(_0x395722,_0x56b61e){return _0x395722!==_0x56b61e;},_0x27b736[_0x5531a3(0xe2)]=_0x5531a3(0xe1),_0x27b736[_0x5531a3(0xde)]=function(_0x3ff355,_0x573cb6){return _0x3ff355===_0x573cb6;};const _0x472217=_0x27b736;if(!_0x47b2ad||_0x472217[_0x5531a3(0xd2)](typeof _0x47b2ad['getAllData'],_0x472217[_0x5531a3(0xe2)]))return _0x514de5;const _0x2a3271=_0x47b2ad[_0x5531a3(0xcf)]()['get'](_0xb6c7db);return _0x472217[_0x5531a3(0xde)](_0x2a3271,undefined)?_0x514de5:_0x2a3271;}}function a88_0x41f8(){const _0x528cfd=['dUHHB','non_browserstack_automation_sessions','setState','createContext','automationFrameworkName','debug','instances','16UeFKQx','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','62580QRYRne','getHookRegistryKey','AutomationFramework','FGcUs','getId','764205eYRBqS','function','MqdPE','getTrackedInstance','../../../helpers/classLogger.js','runHooks','5038248lUwgeS','19892050wAowXB','../instances/trackedInstance.js','util','9wZJwVa','exports','automation_sessions','5678tbCxwC','notifyObserver','get','7049SpckLt','set','6942EWEAds','automationFrameworkVersion','setTrackedInstance','../cliUtils.js','registerObserver','10877904hqZevc','getAllData','\x20hookState=','getCurrentInstanceName'];a88_0x41f8=function(){return _0x528cfd;};return a88_0x41f8();}module[a88_0x32ec5f(0xeb)]=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x3c77be=a89_0x47df;(function(_0x2094b4,_0x54a262){const _0x58847c=a89_0x47df,_0x5cc08a=_0x2094b4();while(!![]){try{const _0x603703=-parseInt(_0x58847c(0xcb))/0x1*(parseInt(_0x58847c(0xdf))/0x2)+-parseInt(_0x58847c(0xdc))/0x3+-parseInt(_0x58847c(0xd5))/0x4*(parseInt(_0x58847c(0xc9))/0x5)+-parseInt(_0x58847c(0xd3))/0x6*(parseInt(_0x58847c(0xdd))/0x7)+parseInt(_0x58847c(0xcf))/0x8*(-parseInt(_0x58847c(0xd7))/0x9)+parseInt(_0x58847c(0xd4))/0xa+-parseInt(_0x58847c(0xd0))/0xb*(-parseInt(_0x58847c(0xe2))/0xc);if(_0x603703===_0x54a262)break;else _0x5cc08a['push'](_0x5cc08a['shift']());}catch(_0x4041ab){_0x5cc08a['push'](_0x5cc08a['shift']());}}}(a89_0x3fd7,0x827f4));const a89_0x53338b={};function a89_0x3fd7(){const _0x4d9346=['exports','471176MCawOY','625977wgsvce','quit','is_browserstack_hub','181614soBqcJ','3658240aZnkvo','32FGjoTP','KEY_STARTED_AT','117ZpEzQJ','COMMAND_GET','COMMAND_SCREENSHOT','KEY_INPUT_CAPABILITIES','COMMAND_QUIT','2990775nobfrt','147dWkbYP','KEY_ENDED_AT','314hoasvV','started_at','input_capabilities','900VZyCix','w3cexecutescriptasync','BROWSERSTACK_PLATFORM_INDEX','COMMAND_W3C_EXECUTE_SCRIPT','get','COMMAND_NEW_SESSION','capabilities','KEY_PLATFORM_INDEX','KEY_CAPABILITIES','415365UIpeBI','screenshot','6602YAvMPl','KEY_IS_BROWSERSTACK_HUB','ended_at'];a89_0x3fd7=function(){return _0x4d9346;};return a89_0x3fd7();}function a89_0x47df(_0x3746d4,_0x407649){const _0x3fd70b=a89_0x3fd7();return a89_0x47df=function(_0x47df73,_0x5a7a64){_0x47df73=_0x47df73-0xc9;let _0x36f646=_0x3fd70b[_0x47df73];return _0x36f646;},a89_0x47df(_0x3746d4,_0x407649);}a89_0x53338b['ENV_BROWSERSTACK_PLATFORM_INDEX']=a89_0x3c77be(0xe4),a89_0x53338b['KEY_HUB_URL']='hub_url',a89_0x53338b['KEY_FRAMEWORK_SESSION_ID']='framework_session_id',a89_0x53338b[a89_0x3c77be(0xda)]=a89_0x3c77be(0xe1),a89_0x53338b[a89_0x3c77be(0xea)]=a89_0x3c77be(0xe8),a89_0x53338b[a89_0x3c77be(0xcc)]=a89_0x3c77be(0xd2),a89_0x53338b[a89_0x3c77be(0xd6)]=a89_0x3c77be(0xe0),a89_0x53338b[a89_0x3c77be(0xde)]=a89_0x3c77be(0xcd),a89_0x53338b[a89_0x3c77be(0xe9)]='platform_index',a89_0x53338b[a89_0x3c77be(0xe7)]='newsession',a89_0x53338b[a89_0x3c77be(0xd8)]=a89_0x3c77be(0xe6),a89_0x53338b[a89_0x3c77be(0xd9)]=a89_0x3c77be(0xca),a89_0x53338b[a89_0x3c77be(0xe5)]='w3cexecutescript',a89_0x53338b['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']=a89_0x3c77be(0xe3),a89_0x53338b[a89_0x3c77be(0xdb)]=a89_0x3c77be(0xd1);const AutomationFrameworkConstants=a89_0x53338b;module[a89_0x3c77be(0xce)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90_0x5d811f=a90_0xdbc7;(function(_0x5291e5,_0x49f2e6){const _0x3f9dfd=a90_0xdbc7,_0xd852c6=_0x5291e5();while(!![]){try{const _0x36f363=-parseInt(_0x3f9dfd(0x13b))/0x1*(-parseInt(_0x3f9dfd(0x177))/0x2)+-parseInt(_0x3f9dfd(0x141))/0x3*(parseInt(_0x3f9dfd(0x18e))/0x4)+-parseInt(_0x3f9dfd(0x15e))/0x5+parseInt(_0x3f9dfd(0x168))/0x6+parseInt(_0x3f9dfd(0x15d))/0x7+-parseInt(_0x3f9dfd(0x136))/0x8*(parseInt(_0x3f9dfd(0x167))/0x9)+-parseInt(_0x3f9dfd(0x166))/0xa*(-parseInt(_0x3f9dfd(0x146))/0xb);if(_0x36f363===_0x49f2e6)break;else _0xd852c6['push'](_0xd852c6['shift']());}catch(_0x412ab9){_0xd852c6['push'](_0xd852c6['shift']());}}}(a90_0x4524,0xb7720));function a90_0x4524(){const _0x12998b=['KEY_TEST_META','8DrXwNn','platform_index','automate_session_reason','file_name','file_path','178019QLLjBF','KEY_TEST_FRAMEWORK_VERSION','KEY_FILE_NAME','TEST_SCREENSHOT','KEY_LOGS','test_meta','2731116PPInHL','KEY_HOOK_ID','KEY_TEST_RETRY_OF','KEY_HOOKS_STARTED','KEY_TEST_SCOPE','4197402CYgeOZ','test_failure_reason','test_started_at','hook_name','hook_failure_reason','KEY_TEST_LOCATION','MAX_NESTED_STEP_DEPTH','KEY_TEST_FAILURE_TYPE','hook_failure','TEST_LOG','KEY_TEST_STARTED_AT','test_failure_type','KEY_HOOK_FAILURE_TYPE','KEY_HOOKS_FINISHED','KEY_HOOK_FAILURE_REASON','KEY_TEST_FILE_PATH','KEY_TEST_RERUN_NAME','KEY_TEST_UUID','hook_id','test_hook_last_finished','test_file_path','test_name','KEY_SESSION_NAME','9003435kedpPD','5115685zqnwpt','test_framework_version','KIND_LOG','test_uuid','retry_of','KEY_TEST_RESULT','KEY_TEST_SCOPES','KEY_TEST_ENDED_AT','10QBLPuu','4656906vrDASU','2798604swIccq','KEY_TEST_ID','KEY_HOOK_FAILURE','test_session_name','test_ended_at','test_framework_name','hook_result','test_screenshots','KEY_FILE_SIZE','KEY_HOOK_LOGS','test_rerun_name','KEY_AUTOMATE_SESSION_NAME','KEY_HOOK_LAST_FINISHED','custom_metadata','KEY_TEST_TAGS','12ECEjhd','KEY_AUTOMATE_SESSION_REASON','KEY_HOOK_LAST_STARTED','test_failure','KIND_SCREENSHOT','test_result_at','MAX_TOP_LEVEL_STEPS','test_scopes','HOOK_REGEX','file_size','test_result','KEY_PLATFORM_INDEX','test_hook_last_started','KEY_EVENT_STARTED_AT','test_scope','file_level','hook_failure_type','exports','KEY_HOOK_NAME','DEFAULT_HOOK_RESULT','hook_logs','test_code','test_id','4fgBkZw','KEY_HOOK_RESULT','KEY_EVENT_ENDED_AT','test_hooks_finished','KEY_FILE_PATH','KEY_TEST_CODE'];a90_0x4524=function(){return _0x12998b;};return a90_0x4524();}const a90_0x2f19d0={};a90_0x2f19d0[a90_0x5d811f(0x157)]=a90_0x5d811f(0x161),a90_0x2f19d0[a90_0x5d811f(0x169)]=a90_0x5d811f(0x18d),a90_0x2f19d0['KEY_TEST_NAME']=a90_0x5d811f(0x15b),a90_0x2f19d0[a90_0x5d811f(0x155)]=a90_0x5d811f(0x15a),a90_0x2f19d0[a90_0x5d811f(0x176)]='test_tags',a90_0x2f19d0[a90_0x5d811f(0x163)]=a90_0x5d811f(0x181),a90_0x2f19d0['KEY_TEST_RESULT_AT']=a90_0x5d811f(0x17c),a90_0x2f19d0[a90_0x5d811f(0x150)]=a90_0x5d811f(0x148),a90_0x2f19d0[a90_0x5d811f(0x165)]=a90_0x5d811f(0x16c),a90_0x2f19d0[a90_0x5d811f(0x14b)]='test_location',a90_0x2f19d0['KEY_TEST_DURATION']='test_duration',a90_0x2f19d0[a90_0x5d811f(0x145)]=a90_0x5d811f(0x185),a90_0x2f19d0[a90_0x5d811f(0x164)]=a90_0x5d811f(0x17e),a90_0x2f19d0['KEY_TEST_FRAMEWORK_NAME']=a90_0x5d811f(0x16d),a90_0x2f19d0[a90_0x5d811f(0x13c)]=a90_0x5d811f(0x15f),a90_0x2f19d0[a90_0x5d811f(0x134)]=a90_0x5d811f(0x18c),a90_0x2f19d0[a90_0x5d811f(0x156)]=a90_0x5d811f(0x172),a90_0x2f19d0[a90_0x5d811f(0x143)]=a90_0x5d811f(0x162),a90_0x2f19d0[a90_0x5d811f(0x182)]=a90_0x5d811f(0x137),a90_0x2f19d0['KEY_TEST_FAILURE']=a90_0x5d811f(0x17a),a90_0x2f19d0[a90_0x5d811f(0x14d)]=a90_0x5d811f(0x151),a90_0x2f19d0['KEY_TEST_FAILURE_REASON']=a90_0x5d811f(0x147),a90_0x2f19d0['KEY_TEST_LOGS']='test_logs',a90_0x2f19d0[a90_0x5d811f(0x135)]=a90_0x5d811f(0x140),a90_0x2f19d0[a90_0x5d811f(0x15c)]=a90_0x5d811f(0x16b),a90_0x2f19d0[a90_0x5d811f(0x173)]='automate_session_name',a90_0x2f19d0['KEY_AUTOMATE_SESSION_STATUS']='automate_session_status',a90_0x2f19d0[a90_0x5d811f(0x178)]=a90_0x5d811f(0x138),a90_0x2f19d0[a90_0x5d811f(0x184)]='event_started_at',a90_0x2f19d0[a90_0x5d811f(0x190)]='event_ended_at',a90_0x2f19d0[a90_0x5d811f(0x142)]=a90_0x5d811f(0x158),a90_0x2f19d0[a90_0x5d811f(0x18f)]=a90_0x5d811f(0x16e),a90_0x2f19d0[a90_0x5d811f(0x152)]=a90_0x5d811f(0x187),a90_0x2f19d0[a90_0x5d811f(0x154)]=a90_0x5d811f(0x14a),a90_0x2f19d0[a90_0x5d811f(0x16a)]=a90_0x5d811f(0x14e),a90_0x2f19d0[a90_0x5d811f(0x171)]=a90_0x5d811f(0x18b),a90_0x2f19d0[a90_0x5d811f(0x189)]=a90_0x5d811f(0x149),a90_0x2f19d0['DEFAULT_TEST_RESULT']='pending',a90_0x2f19d0[a90_0x5d811f(0x18a)]='pending',a90_0x2f19d0[a90_0x5d811f(0x17b)]=a90_0x5d811f(0x13e),a90_0x2f19d0[a90_0x5d811f(0x160)]=a90_0x5d811f(0x14f),a90_0x2f19d0[a90_0x5d811f(0x17f)]='^(BEFORE_|AFTER_)',a90_0x2f19d0[a90_0x5d811f(0x144)]='test_hooks_started',a90_0x2f19d0[a90_0x5d811f(0x153)]=a90_0x5d811f(0x132),a90_0x2f19d0[a90_0x5d811f(0x179)]=a90_0x5d811f(0x183),a90_0x2f19d0[a90_0x5d811f(0x174)]=a90_0x5d811f(0x159),a90_0x2f19d0[a90_0x5d811f(0x13f)]='logs',a90_0x2f19d0['KEY_CUSTOM_TAGS']=a90_0x5d811f(0x175),a90_0x2f19d0['KEY_TEST_ATTACHMENTS']='test_attachments',a90_0x2f19d0[a90_0x5d811f(0x170)]=a90_0x5d811f(0x180),a90_0x2f19d0[a90_0x5d811f(0x13d)]=a90_0x5d811f(0x139),a90_0x2f19d0[a90_0x5d811f(0x133)]=a90_0x5d811f(0x13a),a90_0x2f19d0['KEY_FILE_LEVEL']=a90_0x5d811f(0x186),a90_0x2f19d0['KEY_TEST_SCREENSHOTS']=a90_0x5d811f(0x16f),a90_0x2f19d0[a90_0x5d811f(0x17d)]=0xa,a90_0x2f19d0[a90_0x5d811f(0x14c)]=0x2;function a90_0xdbc7(_0x1e5480,_0x3e85cc){const _0x452419=a90_0x4524();return a90_0xdbc7=function(_0xdbc773,_0x4b8780){_0xdbc773=_0xdbc773-0x132;let _0x6ac471=_0x452419[_0xdbc773];return _0x6ac471;},a90_0xdbc7(_0x1e5480,_0x3e85cc);}const TestFrameworkConstants=a90_0x2f19d0;module[a90_0x5d811f(0x188)]=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a90_0xdff3(){const _0x55542d=['createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','meta','QkPQl','KEY_HOOK_LAST_FINISHED','19zbYJhF','Error\x20in\x20createTestFrameworkEventPayload:\x20','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','util','UwiTF','getAllData','body','KEY_TEST_SCOPES','KEY_HOOK_ID','code','KEY_HOOK_FAILURE_REASON','browserstackPlatformIndex','createTestFrameworkEventPayload','rerun_name','hooks','failure_reason','11028115NNlwxB','\x20response=','KEY_HOOKS_FINISHED','../state/testFrameworkState.js','yARyH','IeudN','CucumberTestFramework','resolveInstance','platformIndex','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KHnUl','getInstance','testFrameworkState','./testFramework','getContext','POST','KEY_TEST_RESULT','base64','KEY_HOOKS_STARTED','\x20pending\x20hooks\x20for\x20testId:\x20','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','getTestDetails','finishedAt','XpwFQ','xbxZT','KEY_TEST_FRAMEWORK_VERSION','file_name','ceil','setTestDetails',',\x20error:\x20','KEY_TEST_FAILURE','inspect','KEY_CUSTOM_TAGS','length','sANvK','7059755sJgOJo','setTrackedInstance','getTestFrameworks','getCurrentTestState','JSMeo','KEY_TEST_LOCATION','result','PRE','Parsed\x20cucumber\x20test:\x20','KEY_TEST_RESULT_AT','hookState','NONE','name','cJuYL','\x20payload=','KEY_LOGS','hasPendingHooks','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','TEST','QqyAP','format','hook_type','trackCucumberInstance:\x20saved\x20instance\x20contextId=','trackHookEvent','getTestFrameworksVersions','testData','AoMJH',',\x20state:\x20','unRIE','getPendingHooks','exports','KEY_TEST_CODE','417131pDunYx','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_TEST_ENDED_AT','KEY_TEST_FAILURE_REASON','slice','getThreadId','error','addMultipleEntries','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','trackEvent:\x20unsupported\x20testFrameworkState=','KEY_TEST_FILE_PATH','test_run_id','KEY_TEST_META','Updated\x20cucumber\x20test\x20result:\x20','getCurrentInstanceName','debug','\x20with\x20result:\x20','test','KEY_TEST_RERUN_NAME','RtRSa','instance','getTestUUID','../../../helpers/helper.js','uuid','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_HOOK_FAILURE_TYPE','KEY_EVENT_ENDED_AT','trackEvent','erRdt','KEY_TEST_STARTED_AT','split','failure_data','KEY_HOOK_FAILURE','keys','toString','INIT_TEST','YMrzi','testFrameworkVersion','passed','getId','eUtQK','scopes','\x20for\x20test:\x20','addPendingHook','yYJwX','failure_type','wdXja','KEY_TEST_UUID','startedAt','endedAt','hookData','sendLogCreatedEvent','createTestFrameworkEventPayload\x20testId:\x20','KEY_TEST_SCOPE','iVvce','matchHookRegex','createContext','2026921DfRhSp','../cliUtils.js','Processing\x20','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','uwGBC','logCreatedEvent','2193768PueeYP','getTrackedInstance','finished_at','Stored\x20pending\x20hook\x20for\x20testId:\x20','sendLogCreatedEvent:\x20for\x20testId:\x20','wwRiP','../TestInfo.js','processPendingHooks','dZGnG','\x20testState:\x20','wXqyA','toISOString','GjOvG','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','\x20with\x20UUID:\x20','args','get','54jbUChE','removePendingHooks','failure','testUUID','executionContext','285297rDrhFL','KEY_HOOK_RESULT','LOG_REPORT','push','getCurrentHookState',',\x20state=','./constants/testFrameworkConstants.js','cVEEH','FIDfo','eventJson','KEY_HOOK_LOGS','customRerunParam','parseCucumberTest','kPLuO','getRef','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','../../../helpers/classLogger.js','\x20hookState:\x20','key','KEY_TEST_FRAMEWORK_NAME','24VbGCiJ','\x20&\x20hook\x20=\x20','140pgVjgy','pop','AtBlh',',\x20hookState:\x20','73826AuyynD','WdNIF','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','iyRiL','\x20batch\x20','KEY_TEST_NAME','from','MJmia','6KrLedQ','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','iuWTd','UnhandledError','DEFAULT_TEST_RESULT','testFrameworkName','\x20and\x20args\x20=\x20','failed','44xtZiQp','DEFAULT_HOOK_RESULT','KEY_TEST_ATTACHMENTS','trackCucumberInstance','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found'];a90_0xdff3=function(){return _0x55542d;};return a90_0xdff3();}const a90_0x10d4cb=a90_0x4784;(function(_0x5b87ea,_0x1ffc95){const _0x29152d=a90_0x4784,_0x2bcb7c=_0x5b87ea();while(!![]){try{const _0x36dc1b=-parseInt(_0x29152d(0x2a4))/0x1*(parseInt(_0x29152d(0x28b))/0x2)+-parseInt(_0x29152d(0x271))/0x3*(-parseInt(_0x29152d(0x29b))/0x4)+-parseInt(_0x29152d(0x1fc))/0x5*(-parseInt(_0x29152d(0x293))/0x6)+parseInt(_0x29152d(0x2b4))/0x7+parseInt(_0x29152d(0x25b))/0x8*(-parseInt(_0x29152d(0x26c))/0x9)+parseInt(_0x29152d(0x287))/0xa*(-parseInt(_0x29152d(0x21c))/0xb)+-parseInt(_0x29152d(0x285))/0xc*(parseInt(_0x29152d(0x255))/0xd);if(_0x36dc1b===_0x1ffc95)break;else _0x2bcb7c['push'](_0x2bcb7c['shift']());}catch(_0x12ec14){_0x2bcb7c['push'](_0x2bcb7c['shift']());}}}(a90_0xdff3,0xce134));function a90_0x4784(_0x3d73e3,_0x58e004){const _0xdff346=a90_0xdff3();return a90_0x4784=function(_0x478461,_0x40f48d){_0x478461=_0x478461-0x1dc;let _0x326b8a=_0xdff346[_0x478461];return _0x326b8a;},a90_0x4784(_0x3d73e3,_0x58e004);}const TestFramework=require(a90_0x10d4cb(0x1e6)),TestFrameworkState=require(a90_0x10d4cb(0x1dc)),HookState=require('../state/hookState.js'),{createClassLogger}=require(a90_0x10d4cb(0x281)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a90_0x10d4cb(0x256)),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a90_0x10d4cb(0x277)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a90_0x10d4cb(0x232)),logger=createClassLogger(a90_0x10d4cb(0x1df)),{v4:uuidv4}=require(a90_0x10d4cb(0x233)),util=require(a90_0x10d4cb(0x2a7)),TestInfo=require(a90_0x10d4cb(0x261)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x10d2be,_0x2d3972,_0x23ea72){super(_0x10d2be,_0x2d3972,_0x23ea72);}async['trackEvent'](_0x2ebbf2,_0x2708f3,_0x33bd67={}){const _0x402b19=a90_0x10d4cb,_0x3aa3bb={};_0x3aa3bb[_0x402b19(0x240)]=_0x402b19(0x29f),_0x3aa3bb['FIDfo']=function(_0x256962,_0x2c74bb){return _0x256962===_0x2c74bb;},_0x3aa3bb['erRdt']=function(_0x55664e,_0x29f6c1){return _0x55664e===_0x29f6c1;},_0x3aa3bb[_0x402b19(0x267)]=_0x402b19(0x280);const _0x2f10bd=_0x3aa3bb;await super[_0x402b19(0x237)](_0x2ebbf2,_0x2708f3,_0x33bd67);const _0x350eee=this['resolveInstance'](_0x2ebbf2,_0x2708f3,_0x33bd67);if(!_0x350eee){logger[_0x402b19(0x22b)](_0x2f10bd[_0x402b19(0x240)]);return;}try{let _0x239221,_0x2a3bb0;switch(_0x2ebbf2){case TestFrameworkState[_0x402b19(0x20e)]:_0x239221=_0x33bd67[_0x402b19(0x22d)],_0x2a3bb0=TestInfo[_0x402b19(0x231)](_0x239221['id']);if(_0x2f10bd[_0x402b19(0x279)](_0x2708f3,HookState[_0x402b19(0x203)])){logger[_0x402b19(0x22b)](_0x402b19(0x224)+_0x239221['id']);const _0x33c4af={};_0x33c4af['testUUID']=_0x2a3bb0,_0x33c4af[_0x402b19(0x215)]=_0x239221,_0x350eee[_0x402b19(0x223)](this[_0x402b19(0x27d)](_0x33c4af)),logger[_0x402b19(0x22b)](_0x402b19(0x20d)+_0x239221['id']),await this[_0x402b19(0x262)](_0x350eee,_0x239221['id']);}else{if(_0x2f10bd[_0x402b19(0x238)](_0x2708f3,HookState['POST'])){const _0x4e2d0b={};_0x4e2d0b['testUUID']=_0x2a3bb0,_0x4e2d0b[_0x402b19(0x215)]=_0x239221,_0x350eee[_0x402b19(0x223)](this['parseCucumberTestResult'](_0x4e2d0b)),await this[_0x402b19(0x262)](_0x350eee,_0x239221['id']);}}break;case TestFrameworkState[_0x402b19(0x273)]:_0x2f10bd[_0x402b19(0x279)](_0x2708f3,HookState[_0x402b19(0x1e8)])&&await this[_0x402b19(0x24f)](_0x350eee,_0x2ebbf2,_0x33bd67);break;default:if(CLIUtils[_0x402b19(0x253)](_0x2ebbf2[_0x402b19(0x23e)]()[_0x402b19(0x23a)]('.')[0x1])){const _0x1da5c7=await this[_0x402b19(0x213)](_0x350eee,_0x2ebbf2,_0x2708f3,_0x33bd67);_0x350eee[_0x402b19(0x223)](_0x1da5c7);}else logger[_0x402b19(0x22b)](_0x402b19(0x225)+_0x2ebbf2+'\x20&\x20hookState='+_0x2708f3);break;}}catch(_0x86c1e4){logger[_0x402b19(0x222)](util[_0x402b19(0x210)](_0x2f10bd[_0x402b19(0x267)],_0x2ebbf2,_0x2708f3,_0x33bd67['length'],_0x86c1e4));}_0x33bd67[_0x402b19(0x230)]=_0x350eee,await this['runHooks'](_0x350eee,_0x2ebbf2,_0x2708f3,_0x33bd67);}[a90_0x10d4cb(0x1e0)](_0x3f9c5e,_0x755ba2,_0x2bee7e={}){const _0xfab43b=a90_0x10d4cb,_0x493272={};_0x493272[_0xfab43b(0x24a)]=function(_0x1f08d1,_0xbddd1d){return _0x1f08d1===_0xbddd1d;};const _0x4c46cb=_0x493272;let _0x138186=null;return(_0x4c46cb[_0xfab43b(0x24a)](_0x3f9c5e,TestFrameworkState[_0xfab43b(0x23f)])||_0x4c46cb['wdXja'](_0x3f9c5e,TestFrameworkState[_0xfab43b(0x207)]))&&this['trackCucumberInstance'](_0x3f9c5e,_0x2bee7e),_0x138186=TestFramework[_0xfab43b(0x25c)](),_0x138186;}[a90_0x10d4cb(0x29e)](_0x3ec066,_0xc14eae){const _0x957b3e=a90_0x10d4cb,_0x419392=CLIUtils[_0x957b3e(0x22a)](),_0x57e7b6=TrackedInstance[_0x957b3e(0x254)](_0x419392);let _0x5ef7e8=null;logger[_0x957b3e(0x22b)](_0x957b3e(0x258)+_0x419392+_0x957b3e(0x276)+_0x3ec066),_0x5ef7e8=new TestFrameworkInstance(_0x57e7b6,this[_0x957b3e(0x1fe)](),this[_0x957b3e(0x214)](),_0x3ec066,HookState[_0x957b3e(0x207)]),TestFramework[_0x957b3e(0x1fd)](_0x57e7b6,_0x5ef7e8),logger[_0x957b3e(0x22b)](_0x957b3e(0x212)+_0x57e7b6[_0x957b3e(0x243)]()+'\x20target='+_0x419392);}['parseCucumberTest'](_0x513aa3){const _0x35ba77=a90_0x10d4cb,_0x1e9f69={};_0x1e9f69[_0x35ba77(0x289)]='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x4a4952=_0x1e9f69,{testUUID:_0x557a92,testData:_0x2713e3}=_0x513aa3;if(!_0x2713e3||!_0x2713e3[_0x35ba77(0x233)])return logger['debug'](_0x4a4952[_0x35ba77(0x289)]),{};const _0x3f4405=_0x557a92,_0x436345=_0x2713e3[_0x35ba77(0x233)],_0x4b7194=this[_0x35ba77(0x1fe)]()[0x0],_0x267883=this[_0x35ba77(0x214)](),_0xa7ef8b={[TestFrameworkConstants[_0x35ba77(0x284)]]:_0x4b7194,[TestFrameworkConstants[_0x35ba77(0x1f2)]]:_0x267883[_0x4b7194],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x35ba77(0x1eb)]]:{},[TestFrameworkConstants[_0x35ba77(0x24b)]]:_0x3f4405,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x35ba77(0x297)],[TestFrameworkConstants['KEY_AUTOMATE_SESSION_NAME']]:_0x2713e3['name']||'',[TestFrameworkConstants[_0x35ba77(0x226)]]:_0x2713e3[_0x35ba77(0x1f3)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x436345,[TestFrameworkConstants[_0x35ba77(0x290)]]:_0x2713e3[_0x35ba77(0x208)]||'',[TestFrameworkConstants[_0x35ba77(0x201)]]:_0x2713e3['location']||'',[TestFrameworkConstants[_0x35ba77(0x21b)]]:_0x2713e3[_0x35ba77(0x2aa)]?.[_0x35ba77(0x2ad)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x2713e3['tags']||[],[TestFrameworkConstants[_0x35ba77(0x239)]]:_0x2713e3[_0x35ba77(0x24c)]||new Date()['toISOString'](),[TestFrameworkConstants[_0x35ba77(0x251)]]:_0x2713e3[_0x35ba77(0x245)]?.[0x0]||'',[TestFrameworkConstants[_0x35ba77(0x2ab)]]:_0x2713e3[_0x35ba77(0x245)]||[],[TestFrameworkConstants[_0x35ba77(0x22e)]]:_0x2713e3[_0x35ba77(0x27c)]?.[_0x35ba77(0x2b1)]||_0x2713e3[_0x35ba77(0x208)]||'',[TestFrameworkConstants[_0x35ba77(0x1f9)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x2713e3[_0x35ba77(0x2a1)]||{}};TestInfo[_0x35ba77(0x1f5)](_0x436345,_0xa7ef8b),logger[_0x35ba77(0x22b)](_0x35ba77(0x204)+_0x2713e3['name']+_0x35ba77(0x269)+_0x3f4405);const _0x49e5d8={};return _0x49e5d8[_0x436345]=_0xa7ef8b,_0x49e5d8;}['parseCucumberTestResult'](_0x91c61f){const _0x489228=a90_0x10d4cb,_0x909ae6={'QkPQl':_0x489228(0x268),'rqRoE':'unknown','kPLuO':function(_0x24474f,_0x286462){return _0x24474f===_0x286462;},'RtRSa':'failed','iyRiL':'UnhandledError','sANvK':function(_0x45fc75,_0x13b53a,_0x41f318){return _0x45fc75(_0x13b53a,_0x41f318);},'iVvce':function(_0x10847e,_0x5e9e11){return _0x10847e>_0x5e9e11;}},{testUUID:_0x490581,testData:_0xe5e0b2}=_0x91c61f;if(!_0xe5e0b2||!_0xe5e0b2[_0x489228(0x233)])return logger[_0x489228(0x22b)](_0x909ae6[_0x489228(0x2a2)]),{};const _0x59985e=this[_0x489228(0x1e0)](TestFrameworkState[_0x489228(0x20e)],HookState[_0x489228(0x1e8)]),_0x1f227c=_0xe5e0b2[_0x489228(0x233)],_0x3c3302=TestInfo['getTestDetails'](_0x1f227c)||{},_0x32b694=_0x3c3302?_0x3c3302[TestFrameworkConstants[_0x489228(0x1f9)]]||{}:{},_0xf0fbe7={..._0x3c3302,[TestFrameworkConstants[_0x489228(0x1e9)]]:_0xe5e0b2['result']||_0x909ae6['rqRoE'],[TestFrameworkConstants[_0x489228(0x21e)]]:_0xe5e0b2[_0x489228(0x1ef)]||new Date()[_0x489228(0x266)](),[TestFrameworkConstants[_0x489228(0x205)]]:new Date()[_0x489228(0x266)](),[TestFrameworkConstants[_0x489228(0x1f9)]]:_0x32b694,[TestFrameworkConstants[_0x489228(0x20b)]]:[],[TestFrameworkConstants[_0x489228(0x228)]]:_0xe5e0b2[_0x489228(0x2a1)]||{}};_0x909ae6[_0x489228(0x27e)](_0xe5e0b2[_0x489228(0x202)],_0x909ae6[_0x489228(0x22f)])&&_0xe5e0b2[_0x489228(0x26e)]&&(_0xf0fbe7[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0xe5e0b2[_0x489228(0x249)]||_0x909ae6[_0x489228(0x28e)],_0xf0fbe7[TestFrameworkConstants[_0x489228(0x21f)]]=_0xe5e0b2[_0x489228(0x2b3)]||'',_0xf0fbe7[TestFrameworkConstants[_0x489228(0x1f7)]]=_0xe5e0b2['failure']);const _0x57d871=TestInfo['getTestDetails'](_0x1f227c)[TestFrameworkConstants[_0x489228(0x29d)]]||{},_0x1e3151=_0x909ae6[_0x489228(0x1fb)](getManualUploadLogs,_0x57d871,_0x59985e[_0x489228(0x2a9)]()[_0x489228(0x26b)](_0x1f227c)[TestFrameworkConstants[_0x489228(0x24b)]]);if(_0x909ae6['iVvce'](_0x1e3151[_0x489228(0x1fa)],0x0)){const _0x332c39=_0xf0fbe7[TestFrameworkConstants[_0x489228(0x20b)]]||[];_0xf0fbe7[TestFrameworkConstants[_0x489228(0x20b)]]=[..._0x332c39,..._0x1e3151];}_0xe5e0b2[_0x489228(0x2b2)]&&_0x909ae6[_0x489228(0x252)](_0xe5e0b2[_0x489228(0x2b2)][_0x489228(0x1fa)],0x0)&&(_0xf0fbe7[TestFrameworkConstants[_0x489228(0x2b6)]]=_0xe5e0b2[_0x489228(0x2b2)]);TestInfo[_0x489228(0x1f5)](_0x1f227c,_0xf0fbe7),logger['debug'](_0x489228(0x229)+_0xe5e0b2[_0x489228(0x208)]+_0x489228(0x22c)+_0xe5e0b2[_0x489228(0x202)]);const _0x4c4b3c={};return _0x4c4b3c[_0x1f227c]=_0xf0fbe7,_0x4c4b3c;}async[a90_0x10d4cb(0x213)](_0x570723,_0x279fa2,_0x2a5d5d,_0x35c301){const _0x21357d=a90_0x10d4cb,_0x45da0d={'yYJwX':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','JSMeo':function(_0x16fe4c){return _0x16fe4c();},'uwGBC':function(_0x453922,_0x515f2f){return _0x453922 in _0x515f2f;},'IeudN':function(_0xd549a5,_0x238cb0){return _0xd549a5===_0x238cb0;},'WdNIF':function(_0x4f2060,_0x4e8844){return _0x4f2060>_0x4e8844;},'wXqyA':_0x21357d(0x29a),'xbxZT':_0x21357d(0x296),'cVEEH':_0x21357d(0x242),'cJuYL':function(_0x493bd1,_0x3f5187){return _0x493bd1!==_0x3f5187;}},{hookData:_0xf47251}=_0x35c301;if(!_0xf47251)return logger['debug'](_0x45da0d[_0x21357d(0x248)]),{};const _0x373fd3=_0xf47251['uuid']||_0x45da0d[_0x21357d(0x200)](uuidv4),_0x337079=_0xf47251[_0x21357d(0x227)],_0x8a4003=_0x279fa2[_0x21357d(0x23e)]()[_0x21357d(0x23a)]('.')[0x1],_0x9755b3=TestInfo[_0x21357d(0x1ee)](_0x337079)[TestFrameworkConstants[_0x21357d(0x1f9)]]||{},_0x3056c8=_0x570723['getAllData']()[_0x21357d(0x26b)](_0x337079);if(!_0x3056c8)return logger[_0x21357d(0x22b)](_0x21357d(0x234)+_0x337079+',\x20storing\x20as\x20pending\x20hook'),this['storePendingHook'](_0x570723,_0x337079,_0x279fa2,_0x2a5d5d,_0x35c301),{};let _0x184e28=_0x3056c8[TestFrameworkConstants[_0x21357d(0x1eb)]];!_0x184e28&&(_0x184e28={});!_0x45da0d[_0x21357d(0x259)](_0x8a4003,_0x184e28)&&(_0x184e28[_0x8a4003]=[]);let _0x59ebdb=_0x3056c8[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x59ebdb&&(_0x59ebdb={});!_0x45da0d[_0x21357d(0x259)](_0x8a4003,_0x59ebdb)&&(_0x59ebdb[_0x8a4003]=[]);const _0x2236e2={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x184e28,[TestFrameworkConstants[_0x21357d(0x2b6)]]:_0x59ebdb},_0x330c7c={};_0x330c7c[_0x337079]=_0x2236e2;const _0x475d98=_0x330c7c;if(_0x45da0d[_0x21357d(0x1de)](_0x2a5d5d,HookState[_0x21357d(0x203)])){const _0x4405e0={[TestFrameworkConstants[_0x21357d(0x2ac)]]:_0x373fd3,[TestFrameworkConstants[_0x21357d(0x272)]]:TestFrameworkConstants[_0x21357d(0x29c)],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0xf47251['started_at'],[TestFrameworkConstants[_0x21357d(0x27b)]]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0xf47251[_0x21357d(0x211)],[TestFrameworkConstants[_0x21357d(0x1f9)]]:_0x9755b3};_0x4405e0[_0x21357d(0x283)]=_0x8a4003;const _0x29761f=_0x4405e0;_0x184e28[_0x8a4003][_0x21357d(0x274)](_0x29761f),_0x475d98[_0x337079][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x8a4003,logger[_0x21357d(0x22b)](_0x21357d(0x2a6)+_0x8a4003+_0x21357d(0x286)+_0x29761f+'\x20\x20and\x20args\x20=\x20'+_0x35c301);}else{if(_0x45da0d[_0x21357d(0x1de)](_0x2a5d5d,HookState[_0x21357d(0x1e8)])){const _0x5a303a=_0xf47251['result'],_0x3fac4b=_0x184e28[_0x8a4003]||[];logger['debug']('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x3fac4b+_0x21357d(0x299)+_0x35c301);if(_0x45da0d[_0x21357d(0x28c)](_0x3fac4b['length'],0x0)){const _0x1444cc=_0x3fac4b[_0x21357d(0x288)]();_0x45da0d[_0x21357d(0x1de)](_0xf47251['result'],_0x45da0d[_0x21357d(0x265)])&&_0xf47251[_0x21357d(0x23b)]?(_0x1444cc[TestFrameworkConstants[_0x21357d(0x235)]]=_0xf47251[_0x21357d(0x249)]||_0x45da0d[_0x21357d(0x1f1)],_0x1444cc[TestFrameworkConstants[_0x21357d(0x2ae)]]=_0xf47251['failure_reason']||'',_0x1444cc[TestFrameworkConstants[_0x21357d(0x23c)]]=_0xf47251[_0x21357d(0x23b)]):_0x1444cc[TestFrameworkConstants[_0x21357d(0x272)]]=_0x45da0d[_0x21357d(0x278)];_0x45da0d[_0x21357d(0x209)](_0x5a303a,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x1444cc[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x5a303a);_0x1444cc[TestFrameworkConstants[_0x21357d(0x236)]]=_0xf47251[_0x21357d(0x25d)]||new Date()[_0x21357d(0x266)](),_0x1444cc[TestFrameworkConstants[_0x21357d(0x1f9)]]=_0x9755b3;const _0x4095ae=_0x1444cc[TestFrameworkConstants[_0x21357d(0x2ac)]];!_0x59ebdb[_0x8a4003]&&(_0x59ebdb[_0x8a4003]=[]),_0x59ebdb[_0x8a4003][_0x21357d(0x274)](_0x1444cc),_0x475d98[_0x337079][TestFrameworkConstants[_0x21357d(0x2a3)]]=_0x8a4003;}}}return logger[_0x21357d(0x22b)](_0x21357d(0x21d)+_0xf47251['hook_type']+'\x20with\x20id\x20'+_0x373fd3+_0x21357d(0x246)+_0x337079),_0x475d98;}[a90_0x10d4cb(0x2b0)](_0x4c512d){const _0x2f466e=a90_0x10d4cb,_0x511bee={};_0x511bee[_0x2f466e(0x244)]=_0x2f466e(0x1ea);const _0x3b9578=_0x511bee;try{const _0x262dd6=_0x4c512d[_0x2f466e(0x22d)]?_0x4c512d['test']['id']:_0x4c512d[_0x2f466e(0x24e)][_0x2f466e(0x227)],_0x24cc41=_0x4c512d[_0x2f466e(0x230)],_0x1357d7=_0x24cc41[_0x2f466e(0x1e7)](),_0x5f368c=_0x24cc41[_0x2f466e(0x2a9)]()['get'](_0x262dd6);if(!_0x5f368c)return logger['debug'](_0x2f466e(0x294)+_0x262dd6),{};logger['debug'](_0x2f466e(0x250)+_0x262dd6);const {[TestFrameworkConstants[_0x2f466e(0x284)]]:_0x2b2672='',[TestFrameworkConstants[_0x2f466e(0x1f2)]]:_0x34a42c='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x16e343='',[TestFrameworkConstants[_0x2f466e(0x21e)]]:_0x5c2c7d=''}=_0x5f368c,_0x4bbb7a=_0x24cc41[_0x2f466e(0x1ff)]()['toString']()[_0x2f466e(0x23a)]('.')[0x1],_0x10ff14=_0x24cc41[_0x2f466e(0x275)]()[_0x2f466e(0x23e)]()[_0x2f466e(0x23a)]('.')[0x1],_0x41db43=global?.[_0x2f466e(0x2af)]??0x0,_0x5d3ea9=_0x24cc41[_0x2f466e(0x27f)](),_0x5b0282=Buffer[_0x2f466e(0x291)](JSON['stringify'](_0x5f368c))[_0x2f466e(0x23e)](_0x3b9578['eUtQK']),_0xceeee5={'hash':_0x1357d7[_0x2f466e(0x243)](),'threadId':_0x1357d7[_0x2f466e(0x221)]()[_0x2f466e(0x23e)](),'processId':_0x1357d7['getProcessId']()[_0x2f466e(0x23e)]()},_0x322010={};_0x322010[_0x2f466e(0x1e1)]=_0x41db43,_0x322010[_0x2f466e(0x298)]=_0x2b2672,_0x322010[_0x2f466e(0x241)]=_0x34a42c,_0x322010[_0x2f466e(0x1e5)]=_0x4bbb7a,_0x322010[_0x2f466e(0x206)]=_0x10ff14,_0x322010[_0x2f466e(0x24c)]=_0x16e343,_0x322010[_0x2f466e(0x24d)]=_0x5c2c7d,_0x322010[_0x2f466e(0x233)]=_0x5d3ea9,_0x322010[_0x2f466e(0x27a)]=_0x5b0282,_0x322010[_0x2f466e(0x270)]=_0xceeee5;const _0x42edd1=_0x322010;return logger[_0x2f466e(0x22b)](_0x2f466e(0x2a0)+_0x262dd6+_0x2f466e(0x264)+_0x4bbb7a+_0x2f466e(0x282)+_0x10ff14),_0x42edd1;}catch(_0x4dff10){return logger[_0x2f466e(0x222)](_0x2f466e(0x2a5)+util[_0x2f466e(0x210)](_0x4dff10)),{};}}async[a90_0x10d4cb(0x24f)](_0x7f2e25,_0x3fa942,_0x3c1a29){const _0x2276de=a90_0x10d4cb,_0x197203={'UwiTF':function(_0x14bad1,_0x9da1e,_0x427636){return _0x14bad1(_0x9da1e,_0x427636);},'XpwFQ':function(_0x24f732,_0x3f363d){return _0x24f732===_0x3f363d;},'iuWTd':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','dZGnG':function(_0x21ea02,_0x4cbebe){return _0x21ea02/_0x4cbebe;},'yARyH':function(_0x4f10c8,_0x5e621c){return _0x4f10c8<_0x5e621c;},'wwRiP':function(_0x47e6b3,_0x3b8622){return _0x47e6b3*_0x3b8622;},'KHnUl':function(_0x1627b2,_0x160be6){return _0x1627b2+_0x160be6;},'AoMJH':function(_0x3b7cc9,_0x1268f9){return _0x3b7cc9+_0x1268f9;},'MJmia':function(_0x5d33bc,_0x1b27ed){return _0x5d33bc+_0x1b27ed;},'QqyAP':'Cucumber\x20log\x20created\x20event'};try{const _0xe40239=_0x3c1a29[_0x2276de(0x26f)],_0x106ebb=_0x7f2e25[_0x2276de(0x2a9)]()['get'](_0xe40239),{[TestFrameworkConstants[_0x2276de(0x284)]]:_0x1192ec='',[TestFrameworkConstants[_0x2276de(0x1f2)]]:_0x3de553=''}=_0x106ebb,_0x5d8a0d=TestInfo['readLogObjects'](_0xe40239),_0x2c1186=TestInfo[_0x2276de(0x1ee)](_0xe40239)[TestFrameworkConstants[_0x2276de(0x29d)]]||{},_0xb8594c=_0x197203[_0x2276de(0x2a8)](getMediaArtifactsLogs,_0x2c1186,_0x7f2e25[_0x2276de(0x2a9)]()['get'](_0xe40239)[TestFrameworkConstants[_0x2276de(0x24b)]]),_0x567a20=(_0x5d8a0d||[])['concat'](_0xb8594c||[]);if(!_0x567a20||_0x197203[_0x2276de(0x1f0)](_0x567a20[_0x2276de(0x1fa)],0x0)){logger[_0x2276de(0x22b)](_0x197203[_0x2276de(0x295)]);return;}const _0x3d8b7c=0x28,_0xc69db2=Math[_0x2276de(0x1f4)](_0x197203[_0x2276de(0x263)](_0x567a20[_0x2276de(0x1fa)],_0x3d8b7c));for(let _0x2a2648=0x0;_0x197203[_0x2276de(0x1dd)](_0x2a2648,_0xc69db2);_0x2a2648++){const _0x355ad0=_0x197203[_0x2276de(0x260)](_0x2a2648,_0x3d8b7c),_0xf3afcb=_0x197203[_0x2276de(0x1e3)](_0x355ad0,_0x3d8b7c),_0x490439=_0x567a20[_0x2276de(0x220)](_0x355ad0,_0xf3afcb),_0x49abe5={'platformIndex':global?.[_0x2276de(0x2af)]??0x0,'logs':_0x490439,'testFrameworkName':_0x1192ec,'testFrameworkVersion':_0x3de553,'testFrameworkState':_0x3fa942[_0x2276de(0x23e)]()[_0x2276de(0x23a)]('.')[0x1]};logger['debug'](_0x2276de(0x25f)+_0xe40239+_0x2276de(0x28f)+_0x197203[_0x2276de(0x216)](_0x2a2648,0x1)+'/'+_0xc69db2+_0x2276de(0x20a)+util[_0x2276de(0x1f8)](_0x49abe5));const _0x2ceb48=await GrpcClient[_0x2276de(0x1e4)]()[_0x2276de(0x25a)](_0x49abe5);logger[_0x2276de(0x22b)](_0x2276de(0x25f)+_0xe40239+_0x2276de(0x28f)+_0x197203[_0x2276de(0x292)](_0x2a2648,0x1)+'/'+_0xc69db2+_0x2276de(0x2b5)+util[_0x2276de(0x1f8)](_0x2ceb48));}}catch(_0x3b7e9f){logger[_0x2276de(0x222)](_0x2276de(0x28d)+util[_0x2276de(0x210)](_0x3b7e9f));}logger[_0x2276de(0x22b)](_0x197203[_0x2276de(0x20f)]);}['storePendingHook'](_0x4d7e5f,_0x3c58d3,_0x416cb6,_0x190c46,_0x5959ae){const _0x415635=a90_0x10d4cb,_0x4ecfa4={'testId':_0x3c58d3,'testFrameworkState':_0x416cb6,'hookState':_0x190c46,'args':_0x5959ae,'timestamp':new Date()[_0x415635(0x266)]()};_0x4d7e5f[_0x415635(0x247)](_0x3c58d3,_0x4ecfa4),logger[_0x415635(0x22b)](_0x415635(0x25e)+_0x3c58d3+_0x415635(0x217)+_0x416cb6+_0x415635(0x28a)+_0x190c46);}async[a90_0x10d4cb(0x262)](_0x30b9c4,_0x1c99a1){const _0x29a21b=a90_0x10d4cb,_0x4e87c3={};_0x4e87c3[_0x29a21b(0x218)]=function(_0x14a5fb,_0x2ceba8){return _0x14a5fb>_0x2ceba8;};const _0x124bac=_0x4e87c3;if(!_0x30b9c4[_0x29a21b(0x20c)](_0x1c99a1))return;const _0x5ef22f=_0x30b9c4[_0x29a21b(0x219)](_0x1c99a1);logger[_0x29a21b(0x22b)](_0x29a21b(0x257)+_0x5ef22f[_0x29a21b(0x1fa)]+_0x29a21b(0x1ec)+_0x1c99a1);for(const _0x2bf148 of _0x5ef22f){try{const _0x4fc083=await this['trackHookEvent'](_0x30b9c4,_0x2bf148['testFrameworkState'],_0x2bf148['hookState'],_0x2bf148['args']);_0x4fc083&&_0x124bac[_0x29a21b(0x218)](Object[_0x29a21b(0x23d)](_0x4fc083)[_0x29a21b(0x1fa)],0x0)&&_0x30b9c4[_0x29a21b(0x223)](_0x4fc083),await this['runHooks'](_0x30b9c4,_0x2bf148['testFrameworkState'],_0x2bf148[_0x29a21b(0x206)],_0x2bf148[_0x29a21b(0x26a)]);}catch(_0x1d4801){logger['error'](_0x29a21b(0x1ed)+_0x1c99a1+_0x29a21b(0x1f6)+_0x1d4801);}}_0x30b9c4[_0x29a21b(0x26d)](_0x1c99a1),logger[_0x29a21b(0x22b)](_0x29a21b(0x1e2)+_0x1c99a1);}}module[a90_0x10d4cb(0x21a)]=CucumberTestFramework;
|
|
1
|
+
function a91_0x3622(){const _0x36b7bd=['KEY_HOOKS_STARTED','hook_type','trackCucumberInstance','\x20testState:\x20','2131865AeVJKy','removePendingHooks','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','gDKsm','KEY_HOOK_NAME','slice','\x20pending\x20hooks\x20for\x20testId:\x20','failure','readLogObjects','body','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','DEFAULT_TEST_RESULT','getPendingHooks','52629zCEhDX','lYhdv','emOpM','dlNUv','addMultipleEntries','getRef','KEY_HOOKS_FINISHED','KEY_TEST_UUID','\x20and\x20args\x20=\x20','AclaT','debug','result','createTestFrameworkEventPayload\x20testId:\x20','KEY_EVENT_STARTED_AT','trackCucumberInstance:\x20saved\x20instance\x20contextId=','KEY_AUTOMATE_SESSION_NAME','inspect','addPendingHook','storePendingHook','KEY_TEST_RERUN_NAME','ETTYz','matchHookRegex','739129YHvDox','../../../helpers/helper.js','resolveInstance','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','\x20with\x20id\x20','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','VjnLx','ANewL',',\x20error:\x20','sendLogCreatedEvent:\x20for\x20testId:\x20','\x20with\x20UUID:\x20','KEY_TEST_RESULT','getTestUUID','KEY_TEST_FAILURE_REASON','KEY_LOGS','trackHookEvent','base64','toISOString','PRE','getThreadId','POST','DEFAULT_HOOK_RESULT','runHooks','../state/hookState.js','Dpocf','./testFramework','KEY_HOOK_ID','gjgzP','KEY_HOOK_LOGS','executionContext','../state/testFrameworkState.js','stringify','KEY_TEST_STARTED_AT','setTestDetails','customRerunParam','CucumberTestFramework','224838VlheVs','tSSTQ','location','endedAt','getTestFrameworksVersions','KEY_TEST_CODE','XNfUf','rerun_name','toString','push','\x20batch\x20','name','testData','RUoqF','\x20\x20and\x20args\x20=\x20',',\x20storing\x20as\x20pending\x20hook','testFrameworkState','KEY_TEST_LOGS','KEY_TEST_SCOPE','RSfEU','../TestInfo.js','VBcQh','uuid','KEY_TEST_FRAMEWORK_NAME','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','getProcessId','test','failure_type','9197289wrWIjy','from','../cliUtils.js','ZwDiF','failure_reason','hooks','jdJsT','logCreatedEvent','meta','getTestFrameworks','84kbuGEM','util',',\x20state=','getCurrentTestState','getContext','platformIndex','sendLogCreatedEvent','testFrameworkVersion','parseCucumberTestResult','code','getTrackedInstance','processPendingHooks','ifzyf','KEY_HOOK_RESULT','KEY_HOOK_FAILURE_TYPE','getCurrentHookState','TEST','\x20hookState:\x20','uMAsw','started_at','KEY_TEST_ID','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_HOOK_FAILURE','trackEvent','parseCucumberTest','hookState','KEY_TEST_FILE_PATH','NONE','test_run_id','PFBiP','KEY_TEST_FAILURE_TYPE','get','keys','failed','passed','error','KEY_TEST_META','gsKpR','createTestFrameworkEventPayload','pop','\x20with\x20result:\x20','startedAt','UQEzx','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','4740928nkpsRI','KEY_TEST_FRAMEWORK_VERSION','testUUID','leqNt','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','trackEvent:\x20unsupported\x20testFrameworkState=','ceil','KEY_TEST_ATTACHMENTS','\x20&\x20hook\x20=\x20','KEY_CUSTOM_TAGS','yhGPs','LffYE','KbCfO','eventJson','KEY_TEST_ENDED_AT','length','UnhandledError','WDjoQ','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','tags','failure_data','KEY_EVENT_ENDED_AT','156GtirWF','args','concat','Stored\x20pending\x20hook\x20for\x20testId:\x20','file_name','unknown','../instances/testFrameworkInstance.js','getId','format','browserstackPlatformIndex','getInstance','Etjfg','finished_at','Processing\x20','\x20&\x20hookState=','scopes','getAllData','87810cOlzWF','CJdfU','JgoNS','instance','getTestDetails','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test'];a91_0x3622=function(){return _0x36b7bd;};return a91_0x3622();}function a91_0x4235(_0x3af103,_0x6a36f4){const _0x362224=a91_0x3622();return a91_0x4235=function(_0x4235fa,_0x21458c){_0x4235fa=_0x4235fa-0xb0;let _0x4cdd3d=_0x362224[_0x4235fa];return _0x4cdd3d;},a91_0x4235(_0x3af103,_0x6a36f4);}const a91_0x38cea9=a91_0x4235;(function(_0x57e2d8,_0x426341){const _0xaaedab=a91_0x4235,_0x82c66c=_0x57e2d8();while(!![]){try{const _0x245519=parseInt(_0xaaedab(0xba))/0x1+parseInt(_0xaaedab(0xde))/0x2+-parseInt(_0xaaedab(0x16e))/0x3*(-parseInt(_0xaaedab(0x146))/0x4)+parseInt(_0xaaedab(0x161))/0x5+-parseInt(_0xaaedab(0x157))/0x6*(-parseInt(_0xaaedab(0x104))/0x7)+-parseInt(_0xaaedab(0x130))/0x8+-parseInt(_0xaaedab(0xfa))/0x9;if(_0x245519===_0x426341)break;else _0x82c66c['push'](_0x82c66c['shift']());}catch(_0x5e2bb7){_0x82c66c['push'](_0x82c66c['shift']());}}}(a91_0x3622,0x7fbad));const TestFramework=require(a91_0x38cea9(0xd3)),TestFrameworkState=require(a91_0x38cea9(0xd8)),HookState=require(a91_0x38cea9(0xd1)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a91_0x38cea9(0x14c)),CLIUtils=require(a91_0x38cea9(0xfc)),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x38cea9(0xbb)),logger=createClassLogger(a91_0x38cea9(0xdd)),{v4:uuidv4}=require(a91_0x38cea9(0xf4)),util=require(a91_0x38cea9(0x105)),TestInfo=require(a91_0x38cea9(0xf2)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x2fdcef,_0x2cd658,_0x46ac5e){super(_0x2fdcef,_0x2cd658,_0x46ac5e);}async[a91_0x38cea9(0x11b)](_0x366162,_0x2461dc,_0xcc36b1={}){const _0x232005=a91_0x38cea9,_0x63eb12={};_0x63eb12[_0x232005(0x121)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x63eb12['tSSTQ']=function(_0x521be8,_0x24aec7){return _0x521be8===_0x24aec7;},_0x63eb12[_0x232005(0x13b)]=function(_0xdf8494,_0x5b0b1f){return _0xdf8494===_0x5b0b1f;},_0x63eb12[_0x232005(0xc0)]=function(_0x5093ee,_0x154db5){return _0x5093ee===_0x154db5;},_0x63eb12['AclaT']=_0x232005(0x142);const _0x42857d=_0x63eb12;await super[_0x232005(0x11b)](_0x366162,_0x2461dc,_0xcc36b1);const _0x4c34de=this[_0x232005(0xbc)](_0x366162,_0x2461dc,_0xcc36b1);if(!_0x4c34de){logger[_0x232005(0x178)](_0x42857d[_0x232005(0x121)]);return;}try{let _0x511c95,_0x59435e;switch(_0x366162){case TestFrameworkState[_0x232005(0x114)]:_0x511c95=_0xcc36b1[_0x232005(0xf8)],_0x59435e=TestInfo[_0x232005(0xc6)](_0x511c95['id']);if(_0x42857d[_0x232005(0xdf)](_0x2461dc,HookState[_0x232005(0xcc)])){logger[_0x232005(0x178)](_0x232005(0x163)+_0x511c95['id']);const _0x2932ee={};_0x2932ee[_0x232005(0x132)]=_0x59435e,_0x2932ee[_0x232005(0xea)]=_0x511c95,_0x4c34de[_0x232005(0x172)](this['parseCucumberTest'](_0x2932ee)),logger[_0x232005(0x178)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x511c95['id']),await this[_0x232005(0x10f)](_0x4c34de,_0x511c95['id']);}else{if(_0x42857d['LffYE'](_0x2461dc,HookState[_0x232005(0xce)])){const _0x4c5c1e={};_0x4c5c1e[_0x232005(0x132)]=_0x59435e,_0x4c5c1e[_0x232005(0xea)]=_0x511c95,_0x4c34de[_0x232005(0x172)](this[_0x232005(0x10c)](_0x4c5c1e)),await this[_0x232005(0x10f)](_0x4c34de,_0x511c95['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x42857d[_0x232005(0xc0)](_0x2461dc,HookState[_0x232005(0xce)])&&await this[_0x232005(0x10a)](_0x4c34de,_0x366162,_0xcc36b1);break;default:if(CLIUtils[_0x232005(0xb9)](_0x366162[_0x232005(0xe6)]()['split']('.')[0x1])){const _0x2d2e05=await this['trackHookEvent'](_0x4c34de,_0x366162,_0x2461dc,_0xcc36b1);_0x4c34de[_0x232005(0x172)](_0x2d2e05);}else logger['debug'](_0x232005(0x135)+_0x366162+_0x232005(0x154)+_0x2461dc);break;}}catch(_0xed3415){logger[_0x232005(0x127)](util[_0x232005(0x14e)](_0x42857d[_0x232005(0x177)],_0x366162,_0x2461dc,_0xcc36b1[_0x232005(0x13f)],_0xed3415));}_0xcc36b1[_0x232005(0x15a)]=_0x4c34de,await this[_0x232005(0xd0)](_0x4c34de,_0x366162,_0x2461dc,_0xcc36b1);}[a91_0x38cea9(0xbc)](_0x48f26d,_0x3fac97,_0x1442f6={}){const _0x623387=a91_0x38cea9,_0x482375={};_0x482375[_0x623387(0xc1)]=function(_0xf2f38b,_0x2f7463){return _0xf2f38b===_0x2f7463;};const _0x12ccf5=_0x482375;let _0x328ccf=null;return(_0x12ccf5['ANewL'](_0x48f26d,TestFrameworkState['INIT_TEST'])||_0x12ccf5[_0x623387(0xc1)](_0x48f26d,TestFrameworkState[_0x623387(0x11f)]))&&this[_0x623387(0x15f)](_0x48f26d,_0x1442f6),_0x328ccf=TestFramework[_0x623387(0x10e)](),_0x328ccf;}[a91_0x38cea9(0x15f)](_0x17ba22,_0x3d571d){const _0x416bad=a91_0x38cea9,_0x262489=CLIUtils['getCurrentInstanceName'](),_0x2b8b6e=TrackedInstance['createContext'](_0x262489);let _0x364885=null;logger[_0x416bad(0x178)](_0x416bad(0x12f)+_0x262489+_0x416bad(0x106)+_0x17ba22),_0x364885=new TestFrameworkInstance(_0x2b8b6e,this['getTestFrameworks'](),this[_0x416bad(0xe2)](),_0x17ba22,HookState[_0x416bad(0x11f)]),TestFramework['setTrackedInstance'](_0x2b8b6e,_0x364885),logger[_0x416bad(0x178)](_0x416bad(0xb2)+_0x2b8b6e[_0x416bad(0x14d)]()+'\x20target='+_0x262489);}[a91_0x38cea9(0x11c)](_0x2f8ae3){const _0x99c929=a91_0x38cea9,_0x10e17f={};_0x10e17f['VBcQh']=_0x99c929(0x15c);const _0x465e68=_0x10e17f,{testUUID:_0x456145,testData:_0x51c3b5}=_0x2f8ae3;if(!_0x51c3b5||!_0x51c3b5[_0x99c929(0xf4)])return logger[_0x99c929(0x178)](_0x465e68[_0x99c929(0xf3)]),{};const _0x3815e4=_0x456145,_0x153ea6=_0x51c3b5[_0x99c929(0xf4)],_0x25780d=this[_0x99c929(0x103)]()[0x0],_0x782d6=this[_0x99c929(0xe2)](),_0x5a771d={[TestFrameworkConstants[_0x99c929(0xf5)]]:_0x25780d,[TestFrameworkConstants[_0x99c929(0x131)]]:_0x782d6[_0x25780d],[TestFrameworkConstants[_0x99c929(0xef)]]:[],[TestFrameworkConstants[_0x99c929(0x174)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants[_0x99c929(0x175)]]:_0x3815e4,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x99c929(0x16c)],[TestFrameworkConstants[_0x99c929(0xb3)]]:_0x51c3b5['name']||'',[TestFrameworkConstants[_0x99c929(0x11e)]]:_0x51c3b5[_0x99c929(0x14a)]||'',[TestFrameworkConstants[_0x99c929(0x118)]]:_0x153ea6,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x51c3b5[_0x99c929(0xe9)]||'',[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0x51c3b5[_0x99c929(0xe0)]||'',[TestFrameworkConstants[_0x99c929(0xe3)]]:_0x51c3b5[_0x99c929(0x16a)]?.[_0x99c929(0x10d)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x51c3b5[_0x99c929(0x143)]||[],[TestFrameworkConstants[_0x99c929(0xda)]]:_0x51c3b5[_0x99c929(0x12d)]||new Date()[_0x99c929(0xcb)](),[TestFrameworkConstants[_0x99c929(0xf0)]]:_0x51c3b5[_0x99c929(0x155)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x51c3b5['scopes']||[],[TestFrameworkConstants[_0x99c929(0xb7)]]:_0x51c3b5[_0x99c929(0xdc)]?.[_0x99c929(0xe5)]||_0x51c3b5['name']||'',[TestFrameworkConstants[_0x99c929(0x139)]]:{},[TestFrameworkConstants[_0x99c929(0x128)]]:_0x51c3b5[_0x99c929(0x102)]||{}};TestInfo[_0x99c929(0xdb)](_0x153ea6,_0x5a771d),logger[_0x99c929(0x178)]('Parsed\x20cucumber\x20test:\x20'+_0x51c3b5['name']+_0x99c929(0xc4)+_0x3815e4);const _0x1146d2={};return _0x1146d2[_0x153ea6]=_0x5a771d,_0x1146d2;}[a91_0x38cea9(0x10c)](_0x29ba19){const _0xc71c47=a91_0x38cea9,_0x1367be={'oWwFn':_0xc71c47(0xbd),'RSfEU':_0xc71c47(0x14b),'yhGPs':function(_0x5880e1,_0x107583){return _0x5880e1===_0x107583;},'UQEzx':_0xc71c47(0x125),'HpLFg':'UnhandledError','ywMIt':function(_0x40333e,_0x33a005,_0x16b915){return _0x40333e(_0x33a005,_0x16b915);},'WDjoQ':function(_0xd36d9f,_0x3831a8){return _0xd36d9f>_0x3831a8;}},{testUUID:_0x92975b,testData:_0x30fe0c}=_0x29ba19;if(!_0x30fe0c||!_0x30fe0c[_0xc71c47(0xf4)])return logger[_0xc71c47(0x178)](_0x1367be['oWwFn']),{};const _0xaacd52=this[_0xc71c47(0xbc)](TestFrameworkState[_0xc71c47(0x114)],HookState[_0xc71c47(0xce)]),_0x2c89f2=_0x30fe0c[_0xc71c47(0xf4)],_0x44e631=TestInfo[_0xc71c47(0x15b)](_0x2c89f2)||{},_0x544dc0=_0x44e631?_0x44e631[TestFrameworkConstants[_0xc71c47(0x139)]]||{}:{},_0x1a3f7b={..._0x44e631,[TestFrameworkConstants[_0xc71c47(0xc5)]]:_0x30fe0c[_0xc71c47(0x179)]||_0x1367be[_0xc71c47(0xf1)],[TestFrameworkConstants[_0xc71c47(0x13e)]]:_0x30fe0c['finishedAt']||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()['toISOString'](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x544dc0,[TestFrameworkConstants[_0xc71c47(0xc8)]]:[],[TestFrameworkConstants[_0xc71c47(0x128)]]:_0x30fe0c[_0xc71c47(0x102)]||{}};_0x1367be[_0xc71c47(0x13a)](_0x30fe0c[_0xc71c47(0x179)],_0x1367be[_0xc71c47(0x12e)])&&_0x30fe0c['failure']&&(_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0x122)]]=_0x30fe0c[_0xc71c47(0xf9)]||_0x1367be['HpLFg'],_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0xc7)]]=_0x30fe0c[_0xc71c47(0xfe)]||'',_0x1a3f7b[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x30fe0c[_0xc71c47(0x168)]);const _0x34edee=TestInfo[_0xc71c47(0x15b)](_0x2c89f2)[TestFrameworkConstants[_0xc71c47(0x137)]]||{},_0x23c523=_0x1367be['ywMIt'](getManualUploadLogs,_0x34edee,_0xaacd52[_0xc71c47(0x156)]()['get'](_0x2c89f2)[TestFrameworkConstants[_0xc71c47(0x175)]]);if(_0x1367be['WDjoQ'](_0x23c523[_0xc71c47(0x13f)],0x0)){const _0x1b1416=_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0xc8)]]||[];_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0xc8)]]=[..._0x1b1416,..._0x23c523];}_0x30fe0c[_0xc71c47(0xff)]&&_0x1367be[_0xc71c47(0x141)](_0x30fe0c[_0xc71c47(0xff)][_0xc71c47(0x13f)],0x0)&&(_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0x174)]]=_0x30fe0c[_0xc71c47(0xff)]);TestInfo[_0xc71c47(0xdb)](_0x2c89f2,_0x1a3f7b),logger[_0xc71c47(0x178)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x30fe0c[_0xc71c47(0xe9)]+_0xc71c47(0x12c)+_0x30fe0c['result']);const _0x53c1da={};return _0x53c1da[_0x2c89f2]=_0x1a3f7b,_0x53c1da;}async[a91_0x38cea9(0xc9)](_0xf931be,_0xd968a0,_0x57f44c,_0x44486a){const _0x158ab7=a91_0x38cea9,_0x5df485={'gDKsm':_0x158ab7(0xbf),'IIavC':function(_0x34c8c3){return _0x34c8c3();},'CJdfU':function(_0x4b8cd8,_0x4ca655){return _0x4b8cd8 in _0x4ca655;},'leqNt':function(_0x584536,_0x4f1213){return _0x584536===_0x4f1213;},'gjgzP':function(_0x19fb5d,_0x4128f5){return _0x19fb5d===_0x4128f5;},'jdJsT':function(_0x464f68,_0x4464d1){return _0x464f68>_0x4464d1;},'QWiID':function(_0x13e4ed,_0x73ac98){return _0x13e4ed===_0x73ac98;},'gsKpR':'failed','emOpM':_0x158ab7(0x140),'RUoqF':_0x158ab7(0x126),'XNfUf':function(_0x38d928,_0x29f93f){return _0x38d928!==_0x29f93f;}},{hookData:_0x1dad48}=_0x44486a;if(!_0x1dad48)return logger[_0x158ab7(0x178)](_0x5df485[_0x158ab7(0x164)]),{};const _0x33a27d=_0x1dad48[_0x158ab7(0xf4)]||_0x5df485['IIavC'](uuidv4),_0x10bb73=_0x1dad48[_0x158ab7(0x120)],_0x16e13e=_0xd968a0[_0x158ab7(0xe6)]()['split']('.')[0x1],_0x9efb0e=TestInfo[_0x158ab7(0x15b)](_0x10bb73)[TestFrameworkConstants[_0x158ab7(0x139)]]||{},_0x11aeb7=_0xf931be[_0x158ab7(0x156)]()['get'](_0x10bb73);if(!_0x11aeb7)return logger['debug'](_0x158ab7(0xf6)+_0x10bb73+_0x158ab7(0xed)),this[_0x158ab7(0xb6)](_0xf931be,_0x10bb73,_0xd968a0,_0x57f44c,_0x44486a),{};let _0xd34177=_0x11aeb7[TestFrameworkConstants[_0x158ab7(0x15d)]];!_0xd34177&&(_0xd34177={});!_0x5df485[_0x158ab7(0x158)](_0x16e13e,_0xd34177)&&(_0xd34177[_0x16e13e]=[]);let _0xcb6c3b=_0x11aeb7[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0xcb6c3b&&(_0xcb6c3b={});!_0x5df485[_0x158ab7(0x158)](_0x16e13e,_0xcb6c3b)&&(_0xcb6c3b[_0x16e13e]=[]);const _0x409211={[TestFrameworkConstants[_0x158ab7(0x15d)]]:_0xd34177,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0xcb6c3b},_0xa1411f={};_0xa1411f[_0x10bb73]=_0x409211;const _0x3b5429=_0xa1411f;if(_0x5df485[_0x158ab7(0x133)](_0x57f44c,HookState[_0x158ab7(0xcc)])){const _0x2e5367={[TestFrameworkConstants[_0x158ab7(0xd4)]]:_0x33a27d,[TestFrameworkConstants[_0x158ab7(0x111)]]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants[_0x158ab7(0xb1)]]:_0x1dad48[_0x158ab7(0x117)],[TestFrameworkConstants[_0x158ab7(0xd6)]]:[],[TestFrameworkConstants[_0x158ab7(0x165)]]:_0x1dad48[_0x158ab7(0x15e)],[TestFrameworkConstants[_0x158ab7(0x139)]]:_0x9efb0e};_0x2e5367['key']=_0x16e13e;const _0x2009ee=_0x2e5367;_0xd34177[_0x16e13e][_0x158ab7(0xe7)](_0x2009ee),_0x3b5429[_0x10bb73][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x16e13e,logger[_0x158ab7(0x178)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x16e13e+_0x158ab7(0x138)+_0x2009ee+_0x158ab7(0xec)+_0x44486a);}else{if(_0x5df485[_0x158ab7(0xd5)](_0x57f44c,HookState[_0x158ab7(0xce)])){const _0x3ad272=_0x1dad48[_0x158ab7(0x179)],_0x3f4532=_0xd34177[_0x16e13e]||[];logger[_0x158ab7(0x178)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x3f4532+_0x158ab7(0x176)+_0x44486a);if(_0x5df485[_0x158ab7(0x100)](_0x3f4532[_0x158ab7(0x13f)],0x0)){const _0x3c54f2=_0x3f4532[_0x158ab7(0x12b)]();_0x5df485['QWiID'](_0x1dad48[_0x158ab7(0x179)],_0x5df485[_0x158ab7(0x129)])&&_0x1dad48['failure_data']?(_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x112)]]=_0x1dad48[_0x158ab7(0xf9)]||_0x5df485[_0x158ab7(0x170)],_0x3c54f2[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x1dad48[_0x158ab7(0xfe)]||'',_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x11a)]]=_0x1dad48[_0x158ab7(0x144)]):_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x111)]]=_0x5df485[_0x158ab7(0xeb)];_0x5df485[_0x158ab7(0xe4)](_0x3ad272,TestFrameworkConstants[_0x158ab7(0xcf)])&&(_0x3c54f2[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x3ad272);_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x145)]]=_0x1dad48[_0x158ab7(0x152)]||new Date()[_0x158ab7(0xcb)](),_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x139)]]=_0x9efb0e;const _0x3cafdd=_0x3c54f2[TestFrameworkConstants[_0x158ab7(0xd4)]];!_0xcb6c3b[_0x16e13e]&&(_0xcb6c3b[_0x16e13e]=[]),_0xcb6c3b[_0x16e13e]['push'](_0x3c54f2),_0x3b5429[_0x10bb73][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x16e13e;}}}return logger['debug']('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x1dad48['hook_type']+_0x158ab7(0xbe)+_0x33a27d+'\x20for\x20test:\x20'+_0x10bb73),_0x3b5429;}[a91_0x38cea9(0x12a)](_0x55d1a1){const _0x5a6fa4=a91_0x38cea9,_0x5b0c7e={};_0x5b0c7e[_0x5a6fa4(0x16f)]=_0x5a6fa4(0xca);const _0x49bd18=_0x5b0c7e;try{const _0x2d783c=_0x55d1a1[_0x5a6fa4(0xf8)]?_0x55d1a1['test']['id']:_0x55d1a1['hookData'][_0x5a6fa4(0x120)],_0x10fc7d=_0x55d1a1[_0x5a6fa4(0x15a)],_0x3e3b76=_0x10fc7d[_0x5a6fa4(0x108)](),_0x2ec9e0=_0x10fc7d[_0x5a6fa4(0x156)]()[_0x5a6fa4(0x123)](_0x2d783c);if(!_0x2ec9e0)return logger[_0x5a6fa4(0x178)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x2d783c),{};logger[_0x5a6fa4(0x178)](_0x5a6fa4(0xb0)+_0x2d783c);const {[TestFrameworkConstants[_0x5a6fa4(0xf5)]]:_0x34bb0d='',[TestFrameworkConstants[_0x5a6fa4(0x131)]]:_0x3f9e53='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x2c5b8a='',[TestFrameworkConstants[_0x5a6fa4(0x13e)]]:_0x182917=''}=_0x2ec9e0,_0x4eb2ae=_0x10fc7d[_0x5a6fa4(0x107)]()[_0x5a6fa4(0xe6)]()['split']('.')[0x1],_0xfdf552=_0x10fc7d[_0x5a6fa4(0x113)]()[_0x5a6fa4(0xe6)]()['split']('.')[0x1],_0x1fea20=global?.[_0x5a6fa4(0x14f)]??0x0,_0x2c285b=_0x10fc7d[_0x5a6fa4(0x173)](),_0x2b4a67=Buffer[_0x5a6fa4(0xfb)](JSON[_0x5a6fa4(0xd9)](_0x2ec9e0))[_0x5a6fa4(0xe6)](_0x49bd18[_0x5a6fa4(0x16f)]),_0x483783={'hash':_0x3e3b76['getId'](),'threadId':_0x3e3b76[_0x5a6fa4(0xcd)]()[_0x5a6fa4(0xe6)](),'processId':_0x3e3b76[_0x5a6fa4(0xf7)]()[_0x5a6fa4(0xe6)]()},_0x5cb4eb={};_0x5cb4eb[_0x5a6fa4(0x109)]=_0x1fea20,_0x5cb4eb['testFrameworkName']=_0x34bb0d,_0x5cb4eb[_0x5a6fa4(0x10b)]=_0x3f9e53,_0x5cb4eb[_0x5a6fa4(0xee)]=_0x4eb2ae,_0x5cb4eb[_0x5a6fa4(0x11d)]=_0xfdf552,_0x5cb4eb['startedAt']=_0x2c5b8a,_0x5cb4eb[_0x5a6fa4(0xe1)]=_0x182917,_0x5cb4eb[_0x5a6fa4(0xf4)]=_0x2c285b,_0x5cb4eb[_0x5a6fa4(0x13d)]=_0x2b4a67,_0x5cb4eb[_0x5a6fa4(0xd7)]=_0x483783;const _0x27e977=_0x5cb4eb;return logger[_0x5a6fa4(0x178)]('createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20'+_0x2d783c+_0x5a6fa4(0x160)+_0x4eb2ae+_0x5a6fa4(0x115)+_0xfdf552),_0x27e977;}catch(_0x9a39be){return logger[_0x5a6fa4(0x127)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util['format'](_0x9a39be)),{};}}async[a91_0x38cea9(0x10a)](_0x13d4f6,_0x101f7c,_0x5b7cd9){const _0x1df744=a91_0x38cea9,_0x51f7bf={'KbCfO':function(_0x5e3d19,_0x2554e3,_0x2ba840){return _0x5e3d19(_0x2554e3,_0x2ba840);},'ETTYz':function(_0x3c2e61,_0x3021f9){return _0x3c2e61===_0x3021f9;},'AYjvJ':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','uMAsw':function(_0x45a212,_0x18a7d4){return _0x45a212/_0x18a7d4;},'ifzyf':function(_0x323cbf,_0x258f79){return _0x323cbf<_0x258f79;},'Etjfg':function(_0x549f03,_0x396fe3){return _0x549f03*_0x396fe3;},'JgoNS':function(_0x475226,_0x547bf4){return _0x475226+_0x547bf4;},'ZwDiF':function(_0x44a5f8,_0x399b83){return _0x44a5f8+_0x399b83;},'dlNUv':'Cucumber\x20log\x20created\x20event'};try{const _0x943763=_0x5b7cd9[_0x1df744(0x132)],_0x5097df=_0x13d4f6[_0x1df744(0x156)]()[_0x1df744(0x123)](_0x943763),{[TestFrameworkConstants[_0x1df744(0xf5)]]:_0x16fd43='',[TestFrameworkConstants[_0x1df744(0x131)]]:_0x3f7844=''}=_0x5097df,_0xaa4b99=TestInfo[_0x1df744(0x169)](_0x943763),_0x426c91=TestInfo[_0x1df744(0x15b)](_0x943763)[TestFrameworkConstants[_0x1df744(0x137)]]||{},_0x2e5a04=_0x51f7bf[_0x1df744(0x13c)](getMediaArtifactsLogs,_0x426c91,_0x13d4f6[_0x1df744(0x156)]()[_0x1df744(0x123)](_0x943763)[TestFrameworkConstants[_0x1df744(0x175)]]),_0x37e0f4=(_0xaa4b99||[])[_0x1df744(0x148)](_0x2e5a04||[]);if(!_0x37e0f4||_0x51f7bf[_0x1df744(0xb8)](_0x37e0f4[_0x1df744(0x13f)],0x0)){logger['debug'](_0x51f7bf['AYjvJ']);return;}const _0x254aa9=0x28,_0x25697f=Math[_0x1df744(0x136)](_0x51f7bf[_0x1df744(0x116)](_0x37e0f4[_0x1df744(0x13f)],_0x254aa9));for(let _0x1e508c=0x0;_0x51f7bf[_0x1df744(0x110)](_0x1e508c,_0x25697f);_0x1e508c++){const _0x1846bd=_0x51f7bf[_0x1df744(0x151)](_0x1e508c,_0x254aa9),_0x75d96c=_0x51f7bf[_0x1df744(0x159)](_0x1846bd,_0x254aa9),_0x8da2eb=_0x37e0f4[_0x1df744(0x166)](_0x1846bd,_0x75d96c),_0x36d662={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x8da2eb,'testFrameworkName':_0x16fd43,'testFrameworkVersion':_0x3f7844,'testFrameworkState':_0x101f7c['toString']()['split']('.')[0x1]};logger[_0x1df744(0x178)](_0x1df744(0xc3)+_0x943763+_0x1df744(0xe8)+_0x51f7bf['JgoNS'](_0x1e508c,0x1)+'/'+_0x25697f+'\x20payload='+util[_0x1df744(0xb4)](_0x36d662));const _0x3cce1d=await GrpcClient[_0x1df744(0x150)]()[_0x1df744(0x101)](_0x36d662);logger[_0x1df744(0x178)](_0x1df744(0xc3)+_0x943763+_0x1df744(0xe8)+_0x51f7bf[_0x1df744(0xfd)](_0x1e508c,0x1)+'/'+_0x25697f+'\x20response='+util[_0x1df744(0xb4)](_0x3cce1d));}}catch(_0x3cb647){logger[_0x1df744(0x127)](_0x1df744(0x16b)+util[_0x1df744(0x14e)](_0x3cb647));}logger[_0x1df744(0x178)](_0x51f7bf[_0x1df744(0x171)]);}[a91_0x38cea9(0xb6)](_0x236f1c,_0x46695a,_0x4030be,_0x38df93,_0x35b1be){const _0x279609=a91_0x38cea9,_0x5eb33f={'testId':_0x46695a,'testFrameworkState':_0x4030be,'hookState':_0x38df93,'args':_0x35b1be,'timestamp':new Date()[_0x279609(0xcb)]()};_0x236f1c[_0x279609(0xb5)](_0x46695a,_0x5eb33f),logger['debug'](_0x279609(0x149)+_0x46695a+',\x20state:\x20'+_0x4030be+',\x20hookState:\x20'+_0x38df93);}async[a91_0x38cea9(0x10f)](_0x10bc05,_0x4c2dc8){const _0x27b41d=a91_0x38cea9,_0x450f59={};_0x450f59['Dpocf']=function(_0x43dc23,_0x411246){return _0x43dc23>_0x411246;};const _0x3f1a66=_0x450f59;if(!_0x10bc05['hasPendingHooks'](_0x4c2dc8))return;const _0x58fd7f=_0x10bc05[_0x27b41d(0x16d)](_0x4c2dc8);logger['debug'](_0x27b41d(0x153)+_0x58fd7f[_0x27b41d(0x13f)]+_0x27b41d(0x167)+_0x4c2dc8);for(const _0x291db6 of _0x58fd7f){try{const _0x436a67=await this[_0x27b41d(0xc9)](_0x10bc05,_0x291db6[_0x27b41d(0xee)],_0x291db6['hookState'],_0x291db6['args']);_0x436a67&&_0x3f1a66[_0x27b41d(0xd2)](Object[_0x27b41d(0x124)](_0x436a67)[_0x27b41d(0x13f)],0x0)&&_0x10bc05[_0x27b41d(0x172)](_0x436a67),await this[_0x27b41d(0xd0)](_0x10bc05,_0x291db6[_0x27b41d(0xee)],_0x291db6[_0x27b41d(0x11d)],_0x291db6[_0x27b41d(0x147)]);}catch(_0x193931){logger[_0x27b41d(0x127)](_0x27b41d(0x119)+_0x4c2dc8+_0x27b41d(0xc2)+_0x193931);}}_0x10bc05[_0x27b41d(0x162)](_0x4c2dc8),logger[_0x27b41d(0x178)](_0x27b41d(0x134)+_0x4c2dc8);}}module['exports']=CucumberTestFramework;
|