browserstack-node-sdk 1.55.2 → 1.55.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/bin/v2/cliUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a72_0x9e1b87=a72_0x41d7;function a72_0x41d7(_0x5ef6a3,_0x5982a4){const _0x1540b8=a72_0x1540();return a72_0x41d7=function(_0x41d749,_0x56bf20){_0x41d749=_0x41d749-0x1ac;let _0x155417=_0x1540b8[_0x41d749];return _0x155417;},a72_0x41d7(_0x5ef6a3,_0x5982a4);}function a72_0x1540(){const _0xbfca3f=['.tmp.','1955BwwPCm','CLI\x20version\x20found\x20despite\x20error:\x20\x22','getCLIParamsForDevEnv','listen','concat','GnFzQ','existsSync','tMfrI','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','hjmrq','Failed\x20to\x20delete\x20zip\x20file:\x20','map','start','node','getSdkVersion','yOZpd','QeVDn','cli_version','SHELL_EXECUTE_ERROR','env','BROWSERSTACK_BINARY_URL','Resolved\x20binary\x20path:\x20','FuxUV','chmod','test','tLhuC','openReadStream','../utils/constants','vvFbp','Typda','rqwAm','BxQgj','./framework/constants/testFrameworkConstants.js','../../helpers/classLogger.js','OAATI','lRMyW','../../helpers/performance/constants','suqDr','kjdZd','Kvtrq','NhtbP','Ytntz','path','WuyEP','moJjx','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','889SYVyPm','isDirectory','mtime','platform','openSync','KdFol','UGKhA','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','xzzxl','AgbnH','VgUFv','ORCNt','mKwlq','close','qGoSB','kHRTi','pipe','hOEug','anZER','unlink','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','stringify','./instances/testFrameworkInstance.js','parse','homedir','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','CLglb','getHookRegistryKey','132GDIGdK','iPLsU','../../helpers/helper','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','pid','iOXHu','BgVzH','INggj','readdirSync','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','closeSync','cli','OwuAl','follow-redirects','copyFileSync','926328DQCbba','end','zhqUJ','EOayE','jdiAa','trim','150MVpBzB','warn','SDK_CLI_DOWNLOAD','BdcPl','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','join','OZupJ','TrIvT','Folder\x20','object','jYdpd','xwPPQ','yauzl','cMjEy','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','BROWSERSTACK_CLI_ENV','url','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','isBinaryBusy','mergeObject','cVHQi','testContextOptions','CrcVq','response\x20','oKJJO','./state/automationFrameworkState.js','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','SDK_CLI_CHECK_UPDATE','unix:/tmp/sdk-platform-','Configuring\x20Cli\x20path.','LKqxt','version','createWriteStream','./state/testFrameworkState.js','automationFrameworkDetail','20BwdHqU','./state/hookState.js','ihzvh','UzjKg','eQDsy','includes','18032EudAnq','getWritableDir','../../helpers/test-observability/utils.js','1492348fQOZud','GET','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','code','BRUXr','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','yROYP','ghkPS','PfOwx','zODWR','matchHookRegex','Setting\x20required\x20permissions\x20to\x20','146934sUIweT','.browserstack','isArray','EXDEV','cAwUf','util','getTestFrameworkDetail','format','downloadFileStream','debug','error','startsWith','../utils/apiUtilityMethods.js','obnqx','.sock','756uvkmKD','worker_threads','ZSNtP','\x20already\x20exists','xuvzw','getExistingCliPath','TRIrC','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','checkAndUpdateCli','info','shouldSkipSessionStatus','child_process','readEntry','cwd','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','entries','getCliDir','Folder\x20does\x20not\x20exist:\x20','zWyli','jKvCy','getSdkLanguage','2|0|3|4|1','1186821ZdLrKQ','runShellCommand','pfgjo','filePath','skipSessionName','requestToUpdateCLI','isDevelopmentEnv','open','getAutomationFrameworkDetail','fileName','downloadLatestBinary','data','entry','basename','skipSessionStatus','../../helpers/utilities','DCDvR','timeout','QgtbS','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','rename','development','CLIUtils','QYTXy','../../../package.json','Error\x20while\x20reading\x20CLI\x20path:\x20','binary-','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','0755','Downloading\x20SDK\x20binary\x20from:\x20','filter','testFrameworkDetail','statSync','fgLDf','message'];a72_0x1540=function(){return _0xbfca3f;};return a72_0x1540();}(function(_0x1d81c6,_0x47a8d8){const _0x4040bb=a72_0x41d7,_0x109cac=_0x1d81c6();while(!![]){try{const _0x515a91=parseInt(_0x4040bb(0x256))/0x1*(-parseInt(_0x4040bb(0x1bd))/0x2)+parseInt(_0x4040bb(0x250))/0x3+parseInt(_0x4040bb(0x241))/0x4*(parseInt(_0x4040bb(0x1f7))/0x5)+parseInt(_0x4040bb(0x1ae))/0x6+-parseInt(_0x4040bb(0x225))/0x7*(-parseInt(_0x4040bb(0x27f))/0x8)+-parseInt(_0x4040bb(0x1d3))/0x9*(parseInt(_0x4040bb(0x279))/0xa)+-parseInt(_0x4040bb(0x282))/0xb;if(_0x515a91===_0x47a8d8)break;else _0x109cac['push'](_0x109cac['shift']());}catch(_0x1c9f47){_0x109cac['push'](_0x109cac['shift']());}}}(a72_0x1540,0x2b0c0));const fs=require('fs'),os=require('os'),url=require(a72_0x9e1b87(0x266)),path=require(a72_0x9e1b87(0x221)),{exec}=require(a72_0x9e1b87(0x1c8)),{https}=require(a72_0x9e1b87(0x24e)),yauzl=require(a72_0x9e1b87(0x262)),util=require(a72_0x9e1b87(0x1b3)),{getFrameworkVersion}=require(a72_0x9e1b87(0x281)),{threadId}=require(a72_0x9e1b87(0x1be)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a72_0x9e1b87(0x21b)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a72_0x9e1b87(0x1e2)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a72_0x9e1b87(0x243)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a72_0x9e1b87(0x212)),{createClassLogger}=require(a72_0x9e1b87(0x218)),TestFrameworkInstance=require(a72_0x9e1b87(0x23b)),HookState=require(a72_0x9e1b87(0x27a)),TestFrameworkState=require(a72_0x9e1b87(0x277)),AutomationFrameworkState=require(a72_0x9e1b87(0x26f)),TestFrameworkConstants=require(a72_0x9e1b87(0x217)),logger=createClassLogger(a72_0x9e1b87(0x1e9)),{getBStackAPIUrl}=require(a72_0x9e1b87(0x1ba));class CLIUtils{[a72_0x9e1b87(0x278)]={};[a72_0x9e1b87(0x1f2)]={};static[a72_0x9e1b87(0x1d9)](){const _0x403cde=a72_0x9e1b87,_0x499859={};_0x499859[_0x403cde(0x27d)]=function(_0x1695c6,_0x4d5686){return _0x1695c6===_0x4d5686;},_0x499859[_0x403cde(0x260)]=_0x403cde(0x1e8);const _0x435b2c=_0x499859;return _0x435b2c['eQDsy'](process[_0x403cde(0x20a)][_0x403cde(0x265)],_0x435b2c[_0x403cde(0x260)]);}static[a72_0x9e1b87(0x1f9)](){const _0x30ea85=a72_0x9e1b87,_0x44d267={};return _0x44d267['id']=process['env'][_0x30ea85(0x265)],_0x44d267[_0x30ea85(0x1fa)]=_0x30ea85(0x272)+process[_0x30ea85(0x20a)][_0x30ea85(0x265)]+_0x30ea85(0x1bc),_0x44d267;}static[a72_0x9e1b87(0x205)](){const _0x345782=a72_0x9e1b87,_0x21011a={'hOEug':function(_0x1b7f52,_0x3e550e){return _0x1b7f52(_0x3e550e);},'QgtbS':_0x345782(0x1eb)};return _0x21011a[_0x345782(0x236)](require,_0x21011a[_0x345782(0x1e5)])[_0x345782(0x275)];}static[a72_0x9e1b87(0x1d1)](){const _0x21eb5e=a72_0x9e1b87,_0x2d1475={};_0x2d1475[_0x21eb5e(0x248)]=_0x21eb5e(0x204);const _0x534829=_0x2d1475;return _0x534829[_0x21eb5e(0x248)];}static async['setupCliPath'](_0x5bf047){const _0x37c83c=a72_0x9e1b87,_0x5bba57={'yROYP':_0x37c83c(0x273),'OZupJ':function(_0x1e64eb,_0x38e83a){return _0x1e64eb(_0x38e83a);},'vzYeK':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x37c83c(0x1b7)](_0x5bba57[_0x37c83c(0x289)]);const _0x569d4d=process[_0x37c83c(0x20a)]['SDK_CLI_BIN_PATH'];if(!_0x5bba57[_0x37c83c(0x25c)](isNullOrEmpty,_0x569d4d))return logger[_0x37c83c(0x1b7)]('Development\x20Cli\x20Path:\x20'+_0x569d4d),_0x569d4d;try{const _0x2921ff=this[_0x37c83c(0x1cd)]();if(_0x5bba57[_0x37c83c(0x25c)](isNullOrEmpty,_0x2921ff))throw new Error(_0x5bba57['vzYeK']);const _0x2f69c4=this[_0x37c83c(0x1c2)](_0x2921ff),_0x45213e=await this[_0x37c83c(0x1c5)](_0x2f69c4,_0x2921ff,_0x5bf047);return logger['debug'](_0x37c83c(0x20c)+_0x45213e),_0x45213e;}catch(_0x4d2271){logger['debug'](_0x37c83c(0x239)+util[_0x37c83c(0x1b5)](_0x4d2271));}return null;}static async[a72_0x9e1b87(0x1c5)](_0x376ae0,_0x16934f,_0x3400b7){const _0x2d55a8=a72_0x9e1b87,_0x525c27={'lElHe':function(_0x3a51c5){return _0x3a51c5();},'tMfrI':function(_0x849ed8,_0x5a67f9){return _0x849ed8(_0x5a67f9);},'anZER':function(_0x481b76,_0xff0cf3,_0x2c28a5){return _0x481b76(_0xff0cf3,_0x2c28a5);},'obnqx':_0x2d55a8(0x1de),'iPLsU':_0x2d55a8(0x266),'FHBOi':function(_0x1b3c9a,_0x48f58f,_0x3fbabf){return _0x1b3c9a(_0x48f58f,_0x3fbabf);}};PerformanceTester[_0x2d55a8(0x203)](PerformanceEvents[_0x2d55a8(0x271)]),logger[_0x2d55a8(0x1c6)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x376ae0);const _0xa8d1d6=_0x525c27['lElHe'](getHostInfo),_0x5cf2c6={'sdk_version':CLIUtils['getSdkVersion'](),'os':_0xa8d1d6[_0x2d55a8(0x228)],'os_arch':_0xa8d1d6['arch'],'cli_version':'0','sdk_language':this[_0x2d55a8(0x1d1)]()};!_0x525c27[_0x2d55a8(0x1fe)](isNullOrEmpty,_0x376ae0)&&(_0x5cf2c6['cli_version']=await this[_0x2d55a8(0x1d4)](_0x376ae0+'\x20version'));const _0x4479e0=await this[_0x2d55a8(0x1d8)](_0x5cf2c6,_0x3400b7);process[_0x2d55a8(0x20a)][_0x2d55a8(0x20b)]&&(logger['info']('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process[_0x2d55a8(0x20a)]['BROWSERSTACK_BINARY_URL']),_0x4479e0[_0x2d55a8(0x1de)][_0x2d55a8(0x266)]=process[_0x2d55a8(0x20a)]['BROWSERSTACK_BINARY_URL']);if(_0x525c27[_0x2d55a8(0x237)](nestedKeyValue,_0x4479e0,[_0x525c27[_0x2d55a8(0x1bb)],_0x525c27[_0x2d55a8(0x242)]])){logger['debug'](_0x2d55a8(0x288)+_0x5cf2c6[_0x2d55a8(0x208)]);if(!_0x525c27['tMfrI'](isNullOrEmpty,_0x376ae0)&&this[_0x2d55a8(0x268)](_0x376ae0))return logger[_0x2d55a8(0x257)](_0x2d55a8(0x25a)+_0x376ae0),PerformanceTester[_0x2d55a8(0x251)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x376ae0;const _0xe1690a=await this[_0x2d55a8(0x1dd)](_0x525c27['FHBOi'](nestedKeyValue,_0x4479e0,[_0x525c27[_0x2d55a8(0x1bb)],_0x525c27[_0x2d55a8(0x242)]]),_0x16934f);return PerformanceTester['end'](PerformanceEvents[_0x2d55a8(0x271)]),_0xe1690a;}return PerformanceTester['end'](PerformanceEvents[_0x2d55a8(0x271)]),_0x376ae0;}static[a72_0x9e1b87(0x1cd)](){const _0x12cb55=a72_0x9e1b87,_0x5cd594={'cAwUf':function(_0x4444cc,_0x3b755d){return _0x4444cc(_0x3b755d);},'Ytntz':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','LedXU':_0x12cb55(0x24c)},_0x3cfc08=this[_0x12cb55(0x280)]();try{if(_0x5cd594[_0x12cb55(0x1b2)](isNullOrEmpty,_0x3cfc08))throw new Error(_0x5cd594[_0x12cb55(0x220)]);const _0x8f40f7=path[_0x12cb55(0x25b)](_0x3cfc08,_0x5cd594['LedXU']);return!fs[_0x12cb55(0x1fd)](_0x8f40f7)&&_0x5cd594[_0x12cb55(0x1b2)](createDir,_0x8f40f7),_0x8f40f7;}catch(_0x1fbe34){logger[_0x12cb55(0x1b7)](_0x12cb55(0x244)+util[_0x12cb55(0x1b5)](_0x1fbe34));}}static[a72_0x9e1b87(0x280)](){const _0x236ad2=a72_0x9e1b87,_0x2c3805={'WuyEP':_0x236ad2(0x1af),'AgbnH':function(_0xbf493c,_0x56653a){return _0xbf493c(_0x56653a);},'ghkPS':function(_0x23f24f,_0x42a36d){return _0x23f24f(_0x42a36d);},'vvFbp':function(_0x91c746,_0x2edb41){return _0x91c746(_0x2edb41);},'xuvzw':function(_0xb31929,_0x5eafdd){return _0xb31929(_0x5eafdd);},'RjJfr':function(_0x1b2e70,_0x205bec){return _0x1b2e70(_0x205bec);}},_0x363165=[process[_0x236ad2(0x20a)]['BROWSERSTACK_FILES_DIR'],path['join'](os[_0x236ad2(0x23d)](),_0x2c3805[_0x236ad2(0x222)]),path[_0x236ad2(0x25b)](os['tmpdir'](),_0x2c3805[_0x236ad2(0x222)])];for(const _0xc540ca of _0x363165){if(_0x2c3805[_0x236ad2(0x22e)](isNullOrEmpty,_0xc540ca))continue;try{if(fs[_0x236ad2(0x1fd)](_0xc540ca)){logger['debug'](_0x236ad2(0x25e)+_0xc540ca+_0x236ad2(0x1c0));if(!_0x2c3805[_0x236ad2(0x28a)](isModifiable,_0xc540ca)){logger[_0x236ad2(0x1b7)](_0x236ad2(0x1ad)+_0xc540ca);const _0x42a8b5=_0x2c3805[_0x236ad2(0x22e)](setReadWriteExecuteAccess,_0xc540ca);if(!_0x2c3805[_0x236ad2(0x28a)](isTrue,_0x42a8b5)){logger[_0x236ad2(0x257)](_0x236ad2(0x224)+_0xc540ca);continue;}}}else{logger[_0x236ad2(0x1b7)](_0x236ad2(0x1ce)+_0xc540ca),_0x2c3805[_0x236ad2(0x213)](createDir,_0xc540ca),logger[_0x236ad2(0x1b7)]('Setting\x20required\x20permissions\x20to\x20'+_0xc540ca);const _0x197d0a=_0x2c3805[_0x236ad2(0x1c1)](setReadWriteExecuteAccess,_0xc540ca);!_0x2c3805['RjJfr'](isTrue,_0x197d0a)&&logger[_0x236ad2(0x257)](_0x236ad2(0x224)+_0xc540ca);}return _0xc540ca;}catch(_0x485a47){logger[_0x236ad2(0x1b8)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x236ad2(0x1b5)](_0x485a47));}}return null;}static[a72_0x9e1b87(0x1c2)](_0x1c4244){const _0x3851d2=a72_0x9e1b87,_0x30811a={};_0x30811a['wbrmi']=function(_0xd7f331,_0x23560d){return _0xd7f331>_0x23560d;},_0x30811a[_0x3851d2(0x253)]=function(_0x601222,_0x33a04d){return _0x601222>_0x33a04d;};const _0x184f04=_0x30811a;try{if(!fs[_0x3851d2(0x1fd)](_0x1c4244)||!fs[_0x3851d2(0x1f3)](_0x1c4244)[_0x3851d2(0x226)]())return'';const _0x493651=fs[_0x3851d2(0x249)](_0x1c4244)[_0x3851d2(0x202)](_0x103139=>path[_0x3851d2(0x25b)](_0x1c4244,_0x103139))[_0x3851d2(0x1f1)](_0x207453=>fs[_0x3851d2(0x1f3)](_0x207453)['isFile']()&&path[_0x3851d2(0x1e0)](_0x207453)[_0x3851d2(0x1b9)](_0x3851d2(0x1ed)));if(_0x184f04[_0x3851d2(0x253)](_0x493651['length'],0x0)){const _0x54966d=_0x493651[_0x3851d2(0x202)](_0x57cd82=>({'filePath':_0x57cd82,'mtime':fs[_0x3851d2(0x1f3)](_0x57cd82)['mtime']}))['reduce']((_0x4b70b4,_0x322f4c)=>{const _0x4fd603=_0x3851d2;if(!_0x4b70b4||!_0x4b70b4['mtime'])return _0x322f4c;if(_0x184f04['wbrmi'](_0x322f4c[_0x4fd603(0x227)],_0x4b70b4['mtime']))return _0x322f4c;return _0x4b70b4;},{});return _0x54966d?_0x54966d[_0x3851d2(0x1d6)]:'';}return'';}catch(_0x292755){return logger[_0x3851d2(0x1b8)](_0x3851d2(0x1ec)+util[_0x3851d2(0x1b5)](_0x292755)),'';}}static ['requestToUpdateCLI']=async(_0x14c15f,_0x3ec134)=>{const _0x3c5c03=a72_0x9e1b87,_0x2c1c5a={'UzjKg':function(_0x24a733,_0x379228,_0x4e381e,_0x4db277,_0x29e78d){return _0x24a733(_0x379228,_0x4e381e,_0x4db277,_0x29e78d);},'mKwlq':_0x3c5c03(0x283)},_0x16d1ed={};_0x16d1ed['qs']=_0x14c15f;const _0xce2492=await _0x2c1c5a[_0x3c5c03(0x27c)](nodeRequest,_0x2c1c5a[_0x3c5c03(0x231)],UPDATED_CLI_ENDPOINT,_0x16d1ed,_0x3ec134);return logger[_0x3c5c03(0x1b7)](_0x3c5c03(0x26d)+JSON[_0x3c5c03(0x23a)](_0xce2492)),_0xce2492;};static[a72_0x9e1b87(0x268)](_0x388742){const _0x44fa55=a72_0x9e1b87;try{const _0x141fb6=fs[_0x44fa55(0x229)](_0x388742,'r+');return fs[_0x44fa55(0x24b)](_0x141fb6),![];}catch(_0x4765cb){if(BINARY_BUSY_ERROR_CODES[_0x44fa55(0x27e)](_0x4765cb[_0x44fa55(0x286)]))return logger[_0x44fa55(0x1b7)]('Binary\x20is\x20busy:\x20'+_0x388742),!![];return logger[_0x44fa55(0x1b7)](_0x44fa55(0x24a)+_0x4765cb[_0x44fa55(0x1f5)]),![];}}static['runShellCommand'](_0x253240,_0x26e8e4=''){const _0x45ced4=a72_0x9e1b87,_0x26bde2={'moJjx':_0x45ced4(0x275),'kHRTi':function(_0x52e19d,_0x1391fa){return _0x52e19d(_0x1391fa);},'VgUFv':_0x45ced4(0x209),'xzzxl':function(_0x4f82df,_0x19034f){return _0x4f82df(_0x19034f);},'UGKhA':function(_0x1a307a,_0x2c8cd0){return _0x1a307a(_0x2c8cd0);},'VSVmo':function(_0x5b76a8,_0x1c4c12,_0x35b4c8,_0x3fab6b){return _0x5b76a8(_0x1c4c12,_0x35b4c8,_0x3fab6b);},'uzoNX':_0x45ced4(0x1b8)};return new Promise((_0x4b29cb,_0x1c6d55)=>{const _0x37ecd9=_0x45ced4,_0x1a8195={};_0x1a8195[_0x37ecd9(0x1ca)]=_0x26e8e4,_0x1a8195[_0x37ecd9(0x1e4)]=0x1388;const _0x3f33b4=_0x26bde2['VSVmo'](exec,_0x253240,_0x1a8195,(_0x37653f,_0x30f589,_0x32a63f)=>{const _0xb468db=_0x37ecd9;if(_0x37653f){if(_0x253240['includes'](_0x26bde2[_0xb468db(0x223)])&&(_0x30f589[_0xb468db(0x255)]()||_0x32a63f[_0xb468db(0x255)]())){const _0xfea6a0=_0x30f589[_0xb468db(0x255)]()||_0x32a63f[_0xb468db(0x255)]();logger[_0xb468db(0x1b7)](_0xb468db(0x1f8)+_0xfea6a0+'\x22'),_0x26bde2['kHRTi'](_0x4b29cb,_0xfea6a0);}else _0x26bde2[_0xb468db(0x234)](_0x4b29cb,_0x32a63f[_0xb468db(0x255)]()||_0x26bde2[_0xb468db(0x22f)]);}else logger['debug']('Resolving\x20with\x20stdout:\x20\x22'+_0x30f589[_0xb468db(0x255)]()+'\x22'),_0x26bde2[_0xb468db(0x22d)](_0x4b29cb,_0x30f589['trim']());});_0x3f33b4['on'](_0x26bde2['uzoNX'],()=>{const _0x227013=_0x37ecd9;_0x26bde2[_0x227013(0x22b)](_0x4b29cb,_0x26bde2['VgUFv']);});});}static [a72_0x9e1b87(0x1dd)]=async(_0x5e90d2,_0x48291b)=>{const _0x5be1cb=a72_0x9e1b87,_0x1892d4={'QYTXy':function(_0x467c6,_0x30f6df){return _0x467c6(_0x30f6df);},'qGoSB':_0x5be1cb(0x1cb),'PfOwx':function(_0x3bf5ee,_0x474966){return _0x3bf5ee(_0x474966);},'ZdBJe':_0x5be1cb(0x284),'DfnJA':function(_0x494f05,_0x47d70f){return _0x494f05(_0x47d70f);},'zODWR':_0x5be1cb(0x1b8)};PerformanceTester[_0x5be1cb(0x203)](PerformanceEvents[_0x5be1cb(0x258)]),logger[_0x5be1cb(0x1b7)](_0x5be1cb(0x1f0)+_0x5e90d2);try{const _0x42b5f4=url[_0x5be1cb(0x23c)](_0x5e90d2),_0x396390=path[_0x5be1cb(0x25b)](_0x48291b,'downloaded_file_'+process[_0x5be1cb(0x245)]+'.zip'),_0x4fd4f1=fs[_0x5be1cb(0x276)](_0x396390);return new Promise((_0x56f99a,_0x42f62b)=>{const _0x38ce07=_0x5be1cb,_0x58bb26={'BxQgj':_0x1892d4[_0x38ce07(0x233)],'ZSNtP':function(_0x526ab3,_0x4a1fd4){const _0x549fe3=_0x38ce07;return _0x1892d4[_0x549fe3(0x28b)](_0x526ab3,_0x4a1fd4);},'cMjEy':_0x1892d4['ZdBJe'],'zgHDt':function(_0x4c1917,_0x57c117){return _0x1892d4['DfnJA'](_0x4c1917,_0x57c117);},'CLglb':_0x1892d4[_0x38ce07(0x28c)]};https['get'](_0x42b5f4,function(_0x3feef9){const _0xdf964e=_0x38ce07,_0x250c53={'OAATI':_0x58bb26[_0xdf964e(0x263)],'lRMyW':function(_0x266452,_0x46483c){return _0x58bb26['zgHDt'](_0x266452,_0x46483c);},'UwhfS':function(_0xf4f345,_0x25f596){return _0x58bb26['zgHDt'](_0xf4f345,_0x25f596);}},_0x1461f4=null;_0x3feef9[_0xdf964e(0x235)](_0x4fd4f1),_0x3feef9['on'](_0x58bb26['CLglb'],function(_0x687d52){const _0x553bf0=_0xdf964e;logger[_0x553bf0(0x1b8)](util[_0x553bf0(0x1b5)](_0x58bb26[_0x553bf0(0x216)],_0x687d52)),PerformanceTester[_0x553bf0(0x251)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x553bf0(0x1b5)](_0x687d52)),_0x58bb26[_0x553bf0(0x1bf)](_0x42f62b,_0x687d52);}),_0x4fd4f1['on'](_0x58bb26[_0xdf964e(0x23f)],function(_0x39f828){const _0x2b6728=_0xdf964e;logger[_0x2b6728(0x1b8)](util[_0x2b6728(0x1b5)](_0x250c53[_0x2b6728(0x219)],_0x39f828)),PerformanceTester[_0x2b6728(0x251)](PerformanceEvents[_0x2b6728(0x258)],![],util[_0x2b6728(0x1b5)](_0x39f828)),_0x250c53[_0x2b6728(0x21a)](_0x42f62b,_0x39f828);}),CLIUtils[_0xdf964e(0x1b6)](_0x4fd4f1,_0x1461f4,_0x396390,_0x48291b,_0xcb4239=>{const _0x386391=_0xdf964e;PerformanceTester[_0x386391(0x251)](PerformanceEvents[_0x386391(0x258)]),_0x250c53['UwhfS'](_0x56f99a,_0xcb4239);},_0x4b3913=>{const _0xc8bf37=_0xdf964e;PerformanceTester[_0xc8bf37(0x251)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0xc8bf37(0x1b5)](_0x4b3913)),_0x58bb26[_0xc8bf37(0x1bf)](_0x42f62b,_0x4b3913);});})['on'](_0x1892d4[_0x38ce07(0x28c)],function(_0x555ef8){const _0x54159a=_0x38ce07;logger[_0x54159a(0x1b8)](_0x54159a(0x264)+util['format'](_0x555ef8)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x54159a(0x1b5)](_0x555ef8)),_0x1892d4[_0x54159a(0x1ea)](_0x42f62b,_0x555ef8);});});}catch(_0xd6717e){PerformanceTester[_0x5be1cb(0x251)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0xd6717e)),logger[_0x5be1cb(0x1b7)](_0x5be1cb(0x267)+util[_0x5be1cb(0x1b5)](_0xd6717e));}};static[a72_0x9e1b87(0x1b6)](_0x3a2e8a,_0x2b69d9,_0x2897fe,_0x13366b,_0x45e451,_0x4acebd){const _0x58fca9=a72_0x9e1b87,_0x29c529={'hjmrq':_0x58fca9(0x232),'NUVCa':function(_0xb7af27,_0x65fabe){return _0xb7af27(_0x65fabe);},'jdiAa':_0x58fca9(0x251),'BRUXr':function(_0x51edbc,_0xfab0ed){return _0x51edbc(_0xfab0ed);},'LKqxt':_0x58fca9(0x1df),'GnFzQ':_0x58fca9(0x1b8),'kjdZd':function(_0x348a38,_0x50c42a){return _0x348a38(_0x50c42a);},'pfgjo':function(_0x15080c,_0x16a9c6){return _0x15080c!==_0x16a9c6;},'ORCNt':function(_0x3a6e9e,_0x2a5145){return _0x3a6e9e(_0x2a5145);},'IboyC':_0x58fca9(0x1b1),'zhqUJ':function(_0x53fd31,_0xdd8e33){return _0x53fd31(_0xdd8e33);},'fgLDf':_0x58fca9(0x1ef)};_0x3a2e8a['on'](_0x29c529[_0x58fca9(0x200)],function(){const _0x3122d5=_0x58fca9,_0x11e90b={'zWyli':function(_0xd680b1,_0x22557d){const _0x59718d=a72_0x41d7;return _0x29c529[_0x59718d(0x21d)](_0xd680b1,_0x22557d);},'BdcPl':function(_0x1b5ecd,_0x353093){const _0x2cac1a=a72_0x41d7;return _0x29c529[_0x2cac1a(0x1d5)](_0x1b5ecd,_0x353093);},'QeVDn':function(_0x466870,_0x36626d){const _0x4f2716=a72_0x41d7;return _0x29c529[_0x4f2716(0x230)](_0x466870,_0x36626d);},'yOZpd':_0x29c529[_0x3122d5(0x1fc)],'tLhuC':function(_0x2f181d,_0x43b065){const _0x29354a=_0x3122d5;return _0x29c529[_0x29354a(0x1d5)](_0x2f181d,_0x43b065);},'KdFol':_0x29c529['IboyC'],'OwuAl':function(_0x4155ba,_0x40e0fc){const _0x4570ee=_0x3122d5;return _0x29c529[_0x4570ee(0x252)](_0x4155ba,_0x40e0fc);},'Typda':_0x29c529[_0x3122d5(0x1f4)]},_0x3e7c53={};_0x3e7c53['lazyEntries']=!![],yauzl[_0x3122d5(0x1da)](_0x2897fe,_0x3e7c53,function(_0x3df21e,_0x449406){const _0xbf6c1=_0x3122d5,_0x3a1ba0={'cVHQi':_0x29c529[_0xbf6c1(0x200)],'Kvtrq':function(_0x2dc40b,_0x2f07e8){return _0x29c529['NUVCa'](_0x2dc40b,_0x2f07e8);},'BgVzH':_0x29c529[_0xbf6c1(0x254)]};if(_0x3df21e){_0x29c529[_0xbf6c1(0x287)](_0x4acebd,_0x3df21e);return;}_0x449406[_0xbf6c1(0x1c9)](),_0x449406['on'](_0x29c529[_0xbf6c1(0x274)],_0x60aec6=>{const _0x9558a8=_0xbf6c1,_0x25a73b={'CrcVq':function(_0x4849f7,_0x506a11){const _0x295289=a72_0x41d7;return _0x11e90b[_0x295289(0x1cf)](_0x4849f7,_0x506a11);},'jKvCy':function(_0x196be3,_0x2f71ae){return _0x11e90b['zWyli'](_0x196be3,_0x2f71ae);}};if(/\/$/['test'](_0x60aec6['fileName'])){_0x449406[_0x9558a8(0x1c9)]();return;}!_0x2b69d9&&(_0x2b69d9=_0x60aec6[_0x9558a8(0x1dc)]);if(_0x11e90b[_0x9558a8(0x259)](_0x60aec6[_0x9558a8(0x1dc)],_0x2b69d9))_0x449406[_0x9558a8(0x1c9)]();else{const _0xb149b4=_0x60aec6[_0x9558a8(0x1dc)],_0x5e9046=path[_0x9558a8(0x25b)](_0x13366b,_0xb149b4+_0x9558a8(0x1f6)+process[_0x9558a8(0x245)]);let _0x11bd50;try{_0x11bd50=fs['createWriteStream'](_0x5e9046);}catch(_0x41e855){if(BINARY_BUSY_ERROR_CODES[_0x9558a8(0x27e)](_0x41e855[_0x9558a8(0x286)])){const _0x291f89=path[_0x9558a8(0x25b)](_0x13366b,_0xb149b4);if(fs[_0x9558a8(0x1fd)](_0x291f89)){logger[_0x9558a8(0x257)](_0x9558a8(0x1c4)+_0xb149b4),fs[_0x9558a8(0x238)](_0x2897fe,_0x52762c=>{const _0x29505d=_0x9558a8;_0x52762c&&logger['warn'](_0x29505d(0x201)+_0x2897fe);}),_0x11e90b['zWyli'](_0x45e451,_0x291f89);return;}logger[_0x9558a8(0x257)](_0x9558a8(0x1e6)+_0xb149b4);}_0x11e90b[_0x9558a8(0x207)](_0x4acebd,_0x41e855);return;}_0x11bd50['on'](_0x11e90b[_0x9558a8(0x206)],_0x2f7585=>{const _0x473628=_0x9558a8;if(BINARY_BUSY_ERROR_CODES[_0x473628(0x27e)](_0x2f7585['code'])){const _0x31e10f=path[_0x473628(0x25b)](_0x13366b,_0xb149b4);_0x11bd50['close'](),fs['existsSync'](_0x31e10f)?(logger[_0x473628(0x257)](_0x473628(0x270)+_0x2f7585['message']),_0x449406[_0x473628(0x232)](),fs[_0x473628(0x238)](_0x2897fe,_0x6d5316=>{const _0x2737d3=_0x473628;_0x6d5316&&logger[_0x2737d3(0x257)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x2897fe);}),_0x25a73b[_0x473628(0x26c)](_0x45e451,_0x31e10f)):(logger[_0x473628(0x257)]('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x2f7585[_0x473628(0x1f5)]),fs['unlink'](_0x5e9046,()=>{}),_0x25a73b[_0x473628(0x1d0)](_0x4acebd,_0x2f7585));}else fs['unlink'](_0x5e9046,()=>{}),_0x25a73b['CrcVq'](_0x4acebd,_0x2f7585);}),_0x449406[_0x9558a8(0x211)](_0x60aec6,function(_0x5db674,_0x2dbd20){const _0x2eb589=_0x9558a8,_0x4fb5f0={};_0x4fb5f0['DCDvR']=_0x3a1ba0[_0x2eb589(0x26a)];const _0x3bd4fc=_0x4fb5f0;if(_0x5db674){fs['unlink'](_0x5e9046,()=>{}),_0x3a1ba0['Kvtrq'](_0x4acebd,_0x5db674);return;}_0x2dbd20['on'](_0x3a1ba0[_0x2eb589(0x247)],function(){const _0x37bc0a=_0x2eb589;_0x11bd50[_0x37bc0a(0x251)](),_0x11bd50['on'](_0x3bd4fc[_0x37bc0a(0x1e3)],function(){_0x449406['readEntry']();});}),_0x2dbd20['pipe'](_0x11bd50);});}}),_0x449406['on'](_0x29c529[_0xbf6c1(0x1fc)],_0x52f4e3=>{const _0x16fe35=_0xbf6c1;_0x3a1ba0[_0x16fe35(0x21e)](_0x4acebd,_0x52f4e3);}),_0x449406['once'](_0x29c529['jdiAa'],()=>{const _0x23012b=_0xbf6c1,_0x537f12={'iOXHu':function(_0x51ac9e,_0x4d6f58){const _0x541e1f=a72_0x41d7;return _0x11e90b[_0x541e1f(0x210)](_0x51ac9e,_0x4d6f58);},'suqDr':_0x11e90b[_0x23012b(0x22a)],'rqwAm':function(_0x3bfdbd,_0x1d9757){const _0x2fb858=_0x23012b;return _0x11e90b[_0x2fb858(0x24d)](_0x3bfdbd,_0x1d9757);},'TRIrC':function(_0x4bb3b9,_0x123527){return _0x11e90b['QeVDn'](_0x4bb3b9,_0x123527);}};fs['unlink'](_0x2897fe,_0x907759=>{const _0x48385a=_0x23012b;_0x907759&&logger[_0x48385a(0x257)](_0x48385a(0x201)+_0x2897fe);});const _0x543854=path[_0x23012b(0x25b)](_0x13366b,_0x2b69d9+_0x23012b(0x1f6)+process[_0x23012b(0x245)]),_0x113b64=path['join'](_0x13366b,_0x2b69d9);fs[_0x23012b(0x20e)](_0x543854,_0x11e90b[_0x23012b(0x214)],function(_0x34d5eb){const _0x1fe4fc=_0x23012b;if(_0x34d5eb){_0x449406[_0x1fe4fc(0x232)](),fs[_0x1fe4fc(0x238)](_0x543854,()=>{}),_0x537f12[_0x1fe4fc(0x1c3)](_0x4acebd,_0x34d5eb);return;}fs[_0x1fe4fc(0x1e7)](_0x543854,_0x113b64,function(_0x5da401){const _0x396357=_0x1fe4fc;if(_0x5da401){if(_0x537f12[_0x396357(0x246)](_0x5da401['code'],_0x537f12[_0x396357(0x21c)])){_0x449406[_0x396357(0x232)](),fs[_0x396357(0x238)](_0x543854,()=>{}),_0x537f12[_0x396357(0x215)](_0x4acebd,_0x5da401);return;}logger['warn'](_0x396357(0x1ee)+_0x5da401[_0x396357(0x1f5)]);try{fs[_0x396357(0x24f)](_0x543854,_0x113b64);}catch(_0x69995a){_0x449406[_0x396357(0x232)](),fs[_0x396357(0x238)](_0x543854,()=>{}),_0x537f12[_0x396357(0x215)](_0x4acebd,_0x69995a);return;}fs[_0x396357(0x238)](_0x543854,_0x42bdfb=>{const _0x450aad=_0x396357;_0x42bdfb&&logger[_0x450aad(0x257)](_0x450aad(0x23e)+_0x42bdfb[_0x450aad(0x1f5)]);});}_0x449406['close'](),_0x537f12[_0x396357(0x1c3)](_0x45e451,_0x113b64);});});});});});}static[a72_0x9e1b87(0x1b4)](){const _0x2472bc=a72_0x9e1b87;if(process[_0x2472bc(0x20a)][_0x2472bc(0x1ff)])return JSON['parse'](process[_0x2472bc(0x20a)][_0x2472bc(0x1ff)]);return this[_0x2472bc(0x1f2)];}static[a72_0x9e1b87(0x1db)](){const _0x5f4f93=a72_0x9e1b87;if(process[_0x5f4f93(0x20a)][_0x5f4f93(0x22c)])return JSON['parse'](process[_0x5f4f93(0x20a)][_0x5f4f93(0x22c)]);return this['automationFrameworkDetail'];}static['setFrameworkDetail'](_0x47b5ca,_0x2a0757){const _0x47328c=a72_0x9e1b87,_0x4a48a5={'TrIvT':_0x47328c(0x1d2),'oKJJO':function(_0x1c0c77,_0x3d99af){return _0x1c0c77(_0x3d99af);},'AVTFk':function(_0x52724b,_0x187d7f){return _0x52724b||_0x187d7f;},'NhtbP':function(_0x39bd31,_0x3f0358){return _0x39bd31(_0x3f0358);}},_0x1b7d66=_0x4a48a5[_0x47328c(0x25d)]['split']('|');let _0x4c78b3=0x0;while(!![]){switch(_0x1b7d66[_0x4c78b3++]){case'0':this[_0x47328c(0x1f2)]={'name':_0x47b5ca,'version':{[_0x47b5ca]:_0x4a48a5[_0x47328c(0x26e)](getFrameworkVersion,_0x47b5ca)}};continue;case'1':process[_0x47328c(0x20a)][_0x47328c(0x1ff)]=JSON[_0x47328c(0x23a)](this['testFrameworkDetail']);continue;case'2':_0x4a48a5['AVTFk'](!_0x47b5ca,!_0x2a0757)&&logger[_0x47328c(0x1b7)](_0x47328c(0x285)+_0x47b5ca+',\x20automationFramework='+_0x2a0757);continue;case'3':this['automationFrameworkDetail']={'name':_0x2a0757,'version':_0x4a48a5[_0x47328c(0x21f)](getFrameworkVersion,_0x2a0757)};continue;case'4':process[_0x47328c(0x20a)][_0x47328c(0x22c)]=JSON[_0x47328c(0x23a)](this[_0x47328c(0x278)]);continue;}break;}}static[a72_0x9e1b87(0x240)](_0x2920b0,_0xce0518){return _0x2920b0+':'+_0xce0518;}static['getCurrentInstanceName'](){const _0x59170a=a72_0x9e1b87;return process[_0x59170a(0x245)]+':'+threadId;}static['shouldSkipSessionName'](_0x5cf3eb){const _0xff6351=a72_0x9e1b87;if(_0x5cf3eb['testContextOptions']&&_0x5cf3eb[_0xff6351(0x26b)][_0xff6351(0x1d7)])return!![];return![];}static[a72_0x9e1b87(0x1c7)](_0x5116dd){const _0x52fb78=a72_0x9e1b87;if(_0x5116dd[_0x52fb78(0x26b)]&&_0x5116dd[_0x52fb78(0x26b)][_0x52fb78(0x1e1)])return!![];return![];}static[a72_0x9e1b87(0x1ac)](_0x149241){const _0x53392d=a72_0x9e1b87,_0xe3766c=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0xe3766c[_0x53392d(0x20f)](_0x149241);}static[a72_0x9e1b87(0x269)](_0x1b17e2,_0x410a93){const _0x51ceb5=a72_0x9e1b87,_0x520c2c={};_0x520c2c['FuxUV']=function(_0x390b39,_0x50d382){return _0x390b39!==_0x50d382;},_0x520c2c[_0x51ceb5(0x27b)]=function(_0x4ea73a,_0x877958){return _0x4ea73a===_0x877958;},_0x520c2c['xwPPQ']=_0x51ceb5(0x25f);const _0x59588f=_0x520c2c;for(const [_0x4b3d05,_0x3d5416]of Object[_0x51ceb5(0x1cc)](_0x410a93)){if(_0x59588f[_0x51ceb5(0x20d)](_0x3d5416,null)&&_0x59588f[_0x51ceb5(0x27b)](typeof _0x3d5416,_0x59588f[_0x51ceb5(0x261)])&&!Array[_0x51ceb5(0x1b0)](_0x3d5416))_0x1b17e2[_0x4b3d05]=this[_0x51ceb5(0x269)](_0x1b17e2[_0x4b3d05]||{},_0x3d5416);else Array[_0x51ceb5(0x1b0)](_0x3d5416)?_0x1b17e2[_0x4b3d05]=(_0x1b17e2[_0x4b3d05]||[])[_0x51ceb5(0x1fb)](_0x3d5416):_0x1b17e2[_0x4b3d05]=_0x3d5416;}return _0x1b17e2;}}module['exports']=CLIUtils;
|
|
1
|
+
const a72_0x3c15ec=a72_0x579e;function a72_0x579e(_0x39cb12,_0x2bca85){const _0xcaf327=a72_0xcaf3();return a72_0x579e=function(_0x579e0c,_0x544dc2){_0x579e0c=_0x579e0c-0xfd;let _0x435322=_0xcaf327[_0x579e0c];return _0x435322;},a72_0x579e(_0x39cb12,_0x2bca85);}(function(_0x1fe618,_0x5d06bf){const _0x431421=a72_0x579e,_0x5e9f90=_0x1fe618();while(!![]){try{const _0x4a48c4=parseInt(_0x431421(0x134))/0x1+-parseInt(_0x431421(0x13e))/0x2+-parseInt(_0x431421(0x1cc))/0x3*(-parseInt(_0x431421(0x15d))/0x4)+parseInt(_0x431421(0x126))/0x5*(-parseInt(_0x431421(0x15e))/0x6)+-parseInt(_0x431421(0x188))/0x7+parseInt(_0x431421(0x101))/0x8*(parseInt(_0x431421(0x1b9))/0x9)+-parseInt(_0x431421(0x1c7))/0xa*(parseInt(_0x431421(0x163))/0xb);if(_0x4a48c4===_0x5d06bf)break;else _0x5e9f90['push'](_0x5e9f90['shift']());}catch(_0x559f96){_0x5e9f90['push'](_0x5e9f90['shift']());}}}(a72_0xcaf3,0x5f878));const fs=require('fs'),os=require('os'),url=require(a72_0x3c15ec(0x1ae)),path=require('path'),{exec}=require(a72_0x3c15ec(0x1b5)),{https}=require(a72_0x3c15ec(0x19e)),yauzl=require(a72_0x3c15ec(0x139)),util=require('util'),{getFrameworkVersion}=require(a72_0x3c15ec(0x1b2)),{threadId}=require(a72_0x3c15ec(0x187)),PerformanceTester=require(a72_0x3c15ec(0x129)),{EVENTS:PerformanceEvents}=require(a72_0x3c15ec(0x13b)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a72_0x3c15ec(0x16b)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a72_0x3c15ec(0x1bb)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a72_0x3c15ec(0x132)),{createClassLogger}=require(a72_0x3c15ec(0x1d9)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a72_0x3c15ec(0x1e2)),TestFrameworkState=require(a72_0x3c15ec(0x153)),AutomationFrameworkState=require(a72_0x3c15ec(0x157)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a72_0x3c15ec(0x14d)),{getBStackAPIUrl}=require(a72_0x3c15ec(0x19b));function a72_0xcaf3(){const _0x3468a3=['skipSessionStatus','testFrameworkDetail','unix:/tmp/sdk-platform-','binary-','eszTj','getCliDir','ZMbtp','POtFu','eAwpB','22030fKgymP','fcVpu','createWriteStream','zRPAg','isArray','234zDtIlU','exports','goLCo','Folder\x20does\x20not\x20exist:\x20','downloadLatestBinary','getSdkLanguage','unlink','join','SDK_CLI_BIN_PATH','OrWNI','isDirectory','\x20already\x20exists','isFile','../../helpers/classLogger.js','Binary\x20is\x20busy:\x20','openReadStream','BrcWG','trim','Downloading\x20SDK\x20binary\x20from:\x20','pfKOA','ItBFn','TpTqc','./state/hookState.js','Folder\x20','map','QsANP','GhwdM','isCPv','4323112zSeIxR','readEntry',',\x20automationFramework=','getTestFrameworkDetail','message','tmpdir','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','yGqkA','openSync','automationFrameworkDetail','stringify','testContextOptions','.sock','fxIzz','filePath','DPOnN','getCLIParamsForDevEnv','qWHnm','4|0|1|2|3','format','existsSync','version','xRitL','sKgSz','xfpPk','env','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','yIKYb','yOVQg','parse','QHMRV','BROWSERSTACK_BINARY_URL','lazyEntries','object','BEOOr','close','YNuov','10ToKMEC','eYuLf','wsgWQ','../../helpers/performance/performance-tester.js','Failed\x20to\x20delete\x20zip\x20file:\x20','SHELL_EXECUTE_ERROR','LndAQ','oWuAT','QrDlQ','start','shouldSkipSessionName','pid','../utils/constants','getWritableDir','644581eWcVXH','Error\x20while\x20reading\x20CLI\x20path:\x20','response\x20','qRBPT','code','yauzl','open','../../helpers/performance/constants','lQsie','Development\x20Cli\x20Path:\x20','782046uLRxib','BROWSERSTACK_CLI_ENV','get','data','EbmoB','0755','cli','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','\x20version','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','FsrJu','info','reduce','SDK_CLI_DOWNLOAD','downloaded_file_','CLIUtils','gpJOZ','isDevelopmentEnv','mtime','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','MjZlc','./state/testFrameworkState.js','Setting\x20required\x20permissions\x20to\x20','concat','setupCliPath','./state/automationFrameworkState.js','pipe','UKbBL','entries','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','includes','23036XlPOLb','401010YNSPrh','skipSessionName','filter','cSZUT','readdirSync','979licNeV','Configuring\x20Cli\x20path.','getSdkVersion','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','QlKwy','YDvBe','uaWwG','error','../../helpers/utilities','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','mergeObject','Tspea','getCurrentInstanceName','GET','fjxgo','bBATu','../../../package.json','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','KJjSc','getExistingCliPath','JiQiw','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','KkIiQ','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','LFMNh','basename','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','warn','kqaaN','LxSVK','runShellCommand','split','SDK_CLI_CHECK_UPDATE','.browserstack','ulvwM','worker_threads','3654868zKTXMa','moktf','.tmp.','blOWr','end','CVgnB','QidDv','TKcqa','closeSync','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','ljMMu','development','downloadFileStream','uZkbS','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','ydDza','hQLIT','StKFP','beObL','../utils/apiUtilityMethods.js','isBinaryBusy','QEPcF','follow-redirects','requestToUpdateCLI','listen','matchHookRegex','fileName','tiESR','copyFileSync','getHookRegistryKey','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','Current\x20CLI\x20Path\x20Found:\x20','Lcxaj','cli_version','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','getAutomationFrameworkDetail','platform','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','url','QHgUY','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','odRYk','../../helpers/test-observability/utils.js','fKRSu','entry','child_process','test','setFrameworkDetail','ZHWTg','9ZjMpMX','debug','../../helpers/helper','mybkz','hVUDP'];a72_0xcaf3=function(){return _0x3468a3;};return a72_0xcaf3();}class CLIUtils{['automationFrameworkDetail']={};['testFrameworkDetail']={};static[a72_0x3c15ec(0x14f)](){const _0x54d7f8=a72_0x3c15ec,_0x53792e={};_0x53792e[_0x54d7f8(0x137)]=function(_0x1121d0,_0x34b47c){return _0x1121d0===_0x34b47c;},_0x53792e[_0x54d7f8(0x19d)]=_0x54d7f8(0x193);const _0x5bf478=_0x53792e;return _0x5bf478[_0x54d7f8(0x137)](process['env'][_0x54d7f8(0x13f)],_0x5bf478[_0x54d7f8(0x19d)]);}static[a72_0x3c15ec(0x111)](){const _0x302a08=a72_0x3c15ec,_0x30ff4f={};return _0x30ff4f['id']=process[_0x302a08(0x11a)][_0x302a08(0x13f)],_0x30ff4f[_0x302a08(0x1a0)]=_0x302a08(0x1c0)+process[_0x302a08(0x11a)]['BROWSERSTACK_CLI_ENV']+_0x302a08(0x10d),_0x30ff4f;}static[a72_0x3c15ec(0x165)](){const _0x2dcc62=a72_0x3c15ec,_0x583544={'beObL':function(_0x3ad6ee,_0x4e312b){return _0x3ad6ee(_0x4e312b);},'QidDv':_0x2dcc62(0x173)};return _0x583544[_0x2dcc62(0x19a)](require,_0x583544[_0x2dcc62(0x18e)])[_0x2dcc62(0x116)];}static[a72_0x3c15ec(0x1d1)](){const _0x54d9eb=a72_0x3c15ec,_0x4b6eae={};_0x4b6eae[_0x54d9eb(0x125)]='node';const _0x2d391f=_0x4b6eae;return _0x2d391f[_0x54d9eb(0x125)];}static async[a72_0x3c15ec(0x156)](_0x224da3){const _0x11cdc7=a72_0x3c15ec,_0x1d542b={'pfKOA':_0x11cdc7(0x164),'UKbBL':function(_0x33c290,_0x37d0f6){return _0x33c290(_0x37d0f6);},'cSZUT':function(_0x5b29ae,_0x93a6e6){return _0x5b29ae(_0x93a6e6);},'XYmSp':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger['debug'](_0x1d542b[_0x11cdc7(0x1df)]);const _0x201d08=process[_0x11cdc7(0x11a)][_0x11cdc7(0x1d4)];if(!_0x1d542b[_0x11cdc7(0x159)](isNullOrEmpty,_0x201d08))return logger[_0x11cdc7(0x1ba)](_0x11cdc7(0x13d)+_0x201d08),_0x201d08;try{const _0x429d9a=this[_0x11cdc7(0x1c3)]();if(_0x1d542b[_0x11cdc7(0x161)](isNullOrEmpty,_0x429d9a))throw new Error(_0x1d542b['XYmSp']);const _0x108e87=this[_0x11cdc7(0x177)](_0x429d9a),_0x4e7d46=await this['checkAndUpdateCli'](_0x108e87,_0x429d9a,_0x224da3);return logger[_0x11cdc7(0x1ba)]('Resolved\x20binary\x20path:\x20'+_0x4e7d46),_0x4e7d46;}catch(_0x592fca){logger['debug'](_0x11cdc7(0x191)+util[_0x11cdc7(0x114)](_0x592fca));}return null;}static async['checkAndUpdateCli'](_0x2e5a1b,_0x5525ef,_0x2c3cf9){const _0x23b3c5=a72_0x3c15ec,_0x419476={'LFMNh':function(_0x57646a){return _0x57646a();},'bNBan':function(_0x11bd0e,_0x5eec35){return _0x11bd0e(_0x5eec35);},'BwGmd':function(_0x35ba1e,_0x5a56b0,_0x49aee8){return _0x35ba1e(_0x5a56b0,_0x49aee8);},'xfpPk':'data','moktf':_0x23b3c5(0x1ae),'hQLIT':function(_0x4c1e29,_0x22e38a){return _0x4c1e29(_0x22e38a);}};PerformanceTester[_0x23b3c5(0x12f)](PerformanceEvents[_0x23b3c5(0x184)]),logger[_0x23b3c5(0x149)](_0x23b3c5(0x1a7)+_0x2e5a1b);const _0x2977f3=_0x419476[_0x23b3c5(0x17c)](getHostInfo),_0x268956={'sdk_version':CLIUtils[_0x23b3c5(0x165)](),'os':_0x2977f3[_0x23b3c5(0x1ac)],'os_arch':_0x2977f3['arch'],'cli_version':'0','sdk_language':this[_0x23b3c5(0x1d1)]()};!_0x419476['bNBan'](isNullOrEmpty,_0x2e5a1b)&&(_0x268956[_0x23b3c5(0x1a9)]=await this[_0x23b3c5(0x182)](_0x2e5a1b+_0x23b3c5(0x146)));const _0x38a290=await this[_0x23b3c5(0x19f)](_0x268956,_0x2c3cf9);process[_0x23b3c5(0x11a)][_0x23b3c5(0x120)]&&(logger[_0x23b3c5(0x149)](_0x23b3c5(0x179)+process['env'][_0x23b3c5(0x120)]),_0x38a290[_0x23b3c5(0x141)]['url']=process[_0x23b3c5(0x11a)][_0x23b3c5(0x120)]);if(_0x419476['BwGmd'](nestedKeyValue,_0x38a290,[_0x419476[_0x23b3c5(0x119)],_0x419476[_0x23b3c5(0x189)]])){logger[_0x23b3c5(0x1ba)](_0x23b3c5(0x15b)+_0x268956[_0x23b3c5(0x1a9)]);if(!_0x419476[_0x23b3c5(0x198)](isNullOrEmpty,_0x2e5a1b)&&this[_0x23b3c5(0x19c)](_0x2e5a1b))return logger[_0x23b3c5(0x17f)](_0x23b3c5(0x175)+_0x2e5a1b),PerformanceTester[_0x23b3c5(0x18c)](PerformanceEvents[_0x23b3c5(0x184)]),_0x2e5a1b;const _0x5b1b78=await this[_0x23b3c5(0x1d0)](_0x419476['BwGmd'](nestedKeyValue,_0x38a290,[_0x419476[_0x23b3c5(0x119)],_0x419476[_0x23b3c5(0x189)]]),_0x5525ef);return PerformanceTester[_0x23b3c5(0x18c)](PerformanceEvents[_0x23b3c5(0x184)]),_0x5b1b78;}return PerformanceTester[_0x23b3c5(0x18c)](PerformanceEvents[_0x23b3c5(0x184)]),_0x2e5a1b;}static['getCliDir'](){const _0x3755e7=a72_0x3c15ec,_0x107601={'tiESR':function(_0x43b0fb,_0x58e20a){return _0x43b0fb(_0x58e20a);},'qZCok':_0x3755e7(0x145),'alJvn':_0x3755e7(0x144)},_0x23dcf5=this[_0x3755e7(0x133)]();try{if(_0x107601[_0x3755e7(0x1a3)](isNullOrEmpty,_0x23dcf5))throw new Error(_0x107601['qZCok']);const _0x592136=path[_0x3755e7(0x1d3)](_0x23dcf5,_0x107601['alJvn']);return!fs['existsSync'](_0x592136)&&_0x107601['tiESR'](createDir,_0x592136),_0x592136;}catch(_0x59618e){logger['debug'](_0x3755e7(0x17b)+util[_0x3755e7(0x114)](_0x59618e));}}static[a72_0x3c15ec(0x133)](){const _0x5ba420=a72_0x3c15ec,_0x46bd17={'fjxgo':_0x5ba420(0x185),'KJjSc':function(_0x21de4e,_0x20b652){return _0x21de4e(_0x20b652);},'QsANP':function(_0x3afac6,_0x382636){return _0x3afac6(_0x382636);},'HDQmh':function(_0x543c68,_0x78b7be){return _0x543c68(_0x78b7be);}},_0x377f2a=[process[_0x5ba420(0x11a)]['BROWSERSTACK_FILES_DIR'],path[_0x5ba420(0x1d3)](os['homedir'](),_0x46bd17[_0x5ba420(0x171)]),path[_0x5ba420(0x1d3)](os[_0x5ba420(0x106)](),_0x46bd17['fjxgo'])];for(const _0x3b2f26 of _0x377f2a){if(_0x46bd17[_0x5ba420(0x176)](isNullOrEmpty,_0x3b2f26))continue;try{if(fs[_0x5ba420(0x115)](_0x3b2f26)){logger[_0x5ba420(0x1ba)](_0x5ba420(0x1e3)+_0x3b2f26+_0x5ba420(0x1d7));if(!_0x46bd17[_0x5ba420(0x176)](isModifiable,_0x3b2f26)){logger[_0x5ba420(0x1ba)](_0x5ba420(0x154)+_0x3b2f26);const _0x17f0b2=_0x46bd17['KJjSc'](setReadWriteExecuteAccess,_0x3b2f26);if(!_0x46bd17[_0x5ba420(0x176)](isTrue,_0x17f0b2)){logger[_0x5ba420(0x17f)](_0x5ba420(0x151)+_0x3b2f26);continue;}}}else{logger[_0x5ba420(0x1ba)](_0x5ba420(0x1cf)+_0x3b2f26),_0x46bd17[_0x5ba420(0xfe)](createDir,_0x3b2f26),logger['debug'](_0x5ba420(0x154)+_0x3b2f26);const _0x59e5bf=_0x46bd17[_0x5ba420(0x176)](setReadWriteExecuteAccess,_0x3b2f26);!_0x46bd17['HDQmh'](isTrue,_0x59e5bf)&&logger['warn'](_0x5ba420(0x151)+_0x3b2f26);}return _0x3b2f26;}catch(_0x6c4bb1){logger[_0x5ba420(0x16a)](_0x5ba420(0x11b)+util['format'](_0x6c4bb1));}}return null;}static['getExistingCliPath'](_0x5a3f96){const _0x587a27=a72_0x3c15ec,_0x16f1fa={};_0x16f1fa[_0x587a27(0x128)]=function(_0x52ed89,_0x354073){return _0x52ed89>_0x354073;};const _0x13ece8=_0x16f1fa;try{if(!fs[_0x587a27(0x115)](_0x5a3f96)||!fs['statSync'](_0x5a3f96)[_0x587a27(0x1d6)]())return'';const _0x5e4724=fs[_0x587a27(0x162)](_0x5a3f96)[_0x587a27(0xfd)](_0x46b5ee=>path['join'](_0x5a3f96,_0x46b5ee))[_0x587a27(0x160)](_0x3af75d=>fs['statSync'](_0x3af75d)[_0x587a27(0x1d8)]()&&path[_0x587a27(0x17d)](_0x3af75d)['startsWith'](_0x587a27(0x1c1)));if(_0x13ece8[_0x587a27(0x128)](_0x5e4724['length'],0x0)){const _0x531278=_0x5e4724['map'](_0x4ea589=>({'filePath':_0x4ea589,'mtime':fs['statSync'](_0x4ea589)[_0x587a27(0x150)]}))[_0x587a27(0x14a)]((_0x51d1fb,_0x114a1f)=>{const _0x56a9e4=_0x587a27;if(!_0x51d1fb||!_0x51d1fb['mtime'])return _0x114a1f;if(_0x13ece8['wsgWQ'](_0x114a1f[_0x56a9e4(0x150)],_0x51d1fb[_0x56a9e4(0x150)]))return _0x114a1f;return _0x51d1fb;},{});return _0x531278?_0x531278[_0x587a27(0x10f)]:'';}return'';}catch(_0x78c216){return logger['error'](_0x587a27(0x135)+util['format'](_0x78c216)),'';}}static [a72_0x3c15ec(0x19f)]=async(_0x1a2155,_0x290f04)=>{const _0x1290bb=a72_0x3c15ec,_0x234f9c={'RQbFA':function(_0x2ee799,_0x32c279,_0x13c535,_0x276414,_0x2b5359){return _0x2ee799(_0x32c279,_0x13c535,_0x276414,_0x2b5359);},'QlKwy':_0x1290bb(0x170)},_0x2b6df8={};_0x2b6df8['qs']=_0x1a2155;const _0x4f67a3=await _0x234f9c['RQbFA'](nodeRequest,_0x234f9c[_0x1290bb(0x167)],UPDATED_CLI_ENDPOINT,_0x2b6df8,_0x290f04);return logger[_0x1290bb(0x1ba)](_0x1290bb(0x136)+JSON[_0x1290bb(0x10b)](_0x4f67a3)),_0x4f67a3;};static[a72_0x3c15ec(0x19c)](_0x52d99b){const _0x2075df=a72_0x3c15ec;try{const _0x4a5ea6=fs[_0x2075df(0x109)](_0x52d99b,'r+');return fs[_0x2075df(0x190)](_0x4a5ea6),![];}catch(_0x5cd08c){if(BINARY_BUSY_ERROR_CODES[_0x2075df(0x15c)](_0x5cd08c[_0x2075df(0x138)]))return logger[_0x2075df(0x1ba)](_0x2075df(0x1da)+_0x52d99b),!![];return logger['debug'](_0x2075df(0x107)+_0x5cd08c['message']),![];}}static['runShellCommand'](_0x3c4d8d,_0xf0a839=''){const _0x5319ac=a72_0x3c15ec,_0x42135d={'uZkbS':function(_0x22ba01,_0x297bf4){return _0x22ba01(_0x297bf4);},'odRYk':_0x5319ac(0x12b),'YDvBe':'version','eYuLf':function(_0x3957ed,_0x1629a8,_0x37ccc4,_0x53246c){return _0x3957ed(_0x1629a8,_0x37ccc4,_0x53246c);},'OrWNI':_0x5319ac(0x16a)};return new Promise((_0x3cd90e,_0x70d16)=>{const _0x2d5151=_0x5319ac,_0x1c0530={'kqaaN':_0x42135d[_0x2d5151(0x168)],'uaWwG':function(_0x2916c3,_0x5f1672){return _0x42135d['uZkbS'](_0x2916c3,_0x5f1672);},'Xgudz':function(_0x25d480,_0x598966){const _0x326a47=_0x2d5151;return _0x42135d[_0x326a47(0x195)](_0x25d480,_0x598966);},'gpJOZ':_0x42135d[_0x2d5151(0x1b1)]},_0xdbb154={};_0xdbb154['cwd']=_0xf0a839,_0xdbb154['timeout']=0x1388;const _0x2583d1=_0x42135d[_0x2d5151(0x127)](exec,_0x3c4d8d,_0xdbb154,(_0x39fb5f,_0x41c7f7,_0x222afa)=>{const _0x3e9fcd=_0x2d5151;if(_0x39fb5f){if(_0x3c4d8d['includes'](_0x1c0530[_0x3e9fcd(0x180)])&&(_0x41c7f7['trim']()||_0x222afa[_0x3e9fcd(0x1dd)]())){const _0x49de92=_0x41c7f7[_0x3e9fcd(0x1dd)]()||_0x222afa[_0x3e9fcd(0x1dd)]();logger['debug']('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x49de92+'\x22'),_0x1c0530[_0x3e9fcd(0x169)](_0x3cd90e,_0x49de92);}else _0x1c0530['Xgudz'](_0x3cd90e,_0x222afa[_0x3e9fcd(0x1dd)]()||_0x1c0530[_0x3e9fcd(0x14e)]);}else logger[_0x3e9fcd(0x1ba)]('Resolving\x20with\x20stdout:\x20\x22'+_0x41c7f7['trim']()+'\x22'),_0x1c0530[_0x3e9fcd(0x169)](_0x3cd90e,_0x41c7f7[_0x3e9fcd(0x1dd)]());});_0x2583d1['on'](_0x42135d[_0x2d5151(0x1d5)],()=>{const _0xae5464=_0x2d5151;_0x42135d[_0xae5464(0x195)](_0x3cd90e,_0x42135d[_0xae5464(0x1b1)]);});});}static [a72_0x3c15ec(0x1d0)]=async(_0x43188a,_0x5cbe81)=>{const _0x239b38=a72_0x3c15ec,_0x2daf60={'ydDza':function(_0xc6b8e3,_0xb48854){return _0xc6b8e3(_0xb48854);},'QHMRV':_0x239b38(0x196),'DPOnN':function(_0x3d40d9,_0x418951){return _0x3d40d9(_0x418951);},'sKgSz':function(_0x2080c4,_0x2b9fa3){return _0x2080c4(_0x2b9fa3);},'JiQiw':_0x239b38(0x166),'zRPAg':_0x239b38(0x16a)};PerformanceTester[_0x239b38(0x12f)](PerformanceEvents[_0x239b38(0x14b)]),logger[_0x239b38(0x1ba)](_0x239b38(0x1de)+_0x43188a);try{const _0x229b99=url[_0x239b38(0x11e)](_0x43188a),_0x23e258=path[_0x239b38(0x1d3)](_0x5cbe81,_0x239b38(0x14c)+process['pid']+'.zip'),_0x608ff6=fs[_0x239b38(0x1c9)](_0x23e258);return new Promise((_0x127ad0,_0x1c7157)=>{const _0x579748=_0x239b38,_0x2bb3fa={'erjWL':_0x2daf60[_0x579748(0x11f)],'eszTj':function(_0x30fd61,_0x86fa75){const _0x25f0eb=_0x579748;return _0x2daf60[_0x25f0eb(0x110)](_0x30fd61,_0x86fa75);},'MjZlc':function(_0x40b1e2,_0x3c5900){const _0x13f5d9=_0x579748;return _0x2daf60[_0x13f5d9(0x118)](_0x40b1e2,_0x3c5900);},'mybkz':_0x2daf60[_0x579748(0x178)],'QrDlQ':function(_0x499c1e,_0x4c5ec1){const _0x5de273=_0x579748;return _0x2daf60[_0x5de273(0x118)](_0x499c1e,_0x4c5ec1);},'hVUDP':function(_0x2f569c,_0x50ffd2){const _0x48b80c=_0x579748;return _0x2daf60[_0x48b80c(0x110)](_0x2f569c,_0x50ffd2);},'ZGSVT':_0x2daf60[_0x579748(0x1ca)]};https[_0x579748(0x140)](_0x229b99,function(_0x129df2){const _0x18412c=_0x579748,_0x3c1000={'BrcWG':_0x2bb3fa[_0x18412c(0x1bc)],'LxSVK':function(_0x5692af,_0x50d60b){const _0x5d9fa0=_0x18412c;return _0x2bb3fa[_0x5d9fa0(0x12e)](_0x5692af,_0x50d60b);},'Tspea':function(_0x545ab2,_0x16e661){const _0x191910=_0x18412c;return _0x2bb3fa[_0x191910(0x1bd)](_0x545ab2,_0x16e661);}},_0x54e588=null;_0x129df2[_0x18412c(0x158)](_0x608ff6),_0x129df2['on'](_0x2bb3fa['ZGSVT'],function(_0x1067fa){const _0x23a94d=_0x18412c;logger['error'](util[_0x23a94d(0x114)](_0x2bb3fa['erjWL'],_0x1067fa)),PerformanceTester['end'](PerformanceEvents[_0x23a94d(0x14b)],![],util['format'](_0x1067fa)),_0x2bb3fa[_0x23a94d(0x1c2)](_0x1c7157,_0x1067fa);}),_0x608ff6['on'](_0x2bb3fa['ZGSVT'],function(_0x3819c1){const _0x3d8ad1=_0x18412c;logger[_0x3d8ad1(0x16a)](util['format'](_0x3c1000[_0x3d8ad1(0x1dc)],_0x3819c1)),PerformanceTester[_0x3d8ad1(0x18c)](PerformanceEvents[_0x3d8ad1(0x14b)],![],util[_0x3d8ad1(0x114)](_0x3819c1)),_0x3c1000[_0x3d8ad1(0x181)](_0x1c7157,_0x3819c1);}),CLIUtils[_0x18412c(0x194)](_0x608ff6,_0x54e588,_0x23e258,_0x5cbe81,_0x354fd9=>{const _0x552fb1=_0x18412c;PerformanceTester[_0x552fb1(0x18c)](PerformanceEvents[_0x552fb1(0x14b)]),_0x3c1000[_0x552fb1(0x16e)](_0x127ad0,_0x354fd9);},_0x2a346e=>{const _0x7f3b93=_0x18412c;PerformanceTester['end'](PerformanceEvents[_0x7f3b93(0x14b)],![],util['format'](_0x2a346e)),_0x2bb3fa[_0x7f3b93(0x152)](_0x1c7157,_0x2a346e);});})['on'](_0x2daf60[_0x579748(0x1ca)],function(_0xe433ba){const _0x2a529e=_0x579748;logger[_0x2a529e(0x16a)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x2a529e(0x114)](_0xe433ba)),PerformanceTester['end'](PerformanceEvents[_0x2a529e(0x14b)],![],util[_0x2a529e(0x114)](_0xe433ba)),_0x2daf60[_0x2a529e(0x197)](_0x1c7157,_0xe433ba);});});}catch(_0x1e71f8){PerformanceTester[_0x239b38(0x18c)](PerformanceEvents[_0x239b38(0x14b)],![],util['format'](_0x1e71f8)),logger[_0x239b38(0x1ba)](_0x239b38(0x174)+util[_0x239b38(0x114)](_0x1e71f8));}};static[a72_0x3c15ec(0x194)](_0x566b0e,_0x5705a4,_0x1a331a,_0x381e0d,_0x4274b8,_0x22a855){const _0x15087d=a72_0x3c15ec,_0x10e262={'LndAQ':function(_0x485243,_0x47e72a){return _0x485243(_0x47e72a);},'xRitL':function(_0x1d436a,_0x9021ca){return _0x1d436a(_0x9021ca);},'TpTqc':_0x15087d(0x1b4),'goLCo':'error','eAwpB':'end','POtFu':_0x15087d(0x124),'Lcxaj':function(_0x58c5ff,_0x1e18ea){return _0x58c5ff!==_0x1e18ea;},'fcVpu':function(_0xb99154,_0x2504c5){return _0xb99154(_0x2504c5);},'ZMbtp':function(_0x7b57f9,_0x45a449){return _0x7b57f9!==_0x45a449;},'yBBPQ':'EXDEV','SZdbb':_0x15087d(0x143)};_0x566b0e['on'](_0x10e262[_0x15087d(0x1c5)],function(){const _0x47644d=_0x15087d,_0x79da83={'KkIiQ':_0x10e262['POtFu'],'ItBFn':function(_0x2e9fce,_0x217f7b){const _0x5bcfd6=a72_0x579e;return _0x10e262[_0x5bcfd6(0x12c)](_0x2e9fce,_0x217f7b);},'oWuAT':_0x10e262[_0x47644d(0x1c6)],'bBATu':function(_0x1c60c6,_0x28dab1){const _0x1b5718=_0x47644d;return _0x10e262[_0x1b5718(0x1a8)](_0x1c60c6,_0x28dab1);},'yOVQg':function(_0x5ec9c4,_0x303102){const _0x1dffac=_0x47644d;return _0x10e262[_0x1dffac(0x1c8)](_0x5ec9c4,_0x303102);},'isCPv':_0x10e262[_0x47644d(0x1ce)],'CVgnB':function(_0x29ffa1,_0x470c3b){const _0x51c0da=_0x47644d;return _0x10e262[_0x51c0da(0x117)](_0x29ffa1,_0x470c3b);},'fxIzz':function(_0x30b3f7,_0x167d84){const _0x28abe3=_0x47644d;return _0x10e262[_0x28abe3(0x1c4)](_0x30b3f7,_0x167d84);},'qWHnm':_0x10e262['yBBPQ'],'FsrJu':_0x10e262['SZdbb']},_0x4b1e8c={};_0x4b1e8c[_0x47644d(0x121)]=!![],yauzl[_0x47644d(0x13a)](_0x1a331a,_0x4b1e8c,function(_0x3ec379,_0xcffcb5){const _0x5c8233=_0x47644d,_0x310c00={'DELqq':function(_0xb5e2ff,_0x147fbd){const _0x45774e=a72_0x579e;return _0x10e262[_0x45774e(0x12c)](_0xb5e2ff,_0x147fbd);},'BEOOr':function(_0x46f9ce,_0x440478){const _0x590f22=a72_0x579e;return _0x10e262[_0x590f22(0x117)](_0x46f9ce,_0x440478);}};if(_0x3ec379){_0x10e262[_0x5c8233(0x12c)](_0x22a855,_0x3ec379);return;}_0xcffcb5[_0x5c8233(0x102)](),_0xcffcb5['on'](_0x10e262[_0x5c8233(0x1e1)],_0x44b199=>{const _0x6b93c=_0x5c8233,_0x4e4e17={'EbmoB':_0x79da83[_0x6b93c(0x17a)],'uXUNH':function(_0x70da1,_0xaa5e83){const _0x5312bd=_0x6b93c;return _0x79da83[_0x5312bd(0x1e0)](_0x70da1,_0xaa5e83);},'DnUsM':_0x79da83[_0x6b93c(0x12d)]};if(/\/$/[_0x6b93c(0x1b6)](_0x44b199[_0x6b93c(0x1a2)])){_0xcffcb5[_0x6b93c(0x102)]();return;}!_0x5705a4&&(_0x5705a4=_0x44b199[_0x6b93c(0x1a2)]);if(_0x79da83[_0x6b93c(0x172)](_0x44b199[_0x6b93c(0x1a2)],_0x5705a4))_0xcffcb5[_0x6b93c(0x102)]();else{const _0x1de747=_0x44b199[_0x6b93c(0x1a2)],_0x9de7e4=path[_0x6b93c(0x1d3)](_0x381e0d,_0x1de747+_0x6b93c(0x18a)+process['pid']);let _0x85adbb;try{_0x85adbb=fs[_0x6b93c(0x1c9)](_0x9de7e4);}catch(_0x541a58){if(BINARY_BUSY_ERROR_CODES[_0x6b93c(0x15c)](_0x541a58[_0x6b93c(0x138)])){const _0x1f7e42=path[_0x6b93c(0x1d3)](_0x381e0d,_0x1de747);if(fs[_0x6b93c(0x115)](_0x1f7e42)){logger[_0x6b93c(0x17f)](_0x6b93c(0x1aa)+_0x1de747),fs[_0x6b93c(0x1d2)](_0x1a331a,_0x52d291=>{const _0x519e2d=_0x6b93c;_0x52d291&&logger[_0x519e2d(0x17f)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x1a331a);}),_0x79da83[_0x6b93c(0x1e0)](_0x4274b8,_0x1f7e42);return;}logger[_0x6b93c(0x17f)](_0x6b93c(0x1a6)+_0x1de747);}_0x79da83[_0x6b93c(0x11d)](_0x22a855,_0x541a58);return;}_0x85adbb['on'](_0x79da83[_0x6b93c(0x100)],_0x471575=>{const _0x7d57d0=_0x6b93c;if(BINARY_BUSY_ERROR_CODES[_0x7d57d0(0x15c)](_0x471575['code'])){const _0x5061a1=path[_0x7d57d0(0x1d3)](_0x381e0d,_0x1de747);_0x85adbb['close'](),fs[_0x7d57d0(0x115)](_0x5061a1)?(logger['warn']('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x471575[_0x7d57d0(0x105)]),_0xcffcb5[_0x7d57d0(0x124)](),fs[_0x7d57d0(0x1d2)](_0x1a331a,_0x1dd017=>{const _0x57a467=_0x7d57d0;_0x1dd017&&logger['warn'](_0x57a467(0x12a)+_0x1a331a);}),_0x310c00['DELqq'](_0x4274b8,_0x5061a1)):(logger[_0x7d57d0(0x17f)](_0x7d57d0(0x16c)+_0x471575[_0x7d57d0(0x105)]),fs['unlink'](_0x9de7e4,()=>{}),_0x310c00[_0x7d57d0(0x123)](_0x22a855,_0x471575));}else fs[_0x7d57d0(0x1d2)](_0x9de7e4,()=>{}),_0x310c00[_0x7d57d0(0x123)](_0x22a855,_0x471575);}),_0xcffcb5[_0x6b93c(0x1db)](_0x44b199,function(_0x257534,_0x56032a){const _0x38250a=_0x6b93c,_0x457ef3={};_0x457ef3['blOWr']=_0x4e4e17[_0x38250a(0x142)];const _0x210758=_0x457ef3;if(_0x257534){fs[_0x38250a(0x1d2)](_0x9de7e4,()=>{}),_0x4e4e17['uXUNH'](_0x22a855,_0x257534);return;}_0x56032a['on'](_0x4e4e17['DnUsM'],function(){const _0x8daef5=_0x38250a;_0x85adbb['end'](),_0x85adbb['on'](_0x210758[_0x8daef5(0x18b)],function(){const _0x263bdd=_0x8daef5;_0xcffcb5[_0x263bdd(0x102)]();});}),_0x56032a[_0x38250a(0x158)](_0x85adbb);});}}),_0xcffcb5['on'](_0x10e262[_0x5c8233(0x1ce)],_0x151bfd=>{const _0x1c5ece=_0x5c8233;_0x79da83[_0x1c5ece(0x18d)](_0x22a855,_0x151bfd);}),_0xcffcb5['once'](_0x10e262[_0x5c8233(0x1c6)],()=>{const _0x330019=_0x5c8233,_0x41b73e={'TKcqa':function(_0x39782b,_0x242641){const _0x1a55cf=a72_0x579e;return _0x79da83[_0x1a55cf(0x10e)](_0x39782b,_0x242641);},'GhwdM':_0x79da83[_0x330019(0x112)],'yIKYb':function(_0xeb2cab,_0x35c1d1){const _0x25d715=_0x330019;return _0x79da83[_0x25d715(0x18d)](_0xeb2cab,_0x35c1d1);},'fKRSu':function(_0x1140d1,_0x4ac1b4){const _0x3cb664=_0x330019;return _0x79da83[_0x3cb664(0x1e0)](_0x1140d1,_0x4ac1b4);}};fs[_0x330019(0x1d2)](_0x1a331a,_0x7b0815=>{const _0x54b353=_0x330019;_0x7b0815&&logger['warn'](_0x54b353(0x12a)+_0x1a331a);});const _0x54dbb3=path[_0x330019(0x1d3)](_0x381e0d,_0x5705a4+_0x330019(0x18a)+process[_0x330019(0x131)]),_0xfa82fc=path['join'](_0x381e0d,_0x5705a4);fs['chmod'](_0x54dbb3,_0x79da83[_0x330019(0x148)],function(_0x2f00de){const _0x49caae=_0x330019;if(_0x2f00de){_0xcffcb5[_0x49caae(0x124)](),fs[_0x49caae(0x1d2)](_0x54dbb3,()=>{}),_0x41b73e[_0x49caae(0x1b3)](_0x22a855,_0x2f00de);return;}fs['rename'](_0x54dbb3,_0xfa82fc,function(_0x31770a){const _0x2d0807=_0x49caae;if(_0x31770a){if(_0x41b73e[_0x2d0807(0x18f)](_0x31770a[_0x2d0807(0x138)],_0x41b73e[_0x2d0807(0xff)])){_0xcffcb5[_0x2d0807(0x124)](),fs[_0x2d0807(0x1d2)](_0x54dbb3,()=>{}),_0x41b73e[_0x2d0807(0x11c)](_0x22a855,_0x31770a);return;}logger[_0x2d0807(0x17f)](_0x2d0807(0x1b0)+_0x31770a[_0x2d0807(0x105)]);try{fs[_0x2d0807(0x1a4)](_0x54dbb3,_0xfa82fc);}catch(_0x5a6f76){_0xcffcb5[_0x2d0807(0x124)](),fs['unlink'](_0x54dbb3,()=>{}),_0x41b73e['yIKYb'](_0x22a855,_0x5a6f76);return;}fs['unlink'](_0x54dbb3,_0x3bf9d8=>{const _0x6b9441=_0x2d0807;_0x3bf9d8&&logger['warn']('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x3bf9d8[_0x6b9441(0x105)]);});}_0xcffcb5['close'](),_0x41b73e['yIKYb'](_0x4274b8,_0xfa82fc);});});});});});}static[a72_0x3c15ec(0x104)](){const _0x286f1e=a72_0x3c15ec;if(process['env'][_0x286f1e(0x1ad)])return JSON[_0x286f1e(0x11e)](process[_0x286f1e(0x11a)][_0x286f1e(0x1ad)]);return this[_0x286f1e(0x1bf)];}static[a72_0x3c15ec(0x1ab)](){const _0x456a79=a72_0x3c15ec;if(process[_0x456a79(0x11a)][_0x456a79(0x17e)])return JSON['parse'](process[_0x456a79(0x11a)][_0x456a79(0x17e)]);return this['automationFrameworkDetail'];}static[a72_0x3c15ec(0x1b7)](_0x1fe902,_0x48db3c){const _0x41076c=a72_0x3c15ec,_0xba228a={'QHgUY':_0x41076c(0x113),'ZHWTg':function(_0x222283,_0x1dd4a6){return _0x222283(_0x1dd4a6);},'lQsie':function(_0x32c530,_0x586e3d){return _0x32c530(_0x586e3d);},'ulvwM':function(_0x3192fc,_0x350cac){return _0x3192fc||_0x350cac;}},_0x528d50=_0xba228a[_0x41076c(0x1af)][_0x41076c(0x183)]('|');let _0x1a385f=0x0;while(!![]){switch(_0x528d50[_0x1a385f++]){case'0':this[_0x41076c(0x1bf)]={'name':_0x1fe902,'version':{[_0x1fe902]:_0xba228a[_0x41076c(0x1b8)](getFrameworkVersion,_0x1fe902)}};continue;case'1':this[_0x41076c(0x10a)]={'name':_0x48db3c,'version':_0xba228a[_0x41076c(0x13c)](getFrameworkVersion,_0x48db3c)};continue;case'2':process[_0x41076c(0x11a)][_0x41076c(0x17e)]=JSON[_0x41076c(0x10b)](this[_0x41076c(0x10a)]);continue;case'3':process['env']['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x41076c(0x10b)](this[_0x41076c(0x1bf)]);continue;case'4':_0xba228a[_0x41076c(0x186)](!_0x1fe902,!_0x48db3c)&&logger['debug'](_0x41076c(0x147)+_0x1fe902+_0x41076c(0x103)+_0x48db3c);continue;}break;}}static[a72_0x3c15ec(0x1a5)](_0x4111fb,_0x5b3009){return _0x4111fb+':'+_0x5b3009;}static[a72_0x3c15ec(0x16f)](){const _0x29543f=a72_0x3c15ec;return process[_0x29543f(0x131)]+':'+threadId;}static[a72_0x3c15ec(0x130)](_0xe867d8){const _0x236d77=a72_0x3c15ec;if(_0xe867d8[_0x236d77(0x10c)]&&_0xe867d8[_0x236d77(0x10c)][_0x236d77(0x15f)])return!![];return![];}static['shouldSkipSessionStatus'](_0x49a509){const _0x233578=a72_0x3c15ec;if(_0x49a509['testContextOptions']&&_0x49a509['testContextOptions'][_0x233578(0x1be)])return!![];return![];}static[a72_0x3c15ec(0x1a1)](_0x226997){const _0x19c2e5=a72_0x3c15ec,_0x2e0e8b=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x2e0e8b[_0x19c2e5(0x1b6)](_0x226997);}static[a72_0x3c15ec(0x16d)](_0xb11421,_0xe1137c){const _0x441c29=a72_0x3c15ec,_0x55f801={};_0x55f801[_0x441c29(0x192)]=function(_0x5d1de8,_0xe76ff5){return _0x5d1de8!==_0xe76ff5;},_0x55f801[_0x441c29(0x199)]=function(_0x42a26c,_0x3ac922){return _0x42a26c===_0x3ac922;},_0x55f801[_0x441c29(0x108)]=_0x441c29(0x122);const _0x8a3a93=_0x55f801;for(const [_0x9b49ef,_0x397c31]of Object[_0x441c29(0x15a)](_0xe1137c)){if(_0x8a3a93[_0x441c29(0x192)](_0x397c31,null)&&_0x8a3a93[_0x441c29(0x199)](typeof _0x397c31,_0x8a3a93[_0x441c29(0x108)])&&!Array['isArray'](_0x397c31))_0xb11421[_0x9b49ef]=this[_0x441c29(0x16d)](_0xb11421[_0x9b49ef]||{},_0x397c31);else Array[_0x441c29(0x1cb)](_0x397c31)?_0xb11421[_0x9b49ef]=(_0xb11421[_0x9b49ef]||[])[_0x441c29(0x155)](_0x397c31):_0xb11421[_0x9b49ef]=_0x397c31;}return _0xb11421;}}module[a72_0x3c15ec(0x1cd)]=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a73_0x5e78(){const _0x3c0628=['toLowerCase','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','buildLevelTags','1976948FwfLbl','includes','getTestFrameworkDetail','522oMNIDg','isRunning','clearTags','Custom\x20tag\x20value\x20cannot\x20be\x20empty','setTestDetails','getInstance','HezZw','hqoIO','1811925VuEvuP',',\x20values=','toObject','RZjTu','\x20with\x20values=','../../helpers/classLogger','setCustomTags','peEbY',',\x20key=','MAMJg','[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key=','./browserstackCLI','field_type','getAllData','addMultipleEntries','./state/testFrameworkState','trim','../../helpers/helper','ChUkp','currentTest','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','./modules/testhubModule','TEST','jXHfi','130772iQwmCs','exports','3eoARkw','buildHashedId',':jest-','__jestCurrentTestIdentifier','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','CustomTagManager','getTrackedInstance','PyxrS','./framework/constants/testFrameworkConstants','__workerDetails','LYJxX','vindh','2618861CQkZuS','debug','qBcpW','CAhqM','KEY_TEST_ID','174910zHCdEy','modules','xUDdO','stringify','testInfo','getTestLevelTags','./TestInfo','ZnMop','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','resolveInstance','getTestUUID','values','getBuildLevelTags','[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key=','6AwAwab','multi_dropdown','./cliUtils','testLevelTags','KEY_CUSTOM_TAGS','testhubConfig','getState','cHumI','11wVJZSo','554244XvZnFu','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','parseCommaSeparatedValues','Custom\x20tag\x20key\x20cannot\x20be\x20empty','6TaRgCK','1132400SGUrzO','getTestDetails','getTestIdentifierFromTestInfo','./modules/playwrightDriverModule',',\x20finalTags=','./framework/automationFramework'];a73_0x5e78=function(){return _0x3c0628;};return a73_0x5e78();}const a73_0x1d12e8=a73_0x2d8f;(function(_0xc5abe4,_0x2eff8a){const _0x566d53=a73_0x2d8f,_0x238125=_0xc5abe4();while(!![]){try{const _0x1e6ae0=parseInt(_0x566d53(0xfe))/0x1*(parseInt(_0x566d53(0xfc))/0x2)+-parseInt(_0x566d53(0x11d))/0x3*(-parseInt(_0x566d53(0x134))/0x4)+parseInt(_0x566d53(0x13f))/0x5+-parseInt(_0x566d53(0x12a))/0x6*(-parseInt(_0x566d53(0x10a))/0x7)+-parseInt(_0x566d53(0x12b))/0x8+parseInt(_0x566d53(0x137))/0x9*(-parseInt(_0x566d53(0x10f))/0xa)+-parseInt(_0x566d53(0x125))/0xb*(-parseInt(_0x566d53(0x126))/0xc);if(_0x1e6ae0===_0x2eff8a)break;else _0x238125['push'](_0x238125['shift']());}catch(_0x17708d){_0x238125['push'](_0x238125['shift']());}}}(a73_0x5e78,0xc6123));const BrowserstackCLI=require(a73_0x1d12e8(0x14a)),helper=require(a73_0x1d12e8(0x150)),AutomationFramework=require(a73_0x1d12e8(0x130)),TestFrameworkConstants=require(a73_0x1d12e8(0x106)),PlaywrightDriverModule=require(a73_0x1d12e8(0x12e)),TestInfo=require(a73_0x1d12e8(0x115)),TestHubModule=require(a73_0x1d12e8(0xf9)),{createClassLogger}=require(a73_0x1d12e8(0x144)),logger=createClassLogger(a73_0x1d12e8(0x103));class CustomTagManager{static ['buildLevelTags']={};static ['testLevelTags']={};static[a73_0x1d12e8(0x145)](_0x22cc38,_0x269464,_0x2e87d9=![]){const _0x5c1979=a73_0x1d12e8,_0x3cf321={'cHumI':function(_0x497a3e,_0x2d9240){return _0x497a3e!==_0x2d9240;},'MAMJg':'string','HezZw':_0x5c1979(0x117),'RZjTu':_0x5c1979(0x132),'ZnMop':function(_0x51a1bc,_0x4e3d9c){return _0x51a1bc===_0x4e3d9c;},'ChUkp':_0x5c1979(0x129),'cNGwi':function(_0x3f6e3f,_0x5bcf49){return _0x3f6e3f===_0x5bcf49;},'hqoIO':_0x5c1979(0x13a),'qBcpW':_0x5c1979(0x11e),'LYJxX':_0x5c1979(0x100),'PyxrS':function(_0xd56616,_0x258a75){return _0xd56616(_0x258a75);},'DuXZD':_0x5c1979(0x11f),'vindh':'jest','jXHfi':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','SAkNU':_0x5c1979(0xf8),'peEbY':_0x5c1979(0x14e),'CAhqM':function(_0x4afa18,_0xc4e1e8){return _0x4afa18(_0xc4e1e8);},'xUDdO':'./state/hookState','sqISC':_0x5c1979(0x127)};if(_0x3cf321[_0x5c1979(0x124)](typeof _0x22cc38,_0x3cf321['MAMJg']))throw new Error(_0x3cf321[_0x5c1979(0x13d)]);if(_0x3cf321[_0x5c1979(0x124)](typeof _0x269464,_0x3cf321[_0x5c1979(0x148)]))throw new Error(_0x3cf321[_0x5c1979(0x142)]);if(_0x3cf321[_0x5c1979(0x116)](_0x22cc38[_0x5c1979(0x14f)](),''))throw new Error(_0x3cf321[_0x5c1979(0xf6)]);if(_0x3cf321['cNGwi'](_0x269464[_0x5c1979(0x14f)](),''))throw new Error(_0x3cf321[_0x5c1979(0x13e)]);const _0x57d6de=helper[_0x5c1979(0x128)](_0x269464);if(_0x2e87d9){const _0x1832fe=BrowserstackCLI[_0x5c1979(0x13c)]()[_0x5c1979(0x110)][TestHubModule['MODULE_NAME']];if(_0x1832fe){const _0x27defd=_0x1832fe?.[_0x5c1979(0x122)]?.[_0x5c1979(0x141)]()?.[_0x5c1979(0xff)];TestInfo[_0x5c1979(0x119)](_0x27defd);const _0x4170c6=TestInfo[_0x5c1979(0x12c)](_0x27defd),_0x2f520c=_0x4170c6[TestFrameworkConstants[_0x5c1979(0x121)]]||{};if(!_0x2f520c[_0x22cc38]){const _0x390b83={};_0x390b83[_0x5c1979(0x14b)]=_0x3cf321[_0x5c1979(0x10c)],_0x390b83[_0x5c1979(0x11a)]=[..._0x57d6de],_0x2f520c[_0x22cc38]=_0x390b83;}else _0x2f520c[_0x22cc38][_0x5c1979(0x11a)]=[..._0x57d6de];_0x4170c6[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x2f520c,TestInfo[_0x5c1979(0x13b)](_0x27defd,_0x4170c6),!this[_0x5c1979(0x133)][_0x27defd]&&(this[_0x5c1979(0x133)][_0x27defd]={}),this[_0x5c1979(0x133)][_0x27defd][_0x22cc38]=[..._0x57d6de];}}else{let _0x5b2946;const _0x1db5e6=global[_0x5c1979(0x101)];let _0x474eb4=![];if(_0x1db5e6&&_0x1db5e6[_0x5c1979(0x135)](_0x3cf321[_0x5c1979(0x108)]))_0x474eb4=!![],_0x5b2946=_0x1db5e6;else try{const _0x1acdb9=_0x3cf321['PyxrS'](require,_0x3cf321['DuXZD']);if(BrowserstackCLI[_0x5c1979(0x13c)]()[_0x5c1979(0x138)]()){const _0x2e6465=_0x1acdb9[_0x5c1979(0x136)]();if(_0x3cf321['cNGwi'](_0x2e6465?.['name']?.[_0x5c1979(0x131)](),_0x3cf321[_0x5c1979(0x109)])){const _0x3f67ac=AutomationFramework[_0x5c1979(0x104)]();_0x5b2946=AutomationFramework[_0x5c1979(0x123)](_0x3f67ac,PlaywrightDriverModule[_0x5c1979(0x10e)],''),_0x5b2946&&_0x5b2946[_0x5c1979(0x135)](_0x3cf321['LYJxX'])&&(_0x474eb4=!![]);}}}catch(_0x25fcea){logger['debug']('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x25fcea);}if(_0x474eb4){if(!_0x5b2946)throw new Error(_0x3cf321[_0x5c1979(0xfb)]);const _0x1c6ae8=BrowserstackCLI[_0x5c1979(0x13c)]()['getTestFramework']();if(!_0x1c6ae8)throw new Error(_0x3cf321['SAkNU']);const _0x8064a3=_0x3cf321[_0x5c1979(0x105)](require,_0x3cf321[_0x5c1979(0x146)]),_0x2fb794=_0x3cf321[_0x5c1979(0x10d)](require,_0x3cf321[_0x5c1979(0x111)]),_0x2d5405=_0x1c6ae8[_0x5c1979(0x118)](_0x8064a3[_0x5c1979(0xfa)],_0x2fb794['POST']);if(!_0x2d5405)throw new Error(_0x3cf321['sqISC']);const _0x537dbd=_0x2d5405[_0x5c1979(0x14c)]()['get'](_0x5b2946)||{},_0x45607e=_0x537dbd[TestFrameworkConstants[_0x5c1979(0x121)]]||{};logger[_0x5c1979(0x10b)](_0x5c1979(0x102)+_0x5b2946+_0x5c1979(0x147)+_0x22cc38+_0x5c1979(0x140)+JSON[_0x5c1979(0x112)](_0x57d6de)+',\x20existingTags='+JSON[_0x5c1979(0x112)](_0x45607e));if(!_0x45607e[_0x22cc38]){const _0x210628={};_0x210628[_0x5c1979(0x14b)]=_0x3cf321[_0x5c1979(0x10c)],_0x210628[_0x5c1979(0x11a)]=[..._0x57d6de],_0x45607e[_0x22cc38]=_0x210628,logger[_0x5c1979(0x10b)](_0x5c1979(0x149)+_0x22cc38+_0x5c1979(0x143)+JSON[_0x5c1979(0x112)](_0x57d6de));}else _0x45607e[_0x22cc38][_0x5c1979(0x11a)]=[..._0x57d6de],logger[_0x5c1979(0x10b)](_0x5c1979(0x11c)+_0x22cc38+'\x20with\x20new\x20values='+JSON['stringify'](_0x57d6de));const _0xd5a23f={[TestFrameworkConstants[_0x5c1979(0x121)]]:_0x45607e},_0x4ca7be={};_0x4ca7be[_0x5b2946]=_0xd5a23f,_0x2d5405[_0x5c1979(0x14d)](_0x4ca7be),logger[_0x5c1979(0x10b)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x5b2946+_0x5c1979(0x12f)+JSON[_0x5c1979(0x112)](_0x45607e)),!this[_0x5c1979(0x120)][_0x5b2946]&&(this['testLevelTags'][_0x5b2946]={}),this[_0x5c1979(0x120)][_0x5b2946][_0x22cc38]=[..._0x57d6de];}else{const _0x5e5783=global[_0x5c1979(0x107)]?.[_0x5c1979(0xf7)]?.[_0x5c1979(0x113)];if(!_0x5e5783){const _0x1b9b9c=AutomationFramework[_0x5c1979(0x104)]();_0x5b2946=AutomationFramework[_0x5c1979(0x123)](_0x1b9b9c,PlaywrightDriverModule['KEY_TEST_ID'],'');}else _0x5b2946=TestInfo[_0x5c1979(0x12d)](_0x5e5783,_0x5e5783['retry']);const _0x532f33=TestInfo[_0x5c1979(0x12c)](_0x5b2946),_0x178425=_0x532f33[TestFrameworkConstants[_0x5c1979(0x121)]]||{};if(!_0x178425[_0x22cc38]){const _0x36bb9d={};_0x36bb9d[_0x5c1979(0x14b)]=_0x3cf321[_0x5c1979(0x10c)],_0x36bb9d[_0x5c1979(0x11a)]=[..._0x57d6de],_0x178425[_0x22cc38]=_0x36bb9d;}else _0x178425[_0x22cc38][_0x5c1979(0x11a)]=[..._0x57d6de];_0x532f33[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x178425,TestInfo[_0x5c1979(0x13b)](_0x5b2946,_0x532f33),!this['testLevelTags'][_0x5b2946]&&(this[_0x5c1979(0x120)][_0x5b2946]={}),this[_0x5c1979(0x120)][_0x5b2946][_0x22cc38]=[..._0x57d6de];}}}static[a73_0x1d12e8(0x11b)](){const _0x8acfcd=a73_0x1d12e8,_0x583471={...this[_0x8acfcd(0x133)]};return _0x583471;}static[a73_0x1d12e8(0x114)](){const _0x1d84c7={...this['testLevelTags']};return _0x1d84c7;}static[a73_0x1d12e8(0x139)](){const _0x262d79=a73_0x1d12e8;this[_0x262d79(0x133)]={},this['testLevelTags']={};}}function a73_0x2d8f(_0x595b41,_0x210b38){const _0x5e781f=a73_0x5e78();return a73_0x2d8f=function(_0x2d8f23,_0x22e247){_0x2d8f23=_0x2d8f23-0xf6;let _0x1ac982=_0x5e781f[_0x2d8f23];return _0x1ac982;},a73_0x2d8f(_0x595b41,_0x210b38);}module[a73_0x1d12e8(0xfd)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a74_0x2426a9=a74_0x3e4a;(function(_0x5b9696,_0x27f1ce){const _0x47b006=a74_0x3e4a,_0x203a01=_0x5b9696();while(!![]){try{const _0x1234ea=parseInt(_0x47b006(0x104))/0x1*(parseInt(_0x47b006(0x106))/0x2)+-parseInt(_0x47b006(0x101))/0x3+-parseInt(_0x47b006(0x103))/0x4+-parseInt(_0x47b006(0xfe))/0x5+parseInt(_0x47b006(0x107))/0x6*(parseInt(_0x47b006(0xfd))/0x7)+parseInt(_0x47b006(0x109))/0x8*(-parseInt(_0x47b006(0x108))/0x9)+-parseInt(_0x47b006(0xff))/0xa*(-parseInt(_0x47b006(0x10b))/0xb);if(_0x1234ea===_0x27f1ce)break;else _0x203a01['push'](_0x203a01['shift']());}catch(_0x58b7b1){_0x203a01['push'](_0x203a01['shift']());}}}(a74_0x31c9,0xc6572));function a74_0x3e4a(_0x1d9858,_0x352340){const _0x31c913=a74_0x31c9();return a74_0x3e4a=function(_0x3e4a68,_0x4c8111){_0x3e4a68=_0x3e4a68-0xf9;let _0x2e3809=_0x31c913[_0x3e4a68];return _0x2e3809;},a74_0x3e4a(_0x1d9858,_0x352340);}const {createClassLogger}=require(a74_0x2426a9(0xfc));class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static[a74_0x2426a9(0xfb)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a74_0x2426a9(0xfa)](_0x4ebb1e,_0x204cf9){const _0x3f0a53=a74_0x2426a9;!this[_0x3f0a53(0xf9)][_0x4ebb1e]&&(this[_0x3f0a53(0xf9)][_0x4ebb1e]=[]),this['observers'][_0x4ebb1e][_0x3f0a53(0x10a)](_0x204cf9);}async['notifyObserver'](_0x4ab0f8,_0x3f2577){const _0x4c21d0=a74_0x2426a9,_0x21aa14={'kRnkO':function(_0x241d19,_0x31d76c){return _0x241d19(_0x31d76c);}};if(this['observers'][_0x4ab0f8]){for(const _0x89a178 of this['observers'][_0x4ab0f8]){await _0x21aa14[_0x4c21d0(0x100)](_0x89a178,_0x3f2577);}return;}}}const eventDispatcher=EventDispatcher['getInstance']();Object[a74_0x2426a9(0x102)](eventDispatcher),module[a74_0x2426a9(0x105)]=eventDispatcher;function a74_0x31c9(){const _0x2c59f2=['getInstance','../../helpers/classLogger.js','9211391EWQGYU','3948940EmEvtn','1227970CayyVE','kRnkO','1128699efglpm','freeze','3598596zvcxUn','21KGnXJs','exports','8622wBLTzh','6rKxSLc','391086hdfYnP','136xBROFQ','push','198CDvxCC','observers','registerObserver'];a74_0x31c9=function(){return _0x2c59f2;};return a74_0x31c9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a75_0x93cf75=a75_0x6ca8;function a75_0x6ca8(_0x144a4f,_0x346041){const _0x4b5dd0=a75_0x4b5d();return a75_0x6ca8=function(_0x6ca85e,_0x43405d){_0x6ca85e=_0x6ca85e-0xe6;let _0x10d035=_0x4b5dd0[_0x6ca85e];return _0x10d035;},a75_0x6ca8(_0x144a4f,_0x346041);}(function(_0x3e4fad,_0x486d68){const _0x4ee9fe=a75_0x6ca8,_0x24ae62=_0x3e4fad();while(!![]){try{const _0x23c786=-parseInt(_0x4ee9fe(0xf1))/0x1+parseInt(_0x4ee9fe(0x108))/0x2*(-parseInt(_0x4ee9fe(0xff))/0x3)+parseInt(_0x4ee9fe(0xfb))/0x4*(parseInt(_0x4ee9fe(0xf9))/0x5)+parseInt(_0x4ee9fe(0xf6))/0x6+parseInt(_0x4ee9fe(0x101))/0x7+parseInt(_0x4ee9fe(0xf7))/0x8+-parseInt(_0x4ee9fe(0x103))/0x9*(parseInt(_0x4ee9fe(0xed))/0xa);if(_0x23c786===_0x486d68)break;else _0x24ae62['push'](_0x24ae62['shift']());}catch(_0x183c97){_0x24ae62['push'](_0x24ae62['shift']());}}}(a75_0x4b5d,0xc56d0));function a75_0x4b5d(){const _0x48035f=['KEY_AUTOMATION_SESSIONS','setState','129880PBmtkU','set','automation_sessions','non_browserstack_automation_sessions','326820xjkSks','getHookRegistryKey','getAllData','getId','automationFrameworkVersion','8544630vEWqly','12237880OmuiPN','util','5hBFwwf','trackEvent','5460356sSrIkl','get','notifyObserver','getAutomationFrameworkVersion','1695765oIHViy','../../../helpers/classLogger.js','5085423dUtSSG','instances','1926piHQvR','automationFrameworkName','getTrackedInstance','getAutomationFrameworkName','setTrackedInstance','4cqNWMh','debug','exports','registerObserver','\x20hookState=','../instances/trackedInstance.js'];a75_0x4b5d=function(){return _0x48035f;};return a75_0x4b5d();}const {createClassLogger}=require(a75_0x93cf75(0x100)),util=require(a75_0x93cf75(0xf8)),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a75_0x93cf75(0xea)),logger=createClassLogger('AutomationFramework');class AutomationFramework{static ['instances']=new Map();static [a75_0x93cf75(0xeb)]=a75_0x93cf75(0xef);static ['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS']=a75_0x93cf75(0xf0);constructor(_0x4bc18f,_0x144b4c){const _0x5094f6=a75_0x93cf75;this[_0x5094f6(0x104)]=_0x4bc18f,this['automationFrameworkVersion']=_0x144b4c;}[a75_0x93cf75(0x106)](){const _0x4b25b6=a75_0x93cf75;return this[_0x4b25b6(0x104)];}[a75_0x93cf75(0xfe)](){const _0x16f0cd=a75_0x93cf75;return this[_0x16f0cd(0xf5)];}async[a75_0x93cf75(0xfa)](_0x4952a0,_0x5b61ed,_0x5c793f={}){const _0x4e2489=a75_0x93cf75;logger[_0x4e2489(0xe6)]('trackEvent:\x20automationFrameworkState='+_0x4952a0+_0x4e2489(0xe9)+_0x5b61ed);}async['runHooks'](_0x5cd5e3,_0x31adca,_0x2601d9,_0x18cb67={}){const _0xab85a0=a75_0x93cf75,_0x286275=CLIUtils['getHookRegistryKey'](_0x31adca,_0x2601d9);_0x5cd5e3&&_0x5cd5e3[_0xab85a0(0xec)](_0x31adca),await eventDispatcher[_0xab85a0(0xfd)](_0x286275,_0x18cb67);}static['registerObserver'](_0xe2df26,_0x250f05,_0x1ba7ec){const _0xd39ca=a75_0x93cf75;eventDispatcher[_0xd39ca(0xe8)](CLIUtils[_0xd39ca(0xf2)](_0xe2df26,_0x250f05),_0x1ba7ec);}static[a75_0x93cf75(0x107)](_0x5d57b6,_0x9fb19){const _0x4b4ac5=a75_0x93cf75;AutomationFramework[_0x4b4ac5(0x102)][_0x4b4ac5(0xee)](_0x5d57b6[_0x4b4ac5(0xf4)](),_0x9fb19);}static[a75_0x93cf75(0x105)](){const _0x4e15df=a75_0x93cf75,_0x456f24=TrackedInstance['createContext'](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x4e15df(0x102)][_0x4e15df(0xfc)](_0x456f24[_0x4e15df(0xf4)]());}static[a75_0x93cf75(0xec)](_0x4b19e6,_0x55cfe6,_0x53f566){const _0x793ac7=a75_0x93cf75;_0x4b19e6['getAllData']()[_0x793ac7(0xee)](_0x55cfe6,_0x53f566);}static['getState'](_0x1d652b,_0x50b96a){const _0x137f9d=a75_0x93cf75;return _0x1d652b[_0x137f9d(0xf3)]()[_0x137f9d(0xfc)](_0x50b96a);}}module[a75_0x93cf75(0xe7)]=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x40b0ab=a76_0x4a6d;(function(_0x13014f,_0x1a3342){const _0xc6416c=a76_0x4a6d,_0x2acf70=_0x13014f();while(!![]){try{const _0x37caa3=-parseInt(_0xc6416c(0x8c))/0x1*(parseInt(_0xc6416c(0x94))/0x2)+-parseInt(_0xc6416c(0x90))/0x3+-parseInt(_0xc6416c(0xa2))/0x4*(parseInt(_0xc6416c(0x92))/0x5)+parseInt(_0xc6416c(0x8d))/0x6*(-parseInt(_0xc6416c(0x9d))/0x7)+parseInt(_0xc6416c(0x9f))/0x8+parseInt(_0xc6416c(0x93))/0x9*(parseInt(_0xc6416c(0x96))/0xa)+parseInt(_0xc6416c(0x97))/0xb;if(_0x37caa3===_0x1a3342)break;else _0x2acf70['push'](_0x2acf70['shift']());}catch(_0x342f6a){_0x2acf70['push'](_0x2acf70['shift']());}}}(a76_0x2d73,0xa4a0c));const a76_0x5b4529={};function a76_0x4a6d(_0x2626b8,_0x5f284a){const _0x2d737b=a76_0x2d73();return a76_0x4a6d=function(_0x4a6d36,_0x3a8417){_0x4a6d36=_0x4a6d36-0x84;let _0x51f487=_0x2d737b[_0x4a6d36];return _0x51f487;},a76_0x4a6d(_0x2626b8,_0x5f284a);}function a76_0x2d73(){const _0x4619ab=['platform_index','hub_url','KEY_CAPABILITIES','COMMAND_GET','KEY_STARTED_AT','framework_session_id','COMMAND_NEW_SESSION','KEY_INPUT_CAPABILITIES','19hwkcwc','2022yyJLnO','KEY_PLATFORM_INDEX','w3cexecutescript','2848191SFQITR','ENV_BROWSERSTACK_PLATFORM_INDEX','5MLDzQN','1391454XfgbwE','24110jIMRez','KEY_IS_BROWSERSTACK_HUB','10lmpWbg','13535445OXFQmt','COMMAND_SCREENSHOT','newsession','KEY_FRAMEWORK_SESSION_ID','COMMAND_W3C_EXECUTE_SCRIPT','input_capabilities','1757LnODwx','BROWSERSTACK_PLATFORM_INDEX','5274912zSbmcq','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','COMMAND_QUIT','428480Ivgnmw','get','started_at','KEY_HUB_URL'];a76_0x2d73=function(){return _0x4619ab;};return a76_0x2d73();}a76_0x5b4529[a76_0x40b0ab(0x91)]=a76_0x40b0ab(0x9e),a76_0x5b4529[a76_0x40b0ab(0xa5)]=a76_0x40b0ab(0x85),a76_0x5b4529[a76_0x40b0ab(0x9a)]=a76_0x40b0ab(0x89),a76_0x5b4529[a76_0x40b0ab(0x8b)]=a76_0x40b0ab(0x9c),a76_0x5b4529[a76_0x40b0ab(0x86)]='capabilities',a76_0x5b4529[a76_0x40b0ab(0x95)]='is_browserstack_hub',a76_0x5b4529[a76_0x40b0ab(0x88)]=a76_0x40b0ab(0xa4),a76_0x5b4529['KEY_ENDED_AT']='ended_at',a76_0x5b4529[a76_0x40b0ab(0x8e)]=a76_0x40b0ab(0x84),a76_0x5b4529[a76_0x40b0ab(0x8a)]=a76_0x40b0ab(0x99),a76_0x5b4529[a76_0x40b0ab(0x87)]=a76_0x40b0ab(0xa3),a76_0x5b4529[a76_0x40b0ab(0x98)]='screenshot',a76_0x5b4529[a76_0x40b0ab(0x9b)]=a76_0x40b0ab(0x8f),a76_0x5b4529[a76_0x40b0ab(0xa0)]='w3cexecutescriptasync',a76_0x5b4529[a76_0x40b0ab(0xa1)]='quit';const AutomationFrameworkConstants=a76_0x5b4529;module['exports']=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a77_0x5b3dec=a77_0x175f;(function(_0x8e4b7,_0x396ba6){const _0x343593=a77_0x175f,_0x33a67b=_0x8e4b7();while(!![]){try{const _0x5c004e=parseInt(_0x343593(0x175))/0x1*(parseInt(_0x343593(0x152))/0x2)+parseInt(_0x343593(0x164))/0x3+parseInt(_0x343593(0x17c))/0x4*(parseInt(_0x343593(0x16e))/0x5)+parseInt(_0x343593(0x170))/0x6+parseInt(_0x343593(0x14d))/0x7*(parseInt(_0x343593(0x199))/0x8)+-parseInt(_0x343593(0x157))/0x9*(parseInt(_0x343593(0x15c))/0xa)+-parseInt(_0x343593(0x18c))/0xb*(parseInt(_0x343593(0x17e))/0xc);if(_0x5c004e===_0x396ba6)break;else _0x33a67b['push'](_0x33a67b['shift']());}catch(_0x26dcb1){_0x33a67b['push'](_0x33a67b['shift']());}}}(a77_0x318e,0xaf5fe));const a77_0x291578={};function a77_0x318e(){const _0x14f353=['test_session_name','KEY_TEST_FRAMEWORK_VERSION','test_rerun_name','test_framework_name','34uhfGJR','event_started_at','test_result_at','test_name','KEY_HOOK_FAILURE','1910943lWSCHf','test_attachments','^(BEFORE_|AFTER_)','TEST_LOG','KEY_FILE_SIZE','30lppALH','KEY_TEST_CODE','KEY_HOOK_ID','KEY_EVENT_STARTED_AT','KEY_TEST_FRAMEWORK_NAME','KEY_HOOK_FAILURE_TYPE','test_tags','KEY_AUTOMATE_SESSION_NAME','2822592JaohsE','hook_logs','hook_failure_type','KEY_TEST_RESULT','KEY_SESSION_NAME','test_duration','KEY_TEST_SCOPE','event_ended_at','retry_of','exports','80XuZrta','test_hook_last_finished','3710280wDeZJJ','KEY_HOOKS_STARTED','test_scopes','KEY_TEST_FAILURE_REASON','test_meta','21236IxUPJS','KIND_SCREENSHOT','test_failure_type','logs','KEY_TEST_ATTACHMENTS','KEY_LOGS','DEFAULT_TEST_RESULT','144712eyGbkT','HOOK_REGEX','24ktMEOR','pending','KEY_TEST_RETRY_OF','test_scope','KEY_AUTOMATE_SESSION_STATUS','KEY_HOOK_LAST_FINISHED','automate_session_status','KEY_TEST_LOGS','test_code','KEY_HOOK_FAILURE_REASON','KEY_TEST_STARTED_AT','test_hooks_finished','test_location','KEY_FILE_NAME','13378739wVSddh','KIND_LOG','KEY_HOOK_NAME','file_name','KEY_CUSTOM_TAGS','DEFAULT_HOOK_RESULT','TEST_SCREENSHOT','hook_id','KEY_FILE_LEVEL','KEY_TEST_TAGS','platform_index','hook_failure_reason','file_path','8vmCwXe','KEY_TEST_DURATION','KEY_TEST_FAILURE','KEY_AUTOMATE_SESSION_REASON','test_logs','KEY_TEST_ENDED_AT','KEY_TEST_RERUN_NAME','KEY_TEST_RESULT_AT','test_failure','hook_result','test_hooks_started','test_started_at','KEY_TEST_FAILURE_TYPE','test_ended_at','KEY_HOOK_LOGS','9020963ttSCET'];a77_0x318e=function(){return _0x14f353;};return a77_0x318e();}function a77_0x175f(_0xfe9690,_0x43ebff){const _0x318e5e=a77_0x318e();return a77_0x175f=function(_0x175ff7,_0x850da7){_0x175ff7=_0x175ff7-0x149;let _0x541de2=_0x318e5e[_0x175ff7];return _0x541de2;},a77_0x175f(_0xfe9690,_0x43ebff);}a77_0x291578['KEY_TEST_UUID']='test_uuid',a77_0x291578['KEY_TEST_ID']='test_id',a77_0x291578['KEY_TEST_NAME']=a77_0x5b3dec(0x155),a77_0x291578['KEY_TEST_FILE_PATH']='test_file_path',a77_0x291578[a77_0x5b3dec(0x195)]=a77_0x5b3dec(0x162),a77_0x291578[a77_0x5b3dec(0x167)]='test_result',a77_0x291578[a77_0x5b3dec(0x1a0)]=a77_0x5b3dec(0x154),a77_0x291578[a77_0x5b3dec(0x188)]=a77_0x5b3dec(0x149),a77_0x291578[a77_0x5b3dec(0x19e)]=a77_0x5b3dec(0x14b),a77_0x291578['KEY_TEST_LOCATION']=a77_0x5b3dec(0x18a),a77_0x291578[a77_0x5b3dec(0x19a)]=a77_0x5b3dec(0x169),a77_0x291578[a77_0x5b3dec(0x16a)]=a77_0x5b3dec(0x181),a77_0x291578['KEY_TEST_SCOPES']=a77_0x5b3dec(0x172),a77_0x291578[a77_0x5b3dec(0x160)]=a77_0x5b3dec(0x151),a77_0x291578[a77_0x5b3dec(0x14f)]='test_framework_version',a77_0x291578[a77_0x5b3dec(0x15d)]=a77_0x5b3dec(0x186),a77_0x291578[a77_0x5b3dec(0x19f)]=a77_0x5b3dec(0x150),a77_0x291578[a77_0x5b3dec(0x180)]=a77_0x5b3dec(0x16c),a77_0x291578['KEY_PLATFORM_INDEX']=a77_0x5b3dec(0x196),a77_0x291578[a77_0x5b3dec(0x19b)]=a77_0x5b3dec(0x1a1),a77_0x291578[a77_0x5b3dec(0x14a)]=a77_0x5b3dec(0x177),a77_0x291578[a77_0x5b3dec(0x173)]='test_failure_reason',a77_0x291578[a77_0x5b3dec(0x185)]=a77_0x5b3dec(0x19d),a77_0x291578['KEY_TEST_META']=a77_0x5b3dec(0x174),a77_0x291578[a77_0x5b3dec(0x168)]=a77_0x5b3dec(0x14e),a77_0x291578[a77_0x5b3dec(0x163)]='automate_session_name',a77_0x291578[a77_0x5b3dec(0x182)]=a77_0x5b3dec(0x184),a77_0x291578[a77_0x5b3dec(0x19c)]='automate_session_reason',a77_0x291578[a77_0x5b3dec(0x15f)]=a77_0x5b3dec(0x153),a77_0x291578['KEY_EVENT_ENDED_AT']=a77_0x5b3dec(0x16b),a77_0x291578[a77_0x5b3dec(0x15e)]=a77_0x5b3dec(0x193),a77_0x291578['KEY_HOOK_RESULT']=a77_0x5b3dec(0x1a2),a77_0x291578[a77_0x5b3dec(0x161)]=a77_0x5b3dec(0x166),a77_0x291578[a77_0x5b3dec(0x187)]=a77_0x5b3dec(0x197),a77_0x291578[a77_0x5b3dec(0x156)]='hook_failure',a77_0x291578[a77_0x5b3dec(0x14c)]=a77_0x5b3dec(0x165),a77_0x291578[a77_0x5b3dec(0x18e)]='hook_name',a77_0x291578[a77_0x5b3dec(0x17b)]=a77_0x5b3dec(0x17f),a77_0x291578[a77_0x5b3dec(0x191)]=a77_0x5b3dec(0x17f),a77_0x291578[a77_0x5b3dec(0x176)]=a77_0x5b3dec(0x192),a77_0x291578[a77_0x5b3dec(0x18d)]=a77_0x5b3dec(0x15a),a77_0x291578[a77_0x5b3dec(0x17d)]=a77_0x5b3dec(0x159),a77_0x291578[a77_0x5b3dec(0x171)]=a77_0x5b3dec(0x1a3),a77_0x291578['KEY_HOOKS_FINISHED']=a77_0x5b3dec(0x189),a77_0x291578['KEY_HOOK_LAST_STARTED']='test_hook_last_started',a77_0x291578[a77_0x5b3dec(0x183)]=a77_0x5b3dec(0x16f),a77_0x291578[a77_0x5b3dec(0x17a)]=a77_0x5b3dec(0x178),a77_0x291578[a77_0x5b3dec(0x190)]='custom_metadata',a77_0x291578[a77_0x5b3dec(0x179)]=a77_0x5b3dec(0x158),a77_0x291578[a77_0x5b3dec(0x15b)]='file_size',a77_0x291578[a77_0x5b3dec(0x18b)]=a77_0x5b3dec(0x18f),a77_0x291578['KEY_FILE_PATH']=a77_0x5b3dec(0x198),a77_0x291578[a77_0x5b3dec(0x194)]='file_level',a77_0x291578['MAX_TOP_LEVEL_STEPS']=0xa,a77_0x291578['MAX_NESTED_STEP_DEPTH']=0x2;const TestFrameworkConstants=a77_0x291578;module[a77_0x5b3dec(0x16d)]=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a78_0x1487(_0x435774,_0x5788ab){const _0x30a153=a78_0x30a1();return a78_0x1487=function(_0x1487a3,_0x40e2ad){_0x1487a3=_0x1487a3-0x13d;let _0x116eb4=_0x30a153[_0x1487a3];return _0x116eb4;},a78_0x1487(_0x435774,_0x5788ab);}const a78_0x210409=a78_0x1487;(function(_0x35799c,_0x31482d){const _0x2b5bae=a78_0x1487,_0x5b4fe9=_0x35799c();while(!![]){try{const _0x15a76b=parseInt(_0x2b5bae(0x1ce))/0x1+parseInt(_0x2b5bae(0x1fb))/0x2*(parseInt(_0x2b5bae(0x1aa))/0x3)+parseInt(_0x2b5bae(0x163))/0x4*(parseInt(_0x2b5bae(0x1bc))/0x5)+parseInt(_0x2b5bae(0x1dd))/0x6+-parseInt(_0x2b5bae(0x1bf))/0x7*(parseInt(_0x2b5bae(0x1f5))/0x8)+parseInt(_0x2b5bae(0x1fc))/0x9+-parseInt(_0x2b5bae(0x15d))/0xa;if(_0x15a76b===_0x31482d)break;else _0x5b4fe9['push'](_0x5b4fe9['shift']());}catch(_0x3b0f97){_0x5b4fe9['push'](_0x5b4fe9['shift']());}}}(a78_0x30a1,0x5a450));const TestFramework=require('./testFramework'),TestFrameworkState=require(a78_0x210409(0x15c)),HookState=require(a78_0x210409(0x162)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a78_0x210409(0x1cd)),TrackedInstance=require(a78_0x210409(0x1fa)),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger(a78_0x210409(0x1d3)),{v4:uuidv4}=require(a78_0x210409(0x18f)),util=require(a78_0x210409(0x1b5)),TestInfo=require(a78_0x210409(0x182)),GrpcClient=require(a78_0x210409(0x153));class CucumberTestFramework extends TestFramework{constructor(_0x53d3c6,_0x180137,_0xc70b6f){super(_0x53d3c6,_0x180137,_0xc70b6f);}async['trackEvent'](_0x148cac,_0xab7769,_0x476e9c={}){const _0x5cbb55=a78_0x210409,_0xbe3142={};_0xbe3142['zIdqr']='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0xbe3142[_0x5cbb55(0x1b4)]=function(_0x55a4a9,_0x2b73ae){return _0x55a4a9===_0x2b73ae;},_0xbe3142['GIGZO']=function(_0x23d5b6,_0x1a204e){return _0x23d5b6===_0x1a204e;},_0xbe3142[_0x5cbb55(0x176)]=_0x5cbb55(0x1fe);const _0x314546=_0xbe3142;await super[_0x5cbb55(0x204)](_0x148cac,_0xab7769,_0x476e9c);const _0x43c5f3=this[_0x5cbb55(0x1e1)](_0x148cac,_0xab7769,_0x476e9c);if(!_0x43c5f3){logger['debug'](_0x314546[_0x5cbb55(0x169)]);return;}try{let _0x285845,_0xb0474f;switch(_0x148cac){case TestFrameworkState[_0x5cbb55(0x1a1)]:_0x285845=_0x476e9c[_0x5cbb55(0x196)],_0xb0474f=TestInfo['getTestUUID'](_0x285845['id']);if(_0x314546[_0x5cbb55(0x1b4)](_0xab7769,HookState[_0x5cbb55(0x1af)])){logger[_0x5cbb55(0x1a3)](_0x5cbb55(0x19b)+_0x285845['id']);const _0x37a0d6={};_0x37a0d6[_0x5cbb55(0x16d)]=_0xb0474f,_0x37a0d6[_0x5cbb55(0x15f)]=_0x285845,_0x43c5f3['addMultipleEntries'](this[_0x5cbb55(0x174)](_0x37a0d6)),logger[_0x5cbb55(0x1a3)](_0x5cbb55(0x148)+_0x285845['id']),await this[_0x5cbb55(0x177)](_0x43c5f3,_0x285845['id']);}else{if(_0x314546[_0x5cbb55(0x1b4)](_0xab7769,HookState['POST'])){const _0xd60812={};_0xd60812[_0x5cbb55(0x16d)]=_0xb0474f,_0xd60812[_0x5cbb55(0x15f)]=_0x285845,_0x43c5f3[_0x5cbb55(0x17e)](this[_0x5cbb55(0x180)](_0xd60812)),await this[_0x5cbb55(0x177)](_0x43c5f3,_0x285845['id']);}}break;case TestFrameworkState[_0x5cbb55(0x150)]:_0x314546[_0x5cbb55(0x1d2)](_0xab7769,HookState[_0x5cbb55(0x187)])&&await this['sendLogCreatedEvent'](_0x43c5f3,_0x148cac,_0x476e9c);break;default:if(CLIUtils['matchHookRegex'](_0x148cac[_0x5cbb55(0x183)]()['split']('.')[0x1])){const _0x2d6fc8=await this[_0x5cbb55(0x17b)](_0x43c5f3,_0x148cac,_0xab7769,_0x476e9c);_0x43c5f3[_0x5cbb55(0x17e)](_0x2d6fc8);}else logger['debug'](_0x5cbb55(0x1cc)+_0x148cac+_0x5cbb55(0x18e)+_0xab7769);break;}}catch(_0x183d2c){logger[_0x5cbb55(0x207)](util[_0x5cbb55(0x1cf)](_0x314546[_0x5cbb55(0x176)],_0x148cac,_0xab7769,_0x476e9c['length'],_0x183d2c));}_0x476e9c[_0x5cbb55(0x157)]=_0x43c5f3,await this[_0x5cbb55(0x172)](_0x43c5f3,_0x148cac,_0xab7769,_0x476e9c);}[a78_0x210409(0x1e1)](_0x308bf9,_0x294260,_0x55c67f={}){const _0x2fc472=a78_0x210409,_0x56a5ca={};_0x56a5ca[_0x2fc472(0x1e3)]=function(_0x32b1b6,_0x561c52){return _0x32b1b6===_0x561c52;},_0x56a5ca['tOdfH']=function(_0x59d098,_0x16f643){return _0x59d098===_0x16f643;};const _0xf5877f=_0x56a5ca;let _0x1f5e5d=null;return(_0xf5877f[_0x2fc472(0x1e3)](_0x308bf9,TestFrameworkState['INIT_TEST'])||_0xf5877f[_0x2fc472(0x142)](_0x308bf9,TestFrameworkState['NONE']))&&this[_0x2fc472(0x166)](_0x308bf9,_0x55c67f),_0x1f5e5d=TestFramework[_0x2fc472(0x201)](),_0x1f5e5d;}['trackCucumberInstance'](_0x53c86f,_0x2464f6){const _0x25f915=a78_0x210409,_0x4d7bcc=CLIUtils['getCurrentInstanceName'](),_0x4862ab=TrackedInstance[_0x25f915(0x1c4)](_0x4d7bcc);let _0x32c868=null;logger['debug'](_0x25f915(0x1be)+_0x4d7bcc+_0x25f915(0x173)+_0x53c86f),_0x32c868=new TestFrameworkInstance(_0x4862ab,this[_0x25f915(0x175)](),this['getTestFrameworksVersions'](),_0x53c86f,HookState['NONE']),TestFramework[_0x25f915(0x155)](_0x4862ab,_0x32c868),logger[_0x25f915(0x1a3)](_0x25f915(0x1e8)+_0x4862ab[_0x25f915(0x1d5)]()+_0x25f915(0x19e)+_0x4d7bcc);}[a78_0x210409(0x174)](_0x5be53c){const _0x256225=a78_0x210409,_0x5860ea={};_0x5860ea[_0x256225(0x1fd)]=_0x256225(0x1c1);const _0x5cc293=_0x5860ea,{testUUID:_0x5f4cea,testData:_0x12a3a7}=_0x5be53c;if(!_0x12a3a7||!_0x12a3a7[_0x256225(0x18f)])return logger[_0x256225(0x1a3)](_0x5cc293['EkJub']),{};const _0x53baa6=_0x5f4cea,_0x4cbdf6=_0x12a3a7[_0x256225(0x18f)],_0x123e72=this[_0x256225(0x175)]()[0x0],_0x4f4365=this[_0x256225(0x192)](),_0x56b946={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x123e72,[TestFrameworkConstants[_0x256225(0x1f0)]]:_0x4f4365[_0x123e72],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants[_0x256225(0x1f7)]]:{},[TestFrameworkConstants[_0x256225(0x1b6)]]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x53baa6,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x256225(0x1b9)],[TestFrameworkConstants[_0x256225(0x1a8)]]:_0x12a3a7[_0x256225(0x165)]||'',[TestFrameworkConstants[_0x256225(0x154)]]:_0x12a3a7[_0x256225(0x193)]||'',[TestFrameworkConstants[_0x256225(0x158)]]:_0x4cbdf6,[TestFrameworkConstants[_0x256225(0x149)]]:_0x12a3a7[_0x256225(0x165)]||'',[TestFrameworkConstants[_0x256225(0x1ad)]]:_0x12a3a7[_0x256225(0x19d)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x12a3a7[_0x256225(0x1f3)]?.[_0x256225(0x167)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x12a3a7[_0x256225(0x1a7)]||[],[TestFrameworkConstants[_0x256225(0x206)]]:_0x12a3a7['startedAt']||new Date()[_0x256225(0x198)](),[TestFrameworkConstants[_0x256225(0x1e0)]]:_0x12a3a7[_0x256225(0x18a)]?.[0x0]||'',[TestFrameworkConstants[_0x256225(0x1e2)]]:_0x12a3a7[_0x256225(0x18a)]||[],[TestFrameworkConstants[_0x256225(0x160)]]:_0x12a3a7[_0x256225(0x1c2)]?.[_0x256225(0x1bd)]||_0x12a3a7[_0x256225(0x165)]||'',[TestFrameworkConstants[_0x256225(0x184)]]:{},[TestFrameworkConstants[_0x256225(0x197)]]:_0x12a3a7['meta']||{}};TestInfo[_0x256225(0x14c)](_0x4cbdf6,_0x56b946),logger[_0x256225(0x1a3)](_0x256225(0x143)+_0x12a3a7[_0x256225(0x165)]+'\x20with\x20UUID:\x20'+_0x53baa6);const _0x195dbd={};return _0x195dbd[_0x4cbdf6]=_0x56b946,_0x195dbd;}['parseCucumberTestResult'](_0x4cc74d){const _0x2007fe=a78_0x210409,_0x19c514={'hSsTC':_0x2007fe(0x1f4),'Nqehc':_0x2007fe(0x13d),'ryQTl':function(_0x60879a,_0x46ca44){return _0x60879a===_0x46ca44;},'bfKHq':_0x2007fe(0x159),'gcLJd':_0x2007fe(0x14b),'zZrhx':function(_0x3f4a28,_0x49dc8d,_0x9a9110){return _0x3f4a28(_0x49dc8d,_0x9a9110);},'YYxRa':function(_0xcdc0d4,_0x35e8c3){return _0xcdc0d4>_0x35e8c3;},'kDJeB':function(_0x15dd80,_0x24398f){return _0x15dd80>_0x24398f;}},{testUUID:_0x483f71,testData:_0x15cfc2}=_0x4cc74d;if(!_0x15cfc2||!_0x15cfc2[_0x2007fe(0x18f)])return logger[_0x2007fe(0x1a3)](_0x19c514['hSsTC']),{};const _0x3d58ec=this[_0x2007fe(0x1e1)](TestFrameworkState[_0x2007fe(0x1a1)],HookState[_0x2007fe(0x187)]),_0x146e99=_0x15cfc2['uuid'],_0x1a2d36=TestInfo[_0x2007fe(0x19f)](_0x146e99)||{},_0x44922a=_0x1a2d36?_0x1a2d36[TestFrameworkConstants[_0x2007fe(0x184)]]||{}:{},_0x5e62ea={..._0x1a2d36,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x15cfc2[_0x2007fe(0x14f)]||_0x19c514[_0x2007fe(0x195)],[TestFrameworkConstants[_0x2007fe(0x1ac)]]:_0x15cfc2['finishedAt']||new Date()[_0x2007fe(0x198)](),[TestFrameworkConstants[_0x2007fe(0x1ec)]]:new Date()[_0x2007fe(0x198)](),[TestFrameworkConstants[_0x2007fe(0x184)]]:_0x44922a,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x15cfc2[_0x2007fe(0x170)]||{}};_0x19c514[_0x2007fe(0x1da)](_0x15cfc2['result'],_0x19c514[_0x2007fe(0x14d)])&&_0x15cfc2[_0x2007fe(0x146)]&&(_0x5e62ea[TestFrameworkConstants[_0x2007fe(0x141)]]=_0x15cfc2[_0x2007fe(0x145)]||_0x19c514[_0x2007fe(0x1c9)],_0x5e62ea[TestFrameworkConstants[_0x2007fe(0x17d)]]=_0x15cfc2[_0x2007fe(0x1ca)]||'',_0x5e62ea[TestFrameworkConstants[_0x2007fe(0x1c8)]]=_0x15cfc2[_0x2007fe(0x146)]);const _0x789f6e=TestInfo['getTestDetails'](_0x146e99)[TestFrameworkConstants[_0x2007fe(0x1db)]]||{},_0x299951=_0x19c514[_0x2007fe(0x1c5)](getManualUploadLogs,_0x789f6e,_0x3d58ec[_0x2007fe(0x1cb)]()[_0x2007fe(0x1c6)](_0x146e99)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x19c514[_0x2007fe(0x190)](_0x299951[_0x2007fe(0x16b)],0x0)){const _0xd2354a=_0x5e62ea[TestFrameworkConstants[_0x2007fe(0x1a9)]]||[];_0x5e62ea[TestFrameworkConstants['KEY_LOGS']]=[..._0xd2354a,..._0x299951];}_0x15cfc2[_0x2007fe(0x168)]&&_0x19c514['kDJeB'](_0x15cfc2[_0x2007fe(0x168)]['length'],0x0)&&(_0x5e62ea[TestFrameworkConstants[_0x2007fe(0x1f7)]]=_0x15cfc2['hooks']);TestInfo[_0x2007fe(0x14c)](_0x146e99,_0x5e62ea),logger['debug'](_0x2007fe(0x1a5)+_0x15cfc2[_0x2007fe(0x165)]+_0x2007fe(0x15a)+_0x15cfc2[_0x2007fe(0x14f)]);const _0x3ee9a4={};return _0x3ee9a4[_0x146e99]=_0x5e62ea,_0x3ee9a4;}async[a78_0x210409(0x17b)](_0x514e27,_0x8ab5d6,_0x4a5140,_0x1e4e46){const _0x53ed8e=a78_0x210409,_0x54999d={'NSBHa':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','DGDjW':function(_0x2b910d){return _0x2b910d();},'pldvu':function(_0x45897c,_0x34cf72){return _0x45897c in _0x34cf72;},'iUDIV':function(_0x16a9e1,_0x2e30f0){return _0x16a9e1===_0x2e30f0;},'rayeE':function(_0x1a893e,_0x209759){return _0x1a893e>_0x209759;},'bXFcv':function(_0x4dcd6b,_0x5ae334){return _0x4dcd6b===_0x5ae334;},'wtEgJ':_0x53ed8e(0x159),'Zohtl':_0x53ed8e(0x14b),'RcdKy':_0x53ed8e(0x1d1),'DOJJj':function(_0x517162,_0x1544de){return _0x517162!==_0x1544de;}},{hookData:_0x266f15}=_0x1e4e46;if(!_0x266f15)return logger[_0x53ed8e(0x1a3)](_0x54999d[_0x53ed8e(0x185)]),{};const _0x47f30d=_0x266f15['uuid']||_0x54999d[_0x53ed8e(0x1df)](uuidv4),_0x5d0d1f=_0x266f15['test_run_id'],_0x4bca08=_0x8ab5d6[_0x53ed8e(0x183)]()[_0x53ed8e(0x194)]('.')[0x1],_0x1a25a1=TestInfo[_0x53ed8e(0x19f)](_0x5d0d1f)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x52af3a=_0x514e27[_0x53ed8e(0x1cb)]()[_0x53ed8e(0x1c6)](_0x5d0d1f);if(!_0x52af3a)return logger['debug'](_0x53ed8e(0x156)+_0x5d0d1f+_0x53ed8e(0x18c)),this[_0x53ed8e(0x19c)](_0x514e27,_0x5d0d1f,_0x8ab5d6,_0x4a5140,_0x1e4e46),{};let _0x2f608e=_0x52af3a[TestFrameworkConstants[_0x53ed8e(0x1b6)]];!_0x2f608e&&(_0x2f608e={});!_0x54999d[_0x53ed8e(0x1ea)](_0x4bca08,_0x2f608e)&&(_0x2f608e[_0x4bca08]=[]);let _0xf55af9=_0x52af3a[TestFrameworkConstants[_0x53ed8e(0x1f7)]];!_0xf55af9&&(_0xf55af9={});!_0x54999d[_0x53ed8e(0x1ea)](_0x4bca08,_0xf55af9)&&(_0xf55af9[_0x4bca08]=[]);const _0x4756d9={[TestFrameworkConstants[_0x53ed8e(0x1b6)]]:_0x2f608e,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0xf55af9},_0x18c6f3={};_0x18c6f3[_0x5d0d1f]=_0x4756d9;const _0x1044ea=_0x18c6f3;if(_0x54999d[_0x53ed8e(0x19a)](_0x4a5140,HookState[_0x53ed8e(0x1af)])){const _0x452065={[TestFrameworkConstants[_0x53ed8e(0x144)]]:_0x47f30d,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0x53ed8e(0x205)],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0x266f15[_0x53ed8e(0x1ee)],[TestFrameworkConstants[_0x53ed8e(0x1d9)]]:[],[TestFrameworkConstants[_0x53ed8e(0x209)]]:_0x266f15[_0x53ed8e(0x1a6)],[TestFrameworkConstants[_0x53ed8e(0x184)]]:_0x1a25a1};_0x452065['key']=_0x4bca08;const _0x2234d3=_0x452065;_0x2f608e[_0x4bca08][_0x53ed8e(0x1d8)](_0x2234d3),_0x1044ea[_0x5d0d1f][TestFrameworkConstants[_0x53ed8e(0x1ed)]]=_0x4bca08,logger[_0x53ed8e(0x1a3)](_0x53ed8e(0x17a)+_0x4bca08+_0x53ed8e(0x1f6)+_0x2234d3+'\x20\x20and\x20args\x20=\x20'+_0x1e4e46);}else{if(_0x54999d[_0x53ed8e(0x19a)](_0x4a5140,HookState[_0x53ed8e(0x187)])){const _0x2410fe=_0x266f15[_0x53ed8e(0x14f)],_0x25f3fb=_0x2f608e[_0x4bca08]||[];logger[_0x53ed8e(0x1a3)](_0x53ed8e(0x13f)+_0x25f3fb+_0x53ed8e(0x18b)+_0x1e4e46);if(_0x54999d['rayeE'](_0x25f3fb['length'],0x0)){const _0x308aee=_0x25f3fb[_0x53ed8e(0x1b0)]();_0x54999d[_0x53ed8e(0x1ba)](_0x266f15['result'],_0x54999d[_0x53ed8e(0x1e6)])&&_0x266f15[_0x53ed8e(0x191)]?(_0x308aee[TestFrameworkConstants[_0x53ed8e(0x1c7)]]=_0x266f15['failure_type']||_0x54999d['Zohtl'],_0x308aee[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x266f15[_0x53ed8e(0x1ca)]||'',_0x308aee[TestFrameworkConstants[_0x53ed8e(0x171)]]=_0x266f15[_0x53ed8e(0x191)]):_0x308aee[TestFrameworkConstants[_0x53ed8e(0x1f1)]]=_0x54999d[_0x53ed8e(0x1bb)];_0x54999d[_0x53ed8e(0x200)](_0x2410fe,TestFrameworkConstants[_0x53ed8e(0x205)])&&(_0x308aee[TestFrameworkConstants[_0x53ed8e(0x1f1)]]=_0x2410fe);_0x308aee[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x266f15[_0x53ed8e(0x1d4)]||new Date()[_0x53ed8e(0x198)](),_0x308aee[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x1a25a1;const _0x45e18e=_0x308aee[TestFrameworkConstants[_0x53ed8e(0x144)]];!_0xf55af9[_0x4bca08]&&(_0xf55af9[_0x4bca08]=[]),_0xf55af9[_0x4bca08][_0x53ed8e(0x1d8)](_0x308aee),_0x1044ea[_0x5d0d1f][TestFrameworkConstants[_0x53ed8e(0x181)]]=_0x4bca08;}}}return logger[_0x53ed8e(0x1a3)](_0x53ed8e(0x1c3)+_0x266f15[_0x53ed8e(0x1a6)]+_0x53ed8e(0x179)+_0x47f30d+'\x20for\x20test:\x20'+_0x5d0d1f),_0x1044ea;}[a78_0x210409(0x1ab)](_0x3c901d){const _0x84c222=a78_0x210409,_0x6fad01={};_0x6fad01['vXiaZ']=_0x84c222(0x20b);const _0x3d6db8=_0x6fad01;try{const _0x205995=_0x3c901d[_0x84c222(0x196)]?_0x3c901d[_0x84c222(0x196)]['id']:_0x3c901d[_0x84c222(0x186)][_0x84c222(0x1e5)],_0x2f6235=_0x3c901d[_0x84c222(0x157)],_0x31d3a3=_0x2f6235[_0x84c222(0x1a4)](),_0x42ebb4=_0x2f6235['getAllData']()[_0x84c222(0x1c6)](_0x205995);if(!_0x42ebb4)return logger[_0x84c222(0x1a3)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x205995),{};logger['debug'](_0x84c222(0x1f9)+_0x205995);const {[TestFrameworkConstants[_0x84c222(0x1f2)]]:_0x25d645='',[TestFrameworkConstants[_0x84c222(0x1f0)]]:_0x12b543='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x5a641e='',[TestFrameworkConstants[_0x84c222(0x1ac)]]:_0x2ebe59=''}=_0x42ebb4,_0x4a0c0a=_0x2f6235[_0x84c222(0x17f)]()[_0x84c222(0x183)]()['split']('.')[0x1],_0x1c0dd2=_0x2f6235[_0x84c222(0x1de)]()[_0x84c222(0x183)]()['split']('.')[0x1],_0x42a00f=global?.['browserstackPlatformIndex']??0x0,_0x3995fd=_0x2f6235['getRef'](),_0x479712=Buffer[_0x84c222(0x16a)](JSON[_0x84c222(0x1e4)](_0x42ebb4))['toString'](_0x3d6db8[_0x84c222(0x1b1)]),_0x4f44fc={'hash':_0x31d3a3[_0x84c222(0x1d5)](),'threadId':_0x31d3a3['getThreadId']()[_0x84c222(0x183)](),'processId':_0x31d3a3['getProcessId']()[_0x84c222(0x183)]()},_0x4f20b5={};_0x4f20b5[_0x84c222(0x161)]=_0x42a00f,_0x4f20b5[_0x84c222(0x189)]=_0x25d645,_0x4f20b5['testFrameworkVersion']=_0x12b543,_0x4f20b5[_0x84c222(0x16f)]=_0x4a0c0a,_0x4f20b5[_0x84c222(0x151)]=_0x1c0dd2,_0x4f20b5[_0x84c222(0x1a2)]=_0x5a641e,_0x4f20b5[_0x84c222(0x13e)]=_0x2ebe59,_0x4f20b5[_0x84c222(0x18f)]=_0x3995fd,_0x4f20b5[_0x84c222(0x178)]=_0x479712,_0x4f20b5[_0x84c222(0x208)]=_0x4f44fc;const _0x232a56=_0x4f20b5;return logger[_0x84c222(0x1a3)](_0x84c222(0x1c0)+_0x205995+'\x20testState:\x20'+_0x4a0c0a+_0x84c222(0x1ff)+_0x1c0dd2),_0x232a56;}catch(_0x2a580b){return logger[_0x84c222(0x207)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x84c222(0x1cf)](_0x2a580b)),{};}}async['sendLogCreatedEvent'](_0x51b322,_0x2cbc18,_0x264389){const _0x4d08e2=a78_0x210409,_0x5cf5cc={'ZhyXy':function(_0x4b1178,_0x412f13,_0x2d1306){return _0x4b1178(_0x412f13,_0x2d1306);},'EioKR':function(_0xddba90,_0x5a74af){return _0xddba90===_0x5a74af;},'CRFfE':_0x4d08e2(0x1dc),'Zdbli':function(_0x53cbc0,_0x4ae1b6){return _0x53cbc0/_0x4ae1b6;},'ybLWa':function(_0x46bbd1,_0x79fe67){return _0x46bbd1<_0x79fe67;},'OhXIK':function(_0x5ab170,_0x231fa3){return _0x5ab170*_0x231fa3;},'hgqcR':function(_0x50bee3,_0x2d9b1d){return _0x50bee3+_0x2d9b1d;},'YhPyP':'Cucumber\x20log\x20created\x20event'};try{const _0x52980d=_0x264389[_0x4d08e2(0x16d)],_0x2b55ae=_0x51b322['getAllData']()[_0x4d08e2(0x1c6)](_0x52980d),{[TestFrameworkConstants[_0x4d08e2(0x1f2)]]:_0x13eb10='',[TestFrameworkConstants[_0x4d08e2(0x1f0)]]:_0x5cc1b9=''}=_0x2b55ae,_0x106364=TestInfo[_0x4d08e2(0x203)](_0x52980d),_0x1d006e=TestInfo[_0x4d08e2(0x19f)](_0x52980d)[TestFrameworkConstants[_0x4d08e2(0x1db)]]||{},_0x3626d9=_0x5cf5cc[_0x4d08e2(0x1b2)](getMediaArtifactsLogs,_0x1d006e,_0x51b322['getAllData']()[_0x4d08e2(0x1c6)](_0x52980d)[TestFrameworkConstants[_0x4d08e2(0x1e7)]]),_0x428e0d=(_0x106364||[])[_0x4d08e2(0x17c)](_0x3626d9||[]);if(!_0x428e0d||_0x5cf5cc[_0x4d08e2(0x1ae)](_0x428e0d[_0x4d08e2(0x16b)],0x0)){logger[_0x4d08e2(0x1a3)](_0x5cf5cc['CRFfE']);return;}const _0x2b13b4=0x28,_0x36ea09=Math[_0x4d08e2(0x14a)](_0x5cf5cc[_0x4d08e2(0x1b7)](_0x428e0d[_0x4d08e2(0x16b)],_0x2b13b4));for(let _0x558691=0x0;_0x5cf5cc[_0x4d08e2(0x1a0)](_0x558691,_0x36ea09);_0x558691++){const _0x34fafb=_0x5cf5cc['OhXIK'](_0x558691,_0x2b13b4),_0x213490=_0x5cf5cc[_0x4d08e2(0x152)](_0x34fafb,_0x2b13b4),_0x591e60=_0x428e0d['slice'](_0x34fafb,_0x213490),_0x1ee700={'platformIndex':global?.[_0x4d08e2(0x16e)]??0x0,'logs':_0x591e60,'testFrameworkName':_0x13eb10,'testFrameworkVersion':_0x5cc1b9,'testFrameworkState':_0x2cbc18[_0x4d08e2(0x183)]()[_0x4d08e2(0x194)]('.')[0x1]};logger[_0x4d08e2(0x1a3)](_0x4d08e2(0x164)+_0x52980d+_0x4d08e2(0x1b3)+_0x5cf5cc[_0x4d08e2(0x152)](_0x558691,0x1)+'/'+_0x36ea09+_0x4d08e2(0x188)+util[_0x4d08e2(0x14e)](_0x1ee700));const _0x5e3808=await GrpcClient[_0x4d08e2(0x202)]()[_0x4d08e2(0x18d)](_0x1ee700);logger[_0x4d08e2(0x1a3)](_0x4d08e2(0x164)+_0x52980d+_0x4d08e2(0x1b3)+_0x5cf5cc['hgqcR'](_0x558691,0x1)+'/'+_0x36ea09+_0x4d08e2(0x15e)+util[_0x4d08e2(0x14e)](_0x5e3808));}}catch(_0x555735){logger[_0x4d08e2(0x207)](_0x4d08e2(0x1f8)+util['format'](_0x555735));}logger[_0x4d08e2(0x1a3)](_0x5cf5cc[_0x4d08e2(0x1e9)]);}['storePendingHook'](_0x4811ec,_0x135989,_0xdd9e93,_0x57ff08,_0x1e5810){const _0x47fc46=a78_0x210409,_0x562280={'testId':_0x135989,'testFrameworkState':_0xdd9e93,'hookState':_0x57ff08,'args':_0x1e5810,'timestamp':new Date()['toISOString']()};_0x4811ec[_0x47fc46(0x199)](_0x135989,_0x562280),logger[_0x47fc46(0x1a3)]('Stored\x20pending\x20hook\x20for\x20testId:\x20'+_0x135989+_0x47fc46(0x1d6)+_0xdd9e93+_0x47fc46(0x1eb)+_0x57ff08);}async[a78_0x210409(0x177)](_0x21b33c,_0x580966){const _0x117596=a78_0x210409,_0xe36957={};_0xe36957[_0x117596(0x1d7)]=function(_0x340b70,_0x4d2816){return _0x340b70>_0x4d2816;};const _0x377cda=_0xe36957;if(!_0x21b33c[_0x117596(0x147)](_0x580966))return;const _0x55dbc6=_0x21b33c['getPendingHooks'](_0x580966);logger['debug'](_0x117596(0x1b8)+_0x55dbc6[_0x117596(0x16b)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x580966);for(const _0x23bf58 of _0x55dbc6){try{const _0x53909b=await this['trackHookEvent'](_0x21b33c,_0x23bf58[_0x117596(0x16f)],_0x23bf58[_0x117596(0x151)],_0x23bf58[_0x117596(0x140)]);_0x53909b&&_0x377cda['KjiYz'](Object[_0x117596(0x15b)](_0x53909b)['length'],0x0)&&_0x21b33c[_0x117596(0x17e)](_0x53909b),await this[_0x117596(0x172)](_0x21b33c,_0x23bf58[_0x117596(0x16f)],_0x23bf58[_0x117596(0x151)],_0x23bf58[_0x117596(0x140)]);}catch(_0x1413c4){logger['error'](_0x117596(0x16c)+_0x580966+_0x117596(0x20a)+_0x1413c4);}}_0x21b33c[_0x117596(0x1ef)](_0x580966),logger['debug'](_0x117596(0x1d0)+_0x580966);}}function a78_0x30a1(){const _0x58c8ff=['KEY_TEST_FAILURE_REASON','addMultipleEntries','getCurrentTestState','parseCucumberTestResult','KEY_HOOK_LAST_FINISHED','../TestInfo.js','toString','KEY_CUSTOM_TAGS','NSBHa','hookData','POST','\x20payload=','testFrameworkName','scopes','\x20and\x20args\x20=\x20',',\x20storing\x20as\x20pending\x20hook','logCreatedEvent','\x20&\x20hookState=','uuid','YYxRa','failure_data','getTestFrameworksVersions','file_name','split','Nqehc','test','KEY_TEST_META','toISOString','addPendingHook','iUDIV','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','storePendingHook','location','\x20target=','getTestDetails','ybLWa','TEST','startedAt','debug','getContext','Updated\x20cucumber\x20test\x20result:\x20','hook_type','tags','KEY_AUTOMATE_SESSION_NAME','KEY_LOGS','24IHeHTq','createTestFrameworkEventPayload','KEY_TEST_ENDED_AT','KEY_TEST_LOCATION','EioKR','PRE','pop','vXiaZ','ZhyXy','\x20batch\x20','brfmJ','util','KEY_HOOKS_STARTED','Zdbli','Processing\x20','DEFAULT_TEST_RESULT','bXFcv','RcdKy','25GyrfRV','rerun_name','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','35Waglec','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','customRerunParam','Tracked\x20cucumber\x20hook\x20event:\x20','createContext','zZrhx','get','KEY_HOOK_FAILURE_TYPE','KEY_TEST_FAILURE','gcLJd','failure_reason','getAllData','trackEvent:\x20unsupported\x20testFrameworkState=','../cliUtils.js','243582dJmGFW','format','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','passed','GIGZO','CucumberTestFramework','finished_at','getId',',\x20state:\x20','KjiYz','push','KEY_HOOK_LOGS','ryQTl','KEY_TEST_ATTACHMENTS','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','3508428SMhEQK','getCurrentHookState','DGDjW','KEY_TEST_SCOPE','resolveInstance','KEY_TEST_SCOPES','ifNLA','stringify','test_run_id','wtEgJ','KEY_TEST_UUID','trackCucumberInstance:\x20saved\x20instance\x20contextId=','YhPyP','pldvu',',\x20hookState:\x20','KEY_TEST_RESULT_AT','KEY_HOOK_LAST_STARTED','started_at','removePendingHooks','KEY_TEST_FRAMEWORK_VERSION','KEY_HOOK_RESULT','KEY_TEST_FRAMEWORK_NAME','body','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','1108536SNLOLi','\x20&\x20hook\x20=\x20','KEY_HOOKS_FINISHED','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','createTestFrameworkEventPayload\x20testId:\x20','../instances/trackedInstance.js','35128jWlZBL','5579865RjSkiI','EkJub','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','\x20hookState:\x20','DOJJj','getTrackedInstance','getInstance','readLogObjects','trackEvent','DEFAULT_HOOK_RESULT','KEY_TEST_STARTED_AT','error','executionContext','KEY_HOOK_NAME',',\x20error:\x20','base64','unknown','endedAt','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','args','KEY_TEST_FAILURE_TYPE','tOdfH','Parsed\x20cucumber\x20test:\x20','KEY_HOOK_ID','failure_type','failure','hasPendingHooks','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','KEY_TEST_NAME','ceil','UnhandledError','setTestDetails','bfKHq','inspect','result','LOG_REPORT','hookState','hgqcR','../grpcClient','KEY_TEST_FILE_PATH','setTrackedInstance','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','instance','KEY_TEST_ID','failed','\x20with\x20result:\x20','keys','../state/testFrameworkState.js','9109130DBDOzc','\x20response=','testData','KEY_TEST_RERUN_NAME','platformIndex','../state/hookState.js','307740vNnvOq','sendLogCreatedEvent:\x20for\x20testId:\x20','name','trackCucumberInstance','code','hooks','zIdqr','from','length','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','testUUID','browserstackPlatformIndex','testFrameworkState','meta','KEY_HOOK_FAILURE','runHooks',',\x20state=','parseCucumberTest','getTestFrameworks','yXwpX','processPendingHooks','eventJson','\x20with\x20id\x20','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','trackHookEvent','concat'];a78_0x30a1=function(){return _0x58c8ff;};return a78_0x30a1();}module['exports']=CucumberTestFramework;
|
|
1
|
+
const a78_0x34e9e5=a78_0x4dc3;(function(_0x352c63,_0x56b29a){const _0x4c5978=a78_0x4dc3,_0x129eeb=_0x352c63();while(!![]){try{const _0x3302c0=parseInt(_0x4c5978(0x19c))/0x1*(parseInt(_0x4c5978(0x150))/0x2)+parseInt(_0x4c5978(0x1a5))/0x3*(parseInt(_0x4c5978(0x175))/0x4)+parseInt(_0x4c5978(0x124))/0x5*(parseInt(_0x4c5978(0x12d))/0x6)+-parseInt(_0x4c5978(0x153))/0x7+-parseInt(_0x4c5978(0x106))/0x8+parseInt(_0x4c5978(0x14e))/0x9*(parseInt(_0x4c5978(0x17a))/0xa)+-parseInt(_0x4c5978(0x12b))/0xb;if(_0x3302c0===_0x56b29a)break;else _0x129eeb['push'](_0x129eeb['shift']());}catch(_0x3948e2){_0x129eeb['push'](_0x129eeb['shift']());}}}(a78_0x5e8e,0xe76ec));function a78_0x4dc3(_0x15e7ce,_0x401e04){const _0x5e8e66=a78_0x5e8e();return a78_0x4dc3=function(_0x4dc33f,_0x149142){_0x4dc33f=_0x4dc33f-0xd3;let _0xc5ea0b=_0x5e8e66[_0x4dc33f];return _0xc5ea0b;},a78_0x4dc3(_0x15e7ce,_0x401e04);}const TestFramework=require(a78_0x34e9e5(0x101)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require('../state/hookState.js'),{createClassLogger}=require(a78_0x34e9e5(0x148)),TestFrameworkInstance=require(a78_0x34e9e5(0x10a)),CLIUtils=require(a78_0x34e9e5(0x15f)),TrackedInstance=require(a78_0x34e9e5(0xfa)),TestFrameworkConstants=require(a78_0x34e9e5(0x19d)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a78_0x34e9e5(0x185)),logger=createClassLogger(a78_0x34e9e5(0x1a4)),{v4:uuidv4}=require('uuid'),util=require('util'),TestInfo=require(a78_0x34e9e5(0x174)),GrpcClient=require(a78_0x34e9e5(0x11b));class CucumberTestFramework extends TestFramework{constructor(_0x40de43,_0x3410de,_0x2b4738){super(_0x40de43,_0x3410de,_0x2b4738);}async[a78_0x34e9e5(0x112)](_0x5c697c,_0x413d7b,_0x1f21a5={}){const _0x21bd51=a78_0x34e9e5,_0x379ffd={};_0x379ffd[_0x21bd51(0x107)]=_0x21bd51(0x195),_0x379ffd[_0x21bd51(0xee)]=function(_0x5f12ad,_0xaf0b87){return _0x5f12ad===_0xaf0b87;},_0x379ffd[_0x21bd51(0x137)]=_0x21bd51(0x190);const _0x1c5c57=_0x379ffd;await super[_0x21bd51(0x112)](_0x5c697c,_0x413d7b,_0x1f21a5);const _0x5e059f=this['resolveInstance'](_0x5c697c,_0x413d7b,_0x1f21a5);if(!_0x5e059f){logger[_0x21bd51(0x171)](_0x1c5c57['KRNOJ']);return;}try{let _0x8a84f1,_0x20e385;switch(_0x5c697c){case TestFrameworkState[_0x21bd51(0x188)]:_0x8a84f1=_0x1f21a5[_0x21bd51(0x11f)],_0x20e385=TestInfo[_0x21bd51(0xf2)](_0x8a84f1['id']);if(_0x1c5c57[_0x21bd51(0xee)](_0x413d7b,HookState[_0x21bd51(0x13a)])){logger['debug'](_0x21bd51(0x136)+_0x8a84f1['id']);const _0x25d367={};_0x25d367[_0x21bd51(0x15c)]=_0x20e385,_0x25d367[_0x21bd51(0x129)]=_0x8a84f1,_0x5e059f[_0x21bd51(0x15a)](this[_0x21bd51(0x166)](_0x25d367)),logger[_0x21bd51(0x171)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x8a84f1['id']),await this['processPendingHooks'](_0x5e059f,_0x8a84f1['id']);}else{if(_0x1c5c57[_0x21bd51(0xee)](_0x413d7b,HookState[_0x21bd51(0xd4)])){const _0x52b4c3={};_0x52b4c3['testUUID']=_0x20e385,_0x52b4c3[_0x21bd51(0x129)]=_0x8a84f1,_0x5e059f[_0x21bd51(0x15a)](this['parseCucumberTestResult'](_0x52b4c3)),await this[_0x21bd51(0x170)](_0x5e059f,_0x8a84f1['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x1c5c57['DoYSi'](_0x413d7b,HookState[_0x21bd51(0xd4)])&&await this[_0x21bd51(0x189)](_0x5e059f,_0x5c697c,_0x1f21a5);break;default:if(CLIUtils[_0x21bd51(0x193)](_0x5c697c[_0x21bd51(0x19a)]()[_0x21bd51(0x132)]('.')[0x1])){const _0x54a257=await this['trackHookEvent'](_0x5e059f,_0x5c697c,_0x413d7b,_0x1f21a5);_0x5e059f[_0x21bd51(0x15a)](_0x54a257);}else logger['debug'](_0x21bd51(0x10f)+_0x5c697c+_0x21bd51(0x1a6)+_0x413d7b);break;}}catch(_0x4b5d03){logger[_0x21bd51(0x181)](util[_0x21bd51(0xe8)](_0x1c5c57[_0x21bd51(0x137)],_0x5c697c,_0x413d7b,_0x1f21a5[_0x21bd51(0x1a8)],_0x4b5d03));}_0x1f21a5['instance']=_0x5e059f,await this[_0x21bd51(0x15d)](_0x5e059f,_0x5c697c,_0x413d7b,_0x1f21a5);}[a78_0x34e9e5(0x140)](_0x55d4b7,_0x12324e,_0x411175={}){const _0x473e70=a78_0x34e9e5,_0x1e1c4b={};_0x1e1c4b['nNDwX']=function(_0x32ca70,_0x18b1b1){return _0x32ca70===_0x18b1b1;},_0x1e1c4b[_0x473e70(0x159)]=function(_0x15be10,_0x3edea6){return _0x15be10===_0x3edea6;};const _0x55dc6c=_0x1e1c4b;let _0x93fcdb=null;return(_0x55dc6c[_0x473e70(0xe9)](_0x55d4b7,TestFrameworkState['INIT_TEST'])||_0x55dc6c[_0x473e70(0x159)](_0x55d4b7,TestFrameworkState[_0x473e70(0x108)]))&&this['trackCucumberInstance'](_0x55d4b7,_0x411175),_0x93fcdb=TestFramework[_0x473e70(0x10b)](),_0x93fcdb;}[a78_0x34e9e5(0x12e)](_0x28ad2b,_0x4f3c55){const _0x7249dd=a78_0x34e9e5,_0x2ac368=CLIUtils['getCurrentInstanceName'](),_0x1bbdcb=TrackedInstance['createContext'](_0x2ac368);let _0x423e61=null;logger[_0x7249dd(0x171)](_0x7249dd(0x139)+_0x2ac368+_0x7249dd(0x146)+_0x28ad2b),_0x423e61=new TestFrameworkInstance(_0x1bbdcb,this[_0x7249dd(0x100)](),this['getTestFrameworksVersions'](),_0x28ad2b,HookState[_0x7249dd(0x108)]),TestFramework[_0x7249dd(0x192)](_0x1bbdcb,_0x423e61),logger[_0x7249dd(0x171)](_0x7249dd(0x128)+_0x1bbdcb[_0x7249dd(0x144)]()+_0x7249dd(0x13b)+_0x2ac368);}[a78_0x34e9e5(0x166)](_0x2cb754){const _0x2c4723=a78_0x34e9e5,_0xa9b629={};_0xa9b629[_0x2c4723(0x133)]=_0x2c4723(0x182);const _0x360f64=_0xa9b629,{testUUID:_0x57230d,testData:_0x12450e}=_0x2cb754;if(!_0x12450e||!_0x12450e[_0x2c4723(0x130)])return logger['debug'](_0x360f64['Lywvh']),{};const _0x366a1f=_0x57230d,_0x3ae364=_0x12450e['uuid'],_0x455141=this[_0x2c4723(0x100)]()[0x0],_0x59a04f=this[_0x2c4723(0x16d)](),_0x231747={[TestFrameworkConstants[_0x2c4723(0x19e)]]:_0x455141,[TestFrameworkConstants[_0x2c4723(0x102)]]:_0x59a04f[_0x455141],[TestFrameworkConstants[_0x2c4723(0x187)]]:[],[TestFrameworkConstants[_0x2c4723(0x18c)]]:{},[TestFrameworkConstants[_0x2c4723(0x172)]]:{},[TestFrameworkConstants[_0x2c4723(0xf9)]]:_0x366a1f,[TestFrameworkConstants[_0x2c4723(0x155)]]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x2c4723(0x169)]]:_0x12450e['name']||'',[TestFrameworkConstants[_0x2c4723(0x156)]]:_0x12450e[_0x2c4723(0xfb)]||'',[TestFrameworkConstants[_0x2c4723(0xd3)]]:_0x3ae364,[TestFrameworkConstants[_0x2c4723(0xde)]]:_0x12450e[_0x2c4723(0x178)]||'',[TestFrameworkConstants[_0x2c4723(0x18a)]]:_0x12450e[_0x2c4723(0xd5)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x12450e[_0x2c4723(0x119)]?.['code']||null,[TestFrameworkConstants[_0x2c4723(0x179)]]:_0x12450e[_0x2c4723(0x17e)]||[],[TestFrameworkConstants[_0x2c4723(0xe5)]]:_0x12450e[_0x2c4723(0x149)]||new Date()[_0x2c4723(0x191)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x12450e[_0x2c4723(0x17c)]?.[0x0]||'',[TestFrameworkConstants[_0x2c4723(0x1a0)]]:_0x12450e[_0x2c4723(0x17c)]||[],[TestFrameworkConstants[_0x2c4723(0x14c)]]:_0x12450e[_0x2c4723(0x15e)]?.[_0x2c4723(0x180)]||_0x12450e[_0x2c4723(0x178)]||'',[TestFrameworkConstants[_0x2c4723(0xf8)]]:{},[TestFrameworkConstants[_0x2c4723(0x1a1)]]:_0x12450e[_0x2c4723(0x14f)]||{}};TestInfo['setTestDetails'](_0x3ae364,_0x231747),logger[_0x2c4723(0x171)]('Parsed\x20cucumber\x20test:\x20'+_0x12450e[_0x2c4723(0x178)]+_0x2c4723(0x18d)+_0x366a1f);const _0x18aa5d={};return _0x18aa5d[_0x3ae364]=_0x231747,_0x18aa5d;}[a78_0x34e9e5(0x168)](_0x3d3c9e){const _0x5f34dd=a78_0x34e9e5,_0xf3f9f6={'KatcC':_0x5f34dd(0x10c),'EaJHf':_0x5f34dd(0x194),'lVzYl':function(_0x4d7eb1,_0x5d3e85){return _0x4d7eb1===_0x5d3e85;},'fbpmz':_0x5f34dd(0x135),'tGfBT':_0x5f34dd(0x17d),'bXMUH':function(_0x4d2a07,_0x56ef1d,_0x150d2e){return _0x4d2a07(_0x56ef1d,_0x150d2e);},'gakkH':function(_0x390306,_0x5a12de){return _0x390306>_0x5a12de;}},{testUUID:_0x2455aa,testData:_0x5eeb15}=_0x3d3c9e;if(!_0x5eeb15||!_0x5eeb15[_0x5f34dd(0x130)])return logger[_0x5f34dd(0x171)](_0xf3f9f6['KatcC']),{};const _0x5a8dd3=this[_0x5f34dd(0x140)](TestFrameworkState[_0x5f34dd(0x188)],HookState[_0x5f34dd(0xd4)]),_0x148ce9=_0x5eeb15[_0x5f34dd(0x130)],_0x3ebca9=TestInfo['getTestDetails'](_0x148ce9)||{},_0x4c6198=_0x3ebca9?_0x3ebca9[TestFrameworkConstants[_0x5f34dd(0xf8)]]||{}:{},_0x40e428={..._0x3ebca9,[TestFrameworkConstants[_0x5f34dd(0x155)]]:_0x5eeb15[_0x5f34dd(0x18e)]||_0xf3f9f6[_0x5f34dd(0x142)],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x5eeb15[_0x5f34dd(0x197)]||new Date()[_0x5f34dd(0x191)](),[TestFrameworkConstants[_0x5f34dd(0x161)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x5f34dd(0xf8)]]:_0x4c6198,[TestFrameworkConstants[_0x5f34dd(0x123)]]:[],[TestFrameworkConstants[_0x5f34dd(0x1a1)]]:_0x5eeb15[_0x5f34dd(0x14f)]||{}};_0xf3f9f6['lVzYl'](_0x5eeb15[_0x5f34dd(0x18e)],_0xf3f9f6[_0x5f34dd(0x1a9)])&&_0x5eeb15[_0x5f34dd(0xd9)]&&(_0x40e428[TestFrameworkConstants[_0x5f34dd(0x12a)]]=_0x5eeb15[_0x5f34dd(0xe0)]||_0xf3f9f6[_0x5f34dd(0xf5)],_0x40e428[TestFrameworkConstants[_0x5f34dd(0xd7)]]=_0x5eeb15['failure_reason']||'',_0x40e428[TestFrameworkConstants[_0x5f34dd(0x13f)]]=_0x5eeb15[_0x5f34dd(0xd9)]);const _0xd6350c=TestInfo[_0x5f34dd(0x126)](_0x148ce9)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x16aaad=_0xf3f9f6[_0x5f34dd(0x186)](getManualUploadLogs,_0xd6350c,_0x5a8dd3[_0x5f34dd(0x1a7)]()[_0x5f34dd(0x122)](_0x148ce9)[TestFrameworkConstants[_0x5f34dd(0xf9)]]);if(_0xf3f9f6[_0x5f34dd(0xf1)](_0x16aaad['length'],0x0)){const _0x3ba806=_0x40e428[TestFrameworkConstants['KEY_LOGS']]||[];_0x40e428[TestFrameworkConstants[_0x5f34dd(0x123)]]=[..._0x3ba806,..._0x16aaad];}_0x5eeb15['hooks']&&_0xf3f9f6[_0x5f34dd(0xf1)](_0x5eeb15[_0x5f34dd(0x13c)][_0x5f34dd(0x1a8)],0x0)&&(_0x40e428[TestFrameworkConstants[_0x5f34dd(0x18c)]]=_0x5eeb15['hooks']);TestInfo['setTestDetails'](_0x148ce9,_0x40e428),logger[_0x5f34dd(0x171)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x5eeb15['name']+_0x5f34dd(0x116)+_0x5eeb15['result']);const _0xa60a7f={};return _0xa60a7f[_0x148ce9]=_0x40e428,_0xa60a7f;}async[a78_0x34e9e5(0xea)](_0x1b3f4d,_0x634ae6,_0x47ebb9,_0x4d7bdc){const _0x4b66a0=a78_0x34e9e5,_0x116351={'PWJQs':_0x4b66a0(0xef),'acbLo':function(_0x3d46ae){return _0x3d46ae();},'GedQP':function(_0x3e2680,_0x25f7db){return _0x3e2680 in _0x25f7db;},'EpVwK':function(_0x408631,_0x2398ae){return _0x408631===_0x2398ae;},'XpfJX':function(_0x541726,_0x232deb){return _0x541726===_0x232deb;},'rDbKW':function(_0xae3ef1,_0x6370d){return _0xae3ef1>_0x6370d;},'HWVzW':function(_0x4adaf4,_0x1b73c4){return _0x4adaf4===_0x1b73c4;},'JgpWa':_0x4b66a0(0x135),'jKxQW':'UnhandledError','iafXl':_0x4b66a0(0x17b),'ntgSK':function(_0x2aa77e,_0x50ef6c){return _0x2aa77e!==_0x50ef6c;}},{hookData:_0x14e4c2}=_0x4d7bdc;if(!_0x14e4c2)return logger['debug'](_0x116351[_0x4b66a0(0x154)]),{};const _0x28c607=_0x14e4c2[_0x4b66a0(0x130)]||_0x116351[_0x4b66a0(0xf4)](uuidv4),_0x2ad19b=_0x14e4c2['test_run_id'],_0x39eefa=_0x634ae6[_0x4b66a0(0x19a)]()[_0x4b66a0(0x132)]('.')[0x1],_0x16a4d4=TestInfo[_0x4b66a0(0x126)](_0x2ad19b)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x4616c4=_0x1b3f4d[_0x4b66a0(0x1a7)]()[_0x4b66a0(0x122)](_0x2ad19b);if(!_0x4616c4)return logger[_0x4b66a0(0x171)](_0x4b66a0(0xd6)+_0x2ad19b+_0x4b66a0(0x167)),this[_0x4b66a0(0x157)](_0x1b3f4d,_0x2ad19b,_0x634ae6,_0x47ebb9,_0x4d7bdc),{};let _0xb8aa14=_0x4616c4[TestFrameworkConstants[_0x4b66a0(0x172)]];!_0xb8aa14&&(_0xb8aa14={});!_0x116351[_0x4b66a0(0x151)](_0x39eefa,_0xb8aa14)&&(_0xb8aa14[_0x39eefa]=[]);let _0x1a2b61=_0x4616c4[TestFrameworkConstants[_0x4b66a0(0x18c)]];!_0x1a2b61&&(_0x1a2b61={});!_0x116351[_0x4b66a0(0x151)](_0x39eefa,_0x1a2b61)&&(_0x1a2b61[_0x39eefa]=[]);const _0x15ad2b={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0xb8aa14,[TestFrameworkConstants[_0x4b66a0(0x18c)]]:_0x1a2b61},_0x37049a={};_0x37049a[_0x2ad19b]=_0x15ad2b;const _0x3b5669=_0x37049a;if(_0x116351[_0x4b66a0(0xdb)](_0x47ebb9,HookState['PRE'])){const _0x5a35be={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x28c607,[TestFrameworkConstants[_0x4b66a0(0x127)]]:TestFrameworkConstants[_0x4b66a0(0xf6)],[TestFrameworkConstants[_0x4b66a0(0x14b)]]:_0x14e4c2['started_at'],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants[_0x4b66a0(0x12f)]]:_0x14e4c2[_0x4b66a0(0x158)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x16a4d4};_0x5a35be[_0x4b66a0(0x147)]=_0x39eefa;const _0x3d4890=_0x5a35be;_0xb8aa14[_0x39eefa][_0x4b66a0(0xed)](_0x3d4890),_0x3b5669[_0x2ad19b][TestFrameworkConstants[_0x4b66a0(0x14a)]]=_0x39eefa,logger['debug']('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x39eefa+_0x4b66a0(0x103)+_0x3d4890+_0x4b66a0(0x162)+_0x4d7bdc);}else{if(_0x116351['XpfJX'](_0x47ebb9,HookState[_0x4b66a0(0xd4)])){const _0x1f2d29=_0x14e4c2[_0x4b66a0(0x18e)],_0x19e467=_0xb8aa14[_0x39eefa]||[];logger[_0x4b66a0(0x171)](_0x4b66a0(0x11e)+_0x19e467+_0x4b66a0(0xff)+_0x4d7bdc);if(_0x116351['rDbKW'](_0x19e467['length'],0x0)){const _0x31e2eb=_0x19e467[_0x4b66a0(0x184)]();_0x116351[_0x4b66a0(0x16c)](_0x14e4c2[_0x4b66a0(0x18e)],_0x116351[_0x4b66a0(0x10d)])&&_0x14e4c2[_0x4b66a0(0x13e)]?(_0x31e2eb[TestFrameworkConstants[_0x4b66a0(0x16e)]]=_0x14e4c2['failure_type']||_0x116351[_0x4b66a0(0xd8)],_0x31e2eb[TestFrameworkConstants[_0x4b66a0(0xfd)]]=_0x14e4c2[_0x4b66a0(0x115)]||'',_0x31e2eb[TestFrameworkConstants[_0x4b66a0(0x16a)]]=_0x14e4c2['failure_data']):_0x31e2eb[TestFrameworkConstants[_0x4b66a0(0x127)]]=_0x116351[_0x4b66a0(0x110)];_0x116351['ntgSK'](_0x1f2d29,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x31e2eb[TestFrameworkConstants[_0x4b66a0(0x127)]]=_0x1f2d29);_0x31e2eb[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x14e4c2[_0x4b66a0(0x12c)]||new Date()['toISOString'](),_0x31e2eb[TestFrameworkConstants[_0x4b66a0(0xf8)]]=_0x16a4d4;const _0x26e478=_0x31e2eb[TestFrameworkConstants[_0x4b66a0(0x114)]];!_0x1a2b61[_0x39eefa]&&(_0x1a2b61[_0x39eefa]=[]),_0x1a2b61[_0x39eefa][_0x4b66a0(0xed)](_0x31e2eb),_0x3b5669[_0x2ad19b][TestFrameworkConstants[_0x4b66a0(0x131)]]=_0x39eefa;}}}return logger[_0x4b66a0(0x171)](_0x4b66a0(0xeb)+_0x14e4c2[_0x4b66a0(0x158)]+_0x4b66a0(0x16f)+_0x28c607+'\x20for\x20test:\x20'+_0x2ad19b),_0x3b5669;}[a78_0x34e9e5(0x17f)](_0x57547c){const _0x7d0ee=a78_0x34e9e5,_0x18c15b={};_0x18c15b['jrgJN']=_0x7d0ee(0x183);const _0x837b18=_0x18c15b;try{const _0x240cc8=_0x57547c[_0x7d0ee(0x11f)]?_0x57547c[_0x7d0ee(0x11f)]['id']:_0x57547c[_0x7d0ee(0x163)][_0x7d0ee(0x105)],_0x552ddd=_0x57547c[_0x7d0ee(0xe3)],_0x326c9f=_0x552ddd[_0x7d0ee(0x104)](),_0x5426f6=_0x552ddd[_0x7d0ee(0x1a7)]()[_0x7d0ee(0x122)](_0x240cc8);if(!_0x5426f6)return logger[_0x7d0ee(0x171)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x240cc8),{};logger[_0x7d0ee(0x171)](_0x7d0ee(0x1a3)+_0x240cc8);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x82ca67='',[TestFrameworkConstants[_0x7d0ee(0x102)]]:_0x3bfc3c='',[TestFrameworkConstants[_0x7d0ee(0xe5)]]:_0x24de9d='',[TestFrameworkConstants[_0x7d0ee(0xe2)]]:_0x15df79=''}=_0x5426f6,_0x1ca608=_0x552ddd['getCurrentTestState']()[_0x7d0ee(0x19a)]()[_0x7d0ee(0x132)]('.')[0x1],_0x3db82a=_0x552ddd[_0x7d0ee(0x138)]()['toString']()[_0x7d0ee(0x132)]('.')[0x1],_0x1bb79d=global?.[_0x7d0ee(0x141)]??0x0,_0x103af7=_0x552ddd[_0x7d0ee(0x109)](),_0x513f92=Buffer[_0x7d0ee(0x118)](JSON[_0x7d0ee(0xdf)](_0x5426f6))[_0x7d0ee(0x19a)](_0x837b18[_0x7d0ee(0xf3)]),_0x4d5c9e={'hash':_0x326c9f[_0x7d0ee(0x144)](),'threadId':_0x326c9f[_0x7d0ee(0x113)]()[_0x7d0ee(0x19a)](),'processId':_0x326c9f[_0x7d0ee(0x152)]()['toString']()},_0x2a8585={};_0x2a8585[_0x7d0ee(0xec)]=_0x1bb79d,_0x2a8585[_0x7d0ee(0xe7)]=_0x82ca67,_0x2a8585[_0x7d0ee(0x19b)]=_0x3bfc3c,_0x2a8585[_0x7d0ee(0x143)]=_0x1ca608,_0x2a8585[_0x7d0ee(0x14d)]=_0x3db82a,_0x2a8585[_0x7d0ee(0x149)]=_0x24de9d,_0x2a8585[_0x7d0ee(0x11c)]=_0x15df79,_0x2a8585[_0x7d0ee(0x130)]=_0x103af7,_0x2a8585['eventJson']=_0x513f92,_0x2a8585[_0x7d0ee(0x19f)]=_0x4d5c9e;const _0x5af125=_0x2a8585;return logger[_0x7d0ee(0x171)](_0x7d0ee(0x134)+_0x240cc8+_0x7d0ee(0x145)+_0x1ca608+_0x7d0ee(0x176)+_0x3db82a),_0x5af125;}catch(_0x798a71){return logger[_0x7d0ee(0x181)](_0x7d0ee(0x160)+util['format'](_0x798a71)),{};}}async['sendLogCreatedEvent'](_0x5637b4,_0x2a1095,_0x5a043c){const _0x5757b0=a78_0x34e9e5,_0x293d14={'kfMHm':function(_0x59c551,_0x2851a9,_0x12da3c){return _0x59c551(_0x2851a9,_0x12da3c);},'cgYLB':function(_0x29003f,_0x41c659){return _0x29003f===_0x41c659;},'aFcSy':_0x5757b0(0xfc),'Fgekt':function(_0x367faf,_0x2512d0){return _0x367faf/_0x2512d0;},'FPdqD':function(_0x44b730,_0x4263d0){return _0x44b730<_0x4263d0;},'mmJRt':function(_0x59ba70,_0x2925e3){return _0x59ba70*_0x2925e3;},'YXFKM':function(_0x326de6,_0x8aafba){return _0x326de6+_0x8aafba;},'JWaej':function(_0x40f877,_0x40a8b6){return _0x40f877+_0x40a8b6;},'ReIRA':function(_0x258fb6,_0x3c83a7){return _0x258fb6+_0x3c83a7;},'OwmAU':_0x5757b0(0x177)};try{const _0x1f9a87=_0x5a043c[_0x5757b0(0x15c)],_0x58ab1d=_0x5637b4[_0x5757b0(0x1a7)]()[_0x5757b0(0x122)](_0x1f9a87),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x11e4a9='',[TestFrameworkConstants[_0x5757b0(0x102)]]:_0x57f9d5=''}=_0x58ab1d,_0x3614aa=TestInfo['readLogObjects'](_0x1f9a87),_0x41824b=TestInfo[_0x5757b0(0x126)](_0x1f9a87)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x5f3842=_0x293d14[_0x5757b0(0xe4)](getMediaArtifactsLogs,_0x41824b,_0x5637b4[_0x5757b0(0x1a7)]()[_0x5757b0(0x122)](_0x1f9a87)[TestFrameworkConstants[_0x5757b0(0xf9)]]),_0x11bf9c=(_0x3614aa||[])['concat'](_0x5f3842||[]);if(!_0x11bf9c||_0x293d14[_0x5757b0(0x13d)](_0x11bf9c['length'],0x0)){logger[_0x5757b0(0x171)](_0x293d14[_0x5757b0(0x15b)]);return;}const _0x58f9ba=0x28,_0xdc7550=Math[_0x5757b0(0x173)](_0x293d14[_0x5757b0(0x164)](_0x11bf9c['length'],_0x58f9ba));for(let _0x5a7872=0x0;_0x293d14[_0x5757b0(0x198)](_0x5a7872,_0xdc7550);_0x5a7872++){const _0x11d091=_0x293d14[_0x5757b0(0x111)](_0x5a7872,_0x58f9ba),_0x3f1464=_0x293d14['YXFKM'](_0x11d091,_0x58f9ba),_0x2ba27a=_0x11bf9c['slice'](_0x11d091,_0x3f1464),_0x18f6d9={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x2ba27a,'testFrameworkName':_0x11e4a9,'testFrameworkVersion':_0x57f9d5,'testFrameworkState':_0x2a1095[_0x5757b0(0x19a)]()[_0x5757b0(0x132)]('.')[0x1]};logger['debug'](_0x5757b0(0xe1)+_0x1f9a87+_0x5757b0(0x121)+_0x293d14['JWaej'](_0x5a7872,0x1)+'/'+_0xdc7550+_0x5757b0(0x117)+util[_0x5757b0(0xe6)](_0x18f6d9));const _0x21fe92=await GrpcClient[_0x5757b0(0x196)]()['logCreatedEvent'](_0x18f6d9);logger[_0x5757b0(0x171)](_0x5757b0(0xe1)+_0x1f9a87+_0x5757b0(0x121)+_0x293d14[_0x5757b0(0xf0)](_0x5a7872,0x1)+'/'+_0xdc7550+_0x5757b0(0xdd)+util[_0x5757b0(0xe6)](_0x21fe92));}}catch(_0x5b0422){logger['error'](_0x5757b0(0xda)+util['format'](_0x5b0422));}logger['debug'](_0x293d14[_0x5757b0(0x10e)]);}[a78_0x34e9e5(0x157)](_0x552f13,_0x592487,_0x2f2ab5,_0x1d6d8c,_0xbb5c1b){const _0xcfbf3d=a78_0x34e9e5,_0x404e8c={'testId':_0x592487,'testFrameworkState':_0x2f2ab5,'hookState':_0x1d6d8c,'args':_0xbb5c1b,'timestamp':new Date()[_0xcfbf3d(0x191)]()};_0x552f13[_0xcfbf3d(0xfe)](_0x592487,_0x404e8c),logger[_0xcfbf3d(0x171)]('Stored\x20pending\x20hook\x20for\x20testId:\x20'+_0x592487+',\x20state:\x20'+_0x2f2ab5+_0xcfbf3d(0x11d)+_0x1d6d8c);}async['processPendingHooks'](_0xf61119,_0x81771a){const _0x2d376a=a78_0x34e9e5,_0x5bcf1f={};_0x5bcf1f['EeQJM']=function(_0x504dcb,_0x455bbd){return _0x504dcb>_0x455bbd;};const _0x32b2a6=_0x5bcf1f;if(!_0xf61119[_0x2d376a(0x11a)](_0x81771a))return;const _0x48d3cc=_0xf61119[_0x2d376a(0x120)](_0x81771a);logger[_0x2d376a(0x171)]('Processing\x20'+_0x48d3cc['length']+_0x2d376a(0x1a2)+_0x81771a);for(const _0x2c2153 of _0x48d3cc){try{const _0x1f6631=await this[_0x2d376a(0xea)](_0xf61119,_0x2c2153['testFrameworkState'],_0x2c2153[_0x2d376a(0x14d)],_0x2c2153['args']);_0x1f6631&&_0x32b2a6[_0x2d376a(0x16b)](Object[_0x2d376a(0x199)](_0x1f6631)[_0x2d376a(0x1a8)],0x0)&&_0xf61119[_0x2d376a(0x15a)](_0x1f6631),await this[_0x2d376a(0x15d)](_0xf61119,_0x2c2153[_0x2d376a(0x143)],_0x2c2153[_0x2d376a(0x14d)],_0x2c2153[_0x2d376a(0xf7)]);}catch(_0x1e3762){logger[_0x2d376a(0x181)](_0x2d376a(0x125)+_0x81771a+_0x2d376a(0x18b)+_0x1e3762);}}_0xf61119[_0x2d376a(0x18f)](_0x81771a),logger['debug'](_0x2d376a(0xdc)+_0x81771a);}}function a78_0x5e8e(){const _0x10b40b=['UnhandledError','tags','createTestFrameworkEventPayload','rerun_name','error','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','base64','pop','../../../helpers/helper.js','bXMUH','KEY_TEST_LOGS','TEST','sendLogCreatedEvent','KEY_TEST_LOCATION',',\x20error:\x20','KEY_HOOKS_FINISHED','\x20with\x20UUID:\x20','result','removePendingHooks','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','toISOString','setTrackedInstance','matchHookRegex','unknown','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','getInstance','finishedAt','FPdqD','keys','toString','testFrameworkVersion','1oTGXkf','./constants/testFrameworkConstants.js','KEY_TEST_FRAMEWORK_NAME','executionContext','KEY_TEST_SCOPES','KEY_TEST_META','\x20pending\x20hooks\x20for\x20testId:\x20','createTestFrameworkEventPayload\x20testId:\x20','CucumberTestFramework','8871Grtiwj','\x20&\x20hookState=','getAllData','length','fbpmz','KEY_TEST_ID','POST','location','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_TEST_FAILURE_REASON','jKxQW','failure','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','EpVwK','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','\x20response=','KEY_TEST_NAME','stringify','failure_type','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_TEST_ENDED_AT','instance','kfMHm','KEY_TEST_STARTED_AT','inspect','testFrameworkName','format','nNDwX','trackHookEvent','Tracked\x20cucumber\x20hook\x20event:\x20','platformIndex','push','DoYSi','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','ReIRA','gakkH','getTestUUID','jrgJN','acbLo','tGfBT','DEFAULT_HOOK_RESULT','args','KEY_CUSTOM_TAGS','KEY_TEST_UUID','../instances/trackedInstance.js','file_name','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','KEY_HOOK_FAILURE_REASON','addPendingHook','\x20and\x20args\x20=\x20','getTestFrameworks','./testFramework','KEY_TEST_FRAMEWORK_VERSION','\x20&\x20hook\x20=\x20','getContext','test_run_id','6659400PPUMga','KRNOJ','NONE','getRef','../instances/testFrameworkInstance.js','getTrackedInstance','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','JgpWa','OwmAU','trackEvent:\x20unsupported\x20testFrameworkState=','iafXl','mmJRt','trackEvent','getThreadId','KEY_HOOK_ID','failure_reason','\x20with\x20result:\x20','\x20payload=','from','body','hasPendingHooks','../grpcClient','endedAt',',\x20hookState:\x20','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','test','getPendingHooks','\x20batch\x20','get','KEY_LOGS','95hczGmL','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','getTestDetails','KEY_HOOK_RESULT','trackCucumberInstance:\x20saved\x20instance\x20contextId=','testData','KEY_TEST_FAILURE_TYPE','16066204TiLfze','finished_at','188562mNnIPZ','trackCucumberInstance','KEY_HOOK_NAME','uuid','KEY_HOOK_LAST_FINISHED','split','Lywvh','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','failed','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','CDimC','getCurrentHookState','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','PRE','\x20target=','hooks','cgYLB','failure_data','KEY_TEST_FAILURE','resolveInstance','browserstackPlatformIndex','EaJHf','testFrameworkState','getId','\x20testState:\x20',',\x20state=','key','../../../helpers/classLogger.js','startedAt','KEY_HOOK_LAST_STARTED','KEY_EVENT_STARTED_AT','KEY_TEST_RERUN_NAME','hookState','12541203xCGqYL','meta','2905468bjYXCl','GedQP','getProcessId','2948365zHCBbD','PWJQs','KEY_TEST_RESULT','KEY_TEST_FILE_PATH','storePendingHook','hook_type','rJjEj','addMultipleEntries','aFcSy','testUUID','runHooks','customRerunParam','../cliUtils.js','Error\x20in\x20createTestFrameworkEventPayload:\x20','KEY_TEST_RESULT_AT','\x20\x20and\x20args\x20=\x20','hookData','Fgekt','exports','parseCucumberTest',',\x20storing\x20as\x20pending\x20hook','parseCucumberTestResult','KEY_AUTOMATE_SESSION_NAME','KEY_HOOK_FAILURE','EeQJM','HWVzW','getTestFrameworksVersions','KEY_HOOK_FAILURE_TYPE','\x20with\x20id\x20','processPendingHooks','debug','KEY_HOOKS_STARTED','ceil','../TestInfo.js','296NziZDI','\x20hookState:\x20','Cucumber\x20log\x20created\x20event','name','KEY_TEST_TAGS','10ZDaTeJ','passed','scopes'];a78_0x5e8e=function(){return _0x10b40b;};return a78_0x5e8e();}module[a78_0x34e9e5(0x165)]=CucumberTestFramework;
|