browserstack-node-sdk 1.59.0 → 1.60.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +3 -3
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/assets/report.html +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/bin/v2/cliUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a84_0x6f7930=a84_0x1b0e;function a84_0x8685(){const _0x1c5f4e=['../../helpers/test-observability/utils.js','ntllq','TiBYn','warn','QgkQF','parse','setupCliPath','startsWith','zEmvf','env','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','CMRDi','6033sdjKOZ','downloadLatestBinary','9DBhKun','120SYCcHj','data','unlink','mdcQt','EHJWl','length','EXDEV','UuFxm','createWriteStream','uFOBp','CLI\x20version\x20found\x20despite\x20error:\x20\x22','readEntry','path','closeSync','rqove','767602vYKfET','../../helpers/classLogger.js','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','unix:/tmp/sdk-platform-','reduce','rEcWN','BROWSERSTACK_BINARY_URL','rename','debug','hnePR','KIruW','join','test','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','copyFileSync','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','rDvgP','skipSessionName','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','platform','close','pYoHK','aBOlc','getWritableDir','../utils/apiUtilityMethods.js','../../helpers/performance/performance-tester.js','xjWKA','1316722pjCiCt','.tmp.','mergeObject','worker_threads','existsSync','url','BROWSERSTACK_CLI_ENV','vMQyr','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','cli_version','error','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','GET','gMkyD','isDirectory','LvuJw','getSdkLanguage','getSdkVersion','getCurrentInstanceName','open','kkuGl','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','info','shouldSkipSessionStatus','entries',',\x20automationFramework=','hjbea','message','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','downloaded_file_','MMxAP','fileName','matchHookRegex','openSync','zssCZ','requestToUpdateCLI','ytOXd','../../helpers/utilities','../../helpers/performance/constants','skipSessionStatus','lazyEntries','split','../../helpers/helper','kHmkJ','./state/testFrameworkState.js','JXKkZ','pid','shouldSkipSessionName','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','arch','SDK_CLI_DOWNLOAD','Resolving\x20with\x20stdout:\x20\x22','tnUMV','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','getTestFrameworkDetail','statSync','testContextOptions','testFrameworkDetail','yauzl','lpCQg','Development\x20Cli\x20Path:\x20','mbyDv','ZijqN','LBAaz','kDoEj','KAXiB','./state/automationFrameworkState.js','pAtlk','code','end','tmpdir','concat','get','QAIFk','BfCMW','getCLIParamsForDevEnv','iaDWa','.sock','Configuring\x20Cli\x20path.','sgCyZ','timeout','vqHau','TwcQO','Failed\x20to\x20delete\x20zip\x20file:\x20','BROWSERSTACK_FILES_DIR','cli','DClGE','mtime','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','getExistingCliPath','node','automationFrameworkDetail','stringify','listen','getCliDir','2601358FuRnjX','isDevelopmentEnv','Folder\x20does\x20not\x20exist:\x20','gdILw','pipe','SHELL_EXECUTE_ERROR','IyvUB','SDK_CLI_BIN_PATH','filter','IHsmH','1492fruLML','development','\x20already\x20exists','VtegM','getAutomationFrameworkDetail','./state/hookState.js','downloadFileStream','JyQNQ','includes','OMtfS','XKPXk','lfOII','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','XcGgM','start','oUetq','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','gkUYA','../utils/constants','BdDUM','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','trim','25UgysvU','4|3|0|2|1','PGtIh','1744784dIgeAG','homedir','once','checkAndUpdateCli','version','nBDvP','SGsKQ','sUNvM','1507794GQNeHv','GTjNN','0755','uTpNo','format','\x20version','3380958DBcgES','openReadStream','TAgTJ','SDK_CLI_CHECK_UPDATE','response\x20','filePath','vqSEt','EDIwK','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','uXkAJ','Setting\x20required\x20permissions\x20to\x20','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','child_process','isBinaryBusy','.browserstack','cJthP','jyeqq','exports','HWdic','follow-redirects','TEXkm','Binary\x20is\x20busy:\x20'];a84_0x8685=function(){return _0x1c5f4e;};return a84_0x8685();}(function(_0x49aad0,_0x3f7af4){const _0xbe71c6=a84_0x1b0e,_0x3cfbec=_0x49aad0();while(!![]){try{const _0x59b131=-parseInt(_0xbe71c6(0x1bb))/0x1+-parseInt(_0xbe71c6(0x155))/0x2+parseInt(_0xbe71c6(0x1a9))/0x3*(parseInt(_0xbe71c6(0x15f))/0x4)+-parseInt(_0xbe71c6(0x175))/0x5*(-parseInt(_0xbe71c6(0x180))/0x6)+-parseInt(_0xbe71c6(0x186))/0x7+-parseInt(_0xbe71c6(0x178))/0x8*(parseInt(_0xbe71c6(0x1ab))/0x9)+parseInt(_0xbe71c6(0x1ac))/0xa*(parseInt(_0xbe71c6(0x1d6))/0xb);if(_0x59b131===_0x3f7af4)break;else _0x3cfbec['push'](_0x3cfbec['shift']());}catch(_0xf902d0){_0x3cfbec['push'](_0x3cfbec['shift']());}}}(a84_0x8685,0xa4771));const fs=require('fs'),os=require('os'),url=require('url'),path=require(a84_0x6f7930(0x1b8)),{exec}=require(a84_0x6f7930(0x193)),{https}=require(a84_0x6f7930(0x19a)),yauzl=require(a84_0x6f7930(0x130)),util=require('util'),{getFrameworkVersion}=require(a84_0x6f7930(0x19d)),{threadId}=require(a84_0x6f7930(0x1d9)),PerformanceTester=require(a84_0x6f7930(0x1d4)),{EVENTS:PerformanceEvents}=require(a84_0x6f7930(0x1fd)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a84_0x6f7930(0x1fc)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a84_0x6f7930(0x201)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a84_0x6f7930(0x171)),{createClassLogger}=require(a84_0x6f7930(0x1bc)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a84_0x6f7930(0x164)),TestFrameworkState=require(a84_0x6f7930(0x203)),AutomationFrameworkState=require(a84_0x6f7930(0x138)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a84_0x6f7930(0x1d3));class CLIUtils{[a84_0x6f7930(0x151)]={};[a84_0x6f7930(0x12f)]={};static[a84_0x6f7930(0x156)](){const _0x42bca2=a84_0x6f7930,_0x5749d8={};_0x5749d8[_0x42bca2(0x1a8)]=function(_0x4dd2e1,_0x419733){return _0x4dd2e1===_0x419733;},_0x5749d8['niiSc']=_0x42bca2(0x160);const _0x3642ee=_0x5749d8;return _0x3642ee[_0x42bca2(0x1a8)](process['env'][_0x42bca2(0x1dc)],_0x3642ee['niiSc']);}static[a84_0x6f7930(0x141)](){const _0x205d07=a84_0x6f7930,_0x138874={};return _0x138874['id']=process[_0x205d07(0x1a6)]['BROWSERSTACK_CLI_ENV'],_0x138874[_0x205d07(0x153)]=_0x205d07(0x1be)+process[_0x205d07(0x1a6)][_0x205d07(0x1dc)]+_0x205d07(0x143),_0x138874;}static[a84_0x6f7930(0x1e7)](){const _0x46251f=a84_0x6f7930,_0x8f92d3={'JyQNQ':function(_0x5d2e79,_0x1b143b){return _0x5d2e79(_0x1b143b);},'BdDUM':'../../../package.json'};return _0x8f92d3[_0x46251f(0x166)](require,_0x8f92d3[_0x46251f(0x172)])[_0x46251f(0x17c)];}static[a84_0x6f7930(0x1e6)](){const _0x4baccd=a84_0x6f7930,_0x1dfcb2={};_0x1dfcb2[_0x4baccd(0x1c5)]=_0x4baccd(0x150);const _0x25f4e8=_0x1dfcb2;return _0x25f4e8[_0x4baccd(0x1c5)];}static async[a84_0x6f7930(0x1a3)](_0x51aaa7){const _0x38b9f2=a84_0x6f7930,_0x321fec={'zEmvf':_0x38b9f2(0x144),'tnUMV':function(_0x55f32f,_0x4d88e3){return _0x55f32f(_0x4d88e3);},'aBOlc':_0x38b9f2(0x1e1)};logger['debug'](_0x321fec[_0x38b9f2(0x1a5)]);const _0x3a1427=process['env'][_0x38b9f2(0x15c)];if(!_0x321fec[_0x38b9f2(0x12a)](isNullOrEmpty,_0x3a1427))return logger['debug'](_0x38b9f2(0x132)+_0x3a1427),_0x3a1427;try{const _0x14cee8=this[_0x38b9f2(0x154)]();if(_0x321fec['tnUMV'](isNullOrEmpty,_0x14cee8))throw new Error(_0x321fec[_0x38b9f2(0x1d1)]);const _0x5b1112=this['getExistingCliPath'](_0x14cee8),_0x41cc04=await this['checkAndUpdateCli'](_0x5b1112,_0x14cee8,_0x51aaa7);return logger[_0x38b9f2(0x1c3)]('Resolved\x20binary\x20path:\x20'+_0x41cc04),_0x41cc04;}catch(_0x26b7fd){logger[_0x38b9f2(0x1c3)](_0x38b9f2(0x207)+util['format'](_0x26b7fd));}return null;}static async[a84_0x6f7930(0x17b)](_0x5ddb90,_0x4caddf,_0x3018a5){const _0x1d388a=a84_0x6f7930,_0x1f307e={'mWCVe':function(_0x4ea05e){return _0x4ea05e();},'IyvUB':function(_0x41544f,_0x800d49){return _0x41544f(_0x800d49);},'sUNvM':function(_0x11b660,_0x4e5b42,_0x463c8b){return _0x11b660(_0x4e5b42,_0x463c8b);},'uTpNo':_0x1d388a(0x1ad),'OMtfS':'url','XcGgM':function(_0x1f5714,_0x2a449b,_0x5b9615){return _0x1f5714(_0x2a449b,_0x5b9615);}};PerformanceTester[_0x1d388a(0x16d)](PerformanceEvents[_0x1d388a(0x189)]),logger['info']('Current\x20CLI\x20Path\x20Found:\x20'+_0x5ddb90);const _0x340cc0=_0x1f307e['mWCVe'](getHostInfo),_0x663d00={'sdk_version':CLIUtils[_0x1d388a(0x1e7)](),'os':_0x340cc0[_0x1d388a(0x1ce)],'os_arch':_0x340cc0[_0x1d388a(0x208)],'cli_version':'0','sdk_language':this[_0x1d388a(0x1e6)]()};!_0x1f307e[_0x1d388a(0x15b)](isNullOrEmpty,_0x5ddb90)&&(_0x663d00[_0x1d388a(0x1df)]=await this['runShellCommand'](_0x5ddb90+_0x1d388a(0x185)));const _0x5a4117=await this[_0x1d388a(0x1fa)](_0x663d00,_0x3018a5);process[_0x1d388a(0x1a6)][_0x1d388a(0x1c1)]&&(logger[_0x1d388a(0x1ed)](_0x1d388a(0x1c8)+process[_0x1d388a(0x1a6)][_0x1d388a(0x1c1)]),_0x5a4117[_0x1d388a(0x1ad)][_0x1d388a(0x1db)]=process['env'][_0x1d388a(0x1c1)]);if(_0x1f307e[_0x1d388a(0x17f)](nestedKeyValue,_0x5a4117,[_0x1f307e[_0x1d388a(0x183)],_0x1f307e[_0x1d388a(0x168)]])){logger[_0x1d388a(0x1c3)](_0x1d388a(0x18f)+_0x663d00[_0x1d388a(0x1df)]);if(!_0x1f307e['IyvUB'](isNullOrEmpty,_0x5ddb90)&&this[_0x1d388a(0x194)](_0x5ddb90))return logger['warn']('Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20'+_0x5ddb90),PerformanceTester[_0x1d388a(0x13b)](PerformanceEvents[_0x1d388a(0x189)]),_0x5ddb90;const _0x510551=await this[_0x1d388a(0x1aa)](_0x1f307e[_0x1d388a(0x16c)](nestedKeyValue,_0x5a4117,[_0x1f307e[_0x1d388a(0x183)],_0x1f307e['OMtfS']]),_0x4caddf);return PerformanceTester[_0x1d388a(0x13b)](PerformanceEvents[_0x1d388a(0x189)]),_0x510551;}return PerformanceTester[_0x1d388a(0x13b)](PerformanceEvents[_0x1d388a(0x189)]),_0x5ddb90;}static[a84_0x6f7930(0x154)](){const _0x526f1d=a84_0x6f7930,_0x5ce73f={'iaDWa':function(_0x548f49,_0x15ece6){return _0x548f49(_0x15ece6);},'gMkyD':_0x526f1d(0x1e1),'xjWKA':_0x526f1d(0x14b)},_0x2bd930=this[_0x526f1d(0x1d2)]();try{if(_0x5ce73f[_0x526f1d(0x142)](isNullOrEmpty,_0x2bd930))throw new Error(_0x5ce73f[_0x526f1d(0x1e3)]);const _0x249cc7=path[_0x526f1d(0x1c6)](_0x2bd930,_0x5ce73f[_0x526f1d(0x1d5)]);return!fs['existsSync'](_0x249cc7)&&_0x5ce73f['iaDWa'](createDir,_0x249cc7),_0x249cc7;}catch(_0x36f744){logger['debug'](_0x526f1d(0x173)+util[_0x526f1d(0x184)](_0x36f744));}}static[a84_0x6f7930(0x1d2)](){const _0xce3d4b=a84_0x6f7930,_0x2b07d4={'JXKkZ':_0xce3d4b(0x195),'LBAaz':function(_0x5b34c9,_0x32b870){return _0x5b34c9(_0x32b870);},'sgCyZ':function(_0x504c1c,_0x32c4af){return _0x504c1c(_0x32c4af);}},_0x5ac0ad=[process['env'][_0xce3d4b(0x14a)],path[_0xce3d4b(0x1c6)](os[_0xce3d4b(0x179)](),_0x2b07d4[_0xce3d4b(0x204)]),path[_0xce3d4b(0x1c6)](os[_0xce3d4b(0x13c)](),_0x2b07d4[_0xce3d4b(0x204)])];for(const _0x4fb661 of _0x5ac0ad){if(_0x2b07d4['LBAaz'](isNullOrEmpty,_0x4fb661))continue;try{if(fs['existsSync'](_0x4fb661)){logger['debug']('Folder\x20'+_0x4fb661+_0xce3d4b(0x161));if(!_0x2b07d4[_0xce3d4b(0x135)](isModifiable,_0x4fb661)){logger[_0xce3d4b(0x1c3)](_0xce3d4b(0x191)+_0x4fb661);const _0x1e125c=_0x2b07d4[_0xce3d4b(0x135)](setReadWriteExecuteAccess,_0x4fb661);if(!_0x2b07d4[_0xce3d4b(0x145)](isTrue,_0x1e125c)){logger[_0xce3d4b(0x1a0)](_0xce3d4b(0x1ec)+_0x4fb661);continue;}}}else{logger[_0xce3d4b(0x1c3)](_0xce3d4b(0x157)+_0x4fb661),_0x2b07d4[_0xce3d4b(0x135)](createDir,_0x4fb661),logger[_0xce3d4b(0x1c3)]('Setting\x20required\x20permissions\x20to\x20'+_0x4fb661);const _0xba5820=_0x2b07d4[_0xce3d4b(0x135)](setReadWriteExecuteAccess,_0x4fb661);!_0x2b07d4[_0xce3d4b(0x145)](isTrue,_0xba5820)&&logger[_0xce3d4b(0x1a0)](_0xce3d4b(0x1ec)+_0x4fb661);}return _0x4fb661;}catch(_0x2518c1){logger['error'](_0xce3d4b(0x1ca)+util[_0xce3d4b(0x184)](_0x2518c1));}}return null;}static[a84_0x6f7930(0x14f)](_0x5c3310){const _0x1868ca=a84_0x6f7930,_0x1edfcc={};_0x1edfcc[_0x1868ca(0x181)]=function(_0x1ff9f1,_0x108fd9){return _0x1ff9f1>_0x108fd9;},_0x1edfcc[_0x1868ca(0x14c)]=function(_0x2de0be,_0xc284b5){return _0x2de0be>_0xc284b5;};const _0x416da4=_0x1edfcc;try{if(!fs[_0x1868ca(0x1da)](_0x5c3310)||!fs[_0x1868ca(0x12d)](_0x5c3310)[_0x1868ca(0x1e4)]())return'';const _0x36f466=fs['readdirSync'](_0x5c3310)['map'](_0x200e78=>path['join'](_0x5c3310,_0x200e78))[_0x1868ca(0x15d)](_0x3d870b=>fs[_0x1868ca(0x12d)](_0x3d870b)['isFile']()&&path['basename'](_0x3d870b)[_0x1868ca(0x1a4)]('binary-'));if(_0x416da4['DClGE'](_0x36f466[_0x1868ca(0x1b1)],0x0)){const _0x578757=_0x36f466['map'](_0x260f31=>({'filePath':_0x260f31,'mtime':fs[_0x1868ca(0x12d)](_0x260f31)['mtime']}))[_0x1868ca(0x1bf)]((_0x1bb7f2,_0x296d8f)=>{const _0x2a210d=_0x1868ca;if(!_0x1bb7f2||!_0x1bb7f2[_0x2a210d(0x14d)])return _0x296d8f;if(_0x416da4['GTjNN'](_0x296d8f[_0x2a210d(0x14d)],_0x1bb7f2[_0x2a210d(0x14d)]))return _0x296d8f;return _0x1bb7f2;},{});return _0x578757?_0x578757[_0x1868ca(0x18b)]:'';}return'';}catch(_0x521285){return logger['error']('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x1868ca(0x184)](_0x521285)),'';}}static [a84_0x6f7930(0x1fa)]=async(_0xa7dfa0,_0x3ed4c7)=>{const _0x28386d=a84_0x6f7930,_0x2bfce8={'ZijqN':function(_0x216cc9,_0xb09716,_0x547c15,_0x408a81,_0x15b1df){return _0x216cc9(_0xb09716,_0x547c15,_0x408a81,_0x15b1df);},'RbQXf':_0x28386d(0x1e2)},_0xbc2328={};_0xbc2328['qs']=_0xa7dfa0;const _0x44620b=await _0x2bfce8[_0x28386d(0x134)](nodeRequest,_0x2bfce8['RbQXf'],UPDATED_CLI_ENDPOINT,_0xbc2328,_0x3ed4c7);return logger[_0x28386d(0x1c3)](_0x28386d(0x18a)+JSON['stringify'](_0x44620b)),_0x44620b;};static[a84_0x6f7930(0x194)](_0x21e3dc){const _0x2f45d9=a84_0x6f7930;try{const _0x24c765=fs[_0x2f45d9(0x1f8)](_0x21e3dc,'r+');return fs[_0x2f45d9(0x1b9)](_0x24c765),![];}catch(_0x1e08a1){if(BINARY_BUSY_ERROR_CODES[_0x2f45d9(0x167)](_0x1e08a1[_0x2f45d9(0x13a)]))return logger[_0x2f45d9(0x1c3)](_0x2f45d9(0x19c)+_0x21e3dc),!![];return logger[_0x2f45d9(0x1c3)](_0x2f45d9(0x16b)+_0x1e08a1['message']),![];}}static['runShellCommand'](_0x137731,_0x1385d9=''){const _0x1b34ae=a84_0x6f7930,_0x720c1e={'QAIFk':_0x1b34ae(0x17c),'CPeMs':function(_0x23e156,_0x1aeeab){return _0x23e156(_0x1aeeab);},'USfiQ':_0x1b34ae(0x15a),'hYgTn':function(_0x586fec,_0x4a72b2){return _0x586fec(_0x4a72b2);},'kgjVn':function(_0x5b5438,_0xaac311,_0x2a39e3,_0x3b3e61){return _0x5b5438(_0xaac311,_0x2a39e3,_0x3b3e61);},'TEXkm':'error'};return new Promise((_0x3efa3a,_0x487a07)=>{const _0x165f47=_0x1b34ae,_0x526ec8={'gkUYA':_0x720c1e[_0x165f47(0x13f)],'MMxAP':function(_0xf8ddd,_0x59ce0d){return _0x720c1e['CPeMs'](_0xf8ddd,_0x59ce0d);},'gdILw':_0x720c1e['USfiQ'],'LZrpI':function(_0x5b004c,_0x263cf7){return _0x720c1e['hYgTn'](_0x5b004c,_0x263cf7);}},_0x3d0e4d={};_0x3d0e4d['cwd']=_0x1385d9,_0x3d0e4d[_0x165f47(0x146)]=0x1388;const _0x28bdba=_0x720c1e['kgjVn'](exec,_0x137731,_0x3d0e4d,(_0x5e4170,_0x1d0b96,_0x1be340)=>{const _0x2fbc14=_0x165f47;if(_0x5e4170){if(_0x137731[_0x2fbc14(0x167)](_0x526ec8[_0x2fbc14(0x170)])&&(_0x1d0b96[_0x2fbc14(0x174)]()||_0x1be340['trim']())){const _0x3e7d25=_0x1d0b96['trim']()||_0x1be340[_0x2fbc14(0x174)]();logger[_0x2fbc14(0x1c3)](_0x2fbc14(0x1b6)+_0x3e7d25+'\x22'),_0x526ec8[_0x2fbc14(0x1f5)](_0x3efa3a,_0x3e7d25);}else _0x526ec8['MMxAP'](_0x3efa3a,_0x1be340[_0x2fbc14(0x174)]()||_0x526ec8['gdILw']);}else logger[_0x2fbc14(0x1c3)](_0x2fbc14(0x20a)+_0x1d0b96[_0x2fbc14(0x174)]()+'\x22'),_0x526ec8['LZrpI'](_0x3efa3a,_0x1d0b96[_0x2fbc14(0x174)]());});_0x28bdba['on'](_0x720c1e[_0x165f47(0x19b)],()=>{const _0xf263d0=_0x165f47;_0x526ec8[_0xf263d0(0x1f5)](_0x3efa3a,_0x526ec8[_0xf263d0(0x158)]);});});}static [a84_0x6f7930(0x1aa)]=async(_0x396cd4,_0x366671)=>{const _0x3edd3b=a84_0x6f7930,_0x5521d8={'rDvgP':function(_0x64771c,_0x463f02){return _0x64771c(_0x463f02);},'SGsKQ':_0x3edd3b(0x192),'zjiGW':function(_0xd2c6f1,_0x4620aa){return _0xd2c6f1(_0x4620aa);},'PGtIh':_0x3edd3b(0x1bd),'GsBIt':_0x3edd3b(0x1e0)};PerformanceTester[_0x3edd3b(0x16d)](PerformanceEvents[_0x3edd3b(0x209)]),logger['debug']('Downloading\x20SDK\x20binary\x20from:\x20'+_0x396cd4);try{const _0x5a3f3f=url[_0x3edd3b(0x1a2)](_0x396cd4),_0x14ba87=path[_0x3edd3b(0x1c6)](_0x366671,_0x3edd3b(0x1f4)+process[_0x3edd3b(0x205)]+'.zip'),_0x5dcf76=fs[_0x3edd3b(0x1b4)](_0x14ba87);return new Promise((_0x288349,_0x662b65)=>{const _0x5c318b=_0x3edd3b,_0x42217a={'zGyHG':function(_0x47d36b,_0x48e3fd){const _0x5a7b9b=a84_0x1b0e;return _0x5521d8[_0x5a7b9b(0x1cb)](_0x47d36b,_0x48e3fd);},'VPzLw':_0x5521d8[_0x5c318b(0x17e)],'pYoHK':function(_0x4a72ba,_0x39c93f){return _0x5521d8['zjiGW'](_0x4a72ba,_0x39c93f);},'TwcQO':_0x5521d8[_0x5c318b(0x177)],'kDoEj':_0x5521d8['GsBIt']};https[_0x5c318b(0x13e)](_0x5a3f3f,function(_0x503d10){const _0x49d169=_0x5c318b,_0x876423={'rqove':_0x42217a['VPzLw'],'kHmkJ':function(_0xe8c7a6,_0x4aec37){const _0x25fb51=a84_0x1b0e;return _0x42217a[_0x25fb51(0x1d0)](_0xe8c7a6,_0x4aec37);},'UuFxm':_0x42217a[_0x49d169(0x148)],'jSjvE':function(_0x8c67b4,_0x2acec8){const _0x4c795d=_0x49d169;return _0x42217a[_0x4c795d(0x1d0)](_0x8c67b4,_0x2acec8);}},_0x2fd56d=null;_0x503d10[_0x49d169(0x159)](_0x5dcf76),_0x503d10['on'](_0x42217a['kDoEj'],function(_0xb0a2d6){const _0x1207ab=_0x49d169;logger['error'](util[_0x1207ab(0x184)](_0x876423[_0x1207ab(0x1ba)],_0xb0a2d6)),PerformanceTester[_0x1207ab(0x13b)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x1207ab(0x184)](_0xb0a2d6)),_0x876423[_0x1207ab(0x202)](_0x662b65,_0xb0a2d6);}),_0x5dcf76['on'](_0x42217a[_0x49d169(0x136)],function(_0x57989d){const _0x329e8a=_0x49d169;logger['error'](util[_0x329e8a(0x184)](_0x876423[_0x329e8a(0x1b3)],_0x57989d)),PerformanceTester[_0x329e8a(0x13b)](PerformanceEvents[_0x329e8a(0x209)],![],util['format'](_0x57989d)),_0x876423[_0x329e8a(0x202)](_0x662b65,_0x57989d);}),CLIUtils[_0x49d169(0x165)](_0x5dcf76,_0x2fd56d,_0x14ba87,_0x366671,_0x184edf=>{const _0x5b98dd=_0x49d169;PerformanceTester['end'](PerformanceEvents[_0x5b98dd(0x209)]),_0x876423['jSjvE'](_0x288349,_0x184edf);},_0x1fdb98=>{const _0x3995df=_0x49d169;PerformanceTester[_0x3995df(0x13b)](PerformanceEvents[_0x3995df(0x209)],![],util[_0x3995df(0x184)](_0x1fdb98)),_0x42217a['zGyHG'](_0x662b65,_0x1fdb98);});})['on'](_0x5521d8['GsBIt'],function(_0x28a527){const _0x2882eb=_0x5c318b;logger[_0x2882eb(0x1e0)](_0x2882eb(0x12b)+util[_0x2882eb(0x184)](_0x28a527)),PerformanceTester['end'](PerformanceEvents[_0x2882eb(0x209)],![],util['format'](_0x28a527)),_0x42217a['zGyHG'](_0x662b65,_0x28a527);});});}catch(_0x4eccce){PerformanceTester[_0x3edd3b(0x13b)](PerformanceEvents[_0x3edd3b(0x209)],![],util[_0x3edd3b(0x184)](_0x4eccce)),logger[_0x3edd3b(0x1c3)](_0x3edd3b(0x1de)+util[_0x3edd3b(0x184)](_0x4eccce));}};static[a84_0x6f7930(0x165)](_0x5c47d7,_0xfbc61b,_0x1322d9,_0x16b52f,_0x2102e6,_0x232510){const _0x151c44=a84_0x6f7930,_0x376cfd={'kcaeL':function(_0x2710de,_0x417392){return _0x2710de(_0x417392);},'mbyDv':_0x151c44(0x1cf),'hnePR':_0x151c44(0x13b),'QgkQF':function(_0x4519a8,_0x3eaca2){return _0x4519a8(_0x3eaca2);},'zssCZ':function(_0x3d601a,_0x270539){return _0x3d601a(_0x270539);},'TAgTJ':'entry','EHJWl':_0x151c44(0x1e0),'BfCMW':function(_0x4ce11e,_0x161184){return _0x4ce11e!==_0x161184;},'oUetq':function(_0x5ae288,_0x1b7ad0){return _0x5ae288!==_0x1b7ad0;},'kkuGl':_0x151c44(0x1b2),'TiBYn':function(_0x580311,_0x3a90db){return _0x580311(_0x3a90db);},'MdDwb':function(_0xea78a4,_0xfa4f91){return _0xea78a4(_0xfa4f91);},'aXcfZ':_0x151c44(0x182)};_0x5c47d7['on'](_0x376cfd[_0x151c44(0x133)],function(){const _0x4dfc8c=_0x151c44,_0x3de49e={'hjbea':function(_0x355efa,_0x4a4ad4){const _0x960131=a84_0x1b0e;return _0x376cfd[_0x960131(0x140)](_0x355efa,_0x4a4ad4);},'XKPXk':function(_0x2cedc3,_0x391a7e){const _0x3ea628=a84_0x1b0e;return _0x376cfd[_0x3ea628(0x1f9)](_0x2cedc3,_0x391a7e);},'rEcWN':_0x376cfd[_0x4dfc8c(0x1b0)],'EDIwK':function(_0x15d34c,_0x4f7c04){const _0xd03bab=_0x4dfc8c;return _0x376cfd[_0xd03bab(0x16e)](_0x15d34c,_0x4f7c04);},'LvuJw':_0x376cfd[_0x4dfc8c(0x1ea)],'nfRjO':function(_0x493de8,_0x238ab7){const _0x47ddd1=_0x4dfc8c;return _0x376cfd[_0x47ddd1(0x19f)](_0x493de8,_0x238ab7);},'ytOXd':function(_0x24b294,_0x77a3d6){return _0x376cfd['MdDwb'](_0x24b294,_0x77a3d6);},'uFOBp':_0x376cfd['aXcfZ']},_0x44e4fb={};_0x44e4fb[_0x4dfc8c(0x1ff)]=!![],yauzl[_0x4dfc8c(0x1e9)](_0x1322d9,_0x44e4fb,function(_0x227ebf,_0x4be670){const _0x47f275=_0x4dfc8c,_0x15c1e7={'KAXiB':function(_0x2c1eb1,_0x5f2077){return _0x376cfd['kcaeL'](_0x2c1eb1,_0x5f2077);},'vqHau':_0x376cfd[_0x47f275(0x133)],'IHsmH':function(_0x1923e9,_0x35680c){return _0x376cfd['kcaeL'](_0x1923e9,_0x35680c);},'HWdic':_0x376cfd[_0x47f275(0x1c4)],'cJthP':function(_0x35bd0e,_0x58edda){const _0x4c90de=_0x47f275;return _0x376cfd[_0x4c90de(0x1a1)](_0x35bd0e,_0x58edda);}};if(_0x227ebf){_0x376cfd[_0x47f275(0x1f9)](_0x232510,_0x227ebf);return;}_0x4be670[_0x47f275(0x1b7)](),_0x4be670['on'](_0x376cfd[_0x47f275(0x188)],_0x3340e9=>{const _0x5b6333=_0x47f275;if(/\/$/[_0x5b6333(0x1c7)](_0x3340e9[_0x5b6333(0x1f6)])){_0x4be670['readEntry']();return;}!_0xfbc61b&&(_0xfbc61b=_0x3340e9['fileName']);if(_0x3de49e[_0x5b6333(0x1f1)](_0x3340e9[_0x5b6333(0x1f6)],_0xfbc61b))_0x4be670[_0x5b6333(0x1b7)]();else{const _0x574856=_0x3340e9[_0x5b6333(0x1f6)],_0x2e07b5=path['join'](_0x16b52f,_0x574856+_0x5b6333(0x1d7)+process['pid']);let _0x4f831a;try{_0x4f831a=fs[_0x5b6333(0x1b4)](_0x2e07b5);}catch(_0x26177a){if(BINARY_BUSY_ERROR_CODES[_0x5b6333(0x167)](_0x26177a[_0x5b6333(0x13a)])){const _0xd7bc2c=path[_0x5b6333(0x1c6)](_0x16b52f,_0x574856);if(fs[_0x5b6333(0x1da)](_0xd7bc2c)){logger[_0x5b6333(0x1a0)](_0x5b6333(0x1eb)+_0x574856),fs['unlink'](_0x1322d9,_0x301378=>{_0x301378&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x1322d9);}),_0x3de49e[_0x5b6333(0x169)](_0x2102e6,_0xd7bc2c);return;}logger['warn'](_0x5b6333(0x1a7)+_0x574856);}_0x3de49e[_0x5b6333(0x169)](_0x232510,_0x26177a);return;}_0x4f831a['on'](_0x3de49e[_0x5b6333(0x1c0)],_0x1cee56=>{const _0x33e08d=_0x5b6333;if(BINARY_BUSY_ERROR_CODES[_0x33e08d(0x167)](_0x1cee56[_0x33e08d(0x13a)])){const _0x3227c2=path[_0x33e08d(0x1c6)](_0x16b52f,_0x574856);_0x4f831a[_0x33e08d(0x1cf)](),fs[_0x33e08d(0x1da)](_0x3227c2)?(logger[_0x33e08d(0x1a0)]('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x1cee56['message']),_0x4be670['close'](),fs[_0x33e08d(0x1ae)](_0x1322d9,_0x3c1729=>{const _0x1e85ed=_0x33e08d;_0x3c1729&&logger[_0x1e85ed(0x1a0)](_0x1e85ed(0x149)+_0x1322d9);}),_0x15c1e7[_0x33e08d(0x137)](_0x2102e6,_0x3227c2)):(logger[_0x33e08d(0x1a0)](_0x33e08d(0x16f)+_0x1cee56[_0x33e08d(0x1f2)]),fs['unlink'](_0x2e07b5,()=>{}),_0x15c1e7[_0x33e08d(0x137)](_0x232510,_0x1cee56));}else fs[_0x33e08d(0x1ae)](_0x2e07b5,()=>{}),_0x15c1e7['KAXiB'](_0x232510,_0x1cee56);}),_0x4be670[_0x5b6333(0x187)](_0x3340e9,function(_0x3280ac,_0x3c1ea5){const _0xb157be=_0x5b6333,_0x16e47={};_0x16e47[_0xb157be(0x139)]=_0x15c1e7[_0xb157be(0x147)];const _0x470f11=_0x16e47;if(_0x3280ac){fs['unlink'](_0x2e07b5,()=>{}),_0x15c1e7[_0xb157be(0x15e)](_0x232510,_0x3280ac);return;}_0x3c1ea5['on'](_0x15c1e7[_0xb157be(0x199)],function(){const _0x35cb16=_0xb157be;_0x4f831a[_0x35cb16(0x13b)](),_0x4f831a['on'](_0x470f11[_0x35cb16(0x139)],function(){const _0x54dcfe=_0x35cb16;_0x4be670[_0x54dcfe(0x1b7)]();});}),_0x3c1ea5['pipe'](_0x4f831a);});}}),_0x4be670['on'](_0x376cfd[_0x47f275(0x1b0)],_0x54cac3=>{_0x3de49e['XKPXk'](_0x232510,_0x54cac3);}),_0x4be670[_0x47f275(0x17a)](_0x376cfd['hnePR'],()=>{const _0x241eb3=_0x47f275,_0x17bcab={'UvKiC':function(_0x309fc0,_0x7c0d83){const _0x3fb9b9=a84_0x1b0e;return _0x3de49e[_0x3fb9b9(0x18d)](_0x309fc0,_0x7c0d83);},'vMQyr':_0x3de49e[_0x241eb3(0x1e5)],'lpCQg':function(_0xc6271b,_0x56cb60){return _0x3de49e['XKPXk'](_0xc6271b,_0x56cb60);},'nBDvP':function(_0x3eea0e,_0x582db5){return _0x3de49e['nfRjO'](_0x3eea0e,_0x582db5);},'tOzod':function(_0x2c0118,_0x1092b8){const _0x2178a5=_0x241eb3;return _0x3de49e[_0x2178a5(0x1fb)](_0x2c0118,_0x1092b8);}};fs[_0x241eb3(0x1ae)](_0x1322d9,_0x196ab9=>{const _0x4a2556=_0x241eb3;_0x196ab9&&logger[_0x4a2556(0x1a0)](_0x4a2556(0x149)+_0x1322d9);});const _0x59ec54=path[_0x241eb3(0x1c6)](_0x16b52f,_0xfbc61b+_0x241eb3(0x1d7)+process[_0x241eb3(0x205)]),_0x34fa86=path[_0x241eb3(0x1c6)](_0x16b52f,_0xfbc61b);fs['chmod'](_0x59ec54,_0x3de49e[_0x241eb3(0x1b5)],function(_0x54f4d3){const _0x2417d3=_0x241eb3;if(_0x54f4d3){_0x4be670[_0x2417d3(0x1cf)](),fs[_0x2417d3(0x1ae)](_0x59ec54,()=>{}),_0x15c1e7[_0x2417d3(0x196)](_0x232510,_0x54f4d3);return;}fs[_0x2417d3(0x1c2)](_0x59ec54,_0x34fa86,function(_0x51c173){const _0x2514e8=_0x2417d3;if(_0x51c173){if(_0x17bcab['UvKiC'](_0x51c173[_0x2514e8(0x13a)],_0x17bcab[_0x2514e8(0x1dd)])){_0x4be670[_0x2514e8(0x1cf)](),fs['unlink'](_0x59ec54,()=>{}),_0x17bcab[_0x2514e8(0x131)](_0x232510,_0x51c173);return;}logger[_0x2514e8(0x1a0)](_0x2514e8(0x14e)+_0x51c173[_0x2514e8(0x1f2)]);try{fs[_0x2514e8(0x1c9)](_0x59ec54,_0x34fa86);}catch(_0x12e2b1){_0x4be670[_0x2514e8(0x1cf)](),fs[_0x2514e8(0x1ae)](_0x59ec54,()=>{}),_0x17bcab[_0x2514e8(0x17d)](_0x232510,_0x12e2b1);return;}fs['unlink'](_0x59ec54,_0x19f5c9=>{const _0x5f2509=_0x2514e8;_0x19f5c9&&logger[_0x5f2509(0x1a0)]('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x19f5c9[_0x5f2509(0x1f2)]);});}_0x4be670['close'](),_0x17bcab['tOzod'](_0x2102e6,_0x34fa86);});});});});});}static[a84_0x6f7930(0x12c)](){const _0x2fa829=a84_0x6f7930;if(process[_0x2fa829(0x1a6)][_0x2fa829(0x1cd)])return JSON['parse'](process['env'][_0x2fa829(0x1cd)]);return this[_0x2fa829(0x12f)];}static[a84_0x6f7930(0x163)](){const _0x4bb712=a84_0x6f7930;if(process[_0x4bb712(0x1a6)][_0x4bb712(0x18e)])return JSON[_0x4bb712(0x1a2)](process[_0x4bb712(0x1a6)][_0x4bb712(0x18e)]);return this[_0x4bb712(0x151)];}static['setFrameworkDetail'](_0x3c05f5,_0x221cd7){const _0x13bb03=a84_0x6f7930,_0x243faf={'ntllq':_0x13bb03(0x176),'VtegM':function(_0x41f06f,_0x4adb00){return _0x41f06f(_0x4adb00);},'mdcQt':function(_0x12093f,_0x360875){return _0x12093f(_0x360875);},'uXkAJ':function(_0x4e489c,_0x5af643){return _0x4e489c||_0x5af643;}},_0x5ec8f6=_0x243faf[_0x13bb03(0x19e)][_0x13bb03(0x200)]('|');let _0x339d35=0x0;while(!![]){switch(_0x5ec8f6[_0x339d35++]){case'0':this[_0x13bb03(0x151)]={'name':_0x221cd7,'version':_0x243faf[_0x13bb03(0x162)](getFrameworkVersion,_0x221cd7)};continue;case'1':process[_0x13bb03(0x1a6)][_0x13bb03(0x1cd)]=JSON['stringify'](this[_0x13bb03(0x12f)]);continue;case'2':process[_0x13bb03(0x1a6)][_0x13bb03(0x18e)]=JSON[_0x13bb03(0x152)](this[_0x13bb03(0x151)]);continue;case'3':this[_0x13bb03(0x12f)]={'name':_0x3c05f5,'version':{[_0x3c05f5]:_0x243faf[_0x13bb03(0x1af)](getFrameworkVersion,_0x3c05f5)}};continue;case'4':_0x243faf[_0x13bb03(0x190)](!_0x3c05f5,!_0x221cd7)&&logger[_0x13bb03(0x1c3)](_0x13bb03(0x1f3)+_0x3c05f5+_0x13bb03(0x1f0)+_0x221cd7);continue;}break;}}static['getHookRegistryKey'](_0x26a886,_0x43db62){return _0x26a886+':'+_0x43db62;}static[a84_0x6f7930(0x1e8)](){return process['pid']+':'+threadId;}static[a84_0x6f7930(0x206)](_0x4bea2a){const _0x4fb083=a84_0x6f7930;if(_0x4bea2a[_0x4fb083(0x12e)]&&_0x4bea2a[_0x4fb083(0x12e)][_0x4fb083(0x1cc)])return!![];return![];}static[a84_0x6f7930(0x1ee)](_0x239a78){const _0x2597ef=a84_0x6f7930;if(_0x239a78['testContextOptions']&&_0x239a78[_0x2597ef(0x12e)][_0x2597ef(0x1fe)])return!![];return![];}static[a84_0x6f7930(0x1f7)](_0x24745b){const _0x160aaa=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x160aaa['test'](_0x24745b);}static[a84_0x6f7930(0x1d8)](_0x2787fd,_0x4996f1){const _0x540dbc=a84_0x6f7930,_0x54ef82={};_0x54ef82[_0x540dbc(0x197)]=function(_0xa3ed44,_0x5e5897){return _0xa3ed44!==_0x5e5897;},_0x54ef82['lfOII']=function(_0x5c6d5a,_0x5bb982){return _0x5c6d5a===_0x5bb982;},_0x54ef82[_0x540dbc(0x18c)]='object';const _0x1c1008=_0x54ef82;for(const [_0xdc8721,_0x1a331e]of Object[_0x540dbc(0x1ef)](_0x4996f1)){if(_0x1c1008[_0x540dbc(0x197)](_0x1a331e,null)&&_0x1c1008[_0x540dbc(0x16a)](typeof _0x1a331e,_0x1c1008[_0x540dbc(0x18c)])&&!Array['isArray'](_0x1a331e))_0x2787fd[_0xdc8721]=this['mergeObject'](_0x2787fd[_0xdc8721]||{},_0x1a331e);else Array['isArray'](_0x1a331e)?_0x2787fd[_0xdc8721]=(_0x2787fd[_0xdc8721]||[])[_0x540dbc(0x13d)](_0x1a331e):_0x2787fd[_0xdc8721]=_0x1a331e;}return _0x2787fd;}}function a84_0x1b0e(_0x1f90b8,_0x3d7ce5){const _0x868503=a84_0x8685();return a84_0x1b0e=function(_0x1b0ecc,_0x5c543b){_0x1b0ecc=_0x1b0ecc-0x12a;let _0x3d5071=_0x868503[_0x1b0ecc];return _0x3d5071;},a84_0x1b0e(_0x1f90b8,_0x3d7ce5);}module[a84_0x6f7930(0x198)]=CLIUtils;
|
|
1
|
+
const a84_0x20c3d9=a84_0xe995;function a84_0xe995(_0x5531a3,_0x1fe06d){const _0x5b573a=a84_0x5b57();return a84_0xe995=function(_0xe99558,_0x17c38d){_0xe99558=_0xe99558-0x173;let _0x5ac504=_0x5b573a[_0xe99558];return _0x5ac504;},a84_0xe995(_0x5531a3,_0x1fe06d);}(function(_0x574557,_0x307e0a){const _0x107d04=a84_0xe995,_0x5406de=_0x574557();while(!![]){try{const _0x317790=-parseInt(_0x107d04(0x17e))/0x1*(-parseInt(_0x107d04(0x1f6))/0x2)+-parseInt(_0x107d04(0x203))/0x3*(-parseInt(_0x107d04(0x20f))/0x4)+parseInt(_0x107d04(0x192))/0x5*(parseInt(_0x107d04(0x198))/0x6)+parseInt(_0x107d04(0x1dc))/0x7+-parseInt(_0x107d04(0x206))/0x8+parseInt(_0x107d04(0x196))/0x9*(-parseInt(_0x107d04(0x1a8))/0xa)+-parseInt(_0x107d04(0x1be))/0xb*(parseInt(_0x107d04(0x176))/0xc);if(_0x317790===_0x307e0a)break;else _0x5406de['push'](_0x5406de['shift']());}catch(_0x309837){_0x5406de['push'](_0x5406de['shift']());}}}(a84_0x5b57,0xe728c));function a84_0x5b57(){const _0x35dbb7=['fRJPG','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','podnm','exCXO','downloadLatestBinary','testFrameworkDetail','KiyYy','HCzuN','MSexu','./instances/testFrameworkInstance.js','YdNud','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','qqNGt','error','Resolved\x20binary\x20path:\x20','LYiYI','qrKTG','BROWSERSTACK_CLI_ENV','.zip','unix:/tmp/sdk-platform-','url','36ymyOVB','copyFileSync','lazyEntries','./state/hookState.js','getWritableDir','zuuXb','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','join','1ukimoi','SDK_CLI_DOWNLOAD','statSync','unlink','bcpYy','0|3|2|4|1','exports','sjVAe','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','IvfUD','getSdkVersion','gNsHv','yxJOJ','daNka','SDK_CLI_BIN_PATH','WbIEc','GccPR','zjjjJ','\x20version','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','32835Bfxjew','beWyD','XqhnF','info','36tgmtqp','BROWSERSTACK_FILES_DIR','834qDHGxF','Configuring\x20Cli\x20path.','cli','PqXlu','Development\x20Cli\x20Path:\x20','NtNtD','entry','iOmqj','IiWhn','length','IgcfJ','bRXPp','SHELL_EXECUTE_ERROR','../../helpers/test-observability/utils.js','./state/automationFrameworkState.js','PDiuS','2002180FrdkqO','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','AzRHd','runShellCommand','MtxsC','matchHookRegex','EaRXt','tmpdir','SDK_CLI_CHECK_UPDATE','end','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','shouldSkipSessionName','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','code','createWriteStream','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','NvwiP','cwd','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','isArray','fileName','nOLig','7901839XSJAFL','cfnEp','DkQev','BROWSERSTACK_BINARY_URL','\x20already\x20exists','xCirR','cli_version','map','../../helpers/utilities','downloadFileStream','message','openReadStream','close','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','start','includes','pid','sIKtK','CLIUtils','Downloading\x20SDK\x20binary\x20from:\x20','../../helpers/performance/performance-tester.js','gPlLe','Error\x20while\x20reading\x20CLI\x20path:\x20','concat','pipe','getCurrentInstanceName','nRsDz','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','tzMgb','KXmap','8695022DFcrDb','util','reduce','lywos','binary-','wXcah','KbXcp','test','NuYSO','JKcEo','../../helpers/performance/constants','getTestFrameworkDetail','ysADP','.tmp.','YaNug','getExistingCliPath','./state/testFrameworkState.js','trim','BkSxL','timeout','iyLgA','amlPG','platform','rCBcu','get','parse','3431486gpnXpL','env','isDevelopmentEnv','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','node','yWHdj','requestToUpdateCLI','coALB','version','existsSync','EXDEV','mtime','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','332535RpiAdn','hvcej','moXmv','4177440MSDMLG','OLaXS','.browserstack','isFile','FGkNs','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','filePath','downloaded_file_','KtQDu','20NUGbfH','data','readEntry','OUeOf','debug','xzCrN','getCliDir','format','getAutomationFrameworkDetail','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','IeRRJ','../utils/apiUtilityMethods.js','TMmsM','XYByr','TVStC','amLpx','ccrrg','listen','warn','arch','NghBu','GET','openSync','chmod','follow-redirects','basename','getHookRegistryKey','DCAwi','Current\x20CLI\x20Path\x20Found:\x20','../utils/constants','GsPEJ','../../helpers/helper','skipSessionName','split',',\x20automationFramework=','AaYVz','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','Failed\x20to\x20delete\x20zip\x20file:\x20','isBinaryBusy','automationFrameworkDetail','fMXaH','YmYLa','filter','testContextOptions'];a84_0x5b57=function(){return _0x35dbb7;};return a84_0x5b57();}const fs=require('fs'),os=require('os'),url=require(a84_0x20c3d9(0x175)),path=require('path'),{exec}=require('child_process'),{https}=require(a84_0x20c3d9(0x227)),yauzl=require('yauzl'),util=require(a84_0x20c3d9(0x1dd)),{getFrameworkVersion}=require(a84_0x20c3d9(0x1a5)),{threadId}=require('worker_threads'),PerformanceTester=require(a84_0x20c3d9(0x1d2)),{EVENTS:PerformanceEvents}=require(a84_0x20c3d9(0x1e6)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a84_0x20c3d9(0x1c6)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a84_0x20c3d9(0x22e)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a84_0x20c3d9(0x22c)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a84_0x20c3d9(0x244)),HookState=require(a84_0x20c3d9(0x179)),TestFrameworkState=require(a84_0x20c3d9(0x1ec)),AutomationFrameworkState=require(a84_0x20c3d9(0x1a6)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a84_0x20c3d9(0x1d0)),{getBStackAPIUrl}=require(a84_0x20c3d9(0x21a));class CLIUtils{[a84_0x20c3d9(0x236)]={};[a84_0x20c3d9(0x240)]={};static[a84_0x20c3d9(0x1f8)](){const _0x5d0b4b=a84_0x20c3d9,_0x2e7107={};_0x2e7107[_0x5d0b4b(0x1f3)]=function(_0x589171,_0x5335d8){return _0x589171===_0x5335d8;},_0x2e7107[_0x5d0b4b(0x1ea)]='development';const _0x4272c4=_0x2e7107;return _0x4272c4[_0x5d0b4b(0x1f3)](process[_0x5d0b4b(0x1f7)][_0x5d0b4b(0x24c)],_0x4272c4[_0x5d0b4b(0x1ea)]);}static['getCLIParamsForDevEnv'](){const _0x36ed1a=a84_0x20c3d9,_0x4bce71={};return _0x4bce71['id']=process[_0x36ed1a(0x1f7)][_0x36ed1a(0x24c)],_0x4bce71[_0x36ed1a(0x220)]=_0x36ed1a(0x174)+process['env']['BROWSERSTACK_CLI_ENV']+'.sock',_0x4bce71;}static[a84_0x20c3d9(0x188)](){const _0x2bf50f=a84_0x20c3d9,_0x8bfb43={'vVSMP':function(_0x1736f0,_0x4d7343){return _0x1736f0(_0x4d7343);},'LYiYI':'../../../package.json'};return _0x8bfb43['vVSMP'](require,_0x8bfb43[_0x2bf50f(0x24a)])[_0x2bf50f(0x1fe)];}static['getSdkLanguage'](){const _0x333124=a84_0x20c3d9,_0x42afc8={};_0x42afc8[_0x333124(0x1bd)]=_0x333124(0x1fa);const _0x159927=_0x42afc8;return _0x159927[_0x333124(0x1bd)];}static async['setupCliPath'](_0x193800){const _0x577f25=a84_0x20c3d9,_0x14177d={'lywos':_0x577f25(0x199),'BkSxL':function(_0xadc479,_0x3a90b9){return _0xadc479(_0x3a90b9);},'igwzL':function(_0x5e4a8a,_0x56d06b){return _0x5e4a8a(_0x56d06b);},'CSDgX':_0x577f25(0x202)};logger['debug'](_0x14177d[_0x577f25(0x1df)]);const _0x4c821c=process[_0x577f25(0x1f7)][_0x577f25(0x18c)];if(!_0x14177d[_0x577f25(0x1ee)](isNullOrEmpty,_0x4c821c))return logger['debug'](_0x577f25(0x19c)+_0x4c821c),_0x4c821c;try{const _0x34b838=this[_0x577f25(0x215)]();if(_0x14177d['igwzL'](isNullOrEmpty,_0x34b838))throw new Error(_0x14177d['CSDgX']);const _0x2b8968=this[_0x577f25(0x1eb)](_0x34b838),_0x24a8ee=await this['checkAndUpdateCli'](_0x2b8968,_0x34b838,_0x193800);return logger[_0x577f25(0x213)](_0x577f25(0x249)+_0x24a8ee),_0x24a8ee;}catch(_0x5df08f){logger[_0x577f25(0x213)](_0x577f25(0x246)+util['format'](_0x5df08f));}return null;}static async['checkAndUpdateCli'](_0x5d58c2,_0x5dd281,_0x35a553){const _0x1727ad=a84_0x20c3d9,_0x421268={'eXOBs':function(_0x5c34b5){return _0x5c34b5();},'YmYLa':function(_0x3f817c,_0x5e49ad){return _0x3f817c(_0x5e49ad);},'hvcej':function(_0x328b9a,_0x2b0481,_0x27006a){return _0x328b9a(_0x2b0481,_0x27006a);},'KiyYy':_0x1727ad(0x210),'TMmsM':_0x1727ad(0x175),'ysADP':function(_0x5c5245,_0x17c186){return _0x5c5245(_0x17c186);}};PerformanceTester[_0x1727ad(0x1cc)](PerformanceEvents[_0x1727ad(0x1b0)]),logger[_0x1727ad(0x195)](_0x1727ad(0x22b)+_0x5d58c2);const _0x1ce21f=_0x421268['eXOBs'](getHostInfo),_0x5291f0={'sdk_version':CLIUtils[_0x1727ad(0x188)](),'os':_0x1ce21f[_0x1727ad(0x1f2)],'os_arch':_0x1ce21f[_0x1727ad(0x222)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x421268[_0x1727ad(0x238)](isNullOrEmpty,_0x5d58c2)&&(_0x5291f0[_0x1727ad(0x1c4)]=await this[_0x1727ad(0x1ab)](_0x5d58c2+_0x1727ad(0x190)));const _0x3d02fb=await this[_0x1727ad(0x1fc)](_0x5291f0,_0x35a553);process[_0x1727ad(0x1f7)]['BROWSERSTACK_BINARY_URL']&&(logger[_0x1727ad(0x195)]('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process[_0x1727ad(0x1f7)][_0x1727ad(0x1c1)]),_0x3d02fb['data'][_0x1727ad(0x175)]=process['env'][_0x1727ad(0x1c1)]);if(_0x421268[_0x1727ad(0x204)](nestedKeyValue,_0x3d02fb,[_0x421268[_0x1727ad(0x241)],_0x421268[_0x1727ad(0x21b)]])){logger[_0x1727ad(0x213)](_0x1727ad(0x17c)+_0x5291f0['cli_version']);if(!_0x421268[_0x1727ad(0x1e8)](isNullOrEmpty,_0x5d58c2)&&this['isBinaryBusy'](_0x5d58c2))return logger[_0x1727ad(0x221)]('Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20'+_0x5d58c2),PerformanceTester[_0x1727ad(0x1b1)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x5d58c2;const _0x35145e=await this['downloadLatestBinary'](_0x421268[_0x1727ad(0x204)](nestedKeyValue,_0x3d02fb,[_0x421268[_0x1727ad(0x241)],_0x421268[_0x1727ad(0x21b)]]),_0x5dd281);return PerformanceTester[_0x1727ad(0x1b1)](PerformanceEvents[_0x1727ad(0x1b0)]),_0x35145e;}return PerformanceTester[_0x1727ad(0x1b1)](PerformanceEvents[_0x1727ad(0x1b0)]),_0x5d58c2;}static[a84_0x20c3d9(0x215)](){const _0xc160fb=a84_0x20c3d9,_0x320c4e={'yxJOJ':function(_0x5e1de2,_0x2d23a7){return _0x5e1de2(_0x2d23a7);},'gPlLe':_0xc160fb(0x202),'OUeOf':_0xc160fb(0x19a),'zKMyC':function(_0x44bd90,_0x24f7f4){return _0x44bd90(_0x24f7f4);}},_0x3ad2ca=this['getWritableDir']();try{if(_0x320c4e[_0xc160fb(0x18a)](isNullOrEmpty,_0x3ad2ca))throw new Error(_0x320c4e[_0xc160fb(0x1d3)]);const _0x2d30fd=path[_0xc160fb(0x17d)](_0x3ad2ca,_0x320c4e[_0xc160fb(0x212)]);return!fs[_0xc160fb(0x1ff)](_0x2d30fd)&&_0x320c4e['zKMyC'](createDir,_0x2d30fd),_0x2d30fd;}catch(_0x314a61){logger[_0xc160fb(0x213)](_0xc160fb(0x1b7)+util[_0xc160fb(0x216)](_0x314a61));}}static[a84_0x20c3d9(0x17a)](){const _0x355ab3=a84_0x20c3d9,_0x11281a={'podnm':_0x355ab3(0x208),'tzMgb':function(_0x3d68b5,_0x47229b){return _0x3d68b5(_0x47229b);},'zjjjJ':function(_0x139a46,_0xa0225c){return _0x139a46(_0xa0225c);},'qqNGt':function(_0x315217,_0x4ea097){return _0x315217(_0x4ea097);},'ccrrg':function(_0x5828b7,_0x94b037){return _0x5828b7(_0x94b037);},'gNsHv':function(_0x3fe3de,_0x969744){return _0x3fe3de(_0x969744);},'wXcah':function(_0x3862d9,_0x424a87){return _0x3862d9(_0x424a87);}},_0x45a152=[process[_0x355ab3(0x1f7)][_0x355ab3(0x197)],path[_0x355ab3(0x17d)](os['homedir'](),_0x11281a[_0x355ab3(0x23d)]),path['join'](os[_0x355ab3(0x1af)](),_0x11281a[_0x355ab3(0x23d)])];for(const _0x4a40f9 of _0x45a152){if(_0x11281a[_0x355ab3(0x1da)](isNullOrEmpty,_0x4a40f9))continue;try{if(fs['existsSync'](_0x4a40f9)){logger[_0x355ab3(0x213)]('Folder\x20'+_0x4a40f9+_0x355ab3(0x1c2));if(!_0x11281a[_0x355ab3(0x18f)](isModifiable,_0x4a40f9)){logger[_0x355ab3(0x213)]('Setting\x20required\x20permissions\x20to\x20'+_0x4a40f9);const _0x101f3a=_0x11281a[_0x355ab3(0x247)](setReadWriteExecuteAccess,_0x4a40f9);if(!_0x11281a[_0x355ab3(0x21f)](isTrue,_0x101f3a)){logger['warn']('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x4a40f9);continue;}}}else{logger['debug']('Folder\x20does\x20not\x20exist:\x20'+_0x4a40f9),_0x11281a[_0x355ab3(0x1da)](createDir,_0x4a40f9),logger[_0x355ab3(0x213)]('Setting\x20required\x20permissions\x20to\x20'+_0x4a40f9);const _0x56fd1f=_0x11281a[_0x355ab3(0x189)](setReadWriteExecuteAccess,_0x4a40f9);!_0x11281a[_0x355ab3(0x1e1)](isTrue,_0x56fd1f)&&logger['warn'](_0x355ab3(0x1b4)+_0x4a40f9);}return _0x4a40f9;}catch(_0x2d1874){logger[_0x355ab3(0x248)](_0x355ab3(0x1d9)+util[_0x355ab3(0x216)](_0x2d1874));}}return null;}static[a84_0x20c3d9(0x1eb)](_0x2fb0f0){const _0x3dcaa0=a84_0x20c3d9,_0x5c43c0={};_0x5c43c0['GccPR']=function(_0x4ac2fc,_0x146427){return _0x4ac2fc>_0x146427;};const _0x1e44e0=_0x5c43c0;try{if(!fs[_0x3dcaa0(0x1ff)](_0x2fb0f0)||!fs['statSync'](_0x2fb0f0)['isDirectory']())return'';const _0x50798b=fs['readdirSync'](_0x2fb0f0)[_0x3dcaa0(0x1c5)](_0x1ac792=>path[_0x3dcaa0(0x17d)](_0x2fb0f0,_0x1ac792))[_0x3dcaa0(0x239)](_0x1fdb2f=>fs[_0x3dcaa0(0x180)](_0x1fdb2f)[_0x3dcaa0(0x209)]()&&path[_0x3dcaa0(0x228)](_0x1fdb2f)['startsWith'](_0x3dcaa0(0x1e0)));if(_0x1e44e0['GccPR'](_0x50798b[_0x3dcaa0(0x1a1)],0x0)){const _0x108923=_0x50798b['map'](_0x65939b=>({'filePath':_0x65939b,'mtime':fs[_0x3dcaa0(0x180)](_0x65939b)[_0x3dcaa0(0x201)]}))[_0x3dcaa0(0x1de)]((_0x33901b,_0x424da5)=>{const _0xbce099=_0x3dcaa0;if(!_0x33901b||!_0x33901b['mtime'])return _0x424da5;if(_0x1e44e0[_0xbce099(0x18e)](_0x424da5[_0xbce099(0x201)],_0x33901b['mtime']))return _0x424da5;return _0x33901b;},{});return _0x108923?_0x108923[_0x3dcaa0(0x20c)]:'';}return'';}catch(_0x13b321){return logger[_0x3dcaa0(0x248)](_0x3dcaa0(0x1d4)+util[_0x3dcaa0(0x216)](_0x13b321)),'';}}static [a84_0x20c3d9(0x1fc)]=async(_0x2224a4,_0xf5bac9)=>{const _0x4be1f2=a84_0x20c3d9,_0xf4305e={'WsHAJ':function(_0x3f386e,_0x1ac19b,_0x3de8f3,_0x5166b7,_0x2fe424){return _0x3f386e(_0x1ac19b,_0x3de8f3,_0x5166b7,_0x2fe424);},'fMXaH':_0x4be1f2(0x224)},_0x1e4f1d={};_0x1e4f1d['qs']=_0x2224a4;const _0x353a94=await _0xf4305e['WsHAJ'](nodeRequest,_0xf4305e[_0x4be1f2(0x237)],UPDATED_CLI_ENDPOINT,_0x1e4f1d,_0xf5bac9);return logger[_0x4be1f2(0x213)]('response\x20'+JSON['stringify'](_0x353a94)),_0x353a94;};static[a84_0x20c3d9(0x235)](_0x3383c0){const _0x564269=a84_0x20c3d9;try{const _0x5af787=fs[_0x564269(0x225)](_0x3383c0,'r+');return fs['closeSync'](_0x5af787),![];}catch(_0x4cf865){if(BINARY_BUSY_ERROR_CODES['includes'](_0x4cf865[_0x564269(0x1b5)]))return logger[_0x564269(0x213)]('Binary\x20is\x20busy:\x20'+_0x3383c0),!![];return logger[_0x564269(0x213)](_0x564269(0x1b2)+_0x4cf865[_0x564269(0x1c8)]),![];}}static[a84_0x20c3d9(0x1ab)](_0x9c880e,_0x214e80=''){const _0x1d0465=a84_0x20c3d9,_0x3a1862={'qrKTG':_0x1d0465(0x1fe),'PqXlu':function(_0x2bb9d3,_0x2481a1){return _0x2bb9d3(_0x2481a1);},'AaYVz':_0x1d0465(0x1a4),'fNsBO':function(_0x4cd936,_0x595d1b){return _0x4cd936(_0x595d1b);},'IeRRJ':function(_0x136297,_0x52f4cd,_0x2ac140,_0x3d12e0){return _0x136297(_0x52f4cd,_0x2ac140,_0x3d12e0);},'xCirR':_0x1d0465(0x248)};return new Promise((_0x523381,_0x13ce05)=>{const _0x3dee7a=_0x1d0465,_0x5b7035={};_0x5b7035[_0x3dee7a(0x1b9)]=_0x214e80,_0x5b7035[_0x3dee7a(0x1ef)]=0x1388;const _0x51801c=_0x3a1862[_0x3dee7a(0x219)](exec,_0x9c880e,_0x5b7035,(_0x3073bd,_0x2d2160,_0x166353)=>{const _0x3fa714=_0x3dee7a;if(_0x3073bd){if(_0x9c880e[_0x3fa714(0x1cd)](_0x3a1862[_0x3fa714(0x24b)])&&(_0x2d2160['trim']()||_0x166353[_0x3fa714(0x1ed)]())){const _0x24a3c3=_0x2d2160[_0x3fa714(0x1ed)]()||_0x166353[_0x3fa714(0x1ed)]();logger[_0x3fa714(0x213)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x24a3c3+'\x22'),_0x3a1862[_0x3fa714(0x19b)](_0x523381,_0x24a3c3);}else _0x3a1862[_0x3fa714(0x19b)](_0x523381,_0x166353[_0x3fa714(0x1ed)]()||_0x3a1862[_0x3fa714(0x232)]);}else logger[_0x3fa714(0x213)]('Resolving\x20with\x20stdout:\x20\x22'+_0x2d2160[_0x3fa714(0x1ed)]()+'\x22'),_0x3a1862['PqXlu'](_0x523381,_0x2d2160['trim']());});_0x51801c['on'](_0x3a1862[_0x3dee7a(0x1c3)],()=>{const _0x26bc2=_0x3dee7a;_0x3a1862['fNsBO'](_0x523381,_0x3a1862[_0x26bc2(0x232)]);});});}static [a84_0x20c3d9(0x23f)]=async(_0x59dd25,_0x52c411)=>{const _0x130ea5=a84_0x20c3d9,_0x54f7a6={'TVStC':_0x130ea5(0x1a9),'DCAwi':function(_0x4a0555,_0x56d847){return _0x4a0555(_0x56d847);},'PDiuS':'error','KiRua':_0x130ea5(0x191)};PerformanceTester['start'](PerformanceEvents[_0x130ea5(0x17f)]),logger[_0x130ea5(0x213)](_0x130ea5(0x1d1)+_0x59dd25);try{const _0x3172ba=url['parse'](_0x59dd25),_0x465b5f=path[_0x130ea5(0x17d)](_0x52c411,_0x130ea5(0x20d)+process[_0x130ea5(0x1ce)]+_0x130ea5(0x173)),_0xdbbd45=fs[_0x130ea5(0x1b6)](_0x465b5f);return new Promise((_0x4247af,_0x5ebb18)=>{const _0x1500d8=_0x130ea5,_0x4cbad7={'NghBu':_0x54f7a6['KiRua'],'bcpYy':function(_0x25b9f5,_0x3730bc){const _0x2fa0fe=a84_0xe995;return _0x54f7a6[_0x2fa0fe(0x22a)](_0x25b9f5,_0x3730bc);}};https[_0x1500d8(0x1f4)](_0x3172ba,function(_0x1ffc5f){const _0x253cd9=_0x1500d8,_0x36dadf={'KbXcp':_0x54f7a6[_0x253cd9(0x21d)],'NuYSO':function(_0x1c3e2d,_0x579a20){const _0x1d8ae9=_0x253cd9;return _0x54f7a6[_0x1d8ae9(0x22a)](_0x1c3e2d,_0x579a20);},'GsPEJ':function(_0x2da8d6,_0x4f2854){const _0x1b0478=_0x253cd9;return _0x54f7a6[_0x1b0478(0x22a)](_0x2da8d6,_0x4f2854);}},_0x3249ee=null;_0x1ffc5f[_0x253cd9(0x1d6)](_0xdbbd45),_0x1ffc5f['on'](_0x54f7a6['PDiuS'],function(_0x329369){const _0x10ab7f=_0x253cd9;logger[_0x10ab7f(0x248)](util[_0x10ab7f(0x216)](_0x4cbad7[_0x10ab7f(0x223)],_0x329369)),PerformanceTester[_0x10ab7f(0x1b1)](PerformanceEvents[_0x10ab7f(0x17f)],![],util['format'](_0x329369)),_0x4cbad7[_0x10ab7f(0x182)](_0x5ebb18,_0x329369);}),_0xdbbd45['on'](_0x54f7a6['PDiuS'],function(_0x220848){const _0x23fe19=_0x253cd9;logger[_0x23fe19(0x248)](util['format'](_0x36dadf[_0x23fe19(0x1e2)],_0x220848)),PerformanceTester['end'](PerformanceEvents[_0x23fe19(0x17f)],![],util['format'](_0x220848)),_0x36dadf[_0x23fe19(0x1e4)](_0x5ebb18,_0x220848);}),CLIUtils[_0x253cd9(0x1c7)](_0xdbbd45,_0x3249ee,_0x465b5f,_0x52c411,_0x462b64=>{const _0x382c10=_0x253cd9;PerformanceTester[_0x382c10(0x1b1)](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x36dadf[_0x382c10(0x22d)](_0x4247af,_0x462b64);},_0x17107b=>{const _0x52ce50=_0x253cd9;PerformanceTester['end'](PerformanceEvents[_0x52ce50(0x17f)],![],util['format'](_0x17107b)),_0x4cbad7['bcpYy'](_0x5ebb18,_0x17107b);});})['on'](_0x54f7a6[_0x1500d8(0x1a7)],function(_0x44ba04){const _0x2582d=_0x1500d8;logger['error'](_0x2582d(0x1f9)+util['format'](_0x44ba04)),PerformanceTester[_0x2582d(0x1b1)](PerformanceEvents[_0x2582d(0x17f)],![],util['format'](_0x44ba04)),_0x4cbad7[_0x2582d(0x182)](_0x5ebb18,_0x44ba04);});});}catch(_0x4867de){PerformanceTester[_0x130ea5(0x1b1)](PerformanceEvents[_0x130ea5(0x17f)],![],util[_0x130ea5(0x216)](_0x4867de)),logger[_0x130ea5(0x213)](_0x130ea5(0x20b)+util[_0x130ea5(0x216)](_0x4867de));}};static[a84_0x20c3d9(0x1c7)](_0x4fbd3e,_0x193aaa,_0x5c9451,_0x4e7adf,_0x546cec,_0x2c2672){const _0x224894=a84_0x20c3d9,_0x311f35={'coALB':function(_0x3fc262,_0x48d3e4){return _0x3fc262!==_0x48d3e4;},'AzRHd':_0x224894(0x200),'nRsDz':function(_0x308456,_0x5e6859){return _0x308456(_0x5e6859);},'OLaXS':'0755','moXmv':_0x224894(0x1b1),'EaRXt':_0x224894(0x1ca),'IvfUD':'error','EkBbz':_0x224894(0x19e)};_0x4fbd3e['on'](_0x311f35['EaRXt'],function(){const _0x5c81e6=_0x224894,_0xb5a66e={'MtxsC':function(_0x2d5a54,_0x338766){const _0x257ff9=a84_0xe995;return _0x311f35[_0x257ff9(0x1fd)](_0x2d5a54,_0x338766);},'IiWhn':_0x311f35[_0x5c81e6(0x1aa)],'DkQev':function(_0x3db343,_0x5d6aac){return _0x311f35['nRsDz'](_0x3db343,_0x5d6aac);},'fRJPG':function(_0x59cd6c,_0x389675){const _0x583216=_0x5c81e6;return _0x311f35[_0x583216(0x1d8)](_0x59cd6c,_0x389675);},'iOmqj':function(_0x18745e,_0x57d89b){const _0x190222=_0x5c81e6;return _0x311f35[_0x190222(0x1d8)](_0x18745e,_0x57d89b);},'FGkNs':_0x311f35[_0x5c81e6(0x207)],'yWHdj':function(_0x4070a4,_0x3d8dfe){const _0x268e0c=_0x5c81e6;return _0x311f35[_0x268e0c(0x1d8)](_0x4070a4,_0x3d8dfe);},'HCzuN':function(_0x459b46,_0x48d454){const _0x14354e=_0x5c81e6;return _0x311f35[_0x14354e(0x1d8)](_0x459b46,_0x48d454);},'sjVAe':_0x311f35[_0x5c81e6(0x205)],'cfnEp':_0x311f35[_0x5c81e6(0x1ae)],'NvwiP':_0x311f35[_0x5c81e6(0x187)],'AyyKm':_0x311f35['EkBbz']},_0x28f8b5={};_0x28f8b5[_0x5c81e6(0x178)]=!![],yauzl['open'](_0x5c9451,_0x28f8b5,function(_0x4e9a5c,_0x1e443a){const _0x411180=_0x5c81e6,_0xb326db={'daNka':function(_0x3979ae,_0x255334){const _0x11d851=a84_0xe995;return _0xb5a66e[_0x11d851(0x1fb)](_0x3979ae,_0x255334);},'NUFJP':function(_0x2deb0d,_0x3b08d7){const _0x4f69c5=a84_0xe995;return _0xb5a66e[_0x4f69c5(0x242)](_0x2deb0d,_0x3b08d7);},'KtQDu':_0xb5a66e[_0x411180(0x185)],'IwNFj':_0xb5a66e[_0x411180(0x1bf)],'KXmap':function(_0x441bc8,_0x4bc78c){const _0x28ae5e=_0x411180;return _0xb5a66e[_0x28ae5e(0x1ac)](_0x441bc8,_0x4bc78c);},'xzCrN':function(_0x399088,_0x48e670){return _0xb5a66e['iOmqj'](_0x399088,_0x48e670);},'YdNud':function(_0x541672,_0xc9f275){return _0xb5a66e['iOmqj'](_0x541672,_0xc9f275);},'IgcfJ':_0xb5a66e[_0x411180(0x1b8)]};if(_0x4e9a5c){_0xb5a66e[_0x411180(0x242)](_0x2c2672,_0x4e9a5c);return;}_0x1e443a[_0x411180(0x211)](),_0x1e443a['on'](_0xb5a66e['AyyKm'],_0x25df7e=>{const _0x3105bf=_0x411180,_0x22714d={};_0x22714d[_0x3105bf(0x243)]=_0xb326db['IwNFj'];const _0x401651=_0x22714d;if(/\/$/[_0x3105bf(0x1e3)](_0x25df7e[_0x3105bf(0x1bc)])){_0x1e443a[_0x3105bf(0x211)]();return;}!_0x193aaa&&(_0x193aaa=_0x25df7e[_0x3105bf(0x1bc)]);if(_0xb326db[_0x3105bf(0x1db)](_0x25df7e[_0x3105bf(0x1bc)],_0x193aaa))_0x1e443a[_0x3105bf(0x211)]();else{const _0x346cd6=_0x25df7e[_0x3105bf(0x1bc)],_0x2d2155=path[_0x3105bf(0x17d)](_0x4e7adf,_0x346cd6+_0x3105bf(0x1e9)+process[_0x3105bf(0x1ce)]);let _0x1af326;try{_0x1af326=fs[_0x3105bf(0x1b6)](_0x2d2155);}catch(_0x4a5998){if(BINARY_BUSY_ERROR_CODES[_0x3105bf(0x1cd)](_0x4a5998[_0x3105bf(0x1b5)])){const _0x1deb75=path[_0x3105bf(0x17d)](_0x4e7adf,_0x346cd6);if(fs['existsSync'](_0x1deb75)){logger['warn']('Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x346cd6),fs['unlink'](_0x5c9451,_0x10934c=>{const _0x221c25=_0x3105bf;_0x10934c&&logger[_0x221c25(0x221)](_0x221c25(0x234)+_0x5c9451);}),_0xb326db[_0x3105bf(0x214)](_0x546cec,_0x1deb75);return;}logger[_0x3105bf(0x221)](_0x3105bf(0x233)+_0x346cd6);}_0xb326db[_0x3105bf(0x245)](_0x2c2672,_0x4a5998);return;}_0x1af326['on'](_0xb326db[_0x3105bf(0x1a2)],_0x118eeb=>{const _0x525e4b=_0x3105bf;if(BINARY_BUSY_ERROR_CODES[_0x525e4b(0x1cd)](_0x118eeb[_0x525e4b(0x1b5)])){const _0x2bab56=path[_0x525e4b(0x17d)](_0x4e7adf,_0x346cd6);_0x1af326[_0x525e4b(0x1ca)](),fs[_0x525e4b(0x1ff)](_0x2bab56)?(logger[_0x525e4b(0x221)]('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x118eeb['message']),_0x1e443a[_0x525e4b(0x1ca)](),fs['unlink'](_0x5c9451,_0x255634=>{const _0x4a5f85=_0x525e4b;_0x255634&&logger[_0x4a5f85(0x221)](_0x4a5f85(0x234)+_0x5c9451);}),_0xb326db['daNka'](_0x546cec,_0x2bab56)):(logger[_0x525e4b(0x221)](_0x525e4b(0x218)+_0x118eeb[_0x525e4b(0x1c8)]),fs['unlink'](_0x2d2155,()=>{}),_0xb326db[_0x525e4b(0x18b)](_0x2c2672,_0x118eeb));}else fs['unlink'](_0x2d2155,()=>{}),_0xb326db[_0x525e4b(0x18b)](_0x2c2672,_0x118eeb);}),_0x1e443a[_0x3105bf(0x1c9)](_0x25df7e,function(_0x395ed9,_0x5cd214){const _0x1a7af7=_0x3105bf;if(_0x395ed9){fs[_0x1a7af7(0x181)](_0x2d2155,()=>{}),_0xb326db['NUFJP'](_0x2c2672,_0x395ed9);return;}_0x5cd214['on'](_0xb326db[_0x1a7af7(0x20e)],function(){const _0x59c817=_0x1a7af7;_0x1af326[_0x59c817(0x1b1)](),_0x1af326['on'](_0x401651[_0x59c817(0x243)],function(){const _0x572909=_0x59c817;_0x1e443a[_0x572909(0x211)]();});}),_0x5cd214[_0x1a7af7(0x1d6)](_0x1af326);});}}),_0x1e443a['on'](_0xb5a66e[_0x411180(0x1b8)],_0x2742d7=>{_0xb326db['NUFJP'](_0x2c2672,_0x2742d7);}),_0x1e443a['once'](_0xb5a66e[_0x411180(0x185)],()=>{const _0x1ade2e=_0x411180,_0x382605={'JKcEo':function(_0x361fa5,_0x57b071){const _0x436d70=a84_0xe995;return _0xb5a66e[_0x436d70(0x1ac)](_0x361fa5,_0x57b071);},'OdLtM':_0xb5a66e[_0x1ade2e(0x1a0)],'sIKtK':function(_0x57f742,_0x1dac68){const _0x2309b6=_0x1ade2e;return _0xb5a66e[_0x2309b6(0x1c0)](_0x57f742,_0x1dac68);},'XYByr':function(_0x4a4018,_0x4a6b36){const _0x53d634=_0x1ade2e;return _0xb5a66e[_0x53d634(0x23b)](_0x4a4018,_0x4a6b36);},'zZtyZ':function(_0x5f0296,_0x4ee4e6){const _0x2118d0=_0x1ade2e;return _0xb5a66e[_0x2118d0(0x19f)](_0x5f0296,_0x4ee4e6);}};fs[_0x1ade2e(0x181)](_0x5c9451,_0x1b7b0d=>{_0x1b7b0d&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x5c9451);});const _0x2cb380=path['join'](_0x4e7adf,_0x193aaa+'.tmp.'+process[_0x1ade2e(0x1ce)]),_0x222405=path['join'](_0x4e7adf,_0x193aaa);fs[_0x1ade2e(0x226)](_0x2cb380,_0xb5a66e[_0x1ade2e(0x20a)],function(_0x1bfcc1){const _0x4e0953=_0x1ade2e,_0x32664a={'OMjxm':function(_0x3b94b7,_0x392b32){const _0x287e5=a84_0xe995;return _0x382605[_0x287e5(0x1e5)](_0x3b94b7,_0x392b32);},'bRXPp':_0x382605['OdLtM'],'WbIEc':function(_0x51f6a5,_0x4dcbfa){const _0x16ba50=a84_0xe995;return _0x382605[_0x16ba50(0x1cf)](_0x51f6a5,_0x4dcbfa);},'NtNtD':function(_0x1dfbfb,_0x42d659){const _0x345ba8=a84_0xe995;return _0x382605[_0x345ba8(0x21c)](_0x1dfbfb,_0x42d659);}};if(_0x1bfcc1){_0x1e443a[_0x4e0953(0x1ca)](),fs['unlink'](_0x2cb380,()=>{}),_0x382605['zZtyZ'](_0x2c2672,_0x1bfcc1);return;}fs['rename'](_0x2cb380,_0x222405,function(_0x509a3c){const _0x59b266=_0x4e0953;if(_0x509a3c){if(_0x32664a['OMjxm'](_0x509a3c[_0x59b266(0x1b5)],_0x32664a[_0x59b266(0x1a3)])){_0x1e443a[_0x59b266(0x1ca)](),fs[_0x59b266(0x181)](_0x2cb380,()=>{}),_0x32664a[_0x59b266(0x18d)](_0x2c2672,_0x509a3c);return;}logger[_0x59b266(0x221)]('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x509a3c[_0x59b266(0x1c8)]);try{fs[_0x59b266(0x177)](_0x2cb380,_0x222405);}catch(_0x31d712){_0x1e443a['close'](),fs[_0x59b266(0x181)](_0x2cb380,()=>{}),_0x32664a[_0x59b266(0x18d)](_0x2c2672,_0x31d712);return;}fs[_0x59b266(0x181)](_0x2cb380,_0x5d6daa=>{const _0x4017d8=_0x59b266;_0x5d6daa&&logger[_0x4017d8(0x221)](_0x4017d8(0x1cb)+_0x5d6daa[_0x4017d8(0x1c8)]);});}_0x1e443a[_0x59b266(0x1ca)](),_0x32664a[_0x59b266(0x19d)](_0x546cec,_0x222405);});});});});});}static[a84_0x20c3d9(0x1e7)](){const _0x370269=a84_0x20c3d9;if(process[_0x370269(0x1f7)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL'])return JSON[_0x370269(0x1f5)](process[_0x370269(0x1f7)][_0x370269(0x186)]);return this['testFrameworkDetail'];}static[a84_0x20c3d9(0x217)](){const _0x445990=a84_0x20c3d9;if(process[_0x445990(0x1f7)][_0x445990(0x23c)])return JSON[_0x445990(0x1f5)](process[_0x445990(0x1f7)][_0x445990(0x23c)]);return this['automationFrameworkDetail'];}static['setFrameworkDetail'](_0x4c10f0,_0x130a19){const _0xe3e844=a84_0x20c3d9,_0x4016b1={'exCXO':_0xe3e844(0x183),'XqhnF':function(_0x4ebfba,_0x3b1710){return _0x4ebfba||_0x3b1710;},'amlPG':function(_0xe9f6a5,_0x445ca6){return _0xe9f6a5(_0x445ca6);},'iyLgA':function(_0x46f4e8,_0x3ed2fa){return _0x46f4e8(_0x3ed2fa);}},_0x5a8963=_0x4016b1[_0xe3e844(0x23e)][_0xe3e844(0x230)]('|');let _0x43cbc5=0x0;while(!![]){switch(_0x5a8963[_0x43cbc5++]){case'0':_0x4016b1[_0xe3e844(0x194)](!_0x4c10f0,!_0x130a19)&&logger[_0xe3e844(0x213)](_0xe3e844(0x1ba)+_0x4c10f0+_0xe3e844(0x231)+_0x130a19);continue;case'1':process[_0xe3e844(0x1f7)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON['stringify'](this[_0xe3e844(0x240)]);continue;case'2':this[_0xe3e844(0x236)]={'name':_0x130a19,'version':_0x4016b1[_0xe3e844(0x1f1)](getFrameworkVersion,_0x130a19)};continue;case'3':this[_0xe3e844(0x240)]={'name':_0x4c10f0,'version':{[_0x4c10f0]:_0x4016b1[_0xe3e844(0x1f0)](getFrameworkVersion,_0x4c10f0)}};continue;case'4':process[_0xe3e844(0x1f7)][_0xe3e844(0x23c)]=JSON['stringify'](this[_0xe3e844(0x236)]);continue;}break;}}static[a84_0x20c3d9(0x229)](_0x43ec62,_0x42fd72){return _0x43ec62+':'+_0x42fd72;}static[a84_0x20c3d9(0x1d7)](){const _0x1759db=a84_0x20c3d9;return process[_0x1759db(0x1ce)]+':'+threadId;}static[a84_0x20c3d9(0x1b3)](_0x34a425){const _0x262ebf=a84_0x20c3d9;if(_0x34a425['testContextOptions']&&_0x34a425[_0x262ebf(0x23a)][_0x262ebf(0x22f)])return!![];return![];}static['shouldSkipSessionStatus'](_0x5f48ad){const _0x59dc36=a84_0x20c3d9;if(_0x5f48ad['testContextOptions']&&_0x5f48ad[_0x59dc36(0x23a)]['skipSessionStatus'])return!![];return![];}static[a84_0x20c3d9(0x1ad)](_0x3491f7){const _0x17d44e=a84_0x20c3d9,_0x5de211=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x5de211[_0x17d44e(0x1e3)](_0x3491f7);}static['mergeObject'](_0x3c287f,_0x3556fe){const _0x52b0ed=a84_0x20c3d9,_0x54a6c2={};_0x54a6c2['amLpx']=function(_0x8c9c1,_0x3af70b){return _0x8c9c1!==_0x3af70b;},_0x54a6c2[_0x52b0ed(0x193)]=function(_0x4ed30f,_0x24a871){return _0x4ed30f===_0x24a871;},_0x54a6c2[_0x52b0ed(0x17b)]='object';const _0x505640=_0x54a6c2;for(const [_0x41db54,_0x2a3d2c]of Object['entries'](_0x3556fe)){if(_0x505640[_0x52b0ed(0x21e)](_0x2a3d2c,null)&&_0x505640['beWyD'](typeof _0x2a3d2c,_0x505640[_0x52b0ed(0x17b)])&&!Array['isArray'](_0x2a3d2c))_0x3c287f[_0x41db54]=this['mergeObject'](_0x3c287f[_0x41db54]||{},_0x2a3d2c);else Array[_0x52b0ed(0x1bb)](_0x2a3d2c)?_0x3c287f[_0x41db54]=(_0x3c287f[_0x41db54]||[])[_0x52b0ed(0x1d5)](_0x2a3d2c):_0x3c287f[_0x41db54]=_0x2a3d2c;}return _0x3c287f;}}module[a84_0x20c3d9(0x184)]=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a85_0x4c0812=a85_0x3caf;(function(_0x112c84,_0x55b3ef){const _0x5e46fb=a85_0x3caf,_0x2a2fc8=_0x112c84();while(!![]){try{const _0x312b16=parseInt(_0x5e46fb(0x18f))/0x1+parseInt(_0x5e46fb(0x1d3))/0x2*(parseInt(_0x5e46fb(0x1c2))/0x3)+-parseInt(_0x5e46fb(0x1b1))/0x4*(-parseInt(_0x5e46fb(0x198))/0x5)+-parseInt(_0x5e46fb(0x15c))/0x6+-parseInt(_0x5e46fb(0x16e))/0x7*(-parseInt(_0x5e46fb(0x19b))/0x8)+parseInt(_0x5e46fb(0x187))/0x9*(parseInt(_0x5e46fb(0x1d7))/0xa)+-parseInt(_0x5e46fb(0x1d1))/0xb;if(_0x312b16===_0x55b3ef)break;else _0x2a2fc8['push'](_0x2a2fc8['shift']());}catch(_0x33db5c){_0x2a2fc8['push'](_0x2a2fc8['shift']());}}}(a85_0x6447,0x3eced));const fs=require('fs'),os=require('os'),path=require('path'),helper=require(a85_0x4c0812(0x15f)),AutomationFramework=require(a85_0x4c0812(0x1a1)),TestFrameworkConstants=require(a85_0x4c0812(0x19c)),PlaywrightDriverModule=require(a85_0x4c0812(0x1aa)),TestInfo=require(a85_0x4c0812(0x1b6)),TestHubModule=require(a85_0x4c0812(0x1b7)),{createClassLogger}=require(a85_0x4c0812(0x1bb)),logger=createClassLogger(a85_0x4c0812(0x163)),BUILD_TAG_FILE_PREFIX=a85_0x4c0812(0x1c4);function getBuildTagsRunId(){const _0x29b9fc=a85_0x4c0812,_0x22aabd={};_0x22aabd[_0x29b9fc(0x1b3)]=function(_0x3d8432,_0x1e5a97){return _0x3d8432===_0x1e5a97;},_0x22aabd[_0x29b9fc(0x1ae)]=_0x29b9fc(0x180);const _0x21a5d3=_0x22aabd,_0x1a2f66=process[_0x29b9fc(0x156)][_0x29b9fc(0x197)];if(!_0x1a2f66||_0x21a5d3[_0x29b9fc(0x1b3)](_0x1a2f66,_0x21a5d3[_0x29b9fc(0x1ae)]))return null;return _0x1a2f66;}function getBuildTagsFilePath(_0x239642){const _0x51fdc2=a85_0x4c0812;return path['join'](os[_0x51fdc2(0x1b4)](),''+BUILD_TAG_FILE_PREFIX+_0x239642+'_'+process['pid']+_0x51fdc2(0x168));}class CustomTagManager{static [a85_0x4c0812(0x183)]={};static [a85_0x4c0812(0x1be)]={};static[a85_0x4c0812(0x15d)](_0x3458e5,_0x205fb9){return Array['from'](new Set([..._0x3458e5||[],..._0x205fb9||[]]));}static['mergeIntoTags'](_0x3ba64f,_0x121253,_0x2e7750){const _0x2d9914=a85_0x4c0812,_0x10a773={};_0x10a773[_0x2d9914(0x1b2)]='multi_dropdown';const _0x19417a=_0x10a773;if(!_0x3ba64f[_0x121253]){const _0x1cb887={};_0x1cb887[_0x2d9914(0x17e)]=_0x19417a[_0x2d9914(0x1b2)],_0x1cb887['values']=[..._0x2e7750||[]],_0x3ba64f[_0x121253]=_0x1cb887;}else!_0x3ba64f[_0x121253]['field_type']&&(_0x3ba64f[_0x121253][_0x2d9914(0x17e)]=_0x19417a[_0x2d9914(0x1b2)]),!Array[_0x2d9914(0x16c)](_0x3ba64f[_0x121253]['values'])&&(_0x3ba64f[_0x121253][_0x2d9914(0x1d4)]=[]),_0x3ba64f[_0x121253][_0x2d9914(0x1d4)]=CustomTagManager[_0x2d9914(0x15d)](_0x3ba64f[_0x121253][_0x2d9914(0x1d4)],_0x2e7750);return _0x3ba64f;}static async[a85_0x4c0812(0x1bc)](_0x43ca0b,_0x143b7c,_0x426550=![]){const _0x3da7c2=a85_0x4c0812,_0x136c73={'JMYzm':function(_0x329625,_0x57d751){return _0x329625!==_0x57d751;},'GKEHy':'string','GcNQG':_0x3da7c2(0x181),'LJVhU':function(_0x7f5631,_0x1d56aa){return _0x7f5631!==_0x1d56aa;},'bCpcf':_0x3da7c2(0x1b0),'lDSHq':function(_0x332196,_0x4d780a){return _0x332196===_0x4d780a;},'EigXh':_0x3da7c2(0x165),'pfWaT':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','CjmJz':function(_0x17627c,_0x418b50){return _0x17627c(_0x418b50);},'NYChU':_0x3da7c2(0x192),'Aamhf':function(_0x2c788b){return _0x2c788b();},'gbGGa':_0x3da7c2(0x1a4),'QffrO':function(_0x5e4b3e,_0x342ea1){return _0x5e4b3e>_0x342ea1;},'aftYE':function(_0x28dcb8,_0x133833){return _0x28dcb8(_0x133833);},'yTgmt':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','TzBPP':':jest-','erDSK':function(_0x5258ad,_0x250b7b){return _0x5258ad(_0x250b7b);},'nOfFI':_0x3da7c2(0x158),'lGgRN':_0x3da7c2(0x16b),'MzoXa':_0x3da7c2(0x18c),'OFyna':_0x3da7c2(0x18b),'bFbgm':function(_0x3c6ef1,_0x3f4764){return _0x3c6ef1(_0x3f4764);},'StzVA':'./state/testFrameworkState','BAral':'./state/hookState','gJXMp':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x136c73[_0x3da7c2(0x19a)](typeof _0x43ca0b,_0x136c73[_0x3da7c2(0x1d2)])){logger['debug'](_0x136c73[_0x3da7c2(0x1a0)]);return;}if(_0x136c73[_0x3da7c2(0x1a9)](typeof _0x143b7c,_0x136c73['GKEHy'])){logger[_0x3da7c2(0x154)](_0x136c73[_0x3da7c2(0x16a)]);return;}if(_0x136c73['lDSHq'](_0x43ca0b[_0x3da7c2(0x1a3)](),'')){logger[_0x3da7c2(0x154)](_0x136c73[_0x3da7c2(0x191)]);return;}if(_0x136c73[_0x3da7c2(0x161)](_0x143b7c[_0x3da7c2(0x1a3)](),'')){logger[_0x3da7c2(0x154)](_0x136c73[_0x3da7c2(0x1d8)]);return;}const _0x5c95cd=helper['parseCommaSeparatedValues'](_0x143b7c);if(_0x426550){const _0x3f0edc=_0x136c73[_0x3da7c2(0x170)](require,_0x136c73['NYChU']),_0x4a15c2=_0x3f0edc[_0x3da7c2(0x1c1)](),_0x5d79be=_0x4a15c2&&_0x4a15c2[_0x3da7c2(0x1a6)][TestHubModule[_0x3da7c2(0x175)]];if(_0x5d79be){const _0x380193=_0x5d79be?.[_0x3da7c2(0x18e)]?.[_0x3da7c2(0x1af)]()?.[_0x3da7c2(0x1b5)];TestInfo[_0x3da7c2(0x1a5)](_0x380193);const _0x281418=TestInfo[_0x3da7c2(0x169)](_0x380193),_0x4b4fe3=_0x281418[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x3da7c2(0x186)](_0x4b4fe3,_0x43ca0b,_0x5c95cd),_0x281418[TestFrameworkConstants[_0x3da7c2(0x1c0)]]=_0x4b4fe3,TestInfo[_0x3da7c2(0x195)](_0x380193,_0x281418);!this['buildLevelTags'][_0x380193]&&(this[_0x3da7c2(0x183)][_0x380193]={});this[_0x3da7c2(0x183)][_0x380193][_0x43ca0b]=CustomTagManager[_0x3da7c2(0x15d)](this[_0x3da7c2(0x183)][_0x380193][_0x43ca0b],_0x5c95cd);try{const _0x2aae78=_0x136c73[_0x3da7c2(0x182)](getBuildTagsRunId);if(_0x2aae78){const _0x467c03={};for(const [_0xbf87b3,_0xff5508]of Object['entries'](this[_0x3da7c2(0x183)][_0x380193]||{})){_0x467c03[_0xbf87b3]={'field_type':_0x136c73[_0x3da7c2(0x1b8)],'values':Array[_0x3da7c2(0x16c)](_0xff5508)?[..._0xff5508]:[]};}_0x136c73['QffrO'](Object[_0x3da7c2(0x194)](_0x467c03)['length'],0x0)&&await fs[_0x3da7c2(0x17d)][_0x3da7c2(0x1c7)](_0x136c73[_0x3da7c2(0x1ac)](getBuildTagsFilePath,_0x2aae78),JSON['stringify'](_0x467c03));}else logger['debug'](_0x136c73[_0x3da7c2(0x1b9)]);}catch(_0x4815eb){logger[_0x3da7c2(0x154)](_0x3da7c2(0x171)+(_0x4815eb&&_0x4815eb[_0x3da7c2(0x193)]?_0x4815eb['message']:_0x4815eb));}}}else{let _0x300c70;const _0x396333=global['__jestCurrentTestIdentifier'];let _0x39e413=![];if(_0x396333&&_0x396333[_0x3da7c2(0x19f)](_0x136c73[_0x3da7c2(0x1a8)]))_0x39e413=!![],_0x300c70=_0x396333;else try{const _0x1cd4e8=_0x136c73[_0x3da7c2(0x1bd)](require,_0x136c73[_0x3da7c2(0x176)]),_0x140c73=_0x136c73[_0x3da7c2(0x1bd)](require,_0x136c73[_0x3da7c2(0x1ca)]);if(_0x140c73[_0x3da7c2(0x1c1)]()[_0x3da7c2(0x172)]()){const _0x2b8797=_0x1cd4e8[_0x3da7c2(0x177)]();if(_0x136c73[_0x3da7c2(0x161)](_0x2b8797?.[_0x3da7c2(0x1c6)]?.[_0x3da7c2(0x1da)](),_0x136c73['lGgRN'])){const _0x1cd881=AutomationFramework[_0x3da7c2(0x18a)]();_0x300c70=AutomationFramework[_0x3da7c2(0x17a)](_0x1cd881,PlaywrightDriverModule[_0x3da7c2(0x164)],''),_0x300c70&&_0x300c70['includes'](_0x136c73[_0x3da7c2(0x1a8)])&&(_0x39e413=!![]);}}}catch(_0x48a4ac){logger['debug'](_0x3da7c2(0x162)+_0x48a4ac);}if(_0x39e413){if(!_0x300c70)throw new Error(_0x136c73[_0x3da7c2(0x1d6)]);const _0x152588=_0x136c73[_0x3da7c2(0x170)](require,_0x136c73['NYChU']),_0x5327ee=_0x152588[_0x3da7c2(0x1c1)]()['getTestFramework']();if(!_0x5327ee)throw new Error(_0x136c73[_0x3da7c2(0x1d0)]);const _0x358b32=_0x136c73[_0x3da7c2(0x1c5)](require,_0x136c73[_0x3da7c2(0x159)]),_0x236e06=_0x136c73[_0x3da7c2(0x1c5)](require,_0x136c73[_0x3da7c2(0x16d)]),_0x344f2b=_0x5327ee['resolveInstance'](_0x358b32['TEST'],_0x236e06[_0x3da7c2(0x1c8)]);if(!_0x344f2b)throw new Error(_0x136c73[_0x3da7c2(0x190)]);const _0x359d72=_0x344f2b['getAllData']()['get'](_0x300c70)||{},_0x3a0fe6=_0x359d72[TestFrameworkConstants[_0x3da7c2(0x1c0)]]||{};logger[_0x3da7c2(0x154)](_0x3da7c2(0x155)+_0x300c70+_0x3da7c2(0x1ab)+_0x43ca0b+',\x20values='+JSON[_0x3da7c2(0x196)](_0x5c95cd)+',\x20existingTags='+JSON['stringify'](_0x3a0fe6)),CustomTagManager['mergeIntoTags'](_0x3a0fe6,_0x43ca0b,_0x5c95cd),logger[_0x3da7c2(0x154)](_0x3da7c2(0x174)+_0x43ca0b+'\x20->\x20values='+JSON[_0x3da7c2(0x196)](_0x3a0fe6[_0x43ca0b][_0x3da7c2(0x1d4)]));const _0x4fb7b6={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x3a0fe6},_0x1df864={};_0x1df864[_0x300c70]=_0x4fb7b6,_0x344f2b[_0x3da7c2(0x17b)](_0x1df864),logger[_0x3da7c2(0x154)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x300c70+_0x3da7c2(0x1ce)+JSON[_0x3da7c2(0x196)](_0x3a0fe6)),!this[_0x3da7c2(0x1be)][_0x300c70]&&(this[_0x3da7c2(0x1be)][_0x300c70]={}),this[_0x3da7c2(0x1be)][_0x300c70][_0x43ca0b]=CustomTagManager[_0x3da7c2(0x15d)](this['testLevelTags'][_0x300c70][_0x43ca0b],_0x5c95cd);}else{const _0x68bc72=global[_0x3da7c2(0x1a7)]?.[_0x3da7c2(0x18d)]?.[_0x3da7c2(0x1c9)];if(!_0x68bc72){const _0x7a95af=AutomationFramework['getTrackedInstance']();_0x300c70=AutomationFramework['getState'](_0x7a95af,PlaywrightDriverModule[_0x3da7c2(0x164)],'');}else _0x300c70=TestInfo[_0x3da7c2(0x17c)](_0x68bc72,_0x68bc72['retry']);const _0x1a2256=TestInfo['getTestDetails'](_0x300c70),_0x5b467d=_0x1a2256[TestFrameworkConstants[_0x3da7c2(0x1c0)]]||{};CustomTagManager[_0x3da7c2(0x186)](_0x5b467d,_0x43ca0b,_0x5c95cd),_0x1a2256[TestFrameworkConstants[_0x3da7c2(0x1c0)]]=_0x5b467d,TestInfo[_0x3da7c2(0x195)](_0x300c70,_0x1a2256),!this[_0x3da7c2(0x1be)][_0x300c70]&&(this[_0x3da7c2(0x1be)][_0x300c70]={}),this[_0x3da7c2(0x1be)][_0x300c70][_0x43ca0b]=CustomTagManager[_0x3da7c2(0x15d)](this[_0x3da7c2(0x1be)][_0x300c70][_0x43ca0b],_0x5c95cd);}}}static[a85_0x4c0812(0x1ad)](){const _0x541545=a85_0x4c0812,_0x593f04={...this[_0x541545(0x183)]};return _0x593f04;}static[a85_0x4c0812(0x199)](){const _0x58ed49=a85_0x4c0812,_0x123067={...this[_0x58ed49(0x1be)]};return _0x123067;}static['clearTags'](){const _0xd6529c=a85_0x4c0812;this[_0xd6529c(0x183)]={},this['testLevelTags']={};}static[a85_0x4c0812(0x167)](_0x1ecfa1,_0x39f5b7){const _0x1c0a73=a85_0x4c0812,_0x574971={};_0x574971[_0x1c0a73(0x184)]=function(_0x47352,_0x25ab56){return _0x47352||_0x25ab56;};const _0x5b5bf3=_0x574971;if(!_0x1ecfa1)return;!this[_0x1c0a73(0x183)][_0x1ecfa1]&&(this[_0x1c0a73(0x183)][_0x1ecfa1]={});for(const [_0x19ee81,_0x5a99a4]of Object[_0x1c0a73(0x1a2)](_0x5b5bf3[_0x1c0a73(0x184)](_0x39f5b7,{}))){if(!_0x5a99a4||!Array[_0x1c0a73(0x16c)](_0x5a99a4['values']))continue;this[_0x1c0a73(0x183)][_0x1ecfa1][_0x19ee81]=CustomTagManager['mergeValues'](this[_0x1c0a73(0x183)][_0x1ecfa1][_0x19ee81],_0x5a99a4[_0x1c0a73(0x1d4)]);}}static[a85_0x4c0812(0x1bf)](_0x27499c,_0x4aae66){const _0x4c7cf3=a85_0x4c0812,_0x1df9f5={};_0x1df9f5[_0x4c7cf3(0x1ba)]=_0x4c7cf3(0x1cc),_0x1df9f5[_0x4c7cf3(0x16f)]=function(_0x1f3519,_0x34e31e){return _0x1f3519*_0x34e31e;},_0x1df9f5[_0x4c7cf3(0x188)]=function(_0x4ce9f6,_0x1484ac){return _0x4ce9f6>_0x1484ac;},_0x1df9f5[_0x4c7cf3(0x1d5)]=function(_0x5737a0,_0x50152a){return _0x5737a0-_0x50152a;},_0x1df9f5[_0x4c7cf3(0x19e)]=_0x4c7cf3(0x160);const _0x212a3c=_0x1df9f5;if(!_0x27499c)return logger[_0x4c7cf3(0x154)](_0x212a3c[_0x4c7cf3(0x1ba)]),0x0;let _0x3cedb9;try{_0x3cedb9=os['tmpdir']();}catch(_0x49ed75){return logger[_0x4c7cf3(0x154)](_0x4c7cf3(0x19d)+_0x49ed75),0x0;}let _0x4c8211;try{_0x4c8211=fs[_0x4c7cf3(0x189)](_0x3cedb9);}catch(_0x17e270){return logger[_0x4c7cf3(0x154)](_0x4c7cf3(0x1c3)+_0x17e270),0x0;}const _0x3aff3f=''+BUILD_TAG_FILE_PREFIX+_0x27499c+'_',_0x58a632=_0x4c8211['filter'](_0x21f8b3=>_0x21f8b3[_0x4c7cf3(0x179)](_0x3aff3f)&&_0x21f8b3[_0x4c7cf3(0x17f)](_0x4c7cf3(0x168))),_0x1df189=_0x212a3c[_0x4c7cf3(0x16f)](_0x212a3c[_0x4c7cf3(0x16f)](_0x212a3c['KxFYs'](0x2,0x3c),0x3c),0x3e8);let _0x384efc=0x0;for(const _0x29caa5 of _0x58a632){const _0x5c87bb=path[_0x4c7cf3(0x157)](_0x3cedb9,_0x29caa5);try{const _0x1a8004=fs[_0x4c7cf3(0x15e)](_0x5c87bb);if(_0x212a3c[_0x4c7cf3(0x188)](_0x212a3c[_0x4c7cf3(0x1d5)](Date[_0x4c7cf3(0x185)](),_0x1a8004['mtimeMs']),_0x1df189)){logger[_0x4c7cf3(0x154)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>'+_0x1df189+_0x4c7cf3(0x166)+_0x29caa5);try{fs[_0x4c7cf3(0x15a)](_0x5c87bb);}catch(_0x2cb074){logger[_0x4c7cf3(0x154)](_0x4c7cf3(0x15b)+_0x29caa5+':\x20'+(_0x2cb074&&_0x2cb074[_0x4c7cf3(0x193)]?_0x2cb074[_0x4c7cf3(0x193)]:_0x2cb074));}continue;}const _0x468ca9=fs[_0x4c7cf3(0x1cf)](_0x5c87bb,_0x212a3c[_0x4c7cf3(0x19e)]),_0x5f3cc9=JSON[_0x4c7cf3(0x173)](_0x468ca9);this[_0x4c7cf3(0x167)](_0x4aae66,_0x5f3cc9),_0x384efc+=0x1;}catch(_0x276dd2){logger[_0x4c7cf3(0x154)](_0x4c7cf3(0x1cb)+_0x29caa5+':\x20'+(_0x276dd2&&_0x276dd2['message']?_0x276dd2[_0x4c7cf3(0x193)]:_0x276dd2));}try{fs['unlinkSync'](_0x5c87bb);}catch(_0x368afa){logger[_0x4c7cf3(0x154)](_0x4c7cf3(0x1db)+_0x29caa5+':\x20'+(_0x368afa&&_0x368afa[_0x4c7cf3(0x193)]?_0x368afa[_0x4c7cf3(0x193)]:_0x368afa));}}return _0x384efc;}}function a85_0x3caf(_0x44536a,_0x34c6e3){const _0x644733=a85_0x6447();return a85_0x3caf=function(_0x3cafda,_0x3e58dc){_0x3cafda=_0x3cafda-0x154;let _0xd84a78=_0x644733[_0x3cafda];return _0xd84a78;},a85_0x3caf(_0x44536a,_0x34c6e3);}const a85_0x150135={};function a85_0x6447(){const _0x3bf501=['endsWith','null','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','Aamhf','buildLevelTags','aWmlN','now','mergeIntoTags','45XwFiwS','pJzFT','readdirSync','getTrackedInstance','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','currentTest','testhubConfig','357493FxRWdV','gJXMp','EigXh','./browserstackCLI','message','keys','setTestDetails','stringify','BROWSERSTACK_TESTHUB_UUID','578905wrtqtr','getTestLevelTags','JMYzm','1776fOaQde','./framework/constants/testFrameworkConstants','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','rcPOh','includes','GcNQG','./framework/automationFramework','entries','trim','multi_dropdown','getTestUUID','modules','__workerDetails','TzBPP','LJVhU','./modules/playwrightDriverModule',',\x20key=','aftYE','getBuildLevelTags','UVasv','toObject','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','4fVjjoR','Wabtm','NVMio','tmpdir','buildHashedId','./TestInfo','./modules/testhubModule','gbGGa','yTgmt','tQTZW','../../helpers/classLogger','setCustomTags','erDSK','testLevelTags','aggregateBuildLevelTagsFromTmp','KEY_CUSTOM_TAGS','getInstance','24aAAYSx','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','bstack_build_tags_','bFbgm','name','writeFile','POST','testInfo','NYChU','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','getBuildTagsFilePath',',\x20finalTags=','readFileSync','OFyna','2919334IUzcWS','GKEHy','18820cOIWJb','values','aoYtk','MzoXa','854410QimMAS','pfWaT','getBuildTagsRunId','toLowerCase','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','debug','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','env','join','./cliUtils','StzVA','unlinkSync','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','2887788hrTtDc','mergeValues','statSync','../../helpers/helper','utf8','lDSHq','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','CustomTagManager','KEY_TEST_ID','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','ms)\x20','mergeBuildLevelTags','.json','getTestDetails','bCpcf','jest','isArray','BAral','889TgTAKZ','KxFYs','CjmJz','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','isRunning','parse','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','MODULE_NAME','nOfFI','getTestFrameworkDetail','exports','startsWith','getState','addMultipleEntries','getTestIdentifierFromTestInfo','promises','field_type'];a85_0x6447=function(){return _0x3bf501;};return a85_0x6447();}a85_0x150135[a85_0x4c0812(0x1d9)]=getBuildTagsRunId,a85_0x150135[a85_0x4c0812(0x1cd)]=getBuildTagsFilePath,a85_0x150135['BUILD_TAG_FILE_PREFIX']=BUILD_TAG_FILE_PREFIX,CustomTagManager['_testInternals']=a85_0x150135,module[a85_0x4c0812(0x178)]=CustomTagManager;
|
|
1
|
+
'use strict';const a85_0x17961c=a85_0x1847;function a85_0x4205(){const _0x59ff60=['psNWI','28312760TovzQt','jBPWS',':jest-','lfNIT','1230435KCgqlK','GGwyk','getInstance','exports','nCMdl','testInfo','filter','retry','clearTags','./framework/constants/testFrameworkConstants','readFileSync','statSync','484540oBxYuB','mergeIntoTags','string','./framework/automationFramework','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','6559512OTfNrS','length','setCustomTags','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','getState','values','getTestLevelTags','getBuildTagsRunId','path','getTestFrameworkDetail','KEY_TEST_ID','RcKix','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','NcOUC','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','bstack_build_tags_','yjHPc','./cliUtils','pid','trim','nMBjE','readdirSync','lQjzL',',\x20key=','getBuildLevelTags','ekxWs','join','mergeBuildLevelTags','from','entries','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','getTrackedInstance','getTestDetails','keys','fKKGx','toLowerCase','fffDO','resolveInstance','setTestDetails','utf8','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','multi_dropdown','debug','967045EDzzlr','includes','field_type','testhubConfig','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','message','__workerDetails','iPgsa','ySNfR','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','./TestInfo','878288VtYDuM','\x20->\x20values=','addMultipleEntries','testLevelTags','2668512MTeKcU','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','now','isArray','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','.json','UiMDD','parseCommaSeparatedValues','./modules/testhubModule','aggregateBuildLevelTagsFromTmp','KAgIV','KEY_CUSTOM_TAGS','NPNrW','getTestIdentifierFromTestInfo','mergeValues','getBuildTagsFilePath','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','jest','buildLevelTags','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','getTestUUID','wAYwp','promises','_testInternals','tmpdir','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','YrkbI','CustomTagManager','PqpiC','srwDx','vwsZJ','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','BROWSERSTACK_TESTHUB_UUID','BUILD_TAG_FILE_PREFIX','endsWith','ZLBbK','get','unlinkSync','TKCmS','UWZQO','stringify','../../helpers/classLogger','GNnGr','EqNlo'];a85_0x4205=function(){return _0x59ff60;};return a85_0x4205();}(function(_0x5e1a6e,_0x288077){const _0x1c19e2=a85_0x1847,_0x568653=_0x5e1a6e();while(!![]){try{const _0x85aac7=-parseInt(_0x1c19e2(0x179))/0x1+-parseInt(_0x1c19e2(0x185))/0x2+-parseInt(_0x1c19e2(0x148))/0x3+parseInt(_0x1c19e2(0x144))/0x4+-parseInt(_0x1c19e2(0x139))/0x5+-parseInt(_0x1c19e2(0x18a))/0x6+parseInt(_0x1c19e2(0x175))/0x7;if(_0x85aac7===_0x288077)break;else _0x568653['push'](_0x568653['shift']());}catch(_0x3e9335){_0x568653['push'](_0x568653['shift']());}}}(a85_0x4205,0x963d6));const fs=require('fs'),os=require('os'),path=require(a85_0x17961c(0x192)),helper=require('../../helpers/helper'),AutomationFramework=require(a85_0x17961c(0x188)),TestFrameworkConstants=require(a85_0x17961c(0x182)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a85_0x17961c(0x143)),TestHubModule=require(a85_0x17961c(0x150)),{createClassLogger}=require(a85_0x17961c(0x171)),logger=createClassLogger(a85_0x17961c(0x163)),BUILD_TAG_FILE_PREFIX=a85_0x17961c(0x199);function getBuildTagsRunId(){const _0x2997a3=a85_0x17961c,_0x49bce9={};_0x49bce9['TKCmS']=function(_0x5e3009,_0x1dea1c){return _0x5e3009===_0x1dea1c;},_0x49bce9[_0x2997a3(0x140)]='null';const _0x34542b=_0x49bce9,_0x128367=process['env'][_0x2997a3(0x168)];if(!_0x128367||_0x34542b[_0x2997a3(0x16e)](_0x128367,_0x34542b[_0x2997a3(0x140)]))return null;return _0x128367;}function a85_0x1847(_0x303059,_0x1c2609){const _0x4205cf=a85_0x4205();return a85_0x1847=function(_0x184788,_0x2ca3f8){_0x184788=_0x184788-0x11e;let _0xb66417=_0x4205cf[_0x184788];return _0xb66417;},a85_0x1847(_0x303059,_0x1c2609);}function getBuildTagsFilePath(_0x12d79f){const _0x30f7a1=a85_0x17961c;return path['join'](os['tmpdir'](),''+BUILD_TAG_FILE_PREFIX+_0x12d79f+'_'+process[_0x30f7a1(0x11f)]+_0x30f7a1(0x14d));}class CustomTagManager{static [a85_0x17961c(0x15a)]={};static ['testLevelTags']={};static['mergeValues'](_0x129a8a,_0x54c06b){const _0x25f950=a85_0x17961c;return Array[_0x25f950(0x129)](new Set([..._0x129a8a||[],..._0x54c06b||[]]));}static[a85_0x17961c(0x186)](_0x1426ff,_0x2ad625,_0x61f9b){const _0x5cbf64=a85_0x17961c,_0x390035={};_0x390035[_0x5cbf64(0x16b)]=_0x5cbf64(0x137);const _0x32ac3f=_0x390035;if(!_0x1426ff[_0x2ad625]){const _0x39292b={};_0x39292b['field_type']=_0x32ac3f[_0x5cbf64(0x16b)],_0x39292b[_0x5cbf64(0x18f)]=[..._0x61f9b||[]],_0x1426ff[_0x2ad625]=_0x39292b;}else!_0x1426ff[_0x2ad625][_0x5cbf64(0x13b)]&&(_0x1426ff[_0x2ad625][_0x5cbf64(0x13b)]=_0x32ac3f[_0x5cbf64(0x16b)]),!Array['isArray'](_0x1426ff[_0x2ad625][_0x5cbf64(0x18f)])&&(_0x1426ff[_0x2ad625][_0x5cbf64(0x18f)]=[]),_0x1426ff[_0x2ad625][_0x5cbf64(0x18f)]=CustomTagManager['mergeValues'](_0x1426ff[_0x2ad625][_0x5cbf64(0x18f)],_0x61f9b);return _0x1426ff;}static async[a85_0x17961c(0x18c)](_0xc33f4b,_0x144206,_0x278801=![]){const _0x375f89=a85_0x17961c,_0x4c8d8f={'fffDO':function(_0x555786,_0x3ae4c9){return _0x555786!==_0x3ae4c9;},'PqpiC':_0x375f89(0x187),'ziuXm':_0x375f89(0x15b),'lfNIT':_0x375f89(0x198),'UWZQO':function(_0x34f827,_0x31451e){return _0x34f827===_0x31451e;},'ekxWs':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','wAYwp':_0x375f89(0x135),'NcOUC':function(_0x4441e0,_0x16a710){return _0x4441e0(_0x16a710);},'UiMDD':'./browserstackCLI','lQjzL':function(_0x444049){return _0x444049();},'vwsZJ':_0x375f89(0x137),'YrkbI':function(_0x491666,_0x469400){return _0x491666>_0x469400;},'EqNlo':_0x375f89(0x142),'nCMdl':_0x375f89(0x177),'usfHe':function(_0x30684f,_0x4e4eb9){return _0x30684f(_0x4e4eb9);},'ySNfR':_0x375f89(0x11e),'dyIht':function(_0x5a1e15,_0x2911b9){return _0x5a1e15(_0x2911b9);},'PLLWr':_0x375f89(0x159),'MDnmQ':_0x375f89(0x167),'Mpeyt':function(_0x4e17a8,_0x9921c5){return _0x4e17a8(_0x9921c5);},'srwDx':_0x375f89(0x149),'RcKix':'./state/testFrameworkState','nMBjE':function(_0x2c4e13,_0x4fb1cb){return _0x2c4e13(_0x4fb1cb);},'yjHPc':'./state/hookState','tVKKE':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x4c8d8f[_0x375f89(0x131)](typeof _0xc33f4b,_0x4c8d8f[_0x375f89(0x164)])){logger[_0x375f89(0x138)](_0x4c8d8f['ziuXm']);return;}if(_0x4c8d8f[_0x375f89(0x131)](typeof _0x144206,_0x4c8d8f[_0x375f89(0x164)])){logger['debug'](_0x4c8d8f[_0x375f89(0x178)]);return;}if(_0x4c8d8f[_0x375f89(0x16f)](_0xc33f4b[_0x375f89(0x120)](),'')){logger[_0x375f89(0x138)](_0x4c8d8f[_0x375f89(0x126)]);return;}if(_0x4c8d8f[_0x375f89(0x16f)](_0x144206[_0x375f89(0x120)](),'')){logger[_0x375f89(0x138)](_0x4c8d8f[_0x375f89(0x15d)]);return;}const _0x310039=helper[_0x375f89(0x14f)](_0x144206);if(_0x278801){const _0x207143=_0x4c8d8f[_0x375f89(0x197)](require,_0x4c8d8f[_0x375f89(0x14e)]),_0x28a50b=_0x207143[_0x375f89(0x17b)](),_0x571758=_0x28a50b&&_0x28a50b['modules'][TestHubModule['MODULE_NAME']];if(_0x571758){const _0x3cfb92=_0x571758?.[_0x375f89(0x13c)]?.['toObject']()?.['buildHashedId'];TestInfo[_0x375f89(0x15c)](_0x3cfb92);const _0x466b99=TestInfo[_0x375f89(0x12d)](_0x3cfb92),_0x458d9a=_0x466b99[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x375f89(0x186)](_0x458d9a,_0xc33f4b,_0x310039),_0x466b99[TestFrameworkConstants[_0x375f89(0x153)]]=_0x458d9a,TestInfo[_0x375f89(0x133)](_0x3cfb92,_0x466b99);!this['buildLevelTags'][_0x3cfb92]&&(this[_0x375f89(0x15a)][_0x3cfb92]={});this['buildLevelTags'][_0x3cfb92][_0xc33f4b]=CustomTagManager['mergeValues'](this[_0x375f89(0x15a)][_0x3cfb92][_0xc33f4b],_0x310039);try{const _0x2b8b3c=_0x4c8d8f[_0x375f89(0x123)](getBuildTagsRunId);if(_0x2b8b3c){const _0x10f71a={};for(const [_0x4e54ed,_0x1eddf1]of Object[_0x375f89(0x12a)](this['buildLevelTags'][_0x3cfb92]||{})){_0x10f71a[_0x4e54ed]={'field_type':_0x4c8d8f[_0x375f89(0x166)],'values':Array[_0x375f89(0x14b)](_0x1eddf1)?[..._0x1eddf1]:[]};}_0x4c8d8f[_0x375f89(0x162)](Object[_0x375f89(0x12e)](_0x10f71a)[_0x375f89(0x18b)],0x0)&&await fs[_0x375f89(0x15e)]['writeFile'](_0x4c8d8f[_0x375f89(0x197)](getBuildTagsFilePath,_0x2b8b3c),JSON[_0x375f89(0x170)](_0x10f71a));}else logger[_0x375f89(0x138)](_0x4c8d8f[_0x375f89(0x173)]);}catch(_0x22befe){logger[_0x375f89(0x138)]('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0x22befe&&_0x22befe[_0x375f89(0x13e)]?_0x22befe[_0x375f89(0x13e)]:_0x22befe));}}}else{let _0x4be304;const _0x5144c7=global['__jestCurrentTestIdentifier'];let _0x508532=![];if(_0x5144c7&&_0x5144c7[_0x375f89(0x13a)](_0x4c8d8f[_0x375f89(0x17d)]))_0x508532=!![],_0x4be304=_0x5144c7;else try{const _0x2b227c=_0x4c8d8f['usfHe'](require,_0x4c8d8f[_0x375f89(0x141)]),_0x43d31c=_0x4c8d8f['dyIht'](require,_0x4c8d8f[_0x375f89(0x14e)]);if(_0x43d31c[_0x375f89(0x17b)]()['isRunning']()){const _0x367e5c=_0x2b227c[_0x375f89(0x193)]();if(_0x4c8d8f[_0x375f89(0x16f)](_0x367e5c?.['name']?.[_0x375f89(0x130)](),_0x4c8d8f['PLLWr'])){const _0x585860=AutomationFramework[_0x375f89(0x12c)]();_0x4be304=AutomationFramework[_0x375f89(0x18e)](_0x585860,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x4be304&&_0x4be304[_0x375f89(0x13a)](_0x4c8d8f[_0x375f89(0x17d)])&&(_0x508532=!![]);}}}catch(_0x74569e){logger['debug'](_0x375f89(0x136)+_0x74569e);}if(_0x508532){if(!_0x4be304)throw new Error(_0x4c8d8f['MDnmQ']);const _0x5243c7=_0x4c8d8f['Mpeyt'](require,_0x4c8d8f[_0x375f89(0x14e)]),_0xb044c0=_0x5243c7[_0x375f89(0x17b)]()['getTestFramework']();if(!_0xb044c0)throw new Error(_0x4c8d8f[_0x375f89(0x165)]);const _0x20ed53=_0x4c8d8f['NcOUC'](require,_0x4c8d8f[_0x375f89(0x195)]),_0xb3c028=_0x4c8d8f[_0x375f89(0x121)](require,_0x4c8d8f[_0x375f89(0x19a)]),_0x15e9ac=_0xb044c0[_0x375f89(0x132)](_0x20ed53['TEST'],_0xb3c028['POST']);if(!_0x15e9ac)throw new Error(_0x4c8d8f['tVKKE']);const _0x401c03=_0x15e9ac['getAllData']()[_0x375f89(0x16c)](_0x4be304)||{},_0x128ce5=_0x401c03[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0x375f89(0x138)](_0x375f89(0x161)+_0x4be304+_0x375f89(0x124)+_0xc33f4b+',\x20values='+JSON[_0x375f89(0x170)](_0x310039)+',\x20existingTags='+JSON['stringify'](_0x128ce5)),CustomTagManager[_0x375f89(0x186)](_0x128ce5,_0xc33f4b,_0x310039),logger[_0x375f89(0x138)](_0x375f89(0x158)+_0xc33f4b+_0x375f89(0x145)+JSON['stringify'](_0x128ce5[_0xc33f4b]['values']));const _0x2ad5dc={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x128ce5},_0x493762={};_0x493762[_0x4be304]=_0x2ad5dc,_0x15e9ac[_0x375f89(0x146)](_0x493762),logger[_0x375f89(0x138)](_0x375f89(0x196)+_0x4be304+',\x20finalTags='+JSON[_0x375f89(0x170)](_0x128ce5)),!this['testLevelTags'][_0x4be304]&&(this[_0x375f89(0x147)][_0x4be304]={}),this[_0x375f89(0x147)][_0x4be304][_0xc33f4b]=CustomTagManager['mergeValues'](this[_0x375f89(0x147)][_0x4be304][_0xc33f4b],_0x310039);}else{const _0x2dbe67=global[_0x375f89(0x13f)]?.['currentTest']?.[_0x375f89(0x17e)];if(!_0x2dbe67){const _0xa4cd48=AutomationFramework[_0x375f89(0x12c)]();_0x4be304=AutomationFramework[_0x375f89(0x18e)](_0xa4cd48,PlaywrightDriverModule[_0x375f89(0x194)],'');}else _0x4be304=TestInfo[_0x375f89(0x155)](_0x2dbe67,_0x2dbe67[_0x375f89(0x180)]);const _0x559048=TestInfo[_0x375f89(0x12d)](_0x4be304),_0x1666c9=_0x559048[TestFrameworkConstants[_0x375f89(0x153)]]||{};CustomTagManager[_0x375f89(0x186)](_0x1666c9,_0xc33f4b,_0x310039),_0x559048[TestFrameworkConstants[_0x375f89(0x153)]]=_0x1666c9,TestInfo['setTestDetails'](_0x4be304,_0x559048),!this[_0x375f89(0x147)][_0x4be304]&&(this['testLevelTags'][_0x4be304]={}),this['testLevelTags'][_0x4be304][_0xc33f4b]=CustomTagManager[_0x375f89(0x156)](this[_0x375f89(0x147)][_0x4be304][_0xc33f4b],_0x310039);}}}static[a85_0x17961c(0x125)](){const _0x2a1c98={...this['buildLevelTags']};return _0x2a1c98;}static[a85_0x17961c(0x190)](){const _0x4a8a14={...this['testLevelTags']};return _0x4a8a14;}static[a85_0x17961c(0x181)](){const _0x36bca0=a85_0x17961c;this[_0x36bca0(0x15a)]={},this[_0x36bca0(0x147)]={};}static[a85_0x17961c(0x128)](_0x51049e,_0x56b0d4){const _0x2725d2=a85_0x17961c,_0x3bae66={};_0x3bae66[_0x2725d2(0x17a)]=function(_0x56dd80,_0x1f3b76){return _0x56dd80||_0x1f3b76;};const _0x59b62b=_0x3bae66;if(!_0x51049e)return;!this[_0x2725d2(0x15a)][_0x51049e]&&(this['buildLevelTags'][_0x51049e]={});for(const [_0x96e66b,_0x50027e]of Object[_0x2725d2(0x12a)](_0x59b62b[_0x2725d2(0x17a)](_0x56b0d4,{}))){if(!_0x50027e||!Array[_0x2725d2(0x14b)](_0x50027e[_0x2725d2(0x18f)]))continue;this['buildLevelTags'][_0x51049e][_0x96e66b]=CustomTagManager[_0x2725d2(0x156)](this[_0x2725d2(0x15a)][_0x51049e][_0x96e66b],_0x50027e[_0x2725d2(0x18f)]);}}static[a85_0x17961c(0x151)](_0x376eff,_0x42ff32){const _0x4c024d=a85_0x17961c,_0x5c46d1={};_0x5c46d1[_0x4c024d(0x172)]=_0x4c024d(0x18d),_0x5c46d1[_0x4c024d(0x152)]=function(_0xe1bceb,_0x431bf7){return _0xe1bceb*_0x431bf7;},_0x5c46d1[_0x4c024d(0x176)]=function(_0x3e8a19,_0x53762a){return _0x3e8a19*_0x53762a;},_0x5c46d1[_0x4c024d(0x12f)]=function(_0x291d35,_0x2b7ec6){return _0x291d35>_0x2b7ec6;},_0x5c46d1['NPNrW']=function(_0x3cf234,_0x2b64b9){return _0x3cf234-_0x2b64b9;},_0x5c46d1[_0x4c024d(0x174)]=_0x4c024d(0x134);const _0x41dbea=_0x5c46d1;if(!_0x376eff)return logger[_0x4c024d(0x138)](_0x41dbea[_0x4c024d(0x172)]),0x0;let _0x526a4b;try{_0x526a4b=os[_0x4c024d(0x160)]();}catch(_0x329bcd){return logger[_0x4c024d(0x138)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20'+_0x329bcd),0x0;}let _0x61d9c9;try{_0x61d9c9=fs[_0x4c024d(0x122)](_0x526a4b);}catch(_0xfbb6e3){return logger['debug'](_0x4c024d(0x189)+_0xfbb6e3),0x0;}const _0x3a5257=''+BUILD_TAG_FILE_PREFIX+_0x376eff+'_',_0x346c0c=_0x61d9c9[_0x4c024d(0x17f)](_0x2e81f9=>_0x2e81f9['startsWith'](_0x3a5257)&&_0x2e81f9[_0x4c024d(0x16a)]('.json')),_0xc9cfa4=_0x41dbea[_0x4c024d(0x152)](_0x41dbea[_0x4c024d(0x176)](_0x41dbea[_0x4c024d(0x176)](0x2,0x3c),0x3c),0x3e8);let _0x57f36e=0x0;for(const _0x53153f of _0x346c0c){const _0x1ca94e=path[_0x4c024d(0x127)](_0x526a4b,_0x53153f);try{const _0x367797=fs[_0x4c024d(0x184)](_0x1ca94e);if(_0x41dbea['fKKGx'](_0x41dbea[_0x4c024d(0x154)](Date[_0x4c024d(0x14a)](),_0x367797['mtimeMs']),_0xc9cfa4)){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>'+_0xc9cfa4+'ms)\x20'+_0x53153f);try{fs[_0x4c024d(0x16d)](_0x1ca94e);}catch(_0xb9f8b3){logger['debug'](_0x4c024d(0x12b)+_0x53153f+':\x20'+(_0xb9f8b3&&_0xb9f8b3['message']?_0xb9f8b3['message']:_0xb9f8b3));}continue;}const _0x10c4cb=fs[_0x4c024d(0x183)](_0x1ca94e,_0x41dbea[_0x4c024d(0x174)]),_0x18c4ce=JSON['parse'](_0x10c4cb);this[_0x4c024d(0x128)](_0x42ff32,_0x18c4ce),_0x57f36e+=0x1;}catch(_0x5a9c66){logger[_0x4c024d(0x138)](_0x4c024d(0x14c)+_0x53153f+':\x20'+(_0x5a9c66&&_0x5a9c66[_0x4c024d(0x13e)]?_0x5a9c66[_0x4c024d(0x13e)]:_0x5a9c66));}try{fs[_0x4c024d(0x16d)](_0x1ca94e);}catch(_0x5a62fa){logger['debug'](_0x4c024d(0x13d)+_0x53153f+':\x20'+(_0x5a62fa&&_0x5a62fa[_0x4c024d(0x13e)]?_0x5a62fa['message']:_0x5a62fa));}}return _0x57f36e;}}const a85_0x29c43c={};a85_0x29c43c[a85_0x17961c(0x191)]=getBuildTagsRunId,a85_0x29c43c[a85_0x17961c(0x157)]=getBuildTagsFilePath,a85_0x29c43c[a85_0x17961c(0x169)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a85_0x17961c(0x15f)]=a85_0x29c43c,module[a85_0x17961c(0x17c)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x40c271=a86_0x2d2e;(function(_0x1dda1f,_0x246273){const _0x57c6c3=a86_0x2d2e,_0x301133=_0x1dda1f();while(!![]){try{const _0x527d51=-parseInt(_0x57c6c3(0x168))/0x1*(parseInt(_0x57c6c3(0x16c))/0x2)+parseInt(_0x57c6c3(0x15e))/0x3*(-parseInt(_0x57c6c3(0x161))/0x4)+parseInt(_0x57c6c3(0x165))/0x5*(-parseInt(_0x57c6c3(0x163))/0x6)+-parseInt(_0x57c6c3(0x16e))/0x7*(-parseInt(_0x57c6c3(0x169))/0x8)+parseInt(_0x57c6c3(0x167))/0x9+-parseInt(_0x57c6c3(0x16b))/0xa*(-parseInt(_0x57c6c3(0x171))/0xb)+-parseInt(_0x57c6c3(0x172))/0xc*(-parseInt(_0x57c6c3(0x16d))/0xd);if(_0x527d51===_0x246273)break;else _0x301133['push'](_0x301133['shift']());}catch(_0x328ca1){_0x301133['push'](_0x301133['shift']());}}}(a86_0x542d,0x9bb2d));const {createClassLogger}=require(a86_0x40c271(0x15f));class EventDispatcher{static #instance=null;constructor(){const _0x50bdc5=a86_0x40c271;this[_0x50bdc5(0x166)]={};}static[a86_0x40c271(0x170)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a86_0x40c271(0x160)](_0x360a8f,_0x5d23a6){const _0xc4a0ff=a86_0x40c271;!this[_0xc4a0ff(0x166)][_0x360a8f]&&(this['observers'][_0x360a8f]=[]),this[_0xc4a0ff(0x166)][_0x360a8f][_0xc4a0ff(0x162)](_0x5d23a6);}async[a86_0x40c271(0x164)](_0xea4448,_0x246e07){const _0x26deb0=a86_0x40c271,_0x4a0540={'EeFip':function(_0x56adc5,_0x30d419){return _0x56adc5(_0x30d419);}};if(this[_0x26deb0(0x166)][_0xea4448]){for(const _0x5db511 of this['observers'][_0xea4448]){await _0x4a0540['EeFip'](_0x5db511,_0x246e07);}return;}}}function a86_0x542d(){const _0x22d8ba=['push','1536xVAHaV','notifyObserver','19735WksfKT','observers','1517589TExRrq','42878phmQsR','8886736JIMyZL','freeze','5678630McBKcJ','26CikrHB','4857476iwtnPE','7qTjPQE','exports','getInstance','11xyGWKE','36MaaUho','15iNzgyU','../../helpers/classLogger.js','registerObserver','610156eeNVeu'];a86_0x542d=function(){return _0x22d8ba;};return a86_0x542d();}const eventDispatcher=EventDispatcher[a86_0x40c271(0x170)]();function a86_0x2d2e(_0x387517,_0x4c59ff){const _0x542db1=a86_0x542d();return a86_0x2d2e=function(_0x2d2edf,_0x1f5c97){_0x2d2edf=_0x2d2edf-0x15e;let _0x115010=_0x542db1[_0x2d2edf];return _0x115010;},a86_0x2d2e(_0x387517,_0x4c59ff);}Object[a86_0x40c271(0x16a)](eventDispatcher),module[a86_0x40c271(0x16f)]=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x2e4fbc=a87_0x4663;function a87_0x5d39(){const _0x59feea=['util','registerObserver','trackEvent','getState','../cliUtils.js','runHooks','874320CpxjFy','createContext','notifyObserver','getHookRegistryKey','setState','getAllData','15210080qhPTNa','automationFrameworkVersion','7poUHvF','exports','getTrackedInstance','6sjaMmZ','set','\x20hookState=','../eventDispatcher.js','4056885GxKCju','KEY_AUTOMATION_SESSIONS','getId','81568apdqlS','get','automationFrameworkName','non_browserstack_automation_sessions','7rWvGzv','418968oLjRrU','AutomationFramework','10hXsRBd','10748424QCwioW','../../../helpers/classLogger.js','176GqQxyP','trackEvent:\x20automationFrameworkState=','instances','86652MsoSXA','../instances/trackedInstance.js'];a87_0x5d39=function(){return _0x59feea;};return a87_0x5d39();}(function(_0x1b0311,_0x56ef5e){const _0x4448ec=a87_0x4663,_0x2d518b=_0x1b0311();while(!![]){try{const _0x5a5180=parseInt(_0x4448ec(0xd7))/0x1*(-parseInt(_0x4448ec(0xe1))/0x2)+-parseInt(_0x4448ec(0xda))/0x3*(-parseInt(_0x4448ec(0xee))/0x4)+parseInt(_0x4448ec(0xe8))/0x5*(-parseInt(_0x4448ec(0xe6))/0x6)+-parseInt(_0x4448ec(0xe5))/0x7*(-parseInt(_0x4448ec(0xe9))/0x8)+-parseInt(_0x4448ec(0xde))/0x9+parseInt(_0x4448ec(0xd5))/0xa+parseInt(_0x4448ec(0xeb))/0xb*(-parseInt(_0x4448ec(0xf6))/0xc);if(_0x5a5180===_0x56ef5e)break;else _0x2d518b['push'](_0x2d518b['shift']());}catch(_0x5aa7ba){_0x2d518b['push'](_0x2d518b['shift']());}}}(a87_0x5d39,0xd37aa));const {createClassLogger}=require(a87_0x2e4fbc(0xea)),util=require(a87_0x2e4fbc(0xf0)),eventDispatcher=require(a87_0x2e4fbc(0xdd)),CLIUtils=require(a87_0x2e4fbc(0xf4)),TrackedInstance=require(a87_0x2e4fbc(0xef)),logger=createClassLogger(a87_0x2e4fbc(0xe7));class AutomationFramework{static [a87_0x2e4fbc(0xed)]=new Map();static [a87_0x2e4fbc(0xdf)]='automation_sessions';static ['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS']=a87_0x2e4fbc(0xe4);constructor(_0x45831d,_0x22180d){const _0x4789d8=a87_0x2e4fbc;this['automationFrameworkName']=_0x45831d,this[_0x4789d8(0xd6)]=_0x22180d;}['getAutomationFrameworkName'](){const _0x59d92f=a87_0x2e4fbc;return this[_0x59d92f(0xe3)];}['getAutomationFrameworkVersion'](){const _0x1104fe=a87_0x2e4fbc;return this[_0x1104fe(0xd6)];}async[a87_0x2e4fbc(0xf2)](_0x49929b,_0x3fb54c,_0x880e0d={}){const _0x3d2771=a87_0x2e4fbc;logger['debug'](_0x3d2771(0xec)+_0x49929b+_0x3d2771(0xdc)+_0x3fb54c);}async[a87_0x2e4fbc(0xf5)](_0x1ce377,_0x3757c3,_0xa4d414,_0x227658={}){const _0x2abf7c=a87_0x2e4fbc,_0x59f653=CLIUtils[_0x2abf7c(0xf9)](_0x3757c3,_0xa4d414);_0x1ce377&&_0x1ce377[_0x2abf7c(0xfa)](_0x3757c3),await eventDispatcher[_0x2abf7c(0xf8)](_0x59f653,_0x227658);}static['registerObserver'](_0x494e90,_0x40f569,_0x4bbe75){const _0x1c6c33=a87_0x2e4fbc;eventDispatcher[_0x1c6c33(0xf1)](CLIUtils[_0x1c6c33(0xf9)](_0x494e90,_0x40f569),_0x4bbe75);}static['setTrackedInstance'](_0x1767dd,_0x53ed1f){const _0x1aa800=a87_0x2e4fbc;AutomationFramework['instances'][_0x1aa800(0xdb)](_0x1767dd[_0x1aa800(0xe0)](),_0x53ed1f);}static[a87_0x2e4fbc(0xd9)](){const _0x13439c=a87_0x2e4fbc,_0x44a995=TrackedInstance[_0x13439c(0xf7)](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x13439c(0xed)][_0x13439c(0xe2)](_0x44a995[_0x13439c(0xe0)]());}static['setState'](_0x283ff6,_0x25e805,_0x1b7f60){const _0x53ea0c=a87_0x2e4fbc;_0x283ff6[_0x53ea0c(0xfb)]()['set'](_0x25e805,_0x1b7f60);}static[a87_0x2e4fbc(0xf3)](_0x7d2e89,_0x26119e){const _0xb606a7=a87_0x2e4fbc;return _0x7d2e89[_0xb606a7(0xfb)]()['get'](_0x26119e);}}function a87_0x4663(_0x5f5cb6,_0x5a4360){const _0x5d3985=a87_0x5d39();return a87_0x4663=function(_0x46635e,_0x187b16){_0x46635e=_0x46635e-0xd5;let _0x49cf44=_0x5d3985[_0x46635e];return _0x49cf44;},a87_0x4663(_0x5f5cb6,_0x5a4360);}module[a87_0x2e4fbc(0xd8)]=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x2cc813=a88_0x4b95;(function(_0x523953,_0x28c618){const _0x545914=a88_0x4b95,_0x57a4f2=_0x523953();while(!![]){try{const _0x2e8704=parseInt(_0x545914(0x186))/0x1+-parseInt(_0x545914(0x179))/0x2*(-parseInt(_0x545914(0x17e))/0x3)+-parseInt(_0x545914(0x16a))/0x4+parseInt(_0x545914(0x184))/0x5+parseInt(_0x545914(0x18a))/0x6+-parseInt(_0x545914(0x181))/0x7*(parseInt(_0x545914(0x17a))/0x8)+parseInt(_0x545914(0x17f))/0x9*(-parseInt(_0x545914(0x188))/0xa);if(_0x2e8704===_0x28c618)break;else _0x57a4f2['push'](_0x57a4f2['shift']());}catch(_0x46f84d){_0x57a4f2['push'](_0x57a4f2['shift']());}}}(a88_0x8185,0xaeee0));function a88_0x4b95(_0x2b5ad6,_0x47c65){const _0x818518=a88_0x8185();return a88_0x4b95=function(_0x4b9519,_0x5bb3a4){_0x4b9519=_0x4b9519-0x16a;let _0x405533=_0x818518[_0x4b9519];return _0x405533;},a88_0x4b95(_0x2b5ad6,_0x47c65);}function a88_0x8185(){const _0x5395e5=['w3cexecutescript','2FRLXWb','8caTttt','ended_at','quit','framework_session_id','226545yHnAhR','15777TUXPyY','KEY_IS_BROWSERSTACK_HUB','774893NoUXCp','input_capabilities','screenshot','1440885PcGQPw','BROWSERSTACK_PLATFORM_INDEX','1016084dRNfLM','COMMAND_QUIT','2610kQXEJR','started_at','5479062PtsiUc','exports','newsession','4032836iEverj','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','COMMAND_SCREENSHOT','KEY_PLATFORM_INDEX','capabilities','COMMAND_GET','is_browserstack_hub','KEY_ENDED_AT','get','KEY_HUB_URL','KEY_FRAMEWORK_SESSION_ID','hub_url','COMMAND_W3C_EXECUTE_SCRIPT','KEY_CAPABILITIES'];a88_0x8185=function(){return _0x5395e5;};return a88_0x8185();}const a88_0x23608c={};a88_0x23608c['ENV_BROWSERSTACK_PLATFORM_INDEX']=a88_0x2cc813(0x185),a88_0x23608c[a88_0x2cc813(0x173)]=a88_0x2cc813(0x175),a88_0x23608c[a88_0x2cc813(0x174)]=a88_0x2cc813(0x17d),a88_0x23608c['KEY_INPUT_CAPABILITIES']=a88_0x2cc813(0x182),a88_0x23608c[a88_0x2cc813(0x177)]=a88_0x2cc813(0x16e),a88_0x23608c[a88_0x2cc813(0x180)]=a88_0x2cc813(0x170),a88_0x23608c['KEY_STARTED_AT']=a88_0x2cc813(0x189),a88_0x23608c[a88_0x2cc813(0x171)]=a88_0x2cc813(0x17b),a88_0x23608c[a88_0x2cc813(0x16d)]='platform_index',a88_0x23608c['COMMAND_NEW_SESSION']=a88_0x2cc813(0x18c),a88_0x23608c[a88_0x2cc813(0x16f)]=a88_0x2cc813(0x172),a88_0x23608c[a88_0x2cc813(0x16c)]=a88_0x2cc813(0x183),a88_0x23608c[a88_0x2cc813(0x176)]=a88_0x2cc813(0x178),a88_0x23608c[a88_0x2cc813(0x16b)]='w3cexecutescriptasync',a88_0x23608c[a88_0x2cc813(0x187)]=a88_0x2cc813(0x17c);const AutomationFrameworkConstants=a88_0x23608c;module[a88_0x2cc813(0x18b)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x20032b=a89_0x201a;(function(_0x3962db,_0x5532ae){const _0x3bd5aa=a89_0x201a,_0x272a4d=_0x3962db();while(!![]){try{const _0x9afeea=-parseInt(_0x3bd5aa(0xce))/0x1*(parseInt(_0x3bd5aa(0xbf))/0x2)+parseInt(_0x3bd5aa(0xf5))/0x3*(parseInt(_0x3bd5aa(0xc6))/0x4)+parseInt(_0x3bd5aa(0xd9))/0x5*(-parseInt(_0x3bd5aa(0xc1))/0x6)+-parseInt(_0x3bd5aa(0xd1))/0x7*(-parseInt(_0x3bd5aa(0xb9))/0x8)+parseInt(_0x3bd5aa(0xc8))/0x9*(parseInt(_0x3bd5aa(0xb5))/0xa)+-parseInt(_0x3bd5aa(0xd3))/0xb+parseInt(_0x3bd5aa(0xc7))/0xc;if(_0x9afeea===_0x5532ae)break;else _0x272a4d['push'](_0x272a4d['shift']());}catch(_0x337d59){_0x272a4d['push'](_0x272a4d['shift']());}}}(a89_0x48a6,0x2738b));function a89_0x201a(_0x4919dd,_0x50c74e){const _0x48a66b=a89_0x48a6();return a89_0x201a=function(_0x201aab,_0x1b424b){_0x201aab=_0x201aab-0xaf;let _0x505725=_0x48a66b[_0x201aab];return _0x505725;},a89_0x201a(_0x4919dd,_0x50c74e);}const a89_0x5ae910={};function a89_0x48a6(){const _0x3ea0d3=['KEY_TEST_RESULT_AT','KEY_HOOK_NAME','KEY_HOOK_LAST_FINISHED','KEY_TEST_RERUN_NAME','KEY_TEST_TAGS','file_size','KEY_AUTOMATE_SESSION_NAME','hook_failure_type','KEY_LOGS','test_location','test_rerun_name','test_result','TEST_SCREENSHOT','file_path','855370tmsDNj','KEY_HOOKS_FINISHED','exports','KEY_TEST_STARTED_AT','18968aVhZUo','KEY_TEST_FAILURE_REASON','KEY_HOOK_LAST_STARTED','test_screenshots','automate_session_name','KEY_EVENT_ENDED_AT','11548ndKeXW','automate_session_reason','138oWXweD','DEFAULT_HOOK_RESULT','test_attachments','KEY_PLATFORM_INDEX','KEY_HOOK_FAILURE_TYPE','1148dRpHOj','3086136Nimbbw','9hALrLr','file_level','KEY_CUSTOM_TAGS','hook_id','test_framework_name','test_tags','15AYtfUe','KEY_AUTOMATE_SESSION_STATUS','test_hook_last_finished','847hUeqGP','hook_failure','2975203jsTiJi','MAX_NESTED_STEP_DEPTH','KEY_TEST_RETRY_OF','KEY_HOOK_LOGS','test_hooks_finished','KEY_TEST_FILE_PATH','57325iubYSH','test_logs','test_failure_reason','KEY_TEST_FRAMEWORK_NAME','hook_failure_reason','DEFAULT_TEST_RESULT','KEY_HOOK_FAILURE','KEY_TEST_SCOPE','test_hooks_started','KEY_TEST_UUID','test_scopes','automate_session_status','KEY_TEST_ATTACHMENTS','test_result_at','test_hook_last_started','KIND_LOG','test_framework_version','KEY_SESSION_NAME','test_name','test_id','test_duration','event_started_at','KEY_AUTOMATE_SESSION_REASON','KEY_TEST_FAILURE_TYPE','KEY_EVENT_STARTED_AT','KEY_TEST_SCOPES','test_failure_type','KEY_HOOK_RESULT','1587CTpoeR','pending','KEY_TEST_RESULT','KEY_TEST_NAME','^(BEFORE_|AFTER_)','KEY_TEST_ENDED_AT','KEY_TEST_DURATION','KEY_FILE_SIZE','KEY_HOOK_ID','test_started_at','retry_of','logs','hook_name','TEST_LOG','KEY_HOOKS_STARTED','hook_logs'];a89_0x48a6=function(){return _0x3ea0d3;};return a89_0x48a6();}a89_0x5ae910[a89_0x20032b(0xe2)]='test_uuid',a89_0x5ae910['KEY_TEST_ID']=a89_0x20032b(0xec),a89_0x5ae910[a89_0x20032b(0xf8)]=a89_0x20032b(0xeb),a89_0x5ae910[a89_0x20032b(0xd8)]='test_file_path',a89_0x5ae910[a89_0x20032b(0x109)]=a89_0x20032b(0xcd),a89_0x5ae910[a89_0x20032b(0xf7)]=a89_0x20032b(0xb2),a89_0x5ae910[a89_0x20032b(0x105)]=a89_0x20032b(0xe6),a89_0x5ae910[a89_0x20032b(0xb8)]=a89_0x20032b(0xfe),a89_0x5ae910[a89_0x20032b(0xfa)]='test_ended_at',a89_0x5ae910['KEY_TEST_LOCATION']=a89_0x20032b(0xb0),a89_0x5ae910[a89_0x20032b(0xfb)]=a89_0x20032b(0xed),a89_0x5ae910[a89_0x20032b(0xe0)]='test_scope',a89_0x5ae910[a89_0x20032b(0xf2)]=a89_0x20032b(0xe3),a89_0x5ae910[a89_0x20032b(0xdc)]=a89_0x20032b(0xcc),a89_0x5ae910['KEY_TEST_FRAMEWORK_VERSION']=a89_0x20032b(0xe9),a89_0x5ae910['KEY_TEST_CODE']='test_code',a89_0x5ae910[a89_0x20032b(0x108)]=a89_0x20032b(0xb1),a89_0x5ae910[a89_0x20032b(0xd5)]=a89_0x20032b(0xff),a89_0x5ae910[a89_0x20032b(0xc4)]='platform_index',a89_0x5ae910['KEY_TEST_FAILURE']='test_failure',a89_0x5ae910[a89_0x20032b(0xf0)]=a89_0x20032b(0xf3),a89_0x5ae910[a89_0x20032b(0xba)]=a89_0x20032b(0xdb),a89_0x5ae910['KEY_TEST_LOGS']=a89_0x20032b(0xda),a89_0x5ae910['KEY_TEST_META']='test_meta',a89_0x5ae910[a89_0x20032b(0xea)]='test_session_name',a89_0x5ae910[a89_0x20032b(0x10b)]=a89_0x20032b(0xbd),a89_0x5ae910[a89_0x20032b(0xcf)]=a89_0x20032b(0xe4),a89_0x5ae910[a89_0x20032b(0xef)]=a89_0x20032b(0xc0),a89_0x5ae910[a89_0x20032b(0xf1)]=a89_0x20032b(0xee),a89_0x5ae910[a89_0x20032b(0xbe)]='event_ended_at',a89_0x5ae910[a89_0x20032b(0xfd)]=a89_0x20032b(0xcb),a89_0x5ae910[a89_0x20032b(0xf4)]='hook_result',a89_0x5ae910[a89_0x20032b(0xc5)]=a89_0x20032b(0x10c),a89_0x5ae910['KEY_HOOK_FAILURE_REASON']=a89_0x20032b(0xdd),a89_0x5ae910[a89_0x20032b(0xdf)]=a89_0x20032b(0xd2),a89_0x5ae910[a89_0x20032b(0xd6)]=a89_0x20032b(0x104),a89_0x5ae910[a89_0x20032b(0x106)]=a89_0x20032b(0x101),a89_0x5ae910[a89_0x20032b(0xde)]=a89_0x20032b(0xf6),a89_0x5ae910[a89_0x20032b(0xc2)]=a89_0x20032b(0xf6),a89_0x5ae910['KIND_SCREENSHOT']=a89_0x20032b(0xb3),a89_0x5ae910[a89_0x20032b(0xe8)]=a89_0x20032b(0x102),a89_0x5ae910['HOOK_REGEX']=a89_0x20032b(0xf9),a89_0x5ae910[a89_0x20032b(0x103)]=a89_0x20032b(0xe1),a89_0x5ae910[a89_0x20032b(0xb6)]=a89_0x20032b(0xd7),a89_0x5ae910[a89_0x20032b(0xbb)]=a89_0x20032b(0xe7),a89_0x5ae910[a89_0x20032b(0x107)]=a89_0x20032b(0xd0),a89_0x5ae910[a89_0x20032b(0xaf)]=a89_0x20032b(0x100),a89_0x5ae910[a89_0x20032b(0xca)]='custom_metadata',a89_0x5ae910[a89_0x20032b(0xe5)]=a89_0x20032b(0xc3),a89_0x5ae910[a89_0x20032b(0xfc)]=a89_0x20032b(0x10a),a89_0x5ae910['KEY_FILE_NAME']='file_name',a89_0x5ae910['KEY_FILE_PATH']=a89_0x20032b(0xb4),a89_0x5ae910['KEY_FILE_LEVEL']=a89_0x20032b(0xc9),a89_0x5ae910['KEY_TEST_SCREENSHOTS']=a89_0x20032b(0xbc),a89_0x5ae910['MAX_TOP_LEVEL_STEPS']=0xa,a89_0x5ae910[a89_0x20032b(0xd4)]=0x2;const TestFrameworkConstants=a89_0x5ae910;module[a89_0x20032b(0xb7)]=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a90_0x1b35e4=a90_0x4fd1;(function(_0x1ec851,_0x9c7858){const _0x51510b=a90_0x4fd1,_0x29882c=_0x1ec851();while(!![]){try{const _0x3ff6d1=-parseInt(_0x51510b(0x168))/0x1+-parseInt(_0x51510b(0x1f5))/0x2*(parseInt(_0x51510b(0x1b5))/0x3)+parseInt(_0x51510b(0x156))/0x4*(parseInt(_0x51510b(0x205))/0x5)+parseInt(_0x51510b(0x1ab))/0x6*(-parseInt(_0x51510b(0x188))/0x7)+parseInt(_0x51510b(0x1e8))/0x8+-parseInt(_0x51510b(0x179))/0x9+parseInt(_0x51510b(0x1f6))/0xa*(parseInt(_0x51510b(0x1c6))/0xb);if(_0x3ff6d1===_0x9c7858)break;else _0x29882c['push'](_0x29882c['shift']());}catch(_0x50a2a4){_0x29882c['push'](_0x29882c['shift']());}}}(a90_0x1a96,0x62bcb));const TestFramework=require(a90_0x1b35e4(0x1c7)),TestFrameworkState=require(a90_0x1b35e4(0x162)),HookState=require(a90_0x1b35e4(0x202)),{createClassLogger}=require(a90_0x1b35e4(0x1f1)),TestFrameworkInstance=require(a90_0x1b35e4(0x1de)),CLIUtils=require(a90_0x1b35e4(0x1fc)),TrackedInstance=require(a90_0x1b35e4(0x173)),TestFrameworkConstants=require(a90_0x1b35e4(0x20e)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a90_0x1b35e4(0x20f)),logger=createClassLogger(a90_0x1b35e4(0x1c0)),{v4:uuidv4}=require(a90_0x1b35e4(0x15d)),util=require(a90_0x1b35e4(0x1bc)),TestInfo=require(a90_0x1b35e4(0x1d9)),GrpcClient=require(a90_0x1b35e4(0x186));class CucumberTestFramework extends TestFramework{constructor(_0x36f155,_0x4d51a1,_0x4bfb88){super(_0x36f155,_0x4d51a1,_0x4bfb88);}async['trackEvent'](_0x335597,_0x5dd0b0,_0x45695e={}){const _0x17688f=a90_0x1b35e4,_0x5a3ce6={};_0x5a3ce6[_0x17688f(0x176)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x5a3ce6[_0x17688f(0x171)]=function(_0x1b2714,_0xf378a8){return _0x1b2714===_0xf378a8;},_0x5a3ce6[_0x17688f(0x182)]='trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s';const _0x1e3558=_0x5a3ce6;await super['trackEvent'](_0x335597,_0x5dd0b0,_0x45695e);const _0x34f713=this[_0x17688f(0x190)](_0x335597,_0x5dd0b0,_0x45695e);if(!_0x34f713){logger[_0x17688f(0x1ba)](_0x1e3558['theQY']);return;}try{let _0xafab3c,_0x54fdc8;switch(_0x335597){case TestFrameworkState[_0x17688f(0x197)]:_0xafab3c=_0x45695e[_0x17688f(0x1df)],_0x54fdc8=TestInfo[_0x17688f(0x1f0)](_0xafab3c['id']);if(_0x1e3558['RFotA'](_0x5dd0b0,HookState[_0x17688f(0x1c9)])){logger[_0x17688f(0x1ba)](_0x17688f(0x15e)+_0xafab3c['id']);const _0x251f85={};_0x251f85[_0x17688f(0x1d4)]=_0x54fdc8,_0x251f85[_0x17688f(0x1fe)]=_0xafab3c,_0x34f713[_0x17688f(0x164)](this['parseCucumberTest'](_0x251f85)),logger[_0x17688f(0x1ba)](_0x17688f(0x1db)+_0xafab3c['id']),await this[_0x17688f(0x1b4)](_0x34f713,_0xafab3c['id']);}else{if(_0x1e3558['RFotA'](_0x5dd0b0,HookState['POST'])){const _0x2e5c66={};_0x2e5c66[_0x17688f(0x1d4)]=_0x54fdc8,_0x2e5c66[_0x17688f(0x1fe)]=_0xafab3c,_0x34f713['addMultipleEntries'](this[_0x17688f(0x1aa)](_0x2e5c66)),await this[_0x17688f(0x1b4)](_0x34f713,_0xafab3c['id']);}}break;case TestFrameworkState[_0x17688f(0x1c1)]:_0x1e3558['RFotA'](_0x5dd0b0,HookState[_0x17688f(0x19f)])&&await this[_0x17688f(0x19a)](_0x34f713,_0x335597,_0x45695e);break;default:if(CLIUtils[_0x17688f(0x1a6)](_0x335597[_0x17688f(0x1cf)]()[_0x17688f(0x169)]('.')[0x1])){const _0x22a193=await this[_0x17688f(0x1f8)](_0x34f713,_0x335597,_0x5dd0b0,_0x45695e);_0x34f713['addMultipleEntries'](_0x22a193);}else logger[_0x17688f(0x1ba)](_0x17688f(0x1c8)+_0x335597+_0x17688f(0x183)+_0x5dd0b0);break;}}catch(_0x4e1d01){logger['error'](util[_0x17688f(0x167)](_0x1e3558[_0x17688f(0x182)],_0x335597,_0x5dd0b0,_0x45695e[_0x17688f(0x191)],_0x4e1d01));}_0x45695e[_0x17688f(0x1ad)]=_0x34f713,await this[_0x17688f(0x165)](_0x34f713,_0x335597,_0x5dd0b0,_0x45695e);}[a90_0x1b35e4(0x190)](_0x3b6121,_0x493b3c,_0x2f13e8={}){const _0x1002cc=a90_0x1b35e4,_0x5f4d2c={};_0x5f4d2c['GAKsi']=function(_0x3bc9ea,_0x538969){return _0x3bc9ea===_0x538969;};const _0xc99093=_0x5f4d2c;let _0x15dd6e=null;return(_0xc99093['GAKsi'](_0x3b6121,TestFrameworkState['INIT_TEST'])||_0xc99093[_0x1002cc(0x177)](_0x3b6121,TestFrameworkState['NONE']))&&this[_0x1002cc(0x1b9)](_0x3b6121,_0x2f13e8),_0x15dd6e=TestFramework['getTrackedInstance'](),_0x15dd6e;}[a90_0x1b35e4(0x1b9)](_0x40944a,_0x526d97){const _0x484c06=a90_0x1b35e4,_0x49e305=CLIUtils['getCurrentInstanceName'](),_0x3bbf6f=TrackedInstance['createContext'](_0x49e305);let _0x56ecd9=null;logger[_0x484c06(0x1ba)](_0x484c06(0x180)+_0x49e305+_0x484c06(0x1fb)+_0x40944a),_0x56ecd9=new TestFrameworkInstance(_0x3bbf6f,this['getTestFrameworks'](),this[_0x484c06(0x193)](),_0x40944a,HookState['NONE']),TestFramework['setTrackedInstance'](_0x3bbf6f,_0x56ecd9),logger[_0x484c06(0x1ba)]('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x3bbf6f[_0x484c06(0x1d8)]()+'\x20target='+_0x49e305);}['parseCucumberTest'](_0x39235d){const _0x9c8a82=a90_0x1b35e4,_0x5d4eb4={};_0x5d4eb4[_0x9c8a82(0x1ff)]=_0x9c8a82(0x1ca);const _0x15f09f=_0x5d4eb4,{testUUID:_0x247b52,testData:_0x49b0ff}=_0x39235d;if(!_0x49b0ff||!_0x49b0ff[_0x9c8a82(0x15d)])return logger['debug'](_0x15f09f[_0x9c8a82(0x1ff)]),{};const _0x4ed5c8=_0x247b52,_0x4a99d5=_0x49b0ff[_0x9c8a82(0x15d)],_0x36654e=this['getTestFrameworks']()[0x0],_0x40097a=this[_0x9c8a82(0x193)](),_0x1a98b6={[TestFrameworkConstants[_0x9c8a82(0x1fa)]]:_0x36654e,[TestFrameworkConstants[_0x9c8a82(0x1cd)]]:_0x40097a[_0x36654e],[TestFrameworkConstants[_0x9c8a82(0x15f)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x9c8a82(0x1d7)]]:{},[TestFrameworkConstants[_0x9c8a82(0x1ee)]]:_0x4ed5c8,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x9c8a82(0x194)],[TestFrameworkConstants[_0x9c8a82(0x19e)]]:_0x49b0ff['name']||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x49b0ff[_0x9c8a82(0x1cc)]||'',[TestFrameworkConstants[_0x9c8a82(0x214)]]:_0x4a99d5,[TestFrameworkConstants[_0x9c8a82(0x19c)]]:_0x49b0ff[_0x9c8a82(0x18b)]||'',[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0x49b0ff[_0x9c8a82(0x1b0)]||'',[TestFrameworkConstants[_0x9c8a82(0x1ea)]]:_0x49b0ff[_0x9c8a82(0x185)]?.[_0x9c8a82(0x1dd)]||null,[TestFrameworkConstants[_0x9c8a82(0x192)]]:_0x49b0ff[_0x9c8a82(0x211)]||[],[TestFrameworkConstants[_0x9c8a82(0x215)]]:_0x49b0ff[_0x9c8a82(0x1af)]||new Date()[_0x9c8a82(0x1eb)](),[TestFrameworkConstants[_0x9c8a82(0x1be)]]:_0x49b0ff[_0x9c8a82(0x199)]?.[0x0]||'',[TestFrameworkConstants[_0x9c8a82(0x1a9)]]:_0x49b0ff['scopes']||[],[TestFrameworkConstants[_0x9c8a82(0x1f2)]]:_0x49b0ff[_0x9c8a82(0x210)]?.['rerun_name']||_0x49b0ff['name']||'',[TestFrameworkConstants[_0x9c8a82(0x175)]]:{},[TestFrameworkConstants[_0x9c8a82(0x1e4)]]:_0x49b0ff[_0x9c8a82(0x1c3)]||{}};TestInfo[_0x9c8a82(0x18e)](_0x4a99d5,_0x1a98b6),logger[_0x9c8a82(0x1ba)](_0x9c8a82(0x1ed)+_0x49b0ff['name']+'\x20with\x20UUID:\x20'+_0x4ed5c8);const _0x597bb0={};return _0x597bb0[_0x4a99d5]=_0x1a98b6,_0x597bb0;}['parseCucumberTestResult'](_0x364020){const _0x407033=a90_0x1b35e4,_0x2d4b99={'uGjLy':_0x407033(0x1bd),'UrtOV':_0x407033(0x217),'PygMg':function(_0x7199e5,_0x2ebbd6){return _0x7199e5===_0x2ebbd6;},'WhjDk':_0x407033(0x1c2),'DAfdI':'UnhandledError','fyMoo':function(_0x52a20c,_0x52939a,_0x204e92){return _0x52a20c(_0x52939a,_0x204e92);},'GRjtr':function(_0x3a9ae4,_0x4b7735){return _0x3a9ae4>_0x4b7735;}},{testUUID:_0x4b10a8,testData:_0x35c176}=_0x364020;if(!_0x35c176||!_0x35c176['uuid'])return logger['debug'](_0x2d4b99[_0x407033(0x1d6)]),{};const _0x771612=this[_0x407033(0x190)](TestFrameworkState[_0x407033(0x197)],HookState['POST']),_0x41e7a3=_0x35c176[_0x407033(0x15d)],_0x1c12e=TestInfo['getTestDetails'](_0x41e7a3)||{},_0xb3e6b0=_0x1c12e?_0x1c12e[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{}:{},_0x366c76={..._0x1c12e,[TestFrameworkConstants[_0x407033(0x21a)]]:_0x35c176['result']||_0x2d4b99['UrtOV'],[TestFrameworkConstants[_0x407033(0x1b1)]]:_0x35c176[_0x407033(0x1ef)]||new Date()[_0x407033(0x1eb)](),[TestFrameworkConstants[_0x407033(0x1d5)]]:new Date()[_0x407033(0x1eb)](),[TestFrameworkConstants[_0x407033(0x175)]]:_0xb3e6b0,[TestFrameworkConstants[_0x407033(0x198)]]:[],[TestFrameworkConstants[_0x407033(0x1e4)]]:_0x35c176['meta']||{}};_0x2d4b99[_0x407033(0x212)](_0x35c176[_0x407033(0x1b7)],_0x2d4b99['WhjDk'])&&_0x35c176[_0x407033(0x1b3)]&&(_0x366c76[TestFrameworkConstants[_0x407033(0x184)]]=_0x35c176['failure_type']||_0x2d4b99['DAfdI'],_0x366c76[TestFrameworkConstants[_0x407033(0x17f)]]=_0x35c176['failure_reason']||'',_0x366c76[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x35c176[_0x407033(0x1b3)]);const _0x4ce43b=TestInfo[_0x407033(0x21c)](_0x41e7a3)[TestFrameworkConstants[_0x407033(0x19d)]]||{},_0x117259=_0x2d4b99['fyMoo'](getManualUploadLogs,_0x4ce43b,_0x771612[_0x407033(0x1a7)]()[_0x407033(0x1e7)](_0x41e7a3)[TestFrameworkConstants[_0x407033(0x1ee)]]);if(_0x2d4b99[_0x407033(0x15b)](_0x117259[_0x407033(0x191)],0x0)){const _0x33edfa=_0x366c76[TestFrameworkConstants[_0x407033(0x198)]]||[];_0x366c76[TestFrameworkConstants[_0x407033(0x198)]]=[..._0x33edfa,..._0x117259];}_0x35c176['hooks']&&_0x2d4b99[_0x407033(0x15b)](_0x35c176['hooks'][_0x407033(0x191)],0x0)&&(_0x366c76[TestFrameworkConstants[_0x407033(0x21b)]]=_0x35c176[_0x407033(0x17c)]);TestInfo[_0x407033(0x18e)](_0x41e7a3,_0x366c76),logger[_0x407033(0x1ba)](_0x407033(0x18d)+_0x35c176['name']+_0x407033(0x1a2)+_0x35c176[_0x407033(0x1b7)]);const _0xe8abd6={};return _0xe8abd6[_0x41e7a3]=_0x366c76,_0xe8abd6;}async[a90_0x1b35e4(0x1f8)](_0x591797,_0xc22403,_0x57f8b9,_0x44857f){const _0x33054b=a90_0x1b35e4,_0x1153d3={'vdIvH':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','GBAJc':function(_0xb758f2){return _0xb758f2();},'ZeXak':function(_0x583c0a,_0x1bae24){return _0x583c0a in _0x1bae24;},'bibLT':function(_0x41a5ae,_0x2d5cf3){return _0x41a5ae===_0x2d5cf3;},'qsUzr':function(_0x4d39f5,_0x6b1a73){return _0x4d39f5===_0x6b1a73;},'urXPX':function(_0x267320,_0x57f8fd){return _0x267320>_0x57f8fd;},'MVrwb':function(_0x22590d,_0x3eb356){return _0x22590d===_0x3eb356;},'wRSgN':_0x33054b(0x1c2),'wyWiK':_0x33054b(0x15a),'CciXD':_0x33054b(0x1a5),'CyqgO':function(_0x26ae75,_0xbf5697){return _0x26ae75!==_0xbf5697;}},{hookData:_0x2276eb}=_0x44857f;if(!_0x2276eb)return logger[_0x33054b(0x1ba)](_0x1153d3[_0x33054b(0x1a0)]),{};const _0x3f4fd5=_0x2276eb[_0x33054b(0x15d)]||_0x1153d3[_0x33054b(0x17e)](uuidv4),_0x1dbcfd=_0x2276eb['test_run_id'],_0x345b02=_0xc22403[_0x33054b(0x1cf)]()[_0x33054b(0x169)]('.')[0x1],_0x533eee=TestInfo['getTestDetails'](_0x1dbcfd)[TestFrameworkConstants[_0x33054b(0x175)]]||{},_0x49bfdc=_0x591797[_0x33054b(0x1a7)]()['get'](_0x1dbcfd);if(!_0x49bfdc)return logger[_0x33054b(0x1ba)]('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x1dbcfd+',\x20storing\x20as\x20pending\x20hook'),this['storePendingHook'](_0x591797,_0x1dbcfd,_0xc22403,_0x57f8b9,_0x44857f),{};let _0x3d159a=_0x49bfdc[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x3d159a&&(_0x3d159a={});!_0x1153d3[_0x33054b(0x1a1)](_0x345b02,_0x3d159a)&&(_0x3d159a[_0x345b02]=[]);let _0x1ea665=_0x49bfdc[TestFrameworkConstants[_0x33054b(0x21b)]];!_0x1ea665&&(_0x1ea665={});!_0x1153d3[_0x33054b(0x1a1)](_0x345b02,_0x1ea665)&&(_0x1ea665[_0x345b02]=[]);const _0x3c0524={[TestFrameworkConstants[_0x33054b(0x1d7)]]:_0x3d159a,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x1ea665},_0x561119={};_0x561119[_0x1dbcfd]=_0x3c0524;const _0x174aa1=_0x561119;if(_0x1153d3[_0x33054b(0x16f)](_0x57f8b9,HookState[_0x33054b(0x1c9)])){const _0x3ce108={[TestFrameworkConstants[_0x33054b(0x170)]]:_0x3f4fd5,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0x33054b(0x1b2)],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0x2276eb[_0x33054b(0x159)],[TestFrameworkConstants[_0x33054b(0x1bf)]]:[],[TestFrameworkConstants[_0x33054b(0x189)]]:_0x2276eb['hook_type'],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x533eee};_0x3ce108[_0x33054b(0x1e3)]=_0x345b02;const _0x1ccba4=_0x3ce108;_0x3d159a[_0x345b02][_0x33054b(0x17b)](_0x1ccba4),_0x174aa1[_0x1dbcfd][TestFrameworkConstants[_0x33054b(0x1f4)]]=_0x345b02,logger[_0x33054b(0x1ba)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x345b02+_0x33054b(0x216)+_0x1ccba4+_0x33054b(0x1e2)+_0x44857f);}else{if(_0x1153d3[_0x33054b(0x1ac)](_0x57f8b9,HookState['POST'])){const _0x58729f=_0x2276eb['result'],_0x25e1e0=_0x3d159a[_0x345b02]||[];logger[_0x33054b(0x1ba)](_0x33054b(0x1bb)+_0x25e1e0+_0x33054b(0x20c)+_0x44857f);if(_0x1153d3['urXPX'](_0x25e1e0[_0x33054b(0x191)],0x0)){const _0x1d075d=_0x25e1e0['pop']();_0x1153d3[_0x33054b(0x200)](_0x2276eb[_0x33054b(0x1b7)],_0x1153d3[_0x33054b(0x1dc)])&&_0x2276eb[_0x33054b(0x1b8)]?(_0x1d075d[TestFrameworkConstants[_0x33054b(0x15c)]]=_0x2276eb[_0x33054b(0x1d1)]||_0x1153d3['wyWiK'],_0x1d075d[TestFrameworkConstants[_0x33054b(0x208)]]=_0x2276eb[_0x33054b(0x195)]||'',_0x1d075d[TestFrameworkConstants[_0x33054b(0x1ec)]]=_0x2276eb[_0x33054b(0x1b8)]):_0x1d075d[TestFrameworkConstants[_0x33054b(0x1d0)]]=_0x1153d3[_0x33054b(0x1e5)];_0x1153d3[_0x33054b(0x203)](_0x58729f,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x1d075d[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x58729f);_0x1d075d[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x2276eb[_0x33054b(0x209)]||new Date()[_0x33054b(0x1eb)](),_0x1d075d[TestFrameworkConstants[_0x33054b(0x175)]]=_0x533eee;const _0xf9bb0e=_0x1d075d[TestFrameworkConstants[_0x33054b(0x170)]];!_0x1ea665[_0x345b02]&&(_0x1ea665[_0x345b02]=[]),_0x1ea665[_0x345b02][_0x33054b(0x17b)](_0x1d075d),_0x174aa1[_0x1dbcfd][TestFrameworkConstants[_0x33054b(0x20d)]]=_0x345b02;}}}return logger[_0x33054b(0x1ba)](_0x33054b(0x166)+_0x2276eb['hook_type']+_0x33054b(0x1ae)+_0x3f4fd5+'\x20for\x20test:\x20'+_0x1dbcfd),_0x174aa1;}[a90_0x1b35e4(0x1fd)](_0x382dac){const _0x26d1b0=a90_0x1b35e4,_0x3a4829={};_0x3a4829[_0x26d1b0(0x1f7)]=_0x26d1b0(0x1cb);const _0x1ed917=_0x3a4829;try{const _0x48311e=_0x382dac[_0x26d1b0(0x1df)]?_0x382dac[_0x26d1b0(0x1df)]['id']:_0x382dac[_0x26d1b0(0x1b6)][_0x26d1b0(0x1ce)],_0x1072a7=_0x382dac[_0x26d1b0(0x1ad)],_0x55c8d9=_0x1072a7[_0x26d1b0(0x157)](),_0x38e541=_0x1072a7[_0x26d1b0(0x1a7)]()[_0x26d1b0(0x1e7)](_0x48311e);if(!_0x38e541)return logger[_0x26d1b0(0x1ba)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x48311e),{};logger[_0x26d1b0(0x1ba)]('createTestFrameworkEventPayload\x20testId:\x20'+_0x48311e);const {[TestFrameworkConstants[_0x26d1b0(0x1fa)]]:_0x33f87c='',[TestFrameworkConstants[_0x26d1b0(0x1cd)]]:_0x359840='',[TestFrameworkConstants[_0x26d1b0(0x215)]]:_0x15aaba='',[TestFrameworkConstants[_0x26d1b0(0x1b1)]]:_0x5e757=''}=_0x38e541,_0x5e6f51=_0x1072a7[_0x26d1b0(0x1d3)]()[_0x26d1b0(0x1cf)]()[_0x26d1b0(0x169)]('.')[0x1],_0x30b19f=_0x1072a7[_0x26d1b0(0x158)]()[_0x26d1b0(0x1cf)]()[_0x26d1b0(0x169)]('.')[0x1],_0x381fe5=global?.['browserstackPlatformIndex']??0x0,_0x55c7df=_0x1072a7['getRef'](),_0x9346f5=Buffer[_0x26d1b0(0x174)](JSON[_0x26d1b0(0x196)](_0x38e541))[_0x26d1b0(0x1cf)](_0x1ed917['lXdZB']),_0x36b5e6={'hash':_0x55c8d9[_0x26d1b0(0x1d8)](),'threadId':_0x55c8d9[_0x26d1b0(0x155)]()[_0x26d1b0(0x1cf)](),'processId':_0x55c8d9[_0x26d1b0(0x206)]()[_0x26d1b0(0x1cf)]()},_0x112c86={};_0x112c86[_0x26d1b0(0x1c4)]=_0x381fe5,_0x112c86['testFrameworkName']=_0x33f87c,_0x112c86[_0x26d1b0(0x16a)]=_0x359840,_0x112c86[_0x26d1b0(0x204)]=_0x5e6f51,_0x112c86[_0x26d1b0(0x1e6)]=_0x30b19f,_0x112c86[_0x26d1b0(0x1af)]=_0x15aaba,_0x112c86[_0x26d1b0(0x19b)]=_0x5e757,_0x112c86['uuid']=_0x55c7df,_0x112c86[_0x26d1b0(0x161)]=_0x9346f5,_0x112c86[_0x26d1b0(0x16c)]=_0x36b5e6;const _0x4e086c=_0x112c86;return logger[_0x26d1b0(0x1ba)](_0x26d1b0(0x18c)+_0x48311e+'\x20testState:\x20'+_0x5e6f51+'\x20hookState:\x20'+_0x30b19f),_0x4e086c;}catch(_0x49ad56){return logger[_0x26d1b0(0x187)](_0x26d1b0(0x1e1)+util[_0x26d1b0(0x167)](_0x49ad56)),{};}}async[a90_0x1b35e4(0x19a)](_0x260aed,_0x4f8deb,_0xe99baf){const _0x484e7f=a90_0x1b35e4,_0x1edd7c={'pECuo':function(_0x54f180,_0x52b100,_0x164602){return _0x54f180(_0x52b100,_0x164602);},'qJSwV':function(_0x378b09,_0x14b027){return _0x378b09===_0x14b027;},'JaRkL':_0x484e7f(0x163),'nMzEq':function(_0x59e704,_0x5df0e5){return _0x59e704/_0x5df0e5;},'AeHob':function(_0x22db13,_0x3aead1){return _0x22db13<_0x3aead1;},'FOkDP':function(_0x16296a,_0x2437a3){return _0x16296a*_0x2437a3;},'uThHf':function(_0x5ac558,_0x6d4a78){return _0x5ac558+_0x6d4a78;},'ihjuT':function(_0x237df9,_0x165bb8){return _0x237df9+_0x165bb8;},'aeuvJ':_0x484e7f(0x1e9)};try{const _0x55d8d5=_0xe99baf[_0x484e7f(0x1d4)],_0x196289=_0x260aed[_0x484e7f(0x1a7)]()[_0x484e7f(0x1e7)](_0x55d8d5),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x5981d8='',[TestFrameworkConstants[_0x484e7f(0x1cd)]]:_0x1ec7f6=''}=_0x196289,_0x18fb3f=TestInfo['readLogObjects'](_0x55d8d5),_0x3f38af=TestInfo[_0x484e7f(0x21c)](_0x55d8d5)[TestFrameworkConstants[_0x484e7f(0x19d)]]||{},_0x400839=_0x1edd7c['pECuo'](getMediaArtifactsLogs,_0x3f38af,_0x260aed[_0x484e7f(0x1a7)]()[_0x484e7f(0x1e7)](_0x55d8d5)[TestFrameworkConstants[_0x484e7f(0x1ee)]]),_0x5e5614=(_0x18fb3f||[])[_0x484e7f(0x172)](_0x400839||[]);if(!_0x5e5614||_0x1edd7c[_0x484e7f(0x1f9)](_0x5e5614[_0x484e7f(0x191)],0x0)){logger['debug'](_0x1edd7c[_0x484e7f(0x17a)]);return;}const _0x3d8b64=0x28,_0x2d0fb8=Math[_0x484e7f(0x160)](_0x1edd7c[_0x484e7f(0x18f)](_0x5e5614[_0x484e7f(0x191)],_0x3d8b64));for(let _0x9bd007=0x0;_0x1edd7c[_0x484e7f(0x219)](_0x9bd007,_0x2d0fb8);_0x9bd007++){const _0x397fa9=_0x1edd7c['FOkDP'](_0x9bd007,_0x3d8b64),_0x3b7dd8=_0x1edd7c[_0x484e7f(0x178)](_0x397fa9,_0x3d8b64),_0x5e7020=_0x5e5614[_0x484e7f(0x201)](_0x397fa9,_0x3b7dd8),_0x66ba6d={'platformIndex':global?.[_0x484e7f(0x20a)]??0x0,'logs':_0x5e7020,'testFrameworkName':_0x5981d8,'testFrameworkVersion':_0x1ec7f6,'testFrameworkState':_0x4f8deb[_0x484e7f(0x1cf)]()['split']('.')[0x1]};logger['debug'](_0x484e7f(0x218)+_0x55d8d5+_0x484e7f(0x17d)+_0x1edd7c[_0x484e7f(0x178)](_0x9bd007,0x1)+'/'+_0x2d0fb8+'\x20payload='+util[_0x484e7f(0x207)](_0x66ba6d));const _0x31a0e6=await GrpcClient[_0x484e7f(0x213)]()['logCreatedEvent'](_0x66ba6d);logger[_0x484e7f(0x1ba)](_0x484e7f(0x218)+_0x55d8d5+'\x20batch\x20'+_0x1edd7c[_0x484e7f(0x1f3)](_0x9bd007,0x1)+'/'+_0x2d0fb8+_0x484e7f(0x1c5)+util[_0x484e7f(0x207)](_0x31a0e6));}}catch(_0x332bf8){logger['error']('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util[_0x484e7f(0x167)](_0x332bf8));}logger[_0x484e7f(0x1ba)](_0x1edd7c[_0x484e7f(0x16e)]);}['storePendingHook'](_0x483998,_0x566cd3,_0x44cb2b,_0xeb837,_0x3f58b4){const _0x8a350c=a90_0x1b35e4,_0x11bac0={'testId':_0x566cd3,'testFrameworkState':_0x44cb2b,'hookState':_0xeb837,'args':_0x3f58b4,'timestamp':new Date()[_0x8a350c(0x1eb)]()};_0x483998['addPendingHook'](_0x566cd3,_0x11bac0),logger[_0x8a350c(0x1ba)](_0x8a350c(0x16d)+_0x566cd3+',\x20state:\x20'+_0x44cb2b+_0x8a350c(0x20b)+_0xeb837);}async['processPendingHooks'](_0x546a94,_0x3031eb){const _0x32688f=a90_0x1b35e4,_0x5c8146={};_0x5c8146[_0x32688f(0x1a3)]=function(_0x20e60e,_0x263c7b){return _0x20e60e>_0x263c7b;};const _0x5f2510=_0x5c8146;if(!_0x546a94[_0x32688f(0x1a4)](_0x3031eb))return;const _0x4a6cd7=_0x546a94['getPendingHooks'](_0x3031eb);logger[_0x32688f(0x1ba)](_0x32688f(0x1a8)+_0x4a6cd7['length']+_0x32688f(0x16b)+_0x3031eb);for(const _0x395a63 of _0x4a6cd7){try{const _0x4e9e9f=await this[_0x32688f(0x1f8)](_0x546a94,_0x395a63[_0x32688f(0x204)],_0x395a63[_0x32688f(0x1e6)],_0x395a63['args']);_0x4e9e9f&&_0x5f2510[_0x32688f(0x1a3)](Object['keys'](_0x4e9e9f)[_0x32688f(0x191)],0x0)&&_0x546a94['addMultipleEntries'](_0x4e9e9f),await this[_0x32688f(0x165)](_0x546a94,_0x395a63[_0x32688f(0x204)],_0x395a63['hookState'],_0x395a63['args']);}catch(_0x16ea6b){logger[_0x32688f(0x187)](_0x32688f(0x1e0)+_0x3031eb+_0x32688f(0x18a)+_0x16ea6b);}}_0x546a94[_0x32688f(0x181)](_0x3031eb),logger[_0x32688f(0x1ba)](_0x32688f(0x1d2)+_0x3031eb);}}function a90_0x4fd1(_0x405051,_0x1770e9){const _0x1a9674=a90_0x1a96();return a90_0x4fd1=function(_0x4fd1cc,_0x3d3310){_0x4fd1cc=_0x4fd1cc-0x155;let _0x42d44f=_0x1a9674[_0x4fd1cc];return _0x42d44f;},a90_0x4fd1(_0x405051,_0x1770e9);}function a90_0x1a96(){const _0x5e2ff6=['started_at','UnhandledError','GRjtr','KEY_HOOK_FAILURE_TYPE','uuid','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','KEY_TEST_LOGS','ceil','eventJson','../state/testFrameworkState.js','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','addMultipleEntries','runHooks','Tracked\x20cucumber\x20hook\x20event:\x20','format','801504YmhAXn','split','testFrameworkVersion','\x20pending\x20hooks\x20for\x20testId:\x20','executionContext','Stored\x20pending\x20hook\x20for\x20testId:\x20','aeuvJ','bibLT','KEY_HOOK_ID','RFotA','concat','../instances/trackedInstance.js','from','KEY_CUSTOM_TAGS','theQY','GAKsi','uThHf','4108482nFYJxD','JaRkL','push','hooks','\x20batch\x20','GBAJc','KEY_TEST_FAILURE_REASON','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','removePendingHooks','WACZP','\x20&\x20hookState=','KEY_TEST_FAILURE_TYPE','body','../grpcClient','error','396795mFKaVy','KEY_HOOK_NAME',',\x20error:\x20','name','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','Updated\x20cucumber\x20test\x20result:\x20','setTestDetails','nMzEq','resolveInstance','length','KEY_TEST_TAGS','getTestFrameworksVersions','DEFAULT_TEST_RESULT','failure_reason','stringify','TEST','KEY_LOGS','scopes','sendLogCreatedEvent','endedAt','KEY_TEST_NAME','KEY_TEST_ATTACHMENTS','KEY_AUTOMATE_SESSION_NAME','POST','vdIvH','ZeXak','\x20with\x20result:\x20','TNprh','hasPendingHooks','passed','matchHookRegex','getAllData','Processing\x20','KEY_TEST_SCOPES','parseCucumberTestResult','18NbQmDS','qsUzr','instance','\x20with\x20id\x20','startedAt','location','KEY_TEST_ENDED_AT','DEFAULT_HOOK_RESULT','failure','processPendingHooks','579tlzoPg','hookData','result','failure_data','trackCucumberInstance','debug','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','util','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','KEY_TEST_SCOPE','KEY_HOOK_LOGS','CucumberTestFramework','LOG_REPORT','failed','meta','platformIndex','\x20response=','11XrxRoQ','./testFramework','trackEvent:\x20unsupported\x20testFrameworkState=','PRE','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','base64','file_name','KEY_TEST_FRAMEWORK_VERSION','test_run_id','toString','KEY_HOOK_RESULT','failure_type','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','getCurrentTestState','testUUID','KEY_TEST_RESULT_AT','uGjLy','KEY_HOOKS_STARTED','getId','../TestInfo.js','exports','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','wRSgN','code','../instances/testFrameworkInstance.js','test','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','Error\x20in\x20createTestFrameworkEventPayload:\x20','\x20\x20and\x20args\x20=\x20','key','KEY_TEST_META','CciXD','hookState','get','1235224EZVmzK','Cucumber\x20log\x20created\x20event','KEY_TEST_CODE','toISOString','KEY_HOOK_FAILURE','Parsed\x20cucumber\x20test:\x20','KEY_TEST_UUID','finishedAt','getTestUUID','../../../helpers/classLogger.js','KEY_TEST_RERUN_NAME','ihjuT','KEY_HOOK_LAST_STARTED','150IIwmbp','15800420VQmZFY','lXdZB','trackHookEvent','qJSwV','KEY_TEST_FRAMEWORK_NAME',',\x20state=','../cliUtils.js','createTestFrameworkEventPayload','testData','wYyPL','MVrwb','slice','../state/hookState.js','CyqgO','testFrameworkState','10rcvajV','getProcessId','inspect','KEY_HOOK_FAILURE_REASON','finished_at','browserstackPlatformIndex',',\x20hookState:\x20','\x20and\x20args\x20=\x20','KEY_HOOK_LAST_FINISHED','./constants/testFrameworkConstants.js','../../../helpers/helper.js','customRerunParam','tags','PygMg','getInstance','KEY_TEST_ID','KEY_TEST_STARTED_AT','\x20&\x20hook\x20=\x20','unknown','sendLogCreatedEvent:\x20for\x20testId:\x20','AeHob','KEY_TEST_RESULT','KEY_HOOKS_FINISHED','getTestDetails','getThreadId','225028MIHrtj','getContext','getCurrentHookState'];a90_0x1a96=function(){return _0x5e2ff6;};return a90_0x1a96();}module[a90_0x1b35e4(0x1da)]=CucumberTestFramework;
|
|
1
|
+
const a90_0x4939d7=a90_0x5e7f;(function(_0x27733a,_0x1bc7db){const _0x2d2d32=a90_0x5e7f,_0x5555c9=_0x27733a();while(!![]){try{const _0x2edfc3=-parseInt(_0x2d2d32(0x1cf))/0x1*(-parseInt(_0x2d2d32(0x231))/0x2)+parseInt(_0x2d2d32(0x1f6))/0x3*(-parseInt(_0x2d2d32(0x290))/0x4)+-parseInt(_0x2d2d32(0x262))/0x5*(parseInt(_0x2d2d32(0x21b))/0x6)+parseInt(_0x2d2d32(0x27d))/0x7+parseInt(_0x2d2d32(0x227))/0x8*(-parseInt(_0x2d2d32(0x1f3))/0x9)+parseInt(_0x2d2d32(0x28c))/0xa*(parseInt(_0x2d2d32(0x26c))/0xb)+parseInt(_0x2d2d32(0x287))/0xc;if(_0x2edfc3===_0x1bc7db)break;else _0x5555c9['push'](_0x5555c9['shift']());}catch(_0x20db20){_0x5555c9['push'](_0x5555c9['shift']());}}}(a90_0x4364,0x7aa76));const TestFramework=require(a90_0x4939d7(0x221)),TestFrameworkState=require(a90_0x4939d7(0x246)),HookState=require(a90_0x4939d7(0x228)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a90_0x4939d7(0x22c)),CLIUtils=require(a90_0x4939d7(0x261)),TrackedInstance=require(a90_0x4939d7(0x240)),TestFrameworkConstants=require(a90_0x4939d7(0x213)),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require(a90_0x4939d7(0x27c)),util=require(a90_0x4939d7(0x258)),TestInfo=require(a90_0x4939d7(0x209)),GrpcClient=require(a90_0x4939d7(0x232));function a90_0x5e7f(_0x4fca33,_0x1ff09b){const _0x43641a=a90_0x4364();return a90_0x5e7f=function(_0x5e7f90,_0x41b9e2){_0x5e7f90=_0x5e7f90-0x1c0;let _0x15722a=_0x43641a[_0x5e7f90];return _0x15722a;},a90_0x5e7f(_0x4fca33,_0x1ff09b);}class CucumberTestFramework extends TestFramework{constructor(_0x28c13d,_0x1603af,_0x5b1ff5){super(_0x28c13d,_0x1603af,_0x5b1ff5);}async[a90_0x4939d7(0x1ff)](_0x3f2e13,_0x42a9d8,_0x410d2b={}){const _0x365b08=a90_0x4939d7,_0x55fda1={};_0x55fda1[_0x365b08(0x224)]=_0x365b08(0x1dd),_0x55fda1[_0x365b08(0x1c4)]=function(_0x3eff85,_0x4a9823){return _0x3eff85===_0x4a9823;},_0x55fda1[_0x365b08(0x271)]=_0x365b08(0x208);const _0x5af58d=_0x55fda1;await super[_0x365b08(0x1ff)](_0x3f2e13,_0x42a9d8,_0x410d2b);const _0x3dd5f2=this[_0x365b08(0x20f)](_0x3f2e13,_0x42a9d8,_0x410d2b);if(!_0x3dd5f2){logger['debug'](_0x5af58d[_0x365b08(0x224)]);return;}try{let _0x14a254,_0x2deefc;switch(_0x3f2e13){case TestFrameworkState[_0x365b08(0x23c)]:_0x14a254=_0x410d2b['test'],_0x2deefc=TestInfo[_0x365b08(0x21a)](_0x14a254['id']);if(_0x5af58d[_0x365b08(0x1c4)](_0x42a9d8,HookState[_0x365b08(0x1fd)])){logger['debug'](_0x365b08(0x1f8)+_0x14a254['id']);const _0x21ee24={};_0x21ee24['testUUID']=_0x2deefc,_0x21ee24[_0x365b08(0x20d)]=_0x14a254,_0x3dd5f2[_0x365b08(0x1f7)](this[_0x365b08(0x281)](_0x21ee24)),logger['debug']('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x14a254['id']),await this['processPendingHooks'](_0x3dd5f2,_0x14a254['id']);}else{if(_0x5af58d[_0x365b08(0x1c4)](_0x42a9d8,HookState['POST'])){const _0x2f2640={};_0x2f2640[_0x365b08(0x234)]=_0x2deefc,_0x2f2640[_0x365b08(0x20d)]=_0x14a254,_0x3dd5f2['addMultipleEntries'](this[_0x365b08(0x1e0)](_0x2f2640)),await this[_0x365b08(0x205)](_0x3dd5f2,_0x14a254['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x5af58d[_0x365b08(0x1c4)](_0x42a9d8,HookState[_0x365b08(0x1e1)])&&await this[_0x365b08(0x251)](_0x3dd5f2,_0x3f2e13,_0x410d2b);break;default:if(CLIUtils['matchHookRegex'](_0x3f2e13[_0x365b08(0x289)]()[_0x365b08(0x26a)]('.')[0x1])){const _0x16a36c=await this[_0x365b08(0x1f4)](_0x3dd5f2,_0x3f2e13,_0x42a9d8,_0x410d2b);_0x3dd5f2['addMultipleEntries'](_0x16a36c);}else logger[_0x365b08(0x1fe)](_0x365b08(0x27a)+_0x3f2e13+'\x20&\x20hookState='+_0x42a9d8);break;}}catch(_0x46ccb1){logger[_0x365b08(0x21c)](util[_0x365b08(0x294)](_0x5af58d[_0x365b08(0x271)],_0x3f2e13,_0x42a9d8,_0x410d2b['length'],_0x46ccb1));}_0x410d2b[_0x365b08(0x211)]=_0x3dd5f2,await this[_0x365b08(0x1c9)](_0x3dd5f2,_0x3f2e13,_0x42a9d8,_0x410d2b);}[a90_0x4939d7(0x20f)](_0x4cea61,_0x330d08,_0x4514f0={}){const _0x5a88d3=a90_0x4939d7,_0x1ee398={};_0x1ee398[_0x5a88d3(0x263)]=function(_0x4a4301,_0x310c48){return _0x4a4301===_0x310c48;},_0x1ee398['NyZtC']=function(_0x12ce4d,_0xc7f90f){return _0x12ce4d===_0xc7f90f;};const _0x52d477=_0x1ee398;let _0x3314a7=null;return(_0x52d477[_0x5a88d3(0x263)](_0x4cea61,TestFrameworkState[_0x5a88d3(0x1cb)])||_0x52d477[_0x5a88d3(0x24d)](_0x4cea61,TestFrameworkState[_0x5a88d3(0x1c3)]))&&this[_0x5a88d3(0x233)](_0x4cea61,_0x4514f0),_0x3314a7=TestFramework[_0x5a88d3(0x250)](),_0x3314a7;}[a90_0x4939d7(0x233)](_0x5f015c,_0x1ca899){const _0x39ba5f=a90_0x4939d7,_0x203e29=CLIUtils['getCurrentInstanceName'](),_0xe9699d=TrackedInstance[_0x39ba5f(0x22a)](_0x203e29);let _0x5bfbd3=null;logger[_0x39ba5f(0x1fe)](_0x39ba5f(0x28b)+_0x203e29+_0x39ba5f(0x278)+_0x5f015c),_0x5bfbd3=new TestFrameworkInstance(_0xe9699d,this['getTestFrameworks'](),this['getTestFrameworksVersions'](),_0x5f015c,HookState[_0x39ba5f(0x1c3)]),TestFramework[_0x39ba5f(0x25d)](_0xe9699d,_0x5bfbd3),logger[_0x39ba5f(0x1fe)](_0x39ba5f(0x24c)+_0xe9699d['getId']()+'\x20target='+_0x203e29);}[a90_0x4939d7(0x281)](_0x138fee){const _0x37f5d5=a90_0x4939d7,_0x201bc1={};_0x201bc1[_0x37f5d5(0x28f)]=_0x37f5d5(0x259);const _0x1c02e4=_0x201bc1,{testUUID:_0x130ca6,testData:_0x24aaaa}=_0x138fee;if(!_0x24aaaa||!_0x24aaaa[_0x37f5d5(0x27c)])return logger[_0x37f5d5(0x1fe)](_0x1c02e4[_0x37f5d5(0x28f)]),{};const _0x33ce4d=_0x130ca6,_0x1bd47b=_0x24aaaa[_0x37f5d5(0x27c)],_0x563166=this[_0x37f5d5(0x229)]()[0x0],_0x4202cc=this[_0x37f5d5(0x1c7)](),_0x49588a={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x563166,[TestFrameworkConstants[_0x37f5d5(0x284)]]:_0x4202cc[_0x563166],[TestFrameworkConstants[_0x37f5d5(0x20c)]]:[],[TestFrameworkConstants[_0x37f5d5(0x265)]]:{},[TestFrameworkConstants[_0x37f5d5(0x276)]]:{},[TestFrameworkConstants[_0x37f5d5(0x292)]]:_0x33ce4d,[TestFrameworkConstants[_0x37f5d5(0x291)]]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x37f5d5(0x269)]]:_0x24aaaa[_0x37f5d5(0x27f)]||'',[TestFrameworkConstants[_0x37f5d5(0x1f9)]]:_0x24aaaa['file_name']||'',[TestFrameworkConstants[_0x37f5d5(0x23f)]]:_0x1bd47b,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x24aaaa[_0x37f5d5(0x27f)]||'',[TestFrameworkConstants[_0x37f5d5(0x267)]]:_0x24aaaa[_0x37f5d5(0x23d)]||'',[TestFrameworkConstants[_0x37f5d5(0x20b)]]:_0x24aaaa[_0x37f5d5(0x22d)]?.[_0x37f5d5(0x27e)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x24aaaa['tags']||[],[TestFrameworkConstants[_0x37f5d5(0x25f)]]:_0x24aaaa[_0x37f5d5(0x288)]||new Date()[_0x37f5d5(0x1d6)](),[TestFrameworkConstants[_0x37f5d5(0x256)]]:_0x24aaaa['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x37f5d5(0x275)]]:_0x24aaaa[_0x37f5d5(0x239)]||[],[TestFrameworkConstants[_0x37f5d5(0x1cc)]]:_0x24aaaa[_0x37f5d5(0x1ee)]?.[_0x37f5d5(0x216)]||_0x24aaaa[_0x37f5d5(0x27f)]||'',[TestFrameworkConstants[_0x37f5d5(0x24a)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x24aaaa['meta']||{}};TestInfo[_0x37f5d5(0x1d5)](_0x1bd47b,_0x49588a),logger[_0x37f5d5(0x1fe)](_0x37f5d5(0x254)+_0x24aaaa[_0x37f5d5(0x27f)]+_0x37f5d5(0x1f1)+_0x33ce4d);const _0x3f8f95={};return _0x3f8f95[_0x1bd47b]=_0x49588a,_0x3f8f95;}['parseCucumberTestResult'](_0x123a70){const _0x2cf090=a90_0x4939d7,_0x110174={'zdrIR':'No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','gSPuE':'unknown','PlqqC':function(_0x1e82bb,_0x875d9d){return _0x1e82bb===_0x875d9d;},'RbOlp':_0x2cf090(0x26e),'vaibT':_0x2cf090(0x285),'oMWBS':function(_0x3f77b2,_0x4540b5,_0x1bb5e2){return _0x3f77b2(_0x4540b5,_0x1bb5e2);},'GDPIS':function(_0x298899,_0x1ed68c){return _0x298899>_0x1ed68c;},'BHPNz':function(_0x4e6f26,_0x409682){return _0x4e6f26>_0x409682;}},{testUUID:_0x3b793d,testData:_0x3b1f93}=_0x123a70;if(!_0x3b1f93||!_0x3b1f93['uuid'])return logger['debug'](_0x110174[_0x2cf090(0x1d4)]),{};const _0x23e5f7=this[_0x2cf090(0x20f)](TestFrameworkState[_0x2cf090(0x23c)],HookState[_0x2cf090(0x1e1)]),_0x1fae6a=_0x3b1f93[_0x2cf090(0x27c)],_0x2eb5e9=TestInfo[_0x2cf090(0x26f)](_0x1fae6a)||{},_0x1b73a0=_0x2eb5e9?_0x2eb5e9[TestFrameworkConstants[_0x2cf090(0x24a)]]||{}:{},_0x478ca4={..._0x2eb5e9,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x3b1f93[_0x2cf090(0x212)]||_0x110174[_0x2cf090(0x21f)],[TestFrameworkConstants[_0x2cf090(0x225)]]:_0x3b1f93['finishedAt']||new Date()[_0x2cf090(0x1d6)](),[TestFrameworkConstants[_0x2cf090(0x1ef)]]:new Date()[_0x2cf090(0x1d6)](),[TestFrameworkConstants[_0x2cf090(0x24a)]]:_0x1b73a0,[TestFrameworkConstants[_0x2cf090(0x236)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x3b1f93[_0x2cf090(0x1da)]||{}};_0x110174[_0x2cf090(0x24b)](_0x3b1f93['result'],_0x110174[_0x2cf090(0x237)])&&_0x3b1f93[_0x2cf090(0x1e6)]&&(_0x478ca4[TestFrameworkConstants[_0x2cf090(0x23b)]]=_0x3b1f93[_0x2cf090(0x24f)]||_0x110174['vaibT'],_0x478ca4[TestFrameworkConstants[_0x2cf090(0x1ea)]]=_0x3b1f93[_0x2cf090(0x252)]||'',_0x478ca4[TestFrameworkConstants[_0x2cf090(0x1c8)]]=_0x3b1f93[_0x2cf090(0x1e6)]);const _0x1d941a=TestInfo[_0x2cf090(0x26f)](_0x1fae6a)[TestFrameworkConstants[_0x2cf090(0x266)]]||{},_0x8d38ea=_0x110174[_0x2cf090(0x28e)](getManualUploadLogs,_0x1d941a,_0x23e5f7[_0x2cf090(0x25a)]()['get'](_0x1fae6a)[TestFrameworkConstants[_0x2cf090(0x292)]]);if(_0x110174[_0x2cf090(0x202)](_0x8d38ea[_0x2cf090(0x1ce)],0x0)){const _0x46deed=_0x478ca4[TestFrameworkConstants[_0x2cf090(0x236)]]||[];_0x478ca4[TestFrameworkConstants[_0x2cf090(0x236)]]=[..._0x46deed,..._0x8d38ea];}_0x3b1f93[_0x2cf090(0x1df)]&&_0x110174['BHPNz'](_0x3b1f93[_0x2cf090(0x1df)]['length'],0x0)&&(_0x478ca4[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x3b1f93[_0x2cf090(0x1df)]);TestInfo[_0x2cf090(0x1d5)](_0x1fae6a,_0x478ca4),logger[_0x2cf090(0x1fe)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x3b1f93[_0x2cf090(0x27f)]+_0x2cf090(0x293)+_0x3b1f93[_0x2cf090(0x212)]);const _0x57dd75={};return _0x57dd75[_0x1fae6a]=_0x478ca4,_0x57dd75;}async[a90_0x4939d7(0x1f4)](_0x2600cd,_0x3c3f34,_0x46602d,_0x5dceb2){const _0x47f59b=a90_0x4939d7,_0xb7bc18={'BmprN':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','ePeDf':function(_0x1ca6e7){return _0x1ca6e7();},'mMZWd':function(_0x35c133,_0x4755d2){return _0x35c133 in _0x4755d2;},'FJlnD':function(_0x585900,_0x169aa7){return _0x585900===_0x169aa7;},'tEnQr':function(_0xa406f5,_0x12a508){return _0xa406f5>_0x12a508;},'WVWRF':function(_0x160732,_0x258533){return _0x160732===_0x258533;},'fVGUc':_0x47f59b(0x26e),'iZGdv':_0x47f59b(0x285),'UWtap':_0x47f59b(0x249),'ILIxC':function(_0x4f767c,_0x4d95e4){return _0x4f767c!==_0x4d95e4;}},{hookData:_0x3b4c64}=_0x5dceb2;if(!_0x3b4c64)return logger[_0x47f59b(0x1fe)](_0xb7bc18['BmprN']),{};const _0x5ae65b=_0x3b4c64[_0x47f59b(0x27c)]||_0xb7bc18[_0x47f59b(0x1d1)](uuidv4),_0x2871fb=_0x3b4c64[_0x47f59b(0x1c5)],_0x2a3b2d=_0x3c3f34[_0x47f59b(0x289)]()[_0x47f59b(0x26a)]('.')[0x1],_0x27a501=TestInfo['getTestDetails'](_0x2871fb)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x5e5bd6=_0x2600cd['getAllData']()[_0x47f59b(0x217)](_0x2871fb);if(!_0x5e5bd6)return logger[_0x47f59b(0x1fe)](_0x47f59b(0x1fb)+_0x2871fb+_0x47f59b(0x1dc)),this[_0x47f59b(0x1de)](_0x2600cd,_0x2871fb,_0x3c3f34,_0x46602d,_0x5dceb2),{};let _0x1c9196=_0x5e5bd6[TestFrameworkConstants[_0x47f59b(0x276)]];!_0x1c9196&&(_0x1c9196={});!_0xb7bc18[_0x47f59b(0x28a)](_0x2a3b2d,_0x1c9196)&&(_0x1c9196[_0x2a3b2d]=[]);let _0x166bf0=_0x5e5bd6[TestFrameworkConstants[_0x47f59b(0x265)]];!_0x166bf0&&(_0x166bf0={});!_0xb7bc18['mMZWd'](_0x2a3b2d,_0x166bf0)&&(_0x166bf0[_0x2a3b2d]=[]);const _0x171bac={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x1c9196,[TestFrameworkConstants[_0x47f59b(0x265)]]:_0x166bf0},_0x27c98e={};_0x27c98e[_0x2871fb]=_0x171bac;const _0x40e402=_0x27c98e;if(_0xb7bc18[_0x47f59b(0x1ca)](_0x46602d,HookState['PRE'])){const _0x31ea60={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x5ae65b,[TestFrameworkConstants[_0x47f59b(0x21e)]]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0x3b4c64[_0x47f59b(0x25b)],[TestFrameworkConstants[_0x47f59b(0x230)]]:[],[TestFrameworkConstants[_0x47f59b(0x244)]]:_0x3b4c64['hook_type'],[TestFrameworkConstants[_0x47f59b(0x24a)]]:_0x27a501};_0x31ea60['key']=_0x2a3b2d;const _0x142db0=_0x31ea60;_0x1c9196[_0x2a3b2d]['push'](_0x142db0),_0x40e402[_0x2871fb][TestFrameworkConstants[_0x47f59b(0x1e9)]]=_0x2a3b2d,logger['debug'](_0x47f59b(0x1f5)+_0x2a3b2d+_0x47f59b(0x21d)+_0x142db0+_0x47f59b(0x255)+_0x5dceb2);}else{if(_0xb7bc18['FJlnD'](_0x46602d,HookState['POST'])){const _0x2efac5=_0x3b4c64['result'],_0x5a10f7=_0x1c9196[_0x2a3b2d]||[];logger[_0x47f59b(0x1fe)](_0x47f59b(0x25e)+_0x5a10f7+_0x47f59b(0x210)+_0x5dceb2);if(_0xb7bc18['tEnQr'](_0x5a10f7[_0x47f59b(0x1ce)],0x0)){const _0x551e4f=_0x5a10f7[_0x47f59b(0x241)]();_0xb7bc18[_0x47f59b(0x1f2)](_0x3b4c64['result'],_0xb7bc18[_0x47f59b(0x1ed)])&&_0x3b4c64[_0x47f59b(0x270)]?(_0x551e4f[TestFrameworkConstants[_0x47f59b(0x26b)]]=_0x3b4c64['failure_type']||_0xb7bc18[_0x47f59b(0x1c2)],_0x551e4f[TestFrameworkConstants[_0x47f59b(0x27b)]]=_0x3b4c64['failure_reason']||'',_0x551e4f[TestFrameworkConstants[_0x47f59b(0x1e8)]]=_0x3b4c64[_0x47f59b(0x270)]):_0x551e4f[TestFrameworkConstants[_0x47f59b(0x21e)]]=_0xb7bc18[_0x47f59b(0x235)];_0xb7bc18[_0x47f59b(0x219)](_0x2efac5,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x551e4f[TestFrameworkConstants[_0x47f59b(0x21e)]]=_0x2efac5);_0x551e4f[TestFrameworkConstants[_0x47f59b(0x20a)]]=_0x3b4c64[_0x47f59b(0x1eb)]||new Date()['toISOString'](),_0x551e4f[TestFrameworkConstants[_0x47f59b(0x24a)]]=_0x27a501;const _0x14d26b=_0x551e4f[TestFrameworkConstants[_0x47f59b(0x28d)]];!_0x166bf0[_0x2a3b2d]&&(_0x166bf0[_0x2a3b2d]=[]),_0x166bf0[_0x2a3b2d][_0x47f59b(0x1fa)](_0x551e4f),_0x40e402[_0x2871fb][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x2a3b2d;}}}return logger['debug'](_0x47f59b(0x238)+_0x3b4c64[_0x47f59b(0x22f)]+_0x47f59b(0x247)+_0x5ae65b+_0x47f59b(0x248)+_0x2871fb),_0x40e402;}[a90_0x4939d7(0x1c6)](_0x36405e){const _0x2ff0b2=a90_0x4939d7,_0x85c0a7={};_0x85c0a7[_0x2ff0b2(0x1d8)]='base64';const _0x31a078=_0x85c0a7;try{const _0x18ec13=_0x36405e[_0x2ff0b2(0x23a)]?_0x36405e[_0x2ff0b2(0x23a)]['id']:_0x36405e['hookData']['test_run_id'],_0x2349c5=_0x36405e[_0x2ff0b2(0x211)],_0x17b4c5=_0x2349c5[_0x2ff0b2(0x200)](),_0x9217f2=_0x2349c5['getAllData']()[_0x2ff0b2(0x217)](_0x18ec13);if(!_0x9217f2)return logger['debug'](_0x2ff0b2(0x1c1)+_0x18ec13),{};logger[_0x2ff0b2(0x1fe)](_0x2ff0b2(0x286)+_0x18ec13);const {[TestFrameworkConstants[_0x2ff0b2(0x24e)]]:_0x278846='',[TestFrameworkConstants[_0x2ff0b2(0x284)]]:_0x15697a='',[TestFrameworkConstants[_0x2ff0b2(0x25f)]]:_0x2a98b9='',[TestFrameworkConstants[_0x2ff0b2(0x225)]]:_0xf41199=''}=_0x9217f2,_0x4a4112=_0x2349c5[_0x2ff0b2(0x25c)]()['toString']()['split']('.')[0x1],_0x5f5dcb=_0x2349c5[_0x2ff0b2(0x1d3)]()[_0x2ff0b2(0x289)]()[_0x2ff0b2(0x26a)]('.')[0x1],_0x5af504=global?.[_0x2ff0b2(0x218)]??0x0,_0x2b3844=_0x2349c5[_0x2ff0b2(0x1f0)](),_0x1d139b=Buffer['from'](JSON['stringify'](_0x9217f2))[_0x2ff0b2(0x289)](_0x31a078['hzIQj']),_0x586cf4={'hash':_0x17b4c5[_0x2ff0b2(0x279)](),'threadId':_0x17b4c5[_0x2ff0b2(0x1e3)]()['toString'](),'processId':_0x17b4c5[_0x2ff0b2(0x283)]()[_0x2ff0b2(0x289)]()},_0x32cab3={};_0x32cab3[_0x2ff0b2(0x1e4)]=_0x5af504,_0x32cab3[_0x2ff0b2(0x1d2)]=_0x278846,_0x32cab3[_0x2ff0b2(0x1d9)]=_0x15697a,_0x32cab3[_0x2ff0b2(0x1ec)]=_0x4a4112,_0x32cab3[_0x2ff0b2(0x1c0)]=_0x5f5dcb,_0x32cab3[_0x2ff0b2(0x288)]=_0x2a98b9,_0x32cab3[_0x2ff0b2(0x203)]=_0xf41199,_0x32cab3[_0x2ff0b2(0x27c)]=_0x2b3844,_0x32cab3[_0x2ff0b2(0x220)]=_0x1d139b,_0x32cab3[_0x2ff0b2(0x1db)]=_0x586cf4;const _0x4d4b1d=_0x32cab3;return logger['debug'](_0x2ff0b2(0x1e7)+_0x18ec13+_0x2ff0b2(0x273)+_0x4a4112+_0x2ff0b2(0x1d7)+_0x5f5dcb),_0x4d4b1d;}catch(_0x13a257){return logger[_0x2ff0b2(0x21c)](_0x2ff0b2(0x1e5)+util['format'](_0x13a257)),{};}}async[a90_0x4939d7(0x251)](_0xecc4de,_0x34f91b,_0x2ddaa0){const _0x44040a=a90_0x4939d7,_0x29158f={'iwkhE':function(_0x594ea2,_0x31238d,_0x3fa8f7){return _0x594ea2(_0x31238d,_0x3fa8f7);},'kXSwC':function(_0xdd0b44,_0x5272f3){return _0xdd0b44===_0x5272f3;},'EkMGN':_0x44040a(0x274),'tBqya':function(_0x36150d,_0x50a21d){return _0x36150d/_0x50a21d;},'mEnhe':function(_0x377ae5,_0x13bfaf){return _0x377ae5<_0x13bfaf;},'FPEHY':function(_0x26adc6,_0xd90efc){return _0x26adc6*_0xd90efc;},'krmvZ':function(_0x51b88c,_0x41f08f){return _0x51b88c+_0x41f08f;},'EqlxH':_0x44040a(0x215)};try{const _0x2605f0=_0x2ddaa0[_0x44040a(0x234)],_0x290911=_0xecc4de[_0x44040a(0x25a)]()[_0x44040a(0x217)](_0x2605f0),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x308ded='',[TestFrameworkConstants[_0x44040a(0x284)]]:_0x45f9ed=''}=_0x290911,_0x37b9e1=TestInfo[_0x44040a(0x272)](_0x2605f0),_0x1eca55=TestInfo[_0x44040a(0x26f)](_0x2605f0)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x15a68d=_0x29158f[_0x44040a(0x1d0)](getMediaArtifactsLogs,_0x1eca55,_0xecc4de[_0x44040a(0x25a)]()[_0x44040a(0x217)](_0x2605f0)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x24dae9=(_0x37b9e1||[])['concat'](_0x15a68d||[]);if(!_0x24dae9||_0x29158f[_0x44040a(0x201)](_0x24dae9['length'],0x0)){logger['debug'](_0x29158f['EkMGN']);return;}const _0x15a8ef=0x28,_0x490e00=Math[_0x44040a(0x282)](_0x29158f[_0x44040a(0x1cd)](_0x24dae9[_0x44040a(0x1ce)],_0x15a8ef));for(let _0x20be9c=0x0;_0x29158f[_0x44040a(0x253)](_0x20be9c,_0x490e00);_0x20be9c++){const _0x52eb72=_0x29158f['FPEHY'](_0x20be9c,_0x15a8ef),_0x1f00c4=_0x29158f[_0x44040a(0x22e)](_0x52eb72,_0x15a8ef),_0x253ead=_0x24dae9[_0x44040a(0x242)](_0x52eb72,_0x1f00c4),_0x37fa64={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x253ead,'testFrameworkName':_0x308ded,'testFrameworkVersion':_0x45f9ed,'testFrameworkState':_0x34f91b['toString']()[_0x44040a(0x26a)]('.')[0x1]};logger[_0x44040a(0x1fe)](_0x44040a(0x26d)+_0x2605f0+'\x20batch\x20'+_0x29158f[_0x44040a(0x22e)](_0x20be9c,0x1)+'/'+_0x490e00+_0x44040a(0x226)+util[_0x44040a(0x245)](_0x37fa64));const _0x1166a8=await GrpcClient['getInstance']()[_0x44040a(0x214)](_0x37fa64);logger[_0x44040a(0x1fe)](_0x44040a(0x26d)+_0x2605f0+_0x44040a(0x222)+_0x29158f[_0x44040a(0x22e)](_0x20be9c,0x1)+'/'+_0x490e00+_0x44040a(0x1e2)+util[_0x44040a(0x245)](_0x1166a8));}}catch(_0x46cca1){logger[_0x44040a(0x21c)](_0x44040a(0x268)+util[_0x44040a(0x294)](_0x46cca1));}logger[_0x44040a(0x1fe)](_0x29158f[_0x44040a(0x207)]);}['storePendingHook'](_0x4bf750,_0x1e81c4,_0x175f23,_0x5c3dfa,_0x9bdee8){const _0x16b3d6=a90_0x4939d7,_0x19fe64={'testId':_0x1e81c4,'testFrameworkState':_0x175f23,'hookState':_0x5c3dfa,'args':_0x9bdee8,'timestamp':new Date()[_0x16b3d6(0x1d6)]()};_0x4bf750[_0x16b3d6(0x260)](_0x1e81c4,_0x19fe64),logger[_0x16b3d6(0x1fe)](_0x16b3d6(0x1fc)+_0x1e81c4+',\x20state:\x20'+_0x175f23+_0x16b3d6(0x22b)+_0x5c3dfa);}async[a90_0x4939d7(0x205)](_0x17ee74,_0x4fa4db){const _0x324541=a90_0x4939d7,_0x2f1650={};_0x2f1650[_0x324541(0x23e)]=function(_0x561547,_0x39cf51){return _0x561547>_0x39cf51;};const _0x65d1b0=_0x2f1650;if(!_0x17ee74['hasPendingHooks'](_0x4fa4db))return;const _0x299dea=_0x17ee74[_0x324541(0x264)](_0x4fa4db);logger[_0x324541(0x1fe)](_0x324541(0x243)+_0x299dea['length']+_0x324541(0x20e)+_0x4fa4db);for(const _0x4807f2 of _0x299dea){try{const _0x41531b=await this[_0x324541(0x1f4)](_0x17ee74,_0x4807f2['testFrameworkState'],_0x4807f2[_0x324541(0x1c0)],_0x4807f2['args']);_0x41531b&&_0x65d1b0[_0x324541(0x23e)](Object[_0x324541(0x280)](_0x41531b)[_0x324541(0x1ce)],0x0)&&_0x17ee74[_0x324541(0x1f7)](_0x41531b),await this['runHooks'](_0x17ee74,_0x4807f2[_0x324541(0x1ec)],_0x4807f2['hookState'],_0x4807f2[_0x324541(0x277)]);}catch(_0x42d59f){logger[_0x324541(0x21c)](_0x324541(0x223)+_0x4fa4db+_0x324541(0x206)+_0x42d59f);}}_0x17ee74[_0x324541(0x204)](_0x4fa4db),logger[_0x324541(0x1fe)]('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0x4fa4db);}}function a90_0x4364(){const _0x2de4a7=['finished_at','testFrameworkState','fVGUc','customRerunParam','KEY_TEST_RESULT_AT','getRef','\x20with\x20UUID:\x20','WVWRF','8004780Nsaybe','trackHookEvent','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','2050143XBOPIm','addMultipleEntries','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','KEY_TEST_FILE_PATH','push','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','Stored\x20pending\x20hook\x20for\x20testId:\x20','PRE','debug','trackEvent','getContext','kXSwC','GDPIS','endedAt','removePendingHooks','processPendingHooks',',\x20error:\x20','EqlxH','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','../TestInfo.js','KEY_EVENT_ENDED_AT','KEY_TEST_CODE','KEY_TEST_LOGS','testData','\x20pending\x20hooks\x20for\x20testId:\x20','resolveInstance','\x20and\x20args\x20=\x20','instance','result','./constants/testFrameworkConstants.js','logCreatedEvent','Cucumber\x20log\x20created\x20event','rerun_name','get','browserstackPlatformIndex','ILIxC','getTestUUID','222tZBeCf','error','\x20&\x20hook\x20=\x20','KEY_HOOK_RESULT','gSPuE','eventJson','./testFramework','\x20batch\x20','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','MmksP','KEY_TEST_ENDED_AT','\x20payload=','8OXuqqu','../state/hookState.js','getTestFrameworks','createContext',',\x20hookState:\x20','../instances/testFrameworkInstance.js','body','krmvZ','hook_type','KEY_HOOK_LOGS','3018LigaIM','../grpcClient','trackCucumberInstance','testUUID','UWtap','KEY_LOGS','RbOlp','Tracked\x20cucumber\x20hook\x20event:\x20','scopes','test','KEY_TEST_FAILURE_TYPE','TEST','location','BwoPr','KEY_TEST_ID','../instances/trackedInstance.js','pop','slice','Processing\x20','KEY_HOOK_NAME','inspect','../state/testFrameworkState.js','\x20with\x20id\x20','\x20for\x20test:\x20','passed','KEY_CUSTOM_TAGS','PlqqC','trackCucumberInstance:\x20saved\x20instance\x20contextId=','NyZtC','KEY_TEST_FRAMEWORK_NAME','failure_type','getTrackedInstance','sendLogCreatedEvent','failure_reason','mEnhe','Parsed\x20cucumber\x20test:\x20','\x20\x20and\x20args\x20=\x20','KEY_TEST_SCOPE','exports','util','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','getAllData','started_at','getCurrentTestState','setTrackedInstance','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','KEY_TEST_STARTED_AT','addPendingHook','../cliUtils.js','37315WhdohW','hyzlu','getPendingHooks','KEY_HOOKS_FINISHED','KEY_TEST_ATTACHMENTS','KEY_TEST_LOCATION','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','KEY_AUTOMATE_SESSION_NAME','split','KEY_HOOK_FAILURE_TYPE','1351713mtDCYY','sendLogCreatedEvent:\x20for\x20testId:\x20','failed','getTestDetails','failure_data','DYnpy','readLogObjects','\x20testState:\x20','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','KEY_TEST_SCOPES','KEY_HOOKS_STARTED','args',',\x20state=','getId','trackEvent:\x20unsupported\x20testFrameworkState=','KEY_HOOK_FAILURE_REASON','uuid','6907565fOdZOq','code','name','keys','parseCucumberTest','ceil','getProcessId','KEY_TEST_FRAMEWORK_VERSION','UnhandledError','createTestFrameworkEventPayload\x20testId:\x20','13044864PKhAYy','startedAt','toString','mMZWd','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','20OrTCsF','KEY_HOOK_ID','oMWBS','ZOjuk','4iiUuxt','KEY_TEST_RESULT','KEY_TEST_UUID','\x20with\x20result:\x20','format','hookState','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','iZGdv','NONE','PgWEs','test_run_id','createTestFrameworkEventPayload','getTestFrameworksVersions','KEY_TEST_FAILURE','runHooks','FJlnD','INIT_TEST','KEY_TEST_RERUN_NAME','tBqya','length','21keHfgd','iwkhE','ePeDf','testFrameworkName','getCurrentHookState','zdrIR','setTestDetails','toISOString','\x20hookState:\x20','hzIQj','testFrameworkVersion','meta','executionContext',',\x20storing\x20as\x20pending\x20hook','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','storePendingHook','hooks','parseCucumberTestResult','POST','\x20response=','getThreadId','platformIndex','Error\x20in\x20createTestFrameworkEventPayload:\x20','failure','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','KEY_HOOK_FAILURE','KEY_HOOK_LAST_STARTED','KEY_TEST_FAILURE_REASON'];a90_0x4364=function(){return _0x2de4a7;};return a90_0x4364();}module[a90_0x4939d7(0x257)]=CucumberTestFramework;
|