browserstack-node-sdk 1.56.1 → 1.56.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- 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/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -0
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/bin/v2/cliUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a72_0x40e9(_0x4107d9,_0x2c40f7){const _0xded77b=a72_0xded7();return a72_0x40e9=function(_0x40e937,_0x4ba9ef){_0x40e937=_0x40e937-0x13b;let _0x563377=_0xded77b[_0x40e937];return _0x563377;},a72_0x40e9(_0x4107d9,_0x2c40f7);}const a72_0x469c65=a72_0x40e9;(function(_0x591b30,_0x595058){const _0x1d0bd1=a72_0x40e9,_0x2cf980=_0x591b30();while(!![]){try{const _0x2062d7=-parseInt(_0x1d0bd1(0x16c))/0x1*(-parseInt(_0x1d0bd1(0x212))/0x2)+parseInt(_0x1d0bd1(0x193))/0x3+-parseInt(_0x1d0bd1(0x180))/0x4+-parseInt(_0x1d0bd1(0x1bb))/0x5+parseInt(_0x1d0bd1(0x1f1))/0x6*(parseInt(_0x1d0bd1(0x150))/0x7)+parseInt(_0x1d0bd1(0x1e5))/0x8*(parseInt(_0x1d0bd1(0x1f7))/0x9)+parseInt(_0x1d0bd1(0x18d))/0xa*(-parseInt(_0x1d0bd1(0x13e))/0xb);if(_0x2062d7===_0x595058)break;else _0x2cf980['push'](_0x2cf980['shift']());}catch(_0xb0f932){_0x2cf980['push'](_0x2cf980['shift']());}}}(a72_0xded7,0x6d927));function a72_0xded7(){const _0x527930=['Failed\x20to\x20delete\x20zip\x20file:\x20','./state/hookState.js','yAkfx','.browserstack','YOQGH','parse','BWvzI','iXuGh','Binary\x20is\x20busy:\x20','273532zykHUQ','map','url','stringify','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','./state/automationFrameworkState.js','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','getSdkVersion','fcYIq','sLnAQ','PSXxR','fbUoV','isBinaryBusy','createWriteStream','Ytila','Current\x20CLI\x20Path\x20Found:\x20','AyLuv','chmod','matchHookRegex','exports','nptKG','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','shouldSkipSessionName','getCLIParamsForDevEnv','Resolved\x20binary\x20path:\x20','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','8897VFhqlp','Folder\x20does\x20not\x20exist:\x20','message','xxnLt','WffaJ','SmyeM','unix:/tmp/sdk-platform-','wTpoA','sXehg','XeNBW','code','child_process','worker_threads','close','SLuDp','response\x20','BROWSERSTACK_FILES_DIR','open','getSdkLanguage','sRBOm','2170260WgzoEO','bNctN','lazyEntries','../../../package.json','gRIek','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','qLEEz','getAutomationFrameworkDetail','ilMLl','tTIyK','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','IFaZK','MTjbU','2150stGbBp','CgMJw','fileName','getTestFrameworkDetail','nvKQJ','lHoBX','518895qwnkBg','SHELL_EXECUTE_ERROR','CLI\x20version\x20found\x20despite\x20error:\x20\x22','warn','SDK_CLI_CHECK_UPDATE','entry','4|2|0|3|1','LbQPy','closeSync','CjeaS','ilCjM','XfLXq','testContextOptions','pipe','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','QVWTt','setFrameworkDetail','isArray','BROWSERSTACK_CLI_ENV','bYjag','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','homedir','automationFrameworkDetail','existsSync','DklmI','../../helpers/performance/constants','nTsAV','skipSessionStatus','test','getCliDir','MsWHU','.sock','getCurrentInstanceName','info','cli_version','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','dsoxq','Folder\x20','JfULB','format','3262435wtxvVZ','env','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','sEaDF','pid','reduce','mergeObject','Development\x20Cli\x20Path:\x20','xJdhw','includes','BROWSERSTACK_BINARY_URL','KEKYQ','yODsd','startsWith','0755','end','Setting\x20required\x20permissions\x20to\x20','unlink','requestToUpdateCLI','getExistingCliPath','cli','JIXJV','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','filePath','once','CVXwL','JYLva','checkAndUpdateCli','SlmhZ','yauzl','join','ceURc','yJrfi','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','readdirSync','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','rYQTo','downloadFileStream','skipSessionName','readEntry','eEGCO','OAtCo','5504808EJFQCm','fSbel','GVGlc','EDTiG','debug','get','entries','OBSNq','olFEH','OHYkO','error','tmpdir','114JdCBZZ',',\x20automationFramework=','openReadStream','data','DtUkt','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','9QTdXfA','oGtfO','downloadLatestBinary','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','IHgLo','Configuring\x20Cli\x20path.','\x20already\x20exists','isFile','statSync','XWjsZ','length','Downloading\x20SDK\x20binary\x20from:\x20','isDirectory','../utils/apiUtilityMethods.js','YJWCJ','SDK_CLI_BIN_PATH','testFrameworkDetail','EXDEV','development','../../helpers/test-observability/utils.js','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','VwgmB','YGJUa','shouldSkipSessionStatus','RlxyA','LTOaA','rfkfN','14PrgRdD','FGTSX','FRTXa','copyFileSync','HOOK_REGEX','basename','OFLkD','TMyrA','SDK_CLI_DOWNLOAD','mtime','../../helpers/classLogger.js','eBODL','trim','UZaVm','arch','./framework/constants/testFrameworkConstants.js','timeout','CLIUtils','CVaRz','../../helpers/helper','zrRQJ','Wdrie','node','../utils/constants','TpIoy','eWxbT','rYNVc','.tmp.','GJbgs','CgnYW','mIgKM','\x20version','1122HpWCvU','./instances/testFrameworkInstance.js','follow-redirects','version','binary-','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','path','EmPuV','setupCliPath'];a72_0xded7=function(){return _0x527930;};return a72_0xded7();}const fs=require('fs'),os=require('os'),url=require('url'),path=require(a72_0x469c65(0x144)),{exec}=require(a72_0x469c65(0x177)),{https}=require(a72_0x469c65(0x140)),yauzl=require(a72_0x469c65(0x1d8)),util=require('util'),{getFrameworkVersion}=require(a72_0x469c65(0x20a)),{threadId}=require(a72_0x469c65(0x178)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a72_0x469c65(0x1ac)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a72_0x469c65(0x225)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a72_0x469c65(0x229)),{createClassLogger}=require(a72_0x469c65(0x21c)),TestFrameworkInstance=require(a72_0x469c65(0x13f)),HookState=require(a72_0x469c65(0x148)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require(a72_0x469c65(0x155)),TestFrameworkConstants=require(a72_0x469c65(0x221)),logger=createClassLogger(a72_0x469c65(0x223)),{getBStackAPIUrl}=require(a72_0x469c65(0x204));class CLIUtils{[a72_0x469c65(0x1a9)]={};[a72_0x469c65(0x207)]={};static['isDevelopmentEnv'](){const _0x35222f=a72_0x469c65,_0x51d93b={};_0x51d93b[_0x35222f(0x1df)]=function(_0x400056,_0x1c6bd6){return _0x400056===_0x1c6bd6;},_0x51d93b[_0x35222f(0x1ad)]=_0x35222f(0x209);const _0x2aeb21=_0x51d93b;return _0x2aeb21['rYQTo'](process[_0x35222f(0x1bc)][_0x35222f(0x1a5)],_0x2aeb21[_0x35222f(0x1ad)]);}static[a72_0x469c65(0x167)](){const _0x4aea88=a72_0x469c65,_0x29f5a4={};return _0x29f5a4['id']=process[_0x4aea88(0x1bc)][_0x4aea88(0x1a5)],_0x29f5a4['listen']=_0x4aea88(0x172)+process[_0x4aea88(0x1bc)]['BROWSERSTACK_CLI_ENV']+_0x4aea88(0x1b2),_0x29f5a4;}static[a72_0x469c65(0x157)](){const _0x51ef1a=a72_0x469c65,_0xb761e6={'VwgmB':function(_0x331fd6,_0x1102c3){return _0x331fd6(_0x1102c3);},'SEWrG':_0x51ef1a(0x183)};return _0xb761e6[_0x51ef1a(0x20c)](require,_0xb761e6['SEWrG'])[_0x51ef1a(0x141)];}static[a72_0x469c65(0x17e)](){const _0x128ff4=a72_0x469c65,_0x33ce45={};_0x33ce45[_0x128ff4(0x1e7)]=_0x128ff4(0x228);const _0x2604af=_0x33ce45;return _0x2604af[_0x128ff4(0x1e7)];}static async[a72_0x469c65(0x146)](_0x2decdb){const _0x1155c5=a72_0x469c65,_0x4dcaa9={'bYjag':_0x1155c5(0x1fc),'eBODL':function(_0x4c0639,_0x115a22){return _0x4c0639(_0x115a22);},'wDhOm':function(_0x4a46d6,_0x57077f){return _0x4a46d6(_0x57077f);},'HshUX':_0x1155c5(0x1bd)};logger[_0x1155c5(0x1e9)](_0x4dcaa9[_0x1155c5(0x1a6)]);const _0x38d136=process['env'][_0x1155c5(0x206)];if(!_0x4dcaa9[_0x1155c5(0x21d)](isNullOrEmpty,_0x38d136))return logger['debug'](_0x1155c5(0x1c2)+_0x38d136),_0x38d136;try{const _0x4f07af=this[_0x1155c5(0x1b0)]();if(_0x4dcaa9['wDhOm'](isNullOrEmpty,_0x4f07af))throw new Error(_0x4dcaa9['HshUX']);const _0x2934a8=this[_0x1155c5(0x1ce)](_0x4f07af),_0x10aa8a=await this['checkAndUpdateCli'](_0x2934a8,_0x4f07af,_0x2decdb);return logger[_0x1155c5(0x1e9)](_0x1155c5(0x168)+_0x10aa8a),_0x10aa8a;}catch(_0x52d710){logger[_0x1155c5(0x1e9)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util['format'](_0x52d710));}return null;}static async[a72_0x469c65(0x1d6)](_0x2caf6a,_0x370f30,_0x3b5281){const _0x3ef081=a72_0x469c65,_0x386f26={'tTIyK':function(_0x335060){return _0x335060();},'olFEH':function(_0x1a63d8,_0xff55da){return _0x1a63d8(_0xff55da);},'IHgLo':function(_0x1db378,_0x807bdc,_0x5bd8ec){return _0x1db378(_0x807bdc,_0x5bd8ec);},'xJdhw':_0x3ef081(0x1f4),'iXuGh':_0x3ef081(0x152),'EnyYv':function(_0x30896e,_0x2ec57d){return _0x30896e(_0x2ec57d);},'UZaVm':function(_0x403ca1,_0x136c86,_0x3a71bd){return _0x403ca1(_0x136c86,_0x3a71bd);}};PerformanceTester['start'](PerformanceEvents[_0x3ef081(0x197)]),logger['info'](_0x3ef081(0x15f)+_0x2caf6a);const _0x49cd46=_0x386f26[_0x3ef081(0x189)](getHostInfo),_0x16d6f8={'sdk_version':CLIUtils[_0x3ef081(0x157)](),'os':_0x49cd46['platform'],'os_arch':_0x49cd46[_0x3ef081(0x220)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x386f26[_0x3ef081(0x1ed)](isNullOrEmpty,_0x2caf6a)&&(_0x16d6f8[_0x3ef081(0x1b5)]=await this['runShellCommand'](_0x2caf6a+_0x3ef081(0x13d)));const _0x377e63=await this[_0x3ef081(0x1cd)](_0x16d6f8,_0x3b5281);process[_0x3ef081(0x1bc)][_0x3ef081(0x1c5)]&&(logger[_0x3ef081(0x1b4)]('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process['env'][_0x3ef081(0x1c5)]),_0x377e63[_0x3ef081(0x1f4)][_0x3ef081(0x152)]=process['env'][_0x3ef081(0x1c5)]);if(_0x386f26[_0x3ef081(0x1fb)](nestedKeyValue,_0x377e63,[_0x386f26[_0x3ef081(0x1c3)],_0x386f26[_0x3ef081(0x14e)]])){logger[_0x3ef081(0x1e9)](_0x3ef081(0x169)+_0x16d6f8[_0x3ef081(0x1b5)]);if(!_0x386f26['EnyYv'](isNullOrEmpty,_0x2caf6a)&&this['isBinaryBusy'](_0x2caf6a))return logger[_0x3ef081(0x196)](_0x3ef081(0x18a)+_0x2caf6a),PerformanceTester[_0x3ef081(0x1ca)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x2caf6a;const _0x2409fe=await this[_0x3ef081(0x1f9)](_0x386f26[_0x3ef081(0x21f)](nestedKeyValue,_0x377e63,[_0x386f26[_0x3ef081(0x1c3)],_0x386f26['iXuGh']]),_0x370f30);return PerformanceTester['end'](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x2409fe;}return PerformanceTester[_0x3ef081(0x1ca)](PerformanceEvents[_0x3ef081(0x197)]),_0x2caf6a;}static[a72_0x469c65(0x1b0)](){const _0x26ef5a=a72_0x469c65,_0x228b01={'sRBOm':function(_0x34acec,_0x5b259d){return _0x34acec(_0x5b259d);},'XWjsZ':_0x26ef5a(0x1bd),'fbUoV':_0x26ef5a(0x1cf),'Wdrie':function(_0x2cf097,_0xd557f2){return _0x2cf097(_0xd557f2);}},_0x3d5068=this['getWritableDir']();try{if(_0x228b01[_0x26ef5a(0x17f)](isNullOrEmpty,_0x3d5068))throw new Error(_0x228b01[_0x26ef5a(0x200)]);const _0x33ac17=path[_0x26ef5a(0x1d9)](_0x3d5068,_0x228b01[_0x26ef5a(0x15b)]);return!fs[_0x26ef5a(0x1aa)](_0x33ac17)&&_0x228b01[_0x26ef5a(0x227)](createDir,_0x33ac17),_0x33ac17;}catch(_0x400b07){logger[_0x26ef5a(0x1e9)](_0x26ef5a(0x16b)+util[_0x26ef5a(0x1ba)](_0x400b07));}}static['getWritableDir'](){const _0x5af685=a72_0x469c65,_0x47cb57={'OAtCo':_0x5af685(0x14a),'CjeaS':function(_0x4c8eb9,_0x1e730b){return _0x4c8eb9(_0x1e730b);},'WffaJ':function(_0x52ec0c,_0xc6629a){return _0x52ec0c(_0xc6629a);},'GJbgs':function(_0x586a0d,_0x2624f7){return _0x586a0d(_0x2624f7);},'EKFyD':function(_0x3ba372,_0x409d0c){return _0x3ba372(_0x409d0c);}},_0xffe2bd=[process[_0x5af685(0x1bc)][_0x5af685(0x17c)],path['join'](os[_0x5af685(0x1a8)](),_0x47cb57['OAtCo']),path['join'](os[_0x5af685(0x1f0)](),_0x47cb57[_0x5af685(0x1e4)])];for(const _0x1d51e3 of _0xffe2bd){if(_0x47cb57[_0x5af685(0x19c)](isNullOrEmpty,_0x1d51e3))continue;try{if(fs[_0x5af685(0x1aa)](_0x1d51e3)){logger[_0x5af685(0x1e9)](_0x5af685(0x1b8)+_0x1d51e3+_0x5af685(0x1fd));if(!_0x47cb57[_0x5af685(0x170)](isModifiable,_0x1d51e3)){logger['debug'](_0x5af685(0x1cb)+_0x1d51e3);const _0x47948a=_0x47cb57[_0x5af685(0x22e)](setReadWriteExecuteAccess,_0x1d51e3);if(!_0x47cb57['EKFyD'](isTrue,_0x47948a)){logger[_0x5af685(0x196)](_0x5af685(0x1d1)+_0x1d51e3);continue;}}}else{logger[_0x5af685(0x1e9)](_0x5af685(0x16d)+_0x1d51e3),_0x47cb57[_0x5af685(0x19c)](createDir,_0x1d51e3),logger[_0x5af685(0x1e9)](_0x5af685(0x1cb)+_0x1d51e3);const _0x135ced=_0x47cb57[_0x5af685(0x170)](setReadWriteExecuteAccess,_0x1d51e3);!_0x47cb57[_0x5af685(0x170)](isTrue,_0x135ced)&&logger['warn'](_0x5af685(0x1d1)+_0x1d51e3);}return _0x1d51e3;}catch(_0x365f36){logger[_0x5af685(0x1ef)](_0x5af685(0x1dc)+util[_0x5af685(0x1ba)](_0x365f36));}}return null;}static[a72_0x469c65(0x1ce)](_0x5f3805){const _0x149503=a72_0x469c65,_0x808fee={};_0x808fee[_0x149503(0x14b)]=function(_0x179d07,_0x189a32){return _0x179d07>_0x189a32;};const _0x51d723=_0x808fee;try{if(!fs[_0x149503(0x1aa)](_0x5f3805)||!fs[_0x149503(0x1ff)](_0x5f3805)[_0x149503(0x203)]())return'';const _0x57867d=fs[_0x149503(0x1dd)](_0x5f3805)[_0x149503(0x151)](_0x5d5977=>path[_0x149503(0x1d9)](_0x5f3805,_0x5d5977))['filter'](_0x547eaa=>fs[_0x149503(0x1ff)](_0x547eaa)[_0x149503(0x1fe)]()&&path[_0x149503(0x217)](_0x547eaa)[_0x149503(0x1c8)](_0x149503(0x142)));if(_0x51d723['YOQGH'](_0x57867d[_0x149503(0x201)],0x0)){const _0x236079=_0x57867d[_0x149503(0x151)](_0x1d6893=>({'filePath':_0x1d6893,'mtime':fs[_0x149503(0x1ff)](_0x1d6893)[_0x149503(0x21b)]}))[_0x149503(0x1c0)]((_0x486a2b,_0x1717b0)=>{const _0x499e9a=_0x149503;if(!_0x486a2b||!_0x486a2b[_0x499e9a(0x21b)])return _0x1717b0;if(_0x51d723[_0x499e9a(0x14b)](_0x1717b0[_0x499e9a(0x21b)],_0x486a2b['mtime']))return _0x1717b0;return _0x486a2b;},{});return _0x236079?_0x236079[_0x149503(0x1d2)]:'';}return'';}catch(_0x2eb000){return logger[_0x149503(0x1ef)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x149503(0x1ba)](_0x2eb000)),'';}}static ['requestToUpdateCLI']=async(_0x7f2b06,_0x40a015)=>{const _0x2480b9=a72_0x469c65,_0x5c84af={'eWxbT':function(_0x1d3e35,_0x2f722a,_0x2b7578,_0x16b40c,_0x23c5af){return _0x1d3e35(_0x2f722a,_0x2b7578,_0x16b40c,_0x23c5af);},'gRIek':'GET'},_0x2709ab={};_0x2709ab['qs']=_0x7f2b06;const _0x66b725=await _0x5c84af[_0x2480b9(0x22b)](nodeRequest,_0x5c84af[_0x2480b9(0x184)],UPDATED_CLI_ENDPOINT,_0x2709ab,_0x40a015);return logger[_0x2480b9(0x1e9)](_0x2480b9(0x17b)+JSON['stringify'](_0x66b725)),_0x66b725;};static[a72_0x469c65(0x15c)](_0x1f4c91){const _0x1dbfb5=a72_0x469c65;try{const _0x314782=fs['openSync'](_0x1f4c91,'r+');return fs[_0x1dbfb5(0x19b)](_0x314782),![];}catch(_0x470652){if(BINARY_BUSY_ERROR_CODES[_0x1dbfb5(0x1c4)](_0x470652[_0x1dbfb5(0x176)]))return logger['debug'](_0x1dbfb5(0x14f)+_0x1f4c91),!![];return logger[_0x1dbfb5(0x1e9)](_0x1dbfb5(0x165)+_0x470652[_0x1dbfb5(0x16e)]),![];}}static['runShellCommand'](_0x3a02d3,_0x1640dd=''){const _0x41cf6c=a72_0x469c65,_0x26624c={'CgMJw':_0x41cf6c(0x141),'yODsd':function(_0x2bd83f,_0x5e2c34){return _0x2bd83f(_0x5e2c34);},'FGTSX':_0x41cf6c(0x194),'oGcFn':function(_0x2d7339,_0x3f715c){return _0x2d7339(_0x3f715c);},'fSbel':function(_0x2bd8ec,_0x4f5b2a,_0x1178fd,_0x34ac12){return _0x2bd8ec(_0x4f5b2a,_0x1178fd,_0x34ac12);},'YJWCJ':_0x41cf6c(0x1ef)};return new Promise((_0x39c4fa,_0x1ecbfe)=>{const _0x1cbffc=_0x41cf6c,_0x25c81c={'ilMLl':function(_0x293750,_0x285570){return _0x26624c['oGcFn'](_0x293750,_0x285570);},'sLnAQ':_0x26624c[_0x1cbffc(0x213)]},_0x6ff1ad={};_0x6ff1ad['cwd']=_0x1640dd,_0x6ff1ad[_0x1cbffc(0x222)]=0x1388;const _0x166d3c=_0x26624c[_0x1cbffc(0x1e6)](exec,_0x3a02d3,_0x6ff1ad,(_0x4402a6,_0x275124,_0x9ed2f3)=>{const _0x289fe0=_0x1cbffc;if(_0x4402a6){if(_0x3a02d3['includes'](_0x26624c[_0x289fe0(0x18e)])&&(_0x275124[_0x289fe0(0x21e)]()||_0x9ed2f3['trim']())){const _0xac0af5=_0x275124[_0x289fe0(0x21e)]()||_0x9ed2f3[_0x289fe0(0x21e)]();logger[_0x289fe0(0x1e9)](_0x289fe0(0x195)+_0xac0af5+'\x22'),_0x26624c[_0x289fe0(0x1c7)](_0x39c4fa,_0xac0af5);}else _0x26624c[_0x289fe0(0x1c7)](_0x39c4fa,_0x9ed2f3[_0x289fe0(0x21e)]()||_0x26624c[_0x289fe0(0x213)]);}else logger['debug']('Resolving\x20with\x20stdout:\x20\x22'+_0x275124[_0x289fe0(0x21e)]()+'\x22'),_0x26624c[_0x289fe0(0x1c7)](_0x39c4fa,_0x275124[_0x289fe0(0x21e)]());});_0x166d3c['on'](_0x26624c[_0x1cbffc(0x205)],()=>{const _0x29e72a=_0x1cbffc;_0x25c81c[_0x29e72a(0x188)](_0x39c4fa,_0x25c81c[_0x29e72a(0x159)]);});});}static [a72_0x469c65(0x1f9)]=async(_0x1eca57,_0x56d75a)=>{const _0x44c29a=a72_0x469c65,_0x41b122={'Ytila':_0x44c29a(0x156),'TpIoy':function(_0x51fad4,_0x8fb3dd){return _0x51fad4(_0x8fb3dd);},'JYLva':_0x44c29a(0x143),'SlmhZ':function(_0x4f288d,_0x290c73){return _0x4f288d(_0x290c73);},'dsoxq':_0x44c29a(0x1ef)};PerformanceTester['start'](PerformanceEvents[_0x44c29a(0x21a)]),logger['debug'](_0x44c29a(0x202)+_0x1eca57);try{const _0x35ae80=url[_0x44c29a(0x14c)](_0x1eca57),_0x3097d0=path[_0x44c29a(0x1d9)](_0x56d75a,'downloaded_file_'+process['pid']+'.zip'),_0x371284=fs[_0x44c29a(0x15d)](_0x3097d0);return new Promise((_0x5380a2,_0x212733)=>{const _0x2bcb23=_0x44c29a,_0xac23c8={'CVaRz':function(_0x4bad66,_0x26498a){const _0x3a016b=a72_0x40e9;return _0x41b122[_0x3a016b(0x22a)](_0x4bad66,_0x26498a);}};https[_0x2bcb23(0x1ea)](_0x35ae80,function(_0x40f105){const _0x54eafd=_0x2bcb23,_0x1d03b7={'QdNZL':_0x41b122[_0x54eafd(0x15e)],'oGtfO':function(_0x2e5a90,_0x113636){const _0x513afe=_0x54eafd;return _0x41b122[_0x513afe(0x22a)](_0x2e5a90,_0x113636);},'LTOaA':_0x41b122[_0x54eafd(0x1d5)],'sEaDF':function(_0x133574,_0xbea17c){const _0x2eff15=_0x54eafd;return _0x41b122[_0x2eff15(0x1d7)](_0x133574,_0xbea17c);}},_0x4571d7=null;_0x40f105[_0x54eafd(0x1a0)](_0x371284),_0x40f105['on'](_0x41b122[_0x54eafd(0x1b7)],function(_0x382ed4){const _0x4e3e55=_0x54eafd;logger[_0x4e3e55(0x1ef)](util['format'](_0x1d03b7['QdNZL'],_0x382ed4)),PerformanceTester[_0x4e3e55(0x1ca)](PerformanceEvents[_0x4e3e55(0x21a)],![],util[_0x4e3e55(0x1ba)](_0x382ed4)),_0x1d03b7[_0x4e3e55(0x1f8)](_0x212733,_0x382ed4);}),_0x371284['on'](_0x41b122[_0x54eafd(0x1b7)],function(_0x106e73){const _0x138aa7=_0x54eafd;logger['error'](util[_0x138aa7(0x1ba)](_0x1d03b7[_0x138aa7(0x210)],_0x106e73)),PerformanceTester[_0x138aa7(0x1ca)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x106e73)),_0x1d03b7[_0x138aa7(0x1be)](_0x212733,_0x106e73);}),CLIUtils[_0x54eafd(0x1e0)](_0x371284,_0x4571d7,_0x3097d0,_0x56d75a,_0x282b4d=>{const _0x27a635=_0x54eafd;PerformanceTester['end'](PerformanceEvents[_0x27a635(0x21a)]),_0xac23c8[_0x27a635(0x224)](_0x5380a2,_0x282b4d);},_0x3f3309=>{const _0x3e1db9=_0x54eafd;PerformanceTester[_0x3e1db9(0x1ca)](PerformanceEvents[_0x3e1db9(0x21a)],![],util[_0x3e1db9(0x1ba)](_0x3f3309)),_0xac23c8[_0x3e1db9(0x224)](_0x212733,_0x3f3309);});})['on'](_0x41b122[_0x2bcb23(0x1b7)],function(_0x11760d){const _0x1b8114=_0x2bcb23;logger['error']('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x1b8114(0x1ba)](_0x11760d)),PerformanceTester[_0x1b8114(0x1ca)](PerformanceEvents[_0x1b8114(0x21a)],![],util[_0x1b8114(0x1ba)](_0x11760d)),_0xac23c8[_0x1b8114(0x224)](_0x212733,_0x11760d);});});}catch(_0x351d37){PerformanceTester[_0x44c29a(0x1ca)](PerformanceEvents[_0x44c29a(0x21a)],![],util[_0x44c29a(0x1ba)](_0x351d37)),logger[_0x44c29a(0x1e9)](_0x44c29a(0x1f6)+util['format'](_0x351d37));}};static[a72_0x469c65(0x1e0)](_0x520b1d,_0x2b3229,_0x127b18,_0x25f9a6,_0x20f1c7,_0xb5e86){const _0x5bac05=a72_0x469c65,_0x1a5724={'OBSNq':function(_0x16c3f2,_0x106fa1){return _0x16c3f2(_0x106fa1);},'zrRQJ':function(_0x31d8ae,_0x4261a0){return _0x31d8ae!==_0x4261a0;},'EmPuV':function(_0x5355a9,_0x5aac3e){return _0x5355a9(_0x5aac3e);},'PSXxR':function(_0xf23025,_0x7cde21){return _0xf23025(_0x7cde21);},'LbQPy':_0x5bac05(0x1ef),'lHoBX':_0x5bac05(0x179),'rYNVc':'end','iziMx':_0x5bac05(0x208),'FRTXa':function(_0x417431,_0x6b56e1){return _0x417431(_0x6b56e1);},'rfkfN':_0x5bac05(0x1c9),'TKkJY':_0x5bac05(0x198)};_0x520b1d['on'](_0x1a5724[_0x5bac05(0x192)],function(){const _0x42b87d=_0x5bac05,_0x1308ce={'CgnYW':function(_0x3998ad,_0x5c6c6b){const _0x5af19b=a72_0x40e9;return _0x1a5724[_0x5af19b(0x1ec)](_0x3998ad,_0x5c6c6b);},'eEGCO':function(_0x50f91b,_0xaba7e2){const _0x38fff2=a72_0x40e9;return _0x1a5724[_0x38fff2(0x226)](_0x50f91b,_0xaba7e2);},'sXehg':function(_0x2657f2,_0x3e2673){const _0x601cf4=a72_0x40e9;return _0x1a5724[_0x601cf4(0x145)](_0x2657f2,_0x3e2673);},'wTpoA':function(_0x7d7279,_0x1fc640){const _0x3ac6c1=a72_0x40e9;return _0x1a5724[_0x3ac6c1(0x15a)](_0x7d7279,_0x1fc640);},'ilCjM':_0x1a5724[_0x42b87d(0x19a)],'nvKQJ':_0x1a5724['lHoBX'],'SmyeM':function(_0x56f524,_0xfac531){return _0x1a5724['EmPuV'](_0x56f524,_0xfac531);},'TMyrA':_0x1a5724[_0x42b87d(0x22c)],'XfLXq':function(_0x2f8497,_0x208e10){return _0x1a5724['EmPuV'](_0x2f8497,_0x208e10);},'DklmI':_0x1a5724['iziMx'],'XeNBW':function(_0x5eddb1,_0x583078){const _0x3f09b2=_0x42b87d;return _0x1a5724[_0x3f09b2(0x145)](_0x5eddb1,_0x583078);},'OFLkD':function(_0x180d65,_0x81ccd7){const _0xa84360=_0x42b87d;return _0x1a5724[_0xa84360(0x214)](_0x180d65,_0x81ccd7);},'JiCrI':_0x1a5724[_0x42b87d(0x211)],'JIXJV':function(_0x2f4335,_0x270801){const _0x1081f6=_0x42b87d;return _0x1a5724[_0x1081f6(0x15a)](_0x2f4335,_0x270801);},'KEKYQ':_0x1a5724['TKkJY']},_0x46bf8c={};_0x46bf8c[_0x42b87d(0x182)]=!![],yauzl[_0x42b87d(0x17d)](_0x127b18,_0x46bf8c,function(_0x2f72dd,_0x392815){const _0x63b332=_0x42b87d,_0x5d9610={'ttipG':_0x1308ce[_0x63b332(0x191)],'xxnLt':function(_0x53d2bb,_0x277247){const _0x2b2d38=_0x63b332;return _0x1308ce[_0x2b2d38(0x171)](_0x53d2bb,_0x277247);},'QulkP':_0x1308ce[_0x63b332(0x219)],'YGJUa':function(_0xdcdb41,_0x1d648f){const _0x297f7a=_0x63b332;return _0x1308ce[_0x297f7a(0x19e)](_0xdcdb41,_0x1d648f);},'BWvzI':function(_0x185882,_0x20804b){const _0x539344=_0x63b332;return _0x1308ce[_0x539344(0x1e3)](_0x185882,_0x20804b);},'yJrfi':_0x1308ce[_0x63b332(0x1ab)],'RlxyA':function(_0x1f0fa5,_0x532b51){const _0x335866=_0x63b332;return _0x1308ce[_0x335866(0x175)](_0x1f0fa5,_0x532b51);},'IFaZK':function(_0x28699c,_0x10cb8a){const _0x456b69=_0x63b332;return _0x1308ce[_0x456b69(0x174)](_0x28699c,_0x10cb8a);},'JfULB':function(_0x2305bf,_0x4bdc50){const _0xdf5548=_0x63b332;return _0x1308ce[_0xdf5548(0x218)](_0x2305bf,_0x4bdc50);},'ceURc':_0x1308ce['JiCrI']};if(_0x2f72dd){_0x1308ce[_0x63b332(0x1d0)](_0xb5e86,_0x2f72dd);return;}_0x392815['readEntry'](),_0x392815['on'](_0x1308ce[_0x63b332(0x1c6)],_0x38a2d4=>{const _0x9b09ff=_0x63b332,_0x285674={'AyLuv':function(_0x415783,_0x13a957){const _0x492a26=a72_0x40e9;return _0x1308ce[_0x492a26(0x13b)](_0x415783,_0x13a957);},'mIgKM':function(_0xf2fbba,_0x6c0192){const _0x5ce355=a72_0x40e9;return _0x1308ce[_0x5ce355(0x13b)](_0xf2fbba,_0x6c0192);}};if(/\/$/['test'](_0x38a2d4[_0x9b09ff(0x18f)])){_0x392815[_0x9b09ff(0x1e2)]();return;}!_0x2b3229&&(_0x2b3229=_0x38a2d4[_0x9b09ff(0x18f)]);if(_0x1308ce[_0x9b09ff(0x1e3)](_0x38a2d4['fileName'],_0x2b3229))_0x392815[_0x9b09ff(0x1e2)]();else{const _0x4340b4=_0x38a2d4[_0x9b09ff(0x18f)],_0x3ed770=path[_0x9b09ff(0x1d9)](_0x25f9a6,_0x4340b4+_0x9b09ff(0x22d)+process[_0x9b09ff(0x1bf)]);let _0x1968a7;try{_0x1968a7=fs[_0x9b09ff(0x15d)](_0x3ed770);}catch(_0x229da8){if(BINARY_BUSY_ERROR_CODES[_0x9b09ff(0x1c4)](_0x229da8[_0x9b09ff(0x176)])){const _0x55a0a5=path[_0x9b09ff(0x1d9)](_0x25f9a6,_0x4340b4);if(fs[_0x9b09ff(0x1aa)](_0x55a0a5)){logger['warn'](_0x9b09ff(0x1a1)+_0x4340b4),fs[_0x9b09ff(0x1cc)](_0x127b18,_0x4e3636=>{const _0xf6029e=_0x9b09ff;_0x4e3636&&logger[_0xf6029e(0x196)](_0xf6029e(0x147)+_0x127b18);}),_0x1308ce[_0x9b09ff(0x174)](_0x20f1c7,_0x55a0a5);return;}logger['warn'](_0x9b09ff(0x1b6)+_0x4340b4);}_0x1308ce[_0x9b09ff(0x173)](_0xb5e86,_0x229da8);return;}_0x1968a7['on'](_0x1308ce[_0x9b09ff(0x19d)],_0x28709e=>{const _0x106ebb=_0x9b09ff;if(BINARY_BUSY_ERROR_CODES['includes'](_0x28709e[_0x106ebb(0x176)])){const _0x589e97=path[_0x106ebb(0x1d9)](_0x25f9a6,_0x4340b4);_0x1968a7[_0x106ebb(0x179)](),fs[_0x106ebb(0x1aa)](_0x589e97)?(logger[_0x106ebb(0x196)](_0x106ebb(0x185)+_0x28709e['message']),_0x392815[_0x106ebb(0x179)](),fs['unlink'](_0x127b18,_0xc3a174=>{const _0x11fe25=_0x106ebb;_0xc3a174&&logger[_0x11fe25(0x196)](_0x11fe25(0x147)+_0x127b18);}),_0x285674[_0x106ebb(0x160)](_0x20f1c7,_0x589e97)):(logger[_0x106ebb(0x196)](_0x106ebb(0x154)+_0x28709e['message']),fs[_0x106ebb(0x1cc)](_0x3ed770,()=>{}),_0x285674[_0x106ebb(0x13c)](_0xb5e86,_0x28709e));}else fs['unlink'](_0x3ed770,()=>{}),_0x285674[_0x106ebb(0x160)](_0xb5e86,_0x28709e);}),_0x392815[_0x9b09ff(0x1f3)](_0x38a2d4,function(_0x53ecdb,_0x306d78){const _0x46d0a2=_0x9b09ff,_0x3ff3ad={};_0x3ff3ad[_0x46d0a2(0x181)]=_0x5d9610['ttipG'];const _0x5c1a3a=_0x3ff3ad;if(_0x53ecdb){fs[_0x46d0a2(0x1cc)](_0x3ed770,()=>{}),_0x5d9610[_0x46d0a2(0x16f)](_0xb5e86,_0x53ecdb);return;}_0x306d78['on'](_0x5d9610['QulkP'],function(){const _0x82c239=_0x46d0a2;_0x1968a7[_0x82c239(0x1ca)](),_0x1968a7['on'](_0x5c1a3a[_0x82c239(0x181)],function(){const _0x2090ac=_0x82c239;_0x392815[_0x2090ac(0x1e2)]();});}),_0x306d78['pipe'](_0x1968a7);});}}),_0x392815['on'](_0x1308ce['ilCjM'],_0x120869=>{const _0x7c3e88=_0x63b332;_0x5d9610[_0x7c3e88(0x20d)](_0xb5e86,_0x120869);}),_0x392815[_0x63b332(0x1d3)](_0x1308ce[_0x63b332(0x219)],()=>{const _0x4118eb=_0x63b332,_0x389c58={'yAkfx':function(_0x4ccca0,_0x3f5456){const _0x4ef3f8=a72_0x40e9;return _0x5d9610[_0x4ef3f8(0x14d)](_0x4ccca0,_0x3f5456);},'QVWTt':_0x5d9610[_0x4118eb(0x1db)],'nptKG':function(_0x4cb1a9,_0xe5a8ec){const _0x459adb=_0x4118eb;return _0x5d9610[_0x459adb(0x20f)](_0x4cb1a9,_0xe5a8ec);},'OHYkO':function(_0x4e3aee,_0x297d59){const _0x4c17dc=_0x4118eb;return _0x5d9610[_0x4c17dc(0x18b)](_0x4e3aee,_0x297d59);},'UAQLZ':function(_0x4af178,_0x3b9f3f){return _0x5d9610['xxnLt'](_0x4af178,_0x3b9f3f);},'MTjbU':function(_0xc1e633,_0x17d856){const _0x27d677=_0x4118eb;return _0x5d9610[_0x27d677(0x1b9)](_0xc1e633,_0x17d856);}};fs[_0x4118eb(0x1cc)](_0x127b18,_0x2ca9e2=>{const _0x327259=_0x4118eb;_0x2ca9e2&&logger[_0x327259(0x196)](_0x327259(0x147)+_0x127b18);});const _0x8667cc=path[_0x4118eb(0x1d9)](_0x25f9a6,_0x2b3229+_0x4118eb(0x22d)+process['pid']),_0x5b01e6=path[_0x4118eb(0x1d9)](_0x25f9a6,_0x2b3229);fs[_0x4118eb(0x161)](_0x8667cc,_0x5d9610[_0x4118eb(0x1da)],function(_0x50e9e9){const _0x2a9ed8=_0x4118eb,_0x5bb2bd={'CVXwL':function(_0x31dc53,_0x1d10a7){const _0x2f842c=a72_0x40e9;return _0x389c58[_0x2f842c(0x149)](_0x31dc53,_0x1d10a7);},'aaUak':_0x389c58[_0x2a9ed8(0x1a2)],'DtUkt':function(_0x3e4dd0,_0x67622f){const _0x5bac4a=_0x2a9ed8;return _0x389c58[_0x5bac4a(0x164)](_0x3e4dd0,_0x67622f);},'kduRT':function(_0x141eed,_0x4bb38f){const _0x36c604=_0x2a9ed8;return _0x389c58[_0x36c604(0x1ee)](_0x141eed,_0x4bb38f);},'QVprr':function(_0x2b41d4,_0xf8206f){return _0x389c58['UAQLZ'](_0x2b41d4,_0xf8206f);}};if(_0x50e9e9){_0x392815[_0x2a9ed8(0x179)](),fs[_0x2a9ed8(0x1cc)](_0x8667cc,()=>{}),_0x389c58[_0x2a9ed8(0x18c)](_0xb5e86,_0x50e9e9);return;}fs['rename'](_0x8667cc,_0x5b01e6,function(_0x42fe44){const _0x3e148c=_0x2a9ed8;if(_0x42fe44){if(_0x5bb2bd[_0x3e148c(0x1d4)](_0x42fe44['code'],_0x5bb2bd['aaUak'])){_0x392815[_0x3e148c(0x179)](),fs[_0x3e148c(0x1cc)](_0x8667cc,()=>{}),_0x5bb2bd[_0x3e148c(0x1f5)](_0xb5e86,_0x42fe44);return;}logger['warn'](_0x3e148c(0x1de)+_0x42fe44[_0x3e148c(0x16e)]);try{fs[_0x3e148c(0x215)](_0x8667cc,_0x5b01e6);}catch(_0x5a3df4){_0x392815[_0x3e148c(0x179)](),fs[_0x3e148c(0x1cc)](_0x8667cc,()=>{}),_0x5bb2bd['kduRT'](_0xb5e86,_0x5a3df4);return;}fs[_0x3e148c(0x1cc)](_0x8667cc,_0x48ba7f=>{const _0xa36b85=_0x3e148c;_0x48ba7f&&logger[_0xa36b85(0x196)](_0xa36b85(0x16a)+_0x48ba7f[_0xa36b85(0x16e)]);});}_0x392815['close'](),_0x5bb2bd['QVprr'](_0x20f1c7,_0x5b01e6);});});});});});}static[a72_0x469c65(0x190)](){const _0x3bc991=a72_0x469c65;if(process[_0x3bc991(0x1bc)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL'])return JSON[_0x3bc991(0x14c)](process[_0x3bc991(0x1bc)][_0x3bc991(0x20b)]);return this[_0x3bc991(0x207)];}static[a72_0x469c65(0x187)](){const _0x4d7f77=a72_0x469c65;if(process[_0x4d7f77(0x1bc)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x4d7f77(0x14c)](process[_0x4d7f77(0x1bc)][_0x4d7f77(0x1a7)]);return this[_0x4d7f77(0x1a9)];}static[a72_0x469c65(0x1a3)](_0x3aca2a,_0x50b722){const _0x2e7c94=a72_0x469c65,_0x5a4b39={'cgrMs':_0x2e7c94(0x199),'qLEEz':function(_0x1fed78,_0x5de4ac){return _0x1fed78(_0x5de4ac);},'EDTiG':function(_0x555396,_0x5f2903){return _0x555396||_0x5f2903;}},_0x1ce417=_0x5a4b39['cgrMs']['split']('|');let _0x3a9332=0x0;while(!![]){switch(_0x1ce417[_0x3a9332++]){case'0':this[_0x2e7c94(0x1a9)]={'name':_0x50b722,'version':_0x5a4b39[_0x2e7c94(0x186)](getFrameworkVersion,_0x50b722)};continue;case'1':process[_0x2e7c94(0x1bc)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x2e7c94(0x153)](this[_0x2e7c94(0x207)]);continue;case'2':this['testFrameworkDetail']={'name':_0x3aca2a,'version':{[_0x3aca2a]:_0x5a4b39[_0x2e7c94(0x186)](getFrameworkVersion,_0x3aca2a)}};continue;case'3':process[_0x2e7c94(0x1bc)][_0x2e7c94(0x1a7)]=JSON['stringify'](this[_0x2e7c94(0x1a9)]);continue;case'4':_0x5a4b39[_0x2e7c94(0x1e8)](!_0x3aca2a,!_0x50b722)&&logger['debug'](_0x2e7c94(0x1fa)+_0x3aca2a+_0x2e7c94(0x1f2)+_0x50b722);continue;}break;}}static['getHookRegistryKey'](_0x37c143,_0x29e9b1){return _0x37c143+':'+_0x29e9b1;}static[a72_0x469c65(0x1b3)](){const _0x1cadd4=a72_0x469c65;return process[_0x1cadd4(0x1bf)]+':'+threadId;}static[a72_0x469c65(0x166)](_0x16584a){const _0x14655e=a72_0x469c65;if(_0x16584a[_0x14655e(0x19f)]&&_0x16584a[_0x14655e(0x19f)][_0x14655e(0x1e1)])return!![];return![];}static[a72_0x469c65(0x20e)](_0x72420b){const _0x58c975=a72_0x469c65;if(_0x72420b[_0x58c975(0x19f)]&&_0x72420b[_0x58c975(0x19f)][_0x58c975(0x1ae)])return!![];return![];}static[a72_0x469c65(0x162)](_0x8b2b6){const _0x577bce=a72_0x469c65,_0x3d65ea=new RegExp(TestFrameworkConstants[_0x577bce(0x216)]);return _0x3d65ea[_0x577bce(0x1af)](_0x8b2b6);}static['mergeObject'](_0x24dd1a,_0x5308c1){const _0x5a3a5d=a72_0x469c65,_0x1b079b={};_0x1b079b[_0x5a3a5d(0x17a)]=function(_0xc552c7,_0x3ec4b8){return _0xc552c7!==_0x3ec4b8;},_0x1b079b[_0x5a3a5d(0x1b1)]=function(_0x5bc60b,_0x494a3a){return _0x5bc60b===_0x494a3a;},_0x1b079b['fcYIq']='object';const _0x57a3e6=_0x1b079b;for(const [_0x5d2ae5,_0x556035]of Object[_0x5a3a5d(0x1eb)](_0x5308c1)){if(_0x57a3e6[_0x5a3a5d(0x17a)](_0x556035,null)&&_0x57a3e6[_0x5a3a5d(0x1b1)](typeof _0x556035,_0x57a3e6[_0x5a3a5d(0x158)])&&!Array[_0x5a3a5d(0x1a4)](_0x556035))_0x24dd1a[_0x5d2ae5]=this[_0x5a3a5d(0x1c1)](_0x24dd1a[_0x5d2ae5]||{},_0x556035);else Array['isArray'](_0x556035)?_0x24dd1a[_0x5d2ae5]=(_0x24dd1a[_0x5d2ae5]||[])['concat'](_0x556035):_0x24dd1a[_0x5d2ae5]=_0x556035;}return _0x24dd1a;}}module[a72_0x469c65(0x163)]=CLIUtils;
|
|
1
|
+
const a72_0x110a2c=a72_0x443b;(function(_0x1046ed,_0x1e6ec0){const _0x4249f8=a72_0x443b,_0x2d89f4=_0x1046ed();while(!![]){try{const _0x69f074=-parseInt(_0x4249f8(0xee))/0x1+-parseInt(_0x4249f8(0x6b))/0x2*(parseInt(_0x4249f8(0xed))/0x3)+-parseInt(_0x4249f8(0x71))/0x4+parseInt(_0x4249f8(0x8c))/0x5*(parseInt(_0x4249f8(0x13b))/0x6)+parseInt(_0x4249f8(0x104))/0x7+parseInt(_0x4249f8(0xfd))/0x8*(-parseInt(_0x4249f8(0xcc))/0x9)+parseInt(_0x4249f8(0x111))/0xa;if(_0x69f074===_0x1e6ec0)break;else _0x2d89f4['push'](_0x2d89f4['shift']());}catch(_0x5b1375){_0x2d89f4['push'](_0x2d89f4['shift']());}}}(a72_0x2db9,0x9658b));function a72_0x443b(_0x2f9471,_0xf58783){const _0x2db927=a72_0x2db9();return a72_0x443b=function(_0x443bd5,_0x13e930){_0x443bd5=_0x443bd5-0x67;let _0x3d6a29=_0x2db927[_0x443bd5];return _0x3d6a29;},a72_0x443b(_0x2f9471,_0xf58783);}const fs=require('fs'),os=require('os'),url=require(a72_0x110a2c(0x75)),path=require(a72_0x110a2c(0x82)),{exec}=require('child_process'),{https}=require(a72_0x110a2c(0x141)),yauzl=require(a72_0x110a2c(0x10f)),util=require('util'),{getFrameworkVersion}=require(a72_0x110a2c(0x73)),{threadId}=require('worker_threads'),PerformanceTester=require(a72_0x110a2c(0xf2)),{EVENTS:PerformanceEvents}=require(a72_0x110a2c(0x7a)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a72_0x110a2c(0xbe)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a72_0x110a2c(0x78)),{createClassLogger}=require(a72_0x110a2c(0x98)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require('./state/hookState.js'),TestFrameworkState=require(a72_0x110a2c(0xff)),AutomationFrameworkState=require(a72_0x110a2c(0x132)),TestFrameworkConstants=require(a72_0x110a2c(0xea)),logger=createClassLogger(a72_0x110a2c(0xa1)),{getBStackAPIUrl}=require('../utils/apiUtilityMethods.js');class CLIUtils{[a72_0x110a2c(0x9c)]={};[a72_0x110a2c(0x6e)]={};static['isDevelopmentEnv'](){const _0x42bbf2=a72_0x110a2c,_0xabaf16={};_0xabaf16['qIwAS']=function(_0x336ffe,_0x54d9ec){return _0x336ffe===_0x54d9ec;},_0xabaf16[_0x42bbf2(0x136)]='development';const _0x31de66=_0xabaf16;return _0x31de66[_0x42bbf2(0xa6)](process[_0x42bbf2(0x124)][_0x42bbf2(0xa5)],_0x31de66[_0x42bbf2(0x136)]);}static[a72_0x110a2c(0xac)](){const _0x473fc3=a72_0x110a2c,_0x4ce357={};return _0x4ce357['id']=process[_0x473fc3(0x124)][_0x473fc3(0xa5)],_0x4ce357['listen']=_0x473fc3(0x12b)+process[_0x473fc3(0x124)]['BROWSERSTACK_CLI_ENV']+'.sock',_0x4ce357;}static[a72_0x110a2c(0xa2)](){const _0x1f0341=a72_0x110a2c,_0x28f0e1={'HARgO':function(_0x19b63d,_0x22847f){return _0x19b63d(_0x22847f);},'lQMpu':_0x1f0341(0xc1)};return _0x28f0e1['HARgO'](require,_0x28f0e1['lQMpu'])[_0x1f0341(0x7c)];}static[a72_0x110a2c(0x69)](){const _0x10ffd7=a72_0x110a2c,_0x2a4b72={};_0x2a4b72['iwmBs']=_0x10ffd7(0xdd);const _0x46d175=_0x2a4b72;return _0x46d175['iwmBs'];}static async[a72_0x110a2c(0x85)](_0x4fa5a8){const _0x51df81=a72_0x110a2c,_0x1bdc5d={'OryLx':_0x51df81(0xd9),'vgixr':function(_0x5f5726,_0x1aebcc){return _0x5f5726(_0x1aebcc);},'vzorD':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x51df81(0xf7)](_0x1bdc5d['OryLx']);const _0x33d88d=process['env'][_0x51df81(0xd8)];if(!_0x1bdc5d[_0x51df81(0x92)](isNullOrEmpty,_0x33d88d))return logger['debug'](_0x51df81(0x103)+_0x33d88d),_0x33d88d;try{const _0x5e319e=this[_0x51df81(0xab)]();if(_0x1bdc5d[_0x51df81(0x92)](isNullOrEmpty,_0x5e319e))throw new Error(_0x1bdc5d[_0x51df81(0x13c)]);const _0x259af1=this[_0x51df81(0xbc)](_0x5e319e),_0x5c32be=await this[_0x51df81(0x89)](_0x259af1,_0x5e319e,_0x4fa5a8);return logger[_0x51df81(0xf7)](_0x51df81(0x8e)+_0x5c32be),_0x5c32be;}catch(_0x1dd2cd){logger[_0x51df81(0xf7)](_0x51df81(0xf4)+util['format'](_0x1dd2cd));}return null;}static async[a72_0x110a2c(0x89)](_0x1f3c83,_0x46428c,_0x1124bd){const _0x2787bd=a72_0x110a2c,_0x2b885e={'qnyyt':function(_0x298d86){return _0x298d86();},'eJJTv':function(_0x428008,_0x313832){return _0x428008(_0x313832);},'dUpVL':function(_0xb854bc,_0x20d66f,_0x522902){return _0xb854bc(_0x20d66f,_0x522902);},'OxzAR':'data','tXZuF':_0x2787bd(0x75)};PerformanceTester[_0x2787bd(0x13d)](PerformanceEvents[_0x2787bd(0xf5)]),logger[_0x2787bd(0x7e)](_0x2787bd(0x7b)+_0x1f3c83);const _0x15228c=_0x2b885e['qnyyt'](getHostInfo),_0x48ca21={'sdk_version':CLIUtils[_0x2787bd(0xa2)](),'os':_0x15228c[_0x2787bd(0x84)],'os_arch':_0x15228c[_0x2787bd(0x142)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x2b885e[_0x2787bd(0x6c)](isNullOrEmpty,_0x1f3c83)&&(_0x48ca21[_0x2787bd(0xb8)]=await this[_0x2787bd(0xf9)](_0x1f3c83+_0x2787bd(0x99)));const _0x304bdb=await this['requestToUpdateCLI'](_0x48ca21,_0x1124bd);process[_0x2787bd(0x124)]['BROWSERSTACK_BINARY_URL']&&(logger[_0x2787bd(0x7e)](_0x2787bd(0xc5)+process[_0x2787bd(0x124)]['BROWSERSTACK_BINARY_URL']),_0x304bdb[_0x2787bd(0x81)][_0x2787bd(0x75)]=process[_0x2787bd(0x124)][_0x2787bd(0xe2)]);if(_0x2b885e[_0x2787bd(0xc6)](nestedKeyValue,_0x304bdb,[_0x2b885e[_0x2787bd(0x97)],_0x2b885e[_0x2787bd(0xcb)]])){logger[_0x2787bd(0xf7)](_0x2787bd(0xc0)+_0x48ca21[_0x2787bd(0xb8)]);if(!_0x2b885e[_0x2787bd(0x6c)](isNullOrEmpty,_0x1f3c83)&&this[_0x2787bd(0xd2)](_0x1f3c83))return logger[_0x2787bd(0xf0)]('Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20'+_0x1f3c83),PerformanceTester[_0x2787bd(0xeb)](PerformanceEvents[_0x2787bd(0xf5)]),_0x1f3c83;const _0x57ef28=await this[_0x2787bd(0x70)](_0x2b885e[_0x2787bd(0xc6)](nestedKeyValue,_0x304bdb,[_0x2b885e[_0x2787bd(0x97)],_0x2b885e[_0x2787bd(0xcb)]]),_0x46428c);return PerformanceTester[_0x2787bd(0xeb)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x57ef28;}return PerformanceTester[_0x2787bd(0xeb)](PerformanceEvents[_0x2787bd(0xf5)]),_0x1f3c83;}static[a72_0x110a2c(0xab)](){const _0x309880=a72_0x110a2c,_0x4fe449={'pfctZ':function(_0x49614e,_0x357d2c){return _0x49614e(_0x357d2c);},'yHpvJ':_0x309880(0x76),'vIGLR':_0x309880(0xb9)},_0x5f1d23=this[_0x309880(0x67)]();try{if(_0x4fe449[_0x309880(0xbf)](isNullOrEmpty,_0x5f1d23))throw new Error(_0x4fe449['yHpvJ']);const _0x1b608e=path[_0x309880(0x8f)](_0x5f1d23,_0x4fe449['vIGLR']);return!fs[_0x309880(0x10d)](_0x1b608e)&&_0x4fe449[_0x309880(0xbf)](createDir,_0x1b608e),_0x1b608e;}catch(_0x65d420){logger[_0x309880(0xf7)](_0x309880(0x123)+util['format'](_0x65d420));}}static[a72_0x110a2c(0x67)](){const _0x2e8fb8=a72_0x110a2c,_0x2258de={'TLqUV':_0x2e8fb8(0x8d),'uyLjw':function(_0x3b75ef,_0x957279){return _0x3b75ef(_0x957279);},'YoEjh':function(_0x2304e3,_0x398dc9){return _0x2304e3(_0x398dc9);},'oPITM':function(_0x9b8c05,_0x5ea32b){return _0x9b8c05(_0x5ea32b);},'urQGB':function(_0x25962b,_0x2153b2){return _0x25962b(_0x2153b2);},'BdeJL':function(_0x50ff36,_0x4c20ea){return _0x50ff36(_0x4c20ea);}},_0x55d38f=[process[_0x2e8fb8(0x124)][_0x2e8fb8(0x90)],path[_0x2e8fb8(0x8f)](os[_0x2e8fb8(0xb3)](),_0x2258de[_0x2e8fb8(0x110)]),path[_0x2e8fb8(0x8f)](os['tmpdir'](),_0x2258de[_0x2e8fb8(0x110)])];for(const _0xae12a4 of _0x55d38f){if(_0x2258de[_0x2e8fb8(0x135)](isNullOrEmpty,_0xae12a4))continue;try{if(fs['existsSync'](_0xae12a4)){logger[_0x2e8fb8(0xf7)](_0x2e8fb8(0x12d)+_0xae12a4+_0x2e8fb8(0x125));if(!_0x2258de[_0x2e8fb8(0x10c)](isModifiable,_0xae12a4)){logger['debug'](_0x2e8fb8(0x72)+_0xae12a4);const _0x2b1820=_0x2258de[_0x2e8fb8(0x88)](setReadWriteExecuteAccess,_0xae12a4);if(!_0x2258de['urQGB'](isTrue,_0x2b1820)){logger[_0x2e8fb8(0xf0)](_0x2e8fb8(0xc3)+_0xae12a4);continue;}}}else{logger[_0x2e8fb8(0xf7)](_0x2e8fb8(0xe5)+_0xae12a4),_0x2258de[_0x2e8fb8(0x12c)](createDir,_0xae12a4),logger[_0x2e8fb8(0xf7)](_0x2e8fb8(0x72)+_0xae12a4);const _0x1daede=_0x2258de[_0x2e8fb8(0x135)](setReadWriteExecuteAccess,_0xae12a4);!_0x2258de[_0x2e8fb8(0x135)](isTrue,_0x1daede)&&logger[_0x2e8fb8(0xf0)](_0x2e8fb8(0xc3)+_0xae12a4);}return _0xae12a4;}catch(_0x5108f5){logger[_0x2e8fb8(0xde)](_0x2e8fb8(0x86)+util[_0x2e8fb8(0xcf)](_0x5108f5));}}return null;}static[a72_0x110a2c(0xbc)](_0x584dee){const _0x74d210=a72_0x110a2c,_0x5ba4a9={};_0x5ba4a9[_0x74d210(0xd6)]=function(_0x32698e,_0x1dcfba){return _0x32698e>_0x1dcfba;},_0x5ba4a9[_0x74d210(0x11f)]=function(_0x185175,_0x51c6b6){return _0x185175>_0x51c6b6;};const _0x5805d1=_0x5ba4a9;try{if(!fs[_0x74d210(0x10d)](_0x584dee)||!fs[_0x74d210(0x12a)](_0x584dee)[_0x74d210(0x112)]())return'';const _0x322957=fs[_0x74d210(0x13e)](_0x584dee)[_0x74d210(0xec)](_0x11df2b=>path['join'](_0x584dee,_0x11df2b))['filter'](_0x36c96c=>fs[_0x74d210(0x12a)](_0x36c96c)[_0x74d210(0xad)]()&&path[_0x74d210(0xa4)](_0x36c96c)[_0x74d210(0xaf)](_0x74d210(0x11d)));if(_0x5805d1[_0x74d210(0x11f)](_0x322957[_0x74d210(0x131)],0x0)){const _0x2137a3=_0x322957['map'](_0x5d1390=>({'filePath':_0x5d1390,'mtime':fs['statSync'](_0x5d1390)[_0x74d210(0xfa)]}))[_0x74d210(0x9e)]((_0x4541b8,_0x3d63d1)=>{const _0x116ae7=_0x74d210;if(!_0x4541b8||!_0x4541b8['mtime'])return _0x3d63d1;if(_0x5805d1[_0x116ae7(0xd6)](_0x3d63d1['mtime'],_0x4541b8[_0x116ae7(0xfa)]))return _0x3d63d1;return _0x4541b8;},{});return _0x2137a3?_0x2137a3[_0x74d210(0xc4)]:'';}return'';}catch(_0x3cb00a){return logger[_0x74d210(0xde)](_0x74d210(0x6d)+util[_0x74d210(0xcf)](_0x3cb00a)),'';}}static [a72_0x110a2c(0x10e)]=async(_0x3b162e,_0x10f9fe)=>{const _0x5112cb=a72_0x110a2c,_0x17e02f={'hYoUD':function(_0x2530e4,_0x19394a,_0xea19d6,_0x1c550e,_0x4681a9){return _0x2530e4(_0x19394a,_0xea19d6,_0x1c550e,_0x4681a9);},'wdYbf':_0x5112cb(0xd7)},_0x28551b={};_0x28551b['qs']=_0x3b162e;const _0x2ad99e=await _0x17e02f['hYoUD'](nodeRequest,_0x17e02f['wdYbf'],UPDATED_CLI_ENDPOINT,_0x28551b,_0x10f9fe);return logger['debug'](_0x5112cb(0x12e)+JSON[_0x5112cb(0xd3)](_0x2ad99e)),_0x2ad99e;};static['isBinaryBusy'](_0x57e190){const _0x3ea462=a72_0x110a2c;try{const _0x2a7165=fs[_0x3ea462(0x121)](_0x57e190,'r+');return fs['closeSync'](_0x2a7165),![];}catch(_0x2c915a){if(BINARY_BUSY_ERROR_CODES[_0x3ea462(0x127)](_0x2c915a['code']))return logger[_0x3ea462(0xf7)](_0x3ea462(0x134)+_0x57e190),!![];return logger['debug'](_0x3ea462(0xda)+_0x2c915a[_0x3ea462(0xb5)]),![];}}static[a72_0x110a2c(0xf9)](_0x3dd4d4,_0x25c2db=''){const _0x21fc1d=a72_0x110a2c,_0x20e079={'QntMz':_0x21fc1d(0x7c),'mpazI':function(_0x1f6f21,_0x4ca2e7){return _0x1f6f21(_0x4ca2e7);},'fcboC':function(_0x491fe7,_0x5e4fa9){return _0x491fe7(_0x5e4fa9);},'DmcQE':'SHELL_EXECUTE_ERROR','qjRfh':function(_0x21d177,_0x3b2ecc){return _0x21d177(_0x3b2ecc);},'QsnZz':function(_0x2dc537,_0x5bddf1){return _0x2dc537(_0x5bddf1);},'uycFm':function(_0x3553e3,_0x3cd238,_0x33ea9f,_0x24ff28){return _0x3553e3(_0x3cd238,_0x33ea9f,_0x24ff28);},'RNNzJ':'error'};return new Promise((_0x2131b3,_0x2492ce)=>{const _0x36be5d=_0x21fc1d,_0x3a9945={};_0x3a9945[_0x36be5d(0xb7)]=_0x25c2db,_0x3a9945[_0x36be5d(0x12f)]=0x1388;const _0x36f9be=_0x20e079[_0x36be5d(0x143)](exec,_0x3dd4d4,_0x3a9945,(_0x2369f4,_0x55e173,_0x220c67)=>{const _0xa7029e=_0x36be5d;if(_0x2369f4){if(_0x3dd4d4[_0xa7029e(0x127)](_0x20e079[_0xa7029e(0x130)])&&(_0x55e173['trim']()||_0x220c67[_0xa7029e(0xaa)]())){const _0x434726=_0x55e173['trim']()||_0x220c67[_0xa7029e(0xaa)]();logger[_0xa7029e(0xf7)](_0xa7029e(0xb6)+_0x434726+'\x22'),_0x20e079[_0xa7029e(0x120)](_0x2131b3,_0x434726);}else _0x20e079[_0xa7029e(0x113)](_0x2131b3,_0x220c67[_0xa7029e(0xaa)]()||_0x20e079['DmcQE']);}else logger[_0xa7029e(0xf7)](_0xa7029e(0x13a)+_0x55e173[_0xa7029e(0xaa)]()+'\x22'),_0x20e079['qjRfh'](_0x2131b3,_0x55e173[_0xa7029e(0xaa)]());});_0x36f9be['on'](_0x20e079[_0x36be5d(0xe9)],()=>{const _0x2b459a=_0x36be5d;_0x20e079['QsnZz'](_0x2131b3,_0x20e079[_0x2b459a(0x7f)]);});});}static [a72_0x110a2c(0x70)]=async(_0x246ccf,_0x2c3e04)=>{const _0x494c1b=a72_0x110a2c,_0x2b1638={'lhaFk':_0x494c1b(0xf6),'DpGVs':function(_0x6c2752,_0x35d77f){return _0x6c2752(_0x35d77f);},'qZiru':_0x494c1b(0xa3),'MucKW':function(_0x2f29be,_0x5385a6){return _0x2f29be(_0x5385a6);},'bPraP':_0x494c1b(0xde),'RzHvr':function(_0x1cdceb,_0x320e86){return _0x1cdceb(_0x320e86);}};PerformanceTester[_0x494c1b(0x13d)](PerformanceEvents[_0x494c1b(0x10a)]),logger['debug'](_0x494c1b(0x101)+_0x246ccf);try{const _0x28cf23=url[_0x494c1b(0xb4)](_0x246ccf),_0x50d41c=path[_0x494c1b(0x8f)](_0x2c3e04,_0x494c1b(0xe8)+process['pid']+_0x494c1b(0x107)),_0x5bd3eb=fs['createWriteStream'](_0x50d41c);return new Promise((_0x1ce455,_0x207c10)=>{const _0x34ef58=_0x494c1b,_0x1df89e={'VdkzD':function(_0x534f7b,_0x3fd217){return _0x2b1638['RzHvr'](_0x534f7b,_0x3fd217);},'hRvOG':function(_0x3e3722,_0x162173){return _0x2b1638['MucKW'](_0x3e3722,_0x162173);}};https[_0x34ef58(0x100)](_0x28cf23,function(_0x1172aa){const _0x6c168=_0x34ef58,_0x3b699b={'WeZiG':_0x2b1638[_0x6c168(0xa7)],'KWFbS':function(_0x40e339,_0x59d8aa){const _0x2d9d4d=_0x6c168;return _0x2b1638[_0x2d9d4d(0xdb)](_0x40e339,_0x59d8aa);},'RcHyA':_0x2b1638[_0x6c168(0x114)],'IMQHa':function(_0x4194e0,_0x48ce80){const _0x52b59d=_0x6c168;return _0x2b1638[_0x52b59d(0x128)](_0x4194e0,_0x48ce80);}},_0x4e12e1=null;_0x1172aa['pipe'](_0x5bd3eb),_0x1172aa['on'](_0x2b1638[_0x6c168(0x140)],function(_0x218a1c){const _0x13ec04=_0x6c168;logger[_0x13ec04(0xde)](util[_0x13ec04(0xcf)](_0x3b699b['WeZiG'],_0x218a1c)),PerformanceTester[_0x13ec04(0xeb)](PerformanceEvents[_0x13ec04(0x10a)],![],util['format'](_0x218a1c)),_0x3b699b[_0x13ec04(0xd0)](_0x207c10,_0x218a1c);}),_0x5bd3eb['on'](_0x2b1638[_0x6c168(0x140)],function(_0x1eac3a){const _0x1f19b2=_0x6c168;logger[_0x1f19b2(0xde)](util[_0x1f19b2(0xcf)](_0x3b699b['RcHyA'],_0x1eac3a)),PerformanceTester[_0x1f19b2(0xeb)](PerformanceEvents[_0x1f19b2(0x10a)],![],util[_0x1f19b2(0xcf)](_0x1eac3a)),_0x3b699b['IMQHa'](_0x207c10,_0x1eac3a);}),CLIUtils['downloadFileStream'](_0x5bd3eb,_0x4e12e1,_0x50d41c,_0x2c3e04,_0x52f02c=>{const _0x238419=_0x6c168;PerformanceTester['end'](PerformanceEvents[_0x238419(0x10a)]),_0x1df89e[_0x238419(0x94)](_0x1ce455,_0x52f02c);},_0x2342d0=>{const _0x2f1c9e=_0x6c168;PerformanceTester[_0x2f1c9e(0xeb)](PerformanceEvents[_0x2f1c9e(0x10a)],![],util['format'](_0x2342d0)),_0x1df89e[_0x2f1c9e(0x91)](_0x207c10,_0x2342d0);});})['on'](_0x2b1638['bPraP'],function(_0x44b035){const _0x2f6dee=_0x34ef58;logger['error'](_0x2f6dee(0x11a)+util[_0x2f6dee(0xcf)](_0x44b035)),PerformanceTester[_0x2f6dee(0xeb)](PerformanceEvents[_0x2f6dee(0x10a)],![],util[_0x2f6dee(0xcf)](_0x44b035)),_0x2b1638[_0x2f6dee(0xf1)](_0x207c10,_0x44b035);});});}catch(_0x4c5aec){PerformanceTester[_0x494c1b(0xeb)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x494c1b(0xcf)](_0x4c5aec)),logger[_0x494c1b(0xf7)]('Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20'+util[_0x494c1b(0xcf)](_0x4c5aec));}};static[a72_0x110a2c(0xc7)](_0x496a33,_0x212be0,_0x3c5d1e,_0xa4f879,_0x4fe41e,_0x11b17f){const _0x3c6fab=a72_0x110a2c,_0x448219={'svdqF':function(_0x32b751,_0x3770f7){return _0x32b751(_0x3770f7);},'fAGwP':_0x3c6fab(0x74),'cVvbn':function(_0xc42b77,_0x3391c2){return _0xc42b77(_0x3391c2);},'iRyKX':'end','ibqxE':function(_0x115a73,_0x2816d8){return _0x115a73!==_0x2816d8;},'UTTyd':function(_0x2ecae9,_0x54ee48){return _0x2ecae9(_0x54ee48);},'BghzX':_0x3c6fab(0xde),'zYVxv':_0x3c6fab(0x79),'redOm':function(_0x40f817,_0x40f53b){return _0x40f817(_0x40f53b);},'BStEn':function(_0x46bba4,_0x397c96){return _0x46bba4(_0x397c96);},'bQwUm':'entry','FfWVT':_0x3c6fab(0x129)};_0x496a33['on'](_0x448219[_0x3c6fab(0xf3)],function(){const _0x2022aa=_0x3c6fab,_0x2d3e93={};_0x2d3e93[_0x2022aa(0xa0)]=_0x448219[_0x2022aa(0xb1)];const _0x560d5e=_0x2d3e93,_0x2b020a={};_0x2b020a[_0x2022aa(0xae)]=!![],yauzl['open'](_0x3c5d1e,_0x2b020a,function(_0xb17fa6,_0x32c403){const _0x4bc3dd=_0x2022aa,_0x1ab8f3={'Ssqag':function(_0x3bab9c,_0x29d74b){const _0x1916c5=a72_0x443b;return _0x448219[_0x1916c5(0x105)](_0x3bab9c,_0x29d74b);},'WSNBS':_0x448219[_0x4bc3dd(0xf3)],'lqCxX':function(_0x56f05e,_0x32e87e){const _0x21cf8b=_0x4bc3dd;return _0x448219[_0x21cf8b(0x10b)](_0x56f05e,_0x32e87e);},'KiwUf':_0x448219[_0x4bc3dd(0x8a)],'Hdxln':function(_0x32caf7,_0xf6ed90){const _0x344faf=_0x4bc3dd;return _0x448219[_0x344faf(0x115)](_0x32caf7,_0xf6ed90);},'DGcMc':function(_0x35dc30,_0x53bf9e){const _0xa43cf7=_0x4bc3dd;return _0x448219[_0xa43cf7(0xe7)](_0x35dc30,_0x53bf9e);},'OTYiM':function(_0x4505be,_0xbcba6c){const _0x193ce2=_0x4bc3dd;return _0x448219[_0x193ce2(0xe7)](_0x4505be,_0xbcba6c);},'aBQNk':_0x448219[_0x4bc3dd(0xe0)],'IWATA':_0x448219[_0x4bc3dd(0xbb)],'hDJOt':function(_0x1560f0,_0x3283c3){const _0x426132=_0x4bc3dd;return _0x448219[_0x426132(0x96)](_0x1560f0,_0x3283c3);}};if(_0xb17fa6){_0x448219[_0x4bc3dd(0xdf)](_0x11b17f,_0xb17fa6);return;}_0x32c403[_0x4bc3dd(0x117)](),_0x32c403['on'](_0x448219['bQwUm'],_0x3c50b2=>{const _0x3d941d=_0x4bc3dd,_0x29da89={'ornoU':_0x1ab8f3[_0x3d941d(0xc9)],'JrXNz':function(_0x224b62,_0x4b0bfb){const _0x200635=_0x3d941d;return _0x1ab8f3[_0x200635(0x6a)](_0x224b62,_0x4b0bfb);},'nLidg':_0x1ab8f3[_0x3d941d(0xb2)]};if(/\/$/[_0x3d941d(0x9f)](_0x3c50b2['fileName'])){_0x32c403[_0x3d941d(0x117)]();return;}!_0x212be0&&(_0x212be0=_0x3c50b2['fileName']);if(_0x1ab8f3[_0x3d941d(0x7d)](_0x3c50b2[_0x3d941d(0x11c)],_0x212be0))_0x32c403[_0x3d941d(0x117)]();else{const _0xf6787f=_0x3c50b2[_0x3d941d(0x11c)],_0x50d69b=path[_0x3d941d(0x8f)](_0xa4f879,_0xf6787f+_0x3d941d(0xfe)+process[_0x3d941d(0x68)]);let _0x57d73c;try{_0x57d73c=fs['createWriteStream'](_0x50d69b);}catch(_0x1a6199){if(BINARY_BUSY_ERROR_CODES[_0x3d941d(0x127)](_0x1a6199[_0x3d941d(0xd1)])){const _0xad2d6a=path['join'](_0xa4f879,_0xf6787f);if(fs[_0x3d941d(0x10d)](_0xad2d6a)){logger['warn'](_0x3d941d(0x9a)+_0xf6787f),fs[_0x3d941d(0x9b)](_0x3c5d1e,_0x1cb087=>{const _0x1e730b=_0x3d941d;_0x1cb087&&logger['warn'](_0x1e730b(0xfc)+_0x3c5d1e);}),_0x1ab8f3[_0x3d941d(0x108)](_0x4fe41e,_0xad2d6a);return;}logger[_0x3d941d(0xf0)](_0x3d941d(0xce)+_0xf6787f);}_0x1ab8f3['OTYiM'](_0x11b17f,_0x1a6199);return;}_0x57d73c['on'](_0x1ab8f3[_0x3d941d(0xc8)],_0xf6a6c0=>{const _0xc52106=_0x3d941d;if(BINARY_BUSY_ERROR_CODES[_0xc52106(0x127)](_0xf6a6c0['code'])){const _0x26b20e=path[_0xc52106(0x8f)](_0xa4f879,_0xf6787f);_0x57d73c[_0xc52106(0x74)](),fs['existsSync'](_0x26b20e)?(logger[_0xc52106(0xf0)](_0xc52106(0xdc)+_0xf6a6c0[_0xc52106(0xb5)]),_0x32c403[_0xc52106(0x74)](),fs[_0xc52106(0x9b)](_0x3c5d1e,_0x489d9c=>{const _0x44cf81=_0xc52106;_0x489d9c&&logger['warn'](_0x44cf81(0xfc)+_0x3c5d1e);}),_0x1ab8f3['Ssqag'](_0x4fe41e,_0x26b20e)):(logger[_0xc52106(0xf0)](_0xc52106(0xa9)+_0xf6a6c0['message']),fs[_0xc52106(0x9b)](_0x50d69b,()=>{}),_0x1ab8f3['Ssqag'](_0x11b17f,_0xf6a6c0));}else fs[_0xc52106(0x9b)](_0x50d69b,()=>{}),_0x1ab8f3[_0xc52106(0xc2)](_0x11b17f,_0xf6a6c0);}),_0x32c403[_0x3d941d(0xe3)](_0x3c50b2,function(_0x447f75,_0xd833e9){const _0x1b47d9=_0x3d941d;if(_0x447f75){fs['unlink'](_0x50d69b,()=>{}),_0x29da89['JrXNz'](_0x11b17f,_0x447f75);return;}_0xd833e9['on'](_0x29da89[_0x1b47d9(0x13f)],function(){const _0x3d8183=_0x1b47d9;_0x57d73c[_0x3d8183(0xeb)](),_0x57d73c['on'](_0x29da89[_0x3d8183(0x6f)],function(){_0x32c403['readEntry']();});}),_0xd833e9[_0x1b47d9(0xe4)](_0x57d73c);});}}),_0x32c403['on'](_0x448219[_0x4bc3dd(0xe0)],_0x4aa280=>{const _0x2e5f4e=_0x4bc3dd;_0x1ab8f3[_0x2e5f4e(0x93)](_0x11b17f,_0x4aa280);}),_0x32c403[_0x4bc3dd(0xba)](_0x448219[_0x4bc3dd(0x8a)],()=>{const _0x181958=_0x4bc3dd;fs[_0x181958(0x9b)](_0x3c5d1e,_0x5be544=>{const _0x5050d8=_0x181958;_0x5be544&&logger[_0x5050d8(0xf0)](_0x5050d8(0xfc)+_0x3c5d1e);});const _0x36f95e=path[_0x181958(0x8f)](_0xa4f879,_0x212be0+'.tmp.'+process[_0x181958(0x68)]),_0x4d62e9=path[_0x181958(0x8f)](_0xa4f879,_0x212be0);fs[_0x181958(0x116)](_0x36f95e,_0x560d5e['nhozT'],function(_0x568fae){const _0x4454c=_0x181958,_0x4b1ecd={'HJNHs':function(_0x2fa042,_0x5f4fef){return _0x1ab8f3['Hdxln'](_0x2fa042,_0x5f4fef);},'EGanY':_0x1ab8f3[_0x4454c(0xb0)],'KVjEx':function(_0x39b71e,_0x1e6137){const _0x532d22=_0x4454c;return _0x1ab8f3[_0x532d22(0x126)](_0x39b71e,_0x1e6137);},'xDmhR':function(_0x5e91c9,_0x24d870){const _0x3bf353=_0x4454c;return _0x1ab8f3[_0x3bf353(0x93)](_0x5e91c9,_0x24d870);},'GNzln':function(_0x3b83ce,_0x167a8d){const _0x12e778=_0x4454c;return _0x1ab8f3[_0x12e778(0x108)](_0x3b83ce,_0x167a8d);}};if(_0x568fae){_0x32c403[_0x4454c(0x74)](),fs[_0x4454c(0x9b)](_0x36f95e,()=>{}),_0x1ab8f3[_0x4454c(0x126)](_0x11b17f,_0x568fae);return;}fs[_0x4454c(0x80)](_0x36f95e,_0x4d62e9,function(_0x533924){const _0x4828eb=_0x4454c;if(_0x533924){if(_0x4b1ecd['HJNHs'](_0x533924[_0x4828eb(0xd1)],_0x4b1ecd[_0x4828eb(0x137)])){_0x32c403['close'](),fs['unlink'](_0x36f95e,()=>{}),_0x4b1ecd[_0x4828eb(0xd4)](_0x11b17f,_0x533924);return;}logger['warn']('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x533924[_0x4828eb(0xb5)]);try{fs[_0x4828eb(0x11e)](_0x36f95e,_0x4d62e9);}catch(_0x116149){_0x32c403[_0x4828eb(0x74)](),fs['unlink'](_0x36f95e,()=>{}),_0x4b1ecd[_0x4828eb(0x138)](_0x11b17f,_0x116149);return;}fs[_0x4828eb(0x9b)](_0x36f95e,_0x4a361f=>{const _0x59fc0d=_0x4828eb;_0x4a361f&&logger[_0x59fc0d(0xf0)](_0x59fc0d(0x11b)+_0x4a361f[_0x59fc0d(0xb5)]);});}_0x32c403[_0x4828eb(0x74)](),_0x4b1ecd['GNzln'](_0x4fe41e,_0x4d62e9);});});});});});}static[a72_0x110a2c(0x119)](){const _0x26b6cc=a72_0x110a2c;if(process['env'][_0x26b6cc(0x9d)])return JSON[_0x26b6cc(0xb4)](process[_0x26b6cc(0x124)][_0x26b6cc(0x9d)]);return this[_0x26b6cc(0x6e)];}static['getAutomationFrameworkDetail'](){const _0x21e05a=a72_0x110a2c;if(process[_0x21e05a(0x124)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x21e05a(0xb4)](process[_0x21e05a(0x124)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this['automationFrameworkDetail'];}static['setFrameworkDetail'](_0x4f8c1f,_0x21e078){const _0x23ecb2=a72_0x110a2c,_0x320b4f={'HvQvt':_0x23ecb2(0xbd),'BDPxr':function(_0x2efdf8,_0x1c0476){return _0x2efdf8(_0x1c0476);},'sbyji':function(_0x34f594,_0x500c71){return _0x34f594||_0x500c71;},'Datze':function(_0x36f28c,_0x541849){return _0x36f28c(_0x541849);}},_0x5daa70=_0x320b4f[_0x23ecb2(0xfb)]['split']('|');let _0x230866=0x0;while(!![]){switch(_0x5daa70[_0x230866++]){case'0':this[_0x23ecb2(0x9c)]={'name':_0x21e078,'version':_0x320b4f[_0x23ecb2(0x139)](getFrameworkVersion,_0x21e078)};continue;case'1':_0x320b4f[_0x23ecb2(0x8b)](!_0x4f8c1f,!_0x21e078)&&logger['debug'](_0x23ecb2(0xef)+_0x4f8c1f+_0x23ecb2(0x109)+_0x21e078);continue;case'2':process[_0x23ecb2(0x124)][_0x23ecb2(0x9d)]=JSON[_0x23ecb2(0xd3)](this[_0x23ecb2(0x6e)]);continue;case'3':process['env'][_0x23ecb2(0x87)]=JSON[_0x23ecb2(0xd3)](this[_0x23ecb2(0x9c)]);continue;case'4':this[_0x23ecb2(0x6e)]={'name':_0x4f8c1f,'version':{[_0x4f8c1f]:_0x320b4f[_0x23ecb2(0x106)](getFrameworkVersion,_0x4f8c1f)}};continue;}break;}}static['getHookRegistryKey'](_0x1d514f,_0x173f55){return _0x1d514f+':'+_0x173f55;}static[a72_0x110a2c(0x83)](){return process['pid']+':'+threadId;}static[a72_0x110a2c(0xf8)](_0x4bd1ad){const _0x44a0ce=a72_0x110a2c;if(_0x4bd1ad[_0x44a0ce(0xe6)]&&_0x4bd1ad[_0x44a0ce(0xe6)][_0x44a0ce(0x102)])return!![];return![];}static[a72_0x110a2c(0xca)](_0x4788c1){const _0x440551=a72_0x110a2c;if(_0x4788c1[_0x440551(0xe6)]&&_0x4788c1[_0x440551(0xe6)]['skipSessionStatus'])return!![];return![];}static['matchHookRegex'](_0x5ae14c){const _0x2e8ea4=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x2e8ea4['test'](_0x5ae14c);}static[a72_0x110a2c(0x118)](_0x4c1a66,_0x47af71){const _0x5dc504=a72_0x110a2c,_0xde4b4b={};_0xde4b4b[_0x5dc504(0xd5)]=function(_0xc356fb,_0x23909b){return _0xc356fb!==_0x23909b;},_0xde4b4b[_0x5dc504(0x122)]=function(_0x4cdeca,_0x42497c){return _0x4cdeca===_0x42497c;},_0xde4b4b['JoKog']=_0x5dc504(0x77);const _0x578459=_0xde4b4b;for(const [_0x260bc5,_0x534582]of Object[_0x5dc504(0xcd)](_0x47af71)){if(_0x578459[_0x5dc504(0xd5)](_0x534582,null)&&_0x578459[_0x5dc504(0x122)](typeof _0x534582,_0x578459[_0x5dc504(0x95)])&&!Array[_0x5dc504(0xa8)](_0x534582))_0x4c1a66[_0x260bc5]=this[_0x5dc504(0x118)](_0x4c1a66[_0x260bc5]||{},_0x534582);else Array['isArray'](_0x534582)?_0x4c1a66[_0x260bc5]=(_0x4c1a66[_0x260bc5]||[])[_0x5dc504(0x133)](_0x534582):_0x4c1a66[_0x260bc5]=_0x534582;}return _0x4c1a66;}}module[a72_0x110a2c(0xe1)]=CLIUtils;function a72_0x2db9(){const _0x82bced=['yauzl','TLqUV','19069210OgnHTo','isDirectory','fcboC','qZiru','ibqxE','chmod','readEntry','mergeObject','getTestFrameworkDetail','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','fileName','binary-','copyFileSync','gQMRv','mpazI','openSync','cRnEy','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','env','\x20already\x20exists','hDJOt','includes','MucKW','0755','statSync','unix:/tmp/sdk-platform-','BdeJL','Folder\x20','response\x20','timeout','QntMz','length','./state/automationFrameworkState.js','concat','Binary\x20is\x20busy:\x20','uyLjw','fLNmr','EGanY','xDmhR','BDPxr','Resolving\x20with\x20stdout:\x20\x22','6TkDaRK','vzorD','start','readdirSync','nLidg','bPraP','follow-redirects','arch','uycFm','getWritableDir','pid','getSdkLanguage','lqCxX','1680880YrjOpY','eJJTv','Error\x20while\x20reading\x20CLI\x20path:\x20','testFrameworkDetail','ornoU','downloadLatestBinary','1157648AuliBF','Setting\x20required\x20permissions\x20to\x20','../../helpers/test-observability/utils.js','close','url','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','object','../utils/constants','EXDEV','../../helpers/performance/constants','Current\x20CLI\x20Path\x20Found:\x20','version','Hdxln','info','DmcQE','rename','data','path','getCurrentInstanceName','platform','setupCliPath','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','oPITM','checkAndUpdateCli','iRyKX','sbyji','4474085LtZelu','.browserstack','Resolved\x20binary\x20path:\x20','join','BROWSERSTACK_FILES_DIR','hRvOG','vgixr','OTYiM','VdkzD','JoKog','redOm','OxzAR','../../helpers/classLogger.js','\x20version','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','unlink','automationFrameworkDetail','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','reduce','test','nhozT','CLIUtils','getSdkVersion','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','basename','BROWSERSTACK_CLI_ENV','qIwAS','lhaFk','isArray','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','trim','getCliDir','getCLIParamsForDevEnv','isFile','lazyEntries','startsWith','IWATA','FfWVT','KiwUf','homedir','parse','message','CLI\x20version\x20found\x20despite\x20error:\x20\x22','cwd','cli_version','cli','once','zYVxv','getExistingCliPath','1|4|0|3|2','../../helpers/helper','pfctZ','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','../../../package.json','Ssqag','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','filePath','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','dUpVL','downloadFileStream','aBQNk','WSNBS','shouldSkipSessionStatus','tXZuF','9qqCgoV','entries','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','format','KWFbS','code','isBinaryBusy','stringify','KVjEx','jGDyn','movay','GET','SDK_CLI_BIN_PATH','Configuring\x20Cli\x20path.','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','DpGVs','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','node','error','BStEn','BghzX','exports','BROWSERSTACK_BINARY_URL','openReadStream','pipe','Folder\x20does\x20not\x20exist:\x20','testContextOptions','UTTyd','downloaded_file_','RNNzJ','./framework/constants/testFrameworkConstants.js','end','map','3WzvNmC','1013782LBoIlV','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','warn','RzHvr','../../helpers/performance/performance-tester.js','fAGwP','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','SDK_CLI_CHECK_UPDATE','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','debug','shouldSkipSessionName','runShellCommand','mtime','HvQvt','Failed\x20to\x20delete\x20zip\x20file:\x20','5285800ZiOtGq','.tmp.','./state/testFrameworkState.js','get','Downloading\x20SDK\x20binary\x20from:\x20','skipSessionName','Development\x20Cli\x20Path:\x20','4329080kofYnB','svdqF','Datze','.zip','DGcMc',',\x20automationFramework=','SDK_CLI_DOWNLOAD','cVvbn','YoEjh','existsSync','requestToUpdateCLI'];a72_0x2db9=function(){return _0x82bced;};return a72_0x2db9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a73_0x1f9773=a73_0x4bbc;(function(_0x3afbe4,_0x1c39bd){const _0x18a173=a73_0x4bbc,_0x1960f0=_0x3afbe4();while(!![]){try{const _0xfb7c29=-parseInt(_0x18a173(0x107))/0x1+parseInt(_0x18a173(0x15a))/0x2+-parseInt(_0x18a173(0x14d))/0x3+parseInt(_0x18a173(0x108))/0x4+-parseInt(_0x18a173(0x11d))/0x5+parseInt(_0x18a173(0x139))/0x6+parseInt(_0x18a173(0x146))/0x7;if(_0xfb7c29===_0x1c39bd)break;else _0x1960f0['push'](_0x1960f0['shift']());}catch(_0x3532ba){_0x1960f0['push'](_0x1960f0['shift']());}}}(a73_0x3e2b,0x5a89f));function a73_0x4bbc(_0x214346,_0x163b28){const _0x3e2bf2=a73_0x3e2b();return a73_0x4bbc=function(_0x4bbcb9,_0xa29787){_0x4bbcb9=_0x4bbcb9-0x102;let _0x5e8ff=_0x3e2bf2[_0x4bbcb9];return _0x5e8ff;},a73_0x4bbc(_0x214346,_0x163b28);}const BrowserstackCLI=require(a73_0x1f9773(0x149)),helper=require(a73_0x1f9773(0x138)),AutomationFramework=require(a73_0x1f9773(0x10e)),TestFrameworkConstants=require(a73_0x1f9773(0x143)),PlaywrightDriverModule=require(a73_0x1f9773(0x104)),TestInfo=require(a73_0x1f9773(0x13c)),TestHubModule=require(a73_0x1f9773(0x14c)),{createClassLogger}=require(a73_0x1f9773(0x117)),logger=createClassLogger(a73_0x1f9773(0x110));function a73_0x3e2b(){const _0x365a47=['[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','\x20with\x20new\x20values=','jest','../../helpers/helper','537906jdNdlG','Mcqak','xVqnH','./TestInfo','__jestCurrentTestIdentifier','Custom\x20tag\x20value\x20cannot\x20be\x20empty','getAllData','parseCommaSeparatedValues','getTestDetails','KEY_CUSTOM_TAGS','./framework/constants/testFrameworkConstants','IAtSY','\x20with\x20values=','3311630iLGgdO','uMQPA','isRunning','./browserstackCLI','RIipq','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','./modules/testhubModule','446568VLhiOi','getTrackedInstance','PWMtn','testLevelTags','trim','toLowerCase','IVlPj',':jest-','setCustomTags','[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key=','KEY_TEST_ID','getBuildLevelTags','getTestUUID','999286amXfoQ','WEReI','XXCPD','./modules/playwrightDriverModule','buildHashedId','stringify','155454pQSOyn','264060WPqrFw','getTestLevelTags','exports','multi_dropdown','jOdnJ','nqPWz','./framework/automationFramework','__workerDetails','CustomTagManager','setTestDetails',',\x20key=','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','retry','POST','uQkdu','../../helpers/classLogger','./cliUtils','modules','getTestFramework','./state/hookState',',\x20finalTags=','2266210Fjjhrr','field_type','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','VcbhS','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.',',\x20values=','MODULE_NAME','get','buildLevelTags','./state/testFrameworkState','includes','TEST','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=',',\x20existingTags=','SuYhJ','getTestIdentifierFromTestInfo','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','ZgGrL','LRFue','values','name','clearTags','debug','testhubConfig'];a73_0x3e2b=function(){return _0x365a47;};return a73_0x3e2b();}class CustomTagManager{static ['buildLevelTags']={};static [a73_0x1f9773(0x150)]={};static[a73_0x1f9773(0x155)](_0x1e1d0c,_0x299aa4,_0x3fc16c=![]){const _0xc69ac0=a73_0x1f9773,_0x365516={'IVlPj':function(_0x470efd,_0xc83d3b){return _0x470efd!==_0xc83d3b;},'ZgGrL':'string','SuYhJ':_0xc69ac0(0x11f),'nqPWz':'Custom\x20tag\x20value\x20must\x20be\x20a\x20string','uMQPA':function(_0x3af1f6,_0x20d184){return _0x3af1f6===_0x20d184;},'RIipq':'Custom\x20tag\x20key\x20cannot\x20be\x20empty','VcbhS':function(_0x4a4c35,_0x55c876){return _0x4a4c35===_0x55c876;},'LRFue':_0xc69ac0(0x13e),'IAtSY':_0xc69ac0(0x10b),'Mcqak':_0xc69ac0(0x154),'eTzWu':function(_0x41d3c7,_0x253f7a){return _0x41d3c7(_0x253f7a);},'xVqnH':_0xc69ac0(0x118),'XXCPD':_0xc69ac0(0x137),'uQkdu':_0xc69ac0(0x121),'fzEbF':_0xc69ac0(0x12d),'PWMtn':function(_0x5e7cb4,_0x3c3817){return _0x5e7cb4(_0x3c3817);},'WEReI':_0xc69ac0(0x126),'lpNEr':_0xc69ac0(0x11b),'jOdnJ':_0xc69ac0(0x113)};if(_0x365516[_0xc69ac0(0x153)](typeof _0x1e1d0c,_0x365516[_0xc69ac0(0x12e)]))throw new Error(_0x365516[_0xc69ac0(0x12b)]);if(_0x365516[_0xc69ac0(0x153)](typeof _0x299aa4,_0x365516[_0xc69ac0(0x12e)]))throw new Error(_0x365516[_0xc69ac0(0x10d)]);if(_0x365516[_0xc69ac0(0x147)](_0x1e1d0c[_0xc69ac0(0x151)](),''))throw new Error(_0x365516[_0xc69ac0(0x14a)]);if(_0x365516[_0xc69ac0(0x120)](_0x299aa4[_0xc69ac0(0x151)](),''))throw new Error(_0x365516[_0xc69ac0(0x12f)]);const _0x162672=helper[_0xc69ac0(0x140)](_0x299aa4);if(_0x3fc16c){const _0x2d06cc=BrowserstackCLI['getInstance']()[_0xc69ac0(0x119)][TestHubModule[_0xc69ac0(0x123)]];if(_0x2d06cc){const _0x5b3188=_0x2d06cc?.[_0xc69ac0(0x134)]?.['toObject']()?.[_0xc69ac0(0x105)];TestInfo[_0xc69ac0(0x159)](_0x5b3188);const _0x5ec084=TestInfo[_0xc69ac0(0x141)](_0x5b3188),_0x525353=_0x5ec084[TestFrameworkConstants[_0xc69ac0(0x142)]]||{};if(!_0x525353[_0x1e1d0c]){const _0x1dff93={};_0x1dff93[_0xc69ac0(0x11e)]=_0x365516[_0xc69ac0(0x144)],_0x1dff93[_0xc69ac0(0x130)]=[..._0x162672],_0x525353[_0x1e1d0c]=_0x1dff93;}else _0x525353[_0x1e1d0c][_0xc69ac0(0x130)]=[..._0x162672];_0x5ec084[TestFrameworkConstants[_0xc69ac0(0x142)]]=_0x525353,TestInfo[_0xc69ac0(0x111)](_0x5b3188,_0x5ec084),!this[_0xc69ac0(0x125)][_0x5b3188]&&(this[_0xc69ac0(0x125)][_0x5b3188]={}),this[_0xc69ac0(0x125)][_0x5b3188][_0x1e1d0c]=[..._0x162672];}}else{let _0x4765a3;const _0x471dd7=global[_0xc69ac0(0x13d)];let _0xe36ca4=![];if(_0x471dd7&&_0x471dd7[_0xc69ac0(0x127)](_0x365516['Mcqak']))_0xe36ca4=!![],_0x4765a3=_0x471dd7;else try{const _0x1b05cc=_0x365516['eTzWu'](require,_0x365516[_0xc69ac0(0x13b)]);if(BrowserstackCLI['getInstance']()[_0xc69ac0(0x148)]()){const _0x45d013=_0x1b05cc['getTestFrameworkDetail']();if(_0x365516[_0xc69ac0(0x147)](_0x45d013?.[_0xc69ac0(0x131)]?.[_0xc69ac0(0x152)](),_0x365516[_0xc69ac0(0x103)])){const _0x34f580=AutomationFramework[_0xc69ac0(0x14e)]();_0x4765a3=AutomationFramework['getState'](_0x34f580,PlaywrightDriverModule[_0xc69ac0(0x157)],''),_0x4765a3&&_0x4765a3[_0xc69ac0(0x127)](_0x365516[_0xc69ac0(0x13a)])&&(_0xe36ca4=!![]);}}}catch(_0x348b37){logger[_0xc69ac0(0x133)]('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x348b37);}if(_0xe36ca4){if(!_0x4765a3)throw new Error(_0x365516[_0xc69ac0(0x116)]);const _0xda0325=BrowserstackCLI['getInstance']()[_0xc69ac0(0x11a)]();if(!_0xda0325)throw new Error(_0x365516['fzEbF']);const _0x1917be=_0x365516[_0xc69ac0(0x14f)](require,_0x365516[_0xc69ac0(0x102)]),_0x3cc2e9=_0x365516['eTzWu'](require,_0x365516['lpNEr']),_0x3c3d2a=_0xda0325['resolveInstance'](_0x1917be[_0xc69ac0(0x128)],_0x3cc2e9[_0xc69ac0(0x115)]);if(!_0x3c3d2a)throw new Error(_0x365516[_0xc69ac0(0x10c)]);const _0x2326fb=_0x3c3d2a[_0xc69ac0(0x13f)]()[_0xc69ac0(0x124)](_0x4765a3)||{},_0x49a204=_0x2326fb[TestFrameworkConstants[_0xc69ac0(0x142)]]||{};logger[_0xc69ac0(0x133)](_0xc69ac0(0x135)+_0x4765a3+_0xc69ac0(0x112)+_0x1e1d0c+_0xc69ac0(0x122)+JSON[_0xc69ac0(0x106)](_0x162672)+_0xc69ac0(0x12a)+JSON[_0xc69ac0(0x106)](_0x49a204));if(!_0x49a204[_0x1e1d0c]){const _0xcfd65c={};_0xcfd65c[_0xc69ac0(0x11e)]=_0x365516[_0xc69ac0(0x144)],_0xcfd65c[_0xc69ac0(0x130)]=[..._0x162672],_0x49a204[_0x1e1d0c]=_0xcfd65c,logger[_0xc69ac0(0x133)](_0xc69ac0(0x129)+_0x1e1d0c+_0xc69ac0(0x145)+JSON['stringify'](_0x162672));}else _0x49a204[_0x1e1d0c][_0xc69ac0(0x130)]=[..._0x162672],logger[_0xc69ac0(0x133)](_0xc69ac0(0x156)+_0x1e1d0c+_0xc69ac0(0x136)+JSON['stringify'](_0x162672));const _0x291d2f={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x49a204},_0x457ea4={};_0x457ea4[_0x4765a3]=_0x291d2f,_0x3c3d2a['addMultipleEntries'](_0x457ea4),logger[_0xc69ac0(0x133)](_0xc69ac0(0x14b)+_0x4765a3+_0xc69ac0(0x11c)+JSON['stringify'](_0x49a204)),!this['testLevelTags'][_0x4765a3]&&(this[_0xc69ac0(0x150)][_0x4765a3]={}),this['testLevelTags'][_0x4765a3][_0x1e1d0c]=[..._0x162672];}else{const _0x294cf6=global[_0xc69ac0(0x10f)]?.['currentTest']?.['testInfo'];if(!_0x294cf6){const _0x18549a=AutomationFramework['getTrackedInstance']();_0x4765a3=AutomationFramework['getState'](_0x18549a,PlaywrightDriverModule[_0xc69ac0(0x157)],'');}else _0x4765a3=TestInfo[_0xc69ac0(0x12c)](_0x294cf6,_0x294cf6[_0xc69ac0(0x114)]);const _0x47d890=TestInfo[_0xc69ac0(0x141)](_0x4765a3),_0x2be17a=_0x47d890[TestFrameworkConstants[_0xc69ac0(0x142)]]||{};if(!_0x2be17a[_0x1e1d0c]){const _0x4665e2={};_0x4665e2[_0xc69ac0(0x11e)]=_0x365516['IAtSY'],_0x4665e2[_0xc69ac0(0x130)]=[..._0x162672],_0x2be17a[_0x1e1d0c]=_0x4665e2;}else _0x2be17a[_0x1e1d0c][_0xc69ac0(0x130)]=[..._0x162672];_0x47d890[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x2be17a,TestInfo['setTestDetails'](_0x4765a3,_0x47d890),!this[_0xc69ac0(0x150)][_0x4765a3]&&(this[_0xc69ac0(0x150)][_0x4765a3]={}),this[_0xc69ac0(0x150)][_0x4765a3][_0x1e1d0c]=[..._0x162672];}}}static[a73_0x1f9773(0x158)](){const _0x123906=a73_0x1f9773,_0xa011a1={...this[_0x123906(0x125)]};return _0xa011a1;}static[a73_0x1f9773(0x109)](){const _0x14423c=a73_0x1f9773,_0x159a77={...this[_0x14423c(0x150)]};return _0x159a77;}static[a73_0x1f9773(0x132)](){const _0x4ada32=a73_0x1f9773;this[_0x4ada32(0x125)]={},this[_0x4ada32(0x150)]={};}}module[a73_0x1f9773(0x10a)]=CustomTagManager;
|
|
1
|
+
'use strict';const a73_0x5911bb=a73_0x585e;function a73_0x31b4(){const _0x533d90=['406236dTXupf','CustomTagManager','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','BEbDy','stringify','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','getState','isArray','getInstance','qjjpf','./modules/testhubModule','null','readdirSync','TEST','aggregateBuildLevelTagsFromTmp','pVsZh','field_type','endsWith','./framework/constants/testFrameworkConstants','_testInternals','./state/testFrameworkState','VcIsX','KEY_CUSTOM_TAGS','getTestLevelTags','entries','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','ms)\x20','trim','2eqzTeI','isRunning','message','mtimeMs','addMultipleEntries','GCIei','dQSgb','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','env','getTestFrameworkDetail','1287360oCqskc','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','DJmFm',',\x20existingTags=','utf8','resolveInstance','1010790MIlbaC','getTestIdentifierFromTestInfo','testhubConfig','promises','vgrjE','\x20->\x20values=','twVhT','getTrackedInstance','multi_dropdown','path','HjRdY','BUILD_TAG_FILE_PREFIX','KAYdS','testLevelTags','QVetG','getTestFramework','modules','get','jest','WtRao','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','./cliUtils','pkJWE','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','includes','ZPNNX','getTestUUID','tmpdir','dUCFs',',\x20key=','DmkcJ','GoNjF','setTestDetails','CVemf','length',',\x20values=','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','MODULE_NAME','./TestInfo','readFileSync','shvWg','startsWith','tpcfE','exports','getTestDetails','testInfo','join','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','QxTVs','parseCommaSeparatedValues','zFAYl',':jest-','./state/hookState','grrbF','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','./modules/playwrightDriverModule','xbyLr','mergeIntoTags','buildHashedId','getBuildTagsRunId','mergeBuildLevelTags','writeFile','./framework/automationFramework','filter','now','2590596NiKYqS','9HlRHch','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','81669dJwRdO','qoGUZ','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','lgjdl','debug','clearTags','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','deYqg','unlinkSync','KEY_TEST_ID','values','GYJHu','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','.json','XSelj','keys','POST','mergeValues','jZHzO','retry','buildLevelTags','name','2464952fjvfiA','./browserstackCLI','toObject','346864ZvDaVQ'];a73_0x31b4=function(){return _0x533d90;};return a73_0x31b4();}(function(_0x3a6cd4,_0x42efcf){const _0x435630=a73_0x585e,_0x114960=_0x3a6cd4();while(!![]){try{const _0x18ee2=-parseInt(_0x435630(0x171))/0x1*(parseInt(_0x435630(0x1a8))/0x2)+-parseInt(_0x435630(0x18b))/0x3+parseInt(_0x435630(0x1b2))/0x4+parseInt(_0x435630(0x1b8))/0x5+-parseInt(_0x435630(0x1fb))/0x6+parseInt(_0x435630(0x18a))/0x7+-parseInt(_0x435630(0x187))/0x8*(-parseInt(_0x435630(0x16f))/0x9);if(_0x18ee2===_0x42efcf)break;else _0x114960['push'](_0x114960['shift']());}catch(_0x283c63){_0x114960['push'](_0x114960['shift']());}}}(a73_0x31b4,0x38d76));const fs=require('fs'),os=require('os'),path=require(a73_0x5911bb(0x1c1)),helper=require('../../helpers/helper'),AutomationFramework=require(a73_0x5911bb(0x1f8)),TestFrameworkConstants=require(a73_0x5911bb(0x19d)),PlaywrightDriverModule=require(a73_0x5911bb(0x1f1)),TestInfo=require(a73_0x5911bb(0x1de)),TestHubModule=require(a73_0x5911bb(0x195)),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a73_0x5911bb(0x18c)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function getBuildTagsRunId(){const _0x1db9e8=a73_0x5911bb,_0x4b56b4={};_0x4b56b4[_0x1db9e8(0x1d4)]=function(_0x586d6d,_0x2e8e34){return _0x586d6d===_0x2e8e34;},_0x4b56b4[_0x1db9e8(0x1be)]=_0x1db9e8(0x196);const _0x23a197=_0x4b56b4,_0x1b7053=process[_0x1db9e8(0x1b0)]['BROWSERSTACK_TESTHUB_UUID'];if(!_0x1b7053||_0x23a197[_0x1db9e8(0x1d4)](_0x1b7053,_0x23a197[_0x1db9e8(0x1be)]))return null;return _0x1b7053;}function getBuildTagsFilePath(_0x567a42){const _0x25160f=a73_0x5911bb;return path['join'](os[_0x25160f(0x1d3)](),''+BUILD_TAG_FILE_PREFIX+_0x567a42+'_'+process['pid']+'.json');}class CustomTagManager{static [a73_0x5911bb(0x185)]={};static [a73_0x5911bb(0x1c5)]={};static[a73_0x5911bb(0x182)](_0x30602f,_0x235ae1){return Array['from'](new Set([..._0x30602f||[],..._0x235ae1||[]]));}static['mergeIntoTags'](_0x368102,_0x16d94e,_0xa84891){const _0x5a44da=a73_0x5911bb,_0x58f341={};_0x58f341[_0x5a44da(0x17f)]=_0x5a44da(0x1c0);const _0x580809=_0x58f341;if(!_0x368102[_0x16d94e]){const _0x2f1abe={};_0x2f1abe['field_type']=_0x580809[_0x5a44da(0x17f)],_0x2f1abe[_0x5a44da(0x17b)]=[..._0xa84891||[]],_0x368102[_0x16d94e]=_0x2f1abe;}else!_0x368102[_0x16d94e][_0x5a44da(0x19b)]&&(_0x368102[_0x16d94e]['field_type']=_0x580809['XSelj']),!Array[_0x5a44da(0x192)](_0x368102[_0x16d94e]['values'])&&(_0x368102[_0x16d94e]['values']=[]),_0x368102[_0x16d94e]['values']=CustomTagManager[_0x5a44da(0x182)](_0x368102[_0x16d94e][_0x5a44da(0x17b)],_0xa84891);return _0x368102;}static async['setCustomTags'](_0x2c1f60,_0x342283,_0x502c3d=![]){const _0x243ae6=a73_0x5911bb,_0x382f3f={'kDEVe':function(_0x4354f5,_0x20e068){return _0x4354f5!==_0x20e068;},'BEbDy':'string','pVsZh':_0x243ae6(0x1dc),'QVetG':_0x243ae6(0x1a5),'pkJWE':function(_0x294e3a,_0x4c2557){return _0x294e3a===_0x4c2557;},'VcIsX':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','UjBWE':function(_0x558f61,_0x568464){return _0x558f61===_0x568464;},'rCqSx':_0x243ae6(0x18d),'jZHzO':function(_0x1732ff,_0x308bb2){return _0x1732ff(_0x308bb2);},'shvWg':_0x243ae6(0x188),'Bduru':function(_0x5dc546){return _0x5dc546();},'DJmFm':_0x243ae6(0x1c0),'zFAYl':function(_0x11e43f,_0x291f5d){return _0x11e43f>_0x291f5d;},'deYqg':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','lgjdl':_0x243ae6(0x1ed),'GoNjF':_0x243ae6(0x1cd),'dQSgb':function(_0x530b0f,_0x4f854b){return _0x530b0f(_0x4f854b);},'ZPNNX':function(_0x4be83d,_0x3b9046){return _0x4be83d===_0x3b9046;},'HjRdY':_0x243ae6(0x1ca),'xbyLr':_0x243ae6(0x1a4),'qjjpf':function(_0x3bec7f,_0xb79d74){return _0x3bec7f(_0xb79d74);},'WtRao':_0x243ae6(0x17d),'GYJHu':_0x243ae6(0x19f),'GCIei':function(_0x2c508d,_0x5716f6){return _0x2c508d(_0x5716f6);},'grrbF':_0x243ae6(0x1ee),'KAYdS':_0x243ae6(0x1b3)};if(_0x382f3f['kDEVe'](typeof _0x2c1f60,_0x382f3f[_0x243ae6(0x18e)])){logger['debug'](_0x382f3f[_0x243ae6(0x19a)]);return;}if(_0x382f3f['kDEVe'](typeof _0x342283,_0x382f3f[_0x243ae6(0x18e)])){logger[_0x243ae6(0x175)](_0x382f3f[_0x243ae6(0x1c6)]);return;}if(_0x382f3f[_0x243ae6(0x1ce)](_0x2c1f60[_0x243ae6(0x1a7)](),'')){logger[_0x243ae6(0x175)](_0x382f3f[_0x243ae6(0x1a0)]);return;}if(_0x382f3f['UjBWE'](_0x342283[_0x243ae6(0x1a7)](),'')){logger[_0x243ae6(0x175)](_0x382f3f['rCqSx']);return;}const _0x4d1f16=helper[_0x243ae6(0x1eb)](_0x342283);if(_0x502c3d){const _0x5de77b=_0x382f3f[_0x243ae6(0x183)](require,_0x382f3f['shvWg']),_0x4971f1=_0x5de77b['getInstance'](),_0x4930ad=_0x4971f1&&_0x4971f1[_0x243ae6(0x1c8)][TestHubModule[_0x243ae6(0x1dd)]];if(_0x4930ad){const _0x1ffef3=_0x4930ad?.[_0x243ae6(0x1ba)]?.[_0x243ae6(0x189)]()?.[_0x243ae6(0x1f4)];TestInfo[_0x243ae6(0x1d2)](_0x1ffef3);const _0x334f9b=TestInfo[_0x243ae6(0x1e4)](_0x1ffef3),_0x387499=_0x334f9b[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager['mergeIntoTags'](_0x387499,_0x2c1f60,_0x4d1f16),_0x334f9b[TestFrameworkConstants[_0x243ae6(0x1a1)]]=_0x387499,TestInfo[_0x243ae6(0x1d8)](_0x1ffef3,_0x334f9b);!this[_0x243ae6(0x185)][_0x1ffef3]&&(this['buildLevelTags'][_0x1ffef3]={});this['buildLevelTags'][_0x1ffef3][_0x2c1f60]=CustomTagManager[_0x243ae6(0x182)](this['buildLevelTags'][_0x1ffef3][_0x2c1f60],_0x4d1f16);try{const _0x2f3d94=_0x382f3f['Bduru'](getBuildTagsRunId);if(_0x2f3d94){const _0xc74221={};for(const [_0x36dca6,_0x3341ff]of Object[_0x243ae6(0x1a3)](this[_0x243ae6(0x185)][_0x1ffef3]||{})){_0xc74221[_0x36dca6]={'field_type':_0x382f3f[_0x243ae6(0x1b4)],'values':Array[_0x243ae6(0x192)](_0x3341ff)?[..._0x3341ff]:[]};}_0x382f3f[_0x243ae6(0x1ec)](Object[_0x243ae6(0x180)](_0xc74221)[_0x243ae6(0x1da)],0x0)&&await fs[_0x243ae6(0x1bb)][_0x243ae6(0x1f7)](_0x382f3f[_0x243ae6(0x183)](getBuildTagsFilePath,_0x2f3d94),JSON[_0x243ae6(0x18f)](_0xc74221));}else logger[_0x243ae6(0x175)](_0x382f3f[_0x243ae6(0x178)]);}catch(_0x44a8e5){logger[_0x243ae6(0x175)]('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0x44a8e5&&_0x44a8e5[_0x243ae6(0x1aa)]?_0x44a8e5['message']:_0x44a8e5));}}}else{let _0x133c35;const _0x976eff=global['__jestCurrentTestIdentifier'];let _0x17a24b=![];if(_0x976eff&&_0x976eff[_0x243ae6(0x1d0)](_0x382f3f[_0x243ae6(0x174)]))_0x17a24b=!![],_0x133c35=_0x976eff;else try{const _0x56809a=_0x382f3f['jZHzO'](require,_0x382f3f[_0x243ae6(0x1d7)]),_0x571049=_0x382f3f[_0x243ae6(0x1ae)](require,_0x382f3f[_0x243ae6(0x1e0)]);if(_0x571049['getInstance']()[_0x243ae6(0x1a9)]()){const _0xcacff3=_0x56809a[_0x243ae6(0x1b1)]();if(_0x382f3f[_0x243ae6(0x1d1)](_0xcacff3?.[_0x243ae6(0x186)]?.['toLowerCase'](),_0x382f3f[_0x243ae6(0x1c2)])){const _0x2beb0b=AutomationFramework['getTrackedInstance']();_0x133c35=AutomationFramework[_0x243ae6(0x191)](_0x2beb0b,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x133c35&&_0x133c35[_0x243ae6(0x1d0)](_0x382f3f[_0x243ae6(0x174)])&&(_0x17a24b=!![]);}}}catch(_0x28756c){logger[_0x243ae6(0x175)](_0x243ae6(0x173)+_0x28756c);}if(_0x17a24b){if(!_0x133c35)throw new Error(_0x382f3f[_0x243ae6(0x1f2)]);const _0x4ecdfe=_0x382f3f[_0x243ae6(0x194)](require,_0x382f3f[_0x243ae6(0x1e0)]),_0x500c1c=_0x4ecdfe[_0x243ae6(0x193)]()[_0x243ae6(0x1c7)]();if(!_0x500c1c)throw new Error(_0x382f3f[_0x243ae6(0x1cb)]);const _0x1ab745=_0x382f3f[_0x243ae6(0x194)](require,_0x382f3f[_0x243ae6(0x17c)]),_0x25b0a0=_0x382f3f[_0x243ae6(0x1ad)](require,_0x382f3f[_0x243ae6(0x1ef)]),_0x220c0f=_0x500c1c[_0x243ae6(0x1b7)](_0x1ab745[_0x243ae6(0x198)],_0x25b0a0[_0x243ae6(0x181)]);if(!_0x220c0f)throw new Error(_0x382f3f[_0x243ae6(0x1c4)]);const _0x5bb0ec=_0x220c0f['getAllData']()[_0x243ae6(0x1c9)](_0x133c35)||{},_0x4a81f3=_0x5bb0ec[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger['debug'](_0x243ae6(0x190)+_0x133c35+_0x243ae6(0x1d5)+_0x2c1f60+_0x243ae6(0x1db)+JSON[_0x243ae6(0x18f)](_0x4d1f16)+_0x243ae6(0x1b5)+JSON['stringify'](_0x4a81f3)),CustomTagManager[_0x243ae6(0x1f3)](_0x4a81f3,_0x2c1f60,_0x4d1f16),logger[_0x243ae6(0x175)](_0x243ae6(0x1cc)+_0x2c1f60+_0x243ae6(0x1bd)+JSON[_0x243ae6(0x18f)](_0x4a81f3[_0x2c1f60]['values']));const _0x2a53ee={[TestFrameworkConstants[_0x243ae6(0x1a1)]]:_0x4a81f3},_0x3a776d={};_0x3a776d[_0x133c35]=_0x2a53ee,_0x220c0f[_0x243ae6(0x1ac)](_0x3a776d),logger[_0x243ae6(0x175)](_0x243ae6(0x177)+_0x133c35+',\x20finalTags='+JSON[_0x243ae6(0x18f)](_0x4a81f3)),!this[_0x243ae6(0x1c5)][_0x133c35]&&(this[_0x243ae6(0x1c5)][_0x133c35]={}),this[_0x243ae6(0x1c5)][_0x133c35][_0x2c1f60]=CustomTagManager['mergeValues'](this[_0x243ae6(0x1c5)][_0x133c35][_0x2c1f60],_0x4d1f16);}else{const _0x280216=global['__workerDetails']?.['currentTest']?.[_0x243ae6(0x1e5)];if(!_0x280216){const _0x753d98=AutomationFramework[_0x243ae6(0x1bf)]();_0x133c35=AutomationFramework['getState'](_0x753d98,PlaywrightDriverModule[_0x243ae6(0x17a)],'');}else _0x133c35=TestInfo[_0x243ae6(0x1b9)](_0x280216,_0x280216[_0x243ae6(0x184)]);const _0x301b70=TestInfo[_0x243ae6(0x1e4)](_0x133c35),_0x86f9de=_0x301b70[TestFrameworkConstants[_0x243ae6(0x1a1)]]||{};CustomTagManager[_0x243ae6(0x1f3)](_0x86f9de,_0x2c1f60,_0x4d1f16),_0x301b70[TestFrameworkConstants[_0x243ae6(0x1a1)]]=_0x86f9de,TestInfo['setTestDetails'](_0x133c35,_0x301b70),!this[_0x243ae6(0x1c5)][_0x133c35]&&(this[_0x243ae6(0x1c5)][_0x133c35]={}),this[_0x243ae6(0x1c5)][_0x133c35][_0x2c1f60]=CustomTagManager[_0x243ae6(0x182)](this['testLevelTags'][_0x133c35][_0x2c1f60],_0x4d1f16);}}}static['getBuildLevelTags'](){const _0x3efebc=a73_0x5911bb,_0x57d848={...this[_0x3efebc(0x185)]};return _0x57d848;}static[a73_0x5911bb(0x1a2)](){const _0x369155=a73_0x5911bb,_0x215cd9={...this[_0x369155(0x1c5)]};return _0x215cd9;}static[a73_0x5911bb(0x176)](){const _0x32d845=a73_0x5911bb;this[_0x32d845(0x185)]={},this[_0x32d845(0x1c5)]={};}static['mergeBuildLevelTags'](_0x1a4101,_0x77675f){const _0x36270b=a73_0x5911bb,_0x233221={};_0x233221['vgrjE']=function(_0x161ad7,_0x2aeaaa){return _0x161ad7||_0x2aeaaa;};const _0x2b5b53=_0x233221;if(!_0x1a4101)return;!this[_0x36270b(0x185)][_0x1a4101]&&(this['buildLevelTags'][_0x1a4101]={});for(const [_0x3d43c1,_0x551e87]of Object[_0x36270b(0x1a3)](_0x2b5b53[_0x36270b(0x1bc)](_0x77675f,{}))){if(!_0x551e87||!Array[_0x36270b(0x192)](_0x551e87[_0x36270b(0x17b)]))continue;this[_0x36270b(0x185)][_0x1a4101][_0x3d43c1]=CustomTagManager['mergeValues'](this[_0x36270b(0x185)][_0x1a4101][_0x3d43c1],_0x551e87['values']);}}static[a73_0x5911bb(0x199)](_0xf93bb,_0x4b3451){const _0x426e27=a73_0x5911bb,_0x42509d={};_0x42509d[_0x426e27(0x1d6)]=_0x426e27(0x1f0),_0x42509d[_0x426e27(0x1ea)]=function(_0x1419ac,_0xc78aec){return _0x1419ac*_0xc78aec;},_0x42509d[_0x426e27(0x1e2)]=function(_0x45c082,_0x50c2e5){return _0x45c082>_0x50c2e5;},_0x42509d[_0x426e27(0x1d9)]=function(_0x4177bf,_0x312c8d){return _0x4177bf-_0x312c8d;},_0x42509d['qoGUZ']=_0x426e27(0x1b6);const _0x4fb367=_0x42509d;if(!_0xf93bb)return logger[_0x426e27(0x175)](_0x4fb367[_0x426e27(0x1d6)]),0x0;let _0x9722e3;try{_0x9722e3=os['tmpdir']();}catch(_0x880ea8){return logger[_0x426e27(0x175)](_0x426e27(0x1e9)+_0x880ea8),0x0;}let _0x2fe8cb;try{_0x2fe8cb=fs[_0x426e27(0x197)](_0x9722e3);}catch(_0x553ad5){return logger[_0x426e27(0x175)](_0x426e27(0x1cf)+_0x553ad5),0x0;}const _0x1d4380=''+BUILD_TAG_FILE_PREFIX+_0xf93bb+'_',_0x4d6569=_0x2fe8cb[_0x426e27(0x1f9)](_0x69e624=>_0x69e624[_0x426e27(0x1e1)](_0x1d4380)&&_0x69e624[_0x426e27(0x19c)](_0x426e27(0x17e))),_0x3050f2=_0x4fb367[_0x426e27(0x1ea)](_0x4fb367[_0x426e27(0x1ea)](_0x4fb367[_0x426e27(0x1ea)](0x2,0x3c),0x3c),0x3e8);let _0x24fdc2=0x0;for(const _0x2179a3 of _0x4d6569){const _0x325e24=path[_0x426e27(0x1e6)](_0x9722e3,_0x2179a3);try{const _0x37b338=fs['statSync'](_0x325e24);if(_0x4fb367['tpcfE'](_0x4fb367[_0x426e27(0x1d9)](Date[_0x426e27(0x1fa)](),_0x37b338[_0x426e27(0x1ab)]),_0x3050f2)){logger[_0x426e27(0x175)](_0x426e27(0x1e7)+_0x3050f2+_0x426e27(0x1a6)+_0x2179a3);try{fs[_0x426e27(0x179)](_0x325e24);}catch(_0x321b1e){logger[_0x426e27(0x175)](_0x426e27(0x1af)+_0x2179a3+':\x20'+(_0x321b1e&&_0x321b1e['message']?_0x321b1e['message']:_0x321b1e));}continue;}const _0x344297=fs[_0x426e27(0x1df)](_0x325e24,_0x4fb367[_0x426e27(0x172)]),_0x1fb7b1=JSON['parse'](_0x344297);this[_0x426e27(0x1f6)](_0x4b3451,_0x1fb7b1),_0x24fdc2+=0x1;}catch(_0x4c1f43){logger['debug'](_0x426e27(0x1e8)+_0x2179a3+':\x20'+(_0x4c1f43&&_0x4c1f43['message']?_0x4c1f43[_0x426e27(0x1aa)]:_0x4c1f43));}try{fs[_0x426e27(0x179)](_0x325e24);}catch(_0x243b6e){logger[_0x426e27(0x175)](_0x426e27(0x170)+_0x2179a3+':\x20'+(_0x243b6e&&_0x243b6e[_0x426e27(0x1aa)]?_0x243b6e['message']:_0x243b6e));}}return _0x24fdc2;}}function a73_0x585e(_0x584d2e,_0x1cc7ad){const _0x31b455=a73_0x31b4();return a73_0x585e=function(_0x585efa,_0x3ffc13){_0x585efa=_0x585efa-0x16f;let _0xfe6fc9=_0x31b455[_0x585efa];return _0xfe6fc9;},a73_0x585e(_0x584d2e,_0x1cc7ad);}const a73_0x49bbe0={};a73_0x49bbe0[a73_0x5911bb(0x1f5)]=getBuildTagsRunId,a73_0x49bbe0['getBuildTagsFilePath']=getBuildTagsFilePath,a73_0x49bbe0[a73_0x5911bb(0x1c3)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a73_0x5911bb(0x19e)]=a73_0x49bbe0,module[a73_0x5911bb(0x1e3)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a74_0x4523(_0x48856b,_0x535df3){const _0x1b05ae=a74_0x1b05();return a74_0x4523=function(_0x452392,_0xbd0c1d){_0x452392=_0x452392-0x75;let _0x5a8b3b=_0x1b05ae[_0x452392];return _0x5a8b3b;},a74_0x4523(_0x48856b,_0x535df3);}const a74_0x512b23=a74_0x4523;(function(_0x225a11,_0x191bde){const _0x37ae24=a74_0x4523,_0x7dba9d=_0x225a11();while(!![]){try{const _0x4595cb=parseInt(_0x37ae24(0x7f))/0x1*(-parseInt(_0x37ae24(0x79))/0x2)+-parseInt(_0x37ae24(0x82))/0x3*(parseInt(_0x37ae24(0x78))/0x4)+parseInt(_0x37ae24(0x7b))/0x5*(parseInt(_0x37ae24(0x75))/0x6)+parseInt(_0x37ae24(0x7e))/0x7+-parseInt(_0x37ae24(0x83))/0x8+-parseInt(_0x37ae24(0x80))/0x9*(-parseInt(_0x37ae24(0x85))/0xa)+parseInt(_0x37ae24(0x77))/0xb;if(_0x4595cb===_0x191bde)break;else _0x7dba9d['push'](_0x7dba9d['shift']());}catch(_0x3dae6d){_0x7dba9d['push'](_0x7dba9d['shift']());}}}(a74_0x1b05,0x36827));const {createClassLogger}=require(a74_0x512b23(0x84));class EventDispatcher{static #instance=null;constructor(){const _0x4e6b16=a74_0x512b23;this[_0x4e6b16(0x7c)]={};}static[a74_0x512b23(0x76)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}['registerObserver'](_0x26f70a,_0x327fab){const _0x5e471f=a74_0x512b23;!this['observers'][_0x26f70a]&&(this[_0x5e471f(0x7c)][_0x26f70a]=[]),this[_0x5e471f(0x7c)][_0x26f70a]['push'](_0x327fab);}async[a74_0x512b23(0x81)](_0x16cd10,_0x4de9f9){const _0x4b1ca7=a74_0x512b23,_0x46e199={'siDCx':function(_0x15d83a,_0x24b96c){return _0x15d83a(_0x24b96c);}};if(this[_0x4b1ca7(0x7c)][_0x16cd10]){for(const _0x4ee783 of this[_0x4b1ca7(0x7c)][_0x16cd10]){await _0x46e199['siDCx'](_0x4ee783,_0x4de9f9);}return;}}}const eventDispatcher=EventDispatcher[a74_0x512b23(0x76)]();function a74_0x1b05(){const _0x3c3caa=['freeze','55rhYnLK','observers','exports','1475187VKzBHO','2237ueMOoL','8847nczgZa','notifyObserver','303LaXFvJ','2403392sfZPhz','../../helpers/classLogger.js','1880ZrhjTj','2670axdJmF','getInstance','4294917lZAZCY','5532ioxVrb','114MaeFgu'];a74_0x1b05=function(){return _0x3c3caa;};return a74_0x1b05();}Object[a74_0x512b23(0x7a)](eventDispatcher),module[a74_0x512b23(0x7d)]=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a75_0x3f0afd=a75_0x3ee9;function a75_0x4548(){const _0xf011a4=['636zpqLry','exports','../instances/trackedInstance.js','90nKhzIQ','setTrackedInstance','util','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','getState','getHookRegistryKey','3624zwwfdm','trackEvent','../../../helpers/classLogger.js','52005VqcjxH','294FaOmFo','3262lymLFL','automationFrameworkVersion','set','automationFrameworkName','runHooks','../cliUtils.js','getTrackedInstance','getAllData','174feJQQs','1672615UBuqXv','createContext','88880schugq','debug','setState','registerObserver','trackEvent:\x20automationFrameworkState=','1902YGGigb','instances','notifyObserver','getId','455496YZroad','get','getAutomationFrameworkName','automation_sessions','6522630kwdSFE'];a75_0x4548=function(){return _0xf011a4;};return a75_0x4548();}function a75_0x3ee9(_0x52b981,_0x355d45){const _0x45483f=a75_0x4548();return a75_0x3ee9=function(_0x3ee981,_0x330427){_0x3ee981=_0x3ee981-0xc3;let _0x185b05=_0x45483f[_0x3ee981];return _0x185b05;},a75_0x3ee9(_0x52b981,_0x355d45);}(function(_0x52b2ce,_0x23e173){const _0x497c37=a75_0x3ee9,_0x42a224=_0x52b2ce();while(!![]){try{const _0x35c9fd=-parseInt(_0x497c37(0xe2))/0x1*(parseInt(_0x497c37(0xe1))/0x2)+-parseInt(_0x497c37(0xcb))/0x3*(-parseInt(_0x497c37(0xdd))/0x4)+parseInt(_0x497c37(0xe0))/0x5*(-parseInt(_0x497c37(0xc3))/0x6)+-parseInt(_0x497c37(0xc4))/0x7+parseInt(_0x497c37(0xcf))/0x8*(parseInt(_0x497c37(0xd7))/0x9)+parseInt(_0x497c37(0xd3))/0xa+-parseInt(_0x497c37(0xc6))/0xb*(parseInt(_0x497c37(0xd4))/0xc);if(_0x35c9fd===_0x23e173)break;else _0x42a224['push'](_0x42a224['shift']());}catch(_0x421cf4){_0x42a224['push'](_0x42a224['shift']());}}}(a75_0x4548,0x54e3d));const {createClassLogger}=require(a75_0x3f0afd(0xdf)),util=require(a75_0x3f0afd(0xd9)),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a75_0x3f0afd(0xe7)),TrackedInstance=require(a75_0x3f0afd(0xd6)),logger=createClassLogger('AutomationFramework');class AutomationFramework{static [a75_0x3f0afd(0xcc)]=new Map();static ['KEY_AUTOMATION_SESSIONS']=a75_0x3f0afd(0xd2);static [a75_0x3f0afd(0xda)]='non_browserstack_automation_sessions';constructor(_0xff8739,_0x596406){const _0x44d0a7=a75_0x3f0afd;this[_0x44d0a7(0xe5)]=_0xff8739,this[_0x44d0a7(0xe3)]=_0x596406;}[a75_0x3f0afd(0xd1)](){const _0x58d42b=a75_0x3f0afd;return this[_0x58d42b(0xe5)];}['getAutomationFrameworkVersion'](){const _0x6d3b2b=a75_0x3f0afd;return this[_0x6d3b2b(0xe3)];}async[a75_0x3f0afd(0xde)](_0x2d6a00,_0x7c8b16,_0x54f5bb={}){const _0x1d4270=a75_0x3f0afd;logger[_0x1d4270(0xc7)](_0x1d4270(0xca)+_0x2d6a00+'\x20hookState='+_0x7c8b16);}async[a75_0x3f0afd(0xe6)](_0xa82555,_0x502e3f,_0x38da2e,_0x54026b={}){const _0x1677b9=a75_0x3f0afd,_0x495c67=CLIUtils[_0x1677b9(0xdc)](_0x502e3f,_0x38da2e);_0xa82555&&_0xa82555['setState'](_0x502e3f),await eventDispatcher[_0x1677b9(0xcd)](_0x495c67,_0x54026b);}static['registerObserver'](_0x18c441,_0x5c28b0,_0x50481e){const _0x5845f3=a75_0x3f0afd;eventDispatcher[_0x5845f3(0xc9)](CLIUtils[_0x5845f3(0xdc)](_0x18c441,_0x5c28b0),_0x50481e);}static[a75_0x3f0afd(0xd8)](_0x3a8221,_0x388fb6){const _0x549ada=a75_0x3f0afd;AutomationFramework[_0x549ada(0xcc)][_0x549ada(0xe4)](_0x3a8221[_0x549ada(0xce)](),_0x388fb6);}static[a75_0x3f0afd(0xe8)](){const _0x416213=a75_0x3f0afd,_0x40be2c=TrackedInstance[_0x416213(0xc5)](CLIUtils['getCurrentInstanceName']());return AutomationFramework['instances'][_0x416213(0xd0)](_0x40be2c[_0x416213(0xce)]());}static[a75_0x3f0afd(0xc8)](_0x42b052,_0x53abb2,_0x8eed20){const _0x5103ad=a75_0x3f0afd;_0x42b052[_0x5103ad(0xe9)]()[_0x5103ad(0xe4)](_0x53abb2,_0x8eed20);}static[a75_0x3f0afd(0xdb)](_0x5311d3,_0x1fb502){const _0x1ed242=a75_0x3f0afd;return _0x5311d3[_0x1ed242(0xe9)]()['get'](_0x1fb502);}}module[a75_0x3f0afd(0xd5)]=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x123a89=a76_0x257f;function a76_0x3fb0(){const _0x411e68=['platform_index','hub_url','KEY_IS_BROWSERSTACK_HUB','3753243uABFya','is_browserstack_hub','screenshot','3657916pblEIM','5706064XKBMRl','COMMAND_QUIT','10blhusq','framework_session_id','started_at','2011892TZcPvT','w3cexecutescript','exports','300970DxJvUu','newsession','3iwNypO','1709076VkGQpe','KEY_FRAMEWORK_SESSION_ID','KEY_INPUT_CAPABILITIES','4740302KTaCDJ','KEY_STARTED_AT','KEY_ENDED_AT','w3cexecutescriptasync','KEY_CAPABILITIES','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','COMMAND_SCREENSHOT','ENV_BROWSERSTACK_PLATFORM_INDEX','KEY_PLATFORM_INDEX','input_capabilities'];a76_0x3fb0=function(){return _0x411e68;};return a76_0x3fb0();}function a76_0x257f(_0x5e2eda,_0xb37a7a){const _0x3fb0d8=a76_0x3fb0();return a76_0x257f=function(_0x257f6d,_0x5be705){_0x257f6d=_0x257f6d-0x146;let _0x4ffbb6=_0x3fb0d8[_0x257f6d];return _0x4ffbb6;},a76_0x257f(_0x5e2eda,_0xb37a7a);}(function(_0x271842,_0x249a00){const _0x4345ab=a76_0x257f,_0x17626a=_0x271842();while(!![]){try{const _0x467223=parseInt(_0x4345ab(0x15d))/0x1+-parseInt(_0x4345ab(0x15a))/0x2*(-parseInt(_0x4345ab(0x15f))/0x3)+-parseInt(_0x4345ab(0x154))/0x4+parseInt(_0x4345ab(0x157))/0x5*(parseInt(_0x4345ab(0x160))/0x6)+parseInt(_0x4345ab(0x163))/0x7+-parseInt(_0x4345ab(0x155))/0x8+-parseInt(_0x4345ab(0x151))/0x9;if(_0x467223===_0x249a00)break;else _0x17626a['push'](_0x17626a['shift']());}catch(_0x435171){_0x17626a['push'](_0x17626a['shift']());}}}(a76_0x3fb0,0x7c466));const a76_0x2358f8={};a76_0x2358f8[a76_0x123a89(0x14b)]='BROWSERSTACK_PLATFORM_INDEX',a76_0x2358f8['KEY_HUB_URL']=a76_0x123a89(0x14f),a76_0x2358f8[a76_0x123a89(0x161)]=a76_0x123a89(0x158),a76_0x2358f8[a76_0x123a89(0x162)]=a76_0x123a89(0x14d),a76_0x2358f8[a76_0x123a89(0x148)]='capabilities',a76_0x2358f8[a76_0x123a89(0x150)]=a76_0x123a89(0x152),a76_0x2358f8[a76_0x123a89(0x164)]=a76_0x123a89(0x159),a76_0x2358f8[a76_0x123a89(0x146)]='ended_at',a76_0x2358f8[a76_0x123a89(0x14c)]=a76_0x123a89(0x14e),a76_0x2358f8['COMMAND_NEW_SESSION']=a76_0x123a89(0x15e),a76_0x2358f8['COMMAND_GET']='get',a76_0x2358f8[a76_0x123a89(0x14a)]=a76_0x123a89(0x153),a76_0x2358f8['COMMAND_W3C_EXECUTE_SCRIPT']=a76_0x123a89(0x15b),a76_0x2358f8[a76_0x123a89(0x149)]=a76_0x123a89(0x147),a76_0x2358f8[a76_0x123a89(0x156)]='quit';const AutomationFrameworkConstants=a76_0x2358f8;module[a76_0x123a89(0x15c)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a77_0x104818=a77_0x231e;(function(_0x1dc538,_0x3ef5e4){const _0x2b8ba4=a77_0x231e,_0x93c1ee=_0x1dc538();while(!![]){try{const _0xae9511=parseInt(_0x2b8ba4(0x180))/0x1*(-parseInt(_0x2b8ba4(0x184))/0x2)+parseInt(_0x2b8ba4(0x18b))/0x3+parseInt(_0x2b8ba4(0x176))/0x4*(-parseInt(_0x2b8ba4(0x14e))/0x5)+parseInt(_0x2b8ba4(0x156))/0x6+-parseInt(_0x2b8ba4(0x162))/0x7*(-parseInt(_0x2b8ba4(0x159))/0x8)+-parseInt(_0x2b8ba4(0x150))/0x9+parseInt(_0x2b8ba4(0x185))/0xa;if(_0xae9511===_0x3ef5e4)break;else _0x93c1ee['push'](_0x93c1ee['shift']());}catch(_0x8d826e){_0x93c1ee['push'](_0x93c1ee['shift']());}}}(a77_0x40c1,0x55b41));const a77_0x5ba5cb={};a77_0x5ba5cb['KEY_TEST_UUID']=a77_0x104818(0x198),a77_0x5ba5cb['KEY_TEST_ID']=a77_0x104818(0x151),a77_0x5ba5cb[a77_0x104818(0x18e)]=a77_0x104818(0x195),a77_0x5ba5cb[a77_0x104818(0x16e)]=a77_0x104818(0x190),a77_0x5ba5cb[a77_0x104818(0x17a)]='test_tags',a77_0x5ba5cb[a77_0x104818(0x191)]='test_result',a77_0x5ba5cb['KEY_TEST_RESULT_AT']=a77_0x104818(0x186),a77_0x5ba5cb['KEY_TEST_STARTED_AT']=a77_0x104818(0x18a),a77_0x5ba5cb[a77_0x104818(0x173)]=a77_0x104818(0x192),a77_0x5ba5cb[a77_0x104818(0x19a)]=a77_0x104818(0x16b),a77_0x5ba5cb[a77_0x104818(0x153)]='test_duration',a77_0x5ba5cb['KEY_TEST_SCOPE']=a77_0x104818(0x196),a77_0x5ba5cb[a77_0x104818(0x19b)]=a77_0x104818(0x14f),a77_0x5ba5cb[a77_0x104818(0x182)]='test_framework_name',a77_0x5ba5cb['KEY_TEST_FRAMEWORK_VERSION']='test_framework_version',a77_0x5ba5cb['KEY_TEST_CODE']=a77_0x104818(0x178),a77_0x5ba5cb['KEY_TEST_RERUN_NAME']=a77_0x104818(0x174),a77_0x5ba5cb[a77_0x104818(0x158)]=a77_0x104818(0x163),a77_0x5ba5cb[a77_0x104818(0x160)]='platform_index',a77_0x5ba5cb[a77_0x104818(0x17e)]='test_failure',a77_0x5ba5cb[a77_0x104818(0x168)]='test_failure_type',a77_0x5ba5cb['KEY_TEST_FAILURE_REASON']=a77_0x104818(0x170),a77_0x5ba5cb[a77_0x104818(0x169)]='test_logs',a77_0x5ba5cb[a77_0x104818(0x14d)]=a77_0x104818(0x17b),a77_0x5ba5cb[a77_0x104818(0x15d)]='test_session_name',a77_0x5ba5cb[a77_0x104818(0x157)]='automate_session_name',a77_0x5ba5cb[a77_0x104818(0x164)]=a77_0x104818(0x16f),a77_0x5ba5cb['KEY_AUTOMATE_SESSION_REASON']=a77_0x104818(0x189),a77_0x5ba5cb[a77_0x104818(0x17c)]='event_started_at',a77_0x5ba5cb[a77_0x104818(0x16c)]='event_ended_at',a77_0x5ba5cb[a77_0x104818(0x18f)]=a77_0x104818(0x17d),a77_0x5ba5cb[a77_0x104818(0x15e)]=a77_0x104818(0x155),a77_0x5ba5cb[a77_0x104818(0x172)]='hook_failure_type',a77_0x5ba5cb[a77_0x104818(0x194)]='hook_failure_reason',a77_0x5ba5cb['KEY_HOOK_FAILURE']='hook_failure',a77_0x5ba5cb['KEY_HOOK_LOGS']=a77_0x104818(0x17f),a77_0x5ba5cb[a77_0x104818(0x177)]=a77_0x104818(0x152),a77_0x5ba5cb[a77_0x104818(0x154)]=a77_0x104818(0x166),a77_0x5ba5cb['DEFAULT_HOOK_RESULT']=a77_0x104818(0x166),a77_0x5ba5cb[a77_0x104818(0x187)]=a77_0x104818(0x18d),a77_0x5ba5cb[a77_0x104818(0x15b)]=a77_0x104818(0x15f),a77_0x5ba5cb[a77_0x104818(0x161)]='^(BEFORE_|AFTER_)',a77_0x5ba5cb['KEY_HOOKS_STARTED']='test_hooks_started',a77_0x5ba5cb[a77_0x104818(0x18c)]=a77_0x104818(0x197),a77_0x5ba5cb[a77_0x104818(0x15a)]=a77_0x104818(0x183),a77_0x5ba5cb['KEY_HOOK_LAST_FINISHED']='test_hook_last_finished',a77_0x5ba5cb['KEY_LOGS']=a77_0x104818(0x16d),a77_0x5ba5cb[a77_0x104818(0x179)]=a77_0x104818(0x165),a77_0x5ba5cb[a77_0x104818(0x199)]=a77_0x104818(0x16a),a77_0x5ba5cb['KEY_FILE_SIZE']=a77_0x104818(0x188),a77_0x5ba5cb[a77_0x104818(0x167)]='file_name',a77_0x5ba5cb[a77_0x104818(0x15c)]='file_path',a77_0x5ba5cb[a77_0x104818(0x193)]=a77_0x104818(0x181),a77_0x5ba5cb[a77_0x104818(0x171)]=0xa,a77_0x5ba5cb['MAX_NESTED_STEP_DEPTH']=0x2;const TestFrameworkConstants=a77_0x5ba5cb;module[a77_0x104818(0x175)]=TestFrameworkConstants;function a77_0x231e(_0x1f8c95,_0x1e79d0){const _0x40c17c=a77_0x40c1();return a77_0x231e=function(_0x231e20,_0x365a04){_0x231e20=_0x231e20-0x14d;let _0xc6f25e=_0x40c17c[_0x231e20];return _0xc6f25e;},a77_0x231e(_0x1f8c95,_0x1e79d0);}function a77_0x40c1(){const _0x202f59=['24vgYFAN','KEY_HOOK_LAST_STARTED','KIND_LOG','KEY_FILE_PATH','KEY_SESSION_NAME','KEY_HOOK_RESULT','TEST_LOG','KEY_PLATFORM_INDEX','HOOK_REGEX','1391719GQluhx','retry_of','KEY_AUTOMATE_SESSION_STATUS','custom_metadata','pending','KEY_FILE_NAME','KEY_TEST_FAILURE_TYPE','KEY_TEST_LOGS','test_attachments','test_location','KEY_EVENT_ENDED_AT','logs','KEY_TEST_FILE_PATH','automate_session_status','test_failure_reason','MAX_TOP_LEVEL_STEPS','KEY_HOOK_FAILURE_TYPE','KEY_TEST_ENDED_AT','test_rerun_name','exports','255924FYqFFF','KEY_HOOK_NAME','test_code','KEY_CUSTOM_TAGS','KEY_TEST_TAGS','test_meta','KEY_EVENT_STARTED_AT','hook_id','KEY_TEST_FAILURE','hook_logs','1IBARkh','file_level','KEY_TEST_FRAMEWORK_NAME','test_hook_last_started','1055910HrLlFr','2631680hweCTk','test_result_at','KIND_SCREENSHOT','file_size','automate_session_reason','test_started_at','1749480PJlwWt','KEY_HOOKS_FINISHED','TEST_SCREENSHOT','KEY_TEST_NAME','KEY_HOOK_ID','test_file_path','KEY_TEST_RESULT','test_ended_at','KEY_FILE_LEVEL','KEY_HOOK_FAILURE_REASON','test_name','test_scope','test_hooks_finished','test_uuid','KEY_TEST_ATTACHMENTS','KEY_TEST_LOCATION','KEY_TEST_SCOPES','KEY_TEST_META','45CrfTdh','test_scopes','740304DFRSjT','test_id','hook_name','KEY_TEST_DURATION','DEFAULT_TEST_RESULT','hook_result','565812syNxPZ','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_RETRY_OF'];a77_0x40c1=function(){return _0x202f59;};return a77_0x40c1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a78_0x406ffa=a78_0x52dc;(function(_0x5d6b0d,_0x5d369f){const _0x43c770=a78_0x52dc,_0x1e7050=_0x5d6b0d();while(!![]){try{const _0x1c27d9=parseInt(_0x43c770(0x12a))/0x1+parseInt(_0x43c770(0x135))/0x2*(parseInt(_0x43c770(0x14b))/0x3)+-parseInt(_0x43c770(0x1eb))/0x4*(-parseInt(_0x43c770(0x143))/0x5)+parseInt(_0x43c770(0x12e))/0x6*(parseInt(_0x43c770(0x18f))/0x7)+-parseInt(_0x43c770(0x17e))/0x8*(parseInt(_0x43c770(0x196))/0x9)+-parseInt(_0x43c770(0x1f2))/0xa*(parseInt(_0x43c770(0x1e5))/0xb)+-parseInt(_0x43c770(0x165))/0xc*(parseInt(_0x43c770(0x1f4))/0xd);if(_0x1c27d9===_0x5d369f)break;else _0x1e7050['push'](_0x1e7050['shift']());}catch(_0x6be20d){_0x1e7050['push'](_0x1e7050['shift']());}}}(a78_0x53a3,0x83f0d));function a78_0x53a3(){const _0x23d63b=['BCiSi','\x20&\x20hook\x20=\x20','2ngOqPr','KEY_TEST_FRAMEWORK_VERSION','createTestFrameworkEventPayload\x20testId:\x20','code','result','sendLogCreatedEvent:\x20for\x20testId:\x20','EkVzm','KEY_HOOK_LOGS','\x20for\x20test:\x20','Processing\x20','getTestFrameworksVersions','instance','name','logCreatedEvent','831445zyaDzL','../grpcClient','slice','parseCucumberTestResult','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_HOOK_ID','processPendingHooks','PZWnw','2699385TaPVCQ','KEY_TEST_RESULT_AT','KEY_TEST_SCOPE','storePendingHook','KEY_TEST_STARTED_AT','HJZtV','\x20hookState:\x20','../../../helpers/classLogger.js','error','KEY_TEST_ENDED_AT','inspect','keys','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','qcirT','failure','../instances/trackedInstance.js','resolveInstance','PRE','KEY_AUTOMATE_SESSION_NAME','hooks','getTrackedInstance','KEY_TEST_SCOPES','vrVMn','matchHookRegex','testFrameworkState',',\x20state:\x20','2076SWYdVB','\x20batch\x20','testUUID','debug','trackEvent:\x20unsupported\x20testFrameworkState=','../../../helpers/helper.js','DEFAULT_TEST_RESULT','SGihC','Cucumber\x20log\x20created\x20event','POST','getInstance','kablL','UfwvI','customRerunParam','\x20\x20and\x20args\x20=\x20','failure_data','PrVnO','push','UArIZ','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','addPendingHook','KEY_TEST_META','rerun_name','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','RdZBR','88488JzVxYl','jKudz','failure_type','../TestInfo.js','./testFramework','executionContext','KEY_TEST_FRAMEWORK_NAME','Tracked\x20cucumber\x20hook\x20event:\x20','util','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','file_name','\x20response=','\x20target=','hookState','Stored\x20pending\x20hook\x20for\x20testId:\x20','toISOString','7puiGhl','pUhmY','test','KEY_TEST_FAILURE','KEY_TEST_RESULT','createTestFrameworkEventPayload','getContext','279jgsOKn','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','testData','stringify',',\x20state=','UnhandledError','TEST','runHooks','KEY_TEST_RERUN_NAME','EGPII','jqduv','SsDZD','hasPendingHooks','getTestUUID','fXMks','KEY_LOGS','KEY_TEST_TAGS','./constants/testFrameworkConstants.js','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','location','getProcessId','from','\x20with\x20result:\x20','KEY_HOOKS_STARTED','qVvIM','zmdob','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','NONE','FkmHq','KEY_HOOK_LAST_STARTED','\x20pending\x20hooks\x20for\x20testId:\x20','EuKRw','../state/testFrameworkState.js','LOG_REPORT','endedAt','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','EuWVU','createContext','Error\x20in\x20createTestFrameworkEventPayload:\x20','getAllData','concat','KEY_HOOK_LAST_FINISHED','KEY_TEST_FAILURE_REASON','GJpfi','exports','eventJson','../cliUtils.js','KEY_TEST_FILE_PATH','split','format','getTestFrameworks','setTrackedInstance','KEY_TEST_UUID','KEY_TEST_LOCATION','trackHookEvent','WYgNK','Updated\x20cucumber\x20test\x20result:\x20','finished_at','KEY_CUSTOM_TAGS','KEY_HOOK_FAILURE_TYPE','scopes','startedAt','meta','hook_type','platformIndex','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','JdXQr','KEY_TEST_LOGS','parseCucumberTest','base64','KEY_TEST_ATTACHMENTS','getTestDetails','uuid','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','failed',',\x20error:\x20','\x20and\x20args\x20=\x20','DEFAULT_HOOK_RESULT','101607TWicCe','length','sendLogCreatedEvent','setTestDetails','KEY_HOOK_FAILURE','getCurrentHookState','4fEJuwd','toString','getRef','browserstackPlatformIndex',',\x20hookState:\x20','KdREE','getThreadId','790PqmiHN','elmIb','43238aDmyKr','trackEvent','\x20with\x20id\x20','trackCucumberInstance','finishedAt','body','test_run_id','key','KEY_HOOK_NAME','MuDAL','KEY_TEST_FAILURE_TYPE','\x20&\x20hookState=','pop','get','getId','KEY_HOOK_RESULT','KEY_HOOKS_FINISHED','xWZJv','addMultipleEntries','trackCucumberInstance:\x20saved\x20instance\x20contextId=','373576lBClEJ','ceil','xToaj','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','4492686oeucTK','KEY_TEST_CODE','readLogObjects','../instances/testFrameworkInstance.js','args'];a78_0x53a3=function(){return _0x23d63b;};return a78_0x53a3();}const TestFramework=require(a78_0x406ffa(0x182)),TestFrameworkState=require(a78_0x406ffa(0x1b6)),HookState=require('../state/hookState.js'),{createClassLogger}=require(a78_0x406ffa(0x152)),TestFrameworkInstance=require(a78_0x406ffa(0x131)),CLIUtils=require(a78_0x406ffa(0x1c4)),TrackedInstance=require(a78_0x406ffa(0x15a)),TestFrameworkConstants=require(a78_0x406ffa(0x1a7)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a78_0x406ffa(0x16a)),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require(a78_0x406ffa(0x1de)),util=require(a78_0x406ffa(0x186)),TestInfo=require(a78_0x406ffa(0x181)),GrpcClient=require(a78_0x406ffa(0x144));class CucumberTestFramework extends TestFramework{constructor(_0xaf5a50,_0x3d75df,_0x26735){super(_0xaf5a50,_0x3d75df,_0x26735);}async[a78_0x406ffa(0x1f5)](_0x3a2fc8,_0x42e164,_0x2c3a7a={}){const _0x4f3ad5=a78_0x406ffa,_0x108d65={};_0x108d65[_0x4f3ad5(0x171)]=_0x4f3ad5(0x1d7),_0x108d65[_0x4f3ad5(0x1f0)]=function(_0xc5beff,_0x1b0803){return _0xc5beff===_0x1b0803;},_0x108d65['EuKRw']=function(_0x21bdcf,_0x525f33){return _0x21bdcf===_0x525f33;},_0x108d65['vrVMn']=_0x4f3ad5(0x197);const _0x5b570f=_0x108d65;await super['trackEvent'](_0x3a2fc8,_0x42e164,_0x2c3a7a);const _0x24dfda=this['resolveInstance'](_0x3a2fc8,_0x42e164,_0x2c3a7a);if(!_0x24dfda){logger['debug'](_0x5b570f[_0x4f3ad5(0x171)]);return;}try{let _0x496b59,_0x55fa1a;switch(_0x3a2fc8){case TestFrameworkState[_0x4f3ad5(0x19c)]:_0x496b59=_0x2c3a7a[_0x4f3ad5(0x191)],_0x55fa1a=TestInfo[_0x4f3ad5(0x1a3)](_0x496b59['id']);if(_0x5b570f['KdREE'](_0x42e164,HookState[_0x4f3ad5(0x15c)])){logger[_0x4f3ad5(0x168)](_0x4f3ad5(0x187)+_0x496b59['id']);const _0xb90180={};_0xb90180[_0x4f3ad5(0x167)]=_0x55fa1a,_0xb90180[_0x4f3ad5(0x198)]=_0x496b59,_0x24dfda[_0x4f3ad5(0x128)](this['parseCucumberTest'](_0xb90180)),logger[_0x4f3ad5(0x168)](_0x4f3ad5(0x1a8)+_0x496b59['id']),await this[_0x4f3ad5(0x149)](_0x24dfda,_0x496b59['id']);}else{if(_0x5b570f[_0x4f3ad5(0x1b5)](_0x42e164,HookState['POST'])){const _0x199be6={};_0x199be6[_0x4f3ad5(0x167)]=_0x55fa1a,_0x199be6[_0x4f3ad5(0x198)]=_0x496b59,_0x24dfda[_0x4f3ad5(0x128)](this[_0x4f3ad5(0x146)](_0x199be6)),await this[_0x4f3ad5(0x149)](_0x24dfda,_0x496b59['id']);}}break;case TestFrameworkState[_0x4f3ad5(0x1b7)]:_0x5b570f[_0x4f3ad5(0x1b5)](_0x42e164,HookState['POST'])&&await this[_0x4f3ad5(0x1e7)](_0x24dfda,_0x3a2fc8,_0x2c3a7a);break;default:if(CLIUtils[_0x4f3ad5(0x162)](_0x3a2fc8[_0x4f3ad5(0x1ec)]()['split']('.')[0x1])){const _0x15579b=await this['trackHookEvent'](_0x24dfda,_0x3a2fc8,_0x42e164,_0x2c3a7a);_0x24dfda[_0x4f3ad5(0x128)](_0x15579b);}else logger['debug'](_0x4f3ad5(0x169)+_0x3a2fc8+_0x4f3ad5(0x1ff)+_0x42e164);break;}}catch(_0x28f700){logger['error'](util[_0x4f3ad5(0x1c7)](_0x5b570f[_0x4f3ad5(0x161)],_0x3a2fc8,_0x42e164,_0x2c3a7a[_0x4f3ad5(0x1e6)],_0x28f700));}_0x2c3a7a[_0x4f3ad5(0x140)]=_0x24dfda,await this['runHooks'](_0x24dfda,_0x3a2fc8,_0x42e164,_0x2c3a7a);}['resolveInstance'](_0x162586,_0x1474d9,_0x516984={}){const _0x1c5bad=a78_0x406ffa,_0x25ac3d={};_0x25ac3d[_0x1c5bad(0x177)]=function(_0x2f6549,_0x37abae){return _0x2f6549===_0x37abae;};const _0x156008=_0x25ac3d;let _0x302ef3=null;return(_0x156008['UArIZ'](_0x162586,TestFrameworkState['INIT_TEST'])||_0x156008[_0x1c5bad(0x177)](_0x162586,TestFrameworkState['NONE']))&&this['trackCucumberInstance'](_0x162586,_0x516984),_0x302ef3=TestFramework[_0x1c5bad(0x15f)](),_0x302ef3;}[a78_0x406ffa(0x1f7)](_0x29ab66,_0x11b0ff){const _0x184929=a78_0x406ffa,_0xe3f146=CLIUtils['getCurrentInstanceName'](),_0x1a0e36=TrackedInstance[_0x184929(0x1bb)](_0xe3f146);let _0x151532=null;logger['debug'](_0x184929(0x1b9)+_0xe3f146+_0x184929(0x19a)+_0x29ab66),_0x151532=new TestFrameworkInstance(_0x1a0e36,this[_0x184929(0x1c8)](),this[_0x184929(0x13f)](),_0x29ab66,HookState[_0x184929(0x1b1)]),TestFramework[_0x184929(0x1c9)](_0x1a0e36,_0x151532),logger[_0x184929(0x168)](_0x184929(0x129)+_0x1a0e36[_0x184929(0x202)]()+_0x184929(0x18b)+_0xe3f146);}[a78_0x406ffa(0x1da)](_0x326939){const _0x1e3a3f=a78_0x406ffa,_0x1822b2={};_0x1822b2[_0x1e3a3f(0x1a4)]='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x146595=_0x1822b2,{testUUID:_0x24efdd,testData:_0xfa829b}=_0x326939;if(!_0xfa829b||!_0xfa829b['uuid'])return logger[_0x1e3a3f(0x168)](_0x146595[_0x1e3a3f(0x1a4)]),{};const _0x104359=_0x24efdd,_0x55592b=_0xfa829b['uuid'],_0x3e1f00=this['getTestFrameworks']()[0x0],_0x1c53e1=this[_0x1e3a3f(0x13f)](),_0x339bd3={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x3e1f00,[TestFrameworkConstants[_0x1e3a3f(0x136)]]:_0x1c53e1[_0x3e1f00],[TestFrameworkConstants[_0x1e3a3f(0x1d9)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x1e3a3f(0x1ad)]]:{},[TestFrameworkConstants[_0x1e3a3f(0x1ca)]]:_0x104359,[TestFrameworkConstants[_0x1e3a3f(0x193)]]:TestFrameworkConstants[_0x1e3a3f(0x16b)],[TestFrameworkConstants[_0x1e3a3f(0x15d)]]:_0xfa829b[_0x1e3a3f(0x141)]||'',[TestFrameworkConstants[_0x1e3a3f(0x1c5)]]:_0xfa829b[_0x1e3a3f(0x189)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x55592b,[TestFrameworkConstants['KEY_TEST_NAME']]:_0xfa829b[_0x1e3a3f(0x141)]||'',[TestFrameworkConstants[_0x1e3a3f(0x1cb)]]:_0xfa829b[_0x1e3a3f(0x1a9)]||'',[TestFrameworkConstants[_0x1e3a3f(0x12f)]]:_0xfa829b[_0x1e3a3f(0x1f9)]?.[_0x1e3a3f(0x138)]||null,[TestFrameworkConstants[_0x1e3a3f(0x1a6)]]:_0xfa829b['tags']||[],[TestFrameworkConstants[_0x1e3a3f(0x14f)]]:_0xfa829b[_0x1e3a3f(0x1d3)]||new Date()[_0x1e3a3f(0x18e)](),[TestFrameworkConstants[_0x1e3a3f(0x14d)]]:_0xfa829b[_0x1e3a3f(0x1d2)]?.[0x0]||'',[TestFrameworkConstants[_0x1e3a3f(0x160)]]:_0xfa829b[_0x1e3a3f(0x1d2)]||[],[TestFrameworkConstants[_0x1e3a3f(0x19e)]]:_0xfa829b[_0x1e3a3f(0x172)]?.[_0x1e3a3f(0x17b)]||_0xfa829b[_0x1e3a3f(0x141)]||'',[TestFrameworkConstants[_0x1e3a3f(0x1d0)]]:{},[TestFrameworkConstants[_0x1e3a3f(0x17a)]]:_0xfa829b[_0x1e3a3f(0x1d4)]||{}};TestInfo[_0x1e3a3f(0x1e8)](_0x55592b,_0x339bd3),logger[_0x1e3a3f(0x168)]('Parsed\x20cucumber\x20test:\x20'+_0xfa829b[_0x1e3a3f(0x141)]+'\x20with\x20UUID:\x20'+_0x104359);const _0x1b6a42={};return _0x1b6a42[_0x55592b]=_0x339bd3,_0x1b6a42;}['parseCucumberTestResult'](_0x80eeb6){const _0x341e9d=a78_0x406ffa,_0x240c3e={'FkmHq':_0x341e9d(0x1e0),'SsDZD':'unknown','RdZBR':function(_0x1f0a24,_0x33a96d){return _0x1f0a24===_0x33a96d;},'lLzwZ':_0x341e9d(0x1e1),'kablL':_0x341e9d(0x19b),'qVvIM':function(_0x2c81c9,_0x3c29ab,_0x126e50){return _0x2c81c9(_0x3c29ab,_0x126e50);},'xToaj':function(_0x216ac9,_0x117ae6){return _0x216ac9>_0x117ae6;},'jKudz':function(_0x36eb9c,_0x5f23a2){return _0x36eb9c>_0x5f23a2;}},{testUUID:_0x4f6db8,testData:_0x3e31aa}=_0x80eeb6;if(!_0x3e31aa||!_0x3e31aa[_0x341e9d(0x1de)])return logger[_0x341e9d(0x168)](_0x240c3e[_0x341e9d(0x1b2)]),{};const _0x2a0342=this[_0x341e9d(0x15b)](TestFrameworkState[_0x341e9d(0x19c)],HookState[_0x341e9d(0x16e)]),_0xbe0c4f=_0x3e31aa[_0x341e9d(0x1de)],_0x21e9a5=TestInfo[_0x341e9d(0x1dd)](_0xbe0c4f)||{},_0x5f5d99=_0x21e9a5?_0x21e9a5[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{}:{},_0x272078={..._0x21e9a5,[TestFrameworkConstants[_0x341e9d(0x193)]]:_0x3e31aa['result']||_0x240c3e[_0x341e9d(0x1a1)],[TestFrameworkConstants[_0x341e9d(0x154)]]:_0x3e31aa[_0x341e9d(0x1f8)]||new Date()[_0x341e9d(0x18e)](),[TestFrameworkConstants[_0x341e9d(0x14c)]]:new Date()[_0x341e9d(0x18e)](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x5f5d99,[TestFrameworkConstants[_0x341e9d(0x1a5)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x3e31aa[_0x341e9d(0x1d4)]||{}};_0x240c3e[_0x341e9d(0x17d)](_0x3e31aa[_0x341e9d(0x139)],_0x240c3e['lLzwZ'])&&_0x3e31aa[_0x341e9d(0x159)]&&(_0x272078[TestFrameworkConstants[_0x341e9d(0x1fe)]]=_0x3e31aa['failure_type']||_0x240c3e[_0x341e9d(0x170)],_0x272078[TestFrameworkConstants[_0x341e9d(0x1c0)]]=_0x3e31aa['failure_reason']||'',_0x272078[TestFrameworkConstants[_0x341e9d(0x192)]]=_0x3e31aa[_0x341e9d(0x159)]);const _0x5be397=TestInfo[_0x341e9d(0x1dd)](_0xbe0c4f)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x307ffc=_0x240c3e[_0x341e9d(0x1ae)](getManualUploadLogs,_0x5be397,_0x2a0342['getAllData']()[_0x341e9d(0x201)](_0xbe0c4f)[TestFrameworkConstants[_0x341e9d(0x1ca)]]);if(_0x240c3e[_0x341e9d(0x12c)](_0x307ffc[_0x341e9d(0x1e6)],0x0)){const _0x330e3f=_0x272078[TestFrameworkConstants['KEY_LOGS']]||[];_0x272078[TestFrameworkConstants[_0x341e9d(0x1a5)]]=[..._0x330e3f,..._0x307ffc];}_0x3e31aa[_0x341e9d(0x15e)]&&_0x240c3e[_0x341e9d(0x17f)](_0x3e31aa['hooks'][_0x341e9d(0x1e6)],0x0)&&(_0x272078[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x3e31aa[_0x341e9d(0x15e)]);TestInfo[_0x341e9d(0x1e8)](_0xbe0c4f,_0x272078),logger[_0x341e9d(0x168)](_0x341e9d(0x1ce)+_0x3e31aa['name']+_0x341e9d(0x1ac)+_0x3e31aa[_0x341e9d(0x139)]);const _0x938938={};return _0x938938[_0xbe0c4f]=_0x272078,_0x938938;}async[a78_0x406ffa(0x1cc)](_0x4f1e74,_0xd603df,_0x254d57,_0x5d2b37){const _0x49c4ed=a78_0x406ffa,_0x5c7323={'EGPII':_0x49c4ed(0x157),'eOrzv':function(_0x632ac){return _0x632ac();},'QBefl':function(_0x250eb3,_0x5eaf05){return _0x250eb3 in _0x5eaf05;},'EkVzm':function(_0x1000d5,_0x338605){return _0x1000d5 in _0x338605;},'HJZtV':function(_0x55a70a,_0x585e6e){return _0x55a70a===_0x585e6e;},'PZWnw':function(_0xc3556f,_0x2bc6cf){return _0xc3556f===_0x2bc6cf;},'zmdob':function(_0x4d1fa7,_0x56895b){return _0x4d1fa7>_0x56895b;},'qcirT':_0x49c4ed(0x1e1),'xWZJv':_0x49c4ed(0x19b),'JdXQr':'passed','elmIb':function(_0x3219b6,_0x3e9b24){return _0x3219b6!==_0x3e9b24;}},{hookData:_0x18cdd3}=_0x5d2b37;if(!_0x18cdd3)return logger[_0x49c4ed(0x168)](_0x5c7323[_0x49c4ed(0x19f)]),{};const _0x49571c=_0x18cdd3[_0x49c4ed(0x1de)]||_0x5c7323['eOrzv'](uuidv4),_0x4986e7=_0x18cdd3[_0x49c4ed(0x1fa)],_0xba335a=_0xd603df[_0x49c4ed(0x1ec)]()['split']('.')[0x1],_0x325e15=TestInfo['getTestDetails'](_0x4986e7)[TestFrameworkConstants[_0x49c4ed(0x1d0)]]||{},_0x9e671a=_0x4f1e74[_0x49c4ed(0x1bd)]()[_0x49c4ed(0x201)](_0x4986e7);if(!_0x9e671a)return logger[_0x49c4ed(0x168)]('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x4986e7+',\x20storing\x20as\x20pending\x20hook'),this['storePendingHook'](_0x4f1e74,_0x4986e7,_0xd603df,_0x254d57,_0x5d2b37),{};let _0x211bdf=_0x9e671a[TestFrameworkConstants[_0x49c4ed(0x1ad)]];!_0x211bdf&&(_0x211bdf={});!_0x5c7323['QBefl'](_0xba335a,_0x211bdf)&&(_0x211bdf[_0xba335a]=[]);let _0xa949fb=_0x9e671a[TestFrameworkConstants[_0x49c4ed(0x204)]];!_0xa949fb&&(_0xa949fb={});!_0x5c7323[_0x49c4ed(0x13b)](_0xba335a,_0xa949fb)&&(_0xa949fb[_0xba335a]=[]);const _0x5e96e8={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x211bdf,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0xa949fb},_0x2ec3bd={};_0x2ec3bd[_0x4986e7]=_0x5e96e8;const _0x41e74b=_0x2ec3bd;if(_0x5c7323[_0x49c4ed(0x150)](_0x254d57,HookState[_0x49c4ed(0x15c)])){const _0x4fb93b={[TestFrameworkConstants[_0x49c4ed(0x148)]]:_0x49571c,[TestFrameworkConstants[_0x49c4ed(0x203)]]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0x18cdd3['started_at'],[TestFrameworkConstants[_0x49c4ed(0x13c)]]:[],[TestFrameworkConstants[_0x49c4ed(0x1fc)]]:_0x18cdd3['hook_type'],[TestFrameworkConstants[_0x49c4ed(0x1d0)]]:_0x325e15};_0x4fb93b[_0x49c4ed(0x1fb)]=_0xba335a;const _0x242bbf=_0x4fb93b;_0x211bdf[_0xba335a][_0x49c4ed(0x176)](_0x242bbf),_0x41e74b[_0x4986e7][TestFrameworkConstants[_0x49c4ed(0x1b3)]]=_0xba335a,logger[_0x49c4ed(0x168)](_0x49c4ed(0x17c)+_0xba335a+_0x49c4ed(0x134)+_0x242bbf+_0x49c4ed(0x173)+_0x5d2b37);}else{if(_0x5c7323['PZWnw'](_0x254d57,HookState[_0x49c4ed(0x16e)])){const _0xe2e236=_0x18cdd3[_0x49c4ed(0x139)],_0x385a60=_0x211bdf[_0xba335a]||[];logger[_0x49c4ed(0x168)](_0x49c4ed(0x1df)+_0x385a60+_0x49c4ed(0x1e3)+_0x5d2b37);if(_0x5c7323[_0x49c4ed(0x1af)](_0x385a60[_0x49c4ed(0x1e6)],0x0)){const _0xaa1fcb=_0x385a60[_0x49c4ed(0x200)]();_0x5c7323[_0x49c4ed(0x14a)](_0x18cdd3[_0x49c4ed(0x139)],_0x5c7323[_0x49c4ed(0x158)])&&_0x18cdd3['failure_data']?(_0xaa1fcb[TestFrameworkConstants[_0x49c4ed(0x1d1)]]=_0x18cdd3[_0x49c4ed(0x180)]||_0x5c7323[_0x49c4ed(0x205)],_0xaa1fcb[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x18cdd3['failure_reason']||'',_0xaa1fcb[TestFrameworkConstants[_0x49c4ed(0x1e9)]]=_0x18cdd3[_0x49c4ed(0x174)]):_0xaa1fcb[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x5c7323[_0x49c4ed(0x1d8)];_0x5c7323[_0x49c4ed(0x1f3)](_0xe2e236,TestFrameworkConstants[_0x49c4ed(0x1e4)])&&(_0xaa1fcb[TestFrameworkConstants[_0x49c4ed(0x203)]]=_0xe2e236);_0xaa1fcb[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x18cdd3[_0x49c4ed(0x1cf)]||new Date()['toISOString'](),_0xaa1fcb[TestFrameworkConstants[_0x49c4ed(0x1d0)]]=_0x325e15;const _0x393ead=_0xaa1fcb[TestFrameworkConstants[_0x49c4ed(0x148)]];!_0xa949fb[_0xba335a]&&(_0xa949fb[_0xba335a]=[]),_0xa949fb[_0xba335a][_0x49c4ed(0x176)](_0xaa1fcb),_0x41e74b[_0x4986e7][TestFrameworkConstants[_0x49c4ed(0x1bf)]]=_0xba335a;}}}return logger[_0x49c4ed(0x168)](_0x49c4ed(0x185)+_0x18cdd3[_0x49c4ed(0x1d5)]+_0x49c4ed(0x1f6)+_0x49571c+_0x49c4ed(0x13d)+_0x4986e7),_0x41e74b;}[a78_0x406ffa(0x194)](_0x218d5f){const _0x5a96fd=a78_0x406ffa,_0x14c0aa={};_0x14c0aa['LpCia']=_0x5a96fd(0x1db);const _0x283459=_0x14c0aa;try{const _0x472946=_0x218d5f['test']?_0x218d5f['test']['id']:_0x218d5f['hookData'][_0x5a96fd(0x1fa)],_0x2125f4=_0x218d5f['instance'],_0x162cde=_0x2125f4[_0x5a96fd(0x195)](),_0x553764=_0x2125f4[_0x5a96fd(0x1bd)]()[_0x5a96fd(0x201)](_0x472946);if(!_0x553764)return logger[_0x5a96fd(0x168)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x472946),{};logger[_0x5a96fd(0x168)](_0x5a96fd(0x137)+_0x472946);const {[TestFrameworkConstants[_0x5a96fd(0x184)]]:_0x3165ab='',[TestFrameworkConstants[_0x5a96fd(0x136)]]:_0x3f3826='',[TestFrameworkConstants[_0x5a96fd(0x14f)]]:_0x32734b='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x322601=''}=_0x553764,_0x33d5ea=_0x2125f4['getCurrentTestState']()[_0x5a96fd(0x1ec)]()[_0x5a96fd(0x1c6)]('.')[0x1],_0x57fb1b=_0x2125f4[_0x5a96fd(0x1ea)]()[_0x5a96fd(0x1ec)]()['split']('.')[0x1],_0x37d6ef=global?.[_0x5a96fd(0x1ee)]??0x0,_0x5c07e9=_0x2125f4[_0x5a96fd(0x1ed)](),_0x387ec6=Buffer[_0x5a96fd(0x1ab)](JSON[_0x5a96fd(0x199)](_0x553764))['toString'](_0x283459['LpCia']),_0x4e2970={'hash':_0x162cde[_0x5a96fd(0x202)](),'threadId':_0x162cde[_0x5a96fd(0x1f1)]()[_0x5a96fd(0x1ec)](),'processId':_0x162cde[_0x5a96fd(0x1aa)]()[_0x5a96fd(0x1ec)]()},_0x2ba51c={};_0x2ba51c[_0x5a96fd(0x1d6)]=_0x37d6ef,_0x2ba51c['testFrameworkName']=_0x3165ab,_0x2ba51c['testFrameworkVersion']=_0x3f3826,_0x2ba51c['testFrameworkState']=_0x33d5ea,_0x2ba51c[_0x5a96fd(0x18c)]=_0x57fb1b,_0x2ba51c[_0x5a96fd(0x1d3)]=_0x32734b,_0x2ba51c[_0x5a96fd(0x1b8)]=_0x322601,_0x2ba51c['uuid']=_0x5c07e9,_0x2ba51c[_0x5a96fd(0x1c3)]=_0x387ec6,_0x2ba51c[_0x5a96fd(0x183)]=_0x4e2970;const _0x3e5b3d=_0x2ba51c;return logger[_0x5a96fd(0x168)](_0x5a96fd(0x1b0)+_0x472946+'\x20testState:\x20'+_0x33d5ea+_0x5a96fd(0x151)+_0x57fb1b),_0x3e5b3d;}catch(_0x1bff3b){return logger[_0x5a96fd(0x153)](_0x5a96fd(0x1bc)+util[_0x5a96fd(0x1c7)](_0x1bff3b)),{};}}async[a78_0x406ffa(0x1e7)](_0x11ff81,_0x193954,_0x5562ee){const _0x56515c=a78_0x406ffa,_0x57146d={'PrVnO':function(_0x18b5a1,_0x4555d0,_0x38780a){return _0x18b5a1(_0x4555d0,_0x38780a);},'jqduv':function(_0x1bf86a,_0x4741f0){return _0x1bf86a===_0x4741f0;},'MuDAL':_0x56515c(0x12d),'pUhmY':function(_0x238871,_0x3d9efb){return _0x238871/_0x3d9efb;},'EuWVU':function(_0x2ed4cb,_0x2e2130){return _0x2ed4cb<_0x2e2130;},'WYgNK':function(_0x31a3cd,_0x29af61){return _0x31a3cd*_0x29af61;},'GJpfi':function(_0x3b3de1,_0x11ec83){return _0x3b3de1+_0x11ec83;},'SGihC':function(_0x29e685,_0x54d0b0){return _0x29e685+_0x54d0b0;},'AgCjD':_0x56515c(0x16d)};try{const _0x1ee31d=_0x5562ee[_0x56515c(0x167)],_0x41072c=_0x11ff81[_0x56515c(0x1bd)]()[_0x56515c(0x201)](_0x1ee31d),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x4a9836='',[TestFrameworkConstants[_0x56515c(0x136)]]:_0x145ae1=''}=_0x41072c,_0x32c9da=TestInfo[_0x56515c(0x130)](_0x1ee31d),_0x3cf94b=TestInfo['getTestDetails'](_0x1ee31d)[TestFrameworkConstants[_0x56515c(0x1dc)]]||{},_0x22c0f1=_0x57146d[_0x56515c(0x175)](getMediaArtifactsLogs,_0x3cf94b,_0x11ff81[_0x56515c(0x1bd)]()['get'](_0x1ee31d)[TestFrameworkConstants[_0x56515c(0x1ca)]]),_0x143116=(_0x32c9da||[])[_0x56515c(0x1be)](_0x22c0f1||[]);if(!_0x143116||_0x57146d[_0x56515c(0x1a0)](_0x143116['length'],0x0)){logger[_0x56515c(0x168)](_0x57146d[_0x56515c(0x1fd)]);return;}const _0x212afa=0x28,_0xab584d=Math[_0x56515c(0x12b)](_0x57146d[_0x56515c(0x190)](_0x143116[_0x56515c(0x1e6)],_0x212afa));for(let _0x1f3e7e=0x0;_0x57146d[_0x56515c(0x1ba)](_0x1f3e7e,_0xab584d);_0x1f3e7e++){const _0x4e042c=_0x57146d[_0x56515c(0x1cd)](_0x1f3e7e,_0x212afa),_0xe06a4a=_0x57146d[_0x56515c(0x1c1)](_0x4e042c,_0x212afa),_0x2cabc3=_0x143116[_0x56515c(0x145)](_0x4e042c,_0xe06a4a),_0x580785={'platformIndex':global?.[_0x56515c(0x1ee)]??0x0,'logs':_0x2cabc3,'testFrameworkName':_0x4a9836,'testFrameworkVersion':_0x145ae1,'testFrameworkState':_0x193954[_0x56515c(0x1ec)]()['split']('.')[0x1]};logger[_0x56515c(0x168)](_0x56515c(0x13a)+_0x1ee31d+_0x56515c(0x166)+_0x57146d[_0x56515c(0x16c)](_0x1f3e7e,0x1)+'/'+_0xab584d+'\x20payload='+util[_0x56515c(0x155)](_0x580785));const _0x316d40=await GrpcClient[_0x56515c(0x16f)]()[_0x56515c(0x142)](_0x580785);logger[_0x56515c(0x168)](_0x56515c(0x13a)+_0x1ee31d+_0x56515c(0x166)+_0x57146d[_0x56515c(0x16c)](_0x1f3e7e,0x1)+'/'+_0xab584d+_0x56515c(0x18a)+util[_0x56515c(0x155)](_0x316d40));}}catch(_0x14ba96){logger[_0x56515c(0x153)](_0x56515c(0x178)+util['format'](_0x14ba96));}logger[_0x56515c(0x168)](_0x57146d['AgCjD']);}[a78_0x406ffa(0x14e)](_0xfb8e0d,_0x5181cb,_0x1cbc2a,_0x4d20e3,_0x29d91f){const _0x78fbd8=a78_0x406ffa,_0x527edc={'testId':_0x5181cb,'testFrameworkState':_0x1cbc2a,'hookState':_0x4d20e3,'args':_0x29d91f,'timestamp':new Date()[_0x78fbd8(0x18e)]()};_0xfb8e0d[_0x78fbd8(0x179)](_0x5181cb,_0x527edc),logger[_0x78fbd8(0x168)](_0x78fbd8(0x18d)+_0x5181cb+_0x78fbd8(0x164)+_0x1cbc2a+_0x78fbd8(0x1ef)+_0x4d20e3);}async['processPendingHooks'](_0x53940f,_0x267a42){const _0x57b9a9=a78_0x406ffa,_0x199740={};_0x199740[_0x57b9a9(0x133)]=function(_0xe0e6a3,_0x4dedff){return _0xe0e6a3>_0x4dedff;};const _0x38f94d=_0x199740;if(!_0x53940f[_0x57b9a9(0x1a2)](_0x267a42))return;const _0x1e6540=_0x53940f['getPendingHooks'](_0x267a42);logger[_0x57b9a9(0x168)](_0x57b9a9(0x13e)+_0x1e6540[_0x57b9a9(0x1e6)]+_0x57b9a9(0x1b4)+_0x267a42);for(const _0x27442b of _0x1e6540){try{const _0x4bcdf2=await this[_0x57b9a9(0x1cc)](_0x53940f,_0x27442b[_0x57b9a9(0x163)],_0x27442b[_0x57b9a9(0x18c)],_0x27442b['args']);_0x4bcdf2&&_0x38f94d[_0x57b9a9(0x133)](Object[_0x57b9a9(0x156)](_0x4bcdf2)[_0x57b9a9(0x1e6)],0x0)&&_0x53940f[_0x57b9a9(0x128)](_0x4bcdf2),await this[_0x57b9a9(0x19d)](_0x53940f,_0x27442b[_0x57b9a9(0x163)],_0x27442b[_0x57b9a9(0x18c)],_0x27442b[_0x57b9a9(0x132)]);}catch(_0x50d0ee){logger[_0x57b9a9(0x153)](_0x57b9a9(0x147)+_0x267a42+_0x57b9a9(0x1e2)+_0x50d0ee);}}_0x53940f['removePendingHooks'](_0x267a42),logger[_0x57b9a9(0x168)](_0x57b9a9(0x188)+_0x267a42);}}function a78_0x52dc(_0x17c649,_0x5023e4){const _0x53a37f=a78_0x53a3();return a78_0x52dc=function(_0x52dc54,_0x4cb8e4){_0x52dc54=_0x52dc54-0x128;let _0x3b1fe6=_0x53a37f[_0x52dc54];return _0x3b1fe6;},a78_0x52dc(_0x17c649,_0x5023e4);}module[a78_0x406ffa(0x1c2)]=CucumberTestFramework;
|
|
1
|
+
const a78_0x3fe49a=a78_0x5c79;(function(_0x2d7a31,_0x5b18d2){const _0x31cc6b=a78_0x5c79,_0x316b45=_0x2d7a31();while(!![]){try{const _0xe9c9a1=-parseInt(_0x31cc6b(0x13c))/0x1+parseInt(_0x31cc6b(0x16a))/0x2*(-parseInt(_0x31cc6b(0x185))/0x3)+-parseInt(_0x31cc6b(0xe1))/0x4*(-parseInt(_0x31cc6b(0x126))/0x5)+parseInt(_0x31cc6b(0x169))/0x6+-parseInt(_0x31cc6b(0xca))/0x7+-parseInt(_0x31cc6b(0x17f))/0x8+parseInt(_0x31cc6b(0xfd))/0x9;if(_0xe9c9a1===_0x5b18d2)break;else _0x316b45['push'](_0x316b45['shift']());}catch(_0xcc39a1){_0x316b45['push'](_0x316b45['shift']());}}}(a78_0x4ebf,0x647d0));const TestFramework=require(a78_0x3fe49a(0xc3)),TestFrameworkState=require(a78_0x3fe49a(0xf1)),HookState=require(a78_0x3fe49a(0x155)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a78_0x3fe49a(0x13b)),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a78_0x3fe49a(0x163)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a78_0x3fe49a(0x128)),logger=createClassLogger(a78_0x3fe49a(0x10e)),{v4:uuidv4}=require('uuid'),util=require(a78_0x3fe49a(0xec)),TestInfo=require(a78_0x3fe49a(0x14c)),GrpcClient=require(a78_0x3fe49a(0x144));class CucumberTestFramework extends TestFramework{constructor(_0x4130ca,_0x50b055,_0x1a1021){super(_0x4130ca,_0x50b055,_0x1a1021);}async[a78_0x3fe49a(0x121)](_0x3c6d9e,_0x381613,_0x216808={}){const _0x107d69=a78_0x3fe49a,_0x303d34={};_0x303d34[_0x107d69(0xe0)]=_0x107d69(0x14b),_0x303d34[_0x107d69(0xcd)]=function(_0x13a7e8,_0x2f7771){return _0x13a7e8===_0x2f7771;},_0x303d34[_0x107d69(0x127)]=function(_0x2c156c,_0x1c77cb){return _0x2c156c===_0x1c77cb;},_0x303d34[_0x107d69(0x184)]=_0x107d69(0xee);const _0x3eb334=_0x303d34;await super[_0x107d69(0x121)](_0x3c6d9e,_0x381613,_0x216808);const _0x10cc2b=this['resolveInstance'](_0x3c6d9e,_0x381613,_0x216808);if(!_0x10cc2b){logger[_0x107d69(0x154)](_0x3eb334[_0x107d69(0xe0)]);return;}try{let _0x2a7b1c,_0x54e7c8;switch(_0x3c6d9e){case TestFrameworkState['TEST']:_0x2a7b1c=_0x216808['test'],_0x54e7c8=TestInfo[_0x107d69(0x14d)](_0x2a7b1c['id']);if(_0x3eb334['MAjnl'](_0x381613,HookState['PRE'])){logger[_0x107d69(0x154)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x2a7b1c['id']);const _0x4638f4={};_0x4638f4[_0x107d69(0xd5)]=_0x54e7c8,_0x4638f4['testData']=_0x2a7b1c,_0x10cc2b[_0x107d69(0x16c)](this[_0x107d69(0xc6)](_0x4638f4)),logger['debug'](_0x107d69(0x16e)+_0x2a7b1c['id']),await this[_0x107d69(0x12d)](_0x10cc2b,_0x2a7b1c['id']);}else{if(_0x3eb334['MAjnl'](_0x381613,HookState['POST'])){const _0x47d081={};_0x47d081[_0x107d69(0xd5)]=_0x54e7c8,_0x47d081['testData']=_0x2a7b1c,_0x10cc2b[_0x107d69(0x16c)](this['parseCucumberTestResult'](_0x47d081)),await this[_0x107d69(0x12d)](_0x10cc2b,_0x2a7b1c['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x3eb334[_0x107d69(0x127)](_0x381613,HookState[_0x107d69(0xc1)])&&await this[_0x107d69(0xc8)](_0x10cc2b,_0x3c6d9e,_0x216808);break;default:if(CLIUtils[_0x107d69(0x140)](_0x3c6d9e[_0x107d69(0xe3)]()[_0x107d69(0x167)]('.')[0x1])){const _0x15bc23=await this['trackHookEvent'](_0x10cc2b,_0x3c6d9e,_0x381613,_0x216808);_0x10cc2b[_0x107d69(0x16c)](_0x15bc23);}else logger[_0x107d69(0x154)](_0x107d69(0x113)+_0x3c6d9e+_0x107d69(0x11f)+_0x381613);break;}}catch(_0x47d77c){logger[_0x107d69(0x17e)](util[_0x107d69(0x114)](_0x3eb334[_0x107d69(0x184)],_0x3c6d9e,_0x381613,_0x216808[_0x107d69(0xf6)],_0x47d77c));}_0x216808[_0x107d69(0xd8)]=_0x10cc2b,await this[_0x107d69(0x149)](_0x10cc2b,_0x3c6d9e,_0x381613,_0x216808);}[a78_0x3fe49a(0x111)](_0x398db3,_0x2d1ce0,_0xe1135a={}){const _0x1040d6=a78_0x3fe49a,_0x590cae={};_0x590cae[_0x1040d6(0x142)]=function(_0x29a9d9,_0x4b1599){return _0x29a9d9===_0x4b1599;};const _0x28c872=_0x590cae;let _0x3fc3aa=null;return(_0x28c872[_0x1040d6(0x142)](_0x398db3,TestFrameworkState[_0x1040d6(0x160)])||_0x28c872['SqWOU'](_0x398db3,TestFrameworkState[_0x1040d6(0x112)]))&&this[_0x1040d6(0x162)](_0x398db3,_0xe1135a),_0x3fc3aa=TestFramework['getTrackedInstance'](),_0x3fc3aa;}[a78_0x3fe49a(0x162)](_0x225b12,_0x4d6971){const _0x5b2d87=a78_0x3fe49a,_0x63d4bc=CLIUtils[_0x5b2d87(0x141)](),_0x29983e=TrackedInstance[_0x5b2d87(0x176)](_0x63d4bc);let _0x2828c9=null;logger['debug'](_0x5b2d87(0x153)+_0x63d4bc+_0x5b2d87(0xdb)+_0x225b12),_0x2828c9=new TestFrameworkInstance(_0x29983e,this['getTestFrameworks'](),this['getTestFrameworksVersions'](),_0x225b12,HookState[_0x5b2d87(0x112)]),TestFramework[_0x5b2d87(0xcb)](_0x29983e,_0x2828c9),logger[_0x5b2d87(0x154)](_0x5b2d87(0x135)+_0x29983e[_0x5b2d87(0x125)]()+_0x5b2d87(0xc4)+_0x63d4bc);}['parseCucumberTest'](_0x1c3366){const _0x5a9d1e=a78_0x3fe49a,_0x568872={};_0x568872[_0x5a9d1e(0x175)]='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0xcc2f58=_0x568872,{testUUID:_0x3ce558,testData:_0x11f43a}=_0x1c3366;if(!_0x11f43a||!_0x11f43a[_0x5a9d1e(0x100)])return logger[_0x5a9d1e(0x154)](_0xcc2f58['vngvz']),{};const _0x4a53df=_0x3ce558,_0x43193a=_0x11f43a[_0x5a9d1e(0x100)],_0x50d445=this[_0x5a9d1e(0x115)]()[0x0],_0x49ac73=this[_0x5a9d1e(0x147)](),_0x15a97a={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x50d445,[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x49ac73[_0x50d445],[TestFrameworkConstants[_0x5a9d1e(0xc5)]]:[],[TestFrameworkConstants[_0x5a9d1e(0x159)]]:{},[TestFrameworkConstants[_0x5a9d1e(0x12f)]]:{},[TestFrameworkConstants[_0x5a9d1e(0x180)]]:_0x4a53df,[TestFrameworkConstants[_0x5a9d1e(0x13e)]]:TestFrameworkConstants[_0x5a9d1e(0x189)],[TestFrameworkConstants[_0x5a9d1e(0xe4)]]:_0x11f43a[_0x5a9d1e(0x130)]||'',[TestFrameworkConstants[_0x5a9d1e(0xf8)]]:_0x11f43a['file_name']||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x43193a,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x11f43a[_0x5a9d1e(0x130)]||'',[TestFrameworkConstants[_0x5a9d1e(0x136)]]:_0x11f43a[_0x5a9d1e(0xd2)]||'',[TestFrameworkConstants[_0x5a9d1e(0x105)]]:_0x11f43a['body']?.[_0x5a9d1e(0x146)]||null,[TestFrameworkConstants[_0x5a9d1e(0x117)]]:_0x11f43a[_0x5a9d1e(0x15c)]||[],[TestFrameworkConstants[_0x5a9d1e(0xd3)]]:_0x11f43a[_0x5a9d1e(0x104)]||new Date()[_0x5a9d1e(0x164)](),[TestFrameworkConstants[_0x5a9d1e(0x148)]]:_0x11f43a[_0x5a9d1e(0x110)]?.[0x0]||'',[TestFrameworkConstants[_0x5a9d1e(0x150)]]:_0x11f43a[_0x5a9d1e(0x110)]||[],[TestFrameworkConstants[_0x5a9d1e(0x151)]]:_0x11f43a[_0x5a9d1e(0x156)]?.[_0x5a9d1e(0x118)]||_0x11f43a['name']||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants[_0x5a9d1e(0x17c)]]:_0x11f43a['meta']||{}};TestInfo[_0x5a9d1e(0xe2)](_0x43193a,_0x15a97a),logger[_0x5a9d1e(0x154)](_0x5a9d1e(0x16f)+_0x11f43a[_0x5a9d1e(0x130)]+_0x5a9d1e(0x12c)+_0x4a53df);const _0x1b4a5c={};return _0x1b4a5c[_0x43193a]=_0x15a97a,_0x1b4a5c;}['parseCucumberTestResult'](_0x54c1b7){const _0x4f09f9=a78_0x3fe49a,_0x502220={'zeVxi':'No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','SNrji':_0x4f09f9(0x165),'Hgbas':function(_0x5e47bc,_0x1ed586){return _0x5e47bc===_0x1ed586;},'kuBFO':'failed','MEpgI':_0x4f09f9(0x168),'AfdAh':function(_0x126eed,_0x21b541,_0xdb53a4){return _0x126eed(_0x21b541,_0xdb53a4);},'bLmGm':function(_0x3843aa,_0x3b09f1){return _0x3843aa>_0x3b09f1;},'FVwLS':function(_0x5d4b09,_0x5f0121){return _0x5d4b09>_0x5f0121;}},{testUUID:_0x3bba07,testData:_0x42e30e}=_0x54c1b7;if(!_0x42e30e||!_0x42e30e[_0x4f09f9(0x100)])return logger[_0x4f09f9(0x154)](_0x502220[_0x4f09f9(0xc2)]),{};const _0x428c1f=this[_0x4f09f9(0x111)](TestFrameworkState[_0x4f09f9(0x17d)],HookState[_0x4f09f9(0xc1)]),_0x28f131=_0x42e30e[_0x4f09f9(0x100)],_0x5059d5=TestInfo[_0x4f09f9(0x174)](_0x28f131)||{},_0x420cc5=_0x5059d5?_0x5059d5[TestFrameworkConstants[_0x4f09f9(0x107)]]||{}:{},_0x2d4dc7={..._0x5059d5,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x42e30e[_0x4f09f9(0x15e)]||_0x502220['SNrji'],[TestFrameworkConstants[_0x4f09f9(0x10d)]]:_0x42e30e[_0x4f09f9(0x10f)]||new Date()[_0x4f09f9(0x164)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x4f09f9(0x164)](),[TestFrameworkConstants[_0x4f09f9(0x107)]]:_0x420cc5,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants[_0x4f09f9(0x17c)]]:_0x42e30e[_0x4f09f9(0x17b)]||{}};_0x502220[_0x4f09f9(0xc7)](_0x42e30e[_0x4f09f9(0x15e)],_0x502220['kuBFO'])&&_0x42e30e[_0x4f09f9(0xf0)]&&(_0x2d4dc7[TestFrameworkConstants[_0x4f09f9(0x134)]]=_0x42e30e['failure_type']||_0x502220[_0x4f09f9(0x12b)],_0x2d4dc7[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x42e30e[_0x4f09f9(0x124)]||'',_0x2d4dc7[TestFrameworkConstants[_0x4f09f9(0xce)]]=_0x42e30e[_0x4f09f9(0xf0)]);const _0x5b7a97=TestInfo['getTestDetails'](_0x28f131)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x96a032=_0x502220['AfdAh'](getManualUploadLogs,_0x5b7a97,_0x428c1f[_0x4f09f9(0x179)]()[_0x4f09f9(0x13f)](_0x28f131)[TestFrameworkConstants[_0x4f09f9(0x180)]]);if(_0x502220[_0x4f09f9(0x101)](_0x96a032[_0x4f09f9(0xf6)],0x0)){const _0x270bdb=_0x2d4dc7[TestFrameworkConstants[_0x4f09f9(0xe8)]]||[];_0x2d4dc7[TestFrameworkConstants[_0x4f09f9(0xe8)]]=[..._0x270bdb,..._0x96a032];}_0x42e30e['hooks']&&_0x502220[_0x4f09f9(0xfc)](_0x42e30e[_0x4f09f9(0x119)][_0x4f09f9(0xf6)],0x0)&&(_0x2d4dc7[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x42e30e[_0x4f09f9(0x119)]);TestInfo[_0x4f09f9(0xe2)](_0x28f131,_0x2d4dc7),logger['debug'](_0x4f09f9(0x161)+_0x42e30e['name']+_0x4f09f9(0x13a)+_0x42e30e[_0x4f09f9(0x15e)]);const _0x49b190={};return _0x49b190[_0x28f131]=_0x2d4dc7,_0x49b190;}async[a78_0x3fe49a(0x11d)](_0x38428f,_0x20a01a,_0x2461fb,_0x21e5b5){const _0x27c95d=a78_0x3fe49a,_0x22bb54={'dFsuj':_0x27c95d(0x171),'rviby':function(_0x47d346){return _0x47d346();},'qvmap':function(_0x13e9c9,_0x540325){return _0x13e9c9 in _0x540325;},'ZentS':function(_0x423876,_0x44d8b2){return _0x423876 in _0x44d8b2;},'YIxig':function(_0x44dccf,_0x126c13){return _0x44dccf===_0x126c13;},'Mcupk':function(_0x495709,_0xee8857){return _0x495709===_0xee8857;},'nVNaJ':function(_0x5e2285,_0xd0745){return _0x5e2285>_0xd0745;},'KEKNW':function(_0x49b4c1,_0x6b0ce0){return _0x49b4c1===_0x6b0ce0;},'JKFRR':_0x27c95d(0x137),'oeiJg':_0x27c95d(0x168),'QuqpQ':'passed','DmdmG':function(_0x1f49f0,_0x1498c6){return _0x1f49f0!==_0x1498c6;}},{hookData:_0x1ad4ee}=_0x21e5b5;if(!_0x1ad4ee)return logger[_0x27c95d(0x154)](_0x22bb54[_0x27c95d(0xc0)]),{};const _0xe089a4=_0x1ad4ee[_0x27c95d(0x100)]||_0x22bb54['rviby'](uuidv4),_0x21998a=_0x1ad4ee[_0x27c95d(0xcc)],_0x4f382f=_0x20a01a[_0x27c95d(0xe3)]()['split']('.')[0x1],_0x2e22df=TestInfo[_0x27c95d(0x174)](_0x21998a)[TestFrameworkConstants[_0x27c95d(0x107)]]||{},_0x3d340d=_0x38428f[_0x27c95d(0x179)]()[_0x27c95d(0x13f)](_0x21998a);if(!_0x3d340d)return logger[_0x27c95d(0x154)](_0x27c95d(0xd1)+_0x21998a+_0x27c95d(0x188)),this['storePendingHook'](_0x38428f,_0x21998a,_0x20a01a,_0x2461fb,_0x21e5b5),{};let _0x5a0429=_0x3d340d[TestFrameworkConstants[_0x27c95d(0x12f)]];!_0x5a0429&&(_0x5a0429={});!_0x22bb54['qvmap'](_0x4f382f,_0x5a0429)&&(_0x5a0429[_0x4f382f]=[]);let _0x68ee54=_0x3d340d[TestFrameworkConstants[_0x27c95d(0x159)]];!_0x68ee54&&(_0x68ee54={});!_0x22bb54['ZentS'](_0x4f382f,_0x68ee54)&&(_0x68ee54[_0x4f382f]=[]);const _0xd1244f={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x5a0429,[TestFrameworkConstants[_0x27c95d(0x159)]]:_0x68ee54},_0x1992a5={};_0x1992a5[_0x21998a]=_0xd1244f;const _0xa0a006=_0x1992a5;if(_0x22bb54[_0x27c95d(0xcf)](_0x2461fb,HookState[_0x27c95d(0x138)])){const _0x2be1eb={[TestFrameworkConstants[_0x27c95d(0x173)]]:_0xe089a4,[TestFrameworkConstants[_0x27c95d(0x14f)]]:TestFrameworkConstants[_0x27c95d(0xdc)],[TestFrameworkConstants[_0x27c95d(0xdf)]]:_0x1ad4ee[_0x27c95d(0xc9)],[TestFrameworkConstants[_0x27c95d(0x170)]]:[],[TestFrameworkConstants[_0x27c95d(0x14e)]]:_0x1ad4ee['hook_type'],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x2e22df};_0x2be1eb['key']=_0x4f382f;const _0xc9921f=_0x2be1eb;_0x5a0429[_0x4f382f]['push'](_0xc9921f),_0xa0a006[_0x21998a][TestFrameworkConstants[_0x27c95d(0xdd)]]=_0x4f382f,logger[_0x27c95d(0x154)](_0x27c95d(0xf9)+_0x4f382f+_0x27c95d(0x10a)+_0xc9921f+_0x27c95d(0x187)+_0x21e5b5);}else{if(_0x22bb54['Mcupk'](_0x2461fb,HookState[_0x27c95d(0xc1)])){const _0x1233b7=_0x1ad4ee['result'],_0x4d9d3b=_0x5a0429[_0x4f382f]||[];logger[_0x27c95d(0x154)](_0x27c95d(0xfb)+_0x4d9d3b+'\x20and\x20args\x20=\x20'+_0x21e5b5);if(_0x22bb54[_0x27c95d(0x172)](_0x4d9d3b['length'],0x0)){const _0x5284f6=_0x4d9d3b[_0x27c95d(0x132)]();_0x22bb54[_0x27c95d(0x122)](_0x1ad4ee['result'],_0x22bb54[_0x27c95d(0x16b)])&&_0x1ad4ee[_0x27c95d(0xe9)]?(_0x5284f6[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x1ad4ee[_0x27c95d(0x103)]||_0x22bb54['oeiJg'],_0x5284f6[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x1ad4ee[_0x27c95d(0x124)]||'',_0x5284f6[TestFrameworkConstants[_0x27c95d(0x11c)]]=_0x1ad4ee[_0x27c95d(0xe9)]):_0x5284f6[TestFrameworkConstants[_0x27c95d(0x14f)]]=_0x22bb54[_0x27c95d(0xea)];_0x22bb54[_0x27c95d(0x143)](_0x1233b7,TestFrameworkConstants[_0x27c95d(0xdc)])&&(_0x5284f6[TestFrameworkConstants[_0x27c95d(0x14f)]]=_0x1233b7);_0x5284f6[TestFrameworkConstants[_0x27c95d(0xf5)]]=_0x1ad4ee[_0x27c95d(0x12e)]||new Date()[_0x27c95d(0x164)](),_0x5284f6[TestFrameworkConstants[_0x27c95d(0x107)]]=_0x2e22df;const _0x1122db=_0x5284f6[TestFrameworkConstants['KEY_HOOK_ID']];!_0x68ee54[_0x4f382f]&&(_0x68ee54[_0x4f382f]=[]),_0x68ee54[_0x4f382f][_0x27c95d(0xd6)](_0x5284f6),_0xa0a006[_0x21998a][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x4f382f;}}}return logger['debug'](_0x27c95d(0xda)+_0x1ad4ee[_0x27c95d(0x11e)]+'\x20with\x20id\x20'+_0xe089a4+'\x20for\x20test:\x20'+_0x21998a),_0xa0a006;}['createTestFrameworkEventPayload'](_0x531400){const _0x5e3932=a78_0x3fe49a,_0x1b3233={};_0x1b3233[_0x5e3932(0x17a)]='base64';const _0x11df16=_0x1b3233;try{const _0x36a1d1=_0x531400[_0x5e3932(0x106)]?_0x531400[_0x5e3932(0x106)]['id']:_0x531400[_0x5e3932(0xbe)]['test_run_id'],_0x262ee9=_0x531400['instance'],_0xdc72d5=_0x262ee9[_0x5e3932(0x181)](),_0xf1cdce=_0x262ee9[_0x5e3932(0x179)]()[_0x5e3932(0x13f)](_0x36a1d1);if(!_0xf1cdce)return logger['debug'](_0x5e3932(0x10b)+_0x36a1d1),{};logger[_0x5e3932(0x154)]('createTestFrameworkEventPayload\x20testId:\x20'+_0x36a1d1);const {[TestFrameworkConstants[_0x5e3932(0xeb)]]:_0x5d308b='',[TestFrameworkConstants[_0x5e3932(0x108)]]:_0x20bfe0='',[TestFrameworkConstants[_0x5e3932(0xd3)]]:_0x488e63='',[TestFrameworkConstants[_0x5e3932(0x10d)]]:_0x6dc8a0=''}=_0xf1cdce,_0x35f7b7=_0x262ee9[_0x5e3932(0x14a)]()[_0x5e3932(0xe3)]()[_0x5e3932(0x167)]('.')[0x1],_0x3401b6=_0x262ee9[_0x5e3932(0x158)]()['toString']()['split']('.')[0x1],_0x160ba6=global?.[_0x5e3932(0xfe)]??0x0,_0x32218d=_0x262ee9['getRef'](),_0x3ce02d=Buffer[_0x5e3932(0x16d)](JSON[_0x5e3932(0x178)](_0xf1cdce))[_0x5e3932(0xe3)](_0x11df16[_0x5e3932(0x17a)]),_0x306ae4={'hash':_0xdc72d5[_0x5e3932(0x125)](),'threadId':_0xdc72d5[_0x5e3932(0xd0)]()['toString'](),'processId':_0xdc72d5[_0x5e3932(0x11a)]()[_0x5e3932(0xe3)]()},_0xc5b495={};_0xc5b495['platformIndex']=_0x160ba6,_0xc5b495[_0x5e3932(0xf3)]=_0x5d308b,_0xc5b495[_0x5e3932(0x102)]=_0x20bfe0,_0xc5b495['testFrameworkState']=_0x35f7b7,_0xc5b495[_0x5e3932(0xd7)]=_0x3401b6,_0xc5b495['startedAt']=_0x488e63,_0xc5b495['endedAt']=_0x6dc8a0,_0xc5b495[_0x5e3932(0x100)]=_0x32218d,_0xc5b495[_0x5e3932(0x11b)]=_0x3ce02d,_0xc5b495[_0x5e3932(0x15f)]=_0x306ae4;const _0x59f82e=_0xc5b495;return logger[_0x5e3932(0x154)]('createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20'+_0x36a1d1+_0x5e3932(0x15b)+_0x35f7b7+_0x5e3932(0x177)+_0x3401b6),_0x59f82e;}catch(_0x37d0b2){return logger['error'](_0x5e3932(0x10c)+util[_0x5e3932(0x114)](_0x37d0b2)),{};}}async[a78_0x3fe49a(0xc8)](_0x4c5b25,_0x315c41,_0x4a7a65){const _0x413446=a78_0x3fe49a,_0xaa5375={'DhqAz':function(_0x4bd18e,_0x2fe587,_0x1d69fc){return _0x4bd18e(_0x2fe587,_0x1d69fc);},'baRTA':function(_0x25c68b,_0x381b26){return _0x25c68b===_0x381b26;},'hXVVy':_0x413446(0xd4),'ohLqF':function(_0x15ef81,_0xe9a204){return _0x15ef81/_0xe9a204;},'exTzW':function(_0x5feede,_0x34802b){return _0x5feede<_0x34802b;},'tsdEV':function(_0x390080,_0x543cf8){return _0x390080*_0x543cf8;},'TOsed':function(_0x1a3335,_0x17bed6){return _0x1a3335+_0x17bed6;},'YUzPk':function(_0x5dabb5,_0x512095){return _0x5dabb5+_0x512095;},'XTAFn':_0x413446(0x186)};try{const _0x1877c0=_0x4a7a65[_0x413446(0xd5)],_0x57e78f=_0x4c5b25['getAllData']()[_0x413446(0x13f)](_0x1877c0),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x1bf2b7='',[TestFrameworkConstants[_0x413446(0x108)]]:_0x5b2c2=''}=_0x57e78f,_0x42cb07=TestInfo[_0x413446(0x15a)](_0x1877c0),_0x481129=TestInfo[_0x413446(0x174)](_0x1877c0)[TestFrameworkConstants[_0x413446(0xfa)]]||{},_0x1e86ab=_0xaa5375[_0x413446(0xf7)](getMediaArtifactsLogs,_0x481129,_0x4c5b25['getAllData']()[_0x413446(0x13f)](_0x1877c0)[TestFrameworkConstants[_0x413446(0x180)]]),_0x23f748=(_0x42cb07||[])[_0x413446(0x145)](_0x1e86ab||[]);if(!_0x23f748||_0xaa5375[_0x413446(0x15d)](_0x23f748['length'],0x0)){logger[_0x413446(0x154)](_0xaa5375['hXVVy']);return;}const _0x1139dc=0x28,_0x1b799c=Math['ceil'](_0xaa5375[_0x413446(0xff)](_0x23f748[_0x413446(0xf6)],_0x1139dc));for(let _0x2f4164=0x0;_0xaa5375[_0x413446(0xe7)](_0x2f4164,_0x1b799c);_0x2f4164++){const _0x31b8c2=_0xaa5375['tsdEV'](_0x2f4164,_0x1139dc),_0x3e8628=_0xaa5375[_0x413446(0xe5)](_0x31b8c2,_0x1139dc),_0x3b7419=_0x23f748['slice'](_0x31b8c2,_0x3e8628),_0x53e183={'platformIndex':global?.[_0x413446(0xfe)]??0x0,'logs':_0x3b7419,'testFrameworkName':_0x1bf2b7,'testFrameworkVersion':_0x5b2c2,'testFrameworkState':_0x315c41['toString']()[_0x413446(0x167)]('.')[0x1]};logger['debug'](_0x413446(0x109)+_0x1877c0+_0x413446(0xd9)+_0xaa5375[_0x413446(0xe5)](_0x2f4164,0x1)+'/'+_0x1b799c+_0x413446(0x12a)+util[_0x413446(0xf4)](_0x53e183));const _0x511582=await GrpcClient[_0x413446(0x139)]()[_0x413446(0xf2)](_0x53e183);logger[_0x413446(0x154)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x1877c0+_0x413446(0xd9)+_0xaa5375[_0x413446(0x120)](_0x2f4164,0x1)+'/'+_0x1b799c+_0x413446(0xde)+util[_0x413446(0xf4)](_0x511582));}}catch(_0x19f7ad){logger['error']('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util['format'](_0x19f7ad));}logger[_0x413446(0x154)](_0xaa5375[_0x413446(0x129)]);}[a78_0x3fe49a(0x166)](_0x27c150,_0x3328fe,_0x47f3b3,_0x1eda45,_0x225bf8){const _0x40c3b7=a78_0x3fe49a,_0x16e207={'testId':_0x3328fe,'testFrameworkState':_0x47f3b3,'hookState':_0x1eda45,'args':_0x225bf8,'timestamp':new Date()['toISOString']()};_0x27c150[_0x40c3b7(0x183)](_0x3328fe,_0x16e207),logger['debug'](_0x40c3b7(0xbf)+_0x3328fe+_0x40c3b7(0x123)+_0x47f3b3+_0x40c3b7(0x182)+_0x1eda45);}async[a78_0x3fe49a(0x12d)](_0x1f2b9f,_0x35f48c){const _0x521a46=a78_0x3fe49a,_0x2acb23={};_0x2acb23[_0x521a46(0x157)]=function(_0x28bf08,_0x4d73cb){return _0x28bf08>_0x4d73cb;};const _0x102323=_0x2acb23;if(!_0x1f2b9f[_0x521a46(0x133)](_0x35f48c))return;const _0x477207=_0x1f2b9f['getPendingHooks'](_0x35f48c);logger[_0x521a46(0x154)](_0x521a46(0xed)+_0x477207['length']+_0x521a46(0x116)+_0x35f48c);for(const _0x4a283c of _0x477207){try{const _0x503a7f=await this[_0x521a46(0x11d)](_0x1f2b9f,_0x4a283c[_0x521a46(0x152)],_0x4a283c['hookState'],_0x4a283c['args']);_0x503a7f&&_0x102323['OqkZS'](Object[_0x521a46(0x13d)](_0x503a7f)['length'],0x0)&&_0x1f2b9f[_0x521a46(0x16c)](_0x503a7f),await this['runHooks'](_0x1f2b9f,_0x4a283c[_0x521a46(0x152)],_0x4a283c[_0x521a46(0xd7)],_0x4a283c[_0x521a46(0xef)]);}catch(_0x30ed5c){logger[_0x521a46(0x17e)](_0x521a46(0xe6)+_0x35f48c+',\x20error:\x20'+_0x30ed5c);}}_0x1f2b9f['removePendingHooks'](_0x35f48c),logger[_0x521a46(0x154)]('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0x35f48c);}}function a78_0x4ebf(){const _0x531ab4=['KEY_TEST_FRAMEWORK_VERSION','sendLogCreatedEvent:\x20for\x20testId:\x20','\x20&\x20hook\x20=\x20','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','Error\x20in\x20createTestFrameworkEventPayload:\x20','KEY_TEST_ENDED_AT','CucumberTestFramework','finishedAt','scopes','resolveInstance','NONE','trackEvent:\x20unsupported\x20testFrameworkState=','format','getTestFrameworks','\x20pending\x20hooks\x20for\x20testId:\x20','KEY_TEST_TAGS','rerun_name','hooks','getProcessId','eventJson','KEY_HOOK_FAILURE','trackHookEvent','hook_type','\x20&\x20hookState=','YUzPk','trackEvent','KEKNW',',\x20state:\x20','failure_reason','getId','5gOaJvX','CavZD','../../../helpers/helper.js','XTAFn','\x20payload=','MEpgI','\x20with\x20UUID:\x20','processPendingHooks','finished_at','KEY_HOOKS_STARTED','name','exports','pop','hasPendingHooks','KEY_TEST_FAILURE_TYPE','trackCucumberInstance:\x20saved\x20instance\x20contextId=','KEY_TEST_LOCATION','failed','PRE','getInstance','\x20with\x20result:\x20','../cliUtils.js','812622LSRsRc','keys','KEY_TEST_RESULT','get','matchHookRegex','getCurrentInstanceName','SqWOU','DmdmG','../grpcClient','concat','code','getTestFrameworksVersions','KEY_TEST_SCOPE','runHooks','getCurrentTestState','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','../TestInfo.js','getTestUUID','KEY_HOOK_NAME','KEY_HOOK_RESULT','KEY_TEST_SCOPES','KEY_TEST_RERUN_NAME','testFrameworkState','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','debug','../state/hookState.js','customRerunParam','OqkZS','getCurrentHookState','KEY_HOOKS_FINISHED','readLogObjects','\x20testState:\x20','tags','baRTA','result','executionContext','INIT_TEST','Updated\x20cucumber\x20test\x20result:\x20','trackCucumberInstance','./constants/testFrameworkConstants.js','toISOString','unknown','storePendingHook','split','UnhandledError','3783438KemQnd','6qiXhhy','JKFRR','addMultipleEntries','from','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','Parsed\x20cucumber\x20test:\x20','KEY_HOOK_LOGS','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','nVNaJ','KEY_HOOK_ID','getTestDetails','vngvz','createContext','\x20hookState:\x20','stringify','getAllData','niOmr','meta','KEY_TEST_META','TEST','error','2794904ifvGhF','KEY_TEST_UUID','getContext',',\x20hookState:\x20','addPendingHook','CegVO','151359Fpiohi','Cucumber\x20log\x20created\x20event','\x20\x20and\x20args\x20=\x20',',\x20storing\x20as\x20pending\x20hook','DEFAULT_TEST_RESULT','hookData','Stored\x20pending\x20hook\x20for\x20testId:\x20','dFsuj','POST','zeVxi','./testFramework','\x20target=','KEY_TEST_LOGS','parseCucumberTest','Hgbas','sendLogCreatedEvent','started_at','4897333ILQrfD','setTrackedInstance','test_run_id','MAjnl','KEY_TEST_FAILURE','YIxig','getThreadId','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','location','KEY_TEST_STARTED_AT','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','testUUID','push','hookState','instance','\x20batch\x20','Tracked\x20cucumber\x20hook\x20event:\x20',',\x20state=','DEFAULT_HOOK_RESULT','KEY_HOOK_LAST_STARTED','\x20response=','KEY_EVENT_STARTED_AT','UvrbH','982096CPRlGT','setTestDetails','toString','KEY_AUTOMATE_SESSION_NAME','TOsed','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','exTzW','KEY_LOGS','failure_data','QuqpQ','KEY_TEST_FRAMEWORK_NAME','util','Processing\x20','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','args','failure','../state/testFrameworkState.js','logCreatedEvent','testFrameworkName','inspect','KEY_EVENT_ENDED_AT','length','DhqAz','KEY_TEST_FILE_PATH','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','KEY_TEST_ATTACHMENTS','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','FVwLS','13936194BWkWkX','browserstackPlatformIndex','ohLqF','uuid','bLmGm','testFrameworkVersion','failure_type','startedAt','KEY_TEST_CODE','test','KEY_CUSTOM_TAGS'];a78_0x4ebf=function(){return _0x531ab4;};return a78_0x4ebf();}function a78_0x5c79(_0x457769,_0x20380e){const _0x4ebf9b=a78_0x4ebf();return a78_0x5c79=function(_0x5c79fc,_0x5b926b){_0x5c79fc=_0x5c79fc-0xbe;let _0x5a92a4=_0x4ebf9b[_0x5c79fc];return _0x5a92a4;},a78_0x5c79(_0x457769,_0x20380e);}module[a78_0x3fe49a(0x131)]=CucumberTestFramework;
|