browserstack-node-sdk 1.55.7 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/generated/sdk-messages_pb.d.ts +64 -0
- package/generated/sdk-messages_pb.js +512 -0
- package/generated/sdk_grpc_pb.d.ts +5 -0
- package/generated/sdk_grpc_pb.js +33 -0
- package/package.json +2 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/bin/v2/cliUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a72_0x224d(){const _0x519b57=['ZJeCO','SNhOJ','split','runShellCommand','JGvIs','setFrameworkDetail','tmpdir','wVnwz','readdirSync','Vhxgm','../../helpers/performance/constants','dORIg','gvYnw','isBinaryBusy','BIDIW','trim','3PIFIFB','close','uIEbr','HMZdb','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','WNxCW','version','Downloading\x20SDK\x20binary\x20from:\x20','chmod','hzlxd','getTestFrameworkDetail','Folder\x20does\x20not\x20exist:\x20','EjxQm','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','VgZwt','Resolving\x20with\x20stdout:\x20\x22','reduce','uFUhh','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','start','Sxeoa','SDK_CLI_CHECK_UPDATE','cli_version','\x20version','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','shouldSkipSessionStatus','GET','../../helpers/performance/performance-tester.js','isDirectory','wMFUi','1393160dxaXNH','GQTxZ','debug','warn','util','follow-redirects','shouldSkipSessionName','gctMn','skipSessionStatus','Current\x20CLI\x20Path\x20Found:\x20','getSdkVersion','entries','test','Failed\x20to\x20delete\x20zip\x20file:\x20','env','development','stringify','../../helpers/helper','mtime','binary-','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','cJBWy','102880woieEN','jcrcl','tXuOL','once','child_process','get','./framework/constants/testFrameworkConstants.js','iGPsz','NvSov',',\x20automationFramework=','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','existsSync','testContextOptions','worker_threads','CajbS','cli','3|2|4|0|1','nVTqR','wOpzL','yauzl','HOOK_REGEX','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','SZoPR','Configuring\x20Cli\x20path.','sSnMj','NMcpm','Folder\x20','\x20already\x20exists','BwqOc','cbOKQ','Resolved\x20binary\x20path:\x20','SDK_CLI_BIN_PATH','IwZnv','SCQzO','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','hFHgP','requestToUpdateCLI','SHELL_EXECUTE_ERROR','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','czyJb','platform','hbfKY','tiIzT','ujtlS','testFrameworkDetail','code','.tmp.','Development\x20Cli\x20Path:\x20','tihvS','basename','path','wQWWY','statSync','url','homedir','WUQze','IGsBM','mergeObject','object','1720VFLEtk','parse','QwyzR','isFile','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','fileName','./state/hookState.js','error','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','tAkvr','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','ILAxh','BROWSERSTACK_BINARY_URL','../utils/apiUtilityMethods.js','SDK_CLI_DOWNLOAD','sUBnA','join','Error\x20while\x20reading\x20CLI\x20path:\x20','CBQBG','50823OHKguC','fPaZj','23337633Tkqrye','info','KAPfo','BROWSERSTACK_FILES_DIR','anrmG','pMpFv','BROWSERSTACK_CLI_ENV','closeSync','entry','getExistingCliPath','downloadFileStream','Setting\x20required\x20permissions\x20to\x20','../../../package.json','EdTNE','zzKWH','getWritableDir','downloadLatestBinary','getHookRegistryKey','jvmds','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','getCLIParamsForDevEnv','cLXDv','checkAndUpdateCli','yJZab','readEntry','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','map','SEcuX','tyTFU','message','.sock','LuyXC','tenqL','end','openReadStream','MlLlT','ZzbzH','isDevelopmentEnv','0755','response\x20','Odism','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','3070226NoubHW','CXxtV','MNSww','getCliDir','nvtwp','53466CqCiTQ','CLIUtils','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','zGaFk','355uChQkl','pid','9922386iWjbru','BgwmE','includes','getSdkLanguage','unlink','automationFrameworkDetail','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','kxFFr','skipSessionName','unix:/tmp/sdk-platform-','concat','310ClnZHz','yvWVh','node','../../helpers/test-observability/utils.js','filePath','QUvhW','format','Rlzdg','iaOSV'];a72_0x224d=function(){return _0x519b57;};return a72_0x224d();}const a72_0x5140ee=a72_0x4230;function a72_0x4230(_0x2a8355,_0x23507f){const _0x224db5=a72_0x224d();return a72_0x4230=function(_0x423049,_0x14c6d4){_0x423049=_0x423049-0x18e;let _0x9d2ab6=_0x224db5[_0x423049];return _0x9d2ab6;},a72_0x4230(_0x2a8355,_0x23507f);}(function(_0x49a0ba,_0x21f681){const _0x13281c=a72_0x4230,_0x211f91=_0x49a0ba();while(!![]){try{const _0x366c44=-parseInt(_0x13281c(0x22a))/0x1+parseInt(_0x13281c(0x1dd))/0x2*(parseInt(_0x13281c(0x20c))/0x3)+parseInt(_0x13281c(0x240))/0x4*(parseInt(_0x13281c(0x1e6))/0x5)+-parseInt(_0x13281c(0x1e8))/0x6+-parseInt(_0x13281c(0x1e2))/0x7*(parseInt(_0x13281c(0x19e))/0x8)+parseInt(_0x13281c(0x1b1))/0x9*(parseInt(_0x13281c(0x1f3))/0xa)+parseInt(_0x13281c(0x1b3))/0xb;if(_0x366c44===_0x21f681)break;else _0x211f91['push'](_0x211f91['shift']());}catch(_0x27be3d){_0x211f91['push'](_0x211f91['shift']());}}}(a72_0x224d,0xec880));const fs=require('fs'),os=require('os'),url=require(a72_0x5140ee(0x198)),path=require(a72_0x5140ee(0x195)),{exec}=require(a72_0x5140ee(0x244)),{https}=require(a72_0x5140ee(0x22f)),yauzl=require(a72_0x5140ee(0x253)),util=require(a72_0x5140ee(0x22e)),{getFrameworkVersion}=require(a72_0x5140ee(0x1f6)),{threadId}=require(a72_0x5140ee(0x24d)),PerformanceTester=require(a72_0x5140ee(0x227)),{EVENTS:PerformanceEvents}=require(a72_0x5140ee(0x206)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a72_0x5140ee(0x23b)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a72_0x5140ee(0x1a4)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a72_0x5140ee(0x246)),logger=createClassLogger(a72_0x5140ee(0x1e3)),{getBStackAPIUrl}=require(a72_0x5140ee(0x1ab));class CLIUtils{[a72_0x5140ee(0x1ed)]={};[a72_0x5140ee(0x18f)]={};static[a72_0x5140ee(0x1d8)](){const _0x4cbeac=a72_0x5140ee,_0x19cfac={};_0x19cfac[_0x4cbeac(0x1a9)]=function(_0x22519b,_0x4b73d0){return _0x22519b===_0x4b73d0;},_0x19cfac['NvSov']=_0x4cbeac(0x239);const _0x4b3db2=_0x19cfac;return _0x4b3db2[_0x4cbeac(0x1a9)](process[_0x4cbeac(0x238)][_0x4cbeac(0x1b9)],_0x4b3db2[_0x4cbeac(0x248)]);}static[a72_0x5140ee(0x1c7)](){const _0x18a2c2=a72_0x5140ee,_0x41794c={};return _0x41794c['id']=process[_0x18a2c2(0x238)][_0x18a2c2(0x1b9)],_0x41794c['listen']=_0x18a2c2(0x1f1)+process['env'][_0x18a2c2(0x1b9)]+_0x18a2c2(0x1d1),_0x41794c;}static[a72_0x5140ee(0x234)](){const _0x1a3635=a72_0x5140ee,_0x10f597={'JqmxJ':function(_0x24efcc,_0x2326ba){return _0x24efcc(_0x2326ba);},'MNSww':_0x1a3635(0x1bf)};return _0x10f597['JqmxJ'](require,_0x10f597[_0x1a3635(0x1df)])['version'];}static[a72_0x5140ee(0x1eb)](){const _0x1e9d3f=a72_0x5140ee,_0x348f22={};_0x348f22['WUQze']=_0x1e9d3f(0x1f5);const _0x3df36d=_0x348f22;return _0x3df36d[_0x1e9d3f(0x19a)];}static async['setupCliPath'](_0x3536c2){const _0x17094d=a72_0x5140ee,_0x4f2824={'pdeIY':_0x17094d(0x257),'sSnMj':function(_0x50329b,_0x24fe5){return _0x50329b(_0x24fe5);},'ZJeCO':function(_0x7a4771,_0x1cc24e){return _0x7a4771(_0x1cc24e);},'iaOSV':_0x17094d(0x1cc)};logger['debug'](_0x4f2824['pdeIY']);const _0x4aa825=process[_0x17094d(0x238)][_0x17094d(0x25f)];if(!_0x4f2824[_0x17094d(0x258)](isNullOrEmpty,_0x4aa825))return logger['debug'](_0x17094d(0x192)+_0x4aa825),_0x4aa825;try{const _0x31d3ba=this[_0x17094d(0x1e0)]();if(_0x4f2824[_0x17094d(0x1fc)](isNullOrEmpty,_0x31d3ba))throw new Error(_0x4f2824[_0x17094d(0x1fb)]);const _0x314a35=this['getExistingCliPath'](_0x31d3ba),_0x360fbc=await this[_0x17094d(0x1c9)](_0x314a35,_0x31d3ba,_0x3536c2);return logger['debug'](_0x17094d(0x25e)+_0x360fbc),_0x360fbc;}catch(_0x5191cc){logger[_0x17094d(0x22c)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x17094d(0x1f9)](_0x5191cc));}return null;}static async[a72_0x5140ee(0x1c9)](_0x493960,_0x1daa93,_0x4dd82f){const _0x294b57=a72_0x5140ee,_0x142372={'NMcpm':function(_0x16810c){return _0x16810c();},'BIDIW':function(_0x621d15,_0x30312a){return _0x621d15(_0x30312a);},'IwZnv':function(_0x4e330d,_0x123755,_0x48714d){return _0x4e330d(_0x123755,_0x48714d);},'WNxCW':'data','JGvIs':_0x294b57(0x198),'xkpJK':function(_0x1f4b39,_0x9a2a5d){return _0x1f4b39(_0x9a2a5d);}};PerformanceTester[_0x294b57(0x21f)](PerformanceEvents[_0x294b57(0x221)]),logger[_0x294b57(0x1b4)](_0x294b57(0x233)+_0x493960);const _0x572f8f=_0x142372[_0x294b57(0x259)](getHostInfo),_0x30259f={'sdk_version':CLIUtils[_0x294b57(0x234)](),'os':_0x572f8f[_0x294b57(0x268)],'os_arch':_0x572f8f['arch'],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x142372[_0x294b57(0x20a)](isNullOrEmpty,_0x493960)&&(_0x30259f[_0x294b57(0x222)]=await this['runShellCommand'](_0x493960+_0x294b57(0x223)));const _0x5ae861=await this[_0x294b57(0x264)](_0x30259f,_0x4dd82f);process['env'][_0x294b57(0x1aa)]&&(logger[_0x294b57(0x1b4)]('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process[_0x294b57(0x238)][_0x294b57(0x1aa)]),_0x5ae861['data'][_0x294b57(0x198)]=process['env']['BROWSERSTACK_BINARY_URL']);if(_0x142372['IwZnv'](nestedKeyValue,_0x5ae861,[_0x142372[_0x294b57(0x211)],_0x142372[_0x294b57(0x200)]])){logger['debug'](_0x294b57(0x266)+_0x30259f[_0x294b57(0x222)]);if(!_0x142372['xkpJK'](isNullOrEmpty,_0x493960)&&this['isBinaryBusy'](_0x493960))return logger['warn'](_0x294b57(0x1ee)+_0x493960),PerformanceTester['end'](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x493960;const _0x5a4b13=await this[_0x294b57(0x1c3)](_0x142372[_0x294b57(0x260)](nestedKeyValue,_0x5ae861,[_0x142372[_0x294b57(0x211)],_0x142372[_0x294b57(0x200)]]),_0x1daa93);return PerformanceTester['end'](PerformanceEvents[_0x294b57(0x221)]),_0x5a4b13;}return PerformanceTester[_0x294b57(0x1d4)](PerformanceEvents[_0x294b57(0x221)]),_0x493960;}static['getCliDir'](){const _0x558ce8=a72_0x5140ee,_0x5982ee={'anrmG':function(_0x4cffa7,_0xf143b){return _0x4cffa7(_0xf143b);},'LuyXC':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','Odism':_0x558ce8(0x24f),'wzFVH':function(_0x3ba9f9,_0x316c8e){return _0x3ba9f9(_0x316c8e);}},_0x309c62=this[_0x558ce8(0x1c2)]();try{if(_0x5982ee[_0x558ce8(0x1b7)](isNullOrEmpty,_0x309c62))throw new Error(_0x5982ee[_0x558ce8(0x1d2)]);const _0x4eed3b=path[_0x558ce8(0x1ae)](_0x309c62,_0x5982ee[_0x558ce8(0x1db)]);return!fs['existsSync'](_0x4eed3b)&&_0x5982ee['wzFVH'](createDir,_0x4eed3b),_0x4eed3b;}catch(_0x42f74){logger[_0x558ce8(0x22c)](_0x558ce8(0x255)+util[_0x558ce8(0x1f9)](_0x42f74));}}static['getWritableDir'](){const _0x203076=a72_0x5140ee,_0x3cbbdc={'tyTFU':'.browserstack','cbOKQ':function(_0xd21419,_0x1308c4){return _0xd21419(_0x1308c4);},'jvmds':function(_0x47185e,_0x25e52e){return _0x47185e(_0x25e52e);},'BgwmE':function(_0x4c2e2d,_0x2da342){return _0x4c2e2d(_0x2da342);},'wVnwz':function(_0xcbca1c,_0x2f6881){return _0xcbca1c(_0x2f6881);},'GQTxZ':function(_0x3867ee,_0x25338b){return _0x3867ee(_0x25338b);}},_0x38ccd7=[process[_0x203076(0x238)][_0x203076(0x1b6)],path['join'](os[_0x203076(0x199)](),_0x3cbbdc[_0x203076(0x1cf)]),path[_0x203076(0x1ae)](os[_0x203076(0x202)](),_0x3cbbdc[_0x203076(0x1cf)])];for(const _0x37f441 of _0x38ccd7){if(_0x3cbbdc[_0x203076(0x25d)](isNullOrEmpty,_0x37f441))continue;try{if(fs[_0x203076(0x24b)](_0x37f441)){logger['debug'](_0x203076(0x25a)+_0x37f441+_0x203076(0x25b));if(!_0x3cbbdc[_0x203076(0x1c5)](isModifiable,_0x37f441)){logger[_0x203076(0x22c)](_0x203076(0x1be)+_0x37f441);const _0xcc1301=_0x3cbbdc[_0x203076(0x1e9)](setReadWriteExecuteAccess,_0x37f441);if(!_0x3cbbdc[_0x203076(0x203)](isTrue,_0xcc1301)){logger[_0x203076(0x22d)](_0x203076(0x1e4)+_0x37f441);continue;}}}else{logger[_0x203076(0x22c)](_0x203076(0x217)+_0x37f441),_0x3cbbdc[_0x203076(0x22b)](createDir,_0x37f441),logger[_0x203076(0x22c)](_0x203076(0x1be)+_0x37f441);const _0x533a46=_0x3cbbdc[_0x203076(0x25d)](setReadWriteExecuteAccess,_0x37f441);!_0x3cbbdc[_0x203076(0x1c5)](isTrue,_0x533a46)&&logger[_0x203076(0x22d)](_0x203076(0x1e4)+_0x37f441);}return _0x37f441;}catch(_0x1e5faf){logger[_0x203076(0x1a5)](_0x203076(0x210)+util['format'](_0x1e5faf));}}return null;}static[a72_0x5140ee(0x1bc)](_0x300250){const _0x155757=a72_0x5140ee,_0x3a2d39={};_0x3a2d39[_0x155757(0x220)]=function(_0x4f89af,_0x574887){return _0x4f89af>_0x574887;},_0x3a2d39[_0x155757(0x26a)]=function(_0x453241,_0x315727){return _0x453241>_0x315727;};const _0x2ad603=_0x3a2d39;try{if(!fs[_0x155757(0x24b)](_0x300250)||!fs['statSync'](_0x300250)[_0x155757(0x228)]())return'';const _0x7d1be4=fs[_0x155757(0x204)](_0x300250)[_0x155757(0x1cd)](_0x55f49f=>path[_0x155757(0x1ae)](_0x300250,_0x55f49f))['filter'](_0x106ea0=>fs[_0x155757(0x197)](_0x106ea0)[_0x155757(0x1a1)]()&&path[_0x155757(0x194)](_0x106ea0)['startsWith'](_0x155757(0x23d)));if(_0x2ad603[_0x155757(0x26a)](_0x7d1be4['length'],0x0)){const _0x474bee=_0x7d1be4[_0x155757(0x1cd)](_0x3ffc27=>({'filePath':_0x3ffc27,'mtime':fs['statSync'](_0x3ffc27)['mtime']}))[_0x155757(0x21c)]((_0x534a70,_0x820b1f)=>{const _0xf74ee8=_0x155757;if(!_0x534a70||!_0x534a70[_0xf74ee8(0x23c)])return _0x820b1f;if(_0x2ad603[_0xf74ee8(0x220)](_0x820b1f[_0xf74ee8(0x23c)],_0x534a70[_0xf74ee8(0x23c)]))return _0x820b1f;return _0x534a70;},{});return _0x474bee?_0x474bee[_0x155757(0x1f7)]:'';}return'';}catch(_0x4fcb54){return logger[_0x155757(0x1a5)](_0x155757(0x1af)+util[_0x155757(0x1f9)](_0x4fcb54)),'';}}static [a72_0x5140ee(0x264)]=async(_0x1259ba,_0x2d9b93)=>{const _0x346658=a72_0x5140ee,_0x139e5f={'nVTqR':function(_0x127914,_0x57c5b5,_0x2a7056,_0x45a5e7,_0x58063a){return _0x127914(_0x57c5b5,_0x2a7056,_0x45a5e7,_0x58063a);},'yvWVh':_0x346658(0x226)},_0x3fa0ac={};_0x3fa0ac['qs']=_0x1259ba;const _0x329f33=await _0x139e5f[_0x346658(0x251)](nodeRequest,_0x139e5f[_0x346658(0x1f4)],UPDATED_CLI_ENDPOINT,_0x3fa0ac,_0x2d9b93);return logger[_0x346658(0x22c)](_0x346658(0x1da)+JSON[_0x346658(0x23a)](_0x329f33)),_0x329f33;};static[a72_0x5140ee(0x209)](_0x421e7f){const _0x16a6d6=a72_0x5140ee;try{const _0x23ddaf=fs['openSync'](_0x421e7f,'r+');return fs[_0x16a6d6(0x1ba)](_0x23ddaf),![];}catch(_0x21b986){if(BINARY_BUSY_ERROR_CODES[_0x16a6d6(0x1ea)](_0x21b986[_0x16a6d6(0x190)]))return logger['debug']('Binary\x20is\x20busy:\x20'+_0x421e7f),!![];return logger['debug'](_0x16a6d6(0x1a2)+_0x21b986['message']),![];}}static[a72_0x5140ee(0x1ff)](_0xa5fc91,_0x34bd2b=''){const _0x3090be=a72_0x5140ee,_0x23521={'XMkJG':_0x3090be(0x212),'sUBnA':function(_0x509a45,_0x4ab222){return _0x509a45(_0x4ab222);},'hFHgP':_0x3090be(0x265),'iGPsz':function(_0x46253d,_0x4f8750){return _0x46253d(_0x4f8750);},'dORIg':function(_0x5cd6c2,_0x750203){return _0x5cd6c2(_0x750203);},'lzYxB':function(_0x2691a0,_0xad1bc2,_0x553d0,_0x28a3d8){return _0x2691a0(_0xad1bc2,_0x553d0,_0x28a3d8);},'zzKWH':_0x3090be(0x1a5)};return new Promise((_0x528fe5,_0xb33700)=>{const _0x29f980=_0x3090be,_0x13ee74={};_0x13ee74['cwd']=_0x34bd2b,_0x13ee74['timeout']=0x1388;const _0x69d896=_0x23521['lzYxB'](exec,_0xa5fc91,_0x13ee74,(_0x4da483,_0x1eda95,_0x248997)=>{const _0x5e8b64=a72_0x4230;if(_0x4da483){if(_0xa5fc91[_0x5e8b64(0x1ea)](_0x23521['XMkJG'])&&(_0x1eda95[_0x5e8b64(0x20b)]()||_0x248997[_0x5e8b64(0x20b)]())){const _0x47a75a=_0x1eda95[_0x5e8b64(0x20b)]()||_0x248997['trim']();logger[_0x5e8b64(0x22c)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x47a75a+'\x22'),_0x23521[_0x5e8b64(0x1ad)](_0x528fe5,_0x47a75a);}else _0x23521[_0x5e8b64(0x1ad)](_0x528fe5,_0x248997[_0x5e8b64(0x20b)]()||_0x23521[_0x5e8b64(0x263)]);}else logger[_0x5e8b64(0x22c)](_0x5e8b64(0x21b)+_0x1eda95[_0x5e8b64(0x20b)]()+'\x22'),_0x23521[_0x5e8b64(0x247)](_0x528fe5,_0x1eda95[_0x5e8b64(0x20b)]());});_0x69d896['on'](_0x23521[_0x29f980(0x1c1)],()=>{const _0x239065=_0x29f980;_0x23521[_0x239065(0x207)](_0x528fe5,_0x23521['hFHgP']);});});}static ['downloadLatestBinary']=async(_0x4aab04,_0x24ecd1)=>{const _0x42aefb=a72_0x5140ee,_0x24ea27={'Rlzdg':function(_0x3f4b10,_0x52d171){return _0x3f4b10(_0x52d171);},'KAPfo':_0x42aefb(0x262),'uFUhh':_0x42aefb(0x1a6),'Vhxgm':function(_0x1bd176,_0x1ccf53){return _0x1bd176(_0x1ccf53);},'jcrcl':_0x42aefb(0x1a5)};PerformanceTester[_0x42aefb(0x21f)](PerformanceEvents[_0x42aefb(0x1ac)]),logger[_0x42aefb(0x22c)](_0x42aefb(0x213)+_0x4aab04);try{const _0x497861=url[_0x42aefb(0x19f)](_0x4aab04),_0x556df4=path[_0x42aefb(0x1ae)](_0x24ecd1,'downloaded_file_'+process[_0x42aefb(0x1e7)]+'.zip'),_0x506a69=fs['createWriteStream'](_0x556df4);return new Promise((_0x1dc229,_0x23b3ce)=>{const _0xa94272=_0x42aefb,_0x3c29bf={'eIqZW':_0x24ea27[_0xa94272(0x1b5)],'ohTuD':function(_0x556f62,_0x418093){return _0x24ea27['Rlzdg'](_0x556f62,_0x418093);},'cLXDv':_0x24ea27[_0xa94272(0x21d)],'zGaFk':function(_0x202f43,_0xfc0c29){const _0xdec7b9=_0xa94272;return _0x24ea27[_0xdec7b9(0x205)](_0x202f43,_0xfc0c29);},'CXxtV':function(_0x3c7018,_0x13c188){const _0x580c86=_0xa94272;return _0x24ea27[_0x580c86(0x1fa)](_0x3c7018,_0x13c188);},'hbfKY':_0x24ea27[_0xa94272(0x241)]};https[_0xa94272(0x245)](_0x497861,function(_0x808eb){const _0x1306ce=_0xa94272,_0x50e21e={'wQWWY':function(_0x2b9f44,_0x10174d){return _0x3c29bf['zGaFk'](_0x2b9f44,_0x10174d);}},_0x296451=null;_0x808eb['pipe'](_0x506a69),_0x808eb['on'](_0x3c29bf[_0x1306ce(0x269)],function(_0x2b003f){const _0x3e3ff9=_0x1306ce;logger[_0x3e3ff9(0x1a5)](util[_0x3e3ff9(0x1f9)](_0x3c29bf['eIqZW'],_0x2b003f)),PerformanceTester[_0x3e3ff9(0x1d4)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x3e3ff9(0x1f9)](_0x2b003f)),_0x3c29bf['ohTuD'](_0x23b3ce,_0x2b003f);}),_0x506a69['on'](_0x3c29bf[_0x1306ce(0x269)],function(_0x39d06b){const _0x40e430=_0x1306ce;logger[_0x40e430(0x1a5)](util[_0x40e430(0x1f9)](_0x3c29bf[_0x40e430(0x1c8)],_0x39d06b)),PerformanceTester[_0x40e430(0x1d4)](PerformanceEvents[_0x40e430(0x1ac)],![],util[_0x40e430(0x1f9)](_0x39d06b)),_0x3c29bf[_0x40e430(0x1e5)](_0x23b3ce,_0x39d06b);}),CLIUtils[_0x1306ce(0x1bd)](_0x506a69,_0x296451,_0x556df4,_0x24ecd1,_0x5c79e7=>{const _0x55d5fb=_0x1306ce;PerformanceTester['end'](PerformanceEvents[_0x55d5fb(0x1ac)]),_0x3c29bf[_0x55d5fb(0x1de)](_0x1dc229,_0x5c79e7);},_0x286db5=>{const _0x1d4049=_0x1306ce;PerformanceTester[_0x1d4049(0x1d4)](PerformanceEvents[_0x1d4049(0x1ac)],![],util[_0x1d4049(0x1f9)](_0x286db5)),_0x50e21e[_0x1d4049(0x196)](_0x23b3ce,_0x286db5);});})['on'](_0x24ea27[_0xa94272(0x241)],function(_0x1920b7){const _0x535a99=_0xa94272;logger[_0x535a99(0x1a5)](_0x535a99(0x224)+util[_0x535a99(0x1f9)](_0x1920b7)),PerformanceTester['end'](PerformanceEvents[_0x535a99(0x1ac)],![],util['format'](_0x1920b7)),_0x24ea27['Rlzdg'](_0x23b3ce,_0x1920b7);});});}catch(_0x2b6751){PerformanceTester['end'](PerformanceEvents[_0x42aefb(0x1ac)],![],util[_0x42aefb(0x1f9)](_0x2b6751)),logger['debug'](_0x42aefb(0x23e)+util[_0x42aefb(0x1f9)](_0x2b6751));}};static['downloadFileStream'](_0x29c8e7,_0x46f937,_0x2864f1,_0x2b8453,_0x1358ff,_0x106294){const _0x4356a9=a72_0x5140ee,_0xb8b60a={'VgZwt':function(_0x57aa31,_0x1902c3){return _0x57aa31(_0x1902c3);},'yJZab':_0x4356a9(0x20d),'gctMn':function(_0x3d2e39,_0x523d37){return _0x3d2e39!==_0x523d37;},'QwyzR':'error','CajbS':'EXDEV','wMFUi':_0x4356a9(0x1d9),'tihvS':'end','QUvhW':function(_0x4d99ba,_0x1a8ab7){return _0x4d99ba(_0x1a8ab7);},'ZYqWt':_0x4356a9(0x1bb)};_0x29c8e7['on'](_0xb8b60a[_0x4356a9(0x1ca)],function(){const _0x1948a9=_0x4356a9,_0x5375fd={'ZzbzH':function(_0x23bba7,_0x14fd66){const _0x41dbe5=a72_0x4230;return _0xb8b60a[_0x41dbe5(0x21a)](_0x23bba7,_0x14fd66);},'usuay':_0xb8b60a[_0x1948a9(0x1ca)],'BwqOc':function(_0x568688,_0x22a817){const _0x50b348=_0x1948a9;return _0xb8b60a[_0x50b348(0x231)](_0x568688,_0x22a817);},'tenqL':function(_0x2f5cc2,_0x1211b6){return _0xb8b60a['VgZwt'](_0x2f5cc2,_0x1211b6);},'tXuOL':_0xb8b60a[_0x1948a9(0x1a0)],'dHTUk':function(_0x442c87,_0x39066e){const _0xc214bf=_0x1948a9;return _0xb8b60a[_0xc214bf(0x231)](_0x442c87,_0x39066e);},'WbQSm':_0xb8b60a[_0x1948a9(0x24e)],'pZkJK':function(_0x48dcd8,_0x1eb92d){const _0x477507=_0x1948a9;return _0xb8b60a[_0x477507(0x21a)](_0x48dcd8,_0x1eb92d);},'cJBWy':_0xb8b60a[_0x1948a9(0x229)],'pMpFv':_0xb8b60a[_0x1948a9(0x193)],'kxFFr':function(_0x5275ab,_0x758270){const _0x39f882=_0x1948a9;return _0xb8b60a[_0x39f882(0x21a)](_0x5275ab,_0x758270);},'hzlxd':function(_0x4fbac3,_0x5cf710){const _0x489cee=_0x1948a9;return _0xb8b60a[_0x489cee(0x1f8)](_0x4fbac3,_0x5cf710);},'SZoPR':_0xb8b60a['ZYqWt']},_0x3ce0a4={};_0x3ce0a4['lazyEntries']=!![],yauzl['open'](_0x2864f1,_0x3ce0a4,function(_0x2ef6e5,_0x2aaa06){const _0x2df780=_0x1948a9,_0x37c1a2={'IGsBM':function(_0x375aab,_0x3766cc){const _0xd7c81f=a72_0x4230;return _0x5375fd[_0xd7c81f(0x1d7)](_0x375aab,_0x3766cc);},'uIEbr':_0x5375fd[_0x2df780(0x1b8)],'tAkvr':function(_0x39ec47,_0x4b7cdd){const _0x4910c7=_0x2df780;return _0x5375fd[_0x4910c7(0x1ef)](_0x39ec47,_0x4b7cdd);}};if(_0x2ef6e5){_0x5375fd[_0x2df780(0x215)](_0x106294,_0x2ef6e5);return;}_0x2aaa06[_0x2df780(0x1cb)](),_0x2aaa06['on'](_0x5375fd[_0x2df780(0x256)],_0x174876=>{const _0x465f82=_0x2df780,_0x1ecd72={'nvtwp':function(_0x5588e3,_0x4fa685){const _0x162c2b=a72_0x4230;return _0x5375fd[_0x162c2b(0x1d7)](_0x5588e3,_0x4fa685);},'SCQzO':function(_0x36bb36,_0x53adac){return _0x5375fd['ZzbzH'](_0x36bb36,_0x53adac);},'CBQBG':_0x5375fd['usuay']};if(/\/$/[_0x465f82(0x236)](_0x174876[_0x465f82(0x1a3)])){_0x2aaa06[_0x465f82(0x1cb)]();return;}!_0x46f937&&(_0x46f937=_0x174876[_0x465f82(0x1a3)]);if(_0x5375fd[_0x465f82(0x25c)](_0x174876[_0x465f82(0x1a3)],_0x46f937))_0x2aaa06[_0x465f82(0x1cb)]();else{const _0xa0dc07=_0x174876[_0x465f82(0x1a3)],_0x178101=path[_0x465f82(0x1ae)](_0x2b8453,_0xa0dc07+_0x465f82(0x191)+process[_0x465f82(0x1e7)]);let _0x2bf70b;try{_0x2bf70b=fs['createWriteStream'](_0x178101);}catch(_0x106b9a){if(BINARY_BUSY_ERROR_CODES[_0x465f82(0x1ea)](_0x106b9a[_0x465f82(0x190)])){const _0x42c0e6=path[_0x465f82(0x1ae)](_0x2b8453,_0xa0dc07);if(fs['existsSync'](_0x42c0e6)){logger[_0x465f82(0x22d)](_0x465f82(0x24a)+_0xa0dc07),fs[_0x465f82(0x1ec)](_0x2864f1,_0x259616=>{const _0x4f4179=_0x465f82;_0x259616&&logger[_0x4f4179(0x22d)](_0x4f4179(0x237)+_0x2864f1);}),_0x5375fd[_0x465f82(0x1d3)](_0x1358ff,_0x42c0e6);return;}logger[_0x465f82(0x22d)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0xa0dc07);}_0x5375fd[_0x465f82(0x1d7)](_0x106294,_0x106b9a);return;}_0x2bf70b['on'](_0x5375fd[_0x465f82(0x242)],_0x539d91=>{const _0x4e8473=_0x465f82;if(BINARY_BUSY_ERROR_CODES[_0x4e8473(0x1ea)](_0x539d91[_0x4e8473(0x190)])){const _0x474261=path[_0x4e8473(0x1ae)](_0x2b8453,_0xa0dc07);_0x2bf70b['close'](),fs[_0x4e8473(0x24b)](_0x474261)?(logger[_0x4e8473(0x22d)](_0x4e8473(0x219)+_0x539d91['message']),_0x2aaa06[_0x4e8473(0x20d)](),fs[_0x4e8473(0x1ec)](_0x2864f1,_0x8cfb21=>{const _0xc9c406=_0x4e8473;_0x8cfb21&&logger[_0xc9c406(0x22d)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x2864f1);}),_0x1ecd72[_0x4e8473(0x1e1)](_0x1358ff,_0x474261)):(logger['warn']('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x539d91['message']),fs[_0x4e8473(0x1ec)](_0x178101,()=>{}),_0x1ecd72[_0x4e8473(0x261)](_0x106294,_0x539d91));}else fs[_0x4e8473(0x1ec)](_0x178101,()=>{}),_0x1ecd72[_0x4e8473(0x261)](_0x106294,_0x539d91);}),_0x2aaa06[_0x465f82(0x1d5)](_0x174876,function(_0x2e5155,_0xf5c6aa){const _0xa01e84=_0x465f82;if(_0x2e5155){fs['unlink'](_0x178101,()=>{}),_0x37c1a2[_0xa01e84(0x19b)](_0x106294,_0x2e5155);return;}_0xf5c6aa['on'](_0x37c1a2[_0xa01e84(0x20e)],function(){const _0x1a40e0=_0xa01e84;_0x2bf70b['end'](),_0x2bf70b['on'](_0x1ecd72[_0x1a40e0(0x1b0)],function(){const _0x343f96=_0x1a40e0;_0x2aaa06[_0x343f96(0x1cb)]();});}),_0xf5c6aa['pipe'](_0x2bf70b);});}}),_0x2aaa06['on'](_0x5375fd[_0x2df780(0x242)],_0x41b65e=>{const _0xbde39c=_0x2df780;_0x37c1a2[_0xbde39c(0x1a7)](_0x106294,_0x41b65e);}),_0x2aaa06[_0x2df780(0x243)](_0x5375fd['pMpFv'],()=>{const _0x491367=_0x2df780,_0x4f2f05={'HMZdb':function(_0x3e4ba9,_0x6bdb47){return _0x5375fd['dHTUk'](_0x3e4ba9,_0x6bdb47);},'uBRhQ':_0x5375fd['WbQSm'],'EdTNE':function(_0x1875ab,_0x2f5d7a){return _0x5375fd['pZkJK'](_0x1875ab,_0x2f5d7a);}};fs[_0x491367(0x1ec)](_0x2864f1,_0x3f2834=>{const _0x2463b1=_0x491367;_0x3f2834&&logger[_0x2463b1(0x22d)](_0x2463b1(0x237)+_0x2864f1);});const _0x5ab749=path['join'](_0x2b8453,_0x46f937+_0x491367(0x191)+process[_0x491367(0x1e7)]),_0x265d99=path[_0x491367(0x1ae)](_0x2b8453,_0x46f937);fs[_0x491367(0x214)](_0x5ab749,_0x5375fd[_0x491367(0x23f)],function(_0x2b8acb){const _0x523336=_0x491367,_0xd549cd={'ZSSsW':function(_0x1f390b,_0x286179){const _0x48d9b2=a72_0x4230;return _0x4f2f05[_0x48d9b2(0x20f)](_0x1f390b,_0x286179);},'SNhOJ':_0x4f2f05['uBRhQ'],'EjxQm':function(_0x2d31d4,_0x275dab){const _0x50480d=a72_0x4230;return _0x4f2f05[_0x50480d(0x1c0)](_0x2d31d4,_0x275dab);}};if(_0x2b8acb){_0x2aaa06[_0x523336(0x20d)](),fs['unlink'](_0x5ab749,()=>{}),_0x4f2f05[_0x523336(0x1c0)](_0x106294,_0x2b8acb);return;}fs['rename'](_0x5ab749,_0x265d99,function(_0x211c79){const _0x55048c=_0x523336;if(_0x211c79){if(_0xd549cd['ZSSsW'](_0x211c79['code'],_0xd549cd[_0x55048c(0x1fd)])){_0x2aaa06['close'](),fs[_0x55048c(0x1ec)](_0x5ab749,()=>{}),_0xd549cd[_0x55048c(0x218)](_0x106294,_0x211c79);return;}logger[_0x55048c(0x22d)](_0x55048c(0x1c6)+_0x211c79['message']);try{fs['copyFileSync'](_0x5ab749,_0x265d99);}catch(_0x210a82){_0x2aaa06['close'](),fs[_0x55048c(0x1ec)](_0x5ab749,()=>{}),_0xd549cd['EjxQm'](_0x106294,_0x210a82);return;}fs[_0x55048c(0x1ec)](_0x5ab749,_0x427415=>{const _0x543994=_0x55048c;_0x427415&&logger[_0x543994(0x22d)]('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x427415[_0x543994(0x1d0)]);});}_0x2aaa06[_0x55048c(0x20d)](),_0xd549cd['EjxQm'](_0x1358ff,_0x265d99);});});});});});}static[a72_0x5140ee(0x216)](){const _0x231f94=a72_0x5140ee;if(process[_0x231f94(0x238)][_0x231f94(0x21e)])return JSON[_0x231f94(0x19f)](process[_0x231f94(0x238)][_0x231f94(0x21e)]);return this['testFrameworkDetail'];}static['getAutomationFrameworkDetail'](){const _0x4bc65a=a72_0x5140ee;if(process[_0x4bc65a(0x238)][_0x4bc65a(0x1a8)])return JSON[_0x4bc65a(0x19f)](process[_0x4bc65a(0x238)][_0x4bc65a(0x1a8)]);return this[_0x4bc65a(0x1ed)];}static[a72_0x5140ee(0x201)](_0x43f45c,_0x3372c6){const _0x357ed4=a72_0x5140ee,_0x4a8b7b={'gvYnw':_0x357ed4(0x250),'wOpzL':function(_0x10dc5d,_0x5d7f80){return _0x10dc5d(_0x5d7f80);},'SEcuX':function(_0x183c62,_0x167641){return _0x183c62||_0x167641;},'fPaZj':function(_0x501cc0,_0xc62a68){return _0x501cc0(_0xc62a68);}},_0x4a2c6e=_0x4a8b7b[_0x357ed4(0x208)][_0x357ed4(0x1fe)]('|');let _0x17b374=0x0;while(!![]){switch(_0x4a2c6e[_0x17b374++]){case'0':process[_0x357ed4(0x238)][_0x357ed4(0x1a8)]=JSON[_0x357ed4(0x23a)](this[_0x357ed4(0x1ed)]);continue;case'1':process[_0x357ed4(0x238)][_0x357ed4(0x21e)]=JSON[_0x357ed4(0x23a)](this[_0x357ed4(0x18f)]);continue;case'2':this[_0x357ed4(0x18f)]={'name':_0x43f45c,'version':{[_0x43f45c]:_0x4a8b7b[_0x357ed4(0x252)](getFrameworkVersion,_0x43f45c)}};continue;case'3':_0x4a8b7b[_0x357ed4(0x1ce)](!_0x43f45c,!_0x3372c6)&&logger[_0x357ed4(0x22c)](_0x357ed4(0x1dc)+_0x43f45c+_0x357ed4(0x249)+_0x3372c6);continue;case'4':this['automationFrameworkDetail']={'name':_0x3372c6,'version':_0x4a8b7b[_0x357ed4(0x1b2)](getFrameworkVersion,_0x3372c6)};continue;}break;}}static[a72_0x5140ee(0x1c4)](_0x92deb8,_0x23a504){return _0x92deb8+':'+_0x23a504;}static['getCurrentInstanceName'](){const _0x503864=a72_0x5140ee;return process[_0x503864(0x1e7)]+':'+threadId;}static[a72_0x5140ee(0x230)](_0x4178cf){const _0x2ebb2d=a72_0x5140ee;if(_0x4178cf[_0x2ebb2d(0x24c)]&&_0x4178cf[_0x2ebb2d(0x24c)][_0x2ebb2d(0x1f0)])return!![];return![];}static[a72_0x5140ee(0x225)](_0x26458c){const _0x229f87=a72_0x5140ee;if(_0x26458c[_0x229f87(0x24c)]&&_0x26458c['testContextOptions'][_0x229f87(0x232)])return!![];return![];}static['matchHookRegex'](_0x3af465){const _0x1d8bd0=a72_0x5140ee,_0x549364=new RegExp(TestFrameworkConstants[_0x1d8bd0(0x254)]);return _0x549364[_0x1d8bd0(0x236)](_0x3af465);}static[a72_0x5140ee(0x19c)](_0x15bf1c,_0x3b6c3c){const _0x860cf4=a72_0x5140ee,_0x2b1f82={};_0x2b1f82[_0x860cf4(0x18e)]=function(_0x114d0a,_0x39093e){return _0x114d0a!==_0x39093e;},_0x2b1f82[_0x860cf4(0x267)]=function(_0x283b28,_0x5bad21){return _0x283b28===_0x5bad21;},_0x2b1f82[_0x860cf4(0x1d6)]=_0x860cf4(0x19d);const _0x1e2326=_0x2b1f82;for(const [_0x1b9d95,_0x7d7b9d]of Object[_0x860cf4(0x235)](_0x3b6c3c)){if(_0x1e2326[_0x860cf4(0x18e)](_0x7d7b9d,null)&&_0x1e2326[_0x860cf4(0x267)](typeof _0x7d7b9d,_0x1e2326['MlLlT'])&&!Array['isArray'](_0x7d7b9d))_0x15bf1c[_0x1b9d95]=this[_0x860cf4(0x19c)](_0x15bf1c[_0x1b9d95]||{},_0x7d7b9d);else Array['isArray'](_0x7d7b9d)?_0x15bf1c[_0x1b9d95]=(_0x15bf1c[_0x1b9d95]||[])[_0x860cf4(0x1f2)](_0x7d7b9d):_0x15bf1c[_0x1b9d95]=_0x7d7b9d;}return _0x15bf1c;}}module['exports']=CLIUtils;
|
|
1
|
+
function a72_0x3c8a(_0x30b348,_0x2c3baa){const _0x2eeb55=a72_0x2eeb();return a72_0x3c8a=function(_0x3c8af2,_0x1520f2){_0x3c8af2=_0x3c8af2-0x19a;let _0x31aadc=_0x2eeb55[_0x3c8af2];return _0x31aadc;},a72_0x3c8a(_0x30b348,_0x2c3baa);}function a72_0x2eeb(){const _0x27b74d=['start','SDK_CLI_CHECK_UPDATE','child_process','isDevelopmentEnv','entries','node','ptUvB','../utils/apiUtilityMethods.js','filePath','worker_threads','BJlAC','nkTJY','mergeObject','kLnTD','AViWp','ObSox','util','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','knxqX','BROWSERSTACK_CLI_ENV','binary-','DtMCA',',\x20automationFramework=','YVMiA','EWytZ','UQtgR','UKvbb','./state/automationFrameworkState.js','81012LvYySB','0755','lfqzr','fileName','Downloading\x20SDK\x20binary\x20from:\x20','code','info','trim','url','kVWMF','shouldSkipSessionName','IUPfw','NHuow','map','BSftG','JWjya','../../helpers/performance/constants','RzMxE','openSync','.tmp.','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','./state/hookState.js','debug','wbZqP','requestToUpdateCLI','2651Shhowr','development','format','entry','ijIcX','SDK_CLI_BIN_PATH','mtime','../../../package.json','split','QwbUF','test','HCHSI','HOOK_REGEX','downloadLatestBinary','./framework/constants/testFrameworkConstants.js','kqPli','message','EXDEV','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','isFile','xcZCY','Setting\x20required\x20permissions\x20to\x20','runShellCommand','env','setFrameworkDetail','getCliDir','getCLIParamsForDevEnv','arch','VgQqi','sClmb','getHookRegistryKey','PyYzu','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','automationFrameworkDetail','BROWSERSTACK_BINARY_URL','YIKTL','CLI\x20version\x20found\x20despite\x20error:\x20\x22','7azYdSY','FQfOJ','getSdkLanguage','homedir','skipSessionName','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','../utils/constants','gUVmE','path','closeSync','qDwdE','BROWSERSTACK_FILES_DIR','534195KujkUJ','KnfXI','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','.sock','dQzYD','Development\x20Cli\x20Path:\x20','jvGxV','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','hLDUW','imISI','matchHookRegex','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','5667632yBMwJL','50YtDqyl','error','readEntry','get','Resolving\x20with\x20stdout:\x20\x22','skFDK','version','3393872RNaYdm','LHaAM','\x20version','data','kTrYh','DkPiF','Error\x20while\x20reading\x20CLI\x20path:\x20','.zip','PBRRn','follow-redirects','FFhpW','getExistingCliPath','124038XgirSa','nKzKh','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','pOZjD','yblzO','rQOCe','checkAndUpdateCli','warn','pid','copyFileSync','.browserstack','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','urvBl','cwd','getSdkVersion','50445XTgaSS','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','Resolved\x20binary\x20path:\x20','fjDGd','platform','tUZPq','isArray','isDirectory','exports','96OdLwgN','VAnXX','unlink','testContextOptions','Folder\x20','getAutomationFrameworkDetail','fgyfs','chmod','PrFCW','join','../../helpers/classLogger.js','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','NrZMw','./state/testFrameworkState.js','GET','length','eZhte','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','bXgWR','gVNTA','1|4|2|3|0','getTestFrameworkDetail','statSync','pipe','1485408PCJEJu','uBPFI','abNcs','stringify','5ZyxyPq','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','byiDT','TovEe','fmbqU','HQnoe','getCurrentInstanceName','omnYa','parse','response\x20','existsSync','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','close','yauzl','PnoPk','includes','object','SDK_CLI_DOWNLOAD','setupCliPath','testFrameworkDetail','UDXmD','cli_version','listen','isBinaryBusy','sywZv','getWritableDir','downloadFileStream','uojwh','../../helpers/test-observability/utils.js','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','Failed\x20to\x20delete\x20zip\x20file:\x20','CLIUtils','end','KPIwM','zVXmC','INCGz','sOneV'];a72_0x2eeb=function(){return _0x27b74d;};return a72_0x2eeb();}const a72_0x5cb7c1=a72_0x3c8a;(function(_0x43fadf,_0x14361f){const _0x11b416=a72_0x3c8a,_0x591bb2=_0x43fadf();while(!![]){try{const _0x211a0b=-parseInt(_0x11b416(0x22e))/0x1+parseInt(_0x11b416(0x246))/0x2*(-parseInt(_0x11b416(0x23d))/0x3)+parseInt(_0x11b416(0x222))/0x4*(-parseInt(_0x11b416(0x262))/0x5)+parseInt(_0x11b416(0x25e))/0x6+-parseInt(_0x11b416(0x202))/0x7*(-parseInt(_0x11b416(0x21a))/0x8)+-parseInt(_0x11b416(0x20e))/0x9*(parseInt(_0x11b416(0x21b))/0xa)+-parseInt(_0x11b416(0x1dd))/0xb*(-parseInt(_0x11b416(0x1c4))/0xc);if(_0x211a0b===_0x14361f)break;else _0x591bb2['push'](_0x591bb2['shift']());}catch(_0xff53b2){_0x591bb2['push'](_0x591bb2['shift']());}}}(a72_0x2eeb,0x7baf4));const fs=require('fs'),os=require('os'),url=require(a72_0x5cb7c1(0x1cc)),path=require(a72_0x5cb7c1(0x20a)),{exec}=require(a72_0x5cb7c1(0x1aa)),{https}=require(a72_0x5cb7c1(0x22b)),yauzl=require(a72_0x5cb7c1(0x26f)),util=require(a72_0x5cb7c1(0x1b8)),{getFrameworkVersion}=require(a72_0x5cb7c1(0x19f)),{threadId}=require(a72_0x5cb7c1(0x1b1)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a72_0x5cb7c1(0x1d4)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require('../../helpers/helper'),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a72_0x5cb7c1(0x208)),{createClassLogger}=require(a72_0x5cb7c1(0x250)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a72_0x5cb7c1(0x1d9)),TestFrameworkState=require(a72_0x5cb7c1(0x253)),AutomationFrameworkState=require(a72_0x5cb7c1(0x1c3)),TestFrameworkConstants=require(a72_0x5cb7c1(0x1eb)),logger=createClassLogger(a72_0x5cb7c1(0x1a2)),{getBStackAPIUrl}=require(a72_0x5cb7c1(0x1af));class CLIUtils{[a72_0x5cb7c1(0x1fe)]={};['testFrameworkDetail']={};static[a72_0x5cb7c1(0x1ab)](){const _0x5dfd9a=a72_0x5cb7c1,_0x258ffb={};_0x258ffb[_0x5dfd9a(0x1bd)]=function(_0x2a9203,_0x4b90cb){return _0x2a9203===_0x4b90cb;},_0x258ffb[_0x5dfd9a(0x1c2)]=_0x5dfd9a(0x1de);const _0x22890b=_0x258ffb;return _0x22890b[_0x5dfd9a(0x1bd)](process[_0x5dfd9a(0x1f4)][_0x5dfd9a(0x1bb)],_0x22890b[_0x5dfd9a(0x1c2)]);}static[a72_0x5cb7c1(0x1f7)](){const _0x403218=a72_0x5cb7c1,_0x220f12={};return _0x220f12['id']=process[_0x403218(0x1f4)]['BROWSERSTACK_CLI_ENV'],_0x220f12[_0x403218(0x278)]='unix:/tmp/sdk-platform-'+process[_0x403218(0x1f4)][_0x403218(0x1bb)]+_0x403218(0x211),_0x220f12;}static[a72_0x5cb7c1(0x23c)](){const _0x43e58d=a72_0x5cb7c1,_0x3c5ac3={'fjDGd':function(_0xe10a8c,_0x50ac71){return _0xe10a8c(_0x50ac71);},'eZhte':_0x43e58d(0x1e4)};return _0x3c5ac3[_0x43e58d(0x240)](require,_0x3c5ac3[_0x43e58d(0x256)])[_0x43e58d(0x221)];}static[a72_0x5cb7c1(0x204)](){const _0x488a32=a72_0x5cb7c1,_0x4d8404={};_0x4d8404[_0x488a32(0x1bf)]=_0x488a32(0x1ad);const _0x81a449=_0x4d8404;return _0x81a449['YVMiA'];}static async[a72_0x5cb7c1(0x274)](_0x167f21){const _0x8152a8=a72_0x5cb7c1,_0x5875b2={'hwswx':'Configuring\x20Cli\x20path.','bXgWR':function(_0x381ee2,_0x1425d2){return _0x381ee2(_0x1425d2);},'DkPiF':_0x8152a8(0x239)};logger[_0x8152a8(0x1da)](_0x5875b2['hwswx']);const _0x47ed04=process[_0x8152a8(0x1f4)][_0x8152a8(0x1e2)];if(!_0x5875b2[_0x8152a8(0x258)](isNullOrEmpty,_0x47ed04))return logger[_0x8152a8(0x1da)](_0x8152a8(0x213)+_0x47ed04),_0x47ed04;try{const _0x4f2fa0=this[_0x8152a8(0x1f6)]();if(_0x5875b2[_0x8152a8(0x258)](isNullOrEmpty,_0x4f2fa0))throw new Error(_0x5875b2[_0x8152a8(0x227)]);const _0x18d08e=this['getExistingCliPath'](_0x4f2fa0),_0x4aca0b=await this[_0x8152a8(0x234)](_0x18d08e,_0x4f2fa0,_0x167f21);return logger[_0x8152a8(0x1da)](_0x8152a8(0x23f)+_0x4aca0b),_0x4aca0b;}catch(_0x38b69c){logger['debug'](_0x8152a8(0x1b9)+util['format'](_0x38b69c));}return null;}static async['checkAndUpdateCli'](_0x26a526,_0x2c6013,_0x30d1be){const _0x74c798=a72_0x5cb7c1,_0x21d83e={'PIPnN':function(_0x243b36){return _0x243b36();},'kLnTD':function(_0x47f95c,_0x217f0b){return _0x47f95c(_0x217f0b);},'kTrYh':function(_0x2ef011,_0x3baf2e,_0x54c394){return _0x2ef011(_0x3baf2e,_0x54c394);},'EWytZ':_0x74c798(0x225),'CwSAX':_0x74c798(0x1cc),'TovEe':function(_0x10085b,_0x5657d2){return _0x10085b(_0x5657d2);}};PerformanceTester[_0x74c798(0x1a8)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),logger[_0x74c798(0x1ca)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x26a526);const _0x3859a1=_0x21d83e['PIPnN'](getHostInfo),_0xd986ba={'sdk_version':CLIUtils[_0x74c798(0x23c)](),'os':_0x3859a1[_0x74c798(0x241)],'os_arch':_0x3859a1[_0x74c798(0x1f8)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x21d83e[_0x74c798(0x1b5)](isNullOrEmpty,_0x26a526)&&(_0xd986ba[_0x74c798(0x277)]=await this[_0x74c798(0x1f3)](_0x26a526+_0x74c798(0x224)));const _0x16f3e6=await this[_0x74c798(0x1dc)](_0xd986ba,_0x30d1be);process[_0x74c798(0x1f4)][_0x74c798(0x1ff)]&&(logger[_0x74c798(0x1ca)](_0x74c798(0x26d)+process['env']['BROWSERSTACK_BINARY_URL']),_0x16f3e6[_0x74c798(0x225)][_0x74c798(0x1cc)]=process[_0x74c798(0x1f4)]['BROWSERSTACK_BINARY_URL']);if(_0x21d83e['kTrYh'](nestedKeyValue,_0x16f3e6,[_0x21d83e[_0x74c798(0x1c0)],_0x21d83e['CwSAX']])){logger[_0x74c798(0x1da)](_0x74c798(0x1fd)+_0xd986ba[_0x74c798(0x277)]);if(!_0x21d83e[_0x74c798(0x265)](isNullOrEmpty,_0x26a526)&&this[_0x74c798(0x19a)](_0x26a526))return logger[_0x74c798(0x235)](_0x74c798(0x1ef)+_0x26a526),PerformanceTester['end'](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x26a526;const _0x53d989=await this[_0x74c798(0x1ea)](_0x21d83e[_0x74c798(0x226)](nestedKeyValue,_0x16f3e6,[_0x21d83e[_0x74c798(0x1c0)],_0x21d83e['CwSAX']]),_0x2c6013);return PerformanceTester[_0x74c798(0x1a3)](PerformanceEvents[_0x74c798(0x1a9)]),_0x53d989;}return PerformanceTester[_0x74c798(0x1a3)](PerformanceEvents[_0x74c798(0x1a9)]),_0x26a526;}static[a72_0x5cb7c1(0x1f6)](){const _0x38a381=a72_0x5cb7c1,_0x340e31={'oNtXr':function(_0x459f5f,_0xe8e62e){return _0x459f5f(_0xe8e62e);},'wbZqP':_0x38a381(0x239),'skFDK':'cli','FFhpW':function(_0x29c177,_0xfdbd03){return _0x29c177(_0xfdbd03);}},_0x5d228e=this[_0x38a381(0x19c)]();try{if(_0x340e31['oNtXr'](isNullOrEmpty,_0x5d228e))throw new Error(_0x340e31[_0x38a381(0x1db)]);const _0x285a2f=path['join'](_0x5d228e,_0x340e31[_0x38a381(0x220)]);return!fs['existsSync'](_0x285a2f)&&_0x340e31[_0x38a381(0x22c)](createDir,_0x285a2f),_0x285a2f;}catch(_0x271dca){logger['debug']('Error\x20in\x20getting\x20writable\x20directory,\x20writableDir='+util[_0x38a381(0x1df)](_0x271dca));}}static[a72_0x5cb7c1(0x19c)](){const _0x2545c5=a72_0x5cb7c1,_0x5a9cda={'knxqX':_0x2545c5(0x238),'sywZv':function(_0x2c7394,_0x4d86d2){return _0x2c7394(_0x4d86d2);},'nKzKh':function(_0x17c4ae,_0x1724dc){return _0x17c4ae(_0x1724dc);},'INCGz':function(_0x495881,_0x547047){return _0x495881(_0x547047);}},_0x31cbab=[process[_0x2545c5(0x1f4)][_0x2545c5(0x20d)],path[_0x2545c5(0x24f)](os[_0x2545c5(0x205)](),_0x5a9cda[_0x2545c5(0x1ba)]),path[_0x2545c5(0x24f)](os['tmpdir'](),_0x5a9cda[_0x2545c5(0x1ba)])];for(const _0x1f95ce of _0x31cbab){if(_0x5a9cda[_0x2545c5(0x19b)](isNullOrEmpty,_0x1f95ce))continue;try{if(fs[_0x2545c5(0x26c)](_0x1f95ce)){logger[_0x2545c5(0x1da)](_0x2545c5(0x24a)+_0x1f95ce+'\x20already\x20exists');if(!_0x5a9cda[_0x2545c5(0x22f)](isModifiable,_0x1f95ce)){logger['debug'](_0x2545c5(0x1f2)+_0x1f95ce);const _0x4ff926=_0x5a9cda[_0x2545c5(0x1a6)](setReadWriteExecuteAccess,_0x1f95ce);if(!_0x5a9cda[_0x2545c5(0x1a6)](isTrue,_0x4ff926)){logger[_0x2545c5(0x235)](_0x2545c5(0x1d8)+_0x1f95ce);continue;}}}else{logger[_0x2545c5(0x1da)]('Folder\x20does\x20not\x20exist:\x20'+_0x1f95ce),_0x5a9cda[_0x2545c5(0x19b)](createDir,_0x1f95ce),logger['debug'](_0x2545c5(0x1f2)+_0x1f95ce);const _0x3f74b7=_0x5a9cda[_0x2545c5(0x19b)](setReadWriteExecuteAccess,_0x1f95ce);!_0x5a9cda[_0x2545c5(0x22f)](isTrue,_0x3f74b7)&&logger['warn']('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x1f95ce);}return _0x1f95ce;}catch(_0x5d9955){logger['error']('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x2545c5(0x1df)](_0x5d9955));}}return null;}static[a72_0x5cb7c1(0x22d)](_0x31f11a){const _0x4405e6=a72_0x5cb7c1,_0x51626d={};_0x51626d[_0x4405e6(0x266)]=function(_0x176b12,_0x274c25){return _0x176b12>_0x274c25;};const _0x56528b=_0x51626d;try{if(!fs[_0x4405e6(0x26c)](_0x31f11a)||!fs['statSync'](_0x31f11a)[_0x4405e6(0x244)]())return'';const _0x305a54=fs['readdirSync'](_0x31f11a)[_0x4405e6(0x1d1)](_0x1de6c7=>path[_0x4405e6(0x24f)](_0x31f11a,_0x1de6c7))['filter'](_0x5b2da7=>fs[_0x4405e6(0x25c)](_0x5b2da7)[_0x4405e6(0x1f0)]()&&path['basename'](_0x5b2da7)['startsWith'](_0x4405e6(0x1bc)));if(_0x56528b[_0x4405e6(0x266)](_0x305a54[_0x4405e6(0x255)],0x0)){const _0x55b227=_0x305a54['map'](_0x11fde6=>({'filePath':_0x11fde6,'mtime':fs['statSync'](_0x11fde6)['mtime']}))['reduce']((_0x361676,_0x374927)=>{const _0x352ebb=_0x4405e6;if(!_0x361676||!_0x361676['mtime'])return _0x374927;if(_0x56528b['fmbqU'](_0x374927[_0x352ebb(0x1e3)],_0x361676[_0x352ebb(0x1e3)]))return _0x374927;return _0x361676;},{});return _0x55b227?_0x55b227[_0x4405e6(0x1b0)]:'';}return'';}catch(_0x256258){return logger[_0x4405e6(0x21c)](_0x4405e6(0x228)+util['format'](_0x256258)),'';}}static [a72_0x5cb7c1(0x1dc)]=async(_0x4c9934,_0x4028e7)=>{const _0x57bd83=a72_0x5cb7c1,_0x12eded={'qMcsM':function(_0x15eb01,_0x45c5bd,_0x3fc705,_0x38f27a,_0x1aa30c){return _0x15eb01(_0x45c5bd,_0x3fc705,_0x38f27a,_0x1aa30c);},'jvGxV':_0x57bd83(0x254)},_0x371d14={};_0x371d14['qs']=_0x4c9934;const _0x3eb6da=await _0x12eded['qMcsM'](nodeRequest,_0x12eded[_0x57bd83(0x214)],UPDATED_CLI_ENDPOINT,_0x371d14,_0x4028e7);return logger[_0x57bd83(0x1da)](_0x57bd83(0x26b)+JSON[_0x57bd83(0x261)](_0x3eb6da)),_0x3eb6da;};static[a72_0x5cb7c1(0x19a)](_0x34cba9){const _0x4a9d46=a72_0x5cb7c1;try{const _0x411e42=fs[_0x4a9d46(0x1d6)](_0x34cba9,'r+');return fs[_0x4a9d46(0x20b)](_0x411e42),![];}catch(_0x4f3a83){if(BINARY_BUSY_ERROR_CODES[_0x4a9d46(0x271)](_0x4f3a83[_0x4a9d46(0x1c9)]))return logger['debug']('Binary\x20is\x20busy:\x20'+_0x34cba9),!![];return logger[_0x4a9d46(0x1da)](_0x4a9d46(0x263)+_0x4f3a83['message']),![];}}static[a72_0x5cb7c1(0x1f3)](_0x1475e0,_0xa1e13d=''){const _0x1665e0=a72_0x5cb7c1,_0xccde73={'xxxKW':_0x1665e0(0x221),'UQtgR':function(_0x4d0257,_0x30f83f){return _0x4d0257(_0x30f83f);},'CIoTQ':'SHELL_EXECUTE_ERROR','urvBl':function(_0x49c2d4,_0x4203b8,_0x49440e,_0x2427bd){return _0x49c2d4(_0x4203b8,_0x49440e,_0x2427bd);},'uojwh':_0x1665e0(0x21c)};return new Promise((_0x1d469f,_0x489a47)=>{const _0x20540f=_0x1665e0,_0x533330={'IUPfw':_0xccde73['xxxKW'],'sOneV':function(_0x1d1111,_0x1a3732){const _0xc1bea4=a72_0x3c8a;return _0xccde73[_0xc1bea4(0x1c1)](_0x1d1111,_0x1a3732);},'PBRRn':_0xccde73['CIoTQ']},_0x2aceee={};_0x2aceee[_0x20540f(0x23b)]=_0xa1e13d,_0x2aceee['timeout']=0x1388;const _0x5e299c=_0xccde73[_0x20540f(0x23a)](exec,_0x1475e0,_0x2aceee,(_0x59399a,_0x1d785c,_0x1df6c5)=>{const _0x5d1e5c=_0x20540f;if(_0x59399a){if(_0x1475e0[_0x5d1e5c(0x271)](_0x533330[_0x5d1e5c(0x1cf)])&&(_0x1d785c[_0x5d1e5c(0x1cb)]()||_0x1df6c5[_0x5d1e5c(0x1cb)]())){const _0x3cf29=_0x1d785c['trim']()||_0x1df6c5[_0x5d1e5c(0x1cb)]();logger[_0x5d1e5c(0x1da)](_0x5d1e5c(0x201)+_0x3cf29+'\x22'),_0x533330[_0x5d1e5c(0x1a7)](_0x1d469f,_0x3cf29);}else _0x533330[_0x5d1e5c(0x1a7)](_0x1d469f,_0x1df6c5['trim']()||_0x533330[_0x5d1e5c(0x22a)]);}else logger['debug'](_0x5d1e5c(0x21f)+_0x1d785c[_0x5d1e5c(0x1cb)]()+'\x22'),_0x533330[_0x5d1e5c(0x1a7)](_0x1d469f,_0x1d785c[_0x5d1e5c(0x1cb)]());});_0x5e299c['on'](_0xccde73[_0x20540f(0x19e)],()=>{const _0x5bfdb7=_0x20540f;_0x533330[_0x5bfdb7(0x1a7)](_0x1d469f,_0x533330['PBRRn']);});});}static [a72_0x5cb7c1(0x1ea)]=async(_0x97ce6f,_0x36af1e)=>{const _0x309918=a72_0x5cb7c1,_0x95e8c6={'pOZjD':_0x309918(0x21c),'BJlAC':function(_0x3429f3,_0x35f522){return _0x3429f3(_0x35f522);},'tUZPq':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','abNcs':function(_0x1deacd,_0x177b1e){return _0x1deacd(_0x177b1e);},'KnfXI':_0x309918(0x251)};PerformanceTester[_0x309918(0x1a8)](PerformanceEvents[_0x309918(0x273)]),logger[_0x309918(0x1da)](_0x309918(0x1c8)+_0x97ce6f);try{const _0x3481a2=url['parse'](_0x97ce6f),_0x2f31e0=path['join'](_0x36af1e,'downloaded_file_'+process['pid']+_0x309918(0x229)),_0x4dbfca=fs['createWriteStream'](_0x2f31e0);return new Promise((_0x2bcfd3,_0x36734a)=>{const _0x38820a=_0x309918,_0x4c8bf9={'RzMxE':_0x95e8c6[_0x38820a(0x242)],'ptUvB':function(_0x1029f1,_0x1fd5fe){const _0x3a91db=_0x38820a;return _0x95e8c6[_0x3a91db(0x260)](_0x1029f1,_0x1fd5fe);},'AViWp':_0x95e8c6[_0x38820a(0x20f)]};https[_0x38820a(0x21e)](_0x3481a2,function(_0x1550e2){const _0x47e118=_0x38820a,_0x2b008d=null;_0x1550e2[_0x47e118(0x25d)](_0x4dbfca),_0x1550e2['on'](_0x95e8c6[_0x47e118(0x231)],function(_0x3329e2){const _0x4a33a9=_0x47e118;logger[_0x4a33a9(0x21c)](util[_0x4a33a9(0x1df)](_0x4c8bf9[_0x4a33a9(0x1d5)],_0x3329e2)),PerformanceTester[_0x4a33a9(0x1a3)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x4a33a9(0x1df)](_0x3329e2)),_0x4c8bf9['ptUvB'](_0x36734a,_0x3329e2);}),_0x4dbfca['on'](_0x95e8c6[_0x47e118(0x231)],function(_0x27a50c){const _0x1034dc=_0x47e118;logger[_0x1034dc(0x21c)](util[_0x1034dc(0x1df)](_0x4c8bf9[_0x1034dc(0x1b6)],_0x27a50c)),PerformanceTester[_0x1034dc(0x1a3)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x1034dc(0x1df)](_0x27a50c)),_0x4c8bf9['ptUvB'](_0x36734a,_0x27a50c);}),CLIUtils[_0x47e118(0x19d)](_0x4dbfca,_0x2b008d,_0x2f31e0,_0x36af1e,_0x493a5e=>{const _0x3fdb8c=_0x47e118;PerformanceTester[_0x3fdb8c(0x1a3)](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x4c8bf9[_0x3fdb8c(0x1ae)](_0x2bcfd3,_0x493a5e);},_0x53565a=>{const _0x2ec8f7=_0x47e118;PerformanceTester[_0x2ec8f7(0x1a3)](PerformanceEvents[_0x2ec8f7(0x273)],![],util[_0x2ec8f7(0x1df)](_0x53565a)),_0x4c8bf9[_0x2ec8f7(0x1ae)](_0x36734a,_0x53565a);});})['on'](_0x95e8c6[_0x38820a(0x231)],function(_0x494175){const _0x7b3420=_0x38820a;logger[_0x7b3420(0x21c)](_0x7b3420(0x210)+util[_0x7b3420(0x1df)](_0x494175)),PerformanceTester[_0x7b3420(0x1a3)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x7b3420(0x1df)](_0x494175)),_0x95e8c6[_0x7b3420(0x1b2)](_0x36734a,_0x494175);});});}catch(_0x167c1a){PerformanceTester[_0x309918(0x1a3)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x309918(0x1df)](_0x167c1a)),logger[_0x309918(0x1da)](_0x309918(0x257)+util[_0x309918(0x1df)](_0x167c1a));}};static[a72_0x5cb7c1(0x19d)](_0x19f4d3,_0x6e2cf4,_0x14ff7d,_0x1eafa7,_0x2bbc2c,_0x26333f){const _0x3328c1=a72_0x5cb7c1,_0x172dd5={'QerAk':function(_0x50ac6f,_0x1317e2){return _0x50ac6f(_0x1317e2);},'yblzO':function(_0x38f904,_0x54e912){return _0x38f904(_0x54e912);},'piddv':function(_0x528926,_0x1c39e9){return _0x528926(_0x1c39e9);},'uBPFI':'close','PnoPk':_0x3328c1(0x1a3),'HCHSI':function(_0x242478,_0x4d67e2){return _0x242478!==_0x4d67e2;},'KPIwM':function(_0x3c508f,_0x4bdb13){return _0x3c508f(_0x4bdb13);},'zVXmC':'error','XGrmq':function(_0x168edd,_0x26ea96){return _0x168edd(_0x26ea96);},'byiDT':function(_0x1036eb,_0x20b164){return _0x1036eb!==_0x20b164;},'HQnoe':_0x3328c1(0x1ee),'xcZCY':function(_0x44252f,_0x1d09ad){return _0x44252f(_0x1d09ad);},'kVWMF':_0x3328c1(0x1e0),'BSftG':_0x3328c1(0x1c5)};_0x19f4d3['on'](_0x172dd5[_0x3328c1(0x25f)],function(){const _0x186dec=_0x3328c1,_0x3e4fbd={};_0x3e4fbd['lfqzr']=_0x172dd5[_0x186dec(0x1d2)];const _0x48c181=_0x3e4fbd,_0x44e842={};_0x44e842['lazyEntries']=!![],yauzl['open'](_0x14ff7d,_0x44e842,function(_0x5a57e8,_0x159bec){const _0x383d91=_0x186dec,_0x2d3319={'wMOrq':function(_0x1d6d76,_0x548d06){return _0x172dd5['QerAk'](_0x1d6d76,_0x548d06);},'sClmb':function(_0x33a88b,_0x5e1bfb){const _0x205522=a72_0x3c8a;return _0x172dd5[_0x205522(0x232)](_0x33a88b,_0x5e1bfb);},'VAnXX':function(_0x1641da,_0x1e0f58){return _0x172dd5['piddv'](_0x1641da,_0x1e0f58);},'fgyfs':_0x172dd5[_0x383d91(0x25f)],'gVNTA':_0x172dd5[_0x383d91(0x270)],'ijIcX':function(_0x23f0d9,_0x4ab606){const _0x2b2b34=_0x383d91;return _0x172dd5[_0x2b2b34(0x1e8)](_0x23f0d9,_0x4ab606);},'nkTJY':function(_0x40e09c,_0x403d0c){const _0x1841e3=_0x383d91;return _0x172dd5[_0x1841e3(0x1a4)](_0x40e09c,_0x403d0c);},'kqPli':_0x172dd5['zVXmC'],'VgQqi':function(_0x207392,_0x446e85){return _0x172dd5['XGrmq'](_0x207392,_0x446e85);},'imISI':function(_0x148489,_0x1bc510){const _0x2aa5f8=_0x383d91;return _0x172dd5[_0x2aa5f8(0x264)](_0x148489,_0x1bc510);},'ObSox':_0x172dd5[_0x383d91(0x267)],'QwbUF':function(_0x445b6f,_0x4517f6){const _0x18a73c=_0x383d91;return _0x172dd5[_0x18a73c(0x232)](_0x445b6f,_0x4517f6);},'dQzYD':function(_0x2b019d,_0x2a3c58){const _0x48ada9=_0x383d91;return _0x172dd5[_0x48ada9(0x1a4)](_0x2b019d,_0x2a3c58);},'sdYXO':function(_0x53aad6,_0x23bd19){const _0x39c20b=_0x383d91;return _0x172dd5[_0x39c20b(0x1f1)](_0x53aad6,_0x23bd19);}};if(_0x5a57e8){_0x172dd5[_0x383d91(0x1a4)](_0x26333f,_0x5a57e8);return;}_0x159bec[_0x383d91(0x21d)](),_0x159bec['on'](_0x172dd5[_0x383d91(0x1cd)],_0xdcc6b3=>{const _0x261e20=_0x383d91,_0x4fe434={'rQOCe':_0x2d3319[_0x261e20(0x24c)],'NrZMw':function(_0x56fe2d,_0x75e5c){return _0x2d3319['sClmb'](_0x56fe2d,_0x75e5c);},'gUVmE':_0x2d3319[_0x261e20(0x259)]};if(/\/$/['test'](_0xdcc6b3['fileName'])){_0x159bec['readEntry']();return;}!_0x6e2cf4&&(_0x6e2cf4=_0xdcc6b3[_0x261e20(0x1c7)]);if(_0x2d3319[_0x261e20(0x1e1)](_0xdcc6b3['fileName'],_0x6e2cf4))_0x159bec['readEntry']();else{const _0x5f1b79=_0xdcc6b3[_0x261e20(0x1c7)],_0x5e0efe=path[_0x261e20(0x24f)](_0x1eafa7,_0x5f1b79+_0x261e20(0x1d7)+process[_0x261e20(0x236)]);let _0x4e89b6;try{_0x4e89b6=fs['createWriteStream'](_0x5e0efe);}catch(_0x59c76b){if(BINARY_BUSY_ERROR_CODES[_0x261e20(0x271)](_0x59c76b[_0x261e20(0x1c9)])){const _0x15f13e=path[_0x261e20(0x24f)](_0x1eafa7,_0x5f1b79);if(fs[_0x261e20(0x26c)](_0x15f13e)){logger['warn']('Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x5f1b79),fs[_0x261e20(0x248)](_0x14ff7d,_0x5078a0=>{const _0x148dfc=_0x261e20;_0x5078a0&&logger[_0x148dfc(0x235)](_0x148dfc(0x1a1)+_0x14ff7d);}),_0x2d3319['wMOrq'](_0x2bbc2c,_0x15f13e);return;}logger[_0x261e20(0x235)](_0x261e20(0x215)+_0x5f1b79);}_0x2d3319[_0x261e20(0x1b3)](_0x26333f,_0x59c76b);return;}_0x4e89b6['on'](_0x2d3319[_0x261e20(0x1ec)],_0x4c784d=>{const _0x1bfaa4=_0x261e20;if(BINARY_BUSY_ERROR_CODES[_0x1bfaa4(0x271)](_0x4c784d[_0x1bfaa4(0x1c9)])){const _0x4d9838=path[_0x1bfaa4(0x24f)](_0x1eafa7,_0x5f1b79);_0x4e89b6[_0x1bfaa4(0x26e)](),fs[_0x1bfaa4(0x26c)](_0x4d9838)?(logger[_0x1bfaa4(0x235)](_0x1bfaa4(0x207)+_0x4c784d[_0x1bfaa4(0x1ed)]),_0x159bec[_0x1bfaa4(0x26e)](),fs['unlink'](_0x14ff7d,_0x3e80c7=>{const _0x45abcd=_0x1bfaa4;_0x3e80c7&&logger[_0x45abcd(0x235)](_0x45abcd(0x1a1)+_0x14ff7d);}),_0x2d3319['wMOrq'](_0x2bbc2c,_0x4d9838)):(logger[_0x1bfaa4(0x235)](_0x1bfaa4(0x1a0)+_0x4c784d[_0x1bfaa4(0x1ed)]),fs[_0x1bfaa4(0x248)](_0x5e0efe,()=>{}),_0x2d3319[_0x1bfaa4(0x1fa)](_0x26333f,_0x4c784d));}else fs['unlink'](_0x5e0efe,()=>{}),_0x2d3319[_0x1bfaa4(0x247)](_0x26333f,_0x4c784d);}),_0x159bec['openReadStream'](_0xdcc6b3,function(_0x4dda92,_0x5bbba8){const _0x4ac27c=_0x261e20;if(_0x4dda92){fs[_0x4ac27c(0x248)](_0x5e0efe,()=>{}),_0x4fe434[_0x4ac27c(0x252)](_0x26333f,_0x4dda92);return;}_0x5bbba8['on'](_0x4fe434[_0x4ac27c(0x209)],function(){const _0x1109f9=_0x4ac27c;_0x4e89b6[_0x1109f9(0x1a3)](),_0x4e89b6['on'](_0x4fe434[_0x1109f9(0x233)],function(){_0x159bec['readEntry']();});}),_0x5bbba8[_0x4ac27c(0x25d)](_0x4e89b6);});}}),_0x159bec['on'](_0x172dd5[_0x383d91(0x1a5)],_0x267509=>{_0x2d3319['VgQqi'](_0x26333f,_0x267509);}),_0x159bec['once'](_0x172dd5[_0x383d91(0x270)],()=>{const _0x552ae9=_0x383d91;fs[_0x552ae9(0x248)](_0x14ff7d,_0x3a00c3=>{const _0x31148c=_0x552ae9;_0x3a00c3&&logger[_0x31148c(0x235)](_0x31148c(0x1a1)+_0x14ff7d);});const _0x4b219a=path[_0x552ae9(0x24f)](_0x1eafa7,_0x6e2cf4+_0x552ae9(0x1d7)+process[_0x552ae9(0x236)]),_0x423a32=path[_0x552ae9(0x24f)](_0x1eafa7,_0x6e2cf4);fs[_0x552ae9(0x24d)](_0x4b219a,_0x48c181[_0x552ae9(0x1c6)],function(_0x38b3a0){const _0x5eedb6=_0x552ae9,_0x2622a8={'YIKTL':function(_0x447147,_0x293da2){const _0x5213cc=a72_0x3c8a;return _0x2d3319[_0x5213cc(0x217)](_0x447147,_0x293da2);},'UDXmD':_0x2d3319[_0x5eedb6(0x1b7)],'PrFCW':function(_0x5ed45c,_0xa29d31){const _0x3109ed=_0x5eedb6;return _0x2d3319[_0x3109ed(0x1f9)](_0x5ed45c,_0xa29d31);},'FQfOJ':function(_0x37a01f,_0xaf7f1c){const _0x5105f3=_0x5eedb6;return _0x2d3319[_0x5105f3(0x1e6)](_0x37a01f,_0xaf7f1c);},'qDwdE':function(_0x12c6cb,_0x36b0f7){const _0x5d3e0c=_0x5eedb6;return _0x2d3319[_0x5d3e0c(0x212)](_0x12c6cb,_0x36b0f7);}};if(_0x38b3a0){_0x159bec[_0x5eedb6(0x26e)](),fs[_0x5eedb6(0x248)](_0x4b219a,()=>{}),_0x2d3319['sdYXO'](_0x26333f,_0x38b3a0);return;}fs['rename'](_0x4b219a,_0x423a32,function(_0x4cf993){const _0x3c8f5e=_0x5eedb6;if(_0x4cf993){if(_0x2622a8[_0x3c8f5e(0x200)](_0x4cf993[_0x3c8f5e(0x1c9)],_0x2622a8[_0x3c8f5e(0x276)])){_0x159bec[_0x3c8f5e(0x26e)](),fs[_0x3c8f5e(0x248)](_0x4b219a,()=>{}),_0x2622a8[_0x3c8f5e(0x24e)](_0x26333f,_0x4cf993);return;}logger[_0x3c8f5e(0x235)]('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x4cf993[_0x3c8f5e(0x1ed)]);try{fs[_0x3c8f5e(0x237)](_0x4b219a,_0x423a32);}catch(_0x555a03){_0x159bec[_0x3c8f5e(0x26e)](),fs[_0x3c8f5e(0x248)](_0x4b219a,()=>{}),_0x2622a8[_0x3c8f5e(0x203)](_0x26333f,_0x555a03);return;}fs[_0x3c8f5e(0x248)](_0x4b219a,_0x2189bd=>{const _0x464a33=_0x3c8f5e;_0x2189bd&&logger[_0x464a33(0x235)]('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x2189bd['message']);});}_0x159bec[_0x3c8f5e(0x26e)](),_0x2622a8[_0x3c8f5e(0x20c)](_0x2bbc2c,_0x423a32);});});});});});}static[a72_0x5cb7c1(0x25b)](){const _0x563b81=a72_0x5cb7c1;if(process[_0x563b81(0x1f4)][_0x563b81(0x23e)])return JSON[_0x563b81(0x26a)](process[_0x563b81(0x1f4)][_0x563b81(0x23e)]);return this['testFrameworkDetail'];}static[a72_0x5cb7c1(0x24b)](){const _0xac42c=a72_0x5cb7c1;if(process['env'][_0xac42c(0x219)])return JSON[_0xac42c(0x26a)](process[_0xac42c(0x1f4)][_0xac42c(0x219)]);return this[_0xac42c(0x1fe)];}static[a72_0x5cb7c1(0x1f5)](_0x25476e,_0x44e577){const _0x5eadba=a72_0x5cb7c1,_0x10a63b={'JWjya':_0x5eadba(0x25a),'PyYzu':function(_0x2a6476,_0x39c5de){return _0x2a6476||_0x39c5de;},'LHaAM':function(_0x208444,_0x205c9a){return _0x208444(_0x205c9a);},'NHuow':function(_0x112320,_0x1344d6){return _0x112320(_0x1344d6);}},_0x29227d=_0x10a63b[_0x5eadba(0x1d3)][_0x5eadba(0x1e5)]('|');let _0x34c46a=0x0;while(!![]){switch(_0x29227d[_0x34c46a++]){case'0':process[_0x5eadba(0x1f4)][_0x5eadba(0x23e)]=JSON[_0x5eadba(0x261)](this[_0x5eadba(0x275)]);continue;case'1':_0x10a63b[_0x5eadba(0x1fc)](!_0x25476e,!_0x44e577)&&logger[_0x5eadba(0x1da)](_0x5eadba(0x230)+_0x25476e+_0x5eadba(0x1be)+_0x44e577);continue;case'2':this[_0x5eadba(0x1fe)]={'name':_0x44e577,'version':_0x10a63b[_0x5eadba(0x223)](getFrameworkVersion,_0x44e577)};continue;case'3':process[_0x5eadba(0x1f4)][_0x5eadba(0x219)]=JSON[_0x5eadba(0x261)](this[_0x5eadba(0x1fe)]);continue;case'4':this[_0x5eadba(0x275)]={'name':_0x25476e,'version':{[_0x25476e]:_0x10a63b[_0x5eadba(0x1d0)](getFrameworkVersion,_0x25476e)}};continue;}break;}}static[a72_0x5cb7c1(0x1fb)](_0xda9690,_0x4b82aa){return _0xda9690+':'+_0x4b82aa;}static[a72_0x5cb7c1(0x268)](){const _0x5b5a2e=a72_0x5cb7c1;return process[_0x5b5a2e(0x236)]+':'+threadId;}static[a72_0x5cb7c1(0x1ce)](_0x4c3ff5){const _0x50b9a7=a72_0x5cb7c1;if(_0x4c3ff5['testContextOptions']&&_0x4c3ff5[_0x50b9a7(0x249)][_0x50b9a7(0x206)])return!![];return![];}static['shouldSkipSessionStatus'](_0xd7e247){const _0x1a2009=a72_0x5cb7c1;if(_0xd7e247['testContextOptions']&&_0xd7e247[_0x1a2009(0x249)]['skipSessionStatus'])return!![];return![];}static[a72_0x5cb7c1(0x218)](_0x24269a){const _0x55dfcc=a72_0x5cb7c1,_0x1b6f60=new RegExp(TestFrameworkConstants[_0x55dfcc(0x1e9)]);return _0x1b6f60[_0x55dfcc(0x1e7)](_0x24269a);}static[a72_0x5cb7c1(0x1b4)](_0x409626,_0x5d3027){const _0x39ca36=a72_0x5cb7c1,_0x306254={};_0x306254['xLxzh']=function(_0x2d3ccc,_0x5819f2){return _0x2d3ccc!==_0x5819f2;},_0x306254[_0x39ca36(0x216)]=function(_0x470b54,_0x1cf2e3){return _0x470b54===_0x1cf2e3;},_0x306254[_0x39ca36(0x269)]=_0x39ca36(0x272);const _0x4af4ea=_0x306254;for(const [_0x925cc3,_0x4029c0]of Object[_0x39ca36(0x1ac)](_0x5d3027)){if(_0x4af4ea['xLxzh'](_0x4029c0,null)&&_0x4af4ea[_0x39ca36(0x216)](typeof _0x4029c0,_0x4af4ea[_0x39ca36(0x269)])&&!Array['isArray'](_0x4029c0))_0x409626[_0x925cc3]=this[_0x39ca36(0x1b4)](_0x409626[_0x925cc3]||{},_0x4029c0);else Array[_0x39ca36(0x243)](_0x4029c0)?_0x409626[_0x925cc3]=(_0x409626[_0x925cc3]||[])['concat'](_0x4029c0):_0x409626[_0x925cc3]=_0x4029c0;}return _0x409626;}}module[a72_0x5cb7c1(0x245)]=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a73_0x4ecc85=a73_0x5139;(function(_0x413134,_0x511057){const _0x43aef4=a73_0x5139,_0x5b6dfb=_0x413134();while(!![]){try{const _0x510baa=-parseInt(_0x43aef4(0x9f))/0x1+-parseInt(_0x43aef4(0xa8))/0x2+-parseInt(_0x43aef4(0x94))/0x3+-parseInt(_0x43aef4(0xa2))/0x4*(-parseInt(_0x43aef4(0xb8))/0x5)+-parseInt(_0x43aef4(0x8f))/0x6*(-parseInt(_0x43aef4(0xa3))/0x7)+-parseInt(_0x43aef4(0x9c))/0x8*(parseInt(_0x43aef4(0x91))/0x9)+parseInt(_0x43aef4(0x6b))/0xa;if(_0x510baa===_0x511057)break;else _0x5b6dfb['push'](_0x5b6dfb['shift']());}catch(_0x234a3a){_0x5b6dfb['push'](_0x5b6dfb['shift']());}}}(a73_0x25f3,0x26913));const BrowserstackCLI=require(a73_0x4ecc85(0x76)),helper=require(a73_0x4ecc85(0x79)),AutomationFramework=require(a73_0x4ecc85(0x6c)),TestFrameworkConstants=require(a73_0x4ecc85(0xb2)),PlaywrightDriverModule=require(a73_0x4ecc85(0x8b)),TestInfo=require(a73_0x4ecc85(0x7e)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require(a73_0x4ecc85(0xa4)),logger=createClassLogger('CustomTagManager');function a73_0x5139(_0x397fc1,_0x27a664){const _0x25f3c5=a73_0x25f3();return a73_0x5139=function(_0x513956,_0xd6d8ea){_0x513956=_0x513956-0x6a;let _0x2dd1a3=_0x25f3c5[_0x513956];return _0x2dd1a3;},a73_0x5139(_0x397fc1,_0x27a664);}class CustomTagManager{static [a73_0x4ecc85(0x6e)]={};static [a73_0x4ecc85(0x71)]={};static['setCustomTags'](_0x3bec0c,_0x13ca26,_0x2bd700=![]){const _0x391628=a73_0x4ecc85,_0x7bef2e={'FJUOX':function(_0x9c1939,_0x18d5d4){return _0x9c1939!==_0x18d5d4;},'twTAc':_0x391628(0x88),'VjqyF':_0x391628(0x8a),'cZuKz':_0x391628(0x7b),'EYyeb':function(_0x3fd7e9,_0x2de94d){return _0x3fd7e9===_0x2de94d;},'apHXw':_0x391628(0xb5),'brwpa':function(_0x19418e,_0x20c6ff){return _0x19418e===_0x20c6ff;},'vxwOt':_0x391628(0x8e),'sQTGk':_0x391628(0x99),'Zryxx':_0x391628(0x97),'eLMlq':function(_0x2ff1f9,_0x883f3f){return _0x2ff1f9(_0x883f3f);},'xyYxL':_0x391628(0xaf),'nzklR':_0x391628(0x98),'VckMs':_0x391628(0x72),'pMVgJ':_0x391628(0x96),'iFGpF':function(_0xc1389a,_0x3848b1){return _0xc1389a(_0x3848b1);},'XYsKZ':_0x391628(0x7f),'Ypujl':_0x391628(0x77),'VCneY':_0x391628(0xba)};if(_0x7bef2e['FJUOX'](typeof _0x3bec0c,_0x7bef2e['twTAc']))throw new Error(_0x7bef2e['VjqyF']);if(_0x7bef2e[_0x391628(0xa0)](typeof _0x13ca26,_0x7bef2e[_0x391628(0x78)]))throw new Error(_0x7bef2e[_0x391628(0xb4)]);if(_0x7bef2e['EYyeb'](_0x3bec0c[_0x391628(0xbc)](),''))throw new Error(_0x7bef2e[_0x391628(0xbd)]);if(_0x7bef2e[_0x391628(0x83)](_0x13ca26[_0x391628(0xbc)](),''))throw new Error(_0x7bef2e[_0x391628(0xa6)]);const _0x10a4dc=helper[_0x391628(0xb1)](_0x13ca26);if(_0x2bd700){const _0x4d2e7e=BrowserstackCLI[_0x391628(0xbf)]()[_0x391628(0x84)][TestHubModule[_0x391628(0x89)]];if(_0x4d2e7e){const _0x42080a=_0x4d2e7e?.[_0x391628(0x6d)]?.[_0x391628(0xbb)]()?.[_0x391628(0xa1)];TestInfo[_0x391628(0xb7)](_0x42080a);const _0x43ab33=TestInfo[_0x391628(0x85)](_0x42080a),_0x203995=_0x43ab33[TestFrameworkConstants[_0x391628(0xac)]]||{};if(!_0x203995[_0x3bec0c]){const _0x5ab557={};_0x5ab557[_0x391628(0x8c)]=_0x7bef2e[_0x391628(0x6f)],_0x5ab557[_0x391628(0x8d)]=[..._0x10a4dc],_0x203995[_0x3bec0c]=_0x5ab557;}else _0x203995[_0x3bec0c][_0x391628(0x8d)]=[..._0x10a4dc];_0x43ab33[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x203995,TestInfo[_0x391628(0xae)](_0x42080a,_0x43ab33),!this['buildLevelTags'][_0x42080a]&&(this[_0x391628(0x6e)][_0x42080a]={}),this[_0x391628(0x6e)][_0x42080a][_0x3bec0c]=[..._0x10a4dc];}}else{let _0x1aafef;const _0x47d89c=global[_0x391628(0xaa)];let _0x3f512d=![];if(_0x47d89c&&_0x47d89c[_0x391628(0x90)](_0x7bef2e[_0x391628(0x6a)]))_0x3f512d=!![],_0x1aafef=_0x47d89c;else try{const _0x4be3cd=_0x7bef2e[_0x391628(0xb3)](require,_0x7bef2e[_0x391628(0x7c)]);if(BrowserstackCLI['getInstance']()[_0x391628(0xa5)]()){const _0x448624=_0x4be3cd['getTestFrameworkDetail']();if(_0x7bef2e['brwpa'](_0x448624?.['name']?.['toLowerCase'](),_0x7bef2e[_0x391628(0x95)])){const _0x534a89=AutomationFramework[_0x391628(0x81)]();_0x1aafef=AutomationFramework['getState'](_0x534a89,PlaywrightDriverModule[_0x391628(0x7d)],''),_0x1aafef&&_0x1aafef[_0x391628(0x90)](_0x7bef2e[_0x391628(0x6a)])&&(_0x3f512d=!![]);}}}catch(_0x395153){logger[_0x391628(0xa7)](_0x391628(0x80)+_0x395153);}if(_0x3f512d){if(!_0x1aafef)throw new Error(_0x7bef2e['VckMs']);const _0x26e5a2=BrowserstackCLI[_0x391628(0xbf)]()['getTestFramework']();if(!_0x26e5a2)throw new Error(_0x7bef2e[_0x391628(0x74)]);const _0x22c10c=_0x7bef2e[_0x391628(0xc0)](require,_0x7bef2e['XYsKZ']),_0x3222c1=_0x7bef2e[_0x391628(0xb3)](require,_0x7bef2e[_0x391628(0xbe)]),_0x2bc69e=_0x26e5a2['resolveInstance'](_0x22c10c[_0x391628(0x9e)],_0x3222c1['POST']);if(!_0x2bc69e)throw new Error(_0x7bef2e[_0x391628(0x82)]);const _0x1b27a0=_0x2bc69e[_0x391628(0x9d)]()['get'](_0x1aafef)||{},_0x10c131=_0x1b27a0[TestFrameworkConstants[_0x391628(0xac)]]||{};logger[_0x391628(0xa7)]('[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier='+_0x1aafef+_0x391628(0xad)+_0x3bec0c+',\x20values='+JSON[_0x391628(0x70)](_0x10a4dc)+_0x391628(0x93)+JSON[_0x391628(0x70)](_0x10c131));if(!_0x10c131[_0x3bec0c]){const _0x303c29={};_0x303c29['field_type']=_0x7bef2e[_0x391628(0x6f)],_0x303c29[_0x391628(0x8d)]=[..._0x10a4dc],_0x10c131[_0x3bec0c]=_0x303c29,logger['debug']('[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key='+_0x3bec0c+_0x391628(0x7a)+JSON[_0x391628(0x70)](_0x10a4dc));}else _0x10c131[_0x3bec0c][_0x391628(0x8d)]=[..._0x10a4dc],logger[_0x391628(0xa7)]('[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key='+_0x3bec0c+_0x391628(0x9a)+JSON[_0x391628(0x70)](_0x10a4dc));const _0x1ee24b={[TestFrameworkConstants[_0x391628(0xac)]]:_0x10c131},_0x380fcf={};_0x380fcf[_0x1aafef]=_0x1ee24b,_0x2bc69e['addMultipleEntries'](_0x380fcf),logger[_0x391628(0xa7)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x1aafef+_0x391628(0xb0)+JSON['stringify'](_0x10c131)),!this[_0x391628(0x71)][_0x1aafef]&&(this[_0x391628(0x71)][_0x1aafef]={}),this['testLevelTags'][_0x1aafef][_0x3bec0c]=[..._0x10a4dc];}else{const _0x5f17cb=global[_0x391628(0x73)]?.[_0x391628(0x87)]?.[_0x391628(0xab)];if(!_0x5f17cb){const _0x2f72c3=AutomationFramework[_0x391628(0x81)]();_0x1aafef=AutomationFramework[_0x391628(0x75)](_0x2f72c3,PlaywrightDriverModule[_0x391628(0x7d)],'');}else _0x1aafef=TestInfo[_0x391628(0x86)](_0x5f17cb,_0x5f17cb[_0x391628(0xb6)]);const _0x28268d=TestInfo[_0x391628(0x85)](_0x1aafef),_0x47daf5=_0x28268d[TestFrameworkConstants[_0x391628(0xac)]]||{};if(!_0x47daf5[_0x3bec0c]){const _0x1b3ed2={};_0x1b3ed2[_0x391628(0x8c)]=_0x7bef2e['sQTGk'],_0x1b3ed2[_0x391628(0x8d)]=[..._0x10a4dc],_0x47daf5[_0x3bec0c]=_0x1b3ed2;}else _0x47daf5[_0x3bec0c][_0x391628(0x8d)]=[..._0x10a4dc];_0x28268d[TestFrameworkConstants[_0x391628(0xac)]]=_0x47daf5,TestInfo[_0x391628(0xae)](_0x1aafef,_0x28268d),!this['testLevelTags'][_0x1aafef]&&(this['testLevelTags'][_0x1aafef]={}),this[_0x391628(0x71)][_0x1aafef][_0x3bec0c]=[..._0x10a4dc];}}}static[a73_0x4ecc85(0xa9)](){const _0x1a7732=a73_0x4ecc85,_0x977530={...this[_0x1a7732(0x6e)]};return _0x977530;}static[a73_0x4ecc85(0x92)](){const _0x105cab=a73_0x4ecc85,_0x44b628={...this[_0x105cab(0x71)]};return _0x44b628;}static[a73_0x4ecc85(0xb9)](){this['buildLevelTags']={},this['testLevelTags']={};}}function a73_0x25f3(){const _0x16d458=['TEST','291958vZLYjO','FJUOX','buildHashedId','45396XfXPmM','86891oepyop','../../helpers/classLogger','isRunning','vxwOt','debug','354956XswAnw','getBuildLevelTags','__jestCurrentTestIdentifier','testInfo','KEY_CUSTOM_TAGS',',\x20key=','setTestDetails','./cliUtils',',\x20finalTags=','parseCommaSeparatedValues','./framework/constants/testFrameworkConstants','eLMlq','cZuKz','Custom\x20tag\x20key\x20cannot\x20be\x20empty','retry','getTestUUID','135JtOHlS','clearTags','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','toObject','trim','apHXw','Ypujl','getInstance','iFGpF','Zryxx','3870730NVxuYi','./framework/automationFramework','testhubConfig','buildLevelTags','sQTGk','stringify','testLevelTags','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','__workerDetails','pMVgJ','getState','./browserstackCLI','./state/hookState','twTAc','../../helpers/helper','\x20with\x20values=','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','xyYxL','KEY_TEST_ID','./TestInfo','./state/testFrameworkState','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','getTrackedInstance','VCneY','brwpa','modules','getTestDetails','getTestIdentifierFromTestInfo','currentTest','string','MODULE_NAME','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','./modules/playwrightDriverModule','field_type','values','Custom\x20tag\x20value\x20cannot\x20be\x20empty','144SFzFVH','includes','62001AMNVWA','getTestLevelTags',',\x20existingTags=','203322JaFcLH','nzklR','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright',':jest-','jest','multi_dropdown','\x20with\x20new\x20values=','exports','344SUbVet','getAllData'];a73_0x25f3=function(){return _0x16d458;};return a73_0x25f3();}module[a73_0x4ecc85(0x9b)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x2fbb87=a74_0x21b1;(function(_0x342946,_0x3f0609){const _0x52a488=a74_0x21b1,_0x47fd0=_0x342946();while(!![]){try{const _0x490fd4=parseInt(_0x52a488(0x108))/0x1*(parseInt(_0x52a488(0x10d))/0x2)+-parseInt(_0x52a488(0x102))/0x3+parseInt(_0x52a488(0x103))/0x4+-parseInt(_0x52a488(0x10e))/0x5+parseInt(_0x52a488(0x107))/0x6*(-parseInt(_0x52a488(0x106))/0x7)+parseInt(_0x52a488(0x104))/0x8*(parseInt(_0x52a488(0x112))/0x9)+parseInt(_0x52a488(0x109))/0xa*(parseInt(_0x52a488(0x101))/0xb);if(_0x490fd4===_0x3f0609)break;else _0x47fd0['push'](_0x47fd0['shift']());}catch(_0xd0e0e3){_0x47fd0['push'](_0x47fd0['shift']());}}}(a74_0x1303,0x6f320));const {createClassLogger}=require(a74_0x2fbb87(0x10b));function a74_0x1303(){const _0xde139e=['notifyObserver','9vlQHZI','759pcEILb','719550mjzlEy','1839816dbaGAf','3910856wuyJhK','getInstance','282856cVcmyF','48KPoOps','3603zmngoV','69240ChGcvd','observers','../../helpers/classLogger.js','registerObserver','254TavFxc','4327890cCrZQQ','exports','push'];a74_0x1303=function(){return _0xde139e;};return a74_0x1303();}function a74_0x21b1(_0x3f8b7a,_0x1ff556){const _0x1303cb=a74_0x1303();return a74_0x21b1=function(_0x21b1a1,_0x353d84){_0x21b1a1=_0x21b1a1-0x101;let _0x1bc142=_0x1303cb[_0x21b1a1];return _0x1bc142;},a74_0x21b1(_0x3f8b7a,_0x1ff556);}class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static['getInstance'](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a74_0x2fbb87(0x10c)](_0x5a802d,_0x5120de){const _0x44e054=a74_0x2fbb87;!this[_0x44e054(0x10a)][_0x5a802d]&&(this[_0x44e054(0x10a)][_0x5a802d]=[]),this['observers'][_0x5a802d][_0x44e054(0x110)](_0x5120de);}async[a74_0x2fbb87(0x111)](_0x51c7ca,_0x5b20d2){const _0x71fa0d=a74_0x2fbb87,_0x3146ef={'zqZCS':function(_0x1b5aea,_0x25b283){return _0x1b5aea(_0x25b283);}};if(this[_0x71fa0d(0x10a)][_0x51c7ca]){for(const _0x4f8d15 of this['observers'][_0x51c7ca]){await _0x3146ef['zqZCS'](_0x4f8d15,_0x5b20d2);}return;}}}const eventDispatcher=EventDispatcher[a74_0x2fbb87(0x105)]();Object['freeze'](eventDispatcher),module[a74_0x2fbb87(0x10f)]=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a75_0x1fe1f5=a75_0x2cb8;(function(_0xc4f249,_0x4b2c55){const _0x4228ef=a75_0x2cb8,_0x4be76a=_0xc4f249();while(!![]){try{const _0xa317cc=-parseInt(_0x4228ef(0xa2))/0x1+-parseInt(_0x4228ef(0xb0))/0x2*(-parseInt(_0x4228ef(0xba))/0x3)+parseInt(_0x4228ef(0xaa))/0x4*(-parseInt(_0x4228ef(0xbc))/0x5)+-parseInt(_0x4228ef(0xab))/0x6*(-parseInt(_0x4228ef(0xb1))/0x7)+-parseInt(_0x4228ef(0x9b))/0x8*(parseInt(_0x4228ef(0xa5))/0x9)+-parseInt(_0x4228ef(0xa0))/0xa*(-parseInt(_0x4228ef(0xae))/0xb)+parseInt(_0x4228ef(0xa9))/0xc;if(_0xa317cc===_0x4b2c55)break;else _0x4be76a['push'](_0x4be76a['shift']());}catch(_0x36abc5){_0x4be76a['push'](_0x4be76a['shift']());}}}(a75_0x6cc4,0xbfe7b));const {createClassLogger}=require('../../../helpers/classLogger.js'),util=require('util'),eventDispatcher=require(a75_0x1fe1f5(0xad)),CLIUtils=require(a75_0x1fe1f5(0xa6)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger(a75_0x1fe1f5(0x9d));function a75_0x6cc4(){const _0x3c420d=['../cliUtils.js','registerObserver','KEY_AUTOMATION_SESSIONS','14355048fGhveg','4lQkcDj','5033268Vvcxqi','exports','../eventDispatcher.js','22BwJMDA','setState','335734eSjvbZ','7jSuctw','getHookRegistryKey','trackEvent','notifyObserver','createContext','getAutomationFrameworkName','automationFrameworkVersion','getAutomationFrameworkVersion','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','21dFkfcH','debug','4633630OhdCmF','trackEvent:\x20automationFrameworkState=','automationFrameworkName','setTrackedInstance','instances','\x20hookState=','170840uudNxA','get','AutomationFramework','getAllData','set','1702020kXmMdo','getCurrentInstanceName','1026346UXMydj','non_browserstack_automation_sessions','getId','342aWJumT'];a75_0x6cc4=function(){return _0x3c420d;};return a75_0x6cc4();}class AutomationFramework{static [a75_0x1fe1f5(0xc0)]=new Map();static [a75_0x1fe1f5(0xa8)]='automation_sessions';static [a75_0x1fe1f5(0xb9)]=a75_0x1fe1f5(0xa3);constructor(_0x307ec1,_0x22d234){const _0x3c5d4a=a75_0x1fe1f5;this[_0x3c5d4a(0xbe)]=_0x307ec1,this['automationFrameworkVersion']=_0x22d234;}[a75_0x1fe1f5(0xb6)](){const _0x211fca=a75_0x1fe1f5;return this[_0x211fca(0xbe)];}[a75_0x1fe1f5(0xb8)](){const _0x5d58d4=a75_0x1fe1f5;return this[_0x5d58d4(0xb7)];}async[a75_0x1fe1f5(0xb3)](_0x406d97,_0x18c214,_0x39bd97={}){const _0x53dae5=a75_0x1fe1f5;logger[_0x53dae5(0xbb)](_0x53dae5(0xbd)+_0x406d97+_0x53dae5(0x9a)+_0x18c214);}async['runHooks'](_0xb5ac51,_0xa0707,_0x5dd6e6,_0x2d7b80={}){const _0x518972=a75_0x1fe1f5,_0x4e112c=CLIUtils[_0x518972(0xb2)](_0xa0707,_0x5dd6e6);_0xb5ac51&&_0xb5ac51[_0x518972(0xaf)](_0xa0707),await eventDispatcher[_0x518972(0xb4)](_0x4e112c,_0x2d7b80);}static[a75_0x1fe1f5(0xa7)](_0xee6863,_0x40aade,_0x1edac2){const _0x59a5e2=a75_0x1fe1f5;eventDispatcher[_0x59a5e2(0xa7)](CLIUtils['getHookRegistryKey'](_0xee6863,_0x40aade),_0x1edac2);}static[a75_0x1fe1f5(0xbf)](_0x303dd4,_0x4004b6){const _0x11acd3=a75_0x1fe1f5;AutomationFramework['instances'][_0x11acd3(0x9f)](_0x303dd4['getId'](),_0x4004b6);}static['getTrackedInstance'](){const _0x213286=a75_0x1fe1f5,_0x5d5b9c=TrackedInstance[_0x213286(0xb5)](CLIUtils[_0x213286(0xa1)]());return AutomationFramework[_0x213286(0xc0)][_0x213286(0x9c)](_0x5d5b9c[_0x213286(0xa4)]());}static[a75_0x1fe1f5(0xaf)](_0x426876,_0x5f62fb,_0x504bb2){const _0xfe4ad3=a75_0x1fe1f5;_0x426876[_0xfe4ad3(0x9e)]()['set'](_0x5f62fb,_0x504bb2);}static['getState'](_0x1263d9,_0xe31faf){const _0x42ac24=a75_0x1fe1f5;return _0x1263d9[_0x42ac24(0x9e)]()[_0x42ac24(0x9c)](_0xe31faf);}}function a75_0x2cb8(_0x535ef0,_0x5939a9){const _0x6cc44c=a75_0x6cc4();return a75_0x2cb8=function(_0x2cb817,_0x47b771){_0x2cb817=_0x2cb817-0x9a;let _0x51b465=_0x6cc44c[_0x2cb817];return _0x51b465;},a75_0x2cb8(_0x535ef0,_0x5939a9);}module[a75_0x1fe1f5(0xac)]=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a76_0x2335(){const _0x15bbeb=['started_at','KEY_ENDED_AT','COMMAND_SCREENSHOT','KEY_PLATFORM_INDEX','990788uJMXcf','is_browserstack_hub','9hpcpWn','24LqExuA','platform_index','KEY_FRAMEWORK_SESSION_ID','w3cexecutescript','COMMAND_QUIT','exports','KEY_STARTED_AT','capabilities','input_capabilities','get','6MDdKBo','COMMAND_NEW_SESSION','1DQdcfm','3357240caJRBB','screenshot','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','KEY_HUB_URL','hub_url','COMMAND_GET','ended_at','ENV_BROWSERSTACK_PLATFORM_INDEX','KEY_INPUT_CAPABILITIES','69532sjctvm','48eidlUd','quit','908505eoUXan','6295730epufmP','1919771POHxhw','1919390jJODUs'];a76_0x2335=function(){return _0x15bbeb;};return a76_0x2335();}const a76_0x466f44=a76_0x2a4e;(function(_0x8ee69b,_0x130a7a){const _0x1add67=a76_0x2a4e,_0x303950=_0x8ee69b();while(!![]){try{const _0x51f57d=parseInt(_0x1add67(0x9d))/0x1*(-parseInt(_0x1add67(0xb2))/0x2)+parseInt(_0x1add67(0xb5))/0x3*(parseInt(_0x1add67(0xa7))/0x4)+parseInt(_0x1add67(0xaa))/0x5*(parseInt(_0x1add67(0x9b))/0x6)+-parseInt(_0x1add67(0xac))/0x7+-parseInt(_0x1add67(0x9e))/0x8+parseInt(_0x1add67(0xb4))/0x9*(parseInt(_0x1add67(0xab))/0xa)+parseInt(_0x1add67(0xad))/0xb*(parseInt(_0x1add67(0xa8))/0xc);if(_0x51f57d===_0x130a7a)break;else _0x303950['push'](_0x303950['shift']());}catch(_0x50cfe6){_0x303950['push'](_0x303950['shift']());}}}(a76_0x2335,0x700f4));const a76_0x1e6f81={};function a76_0x2a4e(_0x2f1e4f,_0x28a4b4){const _0x233539=a76_0x2335();return a76_0x2a4e=function(_0x2a4e35,_0x2f66a8){_0x2a4e35=_0x2a4e35-0x9b;let _0xd6a6d1=_0x233539[_0x2a4e35];return _0xd6a6d1;},a76_0x2a4e(_0x2f1e4f,_0x28a4b4);}a76_0x1e6f81[a76_0x466f44(0xa5)]='BROWSERSTACK_PLATFORM_INDEX',a76_0x1e6f81[a76_0x466f44(0xa1)]=a76_0x466f44(0xa2),a76_0x1e6f81[a76_0x466f44(0xb7)]='framework_session_id',a76_0x1e6f81[a76_0x466f44(0xa6)]=a76_0x466f44(0xbd),a76_0x1e6f81['KEY_CAPABILITIES']=a76_0x466f44(0xbc),a76_0x1e6f81['KEY_IS_BROWSERSTACK_HUB']=a76_0x466f44(0xb3),a76_0x1e6f81[a76_0x466f44(0xbb)]=a76_0x466f44(0xae),a76_0x1e6f81[a76_0x466f44(0xaf)]=a76_0x466f44(0xa4),a76_0x1e6f81[a76_0x466f44(0xb1)]=a76_0x466f44(0xb6),a76_0x1e6f81[a76_0x466f44(0x9c)]='newsession',a76_0x1e6f81[a76_0x466f44(0xa3)]=a76_0x466f44(0xbe),a76_0x1e6f81[a76_0x466f44(0xb0)]=a76_0x466f44(0x9f),a76_0x1e6f81['COMMAND_W3C_EXECUTE_SCRIPT']=a76_0x466f44(0xb8),a76_0x1e6f81[a76_0x466f44(0xa0)]='w3cexecutescriptasync',a76_0x1e6f81[a76_0x466f44(0xb9)]=a76_0x466f44(0xa9);const AutomationFrameworkConstants=a76_0x1e6f81;module[a76_0x466f44(0xba)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a77_0x20f5(_0x1f273f,_0x33c035){const _0x3b9d95=a77_0x3b9d();return a77_0x20f5=function(_0x20f50d,_0x474b83){_0x20f50d=_0x20f50d-0x168;let _0x3d923f=_0x3b9d95[_0x20f50d];return _0x3d923f;},a77_0x20f5(_0x1f273f,_0x33c035);}function a77_0x3b9d(){const _0x476f4c=['automate_session_name','2764958ZkPRwK','hook_failure_type','KEY_TEST_DURATION','KEY_TEST_FRAMEWORK_VERSION','218094XXSOXd','hook_failure','KEY_HOOK_RESULT','KEY_FILE_PATH','automate_session_status','test_hook_last_finished','KEY_TEST_RESULT_AT','KEY_EVENT_ENDED_AT','test_framework_name','KEY_LOGS','1340gosUIQ','12862lsbrLW','KEY_FILE_SIZE','KEY_TEST_ID','KEY_TEST_RERUN_NAME','8fhVCUw','test_scope','577192pgbqBV','test_id','KEY_TEST_TAGS','KEY_TEST_RESULT','KEY_TEST_ENDED_AT','file_name','KEY_FILE_NAME','file_level','141qsKmGL','KEY_HOOK_LAST_FINISHED','test_scopes','KEY_CUSTOM_TAGS','test_framework_version','KEY_HOOK_LOGS','test_hooks_finished','KEY_HOOKS_STARTED','pending','KEY_TEST_FAILURE_TYPE','5OpoEBi','hook_id','KEY_FILE_LEVEL','1387926wJzuZV','KEY_TEST_NAME','test_name','KEY_HOOK_FAILURE_REASON','test_session_name','KEY_SESSION_NAME','KEY_TEST_FAILURE_REASON','test_logs','TEST_SCREENSHOT','test_failure_type','test_uuid','event_ended_at','test_result_at','KEY_HOOKS_FINISHED','KEY_TEST_FRAMEWORK_NAME','KEY_HOOK_ID','DEFAULT_TEST_RESULT','KIND_LOG','^(BEFORE_|AFTER_)','platform_index','test_attachments','13oWwcLd','retry_of','193332uRZRLv','KEY_TEST_CODE','test_location','logs','test_hook_last_started','test_ended_at','20NWejhg','KEY_TEST_LOGS','HOOK_REGEX','KEY_HOOK_FAILURE_TYPE','automate_session_reason','KEY_TEST_SCOPE','custom_metadata','exports','TEST_LOG','KEY_TEST_ATTACHMENTS','KEY_HOOK_FAILURE','test_hooks_started','KEY_HOOK_LAST_STARTED','event_started_at','247qWjFbH','test_duration','test_result','test_rerun_name','hook_result','test_code','hook_logs'];a77_0x3b9d=function(){return _0x476f4c;};return a77_0x3b9d();}const a77_0x63e444=a77_0x20f5;(function(_0xf63eda,_0x2abe81){const _0x53021f=a77_0x20f5,_0x2024ec=_0xf63eda();while(!![]){try{const _0x16b5eb=parseInt(_0x53021f(0x18e))/0x1*(parseInt(_0x53021f(0x1bb))/0x2)+parseInt(_0x53021f(0x16c))/0x3*(parseInt(_0x53021f(0x1ba))/0x4)+parseInt(_0x53021f(0x176))/0x5*(parseInt(_0x53021f(0x1b0))/0x6)+-parseInt(_0x53021f(0x1ac))/0x7*(parseInt(_0x53021f(0x1bf))/0x8)+-parseInt(_0x53021f(0x179))/0x9*(-parseInt(_0x53021f(0x196))/0xa)+-parseInt(_0x53021f(0x1c1))/0xb+-parseInt(_0x53021f(0x190))/0xc*(-parseInt(_0x53021f(0x1a4))/0xd);if(_0x16b5eb===_0x2abe81)break;else _0x2024ec['push'](_0x2024ec['shift']());}catch(_0x3147cd){_0x2024ec['push'](_0x2024ec['shift']());}}}(a77_0x3b9d,0x49eb0));const a77_0x29e629={};a77_0x29e629['KEY_TEST_UUID']=a77_0x63e444(0x183),a77_0x29e629[a77_0x63e444(0x1bd)]=a77_0x63e444(0x1c2),a77_0x29e629[a77_0x63e444(0x17a)]=a77_0x63e444(0x17b),a77_0x29e629['KEY_TEST_FILE_PATH']='test_file_path',a77_0x29e629[a77_0x63e444(0x1c3)]='test_tags',a77_0x29e629[a77_0x63e444(0x1c4)]=a77_0x63e444(0x1a6),a77_0x29e629[a77_0x63e444(0x1b6)]=a77_0x63e444(0x185),a77_0x29e629['KEY_TEST_STARTED_AT']='test_started_at',a77_0x29e629[a77_0x63e444(0x168)]=a77_0x63e444(0x195),a77_0x29e629['KEY_TEST_LOCATION']=a77_0x63e444(0x192),a77_0x29e629[a77_0x63e444(0x1ae)]=a77_0x63e444(0x1a5),a77_0x29e629[a77_0x63e444(0x19b)]=a77_0x63e444(0x1c0),a77_0x29e629['KEY_TEST_SCOPES']=a77_0x63e444(0x16e),a77_0x29e629[a77_0x63e444(0x187)]=a77_0x63e444(0x1b8),a77_0x29e629[a77_0x63e444(0x1af)]=a77_0x63e444(0x170),a77_0x29e629[a77_0x63e444(0x191)]=a77_0x63e444(0x1a9),a77_0x29e629[a77_0x63e444(0x1be)]=a77_0x63e444(0x1a7),a77_0x29e629['KEY_TEST_RETRY_OF']=a77_0x63e444(0x18f),a77_0x29e629['KEY_PLATFORM_INDEX']=a77_0x63e444(0x18c),a77_0x29e629['KEY_TEST_FAILURE']='test_failure',a77_0x29e629[a77_0x63e444(0x175)]=a77_0x63e444(0x182),a77_0x29e629[a77_0x63e444(0x17f)]='test_failure_reason',a77_0x29e629[a77_0x63e444(0x197)]=a77_0x63e444(0x180),a77_0x29e629['KEY_TEST_META']='test_meta',a77_0x29e629[a77_0x63e444(0x17e)]=a77_0x63e444(0x17d),a77_0x29e629['KEY_AUTOMATE_SESSION_NAME']=a77_0x63e444(0x1ab),a77_0x29e629['KEY_AUTOMATE_SESSION_STATUS']=a77_0x63e444(0x1b4),a77_0x29e629['KEY_AUTOMATE_SESSION_REASON']=a77_0x63e444(0x19a),a77_0x29e629['KEY_EVENT_STARTED_AT']=a77_0x63e444(0x1a3),a77_0x29e629[a77_0x63e444(0x1b7)]=a77_0x63e444(0x184),a77_0x29e629[a77_0x63e444(0x188)]=a77_0x63e444(0x177),a77_0x29e629[a77_0x63e444(0x1b2)]=a77_0x63e444(0x1a8),a77_0x29e629[a77_0x63e444(0x199)]=a77_0x63e444(0x1ad),a77_0x29e629[a77_0x63e444(0x17c)]='hook_failure_reason',a77_0x29e629[a77_0x63e444(0x1a0)]=a77_0x63e444(0x1b1),a77_0x29e629[a77_0x63e444(0x171)]=a77_0x63e444(0x1aa),a77_0x29e629['KEY_HOOK_NAME']='hook_name',a77_0x29e629[a77_0x63e444(0x189)]='pending',a77_0x29e629['DEFAULT_HOOK_RESULT']=a77_0x63e444(0x174),a77_0x29e629['KIND_SCREENSHOT']=a77_0x63e444(0x181),a77_0x29e629[a77_0x63e444(0x18a)]=a77_0x63e444(0x19e),a77_0x29e629[a77_0x63e444(0x198)]=a77_0x63e444(0x18b),a77_0x29e629[a77_0x63e444(0x173)]=a77_0x63e444(0x1a1),a77_0x29e629[a77_0x63e444(0x186)]=a77_0x63e444(0x172),a77_0x29e629[a77_0x63e444(0x1a2)]=a77_0x63e444(0x194),a77_0x29e629[a77_0x63e444(0x16d)]=a77_0x63e444(0x1b5),a77_0x29e629[a77_0x63e444(0x1b9)]=a77_0x63e444(0x193),a77_0x29e629[a77_0x63e444(0x16f)]=a77_0x63e444(0x19c),a77_0x29e629[a77_0x63e444(0x19f)]=a77_0x63e444(0x18d),a77_0x29e629[a77_0x63e444(0x1bc)]='file_size',a77_0x29e629[a77_0x63e444(0x16a)]=a77_0x63e444(0x169),a77_0x29e629[a77_0x63e444(0x1b3)]='file_path',a77_0x29e629[a77_0x63e444(0x178)]=a77_0x63e444(0x16b),a77_0x29e629['MAX_TOP_LEVEL_STEPS']=0xa,a77_0x29e629['MAX_NESTED_STEP_DEPTH']=0x2;const TestFrameworkConstants=a77_0x29e629;module[a77_0x63e444(0x19d)]=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a78_0x1481(_0x168e9c,_0x243720){const _0x50b720=a78_0x50b7();return a78_0x1481=function(_0x148177,_0x30e598){_0x148177=_0x148177-0x8d;let _0x2fb4aa=_0x50b720[_0x148177];return _0x2fb4aa;},a78_0x1481(_0x168e9c,_0x243720);}const a78_0x198dd9=a78_0x1481;(function(_0x55caad,_0x3fdc28){const _0x4efc04=a78_0x1481,_0x356077=_0x55caad();while(!![]){try{const _0x53d476=parseInt(_0x4efc04(0x136))/0x1*(-parseInt(_0x4efc04(0x12d))/0x2)+-parseInt(_0x4efc04(0x12f))/0x3+-parseInt(_0x4efc04(0x11d))/0x4+parseInt(_0x4efc04(0x13f))/0x5+parseInt(_0x4efc04(0x116))/0x6+-parseInt(_0x4efc04(0x129))/0x7+parseInt(_0x4efc04(0xde))/0x8;if(_0x53d476===_0x3fdc28)break;else _0x356077['push'](_0x356077['shift']());}catch(_0x2ce277){_0x356077['push'](_0x356077['shift']());}}}(a78_0x50b7,0x1d9a9));const TestFramework=require(a78_0x198dd9(0xb9)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a78_0x198dd9(0x122)),{createClassLogger}=require(a78_0x198dd9(0x103)),TestFrameworkInstance=require(a78_0x198dd9(0x161)),CLIUtils=require(a78_0x198dd9(0x8f)),TrackedInstance=require(a78_0x198dd9(0xe4)),TestFrameworkConstants=require(a78_0x198dd9(0xcc)),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require('uuid'),util=require(a78_0x198dd9(0xc2)),TestInfo=require(a78_0x198dd9(0xfa)),GrpcClient=require('../grpcClient');function a78_0x50b7(){const _0x357794=['setTestDetails','557289SqjTdx','getTestFrameworksVersions','vNPCw','testFrameworkVersion','getCurrentTestState','KEY_EVENT_ENDED_AT','KEY_TEST_NAME','11794pkMsYV','finished_at','\x20testState:\x20','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','KEY_TEST_STARTED_AT','KEY_TEST_FAILURE_REASON','eventJson','NNmwk','KEY_TEST_LOGS','858795XLiyxV','\x20pending\x20hooks\x20for\x20testId:\x20','parseCucumberTestResult','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','\x20and\x20args\x20=\x20','KEY_EVENT_STARTED_AT','ZmgUZ','trackEvent:\x20unsupported\x20testFrameworkState=','getId','endedAt','NONE','createTestFrameworkEventPayload\x20testId:\x20','uuid','error','KEY_HOOK_LOGS','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','failed','Cucumber\x20log\x20created\x20event','teQBB','YnJZD','getTrackedInstance','getInstance','trackEvent','runHooks','INIT_TEST','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','testFrameworkState','length','startedAt','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','KEY_AUTOMATE_SESSION_NAME','KEY_HOOK_RESULT','KEY_LOGS','ehAel','../instances/testFrameworkInstance.js','PRE','KEY_TEST_SCOPES','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','testFrameworkName','../cliUtils.js','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','getCurrentHookState','KEY_HOOK_ID','getThreadId','browserstackPlatformIndex','\x20payload=','args','processPendingHooks','\x20\x20and\x20args\x20=\x20','sendLogCreatedEvent','dyFcv','addPendingHook','NWJpc','push','trackHookEvent','Processing\x20','test_run_id','logCreatedEvent','LOG_REPORT',',\x20hookState:\x20','from','ByPmR','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','body','test','instance','failure_data','Parsed\x20cucumber\x20test:\x20','hooks','bCoEM','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','hookData','removePendingHooks','testData','KEY_TEST_LOCATION',',\x20storing\x20as\x20pending\x20hook','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','OwbZy','getPendingHooks','DEFAULT_HOOK_RESULT','meta','./testFramework','KEY_TEST_ATTACHMENTS','POST','vrQlb','KEY_TEST_FRAMEWORK_NAME','HNuCr','name','hookState','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','util','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','getAllData','IvSWk','KEY_HOOK_NAME','\x20response=','SrEqT','code','Inoov','\x20with\x20result:\x20','./constants/testFrameworkConstants.js','location','hook_type','createContext','KEY_HOOK_FAILURE_REASON','Error\x20in\x20createTestFrameworkEventPayload:\x20','tgHVs','KEY_CUSTOM_TAGS','inspect','KEY_TEST_FILE_PATH','toISOString','trackCucumberInstance','KEY_HOOK_LAST_STARTED','sbonc','KEY_TEST_TAGS','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_TEST_META','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','4222136geSkrY','setTrackedInstance','DEFAULT_TEST_RESULT','pop','KEY_TEST_RESULT','KEY_HOOK_FAILURE_TYPE','../instances/trackedInstance.js','KEY_HOOK_FAILURE','KEY_TEST_RESULT_AT','wGZVd',',\x20state:\x20','parseCucumberTest','sendLogCreatedEvent:\x20for\x20testId:\x20','resolveInstance','passed','file_name','KEY_TEST_ENDED_AT','KEY_HOOKS_FINISHED','Tracked\x20cucumber\x20hook\x20event:\x20','finishedAt','\x20for\x20test:\x20','failure','keys','Stored\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_CODE','split','debug','XoBak','../TestInfo.js','BzxGG','format','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','result','getTestDetails','TANwi','yTjiD','KEY_TEST_FAILURE_TYPE','../../../helpers/classLogger.js','getCurrentInstanceName','ceil','exports','\x20with\x20UUID:\x20','failure_type','KEY_TEST_UUID','storePendingHook','KEY_HOOK_LAST_FINISHED','testUUID','get','failure_reason','getTestFrameworks','KEY_TEST_FRAMEWORK_VERSION','cemJl','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','EtndO','KEY_TEST_SCOPE','EiQUG','172554yTRqBi','toString',',\x20error:\x20','createTestFrameworkEventPayload','\x20&\x20hookState=','stringify','readLogObjects','566068vpvhVA','KEY_HOOKS_STARTED','getRef','unknown','KEY_TEST_ID','../state/hookState.js','\x20target=','getProcessId','addMultipleEntries','TEST','KEY_TEST_FAILURE','zVoHO','719866LFhxaK','\x20with\x20id\x20','concat','platformIndex','30rQMElv'];a78_0x50b7=function(){return _0x357794;};return a78_0x50b7();}class CucumberTestFramework extends TestFramework{constructor(_0x3289e4,_0x25b006,_0xe8d84b){super(_0x3289e4,_0x25b006,_0xe8d84b);}async[a78_0x198dd9(0x155)](_0x4e6c63,_0x5971df,_0x1efc79={}){const _0x1c53d6=a78_0x198dd9,_0x1749a3={};_0x1749a3[_0x1c53d6(0xbe)]=_0x1c53d6(0x90),_0x1749a3[_0x1c53d6(0x111)]=function(_0x253f80,_0x57cbd3){return _0x253f80===_0x57cbd3;},_0x1749a3[_0x1c53d6(0x152)]=function(_0x3b69c9,_0x5b6c45){return _0x3b69c9===_0x5b6c45;},_0x1749a3[_0x1c53d6(0xc5)]=_0x1c53d6(0x14e);const _0xef174=_0x1749a3;await super[_0x1c53d6(0x155)](_0x4e6c63,_0x5971df,_0x1efc79);const _0x835e23=this[_0x1c53d6(0xeb)](_0x4e6c63,_0x5971df,_0x1efc79);if(!_0x835e23){logger['debug'](_0xef174[_0x1c53d6(0xbe)]);return;}try{let _0x309e55,_0x29c6d2;switch(_0x4e6c63){case TestFrameworkState[_0x1c53d6(0x126)]:_0x309e55=_0x1efc79['test'],_0x29c6d2=TestInfo['getTestUUID'](_0x309e55['id']);if(_0xef174[_0x1c53d6(0x111)](_0x5971df,HookState[_0x1c53d6(0x162)])){logger[_0x1c53d6(0xf8)](_0x1c53d6(0x142)+_0x309e55['id']);const _0x1317f2={};_0x1317f2[_0x1c53d6(0x10c)]=_0x29c6d2,_0x1317f2[_0x1c53d6(0xb1)]=_0x309e55,_0x835e23[_0x1c53d6(0x125)](this[_0x1c53d6(0xe9)](_0x1317f2)),logger[_0x1c53d6(0xf8)](_0x1c53d6(0x112)+_0x309e55['id']),await this['processPendingHooks'](_0x835e23,_0x309e55['id']);}else{if(_0xef174['cemJl'](_0x5971df,HookState[_0x1c53d6(0xbb)])){const _0x4c8409={};_0x4c8409[_0x1c53d6(0x10c)]=_0x29c6d2,_0x4c8409[_0x1c53d6(0xb1)]=_0x309e55,_0x835e23['addMultipleEntries'](this['parseCucumberTestResult'](_0x4c8409)),await this[_0x1c53d6(0x97)](_0x835e23,_0x309e55['id']);}}break;case TestFrameworkState[_0x1c53d6(0xa2)]:_0xef174[_0x1c53d6(0x152)](_0x5971df,HookState['POST'])&&await this[_0x1c53d6(0x99)](_0x835e23,_0x4e6c63,_0x1efc79);break;default:if(CLIUtils['matchHookRegex'](_0x4e6c63['toString']()[_0x1c53d6(0xf7)]('.')[0x1])){const _0x1b0347=await this[_0x1c53d6(0x9e)](_0x835e23,_0x4e6c63,_0x5971df,_0x1efc79);_0x835e23[_0x1c53d6(0x125)](_0x1b0347);}else logger[_0x1c53d6(0xf8)](_0x1c53d6(0x146)+_0x4e6c63+_0x1c53d6(0x11a)+_0x5971df);break;}}catch(_0x1064cb){logger[_0x1c53d6(0x14c)](util[_0x1c53d6(0xfc)](_0xef174[_0x1c53d6(0xc5)],_0x4e6c63,_0x5971df,_0x1efc79[_0x1c53d6(0x15a)],_0x1064cb));}_0x1efc79[_0x1c53d6(0xa9)]=_0x835e23,await this[_0x1c53d6(0x156)](_0x835e23,_0x4e6c63,_0x5971df,_0x1efc79);}[a78_0x198dd9(0xeb)](_0x23fcaa,_0x27ea57,_0x1ae372={}){const _0x218db7=a78_0x198dd9,_0x2b8b75={};_0x2b8b75[_0x218db7(0x115)]=function(_0x4996bc,_0xe6342f){return _0x4996bc===_0xe6342f;};const _0x106b66=_0x2b8b75;let _0x19d953=null;return(_0x106b66[_0x218db7(0x115)](_0x23fcaa,TestFrameworkState[_0x218db7(0x157)])||_0x106b66[_0x218db7(0x115)](_0x23fcaa,TestFrameworkState[_0x218db7(0x149)]))&&this[_0x218db7(0xd7)](_0x23fcaa,_0x1ae372),_0x19d953=TestFramework[_0x218db7(0x153)](),_0x19d953;}[a78_0x198dd9(0xd7)](_0x22b1e7,_0x59449b){const _0x259864=a78_0x198dd9,_0x111683=CLIUtils[_0x259864(0x104)](),_0x13b427=TrackedInstance[_0x259864(0xcf)](_0x111683);let _0x2d2edb=null;logger[_0x259864(0xf8)](_0x259864(0xa6)+_0x111683+',\x20state='+_0x22b1e7),_0x2d2edb=new TestFrameworkInstance(_0x13b427,this[_0x259864(0x10f)](),this[_0x259864(0x130)](),_0x22b1e7,HookState[_0x259864(0x149)]),TestFramework[_0x259864(0xdf)](_0x13b427,_0x2d2edb),logger['debug']('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x13b427['getId']()+_0x259864(0x123)+_0x111683);}[a78_0x198dd9(0xe9)](_0x13bb17){const _0x1259a1=a78_0x198dd9,_0x5bc1c3={};_0x5bc1c3[_0x1259a1(0xe7)]=_0x1259a1(0x158);const _0x2fa0d2=_0x5bc1c3,{testUUID:_0x4b3782,testData:_0x2c5fc9}=_0x13bb17;if(!_0x2c5fc9||!_0x2c5fc9['uuid'])return logger['debug'](_0x2fa0d2[_0x1259a1(0xe7)]),{};const _0x47771f=_0x4b3782,_0x1c92d4=_0x2c5fc9[_0x1259a1(0x14b)],_0x3729f4=this[_0x1259a1(0x10f)]()[0x0],_0x5b6952=this['getTestFrameworksVersions'](),_0x5a16b1={[TestFrameworkConstants[_0x1259a1(0xbd)]]:_0x3729f4,[TestFrameworkConstants[_0x1259a1(0x110)]]:_0x5b6952[_0x3729f4],[TestFrameworkConstants[_0x1259a1(0x13e)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x1259a1(0x11e)]]:{},[TestFrameworkConstants[_0x1259a1(0x109)]]:_0x47771f,[TestFrameworkConstants[_0x1259a1(0xe2)]]:TestFrameworkConstants[_0x1259a1(0xe0)],[TestFrameworkConstants[_0x1259a1(0x15d)]]:_0x2c5fc9[_0x1259a1(0xbf)]||'',[TestFrameworkConstants[_0x1259a1(0xd5)]]:_0x2c5fc9[_0x1259a1(0xed)]||'',[TestFrameworkConstants[_0x1259a1(0x121)]]:_0x1c92d4,[TestFrameworkConstants[_0x1259a1(0x135)]]:_0x2c5fc9[_0x1259a1(0xbf)]||'',[TestFrameworkConstants[_0x1259a1(0xb2)]]:_0x2c5fc9[_0x1259a1(0xcd)]||'',[TestFrameworkConstants[_0x1259a1(0xf6)]]:_0x2c5fc9[_0x1259a1(0xa7)]?.[_0x1259a1(0xc9)]||null,[TestFrameworkConstants[_0x1259a1(0xda)]]:_0x2c5fc9['tags']||[],[TestFrameworkConstants[_0x1259a1(0x13a)]]:_0x2c5fc9['startedAt']||new Date()[_0x1259a1(0xd6)](),[TestFrameworkConstants[_0x1259a1(0x114)]]:_0x2c5fc9['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x1259a1(0x163)]]:_0x2c5fc9['scopes']||[],[TestFrameworkConstants['KEY_TEST_RERUN_NAME']]:_0x2c5fc9['customRerunParam']?.['rerun_name']||_0x2c5fc9[_0x1259a1(0xbf)]||'',[TestFrameworkConstants[_0x1259a1(0xd3)]]:{},[TestFrameworkConstants[_0x1259a1(0xdc)]]:_0x2c5fc9[_0x1259a1(0xb8)]||{}};TestInfo['setTestDetails'](_0x1c92d4,_0x5a16b1),logger['debug'](_0x1259a1(0xab)+_0x2c5fc9['name']+_0x1259a1(0x107)+_0x47771f);const _0x56fa1a={};return _0x56fa1a[_0x1c92d4]=_0x5a16b1,_0x56fa1a;}[a78_0x198dd9(0x141)](_0x3174da){const _0x1ae6ab=a78_0x198dd9,_0x39aef5={'tgHVs':_0x1ae6ab(0x15c),'dvuTy':_0x1ae6ab(0x120),'EtndO':function(_0x2e0c99,_0x2f8357){return _0x2e0c99===_0x2f8357;},'OwbZy':'failed','WXqjH':'UnhandledError','SrEqT':function(_0xed7948,_0x58caae,_0x167eae){return _0xed7948(_0x58caae,_0x167eae);},'bCoEM':function(_0xa4e9c7,_0x8acb4f){return _0xa4e9c7>_0x8acb4f;}},{testUUID:_0x4a244d,testData:_0x48939}=_0x3174da;if(!_0x48939||!_0x48939[_0x1ae6ab(0x14b)])return logger[_0x1ae6ab(0xf8)](_0x39aef5[_0x1ae6ab(0xd2)]),{};const _0x262293=this[_0x1ae6ab(0xeb)](TestFrameworkState[_0x1ae6ab(0x126)],HookState[_0x1ae6ab(0xbb)]),_0x21e7c5=_0x48939[_0x1ae6ab(0x14b)],_0x2e8ec9=TestInfo[_0x1ae6ab(0xff)](_0x21e7c5)||{},_0x3ef8b4=_0x2e8ec9?_0x2e8ec9[TestFrameworkConstants[_0x1ae6ab(0xd3)]]||{}:{},_0x154a77={..._0x2e8ec9,[TestFrameworkConstants[_0x1ae6ab(0xe2)]]:_0x48939['result']||_0x39aef5['dvuTy'],[TestFrameworkConstants[_0x1ae6ab(0xee)]]:_0x48939[_0x1ae6ab(0xf1)]||new Date()[_0x1ae6ab(0xd6)](),[TestFrameworkConstants[_0x1ae6ab(0xe6)]]:new Date()[_0x1ae6ab(0xd6)](),[TestFrameworkConstants[_0x1ae6ab(0xd3)]]:_0x3ef8b4,[TestFrameworkConstants[_0x1ae6ab(0x15f)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x48939[_0x1ae6ab(0xb8)]||{}};_0x39aef5[_0x1ae6ab(0x113)](_0x48939[_0x1ae6ab(0xfe)],_0x39aef5[_0x1ae6ab(0xb5)])&&_0x48939['failure']&&(_0x154a77[TestFrameworkConstants[_0x1ae6ab(0x102)]]=_0x48939['failure_type']||_0x39aef5['WXqjH'],_0x154a77[TestFrameworkConstants[_0x1ae6ab(0x13b)]]=_0x48939[_0x1ae6ab(0x10e)]||'',_0x154a77[TestFrameworkConstants[_0x1ae6ab(0x127)]]=_0x48939[_0x1ae6ab(0xf3)]);const _0x2f995c=TestInfo[_0x1ae6ab(0xff)](_0x21e7c5)[TestFrameworkConstants[_0x1ae6ab(0xba)]]||{},_0x48d1b4=_0x39aef5[_0x1ae6ab(0xc8)](getManualUploadLogs,_0x2f995c,_0x262293[_0x1ae6ab(0xc4)]()['get'](_0x21e7c5)[TestFrameworkConstants[_0x1ae6ab(0x109)]]);if(_0x39aef5[_0x1ae6ab(0xad)](_0x48d1b4[_0x1ae6ab(0x15a)],0x0)){const _0x16d24b=_0x154a77[TestFrameworkConstants[_0x1ae6ab(0x15f)]]||[];_0x154a77[TestFrameworkConstants[_0x1ae6ab(0x15f)]]=[..._0x16d24b,..._0x48d1b4];}_0x48939[_0x1ae6ab(0xac)]&&_0x39aef5[_0x1ae6ab(0xad)](_0x48939['hooks'][_0x1ae6ab(0x15a)],0x0)&&(_0x154a77[TestFrameworkConstants[_0x1ae6ab(0xef)]]=_0x48939['hooks']);TestInfo[_0x1ae6ab(0x12e)](_0x21e7c5,_0x154a77),logger[_0x1ae6ab(0xf8)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x48939[_0x1ae6ab(0xbf)]+_0x1ae6ab(0xcb)+_0x48939[_0x1ae6ab(0xfe)]);const _0x405937={};return _0x405937[_0x21e7c5]=_0x154a77,_0x405937;}async[a78_0x198dd9(0x9e)](_0x5ee7d3,_0x36387f,_0x377f12,_0x18922c){const _0x583471=a78_0x198dd9,_0x981f94={'NNmwk':_0x583471(0xb4),'teQBB':function(_0xcc705){return _0xcc705();},'ZmgUZ':function(_0x1c2f8e,_0x4a048b){return _0x1c2f8e in _0x4a048b;},'iYrhA':function(_0x1f7ae0,_0x45f890){return _0x1f7ae0 in _0x45f890;},'vNPCw':function(_0x2d7dcd,_0x5d93f6){return _0x2d7dcd===_0x5d93f6;},'sbonc':function(_0x582611,_0xdc603a){return _0x582611>_0xdc603a;},'dyFcv':function(_0x12bf1b,_0x583004){return _0x12bf1b===_0x583004;},'Inoov':_0x583471(0x14f),'dUKDG':'UnhandledError','TANwi':_0x583471(0xec),'qCYfj':function(_0x2b53fe,_0x5bc0b4){return _0x2b53fe!==_0x5bc0b4;}},{hookData:_0x4f8269}=_0x18922c;if(!_0x4f8269)return logger[_0x583471(0xf8)](_0x981f94[_0x583471(0x13d)]),{};const _0x43ad11=_0x4f8269[_0x583471(0x14b)]||_0x981f94[_0x583471(0x151)](uuidv4),_0x478d9a=_0x4f8269[_0x583471(0xa0)],_0x34137a=_0x36387f[_0x583471(0x117)]()['split']('.')[0x1],_0xbf78cc=TestInfo[_0x583471(0xff)](_0x478d9a)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x465f67=_0x5ee7d3[_0x583471(0xc4)]()[_0x583471(0x10d)](_0x478d9a);if(!_0x465f67)return logger[_0x583471(0xf8)](_0x583471(0xdb)+_0x478d9a+_0x583471(0xb3)),this[_0x583471(0x10a)](_0x5ee7d3,_0x478d9a,_0x36387f,_0x377f12,_0x18922c),{};let _0x56baac=_0x465f67[TestFrameworkConstants[_0x583471(0x11e)]];!_0x56baac&&(_0x56baac={});!_0x981f94[_0x583471(0x145)](_0x34137a,_0x56baac)&&(_0x56baac[_0x34137a]=[]);let _0x48156d=_0x465f67[TestFrameworkConstants[_0x583471(0xef)]];!_0x48156d&&(_0x48156d={});!_0x981f94['iYrhA'](_0x34137a,_0x48156d)&&(_0x48156d[_0x34137a]=[]);const _0x293453={[TestFrameworkConstants[_0x583471(0x11e)]]:_0x56baac,[TestFrameworkConstants[_0x583471(0xef)]]:_0x48156d},_0x3fb48b={};_0x3fb48b[_0x478d9a]=_0x293453;const _0x43129e=_0x3fb48b;if(_0x981f94['vNPCw'](_0x377f12,HookState[_0x583471(0x162)])){const _0x1747ce={[TestFrameworkConstants[_0x583471(0x92)]]:_0x43ad11,[TestFrameworkConstants[_0x583471(0x15e)]]:TestFrameworkConstants[_0x583471(0xb7)],[TestFrameworkConstants[_0x583471(0x144)]]:_0x4f8269['started_at'],[TestFrameworkConstants[_0x583471(0x14d)]]:[],[TestFrameworkConstants[_0x583471(0xc6)]]:_0x4f8269[_0x583471(0xce)],[TestFrameworkConstants[_0x583471(0xd3)]]:_0xbf78cc};_0x1747ce['key']=_0x34137a;const _0x30ead0=_0x1747ce;_0x56baac[_0x34137a][_0x583471(0x9d)](_0x30ead0),_0x43129e[_0x478d9a][TestFrameworkConstants[_0x583471(0xd8)]]=_0x34137a,logger[_0x583471(0xf8)](_0x583471(0xdd)+_0x34137a+'\x20&\x20hook\x20=\x20'+_0x30ead0+_0x583471(0x98)+_0x18922c);}else{if(_0x981f94[_0x583471(0x131)](_0x377f12,HookState[_0x583471(0xbb)])){const _0x28b4d1=_0x4f8269[_0x583471(0xfe)],_0x137f1b=_0x56baac[_0x34137a]||[];logger['debug'](_0x583471(0xfd)+_0x137f1b+_0x583471(0x143)+_0x18922c);if(_0x981f94[_0x583471(0xd9)](_0x137f1b[_0x583471(0x15a)],0x0)){const _0x59eb04=_0x137f1b[_0x583471(0xe1)]();_0x981f94[_0x583471(0x9a)](_0x4f8269[_0x583471(0xfe)],_0x981f94[_0x583471(0xca)])&&_0x4f8269[_0x583471(0xaa)]?(_0x59eb04[TestFrameworkConstants[_0x583471(0xe3)]]=_0x4f8269[_0x583471(0x108)]||_0x981f94['dUKDG'],_0x59eb04[TestFrameworkConstants[_0x583471(0xd0)]]=_0x4f8269[_0x583471(0x10e)]||'',_0x59eb04[TestFrameworkConstants[_0x583471(0xe5)]]=_0x4f8269[_0x583471(0xaa)]):_0x59eb04[TestFrameworkConstants[_0x583471(0x15e)]]=_0x981f94[_0x583471(0x100)];_0x981f94['qCYfj'](_0x28b4d1,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x59eb04[TestFrameworkConstants[_0x583471(0x15e)]]=_0x28b4d1);_0x59eb04[TestFrameworkConstants[_0x583471(0x134)]]=_0x4f8269[_0x583471(0x137)]||new Date()[_0x583471(0xd6)](),_0x59eb04[TestFrameworkConstants[_0x583471(0xd3)]]=_0xbf78cc;const _0x69642a=_0x59eb04[TestFrameworkConstants[_0x583471(0x92)]];!_0x48156d[_0x34137a]&&(_0x48156d[_0x34137a]=[]),_0x48156d[_0x34137a][_0x583471(0x9d)](_0x59eb04),_0x43129e[_0x478d9a][TestFrameworkConstants[_0x583471(0x10b)]]=_0x34137a;}}}return logger[_0x583471(0xf8)](_0x583471(0xf0)+_0x4f8269[_0x583471(0xce)]+_0x583471(0x12a)+_0x43ad11+_0x583471(0xf2)+_0x478d9a),_0x43129e;}[a78_0x198dd9(0x119)](_0x30522e){const _0x27f54d=a78_0x198dd9,_0x701522={};_0x701522[_0x27f54d(0xf9)]='base64';const _0x348470=_0x701522;try{const _0x56cd7e=_0x30522e[_0x27f54d(0xa8)]?_0x30522e[_0x27f54d(0xa8)]['id']:_0x30522e[_0x27f54d(0xaf)][_0x27f54d(0xa0)],_0x5ad335=_0x30522e[_0x27f54d(0xa9)],_0x404e1a=_0x5ad335['getContext'](),_0x1a2b2e=_0x5ad335[_0x27f54d(0xc4)]()[_0x27f54d(0x10d)](_0x56cd7e);if(!_0x1a2b2e)return logger['debug'](_0x27f54d(0xae)+_0x56cd7e),{};logger[_0x27f54d(0xf8)](_0x27f54d(0x14a)+_0x56cd7e);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x192ef6='',[TestFrameworkConstants[_0x27f54d(0x110)]]:_0x3720dd='',[TestFrameworkConstants[_0x27f54d(0x13a)]]:_0x4b3d41='',[TestFrameworkConstants[_0x27f54d(0xee)]]:_0x2d2037=''}=_0x1a2b2e,_0x2d9f55=_0x5ad335[_0x27f54d(0x133)]()[_0x27f54d(0x117)]()[_0x27f54d(0xf7)]('.')[0x1],_0x28048a=_0x5ad335[_0x27f54d(0x91)]()[_0x27f54d(0x117)]()[_0x27f54d(0xf7)]('.')[0x1],_0x564c6b=global?.[_0x27f54d(0x94)]??0x0,_0x1aa136=_0x5ad335[_0x27f54d(0x11f)](),_0x3a3ec6=Buffer[_0x27f54d(0xa4)](JSON[_0x27f54d(0x11b)](_0x1a2b2e))[_0x27f54d(0x117)](_0x348470['XoBak']),_0x2f3bc8={'hash':_0x404e1a[_0x27f54d(0x147)](),'threadId':_0x404e1a[_0x27f54d(0x93)]()[_0x27f54d(0x117)](),'processId':_0x404e1a[_0x27f54d(0x124)]()[_0x27f54d(0x117)]()},_0x1c17a6={};_0x1c17a6[_0x27f54d(0x12c)]=_0x564c6b,_0x1c17a6[_0x27f54d(0x8e)]=_0x192ef6,_0x1c17a6[_0x27f54d(0x132)]=_0x3720dd,_0x1c17a6[_0x27f54d(0x159)]=_0x2d9f55,_0x1c17a6[_0x27f54d(0xc0)]=_0x28048a,_0x1c17a6[_0x27f54d(0x15b)]=_0x4b3d41,_0x1c17a6[_0x27f54d(0x148)]=_0x2d2037,_0x1c17a6[_0x27f54d(0x14b)]=_0x1aa136,_0x1c17a6[_0x27f54d(0x13c)]=_0x3a3ec6,_0x1c17a6['executionContext']=_0x2f3bc8;const _0x3906fa=_0x1c17a6;return logger['debug'](_0x27f54d(0x139)+_0x56cd7e+_0x27f54d(0x138)+_0x2d9f55+'\x20hookState:\x20'+_0x28048a),_0x3906fa;}catch(_0x12a556){return logger['error'](_0x27f54d(0xd1)+util[_0x27f54d(0xfc)](_0x12a556)),{};}}async['sendLogCreatedEvent'](_0x5206e1,_0x121ac7,_0x5f23e1){const _0x196d79=a78_0x198dd9,_0x594daa={'ByPmR':function(_0x331357,_0x2a9b13,_0x1277e0){return _0x331357(_0x2a9b13,_0x1277e0);},'NsIrE':function(_0x13ab0c,_0x21c1d7){return _0x13ab0c===_0x21c1d7;},'yTjiD':_0x196d79(0xc3),'BzxGG':function(_0x5cf3f3,_0x1b6a1f){return _0x5cf3f3/_0x1b6a1f;},'yaKqB':function(_0x254217,_0x7d981f){return _0x254217<_0x7d981f;},'NWJpc':function(_0x1d0a73,_0x2a7a0d){return _0x1d0a73*_0x2a7a0d;},'vrQlb':function(_0x5dad04,_0x29e2f4){return _0x5dad04+_0x29e2f4;},'zVoHO':_0x196d79(0x150)};try{const _0x25be44=_0x5f23e1[_0x196d79(0x10c)],_0x136881=_0x5206e1['getAllData']()['get'](_0x25be44),{[TestFrameworkConstants[_0x196d79(0xbd)]]:_0x175dc6='',[TestFrameworkConstants[_0x196d79(0x110)]]:_0x4075fb=''}=_0x136881,_0x5bda2a=TestInfo[_0x196d79(0x11c)](_0x25be44),_0x42ee54=TestInfo[_0x196d79(0xff)](_0x25be44)[TestFrameworkConstants[_0x196d79(0xba)]]||{},_0x2fd160=_0x594daa[_0x196d79(0xa5)](getMediaArtifactsLogs,_0x42ee54,_0x5206e1[_0x196d79(0xc4)]()[_0x196d79(0x10d)](_0x25be44)[TestFrameworkConstants[_0x196d79(0x109)]]),_0x543b1b=(_0x5bda2a||[])[_0x196d79(0x12b)](_0x2fd160||[]);if(!_0x543b1b||_0x594daa['NsIrE'](_0x543b1b[_0x196d79(0x15a)],0x0)){logger['debug'](_0x594daa[_0x196d79(0x101)]);return;}const _0x3acf7f=0x28,_0x25346f=Math[_0x196d79(0x105)](_0x594daa[_0x196d79(0xfb)](_0x543b1b[_0x196d79(0x15a)],_0x3acf7f));for(let _0x4381aa=0x0;_0x594daa['yaKqB'](_0x4381aa,_0x25346f);_0x4381aa++){const _0x25aef0=_0x594daa[_0x196d79(0x9c)](_0x4381aa,_0x3acf7f),_0x50b7f3=_0x594daa[_0x196d79(0xbc)](_0x25aef0,_0x3acf7f),_0x541817=_0x543b1b['slice'](_0x25aef0,_0x50b7f3),_0x14d52b={'platformIndex':global?.[_0x196d79(0x94)]??0x0,'logs':_0x541817,'testFrameworkName':_0x175dc6,'testFrameworkVersion':_0x4075fb,'testFrameworkState':_0x121ac7[_0x196d79(0x117)]()[_0x196d79(0xf7)]('.')[0x1]};logger[_0x196d79(0xf8)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x25be44+'\x20batch\x20'+_0x594daa['vrQlb'](_0x4381aa,0x1)+'/'+_0x25346f+_0x196d79(0x95)+util['inspect'](_0x14d52b));const _0x3c88fb=await GrpcClient[_0x196d79(0x154)]()[_0x196d79(0xa1)](_0x14d52b);logger[_0x196d79(0xf8)](_0x196d79(0xea)+_0x25be44+'\x20batch\x20'+_0x594daa[_0x196d79(0xbc)](_0x4381aa,0x1)+'/'+_0x25346f+_0x196d79(0xc7)+util[_0x196d79(0xd4)](_0x3c88fb));}}catch(_0x411087){logger[_0x196d79(0x14c)]('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util[_0x196d79(0xfc)](_0x411087));}logger['debug'](_0x594daa[_0x196d79(0x128)]);}[a78_0x198dd9(0x10a)](_0x29daf3,_0x5c217f,_0x3d3f03,_0x21e30a,_0x5ed5a4){const _0x157043=a78_0x198dd9,_0x1c4ca4={'testId':_0x5c217f,'testFrameworkState':_0x3d3f03,'hookState':_0x21e30a,'args':_0x5ed5a4,'timestamp':new Date()[_0x157043(0xd6)]()};_0x29daf3[_0x157043(0x9b)](_0x5c217f,_0x1c4ca4),logger[_0x157043(0xf8)](_0x157043(0xf5)+_0x5c217f+_0x157043(0xe8)+_0x3d3f03+_0x157043(0xa3)+_0x21e30a);}async[a78_0x198dd9(0x97)](_0x2aa98c,_0x5003fc){const _0x55cf5c=a78_0x198dd9,_0x4eb203={};_0x4eb203[_0x55cf5c(0x160)]=function(_0x4af1e0,_0x5ac64a){return _0x4af1e0>_0x5ac64a;};const _0x1f36c6=_0x4eb203;if(!_0x2aa98c['hasPendingHooks'](_0x5003fc))return;const _0x290889=_0x2aa98c[_0x55cf5c(0xb6)](_0x5003fc);logger[_0x55cf5c(0xf8)](_0x55cf5c(0x9f)+_0x290889[_0x55cf5c(0x15a)]+_0x55cf5c(0x140)+_0x5003fc);for(const _0x2226de of _0x290889){try{const _0x16e0c0=await this[_0x55cf5c(0x9e)](_0x2aa98c,_0x2226de[_0x55cf5c(0x159)],_0x2226de['hookState'],_0x2226de[_0x55cf5c(0x96)]);_0x16e0c0&&_0x1f36c6[_0x55cf5c(0x160)](Object[_0x55cf5c(0xf4)](_0x16e0c0)['length'],0x0)&&_0x2aa98c[_0x55cf5c(0x125)](_0x16e0c0),await this[_0x55cf5c(0x156)](_0x2aa98c,_0x2226de[_0x55cf5c(0x159)],_0x2226de[_0x55cf5c(0xc0)],_0x2226de[_0x55cf5c(0x96)]);}catch(_0x575b8c){logger[_0x55cf5c(0x14c)](_0x55cf5c(0x8d)+_0x5003fc+_0x55cf5c(0x118)+_0x575b8c);}}_0x2aa98c[_0x55cf5c(0xb0)](_0x5003fc),logger[_0x55cf5c(0xf8)](_0x55cf5c(0xc1)+_0x5003fc);}}module[a78_0x198dd9(0x106)]=CucumberTestFramework;
|
|
1
|
+
const a78_0x1f2baa=a78_0x16d4;(function(_0x2ffaba,_0x53b18b){const _0x99bca0=a78_0x16d4,_0x4b3e8b=_0x2ffaba();while(!![]){try{const _0x5e00d3=parseInt(_0x99bca0(0x146))/0x1*(parseInt(_0x99bca0(0xed))/0x2)+-parseInt(_0x99bca0(0x164))/0x3*(-parseInt(_0x99bca0(0x152))/0x4)+-parseInt(_0x99bca0(0x128))/0x5*(parseInt(_0x99bca0(0x130))/0x6)+-parseInt(_0x99bca0(0x114))/0x7*(parseInt(_0x99bca0(0x142))/0x8)+-parseInt(_0x99bca0(0x12d))/0x9*(parseInt(_0x99bca0(0x14d))/0xa)+-parseInt(_0x99bca0(0x18d))/0xb*(-parseInt(_0x99bca0(0x190))/0xc)+-parseInt(_0x99bca0(0x116))/0xd*(-parseInt(_0x99bca0(0x140))/0xe);if(_0x5e00d3===_0x53b18b)break;else _0x4b3e8b['push'](_0x4b3e8b['shift']());}catch(_0x1d8b50){_0x4b3e8b['push'](_0x4b3e8b['shift']());}}}(a78_0x52b0,0xc4ced));const TestFramework=require(a78_0x1f2baa(0x117)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a78_0x1f2baa(0xd3)),{createClassLogger}=require(a78_0x1f2baa(0x13f)),TestFrameworkInstance=require(a78_0x1f2baa(0x127)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a78_0x1f2baa(0x191)),TestFrameworkConstants=require(a78_0x1f2baa(0xf5)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a78_0x1f2baa(0x18a)),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require(a78_0x1f2baa(0x16f)),util=require(a78_0x1f2baa(0x158)),TestInfo=require(a78_0x1f2baa(0x123)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x583c67,_0xba3b70,_0x4d05b7){super(_0x583c67,_0xba3b70,_0x4d05b7);}async[a78_0x1f2baa(0x10d)](_0x3ef7fc,_0x2bd7c7,_0x4c2bc7={}){const _0x4fae68=a78_0x1f2baa,_0xd8a760={};_0xd8a760[_0x4fae68(0xf0)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0xd8a760[_0x4fae68(0x14f)]=function(_0x1d0516,_0x30da64){return _0x1d0516===_0x30da64;},_0xd8a760['khgJE']=function(_0x1d6d31,_0x58f75c){return _0x1d6d31===_0x58f75c;},_0xd8a760[_0x4fae68(0xd2)]=_0x4fae68(0x181);const _0x399dcc=_0xd8a760;await super['trackEvent'](_0x3ef7fc,_0x2bd7c7,_0x4c2bc7);const _0x36d630=this[_0x4fae68(0x100)](_0x3ef7fc,_0x2bd7c7,_0x4c2bc7);if(!_0x36d630){logger['debug'](_0x399dcc[_0x4fae68(0xf0)]);return;}try{let _0x1ded4b,_0x2d2e67;switch(_0x3ef7fc){case TestFrameworkState[_0x4fae68(0x17b)]:_0x1ded4b=_0x4c2bc7[_0x4fae68(0x10a)],_0x2d2e67=TestInfo[_0x4fae68(0x143)](_0x1ded4b['id']);if(_0x399dcc[_0x4fae68(0x14f)](_0x2bd7c7,HookState[_0x4fae68(0x178)])){logger[_0x4fae68(0x15e)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x1ded4b['id']);const _0x5c0958={};_0x5c0958['testUUID']=_0x2d2e67,_0x5c0958[_0x4fae68(0x156)]=_0x1ded4b,_0x36d630['addMultipleEntries'](this['parseCucumberTest'](_0x5c0958)),logger[_0x4fae68(0x15e)](_0x4fae68(0x15d)+_0x1ded4b['id']),await this[_0x4fae68(0x107)](_0x36d630,_0x1ded4b['id']);}else{if(_0x399dcc[_0x4fae68(0x105)](_0x2bd7c7,HookState[_0x4fae68(0x119)])){const _0x49eef6={};_0x49eef6[_0x4fae68(0xcd)]=_0x2d2e67,_0x49eef6[_0x4fae68(0x156)]=_0x1ded4b,_0x36d630['addMultipleEntries'](this['parseCucumberTestResult'](_0x49eef6)),await this['processPendingHooks'](_0x36d630,_0x1ded4b['id']);}}break;case TestFrameworkState[_0x4fae68(0x111)]:_0x399dcc[_0x4fae68(0x14f)](_0x2bd7c7,HookState[_0x4fae68(0x119)])&&await this[_0x4fae68(0xd0)](_0x36d630,_0x3ef7fc,_0x4c2bc7);break;default:if(CLIUtils['matchHookRegex'](_0x3ef7fc[_0x4fae68(0x11c)]()[_0x4fae68(0x141)]('.')[0x1])){const _0x30ab76=await this[_0x4fae68(0x193)](_0x36d630,_0x3ef7fc,_0x2bd7c7,_0x4c2bc7);_0x36d630['addMultipleEntries'](_0x30ab76);}else logger[_0x4fae68(0x15e)](_0x4fae68(0x138)+_0x3ef7fc+_0x4fae68(0xe9)+_0x2bd7c7);break;}}catch(_0x38bc29){logger[_0x4fae68(0xf2)](util[_0x4fae68(0x133)](_0x399dcc[_0x4fae68(0xd2)],_0x3ef7fc,_0x2bd7c7,_0x4c2bc7[_0x4fae68(0x131)],_0x38bc29));}_0x4c2bc7[_0x4fae68(0x139)]=_0x36d630,await this['runHooks'](_0x36d630,_0x3ef7fc,_0x2bd7c7,_0x4c2bc7);}[a78_0x1f2baa(0x100)](_0x4f0515,_0x30b0b8,_0xb35b28={}){const _0x48e73b=a78_0x1f2baa,_0x52a1c0={};_0x52a1c0[_0x48e73b(0x12a)]=function(_0x4235ee,_0x16a006){return _0x4235ee===_0x16a006;};const _0x2bca1d=_0x52a1c0;let _0xdf328d=null;return(_0x2bca1d[_0x48e73b(0x12a)](_0x4f0515,TestFrameworkState[_0x48e73b(0x177)])||_0x2bca1d[_0x48e73b(0x12a)](_0x4f0515,TestFrameworkState[_0x48e73b(0x102)]))&&this[_0x48e73b(0xec)](_0x4f0515,_0xb35b28),_0xdf328d=TestFramework[_0x48e73b(0x11f)](),_0xdf328d;}['trackCucumberInstance'](_0x6c3570,_0x47c23a){const _0x5a79b7=a78_0x1f2baa,_0x495882=CLIUtils[_0x5a79b7(0x182)](),_0x3d4c56=TrackedInstance[_0x5a79b7(0x192)](_0x495882);let _0x1ffecb=null;logger[_0x5a79b7(0x15e)](_0x5a79b7(0x162)+_0x495882+_0x5a79b7(0x186)+_0x6c3570),_0x1ffecb=new TestFrameworkInstance(_0x3d4c56,this[_0x5a79b7(0x155)](),this['getTestFrameworksVersions'](),_0x6c3570,HookState['NONE']),TestFramework[_0x5a79b7(0xdb)](_0x3d4c56,_0x1ffecb),logger[_0x5a79b7(0x15e)](_0x5a79b7(0xcb)+_0x3d4c56['getId']()+'\x20target='+_0x495882);}[a78_0x1f2baa(0x15c)](_0x43b2ea){const _0x23947e=a78_0x1f2baa,_0x13ee0f={};_0x13ee0f[_0x23947e(0x132)]='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x23e024=_0x13ee0f,{testUUID:_0x1a1d7b,testData:_0x2fd01b}=_0x43b2ea;if(!_0x2fd01b||!_0x2fd01b[_0x23947e(0x16f)])return logger['debug'](_0x23e024[_0x23947e(0x132)]),{};const _0x35b72e=_0x1a1d7b,_0x142b54=_0x2fd01b[_0x23947e(0x16f)],_0x338602=this[_0x23947e(0x155)]()[0x0],_0x3b7315=this[_0x23947e(0x150)](),_0x5ae274={[TestFrameworkConstants[_0x23947e(0xfa)]]:_0x338602,[TestFrameworkConstants[_0x23947e(0x185)]]:_0x3b7315[_0x338602],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants[_0x23947e(0x171)]]:{},[TestFrameworkConstants[_0x23947e(0xee)]]:{},[TestFrameworkConstants[_0x23947e(0x12f)]]:_0x35b72e,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x23947e(0xd4)],[TestFrameworkConstants['KEY_AUTOMATE_SESSION_NAME']]:_0x2fd01b['name']||'',[TestFrameworkConstants[_0x23947e(0xfe)]]:_0x2fd01b[_0x23947e(0x179)]||'',[TestFrameworkConstants[_0x23947e(0xca)]]:_0x142b54,[TestFrameworkConstants[_0x23947e(0x154)]]:_0x2fd01b[_0x23947e(0x184)]||'',[TestFrameworkConstants[_0x23947e(0xf4)]]:_0x2fd01b[_0x23947e(0x188)]||'',[TestFrameworkConstants[_0x23947e(0xd8)]]:_0x2fd01b[_0x23947e(0x11a)]?.[_0x23947e(0x17e)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x2fd01b['tags']||[],[TestFrameworkConstants[_0x23947e(0x159)]]:_0x2fd01b[_0x23947e(0x12e)]||new Date()[_0x23947e(0xf3)](),[TestFrameworkConstants[_0x23947e(0xdc)]]:_0x2fd01b[_0x23947e(0x197)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x2fd01b[_0x23947e(0x197)]||[],[TestFrameworkConstants[_0x23947e(0x172)]]:_0x2fd01b[_0x23947e(0x180)]?.[_0x23947e(0xda)]||_0x2fd01b[_0x23947e(0x184)]||'',[TestFrameworkConstants[_0x23947e(0xe8)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x2fd01b[_0x23947e(0x12b)]||{}};TestInfo[_0x23947e(0x144)](_0x142b54,_0x5ae274),logger[_0x23947e(0x15e)](_0x23947e(0xf6)+_0x2fd01b[_0x23947e(0x184)]+_0x23947e(0x16d)+_0x35b72e);const _0x48223a={};return _0x48223a[_0x142b54]=_0x5ae274,_0x48223a;}[a78_0x1f2baa(0xc7)](_0x84309d){const _0x5a3a76=a78_0x1f2baa,_0x34c3d2={'NDQkN':_0x5a3a76(0xd1),'jAhDW':_0x5a3a76(0xc6),'bQBgr':function(_0xa801d6,_0x512c8e){return _0xa801d6===_0x512c8e;},'MTtGM':_0x5a3a76(0xe5),'zAYGw':_0x5a3a76(0x10c),'KtLNl':function(_0x23a544,_0x1893bf,_0x5a1fde){return _0x23a544(_0x1893bf,_0x5a1fde);},'UlsxC':function(_0x310dc0,_0x21e6de){return _0x310dc0>_0x21e6de;}},{testUUID:_0x463cc0,testData:_0x537a62}=_0x84309d;if(!_0x537a62||!_0x537a62['uuid'])return logger[_0x5a3a76(0x15e)](_0x34c3d2[_0x5a3a76(0xe7)]),{};const _0x1177ce=this['resolveInstance'](TestFrameworkState[_0x5a3a76(0x17b)],HookState[_0x5a3a76(0x119)]),_0x412843=_0x537a62[_0x5a3a76(0x16f)],_0x71636a=TestInfo['getTestDetails'](_0x412843)||{},_0x457b0e=_0x71636a?_0x71636a[TestFrameworkConstants[_0x5a3a76(0xe8)]]||{}:{},_0x1bb980={..._0x71636a,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x537a62[_0x5a3a76(0x10b)]||_0x34c3d2[_0x5a3a76(0x13e)],[TestFrameworkConstants[_0x5a3a76(0x165)]]:_0x537a62[_0x5a3a76(0x145)]||new Date()[_0x5a3a76(0xf3)](),[TestFrameworkConstants[_0x5a3a76(0x18c)]]:new Date()[_0x5a3a76(0xf3)](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x457b0e,[TestFrameworkConstants[_0x5a3a76(0x15f)]]:[],[TestFrameworkConstants[_0x5a3a76(0x174)]]:_0x537a62[_0x5a3a76(0x12b)]||{}};_0x34c3d2[_0x5a3a76(0xce)](_0x537a62[_0x5a3a76(0x10b)],_0x34c3d2[_0x5a3a76(0x14e)])&&_0x537a62[_0x5a3a76(0x160)]&&(_0x1bb980[TestFrameworkConstants[_0x5a3a76(0xe4)]]=_0x537a62[_0x5a3a76(0x151)]||_0x34c3d2['zAYGw'],_0x1bb980[TestFrameworkConstants[_0x5a3a76(0x149)]]=_0x537a62[_0x5a3a76(0x167)]||'',_0x1bb980[TestFrameworkConstants[_0x5a3a76(0x12c)]]=_0x537a62[_0x5a3a76(0x160)]);const _0x523081=TestInfo[_0x5a3a76(0x126)](_0x412843)[TestFrameworkConstants[_0x5a3a76(0xe0)]]||{},_0x3b0ea6=_0x34c3d2[_0x5a3a76(0x15b)](getManualUploadLogs,_0x523081,_0x1177ce['getAllData']()[_0x5a3a76(0x189)](_0x412843)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x34c3d2[_0x5a3a76(0x17f)](_0x3b0ea6[_0x5a3a76(0x131)],0x0)){const _0xa0127d=_0x1bb980[TestFrameworkConstants[_0x5a3a76(0x15f)]]||[];_0x1bb980[TestFrameworkConstants[_0x5a3a76(0x15f)]]=[..._0xa0127d,..._0x3b0ea6];}_0x537a62[_0x5a3a76(0x194)]&&_0x34c3d2[_0x5a3a76(0x17f)](_0x537a62['hooks'][_0x5a3a76(0x131)],0x0)&&(_0x1bb980[TestFrameworkConstants[_0x5a3a76(0x171)]]=_0x537a62[_0x5a3a76(0x194)]);TestInfo['setTestDetails'](_0x412843,_0x1bb980),logger[_0x5a3a76(0x15e)](_0x5a3a76(0xde)+_0x537a62[_0x5a3a76(0x184)]+_0x5a3a76(0x13a)+_0x537a62[_0x5a3a76(0x10b)]);const _0x45e853={};return _0x45e853[_0x412843]=_0x1bb980,_0x45e853;}async[a78_0x1f2baa(0x193)](_0x35d2d9,_0x259d51,_0x299890,_0x10e212){const _0x5bd31c=a78_0x1f2baa,_0x1a7ea0={'mMtSS':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','eICgZ':function(_0x5ccde9){return _0x5ccde9();},'zPXgO':function(_0xa6728c,_0x4d7477){return _0xa6728c in _0x4d7477;},'orbXJ':function(_0x369505,_0x1e04fc){return _0x369505===_0x1e04fc;},'kCezF':function(_0x120a68,_0x4fb03e){return _0x120a68===_0x4fb03e;},'rGpkH':function(_0x9f2381,_0x57ab34){return _0x9f2381>_0x57ab34;},'Rgpez':function(_0x2d4e87,_0x431078){return _0x2d4e87===_0x431078;},'dlsdm':'failed','yEcNm':'UnhandledError','ISEOG':_0x5bd31c(0x17c),'ULsNg':function(_0xaf5bfe,_0x109951){return _0xaf5bfe!==_0x109951;}},{hookData:_0x1c972d}=_0x10e212;if(!_0x1c972d)return logger[_0x5bd31c(0x15e)](_0x1a7ea0[_0x5bd31c(0x157)]),{};const _0x11d13e=_0x1c972d[_0x5bd31c(0x16f)]||_0x1a7ea0[_0x5bd31c(0x110)](uuidv4),_0x3a306c=_0x1c972d['test_run_id'],_0x4ab59e=_0x259d51[_0x5bd31c(0x11c)]()[_0x5bd31c(0x141)]('.')[0x1],_0xe56ab7=TestInfo[_0x5bd31c(0x126)](_0x3a306c)[TestFrameworkConstants[_0x5bd31c(0xe8)]]||{},_0x38d15b=_0x35d2d9[_0x5bd31c(0x163)]()[_0x5bd31c(0x189)](_0x3a306c);if(!_0x38d15b)return logger[_0x5bd31c(0x15e)]('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x3a306c+_0x5bd31c(0x147)),this[_0x5bd31c(0x169)](_0x35d2d9,_0x3a306c,_0x259d51,_0x299890,_0x10e212),{};let _0x58a517=_0x38d15b[TestFrameworkConstants[_0x5bd31c(0xee)]];!_0x58a517&&(_0x58a517={});!_0x1a7ea0[_0x5bd31c(0x11d)](_0x4ab59e,_0x58a517)&&(_0x58a517[_0x4ab59e]=[]);let _0x32b59b=_0x38d15b[TestFrameworkConstants[_0x5bd31c(0x171)]];!_0x32b59b&&(_0x32b59b={});!_0x1a7ea0['zPXgO'](_0x4ab59e,_0x32b59b)&&(_0x32b59b[_0x4ab59e]=[]);const _0x1a9fe0={[TestFrameworkConstants[_0x5bd31c(0xee)]]:_0x58a517,[TestFrameworkConstants[_0x5bd31c(0x171)]]:_0x32b59b},_0x5122cb={};_0x5122cb[_0x3a306c]=_0x1a9fe0;const _0x3a6339=_0x5122cb;if(_0x1a7ea0[_0x5bd31c(0xc5)](_0x299890,HookState['PRE'])){const _0x269fde={[TestFrameworkConstants[_0x5bd31c(0x18e)]]:_0x11d13e,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0x5bd31c(0x16c)],[TestFrameworkConstants[_0x5bd31c(0x175)]]:_0x1c972d[_0x5bd31c(0x134)],[TestFrameworkConstants[_0x5bd31c(0x14b)]]:[],[TestFrameworkConstants[_0x5bd31c(0xe1)]]:_0x1c972d[_0x5bd31c(0x17a)],[TestFrameworkConstants[_0x5bd31c(0xe8)]]:_0xe56ab7};_0x269fde[_0x5bd31c(0xc8)]=_0x4ab59e;const _0x253b6b=_0x269fde;_0x58a517[_0x4ab59e][_0x5bd31c(0x10f)](_0x253b6b),_0x3a6339[_0x3a306c][TestFrameworkConstants[_0x5bd31c(0x166)]]=_0x4ab59e,logger[_0x5bd31c(0x15e)](_0x5bd31c(0x196)+_0x4ab59e+'\x20&\x20hook\x20=\x20'+_0x253b6b+_0x5bd31c(0x16b)+_0x10e212);}else{if(_0x1a7ea0[_0x5bd31c(0x109)](_0x299890,HookState['POST'])){const _0x418e76=_0x1c972d[_0x5bd31c(0x10b)],_0x3b585d=_0x58a517[_0x4ab59e]||[];logger[_0x5bd31c(0x15e)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x3b585d+_0x5bd31c(0x113)+_0x10e212);if(_0x1a7ea0['rGpkH'](_0x3b585d['length'],0x0)){const _0x3ff3d3=_0x3b585d[_0x5bd31c(0xfd)]();_0x1a7ea0['Rgpez'](_0x1c972d[_0x5bd31c(0x10b)],_0x1a7ea0['dlsdm'])&&_0x1c972d[_0x5bd31c(0x125)]?(_0x3ff3d3[TestFrameworkConstants[_0x5bd31c(0x136)]]=_0x1c972d[_0x5bd31c(0x151)]||_0x1a7ea0['yEcNm'],_0x3ff3d3[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x1c972d[_0x5bd31c(0x167)]||'',_0x3ff3d3[TestFrameworkConstants[_0x5bd31c(0xd6)]]=_0x1c972d['failure_data']):_0x3ff3d3[TestFrameworkConstants[_0x5bd31c(0x118)]]=_0x1a7ea0[_0x5bd31c(0x13d)];_0x1a7ea0['ULsNg'](_0x418e76,TestFrameworkConstants[_0x5bd31c(0x16c)])&&(_0x3ff3d3[TestFrameworkConstants[_0x5bd31c(0x118)]]=_0x418e76);_0x3ff3d3[TestFrameworkConstants[_0x5bd31c(0x121)]]=_0x1c972d[_0x5bd31c(0xf8)]||new Date()['toISOString'](),_0x3ff3d3[TestFrameworkConstants[_0x5bd31c(0xe8)]]=_0xe56ab7;const _0x114e66=_0x3ff3d3[TestFrameworkConstants['KEY_HOOK_ID']];!_0x32b59b[_0x4ab59e]&&(_0x32b59b[_0x4ab59e]=[]),_0x32b59b[_0x4ab59e][_0x5bd31c(0x10f)](_0x3ff3d3),_0x3a6339[_0x3a306c][TestFrameworkConstants[_0x5bd31c(0x148)]]=_0x4ab59e;}}}return logger[_0x5bd31c(0x15e)]('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x1c972d['hook_type']+_0x5bd31c(0x16e)+_0x11d13e+'\x20for\x20test:\x20'+_0x3a306c),_0x3a6339;}[a78_0x1f2baa(0xfb)](_0x409b40){const _0x4f6953=a78_0x1f2baa,_0x24a47a={};_0x24a47a[_0x4f6953(0x13b)]=_0x4f6953(0x103);const _0x6def00=_0x24a47a;try{const _0x2bf455=_0x409b40[_0x4f6953(0x10a)]?_0x409b40[_0x4f6953(0x10a)]['id']:_0x409b40[_0x4f6953(0x14a)]['test_run_id'],_0x58ff4e=_0x409b40[_0x4f6953(0x139)],_0x170e2b=_0x58ff4e[_0x4f6953(0x170)](),_0x10fb64=_0x58ff4e[_0x4f6953(0x163)]()['get'](_0x2bf455);if(!_0x10fb64)return logger[_0x4f6953(0x15e)](_0x4f6953(0xdd)+_0x2bf455),{};logger[_0x4f6953(0x15e)](_0x4f6953(0x168)+_0x2bf455);const {[TestFrameworkConstants[_0x4f6953(0xfa)]]:_0x240ea8='',[TestFrameworkConstants[_0x4f6953(0x185)]]:_0x4a9aff='',[TestFrameworkConstants[_0x4f6953(0x159)]]:_0x207e31='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x589c58=''}=_0x10fb64,_0x10ed47=_0x58ff4e[_0x4f6953(0xe3)]()[_0x4f6953(0x11c)]()[_0x4f6953(0x141)]('.')[0x1],_0x1e9fee=_0x58ff4e['getCurrentHookState']()['toString']()[_0x4f6953(0x141)]('.')[0x1],_0x1bc5f0=global?.['browserstackPlatformIndex']??0x0,_0x5e9414=_0x58ff4e['getRef'](),_0x2c48a6=Buffer[_0x4f6953(0x129)](JSON[_0x4f6953(0xd7)](_0x10fb64))[_0x4f6953(0x11c)](_0x6def00[_0x4f6953(0x13b)]),_0x36dd74={'hash':_0x170e2b[_0x4f6953(0xdf)](),'threadId':_0x170e2b[_0x4f6953(0x183)]()['toString'](),'processId':_0x170e2b[_0x4f6953(0x122)]()[_0x4f6953(0x11c)]()},_0x1b33be={};_0x1b33be[_0x4f6953(0xc9)]=_0x1bc5f0,_0x1b33be[_0x4f6953(0x153)]=_0x240ea8,_0x1b33be['testFrameworkVersion']=_0x4a9aff,_0x1b33be['testFrameworkState']=_0x10ed47,_0x1b33be[_0x4f6953(0x115)]=_0x1e9fee,_0x1b33be['startedAt']=_0x207e31,_0x1b33be['endedAt']=_0x589c58,_0x1b33be[_0x4f6953(0x16f)]=_0x5e9414,_0x1b33be[_0x4f6953(0xf9)]=_0x2c48a6,_0x1b33be[_0x4f6953(0x11b)]=_0x36dd74;const _0x393a4c=_0x1b33be;return logger[_0x4f6953(0x15e)](_0x4f6953(0x14c)+_0x2bf455+_0x4f6953(0x120)+_0x10ed47+_0x4f6953(0xe6)+_0x1e9fee),_0x393a4c;}catch(_0x46009b){return logger[_0x4f6953(0xf2)](_0x4f6953(0x18b)+util[_0x4f6953(0x133)](_0x46009b)),{};}}async[a78_0x1f2baa(0xd0)](_0x1beda9,_0x1e1210,_0x3933ea){const _0x34966b=a78_0x1f2baa,_0x17cf03={'FSuSm':function(_0x4f2e3a,_0x44c747,_0x22d575){return _0x4f2e3a(_0x44c747,_0x22d575);},'RCEal':function(_0x99c5,_0xb76be9){return _0x99c5===_0xb76be9;},'zSbFO':_0x34966b(0x101),'bLYgr':function(_0x2439ff,_0x128fc1){return _0x2439ff/_0x128fc1;},'XZXbZ':function(_0x8c5906,_0x43e809){return _0x8c5906<_0x43e809;},'cXJzz':function(_0xe05418,_0x29cca0){return _0xe05418*_0x29cca0;},'HaFDk':function(_0x546949,_0x2c836e){return _0x546949+_0x2c836e;},'pvTYN':function(_0x14ced6,_0x3e6d33){return _0x14ced6+_0x3e6d33;},'faACI':_0x34966b(0xfc)};try{const _0x39a0f4=_0x3933ea[_0x34966b(0xcd)],_0x1cb9a5=_0x1beda9['getAllData']()['get'](_0x39a0f4),{[TestFrameworkConstants[_0x34966b(0xfa)]]:_0x1c93d8='',[TestFrameworkConstants[_0x34966b(0x185)]]:_0x4de725=''}=_0x1cb9a5,_0x257b9e=TestInfo['readLogObjects'](_0x39a0f4),_0x56c1b2=TestInfo['getTestDetails'](_0x39a0f4)[TestFrameworkConstants[_0x34966b(0xe0)]]||{},_0x14b248=_0x17cf03['FSuSm'](getMediaArtifactsLogs,_0x56c1b2,_0x1beda9[_0x34966b(0x163)]()[_0x34966b(0x189)](_0x39a0f4)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x133edb=(_0x257b9e||[])[_0x34966b(0x112)](_0x14b248||[]);if(!_0x133edb||_0x17cf03[_0x34966b(0xcc)](_0x133edb['length'],0x0)){logger[_0x34966b(0x15e)](_0x17cf03[_0x34966b(0x10e)]);return;}const _0x1d74b2=0x28,_0x4dca7b=Math[_0x34966b(0xf7)](_0x17cf03[_0x34966b(0x18f)](_0x133edb[_0x34966b(0x131)],_0x1d74b2));for(let _0x234cbc=0x0;_0x17cf03['XZXbZ'](_0x234cbc,_0x4dca7b);_0x234cbc++){const _0x426321=_0x17cf03[_0x34966b(0x195)](_0x234cbc,_0x1d74b2),_0x2b20e4=_0x17cf03['HaFDk'](_0x426321,_0x1d74b2),_0x3ffaec=_0x133edb['slice'](_0x426321,_0x2b20e4),_0x571e59={'platformIndex':global?.[_0x34966b(0x108)]??0x0,'logs':_0x3ffaec,'testFrameworkName':_0x1c93d8,'testFrameworkVersion':_0x4de725,'testFrameworkState':_0x1e1210[_0x34966b(0x11c)]()[_0x34966b(0x141)]('.')[0x1]};logger[_0x34966b(0x15e)](_0x34966b(0xef)+_0x39a0f4+_0x34966b(0xe2)+_0x17cf03[_0x34966b(0x176)](_0x234cbc,0x1)+'/'+_0x4dca7b+'\x20payload='+util[_0x34966b(0x173)](_0x571e59));const _0x39d118=await GrpcClient[_0x34966b(0x13c)]()['logCreatedEvent'](_0x571e59);logger[_0x34966b(0x15e)](_0x34966b(0xef)+_0x39a0f4+_0x34966b(0xe2)+_0x17cf03[_0x34966b(0x176)](_0x234cbc,0x1)+'/'+_0x4dca7b+_0x34966b(0x124)+util[_0x34966b(0x173)](_0x39d118));}}catch(_0x2c692b){logger[_0x34966b(0xf2)](_0x34966b(0xeb)+util[_0x34966b(0x133)](_0x2c692b));}logger[_0x34966b(0x15e)](_0x17cf03[_0x34966b(0x135)]);}[a78_0x1f2baa(0x169)](_0x21396a,_0x1cf72c,_0x3e46c8,_0x5a4b7b,_0x11ba50){const _0x14e773=a78_0x1f2baa,_0x887af7={'testId':_0x1cf72c,'testFrameworkState':_0x3e46c8,'hookState':_0x5a4b7b,'args':_0x11ba50,'timestamp':new Date()[_0x14e773(0xf3)]()};_0x21396a['addPendingHook'](_0x1cf72c,_0x887af7),logger[_0x14e773(0x15e)]('Stored\x20pending\x20hook\x20for\x20testId:\x20'+_0x1cf72c+_0x14e773(0xea)+_0x3e46c8+_0x14e773(0x161)+_0x5a4b7b);}async[a78_0x1f2baa(0x107)](_0x5a165c,_0x4225ee){const _0x4ce5a9=a78_0x1f2baa,_0x44ed3e={};_0x44ed3e[_0x4ce5a9(0xcf)]=function(_0x4de4ed,_0x78a286){return _0x4de4ed>_0x78a286;};const _0x2635ea=_0x44ed3e;if(!_0x5a165c[_0x4ce5a9(0xd9)](_0x4225ee))return;const _0x5e0c35=_0x5a165c[_0x4ce5a9(0x104)](_0x4225ee);logger[_0x4ce5a9(0x15e)](_0x4ce5a9(0xf1)+_0x5e0c35[_0x4ce5a9(0x131)]+_0x4ce5a9(0x17d)+_0x4225ee);for(const _0x88ec26 of _0x5e0c35){try{const _0x481dd2=await this[_0x4ce5a9(0x193)](_0x5a165c,_0x88ec26[_0x4ce5a9(0x16a)],_0x88ec26[_0x4ce5a9(0x115)],_0x88ec26[_0x4ce5a9(0x137)]);_0x481dd2&&_0x2635ea[_0x4ce5a9(0xcf)](Object[_0x4ce5a9(0x15a)](_0x481dd2)['length'],0x0)&&_0x5a165c[_0x4ce5a9(0x11e)](_0x481dd2),await this[_0x4ce5a9(0xd5)](_0x5a165c,_0x88ec26[_0x4ce5a9(0x16a)],_0x88ec26[_0x4ce5a9(0x115)],_0x88ec26[_0x4ce5a9(0x137)]);}catch(_0x55124f){logger['error'](_0x4ce5a9(0x187)+_0x4225ee+',\x20error:\x20'+_0x55124f);}}_0x5a165c[_0x4ce5a9(0xff)](_0x4225ee),logger[_0x4ce5a9(0x15e)]('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0x4225ee);}}function a78_0x16d4(_0x468376,_0x48c279){const _0x52b00d=a78_0x52b0();return a78_0x16d4=function(_0x16d417,_0x1d8bc3){_0x16d417=_0x16d417-0xc5;let _0x3e115f=_0x52b00d[_0x16d417];return _0x3e115f;},a78_0x16d4(_0x468376,_0x48c279);}function a78_0x52b0(){const _0x15d537=['ceil','finished_at','eventJson','KEY_TEST_FRAMEWORK_NAME','createTestFrameworkEventPayload','Cucumber\x20log\x20created\x20event','pop','KEY_TEST_FILE_PATH','removePendingHooks','resolveInstance','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','NONE','base64','getPendingHooks','khgJE','exports','processPendingHooks','browserstackPlatformIndex','kCezF','test','result','UnhandledError','trackEvent','zSbFO','push','eICgZ','LOG_REPORT','concat','\x20and\x20args\x20=\x20','2417912JTjJNm','hookState','293865DrxubR','./testFramework','KEY_HOOK_RESULT','POST','body','executionContext','toString','zPXgO','addMultipleEntries','getTrackedInstance','\x20testState:\x20','KEY_EVENT_ENDED_AT','getProcessId','../TestInfo.js','\x20response=','failure_data','getTestDetails','../instances/testFrameworkInstance.js','5DXnvCU','from','gjmxG','meta','KEY_TEST_FAILURE','8306163lvuSXi','startedAt','KEY_TEST_UUID','6761358xXhJco','length','ZEURK','format','started_at','faACI','KEY_HOOK_FAILURE_TYPE','args','trackEvent:\x20unsupported\x20testFrameworkState=','instance','\x20with\x20result:\x20','sCGvX','getInstance','ISEOG','jAhDW','../../../helpers/classLogger.js','644rRfitF','split','32oMXAUJ','getTestUUID','setTestDetails','finishedAt','1baWHLq',',\x20storing\x20as\x20pending\x20hook','KEY_HOOK_LAST_FINISHED','KEY_TEST_FAILURE_REASON','hookData','KEY_HOOK_LOGS','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','10otVFCn','MTtGM','xwBCT','getTestFrameworksVersions','failure_type','110824ycGkyT','testFrameworkName','KEY_TEST_NAME','getTestFrameworks','testData','mMtSS','util','KEY_TEST_STARTED_AT','keys','KtLNl','parseCucumberTest','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','debug','KEY_LOGS','failure',',\x20hookState:\x20','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','getAllData','111jjStcj','KEY_TEST_ENDED_AT','KEY_HOOK_LAST_STARTED','failure_reason','createTestFrameworkEventPayload\x20testId:\x20','storePendingHook','testFrameworkState','\x20\x20and\x20args\x20=\x20','DEFAULT_HOOK_RESULT','\x20with\x20UUID:\x20','\x20with\x20id\x20','uuid','getContext','KEY_HOOKS_FINISHED','KEY_TEST_RERUN_NAME','inspect','KEY_TEST_META','KEY_EVENT_STARTED_AT','pvTYN','INIT_TEST','PRE','file_name','hook_type','TEST','passed','\x20pending\x20hooks\x20for\x20testId:\x20','code','UlsxC','customRerunParam','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','getCurrentInstanceName','getThreadId','name','KEY_TEST_FRAMEWORK_VERSION',',\x20state=','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','location','get','../../../helpers/helper.js','Error\x20in\x20createTestFrameworkEventPayload:\x20','KEY_TEST_RESULT_AT','99JcLeSC','KEY_HOOK_ID','bLYgr','1394808Wczxqh','../instances/trackedInstance.js','createContext','trackHookEvent','hooks','cXJzz','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','scopes','orbXJ','unknown','parseCucumberTestResult','key','platformIndex','KEY_TEST_ID','trackCucumberInstance:\x20saved\x20instance\x20contextId=','RCEal','testUUID','bQBgr','pReZQ','sendLogCreatedEvent','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','ApHUc','../state/hookState.js','DEFAULT_TEST_RESULT','runHooks','KEY_HOOK_FAILURE','stringify','KEY_TEST_CODE','hasPendingHooks','rerun_name','setTrackedInstance','KEY_TEST_SCOPE','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','Updated\x20cucumber\x20test\x20result:\x20','getId','KEY_TEST_ATTACHMENTS','KEY_HOOK_NAME','\x20batch\x20','getCurrentTestState','KEY_TEST_FAILURE_TYPE','failed','\x20hookState:\x20','NDQkN','KEY_CUSTOM_TAGS','\x20&\x20hookState=',',\x20state:\x20','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','trackCucumberInstance','2253062HvyKCw','KEY_HOOKS_STARTED','sendLogCreatedEvent:\x20for\x20testId:\x20','MMMla','Processing\x20','error','toISOString','KEY_TEST_LOCATION','./constants/testFrameworkConstants.js','Parsed\x20cucumber\x20test:\x20'];a78_0x52b0=function(){return _0x15d537;};return a78_0x52b0();}module[a78_0x1f2baa(0x106)]=CucumberTestFramework;
|