browserstack-node-sdk 1.70.1 → 1.70.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/detox/a11ySetup.js +1 -1
- package/src/bin/detox/command.js +1 -1
- package/src/bin/detox/modifyDetoxConf.js +1 -1
- package/src/bin/detox/traEmitter.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadErrors.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/node-generic/client.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/reporterArgs.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/mochaTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/seleniumAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/runStateStore.js +1 -1
- package/src/bin/v2/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a119_0x4df0(){const _0x2bbd2c=['ENV_VAR','MMpyW','iPOlO','MODULE_NAME','testFrameworkEvent','toString','getRef','./loadTestModule.js','onPageCreate','2456aMSAtf','206852LkBTFI','jestUtils','retry','testUuid','uoRkp','UAKor','KEY_SESSION_ID','getCurrentTestState','isLTSSession','../cliUtils.js','MNZQS','exports','16522muCGMR','recreateIdentifierFromTestInfo','TestHubModule','HkZZH','../../playwright/sessionDetails.js','getThreadId','getLTSSessionId','JEST','getInstance','version','registerObserver','getJwt','capabilities','getProcessId','RagHe','../framework/testFramework.js','../../../helpers/helper.js','./baseModule','CwrFa','PLAYWRIGHT','resolveHubUrl','CHjAX','Error\x20in\x20sending\x20CBTSession:\x20','sxJLq','getState','\x20hookState:\x20','test_deferred','CUCUMBER','KEY_HUB_URL','BROWSERSTACK_TESTHUB_JWT','createTestFrameworkEventPayload','udXXp','env','onPageCreate\x20CBTSession\x20payload:\x20','../grpcClient.js','debug','getModuleName','length','BROWSERSTACK_TESTHUB_UUID','jqjyj','21841pYFHkV','filter','6yVsKhj','../framework/constants/testFrameworkConstants.js','CREATE','testInfo','testFrameworkState','getTestUUID','error','../../../helpers/classLogger.js','forEach','../state/hookState.js','55rYZATV','onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','onAllTestEvents','split','stringify','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','getBuildHashedId','28InOCDH','frameworkName','onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20','instance','getDetails','./playwrightDriverModule.js','./puppeteerDriverModule.js','test_identifier','qPHAv','keys','3852630VngUQy','logger','lPtoh','getId','Vedki','ZoGLQ','8|6|2|5|1|0|7|4|3','../../../helpers/test-observability/constants.js','bind','Error\x20in\x20sendTestFrameworkEvent:\x20','format','10104pVbgCL','../state/automationFrameworkState.js','values','testFrameworkData','name','testhubConfig','3808007nzUfdh','KEY_TEST_FRAMEWORK_VERSION','testSessionEvent','KEY_CAPABILITIES','JusIS','10305ycBZEn','1782633QEjLpk','toLowerCase','CzPpj','O11yHashedID','../state/testFrameworkState.js','KEY_TEST_FRAMEWORK_NAME','sendTestFrameworkEvent','page','AxBrB','TEST','util','../browserstackCLI.js','getTestDetailsAsync','KEY_PLATFORM_INDEX'];a119_0x4df0=function(){return _0x2bbd2c;};return a119_0x4df0();}function a119_0x3be2(_0x28e007,_0x22d771){const _0x4df0a5=a119_0x4df0();return a119_0x3be2=function(_0x3be221,_0x5c0651){_0x3be221=_0x3be221-0x1b8;let _0x12d8dd=_0x4df0a5[_0x3be221];return _0x12d8dd;},a119_0x3be2(_0x28e007,_0x22d771);}const a119_0x294636=a119_0x3be2;(function(_0x484fb9,_0x3fb515){const _0x1c74c2=a119_0x3be2,_0x5f3df2=_0x484fb9();while(!![]){try{const _0x1d2af8=parseInt(_0x1c74c2(0x1bc))/0x1*(-parseInt(_0x1c74c2(0x1cf))/0x2)+-parseInt(_0x1c74c2(0x1f0))/0x3+parseInt(_0x1c74c2(0x208))/0x4*(parseInt(_0x1c74c2(0x1c8))/0x5)+parseInt(_0x1c74c2(0x1be))/0x6*(-parseInt(_0x1c74c2(0x1ea))/0x7)+-parseInt(_0x1c74c2(0x207))/0x8*(-parseInt(_0x1c74c2(0x1ef))/0x9)+-parseInt(_0x1c74c2(0x1d9))/0xa+parseInt(_0x1c74c2(0x214))/0xb*(parseInt(_0x1c74c2(0x1e4))/0xc);if(_0x1d2af8===_0x3fb515)break;else _0x5f3df2['push'](_0x5f3df2['shift']());}catch(_0x3c8b2f){_0x5f3df2['push'](_0x5f3df2['shift']());}}}(a119_0x4df0,0x56dd1));const util=require(a119_0x294636(0x1fa)),BaseModule=require(a119_0x294636(0x225)),{createClassLogger}=require(a119_0x294636(0x1c5)),AutomationFramework=require('../framework/automationFramework.js'),AutomationFrameworkState=require(a119_0x294636(0x1e5)),HookState=require(a119_0x294636(0x1c7)),TestFramework=require(a119_0x294636(0x223)),TestFrameworkState=require(a119_0x294636(0x1f4)),PlaywrightDriverModule=require(a119_0x294636(0x1d4)),PuppeteerDriverModule=require(a119_0x294636(0x1d5)),PlaywrightSessionDetails=require(a119_0x294636(0x218)),TestFrameworkConstants=require(a119_0x294636(0x1bf)),GrpcClient=require(a119_0x294636(0x236)),CLIUtils=require(a119_0x294636(0x211)),TestInfo=require('../TestInfo.js'),testHubConstants=require('../../../helpers/testhub/constants'),{FRAMEWORKS}=require(a119_0x294636(0x1e0)),helper=require('../../../helpers/helper.js'),LoadTestModule=require(a119_0x294636(0x205)),JestUtils=require('../utils/jest-utils.js'),BrowserstackCLI=require(a119_0x294636(0x1fb)),{getPlaywrightProvider,getProductForSession}=require(a119_0x294636(0x224));class TestHubModule extends BaseModule{['logger']=createClassLogger('TestHubModule');constructor(_0x2f97f5,_0x3b48a2=null){const _0x44a37e=a119_0x294636,_0x21ba86={'LHBuz':_0x44a37e(0x1df),'jqjyj':function(_0x59245b,_0x3b1667){return _0x59245b(_0x3b1667);},'HkZZH':_0x44a37e(0x1fb),'MNZQS':_0x44a37e(0x216)},_0x1159c1=_0x21ba86['LHBuz'][_0x44a37e(0x1cb)]('|');let _0x30b874=0x0;while(!![]){switch(_0x1159c1[_0x30b874++]){case'0':Object[_0x44a37e(0x1e6)](TestFrameworkState)[_0x44a37e(0x1c6)](_0x3ea8f8=>{const _0x13390a=_0x44a37e;Object[_0x13390a(0x1e6)](HookState)[_0x13390a(0x1c6)](_0x23a2e0=>{const _0x5623ef=_0x13390a;TestFramework[_0x5623ef(0x21e)](_0x3ea8f8,_0x23a2e0,this[_0x5623ef(0x1ca)]['bind'](this));});});continue;case'1':AutomationFramework[_0x44a37e(0x21e)](AutomationFrameworkState[_0x44a37e(0x1c0)],HookState['POST'],this[_0x44a37e(0x206)][_0x44a37e(0x1e1)](this));continue;case'2':this[_0x44a37e(0x1e9)]=_0x2f97f5;continue;case'3':_0x21ba86[_0x44a37e(0x1bb)](require,_0x21ba86[_0x44a37e(0x217)])[_0x44a37e(0x1f3)]=this[_0x44a37e(0x1e9)][_0x44a37e(0x1ce)]();continue;case'4':process['env'][testHubConstants['ENV_VAR'][_0x44a37e(0x1ba)]]=this['testhubConfig'][_0x44a37e(0x1ce)]();continue;case'5':this['jestUtils']=new JestUtils();continue;case'6':this['name']=_0x21ba86[_0x44a37e(0x212)];continue;case'7':process[_0x44a37e(0x234)][testHubConstants[_0x44a37e(0x1fe)][_0x44a37e(0x231)]]=this['testhubConfig'][_0x44a37e(0x21f)]();continue;case'8':super(_0x3b48a2);continue;}break;}}[a119_0x294636(0x1b8)](){const _0x5ce7e1=a119_0x294636;return TestHubModule[_0x5ce7e1(0x201)];}[a119_0x294636(0x1ca)](_0x28b1bb){const _0x323d8d=a119_0x294636,_0x31c7b5={};_0x31c7b5[_0x323d8d(0x226)]=function(_0xb98de4,_0x315fcd){return _0xb98de4===_0x315fcd;};const _0x33a28f=_0x31c7b5,_0x39d754=_0x28b1bb[_0x323d8d(0x1d2)],_0x125de1=_0x39d754[_0x323d8d(0x20f)]();(_0x33a28f['CwrFa'](_0x125de1,TestFrameworkState['TEST'])||CLIUtils['matchHookRegex'](_0x125de1['toString']()[_0x323d8d(0x1cb)]('.')[0x1]))&&this[_0x323d8d(0x1f6)](_0x28b1bb);}async[a119_0x294636(0x1f6)](_0x16eb88){const _0x25bb30=a119_0x294636,_0x1cc575={'lPtoh':function(_0x4e4d46,_0x359fe0){return _0x4e4d46(_0x359fe0);},'CHjAX':_0x25bb30(0x1fb),'Vedki':function(_0x364a64,_0x5c7428){return _0x364a64===_0x5c7428;},'RagHe':'sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event'};try{const _0x4aa051=_0x1cc575[_0x25bb30(0x1db)](require,_0x1cc575[_0x25bb30(0x229)]),_0x428fa5=_0x4aa051[_0x25bb30(0x21c)]()['getTestFramework']()[_0x25bb30(0x232)](_0x16eb88);if(!_0x428fa5||_0x1cc575[_0x25bb30(0x1dd)](Object[_0x25bb30(0x1d8)](_0x428fa5)['length'],0x0)){this['logger'][_0x25bb30(0x237)](_0x1cc575[_0x25bb30(0x222)]);return;}const _0x1e2ee7=await GrpcClient[_0x25bb30(0x21c)]()[_0x25bb30(0x202)](_0x428fa5);this['logger'][_0x25bb30(0x237)]('sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20'+_0x428fa5[_0x25bb30(0x1c2)]+_0x25bb30(0x22d)+_0x428fa5['hookState']);}catch(_0x30c661){this[_0x25bb30(0x1da)]['error'](_0x25bb30(0x1e2)+util[_0x25bb30(0x1e3)](_0x30c661));}}async[a119_0x294636(0x206)](_0x27200b){const _0x218cc8=a119_0x294636,_0x370ccf={'udXXp':function(_0x317215,_0xc7d553){return _0x317215===_0xc7d553;},'MMpyW':function(_0x46b9f9,_0x15217d){return _0x46b9f9===_0x15217d;},'iPOlO':_0x218cc8(0x220),'JusIS':function(_0x38770f,_0x333ce8){return _0x38770f>_0x333ce8;},'sxJLq':function(_0x2b2a82,_0x2ee4e6){return _0x2b2a82||_0x2ee4e6;},'GKjDS':function(_0x2a66fa,_0x9ac9ed){return _0x2a66fa===_0x9ac9ed;},'CzPpj':function(_0x3cee0e,_0x326139){return _0x3cee0e===_0x326139;},'oMrQS':_0x218cc8(0x1c9),'bHukx':function(_0x2b2408,_0x44c7ab){return _0x2b2408===_0x44c7ab;},'AxBrB':function(_0xc83b5c,_0x1e6280){return _0xc83b5c&&_0x1e6280;},'ZoGLQ':function(_0x4abb94,_0x48f7e2,_0x97845c){return _0x4abb94(_0x48f7e2,_0x97845c);},'UAKor':function(_0x40a18e){return _0x40a18e();},'DqYVp':function(_0x9665a1,_0x474f75){return _0x9665a1(_0x474f75);},'qPHAv':function(_0x4d38be,_0x32e683){return _0x4d38be(_0x32e683);},'uoRkp':'base64'};try{if(_0x27200b[_0x218cc8(0x1f7)]){const _0x4c2142=this['getTestId'](_0x27200b);this[_0x218cc8(0x1da)]['debug']('onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20'+_0x4c2142);if(this[_0x218cc8(0x1e7)]&&_0x370ccf['CzPpj'](this[_0x218cc8(0x1e7)][_0x218cc8(0x1e8)],FRAMEWORKS['JEST'])&&!_0x27200b['testInfo']){this['logger'][_0x218cc8(0x237)](_0x370ccf['oMrQS']);return;}let _0x52b717,_0x1db01a;if(this['testFrameworkData']&&_0x370ccf[_0x218cc8(0x1ff)](this[_0x218cc8(0x1e7)]['name'],FRAMEWORKS[_0x218cc8(0x22f)]))_0x52b717=_0x4c2142,_0x1db01a=TestInfo[_0x218cc8(0x1c3)](_0x52b717);else this['testFrameworkData']&&_0x370ccf['bHukx'](this[_0x218cc8(0x1e7)][_0x218cc8(0x1e8)],FRAMEWORKS[_0x218cc8(0x21b)])?(_0x52b717=this[_0x218cc8(0x209)][_0x218cc8(0x215)](_0x27200b[_0x218cc8(0x1c1)]),this[_0x218cc8(0x1da)][_0x218cc8(0x237)](_0x218cc8(0x1d1)+_0x52b717)):(_0x52b717=TestInfo['getTestIdentifierFromTestInfo'](_0x27200b[_0x218cc8(0x1c1)],_0x27200b[_0x218cc8(0x1c1)][_0x218cc8(0x20a)]),_0x1db01a=TestInfo[_0x218cc8(0x1c3)](_0x52b717));const _0x410321=await TestInfo[_0x218cc8(0x1fc)](_0x52b717),_0x43e3bb=_0x27200b[_0x218cc8(0x1d2)],_0x3311c2=AutomationFramework['getState'](_0x43e3bb,PlaywrightDriverModule[_0x218cc8(0x1fd)])||AutomationFramework[_0x218cc8(0x22c)](_0x43e3bb,PuppeteerDriverModule[_0x218cc8(0x1fd)]),_0x2c9fd4=_0x410321?.[TestFrameworkConstants[_0x218cc8(0x1f5)]]||this[_0x218cc8(0x1e7)]&&this['testFrameworkData'][_0x218cc8(0x1e8)],_0x5873bc=_0x410321?.[TestFrameworkConstants[_0x218cc8(0x1eb)]]||this[_0x218cc8(0x1e7)]&&this[_0x218cc8(0x1e7)][_0x218cc8(0x21d)],_0x4c6ab5=TestFrameworkState[_0x218cc8(0x1f9)][_0x218cc8(0x203)]()[_0x218cc8(0x1cb)]('.')[0x1],_0x515bfa=HookState['POST'][_0x218cc8(0x203)]()[_0x218cc8(0x1cb)]('.')[0x1],_0x538b0b=_0x43e3bb['getContext'](),_0x57e108=!!_0x43e3bb[_0x218cc8(0x1d0)]&&_0x370ccf[_0x218cc8(0x233)](_0x43e3bb['frameworkName'][_0x218cc8(0x1f1)](),FRAMEWORKS[_0x218cc8(0x227)]['toLowerCase']());let _0x5ab4ae=AutomationFramework[_0x218cc8(0x22c)](_0x43e3bb,PlaywrightDriverModule[_0x218cc8(0x230)],'')||AutomationFramework['getState'](_0x43e3bb,PuppeteerDriverModule[_0x218cc8(0x230)],'');_0x370ccf[_0x218cc8(0x1f8)](!_0x5ab4ae,_0x57e108)&&(_0x5ab4ae=PlaywrightDriverModule[_0x218cc8(0x228)](_0x43e3bb,_0x27200b['testInfo']));const _0x5e5e17=LoadTestModule[_0x218cc8(0x210)]()?LoadTestModule[_0x218cc8(0x21a)]():AutomationFramework['getState'](_0x43e3bb,PlaywrightDriverModule[_0x218cc8(0x20e)],'')||AutomationFramework['getState'](_0x43e3bb,PuppeteerDriverModule[_0x218cc8(0x20e)],''),_0x3feab0={'provider':_0x370ccf[_0x218cc8(0x1de)](getPlaywrightProvider,_0x5ab4ae,_0x57e108),'frameworkName':_0x43e3bb['frameworkName'],'frameworkVersion':_0x43e3bb['frameworkVersion'],'frameworkSessionId':_0x5e5e17,'ref':_0x43e3bb[_0x218cc8(0x204)](),'hubUrl':_0x5ab4ae,'product':_0x370ccf[_0x218cc8(0x20d)](getProductForSession)};let _0x31ecf6=AutomationFramework[_0x218cc8(0x22c)](_0x43e3bb,PlaywrightDriverModule[_0x218cc8(0x1ed)],null)||AutomationFramework[_0x218cc8(0x22c)](_0x43e3bb,PuppeteerDriverModule['KEY_CAPABILITIES'],null);const _0x450e1d=_0x13b522=>{const _0x15e0d7=_0x218cc8;if(!_0x13b522)return!![];const _0x57f001=Object['entries'](_0x13b522)[_0x15e0d7(0x1bd)](([_0x4ca455,_0x44e2c7])=>{const _0x48be91=_0x15e0d7;if(_0x370ccf[_0x48be91(0x233)](_0x44e2c7,undefined)||_0x370ccf[_0x48be91(0x233)](_0x44e2c7,null))return![];if(_0x370ccf['MMpyW'](_0x4ca455,_0x370ccf[_0x48be91(0x200)]))return _0x370ccf[_0x48be91(0x1ee)](Object[_0x48be91(0x1d8)](_0x370ccf[_0x48be91(0x22b)](_0x44e2c7,{}))['length'],0x0);return!![];});return _0x370ccf['GKjDS'](_0x57f001[_0x15e0d7(0x1b9)],0x0);};if(_0x370ccf['DqYVp'](_0x450e1d,_0x31ecf6)){const _0x5673f7=PlaywrightSessionDetails[_0x218cc8(0x1d3)]();!_0x370ccf[_0x218cc8(0x1d7)](_0x450e1d,_0x5673f7)&&(_0x31ecf6=_0x5673f7,AutomationFramework['setState'](_0x43e3bb,PlaywrightDriverModule[_0x218cc8(0x1ed)],_0x5673f7));}const _0xd6e23c=_0x31ecf6?Buffer['from'](JSON[_0x218cc8(0x1cc)](_0x31ecf6))[_0x218cc8(0x203)](_0x370ccf[_0x218cc8(0x20c)]):null,_0x5406f8={'hash':_0x538b0b[_0x218cc8(0x1dc)](),'threadId':_0x538b0b[_0x218cc8(0x219)]()[_0x218cc8(0x203)](),'processId':_0x538b0b[_0x218cc8(0x221)]()[_0x218cc8(0x203)]()},_0x29f099={};_0x29f099[_0x218cc8(0x1d6)]=_0x52b717;const _0x21dbde={};_0x21dbde[_0x218cc8(0x20b)]=_0x1db01a;const _0x81db95={'platformIndex':_0x3311c2,'testFrameworkName':_0x2c9fd4,'testFrameworkVersion':_0x5873bc,'testFrameworkState':_0x4c6ab5,'testHookState':_0x515bfa,...this[_0x218cc8(0x1e7)]&&_0x370ccf[_0x218cc8(0x1f2)](this['testFrameworkData'][_0x218cc8(0x1e8)],FRAMEWORKS[_0x218cc8(0x21b)])?_0x29f099:_0x21dbde,'automationSession':_0x3feab0,'capabilities':_0xd6e23c,'executionContext':_0x5406f8};this[_0x218cc8(0x1da)][_0x218cc8(0x237)](_0x218cc8(0x235)+util[_0x218cc8(0x1e3)](_0x81db95));const _0x2768d6=await GrpcClient[_0x218cc8(0x21c)]()[_0x218cc8(0x1ec)](_0x81db95);this[_0x218cc8(0x1da)]['debug'](_0x218cc8(0x1cd)+_0x4c2142+(this[_0x218cc8(0x1e7)]&&_0x370ccf['CzPpj'](this[_0x218cc8(0x1e7)][_0x218cc8(0x1e8)],FRAMEWORKS[_0x218cc8(0x21b)])?',\x20test_identifier:\x20'+_0x52b717:''));}}catch(_0x105097){this[_0x218cc8(0x1da)][_0x218cc8(0x1c4)](_0x218cc8(0x22a)+util[_0x218cc8(0x1e3)](_0x105097));}}}TestHubModule['MODULE_NAME']=a119_0x294636(0x216),TestHubModule['KEY_TEST_DEFERRED']=a119_0x294636(0x22e),module[a119_0x294636(0x213)]=TestHubModule;
|
|
1
|
+
function a119_0x758e(_0x265350,_0x23326b){const _0x470472=a119_0x4704();return a119_0x758e=function(_0x758eb3,_0x32702f){_0x758eb3=_0x758eb3-0x147;let _0x5667ff=_0x470472[_0x758eb3];return _0x5667ff;},a119_0x758e(_0x265350,_0x23326b);}const a119_0x2763cc=a119_0x758e;(function(_0x116811,_0x33fffd){const _0x1e4c93=a119_0x758e,_0xe9a7fc=_0x116811();while(!![]){try{const _0x197965=-parseInt(_0x1e4c93(0x1b1))/0x1*(parseInt(_0x1e4c93(0x1c1))/0x2)+parseInt(_0x1e4c93(0x1b2))/0x3*(-parseInt(_0x1e4c93(0x158))/0x4)+-parseInt(_0x1e4c93(0x189))/0x5*(-parseInt(_0x1e4c93(0x188))/0x6)+-parseInt(_0x1e4c93(0x196))/0x7*(-parseInt(_0x1e4c93(0x19b))/0x8)+-parseInt(_0x1e4c93(0x165))/0x9*(parseInt(_0x1e4c93(0x1ab))/0xa)+-parseInt(_0x1e4c93(0x1b4))/0xb+-parseInt(_0x1e4c93(0x1b9))/0xc*(-parseInt(_0x1e4c93(0x16e))/0xd);if(_0x197965===_0x33fffd)break;else _0xe9a7fc['push'](_0xe9a7fc['shift']());}catch(_0x14c8cf){_0xe9a7fc['push'](_0xe9a7fc['shift']());}}}(a119_0x4704,0xbb9c0));const util=require(a119_0x2763cc(0x193)),BaseModule=require(a119_0x2763cc(0x1bd)),{createClassLogger}=require('../../../helpers/classLogger.js'),AutomationFramework=require(a119_0x2763cc(0x171)),AutomationFrameworkState=require('../state/automationFrameworkState.js'),HookState=require('../state/hookState.js'),TestFramework=require('../framework/testFramework.js'),TestFrameworkState=require('../state/testFrameworkState.js'),PlaywrightDriverModule=require(a119_0x2763cc(0x164)),PuppeteerDriverModule=require(a119_0x2763cc(0x1c0)),PlaywrightSessionDetails=require(a119_0x2763cc(0x163)),TestFrameworkConstants=require('../framework/constants/testFrameworkConstants.js'),GrpcClient=require('../grpcClient.js'),CLIUtils=require('../cliUtils.js'),TestInfo=require(a119_0x2763cc(0x1b5)),testHubConstants=require(a119_0x2763cc(0x1a5)),{FRAMEWORKS}=require(a119_0x2763cc(0x1ba)),helper=require(a119_0x2763cc(0x198)),LoadTestModule=require(a119_0x2763cc(0x17a)),JestUtils=require('../utils/jest-utils.js'),BrowserstackCLI=require('../browserstackCLI.js'),{getPlaywrightProvider,getProductForSession}=require(a119_0x2763cc(0x198));class TestHubModule extends BaseModule{[a119_0x2763cc(0x1af)]=createClassLogger(a119_0x2763cc(0x1a9));constructor(_0x98ac29,_0x41119c=null){const _0x165f0c=a119_0x2763cc,_0x847f30={'ZTWAL':_0x165f0c(0x17e),'wHTsn':_0x165f0c(0x1a9),'ITXWP':function(_0x42fd8c,_0x2bfca8){return _0x42fd8c(_0x2bfca8);},'FizKE':_0x165f0c(0x151)},_0x19901d=_0x847f30[_0x165f0c(0x153)]['split']('|');let _0x35cff=0x0;while(!![]){switch(_0x19901d[_0x35cff++]){case'0':process[_0x165f0c(0x18b)][testHubConstants[_0x165f0c(0x179)][_0x165f0c(0x17d)]]=this['testhubConfig'][_0x165f0c(0x15c)]();continue;case'1':this[_0x165f0c(0x1c4)]=_0x847f30[_0x165f0c(0x152)];continue;case'2':process[_0x165f0c(0x18b)][testHubConstants[_0x165f0c(0x179)]['BROWSERSTACK_TESTHUB_UUID']]=this[_0x165f0c(0x199)]['getBuildHashedId']();continue;case'3':Object[_0x165f0c(0x14f)](TestFrameworkState)['forEach'](_0x53ab5e=>{const _0x308f8e=_0x165f0c;Object['values'](HookState)[_0x308f8e(0x168)](_0x465a8d=>{const _0x3ebd86=_0x308f8e;TestFramework['registerObserver'](_0x53ab5e,_0x465a8d,this['onAllTestEvents'][_0x3ebd86(0x186)](this));});});continue;case'4':this[_0x165f0c(0x1bf)]=new JestUtils();continue;case'5':super(_0x41119c);continue;case'6':_0x847f30[_0x165f0c(0x16a)](require,_0x847f30[_0x165f0c(0x1b8)])[_0x165f0c(0x192)]=this[_0x165f0c(0x199)]['getBuildHashedId']();continue;case'7':this[_0x165f0c(0x199)]=_0x98ac29;continue;case'8':AutomationFramework[_0x165f0c(0x1a2)](AutomationFrameworkState[_0x165f0c(0x18c)],HookState['POST'],this[_0x165f0c(0x1a0)]['bind'](this));continue;}break;}}['getModuleName'](){const _0x38da67=a119_0x2763cc;return TestHubModule[_0x38da67(0x1a8)];}[a119_0x2763cc(0x15a)](_0x2f4910){const _0x2da675=a119_0x2763cc,_0x2430ac={};_0x2430ac['tInxd']=function(_0x43903f,_0x3277c4){return _0x43903f===_0x3277c4;};const _0x75f69a=_0x2430ac,_0x508e8b=_0x2f4910[_0x2da675(0x1a7)],_0x1f2bcb=_0x508e8b[_0x2da675(0x1a4)]();(_0x75f69a[_0x2da675(0x194)](_0x1f2bcb,TestFrameworkState[_0x2da675(0x15b)])||CLIUtils[_0x2da675(0x1be)](_0x1f2bcb['toString']()[_0x2da675(0x19d)]('.')[0x1]))&&this[_0x2da675(0x1b6)](_0x2f4910);}async[a119_0x2763cc(0x1b6)](_0xb7a53a){const _0x188b57=a119_0x2763cc,_0x313eb4={'TmVBn':function(_0x276d97,_0x357cf3){return _0x276d97(_0x357cf3);},'LRtbP':'../browserstackCLI.js','JOluI':function(_0x25a10c,_0x25f5e3){return _0x25a10c===_0x25f5e3;},'uNJAv':_0x188b57(0x1bb)};try{const _0x29eefb=_0x313eb4[_0x188b57(0x162)](require,_0x313eb4[_0x188b57(0x1c5)]),_0x40eac5=_0x29eefb['getInstance']()['getTestFramework']()[_0x188b57(0x19a)](_0xb7a53a);if(!_0x40eac5||_0x313eb4[_0x188b57(0x190)](Object[_0x188b57(0x1a6)](_0x40eac5)[_0x188b57(0x1c2)],0x0)){this[_0x188b57(0x1af)][_0x188b57(0x184)](_0x313eb4[_0x188b57(0x1a3)]);return;}const _0x371102=await GrpcClient[_0x188b57(0x17f)]()[_0x188b57(0x19c)](_0x40eac5);this['logger'][_0x188b57(0x184)](_0x188b57(0x1bc)+_0x40eac5[_0x188b57(0x1a1)]+_0x188b57(0x195)+_0x40eac5[_0x188b57(0x157)]);}catch(_0x4b5a4d){this[_0x188b57(0x1af)][_0x188b57(0x175)](_0x188b57(0x18d)+util[_0x188b57(0x16c)](_0x4b5a4d));}}async[a119_0x2763cc(0x1a0)](_0x32d98b){const _0x34409a=a119_0x2763cc,_0x4918d8={'eaLjT':function(_0xff1236,_0x469c53){return _0xff1236===_0x469c53;},'mVEEM':function(_0x5001de,_0x59931b){return _0x5001de===_0x59931b;},'OFlMS':'capabilities','MgBOy':function(_0x3d4d21,_0x2274c0){return _0x3d4d21>_0x2274c0;},'zdupw':function(_0x56776c,_0x67cc79){return _0x56776c||_0x67cc79;},'YlSJY':function(_0x562d9c,_0x432491){return _0x562d9c===_0x432491;},'qMbHt':'onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','wzyUN':function(_0x569fba,_0x347b84){return _0x569fba===_0x347b84;},'yYtBq':function(_0x426c36,_0x26c0f2){return _0x426c36===_0x26c0f2;},'fpTCX':function(_0x332ffe,_0x364afe){return _0x332ffe&&_0x364afe;},'xktiE':function(_0x113b0b,_0x3d5581,_0x30c645){return _0x113b0b(_0x3d5581,_0x30c645);},'FEJQY':function(_0x4b2155){return _0x4b2155();},'MRROg':function(_0x7584e5,_0x5de704){return _0x7584e5(_0x5de704);},'VwKWR':function(_0xd8796a,_0x383217){return _0xd8796a(_0x383217);},'nKYdo':_0x34409a(0x148),'seBnf':function(_0x5494e5,_0x5ce49e){return _0x5494e5===_0x5ce49e;}};try{if(_0x32d98b[_0x34409a(0x147)]){const _0x13a794=this[_0x34409a(0x15e)](_0x32d98b);this[_0x34409a(0x1af)][_0x34409a(0x184)](_0x34409a(0x197)+_0x13a794);if(this[_0x34409a(0x18a)]&&_0x4918d8[_0x34409a(0x16d)](this[_0x34409a(0x18a)]['name'],FRAMEWORKS['JEST'])&&!_0x32d98b[_0x34409a(0x178)]){this[_0x34409a(0x1af)][_0x34409a(0x184)](_0x4918d8['qMbHt']);return;}let _0x49dc93,_0x33d47e;if(this[_0x34409a(0x18a)]&&_0x4918d8['mVEEM'](this[_0x34409a(0x18a)][_0x34409a(0x1c4)],FRAMEWORKS[_0x34409a(0x17c)]))_0x49dc93=_0x13a794,_0x33d47e=TestInfo[_0x34409a(0x174)](_0x49dc93);else this[_0x34409a(0x18a)]&&_0x4918d8[_0x34409a(0x156)](this[_0x34409a(0x18a)][_0x34409a(0x1c4)],FRAMEWORKS['JEST'])?(_0x49dc93=this[_0x34409a(0x1bf)]['recreateIdentifierFromTestInfo'](_0x32d98b[_0x34409a(0x178)]),this[_0x34409a(0x1af)]['debug'](_0x34409a(0x173)+_0x49dc93)):(_0x49dc93=TestInfo[_0x34409a(0x170)](_0x32d98b['testInfo'],_0x32d98b[_0x34409a(0x178)]['retry']),_0x33d47e=TestInfo[_0x34409a(0x174)](_0x49dc93));const _0x2c165c=await TestInfo['getTestDetailsAsync'](_0x49dc93),_0x85d117=_0x32d98b['instance'],_0x50816e=AutomationFramework['getState'](_0x85d117,PlaywrightDriverModule[_0x34409a(0x180)])||AutomationFramework[_0x34409a(0x154)](_0x85d117,PuppeteerDriverModule[_0x34409a(0x180)]),_0x579ac9=_0x2c165c?.[TestFrameworkConstants[_0x34409a(0x18f)]]||this[_0x34409a(0x18a)]&&this[_0x34409a(0x18a)][_0x34409a(0x1c4)],_0x15c8fd=_0x2c165c?.[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]||this['testFrameworkData']&&this[_0x34409a(0x18a)][_0x34409a(0x14e)],_0x541555=TestFrameworkState[_0x34409a(0x15b)][_0x34409a(0x150)]()['split']('.')[0x1],_0x4b7e5d=HookState[_0x34409a(0x1aa)][_0x34409a(0x150)]()[_0x34409a(0x19d)]('.')[0x1],_0x5bd148=_0x85d117['getContext'](),_0x385fe2=!!_0x85d117[_0x34409a(0x15f)]&&_0x4918d8[_0x34409a(0x155)](_0x85d117['frameworkName'][_0x34409a(0x191)](),FRAMEWORKS[_0x34409a(0x16f)][_0x34409a(0x191)]());let _0x9e0b38=AutomationFramework[_0x34409a(0x154)](_0x85d117,PlaywrightDriverModule[_0x34409a(0x177)],'')||AutomationFramework[_0x34409a(0x154)](_0x85d117,PuppeteerDriverModule[_0x34409a(0x177)],'');_0x4918d8[_0x34409a(0x183)](!_0x9e0b38,_0x385fe2)&&(_0x9e0b38=PlaywrightDriverModule[_0x34409a(0x149)](_0x85d117,_0x32d98b[_0x34409a(0x178)]));const _0x2efe00=LoadTestModule[_0x34409a(0x160)]()?LoadTestModule[_0x34409a(0x159)]():AutomationFramework[_0x34409a(0x154)](_0x85d117,PlaywrightDriverModule['KEY_SESSION_ID'],'')||AutomationFramework[_0x34409a(0x154)](_0x85d117,PuppeteerDriverModule[_0x34409a(0x17b)],''),_0x9ab09a={'provider':_0x4918d8[_0x34409a(0x167)](getPlaywrightProvider,_0x9e0b38,_0x385fe2),'frameworkName':_0x85d117[_0x34409a(0x15f)],'frameworkVersion':_0x85d117[_0x34409a(0x19e)],'frameworkSessionId':_0x2efe00,'ref':_0x85d117['getRef'](),'hubUrl':_0x9e0b38,'product':_0x4918d8[_0x34409a(0x19f)](getProductForSession)};let _0x5408b5=AutomationFramework[_0x34409a(0x154)](_0x85d117,PlaywrightDriverModule[_0x34409a(0x187)],null)||AutomationFramework[_0x34409a(0x154)](_0x85d117,PuppeteerDriverModule[_0x34409a(0x187)],null);const _0x13a373=_0x4c7658=>{const _0x3c8382=_0x34409a;if(!_0x4c7658)return!![];const _0x1d83f5=Object[_0x3c8382(0x1ac)](_0x4c7658)[_0x3c8382(0x166)](([_0x2d8ed5,_0x2e72ae])=>{const _0x2f685b=_0x3c8382;if(_0x4918d8[_0x2f685b(0x14c)](_0x2e72ae,undefined)||_0x4918d8[_0x2f685b(0x16d)](_0x2e72ae,null))return![];if(_0x4918d8[_0x2f685b(0x16d)](_0x2d8ed5,_0x4918d8['OFlMS']))return _0x4918d8[_0x2f685b(0x1b0)](Object['keys'](_0x4918d8[_0x2f685b(0x176)](_0x2e72ae,{}))['length'],0x0);return!![];});return _0x4918d8['YlSJY'](_0x1d83f5[_0x3c8382(0x1c2)],0x0);};if(_0x4918d8[_0x34409a(0x181)](_0x13a373,_0x5408b5)){const _0x2a5c44=PlaywrightSessionDetails[_0x34409a(0x15d)]();!_0x4918d8[_0x34409a(0x14b)](_0x13a373,_0x2a5c44)&&(_0x5408b5=_0x2a5c44,AutomationFramework['setState'](_0x85d117,PlaywrightDriverModule[_0x34409a(0x187)],_0x2a5c44));}const _0x10125b=_0x5408b5?Buffer['from'](JSON[_0x34409a(0x16b)](_0x5408b5))[_0x34409a(0x150)](_0x4918d8[_0x34409a(0x14d)]):null,_0x1dbc0f={'hash':_0x5bd148[_0x34409a(0x169)](),'threadId':_0x5bd148[_0x34409a(0x1c3)]()[_0x34409a(0x150)](),'processId':_0x5bd148['getProcessId']()['toString']()},_0x3c26cd={};_0x3c26cd[_0x34409a(0x182)]=_0x49dc93;const _0x46e44a={};_0x46e44a[_0x34409a(0x185)]=_0x33d47e;const _0x5f37db={'platformIndex':_0x50816e,'testFrameworkName':_0x579ac9,'testFrameworkVersion':_0x15c8fd,'testFrameworkState':_0x541555,'testHookState':_0x4b7e5d,...this[_0x34409a(0x18a)]&&_0x4918d8[_0x34409a(0x18e)](this[_0x34409a(0x18a)][_0x34409a(0x1c4)],FRAMEWORKS[_0x34409a(0x1b3)])?_0x3c26cd:_0x46e44a,'automationSession':_0x9ab09a,'capabilities':_0x10125b,'executionContext':_0x1dbc0f};this['logger']['debug'](_0x34409a(0x1b7)+util[_0x34409a(0x16c)](_0x5f37db));const _0x25a7e3=await GrpcClient[_0x34409a(0x17f)]()['testSessionEvent'](_0x5f37db);this[_0x34409a(0x1af)][_0x34409a(0x184)]('onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20'+_0x13a794+(this[_0x34409a(0x18a)]&&_0x4918d8['seBnf'](this[_0x34409a(0x18a)][_0x34409a(0x1c4)],FRAMEWORKS[_0x34409a(0x1b3)])?_0x34409a(0x172)+_0x49dc93:''));}}catch(_0x12757c){this[_0x34409a(0x1af)]['error'](_0x34409a(0x14a)+util[_0x34409a(0x16c)](_0x12757c));}}}TestHubModule[a119_0x2763cc(0x1a8)]='TestHubModule',TestHubModule[a119_0x2763cc(0x161)]=a119_0x2763cc(0x1ad),module[a119_0x2763cc(0x1ae)]=TestHubModule;function a119_0x4704(){const _0x465811=['3bMsmQe','JEST','14513807bZatra','../TestInfo.js','sendTestFrameworkEvent','onPageCreate\x20CBTSession\x20payload:\x20','FizKE','24tMdrbq','../../../helpers/test-observability/constants.js','sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event','sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20','./baseModule','matchHookRegex','jestUtils','./puppeteerDriverModule.js','2nEYtcx','length','getThreadId','name','LRtbP','page','base64','resolveHubUrl','Error\x20in\x20sending\x20CBTSession:\x20','VwKWR','eaLjT','nKYdo','version','values','toString','../browserstackCLI.js','wHTsn','ZTWAL','getState','yYtBq','wzyUN','hookState','4953244tiybnW','getLTSSessionId','onAllTestEvents','TEST','getJwt','getDetails','getTestId','frameworkName','isLTSSession','KEY_TEST_DEFERRED','TmVBn','../../playwright/sessionDetails.js','./playwrightDriverModule.js','9eiWQfl','filter','xktiE','forEach','getId','ITXWP','stringify','format','mVEEM','20642414VHosaL','PLAYWRIGHT','getTestIdentifierFromTestInfo','../framework/automationFramework.js',',\x20test_identifier:\x20','onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20','getTestUUID','error','zdupw','KEY_HUB_URL','testInfo','ENV_VAR','./loadTestModule.js','KEY_SESSION_ID','CUCUMBER','BROWSERSTACK_TESTHUB_JWT','5|1|7|4|8|3|0|2|6','getInstance','KEY_PLATFORM_INDEX','MRROg','test_identifier','fpTCX','debug','testUuid','bind','KEY_CAPABILITIES','3228bXpmKT','10685GkuohZ','testFrameworkData','env','CREATE','Error\x20in\x20sendTestFrameworkEvent:\x20','YlSJY','KEY_TEST_FRAMEWORK_NAME','JOluI','toLowerCase','O11yHashedID','util','tInxd','\x20hookState:\x20','105fWktBX','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','../../../helpers/helper.js','testhubConfig','createTestFrameworkEventPayload','407768jJWcBN','testFrameworkEvent','split','frameworkVersion','FEJQY','onPageCreate','testFrameworkState','registerObserver','uNJAv','getCurrentTestState','../../../helpers/testhub/constants','keys','instance','MODULE_NAME','TestHubModule','POST','2929020Bdnkww','entries','test_deferred','exports','logger','MgBOy','1470929fbdMXG'];a119_0x4704=function(){return _0x465811;};return a119_0x4704();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a120_0x4850(){const _0x2793b8=['runStateStore:\x20fetch\x20','EyFOi','then','runStateStore:\x20append\x20','DEEP_MERGE','push','\x20rejected\x20(','runStateStore:\x20merge\x20','keys','BrkuF','object','_keyChainSize','publish\x20threw','debug','\x20entr(y/ies)\x20in-memory','assign','AnvPa','size','kzRPm','delta','oqmhP','the\x20earlier\x20accumulation','DVlKy','setBuildState','winstonLogger','\x20was\x20truncated\x20by\x20the\x20binary\x20(','98845JdzZkC','VOQqF','appendTestState','delete','TEST','103832jKrSNg','mergeTestState','jOVkC','YNznN','concat','runStateStore:\x20publish\x20','9DwMJzO','\x20not\x20acked\x20by\x20binary,\x20holding\x20','),\x20treating\x20as\x20un-acked','truncated','VxFqD','16WERZak','nutJi','ceCkz','set','terminal','join','clear','204108fyqxyG','),\x20dropping\x20this\x20delta\x20and\x20keeping\x20','\x20failed\x20(','getTestState','2569329NdFbkh','isArray','publishRunState','APPEND','length','TgwuI','getBuildState','../../helpers/logger','DUMrS','13113276IrDjZi','186MDqaki','get','mrSiM','),\x20dropping\x20the\x20value','REPLACE','acked','split','mpYIe','JSMPz','ojQXH','1179JMPeap','utojX','\x20refused\x20by\x20binary\x20(','UofNG','resolve','forEach','fetchRunState','51010VcRzTB','BTcdN','\x20not\x20acked\x20by\x20binary,\x20accumulating\x20the\x20delta\x20in-memory','setTestState','error','nawvq','mode','),\x20dropping\x20the\x20entry','appendBuildState','SrJjy','message','1069306Fvwnbr','\x20not\x20acked\x20by\x20binary,\x20keeping\x20value\x20in-memory','flushPending','sbmhW','),\x20serving\x20in-memory\x20state'];a120_0x4850=function(){return _0x2793b8;};return a120_0x4850();}function a120_0x1cb6(_0x242291,_0x124cf7){const _0x485084=a120_0x4850();return a120_0x1cb6=function(_0x1cb629,_0x1cccdb){_0x1cb629=_0x1cb629-0x1b6;let _0x34023d=_0x485084[_0x1cb629];return _0x34023d;},a120_0x1cb6(_0x242291,_0x124cf7);}const a120_0xecab8a=a120_0x1cb6;(function(_0xac90f0,_0xd7dfa){const _0x4d2250=a120_0x1cb6,_0x53951b=_0xac90f0();while(!![]){try{const _0x36fb1e=-parseInt(_0x4d2250(0x209))/0x1+parseInt(_0x4d2250(0x1cd))/0x2*(-parseInt(_0x4d2250(0x1d3))/0x3)+parseInt(_0x4d2250(0x1df))/0x4+-parseInt(_0x4d2250(0x1c8))/0x5*(-parseInt(_0x4d2250(0x1ed))/0x6)+-parseInt(_0x4d2250(0x1e3))/0x7*(-parseInt(_0x4d2250(0x1d8))/0x8)+parseInt(_0x4d2250(0x1f7))/0x9*(-parseInt(_0x4d2250(0x1fe))/0xa)+parseInt(_0x4d2250(0x1ec))/0xb;if(_0x36fb1e===_0xd7dfa)break;else _0x53951b['push'](_0x53951b['shift']());}catch(_0x26a72b){_0x53951b['push'](_0x53951b['shift']());}}}(a120_0x4850,0xaa1d7));const GrpcClient=require('./grpcClient'),logger=require(a120_0xecab8a(0x1ea))[a120_0xecab8a(0x1c6)],SCOPE_TEST=a120_0xecab8a(0x1cc),SCOPE_BUILD='BUILD',localReplaceFallback=new Map(),localAppendBuffer=new Map(),localMergeBuffer=new Map(),keyChains=new Map(),isPlainObject=_0x33d65e=>_0x33d65e!==null&&typeof _0x33d65e===a120_0xecab8a(0x1b8)&&!Array[a120_0xecab8a(0x1e4)](_0x33d65e),mergeDelta=(_0x2934df,_0x3b7185)=>{const _0x9da8b=a120_0xecab8a,_0x161ce3={'nawvq':function(_0xe745a8,_0x441c7a){return _0xe745a8(_0x441c7a);},'ojQXH':function(_0x3f5851,_0x201c8d){return _0x3f5851(_0x201c8d);},'VxFqD':function(_0xeac4d3,_0x51f897,_0x4cdf1c){return _0xeac4d3(_0x51f897,_0x4cdf1c);}},_0xd181b5=Object[_0x9da8b(0x1bd)]({},_0x161ce3['nawvq'](isPlainObject,_0x2934df)?_0x2934df:{});if(!_0x161ce3[_0x9da8b(0x203)](isPlainObject,_0x3b7185))return _0xd181b5;return Object[_0x9da8b(0x1b6)](_0x3b7185)[_0x9da8b(0x1fc)](_0x3aa977=>{const _0x35fb1c=_0x9da8b;_0xd181b5[_0x3aa977]=_0x161ce3[_0x35fb1c(0x203)](isPlainObject,_0xd181b5[_0x3aa977])&&_0x161ce3[_0x35fb1c(0x1f6)](isPlainObject,_0x3b7185[_0x3aa977])?_0x161ce3[_0x35fb1c(0x1d7)](mergeDelta,_0xd181b5[_0x3aa977],_0x3b7185[_0x3aa977]):_0x3b7185[_0x3aa977];}),_0xd181b5;},localKey=(_0x8ba620,_0x487f6c,_0x5884df)=>_0x8ba620===SCOPE_TEST?_0x8ba620+':'+_0x5884df+':'+_0x487f6c:_0x8ba620+':'+_0x487f6c,rpcPublish=async(_0x1495af,_0x51f6f3,_0x42db74,_0x3552d7,_0x53b317)=>{const _0x2e81d3=a120_0xecab8a,_0x26caae={};_0x26caae[_0x2e81d3(0x1fa)]=_0x2e81d3(0x1ba);const _0x467319=_0x26caae;try{return await GrpcClient['getInstance']()[_0x2e81d3(0x1e5)](_0x1495af,_0x51f6f3,_0x42db74,_0x3552d7,_0x53b317);}catch(_0x305cd5){logger[_0x2e81d3(0x1bb)]('runStateStore:\x20publish\x20'+_0x1495af+':'+_0x51f6f3+_0x2e81d3(0x214)+(_0x305cd5&&_0x305cd5[_0x2e81d3(0x208)])+_0x2e81d3(0x1d5));const _0x2d1ab9={};return _0x2d1ab9[_0x2e81d3(0x1f2)]=![],_0x2d1ab9[_0x2e81d3(0x1dc)]=![],_0x2d1ab9[_0x2e81d3(0x202)]=_0x305cd5&&_0x305cd5[_0x2e81d3(0x208)]||_0x467319['UofNG'],_0x2d1ab9;}},chained=(_0xa03bd3,_0x12c10a)=>{const _0x569a25=a120_0xecab8a,_0x334740={};_0x334740[_0x569a25(0x1d9)]=function(_0x291f3c,_0x4bfb4d){return _0x291f3c===_0x4bfb4d;};const _0x9cb71c=_0x334740,_0x27b5d2=keyChains[_0x569a25(0x1ee)](_0xa03bd3)||Promise[_0x569a25(0x1fb)](),_0x270ab8=_0x27b5d2['then'](_0x12c10a,_0x12c10a),_0x36a8b0=_0x270ab8[_0x569a25(0x210)](()=>{},()=>{});return keyChains['set'](_0xa03bd3,_0x36a8b0),_0x36a8b0[_0x569a25(0x210)](()=>{const _0x456b32=_0x569a25;_0x9cb71c[_0x456b32(0x1d9)](keyChains['get'](_0xa03bd3),_0x36a8b0)&&keyChains[_0x456b32(0x1cb)](_0xa03bd3);}),_0x270ab8;},publish=(_0x533829,_0x48c4e2,_0x520166,_0x36bfed,_0x312056)=>chained(localKey(_0x533829,_0x48c4e2,_0x520166),async()=>{const _0x369168=a120_0xecab8a,_0x2edad3={'PRSil':function(_0x4ee8e5,_0x231925,_0x1aae56,_0x5cf5ab){return _0x4ee8e5(_0x231925,_0x1aae56,_0x5cf5ab);},'mrSiM':function(_0xcfe415,_0x3815d8){return _0xcfe415===_0x3815d8;},'BrkuF':_0x369168(0x1e6),'kzRPm':function(_0x16c4a0,_0x2ca779){return _0x16c4a0<_0x2ca779;},'AnvPa':function(_0x58d9cf,_0x132d5e){return _0x58d9cf===_0x132d5e;},'woBUv':function(_0x2b81c2,_0xaf6928){return _0x2b81c2-_0xaf6928;},'mpYIe':function(_0x2c201d,_0xa9acaa){return _0x2c201d>_0xa9acaa;},'utojX':function(_0xb7d1a0,_0x508af2,_0x24acfd,_0x42320e,_0x130489,_0x32f2df){return _0xb7d1a0(_0x508af2,_0x24acfd,_0x42320e,_0x130489,_0x32f2df);},'SrJjy':_0x369168(0x212),'VOQqF':function(_0x5ef9fe,_0xaa4f63,_0x3efc74){return _0x5ef9fe(_0xaa4f63,_0x3efc74);},'DVlKy':_0x369168(0x1c3),'OHAEh':'nothing','oqmhP':function(_0x4f9fc0,_0x12e40f,_0x46b6ee,_0x505233,_0x125433,_0x307e53){return _0x4f9fc0(_0x12e40f,_0x46b6ee,_0x505233,_0x125433,_0x307e53);}},_0x5b3f6e=_0x2edad3['PRSil'](localKey,_0x533829,_0x48c4e2,_0x520166);if(_0x2edad3[_0x369168(0x1ef)](_0x312056,_0x2edad3[_0x369168(0x1b7)])){const _0x36982a=localAppendBuffer[_0x369168(0x1ee)](_0x5b3f6e)||[],_0x5195c7=_0x36982a[_0x369168(0x1d1)]([_0x36bfed]),_0x4b72ae=[];let _0x401015=![];for(let _0x4d0919=0x0;_0x2edad3[_0x369168(0x1c0)](_0x4d0919,_0x5195c7[_0x369168(0x1e7)]);_0x4d0919++){const _0x58f11d=_0x2edad3[_0x369168(0x1be)](_0x4d0919,_0x2edad3['woBUv'](_0x5195c7[_0x369168(0x1e7)],0x1));if(_0x2edad3[_0x369168(0x1f4)](_0x4b72ae[_0x369168(0x1e7)],0x0)){_0x4b72ae[_0x369168(0x213)](_0x5195c7[_0x4d0919]);continue;}const _0x35e468=await _0x2edad3[_0x369168(0x1f8)](rpcPublish,_0x533829,_0x48c4e2,_0x520166,_0x5195c7[_0x4d0919],_0x2edad3[_0x369168(0x1b7)]);if(_0x35e468['terminal'])logger[_0x369168(0x1bb)](_0x369168(0x211)+_0x533829+':'+_0x48c4e2+_0x369168(0x1f9)+_0x35e468[_0x369168(0x202)]+_0x369168(0x205));else{if(_0x35e468[_0x369168(0x1d6)])logger['debug']('runStateStore:\x20append\x20'+_0x533829+':'+_0x48c4e2+'\x20was\x20truncated\x20by\x20the\x20binary\x20('+_0x35e468[_0x369168(0x202)]+_0x369168(0x205));else{if(!_0x35e468[_0x369168(0x1f2)])_0x4b72ae[_0x369168(0x213)](_0x5195c7[_0x4d0919]);else _0x58f11d&&(_0x401015=!![]);}}}return _0x2edad3[_0x369168(0x1f4)](_0x4b72ae[_0x369168(0x1e7)],0x0)?(logger[_0x369168(0x1bb)](_0x369168(0x211)+_0x533829+':'+_0x48c4e2+_0x369168(0x1d4)+_0x4b72ae[_0x369168(0x1e7)]+_0x369168(0x1bc)),localAppendBuffer[_0x369168(0x1db)](_0x5b3f6e,_0x4b72ae)):localAppendBuffer[_0x369168(0x1cb)](_0x5b3f6e),_0x401015;}if(_0x2edad3[_0x369168(0x1ef)](_0x312056,_0x2edad3[_0x369168(0x207)])){const _0x5dbde6=localMergeBuffer[_0x369168(0x1ee)](_0x5b3f6e),_0x4772a3=_0x5dbde6?_0x2edad3[_0x369168(0x1c9)](mergeDelta,_0x5dbde6,_0x36bfed):_0x36bfed,_0x4d9486=await _0x2edad3[_0x369168(0x1f8)](rpcPublish,_0x533829,_0x48c4e2,_0x520166,_0x4772a3,_0x2edad3[_0x369168(0x207)]);if(_0x4d9486[_0x369168(0x1dc)])return logger['debug']('runStateStore:\x20merge\x20'+_0x533829+':'+_0x48c4e2+'\x20refused\x20by\x20binary\x20('+_0x4d9486[_0x369168(0x202)]+_0x369168(0x1e0)+(_0x5dbde6?_0x2edad3[_0x369168(0x1c4)]:_0x2edad3['OHAEh'])),_0x5dbde6?localMergeBuffer[_0x369168(0x1db)](_0x5b3f6e,_0x5dbde6):localMergeBuffer[_0x369168(0x1cb)](_0x5b3f6e),![];return _0x4d9486['truncated']&&logger['debug'](_0x369168(0x215)+_0x533829+':'+_0x48c4e2+'\x20was\x20truncated\x20by\x20the\x20binary\x20('+_0x4d9486['error']+')'),!_0x4d9486[_0x369168(0x1f2)]?(logger[_0x369168(0x1bb)]('runStateStore:\x20merge\x20'+_0x533829+':'+_0x48c4e2+_0x369168(0x200)),localMergeBuffer[_0x369168(0x1db)](_0x5b3f6e,_0x4772a3)):localMergeBuffer[_0x369168(0x1cb)](_0x5b3f6e),_0x4d9486[_0x369168(0x1f2)];}const _0x5d57b0=await _0x2edad3[_0x369168(0x1c2)](rpcPublish,_0x533829,_0x48c4e2,_0x520166,_0x36bfed,_0x312056);_0x5d57b0[_0x369168(0x1d6)]&&logger[_0x369168(0x1bb)]('runStateStore:\x20publish\x20'+_0x533829+':'+_0x48c4e2+_0x369168(0x1c7)+_0x5d57b0[_0x369168(0x202)]+')');if(_0x5d57b0[_0x369168(0x1dc)])return logger[_0x369168(0x1bb)](_0x369168(0x1d2)+_0x533829+':'+_0x48c4e2+'\x20refused\x20by\x20binary\x20('+_0x5d57b0[_0x369168(0x202)]+_0x369168(0x1f0)),localReplaceFallback['delete'](_0x5b3f6e),![];return!_0x5d57b0[_0x369168(0x1f2)]?(logger[_0x369168(0x1bb)]('runStateStore:\x20publish\x20'+_0x533829+':'+_0x48c4e2+_0x369168(0x20a)),localReplaceFallback[_0x369168(0x1db)](_0x5b3f6e,_0x36bfed)):localReplaceFallback[_0x369168(0x1cb)](_0x5b3f6e),_0x5d57b0['acked'];}),fetch=(_0x5241ca,_0x372da2,_0x5efeb3)=>chained(localKey(_0x5241ca,_0x372da2,_0x5efeb3),async()=>{const _0x3defb4=a120_0xecab8a,_0x3201bf={'YNznN':function(_0x5b7961,_0x508a9a,_0x443d30,_0x590376){return _0x5b7961(_0x508a9a,_0x443d30,_0x590376);},'jOVkC':function(_0x139f7a,_0x22fb67){return _0x139f7a>_0x22fb67;},'BPIVJ':function(_0x2a073d,_0x5c32c7,_0x3663ca){return _0x2a073d(_0x5c32c7,_0x3663ca);},'sbmhW':function(_0x43f366,_0x46ae88){return _0x43f366!==_0x46ae88;}},_0x422de9=_0x3201bf[_0x3defb4(0x1d0)](localKey,_0x5241ca,_0x372da2,_0x5efeb3);let _0x522214;try{_0x522214=await GrpcClient['getInstance']()[_0x3defb4(0x1fd)](_0x5241ca,_0x372da2,_0x5efeb3);}catch(_0x52f0df){logger['debug'](_0x3defb4(0x20e)+_0x5241ca+':'+_0x372da2+_0x3defb4(0x214)+(_0x52f0df&&_0x52f0df[_0x3defb4(0x208)])+_0x3defb4(0x20d)),_0x522214=undefined;}const _0x35ff8f=localAppendBuffer[_0x3defb4(0x1ee)](_0x422de9);if(_0x35ff8f&&_0x3201bf[_0x3defb4(0x1cf)](_0x35ff8f[_0x3defb4(0x1e7)],0x0)){const _0x442dfc=Array['isArray'](_0x522214)?_0x522214:[];return _0x442dfc[_0x3defb4(0x1d1)](_0x35ff8f);}const _0x544a56=localMergeBuffer['get'](_0x422de9);if(_0x544a56)return _0x3201bf['BPIVJ'](mergeDelta,_0x522214,_0x544a56);if(_0x3201bf[_0x3defb4(0x20c)](_0x522214,undefined))return _0x522214;return localReplaceFallback['get'](_0x422de9);});exports[a120_0xecab8a(0x201)]=(_0x4a0ac0,_0x392728,_0x4b7b0c)=>publish(SCOPE_TEST,_0x4a0ac0,_0x392728,_0x4b7b0c,a120_0xecab8a(0x1f1)),exports[a120_0xecab8a(0x1ce)]=(_0x44b8d9,_0x5a9cb2,_0x2b1823)=>publish(SCOPE_TEST,_0x44b8d9,_0x5a9cb2,_0x2b1823,a120_0xecab8a(0x212)),exports[a120_0xecab8a(0x1ca)]=(_0x282cc8,_0x2afdfc,_0x20ee86)=>publish(SCOPE_TEST,_0x282cc8,_0x2afdfc,_0x20ee86,a120_0xecab8a(0x1e6)),exports[a120_0xecab8a(0x1e2)]=(_0x20d941,_0xb0887d)=>fetch(SCOPE_TEST,_0x20d941,_0xb0887d),exports[a120_0xecab8a(0x1c5)]=(_0x5adba3,_0x182563)=>publish(SCOPE_BUILD,_0x5adba3,'',_0x182563,a120_0xecab8a(0x1f1)),exports[a120_0xecab8a(0x206)]=(_0x28c5f4,_0x54d58c)=>publish(SCOPE_BUILD,_0x28c5f4,'',_0x54d58c,a120_0xecab8a(0x1e6)),exports[a120_0xecab8a(0x1e9)]=_0x1b3ca1=>fetch(SCOPE_BUILD,_0x1b3ca1),exports[a120_0xecab8a(0x20b)]=async()=>{const _0x4c99ad=a120_0xecab8a,_0x24d490={'ceCkz':function(_0x57a045,_0x1ea7c3){return _0x57a045===_0x1ea7c3;},'bYDkY':function(_0x8da155,_0x43d38e){return _0x8da155===_0x43d38e;},'TgwuI':function(_0x2bec9b,_0x138b6e){return _0x2bec9b===_0x138b6e;},'JSMPz':function(_0xe63a7e,_0x2bc4f6){return _0xe63a7e===_0x2bc4f6;},'EyFOi':'APPEND','BTcdN':function(_0x29d73f,_0x310725,_0x29c2a1,_0x8457ae,_0x3332c7,_0x7b2be1){return _0x29d73f(_0x310725,_0x29c2a1,_0x8457ae,_0x3332c7,_0x7b2be1);},'DUMrS':_0x4c99ad(0x212)},_0x204922=[];localMergeBuffer[_0x4c99ad(0x1fc)]((_0x2be710,_0x29baa7)=>_0x204922[_0x4c99ad(0x213)]({'lk':_0x29baa7,'delta':_0x2be710,'mode':'DEEP_MERGE'})),localReplaceFallback[_0x4c99ad(0x1fc)]((_0x50bb10,_0x4e6131)=>_0x204922[_0x4c99ad(0x213)]({'lk':_0x4e6131,'value':_0x50bb10,'mode':_0x4c99ad(0x1f1)})),localAppendBuffer[_0x4c99ad(0x1fc)]((_0x36b766,_0x2577ff)=>_0x204922[_0x4c99ad(0x213)]({'lk':_0x2577ff,'entries':_0x36b766,'mode':_0x4c99ad(0x1e6)}));if(_0x24d490[_0x4c99ad(0x1da)](_0x204922[_0x4c99ad(0x1e7)],0x0))return 0x0;logger['debug']('runStateStore:\x20flushing\x20'+_0x204922['length']+'\x20key(s)\x20still\x20held\x20in-memory');let _0x4719fc=0x0;for(const _0x52c91b of _0x204922){const [_0x2b3597,_0x392c31,..._0x1f2592]=_0x52c91b['lk'][_0x4c99ad(0x1f3)](':'),_0x1a55ea=_0x24d490['bYDkY'](_0x2b3597,SCOPE_TEST)?_0x392c31:'',_0x45b38d=_0x24d490[_0x4c99ad(0x1e8)](_0x2b3597,SCOPE_TEST)?_0x1f2592[_0x4c99ad(0x1dd)](':'):_0x392c31;try{if(_0x24d490[_0x4c99ad(0x1f5)](_0x52c91b['mode'],_0x24d490[_0x4c99ad(0x20f)])){const _0x205304=localAppendBuffer['get'](_0x52c91b['lk'])||[];localAppendBuffer[_0x4c99ad(0x1cb)](_0x52c91b['lk']);for(const _0x34eed0 of _0x205304){await _0x24d490[_0x4c99ad(0x1ff)](publish,_0x2b3597,_0x45b38d,_0x1a55ea,_0x34eed0,_0x24d490[_0x4c99ad(0x20f)])&&(_0x4719fc+=0x1);}}else await _0x24d490[_0x4c99ad(0x1ff)](publish,_0x2b3597,_0x45b38d,_0x1a55ea,_0x24d490[_0x4c99ad(0x1f5)](_0x52c91b[_0x4c99ad(0x204)],_0x24d490[_0x4c99ad(0x1eb)])?_0x52c91b[_0x4c99ad(0x1c1)]:_0x52c91b['value'],_0x52c91b[_0x4c99ad(0x204)])&&(_0x4719fc+=0x1);}catch(_0x2ac426){logger['debug']('runStateStore:\x20flush\x20of\x20'+_0x52c91b['lk']+_0x4c99ad(0x1e1)+(_0x2ac426&&_0x2ac426[_0x4c99ad(0x208)])+')');}}return _0x4719fc;},exports['_clearLocalFallback']=()=>{const _0x27064b=a120_0xecab8a;localReplaceFallback[_0x27064b(0x1de)](),localAppendBuffer[_0x27064b(0x1de)](),localMergeBuffer[_0x27064b(0x1de)](),keyChains[_0x27064b(0x1de)]();},exports[a120_0xecab8a(0x1b9)]=()=>keyChains[a120_0xecab8a(0x1bf)],exports['mergeDelta']=mergeDelta;
|
|
1
|
+
'use strict';function a120_0x6de3(){const _0x45784c=['get','AAtdg','),\x20dropping\x20the\x20entry','),\x20dropping\x20the\x20value','BMEyP','resolve','JMkyE','hWxnS','1573476MnnzIR','setBuildState','runStateStore:\x20fetch\x20','DEEP_MERGE','\x20not\x20acked\x20by\x20binary,\x20holding\x20','terminal','\x20was\x20truncated\x20by\x20the\x20binary\x20(','\x20failed\x20(','isArray','mergeDelta','ycvnU','IfFQG','debug','mode','rWqvE','getBuildState','clear','fetchRunState','publish\x20threw','set','runStateStore:\x20publish\x20','../../helpers/logger','BTpoG','length','6GPlYho','nbjSt','push','the\x20earlier\x20accumulation','concat','uQVVX','runStateStore:\x20append\x20','\x20refused\x20by\x20binary\x20(','UgGIp','acked','XQFgk','pVBuj','forEach','appendBuildState','2UeZXma','hngiw','assign','mergeTestState','PGdlW','BWWwD','truncated','then','_keyChainSize','\x20entr(y/ies)\x20in-memory','jDCMv','\x20not\x20acked\x20by\x20binary,\x20accumulating\x20the\x20delta\x20in-memory','11729634NukZjt','6278924imkNRu','11pKUvEP','),\x20treating\x20as\x20un-acked','hpShd','APPEND','publishRunState','BFctw','delete','OUGdy','join','message','8027175gpCadS','),\x20dropping\x20this\x20delta\x20and\x20keeping\x20','runStateStore:\x20flushing\x20','PgNxH','split','getTestState','BUILD','REPLACE','YCMGU','setTestState','error','8DwtiqU','runStateStore:\x20merge\x20','17392380eSLjpl','getInstance','16725555QvKSve','Bxcwd','),\x20serving\x20in-memory\x20state','3ZJZLuX','68329020Tjazlo','object','size','nothing','DyOYE','winstonLogger'];a120_0x6de3=function(){return _0x45784c;};return a120_0x6de3();}const a120_0x40c0a8=a120_0x17c8;(function(_0x361299,_0x3a833f){const _0x591569=a120_0x17c8,_0x2a4512=_0x361299();while(!![]){try{const _0x25960a=parseInt(_0x591569(0x199))/0x1*(parseInt(_0x591569(0x160))/0x2)+-parseInt(_0x591569(0x18a))/0x3*(-parseInt(_0x591569(0x16d))/0x4)+-parseInt(_0x591569(0x178))/0x5*(-parseInt(_0x591569(0x152))/0x6)+parseInt(_0x591569(0x16c))/0x7*(-parseInt(_0x591569(0x183))/0x8)+parseInt(_0x591569(0x187))/0x9+parseInt(_0x591569(0x185))/0xa+parseInt(_0x591569(0x16e))/0xb*(-parseInt(_0x591569(0x18b))/0xc);if(_0x25960a===_0x3a833f)break;else _0x2a4512['push'](_0x2a4512['shift']());}catch(_0x2c408d){_0x2a4512['push'](_0x2a4512['shift']());}}}(a120_0x6de3,0xee690));const GrpcClient=require('./grpcClient'),logger=require(a120_0x40c0a8(0x14f))[a120_0x40c0a8(0x190)],SCOPE_TEST='TEST',SCOPE_BUILD=a120_0x40c0a8(0x17e),localReplaceFallback=new Map(),localAppendBuffer=new Map(),localMergeBuffer=new Map(),keyChains=new Map(),isPlainObject=_0x36e2e0=>_0x36e2e0!==null&&typeof _0x36e2e0===a120_0x40c0a8(0x18c)&&!Array[a120_0x40c0a8(0x142)](_0x36e2e0),mergeDelta=(_0x39d134,_0x587529)=>{const _0x2d927b=a120_0x40c0a8,_0x14a1e1={'toAYQ':function(_0x237701,_0x2aad5b){return _0x237701(_0x2aad5b);},'BFctw':function(_0x167621,_0x3088a9){return _0x167621(_0x3088a9);},'xEmmF':function(_0x321685,_0x5f06f6,_0x639200){return _0x321685(_0x5f06f6,_0x639200);},'Bxcwd':function(_0x311740,_0xffce3b){return _0x311740(_0xffce3b);}},_0x28b092=Object[_0x2d927b(0x162)]({},_0x14a1e1[_0x2d927b(0x188)](isPlainObject,_0x39d134)?_0x39d134:{});if(!_0x14a1e1[_0x2d927b(0x173)](isPlainObject,_0x587529))return _0x28b092;return Object['keys'](_0x587529)[_0x2d927b(0x15e)](_0x55b9e6=>{const _0x3a3623=_0x2d927b;_0x28b092[_0x55b9e6]=_0x14a1e1['toAYQ'](isPlainObject,_0x28b092[_0x55b9e6])&&_0x14a1e1[_0x3a3623(0x173)](isPlainObject,_0x587529[_0x55b9e6])?_0x14a1e1['xEmmF'](mergeDelta,_0x28b092[_0x55b9e6],_0x587529[_0x55b9e6]):_0x587529[_0x55b9e6];}),_0x28b092;},localKey=(_0x151c33,_0x5d90c1,_0xb05a06)=>_0x151c33===SCOPE_TEST?_0x151c33+':'+_0xb05a06+':'+_0x5d90c1:_0x151c33+':'+_0x5d90c1,rpcPublish=async(_0x34daba,_0x1ec0f0,_0x324539,_0x567976,_0x2ff92f)=>{const _0xc5f41c=a120_0x40c0a8,_0x97fd83={};_0x97fd83[_0xc5f41c(0x15a)]=_0xc5f41c(0x14c);const _0x4e5b2e=_0x97fd83;try{return await GrpcClient[_0xc5f41c(0x186)]()[_0xc5f41c(0x172)](_0x34daba,_0x1ec0f0,_0x324539,_0x567976,_0x2ff92f);}catch(_0x108473){logger[_0xc5f41c(0x146)](_0xc5f41c(0x14e)+_0x34daba+':'+_0x1ec0f0+'\x20rejected\x20('+(_0x108473&&_0x108473[_0xc5f41c(0x177)])+_0xc5f41c(0x16f));const _0x136098={};return _0x136098[_0xc5f41c(0x15b)]=![],_0x136098[_0xc5f41c(0x13f)]=![],_0x136098[_0xc5f41c(0x182)]=_0x108473&&_0x108473['message']||_0x4e5b2e[_0xc5f41c(0x15a)],_0x136098;}},chained=(_0x3c81f2,_0x56b0df)=>{const _0x302e6f=a120_0x40c0a8,_0x9d25a={};_0x9d25a[_0x302e6f(0x164)]=function(_0x3e9f9e,_0x3ac839){return _0x3e9f9e===_0x3ac839;};const _0x4f5ac5=_0x9d25a,_0x3059ac=keyChains[_0x302e6f(0x191)](_0x3c81f2)||Promise[_0x302e6f(0x196)](),_0x565406=_0x3059ac[_0x302e6f(0x167)](_0x56b0df,_0x56b0df),_0x2b6909=_0x565406[_0x302e6f(0x167)](()=>{},()=>{});return keyChains[_0x302e6f(0x14d)](_0x3c81f2,_0x2b6909),_0x2b6909[_0x302e6f(0x167)](()=>{const _0x38bba0=_0x302e6f;_0x4f5ac5[_0x38bba0(0x164)](keyChains['get'](_0x3c81f2),_0x2b6909)&&keyChains['delete'](_0x3c81f2);}),_0x565406;},publish=(_0x354344,_0x39b115,_0x671c65,_0x28c897,_0xa10b37)=>chained(localKey(_0x354344,_0x39b115,_0x671c65),async()=>{const _0x569fba=a120_0x40c0a8,_0x251304={'BTpoG':function(_0x87d2dc,_0x5e872b,_0x55bb07,_0x410b81){return _0x87d2dc(_0x5e872b,_0x55bb07,_0x410b81);},'OfGnh':function(_0x44fb1a,_0x1462b4){return _0x44fb1a===_0x1462b4;},'IfFQG':_0x569fba(0x171),'BWWwD':function(_0x33a2a0,_0x2dfef4){return _0x33a2a0<_0x2dfef4;},'PgNxH':function(_0x3798cf,_0x53abc4){return _0x3798cf===_0x53abc4;},'SbXJw':function(_0x18e91a,_0x409bdc){return _0x18e91a-_0x409bdc;},'hpShd':function(_0x328461,_0x513ba2){return _0x328461>_0x513ba2;},'OUGdy':function(_0x3833aa,_0x9c2df9,_0x99d015,_0x283eb6,_0x4d762b,_0x2e57fb){return _0x3833aa(_0x9c2df9,_0x99d015,_0x283eb6,_0x4d762b,_0x2e57fb);},'OYjRw':function(_0x176034,_0x19f166){return _0x176034===_0x19f166;},'hngiw':_0x569fba(0x19c),'YCMGU':function(_0x3949a0,_0x4a2eae,_0x1c29eb){return _0x3949a0(_0x4a2eae,_0x1c29eb);},'DyOYE':function(_0xe71d28,_0x661b00,_0x3f3d96,_0x53290d,_0x69e0cb,_0x4e0919){return _0xe71d28(_0x661b00,_0x3f3d96,_0x53290d,_0x69e0cb,_0x4e0919);},'sIPKD':_0x569fba(0x155),'BNTpE':_0x569fba(0x18e)},_0x35f131=_0x251304[_0x569fba(0x150)](localKey,_0x354344,_0x39b115,_0x671c65);if(_0x251304['OfGnh'](_0xa10b37,_0x251304['IfFQG'])){const _0x21b72c=localAppendBuffer[_0x569fba(0x191)](_0x35f131)||[],_0x5ea15b=_0x21b72c[_0x569fba(0x156)]([_0x28c897]),_0x48f0c2=[];let _0x34c440=![];for(let _0x3cb729=0x0;_0x251304[_0x569fba(0x165)](_0x3cb729,_0x5ea15b[_0x569fba(0x151)]);_0x3cb729++){const _0x23516a=_0x251304[_0x569fba(0x17b)](_0x3cb729,_0x251304['SbXJw'](_0x5ea15b[_0x569fba(0x151)],0x1));if(_0x251304[_0x569fba(0x170)](_0x48f0c2[_0x569fba(0x151)],0x0)){_0x48f0c2[_0x569fba(0x154)](_0x5ea15b[_0x3cb729]);continue;}const _0x238d9c=await _0x251304['OUGdy'](rpcPublish,_0x354344,_0x39b115,_0x671c65,_0x5ea15b[_0x3cb729],_0x251304[_0x569fba(0x145)]);if(_0x238d9c[_0x569fba(0x13f)])logger[_0x569fba(0x146)](_0x569fba(0x158)+_0x354344+':'+_0x39b115+_0x569fba(0x159)+_0x238d9c[_0x569fba(0x182)]+_0x569fba(0x193));else{if(_0x238d9c[_0x569fba(0x166)])logger[_0x569fba(0x146)](_0x569fba(0x158)+_0x354344+':'+_0x39b115+_0x569fba(0x140)+_0x238d9c[_0x569fba(0x182)]+_0x569fba(0x193));else{if(!_0x238d9c[_0x569fba(0x15b)])_0x48f0c2[_0x569fba(0x154)](_0x5ea15b[_0x3cb729]);else _0x23516a&&(_0x34c440=!![]);}}}return _0x251304[_0x569fba(0x170)](_0x48f0c2['length'],0x0)?(logger['debug'](_0x569fba(0x158)+_0x354344+':'+_0x39b115+_0x569fba(0x19d)+_0x48f0c2[_0x569fba(0x151)]+_0x569fba(0x169)),localAppendBuffer['set'](_0x35f131,_0x48f0c2)):localAppendBuffer[_0x569fba(0x174)](_0x35f131),_0x34c440;}if(_0x251304['OYjRw'](_0xa10b37,_0x251304[_0x569fba(0x161)])){const _0x3886c7=localMergeBuffer[_0x569fba(0x191)](_0x35f131),_0x44b07c=_0x3886c7?_0x251304[_0x569fba(0x180)](mergeDelta,_0x3886c7,_0x28c897):_0x28c897,_0x18f1a4=await _0x251304[_0x569fba(0x18f)](rpcPublish,_0x354344,_0x39b115,_0x671c65,_0x44b07c,_0x251304['hngiw']);if(_0x18f1a4[_0x569fba(0x13f)])return logger['debug'](_0x569fba(0x184)+_0x354344+':'+_0x39b115+_0x569fba(0x159)+_0x18f1a4[_0x569fba(0x182)]+_0x569fba(0x179)+(_0x3886c7?_0x251304['sIPKD']:_0x251304['BNTpE'])),_0x3886c7?localMergeBuffer[_0x569fba(0x14d)](_0x35f131,_0x3886c7):localMergeBuffer[_0x569fba(0x174)](_0x35f131),![];return _0x18f1a4[_0x569fba(0x166)]&&logger['debug'](_0x569fba(0x184)+_0x354344+':'+_0x39b115+_0x569fba(0x140)+_0x18f1a4[_0x569fba(0x182)]+')'),!_0x18f1a4[_0x569fba(0x15b)]?(logger[_0x569fba(0x146)](_0x569fba(0x184)+_0x354344+':'+_0x39b115+_0x569fba(0x16b)),localMergeBuffer[_0x569fba(0x14d)](_0x35f131,_0x44b07c)):localMergeBuffer[_0x569fba(0x174)](_0x35f131),_0x18f1a4[_0x569fba(0x15b)];}const _0x146955=await _0x251304[_0x569fba(0x175)](rpcPublish,_0x354344,_0x39b115,_0x671c65,_0x28c897,_0xa10b37);_0x146955[_0x569fba(0x166)]&&logger[_0x569fba(0x146)](_0x569fba(0x14e)+_0x354344+':'+_0x39b115+_0x569fba(0x140)+_0x146955[_0x569fba(0x182)]+')');if(_0x146955[_0x569fba(0x13f)])return logger[_0x569fba(0x146)](_0x569fba(0x14e)+_0x354344+':'+_0x39b115+_0x569fba(0x159)+_0x146955[_0x569fba(0x182)]+_0x569fba(0x194)),localReplaceFallback[_0x569fba(0x174)](_0x35f131),![];return!_0x146955[_0x569fba(0x15b)]?(logger[_0x569fba(0x146)](_0x569fba(0x14e)+_0x354344+':'+_0x39b115+'\x20not\x20acked\x20by\x20binary,\x20keeping\x20value\x20in-memory'),localReplaceFallback['set'](_0x35f131,_0x28c897)):localReplaceFallback[_0x569fba(0x174)](_0x35f131),_0x146955[_0x569fba(0x15b)];}),fetch=(_0x4f558c,_0x5662e1,_0x1d1a83)=>chained(localKey(_0x4f558c,_0x5662e1,_0x1d1a83),async()=>{const _0x18d7f9=a120_0x40c0a8,_0x5a2ad3={'nbjSt':function(_0xc9e7ad,_0x2e9d59,_0x409f21,_0x4c7af1){return _0xc9e7ad(_0x2e9d59,_0x409f21,_0x4c7af1);},'AAtdg':function(_0x16b898,_0x2f245d){return _0x16b898>_0x2f245d;},'pVBuj':function(_0x8f585d,_0x35b1c7,_0x4a5e8a){return _0x8f585d(_0x35b1c7,_0x4a5e8a);},'rWqvE':function(_0x1fe8da,_0x91c2e0){return _0x1fe8da!==_0x91c2e0;}},_0x347c77=_0x5a2ad3[_0x18d7f9(0x153)](localKey,_0x4f558c,_0x5662e1,_0x1d1a83);let _0x4df263;try{_0x4df263=await GrpcClient[_0x18d7f9(0x186)]()[_0x18d7f9(0x14b)](_0x4f558c,_0x5662e1,_0x1d1a83);}catch(_0xa316){logger['debug'](_0x18d7f9(0x19b)+_0x4f558c+':'+_0x5662e1+'\x20rejected\x20('+(_0xa316&&_0xa316[_0x18d7f9(0x177)])+_0x18d7f9(0x189)),_0x4df263=undefined;}const _0x5b0f30=localAppendBuffer[_0x18d7f9(0x191)](_0x347c77);if(_0x5b0f30&&_0x5a2ad3[_0x18d7f9(0x192)](_0x5b0f30[_0x18d7f9(0x151)],0x0)){const _0x51149e=Array[_0x18d7f9(0x142)](_0x4df263)?_0x4df263:[];return _0x51149e['concat'](_0x5b0f30);}const _0x35d7fb=localMergeBuffer[_0x18d7f9(0x191)](_0x347c77);if(_0x35d7fb)return _0x5a2ad3[_0x18d7f9(0x15d)](mergeDelta,_0x4df263,_0x35d7fb);if(_0x5a2ad3[_0x18d7f9(0x148)](_0x4df263,undefined))return _0x4df263;return localReplaceFallback['get'](_0x347c77);});function a120_0x17c8(_0x32bf88,_0x4e5fde){const _0x6de3f8=a120_0x6de3();return a120_0x17c8=function(_0x17c8ad,_0x565e41){_0x17c8ad=_0x17c8ad-0x13f;let _0x2907a8=_0x6de3f8[_0x17c8ad];return _0x2907a8;},a120_0x17c8(_0x32bf88,_0x4e5fde);}exports[a120_0x40c0a8(0x181)]=(_0x2cb28f,_0x23c2a2,_0x373fe8)=>publish(SCOPE_TEST,_0x2cb28f,_0x23c2a2,_0x373fe8,a120_0x40c0a8(0x17f)),exports[a120_0x40c0a8(0x163)]=(_0x1d557e,_0x374c1e,_0x3288a9)=>publish(SCOPE_TEST,_0x1d557e,_0x374c1e,_0x3288a9,a120_0x40c0a8(0x19c)),exports['appendTestState']=(_0x456689,_0x742d2,_0x10b6ee)=>publish(SCOPE_TEST,_0x456689,_0x742d2,_0x10b6ee,'APPEND'),exports[a120_0x40c0a8(0x17d)]=(_0x389407,_0x3438dc)=>fetch(SCOPE_TEST,_0x389407,_0x3438dc),exports[a120_0x40c0a8(0x19a)]=(_0x4bdb8c,_0x176164)=>publish(SCOPE_BUILD,_0x4bdb8c,'',_0x176164,'REPLACE'),exports[a120_0x40c0a8(0x15f)]=(_0x3bffc5,_0x1f4c10)=>publish(SCOPE_BUILD,_0x3bffc5,'',_0x1f4c10,a120_0x40c0a8(0x171)),exports[a120_0x40c0a8(0x149)]=_0xbc0940=>fetch(SCOPE_BUILD,_0xbc0940),exports['flushPending']=async()=>{const _0x4392a0=a120_0x40c0a8,_0x1b0702={'ycvnU':function(_0x3fbc98,_0x29b669){return _0x3fbc98===_0x29b669;},'JMkyE':function(_0x2cc1cc,_0x2695cd){return _0x2cc1cc===_0x2695cd;},'XQFgk':function(_0x40b471,_0x38678b){return _0x40b471===_0x38678b;},'BMEyP':'APPEND','jDCMv':function(_0x1f4b76,_0x8bbb03,_0x49c915,_0x2b1e16,_0x1e9f38,_0x2e5651){return _0x1f4b76(_0x8bbb03,_0x49c915,_0x2b1e16,_0x1e9f38,_0x2e5651);},'uQVVX':function(_0x293301,_0x27e1b4,_0x2c084d,_0x55b76b,_0x4c054c,_0x481791){return _0x293301(_0x27e1b4,_0x2c084d,_0x55b76b,_0x4c054c,_0x481791);},'hWxnS':'DEEP_MERGE'},_0x106c74=[];localMergeBuffer['forEach']((_0x5cf2ec,_0x2068fe)=>_0x106c74[_0x4392a0(0x154)]({'lk':_0x2068fe,'delta':_0x5cf2ec,'mode':_0x4392a0(0x19c)})),localReplaceFallback[_0x4392a0(0x15e)]((_0x2298ed,_0x147125)=>_0x106c74[_0x4392a0(0x154)]({'lk':_0x147125,'value':_0x2298ed,'mode':'REPLACE'})),localAppendBuffer[_0x4392a0(0x15e)]((_0x387f15,_0x2a53aa)=>_0x106c74['push']({'lk':_0x2a53aa,'entries':_0x387f15,'mode':'APPEND'}));if(_0x1b0702[_0x4392a0(0x144)](_0x106c74[_0x4392a0(0x151)],0x0))return 0x0;logger[_0x4392a0(0x146)](_0x4392a0(0x17a)+_0x106c74[_0x4392a0(0x151)]+'\x20key(s)\x20still\x20held\x20in-memory');let _0x1b43de=0x0;for(const _0x110022 of _0x106c74){const [_0x1faa90,_0x22593a,..._0x439b7a]=_0x110022['lk'][_0x4392a0(0x17c)](':'),_0x3ae329=_0x1b0702[_0x4392a0(0x144)](_0x1faa90,SCOPE_TEST)?_0x22593a:'',_0x52d068=_0x1b0702[_0x4392a0(0x197)](_0x1faa90,SCOPE_TEST)?_0x439b7a[_0x4392a0(0x176)](':'):_0x22593a;try{if(_0x1b0702[_0x4392a0(0x15c)](_0x110022[_0x4392a0(0x147)],_0x1b0702[_0x4392a0(0x195)])){const _0x51da8c=localAppendBuffer['get'](_0x110022['lk'])||[];localAppendBuffer[_0x4392a0(0x174)](_0x110022['lk']);for(const _0x323aeb of _0x51da8c){await _0x1b0702[_0x4392a0(0x16a)](publish,_0x1faa90,_0x52d068,_0x3ae329,_0x323aeb,_0x1b0702[_0x4392a0(0x195)])&&(_0x1b43de+=0x1);}}else await _0x1b0702[_0x4392a0(0x157)](publish,_0x1faa90,_0x52d068,_0x3ae329,_0x1b0702[_0x4392a0(0x15c)](_0x110022['mode'],_0x1b0702[_0x4392a0(0x198)])?_0x110022['delta']:_0x110022['value'],_0x110022[_0x4392a0(0x147)])&&(_0x1b43de+=0x1);}catch(_0x36fea0){logger['debug']('runStateStore:\x20flush\x20of\x20'+_0x110022['lk']+_0x4392a0(0x141)+(_0x36fea0&&_0x36fea0[_0x4392a0(0x177)])+')');}}return _0x1b43de;},exports['_clearLocalFallback']=()=>{const _0x29dff5=a120_0x40c0a8;localReplaceFallback[_0x29dff5(0x14a)](),localAppendBuffer[_0x29dff5(0x14a)](),localMergeBuffer[_0x29dff5(0x14a)](),keyChains[_0x29dff5(0x14a)]();},exports[a120_0x40c0a8(0x168)]=()=>keyChains[a120_0x40c0a8(0x18d)],exports[a120_0x40c0a8(0x143)]=mergeDelta;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121_0x5ec532=a121_0x2c40;(function(_0x4d2d1b,_0x260506){const _0x1b8dc4=a121_0x2c40,_0x569da0=_0x4d2d1b();while(!![]){try{const _0x38452a=parseInt(_0x1b8dc4(0x114))/0x1*(parseInt(_0x1b8dc4(0xef))/0x2)+-parseInt(_0x1b8dc4(0xf5))/0x3*(-parseInt(_0x1b8dc4(0xf4))/0x4)+-parseInt(_0x1b8dc4(0xf8))/0x5+parseInt(_0x1b8dc4(0x111))/0x6+-parseInt(_0x1b8dc4(0xfa))/0x7*(parseInt(_0x1b8dc4(0x10e))/0x8)+-parseInt(_0x1b8dc4(0xf0))/0x9+parseInt(_0x1b8dc4(0x105))/0xa*(parseInt(_0x1b8dc4(0x103))/0xb);if(_0x38452a===_0x260506)break;else _0x569da0['push'](_0x569da0['shift']());}catch(_0x36875b){_0x569da0['push'](_0x569da0['shift']());}}}(a121_0x2b30,0x5b426));const grpc=require(a121_0x5ec532(0xe3)),a121_0x3d16af={};a121_0x3d16af['BINARY_UNREACHABLE']=a121_0x5ec532(0x11a),a121_0x3d16af[a121_0x5ec532(0xe6)]=a121_0x5ec532(0xfe),a121_0x3d16af[a121_0x5ec532(0xf1)]=a121_0x5ec532(0xe5),a121_0x3d16af[a121_0x5ec532(0xf3)]=a121_0x5ec532(0x109),a121_0x3d16af[a121_0x5ec532(0x100)]=a121_0x5ec532(0xf9),a121_0x3d16af[a121_0x5ec532(0xee)]=a121_0x5ec532(0x118);const BUCKETS=a121_0x3d16af,a121_0x2e6db6={[BUCKETS['BINARY_UNREACHABLE']]:a121_0x5ec532(0xfd),[BUCKETS['AUTH_FAILED']]:a121_0x5ec532(0xfc),[BUCKETS[a121_0x5ec532(0xf1)]]:a121_0x5ec532(0xec),[BUCKETS['INVALID_REQUEST']]:a121_0x5ec532(0x116),[BUCKETS['SERVER_FAILURE']]:a121_0x5ec532(0x10b),[BUCKETS['UNKNOWN']]:a121_0x5ec532(0xfb)},MESSAGES=a121_0x2e6db6;function classify(_0x3d7b60){const _0x456aa5=a121_0x5ec532,_0x58b4cf={};_0x58b4cf[_0x456aa5(0xe8)]=function(_0x637823,_0x12194b){return _0x637823!==_0x12194b;},_0x58b4cf[_0x456aa5(0x106)]=_0x456aa5(0x104);const _0x3af751=_0x58b4cf;if(!_0x3d7b60)return BUCKETS[_0x456aa5(0xee)];const _0x34e12b=_0x3d7b60['code'];if(_0x3af751[_0x456aa5(0xe8)](typeof _0x34e12b,_0x3af751[_0x456aa5(0x106)]))return BUCKETS[_0x456aa5(0xee)];switch(_0x34e12b){case grpc[_0x456aa5(0x107)][_0x456aa5(0xf6)]:case grpc['status']['CANCELLED']:return BUCKETS[_0x456aa5(0x10d)];case grpc[_0x456aa5(0x107)]['UNAUTHENTICATED']:case grpc[_0x456aa5(0x107)][_0x456aa5(0xf2)]:return BUCKETS[_0x456aa5(0xe6)];case grpc[_0x456aa5(0x107)][_0x456aa5(0xe0)]:return BUCKETS[_0x456aa5(0xf1)];case grpc['status'][_0x456aa5(0x10a)]:case grpc[_0x456aa5(0x107)][_0x456aa5(0x11c)]:case grpc['status'][_0x456aa5(0x117)]:case grpc[_0x456aa5(0x107)]['ALREADY_EXISTS']:case grpc['status'][_0x456aa5(0xed)]:return BUCKETS[_0x456aa5(0xf3)];case grpc['status'][_0x456aa5(0x101)]:case grpc[_0x456aa5(0x107)]['UNKNOWN']:case grpc[_0x456aa5(0x107)]['DATA_LOSS']:case grpc[_0x456aa5(0x107)][_0x456aa5(0xe4)]:case grpc[_0x456aa5(0x107)]['RESOURCE_EXHAUSTED']:case grpc[_0x456aa5(0x107)][_0x456aa5(0x110)]:return BUCKETS[_0x456aa5(0x100)];default:return BUCKETS['UNKNOWN'];}}function messageFor(_0x2b9c70){const _0x956818=a121_0x5ec532;return MESSAGES[_0x2b9c70]||MESSAGES[BUCKETS[_0x956818(0xee)]];}function a121_0x2c40(_0xd1afbb,_0x1bc1d9){const _0x2b3025=a121_0x2b30();return a121_0x2c40=function(_0x2c40fd,_0x3d238d){_0x2c40fd=_0x2c40fd-0xdf;let _0x432807=_0x2b3025[_0x2c40fd];return _0x432807;},a121_0x2c40(_0xd1afbb,_0x1bc1d9);}function a121_0x2b30(){const _0x55519c=['5832kzcUbu','1153449UXgZzx','TIMEOUT','PERMISSION_DENIED','INVALID_REQUEST','659368VGGqKi','3NzrHBQ','UNAVAILABLE','debug','2642140HuUXgz','server_failure','1351uuIQgK','Unexpected\x20error\x20talking\x20to\x20the\x20BrowserStack\x20helper.\x20Please\x20report\x20this\x20with\x20the\x20test\x20logs.','BrowserStack\x20authentication\x20failed.\x20Verify\x20BROWSERSTACK_USERNAME\x20/\x20BROWSERSTACK_ACCESS_KEY\x20(env\x20or\x20browserstack.yml).','Could\x20not\x20reach\x20the\x20BrowserStack\x20helper\x20process.\x20It\x20may\x20have\x20crashed\x20or\x20a\x20firewall\x20is\x20blocking\x20localhost\x20gRPC.\x20Tests\x20will\x20continue;\x20BrowserStack\x20features\x20may\x20be\x20degraded.','auth_failed','[BrowserStack]\x20','SERVER_FAILURE','INTERNAL','classify','11692120fqZUSO','number','10nBDDpA','Knlcl','status','handle','invalid_request','INVALID_ARGUMENT','The\x20BrowserStack\x20helper\x20hit\x20an\x20internal\x20error.\x20Tests\x20will\x20continue;\x20BrowserStack\x20features\x20may\x20be\x20degraded\x20-\x20please\x20retry.','KQmHS','BINARY_UNREACHABLE','22928cIgXId','iHDni','UNIMPLEMENTED','2117082iAWzni','\x20bucket=','[BrowserStack]\x20gRPC\x20raw:\x20rpc=','1gYjFru','NuDGV','BrowserStack\x20SDK\x20sent\x20an\x20unexpected\x20request\x20to\x20its\x20helper.\x20Please\x20report\x20this\x20with\x20the\x20test\x20logs.','OUT_OF_RANGE','unknown','warn','binary_unreachable','\x20code=','NOT_FOUND','code','DEADLINE_EXCEEDED','details','function','@grpc/grpc-js','ABORTED','timeout','AUTH_FAILED','message','TziCM','KTGwJ','ozKUT','exports','The\x20BrowserStack\x20helper\x20did\x20not\x20respond\x20in\x20time.\x20Usually\x20a\x20transient\x20network\x20slowdown\x20-\x20retry\x20the\x20test.','FAILED_PRECONDITION','UNKNOWN'];a121_0x2b30=function(){return _0x55519c;};return a121_0x2b30();}function handle(_0x514913,_0x45e060,_0x494c84,_0x4bd0c5=a121_0x5ec532(0x119)){const _0x19be2f=a121_0x5ec532,_0x49c95e={'KTGwJ':function(_0x4f5d5e,_0x28679f){return _0x4f5d5e(_0x28679f);},'ozKUT':function(_0x14275a,_0x25c7fc){return _0x14275a(_0x25c7fc);},'KQmHS':function(_0x174f31,_0x19d802){return _0x174f31===_0x19d802;},'yTaal':_0x19be2f(0xe2),'NuDGV':function(_0x2c8775,_0xe1bd71){return _0x2c8775===_0xe1bd71;},'iHDni':_0x19be2f(0x104),'BYcBH':function(_0x45bcd8,_0x3fcd31){return _0x45bcd8(_0x3fcd31);}},_0x32729f=_0x49c95e[_0x19be2f(0xe9)](classify,_0x45e060),_0x3f645a=_0x19be2f(0xff)+_0x49c95e[_0x19be2f(0xea)](messageFor,_0x32729f)+'\x20(rpc='+_0x514913+')';try{_0x49c95e[_0x19be2f(0x10c)](typeof _0x494c84[_0x4bd0c5],_0x49c95e['yTaal'])?_0x494c84[_0x4bd0c5](_0x3f645a):_0x494c84[_0x19be2f(0x119)](_0x3f645a);}catch(_0x5de555){}try{const _0x1786bb=_0x45e060&&_0x49c95e[_0x19be2f(0x115)](typeof _0x45e060[_0x19be2f(0xdf)],_0x49c95e[_0x19be2f(0x10f)])?_0x45e060[_0x19be2f(0xdf)]:null,_0x3e7dff=_0x45e060&&_0x45e060[_0x19be2f(0xe1)]?_0x45e060[_0x19be2f(0xe1)]:_0x45e060&&_0x45e060[_0x19be2f(0xe7)]?_0x45e060['message']:_0x49c95e['BYcBH'](String,_0x45e060);_0x494c84[_0x19be2f(0xf7)](_0x19be2f(0x113)+_0x514913+_0x19be2f(0x112)+_0x32729f+_0x19be2f(0x11b)+_0x1786bb+'\x20details='+_0x3e7dff);}catch(_0x28ba56){}return _0x32729f;}const a121_0x59cda2={};a121_0x59cda2['BUCKETS']=BUCKETS,a121_0x59cda2[a121_0x5ec532(0x102)]=classify,a121_0x59cda2['messageFor']=messageFor,a121_0x59cda2[a121_0x5ec532(0x108)]=handle,module[a121_0x5ec532(0xeb)]=a121_0x59cda2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122_0x4bca15=a122_0x2234;(function(_0x1ab339,_0x2cfe18){const _0x59bbd9=a122_0x2234,_0x626bb4=_0x1ab339();while(!![]){try{const _0x1f4918=parseInt(_0x59bbd9(0xcc))/0x1+-parseInt(_0x59bbd9(0xc0))/0x2*(-parseInt(_0x59bbd9(0xb7))/0x3)+-parseInt(_0x59bbd9(0xc6))/0x4*(parseInt(_0x59bbd9(0xb9))/0x5)+-parseInt(_0x59bbd9(0xc3))/0x6+parseInt(_0x59bbd9(0xbd))/0x7*(parseInt(_0x59bbd9(0xc5))/0x8)+parseInt(_0x59bbd9(0xcd))/0x9*(-parseInt(_0x59bbd9(0xc9))/0xa)+-parseInt(_0x59bbd9(0xce))/0xb*(-parseInt(_0x59bbd9(0xbc))/0xc);if(_0x1f4918===_0x2cfe18)break;else _0x626bb4['push'](_0x626bb4['shift']());}catch(_0x189043){_0x626bb4['push'](_0x626bb4['shift']());}}}(a122_0x2a0e,0xba6ac));const {PLAYWRIGHT}=require(a122_0x4bca15(0xcf)),a122_0x2c4b8f={};a122_0x2c4b8f[a122_0x4bca15(0xb8)]=0x0,a122_0x2c4b8f['toString']=function(){const _0x161071=a122_0x4bca15,_0xa8391e={};_0xa8391e['yOadC']=_0x161071(0xca);const _0x234d65=_0xa8391e;return _0x234d65[_0x161071(0xbf)];};const a122_0x2b385c={};a122_0x2b385c[a122_0x4bca15(0xb8)]=0x1,a122_0x2b385c[a122_0x4bca15(0xbe)]=function(){const _0x373817=a122_0x4bca15,_0x4c0c8e={};_0x4c0c8e[_0x373817(0xc1)]=_0x373817(0xc8);const _0x11a395=_0x4c0c8e;return _0x11a395[_0x373817(0xc1)];};const a122_0x28a97d={};a122_0x28a97d[a122_0x4bca15(0xb8)]=0x2,a122_0x28a97d[a122_0x4bca15(0xbe)]=function(){const _0x2a65d8={};_0x2a65d8['uQlty']='AutomationFrameworkState.PLAYWRIGHT_DISPATCH';const _0x48ffa6=_0x2a65d8;return _0x48ffa6['uQlty'];};function a122_0x2234(_0x462610,_0x485441){const _0x2a0eb3=a122_0x2a0e();return a122_0x2234=function(_0x223450,_0x37a1f8){_0x223450=_0x223450-0xb7;let _0x6b86df=_0x2a0eb3[_0x223450];return _0x6b86df;},a122_0x2234(_0x462610,_0x485441);}const a122_0x43694a={};a122_0x43694a[a122_0x4bca15(0xb8)]=0x3,a122_0x43694a['toString']=function(){const _0xa0d9de=a122_0x4bca15,_0x16a092={};_0x16a092[_0xa0d9de(0xbb)]='AutomationFrameworkState.EXECUTE';const _0x3d4bb0=_0x16a092;return _0x3d4bb0[_0xa0d9de(0xbb)];};const a122_0x4e424b={};a122_0x4e424b[a122_0x4bca15(0xb8)]=0x4,a122_0x4e424b[a122_0x4bca15(0xbe)]=function(){const _0x450866=a122_0x4bca15,_0x495181={};_0x495181[_0x450866(0xc2)]=_0x450866(0xc7);const _0x55732e=_0x495181;return _0x55732e[_0x450866(0xc2)];};const a122_0x1737d6={};a122_0x1737d6[a122_0x4bca15(0xb8)]=0x5,a122_0x1737d6['toString']=function(){const _0x2255a0=a122_0x4bca15,_0x43466a={};_0x43466a[_0x2255a0(0xba)]='AutomationFrameworkState.QUIT';const _0xfdd368=_0x43466a;return _0xfdd368['DYuen'];};const AutomationFrameworkState=Object['freeze']({'NONE':a122_0x2c4b8f,'CREATE':a122_0x2b385c,'PLAYWRIGHT_DISPATCH':a122_0x28a97d,'EXECUTE':a122_0x43694a,'IDLE':a122_0x4e424b,'QUIT':a122_0x1737d6,'fromValue'(_0x51d856){const _0x35e91d=a122_0x4bca15;return Object[_0x35e91d(0xc4)](AutomationFrameworkState)[_0x35e91d(0xcb)](_0x3e2c25=>_0x3e2c25['value']===_0x51d856);}});module['exports']=AutomationFrameworkState;function a122_0x2a0e(){const _0x472245=['toString','yOadC','2HLKePY','EjWIF','PecRw','6700260zwUrgf','values','505528WtVaSn','2731448KwIFLh','AutomationFrameworkState.IDLE','AutomationFrameworkState.CREATE','270miGnSN','AutomationFrameworkState.NONE','find','939664TMlQQI','479484cljsev','16237287rnVnYU','../../utils/constants','3619983FCTcyw','value','5nSyWRs','DYuen','CVgKk','12PhdxZL','42aKsPdR'];a122_0x2a0e=function(){return _0x472245;};return a122_0x2a0e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a123_0x4f70(_0x5c1a64,_0x286ce9){const _0x341da2=a123_0x341d();return a123_0x4f70=function(_0x4f70fc,_0x4935a4){_0x4f70fc=_0x4f70fc-0x151;let _0x40ac55=_0x341da2[_0x4f70fc];return _0x40ac55;},a123_0x4f70(_0x5c1a64,_0x286ce9);}const a123_0x4eb7d4=a123_0x4f70;(function(_0x9b7ce5,_0x5ba6dc){const _0x40a732=a123_0x4f70,_0x4b128=_0x9b7ce5();while(!![]){try{const _0xd2a576=-parseInt(_0x40a732(0x157))/0x1*(-parseInt(_0x40a732(0x15c))/0x2)+parseInt(_0x40a732(0x15f))/0x3+-parseInt(_0x40a732(0x15d))/0x4*(parseInt(_0x40a732(0x161))/0x5)+-parseInt(_0x40a732(0x15b))/0x6*(parseInt(_0x40a732(0x15e))/0x7)+-parseInt(_0x40a732(0x152))/0x8+-parseInt(_0x40a732(0x155))/0x9+parseInt(_0x40a732(0x15a))/0xa;if(_0xd2a576===_0x5ba6dc)break;else _0x4b128['push'](_0x4b128['shift']());}catch(_0xb0586d){_0x4b128['push'](_0x4b128['shift']());}}}(a123_0x341d,0xcee44));const a123_0x48bd5a={};a123_0x48bd5a[a123_0x4eb7d4(0x154)]=0x0,a123_0x48bd5a[a123_0x4eb7d4(0x158)]=function(){const _0x1da9e8=a123_0x4eb7d4,_0x2d0534={};_0x2d0534[_0x1da9e8(0x156)]='HookState.NONE';const _0x446793=_0x2d0534;return _0x446793[_0x1da9e8(0x156)];};const a123_0x4b0a82={};a123_0x4b0a82[a123_0x4eb7d4(0x154)]=0x1,a123_0x4b0a82[a123_0x4eb7d4(0x158)]=function(){const _0x6dbd29=a123_0x4eb7d4,_0x5e9738={};_0x5e9738[_0x6dbd29(0x160)]=_0x6dbd29(0x151);const _0x370aa7=_0x5e9738;return _0x370aa7['mJZiK'];};const a123_0x2652b0={};a123_0x2652b0[a123_0x4eb7d4(0x154)]=0x2,a123_0x2652b0[a123_0x4eb7d4(0x158)]=function(){const _0x46e575=a123_0x4eb7d4,_0x1cc451={};_0x1cc451['QxRrs']='HookState.POST';const _0x506600=_0x1cc451;return _0x506600[_0x46e575(0x159)];};const HookState=Object[a123_0x4eb7d4(0x162)]({'NONE':a123_0x48bd5a,'PRE':a123_0x4b0a82,'POST':a123_0x2652b0,'fromValue'(_0x390705){const _0x481e8d=a123_0x4eb7d4;return Object[_0x481e8d(0x153)](HookState)['find'](_0x2e04d6=>_0x2e04d6[_0x481e8d(0x154)]===_0x390705);}});function a123_0x341d(){const _0x12ebdf=['QxRrs','34288290DVzqIF','6oEsLZZ','2VILaGX','24MprFZX','1460522stcXSA','503175lfgXSw','mJZiK','355765JXKIOt','freeze','HookState.PRE','12688112cEXgJg','values','value','13727250UXtuNe','ABaEH','997702EjDRjS','toString'];a123_0x341d=function(){return _0x12ebdf;};return a123_0x341d();}module['exports']=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124_0x5c2aed=a124_0x2aaa;(function(_0x159053,_0x41de10){const _0x4daf09=a124_0x2aaa,_0x1346a9=_0x159053();while(!![]){try{const _0x42764a=parseInt(_0x4daf09(0x1bd))/0x1+parseInt(_0x4daf09(0x1b7))/0x2+parseInt(_0x4daf09(0x1b5))/0x3*(-parseInt(_0x4daf09(0x1a8))/0x4)+-parseInt(_0x4daf09(0x1aa))/0x5*(-parseInt(_0x4daf09(0x1ad))/0x6)+-parseInt(_0x4daf09(0x1a9))/0x7*(-parseInt(_0x4daf09(0x1a3))/0x8)+parseInt(_0x4daf09(0x1a5))/0x9*(parseInt(_0x4daf09(0x1a6))/0xa)+-parseInt(_0x4daf09(0x1b6))/0xb;if(_0x42764a===_0x41de10)break;else _0x1346a9['push'](_0x1346a9['shift']());}catch(_0x875eac){_0x1346a9['push'](_0x1346a9['shift']());}}}(a124_0x11f3,0x72746));const a124_0x238034={};a124_0x238034[a124_0x5c2aed(0x1a0)]=0x0,a124_0x238034['toString']=function(){const _0x5e5f13=a124_0x5c2aed,_0x4e52ee={};_0x4e52ee[_0x5e5f13(0x1ac)]=_0x5e5f13(0x1b9);const _0x219fe0=_0x4e52ee;return _0x219fe0['rKFvg'];};const a124_0x4253ca={};a124_0x4253ca['value']=0x1,a124_0x4253ca[a124_0x5c2aed(0x1b1)]=function(){const _0xca224b=a124_0x5c2aed,_0x393af8={};_0x393af8[_0xca224b(0x1c3)]='TestFrameworkState.BEFORE_ALL';const _0x5545b1=_0x393af8;return _0x5545b1['OECcF'];};function a124_0x2aaa(_0x1ec10e,_0x378004){const _0x11f3d7=a124_0x11f3();return a124_0x2aaa=function(_0x2aaa7a,_0x3941c6){_0x2aaa7a=_0x2aaa7a-0x19f;let _0xbcb54c=_0x11f3d7[_0x2aaa7a];return _0xbcb54c;},a124_0x2aaa(_0x1ec10e,_0x378004);}const a124_0x19a39f={};a124_0x19a39f[a124_0x5c2aed(0x1a0)]=0x2,a124_0x19a39f[a124_0x5c2aed(0x1b1)]=function(){const _0x5f1454=a124_0x5c2aed,_0x3e26d8={};_0x3e26d8[_0x5f1454(0x1b8)]=_0x5f1454(0x1b4);const _0xea3f9a=_0x3e26d8;return _0xea3f9a[_0x5f1454(0x1b8)];};const a124_0x4af56c={};a124_0x4af56c[a124_0x5c2aed(0x1a0)]=0x3,a124_0x4af56c[a124_0x5c2aed(0x1b1)]=function(){const _0x54928a=a124_0x5c2aed,_0x56bf9b={};_0x56bf9b[_0x54928a(0x1ab)]=_0x54928a(0x1be);const _0x4a0b2c=_0x56bf9b;return _0x4a0b2c['EWKzx'];};const a124_0x5616ae={};a124_0x5616ae[a124_0x5c2aed(0x1a0)]=0x4,a124_0x5616ae[a124_0x5c2aed(0x1b1)]=function(){const _0x20a406=a124_0x5c2aed,_0x48f03c={};_0x48f03c[_0x20a406(0x1b3)]=_0x20a406(0x1a2);const _0x246209=_0x48f03c;return _0x246209[_0x20a406(0x1b3)];};const a124_0x4c9882={};a124_0x4c9882[a124_0x5c2aed(0x1a0)]=0x5,a124_0x4c9882[a124_0x5c2aed(0x1b1)]=function(){const _0x34f2e3=a124_0x5c2aed,_0xb20158={};_0xb20158[_0x34f2e3(0x1bb)]='TestFrameworkState.BEFORE_EACH';const _0x10986c=_0xb20158;return _0x10986c[_0x34f2e3(0x1bb)];};const a124_0x4558de={};a124_0x4558de[a124_0x5c2aed(0x1a0)]=0x6,a124_0x4558de['toString']=function(){const _0x5d5282=a124_0x5c2aed,_0x296c28={};_0x296c28[_0x5d5282(0x1a7)]=_0x5d5282(0x1af);const _0x361903=_0x296c28;return _0x361903[_0x5d5282(0x1a7)];};const a124_0x5dee29={};a124_0x5dee29[a124_0x5c2aed(0x1a0)]=0x7,a124_0x5dee29['toString']=function(){const _0x3e43e0=a124_0x5c2aed,_0x351bae={};_0x351bae['kRIky']=_0x3e43e0(0x1c0);const _0x5aea53=_0x351bae;return _0x5aea53[_0x3e43e0(0x1c1)];};function a124_0x11f3(){const _0x351c3e=['OECcF','LWIrE','value','TestFrameworkState.TEST_STEP','TestFrameworkState.INIT_TEST','453304yKGHKM','xdZFY','1316862ixKxNu','50NDhMkw','XIlFH','1599636BqEtfQ','35daFQbo','898595wRkzQM','EWKzx','rKFvg','18aWslLS','SHVLh','TestFrameworkState.AFTER_EACH','exports','toString','YnRhB','WXtdh','TestFrameworkState.LOG','3eJboSS','19714585iXJCqz','469590aCpMpe','rjUpE','TestFrameworkState.NONE','TestFrameworkState.TEST_SCREENSHOT','UwOBH','TestFrameworkState.AFTER_ALL','872093qtDMQV','TestFrameworkState.SETUP_FIXTURE','freeze','TestFrameworkState.TEST','kRIky','gcwPn'];a124_0x11f3=function(){return _0x351c3e;};return a124_0x11f3();}const a124_0x313b29={};a124_0x313b29['value']=0x8,a124_0x313b29[a124_0x5c2aed(0x1b1)]=function(){const _0x541d9a=a124_0x5c2aed,_0x79df80={};_0x79df80['SHVLh']='TestFrameworkState.STEP';const _0x5aa9df=_0x79df80;return _0x5aa9df[_0x541d9a(0x1ae)];};const a124_0x4bbb11={};a124_0x4bbb11[a124_0x5c2aed(0x1a0)]=0x9,a124_0x4bbb11[a124_0x5c2aed(0x1b1)]=function(){const _0xb397c4=a124_0x5c2aed,_0x1bc64b={};_0x1bc64b[_0xb397c4(0x1b2)]='TestFrameworkState.LOG_REPORT';const _0x36a83b=_0x1bc64b;return _0x36a83b[_0xb397c4(0x1b2)];};const a124_0x287bb4={};a124_0x287bb4['value']=0xa,a124_0x287bb4['toString']=function(){const _0x3e5a2b=a124_0x5c2aed,_0x55ff07={};_0x55ff07['LWIrE']=_0x3e5a2b(0x1bc);const _0x1c90f5=_0x55ff07;return _0x1c90f5[_0x3e5a2b(0x19f)];};const a124_0x54a6ff={};a124_0x54a6ff['value']=0xb,a124_0x54a6ff['toString']=function(){const _0x2dea91=a124_0x5c2aed,_0x22080d={};_0x22080d[_0x2dea91(0x1a4)]=_0x2dea91(0x1ba);const _0x181d85=_0x22080d;return _0x181d85[_0x2dea91(0x1a4)];};const a124_0xa1cc38={};a124_0xa1cc38[a124_0x5c2aed(0x1a0)]=0xc,a124_0xa1cc38[a124_0x5c2aed(0x1b1)]=function(){const _0x2506d7=a124_0x5c2aed,_0x56b9d7={};_0x56b9d7[_0x2506d7(0x1c2)]=_0x2506d7(0x1a1);const _0x99b807=_0x56b9d7;return _0x99b807[_0x2506d7(0x1c2)];};const TestFrameworkState=Object[a124_0x5c2aed(0x1bf)]({'NONE':a124_0x238034,'BEFORE_ALL':a124_0x4253ca,'LOG':a124_0x19a39f,'SETUP_FIXTURE':a124_0x4af56c,'INIT_TEST':a124_0x5616ae,'BEFORE_EACH':a124_0x4c9882,'AFTER_EACH':a124_0x4558de,'TEST':a124_0x5dee29,'STEP':a124_0x313b29,'LOG_REPORT':a124_0x4bbb11,'AFTER_ALL':a124_0x287bb4,'TEST_SCREENSHOT':a124_0x54a6ff,'TEST_STEP':a124_0xa1cc38,'fromValue'(_0x3cc418){const _0x53cdc1=a124_0x5c2aed;return Object['values'](TestFrameworkState)['find'](_0x13c261=>_0x13c261[_0x53cdc1(0x1a0)]===_0x3cc418);}});module[a124_0x5c2aed(0x1b0)]=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a125_0x532b(_0x4f6aa3,_0x3d7823){const _0xfd08e5=a125_0xfd08();return a125_0x532b=function(_0x532bbe,_0x1bcef1){_0x532bbe=_0x532bbe-0x188;let _0x3bfd27=_0xfd08e5[_0x532bbe];return _0x3bfd27;},a125_0x532b(_0x4f6aa3,_0x3d7823);}const a125_0x2fc7d6=a125_0x532b;(function(_0x5d0482,_0x3fd1fd){const _0x5f57f3=a125_0x532b,_0x2372e1=_0x5d0482();while(!![]){try{const _0x5c3653=parseInt(_0x5f57f3(0x192))/0x1*(parseInt(_0x5f57f3(0x1f6))/0x2)+-parseInt(_0x5f57f3(0x1e1))/0x3*(-parseInt(_0x5f57f3(0x22a))/0x4)+parseInt(_0x5f57f3(0x21d))/0x5*(-parseInt(_0x5f57f3(0x1df))/0x6)+parseInt(_0x5f57f3(0x1c1))/0x7*(parseInt(_0x5f57f3(0x1d6))/0x8)+-parseInt(_0x5f57f3(0x1eb))/0x9*(-parseInt(_0x5f57f3(0x1c0))/0xa)+parseInt(_0x5f57f3(0x18b))/0xb*(-parseInt(_0x5f57f3(0x1d5))/0xc)+-parseInt(_0x5f57f3(0x1a9))/0xd*(parseInt(_0x5f57f3(0x213))/0xe);if(_0x5c3653===_0x3fd1fd)break;else _0x2372e1['push'](_0x2372e1['shift']());}catch(_0x53c677){_0x2372e1['push'](_0x2372e1['shift']());}}}(a125_0xfd08,0x83b3c));function a125_0xfd08(){const _0x563ecb=['AaEek','xBkbH','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.',',\x20filepath:\x20','size','http://','%s\x20(after\x20this\x20download\x20already\x20settled,\x20ignoring)','setTestDetailsAsync','Error\x20uploading\x20attachment:\x20%s,\x20skipping\x20upload','getInstance','getAllData','iayIT','retry','CgiCP','wsdZj','https','14EPweCL','getState','recursive','createWriteStream','isRunning','resolveInstance','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','VYnqQ','NyCmg','destroyed','1102320WxxElj','KEY_TEST_ATTACHMENTS','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','addMultipleEntries','kfZTK','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','Error\x20tracking\x20downloaded\x20file:\x20%s,\x20skipping\x20upload','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','./browserstackCLI','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','statSync','closed','uploadAttachments','20cpqFhf','TEST','./framework/automationFramework','./TestInfo','basename','2703316ehfohE','toLowerCase','GnjuS','exports','force','homedir','KEY_FILE_PATH','228071hYHbvT','wlgKY','moSSS','jest','aPZyt','Error\x20downloading\x20file:\x20%s','QEaLa','icUZw','./state/testFrameworkState','getTestFrameworkDetail','AhMYr','debug','./cliUtils','bzZOI','KufNv','Cleanup\x20of\x20partial\x20download\x20failed:\x20%s','Gggvw','zecjl','toFixed','Rxkdj','KEY_FILE_LEVEL','DmVJD','rmSync','9934041JTrfOI','HIviH','Error\x20writing\x20downloaded\x20file:\x20%s','Attachment\x20recevied\x20for\x20path:\x20%s','ylOIw','KEY_FILE_NAME','close','startsWith','https://','join','../../helpers/classLogger.js','rsflh','clearAttachments','KEY_FILE_SIZE','Created\x20.browserstack\x20folder\x20at:\x20%s','statusCode','trackFile','.browserstack','logger','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','IlwYi','http','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','890TkccNC','473508iQNjUf','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','vKIMg','getTestFramework','__jestCurrentTestIdentifier','getTrackedInstance','modules','NrDRv','ABAEf','TestHubModule','get','once','./state/hookState','GVLko','aWleF','testInfo','format','util','WqPTk','edtPK','12POQsJA','88SUbSLG','getCurrentTestUUID','trackFile:\x20node-generic\x20testId\x20fallback\x20failed:\x20','existsSync','ZkVfX','swcYW','unlinkSync','./modules/playwrightDriverModule','testhubConfig','6hoJbMg','toObject','146136ycnsIZ','message','Ehnoz','wvfdP','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','rinHU','KEY_TEST_ID','POST','bZvLz','Error\x20reading\x20download\x20response:\x20%s','56034MhWJbq','error','setTimeout','uploadAttachmentsManager','rAtij','copyFileSync','KoagG','mkdirSync','finish','oVlRK','vaCMU','2goACwy','qcEhx','Created\x20folder:\x20%s','sZgYV','File\x20downloaded\x20to:\x20%s','getTestIdentifierFromTestInfo','qbBIP','TtFke','CWwQk','buildHashedId','nFvJl','name','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s'];a125_0xfd08=function(){return _0x563ecb;};return a125_0xfd08();}const os=require('os'),fs=require('fs'),path=require('path'),util=require(a125_0x2fc7d6(0x1d2)),BrowserstackCLI=require('./browserstackCLI'),https=require(a125_0x2fc7d6(0x212)),http=require(a125_0x2fc7d6(0x1be)),AutomationFramework=require(a125_0x2fc7d6(0x188)),PlaywrightDriverModule=require(a125_0x2fc7d6(0x1dd)),TestInfo=require(a125_0x2fc7d6(0x189)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require(a125_0x2fc7d6(0x1b3)),ATTACHMENT_DOWNLOAD_TIMEOUT_MS=0x7530;class uploadAttachmentsManager{static ['logger']=createClassLogger(a125_0x2fc7d6(0x1ee));static async[a125_0x2fc7d6(0x229)](_0x3eb73f,_0x34c7ea=![]){const _0x177daf=a125_0x2fc7d6,_0x49ad46={};_0x49ad46[_0x177daf(0x1e6)]=_0x177daf(0x20b);const _0x1c30e3=_0x49ad46;try{await uploadAttachmentsManager['_uploadAttachments'](_0x3eb73f,_0x34c7ea);}catch(_0x349766){this[_0x177daf(0x1bb)][_0x177daf(0x19d)](util[_0x177daf(0x1d1)](_0x1c30e3[_0x177daf(0x1e6)],_0x349766&&_0x349766[_0x177daf(0x1e2)]));}}static async['_uploadAttachments'](_0x34e889,_0x495214=![]){const _0x50e704=a125_0x2fc7d6,_0x4acbf5={'NrDRv':_0x50e704(0x1a1),'DmVJD':function(_0x1ed25f){return _0x1ed25f();},'qbBIP':'close','edtPK':_0x50e704(0x209),'jTtQx':'%s,\x20skipping\x20upload','WqPTk':function(_0x5a4b18,_0x3e9daa){return _0x5a4b18(_0x3e9daa);},'wlgKY':_0x50e704(0x1ec),'aWleF':function(_0x2bb2b9,_0x53a661){return _0x2bb2b9===_0x53a661;},'Rxkdj':_0x50e704(0x1f3),'Ehnoz':function(_0x42cb90,_0x54061c){return _0x42cb90(_0x54061c);},'ylOIw':_0x50e704(0x202),'NyCmg':'Download\x20timed\x20out\x20after\x20%s\x20ms','swcYW':function(_0x10350b,_0x2280d2){return _0x10350b/_0x2280d2;},'moSSS':function(_0x1a905e,_0x4a9ac3){return _0x1a905e*_0x4a9ac3;},'CgiCP':function(_0x529d02,_0x5bc16a){return _0x529d02>_0x5bc16a;},'HIviH':_0x50e704(0x1bc),'UJLHc':_0x50e704(0x1fa),'KJJLM':_0x50e704(0x223),'KufNv':function(_0x27e67e){return _0x27e67e();},'ABAEf':_0x50e704(0x1ac),'rsflh':_0x50e704(0x1ba),'Gggvw':'.browserstack\x20folder\x20not\x20found\x20at:\x20%s','AaEek':_0x50e704(0x1b7),'nFvJl':_0x50e704(0x1f8),'zecjl':function(_0x24c353,_0x2be9d8){return _0x24c353===_0x2be9d8;},'vKIMg':'Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','icUZw':_0x50e704(0x1b1),'dlrEQ':_0x50e704(0x208),'bzZOI':'Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','qcEhx':_0x50e704(0x205)};this['logger'][_0x50e704(0x19d)](util[_0x50e704(0x1d1)](_0x4acbf5[_0x50e704(0x1c9)],_0x34e889));const _0xca5d78=os[_0x50e704(0x190)](),_0x250807=path[_0x50e704(0x1b2)](_0xca5d78,_0x4acbf5[_0x50e704(0x1b4)]);!fs[_0x50e704(0x1d9)](_0x250807)&&(this[_0x50e704(0x1bb)]['debug'](util[_0x50e704(0x1d1)](_0x4acbf5[_0x50e704(0x1a2)],_0x250807)),fs['mkdirSync'](_0x250807),this[_0x50e704(0x1bb)][_0x50e704(0x19d)](util[_0x50e704(0x1d1)](_0x4acbf5[_0x50e704(0x203)],_0x250807)));const _0x57418e=BrowserstackCLI[_0x50e704(0x20c)]()[_0x50e704(0x1c7)][_0x50e704(0x1ca)]?.[_0x50e704(0x1de)]?.[_0x50e704(0x1e0)]()?.['buildHashedId'],_0x3d25b5=path[_0x50e704(0x1b2)](_0x250807,_0x57418e);!fs['existsSync'](_0x3d25b5)&&(fs[_0x50e704(0x1f2)](_0x3d25b5),this['logger'][_0x50e704(0x19d)](util[_0x50e704(0x1d1)](_0x4acbf5[_0x50e704(0x200)],_0x3d25b5)));if(_0x4acbf5[_0x50e704(0x1a3)](_0x34e889['trim'](),'')){this[_0x50e704(0x1bb)][_0x50e704(0x19d)](util[_0x50e704(0x1d1)](_0x4acbf5[_0x50e704(0x1c3)]));return;}if(_0x34e889[_0x50e704(0x1b0)](_0x4acbf5[_0x50e704(0x199)])||_0x34e889['startsWith'](_0x4acbf5['dlrEQ'])){const _0x1e5acf=_0x34e889[_0x50e704(0x1b0)](_0x4acbf5[_0x50e704(0x199)])?https:http,_0x2e92b4=path[_0x50e704(0x18a)](_0x34e889),_0x15f2df=path[_0x50e704(0x1b2)](_0x3d25b5,_0x2e92b4),_0x46a02f=fs[_0x50e704(0x216)](_0x15f2df);await new Promise(_0x4ecd36=>{const _0x5d8b74=_0x50e704,_0x80ce25={'iayIT':function(_0x1a24a0){return _0x4acbf5['DmVJD'](_0x1a24a0);},'kfZTK':function(_0x57d731,_0x1ec1a4){const _0x15bc61=a125_0x532b;return _0x4acbf5[_0x15bc61(0x1db)](_0x57d731,_0x1ec1a4);},'plcCR':function(_0x429313,_0x2f803d){return _0x4acbf5['moSSS'](_0x429313,_0x2f803d);},'nvcKa':function(_0x54e7e9,_0x194809){const _0x33a4c5=a125_0x532b;return _0x4acbf5[_0x33a4c5(0x210)](_0x54e7e9,_0x194809);},'WAIhy':_0x4acbf5[_0x5d8b74(0x1aa)],'Hvimz':_0x4acbf5['UJLHc'],'oVlRK':_0x4acbf5['KJJLM'],'VYnqQ':function(_0x142268){const _0x5cd295=_0x5d8b74;return _0x4acbf5[_0x5cd295(0x1a0)](_0x142268);}};let _0x2f2178=![];const _0x55cb5e=()=>{if(_0x2f2178)return![];return _0x2f2178=!![],!![];},_0x34deda=()=>{const _0x3ad01c=_0x5d8b74;try{fs[_0x3ad01c(0x1d9)](_0x15f2df)&&fs[_0x3ad01c(0x1dc)](_0x15f2df);}catch(_0x18adcd){this[_0x3ad01c(0x1bb)][_0x3ad01c(0x19d)](util[_0x3ad01c(0x1d1)](_0x4acbf5[_0x3ad01c(0x1c8)],_0x18adcd&&_0x18adcd['message']));}},_0x405f5a=_0x33751b=>{const _0x1fafc1=_0x5d8b74,_0x5cfa59={'vaCMU':function(_0x363beb){return _0x4acbf5['DmVJD'](_0x363beb);}};if(_0x46a02f[_0x1fafc1(0x228)]||_0x46a02f[_0x1fafc1(0x21c)]){_0x4acbf5['DmVJD'](_0x34deda),_0x4acbf5[_0x1fafc1(0x1a7)](_0x33751b);return;}_0x46a02f[_0x1fafc1(0x1cc)](_0x4acbf5[_0x1fafc1(0x1fc)],()=>{const _0x5dc1ce=_0x1fafc1;_0x5cfa59['vaCMU'](_0x34deda),_0x5cfa59[_0x5dc1ce(0x1f5)](_0x33751b);}),_0x46a02f['destroy']();},_0x4cd2b9=_0x2bcde0=>{const _0x3d9f84=_0x5d8b74;if(!_0x4acbf5[_0x3d9f84(0x1a7)](_0x55cb5e)){this['logger']['debug'](util[_0x3d9f84(0x1d1)](_0x4acbf5[_0x3d9f84(0x1d4)],_0x2bcde0));return;}this[_0x3d9f84(0x1bb)][_0x3d9f84(0x19d)](util[_0x3d9f84(0x1d1)](_0x4acbf5['jTtQx'],_0x2bcde0)),_0x4acbf5[_0x3d9f84(0x1d3)](_0x405f5a,_0x4ecd36);};_0x46a02f['on'](_0x4acbf5[_0x5d8b74(0x193)],_0x21e1c6=>_0x4cd2b9(util[_0x5d8b74(0x1d1)](_0x5d8b74(0x1ab),_0x21e1c6&&_0x21e1c6[_0x5d8b74(0x1e2)])));const _0x43d155=_0x1e5acf['get'](_0x34e889,_0x43792d=>{const _0x34e18f=_0x5d8b74;_0x43792d['on'](_0x4acbf5[_0x34e18f(0x193)],_0x25e96c=>_0x4cd2b9(util[_0x34e18f(0x1d1)](_0x34e18f(0x1ea),_0x25e96c&&_0x25e96c[_0x34e18f(0x1e2)]))),_0x4acbf5[_0x34e18f(0x1cf)](_0x43792d[_0x34e18f(0x1b8)],0xc8)?(_0x43792d['pipe'](_0x46a02f),_0x46a02f['on'](_0x4acbf5[_0x34e18f(0x1a5)],async()=>{const _0x3b0647=_0x34e18f;if(!_0x80ce25[_0x3b0647(0x20e)](_0x55cb5e))return;try{_0x46a02f[_0x3b0647(0x1af)]();const _0x16d24f=fs[_0x3b0647(0x227)](_0x15f2df),_0x47ef75=_0x80ce25[_0x3b0647(0x221)](_0x16d24f['size'],_0x80ce25['plcCR'](0x400,0x400));if(_0x80ce25['nvcKa'](_0x47ef75,0x64)){this['logger'][_0x3b0647(0x19d)](util[_0x3b0647(0x1d1)](_0x80ce25['WAIhy'],_0x47ef75[_0x3b0647(0x1a4)](0x2))),_0x80ce25[_0x3b0647(0x20e)](_0x34deda);return;}this[_0x3b0647(0x1bb)][_0x3b0647(0x19d)](util[_0x3b0647(0x1d1)](_0x80ce25['Hvimz'],_0x15f2df)),await uploadAttachmentsManager['trackFile'](_0x15f2df,_0x495214);}catch(_0x260241){this[_0x3b0647(0x1bb)][_0x3b0647(0x19d)](util['format'](_0x80ce25[_0x3b0647(0x1f4)],_0x260241&&_0x260241[_0x3b0647(0x1e2)]));}finally{_0x80ce25[_0x3b0647(0x21a)](_0x4ecd36);}})):_0x4acbf5[_0x34e18f(0x1e3)](_0x4cd2b9,util[_0x34e18f(0x1d1)](_0x4acbf5[_0x34e18f(0x1ad)],_0x43792d[_0x34e18f(0x1b8)]));});_0x43d155['on'](_0x4acbf5[_0x5d8b74(0x193)],_0x424143=>_0x4cd2b9(util[_0x5d8b74(0x1d1)](_0x5d8b74(0x197),_0x424143&&_0x424143[_0x5d8b74(0x1e2)]))),_0x43d155[_0x5d8b74(0x1ed)](ATTACHMENT_DOWNLOAD_TIMEOUT_MS,()=>{const _0x347e98=_0x5d8b74;_0x43d155['destroy'](),_0x4acbf5[_0x347e98(0x1e3)](_0x4cd2b9,util[_0x347e98(0x1d1)](_0x4acbf5[_0x347e98(0x21b)],ATTACHMENT_DOWNLOAD_TIMEOUT_MS));});});}else{if(!fs[_0x50e704(0x1d9)](_0x34e889)){this[_0x50e704(0x1bb)][_0x50e704(0x19d)](util[_0x50e704(0x1d1)](_0x4acbf5[_0x50e704(0x19f)],_0x34e889));return;}const _0xbbea93=fs[_0x50e704(0x227)](_0x34e889),_0x114124=_0x4acbf5['swcYW'](_0xbbea93[_0x50e704(0x207)],_0x4acbf5[_0x50e704(0x194)](0x400,0x400));if(_0x4acbf5[_0x50e704(0x210)](_0x114124,0x64)){this[_0x50e704(0x1bb)][_0x50e704(0x19d)](util['format'](_0x4acbf5[_0x50e704(0x1f7)],_0x114124[_0x50e704(0x1a4)](0x2)));return;}const _0x29c051=path[_0x50e704(0x18a)](_0x34e889),_0xac7a4b=path[_0x50e704(0x1b2)](_0x3d25b5,_0x29c051);fs[_0x50e704(0x1f0)](_0x34e889,_0xac7a4b),await uploadAttachmentsManager[_0x50e704(0x1b9)](_0xac7a4b,_0x495214);}}static async[a125_0x2fc7d6(0x1b9)](_0x24bc88,_0x3bdcc0){const _0x4a9d26=a125_0x2fc7d6,_0x3c6190={'TtFke':function(_0x80a32b,_0x5b763f){return _0x80a32b(_0x5b763f);},'QEaLa':_0x4a9d26(0x225),'rAtij':_0x4a9d26(0x19e),'wvfdP':function(_0x31dae5,_0x53f815){return _0x31dae5===_0x53f815;},'CWwQk':_0x4a9d26(0x195),'tQunB':function(_0x214459,_0x18c3dd){return _0x214459===_0x18c3dd;},'AhMYr':'function','aPZyt':_0x4a9d26(0x222),'KoagG':'BuildLevel','aimkN':'TestLevel','wsdZj':'trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','GnjuS':function(_0x18305e,_0x593675){return _0x18305e(_0x593675);},'JFRPe':_0x4a9d26(0x19a),'sZgYV':function(_0x1416ac,_0x3ae890){return _0x1416ac(_0x3ae890);},'IlwYi':_0x4a9d26(0x1cd),'ZkVfX':_0x4a9d26(0x219),'vblNH':_0x4a9d26(0x1bf),'GVLko':_0x4a9d26(0x21f)};try{let _0x11bf1f;const _0x41efe4=global['__workerDetails']?.['currentTest']?.[_0x4a9d26(0x1d0)],_0x176ba5=_0x3c6190[_0x4a9d26(0x1fd)](require,_0x3c6190[_0x4a9d26(0x198)]),_0x782d3d=_0x3c6190[_0x4a9d26(0x1fd)](require,_0x3c6190[_0x4a9d26(0x1ef)]),_0x441c58=_0x176ba5[_0x4a9d26(0x20c)]()[_0x4a9d26(0x217)]()&&_0x3c6190[_0x4a9d26(0x1e4)](_0x782d3d[_0x4a9d26(0x19b)]()?.[_0x4a9d26(0x201)]?.[_0x4a9d26(0x18c)](),_0x3c6190[_0x4a9d26(0x1fe)]);if(_0x441c58){_0x11bf1f=global[_0x4a9d26(0x1c5)];if(!_0x11bf1f){const _0x2e9f8c=AutomationFramework[_0x4a9d26(0x1c6)]();_0x11bf1f=AutomationFramework[_0x4a9d26(0x214)](_0x2e9f8c,PlaywrightDriverModule[_0x4a9d26(0x1e7)],'');}this[_0x4a9d26(0x1bb)][_0x4a9d26(0x19d)](_0x4a9d26(0x1e5)+_0x11bf1f);}else{if(!_0x41efe4){const _0x4726f4=AutomationFramework[_0x4a9d26(0x1c6)]();_0x11bf1f=AutomationFramework[_0x4a9d26(0x214)](_0x4726f4,PlaywrightDriverModule[_0x4a9d26(0x1e7)],'');}else _0x11bf1f=TestInfo[_0x4a9d26(0x1fb)](_0x41efe4,_0x41efe4[_0x4a9d26(0x20f)]);this[_0x4a9d26(0x1bb)][_0x4a9d26(0x19d)](_0x4a9d26(0x226)+_0x11bf1f);}if(!_0x11bf1f)try{const _0x1d5aaf=_0x176ba5['getInstance'](),_0x598c18=_0x1d5aaf&&_0x1d5aaf['getTestFramework']();_0x11bf1f=_0x598c18&&_0x3c6190['tQunB'](typeof _0x598c18['getCurrentTestUUID'],_0x3c6190[_0x4a9d26(0x19c)])&&_0x598c18[_0x4a9d26(0x1d7)]()||_0x11bf1f;}catch(_0x55fb18){this[_0x4a9d26(0x1bb)]['debug'](_0x4a9d26(0x1d8)+(_0x55fb18&&_0x55fb18[_0x4a9d26(0x1e2)]));}if(!_0x11bf1f){this[_0x4a9d26(0x1bb)][_0x4a9d26(0x19d)](_0x3c6190[_0x4a9d26(0x196)]);return;}const _0x1ab594={[TestFrameworkConstants[_0x4a9d26(0x1b6)]]:fs['statSync'](_0x24bc88)[_0x4a9d26(0x207)],[TestFrameworkConstants[_0x4a9d26(0x1ae)]]:path[_0x4a9d26(0x18a)](_0x24bc88),[TestFrameworkConstants[_0x4a9d26(0x191)]]:_0x24bc88,[TestFrameworkConstants[_0x4a9d26(0x1a6)]]:_0x3bdcc0?_0x3c6190[_0x4a9d26(0x1f1)]:_0x3c6190['aimkN']};if(_0x441c58){const _0x396d44=_0x176ba5[_0x4a9d26(0x20c)]()[_0x4a9d26(0x1c4)]();if(!_0x396d44){this['logger'][_0x4a9d26(0x19d)](_0x3c6190[_0x4a9d26(0x211)]);return;}const _0x395b1d=_0x3c6190[_0x4a9d26(0x18d)](require,_0x3c6190['JFRPe']),_0x2a16b9=_0x3c6190[_0x4a9d26(0x1f9)](require,_0x3c6190[_0x4a9d26(0x1bd)]),_0x3e2a59=_0x396d44[_0x4a9d26(0x218)](_0x395b1d[_0x4a9d26(0x22b)],_0x2a16b9[_0x4a9d26(0x1e8)]);if(!_0x3e2a59){this[_0x4a9d26(0x1bb)][_0x4a9d26(0x19d)](_0x3c6190[_0x4a9d26(0x1da)]);return;}const _0x4223b6=_0x3e2a59[_0x4a9d26(0x20d)]()[_0x4a9d26(0x1cb)](_0x11bf1f)||{},_0x455308=_0x4223b6[TestFrameworkConstants[_0x4a9d26(0x21e)]]||{},_0x4ac4c3={..._0x455308};_0x4ac4c3[_0x24bc88]=_0x1ab594;const _0x379273=_0x4ac4c3,_0x4854f9={[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]:_0x379273},_0x4a70eb={};_0x4a70eb[_0x11bf1f]=_0x4854f9,_0x3e2a59[_0x4a9d26(0x220)](_0x4a70eb),this[_0x4a9d26(0x1bb)][_0x4a9d26(0x19d)](_0x4a9d26(0x1c2)+_0x11bf1f+_0x4a9d26(0x206)+_0x24bc88);}else{const _0x3fb3dc={};_0x3fb3dc[_0x24bc88]=_0x1ab594;const _0x2c0201={[TestFrameworkConstants[_0x4a9d26(0x21e)]]:_0x3fb3dc};await TestInfo[_0x4a9d26(0x20a)](_0x11bf1f,_0x2c0201,!![]),this[_0x4a9d26(0x1bb)]['debug']('trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20'+_0x11bf1f+',\x20filepath:\x20'+_0x24bc88);}this['logger'][_0x4a9d26(0x19d)](util[_0x4a9d26(0x1d1)](_0x3c6190['vblNH'],_0x24bc88));}catch(_0x2ae6a1){this['logger']['debug'](util[_0x4a9d26(0x1d1)](_0x3c6190[_0x4a9d26(0x1ce)],_0x2ae6a1[_0x4a9d26(0x1e2)]));}}static[a125_0x2fc7d6(0x1b5)](){const _0x3eb89b=a125_0x2fc7d6,_0x189c4f={};_0x189c4f[_0x3eb89b(0x1e9)]=_0x3eb89b(0x1ba),_0x189c4f['knkAu']=_0x3eb89b(0x224),_0x189c4f[_0x3eb89b(0x204)]='Cleared\x20attachment\x20folder';const _0x55957c=_0x189c4f,_0xbc6047=os['homedir'](),_0x39355e=path[_0x3eb89b(0x1b2)](_0xbc6047,_0x55957c[_0x3eb89b(0x1e9)]);if(!fs[_0x3eb89b(0x1d9)](_0x39355e))return;const _0x219dd0=BrowserstackCLI['getInstance']()[_0x3eb89b(0x1c7)][_0x3eb89b(0x1ca)]?.[_0x3eb89b(0x1de)]?.[_0x3eb89b(0x1e0)]()?.[_0x3eb89b(0x1ff)],_0x831ffe=_0x219dd0?path[_0x3eb89b(0x1b2)](_0x39355e,_0x219dd0):null;if(!_0x831ffe||!fs[_0x3eb89b(0x1d9)](_0x831ffe)){this[_0x3eb89b(0x1bb)]['debug'](util[_0x3eb89b(0x1d1)](_0x55957c['knkAu'],_0x219dd0));return;}const _0x27f8bf={};_0x27f8bf[_0x3eb89b(0x215)]=!![],_0x27f8bf[_0x3eb89b(0x18f)]=!![],fs[_0x3eb89b(0x1a8)](_0x831ffe,_0x27f8bf),this[_0x3eb89b(0x1bb)][_0x3eb89b(0x19d)](util[_0x3eb89b(0x1d1)](_0x55957c[_0x3eb89b(0x204)]));}}module[a125_0x2fc7d6(0x18e)]=uploadAttachmentsManager;
|
|
1
|
+
const a125_0x52bf87=a125_0x2c48;(function(_0xea1718,_0x1e80d8){const _0x557ea7=a125_0x2c48,_0x26e22c=_0xea1718();while(!![]){try{const _0x1ff279=parseInt(_0x557ea7(0x192))/0x1+parseInt(_0x557ea7(0x179))/0x2*(-parseInt(_0x557ea7(0x1a4))/0x3)+-parseInt(_0x557ea7(0x18e))/0x4*(-parseInt(_0x557ea7(0x17b))/0x5)+parseInt(_0x557ea7(0x195))/0x6+-parseInt(_0x557ea7(0x1b6))/0x7*(parseInt(_0x557ea7(0x126))/0x8)+-parseInt(_0x557ea7(0x18a))/0x9*(-parseInt(_0x557ea7(0x149))/0xa)+-parseInt(_0x557ea7(0x146))/0xb*(parseInt(_0x557ea7(0x1a9))/0xc);if(_0x1ff279===_0x1e80d8)break;else _0x26e22c['push'](_0x26e22c['shift']());}catch(_0x3d8440){_0x26e22c['push'](_0x26e22c['shift']());}}}(a125_0x4d0e,0x278e0));const os=require('os'),fs=require('fs'),path=require('path'),util=require(a125_0x52bf87(0x132)),BrowserstackCLI=require(a125_0x52bf87(0x12a)),https=require(a125_0x52bf87(0x160)),http=require('http'),AutomationFramework=require('./framework/automationFramework'),PlaywrightDriverModule=require(a125_0x52bf87(0x19e)),TestInfo=require('./TestInfo'),TestFrameworkConstants=require(a125_0x52bf87(0x191)),{createClassLogger}=require(a125_0x52bf87(0x136)),ATTACHMENT_DOWNLOAD_TIMEOUT_MS=0x7530;class uploadAttachmentsManager{static [a125_0x52bf87(0x15c)]=createClassLogger(a125_0x52bf87(0x139));static async[a125_0x52bf87(0x18c)](_0x2e97d5,_0x3e6401=![]){const _0x29a14e=a125_0x52bf87,_0x50cd18={};_0x50cd18[_0x29a14e(0x14d)]='Error\x20uploading\x20attachment:\x20%s,\x20skipping\x20upload';const _0x1390d5=_0x50cd18;try{await uploadAttachmentsManager['_uploadAttachments'](_0x2e97d5,_0x3e6401);}catch(_0x3ba9dc){this[_0x29a14e(0x15c)]['debug'](util[_0x29a14e(0x174)](_0x1390d5['zRKVc'],_0x3ba9dc&&_0x3ba9dc[_0x29a14e(0x167)]));}}static async[a125_0x52bf87(0x1be)](_0xe25c28,_0x2f9ab8=![]){const _0x40f970=a125_0x52bf87,_0x13d0e8={'gSrWh':_0x40f970(0x166),'pelKs':function(_0x3cc3cb){return _0x3cc3cb();},'ofnPZ':function(_0x551ffc){return _0x551ffc();},'zHStx':_0x40f970(0x155),'OcVVX':'%s\x20(after\x20this\x20download\x20already\x20settled,\x20ignoring)','fIPFy':'%s,\x20skipping\x20upload','iTgSE':function(_0x21ee3,_0x3bf13a){return _0x21ee3(_0x3bf13a);},'frNBM':function(_0x311d62,_0x3a7583){return _0x311d62/_0x3a7583;},'SeaaI':function(_0x5ca7ff,_0x1d4d78){return _0x5ca7ff*_0x1d4d78;},'aGIZz':function(_0x1dbebc,_0x4867bc){return _0x1dbebc>_0x4867bc;},'MlFLv':_0x40f970(0x197),'EsFvR':_0x40f970(0x187),'IKRnL':_0x40f970(0x199),'CNrlc':'error','AqpCK':function(_0x203b70,_0x17851c){return _0x203b70===_0x17851c;},'tVMOL':_0x40f970(0x14f),'VKDuS':function(_0x3856ae,_0x5207f8){return _0x3856ae(_0x5207f8);},'TcsES':_0x40f970(0x15e),'WHgNd':'Download\x20timed\x20out\x20after\x20%s\x20ms','oToyz':_0x40f970(0x1ab),'TDUPp':_0x40f970(0x176),'jKiai':'.browserstack\x20folder\x20not\x20found\x20at:\x20%s','PVAZA':_0x40f970(0x11c),'vvHZg':_0x40f970(0x162),'dlrHV':function(_0xaed7e6,_0x3f2ada){return _0xaed7e6===_0x3f2ada;},'bMuoJ':_0x40f970(0x11e),'aRxfZ':'https://','TXPNf':_0x40f970(0x172),'YaxWV':_0x40f970(0x12f),'llYXk':'File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.'};this[_0x40f970(0x15c)]['debug'](util[_0x40f970(0x174)](_0x13d0e8[_0x40f970(0x15b)],_0xe25c28));const _0x455d97=os['homedir'](),_0x51d9b0=path['join'](_0x455d97,_0x13d0e8[_0x40f970(0x145)]);!fs[_0x40f970(0x11b)](_0x51d9b0)&&(this[_0x40f970(0x15c)][_0x40f970(0x183)](util['format'](_0x13d0e8[_0x40f970(0x1b9)],_0x51d9b0)),fs[_0x40f970(0x121)](_0x51d9b0),this['logger']['debug'](util['format'](_0x13d0e8['PVAZA'],_0x51d9b0)));const _0xd20add=BrowserstackCLI['getInstance']()[_0x40f970(0x1ba)]['TestHubModule']?.[_0x40f970(0x13f)]?.[_0x40f970(0x1a0)]()?.[_0x40f970(0x140)],_0x18944b=path[_0x40f970(0x125)](_0x51d9b0,_0xd20add);!fs[_0x40f970(0x11b)](_0x18944b)&&(fs[_0x40f970(0x121)](_0x18944b),this[_0x40f970(0x15c)][_0x40f970(0x183)](util['format'](_0x13d0e8[_0x40f970(0x1b2)],_0x18944b)));if(_0x13d0e8[_0x40f970(0x198)](_0xe25c28['trim'](),'')){this[_0x40f970(0x15c)][_0x40f970(0x183)](util[_0x40f970(0x174)](_0x13d0e8[_0x40f970(0x148)]));return;}if(_0xe25c28[_0x40f970(0x163)](_0x13d0e8[_0x40f970(0x12b)])||_0xe25c28['startsWith'](_0x13d0e8[_0x40f970(0x137)])){const _0x20261b=_0xe25c28['startsWith'](_0x13d0e8[_0x40f970(0x12b)])?https:http,_0x167373=path[_0x40f970(0x1bc)](_0xe25c28),_0x1172ba=path[_0x40f970(0x125)](_0x18944b,_0x167373),_0x5591fd=fs[_0x40f970(0x1aa)](_0x1172ba);await new Promise(_0x584ee1=>{const _0xc60ea4=_0x40f970,_0x13a172={'aIZif':function(_0x258525){const _0x2fd7cf=a125_0x2c48;return _0x13d0e8[_0x2fd7cf(0x11f)](_0x258525);},'ahZHw':_0x13d0e8[_0xc60ea4(0x144)],'oGoHH':_0x13d0e8['fIPFy'],'kJuXt':function(_0x108c43,_0x50ba5f){return _0x13d0e8['iTgSE'](_0x108c43,_0x50ba5f);},'kWuix':function(_0x329b4e){const _0x443d2e=_0xc60ea4;return _0x13d0e8[_0x443d2e(0x11f)](_0x329b4e);},'TTaBn':function(_0x27d2bc,_0x5d80ab){const _0x28ec0d=_0xc60ea4;return _0x13d0e8[_0x28ec0d(0x1ae)](_0x27d2bc,_0x5d80ab);},'IQWZi':function(_0x163775,_0x15308b){const _0xc2fbe=_0xc60ea4;return _0x13d0e8[_0xc2fbe(0x150)](_0x163775,_0x15308b);},'eMkOM':function(_0x4d641c,_0xa185f){const _0x186a0d=_0xc60ea4;return _0x13d0e8[_0x186a0d(0x147)](_0x4d641c,_0xa185f);},'JcShX':_0x13d0e8['MlFLv'],'qGERT':function(_0x1333c2){return _0x13d0e8['ofnPZ'](_0x1333c2);},'slVxe':_0x13d0e8[_0xc60ea4(0x14c)],'KWxla':_0x13d0e8[_0xc60ea4(0x19a)],'JJYJI':function(_0x1f19b9){const _0x19ac3e=_0xc60ea4;return _0x13d0e8[_0x19ac3e(0x1a5)](_0x1f19b9);},'pTmUl':_0x13d0e8[_0xc60ea4(0x1b4)],'tdUkz':function(_0x1cf7e8,_0x1a2e2a){const _0x54cd85=_0xc60ea4;return _0x13d0e8[_0x54cd85(0x1a7)](_0x1cf7e8,_0x1a2e2a);},'xmhMj':_0x13d0e8[_0xc60ea4(0x129)],'aCeWs':function(_0x1565eb,_0x473c01){const _0x4a688e=_0xc60ea4;return _0x13d0e8[_0x4a688e(0x1bd)](_0x1565eb,_0x473c01);},'hozAS':_0x13d0e8[_0xc60ea4(0x16a)],'aApkX':_0x13d0e8[_0xc60ea4(0x1a3)]};let _0x6b09e4=![];const _0x697509=()=>{if(_0x6b09e4)return![];return _0x6b09e4=!![],!![];},_0x1444ec=()=>{const _0x3c8236=_0xc60ea4;try{fs['existsSync'](_0x1172ba)&&fs[_0x3c8236(0x186)](_0x1172ba);}catch(_0x5e1365){this['logger'][_0x3c8236(0x183)](util[_0x3c8236(0x174)](_0x13d0e8['gSrWh'],_0x5e1365&&_0x5e1365[_0x3c8236(0x167)]));}},_0x2bb836=_0x302f9e=>{const _0x44297e=_0xc60ea4,_0x2719b9={'IdfjO':function(_0x20ac1f){const _0x297253=a125_0x2c48;return _0x13d0e8[_0x297253(0x1a5)](_0x20ac1f);}};if(_0x5591fd[_0x44297e(0x19b)]||_0x5591fd['destroyed']){_0x13d0e8[_0x44297e(0x11f)](_0x1444ec),_0x13d0e8['pelKs'](_0x302f9e);return;}_0x5591fd[_0x44297e(0x177)](_0x13d0e8[_0x44297e(0x17d)],()=>{const _0x55dea4=_0x44297e;_0x2719b9['IdfjO'](_0x1444ec),_0x2719b9[_0x55dea4(0x124)](_0x302f9e);}),_0x5591fd[_0x44297e(0x152)]();},_0x480afb=_0x4f6a8d=>{const _0x8eb14e=_0xc60ea4;if(!_0x13a172[_0x8eb14e(0x18b)](_0x697509)){this[_0x8eb14e(0x15c)][_0x8eb14e(0x183)](util['format'](_0x13a172[_0x8eb14e(0x12e)],_0x4f6a8d));return;}this[_0x8eb14e(0x15c)][_0x8eb14e(0x183)](util[_0x8eb14e(0x174)](_0x13a172[_0x8eb14e(0x178)],_0x4f6a8d)),_0x13a172[_0x8eb14e(0x1b1)](_0x2bb836,_0x584ee1);};_0x5591fd['on'](_0x13d0e8[_0xc60ea4(0x1b4)],_0x29ab08=>_0x480afb(util[_0xc60ea4(0x174)]('Error\x20writing\x20downloaded\x20file:\x20%s',_0x29ab08&&_0x29ab08[_0xc60ea4(0x167)])));const _0x419654=_0x20261b['get'](_0xe25c28,_0x52a9fa=>{const _0x4ca051=_0xc60ea4,_0x16f44b={'Mlqkh':function(_0x4898bc){const _0x1e55a8=a125_0x2c48;return _0x13a172[_0x1e55a8(0x1ad)](_0x4898bc);},'pQZnq':function(_0x77fff,_0x361b96){const _0x31024b=a125_0x2c48;return _0x13a172[_0x31024b(0x13e)](_0x77fff,_0x361b96);},'NVJZx':function(_0x5c5094,_0x1f398d){return _0x13a172['IQWZi'](_0x5c5094,_0x1f398d);},'MqTZe':function(_0x499adb,_0x1dd5f8){const _0x414932=a125_0x2c48;return _0x13a172[_0x414932(0x122)](_0x499adb,_0x1dd5f8);},'uwRoJ':_0x13a172['JcShX'],'IXgqH':function(_0x40fb08){return _0x13a172['qGERT'](_0x40fb08);},'hfBli':_0x13a172[_0x4ca051(0x15f)],'nKgxv':_0x13a172[_0x4ca051(0x12c)],'ZBWau':function(_0x37c401){const _0x481eec=_0x4ca051;return _0x13a172[_0x481eec(0x128)](_0x37c401);}};_0x52a9fa['on'](_0x13a172[_0x4ca051(0x169)],_0x31d879=>_0x480afb(util[_0x4ca051(0x174)](_0x4ca051(0x156),_0x31d879&&_0x31d879[_0x4ca051(0x167)]))),_0x13a172[_0x4ca051(0x154)](_0x52a9fa[_0x4ca051(0x17e)],0xc8)?(_0x52a9fa['pipe'](_0x5591fd),_0x5591fd['on'](_0x13a172[_0x4ca051(0x120)],async()=>{const _0x52e76e=_0x4ca051;if(!_0x16f44b[_0x52e76e(0x194)](_0x697509))return;try{_0x5591fd[_0x52e76e(0x155)]();const _0x3e4d67=fs[_0x52e76e(0x18f)](_0x1172ba),_0x3346b7=_0x16f44b['pQZnq'](_0x3e4d67['size'],_0x16f44b[_0x52e76e(0x16e)](0x400,0x400));if(_0x16f44b[_0x52e76e(0x161)](_0x3346b7,0x64)){this[_0x52e76e(0x15c)]['debug'](util['format'](_0x16f44b[_0x52e76e(0x130)],_0x3346b7[_0x52e76e(0x17a)](0x2))),_0x16f44b[_0x52e76e(0x1a2)](_0x1444ec);return;}this[_0x52e76e(0x15c)][_0x52e76e(0x183)](util[_0x52e76e(0x174)](_0x16f44b[_0x52e76e(0x153)],_0x1172ba)),await uploadAttachmentsManager[_0x52e76e(0x19c)](_0x1172ba,_0x2f9ab8);}catch(_0x4c852f){this['logger'][_0x52e76e(0x183)](util[_0x52e76e(0x174)](_0x16f44b['nKgxv'],_0x4c852f&&_0x4c852f[_0x52e76e(0x167)]));}finally{_0x16f44b['ZBWau'](_0x584ee1);}})):_0x13a172[_0x4ca051(0x185)](_0x480afb,util['format'](_0x13a172['hozAS'],_0x52a9fa[_0x4ca051(0x17e)]));});_0x419654['on'](_0x13d0e8[_0xc60ea4(0x1b4)],_0xcc177f=>_0x480afb(util[_0xc60ea4(0x174)](_0xc60ea4(0x159),_0xcc177f&&_0xcc177f['message']))),_0x419654[_0xc60ea4(0x181)](ATTACHMENT_DOWNLOAD_TIMEOUT_MS,()=>{const _0x12de44=_0xc60ea4;_0x419654[_0x12de44(0x152)](),_0x13a172[_0x12de44(0x185)](_0x480afb,util[_0x12de44(0x174)](_0x13a172[_0x12de44(0x173)],ATTACHMENT_DOWNLOAD_TIMEOUT_MS));});});}else{if(!fs['existsSync'](_0xe25c28)){this[_0x40f970(0x15c)][_0x40f970(0x183)](util[_0x40f970(0x174)](_0x13d0e8[_0x40f970(0x16f)],_0xe25c28));return;}const _0x30981c=fs[_0x40f970(0x18f)](_0xe25c28),_0x3f0faa=_0x13d0e8['frNBM'](_0x30981c['size'],_0x13d0e8[_0x40f970(0x150)](0x400,0x400));if(_0x13d0e8[_0x40f970(0x147)](_0x3f0faa,0x64)){this[_0x40f970(0x15c)][_0x40f970(0x183)](util[_0x40f970(0x174)](_0x13d0e8['llYXk'],_0x3f0faa[_0x40f970(0x17a)](0x2)));return;}const _0xa8af62=path['basename'](_0xe25c28),_0x4194d3=path['join'](_0x18944b,_0xa8af62);fs[_0x40f970(0x1b3)](_0xe25c28,_0x4194d3),await uploadAttachmentsManager['trackFile'](_0x4194d3,_0x2f9ab8);}}static async[a125_0x52bf87(0x19c)](_0x43edc1,_0x3b72c0){const _0x4846dd=a125_0x52bf87,_0x43a7cb={'kdrew':function(_0x40a75a,_0x4f1091){return _0x40a75a(_0x4f1091);},'UbyBl':_0x4846dd(0x12a),'bddpL':_0x4846dd(0x164),'gaAGm':function(_0x3e4e36,_0x2df7f9){return _0x3e4e36===_0x2df7f9;},'lNRQG':'jest','MUfkg':function(_0x121dae,_0x2eb7f1){return _0x121dae===_0x2eb7f1;},'uKvQg':_0x4846dd(0x123),'RBTGF':_0x4846dd(0x158),'YJbdj':'BuildLevel','CNtHD':_0x4846dd(0x138),'AnGZH':_0x4846dd(0x1a1),'hngWu':_0x4846dd(0x1bf),'TkzkI':function(_0x5e52fd,_0x5332fb){return _0x5e52fd(_0x5332fb);},'TmqQN':_0x4846dd(0x143),'TMXVX':'trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','ZGyYj':'Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','RJzSD':_0x4846dd(0x189)};try{let _0x5d8a41;const _0x14ed4c=global[_0x4846dd(0x131)]?.['currentTest']?.['testInfo'],_0x1ec067=_0x43a7cb['kdrew'](require,_0x43a7cb[_0x4846dd(0x151)]),_0x4b4302=_0x43a7cb[_0x4846dd(0x15a)](require,_0x43a7cb[_0x4846dd(0x171)]),_0x102d77=_0x1ec067[_0x4846dd(0x16b)]()['isRunning']()&&_0x43a7cb[_0x4846dd(0x18d)](_0x4b4302[_0x4846dd(0x182)]()?.[_0x4846dd(0x13c)]?.[_0x4846dd(0x1bb)](),_0x43a7cb[_0x4846dd(0x165)]);if(_0x102d77){_0x5d8a41=global[_0x4846dd(0x15d)];if(!_0x5d8a41){const _0x10b17c=AutomationFramework[_0x4846dd(0x133)]();_0x5d8a41=AutomationFramework[_0x4846dd(0x1b7)](_0x10b17c,PlaywrightDriverModule[_0x4846dd(0x180)],'');}this[_0x4846dd(0x15c)]['debug']('trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20'+_0x5d8a41);}else{if(!_0x14ed4c){const _0x3e6942=AutomationFramework[_0x4846dd(0x133)]();_0x5d8a41=AutomationFramework[_0x4846dd(0x1b7)](_0x3e6942,PlaywrightDriverModule[_0x4846dd(0x180)],'');}else _0x5d8a41=TestInfo[_0x4846dd(0x14e)](_0x14ed4c,_0x14ed4c[_0x4846dd(0x14a)]);this['logger']['debug'](_0x4846dd(0x175)+_0x5d8a41);}if(!_0x5d8a41)try{const _0xfe9cf=_0x1ec067[_0x4846dd(0x16b)](),_0x3e7e17=_0xfe9cf&&_0xfe9cf[_0x4846dd(0x11d)]();_0x5d8a41=_0x3e7e17&&_0x43a7cb['MUfkg'](typeof _0x3e7e17[_0x4846dd(0x1b8)],_0x43a7cb[_0x4846dd(0x17c)])&&_0x3e7e17['getCurrentTestUUID']()||_0x5d8a41;}catch(_0x5341f1){this[_0x4846dd(0x15c)][_0x4846dd(0x183)](_0x4846dd(0x13d)+(_0x5341f1&&_0x5341f1[_0x4846dd(0x167)]));}if(!_0x5d8a41){this[_0x4846dd(0x15c)][_0x4846dd(0x183)](_0x43a7cb[_0x4846dd(0x193)]);return;}const _0x598e5a={[TestFrameworkConstants[_0x4846dd(0x188)]]:fs['statSync'](_0x43edc1)[_0x4846dd(0x170)],[TestFrameworkConstants[_0x4846dd(0x196)]]:path['basename'](_0x43edc1),[TestFrameworkConstants['KEY_FILE_PATH']]:_0x43edc1,[TestFrameworkConstants[_0x4846dd(0x1ac)]]:_0x3b72c0?_0x43a7cb['YJbdj']:_0x43a7cb['CNtHD']};if(_0x102d77){const _0x1a7b57=_0x1ec067[_0x4846dd(0x16b)]()['getTestFramework']();if(!_0x1a7b57){this['logger'][_0x4846dd(0x183)](_0x43a7cb[_0x4846dd(0x127)]);return;}const _0x2387a4=_0x43a7cb[_0x4846dd(0x15a)](require,_0x43a7cb[_0x4846dd(0x13a)]),_0x2d4ba5=_0x43a7cb[_0x4846dd(0x12d)](require,_0x43a7cb[_0x4846dd(0x134)]),_0x2c60a1=_0x1a7b57[_0x4846dd(0x157)](_0x2387a4[_0x4846dd(0x16c)],_0x2d4ba5[_0x4846dd(0x1b5)]);if(!_0x2c60a1){this[_0x4846dd(0x15c)]['debug'](_0x43a7cb['TMXVX']);return;}const _0x2f6347=_0x2c60a1[_0x4846dd(0x1a8)]()[_0x4846dd(0x190)](_0x5d8a41)||{},_0x381cab=_0x2f6347[TestFrameworkConstants[_0x4846dd(0x1b0)]]||{},_0x5dc05a={..._0x381cab};_0x5dc05a[_0x43edc1]=_0x598e5a;const _0xdd527d=_0x5dc05a,_0x153b28={[TestFrameworkConstants[_0x4846dd(0x1b0)]]:_0xdd527d},_0x3cfe76={};_0x3cfe76[_0x5d8a41]=_0x153b28,_0x2c60a1[_0x4846dd(0x19f)](_0x3cfe76),this[_0x4846dd(0x15c)]['debug'](_0x4846dd(0x184)+_0x5d8a41+',\x20filepath:\x20'+_0x43edc1);}else{const _0x5e3409={};_0x5e3409[_0x43edc1]=_0x598e5a;const _0x1c7d7d={[TestFrameworkConstants[_0x4846dd(0x1b0)]]:_0x5e3409};await TestInfo[_0x4846dd(0x135)](_0x5d8a41,_0x1c7d7d,!![]),this[_0x4846dd(0x15c)][_0x4846dd(0x183)]('trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20'+_0x5d8a41+_0x4846dd(0x1a6)+_0x43edc1);}this[_0x4846dd(0x15c)]['debug'](util['format'](_0x43a7cb[_0x4846dd(0x1af)],_0x43edc1));}catch(_0xee70ff){this[_0x4846dd(0x15c)][_0x4846dd(0x183)](util[_0x4846dd(0x174)](_0x43a7cb[_0x4846dd(0x16d)],_0xee70ff[_0x4846dd(0x167)]));}}static[a125_0x52bf87(0x17f)](){const _0x47cf62=a125_0x52bf87,_0x1290d0={};_0x1290d0['rHnYs']=_0x47cf62(0x176),_0x1290d0['vqMzA']=_0x47cf62(0x13b),_0x1290d0[_0x47cf62(0x168)]='Cleared\x20attachment\x20folder';const _0x2129bb=_0x1290d0,_0x401c4e=os[_0x47cf62(0x142)](),_0x2fc0a8=path[_0x47cf62(0x125)](_0x401c4e,_0x2129bb['rHnYs']);if(!fs['existsSync'](_0x2fc0a8))return;const _0xefbaf0=BrowserstackCLI['getInstance']()[_0x47cf62(0x1ba)]['TestHubModule']?.[_0x47cf62(0x13f)]?.[_0x47cf62(0x1a0)]()?.['buildHashedId'],_0x58035c=_0xefbaf0?path[_0x47cf62(0x125)](_0x2fc0a8,_0xefbaf0):null;if(!_0x58035c||!fs['existsSync'](_0x58035c)){this['logger'][_0x47cf62(0x183)](util[_0x47cf62(0x174)](_0x2129bb[_0x47cf62(0x141)],_0xefbaf0));return;}const _0x5d886b={};_0x5d886b['recursive']=!![],_0x5d886b[_0x47cf62(0x14b)]=!![],fs['rmSync'](_0x58035c,_0x5d886b),this[_0x47cf62(0x15c)][_0x47cf62(0x183)](util[_0x47cf62(0x174)](_0x2129bb[_0x47cf62(0x168)]));}}function a125_0x2c48(_0x3782f9,_0x479974){const _0x4d0edb=a125_0x4d0e();return a125_0x2c48=function(_0x2c48d1,_0x1d8ef2){_0x2c48d1=_0x2c48d1-0x11b;let _0x5a4161=_0x4d0edb[_0x2c48d1];return _0x5a4161;},a125_0x2c48(_0x3782f9,_0x479974);}function a125_0x4d0e(){const _0x5441f3=['homedir','./state/hookState','OcVVX','TDUPp','11Hmnrls','aGIZz','bMuoJ','1090AhWPjs','retry','force','EsFvR','zRKVc','getTestIdentifierFromTestInfo','finish','SeaaI','UbyBl','destroy','hfBli','tdUkz','close','Error\x20reading\x20download\x20response:\x20%s','resolveInstance','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','Error\x20downloading\x20file:\x20%s','kdrew','oToyz','logger','__jestCurrentTestIdentifier','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s','slVxe','https','MqTZe','Created\x20folder:\x20%s','startsWith','./cliUtils','lNRQG','Cleanup\x20of\x20partial\x20download\x20failed:\x20%s','message','nSJsX','pTmUl','TcsES','getInstance','TEST','RJzSD','NVJZx','YaxWV','size','bddpL','http://','aApkX','format','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','.browserstack','once','oGoHH','91226NXOfpE','toFixed','5HJiTxL','uKvQg','zHStx','statusCode','clearAttachments','KEY_TEST_ID','setTimeout','getTestFrameworkDetail','debug','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','aCeWs','unlinkSync','File\x20downloaded\x20to:\x20%s','KEY_FILE_SIZE','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','19863pjSVbD','aIZif','uploadAttachments','gaAGm','553580TwBeGi','statSync','get','./framework/constants/testFrameworkConstants','253618pFwydc','RBTGF','Mlqkh','131346fRQcse','KEY_FILE_NAME','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','dlrHV','Error\x20tracking\x20downloaded\x20file:\x20%s,\x20skipping\x20upload','IKRnL','closed','trackFile','exports','./modules/playwrightDriverModule','addMultipleEntries','toObject','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','IXgqH','WHgNd','3dbHBmi','pelKs',',\x20filepath:\x20','AqpCK','getAllData','1928832QQgSiv','createWriteStream','Attachment\x20recevied\x20for\x20path:\x20%s','KEY_FILE_LEVEL','kWuix','frNBM','ZGyYj','KEY_TEST_ATTACHMENTS','kJuXt','vvHZg','copyFileSync','CNrlc','POST','14HGTZTd','getState','getCurrentTestUUID','jKiai','modules','toLowerCase','basename','VKDuS','_uploadAttachments','./state/testFrameworkState','existsSync','Created\x20.browserstack\x20folder\x20at:\x20%s','getTestFramework','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','ofnPZ','xmhMj','mkdirSync','eMkOM','function','IdfjO','join','1144408KVLtqj','AnGZH','JJYJI','tVMOL','./browserstackCLI','aRxfZ','KWxla','TkzkI','ahZHw','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','uwRoJ','__workerDetails','util','getTrackedInstance','TmqQN','setTestDetailsAsync','../../helpers/classLogger.js','TXPNf','TestLevel','uploadAttachmentsManager','hngWu','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','name','trackFile:\x20node-generic\x20testId\x20fallback\x20failed:\x20','TTaBn','testhubConfig','buildHashedId','vqMzA'];a125_0x4d0e=function(){return _0x5441f3;};return a125_0x4d0e();}module[a125_0x52bf87(0x19d)]=uploadAttachmentsManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a126_0x26a8(_0x53c2ac,_0x570fe3){const _0x137a8f=a126_0x137a();return a126_0x26a8=function(_0x26a8dd,_0xdc4b53){_0x26a8dd=_0x26a8dd-0x8f;let _0x19db01=_0x137a8f[_0x26a8dd];return _0x19db01;},a126_0x26a8(_0x53c2ac,_0x570fe3);}const a126_0x2188b5=a126_0x26a8;function a126_0x137a(){const _0x1279a1=['3472MGAHGN','RrPxv','astNodeIds','scenario','33505siYamk','1465024TAhXJz','hDNBu','7923920euEPrS','getTestUUID','brGep','iURVL','kYOYj','6320728DZTous','BEFORE_EACH','value','finishedAt','GkCYs','getCucumberHookType','HookRunStarted','1260520LEfPEB','VoUiK','exception','Exception\x20in\x20createHookData:\x20','cucumber','format','IiUvL','HookRunFinished','Ynqeo','sendTestRunEventForCucumber','result','getHookResult','sourceReference','../../../helpers/helper.js','match','name','FvIpj','getScenarioExamples','ynKmg','status','pending','toISOString','1179zdrZwB','ifodK','KSjvq','KKPiA','length','BunDF','backtrace','tvUqd','pickleStepId','AFTER_EACH','failed','3811640zpfcFc','9UxqvqL','toLowerCase','debug','pfxvw','passed','getHookRunEventData','map','AssertionError','hookId','configureGit','nnjty','failure','path','uuid','../../../helpers/logger.js','mJNZH','_gitConfigPath','createTestFrameworkData','flatMap','children','FAILED','ZuPDa','feature','VJwmx','test','tags','find','NsQwn','EFnji','vWKUH','_gitConfigured','SKIPPED','Zpluq','CKumT','sendHook','GSdwZ','testCaseFinished','fCVfR','fgiSz','KYIdN','every','failure_type','qpZcy','yvSsZ','timestamp','forEach','wEgTn','uri','QSSFL','bAhTf','oYGfh','exports','hooks','126zFuVBI','tagExpression','testStepFinished','javascript','HsRXD','hwMEK','toString','filter','relative','aavdg','wdcff','nanos','rule','cells','failure_data','tableBody','UnhandledError','examples','kJxPw','LCaBZ','failureData','SoUAd','failureType','vkYna','includes','message','aNUHy','skipped','GkeiV','FtnYe','unknown','duration_in_ms','../../../helpers/test-observability/error-handler.js'];a126_0x137a=function(){return _0x1279a1;};return a126_0x137a();}(function(_0x1a3ac5,_0x192602){const _0x331ba9=a126_0x26a8,_0x322d81=_0x1a3ac5();while(!![]){try{const _0x5977b4=parseInt(_0x331ba9(0x102))/0x1+-parseInt(_0x331ba9(0x110))/0x2+parseInt(_0x331ba9(0x9b))/0x3*(parseInt(_0x331ba9(0xfd))/0x4)+-parseInt(_0x331ba9(0x101))/0x5*(-parseInt(_0x331ba9(0xdc))/0x6)+-parseInt(_0x331ba9(0xa6))/0x7+-parseInt(_0x331ba9(0x109))/0x8*(parseInt(_0x331ba9(0xa7))/0x9)+parseInt(_0x331ba9(0x104))/0xa;if(_0x5977b4===_0x192602)break;else _0x322d81['push'](_0x322d81['shift']());}catch(_0x2c92c2){_0x322d81['push'](_0x322d81['shift']());}}}(a126_0x137a,0xbd0f6));const path=require(a126_0x2188b5(0xb3)),util=require('util'),{getGitMetaData,isUndefined,nestedKeyValue,deriveCucumberHookName,isSdkSetupHook}=require(a126_0x2188b5(0x92)),logger=require(a126_0x2188b5(0xb5))['winstonLogger'],{o11yClassErrorHandler}=require(a126_0x2188b5(0xfc)),TestInfo=require('../TestInfo.js'),hooksMap={};class CucumberUtils{constructor(){const _0x272bbf=a126_0x2188b5;this['_gitConfigured']=![],this[_0x272bbf(0xb7)]=null;}async[a126_0x2188b5(0xb8)](_0x528090,_0x4bbb23,_0x3092d9,_0x43c3ea,_0x9e95a1,_0x416d03){const _0x37f5c8=a126_0x2188b5,_0xab66c4={'bAhTf':function(_0x32613c,_0xe9ae56){return _0x32613c===_0xe9ae56;},'aNUHy':_0x37f5c8(0xbb),'ifodK':_0x37f5c8(0xa5),'hDNBu':_0x37f5c8(0xc6),'zJJAH':_0x37f5c8(0xf7),'RrPxv':function(_0x2488bb,_0x22b408){return _0x2488bb||_0x22b408;},'EFnji':function(_0x8073e5,_0x68f889){return _0x8073e5+_0x68f889;},'VoUiK':function(_0x2ae1a0,_0x4e9a69){return _0x2ae1a0+_0x4e9a69;},'Ynqeo':_0x37f5c8(0xbf),'hwMEK':'javascript','NsQwn':_0x37f5c8(0x114),'LCaBZ':_0x37f5c8(0x99),'KSjvq':_0x37f5c8(0xab),'nnjty':function(_0x2f9c41,_0x4455be){return _0x2f9c41!==_0x4455be;},'VJwmx':function(_0x314bf3,_0xb0b877){return _0x314bf3/_0xb0b877;},'mJNZH':function(_0x1f693e,_0x2dbd7a){return _0x1f693e===_0x2dbd7a;},'ZuPDa':'strip-ansi','brGep':function(_0x526985,_0x29f97c){return _0x526985(_0x29f97c);},'IDvpI':_0x37f5c8(0xfa),'SoUAd':_0x37f5c8(0xae),'QSSFL':_0x37f5c8(0xec)},{feature:_0x5e1765,scenario:_0x175143,steps:_0x1e2b37,uuid:_0x43c7e6,startedAt:_0x346e5c,finishedAt:_0x55a84a}=_0xab66c4[_0x37f5c8(0xfe)](_0x528090,{}),_0x47b281=this[_0x37f5c8(0x96)](_0x43c3ea,_0x4bbb23);await this[_0x37f5c8(0xb0)]();const _0x1d8691=_0x47b281?_0xab66c4[_0x37f5c8(0xc3)](_0xab66c4[_0x37f5c8(0x111)](_0xab66c4['VoUiK'](_0x4bbb23[_0x37f5c8(0x94)],'\x20('),_0x47b281['join'](',\x20')),')'):_0x4bbb23[_0x37f5c8(0x94)],_0x4c9b49={'id':_0x9e95a1,'uuid':_0x9e95a1,'startedAt':_0x346e5c,'finishedAt':_0x55a84a,'type':_0xab66c4[_0x37f5c8(0x118)],'body':{'lang':_0xab66c4[_0x37f5c8(0xe1)],'code':null},'name':_0x1d8691,'scopes':[_0x5e1765&&_0x5e1765['name']?_0x5e1765[_0x37f5c8(0x94)]:''],'tags':_0x4bbb23[_0x37f5c8(0xc0)]?_0x4bbb23[_0x37f5c8(0xc0)][_0x37f5c8(0xad)](({name:_0x34028d})=>_0x34028d):[],'file_name':_0x4bbb23[_0x37f5c8(0xd6)],'location':_0x4bbb23[_0x37f5c8(0xd6)],'vc_filepath':this[_0x37f5c8(0xb7)]&&_0x4bbb23[_0x37f5c8(0xd6)]?path[_0x37f5c8(0xe4)](this[_0x37f5c8(0xb7)],_0x4bbb23[_0x37f5c8(0xd6)]):null,'framework':_0xab66c4[_0x37f5c8(0xc2)],'result':_0xab66c4[_0x37f5c8(0xef)],'meta':{'feature':_0x5e1765,'scenario':_0x175143,'steps':_0x1e2b37,'examples':_0x47b281},'customRerunParam':{'rerun_name':_0x1d8691}};if(_0x3092d9[_0x37f5c8(0xcb)]&&_0x1e2b37){const _0xb03a58=_0x3092d9['testCaseFinished'];let _0x41f60c=_0xab66c4[_0x37f5c8(0x9d)];_0x1e2b37[_0x37f5c8(0xcf)](_0x43a71d=>{const _0x4962b4=_0x37f5c8;if(_0xab66c4[_0x4962b4(0xd8)](_0x43a71d[_0x4962b4(0x8f)],_0xab66c4[_0x4962b4(0xf6)]))return _0x41f60c=_0xab66c4['ifodK'],_0xb03a58['failure']=_0x43a71d['failure'],_0xb03a58[_0x4962b4(0xf2)]=_0x43a71d[_0x4962b4(0xf2)],![];else{if(_0xab66c4[_0x4962b4(0xd8)](_0x43a71d[_0x4962b4(0x8f)],_0xab66c4[_0x4962b4(0x103)]))return _0x41f60c=_0xab66c4['zJJAH'],![];}return!![];}),_0x4c9b49[_0x37f5c8(0x10c)]=new Date()[_0x37f5c8(0x9a)](),_0x4c9b49[_0x37f5c8(0x8f)]=_0x41f60c;_0xb03a58[_0x37f5c8(0xd3)]&&_0xab66c4[_0x37f5c8(0xb1)](_0xb03a58[_0x37f5c8(0xd3)]['nanos'],undefined)?_0x4c9b49[_0x37f5c8(0xfb)]=_0xab66c4[_0x37f5c8(0xbe)](_0xb03a58[_0x37f5c8(0xd3)][_0x37f5c8(0xe7)],0xf4240):_0x4c9b49['duration_in_ms']=undefined;if(_0xab66c4[_0x37f5c8(0xb6)](_0x41f60c,_0xab66c4[_0x37f5c8(0x9c)])){const {default:_0x3ae588}=await import(_0xab66c4[_0x37f5c8(0xbc)]);_0x4c9b49[_0x37f5c8(0xb2)]=[{'backtrace':[_0xb03a58['failure']?_0xab66c4[_0x37f5c8(0x106)](_0x3ae588,_0xb03a58['failure']):_0xab66c4['IDvpI']]}],_0x4c9b49['failure_reason']=_0xb03a58[_0x37f5c8(0xb2)]?_0xab66c4[_0x37f5c8(0x106)](_0x3ae588,_0xb03a58[_0x37f5c8(0xb2)]):_0xb03a58[_0x37f5c8(0xf5)],_0xb03a58[_0x37f5c8(0xf2)]&&(_0x4c9b49['failure_type']=_0xb03a58[_0x37f5c8(0xf2)][_0x37f5c8(0x93)](/AssertError/)?_0xab66c4[_0x37f5c8(0xf1)]:_0xab66c4[_0x37f5c8(0xd7)]);}}return _0x4c9b49;}[a126_0x2188b5(0xac)](_0x3a11d9,_0x75c27c,_0x129424,_0xf679ea,_0x5c36d7,_0x338fe7){const _0x3bea23=a126_0x2188b5,_0x333bbe={'HsRXD':function(_0x47fef7,_0x370dc7){return _0x47fef7===_0x370dc7;},'fgiSz':_0x3bea23(0x117),'kJxPw':function(_0x4d31f2,_0x5e6245,_0x4ba4d4){return _0x4d31f2(_0x5e6245,_0x4ba4d4);},'hxCoz':_0x3bea23(0x91),'FtnYe':'uri','KKPiA':_0x3bea23(0x99),'wdcff':'hook','CKumT':function(_0x4bc973,_0x25da68,_0x442673,_0x31e611){return _0x4bc973(_0x25da68,_0x442673,_0x31e611);},'qpZcy':_0x3bea23(0x100),'fCVfR':_0x3bea23(0x94),'iURVL':_0x3bea23(0xdf),'tjOWH':function(_0x4ba48b,_0x44e254,_0x3d08d2){return _0x4ba48b(_0x44e254,_0x3d08d2);},'IiUvL':_0x3bea23(0xbd),'jUBjW':_0x3bea23(0x114)};try{if(_0x333bbe[_0x3bea23(0xe0)](_0x129424,_0x333bbe[_0x3bea23(0xcd)])){const _0xe163c7=new Date()[_0x3bea23(0x9a)](),_0x2f93f7=hooksMap[_0x75c27c];if(!_0x2f93f7)return;const _0x22663e=_0x2f93f7[_0x3bea23(0xc1)](_0x269f5c=>_0x269f5c[_0x3bea23(0xb4)]===_0xf679ea['id']);if(!_0x22663e)return;const _0x480df9=this[_0x3bea23(0x90)](_0x3a11d9,_0x75c27c);_0x22663e['result']=_0x480df9[_0x3bea23(0x98)],_0x22663e['finished_at']=_0xe163c7,_0x22663e[_0x3bea23(0xd0)]=_0x480df9[_0x3bea23(0xf2)];const _0x5eb0b9={};return _0x5eb0b9[_0x3bea23(0xa1)]=_0x480df9[_0x3bea23(0xf0)],_0x22663e[_0x3bea23(0xea)]=[_0x5eb0b9],_0x22663e;}const _0x210c82=TestInfo[_0x3bea23(0x105)](_0x75c27c),_0x3f0de4=_0x3a11d9[_0x3bea23(0xdb)][_0x3bea23(0xc1)](_0x1e2885=>_0x1e2885['id']===_0xf679ea[_0x3bea23(0xaf)]),_0x4c051d=_0x333bbe[_0x3bea23(0xee)](nestedKeyValue,_0x3f0de4,[_0x333bbe['hxCoz'],_0x333bbe[_0x3bea23(0xf9)]]),_0x4a87f0=new Date()[_0x3bea23(0x9a)](),_0x222288=_0x333bbe[_0x3bea23(0x9e)],_0x21d8a1=_0x3f0de4[_0x3bea23(0xdd)]?_0x3f0de4[_0x3bea23(0xdd)]['split']('\x20')[_0x3bea23(0xe3)](_0x45d014=>_0x45d014[_0x3bea23(0xf4)]('@')):[],_0x278fd0={'uuid':_0xf679ea['id'],'type':_0x333bbe[_0x3bea23(0xe6)],'hook_type':_0x338fe7,'name':_0x333bbe[_0x3bea23(0xc8)](deriveCucumberHookName,_0x3f0de4['name'],_0x338fe7,_0x333bbe['kJxPw'](nestedKeyValue,_0x5c36d7,[_0x333bbe[_0x3bea23(0xd1)],_0x333bbe[_0x3bea23(0xcc)]])),'body':{'lang':_0x333bbe[_0x3bea23(0x107)],'code':null},'tags':_0x21d8a1,'test_run_id':_0x210c82,'scope':_0x333bbe['tjOWH'](nestedKeyValue,_0x5c36d7,[_0x333bbe['IiUvL'],_0x333bbe[_0x3bea23(0xcc)]]),'scopes':[_0x333bbe['kJxPw'](nestedKeyValue,_0x5c36d7,[_0x333bbe[_0x3bea23(0x116)],_0x333bbe[_0x3bea23(0xcc)]])||''],'file_name':_0x4c051d,'location':_0x4c051d,'vc_filepath':this[_0x3bea23(0xb7)]&&_0x4c051d?path[_0x3bea23(0xe4)](this[_0x3bea23(0xb7)],_0x4c051d):null,'result':_0x222288,'started_at':_0x4a87f0,'framework':_0x333bbe['jUBjW']};return _0x278fd0;}catch(_0x5371b6){logger[_0x3bea23(0xa9)]('Exception\x20in\x20getHookRunEventData:\x20'+util['format'](_0x5371b6)+'\x20');}}async['createHookData'](_0x5c61e8,_0x5928f4,_0x3a461d,_0x24d237,_0x489fed,_0x4ad328){const _0x1cf761=a126_0x2188b5,_0x1aa72b={'ynKmg':function(_0x247d93,_0x2ad170){return _0x247d93===_0x2ad170;},'GkeiV':_0x1cf761(0x10f),'oYGfh':function(_0x27e89b,_0x55e7c5,_0x19cbe1){return _0x27e89b(_0x55e7c5,_0x19cbe1);},'pfxvw':_0x1cf761(0x91),'cCaLy':_0x1cf761(0xd6),'Zpluq':function(_0x5e0cd3,_0x437e65,_0x4d3faf){return _0x5e0cd3(_0x437e65,_0x4d3faf);}};try{const _0x533c33=_0x24d237[_0x1cf761(0xc1)](_0x38a3d5=>_0x38a3d5['id']===_0x489fed);if(!_0x533c33[_0x1cf761(0xaf)])return;const _0x268f1e=this[_0x1cf761(0x10e)](_0x24d237,_0x533c33),_0x6f05d7=this['getHookRunEventData'](_0x5c61e8,_0x5928f4,_0x3a461d,_0x533c33,_0x4ad328,_0x268f1e);if(!_0x6f05d7)return;_0x1aa72b[_0x1cf761(0x97)](_0x3a461d,_0x1aa72b[_0x1cf761(0xf8)])&&(hooksMap[_0x5928f4]?hooksMap[_0x5928f4]['push'](_0x6f05d7):hooksMap[_0x5928f4]=[_0x6f05d7]);const _0x15d1d3=_0x5c61e8[_0x1cf761(0xdb)][_0x1cf761(0xc1)](_0x4178ae=>_0x4178ae['id']===_0x533c33[_0x1cf761(0xaf)]),_0x241590=_0x1aa72b[_0x1cf761(0xd9)](nestedKeyValue,_0x15d1d3,[_0x1aa72b[_0x1cf761(0xaa)],_0x1aa72b['cCaLy']]);if(!_0x241590)return;else{if(_0x1aa72b[_0x1cf761(0xc7)](isSdkSetupHook,_0x241590,_0x6f05d7[_0x1cf761(0x94)]))return;}return _0x6f05d7;}catch(_0x562a94){logger['debug'](_0x1cf761(0x113)+util[_0x1cf761(0x115)](_0x562a94)+'\x20');}}[a126_0x2188b5(0x90)](_0x342fcb,_0x2c6b81){const _0x178e3c=a126_0x2188b5,_0x4359cc={};_0x4359cc[_0x178e3c(0xf3)]=function(_0x18767c,_0x49f625){return _0x18767c===_0x49f625;},_0x4359cc['GkCYs']='failed',_0x4359cc[_0x178e3c(0xc4)]=function(_0x215e0a,_0x4478ef){return _0x215e0a===_0x4478ef;},_0x4359cc[_0x178e3c(0xa0)]='UnhandledError',_0x4359cc[_0x178e3c(0xd2)]=_0x178e3c(0xae),_0x4359cc[_0x178e3c(0xce)]=function(_0x28de65,_0xbb110f){return _0x28de65||_0xbb110f;};const _0x8edf34=_0x4359cc,_0x4cfcdd=_0x342fcb[_0x178e3c(0xde)][_0x2c6b81]['testStepResult'];let _0x5a492e,_0x248541;return _0x4cfcdd&&_0x8edf34[_0x178e3c(0xf3)](_0x4cfcdd['status'][_0x178e3c(0xe2)]()[_0x178e3c(0xa8)](),_0x8edf34[_0x178e3c(0x10d)])&&(_0x5a492e=_0x8edf34[_0x178e3c(0xf3)](_0x4cfcdd['exception'],undefined)?_0x4cfcdd['message']:_0x4cfcdd['exception'][_0x178e3c(0xf5)],_0x248541=_0x8edf34[_0x178e3c(0xc4)](_0x4cfcdd[_0x178e3c(0x112)],undefined)?_0x8edf34[_0x178e3c(0xa0)]:_0x4cfcdd[_0x178e3c(0xf5)][_0x178e3c(0x93)](/Assert/)?_0x8edf34[_0x178e3c(0xd2)]:_0x8edf34[_0x178e3c(0xa0)]),{'status':_0x4cfcdd[_0x178e3c(0x98)][_0x178e3c(0xa8)](),'failureType':_0x8edf34[_0x178e3c(0xce)](_0x248541,null),'failureData':!_0x5a492e?null:[_0x5a492e]};}[a126_0x2188b5(0x10e)](_0x17d30c,_0x3949a0){const _0x58e864=a126_0x2188b5,_0x12efef={};_0x12efef['wEgTn']=function(_0x526276,_0x53985c){return _0x526276===_0x53985c;},_0x12efef['aavdg']=_0x58e864(0xa4),_0x12efef[_0x58e864(0xa2)]=_0x58e864(0x10a);const _0x2e29de=_0x12efef;let _0x1828e9=![];for(const _0x41fc72 of _0x17d30c){_0x41fc72[_0x58e864(0xa3)]&&(_0x1828e9=!![]);if(_0x2e29de[_0x58e864(0xd5)](_0x3949a0['id'],_0x41fc72['id']))return _0x1828e9?_0x2e29de[_0x58e864(0xe5)]:_0x2e29de[_0x58e864(0xa2)];}}['getScenarioExamples']=(_0x4ab35e,_0x1c1a0c)=>{const _0x259d9e=a126_0x2188b5,_0x130089={};_0x130089['kYOYj']=function(_0x46672b,_0x2bf81f){return _0x46672b===_0x2bf81f;},_0x130089[_0x259d9e(0x95)]=function(_0x362a14,_0x570fdd){return _0x362a14>_0x570fdd;};const _0x1d4f5b=_0x130089;if(!(_0x1c1a0c[_0x259d9e(0xff)]&&_0x1d4f5b[_0x259d9e(0x95)](_0x1c1a0c[_0x259d9e(0xff)]['length'],0x1)))return;const _0x5de982=_0x1c1a0c[_0x259d9e(0xff)][0x0],_0xa221b6=_0x1c1a0c[_0x259d9e(0xff)][0x1],_0x34ea0e=_0x4ab35e[_0x259d9e(0xbd)]&&_0x4ab35e[_0x259d9e(0xbd)][_0x259d9e(0xba)]?_0x4ab35e[_0x259d9e(0xbd)][_0x259d9e(0xba)]:undefined;let _0xe507f5=[];_0x34ea0e&&_0x34ea0e[_0x259d9e(0xd4)](_0x5d353e=>{const _0x37f157=_0x259d9e;if(_0x5d353e[_0x37f157(0xe8)])_0x5d353e[_0x37f157(0xe8)][_0x37f157(0xba)][_0x37f157(0xd4)](_0x32d94d=>{const _0x5b0c77=_0x37f157;if(_0x32d94d[_0x5b0c77(0x100)]&&_0x1d4f5b[_0x5b0c77(0x108)](_0x32d94d['scenario']['id'],_0x5de982)&&_0x32d94d[_0x5b0c77(0x100)][_0x5b0c77(0xed)]){const _0x4222c1=_0x32d94d[_0x5b0c77(0x100)]['examples']['flatMap'](_0x32d42c=>_0x32d42c[_0x5b0c77(0xeb)])['find'](_0x380714=>_0x380714['id']===_0xa221b6);let _0x5e3c18;_0x4222c1&&_0x4222c1[_0x5b0c77(0xe9)]?_0x5e3c18=_0x4222c1[_0x5b0c77(0xe9)][_0x5b0c77(0xad)](_0x518ed8=>_0x518ed8[_0x5b0c77(0x10b)]):_0x5e3c18=[],_0x5e3c18&&(_0xe507f5=_0x5e3c18);}});else{if(_0x5d353e[_0x37f157(0x100)]&&_0x1d4f5b[_0x37f157(0x108)](_0x5d353e[_0x37f157(0x100)]['id'],_0x5de982)&&_0x5d353e[_0x37f157(0x100)][_0x37f157(0xed)]){const _0x37271c=_0x5d353e[_0x37f157(0x100)]['examples'][_0x37f157(0xb9)](_0x5be1f1=>_0x5be1f1[_0x37f157(0xeb)])['find'](_0xe6b441=>_0xe6b441['id']===_0xa221b6);let _0x536255;_0x37271c&&_0x37271c['cells']?_0x536255=_0x37271c[_0x37f157(0xe9)][_0x37f157(0xad)](_0x7153c1=>_0x7153c1['value']):_0x536255=[],_0x536255&&(_0xe507f5=_0x536255);}}});if(_0xe507f5[_0x259d9e(0x9f)])return _0xe507f5;return;};async['configureGit'](){const _0x23554b=a126_0x2188b5,_0x53cafb={'GSdwZ':function(_0x4737c0){return _0x4737c0();}};if(this['_gitConfigured'])return this[_0x23554b(0xb7)];const _0xeb7105=await _0x53cafb[_0x23554b(0xca)](getGitMetaData);_0xeb7105&&(this[_0x23554b(0xb7)]=_0xeb7105['root']),this[_0x23554b(0xc5)]=!![];}}module[a126_0x2188b5(0xda)]=o11yClassErrorHandler(CucumberUtils,[a126_0x2188b5(0xb0),'getScenarioExamples','getCucumberHookType',a126_0x2188b5(0x90),a126_0x2188b5(0xc9),'getHookRunEventData',a126_0x2188b5(0x119),a126_0x2188b5(0xb8)]);
|
|
1
|
+
function a126_0x3213(_0x2d2cee,_0x208a5d){const _0x138bcf=a126_0x138b();return a126_0x3213=function(_0x32134d,_0x5dd77e){_0x32134d=_0x32134d-0x1a2;let _0x2698b2=_0x138bcf[_0x32134d];return _0x2698b2;},a126_0x3213(_0x2d2cee,_0x208a5d);}const a126_0x458fc2=a126_0x3213;function a126_0x138b(){const _0x15b5f5=['364833knwFOB','RPbZp','result','Avvhm','sourceReference','22370AQggEP','bpGZi','failed','bejQK','mpIOT','_gitConfigured','failure_data','GzjAT','failureType','finishedAt','qkaMo','uuid','441jqIekK','sendHook','testStepFinished','examples','match','5Rvgete','exports','tpJpe','CJAwF','tTqci','includes','NCjDi','push','feature','format','ewcdM','OHtct','name','SiTwH','aDDWw','OOBAr','86178ZcDnaf','find','WirpL','split','cucumber','rule','tvOYb','scenario','root','debug','HUqVW','join','getCucumberHookType','FFcar','btqhJ','sendTestRunEventForCucumber','_gitConfigPath','WUXYh','pickleStepId','cells','1IdbeOw','relative','test','../../../helpers/helper.js','pending','tags','uri','../TestInfo.js','OFMLp','unknown','AFTER_EACH','HookRunFinished','testCaseFinished','hooks','getHookRunEventData','tagExpression','message','skipped','testStepResult','wiFot','fycMB','gVoph','getScenarioExamples','strip-ansi','nanos','vvqxj','Oolpw','toISOString','failure','Exception\x20in\x20createHookData:\x20','HookRunStarted','xDcMY','eCxDp','SKIPPED','astNodeIds','createTestFrameworkData','StgmK','javascript','FemTX','AssertionError','aFsqo','length','Exception\x20in\x20getHookRunEventData:\x20','4197400AFtyEV','GpykP','vjdau','UnhandledError','map','finished_at','FAILED','failure_reason','OAieN','yFkzN','value','toLowerCase','932678qtLJYr','1366799QDQdYo','zLyaQ','cFptC','NCfph','duration_in_ms','getHookResult','timestamp','children','getTestUUID','backtrace','zssod','CnQmv','2243096yyYfBG','../../../helpers/logger.js','exception','failure_type','wdIoV','forEach','configureGit','status','failureData','hookId','createHookData','fgMFm','kPFhP','../../../helpers/test-observability/error-handler.js'];a126_0x138b=function(){return _0x15b5f5;};return a126_0x138b();}(function(_0x53339d,_0x542f97){const _0x1671ad=a126_0x3213,_0x307a5c=_0x53339d();while(!![]){try{const _0x40bb87=-parseInt(_0x1671ad(0x228))/0x1*(parseInt(_0x1671ad(0x1d3))/0x2)+parseInt(_0x1671ad(0x1ee))/0x3+parseInt(_0x1671ad(0x1e0))/0x4+-parseInt(_0x1671ad(0x204))/0x5*(parseInt(_0x1671ad(0x214))/0x6)+-parseInt(_0x1671ad(0x1d4))/0x7+parseInt(_0x1671ad(0x1c7))/0x8+-parseInt(_0x1671ad(0x1ff))/0x9*(parseInt(_0x1671ad(0x1f3))/0xa);if(_0x40bb87===_0x542f97)break;else _0x307a5c['push'](_0x307a5c['shift']());}catch(_0x2448c9){_0x307a5c['push'](_0x307a5c['shift']());}}}(a126_0x138b,0x66e70));const path=require('path'),util=require('util'),{getGitMetaData,isUndefined,nestedKeyValue,deriveCucumberHookName,isSdkSetupHook}=require(a126_0x458fc2(0x22b)),logger=require(a126_0x458fc2(0x1e1))['winstonLogger'],{o11yClassErrorHandler}=require(a126_0x458fc2(0x1ed)),TestInfo=require(a126_0x458fc2(0x1a3)),hooksMap={};class CucumberUtils{constructor(){const _0xfaef61=a126_0x458fc2;this[_0xfaef61(0x1f8)]=![],this[_0xfaef61(0x224)]=null;}async[a126_0x458fc2(0x1bf)](_0xc978d9,_0x4f4d9f,_0xa684f1,_0x39a31c,_0x2fee11,_0x5c73ed){const _0x14dab5=a126_0x458fc2,_0x330b49={'CnQmv':function(_0xb947ff,_0x4c0f7b){return _0xb947ff===_0x4c0f7b;},'aFsqo':_0x14dab5(0x1cd),'OHtct':'failed','xDcMY':_0x14dab5(0x1bd),'bejQK':_0x14dab5(0x1ad),'CJAwF':function(_0x7b43f6,_0x57325e){return _0x7b43f6||_0x57325e;},'aDDWw':function(_0x52f7d5,_0x1cd07e){return _0x52f7d5+_0x1cd07e;},'wdIoV':_0x14dab5(0x22a),'gVoph':_0x14dab5(0x1c1),'qkaMo':_0x14dab5(0x218),'yFkzN':_0x14dab5(0x22c),'rtOjh':'passed','zssod':function(_0x5cb334,_0x3c0cff){return _0x5cb334!==_0x3c0cff;},'Avvhm':function(_0x499ed8,_0x16687e){return _0x499ed8/_0x16687e;},'WirpL':_0x14dab5(0x1b3),'ewcdM':function(_0x260015,_0x4b1a03){return _0x260015(_0x4b1a03);},'WUXYh':_0x14dab5(0x1a5),'OAieN':'AssertionError','btqhJ':'UnhandledError'},{feature:_0x5b5497,scenario:_0x10ac5b,steps:_0x159a41,uuid:_0x47c1eb,startedAt:_0x224997,finishedAt:_0x3086f9}=_0x330b49[_0x14dab5(0x207)](_0xc978d9,{}),_0x2834ba=this[_0x14dab5(0x1b2)](_0x39a31c,_0x4f4d9f);await this[_0x14dab5(0x1e6)]();const _0x3e79b4=_0x2834ba?_0x330b49[_0x14dab5(0x212)](_0x330b49[_0x14dab5(0x212)](_0x330b49[_0x14dab5(0x212)](_0x4f4d9f[_0x14dab5(0x210)],'\x20('),_0x2834ba[_0x14dab5(0x21f)](',\x20')),')'):_0x4f4d9f[_0x14dab5(0x210)],_0x174c03={'id':_0x2fee11,'uuid':_0x2fee11,'startedAt':_0x224997,'finishedAt':_0x3086f9,'type':_0x330b49[_0x14dab5(0x1e4)],'body':{'lang':_0x330b49[_0x14dab5(0x1b1)],'code':null},'name':_0x3e79b4,'scopes':[_0x5b5497&&_0x5b5497[_0x14dab5(0x210)]?_0x5b5497['name']:''],'tags':_0x4f4d9f[_0x14dab5(0x22d)]?_0x4f4d9f[_0x14dab5(0x22d)][_0x14dab5(0x1cb)](({name:_0xc7f7e8})=>_0xc7f7e8):[],'file_name':_0x4f4d9f['uri'],'location':_0x4f4d9f[_0x14dab5(0x1a2)],'vc_filepath':this[_0x14dab5(0x224)]&&_0x4f4d9f[_0x14dab5(0x1a2)]?path[_0x14dab5(0x229)](this[_0x14dab5(0x224)],_0x4f4d9f[_0x14dab5(0x1a2)]):null,'framework':_0x330b49[_0x14dab5(0x1fd)],'result':_0x330b49[_0x14dab5(0x1d0)],'meta':{'feature':_0x5b5497,'scenario':_0x10ac5b,'steps':_0x159a41,'examples':_0x2834ba},'customRerunParam':{'rerun_name':_0x3e79b4}};if(_0xa684f1['testCaseFinished']&&_0x159a41){const _0x56b3d4=_0xa684f1[_0x14dab5(0x1a8)];let _0x327524=_0x330b49['rtOjh'];_0x159a41['every'](_0x4c4996=>{const _0xb113df=_0x14dab5;if(_0x330b49[_0xb113df(0x1df)](_0x4c4996[_0xb113df(0x1f0)],_0x330b49[_0xb113df(0x1c4)]))return _0x327524=_0x330b49[_0xb113df(0x20f)],_0x56b3d4[_0xb113df(0x1b8)]=_0x4c4996['failure'],_0x56b3d4[_0xb113df(0x1fb)]=_0x4c4996[_0xb113df(0x1fb)],![];else{if(_0x330b49[_0xb113df(0x1df)](_0x4c4996[_0xb113df(0x1f0)],_0x330b49[_0xb113df(0x1bb)]))return _0x327524=_0x330b49[_0xb113df(0x1f6)],![];}return!![];}),_0x174c03[_0x14dab5(0x1fc)]=new Date()[_0x14dab5(0x1b7)](),_0x174c03[_0x14dab5(0x1f0)]=_0x327524;_0x56b3d4[_0x14dab5(0x1da)]&&_0x330b49[_0x14dab5(0x1de)](_0x56b3d4['timestamp'][_0x14dab5(0x1b4)],undefined)?_0x174c03[_0x14dab5(0x1d8)]=_0x330b49[_0x14dab5(0x1f1)](_0x56b3d4[_0x14dab5(0x1da)][_0x14dab5(0x1b4)],0xf4240):_0x174c03[_0x14dab5(0x1d8)]=undefined;if(_0x330b49['CnQmv'](_0x327524,_0x330b49[_0x14dab5(0x20f)])){const {default:_0x44a369}=await import(_0x330b49[_0x14dab5(0x216)]);_0x174c03[_0x14dab5(0x1b8)]=[{'backtrace':[_0x56b3d4[_0x14dab5(0x1b8)]?_0x330b49[_0x14dab5(0x20e)](_0x44a369,_0x56b3d4['failure']):_0x330b49[_0x14dab5(0x225)]]}],_0x174c03[_0x14dab5(0x1ce)]=_0x56b3d4[_0x14dab5(0x1b8)]?_0x330b49[_0x14dab5(0x20e)](_0x44a369,_0x56b3d4[_0x14dab5(0x1b8)]):_0x56b3d4['message'],_0x56b3d4[_0x14dab5(0x1fb)]&&(_0x174c03[_0x14dab5(0x1e3)]=_0x56b3d4[_0x14dab5(0x1fb)][_0x14dab5(0x203)](/AssertError/)?_0x330b49[_0x14dab5(0x1cf)]:_0x330b49[_0x14dab5(0x222)]);}}return _0x174c03;}[a126_0x458fc2(0x1aa)](_0x45a629,_0x1d9684,_0x2b4975,_0x2098ce,_0x2449f5,_0x3c2264){const _0x4d6a20=a126_0x458fc2,_0x4d337f={'tpJpe':function(_0x2be270,_0x1e345a){return _0x2be270===_0x1e345a;},'rojol':_0x4d6a20(0x1a7),'vjdau':function(_0x210565,_0x208fde,_0x3c2db5){return _0x210565(_0x208fde,_0x3c2db5);},'NmZRg':_0x4d6a20(0x1f2),'OOBAr':_0x4d6a20(0x1a2),'FemTX':_0x4d6a20(0x22c),'kkQxH':'hook','VAIuP':function(_0x2f308f,_0x7947cc,_0x1a5577,_0x5baf97){return _0x2f308f(_0x7947cc,_0x1a5577,_0x5baf97);},'SiTwH':_0x4d6a20(0x21b),'fycMB':_0x4d6a20(0x210),'kPFhP':'javascript','StgmK':function(_0x20b968,_0x353af2,_0x4b7f61){return _0x20b968(_0x353af2,_0x4b7f61);},'fgMFm':_0x4d6a20(0x20c),'WBlmo':function(_0xac5948,_0xd2f1e4,_0x2778fb){return _0xac5948(_0xd2f1e4,_0x2778fb);},'Oolpw':_0x4d6a20(0x218)};try{if(_0x4d337f[_0x4d6a20(0x206)](_0x2b4975,_0x4d337f['rojol'])){const _0x531b71=new Date()['toISOString'](),_0xdbdadb=hooksMap[_0x1d9684];if(!_0xdbdadb)return;const _0x3b0a85=_0xdbdadb[_0x4d6a20(0x215)](_0x538b99=>_0x538b99[_0x4d6a20(0x1fe)]===_0x2098ce['id']);if(!_0x3b0a85)return;const _0x4c11b7=this[_0x4d6a20(0x1d9)](_0x45a629,_0x1d9684);_0x3b0a85[_0x4d6a20(0x1f0)]=_0x4c11b7[_0x4d6a20(0x1e7)],_0x3b0a85[_0x4d6a20(0x1cc)]=_0x531b71,_0x3b0a85[_0x4d6a20(0x1e3)]=_0x4c11b7['failureType'];const _0xd43717={};return _0xd43717[_0x4d6a20(0x1dd)]=_0x4c11b7[_0x4d6a20(0x1e8)],_0x3b0a85[_0x4d6a20(0x1f9)]=[_0xd43717],_0x3b0a85;}const _0x452d47=TestInfo[_0x4d6a20(0x1dc)](_0x1d9684),_0xc0f8eb=_0x45a629[_0x4d6a20(0x1a9)][_0x4d6a20(0x215)](_0x298b46=>_0x298b46['id']===_0x2098ce[_0x4d6a20(0x1e9)]),_0x2eed57=_0x4d337f[_0x4d6a20(0x1c9)](nestedKeyValue,_0xc0f8eb,[_0x4d337f['NmZRg'],_0x4d337f[_0x4d6a20(0x213)]]),_0x2049f4=new Date()[_0x4d6a20(0x1b7)](),_0x1249f4=_0x4d337f[_0x4d6a20(0x1c2)],_0xc73d87=_0xc0f8eb[_0x4d6a20(0x1ab)]?_0xc0f8eb[_0x4d6a20(0x1ab)][_0x4d6a20(0x217)]('\x20')['filter'](_0x5daec9=>_0x5daec9[_0x4d6a20(0x209)]('@')):[],_0x4a53a1={'uuid':_0x2098ce['id'],'type':_0x4d337f['kkQxH'],'hook_type':_0x3c2264,'name':_0x4d337f['VAIuP'](deriveCucumberHookName,_0xc0f8eb[_0x4d6a20(0x210)],_0x3c2264,_0x4d337f[_0x4d6a20(0x1c9)](nestedKeyValue,_0x2449f5,[_0x4d337f[_0x4d6a20(0x211)],_0x4d337f[_0x4d6a20(0x1b0)]])),'body':{'lang':_0x4d337f[_0x4d6a20(0x1ec)],'code':null},'tags':_0xc73d87,'test_run_id':_0x452d47,'scope':_0x4d337f[_0x4d6a20(0x1c0)](nestedKeyValue,_0x2449f5,[_0x4d337f[_0x4d6a20(0x1eb)],_0x4d337f[_0x4d6a20(0x1b0)]]),'scopes':[_0x4d337f['WBlmo'](nestedKeyValue,_0x2449f5,[_0x4d337f[_0x4d6a20(0x1eb)],_0x4d337f[_0x4d6a20(0x1b0)]])||''],'file_name':_0x2eed57,'location':_0x2eed57,'vc_filepath':this[_0x4d6a20(0x224)]&&_0x2eed57?path[_0x4d6a20(0x229)](this[_0x4d6a20(0x224)],_0x2eed57):null,'result':_0x1249f4,'started_at':_0x2049f4,'framework':_0x4d337f[_0x4d6a20(0x1b6)]};return _0x4a53a1;}catch(_0x11bfa0){logger[_0x4d6a20(0x21d)](_0x4d6a20(0x1c6)+util[_0x4d6a20(0x20d)](_0x11bfa0)+'\x20');}}async[a126_0x458fc2(0x1ea)](_0x5c69fe,_0x2d5fe3,_0x200953,_0x47e027,_0x4868be,_0x44e8cd){const _0x2e493b=a126_0x458fc2,_0x52b2ee={'zLyaQ':function(_0xaee4ff,_0x11959b){return _0xaee4ff===_0x11959b;},'rDMwE':_0x2e493b(0x1ba),'Etini':function(_0x3e0fb9,_0x4b24dc,_0x2810ea){return _0x3e0fb9(_0x4b24dc,_0x2810ea);},'NCfph':_0x2e493b(0x1f2),'FFcar':_0x2e493b(0x1a2),'bpGZi':function(_0x1cc39e,_0x1e2f3c,_0x4470b8){return _0x1cc39e(_0x1e2f3c,_0x4470b8);}};try{const _0x26e62c=_0x47e027[_0x2e493b(0x215)](_0x4f04e3=>_0x4f04e3['id']===_0x4868be);if(!_0x26e62c['hookId'])return;const _0x531f33=this[_0x2e493b(0x220)](_0x47e027,_0x26e62c),_0x3f227b=this[_0x2e493b(0x1aa)](_0x5c69fe,_0x2d5fe3,_0x200953,_0x26e62c,_0x44e8cd,_0x531f33);if(!_0x3f227b)return;_0x52b2ee[_0x2e493b(0x1d5)](_0x200953,_0x52b2ee['rDMwE'])&&(hooksMap[_0x2d5fe3]?hooksMap[_0x2d5fe3][_0x2e493b(0x20b)](_0x3f227b):hooksMap[_0x2d5fe3]=[_0x3f227b]);const _0x33abae=_0x5c69fe[_0x2e493b(0x1a9)][_0x2e493b(0x215)](_0x5f0e4b=>_0x5f0e4b['id']===_0x26e62c[_0x2e493b(0x1e9)]),_0x178990=_0x52b2ee['Etini'](nestedKeyValue,_0x33abae,[_0x52b2ee[_0x2e493b(0x1d7)],_0x52b2ee[_0x2e493b(0x221)]]);if(!_0x178990)return;else{if(_0x52b2ee[_0x2e493b(0x1f4)](isSdkSetupHook,_0x178990,_0x3f227b[_0x2e493b(0x210)]))return;}return _0x3f227b;}catch(_0x405b4f){logger['debug'](_0x2e493b(0x1b9)+util['format'](_0x405b4f)+'\x20');}}[a126_0x458fc2(0x1d9)](_0x1bc813,_0x3efe85){const _0x539200=a126_0x458fc2,_0x19a57c={};_0x19a57c['mpIOT']=function(_0x1f432d,_0x47dac3){return _0x1f432d===_0x47dac3;},_0x19a57c[_0x539200(0x1b5)]=_0x539200(0x1f5),_0x19a57c['tvOYb']=function(_0x24f551,_0x189c3b){return _0x24f551===_0x189c3b;},_0x19a57c[_0x539200(0x1fa)]=_0x539200(0x1ca),_0x19a57c[_0x539200(0x1a4)]=_0x539200(0x1c3),_0x19a57c['tTqci']=function(_0x7f5701,_0xd9b9fa){return _0x7f5701||_0xd9b9fa;};const _0x4a6526=_0x19a57c,_0x2e3a06=_0x1bc813[_0x539200(0x201)][_0x3efe85][_0x539200(0x1ae)];let _0x50db8c,_0xdf00a;return _0x2e3a06&&_0x4a6526[_0x539200(0x1f7)](_0x2e3a06[_0x539200(0x1e7)]['toString']()['toLowerCase'](),_0x4a6526[_0x539200(0x1b5)])&&(_0x50db8c=_0x4a6526[_0x539200(0x1f7)](_0x2e3a06[_0x539200(0x1e2)],undefined)?_0x2e3a06[_0x539200(0x1ac)]:_0x2e3a06[_0x539200(0x1e2)][_0x539200(0x1ac)],_0xdf00a=_0x4a6526[_0x539200(0x21a)](_0x2e3a06[_0x539200(0x1e2)],undefined)?_0x4a6526[_0x539200(0x1fa)]:_0x2e3a06['message'][_0x539200(0x203)](/Assert/)?_0x4a6526['OFMLp']:_0x4a6526[_0x539200(0x1fa)]),{'status':_0x2e3a06[_0x539200(0x1e7)][_0x539200(0x1d2)](),'failureType':_0x4a6526[_0x539200(0x208)](_0xdf00a,null),'failureData':!_0x50db8c?null:[_0x50db8c]};}[a126_0x458fc2(0x220)](_0x1193fc,_0x53229b){const _0x5dc69a=a126_0x458fc2,_0x2d87ec={};_0x2d87ec[_0x5dc69a(0x1af)]=function(_0x3bf9ab,_0x595d70){return _0x3bf9ab===_0x595d70;},_0x2d87ec[_0x5dc69a(0x1ef)]=_0x5dc69a(0x1a6),_0x2d87ec[_0x5dc69a(0x1bc)]='BEFORE_EACH';const _0x4380d0=_0x2d87ec;let _0x5611a6=![];for(const _0x3bcd69 of _0x1193fc){_0x3bcd69[_0x5dc69a(0x226)]&&(_0x5611a6=!![]);if(_0x4380d0[_0x5dc69a(0x1af)](_0x53229b['id'],_0x3bcd69['id']))return _0x5611a6?_0x4380d0[_0x5dc69a(0x1ef)]:_0x4380d0[_0x5dc69a(0x1bc)];}}[a126_0x458fc2(0x1b2)]=(_0x659cc3,_0x4dcccf)=>{const _0x7bb31e=a126_0x458fc2,_0x3aec26={};_0x3aec26[_0x7bb31e(0x1d6)]=function(_0x56b3c1,_0x5c9d4b){return _0x56b3c1===_0x5c9d4b;},_0x3aec26[_0x7bb31e(0x1c8)]=function(_0xa640ea,_0x94c17a){return _0xa640ea>_0x94c17a;};const _0x50247e=_0x3aec26;if(!(_0x4dcccf[_0x7bb31e(0x1be)]&&_0x50247e['GpykP'](_0x4dcccf[_0x7bb31e(0x1be)][_0x7bb31e(0x1c5)],0x1)))return;const _0x9b37a=_0x4dcccf[_0x7bb31e(0x1be)][0x0],_0x308ef1=_0x4dcccf[_0x7bb31e(0x1be)][0x1],_0x5c027f=_0x659cc3[_0x7bb31e(0x20c)]&&_0x659cc3[_0x7bb31e(0x20c)][_0x7bb31e(0x1db)]?_0x659cc3['feature']['children']:undefined;let _0xf8a558=[];_0x5c027f&&_0x5c027f[_0x7bb31e(0x1e5)](_0x1faafe=>{const _0x59ad3b=_0x7bb31e,_0x2ab364={'HUqVW':function(_0x5c170a,_0x1db9ec){return _0x50247e['cFptC'](_0x5c170a,_0x1db9ec);}};if(_0x1faafe[_0x59ad3b(0x219)])_0x1faafe[_0x59ad3b(0x219)][_0x59ad3b(0x1db)][_0x59ad3b(0x1e5)](_0x401b0f=>{const _0x591185=_0x59ad3b;if(_0x401b0f[_0x591185(0x21b)]&&_0x2ab364[_0x591185(0x21e)](_0x401b0f[_0x591185(0x21b)]['id'],_0x9b37a)&&_0x401b0f[_0x591185(0x21b)][_0x591185(0x202)]){const _0x183ee8=_0x401b0f[_0x591185(0x21b)][_0x591185(0x202)]['flatMap'](_0x2f1aa1=>_0x2f1aa1['tableBody'])['find'](_0x3b17a2=>_0x3b17a2['id']===_0x308ef1);let _0x156f81;_0x183ee8&&_0x183ee8['cells']?_0x156f81=_0x183ee8[_0x591185(0x227)][_0x591185(0x1cb)](_0x57df0d=>_0x57df0d[_0x591185(0x1d1)]):_0x156f81=[],_0x156f81&&(_0xf8a558=_0x156f81);}});else{if(_0x1faafe['scenario']&&_0x50247e[_0x59ad3b(0x1d6)](_0x1faafe[_0x59ad3b(0x21b)]['id'],_0x9b37a)&&_0x1faafe[_0x59ad3b(0x21b)]['examples']){const _0x8a2c51=_0x1faafe[_0x59ad3b(0x21b)][_0x59ad3b(0x202)]['flatMap'](_0x22d664=>_0x22d664['tableBody'])[_0x59ad3b(0x215)](_0x4aa4ad=>_0x4aa4ad['id']===_0x308ef1);let _0x36ff8f;_0x8a2c51&&_0x8a2c51[_0x59ad3b(0x227)]?_0x36ff8f=_0x8a2c51['cells']['map'](_0xfa24b0=>_0xfa24b0['value']):_0x36ff8f=[],_0x36ff8f&&(_0xf8a558=_0x36ff8f);}}});if(_0xf8a558['length'])return _0xf8a558;return;};async[a126_0x458fc2(0x1e6)](){const _0xd2f1f4=a126_0x458fc2,_0x33c0c1={'NCjDi':function(_0x2f5845){return _0x2f5845();}};if(this[_0xd2f1f4(0x1f8)])return this[_0xd2f1f4(0x224)];const _0x34d3e1=await _0x33c0c1[_0xd2f1f4(0x20a)](getGitMetaData);_0x34d3e1&&(this[_0xd2f1f4(0x224)]=_0x34d3e1[_0xd2f1f4(0x21c)]),this[_0xd2f1f4(0x1f8)]=!![];}}module[a126_0x458fc2(0x205)]=o11yClassErrorHandler(CucumberUtils,[a126_0x458fc2(0x1e6),'getScenarioExamples',a126_0x458fc2(0x220),a126_0x458fc2(0x1d9),a126_0x458fc2(0x200),a126_0x458fc2(0x1aa),a126_0x458fc2(0x223),a126_0x458fc2(0x1bf)]);
|