browserstack-node-sdk 1.53.2 → 1.53.3
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 +6 -4
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/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/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/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/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/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/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/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/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/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
|
-
function a68_0x5266(_0xf70146,_0x9fcc9b){const _0x4cd595=a68_0x4cd5();return a68_0x5266=function(_0x5266a2,_0x2c8998){_0x5266a2=_0x5266a2-0xda;let _0x1fe718=_0x4cd595[_0x5266a2];return _0x1fe718;},a68_0x5266(_0xf70146,_0x9fcc9b);}function a68_0x4cd5(){const _0x1b5e1f=['xAWaA','30hjQDrr','mergeObject','.tmp.','UZYbM','UYhQw','getHookRegistryKey','isArray','FipBH','pid','UuNsb','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','readdirSync','trim','data','getAutomationFrameworkDetail','kceyf','oASwi','automationFrameworkDetail','requestToUpdateCLI','../../helpers/performance/performance-tester.js','parse','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','getExistingCliPath','format','Binary\x20is\x20busy:\x20','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','yVHLE','0755','21TPSiKe','24068plGoRK','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','jsIeD','SDK_CLI_CHECK_UPDATE','isFile','bUmDq','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','rQSmY','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','BROWSERSTACK_BINARY_URL','platform','join','warn','TcWoS','getWritableDir','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','DUPvp','nbBob','testFrameworkDetail','getSdkVersion','../../helpers/helper','BROWSERSTACK_CLI_ENV','cwd','aPktP','ZLnxn','ZZDtI','soWQE','sDbhf','xPkWL','lazyEntries','open','util','yfPXd','skipSessionStatus','LvNlR','../../helpers/performance/constants','isDirectory','../utils/apiUtilityMethods.js','eBnBW','BROWSERSTACK_FILES_DIR','downloadFileStream','getCliDir','entries','split','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','binary-','4|2|0|1|3','url','isDevelopmentEnv','entry','stringify','Current\x20CLI\x20Path\x20Found:\x20','statSync','.browserstack','unlink','getTestFrameworkDetail','path','GET','XibjP','1904008MRgKCk','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','createWriteStream','info','nBccA','filePath','WBtUg','aFwHU','setupCliPath','../../../package.json','MDUOx','openReadStream','YDFSA','1027074XeIVQX','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','matchHookRegex','./instances/testFrameworkInstance.js','./state/hookState.js','csXhS','zETXP','\x20already\x20exists','GXElc','RDhpH','rerfi','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','fileName','getCLIParamsForDevEnv','isBinaryBusy','testContextOptions','Configuring\x20Cli\x20path.','./framework/constants/testFrameworkConstants.js','VQhPb','EXDEV','Resolved\x20binary\x20path:\x20','qVDgS','jftBq','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','once','5324640qFyZfF','YqbsZ','AOovl','existsSync','qjCEg','Setting\x20required\x20permissions\x20to\x20','Ynecx','tqTMp','SZZEr',',\x20automationFramework=','follow-redirects','BZgTB','env','644478oOHgTc','zcxsS','../../helpers/test-observability/utils.js','./state/automationFrameworkState.js','1483416VEHSHA','FtsYi','SDK_CLI_BIN_PATH','node','listen','pHbmc','reduce','iYrDY','CIZwg','closeSync','close','child_process','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','mdOHG','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','mtime','mAKfK','iOqxp','ZWbpW','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','kMAUC','nnPtI','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','DJCcT','error','shouldSkipSessionStatus','.sock','HgBcf','includes','Jhach','response\x20','length','VtbDH','downloaded_file_','krOul','yauzl','copyFileSync','uzWON','startsWith','ajSxG','checkAndUpdateCli','AuyUj','SDK_CLI_DOWNLOAD','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','readEntry','worker_threads','\x20version','13390614xptKzL','VqOgV','test','SHELL_EXECUTE_ERROR','cli_version','lXgAB','ZOJXo','tmpdir','message','openSync','object','map','618WmxTti','runShellCommand','debug','downloadLatestBinary','concat','OPNvZ','UoNYl','bSjiR','Failed\x20to\x20delete\x20zip\x20file:\x20','version','uQGfT','PHyqm','pipe','shouldSkipSessionName','start','getSdkLanguage','end','arch','../../helpers/classLogger.js','vmoNR','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'];a68_0x4cd5=function(){return _0x1b5e1f;};return a68_0x4cd5();}const a68_0x1f3e04=a68_0x5266;(function(_0x2dcefa,_0x374c95){const _0x21c3f1=a68_0x5266,_0xe2a3fb=_0x2dcefa();while(!![]){try{const _0x40c961=-parseInt(_0x21c3f1(0x115))/0x1+-parseInt(_0x21c3f1(0xeb))/0x2+parseInt(_0x21c3f1(0x151))/0x3*(-parseInt(_0x21c3f1(0x184))/0x4)+-parseInt(_0x21c3f1(0x104))/0x5+parseInt(_0x21c3f1(0x111))/0x6+parseInt(_0x21c3f1(0x183))/0x7*(parseInt(_0x21c3f1(0xde))/0x8)+-parseInt(_0x21c3f1(0x145))/0x9*(-parseInt(_0x21c3f1(0x167))/0xa);if(_0x40c961===_0x374c95)break;else _0xe2a3fb['push'](_0xe2a3fb['shift']());}catch(_0x4624bc){_0xe2a3fb['push'](_0xe2a3fb['shift']());}}}(a68_0x4cd5,0xf0213));const fs=require('fs'),os=require('os'),url=require('url'),path=require(a68_0x1f3e04(0xdb)),{exec}=require(a68_0x1f3e04(0x120)),{https}=require(a68_0x1f3e04(0x10e)),yauzl=require(a68_0x1f3e04(0x139)),util=require(a68_0x1f3e04(0x1a3)),{getFrameworkVersion}=require(a68_0x1f3e04(0x113)),{threadId}=require(a68_0x1f3e04(0x143)),PerformanceTester=require(a68_0x1f3e04(0x17a)),{EVENTS:PerformanceEvents}=require(a68_0x1f3e04(0x1a7)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a68_0x1f3e04(0x198)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require(a68_0x1f3e04(0x163)),TestFrameworkInstance=require(a68_0x1f3e04(0xee)),HookState=require(a68_0x1f3e04(0xef)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require(a68_0x1f3e04(0x114)),TestFrameworkConstants=require(a68_0x1f3e04(0xfc)),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a68_0x1f3e04(0x1a9));class CLIUtils{[a68_0x1f3e04(0x178)]={};[a68_0x1f3e04(0x196)]={};static[a68_0x1f3e04(0x1b4)](){const _0x331cf6=a68_0x1f3e04,_0x24a0ac={};_0x24a0ac[_0x331cf6(0xe5)]=function(_0x5305dc,_0x2b9170){return _0x5305dc===_0x2b9170;},_0x24a0ac[_0x331cf6(0x138)]='development';const _0xf49969=_0x24a0ac;return _0xf49969[_0x331cf6(0xe5)](process[_0x331cf6(0x110)][_0x331cf6(0x199)],_0xf49969[_0x331cf6(0x138)]);}static[a68_0x1f3e04(0xf8)](){const _0x19a95a=a68_0x1f3e04,_0x4190d0={};return _0x4190d0['id']=process[_0x19a95a(0x110)][_0x19a95a(0x199)],_0x4190d0[_0x19a95a(0x119)]='unix:/tmp/sdk-platform-'+process[_0x19a95a(0x110)][_0x19a95a(0x199)]+_0x19a95a(0x130),_0x4190d0;}static[a68_0x1f3e04(0x197)](){const _0x5b9af2=a68_0x1f3e04,_0x44eda0={'YqbsZ':function(_0x42415c,_0x4adace){return _0x42415c(_0x4adace);},'UYhQw':_0x5b9af2(0xe7)};return _0x44eda0[_0x5b9af2(0x105)](require,_0x44eda0[_0x5b9af2(0x16b)])[_0x5b9af2(0x15a)];}static[a68_0x1f3e04(0x160)](){const _0x4bb57a=a68_0x1f3e04,_0x2c5a90={};_0x2c5a90[_0x4bb57a(0x12a)]=_0x4bb57a(0x118);const _0x19a5eb=_0x2c5a90;return _0x19a5eb[_0x4bb57a(0x12a)];}static async[a68_0x1f3e04(0xe6)](_0x1094b8){const _0x577553=a68_0x1f3e04,_0x4cd1a6={'VqOgV':_0x577553(0xfb),'Ynecx':function(_0x2a5eec,_0xa0fc6d){return _0x2a5eec(_0xa0fc6d);},'kbIhM':_0x577553(0x102)};logger[_0x577553(0x153)](_0x4cd1a6[_0x577553(0x146)]);const _0x502b61=process[_0x577553(0x110)][_0x577553(0x117)];if(!_0x4cd1a6[_0x577553(0x10a)](isNullOrEmpty,_0x502b61))return logger[_0x577553(0x153)]('Development\x20Cli\x20Path:\x20'+_0x502b61),_0x502b61;try{const _0x5afb33=this['getCliDir']();if(_0x4cd1a6[_0x577553(0x10a)](isNullOrEmpty,_0x5afb33))throw new Error(_0x4cd1a6['kbIhM']);const _0x2f52e2=this['getExistingCliPath'](_0x5afb33),_0x185ad5=await this['checkAndUpdateCli'](_0x2f52e2,_0x5afb33,_0x1094b8);return logger[_0x577553(0x153)](_0x577553(0xff)+_0x185ad5),_0x185ad5;}catch(_0xd6ec3e){logger[_0x577553(0x153)](_0x577553(0x193)+util['format'](_0xd6ec3e));}return null;}static async[a68_0x1f3e04(0x13e)](_0x4c7b97,_0x329929,_0x3c94eb){const _0x18c93b=a68_0x1f3e04,_0x4bc465={'OPNvZ':function(_0x491c88){return _0x491c88();},'Psjbu':function(_0x46e821,_0x12c47c){return _0x46e821(_0x12c47c);},'ZfzGB':function(_0x22fedf,_0x26c332,_0x43f962){return _0x22fedf(_0x26c332,_0x43f962);},'VtbDH':_0x18c93b(0x174),'SZZEr':_0x18c93b(0x1b3),'AOovl':function(_0x1d50d3,_0x4d7f28){return _0x1d50d3(_0x4d7f28);},'RPRup':function(_0x2e1cd8,_0x3e8c86,_0xeeeade){return _0x2e1cd8(_0x3e8c86,_0xeeeade);}};PerformanceTester[_0x18c93b(0x15f)](PerformanceEvents[_0x18c93b(0x187)]),logger[_0x18c93b(0xe1)](_0x18c93b(0x1b7)+_0x4c7b97);const _0x48f363=_0x4bc465[_0x18c93b(0x156)](getHostInfo),_0x5073e4={'sdk_version':CLIUtils[_0x18c93b(0x197)](),'os':_0x48f363[_0x18c93b(0x18e)],'os_arch':_0x48f363[_0x18c93b(0x162)],'cli_version':'0','sdk_language':this[_0x18c93b(0x160)]()};!_0x4bc465['Psjbu'](isNullOrEmpty,_0x4c7b97)&&(_0x5073e4[_0x18c93b(0x149)]=await this[_0x18c93b(0x152)](_0x4c7b97+_0x18c93b(0x144)));const _0x4bbef5=await this[_0x18c93b(0x179)](_0x5073e4,_0x3c94eb);process[_0x18c93b(0x110)][_0x18c93b(0x18d)]&&(logger[_0x18c93b(0xe1)](_0x18c93b(0x17c)+process[_0x18c93b(0x110)][_0x18c93b(0x18d)]),_0x4bbef5['data']['url']=process[_0x18c93b(0x110)][_0x18c93b(0x18d)]);if(_0x4bc465['ZfzGB'](nestedKeyValue,_0x4bbef5,[_0x4bc465[_0x18c93b(0x136)],_0x4bc465['SZZEr']])){logger['debug'](_0x18c93b(0xf6)+_0x5073e4[_0x18c93b(0x149)]);if(!_0x4bc465[_0x18c93b(0x106)](isNullOrEmpty,_0x4c7b97)&&this[_0x18c93b(0xf9)](_0x4c7b97))return logger['warn'](_0x18c93b(0x12b)+_0x4c7b97),PerformanceTester['end'](PerformanceEvents[_0x18c93b(0x187)]),_0x4c7b97;const _0x32c999=await this['downloadLatestBinary'](_0x4bc465['RPRup'](nestedKeyValue,_0x4bbef5,[_0x4bc465[_0x18c93b(0x136)],_0x4bc465[_0x18c93b(0x10c)]]),_0x329929);return PerformanceTester[_0x18c93b(0x161)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x32c999;}return PerformanceTester[_0x18c93b(0x161)](PerformanceEvents[_0x18c93b(0x187)]),_0x4c7b97;}static[a68_0x1f3e04(0x1ad)](){const _0x1f2d49=a68_0x1f3e04,_0x1ff82d={'uzWON':function(_0x2416d4,_0x6a2ad8){return _0x2416d4(_0x6a2ad8);},'ydtcE':_0x1f2d49(0x102),'WBtUg':'cli','oASwi':function(_0x281a11,_0x280c60){return _0x281a11(_0x280c60);}},_0x48eba2=this[_0x1f2d49(0x192)]();try{if(_0x1ff82d[_0x1f2d49(0x13b)](isNullOrEmpty,_0x48eba2))throw new Error(_0x1ff82d['ydtcE']);const _0x44ae27=path[_0x1f2d49(0x18f)](_0x48eba2,_0x1ff82d[_0x1f2d49(0xe4)]);return!fs[_0x1f2d49(0x107)](_0x44ae27)&&_0x1ff82d[_0x1f2d49(0x177)](createDir,_0x44ae27),_0x44ae27;}catch(_0x408c85){logger[_0x1f2d49(0x153)]('Error\x20in\x20getting\x20writable\x20directory,\x20writableDir='+util[_0x1f2d49(0x17e)](_0x408c85));}}static[a68_0x1f3e04(0x192)](){const _0x4cc14c=a68_0x1f3e04,_0x266dd1={'iYrDY':_0x4cc14c(0x1b9),'qGdLw':function(_0x47f180,_0x177db0){return _0x47f180(_0x177db0);},'mAKfK':function(_0x22acd1,_0xe623cd){return _0x22acd1(_0xe623cd);},'jsIeD':function(_0x2d9344,_0x1df1f4){return _0x2d9344(_0x1df1f4);},'kceyf':function(_0x75ee73,_0x8fca62){return _0x75ee73(_0x8fca62);}},_0x408227=[process[_0x4cc14c(0x110)][_0x4cc14c(0x1ab)],path[_0x4cc14c(0x18f)](os['homedir'](),_0x266dd1['iYrDY']),path[_0x4cc14c(0x18f)](os[_0x4cc14c(0x14c)](),_0x266dd1[_0x4cc14c(0x11c)])];for(const _0x478fb8 of _0x408227){if(_0x266dd1['qGdLw'](isNullOrEmpty,_0x478fb8))continue;try{if(fs[_0x4cc14c(0x107)](_0x478fb8)){logger['debug']('Folder\x20'+_0x478fb8+_0x4cc14c(0xf2));if(!_0x266dd1[_0x4cc14c(0x125)](isModifiable,_0x478fb8)){logger[_0x4cc14c(0x153)](_0x4cc14c(0x109)+_0x478fb8);const _0x37060c=_0x266dd1[_0x4cc14c(0x186)](setReadWriteExecuteAccess,_0x478fb8);if(!_0x266dd1['kceyf'](isTrue,_0x37060c)){logger[_0x4cc14c(0x190)](_0x4cc14c(0x141)+_0x478fb8);continue;}}}else{logger[_0x4cc14c(0x153)]('Folder\x20does\x20not\x20exist:\x20'+_0x478fb8),_0x266dd1[_0x4cc14c(0x186)](createDir,_0x478fb8),logger[_0x4cc14c(0x153)](_0x4cc14c(0x109)+_0x478fb8);const _0x32dd89=_0x266dd1[_0x4cc14c(0x176)](setReadWriteExecuteAccess,_0x478fb8);!_0x266dd1[_0x4cc14c(0x125)](isTrue,_0x32dd89)&&logger[_0x4cc14c(0x190)](_0x4cc14c(0x141)+_0x478fb8);}return _0x478fb8;}catch(_0x5e2f03){logger['error'](_0x4cc14c(0xdf)+util[_0x4cc14c(0x17e)](_0x5e2f03));}}return null;}static[a68_0x1f3e04(0x17d)](_0x5ecfbf){const _0x26be66=a68_0x1f3e04,_0x27b0d3={};_0x27b0d3[_0x26be66(0xe2)]=function(_0x4748c8,_0x133225){return _0x4748c8>_0x133225;},_0x27b0d3[_0x26be66(0xf4)]=function(_0x24504f,_0x619e05){return _0x24504f>_0x619e05;};const _0x1758c7=_0x27b0d3;try{if(!fs[_0x26be66(0x107)](_0x5ecfbf)||!fs[_0x26be66(0x1b8)](_0x5ecfbf)[_0x26be66(0x1a8)]())return'';const _0x5ee22f=fs[_0x26be66(0x172)](_0x5ecfbf)[_0x26be66(0x150)](_0x258fe8=>path['join'](_0x5ecfbf,_0x258fe8))['filter'](_0x549d8b=>fs['statSync'](_0x549d8b)[_0x26be66(0x188)]()&&path['basename'](_0x549d8b)[_0x26be66(0x13c)](_0x26be66(0x1b1)));if(_0x1758c7[_0x26be66(0xf4)](_0x5ee22f[_0x26be66(0x135)],0x0)){const _0x424de1=_0x5ee22f[_0x26be66(0x150)](_0x3f64a2=>({'filePath':_0x3f64a2,'mtime':fs['statSync'](_0x3f64a2)[_0x26be66(0x124)]}))[_0x26be66(0x11b)]((_0x366a42,_0xaf5ffb)=>{const _0x446e33=_0x26be66;if(!_0x366a42||!_0x366a42['mtime'])return _0xaf5ffb;if(_0x1758c7[_0x446e33(0xe2)](_0xaf5ffb['mtime'],_0x366a42[_0x446e33(0x124)]))return _0xaf5ffb;return _0x366a42;},{});return _0x424de1?_0x424de1[_0x26be66(0xe3)]:'';}return'';}catch(_0x3bb5da){return logger[_0x26be66(0x12e)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x26be66(0x17e)](_0x3bb5da)),'';}}static [a68_0x1f3e04(0x179)]=async(_0x18648d,_0x5faf6a)=>{const _0x245d14=a68_0x1f3e04,_0x44e683={'MuFjK':function(_0x2a376e,_0x1c4b2b,_0x70a5d4,_0x38ecda,_0x481490){return _0x2a376e(_0x1c4b2b,_0x70a5d4,_0x38ecda,_0x481490);},'tqTMp':_0x245d14(0xdc)},_0x4141fe={};_0x4141fe['qs']=_0x18648d;const _0x41a542=await _0x44e683['MuFjK'](nodeRequest,_0x44e683[_0x245d14(0x10b)],UPDATED_CLI_ENDPOINT,_0x4141fe,_0x5faf6a);return logger[_0x245d14(0x153)](_0x245d14(0x134)+JSON[_0x245d14(0x1b6)](_0x41a542)),_0x41a542;};static[a68_0x1f3e04(0xf9)](_0x3494b0){const _0x4b000a=a68_0x1f3e04;try{const _0x192b72=fs[_0x4b000a(0x14e)](_0x3494b0,'r+');return fs[_0x4b000a(0x11e)](_0x192b72),![];}catch(_0x2b264b){if(BINARY_BUSY_ERROR_CODES[_0x4b000a(0x132)](_0x2b264b['code']))return logger['debug'](_0x4b000a(0x17f)+_0x3494b0),!![];return logger['debug'](_0x4b000a(0x123)+_0x2b264b[_0x4b000a(0x14d)]),![];}}static[a68_0x1f3e04(0x152)](_0x45b629,_0x3bcd72=''){const _0x378b46=a68_0x1f3e04,_0x12305d={'bSjiR':_0x378b46(0x15a),'zETXP':function(_0x46a5ba,_0x69012e){return _0x46a5ba(_0x69012e);},'mdOHG':function(_0x22ab78,_0xf6b084){return _0x22ab78(_0xf6b084);},'UZYbM':_0x378b46(0x148),'DUPvp':function(_0x2b8339,_0x4cf6c2){return _0x2b8339(_0x4cf6c2);},'nbBob':function(_0x490457,_0x154ce8,_0x4893f7,_0x60d992){return _0x490457(_0x154ce8,_0x4893f7,_0x60d992);},'zcxsS':'error'};return new Promise((_0x5c1c6f,_0x3673f9)=>{const _0x4f9140=_0x378b46,_0x3160b6={'ZWbpW':_0x12305d[_0x4f9140(0x158)],'csXhS':function(_0x4452cc,_0x3fbe1d){const _0xa9dfbe=_0x4f9140;return _0x12305d[_0xa9dfbe(0xf1)](_0x4452cc,_0x3fbe1d);},'UuNsb':function(_0x3910b7,_0x3d32c7){const _0x5bdfa5=_0x4f9140;return _0x12305d[_0x5bdfa5(0x122)](_0x3910b7,_0x3d32c7);},'XibjP':_0x12305d[_0x4f9140(0x16a)],'eBnBW':function(_0x5703d7,_0xb080ce){const _0x2538a4=_0x4f9140;return _0x12305d[_0x2538a4(0x194)](_0x5703d7,_0xb080ce);}},_0x428d59={};_0x428d59[_0x4f9140(0x19a)]=_0x3bcd72,_0x428d59['timeout']=0x1388;const _0x2cdd64=_0x12305d[_0x4f9140(0x195)](exec,_0x45b629,_0x428d59,(_0x21a927,_0x41512c,_0x54e351)=>{const _0xe5dfe7=_0x4f9140;if(_0x21a927){if(_0x45b629[_0xe5dfe7(0x132)](_0x3160b6[_0xe5dfe7(0x127)])&&(_0x41512c[_0xe5dfe7(0x173)]()||_0x54e351[_0xe5dfe7(0x173)]())){const _0x535261=_0x41512c[_0xe5dfe7(0x173)]()||_0x54e351[_0xe5dfe7(0x173)]();logger[_0xe5dfe7(0x153)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x535261+'\x22'),_0x3160b6[_0xe5dfe7(0xf0)](_0x5c1c6f,_0x535261);}else _0x3160b6[_0xe5dfe7(0x170)](_0x5c1c6f,_0x54e351[_0xe5dfe7(0x173)]()||_0x3160b6[_0xe5dfe7(0xdd)]);}else logger[_0xe5dfe7(0x153)]('Resolving\x20with\x20stdout:\x20\x22'+_0x41512c[_0xe5dfe7(0x173)]()+'\x22'),_0x3160b6['csXhS'](_0x5c1c6f,_0x41512c[_0xe5dfe7(0x173)]());});_0x2cdd64['on'](_0x12305d[_0x4f9140(0x112)],()=>{const _0xb6c913=_0x4f9140;_0x3160b6[_0xb6c913(0x1aa)](_0x5c1c6f,_0x3160b6['XibjP']);});});}static [a68_0x1f3e04(0x154)]=async(_0x1ffa02,_0x3e5bc1)=>{const _0x220d30=a68_0x1f3e04,_0x25ef3d={'TiCIx':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','yfPXd':function(_0x1a2d8a,_0x3dc99a){return _0x1a2d8a(_0x3dc99a);},'sDbhf':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','AuyUj':'error','qVDgS':function(_0x22fa48,_0x28b3f3){return _0x22fa48(_0x28b3f3);}};PerformanceTester['start'](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0x220d30(0x153)]('Downloading\x20SDK\x20binary\x20from:\x20'+_0x1ffa02);try{const _0x290e2d=url['parse'](_0x1ffa02),_0x56fd44=path['join'](_0x3e5bc1,_0x220d30(0x137)+process[_0x220d30(0x16f)]+'.zip'),_0x3e149f=fs[_0x220d30(0xe0)](_0x56fd44);return new Promise((_0x29e5f0,_0x4a9f3e)=>{const _0x1f8374=_0x220d30,_0x4b0179={'QtsBq':_0x25ef3d['TiCIx'],'soWQE':function(_0x4be288,_0x53ecc2){const _0x26d204=a68_0x5266;return _0x25ef3d[_0x26d204(0x1a4)](_0x4be288,_0x53ecc2);},'wxotn':_0x25ef3d[_0x1f8374(0x19f)],'CIZwg':_0x25ef3d[_0x1f8374(0x13f)],'MDUOx':function(_0x93b5ff,_0x24932c){const _0x183ff7=_0x1f8374;return _0x25ef3d[_0x183ff7(0x100)](_0x93b5ff,_0x24932c);}};https['get'](_0x290e2d,function(_0x2605fe){const _0x257961=_0x1f8374,_0x380803={'xAWaA':_0x4b0179['wxotn'],'FipBH':function(_0x113ed0,_0x26fced){const _0x2f076=a68_0x5266;return _0x4b0179[_0x2f076(0x19e)](_0x113ed0,_0x26fced);},'ZZDtI':function(_0x4d5b0b,_0x5e8259){const _0x40702c=a68_0x5266;return _0x4b0179[_0x40702c(0x19e)](_0x4d5b0b,_0x5e8259);}},_0x36980a=null;_0x2605fe['pipe'](_0x3e149f),_0x2605fe['on'](_0x4b0179[_0x257961(0x11d)],function(_0x24c7e9){const _0x42146a=_0x257961;logger[_0x42146a(0x12e)](util['format'](_0x4b0179['QtsBq'],_0x24c7e9)),PerformanceTester[_0x42146a(0x161)](PerformanceEvents[_0x42146a(0x140)],![],util['format'](_0x24c7e9)),_0x4b0179[_0x42146a(0x19e)](_0x4a9f3e,_0x24c7e9);}),_0x3e149f['on'](_0x4b0179['CIZwg'],function(_0x23fc31){const _0x417d06=_0x257961;logger[_0x417d06(0x12e)](util[_0x417d06(0x17e)](_0x380803[_0x417d06(0x166)],_0x23fc31)),PerformanceTester[_0x417d06(0x161)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x417d06(0x17e)](_0x23fc31)),_0x380803[_0x417d06(0x16e)](_0x4a9f3e,_0x23fc31);}),CLIUtils[_0x257961(0x1ac)](_0x3e149f,_0x36980a,_0x56fd44,_0x3e5bc1,_0x5cf510=>{const _0x122fb1=_0x257961;PerformanceTester[_0x122fb1(0x161)](PerformanceEvents[_0x122fb1(0x140)]),_0x380803[_0x122fb1(0x16e)](_0x29e5f0,_0x5cf510);},_0x557b9c=>{const _0x23cf9e=_0x257961;PerformanceTester['end'](PerformanceEvents[_0x23cf9e(0x140)],![],util[_0x23cf9e(0x17e)](_0x557b9c)),_0x380803[_0x23cf9e(0x19d)](_0x4a9f3e,_0x557b9c);});})['on'](_0x25ef3d[_0x1f8374(0x13f)],function(_0x200e9e){const _0x3ed0e4=_0x1f8374;logger['error'](_0x3ed0e4(0x18c)+util[_0x3ed0e4(0x17e)](_0x200e9e)),PerformanceTester[_0x3ed0e4(0x161)](PerformanceEvents[_0x3ed0e4(0x140)],![],util[_0x3ed0e4(0x17e)](_0x200e9e)),_0x4b0179[_0x3ed0e4(0xe8)](_0x4a9f3e,_0x200e9e);});});}catch(_0x32e672){PerformanceTester[_0x220d30(0x161)](PerformanceEvents[_0x220d30(0x140)],![],util[_0x220d30(0x17e)](_0x32e672)),logger[_0x220d30(0x153)](_0x220d30(0xec)+util[_0x220d30(0x17e)](_0x32e672));}};static[a68_0x1f3e04(0x1ac)](_0x246f4a,_0x3adb81,_0x154755,_0x39dfdb,_0x364187,_0x4da27b){const _0x31ccfc=a68_0x1f3e04,_0x3fc0b0={'lXgAB':function(_0x4e326e,_0x508b50){return _0x4e326e(_0x508b50);},'YDFSA':_0x31ccfc(0x11f),'ZLnxn':_0x31ccfc(0x161),'rQSmY':function(_0x400d62,_0x5a3d57){return _0x400d62!==_0x5a3d57;},'yVHLE':function(_0x55370e,_0xe0bc30){return _0x55370e(_0xe0bc30);},'bUmDq':_0x31ccfc(0x12e),'lfcDZ':function(_0x19f739,_0x27a6bc){return _0x19f739!==_0x27a6bc;},'pHbmc':_0x31ccfc(0xfe),'vmoNR':function(_0x3ad8c2,_0x4d64b2){return _0x3ad8c2(_0x4d64b2);},'jftBq':function(_0x1e8bce,_0x219cfe){return _0x1e8bce(_0x219cfe);},'uHXuK':_0x31ccfc(0x1b5),'aPktP':_0x31ccfc(0x182)};_0x246f4a['on'](_0x3fc0b0['YDFSA'],function(){const _0x42fb20=_0x31ccfc,_0x1e68d7={};_0x1e68d7['VQhPb']=_0x3fc0b0[_0x42fb20(0x19b)];const _0x24ca26=_0x1e68d7,_0x128e1c={};_0x128e1c[_0x42fb20(0x1a1)]=!![],yauzl[_0x42fb20(0x1a2)](_0x154755,_0x128e1c,function(_0x378f1,_0x166789){const _0x2b6d0c=_0x42fb20,_0x109612={'TcWoS':function(_0x4fde60,_0x56a3bd){return _0x3fc0b0['lXgAB'](_0x4fde60,_0x56a3bd);},'GXElc':_0x3fc0b0[_0x2b6d0c(0xea)],'OSNEG':function(_0x53b585,_0x9c5bd){const _0x4f7eba=_0x2b6d0c;return _0x3fc0b0[_0x4f7eba(0x14a)](_0x53b585,_0x9c5bd);},'ajSxG':_0x3fc0b0[_0x2b6d0c(0x19c)],'FtsYi':function(_0x52e6de,_0x1c8771){const _0x4036a5=_0x2b6d0c;return _0x3fc0b0[_0x4036a5(0x18b)](_0x52e6de,_0x1c8771);},'HgBcf':function(_0x10419d,_0x15d01f){return _0x3fc0b0['yVHLE'](_0x10419d,_0x15d01f);},'kMAUC':_0x3fc0b0[_0x2b6d0c(0x189)],'rQWcS':function(_0x124af0,_0x544506){return _0x3fc0b0['lfcDZ'](_0x124af0,_0x544506);},'DJCcT':_0x3fc0b0[_0x2b6d0c(0x11a)],'BZgTB':function(_0x5c11f1,_0x51eeaf){const _0x3ec51a=_0x2b6d0c;return _0x3fc0b0[_0x3ec51a(0x164)](_0x5c11f1,_0x51eeaf);},'lgpuy':function(_0x2c6127,_0xa168c){const _0x7bf947=_0x2b6d0c;return _0x3fc0b0[_0x7bf947(0x101)](_0x2c6127,_0xa168c);}};if(_0x378f1){_0x3fc0b0[_0x2b6d0c(0x181)](_0x4da27b,_0x378f1);return;}_0x166789[_0x2b6d0c(0x142)](),_0x166789['on'](_0x3fc0b0['uHXuK'],_0x2c51b5=>{const _0x3c34fe=_0x2b6d0c,_0x40a07b={'Jhach':_0x109612[_0x3c34fe(0xf3)],'iOqxp':function(_0x31af6a,_0x7b3a91){return _0x109612['OSNEG'](_0x31af6a,_0x7b3a91);},'xPkWL':_0x109612[_0x3c34fe(0x13d)]};if(/\/$/[_0x3c34fe(0x147)](_0x2c51b5[_0x3c34fe(0xf7)])){_0x166789[_0x3c34fe(0x142)]();return;}!_0x3adb81&&(_0x3adb81=_0x2c51b5[_0x3c34fe(0xf7)]);if(_0x109612[_0x3c34fe(0x116)](_0x2c51b5[_0x3c34fe(0xf7)],_0x3adb81))_0x166789[_0x3c34fe(0x142)]();else{const _0x4bc1fe=_0x2c51b5[_0x3c34fe(0xf7)],_0x45b3a3=path[_0x3c34fe(0x18f)](_0x39dfdb,_0x4bc1fe+_0x3c34fe(0x169)+process[_0x3c34fe(0x16f)]);let _0x4af336;try{_0x4af336=fs['createWriteStream'](_0x45b3a3);}catch(_0xefb682){if(BINARY_BUSY_ERROR_CODES[_0x3c34fe(0x132)](_0xefb682['code'])){const _0x1315e9=path[_0x3c34fe(0x18f)](_0x39dfdb,_0x4bc1fe);if(fs[_0x3c34fe(0x107)](_0x1315e9)){logger['warn'](_0x3c34fe(0x185)+_0x4bc1fe),fs['unlink'](_0x154755,_0x197c94=>{const _0x56792b=_0x3c34fe;_0x197c94&&logger[_0x56792b(0x190)](_0x56792b(0x159)+_0x154755);}),_0x109612['OSNEG'](_0x364187,_0x1315e9);return;}logger[_0x3c34fe(0x190)](_0x3c34fe(0x171)+_0x4bc1fe);}_0x109612[_0x3c34fe(0x131)](_0x4da27b,_0xefb682);return;}_0x4af336['on'](_0x109612[_0x3c34fe(0x129)],_0x5b56c3=>{const _0x2609f1=_0x3c34fe;if(BINARY_BUSY_ERROR_CODES[_0x2609f1(0x132)](_0x5b56c3['code'])){const _0x5e1ebb=path['join'](_0x39dfdb,_0x4bc1fe);_0x4af336[_0x2609f1(0x11f)](),fs['existsSync'](_0x5e1ebb)?(logger[_0x2609f1(0x190)](_0x2609f1(0x165)+_0x5b56c3[_0x2609f1(0x14d)]),_0x166789['close'](),fs['unlink'](_0x154755,_0x22213d=>{const _0x5410a8=_0x2609f1;_0x22213d&&logger['warn'](_0x5410a8(0x159)+_0x154755);}),_0x109612['TcWoS'](_0x364187,_0x5e1ebb)):(logger[_0x2609f1(0x190)](_0x2609f1(0x180)+_0x5b56c3[_0x2609f1(0x14d)]),fs[_0x2609f1(0x1ba)](_0x45b3a3,()=>{}),_0x109612[_0x2609f1(0x191)](_0x4da27b,_0x5b56c3));}else fs[_0x2609f1(0x1ba)](_0x45b3a3,()=>{}),_0x109612[_0x2609f1(0x191)](_0x4da27b,_0x5b56c3);}),_0x166789[_0x3c34fe(0xe9)](_0x2c51b5,function(_0x212a9f,_0x4a1703){const _0x55226e=_0x3c34fe;if(_0x212a9f){fs[_0x55226e(0x1ba)](_0x45b3a3,()=>{}),_0x40a07b[_0x55226e(0x126)](_0x4da27b,_0x212a9f);return;}_0x4a1703['on'](_0x40a07b[_0x55226e(0x1a0)],function(){const _0x552e50=_0x55226e;_0x4af336[_0x552e50(0x161)](),_0x4af336['on'](_0x40a07b[_0x552e50(0x133)],function(){_0x166789['readEntry']();});}),_0x4a1703[_0x55226e(0x15d)](_0x4af336);});}}),_0x166789['on'](_0x3fc0b0[_0x2b6d0c(0x189)],_0x118e21=>{_0x109612['OSNEG'](_0x4da27b,_0x118e21);}),_0x166789[_0x2b6d0c(0x103)](_0x3fc0b0[_0x2b6d0c(0x19c)],()=>{const _0x12fe3c=_0x2b6d0c;fs['unlink'](_0x154755,_0x4d37ec=>{const _0x2021d7=a68_0x5266;_0x4d37ec&&logger[_0x2021d7(0x190)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x154755);});const _0x39a3d0=path['join'](_0x39dfdb,_0x3adb81+'.tmp.'+process[_0x12fe3c(0x16f)]),_0x192509=path[_0x12fe3c(0x18f)](_0x39dfdb,_0x3adb81);fs['chmod'](_0x39a3d0,_0x24ca26[_0x12fe3c(0xfd)],function(_0x428702){const _0x5decfe=_0x12fe3c,_0x2c4d11={'NTmpR':function(_0x5c6abc,_0x2621d9){return _0x109612['rQWcS'](_0x5c6abc,_0x2621d9);},'ZOJXo':_0x109612[_0x5decfe(0x12d)],'UoNYl':function(_0x2d3b08,_0x249c8a){const _0x5576a0=_0x5decfe;return _0x109612[_0x5576a0(0x10f)](_0x2d3b08,_0x249c8a);},'LvNlR':function(_0x34fb00,_0x5f0634){return _0x109612['lgpuy'](_0x34fb00,_0x5f0634);}};if(_0x428702){_0x166789[_0x5decfe(0x11f)](),fs['unlink'](_0x39a3d0,()=>{}),_0x109612[_0x5decfe(0x191)](_0x4da27b,_0x428702);return;}fs['rename'](_0x39a3d0,_0x192509,function(_0xf58d16){const _0x1d60ac=_0x5decfe;if(_0xf58d16){if(_0x2c4d11['NTmpR'](_0xf58d16['code'],_0x2c4d11[_0x1d60ac(0x14b)])){_0x166789[_0x1d60ac(0x11f)](),fs[_0x1d60ac(0x1ba)](_0x39a3d0,()=>{}),_0x2c4d11[_0x1d60ac(0x157)](_0x4da27b,_0xf58d16);return;}logger[_0x1d60ac(0x190)](_0x1d60ac(0x128)+_0xf58d16[_0x1d60ac(0x14d)]);try{fs[_0x1d60ac(0x13a)](_0x39a3d0,_0x192509);}catch(_0xe133b6){_0x166789[_0x1d60ac(0x11f)](),fs[_0x1d60ac(0x1ba)](_0x39a3d0,()=>{}),_0x2c4d11[_0x1d60ac(0x1a6)](_0x4da27b,_0xe133b6);return;}fs[_0x1d60ac(0x1ba)](_0x39a3d0,_0x30bd80=>{const _0x5bfbb0=_0x1d60ac;_0x30bd80&&logger[_0x5bfbb0(0x190)](_0x5bfbb0(0x18a)+_0x30bd80[_0x5bfbb0(0x14d)]);});}_0x166789[_0x1d60ac(0x11f)](),_0x2c4d11[_0x1d60ac(0x157)](_0x364187,_0x192509);});});});});});}static[a68_0x1f3e04(0xda)](){const _0x3b34ac=a68_0x1f3e04;if(process['env'][_0x3b34ac(0x121)])return JSON[_0x3b34ac(0x17b)](process[_0x3b34ac(0x110)][_0x3b34ac(0x121)]);return this[_0x3b34ac(0x196)];}static[a68_0x1f3e04(0x175)](){const _0x1540ff=a68_0x1f3e04;if(process[_0x1540ff(0x110)][_0x1540ff(0x1b0)])return JSON[_0x1540ff(0x17b)](process[_0x1540ff(0x110)][_0x1540ff(0x1b0)]);return this[_0x1540ff(0x178)];}static['setFrameworkDetail'](_0x4323d7,_0x2fe85d){const _0x5aef91=a68_0x1f3e04,_0x5923ab={'htKyq':_0x5aef91(0x1b2),'gVLqG':function(_0xbb9799,_0xfcbe3f){return _0xbb9799(_0xfcbe3f);},'qjCEg':function(_0x4fd497,_0x34e939){return _0x4fd497||_0x34e939;}},_0x20d560=_0x5923ab['htKyq'][_0x5aef91(0x1af)]('|');let _0x4c8477=0x0;while(!![]){switch(_0x20d560[_0x4c8477++]){case'0':this[_0x5aef91(0x178)]={'name':_0x2fe85d,'version':_0x5923ab['gVLqG'](getFrameworkVersion,_0x2fe85d)};continue;case'1':process[_0x5aef91(0x110)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON['stringify'](this[_0x5aef91(0x178)]);continue;case'2':this[_0x5aef91(0x196)]={'name':_0x4323d7,'version':{[_0x4323d7]:_0x5923ab['gVLqG'](getFrameworkVersion,_0x4323d7)}};continue;case'3':process['env'][_0x5aef91(0x121)]=JSON[_0x5aef91(0x1b6)](this[_0x5aef91(0x196)]);continue;case'4':_0x5923ab[_0x5aef91(0x108)](!_0x4323d7,!_0x2fe85d)&&logger['debug'](_0x5aef91(0x12c)+_0x4323d7+_0x5aef91(0x10d)+_0x2fe85d);continue;}break;}}static[a68_0x1f3e04(0x16c)](_0x3b67e4,_0x5a7412){return _0x3b67e4+':'+_0x5a7412;}static['getCurrentInstanceName'](){const _0xc57184=a68_0x1f3e04;return process[_0xc57184(0x16f)]+':'+threadId;}static[a68_0x1f3e04(0x15e)](_0x3cf69e){const _0x56812f=a68_0x1f3e04;if(_0x3cf69e[_0x56812f(0xfa)]&&_0x3cf69e[_0x56812f(0xfa)]['skipSessionName'])return!![];return![];}static[a68_0x1f3e04(0x12f)](_0x498ec7){const _0x36fd20=a68_0x1f3e04;if(_0x498ec7['testContextOptions']&&_0x498ec7[_0x36fd20(0xfa)][_0x36fd20(0x1a5)])return!![];return![];}static[a68_0x1f3e04(0xed)](_0x5ca942){const _0x11092f=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x11092f['test'](_0x5ca942);}static[a68_0x1f3e04(0x168)](_0x2482c4,_0x3a379b){const _0x193d5d=a68_0x1f3e04,_0x211fd1={};_0x211fd1[_0x193d5d(0xf5)]=function(_0x492d60,_0x2519cf){return _0x492d60!==_0x2519cf;},_0x211fd1[_0x193d5d(0x15c)]=function(_0x396022,_0x50ee03){return _0x396022===_0x50ee03;},_0x211fd1['uQGfT']=_0x193d5d(0x14f);const _0x11aaa9=_0x211fd1;for(const [_0x5a72f7,_0x35ae88]of Object[_0x193d5d(0x1ae)](_0x3a379b)){if(_0x11aaa9[_0x193d5d(0xf5)](_0x35ae88,null)&&_0x11aaa9[_0x193d5d(0x15c)](typeof _0x35ae88,_0x11aaa9[_0x193d5d(0x15b)])&&!Array[_0x193d5d(0x16d)](_0x35ae88))_0x2482c4[_0x5a72f7]=this['mergeObject'](_0x2482c4[_0x5a72f7]||{},_0x35ae88);else Array['isArray'](_0x35ae88)?_0x2482c4[_0x5a72f7]=(_0x2482c4[_0x5a72f7]||[])[_0x193d5d(0x155)](_0x35ae88):_0x2482c4[_0x5a72f7]=_0x35ae88;}return _0x2482c4;}}module['exports']=CLIUtils;
|
|
1
|
+
const a68_0x25f646=a68_0x4953;(function(_0x5e8aae,_0x2987ca){const _0x5e9334=a68_0x4953,_0xe8509=_0x5e8aae();while(!![]){try{const _0x1fa323=-parseInt(_0x5e9334(0x1ec))/0x1*(parseInt(_0x5e9334(0x204))/0x2)+parseInt(_0x5e9334(0x1e5))/0x3*(-parseInt(_0x5e9334(0x1ca))/0x4)+-parseInt(_0x5e9334(0x1ab))/0x5+parseInt(_0x5e9334(0x16d))/0x6*(parseInt(_0x5e9334(0x1b7))/0x7)+-parseInt(_0x5e9334(0x19c))/0x8*(-parseInt(_0x5e9334(0x1ad))/0x9)+-parseInt(_0x5e9334(0x20f))/0xa*(parseInt(_0x5e9334(0x1d3))/0xb)+-parseInt(_0x5e9334(0x187))/0xc*(-parseInt(_0x5e9334(0x173))/0xd);if(_0x1fa323===_0x2987ca)break;else _0xe8509['push'](_0xe8509['shift']());}catch(_0x3b112c){_0xe8509['push'](_0xe8509['shift']());}}}(a68_0x51d9,0xa394d));function a68_0x4953(_0x5e8399,_0x4a6d95){const _0x51d9e9=a68_0x51d9();return a68_0x4953=function(_0x4953a9,_0x4ffe68){_0x4953a9=_0x4953a9-0x15e;let _0x295484=_0x51d9e9[_0x4953a9];return _0x295484;},a68_0x4953(_0x5e8399,_0x4a6d95);}const fs=require('fs'),os=require('os'),url=require(a68_0x25f646(0x1c3)),path=require(a68_0x25f646(0x230)),{exec}=require(a68_0x25f646(0x168)),{https}=require(a68_0x25f646(0x1d4)),yauzl=require(a68_0x25f646(0x1cb)),util=require('util'),{getFrameworkVersion}=require(a68_0x25f646(0x1b5)),{threadId}=require('worker_threads'),PerformanceTester=require(a68_0x25f646(0x1ae)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a68_0x25f646(0x1d8)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a68_0x25f646(0x18e)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a68_0x25f646(0x220)),{createClassLogger}=require(a68_0x25f646(0x1f6)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require('./state/hookState.js'),TestFrameworkState=require(a68_0x25f646(0x180)),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a68_0x25f646(0x225)),logger=createClassLogger(a68_0x25f646(0x209)),{getBStackAPIUrl}=require(a68_0x25f646(0x21e));function a68_0x51d9(){const _0xf470de=['1265810LmSgYo','error','MxqnT','getSdkVersion','unix:/tmp/sdk-platform-','CLIUtils','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','warn','SDK_CLI_CHECK_UPDATE','gqJmx','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','7090ueBfvf','LzFjr','setFrameworkDetail','map','parse','AnTWx','wlqCO','WHpLo','runShellCommand','BROWSERSTACK_CLI_ENV','TIlPe','lazyEntries','shouldSkipSessionName','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','isDevelopmentEnv','../utils/apiUtilityMethods.js','hJTBX','../utils/constants','hYgXz','homedir','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','Configuring\x20Cli\x20path.','./framework/constants/testFrameworkConstants.js','psHKS','mwkxm','FBlxo','ukBlz','env','PILaO','BROWSERSTACK_BINARY_URL','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','Fsifr','fileName','path','WzPfI','open','split','EmpcY','pid','cli_version','trim','ZAPJV','gZhrR','LOfql','BROWSERSTACK_FILES_DIR','unlink','cwd','child_process','.zip','getHookRegistryKey','LdATh','code','12nGIINf','readEntry','YDwqG','tRNGs','tmpdir','getWritableDir','654875QohogT','basename','SHELL_EXECUTE_ERROR',',\x20automationFramework=','KknkB','lutgz','copyFileSync','length','node','getCliDir','NuAIU','wXXLA','BGeTJ','./state/testFrameworkState.js','rename','\x20already\x20exists','entry','mergeObject','OoVIt','dSTvw','588bRtjbq','HWoXm','luIcB','Folder\x20does\x20not\x20exist:\x20','response\x20','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','message','../../helpers/helper','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','isArray','join','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','checkAndUpdateCli','close','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','LlIVi','wPNBi','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','eSheH','LHonF','includes','8KLEtPW','statSync','vSNcm','skWgW','VRUvO','end','poUsH','Failed\x20to\x20delete\x20zip\x20file:\x20','automationFrameworkDetail','createWriteStream','get','SDK_CLI_DOWNLOAD','dZRGJ','debug','gpgVC','6051160RulTxB','timeout','3796317BslGsa','../../helpers/performance/performance-tester.js','YErqD','Apeml','data','GET','dwYVg','skipSessionName','../../helpers/test-observability/utils.js','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','405608jiDbci','NrOxn','.browserstack','iNrJP','SDK_CLI_BIN_PATH','Folder\x20','existsSync','DcdFC','shouldSkipSessionStatus','closeSync','Development\x20Cli\x20Path:\x20','.tmp.','url','sQMBk','info','matchHookRegex','downloadLatestBinary','getExistingCliPath','UVgIh','184724zkzSAs','yauzl','reduce','vcNmB','SsUVO','CGxRb','downloadFileStream','isBinaryBusy','UOwQm','1199ykEGtv','follow-redirects','nmBCJ','DXmKF','HCtYk','../../helpers/utilities','test','mtime','yaJGe','mAgVU','WvrGt','soTgB','WzGtG','format','object','DMjgR','filePath','FYClO','27IYmDvm','HzWqd','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','ZexdY','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','version','Setting\x20required\x20permissions\x20to\x20','1ftNFXi','Grpgb','requestToUpdateCLI','exports','\x20version','vAEAY','start','WAIub','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','stringify','../../helpers/classLogger.js','once','nrDxa','Resolved\x20binary\x20path:\x20','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','dUsvH','testFrameworkDetail','cuedS','testContextOptions','ULVsl','CLI\x20version\x20found\x20despite\x20error:\x20\x22','wZpRO','setupCliPath','getAutomationFrameworkDetail'];a68_0x51d9=function(){return _0xf470de;};return a68_0x51d9();}class CLIUtils{[a68_0x25f646(0x1a4)]={};[a68_0x25f646(0x1fc)]={};static[a68_0x25f646(0x21d)](){const _0x3d94c4=a68_0x25f646,_0x286535={};_0x286535[_0x3d94c4(0x1af)]=function(_0x4a221e,_0x4ae3c2){return _0x4a221e===_0x4ae3c2;},_0x286535[_0x3d94c4(0x1b3)]='development';const _0x11f6e3=_0x286535;return _0x11f6e3[_0x3d94c4(0x1af)](process[_0x3d94c4(0x22a)][_0x3d94c4(0x218)],_0x11f6e3[_0x3d94c4(0x1b3)]);}static['getCLIParamsForDevEnv'](){const _0x3248d1=a68_0x25f646,_0xfc13ac={};return _0xfc13ac['id']=process[_0x3248d1(0x22a)][_0x3248d1(0x218)],_0xfc13ac['listen']=_0x3248d1(0x208)+process[_0x3248d1(0x22a)][_0x3248d1(0x218)]+'.sock',_0xfc13ac;}static[a68_0x25f646(0x207)](){const _0xdc1fb6=a68_0x25f646,_0x4bc2f2={'wZpRO':function(_0x3286df,_0x11dc7a){return _0x3286df(_0x11dc7a);},'LzFjr':'../../../package.json'};return _0x4bc2f2[_0xdc1fb6(0x201)](require,_0x4bc2f2[_0xdc1fb6(0x210)])[_0xdc1fb6(0x1ea)];}static['getSdkLanguage'](){const _0x4f9af5=a68_0x25f646,_0x228dd2={};_0x228dd2[_0x4f9af5(0x1be)]=_0x4f9af5(0x17b);const _0x63ab6c=_0x228dd2;return _0x63ab6c[_0x4f9af5(0x1be)];}static async[a68_0x25f646(0x202)](_0x213178){const _0x369584=a68_0x25f646,_0x3d7ec0={'kgJqd':_0x369584(0x224),'hYgXz':function(_0x5eea6e,_0x2fb438){return _0x5eea6e(_0x2fb438);},'TIlPe':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x369584(0x1a9)](_0x3d7ec0['kgJqd']);const _0x2085bb=process[_0x369584(0x22a)][_0x369584(0x1bb)];if(!_0x3d7ec0[_0x369584(0x221)](isNullOrEmpty,_0x2085bb))return logger['debug'](_0x369584(0x1c1)+_0x2085bb),_0x2085bb;try{const _0x4d528e=this[_0x369584(0x17c)]();if(_0x3d7ec0[_0x369584(0x221)](isNullOrEmpty,_0x4d528e))throw new Error(_0x3d7ec0[_0x369584(0x219)]);const _0x15e5d9=this[_0x369584(0x1c8)](_0x4d528e),_0x3cd66b=await this[_0x369584(0x193)](_0x15e5d9,_0x4d528e,_0x213178);return logger[_0x369584(0x1a9)](_0x369584(0x1f9)+_0x3cd66b),_0x3cd66b;}catch(_0x44f198){logger[_0x369584(0x1a9)](_0x369584(0x18c)+util[_0x369584(0x1e0)](_0x44f198));}return null;}static async['checkAndUpdateCli'](_0x149d8f,_0x1dc2de,_0x3aa9dc){const _0x294c7e=a68_0x25f646,_0x16801b={'poUsH':function(_0xa43d90){return _0xa43d90();},'dUsvH':function(_0x3a3edc,_0x2c3441){return _0x3a3edc(_0x2c3441);},'CGxRb':function(_0x2408f7,_0x2b82d0,_0x3c542f){return _0x2408f7(_0x2b82d0,_0x3c542f);},'LdATh':'data','WAIub':_0x294c7e(0x1c3),'NrOxn':function(_0x2c51f8,_0x383a3b,_0x483aab){return _0x2c51f8(_0x383a3b,_0x483aab);}};PerformanceTester['start'](PerformanceEvents[_0x294c7e(0x20c)]),logger[_0x294c7e(0x1c5)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x149d8f);const _0x43c829=_0x16801b[_0x294c7e(0x1a2)](getHostInfo),_0x281329={'sdk_version':CLIUtils[_0x294c7e(0x207)](),'os':_0x43c829['platform'],'os_arch':_0x43c829['arch'],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x16801b[_0x294c7e(0x1fb)](isNullOrEmpty,_0x149d8f)&&(_0x281329[_0x294c7e(0x160)]=await this[_0x294c7e(0x217)](_0x149d8f+_0x294c7e(0x1f0)));const _0x458025=await this[_0x294c7e(0x1ee)](_0x281329,_0x3aa9dc);process['env'][_0x294c7e(0x22c)]&&(logger[_0x294c7e(0x1c5)](_0x294c7e(0x195)+process[_0x294c7e(0x22a)][_0x294c7e(0x22c)]),_0x458025[_0x294c7e(0x1b1)][_0x294c7e(0x1c3)]=process[_0x294c7e(0x22a)]['BROWSERSTACK_BINARY_URL']);if(_0x16801b[_0x294c7e(0x1cf)](nestedKeyValue,_0x458025,[_0x16801b[_0x294c7e(0x16b)],_0x16801b[_0x294c7e(0x1f3)]])){logger['debug'](_0x294c7e(0x18f)+_0x281329['cli_version']);if(!_0x16801b[_0x294c7e(0x1fb)](isNullOrEmpty,_0x149d8f)&&this['isBinaryBusy'](_0x149d8f))return logger[_0x294c7e(0x20b)]('Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20'+_0x149d8f),PerformanceTester['end'](PerformanceEvents[_0x294c7e(0x20c)]),_0x149d8f;const _0x5f5904=await this['downloadLatestBinary'](_0x16801b[_0x294c7e(0x1b8)](nestedKeyValue,_0x458025,[_0x16801b['LdATh'],_0x16801b['WAIub']]),_0x1dc2de);return PerformanceTester['end'](PerformanceEvents[_0x294c7e(0x20c)]),_0x5f5904;}return PerformanceTester[_0x294c7e(0x1a1)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x149d8f;}static['getCliDir'](){const _0x25c571=a68_0x25f646,_0x36c013={'Apeml':function(_0x27f55b,_0x37a214){return _0x27f55b(_0x37a214);},'dSTvw':_0x25c571(0x1e9),'ZAPJV':'cli','eSheH':function(_0x3d47fb,_0x2ef925){return _0x3d47fb(_0x2ef925);}},_0x324552=this[_0x25c571(0x172)]();try{if(_0x36c013[_0x25c571(0x1b0)](isNullOrEmpty,_0x324552))throw new Error(_0x36c013[_0x25c571(0x186)]);const _0x2e299f=path[_0x25c571(0x191)](_0x324552,_0x36c013[_0x25c571(0x162)]);return!fs[_0x25c571(0x1bd)](_0x2e299f)&&_0x36c013[_0x25c571(0x199)](createDir,_0x2e299f),_0x2e299f;}catch(_0xc2e54d){logger['debug'](_0x25c571(0x223)+util[_0x25c571(0x1e0)](_0xc2e54d));}}static[a68_0x25f646(0x172)](){const _0x345c2f=a68_0x25f646,_0x242297={'BGeTJ':_0x345c2f(0x1b9),'gZhrR':function(_0x47c6db,_0x457249){return _0x47c6db(_0x457249);},'gqJmx':function(_0x2662ac,_0x4b4edd){return _0x2662ac(_0x4b4edd);},'FipNp':function(_0x1ce84b,_0x273202){return _0x1ce84b(_0x273202);},'ULVsl':function(_0x2d9ccb,_0x4a4052){return _0x2d9ccb(_0x4a4052);}},_0x50becc=[process[_0x345c2f(0x22a)][_0x345c2f(0x165)],path[_0x345c2f(0x191)](os[_0x345c2f(0x222)](),_0x242297[_0x345c2f(0x17f)]),path[_0x345c2f(0x191)](os[_0x345c2f(0x171)](),_0x242297[_0x345c2f(0x17f)])];for(const _0x2b04c1 of _0x50becc){if(_0x242297[_0x345c2f(0x163)](isNullOrEmpty,_0x2b04c1))continue;try{if(fs[_0x345c2f(0x1bd)](_0x2b04c1)){logger[_0x345c2f(0x1a9)](_0x345c2f(0x1bc)+_0x2b04c1+_0x345c2f(0x182));if(!_0x242297[_0x345c2f(0x20d)](isModifiable,_0x2b04c1)){logger[_0x345c2f(0x1a9)](_0x345c2f(0x1eb)+_0x2b04c1);const _0x42fcec=_0x242297[_0x345c2f(0x20d)](setReadWriteExecuteAccess,_0x2b04c1);if(!_0x242297['gZhrR'](isTrue,_0x42fcec)){logger[_0x345c2f(0x20b)](_0x345c2f(0x1e7)+_0x2b04c1);continue;}}}else{logger[_0x345c2f(0x1a9)](_0x345c2f(0x18a)+_0x2b04c1),_0x242297['FipNp'](createDir,_0x2b04c1),logger['debug'](_0x345c2f(0x1eb)+_0x2b04c1);const _0x4f1e45=_0x242297[_0x345c2f(0x1ff)](setReadWriteExecuteAccess,_0x2b04c1);!_0x242297['ULVsl'](isTrue,_0x4f1e45)&&logger[_0x345c2f(0x20b)](_0x345c2f(0x1e7)+_0x2b04c1);}return _0x2b04c1;}catch(_0x39d592){logger[_0x345c2f(0x205)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x345c2f(0x1e0)](_0x39d592));}}return null;}static[a68_0x25f646(0x1c8)](_0x551bfd){const _0x5e309f=a68_0x25f646,_0x4cec39={};_0x4cec39[_0x5e309f(0x1db)]=function(_0x2da2ec,_0xd033af){return _0x2da2ec>_0xd033af;};const _0x1542f8=_0x4cec39;try{if(!fs[_0x5e309f(0x1bd)](_0x551bfd)||!fs[_0x5e309f(0x19d)](_0x551bfd)['isDirectory']())return'';const _0x406337=fs['readdirSync'](_0x551bfd)[_0x5e309f(0x212)](_0x13d166=>path[_0x5e309f(0x191)](_0x551bfd,_0x13d166))['filter'](_0x1ac045=>fs['statSync'](_0x1ac045)['isFile']()&&path[_0x5e309f(0x174)](_0x1ac045)['startsWith']('binary-'));if(_0x1542f8[_0x5e309f(0x1db)](_0x406337[_0x5e309f(0x17a)],0x0)){const _0x380968=_0x406337[_0x5e309f(0x212)](_0x46c056=>({'filePath':_0x46c056,'mtime':fs[_0x5e309f(0x19d)](_0x46c056)[_0x5e309f(0x1da)]}))[_0x5e309f(0x1cc)]((_0x28d904,_0x3867dc)=>{const _0x13ad51=_0x5e309f;if(!_0x28d904||!_0x28d904[_0x13ad51(0x1da)])return _0x3867dc;if(_0x1542f8[_0x13ad51(0x1db)](_0x3867dc[_0x13ad51(0x1da)],_0x28d904[_0x13ad51(0x1da)]))return _0x3867dc;return _0x28d904;},{});return _0x380968?_0x380968[_0x5e309f(0x1e3)]:'';}return'';}catch(_0x35eef9){return logger['error']('Error\x20while\x20reading\x20CLI\x20path:\x20'+util['format'](_0x35eef9)),'';}}static [a68_0x25f646(0x1ee)]=async(_0x108755,_0x569ab7)=>{const _0x4c2b48=a68_0x25f646,_0xc09e1={'WvrGt':function(_0x7c692d,_0x3a55bf,_0x36dd6c,_0x28ba32,_0x3aae26){return _0x7c692d(_0x3a55bf,_0x36dd6c,_0x28ba32,_0x3aae26);},'skWgW':_0x4c2b48(0x1b2)},_0x44d28f={};_0x44d28f['qs']=_0x108755;const _0x2c4788=await _0xc09e1[_0x4c2b48(0x1dd)](nodeRequest,_0xc09e1[_0x4c2b48(0x19f)],UPDATED_CLI_ENDPOINT,_0x44d28f,_0x569ab7);return logger[_0x4c2b48(0x1a9)](_0x4c2b48(0x18b)+JSON[_0x4c2b48(0x1f5)](_0x2c4788)),_0x2c4788;};static[a68_0x25f646(0x1d1)](_0x1eb46d){const _0x2c7927=a68_0x25f646;try{const _0x1716f8=fs['openSync'](_0x1eb46d,'r+');return fs[_0x2c7927(0x1c0)](_0x1716f8),![];}catch(_0x436489){if(BINARY_BUSY_ERROR_CODES[_0x2c7927(0x19b)](_0x436489[_0x2c7927(0x16c)]))return logger[_0x2c7927(0x1a9)]('Binary\x20is\x20busy:\x20'+_0x1eb46d),!![];return logger[_0x2c7927(0x1a9)](_0x2c7927(0x22d)+_0x436489[_0x2c7927(0x18d)]),![];}}static[a68_0x25f646(0x217)](_0x328299,_0x54b633=''){const _0x58bd0b=a68_0x25f646,_0x156ff5={'mwkxm':function(_0x3799ea,_0x107dcf){return _0x3799ea(_0x107dcf);},'soTgB':_0x58bd0b(0x175),'lseFo':'version','luIcB':function(_0xc9b1ec,_0x83eb15){return _0xc9b1ec(_0x83eb15);},'FBlxo':function(_0x1d0bab,_0x2a5794,_0x1c6a60,_0x4f70e6){return _0x1d0bab(_0x2a5794,_0x1c6a60,_0x4f70e6);},'VRUvO':'error'};return new Promise((_0x5d6e17,_0x1216d1)=>{const _0x45ffe2=_0x58bd0b,_0x53ca23={'wlqCO':_0x156ff5['lseFo'],'NuAIU':function(_0x23496c,_0x31a4e1){const _0x5678e5=a68_0x4953;return _0x156ff5[_0x5678e5(0x227)](_0x23496c,_0x31a4e1);},'WzPfI':function(_0x2b6c53,_0x136a84){const _0x416c18=a68_0x4953;return _0x156ff5[_0x416c18(0x189)](_0x2b6c53,_0x136a84);},'Fsifr':_0x156ff5[_0x45ffe2(0x1de)]},_0x30cd63={};_0x30cd63[_0x45ffe2(0x167)]=_0x54b633,_0x30cd63[_0x45ffe2(0x1ac)]=0x1388;const _0x325926=_0x156ff5[_0x45ffe2(0x228)](exec,_0x328299,_0x30cd63,(_0x2f4767,_0x59cacb,_0x1e478e)=>{const _0x1481b0=_0x45ffe2;if(_0x2f4767){if(_0x328299[_0x1481b0(0x19b)](_0x53ca23[_0x1481b0(0x215)])&&(_0x59cacb[_0x1481b0(0x161)]()||_0x1e478e['trim']())){const _0x3416fd=_0x59cacb[_0x1481b0(0x161)]()||_0x1e478e[_0x1481b0(0x161)]();logger['debug'](_0x1481b0(0x200)+_0x3416fd+'\x22'),_0x53ca23[_0x1481b0(0x17d)](_0x5d6e17,_0x3416fd);}else _0x53ca23[_0x1481b0(0x231)](_0x5d6e17,_0x1e478e[_0x1481b0(0x161)]()||_0x53ca23[_0x1481b0(0x22e)]);}else logger[_0x1481b0(0x1a9)]('Resolving\x20with\x20stdout:\x20\x22'+_0x59cacb[_0x1481b0(0x161)]()+'\x22'),_0x53ca23[_0x1481b0(0x17d)](_0x5d6e17,_0x59cacb[_0x1481b0(0x161)]());});_0x325926['on'](_0x156ff5[_0x45ffe2(0x1a0)],()=>{const _0x437ef3=_0x45ffe2;_0x156ff5[_0x437ef3(0x227)](_0x5d6e17,_0x156ff5['soTgB']);});});}static [a68_0x25f646(0x1c7)]=async(_0x457ce9,_0x26d834)=>{const _0x5cc922=a68_0x25f646,_0x4953d9={'UVgIh':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','ukBlz':function(_0x2aea79,_0x504945){return _0x2aea79(_0x504945);},'WHpLo':_0x5cc922(0x205),'dZRGJ':_0x5cc922(0x1f4)};PerformanceTester[_0x5cc922(0x1f2)](PerformanceEvents[_0x5cc922(0x1a7)]),logger['debug']('Downloading\x20SDK\x20binary\x20from:\x20'+_0x457ce9);try{const _0x58ae3b=url[_0x5cc922(0x213)](_0x457ce9),_0x2eabb6=path['join'](_0x26d834,'downloaded_file_'+process['pid']+_0x5cc922(0x169)),_0x243578=fs[_0x5cc922(0x1a5)](_0x2eabb6);return new Promise((_0x351cf8,_0xbe0dca)=>{const _0x5c8e69=_0x5cc922,_0x200910={'cuedS':_0x4953d9[_0x5c8e69(0x1a8)],'DMjgR':function(_0x3bba91,_0x4f3b92){const _0x48b82b=_0x5c8e69;return _0x4953d9[_0x48b82b(0x229)](_0x3bba91,_0x4f3b92);}};https[_0x5c8e69(0x1a6)](_0x58ae3b,function(_0x512033){const _0x5d9451=_0x5c8e69,_0x746f4d={'Nnonp':_0x4953d9[_0x5d9451(0x1c9)],'tRNGs':function(_0x276715,_0x39d968){return _0x4953d9['ukBlz'](_0x276715,_0x39d968);}},_0x50f530=null;_0x512033['pipe'](_0x243578),_0x512033['on'](_0x4953d9[_0x5d9451(0x216)],function(_0x35da29){const _0x329882=_0x5d9451;logger[_0x329882(0x205)](util[_0x329882(0x1e0)](_0x200910[_0x329882(0x1fd)],_0x35da29)),PerformanceTester['end'](PerformanceEvents[_0x329882(0x1a7)],![],util[_0x329882(0x1e0)](_0x35da29)),_0x200910[_0x329882(0x1e2)](_0xbe0dca,_0x35da29);}),_0x243578['on'](_0x4953d9['WHpLo'],function(_0x413b0a){const _0x3b1ab7=_0x5d9451;logger[_0x3b1ab7(0x205)](util[_0x3b1ab7(0x1e0)](_0x746f4d['Nnonp'],_0x413b0a)),PerformanceTester[_0x3b1ab7(0x1a1)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x3b1ab7(0x1e0)](_0x413b0a)),_0x746f4d[_0x3b1ab7(0x170)](_0xbe0dca,_0x413b0a);}),CLIUtils[_0x5d9451(0x1d0)](_0x243578,_0x50f530,_0x2eabb6,_0x26d834,_0xcfc6e8=>{const _0x4e42ec=_0x5d9451;PerformanceTester[_0x4e42ec(0x1a1)](PerformanceEvents[_0x4e42ec(0x1a7)]),_0x200910['DMjgR'](_0x351cf8,_0xcfc6e8);},_0x1ae06f=>{const _0x1bc936=_0x5d9451;PerformanceTester['end'](PerformanceEvents[_0x1bc936(0x1a7)],![],util[_0x1bc936(0x1e0)](_0x1ae06f)),_0x200910[_0x1bc936(0x1e2)](_0xbe0dca,_0x1ae06f);});})['on'](_0x4953d9[_0x5c8e69(0x216)],function(_0x20d598){const _0xda7cba=_0x5c8e69;logger[_0xda7cba(0x205)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util['format'](_0x20d598)),PerformanceTester[_0xda7cba(0x1a1)](PerformanceEvents[_0xda7cba(0x1a7)],![],util['format'](_0x20d598)),_0x4953d9['ukBlz'](_0xbe0dca,_0x20d598);});});}catch(_0x259498){PerformanceTester[_0x5cc922(0x1a1)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x5cc922(0x1e0)](_0x259498)),logger['debug'](_0x5cc922(0x20e)+util[_0x5cc922(0x1e0)](_0x259498));}};static[a68_0x25f646(0x1d0)](_0x196cc0,_0x156516,_0x677fe6,_0x1c482e,_0x45ebed,_0x5261a1){const _0x4dec86=a68_0x25f646,_0xf765c7={'KknkB':_0x4dec86(0x194),'OoVIt':function(_0x271eab,_0x25c32e){return _0x271eab(_0x25c32e);},'VXytd':_0x4dec86(0x1a1),'psHKS':function(_0x5e5363,_0x1cb064){return _0x5e5363!==_0x1cb064;},'HCtYk':'error','SsUVO':function(_0x56c009,_0x5c7ef6){return _0x56c009(_0x5c7ef6);},'sVpZU':'EXDEV','nrDxa':'0755','vAEAY':_0x4dec86(0x183)};_0x196cc0['on'](_0xf765c7[_0x4dec86(0x177)],function(){const _0x394172=_0x4dec86,_0x580ac5={'iNrJP':_0xf765c7[_0x394172(0x177)],'LOfql':function(_0x31c830,_0x6533de){const _0x502f10=_0x394172;return _0xf765c7[_0x502f10(0x185)](_0x31c830,_0x6533de);},'wPNBi':_0xf765c7['VXytd'],'rDvML':function(_0x377389,_0x5c9d4e){const _0x320e8e=_0x394172;return _0xf765c7[_0x320e8e(0x226)](_0x377389,_0x5c9d4e);},'PILaO':function(_0x4d97ab,_0x1048b3){const _0x503583=_0x394172;return _0xf765c7[_0x503583(0x185)](_0x4d97ab,_0x1048b3);},'UOwQm':_0xf765c7[_0x394172(0x1d7)],'hJTBX':function(_0x7da154,_0x435c8e){const _0x491fc0=_0x394172;return _0xf765c7[_0x491fc0(0x1ce)](_0x7da154,_0x435c8e);},'AnTWx':function(_0x26dd30,_0x391b31){const _0x49b3a0=_0x394172;return _0xf765c7[_0x49b3a0(0x226)](_0x26dd30,_0x391b31);},'wXXLA':_0xf765c7['sVpZU'],'mqEmg':function(_0x1db82c,_0x39aca3){const _0x1daa6d=_0x394172;return _0xf765c7[_0x1daa6d(0x1ce)](_0x1db82c,_0x39aca3);},'LHonF':_0xf765c7[_0x394172(0x1f8)],'Grpgb':function(_0x24f7b8,_0x558ddd){const _0x2db4db=_0x394172;return _0xf765c7[_0x2db4db(0x1ce)](_0x24f7b8,_0x558ddd);},'WzGtG':_0xf765c7[_0x394172(0x1f1)]},_0x379b07={};_0x379b07[_0x394172(0x21a)]=!![],yauzl[_0x394172(0x232)](_0x677fe6,_0x379b07,function(_0xaedde8,_0x4222e0){const _0x4279a7=_0x394172,_0xe458db={'LYKan':function(_0x274a27,_0x1bdeb8){const _0xde4210=a68_0x4953;return _0x580ac5[_0xde4210(0x164)](_0x274a27,_0x1bdeb8);},'gpgVC':function(_0x583131,_0x513050){const _0x3dbc36=a68_0x4953;return _0x580ac5[_0x3dbc36(0x164)](_0x583131,_0x513050);},'HWoXm':function(_0x3cc916,_0x55780e){const _0x724b03=a68_0x4953;return _0x580ac5[_0x724b03(0x21f)](_0x3cc916,_0x55780e);},'mAgVU':function(_0x4065ca,_0x34b9d8){const _0x4cd2be=a68_0x4953;return _0x580ac5[_0x4cd2be(0x214)](_0x4065ca,_0x34b9d8);},'HzWqd':_0x580ac5[_0x4279a7(0x17e)],'FYClO':function(_0x580977,_0x1abf6b){const _0x26ec71=_0x4279a7;return _0x580ac5[_0x26ec71(0x21f)](_0x580977,_0x1abf6b);},'UxOCz':function(_0xaf879d,_0x3adb2a){return _0x580ac5['mqEmg'](_0xaf879d,_0x3adb2a);},'DXmKF':_0x580ac5[_0x4279a7(0x19a)]};if(_0xaedde8){_0x580ac5[_0x4279a7(0x1ed)](_0x5261a1,_0xaedde8);return;}_0x4222e0['readEntry'](),_0x4222e0['on'](_0x580ac5[_0x4279a7(0x1df)],_0x20b545=>{const _0x1c9453=_0x4279a7,_0x5eddde={'EmpcY':_0x580ac5[_0x1c9453(0x1ba)],'YDwqG':function(_0x2e72f5,_0x5ec009){const _0xcdd9e7=_0x1c9453;return _0x580ac5[_0xcdd9e7(0x164)](_0x2e72f5,_0x5ec009);},'vcNmB':_0x580ac5[_0x1c9453(0x197)]};if(/\/$/[_0x1c9453(0x1d9)](_0x20b545['fileName'])){_0x4222e0['readEntry']();return;}!_0x156516&&(_0x156516=_0x20b545['fileName']);if(_0x580ac5['rDvML'](_0x20b545['fileName'],_0x156516))_0x4222e0[_0x1c9453(0x16e)]();else{const _0x2a1783=_0x20b545[_0x1c9453(0x22f)],_0x1dfa31=path[_0x1c9453(0x191)](_0x1c482e,_0x2a1783+_0x1c9453(0x1c2)+process[_0x1c9453(0x15f)]);let _0x327864;try{_0x327864=fs[_0x1c9453(0x1a5)](_0x1dfa31);}catch(_0x3d8b9a){if(BINARY_BUSY_ERROR_CODES['includes'](_0x3d8b9a['code'])){const _0x3c7716=path['join'](_0x1c482e,_0x2a1783);if(fs[_0x1c9453(0x1bd)](_0x3c7716)){logger[_0x1c9453(0x20b)](_0x1c9453(0x20a)+_0x2a1783),fs[_0x1c9453(0x166)](_0x677fe6,_0x2c5095=>{const _0x541ab0=_0x1c9453;_0x2c5095&&logger['warn'](_0x541ab0(0x1a3)+_0x677fe6);}),_0x580ac5[_0x1c9453(0x164)](_0x45ebed,_0x3c7716);return;}logger[_0x1c9453(0x20b)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x2a1783);}_0x580ac5[_0x1c9453(0x22b)](_0x5261a1,_0x3d8b9a);return;}_0x327864['on'](_0x580ac5[_0x1c9453(0x1d2)],_0x2dd22f=>{const _0xe486f8=_0x1c9453;if(BINARY_BUSY_ERROR_CODES[_0xe486f8(0x19b)](_0x2dd22f[_0xe486f8(0x16c)])){const _0x12e1be=path[_0xe486f8(0x191)](_0x1c482e,_0x2a1783);_0x327864['close'](),fs[_0xe486f8(0x1bd)](_0x12e1be)?(logger[_0xe486f8(0x20b)]('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x2dd22f[_0xe486f8(0x18d)]),_0x4222e0[_0xe486f8(0x194)](),fs[_0xe486f8(0x166)](_0x677fe6,_0x31ffed=>{const _0x4bddc3=_0xe486f8;_0x31ffed&&logger[_0x4bddc3(0x20b)](_0x4bddc3(0x1a3)+_0x677fe6);}),_0xe458db['LYKan'](_0x45ebed,_0x12e1be)):(logger[_0xe486f8(0x20b)]('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x2dd22f['message']),fs['unlink'](_0x1dfa31,()=>{}),_0xe458db[_0xe486f8(0x1aa)](_0x5261a1,_0x2dd22f));}else fs[_0xe486f8(0x166)](_0x1dfa31,()=>{}),_0xe458db['LYKan'](_0x5261a1,_0x2dd22f);}),_0x4222e0['openReadStream'](_0x20b545,function(_0x1accd5,_0x483d4c){const _0x5208c7=_0x1c9453;if(_0x1accd5){fs[_0x5208c7(0x166)](_0x1dfa31,()=>{}),_0x5eddde[_0x5208c7(0x16f)](_0x5261a1,_0x1accd5);return;}_0x483d4c['on'](_0x5eddde[_0x5208c7(0x1cd)],function(){const _0x5bdcc6=_0x5208c7;_0x327864[_0x5bdcc6(0x1a1)](),_0x327864['on'](_0x5eddde[_0x5bdcc6(0x15e)],function(){const _0x53cd0c=_0x5bdcc6;_0x4222e0[_0x53cd0c(0x16e)]();});}),_0x483d4c['pipe'](_0x327864);});}}),_0x4222e0['on'](_0x580ac5[_0x4279a7(0x1d2)],_0x1ba8b0=>{const _0x13d049=_0x4279a7;_0xe458db[_0x13d049(0x188)](_0x5261a1,_0x1ba8b0);}),_0x4222e0[_0x4279a7(0x1f7)](_0x580ac5['wPNBi'],()=>{const _0x4ff508=_0x4279a7,_0x2f8061={'nmBCJ':function(_0x9ed6a7,_0x4a0722){const _0x15eb6e=a68_0x4953;return _0xe458db[_0x15eb6e(0x1dc)](_0x9ed6a7,_0x4a0722);},'MSNgp':_0xe458db[_0x4ff508(0x1e6)],'LlIVi':function(_0x53ad80,_0x14af29){const _0x1f8e7c=_0x4ff508;return _0xe458db[_0x1f8e7c(0x1e4)](_0x53ad80,_0x14af29);},'sQMBk':function(_0x2c03f9,_0x38caed){return _0xe458db['UxOCz'](_0x2c03f9,_0x38caed);}};fs[_0x4ff508(0x166)](_0x677fe6,_0x5de248=>{const _0xcc7026=_0x4ff508;_0x5de248&&logger['warn'](_0xcc7026(0x1a3)+_0x677fe6);});const _0x3c960b=path['join'](_0x1c482e,_0x156516+_0x4ff508(0x1c2)+process[_0x4ff508(0x15f)]),_0x5dfeec=path['join'](_0x1c482e,_0x156516);fs['chmod'](_0x3c960b,_0xe458db[_0x4ff508(0x1d6)],function(_0x49ef72){const _0x271939=_0x4ff508;if(_0x49ef72){_0x4222e0[_0x271939(0x194)](),fs[_0x271939(0x166)](_0x3c960b,()=>{}),_0x2f8061[_0x271939(0x1c4)](_0x5261a1,_0x49ef72);return;}fs[_0x271939(0x181)](_0x3c960b,_0x5dfeec,function(_0x403bd0){const _0x5f02af=_0x271939;if(_0x403bd0){if(_0x2f8061[_0x5f02af(0x1d5)](_0x403bd0['code'],_0x2f8061['MSNgp'])){_0x4222e0['close'](),fs['unlink'](_0x3c960b,()=>{}),_0x2f8061[_0x5f02af(0x196)](_0x5261a1,_0x403bd0);return;}logger[_0x5f02af(0x20b)](_0x5f02af(0x1b6)+_0x403bd0[_0x5f02af(0x18d)]);try{fs[_0x5f02af(0x179)](_0x3c960b,_0x5dfeec);}catch(_0x218259){_0x4222e0[_0x5f02af(0x194)](),fs[_0x5f02af(0x166)](_0x3c960b,()=>{}),_0x2f8061['sQMBk'](_0x5261a1,_0x218259);return;}fs['unlink'](_0x3c960b,_0x22a568=>{const _0x4a1c2c=_0x5f02af;_0x22a568&&logger['warn'](_0x4a1c2c(0x21c)+_0x22a568[_0x4a1c2c(0x18d)]);});}_0x4222e0[_0x5f02af(0x194)](),_0x2f8061[_0x5f02af(0x1c4)](_0x45ebed,_0x5dfeec);});});});});});}static['getTestFrameworkDetail'](){const _0x28f86b=a68_0x25f646;if(process[_0x28f86b(0x22a)][_0x28f86b(0x198)])return JSON[_0x28f86b(0x213)](process[_0x28f86b(0x22a)][_0x28f86b(0x198)]);return this[_0x28f86b(0x1fc)];}static[a68_0x25f646(0x203)](){const _0x56aeb7=a68_0x25f646;if(process['env'][_0x56aeb7(0x1fa)])return JSON[_0x56aeb7(0x213)](process[_0x56aeb7(0x22a)][_0x56aeb7(0x1fa)]);return this[_0x56aeb7(0x1a4)];}static[a68_0x25f646(0x211)](_0x894058,_0x364e12){const _0xda9c3b=a68_0x25f646,_0x1a1f96={'ONoer':'2|4|3|0|1','ZexdY':function(_0x5c425f,_0x2f9682){return _0x5c425f||_0x2f9682;},'vSNcm':function(_0x47e8c4,_0x116f93){return _0x47e8c4(_0x116f93);}},_0x3268e6=_0x1a1f96['ONoer'][_0xda9c3b(0x233)]('|');let _0x1aba0d=0x0;while(!![]){switch(_0x3268e6[_0x1aba0d++]){case'0':process[_0xda9c3b(0x22a)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON['stringify'](this[_0xda9c3b(0x1a4)]);continue;case'1':process['env']['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON['stringify'](this[_0xda9c3b(0x1fc)]);continue;case'2':_0x1a1f96[_0xda9c3b(0x1e8)](!_0x894058,!_0x364e12)&&logger[_0xda9c3b(0x1a9)](_0xda9c3b(0x192)+_0x894058+_0xda9c3b(0x176)+_0x364e12);continue;case'3':this[_0xda9c3b(0x1a4)]={'name':_0x364e12,'version':_0x1a1f96['vSNcm'](getFrameworkVersion,_0x364e12)};continue;case'4':this['testFrameworkDetail']={'name':_0x894058,'version':{[_0x894058]:_0x1a1f96[_0xda9c3b(0x19e)](getFrameworkVersion,_0x894058)}};continue;}break;}}static[a68_0x25f646(0x16a)](_0x3a1346,_0x28dd38){return _0x3a1346+':'+_0x28dd38;}static['getCurrentInstanceName'](){return process['pid']+':'+threadId;}static[a68_0x25f646(0x21b)](_0x287b64){const _0x39c9b1=a68_0x25f646;if(_0x287b64['testContextOptions']&&_0x287b64[_0x39c9b1(0x1fe)][_0x39c9b1(0x1b4)])return!![];return![];}static[a68_0x25f646(0x1bf)](_0x40b28e){if(_0x40b28e['testContextOptions']&&_0x40b28e['testContextOptions']['skipSessionStatus'])return!![];return![];}static[a68_0x25f646(0x1c6)](_0x19fd62){const _0x38b759=a68_0x25f646,_0x2620ec=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x2620ec[_0x38b759(0x1d9)](_0x19fd62);}static[a68_0x25f646(0x184)](_0x4462f6,_0x3ab97e){const _0x39240d=a68_0x25f646,_0xbc2ffa={};_0xbc2ffa['GxsgR']=function(_0x34c9fa,_0x48ea6c){return _0x34c9fa!==_0x48ea6c;},_0xbc2ffa[_0x39240d(0x206)]=function(_0x4792a1,_0x1f8ffc){return _0x4792a1===_0x1f8ffc;},_0xbc2ffa[_0x39240d(0x178)]=_0x39240d(0x1e1);const _0x173c91=_0xbc2ffa;for(const [_0x6fe40,_0x36541e]of Object['entries'](_0x3ab97e)){if(_0x173c91['GxsgR'](_0x36541e,null)&&_0x173c91[_0x39240d(0x206)](typeof _0x36541e,_0x173c91[_0x39240d(0x178)])&&!Array[_0x39240d(0x190)](_0x36541e))_0x4462f6[_0x6fe40]=this[_0x39240d(0x184)](_0x4462f6[_0x6fe40]||{},_0x36541e);else Array[_0x39240d(0x190)](_0x36541e)?_0x4462f6[_0x6fe40]=(_0x4462f6[_0x6fe40]||[])['concat'](_0x36541e):_0x4462f6[_0x6fe40]=_0x36541e;}return _0x4462f6;}}module[a68_0x25f646(0x1ef)]=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a69_0x12cf23=a69_0xe242;function a69_0x6664(){const _0x203b7e=['values','getInstance','./modules/testhubModule','JFESz','parseCommaSeparatedValues','twHtB','clearTags','54mnlWQu','getTestLevelTags',',\x20key=','TeSYD','nngAl','Custom\x20tag\x20key\x20cannot\x20be\x20empty','WIZAK','field_type','./modules/playwrightDriverModule','CustomTagManager','4804jvWgiu','ZmFsy','azmQm','LoeIa','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','MODULE_NAME','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','wTsjw','__jestCurrentTestIdentifier','isRunning','setTestDetails','352jZjxOt','name','298172SHgfAI',',\x20finalTags=','modules','getTestDetails','retry','Custom\x20tag\x20value\x20cannot\x20be\x20empty','27OBDIbg','\x20with\x20new\x20values=','stringify','getTestUUID','testInfo','TEST','getTestFrameworkDetail','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','buildHashedId','TALey','testhubConfig','158160ToLUWR','string','getAllData','[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key=','debug','ZfHtR','wnnxA','WAqYR','includes','./cliUtils','../../helpers/helper','KEY_CUSTOM_TAGS','getTrackedInstance','getBuildLevelTags','addMultipleEntries','298230qoBGAS','multi_dropdown','KEY_TEST_ID','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','LeONY','get','313515rSJuPX','108801kAyHHT','buildLevelTags','getState','WnJUr','prCfq','exports','BZzOS','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','364776qZulxj','testLevelTags','441wFsMLw','./state/hookState','./framework/constants/testFrameworkConstants','POST'];a69_0x6664=function(){return _0x203b7e;};return a69_0x6664();}(function(_0x2c9b05,_0x2842db){const _0x58ced7=a69_0xe242,_0x5a4f27=_0x2c9b05();while(!![]){try{const _0x58ed85=-parseInt(_0x58ced7(0x178))/0x1+-parseInt(_0x58ced7(0x1ac))/0x2+-parseInt(_0x58ced7(0x189))/0x3*(-parseInt(_0x58ced7(0x19e))/0x4)+-parseInt(_0x58ced7(0x17e))/0x5+-parseInt(_0x58ced7(0x194))/0x6*(parseInt(_0x58ced7(0x17f))/0x7)+-parseInt(_0x58ced7(0x187))/0x8*(-parseInt(_0x58ced7(0x1b2))/0x9)+parseInt(_0x58ced7(0x1bd))/0xa*(parseInt(_0x58ced7(0x1aa))/0xb);if(_0x58ed85===_0x2842db)break;else _0x5a4f27['push'](_0x5a4f27['shift']());}catch(_0x51cf00){_0x5a4f27['push'](_0x5a4f27['shift']());}}}(a69_0x6664,0x29648));const BrowserstackCLI=require('./browserstackCLI'),helper=require(a69_0x12cf23(0x173)),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a69_0x12cf23(0x18b)),PlaywrightDriverModule=require(a69_0x12cf23(0x19c)),TestInfo=require('./TestInfo'),TestHubModule=require(a69_0x12cf23(0x18f)),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a69_0x12cf23(0x19d));class CustomTagManager{static [a69_0x12cf23(0x180)]={};static ['testLevelTags']={};static['setCustomTags'](_0x1cbbfd,_0xeab08c,_0x520ea0=![]){const _0x5d3dcd=a69_0x12cf23,_0x37dad4={'WnJUr':function(_0x2d187b,_0x259d2c){return _0x2d187b!==_0x259d2c;},'wTsjw':_0x5d3dcd(0x1be),'TALey':_0x5d3dcd(0x1a3),'LoeIa':'Custom\x20tag\x20value\x20must\x20be\x20a\x20string','wnnxA':function(_0x55c526,_0x4a9a96){return _0x55c526===_0x4a9a96;},'prCfq':_0x5d3dcd(0x199),'WIZAK':_0x5d3dcd(0x1b1),'JFESz':_0x5d3dcd(0x179),'twHtB':':jest-','VJkqX':function(_0x5ba8da,_0x235988){return _0x5ba8da(_0x235988);},'ZfHtR':_0x5d3dcd(0x172),'ZmFsy':'jest','duHJH':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','nngAl':_0x5d3dcd(0x1a5),'TeSYD':function(_0x2d0acd,_0x3f81d7){return _0x2d0acd(_0x3f81d7);},'LeONY':'./state/testFrameworkState','azmQm':function(_0x1113ec,_0x3c7d83){return _0x1113ec(_0x3c7d83);},'BZzOS':_0x5d3dcd(0x18a),'WAqYR':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x37dad4[_0x5d3dcd(0x182)](typeof _0x1cbbfd,_0x37dad4['wTsjw']))throw new Error(_0x37dad4[_0x5d3dcd(0x1bb)]);if(_0x37dad4[_0x5d3dcd(0x182)](typeof _0xeab08c,_0x37dad4[_0x5d3dcd(0x1a6)]))throw new Error(_0x37dad4[_0x5d3dcd(0x1a1)]);if(_0x37dad4[_0x5d3dcd(0x16f)](_0x1cbbfd['trim'](),''))throw new Error(_0x37dad4[_0x5d3dcd(0x183)]);if(_0x37dad4[_0x5d3dcd(0x16f)](_0xeab08c['trim'](),''))throw new Error(_0x37dad4[_0x5d3dcd(0x19a)]);const _0x134756=helper[_0x5d3dcd(0x191)](_0xeab08c);if(_0x520ea0){const _0x4baa64=BrowserstackCLI['getInstance']()[_0x5d3dcd(0x1ae)][TestHubModule[_0x5d3dcd(0x1a4)]];if(_0x4baa64){const _0x5a33f4=_0x4baa64?.[_0x5d3dcd(0x1bc)]?.['toObject']()?.[_0x5d3dcd(0x1ba)];TestInfo[_0x5d3dcd(0x1b5)](_0x5a33f4);const _0x5e209c=TestInfo[_0x5d3dcd(0x1af)](_0x5a33f4),_0x5058be=_0x5e209c[TestFrameworkConstants[_0x5d3dcd(0x174)]]||{};if(!_0x5058be[_0x1cbbfd]){const _0x16a61d={};_0x16a61d[_0x5d3dcd(0x19b)]=_0x37dad4[_0x5d3dcd(0x190)],_0x16a61d[_0x5d3dcd(0x18d)]=[..._0x134756],_0x5058be[_0x1cbbfd]=_0x16a61d;}else _0x5058be[_0x1cbbfd][_0x5d3dcd(0x18d)]=[..._0x134756];_0x5e209c[TestFrameworkConstants[_0x5d3dcd(0x174)]]=_0x5058be,TestInfo[_0x5d3dcd(0x1a9)](_0x5a33f4,_0x5e209c),!this[_0x5d3dcd(0x180)][_0x5a33f4]&&(this['buildLevelTags'][_0x5a33f4]={}),this['buildLevelTags'][_0x5a33f4][_0x1cbbfd]=[..._0x134756];}}else{let _0x240d15;const _0x1ed77f=global[_0x5d3dcd(0x1a7)];let _0x209f91=![];if(_0x1ed77f&&_0x1ed77f[_0x5d3dcd(0x171)](_0x37dad4[_0x5d3dcd(0x192)]))_0x209f91=!![],_0x240d15=_0x1ed77f;else try{const _0x3626bb=_0x37dad4['VJkqX'](require,_0x37dad4[_0x5d3dcd(0x16e)]);if(BrowserstackCLI[_0x5d3dcd(0x18e)]()[_0x5d3dcd(0x1a8)]()){const _0x2285c8=_0x3626bb[_0x5d3dcd(0x1b8)]();if(_0x37dad4[_0x5d3dcd(0x16f)](_0x2285c8?.[_0x5d3dcd(0x1ab)]?.['toLowerCase'](),_0x37dad4[_0x5d3dcd(0x19f)])){const _0xb5844a=AutomationFramework[_0x5d3dcd(0x175)]();_0x240d15=AutomationFramework[_0x5d3dcd(0x181)](_0xb5844a,PlaywrightDriverModule[_0x5d3dcd(0x17a)],''),_0x240d15&&_0x240d15['includes'](_0x37dad4[_0x5d3dcd(0x192)])&&(_0x209f91=!![]);}}}catch(_0x48ec70){logger['debug'](_0x5d3dcd(0x1b9)+_0x48ec70);}if(_0x209f91){if(!_0x240d15)throw new Error(_0x37dad4['duHJH']);const _0x41511b=BrowserstackCLI[_0x5d3dcd(0x18e)]()['getTestFramework']();if(!_0x41511b)throw new Error(_0x37dad4[_0x5d3dcd(0x198)]);const _0x2fbaa8=_0x37dad4[_0x5d3dcd(0x197)](require,_0x37dad4[_0x5d3dcd(0x17c)]),_0x170874=_0x37dad4[_0x5d3dcd(0x1a0)](require,_0x37dad4[_0x5d3dcd(0x185)]),_0x14485f=_0x41511b['resolveInstance'](_0x2fbaa8[_0x5d3dcd(0x1b7)],_0x170874[_0x5d3dcd(0x18c)]);if(!_0x14485f)throw new Error(_0x37dad4[_0x5d3dcd(0x170)]);const _0xb65cb8=_0x14485f[_0x5d3dcd(0x16b)]()[_0x5d3dcd(0x17d)](_0x240d15)||{},_0x29454a=_0xb65cb8[TestFrameworkConstants[_0x5d3dcd(0x174)]]||{};logger[_0x5d3dcd(0x16d)](_0x5d3dcd(0x186)+_0x240d15+_0x5d3dcd(0x196)+_0x1cbbfd+',\x20values='+JSON[_0x5d3dcd(0x1b4)](_0x134756)+',\x20existingTags='+JSON[_0x5d3dcd(0x1b4)](_0x29454a));if(!_0x29454a[_0x1cbbfd]){const _0x23f96b={};_0x23f96b['field_type']=_0x37dad4[_0x5d3dcd(0x190)],_0x23f96b[_0x5d3dcd(0x18d)]=[..._0x134756],_0x29454a[_0x1cbbfd]=_0x23f96b,logger[_0x5d3dcd(0x16d)](_0x5d3dcd(0x1a2)+_0x1cbbfd+'\x20with\x20values='+JSON[_0x5d3dcd(0x1b4)](_0x134756));}else _0x29454a[_0x1cbbfd][_0x5d3dcd(0x18d)]=[..._0x134756],logger[_0x5d3dcd(0x16d)](_0x5d3dcd(0x16c)+_0x1cbbfd+_0x5d3dcd(0x1b3)+JSON[_0x5d3dcd(0x1b4)](_0x134756));const _0xd5c4b5={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x29454a},_0x2b8661={};_0x2b8661[_0x240d15]=_0xd5c4b5,_0x14485f[_0x5d3dcd(0x177)](_0x2b8661),logger[_0x5d3dcd(0x16d)](_0x5d3dcd(0x17b)+_0x240d15+_0x5d3dcd(0x1ad)+JSON[_0x5d3dcd(0x1b4)](_0x29454a)),!this[_0x5d3dcd(0x188)][_0x240d15]&&(this[_0x5d3dcd(0x188)][_0x240d15]={}),this[_0x5d3dcd(0x188)][_0x240d15][_0x1cbbfd]=[..._0x134756];}else{const _0x1d0657=global['__workerDetails']?.['currentTest']?.[_0x5d3dcd(0x1b6)];if(!_0x1d0657){const _0x469944=AutomationFramework[_0x5d3dcd(0x175)]();_0x240d15=AutomationFramework['getState'](_0x469944,PlaywrightDriverModule[_0x5d3dcd(0x17a)],'');}else _0x240d15=TestInfo['getTestIdentifierFromTestInfo'](_0x1d0657,_0x1d0657[_0x5d3dcd(0x1b0)]);const _0x1405cb=TestInfo[_0x5d3dcd(0x1af)](_0x240d15),_0x477b90=_0x1405cb[TestFrameworkConstants[_0x5d3dcd(0x174)]]||{};if(!_0x477b90[_0x1cbbfd]){const _0x34daf1={};_0x34daf1['field_type']=_0x37dad4[_0x5d3dcd(0x190)],_0x34daf1[_0x5d3dcd(0x18d)]=[..._0x134756],_0x477b90[_0x1cbbfd]=_0x34daf1;}else _0x477b90[_0x1cbbfd][_0x5d3dcd(0x18d)]=[..._0x134756];_0x1405cb[TestFrameworkConstants[_0x5d3dcd(0x174)]]=_0x477b90,TestInfo['setTestDetails'](_0x240d15,_0x1405cb),!this[_0x5d3dcd(0x188)][_0x240d15]&&(this[_0x5d3dcd(0x188)][_0x240d15]={}),this[_0x5d3dcd(0x188)][_0x240d15][_0x1cbbfd]=[..._0x134756];}}}static[a69_0x12cf23(0x176)](){const _0x505155=a69_0x12cf23,_0x1f680d={...this[_0x505155(0x180)]};return _0x1f680d;}static[a69_0x12cf23(0x195)](){const _0x234f61=a69_0x12cf23,_0x3aa544={...this[_0x234f61(0x188)]};return _0x3aa544;}static[a69_0x12cf23(0x193)](){const _0x59134a=a69_0x12cf23;this[_0x59134a(0x180)]={},this[_0x59134a(0x188)]={};}}function a69_0xe242(_0x377ebe,_0x2d277b){const _0x66648e=a69_0x6664();return a69_0xe242=function(_0xe242a8,_0x17c080){_0xe242a8=_0xe242a8-0x16b;let _0x18aa55=_0x66648e[_0xe242a8];return _0x18aa55;},a69_0xe242(_0x377ebe,_0x2d277b);}module[a69_0x12cf23(0x184)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x586366=a70_0x14a1;(function(_0x495891,_0x44045f){const _0x1a7d07=a70_0x14a1,_0x132bc4=_0x495891();while(!![]){try{const _0x3fc484=-parseInt(_0x1a7d07(0x1b1))/0x1*(-parseInt(_0x1a7d07(0x1ba))/0x2)+-parseInt(_0x1a7d07(0x1bd))/0x3+parseInt(_0x1a7d07(0x1bb))/0x4*(-parseInt(_0x1a7d07(0x1b2))/0x5)+-parseInt(_0x1a7d07(0x1af))/0x6*(parseInt(_0x1a7d07(0x1b7))/0x7)+-parseInt(_0x1a7d07(0x1b0))/0x8*(-parseInt(_0x1a7d07(0x1b9))/0x9)+parseInt(_0x1a7d07(0x1ad))/0xa*(-parseInt(_0x1a7d07(0x1b8))/0xb)+parseInt(_0x1a7d07(0x1b3))/0xc;if(_0x3fc484===_0x44045f)break;else _0x132bc4['push'](_0x132bc4['shift']());}catch(_0x5f2f4c){_0x132bc4['push'](_0x132bc4['shift']());}}}(a70_0x54da,0x9a26b));function a70_0x14a1(_0x3de54c,_0x2dc067){const _0x54da1b=a70_0x54da();return a70_0x14a1=function(_0x14a187,_0x567118){_0x14a187=_0x14a187-0x1ac;let _0x232984=_0x54da1b[_0x14a187];return _0x232984;},a70_0x14a1(_0x3de54c,_0x2dc067);}const {createClassLogger}=require(a70_0x586366(0x1b6));function a70_0x54da(){const _0x360dae=['getInstance','../../helpers/classLogger.js','7938217degbLK','1617bBWlVC','79263pcjJtF','26YikBTz','4DdRNEd','exports','1930170bGNkZD','observers','62330hVEpjO','jGSSg','6TKXiWP','904QyoJeg','93509iZDiuQ','2795265VXxRJL','20079840zHBuzq','notifyObserver'];a70_0x54da=function(){return _0x360dae;};return a70_0x54da();}class EventDispatcher{static #instance=null;constructor(){const _0x4b3c28=a70_0x586366;this[_0x4b3c28(0x1ac)]={};}static[a70_0x586366(0x1b5)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}['registerObserver'](_0x4429df,_0x4b3010){const _0x5b8f12=a70_0x586366;!this[_0x5b8f12(0x1ac)][_0x4429df]&&(this[_0x5b8f12(0x1ac)][_0x4429df]=[]),this[_0x5b8f12(0x1ac)][_0x4429df]['push'](_0x4b3010);}async[a70_0x586366(0x1b4)](_0x585b40,_0x3210f7){const _0x3d0fe7=a70_0x586366,_0x2193f9={'jGSSg':function(_0x382699,_0x10c7b2){return _0x382699(_0x10c7b2);}};if(this['observers'][_0x585b40]){for(const _0x4e3544 of this[_0x3d0fe7(0x1ac)][_0x585b40]){await _0x2193f9[_0x3d0fe7(0x1ae)](_0x4e3544,_0x3210f7);}return;}}}const eventDispatcher=EventDispatcher[a70_0x586366(0x1b5)]();Object['freeze'](eventDispatcher),module[a70_0x586366(0x1bc)]=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a71_0x268f(_0x307df3,_0x2fdd09){const _0x4d993b=a71_0x4d99();return a71_0x268f=function(_0x268f9b,_0x2973c2){_0x268f9b=_0x268f9b-0xe8;let _0x485e76=_0x4d993b[_0x268f9b];return _0x485e76;},a71_0x268f(_0x307df3,_0x2fdd09);}const a71_0x19bcf2=a71_0x268f;function a71_0x4d99(){const _0x552cb4=['util','../instances/trackedInstance.js','createContext','getAutomationFrameworkVersion','setTrackedInstance','2696452vtEasj','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','getAllData','getTrackedInstance','\x20hookState=','1293673JpDXxK','258zzihkU','get','../../../helpers/classLogger.js','79331vboABr','getId','325047gWfLqL','getCurrentInstanceName','KEY_AUTOMATION_SESSIONS','AutomationFramework','registerObserver','setState','trackEvent','instances','../cliUtils.js','automationFrameworkName','set','428384sKWjHT','runHooks','non_browserstack_automation_sessions','automationFrameworkVersion','debug','1284138TyEGPH','trackEvent:\x20automationFrameworkState=','5936640mLbuWn','notifyObserver'];a71_0x4d99=function(){return _0x552cb4;};return a71_0x4d99();}(function(_0x16548e,_0x240ca1){const _0x8297fc=a71_0x268f,_0x581fda=_0x16548e();while(!![]){try{const _0x2fd1d9=parseInt(_0x8297fc(0x108))/0x1+-parseInt(_0x8297fc(0xfa))/0x2+parseInt(_0x8297fc(0xea))/0x3+-parseInt(_0x8297fc(0x103))/0x4+parseInt(_0x8297fc(0xfc))/0x5+parseInt(_0x8297fc(0x109))/0x6*(-parseInt(_0x8297fc(0xe8))/0x7)+parseInt(_0x8297fc(0xf5))/0x8;if(_0x2fd1d9===_0x240ca1)break;else _0x581fda['push'](_0x581fda['shift']());}catch(_0x58d9e0){_0x581fda['push'](_0x581fda['shift']());}}}(a71_0x4d99,0xccee5));const {createClassLogger}=require(a71_0x19bcf2(0x10b)),util=require(a71_0x19bcf2(0xfe)),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a71_0x19bcf2(0xf2)),TrackedInstance=require(a71_0x19bcf2(0xff)),logger=createClassLogger(a71_0x19bcf2(0xed));class AutomationFramework{static ['instances']=new Map();static [a71_0x19bcf2(0xec)]='automation_sessions';static [a71_0x19bcf2(0x104)]=a71_0x19bcf2(0xf7);constructor(_0x3bb493,_0x3b9799){const _0x4ebb57=a71_0x19bcf2;this[_0x4ebb57(0xf3)]=_0x3bb493,this[_0x4ebb57(0xf8)]=_0x3b9799;}['getAutomationFrameworkName'](){const _0x4a4d89=a71_0x19bcf2;return this[_0x4a4d89(0xf3)];}[a71_0x19bcf2(0x101)](){const _0x212f11=a71_0x19bcf2;return this[_0x212f11(0xf8)];}async[a71_0x19bcf2(0xf0)](_0x1dadc9,_0x4b764c,_0x31b9f6={}){const _0x502126=a71_0x19bcf2;logger[_0x502126(0xf9)](_0x502126(0xfb)+_0x1dadc9+_0x502126(0x107)+_0x4b764c);}async[a71_0x19bcf2(0xf6)](_0x49a1c5,_0x573ca5,_0xb7d55d,_0x5ddd10={}){const _0x5ac06b=a71_0x19bcf2,_0x3ec802=CLIUtils['getHookRegistryKey'](_0x573ca5,_0xb7d55d);_0x49a1c5&&_0x49a1c5[_0x5ac06b(0xef)](_0x573ca5),await eventDispatcher[_0x5ac06b(0xfd)](_0x3ec802,_0x5ddd10);}static[a71_0x19bcf2(0xee)](_0x287385,_0x79850b,_0x4bace6){const _0x1fab57=a71_0x19bcf2;eventDispatcher[_0x1fab57(0xee)](CLIUtils['getHookRegistryKey'](_0x287385,_0x79850b),_0x4bace6);}static[a71_0x19bcf2(0x102)](_0x2f4090,_0x66e357){const _0x5ab35c=a71_0x19bcf2;AutomationFramework['instances']['set'](_0x2f4090[_0x5ab35c(0xe9)](),_0x66e357);}static[a71_0x19bcf2(0x106)](){const _0xfe1209=a71_0x19bcf2,_0x45368e=TrackedInstance[_0xfe1209(0x100)](CLIUtils[_0xfe1209(0xeb)]());return AutomationFramework[_0xfe1209(0xf1)][_0xfe1209(0x10a)](_0x45368e[_0xfe1209(0xe9)]());}static[a71_0x19bcf2(0xef)](_0x569ccb,_0x164bd5,_0x30fe50){const _0x5e3639=a71_0x19bcf2;_0x569ccb[_0x5e3639(0x105)]()[_0x5e3639(0xf4)](_0x164bd5,_0x30fe50);}static['getState'](_0xcb4949,_0x3cac79){const _0x472243=a71_0x19bcf2;return _0xcb4949['getAllData']()[_0x472243(0x10a)](_0x3cac79);}}module['exports']=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a72_0x1923(_0x1db5cb,_0x56fe4f){const _0x3e1849=a72_0x3e18();return a72_0x1923=function(_0x192370,_0x43767c){_0x192370=_0x192370-0xf8;let _0x2ce4cc=_0x3e1849[_0x192370];return _0x2ce4cc;},a72_0x1923(_0x1db5cb,_0x56fe4f);}const a72_0x41c123=a72_0x1923;(function(_0x1c1e75,_0x4e180b){const _0x2fa707=a72_0x1923,_0x24e6ed=_0x1c1e75();while(!![]){try{const _0x37d897=parseInt(_0x2fa707(0x105))/0x1+-parseInt(_0x2fa707(0x106))/0x2*(-parseInt(_0x2fa707(0x103))/0x3)+parseInt(_0x2fa707(0x101))/0x4*(-parseInt(_0x2fa707(0x113))/0x5)+parseInt(_0x2fa707(0x118))/0x6+parseInt(_0x2fa707(0xfe))/0x7*(-parseInt(_0x2fa707(0x10d))/0x8)+parseInt(_0x2fa707(0x109))/0x9*(-parseInt(_0x2fa707(0x102))/0xa)+-parseInt(_0x2fa707(0xfa))/0xb*(parseInt(_0x2fa707(0x117))/0xc);if(_0x37d897===_0x4e180b)break;else _0x24e6ed['push'](_0x24e6ed['shift']());}catch(_0x5ed480){_0x24e6ed['push'](_0x24e6ed['shift']());}}}(a72_0x3e18,0xcdbe4));const a72_0x127902={};a72_0x127902[a72_0x41c123(0x10c)]=a72_0x41c123(0x104),a72_0x127902[a72_0x41c123(0xf8)]=a72_0x41c123(0x115),a72_0x127902['KEY_FRAMEWORK_SESSION_ID']=a72_0x41c123(0x100),a72_0x127902[a72_0x41c123(0xfb)]=a72_0x41c123(0x116),a72_0x127902['KEY_CAPABILITIES']='capabilities',a72_0x127902[a72_0x41c123(0xf9)]=a72_0x41c123(0x108),a72_0x127902[a72_0x41c123(0x114)]=a72_0x41c123(0x111),a72_0x127902['KEY_ENDED_AT']=a72_0x41c123(0x10a),a72_0x127902[a72_0x41c123(0x112)]=a72_0x41c123(0x10e),a72_0x127902[a72_0x41c123(0xfd)]='newsession',a72_0x127902[a72_0x41c123(0x10f)]=a72_0x41c123(0x110),a72_0x127902['COMMAND_SCREENSHOT']='screenshot',a72_0x127902[a72_0x41c123(0xff)]='w3cexecutescript',a72_0x127902[a72_0x41c123(0x10b)]=a72_0x41c123(0x107),a72_0x127902[a72_0x41c123(0xfc)]='quit';const AutomationFrameworkConstants=a72_0x127902;function a72_0x3e18(){const _0x1dcd86=['4477509UiPFVb','ended_at','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','ENV_BROWSERSTACK_PLATFORM_INDEX','3704iKzVtg','platform_index','COMMAND_GET','get','started_at','KEY_PLATFORM_INDEX','290Jcwbmt','KEY_STARTED_AT','hub_url','input_capabilities','7740PHODSk','6293634dRwwMQ','KEY_HUB_URL','KEY_IS_BROWSERSTACK_HUB','5423ZzUPIz','KEY_INPUT_CAPABILITIES','COMMAND_QUIT','COMMAND_NEW_SESSION','1456eAQzWs','COMMAND_W3C_EXECUTE_SCRIPT','framework_session_id','10560Pdqzwh','10pYCfFr','108021QoJvai','BROWSERSTACK_PLATFORM_INDEX','318590oqxHWO','30MJGMqn','w3cexecutescriptasync','is_browserstack_hub'];a72_0x3e18=function(){return _0x1dcd86;};return a72_0x3e18();}module['exports']=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a73_0x9ecc(_0x511e61,_0x42450b){const _0x445b2d=a73_0x445b();return a73_0x9ecc=function(_0x9eccb8,_0x5dfac3){_0x9eccb8=_0x9eccb8-0x156;let _0x3ab638=_0x445b2d[_0x9eccb8];return _0x3ab638;},a73_0x9ecc(_0x511e61,_0x42450b);}function a73_0x445b(){const _0xa4266d=['KEY_FILE_LEVEL','DEFAULT_TEST_RESULT','file_path','DEFAULT_HOOK_RESULT','test_scope','KEY_HOOKS_STARTED','KEY_TEST_STARTED_AT','KEY_AUTOMATE_SESSION_REASON','724096oHVvtO','KEY_TEST_FRAMEWORK_NAME','test_file_path','KEY_HOOK_ID','8cdeWaN','test_ended_at','hook_name','test_framework_version','KEY_TEST_FAILURE_REASON','KEY_TEST_ATTACHMENTS','KEY_TEST_META','test_logs','test_name','KEY_CUSTOM_TAGS','KEY_TEST_SCOPES','test_result_at','KEY_TEST_FAILURE_TYPE','file_level','hook_result','KEY_HOOK_NAME','test_scopes','test_attachments','test_duration','test_tags','test_failure_type','automate_session_status','hook_failure_type','hook_failure','test_hook_last_started','KEY_TEST_RESULT','KEY_TEST_SCOPE','HOOK_REGEX','KEY_TEST_DURATION','KEY_HOOKS_FINISHED','KEY_HOOK_LAST_FINISHED','KEY_TEST_ID','KEY_FILE_NAME','KEY_TEST_FAILURE','KEY_TEST_ENDED_AT','event_ended_at','1378538OEtCYs','hook_id','KEY_TEST_CODE','155lQOMwK','file_name','24372100TmVzdX','custom_metadata','KEY_EVENT_ENDED_AT','KEY_TEST_FILE_PATH','264tlOtbG','test_started_at','KEY_PLATFORM_INDEX','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_RESULT_AT','test_rerun_name','pending','event_started_at','TEST_SCREENSHOT','test_failure','test_uuid','automate_session_reason','retry_of','2913281cXOIpv','test_location','KEY_TEST_RERUN_NAME','KEY_EVENT_STARTED_AT','KEY_FILE_SIZE','KEY_LOGS','KEY_TEST_TAGS','2152jLQedX','KEY_HOOK_RESULT','test_meta','KEY_FILE_PATH','KEY_HOOK_LOGS','test_hooks_started','60498PBgTDI','KEY_HOOK_FAILURE_REASON','platform_index','TEST_LOG','test_failure_reason','KIND_SCREENSHOT','test_hooks_finished','KEY_TEST_FRAMEWORK_VERSION','14720103hUCCNB'];a73_0x445b=function(){return _0xa4266d;};return a73_0x445b();}const a73_0x1b399b=a73_0x9ecc;(function(_0x2e0faf,_0x44b0d7){const _0x340054=a73_0x9ecc,_0xdf5f7d=_0x2e0faf();while(!![]){try{const _0x5685b5=-parseInt(_0x340054(0x19d))/0x1+parseInt(_0x340054(0x169))/0x2+parseInt(_0x340054(0x172))/0x3*(parseInt(_0x340054(0x186))/0x4)+-parseInt(_0x340054(0x16c))/0x5*(parseInt(_0x340054(0x18c))/0x6)+-parseInt(_0x340054(0x17f))/0x7*(-parseInt(_0x340054(0x1a1))/0x8)+-parseInt(_0x340054(0x194))/0x9+parseInt(_0x340054(0x16e))/0xa;if(_0x5685b5===_0x44b0d7)break;else _0xdf5f7d['push'](_0xdf5f7d['shift']());}catch(_0x5d763c){_0xdf5f7d['push'](_0xdf5f7d['shift']());}}}(a73_0x445b,0xe010a));const a73_0xc0d917={};a73_0xc0d917['KEY_TEST_UUID']=a73_0x1b399b(0x17c),a73_0xc0d917[a73_0x1b399b(0x164)]='test_id',a73_0xc0d917['KEY_TEST_NAME']=a73_0x1b399b(0x1a9),a73_0xc0d917[a73_0x1b399b(0x171)]=a73_0x1b399b(0x19f),a73_0xc0d917[a73_0x1b399b(0x185)]=a73_0x1b399b(0x158),a73_0xc0d917[a73_0x1b399b(0x15e)]='test_result',a73_0xc0d917[a73_0x1b399b(0x176)]=a73_0x1b399b(0x1ac),a73_0xc0d917[a73_0x1b399b(0x19b)]=a73_0x1b399b(0x173),a73_0xc0d917[a73_0x1b399b(0x167)]=a73_0x1b399b(0x1a2),a73_0xc0d917['KEY_TEST_LOCATION']=a73_0x1b399b(0x180),a73_0xc0d917[a73_0x1b399b(0x161)]=a73_0x1b399b(0x157),a73_0xc0d917[a73_0x1b399b(0x15f)]=a73_0x1b399b(0x199),a73_0xc0d917[a73_0x1b399b(0x1ab)]=a73_0x1b399b(0x1b1),a73_0xc0d917[a73_0x1b399b(0x19e)]='test_framework_name',a73_0xc0d917[a73_0x1b399b(0x193)]=a73_0x1b399b(0x1a4),a73_0xc0d917[a73_0x1b399b(0x16b)]='test_code',a73_0xc0d917[a73_0x1b399b(0x181)]=a73_0x1b399b(0x177),a73_0xc0d917['KEY_TEST_RETRY_OF']=a73_0x1b399b(0x17e),a73_0xc0d917[a73_0x1b399b(0x174)]=a73_0x1b399b(0x18e),a73_0xc0d917[a73_0x1b399b(0x166)]=a73_0x1b399b(0x17b),a73_0xc0d917[a73_0x1b399b(0x1ad)]=a73_0x1b399b(0x159),a73_0xc0d917[a73_0x1b399b(0x1a5)]=a73_0x1b399b(0x190),a73_0xc0d917['KEY_TEST_LOGS']=a73_0x1b399b(0x1a8),a73_0xc0d917[a73_0x1b399b(0x1a7)]=a73_0x1b399b(0x188),a73_0xc0d917['KEY_SESSION_NAME']='test_session_name',a73_0xc0d917[a73_0x1b399b(0x175)]='automate_session_name',a73_0xc0d917['KEY_AUTOMATE_SESSION_STATUS']=a73_0x1b399b(0x15a),a73_0xc0d917[a73_0x1b399b(0x19c)]=a73_0x1b399b(0x17d),a73_0xc0d917[a73_0x1b399b(0x182)]=a73_0x1b399b(0x179),a73_0xc0d917[a73_0x1b399b(0x170)]=a73_0x1b399b(0x168),a73_0xc0d917[a73_0x1b399b(0x1a0)]=a73_0x1b399b(0x16a),a73_0xc0d917[a73_0x1b399b(0x187)]=a73_0x1b399b(0x1af),a73_0xc0d917['KEY_HOOK_FAILURE_TYPE']=a73_0x1b399b(0x15b),a73_0xc0d917[a73_0x1b399b(0x18d)]='hook_failure_reason',a73_0xc0d917['KEY_HOOK_FAILURE']=a73_0x1b399b(0x15c),a73_0xc0d917[a73_0x1b399b(0x18a)]='hook_logs',a73_0xc0d917[a73_0x1b399b(0x1b0)]=a73_0x1b399b(0x1a3),a73_0xc0d917[a73_0x1b399b(0x196)]=a73_0x1b399b(0x178),a73_0xc0d917[a73_0x1b399b(0x198)]=a73_0x1b399b(0x178),a73_0xc0d917[a73_0x1b399b(0x191)]=a73_0x1b399b(0x17a),a73_0xc0d917['KIND_LOG']=a73_0x1b399b(0x18f),a73_0xc0d917[a73_0x1b399b(0x160)]='^(BEFORE_|AFTER_)',a73_0xc0d917[a73_0x1b399b(0x19a)]=a73_0x1b399b(0x18b),a73_0xc0d917[a73_0x1b399b(0x162)]=a73_0x1b399b(0x192),a73_0xc0d917['KEY_HOOK_LAST_STARTED']=a73_0x1b399b(0x15d),a73_0xc0d917[a73_0x1b399b(0x163)]='test_hook_last_finished',a73_0xc0d917[a73_0x1b399b(0x184)]='logs',a73_0xc0d917[a73_0x1b399b(0x1aa)]=a73_0x1b399b(0x16f),a73_0xc0d917[a73_0x1b399b(0x1a6)]=a73_0x1b399b(0x156),a73_0xc0d917[a73_0x1b399b(0x183)]='file_size',a73_0xc0d917[a73_0x1b399b(0x165)]=a73_0x1b399b(0x16d),a73_0xc0d917[a73_0x1b399b(0x189)]=a73_0x1b399b(0x197),a73_0xc0d917[a73_0x1b399b(0x195)]=a73_0x1b399b(0x1ae);const TestFrameworkConstants=a73_0xc0d917;module['exports']=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a74_0xb22eb=a74_0x5f57;function a74_0x5f57(_0x93a434,_0xebcb84){const _0x5b9504=a74_0x5b95();return a74_0x5f57=function(_0x5f5744,_0x40009b){_0x5f5744=_0x5f5744-0x1f3;let _0x52c3c1=_0x5b9504[_0x5f5744];return _0x52c3c1;},a74_0x5f57(_0x93a434,_0xebcb84);}(function(_0x1e82fd,_0x4c691a){const _0x5693a1=a74_0x5f57,_0x869e14=_0x1e82fd();while(!![]){try{const _0x2f1da4=parseInt(_0x5693a1(0x28a))/0x1*(-parseInt(_0x5693a1(0x1fb))/0x2)+-parseInt(_0x5693a1(0x295))/0x3*(parseInt(_0x5693a1(0x2a4))/0x4)+parseInt(_0x5693a1(0x21c))/0x5+parseInt(_0x5693a1(0x22d))/0x6+-parseInt(_0x5693a1(0x210))/0x7+-parseInt(_0x5693a1(0x2a7))/0x8*(-parseInt(_0x5693a1(0x283))/0x9)+-parseInt(_0x5693a1(0x2b6))/0xa*(-parseInt(_0x5693a1(0x226))/0xb);if(_0x2f1da4===_0x4c691a)break;else _0x869e14['push'](_0x869e14['shift']());}catch(_0x24a214){_0x869e14['push'](_0x869e14['shift']());}}}(a74_0x5b95,0xc4678));function a74_0x5b95(){const _0x3879f9=['rerun_name','sendLogCreatedEvent','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','processPendingHooks','../cliUtils.js','getTrackedInstance',',\x20state=','Tracked\x20cucumber\x20hook\x20event:\x20','getTestUUID','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','uXEYv','push','KEY_TEST_UUID','testUUID','testData','browserstackPlatformIndex','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','../../../helpers/helper.js','toString','oyhvc','../state/testFrameworkState.js','logCreatedEvent','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','\x20with\x20id\x20','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_HOOK_FAILURE_REASON','tags','split','Processing\x20','\x20hookState:\x20','matchHookRegex','getTestDetails','Parsed\x20cucumber\x20test:\x20','parseCucumberTest','KELrD','test','KEY_HOOK_ID','uuid','\x20\x20and\x20args\x20=\x20','getId','KEY_TEST_ENDED_AT','KkBlN','\x20for\x20test:\x20','../grpcClient','bZmNq','KEY_TEST_STARTED_AT','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','ceil','platformIndex','file_name','body','code','3427956WdNYMX','testFrameworkVersion','KEY_TEST_RESULT','KEY_HOOK_RESULT','WsNza','hookState','FUlGm','95127MrYGMA','../instances/trackedInstance.js','UnhandledError','runHooks','hookData','createTestFrameworkEventPayload','KEY_TEST_NAME','getCurrentInstanceName','exports','MXtEI','trackHookEvent','15KrNTxl','WzeOs','getPendingHooks','../../../helpers/classLogger.js','trackCucumberInstance:\x20saved\x20instance\x20contextId=','failure','name','KEY_TEST_RERUN_NAME','Error\x20in\x20createTestFrameworkEventPayload:\x20','KEY_HOOK_FAILURE_TYPE','BMAsN','getTestFrameworks','adWtK','args','addMultipleEntries','1167092BJsMwX','gpQhL','KEY_HOOK_FAILURE','8xlNBQH','resolveInstance','DEFAULT_TEST_RESULT','KEY_HOOKS_STARTED','KEY_EVENT_STARTED_AT','format','\x20pending\x20hooks\x20for\x20testId:\x20','\x20and\x20args\x20=\x20','dhpSl','getThreadId','bwGDu','NONE','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','\x20batch\x20','startedAt','1340sgfHkv','failed','toISOString','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','inspect','KEY_TEST_RESULT_AT','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','hYMRA','\x20response=','hooks','trackCucumberInstance','hasPendingHooks',',\x20hookState:\x20','KEY_TEST_FAILURE','KEY_AUTOMATE_SESSION_NAME','pQWUo','parseCucumberTestResult','POST','setTrackedInstance','../TestInfo.js','24bJYtyp','KEY_HOOK_LAST_STARTED','KEY_TEST_FRAMEWORK_NAME','hook_type','executionContext','yRmMf','length','createContext','INIT_TEST','QuNJo','KEY_CUSTOM_TAGS','pop','fPRQW','\x20with\x20UUID:\x20','LOG_REPORT','getTestFrameworksVersions','KEY_LOGS','readLogObjects','../state/hookState.js',',\x20state:\x20','debug','7552937LLYNku','PRE','key','CucumberTestFramework','stringify','getCurrentTestState','KEY_HOOK_NAME','finishedAt','addPendingHook','createTestFrameworkEventPayload\x20testId:\x20','KEY_TEST_ATTACHMENTS','xCuVi','5295060smZzPn','KEY_TEST_SCOPES','DEFAULT_HOOK_RESULT','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','TEST','KEY_TEST_FAILURE_TYPE','KEY_TEST_FAILURE_REASON','KEY_TEST_ID','lhLSp','keys','181951DXaMTj','Cucumber\x20log\x20created\x20event','Stored\x20pending\x20hook\x20for\x20testId:\x20','slice','KEY_HOOK_LOGS','test_run_id','KEY_TEST_LOGS','4964772WtXdXz','./constants/testFrameworkConstants.js','scopes','getAllData','testFrameworkState','trackEvent','cYBEg','instance','\x20with\x20result:\x20','started_at','meta','KEY_TEST_LOCATION','from','failure_data','getInstance','oebLO','KEY_TEST_CODE','BtfhV','testFrameworkName','get','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','PRSEN','error','concat','\x20target=','KEY_HOOKS_FINISHED','aeaMp','failure_type','KEY_TEST_FILE_PATH','result','Updated\x20cucumber\x20test\x20result:\x20','failure_reason','gRRQm','setTestDetails'];a74_0x5b95=function(){return _0x3879f9;};return a74_0x5b95();}const TestFramework=require('./testFramework'),TestFrameworkState=require(a74_0xb22eb(0x263)),HookState=require(a74_0xb22eb(0x20d)),{createClassLogger}=require(a74_0xb22eb(0x298)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a74_0xb22eb(0x253)),TrackedInstance=require(a74_0xb22eb(0x28b)),TestFrameworkConstants=require(a74_0xb22eb(0x22e)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a74_0xb22eb(0x260)),logger=createClassLogger(a74_0xb22eb(0x213)),{v4:uuidv4}=require(a74_0xb22eb(0x274)),util=require('util'),TestInfo=require(a74_0xb22eb(0x1fa)),GrpcClient=require(a74_0xb22eb(0x27a));class CucumberTestFramework extends TestFramework{constructor(_0x5d8880,_0x210522,_0x38cc01){super(_0x5d8880,_0x210522,_0x38cc01);}async[a74_0xb22eb(0x232)](_0x2d2818,_0x65f504,_0x58f10f={}){const _0x26cd9b=a74_0xb22eb,_0x12583c={};_0x12583c[_0x26cd9b(0x289)]=_0x26cd9b(0x2ba),_0x12583c[_0x26cd9b(0x259)]=function(_0x3f8189,_0x87d699){return _0x3f8189===_0x87d699;},_0x12583c[_0x26cd9b(0x207)]=_0x26cd9b(0x25f);const _0x67dc07=_0x12583c;await super[_0x26cd9b(0x232)](_0x2d2818,_0x65f504,_0x58f10f);const _0x271fdd=this[_0x26cd9b(0x2a8)](_0x2d2818,_0x65f504,_0x58f10f);if(!_0x271fdd){logger['debug'](_0x67dc07[_0x26cd9b(0x289)]);return;}try{let _0xf3ee25,_0x45508b;switch(_0x2d2818){case TestFrameworkState[_0x26cd9b(0x220)]:_0xf3ee25=_0x58f10f['test'],_0x45508b=TestInfo[_0x26cd9b(0x257)](_0xf3ee25['id']);if(_0x67dc07[_0x26cd9b(0x259)](_0x65f504,HookState[_0x26cd9b(0x211)])){logger[_0x26cd9b(0x20f)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0xf3ee25['id']);const _0x37b7c3={};_0x37b7c3[_0x26cd9b(0x25c)]=_0x45508b,_0x37b7c3[_0x26cd9b(0x25d)]=_0xf3ee25,_0x271fdd[_0x26cd9b(0x2a3)](this[_0x26cd9b(0x270)](_0x37b7c3)),logger['debug'](_0x26cd9b(0x2b3)+_0xf3ee25['id']),await this[_0x26cd9b(0x252)](_0x271fdd,_0xf3ee25['id']);}else{if(_0x67dc07[_0x26cd9b(0x259)](_0x65f504,HookState['POST'])){const _0x54d6aa={};_0x54d6aa['testUUID']=_0x45508b,_0x54d6aa[_0x26cd9b(0x25d)]=_0xf3ee25,_0x271fdd['addMultipleEntries'](this[_0x26cd9b(0x1f7)](_0x54d6aa)),await this[_0x26cd9b(0x252)](_0x271fdd,_0xf3ee25['id']);}}break;case TestFrameworkState[_0x26cd9b(0x209)]:_0x67dc07[_0x26cd9b(0x259)](_0x65f504,HookState[_0x26cd9b(0x1f8)])&&await this[_0x26cd9b(0x250)](_0x271fdd,_0x2d2818,_0x58f10f);break;default:if(CLIUtils[_0x26cd9b(0x26d)](_0x2d2818[_0x26cd9b(0x261)]()[_0x26cd9b(0x26a)]('.')[0x1])){const _0x31d3a8=await this[_0x26cd9b(0x294)](_0x271fdd,_0x2d2818,_0x65f504,_0x58f10f);_0x271fdd['addMultipleEntries'](_0x31d3a8);}else logger[_0x26cd9b(0x20f)]('trackEvent:\x20unsupported\x20testFrameworkState='+_0x2d2818+'\x20&\x20hookState='+_0x65f504);break;}}catch(_0x485cd8){logger[_0x26cd9b(0x243)](util[_0x26cd9b(0x2ac)](_0x67dc07[_0x26cd9b(0x207)],_0x2d2818,_0x65f504,_0x58f10f[_0x26cd9b(0x201)],_0x485cd8));}_0x58f10f[_0x26cd9b(0x234)]=_0x271fdd,await this['runHooks'](_0x271fdd,_0x2d2818,_0x65f504,_0x58f10f);}[a74_0xb22eb(0x2a8)](_0x8a7f6f,_0x320217,_0x3806a9={}){const _0x3c7fd6=a74_0xb22eb,_0x1e96fb={};_0x1e96fb['gRRQm']=function(_0x4cf388,_0x37e697){return _0x4cf388===_0x37e697;};const _0x1edaaf=_0x1e96fb;let _0x9d94bc=null;return(_0x1edaaf[_0x3c7fd6(0x24d)](_0x8a7f6f,TestFrameworkState[_0x3c7fd6(0x203)])||_0x1edaaf[_0x3c7fd6(0x24d)](_0x8a7f6f,TestFrameworkState['NONE']))&&this[_0x3c7fd6(0x2c1)](_0x8a7f6f,_0x3806a9),_0x9d94bc=TestFramework[_0x3c7fd6(0x254)](),_0x9d94bc;}[a74_0xb22eb(0x2c1)](_0x4f3842,_0x4f1b01){const _0x18584c=a74_0xb22eb,_0x4b4734=CLIUtils[_0x18584c(0x291)](),_0x3c833e=TrackedInstance[_0x18584c(0x202)](_0x4b4734);let _0x5589a7=null;logger[_0x18584c(0x20f)]('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0x4b4734+_0x18584c(0x255)+_0x4f3842),_0x5589a7=new TestFrameworkInstance(_0x3c833e,this[_0x18584c(0x2a0)](),this[_0x18584c(0x20a)](),_0x4f3842,HookState[_0x18584c(0x2b2)]),TestFramework[_0x18584c(0x1f9)](_0x3c833e,_0x5589a7),logger[_0x18584c(0x20f)](_0x18584c(0x299)+_0x3c833e[_0x18584c(0x276)]()+_0x18584c(0x245)+_0x4b4734);}[a74_0xb22eb(0x270)](_0x2a0580){const _0x4c10ab=a74_0xb22eb,_0x3a0eae={};_0x3a0eae['BMAsN']='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x56e401=_0x3a0eae,{testUUID:_0x49292e,testData:_0x161557}=_0x2a0580;if(!_0x161557||!_0x161557[_0x4c10ab(0x274)])return logger[_0x4c10ab(0x20f)](_0x56e401[_0x4c10ab(0x29f)]),{};const _0x532f74=_0x49292e,_0x1bbc64=_0x161557['uuid'],_0xe3dc1a=this[_0x4c10ab(0x2a0)]()[0x0],_0x2ddaea=this[_0x4c10ab(0x20a)](),_0x5da7fa={[TestFrameworkConstants[_0x4c10ab(0x1fd)]]:_0xe3dc1a,[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x2ddaea[_0xe3dc1a],[TestFrameworkConstants[_0x4c10ab(0x22c)]]:[],[TestFrameworkConstants[_0x4c10ab(0x246)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants[_0x4c10ab(0x25b)]]:_0x532f74,[TestFrameworkConstants[_0x4c10ab(0x285)]]:TestFrameworkConstants[_0x4c10ab(0x2a9)],[TestFrameworkConstants[_0x4c10ab(0x1f5)]]:_0x161557[_0x4c10ab(0x29b)]||'',[TestFrameworkConstants[_0x4c10ab(0x249)]]:_0x161557[_0x4c10ab(0x280)]||'',[TestFrameworkConstants[_0x4c10ab(0x223)]]:_0x1bbc64,[TestFrameworkConstants[_0x4c10ab(0x290)]]:_0x161557['name']||'',[TestFrameworkConstants[_0x4c10ab(0x238)]]:_0x161557['location']||'',[TestFrameworkConstants[_0x4c10ab(0x23d)]]:_0x161557[_0x4c10ab(0x281)]?.[_0x4c10ab(0x282)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x161557[_0x4c10ab(0x269)]||[],[TestFrameworkConstants[_0x4c10ab(0x27c)]]:_0x161557[_0x4c10ab(0x2b5)]||new Date()[_0x4c10ab(0x2b8)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x161557[_0x4c10ab(0x22f)]?.[0x0]||'',[TestFrameworkConstants[_0x4c10ab(0x21d)]]:_0x161557['scopes']||[],[TestFrameworkConstants[_0x4c10ab(0x29c)]]:_0x161557['customRerunParam']?.[_0x4c10ab(0x24f)]||_0x161557[_0x4c10ab(0x29b)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x161557['meta']||{}};TestInfo[_0x4c10ab(0x24e)](_0x1bbc64,_0x5da7fa),logger['debug'](_0x4c10ab(0x26f)+_0x161557[_0x4c10ab(0x29b)]+_0x4c10ab(0x208)+_0x532f74);const _0x1fdb30={};return _0x1fdb30[_0x1bbc64]=_0x5da7fa,_0x1fdb30;}['parseCucumberTestResult'](_0x114776){const _0x2cb101=a74_0xb22eb,_0xd56697={'WsNza':_0x2cb101(0x27d),'lkMwC':'unknown','LNwdj':function(_0x38d92b,_0x51a174){return _0x38d92b===_0x51a174;},'TIDba':_0x2cb101(0x2b7),'pQWUo':_0x2cb101(0x28c),'oebLO':function(_0x3a3674,_0x2fe52e,_0x21a96b){return _0x3a3674(_0x2fe52e,_0x21a96b);},'xZbwx':function(_0x436fb7,_0x408b38){return _0x436fb7>_0x408b38;}},{testUUID:_0x4ea574,testData:_0x190899}=_0x114776;if(!_0x190899||!_0x190899[_0x2cb101(0x274)])return logger['debug'](_0xd56697[_0x2cb101(0x287)]),{};const _0x1446f1=this['resolveInstance'](TestFrameworkState[_0x2cb101(0x220)],HookState['POST']),_0x2dc21b=_0x190899[_0x2cb101(0x274)],_0x4dda0d=TestInfo[_0x2cb101(0x26e)](_0x2dc21b)||{},_0xcd6d9b=_0x4dda0d?_0x4dda0d[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{}:{},_0x567cf8={..._0x4dda0d,[TestFrameworkConstants[_0x2cb101(0x285)]]:_0x190899['result']||_0xd56697['lkMwC'],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x190899[_0x2cb101(0x217)]||new Date()[_0x2cb101(0x2b8)](),[TestFrameworkConstants[_0x2cb101(0x2bc)]]:new Date()[_0x2cb101(0x2b8)](),[TestFrameworkConstants[_0x2cb101(0x205)]]:_0xcd6d9b,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x190899[_0x2cb101(0x237)]||{}};_0xd56697['LNwdj'](_0x190899['result'],_0xd56697['TIDba'])&&_0x190899[_0x2cb101(0x29a)]&&(_0x567cf8[TestFrameworkConstants[_0x2cb101(0x221)]]=_0x190899[_0x2cb101(0x248)]||_0xd56697[_0x2cb101(0x1f6)],_0x567cf8[TestFrameworkConstants[_0x2cb101(0x222)]]=_0x190899[_0x2cb101(0x24c)]||'',_0x567cf8[TestFrameworkConstants[_0x2cb101(0x1f4)]]=_0x190899[_0x2cb101(0x29a)]);const _0x465652=TestInfo[_0x2cb101(0x26e)](_0x2dc21b)[TestFrameworkConstants[_0x2cb101(0x21a)]]||{},_0x4a0009=_0xd56697[_0x2cb101(0x23c)](getManualUploadLogs,_0x465652,_0x1446f1[_0x2cb101(0x230)]()[_0x2cb101(0x240)](_0x2dc21b)[TestFrameworkConstants[_0x2cb101(0x25b)]]);if(_0xd56697['xZbwx'](_0x4a0009[_0x2cb101(0x201)],0x0)){const _0xdf5347=_0x567cf8[TestFrameworkConstants[_0x2cb101(0x20b)]]||[];_0x567cf8[TestFrameworkConstants[_0x2cb101(0x20b)]]=[..._0xdf5347,..._0x4a0009];}_0x190899['hooks']&&_0xd56697['xZbwx'](_0x190899[_0x2cb101(0x2c0)][_0x2cb101(0x201)],0x0)&&(_0x567cf8[TestFrameworkConstants[_0x2cb101(0x246)]]=_0x190899[_0x2cb101(0x2c0)]);TestInfo[_0x2cb101(0x24e)](_0x2dc21b,_0x567cf8),logger[_0x2cb101(0x20f)](_0x2cb101(0x24b)+_0x190899[_0x2cb101(0x29b)]+_0x2cb101(0x235)+_0x190899[_0x2cb101(0x24a)]);const _0x3d0d40={};return _0x3d0d40[_0x2dc21b]=_0x567cf8,_0x3d0d40;}async['trackHookEvent'](_0x3531f4,_0x42564b,_0x2acaf7,_0x446f57){const _0x1e0619=a74_0xb22eb,_0x272c81={'adWtK':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','dhpSl':function(_0x39b9dd){return _0x39b9dd();},'BtfhV':function(_0x5239c4,_0x3c2206){return _0x5239c4 in _0x3c2206;},'FepYl':function(_0x485aaa,_0x5c4bd3){return _0x485aaa in _0x5c4bd3;},'QuNJo':function(_0x233233,_0x1aed59){return _0x233233===_0x1aed59;},'xCuVi':function(_0x2d0355,_0x57d32c){return _0x2d0355>_0x57d32c;},'cYBEg':function(_0x35d5d2,_0x5a572d){return _0x35d5d2===_0x5a572d;},'hYMRA':'failed','PRSEN':_0x1e0619(0x28c),'NDDZX':'passed','oyhvc':function(_0x2afd32,_0x315b8f){return _0x2afd32!==_0x315b8f;}},{hookData:_0x23aa9e}=_0x446f57;if(!_0x23aa9e)return logger['debug'](_0x272c81[_0x1e0619(0x2a1)]),{};const _0x1272dd=_0x23aa9e[_0x1e0619(0x274)]||_0x272c81[_0x1e0619(0x2af)](uuidv4),_0x5aa974=_0x23aa9e[_0x1e0619(0x22b)],_0x51d55a=_0x42564b[_0x1e0619(0x261)]()[_0x1e0619(0x26a)]('.')[0x1],_0x554565=TestInfo['getTestDetails'](_0x5aa974)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x31435a=_0x3531f4[_0x1e0619(0x230)]()[_0x1e0619(0x240)](_0x5aa974);if(!_0x31435a)return logger['debug'](_0x1e0619(0x258)+_0x5aa974+',\x20storing\x20as\x20pending\x20hook'),this['storePendingHook'](_0x3531f4,_0x5aa974,_0x42564b,_0x2acaf7,_0x446f57),{};let _0x46d29c=_0x31435a[TestFrameworkConstants[_0x1e0619(0x2aa)]];!_0x46d29c&&(_0x46d29c={});!_0x272c81[_0x1e0619(0x23e)](_0x51d55a,_0x46d29c)&&(_0x46d29c[_0x51d55a]=[]);let _0x215c79=_0x31435a[TestFrameworkConstants[_0x1e0619(0x246)]];!_0x215c79&&(_0x215c79={});!_0x272c81['FepYl'](_0x51d55a,_0x215c79)&&(_0x215c79[_0x51d55a]=[]);const _0x442ade={[TestFrameworkConstants[_0x1e0619(0x2aa)]]:_0x46d29c,[TestFrameworkConstants[_0x1e0619(0x246)]]:_0x215c79},_0x46a5a2={};_0x46a5a2[_0x5aa974]=_0x442ade;const _0x28817c=_0x46a5a2;if(_0x272c81['QuNJo'](_0x2acaf7,HookState[_0x1e0619(0x211)])){const _0x3989f0={[TestFrameworkConstants[_0x1e0619(0x273)]]:_0x1272dd,[TestFrameworkConstants[_0x1e0619(0x286)]]:TestFrameworkConstants[_0x1e0619(0x21e)],[TestFrameworkConstants[_0x1e0619(0x2ab)]]:_0x23aa9e[_0x1e0619(0x236)],[TestFrameworkConstants[_0x1e0619(0x22a)]]:[],[TestFrameworkConstants[_0x1e0619(0x216)]]:_0x23aa9e[_0x1e0619(0x1fe)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x554565};_0x3989f0[_0x1e0619(0x212)]=_0x51d55a;const _0x2905e1=_0x3989f0;_0x46d29c[_0x51d55a][_0x1e0619(0x25a)](_0x2905e1),_0x28817c[_0x5aa974][TestFrameworkConstants[_0x1e0619(0x1fc)]]=_0x51d55a,logger[_0x1e0619(0x20f)](_0x1e0619(0x241)+_0x51d55a+'\x20&\x20hook\x20=\x20'+_0x2905e1+_0x1e0619(0x275)+_0x446f57);}else{if(_0x272c81[_0x1e0619(0x204)](_0x2acaf7,HookState[_0x1e0619(0x1f8)])){const _0x8b26f2=_0x23aa9e['result'],_0x2f1671=_0x46d29c[_0x51d55a]||[];logger['debug']('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x2f1671+_0x1e0619(0x2ae)+_0x446f57);if(_0x272c81[_0x1e0619(0x21b)](_0x2f1671[_0x1e0619(0x201)],0x0)){const _0x36e12f=_0x2f1671[_0x1e0619(0x206)]();_0x272c81[_0x1e0619(0x233)](_0x23aa9e[_0x1e0619(0x24a)],_0x272c81[_0x1e0619(0x2be)])&&_0x23aa9e[_0x1e0619(0x23a)]?(_0x36e12f[TestFrameworkConstants[_0x1e0619(0x29e)]]=_0x23aa9e[_0x1e0619(0x248)]||_0x272c81[_0x1e0619(0x242)],_0x36e12f[TestFrameworkConstants[_0x1e0619(0x268)]]=_0x23aa9e[_0x1e0619(0x24c)]||'',_0x36e12f[TestFrameworkConstants[_0x1e0619(0x2a6)]]=_0x23aa9e[_0x1e0619(0x23a)]):_0x36e12f[TestFrameworkConstants[_0x1e0619(0x286)]]=_0x272c81['NDDZX'];_0x272c81[_0x1e0619(0x262)](_0x8b26f2,TestFrameworkConstants[_0x1e0619(0x21e)])&&(_0x36e12f[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x8b26f2);_0x36e12f[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x23aa9e['finished_at']||new Date()[_0x1e0619(0x2b8)](),_0x36e12f[TestFrameworkConstants[_0x1e0619(0x205)]]=_0x554565;const _0x16cd24=_0x36e12f[TestFrameworkConstants[_0x1e0619(0x273)]];!_0x215c79[_0x51d55a]&&(_0x215c79[_0x51d55a]=[]),_0x215c79[_0x51d55a][_0x1e0619(0x25a)](_0x36e12f),_0x28817c[_0x5aa974][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x51d55a;}}}return logger[_0x1e0619(0x20f)](_0x1e0619(0x256)+_0x23aa9e['hook_type']+_0x1e0619(0x266)+_0x1272dd+_0x1e0619(0x279)+_0x5aa974),_0x28817c;}[a74_0xb22eb(0x28f)](_0x3d3041){const _0x541a9c=a74_0xb22eb,_0x22aa9f={};_0x22aa9f[_0x541a9c(0x296)]='base64';const _0xaf14c3=_0x22aa9f;try{const _0x3d163a=_0x3d3041[_0x541a9c(0x272)]?_0x3d3041[_0x541a9c(0x272)]['id']:_0x3d3041[_0x541a9c(0x28e)]['test_run_id'],_0x11a684=_0x3d3041[_0x541a9c(0x234)],_0x3fdb79=_0x11a684['getContext'](),_0x51c033=_0x11a684[_0x541a9c(0x230)]()[_0x541a9c(0x240)](_0x3d163a);if(!_0x51c033)return logger[_0x541a9c(0x20f)](_0x541a9c(0x2bd)+_0x3d163a),{};logger['debug'](_0x541a9c(0x219)+_0x3d163a);const {[TestFrameworkConstants[_0x541a9c(0x1fd)]]:_0x29fe1c='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x6878b3='',[TestFrameworkConstants[_0x541a9c(0x27c)]]:_0x2ffc7a='',[TestFrameworkConstants[_0x541a9c(0x277)]]:_0x530613=''}=_0x51c033,_0x314bed=_0x11a684[_0x541a9c(0x215)]()[_0x541a9c(0x261)]()['split']('.')[0x1],_0x1f0983=_0x11a684['getCurrentHookState']()[_0x541a9c(0x261)]()['split']('.')[0x1],_0x5f4448=global?.[_0x541a9c(0x25e)]??0x0,_0x504c67=_0x11a684['getRef'](),_0x5b4a84=Buffer[_0x541a9c(0x239)](JSON[_0x541a9c(0x214)](_0x51c033))[_0x541a9c(0x261)](_0xaf14c3[_0x541a9c(0x296)]),_0x44d124={'hash':_0x3fdb79[_0x541a9c(0x276)](),'threadId':_0x3fdb79[_0x541a9c(0x2b0)]()[_0x541a9c(0x261)](),'processId':_0x3fdb79['getProcessId']()['toString']()},_0x409222={};_0x409222[_0x541a9c(0x27f)]=_0x5f4448,_0x409222[_0x541a9c(0x23f)]=_0x29fe1c,_0x409222[_0x541a9c(0x284)]=_0x6878b3,_0x409222['testFrameworkState']=_0x314bed,_0x409222[_0x541a9c(0x288)]=_0x1f0983,_0x409222[_0x541a9c(0x2b5)]=_0x2ffc7a,_0x409222['endedAt']=_0x530613,_0x409222['uuid']=_0x504c67,_0x409222['eventJson']=_0x5b4a84,_0x409222[_0x541a9c(0x1ff)]=_0x44d124;const _0x4e2e66=_0x409222;return logger[_0x541a9c(0x20f)](_0x541a9c(0x21f)+_0x3d163a+'\x20testState:\x20'+_0x314bed+_0x541a9c(0x26c)+_0x1f0983),_0x4e2e66;}catch(_0x43eb5c){return logger[_0x541a9c(0x243)](_0x541a9c(0x29d)+util[_0x541a9c(0x2ac)](_0x43eb5c)),{};}}async[a74_0xb22eb(0x250)](_0x49a1be,_0x2deb17,_0x59422c){const _0x4cfdee=a74_0xb22eb,_0x1c2ff3={'lhLSp':function(_0x557dcb,_0x5185b4,_0x23a664){return _0x557dcb(_0x5185b4,_0x23a664);},'TXVCn':function(_0x20d9d6,_0x39249f){return _0x20d9d6===_0x39249f;},'yRmMf':_0x4cfdee(0x265),'MXtEI':function(_0x13bc35,_0x4e6169){return _0x13bc35/_0x4e6169;},'bwGDu':function(_0x3befd1,_0x56f7dd){return _0x3befd1<_0x56f7dd;},'aeaMp':function(_0x23a754,_0x4cf61c){return _0x23a754*_0x4cf61c;},'KkBlN':function(_0x2a280f,_0x2a1136){return _0x2a280f+_0x2a1136;},'bZmNq':function(_0x49fc8b,_0x42d133){return _0x49fc8b+_0x42d133;},'gpQhL':_0x4cfdee(0x227)};try{const _0x8062c0=_0x59422c[_0x4cfdee(0x25c)],_0x47fc5b=_0x49a1be['getAllData']()[_0x4cfdee(0x240)](_0x8062c0),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x56c7ee='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x13a532=''}=_0x47fc5b,_0x4ab1ce=TestInfo[_0x4cfdee(0x20c)](_0x8062c0),_0x3ee86e=TestInfo[_0x4cfdee(0x26e)](_0x8062c0)[TestFrameworkConstants[_0x4cfdee(0x21a)]]||{},_0x2a4e24=_0x1c2ff3[_0x4cfdee(0x224)](getMediaArtifactsLogs,_0x3ee86e,_0x49a1be[_0x4cfdee(0x230)]()[_0x4cfdee(0x240)](_0x8062c0)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x1a4b64=(_0x4ab1ce||[])[_0x4cfdee(0x244)](_0x2a4e24||[]);if(!_0x1a4b64||_0x1c2ff3['TXVCn'](_0x1a4b64['length'],0x0)){logger[_0x4cfdee(0x20f)](_0x1c2ff3[_0x4cfdee(0x200)]);return;}const _0xe14ab0=0x28,_0x4b30c1=Math[_0x4cfdee(0x27e)](_0x1c2ff3[_0x4cfdee(0x293)](_0x1a4b64[_0x4cfdee(0x201)],_0xe14ab0));for(let _0xe5f365=0x0;_0x1c2ff3[_0x4cfdee(0x2b1)](_0xe5f365,_0x4b30c1);_0xe5f365++){const _0x244e1c=_0x1c2ff3[_0x4cfdee(0x247)](_0xe5f365,_0xe14ab0),_0x698c09=_0x1c2ff3[_0x4cfdee(0x278)](_0x244e1c,_0xe14ab0),_0x3fbb0e=_0x1a4b64[_0x4cfdee(0x229)](_0x244e1c,_0x698c09),_0x6b83e5={'platformIndex':global?.[_0x4cfdee(0x25e)]??0x0,'logs':_0x3fbb0e,'testFrameworkName':_0x56c7ee,'testFrameworkVersion':_0x13a532,'testFrameworkState':_0x2deb17[_0x4cfdee(0x261)]()['split']('.')[0x1]};logger['debug'](_0x4cfdee(0x267)+_0x8062c0+_0x4cfdee(0x2b4)+_0x1c2ff3[_0x4cfdee(0x278)](_0xe5f365,0x1)+'/'+_0x4b30c1+'\x20payload='+util['inspect'](_0x6b83e5));const _0x1848b6=await GrpcClient[_0x4cfdee(0x23b)]()[_0x4cfdee(0x264)](_0x6b83e5);logger[_0x4cfdee(0x20f)](_0x4cfdee(0x267)+_0x8062c0+_0x4cfdee(0x2b4)+_0x1c2ff3[_0x4cfdee(0x27b)](_0xe5f365,0x1)+'/'+_0x4b30c1+_0x4cfdee(0x2bf)+util[_0x4cfdee(0x2bb)](_0x1848b6));}}catch(_0x52ba2e){logger[_0x4cfdee(0x243)]('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util['format'](_0x52ba2e));}logger[_0x4cfdee(0x20f)](_0x1c2ff3[_0x4cfdee(0x2a5)]);}['storePendingHook'](_0x28e216,_0x3789e8,_0x139739,_0x3f6f2b,_0xcc4ffd){const _0x4db70e=a74_0xb22eb,_0x105a15={'testId':_0x3789e8,'testFrameworkState':_0x139739,'hookState':_0x3f6f2b,'args':_0xcc4ffd,'timestamp':new Date()['toISOString']()};_0x28e216[_0x4db70e(0x218)](_0x3789e8,_0x105a15),logger['debug'](_0x4db70e(0x228)+_0x3789e8+_0x4db70e(0x20e)+_0x139739+_0x4db70e(0x1f3)+_0x3f6f2b);}async[a74_0xb22eb(0x252)](_0x5edc20,_0x17365b){const _0x4d702d=a74_0xb22eb,_0x4c87a={};_0x4c87a['KELrD']=function(_0x345eae,_0x2c667e){return _0x345eae>_0x2c667e;};const _0x1d608e=_0x4c87a;if(!_0x5edc20[_0x4d702d(0x2c2)](_0x17365b))return;const _0x3caafa=_0x5edc20[_0x4d702d(0x297)](_0x17365b);logger[_0x4d702d(0x20f)](_0x4d702d(0x26b)+_0x3caafa[_0x4d702d(0x201)]+_0x4d702d(0x2ad)+_0x17365b);for(const _0x4822f9 of _0x3caafa){try{const _0x4dfcb4=await this[_0x4d702d(0x294)](_0x5edc20,_0x4822f9[_0x4d702d(0x231)],_0x4822f9[_0x4d702d(0x288)],_0x4822f9[_0x4d702d(0x2a2)]);_0x4dfcb4&&_0x1d608e[_0x4d702d(0x271)](Object[_0x4d702d(0x225)](_0x4dfcb4)[_0x4d702d(0x201)],0x0)&&_0x5edc20[_0x4d702d(0x2a3)](_0x4dfcb4),await this[_0x4d702d(0x28d)](_0x5edc20,_0x4822f9[_0x4d702d(0x231)],_0x4822f9['hookState'],_0x4822f9[_0x4d702d(0x2a2)]);}catch(_0x2b9d15){logger[_0x4d702d(0x243)](_0x4d702d(0x251)+_0x17365b+',\x20error:\x20'+_0x2b9d15);}}_0x5edc20['removePendingHooks'](_0x17365b),logger[_0x4d702d(0x20f)](_0x4d702d(0x2b9)+_0x17365b);}}module[a74_0xb22eb(0x292)]=CucumberTestFramework;
|
|
1
|
+
const a74_0x184ba3=a74_0x21de;function a74_0x21de(_0x599d83,_0x4bbdff){const _0x84cd7e=a74_0x84cd();return a74_0x21de=function(_0x21de3c,_0x4284ba){_0x21de3c=_0x21de3c-0x184;let _0x36b9b5=_0x84cd7e[_0x21de3c];return _0x36b9b5;},a74_0x21de(_0x599d83,_0x4bbdff);}function a74_0x84cd(){const _0xad536=['split','afxBe','KEY_TEST_RESULT','UnhandledError','getTestFrameworks','getAllData','slice','TNJcn','KEY_TEST_NAME','KEY_HOOK_FAILURE_TYPE','KEY_HOOK_FAILURE','debug','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','./constants/testFrameworkConstants.js','9933405DZqdiz','getInstance','Ltmlf','TBjFE','createTestFrameworkEventPayload','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','body','addMultipleEntries','error','trackHookEvent','failure_type','KEY_HOOK_ID',',\x20hookState:\x20','started_at','KEY_TEST_ID','2600656wsSboM','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_TEST_TAGS','trackCucumberInstance','createTestFrameworkEventPayload\x20testId:\x20','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','3843018tjVate','getRef','KEY_EVENT_ENDED_AT','KEY_TEST_RERUN_NAME','yIxyw','failed','addPendingHook','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','parseCucumberTest','../grpcClient','executionContext','meta','hasPendingHooks','failure','GiwhZ','IjsOp','removePendingHooks','test_run_id','jeLxK','testUUID','KEY_TEST_RESULT_AT','parseCucumberTestResult','getTestDetails','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','hookState','failure_data','keys','pop','peGsJ','getId','../cliUtils.js','from','getTestUUID','PRE','11784951SLHwpt','unknown',',\x20storing\x20as\x20pending\x20hook','KEY_TEST_FILE_PATH','getCurrentTestState','RhDfK','../state/testFrameworkState.js','KEY_TEST_FRAMEWORK_NAME','resolveInstance','bqxlP','dcKSR','util','\x20for\x20test:\x20','startedAt','6zuxgxf','storePendingHook','6845012MuKUWL','ijuwq','Error\x20in\x20createTestFrameworkEventPayload:\x20','test','hooks','vtbvW','\x20with\x20result:\x20','passed','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','location','sdEZk','KEY_TEST_STARTED_AT','iVkGp','endedAt','KEY_CUSTOM_TAGS','TEST','tags','DICuW','getContext','MePfC','processPendingHooks','push','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','\x20&\x20hook\x20=\x20','args','KEY_HOOK_LOGS','mMuxl','ceil','../../../helpers/helper.js','key','toString','468726RDlSeK','length','KEY_HOOK_RESULT','aOpFy','testFrameworkVersion','8veRBgV','zmUzc','testFrameworkName','get','POST','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','scopes','result','KEY_HOOK_FAILURE_REASON','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','../instances/trackedInstance.js','getTrackedInstance','KEY_TEST_META','iYmjZ','\x20&\x20hookState=','\x20with\x20UUID:\x20','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','getThreadId','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','browserstackPlatformIndex','\x20\x20and\x20args\x20=\x20','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_TEST_SCOPES','Wwybj','customRerunParam','bDDbs','\x20and\x20args\x20=\x20','exports','./testFramework','../TestInfo.js','KEY_HOOK_LAST_STARTED','LOG_REPORT',',\x20state=','KEY_LOGS','\x20testState:\x20','failure_reason','finishedAt','logCreatedEvent','KEY_TEST_FAILURE_TYPE','oUXMO','553966XipHXX','sendLogCreatedEvent','uuid','trackCucumberInstance:\x20saved\x20instance\x20contextId=','KEY_TEST_UUID','KEY_TEST_FRAMEWORK_VERSION','finished_at','KEY_EVENT_STARTED_AT','\x20hookState:\x20','KEY_TEST_LOCATION','\x20with\x20id\x20','getCurrentInstanceName','LoxUV','DEFAULT_TEST_RESULT','wsebw','platformIndex','hook_type','KEY_TEST_ATTACHMENTS','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','format','runHooks','KEY_TEST_CODE',',\x20error:\x20','concat','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','toISOString','KEY_TEST_SCOPE','KEY_HOOKS_STARTED','base64','DEFAULT_HOOK_RESULT','trackEvent','Updated\x20cucumber\x20test\x20result:\x20','Processing\x20','readLogObjects','name','hookData','\x20batch\x20','KEY_TEST_ENDED_AT','testData','../../../helpers/classLogger.js','trackEvent:\x20unsupported\x20testFrameworkState=','KEY_TEST_FAILURE','testFrameworkState','KEY_HOOKS_FINISHED'];a74_0x84cd=function(){return _0xad536;};return a74_0x84cd();}(function(_0x2db49d,_0x450f93){const _0x55243d=a74_0x21de,_0x455e03=_0x2db49d();while(!![]){try{const _0x148437=-parseInt(_0x55243d(0x215))/0x1+parseInt(_0x55243d(0x1be))/0x2+parseInt(_0x55243d(0x1c4))/0x3+-parseInt(_0x55243d(0x1f6))/0x4+-parseInt(_0x55243d(0x1af))/0x5*(-parseInt(_0x55243d(0x1f4))/0x6)+parseInt(_0x55243d(0x242))/0x7*(-parseInt(_0x55243d(0x21a))/0x8)+-parseInt(_0x55243d(0x1e6))/0x9;if(_0x148437===_0x450f93)break;else _0x455e03['push'](_0x455e03['shift']());}catch(_0x4b09d1){_0x455e03['push'](_0x455e03['shift']());}}}(a74_0x84cd,0xf4023));const TestFramework=require(a74_0x184ba3(0x236)),TestFrameworkState=require(a74_0x184ba3(0x1ec)),HookState=require('../state/hookState.js'),{createClassLogger}=require(a74_0x184ba3(0x19c)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a74_0x184ba3(0x1e2)),TrackedInstance=require(a74_0x184ba3(0x224)),TestFrameworkConstants=require(a74_0x184ba3(0x1ae)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a74_0x184ba3(0x212)),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require(a74_0x184ba3(0x244)),util=require(a74_0x184ba3(0x1f1)),TestInfo=require(a74_0x184ba3(0x237)),GrpcClient=require(a74_0x184ba3(0x1cd));class CucumberTestFramework extends TestFramework{constructor(_0x220c01,_0xdee5f2,_0x531c5b){super(_0x220c01,_0xdee5f2,_0x531c5b);}async[a74_0x184ba3(0x193)](_0xd8a44e,_0x5d9861,_0x18d7f2={}){const _0x2d1b2a=a74_0x184ba3,_0x24b547={};_0x24b547[_0x2d1b2a(0x24e)]=_0x2d1b2a(0x1db),_0x24b547[_0x2d1b2a(0x1a8)]=function(_0x5f303b,_0x1c6b04){return _0x5f303b===_0x1c6b04;},_0x24b547['GiwhZ']='trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s';const _0x1778d3=_0x24b547;await super[_0x2d1b2a(0x193)](_0xd8a44e,_0x5d9861,_0x18d7f2);const _0x2e377e=this['resolveInstance'](_0xd8a44e,_0x5d9861,_0x18d7f2);if(!_0x2e377e){logger['debug'](_0x1778d3[_0x2d1b2a(0x24e)]);return;}try{let _0x2ec4cf,_0x364593;switch(_0xd8a44e){case TestFrameworkState[_0x2d1b2a(0x205)]:_0x2ec4cf=_0x18d7f2[_0x2d1b2a(0x1f9)],_0x364593=TestInfo[_0x2d1b2a(0x1e4)](_0x2ec4cf['id']);if(_0x1778d3['TNJcn'](_0x5d9861,HookState[_0x2d1b2a(0x1e5)])){logger[_0x2d1b2a(0x1ac)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x2ec4cf['id']);const _0x16cedd={};_0x16cedd['testUUID']=_0x364593,_0x16cedd[_0x2d1b2a(0x19b)]=_0x2ec4cf,_0x2e377e['addMultipleEntries'](this[_0x2d1b2a(0x1cc)](_0x16cedd)),logger[_0x2d1b2a(0x1ac)](_0x2d1b2a(0x1c3)+_0x2ec4cf['id']),await this[_0x2d1b2a(0x20a)](_0x2e377e,_0x2ec4cf['id']);}else{if(_0x1778d3[_0x2d1b2a(0x1a8)](_0x5d9861,HookState[_0x2d1b2a(0x21e)])){const _0x20cd97={};_0x20cd97[_0x2d1b2a(0x1d7)]=_0x364593,_0x20cd97[_0x2d1b2a(0x19b)]=_0x2ec4cf,_0x2e377e['addMultipleEntries'](this[_0x2d1b2a(0x1d9)](_0x20cd97)),await this[_0x2d1b2a(0x20a)](_0x2e377e,_0x2ec4cf['id']);}}break;case TestFrameworkState[_0x2d1b2a(0x239)]:_0x1778d3['TNJcn'](_0x5d9861,HookState[_0x2d1b2a(0x21e)])&&await this[_0x2d1b2a(0x243)](_0x2e377e,_0xd8a44e,_0x18d7f2);break;default:if(CLIUtils['matchHookRegex'](_0xd8a44e[_0x2d1b2a(0x214)]()['split']('.')[0x1])){const _0x353fe2=await this[_0x2d1b2a(0x1b8)](_0x2e377e,_0xd8a44e,_0x5d9861,_0x18d7f2);_0x2e377e[_0x2d1b2a(0x1b6)](_0x353fe2);}else logger[_0x2d1b2a(0x1ac)](_0x2d1b2a(0x19d)+_0xd8a44e+_0x2d1b2a(0x228)+_0x5d9861);break;}}catch(_0x3c7190){logger[_0x2d1b2a(0x1b7)](util['format'](_0x1778d3[_0x2d1b2a(0x1d2)],_0xd8a44e,_0x5d9861,_0x18d7f2[_0x2d1b2a(0x216)],_0x3c7190));}_0x18d7f2['instance']=_0x2e377e,await this[_0x2d1b2a(0x189)](_0x2e377e,_0xd8a44e,_0x5d9861,_0x18d7f2);}[a74_0x184ba3(0x1ee)](_0x1cb6ca,_0x30710b,_0x1abe69={}){const _0x505107=a74_0x184ba3,_0x23b11b={};_0x23b11b[_0x505107(0x227)]=function(_0x20c902,_0x1af681){return _0x20c902===_0x1af681;};const _0x24d8fa=_0x23b11b;let _0x28f951=null;return(_0x24d8fa[_0x505107(0x227)](_0x1cb6ca,TestFrameworkState['INIT_TEST'])||_0x24d8fa['iYmjZ'](_0x1cb6ca,TestFrameworkState['NONE']))&&this[_0x505107(0x1c1)](_0x1cb6ca,_0x1abe69),_0x28f951=TestFramework[_0x505107(0x225)](),_0x28f951;}['trackCucumberInstance'](_0x28304e,_0x2089f){const _0x19c941=a74_0x184ba3,_0x43c8eb=CLIUtils[_0x19c941(0x24d)](),_0x29724f=TrackedInstance['createContext'](_0x43c8eb);let _0x2910c7=null;logger['debug'](_0x19c941(0x20c)+_0x43c8eb+_0x19c941(0x23a)+_0x28304e),_0x2910c7=new TestFrameworkInstance(_0x29724f,this[_0x19c941(0x1a5)](),this['getTestFrameworksVersions'](),_0x28304e,HookState['NONE']),TestFramework['setTrackedInstance'](_0x29724f,_0x2910c7),logger['debug'](_0x19c941(0x245)+_0x29724f['getId']()+'\x20target='+_0x43c8eb);}['parseCucumberTest'](_0x397a3a){const _0x2ed8cf=a74_0x184ba3,_0x1d3f48={};_0x1d3f48[_0x2ed8cf(0x241)]=_0x2ed8cf(0x18d);const _0x5ecf3b=_0x1d3f48,{testUUID:_0x51174e,testData:_0x5668af}=_0x397a3a;if(!_0x5668af||!_0x5668af[_0x2ed8cf(0x244)])return logger[_0x2ed8cf(0x1ac)](_0x5ecf3b['oUXMO']),{};const _0x276884=_0x51174e,_0x125127=_0x5668af[_0x2ed8cf(0x244)],_0x4c861c=this['getTestFrameworks']()[0x0],_0xbc4e40=this['getTestFrameworksVersions'](),_0x18e2ef={[TestFrameworkConstants[_0x2ed8cf(0x1ed)]]:_0x4c861c,[TestFrameworkConstants[_0x2ed8cf(0x247)]]:_0xbc4e40[_0x4c861c],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants[_0x2ed8cf(0x1a0)]]:{},[TestFrameworkConstants[_0x2ed8cf(0x190)]]:{},[TestFrameworkConstants[_0x2ed8cf(0x246)]]:_0x276884,[TestFrameworkConstants[_0x2ed8cf(0x1a3)]]:TestFrameworkConstants[_0x2ed8cf(0x24f)],[TestFrameworkConstants['KEY_AUTOMATE_SESSION_NAME']]:_0x5668af[_0x2ed8cf(0x197)]||'',[TestFrameworkConstants[_0x2ed8cf(0x1e9)]]:_0x5668af['file_name']||'',[TestFrameworkConstants[_0x2ed8cf(0x1bd)]]:_0x125127,[TestFrameworkConstants[_0x2ed8cf(0x1a9)]]:_0x5668af['name']||'',[TestFrameworkConstants[_0x2ed8cf(0x24b)]]:_0x5668af[_0x2ed8cf(0x1ff)]||'',[TestFrameworkConstants[_0x2ed8cf(0x18a)]]:_0x5668af[_0x2ed8cf(0x1b5)]?.['code']||null,[TestFrameworkConstants[_0x2ed8cf(0x1c0)]]:_0x5668af[_0x2ed8cf(0x206)]||[],[TestFrameworkConstants[_0x2ed8cf(0x201)]]:_0x5668af[_0x2ed8cf(0x1f3)]||new Date()['toISOString'](),[TestFrameworkConstants[_0x2ed8cf(0x18f)]]:_0x5668af[_0x2ed8cf(0x220)]?.[0x0]||'',[TestFrameworkConstants[_0x2ed8cf(0x230)]]:_0x5668af['scopes']||[],[TestFrameworkConstants[_0x2ed8cf(0x1c7)]]:_0x5668af[_0x2ed8cf(0x232)]?.['rerun_name']||_0x5668af[_0x2ed8cf(0x197)]||'',[TestFrameworkConstants[_0x2ed8cf(0x204)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x5668af[_0x2ed8cf(0x1cf)]||{}};TestInfo['setTestDetails'](_0x125127,_0x18e2ef),logger[_0x2ed8cf(0x1ac)]('Parsed\x20cucumber\x20test:\x20'+_0x5668af[_0x2ed8cf(0x197)]+_0x2ed8cf(0x229)+_0x276884);const _0x55cf7e={};return _0x55cf7e[_0x125127]=_0x18e2ef,_0x55cf7e;}[a74_0x184ba3(0x1d9)](_0x14e3ea){const _0x371053=a74_0x184ba3,_0x10e61d={'mMuxl':_0x371053(0x1ad),'afxBe':_0x371053(0x1e7),'jeLxK':function(_0x416de9,_0x553248){return _0x416de9===_0x553248;},'IjsOp':_0x371053(0x1c9),'BGeyp':_0x371053(0x1a4),'MePfC':function(_0x415c2e,_0x721827,_0x261295){return _0x415c2e(_0x721827,_0x261295);},'vtbvW':function(_0x3ffe66,_0x1d9f0c){return _0x3ffe66>_0x1d9f0c;}},{testUUID:_0x5d0ff7,testData:_0x2bac20}=_0x14e3ea;if(!_0x2bac20||!_0x2bac20['uuid'])return logger[_0x371053(0x1ac)](_0x10e61d[_0x371053(0x210)]),{};const _0x575653=this[_0x371053(0x1ee)](TestFrameworkState[_0x371053(0x205)],HookState[_0x371053(0x21e)]),_0x5d4e9b=_0x2bac20[_0x371053(0x244)],_0x3ca336=TestInfo['getTestDetails'](_0x5d4e9b)||{},_0x126dbc=_0x3ca336?_0x3ca336[TestFrameworkConstants[_0x371053(0x204)]]||{}:{},_0x8122b9={..._0x3ca336,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x2bac20[_0x371053(0x221)]||_0x10e61d[_0x371053(0x1a2)],[TestFrameworkConstants[_0x371053(0x19a)]]:_0x2bac20[_0x371053(0x23e)]||new Date()[_0x371053(0x18e)](),[TestFrameworkConstants[_0x371053(0x1d8)]]:new Date()[_0x371053(0x18e)](),[TestFrameworkConstants[_0x371053(0x204)]]:_0x126dbc,[TestFrameworkConstants[_0x371053(0x23b)]]:[],[TestFrameworkConstants[_0x371053(0x226)]]:_0x2bac20['meta']||{}};_0x10e61d[_0x371053(0x1d6)](_0x2bac20[_0x371053(0x221)],_0x10e61d[_0x371053(0x1d3)])&&_0x2bac20[_0x371053(0x1d1)]&&(_0x8122b9[TestFrameworkConstants[_0x371053(0x240)]]=_0x2bac20[_0x371053(0x1b9)]||_0x10e61d['BGeyp'],_0x8122b9[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x2bac20[_0x371053(0x23d)]||'',_0x8122b9[TestFrameworkConstants[_0x371053(0x19e)]]=_0x2bac20[_0x371053(0x1d1)]);const _0x5ef223=TestInfo[_0x371053(0x1da)](_0x5d4e9b)[TestFrameworkConstants[_0x371053(0x186)]]||{},_0x369753=_0x10e61d[_0x371053(0x209)](getManualUploadLogs,_0x5ef223,_0x575653[_0x371053(0x1a6)]()[_0x371053(0x21d)](_0x5d4e9b)[TestFrameworkConstants[_0x371053(0x246)]]);if(_0x10e61d[_0x371053(0x1fb)](_0x369753['length'],0x0)){const _0x222b81=_0x8122b9[TestFrameworkConstants[_0x371053(0x23b)]]||[];_0x8122b9[TestFrameworkConstants['KEY_LOGS']]=[..._0x222b81,..._0x369753];}_0x2bac20[_0x371053(0x1fa)]&&_0x10e61d['vtbvW'](_0x2bac20['hooks'][_0x371053(0x216)],0x0)&&(_0x8122b9[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x2bac20[_0x371053(0x1fa)]);TestInfo['setTestDetails'](_0x5d4e9b,_0x8122b9),logger['debug'](_0x371053(0x194)+_0x2bac20[_0x371053(0x197)]+_0x371053(0x1fc)+_0x2bac20['result']);const _0x8166b5={};return _0x8166b5[_0x5d4e9b]=_0x8122b9,_0x8166b5;}async[a74_0x184ba3(0x1b8)](_0xb28022,_0x317b33,_0x2c8465,_0x26bd12){const _0x43d42f=a74_0x184ba3,_0x113075={'RhDfK':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','wsebw':function(_0xca22d1){return _0xca22d1();},'bqxlP':function(_0x4b0085,_0xb2b649){return _0x4b0085 in _0xb2b649;},'dcKSR':function(_0x2c05f1,_0x21f37f){return _0x2c05f1 in _0x21f37f;},'DICuW':function(_0x50b128,_0x4ea060){return _0x50b128===_0x4ea060;},'bDDbs':function(_0x1eaac9,_0x587ab8){return _0x1eaac9>_0x587ab8;},'TugXw':_0x43d42f(0x1c9),'zmUzc':_0x43d42f(0x1a4),'peGsJ':_0x43d42f(0x1fd),'ijuwq':function(_0xec5b39,_0x4e29c4){return _0xec5b39!==_0x4e29c4;}},{hookData:_0x7393e0}=_0x26bd12;if(!_0x7393e0)return logger[_0x43d42f(0x1ac)](_0x113075[_0x43d42f(0x1eb)]),{};const _0x4880be=_0x7393e0[_0x43d42f(0x244)]||_0x113075[_0x43d42f(0x250)](uuidv4),_0x11bd32=_0x7393e0[_0x43d42f(0x1d5)],_0x6a3bf9=_0x317b33[_0x43d42f(0x214)]()[_0x43d42f(0x1a1)]('.')[0x1],_0x521c15=TestInfo[_0x43d42f(0x1da)](_0x11bd32)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x5e8f92=_0xb28022[_0x43d42f(0x1a6)]()[_0x43d42f(0x21d)](_0x11bd32);if(!_0x5e8f92)return logger[_0x43d42f(0x1ac)](_0x43d42f(0x1cb)+_0x11bd32+_0x43d42f(0x1e8)),this['storePendingHook'](_0xb28022,_0x11bd32,_0x317b33,_0x2c8465,_0x26bd12),{};let _0x3ca236=_0x5e8f92[TestFrameworkConstants[_0x43d42f(0x190)]];!_0x3ca236&&(_0x3ca236={});!_0x113075[_0x43d42f(0x1ef)](_0x6a3bf9,_0x3ca236)&&(_0x3ca236[_0x6a3bf9]=[]);let _0x2f6ed5=_0x5e8f92[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x2f6ed5&&(_0x2f6ed5={});!_0x113075[_0x43d42f(0x1f0)](_0x6a3bf9,_0x2f6ed5)&&(_0x2f6ed5[_0x6a3bf9]=[]);const _0x14a8e9={[TestFrameworkConstants[_0x43d42f(0x190)]]:_0x3ca236,[TestFrameworkConstants[_0x43d42f(0x1a0)]]:_0x2f6ed5},_0x4fd440={};_0x4fd440[_0x11bd32]=_0x14a8e9;const _0x6d8375=_0x4fd440;if(_0x113075[_0x43d42f(0x207)](_0x2c8465,HookState['PRE'])){const _0x516691={[TestFrameworkConstants[_0x43d42f(0x1ba)]]:_0x4880be,[TestFrameworkConstants[_0x43d42f(0x217)]]:TestFrameworkConstants[_0x43d42f(0x192)],[TestFrameworkConstants[_0x43d42f(0x249)]]:_0x7393e0[_0x43d42f(0x1bc)],[TestFrameworkConstants[_0x43d42f(0x20f)]]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x7393e0[_0x43d42f(0x185)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x521c15};_0x516691[_0x43d42f(0x213)]=_0x6a3bf9;const _0x23a035=_0x516691;_0x3ca236[_0x6a3bf9][_0x43d42f(0x20b)](_0x23a035),_0x6d8375[_0x11bd32][TestFrameworkConstants[_0x43d42f(0x238)]]=_0x6a3bf9,logger[_0x43d42f(0x1ac)](_0x43d42f(0x21f)+_0x6a3bf9+_0x43d42f(0x20d)+_0x23a035+_0x43d42f(0x22e)+_0x26bd12);}else{if(_0x113075[_0x43d42f(0x207)](_0x2c8465,HookState['POST'])){const _0x1527db=_0x7393e0[_0x43d42f(0x221)],_0xc41c59=_0x3ca236[_0x6a3bf9]||[];logger[_0x43d42f(0x1ac)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0xc41c59+_0x43d42f(0x234)+_0x26bd12);if(_0x113075[_0x43d42f(0x233)](_0xc41c59[_0x43d42f(0x216)],0x0)){const _0x5c57b7=_0xc41c59[_0x43d42f(0x1df)]();_0x113075[_0x43d42f(0x207)](_0x7393e0[_0x43d42f(0x221)],_0x113075['TugXw'])&&_0x7393e0['failure_data']?(_0x5c57b7[TestFrameworkConstants[_0x43d42f(0x1aa)]]=_0x7393e0[_0x43d42f(0x1b9)]||_0x113075[_0x43d42f(0x21b)],_0x5c57b7[TestFrameworkConstants[_0x43d42f(0x222)]]=_0x7393e0[_0x43d42f(0x23d)]||'',_0x5c57b7[TestFrameworkConstants[_0x43d42f(0x1ab)]]=_0x7393e0[_0x43d42f(0x1dd)]):_0x5c57b7[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x113075[_0x43d42f(0x1e0)];_0x113075[_0x43d42f(0x1f7)](_0x1527db,TestFrameworkConstants[_0x43d42f(0x192)])&&(_0x5c57b7[TestFrameworkConstants[_0x43d42f(0x217)]]=_0x1527db);_0x5c57b7[TestFrameworkConstants[_0x43d42f(0x1c6)]]=_0x7393e0[_0x43d42f(0x248)]||new Date()['toISOString'](),_0x5c57b7[TestFrameworkConstants[_0x43d42f(0x204)]]=_0x521c15;const _0x41b814=_0x5c57b7[TestFrameworkConstants[_0x43d42f(0x1ba)]];!_0x2f6ed5[_0x6a3bf9]&&(_0x2f6ed5[_0x6a3bf9]=[]),_0x2f6ed5[_0x6a3bf9][_0x43d42f(0x20b)](_0x5c57b7),_0x6d8375[_0x11bd32][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x6a3bf9;}}}return logger[_0x43d42f(0x1ac)](_0x43d42f(0x1bf)+_0x7393e0[_0x43d42f(0x185)]+_0x43d42f(0x24c)+_0x4880be+_0x43d42f(0x1f2)+_0x11bd32),_0x6d8375;}[a74_0x184ba3(0x1b3)](_0x19e26a){const _0x210066=a74_0x184ba3,_0x5ef127={};_0x5ef127[_0x210066(0x202)]=_0x210066(0x191);const _0x147004=_0x5ef127;try{const _0x260aeb=_0x19e26a[_0x210066(0x1f9)]?_0x19e26a['test']['id']:_0x19e26a[_0x210066(0x198)][_0x210066(0x1d5)],_0x2a2623=_0x19e26a['instance'],_0x3415e1=_0x2a2623[_0x210066(0x208)](),_0x3ae28e=_0x2a2623[_0x210066(0x1a6)]()[_0x210066(0x21d)](_0x260aeb);if(!_0x3ae28e)return logger[_0x210066(0x1ac)](_0x210066(0x22c)+_0x260aeb),{};logger['debug'](_0x210066(0x1c2)+_0x260aeb);const {[TestFrameworkConstants[_0x210066(0x1ed)]]:_0x589b2d='',[TestFrameworkConstants[_0x210066(0x247)]]:_0x32163b='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x2d1e1d='',[TestFrameworkConstants[_0x210066(0x19a)]]:_0x3e209a=''}=_0x3ae28e,_0x53c3ce=_0x2a2623[_0x210066(0x1ea)]()[_0x210066(0x214)]()[_0x210066(0x1a1)]('.')[0x1],_0x3d4bcc=_0x2a2623['getCurrentHookState']()[_0x210066(0x214)]()[_0x210066(0x1a1)]('.')[0x1],_0x1c037b=global?.[_0x210066(0x22d)]??0x0,_0x554aef=_0x2a2623[_0x210066(0x1c5)](),_0x52e62f=Buffer[_0x210066(0x1e3)](JSON['stringify'](_0x3ae28e))['toString'](_0x147004['iVkGp']),_0x393f85={'hash':_0x3415e1[_0x210066(0x1e1)](),'threadId':_0x3415e1[_0x210066(0x22b)]()[_0x210066(0x214)](),'processId':_0x3415e1['getProcessId']()['toString']()},_0x300e30={};_0x300e30[_0x210066(0x184)]=_0x1c037b,_0x300e30[_0x210066(0x21c)]=_0x589b2d,_0x300e30[_0x210066(0x219)]=_0x32163b,_0x300e30[_0x210066(0x19f)]=_0x53c3ce,_0x300e30['hookState']=_0x3d4bcc,_0x300e30['startedAt']=_0x2d1e1d,_0x300e30[_0x210066(0x203)]=_0x3e209a,_0x300e30[_0x210066(0x244)]=_0x554aef,_0x300e30['eventJson']=_0x52e62f,_0x300e30[_0x210066(0x1ce)]=_0x393f85;const _0x6d687a=_0x300e30;return logger['debug'](_0x210066(0x22a)+_0x260aeb+_0x210066(0x23c)+_0x53c3ce+_0x210066(0x24a)+_0x3d4bcc),_0x6d687a;}catch(_0x43cf9d){return logger[_0x210066(0x1b7)](_0x210066(0x1f8)+util[_0x210066(0x188)](_0x43cf9d)),{};}}async[a74_0x184ba3(0x243)](_0x211c0f,_0x7c7b43,_0x5b23f1){const _0x3a3cd2=a74_0x184ba3,_0x4a2f18={'yIxyw':function(_0x1e083e,_0x10bbd1,_0x5ca9cb){return _0x1e083e(_0x10bbd1,_0x5ca9cb);},'qDgUA':function(_0x4d77f4,_0xbbf4ee){return _0x4d77f4===_0xbbf4ee;},'sdEZk':_0x3a3cd2(0x1b4),'vyICs':function(_0x51c1c7,_0x38b6c4){return _0x51c1c7/_0x38b6c4;},'Ltmlf':function(_0xf1a407,_0x59b311){return _0xf1a407<_0x59b311;},'krveA':function(_0x505fb5,_0x39dd46){return _0x505fb5*_0x39dd46;},'Wwybj':function(_0x3e0f4a,_0x523699){return _0x3e0f4a+_0x523699;},'ubrRj':function(_0x1526fd,_0x263d26){return _0x1526fd+_0x263d26;},'TBjFE':'Cucumber\x20log\x20created\x20event'};try{const _0x1b2462=_0x5b23f1[_0x3a3cd2(0x1d7)],_0x3d66b1=_0x211c0f[_0x3a3cd2(0x1a6)]()[_0x3a3cd2(0x21d)](_0x1b2462),{[TestFrameworkConstants[_0x3a3cd2(0x1ed)]]:_0x187b17='',[TestFrameworkConstants[_0x3a3cd2(0x247)]]:_0x333f72=''}=_0x3d66b1,_0x57132a=TestInfo[_0x3a3cd2(0x196)](_0x1b2462),_0x104300=TestInfo[_0x3a3cd2(0x1da)](_0x1b2462)[TestFrameworkConstants[_0x3a3cd2(0x186)]]||{},_0x391180=_0x4a2f18[_0x3a3cd2(0x1c8)](getMediaArtifactsLogs,_0x104300,_0x211c0f['getAllData']()[_0x3a3cd2(0x21d)](_0x1b2462)[TestFrameworkConstants[_0x3a3cd2(0x246)]]),_0x144b05=(_0x57132a||[])[_0x3a3cd2(0x18c)](_0x391180||[]);if(!_0x144b05||_0x4a2f18['qDgUA'](_0x144b05['length'],0x0)){logger[_0x3a3cd2(0x1ac)](_0x4a2f18[_0x3a3cd2(0x200)]);return;}const _0x1457f8=0x28,_0x1d2abb=Math[_0x3a3cd2(0x211)](_0x4a2f18['vyICs'](_0x144b05[_0x3a3cd2(0x216)],_0x1457f8));for(let _0x57afe2=0x0;_0x4a2f18[_0x3a3cd2(0x1b1)](_0x57afe2,_0x1d2abb);_0x57afe2++){const _0x54d0f6=_0x4a2f18['krveA'](_0x57afe2,_0x1457f8),_0x306995=_0x4a2f18[_0x3a3cd2(0x231)](_0x54d0f6,_0x1457f8),_0x365289=_0x144b05[_0x3a3cd2(0x1a7)](_0x54d0f6,_0x306995),_0x3161fc={'platformIndex':global?.[_0x3a3cd2(0x22d)]??0x0,'logs':_0x365289,'testFrameworkName':_0x187b17,'testFrameworkVersion':_0x333f72,'testFrameworkState':_0x7c7b43[_0x3a3cd2(0x214)]()[_0x3a3cd2(0x1a1)]('.')[0x1]};logger[_0x3a3cd2(0x1ac)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x1b2462+'\x20batch\x20'+_0x4a2f18[_0x3a3cd2(0x231)](_0x57afe2,0x1)+'/'+_0x1d2abb+'\x20payload='+util['inspect'](_0x3161fc));const _0x3703ee=await GrpcClient[_0x3a3cd2(0x1b0)]()[_0x3a3cd2(0x23f)](_0x3161fc);logger['debug'](_0x3a3cd2(0x22f)+_0x1b2462+_0x3a3cd2(0x199)+_0x4a2f18['ubrRj'](_0x57afe2,0x1)+'/'+_0x1d2abb+'\x20response='+util['inspect'](_0x3703ee));}}catch(_0x51257a){logger['error'](_0x3a3cd2(0x1fe)+util[_0x3a3cd2(0x188)](_0x51257a));}logger[_0x3a3cd2(0x1ac)](_0x4a2f18[_0x3a3cd2(0x1b2)]);}[a74_0x184ba3(0x1f5)](_0x12263a,_0x57e2eb,_0x4d3946,_0x3c8ff5,_0x704491){const _0x33bb81=a74_0x184ba3,_0xed8ceb={'testId':_0x57e2eb,'testFrameworkState':_0x4d3946,'hookState':_0x3c8ff5,'args':_0x704491,'timestamp':new Date()[_0x33bb81(0x18e)]()};_0x12263a[_0x33bb81(0x1ca)](_0x57e2eb,_0xed8ceb),logger[_0x33bb81(0x1ac)]('Stored\x20pending\x20hook\x20for\x20testId:\x20'+_0x57e2eb+',\x20state:\x20'+_0x4d3946+_0x33bb81(0x1bb)+_0x3c8ff5);}async['processPendingHooks'](_0x499dbb,_0x10d1dc){const _0x3388a2=a74_0x184ba3,_0x2e68a3={};_0x2e68a3[_0x3388a2(0x218)]=function(_0xbbee8d,_0x24a5c8){return _0xbbee8d>_0x24a5c8;};const _0x3bb8cc=_0x2e68a3;if(!_0x499dbb[_0x3388a2(0x1d0)](_0x10d1dc))return;const _0x280b74=_0x499dbb['getPendingHooks'](_0x10d1dc);logger[_0x3388a2(0x1ac)](_0x3388a2(0x195)+_0x280b74['length']+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x10d1dc);for(const _0xdba9e2 of _0x280b74){try{const _0x4deaad=await this['trackHookEvent'](_0x499dbb,_0xdba9e2[_0x3388a2(0x19f)],_0xdba9e2[_0x3388a2(0x1dc)],_0xdba9e2[_0x3388a2(0x20e)]);_0x4deaad&&_0x3bb8cc[_0x3388a2(0x218)](Object[_0x3388a2(0x1de)](_0x4deaad)[_0x3388a2(0x216)],0x0)&&_0x499dbb[_0x3388a2(0x1b6)](_0x4deaad),await this[_0x3388a2(0x189)](_0x499dbb,_0xdba9e2[_0x3388a2(0x19f)],_0xdba9e2[_0x3388a2(0x1dc)],_0xdba9e2[_0x3388a2(0x20e)]);}catch(_0x229067){logger[_0x3388a2(0x1b7)](_0x3388a2(0x223)+_0x10d1dc+_0x3388a2(0x18b)+_0x229067);}}_0x499dbb[_0x3388a2(0x1d4)](_0x10d1dc),logger[_0x3388a2(0x1ac)](_0x3388a2(0x187)+_0x10d1dc);}}module[a74_0x184ba3(0x235)]=CucumberTestFramework;
|