browserstack-node-sdk 1.70.0 → 1.70.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/detox/a11ySetup.js +1 -1
- package/src/bin/detox/command.js +1 -1
- package/src/bin/detox/modifyDetoxConf.js +1 -1
- package/src/bin/detox/traEmitter.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadErrors.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/node-generic/client.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/reporterArgs.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/mochaTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/seleniumAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/runStateStore.js +1 -1
- package/src/bin/v2/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a119_0x1c00e4=a119_0x3055;function a119_0x2b03(){const _0x2e95c9=['hookState','../framework/constants/testFrameworkConstants.js','recreateIdentifierFromTestInfo','getThreadId','createTestFrameworkEventPayload','getTestId','KEY_SESSION_ID','CREATE','AxDDM','8|1|4|2|0|5|3|6|7','../state/testFrameworkState.js','base64','getJwt','forEach','6130621YuUuSL','xgHMk','toLowerCase','sendTestFrameworkEvent','getLTSSessionId','getState','\x20hookState:\x20','./baseModule','capabilities','keys','170559respHn','PLAYWRIGHT','onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','BROWSERSTACK_TESTHUB_UUID','46761ZLGIDv','../framework/automationFramework.js','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','JEST','testFrameworkData','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','split','plcxw','POST','./loadTestModule.js','getTestUUID','getTestFramework','gfNEG','toString','360QFbHQW','frameworkName','../state/hookState.js','KEY_TEST_DEFERRED','getProcessId','../../playwright/sessionDetails.js','MqSFe','KEY_PLATFORM_INDEX','Error\x20in\x20sendTestFrameworkEvent:\x20','../cliUtils.js','testSessionEvent','6190920eqRQzr','TEST','name','TWjfy','page','getId','1aUUbvm','frameworkVersion','jestUtils','util','VRdQn','./playwrightDriverModule.js','version','trfwY','values','matchHookRegex','getRef','KEY_CAPABILITIES','srKkd','onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20','wePtE','resolveHubUrl','retry','testhubConfig','../../../helpers/classLogger.js','getInstance','5015VBfJlM','TestHubModule','../grpcClient.js','KEY_HUB_URL','test_identifier','910KwGozS','registerObserver','UlAWQ','testUuid','getDetails','getCurrentTestState','from','KEY_TEST_FRAMEWORK_NAME','TgPrK','1046622fGVFPt','../utils/jest-utils.js','../browserstackCLI.js','logger','testInfo','YwNHd','filter','../../../helpers/test-observability/constants.js','ENV_VAR','UTMoT','debug','sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event','6mSqDUd','../framework/testFramework.js','ExZbg','testFrameworkState','exports','onPageCreate','CUCUMBER','O11yHashedID','env','7316WVQdhh','getModuleName','MODULE_NAME','getTestDetailsAsync','length','instance','siSmF','../TestInfo.js','entries','bind','format','2528906RFYsCV','KtToy','REFhL','RzCls','ULgsM','error','dEXRA','getBuildHashedId','../../../helpers/testhub/constants','YprCR'];a119_0x2b03=function(){return _0x2e95c9;};return a119_0x2b03();}(function(_0x184a0a,_0x5116a8){const _0x1d4465=a119_0x3055,_0x54779d=_0x184a0a();while(!![]){try{const _0x561533=-parseInt(_0x1d4465(0x14b))/0x1*(-parseInt(_0x1d4465(0x18d))/0x2)+-parseInt(_0x1d4465(0x16d))/0x3+-parseInt(_0x1d4465(0x182))/0x4*(-parseInt(_0x1d4465(0x15f))/0x5)+-parseInt(_0x1d4465(0x179))/0x6*(-parseInt(_0x1d4465(0x11e))/0x7)+-parseInt(_0x1d4465(0x145))/0x8+parseInt(_0x1d4465(0x128))/0x9*(-parseInt(_0x1d4465(0x164))/0xa)+parseInt(_0x1d4465(0x12c))/0xb*(-parseInt(_0x1d4465(0x13a))/0xc);if(_0x561533===_0x5116a8)break;else _0x54779d['push'](_0x54779d['shift']());}catch(_0xdf622b){_0x54779d['push'](_0x54779d['shift']());}}}(a119_0x2b03,0xf41fd));function a119_0x3055(_0x2807b0,_0x257998){const _0x2b0357=a119_0x2b03();return a119_0x3055=function(_0x3055d4,_0xb91b6e){_0x3055d4=_0x3055d4-0x10a;let _0x507b3e=_0x2b0357[_0x3055d4];return _0x507b3e;},a119_0x3055(_0x2807b0,_0x257998);}const util=require(a119_0x1c00e4(0x14e)),BaseModule=require(a119_0x1c00e4(0x125)),{createClassLogger}=require(a119_0x1c00e4(0x15d)),AutomationFramework=require(a119_0x1c00e4(0x12d)),AutomationFrameworkState=require('../state/automationFrameworkState.js'),HookState=require(a119_0x1c00e4(0x13c)),TestFramework=require(a119_0x1c00e4(0x17a)),TestFrameworkState=require(a119_0x1c00e4(0x11a)),PlaywrightDriverModule=require(a119_0x1c00e4(0x150)),PuppeteerDriverModule=require('./puppeteerDriverModule.js'),PlaywrightSessionDetails=require(a119_0x1c00e4(0x13f)),TestFrameworkConstants=require(a119_0x1c00e4(0x111)),GrpcClient=require(a119_0x1c00e4(0x161)),CLIUtils=require(a119_0x1c00e4(0x143)),TestInfo=require(a119_0x1c00e4(0x189)),testHubConstants=require(a119_0x1c00e4(0x10e)),{FRAMEWORKS}=require(a119_0x1c00e4(0x174)),helper=require('../../../helpers/helper.js'),LoadTestModule=require(a119_0x1c00e4(0x135)),JestUtils=require(a119_0x1c00e4(0x16e)),BrowserstackCLI=require(a119_0x1c00e4(0x16f)),{getPlaywrightProvider,getProductForSession}=require('../../../helpers/helper.js');class TestHubModule extends BaseModule{[a119_0x1c00e4(0x170)]=createClassLogger('TestHubModule');constructor(_0x47d81a,_0x2083cf=null){const _0x21d0a0=a119_0x1c00e4,_0x2de240={'AfUaN':_0x21d0a0(0x119),'trfwY':_0x21d0a0(0x160),'EoyDB':function(_0x243bb2,_0x14267b){return _0x243bb2(_0x14267b);},'UTMoT':_0x21d0a0(0x16f)},_0x1f0895=_0x2de240['AfUaN'][_0x21d0a0(0x132)]('|');let _0x269084=0x0;while(!![]){switch(_0x1f0895[_0x269084++]){case'0':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x21d0a0(0x117)],HookState['POST'],this[_0x21d0a0(0x17e)][_0x21d0a0(0x18b)](this));continue;case'1':this['name']=_0x2de240[_0x21d0a0(0x152)];continue;case'2':this[_0x21d0a0(0x14d)]=new JestUtils();continue;case'3':process[_0x21d0a0(0x181)][testHubConstants[_0x21d0a0(0x175)]['BROWSERSTACK_TESTHUB_JWT']]=this[_0x21d0a0(0x15c)][_0x21d0a0(0x11c)]();continue;case'4':this[_0x21d0a0(0x15c)]=_0x47d81a;continue;case'5':Object[_0x21d0a0(0x153)](TestFrameworkState)[_0x21d0a0(0x11d)](_0x9d48e3=>{const _0x3bce38=_0x21d0a0;Object[_0x3bce38(0x153)](HookState)[_0x3bce38(0x11d)](_0x1d4e7b=>{const _0x3316f2=_0x3bce38;TestFramework[_0x3316f2(0x165)](_0x9d48e3,_0x1d4e7b,this['onAllTestEvents'][_0x3316f2(0x18b)](this));});});continue;case'6':process[_0x21d0a0(0x181)][testHubConstants[_0x21d0a0(0x175)][_0x21d0a0(0x12b)]]=this[_0x21d0a0(0x15c)][_0x21d0a0(0x10d)]();continue;case'7':_0x2de240['EoyDB'](require,_0x2de240[_0x21d0a0(0x176)])[_0x21d0a0(0x180)]=this[_0x21d0a0(0x15c)]['getBuildHashedId']();continue;case'8':super(_0x2083cf);continue;}break;}}[a119_0x1c00e4(0x183)](){const _0x3647cb=a119_0x1c00e4;return TestHubModule[_0x3647cb(0x184)];}['onAllTestEvents'](_0x3fcd6a){const _0x341d57=a119_0x1c00e4,_0x3836f5={};_0x3836f5['TgPrK']=function(_0x56c34e,_0x4e21aa){return _0x56c34e===_0x4e21aa;};const _0x1bd1e7=_0x3836f5,_0x21446b=_0x3fcd6a[_0x341d57(0x187)],_0xb30eb5=_0x21446b[_0x341d57(0x169)]();(_0x1bd1e7[_0x341d57(0x16c)](_0xb30eb5,TestFrameworkState[_0x341d57(0x146)])||CLIUtils[_0x341d57(0x154)](_0xb30eb5[_0x341d57(0x139)]()[_0x341d57(0x132)]('.')[0x1]))&&this[_0x341d57(0x121)](_0x3fcd6a);}async[a119_0x1c00e4(0x121)](_0xfd18d1){const _0x16f980=a119_0x1c00e4,_0x4fdb49={'VRdQn':function(_0x500193,_0x3927f8){return _0x500193(_0x3927f8);},'YwNHd':'../browserstackCLI.js','gfNEG':function(_0x587707,_0x511b3b){return _0x587707===_0x511b3b;},'KtToy':_0x16f980(0x178)};try{const _0x2ab991=_0x4fdb49[_0x16f980(0x14f)](require,_0x4fdb49[_0x16f980(0x172)]),_0x5543f0=_0x2ab991[_0x16f980(0x15e)]()[_0x16f980(0x137)]()[_0x16f980(0x114)](_0xfd18d1);if(!_0x5543f0||_0x4fdb49[_0x16f980(0x138)](Object[_0x16f980(0x127)](_0x5543f0)[_0x16f980(0x186)],0x0)){this[_0x16f980(0x170)][_0x16f980(0x177)](_0x4fdb49[_0x16f980(0x18e)]);return;}const _0x2ef5f9=await GrpcClient[_0x16f980(0x15e)]()['testFrameworkEvent'](_0x5543f0);this[_0x16f980(0x170)][_0x16f980(0x177)]('sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20'+_0x5543f0[_0x16f980(0x17c)]+_0x16f980(0x124)+_0x5543f0[_0x16f980(0x110)]);}catch(_0x4e5681){this['logger']['error'](_0x16f980(0x142)+util[_0x16f980(0x18c)](_0x4e5681));}}async['onPageCreate'](_0x5849f9){const _0x41007b=a119_0x1c00e4,_0x5e20f9={'siSmF':function(_0x386113,_0x293b38){return _0x386113===_0x293b38;},'ExZbg':_0x41007b(0x126),'wePtE':function(_0xe31bcf,_0x5d90bf){return _0xe31bcf>_0x5d90bf;},'MqSFe':function(_0x3b49d4,_0x450ad7){return _0x3b49d4||_0x450ad7;},'TWjfy':function(_0x56e755,_0x154ef4){return _0x56e755===_0x154ef4;},'UlAWQ':_0x41007b(0x12a),'ULgsM':function(_0x33ec46,_0x42ac7a){return _0x33ec46===_0x42ac7a;},'dEXRA':function(_0x3c5646,_0x26cd77){return _0x3c5646===_0x26cd77;},'srKkd':function(_0x454aa6,_0x4891ef){return _0x454aa6&&_0x4891ef;},'AxDDM':function(_0x37a670,_0x5c0a8a,_0x4fc9a5){return _0x37a670(_0x5c0a8a,_0x4fc9a5);},'iKGuh':function(_0x56b6bb){return _0x56b6bb();},'xgHMk':function(_0x1f1a3a,_0x5c3ee6){return _0x1f1a3a(_0x5c3ee6);},'REFhL':_0x41007b(0x11b)};try{if(_0x5849f9[_0x41007b(0x149)]){const _0x1290a5=this[_0x41007b(0x115)](_0x5849f9);this[_0x41007b(0x170)]['debug'](_0x41007b(0x12e)+_0x1290a5);if(this[_0x41007b(0x130)]&&_0x5e20f9[_0x41007b(0x148)](this[_0x41007b(0x130)][_0x41007b(0x147)],FRAMEWORKS['JEST'])&&!_0x5849f9[_0x41007b(0x171)]){this[_0x41007b(0x170)][_0x41007b(0x177)](_0x5e20f9[_0x41007b(0x166)]);return;}let _0x414b61,_0x193889;if(this['testFrameworkData']&&_0x5e20f9[_0x41007b(0x188)](this['testFrameworkData']['name'],FRAMEWORKS[_0x41007b(0x17f)]))_0x414b61=_0x1290a5,_0x193889=TestInfo[_0x41007b(0x136)](_0x414b61);else this[_0x41007b(0x130)]&&_0x5e20f9[_0x41007b(0x10a)](this[_0x41007b(0x130)][_0x41007b(0x147)],FRAMEWORKS['JEST'])?(_0x414b61=this[_0x41007b(0x14d)][_0x41007b(0x112)](_0x5849f9[_0x41007b(0x171)]),this[_0x41007b(0x170)][_0x41007b(0x177)](_0x41007b(0x158)+_0x414b61)):(_0x414b61=TestInfo['getTestIdentifierFromTestInfo'](_0x5849f9[_0x41007b(0x171)],_0x5849f9[_0x41007b(0x171)][_0x41007b(0x15b)]),_0x193889=TestInfo[_0x41007b(0x136)](_0x414b61));const _0x3dccfb=await TestInfo[_0x41007b(0x185)](_0x414b61),_0xc08976=_0x5849f9[_0x41007b(0x187)],_0x35d2f9=AutomationFramework[_0x41007b(0x123)](_0xc08976,PlaywrightDriverModule[_0x41007b(0x141)])||AutomationFramework[_0x41007b(0x123)](_0xc08976,PuppeteerDriverModule['KEY_PLATFORM_INDEX']),_0x58479b=_0x3dccfb?.[TestFrameworkConstants[_0x41007b(0x16b)]]||this[_0x41007b(0x130)]&&this[_0x41007b(0x130)][_0x41007b(0x147)],_0xa783ce=_0x3dccfb?.[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]||this[_0x41007b(0x130)]&&this[_0x41007b(0x130)][_0x41007b(0x151)],_0x2b1fa4=TestFrameworkState[_0x41007b(0x146)]['toString']()['split']('.')[0x1],_0x25187e=HookState[_0x41007b(0x134)][_0x41007b(0x139)]()[_0x41007b(0x132)]('.')[0x1],_0x4068fb=_0xc08976['getContext'](),_0x201f0d=!!_0xc08976[_0x41007b(0x13b)]&&_0x5e20f9[_0x41007b(0x10c)](_0xc08976[_0x41007b(0x13b)][_0x41007b(0x120)](),FRAMEWORKS[_0x41007b(0x129)][_0x41007b(0x120)]());let _0x49cf41=AutomationFramework['getState'](_0xc08976,PlaywrightDriverModule[_0x41007b(0x162)],'')||AutomationFramework[_0x41007b(0x123)](_0xc08976,PuppeteerDriverModule[_0x41007b(0x162)],'');_0x5e20f9[_0x41007b(0x157)](!_0x49cf41,_0x201f0d)&&(_0x49cf41=PlaywrightDriverModule[_0x41007b(0x15a)](_0xc08976,_0x5849f9['testInfo']));const _0x32ae20=LoadTestModule['isLTSSession']()?LoadTestModule[_0x41007b(0x122)]():AutomationFramework[_0x41007b(0x123)](_0xc08976,PlaywrightDriverModule[_0x41007b(0x116)],'')||AutomationFramework[_0x41007b(0x123)](_0xc08976,PuppeteerDriverModule[_0x41007b(0x116)],''),_0x844941={'provider':_0x5e20f9[_0x41007b(0x118)](getPlaywrightProvider,_0x49cf41,_0x201f0d),'frameworkName':_0xc08976['frameworkName'],'frameworkVersion':_0xc08976[_0x41007b(0x14c)],'frameworkSessionId':_0x32ae20,'ref':_0xc08976[_0x41007b(0x155)](),'hubUrl':_0x49cf41,'product':_0x5e20f9['iKGuh'](getProductForSession)};let _0x1eea61=AutomationFramework[_0x41007b(0x123)](_0xc08976,PlaywrightDriverModule[_0x41007b(0x156)],null)||AutomationFramework[_0x41007b(0x123)](_0xc08976,PuppeteerDriverModule[_0x41007b(0x156)],null);const _0x146c9e=_0x71a290=>{const _0x56be1c=_0x41007b,_0x58006c={'RzCls':function(_0x1622b9,_0x1aad5f){return _0x5e20f9['siSmF'](_0x1622b9,_0x1aad5f);},'YprCR':function(_0x4ec56c,_0x29f90f){return _0x5e20f9['siSmF'](_0x4ec56c,_0x29f90f);},'tSqtC':_0x5e20f9[_0x56be1c(0x17b)],'JIBbS':function(_0x3f51ac,_0x33a75d){const _0x58b231=_0x56be1c;return _0x5e20f9[_0x58b231(0x159)](_0x3f51ac,_0x33a75d);},'plcxw':function(_0x1c4525,_0x36ba51){const _0x3e748e=_0x56be1c;return _0x5e20f9[_0x3e748e(0x140)](_0x1c4525,_0x36ba51);}};if(!_0x71a290)return!![];const _0x457587=Object[_0x56be1c(0x18a)](_0x71a290)[_0x56be1c(0x173)](([_0x4715e6,_0x239799])=>{const _0x26cd1b=_0x56be1c;if(_0x58006c[_0x26cd1b(0x190)](_0x239799,undefined)||_0x58006c[_0x26cd1b(0x190)](_0x239799,null))return![];if(_0x58006c[_0x26cd1b(0x10f)](_0x4715e6,_0x58006c['tSqtC']))return _0x58006c['JIBbS'](Object[_0x26cd1b(0x127)](_0x58006c[_0x26cd1b(0x133)](_0x239799,{}))[_0x26cd1b(0x186)],0x0);return!![];});return _0x5e20f9['siSmF'](_0x457587[_0x56be1c(0x186)],0x0);};if(_0x5e20f9[_0x41007b(0x11f)](_0x146c9e,_0x1eea61)){const _0x5309e7=PlaywrightSessionDetails[_0x41007b(0x168)]();!_0x5e20f9['xgHMk'](_0x146c9e,_0x5309e7)&&(_0x1eea61=_0x5309e7,AutomationFramework['setState'](_0xc08976,PlaywrightDriverModule[_0x41007b(0x156)],_0x5309e7));}const _0x46c15d=_0x1eea61?Buffer[_0x41007b(0x16a)](JSON['stringify'](_0x1eea61))[_0x41007b(0x139)](_0x5e20f9[_0x41007b(0x18f)]):null,_0x2c949c={'hash':_0x4068fb[_0x41007b(0x14a)](),'threadId':_0x4068fb[_0x41007b(0x113)]()[_0x41007b(0x139)](),'processId':_0x4068fb[_0x41007b(0x13e)]()['toString']()},_0x2f6e={};_0x2f6e[_0x41007b(0x163)]=_0x414b61;const _0x58a8ed={};_0x58a8ed[_0x41007b(0x167)]=_0x193889;const _0x346e7a={'platformIndex':_0x35d2f9,'testFrameworkName':_0x58479b,'testFrameworkVersion':_0xa783ce,'testFrameworkState':_0x2b1fa4,'testHookState':_0x25187e,...this[_0x41007b(0x130)]&&_0x5e20f9['ULgsM'](this[_0x41007b(0x130)][_0x41007b(0x147)],FRAMEWORKS[_0x41007b(0x12f)])?_0x2f6e:_0x58a8ed,'automationSession':_0x844941,'capabilities':_0x46c15d,'executionContext':_0x2c949c};this['logger']['debug']('onPageCreate\x20CBTSession\x20payload:\x20'+util['format'](_0x346e7a));const _0x257536=await GrpcClient[_0x41007b(0x15e)]()[_0x41007b(0x144)](_0x346e7a);this[_0x41007b(0x170)][_0x41007b(0x177)](_0x41007b(0x131)+_0x1290a5+(this[_0x41007b(0x130)]&&_0x5e20f9['dEXRA'](this[_0x41007b(0x130)][_0x41007b(0x147)],FRAMEWORKS['JEST'])?',\x20test_identifier:\x20'+_0x414b61:''));}}catch(_0x50d337){this[_0x41007b(0x170)][_0x41007b(0x10b)]('Error\x20in\x20sending\x20CBTSession:\x20'+util[_0x41007b(0x18c)](_0x50d337));}}}TestHubModule['MODULE_NAME']='TestHubModule',TestHubModule[a119_0x1c00e4(0x13d)]='test_deferred',module[a119_0x1c00e4(0x17d)]=TestHubModule;
|
|
1
|
+
function a119_0x758e(_0x265350,_0x23326b){const _0x470472=a119_0x4704();return a119_0x758e=function(_0x758eb3,_0x32702f){_0x758eb3=_0x758eb3-0x147;let _0x5667ff=_0x470472[_0x758eb3];return _0x5667ff;},a119_0x758e(_0x265350,_0x23326b);}const a119_0x2763cc=a119_0x758e;(function(_0x116811,_0x33fffd){const _0x1e4c93=a119_0x758e,_0xe9a7fc=_0x116811();while(!![]){try{const _0x197965=-parseInt(_0x1e4c93(0x1b1))/0x1*(parseInt(_0x1e4c93(0x1c1))/0x2)+parseInt(_0x1e4c93(0x1b2))/0x3*(-parseInt(_0x1e4c93(0x158))/0x4)+-parseInt(_0x1e4c93(0x189))/0x5*(-parseInt(_0x1e4c93(0x188))/0x6)+-parseInt(_0x1e4c93(0x196))/0x7*(-parseInt(_0x1e4c93(0x19b))/0x8)+-parseInt(_0x1e4c93(0x165))/0x9*(parseInt(_0x1e4c93(0x1ab))/0xa)+-parseInt(_0x1e4c93(0x1b4))/0xb+-parseInt(_0x1e4c93(0x1b9))/0xc*(-parseInt(_0x1e4c93(0x16e))/0xd);if(_0x197965===_0x33fffd)break;else _0xe9a7fc['push'](_0xe9a7fc['shift']());}catch(_0x14c8cf){_0xe9a7fc['push'](_0xe9a7fc['shift']());}}}(a119_0x4704,0xbb9c0));const util=require(a119_0x2763cc(0x193)),BaseModule=require(a119_0x2763cc(0x1bd)),{createClassLogger}=require('../../../helpers/classLogger.js'),AutomationFramework=require(a119_0x2763cc(0x171)),AutomationFrameworkState=require('../state/automationFrameworkState.js'),HookState=require('../state/hookState.js'),TestFramework=require('../framework/testFramework.js'),TestFrameworkState=require('../state/testFrameworkState.js'),PlaywrightDriverModule=require(a119_0x2763cc(0x164)),PuppeteerDriverModule=require(a119_0x2763cc(0x1c0)),PlaywrightSessionDetails=require(a119_0x2763cc(0x163)),TestFrameworkConstants=require('../framework/constants/testFrameworkConstants.js'),GrpcClient=require('../grpcClient.js'),CLIUtils=require('../cliUtils.js'),TestInfo=require(a119_0x2763cc(0x1b5)),testHubConstants=require(a119_0x2763cc(0x1a5)),{FRAMEWORKS}=require(a119_0x2763cc(0x1ba)),helper=require(a119_0x2763cc(0x198)),LoadTestModule=require(a119_0x2763cc(0x17a)),JestUtils=require('../utils/jest-utils.js'),BrowserstackCLI=require('../browserstackCLI.js'),{getPlaywrightProvider,getProductForSession}=require(a119_0x2763cc(0x198));class TestHubModule extends BaseModule{[a119_0x2763cc(0x1af)]=createClassLogger(a119_0x2763cc(0x1a9));constructor(_0x98ac29,_0x41119c=null){const _0x165f0c=a119_0x2763cc,_0x847f30={'ZTWAL':_0x165f0c(0x17e),'wHTsn':_0x165f0c(0x1a9),'ITXWP':function(_0x42fd8c,_0x2bfca8){return _0x42fd8c(_0x2bfca8);},'FizKE':_0x165f0c(0x151)},_0x19901d=_0x847f30[_0x165f0c(0x153)]['split']('|');let _0x35cff=0x0;while(!![]){switch(_0x19901d[_0x35cff++]){case'0':process[_0x165f0c(0x18b)][testHubConstants[_0x165f0c(0x179)][_0x165f0c(0x17d)]]=this['testhubConfig'][_0x165f0c(0x15c)]();continue;case'1':this[_0x165f0c(0x1c4)]=_0x847f30[_0x165f0c(0x152)];continue;case'2':process[_0x165f0c(0x18b)][testHubConstants[_0x165f0c(0x179)]['BROWSERSTACK_TESTHUB_UUID']]=this[_0x165f0c(0x199)]['getBuildHashedId']();continue;case'3':Object[_0x165f0c(0x14f)](TestFrameworkState)['forEach'](_0x53ab5e=>{const _0x308f8e=_0x165f0c;Object['values'](HookState)[_0x308f8e(0x168)](_0x465a8d=>{const _0x3ebd86=_0x308f8e;TestFramework['registerObserver'](_0x53ab5e,_0x465a8d,this['onAllTestEvents'][_0x3ebd86(0x186)](this));});});continue;case'4':this[_0x165f0c(0x1bf)]=new JestUtils();continue;case'5':super(_0x41119c);continue;case'6':_0x847f30[_0x165f0c(0x16a)](require,_0x847f30[_0x165f0c(0x1b8)])[_0x165f0c(0x192)]=this[_0x165f0c(0x199)]['getBuildHashedId']();continue;case'7':this[_0x165f0c(0x199)]=_0x98ac29;continue;case'8':AutomationFramework[_0x165f0c(0x1a2)](AutomationFrameworkState[_0x165f0c(0x18c)],HookState['POST'],this[_0x165f0c(0x1a0)]['bind'](this));continue;}break;}}['getModuleName'](){const _0x38da67=a119_0x2763cc;return TestHubModule[_0x38da67(0x1a8)];}[a119_0x2763cc(0x15a)](_0x2f4910){const _0x2da675=a119_0x2763cc,_0x2430ac={};_0x2430ac['tInxd']=function(_0x43903f,_0x3277c4){return _0x43903f===_0x3277c4;};const _0x75f69a=_0x2430ac,_0x508e8b=_0x2f4910[_0x2da675(0x1a7)],_0x1f2bcb=_0x508e8b[_0x2da675(0x1a4)]();(_0x75f69a[_0x2da675(0x194)](_0x1f2bcb,TestFrameworkState[_0x2da675(0x15b)])||CLIUtils[_0x2da675(0x1be)](_0x1f2bcb['toString']()[_0x2da675(0x19d)]('.')[0x1]))&&this[_0x2da675(0x1b6)](_0x2f4910);}async[a119_0x2763cc(0x1b6)](_0xb7a53a){const _0x188b57=a119_0x2763cc,_0x313eb4={'TmVBn':function(_0x276d97,_0x357cf3){return _0x276d97(_0x357cf3);},'LRtbP':'../browserstackCLI.js','JOluI':function(_0x25a10c,_0x25f5e3){return _0x25a10c===_0x25f5e3;},'uNJAv':_0x188b57(0x1bb)};try{const _0x29eefb=_0x313eb4[_0x188b57(0x162)](require,_0x313eb4[_0x188b57(0x1c5)]),_0x40eac5=_0x29eefb['getInstance']()['getTestFramework']()[_0x188b57(0x19a)](_0xb7a53a);if(!_0x40eac5||_0x313eb4[_0x188b57(0x190)](Object[_0x188b57(0x1a6)](_0x40eac5)[_0x188b57(0x1c2)],0x0)){this[_0x188b57(0x1af)][_0x188b57(0x184)](_0x313eb4[_0x188b57(0x1a3)]);return;}const _0x371102=await GrpcClient[_0x188b57(0x17f)]()[_0x188b57(0x19c)](_0x40eac5);this['logger'][_0x188b57(0x184)](_0x188b57(0x1bc)+_0x40eac5[_0x188b57(0x1a1)]+_0x188b57(0x195)+_0x40eac5[_0x188b57(0x157)]);}catch(_0x4b5a4d){this[_0x188b57(0x1af)][_0x188b57(0x175)](_0x188b57(0x18d)+util[_0x188b57(0x16c)](_0x4b5a4d));}}async[a119_0x2763cc(0x1a0)](_0x32d98b){const _0x34409a=a119_0x2763cc,_0x4918d8={'eaLjT':function(_0xff1236,_0x469c53){return _0xff1236===_0x469c53;},'mVEEM':function(_0x5001de,_0x59931b){return _0x5001de===_0x59931b;},'OFlMS':'capabilities','MgBOy':function(_0x3d4d21,_0x2274c0){return _0x3d4d21>_0x2274c0;},'zdupw':function(_0x56776c,_0x67cc79){return _0x56776c||_0x67cc79;},'YlSJY':function(_0x562d9c,_0x432491){return _0x562d9c===_0x432491;},'qMbHt':'onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','wzyUN':function(_0x569fba,_0x347b84){return _0x569fba===_0x347b84;},'yYtBq':function(_0x426c36,_0x26c0f2){return _0x426c36===_0x26c0f2;},'fpTCX':function(_0x332ffe,_0x364afe){return _0x332ffe&&_0x364afe;},'xktiE':function(_0x113b0b,_0x3d5581,_0x30c645){return _0x113b0b(_0x3d5581,_0x30c645);},'FEJQY':function(_0x4b2155){return _0x4b2155();},'MRROg':function(_0x7584e5,_0x5de704){return _0x7584e5(_0x5de704);},'VwKWR':function(_0xd8796a,_0x383217){return _0xd8796a(_0x383217);},'nKYdo':_0x34409a(0x148),'seBnf':function(_0x5494e5,_0x5ce49e){return _0x5494e5===_0x5ce49e;}};try{if(_0x32d98b[_0x34409a(0x147)]){const _0x13a794=this[_0x34409a(0x15e)](_0x32d98b);this[_0x34409a(0x1af)][_0x34409a(0x184)](_0x34409a(0x197)+_0x13a794);if(this[_0x34409a(0x18a)]&&_0x4918d8[_0x34409a(0x16d)](this[_0x34409a(0x18a)]['name'],FRAMEWORKS['JEST'])&&!_0x32d98b[_0x34409a(0x178)]){this[_0x34409a(0x1af)][_0x34409a(0x184)](_0x4918d8['qMbHt']);return;}let _0x49dc93,_0x33d47e;if(this[_0x34409a(0x18a)]&&_0x4918d8['mVEEM'](this[_0x34409a(0x18a)][_0x34409a(0x1c4)],FRAMEWORKS[_0x34409a(0x17c)]))_0x49dc93=_0x13a794,_0x33d47e=TestInfo[_0x34409a(0x174)](_0x49dc93);else this[_0x34409a(0x18a)]&&_0x4918d8[_0x34409a(0x156)](this[_0x34409a(0x18a)][_0x34409a(0x1c4)],FRAMEWORKS['JEST'])?(_0x49dc93=this[_0x34409a(0x1bf)]['recreateIdentifierFromTestInfo'](_0x32d98b[_0x34409a(0x178)]),this[_0x34409a(0x1af)]['debug'](_0x34409a(0x173)+_0x49dc93)):(_0x49dc93=TestInfo[_0x34409a(0x170)](_0x32d98b['testInfo'],_0x32d98b[_0x34409a(0x178)]['retry']),_0x33d47e=TestInfo[_0x34409a(0x174)](_0x49dc93));const _0x2c165c=await TestInfo['getTestDetailsAsync'](_0x49dc93),_0x85d117=_0x32d98b['instance'],_0x50816e=AutomationFramework['getState'](_0x85d117,PlaywrightDriverModule[_0x34409a(0x180)])||AutomationFramework[_0x34409a(0x154)](_0x85d117,PuppeteerDriverModule[_0x34409a(0x180)]),_0x579ac9=_0x2c165c?.[TestFrameworkConstants[_0x34409a(0x18f)]]||this[_0x34409a(0x18a)]&&this[_0x34409a(0x18a)][_0x34409a(0x1c4)],_0x15c8fd=_0x2c165c?.[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]||this['testFrameworkData']&&this[_0x34409a(0x18a)][_0x34409a(0x14e)],_0x541555=TestFrameworkState[_0x34409a(0x15b)][_0x34409a(0x150)]()['split']('.')[0x1],_0x4b7e5d=HookState[_0x34409a(0x1aa)][_0x34409a(0x150)]()[_0x34409a(0x19d)]('.')[0x1],_0x5bd148=_0x85d117['getContext'](),_0x385fe2=!!_0x85d117[_0x34409a(0x15f)]&&_0x4918d8[_0x34409a(0x155)](_0x85d117['frameworkName'][_0x34409a(0x191)](),FRAMEWORKS[_0x34409a(0x16f)][_0x34409a(0x191)]());let _0x9e0b38=AutomationFramework[_0x34409a(0x154)](_0x85d117,PlaywrightDriverModule[_0x34409a(0x177)],'')||AutomationFramework[_0x34409a(0x154)](_0x85d117,PuppeteerDriverModule[_0x34409a(0x177)],'');_0x4918d8[_0x34409a(0x183)](!_0x9e0b38,_0x385fe2)&&(_0x9e0b38=PlaywrightDriverModule[_0x34409a(0x149)](_0x85d117,_0x32d98b[_0x34409a(0x178)]));const _0x2efe00=LoadTestModule[_0x34409a(0x160)]()?LoadTestModule[_0x34409a(0x159)]():AutomationFramework[_0x34409a(0x154)](_0x85d117,PlaywrightDriverModule['KEY_SESSION_ID'],'')||AutomationFramework[_0x34409a(0x154)](_0x85d117,PuppeteerDriverModule[_0x34409a(0x17b)],''),_0x9ab09a={'provider':_0x4918d8[_0x34409a(0x167)](getPlaywrightProvider,_0x9e0b38,_0x385fe2),'frameworkName':_0x85d117[_0x34409a(0x15f)],'frameworkVersion':_0x85d117[_0x34409a(0x19e)],'frameworkSessionId':_0x2efe00,'ref':_0x85d117['getRef'](),'hubUrl':_0x9e0b38,'product':_0x4918d8[_0x34409a(0x19f)](getProductForSession)};let _0x5408b5=AutomationFramework[_0x34409a(0x154)](_0x85d117,PlaywrightDriverModule[_0x34409a(0x187)],null)||AutomationFramework[_0x34409a(0x154)](_0x85d117,PuppeteerDriverModule[_0x34409a(0x187)],null);const _0x13a373=_0x4c7658=>{const _0x3c8382=_0x34409a;if(!_0x4c7658)return!![];const _0x1d83f5=Object[_0x3c8382(0x1ac)](_0x4c7658)[_0x3c8382(0x166)](([_0x2d8ed5,_0x2e72ae])=>{const _0x2f685b=_0x3c8382;if(_0x4918d8[_0x2f685b(0x14c)](_0x2e72ae,undefined)||_0x4918d8[_0x2f685b(0x16d)](_0x2e72ae,null))return![];if(_0x4918d8[_0x2f685b(0x16d)](_0x2d8ed5,_0x4918d8['OFlMS']))return _0x4918d8[_0x2f685b(0x1b0)](Object['keys'](_0x4918d8[_0x2f685b(0x176)](_0x2e72ae,{}))['length'],0x0);return!![];});return _0x4918d8['YlSJY'](_0x1d83f5[_0x3c8382(0x1c2)],0x0);};if(_0x4918d8[_0x34409a(0x181)](_0x13a373,_0x5408b5)){const _0x2a5c44=PlaywrightSessionDetails[_0x34409a(0x15d)]();!_0x4918d8[_0x34409a(0x14b)](_0x13a373,_0x2a5c44)&&(_0x5408b5=_0x2a5c44,AutomationFramework['setState'](_0x85d117,PlaywrightDriverModule[_0x34409a(0x187)],_0x2a5c44));}const _0x10125b=_0x5408b5?Buffer['from'](JSON[_0x34409a(0x16b)](_0x5408b5))[_0x34409a(0x150)](_0x4918d8[_0x34409a(0x14d)]):null,_0x1dbc0f={'hash':_0x5bd148[_0x34409a(0x169)](),'threadId':_0x5bd148[_0x34409a(0x1c3)]()[_0x34409a(0x150)](),'processId':_0x5bd148['getProcessId']()['toString']()},_0x3c26cd={};_0x3c26cd[_0x34409a(0x182)]=_0x49dc93;const _0x46e44a={};_0x46e44a[_0x34409a(0x185)]=_0x33d47e;const _0x5f37db={'platformIndex':_0x50816e,'testFrameworkName':_0x579ac9,'testFrameworkVersion':_0x15c8fd,'testFrameworkState':_0x541555,'testHookState':_0x4b7e5d,...this[_0x34409a(0x18a)]&&_0x4918d8[_0x34409a(0x18e)](this[_0x34409a(0x18a)][_0x34409a(0x1c4)],FRAMEWORKS[_0x34409a(0x1b3)])?_0x3c26cd:_0x46e44a,'automationSession':_0x9ab09a,'capabilities':_0x10125b,'executionContext':_0x1dbc0f};this['logger']['debug'](_0x34409a(0x1b7)+util[_0x34409a(0x16c)](_0x5f37db));const _0x25a7e3=await GrpcClient[_0x34409a(0x17f)]()['testSessionEvent'](_0x5f37db);this[_0x34409a(0x1af)][_0x34409a(0x184)]('onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20'+_0x13a794+(this[_0x34409a(0x18a)]&&_0x4918d8['seBnf'](this[_0x34409a(0x18a)][_0x34409a(0x1c4)],FRAMEWORKS[_0x34409a(0x1b3)])?_0x34409a(0x172)+_0x49dc93:''));}}catch(_0x12757c){this[_0x34409a(0x1af)]['error'](_0x34409a(0x14a)+util[_0x34409a(0x16c)](_0x12757c));}}}TestHubModule[a119_0x2763cc(0x1a8)]='TestHubModule',TestHubModule[a119_0x2763cc(0x161)]=a119_0x2763cc(0x1ad),module[a119_0x2763cc(0x1ae)]=TestHubModule;function a119_0x4704(){const _0x465811=['3bMsmQe','JEST','14513807bZatra','../TestInfo.js','sendTestFrameworkEvent','onPageCreate\x20CBTSession\x20payload:\x20','FizKE','24tMdrbq','../../../helpers/test-observability/constants.js','sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event','sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20','./baseModule','matchHookRegex','jestUtils','./puppeteerDriverModule.js','2nEYtcx','length','getThreadId','name','LRtbP','page','base64','resolveHubUrl','Error\x20in\x20sending\x20CBTSession:\x20','VwKWR','eaLjT','nKYdo','version','values','toString','../browserstackCLI.js','wHTsn','ZTWAL','getState','yYtBq','wzyUN','hookState','4953244tiybnW','getLTSSessionId','onAllTestEvents','TEST','getJwt','getDetails','getTestId','frameworkName','isLTSSession','KEY_TEST_DEFERRED','TmVBn','../../playwright/sessionDetails.js','./playwrightDriverModule.js','9eiWQfl','filter','xktiE','forEach','getId','ITXWP','stringify','format','mVEEM','20642414VHosaL','PLAYWRIGHT','getTestIdentifierFromTestInfo','../framework/automationFramework.js',',\x20test_identifier:\x20','onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20','getTestUUID','error','zdupw','KEY_HUB_URL','testInfo','ENV_VAR','./loadTestModule.js','KEY_SESSION_ID','CUCUMBER','BROWSERSTACK_TESTHUB_JWT','5|1|7|4|8|3|0|2|6','getInstance','KEY_PLATFORM_INDEX','MRROg','test_identifier','fpTCX','debug','testUuid','bind','KEY_CAPABILITIES','3228bXpmKT','10685GkuohZ','testFrameworkData','env','CREATE','Error\x20in\x20sendTestFrameworkEvent:\x20','YlSJY','KEY_TEST_FRAMEWORK_NAME','JOluI','toLowerCase','O11yHashedID','util','tInxd','\x20hookState:\x20','105fWktBX','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','../../../helpers/helper.js','testhubConfig','createTestFrameworkEventPayload','407768jJWcBN','testFrameworkEvent','split','frameworkVersion','FEJQY','onPageCreate','testFrameworkState','registerObserver','uNJAv','getCurrentTestState','../../../helpers/testhub/constants','keys','instance','MODULE_NAME','TestHubModule','POST','2929020Bdnkww','entries','test_deferred','exports','logger','MgBOy','1470929fbdMXG'];a119_0x4704=function(){return _0x465811;};return a119_0x4704();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a120_0x4d05c9=a120_0xb655;(function(_0x3e90d5,_0x3066f9){const _0x3b86c7=a120_0xb655,_0x3af95f=_0x3e90d5();while(!![]){try{const _0x53adfb=parseInt(_0x3b86c7(0xe2))/0x1*(parseInt(_0x3b86c7(0xb6))/0x2)+parseInt(_0x3b86c7(0xc8))/0x3*(-parseInt(_0x3b86c7(0xaf))/0x4)+-parseInt(_0x3b86c7(0xb5))/0x5*(-parseInt(_0x3b86c7(0xb9))/0x6)+-parseInt(_0x3b86c7(0xcd))/0x7*(parseInt(_0x3b86c7(0xf7))/0x8)+parseInt(_0x3b86c7(0xe1))/0x9*(-parseInt(_0x3b86c7(0xf2))/0xa)+-parseInt(_0x3b86c7(0xcc))/0xb+parseInt(_0x3b86c7(0xed))/0xc;if(_0x53adfb===_0x3066f9)break;else _0x3af95f['push'](_0x3af95f['shift']());}catch(_0x556f35){_0x3af95f['push'](_0x3af95f['shift']());}}}(a120_0x4bc5,0xafc30));function a120_0x4bc5(){const _0x19facd=['5060232RgQqqr','zQGII','size','get','pmrgg','LxkhR','BUILD','runStateStore:\x20fetch\x20','),\x20treating\x20as\x20un-acked','resolve','runStateStore:\x20publish\x20','winstonLogger','./grpcClient','\x20failed\x20(','push','9189XqkYCH','iWEBQ','concat','lVRVw','14038222wNXEAp','3236345lRccqN','appendTestState','message','object','JBVmK','delete','\x20was\x20truncated\x20by\x20the\x20binary\x20(','hsFKL','APPEND','runStateStore:\x20merge\x20','split','setBuildState','../../helpers/logger','cRLdh','terminal','sYcbm','mergeTestState','aeveZ','hCtDq','DMeht','504wxCCOv','3fpsAew','ivXln','sNrzK','assign','length','NwiiE','HnazK','keys','publishRunState','forEach','error','24407592GqaSNj','GhPIG','fetchRunState','RmMOZ','daxRj','92670zgfJDQ','getTestState','set','value','mergeDelta','8WhMoPW','then','\x20entr(y/ies)\x20in-memory','\x20refused\x20by\x20binary\x20(','\x20not\x20acked\x20by\x20binary,\x20holding\x20','TSrhL','\x20not\x20acked\x20by\x20binary,\x20keeping\x20value\x20in-memory','zvMzN','gJByv','WZolK','isArray','mode','acked','\x20not\x20acked\x20by\x20binary,\x20accumulating\x20the\x20delta\x20in-memory','),\x20dropping\x20the\x20entry','the\x20earlier\x20accumulation','DEEP_MERGE','clear','lTeKF','TEST','\x20rejected\x20(','REPLACE','236KEqJvY','getInstance','),\x20dropping\x20the\x20value','debug','appendBuildState','runStateStore:\x20append\x20','5UIjqEj','187192HXwCWh','setTestState','runStateStore:\x20flushing\x20'];a120_0x4bc5=function(){return _0x19facd;};return a120_0x4bc5();}function a120_0xb655(_0xce25d6,_0x24f5b0){const _0x4bc5a7=a120_0x4bc5();return a120_0xb655=function(_0xb65549,_0x23685d){_0xb65549=_0xb65549-0x9a;let _0x1caf25=_0x4bc5a7[_0xb65549];return _0x1caf25;},a120_0xb655(_0xce25d6,_0x24f5b0);}const GrpcClient=require(a120_0x4d05c9(0xc5)),logger=require(a120_0x4d05c9(0xd9))[a120_0x4d05c9(0xc4)],SCOPE_TEST=a120_0x4d05c9(0xac),SCOPE_BUILD=a120_0x4d05c9(0xbf),localReplaceFallback=new Map(),localAppendBuffer=new Map(),localMergeBuffer=new Map(),keyChains=new Map(),isPlainObject=_0x5c8142=>_0x5c8142!==null&&typeof _0x5c8142===a120_0x4d05c9(0xd0)&&!Array[a120_0x4d05c9(0xa3)](_0x5c8142),mergeDelta=(_0x91c025,_0x14cbc4)=>{const _0x44f4f2=a120_0x4d05c9,_0x4f747e={'cRLdh':function(_0x15bd00,_0xe57b04){return _0x15bd00(_0xe57b04);},'ivXln':function(_0x3a7f3f,_0x356311,_0x4b55d6){return _0x3a7f3f(_0x356311,_0x4b55d6);},'sNrzK':function(_0x5e7b73,_0x48b0af){return _0x5e7b73(_0x48b0af);}},_0x41f4e6=Object[_0x44f4f2(0xe5)]({},_0x4f747e[_0x44f4f2(0xda)](isPlainObject,_0x91c025)?_0x91c025:{});if(!_0x4f747e[_0x44f4f2(0xe4)](isPlainObject,_0x14cbc4))return _0x41f4e6;return Object[_0x44f4f2(0xe9)](_0x14cbc4)['forEach'](_0x5639c5=>{const _0x21aafc=_0x44f4f2;_0x41f4e6[_0x5639c5]=_0x4f747e['cRLdh'](isPlainObject,_0x41f4e6[_0x5639c5])&&_0x4f747e[_0x21aafc(0xda)](isPlainObject,_0x14cbc4[_0x5639c5])?_0x4f747e[_0x21aafc(0xe3)](mergeDelta,_0x41f4e6[_0x5639c5],_0x14cbc4[_0x5639c5]):_0x14cbc4[_0x5639c5];}),_0x41f4e6;},localKey=(_0x55b25e,_0x2fa876,_0xa5f62)=>_0x55b25e===SCOPE_TEST?_0x55b25e+':'+_0xa5f62+':'+_0x2fa876:_0x55b25e+':'+_0x2fa876,rpcPublish=async(_0x2bde9f,_0x4bee32,_0x440658,_0xfafced,_0x3f1da6)=>{const _0x2e3f66=a120_0x4d05c9,_0x1de412={};_0x1de412[_0x2e3f66(0xa1)]='publish\x20threw';const _0x291d61=_0x1de412;try{return await GrpcClient[_0x2e3f66(0xb0)]()[_0x2e3f66(0xea)](_0x2bde9f,_0x4bee32,_0x440658,_0xfafced,_0x3f1da6);}catch(_0x360d0c){logger['debug'](_0x2e3f66(0xc3)+_0x2bde9f+':'+_0x4bee32+'\x20rejected\x20('+(_0x360d0c&&_0x360d0c[_0x2e3f66(0xcf)])+_0x2e3f66(0xc1));const _0x46f96a={};return _0x46f96a[_0x2e3f66(0xa5)]=![],_0x46f96a[_0x2e3f66(0xdb)]=![],_0x46f96a[_0x2e3f66(0xec)]=_0x360d0c&&_0x360d0c[_0x2e3f66(0xcf)]||_0x291d61[_0x2e3f66(0xa1)],_0x46f96a;}},chained=(_0x407542,_0xc7e2d9)=>{const _0x5aca2f=a120_0x4d05c9,_0x267a91={};_0x267a91['TSrhL']=function(_0x481c47,_0x59e6b4){return _0x481c47===_0x59e6b4;};const _0x21082e=_0x267a91,_0x9a0c7a=keyChains[_0x5aca2f(0xbc)](_0x407542)||Promise[_0x5aca2f(0xc2)](),_0x287e08=_0x9a0c7a[_0x5aca2f(0x9a)](_0xc7e2d9,_0xc7e2d9),_0x2294ec=_0x287e08[_0x5aca2f(0x9a)](()=>{},()=>{});return keyChains[_0x5aca2f(0xf4)](_0x407542,_0x2294ec),_0x2294ec[_0x5aca2f(0x9a)](()=>{const _0x392da4=_0x5aca2f;_0x21082e[_0x392da4(0x9e)](keyChains[_0x392da4(0xbc)](_0x407542),_0x2294ec)&&keyChains[_0x392da4(0xd2)](_0x407542);}),_0x287e08;},publish=(_0x15c41f,_0x265e07,_0x956efe,_0x1b8cab,_0x287e7b)=>chained(localKey(_0x15c41f,_0x265e07,_0x956efe),async()=>{const _0x52e1bf=a120_0x4d05c9,_0x916a81={'JBVmK':function(_0x1d4f47,_0xf3ba28,_0x52508c,_0x5cf20b){return _0x1d4f47(_0xf3ba28,_0x52508c,_0x5cf20b);},'DMeht':function(_0x4b25a3,_0xd9f9e8){return _0x4b25a3===_0xd9f9e8;},'pmrgg':_0x52e1bf(0xd5),'NwiiE':function(_0x14f918,_0x370915){return _0x14f918<_0x370915;},'sYcbm':function(_0x27cde8,_0x47ab36){return _0x27cde8===_0x47ab36;},'zvMzN':function(_0x543ba1,_0x465fb2){return _0x543ba1-_0x465fb2;},'bxwiM':function(_0x5ca93e,_0x5e4f1c){return _0x5ca93e>_0x5e4f1c;},'LxkhR':function(_0x23c4dc,_0x14c4b2,_0x1f7604,_0x15dfea,_0xf685d2,_0x203fa4){return _0x23c4dc(_0x14c4b2,_0x1f7604,_0x15dfea,_0xf685d2,_0x203fa4);},'hCtDq':function(_0x534d0a,_0x31da78){return _0x534d0a>_0x31da78;},'lTeKF':function(_0x40ece0,_0x2c71d8){return _0x40ece0===_0x2c71d8;},'hsFKL':_0x52e1bf(0xa9),'RmMOZ':function(_0x357c86,_0x2b3e0f,_0x3a1b6e){return _0x357c86(_0x2b3e0f,_0x3a1b6e);},'zQGII':_0x52e1bf(0xa8),'lVRVw':'nothing','ZPPkD':function(_0x4de58f,_0x36ad08,_0x56cccb,_0x258091,_0x75f5d1,_0x549c80){return _0x4de58f(_0x36ad08,_0x56cccb,_0x258091,_0x75f5d1,_0x549c80);}},_0x1092b2=_0x916a81[_0x52e1bf(0xd1)](localKey,_0x15c41f,_0x265e07,_0x956efe);if(_0x916a81[_0x52e1bf(0xe0)](_0x287e7b,_0x916a81[_0x52e1bf(0xbd)])){const _0x502c6d=localAppendBuffer['get'](_0x1092b2)||[],_0x1ac986=_0x502c6d[_0x52e1bf(0xca)]([_0x1b8cab]),_0xbe645=[];let _0x1a1d56=![];for(let _0xd73f60=0x0;_0x916a81[_0x52e1bf(0xe7)](_0xd73f60,_0x1ac986[_0x52e1bf(0xe6)]);_0xd73f60++){const _0x22984a=_0x916a81[_0x52e1bf(0xdc)](_0xd73f60,_0x916a81[_0x52e1bf(0xa0)](_0x1ac986['length'],0x1));if(_0x916a81['bxwiM'](_0xbe645[_0x52e1bf(0xe6)],0x0)){_0xbe645[_0x52e1bf(0xc7)](_0x1ac986[_0xd73f60]);continue;}const _0x1b265d=await _0x916a81[_0x52e1bf(0xbe)](rpcPublish,_0x15c41f,_0x265e07,_0x956efe,_0x1ac986[_0xd73f60],_0x916a81[_0x52e1bf(0xbd)]);if(_0x1b265d[_0x52e1bf(0xdb)])logger[_0x52e1bf(0xb2)](_0x52e1bf(0xb4)+_0x15c41f+':'+_0x265e07+_0x52e1bf(0x9c)+_0x1b265d['error']+_0x52e1bf(0xa7));else{if(_0x1b265d['truncated'])logger[_0x52e1bf(0xb2)](_0x52e1bf(0xb4)+_0x15c41f+':'+_0x265e07+_0x52e1bf(0xd3)+_0x1b265d[_0x52e1bf(0xec)]+_0x52e1bf(0xa7));else{if(!_0x1b265d[_0x52e1bf(0xa5)])_0xbe645[_0x52e1bf(0xc7)](_0x1ac986[_0xd73f60]);else _0x22984a&&(_0x1a1d56=!![]);}}}return _0x916a81[_0x52e1bf(0xdf)](_0xbe645[_0x52e1bf(0xe6)],0x0)?(logger[_0x52e1bf(0xb2)](_0x52e1bf(0xb4)+_0x15c41f+':'+_0x265e07+_0x52e1bf(0x9d)+_0xbe645[_0x52e1bf(0xe6)]+_0x52e1bf(0x9b)),localAppendBuffer['set'](_0x1092b2,_0xbe645)):localAppendBuffer[_0x52e1bf(0xd2)](_0x1092b2),_0x1a1d56;}if(_0x916a81[_0x52e1bf(0xab)](_0x287e7b,_0x916a81[_0x52e1bf(0xd4)])){const _0x5f4236=localMergeBuffer['get'](_0x1092b2),_0x384433=_0x5f4236?_0x916a81[_0x52e1bf(0xf0)](mergeDelta,_0x5f4236,_0x1b8cab):_0x1b8cab,_0x4c2111=await _0x916a81[_0x52e1bf(0xbe)](rpcPublish,_0x15c41f,_0x265e07,_0x956efe,_0x384433,_0x916a81[_0x52e1bf(0xd4)]);if(_0x4c2111[_0x52e1bf(0xdb)])return logger[_0x52e1bf(0xb2)](_0x52e1bf(0xd6)+_0x15c41f+':'+_0x265e07+_0x52e1bf(0x9c)+_0x4c2111[_0x52e1bf(0xec)]+'),\x20dropping\x20this\x20delta\x20and\x20keeping\x20'+(_0x5f4236?_0x916a81[_0x52e1bf(0xba)]:_0x916a81[_0x52e1bf(0xcb)])),_0x5f4236?localMergeBuffer[_0x52e1bf(0xf4)](_0x1092b2,_0x5f4236):localMergeBuffer[_0x52e1bf(0xd2)](_0x1092b2),![];return _0x4c2111['truncated']&&logger[_0x52e1bf(0xb2)](_0x52e1bf(0xd6)+_0x15c41f+':'+_0x265e07+'\x20was\x20truncated\x20by\x20the\x20binary\x20('+_0x4c2111[_0x52e1bf(0xec)]+')'),!_0x4c2111['acked']?(logger[_0x52e1bf(0xb2)]('runStateStore:\x20merge\x20'+_0x15c41f+':'+_0x265e07+_0x52e1bf(0xa6)),localMergeBuffer[_0x52e1bf(0xf4)](_0x1092b2,_0x384433)):localMergeBuffer[_0x52e1bf(0xd2)](_0x1092b2),_0x4c2111[_0x52e1bf(0xa5)];}const _0x4abe45=await _0x916a81['ZPPkD'](rpcPublish,_0x15c41f,_0x265e07,_0x956efe,_0x1b8cab,_0x287e7b);_0x4abe45['truncated']&&logger[_0x52e1bf(0xb2)](_0x52e1bf(0xc3)+_0x15c41f+':'+_0x265e07+_0x52e1bf(0xd3)+_0x4abe45[_0x52e1bf(0xec)]+')');if(_0x4abe45[_0x52e1bf(0xdb)])return logger[_0x52e1bf(0xb2)](_0x52e1bf(0xc3)+_0x15c41f+':'+_0x265e07+_0x52e1bf(0x9c)+_0x4abe45['error']+_0x52e1bf(0xb1)),localReplaceFallback[_0x52e1bf(0xd2)](_0x1092b2),![];return!_0x4abe45[_0x52e1bf(0xa5)]?(logger[_0x52e1bf(0xb2)]('runStateStore:\x20publish\x20'+_0x15c41f+':'+_0x265e07+_0x52e1bf(0x9f)),localReplaceFallback[_0x52e1bf(0xf4)](_0x1092b2,_0x1b8cab)):localReplaceFallback['delete'](_0x1092b2),_0x4abe45[_0x52e1bf(0xa5)];}),fetch=(_0x319b36,_0x3f8f4a,_0x4c67ce)=>chained(localKey(_0x319b36,_0x3f8f4a,_0x4c67ce),async()=>{const _0xff8db7=a120_0x4d05c9,_0x47adfb={'aeveZ':function(_0xc2429,_0x51526e,_0x2a113a,_0x231a16){return _0xc2429(_0x51526e,_0x2a113a,_0x231a16);},'daxRj':function(_0x249b73,_0x44e946){return _0x249b73>_0x44e946;},'HnazK':function(_0x4a68c7,_0x282991,_0x104136){return _0x4a68c7(_0x282991,_0x104136);},'MCFoQ':function(_0x4c263c,_0x5835e2){return _0x4c263c!==_0x5835e2;}},_0x543c83=_0x47adfb[_0xff8db7(0xde)](localKey,_0x319b36,_0x3f8f4a,_0x4c67ce);let _0x56778c;try{_0x56778c=await GrpcClient[_0xff8db7(0xb0)]()[_0xff8db7(0xef)](_0x319b36,_0x3f8f4a,_0x4c67ce);}catch(_0x157436){logger[_0xff8db7(0xb2)](_0xff8db7(0xc0)+_0x319b36+':'+_0x3f8f4a+_0xff8db7(0xad)+(_0x157436&&_0x157436['message'])+'),\x20serving\x20in-memory\x20state'),_0x56778c=undefined;}const _0x5cfbb9=localAppendBuffer['get'](_0x543c83);if(_0x5cfbb9&&_0x47adfb[_0xff8db7(0xf1)](_0x5cfbb9[_0xff8db7(0xe6)],0x0)){const _0x43eae9=Array[_0xff8db7(0xa3)](_0x56778c)?_0x56778c:[];return _0x43eae9[_0xff8db7(0xca)](_0x5cfbb9);}const _0xc218af=localMergeBuffer[_0xff8db7(0xbc)](_0x543c83);if(_0xc218af)return _0x47adfb[_0xff8db7(0xe8)](mergeDelta,_0x56778c,_0xc218af);if(_0x47adfb['MCFoQ'](_0x56778c,undefined))return _0x56778c;return localReplaceFallback['get'](_0x543c83);});exports[a120_0x4d05c9(0xb7)]=(_0x2ee792,_0x252063,_0x15d759)=>publish(SCOPE_TEST,_0x2ee792,_0x252063,_0x15d759,a120_0x4d05c9(0xae)),exports[a120_0x4d05c9(0xdd)]=(_0x566037,_0x2b725f,_0x15e2d2)=>publish(SCOPE_TEST,_0x566037,_0x2b725f,_0x15e2d2,'DEEP_MERGE'),exports[a120_0x4d05c9(0xce)]=(_0x21b5c9,_0x16e33e,_0x3508f0)=>publish(SCOPE_TEST,_0x21b5c9,_0x16e33e,_0x3508f0,a120_0x4d05c9(0xd5)),exports[a120_0x4d05c9(0xf3)]=(_0x2ecd94,_0x1e0e89)=>fetch(SCOPE_TEST,_0x2ecd94,_0x1e0e89),exports[a120_0x4d05c9(0xd8)]=(_0xf71a55,_0x46d491)=>publish(SCOPE_BUILD,_0xf71a55,'',_0x46d491,a120_0x4d05c9(0xae)),exports[a120_0x4d05c9(0xb3)]=(_0x134dd1,_0x504b31)=>publish(SCOPE_BUILD,_0x134dd1,'',_0x504b31,a120_0x4d05c9(0xd5)),exports['getBuildState']=_0x4e6936=>fetch(SCOPE_BUILD,_0x4e6936),exports['flushPending']=async()=>{const _0x2e08c5=a120_0x4d05c9,_0x3a3d16={'WZolK':function(_0x300404,_0x1960ef){return _0x300404===_0x1960ef;},'GhPIG':_0x2e08c5(0xd5),'ueRed':function(_0x12bc43,_0x20a53c,_0x421596,_0x31aead,_0x1aab8e,_0x8187a3){return _0x12bc43(_0x20a53c,_0x421596,_0x31aead,_0x1aab8e,_0x8187a3);},'iWEBQ':function(_0x1e12b8,_0x197f72,_0x15b382,_0x17461a,_0x327095,_0xbd1668){return _0x1e12b8(_0x197f72,_0x15b382,_0x17461a,_0x327095,_0xbd1668);},'XpVva':_0x2e08c5(0xa9)},_0x79a056=[];localMergeBuffer[_0x2e08c5(0xeb)]((_0x362c4d,_0xbf0621)=>_0x79a056[_0x2e08c5(0xc7)]({'lk':_0xbf0621,'delta':_0x362c4d,'mode':'DEEP_MERGE'})),localReplaceFallback[_0x2e08c5(0xeb)]((_0x2f26aa,_0x2b3934)=>_0x79a056[_0x2e08c5(0xc7)]({'lk':_0x2b3934,'value':_0x2f26aa,'mode':'REPLACE'})),localAppendBuffer[_0x2e08c5(0xeb)]((_0x12ceaa,_0x438c03)=>_0x79a056['push']({'lk':_0x438c03,'entries':_0x12ceaa,'mode':_0x2e08c5(0xd5)}));if(_0x3a3d16['WZolK'](_0x79a056[_0x2e08c5(0xe6)],0x0))return 0x0;logger[_0x2e08c5(0xb2)](_0x2e08c5(0xb8)+_0x79a056[_0x2e08c5(0xe6)]+'\x20key(s)\x20still\x20held\x20in-memory');let _0x488c82=0x0;for(const _0x398565 of _0x79a056){const [_0x18afdf,_0x9de0f5,..._0x1f822]=_0x398565['lk'][_0x2e08c5(0xd7)](':'),_0x2437ec=_0x3a3d16[_0x2e08c5(0xa2)](_0x18afdf,SCOPE_TEST)?_0x9de0f5:'',_0x3c146b=_0x3a3d16[_0x2e08c5(0xa2)](_0x18afdf,SCOPE_TEST)?_0x1f822['join'](':'):_0x9de0f5;try{if(_0x3a3d16[_0x2e08c5(0xa2)](_0x398565[_0x2e08c5(0xa4)],_0x3a3d16['GhPIG'])){const _0x18e4e2=localAppendBuffer[_0x2e08c5(0xbc)](_0x398565['lk'])||[];localAppendBuffer[_0x2e08c5(0xd2)](_0x398565['lk']);for(const _0x35dee4 of _0x18e4e2){await _0x3a3d16['ueRed'](publish,_0x18afdf,_0x3c146b,_0x2437ec,_0x35dee4,_0x3a3d16[_0x2e08c5(0xee)])&&(_0x488c82+=0x1);}}else await _0x3a3d16[_0x2e08c5(0xc9)](publish,_0x18afdf,_0x3c146b,_0x2437ec,_0x3a3d16['WZolK'](_0x398565['mode'],_0x3a3d16['XpVva'])?_0x398565['delta']:_0x398565[_0x2e08c5(0xf5)],_0x398565[_0x2e08c5(0xa4)])&&(_0x488c82+=0x1);}catch(_0x3c336a){logger[_0x2e08c5(0xb2)]('runStateStore:\x20flush\x20of\x20'+_0x398565['lk']+_0x2e08c5(0xc6)+(_0x3c336a&&_0x3c336a[_0x2e08c5(0xcf)])+')');}}return _0x488c82;},exports['_clearLocalFallback']=()=>{const _0x32ef6d=a120_0x4d05c9;localReplaceFallback[_0x32ef6d(0xaa)](),localAppendBuffer[_0x32ef6d(0xaa)](),localMergeBuffer[_0x32ef6d(0xaa)](),keyChains[_0x32ef6d(0xaa)]();},exports['_keyChainSize']=()=>keyChains[a120_0x4d05c9(0xbb)],exports[a120_0x4d05c9(0xf6)]=mergeDelta;
|
|
1
|
+
'use strict';function a120_0x6de3(){const _0x45784c=['get','AAtdg','),\x20dropping\x20the\x20entry','),\x20dropping\x20the\x20value','BMEyP','resolve','JMkyE','hWxnS','1573476MnnzIR','setBuildState','runStateStore:\x20fetch\x20','DEEP_MERGE','\x20not\x20acked\x20by\x20binary,\x20holding\x20','terminal','\x20was\x20truncated\x20by\x20the\x20binary\x20(','\x20failed\x20(','isArray','mergeDelta','ycvnU','IfFQG','debug','mode','rWqvE','getBuildState','clear','fetchRunState','publish\x20threw','set','runStateStore:\x20publish\x20','../../helpers/logger','BTpoG','length','6GPlYho','nbjSt','push','the\x20earlier\x20accumulation','concat','uQVVX','runStateStore:\x20append\x20','\x20refused\x20by\x20binary\x20(','UgGIp','acked','XQFgk','pVBuj','forEach','appendBuildState','2UeZXma','hngiw','assign','mergeTestState','PGdlW','BWWwD','truncated','then','_keyChainSize','\x20entr(y/ies)\x20in-memory','jDCMv','\x20not\x20acked\x20by\x20binary,\x20accumulating\x20the\x20delta\x20in-memory','11729634NukZjt','6278924imkNRu','11pKUvEP','),\x20treating\x20as\x20un-acked','hpShd','APPEND','publishRunState','BFctw','delete','OUGdy','join','message','8027175gpCadS','),\x20dropping\x20this\x20delta\x20and\x20keeping\x20','runStateStore:\x20flushing\x20','PgNxH','split','getTestState','BUILD','REPLACE','YCMGU','setTestState','error','8DwtiqU','runStateStore:\x20merge\x20','17392380eSLjpl','getInstance','16725555QvKSve','Bxcwd','),\x20serving\x20in-memory\x20state','3ZJZLuX','68329020Tjazlo','object','size','nothing','DyOYE','winstonLogger'];a120_0x6de3=function(){return _0x45784c;};return a120_0x6de3();}const a120_0x40c0a8=a120_0x17c8;(function(_0x361299,_0x3a833f){const _0x591569=a120_0x17c8,_0x2a4512=_0x361299();while(!![]){try{const _0x25960a=parseInt(_0x591569(0x199))/0x1*(parseInt(_0x591569(0x160))/0x2)+-parseInt(_0x591569(0x18a))/0x3*(-parseInt(_0x591569(0x16d))/0x4)+-parseInt(_0x591569(0x178))/0x5*(-parseInt(_0x591569(0x152))/0x6)+parseInt(_0x591569(0x16c))/0x7*(-parseInt(_0x591569(0x183))/0x8)+parseInt(_0x591569(0x187))/0x9+parseInt(_0x591569(0x185))/0xa+parseInt(_0x591569(0x16e))/0xb*(-parseInt(_0x591569(0x18b))/0xc);if(_0x25960a===_0x3a833f)break;else _0x2a4512['push'](_0x2a4512['shift']());}catch(_0x2c408d){_0x2a4512['push'](_0x2a4512['shift']());}}}(a120_0x6de3,0xee690));const GrpcClient=require('./grpcClient'),logger=require(a120_0x40c0a8(0x14f))[a120_0x40c0a8(0x190)],SCOPE_TEST='TEST',SCOPE_BUILD=a120_0x40c0a8(0x17e),localReplaceFallback=new Map(),localAppendBuffer=new Map(),localMergeBuffer=new Map(),keyChains=new Map(),isPlainObject=_0x36e2e0=>_0x36e2e0!==null&&typeof _0x36e2e0===a120_0x40c0a8(0x18c)&&!Array[a120_0x40c0a8(0x142)](_0x36e2e0),mergeDelta=(_0x39d134,_0x587529)=>{const _0x2d927b=a120_0x40c0a8,_0x14a1e1={'toAYQ':function(_0x237701,_0x2aad5b){return _0x237701(_0x2aad5b);},'BFctw':function(_0x167621,_0x3088a9){return _0x167621(_0x3088a9);},'xEmmF':function(_0x321685,_0x5f06f6,_0x639200){return _0x321685(_0x5f06f6,_0x639200);},'Bxcwd':function(_0x311740,_0xffce3b){return _0x311740(_0xffce3b);}},_0x28b092=Object[_0x2d927b(0x162)]({},_0x14a1e1[_0x2d927b(0x188)](isPlainObject,_0x39d134)?_0x39d134:{});if(!_0x14a1e1[_0x2d927b(0x173)](isPlainObject,_0x587529))return _0x28b092;return Object['keys'](_0x587529)[_0x2d927b(0x15e)](_0x55b9e6=>{const _0x3a3623=_0x2d927b;_0x28b092[_0x55b9e6]=_0x14a1e1['toAYQ'](isPlainObject,_0x28b092[_0x55b9e6])&&_0x14a1e1[_0x3a3623(0x173)](isPlainObject,_0x587529[_0x55b9e6])?_0x14a1e1['xEmmF'](mergeDelta,_0x28b092[_0x55b9e6],_0x587529[_0x55b9e6]):_0x587529[_0x55b9e6];}),_0x28b092;},localKey=(_0x151c33,_0x5d90c1,_0xb05a06)=>_0x151c33===SCOPE_TEST?_0x151c33+':'+_0xb05a06+':'+_0x5d90c1:_0x151c33+':'+_0x5d90c1,rpcPublish=async(_0x34daba,_0x1ec0f0,_0x324539,_0x567976,_0x2ff92f)=>{const _0xc5f41c=a120_0x40c0a8,_0x97fd83={};_0x97fd83[_0xc5f41c(0x15a)]=_0xc5f41c(0x14c);const _0x4e5b2e=_0x97fd83;try{return await GrpcClient[_0xc5f41c(0x186)]()[_0xc5f41c(0x172)](_0x34daba,_0x1ec0f0,_0x324539,_0x567976,_0x2ff92f);}catch(_0x108473){logger[_0xc5f41c(0x146)](_0xc5f41c(0x14e)+_0x34daba+':'+_0x1ec0f0+'\x20rejected\x20('+(_0x108473&&_0x108473[_0xc5f41c(0x177)])+_0xc5f41c(0x16f));const _0x136098={};return _0x136098[_0xc5f41c(0x15b)]=![],_0x136098[_0xc5f41c(0x13f)]=![],_0x136098[_0xc5f41c(0x182)]=_0x108473&&_0x108473['message']||_0x4e5b2e[_0xc5f41c(0x15a)],_0x136098;}},chained=(_0x3c81f2,_0x56b0df)=>{const _0x302e6f=a120_0x40c0a8,_0x9d25a={};_0x9d25a[_0x302e6f(0x164)]=function(_0x3e9f9e,_0x3ac839){return _0x3e9f9e===_0x3ac839;};const _0x4f5ac5=_0x9d25a,_0x3059ac=keyChains[_0x302e6f(0x191)](_0x3c81f2)||Promise[_0x302e6f(0x196)](),_0x565406=_0x3059ac[_0x302e6f(0x167)](_0x56b0df,_0x56b0df),_0x2b6909=_0x565406[_0x302e6f(0x167)](()=>{},()=>{});return keyChains[_0x302e6f(0x14d)](_0x3c81f2,_0x2b6909),_0x2b6909[_0x302e6f(0x167)](()=>{const _0x38bba0=_0x302e6f;_0x4f5ac5[_0x38bba0(0x164)](keyChains['get'](_0x3c81f2),_0x2b6909)&&keyChains['delete'](_0x3c81f2);}),_0x565406;},publish=(_0x354344,_0x39b115,_0x671c65,_0x28c897,_0xa10b37)=>chained(localKey(_0x354344,_0x39b115,_0x671c65),async()=>{const _0x569fba=a120_0x40c0a8,_0x251304={'BTpoG':function(_0x87d2dc,_0x5e872b,_0x55bb07,_0x410b81){return _0x87d2dc(_0x5e872b,_0x55bb07,_0x410b81);},'OfGnh':function(_0x44fb1a,_0x1462b4){return _0x44fb1a===_0x1462b4;},'IfFQG':_0x569fba(0x171),'BWWwD':function(_0x33a2a0,_0x2dfef4){return _0x33a2a0<_0x2dfef4;},'PgNxH':function(_0x3798cf,_0x53abc4){return _0x3798cf===_0x53abc4;},'SbXJw':function(_0x18e91a,_0x409bdc){return _0x18e91a-_0x409bdc;},'hpShd':function(_0x328461,_0x513ba2){return _0x328461>_0x513ba2;},'OUGdy':function(_0x3833aa,_0x9c2df9,_0x99d015,_0x283eb6,_0x4d762b,_0x2e57fb){return _0x3833aa(_0x9c2df9,_0x99d015,_0x283eb6,_0x4d762b,_0x2e57fb);},'OYjRw':function(_0x176034,_0x19f166){return _0x176034===_0x19f166;},'hngiw':_0x569fba(0x19c),'YCMGU':function(_0x3949a0,_0x4a2eae,_0x1c29eb){return _0x3949a0(_0x4a2eae,_0x1c29eb);},'DyOYE':function(_0xe71d28,_0x661b00,_0x3f3d96,_0x53290d,_0x69e0cb,_0x4e0919){return _0xe71d28(_0x661b00,_0x3f3d96,_0x53290d,_0x69e0cb,_0x4e0919);},'sIPKD':_0x569fba(0x155),'BNTpE':_0x569fba(0x18e)},_0x35f131=_0x251304[_0x569fba(0x150)](localKey,_0x354344,_0x39b115,_0x671c65);if(_0x251304['OfGnh'](_0xa10b37,_0x251304['IfFQG'])){const _0x21b72c=localAppendBuffer[_0x569fba(0x191)](_0x35f131)||[],_0x5ea15b=_0x21b72c[_0x569fba(0x156)]([_0x28c897]),_0x48f0c2=[];let _0x34c440=![];for(let _0x3cb729=0x0;_0x251304[_0x569fba(0x165)](_0x3cb729,_0x5ea15b[_0x569fba(0x151)]);_0x3cb729++){const _0x23516a=_0x251304[_0x569fba(0x17b)](_0x3cb729,_0x251304['SbXJw'](_0x5ea15b[_0x569fba(0x151)],0x1));if(_0x251304[_0x569fba(0x170)](_0x48f0c2[_0x569fba(0x151)],0x0)){_0x48f0c2[_0x569fba(0x154)](_0x5ea15b[_0x3cb729]);continue;}const _0x238d9c=await _0x251304['OUGdy'](rpcPublish,_0x354344,_0x39b115,_0x671c65,_0x5ea15b[_0x3cb729],_0x251304[_0x569fba(0x145)]);if(_0x238d9c[_0x569fba(0x13f)])logger[_0x569fba(0x146)](_0x569fba(0x158)+_0x354344+':'+_0x39b115+_0x569fba(0x159)+_0x238d9c[_0x569fba(0x182)]+_0x569fba(0x193));else{if(_0x238d9c[_0x569fba(0x166)])logger[_0x569fba(0x146)](_0x569fba(0x158)+_0x354344+':'+_0x39b115+_0x569fba(0x140)+_0x238d9c[_0x569fba(0x182)]+_0x569fba(0x193));else{if(!_0x238d9c[_0x569fba(0x15b)])_0x48f0c2[_0x569fba(0x154)](_0x5ea15b[_0x3cb729]);else _0x23516a&&(_0x34c440=!![]);}}}return _0x251304[_0x569fba(0x170)](_0x48f0c2['length'],0x0)?(logger['debug'](_0x569fba(0x158)+_0x354344+':'+_0x39b115+_0x569fba(0x19d)+_0x48f0c2[_0x569fba(0x151)]+_0x569fba(0x169)),localAppendBuffer['set'](_0x35f131,_0x48f0c2)):localAppendBuffer[_0x569fba(0x174)](_0x35f131),_0x34c440;}if(_0x251304['OYjRw'](_0xa10b37,_0x251304[_0x569fba(0x161)])){const _0x3886c7=localMergeBuffer[_0x569fba(0x191)](_0x35f131),_0x44b07c=_0x3886c7?_0x251304[_0x569fba(0x180)](mergeDelta,_0x3886c7,_0x28c897):_0x28c897,_0x18f1a4=await _0x251304[_0x569fba(0x18f)](rpcPublish,_0x354344,_0x39b115,_0x671c65,_0x44b07c,_0x251304['hngiw']);if(_0x18f1a4[_0x569fba(0x13f)])return logger['debug'](_0x569fba(0x184)+_0x354344+':'+_0x39b115+_0x569fba(0x159)+_0x18f1a4[_0x569fba(0x182)]+_0x569fba(0x179)+(_0x3886c7?_0x251304['sIPKD']:_0x251304['BNTpE'])),_0x3886c7?localMergeBuffer[_0x569fba(0x14d)](_0x35f131,_0x3886c7):localMergeBuffer[_0x569fba(0x174)](_0x35f131),![];return _0x18f1a4[_0x569fba(0x166)]&&logger['debug'](_0x569fba(0x184)+_0x354344+':'+_0x39b115+_0x569fba(0x140)+_0x18f1a4[_0x569fba(0x182)]+')'),!_0x18f1a4[_0x569fba(0x15b)]?(logger[_0x569fba(0x146)](_0x569fba(0x184)+_0x354344+':'+_0x39b115+_0x569fba(0x16b)),localMergeBuffer[_0x569fba(0x14d)](_0x35f131,_0x44b07c)):localMergeBuffer[_0x569fba(0x174)](_0x35f131),_0x18f1a4[_0x569fba(0x15b)];}const _0x146955=await _0x251304[_0x569fba(0x175)](rpcPublish,_0x354344,_0x39b115,_0x671c65,_0x28c897,_0xa10b37);_0x146955[_0x569fba(0x166)]&&logger[_0x569fba(0x146)](_0x569fba(0x14e)+_0x354344+':'+_0x39b115+_0x569fba(0x140)+_0x146955[_0x569fba(0x182)]+')');if(_0x146955[_0x569fba(0x13f)])return logger[_0x569fba(0x146)](_0x569fba(0x14e)+_0x354344+':'+_0x39b115+_0x569fba(0x159)+_0x146955[_0x569fba(0x182)]+_0x569fba(0x194)),localReplaceFallback[_0x569fba(0x174)](_0x35f131),![];return!_0x146955[_0x569fba(0x15b)]?(logger[_0x569fba(0x146)](_0x569fba(0x14e)+_0x354344+':'+_0x39b115+'\x20not\x20acked\x20by\x20binary,\x20keeping\x20value\x20in-memory'),localReplaceFallback['set'](_0x35f131,_0x28c897)):localReplaceFallback[_0x569fba(0x174)](_0x35f131),_0x146955[_0x569fba(0x15b)];}),fetch=(_0x4f558c,_0x5662e1,_0x1d1a83)=>chained(localKey(_0x4f558c,_0x5662e1,_0x1d1a83),async()=>{const _0x18d7f9=a120_0x40c0a8,_0x5a2ad3={'nbjSt':function(_0xc9e7ad,_0x2e9d59,_0x409f21,_0x4c7af1){return _0xc9e7ad(_0x2e9d59,_0x409f21,_0x4c7af1);},'AAtdg':function(_0x16b898,_0x2f245d){return _0x16b898>_0x2f245d;},'pVBuj':function(_0x8f585d,_0x35b1c7,_0x4a5e8a){return _0x8f585d(_0x35b1c7,_0x4a5e8a);},'rWqvE':function(_0x1fe8da,_0x91c2e0){return _0x1fe8da!==_0x91c2e0;}},_0x347c77=_0x5a2ad3[_0x18d7f9(0x153)](localKey,_0x4f558c,_0x5662e1,_0x1d1a83);let _0x4df263;try{_0x4df263=await GrpcClient[_0x18d7f9(0x186)]()[_0x18d7f9(0x14b)](_0x4f558c,_0x5662e1,_0x1d1a83);}catch(_0xa316){logger['debug'](_0x18d7f9(0x19b)+_0x4f558c+':'+_0x5662e1+'\x20rejected\x20('+(_0xa316&&_0xa316[_0x18d7f9(0x177)])+_0x18d7f9(0x189)),_0x4df263=undefined;}const _0x5b0f30=localAppendBuffer[_0x18d7f9(0x191)](_0x347c77);if(_0x5b0f30&&_0x5a2ad3[_0x18d7f9(0x192)](_0x5b0f30[_0x18d7f9(0x151)],0x0)){const _0x51149e=Array[_0x18d7f9(0x142)](_0x4df263)?_0x4df263:[];return _0x51149e['concat'](_0x5b0f30);}const _0x35d7fb=localMergeBuffer[_0x18d7f9(0x191)](_0x347c77);if(_0x35d7fb)return _0x5a2ad3[_0x18d7f9(0x15d)](mergeDelta,_0x4df263,_0x35d7fb);if(_0x5a2ad3[_0x18d7f9(0x148)](_0x4df263,undefined))return _0x4df263;return localReplaceFallback['get'](_0x347c77);});function a120_0x17c8(_0x32bf88,_0x4e5fde){const _0x6de3f8=a120_0x6de3();return a120_0x17c8=function(_0x17c8ad,_0x565e41){_0x17c8ad=_0x17c8ad-0x13f;let _0x2907a8=_0x6de3f8[_0x17c8ad];return _0x2907a8;},a120_0x17c8(_0x32bf88,_0x4e5fde);}exports[a120_0x40c0a8(0x181)]=(_0x2cb28f,_0x23c2a2,_0x373fe8)=>publish(SCOPE_TEST,_0x2cb28f,_0x23c2a2,_0x373fe8,a120_0x40c0a8(0x17f)),exports[a120_0x40c0a8(0x163)]=(_0x1d557e,_0x374c1e,_0x3288a9)=>publish(SCOPE_TEST,_0x1d557e,_0x374c1e,_0x3288a9,a120_0x40c0a8(0x19c)),exports['appendTestState']=(_0x456689,_0x742d2,_0x10b6ee)=>publish(SCOPE_TEST,_0x456689,_0x742d2,_0x10b6ee,'APPEND'),exports[a120_0x40c0a8(0x17d)]=(_0x389407,_0x3438dc)=>fetch(SCOPE_TEST,_0x389407,_0x3438dc),exports[a120_0x40c0a8(0x19a)]=(_0x4bdb8c,_0x176164)=>publish(SCOPE_BUILD,_0x4bdb8c,'',_0x176164,'REPLACE'),exports[a120_0x40c0a8(0x15f)]=(_0x3bffc5,_0x1f4c10)=>publish(SCOPE_BUILD,_0x3bffc5,'',_0x1f4c10,a120_0x40c0a8(0x171)),exports[a120_0x40c0a8(0x149)]=_0xbc0940=>fetch(SCOPE_BUILD,_0xbc0940),exports['flushPending']=async()=>{const _0x4392a0=a120_0x40c0a8,_0x1b0702={'ycvnU':function(_0x3fbc98,_0x29b669){return _0x3fbc98===_0x29b669;},'JMkyE':function(_0x2cc1cc,_0x2695cd){return _0x2cc1cc===_0x2695cd;},'XQFgk':function(_0x40b471,_0x38678b){return _0x40b471===_0x38678b;},'BMEyP':'APPEND','jDCMv':function(_0x1f4b76,_0x8bbb03,_0x49c915,_0x2b1e16,_0x1e9f38,_0x2e5651){return _0x1f4b76(_0x8bbb03,_0x49c915,_0x2b1e16,_0x1e9f38,_0x2e5651);},'uQVVX':function(_0x293301,_0x27e1b4,_0x2c084d,_0x55b76b,_0x4c054c,_0x481791){return _0x293301(_0x27e1b4,_0x2c084d,_0x55b76b,_0x4c054c,_0x481791);},'hWxnS':'DEEP_MERGE'},_0x106c74=[];localMergeBuffer['forEach']((_0x5cf2ec,_0x2068fe)=>_0x106c74[_0x4392a0(0x154)]({'lk':_0x2068fe,'delta':_0x5cf2ec,'mode':_0x4392a0(0x19c)})),localReplaceFallback[_0x4392a0(0x15e)]((_0x2298ed,_0x147125)=>_0x106c74[_0x4392a0(0x154)]({'lk':_0x147125,'value':_0x2298ed,'mode':'REPLACE'})),localAppendBuffer[_0x4392a0(0x15e)]((_0x387f15,_0x2a53aa)=>_0x106c74['push']({'lk':_0x2a53aa,'entries':_0x387f15,'mode':'APPEND'}));if(_0x1b0702[_0x4392a0(0x144)](_0x106c74[_0x4392a0(0x151)],0x0))return 0x0;logger[_0x4392a0(0x146)](_0x4392a0(0x17a)+_0x106c74[_0x4392a0(0x151)]+'\x20key(s)\x20still\x20held\x20in-memory');let _0x1b43de=0x0;for(const _0x110022 of _0x106c74){const [_0x1faa90,_0x22593a,..._0x439b7a]=_0x110022['lk'][_0x4392a0(0x17c)](':'),_0x3ae329=_0x1b0702[_0x4392a0(0x144)](_0x1faa90,SCOPE_TEST)?_0x22593a:'',_0x52d068=_0x1b0702[_0x4392a0(0x197)](_0x1faa90,SCOPE_TEST)?_0x439b7a[_0x4392a0(0x176)](':'):_0x22593a;try{if(_0x1b0702[_0x4392a0(0x15c)](_0x110022[_0x4392a0(0x147)],_0x1b0702[_0x4392a0(0x195)])){const _0x51da8c=localAppendBuffer['get'](_0x110022['lk'])||[];localAppendBuffer[_0x4392a0(0x174)](_0x110022['lk']);for(const _0x323aeb of _0x51da8c){await _0x1b0702[_0x4392a0(0x16a)](publish,_0x1faa90,_0x52d068,_0x3ae329,_0x323aeb,_0x1b0702[_0x4392a0(0x195)])&&(_0x1b43de+=0x1);}}else await _0x1b0702[_0x4392a0(0x157)](publish,_0x1faa90,_0x52d068,_0x3ae329,_0x1b0702[_0x4392a0(0x15c)](_0x110022['mode'],_0x1b0702[_0x4392a0(0x198)])?_0x110022['delta']:_0x110022['value'],_0x110022[_0x4392a0(0x147)])&&(_0x1b43de+=0x1);}catch(_0x36fea0){logger['debug']('runStateStore:\x20flush\x20of\x20'+_0x110022['lk']+_0x4392a0(0x141)+(_0x36fea0&&_0x36fea0[_0x4392a0(0x177)])+')');}}return _0x1b43de;},exports['_clearLocalFallback']=()=>{const _0x29dff5=a120_0x40c0a8;localReplaceFallback[_0x29dff5(0x14a)](),localAppendBuffer[_0x29dff5(0x14a)](),localMergeBuffer[_0x29dff5(0x14a)](),keyChains[_0x29dff5(0x14a)]();},exports[a120_0x40c0a8(0x168)]=()=>keyChains[a120_0x40c0a8(0x18d)],exports[a120_0x40c0a8(0x143)]=mergeDelta;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121_0x5ec532=a121_0x2c40;(function(_0x4d2d1b,_0x260506){const _0x1b8dc4=a121_0x2c40,_0x569da0=_0x4d2d1b();while(!![]){try{const _0x38452a=parseInt(_0x1b8dc4(0x114))/0x1*(parseInt(_0x1b8dc4(0xef))/0x2)+-parseInt(_0x1b8dc4(0xf5))/0x3*(-parseInt(_0x1b8dc4(0xf4))/0x4)+-parseInt(_0x1b8dc4(0xf8))/0x5+parseInt(_0x1b8dc4(0x111))/0x6+-parseInt(_0x1b8dc4(0xfa))/0x7*(parseInt(_0x1b8dc4(0x10e))/0x8)+-parseInt(_0x1b8dc4(0xf0))/0x9+parseInt(_0x1b8dc4(0x105))/0xa*(parseInt(_0x1b8dc4(0x103))/0xb);if(_0x38452a===_0x260506)break;else _0x569da0['push'](_0x569da0['shift']());}catch(_0x36875b){_0x569da0['push'](_0x569da0['shift']());}}}(a121_0x2b30,0x5b426));const grpc=require(a121_0x5ec532(0xe3)),a121_0x3d16af={};a121_0x3d16af['BINARY_UNREACHABLE']=a121_0x5ec532(0x11a),a121_0x3d16af[a121_0x5ec532(0xe6)]=a121_0x5ec532(0xfe),a121_0x3d16af[a121_0x5ec532(0xf1)]=a121_0x5ec532(0xe5),a121_0x3d16af[a121_0x5ec532(0xf3)]=a121_0x5ec532(0x109),a121_0x3d16af[a121_0x5ec532(0x100)]=a121_0x5ec532(0xf9),a121_0x3d16af[a121_0x5ec532(0xee)]=a121_0x5ec532(0x118);const BUCKETS=a121_0x3d16af,a121_0x2e6db6={[BUCKETS['BINARY_UNREACHABLE']]:a121_0x5ec532(0xfd),[BUCKETS['AUTH_FAILED']]:a121_0x5ec532(0xfc),[BUCKETS[a121_0x5ec532(0xf1)]]:a121_0x5ec532(0xec),[BUCKETS['INVALID_REQUEST']]:a121_0x5ec532(0x116),[BUCKETS['SERVER_FAILURE']]:a121_0x5ec532(0x10b),[BUCKETS['UNKNOWN']]:a121_0x5ec532(0xfb)},MESSAGES=a121_0x2e6db6;function classify(_0x3d7b60){const _0x456aa5=a121_0x5ec532,_0x58b4cf={};_0x58b4cf[_0x456aa5(0xe8)]=function(_0x637823,_0x12194b){return _0x637823!==_0x12194b;},_0x58b4cf[_0x456aa5(0x106)]=_0x456aa5(0x104);const _0x3af751=_0x58b4cf;if(!_0x3d7b60)return BUCKETS[_0x456aa5(0xee)];const _0x34e12b=_0x3d7b60['code'];if(_0x3af751[_0x456aa5(0xe8)](typeof _0x34e12b,_0x3af751[_0x456aa5(0x106)]))return BUCKETS[_0x456aa5(0xee)];switch(_0x34e12b){case grpc[_0x456aa5(0x107)][_0x456aa5(0xf6)]:case grpc['status']['CANCELLED']:return BUCKETS[_0x456aa5(0x10d)];case grpc[_0x456aa5(0x107)]['UNAUTHENTICATED']:case grpc[_0x456aa5(0x107)][_0x456aa5(0xf2)]:return BUCKETS[_0x456aa5(0xe6)];case grpc[_0x456aa5(0x107)][_0x456aa5(0xe0)]:return BUCKETS[_0x456aa5(0xf1)];case grpc['status'][_0x456aa5(0x10a)]:case grpc[_0x456aa5(0x107)][_0x456aa5(0x11c)]:case grpc['status'][_0x456aa5(0x117)]:case grpc[_0x456aa5(0x107)]['ALREADY_EXISTS']:case grpc['status'][_0x456aa5(0xed)]:return BUCKETS[_0x456aa5(0xf3)];case grpc['status'][_0x456aa5(0x101)]:case grpc[_0x456aa5(0x107)]['UNKNOWN']:case grpc[_0x456aa5(0x107)]['DATA_LOSS']:case grpc[_0x456aa5(0x107)][_0x456aa5(0xe4)]:case grpc[_0x456aa5(0x107)]['RESOURCE_EXHAUSTED']:case grpc[_0x456aa5(0x107)][_0x456aa5(0x110)]:return BUCKETS[_0x456aa5(0x100)];default:return BUCKETS['UNKNOWN'];}}function messageFor(_0x2b9c70){const _0x956818=a121_0x5ec532;return MESSAGES[_0x2b9c70]||MESSAGES[BUCKETS[_0x956818(0xee)]];}function a121_0x2c40(_0xd1afbb,_0x1bc1d9){const _0x2b3025=a121_0x2b30();return a121_0x2c40=function(_0x2c40fd,_0x3d238d){_0x2c40fd=_0x2c40fd-0xdf;let _0x432807=_0x2b3025[_0x2c40fd];return _0x432807;},a121_0x2c40(_0xd1afbb,_0x1bc1d9);}function a121_0x2b30(){const _0x55519c=['5832kzcUbu','1153449UXgZzx','TIMEOUT','PERMISSION_DENIED','INVALID_REQUEST','659368VGGqKi','3NzrHBQ','UNAVAILABLE','debug','2642140HuUXgz','server_failure','1351uuIQgK','Unexpected\x20error\x20talking\x20to\x20the\x20BrowserStack\x20helper.\x20Please\x20report\x20this\x20with\x20the\x20test\x20logs.','BrowserStack\x20authentication\x20failed.\x20Verify\x20BROWSERSTACK_USERNAME\x20/\x20BROWSERSTACK_ACCESS_KEY\x20(env\x20or\x20browserstack.yml).','Could\x20not\x20reach\x20the\x20BrowserStack\x20helper\x20process.\x20It\x20may\x20have\x20crashed\x20or\x20a\x20firewall\x20is\x20blocking\x20localhost\x20gRPC.\x20Tests\x20will\x20continue;\x20BrowserStack\x20features\x20may\x20be\x20degraded.','auth_failed','[BrowserStack]\x20','SERVER_FAILURE','INTERNAL','classify','11692120fqZUSO','number','10nBDDpA','Knlcl','status','handle','invalid_request','INVALID_ARGUMENT','The\x20BrowserStack\x20helper\x20hit\x20an\x20internal\x20error.\x20Tests\x20will\x20continue;\x20BrowserStack\x20features\x20may\x20be\x20degraded\x20-\x20please\x20retry.','KQmHS','BINARY_UNREACHABLE','22928cIgXId','iHDni','UNIMPLEMENTED','2117082iAWzni','\x20bucket=','[BrowserStack]\x20gRPC\x20raw:\x20rpc=','1gYjFru','NuDGV','BrowserStack\x20SDK\x20sent\x20an\x20unexpected\x20request\x20to\x20its\x20helper.\x20Please\x20report\x20this\x20with\x20the\x20test\x20logs.','OUT_OF_RANGE','unknown','warn','binary_unreachable','\x20code=','NOT_FOUND','code','DEADLINE_EXCEEDED','details','function','@grpc/grpc-js','ABORTED','timeout','AUTH_FAILED','message','TziCM','KTGwJ','ozKUT','exports','The\x20BrowserStack\x20helper\x20did\x20not\x20respond\x20in\x20time.\x20Usually\x20a\x20transient\x20network\x20slowdown\x20-\x20retry\x20the\x20test.','FAILED_PRECONDITION','UNKNOWN'];a121_0x2b30=function(){return _0x55519c;};return a121_0x2b30();}function handle(_0x514913,_0x45e060,_0x494c84,_0x4bd0c5=a121_0x5ec532(0x119)){const _0x19be2f=a121_0x5ec532,_0x49c95e={'KTGwJ':function(_0x4f5d5e,_0x28679f){return _0x4f5d5e(_0x28679f);},'ozKUT':function(_0x14275a,_0x25c7fc){return _0x14275a(_0x25c7fc);},'KQmHS':function(_0x174f31,_0x19d802){return _0x174f31===_0x19d802;},'yTaal':_0x19be2f(0xe2),'NuDGV':function(_0x2c8775,_0xe1bd71){return _0x2c8775===_0xe1bd71;},'iHDni':_0x19be2f(0x104),'BYcBH':function(_0x45bcd8,_0x3fcd31){return _0x45bcd8(_0x3fcd31);}},_0x32729f=_0x49c95e[_0x19be2f(0xe9)](classify,_0x45e060),_0x3f645a=_0x19be2f(0xff)+_0x49c95e[_0x19be2f(0xea)](messageFor,_0x32729f)+'\x20(rpc='+_0x514913+')';try{_0x49c95e[_0x19be2f(0x10c)](typeof _0x494c84[_0x4bd0c5],_0x49c95e['yTaal'])?_0x494c84[_0x4bd0c5](_0x3f645a):_0x494c84[_0x19be2f(0x119)](_0x3f645a);}catch(_0x5de555){}try{const _0x1786bb=_0x45e060&&_0x49c95e[_0x19be2f(0x115)](typeof _0x45e060[_0x19be2f(0xdf)],_0x49c95e[_0x19be2f(0x10f)])?_0x45e060[_0x19be2f(0xdf)]:null,_0x3e7dff=_0x45e060&&_0x45e060[_0x19be2f(0xe1)]?_0x45e060[_0x19be2f(0xe1)]:_0x45e060&&_0x45e060[_0x19be2f(0xe7)]?_0x45e060['message']:_0x49c95e['BYcBH'](String,_0x45e060);_0x494c84[_0x19be2f(0xf7)](_0x19be2f(0x113)+_0x514913+_0x19be2f(0x112)+_0x32729f+_0x19be2f(0x11b)+_0x1786bb+'\x20details='+_0x3e7dff);}catch(_0x28ba56){}return _0x32729f;}const a121_0x59cda2={};a121_0x59cda2['BUCKETS']=BUCKETS,a121_0x59cda2[a121_0x5ec532(0x102)]=classify,a121_0x59cda2['messageFor']=messageFor,a121_0x59cda2[a121_0x5ec532(0x108)]=handle,module[a121_0x5ec532(0xeb)]=a121_0x59cda2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a122_0x4bca15=a122_0x2234;(function(_0x1ab339,_0x2cfe18){const _0x59bbd9=a122_0x2234,_0x626bb4=_0x1ab339();while(!![]){try{const _0x1f4918=parseInt(_0x59bbd9(0xcc))/0x1+-parseInt(_0x59bbd9(0xc0))/0x2*(-parseInt(_0x59bbd9(0xb7))/0x3)+-parseInt(_0x59bbd9(0xc6))/0x4*(parseInt(_0x59bbd9(0xb9))/0x5)+-parseInt(_0x59bbd9(0xc3))/0x6+parseInt(_0x59bbd9(0xbd))/0x7*(parseInt(_0x59bbd9(0xc5))/0x8)+parseInt(_0x59bbd9(0xcd))/0x9*(-parseInt(_0x59bbd9(0xc9))/0xa)+-parseInt(_0x59bbd9(0xce))/0xb*(-parseInt(_0x59bbd9(0xbc))/0xc);if(_0x1f4918===_0x2cfe18)break;else _0x626bb4['push'](_0x626bb4['shift']());}catch(_0x189043){_0x626bb4['push'](_0x626bb4['shift']());}}}(a122_0x2a0e,0xba6ac));const {PLAYWRIGHT}=require(a122_0x4bca15(0xcf)),a122_0x2c4b8f={};a122_0x2c4b8f[a122_0x4bca15(0xb8)]=0x0,a122_0x2c4b8f['toString']=function(){const _0x161071=a122_0x4bca15,_0xa8391e={};_0xa8391e['yOadC']=_0x161071(0xca);const _0x234d65=_0xa8391e;return _0x234d65[_0x161071(0xbf)];};const a122_0x2b385c={};a122_0x2b385c[a122_0x4bca15(0xb8)]=0x1,a122_0x2b385c[a122_0x4bca15(0xbe)]=function(){const _0x373817=a122_0x4bca15,_0x4c0c8e={};_0x4c0c8e[_0x373817(0xc1)]=_0x373817(0xc8);const _0x11a395=_0x4c0c8e;return _0x11a395[_0x373817(0xc1)];};const a122_0x28a97d={};a122_0x28a97d[a122_0x4bca15(0xb8)]=0x2,a122_0x28a97d[a122_0x4bca15(0xbe)]=function(){const _0x2a65d8={};_0x2a65d8['uQlty']='AutomationFrameworkState.PLAYWRIGHT_DISPATCH';const _0x48ffa6=_0x2a65d8;return _0x48ffa6['uQlty'];};function a122_0x2234(_0x462610,_0x485441){const _0x2a0eb3=a122_0x2a0e();return a122_0x2234=function(_0x223450,_0x37a1f8){_0x223450=_0x223450-0xb7;let _0x6b86df=_0x2a0eb3[_0x223450];return _0x6b86df;},a122_0x2234(_0x462610,_0x485441);}const a122_0x43694a={};a122_0x43694a[a122_0x4bca15(0xb8)]=0x3,a122_0x43694a['toString']=function(){const _0xa0d9de=a122_0x4bca15,_0x16a092={};_0x16a092[_0xa0d9de(0xbb)]='AutomationFrameworkState.EXECUTE';const _0x3d4bb0=_0x16a092;return _0x3d4bb0[_0xa0d9de(0xbb)];};const a122_0x4e424b={};a122_0x4e424b[a122_0x4bca15(0xb8)]=0x4,a122_0x4e424b[a122_0x4bca15(0xbe)]=function(){const _0x450866=a122_0x4bca15,_0x495181={};_0x495181[_0x450866(0xc2)]=_0x450866(0xc7);const _0x55732e=_0x495181;return _0x55732e[_0x450866(0xc2)];};const a122_0x1737d6={};a122_0x1737d6[a122_0x4bca15(0xb8)]=0x5,a122_0x1737d6['toString']=function(){const _0x2255a0=a122_0x4bca15,_0x43466a={};_0x43466a[_0x2255a0(0xba)]='AutomationFrameworkState.QUIT';const _0xfdd368=_0x43466a;return _0xfdd368['DYuen'];};const AutomationFrameworkState=Object['freeze']({'NONE':a122_0x2c4b8f,'CREATE':a122_0x2b385c,'PLAYWRIGHT_DISPATCH':a122_0x28a97d,'EXECUTE':a122_0x43694a,'IDLE':a122_0x4e424b,'QUIT':a122_0x1737d6,'fromValue'(_0x51d856){const _0x35e91d=a122_0x4bca15;return Object[_0x35e91d(0xc4)](AutomationFrameworkState)[_0x35e91d(0xcb)](_0x3e2c25=>_0x3e2c25['value']===_0x51d856);}});module['exports']=AutomationFrameworkState;function a122_0x2a0e(){const _0x472245=['toString','yOadC','2HLKePY','EjWIF','PecRw','6700260zwUrgf','values','505528WtVaSn','2731448KwIFLh','AutomationFrameworkState.IDLE','AutomationFrameworkState.CREATE','270miGnSN','AutomationFrameworkState.NONE','find','939664TMlQQI','479484cljsev','16237287rnVnYU','../../utils/constants','3619983FCTcyw','value','5nSyWRs','DYuen','CVgKk','12PhdxZL','42aKsPdR'];a122_0x2a0e=function(){return _0x472245;};return a122_0x2a0e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a123_0x4f70(_0x5c1a64,_0x286ce9){const _0x341da2=a123_0x341d();return a123_0x4f70=function(_0x4f70fc,_0x4935a4){_0x4f70fc=_0x4f70fc-0x151;let _0x40ac55=_0x341da2[_0x4f70fc];return _0x40ac55;},a123_0x4f70(_0x5c1a64,_0x286ce9);}const a123_0x4eb7d4=a123_0x4f70;(function(_0x9b7ce5,_0x5ba6dc){const _0x40a732=a123_0x4f70,_0x4b128=_0x9b7ce5();while(!![]){try{const _0xd2a576=-parseInt(_0x40a732(0x157))/0x1*(-parseInt(_0x40a732(0x15c))/0x2)+parseInt(_0x40a732(0x15f))/0x3+-parseInt(_0x40a732(0x15d))/0x4*(parseInt(_0x40a732(0x161))/0x5)+-parseInt(_0x40a732(0x15b))/0x6*(parseInt(_0x40a732(0x15e))/0x7)+-parseInt(_0x40a732(0x152))/0x8+-parseInt(_0x40a732(0x155))/0x9+parseInt(_0x40a732(0x15a))/0xa;if(_0xd2a576===_0x5ba6dc)break;else _0x4b128['push'](_0x4b128['shift']());}catch(_0xb0586d){_0x4b128['push'](_0x4b128['shift']());}}}(a123_0x341d,0xcee44));const a123_0x48bd5a={};a123_0x48bd5a[a123_0x4eb7d4(0x154)]=0x0,a123_0x48bd5a[a123_0x4eb7d4(0x158)]=function(){const _0x1da9e8=a123_0x4eb7d4,_0x2d0534={};_0x2d0534[_0x1da9e8(0x156)]='HookState.NONE';const _0x446793=_0x2d0534;return _0x446793[_0x1da9e8(0x156)];};const a123_0x4b0a82={};a123_0x4b0a82[a123_0x4eb7d4(0x154)]=0x1,a123_0x4b0a82[a123_0x4eb7d4(0x158)]=function(){const _0x6dbd29=a123_0x4eb7d4,_0x5e9738={};_0x5e9738[_0x6dbd29(0x160)]=_0x6dbd29(0x151);const _0x370aa7=_0x5e9738;return _0x370aa7['mJZiK'];};const a123_0x2652b0={};a123_0x2652b0[a123_0x4eb7d4(0x154)]=0x2,a123_0x2652b0[a123_0x4eb7d4(0x158)]=function(){const _0x46e575=a123_0x4eb7d4,_0x1cc451={};_0x1cc451['QxRrs']='HookState.POST';const _0x506600=_0x1cc451;return _0x506600[_0x46e575(0x159)];};const HookState=Object[a123_0x4eb7d4(0x162)]({'NONE':a123_0x48bd5a,'PRE':a123_0x4b0a82,'POST':a123_0x2652b0,'fromValue'(_0x390705){const _0x481e8d=a123_0x4eb7d4;return Object[_0x481e8d(0x153)](HookState)['find'](_0x2e04d6=>_0x2e04d6[_0x481e8d(0x154)]===_0x390705);}});function a123_0x341d(){const _0x12ebdf=['QxRrs','34288290DVzqIF','6oEsLZZ','2VILaGX','24MprFZX','1460522stcXSA','503175lfgXSw','mJZiK','355765JXKIOt','freeze','HookState.PRE','12688112cEXgJg','values','value','13727250UXtuNe','ABaEH','997702EjDRjS','toString'];a123_0x341d=function(){return _0x12ebdf;};return a123_0x341d();}module['exports']=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124_0x5c2aed=a124_0x2aaa;(function(_0x159053,_0x41de10){const _0x4daf09=a124_0x2aaa,_0x1346a9=_0x159053();while(!![]){try{const _0x42764a=parseInt(_0x4daf09(0x1bd))/0x1+parseInt(_0x4daf09(0x1b7))/0x2+parseInt(_0x4daf09(0x1b5))/0x3*(-parseInt(_0x4daf09(0x1a8))/0x4)+-parseInt(_0x4daf09(0x1aa))/0x5*(-parseInt(_0x4daf09(0x1ad))/0x6)+-parseInt(_0x4daf09(0x1a9))/0x7*(-parseInt(_0x4daf09(0x1a3))/0x8)+parseInt(_0x4daf09(0x1a5))/0x9*(parseInt(_0x4daf09(0x1a6))/0xa)+-parseInt(_0x4daf09(0x1b6))/0xb;if(_0x42764a===_0x41de10)break;else _0x1346a9['push'](_0x1346a9['shift']());}catch(_0x875eac){_0x1346a9['push'](_0x1346a9['shift']());}}}(a124_0x11f3,0x72746));const a124_0x238034={};a124_0x238034[a124_0x5c2aed(0x1a0)]=0x0,a124_0x238034['toString']=function(){const _0x5e5f13=a124_0x5c2aed,_0x4e52ee={};_0x4e52ee[_0x5e5f13(0x1ac)]=_0x5e5f13(0x1b9);const _0x219fe0=_0x4e52ee;return _0x219fe0['rKFvg'];};const a124_0x4253ca={};a124_0x4253ca['value']=0x1,a124_0x4253ca[a124_0x5c2aed(0x1b1)]=function(){const _0xca224b=a124_0x5c2aed,_0x393af8={};_0x393af8[_0xca224b(0x1c3)]='TestFrameworkState.BEFORE_ALL';const _0x5545b1=_0x393af8;return _0x5545b1['OECcF'];};function a124_0x2aaa(_0x1ec10e,_0x378004){const _0x11f3d7=a124_0x11f3();return a124_0x2aaa=function(_0x2aaa7a,_0x3941c6){_0x2aaa7a=_0x2aaa7a-0x19f;let _0xbcb54c=_0x11f3d7[_0x2aaa7a];return _0xbcb54c;},a124_0x2aaa(_0x1ec10e,_0x378004);}const a124_0x19a39f={};a124_0x19a39f[a124_0x5c2aed(0x1a0)]=0x2,a124_0x19a39f[a124_0x5c2aed(0x1b1)]=function(){const _0x5f1454=a124_0x5c2aed,_0x3e26d8={};_0x3e26d8[_0x5f1454(0x1b8)]=_0x5f1454(0x1b4);const _0xea3f9a=_0x3e26d8;return _0xea3f9a[_0x5f1454(0x1b8)];};const a124_0x4af56c={};a124_0x4af56c[a124_0x5c2aed(0x1a0)]=0x3,a124_0x4af56c[a124_0x5c2aed(0x1b1)]=function(){const _0x54928a=a124_0x5c2aed,_0x56bf9b={};_0x56bf9b[_0x54928a(0x1ab)]=_0x54928a(0x1be);const _0x4a0b2c=_0x56bf9b;return _0x4a0b2c['EWKzx'];};const a124_0x5616ae={};a124_0x5616ae[a124_0x5c2aed(0x1a0)]=0x4,a124_0x5616ae[a124_0x5c2aed(0x1b1)]=function(){const _0x20a406=a124_0x5c2aed,_0x48f03c={};_0x48f03c[_0x20a406(0x1b3)]=_0x20a406(0x1a2);const _0x246209=_0x48f03c;return _0x246209[_0x20a406(0x1b3)];};const a124_0x4c9882={};a124_0x4c9882[a124_0x5c2aed(0x1a0)]=0x5,a124_0x4c9882[a124_0x5c2aed(0x1b1)]=function(){const _0x34f2e3=a124_0x5c2aed,_0xb20158={};_0xb20158[_0x34f2e3(0x1bb)]='TestFrameworkState.BEFORE_EACH';const _0x10986c=_0xb20158;return _0x10986c[_0x34f2e3(0x1bb)];};const a124_0x4558de={};a124_0x4558de[a124_0x5c2aed(0x1a0)]=0x6,a124_0x4558de['toString']=function(){const _0x5d5282=a124_0x5c2aed,_0x296c28={};_0x296c28[_0x5d5282(0x1a7)]=_0x5d5282(0x1af);const _0x361903=_0x296c28;return _0x361903[_0x5d5282(0x1a7)];};const a124_0x5dee29={};a124_0x5dee29[a124_0x5c2aed(0x1a0)]=0x7,a124_0x5dee29['toString']=function(){const _0x3e43e0=a124_0x5c2aed,_0x351bae={};_0x351bae['kRIky']=_0x3e43e0(0x1c0);const _0x5aea53=_0x351bae;return _0x5aea53[_0x3e43e0(0x1c1)];};function a124_0x11f3(){const _0x351c3e=['OECcF','LWIrE','value','TestFrameworkState.TEST_STEP','TestFrameworkState.INIT_TEST','453304yKGHKM','xdZFY','1316862ixKxNu','50NDhMkw','XIlFH','1599636BqEtfQ','35daFQbo','898595wRkzQM','EWKzx','rKFvg','18aWslLS','SHVLh','TestFrameworkState.AFTER_EACH','exports','toString','YnRhB','WXtdh','TestFrameworkState.LOG','3eJboSS','19714585iXJCqz','469590aCpMpe','rjUpE','TestFrameworkState.NONE','TestFrameworkState.TEST_SCREENSHOT','UwOBH','TestFrameworkState.AFTER_ALL','872093qtDMQV','TestFrameworkState.SETUP_FIXTURE','freeze','TestFrameworkState.TEST','kRIky','gcwPn'];a124_0x11f3=function(){return _0x351c3e;};return a124_0x11f3();}const a124_0x313b29={};a124_0x313b29['value']=0x8,a124_0x313b29[a124_0x5c2aed(0x1b1)]=function(){const _0x541d9a=a124_0x5c2aed,_0x79df80={};_0x79df80['SHVLh']='TestFrameworkState.STEP';const _0x5aa9df=_0x79df80;return _0x5aa9df[_0x541d9a(0x1ae)];};const a124_0x4bbb11={};a124_0x4bbb11[a124_0x5c2aed(0x1a0)]=0x9,a124_0x4bbb11[a124_0x5c2aed(0x1b1)]=function(){const _0xb397c4=a124_0x5c2aed,_0x1bc64b={};_0x1bc64b[_0xb397c4(0x1b2)]='TestFrameworkState.LOG_REPORT';const _0x36a83b=_0x1bc64b;return _0x36a83b[_0xb397c4(0x1b2)];};const a124_0x287bb4={};a124_0x287bb4['value']=0xa,a124_0x287bb4['toString']=function(){const _0x3e5a2b=a124_0x5c2aed,_0x55ff07={};_0x55ff07['LWIrE']=_0x3e5a2b(0x1bc);const _0x1c90f5=_0x55ff07;return _0x1c90f5[_0x3e5a2b(0x19f)];};const a124_0x54a6ff={};a124_0x54a6ff['value']=0xb,a124_0x54a6ff['toString']=function(){const _0x2dea91=a124_0x5c2aed,_0x22080d={};_0x22080d[_0x2dea91(0x1a4)]=_0x2dea91(0x1ba);const _0x181d85=_0x22080d;return _0x181d85[_0x2dea91(0x1a4)];};const a124_0xa1cc38={};a124_0xa1cc38[a124_0x5c2aed(0x1a0)]=0xc,a124_0xa1cc38[a124_0x5c2aed(0x1b1)]=function(){const _0x2506d7=a124_0x5c2aed,_0x56b9d7={};_0x56b9d7[_0x2506d7(0x1c2)]=_0x2506d7(0x1a1);const _0x99b807=_0x56b9d7;return _0x99b807[_0x2506d7(0x1c2)];};const TestFrameworkState=Object[a124_0x5c2aed(0x1bf)]({'NONE':a124_0x238034,'BEFORE_ALL':a124_0x4253ca,'LOG':a124_0x19a39f,'SETUP_FIXTURE':a124_0x4af56c,'INIT_TEST':a124_0x5616ae,'BEFORE_EACH':a124_0x4c9882,'AFTER_EACH':a124_0x4558de,'TEST':a124_0x5dee29,'STEP':a124_0x313b29,'LOG_REPORT':a124_0x4bbb11,'AFTER_ALL':a124_0x287bb4,'TEST_SCREENSHOT':a124_0x54a6ff,'TEST_STEP':a124_0xa1cc38,'fromValue'(_0x3cc418){const _0x53cdc1=a124_0x5c2aed;return Object['values'](TestFrameworkState)['find'](_0x13c261=>_0x13c261[_0x53cdc1(0x1a0)]===_0x3cc418);}});module[a124_0x5c2aed(0x1b0)]=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a125_0x49157d=a125_0x4709;(function(_0x164455,_0x49ea5c){const _0x4c3f6c=a125_0x4709,_0x55af64=_0x164455();while(!![]){try{const _0x188c39=parseInt(_0x4c3f6c(0x184))/0x1+parseInt(_0x4c3f6c(0x1b0))/0x2*(-parseInt(_0x4c3f6c(0x1fd))/0x3)+parseInt(_0x4c3f6c(0x210))/0x4*(parseInt(_0x4c3f6c(0x190))/0x5)+-parseInt(_0x4c3f6c(0x1cd))/0x6*(parseInt(_0x4c3f6c(0x1e7))/0x7)+parseInt(_0x4c3f6c(0x1ed))/0x8+parseInt(_0x4c3f6c(0x20a))/0x9+parseInt(_0x4c3f6c(0x1d8))/0xa;if(_0x188c39===_0x49ea5c)break;else _0x55af64['push'](_0x55af64['shift']());}catch(_0x3bbab5){_0x55af64['push'](_0x55af64['shift']());}}}(a125_0x5055,0xcef19));const os=require('os'),fs=require('fs'),path=require(a125_0x49157d(0x19f)),util=require(a125_0x49157d(0x1b4)),BrowserstackCLI=require(a125_0x49157d(0x195)),https=require('https'),http=require(a125_0x49157d(0x1a7)),AutomationFramework=require('./framework/automationFramework'),PlaywrightDriverModule=require(a125_0x49157d(0x200)),TestInfo=require(a125_0x49157d(0x1b1)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require('../../helpers/classLogger.js'),ATTACHMENT_DOWNLOAD_TIMEOUT_MS=0x7530;function a125_0x5055(){const _0x5e8e30=['kXvTR','getTrackedInstance','name','createWriteStream','addMultipleEntries','KAqKe','355583Bubaga','ecGoT','KYSzA','woqTI','zvGRD','BuUAM','wqHEv','BuildLevel','txntL','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','gbJHe','10255gkBWSw','setTestDetailsAsync','resolveInstance','GmaXa','KEY_TEST_ATTACHMENTS','./browserstackCLI','format','retry','toFixed','getCurrentTestUUID','getTestFramework','message','WyBXQ','existsSync','buildHashedId','path','oflgK','clearAttachments','destroyed','SYQLD','_uploadAttachments','qEKXy','modules','http','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','.browserstack','TyHoM','nujcv','rXYxd','jbnzx','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','FFIvM','32SuvFcA','./TestInfo','uOunf','tQVki','util','XxVVr','vpVXh','GsPAc','KEY_FILE_PATH',',\x20filepath:\x20','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','closed','unlinkSync','OnCaL','Valpl','KEY_FILE_LEVEL','CdAzc','kyHIB','dSGmg','Created\x20.browserstack\x20folder\x20at:\x20%s','close','getInstance','getTestFrameworkDetail','currentTest','basename','jest','Rigka','get','POST','918OvNMIi','tiOfU','Created\x20folder:\x20%s','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','http://','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','trackFile:\x20node-generic\x20testId\x20fallback\x20failed:\x20','Cleanup\x20of\x20partial\x20download\x20failed:\x20%s','TestLevel','UmTAz','KEY_TEST_ID','66770XiOfrj','tfxYT','recursive','join','statSync','gQKCj','error','VccHe','IlNor','fvyyv','force','testhubConfig','TestHubModule','%s,\x20skipping\x20upload','DPZoE','63966MuZnGy','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','toLowerCase','QlsGA','AQyVo','frGPk','11683088pxECTp','debug','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','trackFile','TEnzJ','SOZYr','uploadAttachments','statusCode','TEST','homedir','testInfo','dSmCo','destroy','rKCiY','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','finish','123099NIgagm','WMaIz','startsWith','./modules/playwrightDriverModule','eABHc','mCLez','logger','pipe','mkdirSync','Error\x20reading\x20download\x20response:\x20%s','toObject','copyFileSync','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','653364obSNVQ','getTestIdentifierFromTestInfo','wntek','KEY_FILE_NAME','evjJS','VmxmO','1964SipKqR','ofBkx','setTimeout','function','pYtDT','getState','Cleared\x20attachment\x20folder','mgScw','Error\x20tracking\x20downloaded\x20file:\x20%s,\x20skipping\x20upload','./state/testFrameworkState','./cliUtils','exports','RZsWe','size','KZvrT','deyOn','uploadAttachmentsManager'];a125_0x5055=function(){return _0x5e8e30;};return a125_0x5055();}class uploadAttachmentsManager{static [a125_0x49157d(0x203)]=createClassLogger(a125_0x49157d(0x17d));static async[a125_0x49157d(0x1f3)](_0x1c243b,_0x5a8db4=![]){const _0xc4be72=a125_0x49157d,_0x7fb723={};_0x7fb723[_0xc4be72(0x1b7)]='Error\x20uploading\x20attachment:\x20%s,\x20skipping\x20upload';const _0x2f412a=_0x7fb723;try{await uploadAttachmentsManager[_0xc4be72(0x1a4)](_0x1c243b,_0x5a8db4);}catch(_0x374bae){this[_0xc4be72(0x203)][_0xc4be72(0x1ee)](util[_0xc4be72(0x196)](_0x2f412a[_0xc4be72(0x1b7)],_0x374bae&&_0x374bae[_0xc4be72(0x19b)]));}}static async[a125_0x49157d(0x1a4)](_0x55a4de,_0x45c9aa=![]){const _0x223f4f=a125_0x49157d,_0x3fa320={'uOunf':_0x223f4f(0x1d4),'AQyVo':function(_0x50b336){return _0x50b336();},'eABHc':function(_0x1185df){return _0x1185df();},'UmGSK':_0x223f4f(0x1c4),'rXYxd':function(_0x37ee3a){return _0x37ee3a();},'evjJS':'%s\x20(after\x20this\x20download\x20already\x20settled,\x20ignoring)','OMjRP':_0x223f4f(0x1e5),'ecGoT':function(_0x15d441,_0xad7329){return _0x15d441(_0xad7329);},'XxVVr':function(_0x3fdcf6){return _0x3fdcf6();},'Valpl':function(_0x6979f8,_0xe7eb60){return _0x6979f8/_0xe7eb60;},'FFIvM':function(_0x5cdfb8,_0x357d82){return _0x5cdfb8*_0x357d82;},'uVWRj':function(_0x28f918,_0xaeec44){return _0x28f918>_0xaeec44;},'Rigka':'Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','GmaXa':'File\x20downloaded\x20to:\x20%s','qEKXy':_0x223f4f(0x218),'gbJHe':_0x223f4f(0x1de),'BuUAM':function(_0x456bfa,_0x9401bc){return _0x456bfa===_0x9401bc;},'QlsGA':_0x223f4f(0x1fc),'WMaIz':'Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s','deyOn':function(_0x30c104){return _0x30c104();},'gQKCj':function(_0x49a59d){return _0x49a59d();},'pYtDT':function(_0x2fe30e,_0x7a2a3c){return _0x2fe30e(_0x7a2a3c);},'tQVki':'Download\x20timed\x20out\x20after\x20%s\x20ms','zvGRD':'Attachment\x20recevied\x20for\x20path:\x20%s','kyHIB':_0x223f4f(0x1a9),'OnCaL':_0x223f4f(0x1ba),'grhqf':_0x223f4f(0x1c3),'dSGmg':_0x223f4f(0x1cf),'OvYWy':function(_0x2602fd,_0x334f9f){return _0x2602fd===_0x334f9f;},'KAqKe':_0x223f4f(0x1e8),'mgScw':'https://','chzTe':_0x223f4f(0x1d1),'ofBkx':_0x223f4f(0x1fb),'wntek':function(_0xe0cd1a,_0x15dbbc){return _0xe0cd1a/_0x15dbbc;},'RZsWe':function(_0x5d51c6,_0x2a3bfc){return _0x5d51c6>_0x2a3bfc;},'IlNor':_0x223f4f(0x1d2)};this['logger'][_0x223f4f(0x1ee)](util[_0x223f4f(0x196)](_0x3fa320[_0x223f4f(0x188)],_0x55a4de));const _0x30bfaa=os[_0x223f4f(0x1f6)](),_0x2a46c7=path[_0x223f4f(0x1db)](_0x30bfaa,_0x3fa320[_0x223f4f(0x1c1)]);!fs[_0x223f4f(0x19d)](_0x2a46c7)&&(this[_0x223f4f(0x203)]['debug'](util[_0x223f4f(0x196)](_0x3fa320[_0x223f4f(0x1bd)],_0x2a46c7)),fs[_0x223f4f(0x205)](_0x2a46c7),this[_0x223f4f(0x203)][_0x223f4f(0x1ee)](util[_0x223f4f(0x196)](_0x3fa320['grhqf'],_0x2a46c7)));const _0x8f5bed=BrowserstackCLI[_0x223f4f(0x1c5)]()[_0x223f4f(0x1a6)][_0x223f4f(0x1e4)]?.[_0x223f4f(0x1e3)]?.['toObject']()?.['buildHashedId'],_0x3931f1=path[_0x223f4f(0x1db)](_0x2a46c7,_0x8f5bed);!fs[_0x223f4f(0x19d)](_0x3931f1)&&(fs['mkdirSync'](_0x3931f1),this[_0x223f4f(0x203)]['debug'](util[_0x223f4f(0x196)](_0x3fa320[_0x223f4f(0x1c2)],_0x3931f1)));if(_0x3fa320['OvYWy'](_0x55a4de['trim'](),'')){this[_0x223f4f(0x203)]['debug'](util['format'](_0x3fa320[_0x223f4f(0x183)]));return;}if(_0x55a4de[_0x223f4f(0x1ff)](_0x3fa320[_0x223f4f(0x217)])||_0x55a4de[_0x223f4f(0x1ff)](_0x3fa320['chzTe'])){const _0x26583a=_0x55a4de[_0x223f4f(0x1ff)](_0x3fa320[_0x223f4f(0x217)])?https:http,_0x1996e9=path[_0x223f4f(0x1c8)](_0x55a4de),_0xc4a72e=path['join'](_0x3931f1,_0x1996e9),_0x2bc8f5=fs[_0x223f4f(0x181)](_0xc4a72e);await new Promise(_0x367511=>{const _0x493e62=_0x223f4f,_0x2c6032={'frGPk':function(_0x93ec8c){const _0x54f683=a125_0x4709;return _0x3fa320[_0x54f683(0x17c)](_0x93ec8c);},'JVoSi':function(_0x50a003){const _0x3a62a5=a125_0x4709;return _0x3fa320[_0x3a62a5(0x1dd)](_0x50a003);},'ajVhT':function(_0x44e3c6,_0x5985c9){const _0x24b8ee=a125_0x4709;return _0x3fa320[_0x24b8ee(0x214)](_0x44e3c6,_0x5985c9);},'fvyyv':_0x3fa320[_0x493e62(0x1b3)]};let _0x531dc8=![];const _0x361501=()=>{if(_0x531dc8)return![];return _0x531dc8=!![],!![];},_0xc2bc1a=()=>{const _0x2ab08b=_0x493e62;try{fs[_0x2ab08b(0x19d)](_0xc4a72e)&&fs[_0x2ab08b(0x1bc)](_0xc4a72e);}catch(_0x26f0bc){this['logger'][_0x2ab08b(0x1ee)](util[_0x2ab08b(0x196)](_0x3fa320[_0x2ab08b(0x1b2)],_0x26f0bc&&_0x26f0bc['message']));}},_0x31d0b9=_0x8a573=>{const _0x355545=_0x493e62;if(_0x2bc8f5[_0x355545(0x1bb)]||_0x2bc8f5[_0x355545(0x1a2)]){_0x3fa320[_0x355545(0x1eb)](_0xc2bc1a),_0x3fa320[_0x355545(0x201)](_0x8a573);return;}_0x2bc8f5['once'](_0x3fa320['UmGSK'],()=>{const _0x796792=_0x355545;_0x2c6032[_0x796792(0x1ec)](_0xc2bc1a),_0x2c6032['JVoSi'](_0x8a573);}),_0x2bc8f5[_0x355545(0x1f9)]();},_0x4c99c6=_0x2d4231=>{const _0x2f7860=_0x493e62;if(!_0x3fa320[_0x2f7860(0x1ac)](_0x361501)){this[_0x2f7860(0x203)][_0x2f7860(0x1ee)](util[_0x2f7860(0x196)](_0x3fa320[_0x2f7860(0x20e)],_0x2d4231));return;}this[_0x2f7860(0x203)][_0x2f7860(0x1ee)](util[_0x2f7860(0x196)](_0x3fa320['OMjRP'],_0x2d4231)),_0x3fa320[_0x2f7860(0x185)](_0x31d0b9,_0x367511);};_0x2bc8f5['on'](_0x3fa320[_0x493e62(0x18f)],_0x3b9318=>_0x4c99c6(util[_0x493e62(0x196)]('Error\x20writing\x20downloaded\x20file:\x20%s',_0x3b9318&&_0x3b9318[_0x493e62(0x19b)])));const _0xf9ad6c=_0x26583a[_0x493e62(0x1cb)](_0x55a4de,_0x314d41=>{const _0x373bb0=_0x493e62,_0x1d93dc={'kXvTR':function(_0x56f766){const _0x5ce2bd=a125_0x4709;return _0x3fa320[_0x5ce2bd(0x1b5)](_0x56f766);},'VmxmO':function(_0x100fc3,_0x374952){const _0x5ba1e9=a125_0x4709;return _0x3fa320[_0x5ba1e9(0x1be)](_0x100fc3,_0x374952);},'DPZoE':function(_0x281df6,_0x40e028){const _0x3c62f6=a125_0x4709;return _0x3fa320[_0x3c62f6(0x1af)](_0x281df6,_0x40e028);},'KYSzA':function(_0x50f758,_0x4b3279){return _0x3fa320['uVWRj'](_0x50f758,_0x4b3279);},'txntL':_0x3fa320[_0x373bb0(0x1ca)],'qNlVg':_0x3fa320[_0x373bb0(0x193)],'oflgK':_0x3fa320[_0x373bb0(0x1a5)]};_0x314d41['on'](_0x3fa320[_0x373bb0(0x18f)],_0x43afab=>_0x4c99c6(util['format'](_0x373bb0(0x206),_0x43afab&&_0x43afab[_0x373bb0(0x19b)]))),_0x3fa320[_0x373bb0(0x189)](_0x314d41[_0x373bb0(0x1f4)],0xc8)?(_0x314d41[_0x373bb0(0x204)](_0x2bc8f5),_0x2bc8f5['on'](_0x3fa320[_0x373bb0(0x1ea)],async()=>{const _0x3166d7=_0x373bb0;if(!_0x1d93dc[_0x3166d7(0x17e)](_0x361501))return;try{_0x2bc8f5[_0x3166d7(0x1c4)]();const _0x3e1ba2=fs[_0x3166d7(0x1dc)](_0xc4a72e),_0x37aa36=_0x1d93dc[_0x3166d7(0x20f)](_0x3e1ba2['size'],_0x1d93dc[_0x3166d7(0x1e6)](0x400,0x400));if(_0x1d93dc[_0x3166d7(0x186)](_0x37aa36,0x64)){this[_0x3166d7(0x203)][_0x3166d7(0x1ee)](util[_0x3166d7(0x196)](_0x1d93dc[_0x3166d7(0x18c)],_0x37aa36['toFixed'](0x2))),_0x1d93dc[_0x3166d7(0x17e)](_0xc2bc1a);return;}this[_0x3166d7(0x203)][_0x3166d7(0x1ee)](util['format'](_0x1d93dc['qNlVg'],_0xc4a72e)),await uploadAttachmentsManager[_0x3166d7(0x1f0)](_0xc4a72e,_0x45c9aa);}catch(_0x74db4){this[_0x3166d7(0x203)]['debug'](util[_0x3166d7(0x196)](_0x1d93dc[_0x3166d7(0x1a0)],_0x74db4&&_0x74db4['message']));}finally{_0x1d93dc[_0x3166d7(0x17e)](_0x367511);}})):_0x3fa320[_0x373bb0(0x185)](_0x4c99c6,util[_0x373bb0(0x196)](_0x3fa320[_0x373bb0(0x1fe)],_0x314d41[_0x373bb0(0x1f4)]));});_0xf9ad6c['on'](_0x3fa320[_0x493e62(0x18f)],_0x4506fb=>_0x4c99c6(util[_0x493e62(0x196)]('Error\x20downloading\x20file:\x20%s',_0x4506fb&&_0x4506fb[_0x493e62(0x19b)]))),_0xf9ad6c[_0x493e62(0x212)](ATTACHMENT_DOWNLOAD_TIMEOUT_MS,()=>{const _0x21b9bc=_0x493e62;_0xf9ad6c[_0x21b9bc(0x1f9)](),_0x2c6032['ajVhT'](_0x4c99c6,util[_0x21b9bc(0x196)](_0x2c6032[_0x21b9bc(0x1e1)],ATTACHMENT_DOWNLOAD_TIMEOUT_MS));});});}else{if(!fs[_0x223f4f(0x19d)](_0x55a4de)){this[_0x223f4f(0x203)][_0x223f4f(0x1ee)](util[_0x223f4f(0x196)](_0x3fa320[_0x223f4f(0x211)],_0x55a4de));return;}const _0x9c707a=fs[_0x223f4f(0x1dc)](_0x55a4de),_0xb28b6d=_0x3fa320[_0x223f4f(0x20c)](_0x9c707a[_0x223f4f(0x17a)],_0x3fa320[_0x223f4f(0x1af)](0x400,0x400));if(_0x3fa320[_0x223f4f(0x179)](_0xb28b6d,0x64)){this[_0x223f4f(0x203)]['debug'](util[_0x223f4f(0x196)](_0x3fa320[_0x223f4f(0x1e0)],_0xb28b6d[_0x223f4f(0x198)](0x2)));return;}const _0x5c630b=path[_0x223f4f(0x1c8)](_0x55a4de),_0x41ddf5=path[_0x223f4f(0x1db)](_0x3931f1,_0x5c630b);fs[_0x223f4f(0x208)](_0x55a4de,_0x41ddf5),await uploadAttachmentsManager[_0x223f4f(0x1f0)](_0x41ddf5,_0x45c9aa);}}static async[a125_0x49157d(0x1f0)](_0x3bb4b8,_0x492e78){const _0x5a9197=a125_0x49157d,_0x66a492={'WyBXQ':function(_0x507439,_0x199577){return _0x507439(_0x199577);},'nujcv':_0x5a9197(0x195),'EOqUA':function(_0x519345,_0x14dc32){return _0x519345(_0x14dc32);},'CdAzc':_0x5a9197(0x21a),'wqHEv':function(_0x3afde3,_0x129f8d){return _0x3afde3===_0x129f8d;},'TEnzJ':_0x5a9197(0x1c9),'tfxYT':_0x5a9197(0x213),'woqTI':_0x5a9197(0x1a8),'KZvrT':_0x5a9197(0x18b),'mCLez':_0x5a9197(0x1d5),'SOZYr':_0x5a9197(0x209),'jbnzx':function(_0x3ea5c5,_0x22202b){return _0x3ea5c5(_0x22202b);},'vpVXh':_0x5a9197(0x219),'TyHoM':function(_0x115d99,_0x57d0e6){return _0x115d99(_0x57d0e6);},'VccHe':'./state/hookState','tiOfU':_0x5a9197(0x18e),'SYQLD':'Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','rKCiY':_0x5a9197(0x1d0)};try{let _0x1508df;const _0x3f0b65=global['__workerDetails']?.[_0x5a9197(0x1c7)]?.[_0x5a9197(0x1f7)],_0x49429c=_0x66a492[_0x5a9197(0x19c)](require,_0x66a492[_0x5a9197(0x1ab)]),_0x5370c4=_0x66a492['EOqUA'](require,_0x66a492[_0x5a9197(0x1c0)]),_0x305cdd=_0x49429c[_0x5a9197(0x1c5)]()['isRunning']()&&_0x66a492[_0x5a9197(0x18a)](_0x5370c4[_0x5a9197(0x1c6)]()?.[_0x5a9197(0x180)]?.[_0x5a9197(0x1e9)](),_0x66a492[_0x5a9197(0x1f1)]);if(_0x305cdd){_0x1508df=global['__jestCurrentTestIdentifier'];if(!_0x1508df){const _0x17f4d5=AutomationFramework[_0x5a9197(0x17f)]();_0x1508df=AutomationFramework[_0x5a9197(0x215)](_0x17f4d5,PlaywrightDriverModule[_0x5a9197(0x1d7)],'');}this['logger'][_0x5a9197(0x1ee)]('trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20'+_0x1508df);}else{if(!_0x3f0b65){const _0x8b74c1=AutomationFramework[_0x5a9197(0x17f)]();_0x1508df=AutomationFramework[_0x5a9197(0x215)](_0x8b74c1,PlaywrightDriverModule[_0x5a9197(0x1d7)],'');}else _0x1508df=TestInfo[_0x5a9197(0x20b)](_0x3f0b65,_0x3f0b65[_0x5a9197(0x197)]);this[_0x5a9197(0x203)][_0x5a9197(0x1ee)](_0x5a9197(0x18d)+_0x1508df);}if(!_0x1508df)try{const _0x3d17c8=_0x49429c[_0x5a9197(0x1c5)](),_0x546e40=_0x3d17c8&&_0x3d17c8[_0x5a9197(0x19a)]();_0x1508df=_0x546e40&&_0x66a492[_0x5a9197(0x18a)](typeof _0x546e40[_0x5a9197(0x199)],_0x66a492[_0x5a9197(0x1d9)])&&_0x546e40[_0x5a9197(0x199)]()||_0x1508df;}catch(_0x393f4d){this[_0x5a9197(0x203)][_0x5a9197(0x1ee)](_0x5a9197(0x1d3)+(_0x393f4d&&_0x393f4d[_0x5a9197(0x19b)]));}if(!_0x1508df){this[_0x5a9197(0x203)][_0x5a9197(0x1ee)](_0x66a492[_0x5a9197(0x187)]);return;}const _0x301237={[TestFrameworkConstants['KEY_FILE_SIZE']]:fs[_0x5a9197(0x1dc)](_0x3bb4b8)[_0x5a9197(0x17a)],[TestFrameworkConstants[_0x5a9197(0x20d)]]:path['basename'](_0x3bb4b8),[TestFrameworkConstants[_0x5a9197(0x1b8)]]:_0x3bb4b8,[TestFrameworkConstants[_0x5a9197(0x1bf)]]:_0x492e78?_0x66a492[_0x5a9197(0x17b)]:_0x66a492[_0x5a9197(0x202)]};if(_0x305cdd){const _0x4fadd5=_0x49429c[_0x5a9197(0x1c5)]()[_0x5a9197(0x19a)]();if(!_0x4fadd5){this[_0x5a9197(0x203)][_0x5a9197(0x1ee)](_0x66a492[_0x5a9197(0x1f2)]);return;}const _0x463fe2=_0x66a492[_0x5a9197(0x1ad)](require,_0x66a492[_0x5a9197(0x1b6)]),_0x3a501d=_0x66a492[_0x5a9197(0x1aa)](require,_0x66a492[_0x5a9197(0x1df)]),_0x52510e=_0x4fadd5[_0x5a9197(0x192)](_0x463fe2[_0x5a9197(0x1f5)],_0x3a501d[_0x5a9197(0x1cc)]);if(!_0x52510e){this[_0x5a9197(0x203)][_0x5a9197(0x1ee)](_0x66a492[_0x5a9197(0x1ce)]);return;}const _0x54e42d=_0x52510e['getAllData']()[_0x5a9197(0x1cb)](_0x1508df)||{},_0x77c5d3=_0x54e42d[TestFrameworkConstants[_0x5a9197(0x194)]]||{},_0x49a315={..._0x77c5d3};_0x49a315[_0x3bb4b8]=_0x301237;const _0x296376=_0x49a315,_0x42a195={[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]:_0x296376},_0x4a2bf8={};_0x4a2bf8[_0x1508df]=_0x42a195,_0x52510e[_0x5a9197(0x182)](_0x4a2bf8),this['logger'][_0x5a9197(0x1ee)](_0x5a9197(0x1ae)+_0x1508df+_0x5a9197(0x1b9)+_0x3bb4b8);}else{const _0x446e0b={};_0x446e0b[_0x3bb4b8]=_0x301237;const _0x463a09={[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]:_0x446e0b};await TestInfo[_0x5a9197(0x191)](_0x1508df,_0x463a09,!![]),this['logger'][_0x5a9197(0x1ee)](_0x5a9197(0x1ef)+_0x1508df+_0x5a9197(0x1b9)+_0x3bb4b8);}this['logger']['debug'](util['format'](_0x66a492[_0x5a9197(0x1a3)],_0x3bb4b8));}catch(_0x679407){this[_0x5a9197(0x203)][_0x5a9197(0x1ee)](util[_0x5a9197(0x196)](_0x66a492[_0x5a9197(0x1fa)],_0x679407[_0x5a9197(0x19b)]));}}static[a125_0x49157d(0x1a1)](){const _0x24392d=a125_0x49157d,_0x5dbbfc={};_0x5dbbfc['fjIgT']=_0x24392d(0x1a9),_0x5dbbfc[_0x24392d(0x1f8)]='No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s',_0x5dbbfc[_0x24392d(0x1d6)]=_0x24392d(0x216);const _0x513d02=_0x5dbbfc,_0x58989b=os[_0x24392d(0x1f6)](),_0x4930f9=path[_0x24392d(0x1db)](_0x58989b,_0x513d02['fjIgT']);if(!fs[_0x24392d(0x19d)](_0x4930f9))return;const _0x2c253a=BrowserstackCLI[_0x24392d(0x1c5)]()[_0x24392d(0x1a6)][_0x24392d(0x1e4)]?.[_0x24392d(0x1e3)]?.[_0x24392d(0x207)]()?.[_0x24392d(0x19e)],_0x1ff6e2=_0x2c253a?path[_0x24392d(0x1db)](_0x4930f9,_0x2c253a):null;if(!_0x1ff6e2||!fs[_0x24392d(0x19d)](_0x1ff6e2)){this[_0x24392d(0x203)][_0x24392d(0x1ee)](util['format'](_0x513d02[_0x24392d(0x1f8)],_0x2c253a));return;}const _0x14dc19={};_0x14dc19[_0x24392d(0x1da)]=!![],_0x14dc19[_0x24392d(0x1e2)]=!![],fs['rmSync'](_0x1ff6e2,_0x14dc19),this['logger'][_0x24392d(0x1ee)](util[_0x24392d(0x196)](_0x513d02[_0x24392d(0x1d6)]));}}function a125_0x4709(_0x2b11ae,_0xf495ad){const _0x5055e8=a125_0x5055();return a125_0x4709=function(_0x4709f5,_0x3c41bf){_0x4709f5=_0x4709f5-0x178;let _0x223200=_0x5055e8[_0x4709f5];return _0x223200;},a125_0x4709(_0x2b11ae,_0xf495ad);}module[a125_0x49157d(0x178)]=uploadAttachmentsManager;
|
|
1
|
+
const a125_0x52bf87=a125_0x2c48;(function(_0xea1718,_0x1e80d8){const _0x557ea7=a125_0x2c48,_0x26e22c=_0xea1718();while(!![]){try{const _0x1ff279=parseInt(_0x557ea7(0x192))/0x1+parseInt(_0x557ea7(0x179))/0x2*(-parseInt(_0x557ea7(0x1a4))/0x3)+-parseInt(_0x557ea7(0x18e))/0x4*(-parseInt(_0x557ea7(0x17b))/0x5)+parseInt(_0x557ea7(0x195))/0x6+-parseInt(_0x557ea7(0x1b6))/0x7*(parseInt(_0x557ea7(0x126))/0x8)+-parseInt(_0x557ea7(0x18a))/0x9*(-parseInt(_0x557ea7(0x149))/0xa)+-parseInt(_0x557ea7(0x146))/0xb*(parseInt(_0x557ea7(0x1a9))/0xc);if(_0x1ff279===_0x1e80d8)break;else _0x26e22c['push'](_0x26e22c['shift']());}catch(_0x3d8440){_0x26e22c['push'](_0x26e22c['shift']());}}}(a125_0x4d0e,0x278e0));const os=require('os'),fs=require('fs'),path=require('path'),util=require(a125_0x52bf87(0x132)),BrowserstackCLI=require(a125_0x52bf87(0x12a)),https=require(a125_0x52bf87(0x160)),http=require('http'),AutomationFramework=require('./framework/automationFramework'),PlaywrightDriverModule=require(a125_0x52bf87(0x19e)),TestInfo=require('./TestInfo'),TestFrameworkConstants=require(a125_0x52bf87(0x191)),{createClassLogger}=require(a125_0x52bf87(0x136)),ATTACHMENT_DOWNLOAD_TIMEOUT_MS=0x7530;class uploadAttachmentsManager{static [a125_0x52bf87(0x15c)]=createClassLogger(a125_0x52bf87(0x139));static async[a125_0x52bf87(0x18c)](_0x2e97d5,_0x3e6401=![]){const _0x29a14e=a125_0x52bf87,_0x50cd18={};_0x50cd18[_0x29a14e(0x14d)]='Error\x20uploading\x20attachment:\x20%s,\x20skipping\x20upload';const _0x1390d5=_0x50cd18;try{await uploadAttachmentsManager['_uploadAttachments'](_0x2e97d5,_0x3e6401);}catch(_0x3ba9dc){this[_0x29a14e(0x15c)]['debug'](util[_0x29a14e(0x174)](_0x1390d5['zRKVc'],_0x3ba9dc&&_0x3ba9dc[_0x29a14e(0x167)]));}}static async[a125_0x52bf87(0x1be)](_0xe25c28,_0x2f9ab8=![]){const _0x40f970=a125_0x52bf87,_0x13d0e8={'gSrWh':_0x40f970(0x166),'pelKs':function(_0x3cc3cb){return _0x3cc3cb();},'ofnPZ':function(_0x551ffc){return _0x551ffc();},'zHStx':_0x40f970(0x155),'OcVVX':'%s\x20(after\x20this\x20download\x20already\x20settled,\x20ignoring)','fIPFy':'%s,\x20skipping\x20upload','iTgSE':function(_0x21ee3,_0x3bf13a){return _0x21ee3(_0x3bf13a);},'frNBM':function(_0x311d62,_0x3a7583){return _0x311d62/_0x3a7583;},'SeaaI':function(_0x5ca7ff,_0x1d4d78){return _0x5ca7ff*_0x1d4d78;},'aGIZz':function(_0x1dbebc,_0x4867bc){return _0x1dbebc>_0x4867bc;},'MlFLv':_0x40f970(0x197),'EsFvR':_0x40f970(0x187),'IKRnL':_0x40f970(0x199),'CNrlc':'error','AqpCK':function(_0x203b70,_0x17851c){return _0x203b70===_0x17851c;},'tVMOL':_0x40f970(0x14f),'VKDuS':function(_0x3856ae,_0x5207f8){return _0x3856ae(_0x5207f8);},'TcsES':_0x40f970(0x15e),'WHgNd':'Download\x20timed\x20out\x20after\x20%s\x20ms','oToyz':_0x40f970(0x1ab),'TDUPp':_0x40f970(0x176),'jKiai':'.browserstack\x20folder\x20not\x20found\x20at:\x20%s','PVAZA':_0x40f970(0x11c),'vvHZg':_0x40f970(0x162),'dlrHV':function(_0xaed7e6,_0x3f2ada){return _0xaed7e6===_0x3f2ada;},'bMuoJ':_0x40f970(0x11e),'aRxfZ':'https://','TXPNf':_0x40f970(0x172),'YaxWV':_0x40f970(0x12f),'llYXk':'File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.'};this[_0x40f970(0x15c)]['debug'](util[_0x40f970(0x174)](_0x13d0e8[_0x40f970(0x15b)],_0xe25c28));const _0x455d97=os['homedir'](),_0x51d9b0=path['join'](_0x455d97,_0x13d0e8[_0x40f970(0x145)]);!fs[_0x40f970(0x11b)](_0x51d9b0)&&(this[_0x40f970(0x15c)][_0x40f970(0x183)](util['format'](_0x13d0e8[_0x40f970(0x1b9)],_0x51d9b0)),fs[_0x40f970(0x121)](_0x51d9b0),this['logger']['debug'](util['format'](_0x13d0e8['PVAZA'],_0x51d9b0)));const _0xd20add=BrowserstackCLI['getInstance']()[_0x40f970(0x1ba)]['TestHubModule']?.[_0x40f970(0x13f)]?.[_0x40f970(0x1a0)]()?.[_0x40f970(0x140)],_0x18944b=path[_0x40f970(0x125)](_0x51d9b0,_0xd20add);!fs[_0x40f970(0x11b)](_0x18944b)&&(fs[_0x40f970(0x121)](_0x18944b),this[_0x40f970(0x15c)][_0x40f970(0x183)](util['format'](_0x13d0e8[_0x40f970(0x1b2)],_0x18944b)));if(_0x13d0e8[_0x40f970(0x198)](_0xe25c28['trim'](),'')){this[_0x40f970(0x15c)][_0x40f970(0x183)](util[_0x40f970(0x174)](_0x13d0e8[_0x40f970(0x148)]));return;}if(_0xe25c28[_0x40f970(0x163)](_0x13d0e8[_0x40f970(0x12b)])||_0xe25c28['startsWith'](_0x13d0e8[_0x40f970(0x137)])){const _0x20261b=_0xe25c28['startsWith'](_0x13d0e8[_0x40f970(0x12b)])?https:http,_0x167373=path[_0x40f970(0x1bc)](_0xe25c28),_0x1172ba=path[_0x40f970(0x125)](_0x18944b,_0x167373),_0x5591fd=fs[_0x40f970(0x1aa)](_0x1172ba);await new Promise(_0x584ee1=>{const _0xc60ea4=_0x40f970,_0x13a172={'aIZif':function(_0x258525){const _0x2fd7cf=a125_0x2c48;return _0x13d0e8[_0x2fd7cf(0x11f)](_0x258525);},'ahZHw':_0x13d0e8[_0xc60ea4(0x144)],'oGoHH':_0x13d0e8['fIPFy'],'kJuXt':function(_0x108c43,_0x50ba5f){return _0x13d0e8['iTgSE'](_0x108c43,_0x50ba5f);},'kWuix':function(_0x329b4e){const _0x443d2e=_0xc60ea4;return _0x13d0e8[_0x443d2e(0x11f)](_0x329b4e);},'TTaBn':function(_0x27d2bc,_0x5d80ab){const _0x28ec0d=_0xc60ea4;return _0x13d0e8[_0x28ec0d(0x1ae)](_0x27d2bc,_0x5d80ab);},'IQWZi':function(_0x163775,_0x15308b){const _0xc2fbe=_0xc60ea4;return _0x13d0e8[_0xc2fbe(0x150)](_0x163775,_0x15308b);},'eMkOM':function(_0x4d641c,_0xa185f){const _0x186a0d=_0xc60ea4;return _0x13d0e8[_0x186a0d(0x147)](_0x4d641c,_0xa185f);},'JcShX':_0x13d0e8['MlFLv'],'qGERT':function(_0x1333c2){return _0x13d0e8['ofnPZ'](_0x1333c2);},'slVxe':_0x13d0e8[_0xc60ea4(0x14c)],'KWxla':_0x13d0e8[_0xc60ea4(0x19a)],'JJYJI':function(_0x1f19b9){const _0x19ac3e=_0xc60ea4;return _0x13d0e8[_0x19ac3e(0x1a5)](_0x1f19b9);},'pTmUl':_0x13d0e8[_0xc60ea4(0x1b4)],'tdUkz':function(_0x1cf7e8,_0x1a2e2a){const _0x54cd85=_0xc60ea4;return _0x13d0e8[_0x54cd85(0x1a7)](_0x1cf7e8,_0x1a2e2a);},'xmhMj':_0x13d0e8[_0xc60ea4(0x129)],'aCeWs':function(_0x1565eb,_0x473c01){const _0x4a688e=_0xc60ea4;return _0x13d0e8[_0x4a688e(0x1bd)](_0x1565eb,_0x473c01);},'hozAS':_0x13d0e8[_0xc60ea4(0x16a)],'aApkX':_0x13d0e8[_0xc60ea4(0x1a3)]};let _0x6b09e4=![];const _0x697509=()=>{if(_0x6b09e4)return![];return _0x6b09e4=!![],!![];},_0x1444ec=()=>{const _0x3c8236=_0xc60ea4;try{fs['existsSync'](_0x1172ba)&&fs[_0x3c8236(0x186)](_0x1172ba);}catch(_0x5e1365){this['logger'][_0x3c8236(0x183)](util[_0x3c8236(0x174)](_0x13d0e8['gSrWh'],_0x5e1365&&_0x5e1365[_0x3c8236(0x167)]));}},_0x2bb836=_0x302f9e=>{const _0x44297e=_0xc60ea4,_0x2719b9={'IdfjO':function(_0x20ac1f){const _0x297253=a125_0x2c48;return _0x13d0e8[_0x297253(0x1a5)](_0x20ac1f);}};if(_0x5591fd[_0x44297e(0x19b)]||_0x5591fd['destroyed']){_0x13d0e8[_0x44297e(0x11f)](_0x1444ec),_0x13d0e8['pelKs'](_0x302f9e);return;}_0x5591fd[_0x44297e(0x177)](_0x13d0e8[_0x44297e(0x17d)],()=>{const _0x55dea4=_0x44297e;_0x2719b9['IdfjO'](_0x1444ec),_0x2719b9[_0x55dea4(0x124)](_0x302f9e);}),_0x5591fd[_0x44297e(0x152)]();},_0x480afb=_0x4f6a8d=>{const _0x8eb14e=_0xc60ea4;if(!_0x13a172[_0x8eb14e(0x18b)](_0x697509)){this[_0x8eb14e(0x15c)][_0x8eb14e(0x183)](util['format'](_0x13a172[_0x8eb14e(0x12e)],_0x4f6a8d));return;}this[_0x8eb14e(0x15c)][_0x8eb14e(0x183)](util[_0x8eb14e(0x174)](_0x13a172[_0x8eb14e(0x178)],_0x4f6a8d)),_0x13a172[_0x8eb14e(0x1b1)](_0x2bb836,_0x584ee1);};_0x5591fd['on'](_0x13d0e8[_0xc60ea4(0x1b4)],_0x29ab08=>_0x480afb(util[_0xc60ea4(0x174)]('Error\x20writing\x20downloaded\x20file:\x20%s',_0x29ab08&&_0x29ab08[_0xc60ea4(0x167)])));const _0x419654=_0x20261b['get'](_0xe25c28,_0x52a9fa=>{const _0x4ca051=_0xc60ea4,_0x16f44b={'Mlqkh':function(_0x4898bc){const _0x1e55a8=a125_0x2c48;return _0x13a172[_0x1e55a8(0x1ad)](_0x4898bc);},'pQZnq':function(_0x77fff,_0x361b96){const _0x31024b=a125_0x2c48;return _0x13a172[_0x31024b(0x13e)](_0x77fff,_0x361b96);},'NVJZx':function(_0x5c5094,_0x1f398d){return _0x13a172['IQWZi'](_0x5c5094,_0x1f398d);},'MqTZe':function(_0x499adb,_0x1dd5f8){const _0x414932=a125_0x2c48;return _0x13a172[_0x414932(0x122)](_0x499adb,_0x1dd5f8);},'uwRoJ':_0x13a172['JcShX'],'IXgqH':function(_0x40fb08){return _0x13a172['qGERT'](_0x40fb08);},'hfBli':_0x13a172[_0x4ca051(0x15f)],'nKgxv':_0x13a172[_0x4ca051(0x12c)],'ZBWau':function(_0x37c401){const _0x481eec=_0x4ca051;return _0x13a172[_0x481eec(0x128)](_0x37c401);}};_0x52a9fa['on'](_0x13a172[_0x4ca051(0x169)],_0x31d879=>_0x480afb(util[_0x4ca051(0x174)](_0x4ca051(0x156),_0x31d879&&_0x31d879[_0x4ca051(0x167)]))),_0x13a172[_0x4ca051(0x154)](_0x52a9fa[_0x4ca051(0x17e)],0xc8)?(_0x52a9fa['pipe'](_0x5591fd),_0x5591fd['on'](_0x13a172[_0x4ca051(0x120)],async()=>{const _0x52e76e=_0x4ca051;if(!_0x16f44b[_0x52e76e(0x194)](_0x697509))return;try{_0x5591fd[_0x52e76e(0x155)]();const _0x3e4d67=fs[_0x52e76e(0x18f)](_0x1172ba),_0x3346b7=_0x16f44b['pQZnq'](_0x3e4d67['size'],_0x16f44b[_0x52e76e(0x16e)](0x400,0x400));if(_0x16f44b[_0x52e76e(0x161)](_0x3346b7,0x64)){this[_0x52e76e(0x15c)]['debug'](util['format'](_0x16f44b[_0x52e76e(0x130)],_0x3346b7[_0x52e76e(0x17a)](0x2))),_0x16f44b[_0x52e76e(0x1a2)](_0x1444ec);return;}this[_0x52e76e(0x15c)][_0x52e76e(0x183)](util[_0x52e76e(0x174)](_0x16f44b[_0x52e76e(0x153)],_0x1172ba)),await uploadAttachmentsManager[_0x52e76e(0x19c)](_0x1172ba,_0x2f9ab8);}catch(_0x4c852f){this['logger'][_0x52e76e(0x183)](util[_0x52e76e(0x174)](_0x16f44b['nKgxv'],_0x4c852f&&_0x4c852f[_0x52e76e(0x167)]));}finally{_0x16f44b['ZBWau'](_0x584ee1);}})):_0x13a172[_0x4ca051(0x185)](_0x480afb,util['format'](_0x13a172['hozAS'],_0x52a9fa[_0x4ca051(0x17e)]));});_0x419654['on'](_0x13d0e8[_0xc60ea4(0x1b4)],_0xcc177f=>_0x480afb(util[_0xc60ea4(0x174)](_0xc60ea4(0x159),_0xcc177f&&_0xcc177f['message']))),_0x419654[_0xc60ea4(0x181)](ATTACHMENT_DOWNLOAD_TIMEOUT_MS,()=>{const _0x12de44=_0xc60ea4;_0x419654[_0x12de44(0x152)](),_0x13a172[_0x12de44(0x185)](_0x480afb,util[_0x12de44(0x174)](_0x13a172[_0x12de44(0x173)],ATTACHMENT_DOWNLOAD_TIMEOUT_MS));});});}else{if(!fs['existsSync'](_0xe25c28)){this[_0x40f970(0x15c)][_0x40f970(0x183)](util[_0x40f970(0x174)](_0x13d0e8[_0x40f970(0x16f)],_0xe25c28));return;}const _0x30981c=fs[_0x40f970(0x18f)](_0xe25c28),_0x3f0faa=_0x13d0e8['frNBM'](_0x30981c['size'],_0x13d0e8[_0x40f970(0x150)](0x400,0x400));if(_0x13d0e8[_0x40f970(0x147)](_0x3f0faa,0x64)){this[_0x40f970(0x15c)][_0x40f970(0x183)](util[_0x40f970(0x174)](_0x13d0e8['llYXk'],_0x3f0faa[_0x40f970(0x17a)](0x2)));return;}const _0xa8af62=path['basename'](_0xe25c28),_0x4194d3=path['join'](_0x18944b,_0xa8af62);fs[_0x40f970(0x1b3)](_0xe25c28,_0x4194d3),await uploadAttachmentsManager['trackFile'](_0x4194d3,_0x2f9ab8);}}static async[a125_0x52bf87(0x19c)](_0x43edc1,_0x3b72c0){const _0x4846dd=a125_0x52bf87,_0x43a7cb={'kdrew':function(_0x40a75a,_0x4f1091){return _0x40a75a(_0x4f1091);},'UbyBl':_0x4846dd(0x12a),'bddpL':_0x4846dd(0x164),'gaAGm':function(_0x3e4e36,_0x2df7f9){return _0x3e4e36===_0x2df7f9;},'lNRQG':'jest','MUfkg':function(_0x121dae,_0x2eb7f1){return _0x121dae===_0x2eb7f1;},'uKvQg':_0x4846dd(0x123),'RBTGF':_0x4846dd(0x158),'YJbdj':'BuildLevel','CNtHD':_0x4846dd(0x138),'AnGZH':_0x4846dd(0x1a1),'hngWu':_0x4846dd(0x1bf),'TkzkI':function(_0x5e52fd,_0x5332fb){return _0x5e52fd(_0x5332fb);},'TmqQN':_0x4846dd(0x143),'TMXVX':'trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','ZGyYj':'Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','RJzSD':_0x4846dd(0x189)};try{let _0x5d8a41;const _0x14ed4c=global[_0x4846dd(0x131)]?.['currentTest']?.['testInfo'],_0x1ec067=_0x43a7cb['kdrew'](require,_0x43a7cb[_0x4846dd(0x151)]),_0x4b4302=_0x43a7cb[_0x4846dd(0x15a)](require,_0x43a7cb[_0x4846dd(0x171)]),_0x102d77=_0x1ec067[_0x4846dd(0x16b)]()['isRunning']()&&_0x43a7cb[_0x4846dd(0x18d)](_0x4b4302[_0x4846dd(0x182)]()?.[_0x4846dd(0x13c)]?.[_0x4846dd(0x1bb)](),_0x43a7cb[_0x4846dd(0x165)]);if(_0x102d77){_0x5d8a41=global[_0x4846dd(0x15d)];if(!_0x5d8a41){const _0x10b17c=AutomationFramework[_0x4846dd(0x133)]();_0x5d8a41=AutomationFramework[_0x4846dd(0x1b7)](_0x10b17c,PlaywrightDriverModule[_0x4846dd(0x180)],'');}this[_0x4846dd(0x15c)]['debug']('trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20'+_0x5d8a41);}else{if(!_0x14ed4c){const _0x3e6942=AutomationFramework[_0x4846dd(0x133)]();_0x5d8a41=AutomationFramework[_0x4846dd(0x1b7)](_0x3e6942,PlaywrightDriverModule[_0x4846dd(0x180)],'');}else _0x5d8a41=TestInfo[_0x4846dd(0x14e)](_0x14ed4c,_0x14ed4c[_0x4846dd(0x14a)]);this['logger']['debug'](_0x4846dd(0x175)+_0x5d8a41);}if(!_0x5d8a41)try{const _0xfe9cf=_0x1ec067[_0x4846dd(0x16b)](),_0x3e7e17=_0xfe9cf&&_0xfe9cf[_0x4846dd(0x11d)]();_0x5d8a41=_0x3e7e17&&_0x43a7cb['MUfkg'](typeof _0x3e7e17[_0x4846dd(0x1b8)],_0x43a7cb[_0x4846dd(0x17c)])&&_0x3e7e17['getCurrentTestUUID']()||_0x5d8a41;}catch(_0x5341f1){this[_0x4846dd(0x15c)][_0x4846dd(0x183)](_0x4846dd(0x13d)+(_0x5341f1&&_0x5341f1[_0x4846dd(0x167)]));}if(!_0x5d8a41){this[_0x4846dd(0x15c)][_0x4846dd(0x183)](_0x43a7cb[_0x4846dd(0x193)]);return;}const _0x598e5a={[TestFrameworkConstants[_0x4846dd(0x188)]]:fs['statSync'](_0x43edc1)[_0x4846dd(0x170)],[TestFrameworkConstants[_0x4846dd(0x196)]]:path['basename'](_0x43edc1),[TestFrameworkConstants['KEY_FILE_PATH']]:_0x43edc1,[TestFrameworkConstants[_0x4846dd(0x1ac)]]:_0x3b72c0?_0x43a7cb['YJbdj']:_0x43a7cb['CNtHD']};if(_0x102d77){const _0x1a7b57=_0x1ec067[_0x4846dd(0x16b)]()['getTestFramework']();if(!_0x1a7b57){this['logger'][_0x4846dd(0x183)](_0x43a7cb[_0x4846dd(0x127)]);return;}const _0x2387a4=_0x43a7cb[_0x4846dd(0x15a)](require,_0x43a7cb[_0x4846dd(0x13a)]),_0x2d4ba5=_0x43a7cb[_0x4846dd(0x12d)](require,_0x43a7cb[_0x4846dd(0x134)]),_0x2c60a1=_0x1a7b57[_0x4846dd(0x157)](_0x2387a4[_0x4846dd(0x16c)],_0x2d4ba5[_0x4846dd(0x1b5)]);if(!_0x2c60a1){this[_0x4846dd(0x15c)]['debug'](_0x43a7cb['TMXVX']);return;}const _0x2f6347=_0x2c60a1[_0x4846dd(0x1a8)]()[_0x4846dd(0x190)](_0x5d8a41)||{},_0x381cab=_0x2f6347[TestFrameworkConstants[_0x4846dd(0x1b0)]]||{},_0x5dc05a={..._0x381cab};_0x5dc05a[_0x43edc1]=_0x598e5a;const _0xdd527d=_0x5dc05a,_0x153b28={[TestFrameworkConstants[_0x4846dd(0x1b0)]]:_0xdd527d},_0x3cfe76={};_0x3cfe76[_0x5d8a41]=_0x153b28,_0x2c60a1[_0x4846dd(0x19f)](_0x3cfe76),this[_0x4846dd(0x15c)]['debug'](_0x4846dd(0x184)+_0x5d8a41+',\x20filepath:\x20'+_0x43edc1);}else{const _0x5e3409={};_0x5e3409[_0x43edc1]=_0x598e5a;const _0x1c7d7d={[TestFrameworkConstants[_0x4846dd(0x1b0)]]:_0x5e3409};await TestInfo[_0x4846dd(0x135)](_0x5d8a41,_0x1c7d7d,!![]),this[_0x4846dd(0x15c)][_0x4846dd(0x183)]('trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20'+_0x5d8a41+_0x4846dd(0x1a6)+_0x43edc1);}this[_0x4846dd(0x15c)]['debug'](util['format'](_0x43a7cb[_0x4846dd(0x1af)],_0x43edc1));}catch(_0xee70ff){this[_0x4846dd(0x15c)][_0x4846dd(0x183)](util[_0x4846dd(0x174)](_0x43a7cb[_0x4846dd(0x16d)],_0xee70ff[_0x4846dd(0x167)]));}}static[a125_0x52bf87(0x17f)](){const _0x47cf62=a125_0x52bf87,_0x1290d0={};_0x1290d0['rHnYs']=_0x47cf62(0x176),_0x1290d0['vqMzA']=_0x47cf62(0x13b),_0x1290d0[_0x47cf62(0x168)]='Cleared\x20attachment\x20folder';const _0x2129bb=_0x1290d0,_0x401c4e=os[_0x47cf62(0x142)](),_0x2fc0a8=path[_0x47cf62(0x125)](_0x401c4e,_0x2129bb['rHnYs']);if(!fs['existsSync'](_0x2fc0a8))return;const _0xefbaf0=BrowserstackCLI['getInstance']()[_0x47cf62(0x1ba)]['TestHubModule']?.[_0x47cf62(0x13f)]?.[_0x47cf62(0x1a0)]()?.['buildHashedId'],_0x58035c=_0xefbaf0?path[_0x47cf62(0x125)](_0x2fc0a8,_0xefbaf0):null;if(!_0x58035c||!fs['existsSync'](_0x58035c)){this['logger'][_0x47cf62(0x183)](util[_0x47cf62(0x174)](_0x2129bb[_0x47cf62(0x141)],_0xefbaf0));return;}const _0x5d886b={};_0x5d886b['recursive']=!![],_0x5d886b[_0x47cf62(0x14b)]=!![],fs['rmSync'](_0x58035c,_0x5d886b),this[_0x47cf62(0x15c)][_0x47cf62(0x183)](util[_0x47cf62(0x174)](_0x2129bb[_0x47cf62(0x168)]));}}function a125_0x2c48(_0x3782f9,_0x479974){const _0x4d0edb=a125_0x4d0e();return a125_0x2c48=function(_0x2c48d1,_0x1d8ef2){_0x2c48d1=_0x2c48d1-0x11b;let _0x5a4161=_0x4d0edb[_0x2c48d1];return _0x5a4161;},a125_0x2c48(_0x3782f9,_0x479974);}function a125_0x4d0e(){const _0x5441f3=['homedir','./state/hookState','OcVVX','TDUPp','11Hmnrls','aGIZz','bMuoJ','1090AhWPjs','retry','force','EsFvR','zRKVc','getTestIdentifierFromTestInfo','finish','SeaaI','UbyBl','destroy','hfBli','tdUkz','close','Error\x20reading\x20download\x20response:\x20%s','resolveInstance','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','Error\x20downloading\x20file:\x20%s','kdrew','oToyz','logger','__jestCurrentTestIdentifier','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s','slVxe','https','MqTZe','Created\x20folder:\x20%s','startsWith','./cliUtils','lNRQG','Cleanup\x20of\x20partial\x20download\x20failed:\x20%s','message','nSJsX','pTmUl','TcsES','getInstance','TEST','RJzSD','NVJZx','YaxWV','size','bddpL','http://','aApkX','format','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','.browserstack','once','oGoHH','91226NXOfpE','toFixed','5HJiTxL','uKvQg','zHStx','statusCode','clearAttachments','KEY_TEST_ID','setTimeout','getTestFrameworkDetail','debug','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','aCeWs','unlinkSync','File\x20downloaded\x20to:\x20%s','KEY_FILE_SIZE','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','19863pjSVbD','aIZif','uploadAttachments','gaAGm','553580TwBeGi','statSync','get','./framework/constants/testFrameworkConstants','253618pFwydc','RBTGF','Mlqkh','131346fRQcse','KEY_FILE_NAME','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','dlrHV','Error\x20tracking\x20downloaded\x20file:\x20%s,\x20skipping\x20upload','IKRnL','closed','trackFile','exports','./modules/playwrightDriverModule','addMultipleEntries','toObject','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','IXgqH','WHgNd','3dbHBmi','pelKs',',\x20filepath:\x20','AqpCK','getAllData','1928832QQgSiv','createWriteStream','Attachment\x20recevied\x20for\x20path:\x20%s','KEY_FILE_LEVEL','kWuix','frNBM','ZGyYj','KEY_TEST_ATTACHMENTS','kJuXt','vvHZg','copyFileSync','CNrlc','POST','14HGTZTd','getState','getCurrentTestUUID','jKiai','modules','toLowerCase','basename','VKDuS','_uploadAttachments','./state/testFrameworkState','existsSync','Created\x20.browserstack\x20folder\x20at:\x20%s','getTestFramework','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','ofnPZ','xmhMj','mkdirSync','eMkOM','function','IdfjO','join','1144408KVLtqj','AnGZH','JJYJI','tVMOL','./browserstackCLI','aRxfZ','KWxla','TkzkI','ahZHw','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','uwRoJ','__workerDetails','util','getTrackedInstance','TmqQN','setTestDetailsAsync','../../helpers/classLogger.js','TXPNf','TestLevel','uploadAttachmentsManager','hngWu','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','name','trackFile:\x20node-generic\x20testId\x20fallback\x20failed:\x20','TTaBn','testhubConfig','buildHashedId','vqMzA'];a125_0x4d0e=function(){return _0x5441f3;};return a125_0x4d0e();}module[a125_0x52bf87(0x19d)]=uploadAttachmentsManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a126_0x335b15=a126_0x2c94;(function(_0x447f2e,_0x45bcd2){const _0x1c7da0=a126_0x2c94,_0x450cdf=_0x447f2e();while(!![]){try{const _0x57bcd8=-parseInt(_0x1c7da0(0x13c))/0x1+parseInt(_0x1c7da0(0x13b))/0x2*(-parseInt(_0x1c7da0(0x14e))/0x3)+-parseInt(_0x1c7da0(0xfc))/0x4*(-parseInt(_0x1c7da0(0xff))/0x5)+parseInt(_0x1c7da0(0x111))/0x6+parseInt(_0x1c7da0(0x13e))/0x7*(-parseInt(_0x1c7da0(0xe6))/0x8)+-parseInt(_0x1c7da0(0x118))/0x9*(parseInt(_0x1c7da0(0xf7))/0xa)+parseInt(_0x1c7da0(0x120))/0xb*(-parseInt(_0x1c7da0(0xf3))/0xc);if(_0x57bcd8===_0x45bcd2)break;else _0x450cdf['push'](_0x450cdf['shift']());}catch(_0x55192b){_0x450cdf['push'](_0x450cdf['shift']());}}}(a126_0x5de7,0x6c598));const path=require(a126_0x335b15(0xf1)),util=require(a126_0x335b15(0xed)),{getGitMetaData,isUndefined,nestedKeyValue,deriveCucumberHookName,isSdkSetupHook}=require(a126_0x335b15(0x10e)),logger=require('../../../helpers/logger.js')[a126_0x335b15(0xe5)],{o11yClassErrorHandler}=require(a126_0x335b15(0x123)),TestInfo=require(a126_0x335b15(0x121)),hooksMap={};class CucumberUtils{constructor(){const _0x412bbe=a126_0x335b15;this[_0x412bbe(0x125)]=![],this[_0x412bbe(0x102)]=null;}async[a126_0x335b15(0xd2)](_0x474d91,_0x307194,_0x34222f,_0x503a37,_0x371bc1,_0x3c373f){const _0xdcc384=a126_0x335b15,_0x5cedec={'qsNLV':function(_0x560785,_0x1d179d){return _0x560785===_0x1d179d;},'laeqK':_0xdcc384(0x10b),'NzMXW':'failed','bBjLX':_0xdcc384(0x124),'HLfGc':'skipped','ooZXb':function(_0x235f72,_0x1e717e){return _0x235f72||_0x1e717e;},'Hbfma':function(_0x10855f,_0x6a0d){return _0x10855f+_0x6a0d;},'uBEbe':function(_0x1a87d5,_0xa1a6bc){return _0x1a87d5+_0xa1a6bc;},'MCGvG':_0xdcc384(0x153),'msQXB':_0xdcc384(0x139),'tRGNV':_0xdcc384(0xef),'jTrFJ':_0xdcc384(0x11c),'viSaU':_0xdcc384(0x109),'nbuXn':function(_0x483397,_0x16f676){return _0x483397!==_0x16f676;},'TSVqS':function(_0x5b5de3,_0x180dcf){return _0x5b5de3/_0x180dcf;},'bbvJR':function(_0x427426,_0x1d0a0b){return _0x427426===_0x1d0a0b;},'FAgIk':_0xdcc384(0x100),'TSnrg':function(_0x33b60d,_0x308cd1){return _0x33b60d(_0x308cd1);},'Zeogs':'unknown','LVMNI':function(_0x5785bb,_0x253aea){return _0x5785bb(_0x253aea);},'CnzyN':_0xdcc384(0xcc),'ljeCL':_0xdcc384(0xd4)},{feature:_0x39b3c2,scenario:_0x49c1ba,steps:_0x1e7015,uuid:_0x47abfc,startedAt:_0x31e7f3,finishedAt:_0x2a65fc}=_0x5cedec[_0xdcc384(0xfe)](_0x474d91,{}),_0x39c72e=this['getScenarioExamples'](_0x503a37,_0x307194);await this['configureGit']();const _0x4ffa9d=_0x39c72e?_0x5cedec[_0xdcc384(0x140)](_0x5cedec['Hbfma'](_0x5cedec[_0xdcc384(0xd3)](_0x307194[_0xdcc384(0x14c)],'\x20('),_0x39c72e['join'](',\x20')),')'):_0x307194['name'],_0xe89494={'id':_0x371bc1,'uuid':_0x371bc1,'startedAt':_0x31e7f3,'finishedAt':_0x2a65fc,'type':_0x5cedec['MCGvG'],'body':{'lang':_0x5cedec[_0xdcc384(0xe1)],'code':null},'name':_0x4ffa9d,'scopes':[_0x39b3c2&&_0x39b3c2[_0xdcc384(0x14c)]?_0x39b3c2[_0xdcc384(0x14c)]:''],'tags':_0x307194[_0xdcc384(0xe8)]?_0x307194[_0xdcc384(0xe8)][_0xdcc384(0xeb)](({name:_0x2eda08})=>_0x2eda08):[],'file_name':_0x307194[_0xdcc384(0xfa)],'location':_0x307194[_0xdcc384(0xfa)],'vc_filepath':this[_0xdcc384(0x102)]&&_0x307194[_0xdcc384(0xfa)]?path[_0xdcc384(0xcf)](this[_0xdcc384(0x102)],_0x307194[_0xdcc384(0xfa)]):null,'framework':_0x5cedec['tRGNV'],'result':_0x5cedec[_0xdcc384(0x136)],'meta':{'feature':_0x39b3c2,'scenario':_0x49c1ba,'steps':_0x1e7015,'examples':_0x39c72e},'customRerunParam':{'rerun_name':_0x4ffa9d}};if(_0x34222f[_0xdcc384(0x151)]&&_0x1e7015){const _0x4c9009=_0x34222f[_0xdcc384(0x151)];let _0x539a25=_0x5cedec[_0xdcc384(0xfd)];_0x1e7015['every'](_0xc44c1d=>{const _0x36bd06=_0xdcc384;if(_0x5cedec[_0x36bd06(0x12a)](_0xc44c1d[_0x36bd06(0xde)],_0x5cedec[_0x36bd06(0xdd)]))return _0x539a25=_0x5cedec[_0x36bd06(0x105)],_0x4c9009[_0x36bd06(0x12b)]=_0xc44c1d[_0x36bd06(0x12b)],_0x4c9009['failureType']=_0xc44c1d[_0x36bd06(0xd5)],![];else{if(_0x5cedec['qsNLV'](_0xc44c1d[_0x36bd06(0xde)],_0x5cedec[_0x36bd06(0xca)]))return _0x539a25=_0x5cedec[_0x36bd06(0xcd)],![];}return!![];}),_0xe89494[_0xdcc384(0x152)]=new Date()[_0xdcc384(0x14b)](),_0xe89494[_0xdcc384(0xde)]=_0x539a25;_0x4c9009[_0xdcc384(0xe0)]&&_0x5cedec[_0xdcc384(0xd6)](_0x4c9009[_0xdcc384(0xe0)]['nanos'],undefined)?_0xe89494['duration_in_ms']=_0x5cedec[_0xdcc384(0x112)](_0x4c9009[_0xdcc384(0xe0)][_0xdcc384(0x142)],0xf4240):_0xe89494[_0xdcc384(0x154)]=undefined;if(_0x5cedec['bbvJR'](_0x539a25,_0x5cedec['NzMXW'])){const {default:_0x1e286c}=await import(_0x5cedec[_0xdcc384(0x155)]);_0xe89494['failure']=[{'backtrace':[_0x4c9009[_0xdcc384(0x12b)]?_0x5cedec[_0xdcc384(0x122)](_0x1e286c,_0x4c9009[_0xdcc384(0x12b)]):_0x5cedec['Zeogs']]}],_0xe89494[_0xdcc384(0xf5)]=_0x4c9009[_0xdcc384(0x12b)]?_0x5cedec[_0xdcc384(0x116)](_0x1e286c,_0x4c9009[_0xdcc384(0x12b)]):_0x4c9009['message'],_0x4c9009[_0xdcc384(0xd5)]&&(_0xe89494[_0xdcc384(0x103)]=_0x4c9009[_0xdcc384(0xd5)][_0xdcc384(0x130)](/AssertError/)?_0x5cedec[_0xdcc384(0x14d)]:_0x5cedec[_0xdcc384(0x134)]);}}return _0xe89494;}[a126_0x335b15(0x12e)](_0x326ff1,_0x21830f,_0x5ef8ef,_0x2715b6,_0x324e36,_0x1ea448){const _0x1a5a42=a126_0x335b15,_0x63ba43={'IToBr':function(_0x334f0d,_0x4a73f4){return _0x334f0d===_0x4a73f4;},'YSoTY':_0x1a5a42(0x14f),'FLEFg':function(_0x25e8b6,_0x2dd3ee,_0x32cedf){return _0x25e8b6(_0x2dd3ee,_0x32cedf);},'dxmjq':'sourceReference','DrMTQ':_0x1a5a42(0xfa),'fpOvG':_0x1a5a42(0x11c),'kROXv':_0x1a5a42(0x141),'vmpft':function(_0x107a95,_0x156278,_0x54966f,_0x58e3af){return _0x107a95(_0x156278,_0x54966f,_0x58e3af);},'JQfPF':function(_0x2c71d7,_0x1fb2e7,_0x3f86f1){return _0x2c71d7(_0x1fb2e7,_0x3f86f1);},'IlQPB':'scenario','nTrfw':_0x1a5a42(0x14c),'mslgf':_0x1a5a42(0x139),'bgNqD':_0x1a5a42(0x13a),'QTLZV':_0x1a5a42(0xef)};try{if(_0x63ba43['IToBr'](_0x5ef8ef,_0x63ba43[_0x1a5a42(0x13f)])){const _0x162f06=new Date()[_0x1a5a42(0x14b)](),_0x331ef4=hooksMap[_0x21830f];if(!_0x331ef4)return;const _0x173f76=_0x331ef4[_0x1a5a42(0xf4)](_0x43e5e8=>_0x43e5e8[_0x1a5a42(0x10a)]===_0x2715b6['id']);if(!_0x173f76)return;const _0x28aff2=this[_0x1a5a42(0x148)](_0x326ff1,_0x21830f);_0x173f76[_0x1a5a42(0xde)]=_0x28aff2[_0x1a5a42(0x131)],_0x173f76[_0x1a5a42(0xea)]=_0x162f06,_0x173f76[_0x1a5a42(0x103)]=_0x28aff2[_0x1a5a42(0xd5)];const _0x384bcd={};return _0x384bcd[_0x1a5a42(0xda)]=_0x28aff2[_0x1a5a42(0x133)],_0x173f76['failure_data']=[_0x384bcd],_0x173f76;}const _0x4d9f09=TestInfo[_0x1a5a42(0xe3)](_0x21830f),_0x4e0518=_0x326ff1['hooks'][_0x1a5a42(0xf4)](_0xc08860=>_0xc08860['id']===_0x2715b6['hookId']),_0x105412=_0x63ba43[_0x1a5a42(0x12d)](nestedKeyValue,_0x4e0518,[_0x63ba43[_0x1a5a42(0x114)],_0x63ba43[_0x1a5a42(0xe9)]]),_0x4162ab=new Date()[_0x1a5a42(0x14b)](),_0x4c80bd=_0x63ba43[_0x1a5a42(0xce)],_0x51ba15=_0x4e0518[_0x1a5a42(0xdf)]?_0x4e0518[_0x1a5a42(0xdf)][_0x1a5a42(0x12f)]('\x20')[_0x1a5a42(0x129)](_0xf0882c=>_0xf0882c[_0x1a5a42(0x101)]('@')):[],_0x1c12e1={'uuid':_0x2715b6['id'],'type':_0x63ba43['kROXv'],'hook_type':_0x1ea448,'name':_0x63ba43[_0x1a5a42(0xcb)](deriveCucumberHookName,_0x4e0518[_0x1a5a42(0x14c)],_0x1ea448,_0x63ba43['JQfPF'](nestedKeyValue,_0x324e36,[_0x63ba43[_0x1a5a42(0x14a)],_0x63ba43[_0x1a5a42(0x146)]])),'body':{'lang':_0x63ba43[_0x1a5a42(0x144)],'code':null},'tags':_0x51ba15,'test_run_id':_0x4d9f09,'scope':_0x63ba43[_0x1a5a42(0x12d)](nestedKeyValue,_0x324e36,[_0x63ba43[_0x1a5a42(0x10d)],_0x63ba43['nTrfw']]),'scopes':[_0x63ba43['FLEFg'](nestedKeyValue,_0x324e36,[_0x63ba43[_0x1a5a42(0x10d)],_0x63ba43['nTrfw']])||''],'file_name':_0x105412,'location':_0x105412,'vc_filepath':this[_0x1a5a42(0x102)]&&_0x105412?path[_0x1a5a42(0xcf)](this[_0x1a5a42(0x102)],_0x105412):null,'result':_0x4c80bd,'started_at':_0x4162ab,'framework':_0x63ba43[_0x1a5a42(0x13d)]};return _0x1c12e1;}catch(_0x516a80){logger[_0x1a5a42(0x137)](_0x1a5a42(0x107)+util[_0x1a5a42(0xd1)](_0x516a80)+'\x20');}}async['createHookData'](_0x43a391,_0x424830,_0x373e41,_0x48ec12,_0x20640a,_0x44aa5b){const _0x1eeb16=a126_0x335b15,_0x325a5f={'HNLcx':function(_0x393b9a,_0x1453a6){return _0x393b9a===_0x1453a6;},'euyxk':_0x1eeb16(0x117),'soKFP':function(_0x32d2ba,_0xb4194e,_0x6356d7){return _0x32d2ba(_0xb4194e,_0x6356d7);},'ZLLIl':_0x1eeb16(0x108),'FcCIX':_0x1eeb16(0xfa)};try{const _0x28691e=_0x48ec12[_0x1eeb16(0xf4)](_0x1fe741=>_0x1fe741['id']===_0x20640a);if(!_0x28691e['hookId'])return;const _0x2db75e=this[_0x1eeb16(0xdb)](_0x48ec12,_0x28691e),_0x2ae55a=this[_0x1eeb16(0x12e)](_0x43a391,_0x424830,_0x373e41,_0x28691e,_0x44aa5b,_0x2db75e);if(!_0x2ae55a)return;_0x325a5f[_0x1eeb16(0x11e)](_0x373e41,_0x325a5f[_0x1eeb16(0xe2)])&&(hooksMap[_0x424830]?hooksMap[_0x424830][_0x1eeb16(0x119)](_0x2ae55a):hooksMap[_0x424830]=[_0x2ae55a]);const _0x5363bf=_0x43a391[_0x1eeb16(0x147)][_0x1eeb16(0xf4)](_0x28e4a4=>_0x28e4a4['id']===_0x28691e[_0x1eeb16(0xf8)]),_0x3d0a9e=_0x325a5f[_0x1eeb16(0xfb)](nestedKeyValue,_0x5363bf,[_0x325a5f[_0x1eeb16(0x110)],_0x325a5f['FcCIX']]);if(!_0x3d0a9e)return;else{if(_0x325a5f[_0x1eeb16(0xfb)](isSdkSetupHook,_0x3d0a9e,_0x2ae55a[_0x1eeb16(0x14c)]))return;}return _0x2ae55a;}catch(_0x4b11f8){logger[_0x1eeb16(0x137)](_0x1eeb16(0xd0)+util[_0x1eeb16(0xd1)](_0x4b11f8)+'\x20');}}[a126_0x335b15(0x148)](_0x34c2ce,_0x5ad60e){const _0x4c39b2=a126_0x335b15,_0x23cd63={};_0x23cd63['OOdQc']=function(_0x3df258,_0x42a6e3){return _0x3df258===_0x42a6e3;},_0x23cd63[_0x4c39b2(0x156)]=_0x4c39b2(0x11b),_0x23cd63['qeQBI']=function(_0x4a33b1,_0x40a3e0){return _0x4a33b1===_0x40a3e0;},_0x23cd63['rcXKV']=_0x4c39b2(0xd4),_0x23cd63['qURBw']='AssertionError',_0x23cd63['TObDG']=function(_0x5aaf05,_0x2ebc12){return _0x5aaf05||_0x2ebc12;};const _0x28ed82=_0x23cd63,_0x37f1a8=_0x34c2ce['testStepFinished'][_0x5ad60e][_0x4c39b2(0x128)];let _0x4b51fe,_0x47f205;return _0x37f1a8&&_0x28ed82['OOdQc'](_0x37f1a8[_0x4c39b2(0x131)]['toString']()[_0x4c39b2(0x138)](),_0x28ed82['qPRsU'])&&(_0x4b51fe=_0x28ed82[_0x4c39b2(0xe7)](_0x37f1a8[_0x4c39b2(0xf9)],undefined)?_0x37f1a8[_0x4c39b2(0x135)]:_0x37f1a8[_0x4c39b2(0xf9)]['message'],_0x47f205=_0x28ed82[_0x4c39b2(0xe7)](_0x37f1a8[_0x4c39b2(0xf9)],undefined)?_0x28ed82[_0x4c39b2(0x11d)]:_0x37f1a8['message'][_0x4c39b2(0x130)](/Assert/)?_0x28ed82[_0x4c39b2(0x132)]:_0x28ed82[_0x4c39b2(0x11d)]),{'status':_0x37f1a8[_0x4c39b2(0x131)][_0x4c39b2(0x138)](),'failureType':_0x28ed82[_0x4c39b2(0x113)](_0x47f205,null),'failureData':!_0x4b51fe?null:[_0x4b51fe]};}[a126_0x335b15(0xdb)](_0x34bf37,_0x476884){const _0x34e755=a126_0x335b15,_0xfb4d34={};_0xfb4d34[_0x34e755(0xe4)]=function(_0x49a78b,_0x47a654){return _0x49a78b===_0x47a654;},_0xfb4d34[_0x34e755(0x10c)]=_0x34e755(0x126),_0xfb4d34['kuQGm']=_0x34e755(0x149);const _0xd8ce51=_0xfb4d34;let _0x492d80=![];for(const _0x4b08d4 of _0x34bf37){_0x4b08d4[_0x34e755(0xd7)]&&(_0x492d80=!![]);if(_0xd8ce51['WXXUj'](_0x476884['id'],_0x4b08d4['id']))return _0x492d80?_0xd8ce51['SKnyV']:_0xd8ce51[_0x34e755(0xee)];}}[a126_0x335b15(0x11a)]=(_0x4b21f2,_0x353bb9)=>{const _0xe991f8=a126_0x335b15,_0x33a349={};_0x33a349[_0xe991f8(0x12c)]=function(_0x1ba60c,_0x3c6096){return _0x1ba60c===_0x3c6096;},_0x33a349[_0xe991f8(0x11f)]=function(_0x1ae310,_0x466b02){return _0x1ae310===_0x466b02;},_0x33a349[_0xe991f8(0xd8)]=function(_0x303a15,_0x4284b8){return _0x303a15>_0x4284b8;};const _0x3a9460=_0x33a349;if(!(_0x353bb9[_0xe991f8(0x150)]&&_0x3a9460['FjCci'](_0x353bb9['astNodeIds'][_0xe991f8(0xec)],0x1)))return;const _0x5454f9=_0x353bb9['astNodeIds'][0x0],_0x4bec6d=_0x353bb9[_0xe991f8(0x150)][0x1],_0x57413b=_0x4b21f2[_0xe991f8(0x13a)]&&_0x4b21f2[_0xe991f8(0x13a)][_0xe991f8(0xd9)]?_0x4b21f2[_0xe991f8(0x13a)][_0xe991f8(0xd9)]:undefined;let _0x3835e9=[];_0x57413b&&_0x57413b[_0xe991f8(0xf6)](_0xdab144=>{const _0x1d61e2=_0xe991f8;if(_0xdab144['rule'])_0xdab144['rule'][_0x1d61e2(0xd9)]['forEach'](_0x35548b=>{const _0x36f865=_0x1d61e2;if(_0x35548b[_0x36f865(0x10f)]&&_0x3a9460['vhKlT'](_0x35548b[_0x36f865(0x10f)]['id'],_0x5454f9)&&_0x35548b[_0x36f865(0x10f)][_0x36f865(0xdc)]){const _0x4d8455=_0x35548b['scenario'][_0x36f865(0xdc)][_0x36f865(0xf2)](_0x2309ae=>_0x2309ae['tableBody'])['find'](_0x3275d9=>_0x3275d9['id']===_0x4bec6d);let _0x593918;_0x4d8455&&_0x4d8455[_0x36f865(0x143)]?_0x593918=_0x4d8455[_0x36f865(0x143)][_0x36f865(0xeb)](_0x235b46=>_0x235b46[_0x36f865(0x145)]):_0x593918=[],_0x593918&&(_0x3835e9=_0x593918);}});else{if(_0xdab144['scenario']&&_0x3a9460[_0x1d61e2(0x11f)](_0xdab144[_0x1d61e2(0x10f)]['id'],_0x5454f9)&&_0xdab144[_0x1d61e2(0x10f)][_0x1d61e2(0xdc)]){const _0x5f4cbb=_0xdab144[_0x1d61e2(0x10f)]['examples'][_0x1d61e2(0xf2)](_0x2c6520=>_0x2c6520['tableBody'])[_0x1d61e2(0xf4)](_0x33da7d=>_0x33da7d['id']===_0x4bec6d);let _0x4189b2;_0x5f4cbb&&_0x5f4cbb[_0x1d61e2(0x143)]?_0x4189b2=_0x5f4cbb[_0x1d61e2(0x143)][_0x1d61e2(0xeb)](_0x311cc4=>_0x311cc4[_0x1d61e2(0x145)]):_0x4189b2=[],_0x4189b2&&(_0x3835e9=_0x4189b2);}}});if(_0x3835e9[_0xe991f8(0xec)])return _0x3835e9;return;};async[a126_0x335b15(0x106)](){const _0x499c6c=a126_0x335b15,_0x3e0f32={'RtQKc':function(_0x5eb374){return _0x5eb374();}};if(this['_gitConfigured'])return this['_gitConfigPath'];const _0x39e24f=await _0x3e0f32['RtQKc'](getGitMetaData);_0x39e24f&&(this[_0x499c6c(0x102)]=_0x39e24f[_0x499c6c(0x104)]),this[_0x499c6c(0x125)]=!![];}}function a126_0x2c94(_0x31139f,_0x124919){const _0x5de7ca=a126_0x5de7();return a126_0x2c94=function(_0x2c94fb,_0x2fd098){_0x2c94fb=_0x2c94fb-0xca;let _0x55d7b5=_0x5de7ca[_0x2c94fb];return _0x55d7b5;},a126_0x2c94(_0x31139f,_0x124919);}function a126_0x5de7(){const _0x3b64c6=['testStepResult','filter','qsNLV','failure','vhKlT','FLEFg','getHookRunEventData','split','match','status','qURBw','failureData','ljeCL','message','jTrFJ','debug','toLowerCase','javascript','feature','117332WYEpKV','110091vLDBYG','QTLZV','673323PNLfmX','YSoTY','Hbfma','hook','nanos','cells','mslgf','value','nTrfw','hooks','getHookResult','BEFORE_EACH','IlQPB','toISOString','name','CnzyN','18yffZRB','HookRunFinished','astNodeIds','testCaseFinished','finishedAt','test','duration_in_ms','FAgIk','qPRsU','bBjLX','vmpft','AssertionError','HLfGc','fpOvG','relative','Exception\x20in\x20createHookData:\x20','format','createTestFrameworkData','uBEbe','UnhandledError','failureType','nbuXn','pickleStepId','FjCci','children','backtrace','getCucumberHookType','examples','laeqK','result','tagExpression','timestamp','msQXB','euyxk','getTestUUID','WXXUj','winstonLogger','40GPNtZP','qeQBI','tags','DrMTQ','finished_at','map','length','util','kuQGm','cucumber','sendHook','path','flatMap','48oUbiJf','find','failure_reason','forEach','143850AxRcsv','hookId','exception','uri','soKFP','709132ZRwFzR','viSaU','ooZXb','20BCgmXH','strip-ansi','includes','_gitConfigPath','failure_type','root','NzMXW','configureGit','Exception\x20in\x20getHookRunEventData:\x20','sourceReference','passed','uuid','FAILED','SKnyV','bgNqD','../../../helpers/helper.js','scenario','ZLLIl','5135358xiuEYW','TSVqS','TObDG','dxmjq','sendTestRunEventForCucumber','LVMNI','HookRunStarted','9ZxwdAv','push','getScenarioExamples','failed','pending','rcXKV','HNLcx','ODtEd','450472iEbqpq','../TestInfo.js','TSnrg','../../../helpers/test-observability/error-handler.js','SKIPPED','_gitConfigured','AFTER_EACH','exports'];a126_0x5de7=function(){return _0x3b64c6;};return a126_0x5de7();}module[a126_0x335b15(0x127)]=o11yClassErrorHandler(CucumberUtils,[a126_0x335b15(0x106),'getScenarioExamples',a126_0x335b15(0xdb),a126_0x335b15(0x148),a126_0x335b15(0xf0),a126_0x335b15(0x12e),a126_0x335b15(0x115),a126_0x335b15(0xd2)]);
|
|
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)]);
|