browserstack-node-sdk 1.64.3 → 1.65.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/generated/sdk-messages-accessibility_pb.d.ts +70 -0
- package/generated/sdk-messages-accessibility_pb.js +545 -1
- package/generated/sdk_grpc_pb.d.ts +5 -0
- package/generated/sdk_grpc_pb.js +33 -0
- package/package.json +3 -3
- 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/node-generic/client.js +1 -0
- 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/reporterArgs.js +1 -0
- 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/nodeGenericTestFramework.js +1 -0
- 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/bin/v2/cliUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
function a85_0x16a6(_0x6fc326,_0x28f093){const _0x48fe27=a85_0x48fe();return a85_0x16a6=function(_0x16a66f,_0x21f4dd){_0x16a66f=_0x16a66f-0xaf;let _0x1359d9=_0x48fe27[_0x16a66f];return _0x1359d9;},a85_0x16a6(_0x6fc326,_0x28f093);}const a85_0x3a807f=a85_0x16a6;function a85_0x48fe(){const _0xbd1724=['downloadLatestBinary','getAutomationFrameworkDetail','SDK_CLI_CHECK_UPDATE','sgFMp','XkpyG','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','statSync','tyiat','plyhS','qtHix','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','url','closeSync','basename','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','skipSessionName','join','platform','AjeJz','MuWHh','getCliDir','warn','SZgqy','./state/testFrameworkState.js','testFrameworkDetail','fileName','2lBLwEU','exports','Resolved\x20binary\x20path:\x20','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','error','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','DOWNLOAD_HTTP','SDK_CLI_DOWNLOAD','22253DpriiN','yauzl','CADYB','cznWw','BROWSERSTACK_CLI_ENV','env','statusCode','5126268pYrtec','fnjxa','getWritableDir','uhWCz','IblHs','cli_version','testContextOptions','getSdkLanguage','NerNq','CLI\x20version\x20found\x20despite\x20error:\x20\x22','MjkRK','GKliD','getCLIParamsForDevEnv','preserveStatusCodeOnError','ZDRUP','cwd','./state/automationFrameworkState.js','end','vfkhu','close','node','YbOpA','VFiPb','info','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','map','code','mtime','acAUK','concat','data','BROWSERSTACK_BINARY_URL','aMooV','smorH','timeout','Binary\x20is\x20busy:\x20','HleGg','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','getSdkVersion','yQeUD','HVdKG','275QjkLNx','lZUXo','mergeObject','../../helpers/helper','BcguZ','difTI','once','split','TfMnV','0755','./state/hookState.js','KMkvj','PrrIr','shouldSkipSessionStatus','SHELL_EXECUTE_ERROR','952461uRtDhn','DALJB','entries','hLpiB','tAZAw','./instances/testFrameworkInstance.js','object','Configuring\x20Cli\x20path.','util','dbebj','../../helpers/performance/performance-tester.js','openReadStream','OVIpP','runShellCommand','0|4|2|1|3','\x20already\x20exists','VVSVm','version','HTTP\x20','lazyEntries','vZkrf','includes','isBinaryBusy','Development\x20Cli\x20Path:\x20','existsSync','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','downloadFileStream','aQLrN','.zip','QEpEk','./framework/constants/testFrameworkConstants.js','unlink','format','Resolving\x20with\x20stdout:\x20\x22','nujjw','YadOL','setupCliPath','../../helpers/performance/constants','setFrameworkDetail','chmod','USvjn','wUxip','\x20version','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','Failed\x20to\x20delete\x20zip\x20file:\x20','CLIUtils','NXPQK','46088CFPFgV','tezrm','dvckX','1432AWjVZc','filter','Jcbvd','777740eCfDXp','.tmp.','open','vMIDY','getExistingCliPath','startsWith','SYmkX','pid','child_process','trim','UeGMd','path','jTZqI','RGSsp','Setting\x20required\x20permissions\x20to\x20','hvgHR','910lnVptX','test','worker_threads','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','binary-','../utils/apiUtilityMethods.js','../../helpers/test-observability/utils.js','getHookRegistryKey','checkAndUpdateCli','getCurrentInstanceName','entry','tOmhE','shouldSkipSessionName','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','stringify','length','../../helpers/utilities','181266DYrElT','homedir','unix:/tmp/sdk-platform-','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','tmpdir','debug','VaCQK','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','automationFrameworkDetail','xnLze','createWriteStream','Folder\x20','filePath','parse','cKzzZ','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','367949yoltmP','isArray','readdirSync','message','follow-redirects','readEntry','ZIAya','skipSessionStatus','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','../utils/constants','get','pipe','downloaded_file_','TQgJc','ZVisj',',\x20automationFramework=','\x20from\x20'];a85_0x48fe=function(){return _0xbd1724;};return a85_0x48fe();}(function(_0x43d40e,_0x49b22f){const _0x5e7259=a85_0x16a6,_0x372f98=_0x43d40e();while(!![]){try{const _0x5b59ad=parseInt(_0x5e7259(0x18a))/0x1*(-parseInt(_0x5e7259(0xd9))/0x2)+parseInt(_0x5e7259(0xea))/0x3+parseInt(_0x5e7259(0x158))/0x4+-parseInt(_0x5e7259(0x113))/0x5*(parseInt(_0x5e7259(0x17a))/0x6)+-parseInt(_0x5e7259(0x152))/0x7*(-parseInt(_0x5e7259(0x155))/0x8)+parseInt(_0x5e7259(0x122))/0x9+-parseInt(_0x5e7259(0x168))/0xa*(parseInt(_0x5e7259(0xe3))/0xb);if(_0x5b59ad===_0x49b22f)break;else _0x372f98['push'](_0x372f98['shift']());}catch(_0x2f8e96){_0x372f98['push'](_0x372f98['shift']());}}}(a85_0x48fe,0xedc55));const fs=require('fs'),os=require('os'),url=require('url'),path=require(a85_0x3a807f(0x163)),{exec}=require(a85_0x3a807f(0x160)),{https}=require(a85_0x3a807f(0xb2)),yauzl=require(a85_0x3a807f(0xe4)),util=require(a85_0x3a807f(0x12a)),{getFrameworkVersion}=require(a85_0x3a807f(0x16e)),{threadId}=require(a85_0x3a807f(0x16a)),PerformanceTester=require(a85_0x3a807f(0x12c)),{EVENTS:PerformanceEvents}=require(a85_0x3a807f(0x148)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x3a807f(0x179)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x3a807f(0x116)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x3a807f(0xb7)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a85_0x3a807f(0x127)),HookState=require(a85_0x3a807f(0x11d)),TestFrameworkState=require(a85_0x3a807f(0xd6)),AutomationFrameworkState=require(a85_0x3a807f(0xfa)),TestFrameworkConstants=require(a85_0x3a807f(0x141)),logger=createClassLogger(a85_0x3a807f(0x150)),{getBStackAPIUrl}=require(a85_0x3a807f(0x16d));class CLIUtils{[a85_0x3a807f(0x182)]={};[a85_0x3a807f(0xd7)]={};static['isDevelopmentEnv'](){const _0x4b0964=a85_0x3a807f,_0x1a5db2={};_0x1a5db2[_0x4b0964(0xf4)]=function(_0x1a9a19,_0x279dba){return _0x1a9a19===_0x279dba;},_0x1a5db2[_0x4b0964(0x180)]='development';const _0xd5c206=_0x1a5db2;return _0xd5c206[_0x4b0964(0xf4)](process[_0x4b0964(0xe8)][_0x4b0964(0xe7)],_0xd5c206[_0x4b0964(0x180)]);}static[a85_0x3a807f(0xf6)](){const _0x265266=a85_0x3a807f,_0xd25a00={};return _0xd25a00['id']=process[_0x265266(0xe8)][_0x265266(0xe7)],_0xd25a00['listen']=_0x265266(0x17c)+process[_0x265266(0xe8)]['BROWSERSTACK_CLI_ENV']+'.sock',_0xd25a00;}static['getSdkVersion'](){const _0x14f116=a85_0x3a807f,_0x4fdb2e={'lGXNQ':function(_0x3b650f,_0x31d608){return _0x3b650f(_0x31d608);},'difTI':'../../../package.json'};return _0x4fdb2e['lGXNQ'](require,_0x4fdb2e[_0x14f116(0x118)])[_0x14f116(0x133)];}static[a85_0x3a807f(0xf1)](){const _0x133fd7=a85_0x3a807f,_0x52975c={};_0x52975c[_0x133fd7(0x153)]=_0x133fd7(0xfe);const _0x33ae2b=_0x52975c;return _0x33ae2b['tezrm'];}static async[a85_0x3a807f(0x147)](_0x3b1069){const _0x44a946=a85_0x3a807f,_0x4aa9c1={'NtoAV':_0x44a946(0x129),'VVSVm':function(_0x36ab36,_0x442575){return _0x36ab36(_0x442575);},'gZGEM':function(_0x4f1b2b,_0x52996e){return _0x4f1b2b(_0x52996e);},'FxZcJ':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x44a946(0x17f)](_0x4aa9c1['NtoAV']);const _0x5960fb=process[_0x44a946(0xe8)]['SDK_CLI_BIN_PATH'];if(!_0x4aa9c1[_0x44a946(0x132)](isNullOrEmpty,_0x5960fb))return logger[_0x44a946(0x17f)](_0x44a946(0x139)+_0x5960fb),_0x5960fb;try{const _0x24b729=this[_0x44a946(0xd3)]();if(_0x4aa9c1['gZGEM'](isNullOrEmpty,_0x24b729))throw new Error(_0x4aa9c1['FxZcJ']);const _0x2d80a2=this[_0x44a946(0x15c)](_0x24b729),_0x52573b=await this[_0x44a946(0x170)](_0x2d80a2,_0x24b729,_0x3b1069);return logger['debug'](_0x44a946(0xdb)+_0x52573b),_0x52573b;}catch(_0x510459){logger['debug'](_0x44a946(0xb6)+util[_0x44a946(0x143)](_0x510459));}return null;}static async[a85_0x3a807f(0x170)](_0x1b28d4,_0x3f1123,_0x8b1d5){const _0x1c58de=a85_0x3a807f,_0x4b47c2={'QEpEk':function(_0x490993){return _0x490993();},'XkpyG':function(_0x4b441f,_0x39b3fb){return _0x4b441f(_0x39b3fb);},'xnLze':function(_0x85262f,_0x4065,_0x5ee9ff){return _0x85262f(_0x4065,_0x5ee9ff);},'AjeJz':_0x1c58de(0x108),'smorH':_0x1c58de(0xca),'tAZAw':function(_0x4524e3,_0x4adcfc,_0x17387d){return _0x4524e3(_0x4adcfc,_0x17387d);}};PerformanceTester['start'](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);try{logger[_0x1c58de(0x101)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x1b28d4);const _0x5a7a65=_0x4b47c2[_0x1c58de(0x140)](getHostInfo),_0x36e120={'sdk_version':CLIUtils[_0x1c58de(0x110)](),'os':_0x5a7a65[_0x1c58de(0xd0)],'os_arch':_0x5a7a65['arch'],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x4b47c2[_0x1c58de(0xc3)](isNullOrEmpty,_0x1b28d4)&&(_0x36e120[_0x1c58de(0xef)]=await this['runShellCommand'](_0x1b28d4+_0x1c58de(0x14d)));const _0x1315ad=await this['requestToUpdateCLI'](_0x36e120,_0x8b1d5);process['env'][_0x1c58de(0x109)]&&(logger[_0x1c58de(0x101)](_0x1c58de(0xc4)+process[_0x1c58de(0xe8)][_0x1c58de(0x109)]),_0x1315ad[_0x1c58de(0x108)]['url']=process[_0x1c58de(0xe8)]['BROWSERSTACK_BINARY_URL']);if(_0x4b47c2[_0x1c58de(0x183)](nestedKeyValue,_0x1315ad,[_0x4b47c2[_0x1c58de(0xd1)],_0x4b47c2['smorH']])){logger['debug'](_0x1c58de(0x16b)+_0x36e120[_0x1c58de(0xef)]);if(!_0x4b47c2[_0x1c58de(0xc3)](isNullOrEmpty,_0x1b28d4)&&this[_0x1c58de(0x138)](_0x1b28d4))return logger[_0x1c58de(0xd4)](_0x1c58de(0x102)+_0x1b28d4),_0x1b28d4;return await this[_0x1c58de(0xbf)](_0x4b47c2[_0x1c58de(0x126)](nestedKeyValue,_0x1315ad,[_0x4b47c2[_0x1c58de(0xd1)],_0x4b47c2[_0x1c58de(0x10b)]]),_0x3f1123);}return _0x1b28d4;}finally{PerformanceTester['end'](PerformanceEvents[_0x1c58de(0xc1)]);}}static[a85_0x3a807f(0xd3)](){const _0x228c87=a85_0x3a807f,_0x2bf81e={'dvckX':function(_0x3d25c7,_0x4062d2){return _0x3d25c7(_0x4062d2);},'SYmkX':_0x228c87(0xe0),'rAoHA':'cli'},_0x584e31=this[_0x228c87(0xec)]();try{if(_0x2bf81e[_0x228c87(0x154)](isNullOrEmpty,_0x584e31))throw new Error(_0x2bf81e[_0x228c87(0x15e)]);const _0x1d676b=path['join'](_0x584e31,_0x2bf81e['rAoHA']);return!fs[_0x228c87(0x13a)](_0x1d676b)&&_0x2bf81e['dvckX'](createDir,_0x1d676b),_0x1d676b;}catch(_0x3c88e2){logger['debug'](_0x228c87(0x17d)+util[_0x228c87(0x143)](_0x3c88e2));}}static[a85_0x3a807f(0xec)](){const _0x26b338=a85_0x3a807f,_0x425a54={'EGtTG':'.browserstack','lZUXo':function(_0x589682,_0x5689c4){return _0x589682(_0x5689c4);},'NXPQK':function(_0xac55c,_0x20e0ea){return _0xac55c(_0x20e0ea);},'EGlrZ':function(_0x195738,_0x30a77e){return _0x195738(_0x30a77e);},'vfkhu':function(_0x428ef9,_0x3ec3c4){return _0x428ef9(_0x3ec3c4);}},_0xd453d8=[process['env']['BROWSERSTACK_FILES_DIR'],path['join'](os[_0x26b338(0x17b)](),_0x425a54['EGtTG']),path[_0x26b338(0xcf)](os[_0x26b338(0x17e)](),_0x425a54['EGtTG'])];for(const _0x4e3507 of _0xd453d8){if(_0x425a54[_0x26b338(0x114)](isNullOrEmpty,_0x4e3507))continue;try{if(fs['existsSync'](_0x4e3507)){logger[_0x26b338(0x17f)](_0x26b338(0x185)+_0x4e3507+_0x26b338(0x131));if(!_0x425a54[_0x26b338(0x114)](isModifiable,_0x4e3507)){logger[_0x26b338(0x17f)](_0x26b338(0x166)+_0x4e3507);const _0x1278f5=_0x425a54[_0x26b338(0x151)](setReadWriteExecuteAccess,_0x4e3507);if(!_0x425a54['NXPQK'](isTrue,_0x1278f5)){logger['warn']('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x4e3507);continue;}}}else{logger[_0x26b338(0x17f)]('Folder\x20does\x20not\x20exist:\x20'+_0x4e3507),_0x425a54['EGlrZ'](createDir,_0x4e3507),logger[_0x26b338(0x17f)](_0x26b338(0x166)+_0x4e3507);const _0x464dcc=_0x425a54[_0x26b338(0xfc)](setReadWriteExecuteAccess,_0x4e3507);!_0x425a54['EGlrZ'](isTrue,_0x464dcc)&&logger[_0x26b338(0xd4)](_0x26b338(0x13c)+_0x4e3507);}return _0x4e3507;}catch(_0x5547ba){logger[_0x26b338(0xdd)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x26b338(0x143)](_0x5547ba));}}return null;}static[a85_0x3a807f(0x15c)](_0xd0b380){const _0xf9552b=a85_0x3a807f,_0x5109c7={};_0x5109c7[_0xf9552b(0xb4)]=function(_0x4cb7c2,_0x16ee4c){return _0x4cb7c2>_0x16ee4c;},_0x5109c7[_0xf9552b(0xe5)]=function(_0x44e577,_0x4cbd3e){return _0x44e577>_0x4cbd3e;};const _0x309e97=_0x5109c7;try{if(!fs[_0xf9552b(0x13a)](_0xd0b380)||!fs[_0xf9552b(0xc5)](_0xd0b380)['isDirectory']())return'';const _0x2083d2=fs[_0xf9552b(0xb0)](_0xd0b380)[_0xf9552b(0x103)](_0x5f1eda=>path[_0xf9552b(0xcf)](_0xd0b380,_0x5f1eda))[_0xf9552b(0x156)](_0x451122=>fs[_0xf9552b(0xc5)](_0x451122)['isFile']()&&path[_0xf9552b(0xcc)](_0x451122)[_0xf9552b(0x15d)](_0xf9552b(0x16c)));if(_0x309e97[_0xf9552b(0xe5)](_0x2083d2[_0xf9552b(0x178)],0x0)){const _0x524f0e=_0x2083d2[_0xf9552b(0x103)](_0x1a60fb=>({'filePath':_0x1a60fb,'mtime':fs[_0xf9552b(0xc5)](_0x1a60fb)[_0xf9552b(0x105)]}))['reduce']((_0x57b430,_0x35c9f9)=>{const _0x4394f7=_0xf9552b;if(!_0x57b430||!_0x57b430[_0x4394f7(0x105)])return _0x35c9f9;if(_0x309e97['ZIAya'](_0x35c9f9[_0x4394f7(0x105)],_0x57b430[_0x4394f7(0x105)]))return _0x35c9f9;return _0x57b430;},{});return _0x524f0e?_0x524f0e[_0xf9552b(0x186)]:'';}return'';}catch(_0x7ee797){return logger[_0xf9552b(0xdd)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0xf9552b(0x143)](_0x7ee797)),'';}}static ['requestToUpdateCLI']=async(_0x1a914e,_0x1f32af)=>{const _0x3c8320=a85_0x3a807f,_0x4afb47={'oCaXR':function(_0x396a3a,_0x398b74,_0x329527,_0x371eb2,_0x28d15e){return _0x396a3a(_0x398b74,_0x329527,_0x371eb2,_0x28d15e);},'VFzYS':'GET'},_0x18e08c={};_0x18e08c['qs']=_0x1a914e,_0x18e08c[_0x3c8320(0xf7)]=!![];const _0x1dca52=await _0x4afb47['oCaXR'](nodeRequest,_0x4afb47['VFzYS'],UPDATED_CLI_ENDPOINT,_0x18e08c,_0x1f32af);return logger['debug']('response\x20'+JSON[_0x3c8320(0x177)](_0x1dca52)),_0x1dca52;};static[a85_0x3a807f(0x138)](_0xed377c){const _0x55edb6=a85_0x3a807f;try{const _0x4d0ba7=fs['openSync'](_0xed377c,'r+');return fs[_0x55edb6(0xcb)](_0x4d0ba7),![];}catch(_0x3311ee){if(BINARY_BUSY_ERROR_CODES[_0x55edb6(0x137)](_0x3311ee[_0x55edb6(0x104)]))return logger[_0x55edb6(0x17f)](_0x55edb6(0x10d)+_0xed377c),!![];return logger['debug']('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x3311ee['message']),![];}}static[a85_0x3a807f(0x12f)](_0x190333,_0x388ca1=''){const _0x325230=a85_0x3a807f,_0x227bbb={'JPYtK':_0x325230(0x133),'ZVisj':function(_0x36b82d,_0x4b6385){return _0x36b82d(_0x4b6385);},'YbOpA':function(_0x4885b0,_0xb690e6){return _0x4885b0(_0xb690e6);},'wUxip':_0x325230(0x121),'dbebj':function(_0x27fca5,_0x7f6e68){return _0x27fca5(_0x7f6e68);},'RGSsp':function(_0x49a770,_0x2b43fa,_0x5cb54d,_0x3cfc19){return _0x49a770(_0x2b43fa,_0x5cb54d,_0x3cfc19);},'ytMdZ':_0x325230(0xdd)};return new Promise((_0x495bc0,_0x1b3e4c)=>{const _0x523c4f=_0x325230,_0x48886e={};_0x48886e[_0x523c4f(0xf9)]=_0x388ca1,_0x48886e[_0x523c4f(0x10c)]=0x1388;const _0x2ab08d=_0x227bbb[_0x523c4f(0x165)](exec,_0x190333,_0x48886e,(_0x2dde42,_0x512e55,_0x1218e7)=>{const _0xb53ace=_0x523c4f;if(_0x2dde42){if(_0x190333[_0xb53ace(0x137)](_0x227bbb['JPYtK'])&&(_0x512e55['trim']()||_0x1218e7[_0xb53ace(0x161)]())){const _0x4ae10d=_0x512e55['trim']()||_0x1218e7[_0xb53ace(0x161)]();logger[_0xb53ace(0x17f)](_0xb53ace(0xf3)+_0x4ae10d+'\x22'),_0x227bbb[_0xb53ace(0xbc)](_0x495bc0,_0x4ae10d);}else _0x227bbb[_0xb53ace(0xff)](_0x495bc0,_0x1218e7[_0xb53ace(0x161)]()||_0x227bbb['wUxip']);}else logger[_0xb53ace(0x17f)](_0xb53ace(0x144)+_0x512e55['trim']()+'\x22'),_0x227bbb[_0xb53ace(0x12b)](_0x495bc0,_0x512e55[_0xb53ace(0x161)]());});_0x2ab08d['on'](_0x227bbb['ytMdZ'],()=>{const _0x12e5b9=_0x523c4f;_0x227bbb[_0x12e5b9(0xff)](_0x495bc0,_0x227bbb[_0x12e5b9(0x14c)]);});});}static [a85_0x3a807f(0xbf)]=async(_0x59e436,_0x553eb8)=>{const _0x8c1f57=a85_0x3a807f,_0x1fb58c={'IblHs':function(_0x83c989,_0x2078ac){return _0x83c989(_0x2078ac);},'KMkvj':function(_0x87c161,_0x8e5660){return _0x87c161>=_0x8e5660;},'hvgHR':_0x8c1f57(0xe1),'tbDLB':_0x8c1f57(0x14e),'cKzzZ':'error','acAUK':_0x8c1f57(0x181),'yQeUD':function(_0x2c34ec,_0x778dd8){return _0x2c34ec(_0x778dd8);},'GKliD':_0x8c1f57(0xdf),'NerNq':function(_0x50053c,_0x2b4316){return _0x50053c(_0x2b4316);},'TQgJc':function(_0x3273ee,_0x15e76d){return _0x3273ee(_0x15e76d);},'HleGg':'Failed\x20to\x20download\x20SDK\x20binary:\x20%s'};PerformanceTester['start'](PerformanceEvents[_0x8c1f57(0xe2)]),logger[_0x8c1f57(0x17f)]('Downloading\x20SDK\x20binary\x20from:\x20'+_0x59e436);try{const _0xd6d85c=url[_0x8c1f57(0x187)](_0x59e436),_0x217b95=path[_0x8c1f57(0xcf)](_0x553eb8,_0x8c1f57(0xba)+process[_0x8c1f57(0x15f)]+_0x8c1f57(0x13f)),_0x33e6fc=fs[_0x8c1f57(0x184)](_0x217b95);return new Promise((_0x2abf87,_0x34853c)=>{const _0x1a58a5=_0x8c1f57,_0x1d48ee={'YadOL':_0x1fb58c[_0x1a58a5(0x106)],'DALJB':function(_0x562335,_0x39b7e2){const _0x3bac3c=_0x1a58a5;return _0x1fb58c[_0x3bac3c(0x111)](_0x562335,_0x39b7e2);},'TfMnV':_0x1fb58c[_0x1a58a5(0xf5)],'aMooV':function(_0x49cb13,_0x1e567b){const _0x4f7231=_0x1a58a5;return _0x1fb58c[_0x4f7231(0xf2)](_0x49cb13,_0x1e567b);},'plyhS':function(_0x5d7ab1,_0xbe15f0){const _0x2770ec=_0x1a58a5;return _0x1fb58c[_0x2770ec(0xbb)](_0x5d7ab1,_0xbe15f0);}};https[_0x1a58a5(0xb8)](_0xd6d85c,function(_0x4e5e36){const _0x3b860a=_0x1a58a5,_0xed8659={'PrrIr':function(_0x4f6eab,_0x331b50){const _0xad5a4d=a85_0x16a6;return _0x1fb58c[_0xad5a4d(0xee)](_0x4f6eab,_0x331b50);}},_0x47711c=null;if(_0x4e5e36['statusCode']&&_0x1fb58c[_0x3b860a(0x11e)](_0x4e5e36[_0x3b860a(0xe9)],0x190)){const _0x35d54e=new Error('SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20'+_0x4e5e36[_0x3b860a(0xe9)]+_0x3b860a(0xbe)+_0x59e436);_0x35d54e[_0x3b860a(0x104)]=_0x1fb58c[_0x3b860a(0x167)],_0x35d54e[_0x3b860a(0xe9)]=_0x4e5e36[_0x3b860a(0xe9)],logger['error'](util[_0x3b860a(0x143)](_0x1fb58c['tbDLB'],_0x4e5e36['statusCode'])),PerformanceTester[_0x3b860a(0xfb)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],_0x3b860a(0x134)+_0x4e5e36[_0x3b860a(0xe9)]),_0x4e5e36['resume'](),_0x33e6fc['destroy'](),fs[_0x3b860a(0x142)](_0x217b95,()=>{}),_0x1fb58c[_0x3b860a(0xee)](_0x34853c,_0x35d54e);return;}_0x4e5e36[_0x3b860a(0xb9)](_0x33e6fc),_0x4e5e36['on'](_0x1fb58c[_0x3b860a(0x188)],function(_0x4059df){const _0x305725=_0x3b860a;logger['error'](util[_0x305725(0x143)](_0x1d48ee[_0x305725(0x146)],_0x4059df)),PerformanceTester[_0x305725(0xfb)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x305725(0x143)](_0x4059df)),_0x1d48ee[_0x305725(0x123)](_0x34853c,_0x4059df);}),_0x33e6fc['on'](_0x1fb58c[_0x3b860a(0x188)],function(_0x63aa2a){const _0x11aa5d=_0x3b860a;logger['error'](util[_0x11aa5d(0x143)](_0x1d48ee[_0x11aa5d(0x11b)],_0x63aa2a)),PerformanceTester[_0x11aa5d(0xfb)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x11aa5d(0x143)](_0x63aa2a)),_0x1d48ee[_0x11aa5d(0x123)](_0x34853c,_0x63aa2a);}),CLIUtils[_0x3b860a(0x13d)](_0x33e6fc,_0x47711c,_0x217b95,_0x553eb8,_0x1a3f11=>{const _0x4b11a8=_0x3b860a;PerformanceTester[_0x4b11a8(0xfb)](PerformanceEvents[_0x4b11a8(0xe2)]),_0xed8659[_0x4b11a8(0x11f)](_0x2abf87,_0x1a3f11);},_0x1637fc=>{const _0x4b933c=_0x3b860a;PerformanceTester[_0x4b933c(0xfb)](PerformanceEvents[_0x4b933c(0xe2)],![],util[_0x4b933c(0x143)](_0x1637fc)),_0x1d48ee[_0x4b933c(0x10a)](_0x34853c,_0x1637fc);});})['on'](_0x1fb58c[_0x1a58a5(0x188)],function(_0x2f235d){const _0x86633c=_0x1a58a5;logger['error'](_0x86633c(0xcd)+util['format'](_0x2f235d)),PerformanceTester['end'](PerformanceEvents[_0x86633c(0xe2)],![],util[_0x86633c(0x143)](_0x2f235d)),_0x1d48ee[_0x86633c(0xc7)](_0x34853c,_0x2f235d);});});}catch(_0x336201){PerformanceTester[_0x8c1f57(0xfb)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x336201)),logger['error'](util[_0x8c1f57(0x143)](_0x1fb58c[_0x8c1f57(0x10e)],_0x336201));throw _0x336201;}};static['downloadFileStream'](_0x77b2c6,_0x52131e,_0x1d8377,_0x1ac871,_0x2c14f1,_0x2ad34b){const _0x33871b=a85_0x3a807f,_0xabe3f0={'BcguZ':'close','uhWCz':function(_0x4ba239,_0x3edb31){return _0x4ba239(_0x3edb31);},'DUyRc':_0x33871b(0xfb),'hjUlw':function(_0x24c578,_0x3c2374){return _0x24c578!==_0x3c2374;},'hobwJ':_0x33871b(0xdd),'XIegq':'EXDEV','UeGMd':_0x33871b(0x11c),'aQLrN':_0x33871b(0x172)};_0x77b2c6['on'](_0xabe3f0[_0x33871b(0x117)],function(){const _0x3abaf5=_0x33871b,_0x1a3a15={'HVdKG':_0xabe3f0[_0x3abaf5(0x117)],'sgFMp':function(_0x58b58a,_0x366189){const _0x15c12a=_0x3abaf5;return _0xabe3f0[_0x15c12a(0xed)](_0x58b58a,_0x366189);},'ZDRUP':_0xabe3f0['DUyRc'],'jTZqI':function(_0x4d91c0,_0x5e2b33){return _0xabe3f0['hjUlw'](_0x4d91c0,_0x5e2b33);},'tOmhE':function(_0xb8b481,_0x37c8b5){const _0x469157=_0x3abaf5;return _0xabe3f0[_0x469157(0xed)](_0xb8b481,_0x37c8b5);},'SZgqy':_0xabe3f0['hobwJ'],'LZFBR':_0xabe3f0['XIegq'],'fnjxa':_0xabe3f0[_0x3abaf5(0x162)],'TQsSu':function(_0x2e0a6b,_0xbedd73){return _0xabe3f0['uhWCz'](_0x2e0a6b,_0xbedd73);},'cznWw':function(_0x501ae9,_0x33e121){const _0x42b26d=_0x3abaf5;return _0xabe3f0[_0x42b26d(0xed)](_0x501ae9,_0x33e121);},'HvEwY':_0xabe3f0[_0x3abaf5(0x13e)]},_0x5558a4={};_0x5558a4[_0x3abaf5(0x135)]=!![],yauzl[_0x3abaf5(0x15a)](_0x1d8377,_0x5558a4,function(_0x4c2443,_0x39b0aa){const _0x145167=_0x3abaf5,_0x1103ab={'vZkrf':function(_0xdf4191,_0x27942f){return _0x1a3a15['TQsSu'](_0xdf4191,_0x27942f);},'qOeCf':function(_0x4d9fe5,_0x199180){const _0x360b9f=a85_0x16a6;return _0x1a3a15[_0x360b9f(0xc2)](_0x4d9fe5,_0x199180);}};if(_0x4c2443){_0x1a3a15[_0x145167(0xe6)](_0x2ad34b,_0x4c2443);return;}_0x39b0aa[_0x145167(0xb3)](),_0x39b0aa['on'](_0x1a3a15['HvEwY'],_0x304d45=>{const _0x33d713=_0x145167,_0x402eef={'nbRbl':_0x1a3a15[_0x33d713(0x112)],'MuWHh':function(_0x296bdd,_0x278d7d){return _0x1a3a15['sgFMp'](_0x296bdd,_0x278d7d);},'vMIDY':_0x1a3a15[_0x33d713(0xf8)]};if(/\/$/['test'](_0x304d45[_0x33d713(0xd8)])){_0x39b0aa[_0x33d713(0xb3)]();return;}!_0x52131e&&(_0x52131e=_0x304d45['fileName']);if(_0x1a3a15[_0x33d713(0x164)](_0x304d45['fileName'],_0x52131e))_0x39b0aa[_0x33d713(0xb3)]();else{const _0x2793b4=_0x304d45[_0x33d713(0xd8)],_0x181988=path[_0x33d713(0xcf)](_0x1ac871,_0x2793b4+_0x33d713(0x159)+process[_0x33d713(0x15f)]);let _0x1032f2;try{_0x1032f2=fs[_0x33d713(0x184)](_0x181988);}catch(_0x482c49){if(BINARY_BUSY_ERROR_CODES[_0x33d713(0x137)](_0x482c49[_0x33d713(0x104)])){const _0x40d35f=path[_0x33d713(0xcf)](_0x1ac871,_0x2793b4);if(fs[_0x33d713(0x13a)](_0x40d35f)){logger[_0x33d713(0xd4)](_0x33d713(0x176)+_0x2793b4),fs[_0x33d713(0x142)](_0x1d8377,_0x4cf7a9=>{const _0x1415b5=_0x33d713;_0x4cf7a9&&logger[_0x1415b5(0xd4)](_0x1415b5(0x14f)+_0x1d8377);}),_0x1a3a15['tOmhE'](_0x2c14f1,_0x40d35f);return;}logger['warn'](_0x33d713(0x10f)+_0x2793b4);}_0x1a3a15[_0x33d713(0x173)](_0x2ad34b,_0x482c49);return;}_0x1032f2['on'](_0x1a3a15[_0x33d713(0xd5)],_0x2a6ad9=>{const _0x425e13=_0x33d713;if(BINARY_BUSY_ERROR_CODES[_0x425e13(0x137)](_0x2a6ad9[_0x425e13(0x104)])){const _0x3db924=path[_0x425e13(0xcf)](_0x1ac871,_0x2793b4);_0x1032f2[_0x425e13(0xfd)](),fs[_0x425e13(0x13a)](_0x3db924)?(logger['warn']('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x2a6ad9[_0x425e13(0xb1)]),_0x39b0aa['close'](),fs['unlink'](_0x1d8377,_0x145861=>{const _0x3e90fd=_0x425e13;_0x145861&&logger[_0x3e90fd(0xd4)](_0x3e90fd(0x14f)+_0x1d8377);}),_0x1103ab[_0x425e13(0x136)](_0x2c14f1,_0x3db924)):(logger[_0x425e13(0xd4)](_0x425e13(0x189)+_0x2a6ad9[_0x425e13(0xb1)]),fs[_0x425e13(0x142)](_0x181988,()=>{}),_0x1103ab['vZkrf'](_0x2ad34b,_0x2a6ad9));}else fs[_0x425e13(0x142)](_0x181988,()=>{}),_0x1103ab[_0x425e13(0x136)](_0x2ad34b,_0x2a6ad9);}),_0x39b0aa[_0x33d713(0x12d)](_0x304d45,function(_0x87b728,_0x3534cc){const _0x3f2000=_0x33d713,_0x710439={};_0x710439[_0x3f2000(0xc6)]=_0x402eef['nbRbl'];const _0x5cb55d=_0x710439;if(_0x87b728){fs['unlink'](_0x181988,()=>{}),_0x402eef[_0x3f2000(0xd2)](_0x2ad34b,_0x87b728);return;}_0x3534cc['on'](_0x402eef[_0x3f2000(0x15b)],function(){const _0x24311c=_0x3f2000;_0x1032f2[_0x24311c(0xfb)](),_0x1032f2['on'](_0x5cb55d[_0x24311c(0xc6)],function(){_0x39b0aa['readEntry']();});}),_0x3534cc[_0x3f2000(0xb9)](_0x1032f2);});}}),_0x39b0aa['on'](_0x1a3a15[_0x145167(0xd5)],_0x2947e5=>{_0x1103ab['qOeCf'](_0x2ad34b,_0x2947e5);}),_0x39b0aa[_0x145167(0x119)](_0x1a3a15[_0x145167(0xf8)],()=>{const _0x1abdfe=_0x145167,_0x34e3be={'qtHix':function(_0x32dfdc,_0x22eeb8){const _0x127f4f=a85_0x16a6;return _0x1a3a15[_0x127f4f(0x164)](_0x32dfdc,_0x22eeb8);},'hLpiB':_0x1a3a15['LZFBR'],'nujjw':function(_0x5aaf7a,_0x432053){const _0x1efc6a=a85_0x16a6;return _0x1a3a15[_0x1efc6a(0x173)](_0x5aaf7a,_0x432053);}};fs['unlink'](_0x1d8377,_0x13cd8a=>{const _0x53b2f9=a85_0x16a6;_0x13cd8a&&logger[_0x53b2f9(0xd4)](_0x53b2f9(0x14f)+_0x1d8377);});const _0x1ebcbb=path[_0x1abdfe(0xcf)](_0x1ac871,_0x52131e+_0x1abdfe(0x159)+process[_0x1abdfe(0x15f)]),_0x3090bc=path['join'](_0x1ac871,_0x52131e);fs[_0x1abdfe(0x14a)](_0x1ebcbb,_0x1a3a15[_0x1abdfe(0xeb)],function(_0x7eca8){if(_0x7eca8){_0x39b0aa['close'](),fs['unlink'](_0x1ebcbb,()=>{}),_0x1103ab['qOeCf'](_0x2ad34b,_0x7eca8);return;}fs['rename'](_0x1ebcbb,_0x3090bc,function(_0x58f2d7){const _0x1d0571=a85_0x16a6;if(_0x58f2d7){if(_0x34e3be[_0x1d0571(0xc8)](_0x58f2d7[_0x1d0571(0x104)],_0x34e3be[_0x1d0571(0x125)])){_0x39b0aa[_0x1d0571(0xfd)](),fs[_0x1d0571(0x142)](_0x1ebcbb,()=>{}),_0x34e3be[_0x1d0571(0x145)](_0x2ad34b,_0x58f2d7);return;}logger['warn'](_0x1d0571(0xdc)+_0x58f2d7[_0x1d0571(0xb1)]);try{fs['copyFileSync'](_0x1ebcbb,_0x3090bc);}catch(_0x2b7a4c){_0x39b0aa['close'](),fs[_0x1d0571(0x142)](_0x1ebcbb,()=>{}),_0x34e3be[_0x1d0571(0x145)](_0x2ad34b,_0x2b7a4c);return;}fs['unlink'](_0x1ebcbb,_0x174018=>{const _0x1bd08c=_0x1d0571;_0x174018&&logger[_0x1bd08c(0xd4)](_0x1bd08c(0x13b)+_0x174018[_0x1bd08c(0xb1)]);});}_0x39b0aa[_0x1d0571(0xfd)](),_0x34e3be['nujjw'](_0x2c14f1,_0x3090bc);});});});});});}static['getTestFrameworkDetail'](){const _0x4efd6b=a85_0x3a807f;if(process[_0x4efd6b(0xe8)][_0x4efd6b(0x175)])return JSON[_0x4efd6b(0x187)](process[_0x4efd6b(0xe8)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this['testFrameworkDetail'];}static[a85_0x3a807f(0xc0)](){const _0x51774a=a85_0x3a807f;if(process[_0x51774a(0xe8)][_0x51774a(0xde)])return JSON['parse'](process[_0x51774a(0xe8)][_0x51774a(0xde)]);return this[_0x51774a(0x182)];}static[a85_0x3a807f(0x149)](_0xbc2b1,_0x27a60e){const _0x701b4e=a85_0x3a807f,_0xd16363={'SQCpk':_0x701b4e(0x130),'SiZyq':function(_0x5af8f7,_0x7bcd6b){return _0x5af8f7||_0x7bcd6b;},'OVIpP':function(_0x2a5308,_0x33b38f){return _0x2a5308(_0x33b38f);},'USvjn':function(_0x4f37fa,_0x306b6f){return _0x4f37fa(_0x306b6f);}},_0x3dcd91=_0xd16363['SQCpk'][_0x701b4e(0x11a)]('|');let _0x212417=0x0;while(!![]){switch(_0x3dcd91[_0x212417++]){case'0':_0xd16363['SiZyq'](!_0xbc2b1,!_0x27a60e)&&logger[_0x701b4e(0x17f)](_0x701b4e(0xc9)+_0xbc2b1+_0x701b4e(0xbd)+_0x27a60e);continue;case'1':process[_0x701b4e(0xe8)][_0x701b4e(0xde)]=JSON[_0x701b4e(0x177)](this[_0x701b4e(0x182)]);continue;case'2':this[_0x701b4e(0x182)]={'name':_0x27a60e,'version':_0xd16363[_0x701b4e(0x12e)](getFrameworkVersion,_0x27a60e)};continue;case'3':process[_0x701b4e(0xe8)][_0x701b4e(0x175)]=JSON['stringify'](this['testFrameworkDetail']);continue;case'4':this[_0x701b4e(0xd7)]={'name':_0xbc2b1,'version':{[_0xbc2b1]:_0xd16363[_0x701b4e(0x14b)](getFrameworkVersion,_0xbc2b1)}};continue;}break;}}static[a85_0x3a807f(0x16f)](_0x48288f,_0x25cdd4){return _0x48288f+':'+_0x25cdd4;}static[a85_0x3a807f(0x171)](){const _0x1938a1=a85_0x3a807f;return process[_0x1938a1(0x15f)]+':'+threadId;}static[a85_0x3a807f(0x174)](_0x47c41b){const _0x481ef5=a85_0x3a807f;if(_0x47c41b[_0x481ef5(0xf0)]&&_0x47c41b[_0x481ef5(0xf0)][_0x481ef5(0xce)])return!![];return![];}static[a85_0x3a807f(0x120)](_0x1a6fbb){const _0x50e363=a85_0x3a807f;if(_0x1a6fbb[_0x50e363(0xf0)]&&_0x1a6fbb['testContextOptions'][_0x50e363(0xb5)])return!![];return![];}static['matchHookRegex'](_0x3d3918){const _0x31c902=a85_0x3a807f,_0x17c2f5=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x17c2f5[_0x31c902(0x169)](_0x3d3918);}static[a85_0x3a807f(0x115)](_0x3c1f97,_0x39eeed){const _0x284823=a85_0x3a807f,_0x1e27ab={};_0x1e27ab[_0x284823(0x157)]=function(_0x4be786,_0x131f99){return _0x4be786!==_0x131f99;},_0x1e27ab[_0x284823(0x100)]=function(_0x579521,_0x3b11a8){return _0x579521===_0x3b11a8;},_0x1e27ab['LqIMA']=_0x284823(0x128);const _0x3e4c49=_0x1e27ab;for(const [_0x3ab2f4,_0x3a80dc]of Object[_0x284823(0x124)](_0x39eeed)){if(_0x3e4c49['Jcbvd'](_0x3a80dc,null)&&_0x3e4c49[_0x284823(0x100)](typeof _0x3a80dc,_0x3e4c49['LqIMA'])&&!Array['isArray'](_0x3a80dc))_0x3c1f97[_0x3ab2f4]=this['mergeObject'](_0x3c1f97[_0x3ab2f4]||{},_0x3a80dc);else Array[_0x284823(0xaf)](_0x3a80dc)?_0x3c1f97[_0x3ab2f4]=(_0x3c1f97[_0x3ab2f4]||[])[_0x284823(0x107)](_0x3a80dc):_0x3c1f97[_0x3ab2f4]=_0x3a80dc;}return _0x3c1f97;}}module[a85_0x3a807f(0xda)]=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
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
|
+
'use strict';const a86_0x42adc5=a86_0x31be;(function(_0xc45380,_0x4faa02){const _0x3bf45a=a86_0x31be,_0x2fe0c3=_0xc45380();while(!![]){try{const _0x4f9501=parseInt(_0x3bf45a(0xb7))/0x1*(parseInt(_0x3bf45a(0xb1))/0x2)+parseInt(_0x3bf45a(0x98))/0x3+parseInt(_0x3bf45a(0xc4))/0x4+-parseInt(_0x3bf45a(0xda))/0x5+parseInt(_0x3bf45a(0x6b))/0x6*(parseInt(_0x3bf45a(0x7b))/0x7)+parseInt(_0x3bf45a(0xea))/0x8*(-parseInt(_0x3bf45a(0xe6))/0x9)+parseInt(_0x3bf45a(0x91))/0xa;if(_0x4f9501===_0x4faa02)break;else _0x2fe0c3['push'](_0x2fe0c3['shift']());}catch(_0x6ad680){_0x2fe0c3['push'](_0x2fe0c3['shift']());}}}(a86_0x4bb3,0x49002));const fs=require('fs'),os=require('os'),path=require(a86_0x42adc5(0xb2)),helper=require(a86_0x42adc5(0x97)),AutomationFramework=require(a86_0x42adc5(0x80)),TestFrameworkConstants=require(a86_0x42adc5(0x73)),PlaywrightDriverModule=require(a86_0x42adc5(0xdc)),TestInfo=require('./TestInfo'),TestHubModule=require(a86_0x42adc5(0xa5)),{createClassLogger}=require(a86_0x42adc5(0x9b)),logger=createClassLogger('CustomTagManager'),BUILD_TAG_FILE_PREFIX=a86_0x42adc5(0xc1);function a86_0x4bb3(){const _0x3d22b5=['getTestDetails','unlinkSync','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','mergeBuildLevelTags','getTestLevelTags','1494VzNBZa','KEY_TEST_ID','sWtbU','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','pid','fyDZv','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','./framework/constants/testFrameworkConstants','isArray','endsWith','multi_dropdown','POST','VfUwK','retry','BROWSERSTACK_TESTHUB_UUID','12460kKREXI','function',',\x20finalTags=','TEST','FGZtJ','./framework/automationFramework','./cliUtils','ms)\x20','getBuildTagsRunId','debug','jHblG','getBuildTagsFilePath','QLfdH','parse','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','getAllData','efXSh','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','FZTcK','pAgaf','isRunning','clearTags','12430tKMrkY','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','buildHashedId','name','GUiwA','MYucX','../../helpers/helper','761889yXqmZL','getTestFramework','readFileSync','../../helpers/classLogger',',\x20key=','addMultipleEntries','getInstance','setCustomTags','modules','now','buildLevelTags','getCurrentTestUUID','BUILD_TAG_FILE_PREFIX','./modules/testhubModule','nvDTc','promises','toLowerCase','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','getTestUUID','utf8','GYypu','ayxbR','getTestFrameworkDetail','xQfKK','tmpdir','10GoWCsu','path','keys','lYOjQ','statSync','join','41357HGPCAQ','null','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','exports','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','YViFL','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','trim','includes','resolveInstance','bstack_build_tags_','env','./browserstackCLI','57108DqWXYi','kxLLZ','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','mtimeMs','startsWith','QUOVP','setTestDetails','vTBtd','wBthr','./state/hookState',',\x20values=','qGjrY','field_type','CfpxU','KEY_CUSTOM_TAGS','__jestCurrentTestIdentifier','parseCommaSeparatedValues','stringify','currentTest','MODULE_NAME','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','mergeIntoTags','1629505ZskOFC','mergeValues','./modules/playwrightDriverModule','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','pDRay','length','values','SLrIL','jest','testLevelTags','from','testhubConfig','2439hKfKYV','message','getTestIdentifierFromTestInfo','entries','8696GEvemM','getTrackedInstance','getState','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','bhHTw','testInfo'];a86_0x4bb3=function(){return _0x3d22b5;};return a86_0x4bb3();}function a86_0x31be(_0x50e025,_0x5c012a){const _0x4bb35a=a86_0x4bb3();return a86_0x31be=function(_0x31be2d,_0x5a23e0){_0x31be2d=_0x31be2d-0x68;let _0x2f7f1a=_0x4bb35a[_0x31be2d];return _0x2f7f1a;},a86_0x31be(_0x50e025,_0x5c012a);}function getBuildTagsRunId(){const _0x243786=a86_0x42adc5,_0x2167a4={};_0x2167a4[_0x243786(0x85)]=function(_0x3952a8,_0x2ed99d){return _0x3952a8===_0x2ed99d;},_0x2167a4[_0x243786(0xe1)]=_0x243786(0xb8);const _0x1ae92d=_0x2167a4,_0x374de9=process[_0x243786(0xc2)][_0x243786(0x7a)];if(!_0x374de9||_0x1ae92d['jHblG'](_0x374de9,_0x1ae92d['SLrIL']))return null;return _0x374de9;}function getBuildTagsFilePath(_0x5ce2ad){const _0x12ce98=a86_0x42adc5;return path['join'](os[_0x12ce98(0xb0)](),''+BUILD_TAG_FILE_PREFIX+_0x5ce2ad+'_'+process[_0x12ce98(0x70)]+'.json');}class CustomTagManager{static ['buildLevelTags']={};static ['testLevelTags']={};static['mergeValues'](_0x5287e2,_0x4a86a3){const _0x8534e7=a86_0x42adc5;return Array[_0x8534e7(0xe4)](new Set([..._0x5287e2||[],..._0x4a86a3||[]]));}static[a86_0x42adc5(0xd9)](_0x26065b,_0x2f0e98,_0x270f1a){const _0x56c1cc=a86_0x42adc5,_0xcdb9e6={};_0xcdb9e6['GUiwA']=_0x56c1cc(0x76);const _0x50d37b=_0xcdb9e6;if(!_0x26065b[_0x2f0e98]){const _0x5e2e31={};_0x5e2e31[_0x56c1cc(0xd0)]=_0x50d37b['GUiwA'],_0x5e2e31[_0x56c1cc(0xe0)]=[..._0x270f1a||[]],_0x26065b[_0x2f0e98]=_0x5e2e31;}else!_0x26065b[_0x2f0e98]['field_type']&&(_0x26065b[_0x2f0e98][_0x56c1cc(0xd0)]=_0x50d37b[_0x56c1cc(0x95)]),!Array[_0x56c1cc(0x74)](_0x26065b[_0x2f0e98][_0x56c1cc(0xe0)])&&(_0x26065b[_0x2f0e98][_0x56c1cc(0xe0)]=[]),_0x26065b[_0x2f0e98][_0x56c1cc(0xe0)]=CustomTagManager[_0x56c1cc(0xdb)](_0x26065b[_0x2f0e98]['values'],_0x270f1a);return _0x26065b;}static async[a86_0x42adc5(0x9f)](_0x44489a,_0x121d82,_0x3014a9=![]){const _0x20af60=a86_0x42adc5,_0x2e576a={'afrqr':function(_0x3c9444,_0x338219){return _0x3c9444!==_0x338219;},'wBthr':'string','GYypu':_0x20af60(0x72),'QLfdH':_0x20af60(0x68),'NloNr':function(_0x471f27,_0x13b05e){return _0x471f27===_0x13b05e;},'dSSWR':_0x20af60(0xd8),'eyGkJ':function(_0xfd8752,_0x3e4252){return _0xfd8752===_0x3e4252;},'vhDlN':_0x20af60(0x6f),'MYucX':function(_0x340f8d,_0x392979){return _0x340f8d(_0x392979);},'pAgaf':_0x20af60(0xc3),'qGjrY':function(_0xd92303){return _0xd92303();},'CfpxU':_0x20af60(0x76),'sWtbU':function(_0x5ab665,_0x4add63){return _0x5ab665>_0x4add63;},'VfUwK':function(_0x4b2b06,_0x298455){return _0x4b2b06(_0x298455);},'SKPMa':_0x20af60(0xa9),'pDRay':':jest-','ayxbR':_0x20af60(0x81),'dJSuH':function(_0x5c2d15,_0x2e3c78){return _0x5c2d15===_0x2e3c78;},'GEvDP':_0x20af60(0xe2),'lYOjQ':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','xQfKK':function(_0x246766,_0x4e18a9){return _0x246766(_0x4e18a9);},'kxLLZ':_0x20af60(0xc6),'YViFL':'./state/testFrameworkState','sEiYJ':_0x20af60(0xcd),'otlhd':_0x20af60(0xb9),'bhHTw':function(_0x1efefc,_0x296545){return _0x1efefc(_0x296545);},'fyDZv':function(_0xb53f16,_0x5836fd){return _0xb53f16===_0x5836fd;},'nvDTc':_0x20af60(0x7c)};if(_0x2e576a['afrqr'](typeof _0x44489a,_0x2e576a['wBthr'])){logger[_0x20af60(0x84)](_0x2e576a[_0x20af60(0xac)]);return;}if(_0x2e576a['afrqr'](typeof _0x121d82,_0x2e576a[_0x20af60(0xcc)])){logger[_0x20af60(0x84)](_0x2e576a[_0x20af60(0x87)]);return;}if(_0x2e576a['NloNr'](_0x44489a[_0x20af60(0xbe)](),'')){logger[_0x20af60(0x84)](_0x2e576a['dSSWR']);return;}if(_0x2e576a['eyGkJ'](_0x121d82['trim'](),'')){logger['debug'](_0x2e576a['vhDlN']);return;}const _0x46783f=helper[_0x20af60(0xd4)](_0x121d82);if(_0x3014a9){const _0x125191=_0x2e576a[_0x20af60(0x96)](require,_0x2e576a[_0x20af60(0x8e)]),_0x141125=_0x125191[_0x20af60(0x9e)](),_0x4e18f3=_0x141125&&_0x141125[_0x20af60(0xa0)][TestHubModule[_0x20af60(0xd7)]];if(_0x4e18f3){const _0x4fed52=_0x4e18f3?.[_0x20af60(0xe5)]?.['toObject']()?.[_0x20af60(0x93)];TestInfo[_0x20af60(0xaa)](_0x4fed52);const _0x36ced8=TestInfo[_0x20af60(0xf0)](_0x4fed52),_0x233473=_0x36ced8[TestFrameworkConstants[_0x20af60(0xd2)]]||{};CustomTagManager[_0x20af60(0xd9)](_0x233473,_0x44489a,_0x46783f),_0x36ced8[TestFrameworkConstants[_0x20af60(0xd2)]]=_0x233473,TestInfo[_0x20af60(0xca)](_0x4fed52,_0x36ced8);!this[_0x20af60(0xa2)][_0x4fed52]&&(this[_0x20af60(0xa2)][_0x4fed52]={});this[_0x20af60(0xa2)][_0x4fed52][_0x44489a]=CustomTagManager[_0x20af60(0xdb)](this['buildLevelTags'][_0x4fed52][_0x44489a],_0x46783f);try{const _0x294763=_0x2e576a[_0x20af60(0xcf)](getBuildTagsRunId);if(_0x294763){const _0x579a7f={};for(const [_0xc782db,_0x4ca085]of Object[_0x20af60(0xe9)](this[_0x20af60(0xa2)][_0x4fed52]||{})){_0x579a7f[_0xc782db]={'field_type':_0x2e576a[_0x20af60(0xd1)],'values':Array[_0x20af60(0x74)](_0x4ca085)?[..._0x4ca085]:[]};}_0x2e576a[_0x20af60(0x6d)](Object[_0x20af60(0xb3)](_0x579a7f)[_0x20af60(0xdf)],0x0)&&await fs[_0x20af60(0xa7)]['writeFile'](_0x2e576a[_0x20af60(0x78)](getBuildTagsFilePath,_0x294763),JSON[_0x20af60(0xd5)](_0x579a7f));}else logger['debug'](_0x2e576a['SKPMa']);}catch(_0x1d5be3){logger['debug'](_0x20af60(0x92)+(_0x1d5be3&&_0x1d5be3[_0x20af60(0xe7)]?_0x1d5be3['message']:_0x1d5be3));}}}else{let _0x1ecc7a;const _0x275311=global[_0x20af60(0xd3)];let _0x3c34a8=![];if(_0x275311&&_0x275311[_0x20af60(0xbf)](_0x2e576a['pDRay']))_0x3c34a8=!![],_0x1ecc7a=_0x275311;else try{const _0x5aba3c=_0x2e576a['MYucX'](require,_0x2e576a[_0x20af60(0xad)]),_0x26b9cc=_0x2e576a[_0x20af60(0x96)](require,_0x2e576a[_0x20af60(0x8e)]);if(_0x26b9cc[_0x20af60(0x9e)]()[_0x20af60(0x8f)]()){const _0x49c89b=_0x5aba3c[_0x20af60(0xae)]();if(_0x2e576a['dJSuH'](_0x49c89b?.[_0x20af60(0x94)]?.[_0x20af60(0xa8)](),_0x2e576a['GEvDP'])){const _0x25776=AutomationFramework[_0x20af60(0xeb)]();_0x1ecc7a=AutomationFramework[_0x20af60(0xec)](_0x25776,PlaywrightDriverModule[_0x20af60(0x6c)],''),_0x1ecc7a&&_0x1ecc7a[_0x20af60(0xbf)](_0x2e576a[_0x20af60(0xde)])&&(_0x3c34a8=!![]);}}}catch(_0x3ee592){logger[_0x20af60(0x84)]('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x3ee592);}if(_0x3c34a8){if(!_0x1ecc7a)throw new Error(_0x2e576a[_0x20af60(0xb4)]);const _0x316184=_0x2e576a[_0x20af60(0xaf)](require,_0x2e576a['pAgaf']),_0x557780=_0x316184[_0x20af60(0x9e)]()[_0x20af60(0x99)]();if(!_0x557780)throw new Error(_0x2e576a[_0x20af60(0xc5)]);const _0x3c378c=_0x2e576a[_0x20af60(0xaf)](require,_0x2e576a[_0x20af60(0xbc)]),_0x47f281=_0x2e576a[_0x20af60(0x78)](require,_0x2e576a['sEiYJ']),_0x2166c9=_0x557780[_0x20af60(0xc0)](_0x3c378c[_0x20af60(0x7e)],_0x47f281[_0x20af60(0x77)]);if(!_0x2166c9)throw new Error(_0x2e576a['otlhd']);const _0x2cef85=_0x2166c9[_0x20af60(0x8a)]()['get'](_0x1ecc7a)||{},_0x57c39d=_0x2cef85[TestFrameworkConstants[_0x20af60(0xd2)]]||{};logger['debug'](_0x20af60(0x89)+_0x1ecc7a+_0x20af60(0x9c)+_0x44489a+_0x20af60(0xce)+JSON[_0x20af60(0xd5)](_0x46783f)+',\x20existingTags='+JSON['stringify'](_0x57c39d)),CustomTagManager[_0x20af60(0xd9)](_0x57c39d,_0x44489a,_0x46783f),logger['debug'](_0x20af60(0x8c)+_0x44489a+'\x20->\x20values='+JSON[_0x20af60(0xd5)](_0x57c39d[_0x44489a][_0x20af60(0xe0)]));const _0x406ab3={[TestFrameworkConstants[_0x20af60(0xd2)]]:_0x57c39d},_0x13739a={};_0x13739a[_0x1ecc7a]=_0x406ab3,_0x2166c9[_0x20af60(0x9d)](_0x13739a),logger[_0x20af60(0x84)](_0x20af60(0xdd)+_0x1ecc7a+_0x20af60(0x7d)+JSON[_0x20af60(0xd5)](_0x57c39d)),!this[_0x20af60(0xe3)][_0x1ecc7a]&&(this[_0x20af60(0xe3)][_0x1ecc7a]={}),this[_0x20af60(0xe3)][_0x1ecc7a][_0x44489a]=CustomTagManager[_0x20af60(0xdb)](this['testLevelTags'][_0x1ecc7a][_0x44489a],_0x46783f);}else{const _0x209e35=global['__workerDetails']?.[_0x20af60(0xd6)]?.[_0x20af60(0xef)];if(!_0x209e35){const _0x4f3d72=AutomationFramework['getTrackedInstance']();_0x1ecc7a=AutomationFramework[_0x20af60(0xec)](_0x4f3d72,PlaywrightDriverModule[_0x20af60(0x6c)],'');if(!_0x1ecc7a)try{const _0x56f17f=_0x2e576a[_0x20af60(0xee)](require,_0x2e576a[_0x20af60(0x8e)]),_0xdf81d5=_0x56f17f[_0x20af60(0x9e)](),_0x3cd7e0=_0xdf81d5&&_0xdf81d5[_0x20af60(0x99)]();_0x1ecc7a=_0x3cd7e0&&_0x2e576a[_0x20af60(0x71)](typeof _0x3cd7e0[_0x20af60(0xa3)],_0x2e576a[_0x20af60(0xa6)])&&_0x3cd7e0['getCurrentTestUUID']()||_0x1ecc7a;}catch(_0x354e2c){logger[_0x20af60(0x84)](_0x20af60(0xed)+(_0x354e2c&&_0x354e2c[_0x20af60(0xe7)]));}}else _0x1ecc7a=TestInfo[_0x20af60(0xe8)](_0x209e35,_0x209e35[_0x20af60(0x79)]);const _0x4d4d08=TestInfo[_0x20af60(0xf0)](_0x1ecc7a),_0x14cdfa=_0x4d4d08[TestFrameworkConstants[_0x20af60(0xd2)]]||{};CustomTagManager[_0x20af60(0xd9)](_0x14cdfa,_0x44489a,_0x46783f),_0x4d4d08[TestFrameworkConstants[_0x20af60(0xd2)]]=_0x14cdfa,TestInfo[_0x20af60(0xca)](_0x1ecc7a,_0x4d4d08),!this[_0x20af60(0xe3)][_0x1ecc7a]&&(this[_0x20af60(0xe3)][_0x1ecc7a]={}),this['testLevelTags'][_0x1ecc7a][_0x44489a]=CustomTagManager['mergeValues'](this[_0x20af60(0xe3)][_0x1ecc7a][_0x44489a],_0x46783f);}}}static['getBuildLevelTags'](){const _0x7188a0=a86_0x42adc5,_0x2f1561={...this[_0x7188a0(0xa2)]};return _0x2f1561;}static[a86_0x42adc5(0x6a)](){const _0x1086d8=a86_0x42adc5,_0x3f7e9c={...this[_0x1086d8(0xe3)]};return _0x3f7e9c;}static[a86_0x42adc5(0x90)](){const _0x5c3ec6=a86_0x42adc5;this['buildLevelTags']={},this[_0x5c3ec6(0xe3)]={};}static[a86_0x42adc5(0x69)](_0x39f423,_0xb2afe1){const _0x2bbdfb=a86_0x42adc5,_0x4b52a7={};_0x4b52a7[_0x2bbdfb(0xcb)]=function(_0x538244,_0x107ab0){return _0x538244||_0x107ab0;};const _0x17d7d1=_0x4b52a7;if(!_0x39f423)return;!this[_0x2bbdfb(0xa2)][_0x39f423]&&(this[_0x2bbdfb(0xa2)][_0x39f423]={});for(const [_0x5cd484,_0xb71075]of Object['entries'](_0x17d7d1[_0x2bbdfb(0xcb)](_0xb2afe1,{}))){if(!_0xb71075||!Array['isArray'](_0xb71075[_0x2bbdfb(0xe0)]))continue;this[_0x2bbdfb(0xa2)][_0x39f423][_0x5cd484]=CustomTagManager[_0x2bbdfb(0xdb)](this[_0x2bbdfb(0xa2)][_0x39f423][_0x5cd484],_0xb71075[_0x2bbdfb(0xe0)]);}}static['aggregateBuildLevelTagsFromTmp'](_0x3ad400,_0x229166){const _0x536631=a86_0x42adc5,_0x5f389a={};_0x5f389a[_0x536631(0x7f)]=_0x536631(0xbb),_0x5f389a['FZTcK']=function(_0x366ab6,_0xdf3577){return _0x366ab6*_0xdf3577;},_0x5f389a[_0x536631(0x8b)]=function(_0x5a7b9b,_0x86761c){return _0x5a7b9b>_0x86761c;},_0x5f389a[_0x536631(0xc9)]=function(_0x505620,_0x5bd700){return _0x505620-_0x5bd700;},_0x5f389a['hqvrt']=_0x536631(0xab);const _0x479d2b=_0x5f389a;if(!_0x3ad400)return logger[_0x536631(0x84)](_0x479d2b['FGZtJ']),0x0;let _0x337653;try{_0x337653=os[_0x536631(0xb0)]();}catch(_0x3def77){return logger[_0x536631(0x84)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20'+_0x3def77),0x0;}let _0x18a93c;try{_0x18a93c=fs['readdirSync'](_0x337653);}catch(_0x591e94){return logger[_0x536631(0x84)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20'+_0x591e94),0x0;}const _0x2a13d4=''+BUILD_TAG_FILE_PREFIX+_0x3ad400+'_',_0x1d5683=_0x18a93c['filter'](_0x5c1697=>_0x5c1697[_0x536631(0xc8)](_0x2a13d4)&&_0x5c1697[_0x536631(0x75)]('.json')),_0x33739b=_0x479d2b[_0x536631(0x8d)](_0x479d2b[_0x536631(0x8d)](_0x479d2b[_0x536631(0x8d)](0x2,0x3c),0x3c),0x3e8);let _0x265d4d=0x0;for(const _0x5b3bc8 of _0x1d5683){const _0x63e17f=path[_0x536631(0xb6)](_0x337653,_0x5b3bc8);try{const _0x229b8a=fs[_0x536631(0xb5)](_0x63e17f);if(_0x479d2b[_0x536631(0x8b)](_0x479d2b[_0x536631(0xc9)](Date[_0x536631(0xa1)](),_0x229b8a[_0x536631(0xc7)]),_0x33739b)){logger['debug'](_0x536631(0xbd)+_0x33739b+_0x536631(0x82)+_0x5b3bc8);try{fs[_0x536631(0xf1)](_0x63e17f);}catch(_0x305dc3){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20'+_0x5b3bc8+':\x20'+(_0x305dc3&&_0x305dc3[_0x536631(0xe7)]?_0x305dc3['message']:_0x305dc3));}continue;}const _0x24300f=fs[_0x536631(0x9a)](_0x63e17f,_0x479d2b['hqvrt']),_0x15ab0a=JSON[_0x536631(0x88)](_0x24300f);this['mergeBuildLevelTags'](_0x229166,_0x15ab0a),_0x265d4d+=0x1;}catch(_0x1593f1){logger[_0x536631(0x84)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x5b3bc8+':\x20'+(_0x1593f1&&_0x1593f1[_0x536631(0xe7)]?_0x1593f1[_0x536631(0xe7)]:_0x1593f1));}try{fs[_0x536631(0xf1)](_0x63e17f);}catch(_0x12012f){logger[_0x536631(0x84)](_0x536631(0x6e)+_0x5b3bc8+':\x20'+(_0x12012f&&_0x12012f[_0x536631(0xe7)]?_0x12012f[_0x536631(0xe7)]:_0x12012f));}}return _0x265d4d;}}const a86_0x32fc9b={};a86_0x32fc9b[a86_0x42adc5(0x83)]=getBuildTagsRunId,a86_0x32fc9b[a86_0x42adc5(0x86)]=getBuildTagsFilePath,a86_0x32fc9b[a86_0x42adc5(0xa4)]=BUILD_TAG_FILE_PREFIX,CustomTagManager['_testInternals']=a86_0x32fc9b,module[a86_0x42adc5(0xba)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a87_0x33ef(){const _0x183270=['124864ZNlKCx','push','262476UOxZGW','4522078rmAUlI','328741YdaDNw','6EHmkfk','807496AyDeaN','9tDHBAl','56795xPiUbB','40947gwdbwo','notifyObserver','QZXbr','observers','freeze','registerObserver','10xovsGy','getInstance','6nDBpUT'];a87_0x33ef=function(){return _0x183270;};return a87_0x33ef();}const a87_0x4c054b=a87_0x235c;(function(_0x28cc39,_0xca2eb0){const _0x125bd2=a87_0x235c,_0x33d2ba=_0x28cc39();while(!![]){try{const _0xdb354a=parseInt(_0x125bd2(0x1c1))/0x1+-parseInt(_0x125bd2(0x1b8))/0x2*(parseInt(_0x125bd2(0x1bd))/0x3)+parseInt(_0x125bd2(0x1ba))/0x4+parseInt(_0x125bd2(0x1c0))/0x5+-parseInt(_0x125bd2(0x1b7))/0x6*(parseInt(_0x125bd2(0x1bc))/0x7)+parseInt(_0x125bd2(0x1be))/0x8*(-parseInt(_0x125bd2(0x1bf))/0x9)+parseInt(_0x125bd2(0x1b5))/0xa*(parseInt(_0x125bd2(0x1bb))/0xb);if(_0xdb354a===_0xca2eb0)break;else _0x33d2ba['push'](_0x33d2ba['shift']());}catch(_0x273c4f){_0x33d2ba['push'](_0x33d2ba['shift']());}}}(a87_0x33ef,0x3e903));const {createClassLogger}=require('../../helpers/classLogger.js');function a87_0x235c(_0x26b6fe,_0x274377){const _0x33efcb=a87_0x33ef();return a87_0x235c=function(_0x235caf,_0x4e416a){_0x235caf=_0x235caf-0x1b2;let _0x6fd7e0=_0x33efcb[_0x235caf];return _0x6fd7e0;},a87_0x235c(_0x26b6fe,_0x274377);}class EventDispatcher{static #instance=null;constructor(){const _0x2c7a3d=a87_0x235c;this[_0x2c7a3d(0x1b2)]={};}static[a87_0x4c054b(0x1b6)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a87_0x4c054b(0x1b4)](_0x4bce89,_0xd870b){const _0x1947b6=a87_0x4c054b;!this[_0x1947b6(0x1b2)][_0x4bce89]&&(this[_0x1947b6(0x1b2)][_0x4bce89]=[]),this[_0x1947b6(0x1b2)][_0x4bce89][_0x1947b6(0x1b9)](_0xd870b);}async[a87_0x4c054b(0x1c2)](_0x2077f2,_0x53f363){const _0x6b1177=a87_0x4c054b,_0x289ede={'QZXbr':function(_0x47b040,_0x33eff2){return _0x47b040(_0x33eff2);}};if(this[_0x6b1177(0x1b2)][_0x2077f2]){for(const _0x1bfc65 of this[_0x6b1177(0x1b2)][_0x2077f2]){await _0x289ede[_0x6b1177(0x1c3)](_0x1bfc65,_0x53f363);}return;}}}const eventDispatcher=EventDispatcher[a87_0x4c054b(0x1b6)]();Object[a87_0x4c054b(0x1b3)](eventDispatcher),module['exports']=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x32ec5f=a88_0xc80b;(function(_0x5e7d2d,_0x23d45f){const _0x892c2c=a88_0xc80b,_0x3fc413=_0x5e7d2d();while(!![]){try{const _0x6b7029=parseInt(_0x892c2c(0xe0))/0x1+parseInt(_0x892c2c(0xed))/0x2+-parseInt(_0x892c2c(0xe6))/0x3+-parseInt(_0x892c2c(0xd9))/0x4*(-parseInt(_0x892c2c(0xdb))/0x5)+parseInt(_0x892c2c(0xc9))/0x6*(parseInt(_0x892c2c(0xc7))/0x7)+-parseInt(_0x892c2c(0xce))/0x8+parseInt(_0x892c2c(0xea))/0x9*(parseInt(_0x892c2c(0xe7))/0xa);if(_0x6b7029===_0x23d45f)break;else _0x3fc413['push'](_0x3fc413['shift']());}catch(_0x23abe5){_0x3fc413['push'](_0x3fc413['shift']());}}}(a88_0x41f8,0xe39a2));function a88_0xc80b(_0x25719b,_0x2b173e){const _0x41f8de=a88_0x41f8();return a88_0xc80b=function(_0xc80b2f,_0x2dbcc1){_0xc80b2f=_0xc80b2f-0xc5;let _0xa5af8f=_0x41f8de[_0xc80b2f];return _0xa5af8f;},a88_0xc80b(_0x25719b,_0x2b173e);}const {createClassLogger}=require(a88_0x32ec5f(0xe4)),util=require(a88_0x32ec5f(0xe9)),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a88_0x32ec5f(0xcc)),TrackedInstance=require(a88_0x32ec5f(0xe8)),logger=createClassLogger(a88_0x32ec5f(0xdd));class AutomationFramework{static [a88_0x32ec5f(0xd8)]=new Map();static ['KEY_AUTOMATION_SESSIONS']=a88_0x32ec5f(0xec);static [a88_0x32ec5f(0xda)]=a88_0x32ec5f(0xd3);constructor(_0x349220,_0x216e52){const _0x419a4f=a88_0x32ec5f;this[_0x419a4f(0xd6)]=_0x349220,this['automationFrameworkVersion']=_0x216e52;}['getAutomationFrameworkName'](){const _0x52fe33=a88_0x32ec5f;return this[_0x52fe33(0xd6)];}['getAutomationFrameworkVersion'](){const _0x1a2ad5=a88_0x32ec5f;return this[_0x1a2ad5(0xca)];}async['trackEvent'](_0xec9979,_0x183b66,_0xae0d9d={}){const _0x742e02=a88_0x32ec5f;logger[_0x742e02(0xd7)]('trackEvent:\x20automationFrameworkState='+_0xec9979+_0x742e02(0xd0)+_0x183b66);}async[a88_0x32ec5f(0xe5)](_0x173bab,_0x474211,_0x2e9371,_0x286899={}){const _0x197400=a88_0x32ec5f,_0x33d1f8=CLIUtils[_0x197400(0xdc)](_0x474211,_0x2e9371);_0x173bab&&_0x173bab[_0x197400(0xd4)](_0x474211),await eventDispatcher[_0x197400(0xc5)](_0x33d1f8,_0x286899);}static[a88_0x32ec5f(0xcd)](_0x2e0074,_0x5ec345,_0x440541){const _0xa596f1=a88_0x32ec5f;eventDispatcher['registerObserver'](CLIUtils[_0xa596f1(0xdc)](_0x2e0074,_0x5ec345),_0x440541);}static[a88_0x32ec5f(0xcb)](_0x540b36,_0x9e9cc3){const _0x3b7172=a88_0x32ec5f;AutomationFramework['instances'][_0x3b7172(0xc8)](_0x540b36[_0x3b7172(0xdf)](),_0x9e9cc3);}static[a88_0x32ec5f(0xe3)](){const _0x26d0ec=a88_0x32ec5f,_0x1a0bb9=TrackedInstance[_0x26d0ec(0xd5)](CLIUtils[_0x26d0ec(0xd1)]());return AutomationFramework[_0x26d0ec(0xd8)][_0x26d0ec(0xc6)](_0x1a0bb9[_0x26d0ec(0xdf)]());}static[a88_0x32ec5f(0xd4)](_0x6ea4da,_0x186d6d,_0x59c096){const _0x379f3b=a88_0x32ec5f;_0x6ea4da[_0x379f3b(0xcf)]()[_0x379f3b(0xc8)](_0x186d6d,_0x59c096);}static['getState'](_0x47b2ad,_0xb6c7db,_0x514de5=undefined){const _0x5531a3=a88_0x32ec5f,_0x27b736={};_0x27b736[_0x5531a3(0xd2)]=function(_0x395722,_0x56b61e){return _0x395722!==_0x56b61e;},_0x27b736[_0x5531a3(0xe2)]=_0x5531a3(0xe1),_0x27b736[_0x5531a3(0xde)]=function(_0x3ff355,_0x573cb6){return _0x3ff355===_0x573cb6;};const _0x472217=_0x27b736;if(!_0x47b2ad||_0x472217[_0x5531a3(0xd2)](typeof _0x47b2ad['getAllData'],_0x472217[_0x5531a3(0xe2)]))return _0x514de5;const _0x2a3271=_0x47b2ad[_0x5531a3(0xcf)]()['get'](_0xb6c7db);return _0x472217[_0x5531a3(0xde)](_0x2a3271,undefined)?_0x514de5:_0x2a3271;}}function a88_0x41f8(){const _0x528cfd=['dUHHB','non_browserstack_automation_sessions','setState','createContext','automationFrameworkName','debug','instances','16UeFKQx','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','62580QRYRne','getHookRegistryKey','AutomationFramework','FGcUs','getId','764205eYRBqS','function','MqdPE','getTrackedInstance','../../../helpers/classLogger.js','runHooks','5038248lUwgeS','19892050wAowXB','../instances/trackedInstance.js','util','9wZJwVa','exports','automation_sessions','5678tbCxwC','notifyObserver','get','7049SpckLt','set','6942EWEAds','automationFrameworkVersion','setTrackedInstance','../cliUtils.js','registerObserver','10877904hqZevc','getAllData','\x20hookState=','getCurrentInstanceName'];a88_0x41f8=function(){return _0x528cfd;};return a88_0x41f8();}module[a88_0x32ec5f(0xeb)]=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x3c77be=a89_0x47df;(function(_0x2094b4,_0x54a262){const _0x58847c=a89_0x47df,_0x5cc08a=_0x2094b4();while(!![]){try{const _0x603703=-parseInt(_0x58847c(0xcb))/0x1*(parseInt(_0x58847c(0xdf))/0x2)+-parseInt(_0x58847c(0xdc))/0x3+-parseInt(_0x58847c(0xd5))/0x4*(parseInt(_0x58847c(0xc9))/0x5)+-parseInt(_0x58847c(0xd3))/0x6*(parseInt(_0x58847c(0xdd))/0x7)+parseInt(_0x58847c(0xcf))/0x8*(-parseInt(_0x58847c(0xd7))/0x9)+parseInt(_0x58847c(0xd4))/0xa+-parseInt(_0x58847c(0xd0))/0xb*(-parseInt(_0x58847c(0xe2))/0xc);if(_0x603703===_0x54a262)break;else _0x5cc08a['push'](_0x5cc08a['shift']());}catch(_0x4041ab){_0x5cc08a['push'](_0x5cc08a['shift']());}}}(a89_0x3fd7,0x827f4));const a89_0x53338b={};function a89_0x3fd7(){const _0x4d9346=['exports','471176MCawOY','625977wgsvce','quit','is_browserstack_hub','181614soBqcJ','3658240aZnkvo','32FGjoTP','KEY_STARTED_AT','117ZpEzQJ','COMMAND_GET','COMMAND_SCREENSHOT','KEY_INPUT_CAPABILITIES','COMMAND_QUIT','2990775nobfrt','147dWkbYP','KEY_ENDED_AT','314hoasvV','started_at','input_capabilities','900VZyCix','w3cexecutescriptasync','BROWSERSTACK_PLATFORM_INDEX','COMMAND_W3C_EXECUTE_SCRIPT','get','COMMAND_NEW_SESSION','capabilities','KEY_PLATFORM_INDEX','KEY_CAPABILITIES','415365UIpeBI','screenshot','6602YAvMPl','KEY_IS_BROWSERSTACK_HUB','ended_at'];a89_0x3fd7=function(){return _0x4d9346;};return a89_0x3fd7();}function a89_0x47df(_0x3746d4,_0x407649){const _0x3fd70b=a89_0x3fd7();return a89_0x47df=function(_0x47df73,_0x5a7a64){_0x47df73=_0x47df73-0xc9;let _0x36f646=_0x3fd70b[_0x47df73];return _0x36f646;},a89_0x47df(_0x3746d4,_0x407649);}a89_0x53338b['ENV_BROWSERSTACK_PLATFORM_INDEX']=a89_0x3c77be(0xe4),a89_0x53338b['KEY_HUB_URL']='hub_url',a89_0x53338b['KEY_FRAMEWORK_SESSION_ID']='framework_session_id',a89_0x53338b[a89_0x3c77be(0xda)]=a89_0x3c77be(0xe1),a89_0x53338b[a89_0x3c77be(0xea)]=a89_0x3c77be(0xe8),a89_0x53338b[a89_0x3c77be(0xcc)]=a89_0x3c77be(0xd2),a89_0x53338b[a89_0x3c77be(0xd6)]=a89_0x3c77be(0xe0),a89_0x53338b[a89_0x3c77be(0xde)]=a89_0x3c77be(0xcd),a89_0x53338b[a89_0x3c77be(0xe9)]='platform_index',a89_0x53338b[a89_0x3c77be(0xe7)]='newsession',a89_0x53338b[a89_0x3c77be(0xd8)]=a89_0x3c77be(0xe6),a89_0x53338b[a89_0x3c77be(0xd9)]=a89_0x3c77be(0xca),a89_0x53338b[a89_0x3c77be(0xe5)]='w3cexecutescript',a89_0x53338b['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']=a89_0x3c77be(0xe3),a89_0x53338b[a89_0x3c77be(0xdb)]=a89_0x3c77be(0xd1);const AutomationFrameworkConstants=a89_0x53338b;module[a89_0x3c77be(0xce)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a90_0x5d811f=a90_0xdbc7;(function(_0x5291e5,_0x49f2e6){const _0x3f9dfd=a90_0xdbc7,_0xd852c6=_0x5291e5();while(!![]){try{const _0x36f363=-parseInt(_0x3f9dfd(0x13b))/0x1*(-parseInt(_0x3f9dfd(0x177))/0x2)+-parseInt(_0x3f9dfd(0x141))/0x3*(parseInt(_0x3f9dfd(0x18e))/0x4)+-parseInt(_0x3f9dfd(0x15e))/0x5+parseInt(_0x3f9dfd(0x168))/0x6+parseInt(_0x3f9dfd(0x15d))/0x7+-parseInt(_0x3f9dfd(0x136))/0x8*(parseInt(_0x3f9dfd(0x167))/0x9)+-parseInt(_0x3f9dfd(0x166))/0xa*(-parseInt(_0x3f9dfd(0x146))/0xb);if(_0x36f363===_0x49f2e6)break;else _0xd852c6['push'](_0xd852c6['shift']());}catch(_0x412ab9){_0xd852c6['push'](_0xd852c6['shift']());}}}(a90_0x4524,0xb7720));function a90_0x4524(){const _0x12998b=['KEY_TEST_META','8DrXwNn','platform_index','automate_session_reason','file_name','file_path','178019QLLjBF','KEY_TEST_FRAMEWORK_VERSION','KEY_FILE_NAME','TEST_SCREENSHOT','KEY_LOGS','test_meta','2731116PPInHL','KEY_HOOK_ID','KEY_TEST_RETRY_OF','KEY_HOOKS_STARTED','KEY_TEST_SCOPE','4197402CYgeOZ','test_failure_reason','test_started_at','hook_name','hook_failure_reason','KEY_TEST_LOCATION','MAX_NESTED_STEP_DEPTH','KEY_TEST_FAILURE_TYPE','hook_failure','TEST_LOG','KEY_TEST_STARTED_AT','test_failure_type','KEY_HOOK_FAILURE_TYPE','KEY_HOOKS_FINISHED','KEY_HOOK_FAILURE_REASON','KEY_TEST_FILE_PATH','KEY_TEST_RERUN_NAME','KEY_TEST_UUID','hook_id','test_hook_last_finished','test_file_path','test_name','KEY_SESSION_NAME','9003435kedpPD','5115685zqnwpt','test_framework_version','KIND_LOG','test_uuid','retry_of','KEY_TEST_RESULT','KEY_TEST_SCOPES','KEY_TEST_ENDED_AT','10QBLPuu','4656906vrDASU','2798604swIccq','KEY_TEST_ID','KEY_HOOK_FAILURE','test_session_name','test_ended_at','test_framework_name','hook_result','test_screenshots','KEY_FILE_SIZE','KEY_HOOK_LOGS','test_rerun_name','KEY_AUTOMATE_SESSION_NAME','KEY_HOOK_LAST_FINISHED','custom_metadata','KEY_TEST_TAGS','12ECEjhd','KEY_AUTOMATE_SESSION_REASON','KEY_HOOK_LAST_STARTED','test_failure','KIND_SCREENSHOT','test_result_at','MAX_TOP_LEVEL_STEPS','test_scopes','HOOK_REGEX','file_size','test_result','KEY_PLATFORM_INDEX','test_hook_last_started','KEY_EVENT_STARTED_AT','test_scope','file_level','hook_failure_type','exports','KEY_HOOK_NAME','DEFAULT_HOOK_RESULT','hook_logs','test_code','test_id','4fgBkZw','KEY_HOOK_RESULT','KEY_EVENT_ENDED_AT','test_hooks_finished','KEY_FILE_PATH','KEY_TEST_CODE'];a90_0x4524=function(){return _0x12998b;};return a90_0x4524();}const a90_0x2f19d0={};a90_0x2f19d0[a90_0x5d811f(0x157)]=a90_0x5d811f(0x161),a90_0x2f19d0[a90_0x5d811f(0x169)]=a90_0x5d811f(0x18d),a90_0x2f19d0['KEY_TEST_NAME']=a90_0x5d811f(0x15b),a90_0x2f19d0[a90_0x5d811f(0x155)]=a90_0x5d811f(0x15a),a90_0x2f19d0[a90_0x5d811f(0x176)]='test_tags',a90_0x2f19d0[a90_0x5d811f(0x163)]=a90_0x5d811f(0x181),a90_0x2f19d0['KEY_TEST_RESULT_AT']=a90_0x5d811f(0x17c),a90_0x2f19d0[a90_0x5d811f(0x150)]=a90_0x5d811f(0x148),a90_0x2f19d0[a90_0x5d811f(0x165)]=a90_0x5d811f(0x16c),a90_0x2f19d0[a90_0x5d811f(0x14b)]='test_location',a90_0x2f19d0['KEY_TEST_DURATION']='test_duration',a90_0x2f19d0[a90_0x5d811f(0x145)]=a90_0x5d811f(0x185),a90_0x2f19d0[a90_0x5d811f(0x164)]=a90_0x5d811f(0x17e),a90_0x2f19d0['KEY_TEST_FRAMEWORK_NAME']=a90_0x5d811f(0x16d),a90_0x2f19d0[a90_0x5d811f(0x13c)]=a90_0x5d811f(0x15f),a90_0x2f19d0[a90_0x5d811f(0x134)]=a90_0x5d811f(0x18c),a90_0x2f19d0[a90_0x5d811f(0x156)]=a90_0x5d811f(0x172),a90_0x2f19d0[a90_0x5d811f(0x143)]=a90_0x5d811f(0x162),a90_0x2f19d0[a90_0x5d811f(0x182)]=a90_0x5d811f(0x137),a90_0x2f19d0['KEY_TEST_FAILURE']=a90_0x5d811f(0x17a),a90_0x2f19d0[a90_0x5d811f(0x14d)]=a90_0x5d811f(0x151),a90_0x2f19d0['KEY_TEST_FAILURE_REASON']=a90_0x5d811f(0x147),a90_0x2f19d0['KEY_TEST_LOGS']='test_logs',a90_0x2f19d0[a90_0x5d811f(0x135)]=a90_0x5d811f(0x140),a90_0x2f19d0[a90_0x5d811f(0x15c)]=a90_0x5d811f(0x16b),a90_0x2f19d0[a90_0x5d811f(0x173)]='automate_session_name',a90_0x2f19d0['KEY_AUTOMATE_SESSION_STATUS']='automate_session_status',a90_0x2f19d0[a90_0x5d811f(0x178)]=a90_0x5d811f(0x138),a90_0x2f19d0[a90_0x5d811f(0x184)]='event_started_at',a90_0x2f19d0[a90_0x5d811f(0x190)]='event_ended_at',a90_0x2f19d0[a90_0x5d811f(0x142)]=a90_0x5d811f(0x158),a90_0x2f19d0[a90_0x5d811f(0x18f)]=a90_0x5d811f(0x16e),a90_0x2f19d0[a90_0x5d811f(0x152)]=a90_0x5d811f(0x187),a90_0x2f19d0[a90_0x5d811f(0x154)]=a90_0x5d811f(0x14a),a90_0x2f19d0[a90_0x5d811f(0x16a)]=a90_0x5d811f(0x14e),a90_0x2f19d0[a90_0x5d811f(0x171)]=a90_0x5d811f(0x18b),a90_0x2f19d0[a90_0x5d811f(0x189)]=a90_0x5d811f(0x149),a90_0x2f19d0['DEFAULT_TEST_RESULT']='pending',a90_0x2f19d0[a90_0x5d811f(0x18a)]='pending',a90_0x2f19d0[a90_0x5d811f(0x17b)]=a90_0x5d811f(0x13e),a90_0x2f19d0[a90_0x5d811f(0x160)]=a90_0x5d811f(0x14f),a90_0x2f19d0[a90_0x5d811f(0x17f)]='^(BEFORE_|AFTER_)',a90_0x2f19d0[a90_0x5d811f(0x144)]='test_hooks_started',a90_0x2f19d0[a90_0x5d811f(0x153)]=a90_0x5d811f(0x132),a90_0x2f19d0[a90_0x5d811f(0x179)]=a90_0x5d811f(0x183),a90_0x2f19d0[a90_0x5d811f(0x174)]=a90_0x5d811f(0x159),a90_0x2f19d0[a90_0x5d811f(0x13f)]='logs',a90_0x2f19d0['KEY_CUSTOM_TAGS']=a90_0x5d811f(0x175),a90_0x2f19d0['KEY_TEST_ATTACHMENTS']='test_attachments',a90_0x2f19d0[a90_0x5d811f(0x170)]=a90_0x5d811f(0x180),a90_0x2f19d0[a90_0x5d811f(0x13d)]=a90_0x5d811f(0x139),a90_0x2f19d0[a90_0x5d811f(0x133)]=a90_0x5d811f(0x13a),a90_0x2f19d0['KEY_FILE_LEVEL']=a90_0x5d811f(0x186),a90_0x2f19d0['KEY_TEST_SCREENSHOTS']=a90_0x5d811f(0x16f),a90_0x2f19d0[a90_0x5d811f(0x17d)]=0xa,a90_0x2f19d0[a90_0x5d811f(0x14c)]=0x2;function a90_0xdbc7(_0x1e5480,_0x3e85cc){const _0x452419=a90_0x4524();return a90_0xdbc7=function(_0xdbc773,_0x4b8780){_0xdbc773=_0xdbc773-0x132;let _0x6ac471=_0x452419[_0xdbc773];return _0x6ac471;},a90_0xdbc7(_0x1e5480,_0x3e85cc);}const TestFrameworkConstants=a90_0x2f19d0;module[a90_0x5d811f(0x188)]=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
function a91_0x3622(){const _0x36b7bd=['KEY_HOOKS_STARTED','hook_type','trackCucumberInstance','\x20testState:\x20','2131865AeVJKy','removePendingHooks','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','gDKsm','KEY_HOOK_NAME','slice','\x20pending\x20hooks\x20for\x20testId:\x20','failure','readLogObjects','body','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','DEFAULT_TEST_RESULT','getPendingHooks','52629zCEhDX','lYhdv','emOpM','dlNUv','addMultipleEntries','getRef','KEY_HOOKS_FINISHED','KEY_TEST_UUID','\x20and\x20args\x20=\x20','AclaT','debug','result','createTestFrameworkEventPayload\x20testId:\x20','KEY_EVENT_STARTED_AT','trackCucumberInstance:\x20saved\x20instance\x20contextId=','KEY_AUTOMATE_SESSION_NAME','inspect','addPendingHook','storePendingHook','KEY_TEST_RERUN_NAME','ETTYz','matchHookRegex','739129YHvDox','../../../helpers/helper.js','resolveInstance','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','\x20with\x20id\x20','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','VjnLx','ANewL',',\x20error:\x20','sendLogCreatedEvent:\x20for\x20testId:\x20','\x20with\x20UUID:\x20','KEY_TEST_RESULT','getTestUUID','KEY_TEST_FAILURE_REASON','KEY_LOGS','trackHookEvent','base64','toISOString','PRE','getThreadId','POST','DEFAULT_HOOK_RESULT','runHooks','../state/hookState.js','Dpocf','./testFramework','KEY_HOOK_ID','gjgzP','KEY_HOOK_LOGS','executionContext','../state/testFrameworkState.js','stringify','KEY_TEST_STARTED_AT','setTestDetails','customRerunParam','CucumberTestFramework','224838VlheVs','tSSTQ','location','endedAt','getTestFrameworksVersions','KEY_TEST_CODE','XNfUf','rerun_name','toString','push','\x20batch\x20','name','testData','RUoqF','\x20\x20and\x20args\x20=\x20',',\x20storing\x20as\x20pending\x20hook','testFrameworkState','KEY_TEST_LOGS','KEY_TEST_SCOPE','RSfEU','../TestInfo.js','VBcQh','uuid','KEY_TEST_FRAMEWORK_NAME','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','getProcessId','test','failure_type','9197289wrWIjy','from','../cliUtils.js','ZwDiF','failure_reason','hooks','jdJsT','logCreatedEvent','meta','getTestFrameworks','84kbuGEM','util',',\x20state=','getCurrentTestState','getContext','platformIndex','sendLogCreatedEvent','testFrameworkVersion','parseCucumberTestResult','code','getTrackedInstance','processPendingHooks','ifzyf','KEY_HOOK_RESULT','KEY_HOOK_FAILURE_TYPE','getCurrentHookState','TEST','\x20hookState:\x20','uMAsw','started_at','KEY_TEST_ID','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_HOOK_FAILURE','trackEvent','parseCucumberTest','hookState','KEY_TEST_FILE_PATH','NONE','test_run_id','PFBiP','KEY_TEST_FAILURE_TYPE','get','keys','failed','passed','error','KEY_TEST_META','gsKpR','createTestFrameworkEventPayload','pop','\x20with\x20result:\x20','startedAt','UQEzx','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','4740928nkpsRI','KEY_TEST_FRAMEWORK_VERSION','testUUID','leqNt','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','trackEvent:\x20unsupported\x20testFrameworkState=','ceil','KEY_TEST_ATTACHMENTS','\x20&\x20hook\x20=\x20','KEY_CUSTOM_TAGS','yhGPs','LffYE','KbCfO','eventJson','KEY_TEST_ENDED_AT','length','UnhandledError','WDjoQ','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','tags','failure_data','KEY_EVENT_ENDED_AT','156GtirWF','args','concat','Stored\x20pending\x20hook\x20for\x20testId:\x20','file_name','unknown','../instances/testFrameworkInstance.js','getId','format','browserstackPlatformIndex','getInstance','Etjfg','finished_at','Processing\x20','\x20&\x20hookState=','scopes','getAllData','87810cOlzWF','CJdfU','JgoNS','instance','getTestDetails','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test'];a91_0x3622=function(){return _0x36b7bd;};return a91_0x3622();}function a91_0x4235(_0x3af103,_0x6a36f4){const _0x362224=a91_0x3622();return a91_0x4235=function(_0x4235fa,_0x21458c){_0x4235fa=_0x4235fa-0xb0;let _0x4cdd3d=_0x362224[_0x4235fa];return _0x4cdd3d;},a91_0x4235(_0x3af103,_0x6a36f4);}const a91_0x38cea9=a91_0x4235;(function(_0x57e2d8,_0x426341){const _0xaaedab=a91_0x4235,_0x82c66c=_0x57e2d8();while(!![]){try{const _0x245519=parseInt(_0xaaedab(0xba))/0x1+parseInt(_0xaaedab(0xde))/0x2+-parseInt(_0xaaedab(0x16e))/0x3*(-parseInt(_0xaaedab(0x146))/0x4)+parseInt(_0xaaedab(0x161))/0x5+-parseInt(_0xaaedab(0x157))/0x6*(-parseInt(_0xaaedab(0x104))/0x7)+-parseInt(_0xaaedab(0x130))/0x8+-parseInt(_0xaaedab(0xfa))/0x9;if(_0x245519===_0x426341)break;else _0x82c66c['push'](_0x82c66c['shift']());}catch(_0x5e2bb7){_0x82c66c['push'](_0x82c66c['shift']());}}}(a91_0x3622,0x7fbad));const TestFramework=require(a91_0x38cea9(0xd3)),TestFrameworkState=require(a91_0x38cea9(0xd8)),HookState=require(a91_0x38cea9(0xd1)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a91_0x38cea9(0x14c)),CLIUtils=require(a91_0x38cea9(0xfc)),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x38cea9(0xbb)),logger=createClassLogger(a91_0x38cea9(0xdd)),{v4:uuidv4}=require(a91_0x38cea9(0xf4)),util=require(a91_0x38cea9(0x105)),TestInfo=require(a91_0x38cea9(0xf2)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x2fdcef,_0x2cd658,_0x46ac5e){super(_0x2fdcef,_0x2cd658,_0x46ac5e);}async[a91_0x38cea9(0x11b)](_0x366162,_0x2461dc,_0xcc36b1={}){const _0x232005=a91_0x38cea9,_0x63eb12={};_0x63eb12[_0x232005(0x121)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x63eb12['tSSTQ']=function(_0x521be8,_0x24aec7){return _0x521be8===_0x24aec7;},_0x63eb12[_0x232005(0x13b)]=function(_0xdf8494,_0x5b0b1f){return _0xdf8494===_0x5b0b1f;},_0x63eb12[_0x232005(0xc0)]=function(_0x5093ee,_0x154db5){return _0x5093ee===_0x154db5;},_0x63eb12['AclaT']=_0x232005(0x142);const _0x42857d=_0x63eb12;await super[_0x232005(0x11b)](_0x366162,_0x2461dc,_0xcc36b1);const _0x4c34de=this[_0x232005(0xbc)](_0x366162,_0x2461dc,_0xcc36b1);if(!_0x4c34de){logger[_0x232005(0x178)](_0x42857d[_0x232005(0x121)]);return;}try{let _0x511c95,_0x59435e;switch(_0x366162){case TestFrameworkState[_0x232005(0x114)]:_0x511c95=_0xcc36b1[_0x232005(0xf8)],_0x59435e=TestInfo[_0x232005(0xc6)](_0x511c95['id']);if(_0x42857d[_0x232005(0xdf)](_0x2461dc,HookState[_0x232005(0xcc)])){logger[_0x232005(0x178)](_0x232005(0x163)+_0x511c95['id']);const _0x2932ee={};_0x2932ee[_0x232005(0x132)]=_0x59435e,_0x2932ee[_0x232005(0xea)]=_0x511c95,_0x4c34de[_0x232005(0x172)](this['parseCucumberTest'](_0x2932ee)),logger[_0x232005(0x178)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x511c95['id']),await this[_0x232005(0x10f)](_0x4c34de,_0x511c95['id']);}else{if(_0x42857d['LffYE'](_0x2461dc,HookState[_0x232005(0xce)])){const _0x4c5c1e={};_0x4c5c1e[_0x232005(0x132)]=_0x59435e,_0x4c5c1e[_0x232005(0xea)]=_0x511c95,_0x4c34de[_0x232005(0x172)](this[_0x232005(0x10c)](_0x4c5c1e)),await this[_0x232005(0x10f)](_0x4c34de,_0x511c95['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x42857d[_0x232005(0xc0)](_0x2461dc,HookState[_0x232005(0xce)])&&await this[_0x232005(0x10a)](_0x4c34de,_0x366162,_0xcc36b1);break;default:if(CLIUtils[_0x232005(0xb9)](_0x366162[_0x232005(0xe6)]()['split']('.')[0x1])){const _0x2d2e05=await this['trackHookEvent'](_0x4c34de,_0x366162,_0x2461dc,_0xcc36b1);_0x4c34de[_0x232005(0x172)](_0x2d2e05);}else logger['debug'](_0x232005(0x135)+_0x366162+_0x232005(0x154)+_0x2461dc);break;}}catch(_0xed3415){logger[_0x232005(0x127)](util[_0x232005(0x14e)](_0x42857d[_0x232005(0x177)],_0x366162,_0x2461dc,_0xcc36b1[_0x232005(0x13f)],_0xed3415));}_0xcc36b1[_0x232005(0x15a)]=_0x4c34de,await this[_0x232005(0xd0)](_0x4c34de,_0x366162,_0x2461dc,_0xcc36b1);}[a91_0x38cea9(0xbc)](_0x48f26d,_0x3fac97,_0x1442f6={}){const _0x623387=a91_0x38cea9,_0x482375={};_0x482375[_0x623387(0xc1)]=function(_0xf2f38b,_0x2f7463){return _0xf2f38b===_0x2f7463;};const _0x12ccf5=_0x482375;let _0x328ccf=null;return(_0x12ccf5['ANewL'](_0x48f26d,TestFrameworkState['INIT_TEST'])||_0x12ccf5[_0x623387(0xc1)](_0x48f26d,TestFrameworkState[_0x623387(0x11f)]))&&this[_0x623387(0x15f)](_0x48f26d,_0x1442f6),_0x328ccf=TestFramework[_0x623387(0x10e)](),_0x328ccf;}[a91_0x38cea9(0x15f)](_0x17ba22,_0x3d571d){const _0x416bad=a91_0x38cea9,_0x262489=CLIUtils['getCurrentInstanceName'](),_0x2b8b6e=TrackedInstance['createContext'](_0x262489);let _0x364885=null;logger[_0x416bad(0x178)](_0x416bad(0x12f)+_0x262489+_0x416bad(0x106)+_0x17ba22),_0x364885=new TestFrameworkInstance(_0x2b8b6e,this['getTestFrameworks'](),this[_0x416bad(0xe2)](),_0x17ba22,HookState[_0x416bad(0x11f)]),TestFramework['setTrackedInstance'](_0x2b8b6e,_0x364885),logger[_0x416bad(0x178)](_0x416bad(0xb2)+_0x2b8b6e[_0x416bad(0x14d)]()+'\x20target='+_0x262489);}[a91_0x38cea9(0x11c)](_0x2f8ae3){const _0x99c929=a91_0x38cea9,_0x10e17f={};_0x10e17f['VBcQh']=_0x99c929(0x15c);const _0x465e68=_0x10e17f,{testUUID:_0x456145,testData:_0x51c3b5}=_0x2f8ae3;if(!_0x51c3b5||!_0x51c3b5[_0x99c929(0xf4)])return logger[_0x99c929(0x178)](_0x465e68[_0x99c929(0xf3)]),{};const _0x3815e4=_0x456145,_0x153ea6=_0x51c3b5[_0x99c929(0xf4)],_0x25780d=this[_0x99c929(0x103)]()[0x0],_0x782d6=this[_0x99c929(0xe2)](),_0x5a771d={[TestFrameworkConstants[_0x99c929(0xf5)]]:_0x25780d,[TestFrameworkConstants[_0x99c929(0x131)]]:_0x782d6[_0x25780d],[TestFrameworkConstants[_0x99c929(0xef)]]:[],[TestFrameworkConstants[_0x99c929(0x174)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants[_0x99c929(0x175)]]:_0x3815e4,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x99c929(0x16c)],[TestFrameworkConstants[_0x99c929(0xb3)]]:_0x51c3b5['name']||'',[TestFrameworkConstants[_0x99c929(0x11e)]]:_0x51c3b5[_0x99c929(0x14a)]||'',[TestFrameworkConstants[_0x99c929(0x118)]]:_0x153ea6,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x51c3b5[_0x99c929(0xe9)]||'',[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0x51c3b5[_0x99c929(0xe0)]||'',[TestFrameworkConstants[_0x99c929(0xe3)]]:_0x51c3b5[_0x99c929(0x16a)]?.[_0x99c929(0x10d)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x51c3b5[_0x99c929(0x143)]||[],[TestFrameworkConstants[_0x99c929(0xda)]]:_0x51c3b5[_0x99c929(0x12d)]||new Date()[_0x99c929(0xcb)](),[TestFrameworkConstants[_0x99c929(0xf0)]]:_0x51c3b5[_0x99c929(0x155)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x51c3b5['scopes']||[],[TestFrameworkConstants[_0x99c929(0xb7)]]:_0x51c3b5[_0x99c929(0xdc)]?.[_0x99c929(0xe5)]||_0x51c3b5['name']||'',[TestFrameworkConstants[_0x99c929(0x139)]]:{},[TestFrameworkConstants[_0x99c929(0x128)]]:_0x51c3b5[_0x99c929(0x102)]||{}};TestInfo[_0x99c929(0xdb)](_0x153ea6,_0x5a771d),logger[_0x99c929(0x178)]('Parsed\x20cucumber\x20test:\x20'+_0x51c3b5['name']+_0x99c929(0xc4)+_0x3815e4);const _0x1146d2={};return _0x1146d2[_0x153ea6]=_0x5a771d,_0x1146d2;}[a91_0x38cea9(0x10c)](_0x29ba19){const _0xc71c47=a91_0x38cea9,_0x1367be={'oWwFn':_0xc71c47(0xbd),'RSfEU':_0xc71c47(0x14b),'yhGPs':function(_0x5880e1,_0x107583){return _0x5880e1===_0x107583;},'UQEzx':_0xc71c47(0x125),'HpLFg':'UnhandledError','ywMIt':function(_0x40333e,_0x33a005,_0x16b915){return _0x40333e(_0x33a005,_0x16b915);},'WDjoQ':function(_0xd36d9f,_0x3831a8){return _0xd36d9f>_0x3831a8;}},{testUUID:_0x92975b,testData:_0x30fe0c}=_0x29ba19;if(!_0x30fe0c||!_0x30fe0c[_0xc71c47(0xf4)])return logger[_0xc71c47(0x178)](_0x1367be['oWwFn']),{};const _0xaacd52=this[_0xc71c47(0xbc)](TestFrameworkState[_0xc71c47(0x114)],HookState[_0xc71c47(0xce)]),_0x2c89f2=_0x30fe0c[_0xc71c47(0xf4)],_0x44e631=TestInfo[_0xc71c47(0x15b)](_0x2c89f2)||{},_0x544dc0=_0x44e631?_0x44e631[TestFrameworkConstants[_0xc71c47(0x139)]]||{}:{},_0x1a3f7b={..._0x44e631,[TestFrameworkConstants[_0xc71c47(0xc5)]]:_0x30fe0c[_0xc71c47(0x179)]||_0x1367be[_0xc71c47(0xf1)],[TestFrameworkConstants[_0xc71c47(0x13e)]]:_0x30fe0c['finishedAt']||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()['toISOString'](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x544dc0,[TestFrameworkConstants[_0xc71c47(0xc8)]]:[],[TestFrameworkConstants[_0xc71c47(0x128)]]:_0x30fe0c[_0xc71c47(0x102)]||{}};_0x1367be[_0xc71c47(0x13a)](_0x30fe0c[_0xc71c47(0x179)],_0x1367be[_0xc71c47(0x12e)])&&_0x30fe0c['failure']&&(_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0x122)]]=_0x30fe0c[_0xc71c47(0xf9)]||_0x1367be['HpLFg'],_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0xc7)]]=_0x30fe0c[_0xc71c47(0xfe)]||'',_0x1a3f7b[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x30fe0c[_0xc71c47(0x168)]);const _0x34edee=TestInfo[_0xc71c47(0x15b)](_0x2c89f2)[TestFrameworkConstants[_0xc71c47(0x137)]]||{},_0x23c523=_0x1367be['ywMIt'](getManualUploadLogs,_0x34edee,_0xaacd52[_0xc71c47(0x156)]()['get'](_0x2c89f2)[TestFrameworkConstants[_0xc71c47(0x175)]]);if(_0x1367be['WDjoQ'](_0x23c523[_0xc71c47(0x13f)],0x0)){const _0x1b1416=_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0xc8)]]||[];_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0xc8)]]=[..._0x1b1416,..._0x23c523];}_0x30fe0c[_0xc71c47(0xff)]&&_0x1367be[_0xc71c47(0x141)](_0x30fe0c[_0xc71c47(0xff)][_0xc71c47(0x13f)],0x0)&&(_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0x174)]]=_0x30fe0c[_0xc71c47(0xff)]);TestInfo[_0xc71c47(0xdb)](_0x2c89f2,_0x1a3f7b),logger[_0xc71c47(0x178)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x30fe0c[_0xc71c47(0xe9)]+_0xc71c47(0x12c)+_0x30fe0c['result']);const _0x53c1da={};return _0x53c1da[_0x2c89f2]=_0x1a3f7b,_0x53c1da;}async[a91_0x38cea9(0xc9)](_0xf931be,_0xd968a0,_0x57f44c,_0x44486a){const _0x158ab7=a91_0x38cea9,_0x5df485={'gDKsm':_0x158ab7(0xbf),'IIavC':function(_0x34c8c3){return _0x34c8c3();},'CJdfU':function(_0x4b8cd8,_0x4ca655){return _0x4b8cd8 in _0x4ca655;},'leqNt':function(_0x584536,_0x4f1213){return _0x584536===_0x4f1213;},'gjgzP':function(_0x19fb5d,_0x4128f5){return _0x19fb5d===_0x4128f5;},'jdJsT':function(_0x464f68,_0x4464d1){return _0x464f68>_0x4464d1;},'QWiID':function(_0x13e4ed,_0x73ac98){return _0x13e4ed===_0x73ac98;},'gsKpR':'failed','emOpM':_0x158ab7(0x140),'RUoqF':_0x158ab7(0x126),'XNfUf':function(_0x38d928,_0x29f93f){return _0x38d928!==_0x29f93f;}},{hookData:_0x1dad48}=_0x44486a;if(!_0x1dad48)return logger[_0x158ab7(0x178)](_0x5df485[_0x158ab7(0x164)]),{};const _0x33a27d=_0x1dad48[_0x158ab7(0xf4)]||_0x5df485['IIavC'](uuidv4),_0x10bb73=_0x1dad48[_0x158ab7(0x120)],_0x16e13e=_0xd968a0[_0x158ab7(0xe6)]()['split']('.')[0x1],_0x9efb0e=TestInfo[_0x158ab7(0x15b)](_0x10bb73)[TestFrameworkConstants[_0x158ab7(0x139)]]||{},_0x11aeb7=_0xf931be[_0x158ab7(0x156)]()['get'](_0x10bb73);if(!_0x11aeb7)return logger['debug'](_0x158ab7(0xf6)+_0x10bb73+_0x158ab7(0xed)),this[_0x158ab7(0xb6)](_0xf931be,_0x10bb73,_0xd968a0,_0x57f44c,_0x44486a),{};let _0xd34177=_0x11aeb7[TestFrameworkConstants[_0x158ab7(0x15d)]];!_0xd34177&&(_0xd34177={});!_0x5df485[_0x158ab7(0x158)](_0x16e13e,_0xd34177)&&(_0xd34177[_0x16e13e]=[]);let _0xcb6c3b=_0x11aeb7[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0xcb6c3b&&(_0xcb6c3b={});!_0x5df485[_0x158ab7(0x158)](_0x16e13e,_0xcb6c3b)&&(_0xcb6c3b[_0x16e13e]=[]);const _0x409211={[TestFrameworkConstants[_0x158ab7(0x15d)]]:_0xd34177,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0xcb6c3b},_0xa1411f={};_0xa1411f[_0x10bb73]=_0x409211;const _0x3b5429=_0xa1411f;if(_0x5df485[_0x158ab7(0x133)](_0x57f44c,HookState[_0x158ab7(0xcc)])){const _0x2e5367={[TestFrameworkConstants[_0x158ab7(0xd4)]]:_0x33a27d,[TestFrameworkConstants[_0x158ab7(0x111)]]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants[_0x158ab7(0xb1)]]:_0x1dad48[_0x158ab7(0x117)],[TestFrameworkConstants[_0x158ab7(0xd6)]]:[],[TestFrameworkConstants[_0x158ab7(0x165)]]:_0x1dad48[_0x158ab7(0x15e)],[TestFrameworkConstants[_0x158ab7(0x139)]]:_0x9efb0e};_0x2e5367['key']=_0x16e13e;const _0x2009ee=_0x2e5367;_0xd34177[_0x16e13e][_0x158ab7(0xe7)](_0x2009ee),_0x3b5429[_0x10bb73][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x16e13e,logger[_0x158ab7(0x178)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x16e13e+_0x158ab7(0x138)+_0x2009ee+_0x158ab7(0xec)+_0x44486a);}else{if(_0x5df485[_0x158ab7(0xd5)](_0x57f44c,HookState[_0x158ab7(0xce)])){const _0x3ad272=_0x1dad48[_0x158ab7(0x179)],_0x3f4532=_0xd34177[_0x16e13e]||[];logger[_0x158ab7(0x178)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x3f4532+_0x158ab7(0x176)+_0x44486a);if(_0x5df485[_0x158ab7(0x100)](_0x3f4532[_0x158ab7(0x13f)],0x0)){const _0x3c54f2=_0x3f4532[_0x158ab7(0x12b)]();_0x5df485['QWiID'](_0x1dad48[_0x158ab7(0x179)],_0x5df485[_0x158ab7(0x129)])&&_0x1dad48['failure_data']?(_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x112)]]=_0x1dad48[_0x158ab7(0xf9)]||_0x5df485[_0x158ab7(0x170)],_0x3c54f2[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x1dad48[_0x158ab7(0xfe)]||'',_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x11a)]]=_0x1dad48[_0x158ab7(0x144)]):_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x111)]]=_0x5df485[_0x158ab7(0xeb)];_0x5df485[_0x158ab7(0xe4)](_0x3ad272,TestFrameworkConstants[_0x158ab7(0xcf)])&&(_0x3c54f2[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x3ad272);_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x145)]]=_0x1dad48[_0x158ab7(0x152)]||new Date()[_0x158ab7(0xcb)](),_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x139)]]=_0x9efb0e;const _0x3cafdd=_0x3c54f2[TestFrameworkConstants[_0x158ab7(0xd4)]];!_0xcb6c3b[_0x16e13e]&&(_0xcb6c3b[_0x16e13e]=[]),_0xcb6c3b[_0x16e13e]['push'](_0x3c54f2),_0x3b5429[_0x10bb73][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x16e13e;}}}return logger['debug']('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x1dad48['hook_type']+_0x158ab7(0xbe)+_0x33a27d+'\x20for\x20test:\x20'+_0x10bb73),_0x3b5429;}[a91_0x38cea9(0x12a)](_0x55d1a1){const _0x5a6fa4=a91_0x38cea9,_0x5b0c7e={};_0x5b0c7e[_0x5a6fa4(0x16f)]=_0x5a6fa4(0xca);const _0x49bd18=_0x5b0c7e;try{const _0x2d783c=_0x55d1a1[_0x5a6fa4(0xf8)]?_0x55d1a1['test']['id']:_0x55d1a1['hookData'][_0x5a6fa4(0x120)],_0x10fc7d=_0x55d1a1[_0x5a6fa4(0x15a)],_0x3e3b76=_0x10fc7d[_0x5a6fa4(0x108)](),_0x2ec9e0=_0x10fc7d[_0x5a6fa4(0x156)]()[_0x5a6fa4(0x123)](_0x2d783c);if(!_0x2ec9e0)return logger[_0x5a6fa4(0x178)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x2d783c),{};logger[_0x5a6fa4(0x178)](_0x5a6fa4(0xb0)+_0x2d783c);const {[TestFrameworkConstants[_0x5a6fa4(0xf5)]]:_0x34bb0d='',[TestFrameworkConstants[_0x5a6fa4(0x131)]]:_0x3f9e53='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x2c5b8a='',[TestFrameworkConstants[_0x5a6fa4(0x13e)]]:_0x182917=''}=_0x2ec9e0,_0x4eb2ae=_0x10fc7d[_0x5a6fa4(0x107)]()[_0x5a6fa4(0xe6)]()['split']('.')[0x1],_0xfdf552=_0x10fc7d[_0x5a6fa4(0x113)]()[_0x5a6fa4(0xe6)]()['split']('.')[0x1],_0x1fea20=global?.[_0x5a6fa4(0x14f)]??0x0,_0x2c285b=_0x10fc7d[_0x5a6fa4(0x173)](),_0x2b4a67=Buffer[_0x5a6fa4(0xfb)](JSON[_0x5a6fa4(0xd9)](_0x2ec9e0))[_0x5a6fa4(0xe6)](_0x49bd18[_0x5a6fa4(0x16f)]),_0x483783={'hash':_0x3e3b76['getId'](),'threadId':_0x3e3b76[_0x5a6fa4(0xcd)]()[_0x5a6fa4(0xe6)](),'processId':_0x3e3b76[_0x5a6fa4(0xf7)]()[_0x5a6fa4(0xe6)]()},_0x5cb4eb={};_0x5cb4eb[_0x5a6fa4(0x109)]=_0x1fea20,_0x5cb4eb['testFrameworkName']=_0x34bb0d,_0x5cb4eb[_0x5a6fa4(0x10b)]=_0x3f9e53,_0x5cb4eb[_0x5a6fa4(0xee)]=_0x4eb2ae,_0x5cb4eb[_0x5a6fa4(0x11d)]=_0xfdf552,_0x5cb4eb['startedAt']=_0x2c5b8a,_0x5cb4eb[_0x5a6fa4(0xe1)]=_0x182917,_0x5cb4eb[_0x5a6fa4(0xf4)]=_0x2c285b,_0x5cb4eb[_0x5a6fa4(0x13d)]=_0x2b4a67,_0x5cb4eb[_0x5a6fa4(0xd7)]=_0x483783;const _0x27e977=_0x5cb4eb;return logger[_0x5a6fa4(0x178)]('createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20'+_0x2d783c+_0x5a6fa4(0x160)+_0x4eb2ae+_0x5a6fa4(0x115)+_0xfdf552),_0x27e977;}catch(_0x9a39be){return logger[_0x5a6fa4(0x127)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util['format'](_0x9a39be)),{};}}async[a91_0x38cea9(0x10a)](_0x13d4f6,_0x101f7c,_0x5b7cd9){const _0x1df744=a91_0x38cea9,_0x51f7bf={'KbCfO':function(_0x5e3d19,_0x2554e3,_0x2ba840){return _0x5e3d19(_0x2554e3,_0x2ba840);},'ETTYz':function(_0x3c2e61,_0x3021f9){return _0x3c2e61===_0x3021f9;},'AYjvJ':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','uMAsw':function(_0x45a212,_0x18a7d4){return _0x45a212/_0x18a7d4;},'ifzyf':function(_0x323cbf,_0x258f79){return _0x323cbf<_0x258f79;},'Etjfg':function(_0x549f03,_0x396fe3){return _0x549f03*_0x396fe3;},'JgoNS':function(_0x475226,_0x547bf4){return _0x475226+_0x547bf4;},'ZwDiF':function(_0x44a5f8,_0x399b83){return _0x44a5f8+_0x399b83;},'dlNUv':'Cucumber\x20log\x20created\x20event'};try{const _0x943763=_0x5b7cd9[_0x1df744(0x132)],_0x5097df=_0x13d4f6[_0x1df744(0x156)]()[_0x1df744(0x123)](_0x943763),{[TestFrameworkConstants[_0x1df744(0xf5)]]:_0x16fd43='',[TestFrameworkConstants[_0x1df744(0x131)]]:_0x3f7844=''}=_0x5097df,_0xaa4b99=TestInfo[_0x1df744(0x169)](_0x943763),_0x426c91=TestInfo[_0x1df744(0x15b)](_0x943763)[TestFrameworkConstants[_0x1df744(0x137)]]||{},_0x2e5a04=_0x51f7bf[_0x1df744(0x13c)](getMediaArtifactsLogs,_0x426c91,_0x13d4f6[_0x1df744(0x156)]()[_0x1df744(0x123)](_0x943763)[TestFrameworkConstants[_0x1df744(0x175)]]),_0x37e0f4=(_0xaa4b99||[])[_0x1df744(0x148)](_0x2e5a04||[]);if(!_0x37e0f4||_0x51f7bf[_0x1df744(0xb8)](_0x37e0f4[_0x1df744(0x13f)],0x0)){logger['debug'](_0x51f7bf['AYjvJ']);return;}const _0x254aa9=0x28,_0x25697f=Math[_0x1df744(0x136)](_0x51f7bf[_0x1df744(0x116)](_0x37e0f4[_0x1df744(0x13f)],_0x254aa9));for(let _0x1e508c=0x0;_0x51f7bf[_0x1df744(0x110)](_0x1e508c,_0x25697f);_0x1e508c++){const _0x1846bd=_0x51f7bf[_0x1df744(0x151)](_0x1e508c,_0x254aa9),_0x75d96c=_0x51f7bf[_0x1df744(0x159)](_0x1846bd,_0x254aa9),_0x8da2eb=_0x37e0f4[_0x1df744(0x166)](_0x1846bd,_0x75d96c),_0x36d662={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x8da2eb,'testFrameworkName':_0x16fd43,'testFrameworkVersion':_0x3f7844,'testFrameworkState':_0x101f7c['toString']()['split']('.')[0x1]};logger[_0x1df744(0x178)](_0x1df744(0xc3)+_0x943763+_0x1df744(0xe8)+_0x51f7bf['JgoNS'](_0x1e508c,0x1)+'/'+_0x25697f+'\x20payload='+util[_0x1df744(0xb4)](_0x36d662));const _0x3cce1d=await GrpcClient[_0x1df744(0x150)]()[_0x1df744(0x101)](_0x36d662);logger[_0x1df744(0x178)](_0x1df744(0xc3)+_0x943763+_0x1df744(0xe8)+_0x51f7bf[_0x1df744(0xfd)](_0x1e508c,0x1)+'/'+_0x25697f+'\x20response='+util[_0x1df744(0xb4)](_0x3cce1d));}}catch(_0x3cb647){logger[_0x1df744(0x127)](_0x1df744(0x16b)+util[_0x1df744(0x14e)](_0x3cb647));}logger[_0x1df744(0x178)](_0x51f7bf[_0x1df744(0x171)]);}[a91_0x38cea9(0xb6)](_0x236f1c,_0x46695a,_0x4030be,_0x38df93,_0x35b1be){const _0x279609=a91_0x38cea9,_0x5eb33f={'testId':_0x46695a,'testFrameworkState':_0x4030be,'hookState':_0x38df93,'args':_0x35b1be,'timestamp':new Date()[_0x279609(0xcb)]()};_0x236f1c[_0x279609(0xb5)](_0x46695a,_0x5eb33f),logger['debug'](_0x279609(0x149)+_0x46695a+',\x20state:\x20'+_0x4030be+',\x20hookState:\x20'+_0x38df93);}async[a91_0x38cea9(0x10f)](_0x10bc05,_0x4c2dc8){const _0x27b41d=a91_0x38cea9,_0x450f59={};_0x450f59['Dpocf']=function(_0x43dc23,_0x411246){return _0x43dc23>_0x411246;};const _0x3f1a66=_0x450f59;if(!_0x10bc05['hasPendingHooks'](_0x4c2dc8))return;const _0x58fd7f=_0x10bc05[_0x27b41d(0x16d)](_0x4c2dc8);logger['debug'](_0x27b41d(0x153)+_0x58fd7f[_0x27b41d(0x13f)]+_0x27b41d(0x167)+_0x4c2dc8);for(const _0x291db6 of _0x58fd7f){try{const _0x436a67=await this[_0x27b41d(0xc9)](_0x10bc05,_0x291db6[_0x27b41d(0xee)],_0x291db6['hookState'],_0x291db6['args']);_0x436a67&&_0x3f1a66[_0x27b41d(0xd2)](Object[_0x27b41d(0x124)](_0x436a67)[_0x27b41d(0x13f)],0x0)&&_0x10bc05[_0x27b41d(0x172)](_0x436a67),await this[_0x27b41d(0xd0)](_0x10bc05,_0x291db6[_0x27b41d(0xee)],_0x291db6[_0x27b41d(0x11d)],_0x291db6[_0x27b41d(0x147)]);}catch(_0x193931){logger[_0x27b41d(0x127)](_0x27b41d(0x119)+_0x4c2dc8+_0x27b41d(0xc2)+_0x193931);}}_0x10bc05[_0x27b41d(0x162)](_0x4c2dc8),logger[_0x27b41d(0x178)](_0x27b41d(0x134)+_0x4c2dc8);}}module['exports']=CucumberTestFramework;
|