browserstack-node-sdk 1.53.6 → 1.54.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/package.json +4 -3
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/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/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/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/bin/v2/cliUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a68_0x2392(_0x2ed924,_0x2719dd){const _0x2a2646=a68_0x2a26();return a68_0x2392=function(_0x2392f5,_0x33b7b8){_0x2392f5=_0x2392f5-0xee;let _0xc82446=_0x2a2646[_0x2392f5];return _0xc82446;},a68_0x2392(_0x2ed924,_0x2719dd);}const a68_0x46fd12=a68_0x2392;(function(_0x467e5f,_0x2543ba){const _0x317cdc=a68_0x2392,_0x317183=_0x467e5f();while(!![]){try{const _0x71a41=parseInt(_0x317cdc(0x11a))/0x1+parseInt(_0x317cdc(0x138))/0x2*(parseInt(_0x317cdc(0x127))/0x3)+-parseInt(_0x317cdc(0x12a))/0x4+-parseInt(_0x317cdc(0x125))/0x5+-parseInt(_0x317cdc(0x1a3))/0x6*(parseInt(_0x317cdc(0x1bf))/0x7)+-parseInt(_0x317cdc(0x106))/0x8*(-parseInt(_0x317cdc(0x121))/0x9)+parseInt(_0x317cdc(0xf2))/0xa;if(_0x71a41===_0x2543ba)break;else _0x317183['push'](_0x317183['shift']());}catch(_0x30319b){_0x317183['push'](_0x317183['shift']());}}}(a68_0x2a26,0x94d9d));const fs=require('fs'),os=require('os'),url=require('url'),path=require('path'),{exec}=require('child_process'),{https}=require(a68_0x46fd12(0x183)),yauzl=require(a68_0x46fd12(0x1aa)),util=require(a68_0x46fd12(0x1b8)),{getFrameworkVersion}=require(a68_0x46fd12(0x129)),{threadId}=require(a68_0x46fd12(0x16a)),PerformanceTester=require(a68_0x46fd12(0x175)),{EVENTS:PerformanceEvents}=require(a68_0x46fd12(0x195)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a68_0x46fd12(0x162)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require('../../helpers/helper'),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a68_0x46fd12(0x18a)),{createClassLogger}=require(a68_0x46fd12(0x180)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a68_0x46fd12(0x126)),TestFrameworkState=require(a68_0x46fd12(0x187)),AutomationFrameworkState=require(a68_0x46fd12(0x124)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a68_0x46fd12(0x15e)),{getBStackAPIUrl}=require(a68_0x46fd12(0x105));class CLIUtils{['automationFrameworkDetail']={};[a68_0x46fd12(0x179)]={};static[a68_0x46fd12(0x153)](){const _0x15f6be=a68_0x46fd12,_0x584365={};_0x584365[_0x15f6be(0xf7)]=function(_0x22c57f,_0x5d73e5){return _0x22c57f===_0x5d73e5;},_0x584365[_0x15f6be(0x10f)]='development';const _0x3d2933=_0x584365;return _0x3d2933[_0x15f6be(0xf7)](process[_0x15f6be(0x115)][_0x15f6be(0x1a6)],_0x3d2933[_0x15f6be(0x10f)]);}static['getCLIParamsForDevEnv'](){const _0x292dc2=a68_0x46fd12,_0x57c6aa={};return _0x57c6aa['id']=process[_0x292dc2(0x115)][_0x292dc2(0x1a6)],_0x57c6aa['listen']=_0x292dc2(0x1be)+process[_0x292dc2(0x115)][_0x292dc2(0x1a6)]+_0x292dc2(0x134),_0x57c6aa;}static['getSdkVersion'](){const _0xf16adf=a68_0x46fd12,_0x5d38ad={'mqDwp':function(_0x300922,_0x323c1c){return _0x300922(_0x323c1c);},'NHsxb':'../../../package.json'};return _0x5d38ad[_0xf16adf(0x13c)](require,_0x5d38ad[_0xf16adf(0x14b)])[_0xf16adf(0x11c)];}static['getSdkLanguage'](){const _0x77c0d7=a68_0x46fd12,_0x3ac57e={};_0x3ac57e[_0x77c0d7(0x112)]=_0x77c0d7(0x139);const _0x32d571=_0x3ac57e;return _0x32d571[_0x77c0d7(0x112)];}static async[a68_0x46fd12(0x18c)](_0x1dd961){const _0x274bdf=a68_0x46fd12,_0x1c579d={'TbcyC':'Configuring\x20Cli\x20path.','jUttU':function(_0x5699e8,_0x51c596){return _0x5699e8(_0x51c596);},'rZBSt':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x274bdf(0x130)](_0x1c579d['TbcyC']);const _0x3ac8ae=process['env'][_0x274bdf(0x10d)];if(!_0x1c579d[_0x274bdf(0x1ae)](isNullOrEmpty,_0x3ac8ae))return logger[_0x274bdf(0x130)](_0x274bdf(0x118)+_0x3ac8ae),_0x3ac8ae;try{const _0x1ed807=this[_0x274bdf(0x181)]();if(_0x1c579d[_0x274bdf(0x1ae)](isNullOrEmpty,_0x1ed807))throw new Error(_0x1c579d[_0x274bdf(0x171)]);const _0x174190=this[_0x274bdf(0x157)](_0x1ed807),_0x11ec4d=await this[_0x274bdf(0x144)](_0x174190,_0x1ed807,_0x1dd961);return logger[_0x274bdf(0x130)](_0x274bdf(0x199)+_0x11ec4d),_0x11ec4d;}catch(_0x1024e2){logger[_0x274bdf(0x130)](_0x274bdf(0x13d)+util[_0x274bdf(0xfe)](_0x1024e2));}return null;}static async[a68_0x46fd12(0x144)](_0x31525a,_0x3b690e,_0x340467){const _0x39a41b=a68_0x46fd12,_0x2ce646={'YFrgM':function(_0x2032aa){return _0x2032aa();},'INxKR':function(_0x47561c,_0x566bb7){return _0x47561c(_0x566bb7);},'Cxjje':function(_0x391a96,_0x30f096,_0x50efad){return _0x391a96(_0x30f096,_0x50efad);},'onbLS':_0x39a41b(0x123),'utSDO':_0x39a41b(0x17e),'irwbo':function(_0x44fe35,_0x25125e){return _0x44fe35(_0x25125e);}};PerformanceTester['start'](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),logger[_0x39a41b(0x14e)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x31525a);const _0xf2d580=_0x2ce646[_0x39a41b(0x1b4)](getHostInfo),_0x4b6538={'sdk_version':CLIUtils[_0x39a41b(0x1bb)](),'os':_0xf2d580[_0x39a41b(0x198)],'os_arch':_0xf2d580[_0x39a41b(0x15f)],'cli_version':'0','sdk_language':this[_0x39a41b(0x13b)]()};!_0x2ce646[_0x39a41b(0x110)](isNullOrEmpty,_0x31525a)&&(_0x4b6538[_0x39a41b(0x168)]=await this[_0x39a41b(0x1c9)](_0x31525a+_0x39a41b(0x19e)));const _0x426895=await this[_0x39a41b(0x1af)](_0x4b6538,_0x340467);process['env']['BROWSERSTACK_BINARY_URL']&&(logger[_0x39a41b(0x14e)](_0x39a41b(0xf1)+process[_0x39a41b(0x115)]['BROWSERSTACK_BINARY_URL']),_0x426895[_0x39a41b(0x123)][_0x39a41b(0x17e)]=process[_0x39a41b(0x115)][_0x39a41b(0x15d)]);if(_0x2ce646[_0x39a41b(0x143)](nestedKeyValue,_0x426895,[_0x2ce646['onbLS'],_0x2ce646['utSDO']])){logger[_0x39a41b(0x130)](_0x39a41b(0x1c7)+_0x4b6538[_0x39a41b(0x168)]);if(!_0x2ce646[_0x39a41b(0x102)](isNullOrEmpty,_0x31525a)&&this['isBinaryBusy'](_0x31525a))return logger[_0x39a41b(0x1c2)](_0x39a41b(0x192)+_0x31525a),PerformanceTester['end'](PerformanceEvents[_0x39a41b(0x108)]),_0x31525a;const _0x261104=await this[_0x39a41b(0x12c)](_0x2ce646[_0x39a41b(0x143)](nestedKeyValue,_0x426895,[_0x2ce646[_0x39a41b(0x12d)],_0x2ce646[_0x39a41b(0x117)]]),_0x3b690e);return PerformanceTester[_0x39a41b(0x182)](PerformanceEvents[_0x39a41b(0x108)]),_0x261104;}return PerformanceTester['end'](PerformanceEvents[_0x39a41b(0x108)]),_0x31525a;}static['getCliDir'](){const _0x1d0c15=a68_0x46fd12,_0x5d6fa0={'zHake':function(_0x51d649,_0x80dd55){return _0x51d649(_0x80dd55);},'Fvylv':_0x1d0c15(0x160),'mGEgf':_0x1d0c15(0x114),'OGotX':function(_0x4e4e27,_0x3093fe){return _0x4e4e27(_0x3093fe);}},_0x1e18f1=this[_0x1d0c15(0x1c8)]();try{if(_0x5d6fa0['zHake'](isNullOrEmpty,_0x1e18f1))throw new Error(_0x5d6fa0[_0x1d0c15(0xfd)]);const _0x115870=path[_0x1d0c15(0x11e)](_0x1e18f1,_0x5d6fa0[_0x1d0c15(0x1c3)]);return!fs['existsSync'](_0x115870)&&_0x5d6fa0['OGotX'](createDir,_0x115870),_0x115870;}catch(_0x37848b){logger[_0x1d0c15(0x130)](_0x1d0c15(0x133)+util[_0x1d0c15(0xfe)](_0x37848b));}}static[a68_0x46fd12(0x1c8)](){const _0xbed743=a68_0x46fd12,_0x792427={'sWReJ':'.browserstack','NsNRS':function(_0x496c9d,_0xad9f84){return _0x496c9d(_0xad9f84);},'KgKrE':function(_0x210fdb,_0x54d17c){return _0x210fdb(_0x54d17c);},'WNVTS':function(_0xde2595,_0x2e4bff){return _0xde2595(_0x2e4bff);},'afBkn':function(_0x154b1a,_0x271cc5){return _0x154b1a(_0x271cc5);},'UFghL':function(_0x415e54,_0x1cc6da){return _0x415e54(_0x1cc6da);}},_0x54d68f=[process[_0xbed743(0x115)]['BROWSERSTACK_FILES_DIR'],path[_0xbed743(0x11e)](os['homedir'](),_0x792427['sWReJ']),path['join'](os['tmpdir'](),_0x792427[_0xbed743(0x173)])];for(const _0xed562d of _0x54d68f){if(_0x792427[_0xbed743(0x161)](isNullOrEmpty,_0xed562d))continue;try{if(fs['existsSync'](_0xed562d)){logger['debug']('Folder\x20'+_0xed562d+'\x20already\x20exists');if(!_0x792427['KgKrE'](isModifiable,_0xed562d)){logger['debug']('Setting\x20required\x20permissions\x20to\x20'+_0xed562d);const _0x421ff0=_0x792427[_0xbed743(0x161)](setReadWriteExecuteAccess,_0xed562d);if(!_0x792427[_0xbed743(0x1b7)](isTrue,_0x421ff0)){logger['warn']('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0xed562d);continue;}}}else{logger[_0xbed743(0x130)](_0xbed743(0x1ba)+_0xed562d),_0x792427[_0xbed743(0x197)](createDir,_0xed562d),logger[_0xbed743(0x130)]('Setting\x20required\x20permissions\x20to\x20'+_0xed562d);const _0x2c8290=_0x792427[_0xbed743(0x159)](setReadWriteExecuteAccess,_0xed562d);!_0x792427[_0xbed743(0x172)](isTrue,_0x2c8290)&&logger[_0xbed743(0x1c2)](_0xbed743(0x1a2)+_0xed562d);}return _0xed562d;}catch(_0x5c848a){logger[_0xbed743(0x163)](_0xbed743(0x145)+util[_0xbed743(0xfe)](_0x5c848a));}}return null;}static['getExistingCliPath'](_0x52e1ee){const _0x571993=a68_0x46fd12,_0x1eee81={};_0x1eee81['gEdAU']=function(_0xcf8306,_0x52543a){return _0xcf8306>_0x52543a;},_0x1eee81[_0x571993(0x146)]=function(_0x3ad37e,_0x137958){return _0x3ad37e>_0x137958;};const _0x5156f3=_0x1eee81;try{if(!fs[_0x571993(0x136)](_0x52e1ee)||!fs[_0x571993(0x1a8)](_0x52e1ee)[_0x571993(0x193)]())return'';const _0x5e79d6=fs['readdirSync'](_0x52e1ee)[_0x571993(0x141)](_0xafbc4e=>path['join'](_0x52e1ee,_0xafbc4e))[_0x571993(0x11b)](_0x52a13e=>fs[_0x571993(0x1a8)](_0x52a13e)[_0x571993(0x19d)]()&&path[_0x571993(0x1a0)](_0x52a13e)[_0x571993(0x120)](_0x571993(0x185)));if(_0x5156f3[_0x571993(0x146)](_0x5e79d6[_0x571993(0x1a4)],0x0)){const _0x20f53d=_0x5e79d6[_0x571993(0x141)](_0x57e215=>({'filePath':_0x57e215,'mtime':fs['statSync'](_0x57e215)[_0x571993(0x132)]}))[_0x571993(0x190)]((_0x3db59d,_0x324a8c)=>{const _0x163288=_0x571993;if(!_0x3db59d||!_0x3db59d['mtime'])return _0x324a8c;if(_0x5156f3[_0x163288(0xf4)](_0x324a8c['mtime'],_0x3db59d[_0x163288(0x132)]))return _0x324a8c;return _0x3db59d;},{});return _0x20f53d?_0x20f53d['filePath']:'';}return'';}catch(_0x547d12){return logger[_0x571993(0x163)](_0x571993(0x1bd)+util[_0x571993(0xfe)](_0x547d12)),'';}}static ['requestToUpdateCLI']=async(_0x5478a6,_0x5da346)=>{const _0x4be83e=a68_0x46fd12,_0x3e6c17={'hrfJy':function(_0x5c42cf,_0x2ed309,_0x501188,_0x417c6a,_0x567bb0){return _0x5c42cf(_0x2ed309,_0x501188,_0x417c6a,_0x567bb0);},'gkgyq':'GET'},_0x22380d={};_0x22380d['qs']=_0x5478a6;const _0x1213f2=await _0x3e6c17[_0x4be83e(0x103)](nodeRequest,_0x3e6c17[_0x4be83e(0x1b6)],UPDATED_CLI_ENDPOINT,_0x22380d,_0x5da346);return logger['debug']('response\x20'+JSON[_0x4be83e(0x1a1)](_0x1213f2)),_0x1213f2;};static['isBinaryBusy'](_0x5b719b){const _0x3936f2=a68_0x46fd12;try{const _0x584e81=fs[_0x3936f2(0x15c)](_0x5b719b,'r+');return fs['closeSync'](_0x584e81),![];}catch(_0x93bdbf){if(BINARY_BUSY_ERROR_CODES[_0x3936f2(0x19f)](_0x93bdbf[_0x3936f2(0x178)]))return logger['debug']('Binary\x20is\x20busy:\x20'+_0x5b719b),!![];return logger[_0x3936f2(0x130)]('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x93bdbf[_0x3936f2(0x1a5)]),![];}}static[a68_0x46fd12(0x1c9)](_0x417de6,_0x1ad866=''){const _0x2f6c50=a68_0x46fd12,_0x5df5ad={'yipUz':'version','FhWNJ':function(_0x28a8e8,_0xc6dcdb){return _0x28a8e8(_0xc6dcdb);},'lRsAl':_0x2f6c50(0x1cc),'YEsZZ':function(_0x5b1b10,_0x287cf3){return _0x5b1b10(_0x287cf3);},'XUykr':function(_0xd36a09,_0x295cbc){return _0xd36a09(_0x295cbc);},'kJwFc':function(_0x1898ce,_0x2a8807,_0xd236a9,_0x399837){return _0x1898ce(_0x2a8807,_0xd236a9,_0x399837);},'lQdpI':_0x2f6c50(0x163)};return new Promise((_0x229706,_0x2df74e)=>{const _0x4a6b4d=_0x2f6c50,_0x388e03={'fikCA':_0x5df5ad[_0x4a6b4d(0x128)],'Bylln':function(_0xe5bcd0,_0x39151b){const _0x34637f=_0x4a6b4d;return _0x5df5ad[_0x34637f(0x151)](_0xe5bcd0,_0x39151b);},'PrMwq':function(_0x278f1b,_0x3b1821){return _0x5df5ad['FhWNJ'](_0x278f1b,_0x3b1821);},'OICpH':_0x5df5ad[_0x4a6b4d(0x1b1)],'rGvje':function(_0x1c6cab,_0x80e98){const _0x1297d5=_0x4a6b4d;return _0x5df5ad[_0x1297d5(0x196)](_0x1c6cab,_0x80e98);},'HykoN':function(_0x6a2d1f,_0x1f9ee7){return _0x5df5ad['XUykr'](_0x6a2d1f,_0x1f9ee7);}},_0x5872f8={};_0x5872f8['cwd']=_0x1ad866,_0x5872f8['timeout']=0x1388;const _0x33b0f2=_0x5df5ad[_0x4a6b4d(0x19c)](exec,_0x417de6,_0x5872f8,(_0x2c1da4,_0x125295,_0x4771e3)=>{const _0x5a0331=_0x4a6b4d;if(_0x2c1da4){if(_0x417de6[_0x5a0331(0x19f)](_0x388e03[_0x5a0331(0x137)])&&(_0x125295['trim']()||_0x4771e3['trim']())){const _0x1d9585=_0x125295[_0x5a0331(0x107)]()||_0x4771e3[_0x5a0331(0x107)]();logger['debug'](_0x5a0331(0x14a)+_0x1d9585+'\x22'),_0x388e03[_0x5a0331(0x164)](_0x229706,_0x1d9585);}else _0x388e03[_0x5a0331(0x12e)](_0x229706,_0x4771e3['trim']()||_0x388e03[_0x5a0331(0x177)]);}else logger[_0x5a0331(0x130)](_0x5a0331(0x1b3)+_0x125295[_0x5a0331(0x107)]()+'\x22'),_0x388e03[_0x5a0331(0x13e)](_0x229706,_0x125295[_0x5a0331(0x107)]());});_0x33b0f2['on'](_0x5df5ad[_0x4a6b4d(0x101)],()=>{const _0x50e79a=_0x4a6b4d;_0x388e03[_0x50e79a(0x170)](_0x229706,_0x388e03['OICpH']);});});}static [a68_0x46fd12(0x12c)]=async(_0x26c376,_0x4e2bb9)=>{const _0x299cca=a68_0x46fd12,_0xd854a3={'Aynny':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','aVpbz':function(_0x18ae7f,_0x242901){return _0x18ae7f(_0x242901);},'myxJS':'error','MLfhv':_0x299cca(0x1c6)};PerformanceTester[_0x299cca(0xf9)](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger['debug']('Downloading\x20SDK\x20binary\x20from:\x20'+_0x26c376);try{const _0x3be839=url['parse'](_0x26c376),_0x438e04=path[_0x299cca(0x11e)](_0x4e2bb9,_0x299cca(0x186)+process[_0x299cca(0x17c)]+'.zip'),_0x19a3f8=fs[_0x299cca(0x1b9)](_0x438e04);return new Promise((_0x135de2,_0x51cebd)=>{const _0x3bd9e3=_0x299cca,_0x49ff28={'VEuVv':_0xd854a3[_0x3bd9e3(0x191)],'AmGzx':function(_0x29a181,_0xd12ce1){const _0x558904=_0x3bd9e3;return _0xd854a3[_0x558904(0x140)](_0x29a181,_0xd12ce1);},'hRelv':function(_0x1f743d,_0x25c29e){const _0x26f4d4=_0x3bd9e3;return _0xd854a3[_0x26f4d4(0x140)](_0x1f743d,_0x25c29e);}};https[_0x3bd9e3(0x18d)](_0x3be839,function(_0x3a9004){const _0x1fba23=_0x3bd9e3,_0x33397a={'XUryX':_0xd854a3[_0x1fba23(0xfb)],'RdLsj':function(_0x1c575b,_0x1094c8){const _0x493ace=_0x1fba23;return _0xd854a3[_0x493ace(0x140)](_0x1c575b,_0x1094c8);}},_0x4d6314=null;_0x3a9004[_0x1fba23(0x1ab)](_0x19a3f8),_0x3a9004['on'](_0xd854a3['myxJS'],function(_0x24a3aa){const _0x2d16d6=_0x1fba23;logger[_0x2d16d6(0x163)](util[_0x2d16d6(0xfe)](_0x49ff28[_0x2d16d6(0x1ca)],_0x24a3aa)),PerformanceTester[_0x2d16d6(0x182)](PerformanceEvents[_0x2d16d6(0x17f)],![],util['format'](_0x24a3aa)),_0x49ff28['AmGzx'](_0x51cebd,_0x24a3aa);}),_0x19a3f8['on'](_0xd854a3[_0x1fba23(0x17a)],function(_0x1bf541){const _0x4edea9=_0x1fba23;logger['error'](util[_0x4edea9(0xfe)](_0x33397a[_0x4edea9(0xf6)],_0x1bf541)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x1bf541)),_0x33397a[_0x4edea9(0x156)](_0x51cebd,_0x1bf541);}),CLIUtils[_0x1fba23(0xf0)](_0x19a3f8,_0x4d6314,_0x438e04,_0x4e2bb9,_0x136cc8=>{const _0x32a157=_0x1fba23;PerformanceTester[_0x32a157(0x182)](PerformanceEvents[_0x32a157(0x17f)]),_0x33397a['RdLsj'](_0x135de2,_0x136cc8);},_0x319a16=>{const _0x2c1754=_0x1fba23;PerformanceTester[_0x2c1754(0x182)](PerformanceEvents[_0x2c1754(0x17f)],![],util[_0x2c1754(0xfe)](_0x319a16)),_0x49ff28[_0x2c1754(0x111)](_0x51cebd,_0x319a16);});})['on'](_0xd854a3[_0x3bd9e3(0x17a)],function(_0x3c5f60){const _0x30f177=_0x3bd9e3;logger['error']('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x30f177(0xfe)](_0x3c5f60)),PerformanceTester[_0x30f177(0x182)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x3c5f60)),_0xd854a3[_0x30f177(0x140)](_0x51cebd,_0x3c5f60);});});}catch(_0x5ed2f6){PerformanceTester['end'](PerformanceEvents[_0x299cca(0x17f)],![],util[_0x299cca(0xfe)](_0x5ed2f6)),logger['debug']('Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20'+util[_0x299cca(0xfe)](_0x5ed2f6));}};static[a68_0x46fd12(0xf0)](_0x587fad,_0x2d55e1,_0x15f058,_0x449821,_0x3e6b1c,_0x3146cf){const _0x184043=a68_0x46fd12,_0x1941b5={'SgGQS':function(_0xed6054,_0x82c364){return _0xed6054(_0x82c364);},'bBVuy':function(_0x2885a4,_0x3c4027){return _0x2885a4(_0x3c4027);},'cUwft':_0x184043(0x154),'QUIUF':_0x184043(0x163),'AULaV':'end','WTOFi':_0x184043(0xee),'AzMKs':function(_0x2514e2,_0x53071d){return _0x2514e2(_0x53071d);},'yqRVp':function(_0x555ba1,_0x26c3bf){return _0x555ba1!==_0x26c3bf;},'MfQTL':function(_0x47b53d,_0x177f18){return _0x47b53d!==_0x177f18;},'iadfE':_0x184043(0x167),'ickbo':_0x184043(0x165)};_0x587fad['on'](_0x1941b5[_0x184043(0x155)],function(){const _0x2ba5b7=_0x184043,_0x4799b3={'ivIHk':_0x1941b5[_0x2ba5b7(0x155)],'qkIRk':function(_0x236dae,_0x3c2aba){const _0x45c8ff=_0x2ba5b7;return _0x1941b5[_0x45c8ff(0x18b)](_0x236dae,_0x3c2aba);},'DmYpf':_0x1941b5[_0x2ba5b7(0x1bc)],'JLcud':function(_0x33373c,_0x5e7457){const _0x3c3486=_0x2ba5b7;return _0x1941b5[_0x3c3486(0x149)](_0x33373c,_0x5e7457);},'chCmg':function(_0x4fea4f,_0x334ccf){return _0x1941b5['SgGQS'](_0x4fea4f,_0x334ccf);},'Cttcw':_0x1941b5['QUIUF'],'ksgrq':function(_0x169fac,_0x2d040e){const _0x131f5e=_0x2ba5b7;return _0x1941b5[_0x131f5e(0x10a)](_0x169fac,_0x2d040e);},'FRKmd':_0x1941b5[_0x2ba5b7(0x18f)],'ZdwRY':function(_0x514d69,_0x3d886a){const _0x168385=_0x2ba5b7;return _0x1941b5[_0x168385(0x18b)](_0x514d69,_0x3d886a);},'BzsVB':_0x1941b5[_0x2ba5b7(0x189)]},_0x1cb1cb={};_0x1cb1cb[_0x2ba5b7(0x16b)]=!![],yauzl[_0x2ba5b7(0x169)](_0x15f058,_0x1cb1cb,function(_0x2a6cdf,_0x314466){const _0x5d9461=_0x2ba5b7,_0x5642e3={'qcYFE':function(_0x282d95,_0x5215a7){const _0x2bdc62=a68_0x2392;return _0x1941b5[_0x2bdc62(0xfc)](_0x282d95,_0x5215a7);},'LSsHE':function(_0xe44dce,_0x5c5ee4){const _0x422f00=a68_0x2392;return _0x1941b5[_0x422f00(0xfc)](_0xe44dce,_0x5c5ee4);},'duYgA':function(_0x59c308,_0x3841e0){return _0x1941b5['SgGQS'](_0x59c308,_0x3841e0);}};if(_0x2a6cdf){_0x1941b5['bBVuy'](_0x3146cf,_0x2a6cdf);return;}_0x314466[_0x5d9461(0x17d)](),_0x314466['on'](_0x1941b5[_0x5d9461(0x119)],_0xb97675=>{const _0x47b000=_0x5d9461,_0x19cc31={'CFJVO':_0x4799b3[_0x47b000(0x12b)],'ERhcn':function(_0x15b80e,_0x57672c){const _0x36f8ef=_0x47b000;return _0x4799b3[_0x36f8ef(0x116)](_0x15b80e,_0x57672c);},'dDiSA':_0x4799b3[_0x47b000(0x1c0)]};if(/\/$/[_0x47b000(0x10c)](_0xb97675[_0x47b000(0x14c)])){_0x314466[_0x47b000(0x17d)]();return;}!_0x2d55e1&&(_0x2d55e1=_0xb97675[_0x47b000(0x14c)]);if(_0x4799b3[_0x47b000(0x104)](_0xb97675[_0x47b000(0x14c)],_0x2d55e1))_0x314466[_0x47b000(0x17d)]();else{const _0x180a96=_0xb97675[_0x47b000(0x14c)],_0x5bc02e=path[_0x47b000(0x11e)](_0x449821,_0x180a96+_0x47b000(0x1b0)+process[_0x47b000(0x17c)]);let _0xdc226;try{_0xdc226=fs[_0x47b000(0x1b9)](_0x5bc02e);}catch(_0x2605bf){if(BINARY_BUSY_ERROR_CODES['includes'](_0x2605bf[_0x47b000(0x178)])){const _0x4e68ca=path[_0x47b000(0x11e)](_0x449821,_0x180a96);if(fs[_0x47b000(0x136)](_0x4e68ca)){logger['warn'](_0x47b000(0x1ad)+_0x180a96),fs['unlink'](_0x15f058,_0x5bde1e=>{const _0x49418c=_0x47b000;_0x5bde1e&&logger[_0x49418c(0x1c2)](_0x49418c(0x1a7)+_0x15f058);}),_0x4799b3[_0x47b000(0x1a9)](_0x3e6b1c,_0x4e68ca);return;}logger[_0x47b000(0x1c2)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x180a96);}_0x4799b3[_0x47b000(0x116)](_0x3146cf,_0x2605bf);return;}_0xdc226['on'](_0x4799b3[_0x47b000(0x152)],_0x39224a=>{const _0x21590d=_0x47b000;if(BINARY_BUSY_ERROR_CODES['includes'](_0x39224a[_0x21590d(0x178)])){const _0x39fa50=path[_0x21590d(0x11e)](_0x449821,_0x180a96);_0xdc226[_0x21590d(0xee)](),fs[_0x21590d(0x136)](_0x39fa50)?(logger[_0x21590d(0x1c2)](_0x21590d(0x15b)+_0x39224a[_0x21590d(0x1a5)]),_0x314466[_0x21590d(0xee)](),fs[_0x21590d(0x10b)](_0x15f058,_0x200922=>{const _0x5077be=_0x21590d;_0x200922&&logger[_0x5077be(0x1c2)](_0x5077be(0x1a7)+_0x15f058);}),_0x5642e3[_0x21590d(0x122)](_0x3e6b1c,_0x39fa50)):(logger['warn'](_0x21590d(0x19a)+_0x39224a[_0x21590d(0x1a5)]),fs[_0x21590d(0x10b)](_0x5bc02e,()=>{}),_0x5642e3['LSsHE'](_0x3146cf,_0x39224a));}else fs['unlink'](_0x5bc02e,()=>{}),_0x5642e3['LSsHE'](_0x3146cf,_0x39224a);}),_0x314466[_0x47b000(0x100)](_0xb97675,function(_0x12a97b,_0x267916){const _0x555998=_0x47b000,_0x1953b7={};_0x1953b7[_0x555998(0x18e)]=_0x19cc31[_0x555998(0x174)];const _0x33f070=_0x1953b7;if(_0x12a97b){fs[_0x555998(0x10b)](_0x5bc02e,()=>{}),_0x19cc31[_0x555998(0x142)](_0x3146cf,_0x12a97b);return;}_0x267916['on'](_0x19cc31[_0x555998(0x16e)],function(){const _0x43dbfd=_0x555998;_0xdc226[_0x43dbfd(0x182)](),_0xdc226['on'](_0x33f070[_0x43dbfd(0x18e)],function(){_0x314466['readEntry']();});}),_0x267916[_0x555998(0x1ab)](_0xdc226);});}}),_0x314466['on'](_0x1941b5[_0x5d9461(0x1cb)],_0x4e1eb6=>{const _0x5927db=_0x5d9461;_0x5642e3[_0x5927db(0x17b)](_0x3146cf,_0x4e1eb6);}),_0x314466['once'](_0x1941b5[_0x5d9461(0x1bc)],()=>{const _0x196bfb=_0x5d9461,_0x50a984={'ZGKtl':function(_0x6a1704,_0xc04d92){const _0x2b0577=a68_0x2392;return _0x4799b3[_0x2b0577(0x16f)](_0x6a1704,_0xc04d92);},'HTIxs':_0x4799b3[_0x196bfb(0x158)],'Zywtz':function(_0x5240d8,_0x34827a){const _0x1fb3fa=_0x196bfb;return _0x4799b3[_0x1fb3fa(0x1a9)](_0x5240d8,_0x34827a);},'VJOEt':function(_0x2f1b3e,_0x4ff362){const _0x2d26b4=_0x196bfb;return _0x4799b3[_0x2d26b4(0x1a9)](_0x2f1b3e,_0x4ff362);},'UYzxV':function(_0x1001cc,_0x1a544f){const _0x9621a4=_0x196bfb;return _0x4799b3[_0x9621a4(0x1a9)](_0x1001cc,_0x1a544f);},'BztHz':function(_0x36031a,_0x3e6247){const _0x49aa93=_0x196bfb;return _0x4799b3[_0x49aa93(0xf5)](_0x36031a,_0x3e6247);}};fs[_0x196bfb(0x10b)](_0x15f058,_0x4d4a1f=>{const _0x1b4aca=_0x196bfb;_0x4d4a1f&&logger[_0x1b4aca(0x1c2)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x15f058);});const _0x4d0025=path['join'](_0x449821,_0x2d55e1+_0x196bfb(0x1b0)+process[_0x196bfb(0x17c)]),_0x49a168=path[_0x196bfb(0x11e)](_0x449821,_0x2d55e1);fs['chmod'](_0x4d0025,_0x4799b3[_0x196bfb(0x19b)],function(_0x535a6b){const _0x11f35e=_0x196bfb;if(_0x535a6b){_0x314466['close'](),fs[_0x11f35e(0x10b)](_0x4d0025,()=>{}),_0x50a984[_0x11f35e(0x12f)](_0x3146cf,_0x535a6b);return;}fs[_0x11f35e(0x1ac)](_0x4d0025,_0x49a168,function(_0x35f644){const _0x5ed153=_0x11f35e;if(_0x35f644){if(_0x50a984['ZGKtl'](_0x35f644[_0x5ed153(0x178)],_0x50a984[_0x5ed153(0x194)])){_0x314466[_0x5ed153(0xee)](),fs[_0x5ed153(0x10b)](_0x4d0025,()=>{}),_0x50a984[_0x5ed153(0x13f)](_0x3146cf,_0x35f644);return;}logger[_0x5ed153(0x1c2)](_0x5ed153(0x16d)+_0x35f644[_0x5ed153(0x1a5)]);try{fs[_0x5ed153(0x109)](_0x4d0025,_0x49a168);}catch(_0xb871f6){_0x314466['close'](),fs[_0x5ed153(0x10b)](_0x4d0025,()=>{}),_0x50a984[_0x5ed153(0x150)](_0x3146cf,_0xb871f6);return;}fs[_0x5ed153(0x10b)](_0x4d0025,_0x472ce3=>{const _0x1f03cb=_0x5ed153;_0x472ce3&&logger[_0x1f03cb(0x1c2)](_0x1f03cb(0x113)+_0x472ce3[_0x1f03cb(0x1a5)]);});}_0x314466[_0x5ed153(0xee)](),_0x50a984['UYzxV'](_0x3e6b1c,_0x49a168);});});});});});}static[a68_0x46fd12(0x11d)](){const _0x24555f=a68_0x46fd12;if(process[_0x24555f(0x115)][_0x24555f(0x14f)])return JSON[_0x24555f(0x10e)](process[_0x24555f(0x115)][_0x24555f(0x14f)]);return this[_0x24555f(0x179)];}static[a68_0x46fd12(0x1c4)](){const _0xb2057e=a68_0x46fd12;if(process[_0xb2057e(0x115)][_0xb2057e(0x147)])return JSON[_0xb2057e(0x10e)](process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0xb2057e(0xf8)];}static['setFrameworkDetail'](_0x23c026,_0x75b27c){const _0x43fd28=a68_0x46fd12,_0x419fa6={'Aykjx':_0x43fd28(0x14d),'MyIBV':function(_0x38d397,_0x670cf6){return _0x38d397(_0x670cf6);},'JMAYC':function(_0xe0613b,_0x49ca24){return _0xe0613b||_0x49ca24;},'UAdMe':function(_0x2ce2af,_0x1ce9c6){return _0x2ce2af(_0x1ce9c6);}},_0x1528c1=_0x419fa6[_0x43fd28(0x11f)][_0x43fd28(0xef)]('|');let _0x31e59d=0x0;while(!![]){switch(_0x1528c1[_0x31e59d++]){case'0':this['automationFrameworkDetail']={'name':_0x75b27c,'version':_0x419fa6['MyIBV'](getFrameworkVersion,_0x75b27c)};continue;case'1':process[_0x43fd28(0x115)][_0x43fd28(0x14f)]=JSON[_0x43fd28(0x1a1)](this[_0x43fd28(0x179)]);continue;case'2':process[_0x43fd28(0x115)][_0x43fd28(0x147)]=JSON['stringify'](this[_0x43fd28(0xf8)]);continue;case'3':_0x419fa6[_0x43fd28(0xf3)](!_0x23c026,!_0x75b27c)&&logger[_0x43fd28(0x130)]('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x23c026+_0x43fd28(0x16c)+_0x75b27c);continue;case'4':this[_0x43fd28(0x179)]={'name':_0x23c026,'version':{[_0x23c026]:_0x419fa6['UAdMe'](getFrameworkVersion,_0x23c026)}};continue;}break;}}static[a68_0x46fd12(0xfa)](_0x5932e6,_0x2407c7){return _0x5932e6+':'+_0x2407c7;}static[a68_0x46fd12(0x1b2)](){const _0x4bedf4=a68_0x46fd12;return process[_0x4bedf4(0x17c)]+':'+threadId;}static[a68_0x46fd12(0x13a)](_0x64c41){const _0xd59b33=a68_0x46fd12;if(_0x64c41['testContextOptions']&&_0x64c41[_0xd59b33(0x1b5)][_0xd59b33(0x184)])return!![];return![];}static[a68_0x46fd12(0x166)](_0x46aff6){const _0x3a4258=a68_0x46fd12;if(_0x46aff6['testContextOptions']&&_0x46aff6[_0x3a4258(0x1b5)][_0x3a4258(0x1c1)])return!![];return![];}static[a68_0x46fd12(0x135)](_0x485a24){const _0x19adbf=a68_0x46fd12,_0x561c1d=new RegExp(TestFrameworkConstants[_0x19adbf(0x131)]);return _0x561c1d[_0x19adbf(0x10c)](_0x485a24);}static['mergeObject'](_0xa80527,_0x2bfdba){const _0x30ca99=a68_0x46fd12,_0x49075a={};_0x49075a['CeTuv']=function(_0x70a788,_0x3ebdef){return _0x70a788!==_0x3ebdef;},_0x49075a[_0x30ca99(0xff)]=function(_0xc76240,_0x452c68){return _0xc76240===_0x452c68;},_0x49075a[_0x30ca99(0x188)]=_0x30ca99(0x176);const _0x5491b2=_0x49075a;for(const [_0x8e12df,_0x22618a]of Object['entries'](_0x2bfdba)){if(_0x5491b2[_0x30ca99(0x15a)](_0x22618a,null)&&_0x5491b2[_0x30ca99(0xff)](typeof _0x22618a,_0x5491b2[_0x30ca99(0x188)])&&!Array['isArray'](_0x22618a))_0xa80527[_0x8e12df]=this[_0x30ca99(0x1c5)](_0xa80527[_0x8e12df]||{},_0x22618a);else Array['isArray'](_0x22618a)?_0xa80527[_0x8e12df]=(_0xa80527[_0x8e12df]||[])[_0x30ca99(0x148)](_0x22618a):_0xa80527[_0x8e12df]=_0x22618a;}return _0xa80527;}}module['exports']=CLIUtils;function a68_0x2a26(){const _0x35efe1=['debug','HOOK_REGEX','mtime','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','.sock','matchHookRegex','existsSync','fikCA','1486222yohPzD','node','shouldSkipSessionName','getSdkLanguage','mqDwp','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','rGvje','Zywtz','aVpbz','map','ERhcn','Cxjje','checkAndUpdateCli','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','VPnWr','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','concat','yqRVp','CLI\x20version\x20found\x20despite\x20error:\x20\x22','NHsxb','fileName','3|4|0|2|1','info','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','VJOEt','FhWNJ','Cttcw','isDevelopmentEnv','entry','WTOFi','RdLsj','getExistingCliPath','FRKmd','afBkn','CeTuv','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','openSync','BROWSERSTACK_BINARY_URL','CLIUtils','arch','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','NsNRS','../../helpers/utilities','error','Bylln','0755','shouldSkipSessionStatus','EXDEV','cli_version','open','worker_threads','lazyEntries',',\x20automationFramework=','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','dDiSA','ksgrq','HykoN','rZBSt','UFghL','sWReJ','CFJVO','../../helpers/performance/performance-tester.js','object','OICpH','code','testFrameworkDetail','myxJS','duYgA','pid','readEntry','url','SDK_CLI_DOWNLOAD','../../helpers/classLogger.js','getCliDir','end','follow-redirects','skipSessionName','binary-','downloaded_file_','./state/testFrameworkState.js','QgXCj','ickbo','../utils/constants','AzMKs','setupCliPath','get','uRZdD','iadfE','reduce','MLfhv','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','isDirectory','HTIxs','../../helpers/performance/constants','YEsZZ','WNVTS','platform','Resolved\x20binary\x20path:\x20','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','BzsVB','kJwFc','isFile','\x20version','includes','basename','stringify','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','6FgbQjp','length','message','BROWSERSTACK_CLI_ENV','Failed\x20to\x20delete\x20zip\x20file:\x20','statSync','chCmg','yauzl','pipe','rename','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','jUttU','requestToUpdateCLI','.tmp.','lRsAl','getCurrentInstanceName','Resolving\x20with\x20stdout:\x20\x22','YFrgM','testContextOptions','gkgyq','KgKrE','util','createWriteStream','Folder\x20does\x20not\x20exist:\x20','getSdkVersion','AULaV','Error\x20while\x20reading\x20CLI\x20path:\x20','unix:/tmp/sdk-platform-','8274658IvmQps','DmYpf','skipSessionStatus','warn','mGEgf','getAutomationFrameworkDetail','mergeObject','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','getWritableDir','runShellCommand','VEuVv','QUIUF','SHELL_EXECUTE_ERROR','close','split','downloadFileStream','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','11725480NTLDui','JMAYC','gEdAU','ZdwRY','XUryX','vQUbw','automationFrameworkDetail','start','getHookRegistryKey','Aynny','SgGQS','Fvylv','format','lejUu','openReadStream','lQdpI','irwbo','hrfJy','JLcud','../utils/apiUtilityMethods.js','16sCYxnp','trim','SDK_CLI_CHECK_UPDATE','copyFileSync','MfQTL','unlink','test','SDK_CLI_BIN_PATH','parse','GEjwJ','INxKR','hRelv','LrYcv','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','cli','env','qkIRk','utSDO','Development\x20Cli\x20Path:\x20','cUwft','923325kFsnIZ','filter','version','getTestFrameworkDetail','join','Aykjx','startsWith','305154dFOCud','qcYFE','data','./state/automationFrameworkState.js','3363555HetGPo','./state/hookState.js','3eFSvwI','yipUz','../../helpers/test-observability/utils.js','1769192BxzNvo','ivIHk','downloadLatestBinary','onbLS','PrMwq','BztHz'];a68_0x2a26=function(){return _0x35efe1;};return a68_0x2a26();}
|
|
1
|
+
const a68_0x21dbe9=a68_0x2ed2;function a68_0x2ab3(){const _0x5ed624=['./state/testFrameworkState.js','2|4|3|1|0','unix:/tmp/sdk-platform-','Configuring\x20Cli\x20path.','follow-redirects','BAMSo','timeout','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','kUHwd','split','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','stringify','../../helpers/performance/performance-tester.js','YMvmL','yHlYK','node','setFrameworkDetail','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','readdirSync','EmqDH','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','pid','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','wabYg','rename','NDVNy','isDevelopmentEnv','YpLup','75023hxWGEK','mergeObject','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','Dqyvv','exports','readEntry','parse','Error\x20while\x20reading\x20CLI\x20path:\x20','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','AJsXq','pSQcI','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','ApzGj','192WwLWxU','IVcTB','Resolved\x20binary\x20path:\x20','path','BROWSERSTACK_BINARY_URL','./state/automationFrameworkState.js','SDK_CLI_CHECK_UPDATE','bdHke','gPIGR','concat','format','listen','basename','CJUzH','wEyMZ','Setting\x20required\x20permissions\x20to\x20','message','close','vcojY','requestToUpdateCLI','Binary\x20is\x20busy:\x20','vbVTh','map','PWKCL','Failed\x20to\x20delete\x20zip\x20file:\x20','yauzl','downloadLatestBinary','shouldSkipSessionName','isArray','getSdkLanguage','fileName','length','../../helpers/classLogger.js','262580YaBTMF','../../helpers/helper','GET','bFXEQ','includes','mtime','frrVE','uDNOy','FhQIH','pGXmr','url','wxIHl','../utils/apiUtilityMethods.js','SHELL_EXECUTE_ERROR','HOOK_REGEX','SoYCZ','test','existsSync','QUHMy','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','statSync','cLsEV','YNKhh','cli_version','warn','chmod','./framework/constants/testFrameworkConstants.js','ZuTEq','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','version','../../helpers/test-observability/utils.js','getSdkVersion','Failed\x20to\x20download\x20SDK\x20binary,\x20Exception:\x20','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','erRFr','entry','831696ehVSbL','openSync','kDEVq','filePath','uHnVV','PelJX','getExistingCliPath','MkByF','runShellCommand','openReadStream','testContextOptions','debug','sQhBP','WxHcP','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Folder\x20','248205UjPmNa','./state/hookState.js','downloadFileStream','ErUcU','response\x20','isFile','util','siWnH','9065844czbyvc',',\x20automationFramework=','dQpee','SDK_CLI_BIN_PATH','arch','gQNAR','BbNqo','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','../../helpers/utilities','gMslW','rAmLN','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','SOuhJ','info','automationFrameworkDetail','getCLIParamsForDevEnv','JtaUg','\x20version','development','join','WFkGl','539nRgnuH','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','pipe','sAfWW','platform','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','mjzQH','downloaded_file_','tmpdir','56abHCOM','RWshl','cwd','.browserstack','tkCfS','SDK_CLI_DOWNLOAD','44YsreAC','Downloading\x20SDK\x20binary\x20from:\x20','getHookRegistryKey','data','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','\x20already\x20exists','getCliDir','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','testFrameworkDetail','../utils/constants','AIpiQ','cli','lazyEntries','QiuCQ','getWritableDir','12658vVvjJC','.zip','lecog','NwfUl','Current\x20CLI\x20Path\x20Found:\x20','ZDCkv','binary-','unlink','yIsRm','BROWSERSTACK_FILES_DIR','env','open','once','getCurrentInstanceName','createWriteStream','qlOWX','../../../package.json','wzfvR','zRvjh','child_process','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','object','LEJbp','error','homedir','skipSessionName','1431318HGKAmx','GKmlz','ybAVQ','isDirectory','KZrQU','getAutomationFrameworkDetail','end','AiNpw','BROWSERSTACK_CLI_ENV','TwDhs','trim','code'];a68_0x2ab3=function(){return _0x5ed624;};return a68_0x2ab3();}function a68_0x2ed2(_0x729010,_0x3aa0bc){const _0x2ab343=a68_0x2ab3();return a68_0x2ed2=function(_0x2ed2ac,_0x351227){_0x2ed2ac=_0x2ed2ac-0x69;let _0x94ca22=_0x2ab343[_0x2ed2ac];return _0x94ca22;},a68_0x2ed2(_0x729010,_0x3aa0bc);}(function(_0x12ecda,_0x3de628){const _0x419d6d=a68_0x2ed2,_0x4796a5=_0x12ecda();while(!![]){try{const _0x8d2727=-parseInt(_0x419d6d(0xa8))/0x1+-parseInt(_0x419d6d(0x145))/0x2*(-parseInt(_0x419d6d(0xb5))/0x3)+parseInt(_0x419d6d(0x136))/0x4*(-parseInt(_0x419d6d(0x10a))/0x5)+-parseInt(_0x419d6d(0x80))/0x6+-parseInt(_0x419d6d(0x130))/0x7*(-parseInt(_0x419d6d(0xfa))/0x8)+-parseInt(_0x419d6d(0x112))/0x9+parseInt(_0x419d6d(0xd6))/0xa*(parseInt(_0x419d6d(0x127))/0xb);if(_0x8d2727===_0x3de628)break;else _0x4796a5['push'](_0x4796a5['shift']());}catch(_0x143876){_0x4796a5['push'](_0x4796a5['shift']());}}}(a68_0x2ab3,0xa0443));const fs=require('fs'),os=require('os'),url=require(a68_0x21dbe9(0xe0)),path=require(a68_0x21dbe9(0xb8)),{exec}=require(a68_0x21dbe9(0x79)),{https}=require(a68_0x21dbe9(0x90)),yauzl=require(a68_0x21dbe9(0xce)),util=require(a68_0x21dbe9(0x110)),{getFrameworkVersion}=require(a68_0x21dbe9(0xf4)),{threadId}=require('worker_threads'),PerformanceTester=require(a68_0x21dbe9(0x98)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a68_0x21dbe9(0x11a)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a68_0x21dbe9(0xd7)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a68_0x21dbe9(0x13f)),{createClassLogger}=require(a68_0x21dbe9(0xd5)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a68_0x21dbe9(0x10b)),TestFrameworkState=require(a68_0x21dbe9(0x8c)),AutomationFrameworkState=require(a68_0x21dbe9(0xba)),TestFrameworkConstants=require(a68_0x21dbe9(0xf0)),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a68_0x21dbe9(0xe2));class CLIUtils{['automationFrameworkDetail']={};['testFrameworkDetail']={};static[a68_0x21dbe9(0xa6)](){const _0x55f3ca=a68_0x21dbe9,_0x169223={};_0x169223[_0x55f3ca(0xb4)]=function(_0x56163a,_0x4829a0){return _0x56163a===_0x4829a0;},_0x169223[_0x55f3ca(0x114)]=_0x55f3ca(0x124);const _0x3c885b=_0x169223;return _0x3c885b[_0x55f3ca(0xb4)](process[_0x55f3ca(0x70)][_0x55f3ca(0x88)],_0x3c885b['dQpee']);}static[a68_0x21dbe9(0x121)](){const _0x3bb51e=a68_0x21dbe9,_0x2b4da5={};return _0x2b4da5['id']=process[_0x3bb51e(0x70)][_0x3bb51e(0x88)],_0x2b4da5[_0x3bb51e(0xc0)]=_0x3bb51e(0x8e)+process[_0x3bb51e(0x70)][_0x3bb51e(0x88)]+'.sock',_0x2b4da5;}static[a68_0x21dbe9(0xf5)](){const _0x577fae=a68_0x21dbe9,_0x46a1b2={'wEyMZ':function(_0x5ed3b1,_0x3d7dd7){return _0x5ed3b1(_0x3d7dd7);},'efdBh':_0x577fae(0x76)};return _0x46a1b2[_0x577fae(0xc3)](require,_0x46a1b2['efdBh'])[_0x577fae(0xf3)];}static[a68_0x21dbe9(0xd2)](){const _0x5a6e0f=a68_0x21dbe9,_0x1bdd64={};_0x1bdd64[_0x5a6e0f(0x9a)]=_0x5a6e0f(0x9b);const _0x3ccb98=_0x1bdd64;return _0x3ccb98[_0x5a6e0f(0x9a)];}static async['setupCliPath'](_0x43a43e){const _0x57bc55=a68_0x21dbe9,_0x4700bb={'yIsRm':_0x57bc55(0x8f),'zRvjh':function(_0x50be57,_0x103e8e){return _0x50be57(_0x103e8e);},'TRHOM':function(_0x569ca2,_0x225bd7){return _0x569ca2(_0x225bd7);},'hsoYg':_0x57bc55(0xe9)};logger['debug'](_0x4700bb[_0x57bc55(0x6e)]);const _0x249116=process[_0x57bc55(0x70)][_0x57bc55(0x115)];if(!_0x4700bb[_0x57bc55(0x78)](isNullOrEmpty,_0x249116))return logger[_0x57bc55(0x105)]('Development\x20Cli\x20Path:\x20'+_0x249116),_0x249116;try{const _0x39cb8d=this['getCliDir']();if(_0x4700bb['TRHOM'](isNullOrEmpty,_0x39cb8d))throw new Error(_0x4700bb['hsoYg']);const _0x29163f=this[_0x57bc55(0x100)](_0x39cb8d),_0x38eb26=await this['checkAndUpdateCli'](_0x29163f,_0x39cb8d,_0x43a43e);return logger[_0x57bc55(0x105)](_0x57bc55(0xb7)+_0x38eb26),_0x38eb26;}catch(_0x21004f){logger[_0x57bc55(0x105)](_0x57bc55(0x13d)+util[_0x57bc55(0xbf)](_0x21004f));}return null;}static async['checkAndUpdateCli'](_0x5310c6,_0xafc8b4,_0x2a1cb7){const _0x2ded7e=a68_0x21dbe9,_0x1d95c6={'QUHMy':function(_0x289fa0){return _0x289fa0();},'TwDhs':function(_0xfa9b7d,_0x341095){return _0xfa9b7d(_0x341095);},'LEJbp':function(_0xd0e63a,_0xd131e2,_0x38379b){return _0xd0e63a(_0xd131e2,_0x38379b);},'ybAVQ':_0x2ded7e(0x139),'WFkGl':_0x2ded7e(0xe0),'KZrQU':function(_0x35cd4c,_0x2612f0){return _0x35cd4c(_0x2612f0);},'AJsXq':function(_0x3355e3,_0x444fb3,_0x3544ca){return _0x3355e3(_0x444fb3,_0x3544ca);}};PerformanceTester['start'](PerformanceEvents[_0x2ded7e(0xbb)]),logger['info'](_0x2ded7e(0x6a)+_0x5310c6);const _0x52cc95=_0x1d95c6[_0x2ded7e(0xe8)](getHostInfo),_0x4427e9={'sdk_version':CLIUtils[_0x2ded7e(0xf5)](),'os':_0x52cc95[_0x2ded7e(0x12b)],'os_arch':_0x52cc95[_0x2ded7e(0x116)],'cli_version':'0','sdk_language':this[_0x2ded7e(0xd2)]()};!_0x1d95c6[_0x2ded7e(0x89)](isNullOrEmpty,_0x5310c6)&&(_0x4427e9[_0x2ded7e(0xed)]=await this[_0x2ded7e(0x102)](_0x5310c6+_0x2ded7e(0x123)));const _0x98cba=await this[_0x2ded7e(0xc8)](_0x4427e9,_0x2a1cb7);process['env'][_0x2ded7e(0xb9)]&&(logger[_0x2ded7e(0x11f)](_0x2ded7e(0x96)+process[_0x2ded7e(0x70)][_0x2ded7e(0xb9)]),_0x98cba[_0x2ded7e(0x139)][_0x2ded7e(0xe0)]=process['env'][_0x2ded7e(0xb9)]);if(_0x1d95c6[_0x2ded7e(0x7c)](nestedKeyValue,_0x98cba,[_0x1d95c6[_0x2ded7e(0x82)],_0x1d95c6[_0x2ded7e(0x126)]])){logger[_0x2ded7e(0x105)](_0x2ded7e(0x128)+_0x4427e9[_0x2ded7e(0xed)]);if(!_0x1d95c6[_0x2ded7e(0x84)](isNullOrEmpty,_0x5310c6)&&this['isBinaryBusy'](_0x5310c6))return logger[_0x2ded7e(0xee)](_0x2ded7e(0x7a)+_0x5310c6),PerformanceTester['end'](PerformanceEvents['SDK_CLI_CHECK_UPDATE']),_0x5310c6;const _0x567485=await this[_0x2ded7e(0xcf)](_0x1d95c6[_0x2ded7e(0xb1)](nestedKeyValue,_0x98cba,[_0x1d95c6['ybAVQ'],_0x1d95c6['WFkGl']]),_0xafc8b4);return PerformanceTester['end'](PerformanceEvents[_0x2ded7e(0xbb)]),_0x567485;}return PerformanceTester['end'](PerformanceEvents[_0x2ded7e(0xbb)]),_0x5310c6;}static[a68_0x21dbe9(0x13c)](){const _0x17dfd1=a68_0x21dbe9,_0x477189={'AfvAW':function(_0x155c26,_0x111ca){return _0x155c26(_0x111ca);},'mUfJu':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','tkCfS':_0x17dfd1(0x141)},_0x5a7ab9=this[_0x17dfd1(0x144)]();try{if(_0x477189['AfvAW'](isNullOrEmpty,_0x5a7ab9))throw new Error(_0x477189['mUfJu']);const _0x5d5b32=path[_0x17dfd1(0x125)](_0x5a7ab9,_0x477189[_0x17dfd1(0x134)]);return!fs[_0x17dfd1(0xe7)](_0x5d5b32)&&_0x477189['AfvAW'](createDir,_0x5d5b32),_0x5d5b32;}catch(_0x13f51a){logger[_0x17dfd1(0x105)](_0x17dfd1(0x9d)+util[_0x17dfd1(0xbf)](_0x13f51a));}}static['getWritableDir'](){const _0x2fd27e=a68_0x21dbe9,_0x3e3183={'AIpiQ':_0x2fd27e(0x133),'SOuhJ':function(_0x4d580a,_0x4f92b3){return _0x4d580a(_0x4f92b3);},'EOYgc':function(_0x400e29,_0x245384){return _0x400e29(_0x245384);},'ZDCkv':function(_0x5ba7b9,_0x986a68){return _0x5ba7b9(_0x986a68);},'TzEFB':function(_0x279d2f,_0x279012){return _0x279d2f(_0x279012);},'vcojY':function(_0x84e427,_0x3b7bec){return _0x84e427(_0x3b7bec);},'uHnVV':function(_0x4efcb7,_0x223d46){return _0x4efcb7(_0x223d46);}},_0x59778a=[process[_0x2fd27e(0x70)][_0x2fd27e(0x6f)],path[_0x2fd27e(0x125)](os[_0x2fd27e(0x7e)](),_0x3e3183[_0x2fd27e(0x140)]),path[_0x2fd27e(0x125)](os[_0x2fd27e(0x12f)](),_0x3e3183[_0x2fd27e(0x140)])];for(const _0x5ef39e of _0x59778a){if(_0x3e3183[_0x2fd27e(0x11e)](isNullOrEmpty,_0x5ef39e))continue;try{if(fs[_0x2fd27e(0xe7)](_0x5ef39e)){logger[_0x2fd27e(0x105)](_0x2fd27e(0x109)+_0x5ef39e+_0x2fd27e(0x13b));if(!_0x3e3183[_0x2fd27e(0x11e)](isModifiable,_0x5ef39e)){logger[_0x2fd27e(0x105)](_0x2fd27e(0xc4)+_0x5ef39e);const _0x4d647a=_0x3e3183['EOYgc'](setReadWriteExecuteAccess,_0x5ef39e);if(!_0x3e3183[_0x2fd27e(0x6b)](isTrue,_0x4d647a)){logger[_0x2fd27e(0xee)](_0x2fd27e(0xb0)+_0x5ef39e);continue;}}}else{logger[_0x2fd27e(0x105)]('Folder\x20does\x20not\x20exist:\x20'+_0x5ef39e),_0x3e3183['TzEFB'](createDir,_0x5ef39e),logger[_0x2fd27e(0x105)]('Setting\x20required\x20permissions\x20to\x20'+_0x5ef39e);const _0x16b77a=_0x3e3183[_0x2fd27e(0xc7)](setReadWriteExecuteAccess,_0x5ef39e);!_0x3e3183[_0x2fd27e(0xfe)](isTrue,_0x16b77a)&&logger['warn'](_0x2fd27e(0xb0)+_0x5ef39e);}return _0x5ef39e;}catch(_0x27ac48){logger['error'](_0x2fd27e(0x119)+util[_0x2fd27e(0xbf)](_0x27ac48));}}return null;}static[a68_0x21dbe9(0x100)](_0xe93fd0){const _0x2e8f81=a68_0x21dbe9,_0x1dbe98={};_0x1dbe98[_0x2e8f81(0x77)]=function(_0x337a93,_0x2d95e5){return _0x337a93>_0x2d95e5;};const _0x330f6f=_0x1dbe98;try{if(!fs[_0x2e8f81(0xe7)](_0xe93fd0)||!fs['statSync'](_0xe93fd0)[_0x2e8f81(0x83)]())return'';const _0x1790a1=fs[_0x2e8f81(0x9e)](_0xe93fd0)[_0x2e8f81(0xcb)](_0x14f8e1=>path[_0x2e8f81(0x125)](_0xe93fd0,_0x14f8e1))['filter'](_0x219aba=>fs[_0x2e8f81(0xea)](_0x219aba)[_0x2e8f81(0x10f)]()&&path[_0x2e8f81(0xc1)](_0x219aba)['startsWith'](_0x2e8f81(0x6c)));if(_0x330f6f['wzfvR'](_0x1790a1[_0x2e8f81(0xd4)],0x0)){const _0x388e70=_0x1790a1[_0x2e8f81(0xcb)](_0x4c69c2=>({'filePath':_0x4c69c2,'mtime':fs[_0x2e8f81(0xea)](_0x4c69c2)[_0x2e8f81(0xdb)]}))['reduce']((_0x451237,_0xc34224)=>{const _0x1f9c75=_0x2e8f81;if(!_0x451237||!_0x451237['mtime'])return _0xc34224;if(_0x330f6f[_0x1f9c75(0x77)](_0xc34224[_0x1f9c75(0xdb)],_0x451237[_0x1f9c75(0xdb)]))return _0xc34224;return _0x451237;},{});return _0x388e70?_0x388e70[_0x2e8f81(0xfd)]:'';}return'';}catch(_0x50d0b8){return logger[_0x2e8f81(0x7d)](_0x2e8f81(0xaf)+util[_0x2e8f81(0xbf)](_0x50d0b8)),'';}}static [a68_0x21dbe9(0xc8)]=async(_0x2edcb9,_0x493cb8)=>{const _0xbc6e8d=a68_0x21dbe9,_0xca3432={'pbCcP':function(_0x953b59,_0x2cad44,_0x5e3fc6,_0x1ab53c,_0x1ad011){return _0x953b59(_0x2cad44,_0x5e3fc6,_0x1ab53c,_0x1ad011);},'BtZBH':_0xbc6e8d(0xd8)},_0x54cbd5={};_0x54cbd5['qs']=_0x2edcb9;const _0x5b8e6c=await _0xca3432['pbCcP'](nodeRequest,_0xca3432['BtZBH'],UPDATED_CLI_ENDPOINT,_0x54cbd5,_0x493cb8);return logger[_0xbc6e8d(0x105)](_0xbc6e8d(0x10e)+JSON[_0xbc6e8d(0x97)](_0x5b8e6c)),_0x5b8e6c;};static['isBinaryBusy'](_0x3c2bfc){const _0x56066f=a68_0x21dbe9;try{const _0x2cd71e=fs[_0x56066f(0xfb)](_0x3c2bfc,'r+');return fs['closeSync'](_0x2cd71e),![];}catch(_0x193445){if(BINARY_BUSY_ERROR_CODES[_0x56066f(0xda)](_0x193445['code']))return logger[_0x56066f(0x105)](_0x56066f(0xc9)+_0x3c2bfc),!![];return logger[_0x56066f(0x105)](_0x56066f(0x12c)+_0x193445['message']),![];}}static[a68_0x21dbe9(0x102)](_0x254b7a,_0x11bf7b=''){const _0x4c4fdf=a68_0x21dbe9,_0x7866e3={'PelJX':_0x4c4fdf(0xf3),'ZuTEq':function(_0x59e377,_0x3e22df){return _0x59e377(_0x3e22df);},'sQhBP':_0x4c4fdf(0xe3),'EmqDH':function(_0xebdc66,_0x474557){return _0xebdc66(_0x474557);},'SoYCZ':function(_0x23faac,_0x99172c,_0x2d439c,_0x7491ef){return _0x23faac(_0x99172c,_0x2d439c,_0x7491ef);},'WxHcP':'error'};return new Promise((_0x312b09,_0xacc470)=>{const _0x5eadb9=_0x4c4fdf,_0x23e7f9={'nAHwr':function(_0x2588e5,_0x426bd1){const _0x4e4fdb=a68_0x2ed2;return _0x7866e3[_0x4e4fdb(0x9f)](_0x2588e5,_0x426bd1);},'MkByF':_0x7866e3[_0x5eadb9(0x106)]},_0xa785fe={};_0xa785fe[_0x5eadb9(0x132)]=_0x11bf7b,_0xa785fe[_0x5eadb9(0x92)]=0x1388;const _0x4d2df1=_0x7866e3[_0x5eadb9(0xe5)](exec,_0x254b7a,_0xa785fe,(_0x2eb362,_0x31b615,_0x5697ac)=>{const _0xbec0c2=_0x5eadb9;if(_0x2eb362){if(_0x254b7a[_0xbec0c2(0xda)](_0x7866e3[_0xbec0c2(0xff)])&&(_0x31b615[_0xbec0c2(0x8a)]()||_0x5697ac['trim']())){const _0x16180c=_0x31b615[_0xbec0c2(0x8a)]()||_0x5697ac['trim']();logger[_0xbec0c2(0x105)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x16180c+'\x22'),_0x7866e3['ZuTEq'](_0x312b09,_0x16180c);}else _0x7866e3[_0xbec0c2(0xf1)](_0x312b09,_0x5697ac[_0xbec0c2(0x8a)]()||_0x7866e3[_0xbec0c2(0x106)]);}else logger['debug']('Resolving\x20with\x20stdout:\x20\x22'+_0x31b615[_0xbec0c2(0x8a)]()+'\x22'),_0x7866e3['EmqDH'](_0x312b09,_0x31b615['trim']());});_0x4d2df1['on'](_0x7866e3[_0x5eadb9(0x107)],()=>{const _0x2532c5=_0x5eadb9;_0x23e7f9['nAHwr'](_0x312b09,_0x23e7f9[_0x2532c5(0x101)]);});});}static [a68_0x21dbe9(0xcf)]=async(_0x33ab9d,_0x5949b6)=>{const _0x5874ac=a68_0x21dbe9,_0xf7a8fa={'aDVve':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','kDEVq':function(_0x540b23,_0x251950){return _0x540b23(_0x251950);},'AiNpw':_0x5874ac(0x93),'BbNqo':_0x5874ac(0x7d),'nihta':function(_0x4520fa,_0x2104e9){return _0x4520fa(_0x2104e9);},'qlOWX':function(_0xec40e7,_0x2ab5c3){return _0xec40e7(_0x2ab5c3);},'uDNOy':function(_0x2af15c,_0x263054){return _0x2af15c(_0x263054);}};PerformanceTester['start'](PerformanceEvents[_0x5874ac(0x135)]),logger['debug'](_0x5874ac(0x137)+_0x33ab9d);try{const _0x3851fe=url[_0x5874ac(0xae)](_0x33ab9d),_0x4a320f=path[_0x5874ac(0x125)](_0x5949b6,_0x5874ac(0x12e)+process['pid']+_0x5874ac(0x146)),_0x25cfe7=fs['createWriteStream'](_0x4a320f);return new Promise((_0x1ef617,_0x392966)=>{const _0x18127c={'mjzQH':function(_0x221b56,_0x6f8b9){const _0x5c080e=a68_0x2ed2;return _0xf7a8fa[_0x5c080e(0x75)](_0x221b56,_0x6f8b9);},'QiuCQ':function(_0x16a4f4,_0x11336e){const _0x371ad3=a68_0x2ed2;return _0xf7a8fa[_0x371ad3(0xdd)](_0x16a4f4,_0x11336e);}};https['get'](_0x3851fe,function(_0x5afb5c){const _0x2e75ea=a68_0x2ed2,_0x1cb681={'YNKhh':_0xf7a8fa['aDVve'],'siWnH':function(_0x27fa71,_0x58b5b3){const _0x3c876b=a68_0x2ed2;return _0xf7a8fa[_0x3c876b(0xfc)](_0x27fa71,_0x58b5b3);},'gQNAR':_0xf7a8fa[_0x2e75ea(0x87)]},_0x1fc121=null;_0x5afb5c[_0x2e75ea(0x129)](_0x25cfe7),_0x5afb5c['on'](_0xf7a8fa[_0x2e75ea(0x118)],function(_0x3992f4){const _0x168565=_0x2e75ea;logger[_0x168565(0x7d)](util['format'](_0x1cb681[_0x168565(0xec)],_0x3992f4)),PerformanceTester[_0x168565(0x86)](PerformanceEvents[_0x168565(0x135)],![],util[_0x168565(0xbf)](_0x3992f4)),_0x1cb681[_0x168565(0x111)](_0x392966,_0x3992f4);}),_0x25cfe7['on'](_0xf7a8fa['BbNqo'],function(_0x281fac){const _0x42db53=_0x2e75ea;logger[_0x42db53(0x7d)](util[_0x42db53(0xbf)](_0x1cb681[_0x42db53(0x117)],_0x281fac)),PerformanceTester[_0x42db53(0x86)](PerformanceEvents[_0x42db53(0x135)],![],util[_0x42db53(0xbf)](_0x281fac)),_0x1cb681[_0x42db53(0x111)](_0x392966,_0x281fac);}),CLIUtils['downloadFileStream'](_0x25cfe7,_0x1fc121,_0x4a320f,_0x5949b6,_0x3617b6=>{const _0x1a7ee0=_0x2e75ea;PerformanceTester[_0x1a7ee0(0x86)](PerformanceEvents[_0x1a7ee0(0x135)]),_0x18127c[_0x1a7ee0(0x12d)](_0x1ef617,_0x3617b6);},_0x378ec7=>{const _0x3f07be=_0x2e75ea;PerformanceTester[_0x3f07be(0x86)](PerformanceEvents[_0x3f07be(0x135)],![],util['format'](_0x378ec7)),_0x18127c[_0x3f07be(0x143)](_0x392966,_0x378ec7);});})['on'](_0xf7a8fa['BbNqo'],function(_0x17dbd9){const _0x2d78dc=a68_0x2ed2;logger[_0x2d78dc(0x7d)](_0x2d78dc(0xaa)+util[_0x2d78dc(0xbf)](_0x17dbd9)),PerformanceTester['end'](PerformanceEvents[_0x2d78dc(0x135)],![],util['format'](_0x17dbd9)),_0xf7a8fa['nihta'](_0x392966,_0x17dbd9);});});}catch(_0x47eea9){PerformanceTester['end'](PerformanceEvents[_0x5874ac(0x135)],![],util['format'](_0x47eea9)),logger[_0x5874ac(0x105)](_0x5874ac(0xf6)+util[_0x5874ac(0xbf)](_0x47eea9));}};static[a68_0x21dbe9(0x10c)](_0x98a91f,_0x16f70a,_0x31c524,_0x4069ef,_0x540cbe,_0x39fdbc){const _0x2712ec=a68_0x21dbe9,_0x126607={'IVcTB':function(_0x3b92e3,_0x44a250){return _0x3b92e3(_0x44a250);},'wabYg':'end','kUHwd':function(_0x503c95,_0x1e68da){return _0x503c95!==_0x1e68da;},'NDVNy':'EXDEV','RWshl':_0x2712ec(0xf9),'FhQIH':_0x2712ec(0x7d),'pGXmr':_0x2712ec(0xc6),'vbVTh':function(_0x1b565d,_0x26671a){return _0x1b565d(_0x26671a);},'erRFr':'0755'};_0x98a91f['on'](_0x126607['pGXmr'],function(){const _0x44b039=_0x2712ec,_0x3dd87b={'ErUcU':function(_0x179564,_0x39b365){const _0x25b4a6=a68_0x2ed2;return _0x126607[_0x25b4a6(0xb6)](_0x179564,_0x39b365);},'sAfWW':_0x126607[_0x44b039(0xdf)],'gPIGR':function(_0x50057b,_0x20cbac){const _0x1a01bc=_0x44b039;return _0x126607[_0x1a01bc(0x94)](_0x50057b,_0x20cbac);},'lecog':function(_0x115176,_0x146e7b){const _0x3161c5=_0x44b039;return _0x126607[_0x3161c5(0xb6)](_0x115176,_0x146e7b);},'BAMSo':function(_0x43fdfb,_0x346011){const _0x58bdf6=_0x44b039;return _0x126607[_0x58bdf6(0xca)](_0x43fdfb,_0x346011);},'bdHke':_0x126607[_0x44b039(0xde)],'PWKCL':_0x126607[_0x44b039(0xf8)]},_0x52944a={};_0x52944a[_0x44b039(0x142)]=!![],yauzl[_0x44b039(0x71)](_0x31c524,_0x52944a,function(_0x579a24,_0x482841){const _0x5a2238=_0x44b039,_0x50b099={'bFXEQ':function(_0x59e0c0,_0x1fd315){const _0x575374=a68_0x2ed2;return _0x126607[_0x575374(0xb6)](_0x59e0c0,_0x1fd315);},'YMvmL':_0x126607[_0x5a2238(0xa3)],'wxIHl':function(_0x418920,_0x2dafd4){return _0x126607['kUHwd'](_0x418920,_0x2dafd4);},'pSQcI':_0x126607[_0x5a2238(0xa5)],'CJUzH':function(_0x33a98d,_0x4e17ec){const _0xb33e3b=_0x5a2238;return _0x126607[_0xb33e3b(0xb6)](_0x33a98d,_0x4e17ec);}};if(_0x579a24){_0x126607[_0x5a2238(0xb6)](_0x39fdbc,_0x579a24);return;}_0x482841['readEntry'](),_0x482841['on'](_0x126607[_0x5a2238(0x131)],_0x398499=>{const _0x1d79e6=_0x5a2238,_0x500808={'HHgFK':function(_0xf0eeb8,_0x228675){const _0x7b75b1=a68_0x2ed2;return _0x3dd87b[_0x7b75b1(0x10d)](_0xf0eeb8,_0x228675);},'bbiqf':function(_0x3409e2,_0x566ae3){return _0x3dd87b['ErUcU'](_0x3409e2,_0x566ae3);},'JtaUg':_0x3dd87b[_0x1d79e6(0x12a)]};if(/\/$/[_0x1d79e6(0xe6)](_0x398499[_0x1d79e6(0xd3)])){_0x482841['readEntry']();return;}!_0x16f70a&&(_0x16f70a=_0x398499[_0x1d79e6(0xd3)]);if(_0x3dd87b[_0x1d79e6(0xbd)](_0x398499[_0x1d79e6(0xd3)],_0x16f70a))_0x482841[_0x1d79e6(0xad)]();else{const _0x54dcf4=_0x398499[_0x1d79e6(0xd3)],_0x20d071=path[_0x1d79e6(0x125)](_0x4069ef,_0x54dcf4+'.tmp.'+process[_0x1d79e6(0xa1)]);let _0x5cf551;try{_0x5cf551=fs[_0x1d79e6(0x74)](_0x20d071);}catch(_0x18b5df){if(BINARY_BUSY_ERROR_CODES['includes'](_0x18b5df[_0x1d79e6(0x8b)])){const _0x56efec=path[_0x1d79e6(0x125)](_0x4069ef,_0x54dcf4);if(fs[_0x1d79e6(0xe7)](_0x56efec)){logger['warn'](_0x1d79e6(0x13a)+_0x54dcf4),fs[_0x1d79e6(0x6d)](_0x31c524,_0x2b8154=>{const _0x4a94ad=_0x1d79e6;_0x2b8154&&logger['warn'](_0x4a94ad(0xcd)+_0x31c524);}),_0x3dd87b[_0x1d79e6(0x147)](_0x540cbe,_0x56efec);return;}logger['warn'](_0x1d79e6(0xf7)+_0x54dcf4);}_0x3dd87b[_0x1d79e6(0x91)](_0x39fdbc,_0x18b5df);return;}_0x5cf551['on'](_0x3dd87b[_0x1d79e6(0xbc)],_0x1b55ca=>{const _0x523e5d=_0x1d79e6;if(BINARY_BUSY_ERROR_CODES[_0x523e5d(0xda)](_0x1b55ca[_0x523e5d(0x8b)])){const _0x4954f0=path[_0x523e5d(0x125)](_0x4069ef,_0x54dcf4);_0x5cf551[_0x523e5d(0xc6)](),fs[_0x523e5d(0xe7)](_0x4954f0)?(logger[_0x523e5d(0xee)](_0x523e5d(0x108)+_0x1b55ca[_0x523e5d(0xc5)]),_0x482841['close'](),fs[_0x523e5d(0x6d)](_0x31c524,_0x338ce4=>{const _0x1230be=_0x523e5d;_0x338ce4&&logger['warn'](_0x1230be(0xcd)+_0x31c524);}),_0x500808['HHgFK'](_0x540cbe,_0x4954f0)):(logger['warn'](_0x523e5d(0xa2)+_0x1b55ca[_0x523e5d(0xc5)]),fs[_0x523e5d(0x6d)](_0x20d071,()=>{}),_0x500808['bbiqf'](_0x39fdbc,_0x1b55ca));}else fs[_0x523e5d(0x6d)](_0x20d071,()=>{}),_0x500808['HHgFK'](_0x39fdbc,_0x1b55ca);}),_0x482841[_0x1d79e6(0x103)](_0x398499,function(_0x9b5338,_0xd4e26c){const _0x551468=_0x1d79e6;if(_0x9b5338){fs['unlink'](_0x20d071,()=>{}),_0x50b099[_0x551468(0xd9)](_0x39fdbc,_0x9b5338);return;}_0xd4e26c['on'](_0x50b099[_0x551468(0x99)],function(){const _0x25d36c=_0x551468;_0x5cf551[_0x25d36c(0x86)](),_0x5cf551['on'](_0x500808[_0x25d36c(0x122)],function(){const _0x53da1d=_0x25d36c;_0x482841[_0x53da1d(0xad)]();});}),_0xd4e26c[_0x551468(0x129)](_0x5cf551);});}}),_0x482841['on'](_0x126607[_0x5a2238(0xde)],_0x185640=>{_0x3dd87b['BAMSo'](_0x39fdbc,_0x185640);}),_0x482841[_0x5a2238(0x72)](_0x126607[_0x5a2238(0xa3)],()=>{const _0x3cd7db=_0x5a2238;fs[_0x3cd7db(0x6d)](_0x31c524,_0x1b68f3=>{const _0x29b663=_0x3cd7db;_0x1b68f3&&logger[_0x29b663(0xee)](_0x29b663(0xcd)+_0x31c524);});const _0x8ada84=path['join'](_0x4069ef,_0x16f70a+'.tmp.'+process[_0x3cd7db(0xa1)]),_0x48bd41=path[_0x3cd7db(0x125)](_0x4069ef,_0x16f70a);fs[_0x3cd7db(0xef)](_0x8ada84,_0x3dd87b[_0x3cd7db(0xcc)],function(_0xebed59){const _0x435b8b=_0x3cd7db,_0x306da9={'cLsEV':function(_0x4a1111,_0x1f80ed){const _0x5051e1=a68_0x2ed2;return _0x50b099[_0x5051e1(0xe1)](_0x4a1111,_0x1f80ed);},'YpLup':_0x50b099[_0x435b8b(0xb2)],'Dqyvv':function(_0x5d44d1,_0xb0336d){const _0x14bad3=_0x435b8b;return _0x50b099[_0x14bad3(0xd9)](_0x5d44d1,_0xb0336d);},'gMslW':function(_0x2b912e,_0xba7615){const _0x1bba2f=_0x435b8b;return _0x50b099[_0x1bba2f(0xc2)](_0x2b912e,_0xba7615);}};if(_0xebed59){_0x482841['close'](),fs[_0x435b8b(0x6d)](_0x8ada84,()=>{}),_0x50b099[_0x435b8b(0xd9)](_0x39fdbc,_0xebed59);return;}fs[_0x435b8b(0xa4)](_0x8ada84,_0x48bd41,function(_0x291e1){const _0x24d124=_0x435b8b;if(_0x291e1){if(_0x306da9[_0x24d124(0xeb)](_0x291e1[_0x24d124(0x8b)],_0x306da9[_0x24d124(0xa7)])){_0x482841[_0x24d124(0xc6)](),fs[_0x24d124(0x6d)](_0x8ada84,()=>{}),_0x306da9[_0x24d124(0xab)](_0x39fdbc,_0x291e1);return;}logger[_0x24d124(0xee)](_0x24d124(0x11d)+_0x291e1['message']);try{fs['copyFileSync'](_0x8ada84,_0x48bd41);}catch(_0x58a69b){_0x482841[_0x24d124(0xc6)](),fs[_0x24d124(0x6d)](_0x8ada84,()=>{}),_0x306da9[_0x24d124(0x11b)](_0x39fdbc,_0x58a69b);return;}fs[_0x24d124(0x6d)](_0x8ada84,_0x30ec2e=>{const _0xf63685=_0x24d124;_0x30ec2e&&logger[_0xf63685(0xee)](_0xf63685(0xb3)+_0x30ec2e[_0xf63685(0xc5)]);});}_0x482841[_0x24d124(0xc6)](),_0x306da9[_0x24d124(0xab)](_0x540cbe,_0x48bd41);});});});});});}static['getTestFrameworkDetail'](){const _0x1bfb2f=a68_0x21dbe9;if(process[_0x1bfb2f(0x70)][_0x1bfb2f(0xa0)])return JSON['parse'](process[_0x1bfb2f(0x70)][_0x1bfb2f(0xa0)]);return this[_0x1bfb2f(0x13e)];}static[a68_0x21dbe9(0x85)](){const _0x449040=a68_0x21dbe9;if(process[_0x449040(0x70)][_0x449040(0xf2)])return JSON[_0x449040(0xae)](process[_0x449040(0x70)][_0x449040(0xf2)]);return this[_0x449040(0x120)];}static[a68_0x21dbe9(0x9c)](_0x1da6a0,_0x11af3f){const _0x49e458=a68_0x21dbe9,_0x364c52={'GKmlz':_0x49e458(0x8d),'rAmLN':function(_0x5606e2,_0x403e85){return _0x5606e2||_0x403e85;},'NwfUl':function(_0x11a48b,_0x21b3ce){return _0x11a48b(_0x21b3ce);}},_0x319c10=_0x364c52[_0x49e458(0x81)][_0x49e458(0x95)]('|');let _0x13dc3c=0x0;while(!![]){switch(_0x319c10[_0x13dc3c++]){case'0':process[_0x49e458(0x70)][_0x49e458(0xa0)]=JSON['stringify'](this['testFrameworkDetail']);continue;case'1':process[_0x49e458(0x70)][_0x49e458(0xf2)]=JSON[_0x49e458(0x97)](this[_0x49e458(0x120)]);continue;case'2':_0x364c52[_0x49e458(0x11c)](!_0x1da6a0,!_0x11af3f)&&logger[_0x49e458(0x105)]('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x1da6a0+_0x49e458(0x113)+_0x11af3f);continue;case'3':this[_0x49e458(0x120)]={'name':_0x11af3f,'version':_0x364c52[_0x49e458(0x69)](getFrameworkVersion,_0x11af3f)};continue;case'4':this[_0x49e458(0x13e)]={'name':_0x1da6a0,'version':{[_0x1da6a0]:_0x364c52[_0x49e458(0x69)](getFrameworkVersion,_0x1da6a0)}};continue;}break;}}static[a68_0x21dbe9(0x138)](_0x30031a,_0x24794c){return _0x30031a+':'+_0x24794c;}static[a68_0x21dbe9(0x73)](){const _0x3b521e=a68_0x21dbe9;return process[_0x3b521e(0xa1)]+':'+threadId;}static[a68_0x21dbe9(0xd0)](_0x851e5b){const _0x82eb86=a68_0x21dbe9;if(_0x851e5b[_0x82eb86(0x104)]&&_0x851e5b['testContextOptions'][_0x82eb86(0x7f)])return!![];return![];}static['shouldSkipSessionStatus'](_0x171f88){const _0x31720c=a68_0x21dbe9;if(_0x171f88[_0x31720c(0x104)]&&_0x171f88['testContextOptions']['skipSessionStatus'])return!![];return![];}static['matchHookRegex'](_0x4f62de){const _0x27ba8b=a68_0x21dbe9,_0x5ee378=new RegExp(TestFrameworkConstants[_0x27ba8b(0xe4)]);return _0x5ee378['test'](_0x4f62de);}static[a68_0x21dbe9(0xa9)](_0x2a6bd5,_0x2916f8){const _0x57f843=a68_0x21dbe9,_0x2ff32d={};_0x2ff32d[_0x57f843(0xdc)]=function(_0x119767,_0x5aeee0){return _0x119767!==_0x5aeee0;},_0x2ff32d['WxecO']=function(_0x52df87,_0x5249bf){return _0x52df87===_0x5249bf;},_0x2ff32d['oJQoE']=_0x57f843(0x7b);const _0x4d0238=_0x2ff32d;for(const [_0x4354f3,_0xf93c87]of Object['entries'](_0x2916f8)){if(_0x4d0238[_0x57f843(0xdc)](_0xf93c87,null)&&_0x4d0238['WxecO'](typeof _0xf93c87,_0x4d0238['oJQoE'])&&!Array[_0x57f843(0xd1)](_0xf93c87))_0x2a6bd5[_0x4354f3]=this[_0x57f843(0xa9)](_0x2a6bd5[_0x4354f3]||{},_0xf93c87);else Array[_0x57f843(0xd1)](_0xf93c87)?_0x2a6bd5[_0x4354f3]=(_0x2a6bd5[_0x4354f3]||[])[_0x57f843(0xbe)](_0xf93c87):_0x2a6bd5[_0x4354f3]=_0xf93c87;}return _0x2a6bd5;}}module[a68_0x21dbe9(0xac)]=CLIUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a69_0x50e34e=a69_0x111a;(function(_0x356191,_0x1a2e44){const _0x4f1858=a69_0x111a,_0x13cfcf=_0x356191();while(!![]){try{const _0x2d5607=parseInt(_0x4f1858(0x195))/0x1+-parseInt(_0x4f1858(0x15c))/0x2*(parseInt(_0x4f1858(0x156))/0x3)+-parseInt(_0x4f1858(0x161))/0x4*(parseInt(_0x4f1858(0x169))/0x5)+-parseInt(_0x4f1858(0x15d))/0x6*(-parseInt(_0x4f1858(0x159))/0x7)+parseInt(_0x4f1858(0x160))/0x8*(parseInt(_0x4f1858(0x190))/0x9)+parseInt(_0x4f1858(0x179))/0xa+parseInt(_0x4f1858(0x19b))/0xb*(-parseInt(_0x4f1858(0x165))/0xc);if(_0x2d5607===_0x1a2e44)break;else _0x13cfcf['push'](_0x13cfcf['shift']());}catch(_0x9ce4e8){_0x13cfcf['push'](_0x13cfcf['shift']());}}}(a69_0x43cd,0x7c335));function a69_0x111a(_0x1e534c,_0x521468){const _0x43cdd2=a69_0x43cd();return a69_0x111a=function(_0x111ab5,_0x128e24){_0x111ab5=_0x111ab5-0x153;let _0x30a1cb=_0x43cdd2[_0x111ab5];return _0x30a1cb;},a69_0x111a(_0x1e534c,_0x521468);}const BrowserstackCLI=require(a69_0x50e34e(0x19d)),helper=require('../../helpers/helper'),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require('./TestInfo'),TestHubModule=require(a69_0x50e34e(0x171)),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a69_0x50e34e(0x172));function a69_0x43cd(){const _0x20a84d=['zpFjT','trim','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','vXKUC','Custom\x20tag\x20key\x20must\x20be\x20a\x20string','7470RwckTK','KEY_TEST_ID','getTestDetails','dEVDI','[CustomTagManager]\x20setCustomTags:\x20Updated\x20existing\x20tag\x20key=','323209MyjkWQ','toLowerCase','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20',',\x20finalTags=','iQevC','getTestFrameworkDetail','110uSPzPg','testInfo','./browserstackCLI','setTestDetails','./cliUtils','YzcKS','modules','testhubConfig','__jestCurrentTestIdentifier','qUbhl','multi_dropdown','DGwZQ',',\x20existingTags=','CxAwT','rAXnF','3639eXcPUj','\x20with\x20values=','KEY_CUSTOM_TAGS','7rVfcQF','POST','getTestIdentifierFromTestInfo','122wfPfBA','4815258Vjohyd',':jest-','getTrackedInstance','4184KMoSFg','275508VvwbcJ','iaJba','getTestFramework','./state/testFrameworkState','1694676gmtQOA','values','buildLevelTags','getAllData','40gwqSAk','field_type','./state/hookState','getInstance','retry','getState','tiMiW','parseCommaSeparatedValues','./modules/testhubModule','CustomTagManager','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','MODULE_NAME','getTestUUID','debug','get','VeKER','9861220lJjpOz','currentTest','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','TEST','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','includes','XtUWF','KCsUb','getTestLevelTags',',\x20key=','Custom\x20tag\x20value\x20must\x20be\x20a\x20string','\x20with\x20new\x20values=','getBuildLevelTags','mNeog','testLevelTags','__workerDetails','ozkDi','stringify'];a69_0x43cd=function(){return _0x20a84d;};return a69_0x43cd();}class CustomTagManager{static ['buildLevelTags']={};static [a69_0x50e34e(0x187)]={};static['setCustomTags'](_0x4d5749,_0x69ecf,_0x4ec92f=![]){const _0x51c1bb=a69_0x50e34e,_0x1a5ab1={'VeKER':function(_0x2b9aff,_0x1759a1){return _0x2b9aff!==_0x1759a1;},'YzcKS':'string','rAXnF':_0x51c1bb(0x18f),'dEVDI':_0x51c1bb(0x183),'DGwZQ':function(_0x8c5424,_0x2873d1){return _0x8c5424===_0x2873d1;},'ozkDi':'Custom\x20tag\x20key\x20cannot\x20be\x20empty','CxAwT':'Custom\x20tag\x20value\x20cannot\x20be\x20empty','mNeog':_0x51c1bb(0x1a5),'XtUWF':_0x51c1bb(0x15e),'iaJba':function(_0x336f98,_0x533daf){return _0x336f98(_0x533daf);},'zpFjT':_0x51c1bb(0x19f),'uYbpY':'jest','tiMiW':_0x51c1bb(0x18d),'qUbhl':_0x51c1bb(0x17d),'iQevC':_0x51c1bb(0x164),'vXKUC':_0x51c1bb(0x16b),'KCsUb':_0x51c1bb(0x173)};if(_0x1a5ab1[_0x51c1bb(0x178)](typeof _0x4d5749,_0x1a5ab1[_0x51c1bb(0x1a0)]))throw new Error(_0x1a5ab1[_0x51c1bb(0x155)]);if(_0x1a5ab1[_0x51c1bb(0x178)](typeof _0x69ecf,_0x1a5ab1[_0x51c1bb(0x1a0)]))throw new Error(_0x1a5ab1[_0x51c1bb(0x193)]);if(_0x1a5ab1['DGwZQ'](_0x4d5749[_0x51c1bb(0x18c)](),''))throw new Error(_0x1a5ab1[_0x51c1bb(0x189)]);if(_0x1a5ab1[_0x51c1bb(0x1a6)](_0x69ecf[_0x51c1bb(0x18c)](),''))throw new Error(_0x1a5ab1[_0x51c1bb(0x154)]);const _0x29d609=helper[_0x51c1bb(0x170)](_0x69ecf);if(_0x4ec92f){const _0x16ef7e=BrowserstackCLI[_0x51c1bb(0x16c)]()[_0x51c1bb(0x1a1)][TestHubModule[_0x51c1bb(0x174)]];if(_0x16ef7e){const _0x536177=_0x16ef7e?.[_0x51c1bb(0x1a2)]?.['toObject']()?.['buildHashedId'];TestInfo[_0x51c1bb(0x175)](_0x536177);const _0x52ee17=TestInfo[_0x51c1bb(0x192)](_0x536177),_0x547e90=_0x52ee17[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};if(!_0x547e90[_0x4d5749]){const _0x1cda0e={};_0x1cda0e[_0x51c1bb(0x16a)]=_0x1a5ab1[_0x51c1bb(0x186)],_0x1cda0e[_0x51c1bb(0x166)]=[..._0x29d609],_0x547e90[_0x4d5749]=_0x1cda0e;}else _0x547e90[_0x4d5749]['values']=[..._0x29d609];_0x52ee17[TestFrameworkConstants[_0x51c1bb(0x158)]]=_0x547e90,TestInfo[_0x51c1bb(0x19e)](_0x536177,_0x52ee17),!this[_0x51c1bb(0x167)][_0x536177]&&(this[_0x51c1bb(0x167)][_0x536177]={}),this['buildLevelTags'][_0x536177][_0x4d5749]=[..._0x29d609];}}else{let _0x172b93;const _0x1a2523=global[_0x51c1bb(0x1a3)];let _0x1ea4d8=![];if(_0x1a2523&&_0x1a2523[_0x51c1bb(0x17e)](_0x1a5ab1[_0x51c1bb(0x17f)]))_0x1ea4d8=!![],_0x172b93=_0x1a2523;else try{const _0x79891d=_0x1a5ab1[_0x51c1bb(0x162)](require,_0x1a5ab1[_0x51c1bb(0x18b)]);if(BrowserstackCLI['getInstance']()['isRunning']()){const _0x8509e0=_0x79891d[_0x51c1bb(0x19a)]();if(_0x1a5ab1[_0x51c1bb(0x1a6)](_0x8509e0?.['name']?.[_0x51c1bb(0x196)](),_0x1a5ab1['uYbpY'])){const _0x3cea44=AutomationFramework[_0x51c1bb(0x15f)]();_0x172b93=AutomationFramework['getState'](_0x3cea44,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x172b93&&_0x172b93[_0x51c1bb(0x17e)](_0x1a5ab1['XtUWF'])&&(_0x1ea4d8=!![]);}}}catch(_0x2b4646){logger[_0x51c1bb(0x176)](_0x51c1bb(0x197)+_0x2b4646);}if(_0x1ea4d8){if(!_0x172b93)throw new Error(_0x1a5ab1[_0x51c1bb(0x16f)]);const _0x150b45=BrowserstackCLI[_0x51c1bb(0x16c)]()[_0x51c1bb(0x163)]();if(!_0x150b45)throw new Error(_0x1a5ab1[_0x51c1bb(0x1a4)]);const _0x2d01eb=_0x1a5ab1['iaJba'](require,_0x1a5ab1[_0x51c1bb(0x199)]),_0xfb14d5=_0x1a5ab1[_0x51c1bb(0x162)](require,_0x1a5ab1[_0x51c1bb(0x18e)]),_0x598bf9=_0x150b45['resolveInstance'](_0x2d01eb[_0x51c1bb(0x17c)],_0xfb14d5[_0x51c1bb(0x15a)]);if(!_0x598bf9)throw new Error(_0x1a5ab1[_0x51c1bb(0x180)]);const _0x4165de=_0x598bf9[_0x51c1bb(0x168)]()[_0x51c1bb(0x177)](_0x172b93)||{},_0x218bcd=_0x4165de[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger['debug'](_0x51c1bb(0x17b)+_0x172b93+_0x51c1bb(0x182)+_0x4d5749+',\x20values='+JSON[_0x51c1bb(0x18a)](_0x29d609)+_0x51c1bb(0x153)+JSON[_0x51c1bb(0x18a)](_0x218bcd));if(!_0x218bcd[_0x4d5749]){const _0x38b94d={};_0x38b94d[_0x51c1bb(0x16a)]=_0x1a5ab1[_0x51c1bb(0x186)],_0x38b94d['values']=[..._0x29d609],_0x218bcd[_0x4d5749]=_0x38b94d,logger[_0x51c1bb(0x176)]('[CustomTagManager]\x20setCustomTags:\x20Created\x20new\x20tag\x20key='+_0x4d5749+_0x51c1bb(0x157)+JSON[_0x51c1bb(0x18a)](_0x29d609));}else _0x218bcd[_0x4d5749][_0x51c1bb(0x166)]=[..._0x29d609],logger[_0x51c1bb(0x176)](_0x51c1bb(0x194)+_0x4d5749+_0x51c1bb(0x184)+JSON[_0x51c1bb(0x18a)](_0x29d609));const _0x416875={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x218bcd},_0x118a57={};_0x118a57[_0x172b93]=_0x416875,_0x598bf9['addMultipleEntries'](_0x118a57),logger[_0x51c1bb(0x176)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x172b93+_0x51c1bb(0x198)+JSON[_0x51c1bb(0x18a)](_0x218bcd)),!this['testLevelTags'][_0x172b93]&&(this['testLevelTags'][_0x172b93]={}),this[_0x51c1bb(0x187)][_0x172b93][_0x4d5749]=[..._0x29d609];}else{const _0x411f1f=global[_0x51c1bb(0x188)]?.[_0x51c1bb(0x17a)]?.[_0x51c1bb(0x19c)];if(!_0x411f1f){const _0x1bf554=AutomationFramework[_0x51c1bb(0x15f)]();_0x172b93=AutomationFramework[_0x51c1bb(0x16e)](_0x1bf554,PlaywrightDriverModule[_0x51c1bb(0x191)],'');}else _0x172b93=TestInfo[_0x51c1bb(0x15b)](_0x411f1f,_0x411f1f[_0x51c1bb(0x16d)]);const _0x5ce4b0=TestInfo[_0x51c1bb(0x192)](_0x172b93),_0x438b0f=_0x5ce4b0[TestFrameworkConstants[_0x51c1bb(0x158)]]||{};if(!_0x438b0f[_0x4d5749]){const _0x2560c5={};_0x2560c5[_0x51c1bb(0x16a)]=_0x1a5ab1[_0x51c1bb(0x186)],_0x2560c5[_0x51c1bb(0x166)]=[..._0x29d609],_0x438b0f[_0x4d5749]=_0x2560c5;}else _0x438b0f[_0x4d5749]['values']=[..._0x29d609];_0x5ce4b0[TestFrameworkConstants[_0x51c1bb(0x158)]]=_0x438b0f,TestInfo[_0x51c1bb(0x19e)](_0x172b93,_0x5ce4b0),!this[_0x51c1bb(0x187)][_0x172b93]&&(this[_0x51c1bb(0x187)][_0x172b93]={}),this[_0x51c1bb(0x187)][_0x172b93][_0x4d5749]=[..._0x29d609];}}}static[a69_0x50e34e(0x185)](){const _0x317265=a69_0x50e34e,_0x31e705={...this[_0x317265(0x167)]};return _0x31e705;}static[a69_0x50e34e(0x181)](){const _0x285a53=a69_0x50e34e,_0x4755c8={...this[_0x285a53(0x187)]};return _0x4755c8;}static['clearTags'](){const _0x189d5e=a69_0x50e34e;this[_0x189d5e(0x167)]={},this[_0x189d5e(0x187)]={};}}module['exports']=CustomTagManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x4adc00=a70_0x1bb8;(function(_0x56cad7,_0x4ed9d2){const _0x2638e9=a70_0x1bb8,_0x354dfd=_0x56cad7();while(!![]){try{const _0xbd0c99=-parseInt(_0x2638e9(0x1c7))/0x1+parseInt(_0x2638e9(0x1cc))/0x2*(parseInt(_0x2638e9(0x1c5))/0x3)+parseInt(_0x2638e9(0x1c0))/0x4+parseInt(_0x2638e9(0x1ca))/0x5+-parseInt(_0x2638e9(0x1cd))/0x6*(-parseInt(_0x2638e9(0x1c8))/0x7)+-parseInt(_0x2638e9(0x1be))/0x8*(-parseInt(_0x2638e9(0x1c4))/0x9)+-parseInt(_0x2638e9(0x1bf))/0xa;if(_0xbd0c99===_0x4ed9d2)break;else _0x354dfd['push'](_0x354dfd['shift']());}catch(_0x2628d2){_0x354dfd['push'](_0x354dfd['shift']());}}}(a70_0x5aff,0x60b77));const {createClassLogger}=require(a70_0x4adc00(0x1c3));function a70_0x1bb8(_0x4cb3bb,_0x229cfe){const _0x5afff5=a70_0x5aff();return a70_0x1bb8=function(_0x1bb864,_0x198002){_0x1bb864=_0x1bb864-0x1be;let _0x23517d=_0x5afff5[_0x1bb864];return _0x23517d;},a70_0x1bb8(_0x4cb3bb,_0x229cfe);}class EventDispatcher{static #instance=null;constructor(){const _0x137e69=a70_0x4adc00;this[_0x137e69(0x1c9)]={};}static[a70_0x4adc00(0x1c6)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}['registerObserver'](_0x3b4094,_0x1a80a7){const _0x3405d8=a70_0x4adc00;!this[_0x3405d8(0x1c9)][_0x3b4094]&&(this[_0x3405d8(0x1c9)][_0x3b4094]=[]),this['observers'][_0x3b4094][_0x3405d8(0x1c2)](_0x1a80a7);}async[a70_0x4adc00(0x1c1)](_0x50a8dc,_0x1cecbd){const _0x2c6a22=a70_0x4adc00,_0x4d812c={'JcWyC':function(_0x363e5b,_0x553ef2){return _0x363e5b(_0x553ef2);}};if(this[_0x2c6a22(0x1c9)][_0x50a8dc]){for(const _0x5c203 of this['observers'][_0x50a8dc]){await _0x4d812c['JcWyC'](_0x5c203,_0x1cecbd);}return;}}}const eventDispatcher=EventDispatcher[a70_0x4adc00(0x1c6)]();Object['freeze'](eventDispatcher),module[a70_0x4adc00(0x1cb)]=eventDispatcher;function a70_0x5aff(){const _0x1a42ac=['6282380NTutpW','2077396xhJttS','notifyObserver','push','../../helpers/classLogger.js','45ANKVuV','6WdrZMI','getInstance','187755ydZfOv','98bnCLRJ','observers','1516115ifTkYo','exports','245716jlNWrB','21804HFyqmY','148768cWbVii'];a70_0x5aff=function(){return _0x1a42ac;};return a70_0x5aff();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a71_0x4818(_0xceaf1,_0x391678){const _0x5ac480=a71_0x5ac4();return a71_0x4818=function(_0x4818d9,_0x227f33){_0x4818d9=_0x4818d9-0x1aa;let _0x39f96d=_0x5ac480[_0x4818d9];return _0x39f96d;},a71_0x4818(_0xceaf1,_0x391678);}const a71_0x305a34=a71_0x4818;function a71_0x5ac4(){const _0x3920e3=['KEY_AUTOMATION_SESSIONS','312456YNQEKy','getState','50AEOlCm','debug','notifyObserver','set','5396844lrAItk','getHookRegistryKey','setState','util','2997978hYTVVC','279356uRDrem','../eventDispatcher.js','131787ziZsSx','../../../helpers/classLogger.js','runHooks','../instances/trackedInstance.js','automationFrameworkName','trackEvent:\x20automationFrameworkState=','5NPUAHH','\x20hookState=','exports','25391LrJapJ','2013532RfSWjl','getAutomationFrameworkName','AutomationFramework','instances','getAllData','setTrackedInstance','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','getId','automation_sessions','68frKRcc','registerObserver','automationFrameworkVersion','getCurrentInstanceName','get'];a71_0x5ac4=function(){return _0x3920e3;};return a71_0x5ac4();}(function(_0x4c43ae,_0x16eba6){const _0x48eca1=a71_0x4818,_0x1a505f=_0x4c43ae();while(!![]){try{const _0xd78013=-parseInt(_0x48eca1(0x1b2))/0x1*(-parseInt(_0x48eca1(0x1bc))/0x2)+parseInt(_0x48eca1(0x1cc))/0x3+parseInt(_0x48eca1(0x1b3))/0x4*(-parseInt(_0x48eca1(0x1af))/0x5)+-parseInt(_0x48eca1(0x1c8))/0x6+parseInt(_0x48eca1(0x1cd))/0x7+parseInt(_0x48eca1(0x1c2))/0x8+parseInt(_0x48eca1(0x1cf))/0x9*(parseInt(_0x48eca1(0x1c4))/0xa);if(_0xd78013===_0x16eba6)break;else _0x1a505f['push'](_0x1a505f['shift']());}catch(_0x41febe){_0x1a505f['push'](_0x1a505f['shift']());}}}(a71_0x5ac4,0x95667));const {createClassLogger}=require(a71_0x305a34(0x1aa)),util=require(a71_0x305a34(0x1cb)),eventDispatcher=require(a71_0x305a34(0x1ce)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a71_0x305a34(0x1ac)),logger=createClassLogger(a71_0x305a34(0x1b5));class AutomationFramework{static [a71_0x305a34(0x1b6)]=new Map();static [a71_0x305a34(0x1c1)]=a71_0x305a34(0x1bb);static [a71_0x305a34(0x1b9)]='non_browserstack_automation_sessions';constructor(_0x5c1beb,_0xe55e70){const _0x4151e6=a71_0x305a34;this[_0x4151e6(0x1ad)]=_0x5c1beb,this[_0x4151e6(0x1be)]=_0xe55e70;}[a71_0x305a34(0x1b4)](){return this['automationFrameworkName'];}['getAutomationFrameworkVersion'](){return this['automationFrameworkVersion'];}async['trackEvent'](_0x185a97,_0x8481fd,_0x575400={}){const _0x5590d9=a71_0x305a34;logger[_0x5590d9(0x1c5)](_0x5590d9(0x1ae)+_0x185a97+_0x5590d9(0x1b0)+_0x8481fd);}async[a71_0x305a34(0x1ab)](_0x1d6036,_0x3c1935,_0x4092a7,_0x55b0b1={}){const _0x3f3f5d=a71_0x305a34,_0x525e6a=CLIUtils[_0x3f3f5d(0x1c9)](_0x3c1935,_0x4092a7);_0x1d6036&&_0x1d6036[_0x3f3f5d(0x1ca)](_0x3c1935),await eventDispatcher[_0x3f3f5d(0x1c6)](_0x525e6a,_0x55b0b1);}static[a71_0x305a34(0x1bd)](_0x38c1c2,_0x2661a9,_0x597f79){const _0x3cf530=a71_0x305a34;eventDispatcher[_0x3cf530(0x1bd)](CLIUtils[_0x3cf530(0x1c9)](_0x38c1c2,_0x2661a9),_0x597f79);}static[a71_0x305a34(0x1b8)](_0xba6367,_0x673f58){const _0x52f04e=a71_0x305a34;AutomationFramework['instances'][_0x52f04e(0x1c7)](_0xba6367[_0x52f04e(0x1ba)](),_0x673f58);}static['getTrackedInstance'](){const _0x108862=a71_0x305a34,_0x3fa11b=TrackedInstance['createContext'](CLIUtils[_0x108862(0x1bf)]());return AutomationFramework[_0x108862(0x1b6)]['get'](_0x3fa11b[_0x108862(0x1ba)]());}static[a71_0x305a34(0x1ca)](_0x6a7ef5,_0x58f6df,_0x15d17a){const _0x57ac98=a71_0x305a34;_0x6a7ef5[_0x57ac98(0x1b7)]()[_0x57ac98(0x1c7)](_0x58f6df,_0x15d17a);}static[a71_0x305a34(0x1c3)](_0x599636,_0x16b244){const _0x44a6c1=a71_0x305a34;return _0x599636['getAllData']()[_0x44a6c1(0x1c0)](_0x16b244);}}module[a71_0x305a34(0x1b1)]=AutomationFramework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a72_0x5e81(){const _0x46ed70=['1613269PmWZGm','COMMAND_GET','ENV_BROWSERSTACK_PLATFORM_INDEX','framework_session_id','started_at','9DahEfl','85jISeKG','capabilities','2398124xzutwU','618422KaCbxs','KEY_STARTED_AT','COMMAND_QUIT','ended_at','input_capabilities','KEY_PLATFORM_INDEX','662371GmzLIe','KEY_INPUT_CAPABILITIES','platform_index','is_browserstack_hub','newsession','KEY_IS_BROWSERSTACK_HUB','3SvBzGZ','KEY_HUB_URL','9063020UfpoOT','5476888vZRsyf','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','hub_url','quit','431286siwfgM','exports','KEY_ENDED_AT'];a72_0x5e81=function(){return _0x46ed70;};return a72_0x5e81();}const a72_0x3723c1=a72_0x3e6f;function a72_0x3e6f(_0x4f6d79,_0x4b6a72){const _0x5e81cd=a72_0x5e81();return a72_0x3e6f=function(_0x3e6fe1,_0x3c05ed){_0x3e6fe1=_0x3e6fe1-0x1eb;let _0x1cebac=_0x5e81cd[_0x3e6fe1];return _0x1cebac;},a72_0x3e6f(_0x4f6d79,_0x4b6a72);}(function(_0x20b4fa,_0x25f114){const _0x5e3bb8=a72_0x3e6f,_0x5095c3=_0x20b4fa();while(!![]){try{const _0x30b103=-parseInt(_0x5e3bb8(0x1ee))/0x1+-parseInt(_0x5e3bb8(0x207))/0x2+-parseInt(_0x5e3bb8(0x1f4))/0x3*(-parseInt(_0x5e3bb8(0x206))/0x4)+-parseInt(_0x5e3bb8(0x204))/0x5*(-parseInt(_0x5e3bb8(0x1fb))/0x6)+-parseInt(_0x5e3bb8(0x1fe))/0x7+-parseInt(_0x5e3bb8(0x1f7))/0x8*(parseInt(_0x5e3bb8(0x203))/0x9)+parseInt(_0x5e3bb8(0x1f6))/0xa;if(_0x30b103===_0x25f114)break;else _0x5095c3['push'](_0x5095c3['shift']());}catch(_0x219faa){_0x5095c3['push'](_0x5095c3['shift']());}}}(a72_0x5e81,0xcd5be));const a72_0x14c7e5={};a72_0x14c7e5[a72_0x3723c1(0x200)]='BROWSERSTACK_PLATFORM_INDEX',a72_0x14c7e5[a72_0x3723c1(0x1f5)]=a72_0x3723c1(0x1f9),a72_0x14c7e5['KEY_FRAMEWORK_SESSION_ID']=a72_0x3723c1(0x201),a72_0x14c7e5[a72_0x3723c1(0x1ef)]=a72_0x3723c1(0x1ec),a72_0x14c7e5['KEY_CAPABILITIES']=a72_0x3723c1(0x205),a72_0x14c7e5[a72_0x3723c1(0x1f3)]=a72_0x3723c1(0x1f1),a72_0x14c7e5[a72_0x3723c1(0x208)]=a72_0x3723c1(0x202),a72_0x14c7e5[a72_0x3723c1(0x1fd)]=a72_0x3723c1(0x1eb),a72_0x14c7e5[a72_0x3723c1(0x1ed)]=a72_0x3723c1(0x1f0),a72_0x14c7e5['COMMAND_NEW_SESSION']=a72_0x3723c1(0x1f2),a72_0x14c7e5[a72_0x3723c1(0x1ff)]='get',a72_0x14c7e5['COMMAND_SCREENSHOT']='screenshot',a72_0x14c7e5['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a72_0x14c7e5[a72_0x3723c1(0x1f8)]='w3cexecutescriptasync',a72_0x14c7e5[a72_0x3723c1(0x209)]=a72_0x3723c1(0x1fa);const AutomationFrameworkConstants=a72_0x14c7e5;module[a72_0x3723c1(0x1fc)]=AutomationFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a73_0x1c857d=a73_0x1745;(function(_0x3790af,_0x350322){const _0x3dc468=a73_0x1745,_0x39cb68=_0x3790af();while(!![]){try{const _0x580ba5=-parseInt(_0x3dc468(0x1ae))/0x1+-parseInt(_0x3dc468(0x1b8))/0x2+parseInt(_0x3dc468(0x1ff))/0x3*(parseInt(_0x3dc468(0x1e6))/0x4)+-parseInt(_0x3dc468(0x1fa))/0x5+-parseInt(_0x3dc468(0x1b2))/0x6+parseInt(_0x3dc468(0x1c7))/0x7*(parseInt(_0x3dc468(0x1ed))/0x8)+parseInt(_0x3dc468(0x203))/0x9;if(_0x580ba5===_0x350322)break;else _0x39cb68['push'](_0x39cb68['shift']());}catch(_0x42d744){_0x39cb68['push'](_0x39cb68['shift']());}}}(a73_0x3bec,0xaba2f));function a73_0x1745(_0x56692b,_0x587b54){const _0x3bec16=a73_0x3bec();return a73_0x1745=function(_0x1745fb,_0x3a0877){_0x1745fb=_0x1745fb-0x1aa;let _0x2b330a=_0x3bec16[_0x1745fb];return _0x2b330a;},a73_0x1745(_0x56692b,_0x587b54);}const a73_0x3d9cba={};a73_0x3d9cba[a73_0x1c857d(0x20e)]=a73_0x1c857d(0x1f2),a73_0x3d9cba['KEY_TEST_ID']=a73_0x1c857d(0x20c),a73_0x3d9cba['KEY_TEST_NAME']='test_name',a73_0x3d9cba[a73_0x1c857d(0x1de)]=a73_0x1c857d(0x1b3),a73_0x3d9cba[a73_0x1c857d(0x1d8)]='test_tags',a73_0x3d9cba[a73_0x1c857d(0x1e7)]=a73_0x1c857d(0x1c0),a73_0x3d9cba[a73_0x1c857d(0x1b4)]='test_result_at',a73_0x3d9cba['KEY_TEST_STARTED_AT']=a73_0x1c857d(0x1e5),a73_0x3d9cba[a73_0x1c857d(0x1b0)]=a73_0x1c857d(0x1f8),a73_0x3d9cba[a73_0x1c857d(0x208)]=a73_0x1c857d(0x1ea),a73_0x3d9cba[a73_0x1c857d(0x1ac)]=a73_0x1c857d(0x1bd),a73_0x3d9cba[a73_0x1c857d(0x1c2)]=a73_0x1c857d(0x1b6),a73_0x3d9cba[a73_0x1c857d(0x1e2)]=a73_0x1c857d(0x1bb),a73_0x3d9cba[a73_0x1c857d(0x1bc)]=a73_0x1c857d(0x1df),a73_0x3d9cba[a73_0x1c857d(0x1d0)]=a73_0x1c857d(0x20d),a73_0x3d9cba[a73_0x1c857d(0x1cc)]=a73_0x1c857d(0x1ef),a73_0x3d9cba[a73_0x1c857d(0x1c6)]=a73_0x1c857d(0x1c4),a73_0x3d9cba['KEY_TEST_RETRY_OF']=a73_0x1c857d(0x202),a73_0x3d9cba['KEY_PLATFORM_INDEX']=a73_0x1c857d(0x204),a73_0x3d9cba['KEY_TEST_FAILURE']=a73_0x1c857d(0x1cf),a73_0x3d9cba[a73_0x1c857d(0x201)]=a73_0x1c857d(0x1fe),a73_0x3d9cba[a73_0x1c857d(0x1f7)]='test_failure_reason',a73_0x3d9cba[a73_0x1c857d(0x1f1)]='test_logs',a73_0x3d9cba[a73_0x1c857d(0x1eb)]=a73_0x1c857d(0x1fd),a73_0x3d9cba[a73_0x1c857d(0x1c9)]=a73_0x1c857d(0x1ad),a73_0x3d9cba['KEY_AUTOMATE_SESSION_NAME']=a73_0x1c857d(0x1dc),a73_0x3d9cba[a73_0x1c857d(0x1d5)]=a73_0x1c857d(0x207),a73_0x3d9cba[a73_0x1c857d(0x1f3)]=a73_0x1c857d(0x1c1),a73_0x3d9cba[a73_0x1c857d(0x1e0)]=a73_0x1c857d(0x1ec),a73_0x3d9cba[a73_0x1c857d(0x1d4)]=a73_0x1c857d(0x1c5),a73_0x3d9cba[a73_0x1c857d(0x1f5)]=a73_0x1c857d(0x206),a73_0x3d9cba[a73_0x1c857d(0x1e3)]=a73_0x1c857d(0x1be),a73_0x3d9cba[a73_0x1c857d(0x1c8)]=a73_0x1c857d(0x1f0),a73_0x3d9cba[a73_0x1c857d(0x1fc)]=a73_0x1c857d(0x1c3),a73_0x3d9cba[a73_0x1c857d(0x1cd)]=a73_0x1c857d(0x1fb),a73_0x3d9cba[a73_0x1c857d(0x209)]='hook_logs',a73_0x3d9cba[a73_0x1c857d(0x1e8)]='hook_name',a73_0x3d9cba[a73_0x1c857d(0x1b9)]=a73_0x1c857d(0x1af),a73_0x3d9cba[a73_0x1c857d(0x1f6)]=a73_0x1c857d(0x1af),a73_0x3d9cba['KIND_SCREENSHOT']=a73_0x1c857d(0x1e9),a73_0x3d9cba[a73_0x1c857d(0x1d1)]=a73_0x1c857d(0x1da),a73_0x3d9cba[a73_0x1c857d(0x205)]=a73_0x1c857d(0x1d9),a73_0x3d9cba['KEY_HOOKS_STARTED']=a73_0x1c857d(0x20b),a73_0x3d9cba[a73_0x1c857d(0x1ce)]=a73_0x1c857d(0x1e1),a73_0x3d9cba[a73_0x1c857d(0x20a)]=a73_0x1c857d(0x1db),a73_0x3d9cba[a73_0x1c857d(0x1dd)]=a73_0x1c857d(0x1aa),a73_0x3d9cba[a73_0x1c857d(0x1d7)]=a73_0x1c857d(0x1d3),a73_0x3d9cba[a73_0x1c857d(0x1f4)]=a73_0x1c857d(0x1b7),a73_0x3d9cba[a73_0x1c857d(0x200)]=a73_0x1c857d(0x1b5),a73_0x3d9cba[a73_0x1c857d(0x1cb)]=a73_0x1c857d(0x1ee),a73_0x3d9cba[a73_0x1c857d(0x1ab)]=a73_0x1c857d(0x1d6),a73_0x3d9cba[a73_0x1c857d(0x1f9)]=a73_0x1c857d(0x1b1),a73_0x3d9cba[a73_0x1c857d(0x1ba)]=a73_0x1c857d(0x1d2),a73_0x3d9cba[a73_0x1c857d(0x1ca)]=0xa,a73_0x3d9cba[a73_0x1c857d(0x1bf)]=0x2;const TestFrameworkConstants=a73_0x3d9cba;function a73_0x3bec(){const _0x7039e6=['KEY_FILE_SIZE','KEY_TEST_CODE','KEY_HOOK_FAILURE','KEY_HOOKS_FINISHED','test_failure','KEY_TEST_FRAMEWORK_VERSION','KIND_LOG','file_level','logs','KEY_EVENT_ENDED_AT','KEY_AUTOMATE_SESSION_STATUS','file_name','KEY_LOGS','KEY_TEST_TAGS','^(BEFORE_|AFTER_)','TEST_LOG','test_hook_last_started','automate_session_name','KEY_HOOK_LAST_FINISHED','KEY_TEST_FILE_PATH','test_framework_name','KEY_EVENT_STARTED_AT','test_hooks_finished','KEY_TEST_SCOPES','KEY_HOOK_RESULT','exports','test_started_at','4mPevFZ','KEY_TEST_RESULT','KEY_HOOK_NAME','TEST_SCREENSHOT','test_location','KEY_TEST_META','event_started_at','6152dexsQf','file_size','test_code','hook_failure_type','KEY_TEST_LOGS','test_uuid','KEY_AUTOMATE_SESSION_REASON','KEY_CUSTOM_TAGS','KEY_HOOK_ID','DEFAULT_HOOK_RESULT','KEY_TEST_FAILURE_REASON','test_ended_at','KEY_FILE_PATH','6480670pSGwez','hook_failure','KEY_HOOK_FAILURE_REASON','test_meta','test_failure_type','2618313UJPTpH','KEY_TEST_ATTACHMENTS','KEY_TEST_FAILURE_TYPE','retry_of','26043417LmKXsO','platform_index','HOOK_REGEX','hook_id','automate_session_status','KEY_TEST_LOCATION','KEY_HOOK_LOGS','KEY_HOOK_LAST_STARTED','test_hooks_started','test_id','test_framework_version','KEY_TEST_UUID','test_hook_last_finished','KEY_FILE_NAME','KEY_TEST_DURATION','test_session_name','1198383EDelQf','pending','KEY_TEST_ENDED_AT','file_path','6971136ggEvzt','test_file_path','KEY_TEST_RESULT_AT','test_attachments','test_scope','custom_metadata','593642UDibhm','DEFAULT_TEST_RESULT','KEY_FILE_LEVEL','test_scopes','KEY_TEST_FRAMEWORK_NAME','test_duration','hook_result','MAX_NESTED_STEP_DEPTH','test_result','automate_session_reason','KEY_TEST_SCOPE','hook_failure_reason','test_rerun_name','event_ended_at','KEY_TEST_RERUN_NAME','8099kKhyGn','KEY_HOOK_FAILURE_TYPE','KEY_SESSION_NAME','MAX_TOP_LEVEL_STEPS'];a73_0x3bec=function(){return _0x7039e6;};return a73_0x3bec();}module[a73_0x1c857d(0x1e4)]=TestFrameworkConstants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a74_0x460723=a74_0x2d0d;(function(_0xc734c2,_0x515fa3){const _0x484913=a74_0x2d0d,_0xd29bf9=_0xc734c2();while(!![]){try{const _0xfc37d5=-parseInt(_0x484913(0x251))/0x1+parseInt(_0x484913(0x1e2))/0x2*(parseInt(_0x484913(0x1fb))/0x3)+parseInt(_0x484913(0x1fc))/0x4*(-parseInt(_0x484913(0x1c9))/0x5)+parseInt(_0x484913(0x1cf))/0x6+-parseInt(_0x484913(0x20b))/0x7*(parseInt(_0x484913(0x1d2))/0x8)+-parseInt(_0x484913(0x1d8))/0x9+parseInt(_0x484913(0x1bc))/0xa;if(_0xfc37d5===_0x515fa3)break;else _0xd29bf9['push'](_0xd29bf9['shift']());}catch(_0x245213){_0xd29bf9['push'](_0xd29bf9['shift']());}}}(a74_0x174e,0x59d73));const TestFramework=require(a74_0x460723(0x1f1)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a74_0x460723(0x207)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a74_0x460723(0x21c)),CLIUtils=require(a74_0x460723(0x230)),TrackedInstance=require(a74_0x460723(0x259)),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a74_0x460723(0x25b)),logger=createClassLogger(a74_0x460723(0x1c8)),{v4:uuidv4}=require(a74_0x460723(0x1c1)),util=require(a74_0x460723(0x25d)),TestInfo=require(a74_0x460723(0x204)),GrpcClient=require(a74_0x460723(0x21b));function a74_0x174e(){const _0x3070d2=['test_run_id','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_CUSTOM_TAGS','failure_reason','\x20&\x20hook\x20=\x20','readLogObjects','NONE','\x20payload=','hookState','KEY_TEST_ID','logCreatedEvent','KEY_TEST_FILE_PATH','setTestDetails','getTestFrameworksVersions','UnhandledError','PRE','KEY_TEST_META','customRerunParam','Processing\x20','617821jHGWHv','\x20batch\x20','rQxQf','testFrameworkName','KEY_LOGS','Updated\x20cucumber\x20test\x20result:\x20','testUUID','KEY_HOOKS_STARTED','../instances/trackedInstance.js','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','../../../helpers/helper.js','runHooks','util','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','ZgDqM','\x20with\x20UUID:\x20','format','KEY_TEST_RESULT_AT','getAllData','body','QfqDP','KEY_EVENT_ENDED_AT','name','trackCucumberInstance:\x20saved\x20instance\x20contextId=','trackEvent','KEY_HOOK_RESULT','mtmni','Stored\x20pending\x20hook\x20for\x20testId:\x20','getRef','base64','createContext','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','browserstackPlatformIndex','matchHookRegex','hDIMN','\x20for\x20test:\x20','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','getTestUUID','getProcessId','failure_type','slice','length','KEY_TEST_CODE','eventJson','KEY_TEST_FAILURE_TYPE','get','twfzM','toISOString','KEY_TEST_LOGS','createTestFrameworkEventPayload\x20testId:\x20',',\x20state=','DEFAULT_HOOK_RESULT','testData','KEY_HOOK_LAST_FINISHED','DEFAULT_TEST_RESULT','KEY_HOOK_NAME','eNlBw','11690670PTCjfI','KEY_TEST_SCOPES','KEY_HOOK_ID','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','instance','uuid','fZoPn','trackCucumberInstance','KEY_HOOK_FAILURE_TYPE','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','AtXtN','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','CucumberTestFramework','161165YcBcSt','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','removePendingHooks','POST','unknown','mZbOF','2239038whBEoz','KEY_HOOK_LAST_STARTED','rerun_name','3951656mpqHlv','push','addPendingHook','setTrackedInstance','keys','toString','1266714kpZPIf','FpKaP','testFrameworkVersion','tags','Cucumber\x20log\x20created\x20event','getContext','sendLogCreatedEvent:\x20for\x20testId:\x20','KEY_HOOKS_FINISHED','cRWoG','\x20\x20and\x20args\x20=\x20','152VMkaPH','parseCucumberTestResult','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','KEY_HOOK_FAILURE_REASON','KEY_TEST_FRAMEWORK_NAME','testFrameworkState','processPendingHooks','from','\x20pending\x20hooks\x20for\x20testId:\x20','failure_data','sendLogCreatedEvent','KEY_TEST_ATTACHMENTS','KEY_TEST_STARTED_AT','ceil','executionContext','./testFramework','result','getTestFrameworks','endedAt','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','bJeZF','GOZWs','KEY_HOOK_LOGS','trackHookEvent','exports','4362OkjPRs','4eGbjsn',',\x20state:\x20','trackEvent:\x20unsupported\x20testFrameworkState=','scopes','file_name','QLasn','KEY_TEST_FAILURE','getThreadId','../TestInfo.js','args','error','../state/hookState.js','hooks','getTestDetails','KEY_TEST_LOCATION','7LOGthT','KEY_TEST_RESULT','KEY_TEST_FAILURE_REASON','meta','KEY_TEST_UUID','\x20&\x20hookState=','addMultipleEntries','inspect','KEY_TEST_SCOPE','ZIpwW','resolveInstance','nKMro','IMEky','concat','stringify','TEST','../grpcClient','../instances/testFrameworkInstance.js','auiVv','key','createTestFrameworkEventPayload','KEY_TEST_ENDED_AT','mFboL','KEY_TEST_FRAMEWORK_VERSION','storePendingHook','KEY_TEST_TAGS','split','\x20target=','XmMdv','uGwjS','hook_type','pop','eQPJL','Tracked\x20cucumber\x20hook\x20event:\x20','location','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','ZMGfv','../cliUtils.js',',\x20storing\x20as\x20pending\x20hook','failure','getId','\x20testState:\x20','parseCucumberTest','debug','passed','Parsed\x20cucumber\x20test:\x20','started_at','getCurrentTestState',',\x20hookState:\x20','test'];a74_0x174e=function(){return _0x3070d2;};return a74_0x174e();}class CucumberTestFramework extends TestFramework{constructor(_0x5335ac,_0x10a6f0,_0x574eed){super(_0x5335ac,_0x10a6f0,_0x574eed);}async['trackEvent'](_0x141332,_0xfe8616,_0x52b884={}){const _0x4bab10=a74_0x460723,_0x3b91c2={};_0x3b91c2[_0x4bab10(0x1bb)]=_0x4bab10(0x1f5),_0x3b91c2[_0x4bab10(0x1f6)]=function(_0x2c74b3,_0x1e70c3){return _0x2c74b3===_0x1e70c3;},_0x3b91c2['ZMGfv']=function(_0x1fdae9,_0x3d88ea){return _0x1fdae9===_0x3d88ea;},_0x3b91c2[_0x4bab10(0x1d9)]=function(_0x35371a,_0x286d13){return _0x35371a===_0x286d13;},_0x3b91c2[_0x4bab10(0x1ce)]='trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s';const _0x2b59d5=_0x3b91c2;await super[_0x4bab10(0x269)](_0x141332,_0xfe8616,_0x52b884);const _0x3b8fe2=this[_0x4bab10(0x215)](_0x141332,_0xfe8616,_0x52b884);if(!_0x3b8fe2){logger[_0x4bab10(0x236)](_0x2b59d5['eNlBw']);return;}try{let _0x1c1299,_0x2c1eb1;switch(_0x141332){case TestFrameworkState['TEST']:_0x1c1299=_0x52b884['test'],_0x2c1eb1=TestInfo[_0x4bab10(0x276)](_0x1c1299['id']);if(_0x2b59d5[_0x4bab10(0x1f6)](_0xfe8616,HookState[_0x4bab10(0x24d)])){logger[_0x4bab10(0x236)](_0x4bab10(0x1ca)+_0x1c1299['id']);const _0x13f125={};_0x13f125[_0x4bab10(0x257)]=_0x2c1eb1,_0x13f125['testData']=_0x1c1299,_0x3b8fe2[_0x4bab10(0x211)](this['parseCucumberTest'](_0x13f125)),logger[_0x4bab10(0x236)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x1c1299['id']),await this[_0x4bab10(0x1e8)](_0x3b8fe2,_0x1c1299['id']);}else{if(_0x2b59d5[_0x4bab10(0x22f)](_0xfe8616,HookState['POST'])){const _0x45bcf4={};_0x45bcf4[_0x4bab10(0x257)]=_0x2c1eb1,_0x45bcf4[_0x4bab10(0x1b7)]=_0x1c1299,_0x3b8fe2[_0x4bab10(0x211)](this[_0x4bab10(0x1e3)](_0x45bcf4)),await this[_0x4bab10(0x1e8)](_0x3b8fe2,_0x1c1299['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x2b59d5['FpKaP'](_0xfe8616,HookState[_0x4bab10(0x1cc)])&&await this[_0x4bab10(0x1ec)](_0x3b8fe2,_0x141332,_0x52b884);break;default:if(CLIUtils[_0x4bab10(0x272)](_0x141332[_0x4bab10(0x1d7)]()[_0x4bab10(0x225)]('.')[0x1])){const _0x3c65d1=await this[_0x4bab10(0x1f9)](_0x3b8fe2,_0x141332,_0xfe8616,_0x52b884);_0x3b8fe2[_0x4bab10(0x211)](_0x3c65d1);}else logger['debug'](_0x4bab10(0x1fe)+_0x141332+_0x4bab10(0x210)+_0xfe8616);break;}}catch(_0x4295b3){logger[_0x4bab10(0x206)](util[_0x4bab10(0x261)](_0x2b59d5[_0x4bab10(0x1ce)],_0x141332,_0xfe8616,_0x52b884[_0x4bab10(0x27a)],_0x4295b3));}_0x52b884['instance']=_0x3b8fe2,await this[_0x4bab10(0x25c)](_0x3b8fe2,_0x141332,_0xfe8616,_0x52b884);}[a74_0x460723(0x215)](_0x48ad79,_0x12bd7b,_0xd66bc5={}){const _0x4773b0=a74_0x460723,_0x22552a={};_0x22552a[_0x4773b0(0x221)]=function(_0x69a91e,_0x45b66e){return _0x69a91e===_0x45b66e;};const _0x3430cb=_0x22552a;let _0x5685f9=null;return(_0x3430cb[_0x4773b0(0x221)](_0x48ad79,TestFrameworkState['INIT_TEST'])||_0x3430cb[_0x4773b0(0x221)](_0x48ad79,TestFrameworkState[_0x4773b0(0x244)]))&&this['trackCucumberInstance'](_0x48ad79,_0xd66bc5),_0x5685f9=TestFramework['getTrackedInstance'](),_0x5685f9;}[a74_0x460723(0x1c3)](_0x153cac,_0x3f83f9){const _0xb9d852=a74_0x460723,_0xa2117d=CLIUtils['getCurrentInstanceName'](),_0x19cb0f=TrackedInstance[_0xb9d852(0x26f)](_0xa2117d);let _0x5d6e76=null;logger['debug'](_0xb9d852(0x270)+_0xa2117d+_0xb9d852(0x1b5)+_0x153cac),_0x5d6e76=new TestFrameworkInstance(_0x19cb0f,this[_0xb9d852(0x1f3)](),this['getTestFrameworksVersions'](),_0x153cac,HookState['NONE']),TestFramework[_0xb9d852(0x1d5)](_0x19cb0f,_0x5d6e76),logger[_0xb9d852(0x236)](_0xb9d852(0x268)+_0x19cb0f[_0xb9d852(0x233)]()+_0xb9d852(0x226)+_0xa2117d);}[a74_0x460723(0x235)](_0x484dc5){const _0x1bfe14=a74_0x460723,_0x1ae09e={};_0x1ae09e[_0x1bfe14(0x1b1)]=_0x1bfe14(0x23e);const _0x2a920b=_0x1ae09e,{testUUID:_0x5ce029,testData:_0x1c3d1f}=_0x484dc5;if(!_0x1c3d1f||!_0x1c3d1f[_0x1bfe14(0x1c1)])return logger['debug'](_0x2a920b[_0x1bfe14(0x1b1)]),{};const _0x453a68=_0x5ce029,_0x2e8639=_0x1c3d1f[_0x1bfe14(0x1c1)],_0x5dc302=this['getTestFrameworks']()[0x0],_0x3f48d3=this[_0x1bfe14(0x24b)](),_0x2a1f7b={[TestFrameworkConstants[_0x1bfe14(0x1e6)]]:_0x5dc302,[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x3f48d3[_0x5dc302],[TestFrameworkConstants[_0x1bfe14(0x1b3)]]:[],[TestFrameworkConstants[_0x1bfe14(0x1df)]]:{},[TestFrameworkConstants[_0x1bfe14(0x258)]]:{},[TestFrameworkConstants[_0x1bfe14(0x20f)]]:_0x453a68,[TestFrameworkConstants[_0x1bfe14(0x20c)]]:TestFrameworkConstants[_0x1bfe14(0x1b9)],[TestFrameworkConstants['KEY_AUTOMATE_SESSION_NAME']]:_0x1c3d1f[_0x1bfe14(0x267)]||'',[TestFrameworkConstants[_0x1bfe14(0x249)]]:_0x1c3d1f[_0x1bfe14(0x200)]||'',[TestFrameworkConstants[_0x1bfe14(0x247)]]:_0x2e8639,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x1c3d1f[_0x1bfe14(0x267)]||'',[TestFrameworkConstants[_0x1bfe14(0x20a)]]:_0x1c3d1f[_0x1bfe14(0x22d)]||'',[TestFrameworkConstants[_0x1bfe14(0x27b)]]:_0x1c3d1f[_0x1bfe14(0x264)]?.['code']||null,[TestFrameworkConstants[_0x1bfe14(0x224)]]:_0x1c3d1f[_0x1bfe14(0x1db)]||[],[TestFrameworkConstants[_0x1bfe14(0x1ee)]]:_0x1c3d1f['startedAt']||new Date()['toISOString'](),[TestFrameworkConstants[_0x1bfe14(0x213)]]:_0x1c3d1f[_0x1bfe14(0x1ff)]?.[0x0]||'',[TestFrameworkConstants[_0x1bfe14(0x1bd)]]:_0x1c3d1f[_0x1bfe14(0x1ff)]||[],[TestFrameworkConstants['KEY_TEST_RERUN_NAME']]:_0x1c3d1f[_0x1bfe14(0x24f)]?.[_0x1bfe14(0x1d1)]||_0x1c3d1f[_0x1bfe14(0x267)]||'',[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:{},[TestFrameworkConstants[_0x1bfe14(0x24e)]]:_0x1c3d1f['meta']||{}};TestInfo['setTestDetails'](_0x2e8639,_0x2a1f7b),logger[_0x1bfe14(0x236)](_0x1bfe14(0x238)+_0x1c3d1f[_0x1bfe14(0x267)]+_0x1bfe14(0x260)+_0x453a68);const _0x54e529={};return _0x54e529[_0x2e8639]=_0x2a1f7b,_0x54e529;}['parseCucumberTestResult'](_0x3b462a){const _0x31a3e0=a74_0x460723,_0x397d85={'ZsSak':_0x31a3e0(0x1bf),'XmMdv':_0x31a3e0(0x1cd),'GOZWs':function(_0x15e2d1,_0x42446d){return _0x15e2d1===_0x42446d;},'EDgfG':'failed','auiVv':_0x31a3e0(0x24c),'pwlAa':function(_0x1a4d16,_0xe225dd,_0xa85eb9){return _0x1a4d16(_0xe225dd,_0xa85eb9);},'bjSgf':function(_0x157501,_0xfd9d8b){return _0x157501>_0xfd9d8b;}},{testUUID:_0x46cc42,testData:_0x22b02a}=_0x3b462a;if(!_0x22b02a||!_0x22b02a[_0x31a3e0(0x1c1)])return logger[_0x31a3e0(0x236)](_0x397d85['ZsSak']),{};const _0x2fa984=this[_0x31a3e0(0x215)](TestFrameworkState[_0x31a3e0(0x21a)],HookState[_0x31a3e0(0x1cc)]),_0x572d57=_0x22b02a[_0x31a3e0(0x1c1)],_0x573a29=TestInfo[_0x31a3e0(0x209)](_0x572d57)||{},_0x4c2d1a=_0x573a29?_0x573a29[TestFrameworkConstants[_0x31a3e0(0x240)]]||{}:{},_0x3c58b9={..._0x573a29,[TestFrameworkConstants[_0x31a3e0(0x20c)]]:_0x22b02a['result']||_0x397d85[_0x31a3e0(0x227)],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x22b02a['finishedAt']||new Date()[_0x31a3e0(0x1b2)](),[TestFrameworkConstants[_0x31a3e0(0x262)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x31a3e0(0x240)]]:_0x4c2d1a,[TestFrameworkConstants[_0x31a3e0(0x255)]]:[],[TestFrameworkConstants[_0x31a3e0(0x24e)]]:_0x22b02a[_0x31a3e0(0x20e)]||{}};_0x397d85[_0x31a3e0(0x1f7)](_0x22b02a['result'],_0x397d85['EDgfG'])&&_0x22b02a[_0x31a3e0(0x232)]&&(_0x3c58b9[TestFrameworkConstants[_0x31a3e0(0x27d)]]=_0x22b02a[_0x31a3e0(0x278)]||_0x397d85[_0x31a3e0(0x21d)],_0x3c58b9[TestFrameworkConstants[_0x31a3e0(0x20d)]]=_0x22b02a[_0x31a3e0(0x241)]||'',_0x3c58b9[TestFrameworkConstants[_0x31a3e0(0x202)]]=_0x22b02a[_0x31a3e0(0x232)]);const _0x313ea9=TestInfo['getTestDetails'](_0x572d57)[TestFrameworkConstants[_0x31a3e0(0x1ed)]]||{},_0xa762d1=_0x397d85['pwlAa'](getManualUploadLogs,_0x313ea9,_0x2fa984['getAllData']()[_0x31a3e0(0x1b0)](_0x572d57)[TestFrameworkConstants[_0x31a3e0(0x20f)]]);if(_0x397d85['bjSgf'](_0xa762d1[_0x31a3e0(0x27a)],0x0)){const _0x4501fc=_0x3c58b9[TestFrameworkConstants[_0x31a3e0(0x255)]]||[];_0x3c58b9[TestFrameworkConstants[_0x31a3e0(0x255)]]=[..._0x4501fc,..._0xa762d1];}_0x22b02a[_0x31a3e0(0x208)]&&_0x397d85['bjSgf'](_0x22b02a[_0x31a3e0(0x208)][_0x31a3e0(0x27a)],0x0)&&(_0x3c58b9[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x22b02a[_0x31a3e0(0x208)]);TestInfo[_0x31a3e0(0x24a)](_0x572d57,_0x3c58b9),logger[_0x31a3e0(0x236)](_0x31a3e0(0x256)+_0x22b02a[_0x31a3e0(0x267)]+'\x20with\x20result:\x20'+_0x22b02a[_0x31a3e0(0x1f2)]);const _0x4f4ac5={};return _0x4f4ac5[_0x572d57]=_0x3c58b9,_0x4f4ac5;}async[a74_0x460723(0x1f9)](_0x10eb47,_0x93bef0,_0x5d6c45,_0x29d2a0){const _0x283d4f=a74_0x460723,_0x3c2e4b={'nKMro':_0x283d4f(0x1c5),'wqHIe':function(_0x25d994){return _0x25d994();},'QLasn':function(_0x4c5e00,_0x3afde3){return _0x4c5e00 in _0x3afde3;},'CrOsr':function(_0x145c6b,_0x1c0c9c){return _0x145c6b===_0x1c0c9c;},'AtXtN':function(_0x1cf354,_0x451e7f){return _0x1cf354===_0x451e7f;},'ZIpwW':function(_0x350ace,_0x472e73){return _0x350ace>_0x472e73;},'rQxQf':function(_0xc872cb,_0x10ae6f){return _0xc872cb===_0x10ae6f;},'eQPJL':'failed','zYYAl':_0x283d4f(0x24c),'hDIMN':_0x283d4f(0x237),'zGTeu':function(_0x5b4e8c,_0x1fd2bc){return _0x5b4e8c!==_0x1fd2bc;}},{hookData:_0x151f47}=_0x29d2a0;if(!_0x151f47)return logger[_0x283d4f(0x236)](_0x3c2e4b[_0x283d4f(0x216)]),{};const _0x26d3b1=_0x151f47['uuid']||_0x3c2e4b['wqHIe'](uuidv4),_0x3174c7=_0x151f47[_0x283d4f(0x23d)],_0x3348c3=_0x93bef0['toString']()[_0x283d4f(0x225)]('.')[0x1],_0x370c93=TestInfo[_0x283d4f(0x209)](_0x3174c7)[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{},_0x58de54=_0x10eb47[_0x283d4f(0x263)]()[_0x283d4f(0x1b0)](_0x3174c7);if(!_0x58de54)return logger[_0x283d4f(0x236)](_0x283d4f(0x1c7)+_0x3174c7+_0x283d4f(0x231)),this[_0x283d4f(0x223)](_0x10eb47,_0x3174c7,_0x93bef0,_0x5d6c45,_0x29d2a0),{};let _0x5562de=_0x58de54[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x5562de&&(_0x5562de={});!_0x3c2e4b[_0x283d4f(0x201)](_0x3348c3,_0x5562de)&&(_0x5562de[_0x3348c3]=[]);let _0x3f2f29=_0x58de54[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x3f2f29&&(_0x3f2f29={});!_0x3c2e4b[_0x283d4f(0x201)](_0x3348c3,_0x3f2f29)&&(_0x3f2f29[_0x3348c3]=[]);const _0x42e26c={[TestFrameworkConstants[_0x283d4f(0x258)]]:_0x5562de,[TestFrameworkConstants[_0x283d4f(0x1df)]]:_0x3f2f29},_0x3c5921={};_0x3c5921[_0x3174c7]=_0x42e26c;const _0x3ab7ed=_0x3c5921;if(_0x3c2e4b['CrOsr'](_0x5d6c45,HookState['PRE'])){const _0x59f284={[TestFrameworkConstants[_0x283d4f(0x1be)]]:_0x26d3b1,[TestFrameworkConstants[_0x283d4f(0x26a)]]:TestFrameworkConstants[_0x283d4f(0x1b6)],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0x151f47[_0x283d4f(0x239)],[TestFrameworkConstants[_0x283d4f(0x1f8)]]:[],[TestFrameworkConstants[_0x283d4f(0x1ba)]]:_0x151f47['hook_type'],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x370c93};_0x59f284[_0x283d4f(0x21e)]=_0x3348c3;const _0x1da92b=_0x59f284;_0x5562de[_0x3348c3][_0x283d4f(0x1d3)](_0x1da92b),_0x3ab7ed[_0x3174c7][TestFrameworkConstants[_0x283d4f(0x1d0)]]=_0x3348c3,logger[_0x283d4f(0x236)](_0x283d4f(0x25e)+_0x3348c3+_0x283d4f(0x242)+_0x1da92b+_0x283d4f(0x1e1)+_0x29d2a0);}else{if(_0x3c2e4b[_0x283d4f(0x1c6)](_0x5d6c45,HookState[_0x283d4f(0x1cc)])){const _0x4ef47d=_0x151f47['result'],_0x283a10=_0x5562de[_0x3348c3]||[];logger[_0x283d4f(0x236)](_0x283d4f(0x275)+_0x283a10+'\x20and\x20args\x20=\x20'+_0x29d2a0);if(_0x3c2e4b[_0x283d4f(0x214)](_0x283a10['length'],0x0)){const _0x1ebb6a=_0x283a10[_0x283d4f(0x22a)]();_0x3c2e4b[_0x283d4f(0x253)](_0x151f47['result'],_0x3c2e4b[_0x283d4f(0x22b)])&&_0x151f47[_0x283d4f(0x1eb)]?(_0x1ebb6a[TestFrameworkConstants[_0x283d4f(0x1c4)]]=_0x151f47[_0x283d4f(0x278)]||_0x3c2e4b['zYYAl'],_0x1ebb6a[TestFrameworkConstants[_0x283d4f(0x1e5)]]=_0x151f47[_0x283d4f(0x241)]||'',_0x1ebb6a[TestFrameworkConstants['KEY_HOOK_FAILURE']]=_0x151f47[_0x283d4f(0x1eb)]):_0x1ebb6a[TestFrameworkConstants[_0x283d4f(0x26a)]]=_0x3c2e4b[_0x283d4f(0x273)];_0x3c2e4b['zGTeu'](_0x4ef47d,TestFrameworkConstants[_0x283d4f(0x1b6)])&&(_0x1ebb6a[TestFrameworkConstants[_0x283d4f(0x26a)]]=_0x4ef47d);_0x1ebb6a[TestFrameworkConstants[_0x283d4f(0x266)]]=_0x151f47['finished_at']||new Date()[_0x283d4f(0x1b2)](),_0x1ebb6a[TestFrameworkConstants[_0x283d4f(0x240)]]=_0x370c93;const _0x1755a3=_0x1ebb6a[TestFrameworkConstants[_0x283d4f(0x1be)]];!_0x3f2f29[_0x3348c3]&&(_0x3f2f29[_0x3348c3]=[]),_0x3f2f29[_0x3348c3][_0x283d4f(0x1d3)](_0x1ebb6a),_0x3ab7ed[_0x3174c7][TestFrameworkConstants[_0x283d4f(0x1b8)]]=_0x3348c3;}}}return logger[_0x283d4f(0x236)](_0x283d4f(0x22c)+_0x151f47[_0x283d4f(0x229)]+'\x20with\x20id\x20'+_0x26d3b1+_0x283d4f(0x274)+_0x3174c7),_0x3ab7ed;}[a74_0x460723(0x21f)](_0x574321){const _0x46e72d=a74_0x460723,_0xb77037={};_0xb77037['IMEky']=_0x46e72d(0x26e);const _0x17a905=_0xb77037;try{const _0x3c6ae4=_0x574321[_0x46e72d(0x23c)]?_0x574321[_0x46e72d(0x23c)]['id']:_0x574321['hookData'][_0x46e72d(0x23d)],_0x57cfca=_0x574321[_0x46e72d(0x1c0)],_0x4662a5=_0x57cfca[_0x46e72d(0x1dd)](),_0x4169f3=_0x57cfca[_0x46e72d(0x263)]()[_0x46e72d(0x1b0)](_0x3c6ae4);if(!_0x4169f3)return logger['debug']('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x3c6ae4),{};logger[_0x46e72d(0x236)](_0x46e72d(0x1b4)+_0x3c6ae4);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x43a95a='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x3a40c7='',[TestFrameworkConstants[_0x46e72d(0x1ee)]]:_0x58e167='',[TestFrameworkConstants[_0x46e72d(0x220)]]:_0x2c5aea=''}=_0x4169f3,_0x8a1ba5=_0x57cfca[_0x46e72d(0x23a)]()[_0x46e72d(0x1d7)]()[_0x46e72d(0x225)]('.')[0x1],_0x479044=_0x57cfca['getCurrentHookState']()[_0x46e72d(0x1d7)]()[_0x46e72d(0x225)]('.')[0x1],_0x19c563=global?.[_0x46e72d(0x271)]??0x0,_0x2f1f48=_0x57cfca[_0x46e72d(0x26d)](),_0x32a87c=Buffer[_0x46e72d(0x1e9)](JSON[_0x46e72d(0x219)](_0x4169f3))[_0x46e72d(0x1d7)](_0x17a905[_0x46e72d(0x217)]),_0x581e34={'hash':_0x4662a5['getId'](),'threadId':_0x4662a5[_0x46e72d(0x203)]()['toString'](),'processId':_0x4662a5[_0x46e72d(0x277)]()[_0x46e72d(0x1d7)]()},_0x49872f={};_0x49872f['platformIndex']=_0x19c563,_0x49872f[_0x46e72d(0x254)]=_0x43a95a,_0x49872f[_0x46e72d(0x1da)]=_0x3a40c7,_0x49872f[_0x46e72d(0x1e7)]=_0x8a1ba5,_0x49872f['hookState']=_0x479044,_0x49872f['startedAt']=_0x58e167,_0x49872f[_0x46e72d(0x1f4)]=_0x2c5aea,_0x49872f['uuid']=_0x2f1f48,_0x49872f[_0x46e72d(0x27c)]=_0x32a87c,_0x49872f[_0x46e72d(0x1f0)]=_0x581e34;const _0x4fd02c=_0x49872f;return logger[_0x46e72d(0x236)](_0x46e72d(0x25a)+_0x3c6ae4+_0x46e72d(0x234)+_0x8a1ba5+'\x20hookState:\x20'+_0x479044),_0x4fd02c;}catch(_0xa6f1df){return logger[_0x46e72d(0x206)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util['format'](_0xa6f1df)),{};}}async['sendLogCreatedEvent'](_0x805a3f,_0x2a61ba,_0x4466ab){const _0xf2af95=a74_0x460723,_0xd56c25={'mncIY':function(_0x24548a,_0x19b38a,_0x1ffb02){return _0x24548a(_0x19b38a,_0x1ffb02);},'ZgDqM':function(_0x155a6e,_0x61edc){return _0x155a6e===_0x61edc;},'ehPeT':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','vHdJb':function(_0x111dd7,_0x33dc47){return _0x111dd7/_0x33dc47;},'rcltK':function(_0x4d5b05,_0xa67dbc){return _0x4d5b05<_0xa67dbc;},'cRWoG':function(_0x58609e,_0x2e427a){return _0x58609e*_0x2e427a;},'mtmni':function(_0x22e3fe,_0x42cdb6){return _0x22e3fe+_0x42cdb6;},'QfqDP':function(_0x1000f1,_0x1daac6){return _0x1000f1+_0x1daac6;},'fZoPn':_0xf2af95(0x1dc)};try{const _0x304bf3=_0x4466ab[_0xf2af95(0x257)],_0x578666=_0x805a3f['getAllData']()['get'](_0x304bf3),{[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x4bcaec='',[TestFrameworkConstants[_0xf2af95(0x222)]]:_0x4f5f73=''}=_0x578666,_0x64d863=TestInfo[_0xf2af95(0x243)](_0x304bf3),_0x49af38=TestInfo['getTestDetails'](_0x304bf3)[TestFrameworkConstants[_0xf2af95(0x1ed)]]||{},_0x358842=_0xd56c25['mncIY'](getMediaArtifactsLogs,_0x49af38,_0x805a3f['getAllData']()[_0xf2af95(0x1b0)](_0x304bf3)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x30e186=(_0x64d863||[])[_0xf2af95(0x218)](_0x358842||[]);if(!_0x30e186||_0xd56c25[_0xf2af95(0x25f)](_0x30e186[_0xf2af95(0x27a)],0x0)){logger[_0xf2af95(0x236)](_0xd56c25['ehPeT']);return;}const _0x4d0e2f=0x28,_0x524ba9=Math[_0xf2af95(0x1ef)](_0xd56c25['vHdJb'](_0x30e186[_0xf2af95(0x27a)],_0x4d0e2f));for(let _0x4825b8=0x0;_0xd56c25['rcltK'](_0x4825b8,_0x524ba9);_0x4825b8++){const _0x3f7c39=_0xd56c25[_0xf2af95(0x1e0)](_0x4825b8,_0x4d0e2f),_0x341c4=_0xd56c25['mtmni'](_0x3f7c39,_0x4d0e2f),_0x3d0369=_0x30e186[_0xf2af95(0x279)](_0x3f7c39,_0x341c4),_0x359698={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x3d0369,'testFrameworkName':_0x4bcaec,'testFrameworkVersion':_0x4f5f73,'testFrameworkState':_0x2a61ba['toString']()[_0xf2af95(0x225)]('.')[0x1]};logger[_0xf2af95(0x236)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x304bf3+_0xf2af95(0x252)+_0xd56c25[_0xf2af95(0x26b)](_0x4825b8,0x1)+'/'+_0x524ba9+_0xf2af95(0x245)+util[_0xf2af95(0x212)](_0x359698));const _0x5a1c62=await GrpcClient['getInstance']()[_0xf2af95(0x248)](_0x359698);logger[_0xf2af95(0x236)](_0xf2af95(0x1de)+_0x304bf3+'\x20batch\x20'+_0xd56c25[_0xf2af95(0x265)](_0x4825b8,0x1)+'/'+_0x524ba9+'\x20response='+util['inspect'](_0x5a1c62));}}catch(_0x24e244){logger[_0xf2af95(0x206)](_0xf2af95(0x1e4)+util[_0xf2af95(0x261)](_0x24e244));}logger[_0xf2af95(0x236)](_0xd56c25[_0xf2af95(0x1c2)]);}[a74_0x460723(0x223)](_0x2169f3,_0x447336,_0x43268f,_0x25e736,_0x3c8900){const _0x7b8d22=a74_0x460723,_0x384cd0={'testId':_0x447336,'testFrameworkState':_0x43268f,'hookState':_0x25e736,'args':_0x3c8900,'timestamp':new Date()[_0x7b8d22(0x1b2)]()};_0x2169f3[_0x7b8d22(0x1d4)](_0x447336,_0x384cd0),logger[_0x7b8d22(0x236)](_0x7b8d22(0x26c)+_0x447336+_0x7b8d22(0x1fd)+_0x43268f+_0x7b8d22(0x23b)+_0x25e736);}async[a74_0x460723(0x1e8)](_0x240333,_0x293f2d){const _0x578215=a74_0x460723,_0x3b14bb={};_0x3b14bb[_0x578215(0x228)]=function(_0x286b07,_0x3fe7e4){return _0x286b07>_0x3fe7e4;};const _0x267209=_0x3b14bb;if(!_0x240333['hasPendingHooks'](_0x293f2d))return;const _0x23c078=_0x240333['getPendingHooks'](_0x293f2d);logger[_0x578215(0x236)](_0x578215(0x250)+_0x23c078['length']+_0x578215(0x1ea)+_0x293f2d);for(const _0x5ab3b6 of _0x23c078){try{const _0x37b84f=await this[_0x578215(0x1f9)](_0x240333,_0x5ab3b6[_0x578215(0x1e7)],_0x5ab3b6[_0x578215(0x246)],_0x5ab3b6[_0x578215(0x205)]);_0x37b84f&&_0x267209[_0x578215(0x228)](Object[_0x578215(0x1d6)](_0x37b84f)[_0x578215(0x27a)],0x0)&&_0x240333[_0x578215(0x211)](_0x37b84f),await this[_0x578215(0x25c)](_0x240333,_0x5ab3b6['testFrameworkState'],_0x5ab3b6['hookState'],_0x5ab3b6[_0x578215(0x205)]);}catch(_0xabb893){logger[_0x578215(0x206)](_0x578215(0x23f)+_0x293f2d+',\x20error:\x20'+_0xabb893);}}_0x240333[_0x578215(0x1cb)](_0x293f2d),logger[_0x578215(0x236)](_0x578215(0x22e)+_0x293f2d);}}function a74_0x2d0d(_0x2dfd25,_0x5b0673){const _0x174edc=a74_0x174e();return a74_0x2d0d=function(_0x2d0d08,_0x1cb769){_0x2d0d08=_0x2d0d08-0x1b0;let _0x2a6c77=_0x174edc[_0x2d0d08];return _0x2a6c77;},a74_0x2d0d(_0x2dfd25,_0x5b0673);}module[a74_0x460723(0x1fa)]=CucumberTestFramework;
|
|
1
|
+
const a74_0x5ad189=a74_0x7725;function a74_0x7725(_0xd7cdb2,_0x5f5744){const _0x57a3f2=a74_0x57a3();return a74_0x7725=function(_0x7725e3,_0x3691cd){_0x7725e3=_0x7725e3-0xf2;let _0x40c938=_0x57a3f2[_0x7725e3];return _0x40c938;},a74_0x7725(_0xd7cdb2,_0x5f5744);}function a74_0x57a3(){const _0x269b14=['UnhandledError','eventJson','location','DxNGl','../instances/testFrameworkInstance.js','key','getContext','176912ulCGUs','KEY_TEST_META','testFrameworkState','createTestFrameworkEventPayload\x20testId:\x20','\x20payload=',',\x20hookState:\x20','base64','gYFiY','KEY_TEST_FAILURE','BZVPm','parseCucumberTestResult','KEY_TEST_FAILURE_REASON','getTestFrameworks','body','get','1746mrBYpU','KEY_TEST_FILE_PATH','trackEvent','KEY_LOGS',',\x20error:\x20','KEY_CUSTOM_TAGS','concat','tags','10lMHUqt','matchHookRegex','createContext','pop','Parsed\x20cucumber\x20test:\x20','code','debug','platformIndex','KnYSf','KEY_TEST_CODE','UmFNU','gvley','871192OqFrWD','KEY_HOOKS_FINISHED','KEY_TEST_STARTED_AT','startedAt','../state/testFrameworkState.js','setTrackedInstance','toISOString','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','./testFramework','test','TEST','lmQZm','rerun_name','KEY_TEST_TAGS','hgTwK','2261SxYoBK','hETIZ','trackEvent:\x20unsupported\x20testFrameworkState=','\x20hookState:\x20','970635lodBpi','error','toString','KEY_EVENT_ENDED_AT','name','KEY_TEST_SCOPE','storePendingHook','failure_type','18AGjHCp','inspect','uuid','testFrameworkName','addPendingHook','slice','bKghy','KEY_TEST_FRAMEWORK_NAME','getRef','Updated\x20cucumber\x20test\x20result:\x20','trackCucumberInstance','meta','addMultipleEntries','HYewf','30863ytiCca','tiyCE','finished_at','\x20pending\x20hooks\x20for\x20testId:\x20','\x20testState:\x20','\x20with\x20UUID:\x20','\x20with\x20result:\x20','sendLogCreatedEvent','runHooks','getAllData','resolveInstance','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','UdEPU','endedAt','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','pyFAu','KEY_HOOK_LAST_FINISHED','instance','VHQTt','parseCucumberTest','finishedAt','KEY_TEST_RERUN_NAME','length','browserstackPlatformIndex','KEY_TEST_SCOPES','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','getPendingHooks','KEY_HOOKS_STARTED',',\x20state:\x20','\x20target=','DEFAULT_HOOK_RESULT','Stored\x20pending\x20hook\x20for\x20testId:\x20','KEY_HOOK_NAME','failure','processPendingHooks','KEY_TEST_FAILURE_TYPE','KEY_TEST_ATTACHMENTS','\x20and\x20args\x20=\x20','\x20&\x20hookState=','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','1667080WkDuKE','slfdj','fcRTr',',\x20state=','NONE','getTestDetails','WSTPV','args','getCurrentTestState','result','hookState','../state/hookState.js','test_run_id','setTestDetails','WRKJz','ZviAx','\x20response=','unknown','hook_type','createTestFrameworkEventPayload','KEY_AUTOMATE_SESSION_NAME','zyPtF','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','split','OnEcb','removePendingHooks','getInstance','moUfP','trackHookEvent','ofKHC','testUUID','KEY_HOOK_FAILURE','\x20for\x20test:\x20','POST','KEY_HOOK_FAILURE_REASON','scopes','util','KEY_TEST_ID','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','KEY_TEST_RESULT_AT','\x20batch\x20','file_name','getCurrentInstanceName','INIT_TEST','getThreadId','stringify','../TestInfo.js','format','customRerunParam','trackCucumberInstance:\x20saved\x20instance\x20contextId=','PtyUb','8974359eBwnXu','\x20with\x20id\x20','../../../helpers/classLogger.js','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','exports','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','\x20\x20and\x20args\x20=\x20','LOG_REPORT','KEY_TEST_LOCATION',',\x20storing\x20as\x20pending\x20hook','PbmFN','Processing\x20','KEY_HOOK_RESULT','getTrackedInstance','KEY_TEST_RESULT','hooks','KEY_TEST_FRAMEWORK_VERSION','hookData','KEY_TEST_ENDED_AT','sendLogCreatedEvent:\x20for\x20testId:\x20','CucumberTestFramework','getId','KEY_TEST_NAME','KEY_HOOK_FAILURE_TYPE','Tracked\x20cucumber\x20hook\x20event:\x20','passed','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','getProcessId','../../../helpers/helper.js','testData','KEY_EVENT_STARTED_AT','failure_data','readLogObjects','KEY_TEST_UUID','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20'];a74_0x57a3=function(){return _0x269b14;};return a74_0x57a3();}(function(_0x1fe262,_0x332dcc){const _0x25740c=a74_0x7725,_0xcc6a91=_0x1fe262();while(!![]){try{const _0x35bc25=parseInt(_0x25740c(0x1b8))/0x1+parseInt(_0x25740c(0x16b))/0x2*(-parseInt(_0x25740c(0x1aa))/0x3)+-parseInt(_0x25740c(0x10d))/0x4+parseInt(_0x25740c(0x1a2))/0x5+parseInt(_0x25740c(0x17a))/0x6*(-parseInt(_0x25740c(0x19e))/0x7)+parseInt(_0x25740c(0x18e))/0x8+-parseInt(_0x25740c(0x140))/0x9*(-parseInt(_0x25740c(0x182))/0xa);if(_0x35bc25===_0x332dcc)break;else _0xcc6a91['push'](_0xcc6a91['shift']());}catch(_0x326777){_0xcc6a91['push'](_0xcc6a91['shift']());}}}(a74_0x57a3,0x46b05));const TestFramework=require(a74_0x5ad189(0x197)),TestFrameworkState=require(a74_0x5ad189(0x192)),HookState=require(a74_0x5ad189(0x118)),{createClassLogger}=require(a74_0x5ad189(0x142)),TestFrameworkInstance=require(a74_0x5ad189(0x168)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a74_0x5ad189(0x15d)),logger=createClassLogger(a74_0x5ad189(0x154)),{v4:uuidv4}=require(a74_0x5ad189(0x1ac)),util=require(a74_0x5ad189(0x131)),TestInfo=require(a74_0x5ad189(0x13b)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x193120,_0x2a8161,_0x3f3e37){super(_0x193120,_0x2a8161,_0x3f3e37);}async[a74_0x5ad189(0x17c)](_0x39c83e,_0x4b5e7f,_0x1d9442={}){const _0x5a8559=a74_0x5ad189,_0x21e59d={};_0x21e59d[_0x5a8559(0x125)]=_0x5a8559(0x196),_0x21e59d[_0x5a8559(0x18c)]=function(_0x354154,_0x2b9cc8){return _0x354154===_0x2b9cc8;},_0x21e59d['VHQTt']=_0x5a8559(0x1c3);const _0x42ec4e=_0x21e59d;await super[_0x5a8559(0x17c)](_0x39c83e,_0x4b5e7f,_0x1d9442);const _0x49471b=this[_0x5a8559(0x1c2)](_0x39c83e,_0x4b5e7f,_0x1d9442);if(!_0x49471b){logger['debug'](_0x42ec4e[_0x5a8559(0x125)]);return;}try{let _0x57c5e9,_0x298b01;switch(_0x39c83e){case TestFrameworkState[_0x5a8559(0x199)]:_0x57c5e9=_0x1d9442[_0x5a8559(0x198)],_0x298b01=TestInfo['getTestUUID'](_0x57c5e9['id']);if(_0x42ec4e[_0x5a8559(0x18c)](_0x4b5e7f,HookState['PRE'])){logger[_0x5a8559(0x188)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x57c5e9['id']);const _0x5ea13d={};_0x5ea13d['testUUID']=_0x298b01,_0x5ea13d[_0x5a8559(0x15e)]=_0x57c5e9,_0x49471b['addMultipleEntries'](this[_0x5a8559(0xf8)](_0x5ea13d)),logger[_0x5a8559(0x188)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x57c5e9['id']),await this[_0x5a8559(0x107)](_0x49471b,_0x57c5e9['id']);}else{if(_0x42ec4e[_0x5a8559(0x18c)](_0x4b5e7f,HookState[_0x5a8559(0x12e)])){const _0x3f1503={};_0x3f1503['testUUID']=_0x298b01,_0x3f1503[_0x5a8559(0x15e)]=_0x57c5e9,_0x49471b[_0x5a8559(0x1b6)](this[_0x5a8559(0x175)](_0x3f1503)),await this[_0x5a8559(0x107)](_0x49471b,_0x57c5e9['id']);}}break;case TestFrameworkState[_0x5a8559(0x147)]:_0x42ec4e[_0x5a8559(0x18c)](_0x4b5e7f,HookState['POST'])&&await this['sendLogCreatedEvent'](_0x49471b,_0x39c83e,_0x1d9442);break;default:if(CLIUtils[_0x5a8559(0x183)](_0x39c83e['toString']()[_0x5a8559(0x124)]('.')[0x1])){const _0x822f5b=await this['trackHookEvent'](_0x49471b,_0x39c83e,_0x4b5e7f,_0x1d9442);_0x49471b['addMultipleEntries'](_0x822f5b);}else logger[_0x5a8559(0x188)](_0x5a8559(0x1a0)+_0x39c83e+_0x5a8559(0x10b)+_0x4b5e7f);break;}}catch(_0x22f89e){logger[_0x5a8559(0x1a3)](util[_0x5a8559(0x13c)](_0x42ec4e[_0x5a8559(0xf7)],_0x39c83e,_0x4b5e7f,_0x1d9442[_0x5a8559(0xfb)],_0x22f89e));}_0x1d9442['instance']=_0x49471b,await this[_0x5a8559(0x1c0)](_0x49471b,_0x39c83e,_0x4b5e7f,_0x1d9442);}[a74_0x5ad189(0x1c2)](_0x3d8226,_0x460958,_0x4d7ce1={}){const _0x2f9204=a74_0x5ad189,_0x2cfbc6={};_0x2cfbc6[_0x2f9204(0x19d)]=function(_0x4f30a5,_0xa109c1){return _0x4f30a5===_0xa109c1;};const _0x4f26c0=_0x2cfbc6;let _0x4d7c39=null;return(_0x4f26c0[_0x2f9204(0x19d)](_0x3d8226,TestFrameworkState[_0x2f9204(0x138)])||_0x4f26c0[_0x2f9204(0x19d)](_0x3d8226,TestFrameworkState[_0x2f9204(0x111)]))&&this[_0x2f9204(0x1b4)](_0x3d8226,_0x4d7ce1),_0x4d7c39=TestFramework[_0x2f9204(0x14d)](),_0x4d7c39;}[a74_0x5ad189(0x1b4)](_0x2550d8,_0x3993e4){const _0xa97b57=a74_0x5ad189,_0x56999a=CLIUtils[_0xa97b57(0x137)](),_0x1a82a0=TrackedInstance[_0xa97b57(0x184)](_0x56999a);let _0x5e6b46=null;logger[_0xa97b57(0x188)](_0xa97b57(0x143)+_0x56999a+_0xa97b57(0x110)+_0x2550d8),_0x5e6b46=new TestFrameworkInstance(_0x1a82a0,this[_0xa97b57(0x177)](),this['getTestFrameworksVersions'](),_0x2550d8,HookState[_0xa97b57(0x111)]),TestFramework[_0xa97b57(0x193)](_0x1a82a0,_0x5e6b46),logger['debug'](_0xa97b57(0x13e)+_0x1a82a0[_0xa97b57(0x155)]()+_0xa97b57(0x102)+_0x56999a);}[a74_0x5ad189(0xf8)](_0x154952){const _0x2ad992=a74_0x5ad189,_0x3b5901={};_0x3b5901[_0x2ad992(0x1b7)]=_0x2ad992(0x15b);const _0x552c34=_0x3b5901,{testUUID:_0x38c3d8,testData:_0x184a9a}=_0x154952;if(!_0x184a9a||!_0x184a9a['uuid'])return logger['debug'](_0x552c34[_0x2ad992(0x1b7)]),{};const _0x264232=_0x38c3d8,_0x5146a8=_0x184a9a[_0x2ad992(0x1ac)],_0x847165=this['getTestFrameworks']()[0x0],_0x2a8b16=this['getTestFrameworksVersions'](),_0x218550={[TestFrameworkConstants[_0x2ad992(0x1b1)]]:_0x847165,[TestFrameworkConstants[_0x2ad992(0x150)]]:_0x2a8b16[_0x847165],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x2ad992(0x100)]]:{},[TestFrameworkConstants[_0x2ad992(0x162)]]:_0x264232,[TestFrameworkConstants[_0x2ad992(0x14e)]]:TestFrameworkConstants['DEFAULT_TEST_RESULT'],[TestFrameworkConstants[_0x2ad992(0x121)]]:_0x184a9a['name']||'',[TestFrameworkConstants[_0x2ad992(0x17b)]]:_0x184a9a[_0x2ad992(0x136)]||'',[TestFrameworkConstants[_0x2ad992(0x132)]]:_0x5146a8,[TestFrameworkConstants[_0x2ad992(0x156)]]:_0x184a9a['name']||'',[TestFrameworkConstants[_0x2ad992(0x148)]]:_0x184a9a[_0x2ad992(0x166)]||'',[TestFrameworkConstants[_0x2ad992(0x18b)]]:_0x184a9a[_0x2ad992(0x178)]?.[_0x2ad992(0x187)]||null,[TestFrameworkConstants[_0x2ad992(0x19c)]]:_0x184a9a[_0x2ad992(0x181)]||[],[TestFrameworkConstants[_0x2ad992(0x190)]]:_0x184a9a['startedAt']||new Date()[_0x2ad992(0x194)](),[TestFrameworkConstants[_0x2ad992(0x1a7)]]:_0x184a9a[_0x2ad992(0x130)]?.[0x0]||'',[TestFrameworkConstants[_0x2ad992(0xfd)]]:_0x184a9a[_0x2ad992(0x130)]||[],[TestFrameworkConstants[_0x2ad992(0xfa)]]:_0x184a9a[_0x2ad992(0x13d)]?.[_0x2ad992(0x19b)]||_0x184a9a[_0x2ad992(0x1a6)]||'',[TestFrameworkConstants[_0x2ad992(0x17f)]]:{},[TestFrameworkConstants[_0x2ad992(0x16c)]]:_0x184a9a[_0x2ad992(0x1b5)]||{}};TestInfo['setTestDetails'](_0x5146a8,_0x218550),logger[_0x2ad992(0x188)](_0x2ad992(0x186)+_0x184a9a[_0x2ad992(0x1a6)]+_0x2ad992(0x1bd)+_0x264232);const _0x36192e={};return _0x36192e[_0x5146a8]=_0x218550,_0x36192e;}[a74_0x5ad189(0x175)](_0x4bb879){const _0x39289f=a74_0x5ad189,_0x5065ad={'moUfP':_0x39289f(0xf3),'PtyUb':_0x39289f(0x11e),'pygKA':function(_0xf4b9b3,_0x2af219){return _0xf4b9b3===_0x2af219;},'gvley':'failed','FZqKG':_0x39289f(0x164),'bKghy':function(_0x4a03d6,_0x53329f,_0x17d941){return _0x4a03d6(_0x53329f,_0x17d941);},'WRKJz':function(_0x5f2d69,_0xf6e873){return _0x5f2d69>_0xf6e873;},'ZviAx':function(_0x38a2b6,_0x24f8b8){return _0x38a2b6>_0x24f8b8;}},{testUUID:_0xd5ac11,testData:_0x4fa466}=_0x4bb879;if(!_0x4fa466||!_0x4fa466['uuid'])return logger[_0x39289f(0x188)](_0x5065ad[_0x39289f(0x128)]),{};const _0x315ead=this[_0x39289f(0x1c2)](TestFrameworkState[_0x39289f(0x199)],HookState[_0x39289f(0x12e)]),_0x24a522=_0x4fa466['uuid'],_0xb28e42=TestInfo[_0x39289f(0x112)](_0x24a522)||{},_0x125900=_0xb28e42?_0xb28e42[TestFrameworkConstants[_0x39289f(0x17f)]]||{}:{},_0x106253={..._0xb28e42,[TestFrameworkConstants[_0x39289f(0x14e)]]:_0x4fa466[_0x39289f(0x116)]||_0x5065ad[_0x39289f(0x13f)],[TestFrameworkConstants[_0x39289f(0x152)]]:_0x4fa466[_0x39289f(0xf9)]||new Date()['toISOString'](),[TestFrameworkConstants[_0x39289f(0x134)]]:new Date()['toISOString'](),[TestFrameworkConstants[_0x39289f(0x17f)]]:_0x125900,[TestFrameworkConstants['KEY_LOGS']]:[],[TestFrameworkConstants[_0x39289f(0x16c)]]:_0x4fa466[_0x39289f(0x1b5)]||{}};_0x5065ad['pygKA'](_0x4fa466[_0x39289f(0x116)],_0x5065ad[_0x39289f(0x18d)])&&_0x4fa466[_0x39289f(0x106)]&&(_0x106253[TestFrameworkConstants[_0x39289f(0x108)]]=_0x4fa466[_0x39289f(0x1a9)]||_0x5065ad['FZqKG'],_0x106253[TestFrameworkConstants[_0x39289f(0x176)]]=_0x4fa466['failure_reason']||'',_0x106253[TestFrameworkConstants[_0x39289f(0x173)]]=_0x4fa466['failure']);const _0x204310=TestInfo[_0x39289f(0x112)](_0x24a522)[TestFrameworkConstants[_0x39289f(0x109)]]||{},_0x4101eb=_0x5065ad[_0x39289f(0x1b0)](getManualUploadLogs,_0x204310,_0x315ead['getAllData']()[_0x39289f(0x179)](_0x24a522)[TestFrameworkConstants['KEY_TEST_UUID']]);if(_0x5065ad[_0x39289f(0x11b)](_0x4101eb['length'],0x0)){const _0x3d556a=_0x106253[TestFrameworkConstants[_0x39289f(0x17d)]]||[];_0x106253[TestFrameworkConstants[_0x39289f(0x17d)]]=[..._0x3d556a,..._0x4101eb];}_0x4fa466[_0x39289f(0x14f)]&&_0x5065ad[_0x39289f(0x11c)](_0x4fa466[_0x39289f(0x14f)][_0x39289f(0xfb)],0x0)&&(_0x106253[TestFrameworkConstants[_0x39289f(0x18f)]]=_0x4fa466[_0x39289f(0x14f)]);TestInfo[_0x39289f(0x11a)](_0x24a522,_0x106253),logger['debug'](_0x39289f(0x1b3)+_0x4fa466[_0x39289f(0x1a6)]+_0x39289f(0x1be)+_0x4fa466[_0x39289f(0x116)]);const _0xa5212d={};return _0xa5212d[_0x24a522]=_0x106253,_0xa5212d;}async[a74_0x5ad189(0x129)](_0x12f0b0,_0x1995d9,_0x333c77,_0x39a5f7){const _0xe7bb4=a74_0x5ad189,_0x340b2e={'UdEPU':_0xe7bb4(0x133),'KnYSf':function(_0x1bbe53){return _0x1bbe53();},'lmQZm':function(_0x198c26,_0x668b6f){return _0x198c26 in _0x668b6f;},'pyFAu':function(_0x3c0609,_0x11d8c4){return _0x3c0609===_0x11d8c4;},'PbmFN':function(_0x5bac00,_0x160296){return _0x5bac00>_0x160296;},'AzYar':'failed','BZVPm':'UnhandledError','NwIRK':_0xe7bb4(0x159),'KDpIA':function(_0x9c2241,_0x595531){return _0x9c2241!==_0x595531;}},{hookData:_0x9efc5}=_0x39a5f7;if(!_0x9efc5)return logger[_0xe7bb4(0x188)](_0x340b2e[_0xe7bb4(0x1c4)]),{};const _0x5ee813=_0x9efc5[_0xe7bb4(0x1ac)]||_0x340b2e[_0xe7bb4(0x18a)](uuidv4),_0x3fc4f8=_0x9efc5[_0xe7bb4(0x119)],_0x2343dd=_0x1995d9[_0xe7bb4(0x1a4)]()[_0xe7bb4(0x124)]('.')[0x1],_0x10ee9f=TestInfo[_0xe7bb4(0x112)](_0x3fc4f8)[TestFrameworkConstants[_0xe7bb4(0x17f)]]||{},_0x58088f=_0x12f0b0[_0xe7bb4(0x1c1)]()[_0xe7bb4(0x179)](_0x3fc4f8);if(!_0x58088f)return logger[_0xe7bb4(0x188)]('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x3fc4f8+_0xe7bb4(0x149)),this[_0xe7bb4(0x1a8)](_0x12f0b0,_0x3fc4f8,_0x1995d9,_0x333c77,_0x39a5f7),{};let _0x3ba2ad=_0x58088f[TestFrameworkConstants[_0xe7bb4(0x100)]];!_0x3ba2ad&&(_0x3ba2ad={});!_0x340b2e[_0xe7bb4(0x19a)](_0x2343dd,_0x3ba2ad)&&(_0x3ba2ad[_0x2343dd]=[]);let _0xd88517=_0x58088f[TestFrameworkConstants[_0xe7bb4(0x18f)]];!_0xd88517&&(_0xd88517={});!_0x340b2e[_0xe7bb4(0x19a)](_0x2343dd,_0xd88517)&&(_0xd88517[_0x2343dd]=[]);const _0x1a0941={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x3ba2ad,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0xd88517},_0x117083={};_0x117083[_0x3fc4f8]=_0x1a0941;const _0x3a6ebe=_0x117083;if(_0x340b2e[_0xe7bb4(0xf4)](_0x333c77,HookState['PRE'])){const _0x3cf011={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x5ee813,[TestFrameworkConstants[_0xe7bb4(0x14c)]]:TestFrameworkConstants[_0xe7bb4(0x103)],[TestFrameworkConstants[_0xe7bb4(0x15f)]]:_0x9efc5['started_at'],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants[_0xe7bb4(0x105)]]:_0x9efc5[_0xe7bb4(0x11f)],[TestFrameworkConstants[_0xe7bb4(0x17f)]]:_0x10ee9f};_0x3cf011[_0xe7bb4(0x169)]=_0x2343dd;const _0xa7aa57=_0x3cf011;_0x3ba2ad[_0x2343dd]['push'](_0xa7aa57),_0x3a6ebe[_0x3fc4f8][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x2343dd,logger[_0xe7bb4(0x188)](_0xe7bb4(0xfe)+_0x2343dd+'\x20&\x20hook\x20=\x20'+_0xa7aa57+_0xe7bb4(0x146)+_0x39a5f7);}else{if(_0x340b2e[_0xe7bb4(0xf4)](_0x333c77,HookState[_0xe7bb4(0x12e)])){const _0x1021d0=_0x9efc5[_0xe7bb4(0x116)],_0x253859=_0x3ba2ad[_0x2343dd]||[];logger[_0xe7bb4(0x188)](_0xe7bb4(0x195)+_0x253859+_0xe7bb4(0x10a)+_0x39a5f7);if(_0x340b2e[_0xe7bb4(0x14a)](_0x253859[_0xe7bb4(0xfb)],0x0)){const _0xe89518=_0x253859[_0xe7bb4(0x185)]();_0x340b2e[_0xe7bb4(0xf4)](_0x9efc5[_0xe7bb4(0x116)],_0x340b2e['AzYar'])&&_0x9efc5[_0xe7bb4(0x160)]?(_0xe89518[TestFrameworkConstants[_0xe7bb4(0x157)]]=_0x9efc5['failure_type']||_0x340b2e[_0xe7bb4(0x174)],_0xe89518[TestFrameworkConstants[_0xe7bb4(0x12f)]]=_0x9efc5['failure_reason']||'',_0xe89518[TestFrameworkConstants[_0xe7bb4(0x12c)]]=_0x9efc5[_0xe7bb4(0x160)]):_0xe89518[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x340b2e['NwIRK'];_0x340b2e['KDpIA'](_0x1021d0,TestFrameworkConstants[_0xe7bb4(0x103)])&&(_0xe89518[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x1021d0);_0xe89518[TestFrameworkConstants[_0xe7bb4(0x1a5)]]=_0x9efc5[_0xe7bb4(0x1ba)]||new Date()['toISOString'](),_0xe89518[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x10ee9f;const _0x37d1dc=_0xe89518[TestFrameworkConstants['KEY_HOOK_ID']];!_0xd88517[_0x2343dd]&&(_0xd88517[_0x2343dd]=[]),_0xd88517[_0x2343dd]['push'](_0xe89518),_0x3a6ebe[_0x3fc4f8][TestFrameworkConstants[_0xe7bb4(0xf5)]]=_0x2343dd;}}}return logger['debug'](_0xe7bb4(0x158)+_0x9efc5['hook_type']+_0xe7bb4(0x141)+_0x5ee813+_0xe7bb4(0x12d)+_0x3fc4f8),_0x3a6ebe;}[a74_0x5ad189(0x120)](_0x5cd426){const _0x5a1332=a74_0x5ad189,_0x4da15c={};_0x4da15c['ofKHC']=_0x5a1332(0x171);const _0x35f494=_0x4da15c;try{const _0xf3cef8=_0x5cd426['test']?_0x5cd426[_0x5a1332(0x198)]['id']:_0x5cd426[_0x5a1332(0x151)]['test_run_id'],_0x378bc7=_0x5cd426[_0x5a1332(0xf6)],_0x2a39b7=_0x378bc7[_0x5a1332(0x16a)](),_0x443237=_0x378bc7[_0x5a1332(0x1c1)]()[_0x5a1332(0x179)](_0xf3cef8);if(!_0x443237)return logger['debug'](_0x5a1332(0x145)+_0xf3cef8),{};logger[_0x5a1332(0x188)](_0x5a1332(0x16e)+_0xf3cef8);const {[TestFrameworkConstants[_0x5a1332(0x1b1)]]:_0x2ddce0='',[TestFrameworkConstants[_0x5a1332(0x150)]]:_0x4afb25='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x4625b5='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x464832=''}=_0x443237,_0x349fc0=_0x378bc7[_0x5a1332(0x115)]()['toString']()['split']('.')[0x1],_0x357f20=_0x378bc7['getCurrentHookState']()['toString']()['split']('.')[0x1],_0x8189e7=global?.['browserstackPlatformIndex']??0x0,_0x4674b0=_0x378bc7[_0x5a1332(0x1b2)](),_0x14ccf7=Buffer['from'](JSON[_0x5a1332(0x13a)](_0x443237))[_0x5a1332(0x1a4)](_0x35f494[_0x5a1332(0x12a)]),_0x410414={'hash':_0x2a39b7[_0x5a1332(0x155)](),'threadId':_0x2a39b7[_0x5a1332(0x139)]()[_0x5a1332(0x1a4)](),'processId':_0x2a39b7[_0x5a1332(0x15c)]()['toString']()},_0x517801={};_0x517801[_0x5a1332(0x189)]=_0x8189e7,_0x517801[_0x5a1332(0x1ad)]=_0x2ddce0,_0x517801['testFrameworkVersion']=_0x4afb25,_0x517801[_0x5a1332(0x16d)]=_0x349fc0,_0x517801[_0x5a1332(0x117)]=_0x357f20,_0x517801[_0x5a1332(0x191)]=_0x4625b5,_0x517801[_0x5a1332(0xf2)]=_0x464832,_0x517801[_0x5a1332(0x1ac)]=_0x4674b0,_0x517801[_0x5a1332(0x165)]=_0x14ccf7,_0x517801['executionContext']=_0x410414;const _0x16be2d=_0x517801;return logger['debug'](_0x5a1332(0x163)+_0xf3cef8+_0x5a1332(0x1bc)+_0x349fc0+_0x5a1332(0x1a1)+_0x357f20),_0x16be2d;}catch(_0x530e17){return logger[_0x5a1332(0x1a3)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x5a1332(0x13c)](_0x530e17)),{};}}async[a74_0x5ad189(0x1bf)](_0x8e36f9,_0x46b646,_0x2f8450){const _0x5aaff5=a74_0x5ad189,_0xb35010={'fcRTr':function(_0x37b567,_0x3271e4,_0x39af1a){return _0x37b567(_0x3271e4,_0x39af1a);},'WSTPV':function(_0x5a97ad,_0x3dd5cd){return _0x5a97ad===_0x3dd5cd;},'hETIZ':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','gYFiY':function(_0x276152,_0x325931){return _0x276152/_0x325931;},'DxNGl':function(_0x437d67,_0x1313a0){return _0x437d67<_0x1313a0;},'zZdME':function(_0x43d627,_0x62e437){return _0x43d627*_0x62e437;},'XzuxR':function(_0x31a963,_0x12e790){return _0x31a963+_0x12e790;},'ktXLJ':function(_0x3ddca2,_0x489e4d){return _0x3ddca2+_0x489e4d;},'zyPtF':function(_0x2bd34e,_0x2b7f0f){return _0x2bd34e+_0x2b7f0f;},'tiyCE':'Cucumber\x20log\x20created\x20event'};try{const _0x4eea36=_0x2f8450[_0x5aaff5(0x12b)],_0x3c2bb1=_0x8e36f9[_0x5aaff5(0x1c1)]()[_0x5aaff5(0x179)](_0x4eea36),{[TestFrameworkConstants[_0x5aaff5(0x1b1)]]:_0x1587b8='',[TestFrameworkConstants[_0x5aaff5(0x150)]]:_0x2031f9=''}=_0x3c2bb1,_0x398704=TestInfo[_0x5aaff5(0x161)](_0x4eea36),_0x32b806=TestInfo[_0x5aaff5(0x112)](_0x4eea36)[TestFrameworkConstants[_0x5aaff5(0x109)]]||{},_0x166637=_0xb35010[_0x5aaff5(0x10f)](getMediaArtifactsLogs,_0x32b806,_0x8e36f9['getAllData']()[_0x5aaff5(0x179)](_0x4eea36)[TestFrameworkConstants[_0x5aaff5(0x162)]]),_0xdebf3f=(_0x398704||[])[_0x5aaff5(0x180)](_0x166637||[]);if(!_0xdebf3f||_0xb35010[_0x5aaff5(0x113)](_0xdebf3f[_0x5aaff5(0xfb)],0x0)){logger[_0x5aaff5(0x188)](_0xb35010[_0x5aaff5(0x19f)]);return;}const _0x4797ab=0x28,_0xeccb29=Math['ceil'](_0xb35010[_0x5aaff5(0x172)](_0xdebf3f[_0x5aaff5(0xfb)],_0x4797ab));for(let _0x4433ce=0x0;_0xb35010[_0x5aaff5(0x167)](_0x4433ce,_0xeccb29);_0x4433ce++){const _0x29d900=_0xb35010['zZdME'](_0x4433ce,_0x4797ab),_0x150bf1=_0xb35010['XzuxR'](_0x29d900,_0x4797ab),_0x6f6370=_0xdebf3f[_0x5aaff5(0x1af)](_0x29d900,_0x150bf1),_0x14b250={'platformIndex':global?.[_0x5aaff5(0xfc)]??0x0,'logs':_0x6f6370,'testFrameworkName':_0x1587b8,'testFrameworkVersion':_0x2031f9,'testFrameworkState':_0x46b646['toString']()['split']('.')[0x1]};logger[_0x5aaff5(0x188)](_0x5aaff5(0x153)+_0x4eea36+_0x5aaff5(0x135)+_0xb35010['ktXLJ'](_0x4433ce,0x1)+'/'+_0xeccb29+_0x5aaff5(0x16f)+util[_0x5aaff5(0x1ab)](_0x14b250));const _0x390490=await GrpcClient[_0x5aaff5(0x127)]()['logCreatedEvent'](_0x14b250);logger[_0x5aaff5(0x188)](_0x5aaff5(0x153)+_0x4eea36+_0x5aaff5(0x135)+_0xb35010[_0x5aaff5(0x122)](_0x4433ce,0x1)+'/'+_0xeccb29+_0x5aaff5(0x11d)+util[_0x5aaff5(0x1ab)](_0x390490));}}catch(_0x533cb1){logger[_0x5aaff5(0x1a3)](_0x5aaff5(0x15a)+util[_0x5aaff5(0x13c)](_0x533cb1));}logger[_0x5aaff5(0x188)](_0xb35010[_0x5aaff5(0x1b9)]);}['storePendingHook'](_0x200e4c,_0x21c01b,_0x440a04,_0x3850b2,_0x3d939f){const _0x1250b6=a74_0x5ad189,_0x46f621={'testId':_0x21c01b,'testFrameworkState':_0x440a04,'hookState':_0x3850b2,'args':_0x3d939f,'timestamp':new Date()[_0x1250b6(0x194)]()};_0x200e4c[_0x1250b6(0x1ae)](_0x21c01b,_0x46f621),logger['debug'](_0x1250b6(0x104)+_0x21c01b+_0x1250b6(0x101)+_0x440a04+_0x1250b6(0x170)+_0x3850b2);}async[a74_0x5ad189(0x107)](_0x2ef3b5,_0x24aa80){const _0x448c59=a74_0x5ad189,_0xfe8947={};_0xfe8947[_0x448c59(0x10e)]=function(_0x1e3ab4,_0x58417e){return _0x1e3ab4>_0x58417e;};const _0xf2ba22=_0xfe8947;if(!_0x2ef3b5['hasPendingHooks'](_0x24aa80))return;const _0x42a69f=_0x2ef3b5[_0x448c59(0xff)](_0x24aa80);logger['debug'](_0x448c59(0x14b)+_0x42a69f[_0x448c59(0xfb)]+_0x448c59(0x1bb)+_0x24aa80);for(const _0x34086a of _0x42a69f){try{const _0xc98c8c=await this[_0x448c59(0x129)](_0x2ef3b5,_0x34086a[_0x448c59(0x16d)],_0x34086a['hookState'],_0x34086a[_0x448c59(0x114)]);_0xc98c8c&&_0xf2ba22[_0x448c59(0x10e)](Object['keys'](_0xc98c8c)[_0x448c59(0xfb)],0x0)&&_0x2ef3b5[_0x448c59(0x1b6)](_0xc98c8c),await this[_0x448c59(0x1c0)](_0x2ef3b5,_0x34086a[_0x448c59(0x16d)],_0x34086a[_0x448c59(0x117)],_0x34086a['args']);}catch(_0x2b1e14){logger[_0x448c59(0x1a3)](_0x448c59(0x10c)+_0x24aa80+_0x448c59(0x17e)+_0x2b1e14);}}_0x2ef3b5[_0x448c59(0x126)](_0x24aa80),logger[_0x448c59(0x188)](_0x448c59(0x123)+_0x24aa80);}}module[a74_0x5ad189(0x144)]=CucumberTestFramework;
|