browserstack-node-sdk 1.63.0 → 1.63.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 +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.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/loadErrors.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/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.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/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.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/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/sdkErrorHandler.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 a85_0x4947(){const _0x3d71a4=['jolBT','zSwfM','checkAndUpdateCli','unlink','qOOhR','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','runShellCommand','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','GaGHb','cli_version','stringify','LTgbG','closeSync','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','WEkRr','2843860OinTdV','hFWZh','HTTP\x20','../../../package.json','GMAcz','getExistingCliPath','data','byxwD','Folder\x20','end','bBPwM','Abzxv','setFrameworkDetail','Resolved\x20binary\x20path:\x20','1200GXRMbL','APKKi','41744ZXDtOZ','start','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','BROWSERSTACK_BINARY_URL','sIcWS','Error\x20while\x20reading\x20CLI\x20path:\x20','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','dVrfA','tMKCE','error','statusCode','Binary\x20is\x20busy:\x20','createWriteStream','./state/automationFrameworkState.js','0755','Folder\x20does\x20not\x20exist:\x20','qkMjb','isDirectory','statSync','EXDEV','4|3|2|1|0','matchHookRegex',',\x20automationFramework=','vHgKB','byteR','worker_threads','ucOfS','isFile','InoRY','openReadStream','info','requestToUpdateCLI','warn','kHnFi','jnykO','rename','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','mergeObject','../utils/apiUtilityMethods.js','../../helpers/classLogger.js','platform','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','destroy','TUGwX','avMFr','pid','getSdkLanguage','YZaoM','Failed\x20to\x20delete\x20zip\x20file:\x20','cRSVc','unix:/tmp/sdk-platform-','Configuring\x20Cli\x20path.','../../helpers/performance/performance-tester.js','GET','concat','bBtYY','includes','IHfSu','62248MgrerS','yNKHk','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','util','getCliDir','wFEFk','tmpdir','getSdkVersion','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','UjKwd','message','bZewY','debug','split','SDK_CLI_DOWNLOAD','AdNCt','readdirSync','7295xlKHJM','Resolving\x20with\x20stdout:\x20\x22','\x20already\x20exists','jksjL','isArray','Lpaen','QCJqS','testFrameworkDetail','preserveStatusCodeOnError','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','development','huzri','yySpO','entries','../../helpers/performance/constants','length','../../helpers/test-observability/utils.js','../../helpers/helper','Downloading\x20SDK\x20binary\x20from:\x20','../../helpers/utilities','QuCbp','yauzl','nUGof','trim','arch','reduce','SDK_CLI_BIN_PATH','env','resume','jjiSl','testContextOptions','Setting\x20required\x20permissions\x20to\x20','map','HVstV','mUChO','SHELL_EXECUTE_ERROR','oGPeS','voqja','lazyEntries','skipSessionName','join','getCurrentInstanceName','shouldSkipSessionName','fileName','chmod','XRroj','downloadLatestBinary','follow-redirects','skipSessionStatus','.zip','4IiRaHb','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','isBinaryBusy','CLIUtils','automationFrameworkDetail','kSAXW','qWZsI','IKVUW','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','close','XmMEE','dCZtR','OibLX','parse','xGhIi','version','eGmJs','basename','format','2225118zPnwgt','uhxGF','llqiN','mtime','hLdiY','binary-','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','BROWSERSTACK_FILES_DIR','TTJpt','isDevelopmentEnv','YVGND','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','326208MkiNFk','cmhHB','getCLIParamsForDevEnv','DHLkM','url','aSgKm','downloaded_file_','code','NpqQU','setupCliPath','../utils/constants','yjTGy','AVDsp','153qnSHNY','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','existsSync','getWritableDir','704301OlQYQY','.browserstack','TxqnJ','RLLab','exports','ardst','SDK_CLI_CHECK_UPDATE','OMLuh','getAutomationFrameworkDetail','shouldSkipSessionStatus','SSiuI','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','test','SSgKX','BROWSERSTACK_CLI_ENV','pLmOP','openSync','path','HXnkg','./framework/constants/testFrameworkConstants.js','readEntry'];a85_0x4947=function(){return _0x3d71a4;};return a85_0x4947();}const a85_0x469fee=a85_0x1ad4;function a85_0x1ad4(_0x24911e,_0x546930){const _0x49477d=a85_0x4947();return a85_0x1ad4=function(_0x1ad4c0,_0x3e9412){_0x1ad4c0=_0x1ad4c0-0xe8;let _0x26297c=_0x49477d[_0x1ad4c0];return _0x26297c;},a85_0x1ad4(_0x24911e,_0x546930);}(function(_0x543d0f,_0x2a47d8){const _0x34a5e8=a85_0x1ad4,_0x65a2ae=_0x543d0f();while(!![]){try{const _0x12ea7=-parseInt(_0x34a5e8(0x1a6))/0x1+-parseInt(_0x34a5e8(0x161))/0x2+parseInt(_0x34a5e8(0x172))/0x3*(parseInt(_0x34a5e8(0x142))/0x4)+-parseInt(_0x34a5e8(0x110))/0x5*(-parseInt(_0x34a5e8(0x1a4))/0x6)+parseInt(_0x34a5e8(0x155))/0x7+-parseInt(_0x34a5e8(0xff))/0x8*(parseInt(_0x34a5e8(0x16e))/0x9)+-parseInt(_0x34a5e8(0x196))/0xa;if(_0x12ea7===_0x2a47d8)break;else _0x65a2ae['push'](_0x65a2ae['shift']());}catch(_0x56bf39){_0x65a2ae['push'](_0x65a2ae['shift']());}}}(a85_0x4947,0x366d2));const fs=require('fs'),os=require('os'),url=require(a85_0x469fee(0x165)),path=require(a85_0x469fee(0x183)),{exec}=require('child_process'),{https}=require(a85_0x469fee(0x13f)),yauzl=require(a85_0x469fee(0x125)),util=require(a85_0x469fee(0x102)),{getFrameworkVersion}=require(a85_0x469fee(0x120)),{threadId}=require(a85_0x469fee(0x1bf)),PerformanceTester=require(a85_0x469fee(0xf9)),{EVENTS:PerformanceEvents}=require(a85_0x469fee(0x11e)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x469fee(0x123)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x469fee(0x121)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x469fee(0x16b)),{createClassLogger}=require(a85_0x469fee(0xec)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require('./state/hookState.js'),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require(a85_0x469fee(0x1b3)),TestFrameworkConstants=require(a85_0x469fee(0x185)),logger=createClassLogger(a85_0x469fee(0x145)),{getBStackAPIUrl}=require(a85_0x469fee(0xeb));class CLIUtils{[a85_0x469fee(0x146)]={};[a85_0x469fee(0x117)]={};static[a85_0x469fee(0x15e)](){const _0x41004d=a85_0x469fee,_0xecd79c={};_0xecd79c[_0x41004d(0xf1)]=function(_0x5720a1,_0x232b7e){return _0x5720a1===_0x232b7e;},_0xecd79c[_0x41004d(0x11b)]=_0x41004d(0x11a);const _0x17dd68=_0xecd79c;return _0x17dd68[_0x41004d(0xf1)](process[_0x41004d(0x12b)][_0x41004d(0x180)],_0x17dd68[_0x41004d(0x11b)]);}static[a85_0x469fee(0x163)](){const _0x5f1697=a85_0x469fee,_0x5a3bea={};return _0x5a3bea['id']=process[_0x5f1697(0x12b)]['BROWSERSTACK_CLI_ENV'],_0x5a3bea['listen']=_0x5f1697(0xf7)+process[_0x5f1697(0x12b)][_0x5f1697(0x180)]+'.sock',_0x5a3bea;}static[a85_0x469fee(0x106)](){const _0x536da7=a85_0x469fee,_0x1fec79={'bBPwM':function(_0x469393,_0x1905c1){return _0x469393(_0x1905c1);},'IHfSu':_0x536da7(0x199)};return _0x1fec79[_0x536da7(0x1a0)](require,_0x1fec79[_0x536da7(0xfe)])[_0x536da7(0x151)];}static[a85_0x469fee(0xf3)](){const _0x1170bf=a85_0x469fee,_0x47ad45={};_0x47ad45[_0x1170bf(0x14d)]='node';const _0x2395c8=_0x47ad45;return _0x2395c8[_0x1170bf(0x14d)];}static async[a85_0x469fee(0x16a)](_0x32c124){const _0x4a5a3e=a85_0x469fee,_0x58722c={'StdGE':_0x4a5a3e(0xf8),'CgWvL':function(_0x244323,_0x4451db){return _0x244323(_0x4451db);},'dmVHy':_0x4a5a3e(0x160)};logger['debug'](_0x58722c['StdGE']);const _0x16f707=process[_0x4a5a3e(0x12b)][_0x4a5a3e(0x12a)];if(!_0x58722c['CgWvL'](isNullOrEmpty,_0x16f707))return logger[_0x4a5a3e(0x10b)]('Development\x20Cli\x20Path:\x20'+_0x16f707),_0x16f707;try{const _0x59d026=this[_0x4a5a3e(0x103)]();if(_0x58722c['CgWvL'](isNullOrEmpty,_0x59d026))throw new Error(_0x58722c['dmVHy']);const _0x554056=this[_0x4a5a3e(0x19b)](_0x59d026),_0x933469=await this[_0x4a5a3e(0x189)](_0x554056,_0x59d026,_0x32c124);return logger['debug'](_0x4a5a3e(0x1a3)+_0x933469),_0x933469;}catch(_0x4865e6){logger[_0x4a5a3e(0x10b)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util['format'](_0x4865e6));}return null;}static async[a85_0x469fee(0x189)](_0x3833b2,_0x26f46e,_0x246e79){const _0x415dbc=a85_0x469fee,_0x1477d7={'qkMjb':function(_0x45612b){return _0x45612b();},'RLLab':function(_0x90e5ed,_0xf12e8){return _0x90e5ed(_0xf12e8);},'TTJpt':function(_0x1bc343,_0x4b6004,_0x287470){return _0x1bc343(_0x4b6004,_0x287470);},'Abzxv':'data','jolBT':_0x415dbc(0x165),'yjTGy':function(_0x4c30d4,_0x4b55a3){return _0x4c30d4(_0x4b55a3);},'AdNCt':function(_0x3c8e5c,_0x4bb807,_0x1a34a1){return _0x3c8e5c(_0x4bb807,_0x1a34a1);}};PerformanceTester[_0x415dbc(0x1a7)](PerformanceEvents[_0x415dbc(0x178)]);try{logger[_0x415dbc(0x1c4)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x3833b2);const _0x962d5f=_0x1477d7[_0x415dbc(0x1b6)](getHostInfo),_0x3f3fcd={'sdk_version':CLIUtils[_0x415dbc(0x106)](),'os':_0x962d5f[_0x415dbc(0xed)],'os_arch':_0x962d5f[_0x415dbc(0x128)],'cli_version':'0','sdk_language':this[_0x415dbc(0xf3)]()};!_0x1477d7[_0x415dbc(0x175)](isNullOrEmpty,_0x3833b2)&&(_0x3f3fcd[_0x415dbc(0x190)]=await this[_0x415dbc(0x18d)](_0x3833b2+'\x20version'));const _0x4d77e2=await this[_0x415dbc(0x1c5)](_0x3f3fcd,_0x246e79);process[_0x415dbc(0x12b)][_0x415dbc(0x1a9)]&&(logger['info'](_0x415dbc(0xe9)+process['env'][_0x415dbc(0x1a9)]),_0x4d77e2[_0x415dbc(0x19c)][_0x415dbc(0x165)]=process[_0x415dbc(0x12b)][_0x415dbc(0x1a9)]);if(_0x1477d7[_0x415dbc(0x15d)](nestedKeyValue,_0x4d77e2,[_0x1477d7[_0x415dbc(0x1a1)],_0x1477d7[_0x415dbc(0x187)]])){logger[_0x415dbc(0x10b)](_0x415dbc(0x17d)+_0x3f3fcd[_0x415dbc(0x190)]);if(!_0x1477d7[_0x415dbc(0x16c)](isNullOrEmpty,_0x3833b2)&&this[_0x415dbc(0x144)](_0x3833b2))return logger[_0x415dbc(0x1c6)](_0x415dbc(0x101)+_0x3833b2),_0x3833b2;return await this['downloadLatestBinary'](_0x1477d7[_0x415dbc(0x10e)](nestedKeyValue,_0x4d77e2,[_0x1477d7[_0x415dbc(0x1a1)],_0x1477d7[_0x415dbc(0x187)]]),_0x26f46e);}return _0x3833b2;}finally{PerformanceTester[_0x415dbc(0x19f)](PerformanceEvents[_0x415dbc(0x178)]);}}static[a85_0x469fee(0x103)](){const _0x11a953=a85_0x469fee,_0x37d065={'sIcWS':function(_0xc3b18f,_0x97fec9){return _0xc3b18f(_0x97fec9);},'byxwD':_0x11a953(0x160),'ucOfS':'cli'},_0x3869c2=this[_0x11a953(0x171)]();try{if(_0x37d065['sIcWS'](isNullOrEmpty,_0x3869c2))throw new Error(_0x37d065[_0x11a953(0x19d)]);const _0x40f071=path[_0x11a953(0x138)](_0x3869c2,_0x37d065[_0x11a953(0x1c0)]);return!fs[_0x11a953(0x170)](_0x40f071)&&_0x37d065[_0x11a953(0x1aa)](createDir,_0x40f071),_0x40f071;}catch(_0x4f4e59){logger[_0x11a953(0x10b)]('Error\x20in\x20getting\x20writable\x20directory,\x20writableDir='+util['format'](_0x4f4e59));}}static[a85_0x469fee(0x171)](){const _0x1ed2dc=a85_0x469fee,_0x75f610={'QCJqS':_0x1ed2dc(0x173),'TUGwX':function(_0xe1e89e,_0x304c83){return _0xe1e89e(_0x304c83);},'XRroj':function(_0x33e833,_0x2cbb54){return _0x33e833(_0x2cbb54);},'vHgKB':function(_0x33d609,_0x11ce3b){return _0x33d609(_0x11ce3b);},'OMLuh':function(_0x560144,_0x3f84bd){return _0x560144(_0x3f84bd);}},_0x4702ad=[process[_0x1ed2dc(0x12b)][_0x1ed2dc(0x15c)],path[_0x1ed2dc(0x138)](os['homedir'](),_0x75f610[_0x1ed2dc(0x116)]),path[_0x1ed2dc(0x138)](os[_0x1ed2dc(0x105)](),_0x75f610[_0x1ed2dc(0x116)])];for(const _0x1d4c99 of _0x4702ad){if(_0x75f610[_0x1ed2dc(0xf0)](isNullOrEmpty,_0x1d4c99))continue;try{if(fs['existsSync'](_0x1d4c99)){logger[_0x1ed2dc(0x10b)](_0x1ed2dc(0x19e)+_0x1d4c99+_0x1ed2dc(0x112));if(!_0x75f610[_0x1ed2dc(0x13d)](isModifiable,_0x1d4c99)){logger[_0x1ed2dc(0x10b)](_0x1ed2dc(0x12f)+_0x1d4c99);const _0xb32525=_0x75f610[_0x1ed2dc(0x13d)](setReadWriteExecuteAccess,_0x1d4c99);if(!_0x75f610['TUGwX'](isTrue,_0xb32525)){logger[_0x1ed2dc(0x1c6)](_0x1ed2dc(0x107)+_0x1d4c99);continue;}}}else{logger[_0x1ed2dc(0x10b)](_0x1ed2dc(0x1b5)+_0x1d4c99),_0x75f610[_0x1ed2dc(0x1bd)](createDir,_0x1d4c99),logger[_0x1ed2dc(0x10b)](_0x1ed2dc(0x12f)+_0x1d4c99);const _0x4c7b9d=_0x75f610[_0x1ed2dc(0x179)](setReadWriteExecuteAccess,_0x1d4c99);!_0x75f610[_0x1ed2dc(0xf0)](isTrue,_0x4c7b9d)&&logger[_0x1ed2dc(0x1c6)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x1d4c99);}return _0x1d4c99;}catch(_0x34725b){logger[_0x1ed2dc(0x1af)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util['format'](_0x34725b));}}return null;}static['getExistingCliPath'](_0x406703){const _0x26a82f=a85_0x469fee,_0x243491={};_0x243491['dVrfA']=function(_0x27560f,_0x48da7e){return _0x27560f>_0x48da7e;},_0x243491['voqja']=function(_0x1e9acc,_0x47532b){return _0x1e9acc>_0x47532b;};const _0x290a9a=_0x243491;try{if(!fs[_0x26a82f(0x170)](_0x406703)||!fs[_0x26a82f(0x1b8)](_0x406703)[_0x26a82f(0x1b7)]())return'';const _0x50a2e2=fs[_0x26a82f(0x10f)](_0x406703)[_0x26a82f(0x130)](_0x4a52e3=>path[_0x26a82f(0x138)](_0x406703,_0x4a52e3))['filter'](_0x477a66=>fs['statSync'](_0x477a66)[_0x26a82f(0x1c1)]()&&path[_0x26a82f(0x153)](_0x477a66)['startsWith'](_0x26a82f(0x15a)));if(_0x290a9a[_0x26a82f(0x135)](_0x50a2e2[_0x26a82f(0x11f)],0x0)){const _0x168f03=_0x50a2e2[_0x26a82f(0x130)](_0x4b9e0e=>({'filePath':_0x4b9e0e,'mtime':fs[_0x26a82f(0x1b8)](_0x4b9e0e)['mtime']}))[_0x26a82f(0x129)]((_0x146673,_0x2f3185)=>{const _0x3ca379=_0x26a82f;if(!_0x146673||!_0x146673[_0x3ca379(0x158)])return _0x2f3185;if(_0x290a9a[_0x3ca379(0x1ad)](_0x2f3185[_0x3ca379(0x158)],_0x146673['mtime']))return _0x2f3185;return _0x146673;},{});return _0x168f03?_0x168f03['filePath']:'';}return'';}catch(_0x43a909){return logger['error'](_0x26a82f(0x1ab)+util['format'](_0x43a909)),'';}}static [a85_0x469fee(0x1c5)]=async(_0x1217e9,_0x523207)=>{const _0x42e853=a85_0x469fee,_0x3893fa={'fCXYt':function(_0x5262a1,_0x31b794,_0x47e7b3,_0x237bc3,_0x8eda17){return _0x5262a1(_0x31b794,_0x47e7b3,_0x237bc3,_0x8eda17);},'cPJmI':_0x42e853(0xfa)},_0x540f4b={};_0x540f4b['qs']=_0x1217e9,_0x540f4b[_0x42e853(0x118)]=!![];const _0x504ad1=await _0x3893fa['fCXYt'](nodeRequest,_0x3893fa['cPJmI'],UPDATED_CLI_ENDPOINT,_0x540f4b,_0x523207);return logger[_0x42e853(0x10b)]('response\x20'+JSON[_0x42e853(0x191)](_0x504ad1)),_0x504ad1;};static[a85_0x469fee(0x144)](_0x29bf35){const _0x1691ad=a85_0x469fee;try{const _0x238110=fs[_0x1691ad(0x182)](_0x29bf35,'r+');return fs[_0x1691ad(0x193)](_0x238110),![];}catch(_0x3a1e07){if(BINARY_BUSY_ERROR_CODES[_0x1691ad(0xfd)](_0x3a1e07[_0x1691ad(0x168)]))return logger[_0x1691ad(0x10b)](_0x1691ad(0x1b1)+_0x29bf35),!![];return logger[_0x1691ad(0x10b)](_0x1691ad(0xee)+_0x3a1e07['message']),![];}}static[a85_0x469fee(0x18d)](_0x246ce7,_0x353539=''){const _0x2b6a1f=a85_0x469fee,_0x34c9bf={'xGhIi':'version','HXnkg':function(_0x177f0e,_0xeab48d){return _0x177f0e(_0xeab48d);},'YVGND':_0x2b6a1f(0x133),'bBtYY':function(_0x42c3cc,_0xbeac79,_0x1a12b9,_0x1bbdd8){return _0x42c3cc(_0xbeac79,_0x1a12b9,_0x1bbdd8);},'HVstV':'error'};return new Promise((_0x1327b7,_0xa2c069)=>{const _0x98abf0=_0x2b6a1f,_0x5bca4d={};_0x5bca4d['cwd']=_0x353539,_0x5bca4d['timeout']=0x1388;const _0x3c12dd=_0x34c9bf[_0x98abf0(0xfc)](exec,_0x246ce7,_0x5bca4d,(_0x1826b8,_0x2d554b,_0x4585c8)=>{const _0x126abd=_0x98abf0;if(_0x1826b8){if(_0x246ce7[_0x126abd(0xfd)](_0x34c9bf[_0x126abd(0x150)])&&(_0x2d554b[_0x126abd(0x127)]()||_0x4585c8[_0x126abd(0x127)]())){const _0x4a4f83=_0x2d554b['trim']()||_0x4585c8['trim']();logger[_0x126abd(0x10b)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x4a4f83+'\x22'),_0x34c9bf['HXnkg'](_0x1327b7,_0x4a4f83);}else _0x34c9bf[_0x126abd(0x184)](_0x1327b7,_0x4585c8[_0x126abd(0x127)]()||_0x34c9bf[_0x126abd(0x15f)]);}else logger['debug'](_0x126abd(0x111)+_0x2d554b[_0x126abd(0x127)]()+'\x22'),_0x34c9bf[_0x126abd(0x184)](_0x1327b7,_0x2d554b[_0x126abd(0x127)]());});_0x3c12dd['on'](_0x34c9bf[_0x98abf0(0x131)],()=>{const _0x5e041b=_0x98abf0;_0x34c9bf[_0x5e041b(0x184)](_0x1327b7,_0x34c9bf[_0x5e041b(0x15f)]);});});}static [a85_0x469fee(0x13e)]=async(_0x2ad78c,_0x56c23e)=>{const _0x43550c=a85_0x469fee,_0x28390f={'qOOhR':function(_0x549ad8,_0x37b44a){return _0x549ad8(_0x37b44a);},'ardst':function(_0x8ada4,_0x5aa40f){return _0x8ada4>=_0x5aa40f;},'IKVUW':'DOWNLOAD_HTTP','bZewY':_0x43550c(0x119),'jksjL':function(_0x536c23,_0x420d26){return _0x536c23(_0x420d26);},'TxqnJ':_0x43550c(0x1af),'mUChO':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','Lpaen':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','aSgKm':function(_0x3564bd,_0x167fb3){return _0x3564bd(_0x167fb3);},'xWLDO':'Failed\x20to\x20download\x20SDK\x20binary:\x20%s'};PerformanceTester[_0x43550c(0x1a7)](PerformanceEvents[_0x43550c(0x10d)]),logger[_0x43550c(0x10b)](_0x43550c(0x122)+_0x2ad78c);try{const _0x1a7cad=url[_0x43550c(0x14f)](_0x2ad78c),_0x21309c=path[_0x43550c(0x138)](_0x56c23e,_0x43550c(0x167)+process[_0x43550c(0xf2)]+_0x43550c(0x141)),_0x3f1a91=fs['createWriteStream'](_0x21309c);return new Promise((_0x2705fb,_0x20e496)=>{const _0x5e3b1a=_0x43550c,_0x33da95={'OibLX':_0x28390f[_0x5e3b1a(0x132)],'nUGof':function(_0x4ba9d4,_0x14a668){const _0x481cfe=_0x5e3b1a;return _0x28390f[_0x481cfe(0x18b)](_0x4ba9d4,_0x14a668);},'LEHdV':_0x28390f[_0x5e3b1a(0x115)],'oGPeS':function(_0x257fff,_0x32339d){const _0x12853e=_0x5e3b1a;return _0x28390f[_0x12853e(0x166)](_0x257fff,_0x32339d);}};https['get'](_0x1a7cad,function(_0x462765){const _0x4e3690=_0x5e3b1a,_0x42acaf={'OsEBn':function(_0x193d4d,_0xebe5bc){const _0x128673=a85_0x1ad4;return _0x28390f[_0x128673(0x18b)](_0x193d4d,_0xebe5bc);}},_0x2b5f39=null;if(_0x462765['statusCode']&&_0x28390f[_0x4e3690(0x177)](_0x462765[_0x4e3690(0x1b0)],0x190)){const _0x4833b7=new Error(_0x4e3690(0x14a)+_0x462765[_0x4e3690(0x1b0)]+'\x20from\x20'+_0x2ad78c);_0x4833b7[_0x4e3690(0x168)]=_0x28390f[_0x4e3690(0x149)],_0x4833b7['statusCode']=_0x462765[_0x4e3690(0x1b0)],logger[_0x4e3690(0x1af)](util[_0x4e3690(0x154)](_0x28390f[_0x4e3690(0x10a)],_0x462765['statusCode'])),PerformanceTester['end'](PerformanceEvents[_0x4e3690(0x10d)],![],_0x4e3690(0x198)+_0x462765['statusCode']),_0x462765[_0x4e3690(0x12c)](),_0x3f1a91[_0x4e3690(0xef)](),fs['unlink'](_0x21309c,()=>{}),_0x28390f[_0x4e3690(0x113)](_0x20e496,_0x4833b7);return;}_0x462765['pipe'](_0x3f1a91),_0x462765['on'](_0x28390f[_0x4e3690(0x174)],function(_0x513aa5){const _0x4ebb4e=_0x4e3690;logger[_0x4ebb4e(0x1af)](util[_0x4ebb4e(0x154)](_0x33da95[_0x4ebb4e(0x14e)],_0x513aa5)),PerformanceTester[_0x4ebb4e(0x19f)](PerformanceEvents[_0x4ebb4e(0x10d)],![],util[_0x4ebb4e(0x154)](_0x513aa5)),_0x33da95[_0x4ebb4e(0x126)](_0x20e496,_0x513aa5);}),_0x3f1a91['on'](_0x28390f[_0x4e3690(0x174)],function(_0x501e00){const _0x137484=_0x4e3690;logger['error'](util[_0x137484(0x154)](_0x33da95['LEHdV'],_0x501e00)),PerformanceTester[_0x137484(0x19f)](PerformanceEvents[_0x137484(0x10d)],![],util[_0x137484(0x154)](_0x501e00)),_0x33da95['nUGof'](_0x20e496,_0x501e00);}),CLIUtils['downloadFileStream'](_0x3f1a91,_0x2b5f39,_0x21309c,_0x56c23e,_0x2b6c5b=>{const _0x2da9ae=_0x4e3690;PerformanceTester[_0x2da9ae(0x19f)](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x33da95[_0x2da9ae(0x134)](_0x2705fb,_0x2b6c5b);},_0x48220a=>{const _0x413774=_0x4e3690;PerformanceTester[_0x413774(0x19f)](PerformanceEvents[_0x413774(0x10d)],![],util[_0x413774(0x154)](_0x48220a)),_0x42acaf['OsEBn'](_0x20e496,_0x48220a);});})['on'](_0x28390f[_0x5e3b1a(0x174)],function(_0x550e91){const _0x3e7fff=_0x5e3b1a;logger[_0x3e7fff(0x1af)](_0x3e7fff(0x1a8)+util['format'](_0x550e91)),PerformanceTester['end'](PerformanceEvents[_0x3e7fff(0x10d)],![],util[_0x3e7fff(0x154)](_0x550e91)),_0x28390f['qOOhR'](_0x20e496,_0x550e91);});});}catch(_0x3d531c){PerformanceTester[_0x43550c(0x19f)](PerformanceEvents[_0x43550c(0x10d)],![],util[_0x43550c(0x154)](_0x3d531c)),logger[_0x43550c(0x1af)](util[_0x43550c(0x154)](_0x28390f['xWLDO'],_0x3d531c));throw _0x3d531c;}};static['downloadFileStream'](_0x7f27a6,_0x56b0a4,_0x697ea6,_0xc98b27,_0xea2415,_0x56a52c){const _0x2e0e43=a85_0x469fee,_0x4ebf67={'WEkRr':function(_0x34d3a3,_0x3dd223){return _0x34d3a3(_0x3dd223);},'tMKCE':_0x2e0e43(0x14b),'kSAXW':'end','hFWZh':function(_0x59e594,_0x2b4920){return _0x59e594(_0x2b4920);},'cRSVc':'entry','wFEFk':_0x2e0e43(0x1af),'lnkzu':function(_0x12d5c7,_0x3ac565){return _0x12d5c7!==_0x3ac565;},'uhxGF':_0x2e0e43(0x1b9),'APKKi':function(_0x57a90c,_0x56f0e0){return _0x57a90c(_0x56f0e0);},'GaGHb':function(_0x18a336,_0x13d3d9){return _0x18a336(_0x13d3d9);},'byteR':_0x2e0e43(0x1b4)};_0x7f27a6['on'](_0x4ebf67[_0x2e0e43(0x1ae)],function(){const _0x4eeabb=_0x2e0e43,_0x45d37={'YZaoM':function(_0x391458,_0x2158e7){return _0x4ebf67['lnkzu'](_0x391458,_0x2158e7);},'llqiN':function(_0x4a22a3,_0x5e7039){return _0x4ebf67['hFWZh'](_0x4a22a3,_0x5e7039);},'NpqQU':_0x4ebf67[_0x4eeabb(0x104)],'hLdiY':function(_0x598f93,_0x367d3b){return _0x4ebf67['lnkzu'](_0x598f93,_0x367d3b);},'InoRY':_0x4ebf67[_0x4eeabb(0x156)],'UjKwd':function(_0x19700e,_0x500907){const _0x260594=_0x4eeabb;return _0x4ebf67[_0x260594(0x1a5)](_0x19700e,_0x500907);},'dhSgG':function(_0x9d2530,_0x57693e){const _0x4ebd6e=_0x4eeabb;return _0x4ebf67[_0x4ebd6e(0x18f)](_0x9d2530,_0x57693e);},'yySpO':_0x4ebf67[_0x4eeabb(0x1be)]},_0x3c4c30={};_0x3c4c30[_0x4eeabb(0x136)]=!![],yauzl['open'](_0x697ea6,_0x3c4c30,function(_0x4e35fe,_0x4b0b07){const _0x409cfa=_0x4eeabb,_0x36ace2={'IjOZD':function(_0x682204,_0x370e84){const _0x46ac4d=a85_0x1ad4;return _0x4ebf67[_0x46ac4d(0x195)](_0x682204,_0x370e84);},'jnykO':function(_0x954286,_0x142f1c){const _0x54c95b=a85_0x1ad4;return _0x4ebf67[_0x54c95b(0x195)](_0x954286,_0x142f1c);},'SSiuI':function(_0x5585d8,_0x28fbb5){const _0xea59d4=a85_0x1ad4;return _0x4ebf67[_0xea59d4(0x195)](_0x5585d8,_0x28fbb5);},'GMAcz':_0x4ebf67[_0x409cfa(0x1ae)],'AVDsp':function(_0x1acffd,_0x5f5a3f){const _0x15aaa3=_0x409cfa;return _0x4ebf67[_0x15aaa3(0x195)](_0x1acffd,_0x5f5a3f);},'qWZsI':_0x4ebf67[_0x409cfa(0x147)]};if(_0x4e35fe){_0x4ebf67[_0x409cfa(0x197)](_0x56a52c,_0x4e35fe);return;}_0x4b0b07[_0x409cfa(0x186)](),_0x4b0b07['on'](_0x4ebf67[_0x409cfa(0xf6)],_0x466bf5=>{const _0x243064=_0x409cfa;if(/\/$/[_0x243064(0x17e)](_0x466bf5[_0x243064(0x13b)])){_0x4b0b07[_0x243064(0x186)]();return;}!_0x56b0a4&&(_0x56b0a4=_0x466bf5['fileName']);if(_0x45d37[_0x243064(0xf4)](_0x466bf5[_0x243064(0x13b)],_0x56b0a4))_0x4b0b07['readEntry']();else{const _0x277564=_0x466bf5[_0x243064(0x13b)],_0x883a9=path[_0x243064(0x138)](_0xc98b27,_0x277564+'.tmp.'+process['pid']);let _0x33919a;try{_0x33919a=fs[_0x243064(0x1b2)](_0x883a9);}catch(_0x1383bf){if(BINARY_BUSY_ERROR_CODES[_0x243064(0xfd)](_0x1383bf[_0x243064(0x168)])){const _0x31f9c7=path[_0x243064(0x138)](_0xc98b27,_0x277564);if(fs['existsSync'](_0x31f9c7)){logger[_0x243064(0x1c6)]('Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x277564),fs[_0x243064(0x18a)](_0x697ea6,_0x2e282c=>{const _0x57089d=_0x243064;_0x2e282c&&logger[_0x57089d(0x1c6)](_0x57089d(0xf5)+_0x697ea6);}),_0x45d37['llqiN'](_0xea2415,_0x31f9c7);return;}logger[_0x243064(0x1c6)](_0x243064(0x18e)+_0x277564);}_0x45d37[_0x243064(0x157)](_0x56a52c,_0x1383bf);return;}_0x33919a['on'](_0x45d37[_0x243064(0x169)],_0xf8284=>{const _0x303067=_0x243064;if(BINARY_BUSY_ERROR_CODES['includes'](_0xf8284[_0x303067(0x168)])){const _0x2afe8e=path[_0x303067(0x138)](_0xc98b27,_0x277564);_0x33919a[_0x303067(0x14b)](),fs[_0x303067(0x170)](_0x2afe8e)?(logger['warn'](_0x303067(0x16f)+_0xf8284[_0x303067(0x109)]),_0x4b0b07[_0x303067(0x14b)](),fs[_0x303067(0x18a)](_0x697ea6,_0x38004c=>{const _0x18511d=_0x303067;_0x38004c&&logger[_0x18511d(0x1c6)](_0x18511d(0xf5)+_0x697ea6);}),_0x36ace2['IjOZD'](_0xea2415,_0x2afe8e)):(logger['warn']('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0xf8284[_0x303067(0x109)]),fs[_0x303067(0x18a)](_0x883a9,()=>{}),_0x36ace2[_0x303067(0x1c8)](_0x56a52c,_0xf8284));}else fs['unlink'](_0x883a9,()=>{}),_0x36ace2['SSiuI'](_0x56a52c,_0xf8284);}),_0x4b0b07[_0x243064(0x1c3)](_0x466bf5,function(_0x3b2e10,_0x52d1bc){const _0x181e0b=_0x243064,_0x18991b={};_0x18991b[_0x181e0b(0x124)]=_0x36ace2[_0x181e0b(0x19a)];const _0x36e170=_0x18991b;if(_0x3b2e10){fs[_0x181e0b(0x18a)](_0x883a9,()=>{}),_0x36ace2[_0x181e0b(0x16d)](_0x56a52c,_0x3b2e10);return;}_0x52d1bc['on'](_0x36ace2[_0x181e0b(0x148)],function(){_0x33919a['end'](),_0x33919a['on'](_0x36e170['QuCbp'],function(){const _0x8d3ef7=a85_0x1ad4;_0x4b0b07[_0x8d3ef7(0x186)]();});}),_0x52d1bc['pipe'](_0x33919a);});}}),_0x4b0b07['on'](_0x4ebf67[_0x409cfa(0x104)],_0xc7f452=>{const _0x31b63d=_0x409cfa;_0x36ace2[_0x31b63d(0x17c)](_0x56a52c,_0xc7f452);}),_0x4b0b07['once'](_0x4ebf67[_0x409cfa(0x147)],()=>{const _0x38323c=_0x409cfa,_0x1f9e17={'rBCeQ':function(_0x413a58,_0x113fe6){const _0x2829cf=a85_0x1ad4;return _0x45d37[_0x2829cf(0x159)](_0x413a58,_0x113fe6);},'yOPay':_0x45d37[_0x38323c(0x1c2)],'Coijg':function(_0x2c0b95,_0x4b5406){const _0xa15e88=_0x38323c;return _0x45d37[_0xa15e88(0x108)](_0x2c0b95,_0x4b5406);},'kHnFi':function(_0x493dc8,_0xcf0a44){return _0x45d37['dhSgG'](_0x493dc8,_0xcf0a44);}};fs['unlink'](_0x697ea6,_0x414dee=>{const _0x44f235=_0x38323c;_0x414dee&&logger[_0x44f235(0x1c6)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x697ea6);});const _0x1cd169=path[_0x38323c(0x138)](_0xc98b27,_0x56b0a4+'.tmp.'+process[_0x38323c(0xf2)]),_0xbb8f70=path[_0x38323c(0x138)](_0xc98b27,_0x56b0a4);fs[_0x38323c(0x13c)](_0x1cd169,_0x45d37[_0x38323c(0x11c)],function(_0xf139ce){const _0x31e254=_0x38323c,_0x59a284={'zSwfM':function(_0x32bacf,_0x537ca2){return _0x1f9e17['rBCeQ'](_0x32bacf,_0x537ca2);},'XmMEE':_0x1f9e17['yOPay'],'pLmOP':function(_0x3bd69e,_0x2106c2){return _0x1f9e17['Coijg'](_0x3bd69e,_0x2106c2);},'SSgKX':function(_0x15f6ee,_0x2e287f){return _0x1f9e17['Coijg'](_0x15f6ee,_0x2e287f);}};if(_0xf139ce){_0x4b0b07[_0x31e254(0x14b)](),fs['unlink'](_0x1cd169,()=>{}),_0x1f9e17[_0x31e254(0x1c7)](_0x56a52c,_0xf139ce);return;}fs[_0x31e254(0xe8)](_0x1cd169,_0xbb8f70,function(_0x29b17e){const _0x37cfb2=_0x31e254;if(_0x29b17e){if(_0x59a284[_0x37cfb2(0x188)](_0x29b17e['code'],_0x59a284[_0x37cfb2(0x14c)])){_0x4b0b07['close'](),fs[_0x37cfb2(0x18a)](_0x1cd169,()=>{}),_0x59a284[_0x37cfb2(0x181)](_0x56a52c,_0x29b17e);return;}logger[_0x37cfb2(0x1c6)](_0x37cfb2(0x1ac)+_0x29b17e[_0x37cfb2(0x109)]);try{fs['copyFileSync'](_0x1cd169,_0xbb8f70);}catch(_0x1d43ed){_0x4b0b07[_0x37cfb2(0x14b)](),fs[_0x37cfb2(0x18a)](_0x1cd169,()=>{}),_0x59a284[_0x37cfb2(0x17f)](_0x56a52c,_0x1d43ed);return;}fs['unlink'](_0x1cd169,_0x4c30b4=>{const _0x4e610b=_0x37cfb2;_0x4c30b4&&logger[_0x4e610b(0x1c6)](_0x4e610b(0x18c)+_0x4c30b4[_0x4e610b(0x109)]);});}_0x4b0b07['close'](),_0x59a284[_0x37cfb2(0x181)](_0xea2415,_0xbb8f70);});});});});});}static['getTestFrameworkDetail'](){const _0xd23964=a85_0x469fee;if(process[_0xd23964(0x12b)][_0xd23964(0x143)])return JSON[_0xd23964(0x14f)](process[_0xd23964(0x12b)][_0xd23964(0x143)]);return this[_0xd23964(0x117)];}static[a85_0x469fee(0x17a)](){const _0x40b70f=a85_0x469fee;if(process['env'][_0x40b70f(0x15b)])return JSON[_0x40b70f(0x14f)](process['env'][_0x40b70f(0x15b)]);return this[_0x40b70f(0x146)];}static[a85_0x469fee(0x1a2)](_0x58b9db,_0x3609d3){const _0x2751b1=a85_0x469fee,_0x2acaf0={'eGmJs':_0x2751b1(0x1ba),'OrzKK':function(_0x5a757d,_0x9f376f){return _0x5a757d(_0x9f376f);},'cmhHB':function(_0x26aed7,_0x599305){return _0x26aed7(_0x599305);},'yNKHk':function(_0x5964b3,_0x4e30c3){return _0x5964b3||_0x4e30c3;}},_0x24e4f7=_0x2acaf0[_0x2751b1(0x152)][_0x2751b1(0x10c)]('|');let _0x57df25=0x0;while(!![]){switch(_0x24e4f7[_0x57df25++]){case'0':process[_0x2751b1(0x12b)][_0x2751b1(0x143)]=JSON[_0x2751b1(0x191)](this[_0x2751b1(0x117)]);continue;case'1':process[_0x2751b1(0x12b)][_0x2751b1(0x15b)]=JSON['stringify'](this['automationFrameworkDetail']);continue;case'2':this[_0x2751b1(0x146)]={'name':_0x3609d3,'version':_0x2acaf0['OrzKK'](getFrameworkVersion,_0x3609d3)};continue;case'3':this[_0x2751b1(0x117)]={'name':_0x58b9db,'version':{[_0x58b9db]:_0x2acaf0[_0x2751b1(0x162)](getFrameworkVersion,_0x58b9db)}};continue;case'4':_0x2acaf0[_0x2751b1(0x100)](!_0x58b9db,!_0x3609d3)&&logger[_0x2751b1(0x10b)](_0x2751b1(0x194)+_0x58b9db+_0x2751b1(0x1bc)+_0x3609d3);continue;}break;}}static['getHookRegistryKey'](_0x1bebc6,_0x1943f7){return _0x1bebc6+':'+_0x1943f7;}static[a85_0x469fee(0x139)](){return process['pid']+':'+threadId;}static[a85_0x469fee(0x13a)](_0x3675c8){const _0x3d6559=a85_0x469fee;if(_0x3675c8[_0x3d6559(0x12e)]&&_0x3675c8['testContextOptions'][_0x3d6559(0x137)])return!![];return![];}static[a85_0x469fee(0x17b)](_0x437eb4){const _0x566305=a85_0x469fee;if(_0x437eb4[_0x566305(0x12e)]&&_0x437eb4[_0x566305(0x12e)][_0x566305(0x140)])return!![];return![];}static[a85_0x469fee(0x1bb)](_0x4d1273){const _0x5cca53=a85_0x469fee,_0x25441d=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x25441d[_0x5cca53(0x17e)](_0x4d1273);}static[a85_0x469fee(0xea)](_0x3d4973,_0x47af2f){const _0x3e375f=a85_0x469fee,_0x475b81={};_0x475b81[_0x3e375f(0x12d)]=function(_0x43d2a0,_0x4d68c1){return _0x43d2a0!==_0x4d68c1;},_0x475b81[_0x3e375f(0x164)]=function(_0x14fe8c,_0x373733){return _0x14fe8c===_0x373733;},_0x475b81['LTgbG']='object';const _0x3e8551=_0x475b81;for(const [_0x21ff7c,_0x37b8a3]of Object[_0x3e375f(0x11d)](_0x47af2f)){if(_0x3e8551['jjiSl'](_0x37b8a3,null)&&_0x3e8551[_0x3e375f(0x164)](typeof _0x37b8a3,_0x3e8551[_0x3e375f(0x192)])&&!Array[_0x3e375f(0x114)](_0x37b8a3))_0x3d4973[_0x21ff7c]=this[_0x3e375f(0xea)](_0x3d4973[_0x21ff7c]||{},_0x37b8a3);else Array[_0x3e375f(0x114)](_0x37b8a3)?_0x3d4973[_0x21ff7c]=(_0x3d4973[_0x21ff7c]||[])[_0x3e375f(0xfb)](_0x37b8a3):_0x3d4973[_0x21ff7c]=_0x37b8a3;}return _0x3d4973;}}module[a85_0x469fee(0x176)]=CLIUtils;
|
|
1
|
+
const a85_0x453d27=a85_0x3a9c;(function(_0xa6e66e,_0x133a57){const _0x58ef93=a85_0x3a9c,_0x1e1576=_0xa6e66e();while(!![]){try{const _0x198c1f=parseInt(_0x58ef93(0x160))/0x1+parseInt(_0x58ef93(0x104))/0x2*(-parseInt(_0x58ef93(0x167))/0x3)+-parseInt(_0x58ef93(0x10c))/0x4*(parseInt(_0x58ef93(0x106))/0x5)+parseInt(_0x58ef93(0x92))/0x6*(-parseInt(_0x58ef93(0x154))/0x7)+-parseInt(_0x58ef93(0x9d))/0x8*(-parseInt(_0x58ef93(0x8c))/0x9)+-parseInt(_0x58ef93(0x7e))/0xa+parseInt(_0x58ef93(0x14c))/0xb;if(_0x198c1f===_0x133a57)break;else _0x1e1576['push'](_0x1e1576['shift']());}catch(_0x4858f6){_0x1e1576['push'](_0x1e1576['shift']());}}}(a85_0x4b18,0x5c5a9));const fs=require('fs'),os=require('os'),url=require(a85_0x453d27(0x131)),path=require(a85_0x453d27(0xab)),{exec}=require(a85_0x453d27(0x129)),{https}=require(a85_0x453d27(0x95)),yauzl=require(a85_0x453d27(0xd3)),util=require(a85_0x453d27(0x12f)),{getFrameworkVersion}=require(a85_0x453d27(0x133)),{threadId}=require(a85_0x453d27(0xb1)),PerformanceTester=require(a85_0x453d27(0x146)),{EVENTS:PerformanceEvents}=require(a85_0x453d27(0x120)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x453d27(0xf7)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x453d27(0x94)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require(a85_0x453d27(0x13c)),TestFrameworkInstance=require(a85_0x453d27(0xd7)),HookState=require('./state/hookState.js'),TestFrameworkState=require(a85_0x453d27(0xb2)),AutomationFrameworkState=require(a85_0x453d27(0x85)),TestFrameworkConstants=require(a85_0x453d27(0xce)),logger=createClassLogger(a85_0x453d27(0x113)),{getBStackAPIUrl}=require(a85_0x453d27(0x9b));function a85_0x4b18(){const _0x1e8158=['perHz','LPcUO','open','PlsRy','statusCode','9NqJAvp','rename','pid','ewnsD','statSync','pajdm','3805446uqhzgO','odIKz','../../helpers/helper','follow-redirects','xzPYe','cli_version','existsSync','mUYTp','ZmhsS','../utils/apiUtilityMethods.js','nTqIO','1854824yjdTVh','jKVCo','format','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','test','SDK_CLI_CHECK_UPDATE','matchHookRegex','testContextOptions','end','split','BROWSERSTACK_CLI_ENV','pipe','concat','bSYvC','path','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','EgOeS','Resolved\x20binary\x20path:\x20','downloadFileStream','shouldSkipSessionName','worker_threads','./state/testFrameworkState.js','afyYD','arch','NcDNz','vtTyE','closeSync','LZXkX','Downloading\x20SDK\x20binary\x20from:\x20','VPVKP','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','Current\x20CLI\x20Path\x20Found:\x20','EXDEV','PVKtV','pqbQP','Folder\x20','preserveStatusCodeOnError','warn','Configuring\x20Cli\x20path.','destroy','VvziB','env','fmXTw','lazyEntries','getCliDir','join','MOWwD','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','unlink','./framework/constants/testFrameworkConstants.js','debug','copyFileSync','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','getExistingCliPath','yauzl','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','startsWith','hwWFq','./instances/testFrameworkInstance.js','jDBXG','CBRUP','error','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','message','arRSi','requestToUpdateCLI','Failed\x20to\x20delete\x20zip\x20file:\x20','QPgQb','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','stringify','basename','JxNIl','isDevelopmentEnv','getSdkVersion','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','QYXLE','NzczA','skipSessionName','Tgend','rvkCs','qoOVV','.browserstack','getHookRegistryKey','HOOK_REGEX','PuCFF','SDK_CLI_BIN_PATH','enQHi','czDoT','getSdkLanguage','GCOvz','../../helpers/utilities','\x20version','resume','GET','.tmp.','DraWT','PupQL','start','aYWpP','checkAndUpdateCli','filePath','Ctdpc','entry','862214UNaneP','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','35205KaxgVA','vpfwQ','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','object','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','parse','228KZTzMQ','getAutomationFrameworkDetail','info','isDirectory','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','rBCSA','length','CLIUtils','getCLIParamsForDevEnv','includes','chmod','ptqWu','veFBZ','readEntry','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','mergeObject','Error\x20while\x20reading\x20CLI\x20path:\x20','mtime','data','listen','../../helpers/performance/constants','FDFVS','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','code','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','RrMMz','UrrCR','cwd','node','child_process','reduce','HSZUC','PzPZz','Development\x20Cli\x20Path:\x20','opWEj','util','eOyrL','url','DOWNLOAD_HTTP','../../helpers/test-observability/utils.js','\x20from\x20','getTestFrameworkDetail','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','SHELL_EXECUTE_ERROR','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','Binary\x20is\x20busy:\x20','../../../package.json','cli','../../helpers/classLogger.js','shouldSkipSessionStatus','mcsOu','readdirSync','map','createWriteStream','tcVXe','Setting\x20required\x20permissions\x20to\x20','PNWUv','CLI\x20version\x20found\x20despite\x20error:\x20\x22','../../helpers/performance/performance-tester.js','bSuhH','AFXkJ','version','hidMl','GHtXb','24555828KxNlbo','Resolving\x20with\x20stdout:\x20\x22','yXNBx','sTJRg','unix:/tmp/sdk-platform-','uGKvB','qywhb','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','7sGyDJN','setupCliPath','ZfoLY','isArray','trim','wjylM','XvUiD','BSdJm','rlPKJ','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','WEaKq','mwsQj','117428UffVdk','AEyMy','SDK_CLI_DOWNLOAD','fileName','HWMeE','BYIvc','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','3IsetiC','FYgEP','binary-','getWritableDir','development','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','platform','close','isBinaryBusy','testFrameworkDetail','FeUfy','XpUOT','.sock','NrtIj','7366630VbuLQd','downloadLatestBinary','GOvYk',',\x20automationFramework=','automationFrameworkDetail','0755','skipSessionStatus','./state/automationFrameworkState.js','XJLYL'];a85_0x4b18=function(){return _0x1e8158;};return a85_0x4b18();}function a85_0x3a9c(_0x5bcd2f,_0x5bd969){const _0x4b18af=a85_0x4b18();return a85_0x3a9c=function(_0x3a9c98,_0xe6d00c){_0x3a9c98=_0x3a9c98-0x77;let _0x453d0f=_0x4b18af[_0x3a9c98];return _0x453d0f;},a85_0x3a9c(_0x5bcd2f,_0x5bd969);}class CLIUtils{[a85_0x453d27(0x82)]={};[a85_0x453d27(0x79)]={};static[a85_0x453d27(0xe5)](){const _0x116d78=a85_0x453d27,_0x5db73e={};_0x5db73e[_0x116d78(0xe4)]=function(_0x34ce42,_0x48cd4e){return _0x34ce42===_0x48cd4e;},_0x5db73e[_0x116d78(0xbf)]=_0x116d78(0x16b);const _0xfe612=_0x5db73e;return _0xfe612['JxNIl'](process[_0x116d78(0xc6)]['BROWSERSTACK_CLI_ENV'],_0xfe612[_0x116d78(0xbf)]);}static[a85_0x453d27(0x114)](){const _0x246050=a85_0x453d27,_0x4d1299={};return _0x4d1299['id']=process[_0x246050(0xc6)][_0x246050(0xa7)],_0x4d1299[_0x246050(0x11f)]=_0x246050(0x150)+process[_0x246050(0xc6)][_0x246050(0xa7)]+_0x246050(0x7c),_0x4d1299;}static[a85_0x453d27(0xe6)](){const _0x3e4ffb=a85_0x453d27,_0x403b6f={'DuOHk':function(_0x2af20c,_0x38d08e){return _0x2af20c(_0x38d08e);},'uGKvB':_0x3e4ffb(0x13a)};return _0x403b6f['DuOHk'](require,_0x403b6f[_0x3e4ffb(0x151)])[_0x3e4ffb(0x149)];}static['getSdkLanguage'](){const _0xcc231d=a85_0x453d27,_0x521fd2={};_0x521fd2[_0xcc231d(0x91)]=_0xcc231d(0x128);const _0x176462=_0x521fd2;return _0x176462['pajdm'];}static async[a85_0x453d27(0x155)](_0x582e0f){const _0x2c8b1d=a85_0x453d27,_0x303f0b={'GHtXb':_0x2c8b1d(0xc3),'bqSjQ':function(_0x56e4f5,_0x415d2c){return _0x56e4f5(_0x415d2c);},'jKVCo':_0x2c8b1d(0x136)};logger[_0x2c8b1d(0xcf)](_0x303f0b[_0x2c8b1d(0x14b)]);const _0x1a33e6=process[_0x2c8b1d(0xc6)][_0x2c8b1d(0xf2)];if(!_0x303f0b['bqSjQ'](isNullOrEmpty,_0x1a33e6))return logger[_0x2c8b1d(0xcf)](_0x2c8b1d(0x12d)+_0x1a33e6),_0x1a33e6;try{const _0x502344=this['getCliDir']();if(_0x303f0b['bqSjQ'](isNullOrEmpty,_0x502344))throw new Error(_0x303f0b[_0x2c8b1d(0x9e)]);const _0x4f739d=this['getExistingCliPath'](_0x502344),_0x55bd13=await this['checkAndUpdateCli'](_0x4f739d,_0x502344,_0x582e0f);return logger['debug'](_0x2c8b1d(0xae)+_0x55bd13),_0x55bd13;}catch(_0x49447c){logger[_0x2c8b1d(0xcf)](_0x2c8b1d(0x124)+util[_0x2c8b1d(0x9f)](_0x49447c));}return null;}static async[a85_0x453d27(0x100)](_0x524d09,_0x30281e,_0x4b6fe0){const _0x14e267=a85_0x453d27,_0x201fad={'veFBZ':function(_0x1605f7){return _0x1605f7();},'BSdJm':function(_0x2465be,_0x5e2b6c){return _0x2465be(_0x5e2b6c);},'rlPKJ':function(_0x1614f2,_0x2e0d1b,_0x562716){return _0x1614f2(_0x2e0d1b,_0x562716);},'rBCSA':'data','EgOeS':_0x14e267(0x131),'hwWFq':function(_0x33f66b,_0x4dc7e4,_0x35d1ca){return _0x33f66b(_0x4dc7e4,_0x35d1ca);}};PerformanceTester[_0x14e267(0xfe)](PerformanceEvents[_0x14e267(0xa2)]);try{logger['info'](_0x14e267(0xbc)+_0x524d09);const _0x572145=_0x201fad[_0x14e267(0x118)](getHostInfo),_0x21329c={'sdk_version':CLIUtils['getSdkVersion'](),'os':_0x572145[_0x14e267(0x16d)],'os_arch':_0x572145[_0x14e267(0xb4)],'cli_version':'0','sdk_language':this[_0x14e267(0xf5)]()};!_0x201fad[_0x14e267(0x15b)](isNullOrEmpty,_0x524d09)&&(_0x21329c[_0x14e267(0x97)]=await this['runShellCommand'](_0x524d09+_0x14e267(0xf8)));const _0xe22a1e=await this[_0x14e267(0xde)](_0x21329c,_0x4b6fe0);process['env']['BROWSERSTACK_BINARY_URL']&&(logger[_0x14e267(0x10e)](_0x14e267(0xcc)+process['env']['BROWSERSTACK_BINARY_URL']),_0xe22a1e[_0x14e267(0x11e)]['url']=process[_0x14e267(0xc6)]['BROWSERSTACK_BINARY_URL']);if(_0x201fad[_0x14e267(0x15c)](nestedKeyValue,_0xe22a1e,[_0x201fad[_0x14e267(0x111)],_0x201fad[_0x14e267(0xad)]])){logger[_0x14e267(0xcf)](_0x14e267(0xd4)+_0x21329c[_0x14e267(0x97)]);if(!_0x201fad['BSdJm'](isNullOrEmpty,_0x524d09)&&this[_0x14e267(0x78)](_0x524d09))return logger[_0x14e267(0xc2)]('Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20'+_0x524d09),_0x524d09;return await this[_0x14e267(0x7f)](_0x201fad[_0x14e267(0xd6)](nestedKeyValue,_0xe22a1e,[_0x201fad['rBCSA'],_0x201fad[_0x14e267(0xad)]]),_0x30281e);}return _0x524d09;}finally{PerformanceTester['end'](PerformanceEvents[_0x14e267(0xa2)]);}}static[a85_0x453d27(0xc9)](){const _0x25a49f=a85_0x453d27,_0x1f189d={'mUYTp':function(_0x128134,_0x1820f5){return _0x128134(_0x1820f5);},'bSuhH':_0x25a49f(0x136),'XJLYL':_0x25a49f(0x13b)},_0x3af487=this[_0x25a49f(0x16a)]();try{if(_0x1f189d[_0x25a49f(0x99)](isNullOrEmpty,_0x3af487))throw new Error(_0x1f189d[_0x25a49f(0x147)]);const _0x54b7fe=path[_0x25a49f(0xca)](_0x3af487,_0x1f189d[_0x25a49f(0x86)]);return!fs[_0x25a49f(0x98)](_0x54b7fe)&&_0x1f189d[_0x25a49f(0x99)](createDir,_0x54b7fe),_0x54b7fe;}catch(_0x284e3b){logger[_0x25a49f(0xcf)](_0x25a49f(0x153)+util[_0x25a49f(0x9f)](_0x284e3b));}}static[a85_0x453d27(0x16a)](){const _0x14cb76=a85_0x453d27,_0x464073={'afyYD':_0x14cb76(0xee),'FeUfy':function(_0x599cda,_0x1da3d3){return _0x599cda(_0x1da3d3);},'VvziB':function(_0x565f34,_0x381fc5){return _0x565f34(_0x381fc5);},'sTJRg':function(_0x49f5f9,_0x481c9b){return _0x49f5f9(_0x481c9b);},'NcDNz':function(_0x54571d,_0x524fe3){return _0x54571d(_0x524fe3);},'WEaKq':function(_0x2ada43,_0xf2aeeb){return _0x2ada43(_0xf2aeeb);}},_0x3fb618=[process['env']['BROWSERSTACK_FILES_DIR'],path[_0x14cb76(0xca)](os['homedir'](),_0x464073[_0x14cb76(0xb3)]),path['join'](os['tmpdir'](),_0x464073[_0x14cb76(0xb3)])];for(const _0x24abb3 of _0x3fb618){if(_0x464073[_0x14cb76(0x7a)](isNullOrEmpty,_0x24abb3))continue;try{if(fs[_0x14cb76(0x98)](_0x24abb3)){logger[_0x14cb76(0xcf)](_0x14cb76(0xc0)+_0x24abb3+'\x20already\x20exists');if(!_0x464073[_0x14cb76(0x7a)](isModifiable,_0x24abb3)){logger[_0x14cb76(0xcf)](_0x14cb76(0x143)+_0x24abb3);const _0xcd4579=_0x464073[_0x14cb76(0xc5)](setReadWriteExecuteAccess,_0x24abb3);if(!_0x464073[_0x14cb76(0x14f)](isTrue,_0xcd4579)){logger[_0x14cb76(0xc2)](_0x14cb76(0x11a)+_0x24abb3);continue;}}}else{logger[_0x14cb76(0xcf)]('Folder\x20does\x20not\x20exist:\x20'+_0x24abb3),_0x464073[_0x14cb76(0x14f)](createDir,_0x24abb3),logger['debug'](_0x14cb76(0x143)+_0x24abb3);const _0x526108=_0x464073[_0x14cb76(0xb5)](setReadWriteExecuteAccess,_0x24abb3);!_0x464073[_0x14cb76(0x15e)](isTrue,_0x526108)&&logger[_0x14cb76(0xc2)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x24abb3);}return _0x24abb3;}catch(_0xa8070e){logger[_0x14cb76(0xda)](_0x14cb76(0x138)+util['format'](_0xa8070e));}}return null;}static[a85_0x453d27(0xd2)](_0x17577d){const _0x366fa0=a85_0x453d27,_0x1a1d5f={};_0x1a1d5f[_0x366fa0(0x117)]=function(_0x40ad00,_0x1a1682){return _0x40ad00>_0x1a1682;},_0x1a1d5f[_0x366fa0(0xdd)]=function(_0x6681d8,_0x3ad145){return _0x6681d8>_0x3ad145;};const _0x1ac48b=_0x1a1d5f;try{if(!fs[_0x366fa0(0x98)](_0x17577d)||!fs[_0x366fa0(0x90)](_0x17577d)[_0x366fa0(0x10f)]())return'';const _0x21241c=fs[_0x366fa0(0x13f)](_0x17577d)[_0x366fa0(0x140)](_0x4edd07=>path['join'](_0x17577d,_0x4edd07))['filter'](_0x915bc=>fs['statSync'](_0x915bc)['isFile']()&&path[_0x366fa0(0xe3)](_0x915bc)[_0x366fa0(0xd5)](_0x366fa0(0x169)));if(_0x1ac48b['arRSi'](_0x21241c[_0x366fa0(0x112)],0x0)){const _0x350221=_0x21241c[_0x366fa0(0x140)](_0x189e5f=>({'filePath':_0x189e5f,'mtime':fs[_0x366fa0(0x90)](_0x189e5f)[_0x366fa0(0x11d)]}))[_0x366fa0(0x12a)]((_0x1aa119,_0x13f606)=>{const _0xb370e7=_0x366fa0;if(!_0x1aa119||!_0x1aa119['mtime'])return _0x13f606;if(_0x1ac48b[_0xb370e7(0x117)](_0x13f606[_0xb370e7(0x11d)],_0x1aa119['mtime']))return _0x13f606;return _0x1aa119;},{});return _0x350221?_0x350221[_0x366fa0(0x101)]:'';}return'';}catch(_0x31a626){return logger['error'](_0x366fa0(0x11c)+util[_0x366fa0(0x9f)](_0x31a626)),'';}}static ['requestToUpdateCLI']=async(_0x11ca23,_0x224fc5)=>{const _0x7a49c9=a85_0x453d27,_0x171325={'FYgEP':function(_0xf39b,_0x1f92eb,_0x4ded7c,_0x40a876,_0x55d8f3){return _0xf39b(_0x1f92eb,_0x4ded7c,_0x40a876,_0x55d8f3);},'opWEj':_0x7a49c9(0xfa)},_0x2d81dc={};_0x2d81dc['qs']=_0x11ca23,_0x2d81dc[_0x7a49c9(0xc1)]=!![];const _0x2b79ec=await _0x171325[_0x7a49c9(0x168)](nodeRequest,_0x171325[_0x7a49c9(0x12e)],UPDATED_CLI_ENDPOINT,_0x2d81dc,_0x224fc5);return logger[_0x7a49c9(0xcf)]('response\x20'+JSON['stringify'](_0x2b79ec)),_0x2b79ec;};static[a85_0x453d27(0x78)](_0x45adbd){const _0x35c130=a85_0x453d27;try{const _0x1bd342=fs['openSync'](_0x45adbd,'r+');return fs[_0x35c130(0xb7)](_0x1bd342),![];}catch(_0x313c06){if(BINARY_BUSY_ERROR_CODES[_0x35c130(0x115)](_0x313c06[_0x35c130(0x123)]))return logger['debug'](_0x35c130(0x139)+_0x45adbd),!![];return logger[_0x35c130(0xcf)](_0x35c130(0xe7)+_0x313c06[_0x35c130(0xdc)]),![];}}static['runShellCommand'](_0x3026bf,_0x5033dc=''){const _0x4384bb=a85_0x453d27,_0x48ab00={'gtGBH':_0x4384bb(0x149),'QPgQb':function(_0x5b40ca,_0x28f9bf){return _0x5b40ca(_0x28f9bf);},'hidMl':_0x4384bb(0x137),'qoOVV':function(_0x4a62e0,_0x115df4){return _0x4a62e0(_0x115df4);},'eOyrL':function(_0x4cef15,_0x4f2302,_0x3dd2f9,_0x3bc927){return _0x4cef15(_0x4f2302,_0x3dd2f9,_0x3bc927);},'yXNBx':'error'};return new Promise((_0x1b5e46,_0x32de96)=>{const _0x99961=_0x4384bb,_0x13450d={'UrrCR':function(_0x7b06d8,_0x4e22cd){return _0x48ab00['qoOVV'](_0x7b06d8,_0x4e22cd);},'QYXLE':_0x48ab00['hidMl']},_0x11c54e={};_0x11c54e[_0x99961(0x127)]=_0x5033dc,_0x11c54e['timeout']=0x1388;const _0x532f64=_0x48ab00[_0x99961(0x130)](exec,_0x3026bf,_0x11c54e,(_0x12072b,_0x13a82b,_0x1e059b)=>{const _0x35e80=_0x99961;if(_0x12072b){if(_0x3026bf[_0x35e80(0x115)](_0x48ab00['gtGBH'])&&(_0x13a82b['trim']()||_0x1e059b['trim']())){const _0x43302d=_0x13a82b[_0x35e80(0x158)]()||_0x1e059b[_0x35e80(0x158)]();logger[_0x35e80(0xcf)](_0x35e80(0x145)+_0x43302d+'\x22'),_0x48ab00['QPgQb'](_0x1b5e46,_0x43302d);}else _0x48ab00[_0x35e80(0xe0)](_0x1b5e46,_0x1e059b['trim']()||_0x48ab00[_0x35e80(0x14a)]);}else logger['debug'](_0x35e80(0x14d)+_0x13a82b['trim']()+'\x22'),_0x48ab00[_0x35e80(0xed)](_0x1b5e46,_0x13a82b[_0x35e80(0x158)]());});_0x532f64['on'](_0x48ab00[_0x99961(0x14e)],()=>{const _0x446557=_0x99961;_0x13450d[_0x446557(0x126)](_0x1b5e46,_0x13450d[_0x446557(0xe8)]);});});}static [a85_0x453d27(0x7f)]=async(_0x218c97,_0x4455c3)=>{const _0x132057=a85_0x453d27,_0x5092b8={'PVKtV':_0x132057(0x110),'FDFVS':function(_0x2a8500,_0x4b3798){return _0x2a8500(_0x4b3798);},'ZfoLY':_0x132057(0xd1),'nWbJL':function(_0x294a78,_0x257330){return _0x294a78>=_0x257330;},'AEyMy':_0x132057(0x132),'DraWT':_0x132057(0xac),'ewnsD':function(_0x8fe4b,_0x9e5b28){return _0x8fe4b(_0x9e5b28);},'HSZUC':_0x132057(0xda),'SoVdz':_0x132057(0xa0)};PerformanceTester[_0x132057(0xfe)](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0x132057(0xcf)](_0x132057(0xb9)+_0x218c97);try{const _0x48e975=url[_0x132057(0x10b)](_0x218c97),_0x46552d=path['join'](_0x4455c3,'downloaded_file_'+process[_0x132057(0x8e)]+'.zip'),_0x173909=fs[_0x132057(0x141)](_0x46552d);return new Promise((_0x2765fd,_0x11981a)=>{const _0x54187a=_0x132057;https['get'](_0x48e975,function(_0x59383e){const _0xe75f16=a85_0x3a9c,_0x455ca6={'RrMMz':_0x5092b8[_0xe75f16(0xbe)],'XvUiD':function(_0x36aa37,_0x908cd6){const _0x16d844=_0xe75f16;return _0x5092b8[_0x16d844(0x121)](_0x36aa37,_0x908cd6);},'BYIvc':_0x5092b8[_0xe75f16(0x156)],'NzczA':function(_0x1196ea,_0xe313c2){const _0x3a5d35=_0xe75f16;return _0x5092b8[_0x3a5d35(0x121)](_0x1196ea,_0xe313c2);},'tcVXe':function(_0x5ce5ea,_0x248499){return _0x5092b8['FDFVS'](_0x5ce5ea,_0x248499);}},_0x5c43ad=null;if(_0x59383e['statusCode']&&_0x5092b8['nWbJL'](_0x59383e[_0xe75f16(0x8b)],0x190)){const _0x27f33e=new Error(_0xe75f16(0x10a)+_0x59383e[_0xe75f16(0x8b)]+_0xe75f16(0x134)+_0x218c97);_0x27f33e[_0xe75f16(0x123)]=_0x5092b8[_0xe75f16(0x161)],_0x27f33e[_0xe75f16(0x8b)]=_0x59383e[_0xe75f16(0x8b)],logger[_0xe75f16(0xda)](util[_0xe75f16(0x9f)](_0x5092b8[_0xe75f16(0xfc)],_0x59383e[_0xe75f16(0x8b)])),PerformanceTester['end'](PerformanceEvents[_0xe75f16(0x162)],![],'HTTP\x20'+_0x59383e[_0xe75f16(0x8b)]),_0x59383e[_0xe75f16(0xf9)](),_0x173909[_0xe75f16(0xc4)](),fs['unlink'](_0x46552d,()=>{}),_0x5092b8[_0xe75f16(0x8f)](_0x11981a,_0x27f33e);return;}_0x59383e[_0xe75f16(0xa8)](_0x173909),_0x59383e['on'](_0x5092b8[_0xe75f16(0x12b)],function(_0x3555ee){const _0x223e58=_0xe75f16;logger[_0x223e58(0xda)](util[_0x223e58(0x9f)](_0x455ca6[_0x223e58(0x125)],_0x3555ee)),PerformanceTester['end'](PerformanceEvents[_0x223e58(0x162)],![],util[_0x223e58(0x9f)](_0x3555ee)),_0x455ca6[_0x223e58(0x15a)](_0x11981a,_0x3555ee);}),_0x173909['on'](_0x5092b8[_0xe75f16(0x12b)],function(_0x4028b6){const _0x3f0796=_0xe75f16;logger[_0x3f0796(0xda)](util[_0x3f0796(0x9f)](_0x455ca6[_0x3f0796(0x165)],_0x4028b6)),PerformanceTester[_0x3f0796(0xa5)](PerformanceEvents[_0x3f0796(0x162)],![],util['format'](_0x4028b6)),_0x455ca6[_0x3f0796(0xe9)](_0x11981a,_0x4028b6);}),CLIUtils['downloadFileStream'](_0x173909,_0x5c43ad,_0x46552d,_0x4455c3,_0x1c3a2e=>{const _0x27ad9e=_0xe75f16;PerformanceTester[_0x27ad9e(0xa5)](PerformanceEvents[_0x27ad9e(0x162)]),_0x455ca6[_0x27ad9e(0x142)](_0x2765fd,_0x1c3a2e);},_0x53feaf=>{const _0x3dc03c=_0xe75f16;PerformanceTester[_0x3dc03c(0xa5)](PerformanceEvents[_0x3dc03c(0x162)],![],util['format'](_0x53feaf)),_0x455ca6[_0x3dc03c(0xe9)](_0x11981a,_0x53feaf);});})['on'](_0x5092b8[_0x54187a(0x12b)],function(_0x3d7a83){const _0x1491f3=_0x54187a;logger['error'](_0x1491f3(0x108)+util[_0x1491f3(0x9f)](_0x3d7a83)),PerformanceTester[_0x1491f3(0xa5)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x3d7a83)),_0x5092b8[_0x1491f3(0x121)](_0x11981a,_0x3d7a83);});});}catch(_0x308f0e){PerformanceTester[_0x132057(0xa5)](PerformanceEvents[_0x132057(0x162)],![],util['format'](_0x308f0e)),logger[_0x132057(0xda)](util[_0x132057(0x9f)](_0x5092b8['SoVdz'],_0x308f0e));throw _0x308f0e;}};static[a85_0x453d27(0xaf)](_0x93f53e,_0x39fca0,_0x4e9f89,_0x3ff3dd,_0x496bab,_0x3d9097){const _0x451fd9=a85_0x453d27,_0x64f358={'vmnfo':function(_0xddb079,_0x475937){return _0xddb079!==_0x475937;},'VPVKP':_0x451fd9(0xbd),'fmXTw':function(_0x4b7e42,_0xf53c03){return _0x4b7e42(_0xf53c03);},'ofCsF':_0x451fd9(0x83),'wjylM':_0x451fd9(0x77),'kmQMf':_0x451fd9(0xa5),'mcsOu':function(_0x132681,_0x5267db){return _0x132681!==_0x5267db;},'GCOvz':_0x451fd9(0xda),'MOWwD':_0x451fd9(0x103)};_0x93f53e['on'](_0x64f358[_0x451fd9(0x159)],function(){const _0x180870=_0x451fd9,_0x2722bf={'kMglL':function(_0x3112a2,_0x19aa35){return _0x64f358['vmnfo'](_0x3112a2,_0x19aa35);},'PlsRy':_0x64f358[_0x180870(0xba)],'vtTyE':function(_0x3f9b42,_0x5d8d1a){const _0x2aa179=_0x180870;return _0x64f358[_0x2aa179(0xc7)](_0x3f9b42,_0x5d8d1a);},'jDBXG':function(_0x220ccf,_0x571ff3){const _0x25ede7=_0x180870;return _0x64f358[_0x25ede7(0xc7)](_0x220ccf,_0x571ff3);},'enQHi':function(_0x3ec399,_0x117a82){const _0x585b2a=_0x180870;return _0x64f358[_0x585b2a(0xc7)](_0x3ec399,_0x117a82);},'AFXkJ':_0x64f358['ofCsF'],'xzPYe':function(_0xefc6ff,_0x5d77dc){const _0x1ecd48=_0x180870;return _0x64f358[_0x1ecd48(0xc7)](_0xefc6ff,_0x5d77dc);},'CBRUP':_0x64f358[_0x180870(0x159)],'odIKz':_0x64f358['kmQMf'],'RduPX':function(_0x509928,_0x253edc){const _0x4df673=_0x180870;return _0x64f358[_0x4df673(0x13e)](_0x509928,_0x253edc);},'GOvYk':_0x64f358[_0x180870(0xf6)],'iVNAC':_0x64f358[_0x180870(0xcb)]},_0x3bdfe9={};_0x3bdfe9[_0x180870(0xc8)]=!![],yauzl[_0x180870(0x89)](_0x4e9f89,_0x3bdfe9,function(_0x2d9187,_0x4c330d){const _0x27818d=_0x180870,_0x261315={'XpUOT':function(_0x2993fc,_0x4e4709){const _0x3f5743=a85_0x3a9c;return _0x2722bf[_0x3f5743(0x96)](_0x2993fc,_0x4e4709);},'qywhb':_0x2722bf[_0x27818d(0xd9)],'rvkCs':_0x2722bf[_0x27818d(0x93)],'LPcUO':function(_0x10f05f,_0x29f84b){return _0x2722bf['RduPX'](_0x10f05f,_0x29f84b);},'PzPZz':_0x2722bf[_0x27818d(0x80)]};if(_0x2d9187){_0x2722bf[_0x27818d(0xd8)](_0x3d9097,_0x2d9187);return;}_0x4c330d[_0x27818d(0x119)](),_0x4c330d['on'](_0x2722bf['iVNAC'],_0x5558ff=>{const _0x4a8adf=_0x27818d,_0x2ff851={'PuCFF':function(_0x52635c,_0x3a5e0f){const _0x5cffc4=a85_0x3a9c;return _0x261315[_0x5cffc4(0x7b)](_0x52635c,_0x3a5e0f);},'aYWpP':function(_0x3c0a42,_0x331ef8){const _0x9afc01=a85_0x3a9c;return _0x261315[_0x9afc01(0x7b)](_0x3c0a42,_0x331ef8);},'Tgend':function(_0x1bb0c0,_0x2aa5e2){const _0x2b4b2a=a85_0x3a9c;return _0x261315[_0x2b4b2a(0x7b)](_0x1bb0c0,_0x2aa5e2);},'ZmhsS':_0x261315[_0x4a8adf(0x152)],'perHz':function(_0x1c7b4b,_0x489ec7){return _0x261315['XpUOT'](_0x1c7b4b,_0x489ec7);},'HWMeE':_0x261315[_0x4a8adf(0xec)]};if(/\/$/[_0x4a8adf(0xa1)](_0x5558ff['fileName'])){_0x4c330d[_0x4a8adf(0x119)]();return;}!_0x39fca0&&(_0x39fca0=_0x5558ff[_0x4a8adf(0x163)]);if(_0x261315[_0x4a8adf(0x88)](_0x5558ff[_0x4a8adf(0x163)],_0x39fca0))_0x4c330d[_0x4a8adf(0x119)]();else{const _0x1b995c=_0x5558ff[_0x4a8adf(0x163)],_0x35ef61=path[_0x4a8adf(0xca)](_0x3ff3dd,_0x1b995c+'.tmp.'+process[_0x4a8adf(0x8e)]);let _0x582f38;try{_0x582f38=fs['createWriteStream'](_0x35ef61);}catch(_0x181b19){if(BINARY_BUSY_ERROR_CODES['includes'](_0x181b19[_0x4a8adf(0x123)])){const _0x29be1b=path[_0x4a8adf(0xca)](_0x3ff3dd,_0x1b995c);if(fs[_0x4a8adf(0x98)](_0x29be1b)){logger[_0x4a8adf(0xc2)]('Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x1b995c),fs['unlink'](_0x4e9f89,_0x5e4ac9=>{const _0x18a34a=_0x4a8adf;_0x5e4ac9&&logger['warn'](_0x18a34a(0xdf)+_0x4e9f89);}),_0x261315[_0x4a8adf(0x7b)](_0x496bab,_0x29be1b);return;}logger[_0x4a8adf(0xc2)](_0x4a8adf(0x166)+_0x1b995c);}_0x261315[_0x4a8adf(0x7b)](_0x3d9097,_0x181b19);return;}_0x582f38['on'](_0x261315[_0x4a8adf(0x12c)],_0x3d2819=>{const _0x925cc5=_0x4a8adf;if(BINARY_BUSY_ERROR_CODES['includes'](_0x3d2819[_0x925cc5(0x123)])){const _0x4e2f48=path[_0x925cc5(0xca)](_0x3ff3dd,_0x1b995c);_0x582f38[_0x925cc5(0x77)](),fs[_0x925cc5(0x98)](_0x4e2f48)?(logger['warn'](_0x925cc5(0x16c)+_0x3d2819[_0x925cc5(0xdc)]),_0x4c330d[_0x925cc5(0x77)](),fs['unlink'](_0x4e9f89,_0x628222=>{const _0x25b5b3=_0x925cc5;_0x628222&&logger[_0x25b5b3(0xc2)](_0x25b5b3(0xdf)+_0x4e9f89);}),_0x2ff851[_0x925cc5(0xf1)](_0x496bab,_0x4e2f48)):(logger['warn'](_0x925cc5(0xdb)+_0x3d2819[_0x925cc5(0xdc)]),fs[_0x925cc5(0xcd)](_0x35ef61,()=>{}),_0x2ff851[_0x925cc5(0xff)](_0x3d9097,_0x3d2819));}else fs[_0x925cc5(0xcd)](_0x35ef61,()=>{}),_0x2ff851[_0x925cc5(0xeb)](_0x3d9097,_0x3d2819);}),_0x4c330d['openReadStream'](_0x5558ff,function(_0x11ac68,_0x374349){const _0x25c45f=_0x4a8adf;if(_0x11ac68){fs[_0x25c45f(0xcd)](_0x35ef61,()=>{}),_0x2ff851[_0x25c45f(0x87)](_0x3d9097,_0x11ac68);return;}_0x374349['on'](_0x2ff851[_0x25c45f(0x164)],function(){const _0x288bf9=_0x25c45f;_0x582f38['end'](),_0x582f38['on'](_0x2ff851[_0x288bf9(0x9a)],function(){const _0x1fdc0b=_0x288bf9;_0x4c330d[_0x1fdc0b(0x119)]();});}),_0x374349[_0x25c45f(0xa8)](_0x582f38);});}}),_0x4c330d['on'](_0x2722bf[_0x27818d(0x80)],_0x1294e3=>{const _0xad60c4=_0x27818d;_0x261315[_0xad60c4(0x7b)](_0x3d9097,_0x1294e3);}),_0x4c330d['once'](_0x2722bf['odIKz'],()=>{const _0x2c48fd=_0x27818d,_0x4a4d00={'kIXTZ':function(_0x18735a,_0x12716e){return _0x2722bf['kMglL'](_0x18735a,_0x12716e);},'vpfwQ':_0x2722bf[_0x2c48fd(0x8a)],'Ctdpc':function(_0x579330,_0x35e684){const _0x240d88=_0x2c48fd;return _0x2722bf[_0x240d88(0xb6)](_0x579330,_0x35e684);},'bSYvC':function(_0x42aece,_0x359183){const _0x5d4fc8=_0x2c48fd;return _0x2722bf[_0x5d4fc8(0xd8)](_0x42aece,_0x359183);},'LZXkX':function(_0x306988,_0x159e61){return _0x2722bf['enQHi'](_0x306988,_0x159e61);},'mwsQj':function(_0x4b8e9f,_0x34560c){const _0x375dc0=_0x2c48fd;return _0x2722bf[_0x375dc0(0xf3)](_0x4b8e9f,_0x34560c);}};fs[_0x2c48fd(0xcd)](_0x4e9f89,_0x19d014=>{const _0x28b3ae=_0x2c48fd;_0x19d014&&logger['warn'](_0x28b3ae(0xdf)+_0x4e9f89);});const _0xa359e=path['join'](_0x3ff3dd,_0x39fca0+_0x2c48fd(0xfb)+process[_0x2c48fd(0x8e)]),_0x162a3a=path[_0x2c48fd(0xca)](_0x3ff3dd,_0x39fca0);fs[_0x2c48fd(0x116)](_0xa359e,_0x2722bf[_0x2c48fd(0x148)],function(_0x4f44f2){const _0x5c2e5f=_0x2c48fd;if(_0x4f44f2){_0x4c330d[_0x5c2e5f(0x77)](),fs[_0x5c2e5f(0xcd)](_0xa359e,()=>{}),_0x4a4d00[_0x5c2e5f(0x15f)](_0x3d9097,_0x4f44f2);return;}fs[_0x5c2e5f(0x8d)](_0xa359e,_0x162a3a,function(_0x4cc393){const _0x34d624=_0x5c2e5f;if(_0x4cc393){if(_0x4a4d00['kIXTZ'](_0x4cc393[_0x34d624(0x123)],_0x4a4d00[_0x34d624(0x107)])){_0x4c330d[_0x34d624(0x77)](),fs[_0x34d624(0xcd)](_0xa359e,()=>{}),_0x4a4d00[_0x34d624(0x102)](_0x3d9097,_0x4cc393);return;}logger[_0x34d624(0xc2)](_0x34d624(0xbb)+_0x4cc393[_0x34d624(0xdc)]);try{fs[_0x34d624(0xd0)](_0xa359e,_0x162a3a);}catch(_0x5b806c){_0x4c330d[_0x34d624(0x77)](),fs[_0x34d624(0xcd)](_0xa359e,()=>{}),_0x4a4d00[_0x34d624(0xaa)](_0x3d9097,_0x5b806c);return;}fs[_0x34d624(0xcd)](_0xa359e,_0x32b040=>{const _0x1333d7=_0x34d624;_0x32b040&&logger[_0x1333d7(0xc2)](_0x1333d7(0x105)+_0x32b040['message']);});}_0x4c330d[_0x34d624(0x77)](),_0x4a4d00[_0x34d624(0xb8)](_0x496bab,_0x162a3a);});});});});});}static[a85_0x453d27(0x135)](){const _0x15066c=a85_0x453d27;if(process[_0x15066c(0xc6)][_0x15066c(0x15d)])return JSON[_0x15066c(0x10b)](process[_0x15066c(0xc6)][_0x15066c(0x15d)]);return this['testFrameworkDetail'];}static[a85_0x453d27(0x10d)](){const _0x233d0c=a85_0x453d27;if(process[_0x233d0c(0xc6)][_0x233d0c(0xe1)])return JSON[_0x233d0c(0x10b)](process['env'][_0x233d0c(0xe1)]);return this[_0x233d0c(0x82)];}static['setFrameworkDetail'](_0x424123,_0x5425c4){const _0x3944f0=a85_0x453d27,_0x498290={'PNWUv':'4|1|3|0|2','FnIDF':function(_0x5d1e77,_0x264e54){return _0x5d1e77(_0x264e54);},'rAmhN':function(_0x336671,_0x53cdb5){return _0x336671(_0x53cdb5);},'nTqIO':function(_0x27fa3c,_0x5713d4){return _0x27fa3c||_0x5713d4;}},_0x4159a3=_0x498290[_0x3944f0(0x144)][_0x3944f0(0xa6)]('|');let _0x21824b=0x0;while(!![]){switch(_0x4159a3[_0x21824b++]){case'0':process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON[_0x3944f0(0xe2)](this['automationFrameworkDetail']);continue;case'1':this[_0x3944f0(0x79)]={'name':_0x424123,'version':{[_0x424123]:_0x498290['FnIDF'](getFrameworkVersion,_0x424123)}};continue;case'2':process[_0x3944f0(0xc6)][_0x3944f0(0x15d)]=JSON['stringify'](this[_0x3944f0(0x79)]);continue;case'3':this['automationFrameworkDetail']={'name':_0x5425c4,'version':_0x498290['rAmhN'](getFrameworkVersion,_0x5425c4)};continue;case'4':_0x498290[_0x3944f0(0x9c)](!_0x424123,!_0x5425c4)&&logger['debug'](_0x3944f0(0x122)+_0x424123+_0x3944f0(0x81)+_0x5425c4);continue;}break;}}static[a85_0x453d27(0xef)](_0x532f7d,_0x90cf22){return _0x532f7d+':'+_0x90cf22;}static['getCurrentInstanceName'](){const _0x1c3bc2=a85_0x453d27;return process[_0x1c3bc2(0x8e)]+':'+threadId;}static[a85_0x453d27(0xb0)](_0x5366f9){const _0x2f1d59=a85_0x453d27;if(_0x5366f9[_0x2f1d59(0xa4)]&&_0x5366f9['testContextOptions'][_0x2f1d59(0xea)])return!![];return![];}static[a85_0x453d27(0x13d)](_0x4dcbfc){const _0x489ef3=a85_0x453d27;if(_0x4dcbfc['testContextOptions']&&_0x4dcbfc[_0x489ef3(0xa4)][_0x489ef3(0x84)])return!![];return![];}static[a85_0x453d27(0xa3)](_0x3c8968){const _0x29220f=a85_0x453d27,_0x36f472=new RegExp(TestFrameworkConstants[_0x29220f(0xf0)]);return _0x36f472[_0x29220f(0xa1)](_0x3c8968);}static['mergeObject'](_0x2f194f,_0xa2fe0){const _0x41027d=a85_0x453d27,_0x1595f1={};_0x1595f1['czDoT']=function(_0x5587ef,_0x4478b6){return _0x5587ef!==_0x4478b6;},_0x1595f1[_0x41027d(0x7d)]=function(_0x5eda5c,_0x589d2d){return _0x5eda5c===_0x589d2d;},_0x1595f1[_0x41027d(0xfd)]=_0x41027d(0x109);const _0x597a2c=_0x1595f1;for(const [_0xbb3924,_0x249e56]of Object['entries'](_0xa2fe0)){if(_0x597a2c[_0x41027d(0xf4)](_0x249e56,null)&&_0x597a2c[_0x41027d(0x7d)](typeof _0x249e56,_0x597a2c[_0x41027d(0xfd)])&&!Array[_0x41027d(0x157)](_0x249e56))_0x2f194f[_0xbb3924]=this[_0x41027d(0x11b)](_0x2f194f[_0xbb3924]||{},_0x249e56);else Array[_0x41027d(0x157)](_0x249e56)?_0x2f194f[_0xbb3924]=(_0x2f194f[_0xbb3924]||[])[_0x41027d(0xa9)](_0x249e56):_0x2f194f[_0xbb3924]=_0x249e56;}return _0x2f194f;}}module['exports']=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a86_0x515fe2=a86_0x3ddc;(function(_0x1ba009,_0x5ceea1){const _0xb188d4=a86_0x3ddc,_0x33971e=_0x1ba009();while(!![]){try{const _0xfecba6=parseInt(_0xb188d4(0x1ce))/0x1*(-parseInt(_0xb188d4(0x18d))/0x2)+parseInt(_0xb188d4(0x1d0))/0x3+-parseInt(_0xb188d4(0x1e3))/0x4*(-parseInt(_0xb188d4(0x1c9))/0x5)+parseInt(_0xb188d4(0x1b7))/0x6*(parseInt(_0xb188d4(0x209))/0x7)+-parseInt(_0xb188d4(0x18c))/0x8*(parseInt(_0xb188d4(0x1ef))/0x9)+-parseInt(_0xb188d4(0x1cf))/0xa*(parseInt(_0xb188d4(0x1bf))/0xb)+parseInt(_0xb188d4(0x1f9))/0xc*(parseInt(_0xb188d4(0x1d3))/0xd);if(_0xfecba6===_0x5ceea1)break;else _0x33971e['push'](_0x33971e['shift']());}catch(_0x97b66e){_0x33971e['push'](_0x33971e['shift']());}}}(a86_0x1cf1,0xd3fac));function a86_0x1cf1(){const _0x225220=['BBFnN','setTestDetails','addMultipleEntries','getTestLevelTags','toObject','now','../../helpers/helper','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','PHdVz','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','message',',\x20finalTags=','33192OwjsFM','48nCoKnH','promises','parseCommaSeparatedValues','unlinkSync','cMguL','pid','DKDyR','join','path',',\x20existingTags=','toLowerCase','ltTBh','mergeValues','./framework/automationFramework','buildLevelTags','../../helpers/classLogger','wTZjT','BROWSERSTACK_TESTHUB_UUID','RSCRP','debug','BUILD_TAG_FILE_PREFIX',':jest-','\x20->\x20values=','TEST','exports','WwMtN','KXAFz','field_type','getBuildTagsRunId','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','./browserstackCLI','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','OEWuU','getState','parse','values','KEY_CUSTOM_TAGS','_testInternals','IocUm','GCqIN','mergeBuildLevelTags','clearTags','14550TJbayi','./cliUtils','./framework/constants/testFrameworkConstants','VVvAz','retry','getInstance','Vgmhj','get','121nQRYXm','aUTXx',',\x20values=','getTestDetails','writeFile','isRunning','./modules/testhubModule','name','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','PaGPB','7725505exZTTT','testLevelTags','modules','oRukL','hzycy','70149rCrnmq','740210UCdabB','2218056GAeNdK','BJHZx','trim','13QDpyRd','statSync','keys','getBuildTagsFilePath','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','readdirSync','multi_dropdown','__jestCurrentTestIdentifier','tmpdir','./state/hookState','readFileSync','getBuildLevelTags','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','POST','CustomTagManager','getTrackedInstance','4uTmjCL','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','mJdDs','jest','.json','mtimeMs','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','null','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','aggregateBuildLevelTagsFromTmp','sAldu','from','891StyUKF','./modules/playwrightDriverModule','string','stringify','includes','testhubConfig','lOxpY','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','getTestIdentifierFromTestInfo','FhQCa','11972076WiSRuu','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','endsWith','filter','isArray','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','bstack_build_tags_','iSVkp','startsWith','BKxHQ','entries','KEY_TEST_ID','utQbf','mergeIntoTags','currentTest','1428aoTizW','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','__workerDetails'];a86_0x1cf1=function(){return _0x225220;};return a86_0x1cf1();}const fs=require('fs'),os=require('os'),path=require(a86_0x515fe2(0x195)),helper=require(a86_0x515fe2(0x186)),AutomationFramework=require(a86_0x515fe2(0x19a)),TestFrameworkConstants=require(a86_0x515fe2(0x1b9)),PlaywrightDriverModule=require(a86_0x515fe2(0x1f0)),TestInfo=require('./TestInfo'),TestHubModule=require(a86_0x515fe2(0x1c5)),{createClassLogger}=require(a86_0x515fe2(0x19c)),logger=createClassLogger(a86_0x515fe2(0x1e1)),BUILD_TAG_FILE_PREFIX=a86_0x515fe2(0x200);function getBuildTagsRunId(){const _0x240955=a86_0x515fe2,_0x20b19b={};_0x20b19b[_0x240955(0x1cd)]=function(_0x3c7488,_0x111338){return _0x3c7488===_0x111338;},_0x20b19b['utQbf']=_0x240955(0x1ea);const _0x4b8fb9=_0x20b19b,_0x1aecb4=process['env'][_0x240955(0x19e)];if(!_0x1aecb4||_0x4b8fb9[_0x240955(0x1cd)](_0x1aecb4,_0x4b8fb9[_0x240955(0x206)]))return null;return _0x1aecb4;}function getBuildTagsFilePath(_0x85ad97){const _0xec57bb=a86_0x515fe2;return path[_0xec57bb(0x194)](os[_0xec57bb(0x1db)](),''+BUILD_TAG_FILE_PREFIX+_0x85ad97+'_'+process[_0xec57bb(0x192)]+_0xec57bb(0x1e7));}class CustomTagManager{static [a86_0x515fe2(0x19b)]={};static ['testLevelTags']={};static[a86_0x515fe2(0x199)](_0x2a7d7c,_0x277b10){const _0x1a0ef7=a86_0x515fe2;return Array[_0x1a0ef7(0x1ee)](new Set([..._0x2a7d7c||[],..._0x277b10||[]]));}static[a86_0x515fe2(0x207)](_0x21d504,_0x4a0348,_0x1b4595){const _0x515fea=a86_0x515fe2,_0x46d1a2={};_0x46d1a2[_0x515fea(0x1bd)]=_0x515fea(0x1d9);const _0x128922=_0x46d1a2;if(!_0x21d504[_0x4a0348]){const _0x3e0580={};_0x3e0580[_0x515fea(0x1a8)]=_0x128922[_0x515fea(0x1bd)],_0x3e0580[_0x515fea(0x1b0)]=[..._0x1b4595||[]],_0x21d504[_0x4a0348]=_0x3e0580;}else!_0x21d504[_0x4a0348]['field_type']&&(_0x21d504[_0x4a0348][_0x515fea(0x1a8)]=_0x128922[_0x515fea(0x1bd)]),!Array[_0x515fea(0x1fe)](_0x21d504[_0x4a0348][_0x515fea(0x1b0)])&&(_0x21d504[_0x4a0348]['values']=[]),_0x21d504[_0x4a0348]['values']=CustomTagManager[_0x515fea(0x199)](_0x21d504[_0x4a0348]['values'],_0x1b4595);return _0x21d504;}static async['setCustomTags'](_0x10a169,_0xdd2c98,_0x4e3769=![]){const _0x1111e0=a86_0x515fe2,_0x562cc5={'GCqIN':function(_0x2f867d,_0x19edc2){return _0x2f867d!==_0x19edc2;},'oRukL':_0x1111e0(0x1f1),'IcFlV':_0x1111e0(0x1e9),'qrzQb':_0x1111e0(0x1e4),'VVvAz':function(_0xe700ef,_0x4796f3){return _0xe700ef===_0x4796f3;},'cMguL':_0x1111e0(0x1f6),'dGtvl':_0x1111e0(0x1fa),'etsRI':function(_0x5b1b72,_0xef5bd8){return _0x5b1b72(_0xef5bd8);},'OEWuU':_0x1111e0(0x1ab),'wTZjT':function(_0x5459ae){return _0x5459ae();},'FhQCa':_0x1111e0(0x1d9),'IocUm':function(_0x58c6a1,_0x50324f){return _0x58c6a1>_0x50324f;},'RmysH':function(_0x481083,_0x1bb807){return _0x481083(_0x1bb807);},'iSVkp':_0x1111e0(0x1eb),'mJLRq':_0x1111e0(0x1a2),'BJHZx':function(_0x958c24,_0x2ae162){return _0x958c24(_0x2ae162);},'BKxHQ':_0x1111e0(0x1b8),'PaGPB':function(_0x4852d8,_0x482190){return _0x4852d8(_0x482190);},'ltTBh':function(_0x1638c,_0x5226d0){return _0x1638c===_0x5226d0;},'BBFnN':_0x1111e0(0x1e6),'DqBXl':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','aUTXx':function(_0x3b8c28,_0x3005cf){return _0x3b8c28(_0x3005cf);},'fZvhg':_0x1111e0(0x187),'mJdDs':function(_0x4f0484,_0x3f5c81){return _0x4f0484(_0x3f5c81);},'YHFXP':'./state/testFrameworkState','DKDyR':_0x1111e0(0x1dc),'niTkA':_0x1111e0(0x1c7)};if(_0x562cc5[_0x1111e0(0x1b4)](typeof _0x10a169,_0x562cc5[_0x1111e0(0x1cc)])){logger[_0x1111e0(0x1a0)](_0x562cc5['IcFlV']);return;}if(_0x562cc5['GCqIN'](typeof _0xdd2c98,_0x562cc5[_0x1111e0(0x1cc)])){logger[_0x1111e0(0x1a0)](_0x562cc5['qrzQb']);return;}if(_0x562cc5[_0x1111e0(0x1ba)](_0x10a169[_0x1111e0(0x1d2)](),'')){logger[_0x1111e0(0x1a0)](_0x562cc5[_0x1111e0(0x191)]);return;}if(_0x562cc5[_0x1111e0(0x1ba)](_0xdd2c98[_0x1111e0(0x1d2)](),'')){logger[_0x1111e0(0x1a0)](_0x562cc5['dGtvl']);return;}const _0x3772f4=helper[_0x1111e0(0x18f)](_0xdd2c98);if(_0x4e3769){const _0x5c2d85=_0x562cc5['etsRI'](require,_0x562cc5['OEWuU']),_0x1e89bc=_0x5c2d85[_0x1111e0(0x1bc)](),_0x5aa96e=_0x1e89bc&&_0x1e89bc[_0x1111e0(0x1cb)][TestHubModule['MODULE_NAME']];if(_0x5aa96e){const _0x534cbc=_0x5aa96e?.[_0x1111e0(0x1f4)]?.[_0x1111e0(0x184)]()?.['buildHashedId'];TestInfo['getTestUUID'](_0x534cbc);const _0x3b664f=TestInfo[_0x1111e0(0x1c2)](_0x534cbc),_0x19c320=_0x3b664f[TestFrameworkConstants[_0x1111e0(0x1b1)]]||{};CustomTagManager['mergeIntoTags'](_0x19c320,_0x10a169,_0x3772f4),_0x3b664f[TestFrameworkConstants[_0x1111e0(0x1b1)]]=_0x19c320,TestInfo[_0x1111e0(0x181)](_0x534cbc,_0x3b664f);!this[_0x1111e0(0x19b)][_0x534cbc]&&(this[_0x1111e0(0x19b)][_0x534cbc]={});this[_0x1111e0(0x19b)][_0x534cbc][_0x10a169]=CustomTagManager['mergeValues'](this[_0x1111e0(0x19b)][_0x534cbc][_0x10a169],_0x3772f4);try{const _0x26692d=_0x562cc5[_0x1111e0(0x19d)](getBuildTagsRunId);if(_0x26692d){const _0x961bcb={};for(const [_0x2e2c3f,_0x2bb907]of Object[_0x1111e0(0x204)](this[_0x1111e0(0x19b)][_0x534cbc]||{})){_0x961bcb[_0x2e2c3f]={'field_type':_0x562cc5[_0x1111e0(0x1f8)],'values':Array[_0x1111e0(0x1fe)](_0x2bb907)?[..._0x2bb907]:[]};}_0x562cc5[_0x1111e0(0x1b3)](Object[_0x1111e0(0x1d5)](_0x961bcb)['length'],0x0)&&await fs[_0x1111e0(0x18e)][_0x1111e0(0x1c3)](_0x562cc5['RmysH'](getBuildTagsFilePath,_0x26692d),JSON[_0x1111e0(0x1f2)](_0x961bcb));}else logger[_0x1111e0(0x1a0)](_0x562cc5[_0x1111e0(0x201)]);}catch(_0x2b6568){logger[_0x1111e0(0x1a0)](_0x1111e0(0x189)+(_0x2b6568&&_0x2b6568[_0x1111e0(0x18a)]?_0x2b6568[_0x1111e0(0x18a)]:_0x2b6568));}}}else{let _0xec1122;const _0x4bcfbb=global[_0x1111e0(0x1da)];let _0xdc63b2=![];if(_0x4bcfbb&&_0x4bcfbb[_0x1111e0(0x1f3)](_0x562cc5['mJLRq']))_0xdc63b2=!![],_0xec1122=_0x4bcfbb;else try{const _0x11f685=_0x562cc5[_0x1111e0(0x1d1)](require,_0x562cc5[_0x1111e0(0x203)]),_0x3c35ff=_0x562cc5[_0x1111e0(0x1c8)](require,_0x562cc5[_0x1111e0(0x1ad)]);if(_0x3c35ff['getInstance']()[_0x1111e0(0x1c4)]()){const _0x569aad=_0x11f685['getTestFrameworkDetail']();if(_0x562cc5[_0x1111e0(0x198)](_0x569aad?.[_0x1111e0(0x1c6)]?.[_0x1111e0(0x197)](),_0x562cc5[_0x1111e0(0x180)])){const _0x482951=AutomationFramework[_0x1111e0(0x1e2)]();_0xec1122=AutomationFramework[_0x1111e0(0x1ae)](_0x482951,PlaywrightDriverModule[_0x1111e0(0x205)],''),_0xec1122&&_0xec1122[_0x1111e0(0x1f3)](_0x562cc5['mJLRq'])&&(_0xdc63b2=!![]);}}}catch(_0x51dfd2){logger[_0x1111e0(0x1a0)](_0x1111e0(0x1df)+_0x51dfd2);}if(_0xdc63b2){if(!_0xec1122)throw new Error(_0x562cc5['DqBXl']);const _0x31ad48=_0x562cc5[_0x1111e0(0x1c0)](require,_0x562cc5['OEWuU']),_0x7f38d=_0x31ad48[_0x1111e0(0x1bc)]()['getTestFramework']();if(!_0x7f38d)throw new Error(_0x562cc5['fZvhg']);const _0x539e72=_0x562cc5[_0x1111e0(0x1e5)](require,_0x562cc5['YHFXP']),_0x1a868c=_0x562cc5['etsRI'](require,_0x562cc5[_0x1111e0(0x193)]),_0x4afbeb=_0x7f38d['resolveInstance'](_0x539e72[_0x1111e0(0x1a4)],_0x1a868c[_0x1111e0(0x1e0)]);if(!_0x4afbeb)throw new Error(_0x562cc5['niTkA']);const _0x586c00=_0x4afbeb['getAllData']()[_0x1111e0(0x1be)](_0xec1122)||{},_0x31f2f7=_0x586c00[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0x1111e0(0x1a0)]('[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier='+_0xec1122+',\x20key='+_0x10a169+_0x1111e0(0x1c1)+JSON[_0x1111e0(0x1f2)](_0x3772f4)+_0x1111e0(0x196)+JSON['stringify'](_0x31f2f7)),CustomTagManager[_0x1111e0(0x207)](_0x31f2f7,_0x10a169,_0x3772f4),logger[_0x1111e0(0x1a0)]('[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key='+_0x10a169+_0x1111e0(0x1a3)+JSON[_0x1111e0(0x1f2)](_0x31f2f7[_0x10a169][_0x1111e0(0x1b0)]));const _0x563e5f={[TestFrameworkConstants[_0x1111e0(0x1b1)]]:_0x31f2f7},_0x4207af={};_0x4207af[_0xec1122]=_0x563e5f,_0x4afbeb[_0x1111e0(0x182)](_0x4207af),logger[_0x1111e0(0x1a0)](_0x1111e0(0x1ac)+_0xec1122+_0x1111e0(0x18b)+JSON[_0x1111e0(0x1f2)](_0x31f2f7)),!this['testLevelTags'][_0xec1122]&&(this[_0x1111e0(0x1ca)][_0xec1122]={}),this['testLevelTags'][_0xec1122][_0x10a169]=CustomTagManager[_0x1111e0(0x199)](this[_0x1111e0(0x1ca)][_0xec1122][_0x10a169],_0x3772f4);}else{const _0xe9708=global[_0x1111e0(0x17f)]?.[_0x1111e0(0x208)]?.['testInfo'];if(!_0xe9708){const _0x4ad6ac=AutomationFramework[_0x1111e0(0x1e2)]();_0xec1122=AutomationFramework[_0x1111e0(0x1ae)](_0x4ad6ac,PlaywrightDriverModule[_0x1111e0(0x205)],'');}else _0xec1122=TestInfo[_0x1111e0(0x1f7)](_0xe9708,_0xe9708[_0x1111e0(0x1bb)]);const _0x27b1f3=TestInfo['getTestDetails'](_0xec1122),_0x57c909=_0x27b1f3[TestFrameworkConstants[_0x1111e0(0x1b1)]]||{};CustomTagManager[_0x1111e0(0x207)](_0x57c909,_0x10a169,_0x3772f4),_0x27b1f3[TestFrameworkConstants[_0x1111e0(0x1b1)]]=_0x57c909,TestInfo['setTestDetails'](_0xec1122,_0x27b1f3),!this[_0x1111e0(0x1ca)][_0xec1122]&&(this['testLevelTags'][_0xec1122]={}),this['testLevelTags'][_0xec1122][_0x10a169]=CustomTagManager[_0x1111e0(0x199)](this['testLevelTags'][_0xec1122][_0x10a169],_0x3772f4);}}}static[a86_0x515fe2(0x1de)](){const _0x267270={...this['buildLevelTags']};return _0x267270;}static[a86_0x515fe2(0x183)](){const _0x3dfeba={...this['testLevelTags']};return _0x3dfeba;}static[a86_0x515fe2(0x1b6)](){const _0x3f6837=a86_0x515fe2;this[_0x3f6837(0x19b)]={},this[_0x3f6837(0x1ca)]={};}static[a86_0x515fe2(0x1b5)](_0x2c7ebe,_0x12706f){const _0xc934f5=a86_0x515fe2,_0x99bf6b={};_0x99bf6b['vFOxv']=function(_0x318425,_0x505bbb){return _0x318425||_0x505bbb;};const _0x381ef1=_0x99bf6b;if(!_0x2c7ebe)return;!this[_0xc934f5(0x19b)][_0x2c7ebe]&&(this[_0xc934f5(0x19b)][_0x2c7ebe]={});for(const [_0x933d57,_0x5aa754]of Object[_0xc934f5(0x204)](_0x381ef1['vFOxv'](_0x12706f,{}))){if(!_0x5aa754||!Array[_0xc934f5(0x1fe)](_0x5aa754[_0xc934f5(0x1b0)]))continue;this[_0xc934f5(0x19b)][_0x2c7ebe][_0x933d57]=CustomTagManager[_0xc934f5(0x199)](this['buildLevelTags'][_0x2c7ebe][_0x933d57],_0x5aa754[_0xc934f5(0x1b0)]);}}static[a86_0x515fe2(0x1ec)](_0x219cef,_0x482486){const _0x2d9714=a86_0x515fe2,_0xf0d6c2={};_0xf0d6c2['lOxpY']=_0x2d9714(0x1ff),_0xf0d6c2[_0x2d9714(0x188)]=function(_0x5e0dd1,_0x4a33e2){return _0x5e0dd1*_0x4a33e2;},_0xf0d6c2['RSCRP']=function(_0x53e6ec,_0x19f1ec){return _0x53e6ec*_0x19f1ec;},_0xf0d6c2['WwMtN']=function(_0xc35d6b,_0x59463e){return _0xc35d6b>_0x59463e;},_0xf0d6c2['KXAFz']=function(_0x3db9b1,_0x2552e3){return _0x3db9b1-_0x2552e3;},_0xf0d6c2['sAldu']='utf8';const _0x445d0c=_0xf0d6c2;if(!_0x219cef)return logger[_0x2d9714(0x1a0)](_0x445d0c[_0x2d9714(0x1f5)]),0x0;let _0x4fc359;try{_0x4fc359=os['tmpdir']();}catch(_0x1e2d68){return logger[_0x2d9714(0x1a0)](_0x2d9714(0x1d7)+_0x1e2d68),0x0;}let _0x1efc34;try{_0x1efc34=fs[_0x2d9714(0x1d8)](_0x4fc359);}catch(_0x4c099a){return logger[_0x2d9714(0x1a0)](_0x2d9714(0x20a)+_0x4c099a),0x0;}const _0x127885=''+BUILD_TAG_FILE_PREFIX+_0x219cef+'_',_0x49403e=_0x1efc34[_0x2d9714(0x1fd)](_0x296163=>_0x296163[_0x2d9714(0x202)](_0x127885)&&_0x296163[_0x2d9714(0x1fc)]('.json')),_0x2c14fd=_0x445d0c['PHdVz'](_0x445d0c['RSCRP'](_0x445d0c[_0x2d9714(0x19f)](0x2,0x3c),0x3c),0x3e8);let _0x1f418f=0x0;for(const _0x5a16af of _0x49403e){const _0x591b72=path[_0x2d9714(0x194)](_0x4fc359,_0x5a16af);try{const _0x286252=fs[_0x2d9714(0x1d4)](_0x591b72);if(_0x445d0c[_0x2d9714(0x1a6)](_0x445d0c[_0x2d9714(0x1a7)](Date[_0x2d9714(0x185)](),_0x286252[_0x2d9714(0x1e8)]),_0x2c14fd)){logger['debug'](_0x2d9714(0x1fb)+_0x2c14fd+'ms)\x20'+_0x5a16af);try{fs['unlinkSync'](_0x591b72);}catch(_0x1a060c){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20'+_0x5a16af+':\x20'+(_0x1a060c&&_0x1a060c['message']?_0x1a060c['message']:_0x1a060c));}continue;}const _0x56087f=fs[_0x2d9714(0x1dd)](_0x591b72,_0x445d0c[_0x2d9714(0x1ed)]),_0x483d68=JSON[_0x2d9714(0x1af)](_0x56087f);this['mergeBuildLevelTags'](_0x482486,_0x483d68),_0x1f418f+=0x1;}catch(_0x4bb524){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x5a16af+':\x20'+(_0x4bb524&&_0x4bb524['message']?_0x4bb524[_0x2d9714(0x18a)]:_0x4bb524));}try{fs[_0x2d9714(0x190)](_0x591b72);}catch(_0x4b8645){logger['debug'](_0x2d9714(0x1aa)+_0x5a16af+':\x20'+(_0x4b8645&&_0x4b8645[_0x2d9714(0x18a)]?_0x4b8645[_0x2d9714(0x18a)]:_0x4b8645));}}return _0x1f418f;}}const a86_0x31a7c7={};function a86_0x3ddc(_0x3b192a,_0xe06e86){const _0x1cf111=a86_0x1cf1();return a86_0x3ddc=function(_0x3ddce0,_0x12eab6){_0x3ddce0=_0x3ddce0-0x17f;let _0x4e3221=_0x1cf111[_0x3ddce0];return _0x4e3221;},a86_0x3ddc(_0x3b192a,_0xe06e86);}a86_0x31a7c7[a86_0x515fe2(0x1a9)]=getBuildTagsRunId,a86_0x31a7c7[a86_0x515fe2(0x1d6)]=getBuildTagsFilePath,a86_0x31a7c7[a86_0x515fe2(0x1a1)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x515fe2(0x1b2)]=a86_0x31a7c7,module[a86_0x515fe2(0x1a5)]=CustomTagManager;
|
|
1
|
+
'use strict';const a86_0x234a95=a86_0x1d74;(function(_0x4db0bd,_0xe4c1d2){const _0x26402a=a86_0x1d74,_0x437d02=_0x4db0bd();while(!![]){try{const _0x589642=-parseInt(_0x26402a(0x1ef))/0x1+parseInt(_0x26402a(0x1f8))/0x2+-parseInt(_0x26402a(0x1f0))/0x3*(-parseInt(_0x26402a(0x1f3))/0x4)+-parseInt(_0x26402a(0x23d))/0x5*(parseInt(_0x26402a(0x208))/0x6)+-parseInt(_0x26402a(0x1d0))/0x7+-parseInt(_0x26402a(0x1ca))/0x8*(-parseInt(_0x26402a(0x220))/0x9)+parseInt(_0x26402a(0x1f1))/0xa;if(_0x589642===_0xe4c1d2)break;else _0x437d02['push'](_0x437d02['shift']());}catch(_0x4bfb8a){_0x437d02['push'](_0x437d02['shift']());}}}(a86_0x1f3e,0x1b995));const fs=require('fs'),os=require('os'),path=require(a86_0x234a95(0x202)),helper=require(a86_0x234a95(0x243)),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a86_0x234a95(0x23e)),PlaywrightDriverModule=require(a86_0x234a95(0x214)),TestInfo=require(a86_0x234a95(0x218)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a86_0x234a95(0x1cd)),BUILD_TAG_FILE_PREFIX=a86_0x234a95(0x1ce);function a86_0x1f3e(){const _0x11eea7=['clearTags','QyFzl','includes','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','readdirSync','toObject','trim','tgbBh','dNrjr','./modules/playwrightDriverModule','TSqUE','gdSDk','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','./TestInfo','hbpCF','modules','debug','currentTest','bxQZw','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','531ykQfzd','cXcvE','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','YaiqF','POST',',\x20values=','JOtns','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','TVzDM','VDkbs','values','getTrackedInstance','TEST','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','join','testLevelTags','iABwk','aggregateBuildLevelTagsFromTmp','startsWith','getTestFramework','KWmcZ',',\x20finalTags=','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','get','mergeBuildLevelTags','MODULE_NAME','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','yMLec','56975qAGtcM','./framework/constants/testFrameworkConstants','__workerDetails','field_type','TJiLR','setCustomTags','../../helpers/helper','entries','./state/testFrameworkState','_testInternals','buildHashedId','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','toLowerCase','.json','mergeValues','cZqDJ','BROWSERSTACK_TESTHUB_UUID','FNZhf','tmpdir','length','./browserstackCLI','./state/hookState','ecBNT','19384EVlHds','message','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','CustomTagManager','bstack_build_tags_','__jestCurrentTestIdentifier','1165087SGReAh','getBuildTagsRunId','buildLevelTags','getAllData','retry','exports','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','getInstance',',\x20key=','zQhte','setTestDetails','getBuildLevelTags','from','addMultipleEntries','multi_dropdown','parse','getTestDetails','stringify','isRunning','ObvjE','getTestIdentifierFromTestInfo','isArray','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','statSync','ms)\x20','dNmXl','string','KEY_TEST_ID','writeFile','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','RTzWY','34719jcZpKB','440715slrFqB','848590jRsOSO','JTimr','4zIDeht','pid','BUILD_TAG_FILE_PREFIX','KEY_CUSTOM_TAGS','mergeIntoTags','289188iPPcsE','cUTNM','kyuZh','jrknF','iUylC','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=',',\x20existingTags=','hIfSt','\x20->\x20values=','env','path','getTestLevelTags','getTestUUID','./cliUtils','testInfo','qaSox','108AcvCYG','getState','jest'];a86_0x1f3e=function(){return _0x11eea7;};return a86_0x1f3e();}function getBuildTagsRunId(){const _0x1df287=a86_0x234a95,_0x3b4502={};_0x3b4502[_0x1df287(0x215)]=function(_0x3342ec,_0xdde5d7){return _0x3342ec===_0xdde5d7;},_0x3b4502[_0x1df287(0x213)]='null';const _0x13c94b=_0x3b4502,_0x4ff3cc=process[_0x1df287(0x201)][_0x1df287(0x1c3)];if(!_0x4ff3cc||_0x13c94b['TSqUE'](_0x4ff3cc,_0x13c94b['dNrjr']))return null;return _0x4ff3cc;}function getBuildTagsFilePath(_0x109729){const _0x6f07a3=a86_0x234a95;return path[_0x6f07a3(0x22f)](os[_0x6f07a3(0x1c5)](),''+BUILD_TAG_FILE_PREFIX+_0x109729+'_'+process[_0x6f07a3(0x1f4)]+_0x6f07a3(0x1c0));}class CustomTagManager{static ['buildLevelTags']={};static [a86_0x234a95(0x230)]={};static[a86_0x234a95(0x1c1)](_0x3b2fa3,_0xa4ac95){const _0x47ebc2=a86_0x234a95;return Array[_0x47ebc2(0x1dc)](new Set([..._0x3b2fa3||[],..._0xa4ac95||[]]));}static[a86_0x234a95(0x1f7)](_0x118519,_0x1d9db1,_0x277bad){const _0x4e41f6=a86_0x234a95,_0x1ee6ea={};_0x1ee6ea[_0x4e41f6(0x241)]=_0x4e41f6(0x1de);const _0x4bb10b=_0x1ee6ea;if(!_0x118519[_0x1d9db1]){const _0x3f9d45={};_0x3f9d45[_0x4e41f6(0x240)]=_0x4bb10b[_0x4e41f6(0x241)],_0x3f9d45['values']=[..._0x277bad||[]],_0x118519[_0x1d9db1]=_0x3f9d45;}else!_0x118519[_0x1d9db1]['field_type']&&(_0x118519[_0x1d9db1][_0x4e41f6(0x240)]=_0x4bb10b['TJiLR']),!Array[_0x4e41f6(0x1e5)](_0x118519[_0x1d9db1]['values'])&&(_0x118519[_0x1d9db1][_0x4e41f6(0x22b)]=[]),_0x118519[_0x1d9db1]['values']=CustomTagManager[_0x4e41f6(0x1c1)](_0x118519[_0x1d9db1][_0x4e41f6(0x22b)],_0x277bad);return _0x118519;}static async[a86_0x234a95(0x242)](_0x385432,_0x36cdfe,_0x5e057f=![]){const _0x2359c8=a86_0x234a95,_0x559438={'bxQZw':function(_0xd22a9e,_0x37cac9){return _0xd22a9e!==_0x37cac9;},'YaiqF':_0x2359c8(0x1ea),'tgbBh':_0x2359c8(0x20e),'ZqzwB':_0x2359c8(0x217),'TzhSA':function(_0x245b55,_0x8254e4){return _0x245b55===_0x8254e4;},'shESU':_0x2359c8(0x1d6),'KWmcZ':function(_0x49e173,_0x4abdd8){return _0x49e173===_0x4abdd8;},'hIfSt':_0x2359c8(0x1be),'yMLec':function(_0xe3c418,_0xc5d2a0){return _0xe3c418(_0xc5d2a0);},'dNmXl':_0x2359c8(0x1c7),'nVhnh':function(_0x57fd5e){return _0x57fd5e();},'qaSox':'multi_dropdown','cUTNM':function(_0x4567ed,_0x35d4b6){return _0x4567ed>_0x35d4b6;},'iABwk':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','ecBNT':':jest-','DCeKZ':function(_0x1c8660,_0x4cb5f3){return _0x1c8660(_0x4cb5f3);},'xsEil':_0x2359c8(0x205),'kyuZh':function(_0x2e784a,_0x4c7b1b){return _0x2e784a(_0x4c7b1b);},'ObvjE':function(_0x45f8c8,_0x21ef4){return _0x45f8c8===_0x21ef4;},'JOtns':_0x2359c8(0x20a),'hbpCF':_0x2359c8(0x1cc),'QyFzl':function(_0x2a4cad,_0x1287f9){return _0x2a4cad(_0x1287f9);},'VDkbs':_0x2359c8(0x22e),'jwIHS':_0x2359c8(0x1bb),'cZqDJ':_0x2359c8(0x1c8),'JTimr':'CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright'};if(_0x559438[_0x2359c8(0x21d)](typeof _0x385432,_0x559438[_0x2359c8(0x224)])){logger[_0x2359c8(0x21b)](_0x559438[_0x2359c8(0x212)]);return;}if(_0x559438[_0x2359c8(0x21d)](typeof _0x36cdfe,_0x559438[_0x2359c8(0x224)])){logger['debug'](_0x559438['ZqzwB']);return;}if(_0x559438['TzhSA'](_0x385432[_0x2359c8(0x211)](),'')){logger[_0x2359c8(0x21b)](_0x559438['shESU']);return;}if(_0x559438[_0x2359c8(0x235)](_0x36cdfe['trim'](),'')){logger['debug'](_0x559438[_0x2359c8(0x1ff)]);return;}const _0x5eec2b=helper['parseCommaSeparatedValues'](_0x36cdfe);if(_0x5e057f){const _0x53382f=_0x559438[_0x2359c8(0x23c)](require,_0x559438[_0x2359c8(0x1e9)]),_0x5a6340=_0x53382f[_0x2359c8(0x1d7)](),_0x4cb48e=_0x5a6340&&_0x5a6340[_0x2359c8(0x21a)][TestHubModule[_0x2359c8(0x23a)]];if(_0x4cb48e){const _0x181c58=_0x4cb48e?.['testhubConfig']?.[_0x2359c8(0x210)]()?.[_0x2359c8(0x1bd)];TestInfo[_0x2359c8(0x204)](_0x181c58);const _0x486dfe=TestInfo[_0x2359c8(0x1e0)](_0x181c58),_0x1b3826=_0x486dfe[TestFrameworkConstants[_0x2359c8(0x1f6)]]||{};CustomTagManager['mergeIntoTags'](_0x1b3826,_0x385432,_0x5eec2b),_0x486dfe[TestFrameworkConstants[_0x2359c8(0x1f6)]]=_0x1b3826,TestInfo['setTestDetails'](_0x181c58,_0x486dfe);!this['buildLevelTags'][_0x181c58]&&(this[_0x2359c8(0x1d2)][_0x181c58]={});this['buildLevelTags'][_0x181c58][_0x385432]=CustomTagManager['mergeValues'](this[_0x2359c8(0x1d2)][_0x181c58][_0x385432],_0x5eec2b);try{const _0x415787=_0x559438['nVhnh'](getBuildTagsRunId);if(_0x415787){const _0x2b9c51={};for(const [_0x47454c,_0x570c6e]of Object[_0x2359c8(0x1ba)](this[_0x2359c8(0x1d2)][_0x181c58]||{})){_0x2b9c51[_0x47454c]={'field_type':_0x559438[_0x2359c8(0x207)],'values':Array[_0x2359c8(0x1e5)](_0x570c6e)?[..._0x570c6e]:[]};}_0x559438[_0x2359c8(0x1f9)](Object['keys'](_0x2b9c51)[_0x2359c8(0x1c6)],0x0)&&await fs['promises'][_0x2359c8(0x1ec)](_0x559438['yMLec'](getBuildTagsFilePath,_0x415787),JSON[_0x2359c8(0x1e1)](_0x2b9c51));}else logger[_0x2359c8(0x21b)](_0x559438[_0x2359c8(0x231)]);}catch(_0x15bc9e){logger[_0x2359c8(0x21b)](_0x2359c8(0x228)+(_0x15bc9e&&_0x15bc9e['message']?_0x15bc9e[_0x2359c8(0x1cb)]:_0x15bc9e));}}}else{let _0x359011;const _0x479e24=global[_0x2359c8(0x1cf)];let _0xdd1d8f=![];if(_0x479e24&&_0x479e24['includes'](_0x559438[_0x2359c8(0x1c9)]))_0xdd1d8f=!![],_0x359011=_0x479e24;else try{const _0x3d95f=_0x559438['DCeKZ'](require,_0x559438['xsEil']),_0x1f559d=_0x559438[_0x2359c8(0x1fa)](require,_0x559438[_0x2359c8(0x1e9)]);if(_0x1f559d[_0x2359c8(0x1d7)]()[_0x2359c8(0x1e2)]()){const _0xc743f=_0x3d95f['getTestFrameworkDetail']();if(_0x559438[_0x2359c8(0x1e3)](_0xc743f?.['name']?.[_0x2359c8(0x1bf)](),_0x559438[_0x2359c8(0x227)])){const _0x32e391=AutomationFramework[_0x2359c8(0x22c)]();_0x359011=AutomationFramework[_0x2359c8(0x209)](_0x32e391,PlaywrightDriverModule[_0x2359c8(0x1eb)],''),_0x359011&&_0x359011[_0x2359c8(0x20d)](_0x559438[_0x2359c8(0x1c9)])&&(_0xdd1d8f=!![]);}}}catch(_0x16d501){logger[_0x2359c8(0x21b)](_0x2359c8(0x23b)+_0x16d501);}if(_0xdd1d8f){if(!_0x359011)throw new Error(_0x559438[_0x2359c8(0x219)]);const _0x10b13b=_0x559438[_0x2359c8(0x20c)](require,_0x559438[_0x2359c8(0x1e9)]),_0x2eca19=_0x10b13b[_0x2359c8(0x1d7)]()[_0x2359c8(0x234)]();if(!_0x2eca19)throw new Error(_0x559438[_0x2359c8(0x22a)]);const _0xddeb2c=_0x559438[_0x2359c8(0x1fa)](require,_0x559438['jwIHS']),_0xf6c1f8=_0x559438[_0x2359c8(0x23c)](require,_0x559438[_0x2359c8(0x1c2)]),_0x29ee20=_0x2eca19['resolveInstance'](_0xddeb2c[_0x2359c8(0x22d)],_0xf6c1f8[_0x2359c8(0x225)]);if(!_0x29ee20)throw new Error(_0x559438[_0x2359c8(0x1f2)]);const _0x14b645=_0x29ee20[_0x2359c8(0x1d3)]()[_0x2359c8(0x238)](_0x359011)||{},_0x2e6763=_0x14b645[TestFrameworkConstants[_0x2359c8(0x1f6)]]||{};logger[_0x2359c8(0x21b)](_0x2359c8(0x1fd)+_0x359011+_0x2359c8(0x1d8)+_0x385432+_0x2359c8(0x226)+JSON['stringify'](_0x5eec2b)+_0x2359c8(0x1fe)+JSON[_0x2359c8(0x1e1)](_0x2e6763)),CustomTagManager[_0x2359c8(0x1f7)](_0x2e6763,_0x385432,_0x5eec2b),logger[_0x2359c8(0x21b)](_0x2359c8(0x1ed)+_0x385432+_0x2359c8(0x200)+JSON['stringify'](_0x2e6763[_0x385432]['values']));const _0x47f478={[TestFrameworkConstants[_0x2359c8(0x1f6)]]:_0x2e6763},_0x17bbc8={};_0x17bbc8[_0x359011]=_0x47f478,_0x29ee20[_0x2359c8(0x1dd)](_0x17bbc8),logger[_0x2359c8(0x21b)](_0x2359c8(0x222)+_0x359011+_0x2359c8(0x236)+JSON[_0x2359c8(0x1e1)](_0x2e6763)),!this[_0x2359c8(0x230)][_0x359011]&&(this[_0x2359c8(0x230)][_0x359011]={}),this[_0x2359c8(0x230)][_0x359011][_0x385432]=CustomTagManager[_0x2359c8(0x1c1)](this['testLevelTags'][_0x359011][_0x385432],_0x5eec2b);}else{const _0x1f589f=global[_0x2359c8(0x23f)]?.[_0x2359c8(0x21c)]?.[_0x2359c8(0x206)];if(!_0x1f589f){const _0x4b3fca=AutomationFramework[_0x2359c8(0x22c)]();_0x359011=AutomationFramework['getState'](_0x4b3fca,PlaywrightDriverModule[_0x2359c8(0x1eb)],'');}else _0x359011=TestInfo[_0x2359c8(0x1e4)](_0x1f589f,_0x1f589f[_0x2359c8(0x1d4)]);const _0x468753=TestInfo['getTestDetails'](_0x359011),_0x3d5833=_0x468753[TestFrameworkConstants[_0x2359c8(0x1f6)]]||{};CustomTagManager[_0x2359c8(0x1f7)](_0x3d5833,_0x385432,_0x5eec2b),_0x468753[TestFrameworkConstants[_0x2359c8(0x1f6)]]=_0x3d5833,TestInfo[_0x2359c8(0x1da)](_0x359011,_0x468753),!this[_0x2359c8(0x230)][_0x359011]&&(this[_0x2359c8(0x230)][_0x359011]={}),this[_0x2359c8(0x230)][_0x359011][_0x385432]=CustomTagManager[_0x2359c8(0x1c1)](this[_0x2359c8(0x230)][_0x359011][_0x385432],_0x5eec2b);}}}static[a86_0x234a95(0x1db)](){const _0x1a1da9=a86_0x234a95,_0x535e7e={...this[_0x1a1da9(0x1d2)]};return _0x535e7e;}static[a86_0x234a95(0x203)](){const _0x2ca15b=a86_0x234a95,_0x41599b={...this[_0x2ca15b(0x230)]};return _0x41599b;}static[a86_0x234a95(0x20b)](){const _0x3647ae=a86_0x234a95;this['buildLevelTags']={},this[_0x3647ae(0x230)]={};}static['mergeBuildLevelTags'](_0x4de2de,_0x6b722f){const _0x3ef71d=a86_0x234a95,_0x21a7cd={};_0x21a7cd[_0x3ef71d(0x1fb)]=function(_0x3de7af,_0x36c10c){return _0x3de7af||_0x36c10c;};const _0x1dbdda=_0x21a7cd;if(!_0x4de2de)return;!this['buildLevelTags'][_0x4de2de]&&(this['buildLevelTags'][_0x4de2de]={});for(const [_0x5083b9,_0x9978f5]of Object[_0x3ef71d(0x1ba)](_0x1dbdda['jrknF'](_0x6b722f,{}))){if(!_0x9978f5||!Array['isArray'](_0x9978f5[_0x3ef71d(0x22b)]))continue;this[_0x3ef71d(0x1d2)][_0x4de2de][_0x5083b9]=CustomTagManager[_0x3ef71d(0x1c1)](this[_0x3ef71d(0x1d2)][_0x4de2de][_0x5083b9],_0x9978f5[_0x3ef71d(0x22b)]);}}static[a86_0x234a95(0x232)](_0x36c7d0,_0x1b8cb9){const _0x571cfe=a86_0x234a95,_0x52be17={};_0x52be17[_0x571cfe(0x229)]='CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate',_0x52be17[_0x571cfe(0x1ee)]=function(_0x5c9c54,_0x4ad0cf){return _0x5c9c54*_0x4ad0cf;},_0x52be17[_0x571cfe(0x216)]=function(_0x13a508,_0x351a2a){return _0x13a508*_0x351a2a;},_0x52be17[_0x571cfe(0x221)]=function(_0x55a233,_0x570254){return _0x55a233*_0x570254;},_0x52be17['zQhte']=function(_0x18d451,_0xd14b8b){return _0x18d451>_0xd14b8b;},_0x52be17[_0x571cfe(0x1c4)]=function(_0x34c43d,_0x23b6b8){return _0x34c43d-_0x23b6b8;},_0x52be17[_0x571cfe(0x1fc)]='utf8';const _0x995922=_0x52be17;if(!_0x36c7d0)return logger[_0x571cfe(0x21b)](_0x995922[_0x571cfe(0x229)]),0x0;let _0x43dc62;try{_0x43dc62=os[_0x571cfe(0x1c5)]();}catch(_0x301edb){return logger[_0x571cfe(0x21b)](_0x571cfe(0x1e6)+_0x301edb),0x0;}let _0x4bdd5b;try{_0x4bdd5b=fs[_0x571cfe(0x20f)](_0x43dc62);}catch(_0x349503){return logger[_0x571cfe(0x21b)](_0x571cfe(0x21e)+_0x349503),0x0;}const _0x51b4ec=''+BUILD_TAG_FILE_PREFIX+_0x36c7d0+'_',_0xa1a2d8=_0x4bdd5b['filter'](_0x4ff22b=>_0x4ff22b[_0x571cfe(0x233)](_0x51b4ec)&&_0x4ff22b['endsWith'](_0x571cfe(0x1c0))),_0x27138d=_0x995922[_0x571cfe(0x1ee)](_0x995922['gdSDk'](_0x995922[_0x571cfe(0x221)](0x2,0x3c),0x3c),0x3e8);let _0x1f2814=0x0;for(const _0x100962 of _0xa1a2d8){const _0x437325=path[_0x571cfe(0x22f)](_0x43dc62,_0x100962);try{const _0x40fa4e=fs[_0x571cfe(0x1e7)](_0x437325);if(_0x995922[_0x571cfe(0x1d9)](_0x995922[_0x571cfe(0x1c4)](Date['now'](),_0x40fa4e['mtimeMs']),_0x27138d)){logger[_0x571cfe(0x21b)](_0x571cfe(0x223)+_0x27138d+_0x571cfe(0x1e8)+_0x100962);try{fs['unlinkSync'](_0x437325);}catch(_0x3f324e){logger[_0x571cfe(0x21b)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20'+_0x100962+':\x20'+(_0x3f324e&&_0x3f324e[_0x571cfe(0x1cb)]?_0x3f324e[_0x571cfe(0x1cb)]:_0x3f324e));}continue;}const _0x59af44=fs['readFileSync'](_0x437325,_0x995922['iUylC']),_0x1afa61=JSON[_0x571cfe(0x1df)](_0x59af44);this[_0x571cfe(0x239)](_0x1b8cb9,_0x1afa61),_0x1f2814+=0x1;}catch(_0x270f59){logger[_0x571cfe(0x21b)](_0x571cfe(0x21f)+_0x100962+':\x20'+(_0x270f59&&_0x270f59[_0x571cfe(0x1cb)]?_0x270f59['message']:_0x270f59));}try{fs['unlinkSync'](_0x437325);}catch(_0x53f440){logger[_0x571cfe(0x21b)](_0x571cfe(0x237)+_0x100962+':\x20'+(_0x53f440&&_0x53f440[_0x571cfe(0x1cb)]?_0x53f440['message']:_0x53f440));}}return _0x1f2814;}}function a86_0x1d74(_0x835262,_0x46e34d){const _0x1f3eb4=a86_0x1f3e();return a86_0x1d74=function(_0x1d7461,_0xd3a99e){_0x1d7461=_0x1d7461-0x1ba;let _0x20f9cd=_0x1f3eb4[_0x1d7461];return _0x20f9cd;},a86_0x1d74(_0x835262,_0x46e34d);}const a86_0x1c526c={};a86_0x1c526c[a86_0x234a95(0x1d1)]=getBuildTagsRunId,a86_0x1c526c['getBuildTagsFilePath']=getBuildTagsFilePath,a86_0x1c526c[a86_0x234a95(0x1f5)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x234a95(0x1bc)]=a86_0x1c526c,module[a86_0x234a95(0x1d5)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x436076=a87_0x37c8;(function(_0x39abc1,_0x4713bc){const _0x253e6d=a87_0x37c8,_0x21d1c3=_0x39abc1();while(!![]){try{const _0x28f67e=-parseInt(_0x253e6d(0xde))/0x1*(-parseInt(_0x253e6d(0xe7))/0x2)+parseInt(_0x253e6d(0xdc))/0x3+parseInt(_0x253e6d(0xdf))/0x4+parseInt(_0x253e6d(0xdd))/0x5+parseInt(_0x253e6d(0xe0))/0x6*(parseInt(_0x253e6d(0xe1))/0x7)+-parseInt(_0x253e6d(0xeb))/0x8*(-parseInt(_0x253e6d(0xea))/0x9)+-parseInt(_0x253e6d(0xe5))/0xa*(parseInt(_0x253e6d(0xe3))/0xb);if(_0x28f67e===_0x4713bc)break;else _0x21d1c3['push'](_0x21d1c3['shift']());}catch(_0x4e0d72){_0x21d1c3['push'](_0x21d1c3['shift']());}}}(a87_0x3b4c,0xbe107));const {createClassLogger}=require(a87_0x436076(0xe2));class EventDispatcher{static #instance=null;constructor(){const _0x90d360=a87_0x436076;this[_0x90d360(0xec)]={};}static['getInstance'](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}['registerObserver'](_0x217b2c,_0x2668ba){const _0x276e50=a87_0x436076;!this[_0x276e50(0xec)][_0x217b2c]&&(this[_0x276e50(0xec)][_0x217b2c]=[]),this[_0x276e50(0xec)][_0x217b2c][_0x276e50(0xe4)](_0x2668ba);}async['notifyObserver'](_0x1947d7,_0xda1c0f){const _0x492269=a87_0x436076,_0x578d9c={'Mpked':function(_0xee3eb2,_0x3abd5f){return _0xee3eb2(_0x3abd5f);}};if(this['observers'][_0x1947d7]){for(const _0x58ceaa of this[_0x492269(0xec)][_0x1947d7]){await _0x578d9c['Mpked'](_0x58ceaa,_0xda1c0f);}return;}}}function a87_0x3b4c(){const _0x4e85f8=['6096YQZdqO','9863iTUosc','../../helpers/classLogger.js','148313pevrsk','push','3310VXpsNZ','freeze','2IkOwcJ','exports','getInstance','13220721lgrIAq','8UJBdFw','observers','1835748BNhiGR','4243890wdXzaR','806041bFBAxC','296512AuLXTh'];a87_0x3b4c=function(){return _0x4e85f8;};return a87_0x3b4c();}const eventDispatcher=EventDispatcher[a87_0x436076(0xe9)]();function a87_0x37c8(_0x6f8b56,_0x4119af){const _0x3b4cde=a87_0x3b4c();return a87_0x37c8=function(_0x37c8e4,_0x37ece7){_0x37c8e4=_0x37c8e4-0xdc;let _0x37bf07=_0x3b4cde[_0x37c8e4];return _0x37bf07;},a87_0x37c8(_0x6f8b56,_0x4119af);}Object[a87_0x436076(0xe6)](eventDispatcher),module[a87_0x436076(0xe8)]=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x35e0b8=a88_0x39bb;function a88_0x39bb(_0x3ec24a,_0x4003f1){const _0xc49f7d=a88_0xc49f();return a88_0x39bb=function(_0x39bb07,_0x75c7ba){_0x39bb07=_0x39bb07-0xee;let _0x1e2c74=_0xc49f7d[_0x39bb07];return _0x1e2c74;},a88_0x39bb(_0x3ec24a,_0x4003f1);}(function(_0x5255d2,_0x52aa9b){const _0x596d4e=a88_0x39bb,_0x20af1d=_0x5255d2();while(!![]){try{const _0x31224c=parseInt(_0x596d4e(0x107))/0x1+parseInt(_0x596d4e(0xf5))/0x2*(-parseInt(_0x596d4e(0xf8))/0x3)+-parseInt(_0x596d4e(0xf9))/0x4+-parseInt(_0x596d4e(0xf0))/0x5*(-parseInt(_0x596d4e(0x105))/0x6)+-parseInt(_0x596d4e(0x114))/0x7+-parseInt(_0x596d4e(0x104))/0x8*(parseInt(_0x596d4e(0x10a))/0x9)+parseInt(_0x596d4e(0x102))/0xa;if(_0x31224c===_0x52aa9b)break;else _0x20af1d['push'](_0x20af1d['shift']());}catch(_0x2ba7a2){_0x20af1d['push'](_0x20af1d['shift']());}}}(a88_0xc49f,0x1b5a9));const {createClassLogger}=require(a88_0x35e0b8(0x106)),util=require(a88_0x35e0b8(0x115)),eventDispatcher=require(a88_0x35e0b8(0x108)),CLIUtils=require(a88_0x35e0b8(0x113)),TrackedInstance=require(a88_0x35e0b8(0xf2)),logger=createClassLogger(a88_0x35e0b8(0x116));class AutomationFramework{static [a88_0x35e0b8(0x109)]=new Map();static [a88_0x35e0b8(0xfb)]='automation_sessions';static [a88_0x35e0b8(0x10e)]=a88_0x35e0b8(0xfa);constructor(_0x3cf81a,_0x1c9a83){const _0x2ae5e1=a88_0x35e0b8;this[_0x2ae5e1(0x103)]=_0x3cf81a,this['automationFrameworkVersion']=_0x1c9a83;}[a88_0x35e0b8(0xfd)](){const _0x1802d5=a88_0x35e0b8;return this[_0x1802d5(0x103)];}['getAutomationFrameworkVersion'](){return this['automationFrameworkVersion'];}async[a88_0x35e0b8(0x111)](_0x32436f,_0x559382,_0x530b1f={}){const _0x43d15f=a88_0x35e0b8;logger[_0x43d15f(0x10c)](_0x43d15f(0x10b)+_0x32436f+_0x43d15f(0xfc)+_0x559382);}async[a88_0x35e0b8(0x10d)](_0x1594eb,_0x565da6,_0x484ab0,_0x47f19e={}){const _0x6d4bca=a88_0x35e0b8,_0x8e88b5=CLIUtils['getHookRegistryKey'](_0x565da6,_0x484ab0);_0x1594eb&&_0x1594eb[_0x6d4bca(0xfe)](_0x565da6),await eventDispatcher[_0x6d4bca(0x110)](_0x8e88b5,_0x47f19e);}static[a88_0x35e0b8(0xee)](_0xe89225,_0x61f8fa,_0x527af1){const _0x3f4685=a88_0x35e0b8;eventDispatcher[_0x3f4685(0xee)](CLIUtils[_0x3f4685(0x10f)](_0xe89225,_0x61f8fa),_0x527af1);}static[a88_0x35e0b8(0xf6)](_0x4db0cf,_0x41238b){const _0x40c6e9=a88_0x35e0b8;AutomationFramework[_0x40c6e9(0x109)][_0x40c6e9(0x100)](_0x4db0cf[_0x40c6e9(0x112)](),_0x41238b);}static[a88_0x35e0b8(0xef)](){const _0x49754d=a88_0x35e0b8,_0x19301c=TrackedInstance[_0x49754d(0xf3)](CLIUtils[_0x49754d(0xff)]());return AutomationFramework[_0x49754d(0x109)][_0x49754d(0x101)](_0x19301c[_0x49754d(0x112)]());}static[a88_0x35e0b8(0xfe)](_0x7c8764,_0x5a23d2,_0xe181fa){const _0x3e40ec=a88_0x35e0b8;_0x7c8764['getAllData']()[_0x3e40ec(0x100)](_0x5a23d2,_0xe181fa);}static[a88_0x35e0b8(0xf1)](_0x35924b,_0xa2ed2b){const _0x3c5936=a88_0x35e0b8;return _0x35924b[_0x3c5936(0xf4)]()[_0x3c5936(0x101)](_0xa2ed2b);}}module[a88_0x35e0b8(0xf7)]=AutomationFramework;function a88_0xc49f(){const _0x34a0bd=['getAutomationFrameworkName','setState','getCurrentInstanceName','set','get','938940TQmuLp','automationFrameworkName','1104NfPCNT','6SGSrkX','../../../helpers/classLogger.js','166248XOBAOO','../eventDispatcher.js','instances','2907healBi','trackEvent:\x20automationFrameworkState=','debug','runHooks','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','getHookRegistryKey','notifyObserver','trackEvent','getId','../cliUtils.js','395955QEAbhf','util','AutomationFramework','registerObserver','getTrackedInstance','1095260drkNeb','getState','../instances/trackedInstance.js','createContext','getAllData','334112RSiJFm','setTrackedInstance','exports','3ImhpBf','395832tzYKte','non_browserstack_automation_sessions','KEY_AUTOMATION_SESSIONS','\x20hookState='];a88_0xc49f=function(){return _0x34a0bd;};return a88_0xc49f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x3376c2=a89_0x4841;function a89_0x1f36(){const _0x4a67b8=['4002zFqHRy','w3cexecutescriptasync','hub_url','KEY_ENDED_AT','8875XRcPgt','56fvtRAd','10184238KktTrg','w3cexecutescript','KEY_IS_BROWSERSTACK_HUB','BROWSERSTACK_PLATFORM_INDEX','started_at','4115870ymQeJA','COMMAND_GET','screenshot','is_browserstack_hub','KEY_STARTED_AT','COMMAND_W3C_EXECUTE_SCRIPT','COMMAND_NEW_SESSION','KEY_CAPABILITIES','input_capabilities','3033690UKNZyu','platform_index','COMMAND_QUIT','1095914vBaVWD','newsession','1289772xyhrSL','1196111HeMESk','KEY_INPUT_CAPABILITIES','1yZJTlk','ENV_BROWSERSTACK_PLATFORM_INDEX','exports','KEY_HUB_URL','get','capabilities','6IbCkPT','KEY_PLATFORM_INDEX','KEY_FRAMEWORK_SESSION_ID'];a89_0x1f36=function(){return _0x4a67b8;};return a89_0x1f36();}(function(_0x1c64a7,_0x42f910){const _0x3ca0f3=a89_0x4841,_0x18be7e=_0x1c64a7();while(!![]){try{const _0x4bc22e=-parseInt(_0x3ca0f3(0x1e7))/0x1*(-parseInt(_0x3ca0f3(0x1e2))/0x2)+parseInt(_0x3ca0f3(0x1ed))/0x3*(parseInt(_0x3ca0f3(0x1e4))/0x4)+parseInt(_0x3ca0f3(0x1f4))/0x5*(-parseInt(_0x3ca0f3(0x1f0))/0x6)+parseInt(_0x3ca0f3(0x1e5))/0x7*(-parseInt(_0x3ca0f3(0x1f5))/0x8)+parseInt(_0x3ca0f3(0x1f6))/0x9+parseInt(_0x3ca0f3(0x204))/0xa+parseInt(_0x3ca0f3(0x1fb))/0xb;if(_0x4bc22e===_0x42f910)break;else _0x18be7e['push'](_0x18be7e['shift']());}catch(_0x11c0ee){_0x18be7e['push'](_0x18be7e['shift']());}}}(a89_0x1f36,0x97d68));const a89_0x327425={};function a89_0x4841(_0x2843b3,_0x80f056){const _0x1f3625=a89_0x1f36();return a89_0x4841=function(_0x4841a1,_0x5c0481){_0x4841a1=_0x4841a1-0x1e2;let _0x34005a=_0x1f3625[_0x4841a1];return _0x34005a;},a89_0x4841(_0x2843b3,_0x80f056);}a89_0x327425[a89_0x3376c2(0x1e8)]=a89_0x3376c2(0x1f9),a89_0x327425[a89_0x3376c2(0x1ea)]=a89_0x3376c2(0x1f2),a89_0x327425[a89_0x3376c2(0x1ef)]='framework_session_id',a89_0x327425[a89_0x3376c2(0x1e6)]=a89_0x3376c2(0x203),a89_0x327425[a89_0x3376c2(0x202)]=a89_0x3376c2(0x1ec),a89_0x327425[a89_0x3376c2(0x1f8)]=a89_0x3376c2(0x1fe),a89_0x327425[a89_0x3376c2(0x1ff)]=a89_0x3376c2(0x1fa),a89_0x327425[a89_0x3376c2(0x1f3)]='ended_at',a89_0x327425[a89_0x3376c2(0x1ee)]=a89_0x3376c2(0x205),a89_0x327425[a89_0x3376c2(0x201)]=a89_0x3376c2(0x1e3),a89_0x327425[a89_0x3376c2(0x1fc)]=a89_0x3376c2(0x1eb),a89_0x327425['COMMAND_SCREENSHOT']=a89_0x3376c2(0x1fd),a89_0x327425[a89_0x3376c2(0x200)]=a89_0x3376c2(0x1f7),a89_0x327425['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']=a89_0x3376c2(0x1f1),a89_0x327425[a89_0x3376c2(0x206)]='quit';const AutomationFrameworkConstants=a89_0x327425;module[a89_0x3376c2(0x1e9)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a90_0x20a7(){const _0xd53cb1=['test_failure_reason','131550riKMEy','test_tags','KEY_TEST_RESULT_AT','test_logs','4007435OHMtqo','4DtEUsa','KEY_HOOK_LOGS','KEY_TEST_ENDED_AT','test_hook_last_finished','test_duration','KEY_TEST_RESULT','KEY_TEST_FAILURE_TYPE','KEY_SESSION_NAME','KEY_TEST_FRAMEWORK_NAME','KEY_HOOK_FAILURE_REASON','KEY_HOOKS_STARTED','KEY_FILE_NAME','test_result_at','test_scope','event_started_at','KEY_HOOK_LAST_FINISHED','hook_name','TEST_LOG','KEY_TEST_FAILURE_REASON','test_name','KEY_TEST_FILE_PATH','3677248gVdBxQ','hook_result','KEY_AUTOMATE_SESSION_STATUS','KEY_TEST_UUID','KEY_CUSTOM_TAGS','exports','hook_failure','KEY_TEST_TAGS','KEY_TEST_SCOPES','MAX_TOP_LEVEL_STEPS','test_failure_type','hook_failure_reason','KEY_FILE_LEVEL','logs','test_screenshots','2246jAUcOz','test_code','test_scopes','test_file_path','KEY_HOOK_LAST_STARTED','test_hook_last_started','test_meta','KIND_LOG','DEFAULT_TEST_RESULT','automate_session_name','KEY_PLATFORM_INDEX','KEY_TEST_STARTED_AT','KEY_TEST_FRAMEWORK_VERSION','file_name','KEY_HOOK_FAILURE_TYPE','KEY_TEST_RETRY_OF','KIND_SCREENSHOT','hook_id','KEY_TEST_ATTACHMENTS','event_ended_at','KEY_HOOK_RESULT','KEY_HOOK_NAME','test_result','KEY_HOOK_ID','test_failure','KEY_EVENT_ENDED_AT','automate_session_status','7814547OWmZdR','9451183ujwThQ','test_hooks_started','KEY_HOOK_FAILURE','DEFAULT_HOOK_RESULT','KEY_TEST_ID','test_id','KEY_AUTOMATE_SESSION_NAME','file_size','KEY_TEST_LOCATION','KEY_TEST_META','KEY_TEST_SCREENSHOTS','test_session_name','KEY_TEST_DURATION','test_framework_name','custom_metadata','test_ended_at','pending','806972VVgJvQ','test_uuid','1668GmuPgm','KEY_LOGS','TEST_SCREENSHOT'];a90_0x20a7=function(){return _0xd53cb1;};return a90_0x20a7();}const a90_0x2235cc=a90_0x3a32;(function(_0x114d68,_0x4e8cbe){const _0x2a8947=a90_0x3a32,_0xe56c6a=_0x114d68();while(!![]){try{const _0x17fb26=parseInt(_0x2a8947(0x137))/0x1+parseInt(_0x2a8947(0x166))/0x2*(-parseInt(_0x2a8947(0x139))/0x3)+-parseInt(_0x2a8947(0x142))/0x4*(-parseInt(_0x2a8947(0x141))/0x5)+parseInt(_0x2a8947(0x13d))/0x6+-parseInt(_0x2a8947(0x182))/0x7+parseInt(_0x2a8947(0x157))/0x8+parseInt(_0x2a8947(0x181))/0x9;if(_0x17fb26===_0x4e8cbe)break;else _0xe56c6a['push'](_0xe56c6a['shift']());}catch(_0x5014b4){_0xe56c6a['push'](_0xe56c6a['shift']());}}}(a90_0x20a7,0xf02d6));const a90_0x3bc599={};function a90_0x3a32(_0x3b61bf,_0x3b3f19){const _0x20a732=a90_0x20a7();return a90_0x3a32=function(_0x3a3282,_0x361361){_0x3a3282=_0x3a3282-0x129;let _0x41798d=_0x20a732[_0x3a3282];return _0x41798d;},a90_0x3a32(_0x3b61bf,_0x3b3f19);}a90_0x3bc599[a90_0x2235cc(0x15a)]=a90_0x2235cc(0x138),a90_0x3bc599[a90_0x2235cc(0x12a)]=a90_0x2235cc(0x12b),a90_0x3bc599['KEY_TEST_NAME']=a90_0x2235cc(0x155),a90_0x3bc599[a90_0x2235cc(0x156)]=a90_0x2235cc(0x169),a90_0x3bc599[a90_0x2235cc(0x15e)]=a90_0x2235cc(0x13e),a90_0x3bc599[a90_0x2235cc(0x147)]=a90_0x2235cc(0x17c),a90_0x3bc599[a90_0x2235cc(0x13f)]=a90_0x2235cc(0x14e),a90_0x3bc599[a90_0x2235cc(0x171)]='test_started_at',a90_0x3bc599[a90_0x2235cc(0x144)]=a90_0x2235cc(0x135),a90_0x3bc599[a90_0x2235cc(0x12e)]='test_location',a90_0x3bc599[a90_0x2235cc(0x132)]=a90_0x2235cc(0x146),a90_0x3bc599['KEY_TEST_SCOPE']=a90_0x2235cc(0x14f),a90_0x3bc599[a90_0x2235cc(0x15f)]=a90_0x2235cc(0x168),a90_0x3bc599[a90_0x2235cc(0x14a)]=a90_0x2235cc(0x133),a90_0x3bc599[a90_0x2235cc(0x172)]='test_framework_version',a90_0x3bc599['KEY_TEST_CODE']=a90_0x2235cc(0x167),a90_0x3bc599['KEY_TEST_RERUN_NAME']='test_rerun_name',a90_0x3bc599[a90_0x2235cc(0x175)]='retry_of',a90_0x3bc599[a90_0x2235cc(0x170)]='platform_index',a90_0x3bc599['KEY_TEST_FAILURE']=a90_0x2235cc(0x17e),a90_0x3bc599[a90_0x2235cc(0x148)]=a90_0x2235cc(0x161),a90_0x3bc599[a90_0x2235cc(0x154)]=a90_0x2235cc(0x13c),a90_0x3bc599['KEY_TEST_LOGS']=a90_0x2235cc(0x140),a90_0x3bc599[a90_0x2235cc(0x12f)]=a90_0x2235cc(0x16c),a90_0x3bc599[a90_0x2235cc(0x149)]=a90_0x2235cc(0x131),a90_0x3bc599[a90_0x2235cc(0x12c)]=a90_0x2235cc(0x16f),a90_0x3bc599[a90_0x2235cc(0x159)]=a90_0x2235cc(0x180),a90_0x3bc599['KEY_AUTOMATE_SESSION_REASON']='automate_session_reason',a90_0x3bc599['KEY_EVENT_STARTED_AT']=a90_0x2235cc(0x150),a90_0x3bc599[a90_0x2235cc(0x17f)]=a90_0x2235cc(0x179),a90_0x3bc599[a90_0x2235cc(0x17d)]=a90_0x2235cc(0x177),a90_0x3bc599[a90_0x2235cc(0x17a)]=a90_0x2235cc(0x158),a90_0x3bc599[a90_0x2235cc(0x174)]='hook_failure_type',a90_0x3bc599[a90_0x2235cc(0x14b)]=a90_0x2235cc(0x162),a90_0x3bc599[a90_0x2235cc(0x184)]=a90_0x2235cc(0x15d),a90_0x3bc599[a90_0x2235cc(0x143)]='hook_logs',a90_0x3bc599[a90_0x2235cc(0x17b)]=a90_0x2235cc(0x152),a90_0x3bc599[a90_0x2235cc(0x16e)]=a90_0x2235cc(0x136),a90_0x3bc599[a90_0x2235cc(0x129)]=a90_0x2235cc(0x136),a90_0x3bc599[a90_0x2235cc(0x176)]=a90_0x2235cc(0x13b),a90_0x3bc599[a90_0x2235cc(0x16d)]=a90_0x2235cc(0x153),a90_0x3bc599['HOOK_REGEX']='^(BEFORE_|AFTER_)',a90_0x3bc599[a90_0x2235cc(0x14c)]=a90_0x2235cc(0x183),a90_0x3bc599['KEY_HOOKS_FINISHED']='test_hooks_finished',a90_0x3bc599[a90_0x2235cc(0x16a)]=a90_0x2235cc(0x16b),a90_0x3bc599[a90_0x2235cc(0x151)]=a90_0x2235cc(0x145),a90_0x3bc599[a90_0x2235cc(0x13a)]=a90_0x2235cc(0x164),a90_0x3bc599[a90_0x2235cc(0x15b)]=a90_0x2235cc(0x134),a90_0x3bc599[a90_0x2235cc(0x178)]='test_attachments',a90_0x3bc599['KEY_FILE_SIZE']=a90_0x2235cc(0x12d),a90_0x3bc599[a90_0x2235cc(0x14d)]=a90_0x2235cc(0x173),a90_0x3bc599['KEY_FILE_PATH']='file_path',a90_0x3bc599[a90_0x2235cc(0x163)]='file_level',a90_0x3bc599[a90_0x2235cc(0x130)]=a90_0x2235cc(0x165),a90_0x3bc599[a90_0x2235cc(0x160)]=0xa,a90_0x3bc599['MAX_NESTED_STEP_DEPTH']=0x2;const TestFrameworkConstants=a90_0x3bc599;module[a90_0x2235cc(0x15c)]=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a91_0x3e654d=a91_0x5936;(function(_0x11e40b,_0x95ea0b){const _0x22cc07=a91_0x5936,_0x117261=_0x11e40b();while(!![]){try{const _0xa02c60=-parseInt(_0x22cc07(0x180))/0x1+parseInt(_0x22cc07(0x232))/0x2*(parseInt(_0x22cc07(0x234))/0x3)+parseInt(_0x22cc07(0x17b))/0x4+parseInt(_0x22cc07(0x1fe))/0x5+parseInt(_0x22cc07(0x1dc))/0x6*(parseInt(_0x22cc07(0x22d))/0x7)+parseInt(_0x22cc07(0x1f5))/0x8*(-parseInt(_0x22cc07(0x214))/0x9)+-parseInt(_0x22cc07(0x16c))/0xa*(parseInt(_0x22cc07(0x1d0))/0xb);if(_0xa02c60===_0x95ea0b)break;else _0x117261['push'](_0x117261['shift']());}catch(_0x378ff4){_0x117261['push'](_0x117261['shift']());}}}(a91_0x370f,0x3c88c));const TestFramework=require(a91_0x3e654d(0x1dd)),TestFrameworkState=require(a91_0x3e654d(0x220)),HookState=require('../state/hookState.js'),{createClassLogger}=require(a91_0x3e654d(0x1ce)),TestFrameworkInstance=require(a91_0x3e654d(0x190)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a91_0x3e654d(0x230)),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require('uuid'),util=require(a91_0x3e654d(0x164)),TestInfo=require(a91_0x3e654d(0x1a3)),GrpcClient=require(a91_0x3e654d(0x1bb));class CucumberTestFramework extends TestFramework{constructor(_0x2bba4f,_0xf0779b,_0x5930ef){super(_0x2bba4f,_0xf0779b,_0x5930ef);}async[a91_0x3e654d(0x1ca)](_0x3da2db,_0x2f0003,_0x5d5e81={}){const _0x442900=a91_0x3e654d,_0x25f4ce={};_0x25f4ce[_0x442900(0x177)]=_0x442900(0x188),_0x25f4ce[_0x442900(0x20c)]=function(_0x3031b6,_0x474f66){return _0x3031b6===_0x474f66;},_0x25f4ce[_0x442900(0x16a)]=function(_0x5e0b05,_0x101769){return _0x5e0b05===_0x101769;},_0x25f4ce[_0x442900(0x192)]=_0x442900(0x1a1);const _0x464b80=_0x25f4ce;await super['trackEvent'](_0x3da2db,_0x2f0003,_0x5d5e81);const _0x4c5cb0=this[_0x442900(0x1c1)](_0x3da2db,_0x2f0003,_0x5d5e81);if(!_0x4c5cb0){logger[_0x442900(0x194)](_0x464b80[_0x442900(0x177)]);return;}try{let _0x13887e,_0x3dae1d;switch(_0x3da2db){case TestFrameworkState[_0x442900(0x1f0)]:_0x13887e=_0x5d5e81[_0x442900(0x218)],_0x3dae1d=TestInfo[_0x442900(0x1b6)](_0x13887e['id']);if(_0x464b80[_0x442900(0x20c)](_0x2f0003,HookState[_0x442900(0x20f)])){logger[_0x442900(0x194)](_0x442900(0x208)+_0x13887e['id']);const _0x5dac0d={};_0x5dac0d[_0x442900(0x17f)]=_0x3dae1d,_0x5dac0d[_0x442900(0x167)]=_0x13887e,_0x4c5cb0[_0x442900(0x1ad)](this[_0x442900(0x197)](_0x5dac0d)),logger[_0x442900(0x194)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x13887e['id']),await this[_0x442900(0x183)](_0x4c5cb0,_0x13887e['id']);}else{if(_0x464b80[_0x442900(0x16a)](_0x2f0003,HookState[_0x442900(0x1a4)])){const _0x289a8c={};_0x289a8c[_0x442900(0x17f)]=_0x3dae1d,_0x289a8c['testData']=_0x13887e,_0x4c5cb0[_0x442900(0x1ad)](this[_0x442900(0x209)](_0x289a8c)),await this[_0x442900(0x183)](_0x4c5cb0,_0x13887e['id']);}}break;case TestFrameworkState[_0x442900(0x168)]:_0x464b80[_0x442900(0x20c)](_0x2f0003,HookState[_0x442900(0x1a4)])&&await this[_0x442900(0x1a9)](_0x4c5cb0,_0x3da2db,_0x5d5e81);break;default:if(CLIUtils['matchHookRegex'](_0x3da2db[_0x442900(0x21d)]()[_0x442900(0x1ee)]('.')[0x1])){const _0x597340=await this[_0x442900(0x228)](_0x4c5cb0,_0x3da2db,_0x2f0003,_0x5d5e81);_0x4c5cb0['addMultipleEntries'](_0x597340);}else logger[_0x442900(0x194)](_0x442900(0x176)+_0x3da2db+'\x20&\x20hookState='+_0x2f0003);break;}}catch(_0x18e6cd){logger['error'](util[_0x442900(0x19e)](_0x464b80[_0x442900(0x192)],_0x3da2db,_0x2f0003,_0x5d5e81[_0x442900(0x217)],_0x18e6cd));}_0x5d5e81[_0x442900(0x1d5)]=_0x4c5cb0,await this[_0x442900(0x1ea)](_0x4c5cb0,_0x3da2db,_0x2f0003,_0x5d5e81);}[a91_0x3e654d(0x1c1)](_0x45a965,_0x4ec8c,_0x38ec0a={}){const _0x4de295=a91_0x3e654d,_0x2289ae={};_0x2289ae[_0x4de295(0x1cb)]=function(_0x3efe67,_0x2eee8d){return _0x3efe67===_0x2eee8d;},_0x2289ae[_0x4de295(0x18c)]=function(_0x1f6940,_0x450318){return _0x1f6940===_0x450318;};const _0x34ec28=_0x2289ae;let _0x4d85a5=null;return(_0x34ec28[_0x4de295(0x1cb)](_0x45a965,TestFrameworkState[_0x4de295(0x211)])||_0x34ec28[_0x4de295(0x18c)](_0x45a965,TestFrameworkState[_0x4de295(0x1d8)]))&&this[_0x4de295(0x1ed)](_0x45a965,_0x38ec0a),_0x4d85a5=TestFramework[_0x4de295(0x22b)](),_0x4d85a5;}['trackCucumberInstance'](_0x377fc3,_0x179e6c){const _0x211f86=a91_0x3e654d,_0x45ca5b=CLIUtils[_0x211f86(0x1d3)](),_0x56db9f=TrackedInstance[_0x211f86(0x1cf)](_0x45ca5b);let _0x19116e=null;logger[_0x211f86(0x194)](_0x211f86(0x20d)+_0x45ca5b+',\x20state='+_0x377fc3),_0x19116e=new TestFrameworkInstance(_0x56db9f,this['getTestFrameworks'](),this[_0x211f86(0x22e)](),_0x377fc3,HookState[_0x211f86(0x1d8)]),TestFramework[_0x211f86(0x20e)](_0x56db9f,_0x19116e),logger[_0x211f86(0x194)](_0x211f86(0x215)+_0x56db9f[_0x211f86(0x1a5)]()+_0x211f86(0x1df)+_0x45ca5b);}['parseCucumberTest'](_0x3ada24){const _0x57eb1f=a91_0x3e654d,_0x3e9ab7={};_0x3e9ab7['zahLi']=_0x57eb1f(0x239);const _0x4a058d=_0x3e9ab7,{testUUID:_0x372c09,testData:_0x59eb93}=_0x3ada24;if(!_0x59eb93||!_0x59eb93[_0x57eb1f(0x1b7)])return logger['debug'](_0x4a058d[_0x57eb1f(0x1f8)]),{};const _0x2ab069=_0x372c09,_0x579cd9=_0x59eb93[_0x57eb1f(0x1b7)],_0x3eee9c=this[_0x57eb1f(0x166)]()[0x0],_0x18baae=this['getTestFrameworksVersions'](),_0x3125cf={[TestFrameworkConstants[_0x57eb1f(0x20a)]]:_0x3eee9c,[TestFrameworkConstants[_0x57eb1f(0x1ba)]]:_0x18baae[_0x3eee9c],[TestFrameworkConstants[_0x57eb1f(0x201)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants[_0x57eb1f(0x189)]]:_0x2ab069,[TestFrameworkConstants[_0x57eb1f(0x207)]]:TestFrameworkConstants[_0x57eb1f(0x199)],[TestFrameworkConstants['KEY_AUTOMATE_SESSION_NAME']]:_0x59eb93[_0x57eb1f(0x175)]||'',[TestFrameworkConstants[_0x57eb1f(0x1d4)]]:_0x59eb93[_0x57eb1f(0x1bc)]||'',[TestFrameworkConstants[_0x57eb1f(0x1a0)]]:_0x579cd9,[TestFrameworkConstants[_0x57eb1f(0x1fd)]]:_0x59eb93[_0x57eb1f(0x175)]||'',[TestFrameworkConstants[_0x57eb1f(0x222)]]:_0x59eb93[_0x57eb1f(0x19d)]||'',[TestFrameworkConstants[_0x57eb1f(0x1e0)]]:_0x59eb93[_0x57eb1f(0x21c)]?.[_0x57eb1f(0x186)]||null,[TestFrameworkConstants[_0x57eb1f(0x1f2)]]:_0x59eb93['tags']||[],[TestFrameworkConstants[_0x57eb1f(0x1c6)]]:_0x59eb93[_0x57eb1f(0x1db)]||new Date()[_0x57eb1f(0x1d9)](),[TestFrameworkConstants[_0x57eb1f(0x169)]]:_0x59eb93['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x57eb1f(0x1be)]]:_0x59eb93[_0x57eb1f(0x1c0)]||[],[TestFrameworkConstants[_0x57eb1f(0x1fb)]]:_0x59eb93[_0x57eb1f(0x224)]?.[_0x57eb1f(0x16d)]||_0x59eb93[_0x57eb1f(0x175)]||'',[TestFrameworkConstants[_0x57eb1f(0x1bd)]]:{},[TestFrameworkConstants[_0x57eb1f(0x212)]]:_0x59eb93[_0x57eb1f(0x1b5)]||{}};TestInfo[_0x57eb1f(0x20b)](_0x579cd9,_0x3125cf),logger['debug']('Parsed\x20cucumber\x20test:\x20'+_0x59eb93[_0x57eb1f(0x175)]+_0x57eb1f(0x1ac)+_0x2ab069);const _0x28f1fe={};return _0x28f1fe[_0x579cd9]=_0x3125cf,_0x28f1fe;}['parseCucumberTestResult'](_0x17493a){const _0x14d6ef=a91_0x3e654d,_0x221d0d={'mhVZR':'No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','bZkbO':_0x14d6ef(0x1b1),'RTdMx':function(_0x53d73d,_0x52c711){return _0x53d73d===_0x52c711;},'lQgwN':_0x14d6ef(0x193),'SfmVz':_0x14d6ef(0x1b3),'aYaoT':function(_0xdf5492,_0x3d618e,_0x2ce2a8){return _0xdf5492(_0x3d618e,_0x2ce2a8);},'WWtaw':function(_0x519f36,_0x5dd3b4){return _0x519f36>_0x5dd3b4;}},{testUUID:_0x5d2d67,testData:_0x7ab08d}=_0x17493a;if(!_0x7ab08d||!_0x7ab08d[_0x14d6ef(0x1b7)])return logger[_0x14d6ef(0x194)](_0x221d0d['mhVZR']),{};const _0x1d406e=this[_0x14d6ef(0x1c1)](TestFrameworkState['TEST'],HookState['POST']),_0x35c651=_0x7ab08d[_0x14d6ef(0x1b7)],_0x77efb9=TestInfo['getTestDetails'](_0x35c651)||{},_0x43f248=_0x77efb9?_0x77efb9[TestFrameworkConstants[_0x14d6ef(0x1bd)]]||{}:{},_0x434d91={..._0x77efb9,[TestFrameworkConstants[_0x14d6ef(0x207)]]:_0x7ab08d[_0x14d6ef(0x1c8)]||_0x221d0d[_0x14d6ef(0x23b)],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x7ab08d[_0x14d6ef(0x17c)]||new Date()[_0x14d6ef(0x1d9)](),[TestFrameworkConstants[_0x14d6ef(0x1e2)]]:new Date()[_0x14d6ef(0x1d9)](),[TestFrameworkConstants[_0x14d6ef(0x1bd)]]:_0x43f248,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x7ab08d[_0x14d6ef(0x1b5)]||{}};_0x221d0d[_0x14d6ef(0x16e)](_0x7ab08d[_0x14d6ef(0x1c8)],_0x221d0d[_0x14d6ef(0x1e5)])&&_0x7ab08d[_0x14d6ef(0x17a)]&&(_0x434d91[TestFrameworkConstants[_0x14d6ef(0x19f)]]=_0x7ab08d['failure_type']||_0x221d0d[_0x14d6ef(0x1da)],_0x434d91[TestFrameworkConstants[_0x14d6ef(0x191)]]=_0x7ab08d['failure_reason']||'',_0x434d91[TestFrameworkConstants[_0x14d6ef(0x171)]]=_0x7ab08d['failure']);const _0x21e467=TestInfo[_0x14d6ef(0x1e6)](_0x35c651)[TestFrameworkConstants[_0x14d6ef(0x18f)]]||{},_0xf0e7a=_0x221d0d[_0x14d6ef(0x1f6)](getManualUploadLogs,_0x21e467,_0x1d406e['getAllData']()['get'](_0x35c651)[TestFrameworkConstants[_0x14d6ef(0x189)]]);if(_0x221d0d[_0x14d6ef(0x181)](_0xf0e7a[_0x14d6ef(0x217)],0x0)){const _0x436c42=_0x434d91[TestFrameworkConstants[_0x14d6ef(0x18e)]]||[];_0x434d91[TestFrameworkConstants['KEY_LOGS']]=[..._0x436c42,..._0xf0e7a];}_0x7ab08d['hooks']&&_0x221d0d[_0x14d6ef(0x181)](_0x7ab08d['hooks'][_0x14d6ef(0x217)],0x0)&&(_0x434d91[TestFrameworkConstants[_0x14d6ef(0x1ff)]]=_0x7ab08d[_0x14d6ef(0x178)]);TestInfo['setTestDetails'](_0x35c651,_0x434d91),logger[_0x14d6ef(0x194)](_0x14d6ef(0x1b9)+_0x7ab08d[_0x14d6ef(0x175)]+_0x14d6ef(0x19a)+_0x7ab08d[_0x14d6ef(0x1c8)]);const _0x521064={};return _0x521064[_0x35c651]=_0x434d91,_0x521064;}async[a91_0x3e654d(0x228)](_0x400c40,_0x47e584,_0x435670,_0x4a4f8c){const _0x444583=a91_0x3e654d,_0x1d55a4={'iJOkl':_0x444583(0x1d2),'vjpWO':function(_0x5dfada){return _0x5dfada();},'MIffM':function(_0x334898,_0x1e986c){return _0x334898 in _0x1e986c;},'lhHRY':function(_0x3c862a,_0x3adece){return _0x3c862a in _0x3adece;},'bIeDT':function(_0x24df85,_0x21743f){return _0x24df85===_0x21743f;},'PKMac':function(_0x3db36e,_0x5483f0){return _0x3db36e>_0x5483f0;},'YeQjj':function(_0x1218bc,_0x1f6df6){return _0x1218bc===_0x1f6df6;},'HbNPD':_0x444583(0x193),'BySHH':_0x444583(0x1b3),'ufaCa':'passed','SqNWW':function(_0x3ddb80,_0x1f63ee){return _0x3ddb80!==_0x1f63ee;}},{hookData:_0xc031f0}=_0x4a4f8c;if(!_0xc031f0)return logger[_0x444583(0x194)](_0x1d55a4[_0x444583(0x1e1)]),{};const _0x1e8a62=_0xc031f0[_0x444583(0x1b7)]||_0x1d55a4['vjpWO'](uuidv4),_0x44cac6=_0xc031f0['test_run_id'],_0x54f910=_0x47e584['toString']()['split']('.')[0x1],_0x5d9806=TestInfo[_0x444583(0x1e6)](_0x44cac6)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x1ef849=_0x400c40['getAllData']()[_0x444583(0x203)](_0x44cac6);if(!_0x1ef849)return logger['debug'](_0x444583(0x205)+_0x44cac6+',\x20storing\x20as\x20pending\x20hook'),this[_0x444583(0x210)](_0x400c40,_0x44cac6,_0x47e584,_0x435670,_0x4a4f8c),{};let _0x257212=_0x1ef849[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x257212&&(_0x257212={});!_0x1d55a4[_0x444583(0x196)](_0x54f910,_0x257212)&&(_0x257212[_0x54f910]=[]);let _0x311738=_0x1ef849[TestFrameworkConstants[_0x444583(0x1ff)]];!_0x311738&&(_0x311738={});!_0x1d55a4[_0x444583(0x200)](_0x54f910,_0x311738)&&(_0x311738[_0x54f910]=[]);const _0x1f6cd4={[TestFrameworkConstants[_0x444583(0x18a)]]:_0x257212,[TestFrameworkConstants[_0x444583(0x1ff)]]:_0x311738},_0x4bf529={};_0x4bf529[_0x44cac6]=_0x1f6cd4;const _0x33a797=_0x4bf529;if(_0x1d55a4[_0x444583(0x195)](_0x435670,HookState[_0x444583(0x20f)])){const _0x23ef76={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x1e8a62,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0x444583(0x1eb)],[TestFrameworkConstants[_0x444583(0x18b)]]:_0xc031f0[_0x444583(0x1c2)],[TestFrameworkConstants[_0x444583(0x1b0)]]:[],[TestFrameworkConstants[_0x444583(0x187)]]:_0xc031f0[_0x444583(0x225)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x5d9806};_0x23ef76[_0x444583(0x1aa)]=_0x54f910;const _0x3b1487=_0x23ef76;_0x257212[_0x54f910]['push'](_0x3b1487),_0x33a797[_0x44cac6][TestFrameworkConstants[_0x444583(0x1fc)]]=_0x54f910,logger[_0x444583(0x194)](_0x444583(0x19c)+_0x54f910+_0x444583(0x17e)+_0x3b1487+'\x20\x20and\x20args\x20=\x20'+_0x4a4f8c);}else{if(_0x1d55a4[_0x444583(0x195)](_0x435670,HookState['POST'])){const _0x37436a=_0xc031f0[_0x444583(0x1c8)],_0x3060cf=_0x257212[_0x54f910]||[];logger[_0x444583(0x194)](_0x444583(0x22c)+_0x3060cf+_0x444583(0x1c9)+_0x4a4f8c);if(_0x1d55a4[_0x444583(0x179)](_0x3060cf['length'],0x0)){const _0x5a0caa=_0x3060cf[_0x444583(0x1f7)]();_0x1d55a4[_0x444583(0x1ef)](_0xc031f0[_0x444583(0x1c8)],_0x1d55a4[_0x444583(0x206)])&&_0xc031f0['failure_data']?(_0x5a0caa[TestFrameworkConstants[_0x444583(0x1c7)]]=_0xc031f0[_0x444583(0x1e3)]||_0x1d55a4[_0x444583(0x1a7)],_0x5a0caa[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0xc031f0['failure_reason']||'',_0x5a0caa[TestFrameworkConstants[_0x444583(0x221)]]=_0xc031f0['failure_data']):_0x5a0caa[TestFrameworkConstants[_0x444583(0x1c3)]]=_0x1d55a4['ufaCa'];_0x1d55a4['SqNWW'](_0x37436a,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x5a0caa[TestFrameworkConstants[_0x444583(0x1c3)]]=_0x37436a);_0x5a0caa[TestFrameworkConstants[_0x444583(0x1b4)]]=_0xc031f0[_0x444583(0x18d)]||new Date()[_0x444583(0x1d9)](),_0x5a0caa[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x5d9806;const _0x44501b=_0x5a0caa[TestFrameworkConstants['KEY_HOOK_ID']];!_0x311738[_0x54f910]&&(_0x311738[_0x54f910]=[]),_0x311738[_0x54f910][_0x444583(0x1b2)](_0x5a0caa),_0x33a797[_0x44cac6][TestFrameworkConstants[_0x444583(0x1a8)]]=_0x54f910;}}}return logger[_0x444583(0x194)](_0x444583(0x185)+_0xc031f0[_0x444583(0x225)]+'\x20with\x20id\x20'+_0x1e8a62+_0x444583(0x235)+_0x44cac6),_0x33a797;}['createTestFrameworkEventPayload'](_0x2b23f6){const _0x5152ec=a91_0x3e654d,_0xa68c9f={};_0xa68c9f[_0x5152ec(0x1a6)]=_0x5152ec(0x1e4);const _0x1ae5de=_0xa68c9f;try{const _0xeede8e=_0x2b23f6[_0x5152ec(0x218)]?_0x2b23f6[_0x5152ec(0x218)]['id']:_0x2b23f6['hookData'][_0x5152ec(0x22a)],_0x26f013=_0x2b23f6['instance'],_0x3d5afe=_0x26f013[_0x5152ec(0x216)](),_0x5e6a56=_0x26f013[_0x5152ec(0x202)]()[_0x5152ec(0x203)](_0xeede8e);if(!_0x5e6a56)return logger['debug'](_0x5152ec(0x219)+_0xeede8e),{};logger[_0x5152ec(0x194)](_0x5152ec(0x236)+_0xeede8e);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x1fa76f='',[TestFrameworkConstants[_0x5152ec(0x1ba)]]:_0x436c28='',[TestFrameworkConstants[_0x5152ec(0x1c6)]]:_0x35a238='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0xaf8c37=''}=_0x5e6a56,_0x386a1a=_0x26f013[_0x5152ec(0x182)]()[_0x5152ec(0x21d)]()[_0x5152ec(0x1ee)]('.')[0x1],_0x4079c5=_0x26f013[_0x5152ec(0x16b)]()[_0x5152ec(0x21d)]()[_0x5152ec(0x1ee)]('.')[0x1],_0x152d00=global?.['browserstackPlatformIndex']??0x0,_0x2643c8=_0x26f013[_0x5152ec(0x198)](),_0xa1e69e=Buffer[_0x5152ec(0x223)](JSON[_0x5152ec(0x1c4)](_0x5e6a56))['toString'](_0x1ae5de[_0x5152ec(0x1a6)]),_0x2c14b8={'hash':_0x3d5afe['getId'](),'threadId':_0x3d5afe[_0x5152ec(0x1f4)]()[_0x5152ec(0x21d)](),'processId':_0x3d5afe['getProcessId']()[_0x5152ec(0x21d)]()},_0x4fc72f={};_0x4fc72f[_0x5152ec(0x1e9)]=_0x152d00,_0x4fc72f['testFrameworkName']=_0x1fa76f,_0x4fc72f[_0x5152ec(0x22f)]=_0x436c28,_0x4fc72f[_0x5152ec(0x1bf)]=_0x386a1a,_0x4fc72f[_0x5152ec(0x1d1)]=_0x4079c5,_0x4fc72f[_0x5152ec(0x1db)]=_0x35a238,_0x4fc72f[_0x5152ec(0x1f9)]=_0xaf8c37,_0x4fc72f['uuid']=_0x2643c8,_0x4fc72f[_0x5152ec(0x1f3)]=_0xa1e69e,_0x4fc72f[_0x5152ec(0x1de)]=_0x2c14b8;const _0xefe3f8=_0x4fc72f;return logger['debug'](_0x5152ec(0x1ab)+_0xeede8e+_0x5152ec(0x165)+_0x386a1a+_0x5152ec(0x1ae)+_0x4079c5),_0xefe3f8;}catch(_0x5ec636){return logger[_0x5152ec(0x19b)](_0x5152ec(0x184)+util[_0x5152ec(0x19e)](_0x5ec636)),{};}}async[a91_0x3e654d(0x1a9)](_0x593607,_0x53c372,_0x64faca){const _0x4e4d93=a91_0x3e654d,_0x3a26aa={'NKvrN':function(_0x4e11a5,_0x150e0f,_0x4d2321){return _0x4e11a5(_0x150e0f,_0x4d2321);},'UWrBx':function(_0x478fc6,_0x585f30){return _0x478fc6===_0x585f30;},'GosbN':_0x4e4d93(0x226),'TduBI':function(_0x5defd6,_0x2e0ebe){return _0x5defd6/_0x2e0ebe;},'pIcLm':function(_0x2cf69c,_0x402070){return _0x2cf69c<_0x402070;},'UjGLZ':function(_0x552932,_0x116dc2){return _0x552932*_0x116dc2;},'hjrKz':function(_0x5a1c39,_0x4cbccc){return _0x5a1c39+_0x4cbccc;},'gArUi':_0x4e4d93(0x170)};try{const _0x1528a4=_0x64faca[_0x4e4d93(0x17f)],_0xba1c53=_0x593607[_0x4e4d93(0x202)]()[_0x4e4d93(0x203)](_0x1528a4),{[TestFrameworkConstants[_0x4e4d93(0x20a)]]:_0xaf4aaa='',[TestFrameworkConstants[_0x4e4d93(0x1ba)]]:_0x3baa6b=''}=_0xba1c53,_0x43ae73=TestInfo[_0x4e4d93(0x173)](_0x1528a4),_0x4eb9de=TestInfo[_0x4e4d93(0x1e6)](_0x1528a4)[TestFrameworkConstants[_0x4e4d93(0x18f)]]||{},_0x3b12b3=_0x3a26aa[_0x4e4d93(0x1cd)](getMediaArtifactsLogs,_0x4eb9de,_0x593607[_0x4e4d93(0x202)]()[_0x4e4d93(0x203)](_0x1528a4)[TestFrameworkConstants[_0x4e4d93(0x189)]]),_0x44b1f6=(_0x43ae73||[])[_0x4e4d93(0x172)](_0x3b12b3||[]);if(!_0x44b1f6||_0x3a26aa[_0x4e4d93(0x16f)](_0x44b1f6['length'],0x0)){logger[_0x4e4d93(0x194)](_0x3a26aa[_0x4e4d93(0x1f1)]);return;}const _0x58442a=0x28,_0x26e2cb=Math[_0x4e4d93(0x21b)](_0x3a26aa[_0x4e4d93(0x1a2)](_0x44b1f6['length'],_0x58442a));for(let _0x1e73ec=0x0;_0x3a26aa[_0x4e4d93(0x231)](_0x1e73ec,_0x26e2cb);_0x1e73ec++){const _0x25185c=_0x3a26aa[_0x4e4d93(0x1d6)](_0x1e73ec,_0x58442a),_0x287f95=_0x3a26aa[_0x4e4d93(0x204)](_0x25185c,_0x58442a),_0x3454f0=_0x44b1f6['slice'](_0x25185c,_0x287f95),_0x2ee481={'platformIndex':global?.[_0x4e4d93(0x21f)]??0x0,'logs':_0x3454f0,'testFrameworkName':_0xaf4aaa,'testFrameworkVersion':_0x3baa6b,'testFrameworkState':_0x53c372[_0x4e4d93(0x21d)]()[_0x4e4d93(0x1ee)]('.')[0x1]};logger[_0x4e4d93(0x194)](_0x4e4d93(0x238)+_0x1528a4+'\x20batch\x20'+_0x3a26aa[_0x4e4d93(0x204)](_0x1e73ec,0x1)+'/'+_0x26e2cb+_0x4e4d93(0x21e)+util[_0x4e4d93(0x213)](_0x2ee481));const _0x47998b=await GrpcClient[_0x4e4d93(0x23a)]()[_0x4e4d93(0x1d7)](_0x2ee481);logger[_0x4e4d93(0x194)](_0x4e4d93(0x238)+_0x1528a4+_0x4e4d93(0x1cc)+_0x3a26aa[_0x4e4d93(0x204)](_0x1e73ec,0x1)+'/'+_0x26e2cb+_0x4e4d93(0x1fa)+util[_0x4e4d93(0x213)](_0x47998b));}}catch(_0x24782f){logger[_0x4e4d93(0x19b)]('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util['format'](_0x24782f));}logger['debug'](_0x3a26aa[_0x4e4d93(0x229)]);}[a91_0x3e654d(0x210)](_0x6e944e,_0x5f3edd,_0x42ef7d,_0x916c25,_0x41cfe1){const _0x20450f=a91_0x3e654d,_0xb22e9e={'testId':_0x5f3edd,'testFrameworkState':_0x42ef7d,'hookState':_0x916c25,'args':_0x41cfe1,'timestamp':new Date()[_0x20450f(0x1d9)]()};_0x6e944e['addPendingHook'](_0x5f3edd,_0xb22e9e),logger['debug'](_0x20450f(0x174)+_0x5f3edd+_0x20450f(0x237)+_0x42ef7d+',\x20hookState:\x20'+_0x916c25);}async[a91_0x3e654d(0x183)](_0x2d5333,_0x373089){const _0x13fe95=a91_0x3e654d,_0x18170d={};_0x18170d[_0x13fe95(0x17d)]=function(_0x1298e6,_0x78a0a0){return _0x1298e6>_0x78a0a0;};const _0x51734f=_0x18170d;if(!_0x2d5333[_0x13fe95(0x21a)](_0x373089))return;const _0x522d36=_0x2d5333['getPendingHooks'](_0x373089);logger['debug'](_0x13fe95(0x1e8)+_0x522d36['length']+_0x13fe95(0x233)+_0x373089);for(const _0x41cad5 of _0x522d36){try{const _0x1ff5f0=await this[_0x13fe95(0x228)](_0x2d5333,_0x41cad5[_0x13fe95(0x1bf)],_0x41cad5[_0x13fe95(0x1d1)],_0x41cad5[_0x13fe95(0x1e7)]);_0x1ff5f0&&_0x51734f[_0x13fe95(0x17d)](Object[_0x13fe95(0x227)](_0x1ff5f0)['length'],0x0)&&_0x2d5333['addMultipleEntries'](_0x1ff5f0),await this['runHooks'](_0x2d5333,_0x41cad5[_0x13fe95(0x1bf)],_0x41cad5[_0x13fe95(0x1d1)],_0x41cad5[_0x13fe95(0x1e7)]);}catch(_0x556071){logger[_0x13fe95(0x19b)]('Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20'+_0x373089+_0x13fe95(0x1af)+_0x556071);}}_0x2d5333[_0x13fe95(0x1b8)](_0x373089),logger[_0x13fe95(0x194)](_0x13fe95(0x1ec)+_0x373089);}}module[a91_0x3e654d(0x1c5)]=CucumberTestFramework;function a91_0x5936(_0x51adac,_0x51eef8){const _0x370f40=a91_0x370f();return a91_0x5936=function(_0x5936cf,_0x2d5cfb){_0x5936cf=_0x5936cf-0x164;let _0x4d6e1a=_0x370f40[_0x5936cf];return _0x4d6e1a;},a91_0x5936(_0x51adac,_0x51eef8);}function a91_0x370f(){const _0x58baef=['\x20and\x20args\x20=\x20','trackEvent','hOvbm','\x20batch\x20','NKvrN','../../../helpers/classLogger.js','createContext','11pdZeEU','hookState','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','getCurrentInstanceName','KEY_TEST_FILE_PATH','instance','UjGLZ','logCreatedEvent','NONE','toISOString','SfmVz','startedAt','1419162SRdeCT','./testFramework','executionContext','\x20target=','KEY_TEST_CODE','iJOkl','KEY_TEST_RESULT_AT','failure_type','base64','lQgwN','getTestDetails','args','Processing\x20','platformIndex','runHooks','DEFAULT_HOOK_RESULT','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','trackCucumberInstance','split','YeQjj','TEST','GosbN','KEY_TEST_TAGS','eventJson','getThreadId','74968mQjyhm','aYaoT','pop','zahLi','endedAt','\x20response=','KEY_TEST_RERUN_NAME','KEY_HOOK_LAST_STARTED','KEY_TEST_NAME','212910benFfU','KEY_HOOKS_FINISHED','lhHRY','KEY_TEST_LOGS','getAllData','get','hjrKz','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','HbNPD','KEY_TEST_RESULT','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','parseCucumberTestResult','KEY_TEST_FRAMEWORK_NAME','setTestDetails','qNYAE','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','setTrackedInstance','PRE','storePendingHook','INIT_TEST','KEY_TEST_META','inspect','261VQiqOD','trackCucumberInstance:\x20saved\x20instance\x20contextId=','getContext','length','test','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','hasPendingHooks','ceil','body','toString','\x20payload=','browserstackPlatformIndex','../state/testFrameworkState.js','KEY_HOOK_FAILURE','KEY_TEST_LOCATION','from','customRerunParam','hook_type','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','keys','trackHookEvent','gArUi','test_run_id','getTrackedInstance','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','7PQFlll','getTestFrameworksVersions','testFrameworkVersion','./constants/testFrameworkConstants.js','pIcLm','6ktmmrv','\x20pending\x20hooks\x20for\x20testId:\x20','469218AhPVIf','\x20for\x20test:\x20','createTestFrameworkEventPayload\x20testId:\x20',',\x20state:\x20','sendLogCreatedEvent:\x20for\x20testId:\x20','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','getInstance','bZkbO','util','\x20testState:\x20','getTestFrameworks','testData','LOG_REPORT','KEY_TEST_SCOPE','RDqzC','getCurrentHookState','4218410dkjAVw','rerun_name','RTdMx','UWrBx','Cucumber\x20log\x20created\x20event','KEY_TEST_FAILURE','concat','readLogObjects','Stored\x20pending\x20hook\x20for\x20testId:\x20','name','trackEvent:\x20unsupported\x20testFrameworkState=','bGasO','hooks','PKMac','failure','1970656ZClljL','finishedAt','CSNnC','\x20&\x20hook\x20=\x20','testUUID','299443quNSQE','WWtaw','getCurrentTestState','processPendingHooks','Error\x20in\x20createTestFrameworkEventPayload:\x20','Tracked\x20cucumber\x20hook\x20event:\x20','code','KEY_HOOK_NAME','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','KEY_TEST_UUID','KEY_HOOKS_STARTED','KEY_EVENT_STARTED_AT','tAbPs','finished_at','KEY_LOGS','KEY_TEST_ATTACHMENTS','../instances/testFrameworkInstance.js','KEY_TEST_FAILURE_REASON','HvJmY','failed','debug','bIeDT','MIffM','parseCucumberTest','getRef','DEFAULT_TEST_RESULT','\x20with\x20result:\x20','error','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','location','format','KEY_TEST_FAILURE_TYPE','KEY_TEST_ID','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','TduBI','../TestInfo.js','POST','getId','BATud','BySHH','KEY_HOOK_LAST_FINISHED','sendLogCreatedEvent','key','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','\x20with\x20UUID:\x20','addMultipleEntries','\x20hookState:\x20',',\x20error:\x20','KEY_HOOK_LOGS','unknown','push','UnhandledError','KEY_EVENT_ENDED_AT','meta','getTestUUID','uuid','removePendingHooks','Updated\x20cucumber\x20test\x20result:\x20','KEY_TEST_FRAMEWORK_VERSION','../grpcClient','file_name','KEY_CUSTOM_TAGS','KEY_TEST_SCOPES','testFrameworkState','scopes','resolveInstance','started_at','KEY_HOOK_RESULT','stringify','exports','KEY_TEST_STARTED_AT','KEY_HOOK_FAILURE_TYPE','result'];a91_0x370f=function(){return _0x58baef;};return a91_0x370f();}
|
|
1
|
+
function a91_0x3014(){const _0x122f64=['getTrackedInstance','getTestFrameworksVersions','DEFAULT_HOOK_RESULT','testFrameworkState','KEY_TEST_META','200625LadSaf','getId','readLogObjects','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','logCreatedEvent','KEY_HOOK_NAME','1763874NuysUd','5377330aaJKAJ','144POkOQr','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','Updated\x20cucumber\x20test\x20result:\x20','getProcessId','keys','name','lcxcI','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','trackCucumberInstance:\x20saved\x20instance\x20contextId=','PRE','scopes','wrpWi','DEFAULT_TEST_RESULT','UnhandledError','\x20payload=','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20',',\x20storing\x20as\x20pending\x20hook','KEY_TEST_LOGS','../TestInfo.js','KEY_TEST_LOCATION','Stored\x20pending\x20hook\x20for\x20testId:\x20','POST','hooks','KEY_TEST_FAILURE_REASON','../instances/trackedInstance.js','testUUID','KEY_EVENT_STARTED_AT','args','get','LOG_REPORT','KEY_TEST_SCOPE','getCurrentTestState','parseCucumberTestResult','lYuEi','KEY_TEST_ENDED_AT','hookData','instance','5lRxADA','startedAt','\x20with\x20UUID:\x20','vCOuM','removePendingHooks','browserstackPlatformIndex','format','ceil','getTestFrameworks','endedAt','../instances/testFrameworkInstance.js','code','stringify','JBrSd','Parsed\x20cucumber\x20test:\x20',',\x20state:\x20','trackEvent','KEY_HOOKS_STARTED','toISOString','\x20for\x20test:\x20','\x20with\x20result:\x20','meta','KEY_HOOK_FAILURE_REASON','KEY_TEST_TAGS','trackCucumberInstance','createTestFrameworkEventPayload','toString','runHooks','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_LOGS','\x20target=','storePendingHook','KEY_CUSTOM_TAGS','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','location','debug','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','addMultipleEntries','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','getContext','\x20and\x20args\x20=\x20','failure_type','failure','KEY_TEST_RESULT','tIodF','hook_type','bSfVX','DHvsL','key','failure_reason','../../../helpers/helper.js','CucumberTestFramework','../cliUtils.js','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','../../../helpers/classLogger.js','Processing\x20','iNOgk','VnXGi','setTrackedInstance','KEY_EVENT_ENDED_AT','sFRQt','KEY_HOOK_ID','sPjDk','concat','1023288wnwHDf','push','util','KEY_TEST_FAILURE','KEY_AUTOMATE_SESSION_NAME','getAllData','finished_at','result','trackHookEvent','KEY_TEST_NAME','277708gexGOI','ExIMp','hasPendingHooks','\x20with\x20id\x20','aozDC','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','failed','test','passed','KEY_TEST_ATTACHMENTS','cVAFy','KEY_TEST_UUID','../state/hookState.js','hookState','\x20response=','KEY_TEST_FRAMEWORK_NAME','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','Tracked\x20cucumber\x20hook\x20event:\x20','failure_data','ebHjv','setTestDetails','tsVCz','getRef','1266BDMDjb','\x20&\x20hookState=','KEY_TEST_FAILURE_TYPE','Cucumber\x20log\x20created\x20event','test_run_id','platformIndex','KEY_TEST_SCOPES','jrZta','\x20hookState:\x20','aFXfR','528WqmsbU','pop','mvdqe','KEY_TEST_RESULT_AT','parseCucumberTest','KEY_HOOK_RESULT','KvZpb','split','processPendingHooks','../state/testFrameworkState.js','addPendingHook','finishedAt','GGIwt','\x20batch\x20','../grpcClient','getPendingHooks','\x20&\x20hook\x20=\x20','error','createContext','KEY_HOOKS_FINISHED','getTestDetails','NONE','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','getCurrentInstanceName','EbOLV','uuid','testFrameworkName','inspect','KEY_HOOK_FAILURE_TYPE','ramgz','base64','XEtaV','covoZ','rerun_name','KEY_HOOK_LAST_FINISHED','sendLogCreatedEvent:\x20for\x20testId:\x20','TEST','fcTES','matchHookRegex','KEY_TEST_RERUN_NAME','sendLogCreatedEvent','21406VldeiE','KEY_TEST_STARTED_AT','length',',\x20state=','KEY_TEST_FRAMEWORK_VERSION','started_at'];a91_0x3014=function(){return _0x122f64;};return a91_0x3014();}const a91_0xf3f829=a91_0x501b;(function(_0x3b9b9a,_0x587e3d){const _0x352768=a91_0x501b,_0x1cfb9d=_0x3b9b9a();while(!![]){try{const _0x338dd9=parseInt(_0x352768(0x1b8))/0x1*(-parseInt(_0x352768(0x172))/0x2)+-parseInt(_0x352768(0x1b0))/0x3+-parseInt(_0x352768(0x15b))/0x4+parseInt(_0x352768(0x1dd))/0x5*(-parseInt(_0x352768(0x21d))/0x6)+-parseInt(_0x352768(0x1a5))/0x7*(parseInt(_0x352768(0x17c))/0x8)+parseInt(_0x352768(0x1b6))/0x9+parseInt(_0x352768(0x1b7))/0xa;if(_0x338dd9===_0x587e3d)break;else _0x1cfb9d['push'](_0x1cfb9d['shift']());}catch(_0x5d3c3d){_0x1cfb9d['push'](_0x1cfb9d['shift']());}}}(a91_0x3014,0x20b01));function a91_0x501b(_0x10a1d0,_0x5446ec){const _0x3014eb=a91_0x3014();return a91_0x501b=function(_0x501bd0,_0xe14016){_0x501bd0=_0x501bd0-0x15a;let _0x19fde9=_0x3014eb[_0x501bd0];return _0x19fde9;},a91_0x501b(_0x10a1d0,_0x5446ec);}const TestFramework=require('./testFramework'),TestFrameworkState=require(a91_0xf3f829(0x185)),HookState=require(a91_0xf3f829(0x167)),{createClassLogger}=require(a91_0xf3f829(0x213)),TestFrameworkInstance=require(a91_0xf3f829(0x1e7)),CLIUtils=require(a91_0xf3f829(0x211)),TrackedInstance=require(a91_0xf3f829(0x1d0)),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0xf3f829(0x20f)),logger=createClassLogger(a91_0xf3f829(0x210)),{v4:uuidv4}=require('uuid'),util=require(a91_0xf3f829(0x21f)),TestInfo=require(a91_0xf3f829(0x1ca)),GrpcClient=require(a91_0xf3f829(0x18a));class CucumberTestFramework extends TestFramework{constructor(_0x33b565,_0x1e141e,_0x22b3cc){super(_0x33b565,_0x1e141e,_0x22b3cc);}async[a91_0xf3f829(0x1ed)](_0x26b03c,_0x4fe76a,_0x30aa1e={}){const _0x633bd6=a91_0xf3f829,_0x2db429={};_0x2db429[_0x633bd6(0x219)]=_0x633bd6(0x203),_0x2db429[_0x633bd6(0x15f)]=function(_0x800862,_0x2b9f8e){return _0x800862===_0x2b9f8e;},_0x2db429['wrpWi']=_0x633bd6(0x1bf);const _0x5dd5cc=_0x2db429;await super['trackEvent'](_0x26b03c,_0x4fe76a,_0x30aa1e);const _0x7da2c0=this['resolveInstance'](_0x26b03c,_0x4fe76a,_0x30aa1e);if(!_0x7da2c0){logger[_0x633bd6(0x200)](_0x5dd5cc['sFRQt']);return;}try{let _0xde5c31,_0x24b98f;switch(_0x26b03c){case TestFrameworkState['TEST']:_0xde5c31=_0x30aa1e[_0x633bd6(0x162)],_0x24b98f=TestInfo['getTestUUID'](_0xde5c31['id']);if(_0x5dd5cc[_0x633bd6(0x15f)](_0x4fe76a,HookState[_0x633bd6(0x1c1)])){logger[_0x633bd6(0x200)](_0x633bd6(0x192)+_0xde5c31['id']);const _0x5b94a2={};_0x5b94a2['testUUID']=_0x24b98f,_0x5b94a2['testData']=_0xde5c31,_0x7da2c0[_0x633bd6(0x202)](this[_0x633bd6(0x180)](_0x5b94a2)),logger[_0x633bd6(0x200)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0xde5c31['id']),await this[_0x633bd6(0x184)](_0x7da2c0,_0xde5c31['id']);}else{if(_0x5dd5cc['aozDC'](_0x4fe76a,HookState[_0x633bd6(0x1cd)])){const _0x341d5c={};_0x341d5c[_0x633bd6(0x1d1)]=_0x24b98f,_0x341d5c['testData']=_0xde5c31,_0x7da2c0['addMultipleEntries'](this[_0x633bd6(0x1d8)](_0x341d5c)),await this[_0x633bd6(0x184)](_0x7da2c0,_0xde5c31['id']);}}break;case TestFrameworkState[_0x633bd6(0x1d5)]:_0x5dd5cc[_0x633bd6(0x15f)](_0x4fe76a,HookState[_0x633bd6(0x1cd)])&&await this['sendLogCreatedEvent'](_0x7da2c0,_0x26b03c,_0x30aa1e);break;default:if(CLIUtils[_0x633bd6(0x1a2)](_0x26b03c[_0x633bd6(0x1f7)]()[_0x633bd6(0x183)]('.')[0x1])){const _0x331017=await this['trackHookEvent'](_0x7da2c0,_0x26b03c,_0x4fe76a,_0x30aa1e);_0x7da2c0[_0x633bd6(0x202)](_0x331017);}else logger[_0x633bd6(0x200)]('trackEvent:\x20unsupported\x20testFrameworkState='+_0x26b03c+_0x633bd6(0x173)+_0x4fe76a);break;}}catch(_0x552b8c){logger['error'](util['format'](_0x5dd5cc[_0x633bd6(0x1c3)],_0x26b03c,_0x4fe76a,_0x30aa1e[_0x633bd6(0x1a7)],_0x552b8c));}_0x30aa1e[_0x633bd6(0x1dc)]=_0x7da2c0,await this[_0x633bd6(0x1f8)](_0x7da2c0,_0x26b03c,_0x4fe76a,_0x30aa1e);}['resolveInstance'](_0x3e4df3,_0x4920c7,_0x37c147={}){const _0x2c1045=a91_0xf3f829,_0x164ba4={};_0x164ba4[_0x2c1045(0x1a1)]=function(_0x15fbab,_0x2a1127){return _0x15fbab===_0x2a1127;},_0x164ba4[_0x2c1045(0x194)]=function(_0x4b1cf7,_0x5f2f70){return _0x4b1cf7===_0x5f2f70;};const _0x211353=_0x164ba4;let _0x5319ab=null;return(_0x211353[_0x2c1045(0x1a1)](_0x3e4df3,TestFrameworkState['INIT_TEST'])||_0x211353[_0x2c1045(0x194)](_0x3e4df3,TestFrameworkState[_0x2c1045(0x191)]))&&this[_0x2c1045(0x1f5)](_0x3e4df3,_0x37c147),_0x5319ab=TestFramework[_0x2c1045(0x1ab)](),_0x5319ab;}[a91_0xf3f829(0x1f5)](_0x2160c3,_0x42c897){const _0x3d79ea=a91_0xf3f829,_0x3d67c4=CLIUtils[_0x3d79ea(0x193)](),_0x2b33f6=TrackedInstance[_0x3d79ea(0x18e)](_0x3d67c4);let _0x15b289=null;logger[_0x3d79ea(0x200)]('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0x3d67c4+_0x3d79ea(0x1a8)+_0x2160c3),_0x15b289=new TestFrameworkInstance(_0x2b33f6,this[_0x3d79ea(0x1e5)](),this[_0x3d79ea(0x1ac)](),_0x2160c3,HookState[_0x3d79ea(0x191)]),TestFramework[_0x3d79ea(0x217)](_0x2b33f6,_0x15b289),logger['debug'](_0x3d79ea(0x1c0)+_0x2b33f6['getId']()+_0x3d79ea(0x1fb)+_0x3d67c4);}[a91_0xf3f829(0x180)](_0x3d8e7d){const _0x582f30=a91_0xf3f829,_0x6dd33f={};_0x6dd33f[_0x582f30(0x17e)]='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x3bee0e=_0x6dd33f,{testUUID:_0x29df0a,testData:_0xed7899}=_0x3d8e7d;if(!_0xed7899||!_0xed7899['uuid'])return logger[_0x582f30(0x200)](_0x3bee0e['mvdqe']),{};const _0x12d4e1=_0x29df0a,_0x5820ee=_0xed7899[_0x582f30(0x195)],_0x2a26b1=this['getTestFrameworks']()[0x0],_0x1213fc=this[_0x582f30(0x1ac)](),_0x5970bd={[TestFrameworkConstants[_0x582f30(0x16a)]]:_0x2a26b1,[TestFrameworkConstants[_0x582f30(0x1a9)]]:_0x1213fc[_0x2a26b1],[TestFrameworkConstants[_0x582f30(0x1c9)]]:[],[TestFrameworkConstants[_0x582f30(0x18f)]]:{},[TestFrameworkConstants[_0x582f30(0x1ee)]]:{},[TestFrameworkConstants[_0x582f30(0x166)]]:_0x12d4e1,[TestFrameworkConstants[_0x582f30(0x208)]]:TestFrameworkConstants[_0x582f30(0x1c4)],[TestFrameworkConstants[_0x582f30(0x221)]]:_0xed7899['name']||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0xed7899['file_name']||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x5820ee,[TestFrameworkConstants[_0x582f30(0x15a)]]:_0xed7899['name']||'',[TestFrameworkConstants[_0x582f30(0x1cb)]]:_0xed7899[_0x582f30(0x1ff)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0xed7899['body']?.[_0x582f30(0x1e8)]||null,[TestFrameworkConstants[_0x582f30(0x1f4)]]:_0xed7899['tags']||[],[TestFrameworkConstants[_0x582f30(0x1a6)]]:_0xed7899[_0x582f30(0x1de)]||new Date()[_0x582f30(0x1ef)](),[TestFrameworkConstants[_0x582f30(0x1d6)]]:_0xed7899[_0x582f30(0x1c2)]?.[0x0]||'',[TestFrameworkConstants[_0x582f30(0x178)]]:_0xed7899[_0x582f30(0x1c2)]||[],[TestFrameworkConstants[_0x582f30(0x1a3)]]:_0xed7899['customRerunParam']?.[_0x582f30(0x19d)]||_0xed7899[_0x582f30(0x1bd)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants[_0x582f30(0x1af)]]:_0xed7899['meta']||{}};TestInfo[_0x582f30(0x16f)](_0x5820ee,_0x5970bd),logger['debug'](_0x582f30(0x1eb)+_0xed7899['name']+_0x582f30(0x1df)+_0x12d4e1);const _0x4b4ed8={};return _0x4b4ed8[_0x5820ee]=_0x5970bd,_0x4b4ed8;}[a91_0xf3f829(0x1d8)](_0x31bb4b){const _0x48e0a7=a91_0xf3f829,_0x335c39={'iNOgk':'No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','bSfVX':'unknown','KYITm':function(_0x1886ea,_0x6bfeb9){return _0x1886ea===_0x6bfeb9;},'lwpUi':_0x48e0a7(0x161),'ePzsG':'UnhandledError','vCOuM':function(_0x2af03c,_0x777b0e,_0x45b982){return _0x2af03c(_0x777b0e,_0x45b982);},'cVAFy':function(_0x1434cc,_0x38ae2d){return _0x1434cc>_0x38ae2d;}},{testUUID:_0x1bad1f,testData:_0x849b98}=_0x31bb4b;if(!_0x849b98||!_0x849b98['uuid'])return logger[_0x48e0a7(0x200)](_0x335c39[_0x48e0a7(0x215)]),{};const _0x137d4b=this['resolveInstance'](TestFrameworkState[_0x48e0a7(0x1a0)],HookState['POST']),_0x46f877=_0x849b98['uuid'],_0x7b33c5=TestInfo[_0x48e0a7(0x190)](_0x46f877)||{},_0x2bf624=_0x7b33c5?_0x7b33c5[TestFrameworkConstants[_0x48e0a7(0x1fd)]]||{}:{},_0x546b3d={..._0x7b33c5,[TestFrameworkConstants[_0x48e0a7(0x208)]]:_0x849b98[_0x48e0a7(0x224)]||_0x335c39[_0x48e0a7(0x20b)],[TestFrameworkConstants[_0x48e0a7(0x1da)]]:_0x849b98[_0x48e0a7(0x187)]||new Date()[_0x48e0a7(0x1ef)](),[TestFrameworkConstants[_0x48e0a7(0x17f)]]:new Date()[_0x48e0a7(0x1ef)](),[TestFrameworkConstants[_0x48e0a7(0x1fd)]]:_0x2bf624,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x849b98[_0x48e0a7(0x1f2)]||{}};_0x335c39['KYITm'](_0x849b98[_0x48e0a7(0x224)],_0x335c39['lwpUi'])&&_0x849b98[_0x48e0a7(0x207)]&&(_0x546b3d[TestFrameworkConstants[_0x48e0a7(0x174)]]=_0x849b98['failure_type']||_0x335c39['ePzsG'],_0x546b3d[TestFrameworkConstants[_0x48e0a7(0x1cf)]]=_0x849b98[_0x48e0a7(0x20e)]||'',_0x546b3d[TestFrameworkConstants[_0x48e0a7(0x220)]]=_0x849b98[_0x48e0a7(0x207)]);const _0x58ebeb=TestInfo[_0x48e0a7(0x190)](_0x46f877)[TestFrameworkConstants[_0x48e0a7(0x164)]]||{},_0x489239=_0x335c39[_0x48e0a7(0x1e0)](getManualUploadLogs,_0x58ebeb,_0x137d4b[_0x48e0a7(0x222)]()[_0x48e0a7(0x1d4)](_0x46f877)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x335c39[_0x48e0a7(0x165)](_0x489239[_0x48e0a7(0x1a7)],0x0)){const _0x39e100=_0x546b3d[TestFrameworkConstants[_0x48e0a7(0x1fa)]]||[];_0x546b3d[TestFrameworkConstants[_0x48e0a7(0x1fa)]]=[..._0x39e100,..._0x489239];}_0x849b98['hooks']&&_0x335c39[_0x48e0a7(0x165)](_0x849b98[_0x48e0a7(0x1ce)]['length'],0x0)&&(_0x546b3d[TestFrameworkConstants[_0x48e0a7(0x18f)]]=_0x849b98[_0x48e0a7(0x1ce)]);TestInfo[_0x48e0a7(0x16f)](_0x46f877,_0x546b3d),logger['debug'](_0x48e0a7(0x1ba)+_0x849b98['name']+_0x48e0a7(0x1f1)+_0x849b98['result']);const _0x157b83={};return _0x157b83[_0x46f877]=_0x546b3d,_0x157b83;}async[a91_0xf3f829(0x225)](_0x5a8053,_0x338e6f,_0x590fb1,_0x58676b){const _0x4e71be=a91_0xf3f829,_0x492fd4={'KvZpb':_0x4e71be(0x212),'jrZta':function(_0x3ad82a){return _0x3ad82a();},'covoZ':function(_0x14afbe,_0x135cf3){return _0x14afbe in _0x135cf3;},'XEtaV':function(_0x400e2c,_0x14cc8a){return _0x400e2c===_0x14cc8a;},'VnXGi':function(_0x50ce0f,_0x254de0){return _0x50ce0f>_0x254de0;},'tsVCz':function(_0x1d66a8,_0x251f79){return _0x1d66a8===_0x251f79;},'hrnmb':'failed','lYuEi':_0x4e71be(0x1c5),'GGIwt':_0x4e71be(0x163),'lcxcI':function(_0x5ce6a4,_0x14a03f){return _0x5ce6a4!==_0x14a03f;}},{hookData:_0x5b31ce}=_0x58676b;if(!_0x5b31ce)return logger[_0x4e71be(0x200)](_0x492fd4[_0x4e71be(0x182)]),{};const _0x3e0895=_0x5b31ce[_0x4e71be(0x195)]||_0x492fd4[_0x4e71be(0x179)](uuidv4),_0x1ebbd6=_0x5b31ce[_0x4e71be(0x176)],_0xf6813c=_0x338e6f[_0x4e71be(0x1f7)]()['split']('.')[0x1],_0x3d67da=TestInfo[_0x4e71be(0x190)](_0x1ebbd6)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x2a95ee=_0x5a8053[_0x4e71be(0x222)]()[_0x4e71be(0x1d4)](_0x1ebbd6);if(!_0x2a95ee)return logger['debug'](_0x4e71be(0x1f9)+_0x1ebbd6+_0x4e71be(0x1c8)),this['storePendingHook'](_0x5a8053,_0x1ebbd6,_0x338e6f,_0x590fb1,_0x58676b),{};let _0x13ebeb=_0x2a95ee[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x13ebeb&&(_0x13ebeb={});!_0x492fd4[_0x4e71be(0x19c)](_0xf6813c,_0x13ebeb)&&(_0x13ebeb[_0xf6813c]=[]);let _0x4fdca6=_0x2a95ee[TestFrameworkConstants[_0x4e71be(0x18f)]];!_0x4fdca6&&(_0x4fdca6={});!_0x492fd4[_0x4e71be(0x19c)](_0xf6813c,_0x4fdca6)&&(_0x4fdca6[_0xf6813c]=[]);const _0x11532e={[TestFrameworkConstants[_0x4e71be(0x1ee)]]:_0x13ebeb,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x4fdca6},_0x559cf8={};_0x559cf8[_0x1ebbd6]=_0x11532e;const _0x14cafe=_0x559cf8;if(_0x492fd4[_0x4e71be(0x19b)](_0x590fb1,HookState['PRE'])){const _0x267cd7={[TestFrameworkConstants[_0x4e71be(0x21a)]]:_0x3e0895,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants[_0x4e71be(0x1d2)]]:_0x5b31ce[_0x4e71be(0x1aa)],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants[_0x4e71be(0x1b5)]]:_0x5b31ce[_0x4e71be(0x20a)],[TestFrameworkConstants[_0x4e71be(0x1fd)]]:_0x3d67da};_0x267cd7[_0x4e71be(0x20d)]=_0xf6813c;const _0x4a18bd=_0x267cd7;_0x13ebeb[_0xf6813c][_0x4e71be(0x21e)](_0x4a18bd),_0x14cafe[_0x1ebbd6][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0xf6813c,logger['debug'](_0x4e71be(0x1b3)+_0xf6813c+_0x4e71be(0x18c)+_0x4a18bd+'\x20\x20and\x20args\x20=\x20'+_0x58676b);}else{if(_0x492fd4[_0x4e71be(0x19b)](_0x590fb1,HookState[_0x4e71be(0x1cd)])){const _0x161354=_0x5b31ce[_0x4e71be(0x224)],_0x1ab965=_0x13ebeb[_0xf6813c]||[];logger[_0x4e71be(0x200)](_0x4e71be(0x1c7)+_0x1ab965+_0x4e71be(0x205)+_0x58676b);if(_0x492fd4[_0x4e71be(0x216)](_0x1ab965['length'],0x0)){const _0x369c11=_0x1ab965[_0x4e71be(0x17d)]();_0x492fd4[_0x4e71be(0x170)](_0x5b31ce[_0x4e71be(0x224)],_0x492fd4['hrnmb'])&&_0x5b31ce[_0x4e71be(0x16d)]?(_0x369c11[TestFrameworkConstants[_0x4e71be(0x198)]]=_0x5b31ce[_0x4e71be(0x206)]||_0x492fd4[_0x4e71be(0x1d9)],_0x369c11[TestFrameworkConstants[_0x4e71be(0x1f3)]]=_0x5b31ce[_0x4e71be(0x20e)]||'',_0x369c11[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0x5b31ce['failure_data']):_0x369c11[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x492fd4[_0x4e71be(0x188)];_0x492fd4[_0x4e71be(0x1be)](_0x161354,TestFrameworkConstants[_0x4e71be(0x1ad)])&&(_0x369c11[TestFrameworkConstants[_0x4e71be(0x181)]]=_0x161354);_0x369c11[TestFrameworkConstants[_0x4e71be(0x218)]]=_0x5b31ce[_0x4e71be(0x223)]||new Date()[_0x4e71be(0x1ef)](),_0x369c11[TestFrameworkConstants[_0x4e71be(0x1fd)]]=_0x3d67da;const _0x4b4f6d=_0x369c11[TestFrameworkConstants['KEY_HOOK_ID']];!_0x4fdca6[_0xf6813c]&&(_0x4fdca6[_0xf6813c]=[]),_0x4fdca6[_0xf6813c][_0x4e71be(0x21e)](_0x369c11),_0x14cafe[_0x1ebbd6][TestFrameworkConstants[_0x4e71be(0x19e)]]=_0xf6813c;}}}return logger['debug'](_0x4e71be(0x16c)+_0x5b31ce[_0x4e71be(0x20a)]+_0x4e71be(0x15e)+_0x3e0895+_0x4e71be(0x1f0)+_0x1ebbd6),_0x14cafe;}[a91_0xf3f829(0x1f6)](_0x1fed75){const _0x117a9c=a91_0xf3f829,_0xed7ac8={};_0xed7ac8['ebHjv']=_0x117a9c(0x19a);const _0x47d4a0=_0xed7ac8;try{const _0x250f6c=_0x1fed75['test']?_0x1fed75[_0x117a9c(0x162)]['id']:_0x1fed75[_0x117a9c(0x1db)][_0x117a9c(0x176)],_0x3b39ee=_0x1fed75[_0x117a9c(0x1dc)],_0x2791e4=_0x3b39ee[_0x117a9c(0x204)](),_0x3b3b42=_0x3b39ee[_0x117a9c(0x222)]()['get'](_0x250f6c);if(!_0x3b3b42)return logger[_0x117a9c(0x200)](_0x117a9c(0x16b)+_0x250f6c),{};logger['debug']('createTestFrameworkEventPayload\x20testId:\x20'+_0x250f6c);const {[TestFrameworkConstants[_0x117a9c(0x16a)]]:_0x2c1723='',[TestFrameworkConstants[_0x117a9c(0x1a9)]]:_0x52557a='',[TestFrameworkConstants[_0x117a9c(0x1a6)]]:_0x4db48f='',[TestFrameworkConstants[_0x117a9c(0x1da)]]:_0x59d0b1=''}=_0x3b3b42,_0x27312c=_0x3b39ee[_0x117a9c(0x1d7)]()[_0x117a9c(0x1f7)]()[_0x117a9c(0x183)]('.')[0x1],_0x332eb2=_0x3b39ee['getCurrentHookState']()[_0x117a9c(0x1f7)]()[_0x117a9c(0x183)]('.')[0x1],_0x2e3165=global?.[_0x117a9c(0x1e2)]??0x0,_0x3674d1=_0x3b39ee[_0x117a9c(0x171)](),_0x218693=Buffer['from'](JSON[_0x117a9c(0x1e9)](_0x3b3b42))[_0x117a9c(0x1f7)](_0x47d4a0[_0x117a9c(0x16e)]),_0x13285c={'hash':_0x2791e4[_0x117a9c(0x1b1)](),'threadId':_0x2791e4['getThreadId']()['toString'](),'processId':_0x2791e4[_0x117a9c(0x1bb)]()[_0x117a9c(0x1f7)]()},_0x3ca6b4={};_0x3ca6b4[_0x117a9c(0x177)]=_0x2e3165,_0x3ca6b4[_0x117a9c(0x196)]=_0x2c1723,_0x3ca6b4['testFrameworkVersion']=_0x52557a,_0x3ca6b4['testFrameworkState']=_0x27312c,_0x3ca6b4['hookState']=_0x332eb2,_0x3ca6b4['startedAt']=_0x4db48f,_0x3ca6b4[_0x117a9c(0x1e6)]=_0x59d0b1,_0x3ca6b4[_0x117a9c(0x195)]=_0x3674d1,_0x3ca6b4['eventJson']=_0x218693,_0x3ca6b4['executionContext']=_0x13285c;const _0x461151=_0x3ca6b4;return logger['debug']('createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20'+_0x250f6c+'\x20testState:\x20'+_0x27312c+_0x117a9c(0x17a)+_0x332eb2),_0x461151;}catch(_0x3bceb1){return logger[_0x117a9c(0x18d)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x117a9c(0x1e3)](_0x3bceb1)),{};}}async[a91_0xf3f829(0x1a4)](_0x32ffeb,_0x3c0cc9,_0x14ff25){const _0x5c6e92=a91_0xf3f829,_0x798514={'ExIMp':function(_0x2c2d6e,_0x21c6aa,_0x359cca){return _0x2c2d6e(_0x21c6aa,_0x359cca);},'JBrSd':function(_0x189a37,_0x4eceb1){return _0x189a37===_0x4eceb1;},'DHvsL':_0x5c6e92(0x201),'sPjDk':function(_0x4d55f2,_0x7cf287){return _0x4d55f2/_0x7cf287;},'sxGTj':function(_0x59a2af,_0x3ce83f){return _0x59a2af<_0x3ce83f;},'tIodF':function(_0x1c2cf6,_0x1f750d){return _0x1c2cf6*_0x1f750d;},'ramgz':function(_0x5708d4,_0x513896){return _0x5708d4+_0x513896;},'apAQK':_0x5c6e92(0x175)};try{const _0x139d76=_0x14ff25[_0x5c6e92(0x1d1)],_0x15f1a1=_0x32ffeb['getAllData']()[_0x5c6e92(0x1d4)](_0x139d76),{[TestFrameworkConstants[_0x5c6e92(0x16a)]]:_0x4a9df6='',[TestFrameworkConstants[_0x5c6e92(0x1a9)]]:_0x30d1ee=''}=_0x15f1a1,_0x185940=TestInfo[_0x5c6e92(0x1b2)](_0x139d76),_0x2c72a3=TestInfo[_0x5c6e92(0x190)](_0x139d76)[TestFrameworkConstants[_0x5c6e92(0x164)]]||{},_0xeba752=_0x798514[_0x5c6e92(0x15c)](getMediaArtifactsLogs,_0x2c72a3,_0x32ffeb['getAllData']()['get'](_0x139d76)[TestFrameworkConstants[_0x5c6e92(0x166)]]),_0x3fe368=(_0x185940||[])[_0x5c6e92(0x21c)](_0xeba752||[]);if(!_0x3fe368||_0x798514[_0x5c6e92(0x1ea)](_0x3fe368[_0x5c6e92(0x1a7)],0x0)){logger[_0x5c6e92(0x200)](_0x798514[_0x5c6e92(0x20c)]);return;}const _0x33183d=0x28,_0x540441=Math[_0x5c6e92(0x1e4)](_0x798514[_0x5c6e92(0x21b)](_0x3fe368[_0x5c6e92(0x1a7)],_0x33183d));for(let _0x5a30b9=0x0;_0x798514['sxGTj'](_0x5a30b9,_0x540441);_0x5a30b9++){const _0x27ee1a=_0x798514[_0x5c6e92(0x209)](_0x5a30b9,_0x33183d),_0x506594=_0x798514[_0x5c6e92(0x199)](_0x27ee1a,_0x33183d),_0x191702=_0x3fe368['slice'](_0x27ee1a,_0x506594),_0x1d7f16={'platformIndex':global?.[_0x5c6e92(0x1e2)]??0x0,'logs':_0x191702,'testFrameworkName':_0x4a9df6,'testFrameworkVersion':_0x30d1ee,'testFrameworkState':_0x3c0cc9[_0x5c6e92(0x1f7)]()['split']('.')[0x1]};logger[_0x5c6e92(0x200)](_0x5c6e92(0x19f)+_0x139d76+_0x5c6e92(0x189)+_0x798514[_0x5c6e92(0x199)](_0x5a30b9,0x1)+'/'+_0x540441+_0x5c6e92(0x1c6)+util[_0x5c6e92(0x197)](_0x1d7f16));const _0x4d4a34=await GrpcClient['getInstance']()[_0x5c6e92(0x1b4)](_0x1d7f16);logger['debug'](_0x5c6e92(0x19f)+_0x139d76+_0x5c6e92(0x189)+_0x798514[_0x5c6e92(0x199)](_0x5a30b9,0x1)+'/'+_0x540441+_0x5c6e92(0x169)+util[_0x5c6e92(0x197)](_0x4d4a34));}}catch(_0xa620b){logger[_0x5c6e92(0x18d)](_0x5c6e92(0x1fe)+util['format'](_0xa620b));}logger[_0x5c6e92(0x200)](_0x798514['apAQK']);}[a91_0xf3f829(0x1fc)](_0x59f152,_0x459393,_0x274492,_0x495b60,_0x466f6a){const _0x1a5581=a91_0xf3f829,_0x547976={'testId':_0x459393,'testFrameworkState':_0x274492,'hookState':_0x495b60,'args':_0x466f6a,'timestamp':new Date()[_0x1a5581(0x1ef)]()};_0x59f152[_0x1a5581(0x186)](_0x459393,_0x547976),logger[_0x1a5581(0x200)](_0x1a5581(0x1cc)+_0x459393+_0x1a5581(0x1ec)+_0x274492+',\x20hookState:\x20'+_0x495b60);}async[a91_0xf3f829(0x184)](_0x10f628,_0x1ce634){const _0x5b7d36=a91_0xf3f829,_0x3da2dc={};_0x3da2dc[_0x5b7d36(0x17b)]=function(_0x1d38e9,_0xb13220){return _0x1d38e9>_0xb13220;};const _0x8b22e=_0x3da2dc;if(!_0x10f628[_0x5b7d36(0x15d)](_0x1ce634))return;const _0x252923=_0x10f628[_0x5b7d36(0x18b)](_0x1ce634);logger[_0x5b7d36(0x200)](_0x5b7d36(0x214)+_0x252923[_0x5b7d36(0x1a7)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x1ce634);for(const _0x5e058c of _0x252923){try{const _0xb0da=await this[_0x5b7d36(0x225)](_0x10f628,_0x5e058c[_0x5b7d36(0x1ae)],_0x5e058c['hookState'],_0x5e058c[_0x5b7d36(0x1d3)]);_0xb0da&&_0x8b22e[_0x5b7d36(0x17b)](Object[_0x5b7d36(0x1bc)](_0xb0da)[_0x5b7d36(0x1a7)],0x0)&&_0x10f628[_0x5b7d36(0x202)](_0xb0da),await this['runHooks'](_0x10f628,_0x5e058c['testFrameworkState'],_0x5e058c[_0x5b7d36(0x168)],_0x5e058c[_0x5b7d36(0x1d3)]);}catch(_0x2df528){logger[_0x5b7d36(0x18d)](_0x5b7d36(0x1b9)+_0x1ce634+',\x20error:\x20'+_0x2df528);}}_0x10f628[_0x5b7d36(0x1e1)](_0x1ce634),logger['debug'](_0x5b7d36(0x160)+_0x1ce634);}}module['exports']=CucumberTestFramework;
|