browserstack-node-sdk 1.55.4 → 1.55.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +3 -2
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -0
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/bin/v2/cliUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a72_0x3c15ec=a72_0x579e;function a72_0x579e(_0x39cb12,_0x2bca85){const _0xcaf327=a72_0xcaf3();return a72_0x579e=function(_0x579e0c,_0x544dc2){_0x579e0c=_0x579e0c-0xfd;let _0x435322=_0xcaf327[_0x579e0c];return _0x435322;},a72_0x579e(_0x39cb12,_0x2bca85);}(function(_0x1fe618,_0x5d06bf){const _0x431421=a72_0x579e,_0x5e9f90=_0x1fe618();while(!![]){try{const _0x4a48c4=parseInt(_0x431421(0x134))/0x1+-parseInt(_0x431421(0x13e))/0x2+-parseInt(_0x431421(0x1cc))/0x3*(-parseInt(_0x431421(0x15d))/0x4)+parseInt(_0x431421(0x126))/0x5*(-parseInt(_0x431421(0x15e))/0x6)+-parseInt(_0x431421(0x188))/0x7+parseInt(_0x431421(0x101))/0x8*(parseInt(_0x431421(0x1b9))/0x9)+-parseInt(_0x431421(0x1c7))/0xa*(parseInt(_0x431421(0x163))/0xb);if(_0x4a48c4===_0x5d06bf)break;else _0x5e9f90['push'](_0x5e9f90['shift']());}catch(_0x559f96){_0x5e9f90['push'](_0x5e9f90['shift']());}}}(a72_0xcaf3,0x5f878));const fs=require('fs'),os=require('os'),url=require(a72_0x3c15ec(0x1ae)),path=require('path'),{exec}=require(a72_0x3c15ec(0x1b5)),{https}=require(a72_0x3c15ec(0x19e)),yauzl=require(a72_0x3c15ec(0x139)),util=require('util'),{getFrameworkVersion}=require(a72_0x3c15ec(0x1b2)),{threadId}=require(a72_0x3c15ec(0x187)),PerformanceTester=require(a72_0x3c15ec(0x129)),{EVENTS:PerformanceEvents}=require(a72_0x3c15ec(0x13b)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a72_0x3c15ec(0x16b)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a72_0x3c15ec(0x1bb)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a72_0x3c15ec(0x132)),{createClassLogger}=require(a72_0x3c15ec(0x1d9)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a72_0x3c15ec(0x1e2)),TestFrameworkState=require(a72_0x3c15ec(0x153)),AutomationFrameworkState=require(a72_0x3c15ec(0x157)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a72_0x3c15ec(0x14d)),{getBStackAPIUrl}=require(a72_0x3c15ec(0x19b));function a72_0xcaf3(){const _0x3468a3=['skipSessionStatus','testFrameworkDetail','unix:/tmp/sdk-platform-','binary-','eszTj','getCliDir','ZMbtp','POtFu','eAwpB','22030fKgymP','fcVpu','createWriteStream','zRPAg','isArray','234zDtIlU','exports','goLCo','Folder\x20does\x20not\x20exist:\x20','downloadLatestBinary','getSdkLanguage','unlink','join','SDK_CLI_BIN_PATH','OrWNI','isDirectory','\x20already\x20exists','isFile','../../helpers/classLogger.js','Binary\x20is\x20busy:\x20','openReadStream','BrcWG','trim','Downloading\x20SDK\x20binary\x20from:\x20','pfKOA','ItBFn','TpTqc','./state/hookState.js','Folder\x20','map','QsANP','GhwdM','isCPv','4323112zSeIxR','readEntry',',\x20automationFramework=','getTestFrameworkDetail','message','tmpdir','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','yGqkA','openSync','automationFrameworkDetail','stringify','testContextOptions','.sock','fxIzz','filePath','DPOnN','getCLIParamsForDevEnv','qWHnm','4|0|1|2|3','format','existsSync','version','xRitL','sKgSz','xfpPk','env','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','yIKYb','yOVQg','parse','QHMRV','BROWSERSTACK_BINARY_URL','lazyEntries','object','BEOOr','close','YNuov','10ToKMEC','eYuLf','wsgWQ','../../helpers/performance/performance-tester.js','Failed\x20to\x20delete\x20zip\x20file:\x20','SHELL_EXECUTE_ERROR','LndAQ','oWuAT','QrDlQ','start','shouldSkipSessionName','pid','../utils/constants','getWritableDir','644581eWcVXH','Error\x20while\x20reading\x20CLI\x20path:\x20','response\x20','qRBPT','code','yauzl','open','../../helpers/performance/constants','lQsie','Development\x20Cli\x20Path:\x20','782046uLRxib','BROWSERSTACK_CLI_ENV','get','data','EbmoB','0755','cli','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','\x20version','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','FsrJu','info','reduce','SDK_CLI_DOWNLOAD','downloaded_file_','CLIUtils','gpJOZ','isDevelopmentEnv','mtime','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','MjZlc','./state/testFrameworkState.js','Setting\x20required\x20permissions\x20to\x20','concat','setupCliPath','./state/automationFrameworkState.js','pipe','UKbBL','entries','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','includes','23036XlPOLb','401010YNSPrh','skipSessionName','filter','cSZUT','readdirSync','979licNeV','Configuring\x20Cli\x20path.','getSdkVersion','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','QlKwy','YDvBe','uaWwG','error','../../helpers/utilities','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','mergeObject','Tspea','getCurrentInstanceName','GET','fjxgo','bBATu','../../../package.json','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','KJjSc','getExistingCliPath','JiQiw','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','KkIiQ','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','LFMNh','basename','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','warn','kqaaN','LxSVK','runShellCommand','split','SDK_CLI_CHECK_UPDATE','.browserstack','ulvwM','worker_threads','3654868zKTXMa','moktf','.tmp.','blOWr','end','CVgnB','QidDv','TKcqa','closeSync','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','ljMMu','development','downloadFileStream','uZkbS','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','ydDza','hQLIT','StKFP','beObL','../utils/apiUtilityMethods.js','isBinaryBusy','QEPcF','follow-redirects','requestToUpdateCLI','listen','matchHookRegex','fileName','tiESR','copyFileSync','getHookRegistryKey','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','Current\x20CLI\x20Path\x20Found:\x20','Lcxaj','cli_version','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','getAutomationFrameworkDetail','platform','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','url','QHgUY','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','odRYk','../../helpers/test-observability/utils.js','fKRSu','entry','child_process','test','setFrameworkDetail','ZHWTg','9ZjMpMX','debug','../../helpers/helper','mybkz','hVUDP'];a72_0xcaf3=function(){return _0x3468a3;};return a72_0xcaf3();}class CLIUtils{['automationFrameworkDetail']={};['testFrameworkDetail']={};static[a72_0x3c15ec(0x14f)](){const _0x54d7f8=a72_0x3c15ec,_0x53792e={};_0x53792e[_0x54d7f8(0x137)]=function(_0x1121d0,_0x34b47c){return _0x1121d0===_0x34b47c;},_0x53792e[_0x54d7f8(0x19d)]=_0x54d7f8(0x193);const _0x5bf478=_0x53792e;return _0x5bf478[_0x54d7f8(0x137)](process['env'][_0x54d7f8(0x13f)],_0x5bf478[_0x54d7f8(0x19d)]);}static[a72_0x3c15ec(0x111)](){const _0x302a08=a72_0x3c15ec,_0x30ff4f={};return _0x30ff4f['id']=process[_0x302a08(0x11a)][_0x302a08(0x13f)],_0x30ff4f[_0x302a08(0x1a0)]=_0x302a08(0x1c0)+process[_0x302a08(0x11a)]['BROWSERSTACK_CLI_ENV']+_0x302a08(0x10d),_0x30ff4f;}static[a72_0x3c15ec(0x165)](){const _0x2dcc62=a72_0x3c15ec,_0x583544={'beObL':function(_0x3ad6ee,_0x4e312b){return _0x3ad6ee(_0x4e312b);},'QidDv':_0x2dcc62(0x173)};return _0x583544[_0x2dcc62(0x19a)](require,_0x583544[_0x2dcc62(0x18e)])[_0x2dcc62(0x116)];}static[a72_0x3c15ec(0x1d1)](){const _0x54d9eb=a72_0x3c15ec,_0x4b6eae={};_0x4b6eae[_0x54d9eb(0x125)]='node';const _0x2d391f=_0x4b6eae;return _0x2d391f[_0x54d9eb(0x125)];}static async[a72_0x3c15ec(0x156)](_0x224da3){const _0x11cdc7=a72_0x3c15ec,_0x1d542b={'pfKOA':_0x11cdc7(0x164),'UKbBL':function(_0x33c290,_0x37d0f6){return _0x33c290(_0x37d0f6);},'cSZUT':function(_0x5b29ae,_0x93a6e6){return _0x5b29ae(_0x93a6e6);},'XYmSp':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger['debug'](_0x1d542b[_0x11cdc7(0x1df)]);const _0x201d08=process[_0x11cdc7(0x11a)][_0x11cdc7(0x1d4)];if(!_0x1d542b[_0x11cdc7(0x159)](isNullOrEmpty,_0x201d08))return logger[_0x11cdc7(0x1ba)](_0x11cdc7(0x13d)+_0x201d08),_0x201d08;try{const _0x429d9a=this[_0x11cdc7(0x1c3)]();if(_0x1d542b[_0x11cdc7(0x161)](isNullOrEmpty,_0x429d9a))throw new Error(_0x1d542b['XYmSp']);const _0x108e87=this[_0x11cdc7(0x177)](_0x429d9a),_0x4e7d46=await this['checkAndUpdateCli'](_0x108e87,_0x429d9a,_0x224da3);return logger[_0x11cdc7(0x1ba)]('Resolved\x20binary\x20path:\x20'+_0x4e7d46),_0x4e7d46;}catch(_0x592fca){logger['debug'](_0x11cdc7(0x191)+util[_0x11cdc7(0x114)](_0x592fca));}return null;}static async['checkAndUpdateCli'](_0x2e5a1b,_0x5525ef,_0x2c3cf9){const _0x23b3c5=a72_0x3c15ec,_0x419476={'LFMNh':function(_0x57646a){return _0x57646a();},'bNBan':function(_0x11bd0e,_0x5eec35){return _0x11bd0e(_0x5eec35);},'BwGmd':function(_0x35ba1e,_0x5a56b0,_0x49aee8){return _0x35ba1e(_0x5a56b0,_0x49aee8);},'xfpPk':'data','moktf':_0x23b3c5(0x1ae),'hQLIT':function(_0x4c1e29,_0x22e38a){return _0x4c1e29(_0x22e38a);}};PerformanceTester[_0x23b3c5(0x12f)](PerformanceEvents[_0x23b3c5(0x184)]),logger[_0x23b3c5(0x149)](_0x23b3c5(0x1a7)+_0x2e5a1b);const _0x2977f3=_0x419476[_0x23b3c5(0x17c)](getHostInfo),_0x268956={'sdk_version':CLIUtils[_0x23b3c5(0x165)](),'os':_0x2977f3[_0x23b3c5(0x1ac)],'os_arch':_0x2977f3['arch'],'cli_version':'0','sdk_language':this[_0x23b3c5(0x1d1)]()};!_0x419476['bNBan'](isNullOrEmpty,_0x2e5a1b)&&(_0x268956[_0x23b3c5(0x1a9)]=await this[_0x23b3c5(0x182)](_0x2e5a1b+_0x23b3c5(0x146)));const _0x38a290=await this[_0x23b3c5(0x19f)](_0x268956,_0x2c3cf9);process[_0x23b3c5(0x11a)][_0x23b3c5(0x120)]&&(logger[_0x23b3c5(0x149)](_0x23b3c5(0x179)+process['env'][_0x23b3c5(0x120)]),_0x38a290[_0x23b3c5(0x141)]['url']=process[_0x23b3c5(0x11a)][_0x23b3c5(0x120)]);if(_0x419476['BwGmd'](nestedKeyValue,_0x38a290,[_0x419476[_0x23b3c5(0x119)],_0x419476[_0x23b3c5(0x189)]])){logger[_0x23b3c5(0x1ba)](_0x23b3c5(0x15b)+_0x268956[_0x23b3c5(0x1a9)]);if(!_0x419476[_0x23b3c5(0x198)](isNullOrEmpty,_0x2e5a1b)&&this[_0x23b3c5(0x19c)](_0x2e5a1b))return logger[_0x23b3c5(0x17f)](_0x23b3c5(0x175)+_0x2e5a1b),PerformanceTester[_0x23b3c5(0x18c)](PerformanceEvents[_0x23b3c5(0x184)]),_0x2e5a1b;const _0x5b1b78=await this[_0x23b3c5(0x1d0)](_0x419476['BwGmd'](nestedKeyValue,_0x38a290,[_0x419476[_0x23b3c5(0x119)],_0x419476[_0x23b3c5(0x189)]]),_0x5525ef);return PerformanceTester[_0x23b3c5(0x18c)](PerformanceEvents[_0x23b3c5(0x184)]),_0x5b1b78;}return PerformanceTester[_0x23b3c5(0x18c)](PerformanceEvents[_0x23b3c5(0x184)]),_0x2e5a1b;}static['getCliDir'](){const _0x3755e7=a72_0x3c15ec,_0x107601={'tiESR':function(_0x43b0fb,_0x58e20a){return _0x43b0fb(_0x58e20a);},'qZCok':_0x3755e7(0x145),'alJvn':_0x3755e7(0x144)},_0x23dcf5=this[_0x3755e7(0x133)]();try{if(_0x107601[_0x3755e7(0x1a3)](isNullOrEmpty,_0x23dcf5))throw new Error(_0x107601['qZCok']);const _0x592136=path[_0x3755e7(0x1d3)](_0x23dcf5,_0x107601['alJvn']);return!fs['existsSync'](_0x592136)&&_0x107601['tiESR'](createDir,_0x592136),_0x592136;}catch(_0x59618e){logger['debug'](_0x3755e7(0x17b)+util[_0x3755e7(0x114)](_0x59618e));}}static[a72_0x3c15ec(0x133)](){const _0x5ba420=a72_0x3c15ec,_0x46bd17={'fjxgo':_0x5ba420(0x185),'KJjSc':function(_0x21de4e,_0x20b652){return _0x21de4e(_0x20b652);},'QsANP':function(_0x3afac6,_0x382636){return _0x3afac6(_0x382636);},'HDQmh':function(_0x543c68,_0x78b7be){return _0x543c68(_0x78b7be);}},_0x377f2a=[process[_0x5ba420(0x11a)]['BROWSERSTACK_FILES_DIR'],path[_0x5ba420(0x1d3)](os['homedir'](),_0x46bd17[_0x5ba420(0x171)]),path[_0x5ba420(0x1d3)](os[_0x5ba420(0x106)](),_0x46bd17['fjxgo'])];for(const _0x3b2f26 of _0x377f2a){if(_0x46bd17[_0x5ba420(0x176)](isNullOrEmpty,_0x3b2f26))continue;try{if(fs[_0x5ba420(0x115)](_0x3b2f26)){logger[_0x5ba420(0x1ba)](_0x5ba420(0x1e3)+_0x3b2f26+_0x5ba420(0x1d7));if(!_0x46bd17[_0x5ba420(0x176)](isModifiable,_0x3b2f26)){logger[_0x5ba420(0x1ba)](_0x5ba420(0x154)+_0x3b2f26);const _0x17f0b2=_0x46bd17['KJjSc'](setReadWriteExecuteAccess,_0x3b2f26);if(!_0x46bd17[_0x5ba420(0x176)](isTrue,_0x17f0b2)){logger[_0x5ba420(0x17f)](_0x5ba420(0x151)+_0x3b2f26);continue;}}}else{logger[_0x5ba420(0x1ba)](_0x5ba420(0x1cf)+_0x3b2f26),_0x46bd17[_0x5ba420(0xfe)](createDir,_0x3b2f26),logger['debug'](_0x5ba420(0x154)+_0x3b2f26);const _0x59e5bf=_0x46bd17[_0x5ba420(0x176)](setReadWriteExecuteAccess,_0x3b2f26);!_0x46bd17['HDQmh'](isTrue,_0x59e5bf)&&logger['warn'](_0x5ba420(0x151)+_0x3b2f26);}return _0x3b2f26;}catch(_0x6c4bb1){logger[_0x5ba420(0x16a)](_0x5ba420(0x11b)+util['format'](_0x6c4bb1));}}return null;}static['getExistingCliPath'](_0x5a3f96){const _0x587a27=a72_0x3c15ec,_0x16f1fa={};_0x16f1fa[_0x587a27(0x128)]=function(_0x52ed89,_0x354073){return _0x52ed89>_0x354073;};const _0x13ece8=_0x16f1fa;try{if(!fs[_0x587a27(0x115)](_0x5a3f96)||!fs['statSync'](_0x5a3f96)[_0x587a27(0x1d6)]())return'';const _0x5e4724=fs[_0x587a27(0x162)](_0x5a3f96)[_0x587a27(0xfd)](_0x46b5ee=>path['join'](_0x5a3f96,_0x46b5ee))[_0x587a27(0x160)](_0x3af75d=>fs['statSync'](_0x3af75d)[_0x587a27(0x1d8)]()&&path[_0x587a27(0x17d)](_0x3af75d)['startsWith'](_0x587a27(0x1c1)));if(_0x13ece8[_0x587a27(0x128)](_0x5e4724['length'],0x0)){const _0x531278=_0x5e4724['map'](_0x4ea589=>({'filePath':_0x4ea589,'mtime':fs['statSync'](_0x4ea589)[_0x587a27(0x150)]}))[_0x587a27(0x14a)]((_0x51d1fb,_0x114a1f)=>{const _0x56a9e4=_0x587a27;if(!_0x51d1fb||!_0x51d1fb['mtime'])return _0x114a1f;if(_0x13ece8['wsgWQ'](_0x114a1f[_0x56a9e4(0x150)],_0x51d1fb[_0x56a9e4(0x150)]))return _0x114a1f;return _0x51d1fb;},{});return _0x531278?_0x531278[_0x587a27(0x10f)]:'';}return'';}catch(_0x78c216){return logger['error'](_0x587a27(0x135)+util['format'](_0x78c216)),'';}}static [a72_0x3c15ec(0x19f)]=async(_0x1a2155,_0x290f04)=>{const _0x1290bb=a72_0x3c15ec,_0x234f9c={'RQbFA':function(_0x2ee799,_0x32c279,_0x13c535,_0x276414,_0x2b5359){return _0x2ee799(_0x32c279,_0x13c535,_0x276414,_0x2b5359);},'QlKwy':_0x1290bb(0x170)},_0x2b6df8={};_0x2b6df8['qs']=_0x1a2155;const _0x4f67a3=await _0x234f9c['RQbFA'](nodeRequest,_0x234f9c[_0x1290bb(0x167)],UPDATED_CLI_ENDPOINT,_0x2b6df8,_0x290f04);return logger[_0x1290bb(0x1ba)](_0x1290bb(0x136)+JSON[_0x1290bb(0x10b)](_0x4f67a3)),_0x4f67a3;};static[a72_0x3c15ec(0x19c)](_0x52d99b){const _0x2075df=a72_0x3c15ec;try{const _0x4a5ea6=fs[_0x2075df(0x109)](_0x52d99b,'r+');return fs[_0x2075df(0x190)](_0x4a5ea6),![];}catch(_0x5cd08c){if(BINARY_BUSY_ERROR_CODES[_0x2075df(0x15c)](_0x5cd08c[_0x2075df(0x138)]))return logger[_0x2075df(0x1ba)](_0x2075df(0x1da)+_0x52d99b),!![];return logger['debug'](_0x2075df(0x107)+_0x5cd08c['message']),![];}}static['runShellCommand'](_0x3c4d8d,_0xf0a839=''){const _0x5319ac=a72_0x3c15ec,_0x42135d={'uZkbS':function(_0x22ba01,_0x297bf4){return _0x22ba01(_0x297bf4);},'odRYk':_0x5319ac(0x12b),'YDvBe':'version','eYuLf':function(_0x3957ed,_0x1629a8,_0x37ccc4,_0x53246c){return _0x3957ed(_0x1629a8,_0x37ccc4,_0x53246c);},'OrWNI':_0x5319ac(0x16a)};return new Promise((_0x3cd90e,_0x70d16)=>{const _0x2d5151=_0x5319ac,_0x1c0530={'kqaaN':_0x42135d[_0x2d5151(0x168)],'uaWwG':function(_0x2916c3,_0x5f1672){return _0x42135d['uZkbS'](_0x2916c3,_0x5f1672);},'Xgudz':function(_0x25d480,_0x598966){const _0x326a47=_0x2d5151;return _0x42135d[_0x326a47(0x195)](_0x25d480,_0x598966);},'gpJOZ':_0x42135d[_0x2d5151(0x1b1)]},_0xdbb154={};_0xdbb154['cwd']=_0xf0a839,_0xdbb154['timeout']=0x1388;const _0x2583d1=_0x42135d[_0x2d5151(0x127)](exec,_0x3c4d8d,_0xdbb154,(_0x39fb5f,_0x41c7f7,_0x222afa)=>{const _0x3e9fcd=_0x2d5151;if(_0x39fb5f){if(_0x3c4d8d['includes'](_0x1c0530[_0x3e9fcd(0x180)])&&(_0x41c7f7['trim']()||_0x222afa[_0x3e9fcd(0x1dd)]())){const _0x49de92=_0x41c7f7[_0x3e9fcd(0x1dd)]()||_0x222afa[_0x3e9fcd(0x1dd)]();logger['debug']('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x49de92+'\x22'),_0x1c0530[_0x3e9fcd(0x169)](_0x3cd90e,_0x49de92);}else _0x1c0530['Xgudz'](_0x3cd90e,_0x222afa[_0x3e9fcd(0x1dd)]()||_0x1c0530[_0x3e9fcd(0x14e)]);}else logger[_0x3e9fcd(0x1ba)]('Resolving\x20with\x20stdout:\x20\x22'+_0x41c7f7['trim']()+'\x22'),_0x1c0530[_0x3e9fcd(0x169)](_0x3cd90e,_0x41c7f7[_0x3e9fcd(0x1dd)]());});_0x2583d1['on'](_0x42135d[_0x2d5151(0x1d5)],()=>{const _0xae5464=_0x2d5151;_0x42135d[_0xae5464(0x195)](_0x3cd90e,_0x42135d[_0xae5464(0x1b1)]);});});}static [a72_0x3c15ec(0x1d0)]=async(_0x43188a,_0x5cbe81)=>{const _0x239b38=a72_0x3c15ec,_0x2daf60={'ydDza':function(_0xc6b8e3,_0xb48854){return _0xc6b8e3(_0xb48854);},'QHMRV':_0x239b38(0x196),'DPOnN':function(_0x3d40d9,_0x418951){return _0x3d40d9(_0x418951);},'sKgSz':function(_0x2080c4,_0x2b9fa3){return _0x2080c4(_0x2b9fa3);},'JiQiw':_0x239b38(0x166),'zRPAg':_0x239b38(0x16a)};PerformanceTester[_0x239b38(0x12f)](PerformanceEvents[_0x239b38(0x14b)]),logger[_0x239b38(0x1ba)](_0x239b38(0x1de)+_0x43188a);try{const _0x229b99=url[_0x239b38(0x11e)](_0x43188a),_0x23e258=path[_0x239b38(0x1d3)](_0x5cbe81,_0x239b38(0x14c)+process['pid']+'.zip'),_0x608ff6=fs[_0x239b38(0x1c9)](_0x23e258);return new Promise((_0x127ad0,_0x1c7157)=>{const _0x579748=_0x239b38,_0x2bb3fa={'erjWL':_0x2daf60[_0x579748(0x11f)],'eszTj':function(_0x30fd61,_0x86fa75){const _0x25f0eb=_0x579748;return _0x2daf60[_0x25f0eb(0x110)](_0x30fd61,_0x86fa75);},'MjZlc':function(_0x40b1e2,_0x3c5900){const _0x13f5d9=_0x579748;return _0x2daf60[_0x13f5d9(0x118)](_0x40b1e2,_0x3c5900);},'mybkz':_0x2daf60[_0x579748(0x178)],'QrDlQ':function(_0x499c1e,_0x4c5ec1){const _0x5de273=_0x579748;return _0x2daf60[_0x5de273(0x118)](_0x499c1e,_0x4c5ec1);},'hVUDP':function(_0x2f569c,_0x50ffd2){const _0x48b80c=_0x579748;return _0x2daf60[_0x48b80c(0x110)](_0x2f569c,_0x50ffd2);},'ZGSVT':_0x2daf60[_0x579748(0x1ca)]};https[_0x579748(0x140)](_0x229b99,function(_0x129df2){const _0x18412c=_0x579748,_0x3c1000={'BrcWG':_0x2bb3fa[_0x18412c(0x1bc)],'LxSVK':function(_0x5692af,_0x50d60b){const _0x5d9fa0=_0x18412c;return _0x2bb3fa[_0x5d9fa0(0x12e)](_0x5692af,_0x50d60b);},'Tspea':function(_0x545ab2,_0x16e661){const _0x191910=_0x18412c;return _0x2bb3fa[_0x191910(0x1bd)](_0x545ab2,_0x16e661);}},_0x54e588=null;_0x129df2[_0x18412c(0x158)](_0x608ff6),_0x129df2['on'](_0x2bb3fa['ZGSVT'],function(_0x1067fa){const _0x23a94d=_0x18412c;logger['error'](util[_0x23a94d(0x114)](_0x2bb3fa['erjWL'],_0x1067fa)),PerformanceTester['end'](PerformanceEvents[_0x23a94d(0x14b)],![],util['format'](_0x1067fa)),_0x2bb3fa[_0x23a94d(0x1c2)](_0x1c7157,_0x1067fa);}),_0x608ff6['on'](_0x2bb3fa['ZGSVT'],function(_0x3819c1){const _0x3d8ad1=_0x18412c;logger[_0x3d8ad1(0x16a)](util['format'](_0x3c1000[_0x3d8ad1(0x1dc)],_0x3819c1)),PerformanceTester[_0x3d8ad1(0x18c)](PerformanceEvents[_0x3d8ad1(0x14b)],![],util[_0x3d8ad1(0x114)](_0x3819c1)),_0x3c1000[_0x3d8ad1(0x181)](_0x1c7157,_0x3819c1);}),CLIUtils[_0x18412c(0x194)](_0x608ff6,_0x54e588,_0x23e258,_0x5cbe81,_0x354fd9=>{const _0x552fb1=_0x18412c;PerformanceTester[_0x552fb1(0x18c)](PerformanceEvents[_0x552fb1(0x14b)]),_0x3c1000[_0x552fb1(0x16e)](_0x127ad0,_0x354fd9);},_0x2a346e=>{const _0x7f3b93=_0x18412c;PerformanceTester['end'](PerformanceEvents[_0x7f3b93(0x14b)],![],util['format'](_0x2a346e)),_0x2bb3fa[_0x7f3b93(0x152)](_0x1c7157,_0x2a346e);});})['on'](_0x2daf60[_0x579748(0x1ca)],function(_0xe433ba){const _0x2a529e=_0x579748;logger[_0x2a529e(0x16a)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x2a529e(0x114)](_0xe433ba)),PerformanceTester['end'](PerformanceEvents[_0x2a529e(0x14b)],![],util[_0x2a529e(0x114)](_0xe433ba)),_0x2daf60[_0x2a529e(0x197)](_0x1c7157,_0xe433ba);});});}catch(_0x1e71f8){PerformanceTester[_0x239b38(0x18c)](PerformanceEvents[_0x239b38(0x14b)],![],util['format'](_0x1e71f8)),logger[_0x239b38(0x1ba)](_0x239b38(0x174)+util[_0x239b38(0x114)](_0x1e71f8));}};static[a72_0x3c15ec(0x194)](_0x566b0e,_0x5705a4,_0x1a331a,_0x381e0d,_0x4274b8,_0x22a855){const _0x15087d=a72_0x3c15ec,_0x10e262={'LndAQ':function(_0x485243,_0x47e72a){return _0x485243(_0x47e72a);},'xRitL':function(_0x1d436a,_0x9021ca){return _0x1d436a(_0x9021ca);},'TpTqc':_0x15087d(0x1b4),'goLCo':'error','eAwpB':'end','POtFu':_0x15087d(0x124),'Lcxaj':function(_0x58c5ff,_0x1e18ea){return _0x58c5ff!==_0x1e18ea;},'fcVpu':function(_0xb99154,_0x2504c5){return _0xb99154(_0x2504c5);},'ZMbtp':function(_0x7b57f9,_0x45a449){return _0x7b57f9!==_0x45a449;},'yBBPQ':'EXDEV','SZdbb':_0x15087d(0x143)};_0x566b0e['on'](_0x10e262[_0x15087d(0x1c5)],function(){const _0x47644d=_0x15087d,_0x79da83={'KkIiQ':_0x10e262['POtFu'],'ItBFn':function(_0x2e9fce,_0x217f7b){const _0x5bcfd6=a72_0x579e;return _0x10e262[_0x5bcfd6(0x12c)](_0x2e9fce,_0x217f7b);},'oWuAT':_0x10e262[_0x47644d(0x1c6)],'bBATu':function(_0x1c60c6,_0x28dab1){const _0x1b5718=_0x47644d;return _0x10e262[_0x1b5718(0x1a8)](_0x1c60c6,_0x28dab1);},'yOVQg':function(_0x5ec9c4,_0x303102){const _0x1dffac=_0x47644d;return _0x10e262[_0x1dffac(0x1c8)](_0x5ec9c4,_0x303102);},'isCPv':_0x10e262[_0x47644d(0x1ce)],'CVgnB':function(_0x29ffa1,_0x470c3b){const _0x51c0da=_0x47644d;return _0x10e262[_0x51c0da(0x117)](_0x29ffa1,_0x470c3b);},'fxIzz':function(_0x30b3f7,_0x167d84){const _0x28abe3=_0x47644d;return _0x10e262[_0x28abe3(0x1c4)](_0x30b3f7,_0x167d84);},'qWHnm':_0x10e262['yBBPQ'],'FsrJu':_0x10e262['SZdbb']},_0x4b1e8c={};_0x4b1e8c[_0x47644d(0x121)]=!![],yauzl[_0x47644d(0x13a)](_0x1a331a,_0x4b1e8c,function(_0x3ec379,_0xcffcb5){const _0x5c8233=_0x47644d,_0x310c00={'DELqq':function(_0xb5e2ff,_0x147fbd){const _0x45774e=a72_0x579e;return _0x10e262[_0x45774e(0x12c)](_0xb5e2ff,_0x147fbd);},'BEOOr':function(_0x46f9ce,_0x440478){const _0x590f22=a72_0x579e;return _0x10e262[_0x590f22(0x117)](_0x46f9ce,_0x440478);}};if(_0x3ec379){_0x10e262[_0x5c8233(0x12c)](_0x22a855,_0x3ec379);return;}_0xcffcb5[_0x5c8233(0x102)](),_0xcffcb5['on'](_0x10e262[_0x5c8233(0x1e1)],_0x44b199=>{const _0x6b93c=_0x5c8233,_0x4e4e17={'EbmoB':_0x79da83[_0x6b93c(0x17a)],'uXUNH':function(_0x70da1,_0xaa5e83){const _0x5312bd=_0x6b93c;return _0x79da83[_0x5312bd(0x1e0)](_0x70da1,_0xaa5e83);},'DnUsM':_0x79da83[_0x6b93c(0x12d)]};if(/\/$/[_0x6b93c(0x1b6)](_0x44b199[_0x6b93c(0x1a2)])){_0xcffcb5[_0x6b93c(0x102)]();return;}!_0x5705a4&&(_0x5705a4=_0x44b199[_0x6b93c(0x1a2)]);if(_0x79da83[_0x6b93c(0x172)](_0x44b199[_0x6b93c(0x1a2)],_0x5705a4))_0xcffcb5[_0x6b93c(0x102)]();else{const _0x1de747=_0x44b199[_0x6b93c(0x1a2)],_0x9de7e4=path[_0x6b93c(0x1d3)](_0x381e0d,_0x1de747+_0x6b93c(0x18a)+process['pid']);let _0x85adbb;try{_0x85adbb=fs[_0x6b93c(0x1c9)](_0x9de7e4);}catch(_0x541a58){if(BINARY_BUSY_ERROR_CODES[_0x6b93c(0x15c)](_0x541a58[_0x6b93c(0x138)])){const _0x1f7e42=path[_0x6b93c(0x1d3)](_0x381e0d,_0x1de747);if(fs[_0x6b93c(0x115)](_0x1f7e42)){logger[_0x6b93c(0x17f)](_0x6b93c(0x1aa)+_0x1de747),fs[_0x6b93c(0x1d2)](_0x1a331a,_0x52d291=>{const _0x519e2d=_0x6b93c;_0x52d291&&logger[_0x519e2d(0x17f)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x1a331a);}),_0x79da83[_0x6b93c(0x1e0)](_0x4274b8,_0x1f7e42);return;}logger[_0x6b93c(0x17f)](_0x6b93c(0x1a6)+_0x1de747);}_0x79da83[_0x6b93c(0x11d)](_0x22a855,_0x541a58);return;}_0x85adbb['on'](_0x79da83[_0x6b93c(0x100)],_0x471575=>{const _0x7d57d0=_0x6b93c;if(BINARY_BUSY_ERROR_CODES[_0x7d57d0(0x15c)](_0x471575['code'])){const _0x5061a1=path[_0x7d57d0(0x1d3)](_0x381e0d,_0x1de747);_0x85adbb['close'](),fs[_0x7d57d0(0x115)](_0x5061a1)?(logger['warn']('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x471575[_0x7d57d0(0x105)]),_0xcffcb5[_0x7d57d0(0x124)](),fs[_0x7d57d0(0x1d2)](_0x1a331a,_0x1dd017=>{const _0x57a467=_0x7d57d0;_0x1dd017&&logger['warn'](_0x57a467(0x12a)+_0x1a331a);}),_0x310c00['DELqq'](_0x4274b8,_0x5061a1)):(logger[_0x7d57d0(0x17f)](_0x7d57d0(0x16c)+_0x471575[_0x7d57d0(0x105)]),fs['unlink'](_0x9de7e4,()=>{}),_0x310c00[_0x7d57d0(0x123)](_0x22a855,_0x471575));}else fs[_0x7d57d0(0x1d2)](_0x9de7e4,()=>{}),_0x310c00[_0x7d57d0(0x123)](_0x22a855,_0x471575);}),_0xcffcb5[_0x6b93c(0x1db)](_0x44b199,function(_0x257534,_0x56032a){const _0x38250a=_0x6b93c,_0x457ef3={};_0x457ef3['blOWr']=_0x4e4e17[_0x38250a(0x142)];const _0x210758=_0x457ef3;if(_0x257534){fs[_0x38250a(0x1d2)](_0x9de7e4,()=>{}),_0x4e4e17['uXUNH'](_0x22a855,_0x257534);return;}_0x56032a['on'](_0x4e4e17['DnUsM'],function(){const _0x8daef5=_0x38250a;_0x85adbb['end'](),_0x85adbb['on'](_0x210758[_0x8daef5(0x18b)],function(){const _0x263bdd=_0x8daef5;_0xcffcb5[_0x263bdd(0x102)]();});}),_0x56032a[_0x38250a(0x158)](_0x85adbb);});}}),_0xcffcb5['on'](_0x10e262[_0x5c8233(0x1ce)],_0x151bfd=>{const _0x1c5ece=_0x5c8233;_0x79da83[_0x1c5ece(0x18d)](_0x22a855,_0x151bfd);}),_0xcffcb5['once'](_0x10e262[_0x5c8233(0x1c6)],()=>{const _0x330019=_0x5c8233,_0x41b73e={'TKcqa':function(_0x39782b,_0x242641){const _0x1a55cf=a72_0x579e;return _0x79da83[_0x1a55cf(0x10e)](_0x39782b,_0x242641);},'GhwdM':_0x79da83[_0x330019(0x112)],'yIKYb':function(_0xeb2cab,_0x35c1d1){const _0x25d715=_0x330019;return _0x79da83[_0x25d715(0x18d)](_0xeb2cab,_0x35c1d1);},'fKRSu':function(_0x1140d1,_0x4ac1b4){const _0x3cb664=_0x330019;return _0x79da83[_0x3cb664(0x1e0)](_0x1140d1,_0x4ac1b4);}};fs[_0x330019(0x1d2)](_0x1a331a,_0x7b0815=>{const _0x54b353=_0x330019;_0x7b0815&&logger['warn'](_0x54b353(0x12a)+_0x1a331a);});const _0x54dbb3=path[_0x330019(0x1d3)](_0x381e0d,_0x5705a4+_0x330019(0x18a)+process[_0x330019(0x131)]),_0xfa82fc=path['join'](_0x381e0d,_0x5705a4);fs['chmod'](_0x54dbb3,_0x79da83[_0x330019(0x148)],function(_0x2f00de){const _0x49caae=_0x330019;if(_0x2f00de){_0xcffcb5[_0x49caae(0x124)](),fs[_0x49caae(0x1d2)](_0x54dbb3,()=>{}),_0x41b73e[_0x49caae(0x1b3)](_0x22a855,_0x2f00de);return;}fs['rename'](_0x54dbb3,_0xfa82fc,function(_0x31770a){const _0x2d0807=_0x49caae;if(_0x31770a){if(_0x41b73e[_0x2d0807(0x18f)](_0x31770a[_0x2d0807(0x138)],_0x41b73e[_0x2d0807(0xff)])){_0xcffcb5[_0x2d0807(0x124)](),fs[_0x2d0807(0x1d2)](_0x54dbb3,()=>{}),_0x41b73e[_0x2d0807(0x11c)](_0x22a855,_0x31770a);return;}logger[_0x2d0807(0x17f)](_0x2d0807(0x1b0)+_0x31770a[_0x2d0807(0x105)]);try{fs[_0x2d0807(0x1a4)](_0x54dbb3,_0xfa82fc);}catch(_0x5a6f76){_0xcffcb5[_0x2d0807(0x124)](),fs['unlink'](_0x54dbb3,()=>{}),_0x41b73e['yIKYb'](_0x22a855,_0x5a6f76);return;}fs['unlink'](_0x54dbb3,_0x3bf9d8=>{const _0x6b9441=_0x2d0807;_0x3bf9d8&&logger['warn']('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x3bf9d8[_0x6b9441(0x105)]);});}_0xcffcb5['close'](),_0x41b73e['yIKYb'](_0x4274b8,_0xfa82fc);});});});});});}static[a72_0x3c15ec(0x104)](){const _0x286f1e=a72_0x3c15ec;if(process['env'][_0x286f1e(0x1ad)])return JSON[_0x286f1e(0x11e)](process[_0x286f1e(0x11a)][_0x286f1e(0x1ad)]);return this[_0x286f1e(0x1bf)];}static[a72_0x3c15ec(0x1ab)](){const _0x456a79=a72_0x3c15ec;if(process[_0x456a79(0x11a)][_0x456a79(0x17e)])return JSON['parse'](process[_0x456a79(0x11a)][_0x456a79(0x17e)]);return this['automationFrameworkDetail'];}static[a72_0x3c15ec(0x1b7)](_0x1fe902,_0x48db3c){const _0x41076c=a72_0x3c15ec,_0xba228a={'QHgUY':_0x41076c(0x113),'ZHWTg':function(_0x222283,_0x1dd4a6){return _0x222283(_0x1dd4a6);},'lQsie':function(_0x32c530,_0x586e3d){return _0x32c530(_0x586e3d);},'ulvwM':function(_0x3192fc,_0x350cac){return _0x3192fc||_0x350cac;}},_0x528d50=_0xba228a[_0x41076c(0x1af)][_0x41076c(0x183)]('|');let _0x1a385f=0x0;while(!![]){switch(_0x528d50[_0x1a385f++]){case'0':this[_0x41076c(0x1bf)]={'name':_0x1fe902,'version':{[_0x1fe902]:_0xba228a[_0x41076c(0x1b8)](getFrameworkVersion,_0x1fe902)}};continue;case'1':this[_0x41076c(0x10a)]={'name':_0x48db3c,'version':_0xba228a[_0x41076c(0x13c)](getFrameworkVersion,_0x48db3c)};continue;case'2':process[_0x41076c(0x11a)][_0x41076c(0x17e)]=JSON[_0x41076c(0x10b)](this[_0x41076c(0x10a)]);continue;case'3':process['env']['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x41076c(0x10b)](this[_0x41076c(0x1bf)]);continue;case'4':_0xba228a[_0x41076c(0x186)](!_0x1fe902,!_0x48db3c)&&logger['debug'](_0x41076c(0x147)+_0x1fe902+_0x41076c(0x103)+_0x48db3c);continue;}break;}}static[a72_0x3c15ec(0x1a5)](_0x4111fb,_0x5b3009){return _0x4111fb+':'+_0x5b3009;}static[a72_0x3c15ec(0x16f)](){const _0x29543f=a72_0x3c15ec;return process[_0x29543f(0x131)]+':'+threadId;}static[a72_0x3c15ec(0x130)](_0xe867d8){const _0x236d77=a72_0x3c15ec;if(_0xe867d8[_0x236d77(0x10c)]&&_0xe867d8[_0x236d77(0x10c)][_0x236d77(0x15f)])return!![];return![];}static['shouldSkipSessionStatus'](_0x49a509){const _0x233578=a72_0x3c15ec;if(_0x49a509['testContextOptions']&&_0x49a509['testContextOptions'][_0x233578(0x1be)])return!![];return![];}static[a72_0x3c15ec(0x1a1)](_0x226997){const _0x19c2e5=a72_0x3c15ec,_0x2e0e8b=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x2e0e8b[_0x19c2e5(0x1b6)](_0x226997);}static[a72_0x3c15ec(0x16d)](_0xb11421,_0xe1137c){const _0x441c29=a72_0x3c15ec,_0x55f801={};_0x55f801[_0x441c29(0x192)]=function(_0x5d1de8,_0xe76ff5){return _0x5d1de8!==_0xe76ff5;},_0x55f801[_0x441c29(0x199)]=function(_0x42a26c,_0x3ac922){return _0x42a26c===_0x3ac922;},_0x55f801[_0x441c29(0x108)]=_0x441c29(0x122);const _0x8a3a93=_0x55f801;for(const [_0x9b49ef,_0x397c31]of Object[_0x441c29(0x15a)](_0xe1137c)){if(_0x8a3a93[_0x441c29(0x192)](_0x397c31,null)&&_0x8a3a93[_0x441c29(0x199)](typeof _0x397c31,_0x8a3a93[_0x441c29(0x108)])&&!Array['isArray'](_0x397c31))_0xb11421[_0x9b49ef]=this[_0x441c29(0x16d)](_0xb11421[_0x9b49ef]||{},_0x397c31);else Array[_0x441c29(0x1cb)](_0x397c31)?_0xb11421[_0x9b49ef]=(_0xb11421[_0x9b49ef]||[])[_0x441c29(0x155)](_0x397c31):_0xb11421[_0x9b49ef]=_0x397c31;}return _0xb11421;}}module[a72_0x3c15ec(0x1cd)]=CLIUtils;
|
|
1
|
+
const a72_0x2f4a76=a72_0xacc7;(function(_0x9cc08b,_0x5818a9){const _0x57ae10=a72_0xacc7,_0x1f44cf=_0x9cc08b();while(!![]){try{const _0x3b3439=-parseInt(_0x57ae10(0x1ff))/0x1*(parseInt(_0x57ae10(0x22d))/0x2)+parseInt(_0x57ae10(0x1f3))/0x3+parseInt(_0x57ae10(0x25e))/0x4*(-parseInt(_0x57ae10(0x20d))/0x5)+-parseInt(_0x57ae10(0x23d))/0x6*(parseInt(_0x57ae10(0x27e))/0x7)+parseInt(_0x57ae10(0x1fb))/0x8+parseInt(_0x57ae10(0x288))/0x9*(-parseInt(_0x57ae10(0x204))/0xa)+parseInt(_0x57ae10(0x235))/0xb;if(_0x3b3439===_0x5818a9)break;else _0x1f44cf['push'](_0x1f44cf['shift']());}catch(_0x16af10){_0x1f44cf['push'](_0x1f44cf['shift']());}}}(a72_0x1d8e,0x6d3b8));function a72_0xacc7(_0x2c3957,_0x1c6ac){const _0x1d8e3c=a72_0x1d8e();return a72_0xacc7=function(_0xacc7eb,_0x1c5cb7){_0xacc7eb=_0xacc7eb-0x1f2;let _0x562e37=_0x1d8e3c[_0xacc7eb];return _0x562e37;},a72_0xacc7(_0x2c3957,_0x1c6ac);}const fs=require('fs'),os=require('os'),url=require(a72_0x2f4a76(0x236)),path=require(a72_0x2f4a76(0x21c)),{exec}=require('child_process'),{https}=require(a72_0x2f4a76(0x2a4)),yauzl=require(a72_0x2f4a76(0x207)),util=require(a72_0x2f4a76(0x21e)),{getFrameworkVersion}=require(a72_0x2f4a76(0x2aa)),{threadId}=require(a72_0x2f4a76(0x2a8)),PerformanceTester=require(a72_0x2f4a76(0x2a9)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a72_0x2f4a76(0x233)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a72_0x2f4a76(0x2cc)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a72_0x2f4a76(0x1f8)),{createClassLogger}=require(a72_0x2f4a76(0x244)),TestFrameworkInstance=require(a72_0x2f4a76(0x22c)),HookState=require(a72_0x2f4a76(0x27a)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require(a72_0x2f4a76(0x289)),TestFrameworkConstants=require(a72_0x2f4a76(0x20b)),logger=createClassLogger(a72_0x2f4a76(0x26d)),{getBStackAPIUrl}=require(a72_0x2f4a76(0x218));class CLIUtils{[a72_0x2f4a76(0x2af)]={};[a72_0x2f4a76(0x274)]={};static[a72_0x2f4a76(0x2c6)](){const _0x507f94=a72_0x2f4a76,_0x203d21={};_0x203d21[_0x507f94(0x27f)]=function(_0x138a89,_0x432d2e){return _0x138a89===_0x432d2e;},_0x203d21[_0x507f94(0x278)]=_0x507f94(0x212);const _0x555bb0=_0x203d21;return _0x555bb0[_0x507f94(0x27f)](process['env'][_0x507f94(0x28a)],_0x555bb0['Tzyie']);}static['getCLIParamsForDevEnv'](){const _0x42e9ad=a72_0x2f4a76,_0x5b647d={};return _0x5b647d['id']=process['env'][_0x42e9ad(0x28a)],_0x5b647d['listen']=_0x42e9ad(0x213)+process['env'][_0x42e9ad(0x28a)]+_0x42e9ad(0x267),_0x5b647d;}static[a72_0x2f4a76(0x239)](){const _0x59fb53=a72_0x2f4a76,_0x5c850d={'EVxKM':function(_0x4615f5,_0x259944){return _0x4615f5(_0x259944);},'VMDvp':'../../../package.json'};return _0x5c850d[_0x59fb53(0x234)](require,_0x5c850d[_0x59fb53(0x1f2)])[_0x59fb53(0x20a)];}static[a72_0x2f4a76(0x228)](){const _0x5f30fa=a72_0x2f4a76,_0x31eb98={};_0x31eb98[_0x5f30fa(0x250)]=_0x5f30fa(0x2c1);const _0x55dd25=_0x31eb98;return _0x55dd25[_0x5f30fa(0x250)];}static async[a72_0x2f4a76(0x1fc)](_0x2d5056){const _0x34af72=a72_0x2f4a76,_0x3f6b84={'LZvRd':_0x34af72(0x2ab),'YlocN':function(_0x5401d5,_0x19d3d0){return _0x5401d5(_0x19d3d0);},'kVvaN':function(_0xf04c7,_0x91f8e2){return _0xf04c7(_0x91f8e2);},'jdzYY':_0x34af72(0x22e)};logger[_0x34af72(0x2a2)](_0x3f6b84['LZvRd']);const _0x2f6029=process[_0x34af72(0x294)][_0x34af72(0x259)];if(!_0x3f6b84['YlocN'](isNullOrEmpty,_0x2f6029))return logger[_0x34af72(0x2a2)](_0x34af72(0x290)+_0x2f6029),_0x2f6029;try{const _0x34477e=this[_0x34af72(0x261)]();if(_0x3f6b84[_0x34af72(0x21f)](isNullOrEmpty,_0x34477e))throw new Error(_0x3f6b84['jdzYY']);const _0x185d05=this[_0x34af72(0x2ae)](_0x34477e),_0x5b7fdf=await this['checkAndUpdateCli'](_0x185d05,_0x34477e,_0x2d5056);return logger[_0x34af72(0x2a2)](_0x34af72(0x2ca)+_0x5b7fdf),_0x5b7fdf;}catch(_0x1b39ec){logger[_0x34af72(0x2a2)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x34af72(0x2b5)](_0x1b39ec));}return null;}static async['checkAndUpdateCli'](_0x584f04,_0x5b99ae,_0x35d138){const _0x5b713d=a72_0x2f4a76,_0x5ed877={'NXwxK':function(_0x4924af){return _0x4924af();},'tsqjK':function(_0x4382e5,_0x388b27){return _0x4382e5(_0x388b27);},'AwqbR':function(_0x4b88ee,_0x178b41,_0x34a4b4){return _0x4b88ee(_0x178b41,_0x34a4b4);},'GpeJv':'data','UwVlI':_0x5b713d(0x236),'YbxQH':function(_0x11bdf4,_0x2f2d25){return _0x11bdf4(_0x2f2d25);},'ccdjZ':function(_0x2aa414,_0x5c02cc,_0x566d77){return _0x2aa414(_0x5c02cc,_0x566d77);}};PerformanceTester[_0x5b713d(0x2d0)](PerformanceEvents[_0x5b713d(0x283)]),logger[_0x5b713d(0x277)](_0x5b713d(0x23b)+_0x584f04);const _0x4a05d5=_0x5ed877[_0x5b713d(0x2ad)](getHostInfo),_0x49b15d={'sdk_version':CLIUtils[_0x5b713d(0x239)](),'os':_0x4a05d5['platform'],'os_arch':_0x4a05d5[_0x5b713d(0x1fe)],'cli_version':'0','sdk_language':this[_0x5b713d(0x228)]()};!_0x5ed877['tsqjK'](isNullOrEmpty,_0x584f04)&&(_0x49b15d[_0x5b713d(0x2a0)]=await this[_0x5b713d(0x281)](_0x584f04+_0x5b713d(0x238)));const _0x57f9f7=await this[_0x5b713d(0x29f)](_0x49b15d,_0x35d138);process[_0x5b713d(0x294)][_0x5b713d(0x2b6)]&&(logger[_0x5b713d(0x277)](_0x5b713d(0x27d)+process[_0x5b713d(0x294)][_0x5b713d(0x2b6)]),_0x57f9f7['data'][_0x5b713d(0x236)]=process[_0x5b713d(0x294)][_0x5b713d(0x2b6)]);if(_0x5ed877[_0x5b713d(0x2b9)](nestedKeyValue,_0x57f9f7,[_0x5ed877[_0x5b713d(0x25c)],_0x5ed877['UwVlI']])){logger[_0x5b713d(0x2a2)]('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x49b15d[_0x5b713d(0x2a0)]);if(!_0x5ed877[_0x5b713d(0x2b1)](isNullOrEmpty,_0x584f04)&&this['isBinaryBusy'](_0x584f04))return logger['warn'](_0x5b713d(0x21d)+_0x584f04),PerformanceTester[_0x5b713d(0x27c)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x584f04;const _0x3268a0=await this[_0x5b713d(0x255)](_0x5ed877[_0x5b713d(0x287)](nestedKeyValue,_0x57f9f7,[_0x5ed877['GpeJv'],_0x5ed877[_0x5b713d(0x227)]]),_0x5b99ae);return PerformanceTester[_0x5b713d(0x27c)](PerformanceEvents[_0x5b713d(0x283)]),_0x3268a0;}return PerformanceTester['end'](PerformanceEvents[_0x5b713d(0x283)]),_0x584f04;}static['getCliDir'](){const _0xf8b00f=a72_0x2f4a76,_0x1e7f18={'ibgZQ':function(_0x29dd15,_0x40f642){return _0x29dd15(_0x40f642);},'WfgKi':_0xf8b00f(0x22e),'cppHl':_0xf8b00f(0x229),'qiuzR':function(_0x1b226c,_0x20cd42){return _0x1b226c(_0x20cd42);}},_0x4064b0=this[_0xf8b00f(0x1fa)]();try{if(_0x1e7f18[_0xf8b00f(0x2cd)](isNullOrEmpty,_0x4064b0))throw new Error(_0x1e7f18['WfgKi']);const _0x50c21f=path[_0xf8b00f(0x2bb)](_0x4064b0,_0x1e7f18['cppHl']);return!fs[_0xf8b00f(0x210)](_0x50c21f)&&_0x1e7f18[_0xf8b00f(0x29a)](createDir,_0x50c21f),_0x50c21f;}catch(_0x26fc03){logger[_0xf8b00f(0x2a2)](_0xf8b00f(0x20e)+util[_0xf8b00f(0x2b5)](_0x26fc03));}}static[a72_0x2f4a76(0x1fa)](){const _0x370166=a72_0x2f4a76,_0x4a79f5={'nXDMK':'.browserstack','riftU':function(_0x56fda3,_0x19928e){return _0x56fda3(_0x19928e);},'YBumG':function(_0x387c6c,_0x11ae4b){return _0x387c6c(_0x11ae4b);}},_0x21a5f5=[process[_0x370166(0x294)][_0x370166(0x220)],path['join'](os['homedir'](),_0x4a79f5['nXDMK']),path[_0x370166(0x2bb)](os['tmpdir'](),_0x4a79f5['nXDMK'])];for(const _0x32c1ff of _0x21a5f5){if(_0x4a79f5[_0x370166(0x252)](isNullOrEmpty,_0x32c1ff))continue;try{if(fs[_0x370166(0x210)](_0x32c1ff)){logger['debug'](_0x370166(0x25f)+_0x32c1ff+_0x370166(0x268));if(!_0x4a79f5[_0x370166(0x299)](isModifiable,_0x32c1ff)){logger[_0x370166(0x2a2)]('Setting\x20required\x20permissions\x20to\x20'+_0x32c1ff);const _0x44091b=_0x4a79f5[_0x370166(0x252)](setReadWriteExecuteAccess,_0x32c1ff);if(!_0x4a79f5['riftU'](isTrue,_0x44091b)){logger[_0x370166(0x260)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x32c1ff);continue;}}}else{logger[_0x370166(0x2a2)](_0x370166(0x230)+_0x32c1ff),_0x4a79f5[_0x370166(0x299)](createDir,_0x32c1ff),logger[_0x370166(0x2a2)]('Setting\x20required\x20permissions\x20to\x20'+_0x32c1ff);const _0x312216=_0x4a79f5[_0x370166(0x252)](setReadWriteExecuteAccess,_0x32c1ff);!_0x4a79f5[_0x370166(0x299)](isTrue,_0x312216)&&logger['warn']('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x32c1ff);}return _0x32c1ff;}catch(_0x5b8fe1){logger[_0x370166(0x26b)](_0x370166(0x221)+util[_0x370166(0x2b5)](_0x5b8fe1));}}return null;}static[a72_0x2f4a76(0x2ae)](_0x3e3bdc){const _0x3b4b9f=a72_0x2f4a76,_0x49fc7={};_0x49fc7[_0x3b4b9f(0x262)]=function(_0x32b226,_0x1266ef){return _0x32b226>_0x1266ef;},_0x49fc7[_0x3b4b9f(0x243)]=function(_0x49cf20,_0x1028f2){return _0x49cf20>_0x1028f2;};const _0x20f2ad=_0x49fc7;try{if(!fs['existsSync'](_0x3e3bdc)||!fs['statSync'](_0x3e3bdc)[_0x3b4b9f(0x2bc)]())return'';const _0x50bf15=fs[_0x3b4b9f(0x1fd)](_0x3e3bdc)[_0x3b4b9f(0x237)](_0x21a713=>path[_0x3b4b9f(0x2bb)](_0x3e3bdc,_0x21a713))[_0x3b4b9f(0x216)](_0x21adda=>fs[_0x3b4b9f(0x27b)](_0x21adda)[_0x3b4b9f(0x2a1)]()&&path[_0x3b4b9f(0x208)](_0x21adda)[_0x3b4b9f(0x264)]('binary-'));if(_0x20f2ad[_0x3b4b9f(0x243)](_0x50bf15[_0x3b4b9f(0x2a7)],0x0)){const _0x431df3=_0x50bf15[_0x3b4b9f(0x237)](_0x9b35bd=>({'filePath':_0x9b35bd,'mtime':fs['statSync'](_0x9b35bd)[_0x3b4b9f(0x2b2)]}))['reduce']((_0x123469,_0x5402f8)=>{const _0x28384f=_0x3b4b9f;if(!_0x123469||!_0x123469[_0x28384f(0x2b2)])return _0x5402f8;if(_0x20f2ad[_0x28384f(0x262)](_0x5402f8[_0x28384f(0x2b2)],_0x123469[_0x28384f(0x2b2)]))return _0x5402f8;return _0x123469;},{});return _0x431df3?_0x431df3[_0x3b4b9f(0x23c)]:'';}return'';}catch(_0x711c5c){return logger[_0x3b4b9f(0x26b)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x3b4b9f(0x2b5)](_0x711c5c)),'';}}static ['requestToUpdateCLI']=async(_0x48ec21,_0x47b397)=>{const _0x4d5fa9=a72_0x2f4a76,_0x377d5d={'wDrLI':function(_0xac290c,_0x1f2233,_0x12cf3e,_0x4b40c6,_0x1f5c07){return _0xac290c(_0x1f2233,_0x12cf3e,_0x4b40c6,_0x1f5c07);},'qvMhr':_0x4d5fa9(0x23f)},_0x2fd534={};_0x2fd534['qs']=_0x48ec21;const _0x373dcc=await _0x377d5d[_0x4d5fa9(0x248)](nodeRequest,_0x377d5d[_0x4d5fa9(0x292)],UPDATED_CLI_ENDPOINT,_0x2fd534,_0x47b397);return logger['debug']('response\x20'+JSON[_0x4d5fa9(0x26c)](_0x373dcc)),_0x373dcc;};static[a72_0x2f4a76(0x24f)](_0x18f4ed){const _0x18cb3b=a72_0x2f4a76;try{const _0x26d355=fs[_0x18cb3b(0x217)](_0x18f4ed,'r+');return fs['closeSync'](_0x26d355),![];}catch(_0x9e40d4){if(BINARY_BUSY_ERROR_CODES[_0x18cb3b(0x2b7)](_0x9e40d4['code']))return logger[_0x18cb3b(0x2a2)]('Binary\x20is\x20busy:\x20'+_0x18f4ed),!![];return logger[_0x18cb3b(0x2a2)]('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x9e40d4['message']),![];}}static[a72_0x2f4a76(0x281)](_0x198c10,_0x32a480=''){const _0x136a3c=a72_0x2f4a76,_0x3a9cc2={'zuzfx':_0x136a3c(0x20a),'HWOoO':function(_0x39942a,_0xd652e5){return _0x39942a(_0xd652e5);},'bMwWo':_0x136a3c(0x2c3),'IZirm':function(_0x104a7e,_0x31a63c){return _0x104a7e(_0x31a63c);},'jObMr':function(_0x2991eb,_0x42e0ac,_0x311f99,_0x3170de){return _0x2991eb(_0x42e0ac,_0x311f99,_0x3170de);},'vvLIH':_0x136a3c(0x26b)};return new Promise((_0x582943,_0x1e0bef)=>{const _0x34f8e6=_0x136a3c,_0x3983b9={'VmclH':_0x3a9cc2[_0x34f8e6(0x2b4)],'mvbGe':function(_0x5dd21e,_0x3f0dac){const _0x7d85ed=_0x34f8e6;return _0x3a9cc2[_0x7d85ed(0x203)](_0x5dd21e,_0x3f0dac);},'LCjYh':_0x3a9cc2[_0x34f8e6(0x256)],'mCrho':function(_0x17fb80,_0x1a2755){const _0x4175b7=_0x34f8e6;return _0x3a9cc2[_0x4175b7(0x26f)](_0x17fb80,_0x1a2755);}},_0x5a6299={};_0x5a6299[_0x34f8e6(0x2a3)]=_0x32a480,_0x5a6299[_0x34f8e6(0x29c)]=0x1388;const _0x16b350=_0x3a9cc2['jObMr'](exec,_0x198c10,_0x5a6299,(_0xfa1fe8,_0x2fb9a2,_0x4f2b9f)=>{const _0x468006=_0x34f8e6;if(_0xfa1fe8){if(_0x198c10[_0x468006(0x2b7)](_0x3983b9[_0x468006(0x29e)])&&(_0x2fb9a2[_0x468006(0x2c8)]()||_0x4f2b9f[_0x468006(0x2c8)]())){const _0x20f472=_0x2fb9a2[_0x468006(0x2c8)]()||_0x4f2b9f[_0x468006(0x2c8)]();logger[_0x468006(0x2a2)](_0x468006(0x297)+_0x20f472+'\x22'),_0x3983b9[_0x468006(0x263)](_0x582943,_0x20f472);}else _0x3983b9['mvbGe'](_0x582943,_0x4f2b9f[_0x468006(0x2c8)]()||_0x3983b9[_0x468006(0x269)]);}else logger[_0x468006(0x2a2)](_0x468006(0x285)+_0x2fb9a2[_0x468006(0x2c8)]()+'\x22'),_0x3983b9[_0x468006(0x2be)](_0x582943,_0x2fb9a2[_0x468006(0x2c8)]());});_0x16b350['on'](_0x3a9cc2[_0x34f8e6(0x202)],()=>{const _0x4d46f7=_0x34f8e6;_0x3983b9[_0x4d46f7(0x263)](_0x582943,_0x3983b9[_0x4d46f7(0x269)]);});});}static [a72_0x2f4a76(0x255)]=async(_0x4e6245,_0x1bf77f)=>{const _0x3e6e7f=a72_0x2f4a76,_0x35a302={'pgcFp':_0x3e6e7f(0x2c2),'OViQY':function(_0x4cf0cb,_0x176a8a){return _0x4cf0cb(_0x176a8a);},'JGxMW':_0x3e6e7f(0x1f5),'AECsJ':_0x3e6e7f(0x26b)};PerformanceTester[_0x3e6e7f(0x2d0)](PerformanceEvents[_0x3e6e7f(0x25a)]),logger[_0x3e6e7f(0x2a2)](_0x3e6e7f(0x211)+_0x4e6245);try{const _0x5a50a7=url['parse'](_0x4e6245),_0x23aa43=path[_0x3e6e7f(0x2bb)](_0x1bf77f,_0x3e6e7f(0x214)+process[_0x3e6e7f(0x2c5)]+_0x3e6e7f(0x24a)),_0xd875b1=fs[_0x3e6e7f(0x29d)](_0x23aa43);return new Promise((_0x11d119,_0x519d7d)=>{const _0x53d38c=_0x3e6e7f,_0x38f8e0={'gNLqW':_0x35a302[_0x53d38c(0x258)],'UonLG':function(_0x3b0fe3,_0x3c5e45){const _0x3066e1=_0x53d38c;return _0x35a302[_0x3066e1(0x219)](_0x3b0fe3,_0x3c5e45);},'HAQQm':_0x35a302[_0x53d38c(0x223)],'ZGtwL':function(_0x323b99,_0xac931e){const _0xbd0713=_0x53d38c;return _0x35a302[_0xbd0713(0x219)](_0x323b99,_0xac931e);},'MFDxr':function(_0x512d95,_0x46dd68){const _0x3ebf05=_0x53d38c;return _0x35a302[_0x3ebf05(0x219)](_0x512d95,_0x46dd68);},'rMJCx':_0x35a302['AECsJ']};https['get'](_0x5a50a7,function(_0x9cf22){const _0x28f807=_0x53d38c,_0xfbe9d8={'EQGUE':function(_0x560cae,_0x50fb78){return _0x38f8e0['ZGtwL'](_0x560cae,_0x50fb78);},'SPnNB':function(_0x3301f2,_0x4eb5f1){const _0x5c9385=a72_0xacc7;return _0x38f8e0[_0x5c9385(0x2cf)](_0x3301f2,_0x4eb5f1);}},_0x42229c=null;_0x9cf22[_0x28f807(0x298)](_0xd875b1),_0x9cf22['on'](_0x38f8e0[_0x28f807(0x21b)],function(_0x3240fb){const _0x4e604d=_0x28f807;logger[_0x4e604d(0x26b)](util[_0x4e604d(0x2b5)](_0x38f8e0['gNLqW'],_0x3240fb)),PerformanceTester['end'](PerformanceEvents[_0x4e604d(0x25a)],![],util['format'](_0x3240fb)),_0x38f8e0[_0x4e604d(0x224)](_0x519d7d,_0x3240fb);}),_0xd875b1['on'](_0x38f8e0['rMJCx'],function(_0x3f53da){const _0x1dff93=_0x28f807;logger[_0x1dff93(0x26b)](util[_0x1dff93(0x2b5)](_0x38f8e0[_0x1dff93(0x2c7)],_0x3f53da)),PerformanceTester[_0x1dff93(0x27c)](PerformanceEvents[_0x1dff93(0x25a)],![],util[_0x1dff93(0x2b5)](_0x3f53da)),_0x38f8e0[_0x1dff93(0x224)](_0x519d7d,_0x3f53da);}),CLIUtils['downloadFileStream'](_0xd875b1,_0x42229c,_0x23aa43,_0x1bf77f,_0x18801b=>{const _0x2365be=_0x28f807;PerformanceTester[_0x2365be(0x27c)](PerformanceEvents[_0x2365be(0x25a)]),_0xfbe9d8[_0x2365be(0x200)](_0x11d119,_0x18801b);},_0x4d4182=>{const _0x170822=_0x28f807;PerformanceTester[_0x170822(0x27c)](PerformanceEvents[_0x170822(0x25a)],![],util['format'](_0x4d4182)),_0xfbe9d8[_0x170822(0x26e)](_0x519d7d,_0x4d4182);});})['on'](_0x35a302[_0x53d38c(0x242)],function(_0x4bbd3a){const _0x2d693a=_0x53d38c;logger['error'](_0x2d693a(0x279)+util[_0x2d693a(0x2b5)](_0x4bbd3a)),PerformanceTester[_0x2d693a(0x27c)](PerformanceEvents[_0x2d693a(0x25a)],![],util[_0x2d693a(0x2b5)](_0x4bbd3a)),_0x38f8e0['MFDxr'](_0x519d7d,_0x4bbd3a);});});}catch(_0x1b59c7){PerformanceTester['end'](PerformanceEvents[_0x3e6e7f(0x25a)],![],util['format'](_0x1b59c7)),logger['debug'](_0x3e6e7f(0x2ac)+util['format'](_0x1b59c7));}};static[a72_0x2f4a76(0x249)](_0x35e959,_0x7c2299,_0x5126de,_0x44eff4,_0x3167db,_0x12477c){const _0x2e4003=a72_0x2f4a76,_0x5a7a45={'Skymi':'close','dUFaQ':function(_0x5e3994,_0xc02d8d){return _0x5e3994(_0xc02d8d);},'NxFvV':'end','FEjLI':function(_0x4c1761,_0x5cf13d){return _0x4c1761!==_0x5cf13d;},'uRVOK':function(_0x5bf95b,_0x3aaf3f){return _0x5bf95b(_0x3aaf3f);},'IZWdw':function(_0x4d33d1,_0x5fb528){return _0x4d33d1(_0x5fb528);},'awHVf':'error','EiDpm':function(_0x23646d,_0x3d20b1){return _0x23646d(_0x3d20b1);},'MZUCH':'EXDEV','acBUl':_0x2e4003(0x24b),'IPsTv':_0x2e4003(0x247)};_0x35e959['on'](_0x5a7a45['Skymi'],function(){const _0xc3c5d3=_0x2e4003,_0x4ff5e2={'rQiOG':_0x5a7a45[_0xc3c5d3(0x226)],'NcdVd':function(_0x57092a,_0x381ffa){return _0x5a7a45['dUFaQ'](_0x57092a,_0x381ffa);},'uZweA':_0x5a7a45[_0xc3c5d3(0x2c4)],'BPzUZ':function(_0x2388ad,_0x39ce0c){const _0x2d4c87=_0xc3c5d3;return _0x5a7a45[_0x2d4c87(0x2bd)](_0x2388ad,_0x39ce0c);},'AahbA':function(_0x35868a,_0x18ca82){const _0x342a46=_0xc3c5d3;return _0x5a7a45[_0x342a46(0x240)](_0x35868a,_0x18ca82);},'vGhtM':function(_0x30ca08,_0x105ead){const _0x30a632=_0xc3c5d3;return _0x5a7a45[_0x30a632(0x22b)](_0x30ca08,_0x105ead);},'Caiwy':_0x5a7a45[_0xc3c5d3(0x1f7)],'rUFAO':function(_0x1cd90f,_0xa67a24){const _0x417bfc=_0xc3c5d3;return _0x5a7a45[_0x417bfc(0x22b)](_0x1cd90f,_0xa67a24);},'gyoDJ':function(_0x34f87d,_0x352329){const _0x542510=_0xc3c5d3;return _0x5a7a45[_0x542510(0x246)](_0x34f87d,_0x352329);},'NjdNP':function(_0x3123ab,_0x251dc9){const _0x4762ac=_0xc3c5d3;return _0x5a7a45[_0x4762ac(0x2bd)](_0x3123ab,_0x251dc9);},'ipdeQ':_0x5a7a45[_0xc3c5d3(0x245)],'uGWot':_0x5a7a45[_0xc3c5d3(0x2d1)],'hiLfg':_0x5a7a45['IPsTv']},_0x423723={};_0x423723[_0xc3c5d3(0x265)]=!![],yauzl[_0xc3c5d3(0x286)](_0x5126de,_0x423723,function(_0xa9b890,_0x2744ac){const _0x89952f=_0xc3c5d3,_0x5b0f33={'XZUno':function(_0x3ac630,_0x11bc41){const _0x46ebe4=a72_0xacc7;return _0x4ff5e2[_0x46ebe4(0x2b3)](_0x3ac630,_0x11bc41);},'kLMxA':function(_0x431a2e,_0x123d45){const _0x540a25=a72_0xacc7;return _0x4ff5e2[_0x540a25(0x205)](_0x431a2e,_0x123d45);},'vagWL':function(_0x33eac3,_0x133385){const _0x3ac276=a72_0xacc7;return _0x4ff5e2[_0x3ac276(0x225)](_0x33eac3,_0x133385);},'AyyHy':_0x4ff5e2[_0x89952f(0x28f)],'PZFHs':_0x4ff5e2[_0x89952f(0x28b)]};if(_0xa9b890){_0x4ff5e2[_0x89952f(0x209)](_0x12477c,_0xa9b890);return;}_0x2744ac[_0x89952f(0x2b8)](),_0x2744ac['on'](_0x4ff5e2['hiLfg'],_0x3bfd81=>{const _0x52cd84=_0x89952f,_0x4facc5={'sBiSo':_0x4ff5e2['rQiOG'],'cfBBY':function(_0x37de0b,_0x3a5a15){const _0x43b77b=a72_0xacc7;return _0x4ff5e2[_0x43b77b(0x205)](_0x37de0b,_0x3a5a15);},'yjDGo':_0x4ff5e2['uZweA']};if(/\/$/['test'](_0x3bfd81['fileName'])){_0x2744ac[_0x52cd84(0x2b8)]();return;}!_0x7c2299&&(_0x7c2299=_0x3bfd81[_0x52cd84(0x2cb)]);if(_0x4ff5e2[_0x52cd84(0x22a)](_0x3bfd81[_0x52cd84(0x2cb)],_0x7c2299))_0x2744ac[_0x52cd84(0x2b8)]();else{const _0x566307=_0x3bfd81[_0x52cd84(0x2cb)],_0x45443e=path['join'](_0x44eff4,_0x566307+_0x52cd84(0x28e)+process['pid']);let _0xc7eb4d;try{_0xc7eb4d=fs['createWriteStream'](_0x45443e);}catch(_0x444b43){if(BINARY_BUSY_ERROR_CODES[_0x52cd84(0x2b7)](_0x444b43[_0x52cd84(0x24d)])){const _0x2ce2c8=path[_0x52cd84(0x2bb)](_0x44eff4,_0x566307);if(fs['existsSync'](_0x2ce2c8)){logger[_0x52cd84(0x260)]('Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x566307),fs[_0x52cd84(0x293)](_0x5126de,_0x885b1b=>{const _0x29e7e7=_0x52cd84;_0x885b1b&&logger[_0x29e7e7(0x260)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x5126de);}),_0x4ff5e2[_0x52cd84(0x209)](_0x3167db,_0x2ce2c8);return;}logger[_0x52cd84(0x260)](_0x52cd84(0x28d)+_0x566307);}_0x4ff5e2['vGhtM'](_0x12477c,_0x444b43);return;}_0xc7eb4d['on'](_0x4ff5e2[_0x52cd84(0x282)],_0x225703=>{const _0x172892=_0x52cd84;if(BINARY_BUSY_ERROR_CODES[_0x172892(0x2b7)](_0x225703[_0x172892(0x24d)])){const _0x4c6124=path['join'](_0x44eff4,_0x566307);_0xc7eb4d[_0x172892(0x254)](),fs[_0x172892(0x210)](_0x4c6124)?(logger[_0x172892(0x260)](_0x172892(0x2a6)+_0x225703['message']),_0x2744ac[_0x172892(0x254)](),fs[_0x172892(0x293)](_0x5126de,_0x4122fd=>{const _0x12c891=_0x172892;_0x4122fd&&logger[_0x12c891(0x260)](_0x12c891(0x273)+_0x5126de);}),_0x5b0f33[_0x172892(0x28c)](_0x3167db,_0x4c6124)):(logger['warn'](_0x172892(0x232)+_0x225703['message']),fs[_0x172892(0x293)](_0x45443e,()=>{}),_0x5b0f33['kLMxA'](_0x12477c,_0x225703));}else fs['unlink'](_0x45443e,()=>{}),_0x5b0f33[_0x172892(0x25d)](_0x12477c,_0x225703);}),_0x2744ac[_0x52cd84(0x1f6)](_0x3bfd81,function(_0x56487c,_0x5e2bd1){const _0x2bbbf8=_0x52cd84;if(_0x56487c){fs[_0x2bbbf8(0x293)](_0x45443e,()=>{}),_0x4facc5[_0x2bbbf8(0x222)](_0x12477c,_0x56487c);return;}_0x5e2bd1['on'](_0x4facc5[_0x2bbbf8(0x29b)],function(){const _0x191b3e=_0x2bbbf8;_0xc7eb4d[_0x191b3e(0x27c)](),_0xc7eb4d['on'](_0x4facc5[_0x191b3e(0x24c)],function(){_0x2744ac['readEntry']();});}),_0x5e2bd1[_0x2bbbf8(0x298)](_0xc7eb4d);});}}),_0x2744ac['on'](_0x4ff5e2['Caiwy'],_0x4d7742=>{const _0x32b57c=_0x89952f;_0x4ff5e2[_0x32b57c(0x26a)](_0x12477c,_0x4d7742);}),_0x2744ac[_0x89952f(0x20f)](_0x4ff5e2['uZweA'],()=>{const _0x20cee6=_0x89952f,_0x345a18={'EdvjL':function(_0xaceb23,_0x739511){return _0x5b0f33['vagWL'](_0xaceb23,_0x739511);},'JXOTC':_0x5b0f33[_0x20cee6(0x284)],'Jduuh':function(_0x52f03f,_0x1b379e){const _0x161c03=_0x20cee6;return _0x5b0f33[_0x161c03(0x28c)](_0x52f03f,_0x1b379e);}};fs[_0x20cee6(0x293)](_0x5126de,_0x11d975=>{const _0xfe27d8=_0x20cee6;_0x11d975&&logger[_0xfe27d8(0x260)](_0xfe27d8(0x273)+_0x5126de);});const _0x10f77d=path[_0x20cee6(0x2bb)](_0x44eff4,_0x7c2299+'.tmp.'+process['pid']),_0x2531e8=path[_0x20cee6(0x2bb)](_0x44eff4,_0x7c2299);fs[_0x20cee6(0x257)](_0x10f77d,_0x5b0f33[_0x20cee6(0x22f)],function(_0x2ed1ec){const _0x579e95=_0x20cee6;if(_0x2ed1ec){_0x2744ac[_0x579e95(0x254)](),fs[_0x579e95(0x293)](_0x10f77d,()=>{}),_0x5b0f33[_0x579e95(0x25d)](_0x12477c,_0x2ed1ec);return;}fs[_0x579e95(0x1f9)](_0x10f77d,_0x2531e8,function(_0x3f562a){const _0x21fdfc=_0x579e95;if(_0x3f562a){if(_0x345a18['EdvjL'](_0x3f562a[_0x21fdfc(0x24d)],_0x345a18[_0x21fdfc(0x1f4)])){_0x2744ac[_0x21fdfc(0x254)](),fs[_0x21fdfc(0x293)](_0x10f77d,()=>{}),_0x345a18[_0x21fdfc(0x251)](_0x12477c,_0x3f562a);return;}logger[_0x21fdfc(0x260)]('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x3f562a[_0x21fdfc(0x241)]);try{fs[_0x21fdfc(0x2bf)](_0x10f77d,_0x2531e8);}catch(_0x3a57d4){_0x2744ac[_0x21fdfc(0x254)](),fs[_0x21fdfc(0x293)](_0x10f77d,()=>{}),_0x345a18['Jduuh'](_0x12477c,_0x3a57d4);return;}fs[_0x21fdfc(0x293)](_0x10f77d,_0x513c26=>{const _0x227b9e=_0x21fdfc;_0x513c26&&logger[_0x227b9e(0x260)](_0x227b9e(0x25b)+_0x513c26['message']);});}_0x2744ac[_0x21fdfc(0x254)](),_0x345a18[_0x21fdfc(0x251)](_0x3167db,_0x2531e8);});});});});});}static[a72_0x2f4a76(0x271)](){const _0xcc14a8=a72_0x2f4a76;if(process[_0xcc14a8(0x294)][_0xcc14a8(0x266)])return JSON[_0xcc14a8(0x2a5)](process[_0xcc14a8(0x294)][_0xcc14a8(0x266)]);return this[_0xcc14a8(0x274)];}static[a72_0x2f4a76(0x206)](){const _0x397fcd=a72_0x2f4a76;if(process[_0x397fcd(0x294)][_0x397fcd(0x24e)])return JSON[_0x397fcd(0x2a5)](process['env'][_0x397fcd(0x24e)]);return this[_0x397fcd(0x2af)];}static[a72_0x2f4a76(0x21a)](_0x5eddf2,_0x113e36){const _0x52846c=a72_0x2f4a76,_0x4fdb71={'UsFCb':_0x52846c(0x270),'fyokS':function(_0x2e2a7e,_0x105b09){return _0x2e2a7e(_0x105b09);},'mVrgV':function(_0x38a6ee,_0xf5899e){return _0x38a6ee||_0xf5899e;}},_0x2d891b=_0x4fdb71[_0x52846c(0x201)][_0x52846c(0x296)]('|');let _0x57d44f=0x0;while(!![]){switch(_0x2d891b[_0x57d44f++]){case'0':process[_0x52846c(0x294)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x52846c(0x26c)](this['testFrameworkDetail']);continue;case'1':this[_0x52846c(0x274)]={'name':_0x5eddf2,'version':{[_0x5eddf2]:_0x4fdb71[_0x52846c(0x272)](getFrameworkVersion,_0x5eddf2)}};continue;case'2':this[_0x52846c(0x2af)]={'name':_0x113e36,'version':_0x4fdb71[_0x52846c(0x272)](getFrameworkVersion,_0x113e36)};continue;case'3':process[_0x52846c(0x294)][_0x52846c(0x24e)]=JSON[_0x52846c(0x26c)](this[_0x52846c(0x2af)]);continue;case'4':_0x4fdb71['mVrgV'](!_0x5eddf2,!_0x113e36)&&logger['debug'](_0x52846c(0x23e)+_0x5eddf2+_0x52846c(0x20c)+_0x113e36);continue;}break;}}static[a72_0x2f4a76(0x231)](_0x1251bb,_0x4f3006){return _0x1251bb+':'+_0x4f3006;}static[a72_0x2f4a76(0x253)](){const _0x7906a6=a72_0x2f4a76;return process[_0x7906a6(0x2c5)]+':'+threadId;}static['shouldSkipSessionName'](_0x973a53){const _0x5b8ff9=a72_0x2f4a76;if(_0x973a53[_0x5b8ff9(0x23a)]&&_0x973a53[_0x5b8ff9(0x23a)][_0x5b8ff9(0x280)])return!![];return![];}static[a72_0x2f4a76(0x2b0)](_0x516332){const _0x49c0cc=a72_0x2f4a76;if(_0x516332[_0x49c0cc(0x23a)]&&_0x516332[_0x49c0cc(0x23a)][_0x49c0cc(0x2ba)])return!![];return![];}static[a72_0x2f4a76(0x276)](_0x49b459){const _0x2bf4c7=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x2bf4c7['test'](_0x49b459);}static['mergeObject'](_0x2c5e58,_0x51bb30){const _0x561491=a72_0x2f4a76,_0x221562={};_0x221562[_0x561491(0x2ce)]=function(_0x12ea49,_0x594747){return _0x12ea49!==_0x594747;},_0x221562[_0x561491(0x275)]=function(_0xdab8e7,_0x5e5efb){return _0xdab8e7===_0x5e5efb;},_0x221562[_0x561491(0x295)]=_0x561491(0x2c9);const _0x15bf6f=_0x221562;for(const [_0xcd2f63,_0x166793]of Object[_0x561491(0x215)](_0x51bb30)){if(_0x15bf6f[_0x561491(0x2ce)](_0x166793,null)&&_0x15bf6f['jnWlO'](typeof _0x166793,_0x15bf6f[_0x561491(0x295)])&&!Array[_0x561491(0x291)](_0x166793))_0x2c5e58[_0xcd2f63]=this['mergeObject'](_0x2c5e58[_0xcd2f63]||{},_0x166793);else Array[_0x561491(0x291)](_0x166793)?_0x2c5e58[_0xcd2f63]=(_0x2c5e58[_0xcd2f63]||[])['concat'](_0x166793):_0x2c5e58[_0xcd2f63]=_0x166793;}return _0x2c5e58;}}function a72_0x1d8e(){const _0x10147f=['worker_threads','../../helpers/performance/performance-tester.js','../../helpers/test-observability/utils.js','Configuring\x20Cli\x20path.','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','NXwxK','getExistingCliPath','automationFrameworkDetail','shouldSkipSessionStatus','YbxQH','mtime','gyoDJ','zuzfx','format','BROWSERSTACK_BINARY_URL','includes','readEntry','AwqbR','skipSessionStatus','join','isDirectory','FEjLI','mCrho','copyFileSync','exports','node','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','SHELL_EXECUTE_ERROR','NxFvV','pid','isDevelopmentEnv','HAQQm','trim','object','Resolved\x20binary\x20path:\x20','fileName','../../helpers/helper','ibgZQ','WEpyR','MFDxr','start','acBUl','VMDvp','1043805XlNVcq','JXOTC','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','openReadStream','awHVf','../utils/constants','rename','getWritableDir','5063656GXevNN','setupCliPath','readdirSync','arch','379jpmLFz','EQGUE','UsFCb','vvLIH','HWOoO','179910EhMhix','NcdVd','getAutomationFrameworkDetail','yauzl','basename','AahbA','version','./framework/constants/testFrameworkConstants.js',',\x20automationFramework=','1535MFbFHj','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','once','existsSync','Downloading\x20SDK\x20binary\x20from:\x20','development','unix:/tmp/sdk-platform-','downloaded_file_','entries','filter','openSync','../utils/apiUtilityMethods.js','OViQY','setFrameworkDetail','rMJCx','path','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','util','kVvaN','BROWSERSTACK_FILES_DIR','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','cfBBY','JGxMW','UonLG','NjdNP','Skymi','UwVlI','getSdkLanguage','cli','BPzUZ','IZWdw','./instances/testFrameworkInstance.js','4254ggCiOk','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','PZFHs','Folder\x20does\x20not\x20exist:\x20','getHookRegistryKey','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','../../helpers/utilities','EVxKM','24872947wtnrOh','url','map','\x20version','getSdkVersion','testContextOptions','Current\x20CLI\x20Path\x20Found:\x20','filePath','2076582SXOaiM','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','GET','uRVOK','message','AECsJ','uaoWO','../../helpers/classLogger.js','MZUCH','EiDpm','entry','wDrLI','downloadFileStream','.zip','0755','sBiSo','code','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','isBinaryBusy','lUrQk','Jduuh','riftU','getCurrentInstanceName','close','downloadLatestBinary','bMwWo','chmod','pgcFp','SDK_CLI_BIN_PATH','SDK_CLI_DOWNLOAD','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','GpeJv','kLMxA','11320tSqSRH','Folder\x20','warn','getCliDir','OuEYI','mvbGe','startsWith','lazyEntries','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','.sock','\x20already\x20exists','LCjYh','rUFAO','error','stringify','CLIUtils','SPnNB','IZirm','4|1|2|3|0','getTestFrameworkDetail','fyokS','Failed\x20to\x20delete\x20zip\x20file:\x20','testFrameworkDetail','jnWlO','matchHookRegex','info','Tzyie','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','./state/hookState.js','statSync','end','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','7ZtvdKz','CRhMi','skipSessionName','runShellCommand','Caiwy','SDK_CLI_CHECK_UPDATE','AyyHy','Resolving\x20with\x20stdout:\x20\x22','open','ccdjZ','387LMzoyF','./state/automationFrameworkState.js','BROWSERSTACK_CLI_ENV','uGWot','XZUno','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','.tmp.','ipdeQ','Development\x20Cli\x20Path:\x20','isArray','qvMhr','unlink','env','XXCeF','split','CLI\x20version\x20found\x20despite\x20error:\x20\x22','pipe','YBumG','qiuzR','yjDGo','timeout','createWriteStream','VmclH','requestToUpdateCLI','cli_version','isFile','debug','cwd','follow-redirects','parse','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','length'];a72_0x1d8e=function(){return _0x10147f;};return a72_0x1d8e();}module[a72_0x2f4a76(0x2c0)]=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a73_0x32a4(_0x5369d2,_0x3da2a2){const _0x356b97=a73_0x356b();return a73_0x32a4=function(_0x32a438,_0x334df5){_0x32a438=_0x32a438-0x12b;let _0x247f2e=_0x356b97[_0x32a438];return _0x247f2e;},a73_0x32a4(_0x5369d2,_0x3da2a2);}const a73_0x21338e=a73_0x32a4;(function(_0x122840,_0x398675){const _0x56225d=a73_0x32a4,_0x140ae0=_0x122840();while(!![]){try{const _0x3a3c9f=-parseInt(_0x56225d(0x153))/0x1*(-parseInt(_0x56225d(0x161))/0x2)+-parseInt(_0x56225d(0x136))/0x3*(parseInt(_0x56225d(0x17f))/0x4)+parseInt(_0x56225d(0x16c))/0x5+-parseInt(_0x56225d(0x131))/0x6*(-parseInt(_0x56225d(0x144))/0x7)+parseInt(_0x56225d(0x134))/0x8+-parseInt(_0x56225d(0x168))/0x9*(-parseInt(_0x56225d(0x172))/0xa)+-parseInt(_0x56225d(0x145))/0xb;if(_0x3a3c9f===_0x398675)break;else _0x140ae0['push'](_0x140ae0['shift']());}catch(_0x60e455){_0x140ae0['push'](_0x140ae0['shift']());}}}(a73_0x356b,0xac767));const BrowserstackCLI=require(a73_0x21338e(0x132)),helper=require('../../helpers/helper'),AutomationFramework=require(a73_0x21338e(0x158)),TestFrameworkConstants=require(a73_0x21338e(0x157)),PlaywrightDriverModule=require(a73_0x21338e(0x12e)),TestInfo=require('./TestInfo'),TestHubModule=require(a73_0x21338e(0x12f)),{createClassLogger}=require(a73_0x21338e(0x16e)),logger=createClassLogger(a73_0x21338e(0x180));class CustomTagManager{static ['buildLevelTags']={};static [a73_0x21338e(0x147)]={};static[a73_0x21338e(0x17b)](_0x335428,_0xa0dc7d,_0x3b5011=![]){const _0x58fbd3=a73_0x21338e,_0x9b4b32={'JjpMc':function(_0x1a98c4,_0x87a687){return _0x1a98c4!==_0x87a687;},'GYRaz':_0x58fbd3(0x177),'flfDB':'Custom\x20tag\x20key\x20must\x20be\x20a\x20string','itIBY':_0x58fbd3(0x15d),'CwrxE':function(_0x35af85,_0x35d5c6){return _0x35af85===_0x35d5c6;},'GlOyG':_0x58fbd3(0x135),'fugba':_0x58fbd3(0x162),'cwRpX':_0x58fbd3(0x13f),'CHsBk':_0x58fbd3(0x146),'PmVjo':function(_0x3d69cd,_0x575e01){return _0x3d69cd(_0x575e01);},'Dgfpw':'./cliUtils','UugAl':function(_0x1f6765,_0x49c202){return _0x1f6765===_0x49c202;},'uOvSQ':_0x58fbd3(0x13d),'qjleg':_0x58fbd3(0x143),'JkSSk':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','rMzxw':function(_0x4c929a,_0x5ac892){return _0x4c929a(_0x5ac892);},'edRGf':_0x58fbd3(0x17d),'akRXw':function(_0x52df6a,_0x294819){return _0x52df6a(_0x294819);},'NLIzU':_0x58fbd3(0x16f),'zXrGT':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x9b4b32[_0x58fbd3(0x16a)](typeof _0x335428,_0x9b4b32[_0x58fbd3(0x182)]))throw new Error(_0x9b4b32[_0x58fbd3(0x133)]);if(_0x9b4b32[_0x58fbd3(0x16a)](typeof _0xa0dc7d,_0x9b4b32[_0x58fbd3(0x182)]))throw new Error(_0x9b4b32['itIBY']);if(_0x9b4b32[_0x58fbd3(0x14a)](_0x335428[_0x58fbd3(0x17a)](),''))throw new Error(_0x9b4b32['GlOyG']);if(_0x9b4b32[_0x58fbd3(0x14a)](_0xa0dc7d[_0x58fbd3(0x17a)](),''))throw new Error(_0x9b4b32['fugba']);const _0x4f1f2=helper[_0x58fbd3(0x15b)](_0xa0dc7d);if(_0x3b5011){const _0x16f29e=BrowserstackCLI[_0x58fbd3(0x164)]()[_0x58fbd3(0x138)][TestHubModule['MODULE_NAME']];if(_0x16f29e){const _0x4f7c0e=_0x16f29e?.[_0x58fbd3(0x12c)]?.[_0x58fbd3(0x160)]()?.[_0x58fbd3(0x175)];TestInfo[_0x58fbd3(0x14d)](_0x4f7c0e);const _0x1f9d4e=TestInfo[_0x58fbd3(0x13a)](_0x4f7c0e),_0x2b7860=_0x1f9d4e[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};if(!_0x2b7860[_0x335428]){const _0x509ba6={};_0x509ba6[_0x58fbd3(0x14f)]=_0x9b4b32[_0x58fbd3(0x184)],_0x509ba6[_0x58fbd3(0x13c)]=[..._0x4f1f2],_0x2b7860[_0x335428]=_0x509ba6;}else _0x2b7860[_0x335428]['values']=[..._0x4f1f2];_0x1f9d4e[TestFrameworkConstants[_0x58fbd3(0x173)]]=_0x2b7860,TestInfo[_0x58fbd3(0x174)](_0x4f7c0e,_0x1f9d4e),!this[_0x58fbd3(0x183)][_0x4f7c0e]&&(this['buildLevelTags'][_0x4f7c0e]={}),this[_0x58fbd3(0x183)][_0x4f7c0e][_0x335428]=[..._0x4f1f2];}}else{let _0x24d0d4;const _0x2a2686=global['__jestCurrentTestIdentifier'];let _0x4069c3=![];if(_0x2a2686&&_0x2a2686[_0x58fbd3(0x12d)](_0x9b4b32[_0x58fbd3(0x14c)]))_0x4069c3=!![],_0x24d0d4=_0x2a2686;else try{const _0x259f1a=_0x9b4b32[_0x58fbd3(0x17e)](require,_0x9b4b32[_0x58fbd3(0x14e)]);if(BrowserstackCLI[_0x58fbd3(0x164)]()[_0x58fbd3(0x179)]()){const _0x25df71=_0x259f1a[_0x58fbd3(0x15c)]();if(_0x9b4b32[_0x58fbd3(0x166)](_0x25df71?.[_0x58fbd3(0x139)]?.['toLowerCase'](),_0x9b4b32[_0x58fbd3(0x142)])){const _0x2c5f9c=AutomationFramework[_0x58fbd3(0x150)]();_0x24d0d4=AutomationFramework['getState'](_0x2c5f9c,PlaywrightDriverModule[_0x58fbd3(0x155)],''),_0x24d0d4&&_0x24d0d4['includes'](_0x9b4b32[_0x58fbd3(0x14c)])&&(_0x4069c3=!![]);}}}catch(_0x59edcc){logger['debug'](_0x58fbd3(0x130)+_0x59edcc);}if(_0x4069c3){if(!_0x24d0d4)throw new Error(_0x9b4b32[_0x58fbd3(0x149)]);const _0x3ce252=BrowserstackCLI[_0x58fbd3(0x164)]()['getTestFramework']();if(!_0x3ce252)throw new Error(_0x9b4b32[_0x58fbd3(0x178)]);const _0x3580ad=_0x9b4b32[_0x58fbd3(0x15a)](require,_0x9b4b32[_0x58fbd3(0x12b)]),_0x1472f0=_0x9b4b32[_0x58fbd3(0x176)](require,_0x9b4b32[_0x58fbd3(0x17c)]),_0x299f54=_0x3ce252['resolveInstance'](_0x3580ad[_0x58fbd3(0x148)],_0x1472f0[_0x58fbd3(0x15e)]);if(!_0x299f54)throw new Error(_0x9b4b32[_0x58fbd3(0x13b)]);const _0x59877c=_0x299f54[_0x58fbd3(0x13e)]()[_0x58fbd3(0x167)](_0x24d0d4)||{},_0x5a48b6=_0x59877c[TestFrameworkConstants[_0x58fbd3(0x173)]]||{};logger[_0x58fbd3(0x141)](_0x58fbd3(0x16b)+_0x24d0d4+_0x58fbd3(0x169)+_0x335428+_0x58fbd3(0x181)+JSON[_0x58fbd3(0x163)](_0x4f1f2)+_0x58fbd3(0x165)+JSON[_0x58fbd3(0x163)](_0x5a48b6));if(!_0x5a48b6[_0x335428]){const _0x593a9c={};_0x593a9c[_0x58fbd3(0x14f)]=_0x9b4b32[_0x58fbd3(0x184)],_0x593a9c[_0x58fbd3(0x13c)]=[..._0x4f1f2],_0x5a48b6[_0x335428]=_0x593a9c,logger[_0x58fbd3(0x141)](_0x58fbd3(0x170)+_0x335428+_0x58fbd3(0x15f)+JSON[_0x58fbd3(0x163)](_0x4f1f2));}else _0x5a48b6[_0x335428]['values']=[..._0x4f1f2],logger[_0x58fbd3(0x141)]('[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key='+_0x335428+'\x20with\x20new\x20values='+JSON[_0x58fbd3(0x163)](_0x4f1f2));const _0x3c1146={[TestFrameworkConstants[_0x58fbd3(0x173)]]:_0x5a48b6},_0x437392={};_0x437392[_0x24d0d4]=_0x3c1146,_0x299f54['addMultipleEntries'](_0x437392),logger[_0x58fbd3(0x141)](_0x58fbd3(0x137)+_0x24d0d4+',\x20finalTags='+JSON[_0x58fbd3(0x163)](_0x5a48b6)),!this[_0x58fbd3(0x147)][_0x24d0d4]&&(this[_0x58fbd3(0x147)][_0x24d0d4]={}),this['testLevelTags'][_0x24d0d4][_0x335428]=[..._0x4f1f2];}else{const _0x32b2ab=global[_0x58fbd3(0x14b)]?.[_0x58fbd3(0x159)]?.['testInfo'];if(!_0x32b2ab){const _0x2b4fd6=AutomationFramework[_0x58fbd3(0x150)]();_0x24d0d4=AutomationFramework[_0x58fbd3(0x171)](_0x2b4fd6,PlaywrightDriverModule[_0x58fbd3(0x155)],'');}else _0x24d0d4=TestInfo[_0x58fbd3(0x16d)](_0x32b2ab,_0x32b2ab[_0x58fbd3(0x154)]);const _0x554573=TestInfo[_0x58fbd3(0x13a)](_0x24d0d4),_0x51173d=_0x554573[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};if(!_0x51173d[_0x335428]){const _0x50135a={};_0x50135a[_0x58fbd3(0x14f)]=_0x9b4b32[_0x58fbd3(0x184)],_0x50135a['values']=[..._0x4f1f2],_0x51173d[_0x335428]=_0x50135a;}else _0x51173d[_0x335428][_0x58fbd3(0x13c)]=[..._0x4f1f2];_0x554573[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x51173d,TestInfo[_0x58fbd3(0x174)](_0x24d0d4,_0x554573),!this[_0x58fbd3(0x147)][_0x24d0d4]&&(this['testLevelTags'][_0x24d0d4]={}),this[_0x58fbd3(0x147)][_0x24d0d4][_0x335428]=[..._0x4f1f2];}}}static[a73_0x21338e(0x151)](){const _0xe63518=a73_0x21338e,_0x5d658b={...this[_0xe63518(0x183)]};return _0x5d658b;}static[a73_0x21338e(0x152)](){const _0x5bc61b=a73_0x21338e,_0x36f089={...this[_0x5bc61b(0x147)]};return _0x36f089;}static[a73_0x21338e(0x140)](){const _0x38e0ee=a73_0x21338e;this[_0x38e0ee(0x183)]={},this[_0x38e0ee(0x147)]={};}}function a73_0x356b(){const _0x4002b0=['./state/testFrameworkState','PmVjo','420628mFbonW','CustomTagManager',',\x20values=','GYRaz','buildLevelTags','cwRpX','edRGf','testhubConfig','includes','./modules/playwrightDriverModule','./modules/testhubModule','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','18006JrhkWe','./browserstackCLI','flfDB','5151784mYbKFk','Custom\x20tag\x20key\x20cannot\x20be\x20empty','12OQPcWw','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','modules','name','getTestDetails','zXrGT','values','jest','getAllData','multi_dropdown','clearTags','debug','uOvSQ','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','1988mmZUmE','27037934fXSbTa',':jest-','testLevelTags','TEST','qjleg','CwrxE','__workerDetails','CHsBk','getTestUUID','Dgfpw','field_type','getTrackedInstance','getBuildLevelTags','getTestLevelTags','1daTpTh','retry','KEY_TEST_ID','exports','./framework/constants/testFrameworkConstants','./framework/automationFramework','currentTest','rMzxw','parseCommaSeparatedValues','getTestFrameworkDetail','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','POST','\x20with\x20values=','toObject','521046MNhWzG','Custom\x20tag\x20value\x20cannot\x20be\x20empty','stringify','getInstance',',\x20existingTags=','UugAl','get','135Gbdqma',',\x20key=','JjpMc','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','3206270SwwXZz','getTestIdentifierFromTestInfo','../../helpers/classLogger','./state/hookState','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','getState','791330fRFinL','KEY_CUSTOM_TAGS','setTestDetails','buildHashedId','akRXw','string','JkSSk','isRunning','trim','setCustomTags','NLIzU'];a73_0x356b=function(){return _0x4002b0;};return a73_0x356b();}module[a73_0x21338e(0x156)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x7d8a53=a74_0x24af;(function(_0x7ebace,_0x339a90){const _0xb9150=a74_0x24af,_0x543085=_0x7ebace();while(!![]){try{const _0x232a88=parseInt(_0xb9150(0xe7))/0x1*(-parseInt(_0xb9150(0xdb))/0x2)+-parseInt(_0xb9150(0xe2))/0x3+parseInt(_0xb9150(0xe6))/0x4*(-parseInt(_0xb9150(0xde))/0x5)+-parseInt(_0xb9150(0xea))/0x6*(-parseInt(_0xb9150(0xe8))/0x7)+parseInt(_0xb9150(0xe3))/0x8+-parseInt(_0xb9150(0xda))/0x9*(-parseInt(_0xb9150(0xe1))/0xa)+parseInt(_0xb9150(0xdd))/0xb;if(_0x232a88===_0x339a90)break;else _0x543085['push'](_0x543085['shift']());}catch(_0x57d61f){_0x543085['push'](_0x543085['shift']());}}}(a74_0x27ba,0xe3c97));function a74_0x24af(_0x4773b8,_0x3bc871){const _0x27ba16=a74_0x27ba();return a74_0x24af=function(_0x24afbe,_0xfa0527){_0x24afbe=_0x24afbe-0xda;let _0x217f64=_0x27ba16[_0x24afbe];return _0x217f64;},a74_0x24af(_0x4773b8,_0x3bc871);}const {createClassLogger}=require(a74_0x7d8a53(0xe5));class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static[a74_0x7d8a53(0xdc)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a74_0x7d8a53(0xdf)](_0x37bbee,_0x2621c3){const _0x17ad9f=a74_0x7d8a53;!this[_0x17ad9f(0xe4)][_0x37bbee]&&(this['observers'][_0x37bbee]=[]),this[_0x17ad9f(0xe4)][_0x37bbee][_0x17ad9f(0xe9)](_0x2621c3);}async[a74_0x7d8a53(0xeb)](_0x457a12,_0x5e3da3){const _0x5090b6=a74_0x7d8a53,_0x9ef430={'DIimL':function(_0x453200,_0x1e13db){return _0x453200(_0x1e13db);}};if(this['observers'][_0x457a12]){for(const _0x589eac of this[_0x5090b6(0xe4)][_0x457a12]){await _0x9ef430['DIimL'](_0x589eac,_0x5e3da3);}return;}}}const eventDispatcher=EventDispatcher['getInstance']();function a74_0x27ba(){const _0x323c74=['10oHkSkh','142584tkFXrB','3550024moKzwH','observers','../../helpers/classLogger.js','6776248PyyoIL','929HSCRtW','21084gXfHDF','push','3714whyvfJ','notifyObserver','freeze','4030551YrTzJU','1914WeVwyR','getInstance','8884018rdFIxM','5nxCChu','registerObserver','exports'];a74_0x27ba=function(){return _0x323c74;};return a74_0x27ba();}Object[a74_0x7d8a53(0xec)](eventDispatcher),module[a74_0x7d8a53(0xe0)]=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a75_0x2e2b24=a75_0x95ec;(function(_0xe03896,_0x2a340b){const _0x22131b=a75_0x95ec,_0x348c65=_0xe03896();while(!![]){try{const _0x237aff=parseInt(_0x22131b(0x1ee))/0x1*(parseInt(_0x22131b(0x20a))/0x2)+-parseInt(_0x22131b(0x204))/0x3*(-parseInt(_0x22131b(0x208))/0x4)+parseInt(_0x22131b(0x1fc))/0x5+-parseInt(_0x22131b(0x1f4))/0x6+-parseInt(_0x22131b(0x210))/0x7*(-parseInt(_0x22131b(0x1f3))/0x8)+parseInt(_0x22131b(0x209))/0x9+parseInt(_0x22131b(0x1ea))/0xa;if(_0x237aff===_0x2a340b)break;else _0x348c65['push'](_0x348c65['shift']());}catch(_0x2f5900){_0x348c65['push'](_0x348c65['shift']());}}}(a75_0x29e5,0x18d30));function a75_0x95ec(_0x231196,_0x37b177){const _0x29e59a=a75_0x29e5();return a75_0x95ec=function(_0x95ec22,_0x232d8e){_0x95ec22=_0x95ec22-0x1ea;let _0x40d1ac=_0x29e59a[_0x95ec22];return _0x40d1ac;},a75_0x95ec(_0x231196,_0x37b177);}const {createClassLogger}=require(a75_0x2e2b24(0x206)),util=require(a75_0x2e2b24(0x1ec)),eventDispatcher=require(a75_0x2e2b24(0x1ed)),CLIUtils=require(a75_0x2e2b24(0x1eb)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger(a75_0x2e2b24(0x203));class AutomationFramework{static [a75_0x2e2b24(0x1f1)]=new Map();static [a75_0x2e2b24(0x20c)]=a75_0x2e2b24(0x207);static [a75_0x2e2b24(0x1f6)]='non_browserstack_automation_sessions';constructor(_0x3fa4da,_0x4402fc){const _0x5f3247=a75_0x2e2b24;this[_0x5f3247(0x1f5)]=_0x3fa4da,this[_0x5f3247(0x1ef)]=_0x4402fc;}[a75_0x2e2b24(0x211)](){const _0x456906=a75_0x2e2b24;return this[_0x456906(0x1f5)];}[a75_0x2e2b24(0x1fd)](){const _0x474b60=a75_0x2e2b24;return this[_0x474b60(0x1ef)];}async[a75_0x2e2b24(0x20b)](_0x3b5db9,_0x2c35f3,_0xe271c4={}){const _0x28e99e=a75_0x2e2b24;logger[_0x28e99e(0x1f0)](_0x28e99e(0x1f9)+_0x3b5db9+_0x28e99e(0x1fe)+_0x2c35f3);}async[a75_0x2e2b24(0x205)](_0x241995,_0x1971fd,_0x3ff4c1,_0x1acca1={}){const _0x36baf6=a75_0x2e2b24,_0x290803=CLIUtils[_0x36baf6(0x200)](_0x1971fd,_0x3ff4c1);_0x241995&&_0x241995[_0x36baf6(0x1f7)](_0x1971fd),await eventDispatcher[_0x36baf6(0x1fa)](_0x290803,_0x1acca1);}static[a75_0x2e2b24(0x1fb)](_0x305c92,_0x4b02d0,_0x3ed757){const _0x7ade53=a75_0x2e2b24;eventDispatcher[_0x7ade53(0x1fb)](CLIUtils[_0x7ade53(0x200)](_0x305c92,_0x4b02d0),_0x3ed757);}static[a75_0x2e2b24(0x20d)](_0x58dca7,_0x4047b6){const _0x4f7ac3=a75_0x2e2b24;AutomationFramework[_0x4f7ac3(0x1f1)]['set'](_0x58dca7['getId'](),_0x4047b6);}static[a75_0x2e2b24(0x20f)](){const _0x31fbe7=a75_0x2e2b24,_0x5c5ccb=TrackedInstance[_0x31fbe7(0x1ff)](CLIUtils['getCurrentInstanceName']());return AutomationFramework['instances']['get'](_0x5c5ccb[_0x31fbe7(0x1f8)]());}static[a75_0x2e2b24(0x1f7)](_0x25db18,_0x55a46a,_0x5e22f6){const _0x1f143e=a75_0x2e2b24;_0x25db18[_0x1f143e(0x201)]()[_0x1f143e(0x202)](_0x55a46a,_0x5e22f6);}static[a75_0x2e2b24(0x1f2)](_0x54c6cc,_0x3fc375){return _0x54c6cc['getAllData']()['get'](_0x3fc375);}}function a75_0x29e5(){const _0x2cf8bf=['set','AutomationFramework','18YKvLmM','runHooks','../../../helpers/classLogger.js','automation_sessions','54284BVKrQP','460728DSFBTx','2ULqSkN','trackEvent','KEY_AUTOMATION_SESSIONS','setTrackedInstance','exports','getTrackedInstance','37597tMxEPP','getAutomationFrameworkName','295820JhAOzv','../cliUtils.js','util','../eventDispatcher.js','4146ohwbrQ','automationFrameworkVersion','debug','instances','getState','24jBxVIo','1086186xcfgTg','automationFrameworkName','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','setState','getId','trackEvent:\x20automationFrameworkState=','notifyObserver','registerObserver','501260nShqPW','getAutomationFrameworkVersion','\x20hookState=','createContext','getHookRegistryKey','getAllData'];a75_0x29e5=function(){return _0x2cf8bf;};return a75_0x29e5();}module[a75_0x2e2b24(0x20e)]=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x266c8a=a76_0x4408;(function(_0x251309,_0x129fc7){const _0x2271de=a76_0x4408,_0x2c18c6=_0x251309();while(!![]){try{const _0x33873b=-parseInt(_0x2271de(0x198))/0x1*(-parseInt(_0x2271de(0x18b))/0x2)+-parseInt(_0x2271de(0x187))/0x3*(-parseInt(_0x2271de(0x195))/0x4)+parseInt(_0x2271de(0x183))/0x5+parseInt(_0x2271de(0x181))/0x6*(parseInt(_0x2271de(0x19a))/0x7)+parseInt(_0x2271de(0x197))/0x8+parseInt(_0x2271de(0x190))/0x9*(-parseInt(_0x2271de(0x196))/0xa)+-parseInt(_0x2271de(0x1a0))/0xb*(parseInt(_0x2271de(0x19f))/0xc);if(_0x33873b===_0x129fc7)break;else _0x2c18c6['push'](_0x2c18c6['shift']());}catch(_0x516b43){_0x2c18c6['push'](_0x2c18c6['shift']());}}}(a76_0x77b2,0xb8f3c));function a76_0x4408(_0x2a4df1,_0x59f7b4){const _0x77b20a=a76_0x77b2();return a76_0x4408=function(_0x44081b,_0x5109d3){_0x44081b=_0x44081b-0x181;let _0x3a8419=_0x77b20a[_0x44081b];return _0x3a8419;},a76_0x4408(_0x2a4df1,_0x59f7b4);}const a76_0x171e8b={};a76_0x171e8b['ENV_BROWSERSTACK_PLATFORM_INDEX']=a76_0x266c8a(0x193),a76_0x171e8b[a76_0x266c8a(0x184)]='hub_url',a76_0x171e8b['KEY_FRAMEWORK_SESSION_ID']=a76_0x266c8a(0x192),a76_0x171e8b[a76_0x266c8a(0x18e)]=a76_0x266c8a(0x191),a76_0x171e8b[a76_0x266c8a(0x186)]=a76_0x266c8a(0x199),a76_0x171e8b[a76_0x266c8a(0x1a1)]=a76_0x266c8a(0x18d),a76_0x171e8b['KEY_STARTED_AT']=a76_0x266c8a(0x19c),a76_0x171e8b['KEY_ENDED_AT']=a76_0x266c8a(0x194),a76_0x171e8b[a76_0x266c8a(0x18a)]=a76_0x266c8a(0x188),a76_0x171e8b[a76_0x266c8a(0x182)]=a76_0x266c8a(0x185),a76_0x171e8b[a76_0x266c8a(0x19e)]=a76_0x266c8a(0x189),a76_0x171e8b[a76_0x266c8a(0x18f)]=a76_0x266c8a(0x18c),a76_0x171e8b['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a76_0x171e8b['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']=a76_0x266c8a(0x19d),a76_0x171e8b[a76_0x266c8a(0x19b)]='quit';const AutomationFrameworkConstants=a76_0x171e8b;module['exports']=AutomationFrameworkConstants;function a76_0x77b2(){const _0x4ae94c=['get','KEY_PLATFORM_INDEX','3027166HxRrkE','screenshot','is_browserstack_hub','KEY_INPUT_CAPABILITIES','COMMAND_SCREENSHOT','1008nWHGfR','input_capabilities','framework_session_id','BROWSERSTACK_PLATFORM_INDEX','ended_at','100JpOVAZ','960IhiRUY','11708456iSVqbk','1FuyDvu','capabilities','5509RZOFfP','COMMAND_QUIT','started_at','w3cexecutescriptasync','COMMAND_GET','12MfIzNI','52865725qvnJWV','KEY_IS_BROWSERSTACK_HUB','3294CEhMjx','COMMAND_NEW_SESSION','3357565CvUomc','KEY_HUB_URL','newsession','KEY_CAPABILITIES','179229vkOfLz','platform_index'];a76_0x77b2=function(){return _0x4ae94c;};return a76_0x77b2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a77_0x92a8c3=a77_0x4467;(function(_0x413ec6,_0x4ab829){const _0x1cc919=a77_0x4467,_0xefe303=_0x413ec6();while(!![]){try{const _0x23bc3a=-parseInt(_0x1cc919(0xe8))/0x1+-parseInt(_0x1cc919(0xf9))/0x2*(parseInt(_0x1cc919(0xe7))/0x3)+parseInt(_0x1cc919(0xd1))/0x4*(-parseInt(_0x1cc919(0xaa))/0x5)+-parseInt(_0x1cc919(0xf3))/0x6*(-parseInt(_0x1cc919(0xc3))/0x7)+-parseInt(_0x1cc919(0xa1))/0x8*(parseInt(_0x1cc919(0xc6))/0x9)+-parseInt(_0x1cc919(0xa7))/0xa+parseInt(_0x1cc919(0xea))/0xb;if(_0x23bc3a===_0x4ab829)break;else _0xefe303['push'](_0xefe303['shift']());}catch(_0x993b8){_0xefe303['push'](_0xefe303['shift']());}}}(a77_0x1cbd,0x96d12));const a77_0x50c9e3={};a77_0x50c9e3['KEY_TEST_UUID']=a77_0x92a8c3(0xab),a77_0x50c9e3['KEY_TEST_ID']=a77_0x92a8c3(0xcf),a77_0x50c9e3[a77_0x92a8c3(0xb8)]=a77_0x92a8c3(0xe4),a77_0x50c9e3['KEY_TEST_FILE_PATH']=a77_0x92a8c3(0xda),a77_0x50c9e3[a77_0x92a8c3(0xf1)]='test_tags',a77_0x50c9e3[a77_0x92a8c3(0xd3)]=a77_0x92a8c3(0xad),a77_0x50c9e3['KEY_TEST_RESULT_AT']=a77_0x92a8c3(0xf7),a77_0x50c9e3[a77_0x92a8c3(0xb3)]='test_started_at',a77_0x50c9e3[a77_0x92a8c3(0xa4)]=a77_0x92a8c3(0x9d),a77_0x50c9e3[a77_0x92a8c3(0xb0)]=a77_0x92a8c3(0xa3),a77_0x50c9e3[a77_0x92a8c3(0xf6)]=a77_0x92a8c3(0xd9),a77_0x50c9e3['KEY_TEST_SCOPE']='test_scope',a77_0x50c9e3['KEY_TEST_SCOPES']='test_scopes',a77_0x50c9e3[a77_0x92a8c3(0xb1)]=a77_0x92a8c3(0xc2),a77_0x50c9e3[a77_0x92a8c3(0xd0)]=a77_0x92a8c3(0xf2),a77_0x50c9e3['KEY_TEST_CODE']=a77_0x92a8c3(0xc1),a77_0x50c9e3[a77_0x92a8c3(0xbc)]=a77_0x92a8c3(0xde),a77_0x50c9e3[a77_0x92a8c3(0xdd)]=a77_0x92a8c3(0xf5),a77_0x50c9e3[a77_0x92a8c3(0xf0)]=a77_0x92a8c3(0xca),a77_0x50c9e3[a77_0x92a8c3(0xd7)]=a77_0x92a8c3(0xd4),a77_0x50c9e3[a77_0x92a8c3(0xef)]='test_failure_type',a77_0x50c9e3[a77_0x92a8c3(0xa9)]=a77_0x92a8c3(0xdc),a77_0x50c9e3[a77_0x92a8c3(0xbd)]='test_logs',a77_0x50c9e3[a77_0x92a8c3(0xd6)]=a77_0x92a8c3(0xc9),a77_0x50c9e3[a77_0x92a8c3(0xd5)]=a77_0x92a8c3(0xbf),a77_0x50c9e3[a77_0x92a8c3(0xd2)]=a77_0x92a8c3(0xcd),a77_0x50c9e3['KEY_AUTOMATE_SESSION_STATUS']=a77_0x92a8c3(0xe9),a77_0x50c9e3['KEY_AUTOMATE_SESSION_REASON']=a77_0x92a8c3(0xb7),a77_0x50c9e3[a77_0x92a8c3(0xb6)]=a77_0x92a8c3(0xed),a77_0x50c9e3[a77_0x92a8c3(0xc4)]=a77_0x92a8c3(0xb5),a77_0x50c9e3[a77_0x92a8c3(0xdb)]='hook_id',a77_0x50c9e3[a77_0x92a8c3(0xf4)]=a77_0x92a8c3(0xbb),a77_0x50c9e3[a77_0x92a8c3(0xe1)]='hook_failure_type',a77_0x50c9e3[a77_0x92a8c3(0xb4)]=a77_0x92a8c3(0xaf),a77_0x50c9e3['KEY_HOOK_FAILURE']=a77_0x92a8c3(0x9c),a77_0x50c9e3[a77_0x92a8c3(0xb2)]=a77_0x92a8c3(0xbe),a77_0x50c9e3['KEY_HOOK_NAME']=a77_0x92a8c3(0xa6),a77_0x50c9e3[a77_0x92a8c3(0xee)]=a77_0x92a8c3(0xe5),a77_0x50c9e3[a77_0x92a8c3(0xcc)]=a77_0x92a8c3(0xe5),a77_0x50c9e3[a77_0x92a8c3(0xa2)]=a77_0x92a8c3(0xae),a77_0x50c9e3[a77_0x92a8c3(0xac)]=a77_0x92a8c3(0xe3),a77_0x50c9e3['HOOK_REGEX']=a77_0x92a8c3(0xc8),a77_0x50c9e3[a77_0x92a8c3(0xe6)]='test_hooks_started',a77_0x50c9e3[a77_0x92a8c3(0xcb)]=a77_0x92a8c3(0xe0),a77_0x50c9e3[a77_0x92a8c3(0xc5)]=a77_0x92a8c3(0x9e),a77_0x50c9e3[a77_0x92a8c3(0xec)]=a77_0x92a8c3(0xb9),a77_0x50c9e3[a77_0x92a8c3(0xc7)]='logs',a77_0x50c9e3[a77_0x92a8c3(0xba)]=a77_0x92a8c3(0xe2),a77_0x50c9e3['KEY_TEST_ATTACHMENTS']=a77_0x92a8c3(0xa8),a77_0x50c9e3[a77_0x92a8c3(0xf8)]=a77_0x92a8c3(0xa5),a77_0x50c9e3[a77_0x92a8c3(0x9f)]='file_name',a77_0x50c9e3[a77_0x92a8c3(0xdf)]=a77_0x92a8c3(0xd8),a77_0x50c9e3[a77_0x92a8c3(0xeb)]=a77_0x92a8c3(0xa0),a77_0x50c9e3['MAX_TOP_LEVEL_STEPS']=0xa,a77_0x50c9e3[a77_0x92a8c3(0xc0)]=0x2;function a77_0x4467(_0x4b6db2,_0x4f34b7){const _0x1cbdd7=a77_0x1cbd();return a77_0x4467=function(_0x4467fb,_0x2b5b3c){_0x4467fb=_0x4467fb-0x9c;let _0x1e359a=_0x1cbdd7[_0x4467fb];return _0x1e359a;},a77_0x4467(_0x4b6db2,_0x4f34b7);}const TestFrameworkConstants=a77_0x50c9e3;module[a77_0x92a8c3(0xce)]=TestFrameworkConstants;function a77_0x1cbd(){const _0x178424=['file_level','6904RLakJi','KIND_SCREENSHOT','test_location','KEY_TEST_ENDED_AT','file_size','hook_name','858530WoZTsP','test_attachments','KEY_TEST_FAILURE_REASON','4251305zKQmJR','test_uuid','KIND_LOG','test_result','TEST_SCREENSHOT','hook_failure_reason','KEY_TEST_LOCATION','KEY_TEST_FRAMEWORK_NAME','KEY_HOOK_LOGS','KEY_TEST_STARTED_AT','KEY_HOOK_FAILURE_REASON','event_ended_at','KEY_EVENT_STARTED_AT','automate_session_reason','KEY_TEST_NAME','test_hook_last_finished','KEY_CUSTOM_TAGS','hook_result','KEY_TEST_RERUN_NAME','KEY_TEST_LOGS','hook_logs','test_session_name','MAX_NESTED_STEP_DEPTH','test_code','test_framework_name','1918175oGKlmg','KEY_EVENT_ENDED_AT','KEY_HOOK_LAST_STARTED','6543pELORD','KEY_LOGS','^(BEFORE_|AFTER_)','test_meta','platform_index','KEY_HOOKS_FINISHED','DEFAULT_HOOK_RESULT','automate_session_name','exports','test_id','KEY_TEST_FRAMEWORK_VERSION','4bHRkNZ','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_RESULT','test_failure','KEY_SESSION_NAME','KEY_TEST_META','KEY_TEST_FAILURE','file_path','test_duration','test_file_path','KEY_HOOK_ID','test_failure_reason','KEY_TEST_RETRY_OF','test_rerun_name','KEY_FILE_PATH','test_hooks_finished','KEY_HOOK_FAILURE_TYPE','custom_metadata','TEST_LOG','test_name','pending','KEY_HOOKS_STARTED','144oqpuVx','534557blgETC','automate_session_status','39726555uqPtou','KEY_FILE_LEVEL','KEY_HOOK_LAST_FINISHED','event_started_at','DEFAULT_TEST_RESULT','KEY_TEST_FAILURE_TYPE','KEY_PLATFORM_INDEX','KEY_TEST_TAGS','test_framework_version','6konVqo','KEY_HOOK_RESULT','retry_of','KEY_TEST_DURATION','test_result_at','KEY_FILE_SIZE','48738QFQwUC','hook_failure','test_ended_at','test_hook_last_started','KEY_FILE_NAME'];a77_0x1cbd=function(){return _0x178424;};return a77_0x1cbd();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a78_0x34e9e5=a78_0x4dc3;(function(_0x352c63,_0x56b29a){const _0x4c5978=a78_0x4dc3,_0x129eeb=_0x352c63();while(!![]){try{const _0x3302c0=parseInt(_0x4c5978(0x19c))/0x1*(parseInt(_0x4c5978(0x150))/0x2)+parseInt(_0x4c5978(0x1a5))/0x3*(parseInt(_0x4c5978(0x175))/0x4)+parseInt(_0x4c5978(0x124))/0x5*(parseInt(_0x4c5978(0x12d))/0x6)+-parseInt(_0x4c5978(0x153))/0x7+-parseInt(_0x4c5978(0x106))/0x8+parseInt(_0x4c5978(0x14e))/0x9*(parseInt(_0x4c5978(0x17a))/0xa)+-parseInt(_0x4c5978(0x12b))/0xb;if(_0x3302c0===_0x56b29a)break;else _0x129eeb['push'](_0x129eeb['shift']());}catch(_0x3948e2){_0x129eeb['push'](_0x129eeb['shift']());}}}(a78_0x5e8e,0xe76ec));function a78_0x4dc3(_0x15e7ce,_0x401e04){const _0x5e8e66=a78_0x5e8e();return a78_0x4dc3=function(_0x4dc33f,_0x149142){_0x4dc33f=_0x4dc33f-0xd3;let _0xc5ea0b=_0x5e8e66[_0x4dc33f];return _0xc5ea0b;},a78_0x4dc3(_0x15e7ce,_0x401e04);}const TestFramework=require(a78_0x34e9e5(0x101)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require('../state/hookState.js'),{createClassLogger}=require(a78_0x34e9e5(0x148)),TestFrameworkInstance=require(a78_0x34e9e5(0x10a)),CLIUtils=require(a78_0x34e9e5(0x15f)),TrackedInstance=require(a78_0x34e9e5(0xfa)),TestFrameworkConstants=require(a78_0x34e9e5(0x19d)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a78_0x34e9e5(0x185)),logger=createClassLogger(a78_0x34e9e5(0x1a4)),{v4:uuidv4}=require('uuid'),util=require('util'),TestInfo=require(a78_0x34e9e5(0x174)),GrpcClient=require(a78_0x34e9e5(0x11b));class CucumberTestFramework extends TestFramework{constructor(_0x40de43,_0x3410de,_0x2b4738){super(_0x40de43,_0x3410de,_0x2b4738);}async[a78_0x34e9e5(0x112)](_0x5c697c,_0x413d7b,_0x1f21a5={}){const _0x21bd51=a78_0x34e9e5,_0x379ffd={};_0x379ffd[_0x21bd51(0x107)]=_0x21bd51(0x195),_0x379ffd[_0x21bd51(0xee)]=function(_0x5f12ad,_0xaf0b87){return _0x5f12ad===_0xaf0b87;},_0x379ffd[_0x21bd51(0x137)]=_0x21bd51(0x190);const _0x1c5c57=_0x379ffd;await super[_0x21bd51(0x112)](_0x5c697c,_0x413d7b,_0x1f21a5);const _0x5e059f=this['resolveInstance'](_0x5c697c,_0x413d7b,_0x1f21a5);if(!_0x5e059f){logger[_0x21bd51(0x171)](_0x1c5c57['KRNOJ']);return;}try{let _0x8a84f1,_0x20e385;switch(_0x5c697c){case TestFrameworkState[_0x21bd51(0x188)]:_0x8a84f1=_0x1f21a5[_0x21bd51(0x11f)],_0x20e385=TestInfo[_0x21bd51(0xf2)](_0x8a84f1['id']);if(_0x1c5c57[_0x21bd51(0xee)](_0x413d7b,HookState[_0x21bd51(0x13a)])){logger['debug'](_0x21bd51(0x136)+_0x8a84f1['id']);const _0x25d367={};_0x25d367[_0x21bd51(0x15c)]=_0x20e385,_0x25d367[_0x21bd51(0x129)]=_0x8a84f1,_0x5e059f[_0x21bd51(0x15a)](this[_0x21bd51(0x166)](_0x25d367)),logger[_0x21bd51(0x171)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x8a84f1['id']),await this['processPendingHooks'](_0x5e059f,_0x8a84f1['id']);}else{if(_0x1c5c57[_0x21bd51(0xee)](_0x413d7b,HookState[_0x21bd51(0xd4)])){const _0x52b4c3={};_0x52b4c3['testUUID']=_0x20e385,_0x52b4c3[_0x21bd51(0x129)]=_0x8a84f1,_0x5e059f[_0x21bd51(0x15a)](this['parseCucumberTestResult'](_0x52b4c3)),await this[_0x21bd51(0x170)](_0x5e059f,_0x8a84f1['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x1c5c57['DoYSi'](_0x413d7b,HookState[_0x21bd51(0xd4)])&&await this[_0x21bd51(0x189)](_0x5e059f,_0x5c697c,_0x1f21a5);break;default:if(CLIUtils[_0x21bd51(0x193)](_0x5c697c[_0x21bd51(0x19a)]()[_0x21bd51(0x132)]('.')[0x1])){const _0x54a257=await this['trackHookEvent'](_0x5e059f,_0x5c697c,_0x413d7b,_0x1f21a5);_0x5e059f[_0x21bd51(0x15a)](_0x54a257);}else logger['debug'](_0x21bd51(0x10f)+_0x5c697c+_0x21bd51(0x1a6)+_0x413d7b);break;}}catch(_0x4b5d03){logger[_0x21bd51(0x181)](util[_0x21bd51(0xe8)](_0x1c5c57[_0x21bd51(0x137)],_0x5c697c,_0x413d7b,_0x1f21a5[_0x21bd51(0x1a8)],_0x4b5d03));}_0x1f21a5['instance']=_0x5e059f,await this[_0x21bd51(0x15d)](_0x5e059f,_0x5c697c,_0x413d7b,_0x1f21a5);}[a78_0x34e9e5(0x140)](_0x55d4b7,_0x12324e,_0x411175={}){const _0x473e70=a78_0x34e9e5,_0x1e1c4b={};_0x1e1c4b['nNDwX']=function(_0x32ca70,_0x18b1b1){return _0x32ca70===_0x18b1b1;},_0x1e1c4b[_0x473e70(0x159)]=function(_0x15be10,_0x3edea6){return _0x15be10===_0x3edea6;};const _0x55dc6c=_0x1e1c4b;let _0x93fcdb=null;return(_0x55dc6c[_0x473e70(0xe9)](_0x55d4b7,TestFrameworkState['INIT_TEST'])||_0x55dc6c[_0x473e70(0x159)](_0x55d4b7,TestFrameworkState[_0x473e70(0x108)]))&&this['trackCucumberInstance'](_0x55d4b7,_0x411175),_0x93fcdb=TestFramework[_0x473e70(0x10b)](),_0x93fcdb;}[a78_0x34e9e5(0x12e)](_0x28ad2b,_0x4f3c55){const _0x7249dd=a78_0x34e9e5,_0x2ac368=CLIUtils['getCurrentInstanceName'](),_0x1bbdcb=TrackedInstance['createContext'](_0x2ac368);let _0x423e61=null;logger[_0x7249dd(0x171)](_0x7249dd(0x139)+_0x2ac368+_0x7249dd(0x146)+_0x28ad2b),_0x423e61=new TestFrameworkInstance(_0x1bbdcb,this[_0x7249dd(0x100)](),this['getTestFrameworksVersions'](),_0x28ad2b,HookState[_0x7249dd(0x108)]),TestFramework[_0x7249dd(0x192)](_0x1bbdcb,_0x423e61),logger[_0x7249dd(0x171)](_0x7249dd(0x128)+_0x1bbdcb[_0x7249dd(0x144)]()+_0x7249dd(0x13b)+_0x2ac368);}[a78_0x34e9e5(0x166)](_0x2cb754){const _0x2c4723=a78_0x34e9e5,_0xa9b629={};_0xa9b629[_0x2c4723(0x133)]=_0x2c4723(0x182);const _0x360f64=_0xa9b629,{testUUID:_0x57230d,testData:_0x12450e}=_0x2cb754;if(!_0x12450e||!_0x12450e[_0x2c4723(0x130)])return logger['debug'](_0x360f64['Lywvh']),{};const _0x366a1f=_0x57230d,_0x3ae364=_0x12450e['uuid'],_0x455141=this[_0x2c4723(0x100)]()[0x0],_0x59a04f=this[_0x2c4723(0x16d)](),_0x231747={[TestFrameworkConstants[_0x2c4723(0x19e)]]:_0x455141,[TestFrameworkConstants[_0x2c4723(0x102)]]:_0x59a04f[_0x455141],[TestFrameworkConstants[_0x2c4723(0x187)]]:[],[TestFrameworkConstants[_0x2c4723(0x18c)]]:{},[TestFrameworkConstants[_0x2c4723(0x172)]]:{},[TestFrameworkConstants[_0x2c4723(0xf9)]]:_0x366a1f,[TestFrameworkConstants[_0x2c4723(0x155)]]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x2c4723(0x169)]]:_0x12450e['name']||'',[TestFrameworkConstants[_0x2c4723(0x156)]]:_0x12450e[_0x2c4723(0xfb)]||'',[TestFrameworkConstants[_0x2c4723(0xd3)]]:_0x3ae364,[TestFrameworkConstants[_0x2c4723(0xde)]]:_0x12450e[_0x2c4723(0x178)]||'',[TestFrameworkConstants[_0x2c4723(0x18a)]]:_0x12450e[_0x2c4723(0xd5)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x12450e[_0x2c4723(0x119)]?.['code']||null,[TestFrameworkConstants[_0x2c4723(0x179)]]:_0x12450e[_0x2c4723(0x17e)]||[],[TestFrameworkConstants[_0x2c4723(0xe5)]]:_0x12450e[_0x2c4723(0x149)]||new Date()[_0x2c4723(0x191)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x12450e[_0x2c4723(0x17c)]?.[0x0]||'',[TestFrameworkConstants[_0x2c4723(0x1a0)]]:_0x12450e[_0x2c4723(0x17c)]||[],[TestFrameworkConstants[_0x2c4723(0x14c)]]:_0x12450e[_0x2c4723(0x15e)]?.[_0x2c4723(0x180)]||_0x12450e[_0x2c4723(0x178)]||'',[TestFrameworkConstants[_0x2c4723(0xf8)]]:{},[TestFrameworkConstants[_0x2c4723(0x1a1)]]:_0x12450e[_0x2c4723(0x14f)]||{}};TestInfo['setTestDetails'](_0x3ae364,_0x231747),logger[_0x2c4723(0x171)]('Parsed\x20cucumber\x20test:\x20'+_0x12450e[_0x2c4723(0x178)]+_0x2c4723(0x18d)+_0x366a1f);const _0x18aa5d={};return _0x18aa5d[_0x3ae364]=_0x231747,_0x18aa5d;}[a78_0x34e9e5(0x168)](_0x3d3c9e){const _0x5f34dd=a78_0x34e9e5,_0xf3f9f6={'KatcC':_0x5f34dd(0x10c),'EaJHf':_0x5f34dd(0x194),'lVzYl':function(_0x4d7eb1,_0x5d3e85){return _0x4d7eb1===_0x5d3e85;},'fbpmz':_0x5f34dd(0x135),'tGfBT':_0x5f34dd(0x17d),'bXMUH':function(_0x4d2a07,_0x56ef1d,_0x150d2e){return _0x4d2a07(_0x56ef1d,_0x150d2e);},'gakkH':function(_0x390306,_0x5a12de){return _0x390306>_0x5a12de;}},{testUUID:_0x2455aa,testData:_0x5eeb15}=_0x3d3c9e;if(!_0x5eeb15||!_0x5eeb15[_0x5f34dd(0x130)])return logger[_0x5f34dd(0x171)](_0xf3f9f6['KatcC']),{};const _0x5a8dd3=this[_0x5f34dd(0x140)](TestFrameworkState[_0x5f34dd(0x188)],HookState[_0x5f34dd(0xd4)]),_0x148ce9=_0x5eeb15[_0x5f34dd(0x130)],_0x3ebca9=TestInfo['getTestDetails'](_0x148ce9)||{},_0x4c6198=_0x3ebca9?_0x3ebca9[TestFrameworkConstants[_0x5f34dd(0xf8)]]||{}:{},_0x40e428={..._0x3ebca9,[TestFrameworkConstants[_0x5f34dd(0x155)]]:_0x5eeb15[_0x5f34dd(0x18e)]||_0xf3f9f6[_0x5f34dd(0x142)],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x5eeb15[_0x5f34dd(0x197)]||new Date()[_0x5f34dd(0x191)](),[TestFrameworkConstants[_0x5f34dd(0x161)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x5f34dd(0xf8)]]:_0x4c6198,[TestFrameworkConstants[_0x5f34dd(0x123)]]:[],[TestFrameworkConstants[_0x5f34dd(0x1a1)]]:_0x5eeb15[_0x5f34dd(0x14f)]||{}};_0xf3f9f6['lVzYl'](_0x5eeb15[_0x5f34dd(0x18e)],_0xf3f9f6[_0x5f34dd(0x1a9)])&&_0x5eeb15[_0x5f34dd(0xd9)]&&(_0x40e428[TestFrameworkConstants[_0x5f34dd(0x12a)]]=_0x5eeb15[_0x5f34dd(0xe0)]||_0xf3f9f6[_0x5f34dd(0xf5)],_0x40e428[TestFrameworkConstants[_0x5f34dd(0xd7)]]=_0x5eeb15['failure_reason']||'',_0x40e428[TestFrameworkConstants[_0x5f34dd(0x13f)]]=_0x5eeb15[_0x5f34dd(0xd9)]);const _0xd6350c=TestInfo[_0x5f34dd(0x126)](_0x148ce9)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x16aaad=_0xf3f9f6[_0x5f34dd(0x186)](getManualUploadLogs,_0xd6350c,_0x5a8dd3[_0x5f34dd(0x1a7)]()[_0x5f34dd(0x122)](_0x148ce9)[TestFrameworkConstants[_0x5f34dd(0xf9)]]);if(_0xf3f9f6[_0x5f34dd(0xf1)](_0x16aaad['length'],0x0)){const _0x3ba806=_0x40e428[TestFrameworkConstants['KEY_LOGS']]||[];_0x40e428[TestFrameworkConstants[_0x5f34dd(0x123)]]=[..._0x3ba806,..._0x16aaad];}_0x5eeb15['hooks']&&_0xf3f9f6[_0x5f34dd(0xf1)](_0x5eeb15[_0x5f34dd(0x13c)][_0x5f34dd(0x1a8)],0x0)&&(_0x40e428[TestFrameworkConstants[_0x5f34dd(0x18c)]]=_0x5eeb15['hooks']);TestInfo['setTestDetails'](_0x148ce9,_0x40e428),logger[_0x5f34dd(0x171)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x5eeb15['name']+_0x5f34dd(0x116)+_0x5eeb15['result']);const _0xa60a7f={};return _0xa60a7f[_0x148ce9]=_0x40e428,_0xa60a7f;}async[a78_0x34e9e5(0xea)](_0x1b3f4d,_0x634ae6,_0x47ebb9,_0x4d7bdc){const _0x4b66a0=a78_0x34e9e5,_0x116351={'PWJQs':_0x4b66a0(0xef),'acbLo':function(_0x3d46ae){return _0x3d46ae();},'GedQP':function(_0x3e2680,_0x25f7db){return _0x3e2680 in _0x25f7db;},'EpVwK':function(_0x408631,_0x2398ae){return _0x408631===_0x2398ae;},'XpfJX':function(_0x541726,_0x232deb){return _0x541726===_0x232deb;},'rDbKW':function(_0xae3ef1,_0x6370d){return _0xae3ef1>_0x6370d;},'HWVzW':function(_0x4adaf4,_0x1b73c4){return _0x4adaf4===_0x1b73c4;},'JgpWa':_0x4b66a0(0x135),'jKxQW':'UnhandledError','iafXl':_0x4b66a0(0x17b),'ntgSK':function(_0x2aa77e,_0x50ef6c){return _0x2aa77e!==_0x50ef6c;}},{hookData:_0x14e4c2}=_0x4d7bdc;if(!_0x14e4c2)return logger['debug'](_0x116351[_0x4b66a0(0x154)]),{};const _0x28c607=_0x14e4c2[_0x4b66a0(0x130)]||_0x116351[_0x4b66a0(0xf4)](uuidv4),_0x2ad19b=_0x14e4c2['test_run_id'],_0x39eefa=_0x634ae6[_0x4b66a0(0x19a)]()[_0x4b66a0(0x132)]('.')[0x1],_0x16a4d4=TestInfo[_0x4b66a0(0x126)](_0x2ad19b)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x4616c4=_0x1b3f4d[_0x4b66a0(0x1a7)]()[_0x4b66a0(0x122)](_0x2ad19b);if(!_0x4616c4)return logger[_0x4b66a0(0x171)](_0x4b66a0(0xd6)+_0x2ad19b+_0x4b66a0(0x167)),this[_0x4b66a0(0x157)](_0x1b3f4d,_0x2ad19b,_0x634ae6,_0x47ebb9,_0x4d7bdc),{};let _0xb8aa14=_0x4616c4[TestFrameworkConstants[_0x4b66a0(0x172)]];!_0xb8aa14&&(_0xb8aa14={});!_0x116351[_0x4b66a0(0x151)](_0x39eefa,_0xb8aa14)&&(_0xb8aa14[_0x39eefa]=[]);let _0x1a2b61=_0x4616c4[TestFrameworkConstants[_0x4b66a0(0x18c)]];!_0x1a2b61&&(_0x1a2b61={});!_0x116351[_0x4b66a0(0x151)](_0x39eefa,_0x1a2b61)&&(_0x1a2b61[_0x39eefa]=[]);const _0x15ad2b={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0xb8aa14,[TestFrameworkConstants[_0x4b66a0(0x18c)]]:_0x1a2b61},_0x37049a={};_0x37049a[_0x2ad19b]=_0x15ad2b;const _0x3b5669=_0x37049a;if(_0x116351[_0x4b66a0(0xdb)](_0x47ebb9,HookState['PRE'])){const _0x5a35be={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x28c607,[TestFrameworkConstants[_0x4b66a0(0x127)]]:TestFrameworkConstants[_0x4b66a0(0xf6)],[TestFrameworkConstants[_0x4b66a0(0x14b)]]:_0x14e4c2['started_at'],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants[_0x4b66a0(0x12f)]]:_0x14e4c2[_0x4b66a0(0x158)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x16a4d4};_0x5a35be[_0x4b66a0(0x147)]=_0x39eefa;const _0x3d4890=_0x5a35be;_0xb8aa14[_0x39eefa][_0x4b66a0(0xed)](_0x3d4890),_0x3b5669[_0x2ad19b][TestFrameworkConstants[_0x4b66a0(0x14a)]]=_0x39eefa,logger['debug']('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x39eefa+_0x4b66a0(0x103)+_0x3d4890+_0x4b66a0(0x162)+_0x4d7bdc);}else{if(_0x116351['XpfJX'](_0x47ebb9,HookState[_0x4b66a0(0xd4)])){const _0x1f2d29=_0x14e4c2[_0x4b66a0(0x18e)],_0x19e467=_0xb8aa14[_0x39eefa]||[];logger[_0x4b66a0(0x171)](_0x4b66a0(0x11e)+_0x19e467+_0x4b66a0(0xff)+_0x4d7bdc);if(_0x116351['rDbKW'](_0x19e467['length'],0x0)){const _0x31e2eb=_0x19e467[_0x4b66a0(0x184)]();_0x116351[_0x4b66a0(0x16c)](_0x14e4c2[_0x4b66a0(0x18e)],_0x116351[_0x4b66a0(0x10d)])&&_0x14e4c2[_0x4b66a0(0x13e)]?(_0x31e2eb[TestFrameworkConstants[_0x4b66a0(0x16e)]]=_0x14e4c2['failure_type']||_0x116351[_0x4b66a0(0xd8)],_0x31e2eb[TestFrameworkConstants[_0x4b66a0(0xfd)]]=_0x14e4c2[_0x4b66a0(0x115)]||'',_0x31e2eb[TestFrameworkConstants[_0x4b66a0(0x16a)]]=_0x14e4c2['failure_data']):_0x31e2eb[TestFrameworkConstants[_0x4b66a0(0x127)]]=_0x116351[_0x4b66a0(0x110)];_0x116351['ntgSK'](_0x1f2d29,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x31e2eb[TestFrameworkConstants[_0x4b66a0(0x127)]]=_0x1f2d29);_0x31e2eb[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x14e4c2[_0x4b66a0(0x12c)]||new Date()['toISOString'](),_0x31e2eb[TestFrameworkConstants[_0x4b66a0(0xf8)]]=_0x16a4d4;const _0x26e478=_0x31e2eb[TestFrameworkConstants[_0x4b66a0(0x114)]];!_0x1a2b61[_0x39eefa]&&(_0x1a2b61[_0x39eefa]=[]),_0x1a2b61[_0x39eefa][_0x4b66a0(0xed)](_0x31e2eb),_0x3b5669[_0x2ad19b][TestFrameworkConstants[_0x4b66a0(0x131)]]=_0x39eefa;}}}return logger[_0x4b66a0(0x171)](_0x4b66a0(0xeb)+_0x14e4c2[_0x4b66a0(0x158)]+_0x4b66a0(0x16f)+_0x28c607+'\x20for\x20test:\x20'+_0x2ad19b),_0x3b5669;}[a78_0x34e9e5(0x17f)](_0x57547c){const _0x7d0ee=a78_0x34e9e5,_0x18c15b={};_0x18c15b['jrgJN']=_0x7d0ee(0x183);const _0x837b18=_0x18c15b;try{const _0x240cc8=_0x57547c[_0x7d0ee(0x11f)]?_0x57547c[_0x7d0ee(0x11f)]['id']:_0x57547c[_0x7d0ee(0x163)][_0x7d0ee(0x105)],_0x552ddd=_0x57547c[_0x7d0ee(0xe3)],_0x326c9f=_0x552ddd[_0x7d0ee(0x104)](),_0x5426f6=_0x552ddd[_0x7d0ee(0x1a7)]()[_0x7d0ee(0x122)](_0x240cc8);if(!_0x5426f6)return logger[_0x7d0ee(0x171)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x240cc8),{};logger[_0x7d0ee(0x171)](_0x7d0ee(0x1a3)+_0x240cc8);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x82ca67='',[TestFrameworkConstants[_0x7d0ee(0x102)]]:_0x3bfc3c='',[TestFrameworkConstants[_0x7d0ee(0xe5)]]:_0x24de9d='',[TestFrameworkConstants[_0x7d0ee(0xe2)]]:_0x15df79=''}=_0x5426f6,_0x1ca608=_0x552ddd['getCurrentTestState']()[_0x7d0ee(0x19a)]()[_0x7d0ee(0x132)]('.')[0x1],_0x3db82a=_0x552ddd[_0x7d0ee(0x138)]()['toString']()[_0x7d0ee(0x132)]('.')[0x1],_0x1bb79d=global?.[_0x7d0ee(0x141)]??0x0,_0x103af7=_0x552ddd[_0x7d0ee(0x109)](),_0x513f92=Buffer[_0x7d0ee(0x118)](JSON[_0x7d0ee(0xdf)](_0x5426f6))[_0x7d0ee(0x19a)](_0x837b18[_0x7d0ee(0xf3)]),_0x4d5c9e={'hash':_0x326c9f[_0x7d0ee(0x144)](),'threadId':_0x326c9f[_0x7d0ee(0x113)]()[_0x7d0ee(0x19a)](),'processId':_0x326c9f[_0x7d0ee(0x152)]()['toString']()},_0x2a8585={};_0x2a8585[_0x7d0ee(0xec)]=_0x1bb79d,_0x2a8585[_0x7d0ee(0xe7)]=_0x82ca67,_0x2a8585[_0x7d0ee(0x19b)]=_0x3bfc3c,_0x2a8585[_0x7d0ee(0x143)]=_0x1ca608,_0x2a8585[_0x7d0ee(0x14d)]=_0x3db82a,_0x2a8585[_0x7d0ee(0x149)]=_0x24de9d,_0x2a8585[_0x7d0ee(0x11c)]=_0x15df79,_0x2a8585[_0x7d0ee(0x130)]=_0x103af7,_0x2a8585['eventJson']=_0x513f92,_0x2a8585[_0x7d0ee(0x19f)]=_0x4d5c9e;const _0x5af125=_0x2a8585;return logger[_0x7d0ee(0x171)](_0x7d0ee(0x134)+_0x240cc8+_0x7d0ee(0x145)+_0x1ca608+_0x7d0ee(0x176)+_0x3db82a),_0x5af125;}catch(_0x798a71){return logger[_0x7d0ee(0x181)](_0x7d0ee(0x160)+util['format'](_0x798a71)),{};}}async['sendLogCreatedEvent'](_0x5637b4,_0x2a1095,_0x5a043c){const _0x5757b0=a78_0x34e9e5,_0x293d14={'kfMHm':function(_0x59c551,_0x2851a9,_0x12da3c){return _0x59c551(_0x2851a9,_0x12da3c);},'cgYLB':function(_0x29003f,_0x41c659){return _0x29003f===_0x41c659;},'aFcSy':_0x5757b0(0xfc),'Fgekt':function(_0x367faf,_0x2512d0){return _0x367faf/_0x2512d0;},'FPdqD':function(_0x44b730,_0x4263d0){return _0x44b730<_0x4263d0;},'mmJRt':function(_0x59ba70,_0x2925e3){return _0x59ba70*_0x2925e3;},'YXFKM':function(_0x326de6,_0x8aafba){return _0x326de6+_0x8aafba;},'JWaej':function(_0x40f877,_0x40a8b6){return _0x40f877+_0x40a8b6;},'ReIRA':function(_0x258fb6,_0x3c83a7){return _0x258fb6+_0x3c83a7;},'OwmAU':_0x5757b0(0x177)};try{const _0x1f9a87=_0x5a043c[_0x5757b0(0x15c)],_0x58ab1d=_0x5637b4[_0x5757b0(0x1a7)]()[_0x5757b0(0x122)](_0x1f9a87),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x11e4a9='',[TestFrameworkConstants[_0x5757b0(0x102)]]:_0x57f9d5=''}=_0x58ab1d,_0x3614aa=TestInfo['readLogObjects'](_0x1f9a87),_0x41824b=TestInfo[_0x5757b0(0x126)](_0x1f9a87)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x5f3842=_0x293d14[_0x5757b0(0xe4)](getMediaArtifactsLogs,_0x41824b,_0x5637b4[_0x5757b0(0x1a7)]()[_0x5757b0(0x122)](_0x1f9a87)[TestFrameworkConstants[_0x5757b0(0xf9)]]),_0x11bf9c=(_0x3614aa||[])['concat'](_0x5f3842||[]);if(!_0x11bf9c||_0x293d14[_0x5757b0(0x13d)](_0x11bf9c['length'],0x0)){logger[_0x5757b0(0x171)](_0x293d14[_0x5757b0(0x15b)]);return;}const _0x58f9ba=0x28,_0xdc7550=Math[_0x5757b0(0x173)](_0x293d14[_0x5757b0(0x164)](_0x11bf9c['length'],_0x58f9ba));for(let _0x5a7872=0x0;_0x293d14[_0x5757b0(0x198)](_0x5a7872,_0xdc7550);_0x5a7872++){const _0x11d091=_0x293d14[_0x5757b0(0x111)](_0x5a7872,_0x58f9ba),_0x3f1464=_0x293d14['YXFKM'](_0x11d091,_0x58f9ba),_0x2ba27a=_0x11bf9c['slice'](_0x11d091,_0x3f1464),_0x18f6d9={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x2ba27a,'testFrameworkName':_0x11e4a9,'testFrameworkVersion':_0x57f9d5,'testFrameworkState':_0x2a1095[_0x5757b0(0x19a)]()[_0x5757b0(0x132)]('.')[0x1]};logger['debug'](_0x5757b0(0xe1)+_0x1f9a87+_0x5757b0(0x121)+_0x293d14['JWaej'](_0x5a7872,0x1)+'/'+_0xdc7550+_0x5757b0(0x117)+util[_0x5757b0(0xe6)](_0x18f6d9));const _0x21fe92=await GrpcClient[_0x5757b0(0x196)]()['logCreatedEvent'](_0x18f6d9);logger[_0x5757b0(0x171)](_0x5757b0(0xe1)+_0x1f9a87+_0x5757b0(0x121)+_0x293d14[_0x5757b0(0xf0)](_0x5a7872,0x1)+'/'+_0xdc7550+_0x5757b0(0xdd)+util[_0x5757b0(0xe6)](_0x21fe92));}}catch(_0x5b0422){logger['error'](_0x5757b0(0xda)+util['format'](_0x5b0422));}logger['debug'](_0x293d14[_0x5757b0(0x10e)]);}[a78_0x34e9e5(0x157)](_0x552f13,_0x592487,_0x2f2ab5,_0x1d6d8c,_0xbb5c1b){const _0xcfbf3d=a78_0x34e9e5,_0x404e8c={'testId':_0x592487,'testFrameworkState':_0x2f2ab5,'hookState':_0x1d6d8c,'args':_0xbb5c1b,'timestamp':new Date()[_0xcfbf3d(0x191)]()};_0x552f13[_0xcfbf3d(0xfe)](_0x592487,_0x404e8c),logger[_0xcfbf3d(0x171)]('Stored\x20pending\x20hook\x20for\x20testId:\x20'+_0x592487+',\x20state:\x20'+_0x2f2ab5+_0xcfbf3d(0x11d)+_0x1d6d8c);}async['processPendingHooks'](_0xf61119,_0x81771a){const _0x2d376a=a78_0x34e9e5,_0x5bcf1f={};_0x5bcf1f['EeQJM']=function(_0x504dcb,_0x455bbd){return _0x504dcb>_0x455bbd;};const _0x32b2a6=_0x5bcf1f;if(!_0xf61119[_0x2d376a(0x11a)](_0x81771a))return;const _0x48d3cc=_0xf61119[_0x2d376a(0x120)](_0x81771a);logger[_0x2d376a(0x171)]('Processing\x20'+_0x48d3cc['length']+_0x2d376a(0x1a2)+_0x81771a);for(const _0x2c2153 of _0x48d3cc){try{const _0x1f6631=await this[_0x2d376a(0xea)](_0xf61119,_0x2c2153['testFrameworkState'],_0x2c2153[_0x2d376a(0x14d)],_0x2c2153['args']);_0x1f6631&&_0x32b2a6[_0x2d376a(0x16b)](Object[_0x2d376a(0x199)](_0x1f6631)[_0x2d376a(0x1a8)],0x0)&&_0xf61119[_0x2d376a(0x15a)](_0x1f6631),await this[_0x2d376a(0x15d)](_0xf61119,_0x2c2153[_0x2d376a(0x143)],_0x2c2153[_0x2d376a(0x14d)],_0x2c2153[_0x2d376a(0xf7)]);}catch(_0x1e3762){logger[_0x2d376a(0x181)](_0x2d376a(0x125)+_0x81771a+_0x2d376a(0x18b)+_0x1e3762);}}_0xf61119[_0x2d376a(0x18f)](_0x81771a),logger['debug'](_0x2d376a(0xdc)+_0x81771a);}}function a78_0x5e8e(){const _0x10b40b=['UnhandledError','tags','createTestFrameworkEventPayload','rerun_name','error','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','base64','pop','../../../helpers/helper.js','bXMUH','KEY_TEST_LOGS','TEST','sendLogCreatedEvent','KEY_TEST_LOCATION',',\x20error:\x20','KEY_HOOKS_FINISHED','\x20with\x20UUID:\x20','result','removePendingHooks','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','toISOString','setTrackedInstance','matchHookRegex','unknown','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','getInstance','finishedAt','FPdqD','keys','toString','testFrameworkVersion','1oTGXkf','./constants/testFrameworkConstants.js','KEY_TEST_FRAMEWORK_NAME','executionContext','KEY_TEST_SCOPES','KEY_TEST_META','\x20pending\x20hooks\x20for\x20testId:\x20','createTestFrameworkEventPayload\x20testId:\x20','CucumberTestFramework','8871Grtiwj','\x20&\x20hookState=','getAllData','length','fbpmz','KEY_TEST_ID','POST','location','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_TEST_FAILURE_REASON','jKxQW','failure','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','EpVwK','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','\x20response=','KEY_TEST_NAME','stringify','failure_type','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_TEST_ENDED_AT','instance','kfMHm','KEY_TEST_STARTED_AT','inspect','testFrameworkName','format','nNDwX','trackHookEvent','Tracked\x20cucumber\x20hook\x20event:\x20','platformIndex','push','DoYSi','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','ReIRA','gakkH','getTestUUID','jrgJN','acbLo','tGfBT','DEFAULT_HOOK_RESULT','args','KEY_CUSTOM_TAGS','KEY_TEST_UUID','../instances/trackedInstance.js','file_name','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','KEY_HOOK_FAILURE_REASON','addPendingHook','\x20and\x20args\x20=\x20','getTestFrameworks','./testFramework','KEY_TEST_FRAMEWORK_VERSION','\x20&\x20hook\x20=\x20','getContext','test_run_id','6659400PPUMga','KRNOJ','NONE','getRef','../instances/testFrameworkInstance.js','getTrackedInstance','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','JgpWa','OwmAU','trackEvent:\x20unsupported\x20testFrameworkState=','iafXl','mmJRt','trackEvent','getThreadId','KEY_HOOK_ID','failure_reason','\x20with\x20result:\x20','\x20payload=','from','body','hasPendingHooks','../grpcClient','endedAt',',\x20hookState:\x20','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','test','getPendingHooks','\x20batch\x20','get','KEY_LOGS','95hczGmL','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','getTestDetails','KEY_HOOK_RESULT','trackCucumberInstance:\x20saved\x20instance\x20contextId=','testData','KEY_TEST_FAILURE_TYPE','16066204TiLfze','finished_at','188562mNnIPZ','trackCucumberInstance','KEY_HOOK_NAME','uuid','KEY_HOOK_LAST_FINISHED','split','Lywvh','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','failed','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','CDimC','getCurrentHookState','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','PRE','\x20target=','hooks','cgYLB','failure_data','KEY_TEST_FAILURE','resolveInstance','browserstackPlatformIndex','EaJHf','testFrameworkState','getId','\x20testState:\x20',',\x20state=','key','../../../helpers/classLogger.js','startedAt','KEY_HOOK_LAST_STARTED','KEY_EVENT_STARTED_AT','KEY_TEST_RERUN_NAME','hookState','12541203xCGqYL','meta','2905468bjYXCl','GedQP','getProcessId','2948365zHCBbD','PWJQs','KEY_TEST_RESULT','KEY_TEST_FILE_PATH','storePendingHook','hook_type','rJjEj','addMultipleEntries','aFcSy','testUUID','runHooks','customRerunParam','../cliUtils.js','Error\x20in\x20createTestFrameworkEventPayload:\x20','KEY_TEST_RESULT_AT','\x20\x20and\x20args\x20=\x20','hookData','Fgekt','exports','parseCucumberTest',',\x20storing\x20as\x20pending\x20hook','parseCucumberTestResult','KEY_AUTOMATE_SESSION_NAME','KEY_HOOK_FAILURE','EeQJM','HWVzW','getTestFrameworksVersions','KEY_HOOK_FAILURE_TYPE','\x20with\x20id\x20','processPendingHooks','debug','KEY_HOOKS_STARTED','ceil','../TestInfo.js','296NziZDI','\x20hookState:\x20','Cucumber\x20log\x20created\x20event','name','KEY_TEST_TAGS','10ZDaTeJ','passed','scopes'];a78_0x5e8e=function(){return _0x10b40b;};return a78_0x5e8e();}module[a78_0x34e9e5(0x165)]=CucumberTestFramework;
|
|
1
|
+
const a78_0x2bb9e9=a78_0x396d;function a78_0x396d(_0x5b0ed1,_0x42f426){const _0x4b4876=a78_0x4b48();return a78_0x396d=function(_0x396dfc,_0x8207f9){_0x396dfc=_0x396dfc-0x125;let _0x54e9e8=_0x4b4876[_0x396dfc];return _0x54e9e8;},a78_0x396d(_0x5b0ed1,_0x42f426);}(function(_0x3ffa6f,_0x1a1e5e){const _0x49656a=a78_0x396d,_0x579486=_0x3ffa6f();while(!![]){try{const _0x596e54=parseInt(_0x49656a(0x142))/0x1*(-parseInt(_0x49656a(0x1f4))/0x2)+parseInt(_0x49656a(0x145))/0x3+parseInt(_0x49656a(0x129))/0x4+parseInt(_0x49656a(0x18b))/0x5*(parseInt(_0x49656a(0x14d))/0x6)+parseInt(_0x49656a(0x1ab))/0x7*(-parseInt(_0x49656a(0x159))/0x8)+parseInt(_0x49656a(0x15a))/0x9+-parseInt(_0x49656a(0x1cc))/0xa*(parseInt(_0x49656a(0x133))/0xb);if(_0x596e54===_0x1a1e5e)break;else _0x579486['push'](_0x579486['shift']());}catch(_0x2fd10d){_0x579486['push'](_0x579486['shift']());}}}(a78_0x4b48,0x4698a));function a78_0x4b48(){const _0x11a252=['KEY_TEST_SCOPE','get',',\x20hookState:\x20','stringify','hookData','./constants/testFrameworkConstants.js','KEY_EVENT_ENDED_AT','\x20target=','INIT_TEST','Updated\x20cucumber\x20test\x20result:\x20','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','logCreatedEvent','BJVQG','oWjPO','KEY_HOOK_ID','\x20&\x20hookState=','testData','NONE','KEY_TEST_STARTED_AT','aJofU','KEY_CUSTOM_TAGS','length','XWzIk','setTrackedInstance','KEY_HOOKS_STARTED','key','createTestFrameworkEventPayload\x20testId:\x20','code','bIUZp','1102638bzszWw','test','error','unknown','WnIAO','1295484fpXRTi','split','pop','CEigP','trackCucumberInstance','tEIPX','uuid','KEY_TEST_RERUN_NAME','trackEvent','KEY_TEST_META','11uoUpSE','trackEvent:\x20unsupported\x20testFrameworkState=','rerun_name','GvWsG','testUUID','KEY_TEST_FAILURE_REASON','testFrameworkState','toISOString','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','DEFAULT_HOOK_RESULT','util','meta','TEST','LOG_REPORT','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','1XaCyDt','failure_data','concat','1531371Rynlir','JYrdX','failure_type','KEY_AUTOMATE_SESSION_NAME','\x20hookState:\x20','browserstackPlatformIndex','push','../../../helpers/classLogger.js','15402Zglgzx','hook_type','KEY_HOOK_FAILURE_TYPE','\x20\x20and\x20args\x20=\x20','getCurrentHookState','eventJson','matchHookRegex','xNLXj','SDJkJ','getInstance','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','from','8392WaEtXZ','2747142cpfdJD','file_name','UnhandledError','KEY_TEST_UUID','\x20with\x20UUID:\x20','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','setTestDetails','passed','KEY_TEST_CODE','getTestFrameworksVersions','getPendingHooks','runHooks','getAllData',',\x20error:\x20','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_TEST_RESULT','../../../helpers/helper.js','inspect','KEY_TEST_FRAMEWORK_VERSION','getContext','./testFramework','scopes','failed','test_run_id','WrBlV','KEY_HOOK_NAME','testFrameworkVersion','getThreadId','started_at','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','qlWrM','sendLogCreatedEvent:\x20for\x20testId:\x20',',\x20state:\x20','name','result','createContext','KEY_TEST_LOCATION','KEY_TEST_ATTACHMENTS','getId','KEY_TEST_ENDED_AT','body','KEY_TEST_ID','../TestInfo.js','IGgno','KEY_HOOK_FAILURE_REASON','removePendingHooks','hooks','WVELR','745yhTUdZ','PRE','POST','executionContext','\x20&\x20hook\x20=\x20','args','DEFAULT_TEST_RESULT','testFrameworkName','KEY_TEST_TAGS','instance','../instances/testFrameworkInstance.js','LOPGb','KEY_EVENT_STARTED_AT','trackHookEvent','Cucumber\x20log\x20created\x20event','KEY_TEST_LOGS','Thnde',',\x20state=','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_TEST_FAILURE_TYPE','getCurrentTestState','xsBGD','KEY_HOOKS_FINISHED','\x20with\x20id\x20','base64','failure_reason','createTestFrameworkEventPayload','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','KEY_HOOK_LAST_STARTED','GTtTu','hasPendingHooks','KEY_TEST_FRAMEWORK_NAME','637JPBCOd','AgATE','\x20batch\x20','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','KEY_HOOK_RESULT','\x20with\x20result:\x20','gRbrZ','hookState','storePendingHook','getTrackedInstance','EtRDB','resolveInstance','AfcfE','Stored\x20pending\x20hook\x20for\x20testId:\x20','keys','Error\x20in\x20createTestFrameworkEventPayload:\x20','KEY_TEST_RESULT_AT','\x20testState:\x20','ARAHK','format','KEY_TEST_SCOPES','getTestDetails','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','KEY_TEST_FILE_PATH','qyxSj','platformIndex','../grpcClient','location','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','CucumberTestFramework','debug','addMultipleEntries','toString','5861090clQAIZ','processPendingHooks','tags','failure',',\x20storing\x20as\x20pending\x20hook','ceil','mGvma','parseCucumberTestResult','parseCucumberTest','getTestUUID','KEY_HOOK_LOGS'];a78_0x4b48=function(){return _0x11a252;};return a78_0x4b48();}const TestFramework=require(a78_0x2bb9e9(0x16f)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require('../state/hookState.js'),{createClassLogger}=require(a78_0x2bb9e9(0x14c)),TestFrameworkInstance=require(a78_0x2bb9e9(0x195)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a78_0x2bb9e9(0x1dc)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a78_0x2bb9e9(0x16b)),logger=createClassLogger(a78_0x2bb9e9(0x1c8)),{v4:uuidv4}=require(a78_0x2bb9e9(0x12f)),util=require(a78_0x2bb9e9(0x13d)),TestInfo=require(a78_0x2bb9e9(0x185)),GrpcClient=require(a78_0x2bb9e9(0x1c5));class CucumberTestFramework extends TestFramework{constructor(_0x453003,_0x46efc4,_0x2e7d8e){super(_0x453003,_0x46efc4,_0x2e7d8e);}async[a78_0x2bb9e9(0x131)](_0x509caf,_0x763c67,_0x25adb9={}){const _0x37a2cb=a78_0x2bb9e9,_0x546c6d={};_0x546c6d[_0x37a2cb(0x12e)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x546c6d['CEigP']=function(_0x275c69,_0x34d081){return _0x275c69===_0x34d081;},_0x546c6d[_0x37a2cb(0x128)]=_0x37a2cb(0x1c7);const _0x1f1fa0=_0x546c6d;await super['trackEvent'](_0x509caf,_0x763c67,_0x25adb9);const _0x2d0cae=this['resolveInstance'](_0x509caf,_0x763c67,_0x25adb9);if(!_0x2d0cae){logger[_0x37a2cb(0x1c9)](_0x1f1fa0[_0x37a2cb(0x12e)]);return;}try{let _0xed75fe,_0x40e8f6;switch(_0x509caf){case TestFrameworkState[_0x37a2cb(0x13f)]:_0xed75fe=_0x25adb9['test'],_0x40e8f6=TestInfo[_0x37a2cb(0x1d5)](_0xed75fe['id']);if(_0x1f1fa0[_0x37a2cb(0x12c)](_0x763c67,HookState[_0x37a2cb(0x18c)])){logger[_0x37a2cb(0x1c9)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0xed75fe['id']);const _0xb4c29c={};_0xb4c29c[_0x37a2cb(0x137)]=_0x40e8f6,_0xb4c29c[_0x37a2cb(0x1e7)]=_0xed75fe,_0x2d0cae['addMultipleEntries'](this[_0x37a2cb(0x1d4)](_0xb4c29c)),logger[_0x37a2cb(0x1c9)](_0x37a2cb(0x1ae)+_0xed75fe['id']),await this[_0x37a2cb(0x1cd)](_0x2d0cae,_0xed75fe['id']);}else{if(_0x1f1fa0[_0x37a2cb(0x12c)](_0x763c67,HookState[_0x37a2cb(0x18d)])){const _0x3e2e99={};_0x3e2e99[_0x37a2cb(0x137)]=_0x40e8f6,_0x3e2e99[_0x37a2cb(0x1e7)]=_0xed75fe,_0x2d0cae[_0x37a2cb(0x1ca)](this['parseCucumberTestResult'](_0x3e2e99)),await this[_0x37a2cb(0x1cd)](_0x2d0cae,_0xed75fe['id']);}}break;case TestFrameworkState[_0x37a2cb(0x140)]:_0x1f1fa0[_0x37a2cb(0x12c)](_0x763c67,HookState[_0x37a2cb(0x18d)])&&await this['sendLogCreatedEvent'](_0x2d0cae,_0x509caf,_0x25adb9);break;default:if(CLIUtils[_0x37a2cb(0x153)](_0x509caf[_0x37a2cb(0x1cb)]()[_0x37a2cb(0x12a)]('.')[0x1])){const _0x11131d=await this[_0x37a2cb(0x198)](_0x2d0cae,_0x509caf,_0x763c67,_0x25adb9);_0x2d0cae[_0x37a2cb(0x1ca)](_0x11131d);}else logger[_0x37a2cb(0x1c9)](_0x37a2cb(0x134)+_0x509caf+_0x37a2cb(0x1e6)+_0x763c67);break;}}catch(_0x2e3f94){logger[_0x37a2cb(0x126)](util[_0x37a2cb(0x1be)](_0x1f1fa0[_0x37a2cb(0x128)],_0x509caf,_0x763c67,_0x25adb9['length'],_0x2e3f94));}_0x25adb9[_0x37a2cb(0x194)]=_0x2d0cae,await this['runHooks'](_0x2d0cae,_0x509caf,_0x763c67,_0x25adb9);}[a78_0x2bb9e9(0x1b6)](_0x131428,_0xd30870,_0x5bfe4d={}){const _0x18ff95=a78_0x2bb9e9,_0x5ccc1e={};_0x5ccc1e[_0x18ff95(0x1b1)]=function(_0x3f60de,_0x486a33){return _0x3f60de===_0x486a33;};const _0x8e9c46=_0x5ccc1e;let _0xcd2235=null;return(_0x8e9c46[_0x18ff95(0x1b1)](_0x131428,TestFrameworkState[_0x18ff95(0x1df)])||_0x8e9c46[_0x18ff95(0x1b1)](_0x131428,TestFrameworkState[_0x18ff95(0x1e8)]))&&this[_0x18ff95(0x12d)](_0x131428,_0x5bfe4d),_0xcd2235=TestFramework[_0x18ff95(0x1b4)](),_0xcd2235;}['trackCucumberInstance'](_0x2b6fa5,_0x2a001c){const _0x1c844e=a78_0x2bb9e9,_0x4245c8=CLIUtils['getCurrentInstanceName'](),_0x2aa1ce=TrackedInstance[_0x1c844e(0x17e)](_0x4245c8);let _0xd1939d=null;logger['debug']('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0x4245c8+_0x1c844e(0x19c)+_0x2b6fa5),_0xd1939d=new TestFrameworkInstance(_0x2aa1ce,this['getTestFrameworks'](),this[_0x1c844e(0x164)](),_0x2b6fa5,HookState[_0x1c844e(0x1e8)]),TestFramework[_0x1c844e(0x1ee)](_0x2aa1ce,_0xd1939d),logger[_0x1c844e(0x1c9)]('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x2aa1ce[_0x1c844e(0x181)]()+_0x1c844e(0x1de)+_0x4245c8);}['parseCucumberTest'](_0xb1b6e9){const _0x1f119a=a78_0x2bb9e9,_0x47bf71={};_0x47bf71[_0x1f119a(0x1ed)]=_0x1f119a(0x160);const _0x4613de=_0x47bf71,{testUUID:_0x19a459,testData:_0x5099b6}=_0xb1b6e9;if(!_0x5099b6||!_0x5099b6[_0x1f119a(0x12f)])return logger[_0x1f119a(0x1c9)](_0x4613de[_0x1f119a(0x1ed)]),{};const _0x138a08=_0x19a459,_0x2d7702=_0x5099b6[_0x1f119a(0x12f)],_0x37a006=this['getTestFrameworks']()[0x0],_0x5c2038=this[_0x1f119a(0x164)](),_0x1b8753={[TestFrameworkConstants[_0x1f119a(0x1aa)]]:_0x37a006,[TestFrameworkConstants[_0x1f119a(0x16d)]]:_0x5c2038[_0x37a006],[TestFrameworkConstants[_0x1f119a(0x19a)]]:[],[TestFrameworkConstants[_0x1f119a(0x1a1)]]:{},[TestFrameworkConstants[_0x1f119a(0x1ef)]]:{},[TestFrameworkConstants[_0x1f119a(0x15d)]]:_0x138a08,[TestFrameworkConstants[_0x1f119a(0x16a)]]:TestFrameworkConstants[_0x1f119a(0x191)],[TestFrameworkConstants[_0x1f119a(0x148)]]:_0x5099b6['name']||'',[TestFrameworkConstants[_0x1f119a(0x1c2)]]:_0x5099b6[_0x1f119a(0x15b)]||'',[TestFrameworkConstants[_0x1f119a(0x184)]]:_0x2d7702,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x5099b6[_0x1f119a(0x17c)]||'',[TestFrameworkConstants[_0x1f119a(0x17f)]]:_0x5099b6[_0x1f119a(0x1c6)]||'',[TestFrameworkConstants[_0x1f119a(0x163)]]:_0x5099b6[_0x1f119a(0x183)]?.[_0x1f119a(0x1f2)]||null,[TestFrameworkConstants[_0x1f119a(0x193)]]:_0x5099b6[_0x1f119a(0x1ce)]||[],[TestFrameworkConstants[_0x1f119a(0x1e9)]]:_0x5099b6['startedAt']||new Date()[_0x1f119a(0x13a)](),[TestFrameworkConstants[_0x1f119a(0x1d7)]]:_0x5099b6['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x1f119a(0x1bf)]]:_0x5099b6[_0x1f119a(0x170)]||[],[TestFrameworkConstants[_0x1f119a(0x130)]]:_0x5099b6['customRerunParam']?.[_0x1f119a(0x135)]||_0x5099b6['name']||'',[TestFrameworkConstants[_0x1f119a(0x1eb)]]:{},[TestFrameworkConstants[_0x1f119a(0x132)]]:_0x5099b6[_0x1f119a(0x13e)]||{}};TestInfo[_0x1f119a(0x161)](_0x2d7702,_0x1b8753),logger[_0x1f119a(0x1c9)]('Parsed\x20cucumber\x20test:\x20'+_0x5099b6[_0x1f119a(0x17c)]+_0x1f119a(0x15e)+_0x138a08);const _0x36ce33={};return _0x36ce33[_0x2d7702]=_0x1b8753,_0x36ce33;}[a78_0x2bb9e9(0x1d3)](_0x347f6c){const _0x5f14e0=a78_0x2bb9e9,_0x31ca44={'bIUZp':_0x5f14e0(0x178),'aYlxb':_0x5f14e0(0x127),'AfcfE':function(_0x92a203,_0x5b6a08){return _0x92a203===_0x5b6a08;},'yyNEk':_0x5f14e0(0x171),'WrBlV':'UnhandledError','ARAHK':function(_0x3b813b,_0x38333f,_0x2def0e){return _0x3b813b(_0x38333f,_0x2def0e);},'WVELR':function(_0xb0e4b1,_0xacc877){return _0xb0e4b1>_0xacc877;},'puVmE':function(_0x1e91f0,_0x1a10f4){return _0x1e91f0>_0x1a10f4;}},{testUUID:_0x1447bb,testData:_0x33712c}=_0x347f6c;if(!_0x33712c||!_0x33712c[_0x5f14e0(0x12f)])return logger[_0x5f14e0(0x1c9)](_0x31ca44[_0x5f14e0(0x1f3)]),{};const _0x1e29c0=this[_0x5f14e0(0x1b6)](TestFrameworkState[_0x5f14e0(0x13f)],HookState[_0x5f14e0(0x18d)]),_0x32623e=_0x33712c['uuid'],_0x2210af=TestInfo[_0x5f14e0(0x1c0)](_0x32623e)||{},_0x2b3de3=_0x2210af?_0x2210af[TestFrameworkConstants[_0x5f14e0(0x1eb)]]||{}:{},_0x4a2c2b={..._0x2210af,[TestFrameworkConstants[_0x5f14e0(0x16a)]]:_0x33712c[_0x5f14e0(0x17d)]||_0x31ca44['aYlxb'],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x33712c['finishedAt']||new Date()[_0x5f14e0(0x13a)](),[TestFrameworkConstants[_0x5f14e0(0x1bb)]]:new Date()[_0x5f14e0(0x13a)](),[TestFrameworkConstants[_0x5f14e0(0x1eb)]]:_0x2b3de3,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x33712c['meta']||{}};_0x31ca44[_0x5f14e0(0x1b7)](_0x33712c['result'],_0x31ca44['yyNEk'])&&_0x33712c[_0x5f14e0(0x1cf)]&&(_0x4a2c2b[TestFrameworkConstants[_0x5f14e0(0x19e)]]=_0x33712c[_0x5f14e0(0x147)]||_0x31ca44[_0x5f14e0(0x173)],_0x4a2c2b[TestFrameworkConstants[_0x5f14e0(0x138)]]=_0x33712c[_0x5f14e0(0x1a4)]||'',_0x4a2c2b[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x33712c[_0x5f14e0(0x1cf)]);const _0x47c16c=TestInfo[_0x5f14e0(0x1c0)](_0x32623e)[TestFrameworkConstants[_0x5f14e0(0x180)]]||{},_0x258eed=_0x31ca44[_0x5f14e0(0x1bd)](getManualUploadLogs,_0x47c16c,_0x1e29c0[_0x5f14e0(0x167)]()['get'](_0x32623e)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x31ca44[_0x5f14e0(0x18a)](_0x258eed['length'],0x0)){const _0x185985=_0x4a2c2b[TestFrameworkConstants['KEY_LOGS']]||[];_0x4a2c2b[TestFrameworkConstants['KEY_LOGS']]=[..._0x185985,..._0x258eed];}_0x33712c[_0x5f14e0(0x189)]&&_0x31ca44['puVmE'](_0x33712c[_0x5f14e0(0x189)][_0x5f14e0(0x1ec)],0x0)&&(_0x4a2c2b[TestFrameworkConstants[_0x5f14e0(0x1a1)]]=_0x33712c[_0x5f14e0(0x189)]);TestInfo['setTestDetails'](_0x32623e,_0x4a2c2b),logger[_0x5f14e0(0x1c9)](_0x5f14e0(0x1e0)+_0x33712c[_0x5f14e0(0x17c)]+_0x5f14e0(0x1b0)+_0x33712c[_0x5f14e0(0x17d)]);const _0x3a55a0={};return _0x3a55a0[_0x32623e]=_0x4a2c2b,_0x3a55a0;}async['trackHookEvent'](_0x5a2e58,_0x1cb291,_0x3c9b53,_0x5dce9e){const _0xf70904=a78_0x2bb9e9,_0x30f123={'qyxSj':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','GTtTu':function(_0x248b3e){return _0x248b3e();},'BJVQG':function(_0x58770d,_0x41a789){return _0x58770d in _0x41a789;},'xsBGD':function(_0x435640,_0x564b1b){return _0x435640===_0x564b1b;},'SDJkJ':function(_0x2a812c,_0x3d01a0){return _0x2a812c>_0x3d01a0;},'oWjPO':function(_0x565565,_0x3ad75f){return _0x565565===_0x3ad75f;},'JYrdX':_0xf70904(0x171),'mGvma':_0xf70904(0x15c),'LOPGb':_0xf70904(0x162),'ZdQxS':function(_0xdb5407,_0x4a306a){return _0xdb5407!==_0x4a306a;}},{hookData:_0x437eb1}=_0x5dce9e;if(!_0x437eb1)return logger[_0xf70904(0x1c9)](_0x30f123[_0xf70904(0x1c3)]),{};const _0x3eb3b=_0x437eb1[_0xf70904(0x12f)]||_0x30f123[_0xf70904(0x1a8)](uuidv4),_0x29e3e3=_0x437eb1[_0xf70904(0x172)],_0x31854b=_0x1cb291[_0xf70904(0x1cb)]()['split']('.')[0x1],_0x3753d0=TestInfo['getTestDetails'](_0x29e3e3)[TestFrameworkConstants[_0xf70904(0x1eb)]]||{},_0x401b04=_0x5a2e58['getAllData']()[_0xf70904(0x1d8)](_0x29e3e3);if(!_0x401b04)return logger['debug'](_0xf70904(0x19d)+_0x29e3e3+_0xf70904(0x1d0)),this['storePendingHook'](_0x5a2e58,_0x29e3e3,_0x1cb291,_0x3c9b53,_0x5dce9e),{};let _0x4e3477=_0x401b04[TestFrameworkConstants[_0xf70904(0x1ef)]];!_0x4e3477&&(_0x4e3477={});!_0x30f123['BJVQG'](_0x31854b,_0x4e3477)&&(_0x4e3477[_0x31854b]=[]);let _0x5893d8=_0x401b04[TestFrameworkConstants[_0xf70904(0x1a1)]];!_0x5893d8&&(_0x5893d8={});!_0x30f123[_0xf70904(0x1e3)](_0x31854b,_0x5893d8)&&(_0x5893d8[_0x31854b]=[]);const _0x1d63b1={[TestFrameworkConstants[_0xf70904(0x1ef)]]:_0x4e3477,[TestFrameworkConstants[_0xf70904(0x1a1)]]:_0x5893d8},_0x26140d={};_0x26140d[_0x29e3e3]=_0x1d63b1;const _0x562fce=_0x26140d;if(_0x30f123[_0xf70904(0x1a0)](_0x3c9b53,HookState['PRE'])){const _0x310b5c={[TestFrameworkConstants[_0xf70904(0x1e5)]]:_0x3eb3b,[TestFrameworkConstants[_0xf70904(0x1af)]]:TestFrameworkConstants[_0xf70904(0x13c)],[TestFrameworkConstants[_0xf70904(0x197)]]:_0x437eb1[_0xf70904(0x177)],[TestFrameworkConstants[_0xf70904(0x1d6)]]:[],[TestFrameworkConstants[_0xf70904(0x174)]]:_0x437eb1[_0xf70904(0x14e)],[TestFrameworkConstants[_0xf70904(0x1eb)]]:_0x3753d0};_0x310b5c[_0xf70904(0x1f0)]=_0x31854b;const _0x28895a=_0x310b5c;_0x4e3477[_0x31854b][_0xf70904(0x14b)](_0x28895a),_0x562fce[_0x29e3e3][TestFrameworkConstants[_0xf70904(0x1a7)]]=_0x31854b,logger['debug'](_0xf70904(0x15f)+_0x31854b+_0xf70904(0x18f)+_0x28895a+_0xf70904(0x150)+_0x5dce9e);}else{if(_0x30f123[_0xf70904(0x1a0)](_0x3c9b53,HookState[_0xf70904(0x18d)])){const _0x11d21b=_0x437eb1[_0xf70904(0x17d)],_0x2889e8=_0x4e3477[_0x31854b]||[];logger['debug'](_0xf70904(0x1a6)+_0x2889e8+'\x20and\x20args\x20=\x20'+_0x5dce9e);if(_0x30f123[_0xf70904(0x155)](_0x2889e8[_0xf70904(0x1ec)],0x0)){const _0x398cb4=_0x2889e8[_0xf70904(0x12b)]();_0x30f123[_0xf70904(0x1e4)](_0x437eb1['result'],_0x30f123[_0xf70904(0x146)])&&_0x437eb1[_0xf70904(0x143)]?(_0x398cb4[TestFrameworkConstants[_0xf70904(0x14f)]]=_0x437eb1[_0xf70904(0x147)]||_0x30f123[_0xf70904(0x1d2)],_0x398cb4[TestFrameworkConstants[_0xf70904(0x187)]]=_0x437eb1[_0xf70904(0x1a4)]||'',_0x398cb4[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0x437eb1[_0xf70904(0x143)]):_0x398cb4[TestFrameworkConstants[_0xf70904(0x1af)]]=_0x30f123[_0xf70904(0x196)];_0x30f123['ZdQxS'](_0x11d21b,TestFrameworkConstants[_0xf70904(0x13c)])&&(_0x398cb4[TestFrameworkConstants[_0xf70904(0x1af)]]=_0x11d21b);_0x398cb4[TestFrameworkConstants[_0xf70904(0x1dd)]]=_0x437eb1['finished_at']||new Date()[_0xf70904(0x13a)](),_0x398cb4[TestFrameworkConstants[_0xf70904(0x1eb)]]=_0x3753d0;const _0x1998f0=_0x398cb4[TestFrameworkConstants[_0xf70904(0x1e5)]];!_0x5893d8[_0x31854b]&&(_0x5893d8[_0x31854b]=[]),_0x5893d8[_0x31854b][_0xf70904(0x14b)](_0x398cb4),_0x562fce[_0x29e3e3][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x31854b;}}}return logger[_0xf70904(0x1c9)](_0xf70904(0x169)+_0x437eb1[_0xf70904(0x14e)]+_0xf70904(0x1a2)+_0x3eb3b+'\x20for\x20test:\x20'+_0x29e3e3),_0x562fce;}[a78_0x2bb9e9(0x1a5)](_0x8b5a){const _0x4ec774=a78_0x2bb9e9,_0xb03be5={};_0xb03be5[_0x4ec774(0x154)]=_0x4ec774(0x1a3);const _0x1af492=_0xb03be5;try{const _0x499737=_0x8b5a[_0x4ec774(0x125)]?_0x8b5a[_0x4ec774(0x125)]['id']:_0x8b5a[_0x4ec774(0x1db)]['test_run_id'],_0x14503a=_0x8b5a[_0x4ec774(0x194)],_0x3dabf1=_0x14503a[_0x4ec774(0x16e)](),_0x26ad49=_0x14503a['getAllData']()[_0x4ec774(0x1d8)](_0x499737);if(!_0x26ad49)return logger[_0x4ec774(0x1c9)](_0x4ec774(0x13b)+_0x499737),{};logger['debug'](_0x4ec774(0x1f1)+_0x499737);const {[TestFrameworkConstants[_0x4ec774(0x1aa)]]:_0x24694b='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x4ec440='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x56c85a='',[TestFrameworkConstants[_0x4ec774(0x182)]]:_0x311818=''}=_0x26ad49,_0x5ad500=_0x14503a[_0x4ec774(0x19f)]()[_0x4ec774(0x1cb)]()['split']('.')[0x1],_0x26b450=_0x14503a[_0x4ec774(0x151)]()[_0x4ec774(0x1cb)]()[_0x4ec774(0x12a)]('.')[0x1],_0x36c456=global?.[_0x4ec774(0x14a)]??0x0,_0x1c4342=_0x14503a['getRef'](),_0x555232=Buffer[_0x4ec774(0x158)](JSON[_0x4ec774(0x1da)](_0x26ad49))[_0x4ec774(0x1cb)](_0x1af492[_0x4ec774(0x154)]),_0x4c85ab={'hash':_0x3dabf1[_0x4ec774(0x181)](),'threadId':_0x3dabf1[_0x4ec774(0x176)]()[_0x4ec774(0x1cb)](),'processId':_0x3dabf1['getProcessId']()[_0x4ec774(0x1cb)]()},_0x559b91={};_0x559b91[_0x4ec774(0x1c4)]=_0x36c456,_0x559b91[_0x4ec774(0x192)]=_0x24694b,_0x559b91[_0x4ec774(0x175)]=_0x4ec440,_0x559b91[_0x4ec774(0x139)]=_0x5ad500,_0x559b91['hookState']=_0x26b450,_0x559b91['startedAt']=_0x56c85a,_0x559b91['endedAt']=_0x311818,_0x559b91[_0x4ec774(0x12f)]=_0x1c4342,_0x559b91[_0x4ec774(0x152)]=_0x555232,_0x559b91[_0x4ec774(0x18e)]=_0x4c85ab;const _0x1785f6=_0x559b91;return logger[_0x4ec774(0x1c9)](_0x4ec774(0x1c1)+_0x499737+_0x4ec774(0x1bc)+_0x5ad500+_0x4ec774(0x149)+_0x26b450),_0x1785f6;}catch(_0x43dba1){return logger[_0x4ec774(0x126)](_0x4ec774(0x1ba)+util[_0x4ec774(0x1be)](_0x43dba1)),{};}}async['sendLogCreatedEvent'](_0x2c514e,_0x1aaace,_0xd9ee26){const _0x667ba7=a78_0x2bb9e9,_0x267234={'aJofU':function(_0x3bc875,_0x2f3329,_0x55ee68){return _0x3bc875(_0x2f3329,_0x55ee68);},'Jedvr':function(_0x35b02a,_0x508c20){return _0x35b02a===_0x508c20;},'IGgno':_0x667ba7(0x1e1),'Thnde':function(_0x12aceb,_0xdad91d){return _0x12aceb/_0xdad91d;},'rgcis':function(_0x20e3e3,_0x53c98a){return _0x20e3e3<_0x53c98a;},'AgATE':function(_0x772062,_0x45aeaf){return _0x772062*_0x45aeaf;},'GvWsG':function(_0x497038,_0x1f6f24){return _0x497038+_0x1f6f24;},'EtRDB':_0x667ba7(0x199)};try{const _0x2cd541=_0xd9ee26[_0x667ba7(0x137)],_0x2e7674=_0x2c514e[_0x667ba7(0x167)]()[_0x667ba7(0x1d8)](_0x2cd541),{[TestFrameworkConstants[_0x667ba7(0x1aa)]]:_0x5d33f0='',[TestFrameworkConstants[_0x667ba7(0x16d)]]:_0x1b011b=''}=_0x2e7674,_0x304278=TestInfo['readLogObjects'](_0x2cd541),_0x506f0b=TestInfo[_0x667ba7(0x1c0)](_0x2cd541)[TestFrameworkConstants[_0x667ba7(0x180)]]||{},_0x1ddbf5=_0x267234[_0x667ba7(0x1ea)](getMediaArtifactsLogs,_0x506f0b,_0x2c514e['getAllData']()[_0x667ba7(0x1d8)](_0x2cd541)[TestFrameworkConstants[_0x667ba7(0x15d)]]),_0x188293=(_0x304278||[])[_0x667ba7(0x144)](_0x1ddbf5||[]);if(!_0x188293||_0x267234['Jedvr'](_0x188293[_0x667ba7(0x1ec)],0x0)){logger[_0x667ba7(0x1c9)](_0x267234[_0x667ba7(0x186)]);return;}const _0x2f1a9f=0x28,_0x571238=Math[_0x667ba7(0x1d1)](_0x267234[_0x667ba7(0x19b)](_0x188293['length'],_0x2f1a9f));for(let _0x486ab9=0x0;_0x267234['rgcis'](_0x486ab9,_0x571238);_0x486ab9++){const _0x26492a=_0x267234[_0x667ba7(0x1ac)](_0x486ab9,_0x2f1a9f),_0x46ef14=_0x267234[_0x667ba7(0x136)](_0x26492a,_0x2f1a9f),_0x159891=_0x188293['slice'](_0x26492a,_0x46ef14),_0x113431={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x159891,'testFrameworkName':_0x5d33f0,'testFrameworkVersion':_0x1b011b,'testFrameworkState':_0x1aaace['toString']()[_0x667ba7(0x12a)]('.')[0x1]};logger[_0x667ba7(0x1c9)](_0x667ba7(0x17a)+_0x2cd541+_0x667ba7(0x1ad)+_0x267234[_0x667ba7(0x136)](_0x486ab9,0x1)+'/'+_0x571238+'\x20payload='+util[_0x667ba7(0x16c)](_0x113431));const _0x1d8d30=await GrpcClient[_0x667ba7(0x156)]()[_0x667ba7(0x1e2)](_0x113431);logger[_0x667ba7(0x1c9)](_0x667ba7(0x17a)+_0x2cd541+'\x20batch\x20'+_0x267234[_0x667ba7(0x136)](_0x486ab9,0x1)+'/'+_0x571238+'\x20response='+util[_0x667ba7(0x16c)](_0x1d8d30));}}catch(_0x484315){logger[_0x667ba7(0x126)]('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util[_0x667ba7(0x1be)](_0x484315));}logger[_0x667ba7(0x1c9)](_0x267234[_0x667ba7(0x1b5)]);}[a78_0x2bb9e9(0x1b3)](_0x196ff1,_0x4d5136,_0x38fc79,_0x87a72a,_0x1ecc58){const _0x4775d2=a78_0x2bb9e9,_0x639f7d={'testId':_0x4d5136,'testFrameworkState':_0x38fc79,'hookState':_0x87a72a,'args':_0x1ecc58,'timestamp':new Date()[_0x4775d2(0x13a)]()};_0x196ff1['addPendingHook'](_0x4d5136,_0x639f7d),logger[_0x4775d2(0x1c9)](_0x4775d2(0x1b8)+_0x4d5136+_0x4775d2(0x17b)+_0x38fc79+_0x4775d2(0x1d9)+_0x87a72a);}async[a78_0x2bb9e9(0x1cd)](_0x2dad86,_0x28371e){const _0x247448=a78_0x2bb9e9,_0x530cf5={};_0x530cf5[_0x247448(0x179)]=function(_0x2c26f6,_0x4d0093){return _0x2c26f6>_0x4d0093;};const _0x12496e=_0x530cf5;if(!_0x2dad86[_0x247448(0x1a9)](_0x28371e))return;const _0x578fd6=_0x2dad86[_0x247448(0x165)](_0x28371e);logger[_0x247448(0x1c9)]('Processing\x20'+_0x578fd6[_0x247448(0x1ec)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x28371e);for(const _0x2e9ed6 of _0x578fd6){try{const _0x1abf40=await this[_0x247448(0x198)](_0x2dad86,_0x2e9ed6['testFrameworkState'],_0x2e9ed6['hookState'],_0x2e9ed6[_0x247448(0x190)]);_0x1abf40&&_0x12496e[_0x247448(0x179)](Object[_0x247448(0x1b9)](_0x1abf40)['length'],0x0)&&_0x2dad86[_0x247448(0x1ca)](_0x1abf40),await this[_0x247448(0x166)](_0x2dad86,_0x2e9ed6[_0x247448(0x139)],_0x2e9ed6[_0x247448(0x1b2)],_0x2e9ed6['args']);}catch(_0x34cd43){logger[_0x247448(0x126)](_0x247448(0x141)+_0x28371e+_0x247448(0x168)+_0x34cd43);}}_0x2dad86[_0x247448(0x188)](_0x28371e),logger[_0x247448(0x1c9)](_0x247448(0x157)+_0x28371e);}}module['exports']=CucumberTestFramework;
|