browserstack-node-sdk 1.65.6 → 1.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/generated/sdk-messages_pb.d.ts +118 -0
- package/generated/sdk-messages_pb.js +908 -0
- package/generated/sdk_grpc_pb.d.ts +10 -0
- package/generated/sdk_grpc_pb.js +74 -0
- package/package.json +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/detox/a11ySetup.js +1 -0
- package/src/bin/detox/command.js +2 -0
- package/src/bin/detox/modifyDetoxConf.js +1 -0
- package/src/bin/detox/traEmitter.js +1 -0
- 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 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/reporterArgs.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/detox-driver/a11y.js +574 -0
- package/src/detox-driver/allocationDriver.js +26 -0
- package/src/detox-driver/cloudPlatformAction.js +111 -0
- package/src/detox-driver/environment.js +253 -0
- package/src/detox-driver/expect.js +44 -0
- package/src/detox-driver/index.js +12 -0
- package/src/detox-driver/login-timeout-preload.js +25 -0
- package/src/detox-driver/runtimeDriver.js +351 -0
- package/src/detox-driver/session-reporter.js +41 -0
- package/src/detox-driver/tra-capture.js +81 -0
- 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 a85_0x2cd7a0=a85_0x331b;function a85_0x331b(_0xcb79de,_0x1e8a08){const _0x198ddb=a85_0x198d();return a85_0x331b=function(_0x331b85,_0x2c6a83){_0x331b85=_0x331b85-0xce;let _0x3bd45b=_0x198ddb[_0x331b85];return _0x3bd45b;},a85_0x331b(_0xcb79de,_0x1e8a08);}(function(_0x5a81ce,_0x4ac601){const _0x43cabc=a85_0x331b,_0x44b96f=_0x5a81ce();while(!![]){try{const _0x2ab988=-parseInt(_0x43cabc(0x127))/0x1+-parseInt(_0x43cabc(0x131))/0x2*(parseInt(_0x43cabc(0x193))/0x3)+-parseInt(_0x43cabc(0xe1))/0x4*(parseInt(_0x43cabc(0x148))/0x5)+parseInt(_0x43cabc(0x116))/0x6*(parseInt(_0x43cabc(0x17b))/0x7)+parseInt(_0x43cabc(0x128))/0x8*(parseInt(_0x43cabc(0xeb))/0x9)+-parseInt(_0x43cabc(0x130))/0xa*(parseInt(_0x43cabc(0xda))/0xb)+parseInt(_0x43cabc(0x197))/0xc;if(_0x2ab988===_0x4ac601)break;else _0x44b96f['push'](_0x44b96f['shift']());}catch(_0x5d2b87){_0x44b96f['push'](_0x44b96f['shift']());}}}(a85_0x198d,0xcc683));const fs=require('fs'),os=require('os'),url=require(a85_0x2cd7a0(0x12b)),path=require(a85_0x2cd7a0(0x10e)),{exec}=require('child_process'),{https}=require('follow-redirects'),yauzl=require(a85_0x2cd7a0(0x11d)),util=require('util'),{getFrameworkVersion}=require('../../helpers/test-observability/utils.js'),{threadId}=require(a85_0x2cd7a0(0x12e)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a85_0x2cd7a0(0x144)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x2cd7a0(0x191)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x2cd7a0(0x175)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x2cd7a0(0x138)),{createClassLogger}=require(a85_0x2cd7a0(0x180)),TestFrameworkInstance=require(a85_0x2cd7a0(0x1ae)),HookState=require('./state/hookState.js'),TestFrameworkState=require(a85_0x2cd7a0(0x153)),AutomationFrameworkState=require(a85_0x2cd7a0(0x15c)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a85_0x2cd7a0(0x159));class CLIUtils{[a85_0x2cd7a0(0xdc)]={};[a85_0x2cd7a0(0x165)]={};static['isDevelopmentEnv'](){const _0x4007b2=a85_0x2cd7a0,_0x2c5240={};_0x2c5240[_0x4007b2(0xe9)]=function(_0x29af71,_0x1d97d3){return _0x29af71===_0x1d97d3;},_0x2c5240[_0x4007b2(0x11b)]=_0x4007b2(0x18b);const _0x3aed69=_0x2c5240;return _0x3aed69[_0x4007b2(0xe9)](process[_0x4007b2(0x14a)]['BROWSERSTACK_CLI_ENV'],_0x3aed69[_0x4007b2(0x11b)]);}static[a85_0x2cd7a0(0x187)](){const _0x37fc42=a85_0x2cd7a0,_0x497e79={};return _0x497e79['id']=process[_0x37fc42(0x14a)][_0x37fc42(0x114)],_0x497e79['listen']=_0x37fc42(0xd7)+process[_0x37fc42(0x14a)][_0x37fc42(0x114)]+_0x37fc42(0x17d),_0x497e79;}static[a85_0x2cd7a0(0x18d)](){const _0x53158b=a85_0x2cd7a0,_0x5ac71c={'cskmr':function(_0x46d82a,_0x6f4393){return _0x46d82a(_0x6f4393);},'wiDZF':'../../../package.json'};return _0x5ac71c['cskmr'](require,_0x5ac71c[_0x53158b(0x1ac)])[_0x53158b(0x169)];}static[a85_0x2cd7a0(0xce)](){const _0x5682f2=a85_0x2cd7a0,_0x5803a7={};_0x5803a7['KPDGQ']=_0x5682f2(0x182);const _0x2e4945=_0x5803a7;return _0x2e4945[_0x5682f2(0x166)];}static async[a85_0x2cd7a0(0x1b7)](_0x4061e4){const _0x229d9e=a85_0x2cd7a0,_0x2116bc={'YdJky':_0x229d9e(0x122),'tcgPg':function(_0x4bfdac,_0x4fa9d8){return _0x4bfdac(_0x4fa9d8);},'UAlLR':function(_0xa4eea9,_0x3198e0){return _0xa4eea9(_0x3198e0);},'yEHMK':_0x229d9e(0xff)};logger[_0x229d9e(0x141)](_0x2116bc[_0x229d9e(0x119)]);const _0x4a55d7=process[_0x229d9e(0x14a)]['SDK_CLI_BIN_PATH'];if(!_0x2116bc[_0x229d9e(0x124)](isNullOrEmpty,_0x4a55d7))return logger[_0x229d9e(0x141)](_0x229d9e(0x17c)+_0x4a55d7),_0x4a55d7;try{const _0x59e9e5=this[_0x229d9e(0x14d)]();if(_0x2116bc[_0x229d9e(0xde)](isNullOrEmpty,_0x59e9e5))throw new Error(_0x2116bc['yEHMK']);const _0x50a226=this[_0x229d9e(0xdb)](_0x59e9e5),_0x1e010f=await this[_0x229d9e(0x19e)](_0x50a226,_0x59e9e5,_0x4061e4);return logger['debug'](_0x229d9e(0x145)+_0x1e010f),_0x1e010f;}catch(_0x314b6a){logger[_0x229d9e(0x141)](_0x229d9e(0x1a1)+util[_0x229d9e(0x189)](_0x314b6a));}return null;}static async[a85_0x2cd7a0(0x19e)](_0x5230df,_0x4933a3,_0x3e2357){const _0x56697b=a85_0x2cd7a0,_0x5cabcd={'cOMIm':function(_0x2c8a48){return _0x2c8a48();},'tPoog':function(_0x28976c,_0x4c062e){return _0x28976c(_0x4c062e);},'Wyiju':function(_0x45c766,_0x11d787,_0x7af102){return _0x45c766(_0x11d787,_0x7af102);},'pwPNv':_0x56697b(0x1a9),'stKxt':_0x56697b(0x12b),'HOpYQ':function(_0xbeaae3,_0x10df22){return _0xbeaae3(_0x10df22);}};PerformanceTester[_0x56697b(0x108)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);try{logger[_0x56697b(0xe5)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x5230df);const _0x4fc5d3=_0x5cabcd[_0x56697b(0x123)](getHostInfo),_0x5a6295={'sdk_version':CLIUtils[_0x56697b(0x18d)](),'os':_0x4fc5d3[_0x56697b(0x139)],'os_arch':_0x4fc5d3[_0x56697b(0x12a)],'cli_version':'0','sdk_language':this[_0x56697b(0xce)]()};!_0x5cabcd[_0x56697b(0x19f)](isNullOrEmpty,_0x5230df)&&(_0x5a6295[_0x56697b(0x142)]=await this[_0x56697b(0x134)](_0x5230df+_0x56697b(0x154)));const _0x1de4b7=await this[_0x56697b(0x184)](_0x5a6295,_0x3e2357);process[_0x56697b(0x14a)][_0x56697b(0x172)]&&(logger[_0x56697b(0xe5)](_0x56697b(0x161)+process[_0x56697b(0x14a)][_0x56697b(0x172)]),_0x1de4b7['data']['url']=process[_0x56697b(0x14a)][_0x56697b(0x172)]);if(_0x5cabcd['Wyiju'](nestedKeyValue,_0x1de4b7,[_0x5cabcd[_0x56697b(0x1ad)],_0x5cabcd[_0x56697b(0x11e)]])){logger[_0x56697b(0x141)](_0x56697b(0x15d)+_0x5a6295[_0x56697b(0x142)]);if(!_0x5cabcd['HOpYQ'](isNullOrEmpty,_0x5230df)&&this[_0x56697b(0x19b)](_0x5230df))return logger['warn'](_0x56697b(0x1aa)+_0x5230df),_0x5230df;return await this['downloadLatestBinary'](_0x5cabcd[_0x56697b(0xdd)](nestedKeyValue,_0x1de4b7,[_0x5cabcd[_0x56697b(0x1ad)],_0x5cabcd['stKxt']]),_0x4933a3);}return _0x5230df;}finally{PerformanceTester[_0x56697b(0x120)](PerformanceEvents[_0x56697b(0x132)]);}}static[a85_0x2cd7a0(0x14d)](){const _0x2a7846=a85_0x2cd7a0,_0x3efb8c={'zNqsf':function(_0x366802,_0x3f2405){return _0x366802(_0x3f2405);},'fLOqt':_0x2a7846(0xff),'unfJQ':_0x2a7846(0x112)},_0x562824=this[_0x2a7846(0x125)]();try{if(_0x3efb8c[_0x2a7846(0x11f)](isNullOrEmpty,_0x562824))throw new Error(_0x3efb8c[_0x2a7846(0xd9)]);const _0x51a416=path['join'](_0x562824,_0x3efb8c['unfJQ']);return!fs[_0x2a7846(0x19a)](_0x51a416)&&_0x3efb8c[_0x2a7846(0x11f)](createDir,_0x51a416),_0x51a416;}catch(_0x129e1a){logger[_0x2a7846(0x141)](_0x2a7846(0x16f)+util[_0x2a7846(0x189)](_0x129e1a));}}static['getWritableDir'](){const _0x484c31=a85_0x2cd7a0,_0x3cc232={'xBNVL':_0x484c31(0x106),'UILVf':function(_0x3dafc7,_0x2a2772){return _0x3dafc7(_0x2a2772);},'zScUT':function(_0x237639,_0x30938b){return _0x237639(_0x30938b);},'QWhhY':function(_0xb240fd,_0x138eb4){return _0xb240fd(_0x138eb4);},'cuLci':function(_0x432819,_0x102433){return _0x432819(_0x102433);}},_0x4dc347=[process['env'][_0x484c31(0x109)],path[_0x484c31(0x143)](os['homedir'](),_0x3cc232[_0x484c31(0x14b)]),path[_0x484c31(0x143)](os[_0x484c31(0xe7)](),_0x3cc232[_0x484c31(0x14b)])];for(const _0x23e852 of _0x4dc347){if(_0x3cc232[_0x484c31(0x136)](isNullOrEmpty,_0x23e852))continue;try{if(fs[_0x484c31(0x19a)](_0x23e852)){logger[_0x484c31(0x141)](_0x484c31(0x176)+_0x23e852+'\x20already\x20exists');if(!_0x3cc232['UILVf'](isModifiable,_0x23e852)){logger[_0x484c31(0x141)]('Setting\x20required\x20permissions\x20to\x20'+_0x23e852);const _0x379ce3=_0x3cc232[_0x484c31(0x136)](setReadWriteExecuteAccess,_0x23e852);if(!_0x3cc232[_0x484c31(0xf0)](isTrue,_0x379ce3)){logger[_0x484c31(0x1b8)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x23e852);continue;}}}else{logger[_0x484c31(0x141)]('Folder\x20does\x20not\x20exist:\x20'+_0x23e852),_0x3cc232[_0x484c31(0x199)](createDir,_0x23e852),logger[_0x484c31(0x141)](_0x484c31(0x167)+_0x23e852);const _0x39fa38=_0x3cc232[_0x484c31(0x136)](setReadWriteExecuteAccess,_0x23e852);!_0x3cc232[_0x484c31(0xdf)](isTrue,_0x39fa38)&&logger[_0x484c31(0x1b8)](_0x484c31(0xee)+_0x23e852);}return _0x23e852;}catch(_0xd34030){logger[_0x484c31(0x186)](_0x484c31(0x1a8)+util[_0x484c31(0x189)](_0xd34030));}}return null;}static['getExistingCliPath'](_0xc65936){const _0x2c9e36=a85_0x2cd7a0,_0x3d7079={};_0x3d7079['bMnHG']=function(_0x17bf48,_0x453405){return _0x17bf48>_0x453405;};const _0x32d48e=_0x3d7079;try{if(!fs['existsSync'](_0xc65936)||!fs[_0x2c9e36(0x1b6)](_0xc65936)[_0x2c9e36(0x1b1)]())return'';const _0x3b5152=fs['readdirSync'](_0xc65936)[_0x2c9e36(0x13b)](_0x4ad326=>path[_0x2c9e36(0x143)](_0xc65936,_0x4ad326))[_0x2c9e36(0x1a7)](_0x86351=>fs[_0x2c9e36(0x1b6)](_0x86351)[_0x2c9e36(0x10d)]()&&path['basename'](_0x86351)[_0x2c9e36(0x12c)](_0x2c9e36(0xf2)));if(_0x32d48e[_0x2c9e36(0x19c)](_0x3b5152['length'],0x0)){const _0x4e68d0=_0x3b5152[_0x2c9e36(0x13b)](_0x22d28f=>({'filePath':_0x22d28f,'mtime':fs['statSync'](_0x22d28f)[_0x2c9e36(0x146)]}))[_0x2c9e36(0x133)]((_0x582d6d,_0x3415ce)=>{const _0x1e7b0a=_0x2c9e36;if(!_0x582d6d||!_0x582d6d[_0x1e7b0a(0x146)])return _0x3415ce;if(_0x32d48e[_0x1e7b0a(0x19c)](_0x3415ce[_0x1e7b0a(0x146)],_0x582d6d[_0x1e7b0a(0x146)]))return _0x3415ce;return _0x582d6d;},{});return _0x4e68d0?_0x4e68d0[_0x2c9e36(0x13d)]:'';}return'';}catch(_0x16233e){return logger[_0x2c9e36(0x186)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x2c9e36(0x189)](_0x16233e)),'';}}static ['requestToUpdateCLI']=async(_0x2c246c,_0x5e0f89)=>{const _0x35c7c5=a85_0x2cd7a0,_0x12a31f={'kYMgT':function(_0x1ec752,_0x3f12ac,_0x145b15,_0x403907,_0x203f3c){return _0x1ec752(_0x3f12ac,_0x145b15,_0x403907,_0x203f3c);},'rbaUq':_0x35c7c5(0x194)},_0x505c04={};_0x505c04['qs']=_0x2c246c,_0x505c04[_0x35c7c5(0x16e)]=!![];const _0x1dbfd5=await _0x12a31f[_0x35c7c5(0x171)](nodeRequest,_0x12a31f[_0x35c7c5(0x13f)],UPDATED_CLI_ENDPOINT,_0x505c04,_0x5e0f89);return logger[_0x35c7c5(0x141)](_0x35c7c5(0x11c)+JSON[_0x35c7c5(0xd3)](_0x1dbfd5)),_0x1dbfd5;};static[a85_0x2cd7a0(0x19b)](_0x340d4f){const _0x5c3515=a85_0x2cd7a0;try{const _0x1b6df0=fs['openSync'](_0x340d4f,'r+');return fs[_0x5c3515(0x1b2)](_0x1b6df0),![];}catch(_0x2df76f){if(BINARY_BUSY_ERROR_CODES['includes'](_0x2df76f[_0x5c3515(0x18c)]))return logger[_0x5c3515(0x141)](_0x5c3515(0x13c)+_0x340d4f),!![];return logger[_0x5c3515(0x141)](_0x5c3515(0x101)+_0x2df76f[_0x5c3515(0x16c)]),![];}}static[a85_0x2cd7a0(0x134)](_0x36fc67,_0x461dbf=''){const _0x5cc2c1=a85_0x2cd7a0,_0x23d154={'JomnW':_0x5cc2c1(0x169),'DlOuf':function(_0x5b5ab6,_0x6a99d){return _0x5b5ab6(_0x6a99d);},'rNQqY':function(_0x22cc28,_0x3f7a0f){return _0x22cc28(_0x3f7a0f);},'bjcij':_0x5cc2c1(0x149),'pymSs':function(_0x3cb29f,_0x1554cf){return _0x3cb29f(_0x1554cf);},'xcDYO':function(_0x5c361b,_0xdd3e73,_0x5cd99f,_0x3649e6){return _0x5c361b(_0xdd3e73,_0x5cd99f,_0x3649e6);},'lZmyh':_0x5cc2c1(0x186)};return new Promise((_0x12fba0,_0x34f254)=>{const _0x557b68=_0x5cc2c1,_0x2e88bc={'yvrhv':function(_0x38f86e,_0x1aa653){const _0xc3922c=a85_0x331b;return _0x23d154[_0xc3922c(0x164)](_0x38f86e,_0x1aa653);},'LjRXY':_0x23d154[_0x557b68(0xf8)]},_0x44dc5a={};_0x44dc5a[_0x557b68(0x185)]=_0x461dbf,_0x44dc5a[_0x557b68(0x17a)]=0x1388;const _0x22a8cc=_0x23d154['xcDYO'](exec,_0x36fc67,_0x44dc5a,(_0x512c9a,_0x2b956b,_0x5a2ba0)=>{const _0x5a67ae=_0x557b68;if(_0x512c9a){if(_0x36fc67[_0x5a67ae(0x135)](_0x23d154[_0x5a67ae(0x16b)])&&(_0x2b956b[_0x5a67ae(0x183)]()||_0x5a2ba0[_0x5a67ae(0x183)]())){const _0x4952d4=_0x2b956b[_0x5a67ae(0x183)]()||_0x5a2ba0[_0x5a67ae(0x183)]();logger['debug'](_0x5a67ae(0xd0)+_0x4952d4+'\x22'),_0x23d154[_0x5a67ae(0x155)](_0x12fba0,_0x4952d4);}else _0x23d154[_0x5a67ae(0x164)](_0x12fba0,_0x5a2ba0[_0x5a67ae(0x183)]()||_0x23d154[_0x5a67ae(0xf8)]);}else logger[_0x5a67ae(0x141)]('Resolving\x20with\x20stdout:\x20\x22'+_0x2b956b['trim']()+'\x22'),_0x23d154['pymSs'](_0x12fba0,_0x2b956b[_0x5a67ae(0x183)]());});_0x22a8cc['on'](_0x23d154[_0x557b68(0x168)],()=>{const _0x2432f7=_0x557b68;_0x2e88bc[_0x2432f7(0x170)](_0x12fba0,_0x2e88bc[_0x2432f7(0x190)]);});});}static [a85_0x2cd7a0(0x1a2)]=async(_0x29d073,_0x789cd5)=>{const _0x1927b8=a85_0x2cd7a0,_0x4426e6={'fqJpj':_0x1927b8(0x16d),'PQdpS':function(_0x48fd1f,_0x48bca5){return _0x48fd1f(_0x48bca5);},'hKaBq':_0x1927b8(0xf6),'wIqLv':function(_0x4d7904,_0x2ff761){return _0x4d7904(_0x2ff761);},'rdGBZ':function(_0x50bbde,_0x32c02b){return _0x50bbde>=_0x32c02b;},'sLYQe':_0x1927b8(0xd1),'DTXEC':_0x1927b8(0x1b5),'SiNmd':_0x1927b8(0x186),'MMJZD':'Failed\x20to\x20download\x20SDK\x20binary:\x20%s'};PerformanceTester[_0x1927b8(0x108)](PerformanceEvents[_0x1927b8(0x198)]),logger['debug'](_0x1927b8(0x17e)+_0x29d073);try{const _0x2b2612=url['parse'](_0x29d073),_0x256727=path[_0x1927b8(0x143)](_0x789cd5,'downloaded_file_'+process[_0x1927b8(0x16a)]+'.zip'),_0xc7100c=fs[_0x1927b8(0xfc)](_0x256727);return new Promise((_0x23f340,_0x590dec)=>{const _0xaf8414=_0x1927b8,_0xf3041b={'zFSul':_0x4426e6['fqJpj'],'PyQHd':function(_0x3d8169,_0x18a921){return _0x4426e6['PQdpS'](_0x3d8169,_0x18a921);},'smfQx':function(_0x4e3a33,_0x3ab596){const _0x55f723=a85_0x331b;return _0x4426e6[_0x55f723(0x1af)](_0x4e3a33,_0x3ab596);},'RXxnZ':_0x4426e6[_0xaf8414(0x1b0)],'zeOiG':function(_0x17f151,_0x25b948){const _0x98f311=_0xaf8414;return _0x4426e6[_0x98f311(0x102)](_0x17f151,_0x25b948);},'ULbUx':function(_0x30151a,_0x2ca57e){return _0x4426e6['PQdpS'](_0x30151a,_0x2ca57e);},'YLuvh':function(_0x33cadf,_0x50e093){const _0x189799=_0xaf8414;return _0x4426e6[_0x189799(0x129)](_0x33cadf,_0x50e093);},'wfTcJ':_0x4426e6[_0xaf8414(0xfa)],'OYNKO':_0x4426e6[_0xaf8414(0xd4)],'OziZp':_0x4426e6[_0xaf8414(0x196)],'oLOGU':function(_0x44929b,_0x26e529){const _0x1bc388=_0xaf8414;return _0x4426e6[_0x1bc388(0x1af)](_0x44929b,_0x26e529);}};https[_0xaf8414(0xf1)](_0x2b2612,function(_0x1def23){const _0x13a9eb=_0xaf8414,_0xce963b={'SVtLh':_0xf3041b[_0x13a9eb(0x15a)],'XSHVd':function(_0x515a17,_0x4c899a){return _0xf3041b['zeOiG'](_0x515a17,_0x4c899a);},'HEzrT':function(_0x43dc79,_0x48e42a){const _0x4fa84a=_0x13a9eb;return _0xf3041b[_0x4fa84a(0xf9)](_0x43dc79,_0x48e42a);}},_0x20525d=null;if(_0x1def23[_0x13a9eb(0xf4)]&&_0xf3041b[_0x13a9eb(0xe8)](_0x1def23['statusCode'],0x190)){const _0x291c34=new Error(_0x13a9eb(0x11a)+_0x1def23[_0x13a9eb(0xf4)]+_0x13a9eb(0x177)+_0x29d073);_0x291c34[_0x13a9eb(0x18c)]=_0xf3041b[_0x13a9eb(0x1b9)],_0x291c34[_0x13a9eb(0xf4)]=_0x1def23[_0x13a9eb(0xf4)],logger['error'](util[_0x13a9eb(0x189)](_0xf3041b[_0x13a9eb(0x192)],_0x1def23[_0x13a9eb(0xf4)])),PerformanceTester['end'](PerformanceEvents[_0x13a9eb(0x198)],![],'HTTP\x20'+_0x1def23[_0x13a9eb(0xf4)]),_0x1def23[_0x13a9eb(0x140)](),_0xc7100c['destroy'](),fs[_0x13a9eb(0xd2)](_0x256727,()=>{}),_0xf3041b[_0x13a9eb(0xcf)](_0x590dec,_0x291c34);return;}_0x1def23[_0x13a9eb(0xf7)](_0xc7100c),_0x1def23['on'](_0xf3041b[_0x13a9eb(0x14f)],function(_0x5aae4e){const _0x1708aa=_0x13a9eb;logger['error'](util[_0x1708aa(0x189)](_0xf3041b['zFSul'],_0x5aae4e)),PerformanceTester[_0x1708aa(0x120)](PerformanceEvents[_0x1708aa(0x198)],![],util[_0x1708aa(0x189)](_0x5aae4e)),_0xf3041b['PyQHd'](_0x590dec,_0x5aae4e);}),_0xc7100c['on'](_0xf3041b[_0x13a9eb(0x14f)],function(_0x50e249){const _0x2f2c7d=_0x13a9eb;logger['error'](util[_0x2f2c7d(0x189)](_0xce963b[_0x2f2c7d(0x181)],_0x50e249)),PerformanceTester[_0x2f2c7d(0x120)](PerformanceEvents[_0x2f2c7d(0x198)],![],util['format'](_0x50e249)),_0xce963b[_0x2f2c7d(0x12d)](_0x590dec,_0x50e249);}),CLIUtils['downloadFileStream'](_0xc7100c,_0x20525d,_0x256727,_0x789cd5,_0x327e0b=>{const _0x12c4c2=_0x13a9eb;PerformanceTester[_0x12c4c2(0x120)](PerformanceEvents[_0x12c4c2(0x198)]),_0xce963b[_0x12c4c2(0x151)](_0x23f340,_0x327e0b);},_0x644e64=>{const _0x5c640c=_0x13a9eb;PerformanceTester[_0x5c640c(0x120)](PerformanceEvents[_0x5c640c(0x198)],![],util[_0x5c640c(0x189)](_0x644e64)),_0xf3041b[_0x5c640c(0x1a0)](_0x590dec,_0x644e64);});})['on'](_0x4426e6[_0xaf8414(0x196)],function(_0x45aee1){const _0x2cc527=_0xaf8414;logger[_0x2cc527(0x186)](_0x2cc527(0x157)+util['format'](_0x45aee1)),PerformanceTester[_0x2cc527(0x120)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x2cc527(0x189)](_0x45aee1)),_0xf3041b[_0x2cc527(0x1ab)](_0x590dec,_0x45aee1);});});}catch(_0x2c68b0){PerformanceTester[_0x1927b8(0x120)](PerformanceEvents[_0x1927b8(0x198)],![],util[_0x1927b8(0x189)](_0x2c68b0)),logger[_0x1927b8(0x186)](util[_0x1927b8(0x189)](_0x4426e6[_0x1927b8(0x111)],_0x2c68b0));throw _0x2c68b0;}};static['downloadFileStream'](_0x2477f7,_0x4276f1,_0x2fadab,_0x4339a5,_0x471138,_0x2f3057){const _0x39d1b4=a85_0x2cd7a0,_0x297869={'thBKO':function(_0x3409ab,_0x37b0a4){return _0x3409ab(_0x37b0a4);},'ghvig':function(_0x264384,_0x408bf4){return _0x264384!==_0x408bf4;},'KKXAy':'EXDEV','kKnkx':_0x39d1b4(0x118),'VuNCH':'entry','ScenV':'error','DlGbA':_0x39d1b4(0x120),'oWhFu':_0x39d1b4(0x113)};_0x2477f7['on'](_0x297869['oWhFu'],function(){const _0x1d7616=_0x39d1b4,_0x4dfa85={'xynWl':function(_0x462b08,_0x2544ba){const _0x23b3f0=a85_0x331b;return _0x297869[_0x23b3f0(0x15f)](_0x462b08,_0x2544ba);},'Lbyrq':_0x297869[_0x1d7616(0x137)],'FeShF':_0x297869[_0x1d7616(0x115)],'TcpzQ':function(_0x436ead,_0x33ef55){const _0x895d78=_0x1d7616;return _0x297869[_0x895d78(0x104)](_0x436ead,_0x33ef55);},'DgTUf':function(_0x5ac9cb,_0x343def){const _0x12e004=_0x1d7616;return _0x297869[_0x12e004(0x15f)](_0x5ac9cb,_0x343def);},'AJyGQ':_0x297869[_0x1d7616(0x12f)]},_0x339e18={};_0x339e18[_0x1d7616(0x188)]=!![],yauzl[_0x1d7616(0x174)](_0x2fadab,_0x339e18,function(_0x10be30,_0x554c97){const _0x5c2814=_0x1d7616,_0x38d843={'NqAXU':function(_0x32f831,_0x36ddf7){return _0x297869['thBKO'](_0x32f831,_0x36ddf7);},'rgHsD':function(_0x174c79,_0x2ef18f){const _0x280db8=a85_0x331b;return _0x297869[_0x280db8(0x104)](_0x174c79,_0x2ef18f);},'oMneY':_0x297869['KKXAy'],'jfGoc':function(_0x124cf3,_0x1ba7d1){const _0x39ee71=a85_0x331b;return _0x297869[_0x39ee71(0x15f)](_0x124cf3,_0x1ba7d1);},'kSNFW':function(_0x59599d,_0x4ef7d3){const _0x1eb3e0=a85_0x331b;return _0x297869[_0x1eb3e0(0x15f)](_0x59599d,_0x4ef7d3);},'udjdc':_0x297869[_0x5c2814(0xe0)]};if(_0x10be30){_0x297869[_0x5c2814(0x15f)](_0x2f3057,_0x10be30);return;}_0x554c97[_0x5c2814(0xfd)](),_0x554c97['on'](_0x297869[_0x5c2814(0x17f)],_0x113150=>{const _0x3330c5=_0x5c2814,_0x36d362={'nBozx':function(_0x5bde8b,_0x514b59){const _0x5734ee=a85_0x331b;return _0x4dfa85[_0x5734ee(0x162)](_0x5bde8b,_0x514b59);},'uhfeG':_0x4dfa85[_0x3330c5(0xed)],'nhIHb':function(_0x5bdc50,_0xa873b1){return _0x4dfa85['xynWl'](_0x5bdc50,_0xa873b1);},'uBfDM':_0x4dfa85['FeShF']};if(/\/$/[_0x3330c5(0x14e)](_0x113150[_0x3330c5(0x18f)])){_0x554c97[_0x3330c5(0xfd)]();return;}!_0x4276f1&&(_0x4276f1=_0x113150[_0x3330c5(0x18f)]);if(_0x4dfa85[_0x3330c5(0x10c)](_0x113150[_0x3330c5(0x18f)],_0x4276f1))_0x554c97[_0x3330c5(0xfd)]();else{const _0x3a2df2=_0x113150['fileName'],_0x4123f7=path[_0x3330c5(0x143)](_0x4339a5,_0x3a2df2+_0x3330c5(0x18e)+process['pid']);let _0x331f37;try{_0x331f37=fs['createWriteStream'](_0x4123f7);}catch(_0x3a737f){if(BINARY_BUSY_ERROR_CODES[_0x3330c5(0x135)](_0x3a737f[_0x3330c5(0x18c)])){const _0x2ee134=path['join'](_0x4339a5,_0x3a2df2);if(fs[_0x3330c5(0x19a)](_0x2ee134)){logger[_0x3330c5(0x1b8)](_0x3330c5(0x15e)+_0x3a2df2),fs[_0x3330c5(0xd2)](_0x2fadab,_0xeb7235=>{const _0x50a439=_0x3330c5;_0xeb7235&&logger[_0x50a439(0x1b8)](_0x50a439(0x173)+_0x2fadab);}),_0x4dfa85['xynWl'](_0x471138,_0x2ee134);return;}logger[_0x3330c5(0x1b8)](_0x3330c5(0x1ba)+_0x3a2df2);}_0x4dfa85[_0x3330c5(0x150)](_0x2f3057,_0x3a737f);return;}_0x331f37['on'](_0x4dfa85[_0x3330c5(0xe2)],_0x16b71e=>{const _0x4d6b61=_0x3330c5;if(BINARY_BUSY_ERROR_CODES['includes'](_0x16b71e[_0x4d6b61(0x18c)])){const _0x556eec=path['join'](_0x4339a5,_0x3a2df2);_0x331f37[_0x4d6b61(0x113)](),fs[_0x4d6b61(0x19a)](_0x556eec)?(logger[_0x4d6b61(0x1b8)](_0x4d6b61(0x160)+_0x16b71e['message']),_0x554c97[_0x4d6b61(0x113)](),fs[_0x4d6b61(0xd2)](_0x2fadab,_0x5e0ed3=>{const _0x31b1b2=_0x4d6b61;_0x5e0ed3&&logger[_0x31b1b2(0x1b8)](_0x31b1b2(0x173)+_0x2fadab);}),_0x36d362['nBozx'](_0x471138,_0x556eec)):(logger[_0x4d6b61(0x1b8)]('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x16b71e['message']),fs[_0x4d6b61(0xd2)](_0x4123f7,()=>{}),_0x36d362[_0x4d6b61(0x117)](_0x2f3057,_0x16b71e));}else fs['unlink'](_0x4123f7,()=>{}),_0x36d362[_0x4d6b61(0x117)](_0x2f3057,_0x16b71e);}),_0x554c97[_0x3330c5(0x1a4)](_0x113150,function(_0x40972d,_0x43e321){const _0x25e911=_0x3330c5;if(_0x40972d){fs[_0x25e911(0xd2)](_0x4123f7,()=>{}),_0x36d362['nhIHb'](_0x2f3057,_0x40972d);return;}_0x43e321['on'](_0x36d362[_0x25e911(0x158)],function(){const _0x140b17=_0x25e911;_0x331f37[_0x140b17(0x120)](),_0x331f37['on'](_0x36d362[_0x140b17(0xf5)],function(){const _0x1c7778=_0x140b17;_0x554c97[_0x1c7778(0xfd)]();});}),_0x43e321[_0x25e911(0xf7)](_0x331f37);});}}),_0x554c97['on'](_0x297869[_0x5c2814(0x12f)],_0x1ee50d=>{_0x38d843['NqAXU'](_0x2f3057,_0x1ee50d);}),_0x554c97[_0x5c2814(0xf3)](_0x297869[_0x5c2814(0x115)],()=>{const _0x5010c9=_0x5c2814,_0x146ba1={'ScIao':function(_0x8592a1,_0x454393){const _0x48856d=a85_0x331b;return _0x38d843[_0x48856d(0x1b3)](_0x8592a1,_0x454393);},'MRejj':_0x38d843[_0x5010c9(0x13e)],'osiDZ':function(_0x4043db,_0x46364a){return _0x38d843['jfGoc'](_0x4043db,_0x46364a);},'QScGk':function(_0x20d594,_0x30e900){const _0x23d068=_0x5010c9;return _0x38d843[_0x23d068(0x15b)](_0x20d594,_0x30e900);},'Yzabj':function(_0x4c18cb,_0x58e49d){return _0x38d843['jfGoc'](_0x4c18cb,_0x58e49d);}};fs[_0x5010c9(0xd2)](_0x2fadab,_0x290618=>{const _0x26b3eb=_0x5010c9;_0x290618&&logger[_0x26b3eb(0x1b8)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x2fadab);});const _0x382b58=path[_0x5010c9(0x143)](_0x4339a5,_0x4276f1+_0x5010c9(0x18e)+process['pid']),_0x47970c=path[_0x5010c9(0x143)](_0x4339a5,_0x4276f1);fs[_0x5010c9(0x156)](_0x382b58,_0x38d843[_0x5010c9(0x178)],function(_0x264068){const _0xfedbf6=_0x5010c9;if(_0x264068){_0x554c97['close'](),fs[_0xfedbf6(0xd2)](_0x382b58,()=>{}),_0x38d843[_0xfedbf6(0x10b)](_0x2f3057,_0x264068);return;}fs[_0xfedbf6(0x110)](_0x382b58,_0x47970c,function(_0x43df0b){const _0x5df03b=_0xfedbf6;if(_0x43df0b){if(_0x146ba1[_0x5df03b(0x163)](_0x43df0b[_0x5df03b(0x18c)],_0x146ba1[_0x5df03b(0x152)])){_0x554c97['close'](),fs[_0x5df03b(0xd2)](_0x382b58,()=>{}),_0x146ba1[_0x5df03b(0x10a)](_0x2f3057,_0x43df0b);return;}logger['warn'](_0x5df03b(0xd8)+_0x43df0b[_0x5df03b(0x16c)]);try{fs[_0x5df03b(0x147)](_0x382b58,_0x47970c);}catch(_0x43cc27){_0x554c97[_0x5df03b(0x113)](),fs[_0x5df03b(0xd2)](_0x382b58,()=>{}),_0x146ba1[_0x5df03b(0x121)](_0x2f3057,_0x43cc27);return;}fs[_0x5df03b(0xd2)](_0x382b58,_0x2d1684=>{const _0x447843=_0x5df03b;_0x2d1684&&logger[_0x447843(0x1b8)](_0x447843(0xe3)+_0x2d1684[_0x447843(0x16c)]);});}_0x554c97[_0x5df03b(0x113)](),_0x146ba1[_0x5df03b(0xea)](_0x471138,_0x47970c);});});});});});}static['getTestFrameworkDetail'](){const _0x20a082=a85_0x2cd7a0;if(process[_0x20a082(0x14a)][_0x20a082(0x105)])return JSON[_0x20a082(0x1a3)](process[_0x20a082(0x14a)][_0x20a082(0x105)]);return this[_0x20a082(0x165)];}static[a85_0x2cd7a0(0x1a5)](){const _0xd0229a=a85_0x2cd7a0;if(process[_0xd0229a(0x14a)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0xd0229a(0x1a3)](process['env'][_0xd0229a(0x179)]);return this[_0xd0229a(0xdc)];}static['setFrameworkDetail'](_0xd9420c,_0x1e0f39){const _0x4f2554=a85_0x2cd7a0,_0x5229ea={'bzLXg':_0x4f2554(0x14c),'YLfKk':function(_0x5d15f5,_0x5f58a1){return _0x5d15f5(_0x5f58a1);},'WPErq':function(_0x4483a7,_0xad1c17){return _0x4483a7||_0xad1c17;}},_0x4394ad=_0x5229ea[_0x4f2554(0xe6)]['split']('|');let _0x4ee783=0x0;while(!![]){switch(_0x4394ad[_0x4ee783++]){case'0':this[_0x4f2554(0x165)]={'name':_0xd9420c,'version':{[_0xd9420c]:_0x5229ea[_0x4f2554(0x18a)](getFrameworkVersion,_0xd9420c)}};continue;case'1':process[_0x4f2554(0x14a)][_0x4f2554(0x179)]=JSON['stringify'](this[_0x4f2554(0xdc)]);continue;case'2':process[_0x4f2554(0x14a)][_0x4f2554(0x105)]=JSON['stringify'](this[_0x4f2554(0x165)]);continue;case'3':this[_0x4f2554(0xdc)]={'name':_0x1e0f39,'version':_0x5229ea[_0x4f2554(0x18a)](getFrameworkVersion,_0x1e0f39)};continue;case'4':_0x5229ea[_0x4f2554(0x1b4)](!_0xd9420c,!_0x1e0f39)&&logger[_0x4f2554(0x141)](_0x4f2554(0xef)+_0xd9420c+_0x4f2554(0x100)+_0x1e0f39);continue;}break;}}static['getHookRegistryKey'](_0x4af0af,_0x13e3a5){return _0x4af0af+':'+_0x13e3a5;}static[a85_0x2cd7a0(0x1a6)](){const _0x1916a2=a85_0x2cd7a0;return process[_0x1916a2(0x16a)]+':'+threadId;}static[a85_0x2cd7a0(0x10f)](_0x272f73){const _0x2a16ae=a85_0x2cd7a0;if(_0x272f73[_0x2a16ae(0xfb)]&&_0x272f73[_0x2a16ae(0xfb)][_0x2a16ae(0x126)])return!![];return![];}static['shouldSkipSessionStatus'](_0x11185c){const _0x57fd80=a85_0x2cd7a0;if(_0x11185c[_0x57fd80(0xfb)]&&_0x11185c[_0x57fd80(0xfb)]['skipSessionStatus'])return!![];return![];}static[a85_0x2cd7a0(0x13a)](_0x430398){const _0x5f995f=a85_0x2cd7a0,_0x210472=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x210472[_0x5f995f(0x14e)](_0x430398);}static['mergeObject'](_0x4c886e,_0x1fc104){const _0x2e1655=a85_0x2cd7a0,_0x57bad0={};_0x57bad0[_0x2e1655(0xec)]=function(_0x241ad1,_0x5972f1){return _0x241ad1!==_0x5972f1;},_0x57bad0['QVddo']=function(_0x7bb647,_0x2d2c2c){return _0x7bb647===_0x2d2c2c;},_0x57bad0[_0x2e1655(0xe4)]=_0x2e1655(0x19d);const _0x17bfb0=_0x57bad0;for(const [_0x4f8338,_0x3522f0]of Object[_0x2e1655(0xd6)](_0x1fc104)){if(_0x17bfb0[_0x2e1655(0xec)](_0x3522f0,null)&&_0x17bfb0[_0x2e1655(0x103)](typeof _0x3522f0,_0x17bfb0[_0x2e1655(0xe4)])&&!Array[_0x2e1655(0x107)](_0x3522f0))_0x4c886e[_0x4f8338]=this[_0x2e1655(0x195)](_0x4c886e[_0x4f8338]||{},_0x3522f0);else Array['isArray'](_0x3522f0)?_0x4c886e[_0x4f8338]=(_0x4c886e[_0x4f8338]||[])[_0x2e1655(0xfe)](_0x3522f0):_0x4c886e[_0x4f8338]=_0x3522f0;}return _0x4c886e;}}module[a85_0x2cd7a0(0xd5)]=CLIUtils;function a85_0x198d(){const _0x3b2258=['\x20version','DlOuf','chmod','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','uBfDM','../utils/apiUtilityMethods.js','RXxnZ','kSNFW','./state/automationFrameworkState.js','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','thBKO','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','xynWl','ScIao','rNQqY','testFrameworkDetail','KPDGQ','Setting\x20required\x20permissions\x20to\x20','lZmyh','version','pid','JomnW','message','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','preserveStatusCodeOnError','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','yvrhv','kYMgT','BROWSERSTACK_BINARY_URL','Failed\x20to\x20delete\x20zip\x20file:\x20','open','../../helpers/helper','Folder\x20','\x20from\x20','udjdc','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','timeout','511931qsXuKv','Development\x20Cli\x20Path:\x20','.sock','Downloading\x20SDK\x20binary\x20from:\x20','VuNCH','../../helpers/classLogger.js','SVtLh','node','trim','requestToUpdateCLI','cwd','error','getCLIParamsForDevEnv','lazyEntries','format','YLfKk','development','code','getSdkVersion','.tmp.','fileName','LjRXY','../../helpers/utilities','OYNKO','42BJJgHl','GET','mergeObject','SiNmd','41805972sztWPf','SDK_CLI_DOWNLOAD','QWhhY','existsSync','isBinaryBusy','bMnHG','object','checkAndUpdateCli','tPoog','smfQx','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','downloadLatestBinary','parse','openReadStream','getAutomationFrameworkDetail','getCurrentInstanceName','filter','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','data','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','oLOGU','wiDZF','pwPNv','./instances/testFrameworkInstance.js','PQdpS','hKaBq','isDirectory','closeSync','rgHsD','WPErq','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','statSync','setupCliPath','warn','wfTcJ','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','getSdkLanguage','PyQHd','CLI\x20version\x20found\x20despite\x20error:\x20\x22','DOWNLOAD_HTTP','unlink','stringify','DTXEC','exports','entries','unix:/tmp/sdk-platform-','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','fLOqt','3322LWHOvb','getExistingCliPath','automationFrameworkDetail','Wyiju','UAlLR','cuLci','kKnkx','3628652KgVMRU','AJyGQ','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','lXHEz','info','bzLXg','tmpdir','YLuvh','vpWmP','Yzabj','4153410oBHKXL','KOMdz','Lbyrq','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','zScUT','get','binary-','once','statusCode','uhfeG','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','pipe','bjcij','ULbUx','sLYQe','testContextOptions','createWriteStream','readEntry','concat','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI',',\x20automationFramework=','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','wIqLv','QVddo','ghvig','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','.browserstack','isArray','start','BROWSERSTACK_FILES_DIR','osiDZ','NqAXU','TcpzQ','isFile','path','shouldSkipSessionName','rename','MMJZD','cli','close','BROWSERSTACK_CLI_ENV','DlGbA','126pBAEju','nBozx','0755','YdJky','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','cYlJc','response\x20','yauzl','stKxt','zNqsf','end','QScGk','Configuring\x20Cli\x20path.','cOMIm','tcgPg','getWritableDir','skipSessionName','901590OyjwLO','8YlXlzb','rdGBZ','arch','url','startsWith','XSHVd','worker_threads','ScenV','43100sJZhDc','219070XZjONl','SDK_CLI_CHECK_UPDATE','reduce','runShellCommand','includes','UILVf','oWhFu','../utils/constants','platform','matchHookRegex','map','Binary\x20is\x20busy:\x20','filePath','oMneY','rbaUq','resume','debug','cli_version','join','../../helpers/performance/constants','Resolved\x20binary\x20path:\x20','mtime','copyFileSync','5GmpDhk','SHELL_EXECUTE_ERROR','env','xBNVL','4|0|3|1|2','getCliDir','test','OziZp','DgTUf','HEzrT','MRejj','./state/testFrameworkState.js'];a85_0x198d=function(){return _0x3b2258;};return a85_0x198d();}
|
|
1
|
+
const a89_0xc444d2=a89_0x318c;(function(_0x5d423c,_0x4e7497){const _0x34bf2a=a89_0x318c,_0x47d6ae=_0x5d423c();while(!![]){try{const _0x51134d=-parseInt(_0x34bf2a(0x196))/0x1+-parseInt(_0x34bf2a(0x1e3))/0x2*(-parseInt(_0x34bf2a(0x184))/0x3)+-parseInt(_0x34bf2a(0x250))/0x4+-parseInt(_0x34bf2a(0x182))/0x5*(parseInt(_0x34bf2a(0x1c4))/0x6)+parseInt(_0x34bf2a(0x1f3))/0x7*(-parseInt(_0x34bf2a(0x1cc))/0x8)+parseInt(_0x34bf2a(0x1b5))/0x9+-parseInt(_0x34bf2a(0x18e))/0xa*(-parseInt(_0x34bf2a(0x20c))/0xb);if(_0x51134d===_0x4e7497)break;else _0x47d6ae['push'](_0x47d6ae['shift']());}catch(_0x3a1211){_0x47d6ae['push'](_0x47d6ae['shift']());}}}(a89_0x24ee,0x62904));function a89_0x318c(_0x475d48,_0x549dc8){const _0x24ee2d=a89_0x24ee();return a89_0x318c=function(_0x318c8f,_0x5c52dd){_0x318c8f=_0x318c8f-0x179;let _0x1232ce=_0x24ee2d[_0x318c8f];return _0x1232ce;},a89_0x318c(_0x475d48,_0x549dc8);}const fs=require('fs'),os=require('os'),url=require(a89_0xc444d2(0x1ba)),path=require(a89_0xc444d2(0x17c)),{exec}=require(a89_0xc444d2(0x20f)),{https}=require('follow-redirects'),yauzl=require(a89_0xc444d2(0x24b)),util=require('util'),{getFrameworkVersion}=require(a89_0xc444d2(0x1b4)),{threadId}=require(a89_0xc444d2(0x17b)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a89_0xc444d2(0x1ac)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a89_0xc444d2(0x1a2)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a89_0xc444d2(0x17a)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require(a89_0xc444d2(0x1e7)),TestFrameworkInstance=require(a89_0xc444d2(0x1b8)),HookState=require('./state/hookState.js'),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require(a89_0xc444d2(0x1a8)),TestFrameworkConstants=require(a89_0xc444d2(0x1aa)),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a89_0xc444d2(0x1bd));class CLIUtils{['automationFrameworkDetail']={};['testFrameworkDetail']={};static['isDevelopmentEnv'](){const _0x4c7e02=a89_0xc444d2,_0x3debdc={};_0x3debdc[_0x4c7e02(0x20b)]=function(_0x42cfe5,_0x43c9ee){return _0x42cfe5===_0x43c9ee;},_0x3debdc['KSllp']=_0x4c7e02(0x203);const _0x5edad8=_0x3debdc;return _0x5edad8['FfHyn'](process['env'][_0x4c7e02(0x1f7)],_0x5edad8[_0x4c7e02(0x1ec)]);}static['getCLIParamsForDevEnv'](){const _0x4275d4=a89_0xc444d2,_0x378d6a={};return _0x378d6a['id']=process[_0x4275d4(0x1b7)][_0x4275d4(0x1f7)],_0x378d6a[_0x4275d4(0x22b)]='unix:/tmp/sdk-platform-'+process[_0x4275d4(0x1b7)][_0x4275d4(0x1f7)]+_0x4275d4(0x23f),_0x378d6a;}static[a89_0xc444d2(0x1da)](){const _0x17f927=a89_0xc444d2,_0x4ac9ad={'aeEsS':function(_0x12943c,_0x49c5d0){return _0x12943c(_0x49c5d0);},'MqEee':_0x17f927(0x22c)};return _0x4ac9ad[_0x17f927(0x212)](require,_0x4ac9ad[_0x17f927(0x201)])['version'];}static[a89_0xc444d2(0x1bf)](){const _0x10409e=a89_0xc444d2,_0x459141={};_0x459141[_0x10409e(0x1e5)]=_0x10409e(0x235);const _0x390e02=_0x459141;return _0x390e02[_0x10409e(0x1e5)];}static async[a89_0xc444d2(0x19c)](_0x119587){const _0x5e4eb4=a89_0xc444d2,_0x4bb7af={'IkqRf':_0x5e4eb4(0x1fb),'ytlns':function(_0x432f17,_0x296c7a){return _0x432f17(_0x296c7a);},'tDArl':function(_0x43cda0,_0x31fe13){return _0x43cda0(_0x31fe13);},'gofFc':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x5e4eb4(0x204)](_0x4bb7af['IkqRf']);const _0x5e4e65=process['env'][_0x5e4eb4(0x19e)];if(!_0x4bb7af[_0x5e4eb4(0x189)](isNullOrEmpty,_0x5e4e65))return logger[_0x5e4eb4(0x204)](_0x5e4eb4(0x1bb)+_0x5e4e65),_0x5e4e65;try{const _0x346f46=this[_0x5e4eb4(0x1e2)]();if(_0x4bb7af['tDArl'](isNullOrEmpty,_0x346f46))throw new Error(_0x4bb7af['gofFc']);const _0x67667d=this[_0x5e4eb4(0x24f)](_0x346f46),_0x48c0d0=await this[_0x5e4eb4(0x195)](_0x67667d,_0x346f46,_0x119587);return logger['debug'](_0x5e4eb4(0x233)+_0x48c0d0),_0x48c0d0;}catch(_0x158748){logger[_0x5e4eb4(0x204)](_0x5e4eb4(0x244)+util[_0x5e4eb4(0x1d1)](_0x158748));}return null;}static async[a89_0xc444d2(0x195)](_0x39444e,_0x3c1cc3,_0x4d70b5){const _0x42b061=a89_0xc444d2,_0x5d22db={'WsPjQ':function(_0x232952){return _0x232952();},'KzeTi':function(_0x683560,_0x27ecb5){return _0x683560(_0x27ecb5);},'xMZHP':function(_0x3c3d8c,_0x4010bd,_0x4489f4){return _0x3c3d8c(_0x4010bd,_0x4489f4);},'PSlEt':'data','xNvfY':'url','EkAnx':function(_0x3cc978,_0x28c088){return _0x3cc978(_0x28c088);},'OUtKQ':function(_0x1351c2,_0x6d7987,_0x1495f4){return _0x1351c2(_0x6d7987,_0x1495f4);}};PerformanceTester[_0x42b061(0x23e)](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);try{logger[_0x42b061(0x18f)](_0x42b061(0x1e8)+_0x39444e);const _0xb01849=_0x5d22db['WsPjQ'](getHostInfo),_0x442882={'sdk_version':CLIUtils[_0x42b061(0x1da)](),'os':_0xb01849['platform'],'os_arch':_0xb01849['arch'],'cli_version':'0','sdk_language':this[_0x42b061(0x1bf)]()};!_0x5d22db[_0x42b061(0x209)](isNullOrEmpty,_0x39444e)&&(_0x442882[_0x42b061(0x17e)]=await this[_0x42b061(0x1ff)](_0x39444e+'\x20version'));const _0x59935d=await this[_0x42b061(0x1d2)](_0x442882,_0x4d70b5);process[_0x42b061(0x1b7)][_0x42b061(0x186)]&&(logger['info']('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process[_0x42b061(0x1b7)][_0x42b061(0x186)]),_0x59935d[_0x42b061(0x222)]['url']=process[_0x42b061(0x1b7)][_0x42b061(0x186)]);if(_0x5d22db[_0x42b061(0x1af)](nestedKeyValue,_0x59935d,[_0x5d22db[_0x42b061(0x1c9)],_0x5d22db['xNvfY']])){logger[_0x42b061(0x204)](_0x42b061(0x21b)+_0x442882[_0x42b061(0x17e)]);if(!_0x5d22db[_0x42b061(0x20d)](isNullOrEmpty,_0x39444e)&&this[_0x42b061(0x214)](_0x39444e))return logger['warn'](_0x42b061(0x220)+_0x39444e),_0x39444e;return await this[_0x42b061(0x206)](_0x5d22db[_0x42b061(0x218)](nestedKeyValue,_0x59935d,[_0x5d22db[_0x42b061(0x1c9)],_0x5d22db[_0x42b061(0x252)]]),_0x3c1cc3);}return _0x39444e;}finally{PerformanceTester['end'](PerformanceEvents[_0x42b061(0x236)]);}}static[a89_0xc444d2(0x1e2)](){const _0x2f4b04=a89_0xc444d2,_0x84ce36={'xCKHQ':function(_0x5ad124,_0x3d5dac){return _0x5ad124(_0x3d5dac);},'fCPrR':_0x2f4b04(0x19a),'hvlJP':'cli','QELnX':function(_0x36a076,_0x49fc2b){return _0x36a076(_0x49fc2b);}},_0x5c4ffa=this[_0x2f4b04(0x18a)]();try{if(_0x84ce36[_0x2f4b04(0x1a0)](isNullOrEmpty,_0x5c4ffa))throw new Error(_0x84ce36[_0x2f4b04(0x1f2)]);const _0x79a453=path['join'](_0x5c4ffa,_0x84ce36[_0x2f4b04(0x1f4)]);return!fs[_0x2f4b04(0x1f9)](_0x79a453)&&_0x84ce36[_0x2f4b04(0x22e)](createDir,_0x79a453),_0x79a453;}catch(_0x4f1a88){logger[_0x2f4b04(0x204)](_0x2f4b04(0x1b9)+util[_0x2f4b04(0x1d1)](_0x4f1a88));}}static[a89_0xc444d2(0x18a)](){const _0x5b5367=a89_0xc444d2,_0xca804f={'iBTqz':_0x5b5367(0x18b),'MlqKO':function(_0x486662,_0x5f4029){return _0x486662(_0x5f4029);},'gkDMA':function(_0x1e128c,_0x3541f6){return _0x1e128c(_0x3541f6);},'Ygici':function(_0x12afdd,_0x11f57b){return _0x12afdd(_0x11f57b);}},_0x2ce05b=[process['env']['BROWSERSTACK_FILES_DIR'],path[_0x5b5367(0x1d0)](os[_0x5b5367(0x23c)](),_0xca804f[_0x5b5367(0x249)]),path[_0x5b5367(0x1d0)](os[_0x5b5367(0x228)](),_0xca804f[_0x5b5367(0x249)])];for(const _0x35b03c of _0x2ce05b){if(_0xca804f['MlqKO'](isNullOrEmpty,_0x35b03c))continue;try{if(fs[_0x5b5367(0x1f9)](_0x35b03c)){logger[_0x5b5367(0x204)](_0x5b5367(0x21e)+_0x35b03c+_0x5b5367(0x1fc));if(!_0xca804f[_0x5b5367(0x1d8)](isModifiable,_0x35b03c)){logger['debug'](_0x5b5367(0x1b0)+_0x35b03c);const _0xab786e=_0xca804f['Ygici'](setReadWriteExecuteAccess,_0x35b03c);if(!_0xca804f[_0x5b5367(0x1d8)](isTrue,_0xab786e)){logger[_0x5b5367(0x1cd)](_0x5b5367(0x251)+_0x35b03c);continue;}}}else{logger[_0x5b5367(0x204)]('Folder\x20does\x20not\x20exist:\x20'+_0x35b03c),_0xca804f[_0x5b5367(0x1d8)](createDir,_0x35b03c),logger[_0x5b5367(0x204)]('Setting\x20required\x20permissions\x20to\x20'+_0x35b03c);const _0x25377d=_0xca804f[_0x5b5367(0x21f)](setReadWriteExecuteAccess,_0x35b03c);!_0xca804f[_0x5b5367(0x21f)](isTrue,_0x25377d)&&logger[_0x5b5367(0x1cd)](_0x5b5367(0x251)+_0x35b03c);}return _0x35b03c;}catch(_0x206972){logger[_0x5b5367(0x217)](_0x5b5367(0x24a)+util[_0x5b5367(0x1d1)](_0x206972));}}return null;}static['getExistingCliPath'](_0x19b0b2){const _0x30bd8d=a89_0xc444d2,_0x58cbc5={};_0x58cbc5[_0x30bd8d(0x1a9)]=function(_0x49690e,_0x514cf7){return _0x49690e>_0x514cf7;},_0x58cbc5[_0x30bd8d(0x1cb)]=function(_0x15b8ae,_0x5d43c6){return _0x15b8ae>_0x5d43c6;};const _0xd5d706=_0x58cbc5;try{if(!fs[_0x30bd8d(0x1f9)](_0x19b0b2)||!fs[_0x30bd8d(0x207)](_0x19b0b2)['isDirectory']())return'';const _0x2f49c3=fs[_0x30bd8d(0x1ce)](_0x19b0b2)[_0x30bd8d(0x202)](_0x1acd4d=>path[_0x30bd8d(0x1d0)](_0x19b0b2,_0x1acd4d))[_0x30bd8d(0x180)](_0x430008=>fs[_0x30bd8d(0x207)](_0x430008)[_0x30bd8d(0x1b6)]()&&path['basename'](_0x430008)[_0x30bd8d(0x1fe)](_0x30bd8d(0x199)));if(_0xd5d706[_0x30bd8d(0x1cb)](_0x2f49c3[_0x30bd8d(0x245)],0x0)){const _0x4ae1c7=_0x2f49c3['map'](_0x260fbc=>({'filePath':_0x260fbc,'mtime':fs[_0x30bd8d(0x207)](_0x260fbc)[_0x30bd8d(0x1d6)]}))[_0x30bd8d(0x1b1)]((_0x275cf4,_0x7e7eb0)=>{const _0x5acdc5=_0x30bd8d;if(!_0x275cf4||!_0x275cf4[_0x5acdc5(0x1d6)])return _0x7e7eb0;if(_0xd5d706[_0x5acdc5(0x1a9)](_0x7e7eb0[_0x5acdc5(0x1d6)],_0x275cf4[_0x5acdc5(0x1d6)]))return _0x7e7eb0;return _0x275cf4;},{});return _0x4ae1c7?_0x4ae1c7[_0x30bd8d(0x17d)]:'';}return'';}catch(_0x201c87){return logger[_0x30bd8d(0x217)](_0x30bd8d(0x230)+util[_0x30bd8d(0x1d1)](_0x201c87)),'';}}static [a89_0xc444d2(0x1d2)]=async(_0x1cb0a7,_0x188c6d)=>{const _0x1c5586=a89_0xc444d2,_0x4ac1c6={'KdUOE':function(_0x517051,_0x32e090,_0x5eb292,_0x307130,_0x5094ed){return _0x517051(_0x32e090,_0x5eb292,_0x307130,_0x5094ed);},'XISwi':_0x1c5586(0x238)},_0x44ddcc={};_0x44ddcc['qs']=_0x1cb0a7,_0x44ddcc[_0x1c5586(0x197)]=!![];const _0x54ef05=await _0x4ac1c6[_0x1c5586(0x1b2)](nodeRequest,_0x4ac1c6[_0x1c5586(0x179)],UPDATED_CLI_ENDPOINT,_0x44ddcc,_0x188c6d);return logger[_0x1c5586(0x204)](_0x1c5586(0x1fa)+JSON['stringify'](_0x54ef05)),_0x54ef05;};static['isBinaryBusy'](_0x6923cd){const _0x11f8d7=a89_0xc444d2;try{const _0x41e9d8=fs[_0x11f8d7(0x208)](_0x6923cd,'r+');return fs[_0x11f8d7(0x231)](_0x41e9d8),![];}catch(_0x515fa6){if(BINARY_BUSY_ERROR_CODES[_0x11f8d7(0x1a1)](_0x515fa6['code']))return logger[_0x11f8d7(0x204)](_0x11f8d7(0x1ea)+_0x6923cd),!![];return logger['debug'](_0x11f8d7(0x219)+_0x515fa6[_0x11f8d7(0x1a6)]),![];}}static['runShellCommand'](_0x95a1d3,_0x354455=''){const _0x1030ed=a89_0xc444d2,_0x14cc39={'xsIpV':function(_0x260ff0,_0x2304ec){return _0x260ff0(_0x2304ec);},'iYUDC':'SHELL_EXECUTE_ERROR','uvVTZ':_0x1030ed(0x1f0),'wNnYJ':function(_0x2a5562,_0x368ea3){return _0x2a5562(_0x368ea3);},'InvVA':function(_0x340d51,_0x1a7152){return _0x340d51(_0x1a7152);},'moyUv':function(_0x518210,_0x44f0fb,_0x20d5aa,_0x2ee311){return _0x518210(_0x44f0fb,_0x20d5aa,_0x2ee311);},'MRfdV':'error'};return new Promise((_0x2ba227,_0x43e77b)=>{const _0x470151=_0x1030ed,_0x34a5fc={'WjRZX':_0x14cc39['uvVTZ'],'tAcTA':function(_0x5a6c9a,_0x512bb4){const _0x3d4a1d=a89_0x318c;return _0x14cc39[_0x3d4a1d(0x1f6)](_0x5a6c9a,_0x512bb4);},'JNavJ':function(_0x1be02e,_0x176f1b){const _0xf5bd1b=a89_0x318c;return _0x14cc39[_0xf5bd1b(0x24e)](_0x1be02e,_0x176f1b);},'FTIHo':_0x14cc39[_0x470151(0x210)],'qisQZ':function(_0x32e456,_0x328dd6){const _0xf923fc=_0x470151;return _0x14cc39[_0xf923fc(0x1f6)](_0x32e456,_0x328dd6);}},_0x5c245b={};_0x5c245b[_0x470151(0x229)]=_0x354455,_0x5c245b[_0x470151(0x19f)]=0x1388;const _0x20d18a=_0x14cc39[_0x470151(0x19b)](exec,_0x95a1d3,_0x5c245b,(_0x563ed3,_0x5d7fdf,_0x581356)=>{const _0x2a6c17=_0x470151;if(_0x563ed3){if(_0x95a1d3[_0x2a6c17(0x1a1)](_0x34a5fc['WjRZX'])&&(_0x5d7fdf['trim']()||_0x581356[_0x2a6c17(0x194)]())){const _0x13c7af=_0x5d7fdf['trim']()||_0x581356['trim']();logger[_0x2a6c17(0x204)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x13c7af+'\x22'),_0x34a5fc[_0x2a6c17(0x22f)](_0x2ba227,_0x13c7af);}else _0x34a5fc[_0x2a6c17(0x223)](_0x2ba227,_0x581356[_0x2a6c17(0x194)]()||_0x34a5fc['FTIHo']);}else logger[_0x2a6c17(0x204)]('Resolving\x20with\x20stdout:\x20\x22'+_0x5d7fdf['trim']()+'\x22'),_0x34a5fc['qisQZ'](_0x2ba227,_0x5d7fdf[_0x2a6c17(0x194)]());});_0x20d18a['on'](_0x14cc39[_0x470151(0x1ab)],()=>{const _0x57679e=_0x470151;_0x14cc39['xsIpV'](_0x2ba227,_0x14cc39[_0x57679e(0x210)]);});});}static [a89_0xc444d2(0x206)]=async(_0x2814e9,_0x4118f3)=>{const _0x5ea434=a89_0xc444d2,_0xe377b7={'HTnnN':function(_0x14136b,_0x4102a5){return _0x14136b>=_0x4102a5;},'qFoRG':_0x5ea434(0x1ef),'gZgUx':'SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','qBYLE':function(_0x4d6d08,_0xda10b5){return _0x4d6d08(_0xda10b5);},'kiNsD':_0x5ea434(0x217),'Jopwi':_0x5ea434(0x240),'toWjd':function(_0x2e92f8,_0x18d8a1){return _0x2e92f8(_0x18d8a1);},'ONQAi':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','IDjKo':'Failed\x20to\x20download\x20SDK\x20binary:\x20%s'};PerformanceTester[_0x5ea434(0x23e)](PerformanceEvents[_0x5ea434(0x1dc)]),logger[_0x5ea434(0x204)](_0x5ea434(0x191)+_0x2814e9);try{const _0x1cc6a3=url['parse'](_0x2814e9),_0x22c58a=path[_0x5ea434(0x1d0)](_0x4118f3,'downloaded_file_'+process[_0x5ea434(0x1be)]+_0x5ea434(0x19d)),_0x5d1809=fs[_0x5ea434(0x187)](_0x22c58a);return new Promise((_0x17579e,_0x47f898)=>{const _0x4ced7e=_0x5ea434,_0x24a769={'ZzXPT':_0xe377b7['Jopwi'],'YMBIO':function(_0x1b6f5f,_0x3d6595){return _0xe377b7['toWjd'](_0x1b6f5f,_0x3d6595);},'udwJJ':_0xe377b7[_0x4ced7e(0x23b)],'QaIRi':function(_0x3ba616,_0x2c060d){const _0x766bc5=_0x4ced7e;return _0xe377b7[_0x766bc5(0x1c3)](_0x3ba616,_0x2c060d);},'yLAPZ':function(_0x4fe2b1,_0x13d4e6){return _0xe377b7['qBYLE'](_0x4fe2b1,_0x13d4e6);}};https[_0x4ced7e(0x22a)](_0x1cc6a3,function(_0x5db9fd){const _0x3f48d4=_0x4ced7e,_0x4ee1ea=null;if(_0x5db9fd[_0x3f48d4(0x23a)]&&_0xe377b7[_0x3f48d4(0x1f5)](_0x5db9fd['statusCode'],0x190)){const _0x870148=new Error(_0x3f48d4(0x211)+_0x5db9fd[_0x3f48d4(0x23a)]+'\x20from\x20'+_0x2814e9);_0x870148[_0x3f48d4(0x188)]=_0xe377b7[_0x3f48d4(0x1df)],_0x870148[_0x3f48d4(0x23a)]=_0x5db9fd[_0x3f48d4(0x23a)],logger[_0x3f48d4(0x217)](util[_0x3f48d4(0x1d1)](_0xe377b7[_0x3f48d4(0x17f)],_0x5db9fd['statusCode'])),PerformanceTester[_0x3f48d4(0x1c6)](PerformanceEvents[_0x3f48d4(0x1dc)],![],'HTTP\x20'+_0x5db9fd[_0x3f48d4(0x23a)]),_0x5db9fd[_0x3f48d4(0x20a)](),_0x5d1809[_0x3f48d4(0x1de)](),fs[_0x3f48d4(0x1a3)](_0x22c58a,()=>{}),_0xe377b7[_0x3f48d4(0x1dd)](_0x47f898,_0x870148);return;}_0x5db9fd['pipe'](_0x5d1809),_0x5db9fd['on'](_0xe377b7[_0x3f48d4(0x243)],function(_0x16022e){const _0x182333=_0x3f48d4;logger[_0x182333(0x217)](util['format'](_0x24a769['ZzXPT'],_0x16022e)),PerformanceTester[_0x182333(0x1c6)](PerformanceEvents[_0x182333(0x1dc)],![],util[_0x182333(0x1d1)](_0x16022e)),_0x24a769['YMBIO'](_0x47f898,_0x16022e);}),_0x5d1809['on'](_0xe377b7[_0x3f48d4(0x243)],function(_0x1abab4){const _0xda4c81=_0x3f48d4;logger[_0xda4c81(0x217)](util[_0xda4c81(0x1d1)](_0x24a769[_0xda4c81(0x200)],_0x1abab4)),PerformanceTester['end'](PerformanceEvents[_0xda4c81(0x1dc)],![],util[_0xda4c81(0x1d1)](_0x1abab4)),_0x24a769[_0xda4c81(0x1cf)](_0x47f898,_0x1abab4);}),CLIUtils['downloadFileStream'](_0x5d1809,_0x4ee1ea,_0x22c58a,_0x4118f3,_0xad6d6b=>{const _0xf762bb=_0x3f48d4;PerformanceTester[_0xf762bb(0x1c6)](PerformanceEvents[_0xf762bb(0x1dc)]),_0x24a769['QaIRi'](_0x17579e,_0xad6d6b);},_0x29e157=>{const _0x16a115=_0x3f48d4;PerformanceTester[_0x16a115(0x1c6)](PerformanceEvents[_0x16a115(0x1dc)],![],util[_0x16a115(0x1d1)](_0x29e157)),_0x24a769['QaIRi'](_0x47f898,_0x29e157);});})['on'](_0xe377b7['kiNsD'],function(_0x5a853d){const _0x208f48=_0x4ced7e;logger[_0x208f48(0x217)](_0x208f48(0x1d4)+util['format'](_0x5a853d)),PerformanceTester[_0x208f48(0x1c6)](PerformanceEvents[_0x208f48(0x1dc)],![],util['format'](_0x5a853d)),_0x24a769['yLAPZ'](_0x47f898,_0x5a853d);});});}catch(_0x51ed7e){PerformanceTester[_0x5ea434(0x1c6)](PerformanceEvents[_0x5ea434(0x1dc)],![],util[_0x5ea434(0x1d1)](_0x51ed7e)),logger[_0x5ea434(0x217)](util['format'](_0xe377b7[_0x5ea434(0x215)],_0x51ed7e));throw _0x51ed7e;}};static[a89_0xc444d2(0x227)](_0x679881,_0x49c011,_0x59e407,_0x23e033,_0x212fed,_0x4c3f7d){const _0x420202=a89_0xc444d2,_0x5398a8={'yZMOq':function(_0x436366,_0x51331f){return _0x436366(_0x51331f);},'bqEkL':_0x420202(0x1c6),'WXDTP':'entry','owQcP':_0x420202(0x217),'WFWWc':function(_0x14dbf0,_0x11d888){return _0x14dbf0(_0x11d888);},'JgypK':_0x420202(0x1b3),'VOhNn':function(_0x22c397,_0x5f24d4){return _0x22c397!==_0x5f24d4;},'uIKcI':_0x420202(0x1e9),'CysSF':_0x420202(0x226)};_0x679881['on'](_0x5398a8[_0x420202(0x1eb)],function(){const _0x591851=_0x420202,_0x3e1636={'IXXOq':function(_0x33e60c,_0x4438a4){return _0x5398a8['WFWWc'](_0x33e60c,_0x4438a4);},'RVWyB':_0x5398a8[_0x591851(0x1eb)],'zPrkk':function(_0x149f29,_0x235ee6){const _0x492a2f=_0x591851;return _0x5398a8[_0x492a2f(0x1f8)](_0x149f29,_0x235ee6);},'iIADp':_0x5398a8['owQcP'],'tyFPE':_0x5398a8[_0x591851(0x248)],'xLGRC':_0x5398a8[_0x591851(0x1c5)]},_0xef87ea={};_0xef87ea[_0x591851(0x193)]=!![],yauzl[_0x591851(0x216)](_0x59e407,_0xef87ea,function(_0x31e445,_0xf644cb){const _0x37a08d=_0x591851,_0x2500dd={'TgIMK':function(_0x4d486d,_0x24459a){const _0x20a060=a89_0x318c;return _0x5398a8[_0x20a060(0x21c)](_0x4d486d,_0x24459a);},'lvOmZ':_0x5398a8['bqEkL']};if(_0x31e445){_0x5398a8['yZMOq'](_0x4c3f7d,_0x31e445);return;}_0xf644cb[_0x37a08d(0x213)](),_0xf644cb['on'](_0x5398a8['WXDTP'],_0x2090a9=>{const _0x580b93=_0x37a08d,_0x4ef36e={'qpgOa':function(_0x987444,_0x313a19){const _0x3153a6=a89_0x318c;return _0x3e1636[_0x3153a6(0x24c)](_0x987444,_0x313a19);},'xgsXV':function(_0x1948c2,_0x370b9d){return _0x3e1636['IXXOq'](_0x1948c2,_0x370b9d);},'TVOwg':_0x3e1636['RVWyB']};if(/\/$/[_0x580b93(0x22d)](_0x2090a9[_0x580b93(0x1c2)])){_0xf644cb[_0x580b93(0x213)]();return;}!_0x49c011&&(_0x49c011=_0x2090a9[_0x580b93(0x1c2)]);if(_0x3e1636[_0x580b93(0x24d)](_0x2090a9[_0x580b93(0x1c2)],_0x49c011))_0xf644cb['readEntry']();else{const _0x32b023=_0x2090a9[_0x580b93(0x1c2)],_0x1e7fab=path['join'](_0x23e033,_0x32b023+_0x580b93(0x20e)+process[_0x580b93(0x1be)]);let _0x105d98;try{_0x105d98=fs['createWriteStream'](_0x1e7fab);}catch(_0x5abf76){if(BINARY_BUSY_ERROR_CODES[_0x580b93(0x1a1)](_0x5abf76['code'])){const _0x3831fe=path['join'](_0x23e033,_0x32b023);if(fs[_0x580b93(0x1f9)](_0x3831fe)){logger[_0x580b93(0x1cd)](_0x580b93(0x1ad)+_0x32b023),fs[_0x580b93(0x1a3)](_0x59e407,_0x309615=>{const _0xbda695=_0x580b93;_0x309615&&logger[_0xbda695(0x1cd)](_0xbda695(0x225)+_0x59e407);}),_0x3e1636['IXXOq'](_0x212fed,_0x3831fe);return;}logger[_0x580b93(0x1cd)](_0x580b93(0x232)+_0x32b023);}_0x3e1636[_0x580b93(0x24c)](_0x4c3f7d,_0x5abf76);return;}_0x105d98['on'](_0x3e1636['iIADp'],_0x53bebf=>{const _0x3f9a7d=_0x580b93;if(BINARY_BUSY_ERROR_CODES[_0x3f9a7d(0x1a1)](_0x53bebf[_0x3f9a7d(0x188)])){const _0x4ba0ca=path[_0x3f9a7d(0x1d0)](_0x23e033,_0x32b023);_0x105d98[_0x3f9a7d(0x1b3)](),fs['existsSync'](_0x4ba0ca)?(logger[_0x3f9a7d(0x1cd)]('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x53bebf['message']),_0xf644cb[_0x3f9a7d(0x1b3)](),fs['unlink'](_0x59e407,_0x5dd744=>{const _0x23c5c7=_0x3f9a7d;_0x5dd744&&logger[_0x23c5c7(0x1cd)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x59e407);}),_0x4ef36e[_0x3f9a7d(0x1c1)](_0x212fed,_0x4ba0ca)):(logger[_0x3f9a7d(0x1cd)](_0x3f9a7d(0x1c7)+_0x53bebf['message']),fs['unlink'](_0x1e7fab,()=>{}),_0x4ef36e[_0x3f9a7d(0x1c1)](_0x4c3f7d,_0x53bebf));}else fs[_0x3f9a7d(0x1a3)](_0x1e7fab,()=>{}),_0x4ef36e[_0x3f9a7d(0x18c)](_0x4c3f7d,_0x53bebf);}),_0xf644cb[_0x580b93(0x221)](_0x2090a9,function(_0x37df58,_0x388349){const _0x915fdf=_0x580b93;if(_0x37df58){fs[_0x915fdf(0x1a3)](_0x1e7fab,()=>{}),_0x2500dd['TgIMK'](_0x4c3f7d,_0x37df58);return;}_0x388349['on'](_0x2500dd[_0x915fdf(0x205)],function(){const _0x47c3f8=_0x915fdf;_0x105d98[_0x47c3f8(0x1c6)](),_0x105d98['on'](_0x4ef36e['TVOwg'],function(){const _0x51003a=_0x47c3f8;_0xf644cb[_0x51003a(0x213)]();});}),_0x388349[_0x915fdf(0x190)](_0x105d98);});}}),_0xf644cb['on'](_0x5398a8[_0x37a08d(0x1bc)],_0x521e07=>{_0x3e1636['IXXOq'](_0x4c3f7d,_0x521e07);}),_0xf644cb[_0x37a08d(0x1e1)](_0x5398a8[_0x37a08d(0x242)],()=>{const _0x6d64df=_0x37a08d,_0x4981d4={'dgXpX':function(_0x220e2b,_0xa44271){const _0x3979d7=a89_0x318c;return _0x3e1636[_0x3979d7(0x24d)](_0x220e2b,_0xa44271);},'JHUua':_0x3e1636[_0x6d64df(0x224)],'sMJjM':function(_0x4fb108,_0x2dbe17){const _0x3dc605=_0x6d64df;return _0x3e1636[_0x3dc605(0x24c)](_0x4fb108,_0x2dbe17);}};fs[_0x6d64df(0x1a3)](_0x59e407,_0x20738a=>{const _0x38091c=_0x6d64df;_0x20738a&&logger[_0x38091c(0x1cd)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x59e407);});const _0x4fc16e=path[_0x6d64df(0x1d0)](_0x23e033,_0x49c011+'.tmp.'+process[_0x6d64df(0x1be)]),_0x2b899f=path[_0x6d64df(0x1d0)](_0x23e033,_0x49c011);fs[_0x6d64df(0x1c8)](_0x4fc16e,_0x3e1636[_0x6d64df(0x1ee)],function(_0x36afaf){const _0x5e14c6=_0x6d64df;if(_0x36afaf){_0xf644cb[_0x5e14c6(0x1b3)](),fs[_0x5e14c6(0x1a3)](_0x4fc16e,()=>{}),_0x4981d4[_0x5e14c6(0x18d)](_0x4c3f7d,_0x36afaf);return;}fs[_0x5e14c6(0x234)](_0x4fc16e,_0x2b899f,function(_0x246070){const _0x250ad6=_0x5e14c6;if(_0x246070){if(_0x4981d4[_0x250ad6(0x247)](_0x246070[_0x250ad6(0x188)],_0x4981d4[_0x250ad6(0x1c0)])){_0xf644cb[_0x250ad6(0x1b3)](),fs[_0x250ad6(0x1a3)](_0x4fc16e,()=>{}),_0x4981d4[_0x250ad6(0x18d)](_0x4c3f7d,_0x246070);return;}logger[_0x250ad6(0x1cd)](_0x250ad6(0x21a)+_0x246070[_0x250ad6(0x1a6)]);try{fs[_0x250ad6(0x246)](_0x4fc16e,_0x2b899f);}catch(_0x5c10c9){_0xf644cb['close'](),fs[_0x250ad6(0x1a3)](_0x4fc16e,()=>{}),_0x4981d4[_0x250ad6(0x18d)](_0x4c3f7d,_0x5c10c9);return;}fs[_0x250ad6(0x1a3)](_0x4fc16e,_0x3a6bb8=>{const _0x1be74f=_0x250ad6;_0x3a6bb8&&logger['warn'](_0x1be74f(0x23d)+_0x3a6bb8['message']);});}_0xf644cb[_0x250ad6(0x1b3)](),_0x4981d4[_0x250ad6(0x18d)](_0x212fed,_0x2b899f);});});});});});}static[a89_0xc444d2(0x185)](){const _0x501f5c=a89_0xc444d2;if(process[_0x501f5c(0x1b7)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL'])return JSON[_0x501f5c(0x1fd)](process[_0x501f5c(0x1b7)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this[_0x501f5c(0x181)];}static['getAutomationFrameworkDetail'](){const _0x7bdd50=a89_0xc444d2;if(process[_0x7bdd50(0x1b7)][_0x7bdd50(0x1e6)])return JSON[_0x7bdd50(0x1fd)](process[_0x7bdd50(0x1b7)][_0x7bdd50(0x1e6)]);return this['automationFrameworkDetail'];}static['setFrameworkDetail'](_0x361e3a,_0x16ae8d){const _0x2888eb=a89_0xc444d2,_0x1e479d={'KdVzV':'2|0|1|3|4','imcZn':function(_0x106c95,_0x4d0d52){return _0x106c95(_0x4d0d52);},'buQWf':function(_0x1217bc,_0xeb434a){return _0x1217bc||_0xeb434a;}},_0x1bf41c=_0x1e479d['KdVzV']['split']('|');let _0x135dd6=0x0;while(!![]){switch(_0x1bf41c[_0x135dd6++]){case'0':this[_0x2888eb(0x181)]={'name':_0x361e3a,'version':{[_0x361e3a]:_0x1e479d[_0x2888eb(0x192)](getFrameworkVersion,_0x361e3a)}};continue;case'1':this['automationFrameworkDetail']={'name':_0x16ae8d,'version':_0x1e479d[_0x2888eb(0x192)](getFrameworkVersion,_0x16ae8d)};continue;case'2':_0x1e479d[_0x2888eb(0x239)](!_0x361e3a,!_0x16ae8d)&&logger['debug'](_0x2888eb(0x198)+_0x361e3a+_0x2888eb(0x183)+_0x16ae8d);continue;case'3':process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON[_0x2888eb(0x237)](this['automationFrameworkDetail']);continue;case'4':process[_0x2888eb(0x1b7)][_0x2888eb(0x1d7)]=JSON[_0x2888eb(0x237)](this[_0x2888eb(0x181)]);continue;}break;}}static[a89_0xc444d2(0x1ae)](_0x14d2de,_0x34df21){return _0x14d2de+':'+_0x34df21;}static[a89_0xc444d2(0x1d5)](){const _0x2b47eb=a89_0xc444d2;return process[_0x2b47eb(0x1be)]+':'+threadId;}static[a89_0xc444d2(0x1a5)](_0x341d7d){const _0x7c16d7=a89_0xc444d2;if(_0x341d7d[_0x7c16d7(0x1e0)]&&_0x341d7d[_0x7c16d7(0x1e0)][_0x7c16d7(0x1a7)])return!![];return![];}static[a89_0xc444d2(0x1e4)](_0x316f8b){const _0x369f34=a89_0xc444d2;if(_0x316f8b[_0x369f34(0x1e0)]&&_0x316f8b[_0x369f34(0x1e0)][_0x369f34(0x1f1)])return!![];return![];}static[a89_0xc444d2(0x1ca)](_0xdd92d7){const _0x1d7a2f=a89_0xc444d2,_0x250896=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x250896[_0x1d7a2f(0x22d)](_0xdd92d7);}static[a89_0xc444d2(0x1ed)](_0x48aeea,_0x2da045){const _0x43a5ef=a89_0xc444d2,_0xdefc79={};_0xdefc79['oFMiT']=function(_0x45a6f8,_0x155512){return _0x45a6f8!==_0x155512;},_0xdefc79['xwcOK']=function(_0x4b8aac,_0x4ff7a3){return _0x4b8aac===_0x4ff7a3;},_0xdefc79[_0x43a5ef(0x241)]=_0x43a5ef(0x1d3);const _0x585170=_0xdefc79;for(const [_0x4d3643,_0x5e173a]of Object[_0x43a5ef(0x1a4)](_0x2da045)){if(_0x585170['oFMiT'](_0x5e173a,null)&&_0x585170[_0x43a5ef(0x1d9)](typeof _0x5e173a,_0x585170[_0x43a5ef(0x241)])&&!Array['isArray'](_0x5e173a))_0x48aeea[_0x4d3643]=this[_0x43a5ef(0x1ed)](_0x48aeea[_0x4d3643]||{},_0x5e173a);else Array[_0x43a5ef(0x1db)](_0x5e173a)?_0x48aeea[_0x4d3643]=(_0x48aeea[_0x4d3643]||[])['concat'](_0x5e173a):_0x48aeea[_0x4d3643]=_0x5e173a;}return _0x48aeea;}}function a89_0x24ee(){const _0xa36d7a=['getSdkLanguage','JHUua','qpgOa','fileName','toWjd','594FdFSmj','CysSF','end','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','chmod','PSlEt','matchHookRegex','jkmyG','416gOXisZ','warn','readdirSync','YMBIO','join','format','requestToUpdateCLI','object','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','getCurrentInstanceName','mtime','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','gkDMA','xwcOK','getSdkVersion','isArray','SDK_CLI_DOWNLOAD','qBYLE','destroy','qFoRG','testContextOptions','once','getCliDir','104uduoOs','shouldSkipSessionStatus','ROufU','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','../../helpers/classLogger.js','Current\x20CLI\x20Path\x20Found:\x20','EXDEV','Binary\x20is\x20busy:\x20','JgypK','KSllp','mergeObject','xLGRC','DOWNLOAD_HTTP','version','skipSessionStatus','fCPrR','77343wWJdvj','hvlJP','HTnnN','wNnYJ','BROWSERSTACK_CLI_ENV','VOhNn','existsSync','response\x20','Configuring\x20Cli\x20path.','\x20already\x20exists','parse','startsWith','runShellCommand','udwJJ','MqEee','map','development','debug','lvOmZ','downloadLatestBinary','statSync','openSync','KzeTi','resume','FfHyn','341hRIhsX','EkAnx','.tmp.','child_process','iYUDC','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','aeEsS','readEntry','isBinaryBusy','IDjKo','open','error','OUtKQ','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','yZMOq','exports','Folder\x20','MlqKO','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','openReadStream','data','JNavJ','tyFPE','Failed\x20to\x20delete\x20zip\x20file:\x20','0755','downloadFileStream','tmpdir','cwd','get','listen','../../../package.json','test','QELnX','tAcTA','Error\x20while\x20reading\x20CLI\x20path:\x20','closeSync','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','Resolved\x20binary\x20path:\x20','rename','node','SDK_CLI_CHECK_UPDATE','stringify','GET','buQWf','statusCode','ONQAi','homedir','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','start','.sock','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','CKVtn','bqEkL','kiNsD','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','length','copyFileSync','dgXpX','uIKcI','iBTqz','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','yauzl','IXXOq','zPrkk','InvVA','getExistingCliPath','2324916ViDTmM','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','xNvfY','XISwi','../../helpers/helper','worker_threads','path','filePath','cli_version','gZgUx','filter','testFrameworkDetail','19580XBMqCn',',\x20automationFramework=','27192uppxbQ','getTestFrameworkDetail','BROWSERSTACK_BINARY_URL','createWriteStream','code','ytlns','getWritableDir','.browserstack','xgsXV','sMJjM','372260qTUaMR','info','pipe','Downloading\x20SDK\x20binary\x20from:\x20','imcZn','lazyEntries','trim','checkAndUpdateCli','119913CRrelI','preserveStatusCodeOnError','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','binary-','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','moyUv','setupCliPath','.zip','SDK_CLI_BIN_PATH','timeout','xCKHQ','includes','../../helpers/utilities','unlink','entries','shouldSkipSessionName','message','skipSessionName','./state/automationFrameworkState.js','pcKEW','./framework/constants/testFrameworkConstants.js','MRfdV','../../helpers/performance/constants','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','getHookRegistryKey','xMZHP','Setting\x20required\x20permissions\x20to\x20','reduce','KdUOE','close','../../helpers/test-observability/utils.js','3975804DnMLRy','isFile','env','./instances/testFrameworkInstance.js','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','url','Development\x20Cli\x20Path:\x20','owQcP','../utils/apiUtilityMethods.js','pid'];a89_0x24ee=function(){return _0xa36d7a;};return a89_0x24ee();}module[a89_0xc444d2(0x21d)]=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a86_0x397822=a86_0xb950;(function(_0x37f6b1,_0x1787c2){const _0x428883=a86_0xb950,_0x44b63f=_0x37f6b1();while(!![]){try{const _0x999146=parseInt(_0x428883(0x122))/0x1+-parseInt(_0x428883(0x15f))/0x2*(-parseInt(_0x428883(0x104))/0x3)+parseInt(_0x428883(0x10c))/0x4+-parseInt(_0x428883(0x128))/0x5+parseInt(_0x428883(0x145))/0x6+parseInt(_0x428883(0x15b))/0x7*(parseInt(_0x428883(0x108))/0x8)+-parseInt(_0x428883(0x142))/0x9*(parseInt(_0x428883(0x150))/0xa);if(_0x999146===_0x1787c2)break;else _0x44b63f['push'](_0x44b63f['shift']());}catch(_0x31a781){_0x44b63f['push'](_0x44b63f['shift']());}}}(a86_0x4b4d,0xb60ca));function a86_0x4b4d(){const _0x39bbe1=['IflnZ','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','clearTags','Nzmob','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','qPPFb','wZApl','retry','./state/testFrameworkState','getAllData','message',',\x20key=','getTrackedInstance','mergeBuildLevelTags','field_type','./cliUtils','readdirSync','resolveInstance','endsWith','tmpdir','getTestLevelTags','BJOyO','mjiBY','filter','aggregateBuildLevelTagsFromTmp','myouF','nntyQ','./state/hookState','path','join','writeFile','addMultipleEntries','6gdMTJW','_testInternals','BUILD_TAG_FILE_PREFIX','values','8cWTxhU','testLevelTags','getTestFramework','includes','3607876hyXpLU','startsWith','CustomTagManager','BROWSERSTACK_TESTHUB_UUID','YmxZE','from','mergeValues','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','PbRCZ','nqems','KEY_TEST_ID','AKYDc','./framework/constants/testFrameworkConstants','wmtVC','viVJA','mFJSV','testInfo','ChsmS','getBuildTagsRunId','getState','naFBv','264050LzNkLl','fMYgi','isRunning','TnUvD','zBBSl','__jestCurrentTestIdentifier','3896110xyAxsq','LOFPz','edNZi','HrrlJ','./TestInfo','setTestDetails','function','cyoEl','POST',',\x20finalTags=','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','.json','string','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','qmvce','./browserstackCLI','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','bstack_build_tags_','mergeIntoTags','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','getCurrentTestUUID','getTestDetails','tkteq','REKBg','getInstance','stringify','9439317cOgVek','rWLcr','jest','5677986kvVImW','bRVKZ','testhubConfig',',\x20existingTags=','BFiOA','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','unlinkSync','AUqbg','mBwBe',':jest-','20ACHwPb','pid','Zhhkh','parseCommaSeparatedValues','null','\x20->\x20values=','get','getTestIdentifierFromTestInfo','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','KEY_CUSTOM_TAGS','now','3650682lkGWFW','entries','trim','isArray','988646KUqzIz','AoNNk','multi_dropdown','length','debug','./modules/playwrightDriverModule','ms)\x20','buildLevelTags','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','parse','readFileSync','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','currentTest','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','statSync','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','mtimeMs'];a86_0x4b4d=function(){return _0x39bbe1;};return a86_0x4b4d();}const fs=require('fs'),os=require('os'),path=require(a86_0x397822(0x100)),helper=require('../../helpers/helper'),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a86_0x397822(0x119)),PlaywrightDriverModule=require(a86_0x397822(0x164)),TestInfo=require(a86_0x397822(0x12c)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a86_0x397822(0x10e)),BUILD_TAG_FILE_PREFIX=a86_0x397822(0x139);function getBuildTagsRunId(){const _0x2a06bf=a86_0x397822,_0x582781={};_0x582781['edNZi']=function(_0x1c1dc2,_0x57e577){return _0x1c1dc2===_0x57e577;},_0x582781['YmxZE']=_0x2a06bf(0x154);const _0x80cae=_0x582781,_0x304354=process['env'][_0x2a06bf(0x10f)];if(!_0x304354||_0x80cae[_0x2a06bf(0x12a)](_0x304354,_0x80cae[_0x2a06bf(0x110)]))return null;return _0x304354;}function getBuildTagsFilePath(_0x45aff3){const _0x137444=a86_0x397822;return path[_0x137444(0x101)](os[_0x137444(0xf7)](),''+BUILD_TAG_FILE_PREFIX+_0x45aff3+'_'+process[_0x137444(0x151)]+_0x137444(0x133));}class CustomTagManager{static ['buildLevelTags']={};static [a86_0x397822(0x109)]={};static['mergeValues'](_0x1b4539,_0xef4b1b){const _0x4f54fa=a86_0x397822;return Array[_0x4f54fa(0x111)](new Set([..._0x1b4539||[],..._0xef4b1b||[]]));}static[a86_0x397822(0x13a)](_0x35604c,_0xeccfcf,_0x2ca6c6){const _0x5452bf=a86_0x397822,_0x1c117b={};_0x1c117b['LOFPz']=_0x5452bf(0x161);const _0x32f2e0=_0x1c117b;if(!_0x35604c[_0xeccfcf]){const _0x22cf28={};_0x22cf28[_0x5452bf(0xf2)]=_0x32f2e0[_0x5452bf(0x129)],_0x22cf28[_0x5452bf(0x107)]=[..._0x2ca6c6||[]],_0x35604c[_0xeccfcf]=_0x22cf28;}else!_0x35604c[_0xeccfcf][_0x5452bf(0xf2)]&&(_0x35604c[_0xeccfcf][_0x5452bf(0xf2)]=_0x32f2e0[_0x5452bf(0x129)]),!Array[_0x5452bf(0x15e)](_0x35604c[_0xeccfcf]['values'])&&(_0x35604c[_0xeccfcf][_0x5452bf(0x107)]=[]),_0x35604c[_0xeccfcf]['values']=CustomTagManager[_0x5452bf(0x112)](_0x35604c[_0xeccfcf][_0x5452bf(0x107)],_0x2ca6c6);return _0x35604c;}static async['setCustomTags'](_0x1667a4,_0x443248,_0x3f12da=![]){const _0x24e3b5=a86_0x397822,_0x150895={'viVJA':function(_0x56d663,_0x1ccbf0){return _0x56d663!==_0x1ccbf0;},'nqems':_0x24e3b5(0x134),'YvpGi':_0x24e3b5(0x167),'zBBSl':function(_0x594130,_0x4b4cef){return _0x594130!==_0x4b4cef;},'naFBv':_0x24e3b5(0x172),'mFJSV':function(_0x687260,_0x5e2bb4){return _0x687260===_0x5e2bb4;},'IflnZ':_0x24e3b5(0x158),'REKBg':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','cyoEl':function(_0x677b7b,_0xefdb82){return _0x677b7b(_0xefdb82);},'qPPFb':_0x24e3b5(0x137),'BJOyO':function(_0x1a27f2){return _0x1a27f2();},'gubNr':_0x24e3b5(0x161),'wmtVC':function(_0x3b0598,_0xd82d7c){return _0x3b0598>_0xd82d7c;},'rWLcr':_0x24e3b5(0xe8),'bRVKZ':_0x24e3b5(0x14f),'AUqbg':function(_0x1ee727,_0x5e885e){return _0x1ee727(_0x5e885e);},'AKYDc':_0x24e3b5(0xf3),'ChsmS':function(_0x398d2b,_0x2db00){return _0x398d2b(_0x2db00);},'PbRCZ':function(_0x367513,_0x68fd07){return _0x367513===_0x68fd07;},'fMYgi':_0x24e3b5(0x144),'nntyQ':_0x24e3b5(0x132),'Nzmob':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','AoNNk':function(_0x44480b,_0x3ef324){return _0x44480b(_0x3ef324);},'myouF':_0x24e3b5(0xec),'jhSSy':_0x24e3b5(0xff),'Zhhkh':_0x24e3b5(0x113),'XEsdY':function(_0x33d0b7,_0x3a8f9d){return _0x33d0b7(_0x3a8f9d);},'BFiOA':_0x24e3b5(0x12e)};if(_0x150895[_0x24e3b5(0x11b)](typeof _0x1667a4,_0x150895[_0x24e3b5(0x116)])){logger[_0x24e3b5(0x163)](_0x150895['YvpGi']);return;}if(_0x150895[_0x24e3b5(0x126)](typeof _0x443248,_0x150895[_0x24e3b5(0x116)])){logger[_0x24e3b5(0x163)](_0x150895[_0x24e3b5(0x121)]);return;}if(_0x150895[_0x24e3b5(0x11c)](_0x1667a4[_0x24e3b5(0x15d)](),'')){logger[_0x24e3b5(0x163)](_0x150895[_0x24e3b5(0x171)]);return;}if(_0x150895[_0x24e3b5(0x11c)](_0x443248[_0x24e3b5(0x15d)](),'')){logger[_0x24e3b5(0x163)](_0x150895[_0x24e3b5(0x13f)]);return;}const _0x1cfb29=helper[_0x24e3b5(0x153)](_0x443248);if(_0x3f12da){const _0x38c370=_0x150895[_0x24e3b5(0x12f)](require,_0x150895[_0x24e3b5(0xe9)]),_0x39fd3=_0x38c370[_0x24e3b5(0x140)](),_0x5513cb=_0x39fd3&&_0x39fd3['modules'][TestHubModule['MODULE_NAME']];if(_0x5513cb){const _0x5edc52=_0x5513cb?.[_0x24e3b5(0x147)]?.['toObject']()?.['buildHashedId'];TestInfo['getTestUUID'](_0x5edc52);const _0xf72eed=TestInfo[_0x24e3b5(0x13d)](_0x5edc52),_0x58804f=_0xf72eed[TestFrameworkConstants[_0x24e3b5(0x159)]]||{};CustomTagManager[_0x24e3b5(0x13a)](_0x58804f,_0x1667a4,_0x1cfb29),_0xf72eed[TestFrameworkConstants[_0x24e3b5(0x159)]]=_0x58804f,TestInfo[_0x24e3b5(0x12d)](_0x5edc52,_0xf72eed);!this[_0x24e3b5(0x166)][_0x5edc52]&&(this[_0x24e3b5(0x166)][_0x5edc52]={});this[_0x24e3b5(0x166)][_0x5edc52][_0x1667a4]=CustomTagManager[_0x24e3b5(0x112)](this['buildLevelTags'][_0x5edc52][_0x1667a4],_0x1cfb29);try{const _0x93d4a1=_0x150895[_0x24e3b5(0xf9)](getBuildTagsRunId);if(_0x93d4a1){const _0x103fd1={};for(const [_0x156f0e,_0x1688b3]of Object['entries'](this[_0x24e3b5(0x166)][_0x5edc52]||{})){_0x103fd1[_0x156f0e]={'field_type':_0x150895['gubNr'],'values':Array[_0x24e3b5(0x15e)](_0x1688b3)?[..._0x1688b3]:[]};}_0x150895[_0x24e3b5(0x11a)](Object['keys'](_0x103fd1)[_0x24e3b5(0x162)],0x0)&&await fs['promises'][_0x24e3b5(0x102)](_0x150895[_0x24e3b5(0x12f)](getBuildTagsFilePath,_0x93d4a1),JSON['stringify'](_0x103fd1));}else logger[_0x24e3b5(0x163)](_0x150895[_0x24e3b5(0x143)]);}catch(_0x5d4be1){logger[_0x24e3b5(0x163)]('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0x5d4be1&&_0x5d4be1[_0x24e3b5(0xee)]?_0x5d4be1[_0x24e3b5(0xee)]:_0x5d4be1));}}}else{let _0x1eda4e;const _0x4213ef=global[_0x24e3b5(0x127)];let _0x2a558e=![];if(_0x4213ef&&_0x4213ef[_0x24e3b5(0x10b)](_0x150895['bRVKZ']))_0x2a558e=!![],_0x1eda4e=_0x4213ef;else try{const _0x34fe12=_0x150895[_0x24e3b5(0x14d)](require,_0x150895[_0x24e3b5(0x118)]),_0x1b1829=_0x150895[_0x24e3b5(0x11e)](require,_0x150895[_0x24e3b5(0xe9)]);if(_0x1b1829[_0x24e3b5(0x140)]()[_0x24e3b5(0x124)]()){const _0x4dc6f0=_0x34fe12['getTestFrameworkDetail']();if(_0x150895[_0x24e3b5(0x115)](_0x4dc6f0?.['name']?.['toLowerCase'](),_0x150895[_0x24e3b5(0x123)])){const _0x408e13=AutomationFramework[_0x24e3b5(0xf0)]();_0x1eda4e=AutomationFramework[_0x24e3b5(0x120)](_0x408e13,PlaywrightDriverModule[_0x24e3b5(0x117)],''),_0x1eda4e&&_0x1eda4e['includes'](_0x150895[_0x24e3b5(0x146)])&&(_0x2a558e=!![]);}}}catch(_0x7e0e23){logger['debug'](_0x24e3b5(0x16c)+_0x7e0e23);}if(_0x2a558e){if(!_0x1eda4e)throw new Error(_0x150895[_0x24e3b5(0xfe)]);const _0x1a8060=_0x150895[_0x24e3b5(0x14d)](require,_0x150895[_0x24e3b5(0xe9)]),_0x2a46a5=_0x1a8060[_0x24e3b5(0x140)]()[_0x24e3b5(0x10a)]();if(!_0x2a46a5)throw new Error(_0x150895[_0x24e3b5(0xe7)]);const _0x21f347=_0x150895[_0x24e3b5(0x160)](require,_0x150895[_0x24e3b5(0xfd)]),_0x54a6b4=_0x150895[_0x24e3b5(0x14d)](require,_0x150895['jhSSy']),_0x468c56=_0x2a46a5[_0x24e3b5(0xf5)](_0x21f347['TEST'],_0x54a6b4[_0x24e3b5(0x130)]);if(!_0x468c56)throw new Error(_0x150895[_0x24e3b5(0x152)]);const _0x38cf02=_0x468c56[_0x24e3b5(0xed)]()[_0x24e3b5(0x156)](_0x1eda4e)||{},_0x623d90=_0x38cf02[TestFrameworkConstants[_0x24e3b5(0x159)]]||{};logger[_0x24e3b5(0x163)](_0x24e3b5(0x14a)+_0x1eda4e+_0x24e3b5(0xef)+_0x1667a4+',\x20values='+JSON[_0x24e3b5(0x141)](_0x1cfb29)+_0x24e3b5(0x148)+JSON[_0x24e3b5(0x141)](_0x623d90)),CustomTagManager[_0x24e3b5(0x13a)](_0x623d90,_0x1667a4,_0x1cfb29),logger['debug'](_0x24e3b5(0x114)+_0x1667a4+_0x24e3b5(0x155)+JSON[_0x24e3b5(0x141)](_0x623d90[_0x1667a4][_0x24e3b5(0x107)]));const _0x5d077b={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x623d90},_0x4206cc={};_0x4206cc[_0x1eda4e]=_0x5d077b,_0x468c56[_0x24e3b5(0x103)](_0x4206cc),logger['debug'](_0x24e3b5(0x138)+_0x1eda4e+_0x24e3b5(0x131)+JSON[_0x24e3b5(0x141)](_0x623d90)),!this['testLevelTags'][_0x1eda4e]&&(this[_0x24e3b5(0x109)][_0x1eda4e]={}),this['testLevelTags'][_0x1eda4e][_0x1667a4]=CustomTagManager[_0x24e3b5(0x112)](this[_0x24e3b5(0x109)][_0x1eda4e][_0x1667a4],_0x1cfb29);}else{const _0x106a10=global['__workerDetails']?.[_0x24e3b5(0x16b)]?.[_0x24e3b5(0x11d)];if(!_0x106a10){const _0x35bb62=AutomationFramework['getTrackedInstance']();_0x1eda4e=AutomationFramework[_0x24e3b5(0x120)](_0x35bb62,PlaywrightDriverModule[_0x24e3b5(0x117)],'');if(!_0x1eda4e)try{const _0x2cdf56=_0x150895['XEsdY'](require,_0x150895['qPPFb']),_0x4a33a5=_0x2cdf56['getInstance'](),_0x3840ed=_0x4a33a5&&_0x4a33a5[_0x24e3b5(0x10a)]();_0x1eda4e=_0x3840ed&&_0x150895[_0x24e3b5(0x115)](typeof _0x3840ed[_0x24e3b5(0x13c)],_0x150895[_0x24e3b5(0x149)])&&_0x3840ed['getCurrentTestUUID']()||_0x1eda4e;}catch(_0x537717){logger[_0x24e3b5(0x163)](_0x24e3b5(0x16f)+(_0x537717&&_0x537717[_0x24e3b5(0xee)]));}}else _0x1eda4e=TestInfo[_0x24e3b5(0x157)](_0x106a10,_0x106a10[_0x24e3b5(0xeb)]);const _0x453217=TestInfo['getTestDetails'](_0x1eda4e),_0x396a31=_0x453217[TestFrameworkConstants[_0x24e3b5(0x159)]]||{};CustomTagManager[_0x24e3b5(0x13a)](_0x396a31,_0x1667a4,_0x1cfb29),_0x453217[TestFrameworkConstants[_0x24e3b5(0x159)]]=_0x396a31,TestInfo[_0x24e3b5(0x12d)](_0x1eda4e,_0x453217),!this[_0x24e3b5(0x109)][_0x1eda4e]&&(this[_0x24e3b5(0x109)][_0x1eda4e]={}),this[_0x24e3b5(0x109)][_0x1eda4e][_0x1667a4]=CustomTagManager[_0x24e3b5(0x112)](this[_0x24e3b5(0x109)][_0x1eda4e][_0x1667a4],_0x1cfb29);}}}static['getBuildLevelTags'](){const _0x1a1cf3=a86_0x397822,_0x160408={...this[_0x1a1cf3(0x166)]};return _0x160408;}static[a86_0x397822(0xf8)](){const _0x2a7147=a86_0x397822,_0x57e411={...this[_0x2a7147(0x109)]};return _0x57e411;}static[a86_0x397822(0x173)](){const _0x1a889f=a86_0x397822;this[_0x1a889f(0x166)]={},this['testLevelTags']={};}static[a86_0x397822(0xf1)](_0x220002,_0x3953f6){const _0x22a98f=a86_0x397822,_0x464dff={};_0x464dff[_0x22a98f(0xfa)]=function(_0x271490,_0x2178dd){return _0x271490||_0x2178dd;};const _0x4a4924=_0x464dff;if(!_0x220002)return;!this['buildLevelTags'][_0x220002]&&(this[_0x22a98f(0x166)][_0x220002]={});for(const [_0x5749e6,_0x596556]of Object[_0x22a98f(0x15c)](_0x4a4924[_0x22a98f(0xfa)](_0x3953f6,{}))){if(!_0x596556||!Array[_0x22a98f(0x15e)](_0x596556[_0x22a98f(0x107)]))continue;this[_0x22a98f(0x166)][_0x220002][_0x5749e6]=CustomTagManager[_0x22a98f(0x112)](this[_0x22a98f(0x166)][_0x220002][_0x5749e6],_0x596556['values']);}}static[a86_0x397822(0xfc)](_0x1f3a80,_0x4393f6){const _0x3c181c=a86_0x397822,_0x2ec206={};_0x2ec206[_0x3c181c(0xea)]='CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate',_0x2ec206[_0x3c181c(0x125)]=function(_0x2f5b7c,_0x17e6e0){return _0x2f5b7c*_0x17e6e0;},_0x2ec206[_0x3c181c(0x13e)]=function(_0x1da7f1,_0x735a48){return _0x1da7f1*_0x735a48;},_0x2ec206['HrrlJ']=function(_0x46d5cb,_0x35535b){return _0x46d5cb>_0x35535b;},_0x2ec206[_0x3c181c(0x136)]=function(_0x1d00fe,_0x24d0ee){return _0x1d00fe-_0x24d0ee;},_0x2ec206[_0x3c181c(0x14e)]='utf8';const _0xba39=_0x2ec206;if(!_0x1f3a80)return logger[_0x3c181c(0x163)](_0xba39[_0x3c181c(0xea)]),0x0;let _0x910c0d;try{_0x910c0d=os[_0x3c181c(0xf7)]();}catch(_0x325c45){return logger['debug'](_0x3c181c(0x13b)+_0x325c45),0x0;}let _0x87f4b6;try{_0x87f4b6=fs[_0x3c181c(0xf4)](_0x910c0d);}catch(_0x40b995){return logger[_0x3c181c(0x163)](_0x3c181c(0x16e)+_0x40b995),0x0;}const _0x4c52ca=''+BUILD_TAG_FILE_PREFIX+_0x1f3a80+'_',_0x97ffc4=_0x87f4b6[_0x3c181c(0xfb)](_0x5262fb=>_0x5262fb[_0x3c181c(0x10d)](_0x4c52ca)&&_0x5262fb[_0x3c181c(0xf6)](_0x3c181c(0x133))),_0x244908=_0xba39[_0x3c181c(0x125)](_0xba39[_0x3c181c(0x13e)](_0xba39[_0x3c181c(0x13e)](0x2,0x3c),0x3c),0x3e8);let _0x554e6e=0x0;for(const _0x45fa23 of _0x97ffc4){const _0x53cda7=path[_0x3c181c(0x101)](_0x910c0d,_0x45fa23);try{const _0x2f8695=fs[_0x3c181c(0x16d)](_0x53cda7);if(_0xba39[_0x3c181c(0x12b)](_0xba39['qmvce'](Date[_0x3c181c(0x15a)](),_0x2f8695[_0x3c181c(0x170)]),_0x244908)){logger['debug'](_0x3c181c(0x14b)+_0x244908+_0x3c181c(0x165)+_0x45fa23);try{fs[_0x3c181c(0x14c)](_0x53cda7);}catch(_0xb2941c){logger['debug'](_0x3c181c(0x16a)+_0x45fa23+':\x20'+(_0xb2941c&&_0xb2941c[_0x3c181c(0xee)]?_0xb2941c[_0x3c181c(0xee)]:_0xb2941c));}continue;}const _0x45a099=fs[_0x3c181c(0x169)](_0x53cda7,_0xba39['mBwBe']),_0x3bd3c0=JSON[_0x3c181c(0x168)](_0x45a099);this[_0x3c181c(0xf1)](_0x4393f6,_0x3bd3c0),_0x554e6e+=0x1;}catch(_0x2f07a3){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x45fa23+':\x20'+(_0x2f07a3&&_0x2f07a3[_0x3c181c(0xee)]?_0x2f07a3['message']:_0x2f07a3));}try{fs[_0x3c181c(0x14c)](_0x53cda7);}catch(_0x35fcc3){logger[_0x3c181c(0x163)](_0x3c181c(0x135)+_0x45fa23+':\x20'+(_0x35fcc3&&_0x35fcc3['message']?_0x35fcc3[_0x3c181c(0xee)]:_0x35fcc3));}}return _0x554e6e;}}function a86_0xb950(_0x250ebe,_0x2a49b2){const _0x4b4df5=a86_0x4b4d();return a86_0xb950=function(_0xb95049,_0x39a994){_0xb95049=_0xb95049-0xe7;let _0x36306d=_0x4b4df5[_0xb95049];return _0x36306d;},a86_0xb950(_0x250ebe,_0x2a49b2);}const a86_0x47bfbe={};a86_0x47bfbe[a86_0x397822(0x11f)]=getBuildTagsRunId,a86_0x47bfbe['getBuildTagsFilePath']=getBuildTagsFilePath,a86_0x47bfbe[a86_0x397822(0x106)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x397822(0x105)]=a86_0x47bfbe,module['exports']=CustomTagManager;
|
|
1
|
+
'use strict';const a90_0x3a8ea1=a90_0x3410;function a90_0x2fab(){const _0x162c0f=['jest','SgGYG','message','./modules/playwrightDriverModule','50zscuSy','\x20->\x20values=','promises','POST','buildHashedId',':jest-','_testInternals','setTestDetails','getState','clearTags','startsWith','debug','315852UrmgrH','KnDKL','readdirSync','exxNj','getTestDetails','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','getTestUUID','testInfo','./state/hookState','statSync','setCustomTags','mergeBuildLevelTags','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','BROWSERSTACK_TESTHUB_UUID','WUiLv','yUMpq','fWydq','modules','join','keys','env','filter','testhubConfig','6700zXQrbq','1854efKsgN','tWyva','get','MODULE_NAME','utf8','getTrackedInstance','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.',',\x20values=','aggregateBuildLevelTagsFromTmp','fEKUW','now','includes','__workerDetails','lcoAd',',\x20finalTags=','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','CustomTagManager','entries','./cliUtils','12uEnpCa','.json','trim','getTestFramework','field_type','RrqoN','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','UlJSv','1283487dGnHLI','pid','6152286zbtXwH','./browserstackCLI','getBuildTagsFilePath','../../helpers/classLogger','readFileSync','getBuildTagsRunId','writeFile','resolveInstance','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','unlinkSync','KEY_CUSTOM_TAGS','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','JRIRq','addMultipleEntries','BUILD_TAG_FILE_PREFIX','SCZIe','dbdRB','ms)\x20','jtpZJ','toObject','GKyqS','2oWWVyY','toLowerCase','buildLevelTags','testLevelTags','mergeValues','currentTest','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','XFIfP','exports','function','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','getTestIdentifierFromTestInfo','pEldg','mergeIntoTags','from','wEjmB','name','getInstance','5803472DWfpFh','KEY_TEST_ID','MChoM','length','AUFBZ','XZzTD','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','parse','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','ufhfp','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','381768XOEBAX','rqWzY','./modules/testhubModule','ywPvA',',\x20key=','getCurrentTestUUID','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','./state/testFrameworkState','__jestCurrentTestIdentifier','isArray','wIgkR','xQfnP','NjOJd','mtimeMs','./framework/constants/testFrameworkConstants','isRunning','3263117Engdqd','BRgQE','stringify','values','DGWwQ','parseCommaSeparatedValues','../../helpers/helper','VaARV'];a90_0x2fab=function(){return _0x162c0f;};return a90_0x2fab();}(function(_0x3f6c80,_0x3c125d){const _0x2e773b=a90_0x3410,_0x3ff37e=_0x3f6c80();while(!![]){try{const _0xaeee1e=parseInt(_0x2e773b(0x13c))/0x1*(parseInt(_0x2e773b(0x153))/0x2)+-parseInt(_0x2e773b(0x199))/0x3*(-parseInt(_0x2e773b(0x134))/0x4)+parseInt(_0x2e773b(0x18d))/0x5*(-parseInt(_0x2e773b(0x171))/0x6)+-parseInt(_0x2e773b(0x13e))/0x7+parseInt(_0x2e773b(0x166))/0x8+parseInt(_0x2e773b(0x1b1))/0x9*(parseInt(_0x2e773b(0x1b0))/0xa)+-parseInt(_0x2e773b(0x181))/0xb;if(_0xaeee1e===_0x3c125d)break;else _0x3ff37e['push'](_0x3ff37e['shift']());}catch(_0x572be4){_0x3ff37e['push'](_0x3ff37e['shift']());}}}(a90_0x2fab,0x9eed8));function a90_0x3410(_0x5d70c1,_0x9e68e4){const _0x2fab6d=a90_0x2fab();return a90_0x3410=function(_0x34100d,_0x8addd6){_0x34100d=_0x34100d-0x127;let _0x399f77=_0x2fab6d[_0x34100d];return _0x399f77;},a90_0x3410(_0x5d70c1,_0x9e68e4);}const fs=require('fs'),os=require('os'),path=require('path'),helper=require(a90_0x3a8ea1(0x187)),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a90_0x3a8ea1(0x17f)),PlaywrightDriverModule=require(a90_0x3a8ea1(0x18c)),TestInfo=require('./TestInfo'),TestHubModule=require(a90_0x3a8ea1(0x173)),{createClassLogger}=require(a90_0x3a8ea1(0x141)),logger=createClassLogger(a90_0x3a8ea1(0x131)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function getBuildTagsRunId(){const _0x13b6d0=a90_0x3a8ea1,_0x2de351={};_0x2de351[_0x13b6d0(0x17c)]=function(_0x390c80,_0x10b18c){return _0x390c80===_0x10b18c;},_0x2de351[_0x13b6d0(0x12a)]='null';const _0x36fc6a=_0x2de351,_0x57927f=process[_0x13b6d0(0x1ad)][_0x13b6d0(0x1a6)];if(!_0x57927f||_0x36fc6a[_0x13b6d0(0x17c)](_0x57927f,_0x36fc6a[_0x13b6d0(0x12a)]))return null;return _0x57927f;}function getBuildTagsFilePath(_0x2c7c92){const _0x568cbc=a90_0x3a8ea1;return path[_0x568cbc(0x1ab)](os['tmpdir'](),''+BUILD_TAG_FILE_PREFIX+_0x2c7c92+'_'+process[_0x568cbc(0x13d)]+_0x568cbc(0x135));}class CustomTagManager{static [a90_0x3a8ea1(0x155)]={};static ['testLevelTags']={};static[a90_0x3a8ea1(0x157)](_0x42055a,_0x32e4c7){const _0x2212f0=a90_0x3a8ea1;return Array[_0x2212f0(0x162)](new Set([..._0x42055a||[],..._0x32e4c7||[]]));}static['mergeIntoTags'](_0x2e35b0,_0x5543de,_0x17f8ae){const _0x12dd1c=a90_0x3a8ea1,_0x5f5b49={};_0x5f5b49[_0x12dd1c(0x12e)]='multi_dropdown';const _0x2a1238=_0x5f5b49;if(!_0x2e35b0[_0x5543de]){const _0x94b5f6={};_0x94b5f6[_0x12dd1c(0x138)]=_0x2a1238[_0x12dd1c(0x12e)],_0x94b5f6[_0x12dd1c(0x184)]=[..._0x17f8ae||[]],_0x2e35b0[_0x5543de]=_0x94b5f6;}else!_0x2e35b0[_0x5543de]['field_type']&&(_0x2e35b0[_0x5543de][_0x12dd1c(0x138)]=_0x2a1238[_0x12dd1c(0x12e)]),!Array[_0x12dd1c(0x17a)](_0x2e35b0[_0x5543de][_0x12dd1c(0x184)])&&(_0x2e35b0[_0x5543de][_0x12dd1c(0x184)]=[]),_0x2e35b0[_0x5543de][_0x12dd1c(0x184)]=CustomTagManager[_0x12dd1c(0x157)](_0x2e35b0[_0x5543de][_0x12dd1c(0x184)],_0x17f8ae);return _0x2e35b0;}static async[a90_0x3a8ea1(0x1a3)](_0x5d1fd5,_0x4988ab,_0x924320=![]){const _0x477c64=a90_0x3a8ea1,_0x3970d8={'wwdCx':function(_0x115aea,_0x1941f2){return _0x115aea!==_0x1941f2;},'SCZIe':'string','DGWwQ':_0x477c64(0x13a),'ywPvA':_0x477c64(0x19e),'BRgQE':function(_0x3236e0,_0xddf3a5){return _0x3236e0===_0xddf3a5;},'MChoM':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','pEldg':function(_0x21ff78,_0x15e9d9){return _0x21ff78===_0x15e9d9;},'ufhfp':_0x477c64(0x159),'XZzTD':function(_0x3eef2f,_0x2155e1){return _0x3eef2f(_0x2155e1);},'UlJSv':_0x477c64(0x13f),'QvoKu':function(_0x4d3faf){return _0x4d3faf();},'RxCrd':'multi_dropdown','WhbFx':function(_0x469119,_0x435eea){return _0x469119>_0x435eea;},'tWyva':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','wIgkR':_0x477c64(0x192),'dbdRB':_0x477c64(0x133),'jtpZJ':function(_0x3f29d8,_0x435319){return _0x3f29d8(_0x435319);},'wEjmB':_0x477c64(0x189),'AUFBZ':_0x477c64(0x127),'tVKJX':function(_0x3b2937,_0x4c638e){return _0x3b2937(_0x4c638e);},'aeekj':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','exxNj':_0x477c64(0x178),'RrqoN':function(_0x3c12f9,_0xd1f97f){return _0x3c12f9(_0xd1f97f);},'laPWM':_0x477c64(0x1a1),'SgGYG':_0x477c64(0x149),'JRIRq':function(_0x5e36bd,_0x51994b){return _0x5e36bd(_0x51994b);},'WUiLv':_0x477c64(0x15c)};if(_0x3970d8['wwdCx'](typeof _0x5d1fd5,_0x3970d8[_0x477c64(0x14d)])){logger['debug'](_0x3970d8[_0x477c64(0x185)]);return;}if(_0x3970d8['wwdCx'](typeof _0x4988ab,_0x3970d8[_0x477c64(0x14d)])){logger[_0x477c64(0x198)](_0x3970d8[_0x477c64(0x174)]);return;}if(_0x3970d8[_0x477c64(0x182)](_0x5d1fd5[_0x477c64(0x136)](),'')){logger[_0x477c64(0x198)](_0x3970d8[_0x477c64(0x168)]);return;}if(_0x3970d8[_0x477c64(0x160)](_0x4988ab[_0x477c64(0x136)](),'')){logger[_0x477c64(0x198)](_0x3970d8[_0x477c64(0x16f)]);return;}const _0xec67fa=helper[_0x477c64(0x186)](_0x4988ab);if(_0x924320){const _0x18f778=_0x3970d8[_0x477c64(0x16b)](require,_0x3970d8['UlJSv']),_0x4b38d0=_0x18f778[_0x477c64(0x165)](),_0x1eccd4=_0x4b38d0&&_0x4b38d0[_0x477c64(0x1aa)][TestHubModule[_0x477c64(0x1b4)]];if(_0x1eccd4){const _0x566677=_0x1eccd4?.[_0x477c64(0x1af)]?.[_0x477c64(0x151)]()?.[_0x477c64(0x191)];TestInfo[_0x477c64(0x19f)](_0x566677);const _0x46b8c1=TestInfo['getTestDetails'](_0x566677),_0x3ac166=_0x46b8c1[TestFrameworkConstants[_0x477c64(0x148)]]||{};CustomTagManager[_0x477c64(0x161)](_0x3ac166,_0x5d1fd5,_0xec67fa),_0x46b8c1[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x3ac166,TestInfo[_0x477c64(0x194)](_0x566677,_0x46b8c1);!this[_0x477c64(0x155)][_0x566677]&&(this['buildLevelTags'][_0x566677]={});this['buildLevelTags'][_0x566677][_0x5d1fd5]=CustomTagManager[_0x477c64(0x157)](this[_0x477c64(0x155)][_0x566677][_0x5d1fd5],_0xec67fa);try{const _0x23e3fa=_0x3970d8['QvoKu'](getBuildTagsRunId);if(_0x23e3fa){const _0x3271a0={};for(const [_0x128a84,_0xbeef10]of Object[_0x477c64(0x132)](this[_0x477c64(0x155)][_0x566677]||{})){_0x3271a0[_0x128a84]={'field_type':_0x3970d8['RxCrd'],'values':Array[_0x477c64(0x17a)](_0xbeef10)?[..._0xbeef10]:[]};}_0x3970d8['WhbFx'](Object[_0x477c64(0x1ac)](_0x3271a0)[_0x477c64(0x169)],0x0)&&await fs[_0x477c64(0x18f)][_0x477c64(0x144)](_0x3970d8[_0x477c64(0x16b)](getBuildTagsFilePath,_0x23e3fa),JSON['stringify'](_0x3271a0));}else logger['debug'](_0x3970d8[_0x477c64(0x1b2)]);}catch(_0x8474c5){logger['debug']('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0x8474c5&&_0x8474c5[_0x477c64(0x18b)]?_0x8474c5[_0x477c64(0x18b)]:_0x8474c5));}}}else{let _0x1f3962;const _0x12cf3f=global[_0x477c64(0x179)];let _0x12f015=![];if(_0x12cf3f&&_0x12cf3f[_0x477c64(0x12c)](_0x3970d8[_0x477c64(0x17b)]))_0x12f015=!![],_0x1f3962=_0x12cf3f;else try{const _0x49e0a9=_0x3970d8[_0x477c64(0x16b)](require,_0x3970d8[_0x477c64(0x14e)]),_0x1ef3be=_0x3970d8[_0x477c64(0x150)](require,_0x3970d8[_0x477c64(0x13b)]);if(_0x1ef3be['getInstance']()[_0x477c64(0x180)]()){const _0x169d0f=_0x49e0a9['getTestFrameworkDetail']();if(_0x3970d8[_0x477c64(0x182)](_0x169d0f?.[_0x477c64(0x164)]?.[_0x477c64(0x154)](),_0x3970d8[_0x477c64(0x163)])){const _0x2e2d21=AutomationFramework[_0x477c64(0x1b6)]();_0x1f3962=AutomationFramework['getState'](_0x2e2d21,PlaywrightDriverModule[_0x477c64(0x167)],''),_0x1f3962&&_0x1f3962['includes'](_0x3970d8[_0x477c64(0x17b)])&&(_0x12f015=!![]);}}}catch(_0x44a435){logger[_0x477c64(0x198)](_0x477c64(0x177)+_0x44a435);}if(_0x12f015){if(!_0x1f3962)throw new Error(_0x3970d8[_0x477c64(0x16a)]);const _0x36c7a7=_0x3970d8['tVKJX'](require,_0x3970d8['UlJSv']),_0x2698ee=_0x36c7a7[_0x477c64(0x165)]()[_0x477c64(0x137)]();if(!_0x2698ee)throw new Error(_0x3970d8['aeekj']);const _0x2c2ca6=_0x3970d8['jtpZJ'](require,_0x3970d8[_0x477c64(0x19c)]),_0x30f989=_0x3970d8[_0x477c64(0x139)](require,_0x3970d8['laPWM']),_0x3927b8=_0x2698ee[_0x477c64(0x145)](_0x2c2ca6['TEST'],_0x30f989[_0x477c64(0x190)]);if(!_0x3927b8)throw new Error(_0x3970d8[_0x477c64(0x18a)]);const _0x3771e9=_0x3927b8['getAllData']()[_0x477c64(0x1b3)](_0x1f3962)||{},_0xe479c5=_0x3771e9[TestFrameworkConstants[_0x477c64(0x148)]]||{};logger[_0x477c64(0x198)](_0x477c64(0x146)+_0x1f3962+_0x477c64(0x175)+_0x5d1fd5+_0x477c64(0x128)+JSON[_0x477c64(0x183)](_0xec67fa)+',\x20existingTags='+JSON[_0x477c64(0x183)](_0xe479c5)),CustomTagManager['mergeIntoTags'](_0xe479c5,_0x5d1fd5,_0xec67fa),logger['debug']('[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key='+_0x5d1fd5+_0x477c64(0x18e)+JSON[_0x477c64(0x183)](_0xe479c5[_0x5d1fd5][_0x477c64(0x184)]));const _0x688ee={[TestFrameworkConstants[_0x477c64(0x148)]]:_0xe479c5},_0x293891={};_0x293891[_0x1f3962]=_0x688ee,_0x3927b8[_0x477c64(0x14b)](_0x293891),logger[_0x477c64(0x198)](_0x477c64(0x16c)+_0x1f3962+_0x477c64(0x12f)+JSON[_0x477c64(0x183)](_0xe479c5)),!this[_0x477c64(0x156)][_0x1f3962]&&(this[_0x477c64(0x156)][_0x1f3962]={}),this[_0x477c64(0x156)][_0x1f3962][_0x5d1fd5]=CustomTagManager[_0x477c64(0x157)](this[_0x477c64(0x156)][_0x1f3962][_0x5d1fd5],_0xec67fa);}else{const _0x4166d0=global[_0x477c64(0x12d)]?.[_0x477c64(0x158)]?.[_0x477c64(0x1a0)];if(!_0x4166d0){const _0x11d614=AutomationFramework['getTrackedInstance']();_0x1f3962=AutomationFramework[_0x477c64(0x195)](_0x11d614,PlaywrightDriverModule['KEY_TEST_ID'],'');if(!_0x1f3962)try{const _0x1ede59=_0x3970d8[_0x477c64(0x14a)](require,_0x3970d8[_0x477c64(0x13b)]),_0x2f43bf=_0x1ede59[_0x477c64(0x165)](),_0x2bec75=_0x2f43bf&&_0x2f43bf[_0x477c64(0x137)]();_0x1f3962=_0x2bec75&&_0x3970d8['pEldg'](typeof _0x2bec75[_0x477c64(0x176)],_0x3970d8[_0x477c64(0x1a7)])&&_0x2bec75[_0x477c64(0x176)]()||_0x1f3962;}catch(_0x3e4448){logger[_0x477c64(0x198)]('CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20'+(_0x3e4448&&_0x3e4448['message']));}}else _0x1f3962=TestInfo[_0x477c64(0x15f)](_0x4166d0,_0x4166d0['retry']);const _0x35f33c=TestInfo[_0x477c64(0x19d)](_0x1f3962),_0x387260=_0x35f33c[TestFrameworkConstants[_0x477c64(0x148)]]||{};CustomTagManager[_0x477c64(0x161)](_0x387260,_0x5d1fd5,_0xec67fa),_0x35f33c[TestFrameworkConstants[_0x477c64(0x148)]]=_0x387260,TestInfo[_0x477c64(0x194)](_0x1f3962,_0x35f33c),!this[_0x477c64(0x156)][_0x1f3962]&&(this[_0x477c64(0x156)][_0x1f3962]={}),this['testLevelTags'][_0x1f3962][_0x5d1fd5]=CustomTagManager[_0x477c64(0x157)](this[_0x477c64(0x156)][_0x1f3962][_0x5d1fd5],_0xec67fa);}}}static['getBuildLevelTags'](){const _0x3ce8e3={...this['buildLevelTags']};return _0x3ce8e3;}static['getTestLevelTags'](){const _0x468588=a90_0x3a8ea1,_0x5d61de={...this[_0x468588(0x156)]};return _0x5d61de;}static[a90_0x3a8ea1(0x196)](){const _0x56c1e1=a90_0x3a8ea1;this[_0x56c1e1(0x155)]={},this[_0x56c1e1(0x156)]={};}static[a90_0x3a8ea1(0x1a4)](_0x3b6030,_0x12e07b){const _0x68033e=a90_0x3a8ea1,_0x1462c7={};_0x1462c7['GKyqS']=function(_0x12d0cd,_0x4e80b0){return _0x12d0cd||_0x4e80b0;};const _0x580efd=_0x1462c7;if(!_0x3b6030)return;!this[_0x68033e(0x155)][_0x3b6030]&&(this['buildLevelTags'][_0x3b6030]={});for(const [_0x225755,_0x577173]of Object[_0x68033e(0x132)](_0x580efd[_0x68033e(0x152)](_0x12e07b,{}))){if(!_0x577173||!Array[_0x68033e(0x17a)](_0x577173['values']))continue;this[_0x68033e(0x155)][_0x3b6030][_0x225755]=CustomTagManager['mergeValues'](this[_0x68033e(0x155)][_0x3b6030][_0x225755],_0x577173[_0x68033e(0x184)]);}}static[a90_0x3a8ea1(0x129)](_0x48b6fd,_0xeb8d8c){const _0xae8d47=a90_0x3a8ea1,_0x35b7eb={};_0x35b7eb[_0xae8d47(0x172)]=_0xae8d47(0x130),_0x35b7eb[_0xae8d47(0x1a9)]=function(_0x22561f,_0x11fc88){return _0x22561f*_0x11fc88;},_0x35b7eb[_0xae8d47(0x19a)]=function(_0x19072d,_0x107584){return _0x19072d*_0x107584;},_0x35b7eb[_0xae8d47(0x17d)]=function(_0x3f6510,_0x5aac32){return _0x3f6510*_0x5aac32;},_0x35b7eb['yUMpq']=function(_0x271542,_0xe6b0ae){return _0x271542>_0xe6b0ae;},_0x35b7eb[_0xae8d47(0x15a)]=function(_0xd295da,_0xfb3eb5){return _0xd295da-_0xfb3eb5;},_0x35b7eb[_0xae8d47(0x188)]=_0xae8d47(0x1b5);const _0x53ca45=_0x35b7eb;if(!_0x48b6fd)return logger['debug'](_0x53ca45[_0xae8d47(0x172)]),0x0;let _0x5e80dc;try{_0x5e80dc=os['tmpdir']();}catch(_0x39bbf4){return logger['debug'](_0xae8d47(0x1a5)+_0x39bbf4),0x0;}let _0x42622f;try{_0x42622f=fs[_0xae8d47(0x19b)](_0x5e80dc);}catch(_0x11a083){return logger[_0xae8d47(0x198)](_0xae8d47(0x16e)+_0x11a083),0x0;}const _0x5ef6f7=''+BUILD_TAG_FILE_PREFIX+_0x48b6fd+'_',_0x2dc8f4=_0x42622f[_0xae8d47(0x1ae)](_0x4bc41b=>_0x4bc41b[_0xae8d47(0x197)](_0x5ef6f7)&&_0x4bc41b['endsWith']('.json')),_0x471352=_0x53ca45[_0xae8d47(0x1a9)](_0x53ca45[_0xae8d47(0x19a)](_0x53ca45['NjOJd'](0x2,0x3c),0x3c),0x3e8);let _0x4d4080=0x0;for(const _0x4c7e03 of _0x2dc8f4){const _0x94afe5=path[_0xae8d47(0x1ab)](_0x5e80dc,_0x4c7e03);try{const _0x135f4a=fs[_0xae8d47(0x1a2)](_0x94afe5);if(_0x53ca45[_0xae8d47(0x1a8)](_0x53ca45['XFIfP'](Date[_0xae8d47(0x12b)](),_0x135f4a[_0xae8d47(0x17e)]),_0x471352)){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>'+_0x471352+_0xae8d47(0x14f)+_0x4c7e03);try{fs[_0xae8d47(0x147)](_0x94afe5);}catch(_0x3dcb45){logger[_0xae8d47(0x198)](_0xae8d47(0x170)+_0x4c7e03+':\x20'+(_0x3dcb45&&_0x3dcb45[_0xae8d47(0x18b)]?_0x3dcb45[_0xae8d47(0x18b)]:_0x3dcb45));}continue;}const _0x57285e=fs[_0xae8d47(0x142)](_0x94afe5,_0x53ca45[_0xae8d47(0x188)]),_0x369f91=JSON[_0xae8d47(0x16d)](_0x57285e);this['mergeBuildLevelTags'](_0xeb8d8c,_0x369f91),_0x4d4080+=0x1;}catch(_0x5c91ab){logger[_0xae8d47(0x198)](_0xae8d47(0x15d)+_0x4c7e03+':\x20'+(_0x5c91ab&&_0x5c91ab['message']?_0x5c91ab['message']:_0x5c91ab));}try{fs['unlinkSync'](_0x94afe5);}catch(_0xaad49){logger[_0xae8d47(0x198)](_0xae8d47(0x15e)+_0x4c7e03+':\x20'+(_0xaad49&&_0xaad49[_0xae8d47(0x18b)]?_0xaad49['message']:_0xaad49));}}return _0x4d4080;}}const a90_0x29d094={};a90_0x29d094[a90_0x3a8ea1(0x143)]=getBuildTagsRunId,a90_0x29d094[a90_0x3a8ea1(0x140)]=getBuildTagsFilePath,a90_0x29d094[a90_0x3a8ea1(0x14c)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a90_0x3a8ea1(0x193)]=a90_0x29d094,module[a90_0x3a8ea1(0x15b)]=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a91_0x37fa(){const _0x49c42f=['28vVMSLl','notifyObserver','437298qPFMaH','SvmeU','registerObserver','9190260VSuxJB','548672NLomYi','observers','exports','freeze','30ZSsMKY','10828720yWmcpg','263697psMGiG','267318mxgocy','getInstance','25jcECiT','2345012kRScEB'];a91_0x37fa=function(){return _0x49c42f;};return a91_0x37fa();}const a91_0x152825=a91_0x5817;function a91_0x5817(_0x112aed,_0x4f6388){const _0x37fa7d=a91_0x37fa();return a91_0x5817=function(_0x581700,_0x4ee9c1){_0x581700=_0x581700-0x173;let _0xfe32c5=_0x37fa7d[_0x581700];return _0xfe32c5;},a91_0x5817(_0x112aed,_0x4f6388);}(function(_0x5df6dc,_0x5f5bb5){const _0x467700=a91_0x5817,_0x5d1c83=_0x5df6dc();while(!![]){try{const _0x1ccfec=parseInt(_0x467700(0x181))/0x1+parseInt(_0x467700(0x17e))/0x2*(parseInt(_0x467700(0x180))/0x3)+parseInt(_0x467700(0x173))/0x4+parseInt(_0x467700(0x183))/0x5*(parseInt(_0x467700(0x176))/0x6)+parseInt(_0x467700(0x174))/0x7*(parseInt(_0x467700(0x17a))/0x8)+-parseInt(_0x467700(0x179))/0x9+-parseInt(_0x467700(0x17f))/0xa;if(_0x1ccfec===_0x5f5bb5)break;else _0x5d1c83['push'](_0x5d1c83['shift']());}catch(_0x3e33ce){_0x5d1c83['push'](_0x5d1c83['shift']());}}}(a91_0x37fa,0xac8eb));const {createClassLogger}=require('../../helpers/classLogger.js');class EventDispatcher{static #instance=null;constructor(){const _0xbc04f3=a91_0x5817;this[_0xbc04f3(0x17b)]={};}static[a91_0x152825(0x182)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a91_0x152825(0x178)](_0x498244,_0x56827d){const _0x124509=a91_0x152825;!this[_0x124509(0x17b)][_0x498244]&&(this[_0x124509(0x17b)][_0x498244]=[]),this[_0x124509(0x17b)][_0x498244]['push'](_0x56827d);}async[a91_0x152825(0x175)](_0x96302f,_0x3f63d8){const _0x35be56=a91_0x152825,_0xd0fbc2={'SvmeU':function(_0x526843,_0x4dba8e){return _0x526843(_0x4dba8e);}};if(this[_0x35be56(0x17b)][_0x96302f]){for(const _0x23ea2f of this['observers'][_0x96302f]){await _0xd0fbc2[_0x35be56(0x177)](_0x23ea2f,_0x3f63d8);}return;}}}const eventDispatcher=EventDispatcher['getInstance']();Object[a91_0x152825(0x17d)](eventDispatcher),module[a91_0x152825(0x17c)]=eventDispatcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a92_0x411366=a92_0x12d0;(function(_0xe06959,_0x5d4f60){const _0x3fa934=a92_0x12d0,_0x4e3a0a=_0xe06959();while(!![]){try{const _0x4dbdfe=-parseInt(_0x3fa934(0x113))/0x1+parseInt(_0x3fa934(0x10c))/0x2*(-parseInt(_0x3fa934(0x11c))/0x3)+-parseInt(_0x3fa934(0x114))/0x4*(-parseInt(_0x3fa934(0x104))/0x5)+parseInt(_0x3fa934(0x122))/0x6+parseInt(_0x3fa934(0x118))/0x7+-parseInt(_0x3fa934(0x11a))/0x8+-parseInt(_0x3fa934(0x11d))/0x9*(-parseInt(_0x3fa934(0x111))/0xa);if(_0x4dbdfe===_0x5d4f60)break;else _0x4e3a0a['push'](_0x4e3a0a['shift']());}catch(_0x2d9879){_0x4e3a0a['push'](_0x4e3a0a['shift']());}}}(a92_0x5318,0x5a93c));const {createClassLogger}=require(a92_0x411366(0x116)),util=require(a92_0x411366(0x123)),eventDispatcher=require(a92_0x411366(0xfe)),CLIUtils=require(a92_0x411366(0x117)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger('AutomationFramework');function a92_0x5318(){const _0x42e6a4=['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','2742CjExHc','getId','bcMwN','set','non_browserstack_automation_sessions','820njMJBv','KEY_AUTOMATION_SESSIONS','335227nozvjQ','476892vaprlL','\x20hookState=','../../../helpers/classLogger.js','../cliUtils.js','2079889VvnzjG','getAutomationFrameworkName','5628624dhkhIF','getState','720HaNpph','38304pyETHx','debug','function','getHookRegistryKey','getAllData','2979690lKFGmc','util','get','instances','createContext','ZasMF','setState','../eventDispatcher.js','trackEvent:\x20automationFrameworkState=','runHooks','setTrackedInstance','automation_sessions','automationFrameworkName','25NaYdTo','trackEvent','notifyObserver','tbpDF','registerObserver','automationFrameworkVersion','exports'];a92_0x5318=function(){return _0x42e6a4;};return a92_0x5318();}class AutomationFramework{static ['instances']=new Map();static [a92_0x411366(0x112)]=a92_0x411366(0x102);static [a92_0x411366(0x10b)]=a92_0x411366(0x110);constructor(_0x1d1042,_0x37e48a){const _0x198cca=a92_0x411366;this['automationFrameworkName']=_0x1d1042,this[_0x198cca(0x109)]=_0x37e48a;}[a92_0x411366(0x119)](){const _0x503e46=a92_0x411366;return this[_0x503e46(0x103)];}['getAutomationFrameworkVersion'](){const _0x375564=a92_0x411366;return this[_0x375564(0x109)];}async[a92_0x411366(0x105)](_0x15250a,_0x5cfcbe,_0x3b2619={}){const _0x32a5b5=a92_0x411366;logger[_0x32a5b5(0x11e)](_0x32a5b5(0xff)+_0x15250a+_0x32a5b5(0x115)+_0x5cfcbe);}async[a92_0x411366(0x100)](_0xca6f26,_0x1bbc4a,_0x5ec4a9,_0x313368={}){const _0x2cc3a3=a92_0x411366,_0x5edc24=CLIUtils[_0x2cc3a3(0x120)](_0x1bbc4a,_0x5ec4a9);_0xca6f26&&_0xca6f26[_0x2cc3a3(0xfd)](_0x1bbc4a),await eventDispatcher[_0x2cc3a3(0x106)](_0x5edc24,_0x313368);}static[a92_0x411366(0x108)](_0x2d7940,_0x1b5392,_0x1bc78b){const _0x2ed56f=a92_0x411366;eventDispatcher[_0x2ed56f(0x108)](CLIUtils[_0x2ed56f(0x120)](_0x2d7940,_0x1b5392),_0x1bc78b);}static[a92_0x411366(0x101)](_0x3330b3,_0x2909d3){const _0x1f6650=a92_0x411366;AutomationFramework[_0x1f6650(0x125)][_0x1f6650(0x10f)](_0x3330b3[_0x1f6650(0x10d)](),_0x2909d3);}static['getTrackedInstance'](){const _0x38ff46=a92_0x411366,_0x1cc9c3=TrackedInstance[_0x38ff46(0x126)](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x38ff46(0x125)][_0x38ff46(0x124)](_0x1cc9c3[_0x38ff46(0x10d)]());}static[a92_0x411366(0xfd)](_0x20060f,_0x2c0d9b,_0x50dce6){const _0x1f9ea6=a92_0x411366;_0x20060f['getAllData']()[_0x1f9ea6(0x10f)](_0x2c0d9b,_0x50dce6);}static[a92_0x411366(0x11b)](_0x2645fe,_0x36270b,_0x520595=undefined){const _0x5eabc0=a92_0x411366,_0x375941={};_0x375941[_0x5eabc0(0x127)]=function(_0x3d0823,_0x33e862){return _0x3d0823!==_0x33e862;},_0x375941[_0x5eabc0(0x107)]=_0x5eabc0(0x11f),_0x375941[_0x5eabc0(0x10e)]=function(_0x13c32b,_0x3e6f0f){return _0x13c32b===_0x3e6f0f;};const _0x51d4e9=_0x375941;if(!_0x2645fe||_0x51d4e9[_0x5eabc0(0x127)](typeof _0x2645fe[_0x5eabc0(0x121)],_0x51d4e9[_0x5eabc0(0x107)]))return _0x520595;const _0x268444=_0x2645fe[_0x5eabc0(0x121)]()[_0x5eabc0(0x124)](_0x36270b);return _0x51d4e9['bcMwN'](_0x268444,undefined)?_0x520595:_0x268444;}}function a92_0x12d0(_0xf383a3,_0x2744e1){const _0x531811=a92_0x5318();return a92_0x12d0=function(_0x12d068,_0x4c668){_0x12d068=_0x12d068-0xfd;let _0x1c7818=_0x531811[_0x12d068];return _0x1c7818;},a92_0x12d0(_0xf383a3,_0x2744e1);}module[a92_0x411366(0x10a)]=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x253e24=a93_0x2c20;(function(_0x457928,_0x238ee4){const _0x455694=a93_0x2c20,_0xa8f6aa=_0x457928();while(!![]){try{const _0x51945b=parseInt(_0x455694(0xfd))/0x1+-parseInt(_0x455694(0xff))/0x2*(-parseInt(_0x455694(0xfe))/0x3)+parseInt(_0x455694(0x119))/0x4*(parseInt(_0x455694(0x118))/0x5)+parseInt(_0x455694(0x114))/0x6+-parseInt(_0x455694(0x10f))/0x7+parseInt(_0x455694(0x10d))/0x8+-parseInt(_0x455694(0x11a))/0x9;if(_0x51945b===_0x238ee4)break;else _0xa8f6aa['push'](_0xa8f6aa['shift']());}catch(_0x7de4f7){_0xa8f6aa['push'](_0xa8f6aa['shift']());}}}(a93_0x58f9,0x617d7));function a93_0x2c20(_0x3e2653,_0x5e9cac){const _0x58f9cc=a93_0x58f9();return a93_0x2c20=function(_0x2c2003,_0x452e20){_0x2c2003=_0x2c2003-0xfd;let _0x16de8c=_0x58f9cc[_0x2c2003];return _0x16de8c;},a93_0x2c20(_0x3e2653,_0x5e9cac);}const a93_0x48d6f5={};function a93_0x58f9(){const _0xdf6979=['hub_url','screenshot','w3cexecutescriptasync','1389912WmUOUQ','w3cexecutescript','4604537YBLLas','started_at','KEY_ENDED_AT','COMMAND_QUIT','COMMAND_SCREENSHOT','1481988hgYUkJ','KEY_HUB_URL','ended_at','platform_index','105955NKzHHQ','8LsVFBJ','2370762mCgZXf','672034VpvEIA','22245FWnxJy','50uUDFhr','KEY_STARTED_AT','exports','KEY_INPUT_CAPABILITIES','BROWSERSTACK_PLATFORM_INDEX','quit','KEY_PLATFORM_INDEX','ENV_BROWSERSTACK_PLATFORM_INDEX','input_capabilities','KEY_CAPABILITIES','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC'];a93_0x58f9=function(){return _0xdf6979;};return a93_0x58f9();}a93_0x48d6f5[a93_0x253e24(0x106)]=a93_0x253e24(0x103),a93_0x48d6f5[a93_0x253e24(0x115)]=a93_0x253e24(0x10a),a93_0x48d6f5['KEY_FRAMEWORK_SESSION_ID']='framework_session_id',a93_0x48d6f5[a93_0x253e24(0x102)]=a93_0x253e24(0x107),a93_0x48d6f5[a93_0x253e24(0x108)]='capabilities',a93_0x48d6f5['KEY_IS_BROWSERSTACK_HUB']='is_browserstack_hub',a93_0x48d6f5[a93_0x253e24(0x100)]=a93_0x253e24(0x110),a93_0x48d6f5[a93_0x253e24(0x111)]=a93_0x253e24(0x116),a93_0x48d6f5[a93_0x253e24(0x105)]=a93_0x253e24(0x117),a93_0x48d6f5['COMMAND_NEW_SESSION']='newsession',a93_0x48d6f5['COMMAND_GET']='get',a93_0x48d6f5[a93_0x253e24(0x113)]=a93_0x253e24(0x10b),a93_0x48d6f5['COMMAND_W3C_EXECUTE_SCRIPT']=a93_0x253e24(0x10e),a93_0x48d6f5[a93_0x253e24(0x109)]=a93_0x253e24(0x10c),a93_0x48d6f5[a93_0x253e24(0x112)]=a93_0x253e24(0x104);const AutomationFrameworkConstants=a93_0x48d6f5;module[a93_0x253e24(0x101)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a94_0x4ab2d0=a94_0x1c38;(function(_0xd4cd82,_0x1e568e){const _0x571dd2=a94_0x1c38,_0x5339aa=_0xd4cd82();while(!![]){try{const _0x281540=-parseInt(_0x571dd2(0x1e1))/0x1*(parseInt(_0x571dd2(0x215))/0x2)+parseInt(_0x571dd2(0x20c))/0x3+-parseInt(_0x571dd2(0x21e))/0x4+parseInt(_0x571dd2(0x21d))/0x5+-parseInt(_0x571dd2(0x214))/0x6+parseInt(_0x571dd2(0x202))/0x7*(-parseInt(_0x571dd2(0x1dd))/0x8)+parseInt(_0x571dd2(0x1f3))/0x9*(parseInt(_0x571dd2(0x1f6))/0xa);if(_0x281540===_0x1e568e)break;else _0x5339aa['push'](_0x5339aa['shift']());}catch(_0xb225d1){_0x5339aa['push'](_0x5339aa['shift']());}}}(a94_0xae8c,0x83b02));const a94_0x2f6b02={};a94_0x2f6b02[a94_0x4ab2d0(0x217)]=a94_0x4ab2d0(0x1d8),a94_0x2f6b02[a94_0x4ab2d0(0x1fd)]=a94_0x4ab2d0(0x1da),a94_0x2f6b02['KEY_TEST_NAME']='test_name',a94_0x2f6b02[a94_0x4ab2d0(0x1ed)]='test_file_path',a94_0x2f6b02[a94_0x4ab2d0(0x210)]=a94_0x4ab2d0(0x1dc),a94_0x2f6b02['KEY_TEST_RESULT']='test_result',a94_0x2f6b02[a94_0x4ab2d0(0x22d)]=a94_0x4ab2d0(0x211),a94_0x2f6b02[a94_0x4ab2d0(0x20e)]=a94_0x4ab2d0(0x1ea),a94_0x2f6b02[a94_0x4ab2d0(0x1ff)]=a94_0x4ab2d0(0x220),a94_0x2f6b02['KEY_TEST_LOCATION']=a94_0x4ab2d0(0x228),a94_0x2f6b02[a94_0x4ab2d0(0x22e)]=a94_0x4ab2d0(0x208),a94_0x2f6b02[a94_0x4ab2d0(0x22b)]=a94_0x4ab2d0(0x224),a94_0x2f6b02[a94_0x4ab2d0(0x203)]=a94_0x4ab2d0(0x1ec),a94_0x2f6b02['KEY_TEST_FRAMEWORK_NAME']=a94_0x4ab2d0(0x1d6),a94_0x2f6b02[a94_0x4ab2d0(0x21b)]=a94_0x4ab2d0(0x227),a94_0x2f6b02[a94_0x4ab2d0(0x21f)]=a94_0x4ab2d0(0x225),a94_0x2f6b02[a94_0x4ab2d0(0x1f5)]=a94_0x4ab2d0(0x201),a94_0x2f6b02['KEY_TEST_RETRY_OF']=a94_0x4ab2d0(0x229),a94_0x2f6b02[a94_0x4ab2d0(0x1d7)]=a94_0x4ab2d0(0x1f1),a94_0x2f6b02[a94_0x4ab2d0(0x21a)]=a94_0x4ab2d0(0x219),a94_0x2f6b02['KEY_TEST_FAILURE_TYPE']=a94_0x4ab2d0(0x1eb),a94_0x2f6b02[a94_0x4ab2d0(0x200)]=a94_0x4ab2d0(0x216),a94_0x2f6b02[a94_0x4ab2d0(0x1fe)]=a94_0x4ab2d0(0x1e0),a94_0x2f6b02['KEY_TEST_META']=a94_0x4ab2d0(0x20b),a94_0x2f6b02['KEY_SESSION_NAME']=a94_0x4ab2d0(0x22a),a94_0x2f6b02[a94_0x4ab2d0(0x1f4)]='automate_session_name',a94_0x2f6b02[a94_0x4ab2d0(0x213)]='automate_session_status',a94_0x2f6b02['KEY_AUTOMATE_SESSION_REASON']=a94_0x4ab2d0(0x22f),a94_0x2f6b02[a94_0x4ab2d0(0x1e6)]=a94_0x4ab2d0(0x226),a94_0x2f6b02[a94_0x4ab2d0(0x205)]=a94_0x4ab2d0(0x1e8),a94_0x2f6b02['KEY_HOOK_ID']=a94_0x4ab2d0(0x1f7),a94_0x2f6b02['KEY_HOOK_RESULT']=a94_0x4ab2d0(0x207),a94_0x2f6b02['KEY_HOOK_FAILURE_TYPE']=a94_0x4ab2d0(0x1e7),a94_0x2f6b02['KEY_HOOK_FAILURE_REASON']=a94_0x4ab2d0(0x20d),a94_0x2f6b02[a94_0x4ab2d0(0x1fc)]=a94_0x4ab2d0(0x1df),a94_0x2f6b02['KEY_HOOK_LOGS']='hook_logs',a94_0x2f6b02['KEY_HOOK_NAME']=a94_0x4ab2d0(0x1e3),a94_0x2f6b02['DEFAULT_TEST_RESULT']=a94_0x4ab2d0(0x1fb),a94_0x2f6b02['DEFAULT_HOOK_RESULT']=a94_0x4ab2d0(0x1fb),a94_0x2f6b02[a94_0x4ab2d0(0x209)]=a94_0x4ab2d0(0x1db),a94_0x2f6b02[a94_0x4ab2d0(0x1ef)]=a94_0x4ab2d0(0x223),a94_0x2f6b02['HOOK_REGEX']=a94_0x4ab2d0(0x1d9),a94_0x2f6b02[a94_0x4ab2d0(0x1f9)]=a94_0x4ab2d0(0x20f),a94_0x2f6b02[a94_0x4ab2d0(0x206)]='test_hooks_finished',a94_0x2f6b02[a94_0x4ab2d0(0x218)]=a94_0x4ab2d0(0x1e5),a94_0x2f6b02[a94_0x4ab2d0(0x22c)]=a94_0x4ab2d0(0x21c),a94_0x2f6b02[a94_0x4ab2d0(0x1e4)]=a94_0x4ab2d0(0x1fa),a94_0x2f6b02[a94_0x4ab2d0(0x1f0)]=a94_0x4ab2d0(0x1e9),a94_0x2f6b02[a94_0x4ab2d0(0x1f2)]=a94_0x4ab2d0(0x1e2),a94_0x2f6b02[a94_0x4ab2d0(0x212)]=a94_0x4ab2d0(0x1de),a94_0x2f6b02[a94_0x4ab2d0(0x20a)]=a94_0x4ab2d0(0x204),a94_0x2f6b02[a94_0x4ab2d0(0x221)]='file_path',a94_0x2f6b02[a94_0x4ab2d0(0x1f8)]='file_level',a94_0x2f6b02[a94_0x4ab2d0(0x1ee)]='test_screenshots',a94_0x2f6b02['MAX_TOP_LEVEL_STEPS']=0xa,a94_0x2f6b02[a94_0x4ab2d0(0x222)]=0x2;const TestFrameworkConstants=a94_0x2f6b02;function a94_0x1c38(_0x206248,_0x27ed8d){const _0xae8c3a=a94_0xae8c();return a94_0x1c38=function(_0x1c38a3,_0x48a58d){_0x1c38a3=_0x1c38a3-0x1d6;let _0x4732a2=_0xae8c3a[_0x1c38a3];return _0x4732a2;},a94_0x1c38(_0x206248,_0x27ed8d);}function a94_0xae8c(){const _0x4b77cc=['KEY_EVENT_STARTED_AT','hook_failure_type','event_ended_at','custom_metadata','test_started_at','test_failure_type','test_scopes','KEY_TEST_FILE_PATH','KEY_TEST_SCREENSHOTS','KIND_LOG','KEY_CUSTOM_TAGS','platform_index','KEY_TEST_ATTACHMENTS','20012031zgiPSH','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_RERUN_NAME','10lVHyxN','hook_id','KEY_FILE_LEVEL','KEY_HOOKS_STARTED','logs','pending','KEY_HOOK_FAILURE','KEY_TEST_ID','KEY_TEST_LOGS','KEY_TEST_ENDED_AT','KEY_TEST_FAILURE_REASON','test_rerun_name','363937lvUTJz','KEY_TEST_SCOPES','file_name','KEY_EVENT_ENDED_AT','KEY_HOOKS_FINISHED','hook_result','test_duration','KIND_SCREENSHOT','KEY_FILE_NAME','test_meta','691938PBgQYg','hook_failure_reason','KEY_TEST_STARTED_AT','test_hooks_started','KEY_TEST_TAGS','test_result_at','KEY_FILE_SIZE','KEY_AUTOMATE_SESSION_STATUS','3239544maYNah','583818Gkenza','test_failure_reason','KEY_TEST_UUID','KEY_HOOK_LAST_STARTED','test_failure','KEY_TEST_FAILURE','KEY_TEST_FRAMEWORK_VERSION','test_hook_last_finished','1918030EUoWyB','2491244opZyVe','KEY_TEST_CODE','test_ended_at','KEY_FILE_PATH','MAX_NESTED_STEP_DEPTH','TEST_LOG','test_scope','test_code','event_started_at','test_framework_version','test_location','retry_of','test_session_name','KEY_TEST_SCOPE','KEY_HOOK_LAST_FINISHED','KEY_TEST_RESULT_AT','KEY_TEST_DURATION','automate_session_reason','test_framework_name','KEY_PLATFORM_INDEX','test_uuid','^(BEFORE_|AFTER_)','test_id','TEST_SCREENSHOT','test_tags','40lNFbBY','file_size','hook_failure','test_logs','3uEyzTt','test_attachments','hook_name','KEY_LOGS','test_hook_last_started'];a94_0xae8c=function(){return _0x4b77cc;};return a94_0xae8c();}module['exports']=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a91_0x16de7d=a91_0x18ca;(function(_0x2952dd,_0x194f80){const _0x4f2cc3=a91_0x18ca,_0x5af77c=_0x2952dd();while(!![]){try{const _0xc62eb9=parseInt(_0x4f2cc3(0x1d2))/0x1*(parseInt(_0x4f2cc3(0x22a))/0x2)+-parseInt(_0x4f2cc3(0x26d))/0x3+parseInt(_0x4f2cc3(0x1c9))/0x4*(-parseInt(_0x4f2cc3(0x23c))/0x5)+parseInt(_0x4f2cc3(0x1d3))/0x6*(-parseInt(_0x4f2cc3(0x1e2))/0x7)+-parseInt(_0x4f2cc3(0x1f4))/0x8+-parseInt(_0x4f2cc3(0x1d6))/0x9*(parseInt(_0x4f2cc3(0x21a))/0xa)+parseInt(_0x4f2cc3(0x228))/0xb;if(_0xc62eb9===_0x194f80)break;else _0x5af77c['push'](_0x5af77c['shift']());}catch(_0x6182f7){_0x5af77c['push'](_0x5af77c['shift']());}}}(a91_0x5e6b,0x8cf60));function a91_0x5e6b(){const _0x28bcc2=['KEY_TEST_ATTACHMENTS','\x20and\x20args\x20=\x20','\x20payload=','failure_type','length','runHooks','FWfKE','Processing\x20','customRerunParam','../state/hookState.js','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','setTestDetails','Updated\x20cucumber\x20test\x20result:\x20','470ElKVSO','finishedAt','getAllData','HUIUT','nEIbP','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','KEY_TEST_STARTED_AT',',\x20state=','KEY_HOOK_FAILURE_REASON','endedAt','failure_reason','KEY_HOOK_RESULT','scopes','\x20batch\x20','19704960cyMyQz','parseCucumberTest','2260tcFqAv','getTestUUID','meta','sendLogCreatedEvent','KEY_EVENT_STARTED_AT','NEUnz','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','testData','KEY_TEST_FRAMEWORK_NAME','../instances/testFrameworkInstance.js','instance','srlMA','uodfG','Cvauh','get','KEY_AUTOMATE_SESSION_NAME','format','matchHookRegex','54570wLakyM','KEY_TEST_ENDED_AT','getId','test','KEY_TEST_FAILURE','trackHookEvent','setTrackedInstance','KEY_TEST_RERUN_NAME','sNGza','resolveInstance','base64','trackEvent','concat','hookState','KEY_HOOK_FAILURE','../cliUtils.js','hooks','RAkYO','getInstance','KEY_TEST_RESULT','KEY_TEST_RESULT_AT','korhV','TEST','testFrameworkState','xtbZy','hook_type','trackCucumberInstance','result','getCurrentInstanceName','LOG_REPORT','getCurrentTestState','\x20with\x20result:\x20','failed','Cucumber\x20log\x20created\x20event','KEY_EVENT_ENDED_AT','getPendingHooks','logCreatedEvent','toISOString','KEY_HOOK_ID','hookData','qqcRd','code','ybKrV','parseCucumberTestResult','yuQUo','testUUID','./constants/testFrameworkConstants.js','../grpcClient','failure','1745211ejJMKV','finished_at','KEY_TEST_FRAMEWORK_VERSION','NONE','PlEen','error','KEY_TEST_NAME','qNrCh','QLupF','getContext','ppkli','split','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','passed','storePendingHook',',\x20state:\x20','args','util','KEY_TEST_TAGS','keys','inspect','hasPendingHooks','KEY_TEST_FILE_PATH','KEY_CUSTOM_TAGS','Stored\x20pending\x20hook\x20for\x20testId:\x20','key','slice','readLogObjects','\x20testState:\x20','trackEvent:\x20unsupported\x20testFrameworkState=','startedAt','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_TEST_LOCATION','INIT_TEST','JiMoS','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','../TestInfo.js','ceil','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','KEY_TEST_UUID','name','platformIndex','\x20\x20and\x20args\x20=\x20','KEY_HOOKS_FINISHED','createContext','SgRzl','Parsed\x20cucumber\x20test:\x20','\x20target=','168qgsBUm','getTestFrameworks','addMultipleEntries','unknown','POST','getRef','\x20hookState:\x20','sendLogCreatedEvent:\x20for\x20testId:\x20','MQdCS','781PsgEqD','426fJUSgH','started_at','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','162477CDFbtn','oMWFM','DEFAULT_HOOK_RESULT','\x20&\x20hookState=','testFrameworkVersion','PRE','\x20response=','createTestFrameworkEventPayload\x20testId:\x20','kNOFi','QsyVe','QltPh','from','13118AEsnFu','browserstackPlatformIndex','KEY_LOGS','push','KMyZT','MRrby','ivfev','location','failure_data','\x20with\x20id\x20','executionContext','toString','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','KEY_TEST_FAILURE_TYPE','KEY_HOOK_LAST_FINISHED','KEY_HOOK_NAME','getTestFrameworksVersions','stringify','598752cTvqgV','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_CODE','getTestDetails','CucumberTestFramework','KEY_HOOK_LOGS','rerun_name','UnhandledError','test_run_id','../../../helpers/helper.js','Error\x20in\x20createTestFrameworkEventPayload:\x20','debug','processPendingHooks',',\x20error:\x20','body','KEY_HOOKS_STARTED','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_TEST_META','uuid',',\x20hookState:\x20','../../../helpers/classLogger.js','eventJson','czPZZ',',\x20storing\x20as\x20pending\x20hook','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'];a91_0x5e6b=function(){return _0x28bcc2;};return a91_0x5e6b();}const TestFramework=require('./testFramework'),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a91_0x16de7d(0x216)),{createClassLogger}=require(a91_0x16de7d(0x208)),TestFrameworkInstance=require(a91_0x16de7d(0x233)),CLIUtils=require(a91_0x16de7d(0x24b)),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a91_0x16de7d(0x26a)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x16de7d(0x1fd)),logger=createClassLogger(a91_0x16de7d(0x1f8)),{v4:uuidv4}=require(a91_0x16de7d(0x206)),util=require(a91_0x16de7d(0x1aa)),TestInfo=require(a91_0x16de7d(0x1bd)),GrpcClient=require(a91_0x16de7d(0x26b));class CucumberTestFramework extends TestFramework{constructor(_0x155e76,_0x577d94,_0x50a239){super(_0x155e76,_0x577d94,_0x50a239);}async[a91_0x16de7d(0x247)](_0x2858cc,_0x48bbe9,_0x1b9b7e={}){const _0x3ec056=a91_0x16de7d,_0x5c8129={};_0x5c8129[_0x3ec056(0x1c6)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x5c8129[_0x3ec056(0x275)]=function(_0x509487,_0x4bcd93){return _0x509487===_0x4bcd93;},_0x5c8129['OxLGH']=function(_0x12a009,_0x505c28){return _0x12a009===_0x505c28;},_0x5c8129[_0x3ec056(0x271)]=_0x3ec056(0x21f);const _0x49ead2=_0x5c8129;await super[_0x3ec056(0x247)](_0x2858cc,_0x48bbe9,_0x1b9b7e);const _0x30429c=this[_0x3ec056(0x245)](_0x2858cc,_0x48bbe9,_0x1b9b7e);if(!_0x30429c){logger[_0x3ec056(0x1ff)](_0x49ead2['SgRzl']);return;}try{let _0x5f4f9b,_0x3e1533;switch(_0x2858cc){case TestFrameworkState[_0x3ec056(0x252)]:_0x5f4f9b=_0x1b9b7e['test'],_0x3e1533=TestInfo[_0x3ec056(0x22b)](_0x5f4f9b['id']);if(_0x49ead2[_0x3ec056(0x275)](_0x48bbe9,HookState[_0x3ec056(0x1db)])){logger[_0x3ec056(0x1ff)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x5f4f9b['id']);const _0x8012e8={};_0x8012e8[_0x3ec056(0x269)]=_0x3e1533,_0x8012e8[_0x3ec056(0x231)]=_0x5f4f9b,_0x30429c['addMultipleEntries'](this[_0x3ec056(0x229)](_0x8012e8)),logger[_0x3ec056(0x1ff)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x5f4f9b['id']),await this[_0x3ec056(0x200)](_0x30429c,_0x5f4f9b['id']);}else{if(_0x49ead2[_0x3ec056(0x275)](_0x48bbe9,HookState[_0x3ec056(0x1cd)])){const _0x49baff={};_0x49baff[_0x3ec056(0x269)]=_0x3e1533,_0x49baff[_0x3ec056(0x231)]=_0x5f4f9b,_0x30429c[_0x3ec056(0x1cb)](this[_0x3ec056(0x267)](_0x49baff)),await this[_0x3ec056(0x200)](_0x30429c,_0x5f4f9b['id']);}}break;case TestFrameworkState[_0x3ec056(0x259)]:_0x49ead2['OxLGH'](_0x48bbe9,HookState[_0x3ec056(0x1cd)])&&await this[_0x3ec056(0x22d)](_0x30429c,_0x2858cc,_0x1b9b7e);break;default:if(CLIUtils[_0x3ec056(0x23b)](_0x2858cc[_0x3ec056(0x1ed)]()[_0x3ec056(0x278)]('.')[0x1])){const _0x2bb105=await this['trackHookEvent'](_0x30429c,_0x2858cc,_0x48bbe9,_0x1b9b7e);_0x30429c[_0x3ec056(0x1cb)](_0x2bb105);}else logger[_0x3ec056(0x1ff)](_0x3ec056(0x1b6)+_0x2858cc+_0x3ec056(0x1d9)+_0x48bbe9);break;}}catch(_0x4a3dab){logger[_0x3ec056(0x272)](util[_0x3ec056(0x23a)](_0x49ead2['PlEen'],_0x2858cc,_0x48bbe9,_0x1b9b7e[_0x3ec056(0x211)],_0x4a3dab));}_0x1b9b7e[_0x3ec056(0x234)]=_0x30429c,await this['runHooks'](_0x30429c,_0x2858cc,_0x48bbe9,_0x1b9b7e);}['resolveInstance'](_0x25145d,_0x43f471,_0x17912e={}){const _0x49c86f=a91_0x16de7d,_0x53ca10={};_0x53ca10[_0x49c86f(0x22f)]=function(_0x389ad6,_0x1461e1){return _0x389ad6===_0x1461e1;};const _0x4e9e35=_0x53ca10;let _0x38ab6d=null;return(_0x4e9e35['NEUnz'](_0x25145d,TestFrameworkState[_0x49c86f(0x1ba)])||_0x4e9e35[_0x49c86f(0x22f)](_0x25145d,TestFrameworkState[_0x49c86f(0x270)]))&&this['trackCucumberInstance'](_0x25145d,_0x17912e),_0x38ab6d=TestFramework['getTrackedInstance'](),_0x38ab6d;}[a91_0x16de7d(0x256)](_0x20b599,_0x2dad5f){const _0x1e9882=a91_0x16de7d,_0x286ecc=CLIUtils[_0x1e9882(0x258)](),_0x55893e=TrackedInstance[_0x1e9882(0x1c5)](_0x286ecc);let _0x22c615=null;logger[_0x1e9882(0x1ff)](_0x1e9882(0x1bc)+_0x286ecc+_0x1e9882(0x221)+_0x20b599),_0x22c615=new TestFrameworkInstance(_0x55893e,this[_0x1e9882(0x1ca)](),this['getTestFrameworksVersions'](),_0x20b599,HookState['NONE']),TestFramework[_0x1e9882(0x242)](_0x55893e,_0x22c615),logger['debug']('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x55893e[_0x1e9882(0x23e)]()+_0x1e9882(0x1c8)+_0x286ecc);}[a91_0x16de7d(0x229)](_0x1209d4){const _0x370d23=a91_0x16de7d,_0x4f93d0={};_0x4f93d0[_0x370d23(0x236)]=_0x370d23(0x230);const _0x5a99b7=_0x4f93d0,{testUUID:_0x8ec7c8,testData:_0x3687f1}=_0x1209d4;if(!_0x3687f1||!_0x3687f1[_0x370d23(0x206)])return logger[_0x370d23(0x1ff)](_0x5a99b7[_0x370d23(0x236)]),{};const _0xdc78f0=_0x8ec7c8,_0xe5d7e0=_0x3687f1['uuid'],_0x264e84=this[_0x370d23(0x1ca)]()[0x0],_0x4f1949=this[_0x370d23(0x1f2)](),_0x26c749={[TestFrameworkConstants[_0x370d23(0x232)]]:_0x264e84,[TestFrameworkConstants[_0x370d23(0x26f)]]:_0x4f1949[_0x264e84],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants[_0x370d23(0x1c4)]]:{},[TestFrameworkConstants[_0x370d23(0x203)]]:{},[TestFrameworkConstants[_0x370d23(0x1c0)]]:_0xdc78f0,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x370d23(0x239)]]:_0x3687f1[_0x370d23(0x1c1)]||'',[TestFrameworkConstants[_0x370d23(0x1af)]]:_0x3687f1['file_name']||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0xe5d7e0,[TestFrameworkConstants[_0x370d23(0x273)]]:_0x3687f1[_0x370d23(0x1c1)]||'',[TestFrameworkConstants[_0x370d23(0x1b9)]]:_0x3687f1[_0x370d23(0x1e9)]||'',[TestFrameworkConstants[_0x370d23(0x1f6)]]:_0x3687f1[_0x370d23(0x202)]?.[_0x370d23(0x265)]||null,[TestFrameworkConstants[_0x370d23(0x1ab)]]:_0x3687f1['tags']||[],[TestFrameworkConstants[_0x370d23(0x220)]]:_0x3687f1[_0x370d23(0x1b7)]||new Date()[_0x370d23(0x261)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x3687f1[_0x370d23(0x226)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x3687f1[_0x370d23(0x226)]||[],[TestFrameworkConstants[_0x370d23(0x243)]]:_0x3687f1[_0x370d23(0x215)]?.[_0x370d23(0x1fa)]||_0x3687f1[_0x370d23(0x1c1)]||'',[TestFrameworkConstants[_0x370d23(0x1b0)]]:{},[TestFrameworkConstants[_0x370d23(0x205)]]:_0x3687f1[_0x370d23(0x22c)]||{}};TestInfo[_0x370d23(0x218)](_0xe5d7e0,_0x26c749),logger['debug'](_0x370d23(0x1c7)+_0x3687f1[_0x370d23(0x1c1)]+'\x20with\x20UUID:\x20'+_0xdc78f0);const _0x5917f7={};return _0x5917f7[_0xe5d7e0]=_0x26c749,_0x5917f7;}['parseCucumberTestResult'](_0x23c0d4){const _0x41e96e=a91_0x16de7d,_0x7de1ce={'fUgHr':_0x41e96e(0x217),'MQdCS':_0x41e96e(0x1cc),'MRrby':function(_0x41b6b0,_0x1f8edd){return _0x41b6b0===_0x1f8edd;},'sNGza':_0x41e96e(0x25c),'kNOFi':'UnhandledError','qNrCh':function(_0x390c97,_0x162f9d,_0xca6d2d){return _0x390c97(_0x162f9d,_0xca6d2d);},'QsyVe':function(_0x220537,_0x516387){return _0x220537>_0x516387;}},{testUUID:_0x589257,testData:_0x4783d2}=_0x23c0d4;if(!_0x4783d2||!_0x4783d2[_0x41e96e(0x206)])return logger[_0x41e96e(0x1ff)](_0x7de1ce['fUgHr']),{};const _0x303e08=this[_0x41e96e(0x245)](TestFrameworkState['TEST'],HookState[_0x41e96e(0x1cd)]),_0x560eba=_0x4783d2[_0x41e96e(0x206)],_0x11fa00=TestInfo[_0x41e96e(0x1f7)](_0x560eba)||{},_0x23fb25=_0x11fa00?_0x11fa00[TestFrameworkConstants[_0x41e96e(0x1b0)]]||{}:{},_0x55dc59={..._0x11fa00,[TestFrameworkConstants[_0x41e96e(0x24f)]]:_0x4783d2[_0x41e96e(0x257)]||_0x7de1ce[_0x41e96e(0x1d1)],[TestFrameworkConstants[_0x41e96e(0x23d)]]:_0x4783d2[_0x41e96e(0x21b)]||new Date()[_0x41e96e(0x261)](),[TestFrameworkConstants[_0x41e96e(0x250)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x41e96e(0x1b0)]]:_0x23fb25,[TestFrameworkConstants[_0x41e96e(0x1e4)]]:[],[TestFrameworkConstants[_0x41e96e(0x205)]]:_0x4783d2[_0x41e96e(0x22c)]||{}};_0x7de1ce[_0x41e96e(0x1e7)](_0x4783d2[_0x41e96e(0x257)],_0x7de1ce[_0x41e96e(0x244)])&&_0x4783d2[_0x41e96e(0x26c)]&&(_0x55dc59[TestFrameworkConstants[_0x41e96e(0x1ef)]]=_0x4783d2['failure_type']||_0x7de1ce[_0x41e96e(0x1de)],_0x55dc59[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x4783d2[_0x41e96e(0x224)]||'',_0x55dc59[TestFrameworkConstants[_0x41e96e(0x240)]]=_0x4783d2[_0x41e96e(0x26c)]);const _0x24d5fd=TestInfo['getTestDetails'](_0x560eba)[TestFrameworkConstants[_0x41e96e(0x20d)]]||{},_0x40507a=_0x7de1ce[_0x41e96e(0x274)](getManualUploadLogs,_0x24d5fd,_0x303e08[_0x41e96e(0x21c)]()[_0x41e96e(0x238)](_0x560eba)[TestFrameworkConstants[_0x41e96e(0x1c0)]]);if(_0x7de1ce[_0x41e96e(0x1df)](_0x40507a['length'],0x0)){const _0x1c1076=_0x55dc59[TestFrameworkConstants[_0x41e96e(0x1e4)]]||[];_0x55dc59[TestFrameworkConstants[_0x41e96e(0x1e4)]]=[..._0x1c1076,..._0x40507a];}_0x4783d2[_0x41e96e(0x24c)]&&_0x7de1ce[_0x41e96e(0x1df)](_0x4783d2[_0x41e96e(0x24c)][_0x41e96e(0x211)],0x0)&&(_0x55dc59[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x4783d2[_0x41e96e(0x24c)]);TestInfo[_0x41e96e(0x218)](_0x560eba,_0x55dc59),logger[_0x41e96e(0x1ff)](_0x41e96e(0x219)+_0x4783d2[_0x41e96e(0x1c1)]+_0x41e96e(0x25b)+_0x4783d2['result']);const _0x522f65={};return _0x522f65[_0x560eba]=_0x55dc59,_0x522f65;}async[a91_0x16de7d(0x241)](_0x2760a5,_0x497883,_0x85ce38,_0x2c7fae){const _0x129a58=a91_0x16de7d,_0x2afe9a={'oMWFM':_0x129a58(0x1bf),'FWfKE':function(_0x1b4f11){return _0x1b4f11();},'HUIUT':function(_0x4b8ef7,_0x49a3a5){return _0x4b8ef7 in _0x49a3a5;},'srlMA':function(_0x200af8,_0x51c3f5){return _0x200af8===_0x51c3f5;},'qqcRd':function(_0x5aef43,_0x1534f6){return _0x5aef43>_0x1534f6;},'ivfev':_0x129a58(0x25c),'ppkli':_0x129a58(0x1fb),'Cvauh':_0x129a58(0x27a),'kxZNX':function(_0x1fc8f5,_0x4288ee){return _0x1fc8f5!==_0x4288ee;}},{hookData:_0x4be641}=_0x2c7fae;if(!_0x4be641)return logger['debug'](_0x2afe9a[_0x129a58(0x1d7)]),{};const _0x19fa13=_0x4be641[_0x129a58(0x206)]||_0x2afe9a[_0x129a58(0x213)](uuidv4),_0x1b1db2=_0x4be641['test_run_id'],_0x1a7b0f=_0x497883[_0x129a58(0x1ed)]()[_0x129a58(0x278)]('.')[0x1],_0x3fe2e6=TestInfo['getTestDetails'](_0x1b1db2)[TestFrameworkConstants[_0x129a58(0x1b0)]]||{},_0x4a3786=_0x2760a5[_0x129a58(0x21c)]()['get'](_0x1b1db2);if(!_0x4a3786)return logger[_0x129a58(0x1ff)](_0x129a58(0x1b8)+_0x1b1db2+_0x129a58(0x20b)),this[_0x129a58(0x1a7)](_0x2760a5,_0x1b1db2,_0x497883,_0x85ce38,_0x2c7fae),{};let _0x29169f=_0x4a3786[TestFrameworkConstants[_0x129a58(0x203)]];!_0x29169f&&(_0x29169f={});!_0x2afe9a[_0x129a58(0x21d)](_0x1a7b0f,_0x29169f)&&(_0x29169f[_0x1a7b0f]=[]);let _0x460315=_0x4a3786[TestFrameworkConstants[_0x129a58(0x1c4)]];!_0x460315&&(_0x460315={});!_0x2afe9a[_0x129a58(0x21d)](_0x1a7b0f,_0x460315)&&(_0x460315[_0x1a7b0f]=[]);const _0x9bce53={[TestFrameworkConstants[_0x129a58(0x203)]]:_0x29169f,[TestFrameworkConstants[_0x129a58(0x1c4)]]:_0x460315},_0x33818b={};_0x33818b[_0x1b1db2]=_0x9bce53;const _0x513620=_0x33818b;if(_0x2afe9a[_0x129a58(0x235)](_0x85ce38,HookState['PRE'])){const _0x18b2ac={[TestFrameworkConstants[_0x129a58(0x262)]]:_0x19fa13,[TestFrameworkConstants[_0x129a58(0x225)]]:TestFrameworkConstants[_0x129a58(0x1d8)],[TestFrameworkConstants[_0x129a58(0x22e)]]:_0x4be641[_0x129a58(0x1d4)],[TestFrameworkConstants[_0x129a58(0x1f9)]]:[],[TestFrameworkConstants[_0x129a58(0x1f1)]]:_0x4be641[_0x129a58(0x1c1)]||_0x4be641[_0x129a58(0x255)],[TestFrameworkConstants[_0x129a58(0x1b0)]]:_0x3fe2e6};_0x18b2ac[_0x129a58(0x1b2)]=_0x1a7b0f;const _0x406827=_0x18b2ac;_0x29169f[_0x1a7b0f]['push'](_0x406827),_0x513620[_0x1b1db2][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x1a7b0f,logger[_0x129a58(0x1ff)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x1a7b0f+'\x20&\x20hook\x20=\x20'+_0x406827+_0x129a58(0x1c3)+_0x2c7fae);}else{if(_0x2afe9a[_0x129a58(0x235)](_0x85ce38,HookState[_0x129a58(0x1cd)])){const _0x3230b5=_0x4be641[_0x129a58(0x257)],_0x3eae32=_0x29169f[_0x1a7b0f]||[];logger[_0x129a58(0x1ff)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x3eae32+_0x129a58(0x20e)+_0x2c7fae);if(_0x2afe9a[_0x129a58(0x264)](_0x3eae32[_0x129a58(0x211)],0x0)){const _0x241286=_0x3eae32['pop']();_0x2afe9a[_0x129a58(0x235)](_0x4be641[_0x129a58(0x257)],_0x2afe9a[_0x129a58(0x1e8)])&&_0x4be641['failure_data']?(_0x241286[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x4be641[_0x129a58(0x210)]||_0x2afe9a[_0x129a58(0x277)],_0x241286[TestFrameworkConstants[_0x129a58(0x222)]]=_0x4be641[_0x129a58(0x224)]||'',_0x241286[TestFrameworkConstants[_0x129a58(0x24a)]]=_0x4be641[_0x129a58(0x1ea)]):_0x241286[TestFrameworkConstants[_0x129a58(0x225)]]=_0x2afe9a[_0x129a58(0x237)];_0x2afe9a['kxZNX'](_0x3230b5,TestFrameworkConstants[_0x129a58(0x1d8)])&&(_0x241286[TestFrameworkConstants[_0x129a58(0x225)]]=_0x3230b5);_0x241286[TestFrameworkConstants[_0x129a58(0x25e)]]=_0x4be641[_0x129a58(0x26e)]||new Date()['toISOString'](),_0x241286[TestFrameworkConstants[_0x129a58(0x1b0)]]=_0x3fe2e6;const _0x2cd20c=_0x241286[TestFrameworkConstants['KEY_HOOK_ID']];!_0x460315[_0x1a7b0f]&&(_0x460315[_0x1a7b0f]=[]),_0x460315[_0x1a7b0f][_0x129a58(0x1e5)](_0x241286),_0x513620[_0x1b1db2][TestFrameworkConstants[_0x129a58(0x1f0)]]=_0x1a7b0f;}}}return logger[_0x129a58(0x1ff)](_0x129a58(0x204)+_0x4be641[_0x129a58(0x255)]+_0x129a58(0x1eb)+_0x19fa13+'\x20for\x20test:\x20'+_0x1b1db2),_0x513620;}['createTestFrameworkEventPayload'](_0x291512){const _0x2d29f7=a91_0x16de7d,_0x4e05d5={};_0x4e05d5[_0x2d29f7(0x266)]=_0x2d29f7(0x246);const _0x18ed92=_0x4e05d5;try{const _0x3a9e95=_0x291512[_0x2d29f7(0x23f)]?_0x291512[_0x2d29f7(0x23f)]['id']:_0x291512[_0x2d29f7(0x263)][_0x2d29f7(0x1fc)],_0x96e3e7=_0x291512[_0x2d29f7(0x234)],_0x1b2fe2=_0x96e3e7[_0x2d29f7(0x276)](),_0x210317=_0x96e3e7[_0x2d29f7(0x21c)]()[_0x2d29f7(0x238)](_0x3a9e95);if(!_0x210317)return logger[_0x2d29f7(0x1ff)](_0x2d29f7(0x20c)+_0x3a9e95),{};logger['debug'](_0x2d29f7(0x1dd)+_0x3a9e95);const {[TestFrameworkConstants[_0x2d29f7(0x232)]]:_0x87e781='',[TestFrameworkConstants[_0x2d29f7(0x26f)]]:_0x5193a9='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x414069='',[TestFrameworkConstants[_0x2d29f7(0x23d)]]:_0x584512=''}=_0x210317,_0x210a86=_0x96e3e7[_0x2d29f7(0x25a)]()[_0x2d29f7(0x1ed)]()[_0x2d29f7(0x278)]('.')[0x1],_0x2c9b29=_0x96e3e7['getCurrentHookState']()[_0x2d29f7(0x1ed)]()['split']('.')[0x1],_0x29d1b6=global?.['browserstackPlatformIndex']??0x0,_0x5dee3b=_0x96e3e7[_0x2d29f7(0x1ce)](),_0x2640a0=Buffer[_0x2d29f7(0x1e1)](JSON[_0x2d29f7(0x1f3)](_0x210317))['toString'](_0x18ed92['ybKrV']),_0x318a69={'hash':_0x1b2fe2[_0x2d29f7(0x23e)](),'threadId':_0x1b2fe2['getThreadId']()[_0x2d29f7(0x1ed)](),'processId':_0x1b2fe2['getProcessId']()['toString']()},_0x38b0ac={};_0x38b0ac[_0x2d29f7(0x1c2)]=_0x29d1b6,_0x38b0ac['testFrameworkName']=_0x87e781,_0x38b0ac[_0x2d29f7(0x1da)]=_0x5193a9,_0x38b0ac[_0x2d29f7(0x253)]=_0x210a86,_0x38b0ac['hookState']=_0x2c9b29,_0x38b0ac[_0x2d29f7(0x1b7)]=_0x414069,_0x38b0ac[_0x2d29f7(0x223)]=_0x584512,_0x38b0ac[_0x2d29f7(0x206)]=_0x5dee3b,_0x38b0ac[_0x2d29f7(0x209)]=_0x2640a0,_0x38b0ac[_0x2d29f7(0x1ec)]=_0x318a69;const _0x4c08de=_0x38b0ac;return logger[_0x2d29f7(0x1ff)](_0x2d29f7(0x1ee)+_0x3a9e95+_0x2d29f7(0x1b5)+_0x210a86+_0x2d29f7(0x1cf)+_0x2c9b29),_0x4c08de;}catch(_0x41a1bd){return logger[_0x2d29f7(0x272)](_0x2d29f7(0x1fe)+util[_0x2d29f7(0x23a)](_0x41a1bd)),{};}}async[a91_0x16de7d(0x22d)](_0x45f5f0,_0x25cf4e,_0x249289){const _0x3f2cec=a91_0x16de7d,_0xfd5f2f={'xtbZy':function(_0x3cc8c6,_0x3d084a,_0x36aae9){return _0x3cc8c6(_0x3d084a,_0x36aae9);},'korhV':function(_0x221b4c,_0x5067a2){return _0x221b4c===_0x5067a2;},'KMyZT':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','yuQUo':function(_0x37b0b1,_0x259df2){return _0x37b0b1/_0x259df2;},'RAkYO':function(_0x330a95,_0x904bda){return _0x330a95<_0x904bda;},'czPZZ':function(_0x41b7f6,_0x9ba243){return _0x41b7f6*_0x9ba243;},'JiMoS':function(_0x190e53,_0x53490a){return _0x190e53+_0x53490a;},'QltPh':function(_0x5181ed,_0x3ad298){return _0x5181ed+_0x3ad298;},'CEocA':_0x3f2cec(0x25d)};try{const _0x400e27=_0x249289[_0x3f2cec(0x269)],_0x2cb7d2=_0x45f5f0['getAllData']()[_0x3f2cec(0x238)](_0x400e27),{[TestFrameworkConstants[_0x3f2cec(0x232)]]:_0x5dbf79='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x31009d=''}=_0x2cb7d2,_0x5ab6b8=TestInfo[_0x3f2cec(0x1b4)](_0x400e27),_0x229b68=TestInfo[_0x3f2cec(0x1f7)](_0x400e27)[TestFrameworkConstants[_0x3f2cec(0x20d)]]||{},_0x182bdc=_0xfd5f2f[_0x3f2cec(0x254)](getMediaArtifactsLogs,_0x229b68,_0x45f5f0[_0x3f2cec(0x21c)]()['get'](_0x400e27)[TestFrameworkConstants[_0x3f2cec(0x1c0)]]),_0x30874e=(_0x5ab6b8||[])[_0x3f2cec(0x248)](_0x182bdc||[]);if(!_0x30874e||_0xfd5f2f[_0x3f2cec(0x251)](_0x30874e['length'],0x0)){logger[_0x3f2cec(0x1ff)](_0xfd5f2f[_0x3f2cec(0x1e6)]);return;}const _0x27bc7c=0x28,_0x4cef9b=Math[_0x3f2cec(0x1be)](_0xfd5f2f[_0x3f2cec(0x268)](_0x30874e[_0x3f2cec(0x211)],_0x27bc7c));for(let _0x2118bf=0x0;_0xfd5f2f[_0x3f2cec(0x24d)](_0x2118bf,_0x4cef9b);_0x2118bf++){const _0x548ad2=_0xfd5f2f[_0x3f2cec(0x20a)](_0x2118bf,_0x27bc7c),_0x1be124=_0xfd5f2f[_0x3f2cec(0x1bb)](_0x548ad2,_0x27bc7c),_0x1c7e2e=_0x30874e[_0x3f2cec(0x1b3)](_0x548ad2,_0x1be124),_0x2a1be0={'platformIndex':global?.[_0x3f2cec(0x1e3)]??0x0,'logs':_0x1c7e2e,'testFrameworkName':_0x5dbf79,'testFrameworkVersion':_0x31009d,'testFrameworkState':_0x25cf4e[_0x3f2cec(0x1ed)]()[_0x3f2cec(0x278)]('.')[0x1]};logger[_0x3f2cec(0x1ff)](_0x3f2cec(0x1d0)+_0x400e27+_0x3f2cec(0x227)+_0xfd5f2f[_0x3f2cec(0x1e0)](_0x2118bf,0x1)+'/'+_0x4cef9b+_0x3f2cec(0x20f)+util[_0x3f2cec(0x1ad)](_0x2a1be0));const _0x4d292b=await GrpcClient[_0x3f2cec(0x24e)]()[_0x3f2cec(0x260)](_0x2a1be0);logger[_0x3f2cec(0x1ff)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x400e27+_0x3f2cec(0x227)+_0xfd5f2f['JiMoS'](_0x2118bf,0x1)+'/'+_0x4cef9b+_0x3f2cec(0x1dc)+util[_0x3f2cec(0x1ad)](_0x4d292b));}}catch(_0x1f80fd){logger['error'](_0x3f2cec(0x1d5)+util[_0x3f2cec(0x23a)](_0x1f80fd));}logger[_0x3f2cec(0x1ff)](_0xfd5f2f['CEocA']);}[a91_0x16de7d(0x1a7)](_0x322033,_0x405e28,_0x70876a,_0x576142,_0x51994f){const _0x2c8731=a91_0x16de7d,_0x11bbb0={'testId':_0x405e28,'testFrameworkState':_0x70876a,'hookState':_0x576142,'args':_0x51994f,'timestamp':new Date()[_0x2c8731(0x261)]()};_0x322033['addPendingHook'](_0x405e28,_0x11bbb0),logger['debug'](_0x2c8731(0x1b1)+_0x405e28+_0x2c8731(0x1a8)+_0x70876a+_0x2c8731(0x207)+_0x576142);}async['processPendingHooks'](_0x4288d5,_0x291664){const _0xc69c0d=a91_0x16de7d,_0x36c61d={};_0x36c61d[_0xc69c0d(0x21e)]=function(_0x2f0cd3,_0x2a7997){return _0x2f0cd3>_0x2a7997;};const _0x5908fc=_0x36c61d;if(!_0x4288d5[_0xc69c0d(0x1ae)](_0x291664))return;const _0x307c17=_0x4288d5[_0xc69c0d(0x25f)](_0x291664);logger['debug'](_0xc69c0d(0x214)+_0x307c17['length']+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x291664);for(const _0xe1f99 of _0x307c17){try{const _0x33fc0e=await this[_0xc69c0d(0x241)](_0x4288d5,_0xe1f99['testFrameworkState'],_0xe1f99[_0xc69c0d(0x249)],_0xe1f99[_0xc69c0d(0x1a9)]);_0x33fc0e&&_0x5908fc[_0xc69c0d(0x21e)](Object[_0xc69c0d(0x1ac)](_0x33fc0e)[_0xc69c0d(0x211)],0x0)&&_0x4288d5['addMultipleEntries'](_0x33fc0e),await this[_0xc69c0d(0x212)](_0x4288d5,_0xe1f99[_0xc69c0d(0x253)],_0xe1f99[_0xc69c0d(0x249)],_0xe1f99[_0xc69c0d(0x1a9)]);}catch(_0x52a1bc){logger['error'](_0xc69c0d(0x1f5)+_0x291664+_0xc69c0d(0x201)+_0x52a1bc);}}_0x4288d5['removePendingHooks'](_0x291664),logger[_0xc69c0d(0x1ff)](_0xc69c0d(0x279)+_0x291664);}}function a91_0x18ca(_0x563670,_0x4590b6){const _0x5e6bfa=a91_0x5e6b();return a91_0x18ca=function(_0x18cafb,_0x4eb66d){_0x18cafb=_0x18cafb-0x1a7;let _0x147193=_0x5e6bfa[_0x18cafb];return _0x147193;},a91_0x18ca(_0x563670,_0x4590b6);}module['exports']=CucumberTestFramework;
|
|
1
|
+
const a95_0x2cc0f0=a95_0x152d;function a95_0x92cc(){const _0x2b7030=['platformIndex','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','\x20\x20and\x20args\x20=\x20','PRE','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','debug','KEY_TEST_CODE','getTestDetails','JTOiY','aLXix','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','DEFAULT_TEST_RESULT','SMKYU','zgKmB','oQiVb','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','KEY_TEST_FAILURE_REASON','addMultipleEntries','instance','failure','FClXR','KEY_TEST_ENDED_AT','getContext','Cndvq','qfVHL','KEY_HOOK_LAST_STARTED','\x20pending\x20hooks\x20for\x20testId:\x20','Stored\x20pending\x20hook\x20for\x20testId:\x20','swSwR','Processing\x20','parseCucumberTest','INIT_TEST','pwOCy','TxYHy','getTestFrameworks','UnhandledError','../cliUtils.js','hook_type','\x20payload=','storePendingHook','getTestUUID','trackCucumberInstance:\x20saved\x20instance\x20contextId=','204280EWGful','getRef','getInstance','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','UEmoa','KEY_HOOKS_FINISHED','\x20response=','iaQLn','Tracked\x20cucumber\x20hook\x20event:\x20','Error\x20in\x20createTestFrameworkEventPayload:\x20','get','getCurrentTestState','kgZle','eventJson','3719590pqbXVx','./testFramework','removePendingHooks','toString','passed','getCurrentHookState','getId','JEiri','\x20with\x20id\x20','KEY_TEST_TAGS','XReNz','setTestDetails','KEY_HOOK_FAILURE','finishedAt','../../../helpers/helper.js','failure_data','KEY_TEST_ID','63nZcqaB','slice','LOG_REPORT','hookData','35HeQzFs','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_LOGS','KEY_TEST_UUID','POST','sHbNO','body','format','777iJSLKE','KEY_TEST_FAILURE','length','kIJMU','startedAt','gNIUX','trackCucumberInstance','2012556WJgedz',',\x20storing\x20as\x20pending\x20hook','unknown','getCurrentInstanceName','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','test_run_id','FSfeu','XuixY','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','\x20&\x20hookState=','trackEvent','TEST','sendLogCreatedEvent','SrLtF','Parsed\x20cucumber\x20test:\x20','getPendingHooks','\x20batch\x20','rerun_name','KEY_TEST_RERUN_NAME','hookState','failure_reason','DnQMh','\x20and\x20args\x20=\x20','started_at','QhXBD','test','MRnXU','KEY_TEST_STARTED_AT',',\x20state:\x20','KEY_EVENT_ENDED_AT','testFrameworkState','KEY_TEST_SCOPES','\x20&\x20hook\x20=\x20','KEY_TEST_RESULT','trackEvent:\x20unsupported\x20testFrameworkState=','KEY_HOOKS_STARTED','toISOString','scopes','../grpcClient',',\x20state=','failed','getAllData','KEY_CUSTOM_TAGS','KEY_HOOK_LAST_FINISHED','file_name','failure_type','74706YpOfdq','getTestFrameworksVersions','686uLCWdY','KEY_TEST_LOCATION','KEY_TEST_FRAMEWORK_VERSION','push','\x20hookState:\x20','../../../helpers/classLogger.js','code','nLqCB','runHooks','NONE','processPendingHooks','testUUID','./constants/testFrameworkConstants.js','args','KEY_HOOK_FAILURE_TYPE','readLogObjects','JSDxW','hooks','KEY_HOOK_FAILURE_REASON','wXEcI','KEY_TEST_FILE_PATH',',\x20hookState:\x20','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','vZWer','testData','meta','concat','KEY_TEST_ATTACHMENTS','\x20with\x20UUID:\x20','../state/testFrameworkState.js','KEY_TEST_FRAMEWORK_NAME','sendLogCreatedEvent:\x20for\x20testId:\x20','getTrackedInstance','KEY_HOOK_ID','resolveInstance','location','vHykZ','KEY_HOOK_RESULT','../TestInfo.js','error','keys','inspect','fgHhM','getProcessId','KEY_TEST_META','finished_at','uuid','Cucumber\x20log\x20created\x20event','CucumberTestFramework','1226616JmbJsy','KEY_TEST_NAME','testFrameworkName','../state/hookState.js','split','endedAt','parseCucumberTestResult','base64','stringify','name','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','result','createTestFrameworkEventPayload\x20testId:\x20','\x20for\x20test:\x20','815274VjsfoG'];a95_0x92cc=function(){return _0x2b7030;};return a95_0x92cc();}function a95_0x152d(_0x159fd2,_0x19fdf8){const _0x92cc6a=a95_0x92cc();return a95_0x152d=function(_0x152d93,_0x4e3568){_0x152d93=_0x152d93-0x1af;let _0x474083=_0x92cc6a[_0x152d93];return _0x474083;},a95_0x152d(_0x159fd2,_0x19fdf8);}(function(_0x25998b,_0x2be6e2){const _0x1a6674=a95_0x152d,_0x154b77=_0x25998b();while(!![]){try{const _0x1d1961=parseInt(_0x1a6674(0x1b1))/0x1*(parseInt(_0x1a6674(0x1e9))/0x2)+-parseInt(_0x1a6674(0x1e7))/0x3+-parseInt(_0x1a6674(0x21a))/0x4+-parseInt(_0x1a6674(0x276))/0x5*(-parseInt(_0x1a6674(0x228))/0x6)+parseInt(_0x1a6674(0x1b8))/0x7+-parseInt(_0x1a6674(0x253))/0x8*(parseInt(_0x1a6674(0x272))/0x9)+-parseInt(_0x1a6674(0x261))/0xa;if(_0x1d1961===_0x2be6e2)break;else _0x154b77['push'](_0x154b77['shift']());}catch(_0x4fa4fe){_0x154b77['push'](_0x154b77['shift']());}}}(a95_0x92cc,0x98140));const TestFramework=require(a95_0x2cc0f0(0x262)),TestFrameworkState=require(a95_0x2cc0f0(0x206)),HookState=require(a95_0x2cc0f0(0x21d)),{createClassLogger}=require(a95_0x2cc0f0(0x1ee)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a95_0x2cc0f0(0x24d)),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a95_0x2cc0f0(0x1f5)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a95_0x2cc0f0(0x26f)),logger=createClassLogger(a95_0x2cc0f0(0x219)),{v4:uuidv4}=require(a95_0x2cc0f0(0x217)),util=require('util'),TestInfo=require(a95_0x2cc0f0(0x20f)),GrpcClient=require(a95_0x2cc0f0(0x1df));class CucumberTestFramework extends TestFramework{constructor(_0x1778e4,_0x33aa0a,_0x9fd754){super(_0x1778e4,_0x33aa0a,_0x9fd754);}async[a95_0x2cc0f0(0x1c3)](_0x51b656,_0x446be5,_0x5df1d5={}){const _0x13a6c2=a95_0x2cc0f0,_0x29c739={};_0x29c739[_0x13a6c2(0x26b)]=_0x13a6c2(0x224),_0x29c739[_0x13a6c2(0x236)]=function(_0x7eb175,_0x525776){return _0x7eb175===_0x525776;},_0x29c739[_0x13a6c2(0x257)]=function(_0x52f58e,_0x366bdb){return _0x52f58e===_0x366bdb;},_0x29c739[_0x13a6c2(0x200)]='trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s';const _0x1760a7=_0x29c739;await super[_0x13a6c2(0x1c3)](_0x51b656,_0x446be5,_0x5df1d5);const _0x259441=this[_0x13a6c2(0x20b)](_0x51b656,_0x446be5,_0x5df1d5);if(!_0x259441){logger['debug'](_0x1760a7[_0x13a6c2(0x26b)]);return;}try{let _0x4147d3,_0x42e129;switch(_0x51b656){case TestFrameworkState[_0x13a6c2(0x1c4)]:_0x4147d3=_0x5df1d5[_0x13a6c2(0x1d2)],_0x42e129=TestInfo[_0x13a6c2(0x251)](_0x4147d3['id']);if(_0x1760a7[_0x13a6c2(0x236)](_0x446be5,HookState[_0x13a6c2(0x22c)])){logger[_0x13a6c2(0x22e)](_0x13a6c2(0x1bc)+_0x4147d3['id']);const _0x5ad230={};_0x5ad230[_0x13a6c2(0x1f4)]=_0x42e129,_0x5ad230[_0x13a6c2(0x201)]=_0x4147d3,_0x259441['addMultipleEntries'](this[_0x13a6c2(0x247)](_0x5ad230)),logger[_0x13a6c2(0x22e)](_0x13a6c2(0x1ff)+_0x4147d3['id']),await this[_0x13a6c2(0x1f3)](_0x259441,_0x4147d3['id']);}else{if(_0x1760a7[_0x13a6c2(0x236)](_0x446be5,HookState[_0x13a6c2(0x27a)])){const _0x3055df={};_0x3055df['testUUID']=_0x42e129,_0x3055df[_0x13a6c2(0x201)]=_0x4147d3,_0x259441[_0x13a6c2(0x23a)](this[_0x13a6c2(0x220)](_0x3055df)),await this[_0x13a6c2(0x1f3)](_0x259441,_0x4147d3['id']);}}break;case TestFrameworkState[_0x13a6c2(0x274)]:_0x1760a7[_0x13a6c2(0x257)](_0x446be5,HookState[_0x13a6c2(0x27a)])&&await this[_0x13a6c2(0x1c5)](_0x259441,_0x51b656,_0x5df1d5);break;default:if(CLIUtils['matchHookRegex'](_0x51b656[_0x13a6c2(0x264)]()[_0x13a6c2(0x21e)]('.')[0x1])){const _0x5a441b=await this['trackHookEvent'](_0x259441,_0x51b656,_0x446be5,_0x5df1d5);_0x259441[_0x13a6c2(0x23a)](_0x5a441b);}else logger[_0x13a6c2(0x22e)](_0x13a6c2(0x1db)+_0x51b656+_0x13a6c2(0x1c2)+_0x446be5);break;}}catch(_0x1c8b97){logger[_0x13a6c2(0x210)](util['format'](_0x1760a7['vZWer'],_0x51b656,_0x446be5,_0x5df1d5[_0x13a6c2(0x1b3)],_0x1c8b97));}_0x5df1d5[_0x13a6c2(0x23b)]=_0x259441,await this[_0x13a6c2(0x1f1)](_0x259441,_0x51b656,_0x446be5,_0x5df1d5);}[a95_0x2cc0f0(0x20b)](_0x3988e6,_0x595a1d,_0x30d5e7={}){const _0x51fc8f=a95_0x2cc0f0,_0x3971cb={};_0x3971cb['pwOCy']=function(_0x5cb676,_0x5c0a86){return _0x5cb676===_0x5c0a86;},_0x3971cb[_0x51fc8f(0x1f9)]=function(_0x2031d2,_0x2a4827){return _0x2031d2===_0x2a4827;};const _0x345c11=_0x3971cb;let _0x320f91=null;return(_0x345c11[_0x51fc8f(0x249)](_0x3988e6,TestFrameworkState[_0x51fc8f(0x248)])||_0x345c11[_0x51fc8f(0x1f9)](_0x3988e6,TestFrameworkState[_0x51fc8f(0x1f2)]))&&this[_0x51fc8f(0x1b7)](_0x3988e6,_0x30d5e7),_0x320f91=TestFramework[_0x51fc8f(0x209)](),_0x320f91;}['trackCucumberInstance'](_0x314dfc,_0x14833e){const _0x234bba=a95_0x2cc0f0,_0x1528ac=CLIUtils[_0x234bba(0x1bb)](),_0x318b20=TrackedInstance['createContext'](_0x1528ac);let _0x479257=null;logger[_0x234bba(0x22e)]('trackCucumberInstance:\x20created\x20instance\x20for\x20target='+_0x1528ac+_0x234bba(0x1e0)+_0x314dfc),_0x479257=new TestFrameworkInstance(_0x318b20,this[_0x234bba(0x24b)](),this[_0x234bba(0x1e8)](),_0x314dfc,HookState[_0x234bba(0x1f2)]),TestFramework['setTrackedInstance'](_0x318b20,_0x479257),logger[_0x234bba(0x22e)](_0x234bba(0x252)+_0x318b20['getId']()+'\x20target='+_0x1528ac);}[a95_0x2cc0f0(0x247)](_0x1020ee){const _0x1e7616=a95_0x2cc0f0,_0x5d9a7f={};_0x5d9a7f[_0x1e7616(0x235)]=_0x1e7616(0x256);const _0x3e0c97=_0x5d9a7f,{testUUID:_0x1ebc86,testData:_0xb605b1}=_0x1020ee;if(!_0xb605b1||!_0xb605b1[_0x1e7616(0x217)])return logger[_0x1e7616(0x22e)](_0x3e0c97['SMKYU']),{};const _0x259002=_0x1ebc86,_0x275e15=_0xb605b1[_0x1e7616(0x217)],_0x9dc591=this[_0x1e7616(0x24b)]()[0x0],_0x241d82=this['getTestFrameworksVersions'](),_0x45bc52={[TestFrameworkConstants[_0x1e7616(0x207)]]:_0x9dc591,[TestFrameworkConstants[_0x1e7616(0x1eb)]]:_0x241d82[_0x9dc591],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants[_0x1e7616(0x258)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants[_0x1e7616(0x279)]]:_0x259002,[TestFrameworkConstants[_0x1e7616(0x1da)]]:TestFrameworkConstants[_0x1e7616(0x234)],[TestFrameworkConstants['KEY_AUTOMATE_SESSION_NAME']]:_0xb605b1['name']||'',[TestFrameworkConstants[_0x1e7616(0x1fd)]]:_0xb605b1[_0x1e7616(0x1e5)]||'',[TestFrameworkConstants[_0x1e7616(0x271)]]:_0x275e15,[TestFrameworkConstants[_0x1e7616(0x21b)]]:_0xb605b1[_0x1e7616(0x223)]||'',[TestFrameworkConstants[_0x1e7616(0x1ea)]]:_0xb605b1[_0x1e7616(0x20c)]||'',[TestFrameworkConstants[_0x1e7616(0x22f)]]:_0xb605b1[_0x1e7616(0x1af)]?.[_0x1e7616(0x1ef)]||null,[TestFrameworkConstants[_0x1e7616(0x26a)]]:_0xb605b1['tags']||[],[TestFrameworkConstants[_0x1e7616(0x1d4)]]:_0xb605b1[_0x1e7616(0x1b5)]||new Date()[_0x1e7616(0x1dd)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0xb605b1[_0x1e7616(0x1de)]?.[0x0]||'',[TestFrameworkConstants[_0x1e7616(0x1d8)]]:_0xb605b1[_0x1e7616(0x1de)]||[],[TestFrameworkConstants[_0x1e7616(0x1cb)]]:_0xb605b1['customRerunParam']?.[_0x1e7616(0x1ca)]||_0xb605b1[_0x1e7616(0x223)]||'',[TestFrameworkConstants[_0x1e7616(0x1e3)]]:{},[TestFrameworkConstants[_0x1e7616(0x215)]]:_0xb605b1['meta']||{}};TestInfo[_0x1e7616(0x26c)](_0x275e15,_0x45bc52),logger[_0x1e7616(0x22e)](_0x1e7616(0x1c7)+_0xb605b1[_0x1e7616(0x223)]+_0x1e7616(0x205)+_0x259002);const _0x1ad7f1={};return _0x1ad7f1[_0x275e15]=_0x45bc52,_0x1ad7f1;}['parseCucumberTestResult'](_0x44f62e){const _0x1dfaf5=a95_0x2cc0f0,_0x2aba23={'kIJMU':_0x1dfaf5(0x22d),'iaQLn':_0x1dfaf5(0x1ba),'wXEcI':function(_0x5b727c,_0x16cefb){return _0x5b727c===_0x16cefb;},'Cndvq':_0x1dfaf5(0x1e1),'nLqCB':_0x1dfaf5(0x24c),'vHykZ':function(_0x6d13ba,_0x186998,_0x514c9c){return _0x6d13ba(_0x186998,_0x514c9c);},'QhXBD':function(_0x1b2cb0,_0x151c78){return _0x1b2cb0>_0x151c78;}},{testUUID:_0x2776c2,testData:_0x5566fd}=_0x44f62e;if(!_0x5566fd||!_0x5566fd[_0x1dfaf5(0x217)])return logger['debug'](_0x2aba23[_0x1dfaf5(0x1b4)]),{};const _0x5d655f=this[_0x1dfaf5(0x20b)](TestFrameworkState[_0x1dfaf5(0x1c4)],HookState['POST']),_0x2cf7f3=_0x5566fd[_0x1dfaf5(0x217)],_0x42b8b4=TestInfo[_0x1dfaf5(0x230)](_0x2cf7f3)||{},_0xe64184=_0x42b8b4?_0x42b8b4[TestFrameworkConstants[_0x1dfaf5(0x1e3)]]||{}:{},_0xe6857f={..._0x42b8b4,[TestFrameworkConstants[_0x1dfaf5(0x1da)]]:_0x5566fd[_0x1dfaf5(0x225)]||_0x2aba23[_0x1dfaf5(0x25a)],[TestFrameworkConstants[_0x1dfaf5(0x23e)]]:_0x5566fd[_0x1dfaf5(0x26e)]||new Date()[_0x1dfaf5(0x1dd)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x1dfaf5(0x1dd)](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0xe64184,[TestFrameworkConstants[_0x1dfaf5(0x278)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x5566fd[_0x1dfaf5(0x202)]||{}};_0x2aba23[_0x1dfaf5(0x1fc)](_0x5566fd[_0x1dfaf5(0x225)],_0x2aba23[_0x1dfaf5(0x240)])&&_0x5566fd[_0x1dfaf5(0x23c)]&&(_0xe6857f[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x5566fd[_0x1dfaf5(0x1e6)]||_0x2aba23[_0x1dfaf5(0x1f0)],_0xe6857f[TestFrameworkConstants[_0x1dfaf5(0x239)]]=_0x5566fd[_0x1dfaf5(0x1cd)]||'',_0xe6857f[TestFrameworkConstants[_0x1dfaf5(0x1b2)]]=_0x5566fd['failure']);const _0x180df7=TestInfo[_0x1dfaf5(0x230)](_0x2cf7f3)[TestFrameworkConstants[_0x1dfaf5(0x204)]]||{},_0x449e13=_0x2aba23[_0x1dfaf5(0x20d)](getManualUploadLogs,_0x180df7,_0x5d655f['getAllData']()[_0x1dfaf5(0x25d)](_0x2cf7f3)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x2aba23[_0x1dfaf5(0x1d1)](_0x449e13[_0x1dfaf5(0x1b3)],0x0)){const _0x2d38ad=_0xe6857f[TestFrameworkConstants[_0x1dfaf5(0x278)]]||[];_0xe6857f[TestFrameworkConstants[_0x1dfaf5(0x278)]]=[..._0x2d38ad,..._0x449e13];}_0x5566fd[_0x1dfaf5(0x1fa)]&&_0x2aba23['QhXBD'](_0x5566fd[_0x1dfaf5(0x1fa)]['length'],0x0)&&(_0xe6857f[TestFrameworkConstants[_0x1dfaf5(0x258)]]=_0x5566fd[_0x1dfaf5(0x1fa)]);TestInfo[_0x1dfaf5(0x26c)](_0x2cf7f3,_0xe6857f),logger[_0x1dfaf5(0x22e)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x5566fd['name']+'\x20with\x20result:\x20'+_0x5566fd[_0x1dfaf5(0x225)]);const _0x329415={};return _0x329415[_0x2cf7f3]=_0xe6857f,_0x329415;}async['trackHookEvent'](_0x4369b6,_0x45bbe8,_0x591fe5,_0x1f896c){const _0x421f5b=a95_0x2cc0f0,_0x372b4e={'XuixY':_0x421f5b(0x238),'wQOOp':function(_0x4bc509){return _0x4bc509();},'TxYHy':function(_0x3be93e,_0xf013cf){return _0x3be93e in _0xf013cf;},'FSfeu':function(_0x1aff6e,_0x2955cf){return _0x1aff6e===_0x2955cf;},'gNIUX':function(_0x11941b,_0xea7f80){return _0x11941b>_0xea7f80;},'SrLtF':_0x421f5b(0x1e1),'sHbNO':'UnhandledError','MRnXU':_0x421f5b(0x265),'kgZle':function(_0x115e60,_0x5377ff){return _0x115e60!==_0x5377ff;}},{hookData:_0xce8d13}=_0x1f896c;if(!_0xce8d13)return logger[_0x421f5b(0x22e)](_0x372b4e[_0x421f5b(0x1bf)]),{};const _0xbe9db1=_0xce8d13[_0x421f5b(0x217)]||_0x372b4e['wQOOp'](uuidv4),_0x5f4777=_0xce8d13[_0x421f5b(0x1bd)],_0x294a42=_0x45bbe8[_0x421f5b(0x264)]()[_0x421f5b(0x21e)]('.')[0x1],_0x123bab=TestInfo[_0x421f5b(0x230)](_0x5f4777)[TestFrameworkConstants[_0x421f5b(0x1e3)]]||{},_0x45c077=_0x4369b6[_0x421f5b(0x1e2)]()[_0x421f5b(0x25d)](_0x5f4777);if(!_0x45c077)return logger[_0x421f5b(0x22e)](_0x421f5b(0x1c1)+_0x5f4777+_0x421f5b(0x1b9)),this[_0x421f5b(0x250)](_0x4369b6,_0x5f4777,_0x45bbe8,_0x591fe5,_0x1f896c),{};let _0x58592e=_0x45c077[TestFrameworkConstants[_0x421f5b(0x1dc)]];!_0x58592e&&(_0x58592e={});!_0x372b4e[_0x421f5b(0x24a)](_0x294a42,_0x58592e)&&(_0x58592e[_0x294a42]=[]);let _0x3f8b25=_0x45c077[TestFrameworkConstants[_0x421f5b(0x258)]];!_0x3f8b25&&(_0x3f8b25={});!_0x372b4e[_0x421f5b(0x24a)](_0x294a42,_0x3f8b25)&&(_0x3f8b25[_0x294a42]=[]);const _0x5bdf11={[TestFrameworkConstants[_0x421f5b(0x1dc)]]:_0x58592e,[TestFrameworkConstants[_0x421f5b(0x258)]]:_0x3f8b25},_0x23d2b1={};_0x23d2b1[_0x5f4777]=_0x5bdf11;const _0x14eca4=_0x23d2b1;if(_0x372b4e[_0x421f5b(0x1be)](_0x591fe5,HookState[_0x421f5b(0x22c)])){const _0x59a183={[TestFrameworkConstants[_0x421f5b(0x20a)]]:_0xbe9db1,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0xce8d13[_0x421f5b(0x1d0)],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0xce8d13[_0x421f5b(0x223)]||_0xce8d13[_0x421f5b(0x24e)],[TestFrameworkConstants[_0x421f5b(0x1e3)]]:_0x123bab};_0x59a183['key']=_0x294a42;const _0x9dde6c=_0x59a183;_0x58592e[_0x294a42][_0x421f5b(0x1ec)](_0x9dde6c),_0x14eca4[_0x5f4777][TestFrameworkConstants[_0x421f5b(0x242)]]=_0x294a42,logger[_0x421f5b(0x22e)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x294a42+_0x421f5b(0x1d9)+_0x9dde6c+_0x421f5b(0x22b)+_0x1f896c);}else{if(_0x372b4e[_0x421f5b(0x1be)](_0x591fe5,HookState['POST'])){const _0x146507=_0xce8d13[_0x421f5b(0x225)],_0x69b16a=_0x58592e[_0x294a42]||[];logger[_0x421f5b(0x22e)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x69b16a+_0x421f5b(0x1cf)+_0x1f896c);if(_0x372b4e[_0x421f5b(0x1b6)](_0x69b16a[_0x421f5b(0x1b3)],0x0)){const _0x106153=_0x69b16a['pop']();_0x372b4e[_0x421f5b(0x1be)](_0xce8d13[_0x421f5b(0x225)],_0x372b4e[_0x421f5b(0x1c6)])&&_0xce8d13[_0x421f5b(0x270)]?(_0x106153[TestFrameworkConstants[_0x421f5b(0x1f7)]]=_0xce8d13[_0x421f5b(0x1e6)]||_0x372b4e[_0x421f5b(0x27b)],_0x106153[TestFrameworkConstants[_0x421f5b(0x1fb)]]=_0xce8d13[_0x421f5b(0x1cd)]||'',_0x106153[TestFrameworkConstants[_0x421f5b(0x26d)]]=_0xce8d13[_0x421f5b(0x270)]):_0x106153[TestFrameworkConstants[_0x421f5b(0x20e)]]=_0x372b4e[_0x421f5b(0x1d3)];_0x372b4e[_0x421f5b(0x25f)](_0x146507,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x106153[TestFrameworkConstants[_0x421f5b(0x20e)]]=_0x146507);_0x106153[TestFrameworkConstants[_0x421f5b(0x1d6)]]=_0xce8d13[_0x421f5b(0x216)]||new Date()[_0x421f5b(0x1dd)](),_0x106153[TestFrameworkConstants[_0x421f5b(0x1e3)]]=_0x123bab;const _0xb33494=_0x106153[TestFrameworkConstants[_0x421f5b(0x20a)]];!_0x3f8b25[_0x294a42]&&(_0x3f8b25[_0x294a42]=[]),_0x3f8b25[_0x294a42][_0x421f5b(0x1ec)](_0x106153),_0x14eca4[_0x5f4777][TestFrameworkConstants[_0x421f5b(0x1e4)]]=_0x294a42;}}}return logger[_0x421f5b(0x22e)](_0x421f5b(0x25b)+_0xce8d13[_0x421f5b(0x24e)]+_0x421f5b(0x269)+_0xbe9db1+_0x421f5b(0x227)+_0x5f4777),_0x14eca4;}['createTestFrameworkEventPayload'](_0x1ca948){const _0x53398c=a95_0x2cc0f0,_0x29d737={};_0x29d737[_0x53398c(0x268)]=_0x53398c(0x221);const _0x12aa01=_0x29d737;try{const _0x5e8352=_0x1ca948['test']?_0x1ca948[_0x53398c(0x1d2)]['id']:_0x1ca948[_0x53398c(0x275)][_0x53398c(0x1bd)],_0x156e40=_0x1ca948[_0x53398c(0x23b)],_0x25e7b3=_0x156e40[_0x53398c(0x23f)](),_0x1d55cb=_0x156e40['getAllData']()[_0x53398c(0x25d)](_0x5e8352);if(!_0x1d55cb)return logger[_0x53398c(0x22e)](_0x53398c(0x277)+_0x5e8352),{};logger[_0x53398c(0x22e)](_0x53398c(0x226)+_0x5e8352);const {[TestFrameworkConstants[_0x53398c(0x207)]]:_0x13a530='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x53d11a='',[TestFrameworkConstants[_0x53398c(0x1d4)]]:_0x1815de='',[TestFrameworkConstants[_0x53398c(0x23e)]]:_0x16e573=''}=_0x1d55cb,_0x64a859=_0x156e40[_0x53398c(0x25e)]()[_0x53398c(0x264)]()[_0x53398c(0x21e)]('.')[0x1],_0x2aab39=_0x156e40[_0x53398c(0x266)]()['toString']()['split']('.')[0x1],_0x31c605=global?.['browserstackPlatformIndex']??0x0,_0x50b0b7=_0x156e40[_0x53398c(0x254)](),_0x498b8f=Buffer['from'](JSON[_0x53398c(0x222)](_0x1d55cb))[_0x53398c(0x264)](_0x12aa01[_0x53398c(0x268)]),_0x1ccab7={'hash':_0x25e7b3[_0x53398c(0x267)](),'threadId':_0x25e7b3['getThreadId']()['toString'](),'processId':_0x25e7b3[_0x53398c(0x214)]()['toString']()},_0xb0ee81={};_0xb0ee81[_0x53398c(0x229)]=_0x31c605,_0xb0ee81[_0x53398c(0x21c)]=_0x13a530,_0xb0ee81['testFrameworkVersion']=_0x53d11a,_0xb0ee81[_0x53398c(0x1d7)]=_0x64a859,_0xb0ee81[_0x53398c(0x1cc)]=_0x2aab39,_0xb0ee81[_0x53398c(0x1b5)]=_0x1815de,_0xb0ee81[_0x53398c(0x21f)]=_0x16e573,_0xb0ee81['uuid']=_0x50b0b7,_0xb0ee81[_0x53398c(0x260)]=_0x498b8f,_0xb0ee81['executionContext']=_0x1ccab7;const _0x502b44=_0xb0ee81;return logger['debug']('createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20'+_0x5e8352+'\x20testState:\x20'+_0x64a859+_0x53398c(0x1ed)+_0x2aab39),_0x502b44;}catch(_0x4b6f04){return logger[_0x53398c(0x210)](_0x53398c(0x25c)+util[_0x53398c(0x1b0)](_0x4b6f04)),{};}}async[a95_0x2cc0f0(0x1c5)](_0x224e80,_0x44e599,_0x33a793){const _0x314c16=a95_0x2cc0f0,_0x278b31={'NDTwf':function(_0x55b85f,_0x38bbc3,_0x13cba4){return _0x55b85f(_0x38bbc3,_0x13cba4);},'Ubdxp':function(_0x562044,_0x16a101){return _0x562044===_0x16a101;},'fgHhM':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','aLXix':function(_0x3fc01e,_0x23fa3c){return _0x3fc01e/_0x23fa3c;},'JTOiY':function(_0x1b3050,_0x4cafef){return _0x1b3050<_0x4cafef;},'qfVHL':function(_0x44315a,_0x246e4a){return _0x44315a*_0x246e4a;},'swSwR':function(_0x365232,_0x3b734e){return _0x365232+_0x3b734e;},'oQiVb':function(_0x169ed5,_0x57532b){return _0x169ed5+_0x57532b;},'FClXR':_0x314c16(0x218)};try{const _0x35d46d=_0x33a793['testUUID'],_0x32baf0=_0x224e80[_0x314c16(0x1e2)]()[_0x314c16(0x25d)](_0x35d46d),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0xc3978c='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x21974f=''}=_0x32baf0,_0x4b0e87=TestInfo[_0x314c16(0x1f8)](_0x35d46d),_0xa8407c=TestInfo[_0x314c16(0x230)](_0x35d46d)[TestFrameworkConstants[_0x314c16(0x204)]]||{},_0x4a824c=_0x278b31['NDTwf'](getMediaArtifactsLogs,_0xa8407c,_0x224e80['getAllData']()[_0x314c16(0x25d)](_0x35d46d)[TestFrameworkConstants[_0x314c16(0x279)]]),_0x520571=(_0x4b0e87||[])[_0x314c16(0x203)](_0x4a824c||[]);if(!_0x520571||_0x278b31['Ubdxp'](_0x520571['length'],0x0)){logger['debug'](_0x278b31[_0x314c16(0x213)]);return;}const _0x11798e=0x28,_0x4ba200=Math['ceil'](_0x278b31[_0x314c16(0x232)](_0x520571[_0x314c16(0x1b3)],_0x11798e));for(let _0x362467=0x0;_0x278b31[_0x314c16(0x231)](_0x362467,_0x4ba200);_0x362467++){const _0x2870ee=_0x278b31[_0x314c16(0x241)](_0x362467,_0x11798e),_0x2f4741=_0x278b31[_0x314c16(0x245)](_0x2870ee,_0x11798e),_0x41a828=_0x520571[_0x314c16(0x273)](_0x2870ee,_0x2f4741),_0x346cff={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x41a828,'testFrameworkName':_0xc3978c,'testFrameworkVersion':_0x21974f,'testFrameworkState':_0x44e599[_0x314c16(0x264)]()['split']('.')[0x1]};logger[_0x314c16(0x22e)](_0x314c16(0x208)+_0x35d46d+_0x314c16(0x1c9)+_0x278b31[_0x314c16(0x237)](_0x362467,0x1)+'/'+_0x4ba200+_0x314c16(0x24f)+util[_0x314c16(0x212)](_0x346cff));const _0x5645b8=await GrpcClient[_0x314c16(0x255)]()['logCreatedEvent'](_0x346cff);logger['debug'](_0x314c16(0x208)+_0x35d46d+'\x20batch\x20'+_0x278b31[_0x314c16(0x237)](_0x362467,0x1)+'/'+_0x4ba200+_0x314c16(0x259)+util[_0x314c16(0x212)](_0x5645b8));}}catch(_0x34c9de){logger['error'](_0x314c16(0x22a)+util[_0x314c16(0x1b0)](_0x34c9de));}logger[_0x314c16(0x22e)](_0x278b31[_0x314c16(0x23d)]);}[a95_0x2cc0f0(0x250)](_0x4baab2,_0x40dfcb,_0x4936e6,_0x297491,_0x284fbc){const _0x3918d3=a95_0x2cc0f0,_0xfd028={'testId':_0x40dfcb,'testFrameworkState':_0x4936e6,'hookState':_0x297491,'args':_0x284fbc,'timestamp':new Date()[_0x3918d3(0x1dd)]()};_0x4baab2['addPendingHook'](_0x40dfcb,_0xfd028),logger['debug'](_0x3918d3(0x244)+_0x40dfcb+_0x3918d3(0x1d5)+_0x4936e6+_0x3918d3(0x1fe)+_0x297491);}async['processPendingHooks'](_0x506a7f,_0x512251){const _0x635f85=a95_0x2cc0f0,_0x633f77={};_0x633f77['DnQMh']=function(_0xb015b6,_0x585f4d){return _0xb015b6>_0x585f4d;};const _0x2b8f67=_0x633f77;if(!_0x506a7f['hasPendingHooks'](_0x512251))return;const _0x12f37d=_0x506a7f[_0x635f85(0x1c8)](_0x512251);logger[_0x635f85(0x22e)](_0x635f85(0x246)+_0x12f37d[_0x635f85(0x1b3)]+_0x635f85(0x243)+_0x512251);for(const _0x1d6fcd of _0x12f37d){try{const _0x80ebfc=await this['trackHookEvent'](_0x506a7f,_0x1d6fcd[_0x635f85(0x1d7)],_0x1d6fcd[_0x635f85(0x1cc)],_0x1d6fcd[_0x635f85(0x1f6)]);_0x80ebfc&&_0x2b8f67[_0x635f85(0x1ce)](Object[_0x635f85(0x211)](_0x80ebfc)['length'],0x0)&&_0x506a7f[_0x635f85(0x23a)](_0x80ebfc),await this[_0x635f85(0x1f1)](_0x506a7f,_0x1d6fcd[_0x635f85(0x1d7)],_0x1d6fcd['hookState'],_0x1d6fcd['args']);}catch(_0x3ddeb4){logger[_0x635f85(0x210)](_0x635f85(0x233)+_0x512251+',\x20error:\x20'+_0x3ddeb4);}}_0x506a7f[_0x635f85(0x263)](_0x512251),logger['debug'](_0x635f85(0x1c0)+_0x512251);}}module['exports']=CucumberTestFramework;
|