browserstack-node-sdk 1.63.6 → 1.64.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/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_0x10eb9a=a85_0x18a9;(function(_0x131253,_0x3fd3ca){const _0x224d68=a85_0x18a9,_0x3caf73=_0x131253();while(!![]){try{const _0x3ac3e3=parseInt(_0x224d68(0xeb))/0x1+parseInt(_0x224d68(0x132))/0x2+parseInt(_0x224d68(0x159))/0x3*(parseInt(_0x224d68(0xde))/0x4)+parseInt(_0x224d68(0x189))/0x5+-parseInt(_0x224d68(0x179))/0x6*(parseInt(_0x224d68(0x10c))/0x7)+parseInt(_0x224d68(0x155))/0x8*(-parseInt(_0x224d68(0x167))/0x9)+parseInt(_0x224d68(0x166))/0xa*(-parseInt(_0x224d68(0x11c))/0xb);if(_0x3ac3e3===_0x3fd3ca)break;else _0x3caf73['push'](_0x3caf73['shift']());}catch(_0x8ab089){_0x3caf73['push'](_0x3caf73['shift']());}}}(a85_0x303c,0xc5bd8));function a85_0x18a9(_0x309c27,_0x393331){const _0x303cdd=a85_0x303c();return a85_0x18a9=function(_0x18a934,_0x28ff40){_0x18a934=_0x18a934-0x9e;let _0xfc5e1a=_0x303cdd[_0x18a934];return _0xfc5e1a;},a85_0x18a9(_0x309c27,_0x393331);}const fs=require('fs'),os=require('os'),url=require(a85_0x10eb9a(0x101)),path=require(a85_0x10eb9a(0xfd)),{exec}=require('child_process'),{https}=require('follow-redirects'),yauzl=require(a85_0x10eb9a(0xf4)),util=require(a85_0x10eb9a(0x18b)),{getFrameworkVersion}=require(a85_0x10eb9a(0x135)),{threadId}=require(a85_0x10eb9a(0xea)),PerformanceTester=require(a85_0x10eb9a(0xb8)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x10eb9a(0x13b)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x10eb9a(0xe9)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x10eb9a(0x14a)),{createClassLogger}=require(a85_0x10eb9a(0x14d)),TestFrameworkInstance=require(a85_0x10eb9a(0x13a)),HookState=require(a85_0x10eb9a(0xb9)),TestFrameworkState=require(a85_0x10eb9a(0x12a)),AutomationFrameworkState=require(a85_0x10eb9a(0x12c)),TestFrameworkConstants=require(a85_0x10eb9a(0xcd)),logger=createClassLogger(a85_0x10eb9a(0xf0)),{getBStackAPIUrl}=require('../utils/apiUtilityMethods.js');class CLIUtils{[a85_0x10eb9a(0x185)]={};[a85_0x10eb9a(0xee)]={};static[a85_0x10eb9a(0x163)](){const _0x354066=a85_0x10eb9a,_0x141332={};_0x141332[_0x354066(0xa8)]=function(_0x2c59fd,_0x5ae92e){return _0x2c59fd===_0x5ae92e;},_0x141332[_0x354066(0x171)]=_0x354066(0xd8);const _0x510391=_0x141332;return _0x510391[_0x354066(0xa8)](process[_0x354066(0xa9)][_0x354066(0x16d)],_0x510391[_0x354066(0x171)]);}static[a85_0x10eb9a(0x12d)](){const _0x588bf4=a85_0x10eb9a,_0x39dbbd={};return _0x39dbbd['id']=process['env'][_0x588bf4(0x16d)],_0x39dbbd['listen']=_0x588bf4(0xce)+process[_0x588bf4(0xa9)][_0x588bf4(0x16d)]+_0x588bf4(0xc1),_0x39dbbd;}static[a85_0x10eb9a(0x153)](){const _0x1c4992=a85_0x10eb9a,_0x25b509={'wDDVA':function(_0x3f24f2,_0x5ba353){return _0x3f24f2(_0x5ba353);},'tiHya':'../../../package.json'};return _0x25b509[_0x1c4992(0xbd)](require,_0x25b509['tiHya'])[_0x1c4992(0xfa)];}static[a85_0x10eb9a(0xc5)](){const _0x2efdda=a85_0x10eb9a,_0x584061={};_0x584061[_0x2efdda(0x10a)]=_0x2efdda(0x112);const _0x22055a=_0x584061;return _0x22055a[_0x2efdda(0x10a)];}static async[a85_0x10eb9a(0xc3)](_0x34a59c){const _0x455c2d=a85_0x10eb9a,_0x1165eb={'kadZx':_0x455c2d(0x186),'mJgHB':function(_0x491e03,_0x10f324){return _0x491e03(_0x10f324);},'ghdxG':function(_0x3432d6,_0x518127){return _0x3432d6(_0x518127);},'phmmr':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger['debug'](_0x1165eb[_0x455c2d(0x124)]);const _0x5caf11=process[_0x455c2d(0xa9)]['SDK_CLI_BIN_PATH'];if(!_0x1165eb[_0x455c2d(0x128)](isNullOrEmpty,_0x5caf11))return logger[_0x455c2d(0x183)](_0x455c2d(0x13c)+_0x5caf11),_0x5caf11;try{const _0x514fd9=this['getCliDir']();if(_0x1165eb['ghdxG'](isNullOrEmpty,_0x514fd9))throw new Error(_0x1165eb[_0x455c2d(0xa3)]);const _0xdc0ff4=this[_0x455c2d(0xd6)](_0x514fd9),_0x2b307f=await this['checkAndUpdateCli'](_0xdc0ff4,_0x514fd9,_0x34a59c);return logger[_0x455c2d(0x183)](_0x455c2d(0x146)+_0x2b307f),_0x2b307f;}catch(_0x7cbc08){logger[_0x455c2d(0x183)](_0x455c2d(0x191)+util[_0x455c2d(0xa5)](_0x7cbc08));}return null;}static async[a85_0x10eb9a(0xae)](_0x25fe95,_0x53ddcc,_0x1bf11b){const _0x346ddd=a85_0x10eb9a,_0x37e31f={'zvQcu':function(_0x263e64){return _0x263e64();},'ZyvTF':function(_0x4fb047,_0xd5b8e7){return _0x4fb047(_0xd5b8e7);},'pinXK':function(_0x1738cc,_0x4094fb,_0x5ff118){return _0x1738cc(_0x4094fb,_0x5ff118);},'OLMrP':_0x346ddd(0x139),'hCedh':_0x346ddd(0x101),'UZBIM':function(_0x1570d2,_0x1dc384){return _0x1570d2(_0x1dc384);}};PerformanceTester[_0x346ddd(0x194)](PerformanceEvents[_0x346ddd(0x193)]);try{logger[_0x346ddd(0x122)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x25fe95);const _0x23cd25=_0x37e31f[_0x346ddd(0x14c)](getHostInfo),_0xefec34={'sdk_version':CLIUtils['getSdkVersion'](),'os':_0x23cd25[_0x346ddd(0x162)],'os_arch':_0x23cd25[_0x346ddd(0x13f)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x37e31f[_0x346ddd(0xff)](isNullOrEmpty,_0x25fe95)&&(_0xefec34[_0x346ddd(0x180)]=await this[_0x346ddd(0xe4)](_0x25fe95+_0x346ddd(0x123)));const _0x3478f0=await this['requestToUpdateCLI'](_0xefec34,_0x1bf11b);process[_0x346ddd(0xa9)][_0x346ddd(0x111)]&&(logger[_0x346ddd(0x122)](_0x346ddd(0xcf)+process[_0x346ddd(0xa9)][_0x346ddd(0x111)]),_0x3478f0[_0x346ddd(0x139)][_0x346ddd(0x101)]=process[_0x346ddd(0xa9)][_0x346ddd(0x111)]);if(_0x37e31f[_0x346ddd(0x184)](nestedKeyValue,_0x3478f0,[_0x37e31f[_0x346ddd(0xf7)],_0x37e31f[_0x346ddd(0x108)]])){logger['debug']('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0xefec34[_0x346ddd(0x180)]);if(!_0x37e31f[_0x346ddd(0xd1)](isNullOrEmpty,_0x25fe95)&&this[_0x346ddd(0x11e)](_0x25fe95))return logger[_0x346ddd(0x10f)](_0x346ddd(0x16b)+_0x25fe95),_0x25fe95;return await this[_0x346ddd(0xba)](_0x37e31f[_0x346ddd(0x184)](nestedKeyValue,_0x3478f0,[_0x37e31f['OLMrP'],_0x37e31f['hCedh']]),_0x53ddcc);}return _0x25fe95;}finally{PerformanceTester[_0x346ddd(0x14f)](PerformanceEvents[_0x346ddd(0x193)]);}}static['getCliDir'](){const _0x3cc32b=a85_0x10eb9a,_0x442d19={'BvWLS':function(_0x3222ea,_0x68cfbd){return _0x3222ea(_0x68cfbd);},'Rtdow':_0x3cc32b(0xa2),'oDWsA':'cli','fzJGE':function(_0x1545ed,_0x7420cb){return _0x1545ed(_0x7420cb);}},_0xdd85ca=this['getWritableDir']();try{if(_0x442d19[_0x3cc32b(0xe1)](isNullOrEmpty,_0xdd85ca))throw new Error(_0x442d19[_0x3cc32b(0xf6)]);const _0x1e800b=path['join'](_0xdd85ca,_0x442d19[_0x3cc32b(0xd3)]);return!fs[_0x3cc32b(0x18d)](_0x1e800b)&&_0x442d19['fzJGE'](createDir,_0x1e800b),_0x1e800b;}catch(_0x4ce962){logger[_0x3cc32b(0x183)](_0x3cc32b(0x107)+util[_0x3cc32b(0xa5)](_0x4ce962));}}static[a85_0x10eb9a(0xfb)](){const _0x292507=a85_0x10eb9a,_0x37cf74={'iOUUW':'.browserstack','VcZoy':function(_0x38318e,_0x36f3d6){return _0x38318e(_0x36f3d6);},'hPach':function(_0x373097,_0x36f4a8){return _0x373097(_0x36f4a8);}},_0x26f313=[process[_0x292507(0xa9)][_0x292507(0x16f)],path[_0x292507(0x18c)](os[_0x292507(0x11a)](),_0x37cf74[_0x292507(0x102)]),path[_0x292507(0x18c)](os[_0x292507(0xc4)](),_0x37cf74[_0x292507(0x102)])];for(const _0x8bcd85 of _0x26f313){if(_0x37cf74['VcZoy'](isNullOrEmpty,_0x8bcd85))continue;try{if(fs[_0x292507(0x18d)](_0x8bcd85)){logger[_0x292507(0x183)]('Folder\x20'+_0x8bcd85+_0x292507(0xb5));if(!_0x37cf74['hPach'](isModifiable,_0x8bcd85)){logger[_0x292507(0x183)](_0x292507(0x103)+_0x8bcd85);const _0x14c4de=_0x37cf74[_0x292507(0xbe)](setReadWriteExecuteAccess,_0x8bcd85);if(!_0x37cf74[_0x292507(0x17a)](isTrue,_0x14c4de)){logger[_0x292507(0x10f)](_0x292507(0x172)+_0x8bcd85);continue;}}}else{logger[_0x292507(0x183)](_0x292507(0x190)+_0x8bcd85),_0x37cf74[_0x292507(0xbe)](createDir,_0x8bcd85),logger[_0x292507(0x183)](_0x292507(0x103)+_0x8bcd85);const _0x3ab8ad=_0x37cf74[_0x292507(0x17a)](setReadWriteExecuteAccess,_0x8bcd85);!_0x37cf74[_0x292507(0xbe)](isTrue,_0x3ab8ad)&&logger[_0x292507(0x10f)](_0x292507(0x172)+_0x8bcd85);}return _0x8bcd85;}catch(_0x24ca9e){logger[_0x292507(0x121)](_0x292507(0x150)+util['format'](_0x24ca9e));}}return null;}static['getExistingCliPath'](_0x41cee0){const _0x529679=a85_0x10eb9a,_0x5b180a={};_0x5b180a[_0x529679(0x131)]=function(_0x329c58,_0x393ce8){return _0x329c58>_0x393ce8;},_0x5b180a[_0x529679(0xf5)]=function(_0x400d2e,_0x53ec28){return _0x400d2e>_0x53ec28;};const _0x33742b=_0x5b180a;try{if(!fs['existsSync'](_0x41cee0)||!fs[_0x529679(0xe5)](_0x41cee0)[_0x529679(0xd2)]())return'';const _0x365327=fs[_0x529679(0x9f)](_0x41cee0)[_0x529679(0x177)](_0x575bb3=>path[_0x529679(0x18c)](_0x41cee0,_0x575bb3))['filter'](_0xb41c42=>fs[_0x529679(0xe5)](_0xb41c42)[_0x529679(0x11d)]()&&path[_0x529679(0x175)](_0xb41c42)[_0x529679(0x11f)](_0x529679(0x18f)));if(_0x33742b['cOSah'](_0x365327[_0x529679(0x182)],0x0)){const _0xe806ff=_0x365327[_0x529679(0x177)](_0x39b4d2=>({'filePath':_0x39b4d2,'mtime':fs[_0x529679(0xe5)](_0x39b4d2)['mtime']}))['reduce']((_0x1d296d,_0x144be1)=>{const _0x27731e=_0x529679;if(!_0x1d296d||!_0x1d296d[_0x27731e(0x12b)])return _0x144be1;if(_0x33742b[_0x27731e(0x131)](_0x144be1[_0x27731e(0x12b)],_0x1d296d[_0x27731e(0x12b)]))return _0x144be1;return _0x1d296d;},{});return _0xe806ff?_0xe806ff[_0x529679(0xa7)]:'';}return'';}catch(_0x5edbfe){return logger[_0x529679(0x121)](_0x529679(0x100)+util['format'](_0x5edbfe)),'';}}static [a85_0x10eb9a(0x148)]=async(_0x2bb852,_0xe11d28)=>{const _0x16fd62=a85_0x10eb9a,_0x5bb7b3={'joMhA':function(_0x3c451a,_0x5d1291,_0x384b0e,_0x247fdd,_0x22acbf){return _0x3c451a(_0x5d1291,_0x384b0e,_0x247fdd,_0x22acbf);},'ojzDO':_0x16fd62(0xb7)},_0x4489f6={};_0x4489f6['qs']=_0x2bb852,_0x4489f6[_0x16fd62(0xa1)]=!![];const _0xf45b24=await _0x5bb7b3[_0x16fd62(0xc2)](nodeRequest,_0x5bb7b3[_0x16fd62(0x174)],UPDATED_CLI_ENDPOINT,_0x4489f6,_0xe11d28);return logger[_0x16fd62(0x183)](_0x16fd62(0xd5)+JSON[_0x16fd62(0x104)](_0xf45b24)),_0xf45b24;};static['isBinaryBusy'](_0x4536db){const _0x9d067b=a85_0x10eb9a;try{const _0xbc0b0d=fs[_0x9d067b(0xfe)](_0x4536db,'r+');return fs[_0x9d067b(0xcb)](_0xbc0b0d),![];}catch(_0x347e8d){if(BINARY_BUSY_ERROR_CODES['includes'](_0x347e8d[_0x9d067b(0x16c)]))return logger[_0x9d067b(0x183)]('Binary\x20is\x20busy:\x20'+_0x4536db),!![];return logger['debug'](_0x9d067b(0xc8)+_0x347e8d['message']),![];}}static[a85_0x10eb9a(0xe4)](_0x33013b,_0x4d3d92=''){const _0xa4da0a=a85_0x10eb9a,_0x429c24={'MqjvC':function(_0x5149e8,_0x4fec43){return _0x5149e8(_0x4fec43);},'rUaSS':'SHELL_EXECUTE_ERROR','FjFff':_0xa4da0a(0xfa),'syajh':function(_0xd5d584,_0x3576ee){return _0xd5d584(_0x3576ee);},'liYaK':function(_0x122e28,_0x42d220,_0x243986,_0x9562f2){return _0x122e28(_0x42d220,_0x243986,_0x9562f2);},'XymTv':_0xa4da0a(0x121)};return new Promise((_0x6cf288,_0x260738)=>{const _0x2dc324=_0xa4da0a,_0x4f8d3e={'FiDpb':_0x429c24[_0x2dc324(0xdf)],'clzEj':function(_0x200186,_0x4d6bf8){const _0xbe3aa1=_0x2dc324;return _0x429c24[_0xbe3aa1(0x173)](_0x200186,_0x4d6bf8);},'rdUVn':function(_0x483b5b,_0x3319e6){const _0x393cf9=_0x2dc324;return _0x429c24[_0x393cf9(0x120)](_0x483b5b,_0x3319e6);},'AtiGW':_0x429c24[_0x2dc324(0x133)],'NGJtD':function(_0x1bc045,_0x5b02bf){return _0x429c24['MqjvC'](_0x1bc045,_0x5b02bf);}},_0x2e9c04={};_0x2e9c04[_0x2dc324(0xbf)]=_0x4d3d92,_0x2e9c04[_0x2dc324(0x13d)]=0x1388;const _0x153fb2=_0x429c24[_0x2dc324(0xed)](exec,_0x33013b,_0x2e9c04,(_0x2a3c05,_0x16b09b,_0x462c9c)=>{const _0x3996ab=_0x2dc324;if(_0x2a3c05){if(_0x33013b[_0x3996ab(0xf9)](_0x4f8d3e[_0x3996ab(0x140)])&&(_0x16b09b[_0x3996ab(0x149)]()||_0x462c9c[_0x3996ab(0x149)]())){const _0x4226d1=_0x16b09b['trim']()||_0x462c9c[_0x3996ab(0x149)]();logger['debug']('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x4226d1+'\x22'),_0x4f8d3e['clzEj'](_0x6cf288,_0x4226d1);}else _0x4f8d3e[_0x3996ab(0xfc)](_0x6cf288,_0x462c9c[_0x3996ab(0x149)]()||_0x4f8d3e[_0x3996ab(0x125)]);}else logger[_0x3996ab(0x183)](_0x3996ab(0x15d)+_0x16b09b['trim']()+'\x22'),_0x4f8d3e[_0x3996ab(0xac)](_0x6cf288,_0x16b09b[_0x3996ab(0x149)]());});_0x153fb2['on'](_0x429c24['XymTv'],()=>{const _0x33f6f5=_0x2dc324;_0x429c24[_0x33f6f5(0x173)](_0x6cf288,_0x429c24[_0x33f6f5(0x133)]);});});}static [a85_0x10eb9a(0xba)]=async(_0x4108d1,_0x38a2b3)=>{const _0x5289bd=a85_0x10eb9a,_0x1fee59={'CiNaQ':function(_0x1ac0c4,_0x24bfdc){return _0x1ac0c4(_0x24bfdc);},'gBpKo':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','jNOEq':function(_0x5452e8,_0x9d03f7){return _0x5452e8(_0x9d03f7);},'tayLy':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','IAEop':function(_0x1d1e72,_0x5af390){return _0x1d1e72>=_0x5af390;},'HPSbW':_0x5289bd(0xf2),'dOIpA':_0x5289bd(0x106),'CQENm':_0x5289bd(0x121),'zTBJV':_0x5289bd(0x12f)};PerformanceTester[_0x5289bd(0x194)](PerformanceEvents[_0x5289bd(0x9e)]),logger[_0x5289bd(0x183)](_0x5289bd(0xd9)+_0x4108d1);try{const _0x4284d3=url['parse'](_0x4108d1),_0x125459=path[_0x5289bd(0x18c)](_0x38a2b3,'downloaded_file_'+process['pid']+'.zip'),_0x265f70=fs['createWriteStream'](_0x125459);return new Promise((_0x54f300,_0x11c69c)=>{const _0x2e417d=_0x5289bd,_0x17d892={'nLWqx':_0x1fee59[_0x2e417d(0x134)],'jvfQQ':function(_0x1845fe,_0xfd63bc){const _0x364941=_0x2e417d;return _0x1fee59[_0x364941(0x15c)](_0x1845fe,_0xfd63bc);},'gJEVO':_0x1fee59[_0x2e417d(0x17e)],'SxSYI':function(_0xeeb89e,_0x5cc8f){return _0x1fee59['CiNaQ'](_0xeeb89e,_0x5cc8f);},'YCufj':function(_0x29dac1,_0x18a7fa){const _0x22b4a5=_0x2e417d;return _0x1fee59[_0x22b4a5(0x10b)](_0x29dac1,_0x18a7fa);},'svVUb':_0x1fee59['HPSbW'],'QrOIF':_0x1fee59[_0x2e417d(0x17c)],'ibLhn':_0x1fee59[_0x2e417d(0xb3)]};https[_0x2e417d(0x168)](_0x4284d3,function(_0x2cfe61){const _0x385b36=_0x2e417d,_0x3c128f={'LgRTo':_0x17d892[_0x385b36(0xc7)],'dtiFz':function(_0x6c3ac1,_0x29ea80){return _0x17d892['SxSYI'](_0x6c3ac1,_0x29ea80);},'UvjOU':function(_0x4f6b77,_0x22bfaa){const _0x522596=_0x385b36;return _0x17d892[_0x522596(0x113)](_0x4f6b77,_0x22bfaa);}},_0x41f118=null;if(_0x2cfe61[_0x385b36(0x151)]&&_0x17d892['YCufj'](_0x2cfe61['statusCode'],0x190)){const _0x50ecc9=new Error(_0x385b36(0x110)+_0x2cfe61[_0x385b36(0x151)]+_0x385b36(0xa6)+_0x4108d1);_0x50ecc9['code']=_0x17d892[_0x385b36(0xe6)],_0x50ecc9[_0x385b36(0x151)]=_0x2cfe61[_0x385b36(0x151)],logger['error'](util['format'](_0x17d892[_0x385b36(0x156)],_0x2cfe61['statusCode'])),PerformanceTester[_0x385b36(0x14f)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],_0x385b36(0xb6)+_0x2cfe61['statusCode']),_0x2cfe61[_0x385b36(0x117)](),_0x265f70[_0x385b36(0xca)](),fs[_0x385b36(0x130)](_0x125459,()=>{}),_0x17d892[_0x385b36(0x15b)](_0x11c69c,_0x50ecc9);return;}_0x2cfe61[_0x385b36(0x17f)](_0x265f70),_0x2cfe61['on'](_0x17d892[_0x385b36(0x18a)],function(_0x31e7b8){const _0x3f520c=_0x385b36;logger[_0x3f520c(0x121)](util['format'](_0x17d892[_0x3f520c(0xb4)],_0x31e7b8)),PerformanceTester[_0x3f520c(0x14f)](PerformanceEvents[_0x3f520c(0x9e)],![],util['format'](_0x31e7b8)),_0x17d892[_0x3f520c(0x113)](_0x11c69c,_0x31e7b8);}),_0x265f70['on'](_0x17d892['ibLhn'],function(_0x356dee){const _0x15e98a=_0x385b36;logger[_0x15e98a(0x121)](util[_0x15e98a(0xa5)](_0x3c128f[_0x15e98a(0xd0)],_0x356dee)),PerformanceTester[_0x15e98a(0x14f)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x356dee)),_0x3c128f['dtiFz'](_0x11c69c,_0x356dee);}),CLIUtils[_0x385b36(0xdc)](_0x265f70,_0x41f118,_0x125459,_0x38a2b3,_0x5b9c8e=>{const _0x3ee2b8=_0x385b36;PerformanceTester[_0x3ee2b8(0x14f)](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x3c128f[_0x3ee2b8(0x144)](_0x54f300,_0x5b9c8e);},_0x31bc07=>{const _0x25e83c=_0x385b36;PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x25e83c(0xa5)](_0x31bc07)),_0x3c128f['UvjOU'](_0x11c69c,_0x31bc07);});})['on'](_0x1fee59[_0x2e417d(0xb3)],function(_0x1963a7){const _0x589cfa=_0x2e417d;logger['error'](_0x589cfa(0xdd)+util['format'](_0x1963a7)),PerformanceTester[_0x589cfa(0x14f)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x589cfa(0xa5)](_0x1963a7)),_0x1fee59[_0x589cfa(0x176)](_0x11c69c,_0x1963a7);});});}catch(_0x5f2dd1){PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x5289bd(0xa5)](_0x5f2dd1)),logger[_0x5289bd(0x121)](util[_0x5289bd(0xa5)](_0x1fee59['zTBJV'],_0x5f2dd1));throw _0x5f2dd1;}};static[a85_0x10eb9a(0xdc)](_0xa8e4ce,_0x1b0501,_0x1a1ac6,_0x49e055,_0xb180a1,_0x1db04b){const _0x52fc9d=a85_0x10eb9a,_0x234fa3={'fBWRm':function(_0x231b11,_0x49f326){return _0x231b11(_0x49f326);},'jotak':_0x52fc9d(0x13e),'kQRes':function(_0x18df7f,_0x2cb56e){return _0x18df7f!==_0x2cb56e;},'zlgmy':function(_0x4f3c71,_0x950e61){return _0x4f3c71(_0x950e61);},'sJPTf':_0x52fc9d(0x121),'MhOGk':_0x52fc9d(0x181),'FtyUu':_0x52fc9d(0x127),'yIVsM':function(_0x17e323,_0x514356){return _0x17e323(_0x514356);},'Amgbz':_0x52fc9d(0x14f),'QcogJ':_0x52fc9d(0xd4)};_0xa8e4ce['on'](_0x234fa3[_0x52fc9d(0xe3)],function(){const _0x192975=_0x52fc9d,_0x2b5e0a={'NFoPw':function(_0x45189c,_0x22908e){return _0x234fa3['fBWRm'](_0x45189c,_0x22908e);},'ySIdU':_0x234fa3[_0x192975(0xe3)],'mvjGP':function(_0x27abc9,_0x31740e){const _0x3ce8cd=_0x192975;return _0x234fa3[_0x3ce8cd(0x11b)](_0x27abc9,_0x31740e);},'FAGRr':function(_0x4658a7,_0x13085e){const _0x1f5caa=_0x192975;return _0x234fa3[_0x1f5caa(0xda)](_0x4658a7,_0x13085e);},'SrmIh':function(_0x5091f9,_0x349b5e){const _0x2e4dba=_0x192975;return _0x234fa3[_0x2e4dba(0x178)](_0x5091f9,_0x349b5e);},'swzkO':_0x234fa3['sJPTf'],'EbMLb':function(_0x528328,_0x344ef5){const _0x272a4a=_0x192975;return _0x234fa3[_0x272a4a(0x11b)](_0x528328,_0x344ef5);},'jTodS':_0x234fa3['MhOGk'],'mGdLA':function(_0xd2127b,_0x5b789e){return _0x234fa3['fBWRm'](_0xd2127b,_0x5b789e);},'nEocF':_0x234fa3[_0x192975(0x196)],'EtpEq':function(_0x194f6f,_0x11c36f){return _0x234fa3['yIVsM'](_0x194f6f,_0x11c36f);},'LTAej':_0x234fa3[_0x192975(0xbb)],'uzjXe':function(_0x34dbb4,_0x4d5edd){const _0x51e053=_0x192975;return _0x234fa3[_0x51e053(0x160)](_0x34dbb4,_0x4d5edd);},'cPCvz':_0x234fa3[_0x192975(0x152)]},_0x4ee077={};_0x4ee077[_0x192975(0xa0)]=!![],yauzl[_0x192975(0x119)](_0x1a1ac6,_0x4ee077,function(_0x5839c0,_0x54b368){const _0x4e85b4=_0x192975,_0x15b413={'oXsnd':function(_0x2c725b,_0x2941cf){const _0x1ea464=a85_0x18a9;return _0x2b5e0a[_0x1ea464(0x192)](_0x2c725b,_0x2941cf);},'smwBt':_0x2b5e0a['LTAej'],'wlSLa':function(_0x2bf457,_0x595cd4){const _0x4aff19=a85_0x18a9;return _0x2b5e0a[_0x4aff19(0xf8)](_0x2bf457,_0x595cd4);},'pKYDx':function(_0x479d0b,_0x1cea7e){const _0x5da8c8=a85_0x18a9;return _0x2b5e0a[_0x5da8c8(0x115)](_0x479d0b,_0x1cea7e);}};if(_0x5839c0){_0x2b5e0a['SrmIh'](_0x1db04b,_0x5839c0);return;}_0x54b368[_0x4e85b4(0x195)](),_0x54b368['on'](_0x2b5e0a[_0x4e85b4(0x136)],_0xa1885a=>{const _0xcec934=_0x4e85b4,_0x699366={'fixXU':function(_0x31207e,_0x281437){const _0x4dd62b=a85_0x18a9;return _0x2b5e0a[_0x4dd62b(0x126)](_0x31207e,_0x281437);},'oyzHk':function(_0x9b404b,_0x3c4a00){const _0x5bf57a=a85_0x18a9;return _0x2b5e0a[_0x5bf57a(0x126)](_0x9b404b,_0x3c4a00);},'UIWIJ':_0x2b5e0a[_0xcec934(0xc9)]};if(/\/$/[_0xcec934(0x154)](_0xa1885a[_0xcec934(0x161)])){_0x54b368[_0xcec934(0x195)]();return;}!_0x1b0501&&(_0x1b0501=_0xa1885a[_0xcec934(0x161)]);if(_0x2b5e0a[_0xcec934(0x10e)](_0xa1885a[_0xcec934(0x161)],_0x1b0501))_0x54b368[_0xcec934(0x195)]();else{const _0x2aabfe=_0xa1885a[_0xcec934(0x161)],_0x155285=path['join'](_0x49e055,_0x2aabfe+_0xcec934(0x188)+process[_0xcec934(0xc6)]);let _0x2588e7;try{_0x2588e7=fs[_0xcec934(0x164)](_0x155285);}catch(_0x31c886){if(BINARY_BUSY_ERROR_CODES[_0xcec934(0xf9)](_0x31c886[_0xcec934(0x16c)])){const _0x4eef22=path[_0xcec934(0x18c)](_0x49e055,_0x2aabfe);if(fs[_0xcec934(0x18d)](_0x4eef22)){logger[_0xcec934(0x10f)](_0xcec934(0xe7)+_0x2aabfe),fs[_0xcec934(0x130)](_0x1a1ac6,_0x3d9a25=>{const _0x53cea1=_0xcec934;_0x3d9a25&&logger[_0x53cea1(0x10f)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x1a1ac6);}),_0x2b5e0a['FAGRr'](_0xb180a1,_0x4eef22);return;}logger['warn']('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x2aabfe);}_0x2b5e0a[_0xcec934(0xa4)](_0x1db04b,_0x31c886);return;}_0x2588e7['on'](_0x2b5e0a[_0xcec934(0x15f)],_0x7f3a91=>{const _0x5e6f66=_0xcec934;if(BINARY_BUSY_ERROR_CODES[_0x5e6f66(0xf9)](_0x7f3a91[_0x5e6f66(0x16c)])){const _0x1444e6=path[_0x5e6f66(0x18c)](_0x49e055,_0x2aabfe);_0x2588e7[_0x5e6f66(0x13e)](),fs[_0x5e6f66(0x18d)](_0x1444e6)?(logger[_0x5e6f66(0x10f)](_0x5e6f66(0x137)+_0x7f3a91[_0x5e6f66(0x169)]),_0x54b368[_0x5e6f66(0x13e)](),fs['unlink'](_0x1a1ac6,_0x5bb362=>{const _0x1e9c1f=_0x5e6f66;_0x5bb362&&logger[_0x1e9c1f(0x10f)](_0x1e9c1f(0xb2)+_0x1a1ac6);}),_0x699366[_0x5e6f66(0x141)](_0xb180a1,_0x1444e6)):(logger['warn'](_0x5e6f66(0xe8)+_0x7f3a91[_0x5e6f66(0x169)]),fs['unlink'](_0x155285,()=>{}),_0x699366[_0x5e6f66(0x141)](_0x1db04b,_0x7f3a91));}else fs['unlink'](_0x155285,()=>{}),_0x699366[_0x5e6f66(0x14b)](_0x1db04b,_0x7f3a91);}),_0x54b368[_0xcec934(0xcc)](_0xa1885a,function(_0x56fe50,_0x3e4408){const _0x5ae503=_0xcec934;if(_0x56fe50){fs[_0x5ae503(0x130)](_0x155285,()=>{}),_0x15b413[_0x5ae503(0x143)](_0x1db04b,_0x56fe50);return;}_0x3e4408['on'](_0x15b413[_0x5ae503(0x116)],function(){const _0x4be522=_0x5ae503;_0x2588e7[_0x4be522(0x14f)](),_0x2588e7['on'](_0x699366[_0x4be522(0xf3)],function(){const _0x5e2a57=_0x4be522;_0x54b368[_0x5e2a57(0x195)]();});}),_0x3e4408[_0x5ae503(0x17f)](_0x2588e7);});}}),_0x54b368['on'](_0x2b5e0a['swzkO'],_0x3bed43=>{const _0x3b8b45=_0x4e85b4;_0x15b413[_0x3b8b45(0xe0)](_0x1db04b,_0x3bed43);}),_0x54b368[_0x4e85b4(0xb0)](_0x2b5e0a[_0x4e85b4(0x105)],()=>{const _0x54084d=_0x4e85b4,_0x3b1d3f={'TPzzp':function(_0x3e6861,_0x4a4546){return _0x2b5e0a['EbMLb'](_0x3e6861,_0x4a4546);},'gScYQ':_0x2b5e0a[_0x54084d(0xab)],'RulRv':function(_0x3e65ce,_0x3796b9){const _0x422dac=_0x54084d;return _0x2b5e0a[_0x422dac(0xf1)](_0x3e65ce,_0x3796b9);},'KwAOe':function(_0x5de83c,_0x36d6c2){const _0x32f9bc=_0x54084d;return _0x2b5e0a[_0x32f9bc(0x115)](_0x5de83c,_0x36d6c2);}};fs[_0x54084d(0x130)](_0x1a1ac6,_0x3cd2b0=>{const _0x39abc4=_0x54084d;_0x3cd2b0&&logger[_0x39abc4(0x10f)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x1a1ac6);});const _0x4d7073=path[_0x54084d(0x18c)](_0x49e055,_0x1b0501+_0x54084d(0x188)+process['pid']),_0x5b6a75=path[_0x54084d(0x18c)](_0x49e055,_0x1b0501);fs['chmod'](_0x4d7073,_0x2b5e0a[_0x54084d(0x17d)],function(_0x209f7a){const _0x27a532=_0x54084d;if(_0x209f7a){_0x54b368[_0x27a532(0x13e)](),fs[_0x27a532(0x130)](_0x4d7073,()=>{}),_0x15b413[_0x27a532(0x14e)](_0x1db04b,_0x209f7a);return;}fs[_0x27a532(0xdb)](_0x4d7073,_0x5b6a75,function(_0x31222d){const _0x5ce503=_0x27a532;if(_0x31222d){if(_0x3b1d3f['TPzzp'](_0x31222d['code'],_0x3b1d3f[_0x5ce503(0x142)])){_0x54b368[_0x5ce503(0x13e)](),fs[_0x5ce503(0x130)](_0x4d7073,()=>{}),_0x3b1d3f['RulRv'](_0x1db04b,_0x31222d);return;}logger[_0x5ce503(0x10f)](_0x5ce503(0x129)+_0x31222d[_0x5ce503(0x169)]);try{fs[_0x5ce503(0xad)](_0x4d7073,_0x5b6a75);}catch(_0x315e40){_0x54b368['close'](),fs['unlink'](_0x4d7073,()=>{}),_0x3b1d3f['RulRv'](_0x1db04b,_0x315e40);return;}fs['unlink'](_0x4d7073,_0x310917=>{const _0x3145d3=_0x5ce503;_0x310917&&logger[_0x3145d3(0x10f)](_0x3145d3(0x138)+_0x310917['message']);});}_0x54b368[_0x5ce503(0x13e)](),_0x3b1d3f[_0x5ce503(0x17b)](_0xb180a1,_0x5b6a75);});});});});});}static[a85_0x10eb9a(0x187)](){const _0x1b75bf=a85_0x10eb9a;if(process['env']['BROWSERSTACK_TEST_FRAMEWORK_DETAIL'])return JSON[_0x1b75bf(0x170)](process['env'][_0x1b75bf(0xef)]);return this['testFrameworkDetail'];}static['getAutomationFrameworkDetail'](){const _0x338d2d=a85_0x10eb9a;if(process[_0x338d2d(0xa9)][_0x338d2d(0x16a)])return JSON[_0x338d2d(0x170)](process[_0x338d2d(0xa9)][_0x338d2d(0x16a)]);return this['automationFrameworkDetail'];}static[a85_0x10eb9a(0x15e)](_0x43c534,_0xaaf73f){const _0x57f660=a85_0x10eb9a,_0x2b6c6a={'pIINM':_0x57f660(0x10d),'JOgTm':function(_0x1c5746,_0x560dd2){return _0x1c5746(_0x560dd2);},'BRPUJ':function(_0x38fe71,_0x3f714f){return _0x38fe71||_0x3f714f;}},_0xe78b62=_0x2b6c6a[_0x57f660(0x114)][_0x57f660(0xbc)]('|');let _0x19294a=0x0;while(!![]){switch(_0xe78b62[_0x19294a++]){case'0':process[_0x57f660(0xa9)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON[_0x57f660(0x104)](this[_0x57f660(0x185)]);continue;case'1':this[_0x57f660(0x185)]={'name':_0xaaf73f,'version':_0x2b6c6a[_0x57f660(0x157)](getFrameworkVersion,_0xaaf73f)};continue;case'2':process[_0x57f660(0xa9)][_0x57f660(0xef)]=JSON[_0x57f660(0x104)](this[_0x57f660(0xee)]);continue;case'3':_0x2b6c6a[_0x57f660(0xb1)](!_0x43c534,!_0xaaf73f)&&logger['debug'](_0x57f660(0x109)+_0x43c534+_0x57f660(0xc0)+_0xaaf73f);continue;case'4':this[_0x57f660(0xee)]={'name':_0x43c534,'version':{[_0x43c534]:_0x2b6c6a[_0x57f660(0x157)](getFrameworkVersion,_0x43c534)}};continue;}break;}}static['getHookRegistryKey'](_0x2e644a,_0x2a5c13){return _0x2e644a+':'+_0x2a5c13;}static[a85_0x10eb9a(0x18e)](){const _0x1960e0=a85_0x10eb9a;return process[_0x1960e0(0xc6)]+':'+threadId;}static['shouldSkipSessionName'](_0x10170a){const _0x45cb8f=a85_0x10eb9a;if(_0x10170a[_0x45cb8f(0xd7)]&&_0x10170a[_0x45cb8f(0xd7)][_0x45cb8f(0xaa)])return!![];return![];}static[a85_0x10eb9a(0x165)](_0x5abaf4){const _0x465fb7=a85_0x10eb9a;if(_0x5abaf4[_0x465fb7(0xd7)]&&_0x5abaf4[_0x465fb7(0xd7)][_0x465fb7(0x12e)])return!![];return![];}static[a85_0x10eb9a(0x147)](_0x46398c){const _0x547342=a85_0x10eb9a,_0x19d1b2=new RegExp(TestFrameworkConstants[_0x547342(0x158)]);return _0x19d1b2['test'](_0x46398c);}static[a85_0x10eb9a(0xaf)](_0xa2444f,_0x2dd47e){const _0xa03902=a85_0x10eb9a,_0x250479={};_0x250479[_0xa03902(0x145)]=function(_0x4b6ba8,_0x3203ea){return _0x4b6ba8!==_0x3203ea;},_0x250479['pHGLE']=function(_0xb8ed42,_0x2799bc){return _0xb8ed42===_0x2799bc;},_0x250479[_0xa03902(0xec)]=_0xa03902(0xe2);const _0x3fade7=_0x250479;for(const [_0x21d8d7,_0x7962c7]of Object[_0xa03902(0x118)](_0x2dd47e)){if(_0x3fade7[_0xa03902(0x145)](_0x7962c7,null)&&_0x3fade7[_0xa03902(0x16e)](typeof _0x7962c7,_0x3fade7[_0xa03902(0xec)])&&!Array[_0xa03902(0x15a)](_0x7962c7))_0xa2444f[_0x21d8d7]=this[_0xa03902(0xaf)](_0xa2444f[_0x21d8d7]||{},_0x7962c7);else Array[_0xa03902(0x15a)](_0x7962c7)?_0xa2444f[_0x21d8d7]=(_0xa2444f[_0x21d8d7]||[])['concat'](_0x7962c7):_0xa2444f[_0x21d8d7]=_0x7962c7;}return _0xa2444f;}}module['exports']=CLIUtils;function a85_0x303c(){const _0xd809a0=['VFcmN','1724018sanQSm','rUaSS','gBpKo','../../helpers/test-observability/utils.js','cPCvz','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','data','./instances/testFrameworkInstance.js','../../helpers/utilities','Development\x20Cli\x20Path:\x20','timeout','close','arch','FiDpb','fixXU','gScYQ','oXsnd','UvjOU','BUVaP','Resolved\x20binary\x20path:\x20','matchHookRegex','requestToUpdateCLI','trim','../utils/constants','oyzHk','zvQcu','../../helpers/classLogger.js','pKYDx','end','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','statusCode','QcogJ','getSdkVersion','test','16YXqRll','QrOIF','JOgTm','HOOK_REGEX','150SBttrA','isArray','SxSYI','jNOEq','Resolving\x20with\x20stdout:\x20\x22','setFrameworkDetail','swzkO','yIVsM','fileName','platform','isDevelopmentEnv','createWriteStream','shouldSkipSessionStatus','24070nZtxSL','834993rjEeqn','get','message','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','code','BROWSERSTACK_CLI_ENV','pHGLE','BROWSERSTACK_FILES_DIR','parse','mVBNe','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','MqjvC','ojzDO','basename','CiNaQ','map','fBWRm','616974vUKROz','hPach','KwAOe','dOIpA','nEocF','tayLy','pipe','cli_version','EXDEV','length','debug','pinXK','automationFrameworkDetail','Configuring\x20Cli\x20path.','getTestFrameworkDetail','.tmp.','3557785UYdmNq','ibLhn','util','join','existsSync','getCurrentInstanceName','binary-','Folder\x20does\x20not\x20exist:\x20','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','EtpEq','SDK_CLI_CHECK_UPDATE','start','readEntry','FtyUu','SDK_CLI_DOWNLOAD','readdirSync','lazyEntries','preserveStatusCodeOnError','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','phmmr','SrmIh','format','\x20from\x20','filePath','WIHGX','env','skipSessionName','jTodS','NGJtD','copyFileSync','checkAndUpdateCli','mergeObject','once','BRPUJ','Failed\x20to\x20delete\x20zip\x20file:\x20','CQENm','nLWqx','\x20already\x20exists','HTTP\x20','GET','../../helpers/performance/performance-tester.js','./state/hookState.js','downloadLatestBinary','Amgbz','split','wDDVA','VcZoy','cwd',',\x20automationFramework=','.sock','joMhA','setupCliPath','tmpdir','getSdkLanguage','pid','gJEVO','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','ySIdU','destroy','closeSync','openReadStream','./framework/constants/testFrameworkConstants.js','unix:/tmp/sdk-platform-','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','LgRTo','UZBIM','isDirectory','oDWsA','entry','response\x20','getExistingCliPath','testContextOptions','development','Downloading\x20SDK\x20binary\x20from:\x20','zlgmy','rename','downloadFileStream','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','81596OtWpoA','FjFff','wlSLa','BvWLS','object','jotak','runShellCommand','statSync','svVUb','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','../../helpers/helper','worker_threads','473456BTzCdk','igVdx','liYaK','testFrameworkDetail','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','CLIUtils','mGdLA','DOWNLOAD_HTTP','UIWIJ','yauzl','cOSah','Rtdow','OLMrP','uzjXe','includes','version','getWritableDir','rdUVn','path','openSync','ZyvTF','Error\x20while\x20reading\x20CLI\x20path:\x20','url','iOUUW','Setting\x20required\x20permissions\x20to\x20','stringify','LTAej','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','hCedh','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','PjAUp','IAEop','35LwsdCl','3|4|1|0|2','mvjGP','warn','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','BROWSERSTACK_BINARY_URL','node','jvfQQ','pIINM','FAGRr','smwBt','resume','entries','open','homedir','kQRes','7117vxYjgi','isFile','isBinaryBusy','startsWith','syajh','error','info','\x20version','kadZx','AtiGW','NFoPw','0755','mJgHB','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','./state/testFrameworkState.js','mtime','./state/automationFrameworkState.js','getCLIParamsForDevEnv','skipSessionStatus','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','unlink'];a85_0x303c=function(){return _0xd809a0;};return a85_0x303c();}
|
|
1
|
+
const a85_0x3e77df=a85_0x1ded;function a85_0x5cb7(){const _0xaaf3e3=['IXGaA','closeSync','ypwyq','rename','node','platform','openReadStream','GtbrN','.zip','PwKDi','setupCliPath','rHWyd','ojaEC','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','31877wnNlIV','skipSessionName','Zrvcb','cwd','cli_version','WusZj','DOWNLOAD_HTTP','SHELL_EXECUTE_ERROR','runShellCommand','../../../package.json','parse','requestToUpdateCLI','cli','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','LDzLe','bazEL','basename','cplPW','nYWRq','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','1906340VXHUKB','shouldSkipSessionStatus','\x20version','start','getSdkLanguage','format','OLqie','Configuring\x20Cli\x20path.','isDirectory','startsWith','statusCode','MQaiJ','error','vfVRi','HOOK_REGEX','BROWSERSTACK_FILES_DIR','./state/automationFrameworkState.js',',\x20automationFramework=','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','destroy','GcrbF','automationFrameworkDetail','../../helpers/test-observability/utils.js','.browserstack','Xefxg','pipe','UGuTe','YGEkj','readdirSync','existsSync','NleHg','getAutomationFrameworkDetail','Pwpbi','../../helpers/utilities','Cohlw','../../helpers/classLogger.js','getSdkVersion','BROWSERSTACK_BINARY_URL','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','.tmp.','object','hLkku','Development\x20Cli\x20Path:\x20','SVoLe','VMtjk','version','sReZA','28554PlZbZc','debug','upeZa','split','JqWzp','../../helpers/helper','wkrrI','getExistingCliPath','fcwKB','getWritableDir','./instances/testFrameworkInstance.js','warn','wRBjA','./framework/constants/testFrameworkConstants.js','iYjzq','946818uqPWoE','AtoOz','NcpIu','util','SDK_CLI_DOWNLOAD','get','shouldSkipSessionName','LNJSS','unlink','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','downloadFileStream','code','../utils/apiUtilityMethods.js','10302648kDCNFC','0|2|3|4|1','ZtUMu','BROWSERSTACK_CLI_ENV','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','tWbIE','EUTIe','EXDEV','jsYlP','GMOQG','267986TXWzTO','ISnXZ','url','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','createWriteStream','pid','yauzl','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','getTestFrameworkDetail','QAepV','pbbSE','Setting\x20required\x20permissions\x20to\x20','aLjZN','end','kcBQM','statSync','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','IiYtW','PdOcp','testFrameworkDetail','mRjcF','qscSd','mGUsT','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','timeout','follow-redirects','downloadLatestBinary','message','230VJUcOL','reduce','Failed\x20to\x20delete\x20zip\x20file:\x20','data','listen','matchHookRegex','worker_threads','fileName','homedir','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','veRRd','exports','tugZr','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','openSync','env','testContextOptions','CLIUtils','gTBmd','GDPmY','concat','filePath','Resolving\x20with\x20stdout:\x20\x22','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','isBinaryBusy','ABxhh','LLpwu','SDK_CLI_CHECK_UPDATE','readEntry','trim','arch','\x20from\x20','entry','YPwPY','lazyEntries','stringify','join','downloaded_file_','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','.sock','hJRka','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','./state/testFrameworkState.js','kDIfm','isArray','map','gjmmh','info','Hjfcw','test','length','binary-','getCliDir','jvGYK','HdRKJ','getHookRegistryKey','plbMs','HVUUV','copyFileSync','jAAsO','eXyXM','open','1140566NfqjpY','Error\x20while\x20reading\x20CLI\x20path:\x20','../utils/constants','mtime','includes','mergeObject','entries','close'];a85_0x5cb7=function(){return _0xaaf3e3;};return a85_0x5cb7();}function a85_0x1ded(_0x52ac5c,_0x560755){const _0x5cb787=a85_0x5cb7();return a85_0x1ded=function(_0x1deddb,_0x5f2e95){_0x1deddb=_0x1deddb-0x123;let _0x388291=_0x5cb787[_0x1deddb];return _0x388291;},a85_0x1ded(_0x52ac5c,_0x560755);}(function(_0xa387a2,_0x553d48){const _0x165cf7=a85_0x1ded,_0x32e35e=_0xa387a2();while(!![]){try{const _0x1f4e71=-parseInt(_0x165cf7(0x1e5))/0x1+-parseInt(_0x165cf7(0x174))/0x2+-parseInt(_0x165cf7(0x15d))/0x3+-parseInt(_0x165cf7(0x1fa))/0x4+-parseInt(_0x165cf7(0x190))/0x5*(parseInt(_0x165cf7(0x14e))/0x6)+parseInt(_0x165cf7(0x1cf))/0x7+parseInt(_0x165cf7(0x16a))/0x8;if(_0x1f4e71===_0x553d48)break;else _0x32e35e['push'](_0x32e35e['shift']());}catch(_0x6f198c){_0x32e35e['push'](_0x32e35e['shift']());}}}(a85_0x5cb7,0x42d82));const fs=require('fs'),os=require('os'),url=require(a85_0x3e77df(0x176)),path=require('path'),{exec}=require('child_process'),{https}=require(a85_0x3e77df(0x18d)),yauzl=require(a85_0x3e77df(0x17a)),util=require(a85_0x3e77df(0x160)),{getFrameworkVersion}=require(a85_0x3e77df(0x135)),{threadId}=require(a85_0x3e77df(0x196)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x3e77df(0x140)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x3e77df(0x153)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x3e77df(0x1d1)),{createClassLogger}=require(a85_0x3e77df(0x142)),TestFrameworkInstance=require(a85_0x3e77df(0x158)),HookState=require('./state/hookState.js'),TestFrameworkState=require(a85_0x3e77df(0x1bb)),AutomationFrameworkState=require(a85_0x3e77df(0x12f)),TestFrameworkConstants=require(a85_0x3e77df(0x15b)),logger=createClassLogger(a85_0x3e77df(0x1a2)),{getBStackAPIUrl}=require(a85_0x3e77df(0x169));class CLIUtils{['automationFrameworkDetail']={};[a85_0x3e77df(0x187)]={};static['isDevelopmentEnv'](){const _0x1264cf=a85_0x3e77df,_0x4dab96={};_0x4dab96[_0x1264cf(0x156)]=function(_0x3f2778,_0xff1e57){return _0x3f2778===_0xff1e57;},_0x4dab96[_0x1264cf(0x1b2)]='development';const _0xbbe29d=_0x4dab96;return _0xbbe29d[_0x1264cf(0x156)](process[_0x1264cf(0x1a0)][_0x1264cf(0x16d)],_0xbbe29d[_0x1264cf(0x1b2)]);}static['getCLIParamsForDevEnv'](){const _0xf529c9=a85_0x3e77df,_0x3e1a12={};return _0x3e1a12['id']=process[_0xf529c9(0x1a0)]['BROWSERSTACK_CLI_ENV'],_0x3e1a12[_0xf529c9(0x194)]='unix:/tmp/sdk-platform-'+process[_0xf529c9(0x1a0)][_0xf529c9(0x16d)]+_0xf529c9(0x1b8),_0x3e1a12;}static['getSdkVersion'](){const _0x20e12e=a85_0x3e77df,_0x33a3c3={'wkrrI':function(_0x8f5e66,_0x21c333){return _0x8f5e66(_0x21c333);},'GMOQG':_0x20e12e(0x1ee)};return _0x33a3c3[_0x20e12e(0x154)](require,_0x33a3c3[_0x20e12e(0x173)])['version'];}static[a85_0x3e77df(0x123)](){const _0x524b77=a85_0x3e77df,_0x92075b={};_0x92075b['AtoOz']=_0x524b77(0x1db);const _0x6d08f5=_0x92075b;return _0x6d08f5[_0x524b77(0x15e)];}static async[a85_0x3e77df(0x1e1)](_0x59715a){const _0x5db647=a85_0x3e77df,_0x294003={'jvGYK':_0x5db647(0x126),'wyXkM':function(_0x14b9b5,_0x2ccb5b){return _0x14b9b5(_0x2ccb5b);},'qptpv':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x5db647(0x14f)](_0x294003[_0x5db647(0x1c6)]);const _0x3b958f=process['env']['SDK_CLI_BIN_PATH'];if(!_0x294003['wyXkM'](isNullOrEmpty,_0x3b958f))return logger['debug'](_0x5db647(0x149)+_0x3b958f),_0x3b958f;try{const _0x5925d4=this['getCliDir']();if(_0x294003['wyXkM'](isNullOrEmpty,_0x5925d4))throw new Error(_0x294003['qptpv']);const _0x4d6216=this[_0x5db647(0x155)](_0x5925d4),_0x446fdb=await this['checkAndUpdateCli'](_0x4d6216,_0x5925d4,_0x59715a);return logger[_0x5db647(0x14f)]('Resolved\x20binary\x20path:\x20'+_0x446fdb),_0x446fdb;}catch(_0x33b680){logger[_0x5db647(0x14f)](_0x5db647(0x18b)+util[_0x5db647(0x124)](_0x33b680));}return null;}static async['checkAndUpdateCli'](_0x5034ac,_0x4f0784,_0x4a858a){const _0x1ecb0d=a85_0x3e77df,_0x58b4df={'WusZj':function(_0x483db0){return _0x483db0();},'plbMs':function(_0x193249,_0x244670){return _0x193249(_0x244670);},'ojaEC':function(_0x1d58d6,_0x2e183e,_0x556fa9){return _0x1d58d6(_0x2e183e,_0x556fa9);},'LNJSS':_0x1ecb0d(0x193),'Xefxg':_0x1ecb0d(0x176),'CCgFt':function(_0x380f00,_0x55a666){return _0x380f00(_0x55a666);}};PerformanceTester[_0x1ecb0d(0x1fd)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);try{logger[_0x1ecb0d(0x1c0)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x5034ac);const _0x1c5066=_0x58b4df[_0x1ecb0d(0x1ea)](getHostInfo),_0x42352b={'sdk_version':CLIUtils[_0x1ecb0d(0x143)](),'os':_0x1c5066[_0x1ecb0d(0x1dc)],'os_arch':_0x1c5066[_0x1ecb0d(0x1af)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x58b4df[_0x1ecb0d(0x1c9)](isNullOrEmpty,_0x5034ac)&&(_0x42352b['cli_version']=await this[_0x1ecb0d(0x1ed)](_0x5034ac+_0x1ecb0d(0x1fc)));const _0x43e858=await this[_0x1ecb0d(0x1f0)](_0x42352b,_0x4a858a);process[_0x1ecb0d(0x1a0)][_0x1ecb0d(0x144)]&&(logger['info'](_0x1ecb0d(0x19e)+process[_0x1ecb0d(0x1a0)]['BROWSERSTACK_BINARY_URL']),_0x43e858['data']['url']=process[_0x1ecb0d(0x1a0)]['BROWSERSTACK_BINARY_URL']);if(_0x58b4df[_0x1ecb0d(0x1e3)](nestedKeyValue,_0x43e858,[_0x58b4df[_0x1ecb0d(0x164)],_0x58b4df[_0x1ecb0d(0x137)]])){logger[_0x1ecb0d(0x14f)]('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x42352b[_0x1ecb0d(0x1e9)]);if(!_0x58b4df['CCgFt'](isNullOrEmpty,_0x5034ac)&&this[_0x1ecb0d(0x1a9)](_0x5034ac))return logger[_0x1ecb0d(0x159)](_0x1ecb0d(0x177)+_0x5034ac),_0x5034ac;return await this[_0x1ecb0d(0x18e)](_0x58b4df[_0x1ecb0d(0x1e3)](nestedKeyValue,_0x43e858,[_0x58b4df[_0x1ecb0d(0x164)],_0x58b4df[_0x1ecb0d(0x137)]]),_0x4f0784);}return _0x5034ac;}finally{PerformanceTester[_0x1ecb0d(0x181)](PerformanceEvents[_0x1ecb0d(0x1ac)]);}}static[a85_0x3e77df(0x1c5)](){const _0x162769=a85_0x3e77df,_0x51e42e={'ISnXZ':function(_0x4d38e3,_0x1ed7d7){return _0x4d38e3(_0x1ed7d7);},'RVzfy':_0x162769(0x1f2),'hLkku':_0x162769(0x1f1)},_0x143ea9=this[_0x162769(0x157)]();try{if(_0x51e42e[_0x162769(0x175)](isNullOrEmpty,_0x143ea9))throw new Error(_0x51e42e['RVzfy']);const _0x20ed20=path[_0x162769(0x1b5)](_0x143ea9,_0x51e42e[_0x162769(0x148)]);return!fs['existsSync'](_0x20ed20)&&_0x51e42e[_0x162769(0x175)](createDir,_0x20ed20),_0x20ed20;}catch(_0x6af1a){logger[_0x162769(0x14f)](_0x162769(0x1f9)+util[_0x162769(0x124)](_0x6af1a));}}static[a85_0x3e77df(0x157)](){const _0x40314b=a85_0x3e77df,_0xb55727={'HdRKJ':_0x40314b(0x136),'JqWzp':function(_0x36602e,_0x3a2029){return _0x36602e(_0x3a2029);},'LLpwu':function(_0x4c82cd,_0x1005db){return _0x4c82cd(_0x1005db);},'NleHg':function(_0x46a6c0,_0x327133){return _0x46a6c0(_0x327133);}},_0x3bb2b8=[process['env'][_0x40314b(0x12e)],path['join'](os[_0x40314b(0x198)](),_0xb55727[_0x40314b(0x1c7)]),path[_0x40314b(0x1b5)](os['tmpdir'](),_0xb55727[_0x40314b(0x1c7)])];for(const _0x2de59b of _0x3bb2b8){if(_0xb55727[_0x40314b(0x152)](isNullOrEmpty,_0x2de59b))continue;try{if(fs[_0x40314b(0x13c)](_0x2de59b)){logger[_0x40314b(0x14f)]('Folder\x20'+_0x2de59b+'\x20already\x20exists');if(!_0xb55727[_0x40314b(0x1ab)](isModifiable,_0x2de59b)){logger['debug']('Setting\x20required\x20permissions\x20to\x20'+_0x2de59b);const _0x2c97f4=_0xb55727[_0x40314b(0x1ab)](setReadWriteExecuteAccess,_0x2de59b);if(!_0xb55727[_0x40314b(0x1ab)](isTrue,_0x2c97f4)){logger[_0x40314b(0x159)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x2de59b);continue;}}}else{logger['debug']('Folder\x20does\x20not\x20exist:\x20'+_0x2de59b),_0xb55727['JqWzp'](createDir,_0x2de59b),logger[_0x40314b(0x14f)](_0x40314b(0x17f)+_0x2de59b);const _0x3f4aea=_0xb55727[_0x40314b(0x13d)](setReadWriteExecuteAccess,_0x2de59b);!_0xb55727['JqWzp'](isTrue,_0x3f4aea)&&logger[_0x40314b(0x159)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x2de59b);}return _0x2de59b;}catch(_0x675de5){logger[_0x40314b(0x12b)](_0x40314b(0x1f8)+util[_0x40314b(0x124)](_0x675de5));}}return null;}static['getExistingCliPath'](_0x3c31f0){const _0x121f9a=a85_0x3e77df,_0x518f34={};_0x518f34[_0x121f9a(0x172)]=function(_0x1ec2a1,_0x22ab71){return _0x1ec2a1>_0x22ab71;},_0x518f34[_0x121f9a(0x180)]=function(_0x5e5a5d,_0x3f4a64){return _0x5e5a5d>_0x3f4a64;};const _0x45c0c1=_0x518f34;try{if(!fs['existsSync'](_0x3c31f0)||!fs[_0x121f9a(0x183)](_0x3c31f0)[_0x121f9a(0x127)]())return'';const _0x2a7bc2=fs[_0x121f9a(0x13b)](_0x3c31f0)[_0x121f9a(0x1be)](_0x5ea158=>path[_0x121f9a(0x1b5)](_0x3c31f0,_0x5ea158))['filter'](_0x46866b=>fs[_0x121f9a(0x183)](_0x46866b)['isFile']()&&path[_0x121f9a(0x1f5)](_0x46866b)[_0x121f9a(0x128)](_0x121f9a(0x1c4)));if(_0x45c0c1[_0x121f9a(0x180)](_0x2a7bc2[_0x121f9a(0x1c3)],0x0)){const _0x28c5bd=_0x2a7bc2[_0x121f9a(0x1be)](_0x4f6449=>({'filePath':_0x4f6449,'mtime':fs[_0x121f9a(0x183)](_0x4f6449)[_0x121f9a(0x1d2)]}))[_0x121f9a(0x191)]((_0x10f29b,_0x12995)=>{const _0xacb5b8=_0x121f9a;if(!_0x10f29b||!_0x10f29b[_0xacb5b8(0x1d2)])return _0x12995;if(_0x45c0c1[_0xacb5b8(0x172)](_0x12995[_0xacb5b8(0x1d2)],_0x10f29b[_0xacb5b8(0x1d2)]))return _0x12995;return _0x10f29b;},{});return _0x28c5bd?_0x28c5bd[_0x121f9a(0x1a6)]:'';}return'';}catch(_0x379953){return logger[_0x121f9a(0x12b)](_0x121f9a(0x1d0)+util[_0x121f9a(0x124)](_0x379953)),'';}}static ['requestToUpdateCLI']=async(_0xf2692f,_0x470f4e)=>{const _0xa74fa8=a85_0x3e77df,_0x344995={'tPlns':function(_0x1685a4,_0x2918fa,_0x505c8d,_0x142a87,_0xeb9fd1){return _0x1685a4(_0x2918fa,_0x505c8d,_0x142a87,_0xeb9fd1);},'ABxhh':'GET'},_0x1aa112={};_0x1aa112['qs']=_0xf2692f,_0x1aa112['preserveStatusCodeOnError']=!![];const _0x243ed5=await _0x344995['tPlns'](nodeRequest,_0x344995[_0xa74fa8(0x1aa)],UPDATED_CLI_ENDPOINT,_0x1aa112,_0x470f4e);return logger[_0xa74fa8(0x14f)]('response\x20'+JSON[_0xa74fa8(0x1b4)](_0x243ed5)),_0x243ed5;};static[a85_0x3e77df(0x1a9)](_0x24cbae){const _0x33f29a=a85_0x3e77df;try{const _0x333442=fs[_0x33f29a(0x19f)](_0x24cbae,'r+');return fs[_0x33f29a(0x1d8)](_0x333442),![];}catch(_0x589300){if(BINARY_BUSY_ERROR_CODES['includes'](_0x589300[_0x33f29a(0x168)]))return logger['debug']('Binary\x20is\x20busy:\x20'+_0x24cbae),!![];return logger[_0x33f29a(0x14f)](_0x33f29a(0x1a8)+_0x589300[_0x33f29a(0x18f)]),![];}}static[a85_0x3e77df(0x1ed)](_0x10dc79,_0x14453b=''){const _0x52837f=a85_0x3e77df,_0x5cc966={'upeZa':function(_0xfc4fc2,_0x10bcee){return _0xfc4fc2(_0x10bcee);},'sReZA':_0x52837f(0x1ec),'UMPfF':_0x52837f(0x14c),'wRBjA':function(_0x33b923,_0x21d32b,_0x14abd0,_0x3d829f){return _0x33b923(_0x21d32b,_0x14abd0,_0x3d829f);},'gTBmd':_0x52837f(0x12b)};return new Promise((_0x2b032c,_0x1dd213)=>{const _0x205f69=_0x52837f,_0x18c7b5={'qscSd':_0x5cc966['UMPfF'],'tugZr':function(_0x3427df,_0x508306){const _0x24145f=a85_0x1ded;return _0x5cc966[_0x24145f(0x150)](_0x3427df,_0x508306);},'mGUsT':function(_0x44390e,_0x4b7476){const _0x321da3=a85_0x1ded;return _0x5cc966[_0x321da3(0x150)](_0x44390e,_0x4b7476);},'hJRka':_0x5cc966[_0x205f69(0x14d)]},_0x4ea389={};_0x4ea389[_0x205f69(0x1e8)]=_0x14453b,_0x4ea389[_0x205f69(0x18c)]=0x1388;const _0x52e65c=_0x5cc966[_0x205f69(0x15a)](exec,_0x10dc79,_0x4ea389,(_0xe3ed9f,_0xf9ac9a,_0x2fc49d)=>{const _0x5a24b3=_0x205f69;if(_0xe3ed9f){if(_0x10dc79[_0x5a24b3(0x1d3)](_0x18c7b5[_0x5a24b3(0x189)])&&(_0xf9ac9a['trim']()||_0x2fc49d[_0x5a24b3(0x1ae)]())){const _0x97959c=_0xf9ac9a[_0x5a24b3(0x1ae)]()||_0x2fc49d[_0x5a24b3(0x1ae)]();logger[_0x5a24b3(0x14f)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x97959c+'\x22'),_0x18c7b5[_0x5a24b3(0x19d)](_0x2b032c,_0x97959c);}else _0x18c7b5['mGUsT'](_0x2b032c,_0x2fc49d['trim']()||_0x18c7b5[_0x5a24b3(0x1b9)]);}else logger[_0x5a24b3(0x14f)](_0x5a24b3(0x1a7)+_0xf9ac9a['trim']()+'\x22'),_0x18c7b5[_0x5a24b3(0x18a)](_0x2b032c,_0xf9ac9a[_0x5a24b3(0x1ae)]());});_0x52e65c['on'](_0x5cc966[_0x205f69(0x1a3)],()=>{const _0x4840dc=_0x205f69;_0x5cc966['upeZa'](_0x2b032c,_0x5cc966[_0x4840dc(0x14d)]);});});}static [a85_0x3e77df(0x18e)]=async(_0x4e5c04,_0x7c4cbd)=>{const _0x257dd8=a85_0x3e77df,_0x393ffb={'ZtUMu':function(_0x4776f1,_0x566c1d){return _0x4776f1(_0x566c1d);},'jAAsO':function(_0x39c07c,_0x5eb055){return _0x39c07c>=_0x5eb055;},'VRKtU':_0x257dd8(0x1eb),'NcpIu':_0x257dd8(0x17b),'rHWyd':_0x257dd8(0x12b),'eohWd':_0x257dd8(0x1b7),'PwKDi':_0x257dd8(0x131),'VMtjk':_0x257dd8(0x16e)};PerformanceTester[_0x257dd8(0x1fd)](PerformanceEvents[_0x257dd8(0x161)]),logger[_0x257dd8(0x14f)]('Downloading\x20SDK\x20binary\x20from:\x20'+_0x4e5c04);try{const _0x3ccad9=url[_0x257dd8(0x1ef)](_0x4e5c04),_0x57b2ad=path['join'](_0x7c4cbd,_0x257dd8(0x1b6)+process[_0x257dd8(0x179)]+_0x257dd8(0x1df)),_0x15c606=fs[_0x257dd8(0x178)](_0x57b2ad);return new Promise((_0xdade9f,_0x317b3c)=>{const _0x53d54f=_0x257dd8,_0x144306={'kcBQM':_0x393ffb['eohWd'],'IXGaA':function(_0x56c372,_0x18c3fa){return _0x393ffb['ZtUMu'](_0x56c372,_0x18c3fa);},'ZRdKz':_0x393ffb[_0x53d54f(0x1e0)]};https[_0x53d54f(0x162)](_0x3ccad9,function(_0x404941){const _0x2b151a=_0x53d54f,_0x175b20={'IiYtW':function(_0x1b977e,_0x130554){return _0x393ffb['ZtUMu'](_0x1b977e,_0x130554);}},_0x1a1f87=null;if(_0x404941[_0x2b151a(0x129)]&&_0x393ffb[_0x2b151a(0x1cc)](_0x404941[_0x2b151a(0x129)],0x190)){const _0x3ce188=new Error(_0x2b151a(0x184)+_0x404941[_0x2b151a(0x129)]+_0x2b151a(0x1b0)+_0x4e5c04);_0x3ce188[_0x2b151a(0x168)]=_0x393ffb['VRKtU'],_0x3ce188[_0x2b151a(0x129)]=_0x404941[_0x2b151a(0x129)],logger[_0x2b151a(0x12b)](util[_0x2b151a(0x124)](_0x393ffb[_0x2b151a(0x15f)],_0x404941[_0x2b151a(0x129)])),PerformanceTester[_0x2b151a(0x181)](PerformanceEvents[_0x2b151a(0x161)],![],'HTTP\x20'+_0x404941[_0x2b151a(0x129)]),_0x404941['resume'](),_0x15c606[_0x2b151a(0x132)](),fs[_0x2b151a(0x165)](_0x57b2ad,()=>{}),_0x393ffb['ZtUMu'](_0x317b3c,_0x3ce188);return;}_0x404941['pipe'](_0x15c606),_0x404941['on'](_0x393ffb[_0x2b151a(0x1e2)],function(_0x3f2114){const _0x10236f=_0x2b151a;logger[_0x10236f(0x12b)](util[_0x10236f(0x124)](_0x144306[_0x10236f(0x182)],_0x3f2114)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x10236f(0x124)](_0x3f2114)),_0x144306[_0x10236f(0x1d7)](_0x317b3c,_0x3f2114);}),_0x15c606['on'](_0x393ffb['rHWyd'],function(_0x6a7280){const _0xa38959=_0x2b151a;logger[_0xa38959(0x12b)](util[_0xa38959(0x124)](_0x144306['ZRdKz'],_0x6a7280)),PerformanceTester[_0xa38959(0x181)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0xa38959(0x124)](_0x6a7280)),_0x144306[_0xa38959(0x1d7)](_0x317b3c,_0x6a7280);}),CLIUtils['downloadFileStream'](_0x15c606,_0x1a1f87,_0x57b2ad,_0x7c4cbd,_0x5d61b5=>{const _0x1dc1cb=_0x2b151a;PerformanceTester[_0x1dc1cb(0x181)](PerformanceEvents[_0x1dc1cb(0x161)]),_0x144306[_0x1dc1cb(0x1d7)](_0xdade9f,_0x5d61b5);},_0x1bd064=>{const _0x13f8b6=_0x2b151a;PerformanceTester[_0x13f8b6(0x181)](PerformanceEvents[_0x13f8b6(0x161)],![],util[_0x13f8b6(0x124)](_0x1bd064)),_0x175b20[_0x13f8b6(0x185)](_0x317b3c,_0x1bd064);});})['on'](_0x393ffb['rHWyd'],function(_0x5eeadf){const _0x888542=_0x53d54f;logger[_0x888542(0x12b)](_0x888542(0x199)+util[_0x888542(0x124)](_0x5eeadf)),PerformanceTester[_0x888542(0x181)](PerformanceEvents[_0x888542(0x161)],![],util['format'](_0x5eeadf)),_0x393ffb[_0x888542(0x16c)](_0x317b3c,_0x5eeadf);});});}catch(_0x35d8d5){PerformanceTester[_0x257dd8(0x181)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x257dd8(0x124)](_0x35d8d5)),logger[_0x257dd8(0x12b)](util[_0x257dd8(0x124)](_0x393ffb[_0x257dd8(0x14b)],_0x35d8d5));throw _0x35d8d5;}};static[a85_0x3e77df(0x167)](_0x4a9763,_0x12d74e,_0x494214,_0x164637,_0x3823a6,_0x27204b){const _0x167145=a85_0x3e77df,_0x50bf0d={'UNWPy':function(_0x2192c5,_0x55a6cc){return _0x2192c5!==_0x55a6cc;},'SVoLe':function(_0x29b4a5,_0x40c203){return _0x29b4a5(_0x40c203);},'bazEL':_0x167145(0x12b),'EDjki':_0x167145(0x1d6),'Zrvcb':'end','pZIjR':function(_0x5091bd,_0x1c2800){return _0x5091bd!==_0x1c2800;},'RbuFI':_0x167145(0x171),'eXyXM':'0755','sYmIj':_0x167145(0x1b1)};_0x4a9763['on'](_0x50bf0d['EDjki'],function(){const _0x3a8519=_0x167145,_0x316e2f={'VogTT':function(_0x186f79,_0x13fdcc){return _0x50bf0d['UNWPy'](_0x186f79,_0x13fdcc);},'ypwyq':function(_0x1ee6a3,_0xca98db){const _0x17a256=a85_0x1ded;return _0x50bf0d[_0x17a256(0x14a)](_0x1ee6a3,_0xca98db);},'nYWRq':_0x50bf0d[_0x3a8519(0x1f4)],'PdOcp':function(_0x2e55ff,_0x220d8c){const _0x37823b=_0x3a8519;return _0x50bf0d[_0x37823b(0x14a)](_0x2e55ff,_0x220d8c);},'Pwpbi':function(_0x334522,_0x41ca2e){const _0x2f300b=_0x3a8519;return _0x50bf0d[_0x2f300b(0x14a)](_0x334522,_0x41ca2e);},'UGuTe':_0x50bf0d['EDjki'],'GtbrN':_0x50bf0d[_0x3a8519(0x1e7)],'rYGZj':function(_0x5dd184,_0x3e5a5d){return _0x50bf0d['pZIjR'](_0x5dd184,_0x3e5a5d);},'kDIfm':_0x50bf0d['RbuFI'],'Cohlw':_0x50bf0d[_0x3a8519(0x1cd)],'vfVRi':function(_0x4639ec,_0x39133a){return _0x50bf0d['SVoLe'](_0x4639ec,_0x39133a);},'MQaiJ':_0x50bf0d['sYmIj']},_0x5f37f3={};_0x5f37f3[_0x3a8519(0x1b3)]=!![],yauzl[_0x3a8519(0x1ce)](_0x494214,_0x5f37f3,function(_0x468523,_0xcd6242){const _0xbc7840=_0x3a8519,_0x27bdc0={'mRjcF':function(_0x2c6050,_0x5dba93){const _0x5ac4cf=a85_0x1ded;return _0x316e2f[_0x5ac4cf(0x1d9)](_0x2c6050,_0x5dba93);},'irpuV':function(_0x2a5bf9,_0x3b8b3b){const _0x242c69=a85_0x1ded;return _0x316e2f[_0x242c69(0x13f)](_0x2a5bf9,_0x3b8b3b);},'QAepV':_0x316e2f[_0xbc7840(0x139)],'YGEkj':_0x316e2f[_0xbc7840(0x1de)],'pbbSE':function(_0x11590b,_0x48e494){return _0x316e2f['rYGZj'](_0x11590b,_0x48e494);},'GDPmY':_0x316e2f[_0xbc7840(0x1bc)],'ujTmP':function(_0x497260,_0x5130dc){return _0x316e2f['PdOcp'](_0x497260,_0x5130dc);},'LDzLe':_0x316e2f[_0xbc7840(0x141)]};if(_0x468523){_0x316e2f[_0xbc7840(0x12c)](_0x27204b,_0x468523);return;}_0xcd6242[_0xbc7840(0x1ad)](),_0xcd6242['on'](_0x316e2f[_0xbc7840(0x12a)],_0x39727f=>{const _0x55f5f4=_0xbc7840;if(/\/$/[_0x55f5f4(0x1c2)](_0x39727f[_0x55f5f4(0x197)])){_0xcd6242['readEntry']();return;}!_0x12d74e&&(_0x12d74e=_0x39727f[_0x55f5f4(0x197)]);if(_0x316e2f['VogTT'](_0x39727f[_0x55f5f4(0x197)],_0x12d74e))_0xcd6242[_0x55f5f4(0x1ad)]();else{const _0x2a4874=_0x39727f[_0x55f5f4(0x197)],_0x34ed5b=path['join'](_0x164637,_0x2a4874+_0x55f5f4(0x146)+process[_0x55f5f4(0x179)]);let _0xc35ced;try{_0xc35ced=fs[_0x55f5f4(0x178)](_0x34ed5b);}catch(_0x3136ad){if(BINARY_BUSY_ERROR_CODES['includes'](_0x3136ad[_0x55f5f4(0x168)])){const _0x48cdbc=path['join'](_0x164637,_0x2a4874);if(fs[_0x55f5f4(0x13c)](_0x48cdbc)){logger[_0x55f5f4(0x159)]('Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x2a4874),fs['unlink'](_0x494214,_0x314781=>{const _0x33a300=_0x55f5f4;_0x314781&&logger[_0x33a300(0x159)](_0x33a300(0x192)+_0x494214);}),_0x316e2f[_0x55f5f4(0x1d9)](_0x3823a6,_0x48cdbc);return;}logger[_0x55f5f4(0x159)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x2a4874);}_0x316e2f[_0x55f5f4(0x1d9)](_0x27204b,_0x3136ad);return;}_0xc35ced['on'](_0x316e2f[_0x55f5f4(0x1f7)],_0x4a68ca=>{const _0x27db7e=_0x55f5f4;if(BINARY_BUSY_ERROR_CODES['includes'](_0x4a68ca[_0x27db7e(0x168)])){const _0x19aff5=path[_0x27db7e(0x1b5)](_0x164637,_0x2a4874);_0xc35ced[_0x27db7e(0x1d6)](),fs[_0x27db7e(0x13c)](_0x19aff5)?(logger[_0x27db7e(0x159)]('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x4a68ca[_0x27db7e(0x18f)]),_0xcd6242['close'](),fs[_0x27db7e(0x165)](_0x494214,_0x592f2d=>{const _0x3ebdd2=_0x27db7e;_0x592f2d&&logger['warn'](_0x3ebdd2(0x192)+_0x494214);}),_0x27bdc0[_0x27db7e(0x188)](_0x3823a6,_0x19aff5)):(logger['warn'](_0x27db7e(0x1e4)+_0x4a68ca[_0x27db7e(0x18f)]),fs[_0x27db7e(0x165)](_0x34ed5b,()=>{}),_0x27bdc0['irpuV'](_0x27204b,_0x4a68ca));}else fs['unlink'](_0x34ed5b,()=>{}),_0x27bdc0[_0x27db7e(0x188)](_0x27204b,_0x4a68ca);}),_0xcd6242[_0x55f5f4(0x1dd)](_0x39727f,function(_0x5936fc,_0x3fe27d){const _0x532b73=_0x55f5f4,_0x13b3b2={};_0x13b3b2[_0x532b73(0x133)]=_0x27bdc0[_0x532b73(0x17d)];const _0x18a60e=_0x13b3b2;if(_0x5936fc){fs[_0x532b73(0x165)](_0x34ed5b,()=>{}),_0x27bdc0[_0x532b73(0x188)](_0x27204b,_0x5936fc);return;}_0x3fe27d['on'](_0x27bdc0[_0x532b73(0x13a)],function(){const _0x5e5f5d=_0x532b73;_0xc35ced[_0x5e5f5d(0x181)](),_0xc35ced['on'](_0x18a60e[_0x5e5f5d(0x133)],function(){const _0x4fbad9=_0x5e5f5d;_0xcd6242[_0x4fbad9(0x1ad)]();});}),_0x3fe27d[_0x532b73(0x138)](_0xc35ced);});}}),_0xcd6242['on'](_0x316e2f[_0xbc7840(0x1f7)],_0x477042=>{const _0x29a9d7=_0xbc7840;_0x316e2f[_0x29a9d7(0x186)](_0x27204b,_0x477042);}),_0xcd6242['once'](_0x316e2f[_0xbc7840(0x1de)],()=>{const _0x2c4d63=_0xbc7840,_0x5248dc={'HVUUV':function(_0x3ad4fb,_0x4f18cc){const _0x57084a=a85_0x1ded;return _0x27bdc0[_0x57084a(0x17e)](_0x3ad4fb,_0x4f18cc);},'cplPW':_0x27bdc0[_0x2c4d63(0x1a4)],'dDuGB':function(_0x3e4d91,_0x30cca2){return _0x27bdc0['irpuV'](_0x3e4d91,_0x30cca2);},'iYjzq':function(_0x4b26eb,_0x7dd553){const _0x355143=_0x2c4d63;return _0x27bdc0[_0x355143(0x188)](_0x4b26eb,_0x7dd553);},'veRRd':function(_0xe66e87,_0x52dc18){return _0x27bdc0['ujTmP'](_0xe66e87,_0x52dc18);}};fs[_0x2c4d63(0x165)](_0x494214,_0x44245f=>{const _0x50bb57=_0x2c4d63;_0x44245f&&logger[_0x50bb57(0x159)](_0x50bb57(0x192)+_0x494214);});const _0x550947=path[_0x2c4d63(0x1b5)](_0x164637,_0x12d74e+'.tmp.'+process[_0x2c4d63(0x179)]),_0xc98083=path[_0x2c4d63(0x1b5)](_0x164637,_0x12d74e);fs['chmod'](_0x550947,_0x27bdc0[_0x2c4d63(0x1f3)],function(_0x365255){const _0x537fea=_0x2c4d63;if(_0x365255){_0xcd6242[_0x537fea(0x1d6)](),fs[_0x537fea(0x165)](_0x550947,()=>{}),_0x27bdc0[_0x537fea(0x188)](_0x27204b,_0x365255);return;}fs[_0x537fea(0x1da)](_0x550947,_0xc98083,function(_0x1fe2ee){const _0x4e1dd9=_0x537fea;if(_0x1fe2ee){if(_0x5248dc[_0x4e1dd9(0x1ca)](_0x1fe2ee[_0x4e1dd9(0x168)],_0x5248dc[_0x4e1dd9(0x1f6)])){_0xcd6242[_0x4e1dd9(0x1d6)](),fs[_0x4e1dd9(0x165)](_0x550947,()=>{}),_0x5248dc['dDuGB'](_0x27204b,_0x1fe2ee);return;}logger['warn']('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x1fe2ee[_0x4e1dd9(0x18f)]);try{fs[_0x4e1dd9(0x1cb)](_0x550947,_0xc98083);}catch(_0xef844){_0xcd6242[_0x4e1dd9(0x1d6)](),fs[_0x4e1dd9(0x165)](_0x550947,()=>{}),_0x5248dc[_0x4e1dd9(0x15c)](_0x27204b,_0xef844);return;}fs['unlink'](_0x550947,_0x81757b=>{const _0x3ed171=_0x4e1dd9;_0x81757b&&logger[_0x3ed171(0x159)](_0x3ed171(0x145)+_0x81757b[_0x3ed171(0x18f)]);});}_0xcd6242['close'](),_0x5248dc[_0x4e1dd9(0x19b)](_0x3823a6,_0xc98083);});});});});});}static[a85_0x3e77df(0x17c)](){const _0x2a8064=a85_0x3e77df;if(process[_0x2a8064(0x1a0)][_0x2a8064(0x1ba)])return JSON['parse'](process[_0x2a8064(0x1a0)][_0x2a8064(0x1ba)]);return this[_0x2a8064(0x187)];}static[a85_0x3e77df(0x13e)](){const _0x51179d=a85_0x3e77df;if(process[_0x51179d(0x1a0)][_0x51179d(0x19a)])return JSON[_0x51179d(0x1ef)](process[_0x51179d(0x1a0)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this['automationFrameworkDetail'];}static['setFrameworkDetail'](_0x3d916d,_0x2647a7){const _0x524c7f=a85_0x3e77df,_0x3bf7e6={'lYZGL':_0x524c7f(0x16b),'gjmmh':function(_0x4102eb,_0x5ae5ea){return _0x4102eb||_0x5ae5ea;},'tWbIE':function(_0x5d64b4,_0x2343ce){return _0x5d64b4(_0x2343ce);}},_0x24ef71=_0x3bf7e6['lYZGL'][_0x524c7f(0x151)]('|');let _0x557c65=0x0;while(!![]){switch(_0x24ef71[_0x557c65++]){case'0':_0x3bf7e6[_0x524c7f(0x1bf)](!_0x3d916d,!_0x2647a7)&&logger[_0x524c7f(0x14f)](_0x524c7f(0x166)+_0x3d916d+_0x524c7f(0x130)+_0x2647a7);continue;case'1':process['env'][_0x524c7f(0x1ba)]=JSON[_0x524c7f(0x1b4)](this[_0x524c7f(0x187)]);continue;case'2':this['testFrameworkDetail']={'name':_0x3d916d,'version':{[_0x3d916d]:_0x3bf7e6[_0x524c7f(0x16f)](getFrameworkVersion,_0x3d916d)}};continue;case'3':this[_0x524c7f(0x134)]={'name':_0x2647a7,'version':_0x3bf7e6[_0x524c7f(0x16f)](getFrameworkVersion,_0x2647a7)};continue;case'4':process[_0x524c7f(0x1a0)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON['stringify'](this[_0x524c7f(0x134)]);continue;}break;}}static[a85_0x3e77df(0x1c8)](_0x92eed6,_0x152abd){return _0x92eed6+':'+_0x152abd;}static['getCurrentInstanceName'](){const _0x192685=a85_0x3e77df;return process[_0x192685(0x179)]+':'+threadId;}static[a85_0x3e77df(0x163)](_0x4169fc){const _0x44f215=a85_0x3e77df;if(_0x4169fc['testContextOptions']&&_0x4169fc[_0x44f215(0x1a1)][_0x44f215(0x1e6)])return!![];return![];}static[a85_0x3e77df(0x1fb)](_0xa5f17){const _0x3d256c=a85_0x3e77df;if(_0xa5f17[_0x3d256c(0x1a1)]&&_0xa5f17[_0x3d256c(0x1a1)]['skipSessionStatus'])return!![];return![];}static[a85_0x3e77df(0x195)](_0x5e73f2){const _0x1295b5=a85_0x3e77df,_0x512a32=new RegExp(TestFrameworkConstants[_0x1295b5(0x12d)]);return _0x512a32[_0x1295b5(0x1c2)](_0x5e73f2);}static[a85_0x3e77df(0x1d4)](_0x6a904b,_0x2addee){const _0x515cc1=a85_0x3e77df,_0x21bb54={};_0x21bb54[_0x515cc1(0x170)]=function(_0x4e74ab,_0x146e99){return _0x4e74ab!==_0x146e99;},_0x21bb54[_0x515cc1(0x125)]=function(_0x15a516,_0x2e9474){return _0x15a516===_0x2e9474;},_0x21bb54[_0x515cc1(0x1c1)]=_0x515cc1(0x147);const _0x6389ed=_0x21bb54;for(const [_0x1b369f,_0x2c12cc]of Object[_0x515cc1(0x1d5)](_0x2addee)){if(_0x6389ed[_0x515cc1(0x170)](_0x2c12cc,null)&&_0x6389ed[_0x515cc1(0x125)](typeof _0x2c12cc,_0x6389ed['Hjfcw'])&&!Array['isArray'](_0x2c12cc))_0x6a904b[_0x1b369f]=this['mergeObject'](_0x6a904b[_0x1b369f]||{},_0x2c12cc);else Array[_0x515cc1(0x1bd)](_0x2c12cc)?_0x6a904b[_0x1b369f]=(_0x6a904b[_0x1b369f]||[])[_0x515cc1(0x1a5)](_0x2c12cc):_0x6a904b[_0x1b369f]=_0x2c12cc;}return _0x6a904b;}}module[a85_0x3e77df(0x19c)]=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a86_0x23bf41=a86_0x2ec5;(function(_0x1d9147,_0x224c8b){const _0x3f0e4b=a86_0x2ec5,_0x2d3977=_0x1d9147();while(!![]){try{const _0x4d2440=-parseInt(_0x3f0e4b(0x169))/0x1*(parseInt(_0x3f0e4b(0x155))/0x2)+parseInt(_0x3f0e4b(0x156))/0x3+parseInt(_0x3f0e4b(0x16b))/0x4*(parseInt(_0x3f0e4b(0x161))/0x5)+-parseInt(_0x3f0e4b(0x1c1))/0x6+-parseInt(_0x3f0e4b(0x1a4))/0x7*(-parseInt(_0x3f0e4b(0x165))/0x8)+-parseInt(_0x3f0e4b(0x149))/0x9+parseInt(_0x3f0e4b(0x194))/0xa;if(_0x4d2440===_0x224c8b)break;else _0x2d3977['push'](_0x2d3977['shift']());}catch(_0x324c72){_0x2d3977['push'](_0x2d3977['shift']());}}}(a86_0x8097,0xd4929));const fs=require('fs'),os=require('os'),path=require(a86_0x23bf41(0x166)),helper=require(a86_0x23bf41(0x163)),AutomationFramework=require(a86_0x23bf41(0x181)),TestFrameworkConstants=require(a86_0x23bf41(0x145)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require('./TestInfo'),TestHubModule=require(a86_0x23bf41(0x183)),{createClassLogger}=require(a86_0x23bf41(0x199)),logger=createClassLogger(a86_0x23bf41(0x1be)),BUILD_TAG_FILE_PREFIX=a86_0x23bf41(0x186);function getBuildTagsRunId(){const _0x21ecb8=a86_0x23bf41,_0x437771={};_0x437771[_0x21ecb8(0x180)]=function(_0x2b0f99,_0x2c60f9){return _0x2b0f99===_0x2c60f9;},_0x437771[_0x21ecb8(0x1a1)]=_0x21ecb8(0x1c6);const _0x3b84e8=_0x437771,_0x4c5405=process[_0x21ecb8(0x1c2)][_0x21ecb8(0x164)];if(!_0x4c5405||_0x3b84e8['dLeVC'](_0x4c5405,_0x3b84e8[_0x21ecb8(0x1a1)]))return null;return _0x4c5405;}function a86_0x2ec5(_0x2f7a6b,_0x495599){const _0x809734=a86_0x8097();return a86_0x2ec5=function(_0x2ec52d,_0x361224){_0x2ec52d=_0x2ec52d-0x145;let _0x5c05ec=_0x809734[_0x2ec52d];return _0x5c05ec;},a86_0x2ec5(_0x2f7a6b,_0x495599);}function getBuildTagsFilePath(_0x145faa){const _0x5a5e71=a86_0x23bf41;return path['join'](os['tmpdir'](),''+BUILD_TAG_FILE_PREFIX+_0x145faa+'_'+process[_0x5a5e71(0x158)]+'.json');}function a86_0x8097(){const _0x3a2e43=['setTestDetails','testLevelTags','testhubConfig','KKFfS','entries','getTestIdentifierFromTestInfo','gvshs','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','get','mergeIntoTags','dLeVC','./framework/automationFramework','AhwAU','./modules/testhubModule','readFileSync','ztURm','bstack_build_tags_','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','wtMFW','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','twTIK','addMultipleEntries','getBuildLevelTags','values','getTestUUID','currentTest','\x20->\x20values=','oVjsl','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','length','16607950BPsRvw','GpXeq','wiGAh','kBSZk','Qvmzq','../../helpers/classLogger','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20',':jest-','unlinkSync','idcvu','getTrackedInstance','KEY_CUSTOM_TAGS','getInstance','ovoer',',\x20values=','KEY_TEST_ID','1141WlHPeS','message','EajBD','BAMbA','mergeBuildLevelTags','rUKBz','writeFile','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','filter','resolveInstance','__jestCurrentTestIdentifier','KmjaN','sPXVh','setCustomTags','getState','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','parseCommaSeparatedValues','./cliUtils','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','isRunning','CiQiU','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','getAllData','.json','modules','ZsVlt','CustomTagManager','getBuildTagsRunId','mergeValues','7073232ZhOlvW','env','debug','from','trim','null','startsWith','Fomvd','BUILD_TAG_FILE_PREFIX','promises','buildHashedId','testInfo',',\x20finalTags=','name','aggregateBuildLevelTagsFromTmp','./framework/constants/testFrameworkConstants','vwfQl','EtSLJ','endsWith','11087073ZLeOUF','./browserstackCLI','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','pXJgL','rIkwN','getTestFramework','SEtzb','buildLevelTags','keys','TyZMU','Xoeug','38YOCTkg','1598004YQgIdW','tmpdir','pid','pruNZ','Xwppm','parse','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','string','readdirSync','getTestDetails','getTestFrameworkDetail','859205rFnlnq','exports','../../helpers/helper','BROWSERSTACK_TESTHUB_UUID','33640UMeDez','path','utf8','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','42121RsRGbK','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','28BqUlBz','isArray','xhzds','CSYzx','field_type','POST','stringify','MODULE_NAME','includes'];a86_0x8097=function(){return _0x3a2e43;};return a86_0x8097();}class CustomTagManager{static [a86_0x23bf41(0x151)]={};static [a86_0x23bf41(0x175)]={};static['mergeValues'](_0x1e245b,_0x1af1c7){const _0x9af68=a86_0x23bf41;return Array[_0x9af68(0x1c4)](new Set([..._0x1e245b||[],..._0x1af1c7||[]]));}static[a86_0x23bf41(0x17f)](_0x1603ab,_0x507430,_0x490462){const _0x51ec4f=a86_0x23bf41,_0x36b6b1={};_0x36b6b1[_0x51ec4f(0x1a7)]='multi_dropdown';const _0x21ce14=_0x36b6b1;if(!_0x1603ab[_0x507430]){const _0x26543f={};_0x26543f[_0x51ec4f(0x16f)]=_0x21ce14[_0x51ec4f(0x1a7)],_0x26543f[_0x51ec4f(0x18d)]=[..._0x490462||[]],_0x1603ab[_0x507430]=_0x26543f;}else!_0x1603ab[_0x507430][_0x51ec4f(0x16f)]&&(_0x1603ab[_0x507430][_0x51ec4f(0x16f)]=_0x21ce14['BAMbA']),!Array[_0x51ec4f(0x16c)](_0x1603ab[_0x507430][_0x51ec4f(0x18d)])&&(_0x1603ab[_0x507430]['values']=[]),_0x1603ab[_0x507430][_0x51ec4f(0x18d)]=CustomTagManager[_0x51ec4f(0x1c0)](_0x1603ab[_0x507430]['values'],_0x490462);return _0x1603ab;}static async[a86_0x23bf41(0x1b1)](_0x925ca8,_0x57f529,_0x5ab5db=![]){const _0x2d8f4c=a86_0x23bf41,_0x201f67={'Fomvd':function(_0x32d3ef,_0x4e84b2){return _0x32d3ef!==_0x4e84b2;},'CSYzx':_0x2d8f4c(0x15d),'iBpcZ':_0x2d8f4c(0x187),'kBSZk':_0x2d8f4c(0x15c),'sPXVh':function(_0x9cc87a,_0x31204b){return _0x9cc87a===_0x31204b;},'pXJgL':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','TyZMU':_0x2d8f4c(0x14c),'twTIK':function(_0x22e7cf,_0x3c1bfd){return _0x22e7cf(_0x3c1bfd);},'idcvu':_0x2d8f4c(0x14a),'Wqvno':function(_0xcf16b4){return _0xcf16b4();},'EajBD':'multi_dropdown','pruNZ':function(_0x2997d6,_0x2f765d){return _0x2997d6>_0x2f765d;},'tgXpw':_0x2d8f4c(0x17d),'KKFfS':_0x2d8f4c(0x19b),'KmjaN':_0x2d8f4c(0x1b5),'wiGAh':function(_0x3f7cb4,_0x2be6b4){return _0x3f7cb4(_0x2be6b4);},'rIkwN':function(_0x1912c3,_0x147769){return _0x1912c3===_0x147769;},'ZsVlt':'jest','oVjsl':_0x2d8f4c(0x1ab),'Qvmzq':_0x2d8f4c(0x17b),'AhwAU':function(_0x4997a9,_0x280160){return _0x4997a9(_0x280160);},'Xwppm':'./state/testFrameworkState','SEtzb':function(_0x25eba7,_0x4deee8){return _0x25eba7(_0x4deee8);},'rUKBz':'./state/hookState','CiQiU':_0x2d8f4c(0x1b3)};if(_0x201f67[_0x2d8f4c(0x1c8)](typeof _0x925ca8,_0x201f67[_0x2d8f4c(0x16e)])){logger[_0x2d8f4c(0x1c3)](_0x201f67['iBpcZ']);return;}if(_0x201f67[_0x2d8f4c(0x1c8)](typeof _0x57f529,_0x201f67[_0x2d8f4c(0x16e)])){logger['debug'](_0x201f67[_0x2d8f4c(0x197)]);return;}if(_0x201f67[_0x2d8f4c(0x1b0)](_0x925ca8[_0x2d8f4c(0x1c5)](),'')){logger[_0x2d8f4c(0x1c3)](_0x201f67[_0x2d8f4c(0x14d)]);return;}if(_0x201f67['sPXVh'](_0x57f529[_0x2d8f4c(0x1c5)](),'')){logger[_0x2d8f4c(0x1c3)](_0x201f67[_0x2d8f4c(0x153)]);return;}const _0x4ec126=helper[_0x2d8f4c(0x1b4)](_0x57f529);if(_0x5ab5db){const _0x41a418=_0x201f67[_0x2d8f4c(0x18a)](require,_0x201f67[_0x2d8f4c(0x19d)]),_0x12029b=_0x41a418[_0x2d8f4c(0x1a0)](),_0x4f110b=_0x12029b&&_0x12029b[_0x2d8f4c(0x1bc)][TestHubModule[_0x2d8f4c(0x172)]];if(_0x4f110b){const _0x5817b9=_0x4f110b?.[_0x2d8f4c(0x176)]?.['toObject']()?.[_0x2d8f4c(0x1cb)];TestInfo[_0x2d8f4c(0x18e)](_0x5817b9);const _0x4ba6a9=TestInfo[_0x2d8f4c(0x15f)](_0x5817b9),_0x195a6f=_0x4ba6a9[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x2d8f4c(0x17f)](_0x195a6f,_0x925ca8,_0x4ec126),_0x4ba6a9[TestFrameworkConstants[_0x2d8f4c(0x19f)]]=_0x195a6f,TestInfo[_0x2d8f4c(0x174)](_0x5817b9,_0x4ba6a9);!this[_0x2d8f4c(0x151)][_0x5817b9]&&(this['buildLevelTags'][_0x5817b9]={});this['buildLevelTags'][_0x5817b9][_0x925ca8]=CustomTagManager[_0x2d8f4c(0x1c0)](this[_0x2d8f4c(0x151)][_0x5817b9][_0x925ca8],_0x4ec126);try{const _0x33d08b=_0x201f67['Wqvno'](getBuildTagsRunId);if(_0x33d08b){const _0xfe2bba={};for(const [_0x211fb8,_0x48f358]of Object[_0x2d8f4c(0x178)](this[_0x2d8f4c(0x151)][_0x5817b9]||{})){_0xfe2bba[_0x211fb8]={'field_type':_0x201f67[_0x2d8f4c(0x1a6)],'values':Array['isArray'](_0x48f358)?[..._0x48f358]:[]};}_0x201f67[_0x2d8f4c(0x159)](Object[_0x2d8f4c(0x152)](_0xfe2bba)[_0x2d8f4c(0x193)],0x0)&&await fs[_0x2d8f4c(0x1ca)][_0x2d8f4c(0x1aa)](_0x201f67[_0x2d8f4c(0x18a)](getBuildTagsFilePath,_0x33d08b),JSON[_0x2d8f4c(0x171)](_0xfe2bba));}else logger[_0x2d8f4c(0x1c3)](_0x201f67['tgXpw']);}catch(_0x58c007){logger[_0x2d8f4c(0x1c3)]('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0x58c007&&_0x58c007['message']?_0x58c007[_0x2d8f4c(0x1a5)]:_0x58c007));}}}else{let _0x14d83f;const _0x4965fc=global[_0x2d8f4c(0x1ae)];let _0x2c671b=![];if(_0x4965fc&&_0x4965fc[_0x2d8f4c(0x173)](_0x201f67[_0x2d8f4c(0x177)]))_0x2c671b=!![],_0x14d83f=_0x4965fc;else try{const _0x452ea4=_0x201f67['twTIK'](require,_0x201f67[_0x2d8f4c(0x1af)]),_0x53e6c7=_0x201f67[_0x2d8f4c(0x196)](require,_0x201f67[_0x2d8f4c(0x19d)]);if(_0x53e6c7[_0x2d8f4c(0x1a0)]()[_0x2d8f4c(0x1b7)]()){const _0x3d057f=_0x452ea4[_0x2d8f4c(0x160)]();if(_0x201f67[_0x2d8f4c(0x14e)](_0x3d057f?.[_0x2d8f4c(0x1ce)]?.['toLowerCase'](),_0x201f67[_0x2d8f4c(0x1bd)])){const _0x2e25bb=AutomationFramework[_0x2d8f4c(0x19e)]();_0x14d83f=AutomationFramework[_0x2d8f4c(0x1b2)](_0x2e25bb,PlaywrightDriverModule[_0x2d8f4c(0x1a3)],''),_0x14d83f&&_0x14d83f[_0x2d8f4c(0x173)](_0x201f67[_0x2d8f4c(0x177)])&&(_0x2c671b=!![]);}}}catch(_0x7086ea){logger[_0x2d8f4c(0x1c3)]('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x7086ea);}if(_0x2c671b){if(!_0x14d83f)throw new Error(_0x201f67[_0x2d8f4c(0x191)]);const _0x12feeb=_0x201f67[_0x2d8f4c(0x18a)](require,_0x201f67[_0x2d8f4c(0x19d)]),_0x36b0e3=_0x12feeb['getInstance']()[_0x2d8f4c(0x14f)]();if(!_0x36b0e3)throw new Error(_0x201f67[_0x2d8f4c(0x198)]);const _0x2d4cd1=_0x201f67[_0x2d8f4c(0x182)](require,_0x201f67[_0x2d8f4c(0x15a)]),_0x1c4b36=_0x201f67[_0x2d8f4c(0x150)](require,_0x201f67[_0x2d8f4c(0x1a9)]),_0x1becf8=_0x36b0e3[_0x2d8f4c(0x1ad)](_0x2d4cd1['TEST'],_0x1c4b36[_0x2d8f4c(0x170)]);if(!_0x1becf8)throw new Error(_0x201f67[_0x2d8f4c(0x1b8)]);const _0x139f97=_0x1becf8[_0x2d8f4c(0x1ba)]()[_0x2d8f4c(0x17e)](_0x14d83f)||{},_0x4fdd0b=_0x139f97[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger['debug'](_0x2d8f4c(0x1b6)+_0x14d83f+',\x20key='+_0x925ca8+_0x2d8f4c(0x1a2)+JSON[_0x2d8f4c(0x171)](_0x4ec126)+',\x20existingTags='+JSON[_0x2d8f4c(0x171)](_0x4fdd0b)),CustomTagManager[_0x2d8f4c(0x17f)](_0x4fdd0b,_0x925ca8,_0x4ec126),logger['debug'](_0x2d8f4c(0x17c)+_0x925ca8+_0x2d8f4c(0x190)+JSON[_0x2d8f4c(0x171)](_0x4fdd0b[_0x925ca8][_0x2d8f4c(0x18d)]));const _0x53287b={[TestFrameworkConstants[_0x2d8f4c(0x19f)]]:_0x4fdd0b},_0x1bb748={};_0x1bb748[_0x14d83f]=_0x53287b,_0x1becf8[_0x2d8f4c(0x18b)](_0x1bb748),logger['debug'](_0x2d8f4c(0x168)+_0x14d83f+_0x2d8f4c(0x1cd)+JSON['stringify'](_0x4fdd0b)),!this['testLevelTags'][_0x14d83f]&&(this[_0x2d8f4c(0x175)][_0x14d83f]={}),this['testLevelTags'][_0x14d83f][_0x925ca8]=CustomTagManager['mergeValues'](this[_0x2d8f4c(0x175)][_0x14d83f][_0x925ca8],_0x4ec126);}else{const _0x2abaf6=global['__workerDetails']?.[_0x2d8f4c(0x18f)]?.[_0x2d8f4c(0x1cc)];if(!_0x2abaf6){const _0x407484=AutomationFramework['getTrackedInstance']();_0x14d83f=AutomationFramework['getState'](_0x407484,PlaywrightDriverModule['KEY_TEST_ID'],'');}else _0x14d83f=TestInfo[_0x2d8f4c(0x179)](_0x2abaf6,_0x2abaf6['retry']);const _0x45b801=TestInfo['getTestDetails'](_0x14d83f),_0x63a46e=_0x45b801[TestFrameworkConstants[_0x2d8f4c(0x19f)]]||{};CustomTagManager[_0x2d8f4c(0x17f)](_0x63a46e,_0x925ca8,_0x4ec126),_0x45b801[TestFrameworkConstants[_0x2d8f4c(0x19f)]]=_0x63a46e,TestInfo['setTestDetails'](_0x14d83f,_0x45b801),!this[_0x2d8f4c(0x175)][_0x14d83f]&&(this[_0x2d8f4c(0x175)][_0x14d83f]={}),this[_0x2d8f4c(0x175)][_0x14d83f][_0x925ca8]=CustomTagManager[_0x2d8f4c(0x1c0)](this[_0x2d8f4c(0x175)][_0x14d83f][_0x925ca8],_0x4ec126);}}}static[a86_0x23bf41(0x18c)](){const _0xcb9087={...this['buildLevelTags']};return _0xcb9087;}static['getTestLevelTags'](){const _0x120a36=a86_0x23bf41,_0x12374d={...this[_0x120a36(0x175)]};return _0x12374d;}static['clearTags'](){const _0x26aa9c=a86_0x23bf41;this[_0x26aa9c(0x151)]={},this[_0x26aa9c(0x175)]={};}static['mergeBuildLevelTags'](_0x4cfabe,_0x3ba397){const _0x4622e6=a86_0x23bf41,_0x34f3ac={};_0x34f3ac['gvshs']=function(_0x8fa37d,_0xbaedad){return _0x8fa37d||_0xbaedad;};const _0x5d97bd=_0x34f3ac;if(!_0x4cfabe)return;!this[_0x4622e6(0x151)][_0x4cfabe]&&(this['buildLevelTags'][_0x4cfabe]={});for(const [_0x44d0ab,_0x21cc67]of Object[_0x4622e6(0x178)](_0x5d97bd[_0x4622e6(0x17a)](_0x3ba397,{}))){if(!_0x21cc67||!Array[_0x4622e6(0x16c)](_0x21cc67[_0x4622e6(0x18d)]))continue;this['buildLevelTags'][_0x4cfabe][_0x44d0ab]=CustomTagManager[_0x4622e6(0x1c0)](this[_0x4622e6(0x151)][_0x4cfabe][_0x44d0ab],_0x21cc67['values']);}}static[a86_0x23bf41(0x1cf)](_0x5ba9c5,_0x30cf4a){const _0x4811bf=a86_0x23bf41,_0x3f124b={};_0x3f124b['wtMFW']=_0x4811bf(0x189),_0x3f124b['xhzds']=function(_0x3acf89,_0x5ea18a){return _0x3acf89*_0x5ea18a;},_0x3f124b[_0x4811bf(0x147)]=function(_0x5ae6dc,_0x42593b){return _0x5ae6dc*_0x42593b;},_0x3f124b[_0x4811bf(0x154)]=function(_0x52b942,_0xad91f7){return _0x52b942*_0xad91f7;},_0x3f124b[_0x4811bf(0x195)]=function(_0x24d09f,_0x565529){return _0x24d09f>_0x565529;},_0x3f124b[_0x4811bf(0x146)]=function(_0x363d70,_0x4a2493){return _0x363d70-_0x4a2493;},_0x3f124b[_0x4811bf(0x185)]=_0x4811bf(0x167);const _0x4de51f=_0x3f124b;if(!_0x5ba9c5)return logger[_0x4811bf(0x1c3)](_0x4de51f[_0x4811bf(0x188)]),0x0;let _0x50be35;try{_0x50be35=os[_0x4811bf(0x157)]();}catch(_0x332023){return logger[_0x4811bf(0x1c3)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20'+_0x332023),0x0;}let _0x215659;try{_0x215659=fs[_0x4811bf(0x15e)](_0x50be35);}catch(_0x31b9db){return logger[_0x4811bf(0x1c3)](_0x4811bf(0x14b)+_0x31b9db),0x0;}const _0x839249=''+BUILD_TAG_FILE_PREFIX+_0x5ba9c5+'_',_0x2464b8=_0x215659[_0x4811bf(0x1ac)](_0xe14659=>_0xe14659[_0x4811bf(0x1c7)](_0x839249)&&_0xe14659[_0x4811bf(0x148)](_0x4811bf(0x1bb))),_0x22db8e=_0x4de51f[_0x4811bf(0x16d)](_0x4de51f[_0x4811bf(0x147)](_0x4de51f[_0x4811bf(0x154)](0x2,0x3c),0x3c),0x3e8);let _0x155a01=0x0;for(const _0x5db09a of _0x2464b8){const _0x188cb0=path['join'](_0x50be35,_0x5db09a);try{const _0x145fad=fs['statSync'](_0x188cb0);if(_0x4de51f[_0x4811bf(0x195)](_0x4de51f[_0x4811bf(0x146)](Date['now'](),_0x145fad['mtimeMs']),_0x22db8e)){logger[_0x4811bf(0x1c3)](_0x4811bf(0x16a)+_0x22db8e+'ms)\x20'+_0x5db09a);try{fs[_0x4811bf(0x19c)](_0x188cb0);}catch(_0x407fa3){logger['debug'](_0x4811bf(0x19a)+_0x5db09a+':\x20'+(_0x407fa3&&_0x407fa3['message']?_0x407fa3[_0x4811bf(0x1a5)]:_0x407fa3));}continue;}const _0x314a3f=fs[_0x4811bf(0x184)](_0x188cb0,_0x4de51f[_0x4811bf(0x185)]),_0x207926=JSON[_0x4811bf(0x15b)](_0x314a3f);this[_0x4811bf(0x1a8)](_0x30cf4a,_0x207926),_0x155a01+=0x1;}catch(_0xfc919c){logger[_0x4811bf(0x1c3)](_0x4811bf(0x1b9)+_0x5db09a+':\x20'+(_0xfc919c&&_0xfc919c[_0x4811bf(0x1a5)]?_0xfc919c[_0x4811bf(0x1a5)]:_0xfc919c));}try{fs['unlinkSync'](_0x188cb0);}catch(_0x15caa1){logger[_0x4811bf(0x1c3)](_0x4811bf(0x192)+_0x5db09a+':\x20'+(_0x15caa1&&_0x15caa1[_0x4811bf(0x1a5)]?_0x15caa1['message']:_0x15caa1));}}return _0x155a01;}}const a86_0x3c6a24={};a86_0x3c6a24[a86_0x23bf41(0x1bf)]=getBuildTagsRunId,a86_0x3c6a24['getBuildTagsFilePath']=getBuildTagsFilePath,a86_0x3c6a24[a86_0x23bf41(0x1c9)]=BUILD_TAG_FILE_PREFIX,CustomTagManager['_testInternals']=a86_0x3c6a24,module[a86_0x23bf41(0x162)]=CustomTagManager;
|
|
1
|
+
'use strict';function a86_0x3fed(_0x24dc2a,_0x3eddf9){const _0x319625=a86_0x3196();return a86_0x3fed=function(_0x3feda3,_0x302715){_0x3feda3=_0x3feda3-0xe2;let _0x4cc281=_0x319625[_0x3feda3];return _0x4cc281;},a86_0x3fed(_0x24dc2a,_0x3eddf9);}function a86_0x3196(){const _0x26438b=['CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','getInstance','RBtSr','./browserstackCLI','debug','./state/testFrameworkState','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','getTestLevelTags','GbIyV','now','KEY_TEST_ID','vHeAE','join','keys','zWbeg','MODULE_NAME','testLevelTags','env','mEWJN','statSync','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','./state/hookState','mergeIntoTags','mergeBuildLevelTags','./cliUtils','getTestDetails','QnVDa','ieQIC','endsWith','parse','unlinkSync','readFileSync','VkqvD','currentTest','./modules/playwrightDriverModule','dzFCL','retry','isArray','values','39842bIovOr','stringify','DvOus','toLowerCase','.json','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','./framework/automationFramework','15nPpFhv','fqkqV','KEY_CUSTOM_TAGS','filter','\x20->\x20values=','getBuildLevelTags','rlLsW','multi_dropdown',',\x20finalTags=','TEST','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','from','setCustomTags','QNBvQ','nPyzR','getBuildTagsFilePath','tmpdir','readdirSync','testhubConfig','sFlCn','laJSp','CustomTagManager','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','3866390LKvVFX','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','mtimeMs','get','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','path','bstack_build_tags_','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','qdKeT','vvFat','lklVZ','../../helpers/classLogger','mergeValues','startsWith','4993268EWpjME','13131UJzJtm','./TestInfo','jest','getState','HOKov','length','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','includes','uDSqX','qOFIE','parseCommaSeparatedValues','rLIUE','getTestFrameworkDetail','clearTags','isRunning','null','qMPIg','string','getTestFramework','entries','buildLevelTags','GBgvm','modules','trim','toObject','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','ms)\x20','fjkom','ToKrv','637734HAGuDL','setTestDetails',',\x20existingTags=','pid','resolveInstance','46120xMLqpq','oNWQW','bgCBO','./modules/testhubModule','aggregateBuildLevelTagsFromTmp','zQacB','11336QoEgae','sbNqL','tofSS','KmCqO','getTestUUID','__workerDetails',',\x20values=','writeFile','exports','field_type','getTrackedInstance','624156bvwOeN','getBuildTagsRunId','getTestIdentifierFromTestInfo','message'];a86_0x3196=function(){return _0x26438b;};return a86_0x3196();}const a86_0x39d494=a86_0x3fed;(function(_0x3bdab6,_0xb6fc6a){const _0x365dae=a86_0x3fed,_0x1eeac8=_0x3bdab6();while(!![]){try{const _0x4b345c=-parseInt(_0x365dae(0x15d))/0x1+parseInt(_0x365dae(0x120))/0x2*(-parseInt(_0x365dae(0x164))/0x3)+parseInt(_0x365dae(0x131))/0x4+-parseInt(_0x365dae(0xed))/0x5+-parseInt(_0x365dae(0x11b))/0x6+-parseInt(_0x365dae(0xfb))/0x7+-parseInt(_0x365dae(0x126))/0x8*(-parseInt(_0x365dae(0xfc))/0x9);if(_0x4b345c===_0xb6fc6a)break;else _0x1eeac8['push'](_0x1eeac8['shift']());}catch(_0x41ce20){_0x1eeac8['push'](_0x1eeac8['shift']());}}}(a86_0x3196,0x74111));const fs=require('fs'),os=require('os'),path=require(a86_0x39d494(0xf2)),helper=require('../../helpers/helper'),AutomationFramework=require(a86_0x39d494(0x163)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require(a86_0x39d494(0x158)),TestInfo=require(a86_0x39d494(0xfd)),TestHubModule=require(a86_0x39d494(0x123)),{createClassLogger}=require(a86_0x39d494(0xf8)),logger=createClassLogger(a86_0x39d494(0xeb)),BUILD_TAG_FILE_PREFIX=a86_0x39d494(0xf3);function getBuildTagsRunId(){const _0x448708=a86_0x39d494,_0x5bba3f={};_0x5bba3f[_0x448708(0xea)]=function(_0x495efd,_0xb101a2){return _0x495efd===_0xb101a2;},_0x5bba3f[_0x448708(0x156)]=_0x448708(0x10c);const _0x18334e=_0x5bba3f,_0x436c95=process[_0x448708(0x147)]['BROWSERSTACK_TESTHUB_UUID'];if(!_0x436c95||_0x18334e['laJSp'](_0x436c95,_0x18334e[_0x448708(0x156)]))return null;return _0x436c95;}function getBuildTagsFilePath(_0x3c3077){const _0x46dfc6=a86_0x39d494;return path['join'](os[_0x46dfc6(0xe6)](),''+BUILD_TAG_FILE_PREFIX+_0x3c3077+'_'+process[_0x46dfc6(0x11e)]+_0x46dfc6(0x161));}class CustomTagManager{static [a86_0x39d494(0x111)]={};static [a86_0x39d494(0x146)]={};static['mergeValues'](_0x571681,_0x35d266){const _0x670790=a86_0x39d494;return Array[_0x670790(0x16f)](new Set([..._0x571681||[],..._0x35d266||[]]));}static[a86_0x39d494(0x14c)](_0x550640,_0x32c05a,_0x4955ec){const _0x3b4b09=a86_0x39d494,_0x3456c0={};_0x3456c0[_0x3b4b09(0x138)]=_0x3b4b09(0x16b);const _0x46764e=_0x3456c0;if(!_0x550640[_0x32c05a]){const _0x402040={};_0x402040[_0x3b4b09(0x12f)]=_0x46764e[_0x3b4b09(0x138)],_0x402040[_0x3b4b09(0x15c)]=[..._0x4955ec||[]],_0x550640[_0x32c05a]=_0x402040;}else!_0x550640[_0x32c05a][_0x3b4b09(0x12f)]&&(_0x550640[_0x32c05a][_0x3b4b09(0x12f)]=_0x46764e[_0x3b4b09(0x138)]),!Array[_0x3b4b09(0x15b)](_0x550640[_0x32c05a]['values'])&&(_0x550640[_0x32c05a][_0x3b4b09(0x15c)]=[]),_0x550640[_0x32c05a]['values']=CustomTagManager[_0x3b4b09(0xf9)](_0x550640[_0x32c05a][_0x3b4b09(0x15c)],_0x4955ec);return _0x550640;}static async[a86_0x39d494(0xe2)](_0x4a545d,_0xc00d40,_0x3fb23d=![]){const _0x1830bf=a86_0x39d494,_0x194efd={'tofSS':function(_0x1ae171,_0x12463a){return _0x1ae171!==_0x12463a;},'qdKeT':_0x1830bf(0x10e),'ieQIC':_0x1830bf(0x136),'zWbeg':function(_0x176169,_0xbfb21f){return _0x176169!==_0xbfb21f;},'HOKov':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','dieUs':function(_0x2406ff,_0x7fda09){return _0x2406ff===_0x7fda09;},'qOFIE':_0x1830bf(0x116),'zQacB':function(_0x183cb9,_0xd8e555){return _0x183cb9===_0xd8e555;},'jHFWm':_0x1830bf(0x162),'lklVZ':function(_0x37b131,_0x580cc2){return _0x37b131(_0x580cc2);},'ToKrv':_0x1830bf(0x139),'rlLsW':function(_0x4c7eeb){return _0x4c7eeb();},'fjkom':_0x1830bf(0x16b),'fqkqV':function(_0x105399,_0x4b6879){return _0x105399>_0x4b6879;},'qMPIg':_0x1830bf(0x102),'rLIUE':':jest-','bgCBO':function(_0xb3109c,_0x250416){return _0xb3109c(_0x250416);},'QNBvQ':_0x1830bf(0x14e),'YYBLm':function(_0x273063,_0x563bef){return _0x273063===_0x563bef;},'vvFat':_0x1830bf(0xfe),'uDSqX':_0x1830bf(0x14a),'nPyzR':function(_0xdbc297,_0x286dc2){return _0xdbc297(_0x286dc2);},'KmCqO':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','vHeAE':function(_0x38d985,_0x4c0411){return _0x38d985(_0x4c0411);},'mEWJN':_0x1830bf(0x13b),'DvOus':_0x1830bf(0x14b),'GbIyV':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x194efd[_0x1830bf(0x128)](typeof _0x4a545d,_0x194efd[_0x1830bf(0xf5)])){logger[_0x1830bf(0x13a)](_0x194efd[_0x1830bf(0x151)]);return;}if(_0x194efd[_0x1830bf(0x144)](typeof _0xc00d40,_0x194efd[_0x1830bf(0xf5)])){logger[_0x1830bf(0x13a)](_0x194efd[_0x1830bf(0x100)]);return;}if(_0x194efd['dieUs'](_0x4a545d[_0x1830bf(0x114)](),'')){logger[_0x1830bf(0x13a)](_0x194efd[_0x1830bf(0x106)]);return;}if(_0x194efd[_0x1830bf(0x125)](_0xc00d40[_0x1830bf(0x114)](),'')){logger[_0x1830bf(0x13a)](_0x194efd['jHFWm']);return;}const _0x1bcab9=helper[_0x1830bf(0x107)](_0xc00d40);if(_0x3fb23d){const _0x1dd944=_0x194efd[_0x1830bf(0xf7)](require,_0x194efd[_0x1830bf(0x11a)]),_0x48b9a9=_0x1dd944[_0x1830bf(0x137)](),_0x20b74f=_0x48b9a9&&_0x48b9a9[_0x1830bf(0x113)][TestHubModule[_0x1830bf(0x145)]];if(_0x20b74f){const _0x4ff3a1=_0x20b74f?.[_0x1830bf(0xe8)]?.[_0x1830bf(0x115)]()?.['buildHashedId'];TestInfo[_0x1830bf(0x12a)](_0x4ff3a1);const _0x1a7d3e=TestInfo[_0x1830bf(0x14f)](_0x4ff3a1),_0x313cef=_0x1a7d3e[TestFrameworkConstants[_0x1830bf(0x166)]]||{};CustomTagManager[_0x1830bf(0x14c)](_0x313cef,_0x4a545d,_0x1bcab9),_0x1a7d3e[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x313cef,TestInfo[_0x1830bf(0x11c)](_0x4ff3a1,_0x1a7d3e);!this[_0x1830bf(0x111)][_0x4ff3a1]&&(this[_0x1830bf(0x111)][_0x4ff3a1]={});this[_0x1830bf(0x111)][_0x4ff3a1][_0x4a545d]=CustomTagManager[_0x1830bf(0xf9)](this[_0x1830bf(0x111)][_0x4ff3a1][_0x4a545d],_0x1bcab9);try{const _0x27f836=_0x194efd[_0x1830bf(0x16a)](getBuildTagsRunId);if(_0x27f836){const _0x39d65f={};for(const [_0xa2dcfd,_0x53e0c7]of Object[_0x1830bf(0x110)](this[_0x1830bf(0x111)][_0x4ff3a1]||{})){_0x39d65f[_0xa2dcfd]={'field_type':_0x194efd[_0x1830bf(0x119)],'values':Array['isArray'](_0x53e0c7)?[..._0x53e0c7]:[]};}_0x194efd[_0x1830bf(0x165)](Object[_0x1830bf(0x143)](_0x39d65f)[_0x1830bf(0x101)],0x0)&&await fs['promises'][_0x1830bf(0x12d)](_0x194efd[_0x1830bf(0xf7)](getBuildTagsFilePath,_0x27f836),JSON[_0x1830bf(0x15e)](_0x39d65f));}else logger['debug'](_0x194efd[_0x1830bf(0x10d)]);}catch(_0x5aa15c){logger[_0x1830bf(0x13a)](_0x1830bf(0x103)+(_0x5aa15c&&_0x5aa15c[_0x1830bf(0x134)]?_0x5aa15c[_0x1830bf(0x134)]:_0x5aa15c));}}}else{let _0x345cf2;const _0x1537c4=global['__jestCurrentTestIdentifier'];let _0x160442=![];if(_0x1537c4&&_0x1537c4['includes'](_0x194efd[_0x1830bf(0x108)]))_0x160442=!![],_0x345cf2=_0x1537c4;else try{const _0x4a7bea=_0x194efd[_0x1830bf(0x122)](require,_0x194efd[_0x1830bf(0xe3)]),_0xb3ec6d=_0x194efd[_0x1830bf(0x122)](require,_0x194efd[_0x1830bf(0x11a)]);if(_0xb3ec6d['getInstance']()[_0x1830bf(0x10b)]()){const _0x4f77e1=_0x4a7bea[_0x1830bf(0x109)]();if(_0x194efd['YYBLm'](_0x4f77e1?.['name']?.[_0x1830bf(0x160)](),_0x194efd[_0x1830bf(0xf6)])){const _0x10b3bb=AutomationFramework[_0x1830bf(0x130)]();_0x345cf2=AutomationFramework[_0x1830bf(0xff)](_0x10b3bb,PlaywrightDriverModule[_0x1830bf(0x140)],''),_0x345cf2&&_0x345cf2[_0x1830bf(0x104)](_0x194efd[_0x1830bf(0x108)])&&(_0x160442=!![]);}}}catch(_0x472438){logger[_0x1830bf(0x13a)]('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x472438);}if(_0x160442){if(!_0x345cf2)throw new Error(_0x194efd[_0x1830bf(0x105)]);const _0x41d893=_0x194efd[_0x1830bf(0xe4)](require,_0x194efd[_0x1830bf(0x11a)]),_0x4f08fd=_0x41d893[_0x1830bf(0x137)]()[_0x1830bf(0x10f)]();if(!_0x4f08fd)throw new Error(_0x194efd[_0x1830bf(0x129)]);const _0xae93cb=_0x194efd[_0x1830bf(0x141)](require,_0x194efd[_0x1830bf(0x148)]),_0x23383c=_0x194efd[_0x1830bf(0xe4)](require,_0x194efd[_0x1830bf(0x15f)]),_0x2e4aeb=_0x4f08fd[_0x1830bf(0x11f)](_0xae93cb[_0x1830bf(0x16d)],_0x23383c['POST']);if(!_0x2e4aeb)throw new Error(_0x194efd[_0x1830bf(0x13e)]);const _0x47219e=_0x2e4aeb['getAllData']()[_0x1830bf(0xf0)](_0x345cf2)||{},_0xd18e6c=_0x47219e[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0x1830bf(0x13a)]('[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier='+_0x345cf2+',\x20key='+_0x4a545d+_0x1830bf(0x12c)+JSON[_0x1830bf(0x15e)](_0x1bcab9)+_0x1830bf(0x11d)+JSON[_0x1830bf(0x15e)](_0xd18e6c)),CustomTagManager[_0x1830bf(0x14c)](_0xd18e6c,_0x4a545d,_0x1bcab9),logger[_0x1830bf(0x13a)](_0x1830bf(0x13c)+_0x4a545d+_0x1830bf(0x168)+JSON[_0x1830bf(0x15e)](_0xd18e6c[_0x4a545d][_0x1830bf(0x15c)]));const _0x4ba921={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0xd18e6c},_0x2c1219={};_0x2c1219[_0x345cf2]=_0x4ba921,_0x2e4aeb['addMultipleEntries'](_0x2c1219),logger[_0x1830bf(0x13a)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x345cf2+_0x1830bf(0x16c)+JSON['stringify'](_0xd18e6c)),!this[_0x1830bf(0x146)][_0x345cf2]&&(this['testLevelTags'][_0x345cf2]={}),this[_0x1830bf(0x146)][_0x345cf2][_0x4a545d]=CustomTagManager[_0x1830bf(0xf9)](this[_0x1830bf(0x146)][_0x345cf2][_0x4a545d],_0x1bcab9);}else{const _0x46a907=global[_0x1830bf(0x12b)]?.[_0x1830bf(0x157)]?.['testInfo'];if(!_0x46a907){const _0xf8ad29=AutomationFramework[_0x1830bf(0x130)]();_0x345cf2=AutomationFramework[_0x1830bf(0xff)](_0xf8ad29,PlaywrightDriverModule[_0x1830bf(0x140)],'');}else _0x345cf2=TestInfo[_0x1830bf(0x133)](_0x46a907,_0x46a907[_0x1830bf(0x15a)]);const _0x4e6a49=TestInfo[_0x1830bf(0x14f)](_0x345cf2),_0x40d790=_0x4e6a49[TestFrameworkConstants[_0x1830bf(0x166)]]||{};CustomTagManager['mergeIntoTags'](_0x40d790,_0x4a545d,_0x1bcab9),_0x4e6a49[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x40d790,TestInfo[_0x1830bf(0x11c)](_0x345cf2,_0x4e6a49),!this[_0x1830bf(0x146)][_0x345cf2]&&(this['testLevelTags'][_0x345cf2]={}),this['testLevelTags'][_0x345cf2][_0x4a545d]=CustomTagManager['mergeValues'](this['testLevelTags'][_0x345cf2][_0x4a545d],_0x1bcab9);}}}static[a86_0x39d494(0x169)](){const _0x608a47=a86_0x39d494,_0x1494a7={...this[_0x608a47(0x111)]};return _0x1494a7;}static[a86_0x39d494(0x13d)](){const _0xee6152=a86_0x39d494,_0x46d658={...this[_0xee6152(0x146)]};return _0x46d658;}static[a86_0x39d494(0x10a)](){const _0x115073=a86_0x39d494;this[_0x115073(0x111)]={},this[_0x115073(0x146)]={};}static[a86_0x39d494(0x14d)](_0x52bae7,_0x239713){const _0x1885b0=a86_0x39d494,_0x3efe13={};_0x3efe13['sbNqL']=function(_0x166a1b,_0x4a9bb6){return _0x166a1b||_0x4a9bb6;};const _0x45a20b=_0x3efe13;if(!_0x52bae7)return;!this[_0x1885b0(0x111)][_0x52bae7]&&(this['buildLevelTags'][_0x52bae7]={});for(const [_0x4e931c,_0x5cecae]of Object['entries'](_0x45a20b[_0x1885b0(0x127)](_0x239713,{}))){if(!_0x5cecae||!Array[_0x1885b0(0x15b)](_0x5cecae['values']))continue;this[_0x1885b0(0x111)][_0x52bae7][_0x4e931c]=CustomTagManager[_0x1885b0(0xf9)](this[_0x1885b0(0x111)][_0x52bae7][_0x4e931c],_0x5cecae[_0x1885b0(0x15c)]);}}static[a86_0x39d494(0x124)](_0xa6f736,_0x10b454){const _0x2d6513=a86_0x39d494,_0x4ebf08={};_0x4ebf08[_0x2d6513(0x159)]=_0x2d6513(0xf4),_0x4ebf08[_0x2d6513(0x150)]=function(_0x56f3ca,_0x9db9c3){return _0x56f3ca*_0x9db9c3;},_0x4ebf08[_0x2d6513(0xe9)]=function(_0xd7d3b5,_0x3a18e8){return _0xd7d3b5>_0x3a18e8;},_0x4ebf08[_0x2d6513(0x112)]=function(_0x426f3d,_0x2a3617){return _0x426f3d-_0x2a3617;},_0x4ebf08[_0x2d6513(0x121)]='utf8';const _0x4dda9f=_0x4ebf08;if(!_0xa6f736)return logger[_0x2d6513(0x13a)](_0x4dda9f[_0x2d6513(0x159)]),0x0;let _0x784056;try{_0x784056=os[_0x2d6513(0xe6)]();}catch(_0x5815f6){return logger['debug'](_0x2d6513(0xf1)+_0x5815f6),0x0;}let _0x2023a9;try{_0x2023a9=fs[_0x2d6513(0xe7)](_0x784056);}catch(_0x1c6439){return logger['debug'](_0x2d6513(0xee)+_0x1c6439),0x0;}const _0x4be248=''+BUILD_TAG_FILE_PREFIX+_0xa6f736+'_',_0xbc9c0f=_0x2023a9[_0x2d6513(0x167)](_0xd7b2de=>_0xd7b2de[_0x2d6513(0xfa)](_0x4be248)&&_0xd7b2de[_0x2d6513(0x152)](_0x2d6513(0x161))),_0x3c9bc7=_0x4dda9f[_0x2d6513(0x150)](_0x4dda9f[_0x2d6513(0x150)](_0x4dda9f[_0x2d6513(0x150)](0x2,0x3c),0x3c),0x3e8);let _0x41d216=0x0;for(const _0x302ec9 of _0xbc9c0f){const _0x589377=path[_0x2d6513(0x142)](_0x784056,_0x302ec9);try{const _0x551a87=fs[_0x2d6513(0x149)](_0x589377);if(_0x4dda9f[_0x2d6513(0xe9)](_0x4dda9f[_0x2d6513(0x112)](Date[_0x2d6513(0x13f)](),_0x551a87[_0x2d6513(0xef)]),_0x3c9bc7)){logger['debug'](_0x2d6513(0x117)+_0x3c9bc7+_0x2d6513(0x118)+_0x302ec9);try{fs[_0x2d6513(0x154)](_0x589377);}catch(_0x5633df){logger['debug'](_0x2d6513(0x135)+_0x302ec9+':\x20'+(_0x5633df&&_0x5633df[_0x2d6513(0x134)]?_0x5633df['message']:_0x5633df));}continue;}const _0x296b20=fs[_0x2d6513(0x155)](_0x589377,_0x4dda9f[_0x2d6513(0x121)]),_0x71aecd=JSON[_0x2d6513(0x153)](_0x296b20);this[_0x2d6513(0x14d)](_0x10b454,_0x71aecd),_0x41d216+=0x1;}catch(_0x10c7f4){logger[_0x2d6513(0x13a)](_0x2d6513(0xec)+_0x302ec9+':\x20'+(_0x10c7f4&&_0x10c7f4[_0x2d6513(0x134)]?_0x10c7f4[_0x2d6513(0x134)]:_0x10c7f4));}try{fs['unlinkSync'](_0x589377);}catch(_0x42b64a){logger[_0x2d6513(0x13a)](_0x2d6513(0x16e)+_0x302ec9+':\x20'+(_0x42b64a&&_0x42b64a['message']?_0x42b64a[_0x2d6513(0x134)]:_0x42b64a));}}return _0x41d216;}}const a86_0x56f5f5={};a86_0x56f5f5[a86_0x39d494(0x132)]=getBuildTagsRunId,a86_0x56f5f5[a86_0x39d494(0xe5)]=getBuildTagsFilePath,a86_0x56f5f5['BUILD_TAG_FILE_PREFIX']=BUILD_TAG_FILE_PREFIX,CustomTagManager['_testInternals']=a86_0x56f5f5,module[a86_0x39d494(0x12e)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x3a36eb=a87_0x350c;(function(_0x24df51,_0x3dc5e3){const _0x1ca2f1=a87_0x350c,_0x3aaa76=_0x24df51();while(!![]){try{const _0x46ce4b=parseInt(_0x1ca2f1(0x7c))/0x1+-parseInt(_0x1ca2f1(0x81))/0x2*(parseInt(_0x1ca2f1(0x8a))/0x3)+-parseInt(_0x1ca2f1(0x88))/0x4+parseInt(_0x1ca2f1(0x85))/0x5+parseInt(_0x1ca2f1(0x80))/0x6*(-parseInt(_0x1ca2f1(0x7b))/0x7)+parseInt(_0x1ca2f1(0x7f))/0x8*(-parseInt(_0x1ca2f1(0x86))/0x9)+parseInt(_0x1ca2f1(0x7e))/0xa;if(_0x46ce4b===_0x3dc5e3)break;else _0x3aaa76['push'](_0x3aaa76['shift']());}catch(_0x2e4147){_0x3aaa76['push'](_0x3aaa76['shift']());}}}(a87_0x2879,0x5a33a));const {createClassLogger}=require(a87_0x3a36eb(0x89));class EventDispatcher{static #instance=null;constructor(){const _0xd371ac=a87_0x3a36eb;this[_0xd371ac(0x8b)]={};}static[a87_0x3a36eb(0x83)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}['registerObserver'](_0x55b828,_0x48bee0){const _0x14978c=a87_0x3a36eb;!this['observers'][_0x55b828]&&(this[_0x14978c(0x8b)][_0x55b828]=[]),this[_0x14978c(0x8b)][_0x55b828][_0x14978c(0x87)](_0x48bee0);}async['notifyObserver'](_0x273e90,_0x51816b){const _0x32f847=a87_0x3a36eb,_0xb225c3={'WrlpF':function(_0x521aad,_0x1dfd44){return _0x521aad(_0x1dfd44);}};if(this[_0x32f847(0x8b)][_0x273e90]){for(const _0x2964d4 of this[_0x32f847(0x8b)][_0x273e90]){await _0xb225c3[_0x32f847(0x7d)](_0x2964d4,_0x51816b);}return;}}}function a87_0x2879(){const _0x2020e9=['1386408DgwIrq','../../helpers/classLogger.js','3RLYufB','observers','378omdUxa','629816tPTFEh','WrlpF','2025420YwDwoo','64jCgOar','1986rUDFtE','556898AKmYsG','freeze','getInstance','exports','2900405hNAnCG','450054grjMCb','push'];a87_0x2879=function(){return _0x2020e9;};return a87_0x2879();}const eventDispatcher=EventDispatcher[a87_0x3a36eb(0x83)]();function a87_0x350c(_0x561781,_0x5ee0f7){const _0x287901=a87_0x2879();return a87_0x350c=function(_0x350c15,_0x426fcb){_0x350c15=_0x350c15-0x7b;let _0xae9c=_0x287901[_0x350c15];return _0xae9c;},a87_0x350c(_0x561781,_0x5ee0f7);}Object[a87_0x3a36eb(0x82)](eventDispatcher),module[a87_0x3a36eb(0x84)]=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a88_0x4d6c(_0x1d277d,_0x75c14d){const _0x2fb1b5=a88_0x2fb1();return a88_0x4d6c=function(_0x4d6cda,_0x29af8a){_0x4d6cda=_0x4d6cda-0xcd;let _0x42a990=_0x2fb1b5[_0x4d6cda];return _0x42a990;},a88_0x4d6c(_0x1d277d,_0x75c14d);}const a88_0x65dbec=a88_0x4d6c;(function(_0x35525c,_0x10b633){const _0x42533b=a88_0x4d6c,_0x5ce508=_0x35525c();while(!![]){try{const _0x3733a6=parseInt(_0x42533b(0xe1))/0x1*(-parseInt(_0x42533b(0xd7))/0x2)+-parseInt(_0x42533b(0xdf))/0x3+-parseInt(_0x42533b(0xe3))/0x4+parseInt(_0x42533b(0xe9))/0x5*(parseInt(_0x42533b(0xe8))/0x6)+parseInt(_0x42533b(0xdd))/0x7+parseInt(_0x42533b(0xe4))/0x8*(-parseInt(_0x42533b(0xd1))/0x9)+parseInt(_0x42533b(0xe7))/0xa;if(_0x3733a6===_0x10b633)break;else _0x5ce508['push'](_0x5ce508['shift']());}catch(_0xd5c3c3){_0x5ce508['push'](_0x5ce508['shift']());}}}(a88_0x2fb1,0x42f73));const {createClassLogger}=require('../../../helpers/classLogger.js'),util=require(a88_0x65dbec(0xd4)),eventDispatcher=require(a88_0x65dbec(0xda)),CLIUtils=require(a88_0x65dbec(0xee)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger('AutomationFramework');class AutomationFramework{static [a88_0x65dbec(0xec)]=new Map();static [a88_0x65dbec(0xd2)]=a88_0x65dbec(0xd6);static [a88_0x65dbec(0xef)]='non_browserstack_automation_sessions';constructor(_0x2fd906,_0xef26a8){const _0x17d6a1=a88_0x65dbec;this['automationFrameworkName']=_0x2fd906,this[_0x17d6a1(0xe5)]=_0xef26a8;}['getAutomationFrameworkName'](){return this['automationFrameworkName'];}[a88_0x65dbec(0xdc)](){const _0x1efdb8=a88_0x65dbec;return this[_0x1efdb8(0xe5)];}async[a88_0x65dbec(0xce)](_0x27bf42,_0x1b9bd4,_0x29e3b7={}){const _0x1cc4bf=a88_0x65dbec;logger['debug'](_0x1cc4bf(0xd9)+_0x27bf42+_0x1cc4bf(0xeb)+_0x1b9bd4);}async[a88_0x65dbec(0xe2)](_0x42c09e,_0x4b5589,_0x16b49e,_0x307760={}){const _0x353b2e=a88_0x65dbec,_0x5273d0=CLIUtils['getHookRegistryKey'](_0x4b5589,_0x16b49e);_0x42c09e&&_0x42c09e[_0x353b2e(0xea)](_0x4b5589),await eventDispatcher[_0x353b2e(0xcf)](_0x5273d0,_0x307760);}static['registerObserver'](_0x293572,_0x435822,_0x103272){const _0x532183=a88_0x65dbec;eventDispatcher['registerObserver'](CLIUtils[_0x532183(0xe0)](_0x293572,_0x435822),_0x103272);}static[a88_0x65dbec(0xed)](_0x377417,_0x563123){const _0x48d663=a88_0x65dbec;AutomationFramework[_0x48d663(0xec)][_0x48d663(0xde)](_0x377417['getId'](),_0x563123);}static[a88_0x65dbec(0xd8)](){const _0x169f4e=a88_0x65dbec,_0x1d908d=TrackedInstance[_0x169f4e(0xd3)](CLIUtils[_0x169f4e(0xcd)]());return AutomationFramework[_0x169f4e(0xec)]['get'](_0x1d908d[_0x169f4e(0xdb)]());}static[a88_0x65dbec(0xea)](_0x5edcdc,_0x225046,_0x4d47f1){const _0x5cbff9=a88_0x65dbec;_0x5edcdc[_0x5cbff9(0xd5)]()[_0x5cbff9(0xde)](_0x225046,_0x4d47f1);}static['getState'](_0x1bec6d,_0x64623){const _0x21c951=a88_0x65dbec;return _0x1bec6d['getAllData']()[_0x21c951(0xe6)](_0x64623);}}function a88_0x2fb1(){const _0x3c9771=['exports','3478671ZNjIGl','KEY_AUTOMATION_SESSIONS','createContext','util','getAllData','automation_sessions','40CZSeQy','getTrackedInstance','trackEvent:\x20automationFrameworkState=','../eventDispatcher.js','getId','getAutomationFrameworkVersion','1411116adVAmS','set','1331154QVaPgB','getHookRegistryKey','21767DmKRuG','runHooks','31308Kepchz','8lAgYfu','automationFrameworkVersion','get','12255090RuNDsk','361794ievtkX','10sOZWbC','setState','\x20hookState=','instances','setTrackedInstance','../cliUtils.js','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','getCurrentInstanceName','trackEvent','notifyObserver'];a88_0x2fb1=function(){return _0x3c9771;};return a88_0x2fb1();}module[a88_0x65dbec(0xd0)]=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x26bb69=a89_0x12c0;(function(_0xe2921a,_0x21c32c){const _0x3960d5=a89_0x12c0,_0x429c2f=_0xe2921a();while(!![]){try{const _0x48360d=-parseInt(_0x3960d5(0xbe))/0x1+parseInt(_0x3960d5(0xb4))/0x2*(parseInt(_0x3960d5(0xbc))/0x3)+parseInt(_0x3960d5(0xb7))/0x4+parseInt(_0x3960d5(0xc1))/0x5*(-parseInt(_0x3960d5(0xaf))/0x6)+parseInt(_0x3960d5(0xab))/0x7*(parseInt(_0x3960d5(0xb5))/0x8)+parseInt(_0x3960d5(0xc0))/0x9*(parseInt(_0x3960d5(0xa6))/0xa)+-parseInt(_0x3960d5(0xc5))/0xb;if(_0x48360d===_0x21c32c)break;else _0x429c2f['push'](_0x429c2f['shift']());}catch(_0x17f25b){_0x429c2f['push'](_0x429c2f['shift']());}}}(a89_0xa2e7,0x53e4e));const a89_0x173946={};function a89_0x12c0(_0xe3bdc1,_0x24692b){const _0xa2e7ce=a89_0xa2e7();return a89_0x12c0=function(_0x12c0d0,_0x39d773){_0x12c0d0=_0x12c0d0-0xa5;let _0xab4c00=_0xa2e7ce[_0x12c0d0];return _0xab4c00;},a89_0x12c0(_0xe3bdc1,_0x24692b);}a89_0x173946['ENV_BROWSERSTACK_PLATFORM_INDEX']=a89_0x26bb69(0xba),a89_0x173946[a89_0x26bb69(0xbf)]='hub_url',a89_0x173946[a89_0x26bb69(0xb8)]=a89_0x26bb69(0xc2),a89_0x173946[a89_0x26bb69(0xc7)]=a89_0x26bb69(0xb6),a89_0x173946[a89_0x26bb69(0xb0)]=a89_0x26bb69(0xb1),a89_0x173946[a89_0x26bb69(0xa7)]='is_browserstack_hub',a89_0x173946[a89_0x26bb69(0xb9)]=a89_0x26bb69(0xa5),a89_0x173946[a89_0x26bb69(0xae)]=a89_0x26bb69(0xac),a89_0x173946['KEY_PLATFORM_INDEX']=a89_0x26bb69(0xad),a89_0x173946[a89_0x26bb69(0xc3)]=a89_0x26bb69(0xaa),a89_0x173946[a89_0x26bb69(0xb2)]=a89_0x26bb69(0xc6),a89_0x173946[a89_0x26bb69(0xa9)]=a89_0x26bb69(0xbb),a89_0x173946['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a89_0x173946[a89_0x26bb69(0xbd)]='w3cexecutescriptasync',a89_0x173946[a89_0x26bb69(0xa8)]=a89_0x26bb69(0xb3);function a89_0xa2e7(){const _0xfd39c3=['screenshot','3Qcsere','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','295316GotUVA','KEY_HUB_URL','10494ulqOLR','15aIZrrW','framework_session_id','COMMAND_NEW_SESSION','exports','3518218FwFiHi','get','KEY_INPUT_CAPABILITIES','started_at','2560ExeGQD','KEY_IS_BROWSERSTACK_HUB','COMMAND_QUIT','COMMAND_SCREENSHOT','newsession','18543kMKvdn','ended_at','platform_index','KEY_ENDED_AT','259746STlHRE','KEY_CAPABILITIES','capabilities','COMMAND_GET','quit','949714pWQvxm','168ZhuKwo','input_capabilities','1038700iUqkQX','KEY_FRAMEWORK_SESSION_ID','KEY_STARTED_AT','BROWSERSTACK_PLATFORM_INDEX'];a89_0xa2e7=function(){return _0xfd39c3;};return a89_0xa2e7();}const AutomationFrameworkConstants=a89_0x173946;module[a89_0x26bb69(0xc4)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a90_0x13bc(_0xc3ffad,_0x50b7cb){const _0x5b3907=a90_0x5b39();return a90_0x13bc=function(_0x13bc0b,_0xcdf961){_0x13bc0b=_0x13bc0b-0x179;let _0x1554f9=_0x5b3907[_0x13bc0b];return _0x1554f9;},a90_0x13bc(_0xc3ffad,_0x50b7cb);}const a90_0x267ad5=a90_0x13bc;(function(_0x2ebe3c,_0x3359c6){const _0x34d521=a90_0x13bc,_0x38a9b0=_0x2ebe3c();while(!![]){try{const _0x51b4ed=parseInt(_0x34d521(0x19c))/0x1+parseInt(_0x34d521(0x1b5))/0x2+-parseInt(_0x34d521(0x1c5))/0x3*(-parseInt(_0x34d521(0x192))/0x4)+-parseInt(_0x34d521(0x1ab))/0x5+-parseInt(_0x34d521(0x1b7))/0x6+-parseInt(_0x34d521(0x17c))/0x7+parseInt(_0x34d521(0x196))/0x8*(-parseInt(_0x34d521(0x1c4))/0x9);if(_0x51b4ed===_0x3359c6)break;else _0x38a9b0['push'](_0x38a9b0['shift']());}catch(_0x37112c){_0x38a9b0['push'](_0x38a9b0['shift']());}}}(a90_0x5b39,0x71122));function a90_0x5b39(){const _0x1f010e=['exports','TEST_SCREENSHOT','KEY_TEST_FAILURE','retry_of','KEY_TEST_ENDED_AT','KEY_AUTOMATE_SESSION_REASON','2709drGmZD','18iYIIzd','event_started_at','KEY_PLATFORM_INDEX','KEY_TEST_LOGS','test_failure','MAX_TOP_LEVEL_STEPS','test_hook_last_finished','test_session_name','pending','test_framework_name','hook_logs','test_hook_last_started','KEY_FILE_LEVEL','HOOK_REGEX','KEY_HOOKS_FINISHED','automate_session_reason','KEY_HOOK_FAILURE_TYPE','custom_metadata','4177166orKViT','KEY_HOOKS_STARTED','KEY_EVENT_STARTED_AT','KEY_FILE_NAME','automate_session_name','KEY_CUSTOM_TAGS','file_level','KEY_TEST_TAGS','hook_failure_type','KEY_TEST_META','hook_failure_reason','KEY_HOOK_NAME','file_name','KEY_TEST_FRAMEWORK_VERSION','test_attachments','KEY_TEST_ID','test_hooks_started','KEY_TEST_SCREENSHOTS','KEY_FILE_PATH','KEY_TEST_UUID','KEY_TEST_FILE_PATH','file_size','505812phDYAI','test_rerun_name','KEY_TEST_FRAMEWORK_NAME','KEY_EVENT_ENDED_AT','14024YRIVdz','test_file_path','KEY_TEST_NAME','platform_index','test_failure_type','hook_failure','677330pnKIZL','KEY_TEST_FAILURE_REASON','test_name','KEY_HOOK_FAILURE_REASON','KEY_TEST_CODE','test_logs','test_duration','KEY_AUTOMATE_SESSION_STATUS','test_meta','test_screenshots','hook_result','test_framework_version','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_FAILURE_TYPE','DEFAULT_HOOK_RESULT','2289210grroIZ','KEY_SESSION_NAME','KEY_TEST_ATTACHMENTS','test_id','event_ended_at','KEY_TEST_RESULT','test_result_at','KEY_HOOK_RESULT','TEST_LOG','KEY_HOOK_ID','1791216HjhiCv','test_code','1717710dXySlD','test_result','test_started_at','KEY_TEST_RESULT_AT','file_path','test_location','automate_session_status'];a90_0x5b39=function(){return _0x1f010e;};return a90_0x5b39();}const a90_0x2c32ce={};a90_0x2c32ce[a90_0x267ad5(0x18f)]='test_uuid',a90_0x2c32ce[a90_0x267ad5(0x18b)]=a90_0x267ad5(0x1ae),a90_0x2c32ce[a90_0x267ad5(0x198)]=a90_0x267ad5(0x19e),a90_0x2c32ce[a90_0x267ad5(0x190)]=a90_0x267ad5(0x197),a90_0x2c32ce[a90_0x267ad5(0x183)]='test_tags',a90_0x2c32ce[a90_0x267ad5(0x1b0)]=a90_0x267ad5(0x1b8),a90_0x2c32ce[a90_0x267ad5(0x1ba)]=a90_0x267ad5(0x1b1),a90_0x2c32ce['KEY_TEST_STARTED_AT']=a90_0x267ad5(0x1b9),a90_0x2c32ce[a90_0x267ad5(0x1c2)]='test_ended_at',a90_0x2c32ce['KEY_TEST_LOCATION']=a90_0x267ad5(0x1bc),a90_0x2c32ce['KEY_TEST_DURATION']=a90_0x267ad5(0x1a2),a90_0x2c32ce['KEY_TEST_SCOPE']='test_scope',a90_0x2c32ce['KEY_TEST_SCOPES']='test_scopes',a90_0x2c32ce[a90_0x267ad5(0x194)]=a90_0x267ad5(0x1ce),a90_0x2c32ce[a90_0x267ad5(0x189)]=a90_0x267ad5(0x1a7),a90_0x2c32ce[a90_0x267ad5(0x1a0)]=a90_0x267ad5(0x1b6),a90_0x2c32ce['KEY_TEST_RERUN_NAME']=a90_0x267ad5(0x193),a90_0x2c32ce['KEY_TEST_RETRY_OF']=a90_0x267ad5(0x1c1),a90_0x2c32ce[a90_0x267ad5(0x1c7)]=a90_0x267ad5(0x199),a90_0x2c32ce[a90_0x267ad5(0x1c0)]=a90_0x267ad5(0x1c9),a90_0x2c32ce[a90_0x267ad5(0x1a9)]=a90_0x267ad5(0x19a),a90_0x2c32ce[a90_0x267ad5(0x19d)]='test_failure_reason',a90_0x2c32ce[a90_0x267ad5(0x1c8)]=a90_0x267ad5(0x1a1),a90_0x2c32ce[a90_0x267ad5(0x185)]=a90_0x267ad5(0x1a4),a90_0x2c32ce[a90_0x267ad5(0x1ac)]=a90_0x267ad5(0x1cc),a90_0x2c32ce[a90_0x267ad5(0x1a8)]=a90_0x267ad5(0x180),a90_0x2c32ce[a90_0x267ad5(0x1a3)]=a90_0x267ad5(0x1bd),a90_0x2c32ce[a90_0x267ad5(0x1c3)]=a90_0x267ad5(0x179),a90_0x2c32ce[a90_0x267ad5(0x17e)]=a90_0x267ad5(0x1c6),a90_0x2c32ce[a90_0x267ad5(0x195)]=a90_0x267ad5(0x1af),a90_0x2c32ce[a90_0x267ad5(0x1b4)]='hook_id',a90_0x2c32ce[a90_0x267ad5(0x1b2)]=a90_0x267ad5(0x1a6),a90_0x2c32ce[a90_0x267ad5(0x17a)]=a90_0x267ad5(0x184),a90_0x2c32ce[a90_0x267ad5(0x19f)]=a90_0x267ad5(0x186),a90_0x2c32ce['KEY_HOOK_FAILURE']=a90_0x267ad5(0x19b),a90_0x2c32ce['KEY_HOOK_LOGS']=a90_0x267ad5(0x1cf),a90_0x2c32ce[a90_0x267ad5(0x187)]='hook_name',a90_0x2c32ce['DEFAULT_TEST_RESULT']=a90_0x267ad5(0x1cd),a90_0x2c32ce[a90_0x267ad5(0x1aa)]=a90_0x267ad5(0x1cd),a90_0x2c32ce['KIND_SCREENSHOT']=a90_0x267ad5(0x1bf),a90_0x2c32ce['KIND_LOG']=a90_0x267ad5(0x1b3),a90_0x2c32ce[a90_0x267ad5(0x1d2)]='^(BEFORE_|AFTER_)',a90_0x2c32ce[a90_0x267ad5(0x17d)]=a90_0x267ad5(0x18c),a90_0x2c32ce[a90_0x267ad5(0x1d3)]='test_hooks_finished',a90_0x2c32ce['KEY_HOOK_LAST_STARTED']=a90_0x267ad5(0x1d0),a90_0x2c32ce['KEY_HOOK_LAST_FINISHED']=a90_0x267ad5(0x1cb),a90_0x2c32ce['KEY_LOGS']='logs',a90_0x2c32ce[a90_0x267ad5(0x181)]=a90_0x267ad5(0x17b),a90_0x2c32ce[a90_0x267ad5(0x1ad)]=a90_0x267ad5(0x18a),a90_0x2c32ce['KEY_FILE_SIZE']=a90_0x267ad5(0x191),a90_0x2c32ce[a90_0x267ad5(0x17f)]=a90_0x267ad5(0x188),a90_0x2c32ce[a90_0x267ad5(0x18e)]=a90_0x267ad5(0x1bb),a90_0x2c32ce[a90_0x267ad5(0x1d1)]=a90_0x267ad5(0x182),a90_0x2c32ce[a90_0x267ad5(0x18d)]=a90_0x267ad5(0x1a5),a90_0x2c32ce[a90_0x267ad5(0x1ca)]=0xa,a90_0x2c32ce['MAX_NESTED_STEP_DEPTH']=0x2;const TestFrameworkConstants=a90_0x2c32ce;module[a90_0x267ad5(0x1be)]=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a91_0x1dab6d=a91_0x41f8;(function(_0xd40be2,_0x1ff2df){const _0xcc25f7=a91_0x41f8,_0x2f8186=_0xd40be2();while(!![]){try{const _0xcf9933=parseInt(_0xcc25f7(0x1a6))/0x1*(-parseInt(_0xcc25f7(0x102))/0x2)+parseInt(_0xcc25f7(0x185))/0x3+-parseInt(_0xcc25f7(0x125))/0x4+-parseInt(_0xcc25f7(0x165))/0x5*(-parseInt(_0xcc25f7(0x1c2))/0x6)+parseInt(_0xcc25f7(0x109))/0x7*(-parseInt(_0xcc25f7(0x136))/0x8)+-parseInt(_0xcc25f7(0x18f))/0x9*(-parseInt(_0xcc25f7(0x1a8))/0xa)+parseInt(_0xcc25f7(0x1c6))/0xb*(parseInt(_0xcc25f7(0x1c0))/0xc);if(_0xcf9933===_0x1ff2df)break;else _0x2f8186['push'](_0x2f8186['shift']());}catch(_0x12428e){_0x2f8186['push'](_0x2f8186['shift']());}}}(a91_0x21f0,0xd5e0e));const TestFramework=require('./testFramework'),TestFrameworkState=require(a91_0x1dab6d(0x187)),HookState=require(a91_0x1dab6d(0x175)),{createClassLogger}=require(a91_0x1dab6d(0x1bb)),TestFrameworkInstance=require(a91_0x1dab6d(0x1b1)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a91_0x1dab6d(0x176)),TestFrameworkConstants=require(a91_0x1dab6d(0x15f)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x1dab6d(0x12f)),logger=createClassLogger(a91_0x1dab6d(0x100)),{v4:uuidv4}=require('uuid'),util=require(a91_0x1dab6d(0x188)),TestInfo=require(a91_0x1dab6d(0x1a2)),GrpcClient=require(a91_0x1dab6d(0xff));function a91_0x21f0(){const _0x5b5a34=['\x20hookState:\x20','finished_at','./constants/testFrameworkConstants.js','\x20response=','getCurrentInstanceName','LOG_REPORT','KEY_TEST_ID','setTestDetails','2350195uLmLJD','Error\x20in\x20createTestFrameworkEventPayload:\x20','KEY_TEST_FRAMEWORK_VERSION','meta','NONE','storePendingHook','tags','unknown','testFrameworkVersion','\x20for\x20test:\x20','GPLvx','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','getThreadId','KEY_TEST_LOGS','\x20payload=','../state/hookState.js','../instances/trackedInstance.js','Oekwj','getPendingHooks','browserstackPlatformIndex','error','KEY_HOOK_FAILURE','testUUID','get','testData','wmvXV','code','getTestUUID','endedAt','ZqgVb','DEFAULT_TEST_RESULT','4675152sEtXfH','KEY_EVENT_ENDED_AT','../state/testFrameworkState.js','util','body','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','getAllData','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','addMultipleEntries','concat','927ygYDcF','KEY_CUSTOM_TAGS','Updated\x20cucumber\x20test\x20result:\x20','getContext','started_at','KEY_AUTOMATE_SESSION_NAME','result','format','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','getCurrentHookState','KEY_TEST_LOCATION','tRNTT','test_run_id','processPendingHooks','adDsm','keys','toISOString','Wjgdm','TqPLV','../TestInfo.js','executionContext','createContext','KEY_TEST_NAME','1bLVEyt','from','110020IjUcPo','\x20\x20and\x20args\x20=\x20','sendLogCreatedEvent:\x20for\x20testId:\x20','debug','split','location','LXZla','trackEvent:\x20unsupported\x20testFrameworkState=','KEY_TEST_STARTED_AT','../instances/testFrameworkInstance.js','getTestDetails','runHooks','KEY_TEST_RERUN_NAME','cgZZM','KEY_TEST_RESULT','Processing\x20','PRE','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','ySRfN','../../../helpers/classLogger.js','createTestFrameworkEventPayload','getCurrentTestState','length','TYtGI','12ZDcoko','KEY_TEST_TAGS','6wEdTAE','matchHookRegex','instance','LsTDy','9591824GqQRfl','KEY_TEST_SCOPE','MJjPE','failure_reason',',\x20error:\x20','GmCei','testFrameworkName','../grpcClient','CucumberTestFramework','KEY_HOOK_RESULT','1898954ozRvCF','name','args','failure','sendLogCreatedEvent','getProcessId',',\x20hookState:\x20','7854637ywJsuJ','removePendingHooks','getTestFrameworksVersions','KEY_HOOKS_STARTED','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KEY_TEST_FAILURE_TYPE','hook_type','rerun_name','trackHookEvent','iDugN','getTestFrameworks',',\x20storing\x20as\x20pending\x20hook','KEY_HOOK_LAST_STARTED','uuid','failure_data','trackEvent','zpYqF','KEY_TEST_META','KEY_EVENT_STARTED_AT','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','inspect','KEY_HOOK_LAST_FINISHED','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','\x20&\x20hookState=','key','DEFAULT_HOOK_RESULT','hooks','INSSK','4343996QUevYQ','KEY_HOOKS_FINISHED','XBoAA','slice','XcjFV','parseCucumberTestResult','platformIndex','createTestFrameworkEventPayload\x20testId:\x20','\x20testState:\x20','failure_type','../../../helpers/helper.js','KEY_TEST_ENDED_AT','failed','lsOte','getId','hookState','TEST','8vsXtDL','UnhandledError','\x20with\x20UUID:\x20','kcATa','ozftB','stringify','sytMf','parseCucumberTest','getTrackedInstance',',\x20state:\x20','bTaeT','Stored\x20pending\x20hook\x20for\x20testId:\x20','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','POST','addPendingHook','KEY_TEST_RESULT_AT','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','KEY_TEST_SCOPES','exports','Anbjv','KEY_TEST_FRAMEWORK_NAME','push','test','Cucumber\x20log\x20created\x20event','KEY_LOGS','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','KEY_TEST_CODE','resolveInstance','OAXHg','KEY_TEST_UUID','GPPoA','getRef','\x20with\x20result:\x20','toString','KEY_TEST_ATTACHMENTS','trackCucumberInstance','KEY_HOOK_ID','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','\x20batch\x20'];a91_0x21f0=function(){return _0x5b5a34;};return a91_0x21f0();}function a91_0x41f8(_0x3eb95a,_0x29f895){const _0x21f038=a91_0x21f0();return a91_0x41f8=function(_0x41f842,_0x1d552c){_0x41f842=_0x41f842-0xff;let _0x1267a1=_0x21f038[_0x41f842];return _0x1267a1;},a91_0x41f8(_0x3eb95a,_0x29f895);}class CucumberTestFramework extends TestFramework{constructor(_0x50a7c2,_0x14bd1d,_0x5c871e){super(_0x50a7c2,_0x14bd1d,_0x5c871e);}async[a91_0x1dab6d(0x118)](_0x3d77cb,_0x1fd55b,_0x19f083={}){const _0x1fcaf9=a91_0x1dab6d,_0x493ae4={};_0x493ae4[_0x1fcaf9(0x1bf)]=_0x1fcaf9(0x170),_0x493ae4[_0x1fcaf9(0x140)]=function(_0xaf3a9a,_0x302258){return _0xaf3a9a===_0x302258;},_0x493ae4[_0x1fcaf9(0x17f)]=function(_0x619169,_0x1a619a){return _0x619169===_0x1a619a;},_0x493ae4[_0x1fcaf9(0x1b5)]=_0x1fcaf9(0x18c);const _0x42e0b9=_0x493ae4;await super[_0x1fcaf9(0x118)](_0x3d77cb,_0x1fd55b,_0x19f083);const _0x32f397=this['resolveInstance'](_0x3d77cb,_0x1fd55b,_0x19f083);if(!_0x32f397){logger[_0x1fcaf9(0x1ab)](_0x42e0b9[_0x1fcaf9(0x1bf)]);return;}try{let _0x21bb99,_0x264b07;switch(_0x3d77cb){case TestFrameworkState['TEST']:_0x21bb99=_0x19f083['test'],_0x264b07=TestInfo[_0x1fcaf9(0x181)](_0x21bb99['id']);if(_0x42e0b9[_0x1fcaf9(0x140)](_0x1fd55b,HookState[_0x1fcaf9(0x1b8)])){logger['debug'](_0x1fcaf9(0x197)+_0x21bb99['id']);const _0x5595d3={};_0x5595d3['testUUID']=_0x264b07,_0x5595d3['testData']=_0x21bb99,_0x32f397[_0x1fcaf9(0x18d)](this[_0x1fcaf9(0x13d)](_0x5595d3)),logger['debug'](_0x1fcaf9(0x142)+_0x21bb99['id']),await this[_0x1fcaf9(0x19c)](_0x32f397,_0x21bb99['id']);}else{if(_0x42e0b9[_0x1fcaf9(0x140)](_0x1fd55b,HookState[_0x1fcaf9(0x143)])){const _0x235ff4={};_0x235ff4[_0x1fcaf9(0x17c)]=_0x264b07,_0x235ff4[_0x1fcaf9(0x17e)]=_0x21bb99,_0x32f397[_0x1fcaf9(0x18d)](this[_0x1fcaf9(0x12a)](_0x235ff4)),await this[_0x1fcaf9(0x19c)](_0x32f397,_0x21bb99['id']);}}break;case TestFrameworkState[_0x1fcaf9(0x162)]:_0x42e0b9[_0x1fcaf9(0x17f)](_0x1fd55b,HookState[_0x1fcaf9(0x143)])&&await this['sendLogCreatedEvent'](_0x32f397,_0x3d77cb,_0x19f083);break;default:if(CLIUtils[_0x1fcaf9(0x1c3)](_0x3d77cb['toString']()[_0x1fcaf9(0x1ac)]('.')[0x1])){const _0x38c52f=await this['trackHookEvent'](_0x32f397,_0x3d77cb,_0x1fd55b,_0x19f083);_0x32f397[_0x1fcaf9(0x18d)](_0x38c52f);}else logger[_0x1fcaf9(0x1ab)](_0x1fcaf9(0x1af)+_0x3d77cb+_0x1fcaf9(0x120)+_0x1fd55b);break;}}catch(_0x3dea23){logger[_0x1fcaf9(0x17a)](util[_0x1fcaf9(0x196)](_0x42e0b9['cgZZM'],_0x3d77cb,_0x1fd55b,_0x19f083[_0x1fcaf9(0x1be)],_0x3dea23));}_0x19f083[_0x1fcaf9(0x1c4)]=_0x32f397,await this[_0x1fcaf9(0x1b3)](_0x32f397,_0x3d77cb,_0x1fd55b,_0x19f083);}[a91_0x1dab6d(0x151)](_0x469bed,_0x5582aa,_0x23a96a={}){const _0x4deead=a91_0x1dab6d,_0x2b06bf={};_0x2b06bf[_0x4deead(0x1cb)]=function(_0x5d3e6f,_0x5eed6b){return _0x5d3e6f===_0x5eed6b;},_0x2b06bf[_0x4deead(0x13c)]=function(_0xad55ce,_0x155df2){return _0xad55ce===_0x155df2;};const _0x49251f=_0x2b06bf;let _0x400e55=null;return(_0x49251f[_0x4deead(0x1cb)](_0x469bed,TestFrameworkState['INIT_TEST'])||_0x49251f[_0x4deead(0x13c)](_0x469bed,TestFrameworkState[_0x4deead(0x169)]))&&this[_0x4deead(0x159)](_0x469bed,_0x23a96a),_0x400e55=TestFramework[_0x4deead(0x13e)](),_0x400e55;}['trackCucumberInstance'](_0x418057,_0x5e3128){const _0x57c29=a91_0x1dab6d,_0x552de0=CLIUtils[_0x57c29(0x161)](),_0xf948c7=TrackedInstance[_0x57c29(0x1a4)](_0x552de0);let _0x5d2d89=null;logger[_0x57c29(0x1ab)]('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0x552de0+',\x20state='+_0x418057),_0x5d2d89=new TestFrameworkInstance(_0xf948c7,this[_0x57c29(0x113)](),this[_0x57c29(0x10b)](),_0x418057,HookState[_0x57c29(0x169)]),TestFramework['setTrackedInstance'](_0xf948c7,_0x5d2d89),logger[_0x57c29(0x1ab)]('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0xf948c7[_0x57c29(0x133)]()+'\x20target='+_0x552de0);}[a91_0x1dab6d(0x13d)](_0x34f1cf){const _0x436ce6=a91_0x1dab6d,_0x3ac06d={};_0x3ac06d[_0x436ce6(0x1ba)]='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x1710f4=_0x3ac06d,{testUUID:_0x2977f8,testData:_0x1336b4}=_0x34f1cf;if(!_0x1336b4||!_0x1336b4[_0x436ce6(0x116)])return logger[_0x436ce6(0x1ab)](_0x1710f4[_0x436ce6(0x1ba)]),{};const _0x2144a8=_0x2977f8,_0x3f4bf2=_0x1336b4['uuid'],_0x57b8ab=this[_0x436ce6(0x113)]()[0x0],_0x6240de=this[_0x436ce6(0x10b)](),_0x5ca919={[TestFrameworkConstants[_0x436ce6(0x14a)]]:_0x57b8ab,[TestFrameworkConstants[_0x436ce6(0x167)]]:_0x6240de[_0x57b8ab],[TestFrameworkConstants[_0x436ce6(0x173)]]:[],[TestFrameworkConstants[_0x436ce6(0x126)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants[_0x436ce6(0x153)]]:_0x2144a8,[TestFrameworkConstants[_0x436ce6(0x1b6)]]:TestFrameworkConstants[_0x436ce6(0x184)],[TestFrameworkConstants[_0x436ce6(0x194)]]:_0x1336b4[_0x436ce6(0x103)]||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x1336b4['file_name']||'',[TestFrameworkConstants[_0x436ce6(0x163)]]:_0x3f4bf2,[TestFrameworkConstants[_0x436ce6(0x1a5)]]:_0x1336b4[_0x436ce6(0x103)]||'',[TestFrameworkConstants[_0x436ce6(0x199)]]:_0x1336b4[_0x436ce6(0x1ad)]||'',[TestFrameworkConstants[_0x436ce6(0x150)]]:_0x1336b4[_0x436ce6(0x189)]?.[_0x436ce6(0x180)]||null,[TestFrameworkConstants[_0x436ce6(0x1c1)]]:_0x1336b4[_0x436ce6(0x16b)]||[],[TestFrameworkConstants[_0x436ce6(0x1b0)]]:_0x1336b4['startedAt']||new Date()['toISOString'](),[TestFrameworkConstants[_0x436ce6(0x1c7)]]:_0x1336b4['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x436ce6(0x147)]]:_0x1336b4['scopes']||[],[TestFrameworkConstants[_0x436ce6(0x1b4)]]:_0x1336b4['customRerunParam']?.[_0x436ce6(0x110)]||_0x1336b4[_0x436ce6(0x103)]||'',[TestFrameworkConstants[_0x436ce6(0x190)]]:{},[TestFrameworkConstants[_0x436ce6(0x11a)]]:_0x1336b4[_0x436ce6(0x168)]||{}};TestInfo['setTestDetails'](_0x3f4bf2,_0x5ca919),logger[_0x436ce6(0x1ab)]('Parsed\x20cucumber\x20test:\x20'+_0x1336b4[_0x436ce6(0x103)]+_0x436ce6(0x138)+_0x2144a8);const _0x33a2a5={};return _0x33a2a5[_0x3f4bf2]=_0x5ca919,_0x33a2a5;}[a91_0x1dab6d(0x12a)](_0x1b03d6){const _0x594321=a91_0x1dab6d,_0x58c9de={'MJjPE':_0x594321(0x146),'VWROo':_0x594321(0x16c),'Anbjv':function(_0x38751d,_0x26d371){return _0x38751d===_0x26d371;},'kcATa':_0x594321(0x131),'adDsm':_0x594321(0x137),'PjtCK':function(_0x2bbf67,_0x14d45e,_0x4b14aa){return _0x2bbf67(_0x14d45e,_0x4b14aa);},'INSSK':function(_0x3f52be,_0x316ed5){return _0x3f52be>_0x316ed5;}},{testUUID:_0x16fec0,testData:_0x4952cf}=_0x1b03d6;if(!_0x4952cf||!_0x4952cf[_0x594321(0x116)])return logger[_0x594321(0x1ab)](_0x58c9de[_0x594321(0x1c8)]),{};const _0x3e89a3=this[_0x594321(0x151)](TestFrameworkState[_0x594321(0x135)],HookState[_0x594321(0x143)]),_0x550044=_0x4952cf['uuid'],_0x3abd7f=TestInfo[_0x594321(0x1b2)](_0x550044)||{},_0x2284a7=_0x3abd7f?_0x3abd7f[TestFrameworkConstants[_0x594321(0x190)]]||{}:{},_0x27360a={..._0x3abd7f,[TestFrameworkConstants[_0x594321(0x1b6)]]:_0x4952cf[_0x594321(0x195)]||_0x58c9de['VWROo'],[TestFrameworkConstants[_0x594321(0x130)]]:_0x4952cf['finishedAt']||new Date()['toISOString'](),[TestFrameworkConstants[_0x594321(0x145)]]:new Date()[_0x594321(0x19f)](),[TestFrameworkConstants[_0x594321(0x190)]]:_0x2284a7,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants[_0x594321(0x11a)]]:_0x4952cf[_0x594321(0x168)]||{}};_0x58c9de[_0x594321(0x149)](_0x4952cf[_0x594321(0x195)],_0x58c9de[_0x594321(0x139)])&&_0x4952cf[_0x594321(0x105)]&&(_0x27360a[TestFrameworkConstants[_0x594321(0x10e)]]=_0x4952cf[_0x594321(0x12e)]||_0x58c9de[_0x594321(0x19d)],_0x27360a[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x4952cf[_0x594321(0x1c9)]||'',_0x27360a[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x4952cf[_0x594321(0x105)]);const _0x23d8f4=TestInfo['getTestDetails'](_0x550044)[TestFrameworkConstants[_0x594321(0x158)]]||{},_0x5443f6=_0x58c9de['PjtCK'](getManualUploadLogs,_0x23d8f4,_0x3e89a3[_0x594321(0x18b)]()[_0x594321(0x17d)](_0x550044)[TestFrameworkConstants[_0x594321(0x153)]]);if(_0x58c9de['INSSK'](_0x5443f6[_0x594321(0x1be)],0x0)){const _0x410e8f=_0x27360a[TestFrameworkConstants[_0x594321(0x14e)]]||[];_0x27360a[TestFrameworkConstants[_0x594321(0x14e)]]=[..._0x410e8f,..._0x5443f6];}_0x4952cf[_0x594321(0x123)]&&_0x58c9de[_0x594321(0x124)](_0x4952cf[_0x594321(0x123)]['length'],0x0)&&(_0x27360a[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x4952cf['hooks']);TestInfo[_0x594321(0x164)](_0x550044,_0x27360a),logger['debug'](_0x594321(0x191)+_0x4952cf[_0x594321(0x103)]+_0x594321(0x156)+_0x4952cf[_0x594321(0x195)]);const _0x587393={};return _0x587393[_0x550044]=_0x27360a,_0x587393;}async['trackHookEvent'](_0x5c48e4,_0x12781f,_0x375348,_0x282049){const _0x516fe8=a91_0x1dab6d,_0x3e94d6={'vjbSM':_0x516fe8(0x171),'kSqrf':function(_0x4d6337){return _0x4d6337();},'GPPoA':function(_0x5301eb,_0x2dc267){return _0x5301eb in _0x2dc267;},'GPLvx':function(_0x8b6ee8,_0x26387b){return _0x8b6ee8 in _0x26387b;},'Oekwj':function(_0x3d52d8,_0x3b3b74){return _0x3d52d8===_0x3b3b74;},'TqPLV':function(_0x1e6424,_0x5c0600){return _0x1e6424===_0x5c0600;},'tRNTT':function(_0x362baa,_0x5dafc5){return _0x362baa>_0x5dafc5;},'zpYqF':_0x516fe8(0x131),'LsTDy':'UnhandledError','ZqgVb':'passed','imsQe':function(_0x4496df,_0x2a0b60){return _0x4496df!==_0x2a0b60;}},{hookData:_0x39d7da}=_0x282049;if(!_0x39d7da)return logger['debug'](_0x3e94d6['vjbSM']),{};const _0x5874c0=_0x39d7da[_0x516fe8(0x116)]||_0x3e94d6['kSqrf'](uuidv4),_0x96658e=_0x39d7da[_0x516fe8(0x19b)],_0x498b99=_0x12781f[_0x516fe8(0x157)]()[_0x516fe8(0x1ac)]('.')[0x1],_0x1075df=TestInfo[_0x516fe8(0x1b2)](_0x96658e)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x2b2790=_0x5c48e4[_0x516fe8(0x18b)]()[_0x516fe8(0x17d)](_0x96658e);if(!_0x2b2790)return logger[_0x516fe8(0x1ab)](_0x516fe8(0x11c)+_0x96658e+_0x516fe8(0x114)),this['storePendingHook'](_0x5c48e4,_0x96658e,_0x12781f,_0x375348,_0x282049),{};let _0x40dfc3=_0x2b2790[TestFrameworkConstants[_0x516fe8(0x10c)]];!_0x40dfc3&&(_0x40dfc3={});!_0x3e94d6[_0x516fe8(0x154)](_0x498b99,_0x40dfc3)&&(_0x40dfc3[_0x498b99]=[]);let _0xa50b4f=_0x2b2790[TestFrameworkConstants[_0x516fe8(0x126)]];!_0xa50b4f&&(_0xa50b4f={});!_0x3e94d6[_0x516fe8(0x16f)](_0x498b99,_0xa50b4f)&&(_0xa50b4f[_0x498b99]=[]);const _0x5e3f8f={[TestFrameworkConstants[_0x516fe8(0x10c)]]:_0x40dfc3,[TestFrameworkConstants[_0x516fe8(0x126)]]:_0xa50b4f},_0x196812={};_0x196812[_0x96658e]=_0x5e3f8f;const _0x304207=_0x196812;if(_0x3e94d6[_0x516fe8(0x177)](_0x375348,HookState[_0x516fe8(0x1b8)])){const _0x4270b2={[TestFrameworkConstants[_0x516fe8(0x15a)]]:_0x5874c0,[TestFrameworkConstants[_0x516fe8(0x101)]]:TestFrameworkConstants[_0x516fe8(0x122)],[TestFrameworkConstants[_0x516fe8(0x11b)]]:_0x39d7da[_0x516fe8(0x193)],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x39d7da[_0x516fe8(0x10f)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x1075df};_0x4270b2[_0x516fe8(0x121)]=_0x498b99;const _0x28cd9f=_0x4270b2;_0x40dfc3[_0x498b99][_0x516fe8(0x14b)](_0x28cd9f),_0x304207[_0x96658e][TestFrameworkConstants[_0x516fe8(0x115)]]=_0x498b99,logger[_0x516fe8(0x1ab)](_0x516fe8(0x1b9)+_0x498b99+'\x20&\x20hook\x20=\x20'+_0x28cd9f+_0x516fe8(0x1a9)+_0x282049);}else{if(_0x3e94d6[_0x516fe8(0x1a1)](_0x375348,HookState['POST'])){const _0x272f8b=_0x39d7da[_0x516fe8(0x195)],_0xea1122=_0x40dfc3[_0x498b99]||[];logger[_0x516fe8(0x1ab)](_0x516fe8(0x18a)+_0xea1122+'\x20and\x20args\x20=\x20'+_0x282049);if(_0x3e94d6[_0x516fe8(0x19a)](_0xea1122[_0x516fe8(0x1be)],0x0)){const _0x3e151e=_0xea1122['pop']();_0x3e94d6['TqPLV'](_0x39d7da[_0x516fe8(0x195)],_0x3e94d6[_0x516fe8(0x119)])&&_0x39d7da[_0x516fe8(0x117)]?(_0x3e151e[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x39d7da[_0x516fe8(0x12e)]||_0x3e94d6[_0x516fe8(0x1c5)],_0x3e151e[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x39d7da['failure_reason']||'',_0x3e151e[TestFrameworkConstants[_0x516fe8(0x17b)]]=_0x39d7da['failure_data']):_0x3e151e[TestFrameworkConstants[_0x516fe8(0x101)]]=_0x3e94d6[_0x516fe8(0x183)];_0x3e94d6['imsQe'](_0x272f8b,TestFrameworkConstants[_0x516fe8(0x122)])&&(_0x3e151e[TestFrameworkConstants[_0x516fe8(0x101)]]=_0x272f8b);_0x3e151e[TestFrameworkConstants[_0x516fe8(0x186)]]=_0x39d7da[_0x516fe8(0x15e)]||new Date()['toISOString'](),_0x3e151e[TestFrameworkConstants[_0x516fe8(0x190)]]=_0x1075df;const _0x267ef5=_0x3e151e[TestFrameworkConstants[_0x516fe8(0x15a)]];!_0xa50b4f[_0x498b99]&&(_0xa50b4f[_0x498b99]=[]),_0xa50b4f[_0x498b99][_0x516fe8(0x14b)](_0x3e151e),_0x304207[_0x96658e][TestFrameworkConstants[_0x516fe8(0x11e)]]=_0x498b99;}}}return logger[_0x516fe8(0x1ab)]('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x39d7da['hook_type']+'\x20with\x20id\x20'+_0x5874c0+_0x516fe8(0x16e)+_0x96658e),_0x304207;}[a91_0x1dab6d(0x1bc)](_0x51c2de){const _0x501f8a=a91_0x1dab6d,_0x57c3b8={};_0x57c3b8[_0x501f8a(0x13a)]='base64';const _0x22b3ec=_0x57c3b8;try{const _0x5a8004=_0x51c2de[_0x501f8a(0x14c)]?_0x51c2de['test']['id']:_0x51c2de['hookData'][_0x501f8a(0x19b)],_0x155895=_0x51c2de['instance'],_0x4d94ad=_0x155895[_0x501f8a(0x192)](),_0x5c7f84=_0x155895[_0x501f8a(0x18b)]()[_0x501f8a(0x17d)](_0x5a8004);if(!_0x5c7f84)return logger['debug']('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x5a8004),{};logger[_0x501f8a(0x1ab)](_0x501f8a(0x12c)+_0x5a8004);const {[TestFrameworkConstants[_0x501f8a(0x14a)]]:_0x94f820='',[TestFrameworkConstants[_0x501f8a(0x167)]]:_0x5db516='',[TestFrameworkConstants[_0x501f8a(0x1b0)]]:_0x5722e6='',[TestFrameworkConstants[_0x501f8a(0x130)]]:_0x2d2cf5=''}=_0x5c7f84,_0x5b824d=_0x155895[_0x501f8a(0x1bd)]()[_0x501f8a(0x157)]()['split']('.')[0x1],_0x31653a=_0x155895[_0x501f8a(0x198)]()[_0x501f8a(0x157)]()[_0x501f8a(0x1ac)]('.')[0x1],_0x110de2=global?.[_0x501f8a(0x179)]??0x0,_0x56e1b1=_0x155895[_0x501f8a(0x155)](),_0x6126b2=Buffer[_0x501f8a(0x1a7)](JSON[_0x501f8a(0x13b)](_0x5c7f84))[_0x501f8a(0x157)](_0x22b3ec['ozftB']),_0x1788f2={'hash':_0x4d94ad[_0x501f8a(0x133)](),'threadId':_0x4d94ad[_0x501f8a(0x172)]()[_0x501f8a(0x157)](),'processId':_0x4d94ad[_0x501f8a(0x107)]()[_0x501f8a(0x157)]()},_0x49a339={};_0x49a339[_0x501f8a(0x12b)]=_0x110de2,_0x49a339[_0x501f8a(0x1cc)]=_0x94f820,_0x49a339[_0x501f8a(0x16d)]=_0x5db516,_0x49a339['testFrameworkState']=_0x5b824d,_0x49a339['hookState']=_0x31653a,_0x49a339['startedAt']=_0x5722e6,_0x49a339[_0x501f8a(0x182)]=_0x2d2cf5,_0x49a339['uuid']=_0x56e1b1,_0x49a339['eventJson']=_0x6126b2,_0x49a339[_0x501f8a(0x1a3)]=_0x1788f2;const _0x132e53=_0x49a339;return logger['debug']('createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20'+_0x5a8004+_0x501f8a(0x12d)+_0x5b824d+_0x501f8a(0x15d)+_0x31653a),_0x132e53;}catch(_0x10d1e9){return logger[_0x501f8a(0x17a)](_0x501f8a(0x166)+util['format'](_0x10d1e9)),{};}}async[a91_0x1dab6d(0x106)](_0x3d1fe9,_0x22dadd,_0x2130fe){const _0x12935e=a91_0x1dab6d,_0x231176={'xWDTU':function(_0x2ae086,_0x30dd9d,_0x540cb5){return _0x2ae086(_0x30dd9d,_0x540cb5);},'XtSKJ':function(_0x1a3fab,_0x45d568){return _0x1a3fab===_0x45d568;},'Wjgdm':_0x12935e(0x14f),'LXZla':function(_0x3f215c,_0x3b4cf1){return _0x3f215c/_0x3b4cf1;},'XcjFV':function(_0xab3a95,_0x52139b){return _0xab3a95<_0x52139b;},'iDugN':function(_0x2c3f7f,_0x32f618){return _0x2c3f7f*_0x32f618;},'GVabA':function(_0x5596e9,_0x2efa67){return _0x5596e9+_0x2efa67;},'lsOte':function(_0x4e3a5c,_0x46292a){return _0x4e3a5c+_0x46292a;},'XBoAA':_0x12935e(0x14d)};try{const _0x74a68f=_0x2130fe[_0x12935e(0x17c)],_0x2da141=_0x3d1fe9[_0x12935e(0x18b)]()[_0x12935e(0x17d)](_0x74a68f),{[TestFrameworkConstants[_0x12935e(0x14a)]]:_0x1a5b0c='',[TestFrameworkConstants[_0x12935e(0x167)]]:_0x4635d9=''}=_0x2da141,_0x583df4=TestInfo['readLogObjects'](_0x74a68f),_0x3500e2=TestInfo[_0x12935e(0x1b2)](_0x74a68f)[TestFrameworkConstants[_0x12935e(0x158)]]||{},_0x1c0722=_0x231176['xWDTU'](getMediaArtifactsLogs,_0x3500e2,_0x3d1fe9[_0x12935e(0x18b)]()['get'](_0x74a68f)[TestFrameworkConstants[_0x12935e(0x153)]]),_0x33458f=(_0x583df4||[])[_0x12935e(0x18e)](_0x1c0722||[]);if(!_0x33458f||_0x231176['XtSKJ'](_0x33458f[_0x12935e(0x1be)],0x0)){logger[_0x12935e(0x1ab)](_0x231176[_0x12935e(0x1a0)]);return;}const _0x250d55=0x28,_0x238658=Math['ceil'](_0x231176[_0x12935e(0x1ae)](_0x33458f[_0x12935e(0x1be)],_0x250d55));for(let _0x37f012=0x0;_0x231176[_0x12935e(0x129)](_0x37f012,_0x238658);_0x37f012++){const _0x353ed0=_0x231176[_0x12935e(0x112)](_0x37f012,_0x250d55),_0x5c8542=_0x231176['GVabA'](_0x353ed0,_0x250d55),_0x9f8dd2=_0x33458f[_0x12935e(0x128)](_0x353ed0,_0x5c8542),_0x5b1f9b={'platformIndex':global?.[_0x12935e(0x179)]??0x0,'logs':_0x9f8dd2,'testFrameworkName':_0x1a5b0c,'testFrameworkVersion':_0x4635d9,'testFrameworkState':_0x22dadd[_0x12935e(0x157)]()[_0x12935e(0x1ac)]('.')[0x1]};logger[_0x12935e(0x1ab)](_0x12935e(0x1aa)+_0x74a68f+_0x12935e(0x15c)+_0x231176[_0x12935e(0x132)](_0x37f012,0x1)+'/'+_0x238658+_0x12935e(0x174)+util[_0x12935e(0x11d)](_0x5b1f9b));const _0x4ae6a2=await GrpcClient['getInstance']()['logCreatedEvent'](_0x5b1f9b);logger[_0x12935e(0x1ab)](_0x12935e(0x1aa)+_0x74a68f+_0x12935e(0x15c)+_0x231176[_0x12935e(0x132)](_0x37f012,0x1)+'/'+_0x238658+_0x12935e(0x160)+util[_0x12935e(0x11d)](_0x4ae6a2));}}catch(_0x12a6f0){logger[_0x12935e(0x17a)](_0x12935e(0x15b)+util[_0x12935e(0x196)](_0x12a6f0));}logger[_0x12935e(0x1ab)](_0x231176[_0x12935e(0x127)]);}[a91_0x1dab6d(0x16a)](_0x46b643,_0x4cbfa5,_0x550f5c,_0x5ebec9,_0x2d5bfb){const _0x55aaa6=a91_0x1dab6d,_0x47c77a={'testId':_0x4cbfa5,'testFrameworkState':_0x550f5c,'hookState':_0x5ebec9,'args':_0x2d5bfb,'timestamp':new Date()['toISOString']()};_0x46b643[_0x55aaa6(0x144)](_0x4cbfa5,_0x47c77a),logger['debug'](_0x55aaa6(0x141)+_0x4cbfa5+_0x55aaa6(0x13f)+_0x550f5c+_0x55aaa6(0x108)+_0x5ebec9);}async['processPendingHooks'](_0x328a76,_0x469715){const _0x3e1c1c=a91_0x1dab6d,_0x472bdf={};_0x472bdf[_0x3e1c1c(0x152)]=function(_0x4acdbb,_0x355413){return _0x4acdbb>_0x355413;};const _0x348e00=_0x472bdf;if(!_0x328a76['hasPendingHooks'](_0x469715))return;const _0x1de05a=_0x328a76[_0x3e1c1c(0x178)](_0x469715);logger[_0x3e1c1c(0x1ab)](_0x3e1c1c(0x1b7)+_0x1de05a['length']+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x469715);for(const _0x1b1ad3 of _0x1de05a){try{const _0x3eddeb=await this[_0x3e1c1c(0x111)](_0x328a76,_0x1b1ad3['testFrameworkState'],_0x1b1ad3[_0x3e1c1c(0x134)],_0x1b1ad3[_0x3e1c1c(0x104)]);_0x3eddeb&&_0x348e00[_0x3e1c1c(0x152)](Object[_0x3e1c1c(0x19e)](_0x3eddeb)[_0x3e1c1c(0x1be)],0x0)&&_0x328a76[_0x3e1c1c(0x18d)](_0x3eddeb),await this[_0x3e1c1c(0x1b3)](_0x328a76,_0x1b1ad3['testFrameworkState'],_0x1b1ad3['hookState'],_0x1b1ad3[_0x3e1c1c(0x104)]);}catch(_0x4e5930){logger['error'](_0x3e1c1c(0x11f)+_0x469715+_0x3e1c1c(0x1ca)+_0x4e5930);}}_0x328a76[_0x3e1c1c(0x10a)](_0x469715),logger[_0x3e1c1c(0x1ab)](_0x3e1c1c(0x10d)+_0x469715);}}module[a91_0x1dab6d(0x148)]=CucumberTestFramework;
|
|
1
|
+
function a91_0x17ff(_0x28023d,_0x517800){const _0x114419=a91_0x1144();return a91_0x17ff=function(_0x17ff30,_0x34cd22){_0x17ff30=_0x17ff30-0x197;let _0x4b35db=_0x114419[_0x17ff30];return _0x4b35db;},a91_0x17ff(_0x28023d,_0x517800);}const a91_0x57e26c=a91_0x17ff;(function(_0x1fa90a,_0x270ad8){const _0x57b450=a91_0x17ff,_0x5adf2c=_0x1fa90a();while(!![]){try{const _0x3aec16=-parseInt(_0x57b450(0x1de))/0x1+-parseInt(_0x57b450(0x22d))/0x2*(-parseInt(_0x57b450(0x1c9))/0x3)+-parseInt(_0x57b450(0x212))/0x4+-parseInt(_0x57b450(0x1b6))/0x5+parseInt(_0x57b450(0x20a))/0x6+parseInt(_0x57b450(0x267))/0x7*(parseInt(_0x57b450(0x1b9))/0x8)+-parseInt(_0x57b450(0x1ef))/0x9*(-parseInt(_0x57b450(0x241))/0xa);if(_0x3aec16===_0x270ad8)break;else _0x5adf2c['push'](_0x5adf2c['shift']());}catch(_0x1d155d){_0x5adf2c['push'](_0x5adf2c['shift']());}}}(a91_0x1144,0xbc499));const TestFramework=require(a91_0x57e26c(0x1b3)),TestFrameworkState=require(a91_0x57e26c(0x1e3)),HookState=require(a91_0x57e26c(0x238)),{createClassLogger}=require(a91_0x57e26c(0x203)),TestFrameworkInstance=require(a91_0x57e26c(0x1a6)),CLIUtils=require(a91_0x57e26c(0x1bf)),TrackedInstance=require(a91_0x57e26c(0x247)),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x57e26c(0x231)),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require(a91_0x57e26c(0x261)),util=require(a91_0x57e26c(0x21e)),TestInfo=require(a91_0x57e26c(0x1e7)),GrpcClient=require(a91_0x57e26c(0x1ea));class CucumberTestFramework extends TestFramework{constructor(_0x50799a,_0x5e8b14,_0xe67160){super(_0x50799a,_0x5e8b14,_0xe67160);}async[a91_0x57e26c(0x1f3)](_0x229a4f,_0x521f74,_0x29e1a0={}){const _0x5b07f2=a91_0x57e26c,_0x34cc5e={};_0x34cc5e[_0x5b07f2(0x23c)]=_0x5b07f2(0x217),_0x34cc5e['wdzmg']=function(_0x17aa88,_0x3b9519){return _0x17aa88===_0x3b9519;},_0x34cc5e[_0x5b07f2(0x1c3)]=function(_0x15e436,_0x4923a2){return _0x15e436===_0x4923a2;},_0x34cc5e[_0x5b07f2(0x25a)]=function(_0x3ea277,_0x5c0827){return _0x3ea277===_0x5c0827;},_0x34cc5e[_0x5b07f2(0x1ce)]=_0x5b07f2(0x1a3);const _0x41c5f7=_0x34cc5e;await super[_0x5b07f2(0x1f3)](_0x229a4f,_0x521f74,_0x29e1a0);const _0x2aac43=this['resolveInstance'](_0x229a4f,_0x521f74,_0x29e1a0);if(!_0x2aac43){logger['debug'](_0x41c5f7['WAhqR']);return;}try{let _0xc0f0c6,_0x456df0;switch(_0x229a4f){case TestFrameworkState[_0x5b07f2(0x1f5)]:_0xc0f0c6=_0x29e1a0['test'],_0x456df0=TestInfo['getTestUUID'](_0xc0f0c6['id']);if(_0x41c5f7['wdzmg'](_0x521f74,HookState[_0x5b07f2(0x197)])){logger[_0x5b07f2(0x23d)](_0x5b07f2(0x1fe)+_0xc0f0c6['id']);const _0x11fa4d={};_0x11fa4d['testUUID']=_0x456df0,_0x11fa4d['testData']=_0xc0f0c6,_0x2aac43[_0x5b07f2(0x204)](this['parseCucumberTest'](_0x11fa4d)),logger[_0x5b07f2(0x23d)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0xc0f0c6['id']),await this[_0x5b07f2(0x1e4)](_0x2aac43,_0xc0f0c6['id']);}else{if(_0x41c5f7[_0x5b07f2(0x1c3)](_0x521f74,HookState[_0x5b07f2(0x213)])){const _0x5a1ac5={};_0x5a1ac5['testUUID']=_0x456df0,_0x5a1ac5[_0x5b07f2(0x232)]=_0xc0f0c6,_0x2aac43['addMultipleEntries'](this[_0x5b07f2(0x1c5)](_0x5a1ac5)),await this['processPendingHooks'](_0x2aac43,_0xc0f0c6['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x41c5f7[_0x5b07f2(0x25a)](_0x521f74,HookState[_0x5b07f2(0x213)])&&await this['sendLogCreatedEvent'](_0x2aac43,_0x229a4f,_0x29e1a0);break;default:if(CLIUtils[_0x5b07f2(0x1b4)](_0x229a4f[_0x5b07f2(0x1d1)]()['split']('.')[0x1])){const _0x53a2d8=await this[_0x5b07f2(0x1f2)](_0x2aac43,_0x229a4f,_0x521f74,_0x29e1a0);_0x2aac43[_0x5b07f2(0x204)](_0x53a2d8);}else logger[_0x5b07f2(0x23d)](_0x5b07f2(0x262)+_0x229a4f+_0x5b07f2(0x24a)+_0x521f74);break;}}catch(_0x3ac514){logger[_0x5b07f2(0x25b)](util['format'](_0x41c5f7[_0x5b07f2(0x1ce)],_0x229a4f,_0x521f74,_0x29e1a0[_0x5b07f2(0x1f1)],_0x3ac514));}_0x29e1a0[_0x5b07f2(0x21f)]=_0x2aac43,await this[_0x5b07f2(0x21a)](_0x2aac43,_0x229a4f,_0x521f74,_0x29e1a0);}[a91_0x57e26c(0x1ba)](_0x167417,_0x2c0ebe,_0x8d0fe2={}){const _0x28072f=a91_0x57e26c,_0x3367a3={};_0x3367a3[_0x28072f(0x1c0)]=function(_0x491033,_0x2a3a1b){return _0x491033===_0x2a3a1b;},_0x3367a3[_0x28072f(0x218)]=function(_0x2bb640,_0x5943d6){return _0x2bb640===_0x5943d6;};const _0xc4a2fa=_0x3367a3;let _0x29b28c=null;return(_0xc4a2fa[_0x28072f(0x1c0)](_0x167417,TestFrameworkState[_0x28072f(0x227)])||_0xc4a2fa[_0x28072f(0x218)](_0x167417,TestFrameworkState['NONE']))&&this['trackCucumberInstance'](_0x167417,_0x8d0fe2),_0x29b28c=TestFramework[_0x28072f(0x1fd)](),_0x29b28c;}[a91_0x57e26c(0x264)](_0x1a8c2f,_0xf5aa8a){const _0x3e7212=a91_0x57e26c,_0x3f1e6d=CLIUtils[_0x3e7212(0x1df)](),_0x19609e=TrackedInstance[_0x3e7212(0x1dd)](_0x3f1e6d);let _0x1d2751=null;logger[_0x3e7212(0x23d)](_0x3e7212(0x25c)+_0x3f1e6d+',\x20state='+_0x1a8c2f),_0x1d2751=new TestFrameworkInstance(_0x19609e,this[_0x3e7212(0x1ff)](),this[_0x3e7212(0x268)](),_0x1a8c2f,HookState[_0x3e7212(0x19f)]),TestFramework[_0x3e7212(0x22c)](_0x19609e,_0x1d2751),logger[_0x3e7212(0x23d)](_0x3e7212(0x24d)+_0x19609e['getId']()+_0x3e7212(0x1b7)+_0x3f1e6d);}['parseCucumberTest'](_0xf98f2f){const _0x620bd6=a91_0x57e26c,_0x38929f={};_0x38929f['eAhGf']=_0x620bd6(0x256);const _0x8912c1=_0x38929f,{testUUID:_0x1d759d,testData:_0x567fc6}=_0xf98f2f;if(!_0x567fc6||!_0x567fc6[_0x620bd6(0x261)])return logger[_0x620bd6(0x23d)](_0x8912c1[_0x620bd6(0x1a9)]),{};const _0x2d4984=_0x1d759d,_0x496a3b=_0x567fc6[_0x620bd6(0x261)],_0x33803e=this['getTestFrameworks']()[0x0],_0x499a1b=this[_0x620bd6(0x268)](),_0xa1494b={[TestFrameworkConstants[_0x620bd6(0x1e5)]]:_0x33803e,[TestFrameworkConstants[_0x620bd6(0x216)]]:_0x499a1b[_0x33803e],[TestFrameworkConstants[_0x620bd6(0x211)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x620bd6(0x23e)]]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x2d4984,[TestFrameworkConstants[_0x620bd6(0x221)]]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x620bd6(0x21c)]]:_0x567fc6['name']||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x567fc6[_0x620bd6(0x236)]||'',[TestFrameworkConstants[_0x620bd6(0x21d)]]:_0x496a3b,[TestFrameworkConstants[_0x620bd6(0x205)]]:_0x567fc6['name']||'',[TestFrameworkConstants[_0x620bd6(0x1be)]]:_0x567fc6[_0x620bd6(0x1ec)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x567fc6[_0x620bd6(0x24e)]?.[_0x620bd6(0x265)]||null,[TestFrameworkConstants[_0x620bd6(0x1b0)]]:_0x567fc6[_0x620bd6(0x1f6)]||[],[TestFrameworkConstants[_0x620bd6(0x1ad)]]:_0x567fc6[_0x620bd6(0x20c)]||new Date()[_0x620bd6(0x215)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x567fc6[_0x620bd6(0x1f9)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x567fc6[_0x620bd6(0x1f9)]||[],[TestFrameworkConstants[_0x620bd6(0x22e)]]:_0x567fc6[_0x620bd6(0x1d3)]?.['rerun_name']||_0x567fc6[_0x620bd6(0x1af)]||'',[TestFrameworkConstants[_0x620bd6(0x208)]]:{},[TestFrameworkConstants[_0x620bd6(0x1ab)]]:_0x567fc6[_0x620bd6(0x1c2)]||{}};TestInfo[_0x620bd6(0x202)](_0x496a3b,_0xa1494b),logger[_0x620bd6(0x23d)](_0x620bd6(0x242)+_0x567fc6['name']+_0x620bd6(0x1a8)+_0x2d4984);const _0xe8dd87={};return _0xe8dd87[_0x496a3b]=_0xa1494b,_0xe8dd87;}[a91_0x57e26c(0x1c5)](_0x39112f){const _0x426771=a91_0x57e26c,_0x58da79={'tBbnZ':_0x426771(0x239),'Tgdny':_0x426771(0x223),'kInER':function(_0x49537b,_0x4a7c9c){return _0x49537b===_0x4a7c9c;},'ZsCKB':_0x426771(0x245),'jWwJW':_0x426771(0x1c4),'cMUzp':function(_0x55173e,_0x276bb1,_0x3e14af){return _0x55173e(_0x276bb1,_0x3e14af);},'mPgHC':function(_0x567095,_0x1c2e96){return _0x567095>_0x1c2e96;}},{testUUID:_0x2ba469,testData:_0x207f9d}=_0x39112f;if(!_0x207f9d||!_0x207f9d[_0x426771(0x261)])return logger[_0x426771(0x23d)](_0x58da79[_0x426771(0x1f0)]),{};const _0x4f669=this[_0x426771(0x1ba)](TestFrameworkState[_0x426771(0x1f5)],HookState[_0x426771(0x213)]),_0x1b628d=_0x207f9d[_0x426771(0x261)],_0x5cf09c=TestInfo[_0x426771(0x23f)](_0x1b628d)||{},_0x132040=_0x5cf09c?_0x5cf09c[TestFrameworkConstants[_0x426771(0x208)]]||{}:{},_0x18200c={..._0x5cf09c,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x207f9d['result']||_0x58da79[_0x426771(0x233)],[TestFrameworkConstants[_0x426771(0x1d9)]]:_0x207f9d[_0x426771(0x259)]||new Date()['toISOString'](),[TestFrameworkConstants[_0x426771(0x1cd)]]:new Date()[_0x426771(0x215)](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x132040,[TestFrameworkConstants[_0x426771(0x19a)]]:[],[TestFrameworkConstants[_0x426771(0x1ab)]]:_0x207f9d[_0x426771(0x1c2)]||{}};_0x58da79[_0x426771(0x1d4)](_0x207f9d['result'],_0x58da79[_0x426771(0x251)])&&_0x207f9d[_0x426771(0x19d)]&&(_0x18200c[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x207f9d[_0x426771(0x209)]||_0x58da79[_0x426771(0x19c)],_0x18200c[TestFrameworkConstants[_0x426771(0x1e1)]]=_0x207f9d[_0x426771(0x228)]||'',_0x18200c[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x207f9d['failure']);const _0x2d20cb=TestInfo['getTestDetails'](_0x1b628d)[TestFrameworkConstants[_0x426771(0x22b)]]||{},_0x47fb90=_0x58da79[_0x426771(0x252)](getManualUploadLogs,_0x2d20cb,_0x4f669[_0x426771(0x23b)]()[_0x426771(0x1e2)](_0x1b628d)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x58da79[_0x426771(0x230)](_0x47fb90[_0x426771(0x1f1)],0x0)){const _0x52ee01=_0x18200c[TestFrameworkConstants['KEY_LOGS']]||[];_0x18200c[TestFrameworkConstants['KEY_LOGS']]=[..._0x52ee01,..._0x47fb90];}_0x207f9d[_0x426771(0x20f)]&&_0x58da79['mPgHC'](_0x207f9d['hooks']['length'],0x0)&&(_0x18200c[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x207f9d[_0x426771(0x20f)]);TestInfo[_0x426771(0x202)](_0x1b628d,_0x18200c),logger[_0x426771(0x23d)](_0x426771(0x255)+_0x207f9d[_0x426771(0x1af)]+_0x426771(0x1d7)+_0x207f9d[_0x426771(0x20e)]);const _0x902296={};return _0x902296[_0x1b628d]=_0x18200c,_0x902296;}async[a91_0x57e26c(0x1f2)](_0x2bd70e,_0x35c9af,_0x28ed31,_0x9f5d9c){const _0x5d0ac8=a91_0x57e26c,_0x808d06={'xOgpi':_0x5d0ac8(0x260),'yUCfa':function(_0x400103){return _0x400103();},'szbud':function(_0x410e44,_0x557a70){return _0x410e44 in _0x557a70;},'qQIfj':function(_0x47994a,_0x45d87f){return _0x47994a===_0x45d87f;},'ILVdR':function(_0x17e1d1,_0xcae45b){return _0x17e1d1>_0xcae45b;},'ToCbp':_0x5d0ac8(0x245),'fBMCN':_0x5d0ac8(0x1c4),'MVweg':_0x5d0ac8(0x1fb),'IWTTt':function(_0x48a9b2,_0x46402f){return _0x48a9b2!==_0x46402f;}},{hookData:_0x1e8ba1}=_0x9f5d9c;if(!_0x1e8ba1)return logger[_0x5d0ac8(0x23d)](_0x808d06['xOgpi']),{};const _0x37a5fc=_0x1e8ba1[_0x5d0ac8(0x261)]||_0x808d06[_0x5d0ac8(0x248)](uuidv4),_0x19bada=_0x1e8ba1[_0x5d0ac8(0x19b)],_0xa4e2d7=_0x35c9af[_0x5d0ac8(0x1d1)]()[_0x5d0ac8(0x1b5)]('.')[0x1],_0x41b52a=TestInfo[_0x5d0ac8(0x23f)](_0x19bada)[TestFrameworkConstants[_0x5d0ac8(0x208)]]||{},_0x56dcca=_0x2bd70e['getAllData']()[_0x5d0ac8(0x1e2)](_0x19bada);if(!_0x56dcca)return logger['debug'](_0x5d0ac8(0x1bb)+_0x19bada+',\x20storing\x20as\x20pending\x20hook'),this[_0x5d0ac8(0x1b2)](_0x2bd70e,_0x19bada,_0x35c9af,_0x28ed31,_0x9f5d9c),{};let _0x3ef5d4=_0x56dcca[TestFrameworkConstants[_0x5d0ac8(0x23e)]];!_0x3ef5d4&&(_0x3ef5d4={});!_0x808d06[_0x5d0ac8(0x214)](_0xa4e2d7,_0x3ef5d4)&&(_0x3ef5d4[_0xa4e2d7]=[]);let _0x356146=_0x56dcca[TestFrameworkConstants[_0x5d0ac8(0x200)]];!_0x356146&&(_0x356146={});!_0x808d06[_0x5d0ac8(0x214)](_0xa4e2d7,_0x356146)&&(_0x356146[_0xa4e2d7]=[]);const _0x21238b={[TestFrameworkConstants[_0x5d0ac8(0x23e)]]:_0x3ef5d4,[TestFrameworkConstants[_0x5d0ac8(0x200)]]:_0x356146},_0x198466={};_0x198466[_0x19bada]=_0x21238b;const _0x23f63b=_0x198466;if(_0x808d06[_0x5d0ac8(0x1c7)](_0x28ed31,HookState['PRE'])){const _0x30b7c5={[TestFrameworkConstants[_0x5d0ac8(0x257)]]:_0x37a5fc,[TestFrameworkConstants[_0x5d0ac8(0x253)]]:TestFrameworkConstants[_0x5d0ac8(0x1ae)],[TestFrameworkConstants[_0x5d0ac8(0x21b)]]:_0x1e8ba1[_0x5d0ac8(0x1a1)],[TestFrameworkConstants[_0x5d0ac8(0x1ca)]]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x1e8ba1[_0x5d0ac8(0x1a2)],[TestFrameworkConstants[_0x5d0ac8(0x208)]]:_0x41b52a};_0x30b7c5[_0x5d0ac8(0x1db)]=_0xa4e2d7;const _0xa37f22=_0x30b7c5;_0x3ef5d4[_0xa4e2d7][_0x5d0ac8(0x1e9)](_0xa37f22),_0x23f63b[_0x19bada][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0xa4e2d7,logger[_0x5d0ac8(0x23d)](_0x5d0ac8(0x1eb)+_0xa4e2d7+_0x5d0ac8(0x206)+_0xa37f22+_0x5d0ac8(0x250)+_0x9f5d9c);}else{if(_0x808d06['qQIfj'](_0x28ed31,HookState[_0x5d0ac8(0x213)])){const _0x2d6778=_0x1e8ba1[_0x5d0ac8(0x20e)],_0x59f24f=_0x3ef5d4[_0xa4e2d7]||[];logger['debug'](_0x5d0ac8(0x1cb)+_0x59f24f+_0x5d0ac8(0x1e0)+_0x9f5d9c);if(_0x808d06['ILVdR'](_0x59f24f[_0x5d0ac8(0x1f1)],0x0)){const _0x10c8e8=_0x59f24f[_0x5d0ac8(0x22f)]();_0x808d06['qQIfj'](_0x1e8ba1[_0x5d0ac8(0x20e)],_0x808d06[_0x5d0ac8(0x1f7)])&&_0x1e8ba1['failure_data']?(_0x10c8e8[TestFrameworkConstants[_0x5d0ac8(0x1e8)]]=_0x1e8ba1[_0x5d0ac8(0x209)]||_0x808d06[_0x5d0ac8(0x235)],_0x10c8e8[TestFrameworkConstants[_0x5d0ac8(0x20b)]]=_0x1e8ba1['failure_reason']||'',_0x10c8e8[TestFrameworkConstants[_0x5d0ac8(0x1cc)]]=_0x1e8ba1[_0x5d0ac8(0x266)]):_0x10c8e8[TestFrameworkConstants[_0x5d0ac8(0x253)]]=_0x808d06[_0x5d0ac8(0x1d2)];_0x808d06[_0x5d0ac8(0x25d)](_0x2d6778,TestFrameworkConstants[_0x5d0ac8(0x1ae)])&&(_0x10c8e8[TestFrameworkConstants[_0x5d0ac8(0x253)]]=_0x2d6778);_0x10c8e8[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x1e8ba1[_0x5d0ac8(0x234)]||new Date()[_0x5d0ac8(0x215)](),_0x10c8e8[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x41b52a;const _0x334fa9=_0x10c8e8[TestFrameworkConstants[_0x5d0ac8(0x257)]];!_0x356146[_0xa4e2d7]&&(_0x356146[_0xa4e2d7]=[]),_0x356146[_0xa4e2d7]['push'](_0x10c8e8),_0x23f63b[_0x19bada][TestFrameworkConstants[_0x5d0ac8(0x1f4)]]=_0xa4e2d7;}}}return logger[_0x5d0ac8(0x23d)](_0x5d0ac8(0x23a)+_0x1e8ba1[_0x5d0ac8(0x1a2)]+'\x20with\x20id\x20'+_0x37a5fc+_0x5d0ac8(0x1f8)+_0x19bada),_0x23f63b;}[a91_0x57e26c(0x1c6)](_0xc8e6b6){const _0x29bd64=a91_0x57e26c,_0x5bf649={};_0x5bf649[_0x29bd64(0x207)]='base64';const _0x13cd22=_0x5bf649;try{const _0x40f5c5=_0xc8e6b6['test']?_0xc8e6b6[_0x29bd64(0x1ee)]['id']:_0xc8e6b6['hookData'][_0x29bd64(0x19b)],_0x26bd5e=_0xc8e6b6[_0x29bd64(0x21f)],_0x5c0b7b=_0x26bd5e[_0x29bd64(0x1b8)](),_0x3d7294=_0x26bd5e[_0x29bd64(0x23b)]()['get'](_0x40f5c5);if(!_0x3d7294)return logger[_0x29bd64(0x23d)](_0x29bd64(0x25f)+_0x40f5c5),{};logger['debug'](_0x29bd64(0x24c)+_0x40f5c5);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x3b66f9='',[TestFrameworkConstants[_0x29bd64(0x216)]]:_0x5b3860='',[TestFrameworkConstants[_0x29bd64(0x1ad)]]:_0x3e01c4='',[TestFrameworkConstants[_0x29bd64(0x1d9)]]:_0x4cc240=''}=_0x3d7294,_0x117a79=_0x26bd5e[_0x29bd64(0x244)]()[_0x29bd64(0x1d1)]()['split']('.')[0x1],_0x2bce9b=_0x26bd5e[_0x29bd64(0x1a7)]()['toString']()['split']('.')[0x1],_0x45ebc1=global?.[_0x29bd64(0x1d0)]??0x0,_0x14cda8=_0x26bd5e['getRef'](),_0x442dde=Buffer['from'](JSON['stringify'](_0x3d7294))['toString'](_0x13cd22[_0x29bd64(0x207)]),_0x23f46c={'hash':_0x5c0b7b[_0x29bd64(0x1a0)](),'threadId':_0x5c0b7b[_0x29bd64(0x263)]()['toString'](),'processId':_0x5c0b7b[_0x29bd64(0x1d5)]()['toString']()},_0x1de5fc={};_0x1de5fc[_0x29bd64(0x243)]=_0x45ebc1,_0x1de5fc['testFrameworkName']=_0x3b66f9,_0x1de5fc[_0x29bd64(0x225)]=_0x5b3860,_0x1de5fc[_0x29bd64(0x246)]=_0x117a79,_0x1de5fc['hookState']=_0x2bce9b,_0x1de5fc[_0x29bd64(0x20c)]=_0x3e01c4,_0x1de5fc[_0x29bd64(0x237)]=_0x4cc240,_0x1de5fc[_0x29bd64(0x261)]=_0x14cda8,_0x1de5fc[_0x29bd64(0x1bd)]=_0x442dde,_0x1de5fc[_0x29bd64(0x20d)]=_0x23f46c;const _0x38ccef=_0x1de5fc;return logger['debug'](_0x29bd64(0x24f)+_0x40f5c5+_0x29bd64(0x240)+_0x117a79+_0x29bd64(0x1c1)+_0x2bce9b),_0x38ccef;}catch(_0x483a30){return logger[_0x29bd64(0x25b)](_0x29bd64(0x1fc)+util['format'](_0x483a30)),{};}}async[a91_0x57e26c(0x1d6)](_0x162209,_0x36a39e,_0x4f37fd){const _0x4651e3=a91_0x57e26c,_0x4797c7={'aJRVu':function(_0x3dca35,_0x5d2be4,_0x41dc65){return _0x3dca35(_0x5d2be4,_0x41dc65);},'KHTAD':function(_0x3a2080,_0x291b1b){return _0x3a2080===_0x291b1b;},'gRVSr':_0x4651e3(0x220),'iRHqy':function(_0x3caef6,_0x3c3b31){return _0x3caef6/_0x3c3b31;},'zewQL':function(_0x40d459,_0x3c7ad2){return _0x40d459<_0x3c7ad2;},'dkNDA':function(_0x5d328e,_0x1ae21a){return _0x5d328e*_0x1ae21a;},'zjlvx':function(_0x5d071a,_0x1790f2){return _0x5d071a+_0x1790f2;},'yETzF':function(_0x18e7bf,_0x41a5ee){return _0x18e7bf+_0x41a5ee;},'vVFen':_0x4651e3(0x219)};try{const _0x25c21=_0x4f37fd[_0x4651e3(0x1da)],_0x25f4ef=_0x162209[_0x4651e3(0x23b)]()[_0x4651e3(0x1e2)](_0x25c21),{[TestFrameworkConstants[_0x4651e3(0x1e5)]]:_0xff34ea='',[TestFrameworkConstants[_0x4651e3(0x216)]]:_0x5d164a=''}=_0x25f4ef,_0x5bf841=TestInfo[_0x4651e3(0x1ed)](_0x25c21),_0x4bbe37=TestInfo[_0x4651e3(0x23f)](_0x25c21)[TestFrameworkConstants[_0x4651e3(0x22b)]]||{},_0x27147e=_0x4797c7[_0x4651e3(0x1d8)](getMediaArtifactsLogs,_0x4bbe37,_0x162209[_0x4651e3(0x23b)]()['get'](_0x25c21)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x26dbb5=(_0x5bf841||[])[_0x4651e3(0x254)](_0x27147e||[]);if(!_0x26dbb5||_0x4797c7[_0x4651e3(0x1ac)](_0x26dbb5['length'],0x0)){logger[_0x4651e3(0x23d)](_0x4797c7['gRVSr']);return;}const _0x217b6d=0x28,_0x3787bb=Math[_0x4651e3(0x249)](_0x4797c7['iRHqy'](_0x26dbb5[_0x4651e3(0x1f1)],_0x217b6d));for(let _0x4b163b=0x0;_0x4797c7[_0x4651e3(0x1fa)](_0x4b163b,_0x3787bb);_0x4b163b++){const _0x38de8d=_0x4797c7[_0x4651e3(0x1dc)](_0x4b163b,_0x217b6d),_0x4896b4=_0x4797c7[_0x4651e3(0x201)](_0x38de8d,_0x217b6d),_0x5aa8bd=_0x26dbb5[_0x4651e3(0x1aa)](_0x38de8d,_0x4896b4),_0x33cc95={'platformIndex':global?.[_0x4651e3(0x1d0)]??0x0,'logs':_0x5aa8bd,'testFrameworkName':_0xff34ea,'testFrameworkVersion':_0x5d164a,'testFrameworkState':_0x36a39e[_0x4651e3(0x1d1)]()[_0x4651e3(0x1b5)]('.')[0x1]};logger[_0x4651e3(0x23d)](_0x4651e3(0x224)+_0x25c21+_0x4651e3(0x229)+_0x4797c7[_0x4651e3(0x1e6)](_0x4b163b,0x1)+'/'+_0x3787bb+'\x20payload='+util[_0x4651e3(0x1a5)](_0x33cc95));const _0x66aaab=await GrpcClient[_0x4651e3(0x222)]()[_0x4651e3(0x19e)](_0x33cc95);logger['debug'](_0x4651e3(0x224)+_0x25c21+_0x4651e3(0x229)+_0x4797c7[_0x4651e3(0x201)](_0x4b163b,0x1)+'/'+_0x3787bb+_0x4651e3(0x199)+util[_0x4651e3(0x1a5)](_0x66aaab));}}catch(_0x5a7413){logger['error']('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util['format'](_0x5a7413));}logger['debug'](_0x4797c7[_0x4651e3(0x226)]);}[a91_0x57e26c(0x1b2)](_0x258f75,_0x5d6a21,_0x21abae,_0x20ef23,_0x1c0e87){const _0x297d49=a91_0x57e26c,_0xd57ab7={'testId':_0x5d6a21,'testFrameworkState':_0x21abae,'hookState':_0x20ef23,'args':_0x1c0e87,'timestamp':new Date()['toISOString']()};_0x258f75['addPendingHook'](_0x5d6a21,_0xd57ab7),logger[_0x297d49(0x23d)](_0x297d49(0x198)+_0x5d6a21+_0x297d49(0x258)+_0x21abae+',\x20hookState:\x20'+_0x20ef23);}async[a91_0x57e26c(0x1e4)](_0x17bd24,_0x1d1cbb){const _0x2aec33=a91_0x57e26c,_0xba473f={};_0xba473f['BRbpF']=function(_0x360e1d,_0x5a9bd5){return _0x360e1d>_0x5a9bd5;};const _0x3ed772=_0xba473f;if(!_0x17bd24[_0x2aec33(0x25e)](_0x1d1cbb))return;const _0xa6b096=_0x17bd24['getPendingHooks'](_0x1d1cbb);logger['debug'](_0x2aec33(0x1c8)+_0xa6b096[_0x2aec33(0x1f1)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x1d1cbb);for(const _0x4af196 of _0xa6b096){try{const _0x29f833=await this[_0x2aec33(0x1f2)](_0x17bd24,_0x4af196[_0x2aec33(0x246)],_0x4af196[_0x2aec33(0x1cf)],_0x4af196['args']);_0x29f833&&_0x3ed772[_0x2aec33(0x1b1)](Object[_0x2aec33(0x210)](_0x29f833)[_0x2aec33(0x1f1)],0x0)&&_0x17bd24[_0x2aec33(0x204)](_0x29f833),await this[_0x2aec33(0x21a)](_0x17bd24,_0x4af196['testFrameworkState'],_0x4af196[_0x2aec33(0x1cf)],_0x4af196[_0x2aec33(0x24b)]);}catch(_0x59acdf){logger['error'](_0x2aec33(0x1bc)+_0x1d1cbb+',\x20error:\x20'+_0x59acdf);}}_0x17bd24[_0x2aec33(0x1a4)](_0x1d1cbb),logger['debug']('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0x1d1cbb);}}module[a91_0x57e26c(0x22a)]=CucumberTestFramework;function a91_0x1144(){const _0x20be61=['jWwJW','failure','logCreatedEvent','NONE','getId','started_at','hook_type','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','removePendingHooks','inspect','../instances/testFrameworkInstance.js','getCurrentHookState','\x20with\x20UUID:\x20','eAhGf','slice','KEY_TEST_META','KHTAD','KEY_TEST_STARTED_AT','DEFAULT_HOOK_RESULT','name','KEY_TEST_TAGS','BRbpF','storePendingHook','./testFramework','matchHookRegex','split','5258120bAbGTg','\x20target=','getContext','472qacmjk','resolveInstance','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','eventJson','KEY_TEST_LOCATION','../cliUtils.js','KyGtl','\x20hookState:\x20','meta','elYIL','UnhandledError','parseCucumberTestResult','createTestFrameworkEventPayload','qQIfj','Processing\x20','3OVYiTF','KEY_HOOK_LOGS','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','KEY_HOOK_FAILURE','KEY_TEST_RESULT_AT','nbBNj','hookState','browserstackPlatformIndex','toString','MVweg','customRerunParam','kInER','getProcessId','sendLogCreatedEvent','\x20with\x20result:\x20','aJRVu','KEY_TEST_ENDED_AT','testUUID','key','dkNDA','createContext','979646pefths','getCurrentInstanceName','\x20and\x20args\x20=\x20','KEY_TEST_FAILURE_REASON','get','../state/testFrameworkState.js','processPendingHooks','KEY_TEST_FRAMEWORK_NAME','yETzF','../TestInfo.js','KEY_HOOK_FAILURE_TYPE','push','../grpcClient','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','location','readLogObjects','test','9IDWRPc','tBbnZ','length','trackHookEvent','trackEvent','KEY_HOOK_LAST_FINISHED','TEST','tags','ToCbp','\x20for\x20test:\x20','scopes','zewQL','passed','Error\x20in\x20createTestFrameworkEventPayload:\x20','getTrackedInstance','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','getTestFrameworks','KEY_HOOKS_FINISHED','zjlvx','setTestDetails','../../../helpers/classLogger.js','addMultipleEntries','KEY_TEST_NAME','\x20&\x20hook\x20=\x20','CebHY','KEY_CUSTOM_TAGS','failure_type','1417020GzHiXB','KEY_HOOK_FAILURE_REASON','startedAt','executionContext','result','hooks','keys','KEY_TEST_LOGS','953040KuAVgR','POST','szbud','toISOString','KEY_TEST_FRAMEWORK_VERSION','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','OWiph','Cucumber\x20log\x20created\x20event','runHooks','KEY_EVENT_STARTED_AT','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_ID','util','instance','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','KEY_TEST_RESULT','getInstance','unknown','sendLogCreatedEvent:\x20for\x20testId:\x20','testFrameworkVersion','vVFen','INIT_TEST','failure_reason','\x20batch\x20','exports','KEY_TEST_ATTACHMENTS','setTrackedInstance','1948746ROLrdq','KEY_TEST_RERUN_NAME','pop','mPgHC','../../../helpers/helper.js','testData','Tgdny','finished_at','fBMCN','file_name','endedAt','../state/hookState.js','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','Tracked\x20cucumber\x20hook\x20event:\x20','getAllData','WAhqR','debug','KEY_HOOKS_STARTED','getTestDetails','\x20testState:\x20','13559110QNjoyk','Parsed\x20cucumber\x20test:\x20','platformIndex','getCurrentTestState','failed','testFrameworkState','../instances/trackedInstance.js','yUCfa','ceil','\x20&\x20hookState=','args','createTestFrameworkEventPayload\x20testId:\x20','trackCucumberInstance:\x20saved\x20instance\x20contextId=','body','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','\x20\x20and\x20args\x20=\x20','ZsCKB','cMUzp','KEY_HOOK_RESULT','concat','Updated\x20cucumber\x20test\x20result:\x20','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','KEY_HOOK_ID',',\x20state:\x20','finishedAt','EYpuJ','error','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','IWTTt','hasPendingHooks','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','uuid','trackEvent:\x20unsupported\x20testFrameworkState=','getThreadId','trackCucumberInstance','code','failure_data','56273VnzKdH','getTestFrameworksVersions','PRE','Stored\x20pending\x20hook\x20for\x20testId:\x20','\x20response=','KEY_LOGS','test_run_id'];a91_0x1144=function(){return _0x20be61;};return a91_0x1144();}
|