browserstack-node-sdk 1.60.0 → 1.60.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/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/bin/v2/cliUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a84_0x1aaf49=a84_0x5100;(function(_0x499bb7,_0x31393c){const _0x44cced=a84_0x5100,_0x49ce19=_0x499bb7();while(!![]){try{const _0x2635ff=parseInt(_0x44cced(0x24e))/0x1*(-parseInt(_0x44cced(0x222))/0x2)+parseInt(_0x44cced(0x2ab))/0x3*(parseInt(_0x44cced(0x234))/0x4)+parseInt(_0x44cced(0x240))/0x5+parseInt(_0x44cced(0x1ed))/0x6+-parseInt(_0x44cced(0x281))/0x7+-parseInt(_0x44cced(0x237))/0x8*(-parseInt(_0x44cced(0x29f))/0x9)+-parseInt(_0x44cced(0x28e))/0xa;if(_0x2635ff===_0x31393c)break;else _0x49ce19['push'](_0x49ce19['shift']());}catch(_0x13760b){_0x49ce19['push'](_0x49ce19['shift']());}}}(a84_0x3ce7,0xd36d4));const fs=require('fs'),os=require('os'),url=require(a84_0x1aaf49(0x1f3)),path=require(a84_0x1aaf49(0x24a)),{exec}=require('child_process'),{https}=require(a84_0x1aaf49(0x274)),yauzl=require(a84_0x1aaf49(0x1db)),util=require(a84_0x1aaf49(0x235)),{getFrameworkVersion}=require('../../helpers/test-observability/utils.js'),{threadId}=require(a84_0x1aaf49(0x267)),PerformanceTester=require(a84_0x1aaf49(0x271)),{EVENTS:PerformanceEvents}=require(a84_0x1aaf49(0x262)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a84_0x1aaf49(0x1d8)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a84_0x1aaf49(0x1f1)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a84_0x1aaf49(0x1fd)),{createClassLogger}=require(a84_0x1aaf49(0x2a4)),TestFrameworkInstance=require(a84_0x1aaf49(0x1fa)),HookState=require(a84_0x1aaf49(0x288)),TestFrameworkState=require(a84_0x1aaf49(0x27a)),AutomationFrameworkState=require(a84_0x1aaf49(0x20f)),TestFrameworkConstants=require(a84_0x1aaf49(0x264)),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require('../utils/apiUtilityMethods.js');class CLIUtils{[a84_0x1aaf49(0x221)]={};[a84_0x1aaf49(0x255)]={};static['isDevelopmentEnv'](){const _0x131f58=a84_0x1aaf49,_0x3f5bba={};_0x3f5bba['WyEew']=function(_0x2e4eca,_0x3adbc3){return _0x2e4eca===_0x3adbc3;},_0x3f5bba[_0x131f58(0x242)]=_0x131f58(0x219);const _0x54056b=_0x3f5bba;return _0x54056b['WyEew'](process[_0x131f58(0x27e)][_0x131f58(0x295)],_0x54056b[_0x131f58(0x242)]);}static[a84_0x1aaf49(0x285)](){const _0x432dc2=a84_0x1aaf49,_0x7fba6={};return _0x7fba6['id']=process['env'][_0x432dc2(0x295)],_0x7fba6[_0x432dc2(0x258)]=_0x432dc2(0x27b)+process[_0x432dc2(0x27e)][_0x432dc2(0x295)]+_0x432dc2(0x23f),_0x7fba6;}static['getSdkVersion'](){const _0x4faff9=a84_0x1aaf49,_0x4a06d3={'qBQGB':function(_0x14f490,_0x28ced1){return _0x14f490(_0x28ced1);},'HvrYR':_0x4faff9(0x21a)};return _0x4a06d3[_0x4faff9(0x29c)](require,_0x4a06d3[_0x4faff9(0x2ac)])[_0x4faff9(0x1e7)];}static['getSdkLanguage'](){const _0x488b32=a84_0x1aaf49,_0x28c650={};_0x28c650['LssjS']='node';const _0x38744b=_0x28c650;return _0x38744b[_0x488b32(0x273)];}static async[a84_0x1aaf49(0x2b0)](_0x1dfce9){const _0x2fe410=a84_0x1aaf49,_0x475c2d={'ipVEo':_0x2fe410(0x1e8),'oghFf':function(_0x52a68f,_0x47999c){return _0x52a68f(_0x47999c);},'JYyQl':function(_0x9cfbf2,_0x17f9b7){return _0x9cfbf2(_0x17f9b7);},'IBMlV':_0x2fe410(0x233)};logger['debug'](_0x475c2d[_0x2fe410(0x296)]);const _0x35f9e4=process[_0x2fe410(0x27e)][_0x2fe410(0x251)];if(!_0x475c2d['oghFf'](isNullOrEmpty,_0x35f9e4))return logger[_0x2fe410(0x220)](_0x2fe410(0x276)+_0x35f9e4),_0x35f9e4;try{const _0x59e3df=this[_0x2fe410(0x24b)]();if(_0x475c2d[_0x2fe410(0x272)](isNullOrEmpty,_0x59e3df))throw new Error(_0x475c2d[_0x2fe410(0x1dc)]);const _0x2b952a=this[_0x2fe410(0x1d3)](_0x59e3df),_0x28ad88=await this[_0x2fe410(0x26a)](_0x2b952a,_0x59e3df,_0x1dfce9);return logger['debug'](_0x2fe410(0x1f6)+_0x28ad88),_0x28ad88;}catch(_0x28a126){logger[_0x2fe410(0x220)](_0x2fe410(0x28c)+util[_0x2fe410(0x21c)](_0x28a126));}return null;}static async[a84_0x1aaf49(0x26a)](_0x16f039,_0x4c3e2a,_0x13bc3f){const _0x3ddb9c=a84_0x1aaf49,_0x18935e={'FqxLS':function(_0x412cd5){return _0x412cd5();},'gGCnI':function(_0x7b1be2,_0x3b0e8a){return _0x7b1be2(_0x3b0e8a);},'FzBhE':function(_0x460123,_0x5a1545,_0x3ce1e2){return _0x460123(_0x5a1545,_0x3ce1e2);},'aVwoL':_0x3ddb9c(0x278),'UQqEl':'url','SeYmX':function(_0x28893a,_0x2cf290){return _0x28893a(_0x2cf290);}};PerformanceTester[_0x3ddb9c(0x2a7)](PerformanceEvents[_0x3ddb9c(0x1fc)]),logger['info'](_0x3ddb9c(0x26d)+_0x16f039);const _0x4bf216=_0x18935e[_0x3ddb9c(0x200)](getHostInfo),_0x343511={'sdk_version':CLIUtils[_0x3ddb9c(0x289)](),'os':_0x4bf216[_0x3ddb9c(0x266)],'os_arch':_0x4bf216[_0x3ddb9c(0x1f0)],'cli_version':'0','sdk_language':this[_0x3ddb9c(0x201)]()};!_0x18935e[_0x3ddb9c(0x2ae)](isNullOrEmpty,_0x16f039)&&(_0x343511[_0x3ddb9c(0x25b)]=await this[_0x3ddb9c(0x26b)](_0x16f039+'\x20version'));const _0x46479e=await this[_0x3ddb9c(0x287)](_0x343511,_0x13bc3f);process[_0x3ddb9c(0x27e)][_0x3ddb9c(0x263)]&&(logger[_0x3ddb9c(0x1d9)](_0x3ddb9c(0x282)+process[_0x3ddb9c(0x27e)][_0x3ddb9c(0x263)]),_0x46479e[_0x3ddb9c(0x278)][_0x3ddb9c(0x1f3)]=process[_0x3ddb9c(0x27e)]['BROWSERSTACK_BINARY_URL']);if(_0x18935e[_0x3ddb9c(0x22f)](nestedKeyValue,_0x46479e,[_0x18935e[_0x3ddb9c(0x284)],_0x18935e[_0x3ddb9c(0x290)]])){logger['debug'](_0x3ddb9c(0x1ff)+_0x343511['cli_version']);if(!_0x18935e['SeYmX'](isNullOrEmpty,_0x16f039)&&this[_0x3ddb9c(0x20a)](_0x16f039))return logger[_0x3ddb9c(0x275)](_0x3ddb9c(0x1f9)+_0x16f039),PerformanceTester[_0x3ddb9c(0x204)](PerformanceEvents[_0x3ddb9c(0x1fc)]),_0x16f039;const _0x1df678=await this[_0x3ddb9c(0x2af)](_0x18935e['FzBhE'](nestedKeyValue,_0x46479e,[_0x18935e[_0x3ddb9c(0x284)],_0x18935e['UQqEl']]),_0x4c3e2a);return PerformanceTester[_0x3ddb9c(0x204)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x1df678;}return PerformanceTester[_0x3ddb9c(0x204)](PerformanceEvents[_0x3ddb9c(0x1fc)]),_0x16f039;}static[a84_0x1aaf49(0x24b)](){const _0x8a00bb=a84_0x1aaf49,_0x57d824={'niEMI':function(_0x22131d,_0x403857){return _0x22131d(_0x403857);},'LMvjl':_0x8a00bb(0x233),'GIhNH':_0x8a00bb(0x218)},_0xedbd34=this[_0x8a00bb(0x268)]();try{if(_0x57d824[_0x8a00bb(0x28d)](isNullOrEmpty,_0xedbd34))throw new Error(_0x57d824[_0x8a00bb(0x2a5)]);const _0x4b8787=path[_0x8a00bb(0x231)](_0xedbd34,_0x57d824['GIhNH']);return!fs['existsSync'](_0x4b8787)&&_0x57d824[_0x8a00bb(0x28d)](createDir,_0x4b8787),_0x4b8787;}catch(_0x95abad){logger['debug'](_0x8a00bb(0x261)+util[_0x8a00bb(0x21c)](_0x95abad));}}static['getWritableDir'](){const _0x201d1a=a84_0x1aaf49,_0x2d675f={'LuWWU':_0x201d1a(0x25f),'RVjPs':function(_0x49c5bc,_0x4391a3){return _0x49c5bc(_0x4391a3);},'GEfbn':function(_0x452754,_0x19ae95){return _0x452754(_0x19ae95);},'FQabO':function(_0x10906b,_0x2f4dd1){return _0x10906b(_0x2f4dd1);},'YmYKQ':function(_0xa733ca,_0x42fad6){return _0xa733ca(_0x42fad6);}},_0x339cc5=[process[_0x201d1a(0x27e)][_0x201d1a(0x241)],path[_0x201d1a(0x231)](os[_0x201d1a(0x214)](),_0x2d675f[_0x201d1a(0x1fb)]),path[_0x201d1a(0x231)](os[_0x201d1a(0x25d)](),_0x2d675f[_0x201d1a(0x1fb)])];for(const _0x5afe15 of _0x339cc5){if(_0x2d675f['RVjPs'](isNullOrEmpty,_0x5afe15))continue;try{if(fs[_0x201d1a(0x26e)](_0x5afe15)){logger[_0x201d1a(0x220)](_0x201d1a(0x21e)+_0x5afe15+_0x201d1a(0x20e));if(!_0x2d675f['RVjPs'](isModifiable,_0x5afe15)){logger[_0x201d1a(0x220)]('Setting\x20required\x20permissions\x20to\x20'+_0x5afe15);const _0x4ee86d=_0x2d675f[_0x201d1a(0x1e3)](setReadWriteExecuteAccess,_0x5afe15);if(!_0x2d675f[_0x201d1a(0x1d4)](isTrue,_0x4ee86d)){logger[_0x201d1a(0x275)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x5afe15);continue;}}}else{logger[_0x201d1a(0x220)]('Folder\x20does\x20not\x20exist:\x20'+_0x5afe15),_0x2d675f[_0x201d1a(0x1e5)](createDir,_0x5afe15),logger[_0x201d1a(0x220)](_0x201d1a(0x202)+_0x5afe15);const _0x59023c=_0x2d675f[_0x201d1a(0x1e3)](setReadWriteExecuteAccess,_0x5afe15);!_0x2d675f[_0x201d1a(0x286)](isTrue,_0x59023c)&&logger[_0x201d1a(0x275)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x5afe15);}return _0x5afe15;}catch(_0x480071){logger[_0x201d1a(0x23c)](_0x201d1a(0x216)+util[_0x201d1a(0x21c)](_0x480071));}}return null;}static['getExistingCliPath'](_0x4faffd){const _0x36bf9b=a84_0x1aaf49,_0x5427e1={};_0x5427e1[_0x36bf9b(0x225)]=function(_0x37bf67,_0x34140e){return _0x37bf67>_0x34140e;},_0x5427e1[_0x36bf9b(0x245)]=function(_0x733936,_0x2984b4){return _0x733936>_0x2984b4;};const _0x109e4d=_0x5427e1;try{if(!fs['existsSync'](_0x4faffd)||!fs[_0x36bf9b(0x22a)](_0x4faffd)['isDirectory']())return'';const _0x42585d=fs[_0x36bf9b(0x243)](_0x4faffd)[_0x36bf9b(0x269)](_0x45ccd1=>path[_0x36bf9b(0x231)](_0x4faffd,_0x45ccd1))['filter'](_0x2727f8=>fs[_0x36bf9b(0x22a)](_0x2727f8)[_0x36bf9b(0x249)]()&&path[_0x36bf9b(0x1d2)](_0x2727f8)[_0x36bf9b(0x203)](_0x36bf9b(0x21f)));if(_0x109e4d[_0x36bf9b(0x245)](_0x42585d['length'],0x0)){const _0x38ce5a=_0x42585d[_0x36bf9b(0x269)](_0x5a8caa=>({'filePath':_0x5a8caa,'mtime':fs['statSync'](_0x5a8caa)['mtime']}))[_0x36bf9b(0x236)]((_0x2c4a89,_0x411cfe)=>{const _0x454fa2=_0x36bf9b;if(!_0x2c4a89||!_0x2c4a89[_0x454fa2(0x1e0)])return _0x411cfe;if(_0x109e4d['aXyMp'](_0x411cfe[_0x454fa2(0x1e0)],_0x2c4a89[_0x454fa2(0x1e0)]))return _0x411cfe;return _0x2c4a89;},{});return _0x38ce5a?_0x38ce5a[_0x36bf9b(0x1f7)]:'';}return'';}catch(_0x97d843){return logger['error'](_0x36bf9b(0x230)+util[_0x36bf9b(0x21c)](_0x97d843)),'';}}static [a84_0x1aaf49(0x287)]=async(_0x1d5a7b,_0x322edb)=>{const _0x7064d2=a84_0x1aaf49,_0x361ac3={'rJYHN':function(_0xaf7311,_0x1cca33,_0x5cf193,_0x2b6d70,_0xceeb97){return _0xaf7311(_0x1cca33,_0x5cf193,_0x2b6d70,_0xceeb97);},'Wpdzu':_0x7064d2(0x22b)},_0x4320f2={};_0x4320f2['qs']=_0x1d5a7b;const _0x5c4556=await _0x361ac3['rJYHN'](nodeRequest,_0x361ac3[_0x7064d2(0x212)],UPDATED_CLI_ENDPOINT,_0x4320f2,_0x322edb);return logger[_0x7064d2(0x220)](_0x7064d2(0x283)+JSON['stringify'](_0x5c4556)),_0x5c4556;};static[a84_0x1aaf49(0x20a)](_0x104ab9){const _0x5613ee=a84_0x1aaf49;try{const _0x52b8a3=fs[_0x5613ee(0x2a9)](_0x104ab9,'r+');return fs[_0x5613ee(0x1ef)](_0x52b8a3),![];}catch(_0x2fa69d){if(BINARY_BUSY_ERROR_CODES['includes'](_0x2fa69d[_0x5613ee(0x291)]))return logger[_0x5613ee(0x220)](_0x5613ee(0x254)+_0x104ab9),!![];return logger['debug']('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x2fa69d['message']),![];}}static[a84_0x1aaf49(0x26b)](_0x4a2792,_0x8cdc00=''){const _0x3c08ab=a84_0x1aaf49,_0x4f010b={'VXSRZ':function(_0x35325b,_0x4781ff){return _0x35325b(_0x4781ff);},'BYEwn':_0x3c08ab(0x279),'pIvKF':_0x3c08ab(0x1e7),'aglrQ':function(_0x5a7a89,_0x14692d){return _0x5a7a89(_0x14692d);},'qAECz':function(_0x472d81,_0x3ec141,_0x4ccda2,_0x5c16df){return _0x472d81(_0x3ec141,_0x4ccda2,_0x5c16df);},'QurLA':_0x3c08ab(0x23c)};return new Promise((_0x35e41c,_0x329d72)=>{const _0x236775=_0x3c08ab,_0x259f3={'wXlFJ':_0x4f010b[_0x236775(0x244)],'KZgZO':function(_0x2025b2,_0x2dd61b){const _0x1d5d9b=_0x236775;return _0x4f010b[_0x1d5d9b(0x299)](_0x2025b2,_0x2dd61b);},'bSXUh':_0x4f010b['BYEwn'],'gvvIh':function(_0x41be9d,_0xde2694){return _0x4f010b['aglrQ'](_0x41be9d,_0xde2694);}},_0x3393fc={};_0x3393fc[_0x236775(0x1d5)]=_0x8cdc00,_0x3393fc[_0x236775(0x270)]=0x1388;const _0x3d4371=_0x4f010b[_0x236775(0x257)](exec,_0x4a2792,_0x3393fc,(_0x5700c9,_0x2a1103,_0x4959ae)=>{const _0x3c6f68=_0x236775;if(_0x5700c9){if(_0x4a2792['includes'](_0x259f3[_0x3c6f68(0x1ec)])&&(_0x2a1103[_0x3c6f68(0x293)]()||_0x4959ae[_0x3c6f68(0x293)]())){const _0x238ff9=_0x2a1103[_0x3c6f68(0x293)]()||_0x4959ae[_0x3c6f68(0x293)]();logger[_0x3c6f68(0x220)](_0x3c6f68(0x2a6)+_0x238ff9+'\x22'),_0x259f3[_0x3c6f68(0x2ad)](_0x35e41c,_0x238ff9);}else _0x259f3[_0x3c6f68(0x2ad)](_0x35e41c,_0x4959ae[_0x3c6f68(0x293)]()||_0x259f3['bSXUh']);}else logger[_0x3c6f68(0x220)](_0x3c6f68(0x25a)+_0x2a1103[_0x3c6f68(0x293)]()+'\x22'),_0x259f3[_0x3c6f68(0x27f)](_0x35e41c,_0x2a1103['trim']());});_0x3d4371['on'](_0x4f010b['QurLA'],()=>{const _0x3041bd=_0x236775;_0x4f010b[_0x3041bd(0x26c)](_0x35e41c,_0x4f010b[_0x3041bd(0x209)]);});});}static [a84_0x1aaf49(0x2af)]=async(_0x40f66c,_0x1fb9f1)=>{const _0x4f69e9=a84_0x1aaf49,_0x2ed0f0={'JIciE':_0x4f69e9(0x1d6),'qFTcC':function(_0x5f3c17,_0xe119d7){return _0x5f3c17(_0xe119d7);},'CRiWs':_0x4f69e9(0x23c),'JEdJI':_0x4f69e9(0x1de)};PerformanceTester[_0x4f69e9(0x2a7)](PerformanceEvents[_0x4f69e9(0x28a)]),logger['debug'](_0x4f69e9(0x23b)+_0x40f66c);try{const _0x395b0c=url['parse'](_0x40f66c),_0x19da72=path[_0x4f69e9(0x231)](_0x1fb9f1,_0x4f69e9(0x23e)+process[_0x4f69e9(0x1f4)]+_0x4f69e9(0x228)),_0x2187b9=fs[_0x4f69e9(0x1da)](_0x19da72);return new Promise((_0x41bf33,_0x3b13b0)=>{const _0x64d875=_0x4f69e9,_0x5c1b49={'SSjwA':_0x2ed0f0[_0x64d875(0x239)],'QsOJh':function(_0x2f1f93,_0x4c3a77){const _0x527d8e=_0x64d875;return _0x2ed0f0[_0x527d8e(0x29e)](_0x2f1f93,_0x4c3a77);}};https['get'](_0x395b0c,function(_0x2beccf){const _0x112c36=_0x64d875,_0x3145f7={'IIfNX':_0x2ed0f0[_0x112c36(0x1cf)],'hZJsp':function(_0x32e3cd,_0x207001){return _0x2ed0f0['qFTcC'](_0x32e3cd,_0x207001);},'mUCEF':function(_0x50fe1e,_0x2a40c4){const _0x537ff4=_0x112c36;return _0x2ed0f0[_0x537ff4(0x29e)](_0x50fe1e,_0x2a40c4);}},_0x11cbe1=null;_0x2beccf[_0x112c36(0x1ee)](_0x2187b9),_0x2beccf['on'](_0x2ed0f0[_0x112c36(0x27d)],function(_0x439a6b){const _0xaa5257=_0x112c36;logger['error'](util['format'](_0x5c1b49[_0xaa5257(0x22c)],_0x439a6b)),PerformanceTester['end'](PerformanceEvents[_0xaa5257(0x28a)],![],util[_0xaa5257(0x21c)](_0x439a6b)),_0x5c1b49[_0xaa5257(0x23a)](_0x3b13b0,_0x439a6b);}),_0x2187b9['on'](_0x2ed0f0[_0x112c36(0x27d)],function(_0x446806){const _0x323bb2=_0x112c36;logger[_0x323bb2(0x23c)](util[_0x323bb2(0x21c)](_0x3145f7['IIfNX'],_0x446806)),PerformanceTester[_0x323bb2(0x204)](PerformanceEvents[_0x323bb2(0x28a)],![],util[_0x323bb2(0x21c)](_0x446806)),_0x3145f7[_0x323bb2(0x23d)](_0x3b13b0,_0x446806);}),CLIUtils[_0x112c36(0x238)](_0x2187b9,_0x11cbe1,_0x19da72,_0x1fb9f1,_0x357356=>{const _0x4845b4=_0x112c36;PerformanceTester[_0x4845b4(0x204)](PerformanceEvents[_0x4845b4(0x28a)]),_0x3145f7[_0x4845b4(0x23d)](_0x41bf33,_0x357356);},_0x164889=>{const _0x82dbfb=_0x112c36;PerformanceTester['end'](PerformanceEvents[_0x82dbfb(0x28a)],![],util[_0x82dbfb(0x21c)](_0x164889)),_0x3145f7[_0x82dbfb(0x2aa)](_0x3b13b0,_0x164889);});})['on'](_0x2ed0f0[_0x64d875(0x27d)],function(_0xd04c14){const _0x1666a1=_0x64d875;logger[_0x1666a1(0x23c)](_0x1666a1(0x297)+util[_0x1666a1(0x21c)](_0xd04c14)),PerformanceTester[_0x1666a1(0x204)](PerformanceEvents[_0x1666a1(0x28a)],![],util[_0x1666a1(0x21c)](_0xd04c14)),_0x5c1b49[_0x1666a1(0x23a)](_0x3b13b0,_0xd04c14);});});}catch(_0x12c4f3){PerformanceTester[_0x4f69e9(0x204)](PerformanceEvents[_0x4f69e9(0x28a)],![],util[_0x4f69e9(0x21c)](_0x12c4f3)),logger[_0x4f69e9(0x220)](_0x4f69e9(0x1ea)+util[_0x4f69e9(0x21c)](_0x12c4f3));}};static[a84_0x1aaf49(0x238)](_0x1c2ff5,_0x3463e3,_0x293dc9,_0x301bb5,_0x37bf4b,_0x6761df){const _0x1c747f=a84_0x1aaf49,_0x3c3793={'uWNyQ':function(_0x4b648e,_0x5aa984){return _0x4b648e(_0x5aa984);},'YDucn':function(_0x4ba9e1,_0x597a3b){return _0x4ba9e1(_0x597a3b);},'yHoyF':function(_0x23ac3,_0x583698){return _0x23ac3(_0x583698);},'wXUuL':_0x1c747f(0x213),'QBrXj':_0x1c747f(0x23c),'lMiwn':_0x1c747f(0x204),'oLnta':_0x1c747f(0x252),'TNqEo':function(_0x283d96,_0x56eb64){return _0x283d96(_0x56eb64);},'jsbFY':function(_0x1d465f,_0x2d54ec){return _0x1d465f!==_0x2d54ec;},'jDhlE':function(_0x3e37cb,_0x1fc8e6){return _0x3e37cb(_0x1fc8e6);},'ZSydB':function(_0x1ae256,_0xb95f66){return _0x1ae256(_0xb95f66);},'ZHsQX':function(_0x134cb8,_0x3eb549){return _0x134cb8!==_0x3eb549;},'LGuZA':'EXDEV','sHZeH':_0x1c747f(0x22e)};_0x1c2ff5['on'](_0x3c3793[_0x1c747f(0x210)],function(){const _0x457675=_0x1c747f,_0x137ba8={'Aejfo':_0x3c3793[_0x457675(0x210)],'DjPVR':function(_0x4efb14,_0x203b49){const _0x2c68a0=_0x457675;return _0x3c3793[_0x2c68a0(0x29b)](_0x4efb14,_0x203b49);},'MmDmL':_0x3c3793['lMiwn'],'QqyST':function(_0x4ba461,_0x158d0c){const _0xe70517=_0x457675;return _0x3c3793[_0xe70517(0x1e4)](_0x4ba461,_0x158d0c);},'wffRl':function(_0x525821,_0x21dd25){const _0x281049=_0x457675;return _0x3c3793[_0x281049(0x256)](_0x525821,_0x21dd25);},'gTYjl':function(_0x196e99,_0x40fdfb){const _0x55d191=_0x457675;return _0x3c3793[_0x55d191(0x1f5)](_0x196e99,_0x40fdfb);},'otubr':_0x3c3793[_0x457675(0x1eb)],'sHudw':function(_0x33185e,_0x1ae6e2){return _0x3c3793['ZHsQX'](_0x33185e,_0x1ae6e2);},'lKGqh':_0x3c3793[_0x457675(0x1fe)],'YCbGm':function(_0x4e00e4,_0x3ac099){return _0x3c3793['jDhlE'](_0x4e00e4,_0x3ac099);},'jGAuk':_0x3c3793['sHZeH']},_0x509df2={};_0x509df2['lazyEntries']=!![],yauzl[_0x457675(0x280)](_0x293dc9,_0x509df2,function(_0x3c7916,_0x1aca02){const _0x527da8=_0x457675,_0x2e7c8b={'wAiub':function(_0x49cef8,_0x3234e3){const _0x4451a3=a84_0x5100;return _0x3c3793[_0x4451a3(0x265)](_0x49cef8,_0x3234e3);},'opCNp':function(_0x481555,_0xe12b61){const _0x39275e=a84_0x5100;return _0x3c3793[_0x39275e(0x265)](_0x481555,_0xe12b61);},'BbNlC':function(_0x332bb7,_0x444dc7){const _0x3339f4=a84_0x5100;return _0x3c3793[_0x3339f4(0x28f)](_0x332bb7,_0x444dc7);}};if(_0x3c7916){_0x3c3793[_0x527da8(0x2b1)](_0x6761df,_0x3c7916);return;}_0x1aca02[_0x527da8(0x211)](),_0x1aca02['on'](_0x3c3793[_0x527da8(0x28b)],_0x563c73=>{const _0x15cc39=_0x527da8,_0x562ed6={'cSLAB':_0x137ba8['Aejfo'],'nxaaY':function(_0x18bf68,_0x1b9355){return _0x137ba8['DjPVR'](_0x18bf68,_0x1b9355);},'XJNXO':_0x137ba8[_0x15cc39(0x227)]};if(/\/$/['test'](_0x563c73[_0x15cc39(0x206)])){_0x1aca02[_0x15cc39(0x211)]();return;}!_0x3463e3&&(_0x3463e3=_0x563c73[_0x15cc39(0x206)]);if(_0x137ba8[_0x15cc39(0x260)](_0x563c73[_0x15cc39(0x206)],_0x3463e3))_0x1aca02['readEntry']();else{const _0x1f54d0=_0x563c73[_0x15cc39(0x206)],_0x47c9d1=path[_0x15cc39(0x231)](_0x301bb5,_0x1f54d0+_0x15cc39(0x246)+process[_0x15cc39(0x1f4)]);let _0x1727d3;try{_0x1727d3=fs['createWriteStream'](_0x47c9d1);}catch(_0xff58a8){if(BINARY_BUSY_ERROR_CODES['includes'](_0xff58a8[_0x15cc39(0x291)])){const _0x4dbff2=path[_0x15cc39(0x231)](_0x301bb5,_0x1f54d0);if(fs[_0x15cc39(0x26e)](_0x4dbff2)){logger[_0x15cc39(0x275)](_0x15cc39(0x277)+_0x1f54d0),fs[_0x15cc39(0x250)](_0x293dc9,_0x4632f3=>{const _0x4c3c1e=_0x15cc39;_0x4632f3&&logger['warn'](_0x4c3c1e(0x226)+_0x293dc9);}),_0x137ba8[_0x15cc39(0x20c)](_0x37bf4b,_0x4dbff2);return;}logger[_0x15cc39(0x275)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x1f54d0);}_0x137ba8[_0x15cc39(0x1d1)](_0x6761df,_0xff58a8);return;}_0x1727d3['on'](_0x137ba8['otubr'],_0x18f18a=>{const _0x4144bb=_0x15cc39;if(BINARY_BUSY_ERROR_CODES[_0x4144bb(0x1d7)](_0x18f18a[_0x4144bb(0x291)])){const _0x117c08=path[_0x4144bb(0x231)](_0x301bb5,_0x1f54d0);_0x1727d3[_0x4144bb(0x252)](),fs[_0x4144bb(0x26e)](_0x117c08)?(logger[_0x4144bb(0x275)](_0x4144bb(0x21d)+_0x18f18a['message']),_0x1aca02['close'](),fs[_0x4144bb(0x250)](_0x293dc9,_0x57706a=>{const _0x7917bf=_0x4144bb;_0x57706a&&logger[_0x7917bf(0x275)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x293dc9);}),_0x2e7c8b[_0x4144bb(0x24c)](_0x37bf4b,_0x117c08)):(logger[_0x4144bb(0x275)](_0x4144bb(0x29a)+_0x18f18a[_0x4144bb(0x25e)]),fs[_0x4144bb(0x250)](_0x47c9d1,()=>{}),_0x2e7c8b[_0x4144bb(0x2a1)](_0x6761df,_0x18f18a));}else fs['unlink'](_0x47c9d1,()=>{}),_0x2e7c8b['BbNlC'](_0x6761df,_0x18f18a);}),_0x1aca02['openReadStream'](_0x563c73,function(_0x21b041,_0x2bc4b5){const _0x3f1e5a=_0x15cc39;if(_0x21b041){fs['unlink'](_0x47c9d1,()=>{}),_0x562ed6[_0x3f1e5a(0x26f)](_0x6761df,_0x21b041);return;}_0x2bc4b5['on'](_0x562ed6[_0x3f1e5a(0x2a2)],function(){const _0x20f056=_0x3f1e5a;_0x1727d3[_0x20f056(0x204)](),_0x1727d3['on'](_0x562ed6[_0x20f056(0x24d)],function(){const _0x24ace8=_0x20f056;_0x1aca02[_0x24ace8(0x211)]();});}),_0x2bc4b5['pipe'](_0x1727d3);});}}),_0x1aca02['on'](_0x3c3793[_0x527da8(0x1eb)],_0x3acadc=>{_0x137ba8['wffRl'](_0x6761df,_0x3acadc);}),_0x1aca02['once'](_0x3c3793[_0x527da8(0x2a0)],()=>{const _0x230b83=_0x527da8,_0x45d25f={'pVyOU':function(_0x2ec300,_0x3438a3){const _0x35b898=a84_0x5100;return _0x137ba8[_0x35b898(0x20d)](_0x2ec300,_0x3438a3);},'qXyBS':_0x137ba8[_0x230b83(0x1f2)],'jpDUG':function(_0x1a12a9,_0x42f3c5){return _0x137ba8['YCbGm'](_0x1a12a9,_0x42f3c5);},'dHHTE':function(_0x23ac7f,_0x732a1){const _0x48d1d6=_0x230b83;return _0x137ba8[_0x48d1d6(0x20c)](_0x23ac7f,_0x732a1);},'GYkkN':function(_0x5c87b3,_0xb7f4ff){return _0x137ba8['gTYjl'](_0x5c87b3,_0xb7f4ff);}};fs[_0x230b83(0x250)](_0x293dc9,_0x5dfc76=>{const _0x17634d=_0x230b83;_0x5dfc76&&logger['warn'](_0x17634d(0x226)+_0x293dc9);});const _0x1a9fb4=path[_0x230b83(0x231)](_0x301bb5,_0x3463e3+_0x230b83(0x246)+process[_0x230b83(0x1f4)]),_0x503e71=path[_0x230b83(0x231)](_0x301bb5,_0x3463e3);fs[_0x230b83(0x29d)](_0x1a9fb4,_0x137ba8[_0x230b83(0x208)],function(_0x5aa1e2){const _0x5489f4=_0x230b83;if(_0x5aa1e2){_0x1aca02[_0x5489f4(0x252)](),fs[_0x5489f4(0x250)](_0x1a9fb4,()=>{}),_0x2e7c8b[_0x5489f4(0x2a1)](_0x6761df,_0x5aa1e2);return;}fs[_0x5489f4(0x253)](_0x1a9fb4,_0x503e71,function(_0x1fa9a4){const _0x29bce3=_0x5489f4;if(_0x1fa9a4){if(_0x45d25f[_0x29bce3(0x217)](_0x1fa9a4['code'],_0x45d25f['qXyBS'])){_0x1aca02[_0x29bce3(0x252)](),fs[_0x29bce3(0x250)](_0x1a9fb4,()=>{}),_0x45d25f['jpDUG'](_0x6761df,_0x1fa9a4);return;}logger[_0x29bce3(0x275)](_0x29bce3(0x2a3)+_0x1fa9a4[_0x29bce3(0x25e)]);try{fs[_0x29bce3(0x248)](_0x1a9fb4,_0x503e71);}catch(_0x4e610a){_0x1aca02[_0x29bce3(0x252)](),fs[_0x29bce3(0x250)](_0x1a9fb4,()=>{}),_0x45d25f['dHHTE'](_0x6761df,_0x4e610a);return;}fs[_0x29bce3(0x250)](_0x1a9fb4,_0x2f6595=>{const _0x26e58d=_0x29bce3;_0x2f6595&&logger[_0x26e58d(0x275)](_0x26e58d(0x20b)+_0x2f6595[_0x26e58d(0x25e)]);});}_0x1aca02[_0x29bce3(0x252)](),_0x45d25f['GYkkN'](_0x37bf4b,_0x503e71);});});});});});}static['getTestFrameworkDetail'](){const _0x35ec95=a84_0x1aaf49;if(process[_0x35ec95(0x27e)][_0x35ec95(0x22d)])return JSON['parse'](process[_0x35ec95(0x27e)][_0x35ec95(0x22d)]);return this[_0x35ec95(0x255)];}static['getAutomationFrameworkDetail'](){const _0x57aca4=a84_0x1aaf49;if(process['env'][_0x57aca4(0x24f)])return JSON['parse'](process[_0x57aca4(0x27e)][_0x57aca4(0x24f)]);return this['automationFrameworkDetail'];}static[a84_0x1aaf49(0x1e1)](_0x3927fd,_0x3e1642){const _0x394ecb=a84_0x1aaf49,_0x3c31d3={'teqEc':_0x394ecb(0x1e9),'PPOJT':function(_0x475eba,_0x402b5c){return _0x475eba(_0x402b5c);},'kGCIR':function(_0x3009e8,_0x3a26b4){return _0x3009e8||_0x3a26b4;},'sTElh':function(_0x5cbde2,_0x147916){return _0x5cbde2(_0x147916);}},_0x176d13=_0x3c31d3[_0x394ecb(0x1d0)][_0x394ecb(0x2a8)]('|');let _0x562734=0x0;while(!![]){switch(_0x176d13[_0x562734++]){case'0':this[_0x394ecb(0x255)]={'name':_0x3927fd,'version':{[_0x3927fd]:_0x3c31d3[_0x394ecb(0x207)](getFrameworkVersion,_0x3927fd)}};continue;case'1':process[_0x394ecb(0x27e)][_0x394ecb(0x24f)]=JSON[_0x394ecb(0x247)](this[_0x394ecb(0x221)]);continue;case'2':_0x3c31d3[_0x394ecb(0x223)](!_0x3927fd,!_0x3e1642)&&logger[_0x394ecb(0x220)](_0x394ecb(0x294)+_0x3927fd+_0x394ecb(0x298)+_0x3e1642);continue;case'3':process[_0x394ecb(0x27e)][_0x394ecb(0x22d)]=JSON['stringify'](this['testFrameworkDetail']);continue;case'4':this['automationFrameworkDetail']={'name':_0x3e1642,'version':_0x3c31d3['sTElh'](getFrameworkVersion,_0x3e1642)};continue;}break;}}static[a84_0x1aaf49(0x205)](_0xd2d402,_0x1a802b){return _0xd2d402+':'+_0x1a802b;}static[a84_0x1aaf49(0x1e2)](){const _0xafd1d3=a84_0x1aaf49;return process[_0xafd1d3(0x1f4)]+':'+threadId;}static[a84_0x1aaf49(0x215)](_0x458d24){const _0x3d62a1=a84_0x1aaf49;if(_0x458d24[_0x3d62a1(0x1dd)]&&_0x458d24[_0x3d62a1(0x1dd)]['skipSessionName'])return!![];return![];}static['shouldSkipSessionStatus'](_0x28afcd){const _0x56e34e=a84_0x1aaf49;if(_0x28afcd[_0x56e34e(0x1dd)]&&_0x28afcd[_0x56e34e(0x1dd)]['skipSessionStatus'])return!![];return![];}static[a84_0x1aaf49(0x1df)](_0x4da01c){const _0x5a51c9=a84_0x1aaf49,_0x19843c=new RegExp(TestFrameworkConstants[_0x5a51c9(0x25c)]);return _0x19843c['test'](_0x4da01c);}static[a84_0x1aaf49(0x292)](_0xeb9ebb,_0x2ad8bb){const _0x267b61=a84_0x1aaf49,_0x57b7eb={};_0x57b7eb[_0x267b61(0x1f8)]=function(_0x557ca3,_0x42d832){return _0x557ca3!==_0x42d832;},_0x57b7eb[_0x267b61(0x224)]=function(_0x26b767,_0x1ff61a){return _0x26b767===_0x1ff61a;},_0x57b7eb[_0x267b61(0x27c)]=_0x267b61(0x259);const _0x3875e0=_0x57b7eb;for(const [_0x547303,_0x48ca65]of Object[_0x267b61(0x229)](_0x2ad8bb)){if(_0x3875e0['etvTe'](_0x48ca65,null)&&_0x3875e0[_0x267b61(0x224)](typeof _0x48ca65,_0x3875e0['jyIFp'])&&!Array[_0x267b61(0x21b)](_0x48ca65))_0xeb9ebb[_0x547303]=this['mergeObject'](_0xeb9ebb[_0x547303]||{},_0x48ca65);else Array[_0x267b61(0x21b)](_0x48ca65)?_0xeb9ebb[_0x547303]=(_0xeb9ebb[_0x547303]||[])[_0x267b61(0x232)](_0x48ca65):_0xeb9ebb[_0x547303]=_0x48ca65;}return _0xeb9ebb;}}function a84_0x5100(_0x381b3c,_0x43f967){const _0x3ce788=a84_0x3ce7();return a84_0x5100=function(_0x5100e9,_0x509a08){_0x5100e9=_0x5100e9-0x1cf;let _0x3ea317=_0x3ce788[_0x5100e9];return _0x3ea317;},a84_0x5100(_0x381b3c,_0x43f967);}module[a84_0x1aaf49(0x1e6)]=CLIUtils;function a84_0x3ce7(){const _0x450cda=['Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','TNqEo','qBQGB','chmod','qFTcC','27TDWtcF','lMiwn','opCNp','XJNXO','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','../../helpers/classLogger.js','LMvjl','CLI\x20version\x20found\x20despite\x20error:\x20\x22','start','split','openSync','mUCEF','3TPNJqq','HvrYR','KZgZO','gGCnI','downloadLatestBinary','setupCliPath','yHoyF','JIciE','teqEc','gTYjl','basename','getExistingCliPath','RVjPs','cwd','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','includes','../../helpers/utilities','info','createWriteStream','yauzl','IBMlV','testContextOptions','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','matchHookRegex','mtime','setFrameworkDetail','getCurrentInstanceName','GEfbn','jsbFY','FQabO','exports','version','Configuring\x20Cli\x20path.','2|0|4|1|3','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','QBrXj','wXlFJ','816708rlYIaI','pipe','closeSync','arch','../../helpers/helper','lKGqh','url','pid','ZSydB','Resolved\x20binary\x20path:\x20','filePath','etvTe','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','./instances/testFrameworkInstance.js','LuWWU','SDK_CLI_CHECK_UPDATE','../utils/constants','LGuZA','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','FqxLS','getSdkLanguage','Setting\x20required\x20permissions\x20to\x20','startsWith','end','getHookRegistryKey','fileName','PPOJT','jGAuk','BYEwn','isBinaryBusy','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','wffRl','sHudw','\x20already\x20exists','./state/automationFrameworkState.js','oLnta','readEntry','Wpdzu','entry','homedir','shouldSkipSessionName','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','pVyOU','cli','development','../../../package.json','isArray','format','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Folder\x20','binary-','debug','automationFrameworkDetail','62EkNDQQ','kGCIR','pjaPY','aXyMp','Failed\x20to\x20delete\x20zip\x20file:\x20','MmDmL','.zip','entries','statSync','GET','SSjwA','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','0755','FzBhE','Error\x20while\x20reading\x20CLI\x20path:\x20','join','concat','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','3126908wOhRfG','util','reduce','3944808kOjWIp','downloadFileStream','JEdJI','QsOJh','Downloading\x20SDK\x20binary\x20from:\x20','error','hZJsp','downloaded_file_','.sock','822195pDOBKY','BROWSERSTACK_FILES_DIR','lrjxy','readdirSync','pIvKF','avcat','.tmp.','stringify','copyFileSync','isFile','path','getCliDir','wAiub','cSLAB','10103ZjFMnI','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','unlink','SDK_CLI_BIN_PATH','close','rename','Binary\x20is\x20busy:\x20','testFrameworkDetail','jDhlE','qAECz','listen','object','Resolving\x20with\x20stdout:\x20\x22','cli_version','HOOK_REGEX','tmpdir','message','.browserstack','QqyST','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','../../helpers/performance/constants','BROWSERSTACK_BINARY_URL','./framework/constants/testFrameworkConstants.js','uWNyQ','platform','worker_threads','getWritableDir','map','checkAndUpdateCli','runShellCommand','VXSRZ','Current\x20CLI\x20Path\x20Found:\x20','existsSync','nxaaY','timeout','../../helpers/performance/performance-tester.js','JYyQl','LssjS','follow-redirects','warn','Development\x20Cli\x20Path:\x20','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','data','SHELL_EXECUTE_ERROR','./state/testFrameworkState.js','unix:/tmp/sdk-platform-','jyIFp','CRiWs','env','gvvIh','open','7242816EOoSly','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','response\x20','aVwoL','getCLIParamsForDevEnv','YmYKQ','requestToUpdateCLI','./state/hookState.js','getSdkVersion','SDK_CLI_DOWNLOAD','wXUuL','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','niEMI','3477020tboHnQ','YDucn','UQqEl','code','mergeObject','trim','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','BROWSERSTACK_CLI_ENV','ipVEo','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20',',\x20automationFramework=','aglrQ'];a84_0x3ce7=function(){return _0x450cda;};return a84_0x3ce7();}
|
|
1
|
+
const a84_0x20c3d9=a84_0xe995;function a84_0xe995(_0x5531a3,_0x1fe06d){const _0x5b573a=a84_0x5b57();return a84_0xe995=function(_0xe99558,_0x17c38d){_0xe99558=_0xe99558-0x173;let _0x5ac504=_0x5b573a[_0xe99558];return _0x5ac504;},a84_0xe995(_0x5531a3,_0x1fe06d);}(function(_0x574557,_0x307e0a){const _0x107d04=a84_0xe995,_0x5406de=_0x574557();while(!![]){try{const _0x317790=-parseInt(_0x107d04(0x17e))/0x1*(-parseInt(_0x107d04(0x1f6))/0x2)+-parseInt(_0x107d04(0x203))/0x3*(-parseInt(_0x107d04(0x20f))/0x4)+parseInt(_0x107d04(0x192))/0x5*(parseInt(_0x107d04(0x198))/0x6)+parseInt(_0x107d04(0x1dc))/0x7+-parseInt(_0x107d04(0x206))/0x8+parseInt(_0x107d04(0x196))/0x9*(-parseInt(_0x107d04(0x1a8))/0xa)+-parseInt(_0x107d04(0x1be))/0xb*(parseInt(_0x107d04(0x176))/0xc);if(_0x317790===_0x307e0a)break;else _0x5406de['push'](_0x5406de['shift']());}catch(_0x309837){_0x5406de['push'](_0x5406de['shift']());}}}(a84_0x5b57,0xe728c));function a84_0x5b57(){const _0x35dbb7=['fRJPG','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','podnm','exCXO','downloadLatestBinary','testFrameworkDetail','KiyYy','HCzuN','MSexu','./instances/testFrameworkInstance.js','YdNud','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','qqNGt','error','Resolved\x20binary\x20path:\x20','LYiYI','qrKTG','BROWSERSTACK_CLI_ENV','.zip','unix:/tmp/sdk-platform-','url','36ymyOVB','copyFileSync','lazyEntries','./state/hookState.js','getWritableDir','zuuXb','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','join','1ukimoi','SDK_CLI_DOWNLOAD','statSync','unlink','bcpYy','0|3|2|4|1','exports','sjVAe','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','IvfUD','getSdkVersion','gNsHv','yxJOJ','daNka','SDK_CLI_BIN_PATH','WbIEc','GccPR','zjjjJ','\x20version','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','32835Bfxjew','beWyD','XqhnF','info','36tgmtqp','BROWSERSTACK_FILES_DIR','834qDHGxF','Configuring\x20Cli\x20path.','cli','PqXlu','Development\x20Cli\x20Path:\x20','NtNtD','entry','iOmqj','IiWhn','length','IgcfJ','bRXPp','SHELL_EXECUTE_ERROR','../../helpers/test-observability/utils.js','./state/automationFrameworkState.js','PDiuS','2002180FrdkqO','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','AzRHd','runShellCommand','MtxsC','matchHookRegex','EaRXt','tmpdir','SDK_CLI_CHECK_UPDATE','end','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','shouldSkipSessionName','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','code','createWriteStream','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','NvwiP','cwd','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','isArray','fileName','nOLig','7901839XSJAFL','cfnEp','DkQev','BROWSERSTACK_BINARY_URL','\x20already\x20exists','xCirR','cli_version','map','../../helpers/utilities','downloadFileStream','message','openReadStream','close','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','start','includes','pid','sIKtK','CLIUtils','Downloading\x20SDK\x20binary\x20from:\x20','../../helpers/performance/performance-tester.js','gPlLe','Error\x20while\x20reading\x20CLI\x20path:\x20','concat','pipe','getCurrentInstanceName','nRsDz','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','tzMgb','KXmap','8695022DFcrDb','util','reduce','lywos','binary-','wXcah','KbXcp','test','NuYSO','JKcEo','../../helpers/performance/constants','getTestFrameworkDetail','ysADP','.tmp.','YaNug','getExistingCliPath','./state/testFrameworkState.js','trim','BkSxL','timeout','iyLgA','amlPG','platform','rCBcu','get','parse','3431486gpnXpL','env','isDevelopmentEnv','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','node','yWHdj','requestToUpdateCLI','coALB','version','existsSync','EXDEV','mtime','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','332535RpiAdn','hvcej','moXmv','4177440MSDMLG','OLaXS','.browserstack','isFile','FGkNs','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','filePath','downloaded_file_','KtQDu','20NUGbfH','data','readEntry','OUeOf','debug','xzCrN','getCliDir','format','getAutomationFrameworkDetail','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','IeRRJ','../utils/apiUtilityMethods.js','TMmsM','XYByr','TVStC','amLpx','ccrrg','listen','warn','arch','NghBu','GET','openSync','chmod','follow-redirects','basename','getHookRegistryKey','DCAwi','Current\x20CLI\x20Path\x20Found:\x20','../utils/constants','GsPEJ','../../helpers/helper','skipSessionName','split',',\x20automationFramework=','AaYVz','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','Failed\x20to\x20delete\x20zip\x20file:\x20','isBinaryBusy','automationFrameworkDetail','fMXaH','YmYLa','filter','testContextOptions'];a84_0x5b57=function(){return _0x35dbb7;};return a84_0x5b57();}const fs=require('fs'),os=require('os'),url=require(a84_0x20c3d9(0x175)),path=require('path'),{exec}=require('child_process'),{https}=require(a84_0x20c3d9(0x227)),yauzl=require('yauzl'),util=require(a84_0x20c3d9(0x1dd)),{getFrameworkVersion}=require(a84_0x20c3d9(0x1a5)),{threadId}=require('worker_threads'),PerformanceTester=require(a84_0x20c3d9(0x1d2)),{EVENTS:PerformanceEvents}=require(a84_0x20c3d9(0x1e6)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a84_0x20c3d9(0x1c6)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a84_0x20c3d9(0x22e)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a84_0x20c3d9(0x22c)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a84_0x20c3d9(0x244)),HookState=require(a84_0x20c3d9(0x179)),TestFrameworkState=require(a84_0x20c3d9(0x1ec)),AutomationFrameworkState=require(a84_0x20c3d9(0x1a6)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a84_0x20c3d9(0x1d0)),{getBStackAPIUrl}=require(a84_0x20c3d9(0x21a));class CLIUtils{[a84_0x20c3d9(0x236)]={};[a84_0x20c3d9(0x240)]={};static[a84_0x20c3d9(0x1f8)](){const _0x5d0b4b=a84_0x20c3d9,_0x2e7107={};_0x2e7107[_0x5d0b4b(0x1f3)]=function(_0x589171,_0x5335d8){return _0x589171===_0x5335d8;},_0x2e7107[_0x5d0b4b(0x1ea)]='development';const _0x4272c4=_0x2e7107;return _0x4272c4[_0x5d0b4b(0x1f3)](process[_0x5d0b4b(0x1f7)][_0x5d0b4b(0x24c)],_0x4272c4[_0x5d0b4b(0x1ea)]);}static['getCLIParamsForDevEnv'](){const _0x36ed1a=a84_0x20c3d9,_0x4bce71={};return _0x4bce71['id']=process[_0x36ed1a(0x1f7)][_0x36ed1a(0x24c)],_0x4bce71[_0x36ed1a(0x220)]=_0x36ed1a(0x174)+process['env']['BROWSERSTACK_CLI_ENV']+'.sock',_0x4bce71;}static[a84_0x20c3d9(0x188)](){const _0x2bf50f=a84_0x20c3d9,_0x8bfb43={'vVSMP':function(_0x1736f0,_0x4d7343){return _0x1736f0(_0x4d7343);},'LYiYI':'../../../package.json'};return _0x8bfb43['vVSMP'](require,_0x8bfb43[_0x2bf50f(0x24a)])[_0x2bf50f(0x1fe)];}static['getSdkLanguage'](){const _0x333124=a84_0x20c3d9,_0x42afc8={};_0x42afc8[_0x333124(0x1bd)]=_0x333124(0x1fa);const _0x159927=_0x42afc8;return _0x159927[_0x333124(0x1bd)];}static async['setupCliPath'](_0x193800){const _0x577f25=a84_0x20c3d9,_0x14177d={'lywos':_0x577f25(0x199),'BkSxL':function(_0xadc479,_0x3a90b9){return _0xadc479(_0x3a90b9);},'igwzL':function(_0x5e4a8a,_0x56d06b){return _0x5e4a8a(_0x56d06b);},'CSDgX':_0x577f25(0x202)};logger['debug'](_0x14177d[_0x577f25(0x1df)]);const _0x4c821c=process[_0x577f25(0x1f7)][_0x577f25(0x18c)];if(!_0x14177d[_0x577f25(0x1ee)](isNullOrEmpty,_0x4c821c))return logger['debug'](_0x577f25(0x19c)+_0x4c821c),_0x4c821c;try{const _0x34b838=this[_0x577f25(0x215)]();if(_0x14177d['igwzL'](isNullOrEmpty,_0x34b838))throw new Error(_0x14177d['CSDgX']);const _0x2b8968=this[_0x577f25(0x1eb)](_0x34b838),_0x24a8ee=await this['checkAndUpdateCli'](_0x2b8968,_0x34b838,_0x193800);return logger[_0x577f25(0x213)](_0x577f25(0x249)+_0x24a8ee),_0x24a8ee;}catch(_0x5df08f){logger[_0x577f25(0x213)](_0x577f25(0x246)+util['format'](_0x5df08f));}return null;}static async['checkAndUpdateCli'](_0x5d58c2,_0x5dd281,_0x35a553){const _0x1727ad=a84_0x20c3d9,_0x421268={'eXOBs':function(_0x5c34b5){return _0x5c34b5();},'YmYLa':function(_0x3f817c,_0x5e49ad){return _0x3f817c(_0x5e49ad);},'hvcej':function(_0x328b9a,_0x2b0481,_0x27006a){return _0x328b9a(_0x2b0481,_0x27006a);},'KiyYy':_0x1727ad(0x210),'TMmsM':_0x1727ad(0x175),'ysADP':function(_0x5c5245,_0x17c186){return _0x5c5245(_0x17c186);}};PerformanceTester[_0x1727ad(0x1cc)](PerformanceEvents[_0x1727ad(0x1b0)]),logger[_0x1727ad(0x195)](_0x1727ad(0x22b)+_0x5d58c2);const _0x1ce21f=_0x421268['eXOBs'](getHostInfo),_0x5291f0={'sdk_version':CLIUtils[_0x1727ad(0x188)](),'os':_0x1ce21f[_0x1727ad(0x1f2)],'os_arch':_0x1ce21f[_0x1727ad(0x222)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x421268[_0x1727ad(0x238)](isNullOrEmpty,_0x5d58c2)&&(_0x5291f0[_0x1727ad(0x1c4)]=await this[_0x1727ad(0x1ab)](_0x5d58c2+_0x1727ad(0x190)));const _0x3d02fb=await this[_0x1727ad(0x1fc)](_0x5291f0,_0x35a553);process[_0x1727ad(0x1f7)]['BROWSERSTACK_BINARY_URL']&&(logger[_0x1727ad(0x195)]('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process[_0x1727ad(0x1f7)][_0x1727ad(0x1c1)]),_0x3d02fb['data'][_0x1727ad(0x175)]=process['env'][_0x1727ad(0x1c1)]);if(_0x421268[_0x1727ad(0x204)](nestedKeyValue,_0x3d02fb,[_0x421268[_0x1727ad(0x241)],_0x421268[_0x1727ad(0x21b)]])){logger[_0x1727ad(0x213)](_0x1727ad(0x17c)+_0x5291f0['cli_version']);if(!_0x421268[_0x1727ad(0x1e8)](isNullOrEmpty,_0x5d58c2)&&this['isBinaryBusy'](_0x5d58c2))return logger[_0x1727ad(0x221)]('Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20'+_0x5d58c2),PerformanceTester[_0x1727ad(0x1b1)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x5d58c2;const _0x35145e=await this['downloadLatestBinary'](_0x421268[_0x1727ad(0x204)](nestedKeyValue,_0x3d02fb,[_0x421268[_0x1727ad(0x241)],_0x421268[_0x1727ad(0x21b)]]),_0x5dd281);return PerformanceTester[_0x1727ad(0x1b1)](PerformanceEvents[_0x1727ad(0x1b0)]),_0x35145e;}return PerformanceTester[_0x1727ad(0x1b1)](PerformanceEvents[_0x1727ad(0x1b0)]),_0x5d58c2;}static[a84_0x20c3d9(0x215)](){const _0xc160fb=a84_0x20c3d9,_0x320c4e={'yxJOJ':function(_0x5e1de2,_0x2d23a7){return _0x5e1de2(_0x2d23a7);},'gPlLe':_0xc160fb(0x202),'OUeOf':_0xc160fb(0x19a),'zKMyC':function(_0x44bd90,_0x24f7f4){return _0x44bd90(_0x24f7f4);}},_0x3ad2ca=this['getWritableDir']();try{if(_0x320c4e[_0xc160fb(0x18a)](isNullOrEmpty,_0x3ad2ca))throw new Error(_0x320c4e[_0xc160fb(0x1d3)]);const _0x2d30fd=path[_0xc160fb(0x17d)](_0x3ad2ca,_0x320c4e[_0xc160fb(0x212)]);return!fs[_0xc160fb(0x1ff)](_0x2d30fd)&&_0x320c4e['zKMyC'](createDir,_0x2d30fd),_0x2d30fd;}catch(_0x314a61){logger[_0xc160fb(0x213)](_0xc160fb(0x1b7)+util[_0xc160fb(0x216)](_0x314a61));}}static[a84_0x20c3d9(0x17a)](){const _0x355ab3=a84_0x20c3d9,_0x11281a={'podnm':_0x355ab3(0x208),'tzMgb':function(_0x3d68b5,_0x47229b){return _0x3d68b5(_0x47229b);},'zjjjJ':function(_0x139a46,_0xa0225c){return _0x139a46(_0xa0225c);},'qqNGt':function(_0x315217,_0x4ea097){return _0x315217(_0x4ea097);},'ccrrg':function(_0x5828b7,_0x94b037){return _0x5828b7(_0x94b037);},'gNsHv':function(_0x3fe3de,_0x969744){return _0x3fe3de(_0x969744);},'wXcah':function(_0x3862d9,_0x424a87){return _0x3862d9(_0x424a87);}},_0x45a152=[process[_0x355ab3(0x1f7)][_0x355ab3(0x197)],path[_0x355ab3(0x17d)](os['homedir'](),_0x11281a[_0x355ab3(0x23d)]),path['join'](os[_0x355ab3(0x1af)](),_0x11281a[_0x355ab3(0x23d)])];for(const _0x4a40f9 of _0x45a152){if(_0x11281a[_0x355ab3(0x1da)](isNullOrEmpty,_0x4a40f9))continue;try{if(fs['existsSync'](_0x4a40f9)){logger[_0x355ab3(0x213)]('Folder\x20'+_0x4a40f9+_0x355ab3(0x1c2));if(!_0x11281a[_0x355ab3(0x18f)](isModifiable,_0x4a40f9)){logger[_0x355ab3(0x213)]('Setting\x20required\x20permissions\x20to\x20'+_0x4a40f9);const _0x101f3a=_0x11281a[_0x355ab3(0x247)](setReadWriteExecuteAccess,_0x4a40f9);if(!_0x11281a[_0x355ab3(0x21f)](isTrue,_0x101f3a)){logger['warn']('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x4a40f9);continue;}}}else{logger['debug']('Folder\x20does\x20not\x20exist:\x20'+_0x4a40f9),_0x11281a[_0x355ab3(0x1da)](createDir,_0x4a40f9),logger[_0x355ab3(0x213)]('Setting\x20required\x20permissions\x20to\x20'+_0x4a40f9);const _0x56fd1f=_0x11281a[_0x355ab3(0x189)](setReadWriteExecuteAccess,_0x4a40f9);!_0x11281a[_0x355ab3(0x1e1)](isTrue,_0x56fd1f)&&logger['warn'](_0x355ab3(0x1b4)+_0x4a40f9);}return _0x4a40f9;}catch(_0x2d1874){logger[_0x355ab3(0x248)](_0x355ab3(0x1d9)+util[_0x355ab3(0x216)](_0x2d1874));}}return null;}static[a84_0x20c3d9(0x1eb)](_0x2fb0f0){const _0x3dcaa0=a84_0x20c3d9,_0x5c43c0={};_0x5c43c0['GccPR']=function(_0x4ac2fc,_0x146427){return _0x4ac2fc>_0x146427;};const _0x1e44e0=_0x5c43c0;try{if(!fs[_0x3dcaa0(0x1ff)](_0x2fb0f0)||!fs['statSync'](_0x2fb0f0)['isDirectory']())return'';const _0x50798b=fs['readdirSync'](_0x2fb0f0)[_0x3dcaa0(0x1c5)](_0x1ac792=>path[_0x3dcaa0(0x17d)](_0x2fb0f0,_0x1ac792))[_0x3dcaa0(0x239)](_0x1fdb2f=>fs[_0x3dcaa0(0x180)](_0x1fdb2f)[_0x3dcaa0(0x209)]()&&path[_0x3dcaa0(0x228)](_0x1fdb2f)['startsWith'](_0x3dcaa0(0x1e0)));if(_0x1e44e0['GccPR'](_0x50798b[_0x3dcaa0(0x1a1)],0x0)){const _0x108923=_0x50798b['map'](_0x65939b=>({'filePath':_0x65939b,'mtime':fs[_0x3dcaa0(0x180)](_0x65939b)[_0x3dcaa0(0x201)]}))[_0x3dcaa0(0x1de)]((_0x33901b,_0x424da5)=>{const _0xbce099=_0x3dcaa0;if(!_0x33901b||!_0x33901b['mtime'])return _0x424da5;if(_0x1e44e0[_0xbce099(0x18e)](_0x424da5[_0xbce099(0x201)],_0x33901b['mtime']))return _0x424da5;return _0x33901b;},{});return _0x108923?_0x108923[_0x3dcaa0(0x20c)]:'';}return'';}catch(_0x13b321){return logger[_0x3dcaa0(0x248)](_0x3dcaa0(0x1d4)+util[_0x3dcaa0(0x216)](_0x13b321)),'';}}static [a84_0x20c3d9(0x1fc)]=async(_0x2224a4,_0xf5bac9)=>{const _0x4be1f2=a84_0x20c3d9,_0xf4305e={'WsHAJ':function(_0x3f386e,_0x1ac19b,_0x3de8f3,_0x5166b7,_0x2fe424){return _0x3f386e(_0x1ac19b,_0x3de8f3,_0x5166b7,_0x2fe424);},'fMXaH':_0x4be1f2(0x224)},_0x1e4f1d={};_0x1e4f1d['qs']=_0x2224a4;const _0x353a94=await _0xf4305e['WsHAJ'](nodeRequest,_0xf4305e[_0x4be1f2(0x237)],UPDATED_CLI_ENDPOINT,_0x1e4f1d,_0xf5bac9);return logger[_0x4be1f2(0x213)]('response\x20'+JSON['stringify'](_0x353a94)),_0x353a94;};static[a84_0x20c3d9(0x235)](_0x3383c0){const _0x564269=a84_0x20c3d9;try{const _0x5af787=fs[_0x564269(0x225)](_0x3383c0,'r+');return fs['closeSync'](_0x5af787),![];}catch(_0x4cf865){if(BINARY_BUSY_ERROR_CODES['includes'](_0x4cf865[_0x564269(0x1b5)]))return logger[_0x564269(0x213)]('Binary\x20is\x20busy:\x20'+_0x3383c0),!![];return logger[_0x564269(0x213)](_0x564269(0x1b2)+_0x4cf865[_0x564269(0x1c8)]),![];}}static[a84_0x20c3d9(0x1ab)](_0x9c880e,_0x214e80=''){const _0x1d0465=a84_0x20c3d9,_0x3a1862={'qrKTG':_0x1d0465(0x1fe),'PqXlu':function(_0x2bb9d3,_0x2481a1){return _0x2bb9d3(_0x2481a1);},'AaYVz':_0x1d0465(0x1a4),'fNsBO':function(_0x4cd936,_0x595d1b){return _0x4cd936(_0x595d1b);},'IeRRJ':function(_0x136297,_0x52f4cd,_0x2ac140,_0x3d12e0){return _0x136297(_0x52f4cd,_0x2ac140,_0x3d12e0);},'xCirR':_0x1d0465(0x248)};return new Promise((_0x523381,_0x13ce05)=>{const _0x3dee7a=_0x1d0465,_0x5b7035={};_0x5b7035[_0x3dee7a(0x1b9)]=_0x214e80,_0x5b7035[_0x3dee7a(0x1ef)]=0x1388;const _0x51801c=_0x3a1862[_0x3dee7a(0x219)](exec,_0x9c880e,_0x5b7035,(_0x3073bd,_0x2d2160,_0x166353)=>{const _0x3fa714=_0x3dee7a;if(_0x3073bd){if(_0x9c880e[_0x3fa714(0x1cd)](_0x3a1862[_0x3fa714(0x24b)])&&(_0x2d2160['trim']()||_0x166353[_0x3fa714(0x1ed)]())){const _0x24a3c3=_0x2d2160[_0x3fa714(0x1ed)]()||_0x166353[_0x3fa714(0x1ed)]();logger[_0x3fa714(0x213)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x24a3c3+'\x22'),_0x3a1862[_0x3fa714(0x19b)](_0x523381,_0x24a3c3);}else _0x3a1862[_0x3fa714(0x19b)](_0x523381,_0x166353[_0x3fa714(0x1ed)]()||_0x3a1862[_0x3fa714(0x232)]);}else logger[_0x3fa714(0x213)]('Resolving\x20with\x20stdout:\x20\x22'+_0x2d2160[_0x3fa714(0x1ed)]()+'\x22'),_0x3a1862['PqXlu'](_0x523381,_0x2d2160['trim']());});_0x51801c['on'](_0x3a1862[_0x3dee7a(0x1c3)],()=>{const _0x26bc2=_0x3dee7a;_0x3a1862['fNsBO'](_0x523381,_0x3a1862[_0x26bc2(0x232)]);});});}static [a84_0x20c3d9(0x23f)]=async(_0x59dd25,_0x52c411)=>{const _0x130ea5=a84_0x20c3d9,_0x54f7a6={'TVStC':_0x130ea5(0x1a9),'DCAwi':function(_0x4a0555,_0x56d847){return _0x4a0555(_0x56d847);},'PDiuS':'error','KiRua':_0x130ea5(0x191)};PerformanceTester['start'](PerformanceEvents[_0x130ea5(0x17f)]),logger[_0x130ea5(0x213)](_0x130ea5(0x1d1)+_0x59dd25);try{const _0x3172ba=url['parse'](_0x59dd25),_0x465b5f=path[_0x130ea5(0x17d)](_0x52c411,_0x130ea5(0x20d)+process[_0x130ea5(0x1ce)]+_0x130ea5(0x173)),_0xdbbd45=fs[_0x130ea5(0x1b6)](_0x465b5f);return new Promise((_0x4247af,_0x5ebb18)=>{const _0x1500d8=_0x130ea5,_0x4cbad7={'NghBu':_0x54f7a6['KiRua'],'bcpYy':function(_0x25b9f5,_0x3730bc){const _0x2fa0fe=a84_0xe995;return _0x54f7a6[_0x2fa0fe(0x22a)](_0x25b9f5,_0x3730bc);}};https[_0x1500d8(0x1f4)](_0x3172ba,function(_0x1ffc5f){const _0x253cd9=_0x1500d8,_0x36dadf={'KbXcp':_0x54f7a6[_0x253cd9(0x21d)],'NuYSO':function(_0x1c3e2d,_0x579a20){const _0x1d8ae9=_0x253cd9;return _0x54f7a6[_0x1d8ae9(0x22a)](_0x1c3e2d,_0x579a20);},'GsPEJ':function(_0x2da8d6,_0x4f2854){const _0x1b0478=_0x253cd9;return _0x54f7a6[_0x1b0478(0x22a)](_0x2da8d6,_0x4f2854);}},_0x3249ee=null;_0x1ffc5f[_0x253cd9(0x1d6)](_0xdbbd45),_0x1ffc5f['on'](_0x54f7a6['PDiuS'],function(_0x329369){const _0x10ab7f=_0x253cd9;logger[_0x10ab7f(0x248)](util[_0x10ab7f(0x216)](_0x4cbad7[_0x10ab7f(0x223)],_0x329369)),PerformanceTester[_0x10ab7f(0x1b1)](PerformanceEvents[_0x10ab7f(0x17f)],![],util['format'](_0x329369)),_0x4cbad7[_0x10ab7f(0x182)](_0x5ebb18,_0x329369);}),_0xdbbd45['on'](_0x54f7a6['PDiuS'],function(_0x220848){const _0x23fe19=_0x253cd9;logger[_0x23fe19(0x248)](util['format'](_0x36dadf[_0x23fe19(0x1e2)],_0x220848)),PerformanceTester['end'](PerformanceEvents[_0x23fe19(0x17f)],![],util['format'](_0x220848)),_0x36dadf[_0x23fe19(0x1e4)](_0x5ebb18,_0x220848);}),CLIUtils[_0x253cd9(0x1c7)](_0xdbbd45,_0x3249ee,_0x465b5f,_0x52c411,_0x462b64=>{const _0x382c10=_0x253cd9;PerformanceTester[_0x382c10(0x1b1)](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x36dadf[_0x382c10(0x22d)](_0x4247af,_0x462b64);},_0x17107b=>{const _0x52ce50=_0x253cd9;PerformanceTester['end'](PerformanceEvents[_0x52ce50(0x17f)],![],util['format'](_0x17107b)),_0x4cbad7['bcpYy'](_0x5ebb18,_0x17107b);});})['on'](_0x54f7a6[_0x1500d8(0x1a7)],function(_0x44ba04){const _0x2582d=_0x1500d8;logger['error'](_0x2582d(0x1f9)+util['format'](_0x44ba04)),PerformanceTester[_0x2582d(0x1b1)](PerformanceEvents[_0x2582d(0x17f)],![],util['format'](_0x44ba04)),_0x4cbad7[_0x2582d(0x182)](_0x5ebb18,_0x44ba04);});});}catch(_0x4867de){PerformanceTester[_0x130ea5(0x1b1)](PerformanceEvents[_0x130ea5(0x17f)],![],util[_0x130ea5(0x216)](_0x4867de)),logger[_0x130ea5(0x213)](_0x130ea5(0x20b)+util[_0x130ea5(0x216)](_0x4867de));}};static[a84_0x20c3d9(0x1c7)](_0x4fbd3e,_0x193aaa,_0x5c9451,_0x4e7adf,_0x546cec,_0x2c2672){const _0x224894=a84_0x20c3d9,_0x311f35={'coALB':function(_0x3fc262,_0x48d3e4){return _0x3fc262!==_0x48d3e4;},'AzRHd':_0x224894(0x200),'nRsDz':function(_0x308456,_0x5e6859){return _0x308456(_0x5e6859);},'OLaXS':'0755','moXmv':_0x224894(0x1b1),'EaRXt':_0x224894(0x1ca),'IvfUD':'error','EkBbz':_0x224894(0x19e)};_0x4fbd3e['on'](_0x311f35['EaRXt'],function(){const _0x5c81e6=_0x224894,_0xb5a66e={'MtxsC':function(_0x2d5a54,_0x338766){const _0x257ff9=a84_0xe995;return _0x311f35[_0x257ff9(0x1fd)](_0x2d5a54,_0x338766);},'IiWhn':_0x311f35[_0x5c81e6(0x1aa)],'DkQev':function(_0x3db343,_0x5d6aac){return _0x311f35['nRsDz'](_0x3db343,_0x5d6aac);},'fRJPG':function(_0x59cd6c,_0x389675){const _0x583216=_0x5c81e6;return _0x311f35[_0x583216(0x1d8)](_0x59cd6c,_0x389675);},'iOmqj':function(_0x18745e,_0x57d89b){const _0x190222=_0x5c81e6;return _0x311f35[_0x190222(0x1d8)](_0x18745e,_0x57d89b);},'FGkNs':_0x311f35[_0x5c81e6(0x207)],'yWHdj':function(_0x4070a4,_0x3d8dfe){const _0x268e0c=_0x5c81e6;return _0x311f35[_0x268e0c(0x1d8)](_0x4070a4,_0x3d8dfe);},'HCzuN':function(_0x459b46,_0x48d454){const _0x14354e=_0x5c81e6;return _0x311f35[_0x14354e(0x1d8)](_0x459b46,_0x48d454);},'sjVAe':_0x311f35[_0x5c81e6(0x205)],'cfnEp':_0x311f35[_0x5c81e6(0x1ae)],'NvwiP':_0x311f35[_0x5c81e6(0x187)],'AyyKm':_0x311f35['EkBbz']},_0x28f8b5={};_0x28f8b5[_0x5c81e6(0x178)]=!![],yauzl['open'](_0x5c9451,_0x28f8b5,function(_0x4e9a5c,_0x1e443a){const _0x411180=_0x5c81e6,_0xb326db={'daNka':function(_0x3979ae,_0x255334){const _0x11d851=a84_0xe995;return _0xb5a66e[_0x11d851(0x1fb)](_0x3979ae,_0x255334);},'NUFJP':function(_0x2deb0d,_0x3b08d7){const _0x4f69c5=a84_0xe995;return _0xb5a66e[_0x4f69c5(0x242)](_0x2deb0d,_0x3b08d7);},'KtQDu':_0xb5a66e[_0x411180(0x185)],'IwNFj':_0xb5a66e[_0x411180(0x1bf)],'KXmap':function(_0x441bc8,_0x4bc78c){const _0x28ae5e=_0x411180;return _0xb5a66e[_0x28ae5e(0x1ac)](_0x441bc8,_0x4bc78c);},'xzCrN':function(_0x399088,_0x48e670){return _0xb5a66e['iOmqj'](_0x399088,_0x48e670);},'YdNud':function(_0x541672,_0xc9f275){return _0xb5a66e['iOmqj'](_0x541672,_0xc9f275);},'IgcfJ':_0xb5a66e[_0x411180(0x1b8)]};if(_0x4e9a5c){_0xb5a66e[_0x411180(0x242)](_0x2c2672,_0x4e9a5c);return;}_0x1e443a[_0x411180(0x211)](),_0x1e443a['on'](_0xb5a66e['AyyKm'],_0x25df7e=>{const _0x3105bf=_0x411180,_0x22714d={};_0x22714d[_0x3105bf(0x243)]=_0xb326db['IwNFj'];const _0x401651=_0x22714d;if(/\/$/[_0x3105bf(0x1e3)](_0x25df7e[_0x3105bf(0x1bc)])){_0x1e443a[_0x3105bf(0x211)]();return;}!_0x193aaa&&(_0x193aaa=_0x25df7e[_0x3105bf(0x1bc)]);if(_0xb326db[_0x3105bf(0x1db)](_0x25df7e[_0x3105bf(0x1bc)],_0x193aaa))_0x1e443a[_0x3105bf(0x211)]();else{const _0x346cd6=_0x25df7e[_0x3105bf(0x1bc)],_0x2d2155=path[_0x3105bf(0x17d)](_0x4e7adf,_0x346cd6+_0x3105bf(0x1e9)+process[_0x3105bf(0x1ce)]);let _0x1af326;try{_0x1af326=fs[_0x3105bf(0x1b6)](_0x2d2155);}catch(_0x4a5998){if(BINARY_BUSY_ERROR_CODES[_0x3105bf(0x1cd)](_0x4a5998[_0x3105bf(0x1b5)])){const _0x1deb75=path[_0x3105bf(0x17d)](_0x4e7adf,_0x346cd6);if(fs['existsSync'](_0x1deb75)){logger['warn']('Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x346cd6),fs['unlink'](_0x5c9451,_0x10934c=>{const _0x221c25=_0x3105bf;_0x10934c&&logger[_0x221c25(0x221)](_0x221c25(0x234)+_0x5c9451);}),_0xb326db[_0x3105bf(0x214)](_0x546cec,_0x1deb75);return;}logger[_0x3105bf(0x221)](_0x3105bf(0x233)+_0x346cd6);}_0xb326db[_0x3105bf(0x245)](_0x2c2672,_0x4a5998);return;}_0x1af326['on'](_0xb326db[_0x3105bf(0x1a2)],_0x118eeb=>{const _0x525e4b=_0x3105bf;if(BINARY_BUSY_ERROR_CODES[_0x525e4b(0x1cd)](_0x118eeb[_0x525e4b(0x1b5)])){const _0x2bab56=path[_0x525e4b(0x17d)](_0x4e7adf,_0x346cd6);_0x1af326[_0x525e4b(0x1ca)](),fs[_0x525e4b(0x1ff)](_0x2bab56)?(logger[_0x525e4b(0x221)]('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x118eeb['message']),_0x1e443a[_0x525e4b(0x1ca)](),fs['unlink'](_0x5c9451,_0x255634=>{const _0x4a5f85=_0x525e4b;_0x255634&&logger[_0x4a5f85(0x221)](_0x4a5f85(0x234)+_0x5c9451);}),_0xb326db['daNka'](_0x546cec,_0x2bab56)):(logger[_0x525e4b(0x221)](_0x525e4b(0x218)+_0x118eeb[_0x525e4b(0x1c8)]),fs['unlink'](_0x2d2155,()=>{}),_0xb326db[_0x525e4b(0x18b)](_0x2c2672,_0x118eeb));}else fs['unlink'](_0x2d2155,()=>{}),_0xb326db[_0x525e4b(0x18b)](_0x2c2672,_0x118eeb);}),_0x1e443a[_0x3105bf(0x1c9)](_0x25df7e,function(_0x395ed9,_0x5cd214){const _0x1a7af7=_0x3105bf;if(_0x395ed9){fs[_0x1a7af7(0x181)](_0x2d2155,()=>{}),_0xb326db['NUFJP'](_0x2c2672,_0x395ed9);return;}_0x5cd214['on'](_0xb326db[_0x1a7af7(0x20e)],function(){const _0x59c817=_0x1a7af7;_0x1af326[_0x59c817(0x1b1)](),_0x1af326['on'](_0x401651[_0x59c817(0x243)],function(){const _0x572909=_0x59c817;_0x1e443a[_0x572909(0x211)]();});}),_0x5cd214[_0x1a7af7(0x1d6)](_0x1af326);});}}),_0x1e443a['on'](_0xb5a66e[_0x411180(0x1b8)],_0x2742d7=>{_0xb326db['NUFJP'](_0x2c2672,_0x2742d7);}),_0x1e443a['once'](_0xb5a66e[_0x411180(0x185)],()=>{const _0x1ade2e=_0x411180,_0x382605={'JKcEo':function(_0x361fa5,_0x57b071){const _0x436d70=a84_0xe995;return _0xb5a66e[_0x436d70(0x1ac)](_0x361fa5,_0x57b071);},'OdLtM':_0xb5a66e[_0x1ade2e(0x1a0)],'sIKtK':function(_0x57f742,_0x1dac68){const _0x2309b6=_0x1ade2e;return _0xb5a66e[_0x2309b6(0x1c0)](_0x57f742,_0x1dac68);},'XYByr':function(_0x4a4018,_0x4a6b36){const _0x53d634=_0x1ade2e;return _0xb5a66e[_0x53d634(0x23b)](_0x4a4018,_0x4a6b36);},'zZtyZ':function(_0x5f0296,_0x4ee4e6){const _0x2118d0=_0x1ade2e;return _0xb5a66e[_0x2118d0(0x19f)](_0x5f0296,_0x4ee4e6);}};fs[_0x1ade2e(0x181)](_0x5c9451,_0x1b7b0d=>{_0x1b7b0d&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x5c9451);});const _0x2cb380=path['join'](_0x4e7adf,_0x193aaa+'.tmp.'+process[_0x1ade2e(0x1ce)]),_0x222405=path['join'](_0x4e7adf,_0x193aaa);fs[_0x1ade2e(0x226)](_0x2cb380,_0xb5a66e[_0x1ade2e(0x20a)],function(_0x1bfcc1){const _0x4e0953=_0x1ade2e,_0x32664a={'OMjxm':function(_0x3b94b7,_0x392b32){const _0x287e5=a84_0xe995;return _0x382605[_0x287e5(0x1e5)](_0x3b94b7,_0x392b32);},'bRXPp':_0x382605['OdLtM'],'WbIEc':function(_0x51f6a5,_0x4dcbfa){const _0x16ba50=a84_0xe995;return _0x382605[_0x16ba50(0x1cf)](_0x51f6a5,_0x4dcbfa);},'NtNtD':function(_0x1dfbfb,_0x42d659){const _0x345ba8=a84_0xe995;return _0x382605[_0x345ba8(0x21c)](_0x1dfbfb,_0x42d659);}};if(_0x1bfcc1){_0x1e443a[_0x4e0953(0x1ca)](),fs['unlink'](_0x2cb380,()=>{}),_0x382605['zZtyZ'](_0x2c2672,_0x1bfcc1);return;}fs['rename'](_0x2cb380,_0x222405,function(_0x509a3c){const _0x59b266=_0x4e0953;if(_0x509a3c){if(_0x32664a['OMjxm'](_0x509a3c[_0x59b266(0x1b5)],_0x32664a[_0x59b266(0x1a3)])){_0x1e443a[_0x59b266(0x1ca)](),fs[_0x59b266(0x181)](_0x2cb380,()=>{}),_0x32664a[_0x59b266(0x18d)](_0x2c2672,_0x509a3c);return;}logger[_0x59b266(0x221)]('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x509a3c[_0x59b266(0x1c8)]);try{fs[_0x59b266(0x177)](_0x2cb380,_0x222405);}catch(_0x31d712){_0x1e443a['close'](),fs[_0x59b266(0x181)](_0x2cb380,()=>{}),_0x32664a[_0x59b266(0x18d)](_0x2c2672,_0x31d712);return;}fs[_0x59b266(0x181)](_0x2cb380,_0x5d6daa=>{const _0x4017d8=_0x59b266;_0x5d6daa&&logger[_0x4017d8(0x221)](_0x4017d8(0x1cb)+_0x5d6daa[_0x4017d8(0x1c8)]);});}_0x1e443a[_0x59b266(0x1ca)](),_0x32664a[_0x59b266(0x19d)](_0x546cec,_0x222405);});});});});});}static[a84_0x20c3d9(0x1e7)](){const _0x370269=a84_0x20c3d9;if(process[_0x370269(0x1f7)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL'])return JSON[_0x370269(0x1f5)](process[_0x370269(0x1f7)][_0x370269(0x186)]);return this['testFrameworkDetail'];}static[a84_0x20c3d9(0x217)](){const _0x445990=a84_0x20c3d9;if(process[_0x445990(0x1f7)][_0x445990(0x23c)])return JSON[_0x445990(0x1f5)](process[_0x445990(0x1f7)][_0x445990(0x23c)]);return this['automationFrameworkDetail'];}static['setFrameworkDetail'](_0x4c10f0,_0x130a19){const _0xe3e844=a84_0x20c3d9,_0x4016b1={'exCXO':_0xe3e844(0x183),'XqhnF':function(_0x4ebfba,_0x3b1710){return _0x4ebfba||_0x3b1710;},'amlPG':function(_0xe9f6a5,_0x445ca6){return _0xe9f6a5(_0x445ca6);},'iyLgA':function(_0x46f4e8,_0x3ed2fa){return _0x46f4e8(_0x3ed2fa);}},_0x5a8963=_0x4016b1[_0xe3e844(0x23e)][_0xe3e844(0x230)]('|');let _0x43cbc5=0x0;while(!![]){switch(_0x5a8963[_0x43cbc5++]){case'0':_0x4016b1[_0xe3e844(0x194)](!_0x4c10f0,!_0x130a19)&&logger[_0xe3e844(0x213)](_0xe3e844(0x1ba)+_0x4c10f0+_0xe3e844(0x231)+_0x130a19);continue;case'1':process[_0xe3e844(0x1f7)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON['stringify'](this[_0xe3e844(0x240)]);continue;case'2':this[_0xe3e844(0x236)]={'name':_0x130a19,'version':_0x4016b1[_0xe3e844(0x1f1)](getFrameworkVersion,_0x130a19)};continue;case'3':this[_0xe3e844(0x240)]={'name':_0x4c10f0,'version':{[_0x4c10f0]:_0x4016b1[_0xe3e844(0x1f0)](getFrameworkVersion,_0x4c10f0)}};continue;case'4':process[_0xe3e844(0x1f7)][_0xe3e844(0x23c)]=JSON['stringify'](this[_0xe3e844(0x236)]);continue;}break;}}static[a84_0x20c3d9(0x229)](_0x43ec62,_0x42fd72){return _0x43ec62+':'+_0x42fd72;}static[a84_0x20c3d9(0x1d7)](){const _0x1759db=a84_0x20c3d9;return process[_0x1759db(0x1ce)]+':'+threadId;}static[a84_0x20c3d9(0x1b3)](_0x34a425){const _0x262ebf=a84_0x20c3d9;if(_0x34a425['testContextOptions']&&_0x34a425[_0x262ebf(0x23a)][_0x262ebf(0x22f)])return!![];return![];}static['shouldSkipSessionStatus'](_0x5f48ad){const _0x59dc36=a84_0x20c3d9;if(_0x5f48ad['testContextOptions']&&_0x5f48ad[_0x59dc36(0x23a)]['skipSessionStatus'])return!![];return![];}static[a84_0x20c3d9(0x1ad)](_0x3491f7){const _0x17d44e=a84_0x20c3d9,_0x5de211=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x5de211[_0x17d44e(0x1e3)](_0x3491f7);}static['mergeObject'](_0x3c287f,_0x3556fe){const _0x52b0ed=a84_0x20c3d9,_0x54a6c2={};_0x54a6c2['amLpx']=function(_0x8c9c1,_0x3af70b){return _0x8c9c1!==_0x3af70b;},_0x54a6c2[_0x52b0ed(0x193)]=function(_0x4ed30f,_0x24a871){return _0x4ed30f===_0x24a871;},_0x54a6c2[_0x52b0ed(0x17b)]='object';const _0x505640=_0x54a6c2;for(const [_0x41db54,_0x2a3d2c]of Object['entries'](_0x3556fe)){if(_0x505640[_0x52b0ed(0x21e)](_0x2a3d2c,null)&&_0x505640['beWyD'](typeof _0x2a3d2c,_0x505640[_0x52b0ed(0x17b)])&&!Array['isArray'](_0x2a3d2c))_0x3c287f[_0x41db54]=this['mergeObject'](_0x3c287f[_0x41db54]||{},_0x2a3d2c);else Array[_0x52b0ed(0x1bb)](_0x2a3d2c)?_0x3c287f[_0x41db54]=(_0x3c287f[_0x41db54]||[])[_0x52b0ed(0x1d5)](_0x2a3d2c):_0x3c287f[_0x41db54]=_0x2a3d2c;}return _0x3c287f;}}module[a84_0x20c3d9(0x184)]=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a85_0x2b2d(){const _0x171ae9=['CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','zEYfH','__workerDetails','./state/hookState','CJvJs','getBuildTagsFilePath','KEY_TEST_ID','mergeValues','multi_dropdown','NJNIb','OMwCq','bHbZT','parse','222gOUxgc','50030OlcIkn','prWdD','getTestFramework','entries','utf8','RtXzU','name',',\x20finalTags=','promises','readFileSync','5304012ZTBzPD','retry','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','string','pOkOZ','bstack_build_tags_','keys','mergeIntoTags','BUILD_TAG_FILE_PREFIX','YooHS','aggregateBuildLevelTagsFromTmp','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','IIzTZ','writeFile','29819tXWwVD','10038175KhTDIb','BTuEo','getAllData','trim','getBuildTagsRunId','./browserstackCLI','AIWFn','KSzur','oNlfX','cZlew','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','__jestCurrentTestIdentifier','61497BGwATA','sMgPQ','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','null','2530050PcKYOT','debug','length','resolveInstance','pUQnt','unlinkSync','808EgdNZy','setCustomTags','stringify',',\x20existingTags=','tmpdir','./TestInfo','toObject','getTestLevelTags','CustomTagManager','exports','KEY_CUSTOM_TAGS','BROWSERSTACK_TESTHUB_UUID','field_type','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','setTestDetails','MODULE_NAME','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','isArray','./modules/playwrightDriverModule','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','KDKOj','suRrS','6lesaHG','UaPVA','XutNp','getTestIdentifierFromTestInfo','.json','./modules/testhubModule','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','testLevelTags','_testInternals','188142KVVUUk','getBuildLevelTags','pid','XXkrO','beMnf','readdirSync','getState','../../helpers/classLogger','tHkYq','OWjHl','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','buildHashedId','env','getInstance','currentTest','toLowerCase','modules',':jest-','parseCommaSeparatedValues','./cliUtils','ms)\x20','testInfo',',\x20key=','getTrackedInstance','filter','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','values','getTestDetails','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','message','includes','DBadz','nmrWG','POST','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','TGzvG','join','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','AgwwX','RZyfr','statSync','startsWith','buildLevelTags'];a85_0x2b2d=function(){return _0x171ae9;};return a85_0x2b2d();}const a85_0x57f39f=a85_0x46d9;(function(_0x21fb0f,_0x302383){const _0x1fbda3=a85_0x46d9,_0x214d9d=_0x21fb0f();while(!![]){try{const _0xcc3d68=parseInt(_0x1fbda3(0xa8))/0x1*(parseInt(_0x1fbda3(0xd5))/0x2)+parseInt(_0x1fbda3(0xde))/0x3+-parseInt(_0x1fbda3(0x99))/0x4+-parseInt(_0x1fbda3(0x8f))/0x5*(parseInt(_0x1fbda3(0x116))/0x6)+parseInt(_0x1fbda3(0xa9))/0x7+parseInt(_0x1fbda3(0xbf))/0x8*(parseInt(_0x1fbda3(0xb5))/0x9)+parseInt(_0x1fbda3(0xb9))/0xa;if(_0xcc3d68===_0x302383)break;else _0x214d9d['push'](_0x214d9d['shift']());}catch(_0x5352ac){_0x214d9d['push'](_0x214d9d['shift']());}}}(a85_0x2b2d,0xcb655));function a85_0x46d9(_0x4a192e,_0x42854e){const _0x2b2de0=a85_0x2b2d();return a85_0x46d9=function(_0x46d9a1,_0x5f5d95){_0x46d9a1=_0x46d9a1-0x8f;let _0x34589d=_0x2b2de0[_0x46d9a1];return _0x34589d;},a85_0x46d9(_0x4a192e,_0x42854e);}const fs=require('fs'),os=require('os'),path=require('path'),helper=require('../../helpers/helper'),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require(a85_0x57f39f(0xd1)),TestInfo=require(a85_0x57f39f(0xc4)),TestHubModule=require(a85_0x57f39f(0xda)),{createClassLogger}=require(a85_0x57f39f(0xe5)),logger=createClassLogger(a85_0x57f39f(0xc7)),BUILD_TAG_FILE_PREFIX=a85_0x57f39f(0x9f);function getBuildTagsRunId(){const _0xb3651a=a85_0x57f39f,_0xa6d103={};_0xa6d103[_0xb3651a(0xe1)]=function(_0x270cd2,_0x1c0a80){return _0x270cd2===_0x1c0a80;},_0xa6d103[_0xb3651a(0xd4)]=_0xb3651a(0xb8);const _0x533d26=_0xa6d103,_0x29f7df=process[_0xb3651a(0xea)][_0xb3651a(0xca)];if(!_0x29f7df||_0x533d26['XXkrO'](_0x29f7df,_0x533d26['suRrS']))return null;return _0x29f7df;}function getBuildTagsFilePath(_0x3f70f9){const _0x1a7ee9=a85_0x57f39f;return path[_0x1a7ee9(0x102)](os[_0x1a7ee9(0xc3)](),''+BUILD_TAG_FILE_PREFIX+_0x3f70f9+'_'+process[_0x1a7ee9(0xe0)]+_0x1a7ee9(0xd9));}class CustomTagManager{static ['buildLevelTags']={};static ['testLevelTags']={};static[a85_0x57f39f(0x110)](_0xd797bf,_0x3d5201){return Array['from'](new Set([..._0xd797bf||[],..._0x3d5201||[]]));}static[a85_0x57f39f(0xa1)](_0x25bdf5,_0x762f65,_0x33ccf6){const _0xf33aee=a85_0x57f39f,_0x51d393={};_0x51d393[_0xf33aee(0xfe)]=_0xf33aee(0x111);const _0x3203be=_0x51d393;if(!_0x25bdf5[_0x762f65]){const _0x2377f1={};_0x2377f1['field_type']=_0x3203be[_0xf33aee(0xfe)],_0x2377f1[_0xf33aee(0xf8)]=[..._0x33ccf6||[]],_0x25bdf5[_0x762f65]=_0x2377f1;}else!_0x25bdf5[_0x762f65][_0xf33aee(0xcb)]&&(_0x25bdf5[_0x762f65][_0xf33aee(0xcb)]=_0x3203be[_0xf33aee(0xfe)]),!Array[_0xf33aee(0xd0)](_0x25bdf5[_0x762f65][_0xf33aee(0xf8)])&&(_0x25bdf5[_0x762f65]['values']=[]),_0x25bdf5[_0x762f65][_0xf33aee(0xf8)]=CustomTagManager['mergeValues'](_0x25bdf5[_0x762f65][_0xf33aee(0xf8)],_0x33ccf6);return _0x25bdf5;}static async[a85_0x57f39f(0xc0)](_0x2f3c81,_0x14e253,_0x473291=![]){const _0x2cd191=a85_0x57f39f,_0x32b647={'pSSto':function(_0x282c0a,_0x4ee39f){return _0x282c0a!==_0x4ee39f;},'sMgPQ':_0x2cd191(0x9d),'KDKOj':_0x2cd191(0x9c),'XutNp':function(_0x38c1d8,_0x1bf483){return _0x38c1d8!==_0x1bf483;},'GMZOu':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','KSzur':function(_0x24680d,_0x551921){return _0x24680d===_0x551921;},'pOkOZ':_0x2cd191(0xfa),'zEYfH':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','oNlfX':function(_0x51486e,_0x31d2fe){return _0x51486e(_0x31d2fe);},'bHbZT':_0x2cd191(0xae),'UaPVA':function(_0x297915){return _0x297915();},'xyyph':_0x2cd191(0x111),'TGzvG':function(_0x4f389a,_0x19dd9c){return _0x4f389a>_0x19dd9c;},'beMnf':_0x2cd191(0xdb),'AgwwX':_0x2cd191(0xef),'UPDtZ':_0x2cd191(0xf1),'BTuEo':function(_0x2b0324,_0x39c0a0){return _0x2b0324(_0x39c0a0);},'prWdD':function(_0xcf68fe,_0x2554cf){return _0xcf68fe===_0x2554cf;},'TLMMd':'jest','ygqvb':_0x2cd191(0xe8),'tHkYq':function(_0x2d4d85,_0x10aba8){return _0x2d4d85(_0x10aba8);},'cZlew':_0x2cd191(0xcc),'CJvJs':function(_0x5695f1,_0x410655){return _0x5695f1(_0x410655);},'OMwCq':'./state/testFrameworkState','OWjHl':_0x2cd191(0x10c),'IIzTZ':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x32b647['pSSto'](typeof _0x2f3c81,_0x32b647['sMgPQ'])){logger['debug'](_0x32b647[_0x2cd191(0xd3)]);return;}if(_0x32b647[_0x2cd191(0xd7)](typeof _0x14e253,_0x32b647[_0x2cd191(0xb6)])){logger[_0x2cd191(0xba)](_0x32b647['GMZOu']);return;}if(_0x32b647[_0x2cd191(0xb0)](_0x2f3c81[_0x2cd191(0xac)](),'')){logger[_0x2cd191(0xba)](_0x32b647[_0x2cd191(0x9e)]);return;}if(_0x32b647[_0x2cd191(0xb0)](_0x14e253[_0x2cd191(0xac)](),'')){logger['debug'](_0x32b647[_0x2cd191(0x10a)]);return;}const _0xaf183b=helper[_0x2cd191(0xf0)](_0x14e253);if(_0x473291){const _0x54e304=_0x32b647[_0x2cd191(0xb1)](require,_0x32b647['bHbZT']),_0x3e04ab=_0x54e304[_0x2cd191(0xeb)](),_0x13806c=_0x3e04ab&&_0x3e04ab[_0x2cd191(0xee)][TestHubModule[_0x2cd191(0xce)]];if(_0x13806c){const _0x3f7598=_0x13806c?.['testhubConfig']?.[_0x2cd191(0xc5)]()?.[_0x2cd191(0xe9)];TestInfo['getTestUUID'](_0x3f7598);const _0x1e52af=TestInfo['getTestDetails'](_0x3f7598),_0x1e1e18=_0x1e52af[TestFrameworkConstants[_0x2cd191(0xc9)]]||{};CustomTagManager[_0x2cd191(0xa1)](_0x1e1e18,_0x2f3c81,_0xaf183b),_0x1e52af[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x1e1e18,TestInfo[_0x2cd191(0xcd)](_0x3f7598,_0x1e52af);!this[_0x2cd191(0x108)][_0x3f7598]&&(this[_0x2cd191(0x108)][_0x3f7598]={});this['buildLevelTags'][_0x3f7598][_0x2f3c81]=CustomTagManager[_0x2cd191(0x110)](this[_0x2cd191(0x108)][_0x3f7598][_0x2f3c81],_0xaf183b);try{const _0x1f25be=_0x32b647[_0x2cd191(0xd6)](getBuildTagsRunId);if(_0x1f25be){const _0x8ffb04={};for(const [_0xc8f4dd,_0x1bcafe]of Object[_0x2cd191(0x92)](this[_0x2cd191(0x108)][_0x3f7598]||{})){_0x8ffb04[_0xc8f4dd]={'field_type':_0x32b647['xyyph'],'values':Array[_0x2cd191(0xd0)](_0x1bcafe)?[..._0x1bcafe]:[]};}_0x32b647[_0x2cd191(0x101)](Object[_0x2cd191(0xa0)](_0x8ffb04)[_0x2cd191(0xbb)],0x0)&&await fs[_0x2cd191(0x97)][_0x2cd191(0xa7)](_0x32b647[_0x2cd191(0xb1)](getBuildTagsFilePath,_0x1f25be),JSON[_0x2cd191(0xc1)](_0x8ffb04));}else logger[_0x2cd191(0xba)](_0x32b647[_0x2cd191(0xe2)]);}catch(_0x1a6693){logger['debug'](_0x2cd191(0xb3)+(_0x1a6693&&_0x1a6693[_0x2cd191(0xfb)]?_0x1a6693[_0x2cd191(0xfb)]:_0x1a6693));}}}else{let _0x2bf149;const _0x59a71f=global[_0x2cd191(0xb4)];let _0x13df73=![];if(_0x59a71f&&_0x59a71f[_0x2cd191(0xfc)](_0x32b647[_0x2cd191(0x104)]))_0x13df73=!![],_0x2bf149=_0x59a71f;else try{const _0x137b3c=_0x32b647['oNlfX'](require,_0x32b647['UPDtZ']),_0x617c79=_0x32b647[_0x2cd191(0xaa)](require,_0x32b647[_0x2cd191(0x114)]);if(_0x617c79[_0x2cd191(0xeb)]()['isRunning']()){const _0x17e307=_0x137b3c['getTestFrameworkDetail']();if(_0x32b647[_0x2cd191(0x90)](_0x17e307?.[_0x2cd191(0x95)]?.[_0x2cd191(0xed)](),_0x32b647['TLMMd'])){const _0x29b533=AutomationFramework[_0x2cd191(0xf5)]();_0x2bf149=AutomationFramework[_0x2cd191(0xe4)](_0x29b533,PlaywrightDriverModule[_0x2cd191(0x10f)],''),_0x2bf149&&_0x2bf149['includes'](_0x32b647['AgwwX'])&&(_0x13df73=!![]);}}}catch(_0x1d41ad){logger['debug'](_0x2cd191(0x103)+_0x1d41ad);}if(_0x13df73){if(!_0x2bf149)throw new Error(_0x32b647['ygqvb']);const _0x1ce7c5=_0x32b647[_0x2cd191(0xe6)](require,_0x32b647[_0x2cd191(0x114)]),_0x215728=_0x1ce7c5[_0x2cd191(0xeb)]()[_0x2cd191(0x91)]();if(!_0x215728)throw new Error(_0x32b647[_0x2cd191(0xb2)]);const _0x5e1094=_0x32b647[_0x2cd191(0x10d)](require,_0x32b647[_0x2cd191(0x113)]),_0x7bee03=_0x32b647[_0x2cd191(0x10d)](require,_0x32b647[_0x2cd191(0xe7)]),_0x5758ad=_0x215728[_0x2cd191(0xbc)](_0x5e1094['TEST'],_0x7bee03[_0x2cd191(0xff)]);if(!_0x5758ad)throw new Error(_0x32b647[_0x2cd191(0xa6)]);const _0x1c75c8=_0x5758ad[_0x2cd191(0xab)]()['get'](_0x2bf149)||{},_0x41aee3=_0x1c75c8[TestFrameworkConstants[_0x2cd191(0xc9)]]||{};logger[_0x2cd191(0xba)](_0x2cd191(0x100)+_0x2bf149+_0x2cd191(0xf4)+_0x2f3c81+',\x20values='+JSON[_0x2cd191(0xc1)](_0xaf183b)+_0x2cd191(0xc2)+JSON[_0x2cd191(0xc1)](_0x41aee3)),CustomTagManager[_0x2cd191(0xa1)](_0x41aee3,_0x2f3c81,_0xaf183b),logger[_0x2cd191(0xba)]('[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key='+_0x2f3c81+'\x20->\x20values='+JSON[_0x2cd191(0xc1)](_0x41aee3[_0x2f3c81][_0x2cd191(0xf8)]));const _0x2d636e={[TestFrameworkConstants[_0x2cd191(0xc9)]]:_0x41aee3},_0xb527ef={};_0xb527ef[_0x2bf149]=_0x2d636e,_0x5758ad['addMultipleEntries'](_0xb527ef),logger[_0x2cd191(0xba)](_0x2cd191(0xa5)+_0x2bf149+_0x2cd191(0x96)+JSON[_0x2cd191(0xc1)](_0x41aee3)),!this['testLevelTags'][_0x2bf149]&&(this[_0x2cd191(0xdc)][_0x2bf149]={}),this[_0x2cd191(0xdc)][_0x2bf149][_0x2f3c81]=CustomTagManager['mergeValues'](this[_0x2cd191(0xdc)][_0x2bf149][_0x2f3c81],_0xaf183b);}else{const _0x79dcfb=global[_0x2cd191(0x10b)]?.[_0x2cd191(0xec)]?.[_0x2cd191(0xf3)];if(!_0x79dcfb){const _0x1e6b0a=AutomationFramework[_0x2cd191(0xf5)]();_0x2bf149=AutomationFramework[_0x2cd191(0xe4)](_0x1e6b0a,PlaywrightDriverModule[_0x2cd191(0x10f)],'');}else _0x2bf149=TestInfo[_0x2cd191(0xd8)](_0x79dcfb,_0x79dcfb[_0x2cd191(0x9a)]);const _0x881840=TestInfo[_0x2cd191(0xf9)](_0x2bf149),_0x159d29=_0x881840[TestFrameworkConstants[_0x2cd191(0xc9)]]||{};CustomTagManager[_0x2cd191(0xa1)](_0x159d29,_0x2f3c81,_0xaf183b),_0x881840[TestFrameworkConstants[_0x2cd191(0xc9)]]=_0x159d29,TestInfo[_0x2cd191(0xcd)](_0x2bf149,_0x881840),!this[_0x2cd191(0xdc)][_0x2bf149]&&(this['testLevelTags'][_0x2bf149]={}),this[_0x2cd191(0xdc)][_0x2bf149][_0x2f3c81]=CustomTagManager[_0x2cd191(0x110)](this[_0x2cd191(0xdc)][_0x2bf149][_0x2f3c81],_0xaf183b);}}}static[a85_0x57f39f(0xdf)](){const _0x5d1c1c=a85_0x57f39f,_0x25709c={...this[_0x5d1c1c(0x108)]};return _0x25709c;}static[a85_0x57f39f(0xc6)](){const _0x3e383b={...this['testLevelTags']};return _0x3e383b;}static['clearTags'](){const _0xdf7d77=a85_0x57f39f;this[_0xdf7d77(0x108)]={},this[_0xdf7d77(0xdc)]={};}static['mergeBuildLevelTags'](_0x355250,_0x19331c){const _0x2ca55f=a85_0x57f39f,_0x2b488e={};_0x2b488e['pUQnt']=function(_0x2029f0,_0x1a9592){return _0x2029f0||_0x1a9592;};const _0x3f9823=_0x2b488e;if(!_0x355250)return;!this['buildLevelTags'][_0x355250]&&(this[_0x2ca55f(0x108)][_0x355250]={});for(const [_0x261fae,_0x2f7447]of Object[_0x2ca55f(0x92)](_0x3f9823[_0x2ca55f(0xbd)](_0x19331c,{}))){if(!_0x2f7447||!Array[_0x2ca55f(0xd0)](_0x2f7447[_0x2ca55f(0xf8)]))continue;this[_0x2ca55f(0x108)][_0x355250][_0x261fae]=CustomTagManager[_0x2ca55f(0x110)](this['buildLevelTags'][_0x355250][_0x261fae],_0x2f7447[_0x2ca55f(0xf8)]);}}static[a85_0x57f39f(0xa4)](_0x20c75f,_0x54c749){const _0x592910=a85_0x57f39f,_0xeaa194={};_0xeaa194[_0x592910(0xa3)]=_0x592910(0xcf),_0xeaa194[_0x592910(0xfd)]=function(_0x309c04,_0x59cca3){return _0x309c04*_0x59cca3;},_0xeaa194[_0x592910(0x94)]=function(_0x4b9a47,_0x2b8fb8){return _0x4b9a47*_0x2b8fb8;},_0xeaa194['RZyfr']=function(_0x2a8831,_0x243156){return _0x2a8831>_0x243156;},_0xeaa194[_0x592910(0x112)]=function(_0x2f66b2,_0x26ddd9){return _0x2f66b2-_0x26ddd9;},_0xeaa194['AIWFn']=_0x592910(0x93);const _0x39d461=_0xeaa194;if(!_0x20c75f)return logger[_0x592910(0xba)](_0x39d461[_0x592910(0xa3)]),0x0;let _0x281a8b;try{_0x281a8b=os['tmpdir']();}catch(_0xc61e1d){return logger[_0x592910(0xba)](_0x592910(0xb7)+_0xc61e1d),0x0;}let _0x3c927b;try{_0x3c927b=fs[_0x592910(0xe3)](_0x281a8b);}catch(_0x4462d6){return logger[_0x592910(0xba)](_0x592910(0x9b)+_0x4462d6),0x0;}const _0x344b06=''+BUILD_TAG_FILE_PREFIX+_0x20c75f+'_',_0x3cc4eb=_0x3c927b[_0x592910(0xf6)](_0x214b6f=>_0x214b6f[_0x592910(0x107)](_0x344b06)&&_0x214b6f['endsWith'](_0x592910(0xd9))),_0x27bf18=_0x39d461['DBadz'](_0x39d461[_0x592910(0xfd)](_0x39d461[_0x592910(0x94)](0x2,0x3c),0x3c),0x3e8);let _0x22ee37=0x0;for(const _0x2af2f1 of _0x3cc4eb){const _0x362513=path[_0x592910(0x102)](_0x281a8b,_0x2af2f1);try{const _0x1dfef7=fs[_0x592910(0x106)](_0x362513);if(_0x39d461[_0x592910(0x105)](_0x39d461[_0x592910(0x112)](Date['now'](),_0x1dfef7['mtimeMs']),_0x27bf18)){logger[_0x592910(0xba)](_0x592910(0xf7)+_0x27bf18+_0x592910(0xf2)+_0x2af2f1);try{fs[_0x592910(0xbe)](_0x362513);}catch(_0x46da8d){logger[_0x592910(0xba)](_0x592910(0xd2)+_0x2af2f1+':\x20'+(_0x46da8d&&_0x46da8d[_0x592910(0xfb)]?_0x46da8d[_0x592910(0xfb)]:_0x46da8d));}continue;}const _0x4d3e21=fs[_0x592910(0x98)](_0x362513,_0x39d461[_0x592910(0xaf)]),_0x13c8cf=JSON[_0x592910(0x115)](_0x4d3e21);this['mergeBuildLevelTags'](_0x54c749,_0x13c8cf),_0x22ee37+=0x1;}catch(_0x12f10d){logger[_0x592910(0xba)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x2af2f1+':\x20'+(_0x12f10d&&_0x12f10d['message']?_0x12f10d[_0x592910(0xfb)]:_0x12f10d));}try{fs['unlinkSync'](_0x362513);}catch(_0x316033){logger['debug'](_0x592910(0x109)+_0x2af2f1+':\x20'+(_0x316033&&_0x316033[_0x592910(0xfb)]?_0x316033[_0x592910(0xfb)]:_0x316033));}}return _0x22ee37;}}const a85_0xbe723a={};a85_0xbe723a[a85_0x57f39f(0xad)]=getBuildTagsRunId,a85_0xbe723a[a85_0x57f39f(0x10e)]=getBuildTagsFilePath,a85_0xbe723a[a85_0x57f39f(0xa2)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a85_0x57f39f(0xdd)]=a85_0xbe723a,module[a85_0x57f39f(0xc8)]=CustomTagManager;
|
|
1
|
+
'use strict';const a85_0x17961c=a85_0x1847;function a85_0x4205(){const _0x59ff60=['psNWI','28312760TovzQt','jBPWS',':jest-','lfNIT','1230435KCgqlK','GGwyk','getInstance','exports','nCMdl','testInfo','filter','retry','clearTags','./framework/constants/testFrameworkConstants','readFileSync','statSync','484540oBxYuB','mergeIntoTags','string','./framework/automationFramework','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','6559512OTfNrS','length','setCustomTags','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','getState','values','getTestLevelTags','getBuildTagsRunId','path','getTestFrameworkDetail','KEY_TEST_ID','RcKix','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','NcOUC','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','bstack_build_tags_','yjHPc','./cliUtils','pid','trim','nMBjE','readdirSync','lQjzL',',\x20key=','getBuildLevelTags','ekxWs','join','mergeBuildLevelTags','from','entries','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','getTrackedInstance','getTestDetails','keys','fKKGx','toLowerCase','fffDO','resolveInstance','setTestDetails','utf8','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','multi_dropdown','debug','967045EDzzlr','includes','field_type','testhubConfig','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','message','__workerDetails','iPgsa','ySNfR','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','./TestInfo','878288VtYDuM','\x20->\x20values=','addMultipleEntries','testLevelTags','2668512MTeKcU','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','now','isArray','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','.json','UiMDD','parseCommaSeparatedValues','./modules/testhubModule','aggregateBuildLevelTagsFromTmp','KAgIV','KEY_CUSTOM_TAGS','NPNrW','getTestIdentifierFromTestInfo','mergeValues','getBuildTagsFilePath','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','jest','buildLevelTags','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','getTestUUID','wAYwp','promises','_testInternals','tmpdir','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','YrkbI','CustomTagManager','PqpiC','srwDx','vwsZJ','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','BROWSERSTACK_TESTHUB_UUID','BUILD_TAG_FILE_PREFIX','endsWith','ZLBbK','get','unlinkSync','TKCmS','UWZQO','stringify','../../helpers/classLogger','GNnGr','EqNlo'];a85_0x4205=function(){return _0x59ff60;};return a85_0x4205();}(function(_0x5e1a6e,_0x288077){const _0x1c19e2=a85_0x1847,_0x568653=_0x5e1a6e();while(!![]){try{const _0x85aac7=-parseInt(_0x1c19e2(0x179))/0x1+-parseInt(_0x1c19e2(0x185))/0x2+-parseInt(_0x1c19e2(0x148))/0x3+parseInt(_0x1c19e2(0x144))/0x4+-parseInt(_0x1c19e2(0x139))/0x5+-parseInt(_0x1c19e2(0x18a))/0x6+parseInt(_0x1c19e2(0x175))/0x7;if(_0x85aac7===_0x288077)break;else _0x568653['push'](_0x568653['shift']());}catch(_0x3e9335){_0x568653['push'](_0x568653['shift']());}}}(a85_0x4205,0x963d6));const fs=require('fs'),os=require('os'),path=require(a85_0x17961c(0x192)),helper=require('../../helpers/helper'),AutomationFramework=require(a85_0x17961c(0x188)),TestFrameworkConstants=require(a85_0x17961c(0x182)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a85_0x17961c(0x143)),TestHubModule=require(a85_0x17961c(0x150)),{createClassLogger}=require(a85_0x17961c(0x171)),logger=createClassLogger(a85_0x17961c(0x163)),BUILD_TAG_FILE_PREFIX=a85_0x17961c(0x199);function getBuildTagsRunId(){const _0x2997a3=a85_0x17961c,_0x49bce9={};_0x49bce9['TKCmS']=function(_0x5e3009,_0x1dea1c){return _0x5e3009===_0x1dea1c;},_0x49bce9[_0x2997a3(0x140)]='null';const _0x34542b=_0x49bce9,_0x128367=process['env'][_0x2997a3(0x168)];if(!_0x128367||_0x34542b[_0x2997a3(0x16e)](_0x128367,_0x34542b[_0x2997a3(0x140)]))return null;return _0x128367;}function a85_0x1847(_0x303059,_0x1c2609){const _0x4205cf=a85_0x4205();return a85_0x1847=function(_0x184788,_0x2ca3f8){_0x184788=_0x184788-0x11e;let _0xb66417=_0x4205cf[_0x184788];return _0xb66417;},a85_0x1847(_0x303059,_0x1c2609);}function getBuildTagsFilePath(_0x12d79f){const _0x30f7a1=a85_0x17961c;return path['join'](os['tmpdir'](),''+BUILD_TAG_FILE_PREFIX+_0x12d79f+'_'+process[_0x30f7a1(0x11f)]+_0x30f7a1(0x14d));}class CustomTagManager{static [a85_0x17961c(0x15a)]={};static ['testLevelTags']={};static['mergeValues'](_0x129a8a,_0x54c06b){const _0x25f950=a85_0x17961c;return Array[_0x25f950(0x129)](new Set([..._0x129a8a||[],..._0x54c06b||[]]));}static[a85_0x17961c(0x186)](_0x1426ff,_0x2ad625,_0x61f9b){const _0x5cbf64=a85_0x17961c,_0x390035={};_0x390035[_0x5cbf64(0x16b)]=_0x5cbf64(0x137);const _0x32ac3f=_0x390035;if(!_0x1426ff[_0x2ad625]){const _0x39292b={};_0x39292b['field_type']=_0x32ac3f[_0x5cbf64(0x16b)],_0x39292b[_0x5cbf64(0x18f)]=[..._0x61f9b||[]],_0x1426ff[_0x2ad625]=_0x39292b;}else!_0x1426ff[_0x2ad625][_0x5cbf64(0x13b)]&&(_0x1426ff[_0x2ad625][_0x5cbf64(0x13b)]=_0x32ac3f[_0x5cbf64(0x16b)]),!Array['isArray'](_0x1426ff[_0x2ad625][_0x5cbf64(0x18f)])&&(_0x1426ff[_0x2ad625][_0x5cbf64(0x18f)]=[]),_0x1426ff[_0x2ad625][_0x5cbf64(0x18f)]=CustomTagManager['mergeValues'](_0x1426ff[_0x2ad625][_0x5cbf64(0x18f)],_0x61f9b);return _0x1426ff;}static async[a85_0x17961c(0x18c)](_0xc33f4b,_0x144206,_0x278801=![]){const _0x375f89=a85_0x17961c,_0x4c8d8f={'fffDO':function(_0x555786,_0x3ae4c9){return _0x555786!==_0x3ae4c9;},'PqpiC':_0x375f89(0x187),'ziuXm':_0x375f89(0x15b),'lfNIT':_0x375f89(0x198),'UWZQO':function(_0x34f827,_0x31451e){return _0x34f827===_0x31451e;},'ekxWs':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','wAYwp':_0x375f89(0x135),'NcOUC':function(_0x4441e0,_0x16a710){return _0x4441e0(_0x16a710);},'UiMDD':'./browserstackCLI','lQjzL':function(_0x444049){return _0x444049();},'vwsZJ':_0x375f89(0x137),'YrkbI':function(_0x491666,_0x469400){return _0x491666>_0x469400;},'EqNlo':_0x375f89(0x142),'nCMdl':_0x375f89(0x177),'usfHe':function(_0x30684f,_0x4e4eb9){return _0x30684f(_0x4e4eb9);},'ySNfR':_0x375f89(0x11e),'dyIht':function(_0x5a1e15,_0x2911b9){return _0x5a1e15(_0x2911b9);},'PLLWr':_0x375f89(0x159),'MDnmQ':_0x375f89(0x167),'Mpeyt':function(_0x4e17a8,_0x9921c5){return _0x4e17a8(_0x9921c5);},'srwDx':_0x375f89(0x149),'RcKix':'./state/testFrameworkState','nMBjE':function(_0x2c4e13,_0x4fb1cb){return _0x2c4e13(_0x4fb1cb);},'yjHPc':'./state/hookState','tVKKE':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x4c8d8f[_0x375f89(0x131)](typeof _0xc33f4b,_0x4c8d8f[_0x375f89(0x164)])){logger[_0x375f89(0x138)](_0x4c8d8f['ziuXm']);return;}if(_0x4c8d8f[_0x375f89(0x131)](typeof _0x144206,_0x4c8d8f[_0x375f89(0x164)])){logger['debug'](_0x4c8d8f[_0x375f89(0x178)]);return;}if(_0x4c8d8f[_0x375f89(0x16f)](_0xc33f4b[_0x375f89(0x120)](),'')){logger[_0x375f89(0x138)](_0x4c8d8f[_0x375f89(0x126)]);return;}if(_0x4c8d8f[_0x375f89(0x16f)](_0x144206[_0x375f89(0x120)](),'')){logger[_0x375f89(0x138)](_0x4c8d8f[_0x375f89(0x15d)]);return;}const _0x310039=helper[_0x375f89(0x14f)](_0x144206);if(_0x278801){const _0x207143=_0x4c8d8f[_0x375f89(0x197)](require,_0x4c8d8f[_0x375f89(0x14e)]),_0x28a50b=_0x207143[_0x375f89(0x17b)](),_0x571758=_0x28a50b&&_0x28a50b['modules'][TestHubModule['MODULE_NAME']];if(_0x571758){const _0x3cfb92=_0x571758?.[_0x375f89(0x13c)]?.['toObject']()?.['buildHashedId'];TestInfo[_0x375f89(0x15c)](_0x3cfb92);const _0x466b99=TestInfo[_0x375f89(0x12d)](_0x3cfb92),_0x458d9a=_0x466b99[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x375f89(0x186)](_0x458d9a,_0xc33f4b,_0x310039),_0x466b99[TestFrameworkConstants[_0x375f89(0x153)]]=_0x458d9a,TestInfo[_0x375f89(0x133)](_0x3cfb92,_0x466b99);!this['buildLevelTags'][_0x3cfb92]&&(this[_0x375f89(0x15a)][_0x3cfb92]={});this['buildLevelTags'][_0x3cfb92][_0xc33f4b]=CustomTagManager['mergeValues'](this[_0x375f89(0x15a)][_0x3cfb92][_0xc33f4b],_0x310039);try{const _0x2b8b3c=_0x4c8d8f[_0x375f89(0x123)](getBuildTagsRunId);if(_0x2b8b3c){const _0x10f71a={};for(const [_0x4e54ed,_0x1eddf1]of Object[_0x375f89(0x12a)](this['buildLevelTags'][_0x3cfb92]||{})){_0x10f71a[_0x4e54ed]={'field_type':_0x4c8d8f[_0x375f89(0x166)],'values':Array[_0x375f89(0x14b)](_0x1eddf1)?[..._0x1eddf1]:[]};}_0x4c8d8f[_0x375f89(0x162)](Object[_0x375f89(0x12e)](_0x10f71a)[_0x375f89(0x18b)],0x0)&&await fs[_0x375f89(0x15e)]['writeFile'](_0x4c8d8f[_0x375f89(0x197)](getBuildTagsFilePath,_0x2b8b3c),JSON[_0x375f89(0x170)](_0x10f71a));}else logger[_0x375f89(0x138)](_0x4c8d8f[_0x375f89(0x173)]);}catch(_0x22befe){logger[_0x375f89(0x138)]('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0x22befe&&_0x22befe[_0x375f89(0x13e)]?_0x22befe[_0x375f89(0x13e)]:_0x22befe));}}}else{let _0x4be304;const _0x5144c7=global['__jestCurrentTestIdentifier'];let _0x508532=![];if(_0x5144c7&&_0x5144c7[_0x375f89(0x13a)](_0x4c8d8f[_0x375f89(0x17d)]))_0x508532=!![],_0x4be304=_0x5144c7;else try{const _0x2b227c=_0x4c8d8f['usfHe'](require,_0x4c8d8f[_0x375f89(0x141)]),_0x43d31c=_0x4c8d8f['dyIht'](require,_0x4c8d8f[_0x375f89(0x14e)]);if(_0x43d31c[_0x375f89(0x17b)]()['isRunning']()){const _0x367e5c=_0x2b227c[_0x375f89(0x193)]();if(_0x4c8d8f[_0x375f89(0x16f)](_0x367e5c?.['name']?.[_0x375f89(0x130)](),_0x4c8d8f['PLLWr'])){const _0x585860=AutomationFramework[_0x375f89(0x12c)]();_0x4be304=AutomationFramework[_0x375f89(0x18e)](_0x585860,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x4be304&&_0x4be304[_0x375f89(0x13a)](_0x4c8d8f[_0x375f89(0x17d)])&&(_0x508532=!![]);}}}catch(_0x74569e){logger['debug'](_0x375f89(0x136)+_0x74569e);}if(_0x508532){if(!_0x4be304)throw new Error(_0x4c8d8f['MDnmQ']);const _0x5243c7=_0x4c8d8f['Mpeyt'](require,_0x4c8d8f[_0x375f89(0x14e)]),_0xb044c0=_0x5243c7[_0x375f89(0x17b)]()['getTestFramework']();if(!_0xb044c0)throw new Error(_0x4c8d8f[_0x375f89(0x165)]);const _0x20ed53=_0x4c8d8f['NcOUC'](require,_0x4c8d8f[_0x375f89(0x195)]),_0xb3c028=_0x4c8d8f[_0x375f89(0x121)](require,_0x4c8d8f[_0x375f89(0x19a)]),_0x15e9ac=_0xb044c0[_0x375f89(0x132)](_0x20ed53['TEST'],_0xb3c028['POST']);if(!_0x15e9ac)throw new Error(_0x4c8d8f['tVKKE']);const _0x401c03=_0x15e9ac['getAllData']()[_0x375f89(0x16c)](_0x4be304)||{},_0x128ce5=_0x401c03[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0x375f89(0x138)](_0x375f89(0x161)+_0x4be304+_0x375f89(0x124)+_0xc33f4b+',\x20values='+JSON[_0x375f89(0x170)](_0x310039)+',\x20existingTags='+JSON['stringify'](_0x128ce5)),CustomTagManager[_0x375f89(0x186)](_0x128ce5,_0xc33f4b,_0x310039),logger[_0x375f89(0x138)](_0x375f89(0x158)+_0xc33f4b+_0x375f89(0x145)+JSON['stringify'](_0x128ce5[_0xc33f4b]['values']));const _0x2ad5dc={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x128ce5},_0x493762={};_0x493762[_0x4be304]=_0x2ad5dc,_0x15e9ac[_0x375f89(0x146)](_0x493762),logger[_0x375f89(0x138)](_0x375f89(0x196)+_0x4be304+',\x20finalTags='+JSON[_0x375f89(0x170)](_0x128ce5)),!this['testLevelTags'][_0x4be304]&&(this[_0x375f89(0x147)][_0x4be304]={}),this[_0x375f89(0x147)][_0x4be304][_0xc33f4b]=CustomTagManager['mergeValues'](this[_0x375f89(0x147)][_0x4be304][_0xc33f4b],_0x310039);}else{const _0x2dbe67=global[_0x375f89(0x13f)]?.['currentTest']?.[_0x375f89(0x17e)];if(!_0x2dbe67){const _0xa4cd48=AutomationFramework[_0x375f89(0x12c)]();_0x4be304=AutomationFramework[_0x375f89(0x18e)](_0xa4cd48,PlaywrightDriverModule[_0x375f89(0x194)],'');}else _0x4be304=TestInfo[_0x375f89(0x155)](_0x2dbe67,_0x2dbe67[_0x375f89(0x180)]);const _0x559048=TestInfo[_0x375f89(0x12d)](_0x4be304),_0x1666c9=_0x559048[TestFrameworkConstants[_0x375f89(0x153)]]||{};CustomTagManager[_0x375f89(0x186)](_0x1666c9,_0xc33f4b,_0x310039),_0x559048[TestFrameworkConstants[_0x375f89(0x153)]]=_0x1666c9,TestInfo['setTestDetails'](_0x4be304,_0x559048),!this[_0x375f89(0x147)][_0x4be304]&&(this['testLevelTags'][_0x4be304]={}),this['testLevelTags'][_0x4be304][_0xc33f4b]=CustomTagManager[_0x375f89(0x156)](this[_0x375f89(0x147)][_0x4be304][_0xc33f4b],_0x310039);}}}static[a85_0x17961c(0x125)](){const _0x2a1c98={...this['buildLevelTags']};return _0x2a1c98;}static[a85_0x17961c(0x190)](){const _0x4a8a14={...this['testLevelTags']};return _0x4a8a14;}static[a85_0x17961c(0x181)](){const _0x36bca0=a85_0x17961c;this[_0x36bca0(0x15a)]={},this[_0x36bca0(0x147)]={};}static[a85_0x17961c(0x128)](_0x51049e,_0x56b0d4){const _0x2725d2=a85_0x17961c,_0x3bae66={};_0x3bae66[_0x2725d2(0x17a)]=function(_0x56dd80,_0x1f3b76){return _0x56dd80||_0x1f3b76;};const _0x59b62b=_0x3bae66;if(!_0x51049e)return;!this[_0x2725d2(0x15a)][_0x51049e]&&(this['buildLevelTags'][_0x51049e]={});for(const [_0x96e66b,_0x50027e]of Object[_0x2725d2(0x12a)](_0x59b62b[_0x2725d2(0x17a)](_0x56b0d4,{}))){if(!_0x50027e||!Array[_0x2725d2(0x14b)](_0x50027e[_0x2725d2(0x18f)]))continue;this['buildLevelTags'][_0x51049e][_0x96e66b]=CustomTagManager[_0x2725d2(0x156)](this[_0x2725d2(0x15a)][_0x51049e][_0x96e66b],_0x50027e[_0x2725d2(0x18f)]);}}static[a85_0x17961c(0x151)](_0x376eff,_0x42ff32){const _0x4c024d=a85_0x17961c,_0x5c46d1={};_0x5c46d1[_0x4c024d(0x172)]=_0x4c024d(0x18d),_0x5c46d1[_0x4c024d(0x152)]=function(_0xe1bceb,_0x431bf7){return _0xe1bceb*_0x431bf7;},_0x5c46d1[_0x4c024d(0x176)]=function(_0x3e8a19,_0x53762a){return _0x3e8a19*_0x53762a;},_0x5c46d1[_0x4c024d(0x12f)]=function(_0x291d35,_0x2b7ec6){return _0x291d35>_0x2b7ec6;},_0x5c46d1['NPNrW']=function(_0x3cf234,_0x2b64b9){return _0x3cf234-_0x2b64b9;},_0x5c46d1[_0x4c024d(0x174)]=_0x4c024d(0x134);const _0x41dbea=_0x5c46d1;if(!_0x376eff)return logger[_0x4c024d(0x138)](_0x41dbea[_0x4c024d(0x172)]),0x0;let _0x526a4b;try{_0x526a4b=os[_0x4c024d(0x160)]();}catch(_0x329bcd){return logger[_0x4c024d(0x138)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20'+_0x329bcd),0x0;}let _0x61d9c9;try{_0x61d9c9=fs[_0x4c024d(0x122)](_0x526a4b);}catch(_0xfbb6e3){return logger['debug'](_0x4c024d(0x189)+_0xfbb6e3),0x0;}const _0x3a5257=''+BUILD_TAG_FILE_PREFIX+_0x376eff+'_',_0x346c0c=_0x61d9c9[_0x4c024d(0x17f)](_0x2e81f9=>_0x2e81f9['startsWith'](_0x3a5257)&&_0x2e81f9[_0x4c024d(0x16a)]('.json')),_0xc9cfa4=_0x41dbea[_0x4c024d(0x152)](_0x41dbea[_0x4c024d(0x176)](_0x41dbea[_0x4c024d(0x176)](0x2,0x3c),0x3c),0x3e8);let _0x57f36e=0x0;for(const _0x53153f of _0x346c0c){const _0x1ca94e=path[_0x4c024d(0x127)](_0x526a4b,_0x53153f);try{const _0x367797=fs[_0x4c024d(0x184)](_0x1ca94e);if(_0x41dbea['fKKGx'](_0x41dbea[_0x4c024d(0x154)](Date[_0x4c024d(0x14a)](),_0x367797['mtimeMs']),_0xc9cfa4)){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>'+_0xc9cfa4+'ms)\x20'+_0x53153f);try{fs[_0x4c024d(0x16d)](_0x1ca94e);}catch(_0xb9f8b3){logger['debug'](_0x4c024d(0x12b)+_0x53153f+':\x20'+(_0xb9f8b3&&_0xb9f8b3['message']?_0xb9f8b3['message']:_0xb9f8b3));}continue;}const _0x10c4cb=fs[_0x4c024d(0x183)](_0x1ca94e,_0x41dbea[_0x4c024d(0x174)]),_0x18c4ce=JSON['parse'](_0x10c4cb);this[_0x4c024d(0x128)](_0x42ff32,_0x18c4ce),_0x57f36e+=0x1;}catch(_0x5a9c66){logger[_0x4c024d(0x138)](_0x4c024d(0x14c)+_0x53153f+':\x20'+(_0x5a9c66&&_0x5a9c66[_0x4c024d(0x13e)]?_0x5a9c66[_0x4c024d(0x13e)]:_0x5a9c66));}try{fs[_0x4c024d(0x16d)](_0x1ca94e);}catch(_0x5a62fa){logger['debug'](_0x4c024d(0x13d)+_0x53153f+':\x20'+(_0x5a62fa&&_0x5a62fa[_0x4c024d(0x13e)]?_0x5a62fa['message']:_0x5a62fa));}}return _0x57f36e;}}const a85_0x29c43c={};a85_0x29c43c[a85_0x17961c(0x191)]=getBuildTagsRunId,a85_0x29c43c[a85_0x17961c(0x157)]=getBuildTagsFilePath,a85_0x29c43c[a85_0x17961c(0x169)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a85_0x17961c(0x15f)]=a85_0x29c43c,module[a85_0x17961c(0x17c)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x40c271=a86_0x2d2e;(function(_0x1dda1f,_0x246273){const _0x57c6c3=a86_0x2d2e,_0x301133=_0x1dda1f();while(!![]){try{const _0x527d51=-parseInt(_0x57c6c3(0x168))/0x1*(parseInt(_0x57c6c3(0x16c))/0x2)+parseInt(_0x57c6c3(0x15e))/0x3*(-parseInt(_0x57c6c3(0x161))/0x4)+parseInt(_0x57c6c3(0x165))/0x5*(-parseInt(_0x57c6c3(0x163))/0x6)+-parseInt(_0x57c6c3(0x16e))/0x7*(-parseInt(_0x57c6c3(0x169))/0x8)+parseInt(_0x57c6c3(0x167))/0x9+-parseInt(_0x57c6c3(0x16b))/0xa*(-parseInt(_0x57c6c3(0x171))/0xb)+-parseInt(_0x57c6c3(0x172))/0xc*(-parseInt(_0x57c6c3(0x16d))/0xd);if(_0x527d51===_0x246273)break;else _0x301133['push'](_0x301133['shift']());}catch(_0x328ca1){_0x301133['push'](_0x301133['shift']());}}}(a86_0x542d,0x9bb2d));const {createClassLogger}=require(a86_0x40c271(0x15f));class EventDispatcher{static #instance=null;constructor(){const _0x50bdc5=a86_0x40c271;this[_0x50bdc5(0x166)]={};}static[a86_0x40c271(0x170)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a86_0x40c271(0x160)](_0x360a8f,_0x5d23a6){const _0xc4a0ff=a86_0x40c271;!this[_0xc4a0ff(0x166)][_0x360a8f]&&(this['observers'][_0x360a8f]=[]),this[_0xc4a0ff(0x166)][_0x360a8f][_0xc4a0ff(0x162)](_0x5d23a6);}async[a86_0x40c271(0x164)](_0xea4448,_0x246e07){const _0x26deb0=a86_0x40c271,_0x4a0540={'EeFip':function(_0x56adc5,_0x30d419){return _0x56adc5(_0x30d419);}};if(this[_0x26deb0(0x166)][_0xea4448]){for(const _0x5db511 of this['observers'][_0xea4448]){await _0x4a0540['EeFip'](_0x5db511,_0x246e07);}return;}}}function a86_0x542d(){const _0x22d8ba=['push','1536xVAHaV','notifyObserver','19735WksfKT','observers','1517589TExRrq','42878phmQsR','8886736JIMyZL','freeze','5678630McBKcJ','26CikrHB','4857476iwtnPE','7qTjPQE','exports','getInstance','11xyGWKE','36MaaUho','15iNzgyU','../../helpers/classLogger.js','registerObserver','610156eeNVeu'];a86_0x542d=function(){return _0x22d8ba;};return a86_0x542d();}const eventDispatcher=EventDispatcher[a86_0x40c271(0x170)]();function a86_0x2d2e(_0x387517,_0x4c59ff){const _0x542db1=a86_0x542d();return a86_0x2d2e=function(_0x2d2edf,_0x1f5c97){_0x2d2edf=_0x2d2edf-0x15e;let _0x115010=_0x542db1[_0x2d2edf];return _0x115010;},a86_0x2d2e(_0x387517,_0x4c59ff);}Object[a86_0x40c271(0x16a)](eventDispatcher),module[a86_0x40c271(0x16f)]=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x2e4fbc=a87_0x4663;function a87_0x5d39(){const _0x59feea=['util','registerObserver','trackEvent','getState','../cliUtils.js','runHooks','874320CpxjFy','createContext','notifyObserver','getHookRegistryKey','setState','getAllData','15210080qhPTNa','automationFrameworkVersion','7poUHvF','exports','getTrackedInstance','6sjaMmZ','set','\x20hookState=','../eventDispatcher.js','4056885GxKCju','KEY_AUTOMATION_SESSIONS','getId','81568apdqlS','get','automationFrameworkName','non_browserstack_automation_sessions','7rWvGzv','418968oLjRrU','AutomationFramework','10hXsRBd','10748424QCwioW','../../../helpers/classLogger.js','176GqQxyP','trackEvent:\x20automationFrameworkState=','instances','86652MsoSXA','../instances/trackedInstance.js'];a87_0x5d39=function(){return _0x59feea;};return a87_0x5d39();}(function(_0x1b0311,_0x56ef5e){const _0x4448ec=a87_0x4663,_0x2d518b=_0x1b0311();while(!![]){try{const _0x5a5180=parseInt(_0x4448ec(0xd7))/0x1*(-parseInt(_0x4448ec(0xe1))/0x2)+-parseInt(_0x4448ec(0xda))/0x3*(-parseInt(_0x4448ec(0xee))/0x4)+parseInt(_0x4448ec(0xe8))/0x5*(-parseInt(_0x4448ec(0xe6))/0x6)+-parseInt(_0x4448ec(0xe5))/0x7*(-parseInt(_0x4448ec(0xe9))/0x8)+-parseInt(_0x4448ec(0xde))/0x9+parseInt(_0x4448ec(0xd5))/0xa+parseInt(_0x4448ec(0xeb))/0xb*(-parseInt(_0x4448ec(0xf6))/0xc);if(_0x5a5180===_0x56ef5e)break;else _0x2d518b['push'](_0x2d518b['shift']());}catch(_0x5aa7ba){_0x2d518b['push'](_0x2d518b['shift']());}}}(a87_0x5d39,0xd37aa));const {createClassLogger}=require(a87_0x2e4fbc(0xea)),util=require(a87_0x2e4fbc(0xf0)),eventDispatcher=require(a87_0x2e4fbc(0xdd)),CLIUtils=require(a87_0x2e4fbc(0xf4)),TrackedInstance=require(a87_0x2e4fbc(0xef)),logger=createClassLogger(a87_0x2e4fbc(0xe7));class AutomationFramework{static [a87_0x2e4fbc(0xed)]=new Map();static [a87_0x2e4fbc(0xdf)]='automation_sessions';static ['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS']=a87_0x2e4fbc(0xe4);constructor(_0x45831d,_0x22180d){const _0x4789d8=a87_0x2e4fbc;this['automationFrameworkName']=_0x45831d,this[_0x4789d8(0xd6)]=_0x22180d;}['getAutomationFrameworkName'](){const _0x59d92f=a87_0x2e4fbc;return this[_0x59d92f(0xe3)];}['getAutomationFrameworkVersion'](){const _0x1104fe=a87_0x2e4fbc;return this[_0x1104fe(0xd6)];}async[a87_0x2e4fbc(0xf2)](_0x49929b,_0x3fb54c,_0x880e0d={}){const _0x3d2771=a87_0x2e4fbc;logger['debug'](_0x3d2771(0xec)+_0x49929b+_0x3d2771(0xdc)+_0x3fb54c);}async[a87_0x2e4fbc(0xf5)](_0x1ce377,_0x3757c3,_0xa4d414,_0x227658={}){const _0x2abf7c=a87_0x2e4fbc,_0x59f653=CLIUtils[_0x2abf7c(0xf9)](_0x3757c3,_0xa4d414);_0x1ce377&&_0x1ce377[_0x2abf7c(0xfa)](_0x3757c3),await eventDispatcher[_0x2abf7c(0xf8)](_0x59f653,_0x227658);}static['registerObserver'](_0x494e90,_0x40f569,_0x4bbe75){const _0x1c6c33=a87_0x2e4fbc;eventDispatcher[_0x1c6c33(0xf1)](CLIUtils[_0x1c6c33(0xf9)](_0x494e90,_0x40f569),_0x4bbe75);}static['setTrackedInstance'](_0x1767dd,_0x53ed1f){const _0x1aa800=a87_0x2e4fbc;AutomationFramework['instances'][_0x1aa800(0xdb)](_0x1767dd[_0x1aa800(0xe0)](),_0x53ed1f);}static[a87_0x2e4fbc(0xd9)](){const _0x13439c=a87_0x2e4fbc,_0x44a995=TrackedInstance[_0x13439c(0xf7)](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x13439c(0xed)][_0x13439c(0xe2)](_0x44a995[_0x13439c(0xe0)]());}static['setState'](_0x283ff6,_0x25e805,_0x1b7f60){const _0x53ea0c=a87_0x2e4fbc;_0x283ff6[_0x53ea0c(0xfb)]()['set'](_0x25e805,_0x1b7f60);}static[a87_0x2e4fbc(0xf3)](_0x7d2e89,_0x26119e){const _0xb606a7=a87_0x2e4fbc;return _0x7d2e89[_0xb606a7(0xfb)]()['get'](_0x26119e);}}function a87_0x4663(_0x5f5cb6,_0x5a4360){const _0x5d3985=a87_0x5d39();return a87_0x4663=function(_0x46635e,_0x187b16){_0x46635e=_0x46635e-0xd5;let _0x49cf44=_0x5d3985[_0x46635e];return _0x49cf44;},a87_0x4663(_0x5f5cb6,_0x5a4360);}module[a87_0x2e4fbc(0xd8)]=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x2cc813=a88_0x4b95;(function(_0x523953,_0x28c618){const _0x545914=a88_0x4b95,_0x57a4f2=_0x523953();while(!![]){try{const _0x2e8704=parseInt(_0x545914(0x186))/0x1+-parseInt(_0x545914(0x179))/0x2*(-parseInt(_0x545914(0x17e))/0x3)+-parseInt(_0x545914(0x16a))/0x4+parseInt(_0x545914(0x184))/0x5+parseInt(_0x545914(0x18a))/0x6+-parseInt(_0x545914(0x181))/0x7*(parseInt(_0x545914(0x17a))/0x8)+parseInt(_0x545914(0x17f))/0x9*(-parseInt(_0x545914(0x188))/0xa);if(_0x2e8704===_0x28c618)break;else _0x57a4f2['push'](_0x57a4f2['shift']());}catch(_0x46f84d){_0x57a4f2['push'](_0x57a4f2['shift']());}}}(a88_0x8185,0xaeee0));function a88_0x4b95(_0x2b5ad6,_0x47c65){const _0x818518=a88_0x8185();return a88_0x4b95=function(_0x4b9519,_0x5bb3a4){_0x4b9519=_0x4b9519-0x16a;let _0x405533=_0x818518[_0x4b9519];return _0x405533;},a88_0x4b95(_0x2b5ad6,_0x47c65);}function a88_0x8185(){const _0x5395e5=['w3cexecutescript','2FRLXWb','8caTttt','ended_at','quit','framework_session_id','226545yHnAhR','15777TUXPyY','KEY_IS_BROWSERSTACK_HUB','774893NoUXCp','input_capabilities','screenshot','1440885PcGQPw','BROWSERSTACK_PLATFORM_INDEX','1016084dRNfLM','COMMAND_QUIT','2610kQXEJR','started_at','5479062PtsiUc','exports','newsession','4032836iEverj','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','COMMAND_SCREENSHOT','KEY_PLATFORM_INDEX','capabilities','COMMAND_GET','is_browserstack_hub','KEY_ENDED_AT','get','KEY_HUB_URL','KEY_FRAMEWORK_SESSION_ID','hub_url','COMMAND_W3C_EXECUTE_SCRIPT','KEY_CAPABILITIES'];a88_0x8185=function(){return _0x5395e5;};return a88_0x8185();}const a88_0x23608c={};a88_0x23608c['ENV_BROWSERSTACK_PLATFORM_INDEX']=a88_0x2cc813(0x185),a88_0x23608c[a88_0x2cc813(0x173)]=a88_0x2cc813(0x175),a88_0x23608c[a88_0x2cc813(0x174)]=a88_0x2cc813(0x17d),a88_0x23608c['KEY_INPUT_CAPABILITIES']=a88_0x2cc813(0x182),a88_0x23608c[a88_0x2cc813(0x177)]=a88_0x2cc813(0x16e),a88_0x23608c[a88_0x2cc813(0x180)]=a88_0x2cc813(0x170),a88_0x23608c['KEY_STARTED_AT']=a88_0x2cc813(0x189),a88_0x23608c[a88_0x2cc813(0x171)]=a88_0x2cc813(0x17b),a88_0x23608c[a88_0x2cc813(0x16d)]='platform_index',a88_0x23608c['COMMAND_NEW_SESSION']=a88_0x2cc813(0x18c),a88_0x23608c[a88_0x2cc813(0x16f)]=a88_0x2cc813(0x172),a88_0x23608c[a88_0x2cc813(0x16c)]=a88_0x2cc813(0x183),a88_0x23608c[a88_0x2cc813(0x176)]=a88_0x2cc813(0x178),a88_0x23608c[a88_0x2cc813(0x16b)]='w3cexecutescriptasync',a88_0x23608c[a88_0x2cc813(0x187)]=a88_0x2cc813(0x17c);const AutomationFrameworkConstants=a88_0x23608c;module[a88_0x2cc813(0x18b)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a89_0x20032b=a89_0x201a;(function(_0x3962db,_0x5532ae){const _0x3bd5aa=a89_0x201a,_0x272a4d=_0x3962db();while(!![]){try{const _0x9afeea=-parseInt(_0x3bd5aa(0xce))/0x1*(parseInt(_0x3bd5aa(0xbf))/0x2)+parseInt(_0x3bd5aa(0xf5))/0x3*(parseInt(_0x3bd5aa(0xc6))/0x4)+parseInt(_0x3bd5aa(0xd9))/0x5*(-parseInt(_0x3bd5aa(0xc1))/0x6)+-parseInt(_0x3bd5aa(0xd1))/0x7*(-parseInt(_0x3bd5aa(0xb9))/0x8)+parseInt(_0x3bd5aa(0xc8))/0x9*(parseInt(_0x3bd5aa(0xb5))/0xa)+-parseInt(_0x3bd5aa(0xd3))/0xb+parseInt(_0x3bd5aa(0xc7))/0xc;if(_0x9afeea===_0x5532ae)break;else _0x272a4d['push'](_0x272a4d['shift']());}catch(_0x337d59){_0x272a4d['push'](_0x272a4d['shift']());}}}(a89_0x48a6,0x2738b));function a89_0x201a(_0x4919dd,_0x50c74e){const _0x48a66b=a89_0x48a6();return a89_0x201a=function(_0x201aab,_0x1b424b){_0x201aab=_0x201aab-0xaf;let _0x505725=_0x48a66b[_0x201aab];return _0x505725;},a89_0x201a(_0x4919dd,_0x50c74e);}const a89_0x5ae910={};function a89_0x48a6(){const _0x3ea0d3=['KEY_TEST_RESULT_AT','KEY_HOOK_NAME','KEY_HOOK_LAST_FINISHED','KEY_TEST_RERUN_NAME','KEY_TEST_TAGS','file_size','KEY_AUTOMATE_SESSION_NAME','hook_failure_type','KEY_LOGS','test_location','test_rerun_name','test_result','TEST_SCREENSHOT','file_path','855370tmsDNj','KEY_HOOKS_FINISHED','exports','KEY_TEST_STARTED_AT','18968aVhZUo','KEY_TEST_FAILURE_REASON','KEY_HOOK_LAST_STARTED','test_screenshots','automate_session_name','KEY_EVENT_ENDED_AT','11548ndKeXW','automate_session_reason','138oWXweD','DEFAULT_HOOK_RESULT','test_attachments','KEY_PLATFORM_INDEX','KEY_HOOK_FAILURE_TYPE','1148dRpHOj','3086136Nimbbw','9hALrLr','file_level','KEY_CUSTOM_TAGS','hook_id','test_framework_name','test_tags','15AYtfUe','KEY_AUTOMATE_SESSION_STATUS','test_hook_last_finished','847hUeqGP','hook_failure','2975203jsTiJi','MAX_NESTED_STEP_DEPTH','KEY_TEST_RETRY_OF','KEY_HOOK_LOGS','test_hooks_finished','KEY_TEST_FILE_PATH','57325iubYSH','test_logs','test_failure_reason','KEY_TEST_FRAMEWORK_NAME','hook_failure_reason','DEFAULT_TEST_RESULT','KEY_HOOK_FAILURE','KEY_TEST_SCOPE','test_hooks_started','KEY_TEST_UUID','test_scopes','automate_session_status','KEY_TEST_ATTACHMENTS','test_result_at','test_hook_last_started','KIND_LOG','test_framework_version','KEY_SESSION_NAME','test_name','test_id','test_duration','event_started_at','KEY_AUTOMATE_SESSION_REASON','KEY_TEST_FAILURE_TYPE','KEY_EVENT_STARTED_AT','KEY_TEST_SCOPES','test_failure_type','KEY_HOOK_RESULT','1587CTpoeR','pending','KEY_TEST_RESULT','KEY_TEST_NAME','^(BEFORE_|AFTER_)','KEY_TEST_ENDED_AT','KEY_TEST_DURATION','KEY_FILE_SIZE','KEY_HOOK_ID','test_started_at','retry_of','logs','hook_name','TEST_LOG','KEY_HOOKS_STARTED','hook_logs'];a89_0x48a6=function(){return _0x3ea0d3;};return a89_0x48a6();}a89_0x5ae910[a89_0x20032b(0xe2)]='test_uuid',a89_0x5ae910['KEY_TEST_ID']=a89_0x20032b(0xec),a89_0x5ae910[a89_0x20032b(0xf8)]=a89_0x20032b(0xeb),a89_0x5ae910[a89_0x20032b(0xd8)]='test_file_path',a89_0x5ae910[a89_0x20032b(0x109)]=a89_0x20032b(0xcd),a89_0x5ae910[a89_0x20032b(0xf7)]=a89_0x20032b(0xb2),a89_0x5ae910[a89_0x20032b(0x105)]=a89_0x20032b(0xe6),a89_0x5ae910[a89_0x20032b(0xb8)]=a89_0x20032b(0xfe),a89_0x5ae910[a89_0x20032b(0xfa)]='test_ended_at',a89_0x5ae910['KEY_TEST_LOCATION']=a89_0x20032b(0xb0),a89_0x5ae910[a89_0x20032b(0xfb)]=a89_0x20032b(0xed),a89_0x5ae910[a89_0x20032b(0xe0)]='test_scope',a89_0x5ae910[a89_0x20032b(0xf2)]=a89_0x20032b(0xe3),a89_0x5ae910[a89_0x20032b(0xdc)]=a89_0x20032b(0xcc),a89_0x5ae910['KEY_TEST_FRAMEWORK_VERSION']=a89_0x20032b(0xe9),a89_0x5ae910['KEY_TEST_CODE']='test_code',a89_0x5ae910[a89_0x20032b(0x108)]=a89_0x20032b(0xb1),a89_0x5ae910[a89_0x20032b(0xd5)]=a89_0x20032b(0xff),a89_0x5ae910[a89_0x20032b(0xc4)]='platform_index',a89_0x5ae910['KEY_TEST_FAILURE']='test_failure',a89_0x5ae910[a89_0x20032b(0xf0)]=a89_0x20032b(0xf3),a89_0x5ae910[a89_0x20032b(0xba)]=a89_0x20032b(0xdb),a89_0x5ae910['KEY_TEST_LOGS']=a89_0x20032b(0xda),a89_0x5ae910['KEY_TEST_META']='test_meta',a89_0x5ae910[a89_0x20032b(0xea)]='test_session_name',a89_0x5ae910[a89_0x20032b(0x10b)]=a89_0x20032b(0xbd),a89_0x5ae910[a89_0x20032b(0xcf)]=a89_0x20032b(0xe4),a89_0x5ae910[a89_0x20032b(0xef)]=a89_0x20032b(0xc0),a89_0x5ae910[a89_0x20032b(0xf1)]=a89_0x20032b(0xee),a89_0x5ae910[a89_0x20032b(0xbe)]='event_ended_at',a89_0x5ae910[a89_0x20032b(0xfd)]=a89_0x20032b(0xcb),a89_0x5ae910[a89_0x20032b(0xf4)]='hook_result',a89_0x5ae910[a89_0x20032b(0xc5)]=a89_0x20032b(0x10c),a89_0x5ae910['KEY_HOOK_FAILURE_REASON']=a89_0x20032b(0xdd),a89_0x5ae910[a89_0x20032b(0xdf)]=a89_0x20032b(0xd2),a89_0x5ae910[a89_0x20032b(0xd6)]=a89_0x20032b(0x104),a89_0x5ae910[a89_0x20032b(0x106)]=a89_0x20032b(0x101),a89_0x5ae910[a89_0x20032b(0xde)]=a89_0x20032b(0xf6),a89_0x5ae910[a89_0x20032b(0xc2)]=a89_0x20032b(0xf6),a89_0x5ae910['KIND_SCREENSHOT']=a89_0x20032b(0xb3),a89_0x5ae910[a89_0x20032b(0xe8)]=a89_0x20032b(0x102),a89_0x5ae910['HOOK_REGEX']=a89_0x20032b(0xf9),a89_0x5ae910[a89_0x20032b(0x103)]=a89_0x20032b(0xe1),a89_0x5ae910[a89_0x20032b(0xb6)]=a89_0x20032b(0xd7),a89_0x5ae910[a89_0x20032b(0xbb)]=a89_0x20032b(0xe7),a89_0x5ae910[a89_0x20032b(0x107)]=a89_0x20032b(0xd0),a89_0x5ae910[a89_0x20032b(0xaf)]=a89_0x20032b(0x100),a89_0x5ae910[a89_0x20032b(0xca)]='custom_metadata',a89_0x5ae910[a89_0x20032b(0xe5)]=a89_0x20032b(0xc3),a89_0x5ae910[a89_0x20032b(0xfc)]=a89_0x20032b(0x10a),a89_0x5ae910['KEY_FILE_NAME']='file_name',a89_0x5ae910['KEY_FILE_PATH']=a89_0x20032b(0xb4),a89_0x5ae910['KEY_FILE_LEVEL']=a89_0x20032b(0xc9),a89_0x5ae910['KEY_TEST_SCREENSHOTS']=a89_0x20032b(0xbc),a89_0x5ae910['MAX_TOP_LEVEL_STEPS']=0xa,a89_0x5ae910[a89_0x20032b(0xd4)]=0x2;const TestFrameworkConstants=a89_0x5ae910;module[a89_0x20032b(0xb7)]=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a90_0xa22afe=a90_0x5404;(function(_0x20623d,_0x1189ec){const _0xb7443b=a90_0x5404,_0x4c7736=_0x20623d();while(!![]){try{const _0x256b06=-parseInt(_0xb7443b(0x207))/0x1*(-parseInt(_0xb7443b(0x23e))/0x2)+-parseInt(_0xb7443b(0x288))/0x3+-parseInt(_0xb7443b(0x21e))/0x4*(parseInt(_0xb7443b(0x27f))/0x5)+parseInt(_0xb7443b(0x295))/0x6*(parseInt(_0xb7443b(0x21c))/0x7)+-parseInt(_0xb7443b(0x1fa))/0x8*(parseInt(_0xb7443b(0x277))/0x9)+-parseInt(_0xb7443b(0x203))/0xa+parseInt(_0xb7443b(0x2a5))/0xb;if(_0x256b06===_0x1189ec)break;else _0x4c7736['push'](_0x4c7736['shift']());}catch(_0x2abfee){_0x4c7736['push'](_0x4c7736['shift']());}}}(a90_0x3223,0x91a01));const TestFramework=require(a90_0xa22afe(0x2aa)),TestFrameworkState=require(a90_0xa22afe(0x234)),HookState=require(a90_0xa22afe(0x1f8)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a90_0xa22afe(0x28f)),CLIUtils=require(a90_0xa22afe(0x28c)),TrackedInstance=require(a90_0xa22afe(0x2ba)),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a90_0xa22afe(0x26d)),logger=createClassLogger(a90_0xa22afe(0x287)),{v4:uuidv4}=require(a90_0xa22afe(0x2b7)),util=require(a90_0xa22afe(0x280)),TestInfo=require(a90_0xa22afe(0x222)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x3c0538,_0x5ef876,_0x19fb99){super(_0x3c0538,_0x5ef876,_0x19fb99);}async[a90_0xa22afe(0x238)](_0x2a8e37,_0x1b3aaf,_0x373687={}){const _0x3b352e=a90_0xa22afe,_0x13e213={};_0x13e213['vsQHZ']='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x13e213['KTxMg']=function(_0x28fb8f,_0x4e927c){return _0x28fb8f===_0x4e927c;},_0x13e213[_0x3b352e(0x25f)]=function(_0x48706c,_0x1bf8ff){return _0x48706c===_0x1bf8ff;},_0x13e213['oZnQC']='trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s';const _0x27c9b3=_0x13e213;await super[_0x3b352e(0x238)](_0x2a8e37,_0x1b3aaf,_0x373687);const _0x15e2d3=this[_0x3b352e(0x29a)](_0x2a8e37,_0x1b3aaf,_0x373687);if(!_0x15e2d3){logger[_0x3b352e(0x21b)](_0x27c9b3['vsQHZ']);return;}try{let _0x2428f9,_0x4507e9;switch(_0x2a8e37){case TestFrameworkState[_0x3b352e(0x250)]:_0x2428f9=_0x373687[_0x3b352e(0x240)],_0x4507e9=TestInfo[_0x3b352e(0x21d)](_0x2428f9['id']);if(_0x27c9b3[_0x3b352e(0x23f)](_0x1b3aaf,HookState[_0x3b352e(0x255)])){logger[_0x3b352e(0x21b)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x2428f9['id']);const _0x16418c={};_0x16418c[_0x3b352e(0x293)]=_0x4507e9,_0x16418c[_0x3b352e(0x1f3)]=_0x2428f9,_0x15e2d3[_0x3b352e(0x27b)](this[_0x3b352e(0x242)](_0x16418c)),logger[_0x3b352e(0x21b)](_0x3b352e(0x2a0)+_0x2428f9['id']),await this['processPendingHooks'](_0x15e2d3,_0x2428f9['id']);}else{if(_0x27c9b3[_0x3b352e(0x23f)](_0x1b3aaf,HookState[_0x3b352e(0x24e)])){const _0x222e1={};_0x222e1['testUUID']=_0x4507e9,_0x222e1['testData']=_0x2428f9,_0x15e2d3[_0x3b352e(0x27b)](this[_0x3b352e(0x275)](_0x222e1)),await this[_0x3b352e(0x202)](_0x15e2d3,_0x2428f9['id']);}}break;case TestFrameworkState[_0x3b352e(0x210)]:_0x27c9b3[_0x3b352e(0x25f)](_0x1b3aaf,HookState[_0x3b352e(0x24e)])&&await this['sendLogCreatedEvent'](_0x15e2d3,_0x2a8e37,_0x373687);break;default:if(CLIUtils[_0x3b352e(0x2a8)](_0x2a8e37['toString']()[_0x3b352e(0x22e)]('.')[0x1])){const _0x3d3b63=await this[_0x3b352e(0x236)](_0x15e2d3,_0x2a8e37,_0x1b3aaf,_0x373687);_0x15e2d3['addMultipleEntries'](_0x3d3b63);}else logger[_0x3b352e(0x21b)](_0x3b352e(0x225)+_0x2a8e37+_0x3b352e(0x22c)+_0x1b3aaf);break;}}catch(_0x2e6540){logger[_0x3b352e(0x291)](util[_0x3b352e(0x283)](_0x27c9b3[_0x3b352e(0x226)],_0x2a8e37,_0x1b3aaf,_0x373687['length'],_0x2e6540));}_0x373687[_0x3b352e(0x2ab)]=_0x15e2d3,await this[_0x3b352e(0x20a)](_0x15e2d3,_0x2a8e37,_0x1b3aaf,_0x373687);}[a90_0xa22afe(0x29a)](_0x5dc73d,_0x5d6751,_0x4908b8={}){const _0x49a0f3=a90_0xa22afe,_0x1be233={};_0x1be233[_0x49a0f3(0x229)]=function(_0x41f94b,_0x43339c){return _0x41f94b===_0x43339c;};const _0x329369=_0x1be233;let _0x10e1af=null;return(_0x329369['npdTb'](_0x5dc73d,TestFrameworkState['INIT_TEST'])||_0x329369['npdTb'](_0x5dc73d,TestFrameworkState['NONE']))&&this['trackCucumberInstance'](_0x5dc73d,_0x4908b8),_0x10e1af=TestFramework['getTrackedInstance'](),_0x10e1af;}[a90_0xa22afe(0x227)](_0x3ed79b,_0x35b861){const _0x5d0cfd=a90_0xa22afe,_0x558231=CLIUtils['getCurrentInstanceName'](),_0x32f9a7=TrackedInstance[_0x5d0cfd(0x2a7)](_0x558231);let _0x555dfa=null;logger['debug']('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0x558231+_0x5d0cfd(0x2ae)+_0x3ed79b),_0x555dfa=new TestFrameworkInstance(_0x32f9a7,this[_0x5d0cfd(0x2a6)](),this[_0x5d0cfd(0x297)](),_0x3ed79b,HookState[_0x5d0cfd(0x249)]),TestFramework[_0x5d0cfd(0x221)](_0x32f9a7,_0x555dfa),logger[_0x5d0cfd(0x21b)](_0x5d0cfd(0x252)+_0x32f9a7[_0x5d0cfd(0x20e)]()+_0x5d0cfd(0x228)+_0x558231);}[a90_0xa22afe(0x242)](_0x2e3325){const _0xebcbb5=a90_0xa22afe,_0x40d8cf={};_0x40d8cf[_0xebcbb5(0x2b8)]='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x576c5b=_0x40d8cf,{testUUID:_0x3a236d,testData:_0xd6545e}=_0x2e3325;if(!_0xd6545e||!_0xd6545e[_0xebcbb5(0x2b7)])return logger[_0xebcbb5(0x21b)](_0x576c5b['LvhLI']),{};const _0x12b457=_0x3a236d,_0x4dec1a=_0xd6545e[_0xebcbb5(0x2b7)],_0x4f162a=this[_0xebcbb5(0x2a6)]()[0x0],_0x8c80fc=this[_0xebcbb5(0x297)](),_0x1b0f77={[TestFrameworkConstants[_0xebcbb5(0x206)]]:_0x4f162a,[TestFrameworkConstants[_0xebcbb5(0x22f)]]:_0x8c80fc[_0x4f162a],[TestFrameworkConstants[_0xebcbb5(0x292)]]:[],[TestFrameworkConstants[_0xebcbb5(0x27c)]]:{},[TestFrameworkConstants[_0xebcbb5(0x298)]]:{},[TestFrameworkConstants[_0xebcbb5(0x245)]]:_0x12b457,[TestFrameworkConstants[_0xebcbb5(0x244)]]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0xebcbb5(0x26f)]]:_0xd6545e[_0xebcbb5(0x212)]||'',[TestFrameworkConstants[_0xebcbb5(0x279)]]:_0xd6545e[_0xebcbb5(0x27e)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x4dec1a,[TestFrameworkConstants[_0xebcbb5(0x256)]]:_0xd6545e[_0xebcbb5(0x212)]||'',[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0xd6545e[_0xebcbb5(0x1f1)]||'',[TestFrameworkConstants[_0xebcbb5(0x2b0)]]:_0xd6545e[_0xebcbb5(0x1f7)]?.[_0xebcbb5(0x20c)]||null,[TestFrameworkConstants[_0xebcbb5(0x2b3)]]:_0xd6545e['tags']||[],[TestFrameworkConstants[_0xebcbb5(0x2b5)]]:_0xd6545e[_0xebcbb5(0x218)]||new Date()[_0xebcbb5(0x267)](),[TestFrameworkConstants[_0xebcbb5(0x247)]]:_0xd6545e[_0xebcbb5(0x274)]?.[0x0]||'',[TestFrameworkConstants[_0xebcbb5(0x214)]]:_0xd6545e[_0xebcbb5(0x274)]||[],[TestFrameworkConstants[_0xebcbb5(0x24f)]]:_0xd6545e[_0xebcbb5(0x29c)]?.[_0xebcbb5(0x2b6)]||_0xd6545e[_0xebcbb5(0x212)]||'',[TestFrameworkConstants[_0xebcbb5(0x26e)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0xd6545e[_0xebcbb5(0x29f)]||{}};TestInfo[_0xebcbb5(0x23b)](_0x4dec1a,_0x1b0f77),logger['debug'](_0xebcbb5(0x28b)+_0xd6545e[_0xebcbb5(0x212)]+_0xebcbb5(0x24c)+_0x12b457);const _0x21812a={};return _0x21812a[_0x4dec1a]=_0x1b0f77,_0x21812a;}[a90_0xa22afe(0x275)](_0x34ae8b){const _0x48f92c=a90_0xa22afe,_0x3e3769={'phJJX':_0x48f92c(0x223),'sqRyf':_0x48f92c(0x254),'fYVTw':function(_0x2a2d1f,_0x1ff9b3){return _0x2a2d1f===_0x1ff9b3;},'KHvLk':_0x48f92c(0x2b9),'XjfaM':_0x48f92c(0x28d),'xPbeE':function(_0x290f63,_0x16e3b1,_0x2d37fb){return _0x290f63(_0x16e3b1,_0x2d37fb);},'LkCUq':function(_0x1e1791,_0x37aef3){return _0x1e1791>_0x37aef3;}},{testUUID:_0xb037eb,testData:_0x2b0ff2}=_0x34ae8b;if(!_0x2b0ff2||!_0x2b0ff2[_0x48f92c(0x2b7)])return logger[_0x48f92c(0x21b)](_0x3e3769[_0x48f92c(0x29e)]),{};const _0x47236b=this['resolveInstance'](TestFrameworkState['TEST'],HookState[_0x48f92c(0x24e)]),_0x5c06c1=_0x2b0ff2['uuid'],_0x4f854b=TestInfo[_0x48f92c(0x263)](_0x5c06c1)||{},_0x30855a=_0x4f854b?_0x4f854b[TestFrameworkConstants[_0x48f92c(0x26e)]]||{}:{},_0x1aaa42={..._0x4f854b,[TestFrameworkConstants[_0x48f92c(0x244)]]:_0x2b0ff2[_0x48f92c(0x1f5)]||_0x3e3769[_0x48f92c(0x284)],[TestFrameworkConstants[_0x48f92c(0x21f)]]:_0x2b0ff2['finishedAt']||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x48f92c(0x267)](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x30855a,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants[_0x48f92c(0x261)]]:_0x2b0ff2[_0x48f92c(0x29f)]||{}};_0x3e3769['fYVTw'](_0x2b0ff2['result'],_0x3e3769[_0x48f92c(0x258)])&&_0x2b0ff2['failure']&&(_0x1aaa42[TestFrameworkConstants[_0x48f92c(0x216)]]=_0x2b0ff2[_0x48f92c(0x1f6)]||_0x3e3769[_0x48f92c(0x20b)],_0x1aaa42[TestFrameworkConstants[_0x48f92c(0x278)]]=_0x2b0ff2[_0x48f92c(0x22a)]||'',_0x1aaa42[TestFrameworkConstants[_0x48f92c(0x233)]]=_0x2b0ff2[_0x48f92c(0x224)]);const _0x3c6cbe=TestInfo[_0x48f92c(0x263)](_0x5c06c1)[TestFrameworkConstants[_0x48f92c(0x26b)]]||{},_0x28fc6f=_0x3e3769[_0x48f92c(0x241)](getManualUploadLogs,_0x3c6cbe,_0x47236b['getAllData']()[_0x48f92c(0x1f2)](_0x5c06c1)[TestFrameworkConstants[_0x48f92c(0x245)]]);if(_0x3e3769[_0x48f92c(0x2bb)](_0x28fc6f[_0x48f92c(0x239)],0x0)){const _0x534013=_0x1aaa42[TestFrameworkConstants[_0x48f92c(0x2ad)]]||[];_0x1aaa42[TestFrameworkConstants[_0x48f92c(0x2ad)]]=[..._0x534013,..._0x28fc6f];}_0x2b0ff2[_0x48f92c(0x262)]&&_0x3e3769[_0x48f92c(0x2bb)](_0x2b0ff2[_0x48f92c(0x262)][_0x48f92c(0x239)],0x0)&&(_0x1aaa42[TestFrameworkConstants[_0x48f92c(0x27c)]]=_0x2b0ff2[_0x48f92c(0x262)]);TestInfo[_0x48f92c(0x23b)](_0x5c06c1,_0x1aaa42),logger['debug'](_0x48f92c(0x296)+_0x2b0ff2[_0x48f92c(0x212)]+'\x20with\x20result:\x20'+_0x2b0ff2[_0x48f92c(0x1f5)]);const _0x441c8e={};return _0x441c8e[_0x5c06c1]=_0x1aaa42,_0x441c8e;}async[a90_0xa22afe(0x236)](_0x522a1e,_0x25a236,_0x1f9c71,_0x11172e){const _0x3cfb3b=a90_0xa22afe,_0x5b6fa7={'adzMV':_0x3cfb3b(0x25c),'vdPDc':function(_0x850b86){return _0x850b86();},'USgyI':function(_0x2f4b9d,_0x36c81a){return _0x2f4b9d in _0x36c81a;},'RiiWi':function(_0x77a752,_0x519c93){return _0x77a752===_0x519c93;},'DFRJx':function(_0xdd56d4,_0x10ed1f){return _0xdd56d4===_0x10ed1f;},'IsMzo':function(_0x6d46e5,_0x1ae0b4){return _0x6d46e5>_0x1ae0b4;},'EtLLX':_0x3cfb3b(0x2b9),'saelI':_0x3cfb3b(0x28d),'hEzeN':'passed','sCQoX':function(_0x109795,_0x40cfff){return _0x109795!==_0x40cfff;}},{hookData:_0x397e01}=_0x11172e;if(!_0x397e01)return logger[_0x3cfb3b(0x21b)](_0x5b6fa7[_0x3cfb3b(0x1fc)]),{};const _0x38997e=_0x397e01['uuid']||_0x5b6fa7[_0x3cfb3b(0x2af)](uuidv4),_0x11556a=_0x397e01[_0x3cfb3b(0x269)],_0x2f1303=_0x25a236[_0x3cfb3b(0x29d)]()['split']('.')[0x1],_0x586629=TestInfo[_0x3cfb3b(0x263)](_0x11556a)[TestFrameworkConstants[_0x3cfb3b(0x26e)]]||{},_0x3d3dec=_0x522a1e['getAllData']()['get'](_0x11556a);if(!_0x3d3dec)return logger[_0x3cfb3b(0x21b)]('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x11556a+_0x3cfb3b(0x243)),this[_0x3cfb3b(0x211)](_0x522a1e,_0x11556a,_0x25a236,_0x1f9c71,_0x11172e),{};let _0x34c7c9=_0x3d3dec[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x34c7c9&&(_0x34c7c9={});!_0x5b6fa7[_0x3cfb3b(0x23a)](_0x2f1303,_0x34c7c9)&&(_0x34c7c9[_0x2f1303]=[]);let _0x478a1f=_0x3d3dec[TestFrameworkConstants[_0x3cfb3b(0x27c)]];!_0x478a1f&&(_0x478a1f={});!_0x5b6fa7['USgyI'](_0x2f1303,_0x478a1f)&&(_0x478a1f[_0x2f1303]=[]);const _0x80dd47={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x34c7c9,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x478a1f},_0x1eabd1={};_0x1eabd1[_0x11556a]=_0x80dd47;const _0x4093e5=_0x1eabd1;if(_0x5b6fa7[_0x3cfb3b(0x200)](_0x1f9c71,HookState[_0x3cfb3b(0x255)])){const _0x793fa1={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x38997e,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0x3cfb3b(0x294)],[TestFrameworkConstants[_0x3cfb3b(0x220)]]:_0x397e01['started_at'],[TestFrameworkConstants[_0x3cfb3b(0x208)]]:[],[TestFrameworkConstants[_0x3cfb3b(0x1ff)]]:_0x397e01[_0x3cfb3b(0x24d)],[TestFrameworkConstants[_0x3cfb3b(0x26e)]]:_0x586629};_0x793fa1[_0x3cfb3b(0x2b1)]=_0x2f1303;const _0x33b327=_0x793fa1;_0x34c7c9[_0x2f1303][_0x3cfb3b(0x251)](_0x33b327),_0x4093e5[_0x11556a][TestFrameworkConstants[_0x3cfb3b(0x20f)]]=_0x2f1303,logger['debug'](_0x3cfb3b(0x266)+_0x2f1303+'\x20&\x20hook\x20=\x20'+_0x33b327+'\x20\x20and\x20args\x20=\x20'+_0x11172e);}else{if(_0x5b6fa7[_0x3cfb3b(0x25e)](_0x1f9c71,HookState[_0x3cfb3b(0x24e)])){const _0x10d895=_0x397e01['result'],_0x162de6=_0x34c7c9[_0x2f1303]||[];logger[_0x3cfb3b(0x21b)](_0x3cfb3b(0x28a)+_0x162de6+_0x3cfb3b(0x286)+_0x11172e);if(_0x5b6fa7[_0x3cfb3b(0x27d)](_0x162de6['length'],0x0)){const _0x414398=_0x162de6[_0x3cfb3b(0x2a9)]();_0x5b6fa7[_0x3cfb3b(0x200)](_0x397e01['result'],_0x5b6fa7['EtLLX'])&&_0x397e01[_0x3cfb3b(0x26c)]?(_0x414398[TestFrameworkConstants[_0x3cfb3b(0x20d)]]=_0x397e01['failure_type']||_0x5b6fa7[_0x3cfb3b(0x22d)],_0x414398[TestFrameworkConstants[_0x3cfb3b(0x204)]]=_0x397e01['failure_reason']||'',_0x414398[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0x397e01[_0x3cfb3b(0x26c)]):_0x414398[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x5b6fa7[_0x3cfb3b(0x215)];_0x5b6fa7[_0x3cfb3b(0x2bc)](_0x10d895,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x414398[TestFrameworkConstants[_0x3cfb3b(0x25b)]]=_0x10d895);_0x414398[TestFrameworkConstants[_0x3cfb3b(0x231)]]=_0x397e01['finished_at']||new Date()[_0x3cfb3b(0x267)](),_0x414398[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x586629;const _0xd35f50=_0x414398[TestFrameworkConstants['KEY_HOOK_ID']];!_0x478a1f[_0x2f1303]&&(_0x478a1f[_0x2f1303]=[]),_0x478a1f[_0x2f1303][_0x3cfb3b(0x251)](_0x414398),_0x4093e5[_0x11556a][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x2f1303;}}}return logger[_0x3cfb3b(0x21b)]('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x397e01[_0x3cfb3b(0x24d)]+_0x3cfb3b(0x299)+_0x38997e+_0x3cfb3b(0x24a)+_0x11556a),_0x4093e5;}['createTestFrameworkEventPayload'](_0x496ed2){const _0x18d6e1=a90_0xa22afe,_0x4aba95={};_0x4aba95[_0x18d6e1(0x2a1)]=_0x18d6e1(0x230);const _0x927267=_0x4aba95;try{const _0x548cb0=_0x496ed2['test']?_0x496ed2[_0x18d6e1(0x240)]['id']:_0x496ed2[_0x18d6e1(0x1fb)]['test_run_id'],_0x2ca581=_0x496ed2[_0x18d6e1(0x2ab)],_0x3c5d95=_0x2ca581['getContext'](),_0x2f4eeb=_0x2ca581[_0x18d6e1(0x259)]()[_0x18d6e1(0x1f2)](_0x548cb0);if(!_0x2f4eeb)return logger[_0x18d6e1(0x21b)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x548cb0),{};logger[_0x18d6e1(0x21b)](_0x18d6e1(0x1f4)+_0x548cb0);const {[TestFrameworkConstants[_0x18d6e1(0x206)]]:_0xa2faf8='',[TestFrameworkConstants[_0x18d6e1(0x22f)]]:_0x3a68cd='',[TestFrameworkConstants[_0x18d6e1(0x2b5)]]:_0xbe7275='',[TestFrameworkConstants[_0x18d6e1(0x21f)]]:_0x24d264=''}=_0x2f4eeb,_0xa98780=_0x2ca581[_0x18d6e1(0x209)]()[_0x18d6e1(0x29d)]()[_0x18d6e1(0x22e)]('.')[0x1],_0x2db3e1=_0x2ca581[_0x18d6e1(0x2a3)]()[_0x18d6e1(0x29d)]()['split']('.')[0x1],_0x50922b=global?.[_0x18d6e1(0x1fe)]??0x0,_0x5820d4=_0x2ca581[_0x18d6e1(0x21a)](),_0xa2e77c=Buffer[_0x18d6e1(0x23c)](JSON[_0x18d6e1(0x271)](_0x2f4eeb))[_0x18d6e1(0x29d)](_0x927267[_0x18d6e1(0x2a1)]),_0x151eca={'hash':_0x3c5d95[_0x18d6e1(0x20e)](),'threadId':_0x3c5d95['getThreadId']()[_0x18d6e1(0x29d)](),'processId':_0x3c5d95[_0x18d6e1(0x213)]()[_0x18d6e1(0x29d)]()},_0x5416cb={};_0x5416cb[_0x18d6e1(0x232)]=_0x50922b,_0x5416cb[_0x18d6e1(0x260)]=_0xa2faf8,_0x5416cb[_0x18d6e1(0x253)]=_0x3a68cd,_0x5416cb['testFrameworkState']=_0xa98780,_0x5416cb['hookState']=_0x2db3e1,_0x5416cb['startedAt']=_0xbe7275,_0x5416cb[_0x18d6e1(0x201)]=_0x24d264,_0x5416cb[_0x18d6e1(0x2b7)]=_0x5820d4,_0x5416cb[_0x18d6e1(0x2b4)]=_0xa2e77c,_0x5416cb[_0x18d6e1(0x1f9)]=_0x151eca;const _0x25a043=_0x5416cb;return logger[_0x18d6e1(0x21b)](_0x18d6e1(0x2a4)+_0x548cb0+_0x18d6e1(0x26a)+_0xa98780+'\x20hookState:\x20'+_0x2db3e1),_0x25a043;}catch(_0x527bb9){return logger[_0x18d6e1(0x291)](_0x18d6e1(0x2b2)+util[_0x18d6e1(0x283)](_0x527bb9)),{};}}async[a90_0xa22afe(0x273)](_0x57b07b,_0xd50297,_0x5f0948){const _0x17ddc8=a90_0xa22afe,_0x23b2e1={'cKsTP':function(_0x57675a,_0x22455f,_0x531115){return _0x57675a(_0x22455f,_0x531115);},'nGIDK':function(_0x434bd1,_0x461b7e){return _0x434bd1===_0x461b7e;},'GFvjh':_0x17ddc8(0x25a),'aMveV':function(_0x52a367,_0x571a97){return _0x52a367/_0x571a97;},'dFkPJ':function(_0x44a0d8,_0x1d879f){return _0x44a0d8<_0x1d879f;},'yxsWj':function(_0x37dc12,_0xfdccc7){return _0x37dc12*_0xfdccc7;},'HIWET':function(_0x5b74f7,_0x48bdba){return _0x5b74f7+_0x48bdba;},'KTQFp':function(_0x3cdebf,_0x21714f){return _0x3cdebf+_0x21714f;},'PLlsJ':function(_0x50b7b0,_0x58b9a6){return _0x50b7b0+_0x58b9a6;},'PjIrf':_0x17ddc8(0x27a)};try{const _0x27e72c=_0x5f0948['testUUID'],_0x4ddd84=_0x57b07b[_0x17ddc8(0x259)]()['get'](_0x27e72c),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x3082ca='',[TestFrameworkConstants[_0x17ddc8(0x22f)]]:_0x514c9d=''}=_0x4ddd84,_0x1278e8=TestInfo[_0x17ddc8(0x289)](_0x27e72c),_0x39600c=TestInfo['getTestDetails'](_0x27e72c)[TestFrameworkConstants[_0x17ddc8(0x26b)]]||{},_0x312945=_0x23b2e1['cKsTP'](getMediaArtifactsLogs,_0x39600c,_0x57b07b['getAllData']()[_0x17ddc8(0x1f2)](_0x27e72c)[TestFrameworkConstants[_0x17ddc8(0x245)]]),_0x4d4aa0=(_0x1278e8||[])['concat'](_0x312945||[]);if(!_0x4d4aa0||_0x23b2e1['nGIDK'](_0x4d4aa0[_0x17ddc8(0x239)],0x0)){logger['debug'](_0x23b2e1[_0x17ddc8(0x237)]);return;}const _0x16029d=0x28,_0x130478=Math[_0x17ddc8(0x24b)](_0x23b2e1['aMveV'](_0x4d4aa0[_0x17ddc8(0x239)],_0x16029d));for(let _0x28d1f6=0x0;_0x23b2e1['dFkPJ'](_0x28d1f6,_0x130478);_0x28d1f6++){const _0xd8fb1a=_0x23b2e1[_0x17ddc8(0x257)](_0x28d1f6,_0x16029d),_0x2d480c=_0x23b2e1[_0x17ddc8(0x28e)](_0xd8fb1a,_0x16029d),_0x186602=_0x4d4aa0['slice'](_0xd8fb1a,_0x2d480c),_0x4e46db={'platformIndex':global?.[_0x17ddc8(0x1fe)]??0x0,'logs':_0x186602,'testFrameworkName':_0x3082ca,'testFrameworkVersion':_0x514c9d,'testFrameworkState':_0xd50297[_0x17ddc8(0x29d)]()[_0x17ddc8(0x22e)]('.')[0x1]};logger['debug'](_0x17ddc8(0x2a2)+_0x27e72c+'\x20batch\x20'+_0x23b2e1[_0x17ddc8(0x217)](_0x28d1f6,0x1)+'/'+_0x130478+_0x17ddc8(0x205)+util[_0x17ddc8(0x281)](_0x4e46db));const _0x1ace8a=await GrpcClient['getInstance']()['logCreatedEvent'](_0x4e46db);logger[_0x17ddc8(0x21b)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x27e72c+_0x17ddc8(0x270)+_0x23b2e1[_0x17ddc8(0x29b)](_0x28d1f6,0x1)+'/'+_0x130478+_0x17ddc8(0x235)+util[_0x17ddc8(0x281)](_0x1ace8a));}}catch(_0x14222e){logger['error'](_0x17ddc8(0x219)+util[_0x17ddc8(0x283)](_0x14222e));}logger['debug'](_0x23b2e1['PjIrf']);}[a90_0xa22afe(0x211)](_0x462365,_0x497f88,_0x30f59a,_0x49cc06,_0x559c4f){const _0x1714b3=a90_0xa22afe,_0x37c573={'testId':_0x497f88,'testFrameworkState':_0x30f59a,'hookState':_0x49cc06,'args':_0x559c4f,'timestamp':new Date()['toISOString']()};_0x462365[_0x1714b3(0x1fd)](_0x497f88,_0x37c573),logger[_0x1714b3(0x21b)](_0x1714b3(0x272)+_0x497f88+_0x1714b3(0x276)+_0x30f59a+_0x1714b3(0x268)+_0x49cc06);}async[a90_0xa22afe(0x202)](_0x57c5ff,_0x42ad17){const _0x2aa3ca=a90_0xa22afe,_0x23ba0f={};_0x23ba0f[_0x2aa3ca(0x282)]=function(_0x2c375b,_0x5259bf){return _0x2c375b>_0x5259bf;};const _0x341d38=_0x23ba0f;if(!_0x57c5ff[_0x2aa3ca(0x265)](_0x42ad17))return;const _0x3191cb=_0x57c5ff[_0x2aa3ca(0x2bd)](_0x42ad17);logger[_0x2aa3ca(0x21b)](_0x2aa3ca(0x290)+_0x3191cb[_0x2aa3ca(0x239)]+_0x2aa3ca(0x25d)+_0x42ad17);for(const _0xabf0e3 of _0x3191cb){try{const _0x6b2e30=await this[_0x2aa3ca(0x236)](_0x57c5ff,_0xabf0e3[_0x2aa3ca(0x264)],_0xabf0e3[_0x2aa3ca(0x2ac)],_0xabf0e3['args']);_0x6b2e30&&_0x341d38[_0x2aa3ca(0x282)](Object['keys'](_0x6b2e30)[_0x2aa3ca(0x239)],0x0)&&_0x57c5ff['addMultipleEntries'](_0x6b2e30),await this['runHooks'](_0x57c5ff,_0xabf0e3[_0x2aa3ca(0x264)],_0xabf0e3[_0x2aa3ca(0x2ac)],_0xabf0e3['args']);}catch(_0x233003){logger[_0x2aa3ca(0x291)](_0x2aa3ca(0x246)+_0x42ad17+_0x2aa3ca(0x22b)+_0x233003);}}_0x57c5ff[_0x2aa3ca(0x285)](_0x42ad17),logger[_0x2aa3ca(0x21b)](_0x2aa3ca(0x248)+_0x42ad17);}}function a90_0x5404(_0x4c1f99,_0x1fcf05){const _0x322388=a90_0x3223();return a90_0x5404=function(_0x5404a5,_0x54c38b){_0x5404a5=_0x5404a5-0x1f1;let _0xcee250=_0x322388[_0x5404a5];return _0xcee250;},a90_0x5404(_0x4c1f99,_0x1fcf05);}function a90_0x3223(){const _0x45114d=['split','KEY_TEST_FRAMEWORK_VERSION','base64','KEY_EVENT_ENDED_AT','platformIndex','KEY_TEST_FAILURE','../state/testFrameworkState.js','\x20response=','trackHookEvent','GFvjh','trackEvent','length','USgyI','setTestDetails','from','exports','2eUaNYZ','KTxMg','test','xPbeE','parseCucumberTest',',\x20storing\x20as\x20pending\x20hook','KEY_TEST_RESULT','KEY_TEST_UUID','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_SCOPE','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','NONE','\x20for\x20test:\x20','ceil','\x20with\x20UUID:\x20','hook_type','POST','KEY_TEST_RERUN_NAME','TEST','push','trackCucumberInstance:\x20saved\x20instance\x20contextId=','testFrameworkVersion','unknown','PRE','KEY_TEST_NAME','yxsWj','KHvLk','getAllData','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','KEY_HOOK_RESULT','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','\x20pending\x20hooks\x20for\x20testId:\x20','DFRJx','orhVD','testFrameworkName','KEY_TEST_META','hooks','getTestDetails','testFrameworkState','hasPendingHooks','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','toISOString',',\x20hookState:\x20','test_run_id','\x20testState:\x20','KEY_TEST_ATTACHMENTS','failure_data','../../../helpers/helper.js','KEY_CUSTOM_TAGS','KEY_AUTOMATE_SESSION_NAME','\x20batch\x20','stringify','Stored\x20pending\x20hook\x20for\x20testId:\x20','sendLogCreatedEvent','scopes','parseCucumberTestResult',',\x20state:\x20','855GvMsgZ','KEY_TEST_FAILURE_REASON','KEY_TEST_FILE_PATH','Cucumber\x20log\x20created\x20event','addMultipleEntries','KEY_HOOKS_FINISHED','IsMzo','file_name','5iTyrPa','util','inspect','KfbUi','format','sqRyf','removePendingHooks','\x20and\x20args\x20=\x20','CucumberTestFramework','1000071ILkDpy','readLogObjects','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','Parsed\x20cucumber\x20test:\x20','../cliUtils.js','UnhandledError','HIWET','../instances/testFrameworkInstance.js','Processing\x20','error','KEY_TEST_LOGS','testUUID','DEFAULT_HOOK_RESULT','4975548FbNAYv','Updated\x20cucumber\x20test\x20result:\x20','getTestFrameworksVersions','KEY_HOOKS_STARTED','\x20with\x20id\x20','resolveInstance','PLlsJ','customRerunParam','toString','phJJX','meta','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','urzsb','sendLogCreatedEvent:\x20for\x20testId:\x20','getCurrentHookState','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','11362153TGpYoj','getTestFrameworks','createContext','matchHookRegex','pop','./testFramework','instance','hookState','KEY_LOGS',',\x20state=','vdPDc','KEY_TEST_CODE','key','Error\x20in\x20createTestFrameworkEventPayload:\x20','KEY_TEST_TAGS','eventJson','KEY_TEST_STARTED_AT','rerun_name','uuid','LvhLI','failed','../instances/trackedInstance.js','LkCUq','sCQoX','getPendingHooks','location','get','testData','createTestFrameworkEventPayload\x20testId:\x20','result','failure_type','body','../state/hookState.js','executionContext','71696aoGSGK','hookData','adzMV','addPendingHook','browserstackPlatformIndex','KEY_HOOK_NAME','RiiWi','endedAt','processPendingHooks','7559680LDXNhl','KEY_HOOK_FAILURE_REASON','\x20payload=','KEY_TEST_FRAMEWORK_NAME','1050281MeNIMY','KEY_HOOK_LOGS','getCurrentTestState','runHooks','XjfaM','code','KEY_HOOK_FAILURE_TYPE','getId','KEY_HOOK_LAST_STARTED','LOG_REPORT','storePendingHook','name','getProcessId','KEY_TEST_SCOPES','hEzeN','KEY_TEST_FAILURE_TYPE','KTQFp','startedAt','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','getRef','debug','7KFfOoq','getTestUUID','1501064lLNwTJ','KEY_TEST_ENDED_AT','KEY_EVENT_STARTED_AT','setTrackedInstance','../TestInfo.js','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','failure','trackEvent:\x20unsupported\x20testFrameworkState=','oZnQC','trackCucumberInstance','\x20target=','npdTb','failure_reason',',\x20error:\x20','\x20&\x20hookState=','saelI'];a90_0x3223=function(){return _0x45114d;};return a90_0x3223();}module[a90_0xa22afe(0x23d)]=CucumberTestFramework;
|
|
1
|
+
const a90_0x4939d7=a90_0x5e7f;(function(_0x27733a,_0x1bc7db){const _0x2d2d32=a90_0x5e7f,_0x5555c9=_0x27733a();while(!![]){try{const _0x2edfc3=-parseInt(_0x2d2d32(0x1cf))/0x1*(-parseInt(_0x2d2d32(0x231))/0x2)+parseInt(_0x2d2d32(0x1f6))/0x3*(-parseInt(_0x2d2d32(0x290))/0x4)+-parseInt(_0x2d2d32(0x262))/0x5*(parseInt(_0x2d2d32(0x21b))/0x6)+parseInt(_0x2d2d32(0x27d))/0x7+parseInt(_0x2d2d32(0x227))/0x8*(-parseInt(_0x2d2d32(0x1f3))/0x9)+parseInt(_0x2d2d32(0x28c))/0xa*(parseInt(_0x2d2d32(0x26c))/0xb)+parseInt(_0x2d2d32(0x287))/0xc;if(_0x2edfc3===_0x1bc7db)break;else _0x5555c9['push'](_0x5555c9['shift']());}catch(_0x20db20){_0x5555c9['push'](_0x5555c9['shift']());}}}(a90_0x4364,0x7aa76));const TestFramework=require(a90_0x4939d7(0x221)),TestFrameworkState=require(a90_0x4939d7(0x246)),HookState=require(a90_0x4939d7(0x228)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a90_0x4939d7(0x22c)),CLIUtils=require(a90_0x4939d7(0x261)),TrackedInstance=require(a90_0x4939d7(0x240)),TestFrameworkConstants=require(a90_0x4939d7(0x213)),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require(a90_0x4939d7(0x27c)),util=require(a90_0x4939d7(0x258)),TestInfo=require(a90_0x4939d7(0x209)),GrpcClient=require(a90_0x4939d7(0x232));function a90_0x5e7f(_0x4fca33,_0x1ff09b){const _0x43641a=a90_0x4364();return a90_0x5e7f=function(_0x5e7f90,_0x41b9e2){_0x5e7f90=_0x5e7f90-0x1c0;let _0x15722a=_0x43641a[_0x5e7f90];return _0x15722a;},a90_0x5e7f(_0x4fca33,_0x1ff09b);}class CucumberTestFramework extends TestFramework{constructor(_0x28c13d,_0x1603af,_0x5b1ff5){super(_0x28c13d,_0x1603af,_0x5b1ff5);}async[a90_0x4939d7(0x1ff)](_0x3f2e13,_0x42a9d8,_0x410d2b={}){const _0x365b08=a90_0x4939d7,_0x55fda1={};_0x55fda1[_0x365b08(0x224)]=_0x365b08(0x1dd),_0x55fda1[_0x365b08(0x1c4)]=function(_0x3eff85,_0x4a9823){return _0x3eff85===_0x4a9823;},_0x55fda1[_0x365b08(0x271)]=_0x365b08(0x208);const _0x5af58d=_0x55fda1;await super[_0x365b08(0x1ff)](_0x3f2e13,_0x42a9d8,_0x410d2b);const _0x3dd5f2=this[_0x365b08(0x20f)](_0x3f2e13,_0x42a9d8,_0x410d2b);if(!_0x3dd5f2){logger['debug'](_0x5af58d[_0x365b08(0x224)]);return;}try{let _0x14a254,_0x2deefc;switch(_0x3f2e13){case TestFrameworkState[_0x365b08(0x23c)]:_0x14a254=_0x410d2b['test'],_0x2deefc=TestInfo[_0x365b08(0x21a)](_0x14a254['id']);if(_0x5af58d[_0x365b08(0x1c4)](_0x42a9d8,HookState[_0x365b08(0x1fd)])){logger['debug'](_0x365b08(0x1f8)+_0x14a254['id']);const _0x21ee24={};_0x21ee24['testUUID']=_0x2deefc,_0x21ee24[_0x365b08(0x20d)]=_0x14a254,_0x3dd5f2[_0x365b08(0x1f7)](this[_0x365b08(0x281)](_0x21ee24)),logger['debug']('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x14a254['id']),await this['processPendingHooks'](_0x3dd5f2,_0x14a254['id']);}else{if(_0x5af58d[_0x365b08(0x1c4)](_0x42a9d8,HookState['POST'])){const _0x2f2640={};_0x2f2640[_0x365b08(0x234)]=_0x2deefc,_0x2f2640[_0x365b08(0x20d)]=_0x14a254,_0x3dd5f2['addMultipleEntries'](this[_0x365b08(0x1e0)](_0x2f2640)),await this[_0x365b08(0x205)](_0x3dd5f2,_0x14a254['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x5af58d[_0x365b08(0x1c4)](_0x42a9d8,HookState[_0x365b08(0x1e1)])&&await this[_0x365b08(0x251)](_0x3dd5f2,_0x3f2e13,_0x410d2b);break;default:if(CLIUtils['matchHookRegex'](_0x3f2e13[_0x365b08(0x289)]()[_0x365b08(0x26a)]('.')[0x1])){const _0x16a36c=await this[_0x365b08(0x1f4)](_0x3dd5f2,_0x3f2e13,_0x42a9d8,_0x410d2b);_0x3dd5f2['addMultipleEntries'](_0x16a36c);}else logger[_0x365b08(0x1fe)](_0x365b08(0x27a)+_0x3f2e13+'\x20&\x20hookState='+_0x42a9d8);break;}}catch(_0x46ccb1){logger[_0x365b08(0x21c)](util[_0x365b08(0x294)](_0x5af58d[_0x365b08(0x271)],_0x3f2e13,_0x42a9d8,_0x410d2b['length'],_0x46ccb1));}_0x410d2b[_0x365b08(0x211)]=_0x3dd5f2,await this[_0x365b08(0x1c9)](_0x3dd5f2,_0x3f2e13,_0x42a9d8,_0x410d2b);}[a90_0x4939d7(0x20f)](_0x4cea61,_0x330d08,_0x4514f0={}){const _0x5a88d3=a90_0x4939d7,_0x1ee398={};_0x1ee398[_0x5a88d3(0x263)]=function(_0x4a4301,_0x310c48){return _0x4a4301===_0x310c48;},_0x1ee398['NyZtC']=function(_0x12ce4d,_0xc7f90f){return _0x12ce4d===_0xc7f90f;};const _0x52d477=_0x1ee398;let _0x3314a7=null;return(_0x52d477[_0x5a88d3(0x263)](_0x4cea61,TestFrameworkState[_0x5a88d3(0x1cb)])||_0x52d477[_0x5a88d3(0x24d)](_0x4cea61,TestFrameworkState[_0x5a88d3(0x1c3)]))&&this[_0x5a88d3(0x233)](_0x4cea61,_0x4514f0),_0x3314a7=TestFramework[_0x5a88d3(0x250)](),_0x3314a7;}[a90_0x4939d7(0x233)](_0x5f015c,_0x1ca899){const _0x39ba5f=a90_0x4939d7,_0x203e29=CLIUtils['getCurrentInstanceName'](),_0xe9699d=TrackedInstance[_0x39ba5f(0x22a)](_0x203e29);let _0x5bfbd3=null;logger[_0x39ba5f(0x1fe)](_0x39ba5f(0x28b)+_0x203e29+_0x39ba5f(0x278)+_0x5f015c),_0x5bfbd3=new TestFrameworkInstance(_0xe9699d,this['getTestFrameworks'](),this['getTestFrameworksVersions'](),_0x5f015c,HookState[_0x39ba5f(0x1c3)]),TestFramework[_0x39ba5f(0x25d)](_0xe9699d,_0x5bfbd3),logger[_0x39ba5f(0x1fe)](_0x39ba5f(0x24c)+_0xe9699d['getId']()+'\x20target='+_0x203e29);}[a90_0x4939d7(0x281)](_0x138fee){const _0x37f5d5=a90_0x4939d7,_0x201bc1={};_0x201bc1[_0x37f5d5(0x28f)]=_0x37f5d5(0x259);const _0x1c02e4=_0x201bc1,{testUUID:_0x130ca6,testData:_0x24aaaa}=_0x138fee;if(!_0x24aaaa||!_0x24aaaa[_0x37f5d5(0x27c)])return logger[_0x37f5d5(0x1fe)](_0x1c02e4[_0x37f5d5(0x28f)]),{};const _0x33ce4d=_0x130ca6,_0x1bd47b=_0x24aaaa[_0x37f5d5(0x27c)],_0x563166=this[_0x37f5d5(0x229)]()[0x0],_0x4202cc=this[_0x37f5d5(0x1c7)](),_0x49588a={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x563166,[TestFrameworkConstants[_0x37f5d5(0x284)]]:_0x4202cc[_0x563166],[TestFrameworkConstants[_0x37f5d5(0x20c)]]:[],[TestFrameworkConstants[_0x37f5d5(0x265)]]:{},[TestFrameworkConstants[_0x37f5d5(0x276)]]:{},[TestFrameworkConstants[_0x37f5d5(0x292)]]:_0x33ce4d,[TestFrameworkConstants[_0x37f5d5(0x291)]]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x37f5d5(0x269)]]:_0x24aaaa[_0x37f5d5(0x27f)]||'',[TestFrameworkConstants[_0x37f5d5(0x1f9)]]:_0x24aaaa['file_name']||'',[TestFrameworkConstants[_0x37f5d5(0x23f)]]:_0x1bd47b,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x24aaaa[_0x37f5d5(0x27f)]||'',[TestFrameworkConstants[_0x37f5d5(0x267)]]:_0x24aaaa[_0x37f5d5(0x23d)]||'',[TestFrameworkConstants[_0x37f5d5(0x20b)]]:_0x24aaaa[_0x37f5d5(0x22d)]?.[_0x37f5d5(0x27e)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x24aaaa['tags']||[],[TestFrameworkConstants[_0x37f5d5(0x25f)]]:_0x24aaaa[_0x37f5d5(0x288)]||new Date()[_0x37f5d5(0x1d6)](),[TestFrameworkConstants[_0x37f5d5(0x256)]]:_0x24aaaa['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x37f5d5(0x275)]]:_0x24aaaa[_0x37f5d5(0x239)]||[],[TestFrameworkConstants[_0x37f5d5(0x1cc)]]:_0x24aaaa[_0x37f5d5(0x1ee)]?.[_0x37f5d5(0x216)]||_0x24aaaa[_0x37f5d5(0x27f)]||'',[TestFrameworkConstants[_0x37f5d5(0x24a)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x24aaaa['meta']||{}};TestInfo[_0x37f5d5(0x1d5)](_0x1bd47b,_0x49588a),logger[_0x37f5d5(0x1fe)](_0x37f5d5(0x254)+_0x24aaaa[_0x37f5d5(0x27f)]+_0x37f5d5(0x1f1)+_0x33ce4d);const _0x3f8f95={};return _0x3f8f95[_0x1bd47b]=_0x49588a,_0x3f8f95;}['parseCucumberTestResult'](_0x123a70){const _0x2cf090=a90_0x4939d7,_0x110174={'zdrIR':'No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','gSPuE':'unknown','PlqqC':function(_0x1e82bb,_0x875d9d){return _0x1e82bb===_0x875d9d;},'RbOlp':_0x2cf090(0x26e),'vaibT':_0x2cf090(0x285),'oMWBS':function(_0x3f77b2,_0x4540b5,_0x1bb5e2){return _0x3f77b2(_0x4540b5,_0x1bb5e2);},'GDPIS':function(_0x298899,_0x1ed68c){return _0x298899>_0x1ed68c;},'BHPNz':function(_0x4e6f26,_0x409682){return _0x4e6f26>_0x409682;}},{testUUID:_0x3b793d,testData:_0x3b1f93}=_0x123a70;if(!_0x3b1f93||!_0x3b1f93['uuid'])return logger['debug'](_0x110174[_0x2cf090(0x1d4)]),{};const _0x23e5f7=this[_0x2cf090(0x20f)](TestFrameworkState[_0x2cf090(0x23c)],HookState[_0x2cf090(0x1e1)]),_0x1fae6a=_0x3b1f93[_0x2cf090(0x27c)],_0x2eb5e9=TestInfo[_0x2cf090(0x26f)](_0x1fae6a)||{},_0x1b73a0=_0x2eb5e9?_0x2eb5e9[TestFrameworkConstants[_0x2cf090(0x24a)]]||{}:{},_0x478ca4={..._0x2eb5e9,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x3b1f93[_0x2cf090(0x212)]||_0x110174[_0x2cf090(0x21f)],[TestFrameworkConstants[_0x2cf090(0x225)]]:_0x3b1f93['finishedAt']||new Date()[_0x2cf090(0x1d6)](),[TestFrameworkConstants[_0x2cf090(0x1ef)]]:new Date()[_0x2cf090(0x1d6)](),[TestFrameworkConstants[_0x2cf090(0x24a)]]:_0x1b73a0,[TestFrameworkConstants[_0x2cf090(0x236)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x3b1f93[_0x2cf090(0x1da)]||{}};_0x110174[_0x2cf090(0x24b)](_0x3b1f93['result'],_0x110174[_0x2cf090(0x237)])&&_0x3b1f93[_0x2cf090(0x1e6)]&&(_0x478ca4[TestFrameworkConstants[_0x2cf090(0x23b)]]=_0x3b1f93[_0x2cf090(0x24f)]||_0x110174['vaibT'],_0x478ca4[TestFrameworkConstants[_0x2cf090(0x1ea)]]=_0x3b1f93[_0x2cf090(0x252)]||'',_0x478ca4[TestFrameworkConstants[_0x2cf090(0x1c8)]]=_0x3b1f93[_0x2cf090(0x1e6)]);const _0x1d941a=TestInfo[_0x2cf090(0x26f)](_0x1fae6a)[TestFrameworkConstants[_0x2cf090(0x266)]]||{},_0x8d38ea=_0x110174[_0x2cf090(0x28e)](getManualUploadLogs,_0x1d941a,_0x23e5f7[_0x2cf090(0x25a)]()['get'](_0x1fae6a)[TestFrameworkConstants[_0x2cf090(0x292)]]);if(_0x110174[_0x2cf090(0x202)](_0x8d38ea[_0x2cf090(0x1ce)],0x0)){const _0x46deed=_0x478ca4[TestFrameworkConstants[_0x2cf090(0x236)]]||[];_0x478ca4[TestFrameworkConstants[_0x2cf090(0x236)]]=[..._0x46deed,..._0x8d38ea];}_0x3b1f93[_0x2cf090(0x1df)]&&_0x110174['BHPNz'](_0x3b1f93[_0x2cf090(0x1df)]['length'],0x0)&&(_0x478ca4[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x3b1f93[_0x2cf090(0x1df)]);TestInfo[_0x2cf090(0x1d5)](_0x1fae6a,_0x478ca4),logger[_0x2cf090(0x1fe)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x3b1f93[_0x2cf090(0x27f)]+_0x2cf090(0x293)+_0x3b1f93[_0x2cf090(0x212)]);const _0x57dd75={};return _0x57dd75[_0x1fae6a]=_0x478ca4,_0x57dd75;}async[a90_0x4939d7(0x1f4)](_0x2600cd,_0x3c3f34,_0x46602d,_0x5dceb2){const _0x47f59b=a90_0x4939d7,_0xb7bc18={'BmprN':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','ePeDf':function(_0x1ca6e7){return _0x1ca6e7();},'mMZWd':function(_0x35c133,_0x4755d2){return _0x35c133 in _0x4755d2;},'FJlnD':function(_0x585900,_0x169aa7){return _0x585900===_0x169aa7;},'tEnQr':function(_0xa406f5,_0x12a508){return _0xa406f5>_0x12a508;},'WVWRF':function(_0x160732,_0x258533){return _0x160732===_0x258533;},'fVGUc':_0x47f59b(0x26e),'iZGdv':_0x47f59b(0x285),'UWtap':_0x47f59b(0x249),'ILIxC':function(_0x4f767c,_0x4d95e4){return _0x4f767c!==_0x4d95e4;}},{hookData:_0x3b4c64}=_0x5dceb2;if(!_0x3b4c64)return logger[_0x47f59b(0x1fe)](_0xb7bc18['BmprN']),{};const _0x5ae65b=_0x3b4c64[_0x47f59b(0x27c)]||_0xb7bc18[_0x47f59b(0x1d1)](uuidv4),_0x2871fb=_0x3b4c64[_0x47f59b(0x1c5)],_0x2a3b2d=_0x3c3f34[_0x47f59b(0x289)]()[_0x47f59b(0x26a)]('.')[0x1],_0x27a501=TestInfo['getTestDetails'](_0x2871fb)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x5e5bd6=_0x2600cd['getAllData']()[_0x47f59b(0x217)](_0x2871fb);if(!_0x5e5bd6)return logger[_0x47f59b(0x1fe)](_0x47f59b(0x1fb)+_0x2871fb+_0x47f59b(0x1dc)),this[_0x47f59b(0x1de)](_0x2600cd,_0x2871fb,_0x3c3f34,_0x46602d,_0x5dceb2),{};let _0x1c9196=_0x5e5bd6[TestFrameworkConstants[_0x47f59b(0x276)]];!_0x1c9196&&(_0x1c9196={});!_0xb7bc18[_0x47f59b(0x28a)](_0x2a3b2d,_0x1c9196)&&(_0x1c9196[_0x2a3b2d]=[]);let _0x166bf0=_0x5e5bd6[TestFrameworkConstants[_0x47f59b(0x265)]];!_0x166bf0&&(_0x166bf0={});!_0xb7bc18['mMZWd'](_0x2a3b2d,_0x166bf0)&&(_0x166bf0[_0x2a3b2d]=[]);const _0x171bac={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x1c9196,[TestFrameworkConstants[_0x47f59b(0x265)]]:_0x166bf0},_0x27c98e={};_0x27c98e[_0x2871fb]=_0x171bac;const _0x40e402=_0x27c98e;if(_0xb7bc18[_0x47f59b(0x1ca)](_0x46602d,HookState['PRE'])){const _0x31ea60={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x5ae65b,[TestFrameworkConstants[_0x47f59b(0x21e)]]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0x3b4c64[_0x47f59b(0x25b)],[TestFrameworkConstants[_0x47f59b(0x230)]]:[],[TestFrameworkConstants[_0x47f59b(0x244)]]:_0x3b4c64['hook_type'],[TestFrameworkConstants[_0x47f59b(0x24a)]]:_0x27a501};_0x31ea60['key']=_0x2a3b2d;const _0x142db0=_0x31ea60;_0x1c9196[_0x2a3b2d]['push'](_0x142db0),_0x40e402[_0x2871fb][TestFrameworkConstants[_0x47f59b(0x1e9)]]=_0x2a3b2d,logger['debug'](_0x47f59b(0x1f5)+_0x2a3b2d+_0x47f59b(0x21d)+_0x142db0+_0x47f59b(0x255)+_0x5dceb2);}else{if(_0xb7bc18['FJlnD'](_0x46602d,HookState['POST'])){const _0x2efac5=_0x3b4c64['result'],_0x5a10f7=_0x1c9196[_0x2a3b2d]||[];logger[_0x47f59b(0x1fe)](_0x47f59b(0x25e)+_0x5a10f7+_0x47f59b(0x210)+_0x5dceb2);if(_0xb7bc18['tEnQr'](_0x5a10f7[_0x47f59b(0x1ce)],0x0)){const _0x551e4f=_0x5a10f7[_0x47f59b(0x241)]();_0xb7bc18[_0x47f59b(0x1f2)](_0x3b4c64['result'],_0xb7bc18[_0x47f59b(0x1ed)])&&_0x3b4c64[_0x47f59b(0x270)]?(_0x551e4f[TestFrameworkConstants[_0x47f59b(0x26b)]]=_0x3b4c64['failure_type']||_0xb7bc18[_0x47f59b(0x1c2)],_0x551e4f[TestFrameworkConstants[_0x47f59b(0x27b)]]=_0x3b4c64['failure_reason']||'',_0x551e4f[TestFrameworkConstants[_0x47f59b(0x1e8)]]=_0x3b4c64[_0x47f59b(0x270)]):_0x551e4f[TestFrameworkConstants[_0x47f59b(0x21e)]]=_0xb7bc18[_0x47f59b(0x235)];_0xb7bc18[_0x47f59b(0x219)](_0x2efac5,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x551e4f[TestFrameworkConstants[_0x47f59b(0x21e)]]=_0x2efac5);_0x551e4f[TestFrameworkConstants[_0x47f59b(0x20a)]]=_0x3b4c64[_0x47f59b(0x1eb)]||new Date()['toISOString'](),_0x551e4f[TestFrameworkConstants[_0x47f59b(0x24a)]]=_0x27a501;const _0x14d26b=_0x551e4f[TestFrameworkConstants[_0x47f59b(0x28d)]];!_0x166bf0[_0x2a3b2d]&&(_0x166bf0[_0x2a3b2d]=[]),_0x166bf0[_0x2a3b2d][_0x47f59b(0x1fa)](_0x551e4f),_0x40e402[_0x2871fb][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x2a3b2d;}}}return logger['debug'](_0x47f59b(0x238)+_0x3b4c64[_0x47f59b(0x22f)]+_0x47f59b(0x247)+_0x5ae65b+_0x47f59b(0x248)+_0x2871fb),_0x40e402;}[a90_0x4939d7(0x1c6)](_0x36405e){const _0x2ff0b2=a90_0x4939d7,_0x85c0a7={};_0x85c0a7[_0x2ff0b2(0x1d8)]='base64';const _0x31a078=_0x85c0a7;try{const _0x18ec13=_0x36405e[_0x2ff0b2(0x23a)]?_0x36405e[_0x2ff0b2(0x23a)]['id']:_0x36405e['hookData']['test_run_id'],_0x2349c5=_0x36405e[_0x2ff0b2(0x211)],_0x17b4c5=_0x2349c5[_0x2ff0b2(0x200)](),_0x9217f2=_0x2349c5['getAllData']()[_0x2ff0b2(0x217)](_0x18ec13);if(!_0x9217f2)return logger['debug'](_0x2ff0b2(0x1c1)+_0x18ec13),{};logger[_0x2ff0b2(0x1fe)](_0x2ff0b2(0x286)+_0x18ec13);const {[TestFrameworkConstants[_0x2ff0b2(0x24e)]]:_0x278846='',[TestFrameworkConstants[_0x2ff0b2(0x284)]]:_0x15697a='',[TestFrameworkConstants[_0x2ff0b2(0x25f)]]:_0x2a98b9='',[TestFrameworkConstants[_0x2ff0b2(0x225)]]:_0xf41199=''}=_0x9217f2,_0x4a4112=_0x2349c5[_0x2ff0b2(0x25c)]()['toString']()['split']('.')[0x1],_0x5f5dcb=_0x2349c5[_0x2ff0b2(0x1d3)]()[_0x2ff0b2(0x289)]()[_0x2ff0b2(0x26a)]('.')[0x1],_0x5af504=global?.[_0x2ff0b2(0x218)]??0x0,_0x2b3844=_0x2349c5[_0x2ff0b2(0x1f0)](),_0x1d139b=Buffer['from'](JSON['stringify'](_0x9217f2))[_0x2ff0b2(0x289)](_0x31a078['hzIQj']),_0x586cf4={'hash':_0x17b4c5[_0x2ff0b2(0x279)](),'threadId':_0x17b4c5[_0x2ff0b2(0x1e3)]()['toString'](),'processId':_0x17b4c5[_0x2ff0b2(0x283)]()[_0x2ff0b2(0x289)]()},_0x32cab3={};_0x32cab3[_0x2ff0b2(0x1e4)]=_0x5af504,_0x32cab3[_0x2ff0b2(0x1d2)]=_0x278846,_0x32cab3[_0x2ff0b2(0x1d9)]=_0x15697a,_0x32cab3[_0x2ff0b2(0x1ec)]=_0x4a4112,_0x32cab3[_0x2ff0b2(0x1c0)]=_0x5f5dcb,_0x32cab3[_0x2ff0b2(0x288)]=_0x2a98b9,_0x32cab3[_0x2ff0b2(0x203)]=_0xf41199,_0x32cab3[_0x2ff0b2(0x27c)]=_0x2b3844,_0x32cab3[_0x2ff0b2(0x220)]=_0x1d139b,_0x32cab3[_0x2ff0b2(0x1db)]=_0x586cf4;const _0x4d4b1d=_0x32cab3;return logger['debug'](_0x2ff0b2(0x1e7)+_0x18ec13+_0x2ff0b2(0x273)+_0x4a4112+_0x2ff0b2(0x1d7)+_0x5f5dcb),_0x4d4b1d;}catch(_0x13a257){return logger[_0x2ff0b2(0x21c)](_0x2ff0b2(0x1e5)+util['format'](_0x13a257)),{};}}async[a90_0x4939d7(0x251)](_0xecc4de,_0x34f91b,_0x2ddaa0){const _0x44040a=a90_0x4939d7,_0x29158f={'iwkhE':function(_0x594ea2,_0x31238d,_0x3fa8f7){return _0x594ea2(_0x31238d,_0x3fa8f7);},'kXSwC':function(_0xdd0b44,_0x5272f3){return _0xdd0b44===_0x5272f3;},'EkMGN':_0x44040a(0x274),'tBqya':function(_0x36150d,_0x50a21d){return _0x36150d/_0x50a21d;},'mEnhe':function(_0x377ae5,_0x13bfaf){return _0x377ae5<_0x13bfaf;},'FPEHY':function(_0x26adc6,_0xd90efc){return _0x26adc6*_0xd90efc;},'krmvZ':function(_0x51b88c,_0x41f08f){return _0x51b88c+_0x41f08f;},'EqlxH':_0x44040a(0x215)};try{const _0x2605f0=_0x2ddaa0[_0x44040a(0x234)],_0x290911=_0xecc4de[_0x44040a(0x25a)]()[_0x44040a(0x217)](_0x2605f0),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x308ded='',[TestFrameworkConstants[_0x44040a(0x284)]]:_0x45f9ed=''}=_0x290911,_0x37b9e1=TestInfo[_0x44040a(0x272)](_0x2605f0),_0x1eca55=TestInfo[_0x44040a(0x26f)](_0x2605f0)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x15a68d=_0x29158f[_0x44040a(0x1d0)](getMediaArtifactsLogs,_0x1eca55,_0xecc4de[_0x44040a(0x25a)]()[_0x44040a(0x217)](_0x2605f0)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x24dae9=(_0x37b9e1||[])['concat'](_0x15a68d||[]);if(!_0x24dae9||_0x29158f[_0x44040a(0x201)](_0x24dae9['length'],0x0)){logger['debug'](_0x29158f['EkMGN']);return;}const _0x15a8ef=0x28,_0x490e00=Math[_0x44040a(0x282)](_0x29158f[_0x44040a(0x1cd)](_0x24dae9[_0x44040a(0x1ce)],_0x15a8ef));for(let _0x20be9c=0x0;_0x29158f[_0x44040a(0x253)](_0x20be9c,_0x490e00);_0x20be9c++){const _0x52eb72=_0x29158f['FPEHY'](_0x20be9c,_0x15a8ef),_0x1f00c4=_0x29158f[_0x44040a(0x22e)](_0x52eb72,_0x15a8ef),_0x253ead=_0x24dae9[_0x44040a(0x242)](_0x52eb72,_0x1f00c4),_0x37fa64={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x253ead,'testFrameworkName':_0x308ded,'testFrameworkVersion':_0x45f9ed,'testFrameworkState':_0x34f91b['toString']()[_0x44040a(0x26a)]('.')[0x1]};logger[_0x44040a(0x1fe)](_0x44040a(0x26d)+_0x2605f0+'\x20batch\x20'+_0x29158f[_0x44040a(0x22e)](_0x20be9c,0x1)+'/'+_0x490e00+_0x44040a(0x226)+util[_0x44040a(0x245)](_0x37fa64));const _0x1166a8=await GrpcClient['getInstance']()[_0x44040a(0x214)](_0x37fa64);logger[_0x44040a(0x1fe)](_0x44040a(0x26d)+_0x2605f0+_0x44040a(0x222)+_0x29158f[_0x44040a(0x22e)](_0x20be9c,0x1)+'/'+_0x490e00+_0x44040a(0x1e2)+util[_0x44040a(0x245)](_0x1166a8));}}catch(_0x46cca1){logger[_0x44040a(0x21c)](_0x44040a(0x268)+util[_0x44040a(0x294)](_0x46cca1));}logger[_0x44040a(0x1fe)](_0x29158f[_0x44040a(0x207)]);}['storePendingHook'](_0x4bf750,_0x1e81c4,_0x175f23,_0x5c3dfa,_0x9bdee8){const _0x16b3d6=a90_0x4939d7,_0x19fe64={'testId':_0x1e81c4,'testFrameworkState':_0x175f23,'hookState':_0x5c3dfa,'args':_0x9bdee8,'timestamp':new Date()[_0x16b3d6(0x1d6)]()};_0x4bf750[_0x16b3d6(0x260)](_0x1e81c4,_0x19fe64),logger[_0x16b3d6(0x1fe)](_0x16b3d6(0x1fc)+_0x1e81c4+',\x20state:\x20'+_0x175f23+_0x16b3d6(0x22b)+_0x5c3dfa);}async[a90_0x4939d7(0x205)](_0x17ee74,_0x4fa4db){const _0x324541=a90_0x4939d7,_0x2f1650={};_0x2f1650[_0x324541(0x23e)]=function(_0x561547,_0x39cf51){return _0x561547>_0x39cf51;};const _0x65d1b0=_0x2f1650;if(!_0x17ee74['hasPendingHooks'](_0x4fa4db))return;const _0x299dea=_0x17ee74[_0x324541(0x264)](_0x4fa4db);logger[_0x324541(0x1fe)](_0x324541(0x243)+_0x299dea['length']+_0x324541(0x20e)+_0x4fa4db);for(const _0x4807f2 of _0x299dea){try{const _0x41531b=await this[_0x324541(0x1f4)](_0x17ee74,_0x4807f2['testFrameworkState'],_0x4807f2[_0x324541(0x1c0)],_0x4807f2['args']);_0x41531b&&_0x65d1b0[_0x324541(0x23e)](Object[_0x324541(0x280)](_0x41531b)[_0x324541(0x1ce)],0x0)&&_0x17ee74[_0x324541(0x1f7)](_0x41531b),await this['runHooks'](_0x17ee74,_0x4807f2[_0x324541(0x1ec)],_0x4807f2['hookState'],_0x4807f2[_0x324541(0x277)]);}catch(_0x42d59f){logger[_0x324541(0x21c)](_0x324541(0x223)+_0x4fa4db+_0x324541(0x206)+_0x42d59f);}}_0x17ee74[_0x324541(0x204)](_0x4fa4db),logger[_0x324541(0x1fe)]('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0x4fa4db);}}function a90_0x4364(){const _0x2de4a7=['finished_at','testFrameworkState','fVGUc','customRerunParam','KEY_TEST_RESULT_AT','getRef','\x20with\x20UUID:\x20','WVWRF','8004780Nsaybe','trackHookEvent','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','2050143XBOPIm','addMultipleEntries','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','KEY_TEST_FILE_PATH','push','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','Stored\x20pending\x20hook\x20for\x20testId:\x20','PRE','debug','trackEvent','getContext','kXSwC','GDPIS','endedAt','removePendingHooks','processPendingHooks',',\x20error:\x20','EqlxH','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','../TestInfo.js','KEY_EVENT_ENDED_AT','KEY_TEST_CODE','KEY_TEST_LOGS','testData','\x20pending\x20hooks\x20for\x20testId:\x20','resolveInstance','\x20and\x20args\x20=\x20','instance','result','./constants/testFrameworkConstants.js','logCreatedEvent','Cucumber\x20log\x20created\x20event','rerun_name','get','browserstackPlatformIndex','ILIxC','getTestUUID','222tZBeCf','error','\x20&\x20hook\x20=\x20','KEY_HOOK_RESULT','gSPuE','eventJson','./testFramework','\x20batch\x20','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','MmksP','KEY_TEST_ENDED_AT','\x20payload=','8OXuqqu','../state/hookState.js','getTestFrameworks','createContext',',\x20hookState:\x20','../instances/testFrameworkInstance.js','body','krmvZ','hook_type','KEY_HOOK_LOGS','3018LigaIM','../grpcClient','trackCucumberInstance','testUUID','UWtap','KEY_LOGS','RbOlp','Tracked\x20cucumber\x20hook\x20event:\x20','scopes','test','KEY_TEST_FAILURE_TYPE','TEST','location','BwoPr','KEY_TEST_ID','../instances/trackedInstance.js','pop','slice','Processing\x20','KEY_HOOK_NAME','inspect','../state/testFrameworkState.js','\x20with\x20id\x20','\x20for\x20test:\x20','passed','KEY_CUSTOM_TAGS','PlqqC','trackCucumberInstance:\x20saved\x20instance\x20contextId=','NyZtC','KEY_TEST_FRAMEWORK_NAME','failure_type','getTrackedInstance','sendLogCreatedEvent','failure_reason','mEnhe','Parsed\x20cucumber\x20test:\x20','\x20\x20and\x20args\x20=\x20','KEY_TEST_SCOPE','exports','util','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','getAllData','started_at','getCurrentTestState','setTrackedInstance','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','KEY_TEST_STARTED_AT','addPendingHook','../cliUtils.js','37315WhdohW','hyzlu','getPendingHooks','KEY_HOOKS_FINISHED','KEY_TEST_ATTACHMENTS','KEY_TEST_LOCATION','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','KEY_AUTOMATE_SESSION_NAME','split','KEY_HOOK_FAILURE_TYPE','1351713mtDCYY','sendLogCreatedEvent:\x20for\x20testId:\x20','failed','getTestDetails','failure_data','DYnpy','readLogObjects','\x20testState:\x20','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','KEY_TEST_SCOPES','KEY_HOOKS_STARTED','args',',\x20state=','getId','trackEvent:\x20unsupported\x20testFrameworkState=','KEY_HOOK_FAILURE_REASON','uuid','6907565fOdZOq','code','name','keys','parseCucumberTest','ceil','getProcessId','KEY_TEST_FRAMEWORK_VERSION','UnhandledError','createTestFrameworkEventPayload\x20testId:\x20','13044864PKhAYy','startedAt','toString','mMZWd','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','20OrTCsF','KEY_HOOK_ID','oMWBS','ZOjuk','4iiUuxt','KEY_TEST_RESULT','KEY_TEST_UUID','\x20with\x20result:\x20','format','hookState','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','iZGdv','NONE','PgWEs','test_run_id','createTestFrameworkEventPayload','getTestFrameworksVersions','KEY_TEST_FAILURE','runHooks','FJlnD','INIT_TEST','KEY_TEST_RERUN_NAME','tBqya','length','21keHfgd','iwkhE','ePeDf','testFrameworkName','getCurrentHookState','zdrIR','setTestDetails','toISOString','\x20hookState:\x20','hzIQj','testFrameworkVersion','meta','executionContext',',\x20storing\x20as\x20pending\x20hook','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','storePendingHook','hooks','parseCucumberTestResult','POST','\x20response=','getThreadId','platformIndex','Error\x20in\x20createTestFrameworkEventPayload:\x20','failure','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','KEY_HOOK_FAILURE','KEY_HOOK_LAST_STARTED','KEY_TEST_FAILURE_REASON'];a90_0x4364=function(){return _0x2de4a7;};return a90_0x4364();}module[a90_0x4939d7(0x257)]=CucumberTestFramework;
|