browserstack-node-sdk 1.63.3 → 1.63.4
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/loadErrors.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/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/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/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 a85_0x52c9c7=a85_0x57f3;(function(_0xa2468d,_0x4fec90){const _0x2b54c3=a85_0x57f3,_0x5bdefb=_0xa2468d();while(!![]){try{const _0x2edad7=-parseInt(_0x2b54c3(0x112))/0x1+-parseInt(_0x2b54c3(0xc0))/0x2+-parseInt(_0x2b54c3(0x17b))/0x3*(parseInt(_0x2b54c3(0x100))/0x4)+parseInt(_0x2b54c3(0x148))/0x5*(parseInt(_0x2b54c3(0xfc))/0x6)+-parseInt(_0x2b54c3(0x11a))/0x7+parseInt(_0x2b54c3(0xcf))/0x8*(parseInt(_0x2b54c3(0xeb))/0x9)+parseInt(_0x2b54c3(0xfb))/0xa;if(_0x2edad7===_0x4fec90)break;else _0x5bdefb['push'](_0x5bdefb['shift']());}catch(_0x1ecbcb){_0x5bdefb['push'](_0x5bdefb['shift']());}}}(a85_0x3f88,0x32ed5));const fs=require('fs'),os=require('os'),url=require(a85_0x52c9c7(0xa4)),path=require(a85_0x52c9c7(0x8c)),{exec}=require('child_process'),{https}=require(a85_0x52c9c7(0xbd)),yauzl=require('yauzl'),util=require(a85_0x52c9c7(0xca)),{getFrameworkVersion}=require(a85_0x52c9c7(0xff)),{threadId}=require(a85_0x52c9c7(0x139)),PerformanceTester=require(a85_0x52c9c7(0xf3)),{EVENTS:PerformanceEvents}=require(a85_0x52c9c7(0xb7)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x52c9c7(0xe1)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x52c9c7(0xa2)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x52c9c7(0xed)),{createClassLogger}=require(a85_0x52c9c7(0xc4)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a85_0x52c9c7(0x176)),TestFrameworkState=require(a85_0x52c9c7(0xd3)),AutomationFrameworkState=require(a85_0x52c9c7(0x160)),TestFrameworkConstants=require(a85_0x52c9c7(0x13c)),logger=createClassLogger(a85_0x52c9c7(0x162)),{getBStackAPIUrl}=require('../utils/apiUtilityMethods.js');class CLIUtils{[a85_0x52c9c7(0x14a)]={};[a85_0x52c9c7(0xae)]={};static['isDevelopmentEnv'](){const _0x3774c2=a85_0x52c9c7,_0x15e56d={};_0x15e56d[_0x3774c2(0x135)]=function(_0xf8796d,_0x3b530e){return _0xf8796d===_0x3b530e;},_0x15e56d[_0x3774c2(0x10c)]=_0x3774c2(0xa6);const _0x5c131d=_0x15e56d;return _0x5c131d[_0x3774c2(0x135)](process['env'][_0x3774c2(0x109)],_0x5c131d[_0x3774c2(0x10c)]);}static['getCLIParamsForDevEnv'](){const _0x12edec=a85_0x52c9c7,_0x5d286d={};return _0x5d286d['id']=process[_0x12edec(0x16c)][_0x12edec(0x109)],_0x5d286d[_0x12edec(0x99)]=_0x12edec(0x15d)+process[_0x12edec(0x16c)][_0x12edec(0x109)]+'.sock',_0x5d286d;}static[a85_0x52c9c7(0x116)](){const _0x336fdd=a85_0x52c9c7,_0x432040={'HLjSv':function(_0x109306,_0x3b2b78){return _0x109306(_0x3b2b78);},'EUzhW':_0x336fdd(0x12d)};return _0x432040[_0x336fdd(0xc3)](require,_0x432040[_0x336fdd(0xd6)])[_0x336fdd(0x10f)];}static[a85_0x52c9c7(0x131)](){const _0x12d174=a85_0x52c9c7,_0x31e276={};_0x31e276[_0x12d174(0x165)]=_0x12d174(0x9a);const _0x1bccc9=_0x31e276;return _0x1bccc9[_0x12d174(0x165)];}static async[a85_0x52c9c7(0xb3)](_0x1787d5){const _0x231c13=a85_0x52c9c7,_0x579ff0={'FcSpV':_0x231c13(0x155),'sGrGO':function(_0x366025,_0x2ccff0){return _0x366025(_0x2ccff0);},'xbioK':_0x231c13(0xfa)};logger[_0x231c13(0xd0)](_0x579ff0['FcSpV']);const _0x186912=process['env'][_0x231c13(0xdf)];if(!_0x579ff0['sGrGO'](isNullOrEmpty,_0x186912))return logger[_0x231c13(0xd0)]('Development\x20Cli\x20Path:\x20'+_0x186912),_0x186912;try{const _0x2d483e=this['getCliDir']();if(_0x579ff0['sGrGO'](isNullOrEmpty,_0x2d483e))throw new Error(_0x579ff0[_0x231c13(0x133)]);const _0x27b050=this['getExistingCliPath'](_0x2d483e),_0x3cc880=await this['checkAndUpdateCli'](_0x27b050,_0x2d483e,_0x1787d5);return logger[_0x231c13(0xd0)](_0x231c13(0xde)+_0x3cc880),_0x3cc880;}catch(_0x1ba91c){logger[_0x231c13(0xd0)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x231c13(0x10e)](_0x1ba91c));}return null;}static async['checkAndUpdateCli'](_0x4bcd01,_0xf60803,_0x3f815c){const _0x3b9a59=a85_0x52c9c7,_0x2dadec={'zwotV':function(_0x3b6191){return _0x3b6191();},'gYLEX':function(_0x54e409,_0x17c22a){return _0x54e409(_0x17c22a);},'uWVca':function(_0x1bd40e,_0x55682e,_0xc4a59a){return _0x1bd40e(_0x55682e,_0xc4a59a);},'TvbKz':_0x3b9a59(0x14e),'BHnvL':'url','xaaqt':function(_0xa65e79,_0x28b7e0,_0x27e999){return _0xa65e79(_0x28b7e0,_0x27e999);}};PerformanceTester[_0x3b9a59(0x108)](PerformanceEvents[_0x3b9a59(0x11f)]);try{logger[_0x3b9a59(0xc9)](_0x3b9a59(0x121)+_0x4bcd01);const _0x1cd8bf=_0x2dadec[_0x3b9a59(0xa3)](getHostInfo),_0x48f6e2={'sdk_version':CLIUtils[_0x3b9a59(0x116)](),'os':_0x1cd8bf[_0x3b9a59(0x120)],'os_arch':_0x1cd8bf[_0x3b9a59(0x13f)],'cli_version':'0','sdk_language':this[_0x3b9a59(0x131)]()};!_0x2dadec[_0x3b9a59(0x8d)](isNullOrEmpty,_0x4bcd01)&&(_0x48f6e2[_0x3b9a59(0x110)]=await this[_0x3b9a59(0xbf)](_0x4bcd01+_0x3b9a59(0x123)));const _0xee13f=await this[_0x3b9a59(0x178)](_0x48f6e2,_0x3f815c);process[_0x3b9a59(0x16c)][_0x3b9a59(0xe3)]&&(logger['info'](_0x3b9a59(0x8e)+process[_0x3b9a59(0x16c)][_0x3b9a59(0xe3)]),_0xee13f[_0x3b9a59(0x14e)]['url']=process['env']['BROWSERSTACK_BINARY_URL']);if(_0x2dadec['uWVca'](nestedKeyValue,_0xee13f,[_0x2dadec[_0x3b9a59(0x93)],_0x2dadec[_0x3b9a59(0x107)]])){logger['debug']('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x48f6e2[_0x3b9a59(0x110)]);if(!_0x2dadec[_0x3b9a59(0x8d)](isNullOrEmpty,_0x4bcd01)&&this[_0x3b9a59(0x157)](_0x4bcd01))return logger[_0x3b9a59(0x8a)](_0x3b9a59(0x9b)+_0x4bcd01),_0x4bcd01;return await this['downloadLatestBinary'](_0x2dadec['xaaqt'](nestedKeyValue,_0xee13f,[_0x2dadec['TvbKz'],_0x2dadec[_0x3b9a59(0x107)]]),_0xf60803);}return _0x4bcd01;}finally{PerformanceTester['end'](PerformanceEvents[_0x3b9a59(0x11f)]);}}static[a85_0x52c9c7(0x11c)](){const _0xcabb28=a85_0x52c9c7,_0x2f07d4={'GwPml':function(_0x209adc,_0x50362e){return _0x209adc(_0x50362e);},'rXoVQ':_0xcabb28(0xfa),'QUqRe':_0xcabb28(0x156),'SIvsd':function(_0x6299b1,_0x5234a3){return _0x6299b1(_0x5234a3);}},_0x342967=this[_0xcabb28(0xf8)]();try{if(_0x2f07d4[_0xcabb28(0xd9)](isNullOrEmpty,_0x342967))throw new Error(_0x2f07d4[_0xcabb28(0x15a)]);const _0xfd12bd=path[_0xcabb28(0xf0)](_0x342967,_0x2f07d4[_0xcabb28(0xd5)]);return!fs[_0xcabb28(0x171)](_0xfd12bd)&&_0x2f07d4[_0xcabb28(0x125)](createDir,_0xfd12bd),_0xfd12bd;}catch(_0x3c4112){logger[_0xcabb28(0xd0)](_0xcabb28(0x144)+util[_0xcabb28(0x10e)](_0x3c4112));}}static[a85_0x52c9c7(0xf8)](){const _0x16a5f3=a85_0x52c9c7,_0x29911a={'rvBJM':_0x16a5f3(0x94),'ZeRLG':function(_0x63d5e5,_0xc97d44){return _0x63d5e5(_0xc97d44);},'DiAgh':function(_0x3ca1c,_0x311b25){return _0x3ca1c(_0x311b25);},'shtmu':function(_0xf53a78,_0x41b18b){return _0xf53a78(_0x41b18b);},'jcALn':function(_0x235db4,_0x36c38b){return _0x235db4(_0x36c38b);}},_0x1007fc=[process['env']['BROWSERSTACK_FILES_DIR'],path['join'](os['homedir'](),_0x29911a[_0x16a5f3(0x92)]),path[_0x16a5f3(0xf0)](os[_0x16a5f3(0x114)](),_0x29911a[_0x16a5f3(0x92)])];for(const _0xa678ae of _0x1007fc){if(_0x29911a['ZeRLG'](isNullOrEmpty,_0xa678ae))continue;try{if(fs[_0x16a5f3(0x171)](_0xa678ae)){logger[_0x16a5f3(0xd0)](_0x16a5f3(0xb0)+_0xa678ae+_0x16a5f3(0xb5));if(!_0x29911a['ZeRLG'](isModifiable,_0xa678ae)){logger[_0x16a5f3(0xd0)](_0x16a5f3(0x169)+_0xa678ae);const _0x391132=_0x29911a['ZeRLG'](setReadWriteExecuteAccess,_0xa678ae);if(!_0x29911a[_0x16a5f3(0xfe)](isTrue,_0x391132)){logger[_0x16a5f3(0x8a)](_0x16a5f3(0x16e)+_0xa678ae);continue;}}}else{logger['debug'](_0x16a5f3(0x153)+_0xa678ae),_0x29911a[_0x16a5f3(0x90)](createDir,_0xa678ae),logger[_0x16a5f3(0xd0)](_0x16a5f3(0x169)+_0xa678ae);const _0x20a101=_0x29911a[_0x16a5f3(0xbc)](setReadWriteExecuteAccess,_0xa678ae);!_0x29911a[_0x16a5f3(0xba)](isTrue,_0x20a101)&&logger[_0x16a5f3(0x8a)](_0x16a5f3(0x16e)+_0xa678ae);}return _0xa678ae;}catch(_0x1bb3ad){logger[_0x16a5f3(0x141)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x16a5f3(0x10e)](_0x1bb3ad));}}return null;}static['getExistingCliPath'](_0x17c91a){const _0x18f320=a85_0x52c9c7,_0x2e9537={};_0x2e9537[_0x18f320(0x173)]=function(_0x3c326e,_0x4315d5){return _0x3c326e>_0x4315d5;},_0x2e9537[_0x18f320(0x111)]=function(_0x572fab,_0xb80e33){return _0x572fab>_0xb80e33;};const _0x4d4b5d=_0x2e9537;try{if(!fs[_0x18f320(0x171)](_0x17c91a)||!fs[_0x18f320(0xe5)](_0x17c91a)[_0x18f320(0x104)]())return'';const _0x245952=fs[_0x18f320(0x177)](_0x17c91a)[_0x18f320(0x14f)](_0x3673d4=>path[_0x18f320(0xf0)](_0x17c91a,_0x3673d4))[_0x18f320(0xb2)](_0x2ee23a=>fs[_0x18f320(0xe5)](_0x2ee23a)[_0x18f320(0xf6)]()&&path[_0x18f320(0x127)](_0x2ee23a)[_0x18f320(0x138)](_0x18f320(0x12e)));if(_0x4d4b5d[_0x18f320(0x111)](_0x245952[_0x18f320(0x105)],0x0)){const _0xe088ed=_0x245952[_0x18f320(0x14f)](_0x289be4=>({'filePath':_0x289be4,'mtime':fs['statSync'](_0x289be4)[_0x18f320(0x159)]}))[_0x18f320(0xaa)]((_0x158369,_0x23eeef)=>{const _0x5b3b7e=_0x18f320;if(!_0x158369||!_0x158369['mtime'])return _0x23eeef;if(_0x4d4b5d[_0x5b3b7e(0x173)](_0x23eeef[_0x5b3b7e(0x159)],_0x158369[_0x5b3b7e(0x159)]))return _0x23eeef;return _0x158369;},{});return _0xe088ed?_0xe088ed[_0x18f320(0x14d)]:'';}return'';}catch(_0x272183){return logger[_0x18f320(0x141)](_0x18f320(0x17a)+util[_0x18f320(0x10e)](_0x272183)),'';}}static [a85_0x52c9c7(0x178)]=async(_0x45cf88,_0xd9491f)=>{const _0x4e3983=a85_0x52c9c7,_0x1c412f={'Qzybf':function(_0x9ca57d,_0x1ac0c0,_0xa9091d,_0x5e52f7,_0x4f9f62){return _0x9ca57d(_0x1ac0c0,_0xa9091d,_0x5e52f7,_0x4f9f62);},'RqVgk':_0x4e3983(0xf1)},_0xcd621b={};_0xcd621b['qs']=_0x45cf88,_0xcd621b[_0x4e3983(0x9e)]=!![];const _0x5fb5af=await _0x1c412f['Qzybf'](nodeRequest,_0x1c412f[_0x4e3983(0xef)],UPDATED_CLI_ENDPOINT,_0xcd621b,_0xd9491f);return logger[_0x4e3983(0xd0)](_0x4e3983(0xd2)+JSON[_0x4e3983(0xb8)](_0x5fb5af)),_0x5fb5af;};static[a85_0x52c9c7(0x157)](_0x25785d){const _0x52430a=a85_0x52c9c7;try{const _0x240a7c=fs[_0x52430a(0x17e)](_0x25785d,'r+');return fs['closeSync'](_0x240a7c),![];}catch(_0x141fef){if(BINARY_BUSY_ERROR_CODES[_0x52430a(0x132)](_0x141fef[_0x52430a(0x175)]))return logger['debug'](_0x52430a(0x9f)+_0x25785d),!![];return logger[_0x52430a(0xd0)](_0x52430a(0xe0)+_0x141fef[_0x52430a(0x16d)]),![];}}static['runShellCommand'](_0x122831,_0x4c41b8=''){const _0x4f39b1=a85_0x52c9c7,_0x4e1019={'CHEZO':'version','oDNBF':function(_0x4a91b5,_0x5a62e8){return _0x4a91b5(_0x5a62e8);},'pUKVU':_0x4f39b1(0x17d),'BMdSw':function(_0x5a3ad6,_0xd315a9,_0x14bc66,_0x52b32c){return _0x5a3ad6(_0xd315a9,_0x14bc66,_0x52b32c);},'nXqtN':_0x4f39b1(0x141)};return new Promise((_0x598b41,_0x1fb83f)=>{const _0x3cf30e=_0x4f39b1,_0x25ae5e={'iqkiF':_0x4e1019[_0x3cf30e(0x13a)],'qjOXU':function(_0xd7a6bb,_0x1b86cf){return _0x4e1019['oDNBF'](_0xd7a6bb,_0x1b86cf);},'CNDnB':_0x4e1019[_0x3cf30e(0x10d)],'wmRrV':function(_0x501197,_0x1a9594){const _0x33174b=_0x3cf30e;return _0x4e1019[_0x33174b(0xdb)](_0x501197,_0x1a9594);}},_0x42da51={};_0x42da51[_0x3cf30e(0xf9)]=_0x4c41b8,_0x42da51[_0x3cf30e(0xcc)]=0x1388;const _0x15435c=_0x4e1019['BMdSw'](exec,_0x122831,_0x42da51,(_0x2c4b3c,_0x44fba5,_0x5222cb)=>{const _0x571534=_0x3cf30e;if(_0x2c4b3c){if(_0x122831['includes'](_0x25ae5e['iqkiF'])&&(_0x44fba5[_0x571534(0x17c)]()||_0x5222cb[_0x571534(0x17c)]())){const _0x155142=_0x44fba5[_0x571534(0x17c)]()||_0x5222cb[_0x571534(0x17c)]();logger[_0x571534(0xd0)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x155142+'\x22'),_0x25ae5e['qjOXU'](_0x598b41,_0x155142);}else _0x25ae5e[_0x571534(0x174)](_0x598b41,_0x5222cb['trim']()||_0x25ae5e[_0x571534(0x10a)]);}else logger[_0x571534(0xd0)]('Resolving\x20with\x20stdout:\x20\x22'+_0x44fba5['trim']()+'\x22'),_0x25ae5e[_0x571534(0x16a)](_0x598b41,_0x44fba5[_0x571534(0x17c)]());});_0x15435c['on'](_0x4e1019[_0x3cf30e(0x13b)],()=>{const _0x3b71a2=_0x3cf30e;_0x25ae5e['wmRrV'](_0x598b41,_0x25ae5e[_0x3b71a2(0x10a)]);});});}static [a85_0x52c9c7(0x128)]=async(_0x319588,_0x1a6e52)=>{const _0x4dac61=a85_0x52c9c7,_0x2b0eb4={'OhgEx':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','kEOsl':function(_0x23a953,_0x451c40){return _0x23a953(_0x451c40);},'FkOeb':_0x4dac61(0x13d),'yuSgv':function(_0x14a871,_0x228b84){return _0x14a871(_0x228b84);},'OUjOI':function(_0x29b918,_0x351f9d){return _0x29b918>=_0x351f9d;},'cIOOc':_0x4dac61(0x149),'xUFOK':'SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','loRpK':_0x4dac61(0x141),'EXOot':_0x4dac61(0x102)};PerformanceTester['start'](PerformanceEvents[_0x4dac61(0x119)]),logger[_0x4dac61(0xd0)](_0x4dac61(0x15c)+_0x319588);try{const _0x398309=url[_0x4dac61(0xc5)](_0x319588),_0x172fd4=path['join'](_0x1a6e52,'downloaded_file_'+process[_0x4dac61(0x12f)]+_0x4dac61(0x158)),_0x2d8c9f=fs[_0x4dac61(0xd8)](_0x172fd4);return new Promise((_0x3da708,_0xc42f98)=>{const _0x15e619=_0x4dac61,_0x293c5b={'iZzaT':_0x2b0eb4[_0x15e619(0xce)],'HanfI':function(_0x4c017c,_0x55cef7){const _0x566be3=_0x15e619;return _0x2b0eb4[_0x566be3(0x147)](_0x4c017c,_0x55cef7);},'AhVsG':_0x2b0eb4[_0x15e619(0x180)],'HeiZO':function(_0x2c4963,_0x47eb77){const _0x4345d5=_0x15e619;return _0x2b0eb4[_0x4345d5(0xee)](_0x2c4963,_0x47eb77);},'BgzMC':function(_0x50f812,_0x524ca0){const _0x5bddc2=_0x15e619;return _0x2b0eb4[_0x5bddc2(0xd1)](_0x50f812,_0x524ca0);},'cwqrR':_0x2b0eb4[_0x15e619(0x179)],'KCwon':_0x2b0eb4['xUFOK'],'BHFRz':_0x2b0eb4[_0x15e619(0x9c)]};https['get'](_0x398309,function(_0x485660){const _0x3e73fe=_0x15e619,_0x121523=null;if(_0x485660['statusCode']&&_0x293c5b[_0x3e73fe(0x143)](_0x485660['statusCode'],0x190)){const _0x201db0=new Error(_0x3e73fe(0x89)+_0x485660[_0x3e73fe(0x134)]+_0x3e73fe(0x14b)+_0x319588);_0x201db0[_0x3e73fe(0x175)]=_0x293c5b[_0x3e73fe(0xe8)],_0x201db0[_0x3e73fe(0x134)]=_0x485660[_0x3e73fe(0x134)],logger[_0x3e73fe(0x141)](util[_0x3e73fe(0x10e)](_0x293c5b[_0x3e73fe(0x11e)],_0x485660[_0x3e73fe(0x134)])),PerformanceTester[_0x3e73fe(0x8b)](PerformanceEvents[_0x3e73fe(0x119)],![],'HTTP\x20'+_0x485660[_0x3e73fe(0x134)]),_0x485660[_0x3e73fe(0x17f)](),_0x2d8c9f[_0x3e73fe(0xa1)](),fs[_0x3e73fe(0x137)](_0x172fd4,()=>{}),_0x293c5b[_0x3e73fe(0xd4)](_0xc42f98,_0x201db0);return;}_0x485660['pipe'](_0x2d8c9f),_0x485660['on'](_0x293c5b[_0x3e73fe(0x96)],function(_0x4097ca){const _0x591df6=_0x3e73fe;logger[_0x591df6(0x141)](util[_0x591df6(0x10e)](_0x293c5b[_0x591df6(0x11b)],_0x4097ca)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x4097ca)),_0x293c5b[_0x591df6(0x145)](_0xc42f98,_0x4097ca);}),_0x2d8c9f['on'](_0x293c5b[_0x3e73fe(0x96)],function(_0x29467b){const _0x4320a1=_0x3e73fe;logger[_0x4320a1(0x141)](util[_0x4320a1(0x10e)](_0x293c5b[_0x4320a1(0xc8)],_0x29467b)),PerformanceTester[_0x4320a1(0x8b)](PerformanceEvents[_0x4320a1(0x119)],![],util[_0x4320a1(0x10e)](_0x29467b)),_0x293c5b[_0x4320a1(0x145)](_0xc42f98,_0x29467b);}),CLIUtils[_0x3e73fe(0xea)](_0x2d8c9f,_0x121523,_0x172fd4,_0x1a6e52,_0x116576=>{PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x293c5b['HeiZO'](_0x3da708,_0x116576);},_0x50df25=>{const _0x1ae128=_0x3e73fe;PerformanceTester['end'](PerformanceEvents[_0x1ae128(0x119)],![],util[_0x1ae128(0x10e)](_0x50df25)),_0x293c5b['HanfI'](_0xc42f98,_0x50df25);});})['on'](_0x2b0eb4['loRpK'],function(_0x5871d7){const _0x304521=_0x15e619;logger[_0x304521(0x141)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x304521(0x10e)](_0x5871d7)),PerformanceTester[_0x304521(0x8b)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x304521(0x10e)](_0x5871d7)),_0x293c5b[_0x304521(0x145)](_0xc42f98,_0x5871d7);});});}catch(_0x14e325){PerformanceTester[_0x4dac61(0x8b)](PerformanceEvents[_0x4dac61(0x119)],![],util[_0x4dac61(0x10e)](_0x14e325)),logger[_0x4dac61(0x141)](util[_0x4dac61(0x10e)](_0x2b0eb4[_0x4dac61(0xc1)],_0x14e325));throw _0x14e325;}};static[a85_0x52c9c7(0xea)](_0x82ce61,_0x4f29fd,_0x299616,_0x46011f,_0x20c21b,_0x86dcd2){const _0x126008=a85_0x52c9c7,_0xd302e1={'EDoUR':function(_0x34251b,_0x5690e3){return _0x34251b(_0x5690e3);},'ktsPi':function(_0x548599,_0x3db6b8){return _0x548599(_0x3db6b8);},'sPLPF':_0x126008(0xec),'dGiAs':_0x126008(0x8b),'RLdTq':function(_0x154342,_0x49f52d){return _0x154342!==_0x49f52d;},'rMHHC':function(_0x3644a9,_0x7fc90){return _0x3644a9(_0x7fc90);},'yTXxY':'error','liygy':_0x126008(0xb4),'DuoYp':_0x126008(0xc6),'austq':_0x126008(0xd7)};_0x82ce61['on'](_0xd302e1[_0x126008(0x98)],function(){const _0x2b8b43=_0x126008,_0x3a2fe2={'FVsxw':function(_0x4080a3,_0xda6548){const _0x416057=a85_0x57f3;return _0xd302e1[_0x416057(0x12b)](_0x4080a3,_0xda6548);},'vsvWy':function(_0x23e520,_0x4aa415){const _0x4782e8=a85_0x57f3;return _0xd302e1[_0x4782e8(0x88)](_0x23e520,_0x4aa415);},'UmcaB':_0xd302e1['sPLPF'],'awjsr':_0xd302e1[_0x2b8b43(0x136)],'qntMZ':function(_0xa99deb,_0x36ef7f){return _0xd302e1['RLdTq'](_0xa99deb,_0x36ef7f);},'WctOH':function(_0x1839c6,_0x5b9e63){const _0x4c26f5=_0x2b8b43;return _0xd302e1[_0x4c26f5(0xb9)](_0x1839c6,_0x5b9e63);},'BGXJH':_0xd302e1[_0x2b8b43(0x16f)],'heaST':_0xd302e1['liygy'],'WbCue':function(_0x52d010,_0x426d91){const _0x1bfcf8=_0x2b8b43;return _0xd302e1[_0x1bfcf8(0xb9)](_0x52d010,_0x426d91);},'diHdu':_0xd302e1[_0x2b8b43(0x103)],'jVxrB':_0xd302e1[_0x2b8b43(0xe4)]},_0x4af2f5={};_0x4af2f5[_0x2b8b43(0x166)]=!![],yauzl[_0x2b8b43(0xe6)](_0x299616,_0x4af2f5,function(_0x51568c,_0x36a068){const _0x5e4b8e=_0x2b8b43,_0x11287d={'xoAiK':function(_0x1f1364,_0x34f019){return _0x3a2fe2['vsvWy'](_0x1f1364,_0x34f019);},'ULwYY':_0x3a2fe2[_0x5e4b8e(0x9d)],'xxlwo':_0x3a2fe2[_0x5e4b8e(0x172)],'QecKz':function(_0x5b43bb,_0x4d7b7e){const _0x4853a7=_0x5e4b8e;return _0x3a2fe2[_0x4853a7(0xa8)](_0x5b43bb,_0x4d7b7e);},'UxmJc':function(_0x5cc000,_0x168260){const _0x4b149a=_0x5e4b8e;return _0x3a2fe2[_0x4b149a(0xb6)](_0x5cc000,_0x168260);},'WFFOs':function(_0x5cb8e5,_0x503234){const _0x3c41fc=_0x5e4b8e;return _0x3a2fe2[_0x3c41fc(0x15e)](_0x5cb8e5,_0x503234);},'chkkd':_0x3a2fe2[_0x5e4b8e(0x97)],'eAqmi':_0x3a2fe2[_0x5e4b8e(0x163)],'FjSsR':function(_0xc584f5,_0x15a8ca){const _0x29b153=_0x5e4b8e;return _0x3a2fe2[_0x29b153(0xf2)](_0xc584f5,_0x15a8ca);},'gJczl':function(_0x2fc919,_0x104bb8){const _0x3a19b4=_0x5e4b8e;return _0x3a2fe2[_0x3a19b4(0x15e)](_0x2fc919,_0x104bb8);},'sakAN':_0x3a2fe2['diHdu']};if(_0x51568c){_0x3a2fe2[_0x5e4b8e(0xf2)](_0x86dcd2,_0x51568c);return;}_0x36a068[_0x5e4b8e(0xad)](),_0x36a068['on'](_0x3a2fe2[_0x5e4b8e(0x95)],_0x4458fb=>{const _0x5ec695=_0x5e4b8e,_0x41e373={'EXWyp':function(_0x937d59,_0x236df0){return _0x11287d['xoAiK'](_0x937d59,_0x236df0);},'Oggvt':function(_0xd5f64d,_0x432884){const _0x57f9db=a85_0x57f3;return _0x11287d[_0x57f9db(0xbb)](_0xd5f64d,_0x432884);},'QNTtn':_0x11287d[_0x5ec695(0x122)],'fMtYL':function(_0x40d0c5,_0x3df224){const _0x2ddf7e=_0x5ec695;return _0x11287d[_0x2ddf7e(0xbb)](_0x40d0c5,_0x3df224);},'aFidN':_0x11287d['xxlwo']};if(/\/$/[_0x5ec695(0x181)](_0x4458fb['fileName'])){_0x36a068[_0x5ec695(0xad)]();return;}!_0x4f29fd&&(_0x4f29fd=_0x4458fb[_0x5ec695(0x146)]);if(_0x11287d[_0x5ec695(0x13e)](_0x4458fb['fileName'],_0x4f29fd))_0x36a068[_0x5ec695(0xad)]();else{const _0x5445e9=_0x4458fb[_0x5ec695(0x146)],_0x18df05=path['join'](_0x46011f,_0x5445e9+_0x5ec695(0xac)+process['pid']);let _0x724925;try{_0x724925=fs[_0x5ec695(0xd8)](_0x18df05);}catch(_0x4da31a){if(BINARY_BUSY_ERROR_CODES[_0x5ec695(0x132)](_0x4da31a[_0x5ec695(0x175)])){const _0x5834f8=path[_0x5ec695(0xf0)](_0x46011f,_0x5445e9);if(fs['existsSync'](_0x5834f8)){logger['warn'](_0x5ec695(0x151)+_0x5445e9),fs['unlink'](_0x299616,_0x545e65=>{const _0x2c4370=_0x5ec695;_0x545e65&&logger[_0x2c4370(0x8a)](_0x2c4370(0x8f)+_0x299616);}),_0x11287d[_0x5ec695(0x150)](_0x20c21b,_0x5834f8);return;}logger['warn'](_0x5ec695(0xc2)+_0x5445e9);}_0x11287d[_0x5ec695(0x14c)](_0x86dcd2,_0x4da31a);return;}_0x724925['on'](_0x11287d[_0x5ec695(0x15b)],_0x23bd0b=>{const _0x7e8012=_0x5ec695;if(BINARY_BUSY_ERROR_CODES[_0x7e8012(0x132)](_0x23bd0b[_0x7e8012(0x175)])){const _0x2dc6e3=path[_0x7e8012(0xf0)](_0x46011f,_0x5445e9);_0x724925['close'](),fs[_0x7e8012(0x171)](_0x2dc6e3)?(logger[_0x7e8012(0x8a)](_0x7e8012(0x10b)+_0x23bd0b[_0x7e8012(0x16d)]),_0x36a068['close'](),fs[_0x7e8012(0x137)](_0x299616,_0x2d435d=>{const _0x36a70d=_0x7e8012;_0x2d435d&&logger[_0x36a70d(0x8a)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x299616);}),_0x41e373['EXWyp'](_0x20c21b,_0x2dc6e3)):(logger['warn'](_0x7e8012(0x161)+_0x23bd0b[_0x7e8012(0x16d)]),fs[_0x7e8012(0x137)](_0x18df05,()=>{}),_0x41e373[_0x7e8012(0x106)](_0x86dcd2,_0x23bd0b));}else fs[_0x7e8012(0x137)](_0x18df05,()=>{}),_0x41e373[_0x7e8012(0x106)](_0x86dcd2,_0x23bd0b);}),_0x36a068[_0x5ec695(0xdd)](_0x4458fb,function(_0x488d8a,_0x37ad89){const _0x31395f=_0x5ec695,_0x564743={};_0x564743[_0x31395f(0x11d)]=_0x41e373[_0x31395f(0xe7)];const _0x470750=_0x564743;if(_0x488d8a){fs[_0x31395f(0x137)](_0x18df05,()=>{}),_0x41e373['fMtYL'](_0x86dcd2,_0x488d8a);return;}_0x37ad89['on'](_0x41e373[_0x31395f(0x115)],function(){const _0x255d65=_0x31395f;_0x724925['end'](),_0x724925['on'](_0x470750[_0x255d65(0x11d)],function(){_0x36a068['readEntry']();});}),_0x37ad89[_0x31395f(0x12a)](_0x724925);});}}),_0x36a068['on'](_0x3a2fe2['BGXJH'],_0x49c33a=>{const _0x436807=_0x5e4b8e;_0x3a2fe2[_0x436807(0xb6)](_0x86dcd2,_0x49c33a);}),_0x36a068['once'](_0x3a2fe2[_0x5e4b8e(0x172)],()=>{const _0x1bbd48=_0x5e4b8e,_0x1adb1a={'eHrcz':function(_0x4771c8,_0x36e4f7){const _0x57ef97=a85_0x57f3;return _0x11287d[_0x57ef97(0x13e)](_0x4771c8,_0x36e4f7);},'TRdxS':_0x11287d[_0x1bbd48(0xe2)],'suRJr':function(_0x14c408,_0x40869c){const _0x1bf767=_0x1bbd48;return _0x11287d[_0x1bf767(0x170)](_0x14c408,_0x40869c);},'SwEWE':function(_0x15dcf5,_0x434e9b){const _0x2f5eaa=_0x1bbd48;return _0x11287d[_0x2f5eaa(0xcd)](_0x15dcf5,_0x434e9b);}};fs[_0x1bbd48(0x137)](_0x299616,_0x28a522=>{const _0x5e1e44=_0x1bbd48;_0x28a522&&logger[_0x5e1e44(0x8a)](_0x5e1e44(0x8f)+_0x299616);});const _0x4e2381=path['join'](_0x46011f,_0x4f29fd+_0x1bbd48(0xac)+process[_0x1bbd48(0x12f)]),_0x1e1ef5=path[_0x1bbd48(0xf0)](_0x46011f,_0x4f29fd);fs[_0x1bbd48(0x140)](_0x4e2381,_0x11287d[_0x1bbd48(0x142)],function(_0x5331e9){const _0x549874=_0x1bbd48,_0x279e5f={'Sefeh':function(_0x27379d,_0x55651b){return _0x1adb1a['eHrcz'](_0x27379d,_0x55651b);},'Pdula':_0x1adb1a[_0x549874(0xa9)],'hyHQX':function(_0x439ea6,_0x32e301){const _0x32727e=_0x549874;return _0x1adb1a[_0x32727e(0xf4)](_0x439ea6,_0x32e301);}};if(_0x5331e9){_0x36a068[_0x549874(0xec)](),fs[_0x549874(0x137)](_0x4e2381,()=>{}),_0x1adb1a[_0x549874(0xfd)](_0x86dcd2,_0x5331e9);return;}fs['rename'](_0x4e2381,_0x1e1ef5,function(_0x22ec20){const _0x5b02b9=_0x549874;if(_0x22ec20){if(_0x279e5f['Sefeh'](_0x22ec20[_0x5b02b9(0x175)],_0x279e5f[_0x5b02b9(0xab)])){_0x36a068['close'](),fs[_0x5b02b9(0x137)](_0x4e2381,()=>{}),_0x279e5f[_0x5b02b9(0x101)](_0x86dcd2,_0x22ec20);return;}logger[_0x5b02b9(0x8a)](_0x5b02b9(0xdc)+_0x22ec20[_0x5b02b9(0x16d)]);try{fs[_0x5b02b9(0xa0)](_0x4e2381,_0x1e1ef5);}catch(_0x340c32){_0x36a068[_0x5b02b9(0xec)](),fs['unlink'](_0x4e2381,()=>{}),_0x279e5f[_0x5b02b9(0x101)](_0x86dcd2,_0x340c32);return;}fs['unlink'](_0x4e2381,_0x148009=>{const _0xd2a3d1=_0x5b02b9;_0x148009&&logger[_0xd2a3d1(0x8a)](_0xd2a3d1(0x168)+_0x148009[_0xd2a3d1(0x16d)]);});}_0x36a068[_0x5b02b9(0xec)](),_0x279e5f[_0x5b02b9(0x101)](_0x20c21b,_0x1e1ef5);});});});});});}static[a85_0x52c9c7(0x113)](){const _0x3196ef=a85_0x52c9c7;if(process['env'][_0x3196ef(0xc7)])return JSON[_0x3196ef(0xc5)](process[_0x3196ef(0x16c)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this[_0x3196ef(0xae)];}static[a85_0x52c9c7(0x129)](){const _0x4e0905=a85_0x52c9c7;if(process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x4e0905(0xc5)](process[_0x4e0905(0x16c)][_0x4e0905(0x164)]);return this[_0x4e0905(0x14a)];}static['setFrameworkDetail'](_0x447666,_0x2e7044){const _0x3db7b7=a85_0x52c9c7,_0x357098={'WEctY':'1|3|2|0|4','iicXD':function(_0x14d960,_0x1ad742){return _0x14d960||_0x1ad742;},'laApn':function(_0x4cdc9f,_0x4a4f1b){return _0x4cdc9f(_0x4a4f1b);},'YDNwS':function(_0x2799a8,_0x1ddb6f){return _0x2799a8(_0x1ddb6f);}},_0x1996e1=_0x357098[_0x3db7b7(0xe9)][_0x3db7b7(0xf5)]('|');let _0x47ee59=0x0;while(!![]){switch(_0x1996e1[_0x47ee59++]){case'0':process[_0x3db7b7(0x16c)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON['stringify'](this[_0x3db7b7(0x14a)]);continue;case'1':_0x357098[_0x3db7b7(0x152)](!_0x447666,!_0x2e7044)&&logger[_0x3db7b7(0xd0)](_0x3db7b7(0x12c)+_0x447666+',\x20automationFramework='+_0x2e7044);continue;case'2':this[_0x3db7b7(0x14a)]={'name':_0x2e7044,'version':_0x357098[_0x3db7b7(0x126)](getFrameworkVersion,_0x2e7044)};continue;case'3':this[_0x3db7b7(0xae)]={'name':_0x447666,'version':{[_0x447666]:_0x357098[_0x3db7b7(0x15f)](getFrameworkVersion,_0x447666)}};continue;case'4':process[_0x3db7b7(0x16c)][_0x3db7b7(0xc7)]=JSON[_0x3db7b7(0xb8)](this[_0x3db7b7(0xae)]);continue;}break;}}static[a85_0x52c9c7(0xb1)](_0x249110,_0x4e610a){return _0x249110+':'+_0x4e610a;}static[a85_0x52c9c7(0x124)](){return process['pid']+':'+threadId;}static[a85_0x52c9c7(0xf7)](_0x4adf6c){const _0x429ebf=a85_0x52c9c7;if(_0x4adf6c[_0x429ebf(0xa7)]&&_0x4adf6c['testContextOptions']['skipSessionName'])return!![];return![];}static['shouldSkipSessionStatus'](_0x5e785d){const _0x394a53=a85_0x52c9c7;if(_0x5e785d[_0x394a53(0xa7)]&&_0x5e785d[_0x394a53(0xa7)][_0x394a53(0x118)])return!![];return![];}static[a85_0x52c9c7(0xa5)](_0x5f09db){const _0x5cd42b=a85_0x52c9c7,_0x46c3c3=new RegExp(TestFrameworkConstants[_0x5cd42b(0xbe)]);return _0x46c3c3[_0x5cd42b(0x181)](_0x5f09db);}static['mergeObject'](_0x534a3f,_0x1e767c){const _0x17a4ad=a85_0x52c9c7,_0x1b668b={};_0x1b668b[_0x17a4ad(0x154)]=function(_0x329945,_0x1778a2){return _0x329945!==_0x1778a2;},_0x1b668b[_0x17a4ad(0x91)]=function(_0xbbf060,_0x1e356f){return _0xbbf060===_0x1e356f;},_0x1b668b['SeVmw']=_0x17a4ad(0x167);const _0x33e0d2=_0x1b668b;for(const [_0x7f40c8,_0x380007]of Object[_0x17a4ad(0x16b)](_0x1e767c)){if(_0x33e0d2[_0x17a4ad(0x154)](_0x380007,null)&&_0x33e0d2[_0x17a4ad(0x91)](typeof _0x380007,_0x33e0d2[_0x17a4ad(0xaf)])&&!Array[_0x17a4ad(0x130)](_0x380007))_0x534a3f[_0x7f40c8]=this[_0x17a4ad(0xda)](_0x534a3f[_0x7f40c8]||{},_0x380007);else Array[_0x17a4ad(0x130)](_0x380007)?_0x534a3f[_0x7f40c8]=(_0x534a3f[_0x7f40c8]||[])[_0x17a4ad(0xcb)](_0x380007):_0x534a3f[_0x7f40c8]=_0x380007;}return _0x534a3f;}}function a85_0x57f3(_0xbb12f5,_0x2759fb){const _0x3f888a=a85_0x3f88();return a85_0x57f3=function(_0x57f3b2,_0x40a872){_0x57f3b2=_0x57f3b2-0x88;let _0xbc9181=_0x3f888a[_0x57f3b2];return _0xbc9181;},a85_0x57f3(_0xbb12f5,_0x2759fb);}function a85_0x3f88(){const _0x3a0460=['shouldSkipSessionName','getWritableDir','cwd','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','1203580geakIc','12sUpisl','SwEWE','ZeRLG','../../helpers/test-observability/utils.js','164snMAkN','hyHQX','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','DuoYp','isDirectory','length','Oggvt','BHnvL','start','BROWSERSTACK_CLI_ENV','CNDnB','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','UvAjy','pUKVU','format','version','cli_version','kvVsV','87402ONvFMT','getTestFrameworkDetail','tmpdir','aFidN','getSdkVersion','exports','skipSessionStatus','SDK_CLI_DOWNLOAD','1495081xWmCRl','iZzaT','getCliDir','tgOSp','KCwon','SDK_CLI_CHECK_UPDATE','platform','Current\x20CLI\x20Path\x20Found:\x20','ULwYY','\x20version','getCurrentInstanceName','SIvsd','laApn','basename','downloadLatestBinary','getAutomationFrameworkDetail','pipe','EDoUR','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','../../../package.json','binary-','pid','isArray','getSdkLanguage','includes','xbioK','statusCode','GdkHw','dGiAs','unlink','startsWith','worker_threads','CHEZO','nXqtN','./framework/constants/testFrameworkConstants.js','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','QecKz','arch','chmod','error','sakAN','BgzMC','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','HanfI','fileName','kEOsl','1016935CyJXNW','DOWNLOAD_HTTP','automationFrameworkDetail','\x20from\x20','WFFOs','filePath','data','map','UxmJc','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','iicXD','Folder\x20does\x20not\x20exist:\x20','tkzTL','Configuring\x20Cli\x20path.','cli','isBinaryBusy','.zip','mtime','rXoVQ','chkkd','Downloading\x20SDK\x20binary\x20from:\x20','unix:/tmp/sdk-platform-','WctOH','YDNwS','./state/automationFrameworkState.js','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','CLIUtils','heaST','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','YiRIg','lazyEntries','object','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','Setting\x20required\x20permissions\x20to\x20','wmRrV','entries','env','message','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','yTXxY','FjSsR','existsSync','awjsr','DnHud','qjOXU','code','./state/hookState.js','readdirSync','requestToUpdateCLI','cIOOc','Error\x20while\x20reading\x20CLI\x20path:\x20','20499xicDWg','trim','SHELL_EXECUTE_ERROR','openSync','resume','FkOeb','test','ktsPi','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','warn','end','path','gYLEX','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','Failed\x20to\x20delete\x20zip\x20file:\x20','DiAgh','UlRRL','rvBJM','TvbKz','.browserstack','jVxrB','BHFRz','BGXJH','sPLPF','listen','node','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','loRpK','UmcaB','preserveStatusCodeOnError','Binary\x20is\x20busy:\x20','copyFileSync','destroy','../../helpers/helper','zwotV','url','matchHookRegex','development','testContextOptions','qntMZ','TRdxS','reduce','Pdula','.tmp.','readEntry','testFrameworkDetail','SeVmw','Folder\x20','getHookRegistryKey','filter','setupCliPath','EXDEV','\x20already\x20exists','FVsxw','../../helpers/performance/constants','stringify','rMHHC','jcALn','xoAiK','shtmu','follow-redirects','HOOK_REGEX','runShellCommand','238044MKxgwK','EXOot','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','HLjSv','../../helpers/classLogger.js','parse','0755','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','AhVsG','info','util','concat','timeout','gJczl','OhgEx','1720HzLtPm','debug','OUjOI','response\x20','./state/testFrameworkState.js','HeiZO','QUqRe','EUzhW','entry','createWriteStream','GwPml','mergeObject','oDNBF','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','openReadStream','Resolved\x20binary\x20path:\x20','SDK_CLI_BIN_PATH','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','../../helpers/utilities','eAqmi','BROWSERSTACK_BINARY_URL','austq','statSync','open','QNTtn','cwqrR','WEctY','downloadFileStream','15975LEDhOf','close','../utils/constants','yuSgv','RqVgk','join','GET','WbCue','../../helpers/performance/performance-tester.js','suRJr','split','isFile'];a85_0x3f88=function(){return _0x3a0460;};return a85_0x3f88();}module[a85_0x52c9c7(0x117)]=CLIUtils;
|
|
1
|
+
function a85_0x4cd6(){const _0x394bb8=['Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','BROWSERSTACK_CLI_ENV','path','Folder\x20does\x20not\x20exist:\x20','follow-redirects','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','chmod','15386YGxgqr','vTppG','mkqJN','statusCode','openSync','Yfifv','version','ylEVz','getAutomationFrameworkDetail','lqLcO','yvIGS','urCVk','copyFileSync','runShellCommand','setupCliPath','getHookRegistryKey','map','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','cChte','jnbim',',\x20automationFramework=','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','downloadLatestBinary','uVZwi','Development\x20Cli\x20Path:\x20','stringify','\x20from\x20','split','RJuAg','KClYT','parse','XJWta','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','GET','downloaded_file_','snudD','node','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','rename','end','0|3|4|1|2','pipe','get','shouldSkipSessionStatus','tFAKo','../../helpers/performance/constants','zHEpn','cli_version','url','lWMyy','PggyU','MfAhz','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','pid','BalRz','downloadFileStream','warn','KuhNR','AVTVz','IqFxU','192qTRApf','SHELL_EXECUTE_ERROR','destroy','SnbtF','SVrgS','mtime','kTLuL','2008566PKdTSN','EKqLz','getCLIParamsForDevEnv','Setting\x20required\x20permissions\x20to\x20','skipSessionName','open','testContextOptions','oPIIk','hblMU','tKyqP','WXLEc','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','fileName','FHVJJ','RUuLh','getExistingCliPath','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','once','FHHvA','BROWSERSTACK_BINARY_URL','\x20already\x20exists','bqhwX','Error\x20while\x20reading\x20CLI\x20path:\x20','timeout','1495592SYCxlM','filePath','tuyfZ','.zip','SDK_CLI_DOWNLOAD','createWriteStream','isArray','listen','message','BAmje','getCliDir','387bDHnjk','uWMOa','development','WYIpN','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','util','WlRwA','arch','tSyMb','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','daWOY','format','RDZuV','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','GOxOl','env','basename','CLIUtils','Resolved\x20binary\x20path:\x20','cli','ENpVO','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','EXDEV','6385ihymcw','isBinaryBusy','child_process','1276099PpvXMG','unix:/tmp/sdk-platform-','YqczF','../../helpers/helper','includes','SDK_CLI_CHECK_UPDATE','unlink','entries','ARrfU','mgjAr','error','getSdkLanguage','gNlYZ','join','skipSessionStatus','4ULWEhC','WyDkq','Bexzg','setFrameworkDetail','hPJib','getSdkVersion','qpRUN','BROWSERSTACK_FILES_DIR','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','MTnqB','SKLdJ','platform','lmMZG','getWritableDir','openReadStream','lPDwz','isDirectory','checkAndUpdateCli','espSS','Resolving\x20with\x20stdout:\x20\x22','30970uRczoX','existsSync','CLI\x20version\x20found\x20despite\x20error:\x20\x22','../utils/apiUtilityMethods.js','BiBcn','exports','MNrEM','data','entry','4612893WOtWiS','pJuqq','zUbfO','cptrb','ZXkPq','../../helpers/test-observability/utils.js','info','trim','\x20version','close','readEntry','.sock','getCurrentInstanceName','debug','DTcTo','HOOK_REGEX','statSync','Folder\x20','resume','homedir','Failed\x20to\x20delete\x20zip\x20file:\x20','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','tkTxD','testFrameworkDetail','start','object','./instances/testFrameworkInstance.js','matchHookRegex','Binary\x20is\x20busy:\x20','MwkNG','code','tmpdir','jljDP','./framework/constants/testFrameworkConstants.js','.tmp.','Downloading\x20SDK\x20binary\x20from:\x20','pBTeh','startsWith','isFile','2208SeORgE','zuJLc','concat','ifgWi','cwd','rJRkR','../../helpers/utilities','3656mOhAnA','Current\x20CLI\x20Path\x20Found:\x20','preserveStatusCodeOnError','TrhHf','automationFrameworkDetail','filter','0755'];a85_0x4cd6=function(){return _0x394bb8;};return a85_0x4cd6();}const a85_0x24a55=a85_0x2d87;(function(_0x2dcf6d,_0x8120fe){const _0x465933=a85_0x2d87,_0xb73876=_0x2dcf6d();while(!![]){try{const _0x5c0669=parseInt(_0x465933(0xd8))/0x1+-parseInt(_0x465933(0xc0))/0x2+-parseInt(_0x465933(0x129))/0x3*(-parseInt(_0x465933(0x10c))/0x4)+-parseInt(_0x465933(0xfa))/0x5*(parseInt(_0x465933(0x150))/0x6)+-parseInt(_0x465933(0x7b))/0x7*(-parseInt(_0x465933(0x6d))/0x8)+parseInt(_0x465933(0xe3))/0x9*(parseInt(_0x465933(0x120))/0xa)+-parseInt(_0x465933(0xfd))/0xb*(parseInt(_0x465933(0xb9))/0xc);if(_0x5c0669===_0x8120fe)break;else _0xb73876['push'](_0xb73876['shift']());}catch(_0x3015f3){_0xb73876['push'](_0xb73876['shift']());}}}(a85_0x4cd6,0xcd345));function a85_0x2d87(_0x45c1fa,_0x27ea6c){const _0x4cd627=a85_0x4cd6();return a85_0x2d87=function(_0x2d87ed,_0x29d987){_0x2d87ed=_0x2d87ed-0x68;let _0x96913=_0x4cd627[_0x2d87ed];return _0x96913;},a85_0x2d87(_0x45c1fa,_0x27ea6c);}const fs=require('fs'),os=require('os'),url=require(a85_0x24a55(0xad)),path=require(a85_0x24a55(0x76)),{exec}=require(a85_0x24a55(0xfc)),{https}=require(a85_0x24a55(0x78)),yauzl=require('yauzl'),util=require(a85_0x24a55(0xe8)),{getFrameworkVersion}=require(a85_0x24a55(0x12e)),{threadId}=require('worker_threads'),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a85_0x24a55(0xaa)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x24a55(0x6c)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x24a55(0x100)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a85_0x24a55(0x143)),HookState=require('./state/hookState.js'),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a85_0x24a55(0x14a)),logger=createClassLogger(a85_0x24a55(0xf4)),{getBStackAPIUrl}=require(a85_0x24a55(0x123));class CLIUtils{['automationFrameworkDetail']={};['testFrameworkDetail']={};static['isDevelopmentEnv'](){const _0x20d62a=a85_0x24a55,_0x59b379={};_0x59b379[_0x20d62a(0x82)]=function(_0x238dd3,_0x5491ca){return _0x238dd3===_0x5491ca;},_0x59b379[_0x20d62a(0x105)]=_0x20d62a(0xe5);const _0x2e5095=_0x59b379;return _0x2e5095[_0x20d62a(0x82)](process[_0x20d62a(0xf2)][_0x20d62a(0x75)],_0x2e5095[_0x20d62a(0x105)]);}static[a85_0x24a55(0xc2)](){const _0x48053e=a85_0x24a55,_0x1025ab={};return _0x1025ab['id']=process[_0x48053e(0xf2)][_0x48053e(0x75)],_0x1025ab[_0x48053e(0xdf)]=_0x48053e(0xfe)+process['env'][_0x48053e(0x75)]+_0x48053e(0x134),_0x1025ab;}static[a85_0x24a55(0x111)](){const _0x2903cf=a85_0x24a55,_0x288e87={'xzMPa':function(_0x228396,_0x372456){return _0x228396(_0x372456);},'MNrEM':'../../../package.json'};return _0x288e87['xzMPa'](require,_0x288e87[_0x2903cf(0x126)])[_0x2903cf(0x81)];}static[a85_0x24a55(0x108)](){const _0x4c8e45=a85_0x24a55,_0x3c9892={};_0x3c9892[_0x4c8e45(0x69)]=_0x4c8e45(0xa1);const _0x26d58d=_0x3c9892;return _0x26d58d['ifgWi'];}static async[a85_0x24a55(0x89)](_0x55ee5a){const _0x312032=a85_0x24a55,_0x6ed3fe={'WyDkq':'Configuring\x20Cli\x20path.','fwJgS':function(_0x193c28,_0x218d4b){return _0x193c28(_0x218d4b);},'MfAhz':function(_0x3b5dc1,_0x5dc30c){return _0x3b5dc1(_0x5dc30c);},'GGYxa':_0x312032(0x79)};logger[_0x312032(0x136)](_0x6ed3fe[_0x312032(0x10d)]);const _0xa4145b=process[_0x312032(0xf2)]['SDK_CLI_BIN_PATH'];if(!_0x6ed3fe['fwJgS'](isNullOrEmpty,_0xa4145b))return logger['debug'](_0x312032(0x95)+_0xa4145b),_0xa4145b;try{const _0x1b440b=this[_0x312032(0xe2)]();if(_0x6ed3fe[_0x312032(0xb0)](isNullOrEmpty,_0x1b440b))throw new Error(_0x6ed3fe['GGYxa']);const _0x168296=this[_0x312032(0xcf)](_0x1b440b),_0x41a053=await this[_0x312032(0x11d)](_0x168296,_0x1b440b,_0x55ee5a);return logger[_0x312032(0x136)](_0x312032(0xf5)+_0x41a053),_0x41a053;}catch(_0x2afcc1){logger[_0x312032(0x136)](_0x312032(0xe7)+util[_0x312032(0xee)](_0x2afcc1));}return null;}static async['checkAndUpdateCli'](_0x5292df,_0x3c7843,_0x27081a){const _0x3f878a=a85_0x24a55,_0x13d6db={'FHHvA':function(_0x42351c){return _0x42351c();},'pBTeh':function(_0x369cc6,_0x51cc39){return _0x369cc6(_0x51cc39);},'TrhHf':function(_0x5ef943,_0x47347b,_0x234fea){return _0x5ef943(_0x47347b,_0x234fea);},'tLuAf':_0x3f878a(0x127),'ZXkPq':'url','YqczF':function(_0x1686ae,_0x4c5f71){return _0x1686ae(_0x4c5f71);}};PerformanceTester[_0x3f878a(0x141)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);try{logger[_0x3f878a(0x12f)](_0x3f878a(0x6e)+_0x5292df);const _0x4ae6d4=_0x13d6db[_0x3f878a(0xd2)](getHostInfo),_0x6046ad={'sdk_version':CLIUtils['getSdkVersion'](),'os':_0x4ae6d4[_0x3f878a(0x117)],'os_arch':_0x4ae6d4[_0x3f878a(0xea)],'cli_version':'0','sdk_language':this[_0x3f878a(0x108)]()};!_0x13d6db[_0x3f878a(0x14d)](isNullOrEmpty,_0x5292df)&&(_0x6046ad[_0x3f878a(0xac)]=await this[_0x3f878a(0x88)](_0x5292df+_0x3f878a(0x131)));const _0x4edde8=await this['requestToUpdateCLI'](_0x6046ad,_0x27081a);process['env'][_0x3f878a(0xd3)]&&(logger['info']('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process[_0x3f878a(0xf2)][_0x3f878a(0xd3)]),_0x4edde8['data'][_0x3f878a(0xad)]=process['env'][_0x3f878a(0xd3)]);if(_0x13d6db[_0x3f878a(0x70)](nestedKeyValue,_0x4edde8,[_0x13d6db['tLuAf'],_0x13d6db['ZXkPq']])){logger[_0x3f878a(0x136)](_0x3f878a(0xd0)+_0x6046ad[_0x3f878a(0xac)]);if(!_0x13d6db[_0x3f878a(0xff)](isNullOrEmpty,_0x5292df)&&this[_0x3f878a(0xfb)](_0x5292df))return logger[_0x3f878a(0xb5)](_0x3f878a(0x8d)+_0x5292df),_0x5292df;return await this[_0x3f878a(0x93)](_0x13d6db[_0x3f878a(0x70)](nestedKeyValue,_0x4edde8,[_0x13d6db['tLuAf'],_0x13d6db[_0x3f878a(0x12d)]]),_0x3c7843);}return _0x5292df;}finally{PerformanceTester[_0x3f878a(0xa4)](PerformanceEvents[_0x3f878a(0x102)]);}}static['getCliDir'](){const _0x68988f=a85_0x24a55,_0x3bb7e0={'BalRz':function(_0x19d0c5,_0x475b13){return _0x19d0c5(_0x475b13);},'yTvWF':_0x68988f(0x79),'PggyU':_0x68988f(0xf6)},_0x3315ba=this[_0x68988f(0x119)]();try{if(_0x3bb7e0[_0x68988f(0xb3)](isNullOrEmpty,_0x3315ba))throw new Error(_0x3bb7e0['yTvWF']);const _0x57b642=path[_0x68988f(0x10a)](_0x3315ba,_0x3bb7e0[_0x68988f(0xaf)]);return!fs[_0x68988f(0x121)](_0x57b642)&&_0x3bb7e0['BalRz'](createDir,_0x57b642),_0x57b642;}catch(_0x2947ba){logger[_0x68988f(0x136)](_0x68988f(0x74)+util[_0x68988f(0xee)](_0x2947ba));}}static[a85_0x24a55(0x119)](){const _0x49f916=a85_0x24a55,_0x451f19={'KuhNR':'.browserstack','tSyMb':function(_0x345a36,_0x268443){return _0x345a36(_0x268443);},'kTLuL':function(_0x42ff8e,_0x36798f){return _0x42ff8e(_0x36798f);},'urCVk':function(_0x3a0aee,_0x50fe2b){return _0x3a0aee(_0x50fe2b);},'AVTVz':function(_0x1da14e,_0x4ebafe){return _0x1da14e(_0x4ebafe);},'jljDP':function(_0x323d23,_0x3cc2ef){return _0x323d23(_0x3cc2ef);}},_0x4e3abb=[process[_0x49f916(0xf2)][_0x49f916(0x113)],path[_0x49f916(0x10a)](os[_0x49f916(0x13c)](),_0x451f19[_0x49f916(0xb6)]),path[_0x49f916(0x10a)](os[_0x49f916(0x148)](),_0x451f19[_0x49f916(0xb6)])];for(const _0x1060bc of _0x4e3abb){if(_0x451f19[_0x49f916(0xeb)](isNullOrEmpty,_0x1060bc))continue;try{if(fs[_0x49f916(0x121)](_0x1060bc)){logger[_0x49f916(0x136)](_0x49f916(0x13a)+_0x1060bc+_0x49f916(0xd4));if(!_0x451f19[_0x49f916(0xbf)](isModifiable,_0x1060bc)){logger[_0x49f916(0x136)](_0x49f916(0xc3)+_0x1060bc);const _0x287728=_0x451f19[_0x49f916(0x86)](setReadWriteExecuteAccess,_0x1060bc);if(!_0x451f19[_0x49f916(0xb7)](isTrue,_0x287728)){logger[_0x49f916(0xb5)](_0x49f916(0x8c)+_0x1060bc);continue;}}}else{logger[_0x49f916(0x136)](_0x49f916(0x77)+_0x1060bc),_0x451f19[_0x49f916(0x149)](createDir,_0x1060bc),logger[_0x49f916(0x136)](_0x49f916(0xc3)+_0x1060bc);const _0x475981=_0x451f19[_0x49f916(0xbf)](setReadWriteExecuteAccess,_0x1060bc);!_0x451f19[_0x49f916(0xeb)](isTrue,_0x475981)&&logger['warn'](_0x49f916(0x8c)+_0x1060bc);}return _0x1060bc;}catch(_0x3c59b2){logger['error'](_0x49f916(0xec)+util[_0x49f916(0xee)](_0x3c59b2));}}return null;}static[a85_0x24a55(0xcf)](_0x18c618){const _0x2cdb89=a85_0x24a55,_0x425372={};_0x425372[_0x2cdb89(0xf1)]=function(_0x3afdde,_0x1a0f79){return _0x3afdde>_0x1a0f79;},_0x425372[_0x2cdb89(0xc1)]=function(_0x27039e,_0x1defb6){return _0x27039e>_0x1defb6;};const _0x41a14f=_0x425372;try{if(!fs[_0x2cdb89(0x121)](_0x18c618)||!fs[_0x2cdb89(0x139)](_0x18c618)[_0x2cdb89(0x11c)]())return'';const _0x6cea47=fs['readdirSync'](_0x18c618)[_0x2cdb89(0x8b)](_0x5a7bb6=>path[_0x2cdb89(0x10a)](_0x18c618,_0x5a7bb6))[_0x2cdb89(0x72)](_0x22c643=>fs[_0x2cdb89(0x139)](_0x22c643)[_0x2cdb89(0x14f)]()&&path[_0x2cdb89(0xf3)](_0x22c643)[_0x2cdb89(0x14e)]('binary-'));if(_0x41a14f[_0x2cdb89(0xc1)](_0x6cea47['length'],0x0)){const _0x47c7be=_0x6cea47[_0x2cdb89(0x8b)](_0x560d7d=>({'filePath':_0x560d7d,'mtime':fs['statSync'](_0x560d7d)['mtime']}))['reduce']((_0x52db0b,_0x2a39af)=>{const _0x3cd871=_0x2cdb89;if(!_0x52db0b||!_0x52db0b[_0x3cd871(0xbe)])return _0x2a39af;if(_0x41a14f[_0x3cd871(0xf1)](_0x2a39af[_0x3cd871(0xbe)],_0x52db0b[_0x3cd871(0xbe)]))return _0x2a39af;return _0x52db0b;},{});return _0x47c7be?_0x47c7be[_0x2cdb89(0xd9)]:'';}return'';}catch(_0x1a84b3){return logger[_0x2cdb89(0x107)](_0x2cdb89(0xd6)+util[_0x2cdb89(0xee)](_0x1a84b3)),'';}}static ['requestToUpdateCLI']=async(_0x5ade1f,_0x37be76)=>{const _0x4b04f6=a85_0x24a55,_0x48d760={'axbqU':function(_0x2b693c,_0x8012d7,_0x5138f5,_0x1ce8b4,_0x5669a7){return _0x2b693c(_0x8012d7,_0x5138f5,_0x1ce8b4,_0x5669a7);},'qpRUN':_0x4b04f6(0x9e)},_0x3cdd3f={};_0x3cdd3f['qs']=_0x5ade1f,_0x3cdd3f[_0x4b04f6(0x6f)]=!![];const _0xfe74fc=await _0x48d760['axbqU'](nodeRequest,_0x48d760[_0x4b04f6(0x112)],UPDATED_CLI_ENDPOINT,_0x3cdd3f,_0x37be76);return logger['debug']('response\x20'+JSON[_0x4b04f6(0x96)](_0xfe74fc)),_0xfe74fc;};static[a85_0x24a55(0xfb)](_0x3cd645){const _0x302501=a85_0x24a55;try{const _0x3cb093=fs[_0x302501(0x7f)](_0x3cd645,'r+');return fs['closeSync'](_0x3cb093),![];}catch(_0x214276){if(BINARY_BUSY_ERROR_CODES['includes'](_0x214276['code']))return logger[_0x302501(0x136)](_0x302501(0x145)+_0x3cd645),!![];return logger[_0x302501(0x136)]('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x214276[_0x302501(0xe0)]),![];}}static['runShellCommand'](_0x2ef9a7,_0x78a677=''){const _0x888fea=a85_0x24a55,_0x216f61={'mgjAr':function(_0x4bbdd8,_0x598ebe){return _0x4bbdd8(_0x598ebe);},'XJWta':_0x888fea(0xba),'gNlYZ':'version','AACuj':function(_0x564559,_0x943c70){return _0x564559(_0x943c70);},'DTcTo':function(_0x5a73b1,_0xd630df){return _0x5a73b1(_0xd630df);},'lPDwz':function(_0x978b7e,_0x2736d7,_0x5b024c,_0x31a5bb){return _0x978b7e(_0x2736d7,_0x5b024c,_0x31a5bb);},'zHEpn':_0x888fea(0x107)};return new Promise((_0x1ff1e0,_0x1d2810)=>{const _0x266ac0=_0x888fea,_0xd36346={'tFAKo':_0x216f61[_0x266ac0(0x109)],'tuyfZ':function(_0xc93bc5,_0xcc283f){return _0x216f61['AACuj'](_0xc93bc5,_0xcc283f);},'MwkNG':function(_0x3809c0,_0x51f876){const _0x527cef=_0x266ac0;return _0x216f61[_0x527cef(0x137)](_0x3809c0,_0x51f876);},'lmMZG':_0x216f61[_0x266ac0(0x9c)]},_0xedee81={};_0xedee81[_0x266ac0(0x6a)]=_0x78a677,_0xedee81[_0x266ac0(0xd7)]=0x1388;const _0xa59c5d=_0x216f61[_0x266ac0(0x11b)](exec,_0x2ef9a7,_0xedee81,(_0x47353e,_0x17d53b,_0x45750f)=>{const _0x9ca5db=_0x266ac0;if(_0x47353e){if(_0x2ef9a7[_0x9ca5db(0x101)](_0xd36346[_0x9ca5db(0xa9)])&&(_0x17d53b[_0x9ca5db(0x130)]()||_0x45750f[_0x9ca5db(0x130)]())){const _0x477d05=_0x17d53b[_0x9ca5db(0x130)]()||_0x45750f['trim']();logger[_0x9ca5db(0x136)](_0x9ca5db(0x122)+_0x477d05+'\x22'),_0xd36346[_0x9ca5db(0xda)](_0x1ff1e0,_0x477d05);}else _0xd36346[_0x9ca5db(0x146)](_0x1ff1e0,_0x45750f[_0x9ca5db(0x130)]()||_0xd36346[_0x9ca5db(0x118)]);}else logger['debug'](_0x9ca5db(0x11f)+_0x17d53b[_0x9ca5db(0x130)]()+'\x22'),_0xd36346[_0x9ca5db(0x146)](_0x1ff1e0,_0x17d53b[_0x9ca5db(0x130)]());});_0xa59c5d['on'](_0x216f61[_0x266ac0(0xab)],()=>{const _0x22a228=_0x266ac0;_0x216f61[_0x22a228(0x106)](_0x1ff1e0,_0x216f61[_0x22a228(0x9c)]);});});}static [a85_0x24a55(0x93)]=async(_0x5a956e,_0x4535b8)=>{const _0x3b4f4f=a85_0x24a55,_0x334ad2={'mkqJN':_0x3b4f4f(0xf0),'SKLdJ':function(_0x1cbff0,_0x424aa2){return _0x1cbff0(_0x424aa2);},'rJRkR':function(_0x44a24d,_0x34c54d){return _0x44a24d(_0x34c54d);},'ENpVO':function(_0x2e9ea4,_0x121261){return _0x2e9ea4>=_0x121261;},'yvIGS':'DOWNLOAD_HTTP','SnbtF':_0x3b4f4f(0xb1),'uVZwi':'error','espSS':_0x3b4f4f(0xf8),'BiBcn':function(_0x1af7e5,_0x5ef72c){return _0x1af7e5(_0x5ef72c);},'hblMU':'Failed\x20to\x20download\x20SDK\x20binary:\x20%s'};PerformanceTester[_0x3b4f4f(0x141)](PerformanceEvents[_0x3b4f4f(0xdc)]),logger['debug'](_0x3b4f4f(0x14c)+_0x5a956e);try{const _0x27faf2=url[_0x3b4f4f(0x9b)](_0x5a956e),_0x106b4d=path[_0x3b4f4f(0x10a)](_0x4535b8,_0x3b4f4f(0x9f)+process[_0x3b4f4f(0xb2)]+_0x3b4f4f(0xdb)),_0x4768e3=fs[_0x3b4f4f(0xdd)](_0x106b4d);return new Promise((_0x22bd43,_0x532c37)=>{const _0x1a71ee=_0x3b4f4f,_0x550987={'pJuqq':_0x334ad2[_0x1a71ee(0x11e)],'tkTxD':function(_0x33a679,_0x475926){const _0x865427=_0x1a71ee;return _0x334ad2[_0x865427(0x116)](_0x33a679,_0x475926);},'oPIIk':function(_0x2b58d4,_0x1ec572){const _0x2bef42=_0x1a71ee;return _0x334ad2[_0x2bef42(0x124)](_0x2b58d4,_0x1ec572);}};https[_0x1a71ee(0xa7)](_0x27faf2,function(_0x44b538){const _0x113bae=_0x1a71ee,_0x544f77={'fHQeY':_0x334ad2[_0x113bae(0x7d)],'IqFxU':function(_0x190557,_0x45e54c){return _0x334ad2['SKLdJ'](_0x190557,_0x45e54c);},'SVrgS':function(_0xe89a9b,_0x2fffdb){const _0x423be8=_0x113bae;return _0x334ad2[_0x423be8(0x6b)](_0xe89a9b,_0x2fffdb);}},_0x4b3590=null;if(_0x44b538[_0x113bae(0x7e)]&&_0x334ad2[_0x113bae(0xf7)](_0x44b538[_0x113bae(0x7e)],0x190)){const _0x3b3dd8=new Error('SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20'+_0x44b538['statusCode']+_0x113bae(0x97)+_0x5a956e);_0x3b3dd8[_0x113bae(0x147)]=_0x334ad2[_0x113bae(0x85)],_0x3b3dd8[_0x113bae(0x7e)]=_0x44b538[_0x113bae(0x7e)],logger['error'](util['format'](_0x334ad2[_0x113bae(0xbc)],_0x44b538[_0x113bae(0x7e)])),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],'HTTP\x20'+_0x44b538['statusCode']),_0x44b538[_0x113bae(0x13b)](),_0x4768e3[_0x113bae(0xbb)](),fs[_0x113bae(0x103)](_0x106b4d,()=>{}),_0x334ad2[_0x113bae(0x116)](_0x532c37,_0x3b3dd8);return;}_0x44b538[_0x113bae(0xa6)](_0x4768e3),_0x44b538['on'](_0x334ad2['uVZwi'],function(_0x1d77d9){const _0x1b7757=_0x113bae;logger['error'](util['format'](_0x544f77['fHQeY'],_0x1d77d9)),PerformanceTester['end'](PerformanceEvents[_0x1b7757(0xdc)],![],util[_0x1b7757(0xee)](_0x1d77d9)),_0x544f77[_0x1b7757(0xb8)](_0x532c37,_0x1d77d9);}),_0x4768e3['on'](_0x334ad2['uVZwi'],function(_0x3b062f){const _0x43b6ad=_0x113bae;logger[_0x43b6ad(0x107)](util['format'](_0x550987[_0x43b6ad(0x12a)],_0x3b062f)),PerformanceTester['end'](PerformanceEvents[_0x43b6ad(0xdc)],![],util[_0x43b6ad(0xee)](_0x3b062f)),_0x550987[_0x43b6ad(0x13f)](_0x532c37,_0x3b062f);}),CLIUtils[_0x113bae(0xb4)](_0x4768e3,_0x4b3590,_0x106b4d,_0x4535b8,_0x118341=>{const _0x2b7a10=_0x113bae;PerformanceTester[_0x2b7a10(0xa4)](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x544f77[_0x2b7a10(0xbd)](_0x22bd43,_0x118341);},_0x3fb501=>{const _0x95a5f6=_0x113bae;PerformanceTester[_0x95a5f6(0xa4)](PerformanceEvents[_0x95a5f6(0xdc)],![],util[_0x95a5f6(0xee)](_0x3fb501)),_0x550987[_0x95a5f6(0xc7)](_0x532c37,_0x3fb501);});})['on'](_0x334ad2[_0x1a71ee(0x94)],function(_0x22705b){const _0x43aaed=_0x1a71ee;logger[_0x43aaed(0x107)](_0x43aaed(0x92)+util[_0x43aaed(0xee)](_0x22705b)),PerformanceTester['end'](PerformanceEvents[_0x43aaed(0xdc)],![],util[_0x43aaed(0xee)](_0x22705b)),_0x550987[_0x43aaed(0xc7)](_0x532c37,_0x22705b);});});}catch(_0x590e04){PerformanceTester[_0x3b4f4f(0xa4)](PerformanceEvents[_0x3b4f4f(0xdc)],![],util[_0x3b4f4f(0xee)](_0x590e04)),logger[_0x3b4f4f(0x107)](util[_0x3b4f4f(0xee)](_0x334ad2[_0x3b4f4f(0xc8)],_0x590e04));throw _0x590e04;}};static[a85_0x24a55(0xb4)](_0x47559d,_0x3a9e8f,_0x537fa5,_0x9580e9,_0x5dde4f,_0x47962d){const _0x18e886=a85_0x24a55,_0x569923={'RUuLh':function(_0x47c976,_0x5483a9){return _0x47c976(_0x5483a9);},'lWMyy':_0x18e886(0xa4),'tKyqP':_0x18e886(0x132),'QWmUK':function(_0x358c8a,_0x13eee5){return _0x358c8a!==_0x13eee5;},'jnbim':function(_0x2aa89a,_0x454673){return _0x2aa89a(_0x454673);},'eFeUe':_0x18e886(0x107),'Bexzg':_0x18e886(0xf9),'zUbfO':_0x18e886(0x73),'vTppG':_0x18e886(0x128)};_0x47559d['on'](_0x569923[_0x18e886(0xc9)],function(){const _0x294771=_0x18e886,_0x11da04={};_0x11da04['lazyEntries']=!![],yauzl[_0x294771(0xc5)](_0x537fa5,_0x11da04,function(_0x49a628,_0x478b74){const _0x34e120=_0x294771,_0x10cb08={'cChte':function(_0xa3eeac,_0x3dc41b){const _0x2830c8=a85_0x2d87;return _0x569923[_0x2830c8(0xce)](_0xa3eeac,_0x3dc41b);},'BAmje':_0x569923[_0x34e120(0xae)],'WYIpN':_0x569923[_0x34e120(0xc9)],'RDZuV':function(_0x40ed94,_0x2b2710){return _0x569923['QWmUK'](_0x40ed94,_0x2b2710);},'ywlAd':function(_0x5cbe13,_0x16b586){const _0x3e806e=_0x34e120;return _0x569923[_0x3e806e(0xce)](_0x5cbe13,_0x16b586);},'zuJLc':function(_0x3e784f,_0xbb7668){const _0x1ea30b=_0x34e120;return _0x569923[_0x1ea30b(0x8f)](_0x3e784f,_0xbb7668);},'pmpeu':_0x569923['eFeUe'],'KdBJj':_0x569923[_0x34e120(0x10e)],'WNdVe':function(_0x474256,_0x11b030){const _0x293409=_0x34e120;return _0x569923[_0x293409(0xce)](_0x474256,_0x11b030);},'LaaeP':function(_0xcb6c4b,_0x20f2ca){const _0x22e3d6=_0x34e120;return _0x569923[_0x22e3d6(0xce)](_0xcb6c4b,_0x20f2ca);},'ntZxr':_0x569923[_0x34e120(0x12b)]};if(_0x49a628){_0x569923['RUuLh'](_0x47962d,_0x49a628);return;}_0x478b74['readEntry'](),_0x478b74['on'](_0x569923[_0x34e120(0x7c)],_0x49987c=>{const _0x2343a8=_0x34e120,_0x228889={'WlRwA':function(_0x22d76d,_0x4fac73){const _0x2bb5bd=a85_0x2d87;return _0x10cb08[_0x2bb5bd(0x8e)](_0x22d76d,_0x4fac73);},'EiAWV':_0x10cb08[_0x2343a8(0xe6)]};if(/\/$/['test'](_0x49987c[_0x2343a8(0xcc)])){_0x478b74[_0x2343a8(0x133)]();return;}!_0x3a9e8f&&(_0x3a9e8f=_0x49987c[_0x2343a8(0xcc)]);if(_0x10cb08['RDZuV'](_0x49987c[_0x2343a8(0xcc)],_0x3a9e8f))_0x478b74[_0x2343a8(0x133)]();else{const _0x55e56d=_0x49987c[_0x2343a8(0xcc)],_0x42d1ba=path[_0x2343a8(0x10a)](_0x9580e9,_0x55e56d+_0x2343a8(0x14b)+process[_0x2343a8(0xb2)]);let _0x3d4b43;try{_0x3d4b43=fs[_0x2343a8(0xdd)](_0x42d1ba);}catch(_0x17ed7a){if(BINARY_BUSY_ERROR_CODES['includes'](_0x17ed7a[_0x2343a8(0x147)])){const _0x56ad89=path['join'](_0x9580e9,_0x55e56d);if(fs[_0x2343a8(0x121)](_0x56ad89)){logger[_0x2343a8(0xb5)](_0x2343a8(0x9d)+_0x55e56d),fs[_0x2343a8(0x103)](_0x537fa5,_0x5d1cef=>{const _0x413bbe=_0x2343a8;_0x5d1cef&&logger[_0x413bbe(0xb5)](_0x413bbe(0x13d)+_0x537fa5);}),_0x10cb08['ywlAd'](_0x5dde4f,_0x56ad89);return;}logger[_0x2343a8(0xb5)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x55e56d);}_0x10cb08[_0x2343a8(0x151)](_0x47962d,_0x17ed7a);return;}_0x3d4b43['on'](_0x10cb08['pmpeu'],_0x2bc5c7=>{const _0x14938a=_0x2343a8;if(BINARY_BUSY_ERROR_CODES[_0x14938a(0x101)](_0x2bc5c7[_0x14938a(0x147)])){const _0x52e850=path['join'](_0x9580e9,_0x55e56d);_0x3d4b43[_0x14938a(0x132)](),fs['existsSync'](_0x52e850)?(logger[_0x14938a(0xb5)](_0x14938a(0x91)+_0x2bc5c7[_0x14938a(0xe0)]),_0x478b74['close'](),fs[_0x14938a(0x103)](_0x537fa5,_0x48539f=>{const _0x17cde1=_0x14938a;_0x48539f&&logger[_0x17cde1(0xb5)](_0x17cde1(0x13d)+_0x537fa5);}),_0x228889[_0x14938a(0xe9)](_0x5dde4f,_0x52e850)):(logger[_0x14938a(0xb5)](_0x14938a(0x114)+_0x2bc5c7[_0x14938a(0xe0)]),fs[_0x14938a(0x103)](_0x42d1ba,()=>{}),_0x228889[_0x14938a(0xe9)](_0x47962d,_0x2bc5c7));}else fs['unlink'](_0x42d1ba,()=>{}),_0x228889[_0x14938a(0xe9)](_0x47962d,_0x2bc5c7);}),_0x478b74[_0x2343a8(0x11a)](_0x49987c,function(_0x2c6607,_0x4e02a8){const _0x3dbf55=_0x2343a8;if(_0x2c6607){fs[_0x3dbf55(0x103)](_0x42d1ba,()=>{}),_0x10cb08[_0x3dbf55(0x8e)](_0x47962d,_0x2c6607);return;}_0x4e02a8['on'](_0x10cb08[_0x3dbf55(0xe1)],function(){const _0xd22faf=_0x3dbf55;_0x3d4b43[_0xd22faf(0xa4)](),_0x3d4b43['on'](_0x228889['EiAWV'],function(){_0x478b74['readEntry']();});}),_0x4e02a8[_0x3dbf55(0xa6)](_0x3d4b43);});}}),_0x478b74['on'](_0x569923['eFeUe'],_0x470894=>{_0x10cb08['cChte'](_0x47962d,_0x470894);}),_0x478b74[_0x34e120(0xd1)](_0x569923[_0x34e120(0xae)],()=>{const _0x1c475c=_0x34e120,_0x36d18e={'KClYT':function(_0x5190d4,_0x1effee){const _0x4df93a=a85_0x2d87;return _0x10cb08[_0x4df93a(0xef)](_0x5190d4,_0x1effee);},'uWMOa':_0x10cb08['KdBJj'],'QQgVM':function(_0x1db3bc,_0x7accc3){return _0x10cb08['WNdVe'](_0x1db3bc,_0x7accc3);},'snudD':function(_0x221b08,_0x3a0461){const _0x32e7ee=a85_0x2d87;return _0x10cb08[_0x32e7ee(0x8e)](_0x221b08,_0x3a0461);},'WXLEc':function(_0x57710e,_0xb9121b){return _0x10cb08['LaaeP'](_0x57710e,_0xb9121b);}};fs[_0x1c475c(0x103)](_0x537fa5,_0x82f9f0=>{const _0xcc0f66=_0x1c475c;_0x82f9f0&&logger[_0xcc0f66(0xb5)](_0xcc0f66(0x13d)+_0x537fa5);});const _0x48dd42=path[_0x1c475c(0x10a)](_0x9580e9,_0x3a9e8f+'.tmp.'+process[_0x1c475c(0xb2)]),_0x422d0a=path[_0x1c475c(0x10a)](_0x9580e9,_0x3a9e8f);fs[_0x1c475c(0x7a)](_0x48dd42,_0x10cb08['ntZxr'],function(_0x10759d){const _0x11e228=_0x1c475c,_0x45c16f={'daWOY':function(_0x329ca1,_0x5c4bee){const _0xd26fac=a85_0x2d87;return _0x36d18e[_0xd26fac(0x9a)](_0x329ca1,_0x5c4bee);},'FHVJJ':_0x36d18e[_0x11e228(0xe4)],'KMUQb':function(_0x31f012,_0x424e01){return _0x36d18e['QQgVM'](_0x31f012,_0x424e01);},'MmPrO':function(_0x329f2f,_0x5f465d){const _0xbe6908=_0x11e228;return _0x36d18e[_0xbe6908(0xa0)](_0x329f2f,_0x5f465d);},'RJuAg':function(_0x4f53b4,_0x14bf6b){const _0x2c5d42=_0x11e228;return _0x36d18e[_0x2c5d42(0xa0)](_0x4f53b4,_0x14bf6b);}};if(_0x10759d){_0x478b74[_0x11e228(0x132)](),fs[_0x11e228(0x103)](_0x48dd42,()=>{}),_0x36d18e[_0x11e228(0xca)](_0x47962d,_0x10759d);return;}fs[_0x11e228(0xa3)](_0x48dd42,_0x422d0a,function(_0x3e311f){const _0x4ee086=_0x11e228;if(_0x3e311f){if(_0x45c16f[_0x4ee086(0xed)](_0x3e311f['code'],_0x45c16f[_0x4ee086(0xcd)])){_0x478b74[_0x4ee086(0x132)](),fs[_0x4ee086(0x103)](_0x48dd42,()=>{}),_0x45c16f['KMUQb'](_0x47962d,_0x3e311f);return;}logger[_0x4ee086(0xb5)](_0x4ee086(0xa2)+_0x3e311f[_0x4ee086(0xe0)]);try{fs[_0x4ee086(0x87)](_0x48dd42,_0x422d0a);}catch(_0x307b04){_0x478b74['close'](),fs[_0x4ee086(0x103)](_0x48dd42,()=>{}),_0x45c16f['MmPrO'](_0x47962d,_0x307b04);return;}fs[_0x4ee086(0x103)](_0x48dd42,_0x1e6f9c=>{const _0x530545=_0x4ee086;_0x1e6f9c&&logger[_0x530545(0xb5)]('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x1e6f9c[_0x530545(0xe0)]);});}_0x478b74[_0x4ee086(0x132)](),_0x45c16f[_0x4ee086(0x99)](_0x5dde4f,_0x422d0a);});});});});});}static['getTestFrameworkDetail'](){const _0x1cf0f2=a85_0x24a55;if(process[_0x1cf0f2(0xf2)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL'])return JSON[_0x1cf0f2(0x9b)](process['env'][_0x1cf0f2(0xcb)]);return this['testFrameworkDetail'];}static[a85_0x24a55(0x83)](){const _0x187286=a85_0x24a55;if(process[_0x187286(0xf2)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x187286(0x9b)](process[_0x187286(0xf2)][_0x187286(0x13e)]);return this['automationFrameworkDetail'];}static[a85_0x24a55(0x10f)](_0xe71241,_0xb6c827){const _0x209706=a85_0x24a55,_0x35f44a={'bqhwX':_0x209706(0xa5),'cptrb':function(_0x3376c2,_0xa96952){return _0x3376c2||_0xa96952;},'RrLzW':function(_0x509c1a,_0x240d68){return _0x509c1a(_0x240d68);},'lqLcO':function(_0x336543,_0x24fadc){return _0x336543(_0x24fadc);}},_0x81809c=_0x35f44a[_0x209706(0xd5)][_0x209706(0x98)]('|');let _0x42e316=0x0;while(!![]){switch(_0x81809c[_0x42e316++]){case'0':_0x35f44a[_0x209706(0x12c)](!_0xe71241,!_0xb6c827)&&logger['debug']('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0xe71241+_0x209706(0x90)+_0xb6c827);continue;case'1':process[_0x209706(0xf2)][_0x209706(0x13e)]=JSON[_0x209706(0x96)](this[_0x209706(0x71)]);continue;case'2':process[_0x209706(0xf2)][_0x209706(0xcb)]=JSON[_0x209706(0x96)](this[_0x209706(0x140)]);continue;case'3':this['testFrameworkDetail']={'name':_0xe71241,'version':{[_0xe71241]:_0x35f44a['RrLzW'](getFrameworkVersion,_0xe71241)}};continue;case'4':this['automationFrameworkDetail']={'name':_0xb6c827,'version':_0x35f44a[_0x209706(0x84)](getFrameworkVersion,_0xb6c827)};continue;}break;}}static[a85_0x24a55(0x8a)](_0x2d0217,_0x54faee){return _0x2d0217+':'+_0x54faee;}static[a85_0x24a55(0x135)](){const _0x3f162a=a85_0x24a55;return process[_0x3f162a(0xb2)]+':'+threadId;}static['shouldSkipSessionName'](_0x399c08){const _0x2393e1=a85_0x24a55;if(_0x399c08[_0x2393e1(0xc6)]&&_0x399c08[_0x2393e1(0xc6)][_0x2393e1(0xc4)])return!![];return![];}static[a85_0x24a55(0xa8)](_0x1d5f3d){const _0x5a4c44=a85_0x24a55;if(_0x1d5f3d['testContextOptions']&&_0x1d5f3d[_0x5a4c44(0xc6)][_0x5a4c44(0x10b)])return!![];return![];}static[a85_0x24a55(0x144)](_0x374957){const _0x2d33c4=a85_0x24a55,_0x4e4cd5=new RegExp(TestFrameworkConstants[_0x2d33c4(0x138)]);return _0x4e4cd5['test'](_0x374957);}static['mergeObject'](_0xdb4dbc,_0x5382ea){const _0xcf50c3=a85_0x24a55,_0x13b8c5={};_0x13b8c5['hPJib']=function(_0x116c41,_0x2c80e4){return _0x116c41!==_0x2c80e4;},_0x13b8c5[_0xcf50c3(0x80)]=function(_0xc97838,_0x488ec4){return _0xc97838===_0x488ec4;},_0x13b8c5['MTnqB']=_0xcf50c3(0x142);const _0x3fccc4=_0x13b8c5;for(const [_0x130a0c,_0x436f9a]of Object[_0xcf50c3(0x104)](_0x5382ea)){if(_0x3fccc4[_0xcf50c3(0x110)](_0x436f9a,null)&&_0x3fccc4[_0xcf50c3(0x80)](typeof _0x436f9a,_0x3fccc4[_0xcf50c3(0x115)])&&!Array[_0xcf50c3(0xde)](_0x436f9a))_0xdb4dbc[_0x130a0c]=this['mergeObject'](_0xdb4dbc[_0x130a0c]||{},_0x436f9a);else Array[_0xcf50c3(0xde)](_0x436f9a)?_0xdb4dbc[_0x130a0c]=(_0xdb4dbc[_0x130a0c]||[])[_0xcf50c3(0x68)](_0x436f9a):_0xdb4dbc[_0x130a0c]=_0x436f9a;}return _0xdb4dbc;}}module[a85_0x24a55(0x125)]=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a86_0x39afab=a86_0x59ba;(function(_0xf7ce46,_0x43b060){const _0x13743a=a86_0x59ba,_0x13997f=_0xf7ce46();while(!![]){try{const _0x507fc9=-parseInt(_0x13743a(0xdf))/0x1+-parseInt(_0x13743a(0xc1))/0x2*(parseInt(_0x13743a(0x110))/0x3)+parseInt(_0x13743a(0xfc))/0x4+-parseInt(_0x13743a(0xdb))/0x5*(parseInt(_0x13743a(0xbb))/0x6)+parseInt(_0x13743a(0x103))/0x7+parseInt(_0x13743a(0x123))/0x8+parseInt(_0x13743a(0x12b))/0x9;if(_0x507fc9===_0x43b060)break;else _0x13997f['push'](_0x13997f['shift']());}catch(_0x4a8e05){_0x13997f['push'](_0x13997f['shift']());}}}(a86_0x4b24,0x4f8d7));const fs=require('fs'),os=require('os'),path=require(a86_0x39afab(0xca)),helper=require('../../helpers/helper'),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a86_0x39afab(0x10d)),PlaywrightDriverModule=require(a86_0x39afab(0x117)),TestInfo=require(a86_0x39afab(0xb7)),TestHubModule=require(a86_0x39afab(0xd1)),{createClassLogger}=require(a86_0x39afab(0xce)),logger=createClassLogger(a86_0x39afab(0xcb)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function a86_0x59ba(_0x15a040,_0x5551d8){const _0x4b24cb=a86_0x4b24();return a86_0x59ba=function(_0x59ba0e,_0x45bb47){_0x59ba0e=_0x59ba0e-0xac;let _0xa6de34=_0x4b24cb[_0x59ba0e];return _0xa6de34;},a86_0x59ba(_0x15a040,_0x5551d8);}function getBuildTagsRunId(){const _0x428a20=a86_0x39afab,_0x154cb8={};_0x154cb8['jlYPJ']=function(_0x3ca284,_0x4c49e5){return _0x3ca284===_0x4c49e5;},_0x154cb8[_0x428a20(0xfe)]='null';const _0xb7df02=_0x154cb8,_0x43c843=process[_0x428a20(0xbe)][_0x428a20(0x118)];if(!_0x43c843||_0xb7df02[_0x428a20(0x119)](_0x43c843,_0xb7df02[_0x428a20(0xfe)]))return null;return _0x43c843;}function a86_0x4b24(){const _0x391536=['tMUbx','qTvyY','./browserstackCLI','iXVfV','path','CustomTagManager','mergeBuildLevelTags','message','../../helpers/classLogger',',\x20key=','unlinkSync','./modules/testhubModule','oRxRE','trim','LMgrh','length','aggregateBuildLevelTagsFromTmp','toObject','debug','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','KEY_TEST_ID','1005eTBDtH','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','getBuildTagsRunId','values','193082Tkowey','jest','__workerDetails','POST','kgjFX','getBuildLevelTags','mergeIntoTags',',\x20existingTags=','TEST','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','name','toLowerCase','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','entries','testLevelTags',':jest-','resolveInstance','BUILD_TAG_FILE_PREFIX','getTrackedInstance','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','getState','getTestDetails','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','VDdMl','JvfgN','now','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','SBwGy','getAllData','717976EXJpIn','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','PgOrb','getTestFrameworkDetail','EgPPk','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','Dwmyb','148890KjZYMN','stringify','testhubConfig','mTYbx','includes','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','multi_dropdown','promises','readdirSync','buildLevelTags','./framework/constants/testFrameworkConstants',',\x20values=','mergeValues','3cLyfBV','field_type','BvPQx','parse','hNqGe','xzJfF','./state/testFrameworkState','./modules/playwrightDriverModule','BROWSERSTACK_TESTHUB_UUID','jlYPJ','getInstance','FZaqC','DLoVR','filter','KEY_CUSTOM_TAGS','ryaDh','startsWith','getTestFramework','isRunning','761472PBDcNK','./cliUtils','tdgNd','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','getTestLevelTags','get','8356221tlZNGz','modules','_testInternals','kLfgO','from','getTestUUID','addMultipleEntries','SuKvo','join','parseCommaSeparatedValues','isArray','.json','giHtn','ms)\x20','sBGrb','WHkfG','DTfft','./TestInfo','endsWith','getBuildTagsFilePath','BRYDb','8886enbTih','mtimeMs','vmjej','env','setTestDetails','tmpdir','815614hPnyWJ','tahlA','keys','testInfo','\x20->\x20values='];a86_0x4b24=function(){return _0x391536;};return a86_0x4b24();}function getBuildTagsFilePath(_0x411c61){const _0x2bce4d=a86_0x39afab;return path[_0x2bce4d(0xae)](os[_0x2bce4d(0xc0)](),''+BUILD_TAG_FILE_PREFIX+_0x411c61+'_'+process['pid']+_0x2bce4d(0xb1));}class CustomTagManager{static [a86_0x39afab(0x10c)]={};static [a86_0x39afab(0xed)]={};static[a86_0x39afab(0x10f)](_0x399094,_0x127868){const _0x24c8bd=a86_0x39afab;return Array[_0x24c8bd(0x12f)](new Set([..._0x399094||[],..._0x127868||[]]));}static['mergeIntoTags'](_0x34ee5d,_0xbada53,_0x223413){const _0x8eef4c=a86_0x39afab,_0x5adf9a={};_0x5adf9a[_0x8eef4c(0x11c)]=_0x8eef4c(0x109);const _0x100a69=_0x5adf9a;if(!_0x34ee5d[_0xbada53]){const _0x3402d0={};_0x3402d0[_0x8eef4c(0x111)]=_0x100a69[_0x8eef4c(0x11c)],_0x3402d0[_0x8eef4c(0xde)]=[..._0x223413||[]],_0x34ee5d[_0xbada53]=_0x3402d0;}else!_0x34ee5d[_0xbada53]['field_type']&&(_0x34ee5d[_0xbada53][_0x8eef4c(0x111)]=_0x100a69[_0x8eef4c(0x11c)]),!Array[_0x8eef4c(0xb0)](_0x34ee5d[_0xbada53][_0x8eef4c(0xde)])&&(_0x34ee5d[_0xbada53]['values']=[]),_0x34ee5d[_0xbada53][_0x8eef4c(0xde)]=CustomTagManager[_0x8eef4c(0x10f)](_0x34ee5d[_0xbada53][_0x8eef4c(0xde)],_0x223413);return _0x34ee5d;}static async['setCustomTags'](_0x459797,_0x4feec3,_0x77da=![]){const _0x47638d=a86_0x39afab,_0x2399d7={'giHtn':function(_0x5c9251,_0xc34edb){return _0x5c9251!==_0xc34edb;},'VDdMl':'string','LMgrh':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','oRxRE':_0x47638d(0x128),'kLfgO':function(_0x36fbaf,_0x26a339){return _0x36fbaf===_0x26a339;},'xzJfF':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','WHkfG':function(_0xb79c3e,_0x2cd733){return _0xb79c3e===_0x2cd733;},'jPGKq':_0x47638d(0x127),'qTvyY':function(_0x524fe9,_0x18628d){return _0x524fe9(_0x18628d);},'BvPQx':_0x47638d(0xc8),'JvfgN':function(_0x599803){return _0x599803();},'MCnWj':_0x47638d(0x109),'lXDEK':function(_0x47a677,_0x2521c0){return _0x47a677>_0x2521c0;},'mTYbx':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','ryaDh':_0x47638d(0xee),'tdgNd':_0x47638d(0x124),'SBwGy':_0x47638d(0xe0),'sBGrb':_0x47638d(0xfd),'tahlA':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','vmjej':function(_0x4467ce,_0x6b3139){return _0x4467ce(_0x6b3139);},'DTfft':_0x47638d(0x116),'hNqGe':'./state/hookState','iXVfV':_0x47638d(0x108)};if(_0x2399d7[_0x47638d(0xb2)](typeof _0x459797,_0x2399d7[_0x47638d(0xf6)])){logger['debug'](_0x2399d7[_0x47638d(0xd4)]);return;}if(_0x2399d7[_0x47638d(0xb2)](typeof _0x4feec3,_0x2399d7['VDdMl'])){logger[_0x47638d(0xd8)](_0x2399d7[_0x47638d(0xd2)]);return;}if(_0x2399d7[_0x47638d(0x12e)](_0x459797['trim'](),'')){logger[_0x47638d(0xd8)](_0x2399d7[_0x47638d(0x115)]);return;}if(_0x2399d7[_0x47638d(0xb5)](_0x4feec3[_0x47638d(0xd3)](),'')){logger[_0x47638d(0xd8)](_0x2399d7['jPGKq']);return;}const _0x3967ef=helper[_0x47638d(0xaf)](_0x4feec3);if(_0x77da){const _0x2df696=_0x2399d7[_0x47638d(0xc7)](require,_0x2399d7[_0x47638d(0x112)]),_0x400ca7=_0x2df696['getInstance'](),_0x4178b5=_0x400ca7&&_0x400ca7[_0x47638d(0x12c)][TestHubModule['MODULE_NAME']];if(_0x4178b5){const _0x35c4f2=_0x4178b5?.[_0x47638d(0x105)]?.[_0x47638d(0xd7)]()?.['buildHashedId'];TestInfo[_0x47638d(0x130)](_0x35c4f2);const _0xe9fcd2=TestInfo[_0x47638d(0xf4)](_0x35c4f2),_0x402e82=_0xe9fcd2[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x47638d(0xe5)](_0x402e82,_0x459797,_0x3967ef),_0xe9fcd2[TestFrameworkConstants[_0x47638d(0x11e)]]=_0x402e82,TestInfo[_0x47638d(0xbf)](_0x35c4f2,_0xe9fcd2);!this[_0x47638d(0x10c)][_0x35c4f2]&&(this[_0x47638d(0x10c)][_0x35c4f2]={});this[_0x47638d(0x10c)][_0x35c4f2][_0x459797]=CustomTagManager['mergeValues'](this[_0x47638d(0x10c)][_0x35c4f2][_0x459797],_0x3967ef);try{const _0x3adea0=_0x2399d7[_0x47638d(0xf7)](getBuildTagsRunId);if(_0x3adea0){const _0x4ff8d5={};for(const [_0x360ba5,_0x383cd1]of Object[_0x47638d(0xec)](this[_0x47638d(0x10c)][_0x35c4f2]||{})){_0x4ff8d5[_0x360ba5]={'field_type':_0x2399d7['MCnWj'],'values':Array[_0x47638d(0xb0)](_0x383cd1)?[..._0x383cd1]:[]};}_0x2399d7['lXDEK'](Object[_0x47638d(0xc3)](_0x4ff8d5)[_0x47638d(0xd5)],0x0)&&await fs[_0x47638d(0x10a)]['writeFile'](_0x2399d7[_0x47638d(0xc7)](getBuildTagsFilePath,_0x3adea0),JSON[_0x47638d(0x104)](_0x4ff8d5));}else logger[_0x47638d(0xd8)](_0x2399d7[_0x47638d(0x106)]);}catch(_0xf2d2a6){logger['debug']('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0xf2d2a6&&_0xf2d2a6['message']?_0xf2d2a6['message']:_0xf2d2a6));}}}else{let _0x85ab66;const _0x3f16f9=global['__jestCurrentTestIdentifier'];let _0x43586b=![];if(_0x3f16f9&&_0x3f16f9[_0x47638d(0x107)](_0x2399d7[_0x47638d(0x11f)]))_0x43586b=!![],_0x85ab66=_0x3f16f9;else try{const _0x5e4c00=_0x2399d7[_0x47638d(0xc7)](require,_0x2399d7[_0x47638d(0x125)]),_0x16bb8c=_0x2399d7[_0x47638d(0xc7)](require,_0x2399d7['BvPQx']);if(_0x16bb8c[_0x47638d(0x11a)]()[_0x47638d(0x122)]()){const _0x4f777b=_0x5e4c00[_0x47638d(0xff)]();if(_0x2399d7['WHkfG'](_0x4f777b?.[_0x47638d(0xe9)]?.[_0x47638d(0xea)](),_0x2399d7[_0x47638d(0xfa)])){const _0x5ef1f2=AutomationFramework[_0x47638d(0xf1)]();_0x85ab66=AutomationFramework[_0x47638d(0xf3)](_0x5ef1f2,PlaywrightDriverModule[_0x47638d(0xda)],''),_0x85ab66&&_0x85ab66[_0x47638d(0x107)](_0x2399d7[_0x47638d(0x11f)])&&(_0x43586b=!![]);}}}catch(_0x4cb78d){logger['debug'](_0x47638d(0xe8)+_0x4cb78d);}if(_0x43586b){if(!_0x85ab66)throw new Error(_0x2399d7[_0x47638d(0xb4)]);const _0x24ac8c=_0x2399d7[_0x47638d(0xc7)](require,_0x2399d7[_0x47638d(0x112)]),_0x156aae=_0x24ac8c[_0x47638d(0x11a)]()[_0x47638d(0x121)]();if(!_0x156aae)throw new Error(_0x2399d7[_0x47638d(0xc2)]);const _0x3373ad=_0x2399d7[_0x47638d(0xbd)](require,_0x2399d7[_0x47638d(0xb6)]),_0x2df49c=_0x2399d7[_0x47638d(0xbd)](require,_0x2399d7[_0x47638d(0x114)]),_0x55ef4d=_0x156aae[_0x47638d(0xef)](_0x3373ad[_0x47638d(0xe7)],_0x2df49c[_0x47638d(0xe2)]);if(!_0x55ef4d)throw new Error(_0x2399d7[_0x47638d(0xc9)]);const _0x5ead16=_0x55ef4d[_0x47638d(0xfb)]()[_0x47638d(0x12a)](_0x85ab66)||{},_0x5a1339=_0x5ead16[TestFrameworkConstants[_0x47638d(0x11e)]]||{};logger['debug'](_0x47638d(0xd9)+_0x85ab66+_0x47638d(0xcf)+_0x459797+_0x47638d(0x10e)+JSON[_0x47638d(0x104)](_0x3967ef)+_0x47638d(0xe6)+JSON[_0x47638d(0x104)](_0x5a1339)),CustomTagManager[_0x47638d(0xe5)](_0x5a1339,_0x459797,_0x3967ef),logger[_0x47638d(0xd8)](_0x47638d(0x126)+_0x459797+_0x47638d(0xc5)+JSON[_0x47638d(0x104)](_0x5a1339[_0x459797][_0x47638d(0xde)]));const _0xcc8bd3={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x5a1339},_0x5e49f4={};_0x5e49f4[_0x85ab66]=_0xcc8bd3,_0x55ef4d[_0x47638d(0xac)](_0x5e49f4),logger['debug'](_0x47638d(0xf2)+_0x85ab66+',\x20finalTags='+JSON[_0x47638d(0x104)](_0x5a1339)),!this['testLevelTags'][_0x85ab66]&&(this['testLevelTags'][_0x85ab66]={}),this[_0x47638d(0xed)][_0x85ab66][_0x459797]=CustomTagManager[_0x47638d(0x10f)](this[_0x47638d(0xed)][_0x85ab66][_0x459797],_0x3967ef);}else{const _0x220138=global[_0x47638d(0xe1)]?.['currentTest']?.[_0x47638d(0xc4)];if(!_0x220138){const _0x526157=AutomationFramework[_0x47638d(0xf1)]();_0x85ab66=AutomationFramework[_0x47638d(0xf3)](_0x526157,PlaywrightDriverModule['KEY_TEST_ID'],'');}else _0x85ab66=TestInfo['getTestIdentifierFromTestInfo'](_0x220138,_0x220138['retry']);const _0x3a3e97=TestInfo[_0x47638d(0xf4)](_0x85ab66),_0x52597e=_0x3a3e97[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x47638d(0xe5)](_0x52597e,_0x459797,_0x3967ef),_0x3a3e97[TestFrameworkConstants[_0x47638d(0x11e)]]=_0x52597e,TestInfo[_0x47638d(0xbf)](_0x85ab66,_0x3a3e97),!this['testLevelTags'][_0x85ab66]&&(this[_0x47638d(0xed)][_0x85ab66]={}),this[_0x47638d(0xed)][_0x85ab66][_0x459797]=CustomTagManager[_0x47638d(0x10f)](this[_0x47638d(0xed)][_0x85ab66][_0x459797],_0x3967ef);}}}static[a86_0x39afab(0xe4)](){const _0x57afe9=a86_0x39afab,_0x4a1cdd={...this[_0x57afe9(0x10c)]};return _0x4a1cdd;}static[a86_0x39afab(0x129)](){const _0x55d5d8={...this['testLevelTags']};return _0x55d5d8;}static['clearTags'](){const _0x24057e=a86_0x39afab;this[_0x24057e(0x10c)]={},this[_0x24057e(0xed)]={};}static[a86_0x39afab(0xcc)](_0x5e6531,_0x29a8ed){const _0x5e4475=a86_0x39afab,_0x45f336={};_0x45f336[_0x5e4475(0xba)]=function(_0x195ea1,_0x96a2f1){return _0x195ea1||_0x96a2f1;};const _0x40b951=_0x45f336;if(!_0x5e6531)return;!this['buildLevelTags'][_0x5e6531]&&(this[_0x5e4475(0x10c)][_0x5e6531]={});for(const [_0x48347d,_0xacd46d]of Object[_0x5e4475(0xec)](_0x40b951[_0x5e4475(0xba)](_0x29a8ed,{}))){if(!_0xacd46d||!Array[_0x5e4475(0xb0)](_0xacd46d[_0x5e4475(0xde)]))continue;this[_0x5e4475(0x10c)][_0x5e6531][_0x48347d]=CustomTagManager[_0x5e4475(0x10f)](this[_0x5e4475(0x10c)][_0x5e6531][_0x48347d],_0xacd46d[_0x5e4475(0xde)]);}}static[a86_0x39afab(0xd6)](_0xfae5b,_0x27be48){const _0x369618=a86_0x39afab,_0x1abaed={};_0x1abaed[_0x369618(0x100)]='CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate',_0x1abaed[_0x369618(0xe3)]=function(_0x510abd,_0x2f8b51){return _0x510abd*_0x2f8b51;},_0x1abaed['SuKvo']=function(_0x1acceb,_0x4053f7){return _0x1acceb*_0x4053f7;},_0x1abaed['Dwmyb']=function(_0x3ace80,_0x15103f){return _0x3ace80>_0x15103f;},_0x1abaed[_0x369618(0xc6)]=function(_0xa43ec7,_0x3f5ff2){return _0xa43ec7-_0x3f5ff2;},_0x1abaed[_0x369618(0x11b)]='utf8';const _0x168bc7=_0x1abaed;if(!_0xfae5b)return logger['debug'](_0x168bc7[_0x369618(0x100)]),0x0;let _0x14f918;try{_0x14f918=os[_0x369618(0xc0)]();}catch(_0x50866e){return logger['debug'](_0x369618(0x101)+_0x50866e),0x0;}let _0x4725de;try{_0x4725de=fs[_0x369618(0x10b)](_0x14f918);}catch(_0x1921cc){return logger[_0x369618(0xd8)](_0x369618(0xeb)+_0x1921cc),0x0;}const _0xca3e53=''+BUILD_TAG_FILE_PREFIX+_0xfae5b+'_',_0x57d80f=_0x4725de[_0x369618(0x11d)](_0x23915b=>_0x23915b[_0x369618(0x120)](_0xca3e53)&&_0x23915b[_0x369618(0xb8)](_0x369618(0xb1))),_0x1fd389=_0x168bc7[_0x369618(0xe3)](_0x168bc7[_0x369618(0xad)](_0x168bc7[_0x369618(0xad)](0x2,0x3c),0x3c),0x3e8);let _0x45a0cd=0x0;for(const _0x170f1e of _0x57d80f){const _0x35e85d=path[_0x369618(0xae)](_0x14f918,_0x170f1e);try{const _0x5535dc=fs['statSync'](_0x35e85d);if(_0x168bc7[_0x369618(0x102)](_0x168bc7[_0x369618(0xc6)](Date[_0x369618(0xf8)](),_0x5535dc[_0x369618(0xbc)]),_0x1fd389)){logger[_0x369618(0xd8)](_0x369618(0xf9)+_0x1fd389+_0x369618(0xb3)+_0x170f1e);try{fs[_0x369618(0xd0)](_0x35e85d);}catch(_0x44c4e9){logger['debug'](_0x369618(0xdc)+_0x170f1e+':\x20'+(_0x44c4e9&&_0x44c4e9['message']?_0x44c4e9[_0x369618(0xcd)]:_0x44c4e9));}continue;}const _0x5e8d64=fs['readFileSync'](_0x35e85d,_0x168bc7[_0x369618(0x11b)]),_0x1a79b0=JSON[_0x369618(0x113)](_0x5e8d64);this[_0x369618(0xcc)](_0x27be48,_0x1a79b0),_0x45a0cd+=0x1;}catch(_0x2a1acf){logger[_0x369618(0xd8)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x170f1e+':\x20'+(_0x2a1acf&&_0x2a1acf['message']?_0x2a1acf['message']:_0x2a1acf));}try{fs['unlinkSync'](_0x35e85d);}catch(_0x488847){logger[_0x369618(0xd8)](_0x369618(0xf5)+_0x170f1e+':\x20'+(_0x488847&&_0x488847[_0x369618(0xcd)]?_0x488847[_0x369618(0xcd)]:_0x488847));}}return _0x45a0cd;}}const a86_0x570478={};a86_0x570478[a86_0x39afab(0xdd)]=getBuildTagsRunId,a86_0x570478[a86_0x39afab(0xb9)]=getBuildTagsFilePath,a86_0x570478[a86_0x39afab(0xf0)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x39afab(0x12d)]=a86_0x570478,module['exports']=CustomTagManager;
|
|
1
|
+
'use strict';const a86_0x48a982=a86_0x1091;function a86_0x3281(){const _0x2cedbe=[',\x20existingTags=','modules','.json','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','startsWith','mergeBuildLevelTags','PjqTO','uXydx',',\x20values=','path','POST','KEY_TEST_ID','./cliUtils','./modules/playwrightDriverModule','xSaFf',',\x20key=','toObject','./framework/automationFramework','rzhOK','7047960zMkduz','ttjoM','getTestUUID','readFileSync','from','EHtDH','getBuildLevelTags','wqYGE','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','TEST','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','MODULE_NAME','rMZaq','clearTags','./browserstackCLI','3743496nqbnoI','qAFze','jest','mbMKC','now','buildHashedId','mergeValues','getTrackedInstance','name','ms)\x20','xFbFD','getAllData','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','13213472qTBDMe','azwoC','./TestInfo','getState','parseCommaSeparatedValues','setTestDetails','message','tmpdir','\x20->\x20values=','join','testLevelTags','1283954rRsHnl','nYHyt','YQktk','trim','7ESKlMr','statSync','promises','readdirSync','pid','__jestCurrentTestIdentifier','null',':jest-','includes','writeFile','debug','Inxol','rATNx','getTestIdentifierFromTestInfo','getTestFrameworkDetail','aLgpW','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','JQVbc','gdtpT','QMQMG','resolveInstance','KFZXv','NUyln','knttm','stringify','ERMGV','addMultipleEntries','getBuildTagsFilePath','retry','field_type','CustomTagManager','3014170dDQNJi','./state/hookState','1474530hTOKvI','mergeIntoTags','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','isArray','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','BUILD_TAG_FILE_PREFIX','KEY_CUSTOM_TAGS','EAljt','length','keys','buildLevelTags','bstack_build_tags_','MgRXf','../../helpers/classLogger','isRunning','HQuCV','entries','getInstance','577057QQbpzk','../../helpers/helper','aggregateBuildLevelTagsFromTmp','HOiKc','values','sYKDG','getTestDetails','exports','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','unlinkSync','wVfjf','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write'];a86_0x3281=function(){return _0x2cedbe;};return a86_0x3281();}(function(_0x23e768,_0x21121b){const _0x485c38=a86_0x1091,_0xdfb9d9=_0x23e768();while(!![]){try{const _0xd0a762=-parseInt(_0x485c38(0xaf))/0x1+-parseInt(_0x485c38(0xf5))/0x2+-parseInt(_0x485c38(0x9d))/0x3+-parseInt(_0x485c38(0xdd))/0x4+parseInt(_0x485c38(0x9b))/0x5+parseInt(_0x485c38(0xce))/0x6+parseInt(_0x485c38(0xf9))/0x7*(parseInt(_0x485c38(0xea))/0x8);if(_0xd0a762===_0x21121b)break;else _0xdfb9d9['push'](_0xdfb9d9['shift']());}catch(_0x3d5efa){_0xdfb9d9['push'](_0xdfb9d9['shift']());}}}(a86_0x3281,0xbf1a8));function a86_0x1091(_0x13064a,_0x34d223){const _0x32811b=a86_0x3281();return a86_0x1091=function(_0x1091d4,_0x2c6310){_0x1091d4=_0x1091d4-0x94;let _0x3e4903=_0x32811b[_0x1091d4];return _0x3e4903;},a86_0x1091(_0x13064a,_0x34d223);}const fs=require('fs'),os=require('os'),path=require(a86_0x48a982(0xc4)),helper=require(a86_0x48a982(0xb0)),AutomationFramework=require(a86_0x48a982(0xcc)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require(a86_0x48a982(0xc8)),TestInfo=require(a86_0x48a982(0xec)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require(a86_0x48a982(0xaa)),logger=createClassLogger(a86_0x48a982(0x9a)),BUILD_TAG_FILE_PREFIX=a86_0x48a982(0xa8);function getBuildTagsRunId(){const _0x310f39=a86_0x48a982,_0x1dfc0f={};_0x1dfc0f['kYNvt']=function(_0x1c916c,_0x42c291){return _0x1c916c===_0x42c291;},_0x1dfc0f[_0x310f39(0x10b)]=_0x310f39(0xff);const _0xd9f3f1=_0x1dfc0f,_0x2374a3=process['env']['BROWSERSTACK_TESTHUB_UUID'];if(!_0x2374a3||_0xd9f3f1['kYNvt'](_0x2374a3,_0xd9f3f1[_0x310f39(0x10b)]))return null;return _0x2374a3;}function getBuildTagsFilePath(_0x412972){const _0x4ad967=a86_0x48a982;return path[_0x4ad967(0xf3)](os['tmpdir'](),''+BUILD_TAG_FILE_PREFIX+_0x412972+'_'+process[_0x4ad967(0xfd)]+'.json');}class CustomTagManager{static [a86_0x48a982(0xa7)]={};static ['testLevelTags']={};static[a86_0x48a982(0xe3)](_0x12e86a,_0x405ea9){const _0x195f32=a86_0x48a982;return Array[_0x195f32(0xd2)](new Set([..._0x12e86a||[],..._0x405ea9||[]]));}static['mergeIntoTags'](_0x862354,_0x229593,_0x861b64){const _0x3821cf=a86_0x48a982,_0x1fc142={};_0x1fc142[_0x3821cf(0x10c)]='multi_dropdown';const _0x16d023=_0x1fc142;if(!_0x862354[_0x229593]){const _0x339b29={};_0x339b29['field_type']=_0x16d023[_0x3821cf(0x10c)],_0x339b29[_0x3821cf(0xb3)]=[..._0x861b64||[]],_0x862354[_0x229593]=_0x339b29;}else!_0x862354[_0x229593][_0x3821cf(0x99)]&&(_0x862354[_0x229593][_0x3821cf(0x99)]=_0x16d023['QMQMG']),!Array[_0x3821cf(0xa0)](_0x862354[_0x229593][_0x3821cf(0xb3)])&&(_0x862354[_0x229593]['values']=[]),_0x862354[_0x229593]['values']=CustomTagManager[_0x3821cf(0xe3)](_0x862354[_0x229593][_0x3821cf(0xb3)],_0x861b64);return _0x862354;}static async['setCustomTags'](_0x28ba52,_0x1af7f7,_0x4b411e=![]){const _0x477cf6=a86_0x48a982,_0x579c1b={'nYHyt':function(_0x30b66b,_0x1e8445){return _0x30b66b!==_0x1e8445;},'NUyln':'string','pOTRc':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','RQBza':_0x477cf6(0xe9),'knttm':function(_0x409d8c,_0x4e8fdf){return _0x409d8c===_0x4e8fdf;},'EAljt':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','xSaFf':function(_0x3dc6f3,_0x4d7ab0){return _0x3dc6f3===_0x4d7ab0;},'EeciF':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','xFbFD':function(_0xb055db,_0x1c5a61){return _0xb055db(_0x1c5a61);},'sYKDG':_0x477cf6(0xdc),'pocYJ':function(_0x41180f){return _0x41180f();},'ttjoM':'multi_dropdown','KFZXv':function(_0x40c9a5,_0x1de082){return _0x40c9a5>_0x1de082;},'uXydx':function(_0x4b76b8,_0x5c91b4){return _0x4b76b8(_0x5c91b4);},'mbMKC':_0x477cf6(0xba),'HQuCV':_0x477cf6(0x100),'YQktk':_0x477cf6(0xc7),'HOiKc':function(_0x37b321,_0x20c691){return _0x37b321===_0x20c691;},'aLgpW':_0x477cf6(0xdf),'EHtDH':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','rzhOK':function(_0x32a0c5,_0x4576a8){return _0x32a0c5(_0x4576a8);},'azwoC':_0x477cf6(0x9f),'qAFze':function(_0x51cc87,_0x2e9535){return _0x51cc87(_0x2e9535);},'wVfjf':'./state/testFrameworkState','PjqTO':_0x477cf6(0x9c),'wqYGE':_0x477cf6(0xa1)};if(_0x579c1b[_0x477cf6(0xf6)](typeof _0x28ba52,_0x579c1b[_0x477cf6(0x10f)])){logger[_0x477cf6(0x103)](_0x579c1b['pOTRc']);return;}if(_0x579c1b[_0x477cf6(0xf6)](typeof _0x1af7f7,_0x579c1b[_0x477cf6(0x10f)])){logger['debug'](_0x579c1b['RQBza']);return;}if(_0x579c1b[_0x477cf6(0x110)](_0x28ba52['trim'](),'')){logger[_0x477cf6(0x103)](_0x579c1b[_0x477cf6(0xa4)]);return;}if(_0x579c1b[_0x477cf6(0xc9)](_0x1af7f7[_0x477cf6(0xf8)](),'')){logger['debug'](_0x579c1b['EeciF']);return;}const _0x7e4fc4=helper[_0x477cf6(0xee)](_0x1af7f7);if(_0x4b411e){const _0x46720d=_0x579c1b[_0x477cf6(0xe7)](require,_0x579c1b['sYKDG']),_0x17a374=_0x46720d['getInstance'](),_0x340e5d=_0x17a374&&_0x17a374[_0x477cf6(0xbc)][TestHubModule[_0x477cf6(0xd9)]];if(_0x340e5d){const _0x3f14f9=_0x340e5d?.['testhubConfig']?.[_0x477cf6(0xcb)]()?.[_0x477cf6(0xe2)];TestInfo[_0x477cf6(0xd0)](_0x3f14f9);const _0x3764f7=TestInfo[_0x477cf6(0xb5)](_0x3f14f9),_0x17b7ad=_0x3764f7[TestFrameworkConstants[_0x477cf6(0xa3)]]||{};CustomTagManager['mergeIntoTags'](_0x17b7ad,_0x28ba52,_0x7e4fc4),_0x3764f7[TestFrameworkConstants[_0x477cf6(0xa3)]]=_0x17b7ad,TestInfo[_0x477cf6(0xef)](_0x3f14f9,_0x3764f7);!this['buildLevelTags'][_0x3f14f9]&&(this['buildLevelTags'][_0x3f14f9]={});this[_0x477cf6(0xa7)][_0x3f14f9][_0x28ba52]=CustomTagManager[_0x477cf6(0xe3)](this[_0x477cf6(0xa7)][_0x3f14f9][_0x28ba52],_0x7e4fc4);try{const _0x5727df=_0x579c1b['pocYJ'](getBuildTagsRunId);if(_0x5727df){const _0x31c6a8={};for(const [_0x3199ef,_0x331040]of Object[_0x477cf6(0xad)](this[_0x477cf6(0xa7)][_0x3f14f9]||{})){_0x31c6a8[_0x3199ef]={'field_type':_0x579c1b[_0x477cf6(0xcf)],'values':Array[_0x477cf6(0xa0)](_0x331040)?[..._0x331040]:[]};}_0x579c1b[_0x477cf6(0x10e)](Object[_0x477cf6(0xa6)](_0x31c6a8)[_0x477cf6(0xa5)],0x0)&&await fs[_0x477cf6(0xfb)][_0x477cf6(0x102)](_0x579c1b[_0x477cf6(0xc2)](getBuildTagsFilePath,_0x5727df),JSON['stringify'](_0x31c6a8));}else logger[_0x477cf6(0x103)](_0x579c1b[_0x477cf6(0xe0)]);}catch(_0x5aae4c){logger[_0x477cf6(0x103)]('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0x5aae4c&&_0x5aae4c['message']?_0x5aae4c['message']:_0x5aae4c));}}}else{let _0x179b1b;const _0x3c68e5=global[_0x477cf6(0xfe)];let _0x3b6b25=![];if(_0x3c68e5&&_0x3c68e5[_0x477cf6(0x101)](_0x579c1b[_0x477cf6(0xac)]))_0x3b6b25=!![],_0x179b1b=_0x3c68e5;else try{const _0x285f20=_0x579c1b[_0x477cf6(0xc2)](require,_0x579c1b[_0x477cf6(0xf7)]),_0xc08c33=_0x579c1b[_0x477cf6(0xe7)](require,_0x579c1b[_0x477cf6(0xb4)]);if(_0xc08c33[_0x477cf6(0xae)]()[_0x477cf6(0xab)]()){const _0x7c4c08=_0x285f20[_0x477cf6(0x107)]();if(_0x579c1b[_0x477cf6(0xb2)](_0x7c4c08?.[_0x477cf6(0xe5)]?.['toLowerCase'](),_0x579c1b[_0x477cf6(0x108)])){const _0x4bf67b=AutomationFramework[_0x477cf6(0xe4)]();_0x179b1b=AutomationFramework[_0x477cf6(0xed)](_0x4bf67b,PlaywrightDriverModule[_0x477cf6(0xc6)],''),_0x179b1b&&_0x179b1b['includes'](_0x579c1b['HQuCV'])&&(_0x3b6b25=!![]);}}}catch(_0x3f0ae9){logger[_0x477cf6(0x103)](_0x477cf6(0x109)+_0x3f0ae9);}if(_0x3b6b25){if(!_0x179b1b)throw new Error(_0x579c1b[_0x477cf6(0xd3)]);const _0x198386=_0x579c1b[_0x477cf6(0xcd)](require,_0x579c1b['sYKDG']),_0x5672b8=_0x198386['getInstance']()['getTestFramework']();if(!_0x5672b8)throw new Error(_0x579c1b[_0x477cf6(0xeb)]);const _0x4d65ba=_0x579c1b[_0x477cf6(0xde)](require,_0x579c1b[_0x477cf6(0xb9)]),_0x42446c=_0x579c1b[_0x477cf6(0xcd)](require,_0x579c1b[_0x477cf6(0xc1)]),_0x321e19=_0x5672b8[_0x477cf6(0x10d)](_0x4d65ba[_0x477cf6(0xd7)],_0x42446c[_0x477cf6(0xc5)]);if(!_0x321e19)throw new Error(_0x579c1b[_0x477cf6(0xd5)]);const _0x5b667d=_0x321e19[_0x477cf6(0xe8)]()['get'](_0x179b1b)||{},_0x15bf70=_0x5b667d[TestFrameworkConstants[_0x477cf6(0xa3)]]||{};logger[_0x477cf6(0x103)]('[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier='+_0x179b1b+_0x477cf6(0xca)+_0x28ba52+_0x477cf6(0xc3)+JSON[_0x477cf6(0x94)](_0x7e4fc4)+_0x477cf6(0xbb)+JSON[_0x477cf6(0x94)](_0x15bf70)),CustomTagManager[_0x477cf6(0x9e)](_0x15bf70,_0x28ba52,_0x7e4fc4),logger[_0x477cf6(0x103)]('[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key='+_0x28ba52+_0x477cf6(0xf2)+JSON[_0x477cf6(0x94)](_0x15bf70[_0x28ba52][_0x477cf6(0xb3)]));const _0x41cab4={[TestFrameworkConstants[_0x477cf6(0xa3)]]:_0x15bf70},_0x5bf8e6={};_0x5bf8e6[_0x179b1b]=_0x41cab4,_0x321e19[_0x477cf6(0x96)](_0x5bf8e6),logger[_0x477cf6(0x103)](_0x477cf6(0xd8)+_0x179b1b+',\x20finalTags='+JSON[_0x477cf6(0x94)](_0x15bf70)),!this['testLevelTags'][_0x179b1b]&&(this[_0x477cf6(0xf4)][_0x179b1b]={}),this['testLevelTags'][_0x179b1b][_0x28ba52]=CustomTagManager[_0x477cf6(0xe3)](this[_0x477cf6(0xf4)][_0x179b1b][_0x28ba52],_0x7e4fc4);}else{const _0x58ec45=global['__workerDetails']?.['currentTest']?.['testInfo'];if(!_0x58ec45){const _0x4e9318=AutomationFramework[_0x477cf6(0xe4)]();_0x179b1b=AutomationFramework[_0x477cf6(0xed)](_0x4e9318,PlaywrightDriverModule[_0x477cf6(0xc6)],'');}else _0x179b1b=TestInfo[_0x477cf6(0x106)](_0x58ec45,_0x58ec45[_0x477cf6(0x98)]);const _0x4940b9=TestInfo[_0x477cf6(0xb5)](_0x179b1b),_0x2aed42=_0x4940b9[TestFrameworkConstants[_0x477cf6(0xa3)]]||{};CustomTagManager[_0x477cf6(0x9e)](_0x2aed42,_0x28ba52,_0x7e4fc4),_0x4940b9[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x2aed42,TestInfo[_0x477cf6(0xef)](_0x179b1b,_0x4940b9),!this[_0x477cf6(0xf4)][_0x179b1b]&&(this[_0x477cf6(0xf4)][_0x179b1b]={}),this[_0x477cf6(0xf4)][_0x179b1b][_0x28ba52]=CustomTagManager[_0x477cf6(0xe3)](this[_0x477cf6(0xf4)][_0x179b1b][_0x28ba52],_0x7e4fc4);}}}static[a86_0x48a982(0xd4)](){const _0x2e6c4f=a86_0x48a982,_0x517e5e={...this[_0x2e6c4f(0xa7)]};return _0x517e5e;}static['getTestLevelTags'](){const _0x66e6f7={...this['testLevelTags']};return _0x66e6f7;}static[a86_0x48a982(0xdb)](){this['buildLevelTags']={},this['testLevelTags']={};}static[a86_0x48a982(0xc0)](_0x5362da,_0x2bb56e){const _0x452113=a86_0x48a982,_0x1a361c={};_0x1a361c[_0x452113(0x105)]=function(_0x4a17ae,_0x3f63b7){return _0x4a17ae||_0x3f63b7;};const _0x495b44=_0x1a361c;if(!_0x5362da)return;!this[_0x452113(0xa7)][_0x5362da]&&(this['buildLevelTags'][_0x5362da]={});for(const [_0x2ed5ed,_0x57719d]of Object['entries'](_0x495b44[_0x452113(0x105)](_0x2bb56e,{}))){if(!_0x57719d||!Array[_0x452113(0xa0)](_0x57719d[_0x452113(0xb3)]))continue;this[_0x452113(0xa7)][_0x5362da][_0x2ed5ed]=CustomTagManager[_0x452113(0xe3)](this[_0x452113(0xa7)][_0x5362da][_0x2ed5ed],_0x57719d[_0x452113(0xb3)]);}}static[a86_0x48a982(0xb1)](_0x426297,_0x2b36ee){const _0x3b038d=a86_0x48a982,_0x3064cf={};_0x3064cf[_0x3b038d(0x104)]='CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate',_0x3064cf['ERMGV']=function(_0x5c0864,_0x15aa27){return _0x5c0864*_0x15aa27;},_0x3064cf['rMZaq']=function(_0x1a1683,_0x2f27ef){return _0x1a1683>_0x2f27ef;},_0x3064cf['JQVbc']=function(_0x184560,_0x178d70){return _0x184560-_0x178d70;},_0x3064cf[_0x3b038d(0xa9)]='utf8';const _0xb49964=_0x3064cf;if(!_0x426297)return logger[_0x3b038d(0x103)](_0xb49964[_0x3b038d(0x104)]),0x0;let _0x37a79c;try{_0x37a79c=os[_0x3b038d(0xf1)]();}catch(_0x4e6c33){return logger[_0x3b038d(0x103)](_0x3b038d(0xd6)+_0x4e6c33),0x0;}let _0x212cbe;try{_0x212cbe=fs[_0x3b038d(0xfc)](_0x37a79c);}catch(_0x5cfb73){return logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20'+_0x5cfb73),0x0;}const _0x551002=''+BUILD_TAG_FILE_PREFIX+_0x426297+'_',_0x4abd7c=_0x212cbe['filter'](_0x421f82=>_0x421f82[_0x3b038d(0xbf)](_0x551002)&&_0x421f82['endsWith'](_0x3b038d(0xbd))),_0x33ddf2=_0xb49964[_0x3b038d(0x95)](_0xb49964[_0x3b038d(0x95)](_0xb49964['ERMGV'](0x2,0x3c),0x3c),0x3e8);let _0x1d4be2=0x0;for(const _0x4a02d8 of _0x4abd7c){const _0x4f4438=path[_0x3b038d(0xf3)](_0x37a79c,_0x4a02d8);try{const _0x71bb4a=fs[_0x3b038d(0xfa)](_0x4f4438);if(_0xb49964[_0x3b038d(0xda)](_0xb49964[_0x3b038d(0x10a)](Date[_0x3b038d(0xe1)](),_0x71bb4a['mtimeMs']),_0x33ddf2)){logger[_0x3b038d(0x103)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>'+_0x33ddf2+_0x3b038d(0xe6)+_0x4a02d8);try{fs[_0x3b038d(0xb8)](_0x4f4438);}catch(_0x2d58c9){logger[_0x3b038d(0x103)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20'+_0x4a02d8+':\x20'+(_0x2d58c9&&_0x2d58c9[_0x3b038d(0xf0)]?_0x2d58c9[_0x3b038d(0xf0)]:_0x2d58c9));}continue;}const _0x1170f6=fs[_0x3b038d(0xd1)](_0x4f4438,_0xb49964[_0x3b038d(0xa9)]),_0x47fb4f=JSON['parse'](_0x1170f6);this['mergeBuildLevelTags'](_0x2b36ee,_0x47fb4f),_0x1d4be2+=0x1;}catch(_0x108718){logger[_0x3b038d(0x103)](_0x3b038d(0xbe)+_0x4a02d8+':\x20'+(_0x108718&&_0x108718[_0x3b038d(0xf0)]?_0x108718['message']:_0x108718));}try{fs[_0x3b038d(0xb8)](_0x4f4438);}catch(_0x20e67b){logger['debug'](_0x3b038d(0xb7)+_0x4a02d8+':\x20'+(_0x20e67b&&_0x20e67b['message']?_0x20e67b[_0x3b038d(0xf0)]:_0x20e67b));}}return _0x1d4be2;}}const a86_0x179620={};a86_0x179620['getBuildTagsRunId']=getBuildTagsRunId,a86_0x179620[a86_0x48a982(0x97)]=getBuildTagsFilePath,a86_0x179620[a86_0x48a982(0xa2)]=BUILD_TAG_FILE_PREFIX,CustomTagManager['_testInternals']=a86_0x179620,module[a86_0x48a982(0xb6)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x4ed26d=a87_0x43e1;function a87_0x43e1(_0x3ab147,_0x47eed8){const _0x52dc65=a87_0x52dc();return a87_0x43e1=function(_0x43e155,_0x2531ed){_0x43e155=_0x43e155-0x1e0;let _0x1ad69c=_0x52dc65[_0x43e155];return _0x1ad69c;},a87_0x43e1(_0x3ab147,_0x47eed8);}(function(_0x3c8f85,_0x562036){const _0x4cfa0f=a87_0x43e1,_0x5200ee=_0x3c8f85();while(!![]){try{const _0x158198=-parseInt(_0x4cfa0f(0x1e8))/0x1*(-parseInt(_0x4cfa0f(0x1eb))/0x2)+-parseInt(_0x4cfa0f(0x1f1))/0x3+-parseInt(_0x4cfa0f(0x1ea))/0x4*(-parseInt(_0x4cfa0f(0x1e4))/0x5)+-parseInt(_0x4cfa0f(0x1e2))/0x6*(parseInt(_0x4cfa0f(0x1ec))/0x7)+parseInt(_0x4cfa0f(0x1e5))/0x8*(-parseInt(_0x4cfa0f(0x1e1))/0x9)+parseInt(_0x4cfa0f(0x1e0))/0xa*(parseInt(_0x4cfa0f(0x1e3))/0xb)+parseInt(_0x4cfa0f(0x1e6))/0xc*(parseInt(_0x4cfa0f(0x1ef))/0xd);if(_0x158198===_0x562036)break;else _0x5200ee['push'](_0x5200ee['shift']());}catch(_0x2027c5){_0x5200ee['push'](_0x5200ee['shift']());}}}(a87_0x52dc,0xcd53e));const {createClassLogger}=require('../../helpers/classLogger.js');class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static[a87_0x4ed26d(0x1ed)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a87_0x4ed26d(0x1f0)](_0x41d268,_0x107058){const _0xce30a5=a87_0x4ed26d;!this['observers'][_0x41d268]&&(this[_0xce30a5(0x1f2)][_0x41d268]=[]),this[_0xce30a5(0x1f2)][_0x41d268]['push'](_0x107058);}async[a87_0x4ed26d(0x1e9)](_0x3a3e7b,_0x45052b){const _0x440c43=a87_0x4ed26d,_0x28eacb={'FDAUG':function(_0x401af7,_0x318f8d){return _0x401af7(_0x318f8d);}};if(this[_0x440c43(0x1f2)][_0x3a3e7b]){for(const _0x2297ce of this['observers'][_0x3a3e7b]){await _0x28eacb['FDAUG'](_0x2297ce,_0x45052b);}return;}}}function a87_0x52dc(){const _0x56ee16=['2KZQzeb','notifyObserver','591436RIVZmA','1364662dWxzGL','49HDQIGy','getInstance','freeze','750763HRFSgs','registerObserver','892110BZnuNl','observers','10UzWGdp','1116567dCEXYl','1054896nCCAro','5216662cMREvm','35TxaoXb','40BXgggy','24JpmqLB','exports'];a87_0x52dc=function(){return _0x56ee16;};return a87_0x52dc();}const eventDispatcher=EventDispatcher[a87_0x4ed26d(0x1ed)]();Object[a87_0x4ed26d(0x1ee)](eventDispatcher),module[a87_0x4ed26d(0x1e7)]=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a88_0x5998(_0x3734ff,_0x197a9f){const _0x5e246a=a88_0x5e24();return a88_0x5998=function(_0x59988b,_0x9502ab){_0x59988b=_0x59988b-0x10e;let _0x27d8bf=_0x5e246a[_0x59988b];return _0x27d8bf;},a88_0x5998(_0x3734ff,_0x197a9f);}function a88_0x5e24(){const _0xda75a7=['../cliUtils.js','instances','2140407gPIfKD','util','trackEvent:\x20automationFrameworkState=','runHooks','automationFrameworkName','automationFrameworkVersion','12448645ilwWuu','debug','set','6jOxXol','setTrackedInstance','KEY_AUTOMATION_SESSIONS','get','816078wmsNIX','2GJTXrW','24IxFoaK','setState','getAutomationFrameworkName','getAllData','../instances/trackedInstance.js','../../../helpers/classLogger.js','6228aBYzgB','3678832EdZgmd','registerObserver','AutomationFramework','getState','1002470EhtVEq','\x20hookState=','getId','getHookRegistryKey','non_browserstack_automation_sessions','notifyObserver','4bOsVjk','5230hCCHfA','5335708iWOQGY','automation_sessions','../eventDispatcher.js'];a88_0x5e24=function(){return _0xda75a7;};return a88_0x5e24();}const a88_0x195131=a88_0x5998;(function(_0x509029,_0x2d5dbb){const _0x30e1b2=a88_0x5998,_0x4f83e7=_0x509029();while(!![]){try{const _0x2aafd3=parseInt(_0x30e1b2(0x11b))/0x1*(parseInt(_0x30e1b2(0x11a))/0x2)+-parseInt(_0x30e1b2(0x134))/0x3*(-parseInt(_0x30e1b2(0x12d))/0x4)+-parseInt(_0x30e1b2(0x127))/0x5*(parseInt(_0x30e1b2(0x116))/0x6)+parseInt(_0x30e1b2(0x12f))/0x7+parseInt(_0x30e1b2(0x123))/0x8+parseInt(_0x30e1b2(0x122))/0x9*(parseInt(_0x30e1b2(0x12e))/0xa)+-parseInt(_0x30e1b2(0x113))/0xb*(parseInt(_0x30e1b2(0x11c))/0xc);if(_0x2aafd3===_0x2d5dbb)break;else _0x4f83e7['push'](_0x4f83e7['shift']());}catch(_0x4b7f25){_0x4f83e7['push'](_0x4f83e7['shift']());}}}(a88_0x5e24,0x9e9cd));const {createClassLogger}=require(a88_0x195131(0x121)),util=require(a88_0x195131(0x10e)),eventDispatcher=require(a88_0x195131(0x131)),CLIUtils=require(a88_0x195131(0x132)),TrackedInstance=require(a88_0x195131(0x120)),logger=createClassLogger(a88_0x195131(0x125));class AutomationFramework{static [a88_0x195131(0x133)]=new Map();static [a88_0x195131(0x118)]=a88_0x195131(0x130);static ['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS']=a88_0x195131(0x12b);constructor(_0x281847,_0x3e352d){const _0xbafa7=a88_0x195131;this[_0xbafa7(0x111)]=_0x281847,this[_0xbafa7(0x112)]=_0x3e352d;}[a88_0x195131(0x11e)](){const _0x30137b=a88_0x195131;return this[_0x30137b(0x111)];}['getAutomationFrameworkVersion'](){return this['automationFrameworkVersion'];}async['trackEvent'](_0x2eb44f,_0x3fb66d,_0x861f98={}){const _0x581545=a88_0x195131;logger[_0x581545(0x114)](_0x581545(0x10f)+_0x2eb44f+_0x581545(0x128)+_0x3fb66d);}async[a88_0x195131(0x110)](_0x4846d2,_0xd9e573,_0x4f6959,_0x2077b5={}){const _0x575e19=a88_0x195131,_0x143394=CLIUtils['getHookRegistryKey'](_0xd9e573,_0x4f6959);_0x4846d2&&_0x4846d2[_0x575e19(0x11d)](_0xd9e573),await eventDispatcher[_0x575e19(0x12c)](_0x143394,_0x2077b5);}static[a88_0x195131(0x124)](_0x5bf61f,_0x2f1e12,_0x313520){const _0x502460=a88_0x195131;eventDispatcher[_0x502460(0x124)](CLIUtils[_0x502460(0x12a)](_0x5bf61f,_0x2f1e12),_0x313520);}static[a88_0x195131(0x117)](_0x3182b7,_0x248c42){const _0x9b608f=a88_0x195131;AutomationFramework[_0x9b608f(0x133)][_0x9b608f(0x115)](_0x3182b7[_0x9b608f(0x129)](),_0x248c42);}static['getTrackedInstance'](){const _0x49b2eb=a88_0x195131,_0x2b159f=TrackedInstance['createContext'](CLIUtils['getCurrentInstanceName']());return AutomationFramework['instances']['get'](_0x2b159f[_0x49b2eb(0x129)]());}static[a88_0x195131(0x11d)](_0x48f7e3,_0x34f02e,_0xe88eef){const _0x1ef5af=a88_0x195131;_0x48f7e3['getAllData']()[_0x1ef5af(0x115)](_0x34f02e,_0xe88eef);}static[a88_0x195131(0x126)](_0x396889,_0x4be47f){const _0x1c0d04=a88_0x195131;return _0x396889[_0x1c0d04(0x11f)]()[_0x1c0d04(0x119)](_0x4be47f);}}module['exports']=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a89_0x5f2a(_0x29cec2,_0x4176e1){const _0x5805d8=a89_0x5805();return a89_0x5f2a=function(_0x5f2a4d,_0x61b3ec){_0x5f2a4d=_0x5f2a4d-0x1a5;let _0x1e9353=_0x5805d8[_0x5f2a4d];return _0x1e9353;},a89_0x5f2a(_0x29cec2,_0x4176e1);}const a89_0x51249a=a89_0x5f2a;(function(_0xb97309,_0x5c913a){const _0x2b4cb5=a89_0x5f2a,_0x12fc57=_0xb97309();while(!![]){try{const _0x304b84=parseInt(_0x2b4cb5(0x1c0))/0x1+parseInt(_0x2b4cb5(0x1ac))/0x2*(-parseInt(_0x2b4cb5(0x1bf))/0x3)+parseInt(_0x2b4cb5(0x1c4))/0x4+parseInt(_0x2b4cb5(0x1b3))/0x5+parseInt(_0x2b4cb5(0x1ad))/0x6+parseInt(_0x2b4cb5(0x1b9))/0x7+parseInt(_0x2b4cb5(0x1a5))/0x8*(parseInt(_0x2b4cb5(0x1ae))/0x9);if(_0x304b84===_0x5c913a)break;else _0x12fc57['push'](_0x12fc57['shift']());}catch(_0x59efcb){_0x12fc57['push'](_0x12fc57['shift']());}}}(a89_0x5805,0x693ac));function a89_0x5805(){const _0x490d49=['BROWSERSTACK_PLATFORM_INDEX','COMMAND_QUIT','ended_at','newsession','4903367KpLiyb','w3cexecutescriptasync','KEY_PLATFORM_INDEX','COMMAND_SCREENSHOT','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','ENV_BROWSERSTACK_PLATFORM_INDEX','51762qHMdeV','33798TqUFck','KEY_INPUT_CAPABILITIES','capabilities','KEY_IS_BROWSERSTACK_HUB','1022412NqzNoJ','started_at','platform_index','8YsoKlf','exports','input_capabilities','KEY_HUB_URL','get','screenshot','w3cexecutescript','98wwJIXI','304338CSXtvE','680202QGKpxO','KEY_CAPABILITIES','quit','KEY_STARTED_AT','KEY_FRAMEWORK_SESSION_ID','801415UtVBpl','COMMAND_GET'];a89_0x5805=function(){return _0x490d49;};return a89_0x5805();}const a89_0x24ac8e={};a89_0x24ac8e[a89_0x51249a(0x1be)]=a89_0x51249a(0x1b5),a89_0x24ac8e[a89_0x51249a(0x1a8)]='hub_url',a89_0x24ac8e[a89_0x51249a(0x1b2)]='framework_session_id',a89_0x24ac8e[a89_0x51249a(0x1c1)]=a89_0x51249a(0x1a7),a89_0x24ac8e[a89_0x51249a(0x1af)]=a89_0x51249a(0x1c2),a89_0x24ac8e[a89_0x51249a(0x1c3)]='is_browserstack_hub',a89_0x24ac8e[a89_0x51249a(0x1b1)]=a89_0x51249a(0x1c5),a89_0x24ac8e['KEY_ENDED_AT']=a89_0x51249a(0x1b7),a89_0x24ac8e[a89_0x51249a(0x1bb)]=a89_0x51249a(0x1c6),a89_0x24ac8e['COMMAND_NEW_SESSION']=a89_0x51249a(0x1b8),a89_0x24ac8e[a89_0x51249a(0x1b4)]=a89_0x51249a(0x1a9),a89_0x24ac8e[a89_0x51249a(0x1bc)]=a89_0x51249a(0x1aa),a89_0x24ac8e['COMMAND_W3C_EXECUTE_SCRIPT']=a89_0x51249a(0x1ab),a89_0x24ac8e[a89_0x51249a(0x1bd)]=a89_0x51249a(0x1ba),a89_0x24ac8e[a89_0x51249a(0x1b6)]=a89_0x51249a(0x1b0);const AutomationFrameworkConstants=a89_0x24ac8e;module[a89_0x51249a(0x1a6)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a90_0x2444(){const _0x20ee1b=['KEY_CUSTOM_TAGS','KEY_HOOKS_STARTED','189xIHtsZ','retry_of','KEY_TEST_SCOPES','3iMGhcf','test_ended_at','KEY_TEST_FAILURE','test_name','495VFthcC','KEY_FILE_PATH','test_hook_last_started','KIND_SCREENSHOT','KEY_TEST_RESULT','705lCXZuu','test_hooks_finished','test_result_at','KEY_HOOK_FAILURE','automate_session_name','848244sbJOVQ','file_name','KEY_TEST_FILE_PATH','KEY_TEST_TAGS','296UDVZIQ','260183EfObia','KEY_SESSION_NAME','KEY_EVENT_STARTED_AT','KEY_TEST_STARTED_AT','KEY_TEST_SCREENSHOTS','hook_result','KEY_FILE_LEVEL','test_duration','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_NAME','KEY_TEST_CODE','KEY_HOOK_FAILURE_REASON','KEY_TEST_RETRY_OF','test_started_at','test_hook_last_finished','event_started_at','logs','6645240pnMOtu','event_ended_at','test_framework_version','MAX_TOP_LEVEL_STEPS','exports','custom_metadata','KEY_HOOK_RESULT','KEY_TEST_META','test_failure_reason','KEY_HOOK_LAST_STARTED','test_meta','KEY_TEST_LOCATION','96160rcbTkO','hook_logs','KEY_TEST_ATTACHMENTS','test_attachments','hook_failure_reason','test_result','KEY_TEST_DURATION','test_id','1274276Lclihu','KEY_LOGS','KIND_LOG','KEY_TEST_LOGS','MAX_NESTED_STEP_DEPTH','file_path','hook_failure_type','26148BYPLJO','pending','KEY_TEST_RESULT_AT','KEY_HOOKS_FINISHED','test_failure_type','test_screenshots','automate_session_status','DEFAULT_TEST_RESULT','KEY_TEST_ID','hook_name','file_size','test_scopes','test_file_path','test_framework_name','test_failure','KEY_FILE_NAME','test_hooks_started','test_scope','TEST_SCREENSHOT','372132qeXYbI','KEY_TEST_ENDED_AT','TEST_LOG','test_rerun_name','KEY_TEST_FRAMEWORK_VERSION','automate_session_reason','HOOK_REGEX','hook_failure','KEY_TEST_FRAMEWORK_NAME'];a90_0x2444=function(){return _0x20ee1b;};return a90_0x2444();}const a90_0x1f53f2=a90_0x3be3;(function(_0x528f92,_0x58888e){const _0x1576e6=a90_0x3be3,_0x377a23=_0x528f92();while(!![]){try{const _0x2049b4=-parseInt(_0x1576e6(0x147))/0x1+-parseInt(_0x1576e6(0x18d))/0x2*(parseInt(_0x1576e6(0x155))/0x3)+parseInt(_0x1576e6(0x194))/0x4*(-parseInt(_0x1576e6(0x15e))/0x5)+parseInt(_0x1576e6(0x179))/0x6+parseInt(_0x1576e6(0x168))/0x7*(-parseInt(_0x1576e6(0x167))/0x8)+-parseInt(_0x1576e6(0x152))/0x9*(parseInt(_0x1576e6(0x185))/0xa)+parseInt(_0x1576e6(0x159))/0xb*(parseInt(_0x1576e6(0x163))/0xc);if(_0x2049b4===_0x58888e)break;else _0x377a23['push'](_0x377a23['shift']());}catch(_0x47b007){_0x377a23['push'](_0x377a23['shift']());}}}(a90_0x2444,0xbe7f7));function a90_0x3be3(_0x383b24,_0x4a51f2){const _0x24443b=a90_0x2444();return a90_0x3be3=function(_0x3be3f3,_0x2687ab){_0x3be3f3=_0x3be3f3-0x146;let _0x6211b7=_0x24443b[_0x3be3f3];return _0x6211b7;},a90_0x3be3(_0x383b24,_0x4a51f2);}const a90_0x3b8e5c={};a90_0x3b8e5c['KEY_TEST_UUID']='test_uuid',a90_0x3b8e5c[a90_0x1f53f2(0x19c)]=a90_0x1f53f2(0x18c),a90_0x3b8e5c[a90_0x1f53f2(0x171)]=a90_0x1f53f2(0x158),a90_0x3b8e5c[a90_0x1f53f2(0x165)]=a90_0x1f53f2(0x1a0),a90_0x3b8e5c[a90_0x1f53f2(0x166)]='test_tags',a90_0x3b8e5c[a90_0x1f53f2(0x15d)]=a90_0x1f53f2(0x18a),a90_0x3b8e5c[a90_0x1f53f2(0x196)]=a90_0x1f53f2(0x160),a90_0x3b8e5c[a90_0x1f53f2(0x16b)]=a90_0x1f53f2(0x175),a90_0x3b8e5c[a90_0x1f53f2(0x148)]=a90_0x1f53f2(0x156),a90_0x3b8e5c[a90_0x1f53f2(0x184)]='test_location',a90_0x3b8e5c[a90_0x1f53f2(0x18b)]=a90_0x1f53f2(0x16f),a90_0x3b8e5c['KEY_TEST_SCOPE']=a90_0x1f53f2(0x1a5),a90_0x3b8e5c[a90_0x1f53f2(0x154)]=a90_0x1f53f2(0x19f),a90_0x3b8e5c[a90_0x1f53f2(0x14f)]=a90_0x1f53f2(0x1a1),a90_0x3b8e5c[a90_0x1f53f2(0x14b)]=a90_0x1f53f2(0x17b),a90_0x3b8e5c[a90_0x1f53f2(0x172)]='test_code',a90_0x3b8e5c['KEY_TEST_RERUN_NAME']=a90_0x1f53f2(0x14a),a90_0x3b8e5c[a90_0x1f53f2(0x174)]=a90_0x1f53f2(0x153),a90_0x3b8e5c['KEY_PLATFORM_INDEX']='platform_index',a90_0x3b8e5c[a90_0x1f53f2(0x157)]=a90_0x1f53f2(0x1a2),a90_0x3b8e5c['KEY_TEST_FAILURE_TYPE']=a90_0x1f53f2(0x198),a90_0x3b8e5c['KEY_TEST_FAILURE_REASON']=a90_0x1f53f2(0x181),a90_0x3b8e5c[a90_0x1f53f2(0x190)]='test_logs',a90_0x3b8e5c[a90_0x1f53f2(0x180)]=a90_0x1f53f2(0x183),a90_0x3b8e5c[a90_0x1f53f2(0x169)]='test_session_name',a90_0x3b8e5c[a90_0x1f53f2(0x170)]=a90_0x1f53f2(0x162),a90_0x3b8e5c['KEY_AUTOMATE_SESSION_STATUS']=a90_0x1f53f2(0x19a),a90_0x3b8e5c['KEY_AUTOMATE_SESSION_REASON']=a90_0x1f53f2(0x14c),a90_0x3b8e5c[a90_0x1f53f2(0x16a)]=a90_0x1f53f2(0x177),a90_0x3b8e5c['KEY_EVENT_ENDED_AT']=a90_0x1f53f2(0x17a),a90_0x3b8e5c['KEY_HOOK_ID']='hook_id',a90_0x3b8e5c[a90_0x1f53f2(0x17f)]=a90_0x1f53f2(0x16d),a90_0x3b8e5c['KEY_HOOK_FAILURE_TYPE']=a90_0x1f53f2(0x193),a90_0x3b8e5c[a90_0x1f53f2(0x173)]=a90_0x1f53f2(0x189),a90_0x3b8e5c[a90_0x1f53f2(0x161)]=a90_0x1f53f2(0x14e),a90_0x3b8e5c['KEY_HOOK_LOGS']=a90_0x1f53f2(0x186),a90_0x3b8e5c['KEY_HOOK_NAME']=a90_0x1f53f2(0x19d),a90_0x3b8e5c[a90_0x1f53f2(0x19b)]=a90_0x1f53f2(0x195),a90_0x3b8e5c['DEFAULT_HOOK_RESULT']=a90_0x1f53f2(0x195),a90_0x3b8e5c[a90_0x1f53f2(0x15c)]=a90_0x1f53f2(0x146),a90_0x3b8e5c[a90_0x1f53f2(0x18f)]=a90_0x1f53f2(0x149),a90_0x3b8e5c[a90_0x1f53f2(0x14d)]='^(BEFORE_|AFTER_)',a90_0x3b8e5c[a90_0x1f53f2(0x151)]=a90_0x1f53f2(0x1a4),a90_0x3b8e5c[a90_0x1f53f2(0x197)]=a90_0x1f53f2(0x15f),a90_0x3b8e5c[a90_0x1f53f2(0x182)]=a90_0x1f53f2(0x15b),a90_0x3b8e5c['KEY_HOOK_LAST_FINISHED']=a90_0x1f53f2(0x176),a90_0x3b8e5c[a90_0x1f53f2(0x18e)]=a90_0x1f53f2(0x178),a90_0x3b8e5c[a90_0x1f53f2(0x150)]=a90_0x1f53f2(0x17e),a90_0x3b8e5c[a90_0x1f53f2(0x187)]=a90_0x1f53f2(0x188),a90_0x3b8e5c['KEY_FILE_SIZE']=a90_0x1f53f2(0x19e),a90_0x3b8e5c[a90_0x1f53f2(0x1a3)]=a90_0x1f53f2(0x164),a90_0x3b8e5c[a90_0x1f53f2(0x15a)]=a90_0x1f53f2(0x192),a90_0x3b8e5c[a90_0x1f53f2(0x16e)]='file_level',a90_0x3b8e5c[a90_0x1f53f2(0x16c)]=a90_0x1f53f2(0x199),a90_0x3b8e5c[a90_0x1f53f2(0x17c)]=0xa,a90_0x3b8e5c[a90_0x1f53f2(0x191)]=0x2;const TestFrameworkConstants=a90_0x3b8e5c;module[a90_0x1f53f2(0x17d)]=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a91_0x22251b=a91_0x51e7;(function(_0x1ff78d,_0x58c9d5){const _0xe111d1=a91_0x51e7,_0x32d15e=_0x1ff78d();while(!![]){try{const _0x286880=parseInt(_0xe111d1(0x193))/0x1+-parseInt(_0xe111d1(0xf9))/0x2+parseInt(_0xe111d1(0x177))/0x3*(parseInt(_0xe111d1(0x1a3))/0x4)+parseInt(_0xe111d1(0x137))/0x5+-parseInt(_0xe111d1(0x1ac))/0x6*(parseInt(_0xe111d1(0x19a))/0x7)+-parseInt(_0xe111d1(0x15f))/0x8*(-parseInt(_0xe111d1(0x146))/0x9)+parseInt(_0xe111d1(0xf6))/0xa;if(_0x286880===_0x58c9d5)break;else _0x32d15e['push'](_0x32d15e['shift']());}catch(_0x1fc9bc){_0x32d15e['push'](_0x32d15e['shift']());}}}(a91_0x4c34,0x4039c));function a91_0x51e7(_0x2c2f43,_0x5564c7){const _0x4c349b=a91_0x4c34();return a91_0x51e7=function(_0x51e754,_0x50181d){_0x51e754=_0x51e754-0xdd;let _0x83ed65=_0x4c349b[_0x51e754];return _0x83ed65;},a91_0x51e7(_0x2c2f43,_0x5564c7);}const TestFramework=require(a91_0x22251b(0x12e)),TestFrameworkState=require(a91_0x22251b(0xfb)),HookState=require(a91_0x22251b(0xed)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a91_0x22251b(0x109)),CLIUtils=require(a91_0x22251b(0xfd)),TrackedInstance=require(a91_0x22251b(0xdf)),TestFrameworkConstants=require(a91_0x22251b(0x104)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x22251b(0x170)),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require(a91_0x22251b(0x17d)),util=require(a91_0x22251b(0xe5)),TestInfo=require(a91_0x22251b(0x195)),GrpcClient=require(a91_0x22251b(0x13c));function a91_0x4c34(){const _0x3b526b=['base64','81xLBbsT','getId','KEY_TEST_TAGS','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','KEY_CUSTOM_TAGS',',\x20state:\x20','uuid','getTestUUID','toIyV','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','KEY_TEST_FILE_PATH','CCBRg','scopes','vrBkc','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','trackEvent:\x20unsupported\x20testFrameworkState=','instance','KEY_TEST_META','testData','failure_data','storePendingHook','Processing\x20','\x20response=','test_run_id','KEY_EVENT_ENDED_AT','sendLogCreatedEvent:\x20for\x20testId:\x20','tags','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','97983kWgwUj','NONE','../TestInfo.js','KEY_TEST_RERUN_NAME','get','split','KEY_TEST_FRAMEWORK_NAME','11221MEhdrO','KEY_HOOKS_FINISHED',',\x20storing\x20as\x20pending\x20hook','nxHOt','\x20with\x20UUID:\x20','INIT_TEST','RFiaH','KEY_HOOK_FAILURE','\x20hookState:\x20','67764vjsHPa','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','hookState','KEY_HOOK_LOGS','KEY_TEST_UUID','executionContext','KEY_HOOKS_STARTED','setTrackedInstance','Cucumber\x20log\x20created\x20event','1140rvutov','parseCucumberTestResult','DmHex','unknown','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','meta','result','failed','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_SCOPES','KEY_HOOK_LAST_STARTED','getCurrentTestState','TEST','browserstackPlatformIndex','../instances/trackedInstance.js','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','hooks','testFrameworkName','KEY_HOOK_RESULT','KEY_TEST_LOCATION','util','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','NsRqN','inspect','getCurrentHookState','processPendingHooks','\x20payload=','rLEaW','../state/hookState.js','ICOhe','testFrameworkVersion','failure_reason','vukHS','KEY_TEST_ATTACHMENTS','Parsed\x20cucumber\x20test:\x20','QbBSE','createContext','646980srnRRX','getRef','getContext','753886JRAYdB','getAllData','../state/testFrameworkState.js','toISOString','../cliUtils.js','WbTzE','KmnXa','trackEvent\x20loading\x20testData\x20for\x20testId:\x20',',\x20error:\x20','failure','KEY_TEST_ENDED_AT','./constants/testFrameworkConstants.js','getCurrentInstanceName','VxcST','KEY_TEST_LOGS','readLogObjects','../instances/testFrameworkInstance.js','WKEdk','eventJson','KEY_LOGS','setTestDetails','\x20&\x20hook\x20=\x20','RbZim','kiHTy','format','KEY_EVENT_STARTED_AT','POST','KEY_HOOK_NAME','length','startedAt','hasPendingHooks','\x20&\x20hookState=','sendLogCreatedEvent','getTrackedInstance','NLQAc','fMyjQ','getInstance','file_name','getTestFrameworks',',\x20hookState:\x20','\x20\x20and\x20args\x20=\x20','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','getThreadId','getProcessId','getPendingHooks','failure_type','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','ljOQr','trackEvent','testUUID','seUhl','parseCucumberTest','error','./testFramework','Stored\x20pending\x20hook\x20for\x20testId:\x20','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','mtYpM','push','ceil','DEFAULT_TEST_RESULT','TZYek','eOkaU','1442165tLgqVe','MtbbW','pop','KEY_TEST_FAILURE_REASON','qHOSC','../grpcClient','rerun_name','finished_at',',\x20state=','trackHookEvent','\x20with\x20result:\x20','stringify','addMultipleEntries','WjUfR','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','27045LgXswh','KEY_HOOK_LAST_FINISHED','PRE','\x20testState:\x20','exports','UnhandledError','uSceR','removePendingHooks','KEY_TEST_STARTED_AT','addPendingHook','toString','from','KEY_TEST_FRAMEWORK_VERSION','matchHookRegex','\x20pending\x20hooks\x20for\x20testId:\x20','resolveInstance','platformIndex','\x20for\x20test:\x20','getTestDetails','KEY_TEST_SCOPE','hook_type','KEY_HOOK_ID','XAbOs','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','logCreatedEvent','96wygYRW','KEY_TEST_CODE','endedAt','debug','Pkhzt','code','KEY_TEST_NAME','createTestFrameworkEventPayload\x20testId:\x20','DEFAULT_HOOK_RESULT','\x20batch\x20','Error\x20in\x20createTestFrameworkEventPayload:\x20','runHooks','KEY_TEST_ID','LOG_REPORT','testFrameworkState','getTestFrameworksVersions','wRcnh','../../../helpers/helper.js','name','trackCucumberInstance','test','KEY_HOOK_FAILURE_TYPE','\x20with\x20id\x20'];a91_0x4c34=function(){return _0x3b526b;};return a91_0x4c34();}class CucumberTestFramework extends TestFramework{constructor(_0x43d01b,_0x115239,_0x279953){super(_0x43d01b,_0x115239,_0x279953);}async['trackEvent'](_0x26d5a4,_0x5386b1,_0x4b69d8={}){const _0x5c3967=a91_0x22251b,_0x41b182={};_0x41b182['QbBSE']=_0x5c3967(0x130),_0x41b182['WjUfR']=function(_0x371e80,_0x41dcd7){return _0x371e80===_0x41dcd7;},_0x41b182[_0x5c3967(0x10a)]=_0x5c3967(0x192);const _0x24ad9d=_0x41b182;await super[_0x5c3967(0x129)](_0x26d5a4,_0x5386b1,_0x4b69d8);const _0x119bda=this['resolveInstance'](_0x26d5a4,_0x5386b1,_0x4b69d8);if(!_0x119bda){logger[_0x5c3967(0x162)](_0x24ad9d[_0x5c3967(0xf4)]);return;}try{let _0x56842a,_0x2a2e03;switch(_0x26d5a4){case TestFrameworkState[_0x5c3967(0xdd)]:_0x56842a=_0x4b69d8[_0x5c3967(0x173)],_0x2a2e03=TestInfo[_0x5c3967(0x17e)](_0x56842a['id']);if(_0x24ad9d[_0x5c3967(0x144)](_0x5386b1,HookState[_0x5c3967(0x148)])){logger[_0x5c3967(0x162)](_0x5c3967(0x100)+_0x56842a['id']);const _0x7b9c79={};_0x7b9c79['testUUID']=_0x2a2e03,_0x7b9c79[_0x5c3967(0x189)]=_0x56842a,_0x119bda[_0x5c3967(0x143)](this['parseCucumberTest'](_0x7b9c79)),logger[_0x5c3967(0x162)](_0x5c3967(0xe6)+_0x56842a['id']),await this[_0x5c3967(0xea)](_0x119bda,_0x56842a['id']);}else{if(_0x24ad9d[_0x5c3967(0x144)](_0x5386b1,HookState[_0x5c3967(0x113)])){const _0x40411e={};_0x40411e['testUUID']=_0x2a2e03,_0x40411e[_0x5c3967(0x189)]=_0x56842a,_0x119bda[_0x5c3967(0x143)](this[_0x5c3967(0x1ad)](_0x40411e)),await this[_0x5c3967(0xea)](_0x119bda,_0x56842a['id']);}}break;case TestFrameworkState[_0x5c3967(0x16c)]:_0x24ad9d[_0x5c3967(0x144)](_0x5386b1,HookState[_0x5c3967(0x113)])&&await this['sendLogCreatedEvent'](_0x119bda,_0x26d5a4,_0x4b69d8);break;default:if(CLIUtils[_0x5c3967(0x153)](_0x26d5a4[_0x5c3967(0x150)]()[_0x5c3967(0x198)]('.')[0x1])){const _0x33171c=await this[_0x5c3967(0x140)](_0x119bda,_0x26d5a4,_0x5386b1,_0x4b69d8);_0x119bda[_0x5c3967(0x143)](_0x33171c);}else logger[_0x5c3967(0x162)](_0x5c3967(0x186)+_0x26d5a4+_0x5c3967(0x118)+_0x5386b1);break;}}catch(_0x407b19){logger[_0x5c3967(0x12d)](util[_0x5c3967(0x111)](_0x24ad9d[_0x5c3967(0x10a)],_0x26d5a4,_0x5386b1,_0x4b69d8[_0x5c3967(0x115)],_0x407b19));}_0x4b69d8[_0x5c3967(0x187)]=_0x119bda,await this[_0x5c3967(0x16a)](_0x119bda,_0x26d5a4,_0x5386b1,_0x4b69d8);}[a91_0x22251b(0x155)](_0x58b5ad,_0x5d675f,_0x2b4e64={}){const _0x7fac3b=a91_0x22251b,_0x516bba={};_0x516bba[_0x7fac3b(0x16f)]=function(_0x4b1610,_0x3788c0){return _0x4b1610===_0x3788c0;};const _0x4dacbb=_0x516bba;let _0x1d7dc6=null;return(_0x4dacbb[_0x7fac3b(0x16f)](_0x58b5ad,TestFrameworkState[_0x7fac3b(0x19f)])||_0x4dacbb[_0x7fac3b(0x16f)](_0x58b5ad,TestFrameworkState[_0x7fac3b(0x194)]))&&this[_0x7fac3b(0x172)](_0x58b5ad,_0x2b4e64),_0x1d7dc6=TestFramework[_0x7fac3b(0x11a)](),_0x1d7dc6;}[a91_0x22251b(0x172)](_0x51d3a5,_0x5e8119){const _0x148e68=a91_0x22251b,_0x4afe1b=CLIUtils[_0x148e68(0x105)](),_0x527284=TrackedInstance[_0x148e68(0xf5)](_0x4afe1b);let _0x511d00=null;logger[_0x148e68(0x162)](_0x148e68(0x1a4)+_0x4afe1b+_0x148e68(0x13f)+_0x51d3a5),_0x511d00=new TestFrameworkInstance(_0x527284,this[_0x148e68(0x11f)](),this[_0x148e68(0x16e)](),_0x51d3a5,HookState[_0x148e68(0x194)]),TestFramework[_0x148e68(0x1aa)](_0x527284,_0x511d00),logger['debug']('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x527284[_0x148e68(0x178)]()+'\x20target='+_0x4afe1b);}[a91_0x22251b(0x12c)](_0x468be0){const _0xe12bed=a91_0x22251b,_0x37e48c={};_0x37e48c['seUhl']=_0xe12bed(0x15d);const _0x1073e4=_0x37e48c,{testUUID:_0x553688,testData:_0x462163}=_0x468be0;if(!_0x462163||!_0x462163[_0xe12bed(0x17d)])return logger[_0xe12bed(0x162)](_0x1073e4[_0xe12bed(0x12b)]),{};const _0x3e7b81=_0x553688,_0x2d0fdf=_0x462163[_0xe12bed(0x17d)],_0x5ca463=this[_0xe12bed(0x11f)]()[0x0],_0x17f796=this['getTestFrameworksVersions'](),_0x148f3b={[TestFrameworkConstants[_0xe12bed(0x199)]]:_0x5ca463,[TestFrameworkConstants[_0xe12bed(0x152)]]:_0x17f796[_0x5ca463],[TestFrameworkConstants[_0xe12bed(0x107)]]:[],[TestFrameworkConstants[_0xe12bed(0x19b)]]:{},[TestFrameworkConstants[_0xe12bed(0x1a9)]]:{},[TestFrameworkConstants[_0xe12bed(0x1a7)]]:_0x3e7b81,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0xe12bed(0x134)],[TestFrameworkConstants[_0xe12bed(0x1b4)]]:_0x462163['name']||'',[TestFrameworkConstants[_0xe12bed(0x181)]]:_0x462163[_0xe12bed(0x11e)]||'',[TestFrameworkConstants[_0xe12bed(0x16b)]]:_0x2d0fdf,[TestFrameworkConstants[_0xe12bed(0x165)]]:_0x462163[_0xe12bed(0x171)]||'',[TestFrameworkConstants[_0xe12bed(0xe4)]]:_0x462163['location']||'',[TestFrameworkConstants[_0xe12bed(0x160)]]:_0x462163['body']?.[_0xe12bed(0x164)]||null,[TestFrameworkConstants[_0xe12bed(0x179)]]:_0x462163[_0xe12bed(0x191)]||[],[TestFrameworkConstants[_0xe12bed(0x14e)]]:_0x462163[_0xe12bed(0x116)]||new Date()['toISOString'](),[TestFrameworkConstants[_0xe12bed(0x159)]]:_0x462163[_0xe12bed(0x183)]?.[0x0]||'',[TestFrameworkConstants[_0xe12bed(0x1b5)]]:_0x462163[_0xe12bed(0x183)]||[],[TestFrameworkConstants[_0xe12bed(0x196)]]:_0x462163['customRerunParam']?.[_0xe12bed(0x13d)]||_0x462163[_0xe12bed(0x171)]||'',[TestFrameworkConstants[_0xe12bed(0x17b)]]:{},[TestFrameworkConstants[_0xe12bed(0x188)]]:_0x462163[_0xe12bed(0x1b1)]||{}};TestInfo['setTestDetails'](_0x2d0fdf,_0x148f3b),logger[_0xe12bed(0x162)](_0xe12bed(0xf3)+_0x462163[_0xe12bed(0x171)]+_0xe12bed(0x19e)+_0x3e7b81);const _0x3b7f32={};return _0x3b7f32[_0x2d0fdf]=_0x148f3b,_0x3b7f32;}['parseCucumberTestResult'](_0x5037f5){const _0x4f2ee4=a91_0x22251b,_0x5f187c={'Pkhzt':'No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','rLEaW':_0x4f2ee4(0x1af),'KmnXa':function(_0x22e967,_0x88e4a0){return _0x22e967===_0x88e4a0;},'qHOSC':_0x4f2ee4(0x1b3),'RbZim':'UnhandledError','TZYek':function(_0x101924,_0x3dfe14,_0x1c8e99){return _0x101924(_0x3dfe14,_0x1c8e99);},'ljOQr':function(_0x57194d,_0x3ee978){return _0x57194d>_0x3ee978;},'NsRqN':function(_0x44400f,_0x1cc179){return _0x44400f>_0x1cc179;}},{testUUID:_0x3f7ff8,testData:_0x2ba089}=_0x5037f5;if(!_0x2ba089||!_0x2ba089[_0x4f2ee4(0x17d)])return logger[_0x4f2ee4(0x162)](_0x5f187c[_0x4f2ee4(0x163)]),{};const _0x169e1f=this[_0x4f2ee4(0x155)](TestFrameworkState[_0x4f2ee4(0xdd)],HookState[_0x4f2ee4(0x113)]),_0x2b2110=_0x2ba089[_0x4f2ee4(0x17d)],_0x36533e=TestInfo[_0x4f2ee4(0x158)](_0x2b2110)||{},_0x1d7ae8=_0x36533e?_0x36533e[TestFrameworkConstants[_0x4f2ee4(0x17b)]]||{}:{},_0x100c62={..._0x36533e,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x2ba089[_0x4f2ee4(0x1b2)]||_0x5f187c[_0x4f2ee4(0xec)],[TestFrameworkConstants[_0x4f2ee4(0x103)]]:_0x2ba089['finishedAt']||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()['toISOString'](),[TestFrameworkConstants[_0x4f2ee4(0x17b)]]:_0x1d7ae8,[TestFrameworkConstants[_0x4f2ee4(0x10c)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x2ba089[_0x4f2ee4(0x1b1)]||{}};_0x5f187c[_0x4f2ee4(0xff)](_0x2ba089[_0x4f2ee4(0x1b2)],_0x5f187c[_0x4f2ee4(0x13b)])&&_0x2ba089[_0x4f2ee4(0x102)]&&(_0x100c62[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x2ba089[_0x4f2ee4(0x126)]||_0x5f187c[_0x4f2ee4(0x10f)],_0x100c62[TestFrameworkConstants[_0x4f2ee4(0x13a)]]=_0x2ba089[_0x4f2ee4(0xf0)]||'',_0x100c62[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x2ba089[_0x4f2ee4(0x102)]);const _0x1c42cd=TestInfo[_0x4f2ee4(0x158)](_0x2b2110)[TestFrameworkConstants[_0x4f2ee4(0xf2)]]||{},_0x39716c=_0x5f187c[_0x4f2ee4(0x135)](getManualUploadLogs,_0x1c42cd,_0x169e1f[_0x4f2ee4(0xfa)]()[_0x4f2ee4(0x197)](_0x2b2110)[TestFrameworkConstants[_0x4f2ee4(0x1a7)]]);if(_0x5f187c[_0x4f2ee4(0x128)](_0x39716c['length'],0x0)){const _0x1e8743=_0x100c62[TestFrameworkConstants['KEY_LOGS']]||[];_0x100c62[TestFrameworkConstants[_0x4f2ee4(0x10c)]]=[..._0x1e8743,..._0x39716c];}_0x2ba089[_0x4f2ee4(0xe1)]&&_0x5f187c[_0x4f2ee4(0xe7)](_0x2ba089[_0x4f2ee4(0xe1)][_0x4f2ee4(0x115)],0x0)&&(_0x100c62[TestFrameworkConstants[_0x4f2ee4(0x19b)]]=_0x2ba089[_0x4f2ee4(0xe1)]);TestInfo[_0x4f2ee4(0x10d)](_0x2b2110,_0x100c62),logger[_0x4f2ee4(0x162)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x2ba089[_0x4f2ee4(0x171)]+_0x4f2ee4(0x141)+_0x2ba089[_0x4f2ee4(0x1b2)]);const _0x407e60={};return _0x407e60[_0x2b2110]=_0x100c62,_0x407e60;}async[a91_0x22251b(0x140)](_0x12003c,_0x8e2648,_0x2709fd,_0x34e26e){const _0x450562=a91_0x22251b,_0x557752={'VxcST':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','qyhAB':function(_0x35c8c0){return _0x35c8c0();},'CCBRg':function(_0x312f20,_0x248454){return _0x312f20 in _0x248454;},'RFiaH':function(_0x531fa6,_0x383b96){return _0x531fa6 in _0x383b96;},'NLQAc':function(_0x13990e,_0x3a53b1){return _0x13990e===_0x3a53b1;},'kiHTy':function(_0x439aba,_0x2c3781){return _0x439aba===_0x2c3781;},'WbTzE':function(_0x181a01,_0x2ccd7f){return _0x181a01>_0x2ccd7f;},'XAbOs':'failed','uSceR':_0x450562(0x14b),'ahAQX':'passed','TJegT':function(_0x4eddfe,_0x50cdec){return _0x4eddfe!==_0x50cdec;}},{hookData:_0x3a19e3}=_0x34e26e;if(!_0x3a19e3)return logger[_0x450562(0x162)](_0x557752[_0x450562(0x106)]),{};const _0x18c1f3=_0x3a19e3['uuid']||_0x557752['qyhAB'](uuidv4),_0x3ced61=_0x3a19e3[_0x450562(0x18e)],_0x28c96a=_0x8e2648['toString']()[_0x450562(0x198)]('.')[0x1],_0x24ad88=TestInfo[_0x450562(0x158)](_0x3ced61)[TestFrameworkConstants[_0x450562(0x17b)]]||{},_0x5da69f=_0x12003c[_0x450562(0xfa)]()[_0x450562(0x197)](_0x3ced61);if(!_0x5da69f)return logger[_0x450562(0x162)](_0x450562(0x122)+_0x3ced61+_0x450562(0x19c)),this[_0x450562(0x18b)](_0x12003c,_0x3ced61,_0x8e2648,_0x2709fd,_0x34e26e),{};let _0x13dc8f=_0x5da69f[TestFrameworkConstants[_0x450562(0x1a9)]];!_0x13dc8f&&(_0x13dc8f={});!_0x557752[_0x450562(0x182)](_0x28c96a,_0x13dc8f)&&(_0x13dc8f[_0x28c96a]=[]);let _0x238c4c=_0x5da69f[TestFrameworkConstants[_0x450562(0x19b)]];!_0x238c4c&&(_0x238c4c={});!_0x557752[_0x450562(0x1a0)](_0x28c96a,_0x238c4c)&&(_0x238c4c[_0x28c96a]=[]);const _0x49833f={[TestFrameworkConstants[_0x450562(0x1a9)]]:_0x13dc8f,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x238c4c},_0x580a5b={};_0x580a5b[_0x3ced61]=_0x49833f;const _0x3c8741=_0x580a5b;if(_0x557752[_0x450562(0x11b)](_0x2709fd,HookState[_0x450562(0x148)])){const _0x71549e={[TestFrameworkConstants[_0x450562(0x15b)]]:_0x18c1f3,[TestFrameworkConstants[_0x450562(0xe3)]]:TestFrameworkConstants[_0x450562(0x167)],[TestFrameworkConstants[_0x450562(0x112)]]:_0x3a19e3['started_at'],[TestFrameworkConstants[_0x450562(0x1a6)]]:[],[TestFrameworkConstants[_0x450562(0x114)]]:_0x3a19e3[_0x450562(0x15a)],[TestFrameworkConstants[_0x450562(0x17b)]]:_0x24ad88};_0x71549e['key']=_0x28c96a;const _0x3cc791=_0x71549e;_0x13dc8f[_0x28c96a][_0x450562(0x132)](_0x3cc791),_0x3c8741[_0x3ced61][TestFrameworkConstants[_0x450562(0x1b6)]]=_0x28c96a,logger['debug'](_0x450562(0x185)+_0x28c96a+_0x450562(0x10e)+_0x3cc791+_0x450562(0x121)+_0x34e26e);}else{if(_0x557752[_0x450562(0x110)](_0x2709fd,HookState[_0x450562(0x113)])){const _0x5ad33d=_0x3a19e3[_0x450562(0x1b2)],_0x352f77=_0x13dc8f[_0x28c96a]||[];logger[_0x450562(0x162)](_0x450562(0x145)+_0x352f77+'\x20and\x20args\x20=\x20'+_0x34e26e);if(_0x557752[_0x450562(0xfe)](_0x352f77[_0x450562(0x115)],0x0)){const _0x324cbb=_0x352f77[_0x450562(0x139)]();_0x557752[_0x450562(0x110)](_0x3a19e3[_0x450562(0x1b2)],_0x557752[_0x450562(0x15c)])&&_0x3a19e3[_0x450562(0x18a)]?(_0x324cbb[TestFrameworkConstants[_0x450562(0x174)]]=_0x3a19e3[_0x450562(0x126)]||_0x557752[_0x450562(0x14c)],_0x324cbb[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x3a19e3['failure_reason']||'',_0x324cbb[TestFrameworkConstants[_0x450562(0x1a1)]]=_0x3a19e3[_0x450562(0x18a)]):_0x324cbb[TestFrameworkConstants[_0x450562(0xe3)]]=_0x557752['ahAQX'];_0x557752['TJegT'](_0x5ad33d,TestFrameworkConstants[_0x450562(0x167)])&&(_0x324cbb[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x5ad33d);_0x324cbb[TestFrameworkConstants[_0x450562(0x18f)]]=_0x3a19e3[_0x450562(0x13e)]||new Date()[_0x450562(0xfc)](),_0x324cbb[TestFrameworkConstants[_0x450562(0x17b)]]=_0x24ad88;const _0x27bc56=_0x324cbb[TestFrameworkConstants['KEY_HOOK_ID']];!_0x238c4c[_0x28c96a]&&(_0x238c4c[_0x28c96a]=[]),_0x238c4c[_0x28c96a][_0x450562(0x132)](_0x324cbb),_0x3c8741[_0x3ced61][TestFrameworkConstants[_0x450562(0x147)]]=_0x28c96a;}}}return logger[_0x450562(0x162)]('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x3a19e3[_0x450562(0x15a)]+_0x450562(0x175)+_0x18c1f3+_0x450562(0x157)+_0x3ced61),_0x3c8741;}['createTestFrameworkEventPayload'](_0x29a579){const _0x58302b=a91_0x22251b,_0x4a3d28={};_0x4a3d28[_0x58302b(0x136)]=_0x58302b(0x176);const _0x5e2559=_0x4a3d28;try{const _0x14de41=_0x29a579['test']?_0x29a579[_0x58302b(0x173)]['id']:_0x29a579['hookData'][_0x58302b(0x18e)],_0x31a94e=_0x29a579[_0x58302b(0x187)],_0xfd81b5=_0x31a94e[_0x58302b(0xf8)](),_0xd56fa3=_0x31a94e[_0x58302b(0xfa)]()[_0x58302b(0x197)](_0x14de41);if(!_0xd56fa3)return logger[_0x58302b(0x162)](_0x58302b(0x127)+_0x14de41),{};logger[_0x58302b(0x162)](_0x58302b(0x166)+_0x14de41);const {[TestFrameworkConstants[_0x58302b(0x199)]]:_0x34591d='',[TestFrameworkConstants[_0x58302b(0x152)]]:_0x4a4ac1='',[TestFrameworkConstants[_0x58302b(0x14e)]]:_0x491efc='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0xc7e132=''}=_0xd56fa3,_0x191c0e=_0x31a94e[_0x58302b(0x1b7)]()[_0x58302b(0x150)]()[_0x58302b(0x198)]('.')[0x1],_0x59a020=_0x31a94e[_0x58302b(0xe9)]()[_0x58302b(0x150)]()['split']('.')[0x1],_0x3a47f4=global?.['browserstackPlatformIndex']??0x0,_0x1b0ed3=_0x31a94e[_0x58302b(0xf7)](),_0xeaf87f=Buffer[_0x58302b(0x151)](JSON[_0x58302b(0x142)](_0xd56fa3))[_0x58302b(0x150)](_0x5e2559[_0x58302b(0x136)]),_0x3711f8={'hash':_0xfd81b5[_0x58302b(0x178)](),'threadId':_0xfd81b5[_0x58302b(0x123)]()[_0x58302b(0x150)](),'processId':_0xfd81b5[_0x58302b(0x124)]()[_0x58302b(0x150)]()},_0x26d1e1={};_0x26d1e1[_0x58302b(0x156)]=_0x3a47f4,_0x26d1e1[_0x58302b(0xe2)]=_0x34591d,_0x26d1e1[_0x58302b(0xef)]=_0x4a4ac1,_0x26d1e1[_0x58302b(0x16d)]=_0x191c0e,_0x26d1e1[_0x58302b(0x1a5)]=_0x59a020,_0x26d1e1[_0x58302b(0x116)]=_0x491efc,_0x26d1e1[_0x58302b(0x161)]=_0xc7e132,_0x26d1e1['uuid']=_0x1b0ed3,_0x26d1e1[_0x58302b(0x10b)]=_0xeaf87f,_0x26d1e1[_0x58302b(0x1a8)]=_0x3711f8;const _0x5135e9=_0x26d1e1;return logger[_0x58302b(0x162)](_0x58302b(0x1b0)+_0x14de41+_0x58302b(0x149)+_0x191c0e+_0x58302b(0x1a2)+_0x59a020),_0x5135e9;}catch(_0x3612f4){return logger[_0x58302b(0x12d)](_0x58302b(0x169)+util[_0x58302b(0x111)](_0x3612f4)),{};}}async[a91_0x22251b(0x119)](_0x5d2251,_0x21c427,_0x170b79){const _0x2c4e90=a91_0x22251b,_0x277a69={'vrBkc':function(_0x3cf40e,_0x1bb78f,_0x37d097){return _0x3cf40e(_0x1bb78f,_0x37d097);},'DmHex':function(_0x4477fd,_0x3025c3){return _0x4477fd===_0x3025c3;},'ICOhe':_0x2c4e90(0x180),'toIyV':function(_0x493c4f,_0x3f738b){return _0x493c4f/_0x3f738b;},'fMyjQ':function(_0x5c35d0,_0x5bf59c){return _0x5c35d0<_0x5bf59c;},'mtYpM':function(_0x3fb1ea,_0x5267bb){return _0x3fb1ea*_0x5267bb;},'nxHOt':function(_0x1f787d,_0x535bb1){return _0x1f787d+_0x535bb1;},'kGEjV':function(_0x44c188,_0x4e2053){return _0x44c188+_0x4e2053;},'vukHS':_0x2c4e90(0x1ab)};try{const _0x44e84a=_0x170b79[_0x2c4e90(0x12a)],_0x116f77=_0x5d2251['getAllData']()[_0x2c4e90(0x197)](_0x44e84a),{[TestFrameworkConstants[_0x2c4e90(0x199)]]:_0x1cdf1b='',[TestFrameworkConstants[_0x2c4e90(0x152)]]:_0x14ac92=''}=_0x116f77,_0x807845=TestInfo[_0x2c4e90(0x108)](_0x44e84a),_0x16e284=TestInfo[_0x2c4e90(0x158)](_0x44e84a)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x2d96f2=_0x277a69[_0x2c4e90(0x184)](getMediaArtifactsLogs,_0x16e284,_0x5d2251[_0x2c4e90(0xfa)]()['get'](_0x44e84a)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x4323c=(_0x807845||[])['concat'](_0x2d96f2||[]);if(!_0x4323c||_0x277a69[_0x2c4e90(0x1ae)](_0x4323c[_0x2c4e90(0x115)],0x0)){logger[_0x2c4e90(0x162)](_0x277a69[_0x2c4e90(0xee)]);return;}const _0x485fe6=0x28,_0x2fbe10=Math[_0x2c4e90(0x133)](_0x277a69[_0x2c4e90(0x17f)](_0x4323c[_0x2c4e90(0x115)],_0x485fe6));for(let _0x1e648f=0x0;_0x277a69[_0x2c4e90(0x11c)](_0x1e648f,_0x2fbe10);_0x1e648f++){const _0x122dca=_0x277a69[_0x2c4e90(0x131)](_0x1e648f,_0x485fe6),_0xcb6385=_0x277a69[_0x2c4e90(0x19d)](_0x122dca,_0x485fe6),_0x4f7230=_0x4323c['slice'](_0x122dca,_0xcb6385),_0xf34a4f={'platformIndex':global?.[_0x2c4e90(0xde)]??0x0,'logs':_0x4f7230,'testFrameworkName':_0x1cdf1b,'testFrameworkVersion':_0x14ac92,'testFrameworkState':_0x21c427[_0x2c4e90(0x150)]()[_0x2c4e90(0x198)]('.')[0x1]};logger['debug'](_0x2c4e90(0x190)+_0x44e84a+_0x2c4e90(0x168)+_0x277a69['nxHOt'](_0x1e648f,0x1)+'/'+_0x2fbe10+_0x2c4e90(0xeb)+util[_0x2c4e90(0xe8)](_0xf34a4f));const _0x13fe94=await GrpcClient[_0x2c4e90(0x11d)]()[_0x2c4e90(0x15e)](_0xf34a4f);logger[_0x2c4e90(0x162)](_0x2c4e90(0x190)+_0x44e84a+_0x2c4e90(0x168)+_0x277a69['kGEjV'](_0x1e648f,0x1)+'/'+_0x2fbe10+_0x2c4e90(0x18d)+util[_0x2c4e90(0xe8)](_0x13fe94));}}catch(_0x10570d){logger['error'](_0x2c4e90(0x17a)+util[_0x2c4e90(0x111)](_0x10570d));}logger[_0x2c4e90(0x162)](_0x277a69[_0x2c4e90(0xf1)]);}[a91_0x22251b(0x18b)](_0x5edf9f,_0x40e7b4,_0x5843c7,_0x16d215,_0xed0a33){const _0x43270f=a91_0x22251b,_0x1085e8={'testId':_0x40e7b4,'testFrameworkState':_0x5843c7,'hookState':_0x16d215,'args':_0xed0a33,'timestamp':new Date()['toISOString']()};_0x5edf9f[_0x43270f(0x14f)](_0x40e7b4,_0x1085e8),logger['debug'](_0x43270f(0x12f)+_0x40e7b4+_0x43270f(0x17c)+_0x5843c7+_0x43270f(0x120)+_0x16d215);}async['processPendingHooks'](_0x42df49,_0x501be0){const _0xd1da25=a91_0x22251b,_0x2dbe86={};_0x2dbe86[_0xd1da25(0x138)]=function(_0x2e0c37,_0x4d9f83){return _0x2e0c37>_0x4d9f83;};const _0x459315=_0x2dbe86;if(!_0x42df49[_0xd1da25(0x117)](_0x501be0))return;const _0x53ef13=_0x42df49[_0xd1da25(0x125)](_0x501be0);logger['debug'](_0xd1da25(0x18c)+_0x53ef13[_0xd1da25(0x115)]+_0xd1da25(0x154)+_0x501be0);for(const _0x26ee90 of _0x53ef13){try{const _0x20a7e4=await this[_0xd1da25(0x140)](_0x42df49,_0x26ee90['testFrameworkState'],_0x26ee90[_0xd1da25(0x1a5)],_0x26ee90['args']);_0x20a7e4&&_0x459315[_0xd1da25(0x138)](Object['keys'](_0x20a7e4)['length'],0x0)&&_0x42df49[_0xd1da25(0x143)](_0x20a7e4),await this['runHooks'](_0x42df49,_0x26ee90['testFrameworkState'],_0x26ee90[_0xd1da25(0x1a5)],_0x26ee90['args']);}catch(_0x2a433e){logger[_0xd1da25(0x12d)](_0xd1da25(0xe0)+_0x501be0+_0xd1da25(0x101)+_0x2a433e);}}_0x42df49[_0xd1da25(0x14d)](_0x501be0),logger[_0xd1da25(0x162)]('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0x501be0);}}module[a91_0x22251b(0x14a)]=CucumberTestFramework;
|
|
1
|
+
const a91_0x29520f=a91_0x2428;function a91_0x2428(_0x3ac208,_0x2b44ae){const _0x6c5938=a91_0x6c59();return a91_0x2428=function(_0x242817,_0x477d50){_0x242817=_0x242817-0x72;let _0x2748aa=_0x6c5938[_0x242817];return _0x2748aa;},a91_0x2428(_0x3ac208,_0x2b44ae);}(function(_0x208554,_0x7b7edd){const _0x324ce9=a91_0x2428,_0x4476a3=_0x208554();while(!![]){try{const _0x376dcf=parseInt(_0x324ce9(0xbb))/0x1+-parseInt(_0x324ce9(0x7c))/0x2+-parseInt(_0x324ce9(0x12c))/0x3*(-parseInt(_0x324ce9(0x145))/0x4)+-parseInt(_0x324ce9(0x13d))/0x5+parseInt(_0x324ce9(0x12e))/0x6*(parseInt(_0x324ce9(0xd7))/0x7)+parseInt(_0x324ce9(0x139))/0x8+parseInt(_0x324ce9(0xd1))/0x9*(-parseInt(_0x324ce9(0x110))/0xa);if(_0x376dcf===_0x7b7edd)break;else _0x4476a3['push'](_0x4476a3['shift']());}catch(_0x18c85b){_0x4476a3['push'](_0x4476a3['shift']());}}}(a91_0x6c59,0x600b7));function a91_0x6c59(){const _0x20bfa2=['KEY_TEST_FRAMEWORK_NAME','createTestFrameworkEventPayload\x20testId:\x20','getCurrentTestState','hooks','key','ynsTh','trackCucumberInstance','failed','result','get','NRhQi','name','\x20\x20and\x20args\x20=\x20','KEY_CUSTOM_TAGS','keys','\x20&\x20hookState=','wPewv','createTestFrameworkEventPayload','KEY_TEST_FAILURE_TYPE','KEY_HOOK_FAILURE','lMHRu','../../../helpers/helper.js','eodXJ','KEY_TEST_RESULT_AT','getAllData','KEY_TEST_SCOPES','KEY_TEST_FAILURE','Updated\x20cucumber\x20test\x20result:\x20','KEY_TEST_FAILURE_REASON','trackEvent','\x20pending\x20hooks\x20for\x20testId:\x20','BSpNl','\x20&\x20hook\x20=\x20','HzGor','toISOString','test','UnhandledError','getTestUUID','getInstance','lBzfV','push','KEY_HOOK_LAST_FINISHED','KEY_EVENT_ENDED_AT','KEY_HOOKS_STARTED','pop','430EwlOLA','gKlQj','zmeLQ','\x20testState:\x20','error','PwxWI','browserstackPlatformIndex','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','KEY_LOGS','getId','hzLNK','getThreadId','trackHookEvent','runHooks','addPendingHook','storePendingHook','test_run_id','POST','KEY_TEST_STARTED_AT','removePendingHooks','hookData','KEY_HOOK_LOGS',',\x20hookState:\x20','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','KEY_HOOK_RESULT','ZNzwc','getTrackedInstance',',\x20state=','1608663XIBIQj','eventJson','54LpTKST','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','SFGZD','getContext','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','tcSNr','finishedAt','../instances/trackedInstance.js','oOiLJ','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','../../../helpers/classLogger.js','439792PgxGmx','MJOFS','parseCucumberTest','getRef','1133745vUsXXY','inspect','testUUID','GGpFO','startedAt','base64','CucumberTestFramework','TEST','4jlcIym','KEY_TEST_META','\x20and\x20args\x20=\x20','meta','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','addMultipleEntries','\x20target=','location','KEY_TEST_ID','KEY_TEST_LOGS','KEY_HOOK_NAME','instance','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','\x20batch\x20','509474SJwiYa','lzKLG','./testFramework','KEY_HOOK_ID','wWCqc','readLogObjects','getCurrentInstanceName','KEY_TEST_FRAMEWORK_VERSION','jcVHg','processPendingHooks','failure_reason','KEY_TEST_SCOPE','Stored\x20pending\x20hook\x20for\x20testId:\x20','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','hasPendingHooks','\x20with\x20result:\x20','../state/testFrameworkState.js',',\x20state:\x20','setTestDetails','getTestFrameworksVersions','getTestDetails','../TestInfo.js','resolveInstance','PRE','hqWcc','./constants/testFrameworkConstants.js','unknown','trackEvent:\x20unsupported\x20testFrameworkState=','hqYLd','toString','KEY_TEST_UUID','KEY_HOOKS_FINISHED','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','NONE','\x20hookState:\x20','testFrameworkState','hook_type','KEY_HOOK_FAILURE_TYPE','vcmMa','KEY_TEST_CODE','finished_at','started_at','KEY_HOOK_FAILURE_REASON','getCurrentHookState','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','KEY_TEST_FILE_PATH','rGGua','failure_type','debug','KEY_TEST_ATTACHMENTS','\x20with\x20UUID:\x20','hookState','DEFAULT_HOOK_RESULT','stringify','slice','endedAt','testFrameworkVersion','\x20for\x20test:\x20','failure','DoKuw','file_name','sendLogCreatedEvent','KEY_TEST_RERUN_NAME','183646RyPVKO','kkEsO','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','scopes','VaKqf','\x20response=','split','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_TEST_LOCATION','Processing\x20','body','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','parseCucumberTestResult','getTestFrameworks','xbIqs','bcgeC','KEY_TEST_RESULT','KEY_AUTOMATE_SESSION_NAME','../instances/testFrameworkInstance.js','rerun_name','getPendingHooks','54270XOKQnc','failure_data','format','Error\x20in\x20createTestFrameworkEventPayload:\x20','testData','KEY_TEST_TAGS','279482HAqzsD','tags','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','KEY_TEST_NAME','ceil','../cliUtils.js','oFEPg','KEY_TEST_ENDED_AT','gznEz','length','uuid','DEFAULT_TEST_RESULT'];a91_0x6c59=function(){return _0x20bfa2;};return a91_0x6c59();}const TestFramework=require(a91_0x29520f(0x7e)),TestFrameworkState=require(a91_0x29520f(0x8c)),HookState=require('../state/hookState.js'),{createClassLogger}=require(a91_0x29520f(0x138)),TestFrameworkInstance=require(a91_0x29520f(0xce)),CLIUtils=require(a91_0x29520f(0xdc)),TrackedInstance=require(a91_0x29520f(0x135)),TestFrameworkConstants=require(a91_0x29520f(0x95)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x29520f(0xf8)),logger=createClassLogger(a91_0x29520f(0x143)),{v4:uuidv4}=require(a91_0x29520f(0xe1)),util=require('util'),TestInfo=require(a91_0x29520f(0x91)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x18a6d3,_0x86ad63,_0x3fa9fe){super(_0x18a6d3,_0x86ad63,_0x3fa9fe);}async[a91_0x29520f(0x100)](_0x54a6d3,_0x34f913,_0x47b8dc={}){const _0x49fb31=a91_0x29520f,_0x34575f={};_0x34575f[_0x49fb31(0xdf)]=_0x49fb31(0xc7),_0x34575f[_0x49fb31(0x11a)]=function(_0x237682,_0x278a35){return _0x237682===_0x278a35;},_0x34575f[_0x49fb31(0x94)]=function(_0x3b3e0d,_0x33b158){return _0x3b3e0d===_0x33b158;},_0x34575f['bcgeC']=_0x49fb31(0x127);const _0xac40e8=_0x34575f;await super[_0x49fb31(0x100)](_0x54a6d3,_0x34f913,_0x47b8dc);const _0x356079=this['resolveInstance'](_0x54a6d3,_0x34f913,_0x47b8dc);if(!_0x356079){logger[_0x49fb31(0xac)](_0xac40e8[_0x49fb31(0xdf)]);return;}try{let _0x575003,_0x41bf1b;switch(_0x54a6d3){case TestFrameworkState[_0x49fb31(0x144)]:_0x575003=_0x47b8dc[_0x49fb31(0x106)],_0x41bf1b=TestInfo[_0x49fb31(0x108)](_0x575003['id']);if(_0xac40e8[_0x49fb31(0x11a)](_0x34f913,HookState['PRE'])){logger['debug'](_0x49fb31(0xd9)+_0x575003['id']);const _0x442518={};_0x442518['testUUID']=_0x41bf1b,_0x442518[_0x49fb31(0xd5)]=_0x575003,_0x356079[_0x49fb31(0x73)](this['parseCucumberTest'](_0x442518)),logger[_0x49fb31(0xac)](_0x49fb31(0x72)+_0x575003['id']),await this[_0x49fb31(0x85)](_0x356079,_0x575003['id']);}else{if(_0xac40e8[_0x49fb31(0x11a)](_0x34f913,HookState[_0x49fb31(0x121)])){const _0x15a21e={};_0x15a21e['testUUID']=_0x41bf1b,_0x15a21e[_0x49fb31(0xd5)]=_0x575003,_0x356079[_0x49fb31(0x73)](this[_0x49fb31(0xc8)](_0x15a21e)),await this[_0x49fb31(0x85)](_0x356079,_0x575003['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0xac40e8[_0x49fb31(0x94)](_0x34f913,HookState[_0x49fb31(0x121)])&&await this[_0x49fb31(0xb9)](_0x356079,_0x54a6d3,_0x47b8dc);break;default:if(CLIUtils['matchHookRegex'](_0x54a6d3['toString']()[_0x49fb31(0xc1)]('.')[0x1])){const _0x5aeef8=await this[_0x49fb31(0x11c)](_0x356079,_0x54a6d3,_0x34f913,_0x47b8dc);_0x356079[_0x49fb31(0x73)](_0x5aeef8);}else logger[_0x49fb31(0xac)](_0x49fb31(0x97)+_0x54a6d3+_0x49fb31(0xf2)+_0x34f913);break;}}catch(_0x1b8135){logger[_0x49fb31(0x114)](util['format'](_0xac40e8[_0x49fb31(0xcb)],_0x54a6d3,_0x34f913,_0x47b8dc[_0x49fb31(0xe0)],_0x1b8135));}_0x47b8dc['instance']=_0x356079,await this['runHooks'](_0x356079,_0x54a6d3,_0x34f913,_0x47b8dc);}[a91_0x29520f(0x92)](_0x83a250,_0xa9c07a,_0x884005={}){const _0x421bfb=a91_0x29520f,_0x21eaef={};_0x21eaef['DoKuw']=function(_0x3b55c7,_0x801ca2){return _0x3b55c7===_0x801ca2;},_0x21eaef[_0x421bfb(0x140)]=function(_0x58f72e,_0x1d4e65){return _0x58f72e===_0x1d4e65;};const _0x2a3ef3=_0x21eaef;let _0x5b0f94=null;return(_0x2a3ef3[_0x421bfb(0xb7)](_0x83a250,TestFrameworkState['INIT_TEST'])||_0x2a3ef3[_0x421bfb(0x140)](_0x83a250,TestFrameworkState[_0x421bfb(0x9d)]))&&this['trackCucumberInstance'](_0x83a250,_0x884005),_0x5b0f94=TestFramework[_0x421bfb(0x12a)](),_0x5b0f94;}[a91_0x29520f(0xe9)](_0x3cd01f,_0x555dd9){const _0x24b2c3=a91_0x29520f,_0x52e426=CLIUtils[_0x24b2c3(0x82)](),_0x36b206=TrackedInstance['createContext'](_0x52e426);let _0x2c7557=null;logger[_0x24b2c3(0xac)](_0x24b2c3(0x12f)+_0x52e426+_0x24b2c3(0x12b)+_0x3cd01f),_0x2c7557=new TestFrameworkInstance(_0x36b206,this[_0x24b2c3(0xc9)](),this[_0x24b2c3(0x8f)](),_0x3cd01f,HookState['NONE']),TestFramework['setTrackedInstance'](_0x36b206,_0x2c7557),logger[_0x24b2c3(0xac)]('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x36b206['getId']()+_0x24b2c3(0x74)+_0x52e426);}[a91_0x29520f(0x13b)](_0x5744d2){const _0x6d9090=a91_0x29520f,_0x4738a5={};_0x4738a5[_0x6d9090(0x13a)]=_0x6d9090(0xa8);const _0x228a86=_0x4738a5,{testUUID:_0x8a49bb,testData:_0xc4b605}=_0x5744d2;if(!_0xc4b605||!_0xc4b605[_0x6d9090(0xe1)])return logger[_0x6d9090(0xac)](_0x228a86['MJOFS']),{};const _0xbc3440=_0x8a49bb,_0x3d495a=_0xc4b605[_0x6d9090(0xe1)],_0x1ed27e=this[_0x6d9090(0xc9)]()[0x0],_0x12f204=this[_0x6d9090(0x8f)](),_0x51636c={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x1ed27e,[TestFrameworkConstants[_0x6d9090(0x83)]]:_0x12f204[_0x1ed27e],[TestFrameworkConstants[_0x6d9090(0x77)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants[_0x6d9090(0x9a)]]:_0xbc3440,[TestFrameworkConstants[_0x6d9090(0xcc)]]:TestFrameworkConstants[_0x6d9090(0xe2)],[TestFrameworkConstants[_0x6d9090(0xcd)]]:_0xc4b605[_0x6d9090(0xee)]||'',[TestFrameworkConstants[_0x6d9090(0xa9)]]:_0xc4b605[_0x6d9090(0xb8)]||'',[TestFrameworkConstants[_0x6d9090(0x76)]]:_0x3d495a,[TestFrameworkConstants[_0x6d9090(0xda)]]:_0xc4b605[_0x6d9090(0xee)]||'',[TestFrameworkConstants[_0x6d9090(0xc3)]]:_0xc4b605[_0x6d9090(0x75)]||'',[TestFrameworkConstants[_0x6d9090(0xa3)]]:_0xc4b605[_0x6d9090(0xc5)]?.['code']||null,[TestFrameworkConstants[_0x6d9090(0xd6)]]:_0xc4b605[_0x6d9090(0xd8)]||[],[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0xc4b605[_0x6d9090(0x141)]||new Date()[_0x6d9090(0x105)](),[TestFrameworkConstants[_0x6d9090(0x87)]]:_0xc4b605[_0x6d9090(0xbe)]?.[0x0]||'',[TestFrameworkConstants[_0x6d9090(0xfc)]]:_0xc4b605[_0x6d9090(0xbe)]||[],[TestFrameworkConstants[_0x6d9090(0xba)]]:_0xc4b605['customRerunParam']?.[_0x6d9090(0xcf)]||_0xc4b605[_0x6d9090(0xee)]||'',[TestFrameworkConstants[_0x6d9090(0xf0)]]:{},[TestFrameworkConstants[_0x6d9090(0x146)]]:_0xc4b605[_0x6d9090(0x148)]||{}};TestInfo[_0x6d9090(0x8e)](_0x3d495a,_0x51636c),logger[_0x6d9090(0xac)]('Parsed\x20cucumber\x20test:\x20'+_0xc4b605[_0x6d9090(0xee)]+_0x6d9090(0xae)+_0xbc3440);const _0x5e8d81={};return _0x5e8d81[_0x3d495a]=_0x51636c,_0x5e8d81;}[a91_0x29520f(0xc8)](_0x5946c2){const _0x3f8dbf=a91_0x29520f,_0x244663={'HzGor':_0x3f8dbf(0x89),'BSpNl':_0x3f8dbf(0x96),'oOiLJ':function(_0x2bfc92,_0x194d6){return _0x2bfc92===_0x194d6;},'VaKqf':_0x3f8dbf(0xea),'ocCRb':_0x3f8dbf(0x107),'wPewv':function(_0x461880,_0x18c9e1,_0x35849e){return _0x461880(_0x18c9e1,_0x35849e);},'eodXJ':function(_0xab81ac,_0xa61749){return _0xab81ac>_0xa61749;},'zmeLQ':function(_0x73e3c8,_0x5d28d5){return _0x73e3c8>_0x5d28d5;}},{testUUID:_0x932dd5,testData:_0x5b1d9e}=_0x5946c2;if(!_0x5b1d9e||!_0x5b1d9e[_0x3f8dbf(0xe1)])return logger[_0x3f8dbf(0xac)](_0x244663[_0x3f8dbf(0x104)]),{};const _0x2324a5=this[_0x3f8dbf(0x92)](TestFrameworkState[_0x3f8dbf(0x144)],HookState[_0x3f8dbf(0x121)]),_0x42727e=_0x5b1d9e[_0x3f8dbf(0xe1)],_0x20f292=TestInfo[_0x3f8dbf(0x90)](_0x42727e)||{},_0x5e47e2=_0x20f292?_0x20f292[TestFrameworkConstants[_0x3f8dbf(0xf0)]]||{}:{},_0x2acd45={..._0x20f292,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x5b1d9e[_0x3f8dbf(0xeb)]||_0x244663[_0x3f8dbf(0x102)],[TestFrameworkConstants[_0x3f8dbf(0xde)]]:_0x5b1d9e[_0x3f8dbf(0x134)]||new Date()[_0x3f8dbf(0x105)](),[TestFrameworkConstants[_0x3f8dbf(0xfa)]]:new Date()[_0x3f8dbf(0x105)](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x5e47e2,[TestFrameworkConstants[_0x3f8dbf(0x118)]]:[],[TestFrameworkConstants[_0x3f8dbf(0x146)]]:_0x5b1d9e[_0x3f8dbf(0x148)]||{}};_0x244663[_0x3f8dbf(0x136)](_0x5b1d9e['result'],_0x244663[_0x3f8dbf(0xbf)])&&_0x5b1d9e[_0x3f8dbf(0xb6)]&&(_0x2acd45[TestFrameworkConstants[_0x3f8dbf(0xf5)]]=_0x5b1d9e[_0x3f8dbf(0xab)]||_0x244663['ocCRb'],_0x2acd45[TestFrameworkConstants[_0x3f8dbf(0xff)]]=_0x5b1d9e[_0x3f8dbf(0x86)]||'',_0x2acd45[TestFrameworkConstants[_0x3f8dbf(0xfd)]]=_0x5b1d9e[_0x3f8dbf(0xb6)]);const _0x1e9a95=TestInfo[_0x3f8dbf(0x90)](_0x42727e)[TestFrameworkConstants[_0x3f8dbf(0xad)]]||{},_0x21ca8e=_0x244663[_0x3f8dbf(0xf3)](getManualUploadLogs,_0x1e9a95,_0x2324a5[_0x3f8dbf(0xfb)]()[_0x3f8dbf(0xec)](_0x42727e)[TestFrameworkConstants[_0x3f8dbf(0x9a)]]);if(_0x244663[_0x3f8dbf(0xf9)](_0x21ca8e[_0x3f8dbf(0xe0)],0x0)){const _0x40831b=_0x2acd45[TestFrameworkConstants[_0x3f8dbf(0x118)]]||[];_0x2acd45[TestFrameworkConstants[_0x3f8dbf(0x118)]]=[..._0x40831b,..._0x21ca8e];}_0x5b1d9e[_0x3f8dbf(0xe6)]&&_0x244663[_0x3f8dbf(0x112)](_0x5b1d9e['hooks'][_0x3f8dbf(0xe0)],0x0)&&(_0x2acd45[TestFrameworkConstants[_0x3f8dbf(0x9b)]]=_0x5b1d9e['hooks']);TestInfo[_0x3f8dbf(0x8e)](_0x42727e,_0x2acd45),logger['debug'](_0x3f8dbf(0xfe)+_0x5b1d9e[_0x3f8dbf(0xee)]+_0x3f8dbf(0x8b)+_0x5b1d9e[_0x3f8dbf(0xeb)]);const _0x1b0e06={};return _0x1b0e06[_0x42727e]=_0x2acd45,_0x1b0e06;}async[a91_0x29520f(0x11c)](_0x398c5e,_0x2d53ce,_0x5f05d2,_0x32b889){const _0x4ed5e6=a91_0x29520f,_0xab34f0={'lzKLG':_0x4ed5e6(0x117),'xbIqs':function(_0xd8dcd6){return _0xd8dcd6();},'kkEsO':function(_0x2f5081,_0x1d10e9){return _0x2f5081 in _0x1d10e9;},'ynsTh':function(_0x485fbe,_0x52959f){return _0x485fbe in _0x52959f;},'hqYLd':function(_0x467545,_0x252aec){return _0x467545===_0x252aec;},'PwxWI':function(_0x111bfd,_0x4bd558){return _0x111bfd>_0x4bd558;},'rGGua':function(_0x2762fb,_0x17f6dd){return _0x2762fb===_0x17f6dd;},'vcmMa':'failed','luHcq':_0x4ed5e6(0x107),'wWCqc':'passed','lBzfV':function(_0x5bc8f1,_0x16475f){return _0x5bc8f1!==_0x16475f;}},{hookData:_0x5aec19}=_0x32b889;if(!_0x5aec19)return logger[_0x4ed5e6(0xac)](_0xab34f0[_0x4ed5e6(0x7d)]),{};const _0x44fa3d=_0x5aec19[_0x4ed5e6(0xe1)]||_0xab34f0[_0x4ed5e6(0xca)](uuidv4),_0x2f1b59=_0x5aec19[_0x4ed5e6(0x120)],_0x2257a8=_0x2d53ce[_0x4ed5e6(0x99)]()[_0x4ed5e6(0xc1)]('.')[0x1],_0x1dca18=TestInfo[_0x4ed5e6(0x90)](_0x2f1b59)[TestFrameworkConstants[_0x4ed5e6(0xf0)]]||{},_0x4b362d=_0x398c5e['getAllData']()[_0x4ed5e6(0xec)](_0x2f1b59);if(!_0x4b362d)return logger[_0x4ed5e6(0xac)]('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x2f1b59+',\x20storing\x20as\x20pending\x20hook'),this[_0x4ed5e6(0x11f)](_0x398c5e,_0x2f1b59,_0x2d53ce,_0x5f05d2,_0x32b889),{};let _0x2f5de9=_0x4b362d[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x2f5de9&&(_0x2f5de9={});!_0xab34f0[_0x4ed5e6(0xbc)](_0x2257a8,_0x2f5de9)&&(_0x2f5de9[_0x2257a8]=[]);let _0x24ed2a=_0x4b362d[TestFrameworkConstants[_0x4ed5e6(0x9b)]];!_0x24ed2a&&(_0x24ed2a={});!_0xab34f0[_0x4ed5e6(0xe8)](_0x2257a8,_0x24ed2a)&&(_0x24ed2a[_0x2257a8]=[]);const _0x4fc7a4={[TestFrameworkConstants[_0x4ed5e6(0x10e)]]:_0x2f5de9,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x24ed2a},_0x3f1349={};_0x3f1349[_0x2f1b59]=_0x4fc7a4;const _0x3e7251=_0x3f1349;if(_0xab34f0[_0x4ed5e6(0x98)](_0x5f05d2,HookState[_0x4ed5e6(0x93)])){const _0x4c1d0a={[TestFrameworkConstants[_0x4ed5e6(0x7f)]]:_0x44fa3d,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0x4ed5e6(0xb0)],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0x5aec19[_0x4ed5e6(0xa5)],[TestFrameworkConstants[_0x4ed5e6(0x125)]]:[],[TestFrameworkConstants[_0x4ed5e6(0x78)]]:_0x5aec19['hook_type'],[TestFrameworkConstants[_0x4ed5e6(0xf0)]]:_0x1dca18};_0x4c1d0a[_0x4ed5e6(0xe7)]=_0x2257a8;const _0x4263c5=_0x4c1d0a;_0x2f5de9[_0x2257a8][_0x4ed5e6(0x10b)](_0x4263c5),_0x3e7251[_0x2f1b59][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x2257a8,logger['debug'](_0x4ed5e6(0x132)+_0x2257a8+_0x4ed5e6(0x103)+_0x4263c5+_0x4ed5e6(0xef)+_0x32b889);}else{if(_0xab34f0[_0x4ed5e6(0x98)](_0x5f05d2,HookState[_0x4ed5e6(0x121)])){const _0x55e42d=_0x5aec19['result'],_0x16e8ca=_0x2f5de9[_0x2257a8]||[];logger[_0x4ed5e6(0xac)](_0x4ed5e6(0xbd)+_0x16e8ca+_0x4ed5e6(0x147)+_0x32b889);if(_0xab34f0[_0x4ed5e6(0x115)](_0x16e8ca[_0x4ed5e6(0xe0)],0x0)){const _0x4e211c=_0x16e8ca[_0x4ed5e6(0x10f)]();_0xab34f0[_0x4ed5e6(0xaa)](_0x5aec19[_0x4ed5e6(0xeb)],_0xab34f0[_0x4ed5e6(0xa2)])&&_0x5aec19[_0x4ed5e6(0xd2)]?(_0x4e211c[TestFrameworkConstants[_0x4ed5e6(0xa1)]]=_0x5aec19[_0x4ed5e6(0xab)]||_0xab34f0['luHcq'],_0x4e211c[TestFrameworkConstants[_0x4ed5e6(0xa6)]]=_0x5aec19[_0x4ed5e6(0x86)]||'',_0x4e211c[TestFrameworkConstants[_0x4ed5e6(0xf6)]]=_0x5aec19['failure_data']):_0x4e211c[TestFrameworkConstants[_0x4ed5e6(0x128)]]=_0xab34f0[_0x4ed5e6(0x80)];_0xab34f0[_0x4ed5e6(0x10a)](_0x55e42d,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x4e211c[TestFrameworkConstants[_0x4ed5e6(0x128)]]=_0x55e42d);_0x4e211c[TestFrameworkConstants[_0x4ed5e6(0x10d)]]=_0x5aec19[_0x4ed5e6(0xa4)]||new Date()[_0x4ed5e6(0x105)](),_0x4e211c[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x1dca18;const _0x296f41=_0x4e211c[TestFrameworkConstants['KEY_HOOK_ID']];!_0x24ed2a[_0x2257a8]&&(_0x24ed2a[_0x2257a8]=[]),_0x24ed2a[_0x2257a8][_0x4ed5e6(0x10b)](_0x4e211c),_0x3e7251[_0x2f1b59][TestFrameworkConstants[_0x4ed5e6(0x10c)]]=_0x2257a8;}}}return logger['debug']('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x5aec19[_0x4ed5e6(0xa0)]+'\x20with\x20id\x20'+_0x44fa3d+_0x4ed5e6(0xb5)+_0x2f1b59),_0x3e7251;}[a91_0x29520f(0xf4)](_0x41db9c){const _0xb53d2=a91_0x29520f,_0x1a6366={};_0x1a6366[_0xb53d2(0x133)]=_0xb53d2(0x142);const _0x3ffff3=_0x1a6366;try{const _0x2e66b3=_0x41db9c['test']?_0x41db9c['test']['id']:_0x41db9c[_0xb53d2(0x124)]['test_run_id'],_0x58565d=_0x41db9c[_0xb53d2(0x79)],_0x50a54f=_0x58565d[_0xb53d2(0x131)](),_0x317b07=_0x58565d[_0xb53d2(0xfb)]()[_0xb53d2(0xec)](_0x2e66b3);if(!_0x317b07)return logger[_0xb53d2(0xac)](_0xb53d2(0xc2)+_0x2e66b3),{};logger['debug'](_0xb53d2(0xe4)+_0x2e66b3);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x28288f='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x33323d='',[TestFrameworkConstants[_0xb53d2(0x122)]]:_0x382951='',[TestFrameworkConstants[_0xb53d2(0xde)]]:_0x1e888f=''}=_0x317b07,_0x1cbac6=_0x58565d[_0xb53d2(0xe5)]()[_0xb53d2(0x99)]()['split']('.')[0x1],_0x4dc9df=_0x58565d[_0xb53d2(0xa7)]()[_0xb53d2(0x99)]()[_0xb53d2(0xc1)]('.')[0x1],_0x657b9e=global?.[_0xb53d2(0x116)]??0x0,_0x4a645a=_0x58565d[_0xb53d2(0x13c)](),_0x3d40d4=Buffer['from'](JSON[_0xb53d2(0xb1)](_0x317b07))[_0xb53d2(0x99)](_0x3ffff3['tcSNr']),_0x5c7061={'hash':_0x50a54f[_0xb53d2(0x119)](),'threadId':_0x50a54f[_0xb53d2(0x11b)]()[_0xb53d2(0x99)](),'processId':_0x50a54f['getProcessId']()[_0xb53d2(0x99)]()},_0x1b586a={};_0x1b586a['platformIndex']=_0x657b9e,_0x1b586a['testFrameworkName']=_0x28288f,_0x1b586a[_0xb53d2(0xb4)]=_0x33323d,_0x1b586a[_0xb53d2(0x9f)]=_0x1cbac6,_0x1b586a[_0xb53d2(0xaf)]=_0x4dc9df,_0x1b586a[_0xb53d2(0x141)]=_0x382951,_0x1b586a[_0xb53d2(0xb3)]=_0x1e888f,_0x1b586a[_0xb53d2(0xe1)]=_0x4a645a,_0x1b586a[_0xb53d2(0x12d)]=_0x3d40d4,_0x1b586a['executionContext']=_0x5c7061;const _0x264437=_0x1b586a;return logger[_0xb53d2(0xac)](_0xb53d2(0x7a)+_0x2e66b3+_0xb53d2(0x113)+_0x1cbac6+_0xb53d2(0x9e)+_0x4dc9df),_0x264437;}catch(_0x130732){return logger[_0xb53d2(0x114)](_0xb53d2(0xd4)+util['format'](_0x130732)),{};}}async[a91_0x29520f(0xb9)](_0x41114b,_0x437c8b,_0x516a4a){const _0x2d2099=a91_0x29520f,_0x564c49={'NahZM':function(_0x23b7fb,_0x3a9146,_0x3fb32c){return _0x23b7fb(_0x3a9146,_0x3fb32c);},'ZNzwc':function(_0x14c5ee,_0x47e3b4){return _0x14c5ee===_0x47e3b4;},'SFGZD':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','NRhQi':function(_0x2fa2ca,_0x2f71d2){return _0x2fa2ca/_0x2f71d2;},'gKlQj':function(_0x175183,_0x39688a){return _0x175183<_0x39688a;},'dNJqQ':function(_0x272304,_0x4230f3){return _0x272304*_0x4230f3;},'lMHRu':function(_0x2221a0,_0x457b90){return _0x2221a0+_0x457b90;},'jcVHg':function(_0x33b418,_0x433beb){return _0x33b418+_0x433beb;},'Vbfza':'Cucumber\x20log\x20created\x20event'};try{const _0x22d956=_0x516a4a[_0x2d2099(0x13f)],_0x2cc1f5=_0x41114b[_0x2d2099(0xfb)]()[_0x2d2099(0xec)](_0x22d956),{[TestFrameworkConstants[_0x2d2099(0xe3)]]:_0x2a2911='',[TestFrameworkConstants[_0x2d2099(0x83)]]:_0x19a532=''}=_0x2cc1f5,_0xe803bd=TestInfo[_0x2d2099(0x81)](_0x22d956),_0x2c24d8=TestInfo[_0x2d2099(0x90)](_0x22d956)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x2cd52f=_0x564c49['NahZM'](getMediaArtifactsLogs,_0x2c24d8,_0x41114b[_0x2d2099(0xfb)]()[_0x2d2099(0xec)](_0x22d956)[TestFrameworkConstants[_0x2d2099(0x9a)]]),_0x53eba3=(_0xe803bd||[])['concat'](_0x2cd52f||[]);if(!_0x53eba3||_0x564c49[_0x2d2099(0x129)](_0x53eba3[_0x2d2099(0xe0)],0x0)){logger[_0x2d2099(0xac)](_0x564c49[_0x2d2099(0x130)]);return;}const _0x3833d5=0x28,_0x44a2c2=Math[_0x2d2099(0xdb)](_0x564c49[_0x2d2099(0xed)](_0x53eba3[_0x2d2099(0xe0)],_0x3833d5));for(let _0x2f7c37=0x0;_0x564c49[_0x2d2099(0x111)](_0x2f7c37,_0x44a2c2);_0x2f7c37++){const _0x148c08=_0x564c49['dNJqQ'](_0x2f7c37,_0x3833d5),_0x341af6=_0x564c49['lMHRu'](_0x148c08,_0x3833d5),_0x232b0c=_0x53eba3[_0x2d2099(0xb2)](_0x148c08,_0x341af6),_0x228a24={'platformIndex':global?.[_0x2d2099(0x116)]??0x0,'logs':_0x232b0c,'testFrameworkName':_0x2a2911,'testFrameworkVersion':_0x19a532,'testFrameworkState':_0x437c8b[_0x2d2099(0x99)]()[_0x2d2099(0xc1)]('.')[0x1]};logger[_0x2d2099(0xac)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x22d956+_0x2d2099(0x7b)+_0x564c49[_0x2d2099(0x84)](_0x2f7c37,0x1)+'/'+_0x44a2c2+'\x20payload='+util[_0x2d2099(0x13e)](_0x228a24));const _0x2cdd0b=await GrpcClient[_0x2d2099(0x109)]()['logCreatedEvent'](_0x228a24);logger[_0x2d2099(0xac)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x22d956+'\x20batch\x20'+_0x564c49[_0x2d2099(0xf7)](_0x2f7c37,0x1)+'/'+_0x44a2c2+_0x2d2099(0xc0)+util[_0x2d2099(0x13e)](_0x2cdd0b));}}catch(_0x5415ec){logger['error'](_0x2d2099(0x9c)+util[_0x2d2099(0xd3)](_0x5415ec));}logger[_0x2d2099(0xac)](_0x564c49['Vbfza']);}[a91_0x29520f(0x11f)](_0x118ba3,_0x2af820,_0x2a8f76,_0x11f216,_0x2e9779){const _0x165e8a=a91_0x29520f,_0x1035ce={'testId':_0x2af820,'testFrameworkState':_0x2a8f76,'hookState':_0x11f216,'args':_0x2e9779,'timestamp':new Date()[_0x165e8a(0x105)]()};_0x118ba3[_0x165e8a(0x11e)](_0x2af820,_0x1035ce),logger[_0x165e8a(0xac)](_0x165e8a(0x88)+_0x2af820+_0x165e8a(0x8d)+_0x2a8f76+_0x165e8a(0x126)+_0x11f216);}async['processPendingHooks'](_0x4bfc8d,_0xc018a3){const _0xe055e6=a91_0x29520f,_0x1f0a36={};_0x1f0a36[_0xe055e6(0xdd)]=function(_0x1f95ac,_0x3f29e9){return _0x1f95ac>_0x3f29e9;};const _0x4428c7=_0x1f0a36;if(!_0x4bfc8d[_0xe055e6(0x8a)](_0xc018a3))return;const _0x3c0971=_0x4bfc8d[_0xe055e6(0xd0)](_0xc018a3);logger[_0xe055e6(0xac)](_0xe055e6(0xc4)+_0x3c0971['length']+_0xe055e6(0x101)+_0xc018a3);for(const _0x174186 of _0x3c0971){try{const _0x583a28=await this[_0xe055e6(0x11c)](_0x4bfc8d,_0x174186['testFrameworkState'],_0x174186[_0xe055e6(0xaf)],_0x174186['args']);_0x583a28&&_0x4428c7['oFEPg'](Object[_0xe055e6(0xf1)](_0x583a28)[_0xe055e6(0xe0)],0x0)&&_0x4bfc8d[_0xe055e6(0x73)](_0x583a28),await this[_0xe055e6(0x11d)](_0x4bfc8d,_0x174186['testFrameworkState'],_0x174186[_0xe055e6(0xaf)],_0x174186['args']);}catch(_0x107b8d){logger[_0xe055e6(0x114)](_0xe055e6(0xc6)+_0xc018a3+',\x20error:\x20'+_0x107b8d);}}_0x4bfc8d[_0xe055e6(0x123)](_0xc018a3),logger[_0xe055e6(0xac)](_0xe055e6(0x137)+_0xc018a3);}}module['exports']=CucumberTestFramework;
|