browserstack-node-sdk 1.60.0 → 1.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/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_0x9ee1e=a84_0x3409;(function(_0x44ac3f,_0x6d20ef){const _0x279083=a84_0x3409,_0x41c7b1=_0x44ac3f();while(!![]){try{const _0xbdc735=parseInt(_0x279083(0x1c3))/0x1+parseInt(_0x279083(0x142))/0x2+-parseInt(_0x279083(0x182))/0x3+-parseInt(_0x279083(0x11e))/0x4*(parseInt(_0x279083(0x16b))/0x5)+-parseInt(_0x279083(0x152))/0x6*(parseInt(_0x279083(0x1a8))/0x7)+parseInt(_0x279083(0x13a))/0x8+parseInt(_0x279083(0x16d))/0x9;if(_0xbdc735===_0x6d20ef)break;else _0x41c7b1['push'](_0x41c7b1['shift']());}catch(_0x415f1b){_0x41c7b1['push'](_0x41c7b1['shift']());}}}(a84_0x54df,0x80647));function a84_0x54df(){const _0x5e29be=['getTestFrameworkDetail','Ppaau','Current\x20CLI\x20Path\x20Found:\x20','Failed\x20to\x20delete\x20zip\x20file:\x20','./state/hookState.js','CLIUtils','Qhxji','FWWaL','423110JDUQSt','wytEO','7578054cXZRHq','../../helpers/helper','jmmeY','setupCliPath','existsSync','EXTYJ','parse','downloadFileStream','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','mtime','xnVAv','util','VyouC','isDevelopmentEnv','xpzqb','jUCje','concat','copyFileSync','filePath','worker_threads','isArray','2460885mhGabv','yauzl','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','Yftxu','jRvkC','yjUyu','mkHTS','DsUyp','mergeObject','wIYWx','NwKbw','testFrameworkDetail','Error\x20while\x20reading\x20CLI\x20path:\x20','path','isBinaryBusy','Gooye','JIqer','isDirectory','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','join','../../helpers/performance/constants','includes','info','BROWSERSTACK_CLI_ENV','trim','exports','\x20already\x20exists','homedir','dCUbH','UYBGz','getSdkVersion','2|0|4|1|3','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','readEntry','VbhLD','shouldSkipSessionName','chmod','21MxuUlQ','Configuring\x20Cli\x20path.','.zip','SOwrT','rename','runShellCommand','LiHsa','SHELL_EXECUTE_ERROR','HEFvd','code','RAkpZ','SDK_CLI_CHECK_UPDATE','map','development','./state/testFrameworkState.js','qFjwb','GJAiq','rITRQ','TFNUp','dOBpb','.tmp.','UNITX','HJfct','YesMn','entry','BjWCp','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','193032IAGaMX','Folder\x20does\x20not\x20exist:\x20','cli','lazyEntries',',\x20automationFramework=','Resolved\x20binary\x20path:\x20','mvEjL','pDviy','binary-','mKGbB','keYgB','.sock','warn','skipSessionName','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','createWriteStream','checkAndUpdateCli','YAdzU','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','format','requestToUpdateCLI','length','cli_version','testContextOptions','isFile','WfEKl','get','response\x20','yrkAO','vscyw','pdoXA','jxJvb','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','Resolving\x20with\x20stdout:\x20\x22','RESdF','downloadLatestBinary','follow-redirects','data','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','cwd','getAutomationFrameworkDetail','pipe','getCLIParamsForDevEnv','start','stringify','cFXrS','fPzKY','xKTnD','listen','UZgVv','ACUEm','Folder\x20','BROWSERSTACK_BINARY_URL','EcKeS','SDK_CLI_BIN_PATH','JhOYT','Lpnpq','uEflU','readdirSync','closeSync','getExistingCliPath','4UNPjWX','BeqfZ','getCurrentInstanceName','filter','UJpOl','statSync','close','BUwcq','getWritableDir','getHookRegistryKey','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','yxMnH','debug','QtMTV','getCliDir','SDK_CLI_DOWNLOAD','HvZvI','gSQCW','getSdkLanguage','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','env','nLONI','HOOK_REGEX','FaLBF','VKdLL','WtTDo','EXDEV','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','1794120XVelFP','url','gpwWe','automationFrameworkDetail','fDTJG','error','reduce','slVnt','1329244MXhIOD','open','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','timeout','RYAxU','../../../package.json','../utils/constants','Setting\x20required\x20permissions\x20to\x20','../../helpers/test-observability/utils.js','fileName','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','pid','YWSXG','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','ZlmcZ','986226OiwnRv','unix:/tmp/sdk-platform-','Downloading\x20SDK\x20binary\x20from:\x20','./state/automationFrameworkState.js','Development\x20Cli\x20Path:\x20','unlink','vbFbm','./instances/testFrameworkInstance.js','entries','end','../utils/apiUtilityMethods.js','DJysb','rJrfW','split','once','KwVHm','message'];a84_0x54df=function(){return _0x5e29be;};return a84_0x54df();}const fs=require('fs'),os=require('os'),url=require(a84_0x9ee1e(0x13b)),path=require(a84_0x9ee1e(0x18f)),{exec}=require('child_process'),{https}=require(a84_0x9ee1e(0x1e7)),yauzl=require(a84_0x9ee1e(0x183)),util=require(a84_0x9ee1e(0x178)),{getFrameworkVersion}=require(a84_0x9ee1e(0x14b)),{threadId}=require(a84_0x9ee1e(0x180)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a84_0x9ee1e(0x197)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a84_0x9ee1e(0x16e)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a84_0x9ee1e(0x149)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a84_0x9ee1e(0x159)),HookState=require(a84_0x9ee1e(0x167)),TestFrameworkState=require(a84_0x9ee1e(0x1b6)),AutomationFrameworkState=require(a84_0x9ee1e(0x155)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a84_0x9ee1e(0x168)),{getBStackAPIUrl}=require(a84_0x9ee1e(0x15c));function a84_0x3409(_0x2ac494,_0x287755){const _0x54df49=a84_0x54df();return a84_0x3409=function(_0x3409eb,_0x23eab1){_0x3409eb=_0x3409eb-0x117;let _0x1d85ea=_0x54df49[_0x3409eb];return _0x1d85ea;},a84_0x3409(_0x2ac494,_0x287755);}class CLIUtils{[a84_0x9ee1e(0x13d)]={};['testFrameworkDetail']={};static[a84_0x9ee1e(0x17a)](){const _0x4a91d1=a84_0x9ee1e,_0x819a2={};_0x819a2[_0x4a91d1(0x151)]=function(_0x46c54e,_0x402ebc){return _0x46c54e===_0x402ebc;},_0x819a2[_0x4a91d1(0x1e5)]=_0x4a91d1(0x1b5);const _0x129581=_0x819a2;return _0x129581[_0x4a91d1(0x151)](process[_0x4a91d1(0x132)][_0x4a91d1(0x19a)],_0x129581['RESdF']);}static[a84_0x9ee1e(0x1ed)](){const _0x291d8a=a84_0x9ee1e,_0x26819b={};return _0x26819b['id']=process[_0x291d8a(0x132)][_0x291d8a(0x19a)],_0x26819b[_0x291d8a(0x1f3)]=_0x291d8a(0x153)+process[_0x291d8a(0x132)][_0x291d8a(0x19a)]+_0x291d8a(0x1ce),_0x26819b;}static['getSdkVersion'](){const _0x5efdcd=a84_0x9ee1e,_0x316527={'UNITX':function(_0x559172,_0x26fe74){return _0x559172(_0x26fe74);},'jUCje':_0x5efdcd(0x148)};return _0x316527[_0x5efdcd(0x1bd)](require,_0x316527[_0x5efdcd(0x17c)])['version'];}static[a84_0x9ee1e(0x130)](){const _0x59e2ab=a84_0x9ee1e,_0x3625d3={};_0x3625d3[_0x59e2ab(0x179)]='node';const _0x258b67=_0x3625d3;return _0x258b67[_0x59e2ab(0x179)];}static async[a84_0x9ee1e(0x170)](_0x45dd3b){const _0x2a415b=a84_0x9ee1e,_0x201f24={'wIYWx':_0x2a415b(0x1a9),'GMFPt':function(_0x182036,_0x38701d){return _0x182036(_0x38701d);},'keYgB':function(_0x226c3b,_0x19a1d2){return _0x226c3b(_0x19a1d2);},'yrkAO':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger['debug'](_0x201f24[_0x2a415b(0x18b)]);const _0x44925d=process[_0x2a415b(0x132)][_0x2a415b(0x117)];if(!_0x201f24['GMFPt'](isNullOrEmpty,_0x44925d))return logger[_0x2a415b(0x12a)](_0x2a415b(0x156)+_0x44925d),_0x44925d;try{const _0x2ba7a5=this[_0x2a415b(0x12c)]();if(_0x201f24[_0x2a415b(0x1cd)](isNullOrEmpty,_0x2ba7a5))throw new Error(_0x201f24[_0x2a415b(0x1df)]);const _0x4ccb91=this[_0x2a415b(0x11d)](_0x2ba7a5),_0x4d875a=await this[_0x2a415b(0x1d3)](_0x4ccb91,_0x2ba7a5,_0x45dd3b);return logger[_0x2a415b(0x12a)](_0x2a415b(0x1c8)+_0x4d875a),_0x4d875a;}catch(_0x2834be){logger['debug'](_0x2a415b(0x1d1)+util['format'](_0x2834be));}return null;}static async[a84_0x9ee1e(0x1d3)](_0x58b95b,_0x421600,_0x2e5869){const _0x20345e=a84_0x9ee1e,_0x13829c={'mvEjL':function(_0xd84082){return _0xd84082();},'rJrfW':function(_0x2af0fc,_0x2d6ec6){return _0x2af0fc(_0x2d6ec6);},'qFjwb':function(_0x50e47b,_0x17655b,_0x54497b){return _0x50e47b(_0x17655b,_0x54497b);},'LiHsa':_0x20345e(0x1e8),'dCUbH':'url','UJpOl':function(_0x1f28d7,_0x51b6f2,_0x5c0e76){return _0x1f28d7(_0x51b6f2,_0x5c0e76);}};PerformanceTester[_0x20345e(0x1ee)](PerformanceEvents[_0x20345e(0x1b3)]),logger[_0x20345e(0x199)](_0x20345e(0x165)+_0x58b95b);const _0xd09b5f=_0x13829c[_0x20345e(0x1c9)](getHostInfo),_0x1f5471={'sdk_version':CLIUtils[_0x20345e(0x1a1)](),'os':_0xd09b5f['platform'],'os_arch':_0xd09b5f['arch'],'cli_version':'0','sdk_language':this[_0x20345e(0x130)]()};!_0x13829c[_0x20345e(0x15e)](isNullOrEmpty,_0x58b95b)&&(_0x1f5471['cli_version']=await this[_0x20345e(0x1ad)](_0x58b95b+'\x20version'));const _0x57e54d=await this[_0x20345e(0x1d7)](_0x1f5471,_0x2e5869);process[_0x20345e(0x132)][_0x20345e(0x1f7)]&&(logger[_0x20345e(0x199)](_0x20345e(0x1a3)+process['env'][_0x20345e(0x1f7)]),_0x57e54d[_0x20345e(0x1e8)]['url']=process[_0x20345e(0x132)][_0x20345e(0x1f7)]);if(_0x13829c[_0x20345e(0x1b7)](nestedKeyValue,_0x57e54d,[_0x13829c[_0x20345e(0x1ae)],_0x13829c['dCUbH']])){logger[_0x20345e(0x12a)](_0x20345e(0x194)+_0x1f5471[_0x20345e(0x1d9)]);if(!_0x13829c[_0x20345e(0x15e)](isNullOrEmpty,_0x58b95b)&&this[_0x20345e(0x190)](_0x58b95b))return logger[_0x20345e(0x1cf)](_0x20345e(0x175)+_0x58b95b),PerformanceTester[_0x20345e(0x15b)](PerformanceEvents[_0x20345e(0x1b3)]),_0x58b95b;const _0x373401=await this[_0x20345e(0x1e6)](_0x13829c[_0x20345e(0x122)](nestedKeyValue,_0x57e54d,[_0x13829c[_0x20345e(0x1ae)],_0x13829c[_0x20345e(0x19f)]]),_0x421600);return PerformanceTester[_0x20345e(0x15b)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x373401;}return PerformanceTester[_0x20345e(0x15b)](PerformanceEvents[_0x20345e(0x1b3)]),_0x58b95b;}static['getCliDir'](){const _0x26a11e=a84_0x9ee1e,_0x191c39={'dOBpb':function(_0x8eeb58,_0x442b39){return _0x8eeb58(_0x442b39);},'YWSXG':_0x26a11e(0x184),'DbBrR':_0x26a11e(0x1c5)},_0x2ad808=this['getWritableDir']();try{if(_0x191c39[_0x26a11e(0x1bb)](isNullOrEmpty,_0x2ad808))throw new Error(_0x191c39[_0x26a11e(0x14f)]);const _0x3c8468=path[_0x26a11e(0x196)](_0x2ad808,_0x191c39['DbBrR']);return!fs['existsSync'](_0x3c8468)&&_0x191c39[_0x26a11e(0x1bb)](createDir,_0x3c8468),_0x3c8468;}catch(_0x23d340){logger['debug'](_0x26a11e(0x150)+util[_0x26a11e(0x1d6)](_0x23d340));}}static[a84_0x9ee1e(0x126)](){const _0x1b7e27=a84_0x9ee1e,_0x3446c2={'VbhLD':'.browserstack','ZZltC':function(_0x353c03,_0x17404b){return _0x353c03(_0x17404b);},'jmmeY':function(_0x310e52,_0x51337a){return _0x310e52(_0x51337a);},'FaLBF':function(_0x3a4ec8,_0x1bde28){return _0x3a4ec8(_0x1bde28);},'uEflU':function(_0x5c28ee,_0x410f2b){return _0x5c28ee(_0x410f2b);},'pCVOl':function(_0x304b44,_0x1bcf5e){return _0x304b44(_0x1bcf5e);},'yBgmD':function(_0x232e01,_0x2dc7d4){return _0x232e01(_0x2dc7d4);}},_0x509183=[process['env']['BROWSERSTACK_FILES_DIR'],path[_0x1b7e27(0x196)](os[_0x1b7e27(0x19e)](),_0x3446c2['VbhLD']),path[_0x1b7e27(0x196)](os['tmpdir'](),_0x3446c2[_0x1b7e27(0x1a5)])];for(const _0x37b4bf of _0x509183){if(_0x3446c2['ZZltC'](isNullOrEmpty,_0x37b4bf))continue;try{if(fs[_0x1b7e27(0x171)](_0x37b4bf)){logger['debug'](_0x1b7e27(0x1f6)+_0x37b4bf+_0x1b7e27(0x19d));if(!_0x3446c2['jmmeY'](isModifiable,_0x37b4bf)){logger[_0x1b7e27(0x12a)](_0x1b7e27(0x14a)+_0x37b4bf);const _0x52abb2=_0x3446c2[_0x1b7e27(0x135)](setReadWriteExecuteAccess,_0x37b4bf);if(!_0x3446c2[_0x1b7e27(0x16f)](isTrue,_0x52abb2)){logger[_0x1b7e27(0x1cf)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x37b4bf);continue;}}}else{logger[_0x1b7e27(0x12a)](_0x1b7e27(0x1c4)+_0x37b4bf),_0x3446c2[_0x1b7e27(0x11a)](createDir,_0x37b4bf),logger[_0x1b7e27(0x12a)](_0x1b7e27(0x14a)+_0x37b4bf);const _0x195c15=_0x3446c2['pCVOl'](setReadWriteExecuteAccess,_0x37b4bf);!_0x3446c2['yBgmD'](isTrue,_0x195c15)&&logger[_0x1b7e27(0x1cf)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x37b4bf);}return _0x37b4bf;}catch(_0x375dd6){logger[_0x1b7e27(0x13f)](_0x1b7e27(0x128)+util[_0x1b7e27(0x1d6)](_0x375dd6));}}return null;}static[a84_0x9ee1e(0x11d)](_0x48f00e){const _0x15bcfd=a84_0x9ee1e,_0x46cbe0={};_0x46cbe0[_0x15bcfd(0x141)]=function(_0x362bec,_0x25e01d){return _0x362bec>_0x25e01d;},_0x46cbe0[_0x15bcfd(0x177)]=function(_0x249c02,_0x2f802f){return _0x249c02>_0x2f802f;};const _0x1d318e=_0x46cbe0;try{if(!fs[_0x15bcfd(0x171)](_0x48f00e)||!fs[_0x15bcfd(0x123)](_0x48f00e)[_0x15bcfd(0x193)]())return'';const _0x2f858b=fs[_0x15bcfd(0x11b)](_0x48f00e)[_0x15bcfd(0x1b4)](_0x152df3=>path['join'](_0x48f00e,_0x152df3))[_0x15bcfd(0x121)](_0x47561f=>fs[_0x15bcfd(0x123)](_0x47561f)[_0x15bcfd(0x1db)]()&&path['basename'](_0x47561f)['startsWith'](_0x15bcfd(0x1cb)));if(_0x1d318e['xnVAv'](_0x2f858b[_0x15bcfd(0x1d8)],0x0)){const _0x4e0f15=_0x2f858b['map'](_0x405df5=>({'filePath':_0x405df5,'mtime':fs['statSync'](_0x405df5)['mtime']}))[_0x15bcfd(0x140)]((_0x1e9145,_0x3c1d9b)=>{const _0x45afde=_0x15bcfd;if(!_0x1e9145||!_0x1e9145[_0x45afde(0x176)])return _0x3c1d9b;if(_0x1d318e[_0x45afde(0x141)](_0x3c1d9b[_0x45afde(0x176)],_0x1e9145['mtime']))return _0x3c1d9b;return _0x1e9145;},{});return _0x4e0f15?_0x4e0f15[_0x15bcfd(0x17f)]:'';}return'';}catch(_0x343f68){return logger['error'](_0x15bcfd(0x18e)+util[_0x15bcfd(0x1d6)](_0x343f68)),'';}}static ['requestToUpdateCLI']=async(_0x4d1b49,_0x560bd4)=>{const _0x5ce5a0=a84_0x9ee1e,_0x50f214={'rITRQ':function(_0x32b110,_0x43b762,_0x201bad,_0x288a11,_0x58e189){return _0x32b110(_0x43b762,_0x201bad,_0x288a11,_0x58e189);},'vbFbm':'GET'},_0x780d7={};_0x780d7['qs']=_0x4d1b49;const _0x2301ca=await _0x50f214[_0x5ce5a0(0x1b9)](nodeRequest,_0x50f214[_0x5ce5a0(0x158)],UPDATED_CLI_ENDPOINT,_0x780d7,_0x560bd4);return logger[_0x5ce5a0(0x12a)](_0x5ce5a0(0x1de)+JSON['stringify'](_0x2301ca)),_0x2301ca;};static[a84_0x9ee1e(0x190)](_0x3cfa72){const _0x1611a7=a84_0x9ee1e;try{const _0x196dd9=fs['openSync'](_0x3cfa72,'r+');return fs[_0x1611a7(0x11c)](_0x196dd9),![];}catch(_0x192c9b){if(BINARY_BUSY_ERROR_CODES[_0x1611a7(0x198)](_0x192c9b[_0x1611a7(0x1b1)]))return logger[_0x1611a7(0x12a)]('Binary\x20is\x20busy:\x20'+_0x3cfa72),!![];return logger[_0x1611a7(0x12a)](_0x1611a7(0x1d5)+_0x192c9b[_0x1611a7(0x162)]),![];}}static['runShellCommand'](_0x8b21dd,_0x2fdeac=''){const _0x372159=a84_0x9ee1e,_0xeb545a={'YAdzU':'version','JIqer':function(_0x424a71,_0x2a10d2){return _0x424a71(_0x2a10d2);},'RAkpZ':_0x372159(0x1af),'UYBGz':function(_0x386eea,_0x436947){return _0x386eea(_0x436947);},'zLsIB':function(_0x1a9d4f,_0x177409,_0x1a9ac2,_0x47f364){return _0x1a9d4f(_0x177409,_0x1a9ac2,_0x47f364);},'zqYKV':'error'};return new Promise((_0x1f080a,_0x595aaa)=>{const _0x245fcc=_0x372159,_0xe2d213={'ACUEm':_0xeb545a[_0x245fcc(0x1d4)],'nLONI':function(_0x20b256,_0x382585){const _0x130f8f=_0x245fcc;return _0xeb545a[_0x130f8f(0x192)](_0x20b256,_0x382585);},'yxMnH':_0xeb545a[_0x245fcc(0x1b2)],'fDTJG':function(_0xb7c80d,_0x57911e){const _0x4427ff=_0x245fcc;return _0xeb545a[_0x4427ff(0x1a0)](_0xb7c80d,_0x57911e);},'WfEKl':function(_0x574bfa,_0x177485){const _0x40f025=_0x245fcc;return _0xeb545a[_0x40f025(0x1a0)](_0x574bfa,_0x177485);}},_0x30836e={};_0x30836e[_0x245fcc(0x1ea)]=_0x2fdeac,_0x30836e[_0x245fcc(0x146)]=0x1388;const _0xf96565=_0xeb545a['zLsIB'](exec,_0x8b21dd,_0x30836e,(_0x5936bb,_0x2e4c41,_0x57681e)=>{const _0x569dd0=_0x245fcc;if(_0x5936bb){if(_0x8b21dd[_0x569dd0(0x198)](_0xe2d213[_0x569dd0(0x1f5)])&&(_0x2e4c41['trim']()||_0x57681e[_0x569dd0(0x19b)]())){const _0x58d23e=_0x2e4c41[_0x569dd0(0x19b)]()||_0x57681e[_0x569dd0(0x19b)]();logger[_0x569dd0(0x12a)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x58d23e+'\x22'),_0xe2d213[_0x569dd0(0x133)](_0x1f080a,_0x58d23e);}else _0xe2d213[_0x569dd0(0x133)](_0x1f080a,_0x57681e['trim']()||_0xe2d213[_0x569dd0(0x129)]);}else logger[_0x569dd0(0x12a)](_0x569dd0(0x1e4)+_0x2e4c41['trim']()+'\x22'),_0xe2d213[_0x569dd0(0x13e)](_0x1f080a,_0x2e4c41[_0x569dd0(0x19b)]());});_0xf96565['on'](_0xeb545a['zqYKV'],()=>{const _0x5a1a5c=_0x245fcc;_0xe2d213[_0x5a1a5c(0x1dc)](_0x1f080a,_0xe2d213[_0x5a1a5c(0x129)]);});});}static [a84_0x9ee1e(0x1e6)]=async(_0x5b1635,_0x3eb356)=>{const _0x541085=a84_0x9ee1e,_0x1eca8d={'yjUyu':function(_0x27ef0c,_0x2ecf7c){return _0x27ef0c(_0x2ecf7c);},'GJAiq':_0x541085(0x1e3),'Gooye':function(_0x1ea8fc,_0x5c930a){return _0x1ea8fc(_0x5c930a);},'FWWaL':_0x541085(0x145),'gSQCW':function(_0x3ab48e,_0x2cba24){return _0x3ab48e(_0x2cba24);},'HEFvd':_0x541085(0x13f)};PerformanceTester[_0x541085(0x1ee)](PerformanceEvents[_0x541085(0x12d)]),logger['debug'](_0x541085(0x154)+_0x5b1635);try{const _0x43dbe8=url['parse'](_0x5b1635),_0x47c571=path[_0x541085(0x196)](_0x3eb356,'downloaded_file_'+process[_0x541085(0x14e)]+_0x541085(0x1aa)),_0x51bc73=fs[_0x541085(0x1d2)](_0x47c571);return new Promise((_0x1104cd,_0x1316c3)=>{const _0x1ca7ad=_0x541085,_0x3c1e2c={'VKdLL':_0x1eca8d[_0x1ca7ad(0x1b8)],'fPzKY':function(_0x17ce3a,_0x1b23f4){const _0x22fdb2=_0x1ca7ad;return _0x1eca8d[_0x22fdb2(0x191)](_0x17ce3a,_0x1b23f4);},'HJfct':_0x1eca8d[_0x1ca7ad(0x16a)],'WAUHO':function(_0x4cce83,_0xadb931){const _0xde8b26=_0x1ca7ad;return _0x1eca8d[_0xde8b26(0x12f)](_0x4cce83,_0xadb931);},'YesMn':_0x1eca8d[_0x1ca7ad(0x1b0)]};https[_0x1ca7ad(0x1dd)](_0x43dbe8,function(_0x17311e){const _0x43a109=_0x1ca7ad,_0x10b231={'KwVHm':function(_0x6b2333,_0x1171aa){return _0x3c1e2c['WAUHO'](_0x6b2333,_0x1171aa);}},_0x4d9e12=null;_0x17311e[_0x43a109(0x1ec)](_0x51bc73),_0x17311e['on'](_0x3c1e2c['YesMn'],function(_0x400909){const _0x5d976e=_0x43a109;logger[_0x5d976e(0x13f)](util[_0x5d976e(0x1d6)](_0x3c1e2c[_0x5d976e(0x136)],_0x400909)),PerformanceTester[_0x5d976e(0x15b)](PerformanceEvents[_0x5d976e(0x12d)],![],util['format'](_0x400909)),_0x3c1e2c[_0x5d976e(0x1f1)](_0x1316c3,_0x400909);}),_0x51bc73['on'](_0x3c1e2c[_0x43a109(0x1bf)],function(_0x3b3c27){const _0x1ddf9b=_0x43a109;logger[_0x1ddf9b(0x13f)](util[_0x1ddf9b(0x1d6)](_0x3c1e2c[_0x1ddf9b(0x1be)],_0x3b3c27)),PerformanceTester[_0x1ddf9b(0x15b)](PerformanceEvents[_0x1ddf9b(0x12d)],![],util[_0x1ddf9b(0x1d6)](_0x3b3c27)),_0x3c1e2c[_0x1ddf9b(0x1f1)](_0x1316c3,_0x3b3c27);}),CLIUtils[_0x43a109(0x174)](_0x51bc73,_0x4d9e12,_0x47c571,_0x3eb356,_0x54c508=>{const _0x56acd6=_0x43a109;PerformanceTester[_0x56acd6(0x15b)](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x10b231[_0x56acd6(0x161)](_0x1104cd,_0x54c508);},_0x13e5d0=>{const _0x3b88c0=_0x43a109;PerformanceTester[_0x3b88c0(0x15b)](PerformanceEvents[_0x3b88c0(0x12d)],![],util[_0x3b88c0(0x1d6)](_0x13e5d0)),_0x3c1e2c[_0x3b88c0(0x1f1)](_0x1316c3,_0x13e5d0);});})['on'](_0x1eca8d[_0x1ca7ad(0x1b0)],function(_0x4eae97){const _0x536d18=_0x1ca7ad;logger[_0x536d18(0x13f)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x536d18(0x1d6)](_0x4eae97)),PerformanceTester[_0x536d18(0x15b)](PerformanceEvents[_0x536d18(0x12d)],![],util[_0x536d18(0x1d6)](_0x4eae97)),_0x1eca8d[_0x536d18(0x187)](_0x1316c3,_0x4eae97);});});}catch(_0x131572){PerformanceTester[_0x541085(0x15b)](PerformanceEvents[_0x541085(0x12d)],![],util[_0x541085(0x1d6)](_0x131572)),logger[_0x541085(0x12a)](_0x541085(0x14d)+util['format'](_0x131572));}};static[a84_0x9ee1e(0x174)](_0x2794e3,_0x346599,_0x41d1b0,_0x5d333e,_0x7d6236,_0x3ebcbd){const _0x560d69=a84_0x9ee1e,_0x127bda={'EXTYJ':function(_0x5c22ae,_0x2bd2b2){return _0x5c22ae(_0x2bd2b2);},'VeSLz':function(_0x2eb98b,_0x3c7915){return _0x2eb98b!==_0x3c7915;},'xpzqb':_0x560d69(0x138),'jxJvb':'0755','Yftxu':function(_0x5b6f87,_0xd3c060){return _0x5b6f87(_0xd3c060);},'pdoXA':_0x560d69(0x15b),'wytEO':_0x560d69(0x124),'Lpnpq':function(_0xd4307,_0xfd9279){return _0xd4307(_0xfd9279);},'vfsCc':_0x560d69(0x13f),'BeqfZ':function(_0xf76fd2,_0x31914e){return _0xf76fd2(_0x31914e);},'xKTnD':_0x560d69(0x1c0)};_0x2794e3['on'](_0x127bda[_0x560d69(0x16c)],function(){const _0x16d56d=_0x560d69,_0x220e99={'WtTDo':function(_0x4c9e64,_0x5cf5c4){const _0x16e763=a84_0x3409;return _0x127bda[_0x16e763(0x172)](_0x4c9e64,_0x5cf5c4);},'QtMTV':function(_0x1b2e49,_0x93e521){return _0x127bda['VeSLz'](_0x1b2e49,_0x93e521);},'SzdKR':_0x127bda[_0x16d56d(0x17b)],'DJysb':_0x127bda[_0x16d56d(0x1e2)],'hfKSi':function(_0x45a79c,_0x5cbf3d){const _0x9bbdb2=_0x16d56d;return _0x127bda[_0x9bbdb2(0x185)](_0x45a79c,_0x5cbf3d);},'SCahG':_0x127bda[_0x16d56d(0x1e1)],'Qhxji':_0x127bda[_0x16d56d(0x16c)],'RYAxU':function(_0x402d1e,_0x371a56){const _0x47d273=_0x16d56d;return _0x127bda[_0x47d273(0x119)](_0x402d1e,_0x371a56);},'mKGbB':_0x127bda['vfsCc'],'JhOYT':function(_0x48e29a,_0x4495b1){const _0xde97a0=_0x16d56d;return _0x127bda[_0xde97a0(0x11f)](_0x48e29a,_0x4495b1);},'zsFlg':_0x127bda[_0x16d56d(0x1f2)]},_0x57476e={};_0x57476e[_0x16d56d(0x1c6)]=!![],yauzl[_0x16d56d(0x143)](_0x41d1b0,_0x57476e,function(_0x48f9ea,_0x8a1ba){const _0x5a74ef=_0x16d56d,_0x5c6470={'UZgVv':function(_0x39cb32,_0xeecf35){return _0x220e99['hfKSi'](_0x39cb32,_0xeecf35);},'PdpQb':_0x220e99['SCahG'],'cFXrS':function(_0x3946a5,_0x4b4a28){return _0x220e99['hfKSi'](_0x3946a5,_0x4b4a28);},'EcKeS':_0x220e99[_0x5a74ef(0x169)],'vyrbz':function(_0x671d17,_0x4f96de){const _0x5dd765=_0x5a74ef;return _0x220e99[_0x5dd765(0x12b)](_0x671d17,_0x4f96de);},'NwKbw':function(_0x260b42,_0x3327d4){const _0x26014f=_0x5a74ef;return _0x220e99[_0x26014f(0x147)](_0x260b42,_0x3327d4);},'DsUyp':_0x220e99[_0x5a74ef(0x1cc)]};if(_0x48f9ea){_0x220e99[_0x5a74ef(0x118)](_0x3ebcbd,_0x48f9ea);return;}_0x8a1ba['readEntry'](),_0x8a1ba['on'](_0x220e99['zsFlg'],_0x4d9f06=>{const _0x23ca87=_0x5a74ef,_0x70069c={'Ppaau':function(_0x390601,_0x389138){return _0x5c6470['cFXrS'](_0x390601,_0x389138);},'vscyw':_0x5c6470[_0x23ca87(0x1f8)]};if(/\/$/['test'](_0x4d9f06[_0x23ca87(0x14c)])){_0x8a1ba[_0x23ca87(0x1a4)]();return;}!_0x346599&&(_0x346599=_0x4d9f06['fileName']);if(_0x5c6470['vyrbz'](_0x4d9f06[_0x23ca87(0x14c)],_0x346599))_0x8a1ba['readEntry']();else{const _0xca6a38=_0x4d9f06['fileName'],_0x1f0c1f=path[_0x23ca87(0x196)](_0x5d333e,_0xca6a38+_0x23ca87(0x1bc)+process[_0x23ca87(0x14e)]);let _0x5cc67e;try{_0x5cc67e=fs[_0x23ca87(0x1d2)](_0x1f0c1f);}catch(_0x1ecc75){if(BINARY_BUSY_ERROR_CODES[_0x23ca87(0x198)](_0x1ecc75[_0x23ca87(0x1b1)])){const _0x5f0978=path[_0x23ca87(0x196)](_0x5d333e,_0xca6a38);if(fs[_0x23ca87(0x171)](_0x5f0978)){logger['warn'](_0x23ca87(0x144)+_0xca6a38),fs[_0x23ca87(0x157)](_0x41d1b0,_0x235a2e=>{const _0x519cb5=_0x23ca87;_0x235a2e&&logger[_0x519cb5(0x1cf)](_0x519cb5(0x166)+_0x41d1b0);}),_0x5c6470[_0x23ca87(0x18c)](_0x7d6236,_0x5f0978);return;}logger['warn'](_0x23ca87(0x131)+_0xca6a38);}_0x5c6470[_0x23ca87(0x1f0)](_0x3ebcbd,_0x1ecc75);return;}_0x5cc67e['on'](_0x5c6470[_0x23ca87(0x189)],_0x2a4e54=>{const _0x3bb7dc=_0x23ca87;if(BINARY_BUSY_ERROR_CODES['includes'](_0x2a4e54['code'])){const _0x2a80ac=path[_0x3bb7dc(0x196)](_0x5d333e,_0xca6a38);_0x5cc67e[_0x3bb7dc(0x124)](),fs[_0x3bb7dc(0x171)](_0x2a80ac)?(logger['warn']('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x2a4e54[_0x3bb7dc(0x162)]),_0x8a1ba['close'](),fs[_0x3bb7dc(0x157)](_0x41d1b0,_0x17d406=>{_0x17d406&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x41d1b0);}),_0x70069c['Ppaau'](_0x7d6236,_0x2a80ac)):(logger[_0x3bb7dc(0x1cf)](_0x3bb7dc(0x1e9)+_0x2a4e54[_0x3bb7dc(0x162)]),fs[_0x3bb7dc(0x157)](_0x1f0c1f,()=>{}),_0x70069c['Ppaau'](_0x3ebcbd,_0x2a4e54));}else fs[_0x3bb7dc(0x157)](_0x1f0c1f,()=>{}),_0x70069c[_0x3bb7dc(0x164)](_0x3ebcbd,_0x2a4e54);}),_0x8a1ba['openReadStream'](_0x4d9f06,function(_0x1db8ac,_0x5dc3aa){const _0x22fb9e=_0x23ca87;if(_0x1db8ac){fs[_0x22fb9e(0x157)](_0x1f0c1f,()=>{}),_0x5c6470['UZgVv'](_0x3ebcbd,_0x1db8ac);return;}_0x5dc3aa['on'](_0x5c6470['PdpQb'],function(){const _0x4f5726=_0x22fb9e;_0x5cc67e[_0x4f5726(0x15b)](),_0x5cc67e['on'](_0x70069c[_0x4f5726(0x1e0)],function(){const _0x3b2aff=_0x4f5726;_0x8a1ba[_0x3b2aff(0x1a4)]();});}),_0x5dc3aa[_0x22fb9e(0x1ec)](_0x5cc67e);});}}),_0x8a1ba['on'](_0x220e99['mKGbB'],_0xa2ef71=>{const _0x36022b=_0x5a74ef;_0x220e99[_0x36022b(0x137)](_0x3ebcbd,_0xa2ef71);}),_0x8a1ba[_0x5a74ef(0x160)](_0x220e99['SCahG'],()=>{const _0xc81bc2=_0x5a74ef,_0x4b91bb={'TTRSe':function(_0x5dd6b8,_0x419425){return _0x220e99['QtMTV'](_0x5dd6b8,_0x419425);},'SOwrT':_0x220e99['SzdKR'],'TFNUp':function(_0x53865c,_0x1fb436){const _0x1f7a4d=a84_0x3409;return _0x220e99[_0x1f7a4d(0x137)](_0x53865c,_0x1fb436);},'BjWCp':function(_0x500390,_0x55b077){const _0x21edcf=a84_0x3409;return _0x220e99[_0x21edcf(0x137)](_0x500390,_0x55b077);},'pnDSZ':function(_0x593e83,_0x121eab){const _0x342371=a84_0x3409;return _0x220e99[_0x342371(0x137)](_0x593e83,_0x121eab);}};fs['unlink'](_0x41d1b0,_0x4426c1=>{const _0x1a4fc7=a84_0x3409;_0x4426c1&&logger[_0x1a4fc7(0x1cf)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x41d1b0);});const _0x51cb4a=path[_0xc81bc2(0x196)](_0x5d333e,_0x346599+_0xc81bc2(0x1bc)+process['pid']),_0x4cfb95=path[_0xc81bc2(0x196)](_0x5d333e,_0x346599);fs[_0xc81bc2(0x1a7)](_0x51cb4a,_0x220e99[_0xc81bc2(0x15d)],function(_0xb8f14b){const _0x3e49bf=_0xc81bc2;if(_0xb8f14b){_0x8a1ba[_0x3e49bf(0x124)](),fs[_0x3e49bf(0x157)](_0x51cb4a,()=>{}),_0x5c6470[_0x3e49bf(0x1f4)](_0x3ebcbd,_0xb8f14b);return;}fs[_0x3e49bf(0x1ac)](_0x51cb4a,_0x4cfb95,function(_0x514e09){const _0x51faa7=_0x3e49bf;if(_0x514e09){if(_0x4b91bb['TTRSe'](_0x514e09['code'],_0x4b91bb[_0x51faa7(0x1ab)])){_0x8a1ba['close'](),fs[_0x51faa7(0x157)](_0x51cb4a,()=>{}),_0x4b91bb[_0x51faa7(0x1ba)](_0x3ebcbd,_0x514e09);return;}logger[_0x51faa7(0x1cf)](_0x51faa7(0x1c2)+_0x514e09[_0x51faa7(0x162)]);try{fs[_0x51faa7(0x17e)](_0x51cb4a,_0x4cfb95);}catch(_0x8d3712){_0x8a1ba[_0x51faa7(0x124)](),fs[_0x51faa7(0x157)](_0x51cb4a,()=>{}),_0x4b91bb[_0x51faa7(0x1c1)](_0x3ebcbd,_0x8d3712);return;}fs[_0x51faa7(0x157)](_0x51cb4a,_0x3ee80e=>{const _0x47d2a5=_0x51faa7;_0x3ee80e&&logger['warn'](_0x47d2a5(0x139)+_0x3ee80e[_0x47d2a5(0x162)]);});}_0x8a1ba['close'](),_0x4b91bb['pnDSZ'](_0x7d6236,_0x4cfb95);});});});});});}static[a84_0x9ee1e(0x163)](){const _0xb34c62=a84_0x9ee1e;if(process[_0xb34c62(0x132)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL'])return JSON[_0xb34c62(0x173)](process[_0xb34c62(0x132)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this[_0xb34c62(0x18d)];}static[a84_0x9ee1e(0x1eb)](){const _0x1b48b3=a84_0x9ee1e;if(process[_0x1b48b3(0x132)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x1b48b3(0x173)](process[_0x1b48b3(0x132)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0x1b48b3(0x13d)];}static['setFrameworkDetail'](_0x220015,_0x243182){const _0x45e902=a84_0x9ee1e,_0x2a5115={'tUHUt':_0x45e902(0x1a2),'HvZvI':function(_0x5211c4,_0x4ea00b){return _0x5211c4(_0x4ea00b);},'BUwcq':function(_0x38f001,_0x2c5c63){return _0x38f001||_0x2c5c63;},'pDviy':function(_0x4d3b98,_0x5f40a0){return _0x4d3b98(_0x5f40a0);}},_0x3c505c=_0x2a5115['tUHUt'][_0x45e902(0x15f)]('|');let _0x37a859=0x0;while(!![]){switch(_0x3c505c[_0x37a859++]){case'0':this[_0x45e902(0x18d)]={'name':_0x220015,'version':{[_0x220015]:_0x2a5115[_0x45e902(0x12e)](getFrameworkVersion,_0x220015)}};continue;case'1':process[_0x45e902(0x132)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON[_0x45e902(0x1ef)](this[_0x45e902(0x13d)]);continue;case'2':_0x2a5115[_0x45e902(0x125)](!_0x220015,!_0x243182)&&logger[_0x45e902(0x12a)]('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x220015+_0x45e902(0x1c7)+_0x243182);continue;case'3':process[_0x45e902(0x132)][_0x45e902(0x195)]=JSON[_0x45e902(0x1ef)](this[_0x45e902(0x18d)]);continue;case'4':this['automationFrameworkDetail']={'name':_0x243182,'version':_0x2a5115[_0x45e902(0x1ca)](getFrameworkVersion,_0x243182)};continue;}break;}}static[a84_0x9ee1e(0x127)](_0x12b3c2,_0x5b124b){return _0x12b3c2+':'+_0x5b124b;}static[a84_0x9ee1e(0x120)](){const _0x4a1610=a84_0x9ee1e;return process[_0x4a1610(0x14e)]+':'+threadId;}static[a84_0x9ee1e(0x1a6)](_0x247b56){const _0x305881=a84_0x9ee1e;if(_0x247b56['testContextOptions']&&_0x247b56[_0x305881(0x1da)][_0x305881(0x1d0)])return!![];return![];}static['shouldSkipSessionStatus'](_0x214867){const _0x323ad6=a84_0x9ee1e;if(_0x214867[_0x323ad6(0x1da)]&&_0x214867[_0x323ad6(0x1da)]['skipSessionStatus'])return!![];return![];}static['matchHookRegex'](_0x5cec9d){const _0x49d60d=a84_0x9ee1e,_0x5d742d=new RegExp(TestFrameworkConstants[_0x49d60d(0x134)]);return _0x5d742d['test'](_0x5cec9d);}static[a84_0x9ee1e(0x18a)](_0x21f6d2,_0x34f8b4){const _0x15ff4a=a84_0x9ee1e,_0x54f6a6={};_0x54f6a6[_0x15ff4a(0x13c)]=function(_0x1acc44,_0x381a0f){return _0x1acc44!==_0x381a0f;},_0x54f6a6[_0x15ff4a(0x186)]=function(_0x234adb,_0x3fe134){return _0x234adb===_0x3fe134;},_0x54f6a6[_0x15ff4a(0x188)]='object';const _0x32ad18=_0x54f6a6;for(const [_0x3bc40d,_0x449de1]of Object[_0x15ff4a(0x15a)](_0x34f8b4)){if(_0x32ad18['gpwWe'](_0x449de1,null)&&_0x32ad18[_0x15ff4a(0x186)](typeof _0x449de1,_0x32ad18[_0x15ff4a(0x188)])&&!Array['isArray'](_0x449de1))_0x21f6d2[_0x3bc40d]=this[_0x15ff4a(0x18a)](_0x21f6d2[_0x3bc40d]||{},_0x449de1);else Array[_0x15ff4a(0x181)](_0x449de1)?_0x21f6d2[_0x3bc40d]=(_0x21f6d2[_0x3bc40d]||[])[_0x15ff4a(0x17d)](_0x449de1):_0x21f6d2[_0x3bc40d]=_0x449de1;}return _0x21f6d2;}}module[a84_0x9ee1e(0x19c)]=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_0x2b64fb=a85_0x4ab5;(function(_0x2583b7,_0x50ad42){const _0x47cf7e=a85_0x4ab5,_0x43fdd1=_0x2583b7();while(!![]){try{const _0x5d91f6=parseInt(_0x47cf7e(0x127))/0x1*(-parseInt(_0x47cf7e(0x12b))/0x2)+-parseInt(_0x47cf7e(0x13c))/0x3*(-parseInt(_0x47cf7e(0x137))/0x4)+parseInt(_0x47cf7e(0x11c))/0x5*(parseInt(_0x47cf7e(0x135))/0x6)+-parseInt(_0x47cf7e(0x10b))/0x7*(-parseInt(_0x47cf7e(0x120))/0x8)+-parseInt(_0x47cf7e(0x17f))/0x9*(-parseInt(_0x47cf7e(0x115))/0xa)+-parseInt(_0x47cf7e(0x110))/0xb+parseInt(_0x47cf7e(0x139))/0xc*(-parseInt(_0x47cf7e(0x17e))/0xd);if(_0x5d91f6===_0x50ad42)break;else _0x43fdd1['push'](_0x43fdd1['shift']());}catch(_0x47d5da){_0x43fdd1['push'](_0x43fdd1['shift']());}}}(a85_0x4077,0xf2c12));const fs=require('fs'),os=require('os'),path=require(a85_0x2b64fb(0x133)),helper=require('../../helpers/helper'),AutomationFramework=require(a85_0x2b64fb(0x111)),TestFrameworkConstants=require(a85_0x2b64fb(0x11a)),PlaywrightDriverModule=require(a85_0x2b64fb(0x10f)),TestInfo=require(a85_0x2b64fb(0x171)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a85_0x2b64fb(0x14c)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function a85_0x4077(){const _0x4f6b66=['CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','tmpdir','getBuildTagsFilePath','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','KEY_CUSTOM_TAGS','keys','mtimeMs','sBivS','message','RGIxo',':jest-','join','null','get','CustomTagManager','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','MBMpT','vAUgO','getTestDetails','BUILD_TAG_FILE_PREFIX','./cliUtils','promises','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','pid','mergeIntoTags','\x20->\x20values=','AEnnT','Oshqm','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','FoAzU','MzPiC','getAllData','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','retry',',\x20key=','jEjUl','__workerDetails','mergeValues','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','aggregateBuildLevelTagsFromTmp','Istjg','JYQHN','length','setTestDetails','writeFile','./browserstackCLI','getTestUUID','buildHashedId','oUgoL','./TestInfo','from','resolveInstance','field_type','setCustomTags','./state/hookState','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','__jestCurrentTestIdentifier','readFileSync','getState','toLowerCase','TEST','kjAjt','884rbCorV','1683equCSz','unlinkSync','./state/testFrameworkState','ms)\x20','testInfo','getTestIdentifierFromTestInfo','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','values','multi_dropdown','xOWWi','bBeia','hVaPH','testhubConfig','eoOuB','debug','includes','115031nBcNhg','getBuildLevelTags','trim','hhgrX','./modules/playwrightDriverModule','11433103KVLJeF','./framework/automationFramework','readdirSync','startsWith','name','60670VOCyLY','goAGL','POST','parseCommaSeparatedValues','jest','./framework/constants/testFrameworkConstants','env','1655veEFmb','isArray','mergeBuildLevelTags','getTestLevelTags','464nuzelb','getInstance','stringify','nKzew','.json','string','currentTest','1BhAAoh','MODULE_NAME','OnIAs','filter','3967706Fmnafc','HLCmh','LLCdF','dqnda','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','clearTags','RhkwA','yLfuu','path','getBuildTagsRunId','5718NCQjHp','entries','13944Eiqlnw','testLevelTags','22068OBStVB','buildLevelTags','hCsah','1497rEYEDA','BQeOJ'];a85_0x4077=function(){return _0x4f6b66;};return a85_0x4077();}function getBuildTagsRunId(){const _0x12fb99=a85_0x2b64fb,_0x320809={};_0x320809[_0x12fb99(0x14e)]=function(_0x2f6fba,_0x44ec12){return _0x2f6fba===_0x44ec12;},_0x320809['CcjXz']=_0x12fb99(0x14a);const _0x345e72=_0x320809,_0x2ca65f=process[_0x12fb99(0x11b)]['BROWSERSTACK_TESTHUB_UUID'];if(!_0x2ca65f||_0x345e72[_0x12fb99(0x14e)](_0x2ca65f,_0x345e72['CcjXz']))return null;return _0x2ca65f;}function getBuildTagsFilePath(_0x37f2a8){const _0x25afe1=a85_0x2b64fb;return path[_0x25afe1(0x149)](os[_0x25afe1(0x13f)](),''+BUILD_TAG_FILE_PREFIX+_0x37f2a8+'_'+process[_0x25afe1(0x155)]+_0x25afe1(0x124));}function a85_0x4ab5(_0x3b44b6,_0x2b0c65){const _0x407768=a85_0x4077();return a85_0x4ab5=function(_0x4ab5dd,_0x4f4dff){_0x4ab5dd=_0x4ab5dd-0xfd;let _0x387232=_0x407768[_0x4ab5dd];return _0x387232;},a85_0x4ab5(_0x3b44b6,_0x2b0c65);}class CustomTagManager{static ['buildLevelTags']={};static [a85_0x2b64fb(0x138)]={};static['mergeValues'](_0x27bdb6,_0x4d0c40){const _0x25ff82=a85_0x2b64fb;return Array[_0x25ff82(0x172)](new Set([..._0x27bdb6||[],..._0x4d0c40||[]]));}static['mergeIntoTags'](_0x261add,_0x51f2a0,_0x31e181){const _0x3b1df5=a85_0x2b64fb,_0xe6c291={};_0xe6c291[_0x3b1df5(0x168)]=_0x3b1df5(0x103);const _0x420e5a=_0xe6c291;if(!_0x261add[_0x51f2a0]){const _0x3d4d27={};_0x3d4d27[_0x3b1df5(0x174)]=_0x420e5a[_0x3b1df5(0x168)],_0x3d4d27['values']=[..._0x31e181||[]],_0x261add[_0x51f2a0]=_0x3d4d27;}else!_0x261add[_0x51f2a0][_0x3b1df5(0x174)]&&(_0x261add[_0x51f2a0][_0x3b1df5(0x174)]=_0x420e5a['Istjg']),!Array[_0x3b1df5(0x11d)](_0x261add[_0x51f2a0][_0x3b1df5(0x102)])&&(_0x261add[_0x51f2a0]['values']=[]),_0x261add[_0x51f2a0][_0x3b1df5(0x102)]=CustomTagManager[_0x3b1df5(0x165)](_0x261add[_0x51f2a0][_0x3b1df5(0x102)],_0x31e181);return _0x261add;}static async[a85_0x2b64fb(0x175)](_0x303f33,_0x52b4e4,_0x4728ac=![]){const _0x25ec94=a85_0x2b64fb,_0x5959e1={'kjAjt':function(_0x58216b,_0x3de91e){return _0x58216b!==_0x3de91e;},'FoAzU':_0x25ec94(0x125),'BQeOJ':_0x25ec94(0x15a),'RhkwA':_0x25ec94(0x160),'JYQHN':function(_0x2ab584,_0x1708e9){return _0x2ab584===_0x1708e9;},'xOWWi':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','vAUgO':function(_0x146c90,_0x289b48){return _0x146c90===_0x289b48;},'GnFox':_0x25ec94(0x154),'AEnnT':function(_0x5e6a52,_0x2018cb){return _0x5e6a52(_0x2018cb);},'RGIxo':_0x25ec94(0x16d),'HLCmh':function(_0x3309d5){return _0x3309d5();},'sBivS':_0x25ec94(0x103),'YJwmP':function(_0x56a21f,_0x1f6dec){return _0x56a21f>_0x1f6dec;},'bloHD':_0x25ec94(0x15b),'bBeia':_0x25ec94(0x148),'nKzew':_0x25ec94(0x152),'mjtQU':_0x25ec94(0x119),'hCsah':_0x25ec94(0x12f),'OnIAs':function(_0x4dea6b,_0x147aa3){return _0x4dea6b(_0x147aa3);},'yLfuu':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','LLCdF':_0x25ec94(0xfd),'oUgoL':_0x25ec94(0x176),'MzPiC':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x5959e1[_0x25ec94(0x17d)](typeof _0x303f33,_0x5959e1[_0x25ec94(0x15c)])){logger[_0x25ec94(0x109)](_0x5959e1[_0x25ec94(0x13d)]);return;}if(_0x5959e1[_0x25ec94(0x17d)](typeof _0x52b4e4,_0x5959e1[_0x25ec94(0x15c)])){logger[_0x25ec94(0x109)](_0x5959e1[_0x25ec94(0x131)]);return;}if(_0x5959e1[_0x25ec94(0x169)](_0x303f33['trim'](),'')){logger[_0x25ec94(0x109)](_0x5959e1[_0x25ec94(0x104)]);return;}if(_0x5959e1[_0x25ec94(0x14f)](_0x52b4e4[_0x25ec94(0x10d)](),'')){logger[_0x25ec94(0x109)](_0x5959e1['GnFox']);return;}const _0x5446d9=helper[_0x25ec94(0x118)](_0x52b4e4);if(_0x4728ac){const _0x31a7f4=_0x5959e1[_0x25ec94(0x158)](require,_0x5959e1[_0x25ec94(0x147)]),_0x42a7c3=_0x31a7f4[_0x25ec94(0x121)](),_0x358d74=_0x42a7c3&&_0x42a7c3['modules'][TestHubModule[_0x25ec94(0x128)]];if(_0x358d74){const _0x260ff7=_0x358d74?.[_0x25ec94(0x107)]?.['toObject']()?.[_0x25ec94(0x16f)];TestInfo[_0x25ec94(0x16e)](_0x260ff7);const _0x381581=TestInfo[_0x25ec94(0x150)](_0x260ff7),_0x207a53=_0x381581[TestFrameworkConstants[_0x25ec94(0x142)]]||{};CustomTagManager[_0x25ec94(0x156)](_0x207a53,_0x303f33,_0x5446d9),_0x381581[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x207a53,TestInfo[_0x25ec94(0x16b)](_0x260ff7,_0x381581);!this[_0x25ec94(0x13a)][_0x260ff7]&&(this[_0x25ec94(0x13a)][_0x260ff7]={});this[_0x25ec94(0x13a)][_0x260ff7][_0x303f33]=CustomTagManager[_0x25ec94(0x165)](this[_0x25ec94(0x13a)][_0x260ff7][_0x303f33],_0x5446d9);try{const _0x50d32d=_0x5959e1[_0x25ec94(0x12c)](getBuildTagsRunId);if(_0x50d32d){const _0x12f59e={};for(const [_0x3c8ff7,_0xef4f8f]of Object[_0x25ec94(0x136)](this[_0x25ec94(0x13a)][_0x260ff7]||{})){_0x12f59e[_0x3c8ff7]={'field_type':_0x5959e1[_0x25ec94(0x145)],'values':Array['isArray'](_0xef4f8f)?[..._0xef4f8f]:[]};}_0x5959e1['YJwmP'](Object[_0x25ec94(0x143)](_0x12f59e)[_0x25ec94(0x16a)],0x0)&&await fs[_0x25ec94(0x153)][_0x25ec94(0x16c)](_0x5959e1[_0x25ec94(0x158)](getBuildTagsFilePath,_0x50d32d),JSON['stringify'](_0x12f59e));}else logger['debug'](_0x5959e1['bloHD']);}catch(_0x55d540){logger[_0x25ec94(0x109)](_0x25ec94(0x101)+(_0x55d540&&_0x55d540['message']?_0x55d540[_0x25ec94(0x146)]:_0x55d540));}}}else{let _0x38d5d4;const _0x34b4d2=global[_0x25ec94(0x178)];let _0xa64843=![];if(_0x34b4d2&&_0x34b4d2[_0x25ec94(0x10a)](_0x5959e1['bBeia']))_0xa64843=!![],_0x38d5d4=_0x34b4d2;else try{const _0x5b2f5b=_0x5959e1[_0x25ec94(0x158)](require,_0x5959e1[_0x25ec94(0x123)]),_0x16c607=_0x5959e1['AEnnT'](require,_0x5959e1['RGIxo']);if(_0x16c607[_0x25ec94(0x121)]()['isRunning']()){const _0x3f7a52=_0x5b2f5b['getTestFrameworkDetail']();if(_0x5959e1['vAUgO'](_0x3f7a52?.[_0x25ec94(0x114)]?.[_0x25ec94(0x17b)](),_0x5959e1['mjtQU'])){const _0x3802d3=AutomationFramework['getTrackedInstance']();_0x38d5d4=AutomationFramework[_0x25ec94(0x17a)](_0x3802d3,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x38d5d4&&_0x38d5d4[_0x25ec94(0x10a)](_0x5959e1[_0x25ec94(0x105)])&&(_0xa64843=!![]);}}}catch(_0x3053ee){logger['debug']('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x3053ee);}if(_0xa64843){if(!_0x38d5d4)throw new Error(_0x5959e1[_0x25ec94(0x13b)]);const _0x449c46=_0x5959e1[_0x25ec94(0x129)](require,_0x5959e1[_0x25ec94(0x147)]),_0xbbd96b=_0x449c46[_0x25ec94(0x121)]()['getTestFramework']();if(!_0xbbd96b)throw new Error(_0x5959e1[_0x25ec94(0x132)]);const _0x647dbd=_0x5959e1[_0x25ec94(0x158)](require,_0x5959e1[_0x25ec94(0x12d)]),_0x7031fe=_0x5959e1['AEnnT'](require,_0x5959e1[_0x25ec94(0x170)]),_0x10f408=_0xbbd96b[_0x25ec94(0x173)](_0x647dbd[_0x25ec94(0x17c)],_0x7031fe[_0x25ec94(0x117)]);if(!_0x10f408)throw new Error(_0x5959e1[_0x25ec94(0x15d)]);const _0x185b6f=_0x10f408[_0x25ec94(0x15e)]()[_0x25ec94(0x14b)](_0x38d5d4)||{},_0x508cb0=_0x185b6f[TestFrameworkConstants[_0x25ec94(0x142)]]||{};logger[_0x25ec94(0x109)]('[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier='+_0x38d5d4+_0x25ec94(0x162)+_0x303f33+',\x20values='+JSON[_0x25ec94(0x122)](_0x5446d9)+',\x20existingTags='+JSON[_0x25ec94(0x122)](_0x508cb0)),CustomTagManager['mergeIntoTags'](_0x508cb0,_0x303f33,_0x5446d9),logger[_0x25ec94(0x109)](_0x25ec94(0x141)+_0x303f33+_0x25ec94(0x157)+JSON[_0x25ec94(0x122)](_0x508cb0[_0x303f33]['values']));const _0x544b43={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x508cb0},_0x33c1e9={};_0x33c1e9[_0x38d5d4]=_0x544b43,_0x10f408['addMultipleEntries'](_0x33c1e9),logger[_0x25ec94(0x109)](_0x25ec94(0x14d)+_0x38d5d4+',\x20finalTags='+JSON['stringify'](_0x508cb0)),!this[_0x25ec94(0x138)][_0x38d5d4]&&(this[_0x25ec94(0x138)][_0x38d5d4]={}),this[_0x25ec94(0x138)][_0x38d5d4][_0x303f33]=CustomTagManager['mergeValues'](this[_0x25ec94(0x138)][_0x38d5d4][_0x303f33],_0x5446d9);}else{const _0x2d0c75=global[_0x25ec94(0x164)]?.[_0x25ec94(0x126)]?.[_0x25ec94(0xff)];if(!_0x2d0c75){const _0x32a7e9=AutomationFramework['getTrackedInstance']();_0x38d5d4=AutomationFramework[_0x25ec94(0x17a)](_0x32a7e9,PlaywrightDriverModule['KEY_TEST_ID'],'');}else _0x38d5d4=TestInfo[_0x25ec94(0x100)](_0x2d0c75,_0x2d0c75[_0x25ec94(0x161)]);const _0x402fa4=TestInfo[_0x25ec94(0x150)](_0x38d5d4),_0x11e576=_0x402fa4[TestFrameworkConstants[_0x25ec94(0x142)]]||{};CustomTagManager[_0x25ec94(0x156)](_0x11e576,_0x303f33,_0x5446d9),_0x402fa4[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x11e576,TestInfo[_0x25ec94(0x16b)](_0x38d5d4,_0x402fa4),!this[_0x25ec94(0x138)][_0x38d5d4]&&(this['testLevelTags'][_0x38d5d4]={}),this[_0x25ec94(0x138)][_0x38d5d4][_0x303f33]=CustomTagManager[_0x25ec94(0x165)](this[_0x25ec94(0x138)][_0x38d5d4][_0x303f33],_0x5446d9);}}}static[a85_0x2b64fb(0x10c)](){const _0x4b8d9e=a85_0x2b64fb,_0x125e6e={...this[_0x4b8d9e(0x13a)]};return _0x125e6e;}static[a85_0x2b64fb(0x11f)](){const _0xd12e02={...this['testLevelTags']};return _0xd12e02;}static[a85_0x2b64fb(0x130)](){const _0x382723=a85_0x2b64fb;this[_0x382723(0x13a)]={},this[_0x382723(0x138)]={};}static[a85_0x2b64fb(0x11e)](_0x160914,_0x3ac66e){const _0x39e3d5=a85_0x2b64fb,_0x30bd9f={};_0x30bd9f[_0x39e3d5(0x159)]=function(_0x170dbd,_0xc27923){return _0x170dbd||_0xc27923;};const _0x35134d=_0x30bd9f;if(!_0x160914)return;!this[_0x39e3d5(0x13a)][_0x160914]&&(this[_0x39e3d5(0x13a)][_0x160914]={});for(const [_0x58806c,_0x3a94fd]of Object[_0x39e3d5(0x136)](_0x35134d[_0x39e3d5(0x159)](_0x3ac66e,{}))){if(!_0x3a94fd||!Array[_0x39e3d5(0x11d)](_0x3a94fd[_0x39e3d5(0x102)]))continue;this[_0x39e3d5(0x13a)][_0x160914][_0x58806c]=CustomTagManager[_0x39e3d5(0x165)](this[_0x39e3d5(0x13a)][_0x160914][_0x58806c],_0x3a94fd[_0x39e3d5(0x102)]);}}static[a85_0x2b64fb(0x167)](_0x37856b,_0x55a7de){const _0x1ad9a8=a85_0x2b64fb,_0x21dd9c={};_0x21dd9c[_0x1ad9a8(0x108)]=_0x1ad9a8(0x166),_0x21dd9c[_0x1ad9a8(0x116)]=function(_0x133446,_0x4e7a72){return _0x133446*_0x4e7a72;},_0x21dd9c[_0x1ad9a8(0x10e)]=function(_0x2fca08,_0x160e60){return _0x2fca08*_0x160e60;},_0x21dd9c[_0x1ad9a8(0x163)]=function(_0x1a68db,_0x3de099){return _0x1a68db>_0x3de099;},_0x21dd9c[_0x1ad9a8(0x106)]=function(_0x12b819,_0x2f7f0a){return _0x12b819-_0x2f7f0a;},_0x21dd9c[_0x1ad9a8(0x12e)]='utf8';const _0x58b0a5=_0x21dd9c;if(!_0x37856b)return logger[_0x1ad9a8(0x109)](_0x58b0a5['eoOuB']),0x0;let _0x301988;try{_0x301988=os[_0x1ad9a8(0x13f)]();}catch(_0x8d0fb){return logger[_0x1ad9a8(0x109)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20'+_0x8d0fb),0x0;}let _0x1f3eab;try{_0x1f3eab=fs[_0x1ad9a8(0x112)](_0x301988);}catch(_0x4d554f){return logger[_0x1ad9a8(0x109)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20'+_0x4d554f),0x0;}const _0x4ff117=''+BUILD_TAG_FILE_PREFIX+_0x37856b+'_',_0x52da11=_0x1f3eab[_0x1ad9a8(0x12a)](_0x1de345=>_0x1de345[_0x1ad9a8(0x113)](_0x4ff117)&&_0x1de345['endsWith'](_0x1ad9a8(0x124))),_0x717c65=_0x58b0a5[_0x1ad9a8(0x116)](_0x58b0a5['goAGL'](_0x58b0a5[_0x1ad9a8(0x10e)](0x2,0x3c),0x3c),0x3e8);let _0x1f03b2=0x0;for(const _0x1f5486 of _0x52da11){const _0x2baf31=path['join'](_0x301988,_0x1f5486);try{const _0x3fc601=fs['statSync'](_0x2baf31);if(_0x58b0a5['jEjUl'](_0x58b0a5[_0x1ad9a8(0x106)](Date['now'](),_0x3fc601[_0x1ad9a8(0x144)]),_0x717c65)){logger[_0x1ad9a8(0x109)](_0x1ad9a8(0x177)+_0x717c65+_0x1ad9a8(0xfe)+_0x1f5486);try{fs[_0x1ad9a8(0x180)](_0x2baf31);}catch(_0x2b9505){logger[_0x1ad9a8(0x109)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20'+_0x1f5486+':\x20'+(_0x2b9505&&_0x2b9505[_0x1ad9a8(0x146)]?_0x2b9505[_0x1ad9a8(0x146)]:_0x2b9505));}continue;}const _0x2e45b0=fs[_0x1ad9a8(0x179)](_0x2baf31,_0x58b0a5[_0x1ad9a8(0x12e)]),_0x2ea00d=JSON['parse'](_0x2e45b0);this[_0x1ad9a8(0x11e)](_0x55a7de,_0x2ea00d),_0x1f03b2+=0x1;}catch(_0x5425f8){logger[_0x1ad9a8(0x109)](_0x1ad9a8(0x13e)+_0x1f5486+':\x20'+(_0x5425f8&&_0x5425f8[_0x1ad9a8(0x146)]?_0x5425f8['message']:_0x5425f8));}try{fs['unlinkSync'](_0x2baf31);}catch(_0x43225a){logger[_0x1ad9a8(0x109)](_0x1ad9a8(0x15f)+_0x1f5486+':\x20'+(_0x43225a&&_0x43225a[_0x1ad9a8(0x146)]?_0x43225a['message']:_0x43225a));}}return _0x1f03b2;}}const a85_0x2a5ff5={};a85_0x2a5ff5[a85_0x2b64fb(0x134)]=getBuildTagsRunId,a85_0x2a5ff5[a85_0x2b64fb(0x140)]=getBuildTagsFilePath,a85_0x2a5ff5[a85_0x2b64fb(0x151)]=BUILD_TAG_FILE_PREFIX,CustomTagManager['_testInternals']=a85_0x2a5ff5,module['exports']=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x508008=a86_0x3e2e;(function(_0x57190e,_0x26f270){const _0x36103e=a86_0x3e2e,_0x341223=_0x57190e();while(!![]){try{const _0x3a90a9=-parseInt(_0x36103e(0x191))/0x1*(parseInt(_0x36103e(0x188))/0x2)+parseInt(_0x36103e(0x186))/0x3*(-parseInt(_0x36103e(0x18d))/0x4)+-parseInt(_0x36103e(0x181))/0x5*(-parseInt(_0x36103e(0x18a))/0x6)+-parseInt(_0x36103e(0x184))/0x7+-parseInt(_0x36103e(0x18f))/0x8+parseInt(_0x36103e(0x180))/0x9+parseInt(_0x36103e(0x18c))/0xa*(parseInt(_0x36103e(0x187))/0xb);if(_0x3a90a9===_0x26f270)break;else _0x341223['push'](_0x341223['shift']());}catch(_0x397020){_0x341223['push'](_0x341223['shift']());}}}(a86_0x34cd,0x3e292));const {createClassLogger}=require('../../helpers/classLogger.js');class EventDispatcher{static #instance=null;constructor(){const _0x34dcae=a86_0x3e2e;this[_0x34dcae(0x185)]={};}static[a86_0x508008(0x182)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a86_0x508008(0x190)](_0x47ac9b,_0x4d5b2a){const _0x2cfd8c=a86_0x508008;!this[_0x2cfd8c(0x185)][_0x47ac9b]&&(this[_0x2cfd8c(0x185)][_0x47ac9b]=[]),this[_0x2cfd8c(0x185)][_0x47ac9b][_0x2cfd8c(0x183)](_0x4d5b2a);}async[a86_0x508008(0x18e)](_0xaf51a4,_0x14b418){const _0x5b7e0b=a86_0x508008,_0x46004a={'mBrja':function(_0x5ed44e,_0x58b774){return _0x5ed44e(_0x58b774);}};if(this[_0x5b7e0b(0x185)][_0xaf51a4]){for(const _0x344a50 of this[_0x5b7e0b(0x185)][_0xaf51a4]){await _0x46004a[_0x5b7e0b(0x18b)](_0x344a50,_0x14b418);}return;}}}function a86_0x3e2e(_0x5e63a4,_0x53b2b7){const _0x34cd9c=a86_0x34cd();return a86_0x3e2e=function(_0x3e2e28,_0x8be8e0){_0x3e2e28=_0x3e2e28-0x180;let _0x5f4339=_0x34cd9c[_0x3e2e28];return _0x5f4339;},a86_0x3e2e(_0x5e63a4,_0x53b2b7);}function a86_0x34cd(){const _0x13b48d=['1224699aXTdNT','observers','825rEmKmn','451UNIizf','2zPfrxM','exports','8052RZFwUi','mBrja','65850WxoamB','4532SbwucB','notifyObserver','109696OfZWJh','registerObserver','124162vBVWYl','3681657hmhPws','745Gtqqfc','getInstance','push'];a86_0x34cd=function(){return _0x13b48d;};return a86_0x34cd();}const eventDispatcher=EventDispatcher[a86_0x508008(0x182)]();Object['freeze'](eventDispatcher),module[a86_0x508008(0x189)]=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a87_0x3a8d(){const _0x30829d=['285873JBvRUg','../../../helpers/classLogger.js','automation_sessions','automationFrameworkVersion','getTrackedInstance','1599304zfViGQ','debug','trackEvent:\x20automationFrameworkState=','setState','getCurrentInstanceName','set','1218736BCfesw','instances','getAllData','../cliUtils.js','getHookRegistryKey','357775YhRfwo','util','notifyObserver','2BxHLwz','95626dxDSEw','trackEvent','getId','AutomationFramework','961422HgoLdk','registerObserver','getState','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','automationFrameworkName','getAutomationFrameworkVersion','\x20hookState=','setTrackedInstance','non_browserstack_automation_sessions','exports','runHooks','1461472kVmRpZ','get','KEY_AUTOMATION_SESSIONS'];a87_0x3a8d=function(){return _0x30829d;};return a87_0x3a8d();}const a87_0x122281=a87_0x1d1d;(function(_0x1e219a,_0x1acfbb){const _0x37ab01=a87_0x1d1d,_0x4095db=_0x1e219a();while(!![]){try{const _0x48fae1=-parseInt(_0x37ab01(0x80))/0x1+-parseInt(_0x37ab01(0x7f))/0x2*(-parseInt(_0x37ab01(0x92))/0x3)+parseInt(_0x37ab01(0x9d))/0x4+parseInt(_0x37ab01(0xa2))/0x5+-parseInt(_0x37ab01(0x84))/0x6+-parseInt(_0x37ab01(0x97))/0x7+parseInt(_0x37ab01(0x8f))/0x8;if(_0x48fae1===_0x1acfbb)break;else _0x4095db['push'](_0x4095db['shift']());}catch(_0x2b314c){_0x4095db['push'](_0x4095db['shift']());}}}(a87_0x3a8d,0x29797));const {createClassLogger}=require(a87_0x122281(0x93)),util=require(a87_0x122281(0xa3)),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a87_0x122281(0xa0)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger(a87_0x122281(0x83));class AutomationFramework{static [a87_0x122281(0x9e)]=new Map();static [a87_0x122281(0x91)]=a87_0x122281(0x94);static [a87_0x122281(0x87)]=a87_0x122281(0x8c);constructor(_0x17f383,_0x3a1276){const _0xd8f572=a87_0x122281;this[_0xd8f572(0x88)]=_0x17f383,this[_0xd8f572(0x95)]=_0x3a1276;}['getAutomationFrameworkName'](){const _0x143f5a=a87_0x122281;return this[_0x143f5a(0x88)];}[a87_0x122281(0x89)](){const _0x4b0016=a87_0x122281;return this[_0x4b0016(0x95)];}async[a87_0x122281(0x81)](_0xac114e,_0x5cb35e,_0x20969a={}){const _0x5e5e78=a87_0x122281;logger[_0x5e5e78(0x98)](_0x5e5e78(0x99)+_0xac114e+_0x5e5e78(0x8a)+_0x5cb35e);}async[a87_0x122281(0x8e)](_0x36a1d8,_0xebcab8,_0x2c19bb,_0x500489={}){const _0x114a43=a87_0x122281,_0x5d1954=CLIUtils[_0x114a43(0xa1)](_0xebcab8,_0x2c19bb);_0x36a1d8&&_0x36a1d8[_0x114a43(0x9a)](_0xebcab8),await eventDispatcher[_0x114a43(0xa4)](_0x5d1954,_0x500489);}static[a87_0x122281(0x85)](_0x95cf0,_0x12ba50,_0x28a160){const _0x12e6e9=a87_0x122281;eventDispatcher['registerObserver'](CLIUtils[_0x12e6e9(0xa1)](_0x95cf0,_0x12ba50),_0x28a160);}static[a87_0x122281(0x8b)](_0x49b603,_0xa6f4e){const _0x1da3fb=a87_0x122281;AutomationFramework[_0x1da3fb(0x9e)][_0x1da3fb(0x9c)](_0x49b603[_0x1da3fb(0x82)](),_0xa6f4e);}static[a87_0x122281(0x96)](){const _0x342284=a87_0x122281,_0x1ebdd6=TrackedInstance['createContext'](CLIUtils[_0x342284(0x9b)]());return AutomationFramework[_0x342284(0x9e)][_0x342284(0x90)](_0x1ebdd6[_0x342284(0x82)]());}static[a87_0x122281(0x9a)](_0x5913da,_0x1484d7,_0x1f5aa0){const _0x4093f7=a87_0x122281;_0x5913da[_0x4093f7(0x9f)]()[_0x4093f7(0x9c)](_0x1484d7,_0x1f5aa0);}static[a87_0x122281(0x86)](_0x46f3c3,_0x458da9){const _0xe0011e=a87_0x122281;return _0x46f3c3[_0xe0011e(0x9f)]()[_0xe0011e(0x90)](_0x458da9);}}function a87_0x1d1d(_0x180cb9,_0x3ac6f8){const _0x3a8dac=a87_0x3a8d();return a87_0x1d1d=function(_0x1d1df6,_0x25e5f6){_0x1d1df6=_0x1d1df6-0x7f;let _0x3b8258=_0x3a8dac[_0x1d1df6];return _0x3b8258;},a87_0x1d1d(_0x180cb9,_0x3ac6f8);}module[a87_0x122281(0x8d)]=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x2af8d4=a88_0x594c;(function(_0x13a5c1,_0x945e){const _0xb61143=a88_0x594c,_0x21ed11=_0x13a5c1();while(!![]){try{const _0x30484a=-parseInt(_0xb61143(0x133))/0x1*(-parseInt(_0xb61143(0x12d))/0x2)+parseInt(_0xb61143(0x129))/0x3+parseInt(_0xb61143(0x125))/0x4+parseInt(_0xb61143(0x11c))/0x5*(-parseInt(_0xb61143(0x117))/0x6)+parseInt(_0xb61143(0x126))/0x7*(parseInt(_0xb61143(0x122))/0x8)+parseInt(_0xb61143(0x12e))/0x9+-parseInt(_0xb61143(0x11d))/0xa;if(_0x30484a===_0x945e)break;else _0x21ed11['push'](_0x21ed11['shift']());}catch(_0x403644){_0x21ed11['push'](_0x21ed11['shift']());}}}(a88_0x283c,0x2bc73));const a88_0x11ba54={};a88_0x11ba54[a88_0x2af8d4(0x118)]='BROWSERSTACK_PLATFORM_INDEX',a88_0x11ba54['KEY_HUB_URL']=a88_0x2af8d4(0x12f),a88_0x11ba54[a88_0x2af8d4(0x115)]=a88_0x2af8d4(0x11b),a88_0x11ba54[a88_0x2af8d4(0x123)]=a88_0x2af8d4(0x127),a88_0x11ba54[a88_0x2af8d4(0x132)]=a88_0x2af8d4(0x131),a88_0x11ba54[a88_0x2af8d4(0x12b)]='is_browserstack_hub',a88_0x11ba54['KEY_STARTED_AT']=a88_0x2af8d4(0x113),a88_0x11ba54[a88_0x2af8d4(0x130)]=a88_0x2af8d4(0x116),a88_0x11ba54['KEY_PLATFORM_INDEX']='platform_index',a88_0x11ba54[a88_0x2af8d4(0x119)]=a88_0x2af8d4(0x134),a88_0x11ba54[a88_0x2af8d4(0x12a)]=a88_0x2af8d4(0x11e),a88_0x11ba54['COMMAND_SCREENSHOT']=a88_0x2af8d4(0x128),a88_0x11ba54[a88_0x2af8d4(0x11f)]=a88_0x2af8d4(0x121),a88_0x11ba54[a88_0x2af8d4(0x12c)]=a88_0x2af8d4(0x114),a88_0x11ba54[a88_0x2af8d4(0x120)]=a88_0x2af8d4(0x11a);function a88_0x594c(_0x361498,_0x45ebef){const _0x283c29=a88_0x283c();return a88_0x594c=function(_0x594c9f,_0x4c8ec3){_0x594c9f=_0x594c9f-0x113;let _0x4154b5=_0x283c29[_0x594c9f];return _0x4154b5;},a88_0x594c(_0x361498,_0x45ebef);}const AutomationFrameworkConstants=a88_0x11ba54;function a88_0x283c(){const _0xa916fa=['6SRRLTY','ENV_BROWSERSTACK_PLATFORM_INDEX','COMMAND_NEW_SESSION','quit','framework_session_id','982895loYeCk','1896430EiKWoM','get','COMMAND_W3C_EXECUTE_SCRIPT','COMMAND_QUIT','w3cexecutescript','932168HePdaV','KEY_INPUT_CAPABILITIES','exports','371552QnTdDd','7YrpSLo','input_capabilities','screenshot','332994RuuhHp','COMMAND_GET','KEY_IS_BROWSERSTACK_HUB','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','5602TKhUGb','2080125feKQHQ','hub_url','KEY_ENDED_AT','capabilities','KEY_CAPABILITIES','5uNgibQ','newsession','started_at','w3cexecutescriptasync','KEY_FRAMEWORK_SESSION_ID','ended_at'];a88_0x283c=function(){return _0xa916fa;};return a88_0x283c();}module[a88_0x2af8d4(0x124)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a89_0x2b4d(_0x3e1d12,_0x2ffe51){const _0x46752d=a89_0x4675();return a89_0x2b4d=function(_0x2b4d88,_0x2815ee){_0x2b4d88=_0x2b4d88-0x91;let _0x4c4d94=_0x46752d[_0x2b4d88];return _0x4c4d94;},a89_0x2b4d(_0x3e1d12,_0x2ffe51);}const a89_0x3ec52e=a89_0x2b4d;(function(_0x20c41b,_0x4d5845){const _0x5a750d=a89_0x2b4d,_0x1407aa=_0x20c41b();while(!![]){try{const _0x4ac3de=-parseInt(_0x5a750d(0x95))/0x1*(parseInt(_0x5a750d(0xb1))/0x2)+parseInt(_0x5a750d(0xc6))/0x3*(-parseInt(_0x5a750d(0xe7))/0x4)+parseInt(_0x5a750d(0xdf))/0x5+parseInt(_0x5a750d(0xc0))/0x6+-parseInt(_0x5a750d(0xa5))/0x7+parseInt(_0x5a750d(0xc2))/0x8+parseInt(_0x5a750d(0x9b))/0x9;if(_0x4ac3de===_0x4d5845)break;else _0x1407aa['push'](_0x1407aa['shift']());}catch(_0x3eaa19){_0x1407aa['push'](_0x1407aa['shift']());}}}(a89_0x4675,0x6d325));const a89_0x3caad7={};a89_0x3caad7[a89_0x3ec52e(0xbb)]=a89_0x3ec52e(0x93),a89_0x3caad7[a89_0x3ec52e(0xa6)]=a89_0x3ec52e(0x92),a89_0x3caad7['KEY_TEST_NAME']=a89_0x3ec52e(0xc7),a89_0x3caad7[a89_0x3ec52e(0xbc)]=a89_0x3ec52e(0xd5),a89_0x3caad7[a89_0x3ec52e(0xcb)]=a89_0x3ec52e(0x94),a89_0x3caad7[a89_0x3ec52e(0xe0)]=a89_0x3ec52e(0xeb),a89_0x3caad7[a89_0x3ec52e(0x9c)]=a89_0x3ec52e(0xb3),a89_0x3caad7['KEY_TEST_STARTED_AT']=a89_0x3ec52e(0xb0),a89_0x3caad7[a89_0x3ec52e(0xc5)]=a89_0x3ec52e(0xab),a89_0x3caad7[a89_0x3ec52e(0xb9)]=a89_0x3ec52e(0xcf),a89_0x3caad7[a89_0x3ec52e(0xea)]=a89_0x3ec52e(0xd4),a89_0x3caad7[a89_0x3ec52e(0xc3)]=a89_0x3ec52e(0xa8),a89_0x3caad7['KEY_TEST_SCOPES']=a89_0x3ec52e(0x9e),a89_0x3caad7[a89_0x3ec52e(0xbe)]='test_framework_name',a89_0x3caad7[a89_0x3ec52e(0xe9)]='test_framework_version',a89_0x3caad7[a89_0x3ec52e(0xb4)]=a89_0x3ec52e(0xe4),a89_0x3caad7[a89_0x3ec52e(0xe3)]='test_rerun_name',a89_0x3caad7['KEY_TEST_RETRY_OF']=a89_0x3ec52e(0xb8),a89_0x3caad7['KEY_PLATFORM_INDEX']=a89_0x3ec52e(0xd3),a89_0x3caad7[a89_0x3ec52e(0xd8)]=a89_0x3ec52e(0xdb),a89_0x3caad7[a89_0x3ec52e(0x9f)]='test_failure_type',a89_0x3caad7[a89_0x3ec52e(0xcc)]=a89_0x3ec52e(0xdd),a89_0x3caad7[a89_0x3ec52e(0xa0)]=a89_0x3ec52e(0x99),a89_0x3caad7[a89_0x3ec52e(0xe8)]='test_meta',a89_0x3caad7['KEY_SESSION_NAME']=a89_0x3ec52e(0xc9),a89_0x3caad7[a89_0x3ec52e(0xb2)]=a89_0x3ec52e(0xe2),a89_0x3caad7[a89_0x3ec52e(0xe6)]='automate_session_status',a89_0x3caad7[a89_0x3ec52e(0xc4)]=a89_0x3ec52e(0xb6),a89_0x3caad7[a89_0x3ec52e(0x9a)]=a89_0x3ec52e(0xad),a89_0x3caad7['KEY_EVENT_ENDED_AT']=a89_0x3ec52e(0xca),a89_0x3caad7[a89_0x3ec52e(0xc8)]=a89_0x3ec52e(0xbf),a89_0x3caad7[a89_0x3ec52e(0xce)]=a89_0x3ec52e(0xaf),a89_0x3caad7['KEY_HOOK_FAILURE_TYPE']=a89_0x3ec52e(0xa4),a89_0x3caad7[a89_0x3ec52e(0xdc)]='hook_failure_reason',a89_0x3caad7[a89_0x3ec52e(0xd7)]=a89_0x3ec52e(0xae),a89_0x3caad7[a89_0x3ec52e(0xaa)]=a89_0x3ec52e(0xd9),a89_0x3caad7[a89_0x3ec52e(0x97)]=a89_0x3ec52e(0xd2),a89_0x3caad7[a89_0x3ec52e(0xd6)]=a89_0x3ec52e(0xe1),a89_0x3caad7['DEFAULT_HOOK_RESULT']=a89_0x3ec52e(0xe1),a89_0x3caad7[a89_0x3ec52e(0xd0)]=a89_0x3ec52e(0xa3),a89_0x3caad7[a89_0x3ec52e(0xba)]='TEST_LOG',a89_0x3caad7[a89_0x3ec52e(0xa9)]='^(BEFORE_|AFTER_)',a89_0x3caad7[a89_0x3ec52e(0xd1)]=a89_0x3ec52e(0xe5),a89_0x3caad7[a89_0x3ec52e(0xa2)]=a89_0x3ec52e(0xa7),a89_0x3caad7[a89_0x3ec52e(0xb7)]=a89_0x3ec52e(0xde),a89_0x3caad7[a89_0x3ec52e(0xbd)]='test_hook_last_finished',a89_0x3caad7[a89_0x3ec52e(0xb5)]='logs',a89_0x3caad7['KEY_CUSTOM_TAGS']=a89_0x3ec52e(0x98),a89_0x3caad7[a89_0x3ec52e(0xc1)]=a89_0x3ec52e(0xda),a89_0x3caad7['KEY_FILE_SIZE']='file_size',a89_0x3caad7['KEY_FILE_NAME']='file_name',a89_0x3caad7['KEY_FILE_PATH']=a89_0x3ec52e(0xa1),a89_0x3caad7[a89_0x3ec52e(0x96)]=a89_0x3ec52e(0x91),a89_0x3caad7['KEY_TEST_SCREENSHOTS']=a89_0x3ec52e(0xac),a89_0x3caad7[a89_0x3ec52e(0x9d)]=0xa,a89_0x3caad7['MAX_NESTED_STEP_DEPTH']=0x2;const TestFrameworkConstants=a89_0x3caad7;function a89_0x4675(){const _0x1a570b=['KEY_TEST_UUID','KEY_TEST_FILE_PATH','KEY_HOOK_LAST_FINISHED','KEY_TEST_FRAMEWORK_NAME','hook_id','3264888fYBMGR','KEY_TEST_ATTACHMENTS','3033312emawUI','KEY_TEST_SCOPE','KEY_AUTOMATE_SESSION_REASON','KEY_TEST_ENDED_AT','3rFlMfA','test_name','KEY_HOOK_ID','test_session_name','event_ended_at','KEY_TEST_TAGS','KEY_TEST_FAILURE_REASON','exports','KEY_HOOK_RESULT','test_location','KIND_SCREENSHOT','KEY_HOOKS_STARTED','hook_name','platform_index','test_duration','test_file_path','DEFAULT_TEST_RESULT','KEY_HOOK_FAILURE','KEY_TEST_FAILURE','hook_logs','test_attachments','test_failure','KEY_HOOK_FAILURE_REASON','test_failure_reason','test_hook_last_started','3700825jGFZXj','KEY_TEST_RESULT','pending','automate_session_name','KEY_TEST_RERUN_NAME','test_code','test_hooks_started','KEY_AUTOMATE_SESSION_STATUS','1210052aWcZFK','KEY_TEST_META','KEY_TEST_FRAMEWORK_VERSION','KEY_TEST_DURATION','test_result','file_level','test_id','test_uuid','test_tags','709490VMaPEn','KEY_FILE_LEVEL','KEY_HOOK_NAME','custom_metadata','test_logs','KEY_EVENT_STARTED_AT','115173cJcvaT','KEY_TEST_RESULT_AT','MAX_TOP_LEVEL_STEPS','test_scopes','KEY_TEST_FAILURE_TYPE','KEY_TEST_LOGS','file_path','KEY_HOOKS_FINISHED','TEST_SCREENSHOT','hook_failure_type','1519014smnUih','KEY_TEST_ID','test_hooks_finished','test_scope','HOOK_REGEX','KEY_HOOK_LOGS','test_ended_at','test_screenshots','event_started_at','hook_failure','hook_result','test_started_at','2hPqfLE','KEY_AUTOMATE_SESSION_NAME','test_result_at','KEY_TEST_CODE','KEY_LOGS','automate_session_reason','KEY_HOOK_LAST_STARTED','retry_of','KEY_TEST_LOCATION','KIND_LOG'];a89_0x4675=function(){return _0x1a570b;};return a89_0x4675();}module[a89_0x3ec52e(0xcd)]=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_0x32eac2=a90_0x4ed4;function a90_0x4ed4(_0x47c04c,_0x1adf4e){const _0x411b66=a90_0x411b();return a90_0x4ed4=function(_0x4ed4eb,_0x44100d){_0x4ed4eb=_0x4ed4eb-0x151;let _0x183bcc=_0x411b66[_0x4ed4eb];return _0x183bcc;},a90_0x4ed4(_0x47c04c,_0x1adf4e);}(function(_0x2869c7,_0x48371d){const _0x245a33=a90_0x4ed4,_0x5b26d6=_0x2869c7();while(!![]){try{const _0x4c1d2a=-parseInt(_0x245a33(0x1ea))/0x1+parseInt(_0x245a33(0x1d1))/0x2*(-parseInt(_0x245a33(0x15e))/0x3)+parseInt(_0x245a33(0x18c))/0x4+-parseInt(_0x245a33(0x173))/0x5*(parseInt(_0x245a33(0x1e2))/0x6)+-parseInt(_0x245a33(0x206))/0x7+parseInt(_0x245a33(0x1da))/0x8*(-parseInt(_0x245a33(0x157))/0x9)+-parseInt(_0x245a33(0x204))/0xa*(-parseInt(_0x245a33(0x19a))/0xb);if(_0x4c1d2a===_0x48371d)break;else _0x5b26d6['push'](_0x5b26d6['shift']());}catch(_0x231b42){_0x5b26d6['push'](_0x5b26d6['shift']());}}}(a90_0x411b,0x58efe));const TestFramework=require(a90_0x32eac2(0x16b)),TestFrameworkState=require(a90_0x32eac2(0x1fa)),HookState=require(a90_0x32eac2(0x1c7)),{createClassLogger}=require(a90_0x32eac2(0x188)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a90_0x32eac2(0x1d3)),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger(a90_0x32eac2(0x1f0)),{v4:uuidv4}=require(a90_0x32eac2(0x17a)),util=require(a90_0x32eac2(0x1fb)),TestInfo=require(a90_0x32eac2(0x20c)),GrpcClient=require(a90_0x32eac2(0x1c4));function a90_0x411b(){const _0x2c85e6=['location','platformIndex','sendLogCreatedEvent','1920AGrwmq','KEY_TEST_CODE','2499756ukVUwr','name','getTestUUID','\x20&\x20hookState=','stringify','addPendingHook','../TestInfo.js','KEY_TEST_ATTACHMENTS','hookData','processPendingHooks','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','KEY_TEST_NAME','DWKYZ','PHgvz','BnjAd','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','kZJRz','testUUID','Parsed\x20cucumber\x20test:\x20','ceil','getId','\x20response=','\x20batch\x20','browserstackPlatformIndex','\x20\x20and\x20args\x20=\x20','faBVJ','getRef','KEY_TEST_ENDED_AT','Stored\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_LOGS','addMultipleEntries','138519AjiSCb','hooks','format','KEY_TEST_SCOPE','trackCucumberInstance','failure','yntSu','326121bkdKhg','\x20and\x20args\x20=\x20','failure_data',',\x20storing\x20as\x20pending\x20hook','KEY_TEST_RESULT','UnhandledError','DEFAULT_TEST_RESULT','inspect','KEY_HOOK_LOGS','KEY_HOOKS_STARTED','RiaBm','KEY_TEST_STARTED_AT','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','./testFramework','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','POST','testFrameworkState','Ehxco','getAllData','PRE','2471370hoHbLM','getCurrentTestState','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','parseCucumberTest','ugcpB','KEY_LOGS','body','uuid','args','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','result','failure_reason',',\x20state:\x20','\x20pending\x20hooks\x20for\x20testId:\x20','pvRTI','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','\x20with\x20result:\x20','tLIFO','KEY_TEST_META','testFrameworkName','scopes','../../../helpers/classLogger.js','Tracked\x20cucumber\x20hook\x20event:\x20','removePendingHooks','toISOString','1768572sbMeZK','error','getTestFrameworksVersions','\x20testState:\x20','TEST','test','unknown','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_TEST_RERUN_NAME','push','test_run_id','\x20payload=','NONE','KEY_HOOK_ID','96514LUidta','aOpGC','ZTCVB','setTrackedInstance','\x20with\x20UUID:\x20','hook_type','get','DPxQv','exports','customRerunParam','endedAt','getTestDetails','xojYt','resolveInstance','testData','wXUBD','KEY_HOOK_NAME','instance','setTestDetails','KEY_HOOK_RESULT','LVBqk','KEY_CUSTOM_TAGS','getProcessId','KEY_HOOK_FAILURE_REASON','KEY_TEST_FAILURE_TYPE','QGZrx','Updated\x20cucumber\x20test\x20result:\x20','toString','rtiKb','getTrackedInstance','parseCucumberTestResult','KEY_TEST_SCOPES','meta','from','getCurrentInstanceName','trackHookEvent','\x20with\x20id\x20','wSqtA','KEY_HOOK_LAST_FINISHED','\x20&\x20hook\x20=\x20','INIT_TEST','uEJWf','../grpcClient',',\x20state=','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','../state/hookState.js','failed','Error\x20in\x20createTestFrameworkEventPayload:\x20','Cucumber\x20log\x20created\x20event','tZkIn','KEY_HOOK_LAST_STARTED','IDYmD','debug','getPendingHooks','createContext','2sCjSmI','hookState','../instances/trackedInstance.js','pop','startedAt','KEY_TEST_UUID','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','readLogObjects','matchHookRegex','184AetmLv','createTestFrameworkEventPayload','finished_at','getCurrentHookState','length','HeAju','LOG_REPORT','KEY_TEST_RESULT_AT','6UDDWta','trackEvent:\x20unsupported\x20testFrameworkState=','KEY_TEST_FRAMEWORK_VERSION','passed','DEFAULT_HOOK_RESULT','getTestFrameworks','getContext','nUufR','448383FBSGud','KEY_TEST_FAILURE_REASON','split','getInstance','KEY_TEST_FRAMEWORK_NAME','keys','CucumberTestFramework','\x20target=','tags','logCreatedEvent','KEY_HOOKS_FINISHED','started_at','storePendingHook','HHFeQ','YVUEg','qeXkj','../state/testFrameworkState.js','util','WrTUw','KEY_EVENT_ENDED_AT','file_name','failure_type','KEY_HOOK_FAILURE'];a90_0x411b=function(){return _0x2c85e6;};return a90_0x411b();}class CucumberTestFramework extends TestFramework{constructor(_0x2b6ad5,_0x287e07,_0x29c158){super(_0x2b6ad5,_0x287e07,_0x29c158);}async['trackEvent'](_0x35967a,_0x122551,_0x5f217c={}){const _0x514c8d=a90_0x32eac2,_0x2ed590={};_0x2ed590[_0x514c8d(0x19c)]=_0x514c8d(0x210),_0x2ed590['wXUBD']=function(_0xc2c6e2,_0x4fef8d){return _0xc2c6e2===_0x4fef8d;},_0x2ed590[_0x514c8d(0x1b6)]=function(_0x3483b3,_0x1ca143){return _0x3483b3===_0x1ca143;},_0x2ed590[_0x514c8d(0x151)]='trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s';const _0x3cdae1=_0x2ed590;await super['trackEvent'](_0x35967a,_0x122551,_0x5f217c);const _0x31cac5=this[_0x514c8d(0x1a7)](_0x35967a,_0x122551,_0x5f217c);if(!_0x31cac5){logger[_0x514c8d(0x1ce)](_0x3cdae1[_0x514c8d(0x19c)]);return;}try{let _0x886899,_0x3f1770;switch(_0x35967a){case TestFrameworkState[_0x514c8d(0x190)]:_0x886899=_0x5f217c[_0x514c8d(0x191)],_0x3f1770=TestInfo[_0x514c8d(0x208)](_0x886899['id']);if(_0x3cdae1[_0x514c8d(0x1a9)](_0x122551,HookState['PRE'])){logger[_0x514c8d(0x1ce)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x886899['id']);const _0x3a635b={};_0x3a635b[_0x514c8d(0x217)]=_0x3f1770,_0x3a635b[_0x514c8d(0x1a8)]=_0x886899,_0x31cac5[_0x514c8d(0x156)](this[_0x514c8d(0x176)](_0x3a635b)),logger['debug'](_0x514c8d(0x16c)+_0x886899['id']),await this[_0x514c8d(0x20f)](_0x31cac5,_0x886899['id']);}else{if(_0x3cdae1[_0x514c8d(0x1b6)](_0x122551,HookState['POST'])){const _0x4ccc68={};_0x4ccc68[_0x514c8d(0x217)]=_0x3f1770,_0x4ccc68[_0x514c8d(0x1a8)]=_0x886899,_0x31cac5[_0x514c8d(0x156)](this[_0x514c8d(0x1b8)](_0x4ccc68)),await this['processPendingHooks'](_0x31cac5,_0x886899['id']);}}break;case TestFrameworkState[_0x514c8d(0x1e0)]:_0x3cdae1[_0x514c8d(0x1a9)](_0x122551,HookState[_0x514c8d(0x16e)])&&await this[_0x514c8d(0x203)](_0x31cac5,_0x35967a,_0x5f217c);break;default:if(CLIUtils[_0x514c8d(0x1d9)](_0x35967a[_0x514c8d(0x1b5)]()[_0x514c8d(0x1ec)]('.')[0x1])){const _0x5e5f19=await this[_0x514c8d(0x1bd)](_0x31cac5,_0x35967a,_0x122551,_0x5f217c);_0x31cac5['addMultipleEntries'](_0x5e5f19);}else logger[_0x514c8d(0x1ce)](_0x514c8d(0x1e3)+_0x35967a+_0x514c8d(0x209)+_0x122551);break;}}catch(_0x24bc61){logger[_0x514c8d(0x18d)](util[_0x514c8d(0x159)](_0x3cdae1[_0x514c8d(0x151)],_0x35967a,_0x122551,_0x5f217c[_0x514c8d(0x1de)],_0x24bc61));}_0x5f217c['instance']=_0x31cac5,await this['runHooks'](_0x31cac5,_0x35967a,_0x122551,_0x5f217c);}[a90_0x32eac2(0x1a7)](_0xd83567,_0x154575,_0x17d895={}){const _0x185c8c=a90_0x32eac2,_0x4d3762={};_0x4d3762[_0x185c8c(0x1e9)]=function(_0x53162d,_0x53fb2d){return _0x53162d===_0x53fb2d;};const _0x4c1aa8=_0x4d3762;let _0x46909e=null;return(_0x4c1aa8['nUufR'](_0xd83567,TestFrameworkState[_0x185c8c(0x1c2)])||_0x4c1aa8[_0x185c8c(0x1e9)](_0xd83567,TestFrameworkState['NONE']))&&this[_0x185c8c(0x15b)](_0xd83567,_0x17d895),_0x46909e=TestFramework[_0x185c8c(0x1b7)](),_0x46909e;}[a90_0x32eac2(0x15b)](_0x2a186c,_0x2e4fb1){const _0x2c9641=a90_0x32eac2,_0x15471e=CLIUtils[_0x2c9641(0x1bc)](),_0x55d7ae=TrackedInstance[_0x2c9641(0x1d0)](_0x15471e);let _0x5804d4=null;logger[_0x2c9641(0x1ce)]('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0x15471e+_0x2c9641(0x1c5)+_0x2a186c),_0x5804d4=new TestFrameworkInstance(_0x55d7ae,this[_0x2c9641(0x1e7)](),this[_0x2c9641(0x18e)](),_0x2a186c,HookState[_0x2c9641(0x198)]),TestFramework[_0x2c9641(0x19d)](_0x55d7ae,_0x5804d4),logger['debug']('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x55d7ae['getId']()+_0x2c9641(0x1f1)+_0x15471e);}['parseCucumberTest'](_0x401a47){const _0x3fefcf=a90_0x32eac2,_0x230559={};_0x230559[_0x3fefcf(0x1cd)]='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x266eb2=_0x230559,{testUUID:_0x1e5415,testData:_0x5311ad}=_0x401a47;if(!_0x5311ad||!_0x5311ad[_0x3fefcf(0x17a)])return logger['debug'](_0x266eb2['IDYmD']),{};const _0xa952cd=_0x1e5415,_0x4c30da=_0x5311ad['uuid'],_0x3de407=this['getTestFrameworks']()[0x0],_0x11efc7=this[_0x3fefcf(0x18e)](),_0x4cf6ff={[TestFrameworkConstants[_0x3fefcf(0x1ee)]]:_0x3de407,[TestFrameworkConstants[_0x3fefcf(0x1e4)]]:_0x11efc7[_0x3de407],[TestFrameworkConstants[_0x3fefcf(0x155)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x3fefcf(0x167)]]:{},[TestFrameworkConstants[_0x3fefcf(0x1d6)]]:_0xa952cd,[TestFrameworkConstants[_0x3fefcf(0x162)]]:TestFrameworkConstants[_0x3fefcf(0x164)],[TestFrameworkConstants['KEY_AUTOMATE_SESSION_NAME']]:_0x5311ad[_0x3fefcf(0x207)]||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x5311ad[_0x3fefcf(0x1fe)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x4c30da,[TestFrameworkConstants[_0x3fefcf(0x211)]]:_0x5311ad[_0x3fefcf(0x207)]||'',[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0x5311ad[_0x3fefcf(0x201)]||'',[TestFrameworkConstants[_0x3fefcf(0x205)]]:_0x5311ad[_0x3fefcf(0x179)]?.['code']||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x5311ad[_0x3fefcf(0x1f2)]||[],[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x5311ad[_0x3fefcf(0x1d5)]||new Date()[_0x3fefcf(0x18b)](),[TestFrameworkConstants[_0x3fefcf(0x15a)]]:_0x5311ad[_0x3fefcf(0x187)]?.[0x0]||'',[TestFrameworkConstants[_0x3fefcf(0x1b9)]]:_0x5311ad[_0x3fefcf(0x187)]||[],[TestFrameworkConstants[_0x3fefcf(0x194)]]:_0x5311ad[_0x3fefcf(0x1a3)]?.['rerun_name']||_0x5311ad[_0x3fefcf(0x207)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants[_0x3fefcf(0x185)]]:_0x5311ad[_0x3fefcf(0x1ba)]||{}};TestInfo[_0x3fefcf(0x1ac)](_0x4c30da,_0x4cf6ff),logger['debug'](_0x3fefcf(0x218)+_0x5311ad['name']+_0x3fefcf(0x19e)+_0xa952cd);const _0x512ecc={};return _0x512ecc[_0x4c30da]=_0x4cf6ff,_0x512ecc;}[a90_0x32eac2(0x1b8)](_0x28b6b3){const _0x3be581=a90_0x32eac2,_0x1f9fc5={'QGZrx':'No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','Ehxco':_0x3be581(0x192),'qeXkj':function(_0x51194c,_0x152942){return _0x51194c===_0x152942;},'WrTUw':_0x3be581(0x1c8),'uEJWf':_0x3be581(0x163),'ugcpB':function(_0x20e78f,_0x268a12,_0x1fc91c){return _0x20e78f(_0x268a12,_0x1fc91c);},'ehcVq':function(_0x452731,_0x5371b9){return _0x452731>_0x5371b9;},'HHFeQ':function(_0x27f0dc,_0x526fb8){return _0x27f0dc>_0x526fb8;}},{testUUID:_0x4d9e6a,testData:_0x48708b}=_0x28b6b3;if(!_0x48708b||!_0x48708b['uuid'])return logger[_0x3be581(0x1ce)](_0x1f9fc5[_0x3be581(0x1b3)]),{};const _0x15b09a=this['resolveInstance'](TestFrameworkState['TEST'],HookState[_0x3be581(0x16e)]),_0x133fa8=_0x48708b['uuid'],_0x1e45d6=TestInfo[_0x3be581(0x1a5)](_0x133fa8)||{},_0x3a2bfd=_0x1e45d6?_0x1e45d6[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{}:{},_0x2eef95={..._0x1e45d6,[TestFrameworkConstants[_0x3be581(0x162)]]:_0x48708b['result']||_0x1f9fc5[_0x3be581(0x170)],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x48708b['finishedAt']||new Date()['toISOString'](),[TestFrameworkConstants[_0x3be581(0x1e1)]]:new Date()[_0x3be581(0x18b)](),[TestFrameworkConstants[_0x3be581(0x1af)]]:_0x3a2bfd,[TestFrameworkConstants[_0x3be581(0x178)]]:[],[TestFrameworkConstants[_0x3be581(0x185)]]:_0x48708b[_0x3be581(0x1ba)]||{}};_0x1f9fc5[_0x3be581(0x1f9)](_0x48708b['result'],_0x1f9fc5[_0x3be581(0x1fc)])&&_0x48708b[_0x3be581(0x15c)]&&(_0x2eef95[TestFrameworkConstants[_0x3be581(0x1b2)]]=_0x48708b[_0x3be581(0x1ff)]||_0x1f9fc5[_0x3be581(0x1c3)],_0x2eef95[TestFrameworkConstants[_0x3be581(0x1eb)]]=_0x48708b[_0x3be581(0x17e)]||'',_0x2eef95[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x48708b[_0x3be581(0x15c)]);const _0xf92ae3=TestInfo[_0x3be581(0x1a5)](_0x133fa8)[TestFrameworkConstants[_0x3be581(0x20d)]]||{},_0xb55543=_0x1f9fc5[_0x3be581(0x177)](getManualUploadLogs,_0xf92ae3,_0x15b09a[_0x3be581(0x171)]()['get'](_0x133fa8)[TestFrameworkConstants[_0x3be581(0x1d6)]]);if(_0x1f9fc5['ehcVq'](_0xb55543[_0x3be581(0x1de)],0x0)){const _0x5bcf1b=_0x2eef95[TestFrameworkConstants['KEY_LOGS']]||[];_0x2eef95[TestFrameworkConstants['KEY_LOGS']]=[..._0x5bcf1b,..._0xb55543];}_0x48708b['hooks']&&_0x1f9fc5[_0x3be581(0x1f7)](_0x48708b[_0x3be581(0x158)][_0x3be581(0x1de)],0x0)&&(_0x2eef95[TestFrameworkConstants[_0x3be581(0x1f4)]]=_0x48708b['hooks']);TestInfo[_0x3be581(0x1ac)](_0x133fa8,_0x2eef95),logger[_0x3be581(0x1ce)](_0x3be581(0x1b4)+_0x48708b[_0x3be581(0x207)]+_0x3be581(0x183)+_0x48708b[_0x3be581(0x17d)]);const _0x785048={};return _0x785048[_0x133fa8]=_0x2eef95,_0x785048;}async[a90_0x32eac2(0x1bd)](_0x124e0a,_0x123095,_0x1beecc,_0x2e2bcc){const _0x2aa312=a90_0x32eac2,_0x88c5fd={'jlWsa':_0x2aa312(0x175),'RJyyJ':function(_0x7d8f58){return _0x7d8f58();},'pvRTI':function(_0x3cbd3f,_0xce3772){return _0x3cbd3f in _0xce3772;},'aOpGC':function(_0x56960d,_0x57c70a){return _0x56960d===_0x57c70a;},'PHgvz':function(_0x14459e,_0x1fca11){return _0x14459e>_0x1fca11;},'RiaBm':_0x2aa312(0x1c8),'yrBkU':'UnhandledError','DPxQv':_0x2aa312(0x1e5),'xojYt':function(_0x95ea92,_0x570878){return _0x95ea92!==_0x570878;}},{hookData:_0x1bdba3}=_0x2e2bcc;if(!_0x1bdba3)return logger[_0x2aa312(0x1ce)](_0x88c5fd['jlWsa']),{};const _0x39fed5=_0x1bdba3['uuid']||_0x88c5fd['RJyyJ'](uuidv4),_0x43db8d=_0x1bdba3['test_run_id'],_0x2a2ad9=_0x123095[_0x2aa312(0x1b5)]()[_0x2aa312(0x1ec)]('.')[0x1],_0x265c1a=TestInfo[_0x2aa312(0x1a5)](_0x43db8d)[TestFrameworkConstants[_0x2aa312(0x1af)]]||{},_0xc0a44a=_0x124e0a[_0x2aa312(0x171)]()[_0x2aa312(0x1a0)](_0x43db8d);if(!_0xc0a44a)return logger[_0x2aa312(0x1ce)](_0x2aa312(0x215)+_0x43db8d+_0x2aa312(0x161)),this[_0x2aa312(0x1f6)](_0x124e0a,_0x43db8d,_0x123095,_0x1beecc,_0x2e2bcc),{};let _0x3a2ae0=_0xc0a44a[TestFrameworkConstants[_0x2aa312(0x167)]];!_0x3a2ae0&&(_0x3a2ae0={});!_0x88c5fd[_0x2aa312(0x181)](_0x2a2ad9,_0x3a2ae0)&&(_0x3a2ae0[_0x2a2ad9]=[]);let _0x22d01a=_0xc0a44a[TestFrameworkConstants[_0x2aa312(0x1f4)]];!_0x22d01a&&(_0x22d01a={});!_0x88c5fd['pvRTI'](_0x2a2ad9,_0x22d01a)&&(_0x22d01a[_0x2a2ad9]=[]);const _0x25baf2={[TestFrameworkConstants[_0x2aa312(0x167)]]:_0x3a2ae0,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x22d01a},_0xcd0051={};_0xcd0051[_0x43db8d]=_0x25baf2;const _0x59b8e2=_0xcd0051;if(_0x88c5fd[_0x2aa312(0x19b)](_0x1beecc,HookState[_0x2aa312(0x172)])){const _0x11d8a1={[TestFrameworkConstants[_0x2aa312(0x199)]]:_0x39fed5,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0x2aa312(0x1e6)],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0x1bdba3[_0x2aa312(0x1f5)],[TestFrameworkConstants[_0x2aa312(0x166)]]:[],[TestFrameworkConstants[_0x2aa312(0x1aa)]]:_0x1bdba3[_0x2aa312(0x19f)],[TestFrameworkConstants[_0x2aa312(0x1af)]]:_0x265c1a};_0x11d8a1['key']=_0x2a2ad9;const _0x20a5db=_0x11d8a1;_0x3a2ae0[_0x2a2ad9][_0x2aa312(0x195)](_0x20a5db),_0x59b8e2[_0x43db8d][TestFrameworkConstants[_0x2aa312(0x1cc)]]=_0x2a2ad9,logger[_0x2aa312(0x1ce)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x2a2ad9+_0x2aa312(0x1c1)+_0x20a5db+_0x2aa312(0x21e)+_0x2e2bcc);}else{if(_0x88c5fd[_0x2aa312(0x19b)](_0x1beecc,HookState[_0x2aa312(0x16e)])){const _0x18dde9=_0x1bdba3[_0x2aa312(0x17d)],_0x34371d=_0x3a2ae0[_0x2a2ad9]||[];logger[_0x2aa312(0x1ce)](_0x2aa312(0x16a)+_0x34371d+_0x2aa312(0x15f)+_0x2e2bcc);if(_0x88c5fd[_0x2aa312(0x213)](_0x34371d[_0x2aa312(0x1de)],0x0)){const _0x21d719=_0x34371d[_0x2aa312(0x1d4)]();_0x88c5fd[_0x2aa312(0x19b)](_0x1bdba3['result'],_0x88c5fd[_0x2aa312(0x168)])&&_0x1bdba3[_0x2aa312(0x160)]?(_0x21d719[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x1bdba3[_0x2aa312(0x1ff)]||_0x88c5fd['yrBkU'],_0x21d719[TestFrameworkConstants[_0x2aa312(0x1b1)]]=_0x1bdba3[_0x2aa312(0x17e)]||'',_0x21d719[TestFrameworkConstants[_0x2aa312(0x200)]]=_0x1bdba3[_0x2aa312(0x160)]):_0x21d719[TestFrameworkConstants[_0x2aa312(0x1ad)]]=_0x88c5fd[_0x2aa312(0x1a1)];_0x88c5fd[_0x2aa312(0x1a6)](_0x18dde9,TestFrameworkConstants[_0x2aa312(0x1e6)])&&(_0x21d719[TestFrameworkConstants[_0x2aa312(0x1ad)]]=_0x18dde9);_0x21d719[TestFrameworkConstants[_0x2aa312(0x1fd)]]=_0x1bdba3[_0x2aa312(0x1dc)]||new Date()[_0x2aa312(0x18b)](),_0x21d719[TestFrameworkConstants[_0x2aa312(0x1af)]]=_0x265c1a;const _0x36cdab=_0x21d719[TestFrameworkConstants[_0x2aa312(0x199)]];!_0x22d01a[_0x2a2ad9]&&(_0x22d01a[_0x2a2ad9]=[]),_0x22d01a[_0x2a2ad9][_0x2aa312(0x195)](_0x21d719),_0x59b8e2[_0x43db8d][TestFrameworkConstants[_0x2aa312(0x1c0)]]=_0x2a2ad9;}}}return logger[_0x2aa312(0x1ce)](_0x2aa312(0x189)+_0x1bdba3['hook_type']+_0x2aa312(0x1be)+_0x39fed5+'\x20for\x20test:\x20'+_0x43db8d),_0x59b8e2;}[a90_0x32eac2(0x1db)](_0x307018){const _0x346636=a90_0x32eac2,_0x3e2160={};_0x3e2160[_0x346636(0x216)]='base64';const _0x37c77a=_0x3e2160;try{const _0x1ff238=_0x307018[_0x346636(0x191)]?_0x307018[_0x346636(0x191)]['id']:_0x307018[_0x346636(0x20e)][_0x346636(0x196)],_0xfc842f=_0x307018[_0x346636(0x1ab)],_0x45bf1f=_0xfc842f[_0x346636(0x1e8)](),_0x1587a4=_0xfc842f[_0x346636(0x171)]()[_0x346636(0x1a0)](_0x1ff238);if(!_0x1587a4)return logger[_0x346636(0x1ce)](_0x346636(0x17c)+_0x1ff238),{};logger['debug']('createTestFrameworkEventPayload\x20testId:\x20'+_0x1ff238);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x59b997='',[TestFrameworkConstants[_0x346636(0x1e4)]]:_0x11b9be='',[TestFrameworkConstants[_0x346636(0x169)]]:_0x19ec46='',[TestFrameworkConstants[_0x346636(0x153)]]:_0x783707=''}=_0x1587a4,_0x2b6f53=_0xfc842f[_0x346636(0x174)]()[_0x346636(0x1b5)]()[_0x346636(0x1ec)]('.')[0x1],_0x58d10d=_0xfc842f[_0x346636(0x1dd)]()[_0x346636(0x1b5)]()[_0x346636(0x1ec)]('.')[0x1],_0x4a0df2=global?.[_0x346636(0x21d)]??0x0,_0x1fd49d=_0xfc842f[_0x346636(0x152)](),_0x3cb36c=Buffer[_0x346636(0x1bb)](JSON[_0x346636(0x20a)](_0x1587a4))[_0x346636(0x1b5)](_0x37c77a['kZJRz']),_0xf0ea30={'hash':_0x45bf1f[_0x346636(0x21a)](),'threadId':_0x45bf1f['getThreadId']()[_0x346636(0x1b5)](),'processId':_0x45bf1f[_0x346636(0x1b0)]()['toString']()},_0x8a3185={};_0x8a3185[_0x346636(0x202)]=_0x4a0df2,_0x8a3185[_0x346636(0x186)]=_0x59b997,_0x8a3185['testFrameworkVersion']=_0x11b9be,_0x8a3185[_0x346636(0x16f)]=_0x2b6f53,_0x8a3185[_0x346636(0x1d2)]=_0x58d10d,_0x8a3185[_0x346636(0x1d5)]=_0x19ec46,_0x8a3185[_0x346636(0x1a4)]=_0x783707,_0x8a3185[_0x346636(0x17a)]=_0x1fd49d,_0x8a3185['eventJson']=_0x3cb36c,_0x8a3185['executionContext']=_0xf0ea30;const _0x22081d=_0x8a3185;return logger[_0x346636(0x1ce)](_0x346636(0x1c6)+_0x1ff238+_0x346636(0x18f)+_0x2b6f53+'\x20hookState:\x20'+_0x58d10d),_0x22081d;}catch(_0x3109ed){return logger[_0x346636(0x18d)](_0x346636(0x1c9)+util['format'](_0x3109ed)),{};}}async[a90_0x32eac2(0x203)](_0x544889,_0x56b1be,_0x21a3c9){const _0x6135b7=a90_0x32eac2,_0xe0e23e={'HeAju':function(_0x4aaf5e,_0x67b4ce,_0xc5f0bc){return _0x4aaf5e(_0x67b4ce,_0xc5f0bc);},'BnjAd':function(_0x3a260d,_0x2ce232){return _0x3a260d===_0x2ce232;},'wePnB':_0x6135b7(0x182),'tZkIn':function(_0xe262c0,_0x4be8b3){return _0xe262c0/_0x4be8b3;},'YVUEg':function(_0x38acf1,_0x1110cc){return _0x38acf1<_0x1110cc;},'yntSu':function(_0x585fb7,_0xe51def){return _0x585fb7*_0xe51def;},'DWKYZ':function(_0x5dcea3,_0x3299bc){return _0x5dcea3+_0x3299bc;},'LVBqk':function(_0x26cf44,_0x2f639c){return _0x26cf44+_0x2f639c;},'wSqtA':_0x6135b7(0x1ca)};try{const _0x4a0f7b=_0x21a3c9[_0x6135b7(0x217)],_0x2fbdd6=_0x544889[_0x6135b7(0x171)]()[_0x6135b7(0x1a0)](_0x4a0f7b),{[TestFrameworkConstants[_0x6135b7(0x1ee)]]:_0x4ebc0f='',[TestFrameworkConstants[_0x6135b7(0x1e4)]]:_0xe9478e=''}=_0x2fbdd6,_0x5cc5d3=TestInfo[_0x6135b7(0x1d8)](_0x4a0f7b),_0xca5fda=TestInfo['getTestDetails'](_0x4a0f7b)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x5b4de2=_0xe0e23e[_0x6135b7(0x1df)](getMediaArtifactsLogs,_0xca5fda,_0x544889[_0x6135b7(0x171)]()['get'](_0x4a0f7b)[TestFrameworkConstants[_0x6135b7(0x1d6)]]),_0x53d7a5=(_0x5cc5d3||[])['concat'](_0x5b4de2||[]);if(!_0x53d7a5||_0xe0e23e[_0x6135b7(0x214)](_0x53d7a5[_0x6135b7(0x1de)],0x0)){logger['debug'](_0xe0e23e['wePnB']);return;}const _0x266d09=0x28,_0x28ff3c=Math[_0x6135b7(0x219)](_0xe0e23e[_0x6135b7(0x1cb)](_0x53d7a5['length'],_0x266d09));for(let _0x46dcb9=0x0;_0xe0e23e[_0x6135b7(0x1f8)](_0x46dcb9,_0x28ff3c);_0x46dcb9++){const _0x288931=_0xe0e23e[_0x6135b7(0x15d)](_0x46dcb9,_0x266d09),_0x1f5bc7=_0xe0e23e[_0x6135b7(0x212)](_0x288931,_0x266d09),_0x1262da=_0x53d7a5['slice'](_0x288931,_0x1f5bc7),_0x5d45d5={'platformIndex':global?.[_0x6135b7(0x21d)]??0x0,'logs':_0x1262da,'testFrameworkName':_0x4ebc0f,'testFrameworkVersion':_0xe9478e,'testFrameworkState':_0x56b1be[_0x6135b7(0x1b5)]()['split']('.')[0x1]};logger[_0x6135b7(0x1ce)](_0x6135b7(0x193)+_0x4a0f7b+'\x20batch\x20'+_0xe0e23e[_0x6135b7(0x1ae)](_0x46dcb9,0x1)+'/'+_0x28ff3c+_0x6135b7(0x197)+util[_0x6135b7(0x165)](_0x5d45d5));const _0xdf22d3=await GrpcClient[_0x6135b7(0x1ed)]()[_0x6135b7(0x1f3)](_0x5d45d5);logger[_0x6135b7(0x1ce)](_0x6135b7(0x193)+_0x4a0f7b+_0x6135b7(0x21c)+_0xe0e23e['DWKYZ'](_0x46dcb9,0x1)+'/'+_0x28ff3c+_0x6135b7(0x21b)+util[_0x6135b7(0x165)](_0xdf22d3));}}catch(_0x55e9ab){logger[_0x6135b7(0x18d)]('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util[_0x6135b7(0x159)](_0x55e9ab));}logger['debug'](_0xe0e23e[_0x6135b7(0x1bf)]);}[a90_0x32eac2(0x1f6)](_0x2be3fd,_0x2b4537,_0x30e1eb,_0x187bf8,_0x1357f9){const _0x35e062=a90_0x32eac2,_0x4cec94={'testId':_0x2b4537,'testFrameworkState':_0x30e1eb,'hookState':_0x187bf8,'args':_0x1357f9,'timestamp':new Date()['toISOString']()};_0x2be3fd[_0x35e062(0x20b)](_0x2b4537,_0x4cec94),logger[_0x35e062(0x1ce)](_0x35e062(0x154)+_0x2b4537+_0x35e062(0x17f)+_0x30e1eb+',\x20hookState:\x20'+_0x187bf8);}async[a90_0x32eac2(0x20f)](_0x575317,_0x2cce41){const _0x1af121=a90_0x32eac2,_0xa295ef={};_0xa295ef[_0x1af121(0x184)]=function(_0x45deef,_0x3f37c8){return _0x45deef>_0x3f37c8;};const _0x4e1c97=_0xa295ef;if(!_0x575317['hasPendingHooks'](_0x2cce41))return;const _0x3b2d6f=_0x575317[_0x1af121(0x1cf)](_0x2cce41);logger[_0x1af121(0x1ce)]('Processing\x20'+_0x3b2d6f[_0x1af121(0x1de)]+_0x1af121(0x180)+_0x2cce41);for(const _0x56c12a of _0x3b2d6f){try{const _0x4bdd9e=await this['trackHookEvent'](_0x575317,_0x56c12a[_0x1af121(0x16f)],_0x56c12a['hookState'],_0x56c12a[_0x1af121(0x17b)]);_0x4bdd9e&&_0x4e1c97['tLIFO'](Object[_0x1af121(0x1ef)](_0x4bdd9e)[_0x1af121(0x1de)],0x0)&&_0x575317['addMultipleEntries'](_0x4bdd9e),await this['runHooks'](_0x575317,_0x56c12a[_0x1af121(0x16f)],_0x56c12a[_0x1af121(0x1d2)],_0x56c12a[_0x1af121(0x17b)]);}catch(_0x4a4905){logger[_0x1af121(0x18d)](_0x1af121(0x16d)+_0x2cce41+',\x20error:\x20'+_0x4a4905);}}_0x575317[_0x1af121(0x18a)](_0x2cce41),logger[_0x1af121(0x1ce)](_0x1af121(0x1d7)+_0x2cce41);}}module[a90_0x32eac2(0x1a2)]=CucumberTestFramework;
|