browserstack-node-sdk 1.67.0 → 1.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/browserstack.yml.sample +34 -1
- package/package.json +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/detox/a11ySetup.js +1 -1
- package/src/bin/detox/command.js +1 -1
- package/src/bin/detox/modifyDetoxConf.js +1 -1
- package/src/bin/detox/traEmitter.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadErrors.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/node-generic/client.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/reporterArgs.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/bin/v2/cliUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a89_0x49e1ef=a89_0x3f84;function a89_0x3f84(_0x7296dc,_0x1add4b){const _0x13427b=a89_0x1342();return a89_0x3f84=function(_0x3f8439,_0x1b2c90){_0x3f8439=_0x3f8439-0xdd;let _0x3e343e=_0x13427b[_0x3f8439];return _0x3e343e;},a89_0x3f84(_0x7296dc,_0x1add4b);}function a89_0x1342(){const _0x30bb06=['Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','ZjhfT','entry','HDQok','fyNux','NiEZE','nxrva','join','object',',\x20automationFramework=','GDFpJ','iGuqi','jWJHg','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','CLIUtils','1950800nDdSMQ','IhIZt','parse','HYNIF','getTestFrameworkDetail','resume','nbxmJ','split','copyFileSync','development','../../../package.json','ugvGZ','Folder\x20','OilEC','includes','pojde','format','skipSessionName','warn','nocOj','version','BTHPy','4333436wXeLWW','rEuEO','mtime','start','SRBBd','shouldSkipSessionName','child_process','mKVUZ','KDTec','SDK_CLI_CHECK_UPDATE','statusCode','kpWIZ','GET','homedir','yauzl','arch','./framework/constants/testFrameworkConstants.js','info','wxaqN','isArray','error','gLxVE','EXDEV','mergeObject','NQorw','QrVGq','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','tZrLd','exports','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','requestToUpdateCLI','message','test','readEntry','matchHookRegex','HTTP\x20','\x20already\x20exists','GXafb','length','zcHjY','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','node','OinDs','runShellCommand','ZBnNF','../utils/constants','SDK_CLI_DOWNLOAD','openReadStream','MIIxs','close','RqsaC','../../helpers/classLogger.js','ZisrU','Configuring\x20Cli\x20path.','getExistingCliPath','eVkwu','unlink','BROWSERSTACK_BINARY_URL','timeout','code','oDCCg','5629568euPXgb','\x20from\x20','get','open','debug','rename','data','isBinaryBusy','automationFrameworkDetail','MQFnz','1272921VjYXIy','response\x20','Setting\x20required\x20permissions\x20to\x20','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','nAYBP','ZaOIs','destroy','map','cli_version','CLI\x20version\x20found\x20despite\x20error:\x20\x22','trOFf','NDMko','env','vSjZB','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','CgNIH','unix:/tmp/sdk-platform-','./state/automationFrameworkState.js','getAutomationFrameworkDetail','getWritableDir','../../helpers/performance/constants','Qqawg','SOCwX','SDK_CLI_BIN_PATH','qCqKs','wzdLh','hFrEQ','url','uqQAZ','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','bgCvh','Downloading\x20SDK\x20binary\x20from:\x20','pipe','worker_threads','mSSpO','hNSeI','YBatR','statSync','getCurrentInstanceName','createWriteStream','fileName','listen','Development\x20Cli\x20Path:\x20','getHookRegistryKey','testFrameworkDetail','platform','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','uSDVO','UkeyP','lEYnu','gyZdu','./state/testFrameworkState.js','existsSync','351917caVcmE','.browserstack','filePath','nsTee','STsva','rokkZ','cwd','Binary\x20is\x20busy:\x20','UfGhD','setFrameworkDetail','../../helpers/test-observability/utils.js','startsWith','ZRWEp','PEXwQ','Resolved\x20binary\x20path:\x20','preserveStatusCodeOnError','695UkKNew','Failed\x20to\x20delete\x20zip\x20file:\x20','IXysX','end','../../helpers/utilities','chmod','21630520WiexWi','ngwaK','entries','skipSessionStatus','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','VQKJm','dGXse','qzrvt','SHELL_EXECUTE_ERROR','AkfJg','jLDbq','xuvqD','openSync','./instances/testFrameworkInstance.js','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','testContextOptions','TzLJe','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','.zip','\x20version','TaZwx','.sock','gUNwL','concat','22926geKNOb','checkAndUpdateCli','stringify','Error\x20while\x20reading\x20CLI\x20path:\x20','cli','trim','BROWSERSTACK_CLI_ENV','closeSync','../utils/apiUtilityMethods.js','ZajOT','isDevelopmentEnv','../../helpers/helper','filter','yKUnY','getSdkLanguage','basename','.tmp.','dHhAc','follow-redirects','BROWSERSTACK_FILES_DIR','acDFN','getSdkVersion','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','lazyEntries','FCBfi','readdirSync','elTiU','FLVbC','pid','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','./state/hookState.js','NWBVe','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s'];a89_0x1342=function(){return _0x30bb06;};return a89_0x1342();}(function(_0x2c6bbf,_0x5d691e){const _0x4f437b=a89_0x3f84,_0x8840d4=_0x2c6bbf();while(!![]){try{const _0x6d71b6=-parseInt(_0x4f437b(0x1a4))/0x1+-parseInt(_0x4f437b(0x112))/0x2+-parseInt(_0x4f437b(0x16f))/0x3+parseInt(_0x4f437b(0x128))/0x4+parseInt(_0x4f437b(0x1b4))/0x5*(-parseInt(_0x4f437b(0xe2))/0x6)+-parseInt(_0x4f437b(0x165))/0x7+parseInt(_0x4f437b(0x1ba))/0x8;if(_0x6d71b6===_0x5d691e)break;else _0x8840d4['push'](_0x8840d4['shift']());}catch(_0x2817d2){_0x8840d4['push'](_0x8840d4['shift']());}}}(a89_0x1342,0xaaf2f));const fs=require('fs'),os=require('os'),url=require('url'),path=require('path'),{exec}=require(a89_0x49e1ef(0x12e)),{https}=require(a89_0x49e1ef(0xf4)),yauzl=require(a89_0x49e1ef(0x136)),util=require('util'),{getFrameworkVersion}=require(a89_0x49e1ef(0x1ae)),{threadId}=require(a89_0x49e1ef(0x190)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a89_0x49e1ef(0x183)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a89_0x49e1ef(0x1b8)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a89_0x49e1ef(0xed)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a89_0x49e1ef(0x155)),{createClassLogger}=require(a89_0x49e1ef(0x15b)),TestFrameworkInstance=require(a89_0x49e1ef(0x1c8)),HookState=require(a89_0x49e1ef(0x100)),TestFrameworkState=require(a89_0x49e1ef(0x1a2)),AutomationFrameworkState=require(a89_0x49e1ef(0x180)),TestFrameworkConstants=require(a89_0x49e1ef(0x138)),logger=createClassLogger(a89_0x49e1ef(0x111)),{getBStackAPIUrl}=require(a89_0x49e1ef(0xea));class CLIUtils{[a89_0x49e1ef(0x16d)]={};['testFrameworkDetail']={};static[a89_0x49e1ef(0xec)](){const _0x183bbe=a89_0x49e1ef,_0x206577={};_0x206577['RhLgE']=function(_0x2b2cfb,_0x4676c7){return _0x2b2cfb===_0x4676c7;},_0x206577[_0x183bbe(0x164)]=_0x183bbe(0x11b);const _0x2ad245=_0x206577;return _0x2ad245['RhLgE'](process['env'][_0x183bbe(0xe8)],_0x2ad245[_0x183bbe(0x164)]);}static['getCLIParamsForDevEnv'](){const _0x130b5a=a89_0x49e1ef,_0x392b3e={};return _0x392b3e['id']=process[_0x130b5a(0x17b)][_0x130b5a(0xe8)],_0x392b3e[_0x130b5a(0x198)]=_0x130b5a(0x17f)+process['env']['BROWSERSTACK_CLI_ENV']+_0x130b5a(0xdf),_0x392b3e;}static['getSdkVersion'](){const _0x2bde8d=a89_0x49e1ef,_0x2bf253={'ZBnNF':function(_0x5be2b9,_0x717723){return _0x5be2b9(_0x717723);},'QdAaI':_0x2bde8d(0x11c)};return _0x2bf253[_0x2bde8d(0x154)](require,_0x2bf253['QdAaI'])[_0x2bde8d(0x126)];}static[a89_0x49e1ef(0xf0)](){const _0x33e1d0=a89_0x49e1ef,_0x17c099={};_0x17c099['ZisrU']=_0x33e1d0(0x151);const _0x4b143d=_0x17c099;return _0x4b143d[_0x33e1d0(0x15c)];}static async['setupCliPath'](_0x464010){const _0x2d79b3=a89_0x49e1ef,_0x41fa13={'qCqKs':_0x2d79b3(0x15d),'IOnlC':function(_0x220e60,_0x457b49){return _0x220e60(_0x457b49);},'rCGUN':function(_0x1bdfb4,_0x31f9b3){return _0x1bdfb4(_0x31f9b3);},'MIIxs':_0x2d79b3(0x17d)};logger[_0x2d79b3(0x169)](_0x41fa13[_0x2d79b3(0x187)]);const _0xfb333=process[_0x2d79b3(0x17b)][_0x2d79b3(0x186)];if(!_0x41fa13['IOnlC'](isNullOrEmpty,_0xfb333))return logger['debug'](_0x2d79b3(0x199)+_0xfb333),_0xfb333;try{const _0x1824ef=this['getCliDir']();if(_0x41fa13['rCGUN'](isNullOrEmpty,_0x1824ef))throw new Error(_0x41fa13[_0x2d79b3(0x158)]);const _0x404b56=this[_0x2d79b3(0x15e)](_0x1824ef),_0x521da8=await this['checkAndUpdateCli'](_0x404b56,_0x1824ef,_0x464010);return logger[_0x2d79b3(0x169)](_0x2d79b3(0x1b2)+_0x521da8),_0x521da8;}catch(_0x12882d){logger[_0x2d79b3(0x169)](_0x2d79b3(0x1c9)+util[_0x2d79b3(0x122)](_0x12882d));}return null;}static async[a89_0x49e1ef(0xe3)](_0x191f03,_0x247fdd,_0x3282c9){const _0x2fe06f=a89_0x49e1ef,_0x47f5c3={'VQKJm':function(_0x487a4b){return _0x487a4b();},'mSSpO':function(_0x48dbdc,_0x296464){return _0x48dbdc(_0x296464);},'nsTee':function(_0x5742a2,_0x2cd527,_0x257178){return _0x5742a2(_0x2cd527,_0x257178);},'NDMko':_0x2fe06f(0x16b),'BTHPy':_0x2fe06f(0x18a)};PerformanceTester[_0x2fe06f(0x12b)](PerformanceEvents[_0x2fe06f(0x131)]);try{logger[_0x2fe06f(0x139)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x191f03);const _0xe7683d=_0x47f5c3[_0x2fe06f(0x1c0)](getHostInfo),_0x4267a6={'sdk_version':CLIUtils[_0x2fe06f(0xf7)](),'os':_0xe7683d[_0x2fe06f(0x19c)],'os_arch':_0xe7683d[_0x2fe06f(0x137)],'cli_version':'0','sdk_language':this[_0x2fe06f(0xf0)]()};!_0x47f5c3[_0x2fe06f(0x191)](isNullOrEmpty,_0x191f03)&&(_0x4267a6[_0x2fe06f(0x177)]=await this['runShellCommand'](_0x191f03+_0x2fe06f(0xdd)));const _0x53f5db=await this[_0x2fe06f(0x146)](_0x4267a6,_0x3282c9);process[_0x2fe06f(0x17b)][_0x2fe06f(0x161)]&&(logger['info'](_0x2fe06f(0x1cc)+process[_0x2fe06f(0x17b)][_0x2fe06f(0x161)]),_0x53f5db[_0x2fe06f(0x16b)][_0x2fe06f(0x18a)]=process[_0x2fe06f(0x17b)][_0x2fe06f(0x161)]);if(_0x47f5c3['nsTee'](nestedKeyValue,_0x53f5db,[_0x47f5c3[_0x2fe06f(0x17a)],_0x47f5c3[_0x2fe06f(0x127)]])){logger['debug'](_0x2fe06f(0x110)+_0x4267a6[_0x2fe06f(0x177)]);if(!_0x47f5c3[_0x2fe06f(0x191)](isNullOrEmpty,_0x191f03)&&this[_0x2fe06f(0x16c)](_0x191f03))return logger[_0x2fe06f(0x124)](_0x2fe06f(0x18c)+_0x191f03),_0x191f03;return await this['downloadLatestBinary'](_0x47f5c3[_0x2fe06f(0x1a7)](nestedKeyValue,_0x53f5db,[_0x47f5c3[_0x2fe06f(0x17a)],_0x47f5c3[_0x2fe06f(0x127)]]),_0x247fdd);}return _0x191f03;}finally{PerformanceTester['end'](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);}}static['getCliDir'](){const _0x283ab5=a89_0x49e1ef,_0x4ab6f2={'dGXse':function(_0x41d976,_0x25b2ff){return _0x41d976(_0x25b2ff);},'xLrGa':_0x283ab5(0x17d),'xKweT':_0x283ab5(0xe6)},_0x3017fa=this[_0x283ab5(0x182)]();try{if(_0x4ab6f2[_0x283ab5(0x1c1)](isNullOrEmpty,_0x3017fa))throw new Error(_0x4ab6f2['xLrGa']);const _0x1919a5=path[_0x283ab5(0x10a)](_0x3017fa,_0x4ab6f2['xKweT']);return!fs[_0x283ab5(0x1a3)](_0x1919a5)&&_0x4ab6f2[_0x283ab5(0x1c1)](createDir,_0x1919a5),_0x1919a5;}catch(_0xa666d7){logger[_0x283ab5(0x169)](_0x283ab5(0x1be)+util[_0x283ab5(0x122)](_0xa666d7));}}static['getWritableDir'](){const _0x608898=a89_0x49e1ef,_0x575883={'IhIZt':_0x608898(0x1a5),'YBatR':function(_0x4c1b2d,_0x521034){return _0x4c1b2d(_0x521034);},'uSDVO':function(_0x91827,_0xdf5cd0){return _0x91827(_0xdf5cd0);},'lEYnu':function(_0x631421,_0x2012bb){return _0x631421(_0x2012bb);}},_0x411c30=[process[_0x608898(0x17b)][_0x608898(0xf5)],path[_0x608898(0x10a)](os[_0x608898(0x135)](),_0x575883[_0x608898(0x113)]),path[_0x608898(0x10a)](os['tmpdir'](),_0x575883[_0x608898(0x113)])];for(const _0x59bfdd of _0x411c30){if(_0x575883[_0x608898(0x193)](isNullOrEmpty,_0x59bfdd))continue;try{if(fs['existsSync'](_0x59bfdd)){logger[_0x608898(0x169)](_0x608898(0x11e)+_0x59bfdd+_0x608898(0x14c));if(!_0x575883[_0x608898(0x193)](isModifiable,_0x59bfdd)){logger['debug'](_0x608898(0x171)+_0x59bfdd);const _0x5ce9e6=_0x575883[_0x608898(0x193)](setReadWriteExecuteAccess,_0x59bfdd);if(!_0x575883[_0x608898(0x19e)](isTrue,_0x5ce9e6)){logger[_0x608898(0x124)](_0x608898(0x142)+_0x59bfdd);continue;}}}else{logger[_0x608898(0x169)]('Folder\x20does\x20not\x20exist:\x20'+_0x59bfdd),_0x575883['lEYnu'](createDir,_0x59bfdd),logger[_0x608898(0x169)](_0x608898(0x171)+_0x59bfdd);const _0x239221=_0x575883[_0x608898(0x1a0)](setReadWriteExecuteAccess,_0x59bfdd);!_0x575883[_0x608898(0x193)](isTrue,_0x239221)&&logger[_0x608898(0x124)](_0x608898(0x142)+_0x59bfdd);}return _0x59bfdd;}catch(_0x59e0c9){logger[_0x608898(0x13c)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x608898(0x122)](_0x59e0c9));}}return null;}static['getExistingCliPath'](_0x519dac){const _0x6e1dc6=a89_0x49e1ef,_0xf221b9={};_0xf221b9[_0x6e1dc6(0x121)]=function(_0x2023c9,_0x5f3145){return _0x2023c9>_0x5f3145;};const _0x29cf70=_0xf221b9;try{if(!fs[_0x6e1dc6(0x1a3)](_0x519dac)||!fs['statSync'](_0x519dac)['isDirectory']())return'';const _0x57bc68=fs[_0x6e1dc6(0xfb)](_0x519dac)['map'](_0x434e04=>path[_0x6e1dc6(0x10a)](_0x519dac,_0x434e04))[_0x6e1dc6(0xee)](_0x406e10=>fs['statSync'](_0x406e10)['isFile']()&&path[_0x6e1dc6(0xf1)](_0x406e10)[_0x6e1dc6(0x1af)]('binary-'));if(_0x29cf70['pojde'](_0x57bc68[_0x6e1dc6(0x14e)],0x0)){const _0x202bde=_0x57bc68[_0x6e1dc6(0x176)](_0x395028=>({'filePath':_0x395028,'mtime':fs[_0x6e1dc6(0x194)](_0x395028)[_0x6e1dc6(0x12a)]}))['reduce']((_0x41e2f7,_0x369d4d)=>{const _0x2df8a8=_0x6e1dc6;if(!_0x41e2f7||!_0x41e2f7[_0x2df8a8(0x12a)])return _0x369d4d;if(_0x29cf70[_0x2df8a8(0x121)](_0x369d4d[_0x2df8a8(0x12a)],_0x41e2f7[_0x2df8a8(0x12a)]))return _0x369d4d;return _0x41e2f7;},{});return _0x202bde?_0x202bde[_0x6e1dc6(0x1a6)]:'';}return'';}catch(_0x12790e){return logger[_0x6e1dc6(0x13c)](_0x6e1dc6(0xe5)+util[_0x6e1dc6(0x122)](_0x12790e)),'';}}static [a89_0x49e1ef(0x146)]=async(_0x1e69f6,_0x5ef105)=>{const _0x253d85=a89_0x49e1ef,_0x4fb149={'FLVbC':function(_0xea40f5,_0x8c16c8,_0x9cfcfe,_0x381a9b,_0x5bb01a){return _0xea40f5(_0x8c16c8,_0x9cfcfe,_0x381a9b,_0x5bb01a);},'NQorw':_0x253d85(0x134)},_0x46364c={};_0x46364c['qs']=_0x1e69f6,_0x46364c[_0x253d85(0x1b3)]=!![];const _0x56a46b=await _0x4fb149[_0x253d85(0xfd)](nodeRequest,_0x4fb149[_0x253d85(0x140)],UPDATED_CLI_ENDPOINT,_0x46364c,_0x5ef105);return logger[_0x253d85(0x169)](_0x253d85(0x170)+JSON[_0x253d85(0xe4)](_0x56a46b)),_0x56a46b;};static['isBinaryBusy'](_0x63a938){const _0x22ca92=a89_0x49e1ef;try{const _0x9507f8=fs[_0x22ca92(0x1c7)](_0x63a938,'r+');return fs[_0x22ca92(0xe9)](_0x9507f8),![];}catch(_0x6e0943){if(BINARY_BUSY_ERROR_CODES[_0x22ca92(0x120)](_0x6e0943[_0x22ca92(0x163)]))return logger[_0x22ca92(0x169)](_0x22ca92(0x1ab)+_0x63a938),!![];return logger['debug'](_0x22ca92(0x172)+_0x6e0943[_0x22ca92(0x147)]),![];}}static[a89_0x49e1ef(0x153)](_0x640093,_0x55689d=''){const _0x2a29da=a89_0x49e1ef,_0x25035e={'hSAMF':_0x2a29da(0x126),'nxrva':function(_0x22bf57,_0x49e83d){return _0x22bf57(_0x49e83d);},'hzCde':function(_0x1a61af,_0x3257dd){return _0x1a61af(_0x3257dd);},'ZjhfT':_0x2a29da(0x1c3),'HDQok':function(_0x3963cc,_0x17063c){return _0x3963cc(_0x17063c);},'TaZwx':function(_0x5eefcb,_0x14cc2b){return _0x5eefcb(_0x14cc2b);},'nbxmJ':function(_0x2f8439,_0x367511,_0x468237,_0x35204c){return _0x2f8439(_0x367511,_0x468237,_0x35204c);},'uqQAZ':_0x2a29da(0x13c)};return new Promise((_0x404dc6,_0x2ad1c5)=>{const _0x5f26e1=_0x2a29da,_0x420fb2={};_0x420fb2[_0x5f26e1(0x1aa)]=_0x55689d,_0x420fb2[_0x5f26e1(0x162)]=0x1388;const _0x353a47=_0x25035e[_0x5f26e1(0x118)](exec,_0x640093,_0x420fb2,(_0x5c8c48,_0x31a92b,_0x1119f9)=>{const _0x579d65=_0x5f26e1;if(_0x5c8c48){if(_0x640093[_0x579d65(0x120)](_0x25035e['hSAMF'])&&(_0x31a92b['trim']()||_0x1119f9[_0x579d65(0xe7)]())){const _0x1f099d=_0x31a92b['trim']()||_0x1119f9[_0x579d65(0xe7)]();logger[_0x579d65(0x169)](_0x579d65(0x178)+_0x1f099d+'\x22'),_0x25035e[_0x579d65(0x109)](_0x404dc6,_0x1f099d);}else _0x25035e['hzCde'](_0x404dc6,_0x1119f9[_0x579d65(0xe7)]()||_0x25035e[_0x579d65(0x104)]);}else logger[_0x579d65(0x169)]('Resolving\x20with\x20stdout:\x20\x22'+_0x31a92b[_0x579d65(0xe7)]()+'\x22'),_0x25035e[_0x579d65(0x106)](_0x404dc6,_0x31a92b['trim']());});_0x353a47['on'](_0x25035e[_0x5f26e1(0x18b)],()=>{const _0x53457b=_0x5f26e1;_0x25035e[_0x53457b(0xde)](_0x404dc6,_0x25035e[_0x53457b(0x104)]);});});}static ['downloadLatestBinary']=async(_0x4e57cf,_0x635eb1)=>{const _0x8faadd=a89_0x49e1ef,_0x54b39e={'RqsaC':function(_0xc09820,_0x5ba358){return _0xc09820(_0x5ba358);},'NisQd':function(_0x40875e,_0x1248d1){return _0x40875e(_0x1248d1);},'gUNwL':_0x8faadd(0x103),'fyNux':function(_0x34d51c,_0x3d1b1f){return _0x34d51c(_0x3d1b1f);},'zcHjY':_0x8faadd(0x1bf),'wxaqN':function(_0x4b900d,_0x248458){return _0x4b900d(_0x248458);},'ODuEa':function(_0x38d012,_0x551920){return _0x38d012>=_0x551920;},'FCBfi':'DOWNLOAD_HTTP','wzdLh':_0x8faadd(0x102),'tZrLd':_0x8faadd(0x13c),'nizmh':'Failed\x20to\x20download\x20SDK\x20binary:\x20%s'};PerformanceTester['start'](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0x8faadd(0x169)](_0x8faadd(0x18e)+_0x4e57cf);try{const _0xcce20c=url[_0x8faadd(0x114)](_0x4e57cf),_0x7f0d04=path['join'](_0x635eb1,'downloaded_file_'+process[_0x8faadd(0xfe)]+_0x8faadd(0x1cd)),_0xb7a4a6=fs[_0x8faadd(0x196)](_0x7f0d04);return new Promise((_0x7149bf,_0x1b50ad)=>{const _0x17804c=_0x8faadd,_0x3520e6={'ZRWEp':function(_0x145d05,_0x993d08){return _0x54b39e['NisQd'](_0x145d05,_0x993d08);},'rEuEO':_0x54b39e[_0x17804c(0xe0)],'Qqawg':function(_0x1aff76,_0x53ebd3){const _0x469d40=_0x17804c;return _0x54b39e[_0x469d40(0x107)](_0x1aff76,_0x53ebd3);},'SRBBd':_0x54b39e[_0x17804c(0x14f)],'hNSeI':function(_0x12e68d,_0x2595b0){const _0x588f5e=_0x17804c;return _0x54b39e[_0x588f5e(0x13a)](_0x12e68d,_0x2595b0);},'NeikI':function(_0x278886,_0x4ef507){return _0x54b39e['ODuEa'](_0x278886,_0x4ef507);},'elTiU':_0x54b39e[_0x17804c(0xfa)],'aQCHf':_0x54b39e[_0x17804c(0x188)],'trOFf':_0x54b39e[_0x17804c(0x143)]};https[_0x17804c(0x167)](_0xcce20c,function(_0x245279){const _0x8ab903=_0x17804c,_0x26863a={'QrVGq':_0x3520e6[_0x8ab903(0x129)],'ZaOIs':function(_0x38a8c3,_0x422f38){const _0x52c957=_0x8ab903;return _0x3520e6[_0x52c957(0x184)](_0x38a8c3,_0x422f38);},'YbJua':_0x3520e6[_0x8ab903(0x12c)],'iGuqi':function(_0x46f33c,_0x569ad5){const _0x31d7f9=_0x8ab903;return _0x3520e6[_0x31d7f9(0x184)](_0x46f33c,_0x569ad5);},'yKUnY':function(_0x285d01,_0x5bb064){const _0x1d8ffd=_0x8ab903;return _0x3520e6[_0x1d8ffd(0x192)](_0x285d01,_0x5bb064);}},_0x5cd10d=null;if(_0x245279['statusCode']&&_0x3520e6['NeikI'](_0x245279[_0x8ab903(0x132)],0x190)){const _0x53b55c=new Error('SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20'+_0x245279['statusCode']+_0x8ab903(0x166)+_0x4e57cf);_0x53b55c['code']=_0x3520e6[_0x8ab903(0xfc)],_0x53b55c[_0x8ab903(0x132)]=_0x245279['statusCode'],logger['error'](util[_0x8ab903(0x122)](_0x3520e6['aQCHf'],_0x245279['statusCode'])),PerformanceTester[_0x8ab903(0x1b7)](PerformanceEvents[_0x8ab903(0x156)],![],_0x8ab903(0x14b)+_0x245279[_0x8ab903(0x132)]),_0x245279[_0x8ab903(0x117)](),_0xb7a4a6[_0x8ab903(0x175)](),fs['unlink'](_0x7f0d04,()=>{}),_0x3520e6[_0x8ab903(0x184)](_0x1b50ad,_0x53b55c);return;}_0x245279[_0x8ab903(0x18f)](_0xb7a4a6),_0x245279['on'](_0x3520e6[_0x8ab903(0x179)],function(_0x53f847){const _0x3a1a4e=_0x8ab903;logger[_0x3a1a4e(0x13c)](util['format'](_0x26863a[_0x3a1a4e(0x141)],_0x53f847)),PerformanceTester[_0x3a1a4e(0x1b7)](PerformanceEvents[_0x3a1a4e(0x156)],![],util['format'](_0x53f847)),_0x26863a[_0x3a1a4e(0x174)](_0x1b50ad,_0x53f847);}),_0xb7a4a6['on'](_0x3520e6['trOFf'],function(_0x796a9e){const _0x36f6e2=_0x8ab903;logger[_0x36f6e2(0x13c)](util[_0x36f6e2(0x122)](_0x26863a['YbJua'],_0x796a9e)),PerformanceTester[_0x36f6e2(0x1b7)](PerformanceEvents[_0x36f6e2(0x156)],![],util[_0x36f6e2(0x122)](_0x796a9e)),_0x26863a[_0x36f6e2(0x10e)](_0x1b50ad,_0x796a9e);}),CLIUtils['downloadFileStream'](_0xb7a4a6,_0x5cd10d,_0x7f0d04,_0x635eb1,_0x4874a9=>{const _0x44761f=_0x8ab903;PerformanceTester['end'](PerformanceEvents[_0x44761f(0x156)]),_0x3520e6[_0x44761f(0x1b0)](_0x7149bf,_0x4874a9);},_0x3bad6c=>{const _0x26e05a=_0x8ab903;PerformanceTester[_0x26e05a(0x1b7)](PerformanceEvents[_0x26e05a(0x156)],![],util[_0x26e05a(0x122)](_0x3bad6c)),_0x26863a[_0x26e05a(0xef)](_0x1b50ad,_0x3bad6c);});})['on'](_0x54b39e[_0x17804c(0x143)],function(_0x276e06){const _0xb39705=_0x17804c;logger['error'](_0xb39705(0x145)+util[_0xb39705(0x122)](_0x276e06)),PerformanceTester[_0xb39705(0x1b7)](PerformanceEvents[_0xb39705(0x156)],![],util['format'](_0x276e06)),_0x54b39e[_0xb39705(0x15a)](_0x1b50ad,_0x276e06);});});}catch(_0x28275f){PerformanceTester[_0x8faadd(0x1b7)](PerformanceEvents[_0x8faadd(0x156)],![],util['format'](_0x28275f)),logger['error'](util[_0x8faadd(0x122)](_0x54b39e['nizmh'],_0x28275f));throw _0x28275f;}};static['downloadFileStream'](_0x2a6df3,_0x18dc5a,_0x2ec487,_0x2dd951,_0x279ba3,_0x2aed8f){const _0x48871e=a89_0x49e1ef,_0x48a218={'mKVUZ':function(_0xb8d299,_0x46fac2){return _0xb8d299(_0x46fac2);},'UfGhD':function(_0x341861,_0x35b9a5){return _0x341861(_0x35b9a5);},'UkeyP':function(_0x1c8a3b,_0x52fe0e){return _0x1c8a3b!==_0x52fe0e;},'IXysX':_0x48871e(0x13e),'nAYBP':function(_0x511e44,_0x43f066){return _0x511e44(_0x43f066);},'KDTec':function(_0x35e2a2,_0x4385d7){return _0x35e2a2(_0x4385d7);},'OinDs':'0755','xuvqD':_0x48871e(0x105),'GDFpJ':_0x48871e(0x13c),'vSjZB':_0x48871e(0x1b7),'CgNIH':_0x48871e(0x159),'bgCvh':function(_0x2c53a0,_0x7b26c3){return _0x2c53a0!==_0x7b26c3;},'icTZK':function(_0x16b4d0,_0x5e5bc3){return _0x16b4d0(_0x5e5bc3);}};_0x2a6df3['on'](_0x48a218['CgNIH'],function(){const _0x55a908=_0x48871e,_0x2098db={'OilEC':_0x48a218[_0x55a908(0x17e)],'NWBVe':function(_0xf2e706,_0x9662d5){const _0x4c6ca2=_0x55a908;return _0x48a218[_0x4c6ca2(0x1ac)](_0xf2e706,_0x9662d5);},'gyZdu':_0x48a218[_0x55a908(0x17c)],'gLxVE':function(_0x2fe0dc,_0x28b89f){const _0x287b12=_0x55a908;return _0x48a218[_0x287b12(0x18d)](_0x2fe0dc,_0x28b89f);},'sUocQ':function(_0x3a33a4,_0x4238ad){return _0x48a218['icTZK'](_0x3a33a4,_0x4238ad);},'qzrvt':_0x48a218[_0x55a908(0x10d)]},_0x127205={};_0x127205[_0x55a908(0xf9)]=!![],yauzl[_0x55a908(0x168)](_0x2ec487,_0x127205,function(_0x432f09,_0x5048ba){const _0x5c4d3e=_0x55a908,_0x350cad={'nocOj':function(_0x1ba26b,_0x2a9538){const _0x5ae7c1=a89_0x3f84;return _0x48a218[_0x5ae7c1(0x12f)](_0x1ba26b,_0x2a9538);},'acDFN':function(_0x13da18,_0x533943){const _0x4b1f15=a89_0x3f84;return _0x48a218[_0x4b1f15(0x12f)](_0x13da18,_0x533943);},'STsva':function(_0x20fbf0,_0x15a9a8){const _0x5ab01d=a89_0x3f84;return _0x48a218[_0x5ab01d(0x1ac)](_0x20fbf0,_0x15a9a8);},'eVkwu':function(_0x5d273b,_0x34b790){const _0x335fcf=a89_0x3f84;return _0x48a218[_0x335fcf(0x19f)](_0x5d273b,_0x34b790);},'AkfJg':_0x48a218[_0x5c4d3e(0x1b6)],'PEXwQ':function(_0x5d5595,_0x774494){const _0x355a0a=_0x5c4d3e;return _0x48a218[_0x355a0a(0x173)](_0x5d5595,_0x774494);},'ngwaK':function(_0x5a1807,_0x3f74d1){return _0x48a218['mKVUZ'](_0x5a1807,_0x3f74d1);},'jLDbq':function(_0xe5906d,_0x5965d7){const _0x1942f9=_0x5c4d3e;return _0x48a218[_0x1942f9(0x130)](_0xe5906d,_0x5965d7);},'ZajOT':_0x48a218[_0x5c4d3e(0x152)]};if(_0x432f09){_0x48a218['UfGhD'](_0x2aed8f,_0x432f09);return;}_0x5048ba[_0x5c4d3e(0x149)](),_0x5048ba['on'](_0x48a218[_0x5c4d3e(0x1c6)],_0x2afba9=>{const _0x4d0a47=_0x5c4d3e,_0x4321b0={'LPpyE':_0x2098db[_0x4d0a47(0x11f)],'GXafb':function(_0x45ae7e,_0x48f218){const _0x113b4c=_0x4d0a47;return _0x2098db[_0x113b4c(0x101)](_0x45ae7e,_0x48f218);},'rokkZ':_0x2098db[_0x4d0a47(0x1a1)]};if(/\/$/[_0x4d0a47(0x148)](_0x2afba9['fileName'])){_0x5048ba[_0x4d0a47(0x149)]();return;}!_0x18dc5a&&(_0x18dc5a=_0x2afba9[_0x4d0a47(0x197)]);if(_0x2098db[_0x4d0a47(0x13d)](_0x2afba9['fileName'],_0x18dc5a))_0x5048ba[_0x4d0a47(0x149)]();else{const _0x28e018=_0x2afba9[_0x4d0a47(0x197)],_0x4b5352=path[_0x4d0a47(0x10a)](_0x2dd951,_0x28e018+_0x4d0a47(0xf2)+process[_0x4d0a47(0xfe)]);let _0x419549;try{_0x419549=fs[_0x4d0a47(0x196)](_0x4b5352);}catch(_0x417709){if(BINARY_BUSY_ERROR_CODES[_0x4d0a47(0x120)](_0x417709[_0x4d0a47(0x163)])){const _0xba84b0=path[_0x4d0a47(0x10a)](_0x2dd951,_0x28e018);if(fs[_0x4d0a47(0x1a3)](_0xba84b0)){logger[_0x4d0a47(0x124)]('Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x28e018),fs[_0x4d0a47(0x160)](_0x2ec487,_0x524bc0=>{const _0x2f6227=_0x4d0a47;_0x524bc0&&logger[_0x2f6227(0x124)](_0x2f6227(0x1b5)+_0x2ec487);}),_0x2098db['sUocQ'](_0x279ba3,_0xba84b0);return;}logger[_0x4d0a47(0x124)](_0x4d0a47(0x150)+_0x28e018);}_0x2098db[_0x4d0a47(0x101)](_0x2aed8f,_0x417709);return;}_0x419549['on'](_0x2098db[_0x4d0a47(0x1c2)],_0x1c71b2=>{const _0x3232de=_0x4d0a47;if(BINARY_BUSY_ERROR_CODES[_0x3232de(0x120)](_0x1c71b2[_0x3232de(0x163)])){const _0x4cb7b0=path[_0x3232de(0x10a)](_0x2dd951,_0x28e018);_0x419549[_0x3232de(0x159)](),fs[_0x3232de(0x1a3)](_0x4cb7b0)?(logger['warn']('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x1c71b2[_0x3232de(0x147)]),_0x5048ba['close'](),fs[_0x3232de(0x160)](_0x2ec487,_0x530751=>{const _0x5516ad=_0x3232de;_0x530751&&logger[_0x5516ad(0x124)](_0x5516ad(0x1b5)+_0x2ec487);}),_0x350cad[_0x3232de(0x125)](_0x279ba3,_0x4cb7b0)):(logger[_0x3232de(0x124)](_0x3232de(0x19d)+_0x1c71b2[_0x3232de(0x147)]),fs[_0x3232de(0x160)](_0x4b5352,()=>{}),_0x350cad[_0x3232de(0xf6)](_0x2aed8f,_0x1c71b2));}else fs['unlink'](_0x4b5352,()=>{}),_0x350cad[_0x3232de(0x125)](_0x2aed8f,_0x1c71b2);}),_0x5048ba[_0x4d0a47(0x157)](_0x2afba9,function(_0x5ecc4e,_0x3d60f0){const _0x41d164=_0x4d0a47;if(_0x5ecc4e){fs[_0x41d164(0x160)](_0x4b5352,()=>{}),_0x4321b0[_0x41d164(0x14d)](_0x2aed8f,_0x5ecc4e);return;}_0x3d60f0['on'](_0x4321b0[_0x41d164(0x1a9)],function(){_0x419549['end'](),_0x419549['on'](_0x4321b0['LPpyE'],function(){_0x5048ba['readEntry']();});}),_0x3d60f0['pipe'](_0x419549);});}}),_0x5048ba['on'](_0x48a218['GDFpJ'],_0x4df31e=>{const _0x48235a=_0x5c4d3e;_0x350cad[_0x48235a(0x1a8)](_0x2aed8f,_0x4df31e);}),_0x5048ba['once'](_0x48a218[_0x5c4d3e(0x17c)],()=>{const _0x3e3ac3=_0x5c4d3e,_0x442b9c={'btrsm':function(_0x36c217,_0x153268){const _0x319794=a89_0x3f84;return _0x350cad[_0x319794(0x15f)](_0x36c217,_0x153268);},'SOCwX':_0x350cad[_0x3e3ac3(0x1c4)],'HYNIF':function(_0x51c848,_0x17f8d9){const _0x3aabee=_0x3e3ac3;return _0x350cad[_0x3aabee(0x1b1)](_0x51c848,_0x17f8d9);},'CVBTY':function(_0x4f670e,_0x19664a){const _0xa68c8f=_0x3e3ac3;return _0x350cad[_0xa68c8f(0x1bb)](_0x4f670e,_0x19664a);},'jWJHg':function(_0x214481,_0x4a1f21){const _0x94f7e4=_0x3e3ac3;return _0x350cad[_0x94f7e4(0x1c5)](_0x214481,_0x4a1f21);},'ugvGZ':function(_0x52bd52,_0x515a32){const _0x578eba=_0x3e3ac3;return _0x350cad[_0x578eba(0x1bb)](_0x52bd52,_0x515a32);}};fs[_0x3e3ac3(0x160)](_0x2ec487,_0x372f0e=>{const _0x5aacfd=_0x3e3ac3;_0x372f0e&&logger[_0x5aacfd(0x124)](_0x5aacfd(0x1b5)+_0x2ec487);});const _0x3195b5=path[_0x3e3ac3(0x10a)](_0x2dd951,_0x18dc5a+_0x3e3ac3(0xf2)+process[_0x3e3ac3(0xfe)]),_0x2b21da=path[_0x3e3ac3(0x10a)](_0x2dd951,_0x18dc5a);fs[_0x3e3ac3(0x1b9)](_0x3195b5,_0x350cad[_0x3e3ac3(0xeb)],function(_0x191f9c){const _0x5dc3de=_0x3e3ac3;if(_0x191f9c){_0x5048ba['close'](),fs[_0x5dc3de(0x160)](_0x3195b5,()=>{}),_0x442b9c[_0x5dc3de(0x11d)](_0x2aed8f,_0x191f9c);return;}fs[_0x5dc3de(0x16a)](_0x3195b5,_0x2b21da,function(_0x1d7fff){const _0x3fda4a=_0x5dc3de;if(_0x1d7fff){if(_0x442b9c['btrsm'](_0x1d7fff['code'],_0x442b9c[_0x3fda4a(0x185)])){_0x5048ba[_0x3fda4a(0x159)](),fs[_0x3fda4a(0x160)](_0x3195b5,()=>{}),_0x442b9c[_0x3fda4a(0x115)](_0x2aed8f,_0x1d7fff);return;}logger[_0x3fda4a(0x124)]('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x1d7fff[_0x3fda4a(0x147)]);try{fs[_0x3fda4a(0x11a)](_0x3195b5,_0x2b21da);}catch(_0x257144){_0x5048ba['close'](),fs[_0x3fda4a(0x160)](_0x3195b5,()=>{}),_0x442b9c['CVBTY'](_0x2aed8f,_0x257144);return;}fs['unlink'](_0x3195b5,_0x1d5ff8=>{const _0x5a9eb0=_0x3fda4a;_0x1d5ff8&&logger[_0x5a9eb0(0x124)]('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x1d5ff8[_0x5a9eb0(0x147)]);});}_0x5048ba['close'](),_0x442b9c[_0x3fda4a(0x10f)](_0x279ba3,_0x2b21da);});});});});});}static[a89_0x49e1ef(0x116)](){const _0x18ccdc=a89_0x49e1ef;if(process['env'][_0x18ccdc(0xf8)])return JSON[_0x18ccdc(0x114)](process[_0x18ccdc(0x17b)][_0x18ccdc(0xf8)]);return this['testFrameworkDetail'];}static[a89_0x49e1ef(0x181)](){const _0x40ab25=a89_0x49e1ef;if(process['env'][_0x40ab25(0xff)])return JSON[_0x40ab25(0x114)](process['env'][_0x40ab25(0xff)]);return this[_0x40ab25(0x16d)];}static[a89_0x49e1ef(0x1ad)](_0x3fd4b1,_0x54396a){const _0x3fd549=a89_0x49e1ef,_0xed79c3={'hFrEQ':'2|0|4|3|1','TzLJe':function(_0xf8a03,_0x3e8d26){return _0xf8a03(_0x3e8d26);},'QvkSj':function(_0x538897,_0x5e06e5){return _0x538897||_0x5e06e5;},'MQFnz':function(_0x138e31,_0x4e2ba3){return _0x138e31(_0x4e2ba3);}},_0x271eba=_0xed79c3[_0x3fd549(0x189)][_0x3fd549(0x119)]('|');let _0x402ae1=0x0;while(!![]){switch(_0x271eba[_0x402ae1++]){case'0':this[_0x3fd549(0x19b)]={'name':_0x3fd4b1,'version':{[_0x3fd4b1]:_0xed79c3[_0x3fd549(0x1cb)](getFrameworkVersion,_0x3fd4b1)}};continue;case'1':process[_0x3fd549(0x17b)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x3fd549(0xe4)](this[_0x3fd549(0x19b)]);continue;case'2':_0xed79c3['QvkSj'](!_0x3fd4b1,!_0x54396a)&&logger[_0x3fd549(0x169)]('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x3fd4b1+_0x3fd549(0x10c)+_0x54396a);continue;case'3':process[_0x3fd549(0x17b)][_0x3fd549(0xff)]=JSON[_0x3fd549(0xe4)](this['automationFrameworkDetail']);continue;case'4':this['automationFrameworkDetail']={'name':_0x54396a,'version':_0xed79c3[_0x3fd549(0x16e)](getFrameworkVersion,_0x54396a)};continue;}break;}}static[a89_0x49e1ef(0x19a)](_0x58779d,_0x4e26d5){return _0x58779d+':'+_0x4e26d5;}static[a89_0x49e1ef(0x195)](){const _0x431a32=a89_0x49e1ef;return process[_0x431a32(0xfe)]+':'+threadId;}static[a89_0x49e1ef(0x12d)](_0x55ae68){const _0x3352d9=a89_0x49e1ef;if(_0x55ae68['testContextOptions']&&_0x55ae68[_0x3352d9(0x1ca)][_0x3352d9(0x123)])return!![];return![];}static['shouldSkipSessionStatus'](_0x17ad3f){const _0x22b5d5=a89_0x49e1ef;if(_0x17ad3f['testContextOptions']&&_0x17ad3f[_0x22b5d5(0x1ca)][_0x22b5d5(0x1bd)])return!![];return![];}static[a89_0x49e1ef(0x14a)](_0x477868){const _0x4a0350=a89_0x49e1ef,_0x5cb493=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x5cb493[_0x4a0350(0x148)](_0x477868);}static[a89_0x49e1ef(0x13f)](_0x1f2250,_0x24586){const _0x1c487c=a89_0x49e1ef,_0x4b0986={};_0x4b0986[_0x1c487c(0x108)]=function(_0x1ca1ec,_0x18c858){return _0x1ca1ec!==_0x18c858;},_0x4b0986['dHhAc']=function(_0x16cdaa,_0x1ffaaa){return _0x16cdaa===_0x1ffaaa;},_0x4b0986['kpWIZ']=_0x1c487c(0x10b);const _0xd0cf8d=_0x4b0986;for(const [_0x234d32,_0x36b248]of Object[_0x1c487c(0x1bc)](_0x24586)){if(_0xd0cf8d['NiEZE'](_0x36b248,null)&&_0xd0cf8d[_0x1c487c(0xf3)](typeof _0x36b248,_0xd0cf8d[_0x1c487c(0x133)])&&!Array[_0x1c487c(0x13b)](_0x36b248))_0x1f2250[_0x234d32]=this['mergeObject'](_0x1f2250[_0x234d32]||{},_0x36b248);else Array[_0x1c487c(0x13b)](_0x36b248)?_0x1f2250[_0x234d32]=(_0x1f2250[_0x234d32]||[])[_0x1c487c(0xe1)](_0x36b248):_0x1f2250[_0x234d32]=_0x36b248;}return _0x1f2250;}}module[a89_0x49e1ef(0x144)]=CLIUtils;
|
|
1
|
+
const a89_0x31db6e=a89_0x2962;function a89_0x3096(){const _0x47fcc0=['lazyEntries','gFrlA','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','EHymW','testFrameworkDetail','Failed\x20to\x20delete\x20zip\x20file:\x20','nBBCG','LOXbC','IDAmC','./state/hookState.js','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','coKuY','WjGnK','getHookRegistryKey',',\x20automationFramework=','getWritableDir','46416aYXYmP','270StBCKV','filter','readdirSync','Binary\x20is\x20busy:\x20','length','follow-redirects','6492OGLeKB','arch','entry','Downloading\x20SDK\x20binary\x20from:\x20','OcLWc','BROWSERSTACK_BINARY_URL','BgGtL','ZXCEe','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','iJmzH','downloaded_file_','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','runShellCommand','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','Tkpkd','1603cMysnf','close','readEntry','QRzTR','dbceN','cFFNM','ixKbx','url','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','ZmsbZ','existsSync','fileName','zwKtr','vLdeJ','downloadLatestBinary','qFKhE','SDK_CLI_BIN_PATH','closeSync','12axpmCR','ELXmr','path','60599qXfxqK','Resolving\x20with\x20stdout:\x20\x22','XIoMH','zcIAM','matchHookRegex','includes','getSdkLanguage','copyFileSync','HOOK_REGEX','Error\x20while\x20reading\x20CLI\x20path:\x20','reduce','statSync','Current\x20CLI\x20Path\x20Found:\x20','lraKM','qSSaJ','1|4|0|3|2','once','SDK_CLI_CHECK_UPDATE','lYeWe','ZnBZl','VDDxN','homedir','SheDX','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','suIPj','./framework/constants/testFrameworkConstants.js','timeout','Resolved\x20binary\x20path:\x20','setFrameworkDetail','downloadFileStream','Folder\x20','Configuring\x20Cli\x20path.','mergeObject','statusCode','CLIUtils','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','code','shouldSkipSessionName','join','shouldSkipSessionStatus','ZDNko','../utils/constants','getExistingCliPath','1941plyYVF','isArray','getCLIParamsForDevEnv','testContextOptions','automationFrameworkDetail','4556160WsgNIF','isDevelopmentEnv','../utils/apiUtilityMethods.js','info','format','1548307oqQvTA','pipe','DjeJL','NDEmd','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','\x20from\x20','zBINC','parse','cMnDM','ixRxk','data','IyVLD','binary-','USJDN','version','env','../../helpers/helper','warn','kqjIE','map','WRUVU','FVriP','basename','trim','SDK_CLI_DOWNLOAD','NZjiS','object','gsepS','bBmkv','BROWSERSTACK_FILES_DIR','aKFqE','listen','Folder\x20does\x20not\x20exist:\x20','debug','vqFHI','getSdkVersion','isDirectory','xIpAC','AFtNr','mtime','cli_version','.browserstack','SHELL_EXECUTE_ERROR','preserveStatusCodeOnError','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','sCnDo','openReadStream','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','\x20version','1885748rAHXGt','SEZHS','startsWith','.tmp.','QCnBx','../../helpers/performance/performance-tester.js','pid','IQYWn','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','FhbjE','util','OJZBz','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','ueGYC','start','AwIIV','stringify','error','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','getCurrentInstanceName','unlink','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','ZFVaz','rename','requestToUpdateCLI','pesqY','GHiSS','Development\x20Cli\x20Path:\x20','node','isBinaryBusy','CLI\x20version\x20found\x20despite\x20error:\x20\x22','lcdiQ','UmTII','2890yQyZWh','dEyjk','aDZXb','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','CrDwQ','isFile','openSync','entries','\x20already\x20exists','cwd','QevkT','MCzrD','ngcfb','RDOsv','FZlla','concat','filePath','platform','DxzUU','createWriteStream','.sock','setupCliPath','exports','checkAndUpdateCli','end','BROWSERSTACK_CLI_ENV','getCliDir','split','Setting\x20required\x20permissions\x20to\x20','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','message','LYrJC'];a89_0x3096=function(){return _0x47fcc0;};return a89_0x3096();}(function(_0x2007a4,_0x4363df){const _0x509b11=a89_0x2962,_0x45bbca=_0x2007a4();while(!![]){try{const _0x456a21=-parseInt(_0x509b11(0x19a))/0x1+parseInt(_0x509b11(0x1cb))/0x2+parseInt(_0x509b11(0x190))/0x3*(parseInt(_0x509b11(0x140))/0x4)+-parseInt(_0x509b11(0x195))/0x5+parseInt(_0x509b11(0x162))/0x6*(-parseInt(_0x509b11(0x150))/0x7)+-parseInt(_0x509b11(0x139))/0x8*(parseInt(_0x509b11(0x13a))/0x9)+-parseInt(_0x509b11(0x1ee))/0xa*(-parseInt(_0x509b11(0x165))/0xb);if(_0x456a21===_0x4363df)break;else _0x45bbca['push'](_0x45bbca['shift']());}catch(_0xc1d7b9){_0x45bbca['push'](_0x45bbca['shift']());}}}(a89_0x3096,0xe82d7));const fs=require('fs'),os=require('os'),url=require(a89_0x31db6e(0x157)),path=require(a89_0x31db6e(0x164)),{exec}=require('child_process'),{https}=require(a89_0x31db6e(0x13f)),yauzl=require('yauzl'),util=require(a89_0x31db6e(0x1d6)),{getFrameworkVersion}=require('../../helpers/test-observability/utils.js'),{threadId}=require('worker_threads'),PerformanceTester=require(a89_0x31db6e(0x1d0)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a89_0x31db6e(0x1aa)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a89_0x31db6e(0x18e)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a89_0x31db6e(0x132)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a89_0x31db6e(0x17e)),logger=createClassLogger(a89_0x31db6e(0x187)),{getBStackAPIUrl}=require(a89_0x31db6e(0x197));class CLIUtils{[a89_0x31db6e(0x194)]={};[a89_0x31db6e(0x213)]={};static[a89_0x31db6e(0x196)](){const _0x3cafbc=a89_0x31db6e,_0x4ae8e7={};_0x4ae8e7[_0x3cafbc(0x1da)]=function(_0x24bfa7,_0x34178d){return _0x24bfa7===_0x34178d;},_0x4ae8e7[_0x3cafbc(0x200)]='development';const _0xf063c8=_0x4ae8e7;return _0xf063c8['ueGYC'](process[_0x3cafbc(0x1a9)]['BROWSERSTACK_CLI_ENV'],_0xf063c8[_0x3cafbc(0x200)]);}static[a89_0x31db6e(0x192)](){const _0xfc7c9=a89_0x31db6e,_0x115092={};return _0x115092['id']=process[_0xfc7c9(0x1a9)][_0xfc7c9(0x207)],_0x115092[_0xfc7c9(0x1b9)]='unix:/tmp/sdk-platform-'+process[_0xfc7c9(0x1a9)][_0xfc7c9(0x207)]+_0xfc7c9(0x202),_0x115092;}static[a89_0x31db6e(0x1bd)](){const _0x346e4a=a89_0x31db6e,_0x45b6d7={'WjGnK':function(_0x27b889,_0x5f5591){return _0x27b889(_0x5f5591);},'VDDxN':'../../../package.json'};return _0x45b6d7[_0x346e4a(0x135)](require,_0x45b6d7[_0x346e4a(0x179)])['version'];}static[a89_0x31db6e(0x16b)](){const _0x184328=a89_0x31db6e,_0x4b97b5={};_0x4b97b5[_0x184328(0x1ed)]=_0x184328(0x1e9);const _0xe67f3=_0x4b97b5;return _0xe67f3['UmTII'];}static async[a89_0x31db6e(0x203)](_0x1c434a){const _0x5012ab=a89_0x31db6e,_0x2ce992={'OJZBz':_0x5012ab(0x184),'WRUVU':function(_0x5084d4,_0x36a641){return _0x5084d4(_0x36a641);},'RWngp':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger['debug'](_0x2ce992[_0x5012ab(0x1d7)]);const _0x19bcee=process[_0x5012ab(0x1a9)][_0x5012ab(0x160)];if(!_0x2ce992['WRUVU'](isNullOrEmpty,_0x19bcee))return logger[_0x5012ab(0x1bb)](_0x5012ab(0x1e8)+_0x19bcee),_0x19bcee;try{const _0x7e0372=this[_0x5012ab(0x208)]();if(_0x2ce992[_0x5012ab(0x1ae)](isNullOrEmpty,_0x7e0372))throw new Error(_0x2ce992['RWngp']);const _0x1fc407=this[_0x5012ab(0x18f)](_0x7e0372),_0x2a74b1=await this[_0x5012ab(0x205)](_0x1fc407,_0x7e0372,_0x1c434a);return logger['debug'](_0x5012ab(0x180)+_0x2a74b1),_0x2a74b1;}catch(_0xbaf512){logger['debug'](_0x5012ab(0x1c9)+util[_0x5012ab(0x199)](_0xbaf512));}return null;}static async[a89_0x31db6e(0x205)](_0x24552b,_0x8939da,_0xf3e552){const _0x30d2d4=a89_0x31db6e,_0x352606={'lRoBH':function(_0x4323ca){return _0x4323ca();},'lYeWe':function(_0x198fd5,_0x24fd41){return _0x198fd5(_0x24fd41);},'lcdiQ':function(_0x1a3923,_0x313e65,_0x239092){return _0x1a3923(_0x313e65,_0x239092);},'LOXbC':_0x30d2d4(0x1a4),'OcLWc':'url','RDOsv':function(_0xbeb7ed,_0x5f0ab8,_0x59f4c6){return _0xbeb7ed(_0x5f0ab8,_0x59f4c6);}};PerformanceTester['start'](PerformanceEvents[_0x30d2d4(0x176)]);try{logger[_0x30d2d4(0x198)](_0x30d2d4(0x171)+_0x24552b);const _0x5970dd=_0x352606['lRoBH'](getHostInfo),_0x269774={'sdk_version':CLIUtils[_0x30d2d4(0x1bd)](),'os':_0x5970dd[_0x30d2d4(0x1ff)],'os_arch':_0x5970dd[_0x30d2d4(0x141)],'cli_version':'0','sdk_language':this[_0x30d2d4(0x16b)]()};!_0x352606['lYeWe'](isNullOrEmpty,_0x24552b)&&(_0x269774[_0x30d2d4(0x1c2)]=await this[_0x30d2d4(0x14d)](_0x24552b+_0x30d2d4(0x1ca)));const _0x1f626d=await this[_0x30d2d4(0x1e5)](_0x269774,_0xf3e552);process[_0x30d2d4(0x1a9)][_0x30d2d4(0x145)]&&(logger[_0x30d2d4(0x198)](_0x30d2d4(0x14e)+process[_0x30d2d4(0x1a9)][_0x30d2d4(0x145)]),_0x1f626d[_0x30d2d4(0x1a4)]['url']=process['env']['BROWSERSTACK_BINARY_URL']);if(_0x352606[_0x30d2d4(0x1ec)](nestedKeyValue,_0x1f626d,[_0x352606[_0x30d2d4(0x130)],_0x352606[_0x30d2d4(0x144)]])){logger[_0x30d2d4(0x1bb)]('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x269774[_0x30d2d4(0x1c2)]);if(!_0x352606[_0x30d2d4(0x177)](isNullOrEmpty,_0x24552b)&&this[_0x30d2d4(0x1ea)](_0x24552b))return logger[_0x30d2d4(0x1ab)](_0x30d2d4(0x188)+_0x24552b),_0x24552b;return await this['downloadLatestBinary'](_0x352606[_0x30d2d4(0x1fb)](nestedKeyValue,_0x1f626d,[_0x352606['LOXbC'],_0x352606[_0x30d2d4(0x144)]]),_0x8939da);}return _0x24552b;}finally{PerformanceTester[_0x30d2d4(0x206)](PerformanceEvents[_0x30d2d4(0x176)]);}}static[a89_0x31db6e(0x208)](){const _0x4098eb=a89_0x31db6e,_0x434200={'ZmsbZ':function(_0x6e96f6,_0x47e9ab){return _0x6e96f6(_0x47e9ab);},'XIoMH':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','AFtNr':'cli','kqjIE':function(_0x427749,_0xc0dff3){return _0x427749(_0xc0dff3);}},_0x2d7aee=this['getWritableDir']();try{if(_0x434200[_0x4098eb(0x159)](isNullOrEmpty,_0x2d7aee))throw new Error(_0x434200[_0x4098eb(0x167)]);const _0x3cb01f=path[_0x4098eb(0x18b)](_0x2d7aee,_0x434200[_0x4098eb(0x1c0)]);return!fs['existsSync'](_0x3cb01f)&&_0x434200[_0x4098eb(0x1ac)](createDir,_0x3cb01f),_0x3cb01f;}catch(_0x50eed9){logger['debug'](_0x4098eb(0x133)+util['format'](_0x50eed9));}}static[a89_0x31db6e(0x138)](){const _0x349798=a89_0x31db6e,_0x5244df={'NZjiS':_0x349798(0x1c3),'cFFNM':function(_0x286bfc,_0x7edb28){return _0x286bfc(_0x7edb28);},'zBINC':function(_0x426da2,_0x116c1a){return _0x426da2(_0x116c1a);},'Tkpkd':function(_0x46d29f,_0x36bb44){return _0x46d29f(_0x36bb44);},'suIPj':function(_0x485efc,_0x1558ff){return _0x485efc(_0x1558ff);}},_0xf50c7a=[process[_0x349798(0x1a9)][_0x349798(0x1b7)],path[_0x349798(0x18b)](os[_0x349798(0x17a)](),_0x5244df[_0x349798(0x1b3)]),path[_0x349798(0x18b)](os['tmpdir'](),_0x5244df[_0x349798(0x1b3)])];for(const _0x563c00 of _0xf50c7a){if(_0x5244df[_0x349798(0x155)](isNullOrEmpty,_0x563c00))continue;try{if(fs['existsSync'](_0x563c00)){logger[_0x349798(0x1bb)](_0x349798(0x183)+_0x563c00+_0x349798(0x1f6));if(!_0x5244df[_0x349798(0x1a0)](isModifiable,_0x563c00)){logger[_0x349798(0x1bb)](_0x349798(0x20a)+_0x563c00);const _0x22bd9a=_0x5244df[_0x349798(0x14f)](setReadWriteExecuteAccess,_0x563c00);if(!_0x5244df[_0x349798(0x1a0)](isTrue,_0x22bd9a)){logger[_0x349798(0x1ab)](_0x349798(0x1d4)+_0x563c00);continue;}}}else{logger['debug'](_0x349798(0x1ba)+_0x563c00),_0x5244df[_0x349798(0x17d)](createDir,_0x563c00),logger[_0x349798(0x1bb)](_0x349798(0x20a)+_0x563c00);const _0x4b2e99=_0x5244df[_0x349798(0x155)](setReadWriteExecuteAccess,_0x563c00);!_0x5244df[_0x349798(0x14f)](isTrue,_0x4b2e99)&&logger[_0x349798(0x1ab)](_0x349798(0x1d4)+_0x563c00);}return _0x563c00;}catch(_0x310a55){logger['error'](_0x349798(0x14c)+util[_0x349798(0x199)](_0x310a55));}}return null;}static['getExistingCliPath'](_0x53bafd){const _0x172e9b=a89_0x31db6e,_0x28ab9d={};_0x28ab9d['qFKhE']=function(_0xf68d81,_0x41b1d3){return _0xf68d81>_0x41b1d3;},_0x28ab9d['ZXuNE']=function(_0x1faab2,_0x35f7c1){return _0x1faab2>_0x35f7c1;};const _0x392964=_0x28ab9d;try{if(!fs['existsSync'](_0x53bafd)||!fs[_0x172e9b(0x170)](_0x53bafd)[_0x172e9b(0x1be)]())return'';const _0x393ff5=fs[_0x172e9b(0x13c)](_0x53bafd)['map'](_0x51fe57=>path[_0x172e9b(0x18b)](_0x53bafd,_0x51fe57))[_0x172e9b(0x13b)](_0x548511=>fs[_0x172e9b(0x170)](_0x548511)[_0x172e9b(0x1f3)]()&&path[_0x172e9b(0x1b0)](_0x548511)[_0x172e9b(0x1cd)](_0x172e9b(0x1a6)));if(_0x392964['ZXuNE'](_0x393ff5[_0x172e9b(0x13e)],0x0)){const _0x4c0595=_0x393ff5[_0x172e9b(0x1ad)](_0x8ff31=>({'filePath':_0x8ff31,'mtime':fs[_0x172e9b(0x170)](_0x8ff31)[_0x172e9b(0x1c1)]}))[_0x172e9b(0x16f)]((_0x5a5950,_0x1a2f4a)=>{const _0x4ee0c8=_0x172e9b;if(!_0x5a5950||!_0x5a5950[_0x4ee0c8(0x1c1)])return _0x1a2f4a;if(_0x392964[_0x4ee0c8(0x15f)](_0x1a2f4a['mtime'],_0x5a5950['mtime']))return _0x1a2f4a;return _0x5a5950;},{});return _0x4c0595?_0x4c0595[_0x172e9b(0x1fe)]:'';}return'';}catch(_0x3fabf3){return logger[_0x172e9b(0x1de)](_0x172e9b(0x16e)+util[_0x172e9b(0x199)](_0x3fabf3)),'';}}static [a89_0x31db6e(0x1e5)]=async(_0x486a42,_0x3f2f8e)=>{const _0xee62ed=a89_0x31db6e,_0x409258={'ULihb':function(_0xa294c9,_0x8a477d,_0x1b5549,_0x559542,_0x3c57e6){return _0xa294c9(_0x8a477d,_0x1b5549,_0x559542,_0x3c57e6);},'nBBCG':'GET'},_0x54c5dd={};_0x54c5dd['qs']=_0x486a42,_0x54c5dd[_0xee62ed(0x1c5)]=!![];const _0x4d51df=await _0x409258['ULihb'](nodeRequest,_0x409258[_0xee62ed(0x12f)],UPDATED_CLI_ENDPOINT,_0x54c5dd,_0x3f2f8e);return logger[_0xee62ed(0x1bb)]('response\x20'+JSON[_0xee62ed(0x1dd)](_0x4d51df)),_0x4d51df;};static[a89_0x31db6e(0x1ea)](_0x42e744){const _0x1eca8a=a89_0x31db6e;try{const _0x36b364=fs[_0x1eca8a(0x1f4)](_0x42e744,'r+');return fs[_0x1eca8a(0x161)](_0x36b364),![];}catch(_0x1609e6){if(BINARY_BUSY_ERROR_CODES[_0x1eca8a(0x16a)](_0x1609e6[_0x1eca8a(0x189)]))return logger['debug'](_0x1eca8a(0x13d)+_0x42e744),!![];return logger['debug'](_0x1eca8a(0x158)+_0x1609e6[_0x1eca8a(0x20d)]),![];}}static[a89_0x31db6e(0x14d)](_0x17c94a,_0x145417=''){const _0x357a25=a89_0x31db6e,_0x268f81={'cMnDM':_0x357a25(0x1a8),'vEVqk':function(_0x4f5682,_0x2df1e9){return _0x4f5682(_0x2df1e9);},'QRzTR':function(_0x3cb084,_0x3fb335){return _0x3cb084(_0x3fb335);},'AwIIV':_0x357a25(0x1c4),'gsepS':function(_0x56077a,_0x196f05,_0x41249c,_0x42b92e){return _0x56077a(_0x196f05,_0x41249c,_0x42b92e);},'rPcUL':_0x357a25(0x1de)};return new Promise((_0x1338a4,_0x1616d5)=>{const _0x1c4097=_0x357a25,_0x3e8fd4={};_0x3e8fd4[_0x1c4097(0x1f7)]=_0x145417,_0x3e8fd4[_0x1c4097(0x17f)]=0x1388;const _0x53ca9e=_0x268f81[_0x1c4097(0x1b5)](exec,_0x17c94a,_0x3e8fd4,(_0x436274,_0x1dcc62,_0x98c530)=>{const _0x104aaa=_0x1c4097;if(_0x436274){if(_0x17c94a[_0x104aaa(0x16a)](_0x268f81[_0x104aaa(0x1a2)])&&(_0x1dcc62[_0x104aaa(0x1b1)]()||_0x98c530[_0x104aaa(0x1b1)]())){const _0x3518a1=_0x1dcc62[_0x104aaa(0x1b1)]()||_0x98c530['trim']();logger[_0x104aaa(0x1bb)](_0x104aaa(0x1eb)+_0x3518a1+'\x22'),_0x268f81['vEVqk'](_0x1338a4,_0x3518a1);}else _0x268f81[_0x104aaa(0x153)](_0x1338a4,_0x98c530[_0x104aaa(0x1b1)]()||_0x268f81[_0x104aaa(0x1dc)]);}else logger[_0x104aaa(0x1bb)](_0x104aaa(0x166)+_0x1dcc62[_0x104aaa(0x1b1)]()+'\x22'),_0x268f81[_0x104aaa(0x153)](_0x1338a4,_0x1dcc62[_0x104aaa(0x1b1)]());});_0x53ca9e['on'](_0x268f81['rPcUL'],()=>{const _0x9cec11=_0x1c4097;_0x268f81[_0x9cec11(0x153)](_0x1338a4,_0x268f81['AwIIV']);});});}static [a89_0x31db6e(0x15e)]=async(_0x39a332,_0x333200)=>{const _0x231685=a89_0x31db6e,_0x260d94={'BgGtL':function(_0xe3fdff,_0x405b31){return _0xe3fdff(_0x405b31);},'qSSaJ':_0x231685(0x1df),'YLPPH':function(_0x3efd27,_0x3f4f9c){return _0x3efd27(_0x3f4f9c);},'aKFqE':_0x231685(0x17c),'ixRxk':function(_0x5a1d93,_0x46cad6){return _0x5a1d93>=_0x46cad6;},'SheDX':'DOWNLOAD_HTTP','VzPgx':_0x231685(0x20c),'lraKM':_0x231685(0x1de),'MyICd':_0x231685(0x1d9)};PerformanceTester[_0x231685(0x1db)](PerformanceEvents[_0x231685(0x1b2)]),logger['debug'](_0x231685(0x143)+_0x39a332);try{const _0x474e90=url[_0x231685(0x1a1)](_0x39a332),_0x582031=path[_0x231685(0x18b)](_0x333200,_0x231685(0x14b)+process[_0x231685(0x1d1)]+'.zip'),_0x2608ae=fs[_0x231685(0x201)](_0x582031);return new Promise((_0x3c3fa1,_0x1a6ca3)=>{const _0x17e092=_0x231685,_0x5bfe67={'ELXmr':_0x260d94[_0x17e092(0x173)],'aDZXb':function(_0x26f9ff,_0x1cbafa){return _0x260d94['YLPPH'](_0x26f9ff,_0x1cbafa);},'MCzrD':_0x260d94[_0x17e092(0x1b8)],'KBlYI':function(_0x22c7f5,_0x2b5169){const _0x5c167a=_0x17e092;return _0x260d94[_0x5c167a(0x1a3)](_0x22c7f5,_0x2b5169);},'AxsMO':_0x260d94[_0x17e092(0x17b)],'QevkT':_0x260d94['VzPgx'],'pesqY':_0x260d94[_0x17e092(0x172)]};https['get'](_0x474e90,function(_0x20e064){const _0x5932a7=_0x17e092,_0x5914b5={'GHiSS':_0x5bfe67[_0x5932a7(0x1f9)],'SEZHS':function(_0x3c6911,_0x76527b){const _0x385e23=_0x5932a7;return _0x5bfe67[_0x385e23(0x1f0)](_0x3c6911,_0x76527b);}},_0x433d7c=null;if(_0x20e064[_0x5932a7(0x186)]&&_0x5bfe67['KBlYI'](_0x20e064[_0x5932a7(0x186)],0x190)){const _0x43d4b4=new Error(_0x5932a7(0x149)+_0x20e064['statusCode']+_0x5932a7(0x19f)+_0x39a332);_0x43d4b4[_0x5932a7(0x189)]=_0x5bfe67['AxsMO'],_0x43d4b4[_0x5932a7(0x186)]=_0x20e064['statusCode'],logger[_0x5932a7(0x1de)](util['format'](_0x5bfe67[_0x5932a7(0x1f8)],_0x20e064['statusCode'])),PerformanceTester[_0x5932a7(0x206)](PerformanceEvents[_0x5932a7(0x1b2)],![],'HTTP\x20'+_0x20e064[_0x5932a7(0x186)]),_0x20e064['resume'](),_0x2608ae['destroy'](),fs[_0x5932a7(0x1e1)](_0x582031,()=>{}),_0x5bfe67['aDZXb'](_0x1a6ca3,_0x43d4b4);return;}_0x20e064[_0x5932a7(0x19b)](_0x2608ae),_0x20e064['on'](_0x5bfe67[_0x5932a7(0x1e6)],function(_0x3ef172){const _0xe51e72=_0x5932a7;logger['error'](util['format'](_0x5914b5[_0xe51e72(0x1e7)],_0x3ef172)),PerformanceTester['end'](PerformanceEvents[_0xe51e72(0x1b2)],![],util[_0xe51e72(0x199)](_0x3ef172)),_0x5914b5[_0xe51e72(0x1cc)](_0x1a6ca3,_0x3ef172);}),_0x2608ae['on'](_0x5bfe67['pesqY'],function(_0x57b819){const _0x5427f7=_0x5932a7;logger[_0x5427f7(0x1de)](util[_0x5427f7(0x199)](_0x5bfe67[_0x5427f7(0x163)],_0x57b819)),PerformanceTester[_0x5427f7(0x206)](PerformanceEvents[_0x5427f7(0x1b2)],![],util[_0x5427f7(0x199)](_0x57b819)),_0x5bfe67[_0x5427f7(0x1f0)](_0x1a6ca3,_0x57b819);}),CLIUtils[_0x5932a7(0x182)](_0x2608ae,_0x433d7c,_0x582031,_0x333200,_0x437bfd=>{const _0x1a007e=_0x5932a7;PerformanceTester[_0x1a007e(0x206)](PerformanceEvents[_0x1a007e(0x1b2)]),_0x5914b5[_0x1a007e(0x1cc)](_0x3c3fa1,_0x437bfd);},_0x2445f1=>{const _0x297c2=_0x5932a7;PerformanceTester[_0x297c2(0x206)](PerformanceEvents[_0x297c2(0x1b2)],![],util[_0x297c2(0x199)](_0x2445f1)),_0x5bfe67[_0x297c2(0x1f0)](_0x1a6ca3,_0x2445f1);});})['on'](_0x260d94['lraKM'],function(_0x12c8f5){const _0x286348=_0x17e092;logger[_0x286348(0x1de)](_0x286348(0x1c6)+util[_0x286348(0x199)](_0x12c8f5)),PerformanceTester[_0x286348(0x206)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x286348(0x199)](_0x12c8f5)),_0x260d94[_0x286348(0x146)](_0x1a6ca3,_0x12c8f5);});});}catch(_0x7b4386){PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x231685(0x199)](_0x7b4386)),logger[_0x231685(0x1de)](util['format'](_0x260d94['MyICd'],_0x7b4386));throw _0x7b4386;}};static[a89_0x31db6e(0x182)](_0x1beab5,_0x13fe41,_0x3eb347,_0x12b0a4,_0x269587,_0x23d3ce){const _0x25fa1c=a89_0x31db6e,_0x5ecc6e={'QCnBx':function(_0x34f6e6,_0x23c861){return _0x34f6e6(_0x23c861);},'vqFHI':function(_0x110b74,_0x522539){return _0x110b74(_0x522539);},'ixKbx':'close','uJIru':_0x25fa1c(0x206),'LYrJC':function(_0xd19ee8,_0x52f8a0){return _0xd19ee8!==_0x52f8a0;},'coKuY':_0x25fa1c(0x1de),'ZnBZl':function(_0x14c2a3,_0x4bfb68){return _0x14c2a3!==_0x4bfb68;},'IQYWn':'EXDEV','USJDN':'0755','FRVDe':_0x25fa1c(0x142)};_0x1beab5['on'](_0x5ecc6e[_0x25fa1c(0x156)],function(){const _0x3aa232=_0x25fa1c,_0x7fd990={'ZXCEe':function(_0x4b89f6,_0x1e82c8){const _0x5f13b8=a89_0x2962;return _0x5ecc6e[_0x5f13b8(0x1cf)](_0x4b89f6,_0x1e82c8);},'FhbjE':function(_0x1d685a,_0x318170){const _0x173ef3=a89_0x2962;return _0x5ecc6e[_0x173ef3(0x1bc)](_0x1d685a,_0x318170);},'ZFVaz':_0x5ecc6e[_0x3aa232(0x156)],'YqRdv':_0x5ecc6e['uJIru'],'DjeJL':function(_0x5f1e2e,_0x13b437){const _0x4845be=_0x3aa232;return _0x5ecc6e[_0x4845be(0x20e)](_0x5f1e2e,_0x13b437);},'dEyjk':_0x5ecc6e[_0x3aa232(0x134)],'zcIAM':function(_0x17969f,_0x3c7be0){const _0x209653=_0x3aa232;return _0x5ecc6e[_0x209653(0x178)](_0x17969f,_0x3c7be0);},'gFrlA':_0x5ecc6e[_0x3aa232(0x1d2)],'IDAmC':function(_0xd114b2,_0x37da4d){const _0x1cc2eb=_0x3aa232;return _0x5ecc6e[_0x1cc2eb(0x1bc)](_0xd114b2,_0x37da4d);},'vLdeJ':_0x5ecc6e[_0x3aa232(0x1a7)],'zwKtr':function(_0x18e143,_0x2517a1){const _0x492fe8=_0x3aa232;return _0x5ecc6e[_0x492fe8(0x1cf)](_0x18e143,_0x2517a1);},'iJmzH':_0x5ecc6e['FRVDe']},_0x231722={};_0x231722[_0x3aa232(0x20f)]=!![],yauzl['open'](_0x3eb347,_0x231722,function(_0x220f61,_0x4570c2){const _0x1202e2=_0x3aa232,_0x56e6c0={'lrmgw':function(_0x1b9d74,_0x242fb2){const _0x192d36=a89_0x2962;return _0x7fd990[_0x192d36(0x15c)](_0x1b9d74,_0x242fb2);}};if(_0x220f61){_0x7fd990['zwKtr'](_0x23d3ce,_0x220f61);return;}_0x4570c2[_0x1202e2(0x152)](),_0x4570c2['on'](_0x7fd990[_0x1202e2(0x14a)],_0x2fb623=>{const _0x237396=_0x1202e2,_0xcdebe6={'IyVLD':function(_0x3a0022,_0x4aa642){const _0xb6281b=a89_0x2962;return _0x7fd990[_0xb6281b(0x147)](_0x3a0022,_0x4aa642);},'FZlla':function(_0x3fc68d,_0x446ab7){const _0x570fe7=a89_0x2962;return _0x7fd990[_0x570fe7(0x1d5)](_0x3fc68d,_0x446ab7);},'nYgKn':_0x7fd990[_0x237396(0x1e3)],'NDEmd':_0x7fd990['YqRdv']};if(/\/$/['test'](_0x2fb623[_0x237396(0x15b)])){_0x4570c2[_0x237396(0x152)]();return;}!_0x13fe41&&(_0x13fe41=_0x2fb623['fileName']);if(_0x7fd990[_0x237396(0x19c)](_0x2fb623[_0x237396(0x15b)],_0x13fe41))_0x4570c2[_0x237396(0x152)]();else{const _0x497dba=_0x2fb623['fileName'],_0x1f4bca=path[_0x237396(0x18b)](_0x12b0a4,_0x497dba+_0x237396(0x1ce)+process[_0x237396(0x1d1)]);let _0x55d976;try{_0x55d976=fs[_0x237396(0x201)](_0x1f4bca);}catch(_0xc778c4){if(BINARY_BUSY_ERROR_CODES[_0x237396(0x16a)](_0xc778c4[_0x237396(0x189)])){const _0x5cd5fd=path['join'](_0x12b0a4,_0x497dba);if(fs[_0x237396(0x15a)](_0x5cd5fd)){logger[_0x237396(0x1ab)](_0x237396(0x1e2)+_0x497dba),fs['unlink'](_0x3eb347,_0x4571e5=>{const _0xe99e2b=_0x237396;_0x4571e5&&logger[_0xe99e2b(0x1ab)](_0xe99e2b(0x12e)+_0x3eb347);}),_0x7fd990['ZXCEe'](_0x269587,_0x5cd5fd);return;}logger[_0x237396(0x1ab)](_0x237396(0x19e)+_0x497dba);}_0x7fd990[_0x237396(0x1d5)](_0x23d3ce,_0xc778c4);return;}_0x55d976['on'](_0x7fd990[_0x237396(0x1ef)],_0x36fab2=>{const _0x161599=_0x237396;if(BINARY_BUSY_ERROR_CODES[_0x161599(0x16a)](_0x36fab2['code'])){const _0x25dfcc=path['join'](_0x12b0a4,_0x497dba);_0x55d976[_0x161599(0x151)](),fs[_0x161599(0x15a)](_0x25dfcc)?(logger[_0x161599(0x1ab)](_0x161599(0x1f1)+_0x36fab2['message']),_0x4570c2[_0x161599(0x151)](),fs[_0x161599(0x1e1)](_0x3eb347,_0x22a301=>{const _0x1ed7fa=_0x161599;_0x22a301&&logger[_0x1ed7fa(0x1ab)](_0x1ed7fa(0x12e)+_0x3eb347);}),_0xcdebe6[_0x161599(0x1a5)](_0x269587,_0x25dfcc)):(logger['warn'](_0x161599(0x20b)+_0x36fab2[_0x161599(0x20d)]),fs[_0x161599(0x1e1)](_0x1f4bca,()=>{}),_0xcdebe6['IyVLD'](_0x23d3ce,_0x36fab2));}else fs[_0x161599(0x1e1)](_0x1f4bca,()=>{}),_0xcdebe6[_0x161599(0x1fc)](_0x23d3ce,_0x36fab2);}),_0x4570c2[_0x237396(0x1c8)](_0x2fb623,function(_0x508750,_0x31ee28){const _0x1f0c79=_0x237396,_0x559f3a={};_0x559f3a[_0x1f0c79(0x1af)]=_0xcdebe6['nYgKn'];const _0x4b2429=_0x559f3a;if(_0x508750){fs[_0x1f0c79(0x1e1)](_0x1f4bca,()=>{}),_0xcdebe6[_0x1f0c79(0x1fc)](_0x23d3ce,_0x508750);return;}_0x31ee28['on'](_0xcdebe6[_0x1f0c79(0x19d)],function(){const _0x12a8d9=_0x1f0c79;_0x55d976[_0x12a8d9(0x206)](),_0x55d976['on'](_0x4b2429[_0x12a8d9(0x1af)],function(){const _0x561780=_0x12a8d9;_0x4570c2[_0x561780(0x152)]();});}),_0x31ee28[_0x1f0c79(0x19b)](_0x55d976);});}}),_0x4570c2['on'](_0x7fd990[_0x1202e2(0x1ef)],_0x34bdd9=>{_0x56e6c0['lrmgw'](_0x23d3ce,_0x34bdd9);}),_0x4570c2[_0x1202e2(0x175)](_0x7fd990['YqRdv'],()=>{const _0x2be0f4=_0x1202e2,_0x3d4741={'Pzxgl':function(_0x5bb852,_0x2bfdd7){const _0x1288b3=a89_0x2962;return _0x7fd990[_0x1288b3(0x168)](_0x5bb852,_0x2bfdd7);},'dbceN':_0x7fd990[_0x2be0f4(0x210)],'CrDwQ':function(_0x41b413,_0x136b36){const _0x52aca3=_0x2be0f4;return _0x7fd990[_0x52aca3(0x147)](_0x41b413,_0x136b36);},'ZDNko':function(_0x353d64,_0x18f9ec){const _0x534bd8=_0x2be0f4;return _0x7fd990[_0x534bd8(0x131)](_0x353d64,_0x18f9ec);}};fs[_0x2be0f4(0x1e1)](_0x3eb347,_0xe0f31d=>{_0xe0f31d&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x3eb347);});const _0x266f7a=path[_0x2be0f4(0x18b)](_0x12b0a4,_0x13fe41+'.tmp.'+process[_0x2be0f4(0x1d1)]),_0x601128=path['join'](_0x12b0a4,_0x13fe41);fs['chmod'](_0x266f7a,_0x7fd990[_0x2be0f4(0x15d)],function(_0x4f66bd){const _0x378a48=_0x2be0f4;if(_0x4f66bd){_0x4570c2[_0x378a48(0x151)](),fs[_0x378a48(0x1e1)](_0x266f7a,()=>{}),_0x3d4741[_0x378a48(0x18d)](_0x23d3ce,_0x4f66bd);return;}fs[_0x378a48(0x1e4)](_0x266f7a,_0x601128,function(_0x5b13e4){const _0x211353=_0x378a48;if(_0x5b13e4){if(_0x3d4741['Pzxgl'](_0x5b13e4[_0x211353(0x189)],_0x3d4741[_0x211353(0x154)])){_0x4570c2[_0x211353(0x151)](),fs[_0x211353(0x1e1)](_0x266f7a,()=>{}),_0x3d4741[_0x211353(0x1f2)](_0x23d3ce,_0x5b13e4);return;}logger['warn'](_0x211353(0x211)+_0x5b13e4[_0x211353(0x20d)]);try{fs[_0x211353(0x16c)](_0x266f7a,_0x601128);}catch(_0x3f5641){_0x4570c2[_0x211353(0x151)](),fs[_0x211353(0x1e1)](_0x266f7a,()=>{}),_0x3d4741[_0x211353(0x1f2)](_0x23d3ce,_0x3f5641);return;}fs[_0x211353(0x1e1)](_0x266f7a,_0x136529=>{const _0x3017e0=_0x211353;_0x136529&&logger[_0x3017e0(0x1ab)]('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x136529[_0x3017e0(0x20d)]);});}_0x4570c2[_0x211353(0x151)](),_0x3d4741[_0x211353(0x1f2)](_0x269587,_0x601128);});});});});});}static['getTestFrameworkDetail'](){const _0x152c7a=a89_0x31db6e;if(process['env'][_0x152c7a(0x1d3)])return JSON[_0x152c7a(0x1a1)](process[_0x152c7a(0x1a9)][_0x152c7a(0x1d3)]);return this[_0x152c7a(0x213)];}static['getAutomationFrameworkDetail'](){const _0x4382b7=a89_0x31db6e;if(process[_0x4382b7(0x1a9)][_0x4382b7(0x148)])return JSON[_0x4382b7(0x1a1)](process[_0x4382b7(0x1a9)][_0x4382b7(0x148)]);return this[_0x4382b7(0x194)];}static[a89_0x31db6e(0x181)](_0x47f9ef,_0x136875){const _0x2d6b02=a89_0x31db6e,_0x13a1b9={'PvgwR':_0x2d6b02(0x174),'EHymW':function(_0x29720f,_0x3b3bb9){return _0x29720f(_0x3b3bb9);},'bBmkv':function(_0x3ca2ab,_0x3b6ec2){return _0x3ca2ab||_0x3b6ec2;}},_0x4b4266=_0x13a1b9['PvgwR'][_0x2d6b02(0x209)]('|');let _0xdad2b3=0x0;while(!![]){switch(_0x4b4266[_0xdad2b3++]){case'0':this[_0x2d6b02(0x194)]={'name':_0x136875,'version':_0x13a1b9[_0x2d6b02(0x212)](getFrameworkVersion,_0x136875)};continue;case'1':_0x13a1b9[_0x2d6b02(0x1b6)](!_0x47f9ef,!_0x136875)&&logger[_0x2d6b02(0x1bb)](_0x2d6b02(0x1d8)+_0x47f9ef+_0x2d6b02(0x137)+_0x136875);continue;case'2':process[_0x2d6b02(0x1a9)][_0x2d6b02(0x1d3)]=JSON['stringify'](this[_0x2d6b02(0x213)]);continue;case'3':process[_0x2d6b02(0x1a9)][_0x2d6b02(0x148)]=JSON[_0x2d6b02(0x1dd)](this[_0x2d6b02(0x194)]);continue;case'4':this[_0x2d6b02(0x213)]={'name':_0x47f9ef,'version':{[_0x47f9ef]:_0x13a1b9[_0x2d6b02(0x212)](getFrameworkVersion,_0x47f9ef)}};continue;}break;}}static[a89_0x31db6e(0x136)](_0x5a5c7a,_0x4fe263){return _0x5a5c7a+':'+_0x4fe263;}static[a89_0x31db6e(0x1e0)](){const _0x18bb09=a89_0x31db6e;return process[_0x18bb09(0x1d1)]+':'+threadId;}static[a89_0x31db6e(0x18a)](_0x105191){const _0x604232=a89_0x31db6e;if(_0x105191[_0x604232(0x193)]&&_0x105191['testContextOptions']['skipSessionName'])return!![];return![];}static[a89_0x31db6e(0x18c)](_0x7c2093){const _0x38b75e=a89_0x31db6e;if(_0x7c2093['testContextOptions']&&_0x7c2093[_0x38b75e(0x193)]['skipSessionStatus'])return!![];return![];}static[a89_0x31db6e(0x169)](_0x1c1147){const _0x31c4f1=a89_0x31db6e,_0x3fc33d=new RegExp(TestFrameworkConstants[_0x31c4f1(0x16d)]);return _0x3fc33d['test'](_0x1c1147);}static[a89_0x31db6e(0x185)](_0x9a828,_0x397041){const _0x1d6b7b=a89_0x31db6e,_0x433b5e={};_0x433b5e[_0x1d6b7b(0x1bf)]=function(_0x29aeda,_0x3c40f8){return _0x29aeda!==_0x3c40f8;},_0x433b5e[_0x1d6b7b(0x1fa)]=function(_0x4907d2,_0x191f9b){return _0x4907d2===_0x191f9b;},_0x433b5e[_0x1d6b7b(0x1c7)]=_0x1d6b7b(0x1b4);const _0x30223f=_0x433b5e;for(const [_0x845e08,_0x203827]of Object[_0x1d6b7b(0x1f5)](_0x397041)){if(_0x30223f[_0x1d6b7b(0x1bf)](_0x203827,null)&&_0x30223f[_0x1d6b7b(0x1fa)](typeof _0x203827,_0x30223f[_0x1d6b7b(0x1c7)])&&!Array[_0x1d6b7b(0x191)](_0x203827))_0x9a828[_0x845e08]=this[_0x1d6b7b(0x185)](_0x9a828[_0x845e08]||{},_0x203827);else Array[_0x1d6b7b(0x191)](_0x203827)?_0x9a828[_0x845e08]=(_0x9a828[_0x845e08]||[])[_0x1d6b7b(0x1fd)](_0x203827):_0x9a828[_0x845e08]=_0x203827;}return _0x9a828;}}function a89_0x2962(_0xd2bd7d,_0x1c3b4a){const _0x3096d8=a89_0x3096();return a89_0x2962=function(_0x2962a8,_0x546339){_0x2962a8=_0x2962a8-0x12e;let _0x42c724=_0x3096d8[_0x2962a8];return _0x42c724;},a89_0x2962(_0xd2bd7d,_0x1c3b4a);}module[a89_0x31db6e(0x204)]=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a90_0x575581=a90_0x3b8a;(function(_0x4e3992,_0x888a66){const _0x3c29cb=a90_0x3b8a,_0x3461fc=_0x4e3992();while(!![]){try{const _0x38ab9d=-parseInt(_0x3c29cb(0xe5))/0x1*(parseInt(_0x3c29cb(0x81))/0x2)+-parseInt(_0x3c29cb(0xe4))/0x3*(parseInt(_0x3c29cb(0x70))/0x4)+parseInt(_0x3c29cb(0xd2))/0x5+parseInt(_0x3c29cb(0x74))/0x6+parseInt(_0x3c29cb(0xe0))/0x7*(-parseInt(_0x3c29cb(0xb2))/0x8)+parseInt(_0x3c29cb(0x80))/0x9+-parseInt(_0x3c29cb(0x9b))/0xa*(-parseInt(_0x3c29cb(0xc4))/0xb);if(_0x38ab9d===_0x888a66)break;else _0x3461fc['push'](_0x3461fc['shift']());}catch(_0x259d42){_0x3461fc['push'](_0x3461fc['shift']());}}}(a90_0x39fb,0xb09cb));const fs=require('fs'),os=require('os'),path=require('path'),helper=require(a90_0x575581(0xb8)),AutomationFramework=require(a90_0x575581(0xf5)),TestFrameworkConstants=require(a90_0x575581(0xcc)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require('./TestInfo'),TestHubModule=require(a90_0x575581(0x6e)),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a90_0x575581(0xab)),BUILD_TAG_FILE_PREFIX=a90_0x575581(0xfd);function a90_0x39fb(){const _0x58ad81=['evMep','_testInternals','lzqsM','KEY_CUSTOM_TAGS','bstack_build_tags_','CwvOe',',\x20values=','name','tyqpZ','ZhLsg','./state/testFrameworkState','function','./modules/testhubModule','HKwHJ','2653292CqbEMZ','message','toObject','rTXPk','8175486zMzlJN','BUILD_TAG_FILE_PREFIX','startsWith','Nadzq','addMultipleEntries','getTestDetails','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','blWFN','aggregateBuildLevelTagsFromTmp','fGlbf','statSync','get','11346327JmMcWo','912cqdplW','trim','getBuildTagsFilePath','ms)\x20','ZrWYn',':jest-','buildHashedId','OgUip','testLevelTags','getTestLevelTags',',\x20existingTags=','promises','getState','xNhfX','mtimeMs','Iywmg','getInstance','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','env','pid','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','join','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','stringify','iSfpj','20moYuxL','field_type','testInfo','mergeValues','ACQhH','pyTZQ','KJmVa','getCurrentTestUUID','buildLevelTags','jKxSg','\x20->\x20values=','isArray','yxIQL','uWrli','mergeIntoTags','multi_dropdown','CustomTagManager','mergeBuildLevelTags','getBuildTagsRunId','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','exports','isRunning','getBuildLevelTags','8xakEsO','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','UrBpr','filter','now','./state/hookState','../../helpers/helper','parseCommaSeparatedValues','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','RKfxh','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','mTHbD','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','POST','debug','utf8','keys','3468267vOjBFW','length',',\x20key=','__jestCurrentTestIdentifier','getTestFrameworkDetail','ybyuW','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','resolveInstance','./framework/constants/testFrameworkConstants','getAllData','qCqnf','./cliUtils','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','EnHYt','1461260dSHVXg','from','includes','values','nkCBn','FfsoP','ZXUtq','getTestIdentifierFromTestInfo','getTestUUID','entries','YyyOx','modules','.json','xIrGU','9063796ZanvMY','tmpdir','jest','TEST','3EViCMH','1896Vomhen','null','./browserstackCLI','currentTest','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','JdkQQ','endsWith','LrzdQ','getTestFramework','BROWSERSTACK_TESTHUB_UUID','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','YDUWR','readFileSync','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','./framework/automationFramework',',\x20finalTags=','setTestDetails','parse'];a90_0x39fb=function(){return _0x58ad81;};return a90_0x39fb();}function a90_0x3b8a(_0x3c0eb9,_0x2102e4){const _0x39fb1f=a90_0x39fb();return a90_0x3b8a=function(_0x3b8a80,_0xd9c441){_0x3b8a80=_0x3b8a80-0x6c;let _0x3d2961=_0x39fb1f[_0x3b8a80];return _0x3d2961;},a90_0x3b8a(_0x3c0eb9,_0x2102e4);}function getBuildTagsRunId(){const _0x3c5689=a90_0x575581,_0x4577fd={};_0x4577fd['blWFN']=function(_0x172da3,_0x12f146){return _0x172da3===_0x12f146;},_0x4577fd[_0x3c5689(0xee)]=_0x3c5689(0xe6);const _0x5b0704=_0x4577fd,_0x43532e=process[_0x3c5689(0x93)][_0x3c5689(0xf0)];if(!_0x43532e||_0x5b0704[_0x3c5689(0x7b)](_0x43532e,_0x5b0704[_0x3c5689(0xee)]))return null;return _0x43532e;}function getBuildTagsFilePath(_0x14ae18){const _0x5c44e2=a90_0x575581;return path[_0x5c44e2(0x96)](os[_0x5c44e2(0xe1)](),''+BUILD_TAG_FILE_PREFIX+_0x14ae18+'_'+process[_0x5c44e2(0x94)]+'.json');}class CustomTagManager{static [a90_0x575581(0xa3)]={};static [a90_0x575581(0x89)]={};static[a90_0x575581(0x9e)](_0x24e535,_0x5857ac){const _0x1e868b=a90_0x575581;return Array[_0x1e868b(0xd3)](new Set([..._0x24e535||[],..._0x5857ac||[]]));}static['mergeIntoTags'](_0x5aa8c7,_0x2de06d,_0x20787a){const _0x47998a=a90_0x575581,_0xca819b={};_0xca819b['fGlbf']=_0x47998a(0xaa);const _0xd5be90=_0xca819b;if(!_0x5aa8c7[_0x2de06d]){const _0x4373bc={};_0x4373bc['field_type']=_0xd5be90[_0x47998a(0x7d)],_0x4373bc[_0x47998a(0xd5)]=[..._0x20787a||[]],_0x5aa8c7[_0x2de06d]=_0x4373bc;}else!_0x5aa8c7[_0x2de06d][_0x47998a(0x9c)]&&(_0x5aa8c7[_0x2de06d][_0x47998a(0x9c)]=_0xd5be90[_0x47998a(0x7d)]),!Array[_0x47998a(0xa6)](_0x5aa8c7[_0x2de06d][_0x47998a(0xd5)])&&(_0x5aa8c7[_0x2de06d][_0x47998a(0xd5)]=[]),_0x5aa8c7[_0x2de06d][_0x47998a(0xd5)]=CustomTagManager['mergeValues'](_0x5aa8c7[_0x2de06d]['values'],_0x20787a);return _0x5aa8c7;}static async['setCustomTags'](_0x89d39a,_0x1f8cbe,_0x4d143f=![]){const _0x2f2ce7=a90_0x575581,_0xf72487={'IaAoW':function(_0x3abf39,_0x57f3cf){return _0x3abf39!==_0x57f3cf;},'CwvOe':'string','nkCBn':_0x2f2ce7(0xe9),'qCqnf':function(_0x33e90c,_0x560b16){return _0x33e90c!==_0x560b16;},'vvVBa':_0x2f2ce7(0xbc),'YDUWR':function(_0x8180a,_0x2cc4ec){return _0x8180a===_0x2cc4ec;},'xIrGU':_0x2f2ce7(0xbe),'FfsoP':function(_0x308772,_0x11e03b){return _0x308772===_0x11e03b;},'JdkQQ':_0x2f2ce7(0xf1),'jKxSg':function(_0x5228bf,_0x5034bf){return _0x5228bf(_0x5034bf);},'ybyuW':_0x2f2ce7(0xe7),'pyTZQ':function(_0x2449f5){return _0x2449f5();},'RpoOF':_0x2f2ce7(0xaa),'lzqsM':function(_0x34d1fb,_0x204873){return _0x34d1fb>_0x204873;},'OgUip':_0x2f2ce7(0xd0),'uWrli':_0x2f2ce7(0x86),'rTXPk':function(_0x329951,_0x3a9038){return _0x329951(_0x3a9038);},'EnHYt':_0x2f2ce7(0xcf),'Iywmg':function(_0xe73806,_0x21f371){return _0xe73806(_0x21f371);},'yxIQL':_0x2f2ce7(0xe2),'ACQhH':_0x2f2ce7(0x92),'ZhLsg':function(_0x6de818,_0x49a6fa){return _0x6de818(_0x49a6fa);},'tyqpZ':_0x2f2ce7(0xeb),'ZXUtq':_0x2f2ce7(0x6c),'AntDH':_0x2f2ce7(0xb7),'HKwHJ':_0x2f2ce7(0x95),'KJmVa':function(_0x5297a3,_0x3fdf54){return _0x5297a3===_0x3fdf54;},'Nadzq':_0x2f2ce7(0x6d)};if(_0xf72487['IaAoW'](typeof _0x89d39a,_0xf72487['CwvOe'])){logger['debug'](_0xf72487[_0x2f2ce7(0xd6)]);return;}if(_0xf72487[_0x2f2ce7(0xce)](typeof _0x1f8cbe,_0xf72487[_0x2f2ce7(0xfe)])){logger[_0x2f2ce7(0xc1)](_0xf72487['vvVBa']);return;}if(_0xf72487[_0x2f2ce7(0xf2)](_0x89d39a[_0x2f2ce7(0x82)](),'')){logger[_0x2f2ce7(0xc1)](_0xf72487[_0x2f2ce7(0xdf)]);return;}if(_0xf72487[_0x2f2ce7(0xd7)](_0x1f8cbe[_0x2f2ce7(0x82)](),'')){logger[_0x2f2ce7(0xc1)](_0xf72487[_0x2f2ce7(0xec)]);return;}const _0x4f8e43=helper[_0x2f2ce7(0xb9)](_0x1f8cbe);if(_0x4d143f){const _0x535dd9=_0xf72487['jKxSg'](require,_0xf72487['ybyuW']),_0x10e9fd=_0x535dd9[_0x2f2ce7(0x91)](),_0x5a4c56=_0x10e9fd&&_0x10e9fd[_0x2f2ce7(0xdd)][TestHubModule['MODULE_NAME']];if(_0x5a4c56){const _0x1a5396=_0x5a4c56?.['testhubConfig']?.[_0x2f2ce7(0x72)]()?.[_0x2f2ce7(0x87)];TestInfo[_0x2f2ce7(0xda)](_0x1a5396);const _0x3fc608=TestInfo[_0x2f2ce7(0x79)](_0x1a5396),_0x29b89e=_0x3fc608[TestFrameworkConstants[_0x2f2ce7(0xfc)]]||{};CustomTagManager[_0x2f2ce7(0xa9)](_0x29b89e,_0x89d39a,_0x4f8e43),_0x3fc608[TestFrameworkConstants[_0x2f2ce7(0xfc)]]=_0x29b89e,TestInfo[_0x2f2ce7(0xf7)](_0x1a5396,_0x3fc608);!this[_0x2f2ce7(0xa3)][_0x1a5396]&&(this[_0x2f2ce7(0xa3)][_0x1a5396]={});this[_0x2f2ce7(0xa3)][_0x1a5396][_0x89d39a]=CustomTagManager['mergeValues'](this[_0x2f2ce7(0xa3)][_0x1a5396][_0x89d39a],_0x4f8e43);try{const _0x51274a=_0xf72487[_0x2f2ce7(0xa0)](getBuildTagsRunId);if(_0x51274a){const _0x1225f7={};for(const [_0x2c7a97,_0xb441d2]of Object[_0x2f2ce7(0xdb)](this['buildLevelTags'][_0x1a5396]||{})){_0x1225f7[_0x2c7a97]={'field_type':_0xf72487['RpoOF'],'values':Array['isArray'](_0xb441d2)?[..._0xb441d2]:[]};}_0xf72487[_0x2f2ce7(0xfb)](Object[_0x2f2ce7(0xc3)](_0x1225f7)[_0x2f2ce7(0xc5)],0x0)&&await fs[_0x2f2ce7(0x8c)]['writeFile'](_0xf72487[_0x2f2ce7(0xa4)](getBuildTagsFilePath,_0x51274a),JSON[_0x2f2ce7(0x99)](_0x1225f7));}else logger[_0x2f2ce7(0xc1)](_0xf72487[_0x2f2ce7(0x88)]);}catch(_0x66a3a9){logger[_0x2f2ce7(0xc1)](_0x2f2ce7(0xea)+(_0x66a3a9&&_0x66a3a9[_0x2f2ce7(0x71)]?_0x66a3a9['message']:_0x66a3a9));}}}else{let _0x126a47;const _0x136d0d=global[_0x2f2ce7(0xc7)];let _0x4477b8=![];if(_0x136d0d&&_0x136d0d[_0x2f2ce7(0xd4)](_0xf72487['uWrli']))_0x4477b8=!![],_0x126a47=_0x136d0d;else try{const _0x3c6cb5=_0xf72487[_0x2f2ce7(0x73)](require,_0xf72487[_0x2f2ce7(0xd1)]),_0x591c73=_0xf72487[_0x2f2ce7(0x90)](require,_0xf72487[_0x2f2ce7(0xc9)]);if(_0x591c73[_0x2f2ce7(0x91)]()[_0x2f2ce7(0xb0)]()){const _0x57a970=_0x3c6cb5[_0x2f2ce7(0xc8)]();if(_0xf72487[_0x2f2ce7(0xd7)](_0x57a970?.[_0x2f2ce7(0x100)]?.['toLowerCase'](),_0xf72487[_0x2f2ce7(0xa7)])){const _0x57a943=AutomationFramework['getTrackedInstance']();_0x126a47=AutomationFramework[_0x2f2ce7(0x8d)](_0x57a943,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x126a47&&_0x126a47['includes'](_0xf72487[_0x2f2ce7(0xa8)])&&(_0x4477b8=!![]);}}}catch(_0x2b17ed){logger['debug']('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x2b17ed);}if(_0x4477b8){if(!_0x126a47)throw new Error(_0xf72487[_0x2f2ce7(0x9f)]);const _0x55ce4a=_0xf72487[_0x2f2ce7(0x102)](require,_0xf72487[_0x2f2ce7(0xc9)]),_0x47bc65=_0x55ce4a[_0x2f2ce7(0x91)]()['getTestFramework']();if(!_0x47bc65)throw new Error(_0xf72487[_0x2f2ce7(0x101)]);const _0x90af61=_0xf72487[_0x2f2ce7(0x73)](require,_0xf72487[_0x2f2ce7(0xd8)]),_0x2bf274=_0xf72487[_0x2f2ce7(0x90)](require,_0xf72487['AntDH']),_0x3b2585=_0x47bc65[_0x2f2ce7(0xcb)](_0x90af61[_0x2f2ce7(0xe3)],_0x2bf274[_0x2f2ce7(0xc0)]);if(!_0x3b2585)throw new Error(_0xf72487[_0x2f2ce7(0x6f)]);const _0x858da=_0x3b2585[_0x2f2ce7(0xcd)]()[_0x2f2ce7(0x7f)](_0x126a47)||{},_0x1404bf=_0x858da[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0x2f2ce7(0xc1)](_0x2f2ce7(0x98)+_0x126a47+_0x2f2ce7(0xc6)+_0x89d39a+_0x2f2ce7(0xff)+JSON['stringify'](_0x4f8e43)+_0x2f2ce7(0x8b)+JSON['stringify'](_0x1404bf)),CustomTagManager[_0x2f2ce7(0xa9)](_0x1404bf,_0x89d39a,_0x4f8e43),logger[_0x2f2ce7(0xc1)](_0x2f2ce7(0xf4)+_0x89d39a+_0x2f2ce7(0xa5)+JSON[_0x2f2ce7(0x99)](_0x1404bf[_0x89d39a]['values']));const _0x3511f1={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x1404bf},_0x18b831={};_0x18b831[_0x126a47]=_0x3511f1,_0x3b2585[_0x2f2ce7(0x78)](_0x18b831),logger['debug'](_0x2f2ce7(0xba)+_0x126a47+_0x2f2ce7(0xf6)+JSON[_0x2f2ce7(0x99)](_0x1404bf)),!this[_0x2f2ce7(0x89)][_0x126a47]&&(this['testLevelTags'][_0x126a47]={}),this[_0x2f2ce7(0x89)][_0x126a47][_0x89d39a]=CustomTagManager['mergeValues'](this[_0x2f2ce7(0x89)][_0x126a47][_0x89d39a],_0x4f8e43);}else{const _0x43c5ad=global['__workerDetails']?.[_0x2f2ce7(0xe8)]?.[_0x2f2ce7(0x9d)];if(!_0x43c5ad){const _0x52e18b=AutomationFramework['getTrackedInstance']();_0x126a47=AutomationFramework[_0x2f2ce7(0x8d)](_0x52e18b,PlaywrightDriverModule['KEY_TEST_ID'],'');if(!_0x126a47)try{const _0x181965=_0xf72487[_0x2f2ce7(0x73)](require,_0xf72487['ybyuW']),_0x4dbca2=_0x181965[_0x2f2ce7(0x91)](),_0x1b6dde=_0x4dbca2&&_0x4dbca2[_0x2f2ce7(0xef)]();_0x126a47=_0x1b6dde&&_0xf72487[_0x2f2ce7(0xa1)](typeof _0x1b6dde['getCurrentTestUUID'],_0xf72487[_0x2f2ce7(0x77)])&&_0x1b6dde[_0x2f2ce7(0xa2)]()||_0x126a47;}catch(_0x108188){logger['debug'](_0x2f2ce7(0xae)+(_0x108188&&_0x108188[_0x2f2ce7(0x71)]));}}else _0x126a47=TestInfo[_0x2f2ce7(0xd9)](_0x43c5ad,_0x43c5ad['retry']);const _0x4f997e=TestInfo['getTestDetails'](_0x126a47),_0xcb5658=_0x4f997e[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x2f2ce7(0xa9)](_0xcb5658,_0x89d39a,_0x4f8e43),_0x4f997e[TestFrameworkConstants[_0x2f2ce7(0xfc)]]=_0xcb5658,TestInfo[_0x2f2ce7(0xf7)](_0x126a47,_0x4f997e),!this[_0x2f2ce7(0x89)][_0x126a47]&&(this['testLevelTags'][_0x126a47]={}),this[_0x2f2ce7(0x89)][_0x126a47][_0x89d39a]=CustomTagManager[_0x2f2ce7(0x9e)](this[_0x2f2ce7(0x89)][_0x126a47][_0x89d39a],_0x4f8e43);}}}static[a90_0x575581(0xb1)](){const _0x1f7382=a90_0x575581,_0x3620e3={...this[_0x1f7382(0xa3)]};return _0x3620e3;}static[a90_0x575581(0x8a)](){const _0x3ca82c=a90_0x575581,_0x54d0f8={...this[_0x3ca82c(0x89)]};return _0x54d0f8;}static['clearTags'](){const _0x557816=a90_0x575581;this[_0x557816(0xa3)]={},this['testLevelTags']={};}static[a90_0x575581(0xac)](_0x471d3b,_0x2d83c0){const _0x4dae69=a90_0x575581,_0x2bbf00={};_0x2bbf00[_0x4dae69(0x85)]=function(_0x38a596,_0x1cb317){return _0x38a596||_0x1cb317;};const _0x5c915e=_0x2bbf00;if(!_0x471d3b)return;!this['buildLevelTags'][_0x471d3b]&&(this[_0x4dae69(0xa3)][_0x471d3b]={});for(const [_0x5813fb,_0x325a0e]of Object[_0x4dae69(0xdb)](_0x5c915e[_0x4dae69(0x85)](_0x2d83c0,{}))){if(!_0x325a0e||!Array[_0x4dae69(0xa6)](_0x325a0e[_0x4dae69(0xd5)]))continue;this['buildLevelTags'][_0x471d3b][_0x5813fb]=CustomTagManager[_0x4dae69(0x9e)](this[_0x4dae69(0xa3)][_0x471d3b][_0x5813fb],_0x325a0e[_0x4dae69(0xd5)]);}}static[a90_0x575581(0x7c)](_0x5c59f9,_0x553ec9){const _0x28d4e2=a90_0x575581,_0x1bcab4={};_0x1bcab4[_0x28d4e2(0xb4)]=_0x28d4e2(0x97),_0x1bcab4[_0x28d4e2(0xbb)]=function(_0x123f1,_0x54ee9f){return _0x123f1*_0x54ee9f;},_0x1bcab4[_0x28d4e2(0xbd)]=function(_0x58b6ac,_0x34e774){return _0x58b6ac*_0x34e774;},_0x1bcab4[_0x28d4e2(0xf9)]=function(_0x4f7c42,_0x43cf76){return _0x4f7c42*_0x43cf76;},_0x1bcab4[_0x28d4e2(0x8e)]=function(_0x1cfdf7,_0x1987b6){return _0x1cfdf7>_0x1987b6;},_0x1bcab4[_0x28d4e2(0xdc)]=function(_0x51e94d,_0x2ccb77){return _0x51e94d-_0x2ccb77;},_0x1bcab4[_0x28d4e2(0x9a)]=_0x28d4e2(0xc2);const _0x218340=_0x1bcab4;if(!_0x5c59f9)return logger[_0x28d4e2(0xc1)](_0x218340[_0x28d4e2(0xb4)]),0x0;let _0xb728e0;try{_0xb728e0=os[_0x28d4e2(0xe1)]();}catch(_0x2793e4){return logger[_0x28d4e2(0xc1)](_0x28d4e2(0xb3)+_0x2793e4),0x0;}let _0x151236;try{_0x151236=fs['readdirSync'](_0xb728e0);}catch(_0x192264){return logger[_0x28d4e2(0xc1)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20'+_0x192264),0x0;}const _0x104471=''+BUILD_TAG_FILE_PREFIX+_0x5c59f9+'_',_0x2973d7=_0x151236[_0x28d4e2(0xb5)](_0x4409a9=>_0x4409a9[_0x28d4e2(0x76)](_0x104471)&&_0x4409a9[_0x28d4e2(0xed)](_0x28d4e2(0xde))),_0x4d8f8f=_0x218340[_0x28d4e2(0xbb)](_0x218340[_0x28d4e2(0xbd)](_0x218340[_0x28d4e2(0xf9)](0x2,0x3c),0x3c),0x3e8);let _0x955346=0x0;for(const _0x41d80a of _0x2973d7){const _0x20f7ea=path[_0x28d4e2(0x96)](_0xb728e0,_0x41d80a);try{const _0x1a2692=fs[_0x28d4e2(0x7e)](_0x20f7ea);if(_0x218340[_0x28d4e2(0x8e)](_0x218340[_0x28d4e2(0xdc)](Date[_0x28d4e2(0xb6)](),_0x1a2692[_0x28d4e2(0x8f)]),_0x4d8f8f)){logger[_0x28d4e2(0xc1)](_0x28d4e2(0x7a)+_0x4d8f8f+_0x28d4e2(0x84)+_0x41d80a);try{fs['unlinkSync'](_0x20f7ea);}catch(_0x30674d){logger[_0x28d4e2(0xc1)](_0x28d4e2(0xca)+_0x41d80a+':\x20'+(_0x30674d&&_0x30674d[_0x28d4e2(0x71)]?_0x30674d[_0x28d4e2(0x71)]:_0x30674d));}continue;}const _0x306772=fs[_0x28d4e2(0xf3)](_0x20f7ea,_0x218340[_0x28d4e2(0x9a)]),_0x2bfee0=JSON[_0x28d4e2(0xf8)](_0x306772);this['mergeBuildLevelTags'](_0x553ec9,_0x2bfee0),_0x955346+=0x1;}catch(_0x217efd){logger['debug'](_0x28d4e2(0xbf)+_0x41d80a+':\x20'+(_0x217efd&&_0x217efd[_0x28d4e2(0x71)]?_0x217efd[_0x28d4e2(0x71)]:_0x217efd));}try{fs['unlinkSync'](_0x20f7ea);}catch(_0x12bfd2){logger[_0x28d4e2(0xc1)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'+_0x41d80a+':\x20'+(_0x12bfd2&&_0x12bfd2[_0x28d4e2(0x71)]?_0x12bfd2[_0x28d4e2(0x71)]:_0x12bfd2));}}return _0x955346;}}const a90_0x40ee32={};a90_0x40ee32[a90_0x575581(0xad)]=getBuildTagsRunId,a90_0x40ee32[a90_0x575581(0x83)]=getBuildTagsFilePath,a90_0x40ee32[a90_0x575581(0x75)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a90_0x575581(0xfa)]=a90_0x40ee32,module[a90_0x575581(0xaf)]=CustomTagManager;
|
|
1
|
+
'use strict';const a90_0x4240a0=a90_0x3dab;function a90_0x1753(){const _0x21134b=['buildLevelTags','clearTags','buildHashedId','1654020VukWCb','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','toObject','field_type','getTestDetails','_testInternals','values','get','writeFile','GrQVw','getAllData','resolveInstance','stringify','1213764LUnnja','EoCXX','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','818zsfqLE','message','gNBde','pid','testInfo','./framework/automationFramework','../../helpers/helper','bHIBi','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','getInstance','ADPrX','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','18HQIrXj','ms)\x20','bIZJy','from',',\x20finalTags=','isRunning','TEST',':jest-','wmair','exports','vkyDU','qxGKm','setTestDetails','49960yHpmaE','jest','statSync','dyUuJ','entries','942ffTxIK','readFileSync','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','kMWZf','sfEHh','trim','./state/hookState','COGDN','957ylrXDP','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','zjbfo','testhubConfig','\x20->\x20values=','__jestCurrentTestIdentifier','KEY_CUSTOM_TAGS','574445ncHcNX','multi_dropdown','POST','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','./state/testFrameworkState','AQaFc','asBbe','tmpdir','keys','length','now','isArray','readdirSync','mergeIntoTags','BUILD_TAG_FILE_PREFIX','function','7enWtyd','mtimeMs','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','AigNV','zuEmD','env','XJOBd','getTrackedInstance','addMultipleEntries','KEY_TEST_ID','currentTest','KkGxB','getTestFramework','QhJEm','getTestLevelTags','retry','utf8','__workerDetails','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','endsWith',',\x20key=','5494712kUtoev','unlinkSync','2972VASUwQ','debug','CustomTagManager','modules','getTestFrameworkDetail','2151BucxPq','RHVfc','getBuildTagsRunId','getTestIdentifierFromTestInfo','promises','jOVut','getBuildLevelTags','./modules/testhubModule','BROWSERSTACK_TESTHUB_UUID','.json','getTestUUID','NpoFP','path','getBuildTagsFilePath','parse','filter','MwvGD','../../helpers/classLogger','oYOqk','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','includes','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','name','wurqQ','bstack_build_tags_','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','bHubZ','toLowerCase','SFDkY','DMqlP','testLevelTags','mergeValues','parseCommaSeparatedValues','./TestInfo'];a90_0x1753=function(){return _0x21134b;};return a90_0x1753();}(function(_0x55ffe1,_0x3a79bd){const _0x2a2664=a90_0x3dab,_0x283523=_0x55ffe1();while(!![]){try{const _0x4e3681=-parseInt(_0x2a2664(0x221))/0x1*(-parseInt(_0x2a2664(0x241))/0x2)+parseInt(_0x2a2664(0x1ec))/0x3*(parseInt(_0x2a2664(0x1e7))/0x4)+parseInt(_0x2a2664(0x250))/0x5*(-parseInt(_0x2a2664(0x22f))/0x6)+-parseInt(_0x2a2664(0x260))/0x7*(parseInt(_0x2a2664(0x1e5))/0x8)+parseInt(_0x2a2664(0x211))/0x9+parseInt(_0x2a2664(0x23c))/0xa*(parseInt(_0x2a2664(0x249))/0xb)+-parseInt(_0x2a2664(0x21e))/0xc;if(_0x4e3681===_0x3a79bd)break;else _0x283523['push'](_0x283523['shift']());}catch(_0x2ce3a3){_0x283523['push'](_0x283523['shift']());}}}(a90_0x1753,0x6294c));const fs=require('fs'),os=require('os'),path=require(a90_0x4240a0(0x1f8)),helper=require(a90_0x4240a0(0x227)),AutomationFramework=require(a90_0x4240a0(0x226)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a90_0x4240a0(0x20d)),TestHubModule=require(a90_0x4240a0(0x1f3)),{createClassLogger}=require(a90_0x4240a0(0x1fd)),logger=createClassLogger(a90_0x4240a0(0x1e9)),BUILD_TAG_FILE_PREFIX=a90_0x4240a0(0x204);function getBuildTagsRunId(){const _0x1b62b6=a90_0x4240a0,_0x59846d={};_0x59846d[_0x1b62b6(0x263)]=function(_0xee2ad9,_0x415800){return _0xee2ad9===_0x415800;},_0x59846d[_0x1b62b6(0x248)]='null';const _0x37074a=_0x59846d,_0xeb35b6=process[_0x1b62b6(0x265)][_0x1b62b6(0x1f4)];if(!_0xeb35b6||_0x37074a[_0x1b62b6(0x263)](_0xeb35b6,_0x37074a[_0x1b62b6(0x248)]))return null;return _0xeb35b6;}function getBuildTagsFilePath(_0x74381b){const _0x475d59=a90_0x4240a0;return path['join'](os[_0x475d59(0x257)](),''+BUILD_TAG_FILE_PREFIX+_0x74381b+'_'+process[_0x475d59(0x224)]+_0x475d59(0x1f5));}class CustomTagManager{static ['buildLevelTags']={};static ['testLevelTags']={};static[a90_0x4240a0(0x20b)](_0xd241bf,_0x3df0d6){const _0x3afbc1=a90_0x4240a0;return Array[_0x3afbc1(0x232)](new Set([..._0xd241bf||[],..._0x3df0d6||[]]));}static[a90_0x4240a0(0x25d)](_0x5c82ca,_0x22b787,_0x14a3d5){const _0x2b937e=a90_0x4240a0,_0x403bcd={};_0x403bcd[_0x2b937e(0x23f)]=_0x2b937e(0x251);const _0x16d75b=_0x403bcd;if(!_0x5c82ca[_0x22b787]){const _0x3fe8cd={};_0x3fe8cd[_0x2b937e(0x214)]=_0x16d75b[_0x2b937e(0x23f)],_0x3fe8cd['values']=[..._0x14a3d5||[]],_0x5c82ca[_0x22b787]=_0x3fe8cd;}else!_0x5c82ca[_0x22b787][_0x2b937e(0x214)]&&(_0x5c82ca[_0x22b787][_0x2b937e(0x214)]=_0x16d75b['dyUuJ']),!Array[_0x2b937e(0x25b)](_0x5c82ca[_0x22b787][_0x2b937e(0x217)])&&(_0x5c82ca[_0x22b787][_0x2b937e(0x217)]=[]),_0x5c82ca[_0x22b787][_0x2b937e(0x217)]=CustomTagManager[_0x2b937e(0x20b)](_0x5c82ca[_0x22b787][_0x2b937e(0x217)],_0x14a3d5);return _0x5c82ca;}static async['setCustomTags'](_0x53b6dd,_0x1d592a,_0x116eab=![]){const _0x27a2a3=a90_0x4240a0,_0x9cf372={'XJOBd':function(_0x206de2,_0x457ec4){return _0x206de2!==_0x457ec4;},'EoCXX':'string','qxGKm':_0x27a2a3(0x22a),'gNBde':function(_0x8204c6,_0x585856){return _0x8204c6!==_0x585856;},'lSkeX':_0x27a2a3(0x220),'bHubZ':function(_0x23831f,_0x57f7fd){return _0x23831f===_0x57f7fd;},'RfjdX':_0x27a2a3(0x229),'xcLmU':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','jOVut':function(_0x10da0a,_0x3e9ef0){return _0x10da0a(_0x3e9ef0);},'KkGxB':'./browserstackCLI','asBbe':function(_0x18ffc5){return _0x18ffc5();},'wurqQ':'multi_dropdown','AQaFc':function(_0x1eebde,_0x47fa41){return _0x1eebde>_0x47fa41;},'NpoFP':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','wmair':_0x27a2a3(0x236),'sfEHh':function(_0x6d127c,_0x492d33){return _0x6d127c(_0x492d33);},'RHVfc':'./cliUtils','zuEmD':function(_0xfe40c6,_0x4ca82f){return _0xfe40c6===_0x4ca82f;},'ADPrX':_0x27a2a3(0x23d),'lXHVg':_0x27a2a3(0x205),'QPmOP':function(_0xdfedbf,_0x11bea1){return _0xdfedbf(_0x11bea1);},'zjbfo':_0x27a2a3(0x243),'FntZw':function(_0x18e9e2,_0x4d28fa){return _0x18e9e2(_0x4d28fa);},'RhgRm':_0x27a2a3(0x254),'vkyDU':_0x27a2a3(0x247),'QhJEm':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','GrQVw':function(_0x2de47f,_0x1e9f00){return _0x2de47f===_0x1e9f00;},'lLlwF':_0x27a2a3(0x25f)};if(_0x9cf372[_0x27a2a3(0x266)](typeof _0x53b6dd,_0x9cf372['EoCXX'])){logger[_0x27a2a3(0x1e8)](_0x9cf372[_0x27a2a3(0x23a)]);return;}if(_0x9cf372[_0x27a2a3(0x223)](typeof _0x1d592a,_0x9cf372[_0x27a2a3(0x21f)])){logger[_0x27a2a3(0x1e8)](_0x9cf372['lSkeX']);return;}if(_0x9cf372[_0x27a2a3(0x206)](_0x53b6dd[_0x27a2a3(0x246)](),'')){logger[_0x27a2a3(0x1e8)](_0x9cf372['RfjdX']);return;}if(_0x9cf372['bHubZ'](_0x1d592a['trim'](),'')){logger[_0x27a2a3(0x1e8)](_0x9cf372['xcLmU']);return;}const _0x1c1189=helper[_0x27a2a3(0x20c)](_0x1d592a);if(_0x116eab){const _0x1c15eb=_0x9cf372['jOVut'](require,_0x9cf372[_0x27a2a3(0x1db)]),_0xd24778=_0x1c15eb['getInstance'](),_0x40200c=_0xd24778&&_0xd24778[_0x27a2a3(0x1ea)][TestHubModule['MODULE_NAME']];if(_0x40200c){const _0x57c593=_0x40200c?.[_0x27a2a3(0x24c)]?.[_0x27a2a3(0x213)]()?.[_0x27a2a3(0x210)];TestInfo[_0x27a2a3(0x1f6)](_0x57c593);const _0x1eeacb=TestInfo[_0x27a2a3(0x215)](_0x57c593),_0x543718=_0x1eeacb[TestFrameworkConstants[_0x27a2a3(0x24f)]]||{};CustomTagManager[_0x27a2a3(0x25d)](_0x543718,_0x53b6dd,_0x1c1189),_0x1eeacb[TestFrameworkConstants[_0x27a2a3(0x24f)]]=_0x543718,TestInfo['setTestDetails'](_0x57c593,_0x1eeacb);!this['buildLevelTags'][_0x57c593]&&(this[_0x27a2a3(0x20e)][_0x57c593]={});this[_0x27a2a3(0x20e)][_0x57c593][_0x53b6dd]=CustomTagManager[_0x27a2a3(0x20b)](this[_0x27a2a3(0x20e)][_0x57c593][_0x53b6dd],_0x1c1189);try{const _0x157abc=_0x9cf372[_0x27a2a3(0x256)](getBuildTagsRunId);if(_0x157abc){const _0x39be22={};for(const [_0xf4eacf,_0x434d52]of Object[_0x27a2a3(0x240)](this[_0x27a2a3(0x20e)][_0x57c593]||{})){_0x39be22[_0xf4eacf]={'field_type':_0x9cf372[_0x27a2a3(0x203)],'values':Array['isArray'](_0x434d52)?[..._0x434d52]:[]};}_0x9cf372[_0x27a2a3(0x255)](Object[_0x27a2a3(0x258)](_0x39be22)[_0x27a2a3(0x259)],0x0)&&await fs[_0x27a2a3(0x1f0)][_0x27a2a3(0x219)](_0x9cf372[_0x27a2a3(0x1f1)](getBuildTagsFilePath,_0x157abc),JSON[_0x27a2a3(0x21d)](_0x39be22));}else logger[_0x27a2a3(0x1e8)](_0x9cf372[_0x27a2a3(0x1f7)]);}catch(_0x169cae){logger[_0x27a2a3(0x1e8)](_0x27a2a3(0x253)+(_0x169cae&&_0x169cae[_0x27a2a3(0x222)]?_0x169cae[_0x27a2a3(0x222)]:_0x169cae));}}}else{let _0x5665ea;const _0x5cc8ef=global[_0x27a2a3(0x24e)];let _0x5f061e=![];if(_0x5cc8ef&&_0x5cc8ef[_0x27a2a3(0x200)](_0x9cf372[_0x27a2a3(0x237)]))_0x5f061e=!![],_0x5665ea=_0x5cc8ef;else try{const _0x4f3cf3=_0x9cf372[_0x27a2a3(0x245)](require,_0x9cf372[_0x27a2a3(0x1ed)]),_0xe409e5=_0x9cf372[_0x27a2a3(0x245)](require,_0x9cf372[_0x27a2a3(0x1db)]);if(_0xe409e5[_0x27a2a3(0x22c)]()[_0x27a2a3(0x234)]()){const _0x1cc63a=_0x4f3cf3[_0x27a2a3(0x1eb)]();if(_0x9cf372[_0x27a2a3(0x264)](_0x1cc63a?.[_0x27a2a3(0x202)]?.[_0x27a2a3(0x207)](),_0x9cf372[_0x27a2a3(0x22d)])){const _0x22c47e=AutomationFramework[_0x27a2a3(0x1d7)]();_0x5665ea=AutomationFramework['getState'](_0x22c47e,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x5665ea&&_0x5665ea[_0x27a2a3(0x200)](_0x9cf372[_0x27a2a3(0x237)])&&(_0x5f061e=!![]);}}}catch(_0x2c668c){logger[_0x27a2a3(0x1e8)]('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x2c668c);}if(_0x5f061e){if(!_0x5665ea)throw new Error(_0x9cf372['lXHVg']);const _0x1d8eba=_0x9cf372['QPmOP'](require,_0x9cf372['KkGxB']),_0x5ea193=_0x1d8eba[_0x27a2a3(0x22c)]()['getTestFramework']();if(!_0x5ea193)throw new Error(_0x9cf372[_0x27a2a3(0x24b)]);const _0x28a6df=_0x9cf372['FntZw'](require,_0x9cf372['RhgRm']),_0x3b6215=_0x9cf372[_0x27a2a3(0x245)](require,_0x9cf372[_0x27a2a3(0x239)]),_0x2dc4a1=_0x5ea193[_0x27a2a3(0x21c)](_0x28a6df[_0x27a2a3(0x235)],_0x3b6215[_0x27a2a3(0x252)]);if(!_0x2dc4a1)throw new Error(_0x9cf372[_0x27a2a3(0x1dd)]);const _0xdfa6f0=_0x2dc4a1[_0x27a2a3(0x21b)]()[_0x27a2a3(0x218)](_0x5665ea)||{},_0x4ae1d2=_0xdfa6f0[TestFrameworkConstants[_0x27a2a3(0x24f)]]||{};logger[_0x27a2a3(0x1e8)]('[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier='+_0x5665ea+_0x27a2a3(0x1e4)+_0x53b6dd+',\x20values='+JSON[_0x27a2a3(0x21d)](_0x1c1189)+',\x20existingTags='+JSON[_0x27a2a3(0x21d)](_0x4ae1d2)),CustomTagManager[_0x27a2a3(0x25d)](_0x4ae1d2,_0x53b6dd,_0x1c1189),logger[_0x27a2a3(0x1e8)](_0x27a2a3(0x22b)+_0x53b6dd+_0x27a2a3(0x24d)+JSON[_0x27a2a3(0x21d)](_0x4ae1d2[_0x53b6dd]['values']));const _0x2b11ef={[TestFrameworkConstants[_0x27a2a3(0x24f)]]:_0x4ae1d2},_0x39419b={};_0x39419b[_0x5665ea]=_0x2b11ef,_0x2dc4a1[_0x27a2a3(0x1d8)](_0x39419b),logger['debug'](_0x27a2a3(0x1e2)+_0x5665ea+_0x27a2a3(0x233)+JSON[_0x27a2a3(0x21d)](_0x4ae1d2)),!this[_0x27a2a3(0x20a)][_0x5665ea]&&(this[_0x27a2a3(0x20a)][_0x5665ea]={}),this['testLevelTags'][_0x5665ea][_0x53b6dd]=CustomTagManager['mergeValues'](this[_0x27a2a3(0x20a)][_0x5665ea][_0x53b6dd],_0x1c1189);}else{const _0x5b1c9b=global[_0x27a2a3(0x1e1)]?.[_0x27a2a3(0x1da)]?.[_0x27a2a3(0x225)];if(!_0x5b1c9b){const _0xc3cea5=AutomationFramework['getTrackedInstance']();_0x5665ea=AutomationFramework['getState'](_0xc3cea5,PlaywrightDriverModule[_0x27a2a3(0x1d9)],'');if(!_0x5665ea)try{const _0x41ba72=_0x9cf372[_0x27a2a3(0x1f1)](require,_0x9cf372[_0x27a2a3(0x1db)]),_0xa49663=_0x41ba72['getInstance'](),_0x1f5c16=_0xa49663&&_0xa49663[_0x27a2a3(0x1dc)]();_0x5665ea=_0x1f5c16&&_0x9cf372[_0x27a2a3(0x21a)](typeof _0x1f5c16['getCurrentTestUUID'],_0x9cf372['lLlwF'])&&_0x1f5c16['getCurrentTestUUID']()||_0x5665ea;}catch(_0x10e479){logger['debug'](_0x27a2a3(0x201)+(_0x10e479&&_0x10e479[_0x27a2a3(0x222)]));}}else _0x5665ea=TestInfo[_0x27a2a3(0x1ef)](_0x5b1c9b,_0x5b1c9b[_0x27a2a3(0x1df)]);const _0xeb01f4=TestInfo[_0x27a2a3(0x215)](_0x5665ea),_0x5c4d4d=_0xeb01f4[TestFrameworkConstants[_0x27a2a3(0x24f)]]||{};CustomTagManager[_0x27a2a3(0x25d)](_0x5c4d4d,_0x53b6dd,_0x1c1189),_0xeb01f4[TestFrameworkConstants[_0x27a2a3(0x24f)]]=_0x5c4d4d,TestInfo[_0x27a2a3(0x23b)](_0x5665ea,_0xeb01f4),!this[_0x27a2a3(0x20a)][_0x5665ea]&&(this[_0x27a2a3(0x20a)][_0x5665ea]={}),this[_0x27a2a3(0x20a)][_0x5665ea][_0x53b6dd]=CustomTagManager[_0x27a2a3(0x20b)](this['testLevelTags'][_0x5665ea][_0x53b6dd],_0x1c1189);}}}static[a90_0x4240a0(0x1f2)](){const _0x57af60=a90_0x4240a0,_0x39bf55={...this[_0x57af60(0x20e)]};return _0x39bf55;}static[a90_0x4240a0(0x1de)](){const _0x5a405a=a90_0x4240a0,_0x2464b4={...this[_0x5a405a(0x20a)]};return _0x2464b4;}static[a90_0x4240a0(0x20f)](){const _0x5bf8e5=a90_0x4240a0;this['buildLevelTags']={},this[_0x5bf8e5(0x20a)]={};}static['mergeBuildLevelTags'](_0x2ada71,_0x5738f6){const _0x29fbfa=a90_0x4240a0,_0x522f1c={};_0x522f1c[_0x29fbfa(0x244)]=function(_0x367e52,_0x269cf9){return _0x367e52||_0x269cf9;};const _0x369dc1=_0x522f1c;if(!_0x2ada71)return;!this[_0x29fbfa(0x20e)][_0x2ada71]&&(this[_0x29fbfa(0x20e)][_0x2ada71]={});for(const [_0x113277,_0x32d323]of Object[_0x29fbfa(0x240)](_0x369dc1['kMWZf'](_0x5738f6,{}))){if(!_0x32d323||!Array[_0x29fbfa(0x25b)](_0x32d323['values']))continue;this[_0x29fbfa(0x20e)][_0x2ada71][_0x113277]=CustomTagManager[_0x29fbfa(0x20b)](this[_0x29fbfa(0x20e)][_0x2ada71][_0x113277],_0x32d323[_0x29fbfa(0x217)]);}}static['aggregateBuildLevelTagsFromTmp'](_0x444b69,_0x48a632){const _0xa48ac4=a90_0x4240a0,_0x2bc509={};_0x2bc509[_0xa48ac4(0x228)]=_0xa48ac4(0x22e),_0x2bc509[_0xa48ac4(0x1fc)]=function(_0x57ef0b,_0x4f12d9){return _0x57ef0b*_0x4f12d9;},_0x2bc509[_0xa48ac4(0x209)]=function(_0x328c4a,_0x455b43){return _0x328c4a*_0x455b43;},_0x2bc509[_0xa48ac4(0x231)]=function(_0x1a0134,_0x44e4ed){return _0x1a0134>_0x44e4ed;},_0x2bc509[_0xa48ac4(0x1fe)]=function(_0x45104f,_0x1de56f){return _0x45104f-_0x1de56f;},_0x2bc509[_0xa48ac4(0x208)]=_0xa48ac4(0x1e0);const _0x10565b=_0x2bc509;if(!_0x444b69)return logger[_0xa48ac4(0x1e8)](_0x10565b[_0xa48ac4(0x228)]),0x0;let _0x43572f;try{_0x43572f=os[_0xa48ac4(0x257)]();}catch(_0x1cec38){return logger[_0xa48ac4(0x1e8)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20'+_0x1cec38),0x0;}let _0x879841;try{_0x879841=fs[_0xa48ac4(0x25c)](_0x43572f);}catch(_0x6bbda5){return logger[_0xa48ac4(0x1e8)](_0xa48ac4(0x1ff)+_0x6bbda5),0x0;}const _0x29047f=''+BUILD_TAG_FILE_PREFIX+_0x444b69+'_',_0x5d23df=_0x879841[_0xa48ac4(0x1fb)](_0x35e3a5=>_0x35e3a5['startsWith'](_0x29047f)&&_0x35e3a5[_0xa48ac4(0x1e3)](_0xa48ac4(0x1f5))),_0x1f90bd=_0x10565b[_0xa48ac4(0x1fc)](_0x10565b['MwvGD'](_0x10565b[_0xa48ac4(0x209)](0x2,0x3c),0x3c),0x3e8);let _0x2615f8=0x0;for(const _0x6b1098 of _0x5d23df){const _0xf35982=path['join'](_0x43572f,_0x6b1098);try{const _0x227e3b=fs[_0xa48ac4(0x23e)](_0xf35982);if(_0x10565b['bIZJy'](_0x10565b['oYOqk'](Date[_0xa48ac4(0x25a)](),_0x227e3b[_0xa48ac4(0x261)]),_0x1f90bd)){logger['debug'](_0xa48ac4(0x262)+_0x1f90bd+_0xa48ac4(0x230)+_0x6b1098);try{fs['unlinkSync'](_0xf35982);}catch(_0x271272){logger['debug'](_0xa48ac4(0x24a)+_0x6b1098+':\x20'+(_0x271272&&_0x271272[_0xa48ac4(0x222)]?_0x271272[_0xa48ac4(0x222)]:_0x271272));}continue;}const _0x4c65ce=fs[_0xa48ac4(0x242)](_0xf35982,_0x10565b[_0xa48ac4(0x208)]),_0x3e7329=JSON[_0xa48ac4(0x1fa)](_0x4c65ce);this['mergeBuildLevelTags'](_0x48a632,_0x3e7329),_0x2615f8+=0x1;}catch(_0x3a41e1){logger[_0xa48ac4(0x1e8)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x6b1098+':\x20'+(_0x3a41e1&&_0x3a41e1['message']?_0x3a41e1['message']:_0x3a41e1));}try{fs[_0xa48ac4(0x1e6)](_0xf35982);}catch(_0x1cdc4d){logger[_0xa48ac4(0x1e8)](_0xa48ac4(0x212)+_0x6b1098+':\x20'+(_0x1cdc4d&&_0x1cdc4d[_0xa48ac4(0x222)]?_0x1cdc4d['message']:_0x1cdc4d));}}return _0x2615f8;}}const a90_0x5a6963={};function a90_0x3dab(_0x420e9d,_0x17e748){const _0x17530a=a90_0x1753();return a90_0x3dab=function(_0x3dab14,_0x1b2c59){_0x3dab14=_0x3dab14-0x1d7;let _0x16f744=_0x17530a[_0x3dab14];return _0x16f744;},a90_0x3dab(_0x420e9d,_0x17e748);}a90_0x5a6963[a90_0x4240a0(0x1ee)]=getBuildTagsRunId,a90_0x5a6963[a90_0x4240a0(0x1f9)]=getBuildTagsFilePath,a90_0x5a6963[a90_0x4240a0(0x25e)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a90_0x4240a0(0x216)]=a90_0x5a6963,module[a90_0x4240a0(0x238)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a91_0x1db04f=a91_0x3e2a;(function(_0x139dc9,_0x4a514c){const _0x2284bf=a91_0x3e2a,_0x493555=_0x139dc9();while(!![]){try{const _0x4198cf=-parseInt(_0x2284bf(0xcb))/0x1+parseInt(_0x2284bf(0xd1))/0x2*(parseInt(_0x2284bf(0xd4))/0x3)+parseInt(_0x2284bf(0xd5))/0x4+-parseInt(_0x2284bf(0xc8))/0x5*(-parseInt(_0x2284bf(0xcd))/0x6)+-parseInt(_0x2284bf(0xd7))/0x7*(parseInt(_0x2284bf(0xcc))/0x8)+-parseInt(_0x2284bf(0xc7))/0x9+parseInt(_0x2284bf(0xcf))/0xa*(parseInt(_0x2284bf(0xd0))/0xb);if(_0x4198cf===_0x4a514c)break;else _0x493555['push'](_0x493555['shift']());}catch(_0x5311fe){_0x493555['push'](_0x493555['shift']());}}}(a91_0x417a,0x68527));const {createClassLogger}=require(a91_0x1db04f(0xd3));class EventDispatcher{static #instance=null;constructor(){const _0x23102b=a91_0x1db04f;this[_0x23102b(0xc9)]={};}static[a91_0x1db04f(0xca)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}['registerObserver'](_0x37b44a,_0x508101){const _0xec587=a91_0x1db04f;!this[_0xec587(0xc9)][_0x37b44a]&&(this[_0xec587(0xc9)][_0x37b44a]=[]),this[_0xec587(0xc9)][_0x37b44a]['push'](_0x508101);}async[a91_0x1db04f(0xd6)](_0x4e21e8,_0x273250){const _0xa7db6=a91_0x1db04f,_0x1b6423={'gHCZJ':function(_0x5e2d83,_0x7ee0d5){return _0x5e2d83(_0x7ee0d5);}};if(this[_0xa7db6(0xc9)][_0x4e21e8]){for(const _0x5762d3 of this[_0xa7db6(0xc9)][_0x4e21e8]){await _0x1b6423[_0xa7db6(0xd2)](_0x5762d3,_0x273250);}return;}}}const eventDispatcher=EventDispatcher[a91_0x1db04f(0xca)]();function a91_0x3e2a(_0x2952b0,_0x293cba){const _0x417ab5=a91_0x417a();return a91_0x3e2a=function(_0x3e2a2a,_0x14aac6){_0x3e2a2a=_0x3e2a2a-0xc6;let _0x4ac437=_0x417ab5[_0x3e2a2a];return _0x4ac437;},a91_0x3e2a(_0x2952b0,_0x293cba);}Object[a91_0x1db04f(0xc6)](eventDispatcher),module[a91_0x1db04f(0xce)]=eventDispatcher;function a91_0x417a(){const _0x509be8=['8173DNWJZs','208734TUXApN','gHCZJ','../../helpers/classLogger.js','9XpKibu','1959716XTVzAV','notifyObserver','77ZsAJVy','freeze','4563000rrPKJq','20WKZeCY','observers','getInstance','666087lhPQVE','84120XrYQBU','568212Cinvej','exports','7190QOhzhb'];a91_0x417a=function(){return _0x509be8;};return a91_0x417a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a92_0x10d3f8=a92_0x3134;function a92_0x107f(){const _0x3c4268=['getHookRegistryKey','../../../helpers/classLogger.js','\x20hookState=','18561477iVyMuj','rUiQF','AutomationFramework','automation_sessions','util','automationFrameworkVersion','3GgkPCG','set','runHooks','automationFrameworkName','get','setState','exports','6380vUKjye','setTrackedInstance','debug','../instances/trackedInstance.js','../eventDispatcher.js','4055401iacXBP','1840935EXzXpy','getTrackedInstance','111BNmGlD','jDOvA','330920feYejW','getAutomationFrameworkName','KEY_AUTOMATION_SESSIONS','instances','getAllData','function','3969279YoJkiN','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','getCurrentInstanceName','getAutomationFrameworkVersion','../cliUtils.js','2090840YJeWSw','non_browserstack_automation_sessions','registerObserver','notifyObserver','6vqpsBU','HnClV','10dooDZG'];a92_0x107f=function(){return _0x3c4268;};return a92_0x107f();}(function(_0x17a2c9,_0x38d8d7){const _0xca3d1=a92_0x3134,_0x245437=_0x17a2c9();while(!![]){try{const _0x22ba81=parseInt(_0xca3d1(0x147))/0x1*(parseInt(_0xca3d1(0x16b))/0x2)+-parseInt(_0xca3d1(0x164))/0x3*(parseInt(_0xca3d1(0x149))/0x4)+-parseInt(_0xca3d1(0x145))/0x5*(parseInt(_0xca3d1(0x158))/0x6)+-parseInt(_0xca3d1(0x144))/0x7+-parseInt(_0xca3d1(0x154))/0x8+-parseInt(_0xca3d1(0x14f))/0x9+-parseInt(_0xca3d1(0x15a))/0xa*(-parseInt(_0xca3d1(0x15e))/0xb);if(_0x22ba81===_0x38d8d7)break;else _0x245437['push'](_0x245437['shift']());}catch(_0x2c84c6){_0x245437['push'](_0x245437['shift']());}}}(a92_0x107f,0x4b673));const {createClassLogger}=require(a92_0x10d3f8(0x15c)),util=require(a92_0x10d3f8(0x162)),eventDispatcher=require(a92_0x10d3f8(0x143)),CLIUtils=require(a92_0x10d3f8(0x153)),TrackedInstance=require(a92_0x10d3f8(0x142)),logger=createClassLogger(a92_0x10d3f8(0x160));function a92_0x3134(_0x2bf117,_0x5ec39b){const _0x107f28=a92_0x107f();return a92_0x3134=function(_0x31343e,_0x292f94){_0x31343e=_0x31343e-0x142;let _0x1933f6=_0x107f28[_0x31343e];return _0x1933f6;},a92_0x3134(_0x2bf117,_0x5ec39b);}class AutomationFramework{static [a92_0x10d3f8(0x14c)]=new Map();static [a92_0x10d3f8(0x14b)]=a92_0x10d3f8(0x161);static [a92_0x10d3f8(0x150)]=a92_0x10d3f8(0x155);constructor(_0x129b75,_0x1630f2){const _0x231765=a92_0x10d3f8;this['automationFrameworkName']=_0x129b75,this[_0x231765(0x163)]=_0x1630f2;}[a92_0x10d3f8(0x14a)](){const _0x2004f2=a92_0x10d3f8;return this[_0x2004f2(0x167)];}[a92_0x10d3f8(0x152)](){return this['automationFrameworkVersion'];}async['trackEvent'](_0x370d3f,_0x31b1f9,_0xa1b5ee={}){const _0xba3733=a92_0x10d3f8;logger[_0xba3733(0x16d)]('trackEvent:\x20automationFrameworkState='+_0x370d3f+_0xba3733(0x15d)+_0x31b1f9);}async[a92_0x10d3f8(0x166)](_0x4f0efd,_0x44a5f9,_0x15bc45,_0x1d87a3={}){const _0x5860d1=a92_0x10d3f8,_0x46ed94=CLIUtils['getHookRegistryKey'](_0x44a5f9,_0x15bc45);_0x4f0efd&&_0x4f0efd['setState'](_0x44a5f9),await eventDispatcher[_0x5860d1(0x157)](_0x46ed94,_0x1d87a3);}static[a92_0x10d3f8(0x156)](_0x5399fe,_0x1a9832,_0x134ca7){const _0x9ce2f4=a92_0x10d3f8;eventDispatcher[_0x9ce2f4(0x156)](CLIUtils[_0x9ce2f4(0x15b)](_0x5399fe,_0x1a9832),_0x134ca7);}static[a92_0x10d3f8(0x16c)](_0x59412c,_0x43f243){const _0x372983=a92_0x10d3f8;AutomationFramework[_0x372983(0x14c)][_0x372983(0x165)](_0x59412c['getId'](),_0x43f243);}static[a92_0x10d3f8(0x146)](){const _0x983ba9=a92_0x10d3f8,_0x26082b=TrackedInstance['createContext'](CLIUtils[_0x983ba9(0x151)]());return AutomationFramework['instances'][_0x983ba9(0x168)](_0x26082b['getId']());}static[a92_0x10d3f8(0x169)](_0x57d67a,_0x222fdc,_0x39d59e){const _0x32ef0a=a92_0x10d3f8;_0x57d67a[_0x32ef0a(0x14d)]()['set'](_0x222fdc,_0x39d59e);}static['getState'](_0x64f238,_0x9eecab,_0x586fcb=undefined){const _0x5af91f=a92_0x10d3f8,_0x5365bf={};_0x5365bf[_0x5af91f(0x159)]=function(_0x403224,_0xc9257f){return _0x403224!==_0xc9257f;},_0x5365bf[_0x5af91f(0x15f)]=_0x5af91f(0x14e),_0x5365bf[_0x5af91f(0x148)]=function(_0x476f60,_0x57bbe2){return _0x476f60===_0x57bbe2;};const _0x2c559f=_0x5365bf;if(!_0x64f238||_0x2c559f[_0x5af91f(0x159)](typeof _0x64f238[_0x5af91f(0x14d)],_0x2c559f['rUiQF']))return _0x586fcb;const _0x2083a5=_0x64f238[_0x5af91f(0x14d)]()[_0x5af91f(0x168)](_0x9eecab);return _0x2c559f['jDOvA'](_0x2083a5,undefined)?_0x586fcb:_0x2083a5;}}module[a92_0x10d3f8(0x16a)]=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a93_0xb310af=a93_0x8746;(function(_0x535745,_0x2c47b5){const _0x4eb116=a93_0x8746,_0x4bbab8=_0x535745();while(!![]){try{const _0x4ee51d=-parseInt(_0x4eb116(0xf9))/0x1*(parseInt(_0x4eb116(0x10e))/0x2)+-parseInt(_0x4eb116(0xf6))/0x3+parseInt(_0x4eb116(0x107))/0x4+-parseInt(_0x4eb116(0xf1))/0x5*(parseInt(_0x4eb116(0x103))/0x6)+parseInt(_0x4eb116(0xfd))/0x7*(-parseInt(_0x4eb116(0x102))/0x8)+parseInt(_0x4eb116(0xf3))/0x9*(parseInt(_0x4eb116(0x10c))/0xa)+parseInt(_0x4eb116(0xef))/0xb;if(_0x4ee51d===_0x2c47b5)break;else _0x4bbab8['push'](_0x4bbab8['shift']());}catch(_0x53a644){_0x4bbab8['push'](_0x4bbab8['shift']());}}}(a93_0x3a3e,0x5d132));function a93_0x3a3e(){const _0x9a2e33=['framework_session_id','is_browserstack_hub','2289128qCcgDs','newsession','w3cexecutescript','screenshot','COMMAND_NEW_SESSION','53130jcYtjx','KEY_PLATFORM_INDEX','410110YyIvbr','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','KEY_INPUT_CAPABILITIES','KEY_HUB_URL','9623383ySEqod','BROWSERSTACK_PLATFORM_INDEX','363030hBGuci','COMMAND_GET','999pdLpMP','KEY_ENDED_AT','ENV_BROWSERSTACK_PLATFORM_INDEX','1637250DrJpUH','w3cexecutescriptasync','KEY_IS_BROWSERSTACK_HUB','2ZAqVgT','KEY_FRAMEWORK_SESSION_ID','ended_at','platform_index','970501kPnxgD','KEY_CAPABILITIES','quit','input_capabilities','COMMAND_W3C_EXECUTE_SCRIPT','32ukBrjV','12IKdDVn','exports'];a93_0x3a3e=function(){return _0x9a2e33;};return a93_0x3a3e();}const a93_0x543475={};function a93_0x8746(_0x17f625,_0x4496ca){const _0x3a3e3f=a93_0x3a3e();return a93_0x8746=function(_0x87460b,_0x2df85d){_0x87460b=_0x87460b-0xef;let _0x2e142b=_0x3a3e3f[_0x87460b];return _0x2e142b;},a93_0x8746(_0x17f625,_0x4496ca);}a93_0x543475[a93_0xb310af(0xf5)]=a93_0xb310af(0xf0),a93_0x543475[a93_0xb310af(0x111)]='hub_url',a93_0x543475[a93_0xb310af(0xfa)]=a93_0xb310af(0x105),a93_0x543475[a93_0xb310af(0x110)]=a93_0xb310af(0x100),a93_0x543475[a93_0xb310af(0xfe)]='capabilities',a93_0x543475[a93_0xb310af(0xf8)]=a93_0xb310af(0x106),a93_0x543475['KEY_STARTED_AT']='started_at',a93_0x543475[a93_0xb310af(0xf4)]=a93_0xb310af(0xfb),a93_0x543475[a93_0xb310af(0x10d)]=a93_0xb310af(0xfc),a93_0x543475[a93_0xb310af(0x10b)]=a93_0xb310af(0x108),a93_0x543475[a93_0xb310af(0xf2)]='get',a93_0x543475['COMMAND_SCREENSHOT']=a93_0xb310af(0x10a),a93_0x543475[a93_0xb310af(0x101)]=a93_0xb310af(0x109),a93_0x543475[a93_0xb310af(0x10f)]=a93_0xb310af(0xf7),a93_0x543475['COMMAND_QUIT']=a93_0xb310af(0xff);const AutomationFrameworkConstants=a93_0x543475;module[a93_0xb310af(0x104)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x3f759c=a94_0xbaef;function a94_0xbaef(_0xc397b0,_0x50448b){const _0x491f52=a94_0x491f();return a94_0xbaef=function(_0xbaef1b,_0xe1434c){_0xbaef1b=_0xbaef1b-0x122;let _0x5eef85=_0x491f52[_0xbaef1b];return _0x5eef85;},a94_0xbaef(_0xc397b0,_0x50448b);}(function(_0x1675a8,_0x30b31d){const _0x5be30a=a94_0xbaef,_0x53beb6=_0x1675a8();while(!![]){try{const _0x260e4b=-parseInt(_0x5be30a(0x128))/0x1*(parseInt(_0x5be30a(0x14f))/0x2)+parseInt(_0x5be30a(0x166))/0x3*(parseInt(_0x5be30a(0x12e))/0x4)+parseInt(_0x5be30a(0x172))/0x5+parseInt(_0x5be30a(0x14b))/0x6*(parseInt(_0x5be30a(0x15e))/0x7)+-parseInt(_0x5be30a(0x12c))/0x8+-parseInt(_0x5be30a(0x160))/0x9+-parseInt(_0x5be30a(0x127))/0xa;if(_0x260e4b===_0x30b31d)break;else _0x53beb6['push'](_0x53beb6['shift']());}catch(_0x1c35d7){_0x53beb6['push'](_0x53beb6['shift']());}}}(a94_0x491f,0x493f1));const a94_0x40e03b={};a94_0x40e03b[a94_0x3f759c(0x130)]=a94_0x3f759c(0x153),a94_0x40e03b[a94_0x3f759c(0x151)]=a94_0x3f759c(0x140),a94_0x40e03b['KEY_TEST_NAME']=a94_0x3f759c(0x136),a94_0x40e03b[a94_0x3f759c(0x14c)]=a94_0x3f759c(0x16d),a94_0x40e03b[a94_0x3f759c(0x135)]=a94_0x3f759c(0x168),a94_0x40e03b['KEY_TEST_RESULT']='test_result',a94_0x40e03b[a94_0x3f759c(0x144)]=a94_0x3f759c(0x124),a94_0x40e03b[a94_0x3f759c(0x176)]='test_started_at',a94_0x40e03b[a94_0x3f759c(0x156)]='test_ended_at',a94_0x40e03b[a94_0x3f759c(0x13c)]=a94_0x3f759c(0x13f),a94_0x40e03b[a94_0x3f759c(0x13d)]='test_duration',a94_0x40e03b[a94_0x3f759c(0x16c)]=a94_0x3f759c(0x129),a94_0x40e03b[a94_0x3f759c(0x14d)]=a94_0x3f759c(0x15c),a94_0x40e03b['KEY_TEST_FRAMEWORK_NAME']=a94_0x3f759c(0x15a),a94_0x40e03b[a94_0x3f759c(0x152)]=a94_0x3f759c(0x13e),a94_0x40e03b[a94_0x3f759c(0x158)]=a94_0x3f759c(0x12f),a94_0x40e03b[a94_0x3f759c(0x14a)]='test_rerun_name',a94_0x40e03b[a94_0x3f759c(0x163)]=a94_0x3f759c(0x131),a94_0x40e03b[a94_0x3f759c(0x17a)]=a94_0x3f759c(0x169),a94_0x40e03b['KEY_TEST_FAILURE']='test_failure',a94_0x40e03b['KEY_TEST_FAILURE_TYPE']='test_failure_type',a94_0x40e03b[a94_0x3f759c(0x177)]=a94_0x3f759c(0x17b),a94_0x40e03b[a94_0x3f759c(0x12b)]='test_logs',a94_0x40e03b[a94_0x3f759c(0x149)]=a94_0x3f759c(0x167),a94_0x40e03b[a94_0x3f759c(0x148)]='test_session_name',a94_0x40e03b[a94_0x3f759c(0x133)]=a94_0x3f759c(0x139),a94_0x40e03b[a94_0x3f759c(0x170)]='automate_session_status',a94_0x40e03b[a94_0x3f759c(0x179)]='automate_session_reason',a94_0x40e03b[a94_0x3f759c(0x159)]=a94_0x3f759c(0x173),a94_0x40e03b[a94_0x3f759c(0x143)]=a94_0x3f759c(0x15b),a94_0x40e03b[a94_0x3f759c(0x141)]='hook_id',a94_0x40e03b[a94_0x3f759c(0x15f)]=a94_0x3f759c(0x14e),a94_0x40e03b[a94_0x3f759c(0x126)]=a94_0x3f759c(0x16f),a94_0x40e03b[a94_0x3f759c(0x125)]=a94_0x3f759c(0x147),a94_0x40e03b[a94_0x3f759c(0x13b)]='hook_failure',a94_0x40e03b[a94_0x3f759c(0x123)]=a94_0x3f759c(0x164),a94_0x40e03b[a94_0x3f759c(0x155)]=a94_0x3f759c(0x146),a94_0x40e03b[a94_0x3f759c(0x175)]=a94_0x3f759c(0x137),a94_0x40e03b[a94_0x3f759c(0x138)]='pending',a94_0x40e03b[a94_0x3f759c(0x134)]='TEST_SCREENSHOT',a94_0x40e03b[a94_0x3f759c(0x16a)]=a94_0x3f759c(0x16e),a94_0x40e03b['HOOK_REGEX']=a94_0x3f759c(0x154),a94_0x40e03b['KEY_HOOKS_STARTED']=a94_0x3f759c(0x171),a94_0x40e03b['KEY_HOOKS_FINISHED']='test_hooks_finished',a94_0x40e03b['KEY_HOOK_LAST_STARTED']=a94_0x3f759c(0x150),a94_0x40e03b[a94_0x3f759c(0x16b)]=a94_0x3f759c(0x142),a94_0x40e03b[a94_0x3f759c(0x15d)]=a94_0x3f759c(0x174),a94_0x40e03b[a94_0x3f759c(0x122)]=a94_0x3f759c(0x162),a94_0x40e03b[a94_0x3f759c(0x12d)]=a94_0x3f759c(0x132),a94_0x40e03b['KEY_FILE_SIZE']='file_size',a94_0x40e03b[a94_0x3f759c(0x178)]='file_name',a94_0x40e03b['KEY_FILE_PATH']=a94_0x3f759c(0x12a),a94_0x40e03b['KEY_FILE_LEVEL']='file_level',a94_0x40e03b[a94_0x3f759c(0x145)]=a94_0x3f759c(0x157),a94_0x40e03b[a94_0x3f759c(0x165)]=0xa,a94_0x40e03b[a94_0x3f759c(0x161)]=0x2;const TestFrameworkConstants=a94_0x40e03b;module[a94_0x3f759c(0x13a)]=TestFrameworkConstants;function a94_0x491f(){const _0x39d3e9=['266QOLRtt','KEY_HOOK_RESULT','5085036LosHQV','MAX_NESTED_STEP_DEPTH','custom_metadata','KEY_TEST_RETRY_OF','hook_logs','MAX_TOP_LEVEL_STEPS','471MXIrnA','test_meta','test_tags','platform_index','KIND_LOG','KEY_HOOK_LAST_FINISHED','KEY_TEST_SCOPE','test_file_path','TEST_LOG','hook_failure_type','KEY_AUTOMATE_SESSION_STATUS','test_hooks_started','1906910JLPcGY','event_started_at','logs','DEFAULT_TEST_RESULT','KEY_TEST_STARTED_AT','KEY_TEST_FAILURE_REASON','KEY_FILE_NAME','KEY_AUTOMATE_SESSION_REASON','KEY_PLATFORM_INDEX','test_failure_reason','KEY_CUSTOM_TAGS','KEY_HOOK_LOGS','test_result_at','KEY_HOOK_FAILURE_REASON','KEY_HOOK_FAILURE_TYPE','2804620unLfOb','5PTokpF','test_scope','file_path','KEY_TEST_LOGS','1361288cdZAcj','KEY_TEST_ATTACHMENTS','11980opIBEm','test_code','KEY_TEST_UUID','retry_of','test_attachments','KEY_AUTOMATE_SESSION_NAME','KIND_SCREENSHOT','KEY_TEST_TAGS','test_name','pending','DEFAULT_HOOK_RESULT','automate_session_name','exports','KEY_HOOK_FAILURE','KEY_TEST_LOCATION','KEY_TEST_DURATION','test_framework_version','test_location','test_id','KEY_HOOK_ID','test_hook_last_finished','KEY_EVENT_ENDED_AT','KEY_TEST_RESULT_AT','KEY_TEST_SCREENSHOTS','hook_name','hook_failure_reason','KEY_SESSION_NAME','KEY_TEST_META','KEY_TEST_RERUN_NAME','77514waKGEm','KEY_TEST_FILE_PATH','KEY_TEST_SCOPES','hook_result','10750CGwhaC','test_hook_last_started','KEY_TEST_ID','KEY_TEST_FRAMEWORK_VERSION','test_uuid','^(BEFORE_|AFTER_)','KEY_HOOK_NAME','KEY_TEST_ENDED_AT','test_screenshots','KEY_TEST_CODE','KEY_EVENT_STARTED_AT','test_framework_name','event_ended_at','test_scopes','KEY_LOGS'];a94_0x491f=function(){return _0x39d3e9;};return a94_0x491f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a95_0x297e12=a95_0x2598;function a95_0x2555(){const _0x298824=['scopes','2ClSCCP','AKALg','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','KEY_TEST_RESULT','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','UEShe','keys','toString','\x20\x20and\x20args\x20=\x20','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','getTrackedInstance','Stored\x20pending\x20hook\x20for\x20testId:\x20','createTestFrameworkEventPayload\x20testId:\x20','KEY_LOGS','DEFAULT_HOOK_RESULT','platformIndex','KEY_TEST_FAILURE_REASON','../state/hookState.js','maLQq','failure','YtTAy','5963380FUYQYy','getTestFrameworksVersions','../../../helpers/classLogger.js',',\x20error:\x20','finishedAt','KEY_TEST_LOCATION','runHooks','KEY_HOOK_NAME','716609HHVGtN','exports','KEY_TEST_TAGS','NONE','Processing\x20','WItUe','\x20with\x20UUID:\x20','meta','testData','hookData','\x20and\x20args\x20=\x20','\x20with\x20id\x20','qQqQc','CDuCw','trackCucumberInstance','failure_data','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','./constants/testFrameworkConstants.js','Lfcpj','split','getAllData',',\x20state:\x20','pop','KEY_HOOKS_FINISHED',',\x20storing\x20as\x20pending\x20hook','DEFAULT_TEST_RESULT','KEY_TEST_META','testFrameworkState','failure_reason','getTestUUID','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','from','NFPhv','setTrackedInstance','readLogObjects','ceil','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','CucumberTestFramework','util','sendLogCreatedEvent','length','KEY_TEST_UUID','1707096uYZWMs','location','KEY_TEST_FRAMEWORK_VERSION','yRynx','hooks','\x20batch\x20','trackHookEvent','Updated\x20cucumber\x20test\x20result:\x20','KEY_TEST_ENDED_AT','name','debug','resolveInstance','../TestInfo.js','browserstackPlatformIndex','inspect','startedAt','getCurrentTestState','3562551qzJODG','hook_type','KEY_HOOK_LOGS','KEY_EVENT_STARTED_AT','getThreadId','rerun_name','toISOString','qlRiS','KEY_TEST_RERUN_NAME','test','../state/testFrameworkState.js','ctfoP','XNYJR','hpTOL','bXCjP','testUUID','createTestFrameworkEventPayload','KEY_TEST_NAME','getTestDetails','base64','getId','UHKFs','getRef','560FMYMOw','sendLogCreatedEvent:\x20for\x20testId:\x20','../instances/trackedInstance.js','KEY_HOOK_FAILURE_REASON','error','trackCucumberInstance:\x20saved\x20instance\x20contextId=','WfYqK','get','removePendingHooks','result','53207iYwSAI','\x20target=','INIT_TEST','processPendingHooks','../../../helpers/helper.js','\x20&\x20hookState=','495648jGNXmn','NxaVv','KEY_HOOK_FAILURE','getTestFrameworks','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KEY_TEST_FAILURE','addMultipleEntries','ouIat','failure_type','KEY_CUSTOM_TAGS','finished_at','matchHookRegex','createContext','getContext','\x20pending\x20hooks\x20for\x20testId:\x20','getCurrentInstanceName','hookState','eventJson','file_name','storePendingHook','kAjvo','GHXVV','trackEvent:\x20unsupported\x20testFrameworkState=','executionContext','PRE','args','5uLHLTp','trackEvent','started_at','setTestDetails','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','KEY_TEST_ID','SzmkO','concat','\x20testState:\x20','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','unknown','KEY_TEST_ATTACHMENTS','code','uuid','../cliUtils.js','stringify','parseCucumberTestResult','UnhandledError','parseCucumberTest','KEY_HOOK_RESULT','KEY_TEST_CODE','KEY_EVENT_ENDED_AT','VihPy','getCurrentHookState','instance','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','passed','bpExz','BYpTN','BGvXa','KEY_HOOK_ID','./testFramework','KEY_TEST_FRAMEWORK_NAME','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','Parsed\x20cucumber\x20test:\x20','aQetb','Error\x20in\x20createTestFrameworkEventPayload:\x20','2556200WAcyKl','format','LOG_REPORT','../instances/testFrameworkInstance.js','KEY_TEST_RESULT_AT','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','logCreatedEvent','UofqO','TEST','POST','push','key','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','testFrameworkVersion','getPendingHooks','body','tags','KEY_HOOKS_STARTED','failed','KEY_TEST_STARTED_AT','\x20response='];a95_0x2555=function(){return _0x298824;};return a95_0x2555();}(function(_0x3c499a,_0x358e96){const _0x4cefbb=a95_0x2598,_0x2192ea=_0x3c499a();while(!![]){try{const _0x56eb3e=-parseInt(_0x4cefbb(0x194))/0x1*(-parseInt(_0x4cefbb(0x24b))/0x2)+-parseInt(_0x4cefbb(0x1be))/0x3+parseInt(_0x4cefbb(0x235))/0x4*(parseInt(_0x4cefbb(0x210))/0x5)+parseInt(_0x4cefbb(0x1f6))/0x6+parseInt(_0x4cefbb(0x1f0))/0x7*(-parseInt(_0x4cefbb(0x1e6))/0x8)+-parseInt(_0x4cefbb(0x1cf))/0x9+parseInt(_0x4cefbb(0x18c))/0xa;if(_0x56eb3e===_0x358e96)break;else _0x2192ea['push'](_0x2192ea['shift']());}catch(_0x148afa){_0x2192ea['push'](_0x2192ea['shift']());}}}(a95_0x2555,0x83440));const TestFramework=require(a95_0x297e12(0x22f)),TestFrameworkState=require(a95_0x297e12(0x1d9)),HookState=require(a95_0x297e12(0x188)),{createClassLogger}=require(a95_0x297e12(0x18e)),TestFrameworkInstance=require(a95_0x297e12(0x238)),CLIUtils=require(a95_0x297e12(0x21e)),TrackedInstance=require(a95_0x297e12(0x1e8)),TestFrameworkConstants=require(a95_0x297e12(0x1a5)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a95_0x297e12(0x1f4)),logger=createClassLogger(a95_0x297e12(0x1b9)),{v4:uuidv4}=require(a95_0x297e12(0x21d)),util=require(a95_0x297e12(0x1ba)),TestInfo=require(a95_0x297e12(0x1ca)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x54ba2d,_0x352088,_0xf44679){super(_0x54ba2d,_0x352088,_0xf44679);}async[a95_0x297e12(0x211)](_0x2d04d1,_0x28837e,_0x1abf40={}){const _0x4337f9=a95_0x297e12,_0x3d78e9={};_0x3d78e9[_0x4337f9(0x1dc)]=_0x4337f9(0x254),_0x3d78e9['UofqO']=function(_0x151a0a,_0x21d3dc){return _0x151a0a===_0x21d3dc;},_0x3d78e9[_0x4337f9(0x1a1)]=function(_0x33fa0b,_0xa264aa){return _0x33fa0b===_0xa264aa;},_0x3d78e9[_0x4337f9(0x20b)]='trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s';const _0x59862c=_0x3d78e9;await super['trackEvent'](_0x2d04d1,_0x28837e,_0x1abf40);const _0x48c90f=this[_0x4337f9(0x1c9)](_0x2d04d1,_0x28837e,_0x1abf40);if(!_0x48c90f){logger[_0x4337f9(0x1c8)](_0x59862c[_0x4337f9(0x1dc)]);return;}try{let _0x2d3006,_0x129d4d;switch(_0x2d04d1){case TestFrameworkState['TEST']:_0x2d3006=_0x1abf40[_0x4337f9(0x1d8)],_0x129d4d=TestInfo[_0x4337f9(0x1b1)](_0x2d3006['id']);if(_0x59862c[_0x4337f9(0x23c)](_0x28837e,HookState['PRE'])){logger['debug']('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x2d3006['id']);const _0x3bbe03={};_0x3bbe03[_0x4337f9(0x1de)]=_0x129d4d,_0x3bbe03[_0x4337f9(0x19c)]=_0x2d3006,_0x48c90f[_0x4337f9(0x1fc)](this[_0x4337f9(0x222)](_0x3bbe03)),logger[_0x4337f9(0x1c8)](_0x4337f9(0x231)+_0x2d3006['id']),await this[_0x4337f9(0x1f3)](_0x48c90f,_0x2d3006['id']);}else{if(_0x59862c[_0x4337f9(0x1a1)](_0x28837e,HookState[_0x4337f9(0x23e)])){const _0x56bcf0={};_0x56bcf0[_0x4337f9(0x1de)]=_0x129d4d,_0x56bcf0[_0x4337f9(0x19c)]=_0x2d3006,_0x48c90f[_0x4337f9(0x1fc)](this[_0x4337f9(0x220)](_0x56bcf0)),await this[_0x4337f9(0x1f3)](_0x48c90f,_0x2d3006['id']);}}break;case TestFrameworkState[_0x4337f9(0x237)]:_0x59862c['CDuCw'](_0x28837e,HookState[_0x4337f9(0x23e)])&&await this[_0x4337f9(0x1bb)](_0x48c90f,_0x2d04d1,_0x1abf40);break;default:if(CLIUtils[_0x4337f9(0x201)](_0x2d04d1[_0x4337f9(0x252)]()[_0x4337f9(0x1a7)]('.')[0x1])){const _0x50c15b=await this[_0x4337f9(0x1c4)](_0x48c90f,_0x2d04d1,_0x28837e,_0x1abf40);_0x48c90f['addMultipleEntries'](_0x50c15b);}else logger[_0x4337f9(0x1c8)](_0x4337f9(0x20c)+_0x2d04d1+_0x4337f9(0x1f5)+_0x28837e);break;}}catch(_0x22997c){logger[_0x4337f9(0x1ea)](util[_0x4337f9(0x236)](_0x59862c[_0x4337f9(0x20b)],_0x2d04d1,_0x28837e,_0x1abf40[_0x4337f9(0x1bc)],_0x22997c));}_0x1abf40[_0x4337f9(0x228)]=_0x48c90f,await this[_0x4337f9(0x192)](_0x48c90f,_0x2d04d1,_0x28837e,_0x1abf40);}[a95_0x297e12(0x1c9)](_0x95c172,_0x1f3ffb,_0x1458a5={}){const _0x20fc17=a95_0x297e12,_0x34f8dd={};_0x34f8dd[_0x20fc17(0x24c)]=function(_0x55d730,_0x9f9e03){return _0x55d730===_0x9f9e03;},_0x34f8dd[_0x20fc17(0x1a6)]=function(_0x1acf94,_0xdc7a33){return _0x1acf94===_0xdc7a33;};const _0x420c14=_0x34f8dd;let _0xc5bebb=null;return(_0x420c14[_0x20fc17(0x24c)](_0x95c172,TestFrameworkState[_0x20fc17(0x1f2)])||_0x420c14[_0x20fc17(0x1a6)](_0x95c172,TestFrameworkState[_0x20fc17(0x197)]))&&this[_0x20fc17(0x1a2)](_0x95c172,_0x1458a5),_0xc5bebb=TestFramework[_0x20fc17(0x181)](),_0xc5bebb;}['trackCucumberInstance'](_0x256e7c,_0x35f98e){const _0x3335b3=a95_0x297e12,_0x48fb40=CLIUtils[_0x3335b3(0x205)](),_0x13b90b=TrackedInstance[_0x3335b3(0x202)](_0x48fb40);let _0x33d32e=null;logger[_0x3335b3(0x1c8)](_0x3335b3(0x219)+_0x48fb40+',\x20state='+_0x256e7c),_0x33d32e=new TestFrameworkInstance(_0x13b90b,this[_0x3335b3(0x1f9)](),this[_0x3335b3(0x18d)](),_0x256e7c,HookState[_0x3335b3(0x197)]),TestFramework[_0x3335b3(0x1b5)](_0x13b90b,_0x33d32e),logger[_0x3335b3(0x1c8)](_0x3335b3(0x1eb)+_0x13b90b[_0x3335b3(0x1e3)]()+_0x3335b3(0x1f1)+_0x48fb40);}[a95_0x297e12(0x222)](_0x2bfa37){const _0x2a238f=a95_0x297e12,_0x3338ca={};_0x3338ca['SzmkO']=_0x2a238f(0x214);const _0x50c140=_0x3338ca,{testUUID:_0x32cdd2,testData:_0x494311}=_0x2bfa37;if(!_0x494311||!_0x494311[_0x2a238f(0x21d)])return logger[_0x2a238f(0x1c8)](_0x50c140[_0x2a238f(0x216)]),{};const _0x21ea20=_0x32cdd2,_0x5e0138=_0x494311[_0x2a238f(0x21d)],_0x5f2d4d=this[_0x2a238f(0x1f9)]()[0x0],_0x3163fe=this['getTestFrameworksVersions'](),_0x50a4af={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x5f2d4d,[TestFrameworkConstants[_0x2a238f(0x1c0)]]:_0x3163fe[_0x5f2d4d],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants[_0x2a238f(0x1ab)]]:{},[TestFrameworkConstants[_0x2a238f(0x246)]]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x21ea20,[TestFrameworkConstants[_0x2a238f(0x24e)]]:TestFrameworkConstants[_0x2a238f(0x1ad)],[TestFrameworkConstants['KEY_AUTOMATE_SESSION_NAME']]:_0x494311[_0x2a238f(0x1c7)]||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x494311[_0x2a238f(0x208)]||'',[TestFrameworkConstants[_0x2a238f(0x215)]]:_0x5e0138,[TestFrameworkConstants[_0x2a238f(0x1e0)]]:_0x494311[_0x2a238f(0x1c7)]||'',[TestFrameworkConstants[_0x2a238f(0x191)]]:_0x494311[_0x2a238f(0x1bf)]||'',[TestFrameworkConstants[_0x2a238f(0x224)]]:_0x494311[_0x2a238f(0x244)]?.[_0x2a238f(0x21c)]||null,[TestFrameworkConstants[_0x2a238f(0x196)]]:_0x494311[_0x2a238f(0x245)]||[],[TestFrameworkConstants[_0x2a238f(0x248)]]:_0x494311[_0x2a238f(0x1cd)]||new Date()[_0x2a238f(0x1d5)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x494311[_0x2a238f(0x24a)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x494311[_0x2a238f(0x24a)]||[],[TestFrameworkConstants[_0x2a238f(0x1d7)]]:_0x494311['customRerunParam']?.[_0x2a238f(0x1d4)]||_0x494311[_0x2a238f(0x1c7)]||'',[TestFrameworkConstants[_0x2a238f(0x1ff)]]:{},[TestFrameworkConstants[_0x2a238f(0x1ae)]]:_0x494311[_0x2a238f(0x19b)]||{}};TestInfo[_0x2a238f(0x213)](_0x5e0138,_0x50a4af),logger[_0x2a238f(0x1c8)](_0x2a238f(0x232)+_0x494311[_0x2a238f(0x1c7)]+_0x2a238f(0x19a)+_0x21ea20);const _0x3b6624={};return _0x3b6624[_0x5e0138]=_0x50a4af,_0x3b6624;}[a95_0x297e12(0x220)](_0x5681a6){const _0x2c3fed=a95_0x297e12,_0x33bd09={'VihPy':_0x2c3fed(0x24d),'WItUe':_0x2c3fed(0x21a),'BGvXa':function(_0x5d6275,_0x54bb8d){return _0x5d6275===_0x54bb8d;},'SIrLm':_0x2c3fed(0x247),'qQqQc':_0x2c3fed(0x221),'YtTAy':function(_0xdf755c,_0x165555,_0x11f479){return _0xdf755c(_0x165555,_0x11f479);},'IPwnp':function(_0x3e3b6b,_0x461bb7){return _0x3e3b6b>_0x461bb7;},'NFPhv':function(_0x243323,_0x3d7f44){return _0x243323>_0x3d7f44;}},{testUUID:_0x5de17d,testData:_0x418a91}=_0x5681a6;if(!_0x418a91||!_0x418a91[_0x2c3fed(0x21d)])return logger[_0x2c3fed(0x1c8)](_0x33bd09[_0x2c3fed(0x226)]),{};const _0x2ea5a5=this[_0x2c3fed(0x1c9)](TestFrameworkState[_0x2c3fed(0x23d)],HookState[_0x2c3fed(0x23e)]),_0x5a1478=_0x418a91[_0x2c3fed(0x21d)],_0x49f91c=TestInfo['getTestDetails'](_0x5a1478)||{},_0x69353b=_0x49f91c?_0x49f91c[TestFrameworkConstants[_0x2c3fed(0x1ff)]]||{}:{},_0x586c18={..._0x49f91c,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x418a91['result']||_0x33bd09[_0x2c3fed(0x199)],[TestFrameworkConstants[_0x2c3fed(0x1c6)]]:_0x418a91[_0x2c3fed(0x190)]||new Date()[_0x2c3fed(0x1d5)](),[TestFrameworkConstants[_0x2c3fed(0x239)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x2c3fed(0x1ff)]]:_0x69353b,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants[_0x2c3fed(0x1ae)]]:_0x418a91[_0x2c3fed(0x19b)]||{}};_0x33bd09[_0x2c3fed(0x22d)](_0x418a91['result'],_0x33bd09['SIrLm'])&&_0x418a91['failure']&&(_0x586c18[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x418a91[_0x2c3fed(0x1fe)]||_0x33bd09[_0x2c3fed(0x1a0)],_0x586c18[TestFrameworkConstants[_0x2c3fed(0x187)]]=_0x418a91[_0x2c3fed(0x1b0)]||'',_0x586c18[TestFrameworkConstants[_0x2c3fed(0x1fb)]]=_0x418a91[_0x2c3fed(0x18a)]);const _0x28aa0f=TestInfo[_0x2c3fed(0x1e1)](_0x5a1478)[TestFrameworkConstants[_0x2c3fed(0x21b)]]||{},_0x1debd4=_0x33bd09[_0x2c3fed(0x18b)](getManualUploadLogs,_0x28aa0f,_0x2ea5a5[_0x2c3fed(0x1a8)]()[_0x2c3fed(0x1ed)](_0x5a1478)[TestFrameworkConstants[_0x2c3fed(0x1bd)]]);if(_0x33bd09['IPwnp'](_0x1debd4[_0x2c3fed(0x1bc)],0x0)){const _0x31f59d=_0x586c18[TestFrameworkConstants[_0x2c3fed(0x184)]]||[];_0x586c18[TestFrameworkConstants[_0x2c3fed(0x184)]]=[..._0x31f59d,..._0x1debd4];}_0x418a91[_0x2c3fed(0x1c2)]&&_0x33bd09[_0x2c3fed(0x1b4)](_0x418a91[_0x2c3fed(0x1c2)][_0x2c3fed(0x1bc)],0x0)&&(_0x586c18[TestFrameworkConstants[_0x2c3fed(0x1ab)]]=_0x418a91[_0x2c3fed(0x1c2)]);TestInfo[_0x2c3fed(0x213)](_0x5a1478,_0x586c18),logger[_0x2c3fed(0x1c8)](_0x2c3fed(0x1c5)+_0x418a91[_0x2c3fed(0x1c7)]+'\x20with\x20result:\x20'+_0x418a91['result']);const _0x151a31={};return _0x151a31[_0x5a1478]=_0x586c18,_0x151a31;}async[a95_0x297e12(0x1c4)](_0x5ae327,_0x54a967,_0x39fe86,_0x309a38){const _0x2094c1=a95_0x297e12,_0x4c566e={'kAjvo':_0x2094c1(0x1b8),'maLQq':function(_0x58b17d){return _0x58b17d();},'EGKYV':function(_0x1bf694,_0x3aca31){return _0x1bf694 in _0x3aca31;},'mWons':function(_0xe2bda,_0x4b00af){return _0xe2bda in _0x4b00af;},'BYpTN':function(_0x34126d,_0x1119bd){return _0x34126d===_0x1119bd;},'qlRiS':function(_0x171b5a,_0xb62ea2){return _0x171b5a>_0xb62ea2;},'NxaVv':function(_0x225863,_0x56f297){return _0x225863===_0x56f297;},'yRynx':_0x2094c1(0x247),'UEShe':_0x2094c1(0x221),'bpExz':_0x2094c1(0x22a),'WfYqK':function(_0x457c7c,_0x10e93a){return _0x457c7c!==_0x10e93a;}},{hookData:_0x3cb18f}=_0x309a38;if(!_0x3cb18f)return logger['debug'](_0x4c566e[_0x2094c1(0x20a)]),{};const _0x422239=_0x3cb18f[_0x2094c1(0x21d)]||_0x4c566e[_0x2094c1(0x189)](uuidv4),_0x4427f4=_0x3cb18f['test_run_id'],_0x4a6392=_0x54a967[_0x2094c1(0x252)]()[_0x2094c1(0x1a7)]('.')[0x1],_0x5c3383=TestInfo[_0x2094c1(0x1e1)](_0x4427f4)[TestFrameworkConstants[_0x2094c1(0x1ff)]]||{},_0x1c4ecf=_0x5ae327[_0x2094c1(0x1a8)]()[_0x2094c1(0x1ed)](_0x4427f4);if(!_0x1c4ecf)return logger[_0x2094c1(0x1c8)](_0x2094c1(0x1b2)+_0x4427f4+_0x2094c1(0x1ac)),this[_0x2094c1(0x209)](_0x5ae327,_0x4427f4,_0x54a967,_0x39fe86,_0x309a38),{};let _0xb904f5=_0x1c4ecf[TestFrameworkConstants[_0x2094c1(0x246)]];!_0xb904f5&&(_0xb904f5={});!_0x4c566e['EGKYV'](_0x4a6392,_0xb904f5)&&(_0xb904f5[_0x4a6392]=[]);let _0x52532b=_0x1c4ecf[TestFrameworkConstants[_0x2094c1(0x1ab)]];!_0x52532b&&(_0x52532b={});!_0x4c566e['mWons'](_0x4a6392,_0x52532b)&&(_0x52532b[_0x4a6392]=[]);const _0x147b60={[TestFrameworkConstants[_0x2094c1(0x246)]]:_0xb904f5,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x52532b},_0x463510={};_0x463510[_0x4427f4]=_0x147b60;const _0x158334=_0x463510;if(_0x4c566e[_0x2094c1(0x22c)](_0x39fe86,HookState[_0x2094c1(0x20e)])){const _0xcddaa6={[TestFrameworkConstants[_0x2094c1(0x22e)]]:_0x422239,[TestFrameworkConstants[_0x2094c1(0x223)]]:TestFrameworkConstants[_0x2094c1(0x185)],[TestFrameworkConstants[_0x2094c1(0x1d2)]]:_0x3cb18f[_0x2094c1(0x212)],[TestFrameworkConstants[_0x2094c1(0x1d1)]]:[],[TestFrameworkConstants[_0x2094c1(0x193)]]:_0x3cb18f[_0x2094c1(0x1c7)]||_0x3cb18f[_0x2094c1(0x1d0)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x5c3383};_0xcddaa6[_0x2094c1(0x240)]=_0x4a6392;const _0x14d479=_0xcddaa6;_0xb904f5[_0x4a6392][_0x2094c1(0x23f)](_0x14d479),_0x158334[_0x4427f4][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x4a6392,logger[_0x2094c1(0x1c8)](_0x2094c1(0x23a)+_0x4a6392+'\x20&\x20hook\x20=\x20'+_0x14d479+_0x2094c1(0x253)+_0x309a38);}else{if(_0x4c566e[_0x2094c1(0x22c)](_0x39fe86,HookState[_0x2094c1(0x23e)])){const _0x43571b=_0x3cb18f[_0x2094c1(0x1ef)],_0x9e862b=_0xb904f5[_0x4a6392]||[];logger[_0x2094c1(0x1c8)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x9e862b+_0x2094c1(0x19e)+_0x309a38);if(_0x4c566e[_0x2094c1(0x1d6)](_0x9e862b[_0x2094c1(0x1bc)],0x0)){const _0x5f242c=_0x9e862b[_0x2094c1(0x1aa)]();_0x4c566e[_0x2094c1(0x1f7)](_0x3cb18f[_0x2094c1(0x1ef)],_0x4c566e[_0x2094c1(0x1c1)])&&_0x3cb18f[_0x2094c1(0x1a3)]?(_0x5f242c[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x3cb18f['failure_type']||_0x4c566e[_0x2094c1(0x250)],_0x5f242c[TestFrameworkConstants[_0x2094c1(0x1e9)]]=_0x3cb18f['failure_reason']||'',_0x5f242c[TestFrameworkConstants[_0x2094c1(0x1f8)]]=_0x3cb18f['failure_data']):_0x5f242c[TestFrameworkConstants[_0x2094c1(0x223)]]=_0x4c566e[_0x2094c1(0x22b)];_0x4c566e[_0x2094c1(0x1ec)](_0x43571b,TestFrameworkConstants[_0x2094c1(0x185)])&&(_0x5f242c[TestFrameworkConstants[_0x2094c1(0x223)]]=_0x43571b);_0x5f242c[TestFrameworkConstants[_0x2094c1(0x225)]]=_0x3cb18f[_0x2094c1(0x200)]||new Date()[_0x2094c1(0x1d5)](),_0x5f242c[TestFrameworkConstants[_0x2094c1(0x1ff)]]=_0x5c3383;const _0x133d52=_0x5f242c[TestFrameworkConstants['KEY_HOOK_ID']];!_0x52532b[_0x4a6392]&&(_0x52532b[_0x4a6392]=[]),_0x52532b[_0x4a6392]['push'](_0x5f242c),_0x158334[_0x4427f4][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x4a6392;}}}return logger[_0x2094c1(0x1c8)]('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x3cb18f[_0x2094c1(0x1d0)]+_0x2094c1(0x19f)+_0x422239+'\x20for\x20test:\x20'+_0x4427f4),_0x158334;}[a95_0x297e12(0x1df)](_0x4bd639){const _0x5038c3=a95_0x297e12,_0x2a1a7e={};_0x2a1a7e['UHKFs']=_0x5038c3(0x1e2);const _0x217299=_0x2a1a7e;try{const _0x2001b3=_0x4bd639[_0x5038c3(0x1d8)]?_0x4bd639[_0x5038c3(0x1d8)]['id']:_0x4bd639[_0x5038c3(0x19d)]['test_run_id'],_0x5d5313=_0x4bd639[_0x5038c3(0x228)],_0xef5fc2=_0x5d5313[_0x5038c3(0x203)](),_0x1a7d8f=_0x5d5313[_0x5038c3(0x1a8)]()[_0x5038c3(0x1ed)](_0x2001b3);if(!_0x1a7d8f)return logger['debug']('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x2001b3),{};logger['debug'](_0x5038c3(0x183)+_0x2001b3);const {[TestFrameworkConstants[_0x5038c3(0x230)]]:_0x37b3a3='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x304f8f='',[TestFrameworkConstants[_0x5038c3(0x248)]]:_0x266345='',[TestFrameworkConstants[_0x5038c3(0x1c6)]]:_0x2a6f21=''}=_0x1a7d8f,_0x4157a8=_0x5d5313[_0x5038c3(0x1ce)]()[_0x5038c3(0x252)]()['split']('.')[0x1],_0x13cbae=_0x5d5313[_0x5038c3(0x227)]()[_0x5038c3(0x252)]()[_0x5038c3(0x1a7)]('.')[0x1],_0x5c8904=global?.[_0x5038c3(0x1cb)]??0x0,_0x40a94f=_0x5d5313[_0x5038c3(0x1e5)](),_0x27302c=Buffer[_0x5038c3(0x1b3)](JSON[_0x5038c3(0x21f)](_0x1a7d8f))[_0x5038c3(0x252)](_0x217299[_0x5038c3(0x1e4)]),_0x3a7a40={'hash':_0xef5fc2['getId'](),'threadId':_0xef5fc2[_0x5038c3(0x1d3)]()[_0x5038c3(0x252)](),'processId':_0xef5fc2['getProcessId']()['toString']()},_0x5167e2={};_0x5167e2[_0x5038c3(0x186)]=_0x5c8904,_0x5167e2['testFrameworkName']=_0x37b3a3,_0x5167e2[_0x5038c3(0x242)]=_0x304f8f,_0x5167e2[_0x5038c3(0x1af)]=_0x4157a8,_0x5167e2[_0x5038c3(0x206)]=_0x13cbae,_0x5167e2[_0x5038c3(0x1cd)]=_0x266345,_0x5167e2['endedAt']=_0x2a6f21,_0x5167e2['uuid']=_0x40a94f,_0x5167e2[_0x5038c3(0x207)]=_0x27302c,_0x5167e2[_0x5038c3(0x20d)]=_0x3a7a40;const _0x50a1ff=_0x5167e2;return logger[_0x5038c3(0x1c8)](_0x5038c3(0x24f)+_0x2001b3+_0x5038c3(0x218)+_0x4157a8+'\x20hookState:\x20'+_0x13cbae),_0x50a1ff;}catch(_0x384eb4){return logger['error'](_0x5038c3(0x234)+util['format'](_0x384eb4)),{};}}async[a95_0x297e12(0x1bb)](_0x2f8ea9,_0x4dab80,_0x1b5386){const _0x242b95=a95_0x297e12,_0x5d31e5={'eJBdT':function(_0x53eec7,_0x43ce9b,_0x46b958){return _0x53eec7(_0x43ce9b,_0x46b958);},'rMdBs':function(_0x3a471e,_0x35a708){return _0x3a471e===_0x35a708;},'aQetb':_0x242b95(0x1a4),'rPgko':function(_0x1548af,_0x23233b){return _0x1548af/_0x23233b;},'OZxHs':function(_0x922b5c,_0x4752c9){return _0x922b5c<_0x4752c9;},'bXCjP':function(_0x5a92be,_0x914b4f){return _0x5a92be*_0x914b4f;},'ouIat':function(_0x170676,_0x5e2ade){return _0x170676+_0x5e2ade;},'XNYJR':function(_0x1271cf,_0x1b0311){return _0x1271cf+_0x1b0311;},'IfFsA':'Cucumber\x20log\x20created\x20event'};try{const _0x117c79=_0x1b5386[_0x242b95(0x1de)],_0x3ce5af=_0x2f8ea9[_0x242b95(0x1a8)]()[_0x242b95(0x1ed)](_0x117c79),{[TestFrameworkConstants[_0x242b95(0x230)]]:_0x59e4c0='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x2a29d2=''}=_0x3ce5af,_0x27ac95=TestInfo[_0x242b95(0x1b6)](_0x117c79),_0x23f626=TestInfo[_0x242b95(0x1e1)](_0x117c79)[TestFrameworkConstants[_0x242b95(0x21b)]]||{},_0x181640=_0x5d31e5['eJBdT'](getMediaArtifactsLogs,_0x23f626,_0x2f8ea9['getAllData']()[_0x242b95(0x1ed)](_0x117c79)[TestFrameworkConstants[_0x242b95(0x1bd)]]),_0x382355=(_0x27ac95||[])[_0x242b95(0x217)](_0x181640||[]);if(!_0x382355||_0x5d31e5['rMdBs'](_0x382355[_0x242b95(0x1bc)],0x0)){logger['debug'](_0x5d31e5[_0x242b95(0x233)]);return;}const _0x296cdc=0x28,_0x5b990e=Math[_0x242b95(0x1b7)](_0x5d31e5['rPgko'](_0x382355[_0x242b95(0x1bc)],_0x296cdc));for(let _0x2e114a=0x0;_0x5d31e5['OZxHs'](_0x2e114a,_0x5b990e);_0x2e114a++){const _0x872c70=_0x5d31e5[_0x242b95(0x1dd)](_0x2e114a,_0x296cdc),_0x2adc29=_0x5d31e5['ouIat'](_0x872c70,_0x296cdc),_0x11bd07=_0x382355['slice'](_0x872c70,_0x2adc29),_0x39bbcf={'platformIndex':global?.[_0x242b95(0x1cb)]??0x0,'logs':_0x11bd07,'testFrameworkName':_0x59e4c0,'testFrameworkVersion':_0x2a29d2,'testFrameworkState':_0x4dab80[_0x242b95(0x252)]()[_0x242b95(0x1a7)]('.')[0x1]};logger['debug'](_0x242b95(0x1e7)+_0x117c79+_0x242b95(0x1c3)+_0x5d31e5[_0x242b95(0x1fd)](_0x2e114a,0x1)+'/'+_0x5b990e+'\x20payload='+util['inspect'](_0x39bbcf));const _0x703893=await GrpcClient['getInstance']()[_0x242b95(0x23b)](_0x39bbcf);logger[_0x242b95(0x1c8)](_0x242b95(0x1e7)+_0x117c79+_0x242b95(0x1c3)+_0x5d31e5[_0x242b95(0x1db)](_0x2e114a,0x1)+'/'+_0x5b990e+_0x242b95(0x249)+util[_0x242b95(0x1cc)](_0x703893));}}catch(_0x309a63){logger[_0x242b95(0x1ea)](_0x242b95(0x229)+util[_0x242b95(0x236)](_0x309a63));}logger['debug'](_0x5d31e5['IfFsA']);}[a95_0x297e12(0x209)](_0xd529ed,_0x276cb8,_0x3ec9dc,_0x3d0f58,_0x280f36){const _0x30b8d5=a95_0x297e12,_0x1f0e9b={'testId':_0x276cb8,'testFrameworkState':_0x3ec9dc,'hookState':_0x3d0f58,'args':_0x280f36,'timestamp':new Date()[_0x30b8d5(0x1d5)]()};_0xd529ed['addPendingHook'](_0x276cb8,_0x1f0e9b),logger[_0x30b8d5(0x1c8)](_0x30b8d5(0x182)+_0x276cb8+_0x30b8d5(0x1a9)+_0x3ec9dc+',\x20hookState:\x20'+_0x3d0f58);}async[a95_0x297e12(0x1f3)](_0x460625,_0x17d160){const _0x1e1c71=a95_0x297e12,_0x3e0226={};_0x3e0226[_0x1e1c71(0x1da)]=function(_0x23610c,_0x49a29a){return _0x23610c>_0x49a29a;};const _0x2e99e5=_0x3e0226;if(!_0x460625['hasPendingHooks'](_0x17d160))return;const _0x148e43=_0x460625[_0x1e1c71(0x243)](_0x17d160);logger[_0x1e1c71(0x1c8)](_0x1e1c71(0x198)+_0x148e43[_0x1e1c71(0x1bc)]+_0x1e1c71(0x204)+_0x17d160);for(const _0x4b3ba7 of _0x148e43){try{const _0x22d4e6=await this[_0x1e1c71(0x1c4)](_0x460625,_0x4b3ba7[_0x1e1c71(0x1af)],_0x4b3ba7[_0x1e1c71(0x206)],_0x4b3ba7[_0x1e1c71(0x20f)]);_0x22d4e6&&_0x2e99e5[_0x1e1c71(0x1da)](Object[_0x1e1c71(0x251)](_0x22d4e6)[_0x1e1c71(0x1bc)],0x0)&&_0x460625[_0x1e1c71(0x1fc)](_0x22d4e6),await this[_0x1e1c71(0x192)](_0x460625,_0x4b3ba7['testFrameworkState'],_0x4b3ba7[_0x1e1c71(0x206)],_0x4b3ba7[_0x1e1c71(0x20f)]);}catch(_0x4fe86f){logger[_0x1e1c71(0x1ea)](_0x1e1c71(0x241)+_0x17d160+_0x1e1c71(0x18f)+_0x4fe86f);}}_0x460625[_0x1e1c71(0x1ee)](_0x17d160),logger[_0x1e1c71(0x1c8)](_0x1e1c71(0x1fa)+_0x17d160);}}function a95_0x2598(_0x25f240,_0xa4fcc7){const _0x25555f=a95_0x2555();return a95_0x2598=function(_0x25986e,_0x33c171){_0x25986e=_0x25986e-0x181;let _0x20e6b7=_0x25555f[_0x25986e];return _0x20e6b7;},a95_0x2598(_0x25f240,_0xa4fcc7);}module[a95_0x297e12(0x195)]=CucumberTestFramework;
|
|
1
|
+
const a95_0xd44bfa=a95_0x365c;function a95_0x365c(_0x1e0b4b,_0x1c4db3){const _0x3f01a4=a95_0x3f01();return a95_0x365c=function(_0x365ce9,_0x1374b6){_0x365ce9=_0x365ce9-0x1e4;let _0x312bad=_0x3f01a4[_0x365ce9];return _0x312bad;},a95_0x365c(_0x1e0b4b,_0x1c4db3);}(function(_0x2a8a9e,_0x55824d){const _0x153738=a95_0x365c,_0x10872f=_0x2a8a9e();while(!![]){try{const _0x35247c=-parseInt(_0x153738(0x246))/0x1+-parseInt(_0x153738(0x213))/0x2+-parseInt(_0x153738(0x204))/0x3*(-parseInt(_0x153738(0x289))/0x4)+-parseInt(_0x153738(0x29d))/0x5*(-parseInt(_0x153738(0x285))/0x6)+-parseInt(_0x153738(0x29f))/0x7+-parseInt(_0x153738(0x258))/0x8*(parseInt(_0x153738(0x1ea))/0x9)+parseInt(_0x153738(0x271))/0xa;if(_0x35247c===_0x55824d)break;else _0x10872f['push'](_0x10872f['shift']());}catch(_0x4f0b1c){_0x10872f['push'](_0x10872f['shift']());}}}(a95_0x3f01,0x3f515));const TestFramework=require(a95_0xd44bfa(0x26d)),TestFrameworkState=require(a95_0xd44bfa(0x1f3)),HookState=require(a95_0xd44bfa(0x201)),{createClassLogger}=require(a95_0xd44bfa(0x221)),TestFrameworkInstance=require(a95_0xd44bfa(0x219)),CLIUtils=require(a95_0xd44bfa(0x1ee)),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a95_0xd44bfa(0x223)),logger=createClassLogger(a95_0xd44bfa(0x242)),{v4:uuidv4}=require(a95_0xd44bfa(0x22f)),util=require(a95_0xd44bfa(0x250)),TestInfo=require(a95_0xd44bfa(0x226)),GrpcClient=require(a95_0xd44bfa(0x222));function a95_0x3f01(){const _0x6ce247=['Tracked\x20cucumber\x20hook\x20event:\x20','testUUID','endedAt','logCreatedEvent','688362KjDVqX','testFrameworkVersion','PRE','TEST','95876nzTemA','\x20pending\x20hooks\x20for\x20testId:\x20','debug','NONE','error','NpDmx','code','toISOString','failure','KEY_HOOKS_STARTED','format','LELzb','failed','getContext','KEY_LOGS','args','storePendingHook','from','executionContext','tooVs','20pESKBA','Parsed\x20cucumber\x20test:\x20','1835134UhpsVM','KEY_TEST_TAGS',',\x20state:\x20','testFrameworkName','KEY_TEST_RERUN_NAME','KEY_TEST_FRAMEWORK_NAME','NqkMJ','test_run_id','removePendingHooks','UnhandledError','KEY_TEST_ENDED_AT','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','mdDXV','fpsZn','scopes','failure_reason','\x20target=','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','trackEvent:\x20unsupported\x20testFrameworkState=','get','RaJWJ','trackCucumberInstance','1062bgDBvV','pop','OQEeq','test','../cliUtils.js','mdVNP','KEY_TEST_ATTACHMENTS','base64','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','../state/testFrameworkState.js','instance',',\x20state=','Error\x20in\x20createTestFrameworkEventPayload:\x20','DEFAULT_TEST_RESULT','meta','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','\x20for\x20test:\x20','result','getTestUUID','KEY_TEST_LOGS','wODTX','getTestFrameworksVersions','getTestFrameworks','../state/hookState.js','GtppZ','\x20and\x20args\x20=\x20','9jYforq','KEY_TEST_META','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','getTrackedInstance','inspect','KEY_TEST_FILE_PATH','getRef','stringify','krCGx','resolveInstance','\x20batch\x20','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','started_at','tags','hooks','248446MiruPK','split','KEY_CUSTOM_TAGS','ZKJzi','KEY_HOOK_RESULT','KEY_TEST_ID','../instances/testFrameworkInstance.js','qMEyp','trackHookEvent','hasPendingHooks','MFDyX','length','KEY_TEST_RESULT','name','../../../helpers/classLogger.js','../grpcClient','../../../helpers/helper.js','getThreadId','Jeveb','../TestInfo.js','setTrackedInstance','addPendingHook','LOG_REPORT','\x20&\x20hook\x20=\x20','\x20response=','getCurrentInstanceName','trackEvent','addMultipleEntries','uuid','passed','sendLogCreatedEvent:\x20for\x20testId:\x20','getInstance','KEY_TEST_STARTED_AT','getPendingHooks','runHooks','\x20\x20and\x20args\x20=\x20','Updated\x20cucumber\x20test\x20result:\x20','location','KEY_EVENT_STARTED_AT','KEY_TEST_FAILURE_REASON','tisgq','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','vVDAi','startedAt','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','failure_type','finishedAt','CucumberTestFramework','\x20&\x20hookState=','ITgYm','body','385131walDdW',',\x20storing\x20as\x20pending\x20hook','POST','KEY_TEST_CODE','sendLogCreatedEvent','KEY_HOOK_LAST_STARTED','KEY_TEST_UUID','KEY_HOOKS_FINISHED','KEY_HOOK_FAILURE_TYPE','XeTCT','util','lxBTR',',\x20hookState:\x20','setTestDetails','KEY_EVENT_ENDED_AT','parseCucumberTestResult','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','hBiMO','11952MqSKIw','\x20payload=','keys','matchHookRegex','createTestFrameworkEventPayload','XcFvl','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','getAllData','unknown','KEY_TEST_FRAMEWORK_VERSION','KEY_AUTOMATE_SESSION_NAME','getProcessId','createTestFrameworkEventPayload\x20testId:\x20','KEY_HOOK_ID','KEY_HOOK_FAILURE','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','push','DEFAULT_HOOK_RESULT','file_name','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','KEY_HOOK_FAILURE_REASON','./testFramework','cSlXw','testData','getTestDetails','6763420npaoIV','KEY_TEST_FAILURE_TYPE','platformIndex','eventJson','hookState','hook_type','getId','toString','failure_data','parseCucumberTest','processPendingHooks','browserstackPlatformIndex','testFrameworkState','Cucumber\x20log\x20created\x20event','CqSGm','krBOf'];a95_0x3f01=function(){return _0x6ce247;};return a95_0x3f01();}class CucumberTestFramework extends TestFramework{constructor(_0x290795,_0x74923b,_0x3db9f3){super(_0x290795,_0x74923b,_0x3db9f3);}async['trackEvent'](_0x294518,_0x2f5a40,_0x1d6f14={}){const _0x5ab400=a95_0xd44bfa,_0x25e980={};_0x25e980[_0x5ab400(0x2ab)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x25e980[_0x5ab400(0x24f)]=function(_0x4f5fe7,_0x549122){return _0x4f5fe7===_0x549122;},_0x25e980[_0x5ab400(0x25d)]='trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s';const _0x2ca9fe=_0x25e980;await super[_0x5ab400(0x22d)](_0x294518,_0x2f5a40,_0x1d6f14);const _0x4b8521=this[_0x5ab400(0x20d)](_0x294518,_0x2f5a40,_0x1d6f14);if(!_0x4b8521){logger['debug'](_0x2ca9fe[_0x5ab400(0x2ab)]);return;}try{let _0x290c3,_0x4b364a;switch(_0x294518){case TestFrameworkState[_0x5ab400(0x288)]:_0x290c3=_0x1d6f14[_0x5ab400(0x1ed)],_0x4b364a=TestInfo[_0x5ab400(0x1fc)](_0x290c3['id']);if(_0x2ca9fe[_0x5ab400(0x24f)](_0x2f5a40,HookState['PRE'])){logger['debug'](_0x5ab400(0x1e5)+_0x290c3['id']);const _0x2c222b={};_0x2c222b['testUUID']=_0x4b364a,_0x2c222b['testData']=_0x290c3,_0x4b8521[_0x5ab400(0x22e)](this[_0x5ab400(0x27a)](_0x2c222b)),logger[_0x5ab400(0x28b)](_0x5ab400(0x256)+_0x290c3['id']),await this[_0x5ab400(0x27b)](_0x4b8521,_0x290c3['id']);}else{if(_0x2ca9fe[_0x5ab400(0x24f)](_0x2f5a40,HookState[_0x5ab400(0x248)])){const _0x45e1e3={};_0x45e1e3[_0x5ab400(0x282)]=_0x4b364a,_0x45e1e3[_0x5ab400(0x26f)]=_0x290c3,_0x4b8521['addMultipleEntries'](this['parseCucumberTestResult'](_0x45e1e3)),await this[_0x5ab400(0x27b)](_0x4b8521,_0x290c3['id']);}}break;case TestFrameworkState[_0x5ab400(0x229)]:_0x2ca9fe[_0x5ab400(0x24f)](_0x2f5a40,HookState[_0x5ab400(0x248)])&&await this[_0x5ab400(0x24a)](_0x4b8521,_0x294518,_0x1d6f14);break;default:if(CLIUtils[_0x5ab400(0x25b)](_0x294518[_0x5ab400(0x278)]()[_0x5ab400(0x214)]('.')[0x1])){const _0x53c3e9=await this[_0x5ab400(0x21b)](_0x4b8521,_0x294518,_0x2f5a40,_0x1d6f14);_0x4b8521['addMultipleEntries'](_0x53c3e9);}else logger[_0x5ab400(0x28b)](_0x5ab400(0x1e6)+_0x294518+_0x5ab400(0x243)+_0x2f5a40);break;}}catch(_0x285601){logger[_0x5ab400(0x28d)](util[_0x5ab400(0x293)](_0x2ca9fe[_0x5ab400(0x25d)],_0x294518,_0x2f5a40,_0x1d6f14[_0x5ab400(0x21e)],_0x285601));}_0x1d6f14[_0x5ab400(0x1f4)]=_0x4b8521,await this[_0x5ab400(0x235)](_0x4b8521,_0x294518,_0x2f5a40,_0x1d6f14);}['resolveInstance'](_0x3bc91c,_0x142d12,_0x3e950c={}){const _0x2bf014=a95_0xd44bfa,_0x4af38a={};_0x4af38a['hBiMO']=function(_0x178164,_0x23f8d9){return _0x178164===_0x23f8d9;},_0x4af38a[_0x2bf014(0x26e)]=function(_0x5ca6a9,_0x2f6ad4){return _0x5ca6a9===_0x2f6ad4;};const _0x2ee27c=_0x4af38a;let _0x380809=null;return(_0x2ee27c[_0x2bf014(0x257)](_0x3bc91c,TestFrameworkState['INIT_TEST'])||_0x2ee27c[_0x2bf014(0x26e)](_0x3bc91c,TestFrameworkState[_0x2bf014(0x28c)]))&&this['trackCucumberInstance'](_0x3bc91c,_0x3e950c),_0x380809=TestFramework[_0x2bf014(0x207)](),_0x380809;}[a95_0xd44bfa(0x1e9)](_0x108039,_0x33111e){const _0x158396=a95_0xd44bfa,_0x3fe990=CLIUtils[_0x158396(0x22c)](),_0x3f108f=TrackedInstance['createContext'](_0x3fe990);let _0x51cd4d=null;logger['debug'](_0x158396(0x26b)+_0x3fe990+_0x158396(0x1f5)+_0x108039),_0x51cd4d=new TestFrameworkInstance(_0x3f108f,this[_0x158396(0x200)](),this['getTestFrameworksVersions'](),_0x108039,HookState['NONE']),TestFramework[_0x158396(0x227)](_0x3f108f,_0x51cd4d),logger[_0x158396(0x28b)]('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x3f108f[_0x158396(0x277)]()+_0x158396(0x2af)+_0x3fe990);}[a95_0xd44bfa(0x27a)](_0x3fe4c8){const _0x11a69c=a95_0xd44bfa,_0x4315ec={};_0x4315ec[_0x11a69c(0x23b)]=_0x11a69c(0x2aa);const _0x20a456=_0x4315ec,{testUUID:_0x143bd6,testData:_0xf45cad}=_0x3fe4c8;if(!_0xf45cad||!_0xf45cad[_0x11a69c(0x22f)])return logger['debug'](_0x20a456[_0x11a69c(0x23b)]),{};const _0x259a3c=_0x143bd6,_0x19b5ec=_0xf45cad[_0x11a69c(0x22f)],_0x362c20=this[_0x11a69c(0x200)]()[0x0],_0x3b015c=this[_0x11a69c(0x1ff)](),_0x42cbe2={[TestFrameworkConstants[_0x11a69c(0x2a4)]]:_0x362c20,[TestFrameworkConstants[_0x11a69c(0x261)]]:_0x3b015c[_0x362c20],[TestFrameworkConstants[_0x11a69c(0x1fd)]]:[],[TestFrameworkConstants[_0x11a69c(0x24d)]]:{},[TestFrameworkConstants[_0x11a69c(0x292)]]:{},[TestFrameworkConstants[_0x11a69c(0x24c)]]:_0x259a3c,[TestFrameworkConstants[_0x11a69c(0x21f)]]:TestFrameworkConstants[_0x11a69c(0x1f7)],[TestFrameworkConstants[_0x11a69c(0x262)]]:_0xf45cad[_0x11a69c(0x220)]||'',[TestFrameworkConstants[_0x11a69c(0x209)]]:_0xf45cad[_0x11a69c(0x26a)]||'',[TestFrameworkConstants[_0x11a69c(0x218)]]:_0x19b5ec,[TestFrameworkConstants['KEY_TEST_NAME']]:_0xf45cad['name']||'',[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0xf45cad[_0x11a69c(0x238)]||'',[TestFrameworkConstants[_0x11a69c(0x249)]]:_0xf45cad[_0x11a69c(0x245)]?.[_0x11a69c(0x28f)]||null,[TestFrameworkConstants[_0x11a69c(0x2a0)]]:_0xf45cad[_0x11a69c(0x211)]||[],[TestFrameworkConstants[_0x11a69c(0x233)]]:_0xf45cad[_0x11a69c(0x23e)]||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0xf45cad[_0x11a69c(0x2ad)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0xf45cad[_0x11a69c(0x2ad)]||[],[TestFrameworkConstants[_0x11a69c(0x2a3)]]:_0xf45cad['customRerunParam']?.['rerun_name']||_0xf45cad[_0x11a69c(0x220)]||'',[TestFrameworkConstants[_0x11a69c(0x215)]]:{},[TestFrameworkConstants[_0x11a69c(0x205)]]:_0xf45cad[_0x11a69c(0x1f8)]||{}};TestInfo[_0x11a69c(0x253)](_0x19b5ec,_0x42cbe2),logger[_0x11a69c(0x28b)](_0x11a69c(0x29e)+_0xf45cad[_0x11a69c(0x220)]+'\x20with\x20UUID:\x20'+_0x259a3c);const _0x4d3045={};return _0x4d3045[_0x19b5ec]=_0x42cbe2,_0x4d3045;}[a95_0xd44bfa(0x255)](_0x2f5731){const _0x2a64f0=a95_0xd44bfa,_0x528053={'GtppZ':_0x2a64f0(0x1e4),'sjsNj':_0x2a64f0(0x260),'fpsZn':function(_0x2d712c,_0x385f9e){return _0x2d712c===_0x385f9e;},'AFyeD':_0x2a64f0(0x295),'wODTX':_0x2a64f0(0x2a8),'ZKJzi':function(_0x5afdf1,_0x437380,_0x582598){return _0x5afdf1(_0x437380,_0x582598);},'LELzb':function(_0x18f1df,_0xb5bae7){return _0x18f1df>_0xb5bae7;}},{testUUID:_0x1d61e3,testData:_0x26027c}=_0x2f5731;if(!_0x26027c||!_0x26027c[_0x2a64f0(0x22f)])return logger['debug'](_0x528053[_0x2a64f0(0x202)]),{};const _0xc00b0e=this[_0x2a64f0(0x20d)](TestFrameworkState[_0x2a64f0(0x288)],HookState[_0x2a64f0(0x248)]),_0x10bcc7=_0x26027c[_0x2a64f0(0x22f)],_0x3f8f53=TestInfo['getTestDetails'](_0x10bcc7)||{},_0xff826a=_0x3f8f53?_0x3f8f53[TestFrameworkConstants[_0x2a64f0(0x215)]]||{}:{},_0x459234={..._0x3f8f53,[TestFrameworkConstants[_0x2a64f0(0x21f)]]:_0x26027c[_0x2a64f0(0x1fb)]||_0x528053['sjsNj'],[TestFrameworkConstants[_0x2a64f0(0x2a9)]]:_0x26027c[_0x2a64f0(0x241)]||new Date()[_0x2a64f0(0x290)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x2a64f0(0x290)](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0xff826a,[TestFrameworkConstants[_0x2a64f0(0x297)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x26027c['meta']||{}};_0x528053[_0x2a64f0(0x2ac)](_0x26027c[_0x2a64f0(0x1fb)],_0x528053['AFyeD'])&&_0x26027c[_0x2a64f0(0x291)]&&(_0x459234[TestFrameworkConstants[_0x2a64f0(0x272)]]=_0x26027c[_0x2a64f0(0x240)]||_0x528053[_0x2a64f0(0x1fe)],_0x459234[TestFrameworkConstants[_0x2a64f0(0x23a)]]=_0x26027c['failure_reason']||'',_0x459234[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x26027c[_0x2a64f0(0x291)]);const _0x1d6888=TestInfo[_0x2a64f0(0x270)](_0x10bcc7)[TestFrameworkConstants[_0x2a64f0(0x1f0)]]||{},_0x2b34a7=_0x528053[_0x2a64f0(0x216)](getManualUploadLogs,_0x1d6888,_0xc00b0e[_0x2a64f0(0x25f)]()[_0x2a64f0(0x1e7)](_0x10bcc7)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x528053[_0x2a64f0(0x294)](_0x2b34a7[_0x2a64f0(0x21e)],0x0)){const _0x2c0de2=_0x459234[TestFrameworkConstants['KEY_LOGS']]||[];_0x459234[TestFrameworkConstants[_0x2a64f0(0x297)]]=[..._0x2c0de2,..._0x2b34a7];}_0x26027c[_0x2a64f0(0x212)]&&_0x528053['LELzb'](_0x26027c['hooks'][_0x2a64f0(0x21e)],0x0)&&(_0x459234[TestFrameworkConstants[_0x2a64f0(0x24d)]]=_0x26027c[_0x2a64f0(0x212)]);TestInfo[_0x2a64f0(0x253)](_0x10bcc7,_0x459234),logger[_0x2a64f0(0x28b)](_0x2a64f0(0x237)+_0x26027c['name']+'\x20with\x20result:\x20'+_0x26027c[_0x2a64f0(0x1fb)]);const _0x27b25b={};return _0x27b25b[_0x10bcc7]=_0x459234,_0x27b25b;}async[a95_0xd44bfa(0x21b)](_0x1af244,_0x54b4de,_0x26859c,_0x1f53fa){const _0x208e30=a95_0xd44bfa,_0x374f6b={'atCnt':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','qMEyp':function(_0x42cf8a){return _0x42cf8a();},'tooVs':function(_0x1ffa9d,_0x17619e){return _0x1ffa9d in _0x17619e;},'vVDAi':function(_0x5a9ce2,_0x5f5ef1){return _0x5a9ce2 in _0x5f5ef1;},'Jeveb':function(_0x1dad9d,_0x40c8e6){return _0x1dad9d===_0x40c8e6;},'WyAef':function(_0xb312a7,_0x155769){return _0xb312a7>_0x155769;},'SAEgr':_0x208e30(0x295),'mdVNP':_0x208e30(0x2a8),'OQEeq':_0x208e30(0x230),'NqkMJ':function(_0x43bb3e,_0x1bcc0c){return _0x43bb3e!==_0x1bcc0c;}},{hookData:_0x196137}=_0x1f53fa;if(!_0x196137)return logger[_0x208e30(0x28b)](_0x374f6b['atCnt']),{};const _0x1f58c5=_0x196137['uuid']||_0x374f6b[_0x208e30(0x21a)](uuidv4),_0x2d3622=_0x196137['test_run_id'],_0x1219c9=_0x54b4de[_0x208e30(0x278)]()[_0x208e30(0x214)]('.')[0x1],_0x4d8ce9=TestInfo[_0x208e30(0x270)](_0x2d3622)[TestFrameworkConstants[_0x208e30(0x215)]]||{},_0x58e4b5=_0x1af244[_0x208e30(0x25f)]()[_0x208e30(0x1e7)](_0x2d3622);if(!_0x58e4b5)return logger['debug'](_0x208e30(0x206)+_0x2d3622+_0x208e30(0x247)),this[_0x208e30(0x299)](_0x1af244,_0x2d3622,_0x54b4de,_0x26859c,_0x1f53fa),{};let _0x55fe53=_0x58e4b5[TestFrameworkConstants[_0x208e30(0x292)]];!_0x55fe53&&(_0x55fe53={});!_0x374f6b[_0x208e30(0x29c)](_0x1219c9,_0x55fe53)&&(_0x55fe53[_0x1219c9]=[]);let _0x28bb41=_0x58e4b5[TestFrameworkConstants[_0x208e30(0x24d)]];!_0x28bb41&&(_0x28bb41={});!_0x374f6b[_0x208e30(0x23d)](_0x1219c9,_0x28bb41)&&(_0x28bb41[_0x1219c9]=[]);const _0x2406a8={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x55fe53,[TestFrameworkConstants[_0x208e30(0x24d)]]:_0x28bb41},_0x3628e9={};_0x3628e9[_0x2d3622]=_0x2406a8;const _0x460e82=_0x3628e9;if(_0x374f6b[_0x208e30(0x225)](_0x26859c,HookState[_0x208e30(0x287)])){const _0x59a59b={[TestFrameworkConstants[_0x208e30(0x265)]]:_0x1f58c5,[TestFrameworkConstants[_0x208e30(0x217)]]:TestFrameworkConstants[_0x208e30(0x269)],[TestFrameworkConstants[_0x208e30(0x239)]]:_0x196137[_0x208e30(0x210)],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x196137['name']||_0x196137['hook_type'],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x4d8ce9};_0x59a59b['key']=_0x1219c9;const _0x31da27=_0x59a59b;_0x55fe53[_0x1219c9][_0x208e30(0x268)](_0x31da27),_0x460e82[_0x2d3622][TestFrameworkConstants[_0x208e30(0x24b)]]=_0x1219c9,logger[_0x208e30(0x28b)](_0x208e30(0x267)+_0x1219c9+_0x208e30(0x22a)+_0x31da27+_0x208e30(0x236)+_0x1f53fa);}else{if(_0x374f6b[_0x208e30(0x225)](_0x26859c,HookState[_0x208e30(0x248)])){const _0x5135f4=_0x196137[_0x208e30(0x1fb)],_0x292d73=_0x55fe53[_0x1219c9]||[];logger[_0x208e30(0x28b)](_0x208e30(0x25e)+_0x292d73+_0x208e30(0x203)+_0x1f53fa);if(_0x374f6b['WyAef'](_0x292d73[_0x208e30(0x21e)],0x0)){const _0x3aa35c=_0x292d73[_0x208e30(0x1eb)]();_0x374f6b[_0x208e30(0x225)](_0x196137[_0x208e30(0x1fb)],_0x374f6b['SAEgr'])&&_0x196137[_0x208e30(0x279)]?(_0x3aa35c[TestFrameworkConstants[_0x208e30(0x24e)]]=_0x196137['failure_type']||_0x374f6b[_0x208e30(0x1ef)],_0x3aa35c[TestFrameworkConstants[_0x208e30(0x26c)]]=_0x196137[_0x208e30(0x2ae)]||'',_0x3aa35c[TestFrameworkConstants[_0x208e30(0x266)]]=_0x196137[_0x208e30(0x279)]):_0x3aa35c[TestFrameworkConstants[_0x208e30(0x217)]]=_0x374f6b[_0x208e30(0x1ec)];_0x374f6b[_0x208e30(0x2a5)](_0x5135f4,TestFrameworkConstants[_0x208e30(0x269)])&&(_0x3aa35c[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x5135f4);_0x3aa35c[TestFrameworkConstants[_0x208e30(0x254)]]=_0x196137['finished_at']||new Date()[_0x208e30(0x290)](),_0x3aa35c[TestFrameworkConstants[_0x208e30(0x215)]]=_0x4d8ce9;const _0x2b44c7=_0x3aa35c[TestFrameworkConstants[_0x208e30(0x265)]];!_0x28bb41[_0x1219c9]&&(_0x28bb41[_0x1219c9]=[]),_0x28bb41[_0x1219c9][_0x208e30(0x268)](_0x3aa35c),_0x460e82[_0x2d3622][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x1219c9;}}}return logger[_0x208e30(0x28b)](_0x208e30(0x281)+_0x196137[_0x208e30(0x276)]+'\x20with\x20id\x20'+_0x1f58c5+_0x208e30(0x1fa)+_0x2d3622),_0x460e82;}[a95_0xd44bfa(0x25c)](_0x5bef70){const _0x34fd9a=a95_0xd44bfa,_0x5f496a={};_0x5f496a[_0x34fd9a(0x1e8)]=_0x34fd9a(0x1f1);const _0x563a19=_0x5f496a;try{const _0x5409f1=_0x5bef70['test']?_0x5bef70[_0x34fd9a(0x1ed)]['id']:_0x5bef70['hookData'][_0x34fd9a(0x2a6)],_0x1a2a28=_0x5bef70['instance'],_0x53da79=_0x1a2a28[_0x34fd9a(0x296)](),_0x122955=_0x1a2a28[_0x34fd9a(0x25f)]()[_0x34fd9a(0x1e7)](_0x5409f1);if(!_0x122955)return logger[_0x34fd9a(0x28b)](_0x34fd9a(0x1f9)+_0x5409f1),{};logger[_0x34fd9a(0x28b)](_0x34fd9a(0x264)+_0x5409f1);const {[TestFrameworkConstants[_0x34fd9a(0x2a4)]]:_0x3b4ddc='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x336fac='',[TestFrameworkConstants[_0x34fd9a(0x233)]]:_0x1ebede='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x3bfa83=''}=_0x122955,_0xf68a46=_0x1a2a28['getCurrentTestState']()[_0x34fd9a(0x278)]()[_0x34fd9a(0x214)]('.')[0x1],_0x1963fd=_0x1a2a28['getCurrentHookState']()[_0x34fd9a(0x278)]()[_0x34fd9a(0x214)]('.')[0x1],_0x356b2e=global?.['browserstackPlatformIndex']??0x0,_0x3cfcd7=_0x1a2a28[_0x34fd9a(0x20a)](),_0x31961b=Buffer[_0x34fd9a(0x29a)](JSON[_0x34fd9a(0x20b)](_0x122955))[_0x34fd9a(0x278)](_0x563a19[_0x34fd9a(0x1e8)]),_0x4cfef4={'hash':_0x53da79[_0x34fd9a(0x277)](),'threadId':_0x53da79[_0x34fd9a(0x224)]()['toString'](),'processId':_0x53da79[_0x34fd9a(0x263)]()[_0x34fd9a(0x278)]()},_0x261a50={};_0x261a50[_0x34fd9a(0x273)]=_0x356b2e,_0x261a50[_0x34fd9a(0x2a2)]=_0x3b4ddc,_0x261a50[_0x34fd9a(0x286)]=_0x336fac,_0x261a50[_0x34fd9a(0x27d)]=_0xf68a46,_0x261a50[_0x34fd9a(0x275)]=_0x1963fd,_0x261a50[_0x34fd9a(0x23e)]=_0x1ebede,_0x261a50[_0x34fd9a(0x283)]=_0x3bfa83,_0x261a50[_0x34fd9a(0x22f)]=_0x3cfcd7,_0x261a50[_0x34fd9a(0x274)]=_0x31961b,_0x261a50[_0x34fd9a(0x29b)]=_0x4cfef4;const _0x32b5de=_0x261a50;return logger[_0x34fd9a(0x28b)](_0x34fd9a(0x1f2)+_0x5409f1+'\x20testState:\x20'+_0xf68a46+'\x20hookState:\x20'+_0x1963fd),_0x32b5de;}catch(_0x2bd529){return logger[_0x34fd9a(0x28d)](_0x34fd9a(0x1f6)+util['format'](_0x2bd529)),{};}}async[a95_0xd44bfa(0x24a)](_0x26e01f,_0x51e314,_0x170294){const _0x49a7f0=a95_0xd44bfa,_0x428410={'lxBTR':function(_0x4dd05a,_0x1c7d65,_0x5bde87){return _0x4dd05a(_0x1c7d65,_0x5bde87);},'deQAx':function(_0x24656e,_0x48b336){return _0x24656e===_0x48b336;},'NpDmx':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','VgMVW':function(_0x1266f4,_0x3e89a9){return _0x1266f4/_0x3e89a9;},'ITgYm':function(_0x1a98e6,_0x43d0cb){return _0x1a98e6<_0x43d0cb;},'CqSGm':function(_0x5230d1,_0x3e0c73){return _0x5230d1*_0x3e0c73;},'krCGx':function(_0x17de8d,_0x400b1c){return _0x17de8d+_0x400b1c;},'QixiO':function(_0x450ef0,_0x93a9a6){return _0x450ef0+_0x93a9a6;},'MFDyX':_0x49a7f0(0x27e)};try{const _0x4c3193=_0x170294[_0x49a7f0(0x282)],_0x4c2feb=_0x26e01f[_0x49a7f0(0x25f)]()[_0x49a7f0(0x1e7)](_0x4c3193),{[TestFrameworkConstants[_0x49a7f0(0x2a4)]]:_0x3f0936='',[TestFrameworkConstants[_0x49a7f0(0x261)]]:_0x1ee507=''}=_0x4c2feb,_0x2f7ee2=TestInfo['readLogObjects'](_0x4c3193),_0x4ebc2e=TestInfo[_0x49a7f0(0x270)](_0x4c3193)[TestFrameworkConstants[_0x49a7f0(0x1f0)]]||{},_0x418b73=_0x428410[_0x49a7f0(0x251)](getMediaArtifactsLogs,_0x4ebc2e,_0x26e01f[_0x49a7f0(0x25f)]()[_0x49a7f0(0x1e7)](_0x4c3193)[TestFrameworkConstants[_0x49a7f0(0x24c)]]),_0x58071e=(_0x2f7ee2||[])['concat'](_0x418b73||[]);if(!_0x58071e||_0x428410['deQAx'](_0x58071e[_0x49a7f0(0x21e)],0x0)){logger['debug'](_0x428410[_0x49a7f0(0x28e)]);return;}const _0x4f13cc=0x28,_0x1571d2=Math['ceil'](_0x428410['VgMVW'](_0x58071e[_0x49a7f0(0x21e)],_0x4f13cc));for(let _0x5f2c45=0x0;_0x428410[_0x49a7f0(0x244)](_0x5f2c45,_0x1571d2);_0x5f2c45++){const _0x137839=_0x428410[_0x49a7f0(0x27f)](_0x5f2c45,_0x4f13cc),_0x14f232=_0x428410[_0x49a7f0(0x20c)](_0x137839,_0x4f13cc),_0x3b451c=_0x58071e['slice'](_0x137839,_0x14f232),_0x5b6e2e={'platformIndex':global?.[_0x49a7f0(0x27c)]??0x0,'logs':_0x3b451c,'testFrameworkName':_0x3f0936,'testFrameworkVersion':_0x1ee507,'testFrameworkState':_0x51e314['toString']()[_0x49a7f0(0x214)]('.')[0x1]};logger[_0x49a7f0(0x28b)](_0x49a7f0(0x231)+_0x4c3193+'\x20batch\x20'+_0x428410['QixiO'](_0x5f2c45,0x1)+'/'+_0x1571d2+_0x49a7f0(0x259)+util[_0x49a7f0(0x208)](_0x5b6e2e));const _0x58bde1=await GrpcClient[_0x49a7f0(0x232)]()[_0x49a7f0(0x284)](_0x5b6e2e);logger['debug'](_0x49a7f0(0x231)+_0x4c3193+_0x49a7f0(0x20e)+_0x428410[_0x49a7f0(0x20c)](_0x5f2c45,0x1)+'/'+_0x1571d2+_0x49a7f0(0x22b)+util[_0x49a7f0(0x208)](_0x58bde1));}}catch(_0x4b2f19){logger[_0x49a7f0(0x28d)](_0x49a7f0(0x23f)+util[_0x49a7f0(0x293)](_0x4b2f19));}logger[_0x49a7f0(0x28b)](_0x428410[_0x49a7f0(0x21d)]);}['storePendingHook'](_0x216afa,_0x49938a,_0x18b49c,_0x48c9d2,_0x244d37){const _0x347ecb=a95_0xd44bfa,_0x1cceca={'testId':_0x49938a,'testFrameworkState':_0x18b49c,'hookState':_0x48c9d2,'args':_0x244d37,'timestamp':new Date()[_0x347ecb(0x290)]()};_0x216afa[_0x347ecb(0x228)](_0x49938a,_0x1cceca),logger[_0x347ecb(0x28b)]('Stored\x20pending\x20hook\x20for\x20testId:\x20'+_0x49938a+_0x347ecb(0x2a1)+_0x18b49c+_0x347ecb(0x252)+_0x48c9d2);}async[a95_0xd44bfa(0x27b)](_0x510a65,_0x449400){const _0x1f537=a95_0xd44bfa,_0x56a7f9={};_0x56a7f9[_0x1f537(0x280)]=function(_0x35a367,_0x375bd9){return _0x35a367>_0x375bd9;};const _0x489fe2=_0x56a7f9;if(!_0x510a65[_0x1f537(0x21c)](_0x449400))return;const _0x20495b=_0x510a65[_0x1f537(0x234)](_0x449400);logger[_0x1f537(0x28b)]('Processing\x20'+_0x20495b[_0x1f537(0x21e)]+_0x1f537(0x28a)+_0x449400);for(const _0x49cf61 of _0x20495b){try{const _0x529192=await this['trackHookEvent'](_0x510a65,_0x49cf61[_0x1f537(0x27d)],_0x49cf61[_0x1f537(0x275)],_0x49cf61[_0x1f537(0x298)]);_0x529192&&_0x489fe2[_0x1f537(0x280)](Object[_0x1f537(0x25a)](_0x529192)[_0x1f537(0x21e)],0x0)&&_0x510a65[_0x1f537(0x22e)](_0x529192),await this[_0x1f537(0x235)](_0x510a65,_0x49cf61[_0x1f537(0x27d)],_0x49cf61[_0x1f537(0x275)],_0x49cf61[_0x1f537(0x298)]);}catch(_0xce6270){logger[_0x1f537(0x28d)](_0x1f537(0x20f)+_0x449400+',\x20error:\x20'+_0xce6270);}}_0x510a65[_0x1f537(0x2a7)](_0x449400),logger[_0x1f537(0x28b)](_0x1f537(0x23c)+_0x449400);}}module['exports']=CucumberTestFramework;
|