browserstack-node-sdk 1.64.2 → 1.64.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/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/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/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/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/ai-sdk-node/bundle.js +0 -1
- package/src/ai-sdk-node/extensions/chrome_extension.crx +0 -0
- package/src/bin/mocha/test-observability/builderPatch.js +0 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +0 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +0 -1
- package/src/helpers/timeoutPromise.js +0 -1
package/src/bin/v2/cliUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a85_0x34abc2=a85_0x2ce1;function a85_0x519f(){const _0x3cfa3d=['Yivnu','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','cli_version','Krytm','../../helpers/utilities','mtime','isBinaryBusy','skipSessionStatus','vgyJC','automationFrameworkDetail','Resolved\x20binary\x20path:\x20','aKCqx','development','CLI\x20version\x20found\x20despite\x20error:\x20\x22','0755','downloaded_file_','DOWNLOAD_HTTP','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','BAwfu','Failed\x20to\x20delete\x20zip\x20file:\x20','data','concat','close','7304670ynAvSR','Resolving\x20with\x20stdout:\x20\x22','lazyEntries','hALTr','LPNKm','ynwHW','mergeObject','SHELL_EXECUTE_ERROR','TDrQe','Folder\x20','split','VjTQP','28yDmwMm','code','getCurrentInstanceName','arch','end','IGQRv','testContextOptions','yteHP','fcpnR','downloadLatestBinary','FMlfl','map','../../helpers/performance/constants','VFwCJ','getSdkLanguage','MvwPK','3625296VOgajv','zctWK','GglNA','bVbur','uvCeg','../utils/constants','\x20from\x20','juMfv','BROWSERSTACK_FILES_DIR','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','BaPsd','291400kVVCGf','oxFuN','util','.sock','GET','../../helpers/test-observability/utils.js','BROWSERSTACK_BINARY_URL','dBPke','binary-','chmod','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','Downloading\x20SDK\x20binary\x20from:\x20','JtdIg','pipe','url','trim','HEPMG','follow-redirects','info','getSdkVersion','hmwIE','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','open','coWiY','AajQo','HOOK_REGEX','kPRzI','yauzl','\x20version','1335036EchLmc','getCliDir','.zip','format','UdmBN','OGvai','vPZVt','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','SDK_CLI_CHECK_UPDATE','oOpRi','Error\x20while\x20reading\x20CLI\x20path:\x20','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','shouldSkipSessionStatus','copyFileSync','cwd','filePath','BROWSERSTACK_CLI_ENV','5890654RHWGGB','testFrameworkDetail','checkAndUpdateCli','hNYCI','version','join','\x20already\x20exists','homedir','McZrF','statusCode','message','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','platform','.browserstack','vcvzB','unix:/tmp/sdk-platform-','nZMrg','openSync','MMgcO','Binary\x20is\x20busy:\x20','uCEJf','test','qUsGb','353049CyVVqA','statSync','child_process','timeout','kDRgW','142uazKbt','XBwGO','entry','readEntry','NOYVA','../../helpers/helper','ITSJF','iMUPE','MrKDq','shouldSkipSessionName','oInmC','warn','getWritableDir','10sXghol','Stskg','getCLIParamsForDevEnv','RgNPt','startsWith','getExistingCliPath','bcWIS','preserveStatusCodeOnError','unlink','requestToUpdateCLI','includes','createWriteStream','exports','vSKUm','stringify','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','AJzgC','UFDBj','filter',',\x20automationFramework=','SDK_CLI_DOWNLOAD','srqMb','pid','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','dKEzW','getTestFrameworkDetail','Development\x20Cli\x20Path:\x20','path','LmXAU','tcbdW','fileName','reduce','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','SoAqo','aJPbP','parse','runShellCommand','getAutomationFrameworkDetail','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','SFmJe','OhZbS','3|4|1|0|2','start','zyCIh','HTTP\x20','isArray','isDevelopmentEnv','../utils/apiUtilityMethods.js','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','spEpz','./instances/testFrameworkInstance.js','env','cBaoC','skipSessionName','readdirSync','downloadFileStream','./framework/constants/testFrameworkConstants.js','DZNwo','closeSync','../../helpers/performance/performance-tester.js','isFile','qnfns','worker_threads','rename','existsSync','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','Setting\x20required\x20permissions\x20to\x20','once','error','../../../package.json','./state/hookState.js','frrpR','WjXuZ','debug','OSknw','matchHookRegex','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','jIiEb','RRDxl','response\x20','Current\x20CLI\x20Path\x20Found:\x20','eQlDD','wOsUO','4006xNOlre','CLIUtils'];a85_0x519f=function(){return _0x3cfa3d;};return a85_0x519f();}(function(_0x837852,_0x5010a7){const _0x4fd71c=a85_0x2ce1,_0x3c3009=_0x837852();while(!![]){try{const _0x5c8d86=-parseInt(_0x4fd71c(0x104))/0x1*(-parseInt(_0x4fd71c(0xa4))/0x2)+-parseInt(_0x4fd71c(0x9f))/0x3+parseInt(_0x4fd71c(0x129))/0x4*(-parseInt(_0x4fd71c(0x144))/0x5)+parseInt(_0x4fd71c(0x161))/0x6+parseInt(_0x4fd71c(0x172))/0x7+parseInt(_0x4fd71c(0x139))/0x8+-parseInt(_0x4fd71c(0x11d))/0x9*(parseInt(_0x4fd71c(0xb1))/0xa);if(_0x5c8d86===_0x5010a7)break;else _0x3c3009['push'](_0x3c3009['shift']());}catch(_0x49a92c){_0x3c3009['push'](_0x3c3009['shift']());}}}(a85_0x519f,0x715d7));function a85_0x2ce1(_0x300ee6,_0x14fdc4){const _0x519f63=a85_0x519f();return a85_0x2ce1=function(_0x2ce1bb,_0x47f8a9){_0x2ce1bb=_0x2ce1bb-0x92;let _0x440a89=_0x519f63[_0x2ce1bb];return _0x440a89;},a85_0x2ce1(_0x300ee6,_0x14fdc4);}const fs=require('fs'),os=require('os'),url=require('url'),path=require(a85_0x34abc2(0xcc)),{exec}=require(a85_0x34abc2(0xa1)),{https}=require(a85_0x34abc2(0x155)),yauzl=require(a85_0x34abc2(0x15f)),util=require(a85_0x34abc2(0x146)),{getFrameworkVersion}=require(a85_0x34abc2(0x149)),{threadId}=require(a85_0x34abc2(0xef)),PerformanceTester=require(a85_0x34abc2(0xec)),{EVENTS:PerformanceEvents}=require(a85_0x34abc2(0x135)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x34abc2(0x10a)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x34abc2(0xa9)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x34abc2(0x13e)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a85_0x34abc2(0xe3)),HookState=require(a85_0x34abc2(0xf7)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a85_0x34abc2(0xe9)),logger=createClassLogger(a85_0x34abc2(0x105)),{getBStackAPIUrl}=require(a85_0x34abc2(0xe0));class CLIUtils{['automationFrameworkDetail']={};['testFrameworkDetail']={};static[a85_0x34abc2(0xdf)](){const _0x5e5593=a85_0x34abc2,_0x133ca6={};_0x133ca6[_0x5e5593(0x120)]=function(_0x7ea1ce,_0xc122d7){return _0x7ea1ce===_0xc122d7;},_0x133ca6[_0x5e5593(0x122)]=_0x5e5593(0x112);const _0x2433f9=_0x133ca6;return _0x2433f9[_0x5e5593(0x120)](process[_0x5e5593(0xe4)][_0x5e5593(0x171)],_0x2433f9[_0x5e5593(0x122)]);}static[a85_0x34abc2(0xb3)](){const _0x419c0d=a85_0x34abc2,_0x221a32={};return _0x221a32['id']=process[_0x419c0d(0xe4)][_0x419c0d(0x171)],_0x221a32['listen']=_0x419c0d(0x97)+process[_0x419c0d(0xe4)][_0x419c0d(0x171)]+_0x419c0d(0x147),_0x221a32;}static[a85_0x34abc2(0x157)](){const _0x14933f=a85_0x34abc2,_0xda835b={'OSknw':function(_0x5aa38e,_0x38674f){return _0x5aa38e(_0x38674f);},'GglNA':_0x14933f(0xf6)};return _0xda835b[_0x14933f(0xfb)](require,_0xda835b[_0x14933f(0x13b)])[_0x14933f(0x176)];}static[a85_0x34abc2(0x137)](){const _0x16fa63=a85_0x34abc2,_0x170e40={};_0x170e40[_0x16fa63(0x96)]='node';const _0x33940f=_0x170e40;return _0x33940f[_0x16fa63(0x96)];}static async['setupCliPath'](_0x1074fc){const _0x108013=a85_0x34abc2,_0x92d5f1={'cbxvU':'Configuring\x20Cli\x20path.','oInmC':function(_0x3e1121,_0x3b6b07){return _0x3e1121(_0x3b6b07);},'AdBvX':function(_0xf346e5,_0x3d24b5){return _0xf346e5(_0x3d24b5);},'zEJjA':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x108013(0xfa)](_0x92d5f1['cbxvU']);const _0xc123f1=process['env']['SDK_CLI_BIN_PATH'];if(!_0x92d5f1[_0x108013(0xae)](isNullOrEmpty,_0xc123f1))return logger['debug'](_0x108013(0xcb)+_0xc123f1),_0xc123f1;try{const _0x36f0de=this[_0x108013(0x162)]();if(_0x92d5f1['AdBvX'](isNullOrEmpty,_0x36f0de))throw new Error(_0x92d5f1['zEJjA']);const _0x4d6072=this[_0x108013(0xb6)](_0x36f0de),_0xd93771=await this[_0x108013(0x174)](_0x4d6072,_0x36f0de,_0x1074fc);return logger['debug'](_0x108013(0x110)+_0xd93771),_0xd93771;}catch(_0x29a4d2){logger[_0x108013(0xfa)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x108013(0x164)](_0x29a4d2));}return null;}static async[a85_0x34abc2(0x174)](_0x39bc58,_0x224241,_0x37aa64){const _0x274e4e=a85_0x34abc2,_0x2a35ff={'NOYVA':function(_0x404e01){return _0x404e01();},'JtdIg':function(_0x61850d,_0x3f4330){return _0x61850d(_0x3f4330);},'chfdu':function(_0x9dba81,_0x23f3d3,_0x5cfe2f){return _0x9dba81(_0x23f3d3,_0x5cfe2f);},'EhJbF':_0x274e4e(0x11a),'VFwCJ':'url','wOsUO':function(_0x548fab,_0x5f5731,_0x182cdc){return _0x548fab(_0x5f5731,_0x182cdc);}};PerformanceTester['start'](PerformanceEvents[_0x274e4e(0x169)]);try{logger[_0x274e4e(0x156)](_0x274e4e(0x101)+_0x39bc58);const _0x3e1e6f=_0x2a35ff[_0x274e4e(0xa8)](getHostInfo),_0x43f424={'sdk_version':CLIUtils[_0x274e4e(0x157)](),'os':_0x3e1e6f[_0x274e4e(0x94)],'os_arch':_0x3e1e6f[_0x274e4e(0x12c)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x2a35ff[_0x274e4e(0x150)](isNullOrEmpty,_0x39bc58)&&(_0x43f424[_0x274e4e(0x108)]=await this[_0x274e4e(0xd5)](_0x39bc58+_0x274e4e(0x160)));const _0x493362=await this[_0x274e4e(0xba)](_0x43f424,_0x37aa64);process[_0x274e4e(0xe4)]['BROWSERSTACK_BINARY_URL']&&(logger['info'](_0x274e4e(0x142)+process[_0x274e4e(0xe4)][_0x274e4e(0x14a)]),_0x493362[_0x274e4e(0x11a)][_0x274e4e(0x152)]=process[_0x274e4e(0xe4)][_0x274e4e(0x14a)]);if(_0x2a35ff['chfdu'](nestedKeyValue,_0x493362,[_0x2a35ff['EhJbF'],_0x2a35ff[_0x274e4e(0x136)]])){logger['debug']('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x43f424['cli_version']);if(!_0x2a35ff[_0x274e4e(0x150)](isNullOrEmpty,_0x39bc58)&&this[_0x274e4e(0x10c)](_0x39bc58))return logger[_0x274e4e(0xaf)](_0x274e4e(0x93)+_0x39bc58),_0x39bc58;return await this[_0x274e4e(0x132)](_0x2a35ff[_0x274e4e(0x103)](nestedKeyValue,_0x493362,[_0x2a35ff['EhJbF'],_0x2a35ff[_0x274e4e(0x136)]]),_0x224241);}return _0x39bc58;}finally{PerformanceTester[_0x274e4e(0x12d)](PerformanceEvents[_0x274e4e(0x169)]);}}static[a85_0x34abc2(0x162)](){const _0x301956=a85_0x34abc2,_0x1f815b={'kgMia':function(_0x29126f,_0x6edcac){return _0x29126f(_0x6edcac);},'jIiEb':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','DZNwo':'cli','PCOAK':function(_0x32e9ae,_0x15bfb0){return _0x32e9ae(_0x15bfb0);}},_0x23a5d2=this[_0x301956(0xb0)]();try{if(_0x1f815b['kgMia'](isNullOrEmpty,_0x23a5d2))throw new Error(_0x1f815b[_0x301956(0xfe)]);const _0xc71035=path[_0x301956(0x177)](_0x23a5d2,_0x1f815b[_0x301956(0xea)]);return!fs[_0x301956(0xf1)](_0xc71035)&&_0x1f815b['PCOAK'](createDir,_0xc71035),_0xc71035;}catch(_0x53d51e){logger[_0x301956(0xfa)](_0x301956(0xf2)+util[_0x301956(0x164)](_0x53d51e));}}static['getWritableDir'](){const _0x58769c=a85_0x34abc2,_0x1212be={'ITSJF':_0x58769c(0x95),'LmVtL':function(_0x5f1044,_0x2c5f23){return _0x5f1044(_0x2c5f23);},'LmXAU':function(_0x32a46a,_0x44c204){return _0x32a46a(_0x44c204);},'uhNDB':function(_0x47d9eb,_0x3e0079){return _0x47d9eb(_0x3e0079);},'Yivnu':function(_0x1a23d3,_0x4c29d8){return _0x1a23d3(_0x4c29d8);},'RgNPt':function(_0x55382b,_0x8bc29f){return _0x55382b(_0x8bc29f);},'cBaoC':function(_0x323cf4,_0x3fc758){return _0x323cf4(_0x3fc758);}},_0x19fcd1=[process['env'][_0x58769c(0x141)],path[_0x58769c(0x177)](os[_0x58769c(0x179)](),_0x1212be['ITSJF']),path[_0x58769c(0x177)](os['tmpdir'](),_0x1212be[_0x58769c(0xaa)])];for(const _0x28535b of _0x19fcd1){if(_0x1212be['LmVtL'](isNullOrEmpty,_0x28535b))continue;try{if(fs[_0x58769c(0xf1)](_0x28535b)){logger[_0x58769c(0xfa)](_0x58769c(0x126)+_0x28535b+_0x58769c(0x178));if(!_0x1212be[_0x58769c(0xcd)](isModifiable,_0x28535b)){logger['debug'](_0x58769c(0xf3)+_0x28535b);const _0x1e3720=_0x1212be['uhNDB'](setReadWriteExecuteAccess,_0x28535b);if(!_0x1212be[_0x58769c(0x106)](isTrue,_0x1e3720)){logger[_0x58769c(0xaf)](_0x58769c(0x117)+_0x28535b);continue;}}}else{logger['debug']('Folder\x20does\x20not\x20exist:\x20'+_0x28535b),_0x1212be[_0x58769c(0xb4)](createDir,_0x28535b),logger[_0x58769c(0xfa)](_0x58769c(0xf3)+_0x28535b);const _0x35a618=_0x1212be[_0x58769c(0xe5)](setReadWriteExecuteAccess,_0x28535b);!_0x1212be[_0x58769c(0x106)](isTrue,_0x35a618)&&logger[_0x58769c(0xaf)](_0x58769c(0x117)+_0x28535b);}return _0x28535b;}catch(_0x5962ae){logger[_0x58769c(0xf5)](_0x58769c(0x14e)+util[_0x58769c(0x164)](_0x5962ae));}}return null;}static[a85_0x34abc2(0xb6)](_0x30f840){const _0xdf9630=a85_0x34abc2,_0x35db46={};_0x35db46['yteHP']=function(_0x1474c7,_0x28f1e5){return _0x1474c7>_0x28f1e5;};const _0x4ba108=_0x35db46;try{if(!fs[_0xdf9630(0xf1)](_0x30f840)||!fs[_0xdf9630(0xa0)](_0x30f840)['isDirectory']())return'';const _0x4f9097=fs[_0xdf9630(0xe7)](_0x30f840)[_0xdf9630(0x134)](_0x27c9c0=>path[_0xdf9630(0x177)](_0x30f840,_0x27c9c0))[_0xdf9630(0xc3)](_0x5dd8bd=>fs[_0xdf9630(0xa0)](_0x5dd8bd)[_0xdf9630(0xed)]()&&path['basename'](_0x5dd8bd)[_0xdf9630(0xb5)](_0xdf9630(0x14c)));if(_0x4ba108[_0xdf9630(0x130)](_0x4f9097['length'],0x0)){const _0x158654=_0x4f9097[_0xdf9630(0x134)](_0x1661d9=>({'filePath':_0x1661d9,'mtime':fs[_0xdf9630(0xa0)](_0x1661d9)[_0xdf9630(0x10b)]}))[_0xdf9630(0xd0)]((_0x15b178,_0x3b4f21)=>{const _0x2ce015=_0xdf9630;if(!_0x15b178||!_0x15b178['mtime'])return _0x3b4f21;if(_0x4ba108[_0x2ce015(0x130)](_0x3b4f21[_0x2ce015(0x10b)],_0x15b178['mtime']))return _0x3b4f21;return _0x15b178;},{});return _0x158654?_0x158654[_0xdf9630(0x170)]:'';}return'';}catch(_0x206b93){return logger[_0xdf9630(0xf5)](_0xdf9630(0x16b)+util[_0xdf9630(0x164)](_0x206b93)),'';}}static [a85_0x34abc2(0xba)]=async(_0x11cc8d,_0x34b04a)=>{const _0x49e059=a85_0x34abc2,_0x2c6fe8={'tcbdW':function(_0x379509,_0x166128,_0x36707c,_0x4bd1fe,_0x289cbb){return _0x379509(_0x166128,_0x36707c,_0x4bd1fe,_0x289cbb);},'zyCIh':_0x49e059(0x148)},_0x2a3879={};_0x2a3879['qs']=_0x11cc8d,_0x2a3879[_0x49e059(0xb8)]=!![];const _0x4489df=await _0x2c6fe8[_0x49e059(0xce)](nodeRequest,_0x2c6fe8[_0x49e059(0xdc)],UPDATED_CLI_ENDPOINT,_0x2a3879,_0x34b04a);return logger[_0x49e059(0xfa)](_0x49e059(0x100)+JSON[_0x49e059(0xbf)](_0x4489df)),_0x4489df;};static['isBinaryBusy'](_0x491b16){const _0x3d44ba=a85_0x34abc2;try{const _0xd5db54=fs[_0x3d44ba(0x99)](_0x491b16,'r+');return fs[_0x3d44ba(0xeb)](_0xd5db54),![];}catch(_0x9bbcae){if(BINARY_BUSY_ERROR_CODES['includes'](_0x9bbcae[_0x3d44ba(0x12a)]))return logger[_0x3d44ba(0xfa)](_0x3d44ba(0x9b)+_0x491b16),!![];return logger['debug']('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x9bbcae[_0x3d44ba(0x92)]),![];}}static[a85_0x34abc2(0xd5)](_0x5b7e57,_0x3fdc34=''){const _0x1ccfff=a85_0x34abc2,_0x1ab1a5={'aKCqx':function(_0x23936f,_0x29c766){return _0x23936f(_0x29c766);},'dKEzW':_0x1ccfff(0x124),'Krytm':_0x1ccfff(0x176),'nZMrg':function(_0x3f16a4,_0x43da25){return _0x3f16a4(_0x43da25);},'eOxZy':function(_0x2ca664,_0xa984b,_0x4b1757,_0x30666d){return _0x2ca664(_0xa984b,_0x4b1757,_0x30666d);},'YknnE':_0x1ccfff(0xf5)};return new Promise((_0x4f5dc0,_0x1019e7)=>{const _0x418cdd=_0x1ccfff,_0x899527={'spEpz':_0x1ab1a5[_0x418cdd(0x109)],'coWiY':function(_0x4b5d56,_0x62fa31){return _0x1ab1a5['aKCqx'](_0x4b5d56,_0x62fa31);},'uAoQP':function(_0xc8fa29,_0x2a9261){const _0x6b61e8=_0x418cdd;return _0x1ab1a5[_0x6b61e8(0x98)](_0xc8fa29,_0x2a9261);},'WjXuZ':_0x1ab1a5['dKEzW']},_0x4cd340={};_0x4cd340[_0x418cdd(0x16f)]=_0x3fdc34,_0x4cd340[_0x418cdd(0xa2)]=0x1388;const _0x27f664=_0x1ab1a5['eOxZy'](exec,_0x5b7e57,_0x4cd340,(_0x2779e9,_0x288e37,_0x53e8e3)=>{const _0x2dffff=_0x418cdd;if(_0x2779e9){if(_0x5b7e57[_0x2dffff(0xbb)](_0x899527[_0x2dffff(0xe2)])&&(_0x288e37[_0x2dffff(0x153)]()||_0x53e8e3['trim']())){const _0x49f217=_0x288e37[_0x2dffff(0x153)]()||_0x53e8e3[_0x2dffff(0x153)]();logger[_0x2dffff(0xfa)](_0x2dffff(0x113)+_0x49f217+'\x22'),_0x899527['coWiY'](_0x4f5dc0,_0x49f217);}else _0x899527['uAoQP'](_0x4f5dc0,_0x53e8e3['trim']()||_0x899527[_0x2dffff(0xf9)]);}else logger[_0x2dffff(0xfa)](_0x2dffff(0x11e)+_0x288e37[_0x2dffff(0x153)]()+'\x22'),_0x899527[_0x2dffff(0x15b)](_0x4f5dc0,_0x288e37[_0x2dffff(0x153)]());});_0x27f664['on'](_0x1ab1a5['YknnE'],()=>{const _0x10560a=_0x418cdd;_0x1ab1a5[_0x10560a(0x111)](_0x4f5dc0,_0x1ab1a5[_0x10560a(0xc9)]);});});}static [a85_0x34abc2(0x132)]=async(_0x4654e8,_0x3b1fbd)=>{const _0x2ea3b9=a85_0x34abc2,_0x583bd2={'hmwIE':_0x2ea3b9(0x159),'bVbur':function(_0x2bfd30,_0x254efd){return _0x2bfd30(_0x254efd);},'iMUPE':_0x2ea3b9(0x107),'XBwGO':function(_0x440926,_0x9cca49){return _0x440926>=_0x9cca49;},'kPRzI':_0x2ea3b9(0x116),'OGvai':'SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','SoAqo':_0x2ea3b9(0xf5),'uvCeg':_0x2ea3b9(0x16c)};PerformanceTester[_0x2ea3b9(0xdb)](PerformanceEvents[_0x2ea3b9(0xc5)]),logger['debug'](_0x2ea3b9(0x14f)+_0x4654e8);try{const _0x3bc10d=url['parse'](_0x4654e8),_0x974bb=path[_0x2ea3b9(0x177)](_0x3b1fbd,_0x2ea3b9(0x115)+process[_0x2ea3b9(0xc7)]+_0x2ea3b9(0x163)),_0x37a43f=fs['createWriteStream'](_0x974bb);return new Promise((_0x48eba8,_0x1eafe5)=>{const _0xde3937=_0x2ea3b9,_0x38ca45={'VjTQP':_0x583bd2[_0xde3937(0x158)],'MMgcO':function(_0x263366,_0x240805){const _0x4ffa8f=_0xde3937;return _0x583bd2[_0x4ffa8f(0x13c)](_0x263366,_0x240805);},'OhZbS':_0x583bd2[_0xde3937(0xab)],'aJPbP':function(_0x1f861d,_0x3fdb5d){const _0x4221c1=_0xde3937;return _0x583bd2[_0x4221c1(0xa5)](_0x1f861d,_0x3fdb5d);},'McZrF':_0x583bd2[_0xde3937(0x15e)],'srqMb':_0x583bd2[_0xde3937(0x166)],'LPNKm':function(_0x404af9,_0xc78eef){const _0x2bc7ac=_0xde3937;return _0x583bd2[_0x2bc7ac(0x13c)](_0x404af9,_0xc78eef);},'dBPke':_0x583bd2[_0xde3937(0xd2)]};https['get'](_0x3bc10d,function(_0x1233c8){const _0x1701b1=_0xde3937,_0x402c51={'TElNG':_0x38ca45[_0x1701b1(0xd9)],'eQlDD':function(_0x9cbdf4,_0x1ca4d8){const _0x575635=_0x1701b1;return _0x38ca45[_0x575635(0x9a)](_0x9cbdf4,_0x1ca4d8);}},_0x3ef39a=null;if(_0x1233c8[_0x1701b1(0x17b)]&&_0x38ca45[_0x1701b1(0xd3)](_0x1233c8[_0x1701b1(0x17b)],0x190)){const _0x297b18=new Error(_0x1701b1(0xe1)+_0x1233c8[_0x1701b1(0x17b)]+_0x1701b1(0x13f)+_0x4654e8);_0x297b18[_0x1701b1(0x12a)]=_0x38ca45[_0x1701b1(0x17a)],_0x297b18[_0x1701b1(0x17b)]=_0x1233c8[_0x1701b1(0x17b)],logger[_0x1701b1(0xf5)](util[_0x1701b1(0x164)](_0x38ca45[_0x1701b1(0xc6)],_0x1233c8[_0x1701b1(0x17b)])),PerformanceTester[_0x1701b1(0x12d)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],_0x1701b1(0xdd)+_0x1233c8[_0x1701b1(0x17b)]),_0x1233c8['resume'](),_0x37a43f['destroy'](),fs[_0x1701b1(0xb9)](_0x974bb,()=>{}),_0x38ca45[_0x1701b1(0x121)](_0x1eafe5,_0x297b18);return;}_0x1233c8[_0x1701b1(0x151)](_0x37a43f),_0x1233c8['on'](_0x38ca45[_0x1701b1(0x14b)],function(_0xb275f8){const _0x351d88=_0x1701b1;logger[_0x351d88(0xf5)](util['format'](_0x402c51['TElNG'],_0xb275f8)),PerformanceTester[_0x351d88(0x12d)](PerformanceEvents[_0x351d88(0xc5)],![],util[_0x351d88(0x164)](_0xb275f8)),_0x402c51[_0x351d88(0x102)](_0x1eafe5,_0xb275f8);}),_0x37a43f['on'](_0x38ca45[_0x1701b1(0x14b)],function(_0x39d071){const _0x55bb6f=_0x1701b1;logger[_0x55bb6f(0xf5)](util['format'](_0x38ca45[_0x55bb6f(0x128)],_0x39d071)),PerformanceTester[_0x55bb6f(0x12d)](PerformanceEvents[_0x55bb6f(0xc5)],![],util[_0x55bb6f(0x164)](_0x39d071)),_0x38ca45[_0x55bb6f(0x9a)](_0x1eafe5,_0x39d071);}),CLIUtils[_0x1701b1(0xe8)](_0x37a43f,_0x3ef39a,_0x974bb,_0x3b1fbd,_0x348c2d=>{const _0xa319bd=_0x1701b1;PerformanceTester[_0xa319bd(0x12d)](PerformanceEvents[_0xa319bd(0xc5)]),_0x38ca45[_0xa319bd(0x9a)](_0x48eba8,_0x348c2d);},_0x23613d=>{const _0x32a4c8=_0x1701b1;PerformanceTester[_0x32a4c8(0x12d)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x32a4c8(0x164)](_0x23613d)),_0x402c51[_0x32a4c8(0x102)](_0x1eafe5,_0x23613d);});})['on'](_0x583bd2['SoAqo'],function(_0x96e052){const _0x190230=_0xde3937;logger[_0x190230(0xf5)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x190230(0x164)](_0x96e052)),PerformanceTester[_0x190230(0x12d)](PerformanceEvents[_0x190230(0xc5)],![],util[_0x190230(0x164)](_0x96e052)),_0x38ca45['MMgcO'](_0x1eafe5,_0x96e052);});});}catch(_0x369fed){PerformanceTester[_0x2ea3b9(0x12d)](PerformanceEvents[_0x2ea3b9(0xc5)],![],util[_0x2ea3b9(0x164)](_0x369fed)),logger[_0x2ea3b9(0xf5)](util[_0x2ea3b9(0x164)](_0x583bd2[_0x2ea3b9(0x13d)],_0x369fed));throw _0x369fed;}};static[a85_0x34abc2(0xe8)](_0x236897,_0x144d62,_0xf3b245,_0x16b2a5,_0x2b87e9,_0xbdcec3){const _0x4f2168=a85_0x34abc2,_0x1a33aa={'hNYCI':function(_0x246103,_0x356c48){return _0x246103(_0x356c48);},'TDrQe':_0x4f2168(0x11c),'SFmJe':_0x4f2168(0x12d),'UFDBj':function(_0x14481e,_0x109a17){return _0x14481e!==_0x109a17;},'HEPMG':function(_0x163d17,_0x4a8fa0){return _0x163d17(_0x4a8fa0);},'uCEJf':_0x4f2168(0xf5),'rnsRW':'EXDEV','juMfv':function(_0x25f313,_0x3cf6de){return _0x25f313(_0x3cf6de);},'FMlfl':function(_0x1c8917,_0x11488e){return _0x1c8917(_0x11488e);},'Stskg':function(_0x31dc9a,_0x5237af){return _0x31dc9a(_0x5237af);},'oxFuN':_0x4f2168(0xa6),'pFHhZ':_0x4f2168(0x114)};_0x236897['on'](_0x1a33aa[_0x4f2168(0x125)],function(){const _0x41beb9=_0x4f2168,_0xc84515={'frrpR':function(_0x15644b,_0x405c25){const _0x2537c1=a85_0x2ce1;return _0x1a33aa[_0x2537c1(0x133)](_0x15644b,_0x405c25);},'bcWIS':_0x1a33aa['pFHhZ']},_0xcfb3e5={};_0xcfb3e5[_0x41beb9(0x11f)]=!![],yauzl[_0x41beb9(0x15a)](_0xf3b245,_0xcfb3e5,function(_0x412c66,_0x2a8ce0){const _0x11d5a6=_0x41beb9,_0x27c11e={'IGQRv':function(_0x4fa8da,_0x2c39a6){const _0x552fcc=a85_0x2ce1;return _0x1a33aa[_0x552fcc(0x175)](_0x4fa8da,_0x2c39a6);},'vgyJC':_0x1a33aa['TDrQe'],'vSKUm':_0x1a33aa[_0x11d5a6(0xd8)],'vPZVt':function(_0x507cc2,_0xe9df3e){return _0x1a33aa['UFDBj'](_0x507cc2,_0xe9df3e);},'eRAVZ':function(_0x5a0d3f,_0x20398e){const _0x328fc0=_0x11d5a6;return _0x1a33aa[_0x328fc0(0x175)](_0x5a0d3f,_0x20398e);},'MvwPK':function(_0x4d35ff,_0x5b955b){const _0x4ebd61=_0x11d5a6;return _0x1a33aa[_0x4ebd61(0x154)](_0x4d35ff,_0x5b955b);},'lIZBL':_0x1a33aa[_0x11d5a6(0x9c)],'MrKDq':function(_0x8fe41c,_0x397ce8){const _0x459f31=_0x11d5a6;return _0x1a33aa[_0x459f31(0xc2)](_0x8fe41c,_0x397ce8);},'qnfns':_0x1a33aa['rnsRW'],'AajQo':function(_0x5b30b6,_0x134767){const _0x371bc3=_0x11d5a6;return _0x1a33aa[_0x371bc3(0x140)](_0x5b30b6,_0x134767);},'UdmBN':function(_0x79024a,_0x192577){return _0x1a33aa['FMlfl'](_0x79024a,_0x192577);}};if(_0x412c66){_0x1a33aa[_0x11d5a6(0xb2)](_0xbdcec3,_0x412c66);return;}_0x2a8ce0[_0x11d5a6(0xa7)](),_0x2a8ce0['on'](_0x1a33aa[_0x11d5a6(0x145)],_0x57f9c1=>{const _0x24a3a5=_0x11d5a6,_0x3999ba={'hJuzR':_0x27c11e[_0x24a3a5(0x10e)],'fcpnR':function(_0x404e47,_0x2a8ad5){const _0xf549a=_0x24a3a5;return _0x27c11e[_0xf549a(0x12e)](_0x404e47,_0x2a8ad5);},'kdJNN':_0x27c11e[_0x24a3a5(0xbe)]};if(/\/$/[_0x24a3a5(0x9d)](_0x57f9c1['fileName'])){_0x2a8ce0[_0x24a3a5(0xa7)]();return;}!_0x144d62&&(_0x144d62=_0x57f9c1[_0x24a3a5(0xcf)]);if(_0x27c11e[_0x24a3a5(0x167)](_0x57f9c1['fileName'],_0x144d62))_0x2a8ce0[_0x24a3a5(0xa7)]();else{const _0x223287=_0x57f9c1[_0x24a3a5(0xcf)],_0xac1cf5=path['join'](_0x16b2a5,_0x223287+'.tmp.'+process[_0x24a3a5(0xc7)]);let _0x1e2cfa;try{_0x1e2cfa=fs[_0x24a3a5(0xbc)](_0xac1cf5);}catch(_0x389987){if(BINARY_BUSY_ERROR_CODES[_0x24a3a5(0xbb)](_0x389987['code'])){const _0x776c58=path[_0x24a3a5(0x177)](_0x16b2a5,_0x223287);if(fs[_0x24a3a5(0xf1)](_0x776c58)){logger[_0x24a3a5(0xaf)](_0x24a3a5(0xd1)+_0x223287),fs[_0x24a3a5(0xb9)](_0xf3b245,_0x3a2270=>{const _0xa4a3f9=_0x24a3a5;_0x3a2270&&logger[_0xa4a3f9(0xaf)](_0xa4a3f9(0x119)+_0xf3b245);}),_0x27c11e['eRAVZ'](_0x2b87e9,_0x776c58);return;}logger[_0x24a3a5(0xaf)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x223287);}_0x27c11e[_0x24a3a5(0x138)](_0xbdcec3,_0x389987);return;}_0x1e2cfa['on'](_0x27c11e['lIZBL'],_0x48a7a0=>{const _0x19f4b3=_0x24a3a5;if(BINARY_BUSY_ERROR_CODES[_0x19f4b3(0xbb)](_0x48a7a0['code'])){const _0x2afc15=path[_0x19f4b3(0x177)](_0x16b2a5,_0x223287);_0x1e2cfa['close'](),fs['existsSync'](_0x2afc15)?(logger[_0x19f4b3(0xaf)](_0x19f4b3(0xc8)+_0x48a7a0[_0x19f4b3(0x92)]),_0x2a8ce0[_0x19f4b3(0x11c)](),fs['unlink'](_0xf3b245,_0x72b455=>{const _0x41baea=_0x19f4b3;_0x72b455&&logger[_0x41baea(0xaf)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0xf3b245);}),_0x27c11e[_0x19f4b3(0x12e)](_0x2b87e9,_0x2afc15)):(logger[_0x19f4b3(0xaf)]('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x48a7a0[_0x19f4b3(0x92)]),fs[_0x19f4b3(0xb9)](_0xac1cf5,()=>{}),_0x27c11e[_0x19f4b3(0x12e)](_0xbdcec3,_0x48a7a0));}else fs[_0x19f4b3(0xb9)](_0xac1cf5,()=>{}),_0x27c11e[_0x19f4b3(0x12e)](_0xbdcec3,_0x48a7a0);}),_0x2a8ce0['openReadStream'](_0x57f9c1,function(_0x350da7,_0x39fd63){const _0x40eba5=_0x24a3a5;if(_0x350da7){fs['unlink'](_0xac1cf5,()=>{}),_0x3999ba[_0x40eba5(0x131)](_0xbdcec3,_0x350da7);return;}_0x39fd63['on'](_0x3999ba['kdJNN'],function(){const _0x1992f4=_0x40eba5;_0x1e2cfa[_0x1992f4(0x12d)](),_0x1e2cfa['on'](_0x3999ba['hJuzR'],function(){const _0x1c06e9=_0x1992f4;_0x2a8ce0[_0x1c06e9(0xa7)]();});}),_0x39fd63[_0x40eba5(0x151)](_0x1e2cfa);});}}),_0x2a8ce0['on'](_0x1a33aa[_0x11d5a6(0x9c)],_0x29de0c=>{const _0x5d0534=_0x11d5a6;_0xc84515[_0x5d0534(0xf8)](_0xbdcec3,_0x29de0c);}),_0x2a8ce0[_0x11d5a6(0xf4)](_0x1a33aa['SFmJe'],()=>{const _0x245330=_0x11d5a6;fs['unlink'](_0xf3b245,_0x233afb=>{const _0x253284=a85_0x2ce1;_0x233afb&&logger[_0x253284(0xaf)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0xf3b245);});const _0x52fc68=path[_0x245330(0x177)](_0x16b2a5,_0x144d62+'.tmp.'+process[_0x245330(0xc7)]),_0x60106b=path[_0x245330(0x177)](_0x16b2a5,_0x144d62);fs[_0x245330(0x14d)](_0x52fc68,_0xc84515[_0x245330(0xb7)],function(_0x9cbf17){const _0x426a6c=_0x245330,_0x5ee347={'zctWK':function(_0x41ea90,_0x48ebf8){const _0x14c833=a85_0x2ce1;return _0x27c11e[_0x14c833(0xac)](_0x41ea90,_0x48ebf8);},'BaPsd':_0x27c11e[_0x426a6c(0xee)],'qUsGb':function(_0x5ad799,_0x2a1153){const _0x370042=_0x426a6c;return _0x27c11e[_0x370042(0x15c)](_0x5ad799,_0x2a1153);}};if(_0x9cbf17){_0x2a8ce0[_0x426a6c(0x11c)](),fs[_0x426a6c(0xb9)](_0x52fc68,()=>{}),_0x27c11e[_0x426a6c(0x165)](_0xbdcec3,_0x9cbf17);return;}fs[_0x426a6c(0xf0)](_0x52fc68,_0x60106b,function(_0x3e877a){const _0x2b9f1d=_0x426a6c;if(_0x3e877a){if(_0x5ee347[_0x2b9f1d(0x13a)](_0x3e877a[_0x2b9f1d(0x12a)],_0x5ee347[_0x2b9f1d(0x143)])){_0x2a8ce0[_0x2b9f1d(0x11c)](),fs[_0x2b9f1d(0xb9)](_0x52fc68,()=>{}),_0x5ee347[_0x2b9f1d(0x9e)](_0xbdcec3,_0x3e877a);return;}logger[_0x2b9f1d(0xaf)](_0x2b9f1d(0x168)+_0x3e877a[_0x2b9f1d(0x92)]);try{fs[_0x2b9f1d(0x16e)](_0x52fc68,_0x60106b);}catch(_0x42c075){_0x2a8ce0[_0x2b9f1d(0x11c)](),fs['unlink'](_0x52fc68,()=>{}),_0x5ee347[_0x2b9f1d(0x9e)](_0xbdcec3,_0x42c075);return;}fs[_0x2b9f1d(0xb9)](_0x52fc68,_0x5a38ea=>{const _0x3a139d=_0x2b9f1d;_0x5a38ea&&logger[_0x3a139d(0xaf)](_0x3a139d(0xfd)+_0x5a38ea[_0x3a139d(0x92)]);});}_0x2a8ce0[_0x2b9f1d(0x11c)](),_0x5ee347['qUsGb'](_0x2b87e9,_0x60106b);});});});});});}static[a85_0x34abc2(0xca)](){const _0x394bc3=a85_0x34abc2;if(process[_0x394bc3(0xe4)][_0x394bc3(0xd7)])return JSON[_0x394bc3(0xd4)](process[_0x394bc3(0xe4)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this['testFrameworkDetail'];}static[a85_0x34abc2(0xd6)](){const _0x31899d=a85_0x34abc2;if(process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x31899d(0xd4)](process[_0x31899d(0xe4)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0x31899d(0x10f)];}static['setFrameworkDetail'](_0x5e5e85,_0x510cf9){const _0x13bb69=a85_0x34abc2,_0x2a47c1={'BAwfu':_0x13bb69(0xda),'oOpRi':function(_0x2bcd2e,_0x3ff6ea){return _0x2bcd2e(_0x3ff6ea);},'kDRgW':function(_0x79026a,_0x2d2c27){return _0x79026a||_0x2d2c27;}},_0x5a025f=_0x2a47c1[_0x13bb69(0x118)][_0x13bb69(0x127)]('|');let _0x4cf136=0x0;while(!![]){switch(_0x5a025f[_0x4cf136++]){case'0':process[_0x13bb69(0xe4)][_0x13bb69(0xc0)]=JSON['stringify'](this[_0x13bb69(0x10f)]);continue;case'1':this[_0x13bb69(0x10f)]={'name':_0x510cf9,'version':_0x2a47c1[_0x13bb69(0x16a)](getFrameworkVersion,_0x510cf9)};continue;case'2':process[_0x13bb69(0xe4)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x13bb69(0xbf)](this[_0x13bb69(0x173)]);continue;case'3':_0x2a47c1[_0x13bb69(0xa3)](!_0x5e5e85,!_0x510cf9)&&logger[_0x13bb69(0xfa)]('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x5e5e85+_0x13bb69(0xc4)+_0x510cf9);continue;case'4':this[_0x13bb69(0x173)]={'name':_0x5e5e85,'version':{[_0x5e5e85]:_0x2a47c1[_0x13bb69(0x16a)](getFrameworkVersion,_0x5e5e85)}};continue;}break;}}static['getHookRegistryKey'](_0x38f206,_0x37d692){return _0x38f206+':'+_0x37d692;}static[a85_0x34abc2(0x12b)](){const _0x238341=a85_0x34abc2;return process[_0x238341(0xc7)]+':'+threadId;}static[a85_0x34abc2(0xad)](_0x17af19){const _0x29cf80=a85_0x34abc2;if(_0x17af19[_0x29cf80(0x12f)]&&_0x17af19['testContextOptions'][_0x29cf80(0xe6)])return!![];return![];}static[a85_0x34abc2(0x16d)](_0x4eaccc){const _0x2d369e=a85_0x34abc2;if(_0x4eaccc[_0x2d369e(0x12f)]&&_0x4eaccc[_0x2d369e(0x12f)][_0x2d369e(0x10d)])return!![];return![];}static[a85_0x34abc2(0xfc)](_0x48769c){const _0x18e816=a85_0x34abc2,_0x506266=new RegExp(TestFrameworkConstants[_0x18e816(0x15d)]);return _0x506266[_0x18e816(0x9d)](_0x48769c);}static[a85_0x34abc2(0x123)](_0x45564f,_0x4401a6){const _0x495dec=a85_0x34abc2,_0x21f2a9={};_0x21f2a9[_0x495dec(0xc1)]=function(_0x445611,_0x211f46){return _0x445611!==_0x211f46;},_0x21f2a9[_0x495dec(0xff)]=function(_0x326348,_0x49f2d3){return _0x326348===_0x49f2d3;},_0x21f2a9['LoqFx']='object';const _0x2e70d2=_0x21f2a9;for(const [_0x12a5c4,_0x4be875]of Object['entries'](_0x4401a6)){if(_0x2e70d2[_0x495dec(0xc1)](_0x4be875,null)&&_0x2e70d2[_0x495dec(0xff)](typeof _0x4be875,_0x2e70d2['LoqFx'])&&!Array[_0x495dec(0xde)](_0x4be875))_0x45564f[_0x12a5c4]=this[_0x495dec(0x123)](_0x45564f[_0x12a5c4]||{},_0x4be875);else Array[_0x495dec(0xde)](_0x4be875)?_0x45564f[_0x12a5c4]=(_0x45564f[_0x12a5c4]||[])[_0x495dec(0x11b)](_0x4be875):_0x45564f[_0x12a5c4]=_0x4be875;}return _0x45564f;}}module[a85_0x34abc2(0xbd)]=CLIUtils;
|
|
1
|
+
const a83_0xaf2e9d=a83_0x6614;function a83_0x6614(_0x144f05,_0x5f0208){const _0x5ddfb1=a83_0x5ddf();return a83_0x6614=function(_0x661407,_0x4950c3){_0x661407=_0x661407-0x95;let _0x351632=_0x5ddfb1[_0x661407];return _0x351632;},a83_0x6614(_0x144f05,_0x5f0208);}(function(_0x50be4f,_0x302d30){const _0x431272=a83_0x6614,_0x2fe1a3=_0x50be4f();while(!![]){try{const _0xc38fa0=parseInt(_0x431272(0xc9))/0x1*(parseInt(_0x431272(0xcf))/0x2)+-parseInt(_0x431272(0xc7))/0x3*(-parseInt(_0x431272(0xad))/0x4)+-parseInt(_0x431272(0x11a))/0x5*(-parseInt(_0x431272(0x184))/0x6)+parseInt(_0x431272(0x146))/0x7*(parseInt(_0x431272(0x183))/0x8)+parseInt(_0x431272(0x177))/0x9*(-parseInt(_0x431272(0x167))/0xa)+parseInt(_0x431272(0xf1))/0xb*(-parseInt(_0x431272(0x10d))/0xc)+-parseInt(_0x431272(0x128))/0xd*(parseInt(_0x431272(0xcd))/0xe);if(_0xc38fa0===_0x302d30)break;else _0x2fe1a3['push'](_0x2fe1a3['shift']());}catch(_0x4938c8){_0x2fe1a3['push'](_0x2fe1a3['shift']());}}}(a83_0x5ddf,0xb1f7c));function a83_0x5ddf(){const _0xaf7ed1=['setupCliPath','skipSessionStatus','warn','.tmp.','DfxDo','getWritableDir','8peWoOI','7158138SKZnSv','nNZqa','downloadFileStream','JnEYm','readdirSync','rgkFt','getSdkLanguage','trim','yjxgL','IRfVE','runShellCommand','isBinaryBusy','closeSync','KmbgR','oxgLc','Development\x20Cli\x20Path:\x20','concat','./instances/testFrameworkInstance.js','oKBUP','BROWSERSTACK_BINARY_URL','kGYSK','openReadStream','platform','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','Downloading\x20SDK\x20binary\x20from:\x20','../utils/constants','nkZCS','QejZA','end','14132oKXuQa','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','lESJo','JyeEy','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','cli_version','code','debug','iOJqZ','Current\x20CLI\x20Path\x20Found:\x20','getCliDir','follow-redirects','error','../../helpers/helper','format','yGiyd','CCbTV','node','zAiPh','RfjsZ','map','getCLIParamsForDevEnv','lfMLn','checkAndUpdateCli','object','homedir','402eDezHg','Configuring\x20Cli\x20path.','1290022ApSPqy','info','sKzRy','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','3752TiNfwU','unix:/tmp/sdk-platform-','2yEUqDd','getExistingCliPath','SHELL_EXECUTE_ERROR','getSdkVersion','pPlPv','binary-','isArray','../../helpers/utilities','requestToUpdateCLI','rename','beRzy','SQyFj','util','filter','MLXGh','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','idYsT','CJxED','child_process','open','kUOOa','mvgum','get','shouldSkipSessionStatus','join','JLuMp','readEntry','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','close','UpJlU','existsSync','NpFGh','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','106271SHlYOV','AtQjz','SDK_CLI_CHECK_UPDATE','createWriteStream','split','path','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','getCurrentInstanceName','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','VgRTv','GET','lrJMF','env','uaOlY','cwd','SDK_CLI_BIN_PATH','lFYdP','HTTP\x20','testContextOptions','SDK_CLI_DOWNLOAD','test','matchHookRegex','cMZpB','SWZrk','nwbes','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','development','qiYTQ','12UAkLEj','copyFileSync','entry','stringify','Failed\x20to\x20delete\x20zip\x20file:\x20','mtime','YCNaQ','lUpde','testFrameworkDetail','response\x20','getHookRegistryKey','EXDEV','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','5Svanjy','./state/hookState.js','Rkodm','statusCode','4|1|2|3|0','Binary\x20is\x20busy:\x20','fileName','statSync','iNRxT','getAutomationFrameworkDetail','TmEtm','includes','KNwjZ','./state/automationFrameworkState.js','89297KgPJgX','listen','CiVBO','\x20version','DzTxY','automationFrameworkDetail','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','BROWSERSTACK_CLI_ENV','skipSessionName','FnzDx','yGSan','isDirectory','YwLtX','nmzZC','../utils/apiUtilityMethods.js','mergeObject','ixboR','arch','worker_threads','timeout','lSeag','filePath','url','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','ewUhi','reduce','openSync','Setting\x20required\x20permissions\x20to\x20','.zip','TwPJh','5687101ZqwOaF','pipe','FEpNd','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','pid','Folder\x20','McqEb','getTestFrameworkDetail','AEBKb','.browserstack','roVmP','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','esWgs','yauzl','downloadLatestBinary','message','../../helpers/performance/performance-tester.js','parse','ZhhHC','kvKmx','start','\x20already\x20exists','CLIUtils','version','aSVUl','XoCgQ','length','dCmGp','shouldSkipSessionName','mJsPt','Error\x20while\x20reading\x20CLI\x20path:\x20','.sock','tmpdir','3964670anOIsJ','DOWNLOAD_HTTP','entries','cli','yiHTY','KfMxC','syBBq','Resolved\x20binary\x20path:\x20','preserveStatusCodeOnError','isDevelopmentEnv','CLI\x20version\x20found\x20despite\x20error:\x20\x22','data','unlink','QgrLv','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','resume','27hDukcw','zMJaW','ybcsz','Usdzt','Umpxg','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s'];a83_0x5ddf=function(){return _0xaf7ed1;};return a83_0x5ddf();}const fs=require('fs'),os=require('os'),url=require('url'),path=require(a83_0xaf2e9d(0xf6)),{exec}=require(a83_0xaf2e9d(0xe1)),{https}=require(a83_0xaf2e9d(0xb8)),yauzl=require(a83_0xaf2e9d(0x153)),util=require(a83_0xaf2e9d(0xdb)),{getFrameworkVersion}=require('../../helpers/test-observability/utils.js'),{threadId}=require(a83_0xaf2e9d(0x13a)),PerformanceTester=require(a83_0xaf2e9d(0x156)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a83_0xaf2e9d(0xd6)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a83_0xaf2e9d(0xba)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a83_0xaf2e9d(0xa9)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a83_0xaf2e9d(0xa1)),HookState=require(a83_0xaf2e9d(0x11b)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require(a83_0xaf2e9d(0x127)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a83_0xaf2e9d(0x15c)),{getBStackAPIUrl}=require(a83_0xaf2e9d(0x136));class CLIUtils{[a83_0xaf2e9d(0x12d)]={};['testFrameworkDetail']={};static[a83_0xaf2e9d(0x170)](){const _0xebf11c=a83_0xaf2e9d,_0x262adf={};_0x262adf[_0xebf11c(0x185)]=function(_0x2cd161,_0xba76a1){return _0x2cd161===_0xba76a1;},_0x262adf['sKzRy']=_0xebf11c(0x10b);const _0x5655b4=_0x262adf;return _0x5655b4[_0xebf11c(0x185)](process[_0xebf11c(0xfd)][_0xebf11c(0x12f)],_0x5655b4[_0xebf11c(0xcb)]);}static[a83_0xaf2e9d(0xc2)](){const _0x560c44=a83_0xaf2e9d,_0x4c2103={};return _0x4c2103['id']=process[_0x560c44(0xfd)][_0x560c44(0x12f)],_0x4c2103[_0x560c44(0x129)]=_0x560c44(0xce)+process[_0x560c44(0xfd)]['BROWSERSTACK_CLI_ENV']+_0x560c44(0x165),_0x4c2103;}static[a83_0xaf2e9d(0xd2)](){const _0x4073fd=a83_0xaf2e9d,_0x57511e={'UXxVg':function(_0x4f9ab0,_0x26fd6a){return _0x4f9ab0(_0x26fd6a);},'KmbgR':'../../../package.json'};return _0x57511e['UXxVg'](require,_0x57511e[_0x4073fd(0x9d)])[_0x4073fd(0x15d)];}static[a83_0xaf2e9d(0x96)](){const _0x3630a4=a83_0xaf2e9d,_0x4370e2={};_0x4370e2[_0x3630a4(0xfa)]=_0x3630a4(0xbe);const _0x103627=_0x4370e2;return _0x103627['VgRTv'];}static async[a83_0xaf2e9d(0x17d)](_0x2d83a1){const _0x1d1e7b=a83_0xaf2e9d,_0x9d2433={'nkZCS':_0x1d1e7b(0xc8),'AtQjz':function(_0x3f070a,_0x49edf9){return _0x3f070a(_0x49edf9);},'aSVUl':function(_0x29954d,_0x46e5af){return _0x29954d(_0x46e5af);},'IPmbW':_0x1d1e7b(0xa7)};logger[_0x1d1e7b(0xb4)](_0x9d2433[_0x1d1e7b(0xaa)]);const _0x2d89c3=process[_0x1d1e7b(0xfd)][_0x1d1e7b(0x100)];if(!_0x9d2433[_0x1d1e7b(0xf2)](isNullOrEmpty,_0x2d89c3))return logger[_0x1d1e7b(0xb4)](_0x1d1e7b(0x9f)+_0x2d89c3),_0x2d89c3;try{const _0x2e0124=this[_0x1d1e7b(0xb7)]();if(_0x9d2433[_0x1d1e7b(0x15e)](isNullOrEmpty,_0x2e0124))throw new Error(_0x9d2433['IPmbW']);const _0x27f386=this[_0x1d1e7b(0xd0)](_0x2e0124),_0x4d7151=await this[_0x1d1e7b(0xc4)](_0x27f386,_0x2e0124,_0x2d83a1);return logger[_0x1d1e7b(0xb4)](_0x1d1e7b(0x16e)+_0x4d7151),_0x4d7151;}catch(_0x3c72e2){logger['debug'](_0x1d1e7b(0xf7)+util[_0x1d1e7b(0xbb)](_0x3c72e2));}return null;}static async['checkAndUpdateCli'](_0x20c43d,_0x41e7aa,_0x15e1fe){const _0x1fa7aa=a83_0xaf2e9d,_0x4dc417={'NBuXZ':function(_0x5b42ee){return _0x5b42ee();},'rgkFt':function(_0x369e7b,_0x2bc263){return _0x369e7b(_0x2bc263);},'CJxED':function(_0x3d0213,_0x241448,_0x34cc5a){return _0x3d0213(_0x241448,_0x34cc5a);},'TwPJh':'data','JyeEy':_0x1fa7aa(0x13e),'ybcsz':function(_0x2b4c4d,_0xd9f74c){return _0x2b4c4d(_0xd9f74c);}};PerformanceTester[_0x1fa7aa(0x15a)](PerformanceEvents[_0x1fa7aa(0xf3)]);try{logger[_0x1fa7aa(0xca)](_0x1fa7aa(0xb6)+_0x20c43d);const _0x349a63=_0x4dc417['NBuXZ'](getHostInfo),_0x536955={'sdk_version':CLIUtils[_0x1fa7aa(0xd2)](),'os':_0x349a63[_0x1fa7aa(0xa6)],'os_arch':_0x349a63[_0x1fa7aa(0x139)],'cli_version':'0','sdk_language':this[_0x1fa7aa(0x96)]()};!_0x4dc417[_0x1fa7aa(0x95)](isNullOrEmpty,_0x20c43d)&&(_0x536955[_0x1fa7aa(0xb2)]=await this[_0x1fa7aa(0x9a)](_0x20c43d+_0x1fa7aa(0x12b)));const _0x1c93a8=await this['requestToUpdateCLI'](_0x536955,_0x15e1fe);process[_0x1fa7aa(0xfd)][_0x1fa7aa(0xa3)]&&(logger['info'](_0x1fa7aa(0xde)+process[_0x1fa7aa(0xfd)]['BROWSERSTACK_BINARY_URL']),_0x1c93a8[_0x1fa7aa(0x172)]['url']=process['env']['BROWSERSTACK_BINARY_URL']);if(_0x4dc417['CJxED'](nestedKeyValue,_0x1c93a8,[_0x4dc417[_0x1fa7aa(0x145)],_0x4dc417[_0x1fa7aa(0xb0)]])){logger['debug']('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x536955['cli_version']);if(!_0x4dc417[_0x1fa7aa(0x179)](isNullOrEmpty,_0x20c43d)&&this[_0x1fa7aa(0x9b)](_0x20c43d))return logger[_0x1fa7aa(0x17f)]('Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20'+_0x20c43d),_0x20c43d;return await this['downloadLatestBinary'](_0x4dc417[_0x1fa7aa(0xe0)](nestedKeyValue,_0x1c93a8,[_0x4dc417[_0x1fa7aa(0x145)],_0x4dc417[_0x1fa7aa(0xb0)]]),_0x41e7aa);}return _0x20c43d;}finally{PerformanceTester['end'](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);}}static[a83_0xaf2e9d(0xb7)](){const _0x1113c5=a83_0xaf2e9d,_0x46c6e3={'oxgLc':function(_0x548a3f,_0x5eec20){return _0x548a3f(_0x5eec20);},'yGSan':_0x1113c5(0xa7),'vVdwF':_0x1113c5(0x16a),'kvKmx':function(_0x37f385,_0xdc5a95){return _0x37f385(_0xdc5a95);}},_0x4fb140=this[_0x1113c5(0x182)]();try{if(_0x46c6e3[_0x1113c5(0x9e)](isNullOrEmpty,_0x4fb140))throw new Error(_0x46c6e3[_0x1113c5(0x132)]);const _0x31ec86=path[_0x1113c5(0xe7)](_0x4fb140,_0x46c6e3['vVdwF']);return!fs[_0x1113c5(0xed)](_0x31ec86)&&_0x46c6e3[_0x1113c5(0x159)](createDir,_0x31ec86),_0x31ec86;}catch(_0xf8278a){logger[_0x1113c5(0xb4)]('Error\x20in\x20getting\x20writable\x20directory,\x20writableDir='+util[_0x1113c5(0xbb)](_0xf8278a));}}static[a83_0xaf2e9d(0x182)](){const _0x457d9b=a83_0xaf2e9d,_0xb2f1b9={'DfxDo':_0x457d9b(0x14f),'nwbes':function(_0x121697,_0x1a7c54){return _0x121697(_0x1a7c54);},'ebGnV':function(_0x37ccc6,_0x1982db){return _0x37ccc6(_0x1982db);}},_0x2c2d1b=[process[_0x457d9b(0xfd)]['BROWSERSTACK_FILES_DIR'],path[_0x457d9b(0xe7)](os[_0x457d9b(0xc6)](),_0xb2f1b9[_0x457d9b(0x181)]),path[_0x457d9b(0xe7)](os[_0x457d9b(0x166)](),_0xb2f1b9['DfxDo'])];for(const _0x40e392 of _0x2c2d1b){if(_0xb2f1b9[_0x457d9b(0x109)](isNullOrEmpty,_0x40e392))continue;try{if(fs[_0x457d9b(0xed)](_0x40e392)){logger['debug'](_0x457d9b(0x14b)+_0x40e392+_0x457d9b(0x15b));if(!_0xb2f1b9[_0x457d9b(0x109)](isModifiable,_0x40e392)){logger[_0x457d9b(0xb4)](_0x457d9b(0x143)+_0x40e392);const _0x12761f=_0xb2f1b9[_0x457d9b(0x109)](setReadWriteExecuteAccess,_0x40e392);if(!_0xb2f1b9['nwbes'](isTrue,_0x12761f)){logger[_0x457d9b(0x17f)](_0x457d9b(0xf0)+_0x40e392);continue;}}}else{logger[_0x457d9b(0xb4)]('Folder\x20does\x20not\x20exist:\x20'+_0x40e392),_0xb2f1b9[_0x457d9b(0x109)](createDir,_0x40e392),logger[_0x457d9b(0xb4)]('Setting\x20required\x20permissions\x20to\x20'+_0x40e392);const _0x4a6ac9=_0xb2f1b9['nwbes'](setReadWriteExecuteAccess,_0x40e392);!_0xb2f1b9['ebGnV'](isTrue,_0x4a6ac9)&&logger[_0x457d9b(0x17f)](_0x457d9b(0xf0)+_0x40e392);}return _0x40e392;}catch(_0x53f8a2){logger[_0x457d9b(0xb9)](_0x457d9b(0x149)+util[_0x457d9b(0xbb)](_0x53f8a2));}}return null;}static[a83_0xaf2e9d(0xd0)](_0xad0b06){const _0xdc50a4=a83_0xaf2e9d,_0x480738={};_0x480738[_0xdc50a4(0x163)]=function(_0x2eae47,_0x44c27e){return _0x2eae47>_0x44c27e;};const _0x53dbab=_0x480738;try{if(!fs[_0xdc50a4(0xed)](_0xad0b06)||!fs[_0xdc50a4(0x121)](_0xad0b06)[_0xdc50a4(0x133)]())return'';const _0x196ac1=fs[_0xdc50a4(0x188)](_0xad0b06)['map'](_0x169765=>path[_0xdc50a4(0xe7)](_0xad0b06,_0x169765))[_0xdc50a4(0xdc)](_0x3fa391=>fs['statSync'](_0x3fa391)['isFile']()&&path['basename'](_0x3fa391)['startsWith'](_0xdc50a4(0xd4)));if(_0x53dbab[_0xdc50a4(0x163)](_0x196ac1[_0xdc50a4(0x160)],0x0)){const _0x260e67=_0x196ac1[_0xdc50a4(0xc1)](_0x170d16=>({'filePath':_0x170d16,'mtime':fs[_0xdc50a4(0x121)](_0x170d16)[_0xdc50a4(0x112)]}))[_0xdc50a4(0x141)]((_0x436fdb,_0x19c086)=>{const _0x1f60b7=_0xdc50a4;if(!_0x436fdb||!_0x436fdb['mtime'])return _0x19c086;if(_0x53dbab[_0x1f60b7(0x163)](_0x19c086['mtime'],_0x436fdb[_0x1f60b7(0x112)]))return _0x19c086;return _0x436fdb;},{});return _0x260e67?_0x260e67[_0xdc50a4(0x13d)]:'';}return'';}catch(_0x560a3f){return logger[_0xdc50a4(0xb9)](_0xdc50a4(0x164)+util[_0xdc50a4(0xbb)](_0x560a3f)),'';}}static [a83_0xaf2e9d(0xd7)]=async(_0x864136,_0x1627d5)=>{const _0x4da42c=a83_0xaf2e9d,_0x2eddcf={'lUpde':function(_0x1d8fce,_0x3a64a6,_0x3f71ba,_0x37d1aa,_0x514acd){return _0x1d8fce(_0x3a64a6,_0x3f71ba,_0x37d1aa,_0x514acd);},'CNzag':_0x4da42c(0xfb)},_0x414730={};_0x414730['qs']=_0x864136,_0x414730[_0x4da42c(0x16f)]=!![];const _0x2ee5d2=await _0x2eddcf[_0x4da42c(0x114)](nodeRequest,_0x2eddcf['CNzag'],UPDATED_CLI_ENDPOINT,_0x414730,_0x1627d5);return logger[_0x4da42c(0xb4)](_0x4da42c(0x116)+JSON[_0x4da42c(0x110)](_0x2ee5d2)),_0x2ee5d2;};static['isBinaryBusy'](_0x1ed315){const _0x2597c6=a83_0xaf2e9d;try{const _0xef0671=fs[_0x2597c6(0x142)](_0x1ed315,'r+');return fs[_0x2597c6(0x9c)](_0xef0671),![];}catch(_0x59a516){if(BINARY_BUSY_ERROR_CODES[_0x2597c6(0x125)](_0x59a516['code']))return logger[_0x2597c6(0xb4)](_0x2597c6(0x11f)+_0x1ed315),!![];return logger[_0x2597c6(0xb4)](_0x2597c6(0xef)+_0x59a516[_0x2597c6(0x155)]),![];}}static[a83_0xaf2e9d(0x9a)](_0x2f1aa3,_0x10906b=''){const _0x354799=a83_0xaf2e9d,_0x4c6984={'pPlPv':_0x354799(0x15d),'sQzvN':function(_0x5014b1,_0x342430){return _0x5014b1(_0x342430);},'zCfSy':_0x354799(0xd1),'syBBq':function(_0x563ac3,_0x463de3){return _0x563ac3(_0x463de3);},'yjxgL':function(_0x4c9188,_0x4eef0a){return _0x4c9188(_0x4eef0a);},'XoCgQ':function(_0x5cdf8f,_0x10f510,_0x38e428,_0x489ac0){return _0x5cdf8f(_0x10f510,_0x38e428,_0x489ac0);},'DzTxY':_0x354799(0xb9)};return new Promise((_0x418d99,_0x460c4e)=>{const _0x31dff5=_0x354799,_0x55c6f3={'dCmGp':_0x4c6984[_0x31dff5(0xd3)],'JnEYm':function(_0x46bcfe,_0xa1d692){return _0x4c6984['sQzvN'](_0x46bcfe,_0xa1d692);},'McqEb':_0x4c6984['zCfSy'],'zMJaW':function(_0x14f208,_0x1f50e5){const _0x2d1c5d=_0x31dff5;return _0x4c6984[_0x2d1c5d(0x16d)](_0x14f208,_0x1f50e5);},'yiHTY':function(_0x380812,_0x2bf558){const _0x23038f=_0x31dff5;return _0x4c6984[_0x23038f(0x98)](_0x380812,_0x2bf558);}},_0x350d49={};_0x350d49[_0x31dff5(0xff)]=_0x10906b,_0x350d49[_0x31dff5(0x13b)]=0x1388;const _0x162a41=_0x4c6984[_0x31dff5(0x15f)](exec,_0x2f1aa3,_0x350d49,(_0x5c05db,_0x557e92,_0x15c180)=>{const _0x368a06=_0x31dff5;if(_0x5c05db){if(_0x2f1aa3[_0x368a06(0x125)](_0x55c6f3[_0x368a06(0x161)])&&(_0x557e92['trim']()||_0x15c180[_0x368a06(0x97)]())){const _0x3b03dc=_0x557e92[_0x368a06(0x97)]()||_0x15c180[_0x368a06(0x97)]();logger['debug'](_0x368a06(0x171)+_0x3b03dc+'\x22'),_0x55c6f3['JnEYm'](_0x418d99,_0x3b03dc);}else _0x55c6f3[_0x368a06(0x187)](_0x418d99,_0x15c180[_0x368a06(0x97)]()||_0x55c6f3[_0x368a06(0x14c)]);}else logger[_0x368a06(0xb4)]('Resolving\x20with\x20stdout:\x20\x22'+_0x557e92[_0x368a06(0x97)]()+'\x22'),_0x55c6f3[_0x368a06(0x178)](_0x418d99,_0x557e92[_0x368a06(0x97)]());});_0x162a41['on'](_0x4c6984[_0x31dff5(0x12c)],()=>{const _0x304ec1=_0x31dff5;_0x55c6f3[_0x304ec1(0x16b)](_0x418d99,_0x55c6f3[_0x304ec1(0x14c)]);});});}static [a83_0xaf2e9d(0x154)]=async(_0x4ecaf3,_0x4695e6)=>{const _0x3acd58=a83_0xaf2e9d,_0x2a8adb={'UpJlU':_0x3acd58(0x17c),'lESJo':function(_0x70623c,_0x15bdbc){return _0x70623c(_0x15bdbc);},'jqikv':_0x3acd58(0xae),'kWqYK':function(_0x50463b,_0x47f9fb){return _0x50463b>=_0x47f9fb;},'kUOOa':_0x3acd58(0x168),'MLXGh':'SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','ZhhHC':_0x3acd58(0xb9),'JLuMp':_0x3acd58(0x119)};PerformanceTester[_0x3acd58(0x15a)](PerformanceEvents[_0x3acd58(0x104)]),logger[_0x3acd58(0xb4)](_0x3acd58(0xa8)+_0x4ecaf3);try{const _0x1b5605=url[_0x3acd58(0x157)](_0x4ecaf3),_0x2a3dfe=path[_0x3acd58(0xe7)](_0x4695e6,'downloaded_file_'+process[_0x3acd58(0x14a)]+_0x3acd58(0x144)),_0xba8102=fs['createWriteStream'](_0x2a3dfe);return new Promise((_0x34e957,_0x54b7c4)=>{const _0x437723=_0x3acd58,_0x1ab178={'mlEgu':_0x2a8adb[_0x437723(0xec)],'lSeag':function(_0x3f8946,_0x4a07e4){const _0x293699=_0x437723;return _0x2a8adb[_0x293699(0xaf)](_0x3f8946,_0x4a07e4);},'TmEtm':function(_0x4f3250,_0x249e8d){const _0x5a0956=_0x437723;return _0x2a8adb[_0x5a0956(0xaf)](_0x4f3250,_0x249e8d);},'djfhI':_0x2a8adb['jqikv'],'QMgVT':function(_0x4c3356,_0x51ac65){return _0x2a8adb['kWqYK'](_0x4c3356,_0x51ac65);},'lFYdP':_0x2a8adb[_0x437723(0xe3)],'FnzDx':_0x2a8adb[_0x437723(0xdd)],'beRzy':function(_0x2c8cd3,_0x4c5db9){const _0x296e60=_0x437723;return _0x2a8adb[_0x296e60(0xaf)](_0x2c8cd3,_0x4c5db9);},'NpFGh':_0x2a8adb['ZhhHC']};https[_0x437723(0xe5)](_0x1b5605,function(_0x1ab1b7){const _0xb88caf=_0x437723,_0x2ea16c={'idYsT':_0x1ab178['djfhI'],'QgrLv':function(_0xb49c69,_0x8d20d1){return _0x1ab178['TmEtm'](_0xb49c69,_0x8d20d1);}},_0x5d7808=null;if(_0x1ab1b7[_0xb88caf(0x11d)]&&_0x1ab178['QMgVT'](_0x1ab1b7[_0xb88caf(0x11d)],0x190)){const _0x4e343d=new Error('SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20'+_0x1ab1b7[_0xb88caf(0x11d)]+'\x20from\x20'+_0x4ecaf3);_0x4e343d[_0xb88caf(0xb3)]=_0x1ab178[_0xb88caf(0x101)],_0x4e343d[_0xb88caf(0x11d)]=_0x1ab1b7[_0xb88caf(0x11d)],logger[_0xb88caf(0xb9)](util['format'](_0x1ab178[_0xb88caf(0x131)],_0x1ab1b7[_0xb88caf(0x11d)])),PerformanceTester['end'](PerformanceEvents[_0xb88caf(0x104)],![],_0xb88caf(0x102)+_0x1ab1b7[_0xb88caf(0x11d)]),_0x1ab1b7[_0xb88caf(0x176)](),_0xba8102['destroy'](),fs[_0xb88caf(0x173)](_0x2a3dfe,()=>{}),_0x1ab178[_0xb88caf(0xd9)](_0x54b7c4,_0x4e343d);return;}_0x1ab1b7['pipe'](_0xba8102),_0x1ab1b7['on'](_0x1ab178[_0xb88caf(0xee)],function(_0x9a51e4){const _0xc56daf=_0xb88caf;logger[_0xc56daf(0xb9)](util['format'](_0x1ab178['mlEgu'],_0x9a51e4)),PerformanceTester[_0xc56daf(0xac)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x9a51e4)),_0x1ab178[_0xc56daf(0x13c)](_0x54b7c4,_0x9a51e4);}),_0xba8102['on'](_0x1ab178['NpFGh'],function(_0x50bd6a){const _0x20b4ae=_0xb88caf;logger['error'](util[_0x20b4ae(0xbb)](_0x2ea16c[_0x20b4ae(0xdf)],_0x50bd6a)),PerformanceTester[_0x20b4ae(0xac)](PerformanceEvents[_0x20b4ae(0x104)],![],util[_0x20b4ae(0xbb)](_0x50bd6a)),_0x2ea16c[_0x20b4ae(0x174)](_0x54b7c4,_0x50bd6a);}),CLIUtils[_0xb88caf(0x186)](_0xba8102,_0x5d7808,_0x2a3dfe,_0x4695e6,_0x580f4d=>{const _0x3fbc90=_0xb88caf;PerformanceTester['end'](PerformanceEvents[_0x3fbc90(0x104)]),_0x2ea16c[_0x3fbc90(0x174)](_0x34e957,_0x580f4d);},_0x24dffa=>{const _0x4ea3f3=_0xb88caf;PerformanceTester[_0x4ea3f3(0xac)](PerformanceEvents[_0x4ea3f3(0x104)],![],util[_0x4ea3f3(0xbb)](_0x24dffa)),_0x1ab178[_0x4ea3f3(0x124)](_0x54b7c4,_0x24dffa);});})['on'](_0x2a8adb[_0x437723(0x158)],function(_0x1e69a6){const _0x2b6810=_0x437723;logger[_0x2b6810(0xb9)](_0x2b6810(0xea)+util['format'](_0x1e69a6)),PerformanceTester[_0x2b6810(0xac)](PerformanceEvents[_0x2b6810(0x104)],![],util[_0x2b6810(0xbb)](_0x1e69a6)),_0x1ab178[_0x2b6810(0x13c)](_0x54b7c4,_0x1e69a6);});});}catch(_0x30439e){PerformanceTester[_0x3acd58(0xac)](PerformanceEvents[_0x3acd58(0x104)],![],util[_0x3acd58(0xbb)](_0x30439e)),logger[_0x3acd58(0xb9)](util['format'](_0x2a8adb[_0x3acd58(0xe8)],_0x30439e));throw _0x30439e;}};static[a83_0xaf2e9d(0x186)](_0x49f4b8,_0x88037,_0x5b44a9,_0x1c3405,_0x45b3e8,_0x1e7e9c){const _0x5d50d6=a83_0xaf2e9d,_0x3021c0={'oKBUP':function(_0x134c66,_0x16133c){return _0x134c66(_0x16133c);},'esWgs':function(_0x21a257,_0x59d266){return _0x21a257(_0x59d266);},'qiYTQ':'end','AEBKb':_0x5d50d6(0x10f),'CCbTV':_0x5d50d6(0xb9),'SQyFj':'close','KNwjZ':function(_0x336feb,_0x1e304d){return _0x336feb!==_0x1e304d;},'XqYzH':_0x5d50d6(0x118),'lrJMF':function(_0x57a691,_0x1734c1){return _0x57a691(_0x1734c1);},'Rkodm':function(_0x31de6f,_0x43c3d9){return _0x31de6f(_0x43c3d9);},'lfMLn':'0755'};_0x49f4b8['on'](_0x3021c0['SQyFj'],function(){const _0x50e4df=_0x5d50d6,_0x42aa4a={'Umpxg':_0x3021c0[_0x50e4df(0xda)],'iOJqZ':function(_0x26cb9d,_0x4d4f90){const _0x330d33=_0x50e4df;return _0x3021c0[_0x330d33(0x126)](_0x26cb9d,_0x4d4f90);},'yGiyd':function(_0xad10c2,_0x1905cf){const _0x418808=_0x50e4df;return _0x3021c0[_0x418808(0x152)](_0xad10c2,_0x1905cf);},'tbsYX':_0x3021c0['CCbTV'],'mvgum':_0x3021c0['XqYzH'],'FEpNd':function(_0x3e24cc,_0x4f31b0){const _0x5a09f3=_0x50e4df;return _0x3021c0[_0x5a09f3(0xfc)](_0x3e24cc,_0x4f31b0);},'zAiPh':function(_0x4e13de,_0x550c17){const _0x33c91b=_0x50e4df;return _0x3021c0[_0x33c91b(0x11c)](_0x4e13de,_0x550c17);},'ixboR':_0x3021c0[_0x50e4df(0xc3)]},_0x3f6fb9={};_0x3f6fb9['lazyEntries']=!![],yauzl[_0x50e4df(0xe2)](_0x5b44a9,_0x3f6fb9,function(_0x40b78a,_0x159f03){const _0x62f3b8=_0x50e4df,_0x2d3b27={'cMZpB':function(_0x501e64,_0x1d0e19){const _0x5aa361=a83_0x6614;return _0x3021c0[_0x5aa361(0xa2)](_0x501e64,_0x1d0e19);},'YCNaQ':function(_0x306fd8,_0x439a47){const _0x1005fd=a83_0x6614;return _0x3021c0[_0x1005fd(0x152)](_0x306fd8,_0x439a47);},'iNRxT':function(_0x243520,_0x1ce3a7){const _0x2f1f28=a83_0x6614;return _0x3021c0[_0x2f1f28(0xa2)](_0x243520,_0x1ce3a7);},'CiVBO':_0x3021c0[_0x62f3b8(0x10c)]};if(_0x40b78a){_0x3021c0[_0x62f3b8(0x152)](_0x1e7e9c,_0x40b78a);return;}_0x159f03[_0x62f3b8(0xe9)](),_0x159f03['on'](_0x3021c0[_0x62f3b8(0x14e)],_0xb74d64=>{const _0xc72b4b=_0x62f3b8,_0x2775a2={};_0x2775a2['RfjsZ']=_0x42aa4a[_0xc72b4b(0x17b)];const _0x10ded5=_0x2775a2;if(/\/$/[_0xc72b4b(0x105)](_0xb74d64['fileName'])){_0x159f03[_0xc72b4b(0xe9)]();return;}!_0x88037&&(_0x88037=_0xb74d64[_0xc72b4b(0x120)]);if(_0x42aa4a[_0xc72b4b(0xb5)](_0xb74d64[_0xc72b4b(0x120)],_0x88037))_0x159f03[_0xc72b4b(0xe9)]();else{const _0x5e6274=_0xb74d64[_0xc72b4b(0x120)],_0x2b9ab2=path[_0xc72b4b(0xe7)](_0x1c3405,_0x5e6274+'.tmp.'+process[_0xc72b4b(0x14a)]);let _0x376c9a;try{_0x376c9a=fs[_0xc72b4b(0xf4)](_0x2b9ab2);}catch(_0x3612dc){if(BINARY_BUSY_ERROR_CODES[_0xc72b4b(0x125)](_0x3612dc['code'])){const _0x248861=path[_0xc72b4b(0xe7)](_0x1c3405,_0x5e6274);if(fs[_0xc72b4b(0xed)](_0x248861)){logger['warn'](_0xc72b4b(0x151)+_0x5e6274),fs[_0xc72b4b(0x173)](_0x5b44a9,_0x53a249=>{const _0x353bbe=_0xc72b4b;_0x53a249&&logger[_0x353bbe(0x17f)](_0x353bbe(0x111)+_0x5b44a9);}),_0x42aa4a[_0xc72b4b(0xbc)](_0x45b3e8,_0x248861);return;}logger[_0xc72b4b(0x17f)](_0xc72b4b(0xb1)+_0x5e6274);}_0x42aa4a[_0xc72b4b(0xbc)](_0x1e7e9c,_0x3612dc);return;}_0x376c9a['on'](_0x42aa4a['tbsYX'],_0x414a73=>{const _0x468e4c=_0xc72b4b;if(BINARY_BUSY_ERROR_CODES[_0x468e4c(0x125)](_0x414a73[_0x468e4c(0xb3)])){const _0x498699=path[_0x468e4c(0xe7)](_0x1c3405,_0x5e6274);_0x376c9a['close'](),fs[_0x468e4c(0xed)](_0x498699)?(logger['warn'](_0x468e4c(0xf9)+_0x414a73['message']),_0x159f03[_0x468e4c(0xeb)](),fs[_0x468e4c(0x173)](_0x5b44a9,_0x54ff68=>{const _0x2ac07d=_0x468e4c;_0x54ff68&&logger['warn'](_0x2ac07d(0x111)+_0x5b44a9);}),_0x2d3b27[_0x468e4c(0x107)](_0x45b3e8,_0x498699)):(logger['warn'](_0x468e4c(0xcc)+_0x414a73['message']),fs[_0x468e4c(0x173)](_0x2b9ab2,()=>{}),_0x2d3b27[_0x468e4c(0x113)](_0x1e7e9c,_0x414a73));}else fs['unlink'](_0x2b9ab2,()=>{}),_0x2d3b27[_0x468e4c(0x122)](_0x1e7e9c,_0x414a73);}),_0x159f03[_0xc72b4b(0xa5)](_0xb74d64,function(_0x261f5a,_0x4ad689){const _0x34de37=_0xc72b4b;if(_0x261f5a){fs[_0x34de37(0x173)](_0x2b9ab2,()=>{}),_0x2d3b27[_0x34de37(0x122)](_0x1e7e9c,_0x261f5a);return;}_0x4ad689['on'](_0x2d3b27[_0x34de37(0x12a)],function(){const _0x317fc3=_0x34de37;_0x376c9a[_0x317fc3(0xac)](),_0x376c9a['on'](_0x10ded5[_0x317fc3(0xc0)],function(){_0x159f03['readEntry']();});}),_0x4ad689[_0x34de37(0x147)](_0x376c9a);});}}),_0x159f03['on'](_0x3021c0[_0x62f3b8(0xbd)],_0x30a15c=>{const _0x5bbbad=_0x62f3b8;_0x42aa4a[_0x5bbbad(0xbc)](_0x1e7e9c,_0x30a15c);}),_0x159f03['once'](_0x3021c0[_0x62f3b8(0x10c)],()=>{const _0x32168c=_0x62f3b8,_0x3dbdca={'IRfVE':function(_0x367c79,_0x3c3f69){return _0x42aa4a['iOJqZ'](_0x367c79,_0x3c3f69);},'ewUhi':_0x42aa4a[_0x32168c(0xe4)],'QejZA':function(_0x4c3742,_0xba0796){return _0x42aa4a['yGiyd'](_0x4c3742,_0xba0796);},'Usdzt':function(_0x390c4f,_0x2ebdc7){const _0x30e3d=_0x32168c;return _0x42aa4a[_0x30e3d(0x148)](_0x390c4f,_0x2ebdc7);},'elTvu':function(_0x56fc80,_0x58447d){const _0x233a9b=_0x32168c;return _0x42aa4a[_0x233a9b(0xbf)](_0x56fc80,_0x58447d);}};fs[_0x32168c(0x173)](_0x5b44a9,_0x4b7fd9=>{const _0x35a643=_0x32168c;_0x4b7fd9&&logger['warn'](_0x35a643(0x111)+_0x5b44a9);});const _0x5b0ef2=path[_0x32168c(0xe7)](_0x1c3405,_0x88037+_0x32168c(0x180)+process[_0x32168c(0x14a)]),_0x25ca1e=path[_0x32168c(0xe7)](_0x1c3405,_0x88037);fs['chmod'](_0x5b0ef2,_0x42aa4a[_0x32168c(0x138)],function(_0x5f1ee5){const _0x5d3459=_0x32168c;if(_0x5f1ee5){_0x159f03[_0x5d3459(0xeb)](),fs[_0x5d3459(0x173)](_0x5b0ef2,()=>{}),_0x2d3b27['YCNaQ'](_0x1e7e9c,_0x5f1ee5);return;}fs[_0x5d3459(0xd8)](_0x5b0ef2,_0x25ca1e,function(_0x5a596a){const _0x1e489a=_0x5d3459;if(_0x5a596a){if(_0x3dbdca[_0x1e489a(0x99)](_0x5a596a[_0x1e489a(0xb3)],_0x3dbdca[_0x1e489a(0x140)])){_0x159f03[_0x1e489a(0xeb)](),fs['unlink'](_0x5b0ef2,()=>{}),_0x3dbdca[_0x1e489a(0xab)](_0x1e7e9c,_0x5a596a);return;}logger[_0x1e489a(0x17f)]('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0x5a596a['message']);try{fs[_0x1e489a(0x10e)](_0x5b0ef2,_0x25ca1e);}catch(_0x5cadb7){_0x159f03[_0x1e489a(0xeb)](),fs[_0x1e489a(0x173)](_0x5b0ef2,()=>{}),_0x3dbdca[_0x1e489a(0x17a)](_0x1e7e9c,_0x5cadb7);return;}fs[_0x1e489a(0x173)](_0x5b0ef2,_0x1baf12=>{const _0x2e4a62=_0x1e489a;_0x1baf12&&logger[_0x2e4a62(0x17f)](_0x2e4a62(0x175)+_0x1baf12['message']);});}_0x159f03['close'](),_0x3dbdca['elTvu'](_0x45b3e8,_0x25ca1e);});});});});});}static[a83_0xaf2e9d(0x14d)](){const _0x48d94d=a83_0xaf2e9d;if(process[_0x48d94d(0xfd)][_0x48d94d(0x10a)])return JSON[_0x48d94d(0x157)](process[_0x48d94d(0xfd)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this[_0x48d94d(0x115)];}static[a83_0xaf2e9d(0x123)](){const _0x2c6519=a83_0xaf2e9d;if(process[_0x2c6519(0xfd)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x2c6519(0x157)](process[_0x2c6519(0xfd)][_0x2c6519(0x12e)]);return this[_0x2c6519(0x12d)];}static['setFrameworkDetail'](_0x4c6e4c,_0x53433){const _0x436371=a83_0xaf2e9d,_0xc42c30={'nmzZC':_0x436371(0x11e),'KfMxC':function(_0x508703,_0x767a65){return _0x508703(_0x767a65);},'kGYSK':function(_0xd34410,_0x2ec8e5){return _0xd34410(_0x2ec8e5);},'roVmP':function(_0x1911cc,_0x4d06ef){return _0x1911cc||_0x4d06ef;}},_0x3fa197=_0xc42c30[_0x436371(0x135)][_0x436371(0xf5)]('|');let _0x22635c=0x0;while(!![]){switch(_0x3fa197[_0x22635c++]){case'0':process[_0x436371(0xfd)][_0x436371(0x10a)]=JSON['stringify'](this[_0x436371(0x115)]);continue;case'1':this[_0x436371(0x115)]={'name':_0x4c6e4c,'version':{[_0x4c6e4c]:_0xc42c30[_0x436371(0x16c)](getFrameworkVersion,_0x4c6e4c)}};continue;case'2':this[_0x436371(0x12d)]={'name':_0x53433,'version':_0xc42c30[_0x436371(0xa4)](getFrameworkVersion,_0x53433)};continue;case'3':process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON[_0x436371(0x110)](this[_0x436371(0x12d)]);continue;case'4':_0xc42c30[_0x436371(0x150)](!_0x4c6e4c,!_0x53433)&&logger[_0x436371(0xb4)](_0x436371(0x13f)+_0x4c6e4c+',\x20automationFramework='+_0x53433);continue;}break;}}static[a83_0xaf2e9d(0x117)](_0x51d6fd,_0x5c2e21){return _0x51d6fd+':'+_0x5c2e21;}static[a83_0xaf2e9d(0xf8)](){const _0x561147=a83_0xaf2e9d;return process[_0x561147(0x14a)]+':'+threadId;}static[a83_0xaf2e9d(0x162)](_0x7fe29e){const _0xa243f2=a83_0xaf2e9d;if(_0x7fe29e[_0xa243f2(0x103)]&&_0x7fe29e[_0xa243f2(0x103)][_0xa243f2(0x130)])return!![];return![];}static[a83_0xaf2e9d(0xe6)](_0x38d21e){const _0x399ca5=a83_0xaf2e9d;if(_0x38d21e[_0x399ca5(0x103)]&&_0x38d21e['testContextOptions'][_0x399ca5(0x17e)])return!![];return![];}static[a83_0xaf2e9d(0x106)](_0x37e9be){const _0x532435=a83_0xaf2e9d,_0x2fd597=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x2fd597[_0x532435(0x105)](_0x37e9be);}static[a83_0xaf2e9d(0x137)](_0x782e12,_0x111117){const _0x4c598f=a83_0xaf2e9d,_0x5af6c8={};_0x5af6c8[_0x4c598f(0x108)]=function(_0x315f88,_0x50a988){return _0x315f88!==_0x50a988;},_0x5af6c8[_0x4c598f(0x134)]=function(_0x2e5aab,_0x546515){return _0x2e5aab===_0x546515;},_0x5af6c8[_0x4c598f(0xfe)]=_0x4c598f(0xc5);const _0x466ac6=_0x5af6c8;for(const [_0x26ae67,_0x4d06b3]of Object[_0x4c598f(0x169)](_0x111117)){if(_0x466ac6[_0x4c598f(0x108)](_0x4d06b3,null)&&_0x466ac6['YwLtX'](typeof _0x4d06b3,_0x466ac6[_0x4c598f(0xfe)])&&!Array[_0x4c598f(0xd5)](_0x4d06b3))_0x782e12[_0x26ae67]=this[_0x4c598f(0x137)](_0x782e12[_0x26ae67]||{},_0x4d06b3);else Array[_0x4c598f(0xd5)](_0x4d06b3)?_0x782e12[_0x26ae67]=(_0x782e12[_0x26ae67]||[])[_0x4c598f(0xa0)](_0x4d06b3):_0x782e12[_0x26ae67]=_0x4d06b3;}return _0x782e12;}}module['exports']=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a86_0x2e3a0d=a86_0x3906;(function(_0x1bc988,_0x5039b4){const _0x33142b=a86_0x3906,_0x1fee84=_0x1bc988();while(!![]){try{const _0xbc9095=parseInt(_0x33142b(0x7f))/0x1*(parseInt(_0x33142b(0xf6))/0x2)+-parseInt(_0x33142b(0x82))/0x3+parseInt(_0x33142b(0xc0))/0x4*(parseInt(_0x33142b(0x94))/0x5)+-parseInt(_0x33142b(0xce))/0x6*(-parseInt(_0x33142b(0x103))/0x7)+-parseInt(_0x33142b(0xdd))/0x8+parseInt(_0x33142b(0xc4))/0x9*(parseInt(_0x33142b(0xfd))/0xa)+parseInt(_0x33142b(0x97))/0xb*(-parseInt(_0x33142b(0xf0))/0xc);if(_0xbc9095===_0x5039b4)break;else _0x1fee84['push'](_0x1fee84['shift']());}catch(_0x2835d3){_0x1fee84['push'](_0x1fee84['shift']());}}}(a86_0x148b,0x226da));function a86_0x148b(){const _0x158c52=['name','9816FndtGs','__workerDetails','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','XGXQB','stringify','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','from','field_type','getBuildTagsRunId','STRSZ','YSDxo','KaRQy','getBuildLevelTags','oTxqD','GMYvb','MXoCx','getTestIdentifierFromTestInfo','message','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','180OPjxvP','__jestCurrentTestIdentifier','clearTags','CFpwe','getAllData',',\x20values=','126IXLnFX','getTestUUID','iBGgH','setCustomTags','\x20->\x20values=','getInstance','unlinkSync','20SEQKiV','isRunning','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','mtimeMs','mergeIntoTags','getBuildTagsFilePath','7WhTqLB','wqtMG','CeltB','BUILD_TAG_FILE_PREFIX','ydLJk','getTestDetails','TEST','startsWith','buildLevelTags','./modules/playwrightDriverModule','3539WLMumD','tmpdir','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','37920fAaeiO','CYrks','EosPc','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','mergeBuildLevelTags','KHtWb','./TestInfo','filter','keys','getTestFramework','wFhrR','VlIjA','path','kbups','join','trim','Biqbc','oHkwT','3115NvNhVo','CustomTagManager','./browserstackCLI','277618bOUiIl','efmtC','testInfo','mergeValues','../../helpers/classLogger','lUYll','getTrackedInstance','BROWSERSTACK_TESTHUB_UUID','debug','statSync',',\x20key=','retry','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','getTestFrameworkDetail','aggregateBuildLevelTagsFromTmp','./framework/automationFramework','TgORg','get','./framework/constants/testFrameworkConstants','writeFile','utf8','hjUjm','values','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','vYdBa','length','_testInternals','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','modules','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','./state/testFrameworkState','entries','currentTest','UazBt','fOBWQ','buildHashedId','toLowerCase','hSfIu','now','env','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','1684zTFuOT','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','pid','.json','132084cXqnkj','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','testhubConfig','../../helpers/helper','pCcAr','MODULE_NAME','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','KEY_TEST_ID','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','multi_dropdown','113178ECAHQz','./state/hookState','isArray','exports','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','testLevelTags','POST','wjJJM','null','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','tjgCa','mXEcN','KEY_CUSTOM_TAGS','QBNoJ'];a86_0x148b=function(){return _0x158c52;};return a86_0x148b();}const fs=require('fs'),os=require('os'),path=require(a86_0x2e3a0d(0x8e)),helper=require(a86_0x2e3a0d(0xc7)),AutomationFramework=require(a86_0x2e3a0d(0xa6)),TestFrameworkConstants=require(a86_0x2e3a0d(0xa9)),PlaywrightDriverModule=require(a86_0x2e3a0d(0x7e)),TestInfo=require(a86_0x2e3a0d(0x88)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require(a86_0x2e3a0d(0x9b)),logger=createClassLogger(a86_0x2e3a0d(0x95)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function getBuildTagsRunId(){const _0x31473a=a86_0x2e3a0d,_0x3eead5={};_0x3eead5[_0x31473a(0xd8)]=function(_0x503fd6,_0x48a6e0){return _0x503fd6===_0x48a6e0;},_0x3eead5[_0x31473a(0x107)]=_0x31473a(0xd6);const _0x5b268b=_0x3eead5,_0x40ee6a=process[_0x31473a(0xbe)][_0x31473a(0x9e)];if(!_0x40ee6a||_0x5b268b[_0x31473a(0xd8)](_0x40ee6a,_0x5b268b[_0x31473a(0x107)]))return null;return _0x40ee6a;}function a86_0x3906(_0x4ab938,_0x3dfd33){const _0x148bc5=a86_0x148b();return a86_0x3906=function(_0x3906fb,_0x5e6f9c){_0x3906fb=_0x3906fb-0x7e;let _0x3d5d7e=_0x148bc5[_0x3906fb];return _0x3d5d7e;},a86_0x3906(_0x4ab938,_0x3dfd33);}function getBuildTagsFilePath(_0x18fd5e){const _0x45120f=a86_0x2e3a0d;return path[_0x45120f(0x90)](os['tmpdir'](),''+BUILD_TAG_FILE_PREFIX+_0x18fd5e+'_'+process[_0x45120f(0xc2)]+_0x45120f(0xc3));}class CustomTagManager{static [a86_0x2e3a0d(0x10b)]={};static [a86_0x2e3a0d(0xd3)]={};static[a86_0x2e3a0d(0x9a)](_0x799f8c,_0x53a8a7){const _0x4fbdc8=a86_0x2e3a0d;return Array[_0x4fbdc8(0xe3)](new Set([..._0x799f8c||[],..._0x53a8a7||[]]));}static[a86_0x2e3a0d(0x101)](_0x24e0b4,_0x2bf1e5,_0x31bf83){const _0x127471=a86_0x2e3a0d,_0x51bbe1={};_0x51bbe1[_0x127471(0x87)]=_0x127471(0xcd);const _0x556008=_0x51bbe1;if(!_0x24e0b4[_0x2bf1e5]){const _0x46796a={};_0x46796a['field_type']=_0x556008[_0x127471(0x87)],_0x46796a[_0x127471(0xad)]=[..._0x31bf83||[]],_0x24e0b4[_0x2bf1e5]=_0x46796a;}else!_0x24e0b4[_0x2bf1e5]['field_type']&&(_0x24e0b4[_0x2bf1e5][_0x127471(0xe4)]=_0x556008[_0x127471(0x87)]),!Array[_0x127471(0xd0)](_0x24e0b4[_0x2bf1e5]['values'])&&(_0x24e0b4[_0x2bf1e5][_0x127471(0xad)]=[]),_0x24e0b4[_0x2bf1e5][_0x127471(0xad)]=CustomTagManager[_0x127471(0x9a)](_0x24e0b4[_0x2bf1e5][_0x127471(0xad)],_0x31bf83);return _0x24e0b4;}static async[a86_0x2e3a0d(0xf9)](_0x3c76a9,_0x375f4e,_0x2ae6a5=![]){const _0x250ff2=a86_0x2e3a0d,_0x496299={'CYrks':function(_0x3119e0,_0x86840c){return _0x3119e0!==_0x86840c;},'Biqbc':'string','CeltB':_0x250ff2(0xc1),'oTxqD':function(_0x20fbc5,_0x29b05b){return _0x20fbc5!==_0x29b05b;},'XGXQB':_0x250ff2(0xdf),'oHkwT':function(_0x12ad60,_0x9a5926){return _0x12ad60===_0x9a5926;},'efmtC':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','nvkXT':function(_0x5564af,_0x1b7cfb){return _0x5564af===_0x1b7cfb;},'UazBt':_0x250ff2(0xb2),'mXEcN':function(_0x51899b,_0x9c207e){return _0x51899b(_0x9c207e);},'wjJJM':_0x250ff2(0x96),'YSDxo':function(_0x4a1004){return _0x4a1004();},'kbups':'multi_dropdown','zwpuH':function(_0x21ca7b,_0x102914){return _0x21ca7b>_0x102914;},'QBNoJ':function(_0x10a4f7,_0x173369){return _0x10a4f7(_0x173369);},'wFhrR':_0x250ff2(0xcc),'fOBWQ':':jest-','CFpwe':function(_0x2e59d5,_0x45d0a3){return _0x2e59d5(_0x45d0a3);},'vYdBa':'./cliUtils','GMYvb':function(_0x3e12e1,_0x11644d){return _0x3e12e1(_0x11644d);},'pCcAr':function(_0x596872,_0x3bdc48){return _0x596872===_0x3bdc48;},'eXPPn':'jest','MXoCx':_0x250ff2(0xbf),'wqtMG':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','lUYll':_0x250ff2(0xb5),'VlIjA':_0x250ff2(0xcf),'IZTBK':_0x250ff2(0xff)};if(_0x496299[_0x250ff2(0x83)](typeof _0x3c76a9,_0x496299['Biqbc'])){logger['debug'](_0x496299[_0x250ff2(0x105)]);return;}if(_0x496299[_0x250ff2(0xea)](typeof _0x375f4e,_0x496299[_0x250ff2(0x92)])){logger['debug'](_0x496299[_0x250ff2(0xe0)]);return;}if(_0x496299[_0x250ff2(0x93)](_0x3c76a9[_0x250ff2(0x91)](),'')){logger[_0x250ff2(0x9f)](_0x496299[_0x250ff2(0x98)]);return;}if(_0x496299['nvkXT'](_0x375f4e['trim'](),'')){logger[_0x250ff2(0x9f)](_0x496299[_0x250ff2(0xb8)]);return;}const _0x108b8b=helper['parseCommaSeparatedValues'](_0x375f4e);if(_0x2ae6a5){const _0x112ed5=_0x496299['mXEcN'](require,_0x496299[_0x250ff2(0xd5)]),_0x593e4b=_0x112ed5[_0x250ff2(0xfb)](),_0x4a5080=_0x593e4b&&_0x593e4b[_0x250ff2(0xb3)][TestHubModule[_0x250ff2(0xc9)]];if(_0x4a5080){const _0x2c4b3d=_0x4a5080?.[_0x250ff2(0xc6)]?.['toObject']()?.[_0x250ff2(0xba)];TestInfo[_0x250ff2(0xf7)](_0x2c4b3d);const _0x1e6f2a=TestInfo[_0x250ff2(0x108)](_0x2c4b3d),_0x100b2c=_0x1e6f2a[TestFrameworkConstants[_0x250ff2(0xda)]]||{};CustomTagManager[_0x250ff2(0x101)](_0x100b2c,_0x3c76a9,_0x108b8b),_0x1e6f2a[TestFrameworkConstants[_0x250ff2(0xda)]]=_0x100b2c,TestInfo['setTestDetails'](_0x2c4b3d,_0x1e6f2a);!this[_0x250ff2(0x10b)][_0x2c4b3d]&&(this[_0x250ff2(0x10b)][_0x2c4b3d]={});this['buildLevelTags'][_0x2c4b3d][_0x3c76a9]=CustomTagManager['mergeValues'](this[_0x250ff2(0x10b)][_0x2c4b3d][_0x3c76a9],_0x108b8b);try{const _0x1dc5bb=_0x496299[_0x250ff2(0xe7)](getBuildTagsRunId);if(_0x1dc5bb){const _0x3ec5a6={};for(const [_0x4d2d58,_0x48ad1c]of Object['entries'](this[_0x250ff2(0x10b)][_0x2c4b3d]||{})){_0x3ec5a6[_0x4d2d58]={'field_type':_0x496299[_0x250ff2(0x8f)],'values':Array[_0x250ff2(0xd0)](_0x48ad1c)?[..._0x48ad1c]:[]};}_0x496299['zwpuH'](Object[_0x250ff2(0x8a)](_0x3ec5a6)[_0x250ff2(0xb0)],0x0)&&await fs['promises'][_0x250ff2(0xaa)](_0x496299[_0x250ff2(0xdb)](getBuildTagsFilePath,_0x1dc5bb),JSON[_0x250ff2(0xe1)](_0x3ec5a6));}else logger[_0x250ff2(0x9f)](_0x496299[_0x250ff2(0x8c)]);}catch(_0x5e2d0f){logger[_0x250ff2(0x9f)](_0x250ff2(0xe2)+(_0x5e2d0f&&_0x5e2d0f[_0x250ff2(0xee)]?_0x5e2d0f[_0x250ff2(0xee)]:_0x5e2d0f));}}}else{let _0x152e80;const _0x367a1c=global[_0x250ff2(0xf1)];let _0x41a6cc=![];if(_0x367a1c&&_0x367a1c['includes'](_0x496299['fOBWQ']))_0x41a6cc=!![],_0x152e80=_0x367a1c;else try{const _0x476274=_0x496299[_0x250ff2(0xf3)](require,_0x496299[_0x250ff2(0xaf)]),_0x3cfc5a=_0x496299[_0x250ff2(0xeb)](require,_0x496299[_0x250ff2(0xd5)]);if(_0x3cfc5a[_0x250ff2(0xfb)]()[_0x250ff2(0xfe)]()){const _0x1f6ed8=_0x476274[_0x250ff2(0xa4)]();if(_0x496299[_0x250ff2(0xc8)](_0x1f6ed8?.[_0x250ff2(0xdc)]?.[_0x250ff2(0xbb)](),_0x496299['eXPPn'])){const _0x4fe26c=AutomationFramework[_0x250ff2(0x9d)]();_0x152e80=AutomationFramework['getState'](_0x4fe26c,PlaywrightDriverModule[_0x250ff2(0xcb)],''),_0x152e80&&_0x152e80['includes'](_0x496299[_0x250ff2(0xb9)])&&(_0x41a6cc=!![]);}}}catch(_0x28343c){logger[_0x250ff2(0x9f)](_0x250ff2(0x81)+_0x28343c);}if(_0x41a6cc){if(!_0x152e80)throw new Error(_0x496299[_0x250ff2(0xec)]);const _0x3ed4dc=_0x496299[_0x250ff2(0xf3)](require,_0x496299[_0x250ff2(0xd5)]),_0x15b2da=_0x3ed4dc[_0x250ff2(0xfb)]()[_0x250ff2(0x8b)]();if(!_0x15b2da)throw new Error(_0x496299[_0x250ff2(0x104)]);const _0x59a557=_0x496299[_0x250ff2(0xf3)](require,_0x496299[_0x250ff2(0x9c)]),_0x1f29e6=_0x496299[_0x250ff2(0xd9)](require,_0x496299[_0x250ff2(0x8d)]),_0x94e816=_0x15b2da['resolveInstance'](_0x59a557[_0x250ff2(0x109)],_0x1f29e6[_0x250ff2(0xd4)]);if(!_0x94e816)throw new Error(_0x496299['IZTBK']);const _0x4ec7b6=_0x94e816[_0x250ff2(0xf4)]()[_0x250ff2(0xa8)](_0x152e80)||{},_0x5f76aa=_0x4ec7b6[TestFrameworkConstants[_0x250ff2(0xda)]]||{};logger[_0x250ff2(0x9f)](_0x250ff2(0xd7)+_0x152e80+_0x250ff2(0xa1)+_0x3c76a9+_0x250ff2(0xf5)+JSON[_0x250ff2(0xe1)](_0x108b8b)+',\x20existingTags='+JSON[_0x250ff2(0xe1)](_0x5f76aa)),CustomTagManager[_0x250ff2(0x101)](_0x5f76aa,_0x3c76a9,_0x108b8b),logger['debug'](_0x250ff2(0x85)+_0x3c76a9+_0x250ff2(0xfa)+JSON[_0x250ff2(0xe1)](_0x5f76aa[_0x3c76a9]['values']));const _0x375ae9={[TestFrameworkConstants[_0x250ff2(0xda)]]:_0x5f76aa},_0x12a62a={};_0x12a62a[_0x152e80]=_0x375ae9,_0x94e816['addMultipleEntries'](_0x12a62a),logger[_0x250ff2(0x9f)](_0x250ff2(0xa3)+_0x152e80+',\x20finalTags='+JSON[_0x250ff2(0xe1)](_0x5f76aa)),!this[_0x250ff2(0xd3)][_0x152e80]&&(this[_0x250ff2(0xd3)][_0x152e80]={}),this[_0x250ff2(0xd3)][_0x152e80][_0x3c76a9]=CustomTagManager[_0x250ff2(0x9a)](this[_0x250ff2(0xd3)][_0x152e80][_0x3c76a9],_0x108b8b);}else{const _0x3ddfe8=global[_0x250ff2(0xde)]?.[_0x250ff2(0xb7)]?.[_0x250ff2(0x99)];if(!_0x3ddfe8){const _0x4a1e63=AutomationFramework['getTrackedInstance']();_0x152e80=AutomationFramework['getState'](_0x4a1e63,PlaywrightDriverModule[_0x250ff2(0xcb)],'');}else _0x152e80=TestInfo[_0x250ff2(0xed)](_0x3ddfe8,_0x3ddfe8[_0x250ff2(0xa2)]);const _0x53b031=TestInfo['getTestDetails'](_0x152e80),_0x208b6c=_0x53b031[TestFrameworkConstants[_0x250ff2(0xda)]]||{};CustomTagManager[_0x250ff2(0x101)](_0x208b6c,_0x3c76a9,_0x108b8b),_0x53b031[TestFrameworkConstants[_0x250ff2(0xda)]]=_0x208b6c,TestInfo['setTestDetails'](_0x152e80,_0x53b031),!this[_0x250ff2(0xd3)][_0x152e80]&&(this['testLevelTags'][_0x152e80]={}),this[_0x250ff2(0xd3)][_0x152e80][_0x3c76a9]=CustomTagManager[_0x250ff2(0x9a)](this['testLevelTags'][_0x152e80][_0x3c76a9],_0x108b8b);}}}static[a86_0x2e3a0d(0xe9)](){const _0x3d380e=a86_0x2e3a0d,_0x3586cc={...this[_0x3d380e(0x10b)]};return _0x3586cc;}static['getTestLevelTags'](){const _0x4dccb4=a86_0x2e3a0d,_0x536350={...this[_0x4dccb4(0xd3)]};return _0x536350;}static[a86_0x2e3a0d(0xf2)](){const _0x3d0477=a86_0x2e3a0d;this['buildLevelTags']={},this[_0x3d0477(0xd3)]={};}static['mergeBuildLevelTags'](_0x1bd931,_0x32e8ff){const _0x40e5af=a86_0x2e3a0d,_0x45166a={};_0x45166a[_0x40e5af(0xe6)]=function(_0x67d7eb,_0xc8b018){return _0x67d7eb||_0xc8b018;};const _0x18e80a=_0x45166a;if(!_0x1bd931)return;!this['buildLevelTags'][_0x1bd931]&&(this[_0x40e5af(0x10b)][_0x1bd931]={});for(const [_0x288419,_0x3dac73]of Object[_0x40e5af(0xb6)](_0x18e80a[_0x40e5af(0xe6)](_0x32e8ff,{}))){if(!_0x3dac73||!Array[_0x40e5af(0xd0)](_0x3dac73['values']))continue;this[_0x40e5af(0x10b)][_0x1bd931][_0x288419]=CustomTagManager[_0x40e5af(0x9a)](this[_0x40e5af(0x10b)][_0x1bd931][_0x288419],_0x3dac73[_0x40e5af(0xad)]);}}static[a86_0x2e3a0d(0xa5)](_0x75d660,_0x4d86c0){const _0x5e04bf=a86_0x2e3a0d,_0x5d6626={};_0x5d6626['EosPc']=_0x5e04bf(0xd2),_0x5d6626[_0x5e04bf(0xac)]=function(_0x9291ee,_0x462f30){return _0x9291ee*_0x462f30;},_0x5d6626['hSfIu']=function(_0x434d06,_0x197c7c){return _0x434d06*_0x197c7c;},_0x5d6626['TgORg']=function(_0x41b69e,_0x36eb33){return _0x41b69e*_0x36eb33;},_0x5d6626[_0x5e04bf(0xf8)]=function(_0x327ce2,_0x4ecab3){return _0x327ce2>_0x4ecab3;},_0x5d6626['LLxyq']=function(_0x233c8b,_0x48c0a9){return _0x233c8b-_0x48c0a9;},_0x5d6626[_0x5e04bf(0xe8)]=_0x5e04bf(0xab);const _0x9befc2=_0x5d6626;if(!_0x75d660)return logger['debug'](_0x9befc2[_0x5e04bf(0x84)]),0x0;let _0x402066;try{_0x402066=os[_0x5e04bf(0x80)]();}catch(_0x64a111){return logger[_0x5e04bf(0x9f)](_0x5e04bf(0xb4)+_0x64a111),0x0;}let _0x25ab03;try{_0x25ab03=fs['readdirSync'](_0x402066);}catch(_0x45312e){return logger[_0x5e04bf(0x9f)](_0x5e04bf(0xae)+_0x45312e),0x0;}const _0x305225=''+BUILD_TAG_FILE_PREFIX+_0x75d660+'_',_0x18e308=_0x25ab03[_0x5e04bf(0x89)](_0x5e04ec=>_0x5e04ec[_0x5e04bf(0x10a)](_0x305225)&&_0x5e04ec['endsWith']('.json')),_0x3b9eaa=_0x9befc2[_0x5e04bf(0xac)](_0x9befc2[_0x5e04bf(0xbc)](_0x9befc2[_0x5e04bf(0xa7)](0x2,0x3c),0x3c),0x3e8);let _0x930604=0x0;for(const _0x20ff73 of _0x18e308){const _0x5d6e32=path[_0x5e04bf(0x90)](_0x402066,_0x20ff73);try{const _0x4c6c74=fs[_0x5e04bf(0xa0)](_0x5d6e32);if(_0x9befc2[_0x5e04bf(0xf8)](_0x9befc2['LLxyq'](Date[_0x5e04bf(0xbd)](),_0x4c6c74[_0x5e04bf(0x100)]),_0x3b9eaa)){logger[_0x5e04bf(0x9f)](_0x5e04bf(0xc5)+_0x3b9eaa+'ms)\x20'+_0x20ff73);try{fs[_0x5e04bf(0xfc)](_0x5d6e32);}catch(_0x4e49b8){logger['debug'](_0x5e04bf(0xef)+_0x20ff73+':\x20'+(_0x4e49b8&&_0x4e49b8[_0x5e04bf(0xee)]?_0x4e49b8[_0x5e04bf(0xee)]:_0x4e49b8));}continue;}const _0x4fa63c=fs['readFileSync'](_0x5d6e32,_0x9befc2['KaRQy']),_0x438c09=JSON['parse'](_0x4fa63c);this[_0x5e04bf(0x86)](_0x4d86c0,_0x438c09),_0x930604+=0x1;}catch(_0x17ee86){logger[_0x5e04bf(0x9f)](_0x5e04bf(0xca)+_0x20ff73+':\x20'+(_0x17ee86&&_0x17ee86[_0x5e04bf(0xee)]?_0x17ee86[_0x5e04bf(0xee)]:_0x17ee86));}try{fs[_0x5e04bf(0xfc)](_0x5d6e32);}catch(_0x2c0db8){logger[_0x5e04bf(0x9f)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'+_0x20ff73+':\x20'+(_0x2c0db8&&_0x2c0db8[_0x5e04bf(0xee)]?_0x2c0db8[_0x5e04bf(0xee)]:_0x2c0db8));}}return _0x930604;}}const a86_0x266512={};a86_0x266512[a86_0x2e3a0d(0xe5)]=getBuildTagsRunId,a86_0x266512[a86_0x2e3a0d(0x102)]=getBuildTagsFilePath,a86_0x266512[a86_0x2e3a0d(0x106)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x2e3a0d(0xb1)]=a86_0x266512,module[a86_0x2e3a0d(0xd1)]=CustomTagManager;
|
|
1
|
+
'use strict';const a84_0x53e0cf=a84_0x50f1;function a84_0x50f1(_0x3ee794,_0x298bd7){const _0x1027a6=a84_0x1027();return a84_0x50f1=function(_0x50f164,_0x9acadf){_0x50f164=_0x50f164-0x1c0;let _0x4f98d6=_0x1027a6[_0x50f164];return _0x4f98d6;},a84_0x50f1(_0x3ee794,_0x298bd7);}(function(_0x62aab,_0x2b7871){const _0x4f625c=a84_0x50f1,_0x384ef8=_0x62aab();while(!![]){try{const _0x3f69af=-parseInt(_0x4f625c(0x1db))/0x1+-parseInt(_0x4f625c(0x23f))/0x2+-parseInt(_0x4f625c(0x238))/0x3*(-parseInt(_0x4f625c(0x226))/0x4)+parseInt(_0x4f625c(0x1c5))/0x5*(parseInt(_0x4f625c(0x1d0))/0x6)+-parseInt(_0x4f625c(0x207))/0x7+parseInt(_0x4f625c(0x1e2))/0x8*(-parseInt(_0x4f625c(0x200))/0x9)+parseInt(_0x4f625c(0x22a))/0xa;if(_0x3f69af===_0x2b7871)break;else _0x384ef8['push'](_0x384ef8['shift']());}catch(_0x3d7b6f){_0x384ef8['push'](_0x384ef8['shift']());}}}(a84_0x1027,0x7a1eb));function a84_0x1027(){const _0x262ee5=['ABDBs','promises','join',',\x20values=','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','now','12cpcRzf','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','HdPRt','addMultipleEntries','toObject','multi_dropdown','FjOtD','values','bxmQW','mergeIntoTags','239557dbhVhB','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','startsWith','message','debug','vLzSU','tYtnD','184QeTmex','env','BROWSERSTACK_TESTHUB_UUID','VSYib','MODULE_NAME','getTestLevelTags','olcHa','./cliUtils','./modules/playwrightDriverModule','Bjfat','EktzD','mergeValues','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','CUbfZ','setCustomTags','POST','TrGmS','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','mtimeMs','ms)\x20','buildLevelTags','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','testhubConfig','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','getTestDetails','buildHashedId','filter','RxWmK','getTestFrameworkDetail','currentTest','166149ObOtYp','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','SfpJb','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','parseCommaSeparatedValues','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright',':jest-','1419180cNWCMl','modules','KEY_CUSTOM_TAGS','clearTags',',\x20key=','testLevelTags','.json',',\x20existingTags=','includes','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','qCWby','pid','isArray','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','RQIQi','bstack_build_tags_','getBuildTagsFilePath','getTrackedInstance','QYzgE','mergeBuildLevelTags','EUoNo','unlinkSync','kQWvF','resolveInstance','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','XThuV','null','KEY_TEST_ID','CustomTagManager','getAllData','446188UYQmPA','trim','endsWith','vjvrG','8239200ErYyQH','_testInternals','stringify','keys','writeFile','\x20->\x20values=','readFileSync','./state/testFrameworkState','BUILD_TAG_FILE_PREFIX','setTestDetails','string',',\x20finalTags=','AdPmQ','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','12JcaPCL','zsagR','jest','getState','tmpdir','DGNvl','qbfds','955374LViHAA','UtTon','getInstance','aggregateBuildLevelTagsFromTmp','DBiuV','exports','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','getBuildTagsRunId','./framework/constants/testFrameworkConstants','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','./modules/testhubModule','toLowerCase','isRunning','entries','getBuildLevelTags','getTestIdentifierFromTestInfo','pjoFq','1436705asYUAU','getTestFramework','name','field_type','HNWFP'];a84_0x1027=function(){return _0x262ee5;};return a84_0x1027();}const fs=require('fs'),os=require('os'),path=require('path'),helper=require('../../helpers/helper'),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a84_0x53e0cf(0x247)),PlaywrightDriverModule=require(a84_0x53e0cf(0x1ea)),TestInfo=require('./TestInfo'),TestHubModule=require(a84_0x53e0cf(0x249)),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a84_0x53e0cf(0x224)),BUILD_TAG_FILE_PREFIX=a84_0x53e0cf(0x217);function getBuildTagsRunId(){const _0x2cf42e=a84_0x53e0cf,_0x2e1b15={};_0x2e1b15[_0x2cf42e(0x23d)]=function(_0x5ec70c,_0xacc8a6){return _0x5ec70c===_0xacc8a6;},_0x2e1b15[_0x2cf42e(0x21a)]=_0x2cf42e(0x222);const _0x591f9c=_0x2e1b15,_0x2617fb=process[_0x2cf42e(0x1e3)][_0x2cf42e(0x1e4)];if(!_0x2617fb||_0x591f9c[_0x2cf42e(0x23d)](_0x2617fb,_0x591f9c['QYzgE']))return null;return _0x2617fb;}function getBuildTagsFilePath(_0x1b0349){const _0x3aee6c=a84_0x53e0cf;return path[_0x3aee6c(0x1cc)](os[_0x3aee6c(0x23c)](),''+BUILD_TAG_FILE_PREFIX+_0x1b0349+'_'+process[_0x3aee6c(0x213)]+_0x3aee6c(0x20d));}class CustomTagManager{static [a84_0x53e0cf(0x1f6)]={};static [a84_0x53e0cf(0x20c)]={};static[a84_0x53e0cf(0x1ed)](_0x3154ed,_0x1f8b72){return Array['from'](new Set([..._0x3154ed||[],..._0x1f8b72||[]]));}static[a84_0x53e0cf(0x1da)](_0x14a6c2,_0x452839,_0x513908){const _0x5bfb36=a84_0x53e0cf,_0x9f873f={};_0x9f873f['SfpJb']=_0x5bfb36(0x1d6);const _0x4037ef=_0x9f873f;if(!_0x14a6c2[_0x452839]){const _0x3c4ff6={};_0x3c4ff6['field_type']=_0x4037ef[_0x5bfb36(0x202)],_0x3c4ff6[_0x5bfb36(0x1d8)]=[..._0x513908||[]],_0x14a6c2[_0x452839]=_0x3c4ff6;}else!_0x14a6c2[_0x452839][_0x5bfb36(0x1c8)]&&(_0x14a6c2[_0x452839][_0x5bfb36(0x1c8)]=_0x4037ef[_0x5bfb36(0x202)]),!Array[_0x5bfb36(0x214)](_0x14a6c2[_0x452839]['values'])&&(_0x14a6c2[_0x452839]['values']=[]),_0x14a6c2[_0x452839][_0x5bfb36(0x1d8)]=CustomTagManager[_0x5bfb36(0x1ed)](_0x14a6c2[_0x452839]['values'],_0x513908);return _0x14a6c2;}static async[a84_0x53e0cf(0x1f0)](_0x3b4014,_0x5bcc4f,_0x2c172f=![]){const _0x51a550=a84_0x53e0cf,_0x38c913={'VSYib':function(_0x4f1ed8,_0x3da9cd){return _0x4f1ed8!==_0x3da9cd;},'UtTon':_0x51a550(0x234),'APUWQ':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','RQIQi':_0x51a550(0x211),'bxmQW':function(_0x19d5e0,_0x2762ad){return _0x19d5e0===_0x2762ad;},'vjvrG':_0x51a550(0x248),'Bjfat':function(_0x174ea3,_0x4e4a0d){return _0x174ea3===_0x4e4a0d;},'pjoFq':_0x51a550(0x1d2),'XThuV':function(_0x50ac41,_0x215706){return _0x50ac41(_0x215706);},'qbfds':'./browserstackCLI','ABDBs':function(_0x49d5bc){return _0x49d5bc();},'HdPRt':_0x51a550(0x1d6),'TrGmS':function(_0x1da8bf,_0x1830e1){return _0x1da8bf>_0x1830e1;},'mrihI':_0x51a550(0x201),'vLzSU':_0x51a550(0x206),'FjOtD':function(_0x5cdaf6,_0x208956){return _0x5cdaf6(_0x208956);},'EUoNo':_0x51a550(0x1e9),'EEDhA':function(_0x385276,_0x5b20dd){return _0x385276(_0x5b20dd);},'tYtnD':function(_0x1d7552,_0x43a14c){return _0x1d7552===_0x43a14c;},'qCWby':_0x51a550(0x23a),'HNWFP':_0x51a550(0x220),'RFYDA':function(_0x1667f8,_0xcc3aae){return _0x1667f8(_0xcc3aae);},'ByKfq':_0x51a550(0x205),'olcHa':function(_0x313ea1,_0x3c25c1){return _0x313ea1(_0x3c25c1);},'FykKG':_0x51a550(0x231),'gZMni':'./state/hookState','CUbfZ':_0x51a550(0x1ce)};if(_0x38c913[_0x51a550(0x1e5)](typeof _0x3b4014,_0x38c913[_0x51a550(0x240)])){logger['debug'](_0x38c913['APUWQ']);return;}if(_0x38c913[_0x51a550(0x1e5)](typeof _0x5bcc4f,_0x38c913[_0x51a550(0x240)])){logger[_0x51a550(0x1df)](_0x38c913[_0x51a550(0x216)]);return;}if(_0x38c913[_0x51a550(0x1d9)](_0x3b4014[_0x51a550(0x227)](),'')){logger[_0x51a550(0x1df)](_0x38c913[_0x51a550(0x229)]);return;}if(_0x38c913[_0x51a550(0x1eb)](_0x5bcc4f[_0x51a550(0x227)](),'')){logger['debug'](_0x38c913[_0x51a550(0x1c4)]);return;}const _0x1bf660=helper[_0x51a550(0x204)](_0x5bcc4f);if(_0x2c172f){const _0x5b9996=_0x38c913[_0x51a550(0x221)](require,_0x38c913[_0x51a550(0x23e)]),_0x2d7d5d=_0x5b9996[_0x51a550(0x241)](),_0x178ad6=_0x2d7d5d&&_0x2d7d5d[_0x51a550(0x208)][TestHubModule[_0x51a550(0x1e6)]];if(_0x178ad6){const _0x2a8803=_0x178ad6?.[_0x51a550(0x1f8)]?.[_0x51a550(0x1d5)]()?.[_0x51a550(0x1fb)];TestInfo['getTestUUID'](_0x2a8803);const _0x234eac=TestInfo['getTestDetails'](_0x2a8803),_0x337367=_0x234eac[TestFrameworkConstants[_0x51a550(0x209)]]||{};CustomTagManager[_0x51a550(0x1da)](_0x337367,_0x3b4014,_0x1bf660),_0x234eac[TestFrameworkConstants[_0x51a550(0x209)]]=_0x337367,TestInfo[_0x51a550(0x233)](_0x2a8803,_0x234eac);!this[_0x51a550(0x1f6)][_0x2a8803]&&(this[_0x51a550(0x1f6)][_0x2a8803]={});this['buildLevelTags'][_0x2a8803][_0x3b4014]=CustomTagManager['mergeValues'](this[_0x51a550(0x1f6)][_0x2a8803][_0x3b4014],_0x1bf660);try{const _0x160a31=_0x38c913[_0x51a550(0x1ca)](getBuildTagsRunId);if(_0x160a31){const _0x965d9b={};for(const [_0x12f5da,_0x17d9df]of Object['entries'](this['buildLevelTags'][_0x2a8803]||{})){_0x965d9b[_0x12f5da]={'field_type':_0x38c913[_0x51a550(0x1d3)],'values':Array[_0x51a550(0x214)](_0x17d9df)?[..._0x17d9df]:[]};}_0x38c913[_0x51a550(0x1f2)](Object[_0x51a550(0x22d)](_0x965d9b)['length'],0x0)&&await fs[_0x51a550(0x1cb)][_0x51a550(0x22e)](_0x38c913[_0x51a550(0x221)](getBuildTagsFilePath,_0x160a31),JSON['stringify'](_0x965d9b));}else logger[_0x51a550(0x1df)](_0x38c913['mrihI']);}catch(_0xc6c7b0){logger['debug'](_0x51a550(0x237)+(_0xc6c7b0&&_0xc6c7b0[_0x51a550(0x1de)]?_0xc6c7b0['message']:_0xc6c7b0));}}}else{let _0x586a88;const _0x3fead0=global['__jestCurrentTestIdentifier'];let _0x12afc1=![];if(_0x3fead0&&_0x3fead0['includes'](_0x38c913['vLzSU']))_0x12afc1=!![],_0x586a88=_0x3fead0;else try{const _0x28040d=_0x38c913[_0x51a550(0x1d7)](require,_0x38c913[_0x51a550(0x21c)]),_0x246d5e=_0x38c913['EEDhA'](require,_0x38c913[_0x51a550(0x23e)]);if(_0x246d5e[_0x51a550(0x241)]()[_0x51a550(0x1c0)]()){const _0x16334c=_0x28040d[_0x51a550(0x1fe)]();if(_0x38c913[_0x51a550(0x1e1)](_0x16334c?.[_0x51a550(0x1c7)]?.[_0x51a550(0x24a)](),_0x38c913[_0x51a550(0x212)])){const _0x42fa68=AutomationFramework[_0x51a550(0x219)]();_0x586a88=AutomationFramework[_0x51a550(0x23b)](_0x42fa68,PlaywrightDriverModule[_0x51a550(0x223)],''),_0x586a88&&_0x586a88[_0x51a550(0x20f)](_0x38c913[_0x51a550(0x1e0)])&&(_0x12afc1=!![]);}}}catch(_0x5511d8){logger[_0x51a550(0x1df)](_0x51a550(0x215)+_0x5511d8);}if(_0x12afc1){if(!_0x586a88)throw new Error(_0x38c913[_0x51a550(0x1c9)]);const _0x114a17=_0x38c913['RFYDA'](require,_0x38c913[_0x51a550(0x23e)]),_0x3b1f68=_0x114a17[_0x51a550(0x241)]()[_0x51a550(0x1c6)]();if(!_0x3b1f68)throw new Error(_0x38c913['ByKfq']);const _0xf5e871=_0x38c913[_0x51a550(0x1e8)](require,_0x38c913['FykKG']),_0x367755=_0x38c913[_0x51a550(0x1e8)](require,_0x38c913['gZMni']),_0x424069=_0x3b1f68[_0x51a550(0x21f)](_0xf5e871['TEST'],_0x367755[_0x51a550(0x1f1)]);if(!_0x424069)throw new Error(_0x38c913[_0x51a550(0x1ef)]);const _0x2464e5=_0x424069[_0x51a550(0x225)]()['get'](_0x586a88)||{},_0x1218f4=_0x2464e5[TestFrameworkConstants[_0x51a550(0x209)]]||{};logger[_0x51a550(0x1df)](_0x51a550(0x1dc)+_0x586a88+_0x51a550(0x20b)+_0x3b4014+_0x51a550(0x1cd)+JSON[_0x51a550(0x22c)](_0x1bf660)+_0x51a550(0x20e)+JSON[_0x51a550(0x22c)](_0x1218f4)),CustomTagManager[_0x51a550(0x1da)](_0x1218f4,_0x3b4014,_0x1bf660),logger[_0x51a550(0x1df)](_0x51a550(0x1f9)+_0x3b4014+_0x51a550(0x22f)+JSON['stringify'](_0x1218f4[_0x3b4014][_0x51a550(0x1d8)]));const _0x46e1cd={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x1218f4},_0x4c9297={};_0x4c9297[_0x586a88]=_0x46e1cd,_0x424069[_0x51a550(0x1d4)](_0x4c9297),logger[_0x51a550(0x1df)](_0x51a550(0x245)+_0x586a88+_0x51a550(0x235)+JSON[_0x51a550(0x22c)](_0x1218f4)),!this[_0x51a550(0x20c)][_0x586a88]&&(this['testLevelTags'][_0x586a88]={}),this[_0x51a550(0x20c)][_0x586a88][_0x3b4014]=CustomTagManager[_0x51a550(0x1ed)](this[_0x51a550(0x20c)][_0x586a88][_0x3b4014],_0x1bf660);}else{const _0x5b477e=global['__workerDetails']?.[_0x51a550(0x1ff)]?.['testInfo'];if(!_0x5b477e){const _0x21e9ae=AutomationFramework[_0x51a550(0x219)]();_0x586a88=AutomationFramework[_0x51a550(0x23b)](_0x21e9ae,PlaywrightDriverModule['KEY_TEST_ID'],'');}else _0x586a88=TestInfo[_0x51a550(0x1c3)](_0x5b477e,_0x5b477e['retry']);const _0x5ceaec=TestInfo[_0x51a550(0x1fa)](_0x586a88),_0x33cae9=_0x5ceaec[TestFrameworkConstants[_0x51a550(0x209)]]||{};CustomTagManager['mergeIntoTags'](_0x33cae9,_0x3b4014,_0x1bf660),_0x5ceaec[TestFrameworkConstants[_0x51a550(0x209)]]=_0x33cae9,TestInfo['setTestDetails'](_0x586a88,_0x5ceaec),!this[_0x51a550(0x20c)][_0x586a88]&&(this[_0x51a550(0x20c)][_0x586a88]={}),this[_0x51a550(0x20c)][_0x586a88][_0x3b4014]=CustomTagManager[_0x51a550(0x1ed)](this[_0x51a550(0x20c)][_0x586a88][_0x3b4014],_0x1bf660);}}}static[a84_0x53e0cf(0x1c2)](){const _0x277d74=a84_0x53e0cf,_0x8e247d={...this[_0x277d74(0x1f6)]};return _0x8e247d;}static[a84_0x53e0cf(0x1e7)](){const _0x4f9530=a84_0x53e0cf,_0x4326b8={...this[_0x4f9530(0x20c)]};return _0x4326b8;}static[a84_0x53e0cf(0x20a)](){const _0x5d94e0=a84_0x53e0cf;this[_0x5d94e0(0x1f6)]={},this['testLevelTags']={};}static[a84_0x53e0cf(0x21b)](_0x3388ce,_0x3f95ca){const _0x5a7399=a84_0x53e0cf,_0x268983={};_0x268983[_0x5a7399(0x239)]=function(_0x1fb2e4,_0x4c95eb){return _0x1fb2e4||_0x4c95eb;};const _0x2e1d87=_0x268983;if(!_0x3388ce)return;!this['buildLevelTags'][_0x3388ce]&&(this[_0x5a7399(0x1f6)][_0x3388ce]={});for(const [_0x562852,_0x53581a]of Object[_0x5a7399(0x1c1)](_0x2e1d87[_0x5a7399(0x239)](_0x3f95ca,{}))){if(!_0x53581a||!Array[_0x5a7399(0x214)](_0x53581a['values']))continue;this['buildLevelTags'][_0x3388ce][_0x562852]=CustomTagManager[_0x5a7399(0x1ed)](this[_0x5a7399(0x1f6)][_0x3388ce][_0x562852],_0x53581a[_0x5a7399(0x1d8)]);}}static[a84_0x53e0cf(0x242)](_0x383572,_0x911396){const _0x1a5b11=a84_0x53e0cf,_0x2defef={};_0x2defef['AdPmQ']=_0x1a5b11(0x203),_0x2defef[_0x1a5b11(0x21e)]=function(_0x9eda1f,_0x24f7fb){return _0x9eda1f*_0x24f7fb;},_0x2defef['EktzD']=function(_0x38c6fa,_0x2725bf){return _0x38c6fa>_0x2725bf;},_0x2defef[_0x1a5b11(0x243)]=function(_0x7701e,_0x29b197){return _0x7701e-_0x29b197;},_0x2defef[_0x1a5b11(0x1fd)]='utf8';const _0x2ef7f2=_0x2defef;if(!_0x383572)return logger['debug'](_0x2ef7f2[_0x1a5b11(0x236)]),0x0;let _0x531a19;try{_0x531a19=os[_0x1a5b11(0x23c)]();}catch(_0x12088f){return logger[_0x1a5b11(0x1df)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20'+_0x12088f),0x0;}let _0x21431b;try{_0x21431b=fs['readdirSync'](_0x531a19);}catch(_0x4ed9ab){return logger[_0x1a5b11(0x1df)](_0x1a5b11(0x1d1)+_0x4ed9ab),0x0;}const _0x46b929=''+BUILD_TAG_FILE_PREFIX+_0x383572+'_',_0x1d9054=_0x21431b[_0x1a5b11(0x1fc)](_0x2ac024=>_0x2ac024[_0x1a5b11(0x1dd)](_0x46b929)&&_0x2ac024[_0x1a5b11(0x228)](_0x1a5b11(0x20d))),_0x3119c4=_0x2ef7f2[_0x1a5b11(0x21e)](_0x2ef7f2[_0x1a5b11(0x21e)](_0x2ef7f2['kQWvF'](0x2,0x3c),0x3c),0x3e8);let _0x46e296=0x0;for(const _0x2410bc of _0x1d9054){const _0x48f769=path[_0x1a5b11(0x1cc)](_0x531a19,_0x2410bc);try{const _0x185304=fs['statSync'](_0x48f769);if(_0x2ef7f2[_0x1a5b11(0x1ec)](_0x2ef7f2['DBiuV'](Date[_0x1a5b11(0x1cf)](),_0x185304[_0x1a5b11(0x1f4)]),_0x3119c4)){logger[_0x1a5b11(0x1df)](_0x1a5b11(0x1f7)+_0x3119c4+_0x1a5b11(0x1f5)+_0x2410bc);try{fs[_0x1a5b11(0x21d)](_0x48f769);}catch(_0x1821e1){logger[_0x1a5b11(0x1df)](_0x1a5b11(0x1f3)+_0x2410bc+':\x20'+(_0x1821e1&&_0x1821e1['message']?_0x1821e1[_0x1a5b11(0x1de)]:_0x1821e1));}continue;}const _0x4ace88=fs[_0x1a5b11(0x230)](_0x48f769,_0x2ef7f2[_0x1a5b11(0x1fd)]),_0x37f7b4=JSON['parse'](_0x4ace88);this[_0x1a5b11(0x21b)](_0x911396,_0x37f7b4),_0x46e296+=0x1;}catch(_0x43e043){logger[_0x1a5b11(0x1df)](_0x1a5b11(0x210)+_0x2410bc+':\x20'+(_0x43e043&&_0x43e043['message']?_0x43e043[_0x1a5b11(0x1de)]:_0x43e043));}try{fs[_0x1a5b11(0x21d)](_0x48f769);}catch(_0x5e1070){logger[_0x1a5b11(0x1df)](_0x1a5b11(0x1ee)+_0x2410bc+':\x20'+(_0x5e1070&&_0x5e1070['message']?_0x5e1070[_0x1a5b11(0x1de)]:_0x5e1070));}}return _0x46e296;}}const a84_0x35999b={};a84_0x35999b[a84_0x53e0cf(0x246)]=getBuildTagsRunId,a84_0x35999b[a84_0x53e0cf(0x218)]=getBuildTagsFilePath,a84_0x35999b[a84_0x53e0cf(0x232)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a84_0x53e0cf(0x22b)]=a84_0x35999b,module[a84_0x53e0cf(0x244)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a85_0x3f37ea=a85_0x5829;(function(_0x363f34,_0x3c3737){const _0x2fbf1f=a85_0x5829,_0x4b88f0=_0x363f34();while(!![]){try{const _0x32e3f9=-parseInt(_0x2fbf1f(0x150))/0x1+-parseInt(_0x2fbf1f(0x14a))/0x2+-parseInt(_0x2fbf1f(0x156))/0x3+parseInt(_0x2fbf1f(0x151))/0x4*(parseInt(_0x2fbf1f(0x148))/0x5)+parseInt(_0x2fbf1f(0x153))/0x6+parseInt(_0x2fbf1f(0x155))/0x7+parseInt(_0x2fbf1f(0x154))/0x8;if(_0x32e3f9===_0x3c3737)break;else _0x4b88f0['push'](_0x4b88f0['shift']());}catch(_0x33a172){_0x4b88f0['push'](_0x4b88f0['shift']());}}}(a85_0x4f1b,0x9ae1c));function a85_0x4f1b(){const _0x2610ae=['getInstance','2245746biYrST','5496104DulWmI','2553789QUUySW','2163858rjZAuv','freeze','notifyObserver','53905anLeJU','registerObserver','144322JSjtBt','push','../../helpers/classLogger.js','exports','observers','oyZeY','1022483WSFRwi','380wOeINl'];a85_0x4f1b=function(){return _0x2610ae;};return a85_0x4f1b();}const {createClassLogger}=require(a85_0x3f37ea(0x14c));function a85_0x5829(_0x1ed8c2,_0x3a92d1){const _0x4f1bb8=a85_0x4f1b();return a85_0x5829=function(_0x582969,_0x4c1986){_0x582969=_0x582969-0x147;let _0x47a5a1=_0x4f1bb8[_0x582969];return _0x47a5a1;},a85_0x5829(_0x1ed8c2,_0x3a92d1);}class EventDispatcher{static #instance=null;constructor(){const _0xe8547d=a85_0x3f37ea;this[_0xe8547d(0x14e)]={};}static[a85_0x3f37ea(0x152)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a85_0x3f37ea(0x149)](_0x1ae6ca,_0x545250){const _0x48b710=a85_0x3f37ea;!this[_0x48b710(0x14e)][_0x1ae6ca]&&(this[_0x48b710(0x14e)][_0x1ae6ca]=[]),this[_0x48b710(0x14e)][_0x1ae6ca][_0x48b710(0x14b)](_0x545250);}async[a85_0x3f37ea(0x147)](_0x196bf4,_0xce1a2d){const _0x1c23ec=a85_0x3f37ea,_0x1d574e={'oyZeY':function(_0x269d8a,_0x1341df){return _0x269d8a(_0x1341df);}};if(this[_0x1c23ec(0x14e)][_0x196bf4]){for(const _0x2e6c7c of this['observers'][_0x196bf4]){await _0x1d574e[_0x1c23ec(0x14f)](_0x2e6c7c,_0xce1a2d);}return;}}}const eventDispatcher=EventDispatcher[a85_0x3f37ea(0x152)]();Object[a85_0x3f37ea(0x157)](eventDispatcher),module[a85_0x3f37ea(0x14d)]=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x1d3e00=a86_0x407d;(function(_0x5d600c,_0x3a9bdf){const _0x17fab2=a86_0x407d,_0xed53db=_0x5d600c();while(!![]){try{const _0x424498=-parseInt(_0x17fab2(0xf3))/0x1*(parseInt(_0x17fab2(0xe6))/0x2)+-parseInt(_0x17fab2(0xdb))/0x3*(parseInt(_0x17fab2(0xe4))/0x4)+parseInt(_0x17fab2(0xd0))/0x5*(-parseInt(_0x17fab2(0xed))/0x6)+parseInt(_0x17fab2(0xe7))/0x7+-parseInt(_0x17fab2(0xda))/0x8*(-parseInt(_0x17fab2(0xd7))/0x9)+parseInt(_0x17fab2(0xf7))/0xa*(parseInt(_0x17fab2(0xdf))/0xb)+parseInt(_0x17fab2(0xec))/0xc*(parseInt(_0x17fab2(0xf0))/0xd);if(_0x424498===_0x3a9bdf)break;else _0xed53db['push'](_0xed53db['shift']());}catch(_0x317887){_0xed53db['push'](_0xed53db['shift']());}}}(a86_0x2113,0xd87c7));const {createClassLogger}=require('../../../helpers/classLogger.js'),util=require(a86_0x1d3e00(0xd3)),eventDispatcher=require(a86_0x1d3e00(0xeb)),CLIUtils=require(a86_0x1d3e00(0xd4)),TrackedInstance=require(a86_0x1d3e00(0xe2)),logger=createClassLogger(a86_0x1d3e00(0xdc));class AutomationFramework{static ['instances']=new Map();static [a86_0x1d3e00(0xf1)]='automation_sessions';static [a86_0x1d3e00(0xf2)]=a86_0x1d3e00(0xe3);constructor(_0x121be0,_0x3b595e){const _0x34340c=a86_0x1d3e00;this[_0x34340c(0xd6)]=_0x121be0,this['automationFrameworkVersion']=_0x3b595e;}['getAutomationFrameworkName'](){const _0xd9c71c=a86_0x1d3e00;return this[_0xd9c71c(0xd6)];}[a86_0x1d3e00(0xd1)](){const _0x54e08f=a86_0x1d3e00;return this[_0x54e08f(0xf5)];}async[a86_0x1d3e00(0xd5)](_0x2cc52c,_0x23ebef,_0x5edf8e={}){const _0x34404e=a86_0x1d3e00;logger[_0x34404e(0xde)](_0x34404e(0xd8)+_0x2cc52c+_0x34404e(0xf8)+_0x23ebef);}async[a86_0x1d3e00(0xe9)](_0x628163,_0x32256a,_0x254a73,_0x2a707c={}){const _0x851fcb=a86_0x1d3e00,_0x4bf98c=CLIUtils[_0x851fcb(0xea)](_0x32256a,_0x254a73);_0x628163&&_0x628163[_0x851fcb(0xd2)](_0x32256a),await eventDispatcher[_0x851fcb(0xe5)](_0x4bf98c,_0x2a707c);}static[a86_0x1d3e00(0xf6)](_0x350f30,_0x1e9dc9,_0x528da8){const _0x49a4e5=a86_0x1d3e00;eventDispatcher[_0x49a4e5(0xf6)](CLIUtils[_0x49a4e5(0xea)](_0x350f30,_0x1e9dc9),_0x528da8);}static['setTrackedInstance'](_0x104abf,_0x287eff){const _0x435a29=a86_0x1d3e00;AutomationFramework[_0x435a29(0xee)][_0x435a29(0xd9)](_0x104abf[_0x435a29(0xe1)](),_0x287eff);}static['getTrackedInstance'](){const _0x542891=a86_0x1d3e00,_0x5ef154=TrackedInstance[_0x542891(0xe8)](CLIUtils[_0x542891(0xf4)]());return AutomationFramework[_0x542891(0xee)]['get'](_0x5ef154[_0x542891(0xe1)]());}static[a86_0x1d3e00(0xd2)](_0x2eec26,_0x4cc3e9,_0x5aaf06){const _0x5b2fc4=a86_0x1d3e00;_0x2eec26['getAllData']()[_0x5b2fc4(0xd9)](_0x4cc3e9,_0x5aaf06);}static[a86_0x1d3e00(0xe0)](_0x3ce7c9,_0xe2eb51){const _0x474622=a86_0x1d3e00;return _0x3ce7c9[_0x474622(0xef)]()['get'](_0xe2eb51);}}function a86_0x407d(_0x3f0c36,_0x5ef3bb){const _0x2113fc=a86_0x2113();return a86_0x407d=function(_0x407d2f,_0x475366){_0x407d2f=_0x407d2f-0xd0;let _0x21a5fe=_0x2113fc[_0x407d2f];return _0x21a5fe;},a86_0x407d(_0x3f0c36,_0x5ef3bb);}module[a86_0x1d3e00(0xdd)]=AutomationFramework;function a86_0x2113(){const _0x12e488=['getHookRegistryKey','../eventDispatcher.js','1640628VvUUgs','385602zifcYO','instances','getAllData','26orsaUS','KEY_AUTOMATION_SESSIONS','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','39553shAlhr','getCurrentInstanceName','automationFrameworkVersion','registerObserver','24000oGIZpg','\x20hookState=','65RDkukE','getAutomationFrameworkVersion','setState','util','../cliUtils.js','trackEvent','automationFrameworkName','612ZjNGyA','trackEvent:\x20automationFrameworkState=','set','73168zOJmZv','18sPyNjE','AutomationFramework','exports','debug','4532qTOshj','getState','getId','../instances/trackedInstance.js','non_browserstack_automation_sessions','420176VBiKGt','notifyObserver','6oxUAdf','4108685kDCYaP','createContext','runHooks'];a86_0x2113=function(){return _0x12e488;};return a86_0x2113();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x84cd4a=a87_0x3823;function a87_0x586e(){const _0x3dc552=['KEY_STARTED_AT','KEY_HUB_URL','quit','newsession','30DwcQfF','1571154auWywV','COMMAND_SCREENSHOT','KEY_FRAMEWORK_SESSION_ID','KEY_PLATFORM_INDEX','710652RlcnYm','20KczrqP','framework_session_id','COMMAND_NEW_SESSION','ENV_BROWSERSTACK_PLATFORM_INDEX','2122615kKTaYG','hub_url','8CEMmvx','is_browserstack_hub','14228AbxNhL','3160818EDDntT','input_capabilities','get','KEY_CAPABILITIES','started_at','COMMAND_QUIT','123879qQNCTK','exports','340135PvojTJ','screenshot','KEY_IS_BROWSERSTACK_HUB','KEY_INPUT_CAPABILITIES'];a87_0x586e=function(){return _0x3dc552;};return a87_0x586e();}(function(_0x1e1a42,_0xfe17b7){const _0x3585b1=a87_0x3823,_0x20a8f2=_0x1e1a42();while(!![]){try{const _0x25ea91=-parseInt(_0x3585b1(0xce))/0x1+-parseInt(_0x3585b1(0xc5))/0x2*(parseInt(_0x3585b1(0xd6))/0x3)+-parseInt(_0x3585b1(0xdb))/0x4+parseInt(_0x3585b1(0xc1))/0x5+-parseInt(_0x3585b1(0xd7))/0x6+parseInt(_0x3585b1(0xcc))/0x7*(-parseInt(_0x3585b1(0xc3))/0x8)+parseInt(_0x3585b1(0xc6))/0x9*(parseInt(_0x3585b1(0xdc))/0xa);if(_0x25ea91===_0xfe17b7)break;else _0x20a8f2['push'](_0x20a8f2['shift']());}catch(_0x46c8ba){_0x20a8f2['push'](_0x20a8f2['shift']());}}}(a87_0x586e,0x3f181));const a87_0x519c0a={};function a87_0x3823(_0x1b63e3,_0x3d23bd){const _0x586e8b=a87_0x586e();return a87_0x3823=function(_0x382382,_0x23bfb7){_0x382382=_0x382382-0xc0;let _0xe00bb=_0x586e8b[_0x382382];return _0xe00bb;},a87_0x3823(_0x1b63e3,_0x3d23bd);}a87_0x519c0a[a87_0x84cd4a(0xc0)]='BROWSERSTACK_PLATFORM_INDEX',a87_0x519c0a[a87_0x84cd4a(0xd3)]=a87_0x84cd4a(0xc2),a87_0x519c0a[a87_0x84cd4a(0xd9)]=a87_0x84cd4a(0xdd),a87_0x519c0a[a87_0x84cd4a(0xd1)]=a87_0x84cd4a(0xc7),a87_0x519c0a[a87_0x84cd4a(0xc9)]='capabilities',a87_0x519c0a[a87_0x84cd4a(0xd0)]=a87_0x84cd4a(0xc4),a87_0x519c0a[a87_0x84cd4a(0xd2)]=a87_0x84cd4a(0xca),a87_0x519c0a['KEY_ENDED_AT']='ended_at',a87_0x519c0a[a87_0x84cd4a(0xda)]='platform_index',a87_0x519c0a[a87_0x84cd4a(0xde)]=a87_0x84cd4a(0xd5),a87_0x519c0a['COMMAND_GET']=a87_0x84cd4a(0xc8),a87_0x519c0a[a87_0x84cd4a(0xd8)]=a87_0x84cd4a(0xcf),a87_0x519c0a['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a87_0x519c0a['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']='w3cexecutescriptasync',a87_0x519c0a[a87_0x84cd4a(0xcb)]=a87_0x84cd4a(0xd4);const AutomationFrameworkConstants=a87_0x519c0a;module[a87_0x84cd4a(0xcd)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a88_0x2153(_0x828eb8,_0xf14328){const _0x73a4b7=a88_0x73a4();return a88_0x2153=function(_0x2153e7,_0x25ebf7){_0x2153e7=_0x2153e7-0x126;let _0x3261f3=_0x73a4b7[_0x2153e7];return _0x3261f3;},a88_0x2153(_0x828eb8,_0xf14328);}const a88_0x43bee9=a88_0x2153;(function(_0x5bfb1d,_0x3588b6){const _0x1fcb61=a88_0x2153,_0x4cd38b=_0x5bfb1d();while(!![]){try{const _0x4da63e=parseInt(_0x1fcb61(0x132))/0x1*(parseInt(_0x1fcb61(0x17f))/0x2)+parseInt(_0x1fcb61(0x12d))/0x3+parseInt(_0x1fcb61(0x14e))/0x4*(-parseInt(_0x1fcb61(0x136))/0x5)+-parseInt(_0x1fcb61(0x13b))/0x6*(-parseInt(_0x1fcb61(0x140))/0x7)+parseInt(_0x1fcb61(0x14f))/0x8*(parseInt(_0x1fcb61(0x17d))/0x9)+parseInt(_0x1fcb61(0x16a))/0xa+-parseInt(_0x1fcb61(0x142))/0xb;if(_0x4da63e===_0x3588b6)break;else _0x4cd38b['push'](_0x4cd38b['shift']());}catch(_0x19b46a){_0x4cd38b['push'](_0x4cd38b['shift']());}}}(a88_0x73a4,0xb4c7e));const a88_0x10ec0f={};a88_0x10ec0f[a88_0x43bee9(0x149)]=a88_0x43bee9(0x17b),a88_0x10ec0f['KEY_TEST_ID']=a88_0x43bee9(0x15b),a88_0x10ec0f['KEY_TEST_NAME']=a88_0x43bee9(0x15d),a88_0x10ec0f[a88_0x43bee9(0x161)]=a88_0x43bee9(0x160),a88_0x10ec0f[a88_0x43bee9(0x165)]=a88_0x43bee9(0x151),a88_0x10ec0f[a88_0x43bee9(0x164)]=a88_0x43bee9(0x170),a88_0x10ec0f[a88_0x43bee9(0x135)]='test_result_at',a88_0x10ec0f['KEY_TEST_STARTED_AT']=a88_0x43bee9(0x17c),a88_0x10ec0f[a88_0x43bee9(0x13a)]=a88_0x43bee9(0x175),a88_0x10ec0f[a88_0x43bee9(0x181)]=a88_0x43bee9(0x14d),a88_0x10ec0f[a88_0x43bee9(0x139)]=a88_0x43bee9(0x15f),a88_0x10ec0f['KEY_TEST_SCOPE']=a88_0x43bee9(0x141),a88_0x10ec0f[a88_0x43bee9(0x17a)]=a88_0x43bee9(0x13f),a88_0x10ec0f[a88_0x43bee9(0x14a)]='test_framework_name',a88_0x10ec0f[a88_0x43bee9(0x153)]=a88_0x43bee9(0x137),a88_0x10ec0f['KEY_TEST_CODE']=a88_0x43bee9(0x13c),a88_0x10ec0f['KEY_TEST_RERUN_NAME']='test_rerun_name',a88_0x10ec0f['KEY_TEST_RETRY_OF']=a88_0x43bee9(0x156),a88_0x10ec0f[a88_0x43bee9(0x168)]=a88_0x43bee9(0x16e),a88_0x10ec0f[a88_0x43bee9(0x158)]=a88_0x43bee9(0x172),a88_0x10ec0f[a88_0x43bee9(0x166)]='test_failure_type',a88_0x10ec0f[a88_0x43bee9(0x148)]=a88_0x43bee9(0x16b),a88_0x10ec0f[a88_0x43bee9(0x155)]=a88_0x43bee9(0x13d),a88_0x10ec0f['KEY_TEST_META']=a88_0x43bee9(0x12e),a88_0x10ec0f[a88_0x43bee9(0x143)]='test_session_name',a88_0x10ec0f['KEY_AUTOMATE_SESSION_NAME']=a88_0x43bee9(0x134),a88_0x10ec0f[a88_0x43bee9(0x146)]='automate_session_status',a88_0x10ec0f[a88_0x43bee9(0x178)]=a88_0x43bee9(0x150),a88_0x10ec0f[a88_0x43bee9(0x16f)]=a88_0x43bee9(0x147),a88_0x10ec0f['KEY_EVENT_ENDED_AT']=a88_0x43bee9(0x17e),a88_0x10ec0f[a88_0x43bee9(0x145)]=a88_0x43bee9(0x163),a88_0x10ec0f[a88_0x43bee9(0x179)]=a88_0x43bee9(0x152),a88_0x10ec0f[a88_0x43bee9(0x177)]='hook_failure_type',a88_0x10ec0f[a88_0x43bee9(0x176)]=a88_0x43bee9(0x167),a88_0x10ec0f['KEY_HOOK_FAILURE']=a88_0x43bee9(0x14b),a88_0x10ec0f['KEY_HOOK_LOGS']='hook_logs',a88_0x10ec0f[a88_0x43bee9(0x16c)]=a88_0x43bee9(0x12f),a88_0x10ec0f[a88_0x43bee9(0x144)]=a88_0x43bee9(0x157),a88_0x10ec0f[a88_0x43bee9(0x15e)]=a88_0x43bee9(0x157),a88_0x10ec0f[a88_0x43bee9(0x12b)]=a88_0x43bee9(0x162),a88_0x10ec0f[a88_0x43bee9(0x127)]=a88_0x43bee9(0x133),a88_0x10ec0f[a88_0x43bee9(0x154)]=a88_0x43bee9(0x12c),a88_0x10ec0f[a88_0x43bee9(0x173)]=a88_0x43bee9(0x128),a88_0x10ec0f['KEY_HOOKS_FINISHED']=a88_0x43bee9(0x14c),a88_0x10ec0f['KEY_HOOK_LAST_STARTED']='test_hook_last_started',a88_0x10ec0f[a88_0x43bee9(0x129)]=a88_0x43bee9(0x131),a88_0x10ec0f[a88_0x43bee9(0x13e)]=a88_0x43bee9(0x171),a88_0x10ec0f[a88_0x43bee9(0x15a)]='custom_metadata',a88_0x10ec0f[a88_0x43bee9(0x12a)]=a88_0x43bee9(0x159),a88_0x10ec0f[a88_0x43bee9(0x169)]='file_size',a88_0x10ec0f[a88_0x43bee9(0x16d)]=a88_0x43bee9(0x130),a88_0x10ec0f[a88_0x43bee9(0x126)]=a88_0x43bee9(0x15c),a88_0x10ec0f['KEY_FILE_LEVEL']='file_level',a88_0x10ec0f['KEY_TEST_SCREENSHOTS']='test_screenshots',a88_0x10ec0f[a88_0x43bee9(0x138)]=0xa,a88_0x10ec0f[a88_0x43bee9(0x180)]=0x2;const TestFrameworkConstants=a88_0x10ec0f;module[a88_0x43bee9(0x174)]=TestFrameworkConstants;function a88_0x73a4(){const _0x24fe76=['7403610xmalcS','test_framework_version','MAX_TOP_LEVEL_STEPS','KEY_TEST_DURATION','KEY_TEST_ENDED_AT','6faYJLs','test_code','test_logs','KEY_LOGS','test_scopes','1046038EoeZbI','test_scope','894520aTcttr','KEY_SESSION_NAME','DEFAULT_TEST_RESULT','KEY_HOOK_ID','KEY_AUTOMATE_SESSION_STATUS','event_started_at','KEY_TEST_FAILURE_REASON','KEY_TEST_UUID','KEY_TEST_FRAMEWORK_NAME','hook_failure','test_hooks_finished','test_location','4SkFoCX','3719864VhNazw','automate_session_reason','test_tags','hook_result','KEY_TEST_FRAMEWORK_VERSION','HOOK_REGEX','KEY_TEST_LOGS','retry_of','pending','KEY_TEST_FAILURE','test_attachments','KEY_CUSTOM_TAGS','test_id','file_path','test_name','DEFAULT_HOOK_RESULT','test_duration','test_file_path','KEY_TEST_FILE_PATH','TEST_SCREENSHOT','hook_id','KEY_TEST_RESULT','KEY_TEST_TAGS','KEY_TEST_FAILURE_TYPE','hook_failure_reason','KEY_PLATFORM_INDEX','KEY_FILE_SIZE','7342420QznoOW','test_failure_reason','KEY_HOOK_NAME','KEY_FILE_NAME','platform_index','KEY_EVENT_STARTED_AT','test_result','logs','test_failure','KEY_HOOKS_STARTED','exports','test_ended_at','KEY_HOOK_FAILURE_REASON','KEY_HOOK_FAILURE_TYPE','KEY_AUTOMATE_SESSION_REASON','KEY_HOOK_RESULT','KEY_TEST_SCOPES','test_uuid','test_started_at','9JnuzEO','event_ended_at','764774mMdrMC','MAX_NESTED_STEP_DEPTH','KEY_TEST_LOCATION','KEY_FILE_PATH','KIND_LOG','test_hooks_started','KEY_HOOK_LAST_FINISHED','KEY_TEST_ATTACHMENTS','KIND_SCREENSHOT','^(BEFORE_|AFTER_)','567261lAbdBH','test_meta','hook_name','file_name','test_hook_last_finished','2RvvChs','TEST_LOG','automate_session_name','KEY_TEST_RESULT_AT'];a88_0x73a4=function(){return _0x24fe76;};return a88_0x73a4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a91_0x4ed3(_0x481fc7,_0x598a51){const _0x438962=a91_0x4389();return a91_0x4ed3=function(_0x4ed381,_0x511a29){_0x4ed381=_0x4ed381-0x14d;let _0x44bd8c=_0x438962[_0x4ed381];return _0x44bd8c;},a91_0x4ed3(_0x481fc7,_0x598a51);}const a91_0x3217d7=a91_0x4ed3;(function(_0x1f6dea,_0x25413c){const _0x139137=a91_0x4ed3,_0x490a0d=_0x1f6dea();while(!![]){try{const _0x243ebf=parseInt(_0x139137(0x175))/0x1+-parseInt(_0x139137(0x219))/0x2+-parseInt(_0x139137(0x174))/0x3*(-parseInt(_0x139137(0x1df))/0x4)+-parseInt(_0x139137(0x194))/0x5+parseInt(_0x139137(0x208))/0x6+parseInt(_0x139137(0x15d))/0x7*(-parseInt(_0x139137(0x1d0))/0x8)+parseInt(_0x139137(0x1a1))/0x9*(parseInt(_0x139137(0x1a4))/0xa);if(_0x243ebf===_0x25413c)break;else _0x490a0d['push'](_0x490a0d['shift']());}catch(_0x5c5d43){_0x490a0d['push'](_0x490a0d['shift']());}}}(a91_0x4389,0x4f63e));const TestFramework=require(a91_0x3217d7(0x1c3)),TestFrameworkState=require(a91_0x3217d7(0x16d)),HookState=require(a91_0x3217d7(0x189)),{createClassLogger}=require(a91_0x3217d7(0x151)),TestFrameworkInstance=require(a91_0x3217d7(0x1c0)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a91_0x3217d7(0x1f6)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x3217d7(0x186)),logger=createClassLogger(a91_0x3217d7(0x1dd)),{v4:uuidv4}=require(a91_0x3217d7(0x20c)),util=require('util'),TestInfo=require(a91_0x3217d7(0x1fd)),GrpcClient=require(a91_0x3217d7(0x1bd));class CucumberTestFramework extends TestFramework{constructor(_0x1713bd,_0x9bcf4f,_0x1ae841){super(_0x1713bd,_0x9bcf4f,_0x1ae841);}async[a91_0x3217d7(0x16b)](_0x571555,_0x4a049e,_0x342f7e={}){const _0x398135=a91_0x3217d7,_0x365b3d={};_0x365b3d[_0x398135(0x160)]=_0x398135(0x1a9),_0x365b3d[_0x398135(0x1cb)]=function(_0x50c6c2,_0x4674b1){return _0x50c6c2===_0x4674b1;},_0x365b3d[_0x398135(0x184)]=function(_0x2a78c5,_0x1c7cc8){return _0x2a78c5===_0x1c7cc8;},_0x365b3d[_0x398135(0x1ee)]=_0x398135(0x202);const _0x4e7783=_0x365b3d;await super[_0x398135(0x16b)](_0x571555,_0x4a049e,_0x342f7e);const _0xed7351=this[_0x398135(0x1b9)](_0x571555,_0x4a049e,_0x342f7e);if(!_0xed7351){logger[_0x398135(0x169)](_0x4e7783[_0x398135(0x160)]);return;}try{let _0x20eeec,_0x507f73;switch(_0x571555){case TestFrameworkState[_0x398135(0x1d3)]:_0x20eeec=_0x342f7e['test'],_0x507f73=TestInfo[_0x398135(0x200)](_0x20eeec['id']);if(_0x4e7783[_0x398135(0x1cb)](_0x4a049e,HookState[_0x398135(0x18e)])){logger[_0x398135(0x169)](_0x398135(0x1ea)+_0x20eeec['id']);const _0x20d847={};_0x20d847[_0x398135(0x18d)]=_0x507f73,_0x20d847[_0x398135(0x14e)]=_0x20eeec,_0xed7351[_0x398135(0x1b3)](this[_0x398135(0x164)](_0x20d847)),logger[_0x398135(0x169)](_0x398135(0x15b)+_0x20eeec['id']),await this['processPendingHooks'](_0xed7351,_0x20eeec['id']);}else{if(_0x4e7783[_0x398135(0x184)](_0x4a049e,HookState[_0x398135(0x1e3)])){const _0x56e212={};_0x56e212[_0x398135(0x18d)]=_0x507f73,_0x56e212['testData']=_0x20eeec,_0xed7351[_0x398135(0x1b3)](this[_0x398135(0x1d8)](_0x56e212)),await this['processPendingHooks'](_0xed7351,_0x20eeec['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x4e7783[_0x398135(0x1cb)](_0x4a049e,HookState[_0x398135(0x1e3)])&&await this[_0x398135(0x14f)](_0xed7351,_0x571555,_0x342f7e);break;default:if(CLIUtils[_0x398135(0x1cd)](_0x571555[_0x398135(0x179)]()[_0x398135(0x16a)]('.')[0x1])){const _0x4b035f=await this[_0x398135(0x1bb)](_0xed7351,_0x571555,_0x4a049e,_0x342f7e);_0xed7351[_0x398135(0x1b3)](_0x4b035f);}else logger[_0x398135(0x169)](_0x398135(0x191)+_0x571555+'\x20&\x20hookState='+_0x4a049e);break;}}catch(_0x54d521){logger[_0x398135(0x1f3)](util[_0x398135(0x1bc)](_0x4e7783['SliFe'],_0x571555,_0x4a049e,_0x342f7e[_0x398135(0x217)],_0x54d521));}_0x342f7e[_0x398135(0x1b1)]=_0xed7351,await this[_0x398135(0x18a)](_0xed7351,_0x571555,_0x4a049e,_0x342f7e);}[a91_0x3217d7(0x1b9)](_0x24ae65,_0x13687f,_0x4d29c3={}){const _0x4de960=a91_0x3217d7,_0x47ef7c={};_0x47ef7c[_0x4de960(0x1e2)]=function(_0x38219b,_0x32e09a){return _0x38219b===_0x32e09a;},_0x47ef7c['eDVBv']=function(_0x560783,_0x15490b){return _0x560783===_0x15490b;};const _0x423bf2=_0x47ef7c;let _0x561345=null;return(_0x423bf2['Yfgiv'](_0x24ae65,TestFrameworkState[_0x4de960(0x159)])||_0x423bf2[_0x4de960(0x213)](_0x24ae65,TestFrameworkState[_0x4de960(0x150)]))&&this[_0x4de960(0x17d)](_0x24ae65,_0x4d29c3),_0x561345=TestFramework['getTrackedInstance'](),_0x561345;}[a91_0x3217d7(0x17d)](_0x3b08cc,_0x4a2112){const _0x3ae2b2=a91_0x3217d7,_0x9fb4a6=CLIUtils[_0x3ae2b2(0x1ca)](),_0x411638=TrackedInstance['createContext'](_0x9fb4a6);let _0x38503c=null;logger[_0x3ae2b2(0x169)](_0x3ae2b2(0x1f2)+_0x9fb4a6+_0x3ae2b2(0x166)+_0x3b08cc),_0x38503c=new TestFrameworkInstance(_0x411638,this[_0x3ae2b2(0x1c4)](),this[_0x3ae2b2(0x1c6)](),_0x3b08cc,HookState[_0x3ae2b2(0x150)]),TestFramework['setTrackedInstance'](_0x411638,_0x38503c),logger[_0x3ae2b2(0x169)](_0x3ae2b2(0x1db)+_0x411638[_0x3ae2b2(0x18c)]()+_0x3ae2b2(0x170)+_0x9fb4a6);}['parseCucumberTest'](_0x7e4d48){const _0x1f0b48=a91_0x3217d7,_0x55e982={};_0x55e982['AtOrF']=_0x1f0b48(0x203);const _0x472f59=_0x55e982,{testUUID:_0x167960,testData:_0x22f9e6}=_0x7e4d48;if(!_0x22f9e6||!_0x22f9e6[_0x1f0b48(0x20c)])return logger[_0x1f0b48(0x169)](_0x472f59[_0x1f0b48(0x20f)]),{};const _0x3cb577=_0x167960,_0x51f0cf=_0x22f9e6[_0x1f0b48(0x20c)],_0x34e31f=this[_0x1f0b48(0x1c4)]()[0x0],_0x40971b=this['getTestFrameworksVersions'](),_0x3d588e={[TestFrameworkConstants[_0x1f0b48(0x1c2)]]:_0x34e31f,[TestFrameworkConstants[_0x1f0b48(0x205)]]:_0x40971b[_0x34e31f],[TestFrameworkConstants[_0x1f0b48(0x1ff)]]:[],[TestFrameworkConstants[_0x1f0b48(0x17c)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x3cb577,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x1f0b48(0x19d)],[TestFrameworkConstants[_0x1f0b48(0x20b)]]:_0x22f9e6[_0x1f0b48(0x218)]||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x22f9e6[_0x1f0b48(0x172)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x51f0cf,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x22f9e6[_0x1f0b48(0x218)]||'',[TestFrameworkConstants[_0x1f0b48(0x1c9)]]:_0x22f9e6['location']||'',[TestFrameworkConstants[_0x1f0b48(0x1cc)]]:_0x22f9e6[_0x1f0b48(0x19f)]?.[_0x1f0b48(0x152)]||null,[TestFrameworkConstants[_0x1f0b48(0x1fa)]]:_0x22f9e6['tags']||[],[TestFrameworkConstants[_0x1f0b48(0x18f)]]:_0x22f9e6['startedAt']||new Date()[_0x1f0b48(0x20d)](),[TestFrameworkConstants[_0x1f0b48(0x1e7)]]:_0x22f9e6['scopes']?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x22f9e6[_0x1f0b48(0x1d9)]||[],[TestFrameworkConstants[_0x1f0b48(0x1e1)]]:_0x22f9e6[_0x1f0b48(0x214)]?.[_0x1f0b48(0x1b8)]||_0x22f9e6[_0x1f0b48(0x218)]||'',[TestFrameworkConstants[_0x1f0b48(0x1d1)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x22f9e6['meta']||{}};TestInfo[_0x1f0b48(0x15c)](_0x51f0cf,_0x3d588e),logger[_0x1f0b48(0x169)](_0x1f0b48(0x178)+_0x22f9e6[_0x1f0b48(0x218)]+_0x1f0b48(0x1e4)+_0x3cb577);const _0x5faea7={};return _0x5faea7[_0x51f0cf]=_0x3d588e,_0x5faea7;}[a91_0x3217d7(0x1d8)](_0xe27248){const _0x53d95b=a91_0x3217d7,_0x222f75={'NobTU':_0x53d95b(0x206),'tcosV':_0x53d95b(0x1a6),'NnGyW':function(_0x10fe42,_0x197049){return _0x10fe42===_0x197049;},'uHHJG':'failed','slJeB':_0x53d95b(0x1f5),'qaisN':function(_0x52cb88,_0x3f5a2d,_0x59ecb5){return _0x52cb88(_0x3f5a2d,_0x59ecb5);},'DRGKT':function(_0x5eca59,_0xc979a3){return _0x5eca59>_0xc979a3;},'LaeVZ':function(_0x2ad81e,_0x5e8207){return _0x2ad81e>_0x5e8207;}},{testUUID:_0xc01795,testData:_0x28d862}=_0xe27248;if(!_0x28d862||!_0x28d862[_0x53d95b(0x20c)])return logger['debug'](_0x222f75[_0x53d95b(0x1b5)]),{};const _0x11b51e=this[_0x53d95b(0x1b9)](TestFrameworkState[_0x53d95b(0x1d3)],HookState[_0x53d95b(0x1e3)]),_0xd82ddd=_0x28d862[_0x53d95b(0x20c)],_0x16165e=TestInfo[_0x53d95b(0x156)](_0xd82ddd)||{},_0x4976d3=_0x16165e?_0x16165e[TestFrameworkConstants[_0x53d95b(0x1d1)]]||{}:{},_0x55cd05={..._0x16165e,[TestFrameworkConstants[_0x53d95b(0x15a)]]:_0x28d862[_0x53d95b(0x171)]||_0x222f75[_0x53d95b(0x1e5)],[TestFrameworkConstants[_0x53d95b(0x158)]]:_0x28d862[_0x53d95b(0x173)]||new Date()[_0x53d95b(0x20d)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x53d95b(0x20d)](),[TestFrameworkConstants[_0x53d95b(0x1d1)]]:_0x4976d3,[TestFrameworkConstants[_0x53d95b(0x211)]]:[],[TestFrameworkConstants[_0x53d95b(0x1d7)]]:_0x28d862[_0x53d95b(0x1e6)]||{}};_0x222f75[_0x53d95b(0x15f)](_0x28d862[_0x53d95b(0x171)],_0x222f75[_0x53d95b(0x1bf)])&&_0x28d862['failure']&&(_0x55cd05[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x28d862[_0x53d95b(0x187)]||_0x222f75[_0x53d95b(0x168)],_0x55cd05[TestFrameworkConstants[_0x53d95b(0x1c1)]]=_0x28d862['failure_reason']||'',_0x55cd05[TestFrameworkConstants[_0x53d95b(0x17f)]]=_0x28d862[_0x53d95b(0x1d6)]);const _0x1853a6=TestInfo[_0x53d95b(0x156)](_0xd82ddd)[TestFrameworkConstants[_0x53d95b(0x17a)]]||{},_0x1a7d9d=_0x222f75['qaisN'](getManualUploadLogs,_0x1853a6,_0x11b51e['getAllData']()['get'](_0xd82ddd)[TestFrameworkConstants[_0x53d95b(0x19b)]]);if(_0x222f75[_0x53d95b(0x212)](_0x1a7d9d[_0x53d95b(0x217)],0x0)){const _0x2a73c9=_0x55cd05[TestFrameworkConstants[_0x53d95b(0x211)]]||[];_0x55cd05[TestFrameworkConstants[_0x53d95b(0x211)]]=[..._0x2a73c9,..._0x1a7d9d];}_0x28d862[_0x53d95b(0x1e0)]&&_0x222f75[_0x53d95b(0x1cf)](_0x28d862['hooks'][_0x53d95b(0x217)],0x0)&&(_0x55cd05[TestFrameworkConstants[_0x53d95b(0x17c)]]=_0x28d862[_0x53d95b(0x1e0)]);TestInfo[_0x53d95b(0x15c)](_0xd82ddd,_0x55cd05),logger[_0x53d95b(0x169)](_0x53d95b(0x177)+_0x28d862['name']+_0x53d95b(0x1d5)+_0x28d862[_0x53d95b(0x171)]);const _0x5a64ae={};return _0x5a64ae[_0xd82ddd]=_0x55cd05,_0x5a64ae;}async[a91_0x3217d7(0x1bb)](_0x331372,_0x50f2d6,_0x503e64,_0x111d58){const _0x14e535=a91_0x3217d7,_0x313a5c={'eOIEu':_0x14e535(0x167),'myFtk':function(_0x347c00){return _0x347c00();},'Uyjyy':function(_0x4c7950,_0x3bdd2e){return _0x4c7950 in _0x3bdd2e;},'bDzQx':function(_0xaba8,_0x3194c4){return _0xaba8 in _0x3194c4;},'IyTJh':function(_0x30d6d0,_0x466740){return _0x30d6d0===_0x466740;},'UnOmX':function(_0x318f29,_0x3279b6){return _0x318f29===_0x3279b6;},'ryIPd':function(_0x11eb40,_0x306e42){return _0x11eb40>_0x306e42;},'xiFTm':function(_0x4de065,_0x475561){return _0x4de065===_0x475561;},'lyLbC':_0x14e535(0x155),'OZgYk':_0x14e535(0x1f5),'CIvPp':_0x14e535(0x1eb),'UicFo':function(_0x619d9,_0x3d2b12){return _0x619d9!==_0x3d2b12;}},{hookData:_0x245ca2}=_0x111d58;if(!_0x245ca2)return logger[_0x14e535(0x169)](_0x313a5c[_0x14e535(0x20e)]),{};const _0x5276a1=_0x245ca2['uuid']||_0x313a5c[_0x14e535(0x180)](uuidv4),_0x5c7fbe=_0x245ca2['test_run_id'],_0x2c5d47=_0x50f2d6['toString']()[_0x14e535(0x16a)]('.')[0x1],_0x22dfef=TestInfo[_0x14e535(0x156)](_0x5c7fbe)[TestFrameworkConstants[_0x14e535(0x1d1)]]||{},_0x22cc05=_0x331372[_0x14e535(0x1a3)]()[_0x14e535(0x163)](_0x5c7fbe);if(!_0x22cc05)return logger['debug']('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x5c7fbe+_0x14e535(0x1f9)),this['storePendingHook'](_0x331372,_0x5c7fbe,_0x50f2d6,_0x503e64,_0x111d58),{};let _0x17211b=_0x22cc05[TestFrameworkConstants[_0x14e535(0x1a0)]];!_0x17211b&&(_0x17211b={});!_0x313a5c[_0x14e535(0x197)](_0x2c5d47,_0x17211b)&&(_0x17211b[_0x2c5d47]=[]);let _0x2e07c6=_0x22cc05[TestFrameworkConstants[_0x14e535(0x17c)]];!_0x2e07c6&&(_0x2e07c6={});!_0x313a5c[_0x14e535(0x181)](_0x2c5d47,_0x2e07c6)&&(_0x2e07c6[_0x2c5d47]=[]);const _0x5923c7={[TestFrameworkConstants[_0x14e535(0x1a0)]]:_0x17211b,[TestFrameworkConstants[_0x14e535(0x17c)]]:_0x2e07c6},_0x2879f7={};_0x2879f7[_0x5c7fbe]=_0x5923c7;const _0x1155bd=_0x2879f7;if(_0x313a5c[_0x14e535(0x1ab)](_0x503e64,HookState[_0x14e535(0x18e)])){const _0x3d4340={[TestFrameworkConstants[_0x14e535(0x188)]]:_0x5276a1,[TestFrameworkConstants[_0x14e535(0x192)]]:TestFrameworkConstants[_0x14e535(0x18b)],[TestFrameworkConstants[_0x14e535(0x1f8)]]:_0x245ca2[_0x14e535(0x161)],[TestFrameworkConstants[_0x14e535(0x1f4)]]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x245ca2[_0x14e535(0x1b4)],[TestFrameworkConstants[_0x14e535(0x1d1)]]:_0x22dfef};_0x3d4340[_0x14e535(0x1b6)]=_0x2c5d47;const _0x4d3aea=_0x3d4340;_0x17211b[_0x2c5d47]['push'](_0x4d3aea),_0x1155bd[_0x5c7fbe][TestFrameworkConstants[_0x14e535(0x183)]]=_0x2c5d47,logger['debug'](_0x14e535(0x1f7)+_0x2c5d47+_0x14e535(0x16f)+_0x4d3aea+_0x14e535(0x196)+_0x111d58);}else{if(_0x313a5c[_0x14e535(0x193)](_0x503e64,HookState[_0x14e535(0x1e3)])){const _0xf4ec34=_0x245ca2[_0x14e535(0x171)],_0x3f3b3c=_0x17211b[_0x2c5d47]||[];logger[_0x14e535(0x169)](_0x14e535(0x190)+_0x3f3b3c+_0x14e535(0x1f0)+_0x111d58);if(_0x313a5c['ryIPd'](_0x3f3b3c[_0x14e535(0x217)],0x0)){const _0x4270b2=_0x3f3b3c[_0x14e535(0x16c)]();_0x313a5c['xiFTm'](_0x245ca2[_0x14e535(0x171)],_0x313a5c[_0x14e535(0x199)])&&_0x245ca2[_0x14e535(0x1de)]?(_0x4270b2[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x245ca2[_0x14e535(0x187)]||_0x313a5c['OZgYk'],_0x4270b2[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x245ca2[_0x14e535(0x1ac)]||'',_0x4270b2[TestFrameworkConstants[_0x14e535(0x216)]]=_0x245ca2['failure_data']):_0x4270b2[TestFrameworkConstants[_0x14e535(0x192)]]=_0x313a5c[_0x14e535(0x19a)];_0x313a5c[_0x14e535(0x1c8)](_0xf4ec34,TestFrameworkConstants[_0x14e535(0x18b)])&&(_0x4270b2[TestFrameworkConstants[_0x14e535(0x192)]]=_0xf4ec34);_0x4270b2[TestFrameworkConstants[_0x14e535(0x1e9)]]=_0x245ca2[_0x14e535(0x21b)]||new Date()[_0x14e535(0x20d)](),_0x4270b2[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x22dfef;const _0x379094=_0x4270b2[TestFrameworkConstants[_0x14e535(0x188)]];!_0x2e07c6[_0x2c5d47]&&(_0x2e07c6[_0x2c5d47]=[]),_0x2e07c6[_0x2c5d47][_0x14e535(0x1aa)](_0x4270b2),_0x1155bd[_0x5c7fbe][TestFrameworkConstants[_0x14e535(0x1af)]]=_0x2c5d47;}}}return logger[_0x14e535(0x169)](_0x14e535(0x210)+_0x245ca2[_0x14e535(0x1b4)]+_0x14e535(0x1a2)+_0x5276a1+_0x14e535(0x1a5)+_0x5c7fbe),_0x1155bd;}[a91_0x3217d7(0x1fb)](_0xed9834){const _0x4e507a=a91_0x3217d7,_0xc179aa={};_0xc179aa[_0x4e507a(0x1be)]=_0x4e507a(0x21a);const _0x5be0b9=_0xc179aa;try{const _0x31fb35=_0xed9834[_0x4e507a(0x17e)]?_0xed9834[_0x4e507a(0x17e)]['id']:_0xed9834[_0x4e507a(0x1a7)][_0x4e507a(0x1c7)],_0x389b8c=_0xed9834[_0x4e507a(0x1b1)],_0x1aa5a1=_0x389b8c[_0x4e507a(0x185)](),_0x1533db=_0x389b8c[_0x4e507a(0x1a3)]()[_0x4e507a(0x163)](_0x31fb35);if(!_0x1533db)return logger[_0x4e507a(0x169)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x31fb35),{};logger[_0x4e507a(0x169)](_0x4e507a(0x1fc)+_0x31fb35);const {[TestFrameworkConstants[_0x4e507a(0x1c2)]]:_0x17638d='',[TestFrameworkConstants[_0x4e507a(0x205)]]:_0x375953='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x51b08b='',[TestFrameworkConstants[_0x4e507a(0x158)]]:_0x46b42e=''}=_0x1533db,_0x5d2141=_0x389b8c[_0x4e507a(0x1f1)]()[_0x4e507a(0x179)]()[_0x4e507a(0x16a)]('.')[0x1],_0x146869=_0x389b8c['getCurrentHookState']()[_0x4e507a(0x179)]()['split']('.')[0x1],_0x76cad1=global?.['browserstackPlatformIndex']??0x0,_0x1e399b=_0x389b8c['getRef'](),_0x5b7d90=Buffer['from'](JSON[_0x4e507a(0x1ec)](_0x1533db))[_0x4e507a(0x179)](_0x5be0b9[_0x4e507a(0x1be)]),_0x262089={'hash':_0x1aa5a1[_0x4e507a(0x18c)](),'threadId':_0x1aa5a1[_0x4e507a(0x19e)]()[_0x4e507a(0x179)](),'processId':_0x1aa5a1['getProcessId']()['toString']()},_0x42f875={};_0x42f875[_0x4e507a(0x201)]=_0x76cad1,_0x42f875[_0x4e507a(0x195)]=_0x17638d,_0x42f875[_0x4e507a(0x209)]=_0x375953,_0x42f875['testFrameworkState']=_0x5d2141,_0x42f875[_0x4e507a(0x153)]=_0x146869,_0x42f875[_0x4e507a(0x1dc)]=_0x51b08b,_0x42f875[_0x4e507a(0x1fe)]=_0x46b42e,_0x42f875[_0x4e507a(0x20c)]=_0x1e399b,_0x42f875[_0x4e507a(0x1c5)]=_0x5b7d90,_0x42f875['executionContext']=_0x262089;const _0x29997f=_0x42f875;return logger[_0x4e507a(0x169)](_0x4e507a(0x207)+_0x31fb35+_0x4e507a(0x14d)+_0x5d2141+'\x20hookState:\x20'+_0x146869),_0x29997f;}catch(_0x493c4d){return logger[_0x4e507a(0x1f3)](_0x4e507a(0x198)+util[_0x4e507a(0x1bc)](_0x493c4d)),{};}}async[a91_0x3217d7(0x14f)](_0x53b5ec,_0x565894,_0x42bff8){const _0xc1ac24=a91_0x3217d7,_0xeea09f={'NTiiE':function(_0x45003d,_0x2987a6,_0xff1c3c){return _0x45003d(_0x2987a6,_0xff1c3c);},'NUkoZ':function(_0x33415f,_0x5b2f5a){return _0x33415f===_0x5b2f5a;},'cTJFy':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','mZXMa':function(_0xeb78c0,_0x5e5c4b){return _0xeb78c0/_0x5e5c4b;},'jSdTv':function(_0x8ad75d,_0x5b90c2){return _0x8ad75d<_0x5b90c2;},'JNXwC':function(_0x274506,_0x3b9f09){return _0x274506*_0x3b9f09;},'NPiGz':function(_0x4224f0,_0x2d7724){return _0x4224f0+_0x2d7724;},'mwpPN':_0xc1ac24(0x1ef)};try{const _0x59a184=_0x42bff8[_0xc1ac24(0x18d)],_0x52edf5=_0x53b5ec['getAllData']()[_0xc1ac24(0x163)](_0x59a184),{[TestFrameworkConstants[_0xc1ac24(0x1c2)]]:_0x2cb8ff='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x12cc4c=''}=_0x52edf5,_0x2cdb22=TestInfo['readLogObjects'](_0x59a184),_0x5a3e19=TestInfo['getTestDetails'](_0x59a184)[TestFrameworkConstants[_0xc1ac24(0x17a)]]||{},_0x2da919=_0xeea09f[_0xc1ac24(0x162)](getMediaArtifactsLogs,_0x5a3e19,_0x53b5ec[_0xc1ac24(0x1a3)]()[_0xc1ac24(0x163)](_0x59a184)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x1fda23=(_0x2cdb22||[])[_0xc1ac24(0x16e)](_0x2da919||[]);if(!_0x1fda23||_0xeea09f['NUkoZ'](_0x1fda23[_0xc1ac24(0x217)],0x0)){logger[_0xc1ac24(0x169)](_0xeea09f[_0xc1ac24(0x1a8)]);return;}const _0x562a3d=0x28,_0x30ca74=Math['ceil'](_0xeea09f[_0xc1ac24(0x1ba)](_0x1fda23[_0xc1ac24(0x217)],_0x562a3d));for(let _0x5108b8=0x0;_0xeea09f['jSdTv'](_0x5108b8,_0x30ca74);_0x5108b8++){const _0x71432=_0xeea09f[_0xc1ac24(0x15e)](_0x5108b8,_0x562a3d),_0x2992b3=_0xeea09f[_0xc1ac24(0x215)](_0x71432,_0x562a3d),_0x491194=_0x1fda23[_0xc1ac24(0x1ad)](_0x71432,_0x2992b3),_0x3f21de={'platformIndex':global?.[_0xc1ac24(0x1ae)]??0x0,'logs':_0x491194,'testFrameworkName':_0x2cb8ff,'testFrameworkVersion':_0x12cc4c,'testFrameworkState':_0x565894[_0xc1ac24(0x179)]()['split']('.')[0x1]};logger[_0xc1ac24(0x169)](_0xc1ac24(0x176)+_0x59a184+'\x20batch\x20'+_0xeea09f[_0xc1ac24(0x215)](_0x5108b8,0x1)+'/'+_0x30ca74+_0xc1ac24(0x165)+util['inspect'](_0x3f21de));const _0x38216d=await GrpcClient[_0xc1ac24(0x182)]()['logCreatedEvent'](_0x3f21de);logger[_0xc1ac24(0x169)](_0xc1ac24(0x176)+_0x59a184+_0xc1ac24(0x1e8)+_0xeea09f[_0xc1ac24(0x215)](_0x5108b8,0x1)+'/'+_0x30ca74+'\x20response='+util[_0xc1ac24(0x1b7)](_0x38216d));}}catch(_0x38ffc7){logger[_0xc1ac24(0x1f3)]('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util['format'](_0x38ffc7));}logger[_0xc1ac24(0x169)](_0xeea09f[_0xc1ac24(0x1ed)]);}['storePendingHook'](_0x42859e,_0xeb3326,_0x500e7a,_0x14c5ae,_0x5a343f){const _0x4dd4ae=a91_0x3217d7,_0xfc0adf={'testId':_0xeb3326,'testFrameworkState':_0x500e7a,'hookState':_0x14c5ae,'args':_0x5a343f,'timestamp':new Date()[_0x4dd4ae(0x20d)]()};_0x42859e[_0x4dd4ae(0x19c)](_0xeb3326,_0xfc0adf),logger[_0x4dd4ae(0x169)](_0x4dd4ae(0x157)+_0xeb3326+',\x20state:\x20'+_0x500e7a+_0x4dd4ae(0x1da)+_0x14c5ae);}async['processPendingHooks'](_0x381bf4,_0x4daa32){const _0x2a961e=a91_0x3217d7,_0x59ca03={};_0x59ca03['nzFwt']=function(_0xa05fbd,_0x53b8d2){return _0xa05fbd>_0x53b8d2;};const _0x5cd78e=_0x59ca03;if(!_0x381bf4[_0x2a961e(0x1ce)](_0x4daa32))return;const _0x9c9444=_0x381bf4['getPendingHooks'](_0x4daa32);logger[_0x2a961e(0x169)]('Processing\x20'+_0x9c9444['length']+_0x2a961e(0x1d2)+_0x4daa32);for(const _0x43509a of _0x9c9444){try{const _0x544796=await this['trackHookEvent'](_0x381bf4,_0x43509a[_0x2a961e(0x1d4)],_0x43509a[_0x2a961e(0x153)],_0x43509a[_0x2a961e(0x20a)]);_0x544796&&_0x5cd78e['nzFwt'](Object['keys'](_0x544796)[_0x2a961e(0x217)],0x0)&&_0x381bf4[_0x2a961e(0x1b3)](_0x544796),await this[_0x2a961e(0x18a)](_0x381bf4,_0x43509a[_0x2a961e(0x1d4)],_0x43509a[_0x2a961e(0x153)],_0x43509a[_0x2a961e(0x20a)]);}catch(_0x54e6b2){logger[_0x2a961e(0x1f3)](_0x2a961e(0x204)+_0x4daa32+_0x2a961e(0x1b0)+_0x54e6b2);}}_0x381bf4[_0x2a961e(0x154)](_0x4daa32),logger[_0x2a961e(0x169)](_0x2a961e(0x17b)+_0x4daa32);}}function a91_0x4389(){const _0x320e80=['startedAt','CucumberTestFramework','failure_data','196772PVCFHy','hooks','KEY_TEST_RERUN_NAME','Yfgiv','POST','\x20with\x20UUID:\x20','tcosV','meta','KEY_TEST_SCOPE','\x20batch\x20','KEY_EVENT_ENDED_AT','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','passed','stringify','mwpPN','SliFe','Cucumber\x20log\x20created\x20event','\x20and\x20args\x20=\x20','getCurrentTestState','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','error','KEY_HOOK_LOGS','UnhandledError','./constants/testFrameworkConstants.js','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','KEY_EVENT_STARTED_AT',',\x20storing\x20as\x20pending\x20hook','KEY_TEST_TAGS','createTestFrameworkEventPayload','createTestFrameworkEventPayload\x20testId:\x20','../TestInfo.js','endedAt','KEY_TEST_LOGS','getTestUUID','platformIndex','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_FRAMEWORK_VERSION','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','315378ajFIXP','testFrameworkVersion','args','KEY_AUTOMATE_SESSION_NAME','uuid','toISOString','eOIEu','AtOrF','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_LOGS','DRGKT','eDVBv','customRerunParam','NPiGz','KEY_HOOK_FAILURE','length','name','1231126nrZqWu','base64','finished_at','\x20testState:\x20','testData','sendLogCreatedEvent','NONE','../../../helpers/classLogger.js','code','hookState','removePendingHooks','failed','getTestDetails','Stored\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_ENDED_AT','INIT_TEST','KEY_TEST_RESULT','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','setTestDetails','1656263PmBUtq','JNXwC','NnGyW','rwxHw','started_at','NTiiE','get','parseCucumberTest','\x20payload=',',\x20state=','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','slJeB','debug','split','trackEvent','pop','../state/testFrameworkState.js','concat','\x20&\x20hook\x20=\x20','\x20target=','result','file_name','finishedAt','3irWZwK','494951kmUvXG','sendLogCreatedEvent:\x20for\x20testId:\x20','Updated\x20cucumber\x20test\x20result:\x20','Parsed\x20cucumber\x20test:\x20','toString','KEY_TEST_ATTACHMENTS','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KEY_HOOKS_FINISHED','trackCucumberInstance','test','KEY_TEST_FAILURE','myFtk','bDzQx','getInstance','KEY_HOOK_LAST_STARTED','blNMk','getContext','../../../helpers/helper.js','failure_type','KEY_HOOK_ID','../state/hookState.js','runHooks','DEFAULT_HOOK_RESULT','getId','testUUID','PRE','KEY_TEST_STARTED_AT','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','trackEvent:\x20unsupported\x20testFrameworkState=','KEY_HOOK_RESULT','UnOmX','966335tkPqsK','testFrameworkName','\x20\x20and\x20args\x20=\x20','Uyjyy','Error\x20in\x20createTestFrameworkEventPayload:\x20','lyLbC','CIvPp','KEY_TEST_UUID','addPendingHook','DEFAULT_TEST_RESULT','getThreadId','body','KEY_HOOKS_STARTED','18wyayim','\x20with\x20id\x20','getAllData','3869570eHbXLV','\x20for\x20test:\x20','unknown','hookData','cTJFy','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','push','IyTJh','failure_reason','slice','browserstackPlatformIndex','KEY_HOOK_LAST_FINISHED',',\x20error:\x20','instance','exports','addMultipleEntries','hook_type','NobTU','key','inspect','rerun_name','resolveInstance','mZXMa','trackHookEvent','format','../grpcClient','YCFUL','uHHJG','../instances/testFrameworkInstance.js','KEY_TEST_FAILURE_REASON','KEY_TEST_FRAMEWORK_NAME','./testFramework','getTestFrameworks','eventJson','getTestFrameworksVersions','test_run_id','UicFo','KEY_TEST_LOCATION','getCurrentInstanceName','IpgTX','KEY_TEST_CODE','matchHookRegex','hasPendingHooks','LaeVZ','8grDllO','KEY_CUSTOM_TAGS','\x20pending\x20hooks\x20for\x20testId:\x20','TEST','testFrameworkState','\x20with\x20result:\x20','failure','KEY_TEST_META','parseCucumberTestResult','scopes',',\x20hookState:\x20','trackCucumberInstance:\x20saved\x20instance\x20contextId='];a91_0x4389=function(){return _0x320e80;};return a91_0x4389();}module[a91_0x3217d7(0x1b2)]=CucumberTestFramework;
|
|
1
|
+
const a89_0x2527d5=a89_0x4944;function a89_0x20c6(){const _0x53da2f=['name','KEY_TEST_TAGS','KEY_TEST_NAME','\x20testState:\x20','hhkyZ','280hAmZPz','getPendingHooks','getThreadId','zVeSC','get','base64','ceil',',\x20hookState:\x20','KEY_TEST_RESULT','sOiZG','Updated\x20cucumber\x20test\x20result:\x20','concat','1600320Wcggof','trackCucumberInstance','browserstackPlatformIndex','getId','KEY_TEST_STARTED_AT','Processing\x20','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','getCurrentHookState','KEY_TEST_ENDED_AT','17uULMhL','qhaKS','readLogObjects','test_run_id','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','sfDZF','getTestDetails','pcjYo','processPendingHooks','jABSJ','\x20hookState:\x20','toString','\x20with\x20UUID:\x20','sendLogCreatedEvent:\x20for\x20testId:\x20','startedAt','trackEvent:\x20unsupported\x20testFrameworkState=','KEY_TEST_META','339615CtOUHC','scopes','JgINh','push','KEY_TEST_FRAMEWORK_VERSION','unknown','result','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','addPendingHook','logCreatedEvent','rerun_name',',\x20state=','EbsGI','tnqrT','xcIJD','addMultipleEntries','passed','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','TEST','Tracked\x20cucumber\x20hook\x20event:\x20','error','KEY_TEST_SCOPE','../state/testFrameworkState.js','KEY_HOOK_LAST_STARTED','inspect','\x20pending\x20hooks\x20for\x20testId:\x20','CucumberTestFramework','failure_data','trackCucumberInstance:\x20saved\x20instance\x20contextId=','length','slice','KEY_CUSTOM_TAGS','util','KEY_LOGS','body','384843xbWICA','KEY_TEST_FILE_PATH','KEY_TEST_LOGS','format','53084waMoRN','testData','POST','test','getTestUUID','PRE','uXtBd','testUUID','RGTpw','args','../instances/testFrameworkInstance.js','Stored\x20pending\x20hook\x20for\x20testId:\x20','hookState',',\x20storing\x20as\x20pending\x20hook','yxvIN','DEFAULT_HOOK_RESULT','KEY_HOOK_LOGS','xYvPG','../../../helpers/classLogger.js','\x20&\x20hookState=','getCurrentInstanceName','code','sendLogCreatedEvent','KEY_HOOK_FAILURE_TYPE','parseCucumberTestResult','uuid','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','KEY_HOOKS_STARTED','599046tPIUTU','Cucumber\x20log\x20created\x20event','hook_type','from','\x20batch\x20','\x20and\x20args\x20=\x20','platformIndex','KEY_TEST_CODE','../../../helpers/helper.js','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','runHooks','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','testFrameworkState','KEY_TEST_ATTACHMENTS','JDWAB','trackEvent','toISOString','KEY_TEST_UUID','Rgjqs','hasPendingHooks','instance','IjXwq','createTestFrameworkEventPayload','pop','executionContext','failure_reason','started_at','\x20payload=','PpVcT','zhnKs','UrEyz','getProcessId','NjQSA','failure_type','setTestDetails','getAllData','hooks','endedAt','KEY_AUTOMATE_SESSION_NAME','storePendingHook','KEY_HOOK_RESULT','tWYzs','NONE','finished_at','eventJson','PPlIs','meta','QzBpI','DEFAULT_TEST_RESULT','KEY_HOOKS_FINISHED','setTrackedInstance','KEY_TEST_FRAMEWORK_NAME','createTestFrameworkEventPayload\x20testId:\x20','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','VqpAP','2191504YSmuvS','\x20response=','location','28664cJfHrm','getInstance','resolveInstance','trackHookEvent','\x20\x20and\x20args\x20=\x20','\x20&\x20hook\x20=\x20','KEY_TEST_FAILURE_TYPE','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','qYAmS','tTSiO','hookData','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','dkOtg','failure','../cliUtils.js','75RMibDF','split','debug','KEY_TEST_RERUN_NAME','\x20with\x20result:\x20','exports','../TestInfo.js','KEY_HOOK_NAME','KEY_TEST_LOCATION','../instances/trackedInstance.js','KEY_HOOK_ID'];a89_0x20c6=function(){return _0x53da2f;};return a89_0x20c6();}(function(_0x2c855b,_0x166c3b){const _0x103ff3=a89_0x4944,_0x377014=_0x2c855b();while(!![]){try{const _0x50a01c=parseInt(_0x103ff3(0x23b))/0x1*(parseInt(_0x103ff3(0x207))/0x2)+parseInt(_0x103ff3(0x270))/0x3+parseInt(_0x103ff3(0x274))/0x4*(parseInt(_0x103ff3(0x216))/0x5)+parseInt(_0x103ff3(0x232))/0x6+parseInt(_0x103ff3(0x1cd))/0x7+parseInt(_0x103ff3(0x204))/0x8+-parseInt(_0x103ff3(0x24c))/0x9*(parseInt(_0x103ff3(0x226))/0xa);if(_0x50a01c===_0x166c3b)break;else _0x377014['push'](_0x377014['shift']());}catch(_0x3f079e){_0x377014['push'](_0x377014['shift']());}}}(a89_0x20c6,0x22566));const TestFramework=require('./testFramework'),TestFrameworkState=require(a89_0x2527d5(0x263)),HookState=require('../state/hookState.js'),{createClassLogger}=require(a89_0x2527d5(0x286)),TestFrameworkInstance=require(a89_0x2527d5(0x27e)),CLIUtils=require(a89_0x2527d5(0x215)),TrackedInstance=require(a89_0x2527d5(0x21f)),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a89_0x2527d5(0x1d5)),logger=createClassLogger(a89_0x2527d5(0x267)),{v4:uuidv4}=require(a89_0x2527d5(0x28d)),util=require(a89_0x2527d5(0x26d)),TestInfo=require(a89_0x2527d5(0x21c)),GrpcClient=require('../grpcClient');function a89_0x4944(_0xa8db60,_0x5f63f1){const _0x20c6d4=a89_0x20c6();return a89_0x4944=function(_0x4944bd,_0x444c59){_0x4944bd=_0x4944bd-0x1cb;let _0x152f58=_0x20c6d4[_0x4944bd];return _0x152f58;},a89_0x4944(_0xa8db60,_0x5f63f1);}class CucumberTestFramework extends TestFramework{constructor(_0x35d749,_0x5602fc,_0x144db5){super(_0x35d749,_0x5602fc,_0x144db5);}async[a89_0x2527d5(0x1dc)](_0x53a809,_0x41c4a7,_0x1e3894={}){const _0x5d73ce=a89_0x2527d5,_0x4a93c8={};_0x4a93c8[_0x5d73ce(0x25a)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x4a93c8[_0x5d73ce(0x225)]=function(_0x5340a0,_0x3700f5){return _0x5340a0===_0x3700f5;},_0x4a93c8['sacXY']=function(_0x8e5a0e,_0x21b831){return _0x8e5a0e===_0x21b831;},_0x4a93c8[_0x5d73ce(0x24e)]='trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s';const _0x2de6cb=_0x4a93c8;await super[_0x5d73ce(0x1dc)](_0x53a809,_0x41c4a7,_0x1e3894);const _0x5ec43a=this[_0x5d73ce(0x209)](_0x53a809,_0x41c4a7,_0x1e3894);if(!_0x5ec43a){logger[_0x5d73ce(0x218)](_0x2de6cb['tnqrT']);return;}try{let _0x7359d6,_0x4a1413;switch(_0x53a809){case TestFrameworkState['TEST']:_0x7359d6=_0x1e3894['test'],_0x4a1413=TestInfo[_0x5d73ce(0x278)](_0x7359d6['id']);if(_0x2de6cb[_0x5d73ce(0x225)](_0x41c4a7,HookState[_0x5d73ce(0x279)])){logger['debug'](_0x5d73ce(0x23f)+_0x7359d6['id']);const _0x2dc896={};_0x2dc896[_0x5d73ce(0x27b)]=_0x4a1413,_0x2dc896[_0x5d73ce(0x275)]=_0x7359d6,_0x5ec43a['addMultipleEntries'](this['parseCucumberTest'](_0x2dc896)),logger[_0x5d73ce(0x218)](_0x5d73ce(0x25e)+_0x7359d6['id']),await this[_0x5d73ce(0x243)](_0x5ec43a,_0x7359d6['id']);}else{if(_0x2de6cb[_0x5d73ce(0x225)](_0x41c4a7,HookState['POST'])){const _0x10057d={};_0x10057d[_0x5d73ce(0x27b)]=_0x4a1413,_0x10057d[_0x5d73ce(0x275)]=_0x7359d6,_0x5ec43a['addMultipleEntries'](this[_0x5d73ce(0x28c)](_0x10057d)),await this[_0x5d73ce(0x243)](_0x5ec43a,_0x7359d6['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x2de6cb['sacXY'](_0x41c4a7,HookState[_0x5d73ce(0x276)])&&await this['sendLogCreatedEvent'](_0x5ec43a,_0x53a809,_0x1e3894);break;default:if(CLIUtils['matchHookRegex'](_0x53a809[_0x5d73ce(0x246)]()[_0x5d73ce(0x217)]('.')[0x1])){const _0x33d9fb=await this[_0x5d73ce(0x20a)](_0x5ec43a,_0x53a809,_0x41c4a7,_0x1e3894);_0x5ec43a[_0x5d73ce(0x25c)](_0x33d9fb);}else logger[_0x5d73ce(0x218)](_0x5d73ce(0x24a)+_0x53a809+_0x5d73ce(0x287)+_0x41c4a7);break;}}catch(_0x38b11c){logger[_0x5d73ce(0x261)](util[_0x5d73ce(0x273)](_0x2de6cb[_0x5d73ce(0x24e)],_0x53a809,_0x41c4a7,_0x1e3894[_0x5d73ce(0x26a)],_0x38b11c));}_0x1e3894['instance']=_0x5ec43a,await this['runHooks'](_0x5ec43a,_0x53a809,_0x41c4a7,_0x1e3894);}[a89_0x2527d5(0x209)](_0x10b2b0,_0x1e44d6,_0x336a62={}){const _0x1ddb84=a89_0x2527d5,_0x56b5f2={};_0x56b5f2[_0x1ddb84(0x1ea)]=function(_0x1ff371,_0x3ea57f){return _0x1ff371===_0x3ea57f;};const _0x2c4b01=_0x56b5f2;let _0x256104=null;return(_0x2c4b01['zhnKs'](_0x10b2b0,TestFrameworkState['INIT_TEST'])||_0x2c4b01['zhnKs'](_0x10b2b0,TestFrameworkState[_0x1ddb84(0x1f7)]))&&this['trackCucumberInstance'](_0x10b2b0,_0x336a62),_0x256104=TestFramework['getTrackedInstance'](),_0x256104;}[a89_0x2527d5(0x233)](_0x5a1b7d,_0x5035c2){const _0x3e7201=a89_0x2527d5,_0x55bd1e=CLIUtils[_0x3e7201(0x288)](),_0x439f69=TrackedInstance['createContext'](_0x55bd1e);let _0x3f3950=null;logger['debug'](_0x3e7201(0x238)+_0x55bd1e+_0x3e7201(0x258)+_0x5a1b7d),_0x3f3950=new TestFrameworkInstance(_0x439f69,this['getTestFrameworks'](),this['getTestFrameworksVersions'](),_0x5a1b7d,HookState[_0x3e7201(0x1f7)]),TestFramework[_0x3e7201(0x1ff)](_0x439f69,_0x3f3950),logger[_0x3e7201(0x218)](_0x3e7201(0x269)+_0x439f69[_0x3e7201(0x235)]()+'\x20target='+_0x55bd1e);}['parseCucumberTest'](_0x436442){const _0x5c1c31=a89_0x2527d5,_0x13f68d={};_0x13f68d[_0x5c1c31(0x244)]=_0x5c1c31(0x253);const _0x3f3c1c=_0x13f68d,{testUUID:_0x2423b9,testData:_0x2dcf4e}=_0x436442;if(!_0x2dcf4e||!_0x2dcf4e[_0x5c1c31(0x28d)])return logger[_0x5c1c31(0x218)](_0x3f3c1c[_0x5c1c31(0x244)]),{};const _0x56efef=_0x2423b9,_0x4509bd=_0x2dcf4e[_0x5c1c31(0x28d)],_0x2bd6ef=this['getTestFrameworks']()[0x0],_0x537eba=this['getTestFrameworksVersions'](),_0x58446c={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x2bd6ef,[TestFrameworkConstants[_0x5c1c31(0x250)]]:_0x537eba[_0x2bd6ef],[TestFrameworkConstants[_0x5c1c31(0x272)]]:[],[TestFrameworkConstants[_0x5c1c31(0x1fe)]]:{},[TestFrameworkConstants[_0x5c1c31(0x1cc)]]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x56efef,[TestFrameworkConstants[_0x5c1c31(0x22e)]]:TestFrameworkConstants[_0x5c1c31(0x1fd)],[TestFrameworkConstants[_0x5c1c31(0x1f3)]]:_0x2dcf4e[_0x5c1c31(0x221)]||'',[TestFrameworkConstants[_0x5c1c31(0x271)]]:_0x2dcf4e['file_name']||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x4509bd,[TestFrameworkConstants[_0x5c1c31(0x223)]]:_0x2dcf4e[_0x5c1c31(0x221)]||'',[TestFrameworkConstants[_0x5c1c31(0x21e)]]:_0x2dcf4e[_0x5c1c31(0x206)]||'',[TestFrameworkConstants[_0x5c1c31(0x1d4)]]:_0x2dcf4e[_0x5c1c31(0x26f)]?.[_0x5c1c31(0x289)]||null,[TestFrameworkConstants[_0x5c1c31(0x222)]]:_0x2dcf4e['tags']||[],[TestFrameworkConstants[_0x5c1c31(0x236)]]:_0x2dcf4e[_0x5c1c31(0x249)]||new Date()[_0x5c1c31(0x1dd)](),[TestFrameworkConstants[_0x5c1c31(0x262)]]:_0x2dcf4e[_0x5c1c31(0x24d)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x2dcf4e[_0x5c1c31(0x24d)]||[],[TestFrameworkConstants[_0x5c1c31(0x219)]]:_0x2dcf4e['customRerunParam']?.[_0x5c1c31(0x257)]||_0x2dcf4e[_0x5c1c31(0x221)]||'',[TestFrameworkConstants[_0x5c1c31(0x26c)]]:{},[TestFrameworkConstants[_0x5c1c31(0x24b)]]:_0x2dcf4e[_0x5c1c31(0x1fb)]||{}};TestInfo[_0x5c1c31(0x1ef)](_0x4509bd,_0x58446c),logger['debug']('Parsed\x20cucumber\x20test:\x20'+_0x2dcf4e['name']+_0x5c1c31(0x247)+_0x56efef);const _0x552684={};return _0x552684[_0x4509bd]=_0x58446c,_0x552684;}[a89_0x2527d5(0x28c)](_0x5e77c1){const _0x148d0a=a89_0x2527d5,_0x224be1={'UrEyz':_0x148d0a(0x1d8),'dkOtg':_0x148d0a(0x251),'tTSiO':function(_0x28b88f,_0x22ed07){return _0x28b88f===_0x22ed07;},'xYvPG':'failed','EbsGI':'UnhandledError','yxvIN':function(_0x39e2f5,_0x5ddb71,_0x33feac){return _0x39e2f5(_0x5ddb71,_0x33feac);},'qhaKS':function(_0x40f4be,_0x41c592){return _0x40f4be>_0x41c592;}},{testUUID:_0x394064,testData:_0x2431a4}=_0x5e77c1;if(!_0x2431a4||!_0x2431a4[_0x148d0a(0x28d)])return logger[_0x148d0a(0x218)](_0x224be1[_0x148d0a(0x1eb)]),{};const _0x41ec5d=this[_0x148d0a(0x209)](TestFrameworkState[_0x148d0a(0x25f)],HookState[_0x148d0a(0x276)]),_0xd4bd6f=_0x2431a4[_0x148d0a(0x28d)],_0x5cb0d7=TestInfo[_0x148d0a(0x241)](_0xd4bd6f)||{},_0x5ee3f4=_0x5cb0d7?_0x5cb0d7[TestFrameworkConstants[_0x148d0a(0x26c)]]||{}:{},_0x2b4b0e={..._0x5cb0d7,[TestFrameworkConstants[_0x148d0a(0x22e)]]:_0x2431a4[_0x148d0a(0x252)]||_0x224be1[_0x148d0a(0x213)],[TestFrameworkConstants[_0x148d0a(0x23a)]]:_0x2431a4['finishedAt']||new Date()[_0x148d0a(0x1dd)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x148d0a(0x1dd)](),[TestFrameworkConstants[_0x148d0a(0x26c)]]:_0x5ee3f4,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x2431a4[_0x148d0a(0x1fb)]||{}};_0x224be1[_0x148d0a(0x210)](_0x2431a4[_0x148d0a(0x252)],_0x224be1[_0x148d0a(0x285)])&&_0x2431a4[_0x148d0a(0x214)]&&(_0x2b4b0e[TestFrameworkConstants[_0x148d0a(0x20d)]]=_0x2431a4[_0x148d0a(0x1ee)]||_0x224be1[_0x148d0a(0x259)],_0x2b4b0e[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x2431a4[_0x148d0a(0x1e6)]||'',_0x2b4b0e[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x2431a4[_0x148d0a(0x214)]);const _0x38c5c5=TestInfo['getTestDetails'](_0xd4bd6f)[TestFrameworkConstants[_0x148d0a(0x1da)]]||{},_0xad8b11=_0x224be1[_0x148d0a(0x282)](getManualUploadLogs,_0x38c5c5,_0x41ec5d['getAllData']()[_0x148d0a(0x22a)](_0xd4bd6f)[TestFrameworkConstants[_0x148d0a(0x1de)]]);if(_0x224be1[_0x148d0a(0x23c)](_0xad8b11['length'],0x0)){const _0x1cad10=_0x2b4b0e[TestFrameworkConstants[_0x148d0a(0x26e)]]||[];_0x2b4b0e[TestFrameworkConstants['KEY_LOGS']]=[..._0x1cad10,..._0xad8b11];}_0x2431a4[_0x148d0a(0x1f1)]&&_0x224be1['qhaKS'](_0x2431a4[_0x148d0a(0x1f1)][_0x148d0a(0x26a)],0x0)&&(_0x2b4b0e[TestFrameworkConstants[_0x148d0a(0x1fe)]]=_0x2431a4[_0x148d0a(0x1f1)]);TestInfo[_0x148d0a(0x1ef)](_0xd4bd6f,_0x2b4b0e),logger['debug'](_0x148d0a(0x230)+_0x2431a4[_0x148d0a(0x221)]+_0x148d0a(0x21a)+_0x2431a4['result']);const _0x32e466={};return _0x32e466[_0xd4bd6f]=_0x2b4b0e,_0x32e466;}async[a89_0x2527d5(0x20a)](_0x3ea5b9,_0x318d64,_0x11cfbe,_0x39d77c){const _0x4ff9da=a89_0x2527d5,_0x8a246f={'IhghM':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','UMsWp':function(_0x1cd5f3){return _0x1cd5f3();},'xcIJD':function(_0x54621c,_0x576d32){return _0x54621c in _0x576d32;},'PPlIs':function(_0x328a39,_0x1b58bc){return _0x328a39===_0x1b58bc;},'pcjYo':function(_0x1cf09e,_0x4c7c88){return _0x1cf09e===_0x4c7c88;},'IjXwq':function(_0x5c3a6b,_0xbba709){return _0x5c3a6b>_0xbba709;},'RGTpw':function(_0x5209d4,_0x1cabea){return _0x5209d4===_0x1cabea;},'PpVcT':'failed','sOiZG':'UnhandledError','QzBpI':_0x4ff9da(0x25d),'ooulh':function(_0x421f26,_0x3727f6){return _0x421f26!==_0x3727f6;}},{hookData:_0x1928c4}=_0x39d77c;if(!_0x1928c4)return logger[_0x4ff9da(0x218)](_0x8a246f['IhghM']),{};const _0x48acfc=_0x1928c4[_0x4ff9da(0x28d)]||_0x8a246f['UMsWp'](uuidv4),_0x17091a=_0x1928c4['test_run_id'],_0x1bdb55=_0x318d64['toString']()[_0x4ff9da(0x217)]('.')[0x1],_0x1f2c6c=TestInfo[_0x4ff9da(0x241)](_0x17091a)[TestFrameworkConstants[_0x4ff9da(0x26c)]]||{},_0x5b3f3e=_0x3ea5b9[_0x4ff9da(0x1f0)]()['get'](_0x17091a);if(!_0x5b3f3e)return logger['debug'](_0x4ff9da(0x254)+_0x17091a+_0x4ff9da(0x281)),this['storePendingHook'](_0x3ea5b9,_0x17091a,_0x318d64,_0x11cfbe,_0x39d77c),{};let _0x3a1c44=_0x5b3f3e[TestFrameworkConstants[_0x4ff9da(0x1cc)]];!_0x3a1c44&&(_0x3a1c44={});!_0x8a246f[_0x4ff9da(0x25b)](_0x1bdb55,_0x3a1c44)&&(_0x3a1c44[_0x1bdb55]=[]);let _0x90eb7b=_0x5b3f3e[TestFrameworkConstants[_0x4ff9da(0x1fe)]];!_0x90eb7b&&(_0x90eb7b={});!_0x8a246f[_0x4ff9da(0x25b)](_0x1bdb55,_0x90eb7b)&&(_0x90eb7b[_0x1bdb55]=[]);const _0x551825={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x3a1c44,[TestFrameworkConstants[_0x4ff9da(0x1fe)]]:_0x90eb7b},_0x1c1cef={};_0x1c1cef[_0x17091a]=_0x551825;const _0x4803e8=_0x1c1cef;if(_0x8a246f[_0x4ff9da(0x1fa)](_0x11cfbe,HookState[_0x4ff9da(0x279)])){const _0x21015f={[TestFrameworkConstants[_0x4ff9da(0x220)]]:_0x48acfc,[TestFrameworkConstants[_0x4ff9da(0x1f5)]]:TestFrameworkConstants[_0x4ff9da(0x283)],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0x1928c4[_0x4ff9da(0x1e7)],[TestFrameworkConstants[_0x4ff9da(0x284)]]:[],[TestFrameworkConstants[_0x4ff9da(0x21d)]]:_0x1928c4[_0x4ff9da(0x1cf)],[TestFrameworkConstants[_0x4ff9da(0x26c)]]:_0x1f2c6c};_0x21015f['key']=_0x1bdb55;const _0x5e4e19=_0x21015f;_0x3a1c44[_0x1bdb55][_0x4ff9da(0x24f)](_0x5e4e19),_0x4803e8[_0x17091a][TestFrameworkConstants[_0x4ff9da(0x264)]]=_0x1bdb55,logger[_0x4ff9da(0x218)](_0x4ff9da(0x1cb)+_0x1bdb55+_0x4ff9da(0x20c)+_0x5e4e19+_0x4ff9da(0x20b)+_0x39d77c);}else{if(_0x8a246f[_0x4ff9da(0x242)](_0x11cfbe,HookState[_0x4ff9da(0x276)])){const _0x1c82d0=_0x1928c4['result'],_0x796fd3=_0x3a1c44[_0x1bdb55]||[];logger[_0x4ff9da(0x218)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x796fd3+_0x4ff9da(0x1d2)+_0x39d77c);if(_0x8a246f[_0x4ff9da(0x1e2)](_0x796fd3[_0x4ff9da(0x26a)],0x0)){const _0x5d4eb7=_0x796fd3[_0x4ff9da(0x1e4)]();_0x8a246f[_0x4ff9da(0x27c)](_0x1928c4[_0x4ff9da(0x252)],_0x8a246f[_0x4ff9da(0x1e9)])&&_0x1928c4['failure_data']?(_0x5d4eb7[TestFrameworkConstants[_0x4ff9da(0x28b)]]=_0x1928c4[_0x4ff9da(0x1ee)]||_0x8a246f[_0x4ff9da(0x22f)],_0x5d4eb7[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x1928c4['failure_reason']||'',_0x5d4eb7[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0x1928c4[_0x4ff9da(0x268)]):_0x5d4eb7[TestFrameworkConstants[_0x4ff9da(0x1f5)]]=_0x8a246f[_0x4ff9da(0x1fc)];_0x8a246f['ooulh'](_0x1c82d0,TestFrameworkConstants[_0x4ff9da(0x283)])&&(_0x5d4eb7[TestFrameworkConstants[_0x4ff9da(0x1f5)]]=_0x1c82d0);_0x5d4eb7[TestFrameworkConstants['KEY_EVENT_ENDED_AT']]=_0x1928c4[_0x4ff9da(0x1f8)]||new Date()[_0x4ff9da(0x1dd)](),_0x5d4eb7[TestFrameworkConstants[_0x4ff9da(0x26c)]]=_0x1f2c6c;const _0x356270=_0x5d4eb7[TestFrameworkConstants[_0x4ff9da(0x220)]];!_0x90eb7b[_0x1bdb55]&&(_0x90eb7b[_0x1bdb55]=[]),_0x90eb7b[_0x1bdb55][_0x4ff9da(0x24f)](_0x5d4eb7),_0x4803e8[_0x17091a][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x1bdb55;}}}return logger[_0x4ff9da(0x218)](_0x4ff9da(0x260)+_0x1928c4[_0x4ff9da(0x1cf)]+'\x20with\x20id\x20'+_0x48acfc+'\x20for\x20test:\x20'+_0x17091a),_0x4803e8;}[a89_0x2527d5(0x1e3)](_0x4c85ff){const _0x75e53b=a89_0x2527d5,_0x1c99a4={};_0x1c99a4[_0x75e53b(0x240)]=_0x75e53b(0x22b);const _0x39a3df=_0x1c99a4;try{const _0x470f0f=_0x4c85ff[_0x75e53b(0x277)]?_0x4c85ff[_0x75e53b(0x277)]['id']:_0x4c85ff[_0x75e53b(0x211)][_0x75e53b(0x23e)],_0x2564ee=_0x4c85ff[_0x75e53b(0x1e1)],_0x5b1ccc=_0x2564ee['getContext'](),_0x57f0d5=_0x2564ee[_0x75e53b(0x1f0)]()[_0x75e53b(0x22a)](_0x470f0f);if(!_0x57f0d5)return logger[_0x75e53b(0x218)](_0x75e53b(0x202)+_0x470f0f),{};logger['debug'](_0x75e53b(0x201)+_0x470f0f);const {[TestFrameworkConstants[_0x75e53b(0x200)]]:_0x417999='',[TestFrameworkConstants[_0x75e53b(0x250)]]:_0x3bd322='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x14b901='',[TestFrameworkConstants[_0x75e53b(0x23a)]]:_0x55ce15=''}=_0x57f0d5,_0x1fca8b=_0x2564ee['getCurrentTestState']()[_0x75e53b(0x246)]()[_0x75e53b(0x217)]('.')[0x1],_0x20bf89=_0x2564ee[_0x75e53b(0x239)]()[_0x75e53b(0x246)]()[_0x75e53b(0x217)]('.')[0x1],_0x554b91=global?.[_0x75e53b(0x234)]??0x0,_0x499f25=_0x2564ee['getRef'](),_0x5659d5=Buffer[_0x75e53b(0x1d0)](JSON['stringify'](_0x57f0d5))[_0x75e53b(0x246)](_0x39a3df['sfDZF']),_0x118495={'hash':_0x5b1ccc[_0x75e53b(0x235)](),'threadId':_0x5b1ccc[_0x75e53b(0x228)]()[_0x75e53b(0x246)](),'processId':_0x5b1ccc[_0x75e53b(0x1ec)]()[_0x75e53b(0x246)]()},_0xd040b2={};_0xd040b2[_0x75e53b(0x1d3)]=_0x554b91,_0xd040b2['testFrameworkName']=_0x417999,_0xd040b2['testFrameworkVersion']=_0x3bd322,_0xd040b2[_0x75e53b(0x1d9)]=_0x1fca8b,_0xd040b2['hookState']=_0x20bf89,_0xd040b2['startedAt']=_0x14b901,_0xd040b2[_0x75e53b(0x1f2)]=_0x55ce15,_0xd040b2[_0x75e53b(0x28d)]=_0x499f25,_0xd040b2[_0x75e53b(0x1f9)]=_0x5659d5,_0xd040b2[_0x75e53b(0x1e5)]=_0x118495;const _0x5ed02c=_0xd040b2;return logger[_0x75e53b(0x218)](_0x75e53b(0x1d6)+_0x470f0f+_0x75e53b(0x224)+_0x1fca8b+_0x75e53b(0x245)+_0x20bf89),_0x5ed02c;}catch(_0x407a42){return logger[_0x75e53b(0x261)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x75e53b(0x273)](_0x407a42)),{};}}async[a89_0x2527d5(0x28a)](_0xaf04e,_0x55dc10,_0x1b42ef){const _0x16e009=a89_0x2527d5,_0x24d67d={'VqpAP':function(_0x295dc0,_0x5baddd,_0x544da0){return _0x295dc0(_0x5baddd,_0x544da0);},'fSDQu':function(_0x1dd791,_0x1e8bcb){return _0x1dd791===_0x1e8bcb;},'NjQSA':_0x16e009(0x20e),'tWYzs':function(_0x4e08bb,_0x484ec7){return _0x4e08bb/_0x484ec7;},'Rgjqs':function(_0x5557cb,_0x27f0b5){return _0x5557cb<_0x27f0b5;},'qYAmS':function(_0x374ee1,_0x4e8178){return _0x374ee1*_0x4e8178;},'zVeSC':function(_0x1a0f3e,_0x47173c){return _0x1a0f3e+_0x47173c;},'JDWAB':function(_0xb74c6a,_0x2a5d89){return _0xb74c6a+_0x2a5d89;},'eewbJ':_0x16e009(0x1ce)};try{const _0x74f60=_0x1b42ef[_0x16e009(0x27b)],_0x2c126d=_0xaf04e[_0x16e009(0x1f0)]()['get'](_0x74f60),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x451c0c='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x1531ca=''}=_0x2c126d,_0x548cfb=TestInfo[_0x16e009(0x23d)](_0x74f60),_0x1f4aec=TestInfo['getTestDetails'](_0x74f60)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x18f2ba=_0x24d67d[_0x16e009(0x203)](getMediaArtifactsLogs,_0x1f4aec,_0xaf04e['getAllData']()[_0x16e009(0x22a)](_0x74f60)[TestFrameworkConstants[_0x16e009(0x1de)]]),_0x3856b8=(_0x548cfb||[])[_0x16e009(0x231)](_0x18f2ba||[]);if(!_0x3856b8||_0x24d67d['fSDQu'](_0x3856b8[_0x16e009(0x26a)],0x0)){logger[_0x16e009(0x218)](_0x24d67d[_0x16e009(0x1ed)]);return;}const _0x1b35b7=0x28,_0x4e5f25=Math[_0x16e009(0x22c)](_0x24d67d[_0x16e009(0x1f6)](_0x3856b8[_0x16e009(0x26a)],_0x1b35b7));for(let _0x49f73f=0x0;_0x24d67d[_0x16e009(0x1df)](_0x49f73f,_0x4e5f25);_0x49f73f++){const _0x5131cb=_0x24d67d[_0x16e009(0x20f)](_0x49f73f,_0x1b35b7),_0x2a41be=_0x24d67d[_0x16e009(0x229)](_0x5131cb,_0x1b35b7),_0x399a2f=_0x3856b8[_0x16e009(0x26b)](_0x5131cb,_0x2a41be),_0x208a13={'platformIndex':global?.[_0x16e009(0x234)]??0x0,'logs':_0x399a2f,'testFrameworkName':_0x451c0c,'testFrameworkVersion':_0x1531ca,'testFrameworkState':_0x55dc10[_0x16e009(0x246)]()[_0x16e009(0x217)]('.')[0x1]};logger[_0x16e009(0x218)](_0x16e009(0x248)+_0x74f60+_0x16e009(0x1d1)+_0x24d67d[_0x16e009(0x1db)](_0x49f73f,0x1)+'/'+_0x4e5f25+_0x16e009(0x1e8)+util['inspect'](_0x208a13));const _0x3aa6c4=await GrpcClient[_0x16e009(0x208)]()[_0x16e009(0x256)](_0x208a13);logger[_0x16e009(0x218)](_0x16e009(0x248)+_0x74f60+_0x16e009(0x1d1)+_0x24d67d[_0x16e009(0x229)](_0x49f73f,0x1)+'/'+_0x4e5f25+_0x16e009(0x205)+util[_0x16e009(0x265)](_0x3aa6c4));}}catch(_0x375a3e){logger[_0x16e009(0x261)](_0x16e009(0x212)+util[_0x16e009(0x273)](_0x375a3e));}logger[_0x16e009(0x218)](_0x24d67d['eewbJ']);}[a89_0x2527d5(0x1f4)](_0x4e5af4,_0x2a5b5c,_0x225d4d,_0xcb6515,_0x3c343a){const _0x251e8b=a89_0x2527d5,_0x3ded69={'testId':_0x2a5b5c,'testFrameworkState':_0x225d4d,'hookState':_0xcb6515,'args':_0x3c343a,'timestamp':new Date()[_0x251e8b(0x1dd)]()};_0x4e5af4[_0x251e8b(0x255)](_0x2a5b5c,_0x3ded69),logger[_0x251e8b(0x218)](_0x251e8b(0x27f)+_0x2a5b5c+',\x20state:\x20'+_0x225d4d+_0x251e8b(0x22d)+_0xcb6515);}async['processPendingHooks'](_0x3d97b1,_0xdad3d3){const _0x134fc3=a89_0x2527d5,_0x24dcbe={};_0x24dcbe[_0x134fc3(0x27a)]=function(_0xe7d0f0,_0x193356){return _0xe7d0f0>_0x193356;};const _0x366fea=_0x24dcbe;if(!_0x3d97b1[_0x134fc3(0x1e0)](_0xdad3d3))return;const _0x5af5b9=_0x3d97b1[_0x134fc3(0x227)](_0xdad3d3);logger[_0x134fc3(0x218)](_0x134fc3(0x237)+_0x5af5b9['length']+_0x134fc3(0x266)+_0xdad3d3);for(const _0x5c2ee5 of _0x5af5b9){try{const _0xd10d75=await this[_0x134fc3(0x20a)](_0x3d97b1,_0x5c2ee5[_0x134fc3(0x1d9)],_0x5c2ee5[_0x134fc3(0x280)],_0x5c2ee5[_0x134fc3(0x27d)]);_0xd10d75&&_0x366fea[_0x134fc3(0x27a)](Object['keys'](_0xd10d75)[_0x134fc3(0x26a)],0x0)&&_0x3d97b1[_0x134fc3(0x25c)](_0xd10d75),await this[_0x134fc3(0x1d7)](_0x3d97b1,_0x5c2ee5['testFrameworkState'],_0x5c2ee5[_0x134fc3(0x280)],_0x5c2ee5[_0x134fc3(0x27d)]);}catch(_0x5d0e40){logger[_0x134fc3(0x261)]('Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20'+_0xdad3d3+',\x20error:\x20'+_0x5d0e40);}}_0x3d97b1['removePendingHooks'](_0xdad3d3),logger[_0x134fc3(0x218)]('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0xdad3d3);}}module[a89_0x2527d5(0x21b)]=CucumberTestFramework;
|