browserstack-node-sdk 1.57.0 → 1.57.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +3 -3
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -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_0x5a60(){const _0x378bdb=['isArray','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','NNyVC','getAutomationFrameworkDetail','split','fileName','jUbQA','cckUN','getSdkVersion','LhLrq','DXJSi','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','fFbls','egVus','cli_version','zUjAj','8016440MeFSUW','setFrameworkDetail','CLI\x20version\x20found\x20despite\x20error:\x20\x22','mergeObject','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','getCliDir','moEof','startsWith','Czvzo','tJPkC','url','BROWSERSTACK_FILES_DIR','PXFJr','getTestFrameworkDetail','aNrjG','skipSessionName','KJqNf','unix:/tmp/sdk-platform-','bpsHZ','testContextOptions','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','./state/hookState.js','arch','yGrIr','FFsPp','parse','CLIUtils','dVgZk','statSync','existsSync','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','rPoGZ','rNFuA','util','ENKbp','getCurrentInstanceName','response\x20','Folder\x20does\x20not\x20exist:\x20','Current\x20CLI\x20Path\x20Found:\x20','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','NbSbK','.zip','openSync','info','CEUdd','0755','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','nrNsu','worker_threads','rename','closeSync','dTQhI','1137207QeILtt','mLdNH','basename','map','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','mtime','akiot','.sock','shouldSkipSessionStatus','rNQjG','bWUQN','cwd','trim','2|1|4|0|3','XFvEF','Development\x20Cli\x20Path:\x20','.tmp.','JEShL','SgJCi','pipe','debug','../../helpers/helper','BMJpt','matchHookRegex','EQwdh','isFile','mmUrL','tmpdir','2172352WmwFGC','MiWAk','Downloading\x20SDK\x20binary\x20from:\x20','Error\x20while\x20reading\x20CLI\x20path:\x20','HKHaH','entry','getWritableDir','GqbRu','4033044FtWnOW','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','start','end','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','\x20already\x20exists','code','open','requestToUpdateCLI','TmDVF','IOzpa','SDK_CLI_CHECK_UPDATE','runShellCommand','fWwfj','../../../package.json','stringify','oadkX','downloaded_file_','includes','unlink','sHiXe','../utils/apiUtilityMethods.js','reduce','wmkJB','downloadFileStream','error','env','yauzl','getExistingCliPath','testFrameworkDetail','../../helpers/test-observability/utils.js','readdirSync','ofksL','tcQIa','object','EXDEV','setupCliPath','\x20version','HyEjb','../../helpers/classLogger.js','pid','message','entries','ZEXZM','SDK_CLI_DOWNLOAD','477312DxuCyJ','homedir','../../helpers/performance/performance-tester.js','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','test','KeSxF','Failed\x20to\x20delete\x20zip\x20file:\x20','SHELL_EXECUTE_ERROR','Setting\x20required\x20permissions\x20to\x20','36oltloZ','918545taDAYX','createWriteStream','data','moDXW','close','isDirectory','PZvuL','PGThx','GET','join','BROWSERSTACK_CLI_ENV','automationFrameworkDetail','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','timeout','node','NMXnD','getSdkLanguage','isBinaryBusy','format','readEntry','exports','child_process','Configuring\x20Cli\x20path.','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','BROWSERSTACK_BINARY_URL','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','follow-redirects','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','2019332OTLUNs','NaWuO','lazyEntries','version','.browserstack','LamiO','copyFileSync','iCPJB','cli','SeuBl','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','downloadLatestBinary','warn','UwOys','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','get'];a72_0x5a60=function(){return _0x378bdb;};return a72_0x5a60();}const a72_0x89a1a2=a72_0x340b;(function(_0x558255,_0x37d279){const _0x4433a8=a72_0x340b,_0x5c26fd=_0x558255();while(!![]){try{const _0x15b0fc=parseInt(_0x4433a8(0xda))/0x1+parseInt(_0x4433a8(0x85))/0x2+-parseInt(_0x4433a8(0x12b))/0x3+parseInt(_0x4433a8(0xfe))/0x4+parseInt(_0x4433a8(0x135))/0x5*(-parseInt(_0x4433a8(0x134))/0x6)+-parseInt(_0x4433a8(0xf6))/0x7+-parseInt(_0x4433a8(0xa6))/0x8;if(_0x15b0fc===_0x37d279)break;else _0x5c26fd['push'](_0x5c26fd['shift']());}catch(_0x56afd3){_0x5c26fd['push'](_0x5c26fd['shift']());}}}(a72_0x5a60,0x8df09));const fs=require('fs'),os=require('os'),url=require(a72_0x89a1a2(0xb0)),path=require('path'),{exec}=require(a72_0x89a1a2(0x7e)),{https}=require(a72_0x89a1a2(0x83)),yauzl=require(a72_0x89a1a2(0x119)),util=require(a72_0x89a1a2(0xc7)),{getFrameworkVersion}=require(a72_0x89a1a2(0x11c)),{threadId}=require(a72_0x89a1a2(0xd6)),PerformanceTester=require(a72_0x89a1a2(0x12d)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a72_0x89a1a2(0xef)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require(a72_0x89a1a2(0x125)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a72_0x89a1a2(0xbb)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a72_0x89a1a2(0xc0)),{getBStackAPIUrl}=require(a72_0x89a1a2(0x113));function a72_0x340b(_0x93f729,_0x2e4ad8){const _0x5a607a=a72_0x5a60();return a72_0x340b=function(_0x340b8b,_0x3179b1){_0x340b8b=_0x340b8b-0x69;let _0x68dd95=_0x5a607a[_0x340b8b];return _0x68dd95;},a72_0x340b(_0x93f729,_0x2e4ad8);}class CLIUtils{[a72_0x89a1a2(0x73)]={};[a72_0x89a1a2(0x11b)]={};static['isDevelopmentEnv'](){const _0x1fa5ba=a72_0x89a1a2,_0x9d2b89={};_0x9d2b89[_0x1fa5ba(0x10e)]=function(_0x229bc9,_0x557981){return _0x229bc9===_0x557981;},_0x9d2b89[_0x1fa5ba(0xa3)]='development';const _0xa9cca6=_0x9d2b89;return _0xa9cca6[_0x1fa5ba(0x10e)](process[_0x1fa5ba(0x118)][_0x1fa5ba(0x72)],_0xa9cca6[_0x1fa5ba(0xa3)]);}static['getCLIParamsForDevEnv'](){const _0x5c754e=a72_0x89a1a2,_0x3b1a20={};return _0x3b1a20['id']=process[_0x5c754e(0x118)][_0x5c754e(0x72)],_0x3b1a20['listen']=_0x5c754e(0xb7)+process[_0x5c754e(0x118)][_0x5c754e(0x72)]+_0x5c754e(0xe1),_0x3b1a20;}static[a72_0x89a1a2(0x9e)](){const _0x4fdc3b=a72_0x89a1a2,_0x4fee42={'WYQwT':function(_0x14264c,_0x504548){return _0x14264c(_0x504548);},'zUjAj':_0x4fdc3b(0x10c)};return _0x4fee42['WYQwT'](require,_0x4fee42[_0x4fdc3b(0xa5)])[_0x4fdc3b(0x88)];}static[a72_0x89a1a2(0x79)](){const _0x546743=a72_0x89a1a2,_0x39a7fa={};_0x39a7fa[_0x546743(0x112)]=_0x546743(0x77);const _0x413d12=_0x39a7fa;return _0x413d12['sHiXe'];}static async[a72_0x89a1a2(0x122)](_0x5bdcb3){const _0x3b7fb1=a72_0x89a1a2,_0x5c0f41={'PXFJr':_0x3b7fb1(0x7f),'PZvuL':function(_0x2d2103,_0x561479){return _0x2d2103(_0x561479);},'bWUQN':function(_0x11e385,_0x227ae0){return _0x11e385(_0x227ae0);},'SeuBl':_0x3b7fb1(0xc4)};logger[_0x3b7fb1(0xee)](_0x5c0f41[_0x3b7fb1(0xb2)]);const _0x3118ef=process[_0x3b7fb1(0x118)]['SDK_CLI_BIN_PATH'];if(!_0x5c0f41[_0x3b7fb1(0x6e)](isNullOrEmpty,_0x3118ef))return logger[_0x3b7fb1(0xee)](_0x3b7fb1(0xe9)+_0x3118ef),_0x3118ef;try{const _0x166da4=this[_0x3b7fb1(0xab)]();if(_0x5c0f41[_0x3b7fb1(0xe4)](isNullOrEmpty,_0x166da4))throw new Error(_0x5c0f41[_0x3b7fb1(0x8e)]);const _0x26662b=this['getExistingCliPath'](_0x166da4),_0x1acc4a=await this['checkAndUpdateCli'](_0x26662b,_0x166da4,_0x5bdcb3);return logger[_0x3b7fb1(0xee)]('Resolved\x20binary\x20path:\x20'+_0x1acc4a),_0x1acc4a;}catch(_0x26e9c3){logger[_0x3b7fb1(0xee)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x3b7fb1(0x7b)](_0x26e9c3));}return null;}static async['checkAndUpdateCli'](_0x2ab247,_0x5efa3c,_0x4898eb){const _0xaee214=a72_0x89a1a2,_0x6d58c6={'rPoGZ':function(_0x2843f8){return _0x2843f8();},'akiot':function(_0x5c375b,_0x55923e){return _0x5c375b(_0x55923e);},'rNFuA':function(_0x202b98,_0x46d3bb,_0x403809){return _0x202b98(_0x46d3bb,_0x403809);},'NaWuO':_0xaee214(0x6a),'rNQjG':'url','fFbls':function(_0x2ec47e,_0xc01afc,_0x3f6c42){return _0x2ec47e(_0xc01afc,_0x3f6c42);}};PerformanceTester[_0xaee214(0x100)](PerformanceEvents[_0xaee214(0x109)]),logger[_0xaee214(0xd1)](_0xaee214(0xcc)+_0x2ab247);const _0x3b43a3=_0x6d58c6[_0xaee214(0xc5)](getHostInfo),_0xd8f0bc={'sdk_version':CLIUtils[_0xaee214(0x9e)](),'os':_0x3b43a3['platform'],'os_arch':_0x3b43a3[_0xaee214(0xbc)],'cli_version':'0','sdk_language':this[_0xaee214(0x79)]()};!_0x6d58c6[_0xaee214(0xe0)](isNullOrEmpty,_0x2ab247)&&(_0xd8f0bc[_0xaee214(0xa4)]=await this[_0xaee214(0x10a)](_0x2ab247+_0xaee214(0x123)));const _0x4297e0=await this['requestToUpdateCLI'](_0xd8f0bc,_0x4898eb);process[_0xaee214(0x118)]['BROWSERSTACK_BINARY_URL']&&(logger[_0xaee214(0xd1)](_0xaee214(0x102)+process[_0xaee214(0x118)]['BROWSERSTACK_BINARY_URL']),_0x4297e0[_0xaee214(0x6a)][_0xaee214(0xb0)]=process['env'][_0xaee214(0x81)]);if(_0x6d58c6[_0xaee214(0xc6)](nestedKeyValue,_0x4297e0,[_0x6d58c6[_0xaee214(0x86)],_0x6d58c6[_0xaee214(0xe3)]])){logger[_0xaee214(0xee)](_0xaee214(0x74)+_0xd8f0bc[_0xaee214(0xa4)]);if(!_0x6d58c6[_0xaee214(0xe0)](isNullOrEmpty,_0x2ab247)&&this[_0xaee214(0x7a)](_0x2ab247))return logger[_0xaee214(0x91)](_0xaee214(0x80)+_0x2ab247),PerformanceTester['end'](PerformanceEvents[_0xaee214(0x109)]),_0x2ab247;const _0x3c08a7=await this[_0xaee214(0x90)](_0x6d58c6[_0xaee214(0xa2)](nestedKeyValue,_0x4297e0,[_0x6d58c6[_0xaee214(0x86)],_0x6d58c6[_0xaee214(0xe3)]]),_0x5efa3c);return PerformanceTester[_0xaee214(0x101)](PerformanceEvents[_0xaee214(0x109)]),_0x3c08a7;}return PerformanceTester[_0xaee214(0x101)](PerformanceEvents[_0xaee214(0x109)]),_0x2ab247;}static[a72_0x89a1a2(0xab)](){const _0x2b233b=a72_0x89a1a2,_0x185ac8={'bpsHZ':function(_0x3e95cd,_0x1e0220){return _0x3e95cd(_0x1e0220);},'UwOys':_0x2b233b(0xc4),'EQwdh':_0x2b233b(0x8d),'CEUdd':function(_0x230933,_0x5afa29){return _0x230933(_0x5afa29);}},_0x25834c=this['getWritableDir']();try{if(_0x185ac8[_0x2b233b(0xb8)](isNullOrEmpty,_0x25834c))throw new Error(_0x185ac8[_0x2b233b(0x92)]);const _0x44e3ed=path[_0x2b233b(0x71)](_0x25834c,_0x185ac8[_0x2b233b(0xf2)]);return!fs['existsSync'](_0x44e3ed)&&_0x185ac8[_0x2b233b(0xd2)](createDir,_0x44e3ed),_0x44e3ed;}catch(_0x38ed7a){logger[_0x2b233b(0xee)](_0x2b233b(0xde)+util[_0x2b233b(0x7b)](_0x38ed7a));}}static[a72_0x89a1a2(0xfc)](){const _0x348a8e=a72_0x89a1a2,_0x36b2a1={'ofksL':_0x348a8e(0x89),'dTQhI':function(_0xbfa725,_0xa6ae53){return _0xbfa725(_0xa6ae53);},'dVgZk':function(_0x1df69e,_0x4bb2f1){return _0x1df69e(_0x4bb2f1);}},_0x7db511=[process['env'][_0x348a8e(0xb1)],path['join'](os[_0x348a8e(0x12c)](),_0x36b2a1['ofksL']),path[_0x348a8e(0x71)](os[_0x348a8e(0xf5)](),_0x36b2a1[_0x348a8e(0x11e)])];for(const _0xc09488 of _0x7db511){if(_0x36b2a1['dTQhI'](isNullOrEmpty,_0xc09488))continue;try{if(fs[_0x348a8e(0xc3)](_0xc09488)){logger[_0x348a8e(0xee)]('Folder\x20'+_0xc09488+_0x348a8e(0x103));if(!_0x36b2a1[_0x348a8e(0xc1)](isModifiable,_0xc09488)){logger['debug'](_0x348a8e(0x133)+_0xc09488);const _0x1a500d=_0x36b2a1[_0x348a8e(0xc1)](setReadWriteExecuteAccess,_0xc09488);if(!_0x36b2a1[_0x348a8e(0xd9)](isTrue,_0x1a500d)){logger[_0x348a8e(0x91)](_0x348a8e(0x12e)+_0xc09488);continue;}}}else{logger[_0x348a8e(0xee)](_0x348a8e(0xcb)+_0xc09488),_0x36b2a1[_0x348a8e(0xd9)](createDir,_0xc09488),logger[_0x348a8e(0xee)](_0x348a8e(0x133)+_0xc09488);const _0x4c314d=_0x36b2a1[_0x348a8e(0xc1)](setReadWriteExecuteAccess,_0xc09488);!_0x36b2a1[_0x348a8e(0xd9)](isTrue,_0x4c314d)&&logger[_0x348a8e(0x91)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0xc09488);}return _0xc09488;}catch(_0x2539b3){logger[_0x348a8e(0x117)](_0x348a8e(0x8f)+util[_0x348a8e(0x7b)](_0x2539b3));}}return null;}static[a72_0x89a1a2(0x11a)](_0x8f3841){const _0x5db945=a72_0x89a1a2,_0xd42f22={};_0xd42f22[_0x5db945(0xa0)]=function(_0x1a0d62,_0x1961eb){return _0x1a0d62>_0x1961eb;},_0xd42f22[_0x5db945(0xbd)]=function(_0x2f8d47,_0x5ec5a9){return _0x2f8d47>_0x5ec5a9;};const _0x3ab93b=_0xd42f22;try{if(!fs[_0x5db945(0xc3)](_0x8f3841)||!fs[_0x5db945(0xc2)](_0x8f3841)[_0x5db945(0x6d)]())return'';const _0x253f6c=fs[_0x5db945(0x11d)](_0x8f3841)[_0x5db945(0xdd)](_0x4d164f=>path[_0x5db945(0x71)](_0x8f3841,_0x4d164f))['filter'](_0xe6021e=>fs[_0x5db945(0xc2)](_0xe6021e)[_0x5db945(0xf3)]()&&path[_0x5db945(0xdc)](_0xe6021e)[_0x5db945(0xad)]('binary-'));if(_0x3ab93b[_0x5db945(0xbd)](_0x253f6c['length'],0x0)){const _0x1da6c1=_0x253f6c['map'](_0xc852b4=>({'filePath':_0xc852b4,'mtime':fs[_0x5db945(0xc2)](_0xc852b4)['mtime']}))[_0x5db945(0x114)]((_0x1a28b1,_0x418e50)=>{const _0x5c2ddb=_0x5db945;if(!_0x1a28b1||!_0x1a28b1[_0x5c2ddb(0xdf)])return _0x418e50;if(_0x3ab93b['DXJSi'](_0x418e50[_0x5c2ddb(0xdf)],_0x1a28b1[_0x5c2ddb(0xdf)]))return _0x418e50;return _0x1a28b1;},{});return _0x1da6c1?_0x1da6c1['filePath']:'';}return'';}catch(_0x4f4eab){return logger[_0x5db945(0x117)](_0x5db945(0xf9)+util[_0x5db945(0x7b)](_0x4f4eab)),'';}}static [a72_0x89a1a2(0x106)]=async(_0x2adb8e,_0x11002b)=>{const _0x350735=a72_0x89a1a2,_0x29477b={'BMJpt':function(_0x29d872,_0x3729ad,_0x2611d9,_0x381810,_0x56b752){return _0x29d872(_0x3729ad,_0x2611d9,_0x381810,_0x56b752);},'NNyVC':_0x350735(0x70)},_0xfa33f5={};_0xfa33f5['qs']=_0x2adb8e;const _0x5ac8d3=await _0x29477b[_0x350735(0xf0)](nodeRequest,_0x29477b[_0x350735(0x98)],UPDATED_CLI_ENDPOINT,_0xfa33f5,_0x11002b);return logger[_0x350735(0xee)](_0x350735(0xca)+JSON[_0x350735(0x10d)](_0x5ac8d3)),_0x5ac8d3;};static[a72_0x89a1a2(0x7a)](_0x4d9458){const _0x776598=a72_0x89a1a2;try{const _0x1c24ff=fs[_0x776598(0xd0)](_0x4d9458,'r+');return fs[_0x776598(0xd8)](_0x1c24ff),![];}catch(_0x3363b3){if(BINARY_BUSY_ERROR_CODES[_0x776598(0x110)](_0x3363b3['code']))return logger[_0x776598(0xee)]('Binary\x20is\x20busy:\x20'+_0x4d9458),!![];return logger[_0x776598(0xee)](_0x776598(0xcd)+_0x3363b3['message']),![];}}static[a72_0x89a1a2(0x10a)](_0x5224c9,_0x1ca1da=''){const _0x372e54=a72_0x89a1a2,_0x53553={'KHnLv':'version','NbSbK':function(_0x5b07ff,_0x54caa3){return _0x5b07ff(_0x54caa3);},'ZeVVm':_0x372e54(0x132),'EJwLf':function(_0x2ba69a,_0x109e39,_0x436370,_0x4bd141){return _0x2ba69a(_0x109e39,_0x436370,_0x4bd141);},'moEof':_0x372e54(0x117)};return new Promise((_0x37e76e,_0x318e8f)=>{const _0x4c4c51=_0x372e54,_0x31ff29={'mLdNH':function(_0x4bd67d,_0x34a52f){const _0x56e457=a72_0x340b;return _0x53553[_0x56e457(0xce)](_0x4bd67d,_0x34a52f);},'KJqNf':_0x53553['ZeVVm']},_0x118ba2={};_0x118ba2[_0x4c4c51(0xe5)]=_0x1ca1da,_0x118ba2[_0x4c4c51(0x76)]=0x1388;const _0x139a16=_0x53553['EJwLf'](exec,_0x5224c9,_0x118ba2,(_0x1a11d8,_0x11c13d,_0x452041)=>{const _0x361aa8=_0x4c4c51;if(_0x1a11d8){if(_0x5224c9[_0x361aa8(0x110)](_0x53553['KHnLv'])&&(_0x11c13d[_0x361aa8(0xe6)]()||_0x452041['trim']())){const _0x5e6f1f=_0x11c13d[_0x361aa8(0xe6)]()||_0x452041[_0x361aa8(0xe6)]();logger['debug'](_0x361aa8(0xa8)+_0x5e6f1f+'\x22'),_0x53553[_0x361aa8(0xce)](_0x37e76e,_0x5e6f1f);}else _0x53553[_0x361aa8(0xce)](_0x37e76e,_0x452041[_0x361aa8(0xe6)]()||_0x53553['ZeVVm']);}else logger['debug']('Resolving\x20with\x20stdout:\x20\x22'+_0x11c13d[_0x361aa8(0xe6)]()+'\x22'),_0x53553[_0x361aa8(0xce)](_0x37e76e,_0x11c13d[_0x361aa8(0xe6)]());});_0x139a16['on'](_0x53553[_0x4c4c51(0xac)],()=>{const _0x5cefb5=_0x4c4c51;_0x31ff29[_0x5cefb5(0xdb)](_0x37e76e,_0x31ff29[_0x5cefb5(0xb6)]);});});}static [a72_0x89a1a2(0x90)]=async(_0x40761b,_0x2a0fd0)=>{const _0x4f1800=a72_0x89a1a2,_0x3170fd={'aNrjG':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','TmDVF':function(_0x1ddfe4,_0x557528){return _0x1ddfe4(_0x557528);},'HyEjb':_0x4f1800(0x117),'Dwqmo':_0x4f1800(0x84),'LamiO':function(_0x4373d5,_0x452000){return _0x4373d5(_0x452000);},'ULayx':function(_0x4264de,_0xf6c952){return _0x4264de(_0xf6c952);}};PerformanceTester[_0x4f1800(0x100)](PerformanceEvents[_0x4f1800(0x12a)]),logger[_0x4f1800(0xee)](_0x4f1800(0xf8)+_0x40761b);try{const _0x71d8fc=url[_0x4f1800(0xbf)](_0x40761b),_0x195dcc=path[_0x4f1800(0x71)](_0x2a0fd0,_0x4f1800(0x10f)+process['pid']+_0x4f1800(0xcf)),_0x274195=fs['createWriteStream'](_0x195dcc);return new Promise((_0x37d841,_0x386254)=>{const _0x2e74d4=_0x4f1800,_0x23918b={'tcQIa':_0x3170fd['Dwqmo'],'XFvEF':function(_0x577995,_0x5d1495){const _0x59a93a=a72_0x340b;return _0x3170fd[_0x59a93a(0x8a)](_0x577995,_0x5d1495);},'qddZd':function(_0x6191a6,_0x3ae94b){return _0x3170fd['ULayx'](_0x6191a6,_0x3ae94b);}};https[_0x2e74d4(0x94)](_0x71d8fc,function(_0x1b95a5){const _0x226e9b=_0x2e74d4,_0x18e2d0={'tJPkC':_0x3170fd[_0x226e9b(0xb4)],'xUdjI':function(_0x14d354,_0x138c6f){return _0x3170fd['TmDVF'](_0x14d354,_0x138c6f);}},_0x496a8e=null;_0x1b95a5['pipe'](_0x274195),_0x1b95a5['on'](_0x3170fd['HyEjb'],function(_0x4c3448){const _0x37124b=_0x226e9b;logger[_0x37124b(0x117)](util['format'](_0x23918b[_0x37124b(0x11f)],_0x4c3448)),PerformanceTester['end'](PerformanceEvents[_0x37124b(0x12a)],![],util[_0x37124b(0x7b)](_0x4c3448)),_0x23918b[_0x37124b(0xe8)](_0x386254,_0x4c3448);}),_0x274195['on'](_0x3170fd[_0x226e9b(0x124)],function(_0x369348){const _0x1a5f9c=_0x226e9b;logger[_0x1a5f9c(0x117)](util[_0x1a5f9c(0x7b)](_0x18e2d0[_0x1a5f9c(0xaf)],_0x369348)),PerformanceTester['end'](PerformanceEvents[_0x1a5f9c(0x12a)],![],util[_0x1a5f9c(0x7b)](_0x369348)),_0x18e2d0['xUdjI'](_0x386254,_0x369348);}),CLIUtils[_0x226e9b(0x116)](_0x274195,_0x496a8e,_0x195dcc,_0x2a0fd0,_0x59c809=>{const _0x186d3d=_0x226e9b;PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x23918b[_0x186d3d(0xe8)](_0x37d841,_0x59c809);},_0x5e3b67=>{const _0x404760=_0x226e9b;PerformanceTester[_0x404760(0x101)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x404760(0x7b)](_0x5e3b67)),_0x23918b['qddZd'](_0x386254,_0x5e3b67);});})['on'](_0x3170fd['HyEjb'],function(_0x44c547){const _0x3a7fa9=_0x2e74d4;logger[_0x3a7fa9(0x117)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x3a7fa9(0x7b)](_0x44c547)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x3a7fa9(0x7b)](_0x44c547)),_0x3170fd[_0x3a7fa9(0x107)](_0x386254,_0x44c547);});});}catch(_0x8cf06f){PerformanceTester[_0x4f1800(0x101)](PerformanceEvents[_0x4f1800(0x12a)],![],util[_0x4f1800(0x7b)](_0x8cf06f)),logger['debug'](_0x4f1800(0x82)+util[_0x4f1800(0x7b)](_0x8cf06f));}};static[a72_0x89a1a2(0x116)](_0x15e4b6,_0x44abb3,_0x54f6e1,_0x5f13de,_0x226b7e,_0x5243d1){const _0x26e358=a72_0x89a1a2,_0x3b1347={'cckUN':'close','LhLrq':function(_0x3b127b,_0x1a9bec){return _0x3b127b(_0x1a9bec);},'iCPJB':_0x26e358(0x101),'NMXnD':function(_0x452018,_0x4352df){return _0x452018!==_0x4352df;},'jUbQA':'error','lpeZj':_0x26e358(0x121),'cKiir':_0x26e358(0xd3),'KeSxF':_0x26e358(0xfb)};_0x15e4b6['on'](_0x3b1347[_0x26e358(0x9d)],function(){const _0x29f76e=_0x26e358,_0x455a0b={};_0x455a0b[_0x29f76e(0x87)]=!![],yauzl[_0x29f76e(0x105)](_0x54f6e1,_0x455a0b,function(_0x56d43b,_0x4fc47b){const _0x40b098=_0x29f76e,_0x374e74={'txxQE':_0x3b1347[_0x40b098(0x9d)],'JEShL':function(_0x489df0,_0x1e1f73){const _0x4131a4=_0x40b098;return _0x3b1347[_0x4131a4(0x9f)](_0x489df0,_0x1e1f73);},'ZEXZM':_0x3b1347[_0x40b098(0x8c)],'fWwfj':function(_0x3cd7ad,_0x4a38b7){return _0x3b1347['LhLrq'](_0x3cd7ad,_0x4a38b7);},'nrNsu':function(_0x240a87,_0x3f1076){const _0x24cd78=_0x40b098;return _0x3b1347[_0x24cd78(0x78)](_0x240a87,_0x3f1076);},'bqTda':_0x3b1347['jUbQA'],'IOzpa':_0x3b1347['lpeZj'],'PGThx':function(_0x2602fc,_0x28823c){const _0x1c701c=_0x40b098;return _0x3b1347[_0x1c701c(0x9f)](_0x2602fc,_0x28823c);},'wmkJB':_0x3b1347['cKiir']};if(_0x56d43b){_0x3b1347[_0x40b098(0x9f)](_0x5243d1,_0x56d43b);return;}_0x4fc47b[_0x40b098(0x7c)](),_0x4fc47b['on'](_0x3b1347[_0x40b098(0x130)],_0x353857=>{const _0x1fe882=_0x40b098,_0x15559f={'GqbRu':function(_0x39b3b3,_0x578ffe){const _0x509a0d=a72_0x340b;return _0x374e74[_0x509a0d(0x10b)](_0x39b3b3,_0x578ffe);}};if(/\/$/[_0x1fe882(0x12f)](_0x353857[_0x1fe882(0x9b)])){_0x4fc47b[_0x1fe882(0x7c)]();return;}!_0x44abb3&&(_0x44abb3=_0x353857['fileName']);if(_0x374e74[_0x1fe882(0xd5)](_0x353857['fileName'],_0x44abb3))_0x4fc47b[_0x1fe882(0x7c)]();else{const _0x2d4979=_0x353857[_0x1fe882(0x9b)],_0x62716=path[_0x1fe882(0x71)](_0x5f13de,_0x2d4979+_0x1fe882(0xea)+process[_0x1fe882(0x126)]);let _0x314175;try{_0x314175=fs[_0x1fe882(0x69)](_0x62716);}catch(_0x38b809){if(BINARY_BUSY_ERROR_CODES[_0x1fe882(0x110)](_0x38b809[_0x1fe882(0x104)])){const _0x10e748=path[_0x1fe882(0x71)](_0x5f13de,_0x2d4979);if(fs[_0x1fe882(0xc3)](_0x10e748)){logger['warn'](_0x1fe882(0xa1)+_0x2d4979),fs[_0x1fe882(0x111)](_0x54f6e1,_0x3e5e9c=>{const _0x1e0506=_0x1fe882;_0x3e5e9c&&logger[_0x1e0506(0x91)](_0x1e0506(0x131)+_0x54f6e1);}),_0x374e74[_0x1fe882(0x10b)](_0x226b7e,_0x10e748);return;}logger[_0x1fe882(0x91)](_0x1fe882(0x97)+_0x2d4979);}_0x374e74[_0x1fe882(0xeb)](_0x5243d1,_0x38b809);return;}_0x314175['on'](_0x374e74['bqTda'],_0x5a5df9=>{const _0x67330b=_0x1fe882;if(BINARY_BUSY_ERROR_CODES['includes'](_0x5a5df9[_0x67330b(0x104)])){const _0x5d5bca=path['join'](_0x5f13de,_0x2d4979);_0x314175[_0x67330b(0x6c)](),fs[_0x67330b(0xc3)](_0x5d5bca)?(logger[_0x67330b(0x91)](_0x67330b(0xba)+_0x5a5df9[_0x67330b(0x127)]),_0x4fc47b['close'](),fs['unlink'](_0x54f6e1,_0xb75a19=>{_0xb75a19&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x54f6e1);}),_0x15559f[_0x67330b(0xfd)](_0x226b7e,_0x5d5bca)):(logger[_0x67330b(0x91)](_0x67330b(0xff)+_0x5a5df9[_0x67330b(0x127)]),fs[_0x67330b(0x111)](_0x62716,()=>{}),_0x15559f['GqbRu'](_0x5243d1,_0x5a5df9));}else fs[_0x67330b(0x111)](_0x62716,()=>{}),_0x15559f[_0x67330b(0xfd)](_0x5243d1,_0x5a5df9);}),_0x4fc47b['openReadStream'](_0x353857,function(_0x39d046,_0x13e77b){const _0x2863b=_0x1fe882,_0x56b2a6={};_0x56b2a6['MiWAk']=_0x374e74['txxQE'];const _0x10b6b5=_0x56b2a6;if(_0x39d046){fs[_0x2863b(0x111)](_0x62716,()=>{}),_0x374e74['JEShL'](_0x5243d1,_0x39d046);return;}_0x13e77b['on'](_0x374e74[_0x2863b(0x129)],function(){const _0x43463e=_0x2863b;_0x314175[_0x43463e(0x101)](),_0x314175['on'](_0x10b6b5[_0x43463e(0xf7)],function(){const _0x2aba9b=_0x43463e;_0x4fc47b[_0x2aba9b(0x7c)]();});}),_0x13e77b[_0x2863b(0xed)](_0x314175);});}}),_0x4fc47b['on'](_0x3b1347[_0x40b098(0x9c)],_0x4abc47=>{_0x374e74['fWwfj'](_0x5243d1,_0x4abc47);}),_0x4fc47b['once'](_0x3b1347['iCPJB'],()=>{const _0x42e801=_0x40b098,_0x118f90={'CZNHZ':function(_0x57ebf1,_0x2cb290){return _0x374e74['nrNsu'](_0x57ebf1,_0x2cb290);},'FFsPp':_0x374e74[_0x42e801(0x108)],'mmUrL':function(_0x220d0c,_0x34a8de){const _0x4ba6c7=_0x42e801;return _0x374e74[_0x4ba6c7(0x6f)](_0x220d0c,_0x34a8de);}};fs[_0x42e801(0x111)](_0x54f6e1,_0x6ac2f0=>{_0x6ac2f0&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x54f6e1);});const _0x827fa1=path[_0x42e801(0x71)](_0x5f13de,_0x44abb3+_0x42e801(0xea)+process[_0x42e801(0x126)]),_0x52c3c0=path[_0x42e801(0x71)](_0x5f13de,_0x44abb3);fs['chmod'](_0x827fa1,_0x374e74[_0x42e801(0x115)],function(_0x44c5d7){const _0x23ce83=_0x42e801;if(_0x44c5d7){_0x4fc47b[_0x23ce83(0x6c)](),fs[_0x23ce83(0x111)](_0x827fa1,()=>{}),_0x374e74[_0x23ce83(0x10b)](_0x5243d1,_0x44c5d7);return;}fs[_0x23ce83(0xd7)](_0x827fa1,_0x52c3c0,function(_0x4bc569){const _0x5d4dd8=_0x23ce83;if(_0x4bc569){if(_0x118f90['CZNHZ'](_0x4bc569[_0x5d4dd8(0x104)],_0x118f90[_0x5d4dd8(0xbe)])){_0x4fc47b[_0x5d4dd8(0x6c)](),fs[_0x5d4dd8(0x111)](_0x827fa1,()=>{}),_0x118f90[_0x5d4dd8(0xf4)](_0x5243d1,_0x4bc569);return;}logger[_0x5d4dd8(0x91)](_0x5d4dd8(0x75)+_0x4bc569[_0x5d4dd8(0x127)]);try{fs[_0x5d4dd8(0x8b)](_0x827fa1,_0x52c3c0);}catch(_0x2677e9){_0x4fc47b[_0x5d4dd8(0x6c)](),fs['unlink'](_0x827fa1,()=>{}),_0x118f90[_0x5d4dd8(0xf4)](_0x5243d1,_0x2677e9);return;}fs['unlink'](_0x827fa1,_0x1a64a6=>{const _0x217104=_0x5d4dd8;_0x1a64a6&&logger[_0x217104(0x91)](_0x217104(0x96)+_0x1a64a6[_0x217104(0x127)]);});}_0x4fc47b['close'](),_0x118f90[_0x5d4dd8(0xf4)](_0x226b7e,_0x52c3c0);});});});});});}static[a72_0x89a1a2(0xb3)](){const _0x29fc30=a72_0x89a1a2;if(process[_0x29fc30(0x118)][_0x29fc30(0xaa)])return JSON[_0x29fc30(0xbf)](process['env'][_0x29fc30(0xaa)]);return this['testFrameworkDetail'];}static[a72_0x89a1a2(0x99)](){const _0x181fc6=a72_0x89a1a2;if(process[_0x181fc6(0x118)][_0x181fc6(0x93)])return JSON['parse'](process['env'][_0x181fc6(0x93)]);return this[_0x181fc6(0x73)];}static[a72_0x89a1a2(0xa7)](_0x5ca973,_0x220a09){const _0x45d3f0=a72_0x89a1a2,_0x2be74d={'moDXW':_0x45d3f0(0xe7),'ENKbp':function(_0x339957,_0x9184ee){return _0x339957(_0x9184ee);},'Czvzo':function(_0x1f955f,_0x2e6478){return _0x1f955f||_0x2e6478;}},_0x453340=_0x2be74d[_0x45d3f0(0x6b)][_0x45d3f0(0x9a)]('|');let _0x459376=0x0;while(!![]){switch(_0x453340[_0x459376++]){case'0':process['env'][_0x45d3f0(0x93)]=JSON['stringify'](this[_0x45d3f0(0x73)]);continue;case'1':this[_0x45d3f0(0x11b)]={'name':_0x5ca973,'version':{[_0x5ca973]:_0x2be74d[_0x45d3f0(0xc8)](getFrameworkVersion,_0x5ca973)}};continue;case'2':_0x2be74d[_0x45d3f0(0xae)](!_0x5ca973,!_0x220a09)&&logger[_0x45d3f0(0xee)](_0x45d3f0(0xd4)+_0x5ca973+',\x20automationFramework='+_0x220a09);continue;case'3':process[_0x45d3f0(0x118)][_0x45d3f0(0xaa)]=JSON[_0x45d3f0(0x10d)](this[_0x45d3f0(0x11b)]);continue;case'4':this[_0x45d3f0(0x73)]={'name':_0x220a09,'version':_0x2be74d[_0x45d3f0(0xc8)](getFrameworkVersion,_0x220a09)};continue;}break;}}static['getHookRegistryKey'](_0x4c794d,_0x30ea4a){return _0x4c794d+':'+_0x30ea4a;}static[a72_0x89a1a2(0xc9)](){const _0x3c3077=a72_0x89a1a2;return process[_0x3c3077(0x126)]+':'+threadId;}static['shouldSkipSessionName'](_0x5dded3){const _0x37c6a1=a72_0x89a1a2;if(_0x5dded3['testContextOptions']&&_0x5dded3['testContextOptions'][_0x37c6a1(0xb5)])return!![];return![];}static[a72_0x89a1a2(0xe2)](_0x4342bc){const _0x452def=a72_0x89a1a2;if(_0x4342bc['testContextOptions']&&_0x4342bc[_0x452def(0xb9)]['skipSessionStatus'])return!![];return![];}static[a72_0x89a1a2(0xf1)](_0x1108cb){const _0x4dac68=a72_0x89a1a2,_0x4f8537=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x4f8537[_0x4dac68(0x12f)](_0x1108cb);}static[a72_0x89a1a2(0xa9)](_0x4669da,_0x12fadc){const _0x552b62=a72_0x89a1a2,_0x2f89a6={};_0x2f89a6['BJlcr']=function(_0x791c45,_0x23ef4e){return _0x791c45!==_0x23ef4e;},_0x2f89a6[_0x552b62(0xfa)]=function(_0x722cd7,_0x15fb49){return _0x722cd7===_0x15fb49;},_0x2f89a6['SgJCi']=_0x552b62(0x120);const _0x4e983f=_0x2f89a6;for(const [_0x363f03,_0x268a28]of Object[_0x552b62(0x128)](_0x12fadc)){if(_0x4e983f['BJlcr'](_0x268a28,null)&&_0x4e983f[_0x552b62(0xfa)](typeof _0x268a28,_0x4e983f[_0x552b62(0xec)])&&!Array[_0x552b62(0x95)](_0x268a28))_0x4669da[_0x363f03]=this[_0x552b62(0xa9)](_0x4669da[_0x363f03]||{},_0x268a28);else Array[_0x552b62(0x95)](_0x268a28)?_0x4669da[_0x363f03]=(_0x4669da[_0x363f03]||[])['concat'](_0x268a28):_0x4669da[_0x363f03]=_0x268a28;}return _0x4669da;}}module[a72_0x89a1a2(0x7d)]=CLIUtils;
|
|
1
|
+
const a72_0x57ce67=a72_0x3235;function a72_0x249a(){const _0x2d96cd=['Failed\x20to\x20delete\x20zip\x20file:\x20','readdirSync','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','path','./instances/testFrameworkInstance.js','RrVUZ','kgzpJ','setFrameworkDetail',',\x20automationFramework=','concat','testContextOptions','6GHuveZ','pipe','mtime','map','existsSync','../../helpers/performance/performance-tester.js','axOKw','exports','node','close','bFsgb','rTgsW','unlink','SsBbq','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','entry','nzUVI','mXfeC','rename','fileName','qyFQT','getSdkVersion','nNqBt','statSync','CLI\x20version\x20found\x20despite\x20error:\x20\x22','data','2|4|1|3|0','LmhKj','Klrbw','object','getExistingCliPath','DDFmI','copyFileSync','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','tsCQg','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','VxHCs','Vaxnt','automationFrameworkDetail','iJFjd','Setting\x20required\x20permissions\x20to\x20','SDK_CLI_BIN_PATH','RHFAK','fZSBD','gjpBa','../utils/apiUtilityMethods.js','nyhdZ','getAutomationFrameworkDetail','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','gxIDb','RGQzc','open','baHfk','bdRRJ','vXGNp','nJWGv','getSdkLanguage','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','../utils/constants','basename','testFrameworkDetail','Downloading\x20SDK\x20binary\x20from:\x20','nuSeZ','BROWSERSTACK_CLI_ENV','timeout','checkAndUpdateCli','format','VmpAS','message','skipSessionStatus','info','reduce','ANCuL','sqCoF','nIIRp','VcWDQ','nmWog','Error\x20while\x20reading\x20CLI\x20path:\x20','code','163400LfKXeA','end','OYKce','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','Configuring\x20Cli\x20path.','requestToUpdateCLI','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','filePath','QaRFn','Resolved\x20binary\x20path:\x20','SgKlW','IsMpW','BROWSERSTACK_BINARY_URL','cli','env','wfhVS','chmod','./framework/constants/testFrameworkConstants.js','lKSqa','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','openReadStream','arch','Development\x20Cli\x20Path:\x20','tmpdir','AObIV','uHsvP','downloadLatestBinary','join','getCurrentInstanceName','./state/automationFrameworkState.js','cwd','../../helpers/test-observability/utils.js','url','test','getWritableDir','76eQMFod','9198hLdeTx','OtTFG','GET','IAljr','11510mjPdyl','gJXcf','Resolving\x20with\x20stdout:\x20\x22','TFHxw','PYNza','downloadFileStream','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','length','tSgeo','getTestFrameworkDetail','SDK_CLI_CHECK_UPDATE','includes','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','VTcVn','\x20version','Ivkaj','CLIUtils','isFile','isBinaryBusy','Ycrxz','shouldSkipSessionStatus','btbbe','VxBqz','eEZzv','once','2ndjhrh','PnowS','.zip','debug','get','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','ovZeg','Folder\x20','../../helpers/helper','3970057mkLItn','LXpKi','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','parse','rkUxM','kmDoE','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','zGDWv','TZuMp','cQEiK','gDUnL','iHiAZ','Folder\x20does\x20not\x20exist:\x20','trim','stringify','.tmp.','ATEuB','createWriteStream','listen','isDirectory','getCLIParamsForDevEnv','runShellCommand','WEchA','aioQV','worker_threads','entries','JaVFl','.sock','1078538IRWXCi','startsWith','GTHbi','PtzQi','pid','getCliDir','warn','SHELL_EXECUTE_ERROR','error','WClWA','2067984bDPFcU','\x20already\x20exists','unix:/tmp/sdk-platform-','hGgAi','binary-','cglHV','RrcHq','downloaded_file_','aMAaa','start','HOOK_REGEX','BfALP','860946frGngw','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','mergeObject','0755','SDK_CLI_DOWNLOAD','yauzl','fJhRS','matchHookRegex','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','readEntry','cli_version','isArray','9887009sBkkUX','response\x20'];a72_0x249a=function(){return _0x2d96cd;};return a72_0x249a();}(function(_0x175e07,_0x3ac4fc){const _0x39e6c5=a72_0x3235,_0xc755e2=_0x175e07();while(!![]){try{const _0x4b2154=parseInt(_0x39e6c5(0x148))/0x1*(-parseInt(_0x39e6c5(0x123))/0x2)+-parseInt(_0x39e6c5(0x15e))/0x3+-parseInt(_0x39e6c5(0x105))/0x4*(parseInt(_0x39e6c5(0xe2))/0x5)+-parseInt(_0x39e6c5(0x177))/0x6*(-parseInt(_0x39e6c5(0x12c))/0x7)+parseInt(_0x39e6c5(0x152))/0x8+parseInt(_0x39e6c5(0x106))/0x9*(parseInt(_0x39e6c5(0x10a))/0xa)+parseInt(_0x39e6c5(0x16a))/0xb;if(_0x4b2154===_0x3ac4fc)break;else _0xc755e2['push'](_0xc755e2['shift']());}catch(_0x15e860){_0xc755e2['push'](_0xc755e2['shift']());}}}(a72_0x249a,0xdf3ae));const fs=require('fs'),os=require('os'),url=require(a72_0x57ce67(0x102)),path=require(a72_0x57ce67(0x16f)),{exec}=require('child_process'),{https}=require('follow-redirects'),yauzl=require(a72_0x57ce67(0x163)),util=require('util'),{getFrameworkVersion}=require(a72_0x57ce67(0x101)),{threadId}=require(a72_0x57ce67(0x144)),PerformanceTester=require(a72_0x57ce67(0x17c)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require('../../helpers/utilities'),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a72_0x57ce67(0x12b)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a72_0x57ce67(0x1b1)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a72_0x57ce67(0x170)),HookState=require('./state/hookState.js'),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require(a72_0x57ce67(0xff)),TestFrameworkConstants=require(a72_0x57ce67(0xf3)),logger=createClassLogger(a72_0x57ce67(0x11a)),{getBStackAPIUrl}=require(a72_0x57ce67(0x1a4));class CLIUtils{['automationFrameworkDetail']={};[a72_0x57ce67(0x1b3)]={};static['isDevelopmentEnv'](){const _0x5326b7=a72_0x57ce67,_0x2915ab={};_0x2915ab[_0x5326b7(0xd6)]=function(_0xefa33a,_0x4b50a8){return _0xefa33a===_0x4b50a8;},_0x2915ab['Vaxnt']='development';const _0x2fbf93=_0x2915ab;return _0x2fbf93[_0x5326b7(0xd6)](process[_0x5326b7(0xf0)][_0x5326b7(0xd2)],_0x2fbf93[_0x5326b7(0x19c)]);}static[a72_0x57ce67(0x140)](){const _0x139c4c=a72_0x57ce67,_0x35c33e={};return _0x35c33e['id']=process[_0x139c4c(0xf0)][_0x139c4c(0xd2)],_0x35c33e[_0x139c4c(0x13e)]=_0x139c4c(0x154)+process[_0x139c4c(0xf0)][_0x139c4c(0xd2)]+_0x139c4c(0x147),_0x35c33e;}static['getSdkVersion'](){const _0x4176ee=a72_0x57ce67,_0x401e5a={'KKOMm':function(_0x79f47,_0xed75f1){return _0x79f47(_0xed75f1);},'gxIDb':'../../../package.json'};return _0x401e5a['KKOMm'](require,_0x401e5a[_0x4176ee(0x1a8)])['version'];}static[a72_0x57ce67(0x1af)](){const _0x3cd193=a72_0x57ce67,_0x52ee84={};_0x52ee84['eEZzv']=_0x3cd193(0x17f);const _0xe6f4d6=_0x52ee84;return _0xe6f4d6[_0x3cd193(0x121)];}static async['setupCliPath'](_0x57e8b0){const _0x58467d=a72_0x57ce67,_0x4cf9f6={'ATEuB':_0x58467d(0xe6),'RrVUZ':function(_0x40a1a0,_0x14044a){return _0x40a1a0(_0x14044a);},'aMAaa':function(_0x495270,_0x3a7c3c){return _0x495270(_0x3a7c3c);},'lKSqa':_0x58467d(0xe5)};logger[_0x58467d(0x126)](_0x4cf9f6[_0x58467d(0x13c)]);const _0x17de9a=process[_0x58467d(0xf0)][_0x58467d(0x1a0)];if(!_0x4cf9f6[_0x58467d(0x171)](isNullOrEmpty,_0x17de9a))return logger[_0x58467d(0x126)](_0x58467d(0xf8)+_0x17de9a),_0x17de9a;try{const _0x41078f=this[_0x58467d(0x14d)]();if(_0x4cf9f6[_0x58467d(0x15a)](isNullOrEmpty,_0x41078f))throw new Error(_0x4cf9f6[_0x58467d(0xf4)]);const _0x4619ce=this[_0x58467d(0x195)](_0x41078f),_0x1dacc7=await this[_0x58467d(0xd4)](_0x4619ce,_0x41078f,_0x57e8b0);return logger[_0x58467d(0x126)](_0x58467d(0xeb)+_0x1dacc7),_0x1dacc7;}catch(_0x37c456){logger[_0x58467d(0x126)](_0x58467d(0x132)+util[_0x58467d(0xd5)](_0x37c456));}return null;}static async[a72_0x57ce67(0xd4)](_0x2f9cbf,_0x5a2729,_0x31447b){const _0x5dad34=a72_0x57ce67,_0x4bba87={'sqCoF':function(_0x26795a){return _0x26795a();},'fJhRS':function(_0x2054e2,_0x3343fa){return _0x2054e2(_0x3343fa);},'IsMpW':function(_0x547056,_0x1a2b8c,_0x19b8a1){return _0x547056(_0x1a2b8c,_0x19b8a1);},'nyhdZ':_0x5dad34(0x190),'SgKlW':'url','PtzQi':function(_0x2fe29b,_0x4d3e36,_0x4ddb6d){return _0x2fe29b(_0x4d3e36,_0x4ddb6d);}};PerformanceTester[_0x5dad34(0x15b)](PerformanceEvents[_0x5dad34(0x114)]),logger[_0x5dad34(0xd9)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x2f9cbf);const _0x48173f=_0x4bba87[_0x5dad34(0xdc)](getHostInfo),_0x5caa60={'sdk_version':CLIUtils[_0x5dad34(0x18c)](),'os':_0x48173f['platform'],'os_arch':_0x48173f[_0x5dad34(0xf7)],'cli_version':'0','sdk_language':this[_0x5dad34(0x1af)]()};!_0x4bba87[_0x5dad34(0x164)](isNullOrEmpty,_0x2f9cbf)&&(_0x5caa60[_0x5dad34(0x168)]=await this[_0x5dad34(0x141)](_0x2f9cbf+_0x5dad34(0x118)));const _0x33e192=await this[_0x5dad34(0xe7)](_0x5caa60,_0x31447b);process[_0x5dad34(0xf0)][_0x5dad34(0xee)]&&(logger[_0x5dad34(0xd9)](_0x5dad34(0x110)+process[_0x5dad34(0xf0)][_0x5dad34(0xee)]),_0x33e192[_0x5dad34(0x190)][_0x5dad34(0x102)]=process[_0x5dad34(0xf0)][_0x5dad34(0xee)]);if(_0x4bba87[_0x5dad34(0xed)](nestedKeyValue,_0x33e192,[_0x4bba87[_0x5dad34(0x1a5)],_0x4bba87[_0x5dad34(0xec)]])){logger[_0x5dad34(0x126)](_0x5dad34(0x19a)+_0x5caa60[_0x5dad34(0x168)]);if(!_0x4bba87[_0x5dad34(0x164)](isNullOrEmpty,_0x2f9cbf)&&this[_0x5dad34(0x11c)](_0x2f9cbf))return logger[_0x5dad34(0x14e)](_0x5dad34(0x1a7)+_0x2f9cbf),PerformanceTester[_0x5dad34(0xe3)](PerformanceEvents[_0x5dad34(0x114)]),_0x2f9cbf;const _0x40b92a=await this[_0x5dad34(0xfc)](_0x4bba87[_0x5dad34(0x14b)](nestedKeyValue,_0x33e192,[_0x4bba87[_0x5dad34(0x1a5)],_0x4bba87[_0x5dad34(0xec)]]),_0x5a2729);return PerformanceTester['end'](PerformanceEvents[_0x5dad34(0x114)]),_0x40b92a;}return PerformanceTester[_0x5dad34(0xe3)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x2f9cbf;}static[a72_0x57ce67(0x14d)](){const _0x5c6c08=a72_0x57ce67,_0x4e09b3={'nIIRp':function(_0x434922,_0x54dc84){return _0x434922(_0x54dc84);},'LmhKj':_0x5c6c08(0xe5),'nzUVI':_0x5c6c08(0xef)},_0x3dadb7=this[_0x5c6c08(0x104)]();try{if(_0x4e09b3[_0x5c6c08(0xdd)](isNullOrEmpty,_0x3dadb7))throw new Error(_0x4e09b3[_0x5c6c08(0x192)]);const _0xead2ce=path[_0x5c6c08(0xfd)](_0x3dadb7,_0x4e09b3[_0x5c6c08(0x187)]);return!fs[_0x5c6c08(0x17b)](_0xead2ce)&&_0x4e09b3['nIIRp'](createDir,_0xead2ce),_0xead2ce;}catch(_0x12c887){logger[_0x5c6c08(0x126)](_0x5c6c08(0xe8)+util[_0x5c6c08(0xd5)](_0x12c887));}}static['getWritableDir'](){const _0x37ffd1=a72_0x57ce67,_0x192391={'WEchA':'.browserstack','ovZeg':function(_0x82c8af,_0x260680){return _0x82c8af(_0x260680);},'JaVFl':function(_0x17e81a,_0x4510d0){return _0x17e81a(_0x4510d0);},'gjpBa':function(_0x2ccd5d,_0xa2c74){return _0x2ccd5d(_0xa2c74);}},_0x256fe7=[process[_0x37ffd1(0xf0)]['BROWSERSTACK_FILES_DIR'],path[_0x37ffd1(0xfd)](os['homedir'](),_0x192391[_0x37ffd1(0x142)]),path[_0x37ffd1(0xfd)](os[_0x37ffd1(0xf9)](),_0x192391['WEchA'])];for(const _0x12023f of _0x256fe7){if(_0x192391['ovZeg'](isNullOrEmpty,_0x12023f))continue;try{if(fs[_0x37ffd1(0x17b)](_0x12023f)){logger['debug'](_0x37ffd1(0x12a)+_0x12023f+_0x37ffd1(0x153));if(!_0x192391[_0x37ffd1(0x129)](isModifiable,_0x12023f)){logger['debug'](_0x37ffd1(0x19f)+_0x12023f);const _0x150c01=_0x192391[_0x37ffd1(0x129)](setReadWriteExecuteAccess,_0x12023f);if(!_0x192391[_0x37ffd1(0x129)](isTrue,_0x150c01)){logger[_0x37ffd1(0x14e)](_0x37ffd1(0xf5)+_0x12023f);continue;}}}else{logger[_0x37ffd1(0x126)](_0x37ffd1(0x138)+_0x12023f),_0x192391['JaVFl'](createDir,_0x12023f),logger[_0x37ffd1(0x126)](_0x37ffd1(0x19f)+_0x12023f);const _0x4b85a3=_0x192391[_0x37ffd1(0x146)](setReadWriteExecuteAccess,_0x12023f);!_0x192391[_0x37ffd1(0x1a3)](isTrue,_0x4b85a3)&&logger[_0x37ffd1(0x14e)](_0x37ffd1(0xf5)+_0x12023f);}return _0x12023f;}catch(_0x580512){logger[_0x37ffd1(0x150)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x37ffd1(0xd5)](_0x580512));}}return null;}static[a72_0x57ce67(0x195)](_0x251801){const _0xa8b0ec=a72_0x57ce67,_0x2e680b={};_0x2e680b['kgzpJ']=function(_0x2b6466,_0x2ba5d2){return _0x2b6466>_0x2ba5d2;},_0x2e680b[_0xa8b0ec(0x184)]=function(_0x5a5076,_0xaa577a){return _0x5a5076>_0xaa577a;};const _0x2f446f=_0x2e680b;try{if(!fs['existsSync'](_0x251801)||!fs[_0xa8b0ec(0x18e)](_0x251801)[_0xa8b0ec(0x13f)]())return'';const _0x5545aa=fs[_0xa8b0ec(0x16d)](_0x251801)['map'](_0x3d493f=>path['join'](_0x251801,_0x3d493f))['filter'](_0x4dbfba=>fs['statSync'](_0x4dbfba)[_0xa8b0ec(0x11b)]()&&path[_0xa8b0ec(0x1b2)](_0x4dbfba)[_0xa8b0ec(0x149)](_0xa8b0ec(0x156)));if(_0x2f446f['SsBbq'](_0x5545aa[_0xa8b0ec(0x111)],0x0)){const _0x34765e=_0x5545aa[_0xa8b0ec(0x17a)](_0x367834=>({'filePath':_0x367834,'mtime':fs[_0xa8b0ec(0x18e)](_0x367834)['mtime']}))[_0xa8b0ec(0xda)]((_0x21a799,_0x39f4ef)=>{const _0x185109=_0xa8b0ec;if(!_0x21a799||!_0x21a799[_0x185109(0x179)])return _0x39f4ef;if(_0x2f446f[_0x185109(0x172)](_0x39f4ef[_0x185109(0x179)],_0x21a799[_0x185109(0x179)]))return _0x39f4ef;return _0x21a799;},{});return _0x34765e?_0x34765e[_0xa8b0ec(0xe9)]:'';}return'';}catch(_0xc67e20){return logger[_0xa8b0ec(0x150)](_0xa8b0ec(0xe0)+util[_0xa8b0ec(0xd5)](_0xc67e20)),'';}}static [a72_0x57ce67(0xe7)]=async(_0x30d78c,_0x1f363d)=>{const _0xf7d026=a72_0x57ce67,_0x30d5a1={'mXfeC':function(_0x214389,_0x4d4b7e,_0x568054,_0x1910d5,_0x419088){return _0x214389(_0x4d4b7e,_0x568054,_0x1910d5,_0x419088);},'BtOIH':_0xf7d026(0x108)},_0x258df3={};_0x258df3['qs']=_0x30d78c;const _0x248172=await _0x30d5a1[_0xf7d026(0x188)](nodeRequest,_0x30d5a1['BtOIH'],UPDATED_CLI_ENDPOINT,_0x258df3,_0x1f363d);return logger[_0xf7d026(0x126)](_0xf7d026(0x16b)+JSON['stringify'](_0x248172)),_0x248172;};static[a72_0x57ce67(0x11c)](_0x38349d){const _0x1226c9=a72_0x57ce67;try{const _0x156ade=fs['openSync'](_0x38349d,'r+');return fs['closeSync'](_0x156ade),![];}catch(_0x12cb58){if(BINARY_BUSY_ERROR_CODES['includes'](_0x12cb58[_0x1226c9(0xe1)]))return logger['debug']('Binary\x20is\x20busy:\x20'+_0x38349d),!![];return logger['debug'](_0x1226c9(0x1b0)+_0x12cb58[_0x1226c9(0xd7)]),![];}}static[a72_0x57ce67(0x141)](_0x24fe57,_0x2fbda5=''){const _0x1c791e=a72_0x57ce67,_0x2f68a0={'Ivkaj':'version','cQEiK':function(_0x55a6dc,_0x18e0bb){return _0x55a6dc(_0x18e0bb);},'TFHxw':function(_0x241cf8,_0x353fc0){return _0x241cf8(_0x353fc0);},'bFsgb':_0x1c791e(0x14f),'axOKw':function(_0x1ec623,_0xa8eb38){return _0x1ec623(_0xa8eb38);},'iHiAZ':function(_0x5c10af,_0x281bef,_0x49866a,_0x19624b){return _0x5c10af(_0x281bef,_0x49866a,_0x19624b);},'zGDWv':_0x1c791e(0x150)};return new Promise((_0x14a374,_0x29943a)=>{const _0x59fb74=_0x1c791e,_0x22c94e={};_0x22c94e[_0x59fb74(0x100)]=_0x2fbda5,_0x22c94e[_0x59fb74(0xd3)]=0x1388;const _0x5de293=_0x2f68a0[_0x59fb74(0x137)](exec,_0x24fe57,_0x22c94e,(_0x1aa2aa,_0x3e1132,_0x1fd9d7)=>{const _0x4ed0ae=_0x59fb74;if(_0x1aa2aa){if(_0x24fe57[_0x4ed0ae(0x115)](_0x2f68a0[_0x4ed0ae(0x119)])&&(_0x3e1132['trim']()||_0x1fd9d7['trim']())){const _0x59df22=_0x3e1132[_0x4ed0ae(0x139)]()||_0x1fd9d7[_0x4ed0ae(0x139)]();logger['debug'](_0x4ed0ae(0x18f)+_0x59df22+'\x22'),_0x2f68a0[_0x4ed0ae(0x135)](_0x14a374,_0x59df22);}else _0x2f68a0[_0x4ed0ae(0x10d)](_0x14a374,_0x1fd9d7[_0x4ed0ae(0x139)]()||_0x2f68a0[_0x4ed0ae(0x181)]);}else logger[_0x4ed0ae(0x126)](_0x4ed0ae(0x10c)+_0x3e1132['trim']()+'\x22'),_0x2f68a0[_0x4ed0ae(0x17d)](_0x14a374,_0x3e1132[_0x4ed0ae(0x139)]());});_0x5de293['on'](_0x2f68a0[_0x59fb74(0x133)],()=>{const _0x2e5bd0=_0x59fb74;_0x2f68a0[_0x2e5bd0(0x10d)](_0x14a374,_0x2f68a0[_0x2e5bd0(0x181)]);});});}static [a72_0x57ce67(0xfc)]=async(_0x26d9a8,_0x275810)=>{const _0xfac222=a72_0x57ce67,_0x587d93={'qyFQT':function(_0x5266b3,_0x3772b3){return _0x5266b3(_0x3772b3);},'aioQV':_0xfac222(0x150),'AObIV':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','Klrbw':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','VpeSw':function(_0x41ae3b,_0x51cf1f){return _0x41ae3b(_0x51cf1f);},'ONRMr':function(_0xb6af5d,_0x51e31c){return _0xb6af5d(_0x51e31c);}};PerformanceTester[_0xfac222(0x15b)](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0xfac222(0x126)](_0xfac222(0xd0)+_0x26d9a8);try{const _0x25dbca=url[_0xfac222(0x12f)](_0x26d9a8),_0x3073d4=path[_0xfac222(0xfd)](_0x275810,_0xfac222(0x159)+process[_0xfac222(0x14c)]+_0xfac222(0x125)),_0x18c98e=fs['createWriteStream'](_0x3073d4);return new Promise((_0x5456b2,_0x5cab80)=>{const _0x8c6edc=_0xfac222,_0x1c198c={'rTgsW':_0x587d93[_0x8c6edc(0xfa)],'aKFVK':function(_0x50957c,_0x39557a){return _0x587d93['qyFQT'](_0x50957c,_0x39557a);},'kmDoE':_0x587d93[_0x8c6edc(0x193)],'DDFmI':function(_0x6df4aa,_0x3fbec7){const _0x6436e4=_0x8c6edc;return _0x587d93[_0x6436e4(0x18b)](_0x6df4aa,_0x3fbec7);},'Ycrxz':function(_0xdb965c,_0x3f42e7){return _0x587d93['VpeSw'](_0xdb965c,_0x3f42e7);},'BfALP':function(_0x2e7686,_0x4ea3b0){return _0x587d93['ONRMr'](_0x2e7686,_0x4ea3b0);}};https[_0x8c6edc(0x127)](_0x25dbca,function(_0x21dde7){const _0x468c8d=_0x8c6edc,_0x4dbac3={'OIUkG':function(_0x16fa37,_0x11104e){const _0x95d3fb=a72_0x3235;return _0x587d93[_0x95d3fb(0x18b)](_0x16fa37,_0x11104e);}},_0xbe8ae=null;_0x21dde7[_0x468c8d(0x178)](_0x18c98e),_0x21dde7['on'](_0x587d93[_0x468c8d(0x143)],function(_0x3dcd46){const _0x153e41=_0x468c8d;logger[_0x153e41(0x150)](util['format'](_0x1c198c[_0x153e41(0x182)],_0x3dcd46)),PerformanceTester[_0x153e41(0xe3)](PerformanceEvents[_0x153e41(0x162)],![],util[_0x153e41(0xd5)](_0x3dcd46)),_0x1c198c['aKFVK'](_0x5cab80,_0x3dcd46);}),_0x18c98e['on'](_0x587d93[_0x468c8d(0x143)],function(_0x331817){const _0xe6953=_0x468c8d;logger[_0xe6953(0x150)](util[_0xe6953(0xd5)](_0x1c198c[_0xe6953(0x131)],_0x331817)),PerformanceTester[_0xe6953(0xe3)](PerformanceEvents[_0xe6953(0x162)],![],util[_0xe6953(0xd5)](_0x331817)),_0x1c198c[_0xe6953(0x196)](_0x5cab80,_0x331817);}),CLIUtils['downloadFileStream'](_0x18c98e,_0xbe8ae,_0x3073d4,_0x275810,_0x10032d=>{const _0x118b06=_0x468c8d;PerformanceTester['end'](PerformanceEvents[_0x118b06(0x162)]),_0x4dbac3['OIUkG'](_0x5456b2,_0x10032d);},_0x45414f=>{const _0x51b3d2=_0x468c8d;PerformanceTester[_0x51b3d2(0xe3)](PerformanceEvents[_0x51b3d2(0x162)],![],util['format'](_0x45414f)),_0x1c198c[_0x51b3d2(0x11d)](_0x5cab80,_0x45414f);});})['on'](_0x587d93[_0x8c6edc(0x143)],function(_0x5db532){const _0x7a52fa=_0x8c6edc;logger[_0x7a52fa(0x150)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x7a52fa(0xd5)](_0x5db532)),PerformanceTester[_0x7a52fa(0xe3)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x7a52fa(0xd5)](_0x5db532)),_0x1c198c[_0x7a52fa(0x15d)](_0x5cab80,_0x5db532);});});}catch(_0x1e9257){PerformanceTester['end'](PerformanceEvents[_0xfac222(0x162)],![],util['format'](_0x1e9257)),logger['debug']('Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20'+util[_0xfac222(0xd5)](_0x1e9257));}};static[a72_0x57ce67(0x10f)](_0x3a85c8,_0x5543c2,_0xdc719a,_0x54108e,_0x2517dd,_0x3a8a59){const _0x429510=a72_0x57ce67,_0x3edc31={'tsCQg':_0x429510(0x180),'RrcHq':function(_0x244055,_0x476e57){return _0x244055!==_0x476e57;},'nNqBt':function(_0x477b86,_0x35ba34){return _0x477b86(_0x35ba34);},'PnowS':function(_0x36e7e6,_0x21bdfe){return _0x36e7e6(_0x21bdfe);},'bdRRJ':_0x429510(0x150),'ANCuL':function(_0x4f37af,_0x5bdbf3){return _0x4f37af(_0x5bdbf3);},'uHsvP':_0x429510(0xe3),'TZuMp':'EXDEV','hGgAi':function(_0x42291b,_0x47e447){return _0x42291b(_0x47e447);},'nuSeZ':_0x429510(0x161),'LXpKi':_0x429510(0x186)};_0x3a85c8['on'](_0x3edc31[_0x429510(0x199)],function(){const _0x1a6efe=_0x429510,_0x5ea79e={'RHFAK':_0x3edc31[_0x1a6efe(0x199)],'VxBqz':function(_0x6ef988,_0x372348){return _0x3edc31['RrcHq'](_0x6ef988,_0x372348);},'DTaJK':function(_0x19a5d8,_0x151a6c){return _0x3edc31['nNqBt'](_0x19a5d8,_0x151a6c);},'vXGNp':function(_0x245f5b,_0x115920){const _0x1b3793=_0x1a6efe;return _0x3edc31[_0x1b3793(0x124)](_0x245f5b,_0x115920);},'VcWDQ':_0x3edc31[_0x1a6efe(0x1ac)],'gJXcf':function(_0xcb789f,_0x782f1e){const _0x34b128=_0x1a6efe;return _0x3edc31[_0x34b128(0x124)](_0xcb789f,_0x782f1e);},'rkUxM':function(_0x5758a8,_0xaf6281){const _0x1e88e8=_0x1a6efe;return _0x3edc31[_0x1e88e8(0xdb)](_0x5758a8,_0xaf6281);},'HraaO':_0x3edc31[_0x1a6efe(0xfb)],'baHfk':function(_0x18cd12,_0x21dad3){const _0x4f4350=_0x1a6efe;return _0x3edc31[_0x4f4350(0x18d)](_0x18cd12,_0x21dad3);},'MZmIx':function(_0x1c9f27,_0x35eaed){const _0x496626=_0x1a6efe;return _0x3edc31[_0x496626(0x158)](_0x1c9f27,_0x35eaed);},'WClWA':_0x3edc31[_0x1a6efe(0x134)],'inamM':function(_0x3f4f31,_0x295c74){const _0xbbf7ef=_0x1a6efe;return _0x3edc31[_0xbbf7ef(0x155)](_0x3f4f31,_0x295c74);},'VxHCs':_0x3edc31[_0x1a6efe(0xd1)],'GTHbi':_0x3edc31[_0x1a6efe(0x12d)]},_0x2b9678={};_0x2b9678['lazyEntries']=!![],yauzl[_0x1a6efe(0x1aa)](_0xdc719a,_0x2b9678,function(_0x8092e7,_0x36064f){const _0xbe6ff9=_0x1a6efe,_0x232402={'wfhVS':function(_0x45453e,_0x7f3a32){return _0x5ea79e['gJXcf'](_0x45453e,_0x7f3a32);},'LaclI':function(_0x17ec24,_0x369fc7){const _0x5f50e0=a72_0x3235;return _0x5ea79e[_0x5f50e0(0x130)](_0x17ec24,_0x369fc7);},'VTcVn':function(_0x28da71,_0x434150){const _0x4d0bc7=a72_0x3235;return _0x5ea79e[_0x4d0bc7(0x1ad)](_0x28da71,_0x434150);},'iJFjd':_0x5ea79e['HraaO'],'INEiz':function(_0x314604,_0x76189d){const _0x375c5b=a72_0x3235;return _0x5ea79e[_0x375c5b(0x1ab)](_0x314604,_0x76189d);},'APyRL':function(_0x1631f5,_0x2ce04e){return _0x5ea79e['MZmIx'](_0x1631f5,_0x2ce04e);},'btbbe':_0x5ea79e[_0xbe6ff9(0x151)],'gDUnL':function(_0x411e5c,_0x14f5fb){const _0x1468a6=_0xbe6ff9;return _0x5ea79e[_0x1468a6(0x10b)](_0x411e5c,_0x14f5fb);},'AXHxJ':function(_0x1f79ec,_0x5a8ade){return _0x5ea79e['inamM'](_0x1f79ec,_0x5a8ade);},'PYNza':_0x5ea79e[_0xbe6ff9(0x19b)]};if(_0x8092e7){_0x5ea79e['inamM'](_0x3a8a59,_0x8092e7);return;}_0x36064f[_0xbe6ff9(0x167)](),_0x36064f['on'](_0x5ea79e[_0xbe6ff9(0x14a)],_0x49708c=>{const _0x59a1c7=_0xbe6ff9,_0x4facb3={};_0x4facb3[_0x59a1c7(0x1ae)]=_0x5ea79e[_0x59a1c7(0x1a1)];const _0x1c0983=_0x4facb3;if(/\/$/[_0x59a1c7(0x103)](_0x49708c[_0x59a1c7(0x18a)])){_0x36064f[_0x59a1c7(0x167)]();return;}!_0x5543c2&&(_0x5543c2=_0x49708c[_0x59a1c7(0x18a)]);if(_0x5ea79e[_0x59a1c7(0x120)](_0x49708c[_0x59a1c7(0x18a)],_0x5543c2))_0x36064f['readEntry']();else{const _0x27cf27=_0x49708c[_0x59a1c7(0x18a)],_0x4818a9=path[_0x59a1c7(0xfd)](_0x54108e,_0x27cf27+_0x59a1c7(0x13b)+process[_0x59a1c7(0x14c)]);let _0x15871e;try{_0x15871e=fs[_0x59a1c7(0x13d)](_0x4818a9);}catch(_0x4823dd){if(BINARY_BUSY_ERROR_CODES[_0x59a1c7(0x115)](_0x4823dd[_0x59a1c7(0xe1)])){const _0x225c91=path[_0x59a1c7(0xfd)](_0x54108e,_0x27cf27);if(fs[_0x59a1c7(0x17b)](_0x225c91)){logger['warn']('Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x27cf27),fs[_0x59a1c7(0x183)](_0xdc719a,_0x39e34d=>{const _0x5381f2=_0x59a1c7;_0x39e34d&&logger[_0x5381f2(0x14e)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0xdc719a);}),_0x5ea79e['DTaJK'](_0x2517dd,_0x225c91);return;}logger[_0x59a1c7(0x14e)](_0x59a1c7(0x16e)+_0x27cf27);}_0x5ea79e[_0x59a1c7(0x1ad)](_0x3a8a59,_0x4823dd);return;}_0x15871e['on'](_0x5ea79e[_0x59a1c7(0xde)],_0x545265=>{const _0x112927=_0x59a1c7;if(BINARY_BUSY_ERROR_CODES['includes'](_0x545265[_0x112927(0xe1)])){const _0x2303a2=path[_0x112927(0xfd)](_0x54108e,_0x27cf27);_0x15871e['close'](),fs['existsSync'](_0x2303a2)?(logger[_0x112927(0x14e)](_0x112927(0x185)+_0x545265[_0x112927(0xd7)]),_0x36064f['close'](),fs[_0x112927(0x183)](_0xdc719a,_0x20c262=>{const _0x198f05=_0x112927;_0x20c262&&logger[_0x198f05(0x14e)](_0x198f05(0x16c)+_0xdc719a);}),_0x232402[_0x112927(0xf1)](_0x2517dd,_0x2303a2)):(logger['warn'](_0x112927(0x12e)+_0x545265[_0x112927(0xd7)]),fs['unlink'](_0x4818a9,()=>{}),_0x232402[_0x112927(0xf1)](_0x3a8a59,_0x545265));}else fs['unlink'](_0x4818a9,()=>{}),_0x232402['LaclI'](_0x3a8a59,_0x545265);}),_0x36064f[_0x59a1c7(0xf6)](_0x49708c,function(_0x463261,_0x450414){const _0x3c7247=_0x59a1c7;if(_0x463261){fs[_0x3c7247(0x183)](_0x4818a9,()=>{}),_0x232402[_0x3c7247(0x117)](_0x3a8a59,_0x463261);return;}_0x450414['on'](_0x232402[_0x3c7247(0x19e)],function(){const _0x506827=_0x3c7247;_0x15871e[_0x506827(0xe3)](),_0x15871e['on'](_0x1c0983[_0x506827(0x1ae)],function(){_0x36064f['readEntry']();});}),_0x450414['pipe'](_0x15871e);});}}),_0x36064f['on'](_0x5ea79e[_0xbe6ff9(0xde)],_0xce770=>{_0x232402['INEiz'](_0x3a8a59,_0xce770);}),_0x36064f[_0xbe6ff9(0x122)](_0x5ea79e['HraaO'],()=>{const _0x78407e=_0xbe6ff9;fs[_0x78407e(0x183)](_0xdc719a,_0x16f84b=>{const _0x48be45=_0x78407e;_0x16f84b&&logger[_0x48be45(0x14e)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0xdc719a);});const _0x4c5124=path[_0x78407e(0xfd)](_0x54108e,_0x5543c2+_0x78407e(0x13b)+process[_0x78407e(0x14c)]),_0x34f2f4=path[_0x78407e(0xfd)](_0x54108e,_0x5543c2);fs[_0x78407e(0xf2)](_0x4c5124,_0x232402[_0x78407e(0x10e)],function(_0x17517a){const _0x231e0c=_0x78407e,_0xe0479c={'QaRFn':function(_0x2bfde2,_0x51581b){return _0x232402['APyRL'](_0x2bfde2,_0x51581b);},'GmbJG':_0x232402[_0x231e0c(0x11f)],'cglHV':function(_0x3c900e,_0x286b7b){return _0x232402['gDUnL'](_0x3c900e,_0x286b7b);},'OYKce':function(_0x3cf877,_0x24a4e8){return _0x232402['AXHxJ'](_0x3cf877,_0x24a4e8);}};if(_0x17517a){_0x36064f[_0x231e0c(0x180)](),fs[_0x231e0c(0x183)](_0x4c5124,()=>{}),_0x232402[_0x231e0c(0x136)](_0x3a8a59,_0x17517a);return;}fs[_0x231e0c(0x189)](_0x4c5124,_0x34f2f4,function(_0x197ad1){const _0x108810=_0x231e0c;if(_0x197ad1){if(_0xe0479c[_0x108810(0xea)](_0x197ad1[_0x108810(0xe1)],_0xe0479c['GmbJG'])){_0x36064f['close'](),fs['unlink'](_0x4c5124,()=>{}),_0xe0479c[_0x108810(0x157)](_0x3a8a59,_0x197ad1);return;}logger[_0x108810(0x14e)](_0x108810(0x128)+_0x197ad1[_0x108810(0xd7)]);try{fs[_0x108810(0x197)](_0x4c5124,_0x34f2f4);}catch(_0x28d99e){_0x36064f[_0x108810(0x180)](),fs[_0x108810(0x183)](_0x4c5124,()=>{}),_0xe0479c[_0x108810(0xe4)](_0x3a8a59,_0x28d99e);return;}fs[_0x108810(0x183)](_0x4c5124,_0x9f1bec=>{const _0x92cdc7=_0x108810;_0x9f1bec&&logger[_0x92cdc7(0x14e)](_0x92cdc7(0x198)+_0x9f1bec[_0x92cdc7(0xd7)]);});}_0x36064f[_0x108810(0x180)](),_0xe0479c[_0x108810(0x157)](_0x2517dd,_0x34f2f4);});});});});});}static[a72_0x57ce67(0x113)](){const _0x1bc0d4=a72_0x57ce67;if(process[_0x1bc0d4(0xf0)][_0x1bc0d4(0x116)])return JSON['parse'](process[_0x1bc0d4(0xf0)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this[_0x1bc0d4(0x1b3)];}static[a72_0x57ce67(0x1a6)](){const _0x2dbaa9=a72_0x57ce67;if(process[_0x2dbaa9(0xf0)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x2dbaa9(0x12f)](process[_0x2dbaa9(0xf0)][_0x2dbaa9(0x166)]);return this[_0x2dbaa9(0x19d)];}static[a72_0x57ce67(0x173)](_0x46c21b,_0x510321){const _0x196f0a=a72_0x57ce67,_0x2c5390={'tSgeo':_0x196f0a(0x191),'RGQzc':function(_0x3711af,_0x59dd2c){return _0x3711af(_0x59dd2c);},'nmWog':function(_0xf73d0,_0x291a45){return _0xf73d0||_0x291a45;}},_0xd02db4=_0x2c5390[_0x196f0a(0x112)]['split']('|');let _0x6e48=0x0;while(!![]){switch(_0xd02db4[_0x6e48++]){case'0':process[_0x196f0a(0xf0)][_0x196f0a(0x116)]=JSON[_0x196f0a(0x13a)](this[_0x196f0a(0x1b3)]);continue;case'1':this['automationFrameworkDetail']={'name':_0x510321,'version':_0x2c5390[_0x196f0a(0x1a9)](getFrameworkVersion,_0x510321)};continue;case'2':_0x2c5390[_0x196f0a(0xdf)](!_0x46c21b,!_0x510321)&&logger[_0x196f0a(0x126)](_0x196f0a(0x15f)+_0x46c21b+_0x196f0a(0x174)+_0x510321);continue;case'3':process['env'][_0x196f0a(0x166)]=JSON['stringify'](this['automationFrameworkDetail']);continue;case'4':this['testFrameworkDetail']={'name':_0x46c21b,'version':{[_0x46c21b]:_0x2c5390[_0x196f0a(0x1a9)](getFrameworkVersion,_0x46c21b)}};continue;}break;}}static['getHookRegistryKey'](_0x16e5e9,_0x596577){return _0x16e5e9+':'+_0x596577;}static[a72_0x57ce67(0xfe)](){return process['pid']+':'+threadId;}static['shouldSkipSessionName'](_0x500edf){const _0x530ee6=a72_0x57ce67;if(_0x500edf[_0x530ee6(0x176)]&&_0x500edf[_0x530ee6(0x176)]['skipSessionName'])return!![];return![];}static[a72_0x57ce67(0x11e)](_0x5bee83){const _0x245a66=a72_0x57ce67;if(_0x5bee83['testContextOptions']&&_0x5bee83[_0x245a66(0x176)][_0x245a66(0xd8)])return!![];return![];}static[a72_0x57ce67(0x165)](_0x543391){const _0x5987db=a72_0x57ce67,_0x554dab=new RegExp(TestFrameworkConstants[_0x5987db(0x15c)]);return _0x554dab['test'](_0x543391);}static[a72_0x57ce67(0x160)](_0x20e760,_0x49baa7){const _0x237c35=a72_0x57ce67,_0x54e30d={};_0x54e30d[_0x237c35(0x1a2)]=function(_0x39e08c,_0x456f45){return _0x39e08c!==_0x456f45;},_0x54e30d['OtTFG']=function(_0x10786b,_0x3da7b3){return _0x10786b===_0x3da7b3;},_0x54e30d['IAljr']=_0x237c35(0x194);const _0x1eff7c=_0x54e30d;for(const [_0x1de6cd,_0x153434]of Object[_0x237c35(0x145)](_0x49baa7)){if(_0x1eff7c[_0x237c35(0x1a2)](_0x153434,null)&&_0x1eff7c[_0x237c35(0x107)](typeof _0x153434,_0x1eff7c[_0x237c35(0x109)])&&!Array['isArray'](_0x153434))_0x20e760[_0x1de6cd]=this[_0x237c35(0x160)](_0x20e760[_0x1de6cd]||{},_0x153434);else Array[_0x237c35(0x169)](_0x153434)?_0x20e760[_0x1de6cd]=(_0x20e760[_0x1de6cd]||[])[_0x237c35(0x175)](_0x153434):_0x20e760[_0x1de6cd]=_0x153434;}return _0x20e760;}}function a72_0x3235(_0x1b44d3,_0x1f9c02){const _0x249a17=a72_0x249a();return a72_0x3235=function(_0x3235e6,_0x59deba){_0x3235e6=_0x3235e6-0xd0;let _0x905bc7=_0x249a17[_0x3235e6];return _0x905bc7;},a72_0x3235(_0x1b44d3,_0x1f9c02);}module[a72_0x57ce67(0x17e)]=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a73_0x48a8(){const _0x2516f1=['636833KOLVpZ','getAllData','join','keys','POST','UJTzy','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','from','promises','debug','PFNor','NsjTk','parseCommaSeparatedValues','length','dbpVo','testLevelTags','startsWith','3obcbeP','getInstance','KEY_TEST_ID','./modules/playwrightDriverModule','now','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','getTestIdentifierFromTestInfo','4025690oSRwnX','./browserstackCLI','multi_dropdown','jFqiB','2996328TseLhQ','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','jPtQC','KEY_CUSTOM_TAGS','toObject','mergeValues','values','endsWith','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','getTrackedInstance','message','./state/testFrameworkState','AKDcP','writeFile','getTestDetails','binYa','CustomTagManager','9fFtzgK','testhubConfig','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','Lzrza','./state/hookState','clearTags','42730bqmowX','../../helpers/helper','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','unlinkSync','get','readFileSync','getBuildTagsRunId','path','wGOLO','readdirSync','ZXedS','buildHashedId','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','wAvBt',',\x20values=','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','DLosB','__jestCurrentTestIdentifier','bmLVW','string','field_type','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','./cliUtils','mergeIntoTags','NUVhh','./TestInfo','getBuildTagsFilePath','includes','pid','setTestDetails','trim','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','isArray','\x20->\x20values=','toLowerCase','366KASKRm','XUtsv','FWOQa','72JKaInI','hEfMA','null','603624pzilxC','getTestFrameworkDetail','MODULE_NAME','isRunning','buildLevelTags',',\x20key=','entries','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','Scuog','./framework/automationFramework','resolveInstance','vVlbu','kNZZq','testInfo','getTestUUID','cNgBr','BROWSERSTACK_TESTHUB_UUID','filter','YKMHt',',\x20finalTags=',':jest-','mtimeMs','.json','rXTth',',\x20existingTags=','bstack_build_tags_','__workerDetails','kNAwy','SZlkQ','parse','../../helpers/classLogger','4708000qpbmwN','_testInternals','getState','1463834LBHegk','tmpdir','pbTJV','mioGJ','PIgnP','mWerh','stringify','setCustomTags'];a73_0x48a8=function(){return _0x2516f1;};return a73_0x48a8();}const a73_0x2bb70d=a73_0x25db;function a73_0x25db(_0x3ddb0c,_0x333ab8){const _0x48a8ee=a73_0x48a8();return a73_0x25db=function(_0x25db7c,_0xeb5446){_0x25db7c=_0x25db7c-0x11a;let _0x4c73e7=_0x48a8ee[_0x25db7c];return _0x4c73e7;},a73_0x25db(_0x3ddb0c,_0x333ab8);}(function(_0x2f290d,_0x2ff4cc){const _0x4b8767=a73_0x25db,_0x452956=_0x2f290d();while(!![]){try{const _0xc55fd4=parseInt(_0x4b8767(0x150))/0x1+-parseInt(_0x4b8767(0x148))/0x2+parseInt(_0x4b8767(0x161))/0x3*(parseInt(_0x4b8767(0x16c))/0x4)+-parseInt(_0x4b8767(0x183))/0x5*(-parseInt(_0x4b8767(0x120))/0x6)+parseInt(_0x4b8767(0x126))/0x7*(-parseInt(_0x4b8767(0x123))/0x8)+-parseInt(_0x4b8767(0x17d))/0x9*(parseInt(_0x4b8767(0x168))/0xa)+parseInt(_0x4b8767(0x145))/0xb;if(_0xc55fd4===_0x2ff4cc)break;else _0x452956['push'](_0x452956['shift']());}catch(_0x5b6137){_0x452956['push'](_0x452956['shift']());}}}(a73_0x48a8,0x67ac7));const fs=require('fs'),os=require('os'),path=require(a73_0x2bb70d(0x18a)),helper=require(a73_0x2bb70d(0x184)),AutomationFramework=require(a73_0x2bb70d(0x12f)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require(a73_0x2bb70d(0x164)),TestInfo=require(a73_0x2bb70d(0x19d)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require(a73_0x2bb70d(0x144)),logger=createClassLogger(a73_0x2bb70d(0x17c)),BUILD_TAG_FILE_PREFIX=a73_0x2bb70d(0x13f);function getBuildTagsRunId(){const _0x464f4a=a73_0x2bb70d,_0x389539={};_0x389539[_0x464f4a(0x135)]=function(_0x7aa265,_0x2ee99c){return _0x7aa265===_0x2ee99c;},_0x389539[_0x464f4a(0x155)]=_0x464f4a(0x125);const _0x3c676b=_0x389539,_0x475d85=process['env'][_0x464f4a(0x136)];if(!_0x475d85||_0x3c676b[_0x464f4a(0x135)](_0x475d85,_0x3c676b['UJTzy']))return null;return _0x475d85;}function getBuildTagsFilePath(_0x235876){const _0x94289=a73_0x2bb70d;return path['join'](os[_0x94289(0x149)](),''+BUILD_TAG_FILE_PREFIX+_0x235876+'_'+process[_0x94289(0x1a0)]+_0x94289(0x13c));}class CustomTagManager{static [a73_0x2bb70d(0x12a)]={};static [a73_0x2bb70d(0x15f)]={};static['mergeValues'](_0x199337,_0x4f0ab2){const _0xdc2fa=a73_0x2bb70d;return Array[_0xdc2fa(0x157)](new Set([..._0x199337||[],..._0x4f0ab2||[]]));}static[a73_0x2bb70d(0x19b)](_0x5c89e2,_0x2a777a,_0x5040ac){const _0x66fb9d=a73_0x2bb70d,_0x42a173={};_0x42a173[_0x66fb9d(0x14a)]=_0x66fb9d(0x16a);const _0x4df926=_0x42a173;if(!_0x5c89e2[_0x2a777a]){const _0x2a05d1={};_0x2a05d1[_0x66fb9d(0x198)]=_0x4df926['pbTJV'],_0x2a05d1[_0x66fb9d(0x172)]=[..._0x5040ac||[]],_0x5c89e2[_0x2a777a]=_0x2a05d1;}else!_0x5c89e2[_0x2a777a][_0x66fb9d(0x198)]&&(_0x5c89e2[_0x2a777a][_0x66fb9d(0x198)]=_0x4df926[_0x66fb9d(0x14a)]),!Array['isArray'](_0x5c89e2[_0x2a777a][_0x66fb9d(0x172)])&&(_0x5c89e2[_0x2a777a][_0x66fb9d(0x172)]=[]),_0x5c89e2[_0x2a777a]['values']=CustomTagManager['mergeValues'](_0x5c89e2[_0x2a777a]['values'],_0x5040ac);return _0x5c89e2;}static async[a73_0x2bb70d(0x14f)](_0x419950,_0x1cbacf,_0x54c3a1=![]){const _0xc4ab69=a73_0x2bb70d,_0x5528b9={'rXTth':function(_0x978d8c,_0x186603){return _0x978d8c!==_0x186603;},'mWerh':_0xc4ab69(0x197),'wGOLO':_0xc4ab69(0x156),'kNAwy':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','binYa':function(_0x57e7a4,_0x491909){return _0x57e7a4===_0x491909;},'AKDcP':_0xc4ab69(0x11c),'PFNor':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','XUtsv':function(_0x594a2a,_0x9c76e0){return _0x594a2a(_0x9c76e0);},'jFqiB':_0xc4ab69(0x169),'bmLVW':function(_0x3c62ca){return _0x3c62ca();},'NwBnn':_0xc4ab69(0x16a),'jPtQC':function(_0x3aa89f,_0x516a27){return _0x3aa89f>_0x516a27;},'NsjTk':function(_0x4c50da,_0x732a1c){return _0x4c50da(_0x732a1c);},'Scuog':_0xc4ab69(0x18f),'NUVhh':_0xc4ab69(0x13a),'kNZZq':_0xc4ab69(0x19a),'mioGJ':'jest','wAvBt':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','vVlbu':_0xc4ab69(0x16d),'iEzpv':function(_0x37e997,_0x2acdb4){return _0x37e997(_0x2acdb4);},'Fqmez':_0xc4ab69(0x177),'DLosB':_0xc4ab69(0x181),'hEfMA':_0xc4ab69(0x185)};if(_0x5528b9[_0xc4ab69(0x13d)](typeof _0x419950,_0x5528b9['mWerh'])){logger['debug'](_0x5528b9[_0xc4ab69(0x18b)]);return;}if(_0x5528b9[_0xc4ab69(0x13d)](typeof _0x1cbacf,_0x5528b9[_0xc4ab69(0x14d)])){logger[_0xc4ab69(0x159)](_0x5528b9[_0xc4ab69(0x141)]);return;}if(_0x5528b9[_0xc4ab69(0x17b)](_0x419950['trim'](),'')){logger['debug'](_0x5528b9[_0xc4ab69(0x178)]);return;}if(_0x5528b9[_0xc4ab69(0x17b)](_0x1cbacf[_0xc4ab69(0x11b)](),'')){logger['debug'](_0x5528b9[_0xc4ab69(0x15a)]);return;}const _0x4d5ef9=helper[_0xc4ab69(0x15c)](_0x1cbacf);if(_0x54c3a1){const _0x29cf49=_0x5528b9[_0xc4ab69(0x121)](require,_0x5528b9[_0xc4ab69(0x16b)]),_0x32c2c8=_0x29cf49[_0xc4ab69(0x162)](),_0x296eb0=_0x32c2c8&&_0x32c2c8['modules'][TestHubModule[_0xc4ab69(0x128)]];if(_0x296eb0){const _0x201de9=_0x296eb0?.[_0xc4ab69(0x17e)]?.[_0xc4ab69(0x170)]()?.[_0xc4ab69(0x18e)];TestInfo[_0xc4ab69(0x134)](_0x201de9);const _0x16644f=TestInfo[_0xc4ab69(0x17a)](_0x201de9),_0x57462c=_0x16644f[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0xc4ab69(0x19b)](_0x57462c,_0x419950,_0x4d5ef9),_0x16644f[TestFrameworkConstants[_0xc4ab69(0x16f)]]=_0x57462c,TestInfo['setTestDetails'](_0x201de9,_0x16644f);!this[_0xc4ab69(0x12a)][_0x201de9]&&(this['buildLevelTags'][_0x201de9]={});this[_0xc4ab69(0x12a)][_0x201de9][_0x419950]=CustomTagManager['mergeValues'](this[_0xc4ab69(0x12a)][_0x201de9][_0x419950],_0x4d5ef9);try{const _0x15f37c=_0x5528b9[_0xc4ab69(0x196)](getBuildTagsRunId);if(_0x15f37c){const _0x128ba8={};for(const [_0x35b12a,_0x260f47]of Object[_0xc4ab69(0x12c)](this[_0xc4ab69(0x12a)][_0x201de9]||{})){_0x128ba8[_0x35b12a]={'field_type':_0x5528b9['NwBnn'],'values':Array[_0xc4ab69(0x11d)](_0x260f47)?[..._0x260f47]:[]};}_0x5528b9[_0xc4ab69(0x16e)](Object[_0xc4ab69(0x153)](_0x128ba8)[_0xc4ab69(0x15d)],0x0)&&await fs[_0xc4ab69(0x158)][_0xc4ab69(0x179)](_0x5528b9['NsjTk'](getBuildTagsFilePath,_0x15f37c),JSON[_0xc4ab69(0x14e)](_0x128ba8));}else logger[_0xc4ab69(0x159)](_0x5528b9[_0xc4ab69(0x12e)]);}catch(_0x3ceea8){logger[_0xc4ab69(0x159)](_0xc4ab69(0x166)+(_0x3ceea8&&_0x3ceea8[_0xc4ab69(0x176)]?_0x3ceea8[_0xc4ab69(0x176)]:_0x3ceea8));}}}else{let _0xc3603f;const _0x47f9d6=global[_0xc4ab69(0x195)];let _0xcd6454=![];if(_0x47f9d6&&_0x47f9d6[_0xc4ab69(0x19f)](_0x5528b9['NUVhh']))_0xcd6454=!![],_0xc3603f=_0x47f9d6;else try{const _0x2c29ab=_0x5528b9[_0xc4ab69(0x15b)](require,_0x5528b9[_0xc4ab69(0x132)]),_0x11cae5=_0x5528b9[_0xc4ab69(0x15b)](require,_0x5528b9[_0xc4ab69(0x16b)]);if(_0x11cae5[_0xc4ab69(0x162)]()[_0xc4ab69(0x129)]()){const _0x56e47e=_0x2c29ab[_0xc4ab69(0x127)]();if(_0x5528b9[_0xc4ab69(0x17b)](_0x56e47e?.['name']?.[_0xc4ab69(0x11f)](),_0x5528b9[_0xc4ab69(0x14b)])){const _0x40f67d=AutomationFramework[_0xc4ab69(0x175)]();_0xc3603f=AutomationFramework[_0xc4ab69(0x147)](_0x40f67d,PlaywrightDriverModule[_0xc4ab69(0x163)],''),_0xc3603f&&_0xc3603f['includes'](_0x5528b9[_0xc4ab69(0x19c)])&&(_0xcd6454=!![]);}}}catch(_0x280db5){logger['debug'](_0xc4ab69(0x12d)+_0x280db5);}if(_0xcd6454){if(!_0xc3603f)throw new Error(_0x5528b9[_0xc4ab69(0x191)]);const _0xd192a3=_0x5528b9[_0xc4ab69(0x121)](require,_0x5528b9[_0xc4ab69(0x16b)]),_0x5536d3=_0xd192a3[_0xc4ab69(0x162)]()['getTestFramework']();if(!_0x5536d3)throw new Error(_0x5528b9[_0xc4ab69(0x131)]);const _0x1d14aa=_0x5528b9['iEzpv'](require,_0x5528b9['Fqmez']),_0x57bbe6=_0x5528b9[_0xc4ab69(0x15b)](require,_0x5528b9[_0xc4ab69(0x194)]),_0x42a015=_0x5536d3[_0xc4ab69(0x130)](_0x1d14aa['TEST'],_0x57bbe6[_0xc4ab69(0x154)]);if(!_0x42a015)throw new Error(_0x5528b9[_0xc4ab69(0x124)]);const _0x54eae8=_0x42a015[_0xc4ab69(0x151)]()[_0xc4ab69(0x187)](_0xc3603f)||{},_0x1aaada=_0x54eae8[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0xc4ab69(0x159)](_0xc4ab69(0x17f)+_0xc3603f+_0xc4ab69(0x12b)+_0x419950+_0xc4ab69(0x192)+JSON[_0xc4ab69(0x14e)](_0x4d5ef9)+_0xc4ab69(0x13e)+JSON[_0xc4ab69(0x14e)](_0x1aaada)),CustomTagManager[_0xc4ab69(0x19b)](_0x1aaada,_0x419950,_0x4d5ef9),logger[_0xc4ab69(0x159)]('[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key='+_0x419950+_0xc4ab69(0x11e)+JSON['stringify'](_0x1aaada[_0x419950][_0xc4ab69(0x172)]));const _0x3456d8={[TestFrameworkConstants[_0xc4ab69(0x16f)]]:_0x1aaada},_0x135c7a={};_0x135c7a[_0xc3603f]=_0x3456d8,_0x42a015['addMultipleEntries'](_0x135c7a),logger[_0xc4ab69(0x159)](_0xc4ab69(0x174)+_0xc3603f+_0xc4ab69(0x139)+JSON[_0xc4ab69(0x14e)](_0x1aaada)),!this[_0xc4ab69(0x15f)][_0xc3603f]&&(this[_0xc4ab69(0x15f)][_0xc3603f]={}),this['testLevelTags'][_0xc3603f][_0x419950]=CustomTagManager['mergeValues'](this[_0xc4ab69(0x15f)][_0xc3603f][_0x419950],_0x4d5ef9);}else{const _0x11c344=global[_0xc4ab69(0x140)]?.['currentTest']?.[_0xc4ab69(0x133)];if(!_0x11c344){const _0x424654=AutomationFramework[_0xc4ab69(0x175)]();_0xc3603f=AutomationFramework[_0xc4ab69(0x147)](_0x424654,PlaywrightDriverModule[_0xc4ab69(0x163)],'');}else _0xc3603f=TestInfo[_0xc4ab69(0x167)](_0x11c344,_0x11c344['retry']);const _0x59466c=TestInfo[_0xc4ab69(0x17a)](_0xc3603f),_0x425b34=_0x59466c[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager['mergeIntoTags'](_0x425b34,_0x419950,_0x4d5ef9),_0x59466c[TestFrameworkConstants[_0xc4ab69(0x16f)]]=_0x425b34,TestInfo[_0xc4ab69(0x11a)](_0xc3603f,_0x59466c),!this[_0xc4ab69(0x15f)][_0xc3603f]&&(this['testLevelTags'][_0xc3603f]={}),this[_0xc4ab69(0x15f)][_0xc3603f][_0x419950]=CustomTagManager[_0xc4ab69(0x171)](this[_0xc4ab69(0x15f)][_0xc3603f][_0x419950],_0x4d5ef9);}}}static['getBuildLevelTags'](){const _0x502aac=a73_0x2bb70d,_0x43ca30={...this[_0x502aac(0x12a)]};return _0x43ca30;}static['getTestLevelTags'](){const _0x10dbac={...this['testLevelTags']};return _0x10dbac;}static[a73_0x2bb70d(0x182)](){const _0x30ffc5=a73_0x2bb70d;this['buildLevelTags']={},this[_0x30ffc5(0x15f)]={};}static['mergeBuildLevelTags'](_0x4fdef7,_0x8564a1){const _0x24fe13=a73_0x2bb70d,_0x5786bb={};_0x5786bb[_0x24fe13(0x138)]=function(_0x3a338e,_0x38f1a4){return _0x3a338e||_0x38f1a4;};const _0x56144e=_0x5786bb;if(!_0x4fdef7)return;!this[_0x24fe13(0x12a)][_0x4fdef7]&&(this[_0x24fe13(0x12a)][_0x4fdef7]={});for(const [_0x37ab40,_0x341213]of Object[_0x24fe13(0x12c)](_0x56144e[_0x24fe13(0x138)](_0x8564a1,{}))){if(!_0x341213||!Array[_0x24fe13(0x11d)](_0x341213[_0x24fe13(0x172)]))continue;this['buildLevelTags'][_0x4fdef7][_0x37ab40]=CustomTagManager[_0x24fe13(0x171)](this[_0x24fe13(0x12a)][_0x4fdef7][_0x37ab40],_0x341213[_0x24fe13(0x172)]);}}static['aggregateBuildLevelTagsFromTmp'](_0x4af33d,_0x166c8e){const _0x5dc5a3=a73_0x2bb70d,_0x4ce5f4={};_0x4ce5f4[_0x5dc5a3(0x18d)]=_0x5dc5a3(0x190),_0x4ce5f4['SZlkQ']=function(_0x3e6c96,_0xdfaff2){return _0x3e6c96*_0xdfaff2;},_0x4ce5f4[_0x5dc5a3(0x180)]=function(_0x27c17b,_0x546b7c){return _0x27c17b*_0x546b7c;},_0x4ce5f4['HbnKs']=function(_0x540ef0,_0x3af5ae){return _0x540ef0*_0x3af5ae;},_0x4ce5f4[_0x5dc5a3(0x14c)]=function(_0x57a514,_0x2e6c83){return _0x57a514>_0x2e6c83;},_0x4ce5f4[_0x5dc5a3(0x122)]=function(_0x4cd497,_0x5d3b77){return _0x4cd497-_0x5d3b77;},_0x4ce5f4['dbpVo']='utf8';const _0xa380b4=_0x4ce5f4;if(!_0x4af33d)return logger['debug'](_0xa380b4['ZXedS']),0x0;let _0x1272c9;try{_0x1272c9=os['tmpdir']();}catch(_0x3f50f6){return logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20'+_0x3f50f6),0x0;}let _0x40c714;try{_0x40c714=fs[_0x5dc5a3(0x18c)](_0x1272c9);}catch(_0x1f6e6e){return logger['debug'](_0x5dc5a3(0x199)+_0x1f6e6e),0x0;}const _0x54efbc=''+BUILD_TAG_FILE_PREFIX+_0x4af33d+'_',_0x55b38c=_0x40c714[_0x5dc5a3(0x137)](_0x1c3a24=>_0x1c3a24[_0x5dc5a3(0x160)](_0x54efbc)&&_0x1c3a24[_0x5dc5a3(0x173)](_0x5dc5a3(0x13c))),_0xe1e55d=_0xa380b4[_0x5dc5a3(0x142)](_0xa380b4[_0x5dc5a3(0x180)](_0xa380b4['HbnKs'](0x2,0x3c),0x3c),0x3e8);let _0xe104aa=0x0;for(const _0x198aa1 of _0x55b38c){const _0x3c9b8d=path[_0x5dc5a3(0x152)](_0x1272c9,_0x198aa1);try{const _0x46babe=fs['statSync'](_0x3c9b8d);if(_0xa380b4[_0x5dc5a3(0x14c)](_0xa380b4[_0x5dc5a3(0x122)](Date[_0x5dc5a3(0x165)](),_0x46babe[_0x5dc5a3(0x13b)]),_0xe1e55d)){logger[_0x5dc5a3(0x159)](_0x5dc5a3(0x193)+_0xe1e55d+'ms)\x20'+_0x198aa1);try{fs[_0x5dc5a3(0x186)](_0x3c9b8d);}catch(_0xd3a9e6){logger[_0x5dc5a3(0x159)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20'+_0x198aa1+':\x20'+(_0xd3a9e6&&_0xd3a9e6[_0x5dc5a3(0x176)]?_0xd3a9e6[_0x5dc5a3(0x176)]:_0xd3a9e6));}continue;}const _0x89ec41=fs[_0x5dc5a3(0x188)](_0x3c9b8d,_0xa380b4[_0x5dc5a3(0x15e)]),_0x309e01=JSON[_0x5dc5a3(0x143)](_0x89ec41);this['mergeBuildLevelTags'](_0x166c8e,_0x309e01),_0xe104aa+=0x1;}catch(_0x51091d){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x198aa1+':\x20'+(_0x51091d&&_0x51091d['message']?_0x51091d[_0x5dc5a3(0x176)]:_0x51091d));}try{fs['unlinkSync'](_0x3c9b8d);}catch(_0x24be35){logger[_0x5dc5a3(0x159)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'+_0x198aa1+':\x20'+(_0x24be35&&_0x24be35[_0x5dc5a3(0x176)]?_0x24be35[_0x5dc5a3(0x176)]:_0x24be35));}}return _0xe104aa;}}const a73_0x563db0={};a73_0x563db0[a73_0x2bb70d(0x189)]=getBuildTagsRunId,a73_0x563db0[a73_0x2bb70d(0x19e)]=getBuildTagsFilePath,a73_0x563db0['BUILD_TAG_FILE_PREFIX']=BUILD_TAG_FILE_PREFIX,CustomTagManager[a73_0x2bb70d(0x146)]=a73_0x563db0,module['exports']=CustomTagManager;
|
|
1
|
+
'use strict';function a73_0x1adc(){const _0x59d8f3=['CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','readdirSync','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','zdOeZ','unlinkSync','getTestUUID','aXvAR','aggregateBuildLevelTagsFromTmp','setCustomTags','27548fvabBC','ms)\x20','readFileSync','includes','POST','setTestDetails','uMwwL','getBuildTagsRunId','../../helpers/classLogger','mergeValues','multi_dropdown','LEPIH','isRunning','mergeIntoTags','ZUkiW',',\x20finalTags=','./framework/constants/testFrameworkConstants','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','30kaWYvf','bstack_build_tags_','env','944805frgWRw','./cliUtils','buildHashedId','Wvrik','jest','getBuildLevelTags','../../helpers/helper','path','BUILD_TAG_FILE_PREFIX','kwSsB','MODULE_NAME','WzuYd','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','message','PRHnq','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','KEY_TEST_ID','IOlYy','hAWnb','exports','TEST','statSync','string','length','dSami','writeFile','ZAXNh','getInstance','fcUuO','field_type','Urcnl','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','mtimeMs','1537332zdgKit','ROcud','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','BkaBf','pid','utf8','480jbhipK','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','join','isArray','stringify','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','IudLs','625329QZZdAv','.json','ULyXP','KEY_CUSTOM_TAGS','_testInternals','keys','\x20->\x20values=','vkDzB','FiygX','./browserstackCLI',':jest-','trim','modules','resolveInstance','__jestCurrentTestIdentifier','debug','getTestIdentifierFromTestInfo','parseCommaSeparatedValues','5174680IHhZAB','nXLEK','getTestDetails','testInfo','7fzbIpl','__workerDetails','buildLevelTags','tmpdir','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','addMultipleEntries','from','testLevelTags','getBuildTagsFilePath','QDZsN','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','316916yYKWAu','cmuTu','./state/testFrameworkState','KdVZU','./TestInfo','values','pFHCB','endsWith','332420cxFDtx','null','getTestFramework','VupVk','./state/hookState','gZjSh','getTrackedInstance','testhubConfig','finhO','parse'];a73_0x1adc=function(){return _0x59d8f3;};return a73_0x1adc();}const a73_0x2da6a4=a73_0x3ec9;(function(_0x3e22f3,_0x565fb7){const _0x5987c7=a73_0x3ec9,_0x1a714f=_0x3e22f3();while(!![]){try{const _0x39561e=-parseInt(_0x5987c7(0x11d))/0x1+-parseInt(_0x5987c7(0x16f))/0x2+parseInt(_0x5987c7(0x147))/0x3*(parseInt(_0x5987c7(0x18b))/0x4)+-parseInt(_0x5987c7(0x177))/0x5+-parseInt(_0x5987c7(0x13e))/0x6*(-parseInt(_0x5987c7(0x164))/0x7)+parseInt(_0x5987c7(0x160))/0x8+-parseInt(_0x5987c7(0x14e))/0x9*(parseInt(_0x5987c7(0x11a))/0xa);if(_0x39561e===_0x565fb7)break;else _0x1a714f['push'](_0x1a714f['shift']());}catch(_0x422cae){_0x1a714f['push'](_0x1a714f['shift']());}}}(a73_0x1adc,0x99063));function a73_0x3ec9(_0x2444c6,_0x39f021){const _0x1adcac=a73_0x1adc();return a73_0x3ec9=function(_0x3ec96b,_0x2b1d36){_0x3ec96b=_0x3ec96b-0x112;let _0xaf5f54=_0x1adcac[_0x3ec96b];return _0xaf5f54;},a73_0x3ec9(_0x2444c6,_0x39f021);}const fs=require('fs'),os=require('os'),path=require(a73_0x2da6a4(0x124)),helper=require(a73_0x2da6a4(0x123)),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a73_0x2da6a4(0x118)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a73_0x2da6a4(0x173)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require(a73_0x2da6a4(0x193)),logger=createClassLogger('CustomTagManager'),BUILD_TAG_FILE_PREFIX=a73_0x2da6a4(0x11b);function getBuildTagsRunId(){const _0x4ae070=a73_0x2da6a4,_0x20360f={};_0x20360f[_0x4ae070(0x161)]=function(_0x58d9c0,_0x130eca){return _0x58d9c0===_0x130eca;},_0x20360f[_0x4ae070(0x170)]=_0x4ae070(0x178);const _0x26c9c7=_0x20360f,_0x1a7a43=process[_0x4ae070(0x11c)]['BROWSERSTACK_TESTHUB_UUID'];if(!_0x1a7a43||_0x26c9c7['nXLEK'](_0x1a7a43,_0x26c9c7[_0x4ae070(0x170)]))return null;return _0x1a7a43;}function getBuildTagsFilePath(_0x25286c){const _0x41120e=a73_0x2da6a4;return path[_0x41120e(0x149)](os[_0x41120e(0x167)](),''+BUILD_TAG_FILE_PREFIX+_0x25286c+'_'+process[_0x41120e(0x145)]+'.json');}class CustomTagManager{static [a73_0x2da6a4(0x166)]={};static [a73_0x2da6a4(0x16b)]={};static[a73_0x2da6a4(0x194)](_0x260619,_0x293817){const _0x19402f=a73_0x2da6a4;return Array[_0x19402f(0x16a)](new Set([..._0x260619||[],..._0x293817||[]]));}static['mergeIntoTags'](_0x56cd24,_0x2038ec,_0x4129a1){const _0x16936c=a73_0x2da6a4,_0xe42ee0={};_0xe42ee0[_0x16936c(0x172)]='multi_dropdown';const _0x33f000=_0xe42ee0;if(!_0x56cd24[_0x2038ec]){const _0x15d858={};_0x15d858[_0x16936c(0x13a)]=_0x33f000[_0x16936c(0x172)],_0x15d858['values']=[..._0x4129a1||[]],_0x56cd24[_0x2038ec]=_0x15d858;}else!_0x56cd24[_0x2038ec]['field_type']&&(_0x56cd24[_0x2038ec][_0x16936c(0x13a)]=_0x33f000[_0x16936c(0x172)]),!Array['isArray'](_0x56cd24[_0x2038ec][_0x16936c(0x174)])&&(_0x56cd24[_0x2038ec][_0x16936c(0x174)]=[]),_0x56cd24[_0x2038ec]['values']=CustomTagManager[_0x16936c(0x194)](_0x56cd24[_0x2038ec][_0x16936c(0x174)],_0x4129a1);return _0x56cd24;}static async[a73_0x2da6a4(0x18a)](_0xd9fbea,_0x1d5b89,_0x580a93=![]){const _0x2694cb=a73_0x2da6a4,_0x417b08={'WzuYd':function(_0x1e54ac,_0x3646c8){return _0x1e54ac!==_0x3646c8;},'uMwwL':_0x2694cb(0x133),'HauBm':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','ULyXP':_0x2694cb(0x13c),'LEPIH':function(_0x3f29e7,_0x59b2cb){return _0x3f29e7===_0x59b2cb;},'VupVk':_0x2694cb(0x12c),'finhO':function(_0x23dc93,_0x3e8032){return _0x23dc93===_0x3e8032;},'ZAXNh':_0x2694cb(0x183),'dSami':function(_0x32f3bb,_0x48c69f){return _0x32f3bb(_0x48c69f);},'aXvAR':_0x2694cb(0x157),'Urcnl':function(_0x53b992){return _0x53b992();},'fcUuO':_0x2694cb(0x112),'HPfHp':function(_0x59dfc6,_0x592bf1){return _0x59dfc6>_0x592bf1;},'HMUUi':function(_0x362298,_0x40b08b){return _0x362298(_0x40b08b);},'PRHnq':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','gZjSh':_0x2694cb(0x158),'nLzap':function(_0x243187,_0x4257bc){return _0x243187(_0x4257bc);},'Wvrik':_0x2694cb(0x11e),'xrGwL':_0x2694cb(0x121),'QDZsN':_0x2694cb(0x142),'pFHCB':function(_0x978948,_0xab1da4){return _0x978948(_0xab1da4);},'qnCGH':_0x2694cb(0x141),'FiygX':_0x2694cb(0x171),'IudLs':_0x2694cb(0x17b),'zdOeZ':_0x2694cb(0x184)};if(_0x417b08[_0x2694cb(0x128)](typeof _0xd9fbea,_0x417b08[_0x2694cb(0x191)])){logger[_0x2694cb(0x15d)](_0x417b08['HauBm']);return;}if(_0x417b08[_0x2694cb(0x128)](typeof _0x1d5b89,_0x417b08[_0x2694cb(0x191)])){logger['debug'](_0x417b08[_0x2694cb(0x150)]);return;}if(_0x417b08[_0x2694cb(0x113)](_0xd9fbea[_0x2694cb(0x159)](),'')){logger[_0x2694cb(0x15d)](_0x417b08[_0x2694cb(0x17a)]);return;}if(_0x417b08[_0x2694cb(0x17f)](_0x1d5b89['trim'](),'')){logger['debug'](_0x417b08[_0x2694cb(0x137)]);return;}const _0x3d46ba=helper[_0x2694cb(0x15f)](_0x1d5b89);if(_0x580a93){const _0x1e2ac5=_0x417b08['dSami'](require,_0x417b08[_0x2694cb(0x188)]),_0xe0695a=_0x1e2ac5[_0x2694cb(0x138)](),_0x6774ca=_0xe0695a&&_0xe0695a[_0x2694cb(0x15a)][TestHubModule[_0x2694cb(0x127)]];if(_0x6774ca){const _0x13eb31=_0x6774ca?.[_0x2694cb(0x17e)]?.['toObject']()?.[_0x2694cb(0x11f)];TestInfo[_0x2694cb(0x187)](_0x13eb31);const _0xc9ed02=TestInfo['getTestDetails'](_0x13eb31),_0x3700c3=_0xc9ed02[TestFrameworkConstants[_0x2694cb(0x151)]]||{};CustomTagManager['mergeIntoTags'](_0x3700c3,_0xd9fbea,_0x3d46ba),_0xc9ed02[TestFrameworkConstants[_0x2694cb(0x151)]]=_0x3700c3,TestInfo[_0x2694cb(0x190)](_0x13eb31,_0xc9ed02);!this['buildLevelTags'][_0x13eb31]&&(this['buildLevelTags'][_0x13eb31]={});this[_0x2694cb(0x166)][_0x13eb31][_0xd9fbea]=CustomTagManager[_0x2694cb(0x194)](this[_0x2694cb(0x166)][_0x13eb31][_0xd9fbea],_0x3d46ba);try{const _0x39a8cb=_0x417b08[_0x2694cb(0x13b)](getBuildTagsRunId);if(_0x39a8cb){const _0x1fa1cc={};for(const [_0x3c6eb6,_0x254a76]of Object['entries'](this[_0x2694cb(0x166)][_0x13eb31]||{})){_0x1fa1cc[_0x3c6eb6]={'field_type':_0x417b08[_0x2694cb(0x139)],'values':Array[_0x2694cb(0x14a)](_0x254a76)?[..._0x254a76]:[]};}_0x417b08['HPfHp'](Object[_0x2694cb(0x153)](_0x1fa1cc)[_0x2694cb(0x134)],0x0)&&await fs['promises'][_0x2694cb(0x136)](_0x417b08['HMUUi'](getBuildTagsFilePath,_0x39a8cb),JSON[_0x2694cb(0x14b)](_0x1fa1cc));}else logger[_0x2694cb(0x15d)](_0x417b08[_0x2694cb(0x12b)]);}catch(_0x39f198){logger[_0x2694cb(0x15d)](_0x2694cb(0x181)+(_0x39f198&&_0x39f198['message']?_0x39f198['message']:_0x39f198));}}}else{let _0x33d95c;const _0x1600e4=global[_0x2694cb(0x15c)];let _0x34407b=![];if(_0x1600e4&&_0x1600e4['includes'](_0x417b08[_0x2694cb(0x17c)]))_0x34407b=!![],_0x33d95c=_0x1600e4;else try{const _0x50a7ea=_0x417b08['nLzap'](require,_0x417b08[_0x2694cb(0x120)]),_0x54cec9=_0x417b08[_0x2694cb(0x135)](require,_0x417b08['aXvAR']);if(_0x54cec9[_0x2694cb(0x138)]()[_0x2694cb(0x114)]()){const _0xa2e00=_0x50a7ea['getTestFrameworkDetail']();if(_0x417b08['LEPIH'](_0xa2e00?.['name']?.['toLowerCase'](),_0x417b08['xrGwL'])){const _0x16b1cf=AutomationFramework[_0x2694cb(0x17d)]();_0x33d95c=AutomationFramework['getState'](_0x16b1cf,PlaywrightDriverModule[_0x2694cb(0x12d)],''),_0x33d95c&&_0x33d95c[_0x2694cb(0x18e)](_0x417b08[_0x2694cb(0x17c)])&&(_0x34407b=!![]);}}}catch(_0x326af9){logger['debug']('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x326af9);}if(_0x34407b){if(!_0x33d95c)throw new Error(_0x417b08[_0x2694cb(0x16d)]);const _0x7bda75=_0x417b08['pFHCB'](require,_0x417b08[_0x2694cb(0x188)]),_0x1e9c59=_0x7bda75[_0x2694cb(0x138)]()[_0x2694cb(0x179)]();if(!_0x1e9c59)throw new Error(_0x417b08['qnCGH']);const _0x22e53e=_0x417b08[_0x2694cb(0x135)](require,_0x417b08[_0x2694cb(0x156)]),_0x5f3c8e=_0x417b08[_0x2694cb(0x175)](require,_0x417b08[_0x2694cb(0x14d)]),_0x139e8e=_0x1e9c59[_0x2694cb(0x15b)](_0x22e53e[_0x2694cb(0x131)],_0x5f3c8e[_0x2694cb(0x18f)]);if(!_0x139e8e)throw new Error(_0x417b08[_0x2694cb(0x185)]);const _0xf41176=_0x139e8e['getAllData']()['get'](_0x33d95c)||{},_0x5ad476=_0xf41176[TestFrameworkConstants[_0x2694cb(0x151)]]||{};logger['debug'](_0x2694cb(0x148)+_0x33d95c+',\x20key='+_0xd9fbea+',\x20values='+JSON[_0x2694cb(0x14b)](_0x3d46ba)+',\x20existingTags='+JSON[_0x2694cb(0x14b)](_0x5ad476)),CustomTagManager[_0x2694cb(0x115)](_0x5ad476,_0xd9fbea,_0x3d46ba),logger['debug'](_0x2694cb(0x129)+_0xd9fbea+_0x2694cb(0x154)+JSON['stringify'](_0x5ad476[_0xd9fbea][_0x2694cb(0x174)]));const _0x5279b6={[TestFrameworkConstants[_0x2694cb(0x151)]]:_0x5ad476},_0x582b06={};_0x582b06[_0x33d95c]=_0x5279b6,_0x139e8e[_0x2694cb(0x169)](_0x582b06),logger[_0x2694cb(0x15d)](_0x2694cb(0x143)+_0x33d95c+_0x2694cb(0x117)+JSON[_0x2694cb(0x14b)](_0x5ad476)),!this['testLevelTags'][_0x33d95c]&&(this[_0x2694cb(0x16b)][_0x33d95c]={}),this['testLevelTags'][_0x33d95c][_0xd9fbea]=CustomTagManager[_0x2694cb(0x194)](this['testLevelTags'][_0x33d95c][_0xd9fbea],_0x3d46ba);}else{const _0x543e4f=global[_0x2694cb(0x165)]?.['currentTest']?.[_0x2694cb(0x163)];if(!_0x543e4f){const _0x301d5a=AutomationFramework[_0x2694cb(0x17d)]();_0x33d95c=AutomationFramework['getState'](_0x301d5a,PlaywrightDriverModule[_0x2694cb(0x12d)],'');}else _0x33d95c=TestInfo[_0x2694cb(0x15e)](_0x543e4f,_0x543e4f['retry']);const _0x156632=TestInfo[_0x2694cb(0x162)](_0x33d95c),_0x5b4d60=_0x156632[TestFrameworkConstants[_0x2694cb(0x151)]]||{};CustomTagManager[_0x2694cb(0x115)](_0x5b4d60,_0xd9fbea,_0x3d46ba),_0x156632[TestFrameworkConstants[_0x2694cb(0x151)]]=_0x5b4d60,TestInfo[_0x2694cb(0x190)](_0x33d95c,_0x156632),!this[_0x2694cb(0x16b)][_0x33d95c]&&(this[_0x2694cb(0x16b)][_0x33d95c]={}),this['testLevelTags'][_0x33d95c][_0xd9fbea]=CustomTagManager[_0x2694cb(0x194)](this[_0x2694cb(0x16b)][_0x33d95c][_0xd9fbea],_0x3d46ba);}}}static[a73_0x2da6a4(0x122)](){const _0x355ded=a73_0x2da6a4,_0x5aae11={...this[_0x355ded(0x166)]};return _0x5aae11;}static['getTestLevelTags'](){const _0x3af7a3=a73_0x2da6a4,_0xcaa9aa={...this[_0x3af7a3(0x16b)]};return _0xcaa9aa;}static['clearTags'](){const _0x1d6416=a73_0x2da6a4;this[_0x1d6416(0x166)]={},this[_0x1d6416(0x16b)]={};}static['mergeBuildLevelTags'](_0x525e01,_0x2d1f8e){const _0x4a7421=a73_0x2da6a4,_0x2fc2cb={};_0x2fc2cb['vkDzB']=function(_0x21ad98,_0x11a537){return _0x21ad98||_0x11a537;};const _0x2c2798=_0x2fc2cb;if(!_0x525e01)return;!this[_0x4a7421(0x166)][_0x525e01]&&(this[_0x4a7421(0x166)][_0x525e01]={});for(const [_0x30974c,_0x5eda62]of Object['entries'](_0x2c2798[_0x4a7421(0x155)](_0x2d1f8e,{}))){if(!_0x5eda62||!Array[_0x4a7421(0x14a)](_0x5eda62[_0x4a7421(0x174)]))continue;this[_0x4a7421(0x166)][_0x525e01][_0x30974c]=CustomTagManager[_0x4a7421(0x194)](this[_0x4a7421(0x166)][_0x525e01][_0x30974c],_0x5eda62[_0x4a7421(0x174)]);}}static[a73_0x2da6a4(0x189)](_0x46bd43,_0x4f7490){const _0x512501=a73_0x2da6a4,_0x46fa41={};_0x46fa41[_0x512501(0x12e)]=_0x512501(0x140),_0x46fa41[_0x512501(0x116)]=function(_0x4df5fb,_0x36845b){return _0x4df5fb*_0x36845b;},_0x46fa41[_0x512501(0x144)]=function(_0x441bba,_0x277a88){return _0x441bba*_0x277a88;},_0x46fa41['kwSsB']=function(_0x51cd4c,_0x25c9ea){return _0x51cd4c>_0x25c9ea;},_0x46fa41[_0x512501(0x12f)]=function(_0x2e062e,_0x1fe10c){return _0x2e062e-_0x1fe10c;},_0x46fa41[_0x512501(0x13f)]=_0x512501(0x146);const _0x56391c=_0x46fa41;if(!_0x46bd43)return logger[_0x512501(0x15d)](_0x56391c['IOlYy']),0x0;let _0x4a3997;try{_0x4a3997=os[_0x512501(0x167)]();}catch(_0x25c746){return logger[_0x512501(0x15d)](_0x512501(0x119)+_0x25c746),0x0;}let _0x1f9118;try{_0x1f9118=fs[_0x512501(0x182)](_0x4a3997);}catch(_0x56e618){return logger[_0x512501(0x15d)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20'+_0x56e618),0x0;}const _0x471d64=''+BUILD_TAG_FILE_PREFIX+_0x46bd43+'_',_0x287cdc=_0x1f9118['filter'](_0x3c0212=>_0x3c0212['startsWith'](_0x471d64)&&_0x3c0212[_0x512501(0x176)](_0x512501(0x14f))),_0x3b50f3=_0x56391c[_0x512501(0x116)](_0x56391c[_0x512501(0x116)](_0x56391c[_0x512501(0x144)](0x2,0x3c),0x3c),0x3e8);let _0x9247=0x0;for(const _0x1042a8 of _0x287cdc){const _0x1eb529=path[_0x512501(0x149)](_0x4a3997,_0x1042a8);try{const _0x197ec9=fs[_0x512501(0x132)](_0x1eb529);if(_0x56391c[_0x512501(0x126)](_0x56391c[_0x512501(0x12f)](Date['now'](),_0x197ec9[_0x512501(0x13d)]),_0x3b50f3)){logger[_0x512501(0x15d)](_0x512501(0x168)+_0x3b50f3+_0x512501(0x18c)+_0x1042a8);try{fs[_0x512501(0x186)](_0x1eb529);}catch(_0x92f7f6){logger[_0x512501(0x15d)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20'+_0x1042a8+':\x20'+(_0x92f7f6&&_0x92f7f6['message']?_0x92f7f6[_0x512501(0x12a)]:_0x92f7f6));}continue;}const _0x35bffc=fs[_0x512501(0x18d)](_0x1eb529,_0x56391c[_0x512501(0x13f)]),_0x485291=JSON[_0x512501(0x180)](_0x35bffc);this['mergeBuildLevelTags'](_0x4f7490,_0x485291),_0x9247+=0x1;}catch(_0x313191){logger[_0x512501(0x15d)](_0x512501(0x14c)+_0x1042a8+':\x20'+(_0x313191&&_0x313191[_0x512501(0x12a)]?_0x313191[_0x512501(0x12a)]:_0x313191));}try{fs[_0x512501(0x186)](_0x1eb529);}catch(_0xa17f3){logger[_0x512501(0x15d)](_0x512501(0x16e)+_0x1042a8+':\x20'+(_0xa17f3&&_0xa17f3[_0x512501(0x12a)]?_0xa17f3['message']:_0xa17f3));}}return _0x9247;}}const a73_0x44858f={};a73_0x44858f[a73_0x2da6a4(0x192)]=getBuildTagsRunId,a73_0x44858f[a73_0x2da6a4(0x16c)]=getBuildTagsFilePath,a73_0x44858f[a73_0x2da6a4(0x125)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a73_0x2da6a4(0x152)]=a73_0x44858f,module[a73_0x2da6a4(0x130)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x46bf39=a74_0x4b3b;(function(_0x494c98,_0x143c1d){const _0x447197=a74_0x4b3b,_0x34bd1d=_0x494c98();while(!![]){try{const _0x3088d5=parseInt(_0x447197(0xd2))/0x1+parseInt(_0x447197(0xd6))/0x2*(-parseInt(_0x447197(0xc8))/0x3)+parseInt(_0x447197(0xd7))/0x4*(-parseInt(_0x447197(0xcb))/0x5)+parseInt(_0x447197(0xca))/0x6+parseInt(_0x447197(0xd5))/0x7*(parseInt(_0x447197(0xcd))/0x8)+parseInt(_0x447197(0xcc))/0x9*(parseInt(_0x447197(0xd8))/0xa)+parseInt(_0x447197(0xd9))/0xb;if(_0x3088d5===_0x143c1d)break;else _0x34bd1d['push'](_0x34bd1d['shift']());}catch(_0x7e8365){_0x34bd1d['push'](_0x34bd1d['shift']());}}}(a74_0x5a95,0xb1d3b));const {createClassLogger}=require(a74_0x46bf39(0xd4));class EventDispatcher{static #instance=null;constructor(){const _0x447836=a74_0x46bf39;this[_0x447836(0xc9)]={};}static[a74_0x46bf39(0xd1)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a74_0x46bf39(0xce)](_0x28c86f,_0x75b24a){const _0xeb3731=a74_0x46bf39;!this[_0xeb3731(0xc9)][_0x28c86f]&&(this[_0xeb3731(0xc9)][_0x28c86f]=[]),this[_0xeb3731(0xc9)][_0x28c86f][_0xeb3731(0xd3)](_0x75b24a);}async['notifyObserver'](_0x50044a,_0x194872){const _0x103e88=a74_0x46bf39,_0xa1895f={'rXSfq':function(_0x498c5f,_0x13e5fa){return _0x498c5f(_0x13e5fa);}};if(this[_0x103e88(0xc9)][_0x50044a]){for(const _0x2e7148 of this[_0x103e88(0xc9)][_0x50044a]){await _0xa1895f[_0x103e88(0xd0)](_0x2e7148,_0x194872);}return;}}}const eventDispatcher=EventDispatcher[a74_0x46bf39(0xd1)]();function a74_0x5a95(){const _0x453d6a=['48CLXSwo','20lDlffA','8919340LfMLEo','9009902CYasUy','exports','164523DAqsDW','observers','150030OktEbc','389875BcGeDQ','9kMWYPL','32FTZslD','registerObserver','freeze','rXSfq','getInstance','25981PutJsP','push','../../helpers/classLogger.js','1176763cIQubr'];a74_0x5a95=function(){return _0x453d6a;};return a74_0x5a95();}function a74_0x4b3b(_0x16cf47,_0x32a6b1){const _0x5a95d5=a74_0x5a95();return a74_0x4b3b=function(_0x4b3b63,_0x5a63e5){_0x4b3b63=_0x4b3b63-0xc7;let _0x7c0123=_0x5a95d5[_0x4b3b63];return _0x7c0123;},a74_0x4b3b(_0x16cf47,_0x32a6b1);}Object[a74_0x46bf39(0xcf)](eventDispatcher),module[a74_0x46bf39(0xc7)]=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a75_0x1066(_0x37e627,_0x4d4bbe){const _0x9d19e1=a75_0x9d19();return a75_0x1066=function(_0x1066bb,_0x5d9e2b){_0x1066bb=_0x1066bb-0xa0;let _0xf08b7b=_0x9d19e1[_0x1066bb];return _0xf08b7b;},a75_0x1066(_0x37e627,_0x4d4bbe);}const a75_0x124781=a75_0x1066;(function(_0x3a9429,_0x3136d0){const _0xffbd7c=a75_0x1066,_0xad4a0f=_0x3a9429();while(!![]){try{const _0x1d8d4b=-parseInt(_0xffbd7c(0xb9))/0x1+parseInt(_0xffbd7c(0xa1))/0x2+-parseInt(_0xffbd7c(0xc6))/0x3*(-parseInt(_0xffbd7c(0xb1))/0x4)+parseInt(_0xffbd7c(0xb5))/0x5*(-parseInt(_0xffbd7c(0xa7))/0x6)+parseInt(_0xffbd7c(0xac))/0x7*(parseInt(_0xffbd7c(0xc7))/0x8)+parseInt(_0xffbd7c(0xa5))/0x9+parseInt(_0xffbd7c(0xba))/0xa*(-parseInt(_0xffbd7c(0xa8))/0xb);if(_0x1d8d4b===_0x3136d0)break;else _0xad4a0f['push'](_0xad4a0f['shift']());}catch(_0x1eb35e){_0xad4a0f['push'](_0xad4a0f['shift']());}}}(a75_0x9d19,0x841c0));const {createClassLogger}=require(a75_0x124781(0xc3)),util=require(a75_0x124781(0xc0)),eventDispatcher=require(a75_0x124781(0xa6)),CLIUtils=require(a75_0x124781(0xc5)),TrackedInstance=require(a75_0x124781(0xb3)),logger=createClassLogger(a75_0x124781(0xb2));function a75_0x9d19(){const _0x4e49d9=['instances','../cliUtils.js','2427FbHcBx','4502104CeTrsz','getAutomationFrameworkName','getTrackedInstance','1716824tFqOLT','setState','automation_sessions','setTrackedInstance','5800518VJzzSl','../eventDispatcher.js','186882aMOafO','6050busRqP','set','getHookRegistryKey','getState','7EhqYkJ','getAllData','registerObserver','debug','KEY_AUTOMATION_SESSIONS','520iYbgPu','AutomationFramework','../instances/trackedInstance.js','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','65eraGNS','automationFrameworkName','non_browserstack_automation_sessions','trackEvent:\x20automationFrameworkState=','358566AIQJUj','15750qpNWvH','get','createContext','trackEvent','getCurrentInstanceName','notifyObserver','util','runHooks','\x20hookState=','../../../helpers/classLogger.js'];a75_0x9d19=function(){return _0x4e49d9;};return a75_0x9d19();}class AutomationFramework{static ['instances']=new Map();static [a75_0x124781(0xb0)]=a75_0x124781(0xa3);static [a75_0x124781(0xb4)]=a75_0x124781(0xb7);constructor(_0x224ee0,_0x20e613){const _0x16098d=a75_0x124781;this[_0x16098d(0xb6)]=_0x224ee0,this['automationFrameworkVersion']=_0x20e613;}[a75_0x124781(0xc8)](){const _0x54d62f=a75_0x124781;return this[_0x54d62f(0xb6)];}['getAutomationFrameworkVersion'](){return this['automationFrameworkVersion'];}async[a75_0x124781(0xbd)](_0x1d9764,_0x350d23,_0x54bd87={}){const _0x3b9e54=a75_0x124781;logger[_0x3b9e54(0xaf)](_0x3b9e54(0xb8)+_0x1d9764+_0x3b9e54(0xc2)+_0x350d23);}async[a75_0x124781(0xc1)](_0x2fd58c,_0x281802,_0x8ae5c2,_0x5a9756={}){const _0x48396d=a75_0x124781,_0x1f37b0=CLIUtils[_0x48396d(0xaa)](_0x281802,_0x8ae5c2);_0x2fd58c&&_0x2fd58c[_0x48396d(0xa2)](_0x281802),await eventDispatcher[_0x48396d(0xbf)](_0x1f37b0,_0x5a9756);}static[a75_0x124781(0xae)](_0x40281d,_0x4968a2,_0x55935a){const _0x5e0689=a75_0x124781;eventDispatcher[_0x5e0689(0xae)](CLIUtils[_0x5e0689(0xaa)](_0x40281d,_0x4968a2),_0x55935a);}static[a75_0x124781(0xa4)](_0x303d35,_0x1cb010){const _0x2a4c88=a75_0x124781;AutomationFramework[_0x2a4c88(0xc4)][_0x2a4c88(0xa9)](_0x303d35['getId'](),_0x1cb010);}static[a75_0x124781(0xa0)](){const _0x55067f=a75_0x124781,_0x20fd01=TrackedInstance[_0x55067f(0xbc)](CLIUtils[_0x55067f(0xbe)]());return AutomationFramework[_0x55067f(0xc4)]['get'](_0x20fd01['getId']());}static[a75_0x124781(0xa2)](_0x2aa22f,_0x16188d,_0x3699b8){const _0x218e29=a75_0x124781;_0x2aa22f[_0x218e29(0xad)]()[_0x218e29(0xa9)](_0x16188d,_0x3699b8);}static[a75_0x124781(0xab)](_0x5b0a52,_0x1c8072){const _0x40e70f=a75_0x124781;return _0x5b0a52[_0x40e70f(0xad)]()[_0x40e70f(0xbb)](_0x1c8072);}}module['exports']=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a76_0x66094e=a76_0x5166;(function(_0x2787ce,_0x8cbcd7){const _0x3cdf5d=a76_0x5166,_0x3ae363=_0x2787ce();while(!![]){try{const _0x38e4d0=-parseInt(_0x3cdf5d(0xfd))/0x1*(parseInt(_0x3cdf5d(0xfb))/0x2)+-parseInt(_0x3cdf5d(0xff))/0x3*(-parseInt(_0x3cdf5d(0x102))/0x4)+-parseInt(_0x3cdf5d(0xf1))/0x5+-parseInt(_0x3cdf5d(0xec))/0x6*(parseInt(_0x3cdf5d(0xee))/0x7)+-parseInt(_0x3cdf5d(0xfe))/0x8+parseInt(_0x3cdf5d(0xef))/0x9*(parseInt(_0x3cdf5d(0x101))/0xa)+parseInt(_0x3cdf5d(0xf5))/0xb;if(_0x38e4d0===_0x8cbcd7)break;else _0x3ae363['push'](_0x3ae363['shift']());}catch(_0x3ba48e){_0x3ae363['push'](_0x3ae363['shift']());}}}(a76_0x48ec,0xd9cb9));const a76_0x508f7a={};function a76_0x48ec(){const _0x43db88=['KEY_CAPABILITIES','KEY_IS_BROWSERSTACK_HUB','45552969aCIskC','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','w3cexecutescriptasync','KEY_HUB_URL','hub_url','input_capabilities','3182834Liydmb','KEY_STARTED_AT','1JYmAri','10907984xyteLS','7893LqRAzB','platform_index','13130PFgydZ','76XKuXnE','COMMAND_SCREENSHOT','capabilities','ended_at','COMMAND_GET','exports','framework_session_id','ENV_BROWSERSTACK_PLATFORM_INDEX','1806gsgzRj','screenshot','7595TDYHRC','9324rEmOwq','get','6889235CWlZUA','KEY_ENDED_AT'];a76_0x48ec=function(){return _0x43db88;};return a76_0x48ec();}a76_0x508f7a[a76_0x66094e(0xeb)]='BROWSERSTACK_PLATFORM_INDEX',a76_0x508f7a[a76_0x66094e(0xf8)]=a76_0x66094e(0xf9),a76_0x508f7a['KEY_FRAMEWORK_SESSION_ID']=a76_0x66094e(0xea),a76_0x508f7a['KEY_INPUT_CAPABILITIES']=a76_0x66094e(0xfa),a76_0x508f7a[a76_0x66094e(0xf3)]=a76_0x66094e(0x104),a76_0x508f7a[a76_0x66094e(0xf4)]='is_browserstack_hub',a76_0x508f7a[a76_0x66094e(0xfc)]='started_at',a76_0x508f7a[a76_0x66094e(0xf2)]=a76_0x66094e(0xe7),a76_0x508f7a['KEY_PLATFORM_INDEX']=a76_0x66094e(0x100),a76_0x508f7a['COMMAND_NEW_SESSION']='newsession',a76_0x508f7a[a76_0x66094e(0xe8)]=a76_0x66094e(0xf0),a76_0x508f7a[a76_0x66094e(0x103)]=a76_0x66094e(0xed),a76_0x508f7a['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a76_0x508f7a[a76_0x66094e(0xf6)]=a76_0x66094e(0xf7),a76_0x508f7a['COMMAND_QUIT']='quit';const AutomationFrameworkConstants=a76_0x508f7a;function a76_0x5166(_0x24ef35,_0x27547c){const _0x48eceb=a76_0x48ec();return a76_0x5166=function(_0x5166c3,_0x27e73f){_0x5166c3=_0x5166c3-0xe7;let _0x295fe9=_0x48eceb[_0x5166c3];return _0x295fe9;},a76_0x5166(_0x24ef35,_0x27547c);}module[a76_0x66094e(0xe9)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a77_0x49c8ba=a77_0xb46c;function a77_0x4175(){const _0x3e87de=['KEY_HOOK_NAME','TEST_LOG','automate_session_name','KEY_HOOKS_FINISHED','KEY_FILE_PATH','test_hook_last_started','hook_failure','test_failure_type','test_hook_last_finished','KEY_TEST_NAME','DEFAULT_HOOK_RESULT','KEY_TEST_LOCATION','KEY_TEST_TAGS','KEY_TEST_FRAMEWORK_NAME','2DFOVBb','file_size','KEY_HOOK_LAST_FINISHED','hook_failure_type','KEY_TEST_STARTED_AT','KEY_FILE_LEVEL','automate_session_reason','MAX_TOP_LEVEL_STEPS','KEY_HOOK_LOGS','retry_of','file_level','KEY_FILE_SIZE','test_code','9097764TEYQIF','KIND_SCREENSHOT','hook_logs','KEY_HOOK_FAILURE_TYPE','KIND_LOG','test_id','MAX_NESTED_STEP_DEPTH','test_location','test_hooks_finished','KEY_HOOK_FAILURE','KEY_TEST_ENDED_AT','KEY_FILE_NAME','test_framework_name','5403936sYLPvX','hook_failure_reason','KEY_EVENT_ENDED_AT','KEY_TEST_FRAMEWORK_VERSION','KEY_TEST_RERUN_NAME','logs','308908wktFyB','KEY_TEST_FAILURE_REASON','13030hoiQQL','test_tags','KEY_SESSION_NAME','hook_result','KEY_TEST_DURATION','test_ended_at','1544eAOPGn','KEY_HOOKS_STARTED','^(BEFORE_|AFTER_)','KEY_TEST_ID','KEY_TEST_FAILURE','5254186fJvzYE','test_attachments','test_started_at','10KdeMzR','TEST_SCREENSHOT','KEY_TEST_SCOPE','5221215XmyToM','automate_session_status','KEY_HOOK_FAILURE_REASON','KEY_TEST_META','KEY_CUSTOM_TAGS','KEY_HOOK_ID','file_name','KEY_TEST_RETRY_OF','test_logs','custom_metadata','KEY_TEST_RESULT','hook_name','test_rerun_name','test_duration','KEY_LOGS','3851409qxZUBS','test_failure','pending','test_framework_version','DEFAULT_TEST_RESULT','KEY_TEST_FAILURE_TYPE','KEY_TEST_CODE','platform_index','test_file_path','KEY_AUTOMATE_SESSION_REASON','KEY_PLATFORM_INDEX','KEY_HOOK_RESULT','test_scopes','KEY_TEST_SCOPES','HOOK_REGEX','event_ended_at'];a77_0x4175=function(){return _0x3e87de;};return a77_0x4175();}(function(_0x4b8da8,_0x1264a1){const _0x5bd68b=a77_0xb46c,_0x1bebd0=_0x4b8da8();while(!![]){try{const _0x16d7ff=-parseInt(_0x5bd68b(0x177))/0x1+parseInt(_0x5bd68b(0x157))/0x2*(parseInt(_0x5bd68b(0x139))/0x3)+parseInt(_0x5bd68b(0x17f))/0x4*(-parseInt(_0x5bd68b(0x179))/0x5)+parseInt(_0x5bd68b(0x164))/0x6+parseInt(_0x5bd68b(0x184))/0x7+-parseInt(_0x5bd68b(0x171))/0x8+parseInt(_0x5bd68b(0x18a))/0x9*(-parseInt(_0x5bd68b(0x187))/0xa);if(_0x16d7ff===_0x1264a1)break;else _0x1bebd0['push'](_0x1bebd0['shift']());}catch(_0x497ed){_0x1bebd0['push'](_0x1bebd0['shift']());}}}(a77_0x4175,0xef514));const a77_0x6955eb={};function a77_0xb46c(_0x31865d,_0x4f8c20){const _0x417512=a77_0x4175();return a77_0xb46c=function(_0xb46c4a,_0x53ca74){_0xb46c4a=_0xb46c4a-0x12b;let _0x489c15=_0x417512[_0xb46c4a];return _0x489c15;},a77_0xb46c(_0x31865d,_0x4f8c20);}a77_0x6955eb['KEY_TEST_UUID']='test_uuid',a77_0x6955eb[a77_0x49c8ba(0x182)]=a77_0x49c8ba(0x169),a77_0x6955eb[a77_0x49c8ba(0x152)]='test_name',a77_0x6955eb['KEY_TEST_FILE_PATH']=a77_0x49c8ba(0x141),a77_0x6955eb[a77_0x49c8ba(0x155)]=a77_0x49c8ba(0x17a),a77_0x6955eb[a77_0x49c8ba(0x134)]='test_result',a77_0x6955eb['KEY_TEST_RESULT_AT']='test_result_at',a77_0x6955eb[a77_0x49c8ba(0x15b)]=a77_0x49c8ba(0x186),a77_0x6955eb[a77_0x49c8ba(0x16e)]=a77_0x49c8ba(0x17e),a77_0x6955eb[a77_0x49c8ba(0x154)]=a77_0x49c8ba(0x16b),a77_0x6955eb[a77_0x49c8ba(0x17d)]=a77_0x49c8ba(0x137),a77_0x6955eb[a77_0x49c8ba(0x189)]='test_scope',a77_0x6955eb[a77_0x49c8ba(0x146)]=a77_0x49c8ba(0x145),a77_0x6955eb[a77_0x49c8ba(0x156)]=a77_0x49c8ba(0x170),a77_0x6955eb[a77_0x49c8ba(0x174)]=a77_0x49c8ba(0x13c),a77_0x6955eb[a77_0x49c8ba(0x13f)]=a77_0x49c8ba(0x163),a77_0x6955eb[a77_0x49c8ba(0x175)]=a77_0x49c8ba(0x136),a77_0x6955eb[a77_0x49c8ba(0x131)]=a77_0x49c8ba(0x160),a77_0x6955eb[a77_0x49c8ba(0x143)]=a77_0x49c8ba(0x140),a77_0x6955eb[a77_0x49c8ba(0x183)]=a77_0x49c8ba(0x13a),a77_0x6955eb[a77_0x49c8ba(0x13e)]=a77_0x49c8ba(0x150),a77_0x6955eb[a77_0x49c8ba(0x178)]='test_failure_reason',a77_0x6955eb['KEY_TEST_LOGS']=a77_0x49c8ba(0x132),a77_0x6955eb[a77_0x49c8ba(0x12d)]='test_meta',a77_0x6955eb[a77_0x49c8ba(0x17b)]='test_session_name',a77_0x6955eb['KEY_AUTOMATE_SESSION_NAME']=a77_0x49c8ba(0x14b),a77_0x6955eb['KEY_AUTOMATE_SESSION_STATUS']=a77_0x49c8ba(0x12b),a77_0x6955eb[a77_0x49c8ba(0x142)]=a77_0x49c8ba(0x15d),a77_0x6955eb['KEY_EVENT_STARTED_AT']='event_started_at',a77_0x6955eb[a77_0x49c8ba(0x173)]=a77_0x49c8ba(0x148),a77_0x6955eb[a77_0x49c8ba(0x12f)]='hook_id',a77_0x6955eb[a77_0x49c8ba(0x144)]=a77_0x49c8ba(0x17c),a77_0x6955eb[a77_0x49c8ba(0x167)]=a77_0x49c8ba(0x15a),a77_0x6955eb[a77_0x49c8ba(0x12c)]=a77_0x49c8ba(0x172),a77_0x6955eb[a77_0x49c8ba(0x16d)]=a77_0x49c8ba(0x14f),a77_0x6955eb[a77_0x49c8ba(0x15f)]=a77_0x49c8ba(0x166),a77_0x6955eb[a77_0x49c8ba(0x149)]=a77_0x49c8ba(0x135),a77_0x6955eb[a77_0x49c8ba(0x13d)]='pending',a77_0x6955eb[a77_0x49c8ba(0x153)]=a77_0x49c8ba(0x13b),a77_0x6955eb[a77_0x49c8ba(0x165)]=a77_0x49c8ba(0x188),a77_0x6955eb[a77_0x49c8ba(0x168)]=a77_0x49c8ba(0x14a),a77_0x6955eb[a77_0x49c8ba(0x147)]=a77_0x49c8ba(0x181),a77_0x6955eb[a77_0x49c8ba(0x180)]='test_hooks_started',a77_0x6955eb[a77_0x49c8ba(0x14c)]=a77_0x49c8ba(0x16c),a77_0x6955eb['KEY_HOOK_LAST_STARTED']=a77_0x49c8ba(0x14e),a77_0x6955eb[a77_0x49c8ba(0x159)]=a77_0x49c8ba(0x151),a77_0x6955eb[a77_0x49c8ba(0x138)]=a77_0x49c8ba(0x176),a77_0x6955eb[a77_0x49c8ba(0x12e)]=a77_0x49c8ba(0x133),a77_0x6955eb['KEY_TEST_ATTACHMENTS']=a77_0x49c8ba(0x185),a77_0x6955eb[a77_0x49c8ba(0x162)]=a77_0x49c8ba(0x158),a77_0x6955eb[a77_0x49c8ba(0x16f)]=a77_0x49c8ba(0x130),a77_0x6955eb[a77_0x49c8ba(0x14d)]='file_path',a77_0x6955eb[a77_0x49c8ba(0x15c)]=a77_0x49c8ba(0x161),a77_0x6955eb[a77_0x49c8ba(0x15e)]=0xa,a77_0x6955eb[a77_0x49c8ba(0x16a)]=0x2;const TestFrameworkConstants=a77_0x6955eb;module['exports']=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a78_0x5ec0d6=a78_0xefcf;function a78_0x23f1(){const _0x267762=['\x20for\x20test:\x20','KEY_TEST_STARTED_AT','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','addPendingHook','KEY_HOOK_LAST_FINISHED','storePendingHook','failure_data','testUUID','createContext','KEY_HOOK_LAST_STARTED','failure_reason','../grpcClient','KEY_TEST_LOCATION','TEST','../instances/trackedInstance.js','getTrackedInstance','KEY_TEST_FILE_PATH','NONE','getId','ANqGC','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_HOOKS_STARTED','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','stringify','instance','hooks','KEY_CUSTOM_TAGS','name','platformIndex','KEY_EVENT_STARTED_AT','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','lcaYM','pdybn','../cliUtils.js','\x20&\x20hookState=','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','phAaW','pop','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','test_run_id','getAllData','Updated\x20cucumber\x20test\x20result:\x20','testFrameworkVersion','push','XjsIp','MALPd','KEY_HOOK_ID','getTestFrameworks','getContext','OyeRz','10MqiCUa','hook_type','KEY_HOOKS_FINISHED','UnhandledError','vsFRS','executionContext','qwyyN','debug','getCurrentTestState','750681QlJQcZ','startedAt','rerun_name','KEY_TEST_ID','LOG_REPORT','UjxTv','Processing\x20','1367482acVsJL','wlRAO','meta','KEY_AUTOMATE_SESSION_NAME','1960475ZPrcsH','CucumberTestFramework','INIT_TEST','blgJy','sendLogCreatedEvent:\x20for\x20testId:\x20','key','getTestFrameworksVersions','toString','result','KEY_TEST_FAILURE_REASON','KEY_TEST_RESULT','SLUoI','OKwkb','testFrameworkName','9wxUITm','Parsed\x20cucumber\x20test:\x20','concat','\x20payload=','trackCucumberInstance:\x20saved\x20instance\x20contextId=','from','KEY_HOOK_FAILURE_REASON','getThreadId','getInstance','inspect','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','\x20with\x20id\x20','eWpyY','split','GYMbH','readLogObjects','exports','createTestFrameworkEventPayload\x20testId:\x20','util','getCurrentHookState','processPendingHooks','KEY_TEST_ATTACHMENTS','3759475LTRCAO','test','1068752bRPmYs','\x20batch\x20','DEFAULT_HOOK_RESULT','jBncq','./constants/testFrameworkConstants.js','../TestInfo.js','\x20testState:\x20','trackEvent:\x20unsupported\x20testFrameworkState=','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','matchHookRegex','\x20and\x20args\x20=\x20','browserstackPlatformIndex','TEtEZ','hgKxg','../../../helpers/classLogger.js','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','keys','SrOFJ','passed','HTkhf','VNfPL','KEY_TEST_FAILURE','scopes','resolveInstance','createTestFrameworkEventPayload','KEY_TEST_FRAMEWORK_NAME','parseCucumberTestResult','tags','aqkqY','args','trackCucumberInstance','Stored\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_RERUN_NAME','KEY_TEST_LOGS','\x20response=','KEY_TEST_NAME','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','POST','length','KEY_EVENT_ENDED_AT','ceil','format','KEY_HOOK_FAILURE',',\x20hookState:\x20','KEY_TEST_FAILURE_TYPE','hasPendingHooks','fmLwu','testData','eventJson','failure','KEY_HOOK_FAILURE_TYPE','get','hookState','PRE','trackHookEvent','1488714ebPGrv','sendLogCreatedEvent','\x20target=','started_at','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',',\x20storing\x20as\x20pending\x20hook','772540shUsGT','slice','KEY_HOOK_RESULT','\x20with\x20result:\x20','KEY_TEST_UUID',',\x20state:\x20','CKaGe','KSBmU','\x20hookState:\x20','\x20\x20and\x20args\x20=\x20','setTestDetails','../state/hookState.js','7dLVsFp','endedAt','vZQoo','KEY_LOGS','toISOString','oXgmX','parseCucumberTest','3MTMkIV','addMultipleEntries','KEY_HOOK_LOGS','logCreatedEvent','testFrameworkState','failure_type','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','unknown','hookData','uuid','getTestDetails','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_TEST_TAGS','KEY_TEST_FRAMEWORK_VERSION',',\x20error:\x20','trackEvent','\x20pending\x20hooks\x20for\x20testId:\x20','runHooks','KEY_TEST_CODE','removePendingHooks','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','wIslX','error'];a78_0x23f1=function(){return _0x267762;};return a78_0x23f1();}(function(_0x3a452d,_0x571d7d){const _0x37cb3d=a78_0xefcf,_0x49d85c=_0x3a452d();while(!![]){try{const _0x3eb132=parseInt(_0x37cb3d(0x208))/0x1+parseInt(_0x37cb3d(0x20f))/0x2*(parseInt(_0x37cb3d(0x1b6))/0x3)+-parseInt(_0x37cb3d(0x1a3))/0x4+-parseInt(_0x37cb3d(0x237))/0x5+parseInt(_0x37cb3d(0x19d))/0x6*(-parseInt(_0x37cb3d(0x1af))/0x7)+parseInt(_0x37cb3d(0x239))/0x8*(parseInt(_0x37cb3d(0x221))/0x9)+-parseInt(_0x37cb3d(0x1ff))/0xa*(-parseInt(_0x37cb3d(0x213))/0xb);if(_0x3eb132===_0x571d7d)break;else _0x49d85c['push'](_0x49d85c['shift']());}catch(_0x379ecb){_0x49d85c['push'](_0x49d85c['shift']());}}}(a78_0x23f1,0x87084));const TestFramework=require('./testFramework'),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a78_0x5ec0d6(0x1ae)),{createClassLogger}=require(a78_0x5ec0d6(0x247)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a78_0x5ec0d6(0x1ee)),TrackedInstance=require(a78_0x5ec0d6(0x1db)),TestFrameworkConstants=require(a78_0x5ec0d6(0x23d)),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger(a78_0x5ec0d6(0x214)),{v4:uuidv4}=require(a78_0x5ec0d6(0x1bf)),util=require(a78_0x5ec0d6(0x233)),TestInfo=require(a78_0x5ec0d6(0x23e)),GrpcClient=require(a78_0x5ec0d6(0x1d8));function a78_0xefcf(_0x3ac443,_0x4f561f){const _0x23f17e=a78_0x23f1();return a78_0xefcf=function(_0xefcff8,_0x5ea494){_0xefcff8=_0xefcff8-0x188;let _0x1c9920=_0x23f17e[_0xefcff8];return _0x1c9920;},a78_0xefcf(_0x3ac443,_0x4f561f);}class CucumberTestFramework extends TestFramework{constructor(_0x149f27,_0x1f01be,_0x54a037){super(_0x149f27,_0x1f01be,_0x54a037);}async['trackEvent'](_0x44846c,_0xb76707,_0x23f865={}){const _0x389061=a78_0x5ec0d6,_0x2bebd9={};_0x2bebd9[_0x389061(0x1a9)]=_0x389061(0x1a1),_0x2bebd9[_0x389061(0x1ec)]=function(_0x46e09c,_0x2b7ae3){return _0x46e09c===_0x2b7ae3;},_0x2bebd9[_0x389061(0x24a)]=_0x389061(0x1eb);const _0x311a5a=_0x2bebd9;await super[_0x389061(0x1c5)](_0x44846c,_0xb76707,_0x23f865);const _0x3eb711=this['resolveInstance'](_0x44846c,_0xb76707,_0x23f865);if(!_0x3eb711){logger[_0x389061(0x206)](_0x311a5a[_0x389061(0x1a9)]);return;}try{let _0x1b4dfb,_0x34df67;switch(_0x44846c){case TestFrameworkState[_0x389061(0x1da)]:_0x1b4dfb=_0x23f865[_0x389061(0x238)],_0x34df67=TestInfo['getTestUUID'](_0x1b4dfb['id']);if(_0x311a5a[_0x389061(0x1ec)](_0xb76707,HookState[_0x389061(0x19b)])){logger[_0x389061(0x206)](_0x389061(0x1f0)+_0x1b4dfb['id']);const _0x40ea7e={};_0x40ea7e[_0x389061(0x1d4)]=_0x34df67,_0x40ea7e[_0x389061(0x195)]=_0x1b4dfb,_0x3eb711[_0x389061(0x1b7)](this[_0x389061(0x1b5)](_0x40ea7e)),logger[_0x389061(0x206)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x1b4dfb['id']),await this[_0x389061(0x235)](_0x3eb711,_0x1b4dfb['id']);}else{if(_0x311a5a[_0x389061(0x1ec)](_0xb76707,HookState[_0x389061(0x18b)])){const _0x1abcca={};_0x1abcca[_0x389061(0x1d4)]=_0x34df67,_0x1abcca[_0x389061(0x195)]=_0x1b4dfb,_0x3eb711[_0x389061(0x1b7)](this['parseCucumberTestResult'](_0x1abcca)),await this[_0x389061(0x235)](_0x3eb711,_0x1b4dfb['id']);}}break;case TestFrameworkState[_0x389061(0x20c)]:_0x311a5a[_0x389061(0x1ec)](_0xb76707,HookState[_0x389061(0x18b)])&&await this['sendLogCreatedEvent'](_0x3eb711,_0x44846c,_0x23f865);break;default:if(CLIUtils[_0x389061(0x242)](_0x44846c[_0x389061(0x21a)]()[_0x389061(0x22e)]('.')[0x1])){const _0x2a5892=await this[_0x389061(0x19c)](_0x3eb711,_0x44846c,_0xb76707,_0x23f865);_0x3eb711['addMultipleEntries'](_0x2a5892);}else logger[_0x389061(0x206)](_0x389061(0x240)+_0x44846c+_0x389061(0x1ef)+_0xb76707);break;}}catch(_0x25fc90){logger['error'](util['format'](_0x311a5a[_0x389061(0x24a)],_0x44846c,_0xb76707,_0x23f865[_0x389061(0x18c)],_0x25fc90));}_0x23f865[_0x389061(0x1e5)]=_0x3eb711,await this[_0x389061(0x1c7)](_0x3eb711,_0x44846c,_0xb76707,_0x23f865);}['resolveInstance'](_0x34f055,_0x1ee5b8,_0x196515={}){const _0x55a3d2=a78_0x5ec0d6,_0x5ebac9={};_0x5ebac9[_0x55a3d2(0x210)]=function(_0x38986f,_0x11d0f2){return _0x38986f===_0x11d0f2;},_0x5ebac9['eWpyY']=function(_0x464e96,_0x74aac4){return _0x464e96===_0x74aac4;};const _0x5995cd=_0x5ebac9;let _0x4095ca=null;return(_0x5995cd[_0x55a3d2(0x210)](_0x34f055,TestFrameworkState[_0x55a3d2(0x215)])||_0x5995cd[_0x55a3d2(0x22d)](_0x34f055,TestFrameworkState[_0x55a3d2(0x1de)]))&&this[_0x55a3d2(0x257)](_0x34f055,_0x196515),_0x4095ca=TestFramework[_0x55a3d2(0x1dc)](),_0x4095ca;}['trackCucumberInstance'](_0x127463,_0x369605){const _0xd13113=a78_0x5ec0d6,_0x11f676=CLIUtils['getCurrentInstanceName'](),_0x3a3591=TrackedInstance[_0xd13113(0x1d5)](_0x11f676);let _0x557fce=null;logger['debug']('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0x11f676+',\x20state='+_0x127463),_0x557fce=new TestFrameworkInstance(_0x3a3591,this[_0xd13113(0x1fc)](),this['getTestFrameworksVersions'](),_0x127463,HookState[_0xd13113(0x1de)]),TestFramework['setTrackedInstance'](_0x3a3591,_0x557fce),logger['debug'](_0xd13113(0x225)+_0x3a3591[_0xd13113(0x1df)]()+_0xd13113(0x19f)+_0x11f676);}[a78_0x5ec0d6(0x1b5)](_0x429ff7){const _0x2ee53d=a78_0x5ec0d6,_0x29c043={};_0x29c043[_0x2ee53d(0x205)]=_0x2ee53d(0x1e3);const _0x5a3e31=_0x29c043,{testUUID:_0x2ce78a,testData:_0x4fa280}=_0x429ff7;if(!_0x4fa280||!_0x4fa280[_0x2ee53d(0x1bf)])return logger[_0x2ee53d(0x206)](_0x5a3e31[_0x2ee53d(0x205)]),{};const _0x439e97=_0x2ce78a,_0x31261f=_0x4fa280[_0x2ee53d(0x1bf)],_0x44a092=this[_0x2ee53d(0x1fc)]()[0x0],_0x2e6c72=this[_0x2ee53d(0x219)](),_0x31e9fd={[TestFrameworkConstants[_0x2ee53d(0x252)]]:_0x44a092,[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x2e6c72[_0x44a092],[TestFrameworkConstants[_0x2ee53d(0x25a)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x2ee53d(0x1e2)]]:{},[TestFrameworkConstants[_0x2ee53d(0x1a7)]]:_0x439e97,[TestFrameworkConstants[_0x2ee53d(0x21d)]]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x2ee53d(0x212)]]:_0x4fa280[_0x2ee53d(0x1e8)]||'',[TestFrameworkConstants[_0x2ee53d(0x1dd)]]:_0x4fa280['file_name']||'',[TestFrameworkConstants[_0x2ee53d(0x20b)]]:_0x31261f,[TestFrameworkConstants[_0x2ee53d(0x189)]]:_0x4fa280[_0x2ee53d(0x1e8)]||'',[TestFrameworkConstants[_0x2ee53d(0x1d9)]]:_0x4fa280['location']||'',[TestFrameworkConstants[_0x2ee53d(0x1c8)]]:_0x4fa280['body']?.['code']||null,[TestFrameworkConstants[_0x2ee53d(0x1c2)]]:_0x4fa280[_0x2ee53d(0x254)]||[],[TestFrameworkConstants[_0x2ee53d(0x1ce)]]:_0x4fa280[_0x2ee53d(0x209)]||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x4fa280[_0x2ee53d(0x24f)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x4fa280['scopes']||[],[TestFrameworkConstants[_0x2ee53d(0x259)]]:_0x4fa280['customRerunParam']?.[_0x2ee53d(0x20a)]||_0x4fa280[_0x2ee53d(0x1e8)]||'',[TestFrameworkConstants[_0x2ee53d(0x1e7)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x4fa280[_0x2ee53d(0x211)]||{}};TestInfo[_0x2ee53d(0x1ad)](_0x31261f,_0x31e9fd),logger[_0x2ee53d(0x206)](_0x2ee53d(0x222)+_0x4fa280[_0x2ee53d(0x1e8)]+'\x20with\x20UUID:\x20'+_0x439e97);const _0x5ee417={};return _0x5ee417[_0x31261f]=_0x31e9fd,_0x5ee417;}[a78_0x5ec0d6(0x253)](_0x113c35){const _0x5bf66c=a78_0x5ec0d6,_0x366775={'SLUoI':_0x5bf66c(0x1f3),'QUpnq':_0x5bf66c(0x1bd),'GYMbH':function(_0x3640ee,_0x231bfa){return _0x3640ee===_0x231bfa;},'blgJy':'failed','aqkqY':_0x5bf66c(0x202),'KSBmU':function(_0x23946b,_0x27871b,_0x366fcc){return _0x23946b(_0x27871b,_0x366fcc);},'OyeRz':function(_0x26275f,_0x7b230b){return _0x26275f>_0x7b230b;},'phAaW':function(_0x4dfb94,_0x53297d){return _0x4dfb94>_0x53297d;}},{testUUID:_0x157982,testData:_0x211fc4}=_0x113c35;if(!_0x211fc4||!_0x211fc4[_0x5bf66c(0x1bf)])return logger[_0x5bf66c(0x206)](_0x366775[_0x5bf66c(0x21e)]),{};const _0x3741f9=this[_0x5bf66c(0x250)](TestFrameworkState[_0x5bf66c(0x1da)],HookState['POST']),_0xc5f57d=_0x211fc4[_0x5bf66c(0x1bf)],_0x2b45de=TestInfo[_0x5bf66c(0x1c0)](_0xc5f57d)||{},_0x4ac141=_0x2b45de?_0x2b45de[TestFrameworkConstants[_0x5bf66c(0x1e7)]]||{}:{},_0x20eab4={..._0x2b45de,[TestFrameworkConstants[_0x5bf66c(0x21d)]]:_0x211fc4['result']||_0x366775['QUpnq'],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x211fc4['finishedAt']||new Date()[_0x5bf66c(0x1b3)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()['toISOString'](),[TestFrameworkConstants[_0x5bf66c(0x1e7)]]:_0x4ac141,[TestFrameworkConstants[_0x5bf66c(0x1b2)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x211fc4[_0x5bf66c(0x211)]||{}};_0x366775[_0x5bf66c(0x22f)](_0x211fc4[_0x5bf66c(0x21b)],_0x366775[_0x5bf66c(0x216)])&&_0x211fc4['failure']&&(_0x20eab4[TestFrameworkConstants[_0x5bf66c(0x192)]]=_0x211fc4[_0x5bf66c(0x1bb)]||_0x366775[_0x5bf66c(0x255)],_0x20eab4[TestFrameworkConstants[_0x5bf66c(0x21c)]]=_0x211fc4['failure_reason']||'',_0x20eab4[TestFrameworkConstants[_0x5bf66c(0x24e)]]=_0x211fc4[_0x5bf66c(0x197)]);const _0x2205eb=TestInfo[_0x5bf66c(0x1c0)](_0xc5f57d)[TestFrameworkConstants[_0x5bf66c(0x236)]]||{},_0x9d8574=_0x366775[_0x5bf66c(0x1aa)](getManualUploadLogs,_0x2205eb,_0x3741f9[_0x5bf66c(0x1f5)]()['get'](_0xc5f57d)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x366775[_0x5bf66c(0x1fe)](_0x9d8574[_0x5bf66c(0x18c)],0x0)){const _0xabe08=_0x20eab4[TestFrameworkConstants[_0x5bf66c(0x1b2)]]||[];_0x20eab4[TestFrameworkConstants[_0x5bf66c(0x1b2)]]=[..._0xabe08,..._0x9d8574];}_0x211fc4['hooks']&&_0x366775[_0x5bf66c(0x1f1)](_0x211fc4[_0x5bf66c(0x1e6)][_0x5bf66c(0x18c)],0x0)&&(_0x20eab4[TestFrameworkConstants[_0x5bf66c(0x201)]]=_0x211fc4[_0x5bf66c(0x1e6)]);TestInfo[_0x5bf66c(0x1ad)](_0xc5f57d,_0x20eab4),logger['debug'](_0x5bf66c(0x1f6)+_0x211fc4['name']+_0x5bf66c(0x1a6)+_0x211fc4[_0x5bf66c(0x21b)]);const _0x28e823={};return _0x28e823[_0xc5f57d]=_0x20eab4,_0x28e823;}async[a78_0x5ec0d6(0x19c)](_0x50f0ba,_0x2d4590,_0x1c4996,_0x5c3011){const _0x297ed2=a78_0x5ec0d6,_0x23211d={'VcHgB':_0x297ed2(0x1ca),'fmLwu':function(_0x59c9c8){return _0x59c9c8();},'RZsWG':function(_0x1524ac,_0x154d7c){return _0x1524ac in _0x154d7c;},'njlrQ':function(_0x1f40aa,_0x97421a){return _0x1f40aa===_0x97421a;},'VNfPL':function(_0x1e4b83,_0x2aeee4){return _0x1e4b83===_0x2aeee4;},'hgKxg':function(_0x4da42d,_0xaf9df9){return _0x4da42d>_0xaf9df9;},'XjsIp':'failed','pdybn':'UnhandledError','UjxTv':_0x297ed2(0x24b),'ANqGC':function(_0xd89365,_0x44e6a2){return _0xd89365!==_0x44e6a2;}},{hookData:_0x5f334a}=_0x5c3011;if(!_0x5f334a)return logger[_0x297ed2(0x206)](_0x23211d['VcHgB']),{};const _0x59807d=_0x5f334a[_0x297ed2(0x1bf)]||_0x23211d[_0x297ed2(0x194)](uuidv4),_0x85c304=_0x5f334a[_0x297ed2(0x1f4)],_0x6fc577=_0x2d4590[_0x297ed2(0x21a)]()[_0x297ed2(0x22e)]('.')[0x1],_0x19ff01=TestInfo[_0x297ed2(0x1c0)](_0x85c304)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x599713=_0x50f0ba[_0x297ed2(0x1f5)]()[_0x297ed2(0x199)](_0x85c304);if(!_0x599713)return logger['debug'](_0x297ed2(0x22b)+_0x85c304+_0x297ed2(0x1a2)),this['storePendingHook'](_0x50f0ba,_0x85c304,_0x2d4590,_0x1c4996,_0x5c3011),{};let _0x36c5dc=_0x599713[TestFrameworkConstants[_0x297ed2(0x1e2)]];!_0x36c5dc&&(_0x36c5dc={});!_0x23211d['RZsWG'](_0x6fc577,_0x36c5dc)&&(_0x36c5dc[_0x6fc577]=[]);let _0x11145c=_0x599713[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x11145c&&(_0x11145c={});!_0x23211d['RZsWG'](_0x6fc577,_0x11145c)&&(_0x11145c[_0x6fc577]=[]);const _0x5a0cc5={[TestFrameworkConstants[_0x297ed2(0x1e2)]]:_0x36c5dc,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x11145c},_0x5a2531={};_0x5a2531[_0x85c304]=_0x5a0cc5;const _0x566858=_0x5a2531;if(_0x23211d['njlrQ'](_0x1c4996,HookState[_0x297ed2(0x19b)])){const _0x46c138={[TestFrameworkConstants[_0x297ed2(0x1fb)]]:_0x59807d,[TestFrameworkConstants[_0x297ed2(0x1a5)]]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants[_0x297ed2(0x1ea)]]:_0x5f334a[_0x297ed2(0x1a0)],[TestFrameworkConstants[_0x297ed2(0x1b8)]]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x5f334a['hook_type'],[TestFrameworkConstants[_0x297ed2(0x1e7)]]:_0x19ff01};_0x46c138[_0x297ed2(0x218)]=_0x6fc577;const _0x4dcd58=_0x46c138;_0x36c5dc[_0x6fc577][_0x297ed2(0x1f8)](_0x4dcd58),_0x566858[_0x85c304][TestFrameworkConstants[_0x297ed2(0x1d6)]]=_0x6fc577,logger['debug'](_0x297ed2(0x1cf)+_0x6fc577+'\x20&\x20hook\x20=\x20'+_0x4dcd58+_0x297ed2(0x1ac)+_0x5c3011);}else{if(_0x23211d[_0x297ed2(0x24d)](_0x1c4996,HookState[_0x297ed2(0x18b)])){const _0x1f3726=_0x5f334a[_0x297ed2(0x21b)],_0x3820da=_0x36c5dc[_0x6fc577]||[];logger[_0x297ed2(0x206)](_0x297ed2(0x241)+_0x3820da+_0x297ed2(0x243)+_0x5c3011);if(_0x23211d[_0x297ed2(0x246)](_0x3820da['length'],0x0)){const _0x585fde=_0x3820da[_0x297ed2(0x1f2)]();_0x23211d[_0x297ed2(0x24d)](_0x5f334a[_0x297ed2(0x21b)],_0x23211d[_0x297ed2(0x1f9)])&&_0x5f334a[_0x297ed2(0x1d3)]?(_0x585fde[TestFrameworkConstants[_0x297ed2(0x198)]]=_0x5f334a[_0x297ed2(0x1bb)]||_0x23211d[_0x297ed2(0x1ed)],_0x585fde[TestFrameworkConstants[_0x297ed2(0x227)]]=_0x5f334a[_0x297ed2(0x1d7)]||'',_0x585fde[TestFrameworkConstants[_0x297ed2(0x190)]]=_0x5f334a[_0x297ed2(0x1d3)]):_0x585fde[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x23211d[_0x297ed2(0x20d)];_0x23211d[_0x297ed2(0x1e0)](_0x1f3726,TestFrameworkConstants[_0x297ed2(0x23b)])&&(_0x585fde[TestFrameworkConstants[_0x297ed2(0x1a5)]]=_0x1f3726);_0x585fde[TestFrameworkConstants[_0x297ed2(0x18d)]]=_0x5f334a['finished_at']||new Date()[_0x297ed2(0x1b3)](),_0x585fde[TestFrameworkConstants[_0x297ed2(0x1e7)]]=_0x19ff01;const _0x4aab9e=_0x585fde[TestFrameworkConstants['KEY_HOOK_ID']];!_0x11145c[_0x6fc577]&&(_0x11145c[_0x6fc577]=[]),_0x11145c[_0x6fc577]['push'](_0x585fde),_0x566858[_0x85c304][TestFrameworkConstants[_0x297ed2(0x1d1)]]=_0x6fc577;}}}return logger['debug'](_0x297ed2(0x1e1)+_0x5f334a[_0x297ed2(0x200)]+_0x297ed2(0x22c)+_0x59807d+_0x297ed2(0x1cd)+_0x85c304),_0x566858;}[a78_0x5ec0d6(0x251)](_0x2f549d){const _0x176e70=a78_0x5ec0d6,_0x5ec4a7={};_0x5ec4a7[_0x176e70(0x1b4)]='base64';const _0x1c74a6=_0x5ec4a7;try{const _0x58b5ba=_0x2f549d[_0x176e70(0x238)]?_0x2f549d['test']['id']:_0x2f549d[_0x176e70(0x1be)][_0x176e70(0x1f4)],_0x38c57a=_0x2f549d[_0x176e70(0x1e5)],_0x296062=_0x38c57a[_0x176e70(0x1fd)](),_0x495cf2=_0x38c57a[_0x176e70(0x1f5)]()[_0x176e70(0x199)](_0x58b5ba);if(!_0x495cf2)return logger[_0x176e70(0x206)](_0x176e70(0x1c1)+_0x58b5ba),{};logger['debug'](_0x176e70(0x232)+_0x58b5ba);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x56d611='',[TestFrameworkConstants[_0x176e70(0x1c3)]]:_0xcc5fc9='',[TestFrameworkConstants[_0x176e70(0x1ce)]]:_0x230528='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x20499d=''}=_0x495cf2,_0x57a9df=_0x38c57a[_0x176e70(0x207)]()[_0x176e70(0x21a)]()[_0x176e70(0x22e)]('.')[0x1],_0x4e794b=_0x38c57a[_0x176e70(0x234)]()['toString']()[_0x176e70(0x22e)]('.')[0x1],_0x22f6f6=global?.[_0x176e70(0x244)]??0x0,_0x3afcb8=_0x38c57a['getRef'](),_0x174cd1=Buffer[_0x176e70(0x226)](JSON[_0x176e70(0x1e4)](_0x495cf2))['toString'](_0x1c74a6['oXgmX']),_0x917712={'hash':_0x296062[_0x176e70(0x1df)](),'threadId':_0x296062[_0x176e70(0x228)]()[_0x176e70(0x21a)](),'processId':_0x296062['getProcessId']()[_0x176e70(0x21a)]()},_0x294fd0={};_0x294fd0[_0x176e70(0x1e9)]=_0x22f6f6,_0x294fd0[_0x176e70(0x220)]=_0x56d611,_0x294fd0[_0x176e70(0x1f7)]=_0xcc5fc9,_0x294fd0['testFrameworkState']=_0x57a9df,_0x294fd0[_0x176e70(0x19a)]=_0x4e794b,_0x294fd0['startedAt']=_0x230528,_0x294fd0[_0x176e70(0x1b0)]=_0x20499d,_0x294fd0[_0x176e70(0x1bf)]=_0x3afcb8,_0x294fd0[_0x176e70(0x196)]=_0x174cd1,_0x294fd0[_0x176e70(0x204)]=_0x917712;const _0xdc31b3=_0x294fd0;return logger[_0x176e70(0x206)]('createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20'+_0x58b5ba+_0x176e70(0x23f)+_0x57a9df+_0x176e70(0x1ab)+_0x4e794b),_0xdc31b3;}catch(_0x2d1713){return logger['error']('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x176e70(0x18f)](_0x2d1713)),{};}}async[a78_0x5ec0d6(0x19e)](_0x1b7034,_0x3c510a,_0xdc05c1){const _0x9157aa=a78_0x5ec0d6,_0x48cdf8={'vZQoo':function(_0x1947c9,_0x35bac8,_0x307fe7){return _0x1947c9(_0x35bac8,_0x307fe7);},'vsFRS':function(_0x2fcfa1,_0x130d10){return _0x2fcfa1===_0x130d10;},'TeiNS':_0x9157aa(0x18a),'OKwkb':function(_0x35284c,_0x1f929f){return _0x35284c/_0x1f929f;},'wIslX':function(_0x488966,_0x1bec71){return _0x488966<_0x1bec71;},'MALPd':function(_0x135e7a,_0x57f949){return _0x135e7a*_0x57f949;},'TEtEZ':function(_0x21cfb7,_0xba03e3){return _0x21cfb7+_0xba03e3;},'sYJAn':function(_0x1ba78b,_0x302eed){return _0x1ba78b+_0x302eed;},'jBncq':'Cucumber\x20log\x20created\x20event'};try{const _0x4ba24d=_0xdc05c1['testUUID'],_0x567d92=_0x1b7034['getAllData']()[_0x9157aa(0x199)](_0x4ba24d),{[TestFrameworkConstants[_0x9157aa(0x252)]]:_0x5e85a6='',[TestFrameworkConstants[_0x9157aa(0x1c3)]]:_0x50a0f0=''}=_0x567d92,_0x32e34d=TestInfo[_0x9157aa(0x230)](_0x4ba24d),_0x538708=TestInfo[_0x9157aa(0x1c0)](_0x4ba24d)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x5f08c9=_0x48cdf8[_0x9157aa(0x1b1)](getMediaArtifactsLogs,_0x538708,_0x1b7034[_0x9157aa(0x1f5)]()['get'](_0x4ba24d)[TestFrameworkConstants[_0x9157aa(0x1a7)]]),_0x359d12=(_0x32e34d||[])[_0x9157aa(0x223)](_0x5f08c9||[]);if(!_0x359d12||_0x48cdf8[_0x9157aa(0x203)](_0x359d12[_0x9157aa(0x18c)],0x0)){logger['debug'](_0x48cdf8['TeiNS']);return;}const _0x15237b=0x28,_0x57c6cb=Math[_0x9157aa(0x18e)](_0x48cdf8[_0x9157aa(0x21f)](_0x359d12['length'],_0x15237b));for(let _0x386b86=0x0;_0x48cdf8[_0x9157aa(0x1cb)](_0x386b86,_0x57c6cb);_0x386b86++){const _0x1fa5b9=_0x48cdf8[_0x9157aa(0x1fa)](_0x386b86,_0x15237b),_0x21e141=_0x48cdf8['TEtEZ'](_0x1fa5b9,_0x15237b),_0xbfc382=_0x359d12[_0x9157aa(0x1a4)](_0x1fa5b9,_0x21e141),_0x318fa3={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0xbfc382,'testFrameworkName':_0x5e85a6,'testFrameworkVersion':_0x50a0f0,'testFrameworkState':_0x3c510a[_0x9157aa(0x21a)]()[_0x9157aa(0x22e)]('.')[0x1]};logger[_0x9157aa(0x206)](_0x9157aa(0x217)+_0x4ba24d+_0x9157aa(0x23a)+_0x48cdf8[_0x9157aa(0x245)](_0x386b86,0x1)+'/'+_0x57c6cb+_0x9157aa(0x224)+util[_0x9157aa(0x22a)](_0x318fa3));const _0x178ebb=await GrpcClient[_0x9157aa(0x229)]()[_0x9157aa(0x1b9)](_0x318fa3);logger[_0x9157aa(0x206)](_0x9157aa(0x217)+_0x4ba24d+_0x9157aa(0x23a)+_0x48cdf8['sYJAn'](_0x386b86,0x1)+'/'+_0x57c6cb+_0x9157aa(0x188)+util['inspect'](_0x178ebb));}}catch(_0x596da0){logger[_0x9157aa(0x1cc)](_0x9157aa(0x1bc)+util[_0x9157aa(0x18f)](_0x596da0));}logger[_0x9157aa(0x206)](_0x48cdf8[_0x9157aa(0x23c)]);}[a78_0x5ec0d6(0x1d2)](_0x4b9744,_0x663b47,_0xd4ded6,_0x9acb19,_0x56bc05){const _0x5b9c0e=a78_0x5ec0d6,_0x36bf07={'testId':_0x663b47,'testFrameworkState':_0xd4ded6,'hookState':_0x9acb19,'args':_0x56bc05,'timestamp':new Date()[_0x5b9c0e(0x1b3)]()};_0x4b9744[_0x5b9c0e(0x1d0)](_0x663b47,_0x36bf07),logger['debug'](_0x5b9c0e(0x258)+_0x663b47+_0x5b9c0e(0x1a8)+_0xd4ded6+_0x5b9c0e(0x191)+_0x9acb19);}async[a78_0x5ec0d6(0x235)](_0x49aa45,_0x3e50ff){const _0x1c4175=a78_0x5ec0d6,_0x13a87e={};_0x13a87e[_0x1c4175(0x24c)]=function(_0x389d59,_0x26273b){return _0x389d59>_0x26273b;};const _0x3d2405=_0x13a87e;if(!_0x49aa45[_0x1c4175(0x193)](_0x3e50ff))return;const _0x2343e1=_0x49aa45['getPendingHooks'](_0x3e50ff);logger[_0x1c4175(0x206)](_0x1c4175(0x20e)+_0x2343e1[_0x1c4175(0x18c)]+_0x1c4175(0x1c6)+_0x3e50ff);for(const _0x23abd5 of _0x2343e1){try{const _0x175f6e=await this[_0x1c4175(0x19c)](_0x49aa45,_0x23abd5[_0x1c4175(0x1ba)],_0x23abd5[_0x1c4175(0x19a)],_0x23abd5[_0x1c4175(0x256)]);_0x175f6e&&_0x3d2405[_0x1c4175(0x24c)](Object[_0x1c4175(0x249)](_0x175f6e)[_0x1c4175(0x18c)],0x0)&&_0x49aa45['addMultipleEntries'](_0x175f6e),await this[_0x1c4175(0x1c7)](_0x49aa45,_0x23abd5[_0x1c4175(0x1ba)],_0x23abd5[_0x1c4175(0x19a)],_0x23abd5[_0x1c4175(0x256)]);}catch(_0x5261dd){logger[_0x1c4175(0x1cc)](_0x1c4175(0x248)+_0x3e50ff+_0x1c4175(0x1c4)+_0x5261dd);}}_0x49aa45[_0x1c4175(0x1c9)](_0x3e50ff),logger[_0x1c4175(0x206)]('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0x3e50ff);}}module[a78_0x5ec0d6(0x231)]=CucumberTestFramework;
|
|
1
|
+
const a78_0x4b735e=a78_0x124a;(function(_0x13841e,_0x29a05f){const _0x1b2762=a78_0x124a,_0x357059=_0x13841e();while(!![]){try{const _0x39229d=parseInt(_0x1b2762(0x155))/0x1*(-parseInt(_0x1b2762(0xe9))/0x2)+-parseInt(_0x1b2762(0x122))/0x3*(parseInt(_0x1b2762(0x187))/0x4)+-parseInt(_0x1b2762(0x183))/0x5*(parseInt(_0x1b2762(0x137))/0x6)+parseInt(_0x1b2762(0xd7))/0x7*(parseInt(_0x1b2762(0xe1))/0x8)+-parseInt(_0x1b2762(0xbe))/0x9+-parseInt(_0x1b2762(0x161))/0xa+parseInt(_0x1b2762(0x150))/0xb*(parseInt(_0x1b2762(0xe7))/0xc);if(_0x39229d===_0x29a05f)break;else _0x357059['push'](_0x357059['shift']());}catch(_0x20c509){_0x357059['push'](_0x357059['shift']());}}}(a78_0x5153,0x99e83));function a78_0x124a(_0x47da4a,_0x445659){const _0x5153ed=a78_0x5153();return a78_0x124a=function(_0x124a0f,_0x2880c1){_0x124a0f=_0x124a0f-0xb9;let _0x58a5a4=_0x5153ed[_0x124a0f];return _0x58a5a4;},a78_0x124a(_0x47da4a,_0x445659);}const TestFramework=require(a78_0x4b735e(0x171)),TestFrameworkState=require(a78_0x4b735e(0x11e)),HookState=require(a78_0x4b735e(0x100)),{createClassLogger}=require(a78_0x4b735e(0x159)),TestFrameworkInstance=require(a78_0x4b735e(0x11b)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a78_0x4b735e(0x16c)),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger(a78_0x4b735e(0xd5)),{v4:uuidv4}=require(a78_0x4b735e(0xc6)),util=require('util'),TestInfo=require(a78_0x4b735e(0x15a)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x3845fe,_0x55b06d,_0x2d6e01){super(_0x3845fe,_0x55b06d,_0x2d6e01);}async[a78_0x4b735e(0x136)](_0x3875e4,_0x5a0dc6,_0x13993e={}){const _0x687b3f=a78_0x4b735e,_0x37c27f={};_0x37c27f[_0x687b3f(0x17f)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x37c27f['wXhfm']=function(_0x2ea445,_0x2bd7bd){return _0x2ea445===_0x2bd7bd;},_0x37c27f[_0x687b3f(0x141)]=_0x687b3f(0x116);const _0x377276=_0x37c27f;await super[_0x687b3f(0x136)](_0x3875e4,_0x5a0dc6,_0x13993e);const _0x44c43b=this[_0x687b3f(0xe4)](_0x3875e4,_0x5a0dc6,_0x13993e);if(!_0x44c43b){logger['debug'](_0x377276[_0x687b3f(0x17f)]);return;}try{let _0x47c1cf,_0x6b0e2f;switch(_0x3875e4){case TestFrameworkState[_0x687b3f(0xcb)]:_0x47c1cf=_0x13993e['test'],_0x6b0e2f=TestInfo[_0x687b3f(0x16d)](_0x47c1cf['id']);if(_0x377276[_0x687b3f(0xd9)](_0x5a0dc6,HookState['PRE'])){logger[_0x687b3f(0x121)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x47c1cf['id']);const _0x55bf84={};_0x55bf84[_0x687b3f(0xd0)]=_0x6b0e2f,_0x55bf84['testData']=_0x47c1cf,_0x44c43b['addMultipleEntries'](this['parseCucumberTest'](_0x55bf84)),logger[_0x687b3f(0x121)](_0x687b3f(0x105)+_0x47c1cf['id']),await this[_0x687b3f(0x11a)](_0x44c43b,_0x47c1cf['id']);}else{if(_0x377276[_0x687b3f(0xd9)](_0x5a0dc6,HookState[_0x687b3f(0xfd)])){const _0x16391a={};_0x16391a[_0x687b3f(0xd0)]=_0x6b0e2f,_0x16391a[_0x687b3f(0x113)]=_0x47c1cf,_0x44c43b[_0x687b3f(0xea)](this[_0x687b3f(0xd3)](_0x16391a)),await this[_0x687b3f(0x11a)](_0x44c43b,_0x47c1cf['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x377276[_0x687b3f(0xd9)](_0x5a0dc6,HookState[_0x687b3f(0xfd)])&&await this['sendLogCreatedEvent'](_0x44c43b,_0x3875e4,_0x13993e);break;default:if(CLIUtils[_0x687b3f(0x12c)](_0x3875e4[_0x687b3f(0x16b)]()['split']('.')[0x1])){const _0x19803e=await this[_0x687b3f(0x10a)](_0x44c43b,_0x3875e4,_0x5a0dc6,_0x13993e);_0x44c43b['addMultipleEntries'](_0x19803e);}else logger[_0x687b3f(0x121)](_0x687b3f(0xc4)+_0x3875e4+'\x20&\x20hookState='+_0x5a0dc6);break;}}catch(_0x369ec5){logger['error'](util[_0x687b3f(0x162)](_0x377276[_0x687b3f(0x141)],_0x3875e4,_0x5a0dc6,_0x13993e['length'],_0x369ec5));}_0x13993e[_0x687b3f(0x12d)]=_0x44c43b,await this['runHooks'](_0x44c43b,_0x3875e4,_0x5a0dc6,_0x13993e);}[a78_0x4b735e(0xe4)](_0x572a5d,_0x2ef9bf,_0x1258af={}){const _0x11d33f=a78_0x4b735e,_0x5b2f8e={};_0x5b2f8e[_0x11d33f(0xf4)]=function(_0x1d6d12,_0x37ef54){return _0x1d6d12===_0x37ef54;},_0x5b2f8e['UNnyM']=function(_0x2f1b6b,_0xd2a33e){return _0x2f1b6b===_0xd2a33e;};const _0x41d7ff=_0x5b2f8e;let _0x203365=null;return(_0x41d7ff[_0x11d33f(0xf4)](_0x572a5d,TestFrameworkState[_0x11d33f(0x14d)])||_0x41d7ff['UNnyM'](_0x572a5d,TestFrameworkState[_0x11d33f(0xef)]))&&this[_0x11d33f(0x10f)](_0x572a5d,_0x1258af),_0x203365=TestFramework[_0x11d33f(0xfa)](),_0x203365;}[a78_0x4b735e(0x10f)](_0x1615a3,_0x25a405){const _0x396def=a78_0x4b735e,_0x164c89=CLIUtils['getCurrentInstanceName'](),_0xd1e2af=TrackedInstance[_0x396def(0xc7)](_0x164c89);let _0x1f1533=null;logger[_0x396def(0x121)](_0x396def(0x14f)+_0x164c89+_0x396def(0x143)+_0x1615a3),_0x1f1533=new TestFrameworkInstance(_0xd1e2af,this['getTestFrameworks'](),this['getTestFrameworksVersions'](),_0x1615a3,HookState['NONE']),TestFramework['setTrackedInstance'](_0xd1e2af,_0x1f1533),logger[_0x396def(0x121)](_0x396def(0x17b)+_0xd1e2af['getId']()+_0x396def(0x129)+_0x164c89);}[a78_0x4b735e(0xbb)](_0x56cd37){const _0x41d59c=a78_0x4b735e,_0x23deb2={};_0x23deb2['SOOAs']=_0x41d59c(0x134);const _0x257bd6=_0x23deb2,{testUUID:_0x26f9c0,testData:_0x115fe6}=_0x56cd37;if(!_0x115fe6||!_0x115fe6[_0x41d59c(0xc6)])return logger[_0x41d59c(0x121)](_0x257bd6[_0x41d59c(0x16f)]),{};const _0x1b945f=_0x26f9c0,_0x19dd00=_0x115fe6[_0x41d59c(0xc6)],_0x4716c9=this[_0x41d59c(0x178)]()[0x0],_0x42f7f2=this[_0x41d59c(0x127)](),_0x4d027b={[TestFrameworkConstants[_0x41d59c(0x10b)]]:_0x4716c9,[TestFrameworkConstants[_0x41d59c(0xed)]]:_0x42f7f2[_0x4716c9],[TestFrameworkConstants[_0x41d59c(0x110)]]:[],[TestFrameworkConstants[_0x41d59c(0xc8)]]:{},[TestFrameworkConstants[_0x41d59c(0x151)]]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x1b945f,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x41d59c(0xce)]]:_0x115fe6['name']||'',[TestFrameworkConstants[_0x41d59c(0xdb)]]:_0x115fe6['file_name']||'',[TestFrameworkConstants[_0x41d59c(0x179)]]:_0x19dd00,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x115fe6[_0x41d59c(0x173)]||'',[TestFrameworkConstants[_0x41d59c(0x13e)]]:_0x115fe6['location']||'',[TestFrameworkConstants[_0x41d59c(0x140)]]:_0x115fe6['body']?.[_0x41d59c(0x12f)]||null,[TestFrameworkConstants[_0x41d59c(0xc0)]]:_0x115fe6['tags']||[],[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x115fe6[_0x41d59c(0xcc)]||new Date()[_0x41d59c(0xc9)](),[TestFrameworkConstants[_0x41d59c(0x176)]]:_0x115fe6['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x41d59c(0xdf)]]:_0x115fe6[_0x41d59c(0x175)]||[],[TestFrameworkConstants[_0x41d59c(0x185)]]:_0x115fe6[_0x41d59c(0x11c)]?.['rerun_name']||_0x115fe6[_0x41d59c(0x173)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x115fe6[_0x41d59c(0xf9)]||{}};TestInfo[_0x41d59c(0x15f)](_0x19dd00,_0x4d027b),logger[_0x41d59c(0x121)](_0x41d59c(0x117)+_0x115fe6['name']+_0x41d59c(0x172)+_0x1b945f);const _0x36db12={};return _0x36db12[_0x19dd00]=_0x4d027b,_0x36db12;}[a78_0x4b735e(0xd3)](_0x3c4e81){const _0x560b49=a78_0x4b735e,_0x17cdc7={'OgXtC':'No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','FaGWR':'unknown','VYVtF':function(_0x79a0bf,_0x3fd996){return _0x79a0bf===_0x3fd996;},'CsTJO':'failed','vrsOW':_0x560b49(0xf3),'AbaWa':function(_0xc63733,_0x4c9562,_0x32ff97){return _0xc63733(_0x4c9562,_0x32ff97);},'ZRVZr':function(_0x768da5,_0x42d0e4){return _0x768da5>_0x42d0e4;},'LUynm':function(_0x4e3a79,_0x552192){return _0x4e3a79>_0x552192;}},{testUUID:_0x32bf12,testData:_0x4d30bc}=_0x3c4e81;if(!_0x4d30bc||!_0x4d30bc[_0x560b49(0xc6)])return logger['debug'](_0x17cdc7[_0x560b49(0xd4)]),{};const _0x33fa65=this[_0x560b49(0xe4)](TestFrameworkState[_0x560b49(0xcb)],HookState['POST']),_0x346577=_0x4d30bc[_0x560b49(0xc6)],_0x300841=TestInfo[_0x560b49(0x168)](_0x346577)||{},_0x22bceb=_0x300841?_0x300841[TestFrameworkConstants[_0x560b49(0x124)]]||{}:{},_0x3ca59a={..._0x300841,[TestFrameworkConstants[_0x560b49(0x106)]]:_0x4d30bc[_0x560b49(0x166)]||_0x17cdc7['FaGWR'],[TestFrameworkConstants[_0x560b49(0x101)]]:_0x4d30bc[_0x560b49(0x10e)]||new Date()[_0x560b49(0xc9)](),[TestFrameworkConstants[_0x560b49(0x184)]]:new Date()[_0x560b49(0xc9)](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x22bceb,[TestFrameworkConstants[_0x560b49(0xff)]]:[],[TestFrameworkConstants[_0x560b49(0x14a)]]:_0x4d30bc[_0x560b49(0xf9)]||{}};_0x17cdc7[_0x560b49(0x157)](_0x4d30bc['result'],_0x17cdc7[_0x560b49(0x115)])&&_0x4d30bc[_0x560b49(0x13d)]&&(_0x3ca59a[TestFrameworkConstants[_0x560b49(0x135)]]=_0x4d30bc[_0x560b49(0x123)]||_0x17cdc7['vrsOW'],_0x3ca59a[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x4d30bc[_0x560b49(0xe2)]||'',_0x3ca59a[TestFrameworkConstants[_0x560b49(0xfb)]]=_0x4d30bc[_0x560b49(0x13d)]);const _0xe767d1=TestInfo['getTestDetails'](_0x346577)[TestFrameworkConstants[_0x560b49(0x114)]]||{},_0x570b65=_0x17cdc7[_0x560b49(0xf0)](getManualUploadLogs,_0xe767d1,_0x33fa65['getAllData']()[_0x560b49(0x144)](_0x346577)[TestFrameworkConstants[_0x560b49(0x132)]]);if(_0x17cdc7[_0x560b49(0x13a)](_0x570b65[_0x560b49(0x17c)],0x0)){const _0x133582=_0x3ca59a[TestFrameworkConstants['KEY_LOGS']]||[];_0x3ca59a[TestFrameworkConstants['KEY_LOGS']]=[..._0x133582,..._0x570b65];}_0x4d30bc[_0x560b49(0x154)]&&_0x17cdc7[_0x560b49(0x165)](_0x4d30bc['hooks'][_0x560b49(0x17c)],0x0)&&(_0x3ca59a[TestFrameworkConstants[_0x560b49(0xc8)]]=_0x4d30bc[_0x560b49(0x154)]);TestInfo[_0x560b49(0x15f)](_0x346577,_0x3ca59a),logger['debug'](_0x560b49(0x174)+_0x4d30bc[_0x560b49(0x173)]+_0x560b49(0x11f)+_0x4d30bc[_0x560b49(0x166)]);const _0x267351={};return _0x267351[_0x346577]=_0x3ca59a,_0x267351;}async[a78_0x4b735e(0x10a)](_0x3ac48e,_0x510dcb,_0x8def3c,_0x355356){const _0x52ab0e=a78_0x4b735e,_0x4661b7={'EzPRb':_0x52ab0e(0x17d),'GxYgq':function(_0x14967e){return _0x14967e();},'COJDz':function(_0x40d522,_0x2421cc){return _0x40d522 in _0x2421cc;},'gCIiC':function(_0x57e1fe,_0x4c0f0e){return _0x57e1fe===_0x4c0f0e;},'dSbkQ':function(_0x6b1225,_0x120118){return _0x6b1225===_0x120118;},'MDrYC':function(_0x6f618,_0x3e4ce1){return _0x6f618>_0x3e4ce1;},'GitNM':function(_0x594d62,_0x4087bb){return _0x594d62===_0x4087bb;},'gLVuO':'failed','LpIKM':_0x52ab0e(0xf3),'YoerG':_0x52ab0e(0x181),'hJHmI':function(_0x1a044d,_0x1766fb){return _0x1a044d!==_0x1766fb;}},{hookData:_0x5b66a7}=_0x355356;if(!_0x5b66a7)return logger[_0x52ab0e(0x121)](_0x4661b7[_0x52ab0e(0x104)]),{};const _0x54b937=_0x5b66a7['uuid']||_0x4661b7['GxYgq'](uuidv4),_0x3f7124=_0x5b66a7['test_run_id'],_0x4a0684=_0x510dcb[_0x52ab0e(0x16b)]()['split']('.')[0x1],_0x58db0b=TestInfo[_0x52ab0e(0x168)](_0x3f7124)[TestFrameworkConstants[_0x52ab0e(0x124)]]||{},_0x5c7d08=_0x3ac48e['getAllData']()[_0x52ab0e(0x144)](_0x3f7124);if(!_0x5c7d08)return logger['debug'](_0x52ab0e(0x186)+_0x3f7124+_0x52ab0e(0x164)),this['storePendingHook'](_0x3ac48e,_0x3f7124,_0x510dcb,_0x8def3c,_0x355356),{};let _0x369db1=_0x5c7d08[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x369db1&&(_0x369db1={});!_0x4661b7[_0x52ab0e(0x108)](_0x4a0684,_0x369db1)&&(_0x369db1[_0x4a0684]=[]);let _0x50f5f4=_0x5c7d08[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x50f5f4&&(_0x50f5f4={});!_0x4661b7[_0x52ab0e(0x108)](_0x4a0684,_0x50f5f4)&&(_0x50f5f4[_0x4a0684]=[]);const _0x3cb716={[TestFrameworkConstants[_0x52ab0e(0x151)]]:_0x369db1,[TestFrameworkConstants[_0x52ab0e(0xc8)]]:_0x50f5f4},_0x2a486a={};_0x2a486a[_0x3f7124]=_0x3cb716;const _0x5a82d4=_0x2a486a;if(_0x4661b7['gCIiC'](_0x8def3c,HookState[_0x52ab0e(0x17e)])){const _0x11e236={[TestFrameworkConstants[_0x52ab0e(0x14b)]]:_0x54b937,[TestFrameworkConstants[_0x52ab0e(0x12e)]]:TestFrameworkConstants[_0x52ab0e(0x12b)],[TestFrameworkConstants[_0x52ab0e(0x120)]]:_0x5b66a7['started_at'],[TestFrameworkConstants[_0x52ab0e(0xfc)]]:[],[TestFrameworkConstants[_0x52ab0e(0xee)]]:_0x5b66a7['hook_type'],[TestFrameworkConstants[_0x52ab0e(0x124)]]:_0x58db0b};_0x11e236['key']=_0x4a0684;const _0x596d1c=_0x11e236;_0x369db1[_0x4a0684]['push'](_0x596d1c),_0x5a82d4[_0x3f7124][TestFrameworkConstants[_0x52ab0e(0x149)]]=_0x4a0684,logger['debug'](_0x52ab0e(0xb9)+_0x4a0684+'\x20&\x20hook\x20=\x20'+_0x596d1c+_0x52ab0e(0xbc)+_0x355356);}else{if(_0x4661b7['dSbkQ'](_0x8def3c,HookState['POST'])){const _0x1ccedb=_0x5b66a7[_0x52ab0e(0x166)],_0x59168a=_0x369db1[_0x4a0684]||[];logger['debug'](_0x52ab0e(0x148)+_0x59168a+_0x52ab0e(0xc3)+_0x355356);if(_0x4661b7[_0x52ab0e(0x153)](_0x59168a['length'],0x0)){const _0x5d71cf=_0x59168a[_0x52ab0e(0xc1)]();_0x4661b7['GitNM'](_0x5b66a7[_0x52ab0e(0x166)],_0x4661b7['gLVuO'])&&_0x5b66a7[_0x52ab0e(0x15d)]?(_0x5d71cf[TestFrameworkConstants[_0x52ab0e(0x138)]]=_0x5b66a7['failure_type']||_0x4661b7[_0x52ab0e(0x167)],_0x5d71cf[TestFrameworkConstants[_0x52ab0e(0x107)]]=_0x5b66a7[_0x52ab0e(0xe2)]||'',_0x5d71cf[TestFrameworkConstants[_0x52ab0e(0x147)]]=_0x5b66a7[_0x52ab0e(0x15d)]):_0x5d71cf[TestFrameworkConstants[_0x52ab0e(0x12e)]]=_0x4661b7['YoerG'];_0x4661b7[_0x52ab0e(0xc2)](_0x1ccedb,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x5d71cf[TestFrameworkConstants[_0x52ab0e(0x12e)]]=_0x1ccedb);_0x5d71cf[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x5b66a7[_0x52ab0e(0xdd)]||new Date()[_0x52ab0e(0xc9)](),_0x5d71cf[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x58db0b;const _0x1dca58=_0x5d71cf[TestFrameworkConstants[_0x52ab0e(0x14b)]];!_0x50f5f4[_0x4a0684]&&(_0x50f5f4[_0x4a0684]=[]),_0x50f5f4[_0x4a0684]['push'](_0x5d71cf),_0x5a82d4[_0x3f7124][TestFrameworkConstants[_0x52ab0e(0x128)]]=_0x4a0684;}}}return logger['debug']('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x5b66a7[_0x52ab0e(0x156)]+_0x52ab0e(0x158)+_0x54b937+_0x52ab0e(0x177)+_0x3f7124),_0x5a82d4;}[a78_0x4b735e(0x145)](_0x489f5d){const _0x2518c5=a78_0x4b735e,_0x26c0e5={};_0x26c0e5['SdtaK']=_0x2518c5(0x16a);const _0x5360aa=_0x26c0e5;try{const _0x7a0b80=_0x489f5d['test']?_0x489f5d[_0x2518c5(0xd1)]['id']:_0x489f5d[_0x2518c5(0x14e)][_0x2518c5(0xf1)],_0x58f270=_0x489f5d[_0x2518c5(0x12d)],_0x1dbd77=_0x58f270[_0x2518c5(0x11d)](),_0x3728f1=_0x58f270[_0x2518c5(0xc5)]()[_0x2518c5(0x144)](_0x7a0b80);if(!_0x3728f1)return logger[_0x2518c5(0x121)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x7a0b80),{};logger[_0x2518c5(0x121)](_0x2518c5(0xe8)+_0x7a0b80);const {[TestFrameworkConstants[_0x2518c5(0x10b)]]:_0x145b82='',[TestFrameworkConstants[_0x2518c5(0xed)]]:_0x1a812b='',[TestFrameworkConstants[_0x2518c5(0x133)]]:_0x381335='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x559422=''}=_0x3728f1,_0x2b3a2f=_0x58f270[_0x2518c5(0xec)]()[_0x2518c5(0x16b)]()[_0x2518c5(0xcd)]('.')[0x1],_0x347d83=_0x58f270[_0x2518c5(0x170)]()[_0x2518c5(0x16b)]()[_0x2518c5(0xcd)]('.')[0x1],_0x590478=global?.['browserstackPlatformIndex']??0x0,_0x13e649=_0x58f270[_0x2518c5(0x163)](),_0x4914ac=Buffer[_0x2518c5(0xcf)](JSON['stringify'](_0x3728f1))[_0x2518c5(0x16b)](_0x5360aa[_0x2518c5(0x17a)]),_0x1d0d7a={'hash':_0x1dbd77[_0x2518c5(0x160)](),'threadId':_0x1dbd77[_0x2518c5(0xe0)]()[_0x2518c5(0x16b)](),'processId':_0x1dbd77[_0x2518c5(0x13b)]()[_0x2518c5(0x16b)]()},_0x285a7f={};_0x285a7f[_0x2518c5(0x130)]=_0x590478,_0x285a7f[_0x2518c5(0x131)]=_0x145b82,_0x285a7f[_0x2518c5(0x125)]=_0x1a812b,_0x285a7f['testFrameworkState']=_0x2b3a2f,_0x285a7f[_0x2518c5(0x16e)]=_0x347d83,_0x285a7f[_0x2518c5(0xcc)]=_0x381335,_0x285a7f['endedAt']=_0x559422,_0x285a7f['uuid']=_0x13e649,_0x285a7f[_0x2518c5(0xba)]=_0x4914ac,_0x285a7f[_0x2518c5(0x10c)]=_0x1d0d7a;const _0x15b532=_0x285a7f;return logger[_0x2518c5(0x121)](_0x2518c5(0x180)+_0x7a0b80+'\x20testState:\x20'+_0x2b3a2f+_0x2518c5(0x10d)+_0x347d83),_0x15b532;}catch(_0x56d8ff){return logger[_0x2518c5(0xe6)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x2518c5(0x162)](_0x56d8ff)),{};}}async[a78_0x4b735e(0xdc)](_0x582f7a,_0x1f8942,_0x59f28d){const _0x4b7836=a78_0x4b735e,_0x1871bd={'nclMt':function(_0x2efdbb,_0x258260,_0x45372f){return _0x2efdbb(_0x258260,_0x45372f);},'PKyZr':function(_0x10a570,_0x835e07){return _0x10a570===_0x835e07;},'owNLr':_0x4b7836(0x152),'gnjJH':function(_0x282f8a,_0x24d0e1){return _0x282f8a/_0x24d0e1;},'zgkFU':function(_0x251276,_0x29d448){return _0x251276<_0x29d448;},'XQNxp':function(_0x127dd7,_0x3f130c){return _0x127dd7*_0x3f130c;},'aFFeb':function(_0x291896,_0x5b6fb5){return _0x291896+_0x5b6fb5;},'TyMTw':function(_0x1e6946,_0x441b15){return _0x1e6946+_0x441b15;},'IYxAw':_0x4b7836(0xe3)};try{const _0x1a7656=_0x59f28d[_0x4b7836(0xd0)],_0x56cf19=_0x582f7a[_0x4b7836(0xc5)]()[_0x4b7836(0x144)](_0x1a7656),{[TestFrameworkConstants[_0x4b7836(0x10b)]]:_0x44327a='',[TestFrameworkConstants[_0x4b7836(0xed)]]:_0x52018b=''}=_0x56cf19,_0x17e92f=TestInfo[_0x4b7836(0xf2)](_0x1a7656),_0x1c8ca1=TestInfo[_0x4b7836(0x168)](_0x1a7656)[TestFrameworkConstants[_0x4b7836(0x114)]]||{},_0x56e8cc=_0x1871bd[_0x4b7836(0xd6)](getMediaArtifactsLogs,_0x1c8ca1,_0x582f7a[_0x4b7836(0xc5)]()['get'](_0x1a7656)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x317da8=(_0x17e92f||[])[_0x4b7836(0x118)](_0x56e8cc||[]);if(!_0x317da8||_0x1871bd[_0x4b7836(0xd2)](_0x317da8['length'],0x0)){logger[_0x4b7836(0x121)](_0x1871bd[_0x4b7836(0xca)]);return;}const _0xf707ad=0x28,_0x33c57c=Math['ceil'](_0x1871bd[_0x4b7836(0xf6)](_0x317da8[_0x4b7836(0x17c)],_0xf707ad));for(let _0x4800a0=0x0;_0x1871bd[_0x4b7836(0x15e)](_0x4800a0,_0x33c57c);_0x4800a0++){const _0x9f6ec7=_0x1871bd[_0x4b7836(0x169)](_0x4800a0,_0xf707ad),_0x4eea61=_0x1871bd[_0x4b7836(0x126)](_0x9f6ec7,_0xf707ad),_0x279a54=_0x317da8['slice'](_0x9f6ec7,_0x4eea61),_0x2adade={'platformIndex':global?.[_0x4b7836(0x146)]??0x0,'logs':_0x279a54,'testFrameworkName':_0x44327a,'testFrameworkVersion':_0x52018b,'testFrameworkState':_0x1f8942[_0x4b7836(0x16b)]()[_0x4b7836(0xcd)]('.')[0x1]};logger[_0x4b7836(0x121)](_0x4b7836(0xde)+_0x1a7656+_0x4b7836(0x109)+_0x1871bd[_0x4b7836(0xf8)](_0x4800a0,0x1)+'/'+_0x33c57c+'\x20payload='+util['inspect'](_0x2adade));const _0x3cd75d=await GrpcClient[_0x4b7836(0xeb)]()[_0x4b7836(0x13f)](_0x2adade);logger[_0x4b7836(0x121)](_0x4b7836(0xde)+_0x1a7656+_0x4b7836(0x109)+_0x1871bd['aFFeb'](_0x4800a0,0x1)+'/'+_0x33c57c+'\x20response='+util[_0x4b7836(0xbf)](_0x3cd75d));}}catch(_0xcd4625){logger['error'](_0x4b7836(0x102)+util[_0x4b7836(0x162)](_0xcd4625));}logger[_0x4b7836(0x121)](_0x1871bd[_0x4b7836(0x111)]);}[a78_0x4b735e(0x12a)](_0x4f2139,_0x30fdb9,_0x374ea3,_0x163fa8,_0x320326){const _0x17c88f=a78_0x4b735e,_0x59bc62={'testId':_0x30fdb9,'testFrameworkState':_0x374ea3,'hookState':_0x163fa8,'args':_0x320326,'timestamp':new Date()[_0x17c88f(0xc9)]()};_0x4f2139[_0x17c88f(0xda)](_0x30fdb9,_0x59bc62),logger[_0x17c88f(0x121)](_0x17c88f(0x142)+_0x30fdb9+',\x20state:\x20'+_0x374ea3+_0x17c88f(0x139)+_0x163fa8);}async['processPendingHooks'](_0x553eed,_0x239d1b){const _0x72fd79=a78_0x4b735e,_0x547357={};_0x547357[_0x72fd79(0xbd)]=function(_0x389673,_0x1bae4c){return _0x389673>_0x1bae4c;};const _0x3a9fb8=_0x547357;if(!_0x553eed[_0x72fd79(0x182)](_0x239d1b))return;const _0x24f3ec=_0x553eed[_0x72fd79(0xd8)](_0x239d1b);logger[_0x72fd79(0x121)](_0x72fd79(0x14c)+_0x24f3ec['length']+_0x72fd79(0x15c)+_0x239d1b);for(const _0x58c077 of _0x24f3ec){try{const _0x324ad2=await this[_0x72fd79(0x10a)](_0x553eed,_0x58c077[_0x72fd79(0x112)],_0x58c077[_0x72fd79(0x16e)],_0x58c077[_0x72fd79(0x103)]);_0x324ad2&&_0x3a9fb8['ZSvza'](Object[_0x72fd79(0xf7)](_0x324ad2)[_0x72fd79(0x17c)],0x0)&&_0x553eed['addMultipleEntries'](_0x324ad2),await this[_0x72fd79(0x119)](_0x553eed,_0x58c077['testFrameworkState'],_0x58c077[_0x72fd79(0x16e)],_0x58c077[_0x72fd79(0x103)]);}catch(_0x2bedc3){logger[_0x72fd79(0xe6)](_0x72fd79(0xf5)+_0x239d1b+_0x72fd79(0x13c)+_0x2bedc3);}}_0x553eed[_0x72fd79(0x15b)](_0x239d1b),logger['debug'](_0x72fd79(0xe5)+_0x239d1b);}}function a78_0x5153(){const _0x113314=['VYVtF','\x20with\x20id\x20','../../../helpers/classLogger.js','../TestInfo.js','removePendingHooks','\x20pending\x20hooks\x20for\x20testId:\x20','failure_data','zgkFU','setTestDetails','getId','12401700OgaARh','format','getRef',',\x20storing\x20as\x20pending\x20hook','LUynm','result','LpIKM','getTestDetails','XQNxp','base64','toString','./constants/testFrameworkConstants.js','getTestUUID','hookState','SOOAs','getCurrentHookState','./testFramework','\x20with\x20UUID:\x20','name','Updated\x20cucumber\x20test\x20result:\x20','scopes','KEY_TEST_SCOPE','\x20for\x20test:\x20','getTestFrameworks','KEY_TEST_ID','SdtaK','trackCucumberInstance:\x20saved\x20instance\x20contextId=','length','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','PRE','dkMdX','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','passed','hasPendingHooks','5OcSPwu','KEY_TEST_RESULT_AT','KEY_TEST_RERUN_NAME','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','4xiLkmc','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','eventJson','parseCucumberTest','\x20\x20and\x20args\x20=\x20','ZSvza','3874950SPrQQR','inspect','KEY_TEST_TAGS','pop','hJHmI','\x20and\x20args\x20=\x20','trackEvent:\x20unsupported\x20testFrameworkState=','getAllData','uuid','createContext','KEY_HOOKS_FINISHED','toISOString','owNLr','TEST','startedAt','split','KEY_AUTOMATE_SESSION_NAME','from','testUUID','test','PKyZr','parseCucumberTestResult','OgXtC','CucumberTestFramework','nclMt','25417wlCKWs','getPendingHooks','wXhfm','addPendingHook','KEY_TEST_FILE_PATH','sendLogCreatedEvent','finished_at','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_TEST_SCOPES','getThreadId','2456LhMcOf','failure_reason','Cucumber\x20log\x20created\x20event','resolveInstance','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','error','132FPZBRd','createTestFrameworkEventPayload\x20testId:\x20','493330tJPktc','addMultipleEntries','getInstance','getCurrentTestState','KEY_TEST_FRAMEWORK_VERSION','KEY_HOOK_NAME','NONE','AbaWa','test_run_id','readLogObjects','UnhandledError','VKbQa','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','gnjJH','keys','TyMTw','meta','getTrackedInstance','KEY_TEST_FAILURE','KEY_HOOK_LOGS','POST','exports','KEY_LOGS','../state/hookState.js','KEY_TEST_ENDED_AT','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','args','EzPRb','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','KEY_TEST_RESULT','KEY_HOOK_FAILURE_REASON','COJDz','\x20batch\x20','trackHookEvent','KEY_TEST_FRAMEWORK_NAME','executionContext','\x20hookState:\x20','finishedAt','trackCucumberInstance','KEY_TEST_LOGS','IYxAw','testFrameworkState','testData','KEY_TEST_ATTACHMENTS','CsTJO','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','Parsed\x20cucumber\x20test:\x20','concat','runHooks','processPendingHooks','../instances/testFrameworkInstance.js','customRerunParam','getContext','../state/testFrameworkState.js','\x20with\x20result:\x20','KEY_EVENT_STARTED_AT','debug','460902LNgnQM','failure_type','KEY_CUSTOM_TAGS','testFrameworkVersion','aFFeb','getTestFrameworksVersions','KEY_HOOK_LAST_FINISHED','\x20target=','storePendingHook','DEFAULT_HOOK_RESULT','matchHookRegex','instance','KEY_HOOK_RESULT','code','platformIndex','testFrameworkName','KEY_TEST_UUID','KEY_TEST_STARTED_AT','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','KEY_TEST_FAILURE_TYPE','trackEvent','6823542yeFyDv','KEY_HOOK_FAILURE_TYPE',',\x20hookState:\x20','ZRVZr','getProcessId',',\x20error:\x20','failure','KEY_TEST_LOCATION','logCreatedEvent','KEY_TEST_CODE','zfIMN','Stored\x20pending\x20hook\x20for\x20testId:\x20',',\x20state=','get','createTestFrameworkEventPayload','browserstackPlatformIndex','KEY_HOOK_FAILURE','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','KEY_HOOK_LAST_STARTED','KEY_TEST_META','KEY_HOOK_ID','Processing\x20','INIT_TEST','hookData','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','2970627YTyhXA','KEY_HOOKS_STARTED','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','MDrYC','hooks','2dMsWOo','hook_type'];a78_0x5153=function(){return _0x113314;};return a78_0x5153();}module[a78_0x4b735e(0xfe)]=CucumberTestFramework;
|