browserstack-node-sdk 1.66.2 → 1.66.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/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_0x1e75c3=a89_0x5240;(function(_0x39cfcf,_0x1ee5d6){const _0x5f07c9=a89_0x5240,_0x1265aa=_0x39cfcf();while(!![]){try{const _0x4f50ee=-parseInt(_0x5f07c9(0x15d))/0x1*(-parseInt(_0x5f07c9(0x1b0))/0x2)+parseInt(_0x5f07c9(0x190))/0x3*(-parseInt(_0x5f07c9(0x1e1))/0x4)+-parseInt(_0x5f07c9(0x20b))/0x5*(-parseInt(_0x5f07c9(0x1dc))/0x6)+parseInt(_0x5f07c9(0x180))/0x7*(parseInt(_0x5f07c9(0x195))/0x8)+-parseInt(_0x5f07c9(0x170))/0x9*(-parseInt(_0x5f07c9(0x165))/0xa)+parseInt(_0x5f07c9(0x1a1))/0xb+-parseInt(_0x5f07c9(0x1b5))/0xc;if(_0x4f50ee===_0x1ee5d6)break;else _0x1265aa['push'](_0x1265aa['shift']());}catch(_0x25917b){_0x1265aa['push'](_0x1265aa['shift']());}}}(a89_0x1d31,0x40a03));function a89_0x5240(_0x45a890,_0x25c061){const _0x1d3191=a89_0x1d31();return a89_0x5240=function(_0x524041,_0xa47613){_0x524041=_0x524041-0x125;let _0x4f6ef5=_0x1d3191[_0x524041];return _0x4f6ef5;},a89_0x5240(_0x45a890,_0x25c061);}function a89_0x1d31(){const _0x45c861=['statusCode','FWIbo','object','vByiU','path','../../helpers/performance/constants','GUZbr','jxrJy','automationFrameworkDetail','worker_threads','entry','Folder\x20does\x20not\x20exist:\x20','RAxQx','message','isArray','filePath','getCliDir','JEnAI','cisWc','concat','Setting\x20required\x20permissions\x20to\x20','nqoyQ','close','BROWSERSTACK_CLI_ENV','PBqlx','PPPyK','aiAiR','HTTP\x20','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','listen','DavZS','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','NMCBS','.browserstack','tFeMy','Current\x20CLI\x20Path\x20Found:\x20','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','start','leEwk','isDirectory','zsJts','ZXIyR','./instances/testFrameworkInstance.js','4177iTGAma','exports','isBinaryBusy','RDsmc','format','Sfvne','tJYbX','Resolved\x20binary\x20path:\x20','230XbGWwg','YMGlT','MMfNd','resume','HOOK_REGEX','debug','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','CLI\x20version\x20found\x20despite\x20error:\x20\x22','ejfPz','lcONS','193419koKahn','SvTuM','unlink','../utils/constants','hGLAA','SDK_CLI_DOWNLOAD','util','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','trim','Downloading\x20SDK\x20binary\x20from:\x20','pid','testContextOptions','homedir','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','VOTOw','rename','7GCNHpc','Development\x20Cli\x20Path:\x20','1|4|0|3|2','getCurrentInstanceName','Hyzab','XotOC','wZiHL','ezvZa','elqlQ','sYFrX','getSdkVersion','../../../package.json','HRqWQ','setFrameworkDetail','statSync',',\x20automationFramework=','3GSvjmg','bPRPL','Folder\x20','../../helpers/helper','env','2973624StcIoU','NWLXH','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','BROWSERSTACK_FILES_DIR','yDIdS','yNaKw','tmpdir','pipe','stringify','readEntry','url','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','3233307cfAfQd','uDicw','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','CLIUtils','sAwhW','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','cxGjZ','fileName','getSdkLanguage','.tmp.','timeout','response\x20','cli_version','OzNBQ','zQWzy','86tCCKSK','Rprdj','arch','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','SDK_CLI_BIN_PATH','12246096wFtxGc','Error\x20while\x20reading\x20CLI\x20path:\x20','../../helpers/classLogger.js','map','development','existsSync','Mxfgd','RKNCz','node','XrEuz','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','error','get','matchHookRegex','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','warn','join','basename','openSync','fIkCX','./framework/constants/testFrameworkConstants.js','includes','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','SHELL_EXECUTE_ERROR','wdeVa','data','aokij','aEdMB','isDevelopmentEnv','closeSync','LFhkW','dKiMs','oJZaY','cli','binary-','../utils/apiUtilityMethods.js','downloadLatestBinary','parse','rzPbi','6rBGMgl','./state/automationFrameworkState.js','Binary\x20is\x20busy:\x20','fHFaq','kcQwe','1796420EcJjUM','hJJdx','destroy','./state/testFrameworkState.js','XSRux','split','\x20version','setupCliPath','skipSessionStatus','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','EXDEV','iECpe','yRDsF','omCYA','.sock','testFrameworkDetail','bnlVv','zskPn','geTdA','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','RxtOe','GET','end','shouldSkipSessionStatus','chmod','entries','fYndT','xeXDB','downloadFileStream','test','mergeObject','GaSNf','Failed\x20to\x20delete\x20zip\x20file:\x20','SsjqZ','UQLQO','checkAndUpdateCli','getAutomationFrameworkDetail','downloaded_file_','../../helpers/utilities','hZdgr','fuMev','code','1973880Hrndng','JpYuG','aHstD','SDK_CLI_CHECK_UPDATE','VZAqa','Configuring\x20Cli\x20path.','YCvVN','peKZy','mtime','kZlQc','version','unix:/tmp/sdk-platform-','GFrSk','OiraO','uCZPY','getExistingCliPath','./state/hookState.js','getWritableDir','BROWSERSTACK_BINARY_URL','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','kqbji','wxDnb','platform','runShellCommand'];a89_0x1d31=function(){return _0x45c861;};return a89_0x1d31();}const fs=require('fs'),os=require('os'),url=require(a89_0x1e75c3(0x19f)),path=require(a89_0x1e75c3(0x136)),{exec}=require('child_process'),{https}=require('follow-redirects'),yauzl=require('yauzl'),util=require(a89_0x1e75c3(0x176)),{getFrameworkVersion}=require('../../helpers/test-observability/utils.js'),{threadId}=require(a89_0x1e75c3(0x13b)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a89_0x1e75c3(0x137)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a89_0x1e75c3(0x207)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a89_0x1e75c3(0x193)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a89_0x1e75c3(0x173)),{createClassLogger}=require(a89_0x1e75c3(0x1b7)),TestFrameworkInstance=require(a89_0x1e75c3(0x15c)),HookState=require(a89_0x1e75c3(0x12a)),TestFrameworkState=require(a89_0x1e75c3(0x1e4)),AutomationFrameworkState=require(a89_0x1e75c3(0x1dd)),TestFrameworkConstants=require(a89_0x1e75c3(0x1c9)),logger=createClassLogger(a89_0x1e75c3(0x1a4)),{getBStackAPIUrl}=require(a89_0x1e75c3(0x1d8));class CLIUtils{[a89_0x1e75c3(0x13a)]={};[a89_0x1e75c3(0x1f0)]={};static[a89_0x1e75c3(0x1d1)](){const _0x531628=a89_0x1e75c3,_0x5ed055={};_0x5ed055[_0x531628(0x138)]=function(_0x54bf9e,_0x2551c4){return _0x54bf9e===_0x2551c4;},_0x5ed055['elqlQ']=_0x531628(0x1b9);const _0xc1a0e2=_0x5ed055;return _0xc1a0e2[_0x531628(0x138)](process['env']['BROWSERSTACK_CLI_ENV'],_0xc1a0e2[_0x531628(0x188)]);}static['getCLIParamsForDevEnv'](){const _0x371018=a89_0x1e75c3,_0x2d1285={};return _0x2d1285['id']=process[_0x371018(0x194)][_0x371018(0x149)],_0x2d1285[_0x371018(0x14f)]=_0x371018(0x125)+process[_0x371018(0x194)][_0x371018(0x149)]+_0x371018(0x1ef),_0x2d1285;}static[a89_0x1e75c3(0x18a)](){const _0x2b3863=a89_0x1e75c3,_0x131ba6={'ZXIyR':function(_0x288812,_0x2ba31e){return _0x288812(_0x2ba31e);},'yNaKw':_0x2b3863(0x18b)};return _0x131ba6[_0x2b3863(0x15b)](require,_0x131ba6[_0x2b3863(0x19a)])[_0x2b3863(0x215)];}static[a89_0x1e75c3(0x1a9)](){const _0x4c00dc=a89_0x1e75c3,_0x357ad7={};_0x357ad7[_0x4c00dc(0x18c)]=_0x4c00dc(0x1bd);const _0x23a8f4=_0x357ad7;return _0x23a8f4[_0x4c00dc(0x18c)];}static async[a89_0x1e75c3(0x1e8)](_0x29910c){const _0x52c591=a89_0x1e75c3,_0x1043bf={'VOTOw':_0x52c591(0x210),'zsJts':function(_0x2aa322,_0x390797){return _0x2aa322(_0x390797);},'kqbji':_0x52c591(0x16c)};logger['debug'](_0x1043bf[_0x52c591(0x17e)]);const _0x3d68f1=process[_0x52c591(0x194)][_0x52c591(0x1b4)];if(!_0x1043bf[_0x52c591(0x15a)](isNullOrEmpty,_0x3d68f1))return logger[_0x52c591(0x16a)](_0x52c591(0x181)+_0x3d68f1),_0x3d68f1;try{const _0x22746b=this[_0x52c591(0x142)]();if(_0x1043bf[_0x52c591(0x15a)](isNullOrEmpty,_0x22746b))throw new Error(_0x1043bf[_0x52c591(0x12e)]);const _0x200b33=this[_0x52c591(0x129)](_0x22746b),_0x13b9c8=await this[_0x52c591(0x204)](_0x200b33,_0x22746b,_0x29910c);return logger[_0x52c591(0x16a)](_0x52c591(0x164)+_0x13b9c8),_0x13b9c8;}catch(_0x325cdc){logger[_0x52c591(0x16a)](_0x52c591(0x1a6)+util[_0x52c591(0x161)](_0x325cdc));}return null;}static async[a89_0x1e75c3(0x204)](_0x3c0c88,_0x94f909,_0x403598){const _0x3c8324=a89_0x1e75c3,_0x5c2ec5={'peKZy':function(_0x30a585){return _0x30a585();},'bnlVv':function(_0x262c83,_0x3b5933){return _0x262c83(_0x3b5933);},'wdeVa':function(_0x1c3970,_0x40012b,_0xd3c80d){return _0x1c3970(_0x40012b,_0xd3c80d);},'LFhkW':_0x3c8324(0x1ce),'DavZS':_0x3c8324(0x19f),'fYndT':function(_0x8fe734,_0x24f709,_0xe09646){return _0x8fe734(_0x24f709,_0xe09646);}};PerformanceTester[_0x3c8324(0x157)](PerformanceEvents[_0x3c8324(0x20e)]);try{logger['info'](_0x3c8324(0x155)+_0x3c0c88);const _0x5430d1=_0x5c2ec5[_0x3c8324(0x212)](getHostInfo),_0x3b16ae={'sdk_version':CLIUtils['getSdkVersion'](),'os':_0x5430d1[_0x3c8324(0x130)],'os_arch':_0x5430d1[_0x3c8324(0x1b2)],'cli_version':'0','sdk_language':this[_0x3c8324(0x1a9)]()};!_0x5c2ec5[_0x3c8324(0x1f1)](isNullOrEmpty,_0x3c0c88)&&(_0x3b16ae['cli_version']=await this[_0x3c8324(0x131)](_0x3c0c88+_0x3c8324(0x1e7)));const _0x58b315=await this['requestToUpdateCLI'](_0x3b16ae,_0x403598);process[_0x3c8324(0x194)][_0x3c8324(0x12c)]&&(logger['info'](_0x3c8324(0x1ea)+process[_0x3c8324(0x194)]['BROWSERSTACK_BINARY_URL']),_0x58b315[_0x3c8324(0x1ce)][_0x3c8324(0x19f)]=process[_0x3c8324(0x194)]['BROWSERSTACK_BINARY_URL']);if(_0x5c2ec5[_0x3c8324(0x1cd)](nestedKeyValue,_0x58b315,[_0x5c2ec5[_0x3c8324(0x1d3)],_0x5c2ec5[_0x3c8324(0x150)]])){logger[_0x3c8324(0x16a)](_0x3c8324(0x1c3)+_0x3b16ae[_0x3c8324(0x1ad)]);if(!_0x5c2ec5[_0x3c8324(0x1f1)](isNullOrEmpty,_0x3c0c88)&&this[_0x3c8324(0x15f)](_0x3c0c88))return logger['warn'](_0x3c8324(0x1b3)+_0x3c0c88),_0x3c0c88;return await this[_0x3c8324(0x1d9)](_0x5c2ec5[_0x3c8324(0x1fb)](nestedKeyValue,_0x58b315,[_0x5c2ec5[_0x3c8324(0x1d3)],_0x5c2ec5['DavZS']]),_0x94f909);}return _0x3c0c88;}finally{PerformanceTester[_0x3c8324(0x1f7)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);}}static[a89_0x1e75c3(0x142)](){const _0x24b000=a89_0x1e75c3,_0x325b4a={'OzNBQ':function(_0x5984ff,_0x4cebb8){return _0x5984ff(_0x4cebb8);},'UQLQO':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','nBEgX':_0x24b000(0x1d6),'vByiU':function(_0x4bfcf6,_0x558c51){return _0x4bfcf6(_0x558c51);}},_0x47a618=this[_0x24b000(0x12b)]();try{if(_0x325b4a[_0x24b000(0x1ae)](isNullOrEmpty,_0x47a618))throw new Error(_0x325b4a[_0x24b000(0x203)]);const _0x21b5c0=path[_0x24b000(0x1c5)](_0x47a618,_0x325b4a['nBEgX']);return!fs[_0x24b000(0x1ba)](_0x21b5c0)&&_0x325b4a[_0x24b000(0x135)](createDir,_0x21b5c0),_0x21b5c0;}catch(_0x1782a0){logger[_0x24b000(0x16a)](_0x24b000(0x1a0)+util[_0x24b000(0x161)](_0x1782a0));}}static[a89_0x1e75c3(0x12b)](){const _0xe05832=a89_0x1e75c3,_0x25c035={'JpYuG':_0xe05832(0x153),'OiraO':function(_0x8c0aed,_0x22c092){return _0x8c0aed(_0x22c092);},'PBqlx':function(_0x10bd86,_0x594bca){return _0x10bd86(_0x594bca);},'lcONS':function(_0x35a3d4,_0x5c15ee){return _0x35a3d4(_0x5c15ee);},'oZAcQ':function(_0x3a8edd,_0x589212){return _0x3a8edd(_0x589212);},'VZAqa':function(_0x56b4fd,_0x496e29){return _0x56b4fd(_0x496e29);}},_0x2dfc8c=[process[_0xe05832(0x194)][_0xe05832(0x198)],path['join'](os[_0xe05832(0x17c)](),_0x25c035[_0xe05832(0x20c)]),path['join'](os[_0xe05832(0x19b)](),_0x25c035[_0xe05832(0x20c)])];for(const _0x378a9d of _0x2dfc8c){if(_0x25c035[_0xe05832(0x127)](isNullOrEmpty,_0x378a9d))continue;try{if(fs[_0xe05832(0x1ba)](_0x378a9d)){logger[_0xe05832(0x16a)](_0xe05832(0x192)+_0x378a9d+'\x20already\x20exists');if(!_0x25c035[_0xe05832(0x127)](isModifiable,_0x378a9d)){logger['debug'](_0xe05832(0x146)+_0x378a9d);const _0x4005bd=_0x25c035[_0xe05832(0x127)](setReadWriteExecuteAccess,_0x378a9d);if(!_0x25c035[_0xe05832(0x14a)](isTrue,_0x4005bd)){logger[_0xe05832(0x1c4)](_0xe05832(0x177)+_0x378a9d);continue;}}}else{logger[_0xe05832(0x16a)](_0xe05832(0x13d)+_0x378a9d),_0x25c035[_0xe05832(0x16f)](createDir,_0x378a9d),logger['debug'](_0xe05832(0x146)+_0x378a9d);const _0x43c12f=_0x25c035['oZAcQ'](setReadWriteExecuteAccess,_0x378a9d);!_0x25c035[_0xe05832(0x20f)](isTrue,_0x43c12f)&&logger[_0xe05832(0x1c4)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x378a9d);}return _0x378a9d;}catch(_0x99e25d){logger[_0xe05832(0x1c0)](_0xe05832(0x1bf)+util[_0xe05832(0x161)](_0x99e25d));}}return null;}static[a89_0x1e75c3(0x129)](_0x2c06ee){const _0x10c60b=a89_0x1e75c3,_0x551500={};_0x551500['NMCBS']=function(_0x5b83c6,_0x414a2c){return _0x5b83c6>_0x414a2c;};const _0x3c0e9c=_0x551500;try{if(!fs[_0x10c60b(0x1ba)](_0x2c06ee)||!fs[_0x10c60b(0x18e)](_0x2c06ee)[_0x10c60b(0x159)]())return'';const _0x42b7c5=fs['readdirSync'](_0x2c06ee)[_0x10c60b(0x1b8)](_0x25d98d=>path[_0x10c60b(0x1c5)](_0x2c06ee,_0x25d98d))['filter'](_0x2bd0b9=>fs[_0x10c60b(0x18e)](_0x2bd0b9)['isFile']()&&path[_0x10c60b(0x1c6)](_0x2bd0b9)['startsWith'](_0x10c60b(0x1d7)));if(_0x3c0e9c['NMCBS'](_0x42b7c5['length'],0x0)){const _0x17b0cd=_0x42b7c5[_0x10c60b(0x1b8)](_0x52c9f4=>({'filePath':_0x52c9f4,'mtime':fs[_0x10c60b(0x18e)](_0x52c9f4)['mtime']}))['reduce']((_0x59306e,_0x140df3)=>{const _0x5b8b4e=_0x10c60b;if(!_0x59306e||!_0x59306e['mtime'])return _0x140df3;if(_0x3c0e9c[_0x5b8b4e(0x152)](_0x140df3[_0x5b8b4e(0x213)],_0x59306e[_0x5b8b4e(0x213)]))return _0x140df3;return _0x59306e;},{});return _0x17b0cd?_0x17b0cd[_0x10c60b(0x141)]:'';}return'';}catch(_0x9e8d6d){return logger[_0x10c60b(0x1c0)](_0x10c60b(0x1b6)+util[_0x10c60b(0x161)](_0x9e8d6d)),'';}}static ['requestToUpdateCLI']=async(_0x515499,_0x3d9d17)=>{const _0x3e7352=a89_0x1e75c3,_0x483fbd={'GFrSk':function(_0x1751cb,_0x2049bb,_0x39a853,_0x1ff64d,_0x221bfd){return _0x1751cb(_0x2049bb,_0x39a853,_0x1ff64d,_0x221bfd);},'zskPn':_0x3e7352(0x1f6)},_0x1d9626={};_0x1d9626['qs']=_0x515499,_0x1d9626['preserveStatusCodeOnError']=!![];const _0x4eb958=await _0x483fbd[_0x3e7352(0x126)](nodeRequest,_0x483fbd[_0x3e7352(0x1f2)],UPDATED_CLI_ENDPOINT,_0x1d9626,_0x3d9d17);return logger[_0x3e7352(0x16a)](_0x3e7352(0x1ac)+JSON[_0x3e7352(0x19d)](_0x4eb958)),_0x4eb958;};static['isBinaryBusy'](_0x1ddb88){const _0x288c01=a89_0x1e75c3;try{const _0x5ee237=fs[_0x288c01(0x1c7)](_0x1ddb88,'r+');return fs[_0x288c01(0x1d2)](_0x5ee237),![];}catch(_0x476a3c){if(BINARY_BUSY_ERROR_CODES['includes'](_0x476a3c['code']))return logger[_0x288c01(0x16a)](_0x288c01(0x1de)+_0x1ddb88),!![];return logger[_0x288c01(0x16a)](_0x288c01(0x14e)+_0x476a3c[_0x288c01(0x13f)]),![];}}static['runShellCommand'](_0x13db48,_0x462cc8=''){const _0x2b0031=a89_0x1e75c3,_0x2a4204={'ezvZa':_0x2b0031(0x215),'uDicw':function(_0x28174b,_0x5dad76){return _0x28174b(_0x5dad76);},'yDIdS':_0x2b0031(0x1cc),'RxtOe':function(_0x42f3a9,_0x356916,_0x44a192,_0x53bc8d){return _0x42f3a9(_0x356916,_0x44a192,_0x53bc8d);},'iECpe':'error'};return new Promise((_0x3fe5eb,_0x5bed14)=>{const _0x29a8fa=_0x2b0031,_0x9afdc6={'kZlQc':function(_0x5be731,_0x3e3011){const _0x53565b=a89_0x5240;return _0x2a4204[_0x53565b(0x1a2)](_0x5be731,_0x3e3011);},'XSRux':_0x2a4204[_0x29a8fa(0x199)]},_0x1aa4b0={};_0x1aa4b0['cwd']=_0x462cc8,_0x1aa4b0[_0x29a8fa(0x1ab)]=0x1388;const _0x562a7d=_0x2a4204[_0x29a8fa(0x1f5)](exec,_0x13db48,_0x1aa4b0,(_0x6e33e3,_0x356617,_0x525f92)=>{const _0x3e4883=_0x29a8fa;if(_0x6e33e3){if(_0x13db48[_0x3e4883(0x1ca)](_0x2a4204[_0x3e4883(0x187)])&&(_0x356617[_0x3e4883(0x178)]()||_0x525f92['trim']())){const _0x31408a=_0x356617[_0x3e4883(0x178)]()||_0x525f92[_0x3e4883(0x178)]();logger['debug'](_0x3e4883(0x16d)+_0x31408a+'\x22'),_0x2a4204[_0x3e4883(0x1a2)](_0x3fe5eb,_0x31408a);}else _0x2a4204[_0x3e4883(0x1a2)](_0x3fe5eb,_0x525f92[_0x3e4883(0x178)]()||_0x2a4204[_0x3e4883(0x199)]);}else logger[_0x3e4883(0x16a)]('Resolving\x20with\x20stdout:\x20\x22'+_0x356617[_0x3e4883(0x178)]()+'\x22'),_0x2a4204[_0x3e4883(0x1a2)](_0x3fe5eb,_0x356617['trim']());});_0x562a7d['on'](_0x2a4204[_0x29a8fa(0x1ec)],()=>{const _0xc7a586=_0x29a8fa;_0x9afdc6[_0xc7a586(0x214)](_0x3fe5eb,_0x9afdc6[_0xc7a586(0x1e5)]);});});}static [a89_0x1e75c3(0x1d9)]=async(_0x90fc39,_0xc6b80a)=>{const _0x48a970=a89_0x1e75c3,_0x3d2db9={'kcQwe':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','SvTuM':function(_0x46bed2,_0x551d83){return _0x46bed2(_0x551d83);},'zQWzy':_0x48a970(0x12d),'DqPUH':function(_0x120fbb,_0x5e5194){return _0x120fbb>=_0x5e5194;},'kfMkL':'DOWNLOAD_HTTP','rzPbi':'SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','SsjqZ':_0x48a970(0x1c0),'oQKqX':_0x48a970(0x1f4)};PerformanceTester[_0x48a970(0x157)](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0x48a970(0x16a)](_0x48a970(0x179)+_0x90fc39);try{const _0x51c080=url[_0x48a970(0x1da)](_0x90fc39),_0x1f2ec8=path['join'](_0xc6b80a,_0x48a970(0x206)+process['pid']+'.zip'),_0x5b0d3c=fs['createWriteStream'](_0x1f2ec8);return new Promise((_0x48ea2c,_0x3426a8)=>{const _0x56f542=_0x48a970,_0x4e5337={'YMGlT':_0x3d2db9[_0x56f542(0x1e0)],'wxDnb':function(_0x235757,_0x3da0ca){const _0x35f481=_0x56f542;return _0x3d2db9[_0x35f481(0x171)](_0x235757,_0x3da0ca);},'goUFU':_0x3d2db9[_0x56f542(0x1af)],'ZRbcB':function(_0x31e7e6,_0x360a95){return _0x3d2db9['DqPUH'](_0x31e7e6,_0x360a95);},'RKNCz':_0x3d2db9['kfMkL'],'leEwk':_0x3d2db9[_0x56f542(0x1db)],'MMfNd':_0x3d2db9['SsjqZ']};https[_0x56f542(0x1c1)](_0x51c080,function(_0x46913c){const _0x57a3b6=_0x56f542,_0x15d3f1={'Sfvne':_0x4e5337['goUFU'],'mjcuB':function(_0x52b34a,_0x362b1b){const _0x35da43=a89_0x5240;return _0x4e5337[_0x35da43(0x12f)](_0x52b34a,_0x362b1b);},'hZdgr':function(_0x56ce29,_0x523b32){const _0x3239b0=a89_0x5240;return _0x4e5337[_0x3239b0(0x12f)](_0x56ce29,_0x523b32);},'yRDsF':function(_0x5095a9,_0x1fdc94){const _0x5e690d=a89_0x5240;return _0x4e5337[_0x5e690d(0x12f)](_0x5095a9,_0x1fdc94);}},_0x1187c0=null;if(_0x46913c[_0x57a3b6(0x132)]&&_0x4e5337['ZRbcB'](_0x46913c[_0x57a3b6(0x132)],0x190)){const _0x4c9076=new Error(_0x57a3b6(0x1cb)+_0x46913c[_0x57a3b6(0x132)]+'\x20from\x20'+_0x90fc39);_0x4c9076['code']=_0x4e5337[_0x57a3b6(0x1bc)],_0x4c9076['statusCode']=_0x46913c[_0x57a3b6(0x132)],logger[_0x57a3b6(0x1c0)](util[_0x57a3b6(0x161)](_0x4e5337[_0x57a3b6(0x158)],_0x46913c[_0x57a3b6(0x132)])),PerformanceTester[_0x57a3b6(0x1f7)](PerformanceEvents[_0x57a3b6(0x175)],![],_0x57a3b6(0x14d)+_0x46913c[_0x57a3b6(0x132)]),_0x46913c[_0x57a3b6(0x168)](),_0x5b0d3c[_0x57a3b6(0x1e3)](),fs[_0x57a3b6(0x172)](_0x1f2ec8,()=>{}),_0x4e5337['wxDnb'](_0x3426a8,_0x4c9076);return;}_0x46913c['pipe'](_0x5b0d3c),_0x46913c['on'](_0x4e5337['MMfNd'],function(_0x38e5df){const _0x300291=_0x57a3b6;logger[_0x300291(0x1c0)](util[_0x300291(0x161)](_0x4e5337[_0x300291(0x166)],_0x38e5df)),PerformanceTester[_0x300291(0x1f7)](PerformanceEvents[_0x300291(0x175)],![],util['format'](_0x38e5df)),_0x4e5337[_0x300291(0x12f)](_0x3426a8,_0x38e5df);}),_0x5b0d3c['on'](_0x4e5337[_0x57a3b6(0x167)],function(_0x19324d){const _0x3d2669=_0x57a3b6;logger[_0x3d2669(0x1c0)](util[_0x3d2669(0x161)](_0x15d3f1[_0x3d2669(0x162)],_0x19324d)),PerformanceTester[_0x3d2669(0x1f7)](PerformanceEvents[_0x3d2669(0x175)],![],util[_0x3d2669(0x161)](_0x19324d)),_0x15d3f1['mjcuB'](_0x3426a8,_0x19324d);}),CLIUtils['downloadFileStream'](_0x5b0d3c,_0x1187c0,_0x1f2ec8,_0xc6b80a,_0x21df99=>{const _0x597001=_0x57a3b6;PerformanceTester[_0x597001(0x1f7)](PerformanceEvents[_0x597001(0x175)]),_0x15d3f1[_0x597001(0x208)](_0x48ea2c,_0x21df99);},_0x5dd2e0=>{const _0xd9e2ef=_0x57a3b6;PerformanceTester[_0xd9e2ef(0x1f7)](PerformanceEvents[_0xd9e2ef(0x175)],![],util[_0xd9e2ef(0x161)](_0x5dd2e0)),_0x15d3f1[_0xd9e2ef(0x1ed)](_0x3426a8,_0x5dd2e0);});})['on'](_0x3d2db9[_0x56f542(0x202)],function(_0x58ccab){const _0x345a3f=_0x56f542;logger['error'](_0x345a3f(0x156)+util[_0x345a3f(0x161)](_0x58ccab)),PerformanceTester[_0x345a3f(0x1f7)](PerformanceEvents[_0x345a3f(0x175)],![],util[_0x345a3f(0x161)](_0x58ccab)),_0x4e5337[_0x345a3f(0x12f)](_0x3426a8,_0x58ccab);});});}catch(_0x2b346b){PerformanceTester[_0x48a970(0x1f7)](PerformanceEvents[_0x48a970(0x175)],![],util[_0x48a970(0x161)](_0x2b346b)),logger['error'](util['format'](_0x3d2db9['oQKqX'],_0x2b346b));throw _0x2b346b;}};static[a89_0x1e75c3(0x1fd)](_0xdbe5b0,_0x2377e6,_0x2a87a7,_0x270364,_0x41dea0,_0x573410){const _0x1511e2=a89_0x1e75c3,_0x4dd9a6={'NLVWZ':function(_0x51c2e6,_0x69e008){return _0x51c2e6(_0x69e008);},'wZiHL':_0x1511e2(0x148),'RDsmc':_0x1511e2(0x1f7),'aEdMB':function(_0x439644,_0x56b58b){return _0x439644!==_0x56b58b;},'XrEuz':function(_0x4c0260,_0x4f23e1){return _0x4c0260(_0x4f23e1);},'pmcdD':_0x1511e2(0x1c0),'VpaBX':_0x1511e2(0x1eb),'zNGFM':'0755','fuMev':_0x1511e2(0x13c)};_0xdbe5b0['on'](_0x4dd9a6[_0x1511e2(0x186)],function(){const _0x4eecca=_0x1511e2,_0x58f43a={'gkRRG':function(_0x56b6ee,_0x40cb6e){return _0x4dd9a6['NLVWZ'](_0x56b6ee,_0x40cb6e);},'xPeqR':_0x4dd9a6[_0x4eecca(0x186)],'xeXDB':_0x4dd9a6[_0x4eecca(0x160)],'RAxQx':function(_0x55bee0,_0x4eac57){const _0x487c5f=_0x4eecca;return _0x4dd9a6[_0x487c5f(0x1d0)](_0x55bee0,_0x4eac57);},'omCYA':function(_0x4d60d7,_0x26f167){const _0x2ebec7=_0x4eecca;return _0x4dd9a6[_0x2ebec7(0x1be)](_0x4d60d7,_0x26f167);},'uCZPY':_0x4dd9a6['pmcdD'],'FWIbo':_0x4dd9a6['VpaBX'],'Mxfgd':function(_0x2a9e2f,_0x5becf0){const _0x5ef78b=_0x4eecca;return _0x4dd9a6[_0x5ef78b(0x1be)](_0x2a9e2f,_0x5becf0);},'XeOSa':_0x4dd9a6['zNGFM'],'geTdA':_0x4dd9a6[_0x4eecca(0x209)]},_0x2f8690={};_0x2f8690['lazyEntries']=!![],yauzl['open'](_0x2a87a7,_0x2f8690,function(_0x59150f,_0x418b32){const _0x31719f=_0x4eecca,_0x3cf8ce={'aiAiR':function(_0x58fae3,_0x439e46){return _0x58f43a['gkRRG'](_0x58fae3,_0x439e46);},'fHFaq':_0x58f43a['xPeqR'],'bPRPL':_0x58f43a[_0x31719f(0x1fc)],'Hyzab':function(_0xf7f714,_0x3d444e){const _0x2f8c20=_0x31719f;return _0x58f43a[_0x2f8c20(0x13e)](_0xf7f714,_0x3d444e);},'hJJdx':function(_0x3bc503,_0x10679a){return _0x58f43a['gkRRG'](_0x3bc503,_0x10679a);},'aHstD':function(_0x445458,_0x50e3bd){const _0x4b7b03=_0x31719f;return _0x58f43a[_0x4b7b03(0x1ee)](_0x445458,_0x50e3bd);},'hGLAA':_0x58f43a[_0x31719f(0x128)],'tJYbX':function(_0xd9fdf7,_0x3b0695){return _0x58f43a['RAxQx'](_0xd9fdf7,_0x3b0695);},'QfiUQ':_0x58f43a[_0x31719f(0x133)],'ZvgTE':function(_0x512882,_0x4cb766){const _0x5ee96f=_0x31719f;return _0x58f43a[_0x5ee96f(0x1bb)](_0x512882,_0x4cb766);},'sYFrX':_0x58f43a['XeOSa']};if(_0x59150f){_0x58f43a[_0x31719f(0x1ee)](_0x573410,_0x59150f);return;}_0x418b32['readEntry'](),_0x418b32['on'](_0x58f43a[_0x31719f(0x1f3)],_0x5c4d52=>{const _0x22d4e4=_0x31719f,_0x3a3e32={'oJZaY':function(_0x16ca40,_0x5d7b16){const _0x3be75a=a89_0x5240;return _0x3cf8ce[_0x3be75a(0x14c)](_0x16ca40,_0x5d7b16);},'tFeMy':_0x3cf8ce[_0x22d4e4(0x1df)],'JEnAI':_0x3cf8ce[_0x22d4e4(0x191)]};if(/\/$/['test'](_0x5c4d52[_0x22d4e4(0x1a8)])){_0x418b32[_0x22d4e4(0x19e)]();return;}!_0x2377e6&&(_0x2377e6=_0x5c4d52[_0x22d4e4(0x1a8)]);if(_0x3cf8ce[_0x22d4e4(0x184)](_0x5c4d52[_0x22d4e4(0x1a8)],_0x2377e6))_0x418b32[_0x22d4e4(0x19e)]();else{const _0x364f38=_0x5c4d52['fileName'],_0x11cc8d=path[_0x22d4e4(0x1c5)](_0x270364,_0x364f38+_0x22d4e4(0x1aa)+process[_0x22d4e4(0x17a)]);let _0x1234fe;try{_0x1234fe=fs['createWriteStream'](_0x11cc8d);}catch(_0x8edd21){if(BINARY_BUSY_ERROR_CODES['includes'](_0x8edd21[_0x22d4e4(0x20a)])){const _0x2df6d2=path[_0x22d4e4(0x1c5)](_0x270364,_0x364f38);if(fs[_0x22d4e4(0x1ba)](_0x2df6d2)){logger[_0x22d4e4(0x1c4)](_0x22d4e4(0x17d)+_0x364f38),fs['unlink'](_0x2a87a7,_0xf55b90=>{const _0x1aed04=_0x22d4e4;_0xf55b90&&logger['warn'](_0x1aed04(0x201)+_0x2a87a7);}),_0x3cf8ce[_0x22d4e4(0x1e2)](_0x41dea0,_0x2df6d2);return;}logger[_0x22d4e4(0x1c4)](_0x22d4e4(0x16b)+_0x364f38);}_0x3cf8ce[_0x22d4e4(0x20d)](_0x573410,_0x8edd21);return;}_0x1234fe['on'](_0x3cf8ce[_0x22d4e4(0x174)],_0x38930e=>{const _0x33c69a=_0x22d4e4;if(BINARY_BUSY_ERROR_CODES['includes'](_0x38930e[_0x33c69a(0x20a)])){const _0x4c7640=path['join'](_0x270364,_0x364f38);_0x1234fe[_0x33c69a(0x148)](),fs[_0x33c69a(0x1ba)](_0x4c7640)?(logger['warn']('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x38930e[_0x33c69a(0x13f)]),_0x418b32['close'](),fs[_0x33c69a(0x172)](_0x2a87a7,_0x2e8193=>{const _0x448e57=_0x33c69a;_0x2e8193&&logger[_0x448e57(0x1c4)](_0x448e57(0x201)+_0x2a87a7);}),_0x3a3e32[_0x33c69a(0x1d5)](_0x41dea0,_0x4c7640)):(logger['warn']('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x38930e['message']),fs[_0x33c69a(0x172)](_0x11cc8d,()=>{}),_0x3a3e32[_0x33c69a(0x1d5)](_0x573410,_0x38930e));}else fs[_0x33c69a(0x172)](_0x11cc8d,()=>{}),_0x3a3e32[_0x33c69a(0x1d5)](_0x573410,_0x38930e);}),_0x418b32['openReadStream'](_0x5c4d52,function(_0x184d62,_0x11080c){const _0x580c05=_0x22d4e4,_0x3a1d64={};_0x3a1d64['cisWc']=_0x3a3e32[_0x580c05(0x154)];const _0x2480a2=_0x3a1d64;if(_0x184d62){fs[_0x580c05(0x172)](_0x11cc8d,()=>{}),_0x3a3e32[_0x580c05(0x1d5)](_0x573410,_0x184d62);return;}_0x11080c['on'](_0x3a3e32[_0x580c05(0x143)],function(){const _0x393d37=_0x580c05;_0x1234fe[_0x393d37(0x1f7)](),_0x1234fe['on'](_0x2480a2[_0x393d37(0x144)],function(){const _0x13b084=_0x393d37;_0x418b32[_0x13b084(0x19e)]();});}),_0x11080c[_0x580c05(0x19c)](_0x1234fe);});}}),_0x418b32['on'](_0x58f43a[_0x31719f(0x128)],_0x42d979=>{_0x58f43a['gkRRG'](_0x573410,_0x42d979);}),_0x418b32['once'](_0x58f43a['xeXDB'],()=>{const _0x4af246=_0x31719f,_0x4f2749={'TGdNo':function(_0x5c1699,_0x1c9ec3){const _0x531b26=a89_0x5240;return _0x3cf8ce[_0x531b26(0x163)](_0x5c1699,_0x1c9ec3);},'YCvVN':_0x3cf8ce['QfiUQ'],'jxrJy':function(_0x2ccb80,_0x56fa91){return _0x3cf8ce['ZvgTE'](_0x2ccb80,_0x56fa91);},'GaSNf':function(_0x5bdb92,_0x11a35a){const _0x30ef90=a89_0x5240;return _0x3cf8ce[_0x30ef90(0x1e2)](_0x5bdb92,_0x11a35a);}};fs[_0x4af246(0x172)](_0x2a87a7,_0x3f7a17=>{const _0x13ed82=_0x4af246;_0x3f7a17&&logger[_0x13ed82(0x1c4)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x2a87a7);});const _0x569ec5=path[_0x4af246(0x1c5)](_0x270364,_0x2377e6+_0x4af246(0x1aa)+process['pid']),_0x271099=path[_0x4af246(0x1c5)](_0x270364,_0x2377e6);fs[_0x4af246(0x1f9)](_0x569ec5,_0x3cf8ce[_0x4af246(0x189)],function(_0x4461dc){const _0x200524=_0x4af246,_0x133310={'PPPyK':function(_0x4622b7,_0x3bc793){return _0x4f2749['TGdNo'](_0x4622b7,_0x3bc793);},'fIkCX':_0x4f2749[_0x200524(0x211)],'ejfPz':function(_0x322fee,_0x1ad9a8){const _0x4ea85b=_0x200524;return _0x4f2749[_0x4ea85b(0x139)](_0x322fee,_0x1ad9a8);},'sAwhW':function(_0x5af607,_0x3d5f89){const _0x4cae46=_0x200524;return _0x4f2749[_0x4cae46(0x200)](_0x5af607,_0x3d5f89);}};if(_0x4461dc){_0x418b32['close'](),fs['unlink'](_0x569ec5,()=>{}),_0x4f2749[_0x200524(0x139)](_0x573410,_0x4461dc);return;}fs[_0x200524(0x17f)](_0x569ec5,_0x271099,function(_0x4a0f44){const _0x1bc88f=_0x200524;if(_0x4a0f44){if(_0x133310[_0x1bc88f(0x14b)](_0x4a0f44[_0x1bc88f(0x20a)],_0x133310[_0x1bc88f(0x1c8)])){_0x418b32[_0x1bc88f(0x148)](),fs['unlink'](_0x569ec5,()=>{}),_0x133310[_0x1bc88f(0x16e)](_0x573410,_0x4a0f44);return;}logger[_0x1bc88f(0x1c4)]('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x4a0f44[_0x1bc88f(0x13f)]);try{fs['copyFileSync'](_0x569ec5,_0x271099);}catch(_0x283bd5){_0x418b32[_0x1bc88f(0x148)](),fs['unlink'](_0x569ec5,()=>{}),_0x133310[_0x1bc88f(0x1a5)](_0x573410,_0x283bd5);return;}fs[_0x1bc88f(0x172)](_0x569ec5,_0xdca0a=>{const _0x2f8468=_0x1bc88f;_0xdca0a&&logger[_0x2f8468(0x1c4)](_0x2f8468(0x1a3)+_0xdca0a[_0x2f8468(0x13f)]);});}_0x418b32['close'](),_0x133310[_0x1bc88f(0x1a5)](_0x41dea0,_0x271099);});});});});});}static['getTestFrameworkDetail'](){const _0x2286a4=a89_0x1e75c3;if(process[_0x2286a4(0x194)][_0x2286a4(0x197)])return JSON['parse'](process[_0x2286a4(0x194)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this[_0x2286a4(0x1f0)];}static[a89_0x1e75c3(0x205)](){const _0x5e7986=a89_0x1e75c3;if(process[_0x5e7986(0x194)][_0x5e7986(0x151)])return JSON['parse'](process[_0x5e7986(0x194)][_0x5e7986(0x151)]);return this[_0x5e7986(0x13a)];}static[a89_0x1e75c3(0x18d)](_0x196d59,_0x4cb8de){const _0x31e380=a89_0x1e75c3,_0x28291b={'dKiMs':_0x31e380(0x182),'aokij':function(_0x126ce0,_0x1541a5){return _0x126ce0(_0x1541a5);},'XotOC':function(_0xf85997,_0x378f92){return _0xf85997||_0x378f92;},'NWLXH':function(_0x3f821a,_0xe6d9b8){return _0x3f821a(_0xe6d9b8);}},_0x13eed8=_0x28291b[_0x31e380(0x1d4)][_0x31e380(0x1e6)]('|');let _0x976179=0x0;while(!![]){switch(_0x13eed8[_0x976179++]){case'0':this[_0x31e380(0x13a)]={'name':_0x4cb8de,'version':_0x28291b[_0x31e380(0x1cf)](getFrameworkVersion,_0x4cb8de)};continue;case'1':_0x28291b[_0x31e380(0x185)](!_0x196d59,!_0x4cb8de)&&logger['debug']('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x196d59+_0x31e380(0x18f)+_0x4cb8de);continue;case'2':process[_0x31e380(0x194)][_0x31e380(0x197)]=JSON[_0x31e380(0x19d)](this[_0x31e380(0x1f0)]);continue;case'3':process[_0x31e380(0x194)][_0x31e380(0x151)]=JSON[_0x31e380(0x19d)](this[_0x31e380(0x13a)]);continue;case'4':this[_0x31e380(0x1f0)]={'name':_0x196d59,'version':{[_0x196d59]:_0x28291b[_0x31e380(0x196)](getFrameworkVersion,_0x196d59)}};continue;}break;}}static['getHookRegistryKey'](_0x784f33,_0x2cf99e){return _0x784f33+':'+_0x2cf99e;}static[a89_0x1e75c3(0x183)](){const _0x55e0d7=a89_0x1e75c3;return process[_0x55e0d7(0x17a)]+':'+threadId;}static['shouldSkipSessionName'](_0x24e3d2){const _0x40e574=a89_0x1e75c3;if(_0x24e3d2[_0x40e574(0x17b)]&&_0x24e3d2[_0x40e574(0x17b)]['skipSessionName'])return!![];return![];}static[a89_0x1e75c3(0x1f8)](_0x4fc659){const _0x51b3a3=a89_0x1e75c3;if(_0x4fc659[_0x51b3a3(0x17b)]&&_0x4fc659[_0x51b3a3(0x17b)][_0x51b3a3(0x1e9)])return!![];return![];}static[a89_0x1e75c3(0x1c2)](_0x496bd0){const _0x59e666=a89_0x1e75c3,_0x239a6b=new RegExp(TestFrameworkConstants[_0x59e666(0x169)]);return _0x239a6b[_0x59e666(0x1fe)](_0x496bd0);}static[a89_0x1e75c3(0x1ff)](_0x4b7ecc,_0x5ef807){const _0x201d8c=a89_0x1e75c3,_0x31ac86={};_0x31ac86[_0x201d8c(0x1b1)]=function(_0x434900,_0x5f55c8){return _0x434900!==_0x5f55c8;},_0x31ac86[_0x201d8c(0x147)]=function(_0x4f24be,_0x302578){return _0x4f24be===_0x302578;},_0x31ac86[_0x201d8c(0x1a7)]=_0x201d8c(0x134);const _0x2f6847=_0x31ac86;for(const [_0x21553b,_0xa285ce]of Object[_0x201d8c(0x1fa)](_0x5ef807)){if(_0x2f6847[_0x201d8c(0x1b1)](_0xa285ce,null)&&_0x2f6847[_0x201d8c(0x147)](typeof _0xa285ce,_0x2f6847[_0x201d8c(0x1a7)])&&!Array[_0x201d8c(0x140)](_0xa285ce))_0x4b7ecc[_0x21553b]=this[_0x201d8c(0x1ff)](_0x4b7ecc[_0x21553b]||{},_0xa285ce);else Array[_0x201d8c(0x140)](_0xa285ce)?_0x4b7ecc[_0x21553b]=(_0x4b7ecc[_0x21553b]||[])[_0x201d8c(0x145)](_0xa285ce):_0x4b7ecc[_0x21553b]=_0xa285ce;}return _0x4b7ecc;}}module[a89_0x1e75c3(0x15e)]=CLIUtils;
|
|
1
|
+
const a89_0x551c4b=a89_0x3972;(function(_0x12449f,_0x46f584){const _0x3cdd42=a89_0x3972,_0x1ae3ad=_0x12449f();while(!![]){try{const _0x166ed4=-parseInt(_0x3cdd42(0x187))/0x1+parseInt(_0x3cdd42(0x1ab))/0x2*(-parseInt(_0x3cdd42(0x1a9))/0x3)+parseInt(_0x3cdd42(0x17a))/0x4*(-parseInt(_0x3cdd42(0x179))/0x5)+-parseInt(_0x3cdd42(0x20e))/0x6+parseInt(_0x3cdd42(0x152))/0x7+parseInt(_0x3cdd42(0x1c2))/0x8+parseInt(_0x3cdd42(0x21c))/0x9*(parseInt(_0x3cdd42(0x222))/0xa);if(_0x166ed4===_0x46f584)break;else _0x1ae3ad['push'](_0x1ae3ad['shift']());}catch(_0x1f0c25){_0x1ae3ad['push'](_0x1ae3ad['shift']());}}}(a89_0x26c2,0xdd931));const fs=require('fs'),os=require('os'),url=require(a89_0x551c4b(0x1ba)),path=require(a89_0x551c4b(0x1c3)),{exec}=require(a89_0x551c4b(0x1bf)),{https}=require(a89_0x551c4b(0x209)),yauzl=require(a89_0x551c4b(0x217)),util=require(a89_0x551c4b(0x155)),{getFrameworkVersion}=require('../../helpers/test-observability/utils.js'),{threadId}=require(a89_0x551c4b(0x1c1)),PerformanceTester=require(a89_0x551c4b(0x230)),{EVENTS:PerformanceEvents}=require(a89_0x551c4b(0x177)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a89_0x551c4b(0x18d)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a89_0x551c4b(0x1bb)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a89_0x551c4b(0x14f)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a89_0x551c4b(0x193)),HookState=require('./state/hookState.js'),TestFrameworkState=require(a89_0x551c4b(0x1d4)),AutomationFrameworkState=require(a89_0x551c4b(0x171)),TestFrameworkConstants=require(a89_0x551c4b(0x169)),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a89_0x551c4b(0x1fe));function a89_0x3972(_0x5aa265,_0x1ff73a){const _0x26c2a4=a89_0x26c2();return a89_0x3972=function(_0x397206,_0x592fb0){_0x397206=_0x397206-0x14d;let _0x422319=_0x26c2a4[_0x397206];return _0x422319;},a89_0x3972(_0x5aa265,_0x1ff73a);}class CLIUtils{[a89_0x551c4b(0x1e7)]={};[a89_0x551c4b(0x185)]={};static[a89_0x551c4b(0x16c)](){const _0x313fad=a89_0x551c4b,_0x18a4bd={};_0x18a4bd[_0x313fad(0x15c)]=function(_0x3b3bd1,_0x5a385c){return _0x3b3bd1===_0x5a385c;},_0x18a4bd[_0x313fad(0x1c4)]=_0x313fad(0x1b1);const _0x5eb2b8=_0x18a4bd;return _0x5eb2b8[_0x313fad(0x15c)](process[_0x313fad(0x1fd)][_0x313fad(0x186)],_0x5eb2b8[_0x313fad(0x1c4)]);}static[a89_0x551c4b(0x1de)](){const _0xe6c4ac=a89_0x551c4b,_0x3045c6={};return _0x3045c6['id']=process[_0xe6c4ac(0x1fd)]['BROWSERSTACK_CLI_ENV'],_0x3045c6[_0xe6c4ac(0x175)]=_0xe6c4ac(0x15f)+process[_0xe6c4ac(0x1fd)][_0xe6c4ac(0x186)]+_0xe6c4ac(0x231),_0x3045c6;}static[a89_0x551c4b(0x190)](){const _0xb622ed=a89_0x551c4b,_0x375528={'MpTZi':function(_0x2a56fe,_0x22b8ab){return _0x2a56fe(_0x22b8ab);},'rVYxR':'../../../package.json'};return _0x375528[_0xb622ed(0x1f1)](require,_0x375528['rVYxR'])[_0xb622ed(0x227)];}static[a89_0x551c4b(0x1ae)](){const _0x48cb53=a89_0x551c4b,_0x57854d={};_0x57854d[_0x48cb53(0x1a6)]=_0x48cb53(0x196);const _0x136168=_0x57854d;return _0x136168[_0x48cb53(0x1a6)];}static async[a89_0x551c4b(0x1ec)](_0xd80108){const _0x4355f9=a89_0x551c4b,_0x3caa13={'zznAZ':_0x4355f9(0x1ed),'XMFWm':function(_0x164add,_0xcc7f1a){return _0x164add(_0xcc7f1a);},'BUlwq':_0x4355f9(0x1b7)};logger[_0x4355f9(0x1b8)](_0x3caa13[_0x4355f9(0x1a5)]);const _0x568a3a=process['env'][_0x4355f9(0x163)];if(!_0x3caa13['XMFWm'](isNullOrEmpty,_0x568a3a))return logger[_0x4355f9(0x1b8)](_0x4355f9(0x22a)+_0x568a3a),_0x568a3a;try{const _0x1f844e=this[_0x4355f9(0x1b9)]();if(_0x3caa13[_0x4355f9(0x180)](isNullOrEmpty,_0x1f844e))throw new Error(_0x3caa13[_0x4355f9(0x1eb)]);const _0x261da6=this[_0x4355f9(0x167)](_0x1f844e),_0x475ac5=await this[_0x4355f9(0x170)](_0x261da6,_0x1f844e,_0xd80108);return logger[_0x4355f9(0x1b8)](_0x4355f9(0x233)+_0x475ac5),_0x475ac5;}catch(_0x1a5754){logger[_0x4355f9(0x1b8)](_0x4355f9(0x228)+util[_0x4355f9(0x162)](_0x1a5754));}return null;}static async['checkAndUpdateCli'](_0x3b9e02,_0x1adfe1,_0x41daf6){const _0x14b06c=a89_0x551c4b,_0x165b00={'GAInt':function(_0x14dcdd){return _0x14dcdd();},'OoAaB':function(_0x5ae705,_0x1c8590){return _0x5ae705(_0x1c8590);},'lflXW':function(_0xc1b497,_0x19032f,_0x21be8b){return _0xc1b497(_0x19032f,_0x21be8b);},'DJJne':_0x14b06c(0x208),'GTqao':'url','VSiXh':function(_0x44ba93,_0x517858){return _0x44ba93(_0x517858);}};PerformanceTester[_0x14b06c(0x1db)](PerformanceEvents[_0x14b06c(0x1c6)]);try{logger[_0x14b06c(0x1d0)](_0x14b06c(0x1e4)+_0x3b9e02);const _0x203f44=_0x165b00[_0x14b06c(0x234)](getHostInfo),_0x28cc3d={'sdk_version':CLIUtils[_0x14b06c(0x190)](),'os':_0x203f44[_0x14b06c(0x1ea)],'os_arch':_0x203f44[_0x14b06c(0x158)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x165b00[_0x14b06c(0x223)](isNullOrEmpty,_0x3b9e02)&&(_0x28cc3d[_0x14b06c(0x15d)]=await this['runShellCommand'](_0x3b9e02+'\x20version'));const _0x24a92f=await this[_0x14b06c(0x1b0)](_0x28cc3d,_0x41daf6);process[_0x14b06c(0x1fd)]['BROWSERSTACK_BINARY_URL']&&(logger[_0x14b06c(0x1d0)](_0x14b06c(0x17c)+process['env'][_0x14b06c(0x1d2)]),_0x24a92f[_0x14b06c(0x208)]['url']=process[_0x14b06c(0x1fd)][_0x14b06c(0x1d2)]);if(_0x165b00[_0x14b06c(0x192)](nestedKeyValue,_0x24a92f,[_0x165b00[_0x14b06c(0x219)],_0x165b00[_0x14b06c(0x160)]])){logger[_0x14b06c(0x1b8)](_0x14b06c(0x1f2)+_0x28cc3d[_0x14b06c(0x15d)]);if(!_0x165b00['VSiXh'](isNullOrEmpty,_0x3b9e02)&&this[_0x14b06c(0x1c8)](_0x3b9e02))return logger[_0x14b06c(0x1bc)](_0x14b06c(0x17b)+_0x3b9e02),_0x3b9e02;return await this[_0x14b06c(0x22e)](_0x165b00[_0x14b06c(0x192)](nestedKeyValue,_0x24a92f,[_0x165b00[_0x14b06c(0x219)],_0x165b00[_0x14b06c(0x160)]]),_0x1adfe1);}return _0x3b9e02;}finally{PerformanceTester[_0x14b06c(0x15b)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);}}static[a89_0x551c4b(0x1b9)](){const _0x38d932=a89_0x551c4b,_0x522a85={'rKjvQ':function(_0x12ca9f,_0xcbcf0f){return _0x12ca9f(_0xcbcf0f);},'TVkpo':_0x38d932(0x1b7),'EOYEM':_0x38d932(0x1ce),'sREKN':function(_0x5d8ac3,_0x5b9479){return _0x5d8ac3(_0x5b9479);}},_0x553eba=this[_0x38d932(0x17d)]();try{if(_0x522a85[_0x38d932(0x1f0)](isNullOrEmpty,_0x553eba))throw new Error(_0x522a85['TVkpo']);const _0xe1365e=path[_0x38d932(0x207)](_0x553eba,_0x522a85[_0x38d932(0x21a)]);return!fs[_0x38d932(0x23b)](_0xe1365e)&&_0x522a85['sREKN'](createDir,_0xe1365e),_0xe1365e;}catch(_0x19e153){logger['debug']('Error\x20in\x20getting\x20writable\x20directory,\x20writableDir='+util[_0x38d932(0x162)](_0x19e153));}}static[a89_0x551c4b(0x17d)](){const _0x5c456e=a89_0x551c4b,_0x476305={'RytCX':_0x5c456e(0x1a3),'zPWqH':function(_0xcb4a01,_0x28f7a4){return _0xcb4a01(_0x28f7a4);},'FLAGU':function(_0x110a84,_0x28e533){return _0x110a84(_0x28e533);},'pcvrP':function(_0x374d4e,_0x2de99a){return _0x374d4e(_0x2de99a);},'QRKCW':function(_0x220d3c,_0x4571bd){return _0x220d3c(_0x4571bd);},'pKDEK':function(_0x2a9383,_0x2edb03){return _0x2a9383(_0x2edb03);}},_0x54d259=[process[_0x5c456e(0x1fd)]['BROWSERSTACK_FILES_DIR'],path[_0x5c456e(0x207)](os['homedir'](),_0x476305[_0x5c456e(0x1e0)]),path['join'](os['tmpdir'](),_0x476305[_0x5c456e(0x1e0)])];for(const _0x2878d6 of _0x54d259){if(_0x476305['zPWqH'](isNullOrEmpty,_0x2878d6))continue;try{if(fs['existsSync'](_0x2878d6)){logger[_0x5c456e(0x1b8)](_0x5c456e(0x19f)+_0x2878d6+'\x20already\x20exists');if(!_0x476305[_0x5c456e(0x154)](isModifiable,_0x2878d6)){logger[_0x5c456e(0x1b8)](_0x5c456e(0x166)+_0x2878d6);const _0x502427=_0x476305[_0x5c456e(0x238)](setReadWriteExecuteAccess,_0x2878d6);if(!_0x476305[_0x5c456e(0x238)](isTrue,_0x502427)){logger['warn']('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x2878d6);continue;}}}else{logger['debug'](_0x5c456e(0x16a)+_0x2878d6),_0x476305[_0x5c456e(0x19d)](createDir,_0x2878d6),logger[_0x5c456e(0x1b8)](_0x5c456e(0x166)+_0x2878d6);const _0x2c465a=_0x476305[_0x5c456e(0x151)](setReadWriteExecuteAccess,_0x2878d6);!_0x476305[_0x5c456e(0x18b)](isTrue,_0x2c465a)&&logger[_0x5c456e(0x1bc)](_0x5c456e(0x200)+_0x2878d6);}return _0x2878d6;}catch(_0x452287){logger['error']('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x5c456e(0x162)](_0x452287));}}return null;}static[a89_0x551c4b(0x167)](_0xc4f578){const _0x37d9df=a89_0x551c4b,_0x4f4d9d={};_0x4f4d9d[_0x37d9df(0x212)]=function(_0x28b62c,_0x443cfa){return _0x28b62c>_0x443cfa;};const _0x413fa4=_0x4f4d9d;try{if(!fs['existsSync'](_0xc4f578)||!fs[_0x37d9df(0x215)](_0xc4f578)[_0x37d9df(0x14d)]())return'';const _0x50253d=fs['readdirSync'](_0xc4f578)[_0x37d9df(0x199)](_0x175644=>path['join'](_0xc4f578,_0x175644))['filter'](_0x2b0993=>fs[_0x37d9df(0x215)](_0x2b0993)[_0x37d9df(0x205)]()&&path[_0x37d9df(0x1f6)](_0x2b0993)[_0x37d9df(0x16f)](_0x37d9df(0x17f)));if(_0x413fa4['KWvEK'](_0x50253d[_0x37d9df(0x1ac)],0x0)){const _0x1915a2=_0x50253d[_0x37d9df(0x199)](_0x7fbd34=>({'filePath':_0x7fbd34,'mtime':fs['statSync'](_0x7fbd34)[_0x37d9df(0x1f4)]}))[_0x37d9df(0x1d9)]((_0x17bbdb,_0x18615b)=>{const _0x41d7c9=_0x37d9df;if(!_0x17bbdb||!_0x17bbdb[_0x41d7c9(0x1f4)])return _0x18615b;if(_0x413fa4[_0x41d7c9(0x212)](_0x18615b[_0x41d7c9(0x1f4)],_0x17bbdb[_0x41d7c9(0x1f4)]))return _0x18615b;return _0x17bbdb;},{});return _0x1915a2?_0x1915a2[_0x37d9df(0x21b)]:'';}return'';}catch(_0x51b36d){return logger[_0x37d9df(0x211)](_0x37d9df(0x20b)+util['format'](_0x51b36d)),'';}}static [a89_0x551c4b(0x1b0)]=async(_0x4aa558,_0x545e0a)=>{const _0x30133d=a89_0x551c4b,_0x70638c={'hbNZu':function(_0x392df0,_0x147089,_0x2a42af,_0x12b808,_0x5512cf){return _0x392df0(_0x147089,_0x2a42af,_0x12b808,_0x5512cf);},'kTfUF':_0x30133d(0x1cf)},_0x459a62={};_0x459a62['qs']=_0x4aa558,_0x459a62['preserveStatusCodeOnError']=!![];const _0x285a15=await _0x70638c[_0x30133d(0x203)](nodeRequest,_0x70638c['kTfUF'],UPDATED_CLI_ENDPOINT,_0x459a62,_0x545e0a);return logger[_0x30133d(0x1b8)](_0x30133d(0x1b3)+JSON[_0x30133d(0x17e)](_0x285a15)),_0x285a15;};static[a89_0x551c4b(0x1c8)](_0x47b361){const _0x78d771=a89_0x551c4b;try{const _0x1d8970=fs['openSync'](_0x47b361,'r+');return fs['closeSync'](_0x1d8970),![];}catch(_0x42a45b){if(BINARY_BUSY_ERROR_CODES[_0x78d771(0x168)](_0x42a45b[_0x78d771(0x1d8)]))return logger[_0x78d771(0x1b8)](_0x78d771(0x18c)+_0x47b361),!![];return logger['debug'](_0x78d771(0x1d6)+_0x42a45b[_0x78d771(0x176)]),![];}}static[a89_0x551c4b(0x1c7)](_0xa9ebdc,_0x5625ae=''){const _0x22f1ca=a89_0x551c4b,_0x198bd0={'YpZst':function(_0x95cc19,_0x32f9a4){return _0x95cc19(_0x32f9a4);},'bcpRa':_0x22f1ca(0x1e5),'dsyzv':_0x22f1ca(0x227),'zoFXd':function(_0x250d17,_0x2b5b50,_0x21a8af,_0x3d6985){return _0x250d17(_0x2b5b50,_0x21a8af,_0x3d6985);},'ZbKHA':_0x22f1ca(0x211)};return new Promise((_0x1d162e,_0x48cbea)=>{const _0x1f56ec=_0x22f1ca,_0x2ab29d={'Yjyzq':_0x198bd0[_0x1f56ec(0x210)],'qmyqr':function(_0xa66793,_0x4eda11){const _0x289616=_0x1f56ec;return _0x198bd0[_0x289616(0x1cd)](_0xa66793,_0x4eda11);},'NckBi':function(_0x352f3c,_0x14ba62){return _0x198bd0['YpZst'](_0x352f3c,_0x14ba62);},'aMfFS':_0x198bd0[_0x1f56ec(0x1aa)],'IPCcc':function(_0x680e69,_0x3c689d){const _0x1f787e=_0x1f56ec;return _0x198bd0[_0x1f787e(0x1cd)](_0x680e69,_0x3c689d);}},_0x509f69={};_0x509f69[_0x1f56ec(0x1ad)]=_0x5625ae,_0x509f69[_0x1f56ec(0x1e1)]=0x1388;const _0x29a179=_0x198bd0[_0x1f56ec(0x224)](exec,_0xa9ebdc,_0x509f69,(_0x551a01,_0x45adcc,_0x5030f7)=>{const _0x37bdbe=_0x1f56ec;if(_0x551a01){if(_0xa9ebdc[_0x37bdbe(0x168)](_0x2ab29d['Yjyzq'])&&(_0x45adcc[_0x37bdbe(0x1f9)]()||_0x5030f7[_0x37bdbe(0x1f9)]())){const _0x5eac38=_0x45adcc[_0x37bdbe(0x1f9)]()||_0x5030f7[_0x37bdbe(0x1f9)]();logger[_0x37bdbe(0x1b8)](_0x37bdbe(0x1a7)+_0x5eac38+'\x22'),_0x2ab29d[_0x37bdbe(0x182)](_0x1d162e,_0x5eac38);}else _0x2ab29d[_0x37bdbe(0x21d)](_0x1d162e,_0x5030f7[_0x37bdbe(0x1f9)]()||_0x2ab29d[_0x37bdbe(0x1b2)]);}else logger[_0x37bdbe(0x1b8)](_0x37bdbe(0x225)+_0x45adcc[_0x37bdbe(0x1f9)]()+'\x22'),_0x2ab29d[_0x37bdbe(0x19e)](_0x1d162e,_0x45adcc[_0x37bdbe(0x1f9)]());});_0x29a179['on'](_0x198bd0[_0x1f56ec(0x1be)],()=>{const _0x3fa306=_0x1f56ec;_0x198bd0[_0x3fa306(0x1cd)](_0x1d162e,_0x198bd0['bcpRa']);});});}static [a89_0x551c4b(0x22e)]=async(_0x3e229a,_0x5dee6d)=>{const _0x14d4a2=a89_0x551c4b,_0x23c1ae={'wdCQc':function(_0x3b00cf,_0x3ab78e){return _0x3b00cf(_0x3ab78e);},'PPlMf':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','Muwnt':_0x14d4a2(0x20d),'UyxNc':function(_0x252e45,_0x2d822c){return _0x252e45>=_0x2d822c;},'rvJoo':_0x14d4a2(0x218),'hNrkF':_0x14d4a2(0x16e),'dtceq':_0x14d4a2(0x211),'MPTjq':_0x14d4a2(0x21f)};PerformanceTester[_0x14d4a2(0x1db)](PerformanceEvents[_0x14d4a2(0x173)]),logger[_0x14d4a2(0x1b8)](_0x14d4a2(0x1d5)+_0x3e229a);try{const _0x3f3914=url[_0x14d4a2(0x23d)](_0x3e229a),_0x14b9ea=path['join'](_0x5dee6d,_0x14d4a2(0x174)+process['pid']+_0x14d4a2(0x213)),_0x2b32d5=fs['createWriteStream'](_0x14b9ea);return new Promise((_0x276556,_0x2b9cb3)=>{const _0x38e4e1=_0x14d4a2,_0x194031={'eaomO':_0x23c1ae[_0x38e4e1(0x1cb)],'KTakR':function(_0x4f480a,_0x5523d8){const _0x465626=_0x38e4e1;return _0x23c1ae[_0x465626(0x1b6)](_0x4f480a,_0x5523d8);},'wXYTD':_0x23c1ae[_0x38e4e1(0x1f5)],'nFQLV':function(_0x3b463d,_0x188923){return _0x23c1ae['UyxNc'](_0x3b463d,_0x188923);},'COXlv':_0x23c1ae['rvJoo'],'uOLKt':_0x23c1ae[_0x38e4e1(0x202)],'Rfkcn':_0x23c1ae['dtceq']};https[_0x38e4e1(0x1a8)](_0x3f3914,function(_0x2070c2){const _0x5a319e=_0x38e4e1,_0x11ad6c={'hdeqQ':_0x194031['wXYTD'],'TrCmb':function(_0x18c330,_0x4581f9){const _0xfde22=a89_0x3972;return _0x194031[_0xfde22(0x1df)](_0x18c330,_0x4581f9);},'FGvHU':function(_0x5c46db,_0x43f1b6){return _0x194031['KTakR'](_0x5c46db,_0x43f1b6);}},_0xec1df=null;if(_0x2070c2['statusCode']&&_0x194031['nFQLV'](_0x2070c2[_0x5a319e(0x1ee)],0x190)){const _0x396024=new Error('SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20'+_0x2070c2[_0x5a319e(0x1ee)]+_0x5a319e(0x153)+_0x3e229a);_0x396024['code']=_0x194031[_0x5a319e(0x216)],_0x396024['statusCode']=_0x2070c2[_0x5a319e(0x1ee)],logger['error'](util['format'](_0x194031['uOLKt'],_0x2070c2[_0x5a319e(0x1ee)])),PerformanceTester[_0x5a319e(0x15b)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],'HTTP\x20'+_0x2070c2[_0x5a319e(0x1ee)]),_0x2070c2[_0x5a319e(0x1a4)](),_0x2b32d5[_0x5a319e(0x150)](),fs[_0x5a319e(0x15e)](_0x14b9ea,()=>{}),_0x194031[_0x5a319e(0x1df)](_0x2b9cb3,_0x396024);return;}_0x2070c2[_0x5a319e(0x204)](_0x2b32d5),_0x2070c2['on'](_0x194031[_0x5a319e(0x19c)],function(_0x319356){const _0x5d6db9=_0x5a319e;logger[_0x5d6db9(0x211)](util[_0x5d6db9(0x162)](_0x11ad6c[_0x5d6db9(0x1e2)],_0x319356)),PerformanceTester[_0x5d6db9(0x15b)](PerformanceEvents[_0x5d6db9(0x173)],![],util[_0x5d6db9(0x162)](_0x319356)),_0x11ad6c[_0x5d6db9(0x1a0)](_0x2b9cb3,_0x319356);}),_0x2b32d5['on'](_0x194031['Rfkcn'],function(_0x2da689){const _0x339f08=_0x5a319e;logger[_0x339f08(0x211)](util[_0x339f08(0x162)](_0x194031[_0x339f08(0x1d7)],_0x2da689)),PerformanceTester[_0x339f08(0x15b)](PerformanceEvents[_0x339f08(0x173)],![],util[_0x339f08(0x162)](_0x2da689)),_0x194031['KTakR'](_0x2b9cb3,_0x2da689);}),CLIUtils['downloadFileStream'](_0x2b32d5,_0xec1df,_0x14b9ea,_0x5dee6d,_0x29281e=>{const _0x1fb354=_0x5a319e;PerformanceTester[_0x1fb354(0x15b)](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x194031[_0x1fb354(0x1df)](_0x276556,_0x29281e);},_0x312a3f=>{const _0x225627=_0x5a319e;PerformanceTester[_0x225627(0x15b)](PerformanceEvents[_0x225627(0x173)],![],util[_0x225627(0x162)](_0x312a3f)),_0x11ad6c[_0x225627(0x20a)](_0x2b9cb3,_0x312a3f);});})['on'](_0x23c1ae[_0x38e4e1(0x201)],function(_0x318766){const _0xca699a=_0x38e4e1;logger[_0xca699a(0x211)](_0xca699a(0x235)+util[_0xca699a(0x162)](_0x318766)),PerformanceTester[_0xca699a(0x15b)](PerformanceEvents[_0xca699a(0x173)],![],util['format'](_0x318766)),_0x23c1ae['wdCQc'](_0x2b9cb3,_0x318766);});});}catch(_0xb11286){PerformanceTester[_0x14d4a2(0x15b)](PerformanceEvents[_0x14d4a2(0x173)],![],util[_0x14d4a2(0x162)](_0xb11286)),logger[_0x14d4a2(0x211)](util[_0x14d4a2(0x162)](_0x23c1ae[_0x14d4a2(0x1da)],_0xb11286));throw _0xb11286;}};static['downloadFileStream'](_0x38d5fc,_0x41ae83,_0x3e5d11,_0x39ef58,_0x38af32,_0x3c150d){const _0x5b6aa6=a89_0x551c4b,_0x1aee2f={'SGxdH':function(_0x12b641,_0x462e54){return _0x12b641!==_0x462e54;},'sIyjD':_0x5b6aa6(0x1e3),'SmokT':function(_0x1f0bf0,_0x27ad28){return _0x1f0bf0(_0x27ad28);},'IavUc':function(_0x3d35f5,_0xb85383){return _0x3d35f5(_0xb85383);},'DReEQ':function(_0xbd5813,_0x1af74c){return _0xbd5813(_0x1af74c);},'OmmSj':'0755','JXFvx':function(_0x1a9cf8,_0x540975){return _0x1a9cf8(_0x540975);},'cYJhv':'close','uDcNB':_0x5b6aa6(0x15b),'fPizH':_0x5b6aa6(0x211),'sBHcT':_0x5b6aa6(0x19a)};_0x38d5fc['on'](_0x1aee2f[_0x5b6aa6(0x21e)],function(){const _0x36e3c2=_0x5b6aa6,_0x3d0e3d={'XKQbb':function(_0x47effc,_0x1135e3){return _0x1aee2f['SGxdH'](_0x47effc,_0x1135e3);},'UfERD':_0x1aee2f[_0x36e3c2(0x1e8)],'BylxU':function(_0x2fd0af,_0x23f770){const _0x2cfc99=_0x36e3c2;return _0x1aee2f[_0x2cfc99(0x206)](_0x2fd0af,_0x23f770);},'ZCipO':function(_0x178e1b,_0x1e1b79){const _0x1cb2c6=_0x36e3c2;return _0x1aee2f[_0x1cb2c6(0x164)](_0x178e1b,_0x1e1b79);},'ABXSA':function(_0x2a81cc,_0x292792){const _0x519f90=_0x36e3c2;return _0x1aee2f[_0x519f90(0x20f)](_0x2a81cc,_0x292792);},'mczcc':_0x1aee2f['OmmSj'],'YnNSn':function(_0x4326d4,_0x1bf247){const _0x2e53c1=_0x36e3c2;return _0x1aee2f[_0x2e53c1(0x1c9)](_0x4326d4,_0x1bf247);},'OZOxL':_0x1aee2f[_0x36e3c2(0x21e)],'AraBX':_0x1aee2f[_0x36e3c2(0x1af)],'HZaIm':_0x1aee2f[_0x36e3c2(0x184)],'TwwhC':function(_0x5f3a4c,_0x591093){return _0x1aee2f['JXFvx'](_0x5f3a4c,_0x591093);},'lYwao':_0x1aee2f['sBHcT']},_0x27a39b={};_0x27a39b[_0x36e3c2(0x172)]=!![],yauzl[_0x36e3c2(0x18f)](_0x3e5d11,_0x27a39b,function(_0x510327,_0x532af1){const _0x5a1509=_0x36e3c2,_0x510ba6={'Jrqfu':function(_0xc48842,_0x4f4295){const _0x5b1655=a89_0x3972;return _0x3d0e3d[_0x5b1655(0x214)](_0xc48842,_0x4f4295);},'yOMCv':_0x3d0e3d[_0x5a1509(0x22d)],'aZprY':_0x3d0e3d[_0x5a1509(0x1bd)],'fIoCk':function(_0x529d92,_0x275784){return _0x3d0e3d['XKQbb'](_0x529d92,_0x275784);},'wJKvQ':function(_0x1df649,_0x54979a){return _0x3d0e3d['YnNSn'](_0x1df649,_0x54979a);},'EyFxd':function(_0x37aba6,_0x43ee2a){const _0x4e630b=_0x5a1509;return _0x3d0e3d[_0x4e630b(0x214)](_0x37aba6,_0x43ee2a);},'tCbvZ':_0x3d0e3d[_0x5a1509(0x1f8)]};if(_0x510327){_0x3d0e3d[_0x5a1509(0x14e)](_0x3c150d,_0x510327);return;}_0x532af1['readEntry'](),_0x532af1['on'](_0x3d0e3d[_0x5a1509(0x156)],_0x322296=>{const _0x2cee25=_0x5a1509;if(/\/$/[_0x2cee25(0x22c)](_0x322296[_0x2cee25(0x1c5)])){_0x532af1['readEntry']();return;}!_0x41ae83&&(_0x41ae83=_0x322296[_0x2cee25(0x1c5)]);if(_0x510ba6[_0x2cee25(0x191)](_0x322296[_0x2cee25(0x1c5)],_0x41ae83))_0x532af1[_0x2cee25(0x1dd)]();else{const _0x24b4a8=_0x322296[_0x2cee25(0x1c5)],_0x3d0b6b=path[_0x2cee25(0x207)](_0x39ef58,_0x24b4a8+_0x2cee25(0x194)+process[_0x2cee25(0x165)]);let _0x5c2f9f;try{_0x5c2f9f=fs['createWriteStream'](_0x3d0b6b);}catch(_0x44b703){if(BINARY_BUSY_ERROR_CODES[_0x2cee25(0x168)](_0x44b703['code'])){const _0x4073a5=path['join'](_0x39ef58,_0x24b4a8);if(fs[_0x2cee25(0x23b)](_0x4073a5)){logger[_0x2cee25(0x1bc)](_0x2cee25(0x1e6)+_0x24b4a8),fs[_0x2cee25(0x15e)](_0x3e5d11,_0x499b85=>{const _0x20e847=_0x2cee25;_0x499b85&&logger[_0x20e847(0x1bc)](_0x20e847(0x157)+_0x3e5d11);}),_0x510ba6[_0x2cee25(0x1fc)](_0x38af32,_0x4073a5);return;}logger[_0x2cee25(0x1bc)](_0x2cee25(0x178)+_0x24b4a8);}_0x510ba6[_0x2cee25(0x236)](_0x3c150d,_0x44b703);return;}_0x5c2f9f['on'](_0x510ba6['tCbvZ'],_0x516bf2=>{const _0x203555=_0x2cee25;if(BINARY_BUSY_ERROR_CODES[_0x203555(0x168)](_0x516bf2['code'])){const _0x2f769b=path['join'](_0x39ef58,_0x24b4a8);_0x5c2f9f[_0x203555(0x1f7)](),fs['existsSync'](_0x2f769b)?(logger['warn']('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x516bf2['message']),_0x532af1[_0x203555(0x1f7)](),fs['unlink'](_0x3e5d11,_0x44e369=>{_0x44e369&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x3e5d11);}),_0x510ba6[_0x203555(0x237)](_0x38af32,_0x2f769b)):(logger[_0x203555(0x1bc)](_0x203555(0x1fa)+_0x516bf2[_0x203555(0x176)]),fs[_0x203555(0x15e)](_0x3d0b6b,()=>{}),_0x510ba6['Jrqfu'](_0x3c150d,_0x516bf2));}else fs[_0x203555(0x15e)](_0x3d0b6b,()=>{}),_0x510ba6[_0x203555(0x237)](_0x3c150d,_0x516bf2);}),_0x532af1[_0x2cee25(0x23a)](_0x322296,function(_0x5d9f28,_0x5002a4){const _0x51c3ae=_0x2cee25,_0x783936={};_0x783936['jvYEz']=_0x510ba6[_0x51c3ae(0x189)];const _0x1c0dda=_0x783936;if(_0x5d9f28){fs[_0x51c3ae(0x15e)](_0x3d0b6b,()=>{}),_0x510ba6[_0x51c3ae(0x237)](_0x3c150d,_0x5d9f28);return;}_0x5002a4['on'](_0x510ba6[_0x51c3ae(0x1ff)],function(){const _0x452699=_0x51c3ae;_0x5c2f9f[_0x452699(0x15b)](),_0x5c2f9f['on'](_0x1c0dda[_0x452699(0x1ca)],function(){_0x532af1['readEntry']();});}),_0x5002a4[_0x51c3ae(0x204)](_0x5c2f9f);});}}),_0x532af1['on'](_0x3d0e3d[_0x5a1509(0x1f8)],_0x1eec77=>{const _0x2df03f=_0x5a1509;_0x510ba6[_0x2df03f(0x1fc)](_0x3c150d,_0x1eec77);}),_0x532af1[_0x5a1509(0x181)](_0x3d0e3d[_0x5a1509(0x1bd)],()=>{const _0x197881=_0x5a1509,_0x368be0={'pkYWE':function(_0x3c2a55,_0x2be120){return _0x3d0e3d['XKQbb'](_0x3c2a55,_0x2be120);},'gWypb':_0x3d0e3d['UfERD'],'eqMIj':function(_0xbdf819,_0x3a9ba0){const _0x3e5535=a89_0x3972;return _0x3d0e3d[_0x3e5535(0x1fb)](_0xbdf819,_0x3a9ba0);},'obaxi':function(_0x46028f,_0x4a83a0){const _0x2f46b8=a89_0x3972;return _0x3d0e3d[_0x2f46b8(0x239)](_0x46028f,_0x4a83a0);},'bemnv':function(_0x1fd5a0,_0x216dff){const _0x4ea01d=a89_0x3972;return _0x3d0e3d[_0x4ea01d(0x18a)](_0x1fd5a0,_0x216dff);}};fs[_0x197881(0x15e)](_0x3e5d11,_0x3625f7=>{const _0x18e812=_0x197881;_0x3625f7&&logger['warn'](_0x18e812(0x157)+_0x3e5d11);});const _0x53dcc=path[_0x197881(0x207)](_0x39ef58,_0x41ae83+_0x197881(0x194)+process[_0x197881(0x165)]),_0xcdc1f6=path['join'](_0x39ef58,_0x41ae83);fs['chmod'](_0x53dcc,_0x3d0e3d[_0x197881(0x1d3)],function(_0x219e6c){const _0x6718a2=_0x197881;if(_0x219e6c){_0x532af1[_0x6718a2(0x1f7)](),fs[_0x6718a2(0x15e)](_0x53dcc,()=>{}),_0x510ba6['wJKvQ'](_0x3c150d,_0x219e6c);return;}fs[_0x6718a2(0x197)](_0x53dcc,_0xcdc1f6,function(_0x123761){const _0x457f86=_0x6718a2;if(_0x123761){if(_0x368be0['pkYWE'](_0x123761[_0x457f86(0x1d8)],_0x368be0[_0x457f86(0x1b4)])){_0x532af1[_0x457f86(0x1f7)](),fs[_0x457f86(0x15e)](_0x53dcc,()=>{}),_0x368be0[_0x457f86(0x1e9)](_0x3c150d,_0x123761);return;}logger[_0x457f86(0x1bc)](_0x457f86(0x19b)+_0x123761[_0x457f86(0x176)]);try{fs[_0x457f86(0x1ef)](_0x53dcc,_0xcdc1f6);}catch(_0x29aae){_0x532af1[_0x457f86(0x1f7)](),fs[_0x457f86(0x15e)](_0x53dcc,()=>{}),_0x368be0[_0x457f86(0x221)](_0x3c150d,_0x29aae);return;}fs['unlink'](_0x53dcc,_0x3a3665=>{const _0x5b72ae=_0x457f86;_0x3a3665&&logger[_0x5b72ae(0x1bc)](_0x5b72ae(0x20c)+_0x3a3665[_0x5b72ae(0x176)]);});}_0x532af1[_0x457f86(0x1f7)](),_0x368be0[_0x457f86(0x198)](_0x38af32,_0xcdc1f6);});});});});});}static[a89_0x551c4b(0x232)](){const _0x4e3d0b=a89_0x551c4b;if(process[_0x4e3d0b(0x1fd)][_0x4e3d0b(0x22f)])return JSON[_0x4e3d0b(0x23d)](process[_0x4e3d0b(0x1fd)][_0x4e3d0b(0x22f)]);return this[_0x4e3d0b(0x185)];}static[a89_0x551c4b(0x195)](){const _0x563d53=a89_0x551c4b;if(process[_0x563d53(0x1fd)][_0x563d53(0x18e)])return JSON[_0x563d53(0x23d)](process[_0x563d53(0x1fd)][_0x563d53(0x18e)]);return this[_0x563d53(0x1e7)];}static[a89_0x551c4b(0x159)](_0x1ed485,_0x4418c1){const _0x5bd8c2=a89_0x551c4b,_0x1a1ab8={'NeMFG':_0x5bd8c2(0x22b),'lasPt':function(_0x4f13fc,_0x2940e6){return _0x4f13fc(_0x2940e6);},'ESsoU':function(_0x39e55e,_0x58cf5c){return _0x39e55e(_0x58cf5c);},'GXkfj':function(_0x2dd819,_0x2664f4){return _0x2dd819||_0x2664f4;}},_0x1ed10e=_0x1a1ab8[_0x5bd8c2(0x220)][_0x5bd8c2(0x226)]('|');let _0x120adf=0x0;while(!![]){switch(_0x1ed10e[_0x120adf++]){case'0':this['automationFrameworkDetail']={'name':_0x4418c1,'version':_0x1a1ab8[_0x5bd8c2(0x1a1)](getFrameworkVersion,_0x4418c1)};continue;case'1':this[_0x5bd8c2(0x185)]={'name':_0x1ed485,'version':{[_0x1ed485]:_0x1a1ab8[_0x5bd8c2(0x1dc)](getFrameworkVersion,_0x1ed485)}};continue;case'2':process[_0x5bd8c2(0x1fd)][_0x5bd8c2(0x22f)]=JSON[_0x5bd8c2(0x17e)](this[_0x5bd8c2(0x185)]);continue;case'3':_0x1a1ab8['GXkfj'](!_0x1ed485,!_0x4418c1)&&logger[_0x5bd8c2(0x1b8)](_0x5bd8c2(0x1f3)+_0x1ed485+',\x20automationFramework='+_0x4418c1);continue;case'4':process[_0x5bd8c2(0x1fd)][_0x5bd8c2(0x18e)]=JSON['stringify'](this[_0x5bd8c2(0x1e7)]);continue;}break;}}static['getHookRegistryKey'](_0x2e63e1,_0xb059c9){return _0x2e63e1+':'+_0xb059c9;}static[a89_0x551c4b(0x183)](){const _0x51c447=a89_0x551c4b;return process[_0x51c447(0x165)]+':'+threadId;}static['shouldSkipSessionName'](_0x561981){const _0x316ca7=a89_0x551c4b;if(_0x561981[_0x316ca7(0x1c0)]&&_0x561981[_0x316ca7(0x1c0)][_0x316ca7(0x23c)])return!![];return![];}static[a89_0x551c4b(0x1b5)](_0x5e4ac6){const _0x32d803=a89_0x551c4b;if(_0x5e4ac6['testContextOptions']&&_0x5e4ac6[_0x32d803(0x1c0)][_0x32d803(0x1cc)])return!![];return![];}static['matchHookRegex'](_0x5b13cc){const _0x4a68ae=a89_0x551c4b,_0x4967d3=new RegExp(TestFrameworkConstants[_0x4a68ae(0x188)]);return _0x4967d3[_0x4a68ae(0x22c)](_0x5b13cc);}static[a89_0x551c4b(0x16b)](_0x37b041,_0x1c2bbe){const _0x257a5c=a89_0x551c4b,_0xffcb2c={};_0xffcb2c[_0x257a5c(0x161)]=function(_0x1602bf,_0x709298){return _0x1602bf!==_0x709298;},_0xffcb2c[_0x257a5c(0x1d1)]=function(_0x19c007,_0x31f4a){return _0x19c007===_0x31f4a;},_0xffcb2c[_0x257a5c(0x229)]=_0x257a5c(0x1a2);const _0x9e34f6=_0xffcb2c;for(const [_0x20700f,_0x14d4b9]of Object['entries'](_0x1c2bbe)){if(_0x9e34f6[_0x257a5c(0x161)](_0x14d4b9,null)&&_0x9e34f6[_0x257a5c(0x1d1)](typeof _0x14d4b9,_0x9e34f6['qLbQm'])&&!Array[_0x257a5c(0x15a)](_0x14d4b9))_0x37b041[_0x20700f]=this[_0x257a5c(0x16b)](_0x37b041[_0x20700f]||{},_0x14d4b9);else Array[_0x257a5c(0x15a)](_0x14d4b9)?_0x37b041[_0x20700f]=(_0x37b041[_0x20700f]||[])[_0x257a5c(0x16d)](_0x14d4b9):_0x37b041[_0x20700f]=_0x14d4b9;}return _0x37b041;}}module['exports']=CLIUtils;function a89_0x26c2(){const _0x40203e=['./state/automationFrameworkState.js','lazyEntries','SDK_CLI_DOWNLOAD','downloaded_file_','listen','message','../../helpers/performance/constants','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','8045yLdDQm','3736pZEBOv','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','getWritableDir','stringify','binary-','XMFWm','once','qmyqr','getCurrentInstanceName','fPizH','testFrameworkDetail','BROWSERSTACK_CLI_ENV','919993cpnFeA','HOOK_REGEX','yOMCv','ABXSA','pKDEK','Binary\x20is\x20busy:\x20','../../helpers/utilities','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','open','getSdkVersion','fIoCk','lflXW','./instances/testFrameworkInstance.js','.tmp.','getAutomationFrameworkDetail','node','rename','bemnv','map','entry','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','Rfkcn','pcvrP','IPCcc','Folder\x20','TrCmb','lasPt','object','.browserstack','resume','zznAZ','vFGeW','CLI\x20version\x20found\x20despite\x20error:\x20\x22','get','444831xcqNdh','bcpRa','24QBCTQG','length','cwd','getSdkLanguage','uDcNB','requestToUpdateCLI','development','aMfFS','response\x20','gWypb','shouldSkipSessionStatus','wdCQc','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','debug','getCliDir','url','../../helpers/helper','warn','AraBX','ZbKHA','child_process','testContextOptions','worker_threads','2744808WgSbjE','path','mnnrB','fileName','SDK_CLI_CHECK_UPDATE','runShellCommand','isBinaryBusy','JXFvx','jvYEz','PPlMf','skipSessionStatus','YpZst','cli','GET','info','OOVaJ','BROWSERSTACK_BINARY_URL','mczcc','./state/testFrameworkState.js','Downloading\x20SDK\x20binary\x20from:\x20','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','eaomO','code','reduce','MPTjq','start','ESsoU','readEntry','getCLIParamsForDevEnv','KTakR','RytCX','timeout','hdeqQ','EXDEV','Current\x20CLI\x20Path\x20Found:\x20','SHELL_EXECUTE_ERROR','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','automationFrameworkDetail','sIyjD','eqMIj','platform','BUlwq','setupCliPath','Configuring\x20Cli\x20path.','statusCode','copyFileSync','rKjvQ','MpTZi','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','mtime','Muwnt','basename','close','HZaIm','trim','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','BylxU','wJKvQ','env','../utils/apiUtilityMethods.js','aZprY','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','dtceq','hNrkF','hbNZu','pipe','isFile','SmokT','join','data','follow-redirects','FGvHU','Error\x20while\x20reading\x20CLI\x20path:\x20','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','10449270aCslpQ','DReEQ','dsyzv','error','KWvEK','.zip','YnNSn','statSync','COXlv','yauzl','DOWNLOAD_HTTP','DJJne','EOYEM','filePath','53370738UZIWDV','NckBi','cYJhv','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','NeMFG','obaxi','10mCjmne','OoAaB','zoFXd','Resolving\x20with\x20stdout:\x20\x22','split','version','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','qLbQm','Development\x20Cli\x20Path:\x20','3|1|0|4|2','test','OZOxL','downloadLatestBinary','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','../../helpers/performance/performance-tester.js','.sock','getTestFrameworkDetail','Resolved\x20binary\x20path:\x20','GAInt','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','EyFxd','Jrqfu','FLAGU','ZCipO','openReadStream','existsSync','skipSessionName','parse','isDirectory','TwwhC','../utils/constants','destroy','QRKCW','4046378RSHoyl','\x20from\x20','zPWqH','util','lYwao','Failed\x20to\x20delete\x20zip\x20file:\x20','arch','setFrameworkDetail','isArray','end','PkcIb','cli_version','unlink','unix:/tmp/sdk-platform-','GTqao','rZXyz','format','SDK_CLI_BIN_PATH','IavUc','pid','Setting\x20required\x20permissions\x20to\x20','getExistingCliPath','includes','./framework/constants/testFrameworkConstants.js','Folder\x20does\x20not\x20exist:\x20','mergeObject','isDevelopmentEnv','concat','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','startsWith','checkAndUpdateCli'];a89_0x26c2=function(){return _0x40203e;};return a89_0x26c2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a90_0x1ce34e=a90_0x1331;function a90_0x1331(_0x3937cd,_0x55d36b){const _0x4fac88=a90_0x4fac();return a90_0x1331=function(_0x133154,_0x20dac3){_0x133154=_0x133154-0xe1;let _0x2720cb=_0x4fac88[_0x133154];return _0x2720cb;},a90_0x1331(_0x3937cd,_0x55d36b);}(function(_0x454117,_0x5aecb6){const _0x51e8c4=a90_0x1331,_0x58be38=_0x454117();while(!![]){try{const _0x5d498e=parseInt(_0x51e8c4(0xe1))/0x1+-parseInt(_0x51e8c4(0x149))/0x2*(parseInt(_0x51e8c4(0x158))/0x3)+-parseInt(_0x51e8c4(0xe8))/0x4*(-parseInt(_0x51e8c4(0x136))/0x5)+parseInt(_0x51e8c4(0x106))/0x6+-parseInt(_0x51e8c4(0x134))/0x7+parseInt(_0x51e8c4(0x13b))/0x8*(parseInt(_0x51e8c4(0x16c))/0x9)+parseInt(_0x51e8c4(0x110))/0xa*(-parseInt(_0x51e8c4(0x137))/0xb);if(_0x5d498e===_0x5aecb6)break;else _0x58be38['push'](_0x58be38['shift']());}catch(_0x4b9f16){_0x58be38['push'](_0x58be38['shift']());}}}(a90_0x4fac,0x2f466));function a90_0x4fac(){const _0x5b7d85=['./cliUtils','getBuildTagsFilePath','kXyDe','9aaCVNu','clearTags','JDTFI','OJyXP','374310nEIXyr','keys','Wgbde','POST','XAObk','field_type','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','8ojxFns','./framework/constants/testFrameworkConstants','stringify','setTestDetails','_testInternals','SRRou','BZowS','kXFYH','getAllData','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','./modules/testhubModule','unlinkSync','KEY_TEST_ID','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','trim','tmpdir','currentTest','getTestFramework','string','getInstance','testLevelTags','getTrackedInstance','MbWuk','psHbP','ms)\x20','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','sJqZo','setCustomTags','1112034jvNtTq','izBfz','buildLevelTags','entries','./browserstackCLI','jest','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','modules','__workerDetails','UbtOT','5260WkMIYK','promises','parse','wEqzF','BUILD_TAG_FILE_PREFIX','./TestInfo','cNBCr','SekMI','QCEuY','mergeValues','get','BROWSERSTACK_TESTHUB_UUID','null','getCurrentTestUUID','Rsnad','resolveInstance','WQLFV','utf8','getBuildTagsRunId','fXlyj','.json','xVSUl','filter','hxtjK','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','getTestUUID','now',',\x20values=','includes','join','env',',\x20key=','nNZbK','toObject','__jestCurrentTestIdentifier','getTestFrameworkDetail','2448173EZKjqf','gpstR','244015GDvbUQ','44IJPKxt','debug',':jest-','message','2121992SksIMu','addMultipleEntries','mtimeMs','buildHashedId','getTestDetails','./state/hookState','./state/testFrameworkState','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','endsWith','../../helpers/classLogger','length','KEY_CUSTOM_TAGS','TEST','4166lWBxAP','VCGTx','isArray','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','QbROR','uTpGP','startsWith','mergeIntoTags','exports','tUsmI','aggregateBuildLevelTagsFromTmp','values','BsnSe','getTestLevelTags','bstack_build_tags_','543NowhrS','readdirSync','from','FNFIA','pid','oDMXL','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','gQFvO','getBuildLevelTags','function',',\x20finalTags=','name','yhOyJ','retry','MODULE_NAME','getState','mergeBuildLevelTags'];a90_0x4fac=function(){return _0x5b7d85;};return a90_0x4fac();}const fs=require('fs'),os=require('os'),path=require('path'),helper=require('../../helpers/helper'),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a90_0x1ce34e(0xe9)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a90_0x1ce34e(0x115)),TestHubModule=require(a90_0x1ce34e(0xf4)),{createClassLogger}=require(a90_0x1ce34e(0x145)),logger=createClassLogger('CustomTagManager'),BUILD_TAG_FILE_PREFIX=a90_0x1ce34e(0x157);function getBuildTagsRunId(){const _0x53fd1d=a90_0x1ce34e,_0x1c60e2={};_0x1c60e2[_0x53fd1d(0x107)]=function(_0x5797ae,_0x11cf8f){return _0x5797ae===_0x11cf8f;},_0x1c60e2[_0x53fd1d(0x11e)]=_0x53fd1d(0x11c);const _0x4183b1=_0x1c60e2,_0x2cb104=process[_0x53fd1d(0x12e)][_0x53fd1d(0x11b)];if(!_0x2cb104||_0x4183b1['izBfz'](_0x2cb104,_0x4183b1[_0x53fd1d(0x11e)]))return null;return _0x2cb104;}function getBuildTagsFilePath(_0x40cf61){const _0x2540ed=a90_0x1ce34e;return path[_0x2540ed(0x12d)](os[_0x2540ed(0xf9)](),''+BUILD_TAG_FILE_PREFIX+_0x40cf61+'_'+process[_0x2540ed(0x15c)]+_0x2540ed(0x124));}class CustomTagManager{static [a90_0x1ce34e(0x108)]={};static [a90_0x1ce34e(0xfe)]={};static['mergeValues'](_0x43fe67,_0xf0eb4c){const _0x470b94=a90_0x1ce34e;return Array[_0x470b94(0x15a)](new Set([..._0x43fe67||[],..._0xf0eb4c||[]]));}static[a90_0x1ce34e(0x150)](_0x30f20c,_0x4cec21,_0x1f166c){const _0x508488=a90_0x1ce34e,_0x14728e={};_0x14728e[_0x508488(0x16b)]='multi_dropdown';const _0x2c4eb5=_0x14728e;if(!_0x30f20c[_0x4cec21]){const _0x152777={};_0x152777['field_type']=_0x2c4eb5[_0x508488(0x16b)],_0x152777[_0x508488(0x154)]=[..._0x1f166c||[]],_0x30f20c[_0x4cec21]=_0x152777;}else!_0x30f20c[_0x4cec21]['field_type']&&(_0x30f20c[_0x4cec21][_0x508488(0xe6)]=_0x2c4eb5[_0x508488(0x16b)]),!Array[_0x508488(0x14b)](_0x30f20c[_0x4cec21][_0x508488(0x154)])&&(_0x30f20c[_0x4cec21][_0x508488(0x154)]=[]),_0x30f20c[_0x4cec21][_0x508488(0x154)]=CustomTagManager[_0x508488(0x119)](_0x30f20c[_0x4cec21][_0x508488(0x154)],_0x1f166c);return _0x30f20c;}static async[a90_0x1ce34e(0x105)](_0x223d74,_0x56311d,_0x338750=![]){const _0x491d19=a90_0x1ce34e,_0x55a31e={'Wgbde':function(_0x2603cd,_0x3cd90d){return _0x2603cd!==_0x3cd90d;},'XAObk':_0x491d19(0xfc),'BZowS':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','wEqzF':_0x491d19(0x14c),'QCEuY':function(_0x7ede04,_0x7a586){return _0x7ede04===_0x7a586;},'ADQtk':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','lucUr':_0x491d19(0xf7),'gQFvO':function(_0x2b8771,_0x50bfb7){return _0x2b8771(_0x50bfb7);},'fXlyj':_0x491d19(0x10a),'WQLFV':function(_0x369bf5){return _0x369bf5();},'GFHGd':'multi_dropdown','MbWuk':function(_0x22664f,_0x4c074d){return _0x22664f>_0x4c074d;},'kXFYH':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','VCGTx':_0x491d19(0x139),'psHbP':function(_0x184149,_0x458eb2){return _0x184149(_0x458eb2);},'UbtOT':_0x491d19(0x169),'QbROR':function(_0x45ad73,_0xf573f){return _0x45ad73===_0xf573f;},'hxtjK':_0x491d19(0x10b),'cNBCr':_0x491d19(0x103),'vRtuw':function(_0x2ecb52,_0x13fb6e){return _0x2ecb52(_0x13fb6e);},'oDMXL':_0x491d19(0x10c),'tUsmI':function(_0x10343c,_0x52c391){return _0x10343c(_0x52c391);},'gpstR':_0x491d19(0x141),'BsnSe':_0x491d19(0x140),'sJqZo':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','SRRou':function(_0x328056,_0x462aa2){return _0x328056(_0x462aa2);},'uTpGP':_0x491d19(0x161)};if(_0x55a31e[_0x491d19(0xe3)](typeof _0x223d74,_0x55a31e[_0x491d19(0xe5)])){logger[_0x491d19(0x138)](_0x55a31e[_0x491d19(0xee)]);return;}if(_0x55a31e[_0x491d19(0xe3)](typeof _0x56311d,_0x55a31e[_0x491d19(0xe5)])){logger[_0x491d19(0x138)](_0x55a31e[_0x491d19(0x113)]);return;}if(_0x55a31e[_0x491d19(0x118)](_0x223d74[_0x491d19(0xf8)](),'')){logger[_0x491d19(0x138)](_0x55a31e['ADQtk']);return;}if(_0x55a31e['QCEuY'](_0x56311d['trim'](),'')){logger[_0x491d19(0x138)](_0x55a31e['lucUr']);return;}const _0x14f691=helper['parseCommaSeparatedValues'](_0x56311d);if(_0x338750){const _0x4d8f28=_0x55a31e[_0x491d19(0x15f)](require,_0x55a31e['fXlyj']),_0x49e64e=_0x4d8f28[_0x491d19(0xfd)](),_0x3f4346=_0x49e64e&&_0x49e64e[_0x491d19(0x10d)][TestHubModule[_0x491d19(0x166)]];if(_0x3f4346){const _0x82cd52=_0x3f4346?.['testhubConfig']?.[_0x491d19(0x131)]()?.[_0x491d19(0x13e)];TestInfo[_0x491d19(0x129)](_0x82cd52);const _0x36835d=TestInfo[_0x491d19(0x13f)](_0x82cd52),_0x5732ef=_0x36835d[TestFrameworkConstants[_0x491d19(0x147)]]||{};CustomTagManager[_0x491d19(0x150)](_0x5732ef,_0x223d74,_0x14f691),_0x36835d[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x5732ef,TestInfo[_0x491d19(0xeb)](_0x82cd52,_0x36835d);!this[_0x491d19(0x108)][_0x82cd52]&&(this[_0x491d19(0x108)][_0x82cd52]={});this[_0x491d19(0x108)][_0x82cd52][_0x223d74]=CustomTagManager[_0x491d19(0x119)](this[_0x491d19(0x108)][_0x82cd52][_0x223d74],_0x14f691);try{const _0x41356e=_0x55a31e[_0x491d19(0x120)](getBuildTagsRunId);if(_0x41356e){const _0x58a1af={};for(const [_0xe87ef2,_0x3b61ad]of Object[_0x491d19(0x109)](this['buildLevelTags'][_0x82cd52]||{})){_0x58a1af[_0xe87ef2]={'field_type':_0x55a31e['GFHGd'],'values':Array[_0x491d19(0x14b)](_0x3b61ad)?[..._0x3b61ad]:[]};}_0x55a31e[_0x491d19(0x100)](Object[_0x491d19(0xe2)](_0x58a1af)[_0x491d19(0x146)],0x0)&&await fs[_0x491d19(0x111)]['writeFile'](_0x55a31e[_0x491d19(0x15f)](getBuildTagsFilePath,_0x41356e),JSON[_0x491d19(0xea)](_0x58a1af));}else logger[_0x491d19(0x138)](_0x55a31e[_0x491d19(0xef)]);}catch(_0x399be4){logger[_0x491d19(0x138)](_0x491d19(0x15e)+(_0x399be4&&_0x399be4['message']?_0x399be4['message']:_0x399be4));}}}else{let _0x4bb7b8;const _0x504d1a=global[_0x491d19(0x132)];let _0x586571=![];if(_0x504d1a&&_0x504d1a[_0x491d19(0x12c)](_0x55a31e[_0x491d19(0x14a)]))_0x586571=!![],_0x4bb7b8=_0x504d1a;else try{const _0x27b8ae=_0x55a31e[_0x491d19(0x101)](require,_0x55a31e[_0x491d19(0x10f)]),_0x542199=_0x55a31e[_0x491d19(0x15f)](require,_0x55a31e[_0x491d19(0x123)]);if(_0x542199[_0x491d19(0xfd)]()['isRunning']()){const _0x17746e=_0x27b8ae[_0x491d19(0x133)]();if(_0x55a31e[_0x491d19(0x14d)](_0x17746e?.[_0x491d19(0x163)]?.['toLowerCase'](),_0x55a31e[_0x491d19(0x127)])){const _0x55b317=AutomationFramework[_0x491d19(0xff)]();_0x4bb7b8=AutomationFramework['getState'](_0x55b317,PlaywrightDriverModule[_0x491d19(0xf6)],''),_0x4bb7b8&&_0x4bb7b8[_0x491d19(0x12c)](_0x55a31e['VCGTx'])&&(_0x586571=!![]);}}}catch(_0x251ff1){logger['debug']('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x251ff1);}if(_0x586571){if(!_0x4bb7b8)throw new Error(_0x55a31e[_0x491d19(0x116)]);const _0x5a31b2=_0x55a31e['vRtuw'](require,_0x55a31e[_0x491d19(0x123)]),_0x335b40=_0x5a31b2[_0x491d19(0xfd)]()['getTestFramework']();if(!_0x335b40)throw new Error(_0x55a31e[_0x491d19(0x15d)]);const _0x142eb2=_0x55a31e[_0x491d19(0x152)](require,_0x55a31e[_0x491d19(0x135)]),_0x535e00=_0x55a31e['gQFvO'](require,_0x55a31e[_0x491d19(0x155)]),_0x922d68=_0x335b40[_0x491d19(0x11f)](_0x142eb2[_0x491d19(0x148)],_0x535e00[_0x491d19(0xe4)]);if(!_0x922d68)throw new Error(_0x55a31e[_0x491d19(0x104)]);const _0x12d5d5=_0x922d68[_0x491d19(0xf0)]()[_0x491d19(0x11a)](_0x4bb7b8)||{},_0x5518ff=_0x12d5d5[TestFrameworkConstants[_0x491d19(0x147)]]||{};logger[_0x491d19(0x138)](_0x491d19(0xf1)+_0x4bb7b8+_0x491d19(0x12f)+_0x223d74+_0x491d19(0x12b)+JSON[_0x491d19(0xea)](_0x14f691)+',\x20existingTags='+JSON[_0x491d19(0xea)](_0x5518ff)),CustomTagManager[_0x491d19(0x150)](_0x5518ff,_0x223d74,_0x14f691),logger['debug'](_0x491d19(0xf3)+_0x223d74+'\x20->\x20values='+JSON[_0x491d19(0xea)](_0x5518ff[_0x223d74][_0x491d19(0x154)]));const _0x130ecb={[TestFrameworkConstants[_0x491d19(0x147)]]:_0x5518ff},_0x1867d5={};_0x1867d5[_0x4bb7b8]=_0x130ecb,_0x922d68[_0x491d19(0x13c)](_0x1867d5),logger[_0x491d19(0x138)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x4bb7b8+_0x491d19(0x162)+JSON['stringify'](_0x5518ff)),!this['testLevelTags'][_0x4bb7b8]&&(this[_0x491d19(0xfe)][_0x4bb7b8]={}),this[_0x491d19(0xfe)][_0x4bb7b8][_0x223d74]=CustomTagManager[_0x491d19(0x119)](this[_0x491d19(0xfe)][_0x4bb7b8][_0x223d74],_0x14f691);}else{const _0x46c7e1=global[_0x491d19(0x10e)]?.[_0x491d19(0xfa)]?.['testInfo'];if(!_0x46c7e1){const _0x3624ad=AutomationFramework[_0x491d19(0xff)]();_0x4bb7b8=AutomationFramework[_0x491d19(0x167)](_0x3624ad,PlaywrightDriverModule['KEY_TEST_ID'],'');if(!_0x4bb7b8)try{const _0x4af177=_0x55a31e[_0x491d19(0xed)](require,_0x55a31e[_0x491d19(0x123)]),_0x6d13f6=_0x4af177[_0x491d19(0xfd)](),_0x4bc27a=_0x6d13f6&&_0x6d13f6[_0x491d19(0xfb)]();_0x4bb7b8=_0x4bc27a&&_0x55a31e[_0x491d19(0x118)](typeof _0x4bc27a[_0x491d19(0x11d)],_0x55a31e[_0x491d19(0x14e)])&&_0x4bc27a[_0x491d19(0x11d)]()||_0x4bb7b8;}catch(_0x1504e0){logger[_0x491d19(0x138)]('CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20'+(_0x1504e0&&_0x1504e0[_0x491d19(0x13a)]));}}else _0x4bb7b8=TestInfo['getTestIdentifierFromTestInfo'](_0x46c7e1,_0x46c7e1[_0x491d19(0x165)]);const _0x561a9c=TestInfo[_0x491d19(0x13f)](_0x4bb7b8),_0x14533a=_0x561a9c[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x491d19(0x150)](_0x14533a,_0x223d74,_0x14f691),_0x561a9c[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x14533a,TestInfo[_0x491d19(0xeb)](_0x4bb7b8,_0x561a9c),!this[_0x491d19(0xfe)][_0x4bb7b8]&&(this[_0x491d19(0xfe)][_0x4bb7b8]={}),this[_0x491d19(0xfe)][_0x4bb7b8][_0x223d74]=CustomTagManager[_0x491d19(0x119)](this['testLevelTags'][_0x4bb7b8][_0x223d74],_0x14f691);}}}static[a90_0x1ce34e(0x160)](){const _0x2474bc=a90_0x1ce34e,_0x57bb73={...this[_0x2474bc(0x108)]};return _0x57bb73;}static[a90_0x1ce34e(0x156)](){const _0x46b39d={...this['testLevelTags']};return _0x46b39d;}static[a90_0x1ce34e(0x16d)](){const _0x1c4c46=a90_0x1ce34e;this[_0x1c4c46(0x108)]={},this[_0x1c4c46(0xfe)]={};}static['mergeBuildLevelTags'](_0x4332db,_0xc08f9c){const _0x2d89ed=a90_0x1ce34e,_0x5a97fd={};_0x5a97fd[_0x2d89ed(0x16f)]=function(_0x1d1ff9,_0x3c1351){return _0x1d1ff9||_0x3c1351;};const _0x2b4ec7=_0x5a97fd;if(!_0x4332db)return;!this['buildLevelTags'][_0x4332db]&&(this[_0x2d89ed(0x108)][_0x4332db]={});for(const [_0x65a57e,_0x2447a4]of Object['entries'](_0x2b4ec7['OJyXP'](_0xc08f9c,{}))){if(!_0x2447a4||!Array[_0x2d89ed(0x14b)](_0x2447a4[_0x2d89ed(0x154)]))continue;this[_0x2d89ed(0x108)][_0x4332db][_0x65a57e]=CustomTagManager['mergeValues'](this['buildLevelTags'][_0x4332db][_0x65a57e],_0x2447a4[_0x2d89ed(0x154)]);}}static[a90_0x1ce34e(0x153)](_0x24a45b,_0x1f10ee){const _0x56cf6a=a90_0x1ce34e,_0x1bfe4f={};_0x1bfe4f[_0x56cf6a(0x130)]='CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate',_0x1bfe4f[_0x56cf6a(0x164)]=function(_0xbd2f86,_0x57f41c){return _0xbd2f86*_0x57f41c;},_0x1bfe4f['zhkXQ']=function(_0x12dd17,_0x2065e6){return _0x12dd17*_0x2065e6;},_0x1bfe4f['xVSUl']=function(_0x255dc6,_0x2a8556){return _0x255dc6*_0x2a8556;},_0x1bfe4f[_0x56cf6a(0x16e)]=function(_0x2955df,_0x8cb74f){return _0x2955df>_0x8cb74f;},_0x1bfe4f[_0x56cf6a(0x15b)]=function(_0x208ed1,_0x1f73cc){return _0x208ed1-_0x1f73cc;},_0x1bfe4f[_0x56cf6a(0x117)]=_0x56cf6a(0x121);const _0x11689d=_0x1bfe4f;if(!_0x24a45b)return logger[_0x56cf6a(0x138)](_0x11689d[_0x56cf6a(0x130)]),0x0;let _0x2a9c86;try{_0x2a9c86=os[_0x56cf6a(0xf9)]();}catch(_0x5c5cf3){return logger[_0x56cf6a(0x138)](_0x56cf6a(0x128)+_0x5c5cf3),0x0;}let _0xe7c5ea;try{_0xe7c5ea=fs[_0x56cf6a(0x159)](_0x2a9c86);}catch(_0x513df1){return logger[_0x56cf6a(0x138)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20'+_0x513df1),0x0;}const _0x4a1bc8=''+BUILD_TAG_FILE_PREFIX+_0x24a45b+'_',_0x3047ea=_0xe7c5ea[_0x56cf6a(0x126)](_0x513a4c=>_0x513a4c[_0x56cf6a(0x14f)](_0x4a1bc8)&&_0x513a4c[_0x56cf6a(0x144)](_0x56cf6a(0x124))),_0x58803f=_0x11689d[_0x56cf6a(0x164)](_0x11689d['zhkXQ'](_0x11689d[_0x56cf6a(0x125)](0x2,0x3c),0x3c),0x3e8);let _0x1925d4=0x0;for(const _0x4ed0b3 of _0x3047ea){const _0x3c56aa=path[_0x56cf6a(0x12d)](_0x2a9c86,_0x4ed0b3);try{const _0x1e5a5c=fs['statSync'](_0x3c56aa);if(_0x11689d[_0x56cf6a(0x16e)](_0x11689d[_0x56cf6a(0x15b)](Date[_0x56cf6a(0x12a)](),_0x1e5a5c[_0x56cf6a(0x13d)]),_0x58803f)){logger[_0x56cf6a(0x138)](_0x56cf6a(0xf2)+_0x58803f+_0x56cf6a(0x102)+_0x4ed0b3);try{fs[_0x56cf6a(0xf5)](_0x3c56aa);}catch(_0x420019){logger[_0x56cf6a(0x138)](_0x56cf6a(0x142)+_0x4ed0b3+':\x20'+(_0x420019&&_0x420019[_0x56cf6a(0x13a)]?_0x420019[_0x56cf6a(0x13a)]:_0x420019));}continue;}const _0x1d0018=fs['readFileSync'](_0x3c56aa,_0x11689d[_0x56cf6a(0x117)]),_0x1a0949=JSON[_0x56cf6a(0x112)](_0x1d0018);this[_0x56cf6a(0x168)](_0x1f10ee,_0x1a0949),_0x1925d4+=0x1;}catch(_0x5b3327){logger[_0x56cf6a(0x138)](_0x56cf6a(0xe7)+_0x4ed0b3+':\x20'+(_0x5b3327&&_0x5b3327[_0x56cf6a(0x13a)]?_0x5b3327[_0x56cf6a(0x13a)]:_0x5b3327));}try{fs[_0x56cf6a(0xf5)](_0x3c56aa);}catch(_0x460011){logger[_0x56cf6a(0x138)](_0x56cf6a(0x143)+_0x4ed0b3+':\x20'+(_0x460011&&_0x460011[_0x56cf6a(0x13a)]?_0x460011['message']:_0x460011));}}return _0x1925d4;}}const a90_0x46c1d5={};a90_0x46c1d5[a90_0x1ce34e(0x122)]=getBuildTagsRunId,a90_0x46c1d5[a90_0x1ce34e(0x16a)]=getBuildTagsFilePath,a90_0x46c1d5[a90_0x1ce34e(0x114)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a90_0x1ce34e(0xec)]=a90_0x46c1d5,module[a90_0x1ce34e(0x151)]=CustomTagManager;
|
|
1
|
+
'use strict';const a90_0x3d349f=a90_0x386e;(function(_0x3602d1,_0x23c38c){const _0x35c9c0=a90_0x386e,_0x4b40ab=_0x3602d1();while(!![]){try{const _0x2f9e06=parseInt(_0x35c9c0(0x107))/0x1+parseInt(_0x35c9c0(0x138))/0x2*(parseInt(_0x35c9c0(0xee))/0x3)+-parseInt(_0x35c9c0(0xd7))/0x4*(parseInt(_0x35c9c0(0xc9))/0x5)+-parseInt(_0x35c9c0(0xd5))/0x6+parseInt(_0x35c9c0(0xdb))/0x7*(-parseInt(_0x35c9c0(0xfb))/0x8)+parseInt(_0x35c9c0(0x12e))/0x9+-parseInt(_0x35c9c0(0x145))/0xa*(-parseInt(_0x35c9c0(0x135))/0xb);if(_0x2f9e06===_0x23c38c)break;else _0x4b40ab['push'](_0x4b40ab['shift']());}catch(_0x45afd6){_0x4b40ab['push'](_0x4b40ab['shift']());}}}(a90_0x4f5b,0x1a1a5));function a90_0x386e(_0x45da14,_0x3c3f6f){const _0x4f5b0b=a90_0x4f5b();return a90_0x386e=function(_0x386e89,_0x4114a4){_0x386e89=_0x386e89-0xc3;let _0x31ddf2=_0x4f5b0b[_0x386e89];return _0x31ddf2;},a90_0x386e(_0x45da14,_0x3c3f6f);}const fs=require('fs'),os=require('os'),path=require(a90_0x3d349f(0x104)),helper=require(a90_0x3d349f(0xe0)),AutomationFramework=require(a90_0x3d349f(0xc3)),TestFrameworkConstants=require(a90_0x3d349f(0x112)),PlaywrightDriverModule=require(a90_0x3d349f(0x102)),TestInfo=require('./TestInfo'),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a90_0x3d349f(0x137)),BUILD_TAG_FILE_PREFIX=a90_0x3d349f(0xc6);function getBuildTagsRunId(){const _0x5af221=a90_0x3d349f,_0x173e35={};_0x173e35[_0x5af221(0xfe)]=function(_0x152071,_0x11d68a){return _0x152071===_0x11d68a;},_0x173e35[_0x5af221(0xe6)]=_0x5af221(0xf7);const _0x34c8d0=_0x173e35,_0x3cd378=process[_0x5af221(0x123)]['BROWSERSTACK_TESTHUB_UUID'];if(!_0x3cd378||_0x34c8d0['kZVqW'](_0x3cd378,_0x34c8d0[_0x5af221(0xe6)]))return null;return _0x3cd378;}function a90_0x4f5b(){const _0x19187a=['toObject','RmJZA','UhBRb','message','mergeValues','currentTest','getTestLevelTags','null','\x20->\x20values=',',\x20values=','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','26224skdBrg','now','NCtWE','kZVqW','jFwYJ','exports','testLevelTags','./modules/playwrightDriverModule','toLowerCase','path','icNKc','./state/hookState','52061nyVLSt','startsWith','__workerDetails','testhubConfig','mtimeMs','JsNsY','get','RqcxK','getInstance','buildLevelTags','readdirSync','./framework/constants/testFrameworkConstants','KEY_TEST_ID','_testInternals','KEY_CUSTOM_TAGS','addMultipleEntries','retry','getTestFramework','mergeIntoTags','debug','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','trim','string','KJiWn','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','getBuildTagsRunId','filter','name','env','slwBT','getState','parseCommaSeparatedValues','__jestCurrentTestIdentifier','function','join','MODULE_NAME','promises','getTrackedInstance','ms)\x20','1025586qfttQl','setTestDetails','XuNLx','modules','bfYSV','from','PkgoG','21703bAbLSc','mgSnv','CustomTagManager','4934WySnxB','getBuildTagsFilePath','POST','stringify','VIQXB','./state/testFrameworkState','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','entries','tmpdir','utf8','fUKvn','unlinkSync','getTestUUID','870WIkkXr','isArray','./framework/automationFramework',',\x20finalTags=','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','bstack_build_tags_','zmTzZ','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','10910AijaBL','DeLQg','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','jest','clearTags','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','statSync','getCurrentTestUUID','buildHashedId','uKrTh','NoLTI','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','1171950NdLKhe','fFajw','44BaGcxH','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','cVOwt','getTestDetails','56SHHRKq','TEST','mergeBuildLevelTags','.json','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','../../helpers/helper','writeFile','QNWbf','./cliUtils','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','osscg','wNpdi','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','includes','fnZYO','isRunning','fbJGa','multi_dropdown','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','18VZVDyY','values'];a90_0x4f5b=function(){return _0x19187a;};return a90_0x4f5b();}function getBuildTagsFilePath(_0x474c7f){const _0x28ab44=a90_0x3d349f;return path['join'](os[_0x28ab44(0x140)](),''+BUILD_TAG_FILE_PREFIX+_0x474c7f+'_'+process['pid']+_0x28ab44(0xde));}class CustomTagManager{static [a90_0x3d349f(0x110)]={};static ['testLevelTags']={};static[a90_0x3d349f(0xf4)](_0x149fd5,_0x4b2376){const _0x5b19c7=a90_0x3d349f;return Array[_0x5b19c7(0x133)](new Set([..._0x149fd5||[],..._0x4b2376||[]]));}static[a90_0x3d349f(0x119)](_0x1d6ac0,_0x56ba69,_0x245353){const _0x5abb6b=a90_0x3d349f,_0x2fcdad={};_0x2fcdad[_0x5abb6b(0xfd)]=_0x5abb6b(0xec);const _0xcf4fe9=_0x2fcdad;if(!_0x1d6ac0[_0x56ba69]){const _0x16c803={};_0x16c803['field_type']=_0xcf4fe9['NCtWE'],_0x16c803[_0x5abb6b(0xef)]=[..._0x245353||[]],_0x1d6ac0[_0x56ba69]=_0x16c803;}else!_0x1d6ac0[_0x56ba69]['field_type']&&(_0x1d6ac0[_0x56ba69]['field_type']=_0xcf4fe9[_0x5abb6b(0xfd)]),!Array['isArray'](_0x1d6ac0[_0x56ba69][_0x5abb6b(0xef)])&&(_0x1d6ac0[_0x56ba69][_0x5abb6b(0xef)]=[]),_0x1d6ac0[_0x56ba69][_0x5abb6b(0xef)]=CustomTagManager['mergeValues'](_0x1d6ac0[_0x56ba69][_0x5abb6b(0xef)],_0x245353);return _0x1d6ac0;}static async['setCustomTags'](_0x270b68,_0x4af431,_0x3d2249=![]){const _0x59f1a1=a90_0x3d349f,_0x20b68d={'QjCaF':function(_0x1b5fb6,_0x43de4e){return _0x1b5fb6!==_0x43de4e;},'DeLQg':_0x59f1a1(0x11d),'fUKvn':_0x59f1a1(0x11f),'JYlnH':_0x59f1a1(0xce),'fnZYO':function(_0x40ac66,_0x77ded){return _0x40ac66===_0x77ded;},'icNKc':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','zmTzZ':_0x59f1a1(0xd4),'bfYSV':function(_0x3faff3,_0x532216){return _0x3faff3(_0x532216);},'KJiWn':'./browserstackCLI','YwpAF':function(_0x543062){return _0x543062();},'slwBT':_0x59f1a1(0xec),'NoLTI':function(_0x137173,_0x224bee){return _0x137173>_0x224bee;},'DGaha':_0x59f1a1(0x11b),'swuZn':':jest-','XuNLx':function(_0x3a7dd2,_0x21b4bc){return _0x3a7dd2(_0x21b4bc);},'UhBRb':_0x59f1a1(0xe3),'JsNsY':_0x59f1a1(0xcc),'uKrTh':_0x59f1a1(0xed),'PkgoG':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','ApJlx':_0x59f1a1(0x13d),'fFajw':_0x59f1a1(0x106),'VIQXB':_0x59f1a1(0xc5),'pSSqM':function(_0x42a788,_0x5c83dd){return _0x42a788===_0x5c83dd;},'xmdMx':_0x59f1a1(0x128)};if(_0x20b68d['QjCaF'](typeof _0x270b68,_0x20b68d[_0x59f1a1(0xca)])){logger[_0x59f1a1(0x11a)](_0x20b68d[_0x59f1a1(0x142)]);return;}if(_0x20b68d['QjCaF'](typeof _0x4af431,_0x20b68d[_0x59f1a1(0xca)])){logger[_0x59f1a1(0x11a)](_0x20b68d['JYlnH']);return;}if(_0x20b68d[_0x59f1a1(0xe9)](_0x270b68[_0x59f1a1(0x11c)](),'')){logger['debug'](_0x20b68d[_0x59f1a1(0x105)]);return;}if(_0x20b68d[_0x59f1a1(0xe9)](_0x4af431[_0x59f1a1(0x11c)](),'')){logger[_0x59f1a1(0x11a)](_0x20b68d[_0x59f1a1(0xc7)]);return;}const _0x5f1ffd=helper[_0x59f1a1(0x126)](_0x4af431);if(_0x3d2249){const _0x485fb9=_0x20b68d[_0x59f1a1(0x132)](require,_0x20b68d[_0x59f1a1(0x11e)]),_0x5dad26=_0x485fb9[_0x59f1a1(0x10f)](),_0x2f492e=_0x5dad26&&_0x5dad26[_0x59f1a1(0x131)][TestHubModule[_0x59f1a1(0x12a)]];if(_0x2f492e){const _0x383fcb=_0x2f492e?.[_0x59f1a1(0x10a)]?.[_0x59f1a1(0xf0)]()?.[_0x59f1a1(0xd1)];TestInfo[_0x59f1a1(0x144)](_0x383fcb);const _0x5e1f6f=TestInfo[_0x59f1a1(0xda)](_0x383fcb),_0x59a885=_0x5e1f6f[TestFrameworkConstants[_0x59f1a1(0x115)]]||{};CustomTagManager[_0x59f1a1(0x119)](_0x59a885,_0x270b68,_0x5f1ffd),_0x5e1f6f[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x59a885,TestInfo['setTestDetails'](_0x383fcb,_0x5e1f6f);!this[_0x59f1a1(0x110)][_0x383fcb]&&(this[_0x59f1a1(0x110)][_0x383fcb]={});this[_0x59f1a1(0x110)][_0x383fcb][_0x270b68]=CustomTagManager[_0x59f1a1(0xf4)](this[_0x59f1a1(0x110)][_0x383fcb][_0x270b68],_0x5f1ffd);try{const _0x1db4a4=_0x20b68d['YwpAF'](getBuildTagsRunId);if(_0x1db4a4){const _0x244239={};for(const [_0x4eb460,_0x12f715]of Object[_0x59f1a1(0x13f)](this['buildLevelTags'][_0x383fcb]||{})){_0x244239[_0x4eb460]={'field_type':_0x20b68d[_0x59f1a1(0x124)],'values':Array[_0x59f1a1(0x146)](_0x12f715)?[..._0x12f715]:[]};}_0x20b68d[_0x59f1a1(0xd3)](Object['keys'](_0x244239)['length'],0x0)&&await fs[_0x59f1a1(0x12b)][_0x59f1a1(0xe1)](_0x20b68d[_0x59f1a1(0x132)](getBuildTagsFilePath,_0x1db4a4),JSON['stringify'](_0x244239));}else logger[_0x59f1a1(0x11a)](_0x20b68d['DGaha']);}catch(_0x59aad4){logger[_0x59f1a1(0x11a)](_0x59f1a1(0xd8)+(_0x59aad4&&_0x59aad4[_0x59f1a1(0xf3)]?_0x59aad4[_0x59f1a1(0xf3)]:_0x59aad4));}}}else{let _0x4ae1e8;const _0x627f9b=global[_0x59f1a1(0x127)];let _0x169e8c=![];if(_0x627f9b&&_0x627f9b[_0x59f1a1(0xe8)](_0x20b68d['swuZn']))_0x169e8c=!![],_0x4ae1e8=_0x627f9b;else try{const _0x2088d0=_0x20b68d[_0x59f1a1(0x130)](require,_0x20b68d[_0x59f1a1(0xf2)]),_0x57809f=_0x20b68d[_0x59f1a1(0x132)](require,_0x20b68d[_0x59f1a1(0x11e)]);if(_0x57809f[_0x59f1a1(0x10f)]()[_0x59f1a1(0xea)]()){const _0x29e8c3=_0x2088d0['getTestFrameworkDetail']();if(_0x20b68d[_0x59f1a1(0xe9)](_0x29e8c3?.[_0x59f1a1(0x122)]?.[_0x59f1a1(0x103)](),_0x20b68d[_0x59f1a1(0x10c)])){const _0x153099=AutomationFramework[_0x59f1a1(0x12c)]();_0x4ae1e8=AutomationFramework[_0x59f1a1(0x125)](_0x153099,PlaywrightDriverModule[_0x59f1a1(0x113)],''),_0x4ae1e8&&_0x4ae1e8['includes'](_0x20b68d['swuZn'])&&(_0x169e8c=!![]);}}}catch(_0x14cf72){logger[_0x59f1a1(0x11a)]('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x14cf72);}if(_0x169e8c){if(!_0x4ae1e8)throw new Error(_0x20b68d[_0x59f1a1(0xd2)]);const _0x5d391e=_0x20b68d[_0x59f1a1(0x132)](require,_0x20b68d[_0x59f1a1(0x11e)]),_0x5ac199=_0x5d391e[_0x59f1a1(0x10f)]()[_0x59f1a1(0x118)]();if(!_0x5ac199)throw new Error(_0x20b68d[_0x59f1a1(0x134)]);const _0x5a4179=_0x20b68d[_0x59f1a1(0x132)](require,_0x20b68d['ApJlx']),_0x352e32=_0x20b68d['XuNLx'](require,_0x20b68d[_0x59f1a1(0xd6)]),_0x2f7502=_0x5ac199['resolveInstance'](_0x5a4179[_0x59f1a1(0xdc)],_0x352e32[_0x59f1a1(0x13a)]);if(!_0x2f7502)throw new Error(_0x20b68d[_0x59f1a1(0x13c)]);const _0x2f8385=_0x2f7502['getAllData']()[_0x59f1a1(0x10d)](_0x4ae1e8)||{},_0x4a0bfd=_0x2f8385[TestFrameworkConstants[_0x59f1a1(0x115)]]||{};logger[_0x59f1a1(0x11a)]('[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier='+_0x4ae1e8+',\x20key='+_0x270b68+_0x59f1a1(0xf9)+JSON['stringify'](_0x5f1ffd)+',\x20existingTags='+JSON[_0x59f1a1(0x13b)](_0x4a0bfd)),CustomTagManager['mergeIntoTags'](_0x4a0bfd,_0x270b68,_0x5f1ffd),logger[_0x59f1a1(0x11a)]('[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key='+_0x270b68+_0x59f1a1(0xf8)+JSON[_0x59f1a1(0x13b)](_0x4a0bfd[_0x270b68]['values']));const _0x1b9121={[TestFrameworkConstants[_0x59f1a1(0x115)]]:_0x4a0bfd},_0x1465de={};_0x1465de[_0x4ae1e8]=_0x1b9121,_0x2f7502[_0x59f1a1(0x116)](_0x1465de),logger[_0x59f1a1(0x11a)](_0x59f1a1(0xdf)+_0x4ae1e8+_0x59f1a1(0xc4)+JSON[_0x59f1a1(0x13b)](_0x4a0bfd)),!this[_0x59f1a1(0x101)][_0x4ae1e8]&&(this[_0x59f1a1(0x101)][_0x4ae1e8]={}),this[_0x59f1a1(0x101)][_0x4ae1e8][_0x270b68]=CustomTagManager[_0x59f1a1(0xf4)](this[_0x59f1a1(0x101)][_0x4ae1e8][_0x270b68],_0x5f1ffd);}else{const _0x491354=global[_0x59f1a1(0x109)]?.[_0x59f1a1(0xf5)]?.['testInfo'];if(!_0x491354){const _0x190925=AutomationFramework[_0x59f1a1(0x12c)]();_0x4ae1e8=AutomationFramework[_0x59f1a1(0x125)](_0x190925,PlaywrightDriverModule[_0x59f1a1(0x113)],'');if(!_0x4ae1e8)try{const _0x4ad115=_0x20b68d[_0x59f1a1(0x132)](require,_0x20b68d[_0x59f1a1(0x11e)]),_0x23035b=_0x4ad115[_0x59f1a1(0x10f)](),_0x4d00e9=_0x23035b&&_0x23035b['getTestFramework']();_0x4ae1e8=_0x4d00e9&&_0x20b68d['pSSqM'](typeof _0x4d00e9[_0x59f1a1(0xd0)],_0x20b68d['xmdMx'])&&_0x4d00e9['getCurrentTestUUID']()||_0x4ae1e8;}catch(_0x149819){logger[_0x59f1a1(0x11a)](_0x59f1a1(0xfa)+(_0x149819&&_0x149819[_0x59f1a1(0xf3)]));}}else _0x4ae1e8=TestInfo['getTestIdentifierFromTestInfo'](_0x491354,_0x491354[_0x59f1a1(0x117)]);const _0x1e3882=TestInfo[_0x59f1a1(0xda)](_0x4ae1e8),_0x1f080a=_0x1e3882[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x59f1a1(0x119)](_0x1f080a,_0x270b68,_0x5f1ffd),_0x1e3882[TestFrameworkConstants[_0x59f1a1(0x115)]]=_0x1f080a,TestInfo[_0x59f1a1(0x12f)](_0x4ae1e8,_0x1e3882),!this[_0x59f1a1(0x101)][_0x4ae1e8]&&(this[_0x59f1a1(0x101)][_0x4ae1e8]={}),this['testLevelTags'][_0x4ae1e8][_0x270b68]=CustomTagManager[_0x59f1a1(0xf4)](this['testLevelTags'][_0x4ae1e8][_0x270b68],_0x5f1ffd);}}}static['getBuildLevelTags'](){const _0x45be55=a90_0x3d349f,_0x307470={...this[_0x45be55(0x110)]};return _0x307470;}static[a90_0x3d349f(0xf6)](){const _0x317bdd=a90_0x3d349f,_0x520207={...this[_0x317bdd(0x101)]};return _0x520207;}static[a90_0x3d349f(0xcd)](){const _0x42811a=a90_0x3d349f;this[_0x42811a(0x110)]={},this[_0x42811a(0x101)]={};}static['mergeBuildLevelTags'](_0x3b0e09,_0x55b369){const _0x3ff3ab=a90_0x3d349f,_0x3ea424={};_0x3ea424[_0x3ff3ab(0xf1)]=function(_0x5a63f9,_0xd0a23a){return _0x5a63f9||_0xd0a23a;};const _0x4d99b7=_0x3ea424;if(!_0x3b0e09)return;!this[_0x3ff3ab(0x110)][_0x3b0e09]&&(this[_0x3ff3ab(0x110)][_0x3b0e09]={});for(const [_0x4e9e58,_0x40408e]of Object[_0x3ff3ab(0x13f)](_0x4d99b7[_0x3ff3ab(0xf1)](_0x55b369,{}))){if(!_0x40408e||!Array['isArray'](_0x40408e['values']))continue;this[_0x3ff3ab(0x110)][_0x3b0e09][_0x4e9e58]=CustomTagManager['mergeValues'](this[_0x3ff3ab(0x110)][_0x3b0e09][_0x4e9e58],_0x40408e['values']);}}static['aggregateBuildLevelTagsFromTmp'](_0x5a02bd,_0x1c6d43){const _0x5aa64e=a90_0x3d349f,_0xecac4={};_0xecac4[_0x5aa64e(0xe2)]='CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate',_0xecac4[_0x5aa64e(0x10e)]=function(_0x25127c,_0x49556b){return _0x25127c*_0x49556b;},_0xecac4[_0x5aa64e(0x136)]=function(_0x2b7e9e,_0xd90cff){return _0x2b7e9e*_0xd90cff;},_0xecac4[_0x5aa64e(0xe5)]=function(_0x4dfda6,_0x379c73){return _0x4dfda6*_0x379c73;},_0xecac4[_0x5aa64e(0xff)]=function(_0xccf22,_0x3160b1){return _0xccf22>_0x3160b1;},_0xecac4[_0x5aa64e(0xeb)]=function(_0x368a79,_0x4629c0){return _0x368a79-_0x4629c0;},_0xecac4[_0x5aa64e(0xd9)]=_0x5aa64e(0x141);const _0x33d30f=_0xecac4;if(!_0x5a02bd)return logger[_0x5aa64e(0x11a)](_0x33d30f[_0x5aa64e(0xe2)]),0x0;let _0x3a4240;try{_0x3a4240=os[_0x5aa64e(0x140)]();}catch(_0x4cd096){return logger[_0x5aa64e(0x11a)](_0x5aa64e(0xe4)+_0x4cd096),0x0;}let _0x528001;try{_0x528001=fs[_0x5aa64e(0x111)](_0x3a4240);}catch(_0xc26052){return logger['debug'](_0x5aa64e(0xcb)+_0xc26052),0x0;}const _0x395eed=''+BUILD_TAG_FILE_PREFIX+_0x5a02bd+'_',_0x347fe2=_0x528001[_0x5aa64e(0x121)](_0x1accce=>_0x1accce[_0x5aa64e(0x108)](_0x395eed)&&_0x1accce['endsWith'](_0x5aa64e(0xde))),_0x28f13b=_0x33d30f[_0x5aa64e(0x10e)](_0x33d30f[_0x5aa64e(0x136)](_0x33d30f[_0x5aa64e(0xe5)](0x2,0x3c),0x3c),0x3e8);let _0x660e05=0x0;for(const _0x297353 of _0x347fe2){const _0x52ab18=path[_0x5aa64e(0x129)](_0x3a4240,_0x297353);try{const _0x24def2=fs[_0x5aa64e(0xcf)](_0x52ab18);if(_0x33d30f['jFwYJ'](_0x33d30f[_0x5aa64e(0xeb)](Date[_0x5aa64e(0xfc)](),_0x24def2[_0x5aa64e(0x10b)]),_0x28f13b)){logger[_0x5aa64e(0x11a)](_0x5aa64e(0x13e)+_0x28f13b+_0x5aa64e(0x12d)+_0x297353);try{fs['unlinkSync'](_0x52ab18);}catch(_0x534354){logger[_0x5aa64e(0x11a)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20'+_0x297353+':\x20'+(_0x534354&&_0x534354['message']?_0x534354[_0x5aa64e(0xf3)]:_0x534354));}continue;}const _0x408269=fs['readFileSync'](_0x52ab18,_0x33d30f[_0x5aa64e(0xd9)]),_0x4caab2=JSON['parse'](_0x408269);this[_0x5aa64e(0xdd)](_0x1c6d43,_0x4caab2),_0x660e05+=0x1;}catch(_0x8253fd){logger[_0x5aa64e(0x11a)](_0x5aa64e(0xc8)+_0x297353+':\x20'+(_0x8253fd&&_0x8253fd[_0x5aa64e(0xf3)]?_0x8253fd[_0x5aa64e(0xf3)]:_0x8253fd));}try{fs[_0x5aa64e(0x143)](_0x52ab18);}catch(_0x385254){logger[_0x5aa64e(0x11a)](_0x5aa64e(0xe7)+_0x297353+':\x20'+(_0x385254&&_0x385254[_0x5aa64e(0xf3)]?_0x385254['message']:_0x385254));}}return _0x660e05;}}const a90_0x53a7f8={};a90_0x53a7f8[a90_0x3d349f(0x120)]=getBuildTagsRunId,a90_0x53a7f8[a90_0x3d349f(0x139)]=getBuildTagsFilePath,a90_0x53a7f8['BUILD_TAG_FILE_PREFIX']=BUILD_TAG_FILE_PREFIX,CustomTagManager[a90_0x3d349f(0x114)]=a90_0x53a7f8,module[a90_0x3d349f(0x100)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a91_0x35b8fa=a91_0x3168;function a91_0x559b(){const _0x275506=['../../helpers/classLogger.js','getInstance','5919200RBYUfW','259lVFPwT','2727576CbKwVr','exports','13044cvgqLG','registerObserver','2489481ORfWWP','81866cyvpXW','1309800gaLGCc','observers','7JHydoH','push','1200165SjimCq'];a91_0x559b=function(){return _0x275506;};return a91_0x559b();}(function(_0xb3b96c,_0x603c12){const _0x5eb2c3=a91_0x3168,_0x1aa682=_0xb3b96c();while(!![]){try{const _0x3297cf=parseInt(_0x5eb2c3(0xee))/0x1*(-parseInt(_0x5eb2c3(0xeb))/0x2)+-parseInt(_0x5eb2c3(0xe6))/0x3+parseInt(_0x5eb2c3(0xec))/0x4+parseInt(_0x5eb2c3(0xf0))/0x5+parseInt(_0x5eb2c3(0xe8))/0x6*(parseInt(_0x5eb2c3(0xe5))/0x7)+parseInt(_0x5eb2c3(0xe4))/0x8+parseInt(_0x5eb2c3(0xea))/0x9;if(_0x3297cf===_0x603c12)break;else _0x1aa682['push'](_0x1aa682['shift']());}catch(_0x30f522){_0x1aa682['push'](_0x1aa682['shift']());}}}(a91_0x559b,0x726e3));function a91_0x3168(_0x10f862,_0x158349){const _0x559bf4=a91_0x559b();return a91_0x3168=function(_0x316848,_0x2f24e7){_0x316848=_0x316848-0xe2;let _0x72eb6a=_0x559bf4[_0x316848];return _0x72eb6a;},a91_0x3168(_0x10f862,_0x158349);}const {createClassLogger}=require(a91_0x35b8fa(0xe2));class EventDispatcher{static #instance=null;constructor(){const _0x3e71ac=a91_0x35b8fa;this[_0x3e71ac(0xed)]={};}static['getInstance'](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a91_0x35b8fa(0xe9)](_0x5732bc,_0x4e105c){const _0x2c1ca3=a91_0x35b8fa;!this[_0x2c1ca3(0xed)][_0x5732bc]&&(this[_0x2c1ca3(0xed)][_0x5732bc]=[]),this[_0x2c1ca3(0xed)][_0x5732bc][_0x2c1ca3(0xef)](_0x4e105c);}async['notifyObserver'](_0x1d2493,_0x461bf5){const _0x195a57=a91_0x35b8fa,_0x10e8e2={'kGxHq':function(_0x5ddce7,_0x4bfe4d){return _0x5ddce7(_0x4bfe4d);}};if(this[_0x195a57(0xed)][_0x1d2493]){for(const _0x12c404 of this[_0x195a57(0xed)][_0x1d2493]){await _0x10e8e2['kGxHq'](_0x12c404,_0x461bf5);}return;}}}const eventDispatcher=EventDispatcher[a91_0x35b8fa(0xe3)]();Object['freeze'](eventDispatcher),module[a91_0x35b8fa(0xe7)]=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a92_0x373299=a92_0x9e6f;(function(_0xe2f5fa,_0x35e914){const _0x2bfcbd=a92_0x9e6f,_0x377124=_0xe2f5fa();while(!![]){try{const _0x1acdc3=-parseInt(_0x2bfcbd(0x123))/0x1+parseInt(_0x2bfcbd(0x102))/0x2*(parseInt(_0x2bfcbd(0x120))/0x3)+-parseInt(_0x2bfcbd(0x10a))/0x4+parseInt(_0x2bfcbd(0x116))/0x5+parseInt(_0x2bfcbd(0x117))/0x6*(parseInt(_0x2bfcbd(0x11c))/0x7)+parseInt(_0x2bfcbd(0x10d))/0x8+parseInt(_0x2bfcbd(0x11d))/0x9*(-parseInt(_0x2bfcbd(0xfc))/0xa);if(_0x1acdc3===_0x35e914)break;else _0x377124['push'](_0x377124['shift']());}catch(_0x2ffd3e){_0x377124['push'](_0x377124['shift']());}}}(a92_0x170e,0xc6a7d));function a92_0x170e(){const _0x3f4fce=['../cliUtils.js','getId','1031257FfSjzm','getState','get','533470TeWhFg','createContext','function','automation_sessions','MwZcJ','trackEvent','518kBnVUv','setState','../eventDispatcher.js','automationFrameworkName','non_browserstack_automation_sessions','set','../../../helpers/classLogger.js','\x20hookState=','1248760mswwRy','getAllData','KEY_AUTOMATION_SESSIONS','11404544zFRBWM','instances','util','exports','AutomationFramework','getHookRegistryKey','getTrackedInstance','getAutomationFrameworkName','automationFrameworkVersion','5379920bHmRht','354PymZSU','runHooks','trackEvent:\x20automationFrameworkState=','NzJPW','registerObserver','27314ImgEud','117uDnHfQ','setTrackedInstance','wDrfn','1377jJoJur'];a92_0x170e=function(){return _0x3f4fce;};return a92_0x170e();}function a92_0x9e6f(_0x48da8b,_0x490684){const _0x170ec9=a92_0x170e();return a92_0x9e6f=function(_0x9e6ff7,_0x429e4e){_0x9e6ff7=_0x9e6ff7-0xfc;let _0xefc8ca=_0x170ec9[_0x9e6ff7];return _0xefc8ca;},a92_0x9e6f(_0x48da8b,_0x490684);}const {createClassLogger}=require(a92_0x373299(0x108)),util=require(a92_0x373299(0x10f)),eventDispatcher=require(a92_0x373299(0x104)),CLIUtils=require(a92_0x373299(0x121)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger(a92_0x373299(0x111));class AutomationFramework{static [a92_0x373299(0x10e)]=new Map();static [a92_0x373299(0x10c)]=a92_0x373299(0xff);static ['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS']=a92_0x373299(0x106);constructor(_0x479ff5,_0x15013d){const _0x33fe11=a92_0x373299;this[_0x33fe11(0x105)]=_0x479ff5,this['automationFrameworkVersion']=_0x15013d;}[a92_0x373299(0x114)](){return this['automationFrameworkName'];}['getAutomationFrameworkVersion'](){const _0x2b0a37=a92_0x373299;return this[_0x2b0a37(0x115)];}async[a92_0x373299(0x101)](_0x3864ce,_0x33d7d0,_0x534d56={}){const _0x545dd0=a92_0x373299;logger['debug'](_0x545dd0(0x119)+_0x3864ce+_0x545dd0(0x109)+_0x33d7d0);}async[a92_0x373299(0x118)](_0x3eb8be,_0x34d664,_0xcdb50b,_0x3cfc59={}){const _0x47c70e=a92_0x373299,_0x2897da=CLIUtils[_0x47c70e(0x112)](_0x34d664,_0xcdb50b);_0x3eb8be&&_0x3eb8be[_0x47c70e(0x103)](_0x34d664),await eventDispatcher['notifyObserver'](_0x2897da,_0x3cfc59);}static[a92_0x373299(0x11b)](_0x5d40c7,_0x3c805c,_0x4054d6){const _0x296b46=a92_0x373299;eventDispatcher[_0x296b46(0x11b)](CLIUtils[_0x296b46(0x112)](_0x5d40c7,_0x3c805c),_0x4054d6);}static[a92_0x373299(0x11e)](_0x3e2fbd,_0x53540d){const _0x3095f9=a92_0x373299;AutomationFramework[_0x3095f9(0x10e)]['set'](_0x3e2fbd['getId'](),_0x53540d);}static[a92_0x373299(0x113)](){const _0xe8391e=a92_0x373299,_0xd9eeb7=TrackedInstance[_0xe8391e(0xfd)](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0xe8391e(0x10e)][_0xe8391e(0x125)](_0xd9eeb7[_0xe8391e(0x122)]());}static[a92_0x373299(0x103)](_0x451b59,_0x4b2216,_0x14a7ef){const _0x4cce80=a92_0x373299;_0x451b59[_0x4cce80(0x10b)]()[_0x4cce80(0x107)](_0x4b2216,_0x14a7ef);}static[a92_0x373299(0x124)](_0x149468,_0xf00bd5,_0x593ac9=undefined){const _0x59255b=a92_0x373299,_0x34f337={};_0x34f337[_0x59255b(0x11f)]=function(_0x3eb24c,_0x1fce81){return _0x3eb24c!==_0x1fce81;},_0x34f337[_0x59255b(0x11a)]=_0x59255b(0xfe),_0x34f337[_0x59255b(0x100)]=function(_0x131764,_0x22398a){return _0x131764===_0x22398a;};const _0xfd9a39=_0x34f337;if(!_0x149468||_0xfd9a39[_0x59255b(0x11f)](typeof _0x149468[_0x59255b(0x10b)],_0xfd9a39[_0x59255b(0x11a)]))return _0x593ac9;const _0x426dc1=_0x149468[_0x59255b(0x10b)]()[_0x59255b(0x125)](_0xf00bd5);return _0xfd9a39[_0x59255b(0x100)](_0x426dc1,undefined)?_0x593ac9:_0x426dc1;}}module[a92_0x373299(0x110)]=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x59effc=a93_0x1692;function a93_0x228a(){const _0x53b843=['19419903zpqUZJ','216zeByWY','capabilities','8343785CCPRQP','KEY_PLATFORM_INDEX','COMMAND_GET','3044072tbaxAP','ended_at','KEY_STARTED_AT','w3cexecutescript','7178BDTNFX','COMMAND_NEW_SESSION','KEY_FRAMEWORK_SESSION_ID','KEY_INPUT_CAPABILITIES','w3cexecutescriptasync','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','KEY_ENDED_AT','1250956GWLAlE','exports','quit','started_at','COMMAND_SCREENSHOT','screenshot','5466486menMgE','6WIAwLK','get','BROWSERSTACK_PLATFORM_INDEX','is_browserstack_hub','637720COYXXU','COMMAND_W3C_EXECUTE_SCRIPT'];a93_0x228a=function(){return _0x53b843;};return a93_0x228a();}(function(_0x168bc1,_0xcc16f7){const _0x2312bf=a93_0x1692,_0x33eeb8=_0x168bc1();while(!![]){try{const _0x32948b=-parseInt(_0x2312bf(0xd4))/0x1*(parseInt(_0x2312bf(0xcb))/0x2)+parseInt(_0x2312bf(0xc3))/0x3+-parseInt(_0x2312bf(0xc8))/0x4+parseInt(_0x2312bf(0xcd))/0x5*(parseInt(_0x2312bf(0xc4))/0x6)+parseInt(_0x2312bf(0xbd))/0x7+parseInt(_0x2312bf(0xd0))/0x8+-parseInt(_0x2312bf(0xca))/0x9;if(_0x32948b===_0xcc16f7)break;else _0x33eeb8['push'](_0x33eeb8['shift']());}catch(_0x2a887a){_0x33eeb8['push'](_0x33eeb8['shift']());}}}(a93_0x228a,0xe9d13));function a93_0x1692(_0x7ed62b,_0x55ea1a){const _0x228a91=a93_0x228a();return a93_0x1692=function(_0x169203,_0x32ba92){_0x169203=_0x169203-0xb9;let _0x478d0b=_0x228a91[_0x169203];return _0x478d0b;},a93_0x1692(_0x7ed62b,_0x55ea1a);}const a93_0x18ba96={};a93_0x18ba96['ENV_BROWSERSTACK_PLATFORM_INDEX']=a93_0x59effc(0xc6),a93_0x18ba96['KEY_HUB_URL']='hub_url',a93_0x18ba96[a93_0x59effc(0xd6)]='framework_session_id',a93_0x18ba96[a93_0x59effc(0xb9)]='input_capabilities',a93_0x18ba96['KEY_CAPABILITIES']=a93_0x59effc(0xcc),a93_0x18ba96['KEY_IS_BROWSERSTACK_HUB']=a93_0x59effc(0xc7),a93_0x18ba96[a93_0x59effc(0xd2)]=a93_0x59effc(0xc0),a93_0x18ba96[a93_0x59effc(0xbc)]=a93_0x59effc(0xd1),a93_0x18ba96[a93_0x59effc(0xce)]='platform_index',a93_0x18ba96[a93_0x59effc(0xd5)]='newsession',a93_0x18ba96[a93_0x59effc(0xcf)]=a93_0x59effc(0xc5),a93_0x18ba96[a93_0x59effc(0xc1)]=a93_0x59effc(0xc2),a93_0x18ba96[a93_0x59effc(0xc9)]=a93_0x59effc(0xd3),a93_0x18ba96[a93_0x59effc(0xbb)]=a93_0x59effc(0xba),a93_0x18ba96['COMMAND_QUIT']=a93_0x59effc(0xbf);const AutomationFrameworkConstants=a93_0x18ba96;module[a93_0x59effc(0xbe)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a94_0x5559(){const _0x2debc4=['TEST_LOG','test_hooks_finished','25JUXAjf','6824574ivkYHh','test_uuid','DEFAULT_TEST_RESULT','test_file_path','KEY_HOOK_LAST_STARTED','KEY_TEST_RETRY_OF','KEY_TEST_SCOPES','test_name','5EOCmAA','automate_session_reason','hook_failure','file_level','KEY_TEST_TAGS','test_failure_reason','KEY_TEST_SCREENSHOTS','DEFAULT_HOOK_RESULT','256242SvLnQg','KEY_HOOK_LOGS','KEY_TEST_NAME','test_hook_last_finished','automate_session_status','test_hooks_started','KEY_TEST_LOGS','event_ended_at','KEY_AUTOMATE_SESSION_REASON','pending','hook_logs','KEY_LOGS','KEY_HOOK_RESULT','KEY_TEST_STARTED_AT','KEY_HOOKS_FINISHED','KEY_TEST_ID','KEY_FILE_SIZE','exports','test_tags','test_session_name','KIND_SCREENSHOT','test_id','KEY_TEST_FAILURE','MAX_NESTED_STEP_DEPTH','test_location','KEY_FILE_PATH','file_name','KEY_TEST_DURATION','automate_session_name','KEY_TEST_META','file_path','test_screenshots','hook_failure_reason','test_started_at','test_logs','KEY_FILE_LEVEL','KEY_TEST_LOCATION','test_framework_name','test_failure_type','KEY_TEST_RERUN_NAME','KEY_TEST_ATTACHMENTS','test_result_at','KEY_TEST_UUID','test_code','test_duration','hook_result','test_meta','41506iZIJUb','KIND_LOG','file_size','KEY_TEST_FILE_PATH','KEY_HOOK_ID','16ffmaDO','event_started_at','KEY_TEST_SCOPE','test_attachments','296598zWQLUc','KEY_TEST_RESULT','KEY_SESSION_NAME','KEY_TEST_ENDED_AT','KEY_FILE_NAME','test_failure','KEY_PLATFORM_INDEX','logs','KEY_HOOK_LAST_FINISHED','KEY_TEST_CODE','30648880KfTRXY','test_scope','1865235eceZGo','KEY_EVENT_ENDED_AT','3078704kqOPFo','MAX_TOP_LEVEL_STEPS','test_scopes','KEY_TEST_FAILURE_REASON','hook_name','test_result','KEY_TEST_FRAMEWORK_VERSION'];a94_0x5559=function(){return _0x2debc4;};return a94_0x5559();}const a94_0x367854=a94_0x1ae0;(function(_0x1000a2,_0x1855ce){const _0x3401e2=a94_0x1ae0,_0x51e6ed=_0x1000a2();while(!![]){try{const _0x4fdbb3=-parseInt(_0x3401e2(0xe5))/0x1*(parseInt(_0x3401e2(0x125))/0x2)+-parseInt(_0x3401e2(0xda))/0x3+-parseInt(_0x3401e2(0xdc))/0x4+-parseInt(_0x3401e2(0xee))/0x5*(parseInt(_0x3401e2(0x12e))/0x6)+-parseInt(_0x3401e2(0xf6))/0x7*(-parseInt(_0x3401e2(0x12a))/0x8)+-parseInt(_0x3401e2(0xe6))/0x9+parseInt(_0x3401e2(0xd8))/0xa;if(_0x4fdbb3===_0x1855ce)break;else _0x51e6ed['push'](_0x51e6ed['shift']());}catch(_0x5bb40f){_0x51e6ed['push'](_0x51e6ed['shift']());}}}(a94_0x5559,0x66927));const a94_0x59ede3={};a94_0x59ede3[a94_0x367854(0x120)]=a94_0x367854(0xe7),a94_0x59ede3[a94_0x367854(0x105)]=a94_0x367854(0x10b),a94_0x59ede3[a94_0x367854(0xf8)]=a94_0x367854(0xed),a94_0x59ede3[a94_0x367854(0x128)]=a94_0x367854(0xe9),a94_0x59ede3[a94_0x367854(0xf2)]=a94_0x367854(0x108),a94_0x59ede3[a94_0x367854(0x12f)]=a94_0x367854(0xe1),a94_0x59ede3['KEY_TEST_RESULT_AT']=a94_0x367854(0x11f),a94_0x59ede3[a94_0x367854(0x103)]=a94_0x367854(0x117),a94_0x59ede3[a94_0x367854(0x131)]='test_ended_at',a94_0x59ede3[a94_0x367854(0x11a)]=a94_0x367854(0x10e),a94_0x59ede3[a94_0x367854(0x111)]=a94_0x367854(0x122),a94_0x59ede3[a94_0x367854(0x12c)]=a94_0x367854(0xd9),a94_0x59ede3[a94_0x367854(0xec)]=a94_0x367854(0xde),a94_0x59ede3['KEY_TEST_FRAMEWORK_NAME']=a94_0x367854(0x11b),a94_0x59ede3[a94_0x367854(0xe2)]='test_framework_version',a94_0x59ede3[a94_0x367854(0xd7)]=a94_0x367854(0x121),a94_0x59ede3[a94_0x367854(0x11d)]='test_rerun_name',a94_0x59ede3[a94_0x367854(0xeb)]='retry_of',a94_0x59ede3[a94_0x367854(0xd4)]='platform_index',a94_0x59ede3[a94_0x367854(0x10c)]=a94_0x367854(0xd3),a94_0x59ede3['KEY_TEST_FAILURE_TYPE']=a94_0x367854(0x11c),a94_0x59ede3[a94_0x367854(0xdf)]=a94_0x367854(0xf3),a94_0x59ede3[a94_0x367854(0xfc)]=a94_0x367854(0x118),a94_0x59ede3[a94_0x367854(0x113)]=a94_0x367854(0x124),a94_0x59ede3[a94_0x367854(0x130)]=a94_0x367854(0x109),a94_0x59ede3['KEY_AUTOMATE_SESSION_NAME']=a94_0x367854(0x112),a94_0x59ede3['KEY_AUTOMATE_SESSION_STATUS']=a94_0x367854(0xfa),a94_0x59ede3[a94_0x367854(0xfe)]=a94_0x367854(0xef),a94_0x59ede3['KEY_EVENT_STARTED_AT']=a94_0x367854(0x12b),a94_0x59ede3[a94_0x367854(0xdb)]=a94_0x367854(0xfd),a94_0x59ede3[a94_0x367854(0x129)]='hook_id',a94_0x59ede3[a94_0x367854(0x102)]=a94_0x367854(0x123),a94_0x59ede3['KEY_HOOK_FAILURE_TYPE']='hook_failure_type',a94_0x59ede3['KEY_HOOK_FAILURE_REASON']=a94_0x367854(0x116),a94_0x59ede3['KEY_HOOK_FAILURE']=a94_0x367854(0xf0),a94_0x59ede3[a94_0x367854(0xf7)]=a94_0x367854(0x100),a94_0x59ede3['KEY_HOOK_NAME']=a94_0x367854(0xe0),a94_0x59ede3[a94_0x367854(0xe8)]=a94_0x367854(0xff),a94_0x59ede3[a94_0x367854(0xf5)]=a94_0x367854(0xff),a94_0x59ede3[a94_0x367854(0x10a)]='TEST_SCREENSHOT',a94_0x59ede3[a94_0x367854(0x126)]=a94_0x367854(0xe3),a94_0x59ede3['HOOK_REGEX']='^(BEFORE_|AFTER_)',a94_0x59ede3['KEY_HOOKS_STARTED']=a94_0x367854(0xfb),a94_0x59ede3[a94_0x367854(0x104)]=a94_0x367854(0xe4),a94_0x59ede3[a94_0x367854(0xea)]='test_hook_last_started',a94_0x59ede3[a94_0x367854(0xd6)]=a94_0x367854(0xf9),a94_0x59ede3[a94_0x367854(0x101)]=a94_0x367854(0xd5),a94_0x59ede3['KEY_CUSTOM_TAGS']='custom_metadata',a94_0x59ede3[a94_0x367854(0x11e)]=a94_0x367854(0x12d),a94_0x59ede3[a94_0x367854(0x106)]=a94_0x367854(0x127),a94_0x59ede3[a94_0x367854(0xd2)]=a94_0x367854(0x110),a94_0x59ede3[a94_0x367854(0x10f)]=a94_0x367854(0x114),a94_0x59ede3[a94_0x367854(0x119)]=a94_0x367854(0xf1),a94_0x59ede3[a94_0x367854(0xf4)]=a94_0x367854(0x115),a94_0x59ede3[a94_0x367854(0xdd)]=0xa,a94_0x59ede3[a94_0x367854(0x10d)]=0x2;const TestFrameworkConstants=a94_0x59ede3;function a94_0x1ae0(_0x4d6bf7,_0x22cf93){const _0x555926=a94_0x5559();return a94_0x1ae0=function(_0x1ae0f7,_0x684a22){_0x1ae0f7=_0x1ae0f7-0xd2;let _0x59ef06=_0x555926[_0x1ae0f7];return _0x59ef06;},a94_0x1ae0(_0x4d6bf7,_0x22cf93);}module[a94_0x367854(0x107)]=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a95_0x1664(_0x366f20,_0xd18d57){const _0x2c53c2=a95_0x2c53();return a95_0x1664=function(_0x16643a,_0x445899){_0x16643a=_0x16643a-0x16c;let _0x414fb9=_0x2c53c2[_0x16643a];return _0x414fb9;},a95_0x1664(_0x366f20,_0xd18d57);}const a95_0x1aa02f=a95_0x1664;(function(_0xd7aaab,_0x4b4d3f){const _0x298313=a95_0x1664,_0x2b6562=_0xd7aaab();while(!![]){try{const _0x123845=parseInt(_0x298313(0x1d7))/0x1+-parseInt(_0x298313(0x1f0))/0x2+-parseInt(_0x298313(0x179))/0x3*(-parseInt(_0x298313(0x203))/0x4)+-parseInt(_0x298313(0x20b))/0x5*(-parseInt(_0x298313(0x1f6))/0x6)+-parseInt(_0x298313(0x1e7))/0x7*(-parseInt(_0x298313(0x1aa))/0x8)+-parseInt(_0x298313(0x1d3))/0x9+-parseInt(_0x298313(0x1ad))/0xa;if(_0x123845===_0x4b4d3f)break;else _0x2b6562['push'](_0x2b6562['shift']());}catch(_0x3596a4){_0x2b6562['push'](_0x2b6562['shift']());}}}(a95_0x2c53,0x52abe));function a95_0x2c53(){const _0x3c77ac=['GonRy','../cliUtils.js','luOFn','KEY_TEST_CODE','storePendingHook','GyzAi','length','getTestFrameworksVersions','KEY_TEST_SCOPES','DEFAULT_TEST_RESULT','rerun_name','KEY_HOOK_LAST_STARTED','PQUeH','\x20&\x20hookState=','location','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_HOOK_ID','setTrackedInstance','get','CStDA','inspect','from','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','toString','removePendingHooks','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','AqhfW','KEY_TEST_LOCATION','testData','JoqUL','bQvQW','Processing\x20','KEY_HOOKS_FINISHED','logCreatedEvent','testUUID',',\x20storing\x20as\x20pending\x20hook','test','uuid','matchHookRegex','keys','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','getId','body','resolveInstance','\x20payload=','npLNz','scopes','Parsed\x20cucumber\x20test:\x20','../TestInfo.js','getContext','createTestFrameworkEventPayload\x20testId:\x20','86622oFpzND','getCurrentInstanceName','exports','trackHookEvent','platformIndex','failure_reason','./testFramework','\x20hookState:\x20','JTPEB','msHqB','processPendingHooks','eBexC','pbIJm','../instances/trackedInstance.js','KEY_TEST_RERUN_NAME','KEY_HOOK_LAST_FINISHED','push','failed','CucumberTestFramework','Stored\x20pending\x20hook\x20for\x20testId:\x20','NONE','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','finished_at','KEY_HOOK_FAILURE_REASON','KEY_TEST_TAGS','failure_data','KEY_TEST_FRAMEWORK_VERSION','KkNRf','YFEnO','createContext','KEY_HOOK_FAILURE','\x20for\x20test:\x20','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','debug','parseCucumberTest','\x20pending\x20hooks\x20for\x20testId:\x20','getRef','Ytwnx','KEY_HOOK_RESULT',',\x20state=','name','error','getCurrentTestState','meta','KEY_EVENT_ENDED_AT','KEY_TEST_LOGS','failure_type','TEST','customRerunParam','3124984BoSZBy','mPask','\x20batch\x20','11822090aheCKx','parseCucumberTestResult','testFrameworkName','VoPfR','INIT_TEST','runHooks','Updated\x20cucumber\x20test\x20result:\x20','getTestFrameworks','KEY_TEST_NAME','executionContext','KEY_TEST_STARTED_AT','kmbsZ','UQicp','key','KEY_TEST_UUID','hooks','KEY_TEST_FAILURE','split','KEY_TEST_RESULT','file_name','sendLogCreatedEvent','EgquB','createTestFrameworkEventPayload','endedAt','testFrameworkVersion','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','getTestUUID','lmXkr','setTestDetails','KEY_EVENT_STARTED_AT','KEY_TEST_ID','browserstackPlatformIndex','hookState','eventJson','PjTxG','slice','getProcessId','KEY_TEST_ENDED_AT','1278738HBwxeC','PRE','getAllData','hookData','649311LEpqAu','KEY_TEST_FILE_PATH','\x20\x20and\x20args\x20=\x20','KEY_TEST_ATTACHMENTS','getPendingHooks','base64','trackEvent','KEY_TEST_SCOPE','pop',',\x20state:\x20','trackCucumberInstance','SNOfZ','KEY_LOGS','XPwIT','xaTPb','KEY_HOOK_FAILURE_TYPE','7XKTDtS','../../../helpers/classLogger.js','KEY_HOOKS_STARTED','./constants/testFrameworkConstants.js',',\x20error:\x20','KKGdi','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','Error\x20in\x20createTestFrameworkEventPayload:\x20','beYms','612910OIxbTw','args','finishedAt','Tracked\x20cucumber\x20hook\x20event:\x20','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','112188rdCSss','KEY_CUSTOM_TAGS','hasPendingHooks','trackCucumberInstance:\x20saved\x20instance\x20contextId=','format','KEY_TEST_META','instance','test_run_id','getTestDetails','unknown','toISOString','sendLogCreatedEvent:\x20for\x20testId:\x20','DEFAULT_HOOK_RESULT','64AThyXJ','KEY_TEST_FRAMEWORK_NAME','testFrameworkState','result','addPendingHook','addMultipleEntries','KEY_TEST_FAILURE_REASON','POST','125mKoFnh','\x20and\x20args\x20=\x20','../grpcClient','startedAt','KEY_TEST_FAILURE_TYPE','hook_type','LOG_REPORT'];a95_0x2c53=function(){return _0x3c77ac;};return a95_0x2c53();}const TestFramework=require(a95_0x1aa02f(0x17f)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require('../state/hookState.js'),{createClassLogger}=require(a95_0x1aa02f(0x1e8)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a95_0x1aa02f(0x213)),TrackedInstance=require(a95_0x1aa02f(0x186)),TestFrameworkConstants=require(a95_0x1aa02f(0x1ea)),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger(a95_0x1aa02f(0x18b)),{v4:uuidv4}=require('uuid'),util=require('util'),TestInfo=require(a95_0x1aa02f(0x176)),GrpcClient=require(a95_0x1aa02f(0x20d));class CucumberTestFramework extends TestFramework{constructor(_0x523e71,_0x2375ba,_0x18b3e6){super(_0x523e71,_0x2375ba,_0x18b3e6);}async['trackEvent'](_0x2c2a30,_0x5e3d2f,_0x41e8a4={}){const _0x5a93e8=a95_0x1aa02f,_0x30363c={};_0x30363c['bQvQW']=_0x5a93e8(0x18e),_0x30363c[_0x5a93e8(0x1cf)]=function(_0x1757b6,_0x444943){return _0x1757b6===_0x444943;},_0x30363c[_0x5a93e8(0x173)]=function(_0x562c1f,_0xaf7496){return _0x562c1f===_0xaf7496;},_0x30363c[_0x5a93e8(0x1ec)]=function(_0x5669f5,_0x726dfb){return _0x5669f5===_0x726dfb;},_0x30363c[_0x5a93e8(0x182)]=_0x5a93e8(0x1f4);const _0x586ff9=_0x30363c;await super[_0x5a93e8(0x1dd)](_0x2c2a30,_0x5e3d2f,_0x41e8a4);const _0x5ac947=this['resolveInstance'](_0x2c2a30,_0x5e3d2f,_0x41e8a4);if(!_0x5ac947){logger[_0x5a93e8(0x19a)](_0x586ff9[_0x5a93e8(0x230)]);return;}try{let _0x32a7d3,_0x5b98e3;switch(_0x2c2a30){case TestFrameworkState[_0x5a93e8(0x1a8)]:_0x32a7d3=_0x41e8a4['test'],_0x5b98e3=TestInfo[_0x5a93e8(0x1c7)](_0x32a7d3['id']);if(_0x586ff9[_0x5a93e8(0x1cf)](_0x5e3d2f,HookState[_0x5a93e8(0x1d4)])){logger[_0x5a93e8(0x19a)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x32a7d3['id']);const _0x5c8990={};_0x5c8990[_0x5a93e8(0x234)]=_0x5b98e3,_0x5c8990[_0x5a93e8(0x22e)]=_0x32a7d3,_0x5ac947[_0x5a93e8(0x208)](this[_0x5a93e8(0x19b)](_0x5c8990)),logger[_0x5a93e8(0x19a)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x32a7d3['id']),await this['processPendingHooks'](_0x5ac947,_0x32a7d3['id']);}else{if(_0x586ff9[_0x5a93e8(0x173)](_0x5e3d2f,HookState['POST'])){const _0x221685={};_0x221685[_0x5a93e8(0x234)]=_0x5b98e3,_0x221685[_0x5a93e8(0x22e)]=_0x32a7d3,_0x5ac947[_0x5a93e8(0x208)](this[_0x5a93e8(0x1ae)](_0x221685)),await this[_0x5a93e8(0x183)](_0x5ac947,_0x32a7d3['id']);}}break;case TestFrameworkState[_0x5a93e8(0x211)]:_0x586ff9[_0x5a93e8(0x1ec)](_0x5e3d2f,HookState[_0x5a93e8(0x20a)])&&await this[_0x5a93e8(0x1c1)](_0x5ac947,_0x2c2a30,_0x41e8a4);break;default:if(CLIUtils[_0x5a93e8(0x16c)](_0x2c2a30[_0x5a93e8(0x229)]()['split']('.')[0x1])){const _0x4bb87a=await this['trackHookEvent'](_0x5ac947,_0x2c2a30,_0x5e3d2f,_0x41e8a4);_0x5ac947['addMultipleEntries'](_0x4bb87a);}else logger[_0x5a93e8(0x19a)]('trackEvent:\x20unsupported\x20testFrameworkState='+_0x2c2a30+_0x5a93e8(0x21f)+_0x5e3d2f);break;}}catch(_0x32fb6e){logger[_0x5a93e8(0x1a2)](util[_0x5a93e8(0x1fa)](_0x586ff9[_0x5a93e8(0x182)],_0x2c2a30,_0x5e3d2f,_0x41e8a4[_0x5a93e8(0x218)],_0x32fb6e));}_0x41e8a4['instance']=_0x5ac947,await this[_0x5a93e8(0x1b2)](_0x5ac947,_0x2c2a30,_0x5e3d2f,_0x41e8a4);}['resolveInstance'](_0x12db15,_0xdce489,_0x3a50c9={}){const _0x1f84aa=a95_0x1aa02f,_0x36e347={};_0x36e347['kmbsZ']=function(_0x12ae14,_0x5e1aba){return _0x12ae14===_0x5e1aba;};const _0x4fa662=_0x36e347;let _0x3eb618=null;return(_0x4fa662['kmbsZ'](_0x12db15,TestFrameworkState[_0x1f84aa(0x1b1)])||_0x4fa662[_0x1f84aa(0x1b8)](_0x12db15,TestFrameworkState[_0x1f84aa(0x18d)]))&&this[_0x1f84aa(0x1e1)](_0x12db15,_0x3a50c9),_0x3eb618=TestFramework['getTrackedInstance'](),_0x3eb618;}['trackCucumberInstance'](_0x49e07d,_0x213862){const _0x2eaa5b=a95_0x1aa02f,_0x38f08c=CLIUtils[_0x2eaa5b(0x17a)](),_0x473b6a=TrackedInstance[_0x2eaa5b(0x196)](_0x38f08c);let _0x8e93c9=null;logger[_0x2eaa5b(0x19a)]('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0x38f08c+_0x2eaa5b(0x1a0)+_0x49e07d),_0x8e93c9=new TestFrameworkInstance(_0x473b6a,this[_0x2eaa5b(0x1b4)](),this[_0x2eaa5b(0x219)](),_0x49e07d,HookState[_0x2eaa5b(0x18d)]),TestFramework[_0x2eaa5b(0x223)](_0x473b6a,_0x8e93c9),logger[_0x2eaa5b(0x19a)](_0x2eaa5b(0x1f9)+_0x473b6a['getId']()+'\x20target='+_0x38f08c);}['parseCucumberTest'](_0x4002c8){const _0x3a2a19=a95_0x1aa02f,_0x426351={};_0x426351[_0x3a2a19(0x1e4)]=_0x3a2a19(0x16e);const _0x198322=_0x426351,{testUUID:_0x5daa96,testData:_0x12515a}=_0x4002c8;if(!_0x12515a||!_0x12515a[_0x3a2a19(0x237)])return logger[_0x3a2a19(0x19a)](_0x198322[_0x3a2a19(0x1e4)]),{};const _0x5a11cc=_0x5daa96,_0x446421=_0x12515a[_0x3a2a19(0x237)],_0x2b4282=this[_0x3a2a19(0x1b4)]()[0x0],_0x22fc5f=this[_0x3a2a19(0x219)](),_0x262a1b={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x2b4282,[TestFrameworkConstants[_0x3a2a19(0x193)]]:_0x22fc5f[_0x2b4282],[TestFrameworkConstants[_0x3a2a19(0x1a6)]]:[],[TestFrameworkConstants[_0x3a2a19(0x232)]]:{},[TestFrameworkConstants[_0x3a2a19(0x1e9)]]:{},[TestFrameworkConstants[_0x3a2a19(0x1bb)]]:_0x5a11cc,[TestFrameworkConstants[_0x3a2a19(0x1bf)]]:TestFrameworkConstants[_0x3a2a19(0x21b)],[TestFrameworkConstants['KEY_AUTOMATE_SESSION_NAME']]:_0x12515a[_0x3a2a19(0x1a1)]||'',[TestFrameworkConstants[_0x3a2a19(0x1d8)]]:_0x12515a[_0x3a2a19(0x1c0)]||'',[TestFrameworkConstants[_0x3a2a19(0x1cb)]]:_0x446421,[TestFrameworkConstants[_0x3a2a19(0x1b5)]]:_0x12515a[_0x3a2a19(0x1a1)]||'',[TestFrameworkConstants[_0x3a2a19(0x22d)]]:_0x12515a[_0x3a2a19(0x220)]||'',[TestFrameworkConstants[_0x3a2a19(0x215)]]:_0x12515a[_0x3a2a19(0x170)]?.['code']||null,[TestFrameworkConstants[_0x3a2a19(0x191)]]:_0x12515a['tags']||[],[TestFrameworkConstants[_0x3a2a19(0x1b7)]]:_0x12515a[_0x3a2a19(0x20e)]||new Date()[_0x3a2a19(0x200)](),[TestFrameworkConstants[_0x3a2a19(0x1de)]]:_0x12515a['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x3a2a19(0x21a)]]:_0x12515a[_0x3a2a19(0x174)]||[],[TestFrameworkConstants[_0x3a2a19(0x187)]]:_0x12515a[_0x3a2a19(0x1a9)]?.[_0x3a2a19(0x21c)]||_0x12515a[_0x3a2a19(0x1a1)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants[_0x3a2a19(0x1fb)]]:_0x12515a[_0x3a2a19(0x1a4)]||{}};TestInfo['setTestDetails'](_0x446421,_0x262a1b),logger[_0x3a2a19(0x19a)](_0x3a2a19(0x175)+_0x12515a['name']+'\x20with\x20UUID:\x20'+_0x5a11cc);const _0x1fada5={};return _0x1fada5[_0x446421]=_0x262a1b,_0x1fada5;}[a95_0x1aa02f(0x1ae)](_0x4935af){const _0xe3478a=a95_0x1aa02f,_0x45bb95={'AqhfW':_0xe3478a(0x1ed),'WXJuT':_0xe3478a(0x1ff),'ptllT':function(_0x3ca47c,_0x2a2770){return _0x3ca47c===_0x2a2770;},'luOFn':_0xe3478a(0x18a),'FNfHK':'UnhandledError','GyzAi':function(_0x26ad93,_0x306e3a,_0x375f8a){return _0x26ad93(_0x306e3a,_0x375f8a);},'UQicp':function(_0x46085d,_0x593920){return _0x46085d>_0x593920;},'DscFS':function(_0x3d8bac,_0x22cb50){return _0x3d8bac>_0x22cb50;}},{testUUID:_0x54f85e,testData:_0x47159c}=_0x4935af;if(!_0x47159c||!_0x47159c[_0xe3478a(0x237)])return logger[_0xe3478a(0x19a)](_0x45bb95[_0xe3478a(0x22c)]),{};const _0x3b1625=this[_0xe3478a(0x171)](TestFrameworkState['TEST'],HookState[_0xe3478a(0x20a)]),_0x651fcf=_0x47159c[_0xe3478a(0x237)],_0x356217=TestInfo[_0xe3478a(0x1fe)](_0x651fcf)||{},_0x22ee7b=_0x356217?_0x356217[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{}:{},_0x3ef8fc={..._0x356217,[TestFrameworkConstants[_0xe3478a(0x1bf)]]:_0x47159c[_0xe3478a(0x206)]||_0x45bb95['WXJuT'],[TestFrameworkConstants[_0xe3478a(0x1d2)]]:_0x47159c[_0xe3478a(0x1f2)]||new Date()[_0xe3478a(0x200)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()['toISOString'](),[TestFrameworkConstants[_0xe3478a(0x1f7)]]:_0x22ee7b,[TestFrameworkConstants[_0xe3478a(0x1e3)]]:[],[TestFrameworkConstants[_0xe3478a(0x1fb)]]:_0x47159c[_0xe3478a(0x1a4)]||{}};_0x45bb95['ptllT'](_0x47159c['result'],_0x45bb95[_0xe3478a(0x214)])&&_0x47159c['failure']&&(_0x3ef8fc[TestFrameworkConstants[_0xe3478a(0x20f)]]=_0x47159c[_0xe3478a(0x1a7)]||_0x45bb95['FNfHK'],_0x3ef8fc[TestFrameworkConstants[_0xe3478a(0x209)]]=_0x47159c[_0xe3478a(0x17e)]||'',_0x3ef8fc[TestFrameworkConstants[_0xe3478a(0x1bd)]]=_0x47159c['failure']);const _0x6d39bc=TestInfo[_0xe3478a(0x1fe)](_0x651fcf)[TestFrameworkConstants[_0xe3478a(0x1da)]]||{},_0x565daa=_0x45bb95[_0xe3478a(0x217)](getManualUploadLogs,_0x6d39bc,_0x3b1625['getAllData']()[_0xe3478a(0x224)](_0x651fcf)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x45bb95[_0xe3478a(0x1b9)](_0x565daa[_0xe3478a(0x218)],0x0)){const _0x12f4f2=_0x3ef8fc[TestFrameworkConstants[_0xe3478a(0x1e3)]]||[];_0x3ef8fc[TestFrameworkConstants[_0xe3478a(0x1e3)]]=[..._0x12f4f2,..._0x565daa];}_0x47159c[_0xe3478a(0x1bc)]&&_0x45bb95['DscFS'](_0x47159c[_0xe3478a(0x1bc)][_0xe3478a(0x218)],0x0)&&(_0x3ef8fc[TestFrameworkConstants[_0xe3478a(0x232)]]=_0x47159c[_0xe3478a(0x1bc)]);TestInfo[_0xe3478a(0x1c9)](_0x651fcf,_0x3ef8fc),logger['debug'](_0xe3478a(0x1b3)+_0x47159c[_0xe3478a(0x1a1)]+'\x20with\x20result:\x20'+_0x47159c[_0xe3478a(0x206)]);const _0x2f26dc={};return _0x2f26dc[_0x651fcf]=_0x3ef8fc,_0x2f26dc;}async['trackHookEvent'](_0x35d9d9,_0x234484,_0x2dd735,_0x12de73){const _0x30ca73=a95_0x1aa02f,_0x5368b8={'YFEnO':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','SNOfZ':function(_0x20d994){return _0x20d994();},'JTPEB':function(_0x232d4c,_0x1eebe0){return _0x232d4c in _0x1eebe0;},'pbIJm':function(_0x21fed4,_0x2e9be2){return _0x21fed4===_0x2e9be2;},'cBBxQ':function(_0x25c276,_0x1845a7){return _0x25c276>_0x1845a7;},'eBexC':'failed','EgquB':'UnhandledError','jaQdl':'passed','JoqUL':function(_0x4592ca,_0x103f80){return _0x4592ca!==_0x103f80;}},{hookData:_0x433b18}=_0x12de73;if(!_0x433b18)return logger[_0x30ca73(0x19a)](_0x5368b8[_0x30ca73(0x195)]),{};const _0x2ae37c=_0x433b18[_0x30ca73(0x237)]||_0x5368b8[_0x30ca73(0x1e2)](uuidv4),_0x4a92a1=_0x433b18['test_run_id'],_0x2b188a=_0x234484[_0x30ca73(0x229)]()['split']('.')[0x1],_0x3c0ee1=TestInfo[_0x30ca73(0x1fe)](_0x4a92a1)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x48203a=_0x35d9d9[_0x30ca73(0x1d5)]()['get'](_0x4a92a1);if(!_0x48203a)return logger['debug'](_0x30ca73(0x221)+_0x4a92a1+_0x30ca73(0x235)),this[_0x30ca73(0x216)](_0x35d9d9,_0x4a92a1,_0x234484,_0x2dd735,_0x12de73),{};let _0x34d219=_0x48203a[TestFrameworkConstants[_0x30ca73(0x1e9)]];!_0x34d219&&(_0x34d219={});!_0x5368b8[_0x30ca73(0x181)](_0x2b188a,_0x34d219)&&(_0x34d219[_0x2b188a]=[]);let _0x588f55=_0x48203a[TestFrameworkConstants[_0x30ca73(0x232)]];!_0x588f55&&(_0x588f55={});!_0x5368b8['JTPEB'](_0x2b188a,_0x588f55)&&(_0x588f55[_0x2b188a]=[]);const _0x5c9f9b={[TestFrameworkConstants[_0x30ca73(0x1e9)]]:_0x34d219,[TestFrameworkConstants[_0x30ca73(0x232)]]:_0x588f55},_0x5a9e04={};_0x5a9e04[_0x4a92a1]=_0x5c9f9b;const _0x328f78=_0x5a9e04;if(_0x5368b8[_0x30ca73(0x185)](_0x2dd735,HookState['PRE'])){const _0x5cebc9={[TestFrameworkConstants[_0x30ca73(0x222)]]:_0x2ae37c,[TestFrameworkConstants[_0x30ca73(0x19f)]]:TestFrameworkConstants[_0x30ca73(0x202)],[TestFrameworkConstants[_0x30ca73(0x1ca)]]:_0x433b18['started_at'],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x433b18[_0x30ca73(0x1a1)]||_0x433b18[_0x30ca73(0x210)],[TestFrameworkConstants[_0x30ca73(0x1f7)]]:_0x3c0ee1};_0x5cebc9[_0x30ca73(0x1ba)]=_0x2b188a;const _0x14fbbb=_0x5cebc9;_0x34d219[_0x2b188a][_0x30ca73(0x189)](_0x14fbbb),_0x328f78[_0x4a92a1][TestFrameworkConstants[_0x30ca73(0x21d)]]=_0x2b188a,logger['debug']('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x2b188a+'\x20&\x20hook\x20=\x20'+_0x14fbbb+_0x30ca73(0x1d9)+_0x12de73);}else{if(_0x5368b8['pbIJm'](_0x2dd735,HookState[_0x30ca73(0x20a)])){const _0x4d3340=_0x433b18['result'],_0x37e1f6=_0x34d219[_0x2b188a]||[];logger[_0x30ca73(0x19a)](_0x30ca73(0x1f5)+_0x37e1f6+_0x30ca73(0x20c)+_0x12de73);if(_0x5368b8['cBBxQ'](_0x37e1f6[_0x30ca73(0x218)],0x0)){const _0x1ca6ef=_0x37e1f6[_0x30ca73(0x1df)]();_0x5368b8['pbIJm'](_0x433b18['result'],_0x5368b8[_0x30ca73(0x184)])&&_0x433b18[_0x30ca73(0x192)]?(_0x1ca6ef[TestFrameworkConstants[_0x30ca73(0x1e6)]]=_0x433b18[_0x30ca73(0x1a7)]||_0x5368b8[_0x30ca73(0x1c2)],_0x1ca6ef[TestFrameworkConstants[_0x30ca73(0x190)]]=_0x433b18['failure_reason']||'',_0x1ca6ef[TestFrameworkConstants[_0x30ca73(0x197)]]=_0x433b18[_0x30ca73(0x192)]):_0x1ca6ef[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x5368b8['jaQdl'];_0x5368b8[_0x30ca73(0x22f)](_0x4d3340,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x1ca6ef[TestFrameworkConstants[_0x30ca73(0x19f)]]=_0x4d3340);_0x1ca6ef[TestFrameworkConstants[_0x30ca73(0x1a5)]]=_0x433b18[_0x30ca73(0x18f)]||new Date()['toISOString'](),_0x1ca6ef[TestFrameworkConstants[_0x30ca73(0x1f7)]]=_0x3c0ee1;const _0x2d70f1=_0x1ca6ef[TestFrameworkConstants[_0x30ca73(0x222)]];!_0x588f55[_0x2b188a]&&(_0x588f55[_0x2b188a]=[]),_0x588f55[_0x2b188a]['push'](_0x1ca6ef),_0x328f78[_0x4a92a1][TestFrameworkConstants[_0x30ca73(0x188)]]=_0x2b188a;}}}return logger[_0x30ca73(0x19a)](_0x30ca73(0x1f3)+_0x433b18[_0x30ca73(0x210)]+'\x20with\x20id\x20'+_0x2ae37c+_0x30ca73(0x198)+_0x4a92a1),_0x328f78;}[a95_0x1aa02f(0x1c3)](_0x52c326){const _0x30a5a6=a95_0x1aa02f,_0x24b500={};_0x24b500[_0x30a5a6(0x212)]=_0x30a5a6(0x1dc);const _0x592031=_0x24b500;try{const _0x27d247=_0x52c326[_0x30a5a6(0x236)]?_0x52c326[_0x30a5a6(0x236)]['id']:_0x52c326[_0x30a5a6(0x1d6)][_0x30a5a6(0x1fd)],_0x525850=_0x52c326[_0x30a5a6(0x1fc)],_0x3b0011=_0x525850[_0x30a5a6(0x177)](),_0x13d0b4=_0x525850[_0x30a5a6(0x1d5)]()['get'](_0x27d247);if(!_0x13d0b4)return logger[_0x30a5a6(0x19a)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x27d247),{};logger['debug'](_0x30a5a6(0x178)+_0x27d247);const {[TestFrameworkConstants[_0x30a5a6(0x204)]]:_0x8da6ed='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x81211='',[TestFrameworkConstants[_0x30a5a6(0x1b7)]]:_0x2bd7b1='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x101a2e=''}=_0x13d0b4,_0x12874d=_0x525850[_0x30a5a6(0x1a3)]()[_0x30a5a6(0x229)]()[_0x30a5a6(0x1be)]('.')[0x1],_0x49d567=_0x525850['getCurrentHookState']()['toString']()[_0x30a5a6(0x1be)]('.')[0x1],_0xcf2ebd=global?.[_0x30a5a6(0x1cc)]??0x0,_0x2817fb=_0x525850[_0x30a5a6(0x19d)](),_0x1fdf2c=Buffer[_0x30a5a6(0x227)](JSON['stringify'](_0x13d0b4))[_0x30a5a6(0x229)](_0x592031[_0x30a5a6(0x212)]),_0x2dca75={'hash':_0x3b0011[_0x30a5a6(0x16f)](),'threadId':_0x3b0011['getThreadId']()[_0x30a5a6(0x229)](),'processId':_0x3b0011[_0x30a5a6(0x1d1)]()['toString']()},_0x354616={};_0x354616[_0x30a5a6(0x17d)]=_0xcf2ebd,_0x354616[_0x30a5a6(0x1af)]=_0x8da6ed,_0x354616[_0x30a5a6(0x1c5)]=_0x81211,_0x354616[_0x30a5a6(0x205)]=_0x12874d,_0x354616[_0x30a5a6(0x1cd)]=_0x49d567,_0x354616['startedAt']=_0x2bd7b1,_0x354616[_0x30a5a6(0x1c4)]=_0x101a2e,_0x354616[_0x30a5a6(0x237)]=_0x2817fb,_0x354616[_0x30a5a6(0x1ce)]=_0x1fdf2c,_0x354616[_0x30a5a6(0x1b6)]=_0x2dca75;const _0x11bef6=_0x354616;return logger[_0x30a5a6(0x19a)](_0x30a5a6(0x199)+_0x27d247+'\x20testState:\x20'+_0x12874d+_0x30a5a6(0x180)+_0x49d567),_0x11bef6;}catch(_0xbb3d38){return logger['error'](_0x30a5a6(0x1ee)+util[_0x30a5a6(0x1fa)](_0xbb3d38)),{};}}async[a95_0x1aa02f(0x1c1)](_0x458dd5,_0x1064f5,_0x4446a9){const _0x1de899=a95_0x1aa02f,_0x1f8c36={'xaTPb':function(_0x904157,_0x35c0d6,_0xb75722){return _0x904157(_0x35c0d6,_0xb75722);},'CStDA':function(_0x49bc81,_0xc4ba6e){return _0x49bc81===_0xc4ba6e;},'Ytwnx':_0x1de899(0x1c6),'lmXkr':function(_0xd22a52,_0xec73b5){return _0xd22a52/_0xec73b5;},'PQUeH':function(_0x3a19c0,_0x314ed8){return _0x3a19c0<_0x314ed8;},'beYms':function(_0x2f8148,_0x389931){return _0x2f8148*_0x389931;},'VoPfR':function(_0x866411,_0x50738a){return _0x866411+_0x50738a;},'KkNRf':'Cucumber\x20log\x20created\x20event'};try{const _0x1277e3=_0x4446a9[_0x1de899(0x234)],_0xd3dd94=_0x458dd5[_0x1de899(0x1d5)]()[_0x1de899(0x224)](_0x1277e3),{[TestFrameworkConstants[_0x1de899(0x204)]]:_0x1ea433='',[TestFrameworkConstants[_0x1de899(0x193)]]:_0x104c11=''}=_0xd3dd94,_0xa7d163=TestInfo['readLogObjects'](_0x1277e3),_0x146ce2=TestInfo['getTestDetails'](_0x1277e3)[TestFrameworkConstants[_0x1de899(0x1da)]]||{},_0x1cd277=_0x1f8c36[_0x1de899(0x1e5)](getMediaArtifactsLogs,_0x146ce2,_0x458dd5[_0x1de899(0x1d5)]()[_0x1de899(0x224)](_0x1277e3)[TestFrameworkConstants[_0x1de899(0x1bb)]]),_0x5c1e3b=(_0xa7d163||[])['concat'](_0x1cd277||[]);if(!_0x5c1e3b||_0x1f8c36[_0x1de899(0x225)](_0x5c1e3b[_0x1de899(0x218)],0x0)){logger[_0x1de899(0x19a)](_0x1f8c36[_0x1de899(0x19e)]);return;}const _0x52cd84=0x28,_0x23fd34=Math['ceil'](_0x1f8c36[_0x1de899(0x1c8)](_0x5c1e3b['length'],_0x52cd84));for(let _0x647965=0x0;_0x1f8c36[_0x1de899(0x21e)](_0x647965,_0x23fd34);_0x647965++){const _0xa0a174=_0x1f8c36[_0x1de899(0x1ef)](_0x647965,_0x52cd84),_0x50d6b9=_0x1f8c36[_0x1de899(0x1b0)](_0xa0a174,_0x52cd84),_0x4ef3a2=_0x5c1e3b[_0x1de899(0x1d0)](_0xa0a174,_0x50d6b9),_0x21b33a={'platformIndex':global?.[_0x1de899(0x1cc)]??0x0,'logs':_0x4ef3a2,'testFrameworkName':_0x1ea433,'testFrameworkVersion':_0x104c11,'testFrameworkState':_0x1064f5['toString']()[_0x1de899(0x1be)]('.')[0x1]};logger['debug'](_0x1de899(0x201)+_0x1277e3+_0x1de899(0x1ac)+_0x1f8c36[_0x1de899(0x1b0)](_0x647965,0x1)+'/'+_0x23fd34+_0x1de899(0x172)+util['inspect'](_0x21b33a));const _0x1058dc=await GrpcClient['getInstance']()[_0x1de899(0x233)](_0x21b33a);logger[_0x1de899(0x19a)](_0x1de899(0x201)+_0x1277e3+'\x20batch\x20'+_0x1f8c36['VoPfR'](_0x647965,0x1)+'/'+_0x23fd34+'\x20response='+util[_0x1de899(0x226)](_0x1058dc));}}catch(_0x198e7e){logger['error'](_0x1de899(0x228)+util[_0x1de899(0x1fa)](_0x198e7e));}logger[_0x1de899(0x19a)](_0x1f8c36[_0x1de899(0x194)]);}[a95_0x1aa02f(0x216)](_0x20e1d9,_0xdcd571,_0x5e3319,_0x26decf,_0x2ea156){const _0x4d822a=a95_0x1aa02f,_0x2b538b={'testId':_0xdcd571,'testFrameworkState':_0x5e3319,'hookState':_0x26decf,'args':_0x2ea156,'timestamp':new Date()[_0x4d822a(0x200)]()};_0x20e1d9[_0x4d822a(0x207)](_0xdcd571,_0x2b538b),logger[_0x4d822a(0x19a)](_0x4d822a(0x18c)+_0xdcd571+_0x4d822a(0x1e0)+_0x5e3319+',\x20hookState:\x20'+_0x26decf);}async[a95_0x1aa02f(0x183)](_0x40269f,_0x57dbe7){const _0x2901f1=a95_0x1aa02f,_0x4ea533={};_0x4ea533['mPask']=function(_0x12f131,_0x1e50c4){return _0x12f131>_0x1e50c4;};const _0x2b0335=_0x4ea533;if(!_0x40269f[_0x2901f1(0x1f8)](_0x57dbe7))return;const _0x569015=_0x40269f[_0x2901f1(0x1db)](_0x57dbe7);logger[_0x2901f1(0x19a)](_0x2901f1(0x231)+_0x569015['length']+_0x2901f1(0x19c)+_0x57dbe7);for(const _0x3be78a of _0x569015){try{const _0x44a628=await this[_0x2901f1(0x17c)](_0x40269f,_0x3be78a[_0x2901f1(0x205)],_0x3be78a['hookState'],_0x3be78a[_0x2901f1(0x1f1)]);_0x44a628&&_0x2b0335[_0x2901f1(0x1ab)](Object[_0x2901f1(0x16d)](_0x44a628)[_0x2901f1(0x218)],0x0)&&_0x40269f[_0x2901f1(0x208)](_0x44a628),await this[_0x2901f1(0x1b2)](_0x40269f,_0x3be78a[_0x2901f1(0x205)],_0x3be78a[_0x2901f1(0x1cd)],_0x3be78a[_0x2901f1(0x1f1)]);}catch(_0x1ee73f){logger['error']('Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20'+_0x57dbe7+_0x2901f1(0x1eb)+_0x1ee73f);}}_0x40269f[_0x2901f1(0x22a)](_0x57dbe7),logger[_0x2901f1(0x19a)](_0x2901f1(0x22b)+_0x57dbe7);}}module[a95_0x1aa02f(0x17b)]=CucumberTestFramework;
|
|
1
|
+
function a95_0x1d99(_0x4bbd08,_0xf231f2){const _0xc4200b=a95_0xc420();return a95_0x1d99=function(_0x1d99d6,_0x55e890){_0x1d99d6=_0x1d99d6-0xab;let _0x3349d1=_0xc4200b[_0x1d99d6];return _0x3349d1;},a95_0x1d99(_0x4bbd08,_0xf231f2);}function a95_0xc420(){const _0x2324f5=['location','KEY_TEST_ATTACHMENTS','code','\x20with\x20result:\x20','KEY_TEST_UUID','addMultipleEntries','KEY_CUSTOM_TAGS','Tnnob','started_at','../cliUtils.js','KEY_TEST_FAILURE_REASON','epDTm','VMxaM','DEFAULT_HOOK_RESULT','body','get','customRerunParam','pop','instance','exports','\x20&\x20hook\x20=\x20','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','args','rerun_name','setTrackedInstance','KEY_TEST_CODE',',\x20hookState:\x20','trackEvent','KEY_HOOK_LAST_FINISHED','ituLL','QScur','finishedAt','util','KEY_TEST_SCOPE','Stored\x20pending\x20hook\x20for\x20testId:\x20','7793950dDuooc','KEY_TEST_META','getTrackedInstance','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','KEY_LOGS','KEY_HOOKS_FINISHED','DpDUN','sznJp','slice','parseCucumberTestResult','unknown','AaNJA','hook_type','4147LlBYRM','CucumberTestFramework','KEY_TEST_FAILURE_TYPE','EHElo','DHzZA','cnxOk','ceil','UnhandledError','33426eavgqY','startedAt','failure_type','KEY_TEST_LOCATION','../instances/trackedInstance.js','error','../state/testFrameworkState.js','172151zLHjao','KEY_HOOK_RESULT','PRE','Cucumber\x20log\x20created\x20event','WdLaN','Error\x20in\x20createTestFrameworkEventPayload:\x20','result','\x20pending\x20hooks\x20for\x20testId:\x20','jnJVG','testFrameworkState','\x20hookState:\x20','KEY_TEST_ID','\x20and\x20args\x20=\x20','TmZje','trackHookEvent','1960utXGkW','KEY_TEST_RERUN_NAME','pkDpb','sendLogCreatedEvent','getRef','KEY_TEST_LOGS','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','Parsed\x20cucumber\x20test:\x20','resolveInstance','KEY_EVENT_ENDED_AT','getTestFrameworksVersions','runHooks','testData','getProcessId','hookData','KEY_HOOK_LOGS','cAKWY','base64','getTestDetails','format','finished_at','1158104OlzZXK','aKmjN','toString','tags','DEFAULT_TEST_RESULT','KEY_TEST_RESULT','getTestUUID','addPendingHook','getTestFrameworks','\x20for\x20test:\x20','processPendingHooks','passed','955938fXXFmk','testUUID','\x20&\x20hookState=','debug','getId','createTestFrameworkEventPayload','KEY_HOOK_NAME','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KEY_TEST_RESULT_AT','length','RFSNx','from','TEST','LWevh','INIT_TEST','key','yNEnK','createContext','failure_reason','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','rBkvd','../grpcClient','KEY_TEST_STARTED_AT','87540NqRXya','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','hookState','../TestInfo.js','browserstackPlatformIndex','KEY_TEST_FRAMEWORK_VERSION','./constants/testFrameworkConstants.js','matchHookRegex','lqfrS','endedAt','Trico','inspect','hooks','KEY_HOOK_FAILURE_REASON','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','trackCucumberInstance','toISOString','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','FUrHd','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','KEY_HOOK_ID','getAllData','sendLogCreatedEvent:\x20for\x20testId:\x20','210dJkHDa','Tracked\x20cucumber\x20hook\x20event:\x20','dZjPU','concat','\x20\x20and\x20args\x20=\x20','test_run_id','KEY_HOOK_FAILURE_TYPE','\x20payload=','split','../instances/testFrameworkInstance.js',',\x20state:\x20','storePendingHook','getCurrentInstanceName','parseCucumberTest','../../../helpers/classLogger.js',',\x20storing\x20as\x20pending\x20hook','scopes','KEY_EVENT_STARTED_AT','KEY_HOOKS_STARTED','KEY_AUTOMATE_SESSION_NAME','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','keys','testFrameworkVersion','getCurrentHookState','test','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','logCreatedEvent','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','wjyvl','POST','tPoRw','trackCucumberInstance:\x20saved\x20instance\x20contextId=','eventJson','KEY_TEST_FAILURE','meta','./testFramework','uuid','Updated\x20cucumber\x20test\x20result:\x20','KEY_HOOK_FAILURE','KEY_TEST_FRAMEWORK_NAME','xuUgP','2nkUChb','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','trackEvent:\x20unsupported\x20testFrameworkState=',',\x20state=','1170496qrHEOT','name','5fzyAvm','KEY_TEST_ENDED_AT','\x20response=','RAaWz','TrbWh','\x20batch\x20','failed','KEY_TEST_FILE_PATH','hasPendingHooks','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'];a95_0xc420=function(){return _0x2324f5;};return a95_0xc420();}const a95_0x36cd21=a95_0x1d99;(function(_0x406bd7,_0x1e0ce1){const _0xdbcea6=a95_0x1d99,_0x2ad0e0=_0x406bd7();while(!![]){try{const _0x395720=parseInt(_0xdbcea6(0x102))/0x1*(-parseInt(_0xdbcea6(0x106))/0x2)+-parseInt(_0xdbcea6(0xab))/0x3+parseInt(_0xdbcea6(0x177))/0x4*(parseInt(_0xdbcea6(0x108))/0x5)+parseInt(_0xdbcea6(0xd9))/0x6*(parseInt(_0xdbcea6(0x153))/0x7)+-parseInt(_0xdbcea6(0x162))/0x8*(parseInt(_0xdbcea6(0x14c))/0x9)+-parseInt(_0xdbcea6(0x136))/0xa+-parseInt(_0xdbcea6(0x144))/0xb*(-parseInt(_0xdbcea6(0xc2))/0xc);if(_0x395720===_0x1e0ce1)break;else _0x2ad0e0['push'](_0x2ad0e0['shift']());}catch(_0x1f9e53){_0x2ad0e0['push'](_0x2ad0e0['shift']());}}}(a95_0xc420,0xb046d));const TestFramework=require(a95_0x36cd21(0xfc)),TestFrameworkState=require(a95_0x36cd21(0x152)),HookState=require('../state/hookState.js'),{createClassLogger}=require(a95_0x36cd21(0xe7)),TestFrameworkInstance=require(a95_0x36cd21(0xe2)),CLIUtils=require(a95_0x36cd21(0x11c)),TrackedInstance=require(a95_0x36cd21(0x150)),TestFrameworkConstants=require(a95_0x36cd21(0xc8)),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger(a95_0x36cd21(0x145)),{v4:uuidv4}=require('uuid'),util=require(a95_0x36cd21(0x133)),TestInfo=require(a95_0x36cd21(0xc5)),GrpcClient=require(a95_0x36cd21(0xc0));class CucumberTestFramework extends TestFramework{constructor(_0x3ac5a9,_0x53225a,_0x24a4b8){super(_0x3ac5a9,_0x53225a,_0x24a4b8);}async[a95_0x36cd21(0x12e)](_0xc19406,_0xb8563a,_0x6f7069={}){const _0x2ce304=a95_0x36cd21,_0x27f8c5={};_0x27f8c5[_0x2ce304(0x178)]=_0x2ce304(0x103),_0x27f8c5[_0x2ce304(0x147)]=function(_0x12f5d4,_0x561e8c){return _0x12f5d4===_0x561e8c;},_0x27f8c5['TrbWh']=function(_0x2737a6,_0x35fb4c){return _0x2737a6===_0x35fb4c;},_0x27f8c5[_0x2ce304(0x164)]=function(_0x2bdb8d,_0x3cae68){return _0x2bdb8d===_0x3cae68;},_0x27f8c5[_0x2ce304(0xf5)]=_0x2ce304(0x168);const _0x8a0d7c=_0x27f8c5;await super[_0x2ce304(0x12e)](_0xc19406,_0xb8563a,_0x6f7069);const _0x21184f=this[_0x2ce304(0x16a)](_0xc19406,_0xb8563a,_0x6f7069);if(!_0x21184f){logger['debug'](_0x8a0d7c[_0x2ce304(0x178)]);return;}try{let _0x5cf666,_0x4ec978;switch(_0xc19406){case TestFrameworkState[_0x2ce304(0xb7)]:_0x5cf666=_0x6f7069['test'],_0x4ec978=TestInfo[_0x2ce304(0x17d)](_0x5cf666['id']);if(_0x8a0d7c[_0x2ce304(0x147)](_0xb8563a,HookState[_0x2ce304(0x155)])){logger['debug'](_0x2ce304(0xd0)+_0x5cf666['id']);const _0x55fbf6={};_0x55fbf6['testUUID']=_0x4ec978,_0x55fbf6[_0x2ce304(0x16e)]=_0x5cf666,_0x21184f['addMultipleEntries'](this['parseCucumberTest'](_0x55fbf6)),logger[_0x2ce304(0xae)](_0x2ce304(0x128)+_0x5cf666['id']),await this[_0x2ce304(0x181)](_0x21184f,_0x5cf666['id']);}else{if(_0x8a0d7c[_0x2ce304(0x10c)](_0xb8563a,HookState['POST'])){const _0x419d0f={};_0x419d0f['testUUID']=_0x4ec978,_0x419d0f['testData']=_0x5cf666,_0x21184f[_0x2ce304(0x118)](this['parseCucumberTestResult'](_0x419d0f)),await this[_0x2ce304(0x181)](_0x21184f,_0x5cf666['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x8a0d7c[_0x2ce304(0x164)](_0xb8563a,HookState[_0x2ce304(0xf6)])&&await this[_0x2ce304(0x165)](_0x21184f,_0xc19406,_0x6f7069);break;default:if(CLIUtils[_0x2ce304(0xc9)](_0xc19406[_0x2ce304(0x179)]()[_0x2ce304(0xe1)]('.')[0x1])){const _0x4c53e3=await this[_0x2ce304(0x161)](_0x21184f,_0xc19406,_0xb8563a,_0x6f7069);_0x21184f[_0x2ce304(0x118)](_0x4c53e3);}else logger[_0x2ce304(0xae)](_0x2ce304(0x104)+_0xc19406+_0x2ce304(0xad)+_0xb8563a);break;}}catch(_0x196e9f){logger[_0x2ce304(0x151)](util[_0x2ce304(0x175)](_0x8a0d7c[_0x2ce304(0xf5)],_0xc19406,_0xb8563a,_0x6f7069[_0x2ce304(0xb4)],_0x196e9f));}_0x6f7069[_0x2ce304(0x125)]=_0x21184f,await this[_0x2ce304(0x16d)](_0x21184f,_0xc19406,_0xb8563a,_0x6f7069);}[a95_0x36cd21(0x16a)](_0x35a83d,_0x4f325b,_0x4be3a4={}){const _0x3bad41=a95_0x36cd21,_0x5356b9={};_0x5356b9['lqfrS']=function(_0x5f1bb0,_0x34df4d){return _0x5f1bb0===_0x34df4d;};const _0x2ba2bc=_0x5356b9;let _0x98ea65=null;return(_0x2ba2bc[_0x3bad41(0xca)](_0x35a83d,TestFrameworkState[_0x3bad41(0xb9)])||_0x2ba2bc['lqfrS'](_0x35a83d,TestFrameworkState['NONE']))&&this[_0x3bad41(0xd1)](_0x35a83d,_0x4be3a4),_0x98ea65=TestFramework[_0x3bad41(0x138)](),_0x98ea65;}[a95_0x36cd21(0xd1)](_0x547866,_0xe9aef0){const _0x430c3c=a95_0x36cd21,_0x2d1459=CLIUtils[_0x430c3c(0xe5)](),_0x574c47=TrackedInstance[_0x430c3c(0xbc)](_0x2d1459);let _0x4a0551=null;logger[_0x430c3c(0xae)](_0x430c3c(0xc3)+_0x2d1459+_0x430c3c(0x105)+_0x547866),_0x4a0551=new TestFrameworkInstance(_0x574c47,this[_0x430c3c(0x17f)](),this[_0x430c3c(0x16c)](),_0x547866,HookState['NONE']),TestFramework[_0x430c3c(0x12b)](_0x574c47,_0x4a0551),logger[_0x430c3c(0xae)](_0x430c3c(0xf8)+_0x574c47[_0x430c3c(0xaf)]()+'\x20target='+_0x2d1459);}[a95_0x36cd21(0xe6)](_0x2d5be9){const _0x29c95f=a95_0x36cd21,_0x29277b={};_0x29277b[_0x29c95f(0xb8)]=_0x29c95f(0xf4);const _0x5ad6a9=_0x29277b,{testUUID:_0x6a7e84,testData:_0xd54051}=_0x2d5be9;if(!_0xd54051||!_0xd54051[_0x29c95f(0xfd)])return logger[_0x29c95f(0xae)](_0x5ad6a9[_0x29c95f(0xb8)]),{};const _0x1ff9cd=_0x6a7e84,_0x5190c1=_0xd54051[_0x29c95f(0xfd)],_0x2de37f=this['getTestFrameworks']()[0x0],_0x58f8f8=this['getTestFrameworksVersions'](),_0x3dea98={[TestFrameworkConstants[_0x29c95f(0x100)]]:_0x2de37f,[TestFrameworkConstants[_0x29c95f(0xc7)]]:_0x58f8f8[_0x2de37f],[TestFrameworkConstants[_0x29c95f(0x167)]]:[],[TestFrameworkConstants[_0x29c95f(0x13c)]]:{},[TestFrameworkConstants[_0x29c95f(0xeb)]]:{},[TestFrameworkConstants[_0x29c95f(0x117)]]:_0x1ff9cd,[TestFrameworkConstants[_0x29c95f(0x17c)]]:TestFrameworkConstants[_0x29c95f(0x17b)],[TestFrameworkConstants[_0x29c95f(0xec)]]:_0xd54051['name']||'',[TestFrameworkConstants[_0x29c95f(0x10f)]]:_0xd54051['file_name']||'',[TestFrameworkConstants[_0x29c95f(0x15e)]]:_0x5190c1,[TestFrameworkConstants['KEY_TEST_NAME']]:_0xd54051[_0x29c95f(0x107)]||'',[TestFrameworkConstants[_0x29c95f(0x14f)]]:_0xd54051[_0x29c95f(0x113)]||'',[TestFrameworkConstants[_0x29c95f(0x12c)]]:_0xd54051[_0x29c95f(0x121)]?.[_0x29c95f(0x115)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0xd54051[_0x29c95f(0x17a)]||[],[TestFrameworkConstants[_0x29c95f(0xc1)]]:_0xd54051[_0x29c95f(0x14d)]||new Date()[_0x29c95f(0xd2)](),[TestFrameworkConstants[_0x29c95f(0x134)]]:_0xd54051[_0x29c95f(0xe9)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0xd54051[_0x29c95f(0xe9)]||[],[TestFrameworkConstants[_0x29c95f(0x163)]]:_0xd54051[_0x29c95f(0x123)]?.[_0x29c95f(0x12a)]||_0xd54051[_0x29c95f(0x107)]||'',[TestFrameworkConstants[_0x29c95f(0x119)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0xd54051[_0x29c95f(0xfb)]||{}};TestInfo['setTestDetails'](_0x5190c1,_0x3dea98),logger[_0x29c95f(0xae)](_0x29c95f(0x169)+_0xd54051[_0x29c95f(0x107)]+'\x20with\x20UUID:\x20'+_0x1ff9cd);const _0x264e00={};return _0x264e00[_0x5190c1]=_0x3dea98,_0x264e00;}[a95_0x36cd21(0x140)](_0xbfc061){const _0x2987f4=a95_0x36cd21,_0x559e84={'sznJp':_0x2987f4(0xbe),'xuUgP':_0x2987f4(0x141),'dZjPU':function(_0x3406bd,_0x3a172b){return _0x3406bd===_0x3a172b;},'UpIgp':_0x2987f4(0x10e),'epDTm':_0x2987f4(0x14b),'AaNJA':function(_0x4989f0,_0x34ddad,_0x3f73ef){return _0x4989f0(_0x34ddad,_0x3f73ef);},'jnJVG':function(_0x4831b,_0xe47aaa){return _0x4831b>_0xe47aaa;},'ituLL':function(_0x4bfb44,_0x212195){return _0x4bfb44>_0x212195;}},{testUUID:_0x5846d5,testData:_0x3cd0f5}=_0xbfc061;if(!_0x3cd0f5||!_0x3cd0f5['uuid'])return logger[_0x2987f4(0xae)](_0x559e84[_0x2987f4(0x13e)]),{};const _0x1ac97e=this[_0x2987f4(0x16a)](TestFrameworkState['TEST'],HookState[_0x2987f4(0xf6)]),_0x5900eb=_0x3cd0f5[_0x2987f4(0xfd)],_0x1d4691=TestInfo[_0x2987f4(0x174)](_0x5900eb)||{},_0x470a5e=_0x1d4691?_0x1d4691[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{}:{},_0x245c56={..._0x1d4691,[TestFrameworkConstants[_0x2987f4(0x17c)]]:_0x3cd0f5[_0x2987f4(0x159)]||_0x559e84[_0x2987f4(0x101)],[TestFrameworkConstants[_0x2987f4(0x109)]]:_0x3cd0f5[_0x2987f4(0x132)]||new Date()[_0x2987f4(0xd2)](),[TestFrameworkConstants[_0x2987f4(0xb3)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x2987f4(0x119)]]:_0x470a5e,[TestFrameworkConstants[_0x2987f4(0x13b)]]:[],[TestFrameworkConstants[_0x2987f4(0x137)]]:_0x3cd0f5[_0x2987f4(0xfb)]||{}};_0x559e84[_0x2987f4(0xdb)](_0x3cd0f5[_0x2987f4(0x159)],_0x559e84['UpIgp'])&&_0x3cd0f5['failure']&&(_0x245c56[TestFrameworkConstants[_0x2987f4(0x146)]]=_0x3cd0f5[_0x2987f4(0x14e)]||_0x559e84[_0x2987f4(0x11e)],_0x245c56[TestFrameworkConstants[_0x2987f4(0x11d)]]=_0x3cd0f5[_0x2987f4(0xbd)]||'',_0x245c56[TestFrameworkConstants[_0x2987f4(0xfa)]]=_0x3cd0f5['failure']);const _0x27d00a=TestInfo['getTestDetails'](_0x5900eb)[TestFrameworkConstants[_0x2987f4(0x114)]]||{},_0x2be520=_0x559e84[_0x2987f4(0x142)](getManualUploadLogs,_0x27d00a,_0x1ac97e[_0x2987f4(0xd7)]()[_0x2987f4(0x122)](_0x5900eb)[TestFrameworkConstants[_0x2987f4(0x117)]]);if(_0x559e84[_0x2987f4(0x15b)](_0x2be520[_0x2987f4(0xb4)],0x0)){const _0x3961f7=_0x245c56[TestFrameworkConstants[_0x2987f4(0x13b)]]||[];_0x245c56[TestFrameworkConstants['KEY_LOGS']]=[..._0x3961f7,..._0x2be520];}_0x3cd0f5[_0x2987f4(0xce)]&&_0x559e84[_0x2987f4(0x130)](_0x3cd0f5[_0x2987f4(0xce)][_0x2987f4(0xb4)],0x0)&&(_0x245c56[TestFrameworkConstants[_0x2987f4(0x13c)]]=_0x3cd0f5['hooks']);TestInfo['setTestDetails'](_0x5900eb,_0x245c56),logger[_0x2987f4(0xae)](_0x2987f4(0xfe)+_0x3cd0f5[_0x2987f4(0x107)]+_0x2987f4(0x116)+_0x3cd0f5['result']);const _0x5e0d11={};return _0x5e0d11[_0x5900eb]=_0x245c56,_0x5e0d11;}async['trackHookEvent'](_0x583c1b,_0x60830,_0x228997,_0x5ef22c){const _0x21db35=a95_0x36cd21,_0x45f36f={'rBkvd':_0x21db35(0xd3),'Trico':function(_0x2c5727){return _0x2c5727();},'DHzZA':function(_0x56ef39,_0x510b1c){return _0x56ef39 in _0x510b1c;},'cAKWY':function(_0x5e478e,_0x4d93db){return _0x5e478e===_0x4d93db;},'QScur':function(_0x26206f,_0x1b7a1b){return _0x26206f>_0x1b7a1b;},'WdLaN':_0x21db35(0x10e),'rSMnN':'UnhandledError','RAaWz':_0x21db35(0x182),'yNEnK':function(_0x4c89cd,_0x2ab507){return _0x4c89cd!==_0x2ab507;}},{hookData:_0x2cfe55}=_0x5ef22c;if(!_0x2cfe55)return logger[_0x21db35(0xae)](_0x45f36f[_0x21db35(0xbf)]),{};const _0x448f3e=_0x2cfe55['uuid']||_0x45f36f[_0x21db35(0xcc)](uuidv4),_0x125ed3=_0x2cfe55[_0x21db35(0xde)],_0x468b90=_0x60830[_0x21db35(0x179)]()[_0x21db35(0xe1)]('.')[0x1],_0x460c15=TestInfo[_0x21db35(0x174)](_0x125ed3)[TestFrameworkConstants[_0x21db35(0x119)]]||{},_0x445a60=_0x583c1b[_0x21db35(0xd7)]()['get'](_0x125ed3);if(!_0x445a60)return logger['debug'](_0x21db35(0xf2)+_0x125ed3+_0x21db35(0xe8)),this[_0x21db35(0xe4)](_0x583c1b,_0x125ed3,_0x60830,_0x228997,_0x5ef22c),{};let _0x22269b=_0x445a60[TestFrameworkConstants[_0x21db35(0xeb)]];!_0x22269b&&(_0x22269b={});!_0x45f36f[_0x21db35(0x148)](_0x468b90,_0x22269b)&&(_0x22269b[_0x468b90]=[]);let _0x335649=_0x445a60[TestFrameworkConstants[_0x21db35(0x13c)]];!_0x335649&&(_0x335649={});!_0x45f36f[_0x21db35(0x148)](_0x468b90,_0x335649)&&(_0x335649[_0x468b90]=[]);const _0x175e7a={[TestFrameworkConstants[_0x21db35(0xeb)]]:_0x22269b,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x335649},_0x496eda={};_0x496eda[_0x125ed3]=_0x175e7a;const _0x55bdbb=_0x496eda;if(_0x45f36f['cAKWY'](_0x228997,HookState[_0x21db35(0x155)])){const _0x4b8c19={[TestFrameworkConstants[_0x21db35(0xd6)]]:_0x448f3e,[TestFrameworkConstants[_0x21db35(0x154)]]:TestFrameworkConstants[_0x21db35(0x120)],[TestFrameworkConstants[_0x21db35(0xea)]]:_0x2cfe55[_0x21db35(0x11b)],[TestFrameworkConstants[_0x21db35(0x171)]]:[],[TestFrameworkConstants[_0x21db35(0xb1)]]:_0x2cfe55[_0x21db35(0x107)]||_0x2cfe55[_0x21db35(0x143)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x460c15};_0x4b8c19[_0x21db35(0xba)]=_0x468b90;const _0x8efc5a=_0x4b8c19;_0x22269b[_0x468b90]['push'](_0x8efc5a),_0x55bdbb[_0x125ed3][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x468b90,logger['debug'](_0x21db35(0x111)+_0x468b90+_0x21db35(0x127)+_0x8efc5a+_0x21db35(0xdd)+_0x5ef22c);}else{if(_0x45f36f['cAKWY'](_0x228997,HookState[_0x21db35(0xf6)])){const _0x1a69a6=_0x2cfe55[_0x21db35(0x159)],_0x24e6b5=_0x22269b[_0x468b90]||[];logger[_0x21db35(0xae)](_0x21db35(0x139)+_0x24e6b5+_0x21db35(0x15f)+_0x5ef22c);if(_0x45f36f[_0x21db35(0x131)](_0x24e6b5['length'],0x0)){const _0x5cca43=_0x24e6b5[_0x21db35(0x124)]();_0x45f36f[_0x21db35(0x172)](_0x2cfe55['result'],_0x45f36f[_0x21db35(0x157)])&&_0x2cfe55['failure_data']?(_0x5cca43[TestFrameworkConstants[_0x21db35(0xdf)]]=_0x2cfe55[_0x21db35(0x14e)]||_0x45f36f['rSMnN'],_0x5cca43[TestFrameworkConstants[_0x21db35(0xcf)]]=_0x2cfe55[_0x21db35(0xbd)]||'',_0x5cca43[TestFrameworkConstants[_0x21db35(0xff)]]=_0x2cfe55['failure_data']):_0x5cca43[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x45f36f[_0x21db35(0x10b)];_0x45f36f[_0x21db35(0xbb)](_0x1a69a6,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x5cca43[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x1a69a6);_0x5cca43[TestFrameworkConstants[_0x21db35(0x16b)]]=_0x2cfe55[_0x21db35(0x176)]||new Date()[_0x21db35(0xd2)](),_0x5cca43[TestFrameworkConstants[_0x21db35(0x119)]]=_0x460c15;const _0x49998d=_0x5cca43[TestFrameworkConstants['KEY_HOOK_ID']];!_0x335649[_0x468b90]&&(_0x335649[_0x468b90]=[]),_0x335649[_0x468b90]['push'](_0x5cca43),_0x55bdbb[_0x125ed3][TestFrameworkConstants[_0x21db35(0x12f)]]=_0x468b90;}}}return logger['debug'](_0x21db35(0xda)+_0x2cfe55[_0x21db35(0x143)]+'\x20with\x20id\x20'+_0x448f3e+_0x21db35(0x180)+_0x125ed3),_0x55bdbb;}[a95_0x36cd21(0xb0)](_0x2a3f47){const _0x21aabd=a95_0x36cd21,_0x2bb049={};_0x2bb049['MYYIN']=_0x21aabd(0x173);const _0x5aee36=_0x2bb049;try{const _0x46cd17=_0x2a3f47[_0x21aabd(0xf1)]?_0x2a3f47[_0x21aabd(0xf1)]['id']:_0x2a3f47[_0x21aabd(0x170)][_0x21aabd(0xde)],_0x271681=_0x2a3f47[_0x21aabd(0x125)],_0x4cc635=_0x271681['getContext'](),_0x19caee=_0x271681[_0x21aabd(0xd7)]()['get'](_0x46cd17);if(!_0x19caee)return logger[_0x21aabd(0xae)](_0x21aabd(0xed)+_0x46cd17),{};logger[_0x21aabd(0xae)]('createTestFrameworkEventPayload\x20testId:\x20'+_0x46cd17);const {[TestFrameworkConstants[_0x21aabd(0x100)]]:_0x3c3544='',[TestFrameworkConstants[_0x21aabd(0xc7)]]:_0x2766ea='',[TestFrameworkConstants[_0x21aabd(0xc1)]]:_0x3f41f3='',[TestFrameworkConstants[_0x21aabd(0x109)]]:_0x493323=''}=_0x19caee,_0x322468=_0x271681['getCurrentTestState']()['toString']()[_0x21aabd(0xe1)]('.')[0x1],_0x4a5e0b=_0x271681[_0x21aabd(0xf0)]()['toString']()['split']('.')[0x1],_0x38629c=global?.['browserstackPlatformIndex']??0x0,_0x4af67b=_0x271681[_0x21aabd(0x166)](),_0x5725c3=Buffer[_0x21aabd(0xb6)](JSON['stringify'](_0x19caee))[_0x21aabd(0x179)](_0x5aee36['MYYIN']),_0x56f240={'hash':_0x4cc635['getId'](),'threadId':_0x4cc635['getThreadId']()[_0x21aabd(0x179)](),'processId':_0x4cc635[_0x21aabd(0x16f)]()[_0x21aabd(0x179)]()},_0x4111d5={};_0x4111d5['platformIndex']=_0x38629c,_0x4111d5['testFrameworkName']=_0x3c3544,_0x4111d5[_0x21aabd(0xef)]=_0x2766ea,_0x4111d5[_0x21aabd(0x15c)]=_0x322468,_0x4111d5[_0x21aabd(0xc4)]=_0x4a5e0b,_0x4111d5[_0x21aabd(0x14d)]=_0x3f41f3,_0x4111d5[_0x21aabd(0xcb)]=_0x493323,_0x4111d5[_0x21aabd(0xfd)]=_0x4af67b,_0x4111d5[_0x21aabd(0xf9)]=_0x5725c3,_0x4111d5['executionContext']=_0x56f240;const _0x37788d=_0x4111d5;return logger[_0x21aabd(0xae)](_0x21aabd(0x13a)+_0x46cd17+'\x20testState:\x20'+_0x322468+_0x21aabd(0x15d)+_0x4a5e0b),_0x37788d;}catch(_0x188059){return logger[_0x21aabd(0x151)](_0x21aabd(0x158)+util[_0x21aabd(0x175)](_0x188059)),{};}}async[a95_0x36cd21(0x165)](_0x4c423d,_0x19698e,_0x2f956e){const _0x44b317=a95_0x36cd21,_0x1bc2d2={'tJpsQ':function(_0x4191e9,_0x3dd4dc,_0x3d10a6){return _0x4191e9(_0x3dd4dc,_0x3d10a6);},'Tnnob':function(_0x25786b,_0x3c56aa){return _0x25786b===_0x3c56aa;},'DpDUN':_0x44b317(0xd5),'cNybC':function(_0x1d3094,_0x20bde5){return _0x1d3094/_0x20bde5;},'VMxaM':function(_0x226bf9,_0x3c3959){return _0x226bf9<_0x3c3959;},'RFSNx':function(_0x331b1c,_0x435aea){return _0x331b1c*_0x435aea;},'tPoRw':function(_0x20a51d,_0x16e3e8){return _0x20a51d+_0x16e3e8;},'FUrHd':function(_0x3f6403,_0x5a9d08){return _0x3f6403+_0x5a9d08;},'cnxOk':_0x44b317(0x156)};try{const _0x1cd97a=_0x2f956e[_0x44b317(0xac)],_0x172282=_0x4c423d['getAllData']()['get'](_0x1cd97a),{[TestFrameworkConstants[_0x44b317(0x100)]]:_0x5be3e4='',[TestFrameworkConstants[_0x44b317(0xc7)]]:_0x43def8=''}=_0x172282,_0x1e8559=TestInfo['readLogObjects'](_0x1cd97a),_0x284811=TestInfo['getTestDetails'](_0x1cd97a)[TestFrameworkConstants[_0x44b317(0x114)]]||{},_0x436dc2=_0x1bc2d2['tJpsQ'](getMediaArtifactsLogs,_0x284811,_0x4c423d['getAllData']()[_0x44b317(0x122)](_0x1cd97a)[TestFrameworkConstants[_0x44b317(0x117)]]),_0x37bf35=(_0x1e8559||[])[_0x44b317(0xdc)](_0x436dc2||[]);if(!_0x37bf35||_0x1bc2d2[_0x44b317(0x11a)](_0x37bf35[_0x44b317(0xb4)],0x0)){logger['debug'](_0x1bc2d2[_0x44b317(0x13d)]);return;}const _0x5bbe28=0x28,_0x4697b6=Math[_0x44b317(0x14a)](_0x1bc2d2['cNybC'](_0x37bf35['length'],_0x5bbe28));for(let _0x127787=0x0;_0x1bc2d2[_0x44b317(0x11f)](_0x127787,_0x4697b6);_0x127787++){const _0xa12665=_0x1bc2d2[_0x44b317(0xb5)](_0x127787,_0x5bbe28),_0x4b20e9=_0x1bc2d2[_0x44b317(0xf7)](_0xa12665,_0x5bbe28),_0x3b5c75=_0x37bf35[_0x44b317(0x13f)](_0xa12665,_0x4b20e9),_0x3cfb4d={'platformIndex':global?.[_0x44b317(0xc6)]??0x0,'logs':_0x3b5c75,'testFrameworkName':_0x5be3e4,'testFrameworkVersion':_0x43def8,'testFrameworkState':_0x19698e[_0x44b317(0x179)]()['split']('.')[0x1]};logger['debug'](_0x44b317(0xd8)+_0x1cd97a+_0x44b317(0x10d)+_0x1bc2d2[_0x44b317(0xd4)](_0x127787,0x1)+'/'+_0x4697b6+_0x44b317(0xe0)+util[_0x44b317(0xcd)](_0x3cfb4d));const _0x13e1f8=await GrpcClient['getInstance']()[_0x44b317(0xf3)](_0x3cfb4d);logger[_0x44b317(0xae)](_0x44b317(0xd8)+_0x1cd97a+_0x44b317(0x10d)+_0x1bc2d2[_0x44b317(0xf7)](_0x127787,0x1)+'/'+_0x4697b6+_0x44b317(0x10a)+util[_0x44b317(0xcd)](_0x13e1f8));}}catch(_0x232462){logger['error'](_0x44b317(0x112)+util['format'](_0x232462));}logger[_0x44b317(0xae)](_0x1bc2d2[_0x44b317(0x149)]);}[a95_0x36cd21(0xe4)](_0x18053d,_0x1de8ef,_0x2d8517,_0x25877b,_0x277c32){const _0x5d3a67=a95_0x36cd21,_0x5518d5={'testId':_0x1de8ef,'testFrameworkState':_0x2d8517,'hookState':_0x25877b,'args':_0x277c32,'timestamp':new Date()[_0x5d3a67(0xd2)]()};_0x18053d[_0x5d3a67(0x17e)](_0x1de8ef,_0x5518d5),logger[_0x5d3a67(0xae)](_0x5d3a67(0x135)+_0x1de8ef+_0x5d3a67(0xe3)+_0x2d8517+_0x5d3a67(0x12d)+_0x25877b);}async[a95_0x36cd21(0x181)](_0x2db9fb,_0x179172){const _0x2735d7=a95_0x36cd21,_0x1aa841={};_0x1aa841[_0x2735d7(0x160)]=function(_0x5f0eca,_0x3c99e4){return _0x5f0eca>_0x3c99e4;};const _0x1e9d6f=_0x1aa841;if(!_0x2db9fb[_0x2735d7(0x110)](_0x179172))return;const _0x56ce11=_0x2db9fb['getPendingHooks'](_0x179172);logger[_0x2735d7(0xae)]('Processing\x20'+_0x56ce11[_0x2735d7(0xb4)]+_0x2735d7(0x15a)+_0x179172);for(const _0x5a2b1f of _0x56ce11){try{const _0x792792=await this['trackHookEvent'](_0x2db9fb,_0x5a2b1f['testFrameworkState'],_0x5a2b1f[_0x2735d7(0xc4)],_0x5a2b1f[_0x2735d7(0x129)]);_0x792792&&_0x1e9d6f[_0x2735d7(0x160)](Object[_0x2735d7(0xee)](_0x792792)[_0x2735d7(0xb4)],0x0)&&_0x2db9fb[_0x2735d7(0x118)](_0x792792),await this['runHooks'](_0x2db9fb,_0x5a2b1f[_0x2735d7(0x15c)],_0x5a2b1f[_0x2735d7(0xc4)],_0x5a2b1f['args']);}catch(_0x4b574d){logger[_0x2735d7(0x151)]('Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20'+_0x179172+',\x20error:\x20'+_0x4b574d);}}_0x2db9fb['removePendingHooks'](_0x179172),logger[_0x2735d7(0xae)](_0x2735d7(0xb2)+_0x179172);}}module[a95_0x36cd21(0x126)]=CucumberTestFramework;
|