browserstack-node-sdk 1.70.2 → 1.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +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_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
|
+
const a119_0x4f20d7=a119_0x3a83;function a119_0x2518(){const _0x43cd23=['instance','QROaA','../state/automationFrameworkState.js','cgOIn','onAllTestEvents','2156602KDQVlF','bind','../../../helpers/test-observability/constants.js','../framework/automationFramework.js','../TestInfo.js','../../../helpers/testhub/constants','getState','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','FBtey','YvcWc','1170741xaICpB','frameworkName','TestHubModule','../browserstackCLI.js','jestUtils','rbjNT','aNoXD','onPageCreate\x20CBTSession\x20payload:\x20','KEY_TEST_FRAMEWORK_NAME','getTestDetailsAsync','base64','env','KEY_TEST_FRAMEWORK_VERSION','getContext','GbJSC','getBuildHashedId','split','zyLgz','getInstance','test_deferred','POST','toLowerCase','recreateIdentifierFromTestInfo','Error\x20in\x20sending\x20CBTSession:\x20','KEY_PLATFORM_INDEX','KEY_SESSION_ID','frameworkVersion','./playwrightDriverModule.js','debug','registerObserver','testFrameworkData','\x20hookState:\x20','./baseModule','length','matchHookRegex','../utils/jest-utils.js','HigqV','testInfo','getModuleName','getCurrentTestState','../state/hookState.js','retry','../../../helpers/helper.js','WDldo','stringify','HajjH','dREOY','sendTestFrameworkEvent','values','../grpcClient.js','WadAo','sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20','getThreadId','version','11NJKsRO','sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event','getProcessId','VrCjC','toString','testUuid','FXZki','BROWSERSTACK_TESTHUB_UUID','testhubConfig','6|7|1|5|4|0|3|2|8','InGXT','test_identifier','MODULE_NAME','../../playwright/sessionDetails.js','getTestIdentifierFromTestInfo','9JXABFF','229895JrODxT','LJonu','13201900WJhxAD','hookState','486346TcHtzi','ZJTJM','onPageCreate','JEST','format','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','./puppeteerDriverModule.js','onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','165848UBTTlj','WkmCS','eIBja','testSessionEvent','logger','error','mVsfr','sAsiI','../framework/testFramework.js','filter','testFrameworkState','ENV_VAR','getTestUUID','./loadTestModule.js','testFrameworkEvent','O11yHashedID',',\x20test_identifier:\x20','jwzsH','getTestFramework','setState','../cliUtils.js','CUCUMBER','name','keys','WPlLw','CREATE','OFrVS','KEY_HUB_URL','6YLiuDI','KEY_CAPABILITIES','4oemoJL','177429qUpPzd','from','createTestFrameworkEventPayload','forEach','getDetails','PLAYWRIGHT','Error\x20in\x20sendTestFrameworkEvent:\x20'];a119_0x2518=function(){return _0x43cd23;};return a119_0x2518();}(function(_0x1a775d,_0x3b6726){const _0x125fcd=a119_0x3a83,_0x17214d=_0x1a775d();while(!![]){try{const _0x4c944c=-parseInt(_0x125fcd(0x248))/0x1+-parseInt(_0x125fcd(0x221))/0x2+-parseInt(_0x125fcd(0x25e))/0x3+-parseInt(_0x125fcd(0x247))/0x4*(-parseInt(_0x125fcd(0x21d))/0x5)+-parseInt(_0x125fcd(0x245))/0x6*(parseInt(_0x125fcd(0x254))/0x7)+parseInt(_0x125fcd(0x229))/0x8*(parseInt(_0x125fcd(0x21c))/0x9)+-parseInt(_0x125fcd(0x21f))/0xa*(-parseInt(_0x125fcd(0x20d))/0xb);if(_0x4c944c===_0x3b6726)break;else _0x17214d['push'](_0x17214d['shift']());}catch(_0x40e620){_0x17214d['push'](_0x17214d['shift']());}}}(a119_0x2518,0x416bd));const util=require('util'),BaseModule=require(a119_0x4f20d7(0x1f7)),{createClassLogger}=require('../../../helpers/classLogger.js'),AutomationFramework=require(a119_0x4f20d7(0x257)),AutomationFrameworkState=require(a119_0x4f20d7(0x251)),HookState=require(a119_0x4f20d7(0x1ff)),TestFramework=require(a119_0x4f20d7(0x231)),TestFrameworkState=require('../state/testFrameworkState.js'),PlaywrightDriverModule=require(a119_0x4f20d7(0x1f2)),PuppeteerDriverModule=require(a119_0x4f20d7(0x227)),PlaywrightSessionDetails=require(a119_0x4f20d7(0x21a)),TestFrameworkConstants=require('../framework/constants/testFrameworkConstants.js'),GrpcClient=require(a119_0x4f20d7(0x208)),CLIUtils=require(a119_0x4f20d7(0x23d)),TestInfo=require(a119_0x4f20d7(0x258)),testHubConstants=require(a119_0x4f20d7(0x259)),{FRAMEWORKS}=require(a119_0x4f20d7(0x256)),helper=require(a119_0x4f20d7(0x201)),LoadTestModule=require(a119_0x4f20d7(0x236)),JestUtils=require(a119_0x4f20d7(0x1fa)),BrowserstackCLI=require(a119_0x4f20d7(0x261)),{getPlaywrightProvider,getProductForSession}=require(a119_0x4f20d7(0x201));function a119_0x3a83(_0x273d43,_0x339433){const _0x251855=a119_0x2518();return a119_0x3a83=function(_0x3a8318,_0x595c17){_0x3a8318=_0x3a8318-0x1ee;let _0x14093a=_0x251855[_0x3a8318];return _0x14093a;},a119_0x3a83(_0x273d43,_0x339433);}class TestHubModule extends BaseModule{[a119_0x4f20d7(0x22d)]=createClassLogger(a119_0x4f20d7(0x260));constructor(_0xa56b5e,_0x2c3aed=null){const _0x55e4e7=a119_0x4f20d7,_0x4c2565={'aNoXD':_0x55e4e7(0x216),'LJonu':_0x55e4e7(0x260),'mxHTo':function(_0x4b88b5,_0x323fb3){return _0x4b88b5(_0x323fb3);},'eIBja':_0x55e4e7(0x261)},_0x507110=_0x4c2565[_0x55e4e7(0x264)][_0x55e4e7(0x26e)]('|');let _0x3a80b9=0x0;while(!![]){switch(_0x507110[_0x3a80b9++]){case'0':Object[_0x55e4e7(0x207)](TestFrameworkState)[_0x55e4e7(0x24b)](_0x12394d=>{const _0x1ce073=_0x55e4e7;Object[_0x1ce073(0x207)](HookState)['forEach'](_0x76198c=>{const _0x2b8dce=_0x1ce073;TestFramework[_0x2b8dce(0x1f4)](_0x12394d,_0x76198c,this[_0x2b8dce(0x253)][_0x2b8dce(0x255)](this));});});continue;case'1':this[_0x55e4e7(0x215)]=_0xa56b5e;continue;case'2':process[_0x55e4e7(0x269)][testHubConstants['ENV_VAR'][_0x55e4e7(0x214)]]=this['testhubConfig'][_0x55e4e7(0x26d)]();continue;case'3':process[_0x55e4e7(0x269)][testHubConstants[_0x55e4e7(0x234)]['BROWSERSTACK_TESTHUB_JWT']]=this['testhubConfig']['getJwt']();continue;case'4':AutomationFramework[_0x55e4e7(0x1f4)](AutomationFrameworkState[_0x55e4e7(0x242)],HookState[_0x55e4e7(0x272)],this[_0x55e4e7(0x223)]['bind'](this));continue;case'5':this[_0x55e4e7(0x262)]=new JestUtils();continue;case'6':super(_0x2c3aed);continue;case'7':this[_0x55e4e7(0x23f)]=_0x4c2565[_0x55e4e7(0x21e)];continue;case'8':_0x4c2565['mxHTo'](require,_0x4c2565[_0x55e4e7(0x22b)])[_0x55e4e7(0x238)]=this['testhubConfig'][_0x55e4e7(0x26d)]();continue;}break;}}[a119_0x4f20d7(0x1fd)](){return TestHubModule['MODULE_NAME'];}['onAllTestEvents'](_0x14f419){const _0x134b17=a119_0x4f20d7,_0x139d77={};_0x139d77[_0x134b17(0x250)]=function(_0x3e787b,_0x3e0e3b){return _0x3e787b===_0x3e0e3b;};const _0x151ddd=_0x139d77,_0x5795b4=_0x14f419[_0x134b17(0x24f)],_0x41ae2e=_0x5795b4[_0x134b17(0x1fe)]();(_0x151ddd[_0x134b17(0x250)](_0x41ae2e,TestFrameworkState['TEST'])||CLIUtils[_0x134b17(0x1f9)](_0x41ae2e['toString']()[_0x134b17(0x26e)]('.')[0x1]))&&this[_0x134b17(0x206)](_0x14f419);}async['sendTestFrameworkEvent'](_0x1b2182){const _0x52b4ec=a119_0x4f20d7,_0x3c55ec={'FXZki':function(_0x4ef1e6,_0x2f572d){return _0x4ef1e6(_0x2f572d);},'jwzsH':'../browserstackCLI.js','cgOIn':function(_0x12ad5b,_0x57485c){return _0x12ad5b===_0x57485c;},'mVsfr':_0x52b4ec(0x20e)};try{const _0x54708d=_0x3c55ec[_0x52b4ec(0x213)](require,_0x3c55ec[_0x52b4ec(0x23a)]),_0x5df2a4=_0x54708d[_0x52b4ec(0x270)]()[_0x52b4ec(0x23b)]()[_0x52b4ec(0x24a)](_0x1b2182);if(!_0x5df2a4||_0x3c55ec[_0x52b4ec(0x252)](Object[_0x52b4ec(0x240)](_0x5df2a4)[_0x52b4ec(0x1f8)],0x0)){this[_0x52b4ec(0x22d)][_0x52b4ec(0x1f3)](_0x3c55ec[_0x52b4ec(0x22f)]);return;}const _0x37382a=await GrpcClient['getInstance']()[_0x52b4ec(0x237)](_0x5df2a4);this[_0x52b4ec(0x22d)][_0x52b4ec(0x1f3)](_0x52b4ec(0x20a)+_0x5df2a4[_0x52b4ec(0x233)]+_0x52b4ec(0x1f6)+_0x5df2a4[_0x52b4ec(0x220)]);}catch(_0x3910e5){this['logger'][_0x52b4ec(0x22e)](_0x52b4ec(0x24e)+util['format'](_0x3910e5));}}async[a119_0x4f20d7(0x223)](_0x24e620){const _0x47dcc5=a119_0x4f20d7,_0x4b2bc5={'ZJTJM':function(_0x51af67,_0x3d1ca9){return _0x51af67===_0x3d1ca9;},'zyLgz':'capabilities','HigqV':function(_0x2801e4,_0x1ef94c){return _0x2801e4>_0x1ef94c;},'VrCjC':function(_0x15f524,_0x1476a6){return _0x15f524||_0x1476a6;},'OFrVS':function(_0x5a5680,_0x557755){return _0x5a5680===_0x557755;},'sAsiI':function(_0x11848b,_0x2a1765){return _0x11848b===_0x2a1765;},'InGXT':_0x47dcc5(0x228),'HajjH':function(_0xa7b2af,_0x292722){return _0xa7b2af===_0x292722;},'rcfbk':function(_0x5de406,_0xcc6e0b){return _0x5de406&&_0xcc6e0b;},'GbJSC':function(_0x3e06b0,_0x5844c0,_0x22c415){return _0x3e06b0(_0x5844c0,_0x22c415);},'WPlLw':function(_0x217a35){return _0x217a35();},'OvrDK':function(_0x1a0d98,_0x5404e5){return _0x1a0d98(_0x5404e5);},'sYAoG':function(_0x2a14dd,_0x4028ec){return _0x2a14dd(_0x4028ec);},'WDldo':_0x47dcc5(0x268),'WadAo':function(_0x4deaa9,_0x4d2cd0){return _0x4deaa9===_0x4d2cd0;},'ekzgD':function(_0x58111c,_0x44b2c5){return _0x58111c===_0x44b2c5;}};try{if(_0x24e620['page']){const _0x2abbf3=this['getTestId'](_0x24e620);this['logger'][_0x47dcc5(0x1f3)](_0x47dcc5(0x25b)+_0x2abbf3);if(this[_0x47dcc5(0x1f5)]&&_0x4b2bc5[_0x47dcc5(0x230)](this[_0x47dcc5(0x1f5)]['name'],FRAMEWORKS[_0x47dcc5(0x224)])&&!_0x24e620[_0x47dcc5(0x1fc)]){this[_0x47dcc5(0x22d)][_0x47dcc5(0x1f3)](_0x4b2bc5[_0x47dcc5(0x217)]);return;}let _0x29eff1,_0x3a168f;if(this[_0x47dcc5(0x1f5)]&&_0x4b2bc5[_0x47dcc5(0x230)](this['testFrameworkData']['name'],FRAMEWORKS[_0x47dcc5(0x23e)]))_0x29eff1=_0x2abbf3,_0x3a168f=TestInfo[_0x47dcc5(0x235)](_0x29eff1);else this[_0x47dcc5(0x1f5)]&&_0x4b2bc5['HajjH'](this['testFrameworkData'][_0x47dcc5(0x23f)],FRAMEWORKS[_0x47dcc5(0x224)])?(_0x29eff1=this[_0x47dcc5(0x262)][_0x47dcc5(0x274)](_0x24e620[_0x47dcc5(0x1fc)]),this['logger'][_0x47dcc5(0x1f3)]('onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20'+_0x29eff1)):(_0x29eff1=TestInfo[_0x47dcc5(0x21b)](_0x24e620[_0x47dcc5(0x1fc)],_0x24e620['testInfo'][_0x47dcc5(0x200)]),_0x3a168f=TestInfo[_0x47dcc5(0x235)](_0x29eff1));const _0xbd12d8=await TestInfo[_0x47dcc5(0x267)](_0x29eff1),_0x53f074=_0x24e620[_0x47dcc5(0x24f)],_0x58eeea=AutomationFramework['getState'](_0x53f074,PlaywrightDriverModule[_0x47dcc5(0x1ef)])||AutomationFramework['getState'](_0x53f074,PuppeteerDriverModule[_0x47dcc5(0x1ef)]),_0x2bf2f3=_0xbd12d8?.[TestFrameworkConstants[_0x47dcc5(0x266)]]||this['testFrameworkData']&&this[_0x47dcc5(0x1f5)][_0x47dcc5(0x23f)],_0x2274d9=_0xbd12d8?.[TestFrameworkConstants[_0x47dcc5(0x26a)]]||this[_0x47dcc5(0x1f5)]&&this[_0x47dcc5(0x1f5)][_0x47dcc5(0x20c)],_0x326651=TestFrameworkState['TEST'][_0x47dcc5(0x211)]()['split']('.')[0x1],_0x3e75d1=HookState[_0x47dcc5(0x272)]['toString']()[_0x47dcc5(0x26e)]('.')[0x1],_0xdcf067=_0x53f074[_0x47dcc5(0x26b)](),_0x4f5490=!!_0x53f074[_0x47dcc5(0x25f)]&&_0x4b2bc5[_0x47dcc5(0x204)](_0x53f074[_0x47dcc5(0x25f)][_0x47dcc5(0x273)](),FRAMEWORKS[_0x47dcc5(0x24d)]['toLowerCase']());let _0x147859=AutomationFramework[_0x47dcc5(0x25a)](_0x53f074,PlaywrightDriverModule[_0x47dcc5(0x244)],'')||AutomationFramework['getState'](_0x53f074,PuppeteerDriverModule['KEY_HUB_URL'],'');_0x4b2bc5['rcfbk'](!_0x147859,_0x4f5490)&&(_0x147859=PlaywrightDriverModule['resolveHubUrl'](_0x53f074,_0x24e620[_0x47dcc5(0x1fc)]));const _0x1952cc=LoadTestModule['isLTSSession']()?LoadTestModule['getLTSSessionId']():AutomationFramework[_0x47dcc5(0x25a)](_0x53f074,PlaywrightDriverModule[_0x47dcc5(0x1f0)],'')||AutomationFramework[_0x47dcc5(0x25a)](_0x53f074,PuppeteerDriverModule[_0x47dcc5(0x1f0)],''),_0x53df27={'provider':_0x4b2bc5[_0x47dcc5(0x26c)](getPlaywrightProvider,_0x147859,_0x4f5490),'frameworkName':_0x53f074['frameworkName'],'frameworkVersion':_0x53f074[_0x47dcc5(0x1f1)],'frameworkSessionId':_0x1952cc,'ref':_0x53f074['getRef'](),'hubUrl':_0x147859,'product':_0x4b2bc5[_0x47dcc5(0x241)](getProductForSession)};let _0x36d339=AutomationFramework[_0x47dcc5(0x25a)](_0x53f074,PlaywrightDriverModule['KEY_CAPABILITIES'],null)||AutomationFramework[_0x47dcc5(0x25a)](_0x53f074,PuppeteerDriverModule[_0x47dcc5(0x246)],null);const _0x165639=_0x108223=>{const _0x315a9d=_0x47dcc5,_0x1afa99={'rbjNT':function(_0xf84a37,_0x189cff){const _0x3661eb=a119_0x3a83;return _0x4b2bc5[_0x3661eb(0x222)](_0xf84a37,_0x189cff);},'WkmCS':function(_0x47a225,_0x2c0a5f){const _0x4d719f=a119_0x3a83;return _0x4b2bc5[_0x4d719f(0x222)](_0x47a225,_0x2c0a5f);},'dREOY':_0x4b2bc5[_0x315a9d(0x26f)],'FBtey':function(_0xa7e3d6,_0x12ba80){const _0x2cab9a=_0x315a9d;return _0x4b2bc5[_0x2cab9a(0x1fb)](_0xa7e3d6,_0x12ba80);},'YvcWc':function(_0x206294,_0x16470c){const _0x592c38=_0x315a9d;return _0x4b2bc5[_0x592c38(0x210)](_0x206294,_0x16470c);}};if(!_0x108223)return!![];const _0x54c5f7=Object['entries'](_0x108223)[_0x315a9d(0x232)](([_0x2452c7,_0x5e5b0e])=>{const _0x1f7381=_0x315a9d;if(_0x1afa99[_0x1f7381(0x263)](_0x5e5b0e,undefined)||_0x1afa99[_0x1f7381(0x22a)](_0x5e5b0e,null))return![];if(_0x1afa99[_0x1f7381(0x22a)](_0x2452c7,_0x1afa99[_0x1f7381(0x205)]))return _0x1afa99[_0x1f7381(0x25c)](Object[_0x1f7381(0x240)](_0x1afa99[_0x1f7381(0x25d)](_0x5e5b0e,{}))[_0x1f7381(0x1f8)],0x0);return!![];});return _0x4b2bc5[_0x315a9d(0x243)](_0x54c5f7[_0x315a9d(0x1f8)],0x0);};if(_0x4b2bc5['OvrDK'](_0x165639,_0x36d339)){const _0x540a20=PlaywrightSessionDetails[_0x47dcc5(0x24c)]();!_0x4b2bc5['sYAoG'](_0x165639,_0x540a20)&&(_0x36d339=_0x540a20,AutomationFramework[_0x47dcc5(0x23c)](_0x53f074,PlaywrightDriverModule['KEY_CAPABILITIES'],_0x540a20));}const _0x3cd671=_0x36d339?Buffer[_0x47dcc5(0x249)](JSON[_0x47dcc5(0x203)](_0x36d339))[_0x47dcc5(0x211)](_0x4b2bc5[_0x47dcc5(0x202)]):null,_0x21bf89={'hash':_0xdcf067['getId'](),'threadId':_0xdcf067[_0x47dcc5(0x20b)]()[_0x47dcc5(0x211)](),'processId':_0xdcf067[_0x47dcc5(0x20f)]()[_0x47dcc5(0x211)]()},_0x2dfae1={};_0x2dfae1[_0x47dcc5(0x218)]=_0x29eff1;const _0x40589c={};_0x40589c[_0x47dcc5(0x212)]=_0x3a168f;const _0x114f04={'platformIndex':_0x58eeea,'testFrameworkName':_0x2bf2f3,'testFrameworkVersion':_0x2274d9,'testFrameworkState':_0x326651,'testHookState':_0x3e75d1,...this[_0x47dcc5(0x1f5)]&&_0x4b2bc5[_0x47dcc5(0x209)](this['testFrameworkData'][_0x47dcc5(0x23f)],FRAMEWORKS[_0x47dcc5(0x224)])?_0x2dfae1:_0x40589c,'automationSession':_0x53df27,'capabilities':_0x3cd671,'executionContext':_0x21bf89};this[_0x47dcc5(0x22d)][_0x47dcc5(0x1f3)](_0x47dcc5(0x265)+util['format'](_0x114f04));const _0x18f9be=await GrpcClient[_0x47dcc5(0x270)]()[_0x47dcc5(0x22c)](_0x114f04);this[_0x47dcc5(0x22d)][_0x47dcc5(0x1f3)](_0x47dcc5(0x226)+_0x2abbf3+(this[_0x47dcc5(0x1f5)]&&_0x4b2bc5['ekzgD'](this[_0x47dcc5(0x1f5)][_0x47dcc5(0x23f)],FRAMEWORKS[_0x47dcc5(0x224)])?_0x47dcc5(0x239)+_0x29eff1:''));}}catch(_0x5c572c){this['logger'][_0x47dcc5(0x22e)](_0x47dcc5(0x1ee)+util[_0x47dcc5(0x225)](_0x5c572c));}}}TestHubModule[a119_0x4f20d7(0x219)]=a119_0x4f20d7(0x260),TestHubModule['KEY_TEST_DEFERRED']=a119_0x4f20d7(0x271),module['exports']=TestHubModule;
|
|
@@ -1 +1 @@
|
|
|
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
|
+
'use strict';const a120_0x47e679=a120_0x5be0;(function(_0x395337,_0x424277){const _0x5f59a7=a120_0x5be0,_0x461f90=_0x395337();while(!![]){try{const _0x26db73=parseInt(_0x5f59a7(0x1aa))/0x1+parseInt(_0x5f59a7(0x16d))/0x2*(-parseInt(_0x5f59a7(0x17c))/0x3)+parseInt(_0x5f59a7(0x168))/0x4+parseInt(_0x5f59a7(0x1a1))/0x5*(parseInt(_0x5f59a7(0x191))/0x6)+parseInt(_0x5f59a7(0x192))/0x7*(parseInt(_0x5f59a7(0x18b))/0x8)+-parseInt(_0x5f59a7(0x1b3))/0x9+-parseInt(_0x5f59a7(0x1b7))/0xa*(parseInt(_0x5f59a7(0x1b6))/0xb);if(_0x26db73===_0x424277)break;else _0x461f90['push'](_0x461f90['shift']());}catch(_0xfbed59){_0x461f90['push'](_0x461f90['shift']());}}}(a120_0x478a,0xc7050));function a120_0x5be0(_0x13f8c5,_0x3e54f9){const _0x478ac0=a120_0x478a();return a120_0x5be0=function(_0x5be0a7,_0xaecf34){_0x5be0a7=_0x5be0a7-0x15d;let _0x2c1da9=_0x478ac0[_0x5be0a7];return _0x2c1da9;},a120_0x5be0(_0x13f8c5,_0x3e54f9);}function a120_0x478a(){const _0x4602be=['DGGDg','HqfwD','YAApA','runStateStore:\x20flushing\x20','\x20was\x20truncated\x20by\x20the\x20binary\x20(','927301aHbepi','getBuildState','error','get','_keyChainSize','assign','fetchRunState','\x20failed\x20(','runStateStore:\x20fetch\x20','10384911RBSmbw','DEEP_MERGE','appendTestState','5649886eUGBPP','20kTSZqn','push','runStateStore:\x20flush\x20of\x20','setTestState','\x20rejected\x20(','fumOs','MzwZw','),\x20dropping\x20this\x20delta\x20and\x20keeping\x20','ZSJjD','object','runStateStore:\x20append\x20','join','mode','),\x20dropping\x20the\x20entry','nothing','../../helpers/logger','),\x20dropping\x20the\x20value','set','1186744Wgpfxb','getInstance','then','Zboqf','isArray','85612COcYQP','winstonLogger','APPEND','acked','JGxiz','setBuildState','truncated','tUlJm','delete','WXenZ','xNVDD','REPLACE','\x20not\x20acked\x20by\x20binary,\x20holding\x20','\x20key(s)\x20still\x20held\x20in-memory','resolve','21sCxVnF','size','\x20not\x20acked\x20by\x20binary,\x20keeping\x20value\x20in-memory','ZCXui','XzDyF','RhWiM','concat','split','getTestState','\x20not\x20acked\x20by\x20binary,\x20accumulating\x20the\x20delta\x20in-memory','clear','_clearLocalFallback','message','forEach','value','38800obPOze','runStateStore:\x20publish\x20','NkBGN','terminal','UAokE','xGLbk','2844ttjxJA','2149LXSzSt','EFNiV','mergeTestState','\x20entr(y/ies)\x20in-memory','./grpcClient','SKXpq','pjpmy','keys','debug','publish\x20threw','\x20refused\x20by\x20binary\x20(','appendBuildState','length','fieru','ClGTW','6150whSOAd','lvHeK','mergeDelta','flushPending'];a120_0x478a=function(){return _0x4602be;};return a120_0x478a();}const GrpcClient=require(a120_0x47e679(0x196)),logger=require(a120_0x47e679(0x165))[a120_0x47e679(0x16e)],SCOPE_TEST='TEST',SCOPE_BUILD='BUILD',localReplaceFallback=new Map(),localAppendBuffer=new Map(),localMergeBuffer=new Map(),keyChains=new Map(),isPlainObject=_0x4cd3b1=>_0x4cd3b1!==null&&typeof _0x4cd3b1===a120_0x47e679(0x15f)&&!Array[a120_0x47e679(0x16c)](_0x4cd3b1),mergeDelta=(_0x4512a2,_0x12483d)=>{const _0x4b057a=a120_0x47e679,_0x5d2c7f={'DGGDg':function(_0x1e7349,_0x4ff31f){return _0x1e7349(_0x4ff31f);},'ClGTW':function(_0x498fb2,_0x2fa60a){return _0x498fb2(_0x2fa60a);},'EFNiV':function(_0x320bc1,_0x1a02db,_0x26627b){return _0x320bc1(_0x1a02db,_0x26627b);},'swKSa':function(_0x5d2508,_0x307c0c){return _0x5d2508(_0x307c0c);}},_0x2f89db=Object[_0x4b057a(0x1af)]({},_0x5d2c7f['ClGTW'](isPlainObject,_0x4512a2)?_0x4512a2:{});if(!_0x5d2c7f['swKSa'](isPlainObject,_0x12483d))return _0x2f89db;return Object[_0x4b057a(0x199)](_0x12483d)[_0x4b057a(0x189)](_0x29a7c4=>{const _0x175128=_0x4b057a;_0x2f89db[_0x29a7c4]=_0x5d2c7f[_0x175128(0x1a5)](isPlainObject,_0x2f89db[_0x29a7c4])&&_0x5d2c7f[_0x175128(0x1a0)](isPlainObject,_0x12483d[_0x29a7c4])?_0x5d2c7f[_0x175128(0x193)](mergeDelta,_0x2f89db[_0x29a7c4],_0x12483d[_0x29a7c4]):_0x12483d[_0x29a7c4];}),_0x2f89db;},localKey=(_0x431184,_0x33d517,_0x21c9f3)=>_0x431184===SCOPE_TEST?_0x431184+':'+_0x21c9f3+':'+_0x33d517:_0x431184+':'+_0x33d517,rpcPublish=async(_0x57693d,_0xdf4951,_0x1d5b11,_0x4928c4,_0x2bf411)=>{const _0xe8953d=a120_0x47e679,_0x5332ea={};_0x5332ea[_0xe8953d(0x18d)]=_0xe8953d(0x19b);const _0x4368a7=_0x5332ea;try{return await GrpcClient['getInstance']()['publishRunState'](_0x57693d,_0xdf4951,_0x1d5b11,_0x4928c4,_0x2bf411);}catch(_0x103309){logger[_0xe8953d(0x19a)](_0xe8953d(0x18c)+_0x57693d+':'+_0xdf4951+_0xe8953d(0x1bb)+(_0x103309&&_0x103309[_0xe8953d(0x188)])+'),\x20treating\x20as\x20un-acked');const _0x2b9ec3={};return _0x2b9ec3[_0xe8953d(0x170)]=![],_0x2b9ec3[_0xe8953d(0x18e)]=![],_0x2b9ec3[_0xe8953d(0x1ac)]=_0x103309&&_0x103309['message']||_0x4368a7[_0xe8953d(0x18d)],_0x2b9ec3;}},chained=(_0x294f47,_0x16be88)=>{const _0x3e3eae=a120_0x47e679,_0x68493a={};_0x68493a['pjpmy']=function(_0x22db53,_0x32a9d3){return _0x22db53===_0x32a9d3;};const _0x173e02=_0x68493a,_0x264d4f=keyChains[_0x3e3eae(0x1ad)](_0x294f47)||Promise[_0x3e3eae(0x17b)](),_0xc17c2e=_0x264d4f['then'](_0x16be88,_0x16be88),_0x41a1fd=_0xc17c2e['then'](()=>{},()=>{});return keyChains['set'](_0x294f47,_0x41a1fd),_0x41a1fd[_0x3e3eae(0x16a)](()=>{const _0x77df=_0x3e3eae;_0x173e02[_0x77df(0x198)](keyChains['get'](_0x294f47),_0x41a1fd)&&keyChains['delete'](_0x294f47);}),_0xc17c2e;},publish=(_0x122628,_0x52ca23,_0x31b5bf,_0x63c78d,_0x3e778c)=>chained(localKey(_0x122628,_0x52ca23,_0x31b5bf),async()=>{const _0x3db47f=a120_0x47e679,_0xcab3dc={'HqfwD':function(_0x475487,_0xe8332d,_0x41ed66,_0x4f5820){return _0x475487(_0xe8332d,_0x41ed66,_0x4f5820);},'SKXpq':function(_0x13dd03,_0x5b8e58){return _0x13dd03===_0x5b8e58;},'fumOs':_0x3db47f(0x16f),'WXenZ':function(_0x1a3a4e,_0x132331){return _0x1a3a4e<_0x132331;},'HCHer':function(_0x49314c,_0x2532c0){return _0x49314c===_0x2532c0;},'ZCXui':function(_0x49f634,_0x4e5325){return _0x49f634-_0x4e5325;},'fieru':function(_0xf1f6f8,_0x2ac471){return _0xf1f6f8>_0x2ac471;},'ZSJjD':function(_0x5b64de,_0x74302f,_0x4b9de3,_0x2f282c,_0x1b79e6,_0x44312c){return _0x5b64de(_0x74302f,_0x4b9de3,_0x2f282c,_0x1b79e6,_0x44312c);},'UAokE':_0x3db47f(0x1b4),'iKscq':function(_0xf31321,_0x4d9e53,_0x687746){return _0xf31321(_0x4d9e53,_0x687746);},'Zboqf':'the\x20earlier\x20accumulation','xGLbk':_0x3db47f(0x164),'xNVDD':function(_0x22c1e7,_0x3342a2,_0x162fe1,_0x8c7b1f,_0x1a00ca,_0x3cf289){return _0x22c1e7(_0x3342a2,_0x162fe1,_0x8c7b1f,_0x1a00ca,_0x3cf289);}},_0x4c807e=_0xcab3dc[_0x3db47f(0x1a6)](localKey,_0x122628,_0x52ca23,_0x31b5bf);if(_0xcab3dc[_0x3db47f(0x197)](_0x3e778c,_0xcab3dc['fumOs'])){const _0x7aa37a=localAppendBuffer[_0x3db47f(0x1ad)](_0x4c807e)||[],_0x1b48fd=_0x7aa37a[_0x3db47f(0x182)]([_0x63c78d]),_0x3fdff7=[];let _0x550e6a=![];for(let _0x4bf5c8=0x0;_0xcab3dc[_0x3db47f(0x176)](_0x4bf5c8,_0x1b48fd[_0x3db47f(0x19e)]);_0x4bf5c8++){const _0x14a95d=_0xcab3dc['HCHer'](_0x4bf5c8,_0xcab3dc[_0x3db47f(0x17f)](_0x1b48fd[_0x3db47f(0x19e)],0x1));if(_0xcab3dc[_0x3db47f(0x19f)](_0x3fdff7['length'],0x0)){_0x3fdff7[_0x3db47f(0x1b8)](_0x1b48fd[_0x4bf5c8]);continue;}const _0x47019c=await _0xcab3dc[_0x3db47f(0x15e)](rpcPublish,_0x122628,_0x52ca23,_0x31b5bf,_0x1b48fd[_0x4bf5c8],_0xcab3dc[_0x3db47f(0x1bc)]);if(_0x47019c['terminal'])logger['debug'](_0x3db47f(0x160)+_0x122628+':'+_0x52ca23+_0x3db47f(0x19c)+_0x47019c[_0x3db47f(0x1ac)]+_0x3db47f(0x163));else{if(_0x47019c['truncated'])logger[_0x3db47f(0x19a)]('runStateStore:\x20append\x20'+_0x122628+':'+_0x52ca23+_0x3db47f(0x1a9)+_0x47019c[_0x3db47f(0x1ac)]+_0x3db47f(0x163));else{if(!_0x47019c[_0x3db47f(0x170)])_0x3fdff7[_0x3db47f(0x1b8)](_0x1b48fd[_0x4bf5c8]);else _0x14a95d&&(_0x550e6a=!![]);}}}return _0xcab3dc['fieru'](_0x3fdff7[_0x3db47f(0x19e)],0x0)?(logger['debug']('runStateStore:\x20append\x20'+_0x122628+':'+_0x52ca23+_0x3db47f(0x179)+_0x3fdff7['length']+_0x3db47f(0x195)),localAppendBuffer[_0x3db47f(0x167)](_0x4c807e,_0x3fdff7)):localAppendBuffer['delete'](_0x4c807e),_0x550e6a;}if(_0xcab3dc[_0x3db47f(0x197)](_0x3e778c,_0xcab3dc[_0x3db47f(0x18f)])){const _0x1d2d65=localMergeBuffer[_0x3db47f(0x1ad)](_0x4c807e),_0x295a88=_0x1d2d65?_0xcab3dc['iKscq'](mergeDelta,_0x1d2d65,_0x63c78d):_0x63c78d,_0x491416=await _0xcab3dc['ZSJjD'](rpcPublish,_0x122628,_0x52ca23,_0x31b5bf,_0x295a88,_0xcab3dc['UAokE']);if(_0x491416['terminal'])return logger[_0x3db47f(0x19a)]('runStateStore:\x20merge\x20'+_0x122628+':'+_0x52ca23+_0x3db47f(0x19c)+_0x491416[_0x3db47f(0x1ac)]+_0x3db47f(0x15d)+(_0x1d2d65?_0xcab3dc[_0x3db47f(0x16b)]:_0xcab3dc[_0x3db47f(0x190)])),_0x1d2d65?localMergeBuffer[_0x3db47f(0x167)](_0x4c807e,_0x1d2d65):localMergeBuffer[_0x3db47f(0x175)](_0x4c807e),![];return _0x491416[_0x3db47f(0x173)]&&logger['debug']('runStateStore:\x20merge\x20'+_0x122628+':'+_0x52ca23+_0x3db47f(0x1a9)+_0x491416[_0x3db47f(0x1ac)]+')'),!_0x491416['acked']?(logger['debug']('runStateStore:\x20merge\x20'+_0x122628+':'+_0x52ca23+_0x3db47f(0x185)),localMergeBuffer[_0x3db47f(0x167)](_0x4c807e,_0x295a88)):localMergeBuffer[_0x3db47f(0x175)](_0x4c807e),_0x491416['acked'];}const _0x569b6a=await _0xcab3dc[_0x3db47f(0x177)](rpcPublish,_0x122628,_0x52ca23,_0x31b5bf,_0x63c78d,_0x3e778c);_0x569b6a[_0x3db47f(0x173)]&&logger[_0x3db47f(0x19a)](_0x3db47f(0x18c)+_0x122628+':'+_0x52ca23+_0x3db47f(0x1a9)+_0x569b6a['error']+')');if(_0x569b6a[_0x3db47f(0x18e)])return logger[_0x3db47f(0x19a)](_0x3db47f(0x18c)+_0x122628+':'+_0x52ca23+_0x3db47f(0x19c)+_0x569b6a['error']+_0x3db47f(0x166)),localReplaceFallback[_0x3db47f(0x175)](_0x4c807e),![];return!_0x569b6a[_0x3db47f(0x170)]?(logger[_0x3db47f(0x19a)](_0x3db47f(0x18c)+_0x122628+':'+_0x52ca23+_0x3db47f(0x17e)),localReplaceFallback['set'](_0x4c807e,_0x63c78d)):localReplaceFallback[_0x3db47f(0x175)](_0x4c807e),_0x569b6a[_0x3db47f(0x170)];}),fetch=(_0x125e5a,_0x4c896b,_0x4d0001)=>chained(localKey(_0x125e5a,_0x4c896b,_0x4d0001),async()=>{const _0x102666=a120_0x47e679,_0x2f1c7e={'YUFur':function(_0x352c97,_0x57169d,_0xb60998,_0x5a5c41){return _0x352c97(_0x57169d,_0xb60998,_0x5a5c41);},'aWUGR':function(_0x598c0d,_0x46aea1){return _0x598c0d>_0x46aea1;},'XzDyF':function(_0x19d29f,_0x316c77,_0x251e41){return _0x19d29f(_0x316c77,_0x251e41);},'JGxiz':function(_0xd09092,_0x52a2de){return _0xd09092!==_0x52a2de;}},_0x2947b9=_0x2f1c7e['YUFur'](localKey,_0x125e5a,_0x4c896b,_0x4d0001);let _0x390205;try{_0x390205=await GrpcClient[_0x102666(0x169)]()[_0x102666(0x1b0)](_0x125e5a,_0x4c896b,_0x4d0001);}catch(_0x16b242){logger['debug'](_0x102666(0x1b2)+_0x125e5a+':'+_0x4c896b+_0x102666(0x1bb)+(_0x16b242&&_0x16b242['message'])+'),\x20serving\x20in-memory\x20state'),_0x390205=undefined;}const _0x411366=localAppendBuffer[_0x102666(0x1ad)](_0x2947b9);if(_0x411366&&_0x2f1c7e['aWUGR'](_0x411366[_0x102666(0x19e)],0x0)){const _0xa8d142=Array['isArray'](_0x390205)?_0x390205:[];return _0xa8d142[_0x102666(0x182)](_0x411366);}const _0x281122=localMergeBuffer[_0x102666(0x1ad)](_0x2947b9);if(_0x281122)return _0x2f1c7e[_0x102666(0x180)](mergeDelta,_0x390205,_0x281122);if(_0x2f1c7e[_0x102666(0x171)](_0x390205,undefined))return _0x390205;return localReplaceFallback[_0x102666(0x1ad)](_0x2947b9);});exports[a120_0x47e679(0x1ba)]=(_0x14b831,_0x4ccffc,_0x2710da)=>publish(SCOPE_TEST,_0x14b831,_0x4ccffc,_0x2710da,'REPLACE'),exports[a120_0x47e679(0x194)]=(_0x4343d3,_0xb87bf7,_0x420606)=>publish(SCOPE_TEST,_0x4343d3,_0xb87bf7,_0x420606,a120_0x47e679(0x1b4)),exports[a120_0x47e679(0x1b5)]=(_0x56ee60,_0x4085cc,_0x5798ec)=>publish(SCOPE_TEST,_0x56ee60,_0x4085cc,_0x5798ec,a120_0x47e679(0x16f)),exports[a120_0x47e679(0x184)]=(_0x32e440,_0x4b8728)=>fetch(SCOPE_TEST,_0x32e440,_0x4b8728),exports[a120_0x47e679(0x172)]=(_0x5c439e,_0x2872d0)=>publish(SCOPE_BUILD,_0x5c439e,'',_0x2872d0,a120_0x47e679(0x178)),exports[a120_0x47e679(0x19d)]=(_0x348bb2,_0x16bcbe)=>publish(SCOPE_BUILD,_0x348bb2,'',_0x16bcbe,'APPEND'),exports[a120_0x47e679(0x1ab)]=_0x3c91b9=>fetch(SCOPE_BUILD,_0x3c91b9),exports[a120_0x47e679(0x1a4)]=async()=>{const _0x5956db=a120_0x47e679,_0x31b05e={'lvHeK':function(_0x5f07c9,_0x448049){return _0x5f07c9===_0x448049;},'JfVFU':function(_0x3159a9,_0x62894e){return _0x3159a9===_0x62894e;},'RhWiM':function(_0x26374d,_0xfe841c){return _0x26374d===_0xfe841c;},'YAApA':function(_0x254e7b,_0x4488df){return _0x254e7b===_0x4488df;},'MzwZw':_0x5956db(0x16f),'tUlJm':function(_0xa23c8a,_0x31b88e,_0x18bf59,_0x4de20d,_0x37d068,_0x45b752){return _0xa23c8a(_0x31b88e,_0x18bf59,_0x4de20d,_0x37d068,_0x45b752);},'YbgSI':_0x5956db(0x1b4)},_0x43aeff=[];localMergeBuffer['forEach']((_0x27ec23,_0x4dd77c)=>_0x43aeff['push']({'lk':_0x4dd77c,'delta':_0x27ec23,'mode':_0x5956db(0x1b4)})),localReplaceFallback[_0x5956db(0x189)]((_0x3a1b57,_0x31d224)=>_0x43aeff[_0x5956db(0x1b8)]({'lk':_0x31d224,'value':_0x3a1b57,'mode':_0x5956db(0x178)})),localAppendBuffer['forEach']((_0x313403,_0x2964a0)=>_0x43aeff[_0x5956db(0x1b8)]({'lk':_0x2964a0,'entries':_0x313403,'mode':_0x5956db(0x16f)}));if(_0x31b05e[_0x5956db(0x1a2)](_0x43aeff['length'],0x0))return 0x0;logger[_0x5956db(0x19a)](_0x5956db(0x1a8)+_0x43aeff[_0x5956db(0x19e)]+_0x5956db(0x17a));let _0x1d9931=0x0;for(const _0x2dbdc5 of _0x43aeff){const [_0x1a169c,_0x2ffc37,..._0x494608]=_0x2dbdc5['lk'][_0x5956db(0x183)](':'),_0x2e04f1=_0x31b05e['JfVFU'](_0x1a169c,SCOPE_TEST)?_0x2ffc37:'',_0x2b14b0=_0x31b05e['RhWiM'](_0x1a169c,SCOPE_TEST)?_0x494608[_0x5956db(0x161)](':'):_0x2ffc37;try{if(_0x31b05e[_0x5956db(0x1a7)](_0x2dbdc5[_0x5956db(0x162)],_0x31b05e[_0x5956db(0x1bd)])){const _0x2623be=localAppendBuffer[_0x5956db(0x1ad)](_0x2dbdc5['lk'])||[];localAppendBuffer[_0x5956db(0x175)](_0x2dbdc5['lk']);for(const _0x111f92 of _0x2623be){await _0x31b05e[_0x5956db(0x174)](publish,_0x1a169c,_0x2b14b0,_0x2e04f1,_0x111f92,_0x31b05e[_0x5956db(0x1bd)])&&(_0x1d9931+=0x1);}}else await _0x31b05e[_0x5956db(0x174)](publish,_0x1a169c,_0x2b14b0,_0x2e04f1,_0x31b05e[_0x5956db(0x181)](_0x2dbdc5[_0x5956db(0x162)],_0x31b05e['YbgSI'])?_0x2dbdc5['delta']:_0x2dbdc5[_0x5956db(0x18a)],_0x2dbdc5[_0x5956db(0x162)])&&(_0x1d9931+=0x1);}catch(_0x46825c){logger[_0x5956db(0x19a)](_0x5956db(0x1b9)+_0x2dbdc5['lk']+_0x5956db(0x1b1)+(_0x46825c&&_0x46825c['message'])+')');}}return _0x1d9931;},exports[a120_0x47e679(0x187)]=()=>{const _0x58a998=a120_0x47e679;localReplaceFallback[_0x58a998(0x186)](),localAppendBuffer[_0x58a998(0x186)](),localMergeBuffer[_0x58a998(0x186)](),keyChains['clear']();},exports[a120_0x47e679(0x1ae)]=()=>keyChains[a120_0x47e679(0x17d)],exports[a120_0x47e679(0x1a3)]=mergeDelta;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121_0x3e5131=a121_0x9e3e;(function(_0x1f1fb6,_0x163016){const _0x27d5ca=a121_0x9e3e,_0x12595c=_0x1f1fb6();while(!![]){try{const _0x31886f=-parseInt(_0x27d5ca(0x140))/0x1+-parseInt(_0x27d5ca(0x11a))/0x2+-parseInt(_0x27d5ca(0x11e))/0x3*(-parseInt(_0x27d5ca(0x126))/0x4)+-parseInt(_0x27d5ca(0x113))/0x5+-parseInt(_0x27d5ca(0x13c))/0x6*(-parseInt(_0x27d5ca(0x12d))/0x7)+-parseInt(_0x27d5ca(0x12f))/0x8*(parseInt(_0x27d5ca(0x10e))/0x9)+parseInt(_0x27d5ca(0x125))/0xa;if(_0x31886f===_0x163016)break;else _0x12595c['push'](_0x12595c['shift']());}catch(_0x1e2504){_0x12595c['push'](_0x12595c['shift']());}}}(a121_0x79e6,0x26571));const grpc=require(a121_0x3e5131(0x12b)),a121_0x590131={};a121_0x590131[a121_0x3e5131(0x119)]=a121_0x3e5131(0x133),a121_0x590131['AUTH_FAILED']='auth_failed',a121_0x590131[a121_0x3e5131(0x13f)]='timeout',a121_0x590131[a121_0x3e5131(0x135)]='invalid_request',a121_0x590131[a121_0x3e5131(0x12e)]='server_failure',a121_0x590131[a121_0x3e5131(0x115)]=a121_0x3e5131(0x127);function a121_0x79e6(){const _0x998ed8=['UNAUTHENTICATED','937995gRKWdQ','status','UNKNOWN','YyPOz','\x20(rpc=','dQFVC','BINARY_UNREACHABLE','383580IzmUYz','The\x20BrowserStack\x20helper\x20hit\x20an\x20internal\x20error.\x20Tests\x20will\x20continue;\x20BrowserStack\x20features\x20may\x20be\x20degraded\x20-\x20please\x20retry.','INTERNAL','PERMISSION_DENIED','3aengdq','handle','code','message','[BrowserStack]\x20gRPC\x20raw:\x20rpc=','RESOURCE_EXHAUSTED','classify','4609630ybaXuc','698752WzWzsD','unknown','warn','messageFor','number','@grpc/grpc-js','exports','7knFeDG','SERVER_FAILURE','19704bhCwyu','UNIMPLEMENTED','BUCKETS','AUTH_FAILED','binary_unreachable','UNAVAILABLE','INVALID_REQUEST','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.','CANCELLED','FAILED_PRECONDITION','Unexpected\x20error\x20talking\x20to\x20the\x20BrowserStack\x20helper.\x20Please\x20report\x20this\x20with\x20the\x20test\x20logs.','TPfWz','NOT_FOUND','866418cOibTJ','function','ABORTED','TIMEOUT','100770TukJMJ','DATA_LOSS','details','BrowserStack\x20authentication\x20failed.\x20Verify\x20BROWSERSTACK_USERNAME\x20/\x20BROWSERSTACK_ACCESS_KEY\x20(env\x20or\x20browserstack.yml).','BrowserStack\x20SDK\x20sent\x20an\x20unexpected\x20request\x20to\x20its\x20helper.\x20Please\x20report\x20this\x20with\x20the\x20test\x20logs.','ZdQpo','522AONuGx','aJzvG','fQofU','DEADLINE_EXCEEDED'];a121_0x79e6=function(){return _0x998ed8;};return a121_0x79e6();}const BUCKETS=a121_0x590131,a121_0x245bd7={[BUCKETS['BINARY_UNREACHABLE']]:a121_0x3e5131(0x136),[BUCKETS[a121_0x3e5131(0x132)]]:a121_0x3e5131(0x143),[BUCKETS[a121_0x3e5131(0x13f)]]:'The\x20BrowserStack\x20helper\x20did\x20not\x20respond\x20in\x20time.\x20Usually\x20a\x20transient\x20network\x20slowdown\x20-\x20retry\x20the\x20test.',[BUCKETS[a121_0x3e5131(0x135)]]:a121_0x3e5131(0x10c),[BUCKETS[a121_0x3e5131(0x12e)]]:a121_0x3e5131(0x11b),[BUCKETS[a121_0x3e5131(0x115)]]:a121_0x3e5131(0x139)},MESSAGES=a121_0x245bd7;function classify(_0x18472f){const _0xd21f1a=a121_0x3e5131,_0x32f0a4={};_0x32f0a4[_0xd21f1a(0x116)]=function(_0x4499a7,_0x1f3070){return _0x4499a7!==_0x1f3070;},_0x32f0a4[_0xd21f1a(0x118)]=_0xd21f1a(0x12a);const _0x2e3dd6=_0x32f0a4;if(!_0x18472f)return BUCKETS['UNKNOWN'];const _0x2568b8=_0x18472f['code'];if(_0x2e3dd6[_0xd21f1a(0x116)](typeof _0x2568b8,_0x2e3dd6[_0xd21f1a(0x118)]))return BUCKETS['UNKNOWN'];switch(_0x2568b8){case grpc[_0xd21f1a(0x114)][_0xd21f1a(0x134)]:case grpc[_0xd21f1a(0x114)][_0xd21f1a(0x137)]:return BUCKETS['BINARY_UNREACHABLE'];case grpc[_0xd21f1a(0x114)][_0xd21f1a(0x112)]:case grpc[_0xd21f1a(0x114)][_0xd21f1a(0x11d)]:return BUCKETS[_0xd21f1a(0x132)];case grpc['status'][_0xd21f1a(0x111)]:return BUCKETS[_0xd21f1a(0x13f)];case grpc[_0xd21f1a(0x114)]['INVALID_ARGUMENT']:case grpc[_0xd21f1a(0x114)][_0xd21f1a(0x13b)]:case grpc[_0xd21f1a(0x114)]['OUT_OF_RANGE']:case grpc[_0xd21f1a(0x114)]['ALREADY_EXISTS']:case grpc[_0xd21f1a(0x114)][_0xd21f1a(0x138)]:return BUCKETS['INVALID_REQUEST'];case grpc[_0xd21f1a(0x114)][_0xd21f1a(0x11c)]:case grpc[_0xd21f1a(0x114)][_0xd21f1a(0x115)]:case grpc['status'][_0xd21f1a(0x141)]:case grpc['status'][_0xd21f1a(0x13e)]:case grpc['status'][_0xd21f1a(0x123)]:case grpc[_0xd21f1a(0x114)][_0xd21f1a(0x130)]:return BUCKETS[_0xd21f1a(0x12e)];default:return BUCKETS['UNKNOWN'];}}function messageFor(_0x525ac8){return MESSAGES[_0x525ac8]||MESSAGES[BUCKETS['UNKNOWN']];}function handle(_0x4cbfec,_0x5b248e,_0x4c5508,_0x4ba684=a121_0x3e5131(0x128)){const _0x216b8f=a121_0x3e5131,_0x3efaad={'aJzvG':function(_0x145f45,_0x35ec47){return _0x145f45(_0x35ec47);},'TPfWz':function(_0x5156fe,_0x3c2b18){return _0x5156fe===_0x3c2b18;},'fQofU':_0x216b8f(0x13d),'ZdQpo':_0x216b8f(0x12a)},_0x5557e5=_0x3efaad[_0x216b8f(0x10f)](classify,_0x5b248e),_0x434300='[BrowserStack]\x20'+_0x3efaad['aJzvG'](messageFor,_0x5557e5)+_0x216b8f(0x117)+_0x4cbfec+')';try{_0x3efaad['TPfWz'](typeof _0x4c5508[_0x4ba684],_0x3efaad[_0x216b8f(0x110)])?_0x4c5508[_0x4ba684](_0x434300):_0x4c5508[_0x216b8f(0x128)](_0x434300);}catch(_0x56772b){}try{const _0x42dd40=_0x5b248e&&_0x3efaad[_0x216b8f(0x13a)](typeof _0x5b248e[_0x216b8f(0x120)],_0x3efaad[_0x216b8f(0x10d)])?_0x5b248e[_0x216b8f(0x120)]:null,_0x103e71=_0x5b248e&&_0x5b248e[_0x216b8f(0x142)]?_0x5b248e['details']:_0x5b248e&&_0x5b248e[_0x216b8f(0x121)]?_0x5b248e[_0x216b8f(0x121)]:_0x3efaad[_0x216b8f(0x10f)](String,_0x5b248e);_0x4c5508['debug'](_0x216b8f(0x122)+_0x4cbfec+'\x20bucket='+_0x5557e5+'\x20code='+_0x42dd40+'\x20details='+_0x103e71);}catch(_0x46af71){}return _0x5557e5;}function a121_0x9e3e(_0xb5c5f4,_0xb17df3){const _0x79e620=a121_0x79e6();return a121_0x9e3e=function(_0x9e3ef2,_0x56b1f8){_0x9e3ef2=_0x9e3ef2-0x10c;let _0x45daa6=_0x79e620[_0x9e3ef2];return _0x45daa6;},a121_0x9e3e(_0xb5c5f4,_0xb17df3);}const a121_0x3d09fb={};a121_0x3d09fb[a121_0x3e5131(0x131)]=BUCKETS,a121_0x3d09fb[a121_0x3e5131(0x124)]=classify,a121_0x3d09fb[a121_0x3e5131(0x129)]=messageFor,a121_0x3d09fb[a121_0x3e5131(0x11f)]=handle,module[a121_0x3e5131(0x12c)]=a121_0x3d09fb;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122_0x1a238e=a122_0xf07f;(function(_0x69ff3,_0x5a4ea8){const _0x2fc081=a122_0xf07f,_0x2c67a2=_0x69ff3();while(!![]){try{const _0x5668c8=-parseInt(_0x2fc081(0x1ab))/0x1*(parseInt(_0x2fc081(0x1af))/0x2)+-parseInt(_0x2fc081(0x1ae))/0x3+parseInt(_0x2fc081(0x19b))/0x4+parseInt(_0x2fc081(0x1b1))/0x5*(parseInt(_0x2fc081(0x19f))/0x6)+parseInt(_0x2fc081(0x1a7))/0x7*(-parseInt(_0x2fc081(0x198))/0x8)+parseInt(_0x2fc081(0x1a6))/0x9*(parseInt(_0x2fc081(0x1a8))/0xa)+-parseInt(_0x2fc081(0x1ac))/0xb*(-parseInt(_0x2fc081(0x1a9))/0xc);if(_0x5668c8===_0x5a4ea8)break;else _0x2c67a2['push'](_0x2c67a2['shift']());}catch(_0x1a7e87){_0x2c67a2['push'](_0x2c67a2['shift']());}}}(a122_0x2ae5,0x6a6ab));const {PLAYWRIGHT}=require(a122_0x1a238e(0x1ad)),a122_0x47bb78={};function a122_0x2ae5(){const _0x555c9f=['AutomationFrameworkState.EXECUTE','YyEQC','3025528YitQMi','value','exports','find','1317138OnkKfs','awdVA','hoGec','AutomationFrameworkState.NONE','freeze','qcIxf','AutomationFrameworkState.PLAYWRIGHT_DISPATCH','5649309SANJEK','21UpUSrE','10FKPLIF','12qBoSKy','HppPy','56023JzFBBg','1504052OQPFFy','../../utils/constants','2418222tQZSXU','6fqWbGC','toString','5YCIMwG','880832HcxzJf'];a122_0x2ae5=function(){return _0x555c9f;};return a122_0x2ae5();}a122_0x47bb78['value']=0x0,a122_0x47bb78[a122_0x1a238e(0x1b0)]=function(){const _0x1428e6=a122_0x1a238e,_0x161f48={};_0x161f48[_0x1428e6(0x1a1)]=_0x1428e6(0x1a2);const _0x237edf=_0x161f48;return _0x237edf[_0x1428e6(0x1a1)];};const a122_0x3c4f23={};a122_0x3c4f23[a122_0x1a238e(0x19c)]=0x1,a122_0x3c4f23[a122_0x1a238e(0x1b0)]=function(){const _0x5bd45a=a122_0x1a238e,_0xaddd3d={};_0xaddd3d[_0x5bd45a(0x19a)]='AutomationFrameworkState.CREATE';const _0x2f01d4=_0xaddd3d;return _0x2f01d4[_0x5bd45a(0x19a)];};const a122_0x49ae7b={};a122_0x49ae7b[a122_0x1a238e(0x19c)]=0x2,a122_0x49ae7b[a122_0x1a238e(0x1b0)]=function(){const _0x1ff97e=a122_0x1a238e,_0x192670={};_0x192670[_0x1ff97e(0x1aa)]=_0x1ff97e(0x1a5);const _0x32d6c3=_0x192670;return _0x32d6c3['HppPy'];};const a122_0x10bade={};a122_0x10bade['value']=0x3,a122_0x10bade[a122_0x1a238e(0x1b0)]=function(){const _0x3ebbe0=a122_0x1a238e,_0x324841={};_0x324841['xyjPp']=_0x3ebbe0(0x199);const _0x78f2a3=_0x324841;return _0x78f2a3['xyjPp'];};function a122_0xf07f(_0x153af7,_0x3aa23d){const _0x2ae5ec=a122_0x2ae5();return a122_0xf07f=function(_0xf07f6,_0x4bdf00){_0xf07f6=_0xf07f6-0x198;let _0x2d6132=_0x2ae5ec[_0xf07f6];return _0x2d6132;},a122_0xf07f(_0x153af7,_0x3aa23d);}const a122_0x451e99={};a122_0x451e99[a122_0x1a238e(0x19c)]=0x4,a122_0x451e99['toString']=function(){const _0x32a544=a122_0x1a238e,_0x34012e={};_0x34012e[_0x32a544(0x1a0)]='AutomationFrameworkState.IDLE';const _0x310c45=_0x34012e;return _0x310c45[_0x32a544(0x1a0)];};const a122_0x525fac={};a122_0x525fac[a122_0x1a238e(0x19c)]=0x5,a122_0x525fac['toString']=function(){const _0x3f2fe0=a122_0x1a238e,_0x2ef2e4={};_0x2ef2e4['qcIxf']='AutomationFrameworkState.QUIT';const _0x9b709c=_0x2ef2e4;return _0x9b709c[_0x3f2fe0(0x1a4)];};const AutomationFrameworkState=Object[a122_0x1a238e(0x1a3)]({'NONE':a122_0x47bb78,'CREATE':a122_0x3c4f23,'PLAYWRIGHT_DISPATCH':a122_0x49ae7b,'EXECUTE':a122_0x10bade,'IDLE':a122_0x451e99,'QUIT':a122_0x525fac,'fromValue'(_0x48c6de){const _0xa2c3=a122_0x1a238e;return Object['values'](AutomationFrameworkState)[_0xa2c3(0x19e)](_0x1246c7=>_0x1246c7[_0xa2c3(0x19c)]===_0x48c6de);}});module[a122_0x1a238e(0x19d)]=AutomationFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a123_0x535334=a123_0x287f;(function(_0x4d14a4,_0x22bab6){const _0x1eaadb=a123_0x287f,_0x3a364b=_0x4d14a4();while(!![]){try{const _0x3a9a61=-parseInt(_0x1eaadb(0xb3))/0x1+-parseInt(_0x1eaadb(0xbd))/0x2+parseInt(_0x1eaadb(0xc5))/0x3+parseInt(_0x1eaadb(0xba))/0x4*(parseInt(_0x1eaadb(0xbf))/0x5)+-parseInt(_0x1eaadb(0xbb))/0x6*(-parseInt(_0x1eaadb(0xb9))/0x7)+parseInt(_0x1eaadb(0xb7))/0x8+-parseInt(_0x1eaadb(0xc2))/0x9;if(_0x3a9a61===_0x22bab6)break;else _0x3a364b['push'](_0x3a364b['shift']());}catch(_0x3cda65){_0x3a364b['push'](_0x3a364b['shift']());}}}(a123_0x13da,0x763ce));function a123_0x13da(){const _0xc2fcb5=['OwMvb','1217082bjsePp','value','find','788711wKhJWq','toString','freeze','HookState.NONE','7664704QKHOKw','HookState.PRE','84RDAxwE','376oePmlA','390156dHiyop','HookState.POST','315658ghNSxv','exports','38485CjIlxy','qdQbg','values','12930930AKUloZ','YtiLf'];a123_0x13da=function(){return _0xc2fcb5;};return a123_0x13da();}const a123_0x1ad689={};a123_0x1ad689['value']=0x0,a123_0x1ad689[a123_0x535334(0xb4)]=function(){const _0xb5f56e=a123_0x535334,_0x45729f={};_0x45729f[_0xb5f56e(0xc4)]=_0xb5f56e(0xb6);const _0x571a77=_0x45729f;return _0x571a77[_0xb5f56e(0xc4)];};const a123_0x188176={};a123_0x188176['value']=0x1,a123_0x188176[a123_0x535334(0xb4)]=function(){const _0x25a253=a123_0x535334,_0x3ae18a={};_0x3ae18a['YtiLf']=_0x25a253(0xb8);const _0x2a08ea=_0x3ae18a;return _0x2a08ea[_0x25a253(0xc3)];};const a123_0x14f0aa={};function a123_0x287f(_0x2e5144,_0x5ce165){const _0x13da1b=a123_0x13da();return a123_0x287f=function(_0x287f6c,_0x2c3fd7){_0x287f6c=_0x287f6c-0xb1;let _0x29236a=_0x13da1b[_0x287f6c];return _0x29236a;},a123_0x287f(_0x2e5144,_0x5ce165);}a123_0x14f0aa[a123_0x535334(0xb1)]=0x2,a123_0x14f0aa[a123_0x535334(0xb4)]=function(){const _0x528792=a123_0x535334,_0x3a7d2e={};_0x3a7d2e[_0x528792(0xc0)]=_0x528792(0xbc);const _0x45b581=_0x3a7d2e;return _0x45b581[_0x528792(0xc0)];};const HookState=Object[a123_0x535334(0xb5)]({'NONE':a123_0x1ad689,'PRE':a123_0x188176,'POST':a123_0x14f0aa,'fromValue'(_0x165ef3){const _0x6f6118=a123_0x535334;return Object[_0x6f6118(0xc1)](HookState)[_0x6f6118(0xb2)](_0x75a572=>_0x75a572[_0x6f6118(0xb1)]===_0x165ef3);}});module[a123_0x535334(0xbe)]=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124_0x2c7837=a124_0x1db2;(function(_0x8d4597,_0x1cd51f){const _0x2d1808=a124_0x1db2,_0x394b65=_0x8d4597();while(!![]){try{const _0x9f9870=parseInt(_0x2d1808(0x1bb))/0x1+parseInt(_0x2d1808(0x1d7))/0x2*(-parseInt(_0x2d1808(0x1cf))/0x3)+-parseInt(_0x2d1808(0x1b6))/0x4+-parseInt(_0x2d1808(0x1c3))/0x5*(parseInt(_0x2d1808(0x1be))/0x6)+-parseInt(_0x2d1808(0x1d1))/0x7+-parseInt(_0x2d1808(0x1c7))/0x8*(-parseInt(_0x2d1808(0x1d8))/0x9)+-parseInt(_0x2d1808(0x1da))/0xa*(-parseInt(_0x2d1808(0x1c6))/0xb);if(_0x9f9870===_0x1cd51f)break;else _0x394b65['push'](_0x394b65['shift']());}catch(_0x1a1de8){_0x394b65['push'](_0x394b65['shift']());}}}(a124_0x11d8,0x2854c));const a124_0x56248c={};a124_0x56248c[a124_0x2c7837(0x1c5)]=0x0,a124_0x56248c[a124_0x2c7837(0x1d5)]=function(){const _0x37893d=a124_0x2c7837,_0x5a3dcf={};_0x5a3dcf['TFsyU']=_0x37893d(0x1c2);const _0x387467=_0x5a3dcf;return _0x387467['TFsyU'];};const a124_0x147724={};a124_0x147724['value']=0x1,a124_0x147724[a124_0x2c7837(0x1d5)]=function(){const _0x2327a5=a124_0x2c7837,_0x37275d={};_0x37275d['kCXTR']=_0x2327a5(0x1bd);const _0x30b207=_0x37275d;return _0x30b207[_0x2327a5(0x1d9)];};const a124_0x51c901={};a124_0x51c901[a124_0x2c7837(0x1c5)]=0x2,a124_0x51c901[a124_0x2c7837(0x1d5)]=function(){const _0x550974=a124_0x2c7837,_0x5750fa={};_0x5750fa[_0x550974(0x1c0)]=_0x550974(0x1c1);const _0x1bb180=_0x5750fa;return _0x1bb180[_0x550974(0x1c0)];};const a124_0xf751a8={};function a124_0x1db2(_0x54574a,_0x52c949){const _0x11d805=a124_0x11d8();return a124_0x1db2=function(_0x1db2a1,_0x26ecc8){_0x1db2a1=_0x1db2a1-0x1b6;let _0x1ebe7e=_0x11d805[_0x1db2a1];return _0x1ebe7e;},a124_0x1db2(_0x54574a,_0x52c949);}a124_0xf751a8[a124_0x2c7837(0x1c5)]=0x3,a124_0xf751a8[a124_0x2c7837(0x1d5)]=function(){const _0x342235=a124_0x2c7837,_0x5a98d6={};_0x5a98d6[_0x342235(0x1bc)]=_0x342235(0x1cb);const _0x132576=_0x5a98d6;return _0x132576['isoGB'];};const a124_0x69daa3={};a124_0x69daa3[a124_0x2c7837(0x1c5)]=0x4,a124_0x69daa3[a124_0x2c7837(0x1d5)]=function(){const _0x293fb0=a124_0x2c7837,_0x54cbf3={};_0x54cbf3[_0x293fb0(0x1b8)]='TestFrameworkState.INIT_TEST';const _0x4aebc1=_0x54cbf3;return _0x4aebc1[_0x293fb0(0x1b8)];};const a124_0x9581de={};a124_0x9581de[a124_0x2c7837(0x1c5)]=0x5,a124_0x9581de[a124_0x2c7837(0x1d5)]=function(){const _0x5a8017=a124_0x2c7837,_0x4f67bb={};_0x4f67bb[_0x5a8017(0x1ce)]=_0x5a8017(0x1d2);const _0x294383=_0x4f67bb;return _0x294383[_0x5a8017(0x1ce)];};const a124_0x1630a0={};a124_0x1630a0[a124_0x2c7837(0x1c5)]=0x6,a124_0x1630a0[a124_0x2c7837(0x1d5)]=function(){const _0x2a4f11=a124_0x2c7837,_0x244893={};_0x244893[_0x2a4f11(0x1d3)]=_0x2a4f11(0x1cd);const _0x31ae42=_0x244893;return _0x31ae42[_0x2a4f11(0x1d3)];};const a124_0x533b4d={};a124_0x533b4d[a124_0x2c7837(0x1c5)]=0x7,a124_0x533b4d[a124_0x2c7837(0x1d5)]=function(){const _0x4cb200=a124_0x2c7837,_0x339bc5={};_0x339bc5[_0x4cb200(0x1cc)]=_0x4cb200(0x1c9);const _0x5a5041=_0x339bc5;return _0x5a5041[_0x4cb200(0x1cc)];};const a124_0x528f65={};a124_0x528f65[a124_0x2c7837(0x1c5)]=0x8,a124_0x528f65[a124_0x2c7837(0x1d5)]=function(){const _0x3d8feb=a124_0x2c7837,_0x429276={};_0x429276['Fyfnt']=_0x3d8feb(0x1d0);const _0x19d1e6=_0x429276;return _0x19d1e6[_0x3d8feb(0x1b7)];};const a124_0x4d8bb0={};function a124_0x11d8(){const _0x40cfaa=['ucEZl','TestFrameworkState.LOG','TestFrameworkState.NONE','1445JGokZQ','TestFrameworkState.TEST_SCREENSHOT','value','22lIvOwt','208VqTxTG','TestFrameworkState.AFTER_ALL','TestFrameworkState.TEST','TestFrameworkState.LOG_REPORT','TestFrameworkState.SETUP_FIXTURE','npSTa','TestFrameworkState.AFTER_EACH','tXxir','291405QKuhYD','TestFrameworkState.STEP','166719XjElrj','TestFrameworkState.BEFORE_EACH','GlJpI','YiJDu','toString','find','2kkuDYE','28989ODNoZe','kCXTR','825010RGbBgn','477772oATDrh','Fyfnt','qxWqf','TestFrameworkState.TEST_STEP','KVHLo','225625fYjvuz','isoGB','TestFrameworkState.BEFORE_ALL','1428zQmDJs','Ocbhl'];a124_0x11d8=function(){return _0x40cfaa;};return a124_0x11d8();}a124_0x4d8bb0[a124_0x2c7837(0x1c5)]=0x9,a124_0x4d8bb0['toString']=function(){const _0x33de02=a124_0x2c7837,_0x2a0bff={};_0x2a0bff['yBCas']=_0x33de02(0x1ca);const _0x2a02ea=_0x2a0bff;return _0x2a02ea['yBCas'];};const a124_0x8545fb={};a124_0x8545fb[a124_0x2c7837(0x1c5)]=0xa,a124_0x8545fb[a124_0x2c7837(0x1d5)]=function(){const _0x576c02=a124_0x2c7837,_0x459b84={};_0x459b84[_0x576c02(0x1ba)]=_0x576c02(0x1c8);const _0x59e2c4=_0x459b84;return _0x59e2c4['KVHLo'];};const a124_0x5da95b={};a124_0x5da95b[a124_0x2c7837(0x1c5)]=0xb,a124_0x5da95b['toString']=function(){const _0x26585a=a124_0x2c7837,_0x28f4d4={};_0x28f4d4[_0x26585a(0x1d4)]=_0x26585a(0x1c4);const _0x4a2e42=_0x28f4d4;return _0x4a2e42['YiJDu'];};const a124_0x3bc9fc={};a124_0x3bc9fc[a124_0x2c7837(0x1c5)]=0xc,a124_0x3bc9fc['toString']=function(){const _0x39f539=a124_0x2c7837,_0x4855ef={};_0x4855ef[_0x39f539(0x1bf)]=_0x39f539(0x1b9);const _0x454147=_0x4855ef;return _0x454147[_0x39f539(0x1bf)];};const TestFrameworkState=Object['freeze']({'NONE':a124_0x56248c,'BEFORE_ALL':a124_0x147724,'LOG':a124_0x51c901,'SETUP_FIXTURE':a124_0xf751a8,'INIT_TEST':a124_0x69daa3,'BEFORE_EACH':a124_0x9581de,'AFTER_EACH':a124_0x1630a0,'TEST':a124_0x533b4d,'STEP':a124_0x528f65,'LOG_REPORT':a124_0x4d8bb0,'AFTER_ALL':a124_0x8545fb,'TEST_SCREENSHOT':a124_0x5da95b,'TEST_STEP':a124_0x3bc9fc,'fromValue'(_0x891f48){const _0x3bdb37=a124_0x2c7837;return Object['values'](TestFrameworkState)[_0x3bdb37(0x1d6)](_0x4a3da5=>_0x4a3da5['value']===_0x891f48);}});module['exports']=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a125_0x4b154b=a125_0xf39f;(function(_0xb321ef,_0x4f5cef){const _0x16f3e0=a125_0xf39f,_0xa2a317=_0xb321ef();while(!![]){try{const _0x4cdb7e=-parseInt(_0x16f3e0(0x197))/0x1*(parseInt(_0x16f3e0(0x1a9))/0x2)+parseInt(_0x16f3e0(0x206))/0x3+parseInt(_0x16f3e0(0x1df))/0x4+-parseInt(_0x16f3e0(0x1a1))/0x5+parseInt(_0x16f3e0(0x1a5))/0x6*(parseInt(_0x16f3e0(0x20f))/0x7)+parseInt(_0x16f3e0(0x190))/0x8+-parseInt(_0x16f3e0(0x208))/0x9;if(_0x4cdb7e===_0x4f5cef)break;else _0xa2a317['push'](_0xa2a317['shift']());}catch(_0x1d9003){_0xa2a317['push'](_0xa2a317['shift']());}}}(a125_0xbf91,0xaed9f));function a125_0xf39f(_0x5573e1,_0x35d03f){const _0xbf917a=a125_0xbf91();return a125_0xf39f=function(_0xf39fbd,_0x17cfb7){_0xf39fbd=_0xf39fbd-0x18c;let _0x3ec6fc=_0xbf917a[_0xf39fbd];return _0x3ec6fc;},a125_0xf39f(_0x5573e1,_0x35d03f);}const os=require('os'),fs=require('fs'),path=require(a125_0x4b154b(0x1a4)),util=require(a125_0x4b154b(0x1aa)),BrowserstackCLI=require(a125_0x4b154b(0x1f5)),https=require('https'),http=require(a125_0x4b154b(0x1ac)),AutomationFramework=require(a125_0x4b154b(0x1f4)),PlaywrightDriverModule=require(a125_0x4b154b(0x1c0)),TestInfo=require('./TestInfo'),TestFrameworkConstants=require(a125_0x4b154b(0x1cd)),{createClassLogger}=require(a125_0x4b154b(0x204)),ATTACHMENT_DOWNLOAD_TIMEOUT_MS=0x7530;class uploadAttachmentsManager{static ['logger']=createClassLogger(a125_0x4b154b(0x20b));static async[a125_0x4b154b(0x198)](_0x1168e7,_0x2307b4=![]){const _0x564bd4=a125_0x4b154b,_0x35486b={};_0x35486b[_0x564bd4(0x1b0)]='Error\x20uploading\x20attachment:\x20%s,\x20skipping\x20upload';const _0x5cce34=_0x35486b;try{await uploadAttachmentsManager['_uploadAttachments'](_0x1168e7,_0x2307b4);}catch(_0x2fdef3){this[_0x564bd4(0x1fb)][_0x564bd4(0x1d4)](util[_0x564bd4(0x19e)](_0x5cce34['mjgUh'],_0x2fdef3&&_0x2fdef3[_0x564bd4(0x220)]));}}static async['_uploadAttachments'](_0x20689f,_0x40c02f=![]){const _0x22ac45=a125_0x4b154b,_0x5db804={'MLHqM':function(_0x35eca6){return _0x35eca6();},'zMZhx':function(_0x3baf7b){return _0x3baf7b();},'viCBd':_0x22ac45(0x219),'NuMxm':'error','YOTmn':function(_0x554ccb,_0x44b191){return _0x554ccb===_0x44b191;},'kvKFb':_0x22ac45(0x1d8),'QCeIc':function(_0x44e6e3,_0x4cd0d8){return _0x44e6e3(_0x4cd0d8);},'ViWiR':_0x22ac45(0x200),'brqFw':_0x22ac45(0x1a3),'FPcpT':function(_0xfe48c3){return _0xfe48c3();},'HuSoj':'%s\x20(after\x20this\x20download\x20already\x20settled,\x20ignoring)','hwIFq':'%s,\x20skipping\x20upload','GnpoP':function(_0x1769ce,_0x472000){return _0x1769ce(_0x472000);},'ZIsMn':function(_0x492805,_0x36df21){return _0x492805/_0x36df21;},'NpQbg':function(_0xb0577b,_0x1973b6){return _0xb0577b*_0x1973b6;},'RZZtT':function(_0x1461a0,_0x43db4e){return _0x1461a0>_0x43db4e;},'AugsS':_0x22ac45(0x211),'eiNia':function(_0x286f19){return _0x286f19();},'HcIXK':'File\x20downloaded\x20to:\x20%s','DlKft':_0x22ac45(0x1b2),'TsIwZ':_0x22ac45(0x1ef),'Isbki':_0x22ac45(0x192),'easVT':_0x22ac45(0x1c8),'OuJoC':_0x22ac45(0x1c4),'tGAsy':_0x22ac45(0x1c5),'qNRFf':'Created\x20folder:\x20%s','SMnYK':_0x22ac45(0x202),'nWjRP':_0x22ac45(0x20c),'zvpTP':_0x22ac45(0x1cf),'eZyWz':_0x22ac45(0x1a6),'vPcZT':function(_0x347e56,_0x583f2b){return _0x347e56/_0x583f2b;},'YkrJU':function(_0xf19a55,_0x4a8343){return _0xf19a55*_0x4a8343;},'jshto':'File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.'};this[_0x22ac45(0x1fb)][_0x22ac45(0x1d4)](util[_0x22ac45(0x19e)](_0x5db804[_0x22ac45(0x1ad)],_0x20689f));const _0x11a234=os[_0x22ac45(0x1d7)](),_0x339546=path[_0x22ac45(0x1ea)](_0x11a234,_0x5db804[_0x22ac45(0x18d)]);!fs[_0x22ac45(0x1b7)](_0x339546)&&(this[_0x22ac45(0x1fb)][_0x22ac45(0x1d4)](util[_0x22ac45(0x19e)](_0x5db804[_0x22ac45(0x1d5)],_0x339546)),fs[_0x22ac45(0x19f)](_0x339546),this[_0x22ac45(0x1fb)][_0x22ac45(0x1d4)](util['format'](_0x5db804[_0x22ac45(0x1d3)],_0x339546)));const _0x3efec7=BrowserstackCLI['getInstance']()[_0x22ac45(0x19d)]['TestHubModule']?.[_0x22ac45(0x1cb)]?.[_0x22ac45(0x207)]()?.[_0x22ac45(0x1a0)],_0x15902d=path[_0x22ac45(0x1ea)](_0x339546,_0x3efec7);!fs[_0x22ac45(0x1b7)](_0x15902d)&&(fs[_0x22ac45(0x19f)](_0x15902d),this[_0x22ac45(0x1fb)][_0x22ac45(0x1d4)](util[_0x22ac45(0x19e)](_0x5db804[_0x22ac45(0x1bf)],_0x15902d)));if(_0x5db804[_0x22ac45(0x1ed)](_0x20689f[_0x22ac45(0x19a)](),'')){this[_0x22ac45(0x1fb)][_0x22ac45(0x1d4)](util[_0x22ac45(0x19e)](_0x5db804[_0x22ac45(0x1dc)]));return;}if(_0x20689f['startsWith'](_0x5db804[_0x22ac45(0x21f)])||_0x20689f['startsWith'](_0x5db804['zvpTP'])){const _0x3c4b10=_0x20689f[_0x22ac45(0x196)](_0x5db804['nWjRP'])?https:http,_0x1b85ed=path[_0x22ac45(0x1e9)](_0x20689f),_0x45cfdd=path[_0x22ac45(0x1ea)](_0x15902d,_0x1b85ed),_0x15bf86=fs[_0x22ac45(0x1eb)](_0x45cfdd);await new Promise(_0xa7194c=>{const _0x33e5c9=_0x22ac45,_0x591ecb={'FpLky':_0x5db804[_0x33e5c9(0x1e2)],'uWlCw':function(_0x48c26e){return _0x5db804['FPcpT'](_0x48c26e);},'JFbBs':_0x5db804[_0x33e5c9(0x1c3)],'AaZks':_0x5db804['hwIFq'],'cPQVk':function(_0x1000f1,_0x105fee){const _0x430419=_0x33e5c9;return _0x5db804[_0x430419(0x212)](_0x1000f1,_0x105fee);},'cWvjC':function(_0x33e829){const _0x4f3e4f=_0x33e5c9;return _0x5db804[_0x4f3e4f(0x19c)](_0x33e829);},'Okivr':function(_0x292480,_0x82e1b5){return _0x5db804['ZIsMn'](_0x292480,_0x82e1b5);},'uLYED':function(_0x975ac7,_0x189a67){const _0xaa8c5=_0x33e5c9;return _0x5db804[_0xaa8c5(0x1ee)](_0x975ac7,_0x189a67);},'ofsub':function(_0x10feea,_0x2daeca){return _0x5db804['RZZtT'](_0x10feea,_0x2daeca);},'oLmVj':_0x5db804['AugsS'],'KCUEv':function(_0x324193){const _0x4f22c4=_0x33e5c9;return _0x5db804[_0x4f22c4(0x1f8)](_0x324193);},'fPlnd':_0x5db804[_0x33e5c9(0x1b8)],'oLLJA':_0x5db804['DlKft'],'oFrtS':_0x5db804[_0x33e5c9(0x213)]};let _0x23e627=![];const _0x267c91=()=>{if(_0x23e627)return![];return _0x23e627=!![],!![];},_0x3eb10d=()=>{const _0x411f60=_0x33e5c9;try{fs['existsSync'](_0x45cfdd)&&fs['unlinkSync'](_0x45cfdd);}catch(_0x196d39){this[_0x411f60(0x1fb)][_0x411f60(0x1d4)](util[_0x411f60(0x19e)](_0x591ecb['FpLky'],_0x196d39&&_0x196d39[_0x411f60(0x220)]));}},_0x3b2712=_0x164b4b=>{const _0x1feebe=_0x33e5c9,_0x4f82f6={'wEOAV':function(_0x309d97){return _0x5db804['MLHqM'](_0x309d97);}};if(_0x15bf86[_0x1feebe(0x1da)]||_0x15bf86[_0x1feebe(0x1f7)]){_0x5db804[_0x1feebe(0x19c)](_0x3eb10d),_0x5db804[_0x1feebe(0x205)](_0x164b4b);return;}_0x15bf86['once'](_0x5db804[_0x1feebe(0x1d0)],()=>{const _0x521be2=_0x1feebe;_0x4f82f6['wEOAV'](_0x3eb10d),_0x4f82f6[_0x521be2(0x1bd)](_0x164b4b);}),_0x15bf86[_0x1feebe(0x1fa)]();},_0x4645c4=_0x39e28f=>{const _0x33ec0b=_0x33e5c9;if(!_0x591ecb[_0x33ec0b(0x19b)](_0x267c91)){this[_0x33ec0b(0x1fb)][_0x33ec0b(0x1d4)](util['format'](_0x591ecb[_0x33ec0b(0x1fd)],_0x39e28f));return;}this[_0x33ec0b(0x1fb)][_0x33ec0b(0x1d4)](util[_0x33ec0b(0x19e)](_0x591ecb[_0x33ec0b(0x1b3)],_0x39e28f)),_0x591ecb['cPQVk'](_0x3b2712,_0xa7194c);};_0x15bf86['on'](_0x5db804[_0x33e5c9(0x1f0)],_0x5ad1fa=>_0x4645c4(util['format'](_0x33e5c9(0x1b5),_0x5ad1fa&&_0x5ad1fa[_0x33e5c9(0x220)])));const _0x349ef5=_0x3c4b10[_0x33e5c9(0x1c9)](_0x20689f,_0x14c9b3=>{const _0x3164ad=_0x33e5c9;_0x14c9b3['on'](_0x5db804[_0x3164ad(0x1f0)],_0x42ec59=>_0x4645c4(util[_0x3164ad(0x19e)]('Error\x20reading\x20download\x20response:\x20%s',_0x42ec59&&_0x42ec59[_0x3164ad(0x220)]))),_0x5db804[_0x3164ad(0x1ed)](_0x14c9b3[_0x3164ad(0x21a)],0xc8)?(_0x14c9b3[_0x3164ad(0x1f2)](_0x15bf86),_0x15bf86['on'](_0x5db804['kvKFb'],async()=>{const _0x4e8c69=_0x3164ad;if(!_0x591ecb['cWvjC'](_0x267c91))return;try{_0x15bf86[_0x4e8c69(0x219)]();const _0x5dcc06=fs[_0x4e8c69(0x1c1)](_0x45cfdd),_0x25f01c=_0x591ecb['Okivr'](_0x5dcc06[_0x4e8c69(0x1e8)],_0x591ecb[_0x4e8c69(0x203)](0x400,0x400));if(_0x591ecb['ofsub'](_0x25f01c,0x64)){this['logger'][_0x4e8c69(0x1d4)](util[_0x4e8c69(0x19e)](_0x591ecb['oLmVj'],_0x25f01c['toFixed'](0x2))),_0x591ecb[_0x4e8c69(0x1e1)](_0x3eb10d);return;}this[_0x4e8c69(0x1fb)]['debug'](util[_0x4e8c69(0x19e)](_0x591ecb['fPlnd'],_0x45cfdd)),await uploadAttachmentsManager[_0x4e8c69(0x1c7)](_0x45cfdd,_0x40c02f);}catch(_0x4c9280){this[_0x4e8c69(0x1fb)]['debug'](util[_0x4e8c69(0x19e)](_0x591ecb[_0x4e8c69(0x1db)],_0x4c9280&&_0x4c9280[_0x4e8c69(0x220)]));}finally{_0x591ecb['KCUEv'](_0xa7194c);}})):_0x5db804[_0x3164ad(0x1b6)](_0x4645c4,util[_0x3164ad(0x19e)](_0x5db804[_0x3164ad(0x1f3)],_0x14c9b3[_0x3164ad(0x21a)]));});_0x349ef5['on'](_0x5db804[_0x33e5c9(0x1f0)],_0x240d6d=>_0x4645c4(util[_0x33e5c9(0x19e)]('Error\x20downloading\x20file:\x20%s',_0x240d6d&&_0x240d6d['message']))),_0x349ef5[_0x33e5c9(0x1e5)](ATTACHMENT_DOWNLOAD_TIMEOUT_MS,()=>{const _0x4c6b7a=_0x33e5c9;_0x349ef5[_0x4c6b7a(0x1fa)](),_0x591ecb['cPQVk'](_0x4645c4,util[_0x4c6b7a(0x19e)](_0x591ecb['oFrtS'],ATTACHMENT_DOWNLOAD_TIMEOUT_MS));});});}else{if(!fs[_0x22ac45(0x1b7)](_0x20689f)){this[_0x22ac45(0x1fb)][_0x22ac45(0x1d4)](util[_0x22ac45(0x19e)](_0x5db804[_0x22ac45(0x1bb)],_0x20689f));return;}const _0x1779c7=fs[_0x22ac45(0x1c1)](_0x20689f),_0x87a229=_0x5db804[_0x22ac45(0x1c6)](_0x1779c7[_0x22ac45(0x1e8)],_0x5db804['YkrJU'](0x400,0x400));if(_0x5db804[_0x22ac45(0x218)](_0x87a229,0x64)){this['logger'][_0x22ac45(0x1d4)](util[_0x22ac45(0x19e)](_0x5db804[_0x22ac45(0x1f9)],_0x87a229[_0x22ac45(0x1e3)](0x2)));return;}const _0x244015=path[_0x22ac45(0x1e9)](_0x20689f),_0x1f60e6=path[_0x22ac45(0x1ea)](_0x15902d,_0x244015);fs[_0x22ac45(0x1fc)](_0x20689f,_0x1f60e6),await uploadAttachmentsManager[_0x22ac45(0x1c7)](_0x1f60e6,_0x40c02f);}}static async[a125_0x4b154b(0x1c7)](_0xc460c0,_0x2577b4){const _0x208266=a125_0x4b154b,_0x277d27={'eCBXL':function(_0xd95bda,_0x52d359){return _0xd95bda(_0x52d359);},'amXrR':_0x208266(0x1f5),'mRuRx':_0x208266(0x1f1),'daeMP':function(_0xed77c8,_0x501235){return _0xed77c8===_0x501235;},'JnXph':_0x208266(0x20d),'LSNSL':function(_0x16f251,_0x64151a){return _0x16f251===_0x64151a;},'NuSSu':_0x208266(0x195),'MQocN':_0x208266(0x1e0),'sKBbt':_0x208266(0x21d),'CZDoz':'TestLevel','jgHwS':_0x208266(0x1b1),'xlkbU':_0x208266(0x20e),'oZlHW':function(_0x2c69ed,_0x261e4c){return _0x2c69ed(_0x261e4c);},'sabTg':_0x208266(0x214),'BZdLG':_0x208266(0x1ab),'AQbPc':_0x208266(0x216),'WbeEn':_0x208266(0x18c)};try{let _0x1711c6;const _0x5b06b6=global['__workerDetails']?.['currentTest']?.[_0x208266(0x217)],_0x5bd645=_0x277d27[_0x208266(0x201)](require,_0x277d27[_0x208266(0x1b4)]),_0x10f899=_0x277d27[_0x208266(0x201)](require,_0x277d27[_0x208266(0x1ca)]),_0x2a4464=_0x5bd645['getInstance']()[_0x208266(0x1ba)]()&&_0x277d27['daeMP'](_0x10f899[_0x208266(0x1b9)]()?.['name']?.['toLowerCase'](),_0x277d27[_0x208266(0x1e6)]);if(_0x2a4464){_0x1711c6=global['__jestCurrentTestIdentifier'];if(!_0x1711c6){const _0x2a345a=AutomationFramework['getTrackedInstance']();_0x1711c6=AutomationFramework[_0x208266(0x18e)](_0x2a345a,PlaywrightDriverModule[_0x208266(0x1e7)],'');}this[_0x208266(0x1fb)][_0x208266(0x1d4)](_0x208266(0x1a7)+_0x1711c6);}else{if(!_0x5b06b6){const _0x4b32d0=AutomationFramework[_0x208266(0x1d2)]();_0x1711c6=AutomationFramework[_0x208266(0x18e)](_0x4b32d0,PlaywrightDriverModule[_0x208266(0x1e7)],'');}else _0x1711c6=TestInfo['getTestIdentifierFromTestInfo'](_0x5b06b6,_0x5b06b6[_0x208266(0x21c)]);this[_0x208266(0x1fb)]['debug'](_0x208266(0x1de)+_0x1711c6);}if(!_0x1711c6)try{const _0xeba5df=_0x5bd645['getInstance'](),_0x5e03dd=_0xeba5df&&_0xeba5df['getTestFramework']();_0x1711c6=_0x5e03dd&&_0x277d27[_0x208266(0x21b)](typeof _0x5e03dd[_0x208266(0x1ce)],_0x277d27[_0x208266(0x193)])&&_0x5e03dd[_0x208266(0x1ce)]()||_0x1711c6;}catch(_0x561461){this[_0x208266(0x1fb)]['debug'](_0x208266(0x209)+(_0x561461&&_0x561461[_0x208266(0x220)]));}if(!_0x1711c6){this[_0x208266(0x1fb)][_0x208266(0x1d4)](_0x277d27[_0x208266(0x194)]);return;}const _0x5b8fe6={[TestFrameworkConstants['KEY_FILE_SIZE']]:fs[_0x208266(0x1c1)](_0xc460c0)[_0x208266(0x1e8)],[TestFrameworkConstants[_0x208266(0x1be)]]:path[_0x208266(0x1e9)](_0xc460c0),[TestFrameworkConstants[_0x208266(0x1c2)]]:_0xc460c0,[TestFrameworkConstants[_0x208266(0x215)]]:_0x2577b4?_0x277d27[_0x208266(0x1af)]:_0x277d27[_0x208266(0x21e)]};if(_0x2a4464){const _0x49bb34=_0x5bd645[_0x208266(0x1a2)]()[_0x208266(0x191)]();if(!_0x49bb34){this[_0x208266(0x1fb)][_0x208266(0x1d4)](_0x277d27[_0x208266(0x199)]);return;}const _0x252389=_0x277d27[_0x208266(0x201)](require,_0x277d27[_0x208266(0x1dd)]),_0x5526ac=_0x277d27[_0x208266(0x1ec)](require,_0x277d27['sabTg']),_0x1d3d22=_0x49bb34[_0x208266(0x221)](_0x252389[_0x208266(0x1bc)],_0x5526ac[_0x208266(0x1d9)]);if(!_0x1d3d22){this[_0x208266(0x1fb)]['debug'](_0x277d27[_0x208266(0x1fe)]);return;}const _0x1ed6f2=_0x1d3d22[_0x208266(0x1ae)]()['get'](_0x1711c6)||{},_0x50f31b=_0x1ed6f2[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x5db17a={..._0x50f31b};_0x5db17a[_0xc460c0]=_0x5b8fe6;const _0x86b1f7=_0x5db17a,_0x519e21={[TestFrameworkConstants[_0x208266(0x1d6)]]:_0x86b1f7},_0x225cba={};_0x225cba[_0x1711c6]=_0x519e21,_0x1d3d22[_0x208266(0x210)](_0x225cba),this[_0x208266(0x1fb)][_0x208266(0x1d4)](_0x208266(0x1d1)+_0x1711c6+_0x208266(0x1e4)+_0xc460c0);}else{const _0x31d554={};_0x31d554[_0xc460c0]=_0x5b8fe6;const _0x437566={[TestFrameworkConstants[_0x208266(0x1d6)]]:_0x31d554};await TestInfo['setTestDetailsAsync'](_0x1711c6,_0x437566,!![]),this[_0x208266(0x1fb)][_0x208266(0x1d4)]('trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20'+_0x1711c6+_0x208266(0x1e4)+_0xc460c0);}this[_0x208266(0x1fb)]['debug'](util[_0x208266(0x19e)](_0x277d27[_0x208266(0x1a8)],_0xc460c0));}catch(_0x2246eb){this[_0x208266(0x1fb)][_0x208266(0x1d4)](util[_0x208266(0x19e)](_0x277d27[_0x208266(0x1ff)],_0x2246eb[_0x208266(0x220)]));}}static['clearAttachments'](){const _0xb3620d=a125_0x4b154b,_0x1de3fb={};_0x1de3fb[_0xb3620d(0x1cc)]=_0xb3620d(0x1c8),_0x1de3fb['RnhcB']='No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s',_0x1de3fb[_0xb3620d(0x222)]=_0xb3620d(0x20a);const _0x2ef795=_0x1de3fb,_0xc4fe29=os[_0xb3620d(0x1d7)](),_0x13f3d6=path[_0xb3620d(0x1ea)](_0xc4fe29,_0x2ef795['hpTzJ']);if(!fs[_0xb3620d(0x1b7)](_0x13f3d6))return;const _0x589cf1=BrowserstackCLI[_0xb3620d(0x1a2)]()[_0xb3620d(0x19d)]['TestHubModule']?.[_0xb3620d(0x1cb)]?.['toObject']()?.[_0xb3620d(0x1a0)],_0x32ff0c=_0x589cf1?path[_0xb3620d(0x1ea)](_0x13f3d6,_0x589cf1):null;if(!_0x32ff0c||!fs[_0xb3620d(0x1b7)](_0x32ff0c)){this[_0xb3620d(0x1fb)]['debug'](util['format'](_0x2ef795[_0xb3620d(0x1f6)],_0x589cf1));return;}const _0x2cc028={};_0x2cc028['recursive']=!![],_0x2cc028['force']=!![],fs[_0xb3620d(0x18f)](_0x32ff0c,_0x2cc028),this[_0xb3620d(0x1fb)][_0xb3620d(0x1d4)](util['format'](_0x2ef795[_0xb3620d(0x222)]));}}function a125_0xbf91(){const _0x338191=['Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','testInfo','RZZtT','close','statusCode','LSNSL','retry','BuildLevel','CZDoz','nWjRP','message','resolveInstance','ZQRhh','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','easVT','getState','rmSync','5893552HueBwy','getTestFramework','Attachment\x20recevied\x20for\x20path:\x20%s','NuSSu','MQocN','function','startsWith','1KZRvdM','uploadAttachments','jgHwS','trim','uWlCw','MLHqM','modules','format','mkdirSync','buildHashedId','6233100lBRGvn','getInstance','Cleanup\x20of\x20partial\x20download\x20failed:\x20%s','path','36tYtONc','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','AQbPc','1105174YspTti','util','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','http','Isbki','getAllData','sKBbt','mjgUh','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','Error\x20tracking\x20downloaded\x20file:\x20%s,\x20skipping\x20upload','AaZks','amXrR','Error\x20writing\x20downloaded\x20file:\x20%s','QCeIc','existsSync','HcIXK','getTestFrameworkDetail','isRunning','eZyWz','TEST','wEOAV','KEY_FILE_NAME','qNRFf','./modules/playwrightDriverModule','statSync','KEY_FILE_PATH','HuSoj','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','Created\x20.browserstack\x20folder\x20at:\x20%s','vPcZT','trackFile','.browserstack','get','mRuRx','testhubConfig','hpTzJ','./framework/constants/testFrameworkConstants','getCurrentTestUUID','http://','viCBd','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','getTrackedInstance','tGAsy','debug','OuJoC','KEY_TEST_ATTACHMENTS','homedir','finish','POST','closed','oLLJA','SMnYK','xlkbU','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','3522784MPQtcD','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','KCUEv','brqFw','toFixed',',\x20filepath:\x20','setTimeout','JnXph','KEY_TEST_ID','size','basename','join','createWriteStream','oZlHW','YOTmn','NpQbg','Download\x20timed\x20out\x20after\x20%s\x20ms','NuMxm','./cliUtils','pipe','ViWiR','./framework/automationFramework','./browserstackCLI','RnhcB','destroyed','eiNia','jshto','destroy','logger','copyFileSync','JFbBs','BZdLG','WbeEn','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s','eCBXL','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','uLYED','../../helpers/classLogger.js','zMZhx','998799btSHSn','toObject','1827459oARJCr','trackFile:\x20node-generic\x20testId\x20fallback\x20failed:\x20','Cleared\x20attachment\x20folder','uploadAttachmentsManager','https://','jest','./state/testFrameworkState','896147QEnudr','addMultipleEntries','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','GnpoP','TsIwZ','./state/hookState','KEY_FILE_LEVEL'];a125_0xbf91=function(){return _0x338191;};return a125_0xbf91();}module['exports']=uploadAttachmentsManager;
|
|
@@ -1 +1 @@
|
|
|
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)]);
|
|
1
|
+
function a126_0xa7fc(_0x975f7d,_0x3c13a9){const _0x2fe74b=a126_0x2fe7();return a126_0xa7fc=function(_0xa7fc47,_0x216306){_0xa7fc47=_0xa7fc47-0xfe;let _0x5659bd=_0x2fe74b[_0xa7fc47];return _0x5659bd;},a126_0xa7fc(_0x975f7d,_0x3c13a9);}const a126_0xe9ac53=a126_0xa7fc;(function(_0x388412,_0x471422){const _0x3534ab=a126_0xa7fc,_0x5ece80=_0x388412();while(!![]){try{const _0xa1cd08=parseInt(_0x3534ab(0x104))/0x1*(-parseInt(_0x3534ab(0x165))/0x2)+-parseInt(_0x3534ab(0x171))/0x3*(-parseInt(_0x3534ab(0x101))/0x4)+-parseInt(_0x3534ab(0x11d))/0x5*(parseInt(_0x3534ab(0x102))/0x6)+-parseInt(_0x3534ab(0x192))/0x7*(parseInt(_0x3534ab(0x13b))/0x8)+parseInt(_0x3534ab(0x180))/0x9+parseInt(_0x3534ab(0x150))/0xa*(parseInt(_0x3534ab(0x158))/0xb)+-parseInt(_0x3534ab(0x11f))/0xc;if(_0xa1cd08===_0x471422)break;else _0x5ece80['push'](_0x5ece80['shift']());}catch(_0x4d9a4a){_0x5ece80['push'](_0x5ece80['shift']());}}}(a126_0x2fe7,0xcf95e));function a126_0x2fe7(){const _0x2c5d55=['BEFORE_EACH','javascript','xNOFS','EADgu','FAILED','pending','pickleStepId','test','Bcdma','RDLKv','190NzruTS','getHookResult','failureType','length','includes','failed','every','getCucumberHookType','137137UfEGcf','wbGyw','toLowerCase','xiXnD','util','YJJlD','timestamp','dUODd','nanos','AFTER_EACH','Exception\x20in\x20getHookRunEventData:\x20','configureGit','finished_at','82358OHDZKt','createTestFrameworkData','join','AssertionError','ulrNX','forEach','tableBody','JtHPD','cells','finishedAt','message','YvSDa','2216484XMmQUN','flatMap','relative','failure','name','faWbL','getScenarioExamples','../../../helpers/logger.js','WoNyu','hgZyN','getHookRunEventData','result','Exception\x20in\x20createHookData:\x20','unknown','getTestUUID','13392702xvbefV','toISOString','hookId','examples','NJvus','NFPSJ','gXdmR','UxmGD','failure_data','hook','sendTestRunEventForCucumber','DzLJs','UnhandledError','yLIns','uHmZI','jIDUn','XXEvf','_gitConfigPath','287fULxQD','find','scenario','NSEQB','iJQso','children','4tqiWey','12qPOSaO','TZIVD','2QfPXIV','split','sourceReference','strip-ansi','IYQTP','xZizy','ACRVn','ajWbr','YhlNS','../../../helpers/helper.js','niprI','HookRunFinished','testStepResult','format','OpbOs','path','filter','hooks','uri','EioTP','duration_in_ms','meFfx','value','AjIix','winstonLogger','1239870CniSMr','failure_type','11229828XlzuxK','RfjZC','_gitConfigured','../TestInfo.js','rule','testStepFinished','match','exports','feature','exception','MLwuv','tagExpression','mliuk','root','ujRTq','status','createHookData','cykmc','SKIPPED','GGQLs','passed','sendHook','map','HcsWT','HookRunStarted','LxtfY','Vhjpr','astNodeIds','19392lrKiWw','debug','oshRl','ZFKZj','fPUfb','failure_reason','nBgwz','uuid','sKpFe','VwBDB','testCaseFinished'];a126_0x2fe7=function(){return _0x2c5d55;};return a126_0x2fe7();}const path=require(a126_0xe9ac53(0x113)),util=require(a126_0xe9ac53(0x15c)),{getGitMetaData,isUndefined,nestedKeyValue,deriveCucumberHookName,isSdkSetupHook}=require(a126_0xe9ac53(0x10d)),logger=require(a126_0xe9ac53(0x178))[a126_0xe9ac53(0x11c)],{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler.js'),TestInfo=require(a126_0xe9ac53(0x122)),hooksMap={};class CucumberUtils{constructor(){const _0x271f24=a126_0xe9ac53;this[_0x271f24(0x121)]=![],this[_0x271f24(0x191)]=null;}async[a126_0xe9ac53(0x166)](_0x58a120,_0x4f92b5,_0x5c3cc4,_0xa912f8,_0x1a76ea,_0x46e847){const _0x37f05a=a126_0xe9ac53,_0x2ca377={'NFPSJ':function(_0x2daf90,_0x523992){return _0x2daf90===_0x523992;},'YvSDa':_0x37f05a(0x14a),'WoNyu':_0x37f05a(0x155),'EADgu':_0x37f05a(0x131),'iJQso':'skipped','AjIix':function(_0x55138a,_0x4ccbb5){return _0x55138a||_0x4ccbb5;},'DzLJs':function(_0x2963b8,_0x19b67a){return _0x2963b8+_0x19b67a;},'sKpFe':function(_0x20fa83,_0x2076b6){return _0x20fa83+_0x2076b6;},'xiXnD':function(_0x3c41c9,_0x1268b3){return _0x3c41c9+_0x1268b3;},'fPUfb':_0x37f05a(0x14d),'ulrNX':_0x37f05a(0x147),'JDQSi':'cucumber','Bcdma':_0x37f05a(0x14b),'Vhjpr':_0x37f05a(0x133),'faWbL':function(_0x42138b,_0x4ed49b){return _0x42138b!==_0x4ed49b;},'HcsWT':function(_0x1a5351,_0x4d9903){return _0x1a5351/_0x4d9903;},'jIDUn':function(_0x1cbfd8,_0x5a5269){return _0x1cbfd8===_0x5a5269;},'RDLKv':_0x37f05a(0x107),'EioTP':function(_0x272571,_0x545f2b){return _0x272571(_0x545f2b);},'dUODd':_0x37f05a(0x17e),'xNOFS':'AssertionError','hgZyN':_0x37f05a(0x18c)},{feature:_0x560286,scenario:_0x4d4219,steps:_0x1b55e2,uuid:_0x4fb431,startedAt:_0x2821c3,finishedAt:_0x52c88f}=_0x2ca377[_0x37f05a(0x11b)](_0x58a120,{}),_0x1818c6=this['getScenarioExamples'](_0xa912f8,_0x4f92b5);await this[_0x37f05a(0x163)]();const _0x1c1669=_0x1818c6?_0x2ca377[_0x37f05a(0x18b)](_0x2ca377[_0x37f05a(0x143)](_0x2ca377[_0x37f05a(0x15b)](_0x4f92b5[_0x37f05a(0x175)],'\x20('),_0x1818c6[_0x37f05a(0x167)](',\x20')),')'):_0x4f92b5['name'],_0xb5853d={'id':_0x1a76ea,'uuid':_0x1a76ea,'startedAt':_0x2821c3,'finishedAt':_0x52c88f,'type':_0x2ca377[_0x37f05a(0x13f)],'body':{'lang':_0x2ca377[_0x37f05a(0x169)],'code':null},'name':_0x1c1669,'scopes':[_0x560286&&_0x560286[_0x37f05a(0x175)]?_0x560286[_0x37f05a(0x175)]:''],'tags':_0x4f92b5['tags']?_0x4f92b5['tags']['map'](({name:_0x24cf83})=>_0x24cf83):[],'file_name':_0x4f92b5[_0x37f05a(0x116)],'location':_0x4f92b5[_0x37f05a(0x116)],'vc_filepath':this['_gitConfigPath']&&_0x4f92b5[_0x37f05a(0x116)]?path[_0x37f05a(0x173)](this[_0x37f05a(0x191)],_0x4f92b5[_0x37f05a(0x116)]):null,'framework':_0x2ca377['JDQSi'],'result':_0x2ca377[_0x37f05a(0x14e)],'meta':{'feature':_0x560286,'scenario':_0x4d4219,'steps':_0x1b55e2,'examples':_0x1818c6},'customRerunParam':{'rerun_name':_0x1c1669}};if(_0x5c3cc4[_0x37f05a(0x145)]&&_0x1b55e2){const _0x3ac960=_0x5c3cc4[_0x37f05a(0x145)];let _0x13daab=_0x2ca377[_0x37f05a(0x139)];_0x1b55e2[_0x37f05a(0x156)](_0x27b99c=>{const _0x1e451c=_0x37f05a;if(_0x2ca377[_0x1e451c(0x185)](_0x27b99c[_0x1e451c(0x17c)],_0x2ca377[_0x1e451c(0x170)]))return _0x13daab=_0x2ca377[_0x1e451c(0x179)],_0x3ac960['failure']=_0x27b99c[_0x1e451c(0x174)],_0x3ac960[_0x1e451c(0x152)]=_0x27b99c[_0x1e451c(0x152)],![];else{if(_0x2ca377['NFPSJ'](_0x27b99c[_0x1e451c(0x17c)],_0x2ca377[_0x1e451c(0x149)]))return _0x13daab=_0x2ca377[_0x1e451c(0xff)],![];}return!![];}),_0xb5853d[_0x37f05a(0x16e)]=new Date()[_0x37f05a(0x181)](),_0xb5853d[_0x37f05a(0x17c)]=_0x13daab;_0x3ac960['timestamp']&&_0x2ca377[_0x37f05a(0x176)](_0x3ac960[_0x37f05a(0x15e)][_0x37f05a(0x160)],undefined)?_0xb5853d[_0x37f05a(0x118)]=_0x2ca377[_0x37f05a(0x136)](_0x3ac960[_0x37f05a(0x15e)][_0x37f05a(0x160)],0xf4240):_0xb5853d['duration_in_ms']=undefined;if(_0x2ca377[_0x37f05a(0x18f)](_0x13daab,_0x2ca377[_0x37f05a(0x179)])){const {default:_0x120d22}=await import(_0x2ca377[_0x37f05a(0x14f)]);_0xb5853d[_0x37f05a(0x174)]=[{'backtrace':[_0x3ac960[_0x37f05a(0x174)]?_0x2ca377[_0x37f05a(0x117)](_0x120d22,_0x3ac960[_0x37f05a(0x174)]):_0x2ca377[_0x37f05a(0x15f)]]}],_0xb5853d[_0x37f05a(0x140)]=_0x3ac960[_0x37f05a(0x174)]?_0x2ca377['EioTP'](_0x120d22,_0x3ac960['failure']):_0x3ac960[_0x37f05a(0x16f)],_0x3ac960[_0x37f05a(0x152)]&&(_0xb5853d['failure_type']=_0x3ac960[_0x37f05a(0x152)][_0x37f05a(0x125)](/AssertError/)?_0x2ca377[_0x37f05a(0x148)]:_0x2ca377[_0x37f05a(0x17a)]);}}return _0xb5853d;}[a126_0xe9ac53(0x17b)](_0x3d2de2,_0x1b6296,_0x1b55c0,_0x43a41f,_0x5245e6,_0x3efed4){const _0x114012=a126_0xe9ac53,_0x7400c5={'NSEQB':function(_0x38cb53,_0x526ee1){return _0x38cb53===_0x526ee1;},'mliuk':_0x114012(0x10f),'cykmc':function(_0x2f69ef,_0xea15a5,_0x3d6fab){return _0x2f69ef(_0xea15a5,_0x3d6fab);},'ACRVn':_0x114012(0x106),'tXIOO':_0x114012(0x116),'fSjgB':_0x114012(0x14b),'wOsPc':_0x114012(0x189),'nBgwz':function(_0x2871e1,_0x584d67,_0x18bf00,_0x1dd6f8){return _0x2871e1(_0x584d67,_0x18bf00,_0x1dd6f8);},'meFfx':function(_0x65dbf5,_0x1b9d67,_0x4b5144){return _0x65dbf5(_0x1b9d67,_0x4b5144);},'TZIVD':_0x114012(0x194),'ZkyUu':_0x114012(0x175),'NJvus':_0x114012(0x147),'OpbOs':function(_0xbf7474,_0x5783ac,_0x5047f3){return _0xbf7474(_0x5783ac,_0x5047f3);},'IYQTP':'feature','YhlNS':function(_0x591a5c,_0x46b29c,_0x143baa){return _0x591a5c(_0x46b29c,_0x143baa);},'JtHPD':'cucumber'};try{if(_0x7400c5[_0x114012(0xfe)](_0x1b55c0,_0x7400c5[_0x114012(0x12b)])){const _0x568bc2=new Date()[_0x114012(0x181)](),_0x1d3cf7=hooksMap[_0x1b6296];if(!_0x1d3cf7)return;const _0x1e71d9=_0x1d3cf7[_0x114012(0x193)](_0x237fb3=>_0x237fb3[_0x114012(0x142)]===_0x43a41f['id']);if(!_0x1e71d9)return;const _0x548c89=this[_0x114012(0x151)](_0x3d2de2,_0x1b6296);_0x1e71d9[_0x114012(0x17c)]=_0x548c89[_0x114012(0x12e)],_0x1e71d9[_0x114012(0x164)]=_0x568bc2,_0x1e71d9[_0x114012(0x11e)]=_0x548c89[_0x114012(0x152)];const _0x401fdb={};return _0x401fdb['backtrace']=_0x548c89['failureData'],_0x1e71d9[_0x114012(0x188)]=[_0x401fdb],_0x1e71d9;}const _0x5a0314=TestInfo[_0x114012(0x17f)](_0x1b6296),_0x57efcd=_0x3d2de2['hooks'][_0x114012(0x193)](_0x3c0b8a=>_0x3c0b8a['id']===_0x43a41f['hookId']),_0x4b93b7=_0x7400c5[_0x114012(0x130)](nestedKeyValue,_0x57efcd,[_0x7400c5[_0x114012(0x10a)],_0x7400c5['tXIOO']]),_0x322b4b=new Date()[_0x114012(0x181)](),_0x59c05f=_0x7400c5['fSjgB'],_0x3c6f19=_0x57efcd[_0x114012(0x12a)]?_0x57efcd['tagExpression'][_0x114012(0x105)]('\x20')[_0x114012(0x114)](_0x37aaf3=>_0x37aaf3[_0x114012(0x154)]('@')):[],_0x54e869={'uuid':_0x43a41f['id'],'type':_0x7400c5['wOsPc'],'hook_type':_0x3efed4,'name':_0x7400c5[_0x114012(0x141)](deriveCucumberHookName,_0x57efcd[_0x114012(0x175)],_0x3efed4,_0x7400c5[_0x114012(0x119)](nestedKeyValue,_0x5245e6,[_0x7400c5[_0x114012(0x103)],_0x7400c5['ZkyUu']])),'body':{'lang':_0x7400c5[_0x114012(0x184)],'code':null},'tags':_0x3c6f19,'test_run_id':_0x5a0314,'scope':_0x7400c5[_0x114012(0x112)](nestedKeyValue,_0x5245e6,[_0x7400c5[_0x114012(0x108)],_0x7400c5['ZkyUu']]),'scopes':[_0x7400c5[_0x114012(0x10c)](nestedKeyValue,_0x5245e6,[_0x7400c5[_0x114012(0x108)],_0x7400c5['ZkyUu']])||''],'file_name':_0x4b93b7,'location':_0x4b93b7,'vc_filepath':this['_gitConfigPath']&&_0x4b93b7?path['relative'](this[_0x114012(0x191)],_0x4b93b7):null,'result':_0x59c05f,'started_at':_0x322b4b,'framework':_0x7400c5[_0x114012(0x16c)]};return _0x54e869;}catch(_0x1fc170){logger[_0x114012(0x13c)](_0x114012(0x162)+util[_0x114012(0x111)](_0x1fc170)+'\x20');}}async[a126_0xe9ac53(0x12f)](_0x17cb53,_0x4d50b9,_0x2ae5c5,_0x4c0a35,_0x1bcbeb,_0x172066){const _0x154b0b=a126_0xe9ac53,_0x3994d5={'wbGyw':function(_0x33135c,_0x229625){return _0x33135c===_0x229625;},'bnMMV':_0x154b0b(0x137),'epuyb':function(_0x3c1277,_0x1dec24,_0x305b11){return _0x3c1277(_0x1dec24,_0x305b11);},'ajWbr':_0x154b0b(0x106),'VwBDB':_0x154b0b(0x116),'xDwyf':function(_0x195f6e,_0xb6b714,_0x4a5775){return _0x195f6e(_0xb6b714,_0x4a5775);}};try{const _0xea9073=_0x4c0a35['find'](_0x23e3a9=>_0x23e3a9['id']===_0x1bcbeb);if(!_0xea9073[_0x154b0b(0x182)])return;const _0x2d2b82=this['getCucumberHookType'](_0x4c0a35,_0xea9073),_0x281eec=this['getHookRunEventData'](_0x17cb53,_0x4d50b9,_0x2ae5c5,_0xea9073,_0x172066,_0x2d2b82);if(!_0x281eec)return;_0x3994d5[_0x154b0b(0x159)](_0x2ae5c5,_0x3994d5['bnMMV'])&&(hooksMap[_0x4d50b9]?hooksMap[_0x4d50b9]['push'](_0x281eec):hooksMap[_0x4d50b9]=[_0x281eec]);const _0x25c0b0=_0x17cb53[_0x154b0b(0x115)][_0x154b0b(0x193)](_0x4e0405=>_0x4e0405['id']===_0xea9073[_0x154b0b(0x182)]),_0xbc2a4d=_0x3994d5['epuyb'](nestedKeyValue,_0x25c0b0,[_0x3994d5[_0x154b0b(0x10b)],_0x3994d5[_0x154b0b(0x144)]]);if(!_0xbc2a4d)return;else{if(_0x3994d5['xDwyf'](isSdkSetupHook,_0xbc2a4d,_0x281eec[_0x154b0b(0x175)]))return;}return _0x281eec;}catch(_0xfcea73){logger['debug'](_0x154b0b(0x17d)+util[_0x154b0b(0x111)](_0xfcea73)+'\x20');}}['getHookResult'](_0xaf53fb,_0xaa6c38){const _0x50991b=a126_0xe9ac53,_0x4c6ef5={};_0x4c6ef5[_0x50991b(0x10e)]=function(_0x4ab0b7,_0x5cb553){return _0x4ab0b7===_0x5cb553;},_0x4c6ef5[_0x50991b(0x18e)]=_0x50991b(0x155),_0x4c6ef5[_0x50991b(0x15d)]=function(_0x3ffc73,_0x507b0c){return _0x3ffc73===_0x507b0c;},_0x4c6ef5['MLwuv']=function(_0x339664,_0x2dc8d6){return _0x339664===_0x2dc8d6;},_0x4c6ef5[_0x50991b(0x132)]=_0x50991b(0x18c),_0x4c6ef5[_0x50991b(0x186)]=_0x50991b(0x168),_0x4c6ef5[_0x50991b(0x12d)]=function(_0x427459,_0x1e5900){return _0x427459||_0x1e5900;};const _0x2f0c19=_0x4c6ef5,_0x3d62d1=_0xaf53fb[_0x50991b(0x124)][_0xaa6c38][_0x50991b(0x110)];let _0x3af5c9,_0x4984ea;return _0x3d62d1&&_0x2f0c19[_0x50991b(0x10e)](_0x3d62d1[_0x50991b(0x12e)]['toString']()[_0x50991b(0x15a)](),_0x2f0c19[_0x50991b(0x18e)])&&(_0x3af5c9=_0x2f0c19[_0x50991b(0x15d)](_0x3d62d1[_0x50991b(0x128)],undefined)?_0x3d62d1[_0x50991b(0x16f)]:_0x3d62d1[_0x50991b(0x128)][_0x50991b(0x16f)],_0x4984ea=_0x2f0c19[_0x50991b(0x129)](_0x3d62d1[_0x50991b(0x128)],undefined)?_0x2f0c19[_0x50991b(0x132)]:_0x3d62d1['message'][_0x50991b(0x125)](/Assert/)?_0x2f0c19[_0x50991b(0x186)]:_0x2f0c19['GGQLs']),{'status':_0x3d62d1[_0x50991b(0x12e)][_0x50991b(0x15a)](),'failureType':_0x2f0c19['ujRTq'](_0x4984ea,null),'failureData':!_0x3af5c9?null:[_0x3af5c9]};}[a126_0xe9ac53(0x157)](_0xf17e1,_0x3c82fa){const _0x42d8f7=a126_0xe9ac53,_0x3167dd={};_0x3167dd[_0x42d8f7(0x18d)]=function(_0x36fe48,_0x5cf50a){return _0x36fe48===_0x5cf50a;},_0x3167dd[_0x42d8f7(0x120)]=_0x42d8f7(0x161),_0x3167dd[_0x42d8f7(0x187)]=_0x42d8f7(0x146);const _0x4ab012=_0x3167dd;let _0x17be1c=![];for(const _0x28a45d of _0xf17e1){_0x28a45d[_0x42d8f7(0x14c)]&&(_0x17be1c=!![]);if(_0x4ab012[_0x42d8f7(0x18d)](_0x3c82fa['id'],_0x28a45d['id']))return _0x17be1c?_0x4ab012[_0x42d8f7(0x120)]:_0x4ab012[_0x42d8f7(0x187)];}}['getScenarioExamples']=(_0x3e8164,_0x1cf528)=>{const _0x2d4f38=a126_0xe9ac53,_0x3c212b={};_0x3c212b[_0x2d4f38(0x13e)]=function(_0x373ce2,_0x45acae){return _0x373ce2===_0x45acae;},_0x3c212b[_0x2d4f38(0x190)]=function(_0x2f4852,_0x437818){return _0x2f4852===_0x437818;},_0x3c212b[_0x2d4f38(0x138)]=function(_0x4090e6,_0x3298e4){return _0x4090e6>_0x3298e4;};const _0x4b6ac8=_0x3c212b;if(!(_0x1cf528['astNodeIds']&&_0x4b6ac8[_0x2d4f38(0x138)](_0x1cf528[_0x2d4f38(0x13a)]['length'],0x1)))return;const _0x3780ee=_0x1cf528['astNodeIds'][0x0],_0x1e86b1=_0x1cf528[_0x2d4f38(0x13a)][0x1],_0x39ebc4=_0x3e8164['feature']&&_0x3e8164['feature'][_0x2d4f38(0x100)]?_0x3e8164[_0x2d4f38(0x127)][_0x2d4f38(0x100)]:undefined;let _0x123d14=[];_0x39ebc4&&_0x39ebc4[_0x2d4f38(0x16a)](_0x45cc1a=>{const _0x3ca91a=_0x2d4f38,_0x5b540e={'oshRl':function(_0xa214dc,_0x33eb8d){const _0x413b32=a126_0xa7fc;return _0x4b6ac8[_0x413b32(0x13e)](_0xa214dc,_0x33eb8d);}};if(_0x45cc1a[_0x3ca91a(0x123)])_0x45cc1a[_0x3ca91a(0x123)][_0x3ca91a(0x100)][_0x3ca91a(0x16a)](_0x1fd0fe=>{const _0x7b1d70=_0x3ca91a;if(_0x1fd0fe[_0x7b1d70(0x194)]&&_0x5b540e[_0x7b1d70(0x13d)](_0x1fd0fe['scenario']['id'],_0x3780ee)&&_0x1fd0fe[_0x7b1d70(0x194)][_0x7b1d70(0x183)]){const _0x3b0a9c=_0x1fd0fe[_0x7b1d70(0x194)][_0x7b1d70(0x183)][_0x7b1d70(0x172)](_0x20e4f5=>_0x20e4f5[_0x7b1d70(0x16b)])['find'](_0x43e195=>_0x43e195['id']===_0x1e86b1);let _0x4c2d11;_0x3b0a9c&&_0x3b0a9c['cells']?_0x4c2d11=_0x3b0a9c[_0x7b1d70(0x16d)]['map'](_0x57db04=>_0x57db04['value']):_0x4c2d11=[],_0x4c2d11&&(_0x123d14=_0x4c2d11);}});else{if(_0x45cc1a[_0x3ca91a(0x194)]&&_0x4b6ac8['XXEvf'](_0x45cc1a[_0x3ca91a(0x194)]['id'],_0x3780ee)&&_0x45cc1a[_0x3ca91a(0x194)][_0x3ca91a(0x183)]){const _0x23f5e2=_0x45cc1a[_0x3ca91a(0x194)]['examples'][_0x3ca91a(0x172)](_0x559393=>_0x559393[_0x3ca91a(0x16b)])[_0x3ca91a(0x193)](_0x34f123=>_0x34f123['id']===_0x1e86b1);let _0x179daf;_0x23f5e2&&_0x23f5e2['cells']?_0x179daf=_0x23f5e2['cells'][_0x3ca91a(0x135)](_0x464e11=>_0x464e11[_0x3ca91a(0x11a)]):_0x179daf=[],_0x179daf&&(_0x123d14=_0x179daf);}}});if(_0x123d14[_0x2d4f38(0x153)])return _0x123d14;return;};async['configureGit'](){const _0x134f79=a126_0xe9ac53,_0x3f6c4e={'xZizy':function(_0x2794af){return _0x2794af();}};if(this[_0x134f79(0x121)])return this[_0x134f79(0x191)];const _0x4c1114=await _0x3f6c4e[_0x134f79(0x109)](getGitMetaData);_0x4c1114&&(this[_0x134f79(0x191)]=_0x4c1114[_0x134f79(0x12c)]),this[_0x134f79(0x121)]=!![];}}module[a126_0xe9ac53(0x126)]=o11yClassErrorHandler(CucumberUtils,['configureGit',a126_0xe9ac53(0x177),a126_0xe9ac53(0x157),'getHookResult',a126_0xe9ac53(0x134),a126_0xe9ac53(0x17b),a126_0xe9ac53(0x18a),a126_0xe9ac53(0x166)]);
|