browserstack-node-sdk 1.65.6 → 1.65.7
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/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadErrors.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/node-generic/client.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/reporterArgs.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/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
|
|
1
|
+
function a116_0xbe95(_0x240f37,_0x1b51b4){const _0x3da2d5=a116_0x3da2();return a116_0xbe95=function(_0xbe959b,_0x1622ae){_0xbe959b=_0xbe959b-0xa6;let _0x382e7c=_0x3da2d5[_0xbe959b];return _0x382e7c;},a116_0xbe95(_0x240f37,_0x1b51b4);}const a116_0x2de262=a116_0xbe95;(function(_0x1c0b59,_0x5adf02){const _0x169e18=a116_0xbe95,_0x59d404=_0x1c0b59();while(!![]){try{const _0x4f6705=parseInt(_0x169e18(0xb8))/0x1+-parseInt(_0x169e18(0xaa))/0x2*(-parseInt(_0x169e18(0xa8))/0x3)+-parseInt(_0x169e18(0xb2))/0x4+parseInt(_0x169e18(0xb0))/0x5+parseInt(_0x169e18(0xb7))/0x6+parseInt(_0x169e18(0xaf))/0x7+-parseInt(_0x169e18(0xb4))/0x8;if(_0x4f6705===_0x5adf02)break;else _0x59d404['push'](_0x59d404['shift']());}catch(_0x9f855e){_0x59d404['push'](_0x59d404['shift']());}}}(a116_0x3da2,0x84352));const a116_0xb9719={};function a116_0x3da2(){const _0x4431ef=['7228263ifrlwW','2959120FHsENF','jNpai','2875060GytBFQ','values','21844232gpNViF','sQPds','exports','6120882vmUpAE','857899XGkvpR','QcVrL','find','3rRsuDI','HookState.NONE','976674hwAtiM','toString','freeze','value','HookState.PRE'];a116_0x3da2=function(){return _0x4431ef;};return a116_0x3da2();}a116_0xb9719[a116_0x2de262(0xad)]=0x0,a116_0xb9719['toString']=function(){const _0x1523d7=a116_0x2de262,_0x2651f1={};_0x2651f1[_0x1523d7(0xb5)]=_0x1523d7(0xa9);const _0x53d44e=_0x2651f1;return _0x53d44e['sQPds'];};const a116_0x1f9914={};a116_0x1f9914['value']=0x1,a116_0x1f9914[a116_0x2de262(0xab)]=function(){const _0x143466=a116_0x2de262,_0x20c138={};_0x20c138['QcVrL']=_0x143466(0xae);const _0x55e9e8=_0x20c138;return _0x55e9e8[_0x143466(0xa6)];};const a116_0xf71e6={};a116_0xf71e6[a116_0x2de262(0xad)]=0x2,a116_0xf71e6[a116_0x2de262(0xab)]=function(){const _0x7e6d9d=a116_0x2de262,_0x673b17={};_0x673b17[_0x7e6d9d(0xb1)]='HookState.POST';const _0x1b6f49=_0x673b17;return _0x1b6f49[_0x7e6d9d(0xb1)];};const HookState=Object[a116_0x2de262(0xac)]({'NONE':a116_0xb9719,'PRE':a116_0x1f9914,'POST':a116_0xf71e6,'fromValue'(_0x503e00){const _0x50f222=a116_0x2de262;return Object[_0x50f222(0xb3)](HookState)[_0x50f222(0xa7)](_0x4eeb8b=>_0x4eeb8b['value']===_0x503e00);}});module[a116_0x2de262(0xb6)]=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0x3a88c2=a117_0x2385;(function(_0x5367c6,_0x5c5bff){const _0x442023=a117_0x2385,_0x4f2fbc=_0x5367c6();while(!![]){try{const _0x491bd5=parseInt(_0x442023(0x1d3))/0x1+parseInt(_0x442023(0x1d1))/0x2+parseInt(_0x442023(0x1c6))/0x3*(parseInt(_0x442023(0x1b7))/0x4)+-parseInt(_0x442023(0x1d6))/0x5*(-parseInt(_0x442023(0x1c1))/0x6)+-parseInt(_0x442023(0x1be))/0x7+parseInt(_0x442023(0x1bd))/0x8+parseInt(_0x442023(0x1cb))/0x9*(-parseInt(_0x442023(0x1d0))/0xa);if(_0x491bd5===_0x5c5bff)break;else _0x4f2fbc['push'](_0x4f2fbc['shift']());}catch(_0x467eaa){_0x4f2fbc['push'](_0x4f2fbc['shift']());}}}(a117_0x4bc6,0x67d46));function a117_0x4bc6(){const _0x78fc4e=['14985378LOwnWp','MsSJw','TestFrameworkState.AFTER_ALL','slCpV','TestFrameworkState.BEFORE_EACH','10FTWOjf','1363064qRrNtw','efZrQ','527846FKUWGU','LhOMN','TestFrameworkState.TEST_STEP','4715SBJYKF','ELLDR','TestFrameworkState.BEFORE_ALL','TestFrameworkState.STEP','value','TestFrameworkState.SETUP_FIXTURE','34364LYbZwi','nuPnd','toString','freeze','qiEyl','TestFrameworkState.TEST','5192328xfYPkX','4658409tvtAFZ','fozqO','UNWEF','3906WddAnS','jPwPg','KWrsp','find','TestFrameworkState.NONE','99PXXDzn','TestFrameworkState.TEST_SCREENSHOT','values','uwhOS','TestFrameworkState.LOG'];a117_0x4bc6=function(){return _0x78fc4e;};return a117_0x4bc6();}const a117_0x2a19b0={};a117_0x2a19b0[a117_0x3a88c2(0x1da)]=0x0,a117_0x2a19b0[a117_0x3a88c2(0x1b9)]=function(){const _0x1fa570=a117_0x3a88c2,_0xc83ef1={};_0xc83ef1['slCpV']=_0x1fa570(0x1c5);const _0x4a7531=_0xc83ef1;return _0x4a7531[_0x1fa570(0x1ce)];};const a117_0x54c518={};a117_0x54c518['value']=0x1,a117_0x54c518[a117_0x3a88c2(0x1b9)]=function(){const _0x4db0ad=a117_0x3a88c2,_0x579c8a={};_0x579c8a[_0x4db0ad(0x1c2)]=_0x4db0ad(0x1d8);const _0x1b165b=_0x579c8a;return _0x1b165b['jPwPg'];};const a117_0x20fa28={};a117_0x20fa28[a117_0x3a88c2(0x1da)]=0x2,a117_0x20fa28['toString']=function(){const _0x45f1de=a117_0x3a88c2,_0x2b2c53={};_0x2b2c53[_0x45f1de(0x1b8)]=_0x45f1de(0x1ca);const _0x17649e=_0x2b2c53;return _0x17649e[_0x45f1de(0x1b8)];};const a117_0x2fa1c8={};a117_0x2fa1c8[a117_0x3a88c2(0x1da)]=0x3,a117_0x2fa1c8[a117_0x3a88c2(0x1b9)]=function(){const _0x20e9d4=a117_0x3a88c2,_0x653df0={};_0x653df0[_0x20e9d4(0x1bb)]=_0x20e9d4(0x1b6);const _0x46a524=_0x653df0;return _0x46a524[_0x20e9d4(0x1bb)];};const a117_0x43230f={};a117_0x43230f[a117_0x3a88c2(0x1da)]=0x4,a117_0x43230f[a117_0x3a88c2(0x1b9)]=function(){const _0x372899=a117_0x3a88c2,_0x1d1ee1={};_0x1d1ee1['LhOMN']='TestFrameworkState.INIT_TEST';const _0x28f0eb=_0x1d1ee1;return _0x28f0eb[_0x372899(0x1d4)];};function a117_0x2385(_0x485459,_0x1ee735){const _0x4bc611=a117_0x4bc6();return a117_0x2385=function(_0x238582,_0x55e304){_0x238582=_0x238582-0x1b6;let _0x15df0b=_0x4bc611[_0x238582];return _0x15df0b;},a117_0x2385(_0x485459,_0x1ee735);}const a117_0x1c1219={};a117_0x1c1219[a117_0x3a88c2(0x1da)]=0x5,a117_0x1c1219[a117_0x3a88c2(0x1b9)]=function(){const _0x132537=a117_0x3a88c2,_0xc35f1f={};_0xc35f1f['aXHFm']=_0x132537(0x1cf);const _0x1814e6=_0xc35f1f;return _0x1814e6['aXHFm'];};const a117_0x5e3e76={};a117_0x5e3e76[a117_0x3a88c2(0x1da)]=0x6,a117_0x5e3e76[a117_0x3a88c2(0x1b9)]=function(){const _0x46915d=a117_0x3a88c2,_0xbdea19={};_0xbdea19[_0x46915d(0x1c9)]='TestFrameworkState.AFTER_EACH';const _0x3813c4=_0xbdea19;return _0x3813c4[_0x46915d(0x1c9)];};const a117_0xf0ac93={};a117_0xf0ac93[a117_0x3a88c2(0x1da)]=0x7,a117_0xf0ac93[a117_0x3a88c2(0x1b9)]=function(){const _0x4ba294=a117_0x3a88c2,_0x4bb7a1={};_0x4bb7a1[_0x4ba294(0x1d2)]=_0x4ba294(0x1bc);const _0x40222b=_0x4bb7a1;return _0x40222b[_0x4ba294(0x1d2)];};const a117_0x3d7128={};a117_0x3d7128[a117_0x3a88c2(0x1da)]=0x8,a117_0x3d7128[a117_0x3a88c2(0x1b9)]=function(){const _0x11a8cc=a117_0x3a88c2,_0x1d2bdd={};_0x1d2bdd[_0x11a8cc(0x1c0)]=_0x11a8cc(0x1d9);const _0x52b51f=_0x1d2bdd;return _0x52b51f[_0x11a8cc(0x1c0)];};const a117_0x3dd174={};a117_0x3dd174[a117_0x3a88c2(0x1da)]=0x9,a117_0x3dd174[a117_0x3a88c2(0x1b9)]=function(){const _0x1b75dc=a117_0x3a88c2,_0x2b46d5={};_0x2b46d5[_0x1b75dc(0x1cc)]='TestFrameworkState.LOG_REPORT';const _0x20bc8c=_0x2b46d5;return _0x20bc8c[_0x1b75dc(0x1cc)];};const a117_0x59a2={};a117_0x59a2[a117_0x3a88c2(0x1da)]=0xa,a117_0x59a2[a117_0x3a88c2(0x1b9)]=function(){const _0x599f57=a117_0x3a88c2,_0x55490b={};_0x55490b[_0x599f57(0x1bf)]=_0x599f57(0x1cd);const _0x50d189=_0x55490b;return _0x50d189['fozqO'];};const a117_0x2224c7={};a117_0x2224c7[a117_0x3a88c2(0x1da)]=0xb,a117_0x2224c7[a117_0x3a88c2(0x1b9)]=function(){const _0x1edc20=a117_0x3a88c2,_0x119205={};_0x119205[_0x1edc20(0x1c3)]=_0x1edc20(0x1c7);const _0x42e2e3=_0x119205;return _0x42e2e3[_0x1edc20(0x1c3)];};const a117_0x5d1267={};a117_0x5d1267[a117_0x3a88c2(0x1da)]=0xc,a117_0x5d1267['toString']=function(){const _0x294aaa=a117_0x3a88c2,_0x307481={};_0x307481[_0x294aaa(0x1d7)]=_0x294aaa(0x1d5);const _0x171067=_0x307481;return _0x171067['ELLDR'];};const TestFrameworkState=Object[a117_0x3a88c2(0x1ba)]({'NONE':a117_0x2a19b0,'BEFORE_ALL':a117_0x54c518,'LOG':a117_0x20fa28,'SETUP_FIXTURE':a117_0x2fa1c8,'INIT_TEST':a117_0x43230f,'BEFORE_EACH':a117_0x1c1219,'AFTER_EACH':a117_0x5e3e76,'TEST':a117_0xf0ac93,'STEP':a117_0x3d7128,'LOG_REPORT':a117_0x3dd174,'AFTER_ALL':a117_0x59a2,'TEST_SCREENSHOT':a117_0x2224c7,'TEST_STEP':a117_0x5d1267,'fromValue'(_0x5198c9){const _0x279202=a117_0x3a88c2;return Object[_0x279202(0x1c8)](TestFrameworkState)[_0x279202(0x1c4)](_0x224004=>_0x224004['value']===_0x5198c9);}});module['exports']=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a118_0x3a16(_0x45e582,_0x7f9cd7){const _0x17c163=a118_0x17c1();return a118_0x3a16=function(_0x3a1675,_0x4eaf57){_0x3a1675=_0x3a1675-0x129;let _0x541a45=_0x17c163[_0x3a1675];return _0x541a45;},a118_0x3a16(_0x45e582,_0x7f9cd7);}function a118_0x17c1(){const _0x3c6045=['KEY_TEST_ID','Vwhrt',',\x20filepath:\x20','Created\x20.browserstack\x20folder\x20at:\x20%s','https','uploadAttachments','./state/testFrameworkState','TestLevel','fzXRw','pipe','toFixed','close','modules','../../helpers/classLogger.js','lHobe','1209909gIHHmV','getAllData','http','HMspg','rDKJm','rmSync','uPMzg','TxLel','ceHeY','getTestFramework','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','wZLOY','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','trim','pBVpu','.browserstack','error','testhubConfig','egOrg','join','KEY_FILE_PATH','BOMqA','homedir','name','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','Created\x20folder:\x20%s','14GbEtvb','oUtpV','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','testInfo','Zmwtl','NhcJx','File\x20downloaded\x20to:\x20%s','resolveInstance','TUczw','dmMVk','currentTest','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','trackFile','BuildLevel','message','format','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','hYQLK','8AIhpmg','finish','jest','TestHubModule','KEY_TEST_ATTACHMENTS','recursive','odLLK','zOieK','get','teosu','OmzyX','size','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','hdHng','createWriteStream','getTrackedInstance','Attachment\x20recevied\x20for\x20path:\x20%s','toObject','basename','./framework/automationFramework','trackFile:\x20node-generic\x20testId\x20fallback\x20failed:\x20','KEY_FILE_NAME','1904268cXyDpw','uploadAttachmentsManager','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','exports','FGZZt','707435GFaknR','SRyDS','addMultipleEntries','DwsLs','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','getCurrentTestUUID','1460529MMObXd','toLowerCase','statSync','NgSUw','unlinkSync','getState','4030OTbZRa','statusCode','KEY_FILE_SIZE','getTestIdentifierFromTestInfo','KIZqb','POST','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','GxKqz','__jestCurrentTestIdentifier','isRunning','Cleared\x20attachment\x20folder','./TestInfo','util','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','startsWith','Agjua','./state/hookState','getTestFrameworkDetail','pvirJ','force','HcWqV','http://','existsSync','ybiNR','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','copyFileSync','setTestDetails','__workerDetails','logger','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','qpIxX','retry','CWHpk','getTestDetails','./cliUtils','dDwFL','1733490hqRVIv','buildHashedId','2000568zSxqIk','getInstance','clearAttachments','https://','TDrXc','function','oBrEZ','KEY_FILE_LEVEL','debug'];a118_0x17c1=function(){return _0x3c6045;};return a118_0x17c1();}const a118_0x106d53=a118_0x3a16;(function(_0x33730d,_0x4ae104){const _0x2396fc=a118_0x3a16,_0x3c643a=_0x33730d();while(!![]){try{const _0xd2eb21=-parseInt(_0x2396fc(0x142))/0x1*(-parseInt(_0x2396fc(0x17c))/0x2)+-parseInt(_0x2396fc(0x1ba))/0x3+parseInt(_0x2396fc(0x1a2))/0x4+-parseInt(_0x2396fc(0x16f))/0x5+parseInt(_0x2396fc(0x16a))/0x6+-parseInt(_0x2396fc(0x176))/0x7*(parseInt(_0x2396fc(0x154))/0x8)+parseInt(_0x2396fc(0x1a0))/0x9;if(_0xd2eb21===_0x4ae104)break;else _0x3c643a['push'](_0x3c643a['shift']());}catch(_0x4dccd1){_0x3c643a['push'](_0x3c643a['shift']());}}}(a118_0x17c1,0x458e7));const os=require('os'),fs=require('fs'),path=require('path'),util=require(a118_0x106d53(0x188)),BrowserstackCLI=require('./browserstackCLI'),https=require(a118_0x106d53(0x1af)),http=require(a118_0x106d53(0x12a)),AutomationFramework=require(a118_0x106d53(0x167)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a118_0x106d53(0x187)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require(a118_0x106d53(0x1b8));class uploadAttachmentsManager{static [a118_0x106d53(0x198)]=createClassLogger(a118_0x106d53(0x16b));static[a118_0x106d53(0x1b0)](_0x400c66,_0x34f65e=![]){const _0x49ae3c=a118_0x106d53,_0x5df608={};_0x5df608[_0x49ae3c(0x15b)]=function(_0x3e0e13,_0x4a17df){return _0x3e0e13/_0x4a17df;},_0x5df608[_0x49ae3c(0x15e)]=function(_0x39db9b,_0x37f0f0){return _0x39db9b*_0x37f0f0;},_0x5df608['hYQLK']=function(_0x5ada44,_0x2b848e){return _0x5ada44>_0x2b848e;},_0x5df608[_0x49ae3c(0x14a)]=_0x49ae3c(0x134),_0x5df608[_0x49ae3c(0x1ac)]=_0x49ae3c(0x148),_0x5df608[_0x49ae3c(0x143)]=function(_0x3646ac,_0x2ab4db){return _0x3646ac===_0x2ab4db;},_0x5df608[_0x49ae3c(0x12e)]=_0x49ae3c(0x155),_0x5df608[_0x49ae3c(0x172)]=_0x49ae3c(0x144),_0x5df608['Agjua']=_0x49ae3c(0x16c),_0x5df608[_0x49ae3c(0x180)]=_0x49ae3c(0x164),_0x5df608[_0x49ae3c(0x179)]=_0x49ae3c(0x137),_0x5df608[_0x49ae3c(0x133)]=_0x49ae3c(0x14d),_0x5df608[_0x49ae3c(0x183)]=_0x49ae3c(0x1ae),_0x5df608[_0x49ae3c(0x15a)]=_0x49ae3c(0x141),_0x5df608[_0x49ae3c(0x170)]='Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.',_0x5df608['qpIxX']=_0x49ae3c(0x1a5),_0x5df608[_0x49ae3c(0x161)]=_0x49ae3c(0x191),_0x5df608[_0x49ae3c(0x19f)]=_0x49ae3c(0x138),_0x5df608[_0x49ae3c(0x1a8)]=_0x49ae3c(0x182),_0x5df608[_0x49ae3c(0x1b9)]=_0x49ae3c(0x132);const _0x31c48d=_0x5df608;this[_0x49ae3c(0x198)][_0x49ae3c(0x1aa)](util[_0x49ae3c(0x151)](_0x31c48d[_0x49ae3c(0x180)],_0x400c66));const _0x341d69=os[_0x49ae3c(0x13e)](),_0xca96a0=path[_0x49ae3c(0x13b)](_0x341d69,_0x31c48d['NgSUw']);!fs['existsSync'](_0xca96a0)&&(this[_0x49ae3c(0x198)][_0x49ae3c(0x1aa)](util[_0x49ae3c(0x151)](_0x31c48d[_0x49ae3c(0x133)],_0xca96a0)),fs['mkdirSync'](_0xca96a0),this[_0x49ae3c(0x198)]['debug'](util['format'](_0x31c48d['GxKqz'],_0xca96a0)));const _0x4a14e4=BrowserstackCLI['getInstance']()[_0x49ae3c(0x1b7)][_0x49ae3c(0x157)]?.[_0x49ae3c(0x139)]?.[_0x49ae3c(0x165)]()?.['buildHashedId'],_0x580a84=path['join'](_0xca96a0,_0x4a14e4);!fs[_0x49ae3c(0x192)](_0x580a84)&&(fs['mkdirSync'](_0x580a84),this[_0x49ae3c(0x198)][_0x49ae3c(0x1aa)](util['format'](_0x31c48d['odLLK'],_0x580a84)));if(_0x31c48d[_0x49ae3c(0x143)](_0x400c66[_0x49ae3c(0x135)](),'')){this[_0x49ae3c(0x198)][_0x49ae3c(0x1aa)](util['format'](_0x31c48d['SRyDS']));return;}if(_0x400c66[_0x49ae3c(0x18a)](_0x31c48d['qpIxX'])||_0x400c66[_0x49ae3c(0x18a)](_0x31c48d['hdHng'])){const _0x5bfa5e=_0x400c66['startsWith'](_0x31c48d[_0x49ae3c(0x19a)])?https:http,_0x721b11=path[_0x49ae3c(0x166)](_0x400c66),_0x37d680=path[_0x49ae3c(0x13b)](_0x580a84,_0x721b11),_0x4c9c80=fs[_0x49ae3c(0x162)](_0x37d680);_0x5bfa5e[_0x49ae3c(0x15c)](_0x400c66,_0x59e32b=>{const _0x5b4e05=_0x49ae3c,_0x761acc={'Zmwtl':function(_0x10937c,_0xf8672e){const _0x15bfee=a118_0x3a16;return _0x31c48d[_0x15bfee(0x15b)](_0x10937c,_0xf8672e);},'pBVpu':function(_0x25bd10,_0x4c14f5){const _0x1eda56=a118_0x3a16;return _0x31c48d[_0x1eda56(0x15e)](_0x25bd10,_0x4c14f5);},'fzXRw':function(_0x48d3e0,_0x29fac1){const _0x13df0a=a118_0x3a16;return _0x31c48d[_0x13df0a(0x153)](_0x48d3e0,_0x29fac1);},'HMspg':_0x31c48d[_0x5b4e05(0x14a)],'XnzDQ':_0x31c48d[_0x5b4e05(0x1ac)]};if(_0x31c48d[_0x5b4e05(0x143)](_0x59e32b[_0x5b4e05(0x17d)],0xc8))_0x59e32b[_0x5b4e05(0x1b4)](_0x4c9c80),_0x4c9c80['on'](_0x31c48d[_0x5b4e05(0x12e)],()=>{const _0x91633e=_0x5b4e05;_0x4c9c80[_0x91633e(0x1b6)]();const _0x319fc0=fs[_0x91633e(0x178)](_0x37d680),_0x5738ff=_0x761acc[_0x91633e(0x146)](_0x319fc0[_0x91633e(0x15f)],_0x761acc[_0x91633e(0x136)](0x400,0x400));if(_0x761acc[_0x91633e(0x1b3)](_0x5738ff,0x64)){this[_0x91633e(0x198)][_0x91633e(0x1aa)](util['format'](_0x761acc[_0x91633e(0x12b)],_0x5738ff[_0x91633e(0x1b5)](0x2))),fs['unlinkSync'](_0x37d680);return;}this[_0x91633e(0x198)][_0x91633e(0x1aa)](util[_0x91633e(0x151)](_0x761acc['XnzDQ'],_0x37d680)),uploadAttachmentsManager[_0x91633e(0x14e)](_0x37d680,_0x34f65e);});else{this['logger'][_0x5b4e05(0x1aa)](util['format'](_0x31c48d[_0x5b4e05(0x172)],_0x59e32b[_0x5b4e05(0x17d)])),_0x4c9c80[_0x5b4e05(0x1b6)](),fs['unlinkSync'](_0x37d680);return;}})['on'](_0x31c48d[_0x49ae3c(0x19f)],_0x3323b4=>{const _0x1d9f16=_0x49ae3c;this[_0x1d9f16(0x198)][_0x1d9f16(0x1aa)](util[_0x1d9f16(0x151)](_0x31c48d[_0x1d9f16(0x18b)],_0x3323b4[_0x1d9f16(0x150)])),_0x4c9c80[_0x1d9f16(0x1b6)](),fs[_0x1d9f16(0x17a)](_0x37d680);return;});}else{if(!fs[_0x49ae3c(0x192)](_0x400c66)){this['logger'][_0x49ae3c(0x1aa)](util[_0x49ae3c(0x151)](_0x31c48d[_0x49ae3c(0x1a8)],_0x400c66));return;}const _0xe7e513=fs['statSync'](_0x400c66),_0x1d18fd=_0x31c48d[_0x49ae3c(0x15b)](_0xe7e513[_0x49ae3c(0x15f)],_0x31c48d[_0x49ae3c(0x15e)](0x400,0x400));if(_0x31c48d['hYQLK'](_0x1d18fd,0x64)){this[_0x49ae3c(0x198)][_0x49ae3c(0x1aa)](util[_0x49ae3c(0x151)](_0x31c48d[_0x49ae3c(0x1b9)],_0x1d18fd[_0x49ae3c(0x1b5)](0x2)));return;}const _0x5918fd=path[_0x49ae3c(0x166)](_0x400c66),_0x3436f4=path[_0x49ae3c(0x13b)](_0x580a84,_0x5918fd);fs[_0x49ae3c(0x195)](_0x400c66,_0x3436f4),uploadAttachmentsManager['trackFile'](_0x3436f4,_0x34f65e);}}static[a118_0x106d53(0x14e)](_0x12b59c,_0x39595a){const _0x85df5b=a118_0x106d53,_0x4a22f5={'TDrXc':function(_0x1d4ee2,_0x5ccbba){return _0x1d4ee2(_0x5ccbba);},'WYFCV':'./browserstackCLI','BOMqA':_0x85df5b(0x19e),'CgjdR':function(_0x2528f4,_0x1b6c20){return _0x2528f4===_0x1b6c20;},'dmMVk':_0x85df5b(0x156),'TxLel':_0x85df5b(0x1a7),'egOrg':_0x85df5b(0x199),'SMKHs':_0x85df5b(0x14f),'pvirJ':_0x85df5b(0x1b2),'CWHpk':_0x85df5b(0x194),'HcWqV':function(_0x1632b3,_0x2ec5b5){return _0x1632b3(_0x2ec5b5);},'rDKJm':_0x85df5b(0x1b1),'ybiNR':_0x85df5b(0x18c),'OMiih':'trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','ceHeY':_0x85df5b(0x140),'CFcNt':_0x85df5b(0x173)};try{let _0x17418e;const _0x2801a9=global[_0x85df5b(0x197)]?.[_0x85df5b(0x14c)]?.[_0x85df5b(0x145)],_0x3dfbfb=_0x4a22f5[_0x85df5b(0x1a6)](require,_0x4a22f5['WYFCV']),_0x5aafed=_0x4a22f5[_0x85df5b(0x1a6)](require,_0x4a22f5[_0x85df5b(0x13d)]),_0x56a10d=_0x3dfbfb[_0x85df5b(0x1a3)]()[_0x85df5b(0x185)]()&&_0x4a22f5['CgjdR'](_0x5aafed[_0x85df5b(0x18d)]()?.[_0x85df5b(0x13f)]?.[_0x85df5b(0x177)](),_0x4a22f5[_0x85df5b(0x14b)]);if(_0x56a10d){_0x17418e=global[_0x85df5b(0x184)];if(!_0x17418e){const _0x504fae=AutomationFramework['getTrackedInstance']();_0x17418e=AutomationFramework[_0x85df5b(0x17b)](_0x504fae,PlaywrightDriverModule['KEY_TEST_ID'],'');}this[_0x85df5b(0x198)][_0x85df5b(0x1aa)](_0x85df5b(0x160)+_0x17418e);}else{if(!_0x2801a9){const _0x24f73b=AutomationFramework[_0x85df5b(0x163)]();_0x17418e=AutomationFramework[_0x85df5b(0x17b)](_0x24f73b,PlaywrightDriverModule[_0x85df5b(0x1ab)],'');}else _0x17418e=TestInfo[_0x85df5b(0x17f)](_0x2801a9,_0x2801a9[_0x85df5b(0x19b)]);this[_0x85df5b(0x198)][_0x85df5b(0x1aa)](_0x85df5b(0x174)+_0x17418e);}if(!_0x17418e)try{const _0x380a25=_0x3dfbfb['getInstance'](),_0x545127=_0x380a25&&_0x380a25[_0x85df5b(0x131)]();_0x17418e=_0x545127&&_0x4a22f5['CgjdR'](typeof _0x545127[_0x85df5b(0x175)],_0x4a22f5[_0x85df5b(0x12f)])&&_0x545127[_0x85df5b(0x175)]()||_0x17418e;}catch(_0x3db028){this[_0x85df5b(0x198)]['debug'](_0x85df5b(0x168)+(_0x3db028&&_0x3db028[_0x85df5b(0x150)]));}if(!_0x17418e){this[_0x85df5b(0x198)][_0x85df5b(0x1aa)](_0x4a22f5[_0x85df5b(0x13a)]);return;}const _0x5baffb={[TestFrameworkConstants[_0x85df5b(0x17e)]]:fs['statSync'](_0x12b59c)[_0x85df5b(0x15f)],[TestFrameworkConstants[_0x85df5b(0x169)]]:path[_0x85df5b(0x166)](_0x12b59c),[TestFrameworkConstants[_0x85df5b(0x13c)]]:_0x12b59c,[TestFrameworkConstants[_0x85df5b(0x1a9)]]:_0x39595a?_0x4a22f5['SMKHs']:_0x4a22f5[_0x85df5b(0x18e)]};if(_0x56a10d){const _0x4c8c52=_0x3dfbfb['getInstance']()[_0x85df5b(0x131)]();if(!_0x4c8c52){this[_0x85df5b(0x198)]['debug'](_0x4a22f5[_0x85df5b(0x19c)]);return;}const _0x12e621=_0x4a22f5[_0x85df5b(0x190)](require,_0x4a22f5[_0x85df5b(0x12c)]),_0x492c69=_0x4a22f5[_0x85df5b(0x190)](require,_0x4a22f5[_0x85df5b(0x193)]),_0x103a84=_0x4c8c52[_0x85df5b(0x149)](_0x12e621['TEST'],_0x492c69[_0x85df5b(0x181)]);if(!_0x103a84){this[_0x85df5b(0x198)][_0x85df5b(0x1aa)](_0x4a22f5['OMiih']);return;}const _0x4f33ba=_0x103a84[_0x85df5b(0x129)]()[_0x85df5b(0x15c)](_0x17418e)||{},_0x5981fd=_0x4f33ba[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x6e9232={..._0x5981fd};_0x6e9232[_0x12b59c]=_0x5baffb;const _0xd1fae3=_0x6e9232,_0xbe6f45={[TestFrameworkConstants[_0x85df5b(0x158)]]:_0xd1fae3},_0x4bf0cf={};_0x4bf0cf[_0x17418e]=_0xbe6f45,_0x103a84[_0x85df5b(0x171)](_0x4bf0cf),this[_0x85df5b(0x198)][_0x85df5b(0x1aa)](_0x85df5b(0x189)+_0x17418e+_0x85df5b(0x1ad)+_0x12b59c);}else{const _0x4cd9ea=TestInfo[_0x85df5b(0x19d)](_0x17418e),_0x2ba64b=_0x4cd9ea[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{};_0x2ba64b[_0x12b59c]=_0x5baffb,_0x4cd9ea[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]=_0x2ba64b,TestInfo[_0x85df5b(0x196)](_0x17418e,_0x4cd9ea),this['logger'][_0x85df5b(0x1aa)]('trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20'+_0x17418e+_0x85df5b(0x1ad)+_0x12b59c);}this[_0x85df5b(0x198)]['debug'](util[_0x85df5b(0x151)](_0x4a22f5[_0x85df5b(0x130)],_0x12b59c));}catch(_0x2776e9){this[_0x85df5b(0x198)][_0x85df5b(0x1aa)](util[_0x85df5b(0x151)](_0x4a22f5['CFcNt'],_0x2776e9[_0x85df5b(0x150)]));}}static[a118_0x106d53(0x1a4)](){const _0x54b6f3=a118_0x106d53,_0x42e85c={};_0x42e85c[_0x54b6f3(0x16e)]=_0x54b6f3(0x137),_0x42e85c[_0x54b6f3(0x15d)]=_0x54b6f3(0x152),_0x42e85c[_0x54b6f3(0x147)]=_0x54b6f3(0x186);const _0x460f8f=_0x42e85c,_0x21a554=os[_0x54b6f3(0x13e)](),_0x1a84ce=path[_0x54b6f3(0x13b)](_0x21a554,_0x460f8f[_0x54b6f3(0x16e)]);if(!fs[_0x54b6f3(0x192)](_0x1a84ce))return;const _0x351e4a=BrowserstackCLI[_0x54b6f3(0x1a3)]()[_0x54b6f3(0x1b7)][_0x54b6f3(0x157)]?.['testhubConfig']?.[_0x54b6f3(0x165)]()?.[_0x54b6f3(0x1a1)],_0x5bcc2f=_0x351e4a?path[_0x54b6f3(0x13b)](_0x1a84ce,_0x351e4a):null;if(!_0x5bcc2f||!fs[_0x54b6f3(0x192)](_0x5bcc2f)){this[_0x54b6f3(0x198)]['debug'](util[_0x54b6f3(0x151)](_0x460f8f[_0x54b6f3(0x15d)],_0x351e4a));return;}const _0x28b336={};_0x28b336[_0x54b6f3(0x159)]=!![],_0x28b336[_0x54b6f3(0x18f)]=!![],fs[_0x54b6f3(0x12d)](_0x5bcc2f,_0x28b336),this[_0x54b6f3(0x198)]['debug'](util[_0x54b6f3(0x151)](_0x460f8f[_0x54b6f3(0x147)]));}}module[a118_0x106d53(0x16d)]=uploadAttachmentsManager;
|
|
1
|
+
function a118_0x5bd1(){const _0x3fc2bc=['asdTM','unlinkSync','BuildLevel','Created\x20folder:\x20%s','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','debug','TestHubModule','426nRUXPU','https','QxPcw','trim','__jestCurrentTestIdentifier','tkHim','startsWith','resolveInstance','path','./browserstackCLI','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','addMultipleEntries','getState','17878BUgufN','1004296JNTsTR','uploadAttachments','http','toObject','ZpoUB','uFwlv','jrCiO','bIqXl','existsSync','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','modules','util','retry','./framework/automationFramework','size','name','jest','close','93090AQoXCj','message','POST','gCIGQ','getInstance','force','buildHashedId','yvzic','DFAxb','testhubConfig','join','DkrKS','TiYWm','fQvGj','SkIHr','BLBCl','copyFileSync','415yVxWoI','383592zmkUGi','KEY_TEST_ATTACHMENTS','PWrmo','toFixed','rmSync','330IRBlah','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','YJNcm','clearAttachments','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','uploadAttachmentsManager','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','getAllData','cgpOV','get','778188gaZmEb','MxzRR','trackFile','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20',',\x20filepath:\x20','basename','zOFfz','QJtcz','mkdirSync','45459DuBGvr','error','KEY_FILE_NAME','iRbbn','KEY_FILE_PATH','TLDtO','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','IwPhH','isRunning','getTestFramework','snEaw','KEY_FILE_SIZE','getTrackedInstance','exports','createWriteStream','logger','nfJcr','format','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','tVLzl','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','https://','homedir','getCurrentTestUUID','./cliUtils','KEY_TEST_ID','GipGk','mRCfn','testInfo','function','4120kprlNC','statusCode','yJQOh','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','TestLevel','TEST','finish','statSync','kKBPv','WPHHQ','mNrDF','VjauY','hPCfH','__workerDetails','iegMG','pipe','cYkNY','./TestInfo','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','zpNsQ','getTestIdentifierFromTestInfo','setTestDetails','SaojG'];a118_0x5bd1=function(){return _0x3fc2bc;};return a118_0x5bd1();}const a118_0x513c75=a118_0x2e07;function a118_0x2e07(_0x50461d,_0x31efac){const _0x5bd1cc=a118_0x5bd1();return a118_0x2e07=function(_0x2e07d0,_0x1ce069){_0x2e07d0=_0x2e07d0-0xdf;let _0x4bc299=_0x5bd1cc[_0x2e07d0];return _0x4bc299;},a118_0x2e07(_0x50461d,_0x31efac);}(function(_0x12d716,_0x69b28d){const _0x21aa28=a118_0x2e07,_0x4222ee=_0x12d716();while(!![]){try{const _0x1a8619=parseInt(_0x21aa28(0x12c))/0x1+parseInt(_0x21aa28(0x13e))/0x2+parseInt(_0x21aa28(0x14d))/0x3+parseInt(_0x21aa28(0xee))/0x4*(parseInt(_0x21aa28(0x13d))/0x5)+parseInt(_0x21aa28(0x10c))/0x6*(-parseInt(_0x21aa28(0x119))/0x7)+-parseInt(_0x21aa28(0x11a))/0x8+parseInt(_0x21aa28(0x156))/0x9*(-parseInt(_0x21aa28(0x143))/0xa);if(_0x1a8619===_0x69b28d)break;else _0x4222ee['push'](_0x4222ee['shift']());}catch(_0x512322){_0x4222ee['push'](_0x4222ee['shift']());}}}(a118_0x5bd1,0x2623a));const os=require('os'),fs=require('fs'),path=require(a118_0x513c75(0x114)),util=require(a118_0x513c75(0x125)),BrowserstackCLI=require(a118_0x513c75(0x115)),https=require(a118_0x513c75(0x10d)),http=require(a118_0x513c75(0x11c)),AutomationFramework=require(a118_0x513c75(0x127)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a118_0x513c75(0xff)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require('../../helpers/classLogger.js');class uploadAttachmentsManager{static [a118_0x513c75(0xdf)]=createClassLogger(a118_0x513c75(0x148));static[a118_0x513c75(0x11b)](_0x547ff3,_0x226c18=![]){const _0xeb6958=a118_0x513c75,_0x18db1b={};_0x18db1b['iegMG']=function(_0xcd9855,_0x474cf4){return _0xcd9855/_0x474cf4;},_0x18db1b[_0xeb6958(0xf0)]=function(_0x131867,_0x1e2785){return _0x131867*_0x1e2785;},_0x18db1b[_0xeb6958(0xfa)]=function(_0x59d90b,_0xfdb79d){return _0x59d90b>_0xfdb79d;},_0x18db1b[_0xeb6958(0x145)]='Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.',_0x18db1b['unzgP']='File\x20downloaded\x20to:\x20%s',_0x18db1b[_0xeb6958(0x134)]=function(_0x3a014b,_0xb3c27e){return _0x3a014b===_0xb3c27e;},_0x18db1b[_0xeb6958(0x11e)]=_0xeb6958(0xf4),_0x18db1b[_0xeb6958(0x140)]=_0xeb6958(0x149),_0x18db1b[_0xeb6958(0x139)]=_0xeb6958(0x100),_0x18db1b['Onyfe']='Attachment\x20recevied\x20for\x20path:\x20%s',_0x18db1b[_0xeb6958(0x104)]='.browserstack',_0x18db1b[_0xeb6958(0x14e)]=_0xeb6958(0x147),_0x18db1b[_0xeb6958(0x14b)]='Created\x20.browserstack\x20folder\x20at:\x20%s',_0x18db1b['WPHHQ']=_0xeb6958(0x108),_0x18db1b[_0xeb6958(0x133)]=_0xeb6958(0x109),_0x18db1b['TiYWm']=_0xeb6958(0xe5),_0x18db1b['gCIGQ']='http://',_0x18db1b[_0xeb6958(0x105)]=_0xeb6958(0x157),_0x18db1b[_0xeb6958(0x13a)]=_0xeb6958(0x116),_0x18db1b['DkrKS']=function(_0x21c6ae,_0x2ba329){return _0x21c6ae/_0x2ba329;},_0x18db1b[_0xeb6958(0x154)]=function(_0xd4ea2c,_0x160c13){return _0xd4ea2c*_0x160c13;},_0x18db1b[_0xeb6958(0x11f)]=function(_0x3d0f03,_0x1f57ec){return _0x3d0f03>_0x1f57ec;},_0x18db1b['nNkkg']='File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.';const _0x401ed6=_0x18db1b;this[_0xeb6958(0xdf)][_0xeb6958(0x10a)](util['format'](_0x401ed6['Onyfe'],_0x547ff3));const _0xfdb768=os[_0xeb6958(0xe6)](),_0x2ff17f=path[_0xeb6958(0x136)](_0xfdb768,_0x401ed6[_0xeb6958(0x104)]);!fs[_0xeb6958(0x122)](_0x2ff17f)&&(this['logger'][_0xeb6958(0x10a)](util[_0xeb6958(0xe1)](_0x401ed6[_0xeb6958(0x14e)],_0x2ff17f)),fs[_0xeb6958(0x155)](_0x2ff17f),this[_0xeb6958(0xdf)][_0xeb6958(0x10a)](util[_0xeb6958(0xe1)](_0x401ed6[_0xeb6958(0x14b)],_0x2ff17f)));const _0xad5670=BrowserstackCLI['getInstance']()['modules'][_0xeb6958(0x10b)]?.[_0xeb6958(0x135)]?.['toObject']()?.[_0xeb6958(0x132)],_0xe282c7=path['join'](_0x2ff17f,_0xad5670);!fs[_0xeb6958(0x122)](_0xe282c7)&&(fs[_0xeb6958(0x155)](_0xe282c7),this[_0xeb6958(0xdf)][_0xeb6958(0x10a)](util[_0xeb6958(0xe1)](_0x401ed6[_0xeb6958(0xf7)],_0xe282c7)));if(_0x401ed6[_0xeb6958(0x134)](_0x547ff3[_0xeb6958(0x10f)](),'')){this[_0xeb6958(0xdf)][_0xeb6958(0x10a)](util[_0xeb6958(0xe1)](_0x401ed6[_0xeb6958(0x133)]));return;}if(_0x547ff3[_0xeb6958(0x112)](_0x401ed6[_0xeb6958(0x138)])||_0x547ff3[_0xeb6958(0x112)](_0x401ed6[_0xeb6958(0x12f)])){const _0x5a6adb=_0x547ff3[_0xeb6958(0x112)](_0x401ed6[_0xeb6958(0x138)])?https:http,_0x31e3fd=path[_0xeb6958(0x152)](_0x547ff3),_0x1c0cc4=path[_0xeb6958(0x136)](_0xe282c7,_0x31e3fd),_0x510a52=fs[_0xeb6958(0x164)](_0x1c0cc4);_0x5a6adb[_0xeb6958(0x14c)](_0x547ff3,_0x298da7=>{const _0x4b3f50=_0xeb6958,_0x2966d0={'GipGk':function(_0x381cb1,_0x36bb2f){const _0x1a221b=a118_0x2e07;return _0x401ed6[_0x1a221b(0xfc)](_0x381cb1,_0x36bb2f);},'zpNsQ':function(_0x4193c2,_0x534aa3){return _0x401ed6['yJQOh'](_0x4193c2,_0x534aa3);},'tkHim':function(_0x584a41,_0x3b6602){const _0x5e241c=a118_0x2e07;return _0x401ed6[_0x5e241c(0xfa)](_0x584a41,_0x3b6602);},'BLBCl':_0x401ed6[_0x4b3f50(0x145)],'YrFcl':_0x401ed6['unzgP']};if(_0x401ed6[_0x4b3f50(0x134)](_0x298da7[_0x4b3f50(0xef)],0xc8))_0x298da7[_0x4b3f50(0xfd)](_0x510a52),_0x510a52['on'](_0x401ed6[_0x4b3f50(0x11e)],()=>{const _0x20c84d=_0x4b3f50;_0x510a52[_0x20c84d(0x12b)]();const _0x30d374=fs['statSync'](_0x1c0cc4),_0x21934e=_0x2966d0[_0x20c84d(0xea)](_0x30d374[_0x20c84d(0x128)],_0x2966d0[_0x20c84d(0x101)](0x400,0x400));if(_0x2966d0[_0x20c84d(0x111)](_0x21934e,0x64)){this[_0x20c84d(0xdf)][_0x20c84d(0x10a)](util[_0x20c84d(0xe1)](_0x2966d0[_0x20c84d(0x13b)],_0x21934e[_0x20c84d(0x141)](0x2))),fs[_0x20c84d(0x106)](_0x1c0cc4);return;}this[_0x20c84d(0xdf)][_0x20c84d(0x10a)](util[_0x20c84d(0xe1)](_0x2966d0['YrFcl'],_0x1c0cc4)),uploadAttachmentsManager['trackFile'](_0x1c0cc4,_0x226c18);});else{this['logger']['debug'](util[_0x4b3f50(0xe1)](_0x401ed6[_0x4b3f50(0x140)],_0x298da7[_0x4b3f50(0xef)])),_0x510a52[_0x4b3f50(0x12b)](),fs[_0x4b3f50(0x106)](_0x1c0cc4);return;}})['on'](_0x401ed6[_0xeb6958(0x105)],_0xfd6c27=>{const _0x10f6d9=_0xeb6958;this[_0x10f6d9(0xdf)][_0x10f6d9(0x10a)](util[_0x10f6d9(0xe1)](_0x401ed6['fQvGj'],_0xfd6c27['message'])),_0x510a52[_0x10f6d9(0x12b)](),fs[_0x10f6d9(0x106)](_0x1c0cc4);return;});}else{if(!fs['existsSync'](_0x547ff3)){this[_0xeb6958(0xdf)]['debug'](util[_0xeb6958(0xe1)](_0x401ed6[_0xeb6958(0x13a)],_0x547ff3));return;}const _0x3c6795=fs[_0xeb6958(0xf5)](_0x547ff3),_0x45b7ea=_0x401ed6[_0xeb6958(0x137)](_0x3c6795[_0xeb6958(0x128)],_0x401ed6[_0xeb6958(0x154)](0x400,0x400));if(_0x401ed6[_0xeb6958(0x11f)](_0x45b7ea,0x64)){this[_0xeb6958(0xdf)]['debug'](util[_0xeb6958(0xe1)](_0x401ed6['nNkkg'],_0x45b7ea[_0xeb6958(0x141)](0x2)));return;}const _0x22b315=path[_0xeb6958(0x152)](_0x547ff3),_0x42e718=path[_0xeb6958(0x136)](_0xe282c7,_0x22b315);fs[_0xeb6958(0x13c)](_0x547ff3,_0x42e718),uploadAttachmentsManager[_0xeb6958(0x14f)](_0x42e718,_0x226c18);}}static['trackFile'](_0x283417,_0x300d04){const _0x36eac2=a118_0x513c75,_0x32f144={'cYkNY':function(_0x38a4ec,_0x5edf89){return _0x38a4ec(_0x5edf89);},'VjauY':_0x36eac2(0x115),'QxPcw':_0x36eac2(0xe8),'mRCfn':function(_0x3d03a9,_0x12f35c){return _0x3d03a9===_0x12f35c;},'bIqXl':_0x36eac2(0x12a),'blyNr':_0x36eac2(0xed),'snEaw':_0x36eac2(0x144),'cxdpg':_0x36eac2(0x107),'iRbbn':_0x36eac2(0xf2),'tVLzl':'trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','IwPhH':'./state/testFrameworkState','mNrDF':'./state/hookState','TLDtO':_0x36eac2(0xe4),'jrCiO':'Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','JqvGn':'Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload'};try{let _0x3f0cf9;const _0x26a84e=global[_0x36eac2(0xfb)]?.['currentTest']?.[_0x36eac2(0xec)],_0x1b4545=_0x32f144[_0x36eac2(0xfe)](require,_0x32f144[_0x36eac2(0xf9)]),_0x25eb4f=_0x32f144[_0x36eac2(0xfe)](require,_0x32f144[_0x36eac2(0x10e)]),_0x22252f=_0x1b4545[_0x36eac2(0x130)]()[_0x36eac2(0x15e)]()&&_0x32f144['mRCfn'](_0x25eb4f['getTestFrameworkDetail']()?.[_0x36eac2(0x129)]?.['toLowerCase'](),_0x32f144[_0x36eac2(0x121)]);if(_0x22252f){_0x3f0cf9=global[_0x36eac2(0x110)];if(!_0x3f0cf9){const _0x4ac358=AutomationFramework[_0x36eac2(0x162)]();_0x3f0cf9=AutomationFramework[_0x36eac2(0x118)](_0x4ac358,PlaywrightDriverModule[_0x36eac2(0xe9)],'');}this[_0x36eac2(0xdf)][_0x36eac2(0x10a)](_0x36eac2(0x123)+_0x3f0cf9);}else{if(!_0x26a84e){const _0x150afc=AutomationFramework[_0x36eac2(0x162)]();_0x3f0cf9=AutomationFramework[_0x36eac2(0x118)](_0x150afc,PlaywrightDriverModule[_0x36eac2(0xe9)],'');}else _0x3f0cf9=TestInfo[_0x36eac2(0x102)](_0x26a84e,_0x26a84e[_0x36eac2(0x126)]);this[_0x36eac2(0xdf)][_0x36eac2(0x10a)](_0x36eac2(0x150)+_0x3f0cf9);}if(!_0x3f0cf9)try{const _0x248f21=_0x1b4545[_0x36eac2(0x130)](),_0x20c453=_0x248f21&&_0x248f21['getTestFramework']();_0x3f0cf9=_0x20c453&&_0x32f144[_0x36eac2(0xeb)](typeof _0x20c453[_0x36eac2(0xe7)],_0x32f144['blyNr'])&&_0x20c453[_0x36eac2(0xe7)]()||_0x3f0cf9;}catch(_0x9825ec){this[_0x36eac2(0xdf)]['debug']('trackFile:\x20node-generic\x20testId\x20fallback\x20failed:\x20'+(_0x9825ec&&_0x9825ec['message']));}if(!_0x3f0cf9){this[_0x36eac2(0xdf)][_0x36eac2(0x10a)](_0x32f144[_0x36eac2(0x160)]);return;}const _0x3aa29e={[TestFrameworkConstants[_0x36eac2(0x161)]]:fs[_0x36eac2(0xf5)](_0x283417)[_0x36eac2(0x128)],[TestFrameworkConstants[_0x36eac2(0x158)]]:path[_0x36eac2(0x152)](_0x283417),[TestFrameworkConstants[_0x36eac2(0x15a)]]:_0x283417,[TestFrameworkConstants['KEY_FILE_LEVEL']]:_0x300d04?_0x32f144['cxdpg']:_0x32f144[_0x36eac2(0x159)]};if(_0x22252f){const _0x2739a1=_0x1b4545[_0x36eac2(0x130)]()[_0x36eac2(0x15f)]();if(!_0x2739a1){this[_0x36eac2(0xdf)][_0x36eac2(0x10a)](_0x32f144[_0x36eac2(0xe3)]);return;}const _0x234e5a=_0x32f144[_0x36eac2(0xfe)](require,_0x32f144[_0x36eac2(0x15d)]),_0x58b755=_0x32f144[_0x36eac2(0xfe)](require,_0x32f144[_0x36eac2(0xf8)]),_0xe5c033=_0x2739a1[_0x36eac2(0x113)](_0x234e5a[_0x36eac2(0xf3)],_0x58b755[_0x36eac2(0x12e)]);if(!_0xe5c033){this[_0x36eac2(0xdf)][_0x36eac2(0x10a)](_0x32f144[_0x36eac2(0x15b)]);return;}const _0xf8bbc8=_0xe5c033[_0x36eac2(0x14a)]()[_0x36eac2(0x14c)](_0x3f0cf9)||{},_0x1dcda0=_0xf8bbc8[TestFrameworkConstants[_0x36eac2(0x13f)]]||{},_0x414081={..._0x1dcda0};_0x414081[_0x283417]=_0x3aa29e;const _0x54beb1=_0x414081,_0x34d42d={[TestFrameworkConstants[_0x36eac2(0x13f)]]:_0x54beb1},_0x400e70={};_0x400e70[_0x3f0cf9]=_0x34d42d,_0xe5c033[_0x36eac2(0x117)](_0x400e70),this[_0x36eac2(0xdf)][_0x36eac2(0x10a)](_0x36eac2(0x15c)+_0x3f0cf9+_0x36eac2(0x151)+_0x283417);}else{const _0x10654e=TestInfo['getTestDetails'](_0x3f0cf9),_0x62020a=_0x10654e[TestFrameworkConstants[_0x36eac2(0x13f)]]||{};_0x62020a[_0x283417]=_0x3aa29e,_0x10654e[TestFrameworkConstants[_0x36eac2(0x13f)]]=_0x62020a,TestInfo[_0x36eac2(0x103)](_0x3f0cf9,_0x10654e),this[_0x36eac2(0xdf)][_0x36eac2(0x10a)](_0x36eac2(0xf1)+_0x3f0cf9+_0x36eac2(0x151)+_0x283417);}this[_0x36eac2(0xdf)][_0x36eac2(0x10a)](util[_0x36eac2(0xe1)](_0x32f144[_0x36eac2(0x120)],_0x283417));}catch(_0x526323){this[_0x36eac2(0xdf)][_0x36eac2(0x10a)](util[_0x36eac2(0xe1)](_0x32f144['JqvGn'],_0x526323[_0x36eac2(0x12d)]));}}static[a118_0x513c75(0x146)](){const _0x3749b2=a118_0x513c75,_0x3835a5={};_0x3835a5[_0x3749b2(0xe0)]='.browserstack',_0x3835a5[_0x3749b2(0xf6)]=_0x3749b2(0xe2),_0x3835a5['zOFfz']='Cleared\x20attachment\x20folder';const _0x216db1=_0x3835a5,_0x2b2dbc=os[_0x3749b2(0xe6)](),_0x3ad666=path[_0x3749b2(0x136)](_0x2b2dbc,_0x216db1[_0x3749b2(0xe0)]);if(!fs[_0x3749b2(0x122)](_0x3ad666))return;const _0x251a9c=BrowserstackCLI[_0x3749b2(0x130)]()[_0x3749b2(0x124)][_0x3749b2(0x10b)]?.[_0x3749b2(0x135)]?.[_0x3749b2(0x11d)]()?.['buildHashedId'],_0x390545=_0x251a9c?path[_0x3749b2(0x136)](_0x3ad666,_0x251a9c):null;if(!_0x390545||!fs['existsSync'](_0x390545)){this['logger'][_0x3749b2(0x10a)](util[_0x3749b2(0xe1)](_0x216db1[_0x3749b2(0xf6)],_0x251a9c));return;}const _0x426482={};_0x426482['recursive']=!![],_0x426482[_0x3749b2(0x131)]=!![],fs[_0x3749b2(0x142)](_0x390545,_0x426482),this['logger'][_0x3749b2(0x10a)](util[_0x3749b2(0xe1)](_0x216db1[_0x3749b2(0x153)]));}}module[a118_0x513c75(0x163)]=uploadAttachmentsManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a119_0x45a1(){const _0x52d73c=['hook','FAILED','failureType','push','nanos','gMlsU','GVCuB','uCJDW','failed','createTestFrameworkData','OYMHQ','exports','aMpDO','24BcUevq','passed','toISOString','relative','GgMLR','getScenarioExamples','cells','failureData','filter','MviLo','XYrLt','824178VZNzoJ','IMaUk','root','value','TpBDl','backtrace','name','JxXie','failure','result','length','Exception\x20in\x20getHookRunEventData:\x20','BEFORE_EACH','feature','RNJIT','exception','sendTestRunEventForCucumber','split','getTestUUID','JDpSg','qZidD','../../../helpers/logger.js','map','UnhandledError','Exception\x20in\x20createHookData:\x20','CbcAg','children','pending','find','pdGVV','flatMap','789261bAZKUH','gTAhE','NHGui','cucumber','util','3490bjgElM','bfOPC','HookRunStarted','LYGLL','WOeCz','match','forEach','5983133OrHbWH','pickleStepId','strip-ansi','uri','tags','vbMAN','1348952UWhGCh','ZpDgJ','duration_in_ms','tableBody','cnScf','OILGo','toLowerCase','uuid','testCaseFinished','VzWRO','rule','197jXAXnT','10cFMion','skipped','winstonLogger','4msuEjA','createHookData','9fENAHj','status','failure_type','CZlaL','7557011JPoMCy','../TestInfo.js','Cgfth','astNodeIds','unknown','examples','qxjLb','sendHook','_gitConfigPath','uEnjt','TioHn','debug','ZaxlK','test','BTNpC','finishedAt','5EJxBxv','oCflt','every','AssertionError','timestamp','RKZye','BAhbN','XhUAE','EHZCs','failure_reason','BmJEd','javascript','getHookRunEventData','message','../../../helpers/test-observability/error-handler.js','hooks','getHookResult','AFTER_EACH','../../../helpers/helper.js','getCucumberHookType','includes','3394727drcxGz','KKfPQ','QSGUT','xvPTT','path','testStepFinished','RuzTV','hookId','configureGit','IadPm','DpLNj','_gitConfigured','gdHTf','scenario','WiaMP'];a119_0x45a1=function(){return _0x52d73c;};return a119_0x45a1();}function a119_0x90fc(_0x1832c7,_0x50918c){const _0x45a1f2=a119_0x45a1();return a119_0x90fc=function(_0x90fc71,_0x1a45e7){_0x90fc71=_0x90fc71-0xec;let _0x35f7e9=_0x45a1f2[_0x90fc71];return _0x35f7e9;},a119_0x90fc(_0x1832c7,_0x50918c);}const a119_0x3a3431=a119_0x90fc;(function(_0x373e2f,_0x23d19b){const _0x1ca952=a119_0x90fc,_0x75bfef=_0x373e2f();while(!![]){try{const _0x36a135=-parseInt(_0x1ca952(0x149))/0x1*(-parseInt(_0x1ca952(0x131))/0x2)+parseInt(_0x1ca952(0x12c))/0x3*(-parseInt(_0x1ca952(0x14d))/0x4)+-parseInt(_0x1ca952(0x163))/0x5*(parseInt(_0x1ca952(0x10d))/0x6)+parseInt(_0x1ca952(0x178))/0x7+parseInt(_0x1ca952(0x13e))/0x8*(parseInt(_0x1ca952(0x14f))/0x9)+parseInt(_0x1ca952(0x14a))/0xa*(parseInt(_0x1ca952(0x153))/0xb)+-parseInt(_0x1ca952(0x102))/0xc*(parseInt(_0x1ca952(0x138))/0xd);if(_0x36a135===_0x23d19b)break;else _0x75bfef['push'](_0x75bfef['shift']());}catch(_0x20e9e3){_0x75bfef['push'](_0x75bfef['shift']());}}}(a119_0x45a1,0x58b96));const path=require(a119_0x3a3431(0x17c)),util=require(a119_0x3a3431(0x130)),{getGitMetaData,isUndefined,nestedKeyValue,deriveCucumberHookName,isSdkSetupHook}=require(a119_0x3a3431(0x175)),logger=require(a119_0x3a3431(0x122))[a119_0x3a3431(0x14c)],{o11yClassErrorHandler}=require(a119_0x3a3431(0x171)),TestInfo=require(a119_0x3a3431(0x154)),hooksMap={};class CucumberUtils{constructor(){const _0x3f814f=a119_0x3a3431;this[_0x3f814f(0xf1)]=![],this[_0x3f814f(0x15b)]=null;}async[a119_0x3a3431(0xfe)](_0x539a96,_0x56d8d6,_0x2219fb,_0x141048,_0x12d15c,_0x17d410){const _0x38949b=a119_0x3a3431,_0x26d110={'bfOPC':function(_0x5a35dd,_0x34d7d2){return _0x5a35dd===_0x34d7d2;},'gMlsU':_0x38949b(0xf6),'IadPm':_0x38949b(0xfd),'ZpDgJ':'SKIPPED','uEnjt':_0x38949b(0x14b),'OILGo':function(_0x283745,_0x3df5e2){return _0x283745||_0x3df5e2;},'pdGVV':function(_0x260ebd,_0x3fe840){return _0x260ebd+_0x3fe840;},'BmJEd':function(_0x201042,_0x44dae7){return _0x201042+_0x44dae7;},'isnmu':_0x38949b(0x160),'XYrLt':_0x38949b(0x16e),'VzWRO':_0x38949b(0x12f),'TDekV':'pending','MviLo':_0x38949b(0x103),'OYMHQ':function(_0x1e4e9c,_0x1d2ff4){return _0x1e4e9c!==_0x1d2ff4;},'PRNUM':function(_0x523819,_0x3f7639){return _0x523819/_0x3f7639;},'vbMAN':_0x38949b(0x13a),'oCflt':function(_0x381c86,_0x83a7e7){return _0x381c86(_0x83a7e7);},'BTNpC':_0x38949b(0x157),'DpLNj':function(_0x5c5e12,_0x364d45){return _0x5c5e12(_0x364d45);},'JDpSg':_0x38949b(0x166),'IMaUk':'UnhandledError'},{feature:_0x58af87,scenario:_0x320b12,steps:_0x5beb6d,uuid:_0x47d99c,startedAt:_0x6c191d,finishedAt:_0x17ae2c}=_0x26d110[_0x38949b(0x143)](_0x539a96,{}),_0x29a9d8=this[_0x38949b(0x107)](_0x141048,_0x56d8d6);await this[_0x38949b(0xee)]();const _0x580ed9=_0x29a9d8?_0x26d110[_0x38949b(0x12a)](_0x26d110[_0x38949b(0x12a)](_0x26d110[_0x38949b(0x16d)](_0x56d8d6[_0x38949b(0x113)],'\x20('),_0x29a9d8['join'](',\x20')),')'):_0x56d8d6['name'],_0x48b069={'id':_0x12d15c,'uuid':_0x12d15c,'startedAt':_0x6c191d,'finishedAt':_0x17ae2c,'type':_0x26d110['isnmu'],'body':{'lang':_0x26d110[_0x38949b(0x10c)],'code':null},'name':_0x580ed9,'scopes':[_0x58af87&&_0x58af87[_0x38949b(0x113)]?_0x58af87[_0x38949b(0x113)]:''],'tags':_0x56d8d6[_0x38949b(0x13c)]?_0x56d8d6['tags'][_0x38949b(0x123)](({name:_0x56d0e0})=>_0x56d0e0):[],'file_name':_0x56d8d6[_0x38949b(0x13b)],'location':_0x56d8d6['uri'],'vc_filepath':this['_gitConfigPath']&&_0x56d8d6['uri']?path[_0x38949b(0x105)](this['_gitConfigPath'],_0x56d8d6[_0x38949b(0x13b)]):null,'framework':_0x26d110[_0x38949b(0x147)],'result':_0x26d110['TDekV'],'meta':{'feature':_0x58af87,'scenario':_0x320b12,'steps':_0x5beb6d,'examples':_0x29a9d8},'customRerunParam':{'rerun_name':_0x580ed9}};if(_0x2219fb[_0x38949b(0x146)]&&_0x5beb6d){const _0x215941=_0x2219fb[_0x38949b(0x146)];let _0x5f9a4e=_0x26d110[_0x38949b(0x10b)];_0x5beb6d[_0x38949b(0x165)](_0x5376c1=>{const _0x1d3bc7=_0x38949b;if(_0x26d110['bfOPC'](_0x5376c1[_0x1d3bc7(0x116)],_0x26d110[_0x1d3bc7(0xfa)]))return _0x5f9a4e=_0x26d110[_0x1d3bc7(0xef)],_0x215941[_0x1d3bc7(0x115)]=_0x5376c1[_0x1d3bc7(0x115)],_0x215941[_0x1d3bc7(0xf7)]=_0x5376c1[_0x1d3bc7(0xf7)],![];else{if(_0x26d110[_0x1d3bc7(0x132)](_0x5376c1[_0x1d3bc7(0x116)],_0x26d110[_0x1d3bc7(0x13f)]))return _0x5f9a4e=_0x26d110[_0x1d3bc7(0x15c)],![];}return!![];}),_0x48b069[_0x38949b(0x162)]=new Date()[_0x38949b(0x104)](),_0x48b069[_0x38949b(0x116)]=_0x5f9a4e;_0x215941[_0x38949b(0x167)]&&_0x26d110[_0x38949b(0xff)](_0x215941['timestamp'][_0x38949b(0xf9)],undefined)?_0x48b069['duration_in_ms']=_0x26d110['PRNUM'](_0x215941[_0x38949b(0x167)][_0x38949b(0xf9)],0xf4240):_0x48b069[_0x38949b(0x140)]=undefined;if(_0x26d110[_0x38949b(0x132)](_0x5f9a4e,_0x26d110[_0x38949b(0xef)])){const {default:_0x53b7e5}=await import(_0x26d110[_0x38949b(0x13d)]);_0x48b069[_0x38949b(0x115)]=[{'backtrace':[_0x215941[_0x38949b(0x115)]?_0x26d110[_0x38949b(0x164)](_0x53b7e5,_0x215941[_0x38949b(0x115)]):_0x26d110[_0x38949b(0x161)]]}],_0x48b069[_0x38949b(0x16c)]=_0x215941[_0x38949b(0x115)]?_0x26d110[_0x38949b(0xf0)](_0x53b7e5,_0x215941[_0x38949b(0x115)]):_0x215941[_0x38949b(0x170)],_0x215941['failureType']&&(_0x48b069[_0x38949b(0x151)]=_0x215941[_0x38949b(0xf7)][_0x38949b(0x136)](/AssertError/)?_0x26d110[_0x38949b(0x120)]:_0x26d110[_0x38949b(0x10e)]);}}return _0x48b069;}[a119_0x3a3431(0x16f)](_0x3adec1,_0x3b83dd,_0x25f03e,_0x3f8658,_0x2bbf6c,_0x25087a){const _0x4e68bf=a119_0x3a3431,_0x4acb38={'uCJDW':function(_0x2c56c9,_0x505f94){return _0x2c56c9===_0x505f94;},'xvPTT':'HookRunFinished','RNJIT':function(_0x837bc5,_0x4ea604,_0x31de57){return _0x837bc5(_0x4ea604,_0x31de57);},'gTAhE':'sourceReference','qxjLb':_0x4e68bf(0x13b),'WOeCz':_0x4e68bf(0x128),'XhUAE':_0x4e68bf(0xf5),'GgMLR':function(_0x483c0c,_0x43e72e,_0xc2bb42,_0x52b92f){return _0x483c0c(_0x43e72e,_0xc2bb42,_0x52b92f);},'TioHn':_0x4e68bf(0xf3),'gdHTf':'name','SgXjQ':'javascript','GVCuB':function(_0x5252be,_0x30a910,_0x406dd3){return _0x5252be(_0x30a910,_0x406dd3);},'BAhbN':_0x4e68bf(0x11a),'jDmaf':_0x4e68bf(0x12f)};try{if(_0x4acb38[_0x4e68bf(0xfc)](_0x25f03e,_0x4acb38[_0x4e68bf(0x17b)])){const _0x7248f2=new Date()['toISOString'](),_0xc7cf1b=hooksMap[_0x3b83dd];if(!_0xc7cf1b)return;const _0x1a7c95=_0xc7cf1b['find'](_0x1ca57b=>_0x1ca57b[_0x4e68bf(0x145)]===_0x3f8658['id']);if(!_0x1a7c95)return;const _0x259066=this['getHookResult'](_0x3adec1,_0x3b83dd);_0x1a7c95['result']=_0x259066[_0x4e68bf(0x150)],_0x1a7c95['finished_at']=_0x7248f2,_0x1a7c95[_0x4e68bf(0x151)]=_0x259066[_0x4e68bf(0xf7)];const _0x533fb1={};return _0x533fb1[_0x4e68bf(0x112)]=_0x259066[_0x4e68bf(0x109)],_0x1a7c95['failure_data']=[_0x533fb1],_0x1a7c95;}const _0x2dfc05=TestInfo[_0x4e68bf(0x11f)](_0x3b83dd),_0x22f0cc=_0x3adec1[_0x4e68bf(0x172)][_0x4e68bf(0x129)](_0x4eb333=>_0x4eb333['id']===_0x3f8658['hookId']),_0x50f41c=_0x4acb38[_0x4e68bf(0x11b)](nestedKeyValue,_0x22f0cc,[_0x4acb38[_0x4e68bf(0x12d)],_0x4acb38[_0x4e68bf(0x159)]]),_0x1b7763=new Date()[_0x4e68bf(0x104)](),_0x2ee5ef=_0x4acb38[_0x4e68bf(0x135)],_0x5c1bee=_0x22f0cc['tagExpression']?_0x22f0cc['tagExpression'][_0x4e68bf(0x11e)]('\x20')[_0x4e68bf(0x10a)](_0x45643b=>_0x45643b[_0x4e68bf(0x177)]('@')):[],_0x5f5bc3={'uuid':_0x3f8658['id'],'type':_0x4acb38[_0x4e68bf(0x16a)],'hook_type':_0x25087a,'name':_0x4acb38[_0x4e68bf(0x106)](deriveCucumberHookName,_0x22f0cc['name'],_0x25087a,_0x4acb38['RNJIT'](nestedKeyValue,_0x2bbf6c,[_0x4acb38[_0x4e68bf(0x15d)],_0x4acb38[_0x4e68bf(0xf2)]])),'body':{'lang':_0x4acb38['SgXjQ'],'code':null},'tags':_0x5c1bee,'test_run_id':_0x2dfc05,'scope':_0x4acb38[_0x4e68bf(0xfb)](nestedKeyValue,_0x2bbf6c,[_0x4acb38['BAhbN'],_0x4acb38[_0x4e68bf(0xf2)]]),'scopes':[_0x4acb38[_0x4e68bf(0x11b)](nestedKeyValue,_0x2bbf6c,[_0x4acb38[_0x4e68bf(0x169)],_0x4acb38[_0x4e68bf(0xf2)]])||''],'file_name':_0x50f41c,'location':_0x50f41c,'vc_filepath':this[_0x4e68bf(0x15b)]&&_0x50f41c?path[_0x4e68bf(0x105)](this[_0x4e68bf(0x15b)],_0x50f41c):null,'result':_0x2ee5ef,'started_at':_0x1b7763,'framework':_0x4acb38['jDmaf']};return _0x5f5bc3;}catch(_0x2ae94d){logger[_0x4e68bf(0x15e)](_0x4e68bf(0x118)+util['format'](_0x2ae94d)+'\x20');}}async[a119_0x3a3431(0x14e)](_0x2dc850,_0x45ffa7,_0x4ba5ab,_0x51e8d5,_0x316571,_0x1abf95){const _0x5856eb=a119_0x3a3431,_0x355a52={'Cgfth':function(_0x43be6d,_0x197897){return _0x43be6d===_0x197897;},'ZaxlK':_0x5856eb(0x133),'aMpDO':function(_0x319205,_0x4e8f2a,_0x244c58){return _0x319205(_0x4e8f2a,_0x244c58);},'ZWPrg':'sourceReference','QSGUT':_0x5856eb(0x13b)};try{const _0x1f485b=_0x51e8d5[_0x5856eb(0x129)](_0x146e09=>_0x146e09['id']===_0x316571);if(!_0x1f485b[_0x5856eb(0xed)])return;const _0x577f5e=this[_0x5856eb(0x176)](_0x51e8d5,_0x1f485b),_0x2df39b=this['getHookRunEventData'](_0x2dc850,_0x45ffa7,_0x4ba5ab,_0x1f485b,_0x1abf95,_0x577f5e);if(!_0x2df39b)return;_0x355a52[_0x5856eb(0x155)](_0x4ba5ab,_0x355a52[_0x5856eb(0x15f)])&&(hooksMap[_0x45ffa7]?hooksMap[_0x45ffa7][_0x5856eb(0xf8)](_0x2df39b):hooksMap[_0x45ffa7]=[_0x2df39b]);const _0x2cdcf9=_0x2dc850['hooks'][_0x5856eb(0x129)](_0x5eeacd=>_0x5eeacd['id']===_0x1f485b[_0x5856eb(0xed)]),_0x45cc29=_0x355a52[_0x5856eb(0x101)](nestedKeyValue,_0x2cdcf9,[_0x355a52['ZWPrg'],_0x355a52[_0x5856eb(0x17a)]]);if(!_0x45cc29)return;else{if(_0x355a52[_0x5856eb(0x101)](isSdkSetupHook,_0x45cc29,_0x2df39b[_0x5856eb(0x113)]))return;}return _0x2df39b;}catch(_0x2e2657){logger['debug'](_0x5856eb(0x125)+util['format'](_0x2e2657)+'\x20');}}[a119_0x3a3431(0x173)](_0x2eb67c,_0x5983a1){const _0x652760=a119_0x3a3431,_0xba56f1={};_0xba56f1[_0x652760(0x16b)]=function(_0x1aaefa,_0x408b01){return _0x1aaefa===_0x408b01;},_0xba56f1['tjAEu']=_0x652760(0xfd),_0xba56f1[_0x652760(0x111)]=function(_0x3f849d,_0x1870aa){return _0x3f849d===_0x1870aa;},_0xba56f1[_0x652760(0xec)]=_0x652760(0x124),_0xba56f1[_0x652760(0x121)]=_0x652760(0x166),_0xba56f1[_0x652760(0x134)]=function(_0x26e2a7,_0x1d65d5){return _0x26e2a7||_0x1d65d5;};const _0x1a4531=_0xba56f1,_0x21455d=_0x2eb67c[_0x652760(0x17d)][_0x5983a1]['testStepResult'];let _0x2f3c40,_0x782ffb;return _0x21455d&&_0x1a4531[_0x652760(0x16b)](_0x21455d['status']['toString']()[_0x652760(0x144)](),_0x1a4531['tjAEu'])&&(_0x2f3c40=_0x1a4531[_0x652760(0x16b)](_0x21455d[_0x652760(0x11c)],undefined)?_0x21455d[_0x652760(0x170)]:_0x21455d[_0x652760(0x11c)]['message'],_0x782ffb=_0x1a4531[_0x652760(0x111)](_0x21455d['exception'],undefined)?_0x1a4531[_0x652760(0xec)]:_0x21455d['message']['match'](/Assert/)?_0x1a4531[_0x652760(0x121)]:_0x1a4531[_0x652760(0xec)]),{'status':_0x21455d['status'][_0x652760(0x144)](),'failureType':_0x1a4531[_0x652760(0x134)](_0x782ffb,null),'failureData':!_0x2f3c40?null:[_0x2f3c40]};}[a119_0x3a3431(0x176)](_0x1efb8b,_0x26aae0){const _0x1c979c=a119_0x3a3431,_0x5affa1={};_0x5affa1[_0x1c979c(0x114)]=function(_0x3e6b30,_0x16f464){return _0x3e6b30===_0x16f464;},_0x5affa1[_0x1c979c(0xf4)]=_0x1c979c(0x174),_0x5affa1[_0x1c979c(0x12e)]=_0x1c979c(0x119);const _0x43c4f1=_0x5affa1;let _0x5a1e1c=![];for(const _0x387e92 of _0x1efb8b){_0x387e92[_0x1c979c(0x139)]&&(_0x5a1e1c=!![]);if(_0x43c4f1[_0x1c979c(0x114)](_0x26aae0['id'],_0x387e92['id']))return _0x5a1e1c?_0x43c4f1[_0x1c979c(0xf4)]:_0x43c4f1[_0x1c979c(0x12e)];}}[a119_0x3a3431(0x107)]=(_0x21660f,_0xaee72a)=>{const _0x104492=a119_0x3a3431,_0x32bceb={};_0x32bceb[_0x104492(0x179)]=function(_0x5b196f,_0x2099e3){return _0x5b196f===_0x2099e3;},_0x32bceb[_0x104492(0x168)]=function(_0x3ee625,_0x32b34a){return _0x3ee625===_0x32b34a;},_0x32bceb[_0x104492(0x142)]=function(_0x184e41,_0x30a7c9){return _0x184e41>_0x30a7c9;};const _0x1b5c7b=_0x32bceb;if(!(_0xaee72a[_0x104492(0x156)]&&_0x1b5c7b['cnScf'](_0xaee72a[_0x104492(0x156)][_0x104492(0x117)],0x1)))return;const _0x553ee8=_0xaee72a[_0x104492(0x156)][0x0],_0x4545a6=_0xaee72a[_0x104492(0x156)][0x1],_0x41bbae=_0x21660f[_0x104492(0x11a)]&&_0x21660f[_0x104492(0x11a)][_0x104492(0x127)]?_0x21660f[_0x104492(0x11a)][_0x104492(0x127)]:undefined;let _0x2e77c4=[];_0x41bbae&&_0x41bbae[_0x104492(0x137)](_0x2f4fc9=>{const _0x37c504=_0x104492,_0x1ced44={'CZlaL':function(_0x36f5f8,_0xcda8c2){const _0x43deb8=a119_0x90fc;return _0x1b5c7b[_0x43deb8(0x179)](_0x36f5f8,_0xcda8c2);}};if(_0x2f4fc9[_0x37c504(0x148)])_0x2f4fc9[_0x37c504(0x148)]['children'][_0x37c504(0x137)](_0x5e7b67=>{const _0x56ba07=_0x37c504;if(_0x5e7b67['scenario']&&_0x1ced44[_0x56ba07(0x152)](_0x5e7b67['scenario']['id'],_0x553ee8)&&_0x5e7b67[_0x56ba07(0xf3)][_0x56ba07(0x158)]){const _0x190f27=_0x5e7b67[_0x56ba07(0xf3)]['examples']['flatMap'](_0x2da091=>_0x2da091[_0x56ba07(0x141)])[_0x56ba07(0x129)](_0x306a66=>_0x306a66['id']===_0x4545a6);let _0x3553a0;_0x190f27&&_0x190f27[_0x56ba07(0x108)]?_0x3553a0=_0x190f27[_0x56ba07(0x108)]['map'](_0x2243a9=>_0x2243a9[_0x56ba07(0x110)]):_0x3553a0=[],_0x3553a0&&(_0x2e77c4=_0x3553a0);}});else{if(_0x2f4fc9['scenario']&&_0x1b5c7b[_0x37c504(0x168)](_0x2f4fc9[_0x37c504(0xf3)]['id'],_0x553ee8)&&_0x2f4fc9[_0x37c504(0xf3)][_0x37c504(0x158)]){const _0x41e19e=_0x2f4fc9[_0x37c504(0xf3)][_0x37c504(0x158)][_0x37c504(0x12b)](_0x31c5b3=>_0x31c5b3['tableBody'])[_0x37c504(0x129)](_0x272a97=>_0x272a97['id']===_0x4545a6);let _0x35cec3;_0x41e19e&&_0x41e19e[_0x37c504(0x108)]?_0x35cec3=_0x41e19e[_0x37c504(0x108)][_0x37c504(0x123)](_0x1e3972=>_0x1e3972[_0x37c504(0x110)]):_0x35cec3=[],_0x35cec3&&(_0x2e77c4=_0x35cec3);}}});if(_0x2e77c4[_0x104492(0x117)])return _0x2e77c4;return;};async[a119_0x3a3431(0xee)](){const _0x1871c7=a119_0x3a3431,_0xb78578={'CbcAg':function(_0x42b741){return _0x42b741();}};if(this[_0x1871c7(0xf1)])return this[_0x1871c7(0x15b)];const _0x1ce0cb=await _0xb78578[_0x1871c7(0x126)](getGitMetaData);_0x1ce0cb&&(this['_gitConfigPath']=_0x1ce0cb[_0x1871c7(0x10f)]),this[_0x1871c7(0xf1)]=!![];}}module[a119_0x3a3431(0x100)]=o11yClassErrorHandler(CucumberUtils,['configureGit',a119_0x3a3431(0x107),a119_0x3a3431(0x176),a119_0x3a3431(0x173),a119_0x3a3431(0x15a),a119_0x3a3431(0x16f),a119_0x3a3431(0x11d),a119_0x3a3431(0xfe)]);
|
|
1
|
+
function a119_0x5bf0(){const _0x564b30=['failed','YvyWp','getHookRunEventData','YrXwY','NgcfG','muahe','5074808bJopoD','_gitConfigured','emvwQ','sendTestRunEventForCucumber','../../../helpers/helper.js','testStepResult','OCeMj','RCnwO','KNNdr','119839DLLJaX','pdGdJ','finishedAt','flatMap','GHSwt','scenario','hook','KDTIA','BEFORE_EACH','message','vvawn','getTestUUID','feature','exception','tagExpression','failure','../../../helpers/logger.js','WgxJE','OXfvq','hooks','astNodeIds','tWwCo','pkoRp','eJbrG','LcUuz','backtrace','exports','VehjP','ptuPq','eHTjj','1285628mAdLpe','every','testCaseFinished','eJAtS','CqORl','examples','forEach','HookRunStarted','FAILED','getHookResult','sourceReference','IZBIL','finished_at','javascript','CZlEX','pending','sendHook','xVRFG','NMUlu','NxahB','SKIPPED','length','../TestInfo.js','split','tableBody','Habxb','result','AgCUi','FiOLt','150836ZfoTWf','failureType','uuid','AssertionError','ViZnl','duration_in_ms','1407035mWanTI','createHookData','winstonLogger','format','XPGOc','cells','push','_gitConfigPath','xEjhD','util','lwDfZ','dtYCB','includes','failure_type','map','status','uri','getScenarioExamples','unknown','qerHD','failureData','debug','rule','toLowerCase','dtMML','configureGit','timestamp','IPmol','174UXhfpo','match','find','path','skipped','16216UVMhgr','children','lXKja','toString','test','filter','aucjM','getCucumberHookType','UnhandledError','2538834doAKNz','9dDJrRb','name','testStepFinished','hookId','tags','toISOString','zUxVI','nanos','VVxGA','relative','pickleStepId','cucumber','createTestFrameworkData','cWUnw','jgSEF','value'];a119_0x5bf0=function(){return _0x564b30;};return a119_0x5bf0();}const a119_0x5bd6c7=a119_0x15b4;(function(_0xc5a199,_0x1b6077){const _0x425e1d=a119_0x15b4,_0x5ef48c=_0xc5a199();while(!![]){try{const _0x513fec=parseInt(_0x425e1d(0x193))/0x1+parseInt(_0x425e1d(0x1b1))/0x2+parseInt(_0x425e1d(0x1fe))/0x3+-parseInt(_0x425e1d(0x215))/0x4+-parseInt(_0x425e1d(0x1d4))/0x5+-parseInt(_0x425e1d(0x1f0))/0x6*(-parseInt(_0x425e1d(0x1ce))/0x7)+parseInt(_0x425e1d(0x1f5))/0x8*(parseInt(_0x425e1d(0x1ff))/0x9);if(_0x513fec===_0x1b6077)break;else _0x5ef48c['push'](_0x5ef48c['shift']());}catch(_0x18bd87){_0x5ef48c['push'](_0x5ef48c['shift']());}}}(a119_0x5bf0,0xa76ad));function a119_0x15b4(_0x548d63,_0xd0053b){const _0x5bf002=a119_0x5bf0();return a119_0x15b4=function(_0x15b4f0,_0x3e4d04){_0x15b4f0=_0x15b4f0-0x192;let _0x5c8c87=_0x5bf002[_0x15b4f0];return _0x5c8c87;},a119_0x15b4(_0x548d63,_0xd0053b);}const path=require(a119_0x5bd6c7(0x1f3)),util=require(a119_0x5bd6c7(0x1dd)),{getGitMetaData,isUndefined,nestedKeyValue,deriveCucumberHookName,isSdkSetupHook}=require(a119_0x5bd6c7(0x219)),logger=require(a119_0x5bd6c7(0x1a3))[a119_0x5bd6c7(0x1d6)],{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler.js'),TestInfo=require(a119_0x5bd6c7(0x1c7)),hooksMap={};class CucumberUtils{constructor(){const _0x34cbca=a119_0x5bd6c7;this[_0x34cbca(0x216)]=![],this['_gitConfigPath']=null;}async[a119_0x5bd6c7(0x20b)](_0x1083c7,_0x53aa80,_0x2216a8,_0x4cac89,_0x5e2b4c,_0x541833){const _0x3e76b9=a119_0x5bd6c7,_0x56b790={'LuCeQ':function(_0x36e96f,_0xb4a4e5){return _0x36e96f===_0xb4a4e5;},'KwcRn':_0x3e76b9(0x1b9),'RCnwO':_0x3e76b9(0x20f),'eJAtS':function(_0x475f29,_0x40b81f){return _0x475f29===_0x40b81f;},'IhelW':_0x3e76b9(0x1c5),'ViZnl':_0x3e76b9(0x1f4),'tWwCo':function(_0x5a4f80,_0x106b04){return _0x5a4f80||_0x106b04;},'aucjM':function(_0x5275f8,_0x3fe82c){return _0x5275f8+_0x3fe82c;},'pdGdJ':function(_0x574142,_0x5ec188){return _0x574142+_0x5ec188;},'WgxJE':_0x3e76b9(0x1f9),'AgCUi':_0x3e76b9(0x1be),'KNNdr':_0x3e76b9(0x20a),'Habxb':_0x3e76b9(0x1c0),'LcUuz':'passed','emvwQ':function(_0xaec6dc,_0x4e0b00){return _0xaec6dc!==_0x4e0b00;},'YvyWp':function(_0x3cb946,_0x4b51c5){return _0x3cb946/_0x4b51c5;},'EHxHB':function(_0x3fd132,_0x1e1335){return _0x3fd132===_0x1e1335;},'FiOLt':'strip-ansi','GHSwt':function(_0x355162,_0x264af6){return _0x355162(_0x264af6);},'CZlEX':_0x3e76b9(0x1e6),'NyEyo':_0x3e76b9(0x1d1),'efHlj':'UnhandledError'},{feature:_0x30a8c9,scenario:_0x2c964e,steps:_0x27dc0f,uuid:_0x48e2af,startedAt:_0x2d0053,finishedAt:_0x3ffad9}=_0x56b790[_0x3e76b9(0x1a8)](_0x1083c7,{}),_0xdf9ac3=this[_0x3e76b9(0x1e5)](_0x4cac89,_0x53aa80);await this[_0x3e76b9(0x1ed)]();const _0x2f7947=_0xdf9ac3?_0x56b790[_0x3e76b9(0x1fb)](_0x56b790[_0x3e76b9(0x1fb)](_0x56b790[_0x3e76b9(0x194)](_0x53aa80[_0x3e76b9(0x200)],'\x20('),_0xdf9ac3['join'](',\x20')),')'):_0x53aa80[_0x3e76b9(0x200)],_0x318b12={'id':_0x5e2b4c,'uuid':_0x5e2b4c,'startedAt':_0x2d0053,'finishedAt':_0x3ffad9,'type':_0x56b790[_0x3e76b9(0x1a4)],'body':{'lang':_0x56b790[_0x3e76b9(0x1cc)],'code':null},'name':_0x2f7947,'scopes':[_0x30a8c9&&_0x30a8c9[_0x3e76b9(0x200)]?_0x30a8c9['name']:''],'tags':_0x53aa80[_0x3e76b9(0x203)]?_0x53aa80[_0x3e76b9(0x203)][_0x3e76b9(0x1e2)](({name:_0x4984ad})=>_0x4984ad):[],'file_name':_0x53aa80['uri'],'location':_0x53aa80[_0x3e76b9(0x1e4)],'vc_filepath':this[_0x3e76b9(0x1db)]&&_0x53aa80['uri']?path[_0x3e76b9(0x208)](this['_gitConfigPath'],_0x53aa80[_0x3e76b9(0x1e4)]):null,'framework':_0x56b790[_0x3e76b9(0x192)],'result':_0x56b790[_0x3e76b9(0x1ca)],'meta':{'feature':_0x30a8c9,'scenario':_0x2c964e,'steps':_0x27dc0f,'examples':_0xdf9ac3},'customRerunParam':{'rerun_name':_0x2f7947}};if(_0x2216a8[_0x3e76b9(0x1b3)]&&_0x27dc0f){const _0x4a353c=_0x2216a8[_0x3e76b9(0x1b3)];let _0x26a127=_0x56b790[_0x3e76b9(0x1ab)];_0x27dc0f[_0x3e76b9(0x1b2)](_0xb2db1a=>{const _0x41dda1=_0x3e76b9;if(_0x56b790['LuCeQ'](_0xb2db1a[_0x41dda1(0x1cb)],_0x56b790['KwcRn']))return _0x26a127=_0x56b790['RCnwO'],_0x4a353c[_0x41dda1(0x1a2)]=_0xb2db1a[_0x41dda1(0x1a2)],_0x4a353c[_0x41dda1(0x1cf)]=_0xb2db1a[_0x41dda1(0x1cf)],![];else{if(_0x56b790[_0x41dda1(0x1b4)](_0xb2db1a[_0x41dda1(0x1cb)],_0x56b790['IhelW']))return _0x26a127=_0x56b790[_0x41dda1(0x1d2)],![];}return!![];}),_0x318b12[_0x3e76b9(0x195)]=new Date()['toISOString'](),_0x318b12['result']=_0x26a127;_0x4a353c[_0x3e76b9(0x1ee)]&&_0x56b790[_0x3e76b9(0x217)](_0x4a353c[_0x3e76b9(0x1ee)][_0x3e76b9(0x206)],undefined)?_0x318b12['duration_in_ms']=_0x56b790[_0x3e76b9(0x210)](_0x4a353c[_0x3e76b9(0x1ee)][_0x3e76b9(0x206)],0xf4240):_0x318b12[_0x3e76b9(0x1d3)]=undefined;if(_0x56b790['EHxHB'](_0x26a127,_0x56b790[_0x3e76b9(0x21c)])){const {default:_0x4474cb}=await import(_0x56b790[_0x3e76b9(0x1cd)]);_0x318b12[_0x3e76b9(0x1a2)]=[{'backtrace':[_0x4a353c['failure']?_0x56b790[_0x3e76b9(0x197)](_0x4474cb,_0x4a353c[_0x3e76b9(0x1a2)]):_0x56b790[_0x3e76b9(0x1bf)]]}],_0x318b12['failure_reason']=_0x4a353c[_0x3e76b9(0x1a2)]?_0x56b790['GHSwt'](_0x4474cb,_0x4a353c['failure']):_0x4a353c['message'],_0x4a353c[_0x3e76b9(0x1cf)]&&(_0x318b12['failure_type']=_0x4a353c[_0x3e76b9(0x1cf)][_0x3e76b9(0x1f1)](/AssertError/)?_0x56b790['NyEyo']:_0x56b790['efHlj']);}}return _0x318b12;}['getHookRunEventData'](_0x39b0b1,_0xb097cc,_0x3c6762,_0x3a2e72,_0x65f406,_0xbca526){const _0x14587f=a119_0x5bd6c7,_0x1701f5={'XAbjY':function(_0x5a7cab,_0x1bd2da){return _0x5a7cab===_0x1bd2da;},'dtYCB':'HookRunFinished','pJteu':function(_0x3e0e17,_0x1c2e5f,_0x5d1f2d){return _0x3e0e17(_0x1c2e5f,_0x5d1f2d);},'muahe':'sourceReference','eHTjj':_0x14587f(0x1e4),'NMUlu':_0x14587f(0x1c0),'dtMML':_0x14587f(0x199),'VehjP':function(_0x44df51,_0x54822f,_0x3eb568,_0x318139){return _0x44df51(_0x54822f,_0x3eb568,_0x318139);},'cWUnw':function(_0x17357c,_0x520caf,_0x1b9957){return _0x17357c(_0x520caf,_0x1b9957);},'xVRFG':_0x14587f(0x198),'YrXwY':'name','dgWBK':_0x14587f(0x1be),'IZBIL':'feature','NxahB':function(_0x7476b,_0x54e053,_0x58300f){return _0x7476b(_0x54e053,_0x58300f);},'jWhCo':'cucumber'};try{if(_0x1701f5['XAbjY'](_0x3c6762,_0x1701f5[_0x14587f(0x1df)])){const _0x3967d4=new Date()['toISOString'](),_0x42abaa=hooksMap[_0xb097cc];if(!_0x42abaa)return;const _0xf2691c=_0x42abaa['find'](_0x3f2579=>_0x3f2579[_0x14587f(0x1d0)]===_0x3a2e72['id']);if(!_0xf2691c)return;const _0x199ee4=this[_0x14587f(0x1ba)](_0x39b0b1,_0xb097cc);_0xf2691c[_0x14587f(0x1cb)]=_0x199ee4[_0x14587f(0x1e3)],_0xf2691c[_0x14587f(0x1bd)]=_0x3967d4,_0xf2691c[_0x14587f(0x1e1)]=_0x199ee4[_0x14587f(0x1cf)];const _0x513492={};return _0x513492[_0x14587f(0x1ac)]=_0x199ee4[_0x14587f(0x1e8)],_0xf2691c['failure_data']=[_0x513492],_0xf2691c;}const _0x2627e2=TestInfo[_0x14587f(0x19e)](_0xb097cc),_0x1723cf=_0x39b0b1[_0x14587f(0x1a6)][_0x14587f(0x1f2)](_0x1c39c8=>_0x1c39c8['id']===_0x3a2e72[_0x14587f(0x202)]),_0x3df3d4=_0x1701f5['pJteu'](nestedKeyValue,_0x1723cf,[_0x1701f5[_0x14587f(0x214)],_0x1701f5[_0x14587f(0x1b0)]]),_0x2cf584=new Date()[_0x14587f(0x204)](),_0xa7e0cf=_0x1701f5[_0x14587f(0x1c3)],_0x4207b5=_0x1723cf[_0x14587f(0x1a1)]?_0x1723cf['tagExpression'][_0x14587f(0x1c8)]('\x20')[_0x14587f(0x1fa)](_0x4426fb=>_0x4426fb[_0x14587f(0x1e0)]('@')):[],_0x2a467c={'uuid':_0x3a2e72['id'],'type':_0x1701f5[_0x14587f(0x1ec)],'hook_type':_0xbca526,'name':_0x1701f5[_0x14587f(0x1ae)](deriveCucumberHookName,_0x1723cf[_0x14587f(0x200)],_0xbca526,_0x1701f5[_0x14587f(0x20c)](nestedKeyValue,_0x65f406,[_0x1701f5[_0x14587f(0x1c2)],_0x1701f5[_0x14587f(0x212)]])),'body':{'lang':_0x1701f5['dgWBK'],'code':null},'tags':_0x4207b5,'test_run_id':_0x2627e2,'scope':_0x1701f5[_0x14587f(0x20c)](nestedKeyValue,_0x65f406,[_0x1701f5[_0x14587f(0x1bc)],_0x1701f5[_0x14587f(0x212)]]),'scopes':[_0x1701f5[_0x14587f(0x1c4)](nestedKeyValue,_0x65f406,[_0x1701f5[_0x14587f(0x1bc)],_0x1701f5[_0x14587f(0x212)]])||''],'file_name':_0x3df3d4,'location':_0x3df3d4,'vc_filepath':this[_0x14587f(0x1db)]&&_0x3df3d4?path[_0x14587f(0x208)](this[_0x14587f(0x1db)],_0x3df3d4):null,'result':_0xa7e0cf,'started_at':_0x2cf584,'framework':_0x1701f5['jWhCo']};return _0x2a467c;}catch(_0x25499f){logger[_0x14587f(0x1e9)]('Exception\x20in\x20getHookRunEventData:\x20'+util[_0x14587f(0x1d7)](_0x25499f)+'\x20');}}async[a119_0x5bd6c7(0x1d5)](_0x1d429a,_0x2fd43b,_0x41f66f,_0x13844b,_0x2313ae,_0x4d6b10){const _0x13bc93=a119_0x5bd6c7,_0x405aa8={'ptuPq':function(_0x436191,_0x1792cf){return _0x436191===_0x1792cf;},'pkoRp':_0x13bc93(0x1b8),'IPmol':function(_0x56db49,_0x12ac8c,_0x1335b1){return _0x56db49(_0x12ac8c,_0x1335b1);},'XPGOc':_0x13bc93(0x1bb),'xEjhD':_0x13bc93(0x1e4)};try{const _0x284491=_0x13844b[_0x13bc93(0x1f2)](_0x470844=>_0x470844['id']===_0x2313ae);if(!_0x284491['hookId'])return;const _0x32d8ef=this['getCucumberHookType'](_0x13844b,_0x284491),_0x482a14=this[_0x13bc93(0x211)](_0x1d429a,_0x2fd43b,_0x41f66f,_0x284491,_0x4d6b10,_0x32d8ef);if(!_0x482a14)return;_0x405aa8[_0x13bc93(0x1af)](_0x41f66f,_0x405aa8[_0x13bc93(0x1a9)])&&(hooksMap[_0x2fd43b]?hooksMap[_0x2fd43b][_0x13bc93(0x1da)](_0x482a14):hooksMap[_0x2fd43b]=[_0x482a14]);const _0x58dd48=_0x1d429a[_0x13bc93(0x1a6)][_0x13bc93(0x1f2)](_0x2cf3fc=>_0x2cf3fc['id']===_0x284491[_0x13bc93(0x202)]),_0x13277e=_0x405aa8[_0x13bc93(0x1ef)](nestedKeyValue,_0x58dd48,[_0x405aa8[_0x13bc93(0x1d8)],_0x405aa8[_0x13bc93(0x1dc)]]);if(!_0x13277e)return;else{if(_0x405aa8[_0x13bc93(0x1ef)](isSdkSetupHook,_0x13277e,_0x482a14[_0x13bc93(0x200)]))return;}return _0x482a14;}catch(_0x3e23b8){logger['debug']('Exception\x20in\x20createHookData:\x20'+util['format'](_0x3e23b8)+'\x20');}}['getHookResult'](_0x5e35de,_0x127625){const _0x37b3fa=a119_0x5bd6c7,_0x2fa36a={};_0x2fa36a[_0x37b3fa(0x20d)]=function(_0x590ebe,_0x42ab48){return _0x590ebe===_0x42ab48;},_0x2fa36a[_0x37b3fa(0x205)]=_0x37b3fa(0x20f),_0x2fa36a[_0x37b3fa(0x21b)]=function(_0x346833,_0x1d0693){return _0x346833===_0x1d0693;},_0x2fa36a[_0x37b3fa(0x19a)]=function(_0xfe014b,_0x109513){return _0xfe014b===_0x109513;},_0x2fa36a[_0x37b3fa(0x1e7)]=_0x37b3fa(0x1fd),_0x2fa36a[_0x37b3fa(0x19d)]=_0x37b3fa(0x1d1),_0x2fa36a['eJbrG']=function(_0x3a03bb,_0x17d632){return _0x3a03bb||_0x17d632;};const _0x52bb4a=_0x2fa36a,_0x3f2602=_0x5e35de[_0x37b3fa(0x201)][_0x127625][_0x37b3fa(0x21a)];let _0x332121,_0x23e57b;return _0x3f2602&&_0x52bb4a[_0x37b3fa(0x20d)](_0x3f2602[_0x37b3fa(0x1e3)][_0x37b3fa(0x1f8)]()['toLowerCase'](),_0x52bb4a['zUxVI'])&&(_0x332121=_0x52bb4a[_0x37b3fa(0x21b)](_0x3f2602['exception'],undefined)?_0x3f2602[_0x37b3fa(0x19c)]:_0x3f2602[_0x37b3fa(0x1a0)][_0x37b3fa(0x19c)],_0x23e57b=_0x52bb4a[_0x37b3fa(0x19a)](_0x3f2602['exception'],undefined)?_0x52bb4a['qerHD']:_0x3f2602[_0x37b3fa(0x19c)][_0x37b3fa(0x1f1)](/Assert/)?_0x52bb4a['vvawn']:_0x52bb4a['qerHD']),{'status':_0x3f2602[_0x37b3fa(0x1e3)][_0x37b3fa(0x1eb)](),'failureType':_0x52bb4a[_0x37b3fa(0x1aa)](_0x23e57b,null),'failureData':!_0x332121?null:[_0x332121]};}[a119_0x5bd6c7(0x1fc)](_0x8b07c7,_0x5b7cd5){const _0x3660a4=a119_0x5bd6c7,_0x5e623f={};_0x5e623f[_0x3660a4(0x213)]=function(_0x199b6d,_0x276af1){return _0x199b6d===_0x276af1;},_0x5e623f[_0x3660a4(0x1f7)]='AFTER_EACH',_0x5e623f[_0x3660a4(0x1b5)]=_0x3660a4(0x19b);const _0x3eef13=_0x5e623f;let _0x3a7f2f=![];for(const _0x2e9a7d of _0x8b07c7){_0x2e9a7d[_0x3660a4(0x209)]&&(_0x3a7f2f=!![]);if(_0x3eef13[_0x3660a4(0x213)](_0x5b7cd5['id'],_0x2e9a7d['id']))return _0x3a7f2f?_0x3eef13['lXKja']:_0x3eef13[_0x3660a4(0x1b5)];}}['getScenarioExamples']=(_0x536274,_0x84a86e)=>{const _0x57d487=a119_0x5bd6c7,_0x2ae46e={};_0x2ae46e[_0x57d487(0x1a5)]=function(_0x23261e,_0x5b3694){return _0x23261e===_0x5b3694;},_0x2ae46e[_0x57d487(0x1de)]=function(_0x2fad63,_0x3b7e94){return _0x2fad63===_0x3b7e94;},_0x2ae46e[_0x57d487(0x207)]=function(_0x5b0c74,_0x4a2739){return _0x5b0c74>_0x4a2739;};const _0x148f8d=_0x2ae46e;if(!(_0x84a86e[_0x57d487(0x1a7)]&&_0x148f8d[_0x57d487(0x207)](_0x84a86e[_0x57d487(0x1a7)][_0x57d487(0x1c6)],0x1)))return;const _0x3c44d9=_0x84a86e[_0x57d487(0x1a7)][0x0],_0x3801fb=_0x84a86e[_0x57d487(0x1a7)][0x1],_0x20b14f=_0x536274[_0x57d487(0x19f)]&&_0x536274[_0x57d487(0x19f)]['children']?_0x536274[_0x57d487(0x19f)][_0x57d487(0x1f6)]:undefined;let _0xf2a3ad=[];_0x20b14f&&_0x20b14f[_0x57d487(0x1b7)](_0x53d3f8=>{const _0x45b7d7=_0x57d487;if(_0x53d3f8[_0x45b7d7(0x1ea)])_0x53d3f8[_0x45b7d7(0x1ea)][_0x45b7d7(0x1f6)][_0x45b7d7(0x1b7)](_0x3f0c04=>{const _0x2dff17=_0x45b7d7;if(_0x3f0c04[_0x2dff17(0x198)]&&_0x148f8d[_0x2dff17(0x1a5)](_0x3f0c04['scenario']['id'],_0x3c44d9)&&_0x3f0c04['scenario']['examples']){const _0x38436f=_0x3f0c04[_0x2dff17(0x198)][_0x2dff17(0x1b6)][_0x2dff17(0x196)](_0x326363=>_0x326363[_0x2dff17(0x1c9)])[_0x2dff17(0x1f2)](_0x556130=>_0x556130['id']===_0x3801fb);let _0x1d3f23;_0x38436f&&_0x38436f['cells']?_0x1d3f23=_0x38436f[_0x2dff17(0x1d9)][_0x2dff17(0x1e2)](_0x509bea=>_0x509bea[_0x2dff17(0x20e)]):_0x1d3f23=[],_0x1d3f23&&(_0xf2a3ad=_0x1d3f23);}});else{if(_0x53d3f8[_0x45b7d7(0x198)]&&_0x148f8d[_0x45b7d7(0x1de)](_0x53d3f8['scenario']['id'],_0x3c44d9)&&_0x53d3f8[_0x45b7d7(0x198)][_0x45b7d7(0x1b6)]){const _0xf20440=_0x53d3f8[_0x45b7d7(0x198)][_0x45b7d7(0x1b6)][_0x45b7d7(0x196)](_0x370923=>_0x370923[_0x45b7d7(0x1c9)])[_0x45b7d7(0x1f2)](_0x5e8b1c=>_0x5e8b1c['id']===_0x3801fb);let _0x372da4;_0xf20440&&_0xf20440[_0x45b7d7(0x1d9)]?_0x372da4=_0xf20440[_0x45b7d7(0x1d9)][_0x45b7d7(0x1e2)](_0x43f901=>_0x43f901[_0x45b7d7(0x20e)]):_0x372da4=[],_0x372da4&&(_0xf2a3ad=_0x372da4);}}});if(_0xf2a3ad[_0x57d487(0x1c6)])return _0xf2a3ad;return;};async[a119_0x5bd6c7(0x1ed)](){const _0x203b34=a119_0x5bd6c7,_0x2c9a59={'sAdMz':function(_0x1e5d8c){return _0x1e5d8c();}};if(this['_gitConfigured'])return this[_0x203b34(0x1db)];const _0x180f4f=await _0x2c9a59['sAdMz'](getGitMetaData);_0x180f4f&&(this[_0x203b34(0x1db)]=_0x180f4f['root']),this[_0x203b34(0x216)]=!![];}}module[a119_0x5bd6c7(0x1ad)]=o11yClassErrorHandler(CucumberUtils,['configureGit','getScenarioExamples',a119_0x5bd6c7(0x1fc),a119_0x5bd6c7(0x1ba),a119_0x5bd6c7(0x1c1),a119_0x5bd6c7(0x211),a119_0x5bd6c7(0x218),a119_0x5bd6c7(0x20b)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a120_0x1886e5=a120_0x4d1d;(function(_0x3bbe37,_0x1d78be){const _0xe86dc2=a120_0x4d1d,_0x4f1a1f=_0x3bbe37();while(!![]){try{const _0x77d3a7=-parseInt(_0xe86dc2(0x23a))/0x1+-parseInt(_0xe86dc2(0x24c))/0x2+parseInt(_0xe86dc2(0x1f6))/0x3+-parseInt(_0xe86dc2(0x271))/0x4+-parseInt(_0xe86dc2(0x206))/0x5+parseInt(_0xe86dc2(0x25c))/0x6*(parseInt(_0xe86dc2(0x242))/0x7)+parseInt(_0xe86dc2(0x1dd))/0x8*(parseInt(_0xe86dc2(0x21a))/0x9);if(_0x77d3a7===_0x1d78be)break;else _0x4f1a1f['push'](_0x4f1a1f['shift']());}catch(_0x1da47d){_0x4f1a1f['push'](_0x4f1a1f['shift']());}}}(a120_0x36b0,0x4bb82));const path=require('path'),util=require('util'),crypto=require(a120_0x1886e5(0x1ef)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a120_0x1886e5(0x268)),logger=require(a120_0x1886e5(0x229))[a120_0x1886e5(0x1e9)],{o11yClassErrorHandler}=require(a120_0x1886e5(0x21b)),TestInfo=require(a120_0x1886e5(0x235)),{failureData,getFailureType,PathHelper}=require(a120_0x1886e5(0x1e1)),stackTrace=require(a120_0x1886e5(0x25d)),{pickUserFrameFile}=require('../../../helpers/stackFrameUtils'),a120_0x3ba4aa={};a120_0x3ba4aa[a120_0x1886e5(0x222)]='BEFORE_ALL',a120_0x3ba4aa[a120_0x1886e5(0x261)]=a120_0x1886e5(0x1eb),a120_0x3ba4aa[a120_0x1886e5(0x204)]=a120_0x1886e5(0x277),a120_0x3ba4aa[a120_0x1886e5(0x1ec)]=a120_0x1886e5(0x272);function a120_0x36b0(){const _0x42fc9f=['test',',\x20testRunId:\x20','Unknown\x20Test','failure_backtrace','isJestInternalHook','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','configureGit','result','Exception\x20in\x20createHookData:\x20','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','digest','getTime','toString','skipped','started_at','failure_data','YPgjd','includes','HookRunStarted','expect','104bEijqB','getHierarchy','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier','testIdentifier','../../../helpers/test-observability/utils','DjqDZ','File\x20path\x20could\x20not\x20be\x20found','match','createHookData','getRootParentFile','JmpbU','asyncError','winstonLogger','sjOaZ','AFTER_ALL','afterEach','[jestUtils]\x20Created\x20identifier:\x20','reverse','crypto','zGBOi','pending','getHookRunEventData','\x22\x20hook\x20for\x20\x22','relative','\x20from\x20compositeKey:\x20','1104054jzaDZG','uuid','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation','DXKdW','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','getFileName','_gitConfigPath','SjOTa','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','YRQEo','format','iijHt','now','mvRao','beforeEach','HqaPk','1499025yMQWMs','[jestUtils]\x20Error\x20creating\x20identifier:\x20','debug','getTestIdentifier','update','GlLig','failure_reason_expanded','hooks','failure','wdBuk','vrhod','nNWGR','VyNvG','kyEVa','QFpWB','clearHooksMap','pREOC','xGUOP','createJestTestIdentifier','ROOT_DESCRIBE_BLOCK','767124QYBHfA','../../../helpers/test-observability/error-handler.js','unknown','urNWt','getName','createHash','hQgzm','file','beforeAll',':jest-','startedAt','md5','finishedAt','xjdrg','PszSU','../../../helpers/logger.js','fullName','getState','Vduxr','browserstack-node-agent/src/bin/jest','retryOf','toISOString','HookRunFinished','PsxBF','finished_at','AczIq','name','../TestInfo.js','duration','createIdentifierFromJestTest','TestRunFinished','ueqbV','284185JjHEdK','OXuJL','rsfwy','[jestUtils]\x20pickUserFrameFile\x20found\x20no\x20user\x20frame\x20(trace\x20length=','recreateIdentifierFromTestInfo','bERgW','errors','eDGAe','52913GsCjaY','zJjYM','LSuyq','apply','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','testPath','hook','expanded','extractTestFilePath','NuIIZ','313134oSrcwg','UYAOo','parent','evdFF','title','errorsDetailed','YRSOn',',\x20hookUUID:\x20','_paths','backtrace','call','parse','tBTkJ','passed','inspect','currentTest','84CdngFm','stack-trace','lgpll','__jestCurrentTestIdentifier',',\x20testIdentifier:\x20','afterAll','jest-circus','btjcf','stack','nZPYJ','_gitConfigured','GRvxB','../../../helpers/helper.js','lOJeX','NaIGR','XCqQl','hex','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','displayName','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','SPbBj','2124836XjZcYs','AFTER_EACH','dGAqV','NUpGu','type','failed','BEFORE_EACH','split','TestRunSkipped','length','KNNvU','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','aIlqP','upiKe','javascript','IQeoh','root','createTestFrameworkData'];a120_0x36b0=function(){return _0x42fc9f;};return a120_0x36b0();}const HOOK_TYPES_MAP=a120_0x3ba4aa,hooksMap={};function a120_0x4d1d(_0x2ccd5f,_0x20d60f){const _0x36b0e5=a120_0x36b0();return a120_0x4d1d=function(_0x4d1dab,_0x599518){_0x4d1dab=_0x4d1dab-0x1be;let _0x38d898=_0x36b0e5[_0x4d1dab];return _0x38d898;},a120_0x4d1d(_0x2ccd5f,_0x20d60f);}class JestUtils{constructor(){const _0x199acc=a120_0x1886e5;this[_0x199acc(0x266)]=![],this[_0x199acc(0x1fc)]=null,this[_0x199acc(0x254)]=new PathHelper({'cwd':process['cwd']()},undefined);}async[a120_0x1886e5(0x1c8)](_0x50edfd,_0xd9883f,_0x3024ef=a120_0x1886e5(0x238),_0x1daf6a=undefined){const _0x395fb0=a120_0x1886e5,_0x3a88d5={'xGUOP':_0x395fb0(0x1c2),'iijHt':_0x395fb0(0x262),'NuIIZ':_0x395fb0(0x1e3),'DXKdW':function(_0x20b8a7,_0x461026){return _0x20b8a7!==_0x461026;},'lgpll':'test','upiKe':'err','QFpWB':function(_0x5206aa,_0x1abbbd){return _0x5206aa!==_0x1abbbd;},'vrhod':function(_0x2a0b50,_0x39bc6d){return _0x2a0b50!==_0x39bc6d;},'ptjMT':'pending','PsxBF':function(_0x1406ba,_0x4e4855){return _0x1406ba===_0x4e4855;},'lOJeX':_0x395fb0(0x1bf),'NaIGR':_0x395fb0(0x1d6),'jNgAW':function(_0x35fc03,_0x9683ea){return _0x35fc03===_0x9683ea;},'LSuyq':_0x395fb0(0x238),'XCqQl':function(_0x2a8649,_0xb9a0a5){return _0x2a8649>_0xb9a0a5;},'eDGAe':_0x395fb0(0x276),'sjOaZ':_0x395fb0(0x259),'nNWGR':function(_0x1226d3,_0x311cd6){return _0x1226d3!==_0x311cd6;},'zGBOi':function(_0x4d0185,_0x360490){return _0x4d0185-_0x360490;},'kyEVa':'javascript','DuHDV':'jest','VyNvG':function(_0x374492,_0x5c3c8c){return _0x374492(_0x5c3c8c);},'evdFF':function(_0x170525,_0x5a3aea){return _0x170525===_0x5a3aea;},'GXwSw':function(_0x4a43ac,_0x53ac08){return _0x4a43ac===_0x53ac08;}};logger[_0x395fb0(0x208)]('Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20'+_0x3024ef+_0x395fb0(0x260)+_0xd9883f);try{if(!_0x50edfd)return logger[_0x395fb0(0x208)](_0x3a88d5[_0x395fb0(0x217)]),null;if(_0x50edfd['fn']&&_0x50edfd['fn'][_0x395fb0(0x1d5)]()[_0x395fb0(0x1e4)](/browserstack internal helper hook/))return null;await this[_0x395fb0(0x1cf)]();let _0x1a4385;try{_0x1a4385=this['getRootParentFile'](_0x50edfd);if(_0x1a4385&&_0x1a4385[_0x395fb0(0x1da)](_0x3a88d5[_0x395fb0(0x201)]))return null;}catch(_0x29ff1f){logger[_0x395fb0(0x208)](_0x395fb0(0x26f)+util[_0x395fb0(0x200)](_0x29ff1f)),_0x1a4385=null;}const _0x311c0c=this[_0x395fb0(0x1de)](_0x50edfd),_0xa828e8=this[_0x395fb0(0x21e)](_0x50edfd),_0x18882e=_0x1a4385?this[_0x395fb0(0x254)]['prefixTestPath'](_0x1a4385):_0x3a88d5[_0x395fb0(0x24b)];let _0x23e4ec=[];const _0x4a63a5=_0x50edfd['errorsDetailed']||_0x50edfd[_0x395fb0(0x240)];if(_0x3a88d5[_0x395fb0(0x1f9)](_0x4a63a5,undefined))_0x23e4ec=[_0x4a63a5,_0x3a88d5[_0x395fb0(0x25e)]];else _0x3a88d5['DXKdW'](_0x1daf6a,undefined)&&(_0x23e4ec=[_0x1daf6a,_0x3a88d5[_0x395fb0(0x1c4)]]);const _0x42a29e=_0x3a88d5[_0x395fb0(0x214)](_0x4a63a5,undefined)?util[_0x395fb0(0x25a)](_0x4a63a5[0x0]):_0x3a88d5[_0x395fb0(0x210)](_0x1daf6a,undefined)?_0x1daf6a[_0x395fb0(0x1d5)]():undefined;let _0x107414=_0x3a88d5['ptjMT'];if(_0x3a88d5['PsxBF'](_0x3024ef,_0x3a88d5['lOJeX']))_0x107414=_0x3a88d5[_0x395fb0(0x26a)];else _0x3a88d5['jNgAW'](_0x3024ef,_0x3a88d5[_0x395fb0(0x244)])&&(_0x4a63a5&&_0x3a88d5[_0x395fb0(0x26b)](_0x4a63a5[_0x395fb0(0x1c0)],0x0)?_0x107414=_0x3a88d5[_0x395fb0(0x241)]:_0x107414=_0x3a88d5[_0x395fb0(0x1ea)]);let _0x4a0cdf=null;if(_0x3a88d5[_0x395fb0(0x211)](_0x50edfd[_0x395fb0(0x236)],undefined))_0x4a0cdf=_0x50edfd[_0x395fb0(0x236)];else(_0x3024ef['match'](/Finished/)||_0x3024ef[_0x395fb0(0x1e4)](/Skipped/))&&(_0x50edfd[_0x395fb0(0x1d7)]&&(_0x4a0cdf=_0x3a88d5[_0x395fb0(0x1f0)](Date[_0x395fb0(0x202)](),new Date(_0x50edfd['started_at'])[_0x395fb0(0x1d4)]())));const _0x267655=_0x50edfd['fn']?_0x50edfd['fn']['toString']():null,_0x4aba8c={'id':_0xd9883f,'uuid':_0xd9883f,'startedAt':_0x50edfd[_0x395fb0(0x1d7)]||new Date()[_0x395fb0(0x22f)](),'finishedAt':_0x3024ef[_0x395fb0(0x1e4)](/Finished/)||_0x3024ef['match'](/Skipped/)?new Date()[_0x395fb0(0x22f)]():null,'type':_0x3a88d5[_0x395fb0(0x25e)],'body':{'lang':_0x3a88d5[_0x395fb0(0x213)],'code':_0x267655},'name':_0xa828e8,'errorsDetailed':_0x3a88d5[_0x395fb0(0x26b)](_0x4a63a5?.['length'],0x0)?_0x4a63a5[0x0]:_0x4a63a5?_0x4a63a5:undefined,'scopes':_0x311c0c,'file_name':_0x18882e,'location':_0x18882e,'vc_filepath':this[_0x395fb0(0x1fc)]&&_0x1a4385?path[_0x395fb0(0x1f4)](this[_0x395fb0(0x1fc)],_0x1a4385):null,'framework':_0x3a88d5['DuHDV'],'result':_0x107414,'failure_reason':_0x42a29e,'duration_in_ms':_0x4a0cdf,'failure':failureData[_0x395fb0(0x245)](null,_0x23e4ec),'failure_type':!_0x42a29e?null:_0x3a88d5[_0x395fb0(0x212)](getFailureType,_0x42a29e),'retry_of':_0x50edfd[_0x395fb0(0x22e)]||null,'customRerunParam':{'rerun_name':_0xa828e8}};_0x3a88d5[_0x395fb0(0x24f)](_0x3024ef,_0x3a88d5[_0x395fb0(0x269)])&&!_0x4aba8c[_0x395fb0(0x224)]&&(_0x4aba8c[_0x395fb0(0x224)]=_0x4aba8c[_0x395fb0(0x226)]);const _0x2df6ba=_0x4aba8c[_0x395fb0(0x20e)]&&_0x4aba8c[_0x395fb0(0x20e)][0x0];return _0x2df6ba&&(_0x4aba8c[_0x395fb0(0x1cc)]=_0x2df6ba[_0x395fb0(0x255)],_0x4aba8c[_0x395fb0(0x20c)]=_0x2df6ba[_0x395fb0(0x249)]),(_0x3a88d5['GXwSw'](_0x3024ef,_0x3a88d5[_0x395fb0(0x244)])||_0x3a88d5[_0x395fb0(0x231)](_0x3024ef,_0x3a88d5[_0x395fb0(0x269)]))&&(_0x50edfd[_0x395fb0(0x20d)]&&(_0x4aba8c[_0x395fb0(0x20d)]=_0x50edfd[_0x395fb0(0x20d)])),_0x4aba8c;}catch(_0x34545d){return logger['debug']('Exception\x20in\x20createTestFrameworkData:\x20'+util[_0x395fb0(0x200)](_0x34545d)),null;}}async[a120_0x1886e5(0x1e5)](_0x338abb,_0x4e45e0,_0xb53716,_0x34012d){const _0x54d0f3=a120_0x1886e5,_0x56cd3b={'PszSU':_0x54d0f3(0x1fe),'bERgW':_0x54d0f3(0x262),'Vduxr':_0x54d0f3(0x22d),'KNNvU':_0x54d0f3(0x21c),'AczIq':_0x54d0f3(0x1f1),'UYAOo':function(_0x4304d6,_0x45a947){return _0x4304d6===_0x45a947;},'DjqDZ':_0x54d0f3(0x230),'btjcf':function(_0x1d3a5a,_0x43bb58){return _0x1d3a5a>_0x43bb58;},'hQgzm':'failed','jRJqE':function(_0x20bfdc,_0x182fde){return _0x20bfdc(_0x182fde);},'wdBuk':_0x54d0f3(0x1c9),'qjaqM':_0x54d0f3(0x259),'dGAqV':_0x54d0f3(0x248),'rOPdx':_0x54d0f3(0x1c5),'ueqbV':'jest','zJjYM':_0x54d0f3(0x1db)};logger['debug']('Creating\x20hook\x20data\x20for\x20eventType:\x20'+_0xb53716+_0x54d0f3(0x253)+_0x4e45e0+_0x54d0f3(0x1ca)+_0x34012d);try{if(!_0x338abb)return logger[_0x54d0f3(0x208)](_0x56cd3b[_0x54d0f3(0x228)]),null;if(this['isJestInternalHook'](_0x338abb))return null;await this[_0x54d0f3(0x1cf)]();let _0x16433=null;try{_0x16433=this['getRootParentFile'](_0x338abb);if(_0x16433&&_0x16433[_0x54d0f3(0x1da)](_0x56cd3b[_0x54d0f3(0x23f)]))return null;if(_0x16433&&_0x16433['includes'](_0x56cd3b[_0x54d0f3(0x22c)]))return null;}catch(_0x51971d){logger['debug'](_0x54d0f3(0x1d2)+util[_0x54d0f3(0x200)](_0x51971d));}const _0xc25c34=_0x16433?this[_0x54d0f3(0x254)]['prefixTestPath'](_0x16433):_0x16433,_0x4b1ba9=this['getName'](_0x338abb),_0x3115f4=_0x338abb[_0x54d0f3(0x275)]||_0x56cd3b[_0x54d0f3(0x1c1)],_0x543982=HOOK_TYPES_MAP[_0x3115f4]||_0x3115f4['toUpperCase'](),_0x2ab84f=_0x338abb[_0x54d0f3(0x24e)]&&_0x338abb[_0x54d0f3(0x24e)][_0x54d0f3(0x234)]?_0x338abb[_0x54d0f3(0x24e)][_0x54d0f3(0x234)]:'';let _0x3d20cd=_0x56cd3b[_0x54d0f3(0x233)],_0x5bf083=null,_0xa864b0=null,_0x251853=null,_0x3de7dd=null;_0x56cd3b[_0x54d0f3(0x24d)](_0xb53716,_0x56cd3b[_0x54d0f3(0x1e2)])&&(_0x3de7dd=new Date()[_0x54d0f3(0x22f)](),_0x338abb[_0x54d0f3(0x251)]&&_0x56cd3b[_0x54d0f3(0x263)](_0x338abb[_0x54d0f3(0x251)][_0x54d0f3(0x1c0)],0x0)?(_0x3d20cd=_0x56cd3b[_0x54d0f3(0x220)],_0xa864b0=util[_0x54d0f3(0x25a)](_0x338abb[_0x54d0f3(0x251)][0x0]),_0x5bf083=_0x56cd3b['jRJqE'](getFailureType,_0xa864b0),_0x251853=failureData[_0x54d0f3(0x245)](null,[_0x338abb[_0x54d0f3(0x251)],_0x56cd3b[_0x54d0f3(0x20f)]])):_0x3d20cd=_0x56cd3b['qjaqM']);const _0x1c4c3f={'uuid':_0x4e45e0,'type':_0x56cd3b[_0x54d0f3(0x273)],'hook_type':_0x543982,'name':_0x4b1ba9,'body':{'lang':_0x56cd3b['rOPdx'],'code':_0x338abb['fn']?_0x338abb['fn']['toString']():null},'tags':[],'test_run_id':_0x34012d,'scope':_0x2ab84f,'scopes':[_0x2ab84f],'file_name':_0xc25c34,'location':_0xc25c34,'vc_filepath':this[_0x54d0f3(0x1fc)]&&_0x16433?path[_0x54d0f3(0x1f4)](this['_gitConfigPath'],_0x16433):null,'result':_0x3d20cd,'started_at':_0x338abb[_0x54d0f3(0x1d7)]||new Date()[_0x54d0f3(0x22f)](),'finished_at':_0x3de7dd,'failure_type':_0x5bf083,'failure_reason':_0xa864b0,'failure_data':_0x251853,'framework':_0x56cd3b[_0x54d0f3(0x239)]};return _0x56cd3b[_0x54d0f3(0x24d)](_0xb53716,_0x56cd3b[_0x54d0f3(0x243)])&&(hooksMap[_0x34012d]?hooksMap[_0x34012d]['push'](_0x1c4c3f):hooksMap[_0x34012d]=[_0x1c4c3f]),_0x1c4c3f;}catch(_0x52473e){return logger[_0x54d0f3(0x208)](_0x54d0f3(0x1d1)+util['format'](_0x52473e)),null;}}[a120_0x1886e5(0x1f2)](_0x3184e6,_0x469bb7,_0x2f2799){const _0x37e67f=a120_0x1886e5,_0x30c559={'hqYCc':function(_0x5c88ab,_0x9cd417){return _0x5c88ab>_0x9cd417;},'pREOC':_0x37e67f(0x276),'NUpGu':function(_0x2565fd,_0x3380b9){return _0x2565fd(_0x3380b9);},'rsfwy':_0x37e67f(0x1c9),'SjOTa':_0x37e67f(0x259)};try{const _0x54df7f=hooksMap[_0x3184e6];if(!_0x54df7f)return null;const _0xf9172e=_0x54df7f['find'](_0x3378d6=>_0x3378d6[_0x37e67f(0x1f7)]===_0x469bb7);if(!_0xf9172e)return null;return _0xf9172e[_0x37e67f(0x232)]=new Date()[_0x37e67f(0x22f)](),_0x2f2799['errorsDetailed']&&_0x30c559['hqYCc'](_0x2f2799['errorsDetailed'][_0x37e67f(0x1c0)],0x0)?(_0xf9172e[_0x37e67f(0x1d0)]=_0x30c559[_0x37e67f(0x216)],_0xf9172e['failure_reason']=util['inspect'](_0x2f2799[_0x37e67f(0x251)][0x0]),_0xf9172e['failure_type']=_0x30c559[_0x37e67f(0x274)](getFailureType,_0xf9172e['failure_reason']),_0xf9172e[_0x37e67f(0x1d8)]=failureData[_0x37e67f(0x245)](null,[_0x2f2799[_0x37e67f(0x251)],_0x30c559[_0x37e67f(0x23c)]])):_0xf9172e[_0x37e67f(0x1d0)]=_0x30c559[_0x37e67f(0x1fd)],_0xf9172e;}catch(_0x25c553){return logger['debug']('Exception\x20in\x20getHookRunEventData:\x20'+util[_0x37e67f(0x200)](_0x25c553)),null;}}[a120_0x1886e5(0x21e)](_0x2f225f){const _0x4d564f=a120_0x1886e5,_0x4b2a1c={};_0x4b2a1c[_0x4d564f(0x203)]=function(_0xc28b72,_0x2b7ca8){return _0xc28b72!==_0x2b7ca8;},_0x4b2a1c[_0x4d564f(0x20b)]=_0x4d564f(0x1c9),_0x4b2a1c[_0x4d564f(0x1e7)]=_0x4d564f(0x1cb);const _0x145ebd=_0x4b2a1c;if(_0x145ebd['mvRao'](_0x2f225f[_0x4d564f(0x275)],_0x145ebd['GlLig']))return'\x22'+_0x2f225f['type']+_0x4d564f(0x1f3)+(_0x2f225f['parent']&&_0x2f225f[_0x4d564f(0x24e)][_0x4d564f(0x234)])+'\x22';return _0x2f225f['name']||_0x145ebd[_0x4d564f(0x1e7)];}[a120_0x1886e5(0x1de)](_0x1917f9){const _0x125616=a120_0x1886e5,_0x272bb7={};_0x272bb7['fDjDs']=function(_0x3b84b0,_0x5a81d3){return _0x3b84b0!==_0x5a81d3;},_0x272bb7[_0x125616(0x265)]=function(_0x42df9d,_0x1d8c55){return _0x42df9d!==_0x1d8c55;},_0x272bb7[_0x125616(0x1c6)]=_0x125616(0x219);const _0x427202=_0x272bb7,_0x1b8a0f=[];if(_0x1917f9&&_0x1917f9[_0x125616(0x24e)]){let _0x2ada9a=_0x1917f9['parent'];while(_0x2ada9a&&_0x2ada9a[_0x125616(0x234)]&&_0x427202['fDjDs'](_0x2ada9a[_0x125616(0x234)],'')&&_0x427202[_0x125616(0x265)](_0x2ada9a[_0x125616(0x234)],_0x427202[_0x125616(0x1c6)])){_0x1b8a0f['push'](_0x2ada9a[_0x125616(0x234)]),_0x2ada9a=_0x2ada9a[_0x125616(0x24e)];}}return _0x1b8a0f[_0x125616(0x1ee)](),_0x1b8a0f;}[a120_0x1886e5(0x1e6)](_0x3c0c19){const _0x107fdf=a120_0x1886e5,_0x3e60a1={'vEQtM':function(_0x3af3d0,_0x1655aa){return _0x3af3d0(_0x1655aa);}};if(_0x3c0c19[_0x107fdf(0x221)])return _0x3c0c19[_0x107fdf(0x221)];if(_0x3c0c19[_0x107fdf(0x1e8)])try{const _0x5d149b=stackTrace[_0x107fdf(0x257)][_0x107fdf(0x256)](stackTrace,_0x3c0c19[_0x107fdf(0x1e8)]),_0x59980e=_0x3e60a1['vEQtM'](pickUserFrameFile,_0x5d149b);if(_0x59980e)return _0x59980e;logger[_0x107fdf(0x208)](_0x107fdf(0x23d)+_0x5d149b[_0x107fdf(0x1c0)]+')');}catch(_0xa435cf){logger[_0x107fdf(0x208)](_0x107fdf(0x26d)+util['format'](_0xa435cf));}return null;}[a120_0x1886e5(0x1cd)](_0x30f578){const _0x399cbf=a120_0x1886e5,_0x170533={};_0x170533[_0x399cbf(0x23b)]=_0x399cbf(0x262);const _0x5d223a=_0x170533;try{const _0x4a1fe9=this[_0x399cbf(0x1e6)](_0x30f578);if(!_0x4a1fe9||_0x4a1fe9[_0x399cbf(0x1da)](_0x5d223a[_0x399cbf(0x23b)]))return!![];}catch(_0x2e105a){logger['debug']('Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20'+util[_0x399cbf(0x200)](_0x2e105a));}return![];}[a120_0x1886e5(0x209)](_0x4ebf02=null){const _0x29768a=a120_0x1886e5;try{const _0x1ef82d=_0x4ebf02||global['__workerDetails']||{};if(global[_0x29768a(0x25f)])return global[_0x29768a(0x25f)];if(_0x1ef82d?.['currentTest']?.['testAnalyticsId'])return _0x1ef82d[_0x29768a(0x25b)]['testAnalyticsId'];if(_0x1ef82d?.['currentTest']?.['id'])return _0x1ef82d[_0x29768a(0x25b)]['id'];return null;}catch(_0x5380f4){return logger['debug'](_0x29768a(0x1ce)+util['format'](_0x5380f4)),null;}}async[a120_0x1886e5(0x1cf)](){const _0x57240b=a120_0x1886e5,_0x1c2811={'aIlqP':function(_0x2b1b63){return _0x2b1b63();}};if(this[_0x57240b(0x266)])return this[_0x57240b(0x1fc)];const _0x4c235b=await _0x1c2811[_0x57240b(0x1c3)](getGitMetaData);_0x4c235b&&(this[_0x57240b(0x1fc)]=_0x4c235b[_0x57240b(0x1c7)]),this[_0x57240b(0x266)]=!![];}[a120_0x1886e5(0x215)](_0x1f9bfc){hooksMap[_0x1f9bfc]&&delete hooksMap[_0x1f9bfc];}[a120_0x1886e5(0x24a)](_0x489d23){const _0x3d001f=a120_0x1886e5,_0x2ed273={'GRvxB':_0x3d001f(0x262),'Ehrrj':function(_0x40afb3,_0x3d4e8d){return _0x40afb3(_0x3d4e8d);},'YRSOn':_0x3d001f(0x1dc)};if(_0x489d23[_0x3d001f(0x221)])return _0x489d23[_0x3d001f(0x221)];if(_0x489d23[_0x3d001f(0x1e8)]){try{const _0x5348c4=stackTrace['parse'](_0x489d23['asyncError']);if(_0x5348c4[0x0]&&_0x5348c4[0x0][_0x3d001f(0x1fb)]){const _0x1387f0=_0x5348c4[0x0]['getFileName']();if(_0x1387f0&&!_0x1387f0[_0x3d001f(0x1da)](_0x2ed273[_0x3d001f(0x267)]))return _0x1387f0;}}catch(_0x4f26a8){logger[_0x3d001f(0x208)](_0x3d001f(0x246)+util[_0x3d001f(0x200)](_0x4f26a8));}if(_0x489d23[_0x3d001f(0x1e8)][_0x3d001f(0x264)]){const _0x243de0=_0x489d23[_0x3d001f(0x1e8)][_0x3d001f(0x264)][_0x3d001f(0x1be)]('\x0a');for(const _0x2d1e8b of _0x243de0){const _0x377326=_0x2d1e8b[_0x3d001f(0x1e4)](/at (.+?):\d+:\d+/);if(_0x377326&&_0x377326[0x1]&&!_0x377326[0x1][_0x3d001f(0x1da)](_0x2ed273[_0x3d001f(0x267)]))return _0x377326[0x1];}}}let _0x596724=_0x489d23['parent'];while(_0x596724){if(_0x596724[_0x3d001f(0x221)])return _0x596724[_0x3d001f(0x221)];if(_0x596724[_0x3d001f(0x1e8)])try{const _0x513a14=stackTrace[_0x3d001f(0x257)](_0x596724[_0x3d001f(0x1e8)]);if(_0x513a14[0x0]&&_0x513a14[0x0][_0x3d001f(0x1fb)]){const _0x1437a3=_0x513a14[0x0]['getFileName']();if(_0x1437a3&&!_0x1437a3[_0x3d001f(0x1da)](_0x2ed273[_0x3d001f(0x267)]))return _0x1437a3;}}catch(_0x1b6c71){}_0x596724=_0x596724['parent'];}try{const _0xba3a55=_0x2ed273['Ehrrj'](require,_0x2ed273[_0x3d001f(0x252)]);if(_0xba3a55&&_0xba3a55[_0x3d001f(0x22b)]){const _0xfbc964=_0xba3a55[_0x3d001f(0x22b)]();if(_0xfbc964&&_0xfbc964[_0x3d001f(0x247)])return _0xfbc964[_0x3d001f(0x247)];}}catch(_0x165a72){logger[_0x3d001f(0x208)]('[jestUtils]\x20expect.getState()\x20not\x20available:\x20'+util[_0x3d001f(0x200)](_0x165a72));}return null;}[a120_0x1886e5(0x218)](_0x256ef9){const _0x3062d4=a120_0x1886e5,_0x14e9f9={};_0x14e9f9[_0x3062d4(0x205)]=_0x3062d4(0x1df),_0x14e9f9[_0x3062d4(0x21d)]=function(_0x3990ab,_0x38bc60){return _0x3990ab!==_0x38bc60;},_0x14e9f9[_0x3062d4(0x1ff)]=_0x3062d4(0x219),_0x14e9f9[_0x3062d4(0x258)]=_0x3062d4(0x262),_0x14e9f9['ioDYc']=_0x3062d4(0x225),_0x14e9f9[_0x3062d4(0x227)]=_0x3062d4(0x26c);const _0x535aed=_0x14e9f9;try{if(!_0x256ef9)return logger['error'](_0x535aed[_0x3062d4(0x205)]),null;const _0x2982ed=_0x256ef9[_0x3062d4(0x22a)]||_0x256ef9[_0x3062d4(0x234)]||_0x256ef9[_0x3062d4(0x250)]||_0x256ef9[_0x3062d4(0x26e)];let _0xf98e92=_0x2982ed;if(_0x256ef9[_0x3062d4(0x24e)]&&_0x256ef9[_0x3062d4(0x24e)]['name']&&_0x535aed[_0x3062d4(0x21d)](_0x256ef9[_0x3062d4(0x24e)][_0x3062d4(0x234)],_0x535aed['YRQEo'])){const _0x421571=_0x256ef9['name']||_0x256ef9[_0x3062d4(0x250)];_0x421571&&(_0xf98e92=_0x256ef9[_0x3062d4(0x24e)][_0x3062d4(0x234)]+'\x20'+_0x421571);}let _0x1d49f3=_0x256ef9['testPath'];if(!_0x1d49f3&&_0x256ef9['asyncError']){try{const _0x49e67b=stackTrace[_0x3062d4(0x257)](_0x256ef9[_0x3062d4(0x1e8)]);if(_0x49e67b[0x0]&&_0x49e67b[0x0]['getFileName']){const _0x1c0367=_0x49e67b[0x0]['getFileName']();_0x1c0367&&!_0x1c0367[_0x3062d4(0x1da)](_0x535aed[_0x3062d4(0x258)])&&(_0x1d49f3=_0x1c0367);}}catch(_0x5c2fcc){logger[_0x3062d4(0x208)](_0x3062d4(0x246)+util['format'](_0x5c2fcc));}if(!_0x1d49f3&&_0x256ef9[_0x3062d4(0x1e8)][_0x3062d4(0x264)]){const _0x868364=_0x256ef9['asyncError'][_0x3062d4(0x264)][_0x3062d4(0x1be)]('\x0a');for(const _0x2f992f of _0x868364){const _0x464804=_0x2f992f[_0x3062d4(0x1e4)](/at (.+?):\d+:\d+/);if(_0x464804&&_0x464804[0x1]&&!_0x464804[0x1][_0x3062d4(0x1da)](_0x535aed[_0x3062d4(0x258)])){_0x1d49f3=_0x464804[0x1];break;}}}}const _0xdeeb97=_0x1d49f3+'::'+_0xf98e92,_0x175d00=crypto[_0x3062d4(0x21f)](_0x535aed['ioDYc'])[_0x3062d4(0x20a)](_0xdeeb97)[_0x3062d4(0x1d3)](_0x535aed[_0x3062d4(0x227)])['substring'](0x0,0x8),_0x5e95cc=process['pid']+_0x3062d4(0x223)+_0x175d00;return logger[_0x3062d4(0x208)](_0x3062d4(0x1ed)+_0x5e95cc+_0x3062d4(0x1f5)+_0xdeeb97),_0x5e95cc;}catch(_0x521e8e){return logger['error'](_0x3062d4(0x207)+util['format'](_0x521e8e)),null;}}[a120_0x1886e5(0x237)](_0x321e5f){const _0x1a2b4c=a120_0x1886e5,_0x76d102={};_0x76d102['YPgjd']='[jestUtils]\x20No\x20test\x20object\x20provided';const _0x3e0366=_0x76d102;if(!_0x321e5f)return logger['debug'](_0x3e0366[_0x1a2b4c(0x1d9)]),null;const _0x4d1dd3=this[_0x1a2b4c(0x24a)](_0x321e5f),_0x48c865={};_0x48c865[_0x1a2b4c(0x234)]=_0x321e5f[_0x1a2b4c(0x234)]||_0x321e5f[_0x1a2b4c(0x250)],_0x48c865[_0x1a2b4c(0x24e)]=_0x321e5f[_0x1a2b4c(0x24e)],_0x48c865[_0x1a2b4c(0x247)]=_0x4d1dd3,_0x48c865[_0x1a2b4c(0x1e8)]=_0x321e5f['asyncError'];const _0xf93b5=_0x48c865;return this['createJestTestIdentifier'](_0xf93b5);}[a120_0x1886e5(0x23e)](_0x190d7e,_0x295d31=null){const _0x38b53a=a120_0x1886e5,_0x2edcd0={};_0x2edcd0[_0x38b53a(0x270)]=_0x38b53a(0x1f8);const _0x468f16=_0x2edcd0;if(!_0x190d7e)return logger[_0x38b53a(0x208)](_0x468f16[_0x38b53a(0x270)]),_0x295d31;if(_0x190d7e['testIdentifier'])return logger['debug'](_0x38b53a(0x1fa)+_0x190d7e['testIdentifier']),_0x190d7e[_0x38b53a(0x1e0)];return this[_0x38b53a(0x218)](_0x190d7e)||_0x295d31;}}module['exports']=o11yClassErrorHandler(JestUtils,[a120_0x1886e5(0x1cf),a120_0x1886e5(0x1de),a120_0x1886e5(0x1e6),'getName','isJestInternalHook',a120_0x1886e5(0x209),a120_0x1886e5(0x1c8),a120_0x1886e5(0x1e5),a120_0x1886e5(0x1f2),a120_0x1886e5(0x215),a120_0x1886e5(0x24a),a120_0x1886e5(0x218),'createIdentifierFromJestTest',a120_0x1886e5(0x23e)]);
|
|
1
|
+
const a120_0x2be6e7=a120_0x3f58;(function(_0x21df52,_0x433040){const _0x35d830=a120_0x3f58,_0x5e1d4e=_0x21df52();while(!![]){try{const _0x18e71c=parseInt(_0x35d830(0xf1))/0x1+-parseInt(_0x35d830(0xa5))/0x2+parseInt(_0x35d830(0xd5))/0x3+parseInt(_0x35d830(0x104))/0x4*(parseInt(_0x35d830(0x156))/0x5)+parseInt(_0x35d830(0xc9))/0x6*(-parseInt(_0x35d830(0x111))/0x7)+-parseInt(_0x35d830(0xf7))/0x8+parseInt(_0x35d830(0x131))/0x9;if(_0x18e71c===_0x433040)break;else _0x5e1d4e['push'](_0x5e1d4e['shift']());}catch(_0x4096a5){_0x5e1d4e['push'](_0x5e1d4e['shift']());}}}(a120_0x2d06,0xe7639));const path=require(a120_0x2be6e7(0xd4)),util=require(a120_0x2be6e7(0x120)),crypto=require(a120_0x2be6e7(0x147)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a120_0x2be6e7(0x13b)),logger=require('../../../helpers/logger.js')[a120_0x2be6e7(0x13e)],{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler.js'),TestInfo=require(a120_0x2be6e7(0xe8)),{failureData,getFailureType,PathHelper}=require(a120_0x2be6e7(0x142)),stackTrace=require('stack-trace'),{pickUserFrameFile}=require(a120_0x2be6e7(0xd9)),a120_0x127965={};a120_0x127965[a120_0x2be6e7(0xac)]=a120_0x2be6e7(0x10b),a120_0x127965[a120_0x2be6e7(0x150)]='AFTER_ALL',a120_0x127965[a120_0x2be6e7(0xad)]=a120_0x2be6e7(0xb1),a120_0x127965[a120_0x2be6e7(0x10f)]=a120_0x2be6e7(0x149);const HOOK_TYPES_MAP=a120_0x127965,hooksMap={};class JestUtils{constructor(){const _0xa6fb84=a120_0x2be6e7;this[_0xa6fb84(0xbb)]=![],this['_gitConfigPath']=null,this[_0xa6fb84(0x13d)]=new PathHelper({'cwd':process[_0xa6fb84(0xee)]()},undefined);}async[a120_0x2be6e7(0xc0)](_0x43c64f,_0x2a0020,_0x238fb0=a120_0x2be6e7(0x12d),_0x2874d2=undefined){const _0x439143=a120_0x2be6e7,_0x180017={'TmwUr':_0x439143(0xf8),'vYLDp':'jest-circus','NiCoJ':_0x439143(0x155),'liwWG':function(_0x1a4ec6,_0x101f36){return _0x1a4ec6!==_0x101f36;},'bMyVA':'test','bQuzl':function(_0x2156a4,_0xb9cc7d){return _0x2156a4!==_0xb9cc7d;},'uPqCr':_0x439143(0x15a),'EiRfZ':function(_0x42369f,_0x21af3b){return _0x42369f!==_0x21af3b;},'MOdDT':_0x439143(0x10e),'kgbUE':function(_0x14d9f1,_0x46ce08){return _0x14d9f1===_0x46ce08;},'qieGL':_0x439143(0xda),'wcofT':_0x439143(0x137),'RgrRb':function(_0x18238b,_0x375309){return _0x18238b===_0x375309;},'CIhfu':_0x439143(0x12d),'AjQEM':function(_0xd37ba9,_0xf832c1){return _0xd37ba9>_0xf832c1;},'pfxkr':_0x439143(0xbe),'rQyEm':_0x439143(0x122),'blRFz':function(_0x14dd28,_0x37e278){return _0x14dd28!==_0x37e278;},'NrbCz':function(_0x342374,_0x563b52){return _0x342374-_0x563b52;},'ZoAcr':'javascript','uueFP':'jest','zRQzn':function(_0x15f0ae,_0x5b1b27){return _0x15f0ae(_0x5b1b27);},'ZPZzM':function(_0x2c3cb6,_0x539b8f){return _0x2c3cb6===_0x539b8f;}};logger['debug']('Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20'+_0x238fb0+',\x20testIdentifier:\x20'+_0x2a0020);try{if(!_0x43c64f)return logger[_0x439143(0xe4)](_0x180017['TmwUr']),null;if(_0x43c64f['fn']&&_0x43c64f['fn'][_0x439143(0x128)]()[_0x439143(0xca)](/browserstack internal helper hook/))return null;await this[_0x439143(0xa8)]();let _0x298c13;try{_0x298c13=this[_0x439143(0x110)](_0x43c64f);if(_0x298c13&&_0x298c13['includes'](_0x180017[_0x439143(0xef)]))return null;}catch(_0x10ccb7){logger[_0x439143(0xe4)](_0x439143(0x134)+util[_0x439143(0xf2)](_0x10ccb7)),_0x298c13=null;}const _0x429acc=this[_0x439143(0x101)](_0x43c64f),_0x246b62=this['getName'](_0x43c64f),_0x206926=_0x298c13?this[_0x439143(0x13d)][_0x439143(0x124)](_0x298c13):_0x180017[_0x439143(0xe0)];let _0x89706e=[];const _0x44236a=_0x43c64f['errorsDetailed']||_0x43c64f[_0x439143(0x118)];if(_0x180017['liwWG'](_0x44236a,undefined))_0x89706e=[_0x44236a,_0x180017[_0x439143(0x14e)]];else _0x180017['bQuzl'](_0x2874d2,undefined)&&(_0x89706e=[_0x2874d2,_0x180017[_0x439143(0x108)]]);const _0xd62753=_0x180017[_0x439143(0x12c)](_0x44236a,undefined)?util['inspect'](_0x44236a[0x0]):_0x180017[_0x439143(0x105)](_0x2874d2,undefined)?_0x2874d2[_0x439143(0x128)]():undefined;let _0x194eb7=_0x180017['MOdDT'];if(_0x180017[_0x439143(0x129)](_0x238fb0,_0x180017[_0x439143(0x12e)]))_0x194eb7=_0x180017[_0x439143(0x11f)];else _0x180017[_0x439143(0xb8)](_0x238fb0,_0x180017[_0x439143(0x158)])&&(_0x44236a&&_0x180017[_0x439143(0xf0)](_0x44236a[_0x439143(0x15d)],0x0)?_0x194eb7=_0x180017[_0x439143(0xa7)]:_0x194eb7=_0x180017[_0x439143(0x119)]);let _0x85a49e=null;if(_0x180017['blRFz'](_0x43c64f['duration'],undefined))_0x85a49e=_0x43c64f['duration'];else(_0x238fb0[_0x439143(0xca)](/Finished/)||_0x238fb0['match'](/Skipped/))&&(_0x43c64f[_0x439143(0xc3)]&&(_0x85a49e=_0x180017['NrbCz'](Date['now'](),new Date(_0x43c64f[_0x439143(0xc3)])[_0x439143(0x112)]())));const _0x353004=_0x43c64f['fn']?_0x43c64f['fn'][_0x439143(0x128)]():null,_0x5c2b8f={'id':_0x2a0020,'uuid':_0x2a0020,'startedAt':_0x43c64f[_0x439143(0xc3)]||new Date()[_0x439143(0x14c)](),'finishedAt':_0x238fb0[_0x439143(0xca)](/Finished/)||_0x238fb0[_0x439143(0xca)](/Skipped/)?new Date()[_0x439143(0x14c)]():null,'type':_0x180017[_0x439143(0x14e)],'body':{'lang':_0x180017['ZoAcr'],'code':_0x353004},'name':_0x246b62,'errorsDetailed':_0x180017[_0x439143(0xf0)](_0x44236a?.[_0x439143(0x15d)],0x0)?_0x44236a[0x0]:_0x44236a?_0x44236a:undefined,'scopes':_0x429acc,'file_name':_0x206926,'location':_0x206926,'vc_filepath':this[_0x439143(0xa6)]&&_0x298c13?path[_0x439143(0x14b)](this['_gitConfigPath'],_0x298c13):null,'framework':_0x180017['uueFP'],'result':_0x194eb7,'failure_reason':_0xd62753,'duration_in_ms':_0x85a49e,'failure':failureData['apply'](null,_0x89706e),'failure_type':!_0xd62753?null:_0x180017[_0x439143(0x159)](getFailureType,_0xd62753),'retry_of':_0x43c64f[_0x439143(0xe7)]||null,'customRerunParam':{'rerun_name':_0x246b62}};_0x180017[_0x439143(0x132)](_0x238fb0,_0x180017[_0x439143(0x12e)])&&!_0x5c2b8f[_0x439143(0x100)]&&(_0x5c2b8f[_0x439143(0x100)]=_0x5c2b8f['finishedAt']);const _0x5275b6=_0x5c2b8f[_0x439143(0xe2)]&&_0x5c2b8f[_0x439143(0xe2)][0x0];return _0x5275b6&&(_0x5c2b8f[_0x439143(0xae)]=_0x5275b6['backtrace'],_0x5c2b8f[_0x439143(0xde)]=_0x5275b6[_0x439143(0xe1)]),(_0x180017['ZPZzM'](_0x238fb0,_0x180017[_0x439143(0x158)])||_0x180017['kgbUE'](_0x238fb0,_0x180017[_0x439143(0x12e)]))&&(_0x43c64f[_0x439143(0xd0)]&&(_0x5c2b8f[_0x439143(0xd0)]=_0x43c64f['hooks'])),_0x5c2b8f;}catch(_0x23716f){return logger[_0x439143(0xe4)]('Exception\x20in\x20createTestFrameworkData:\x20'+util['format'](_0x23716f)),null;}}async['createHookData'](_0x5ce3df,_0x191a7d,_0x445e1c,_0x32f9fb){const _0x197e04=a120_0x2be6e7,_0x157720={'Hjikk':_0x197e04(0xf6),'APpog':_0x197e04(0x138),'zLmPs':_0x197e04(0x139),'kmBan':_0x197e04(0x141),'DwFtl':_0x197e04(0x10e),'LCxJh':function(_0x540d66,_0x4e25e8){return _0x540d66===_0x4e25e8;},'rkjAv':'HookRunFinished','Hjvtl':function(_0x27483c,_0x3ca5c9){return _0x27483c>_0x3ca5c9;},'bJwfl':_0x197e04(0xbe),'KEsme':function(_0x53ebab,_0x28e590){return _0x53ebab(_0x28e590);},'wsNZk':_0x197e04(0x10a),'mHmdE':_0x197e04(0x122),'XyRBE':_0x197e04(0xdd),'OHlax':'javascript','fjcFN':'jest','kjOWx':'HookRunStarted'};logger[_0x197e04(0xe4)](_0x197e04(0x13a)+_0x445e1c+_0x197e04(0x13f)+_0x191a7d+_0x197e04(0xf3)+_0x32f9fb);try{if(!_0x5ce3df)return logger[_0x197e04(0xe4)](_0x157720['Hjikk']),null;if(this[_0x197e04(0x133)](_0x5ce3df))return null;await this['configureGit']();let _0x2790bc=null;try{_0x2790bc=this[_0x197e04(0x110)](_0x5ce3df);if(_0x2790bc&&_0x2790bc[_0x197e04(0x126)](_0x157720[_0x197e04(0x11c)]))return null;if(_0x2790bc&&_0x2790bc['includes'](_0x157720[_0x197e04(0xbd)]))return null;}catch(_0x325a2a){logger['debug'](_0x197e04(0x106)+util['format'](_0x325a2a));}const _0x3ee537=_0x2790bc?this[_0x197e04(0x13d)]['prefixTestPath'](_0x2790bc):_0x2790bc,_0x97e9e3=this[_0x197e04(0xb4)](_0x5ce3df),_0x7cbf7=_0x5ce3df[_0x197e04(0x14d)]||_0x157720[_0x197e04(0xdc)],_0xa72761=HOOK_TYPES_MAP[_0x7cbf7]||_0x7cbf7[_0x197e04(0xab)](),_0x2e5574=_0x5ce3df['parent']&&_0x5ce3df[_0x197e04(0xfc)][_0x197e04(0x11b)]?_0x5ce3df['parent']['name']:'';let _0x262242=_0x157720[_0x197e04(0xe6)],_0x15ec76=null,_0x2f7bf4=null,_0x491990=null,_0xfd430f=null;_0x157720[_0x197e04(0xb0)](_0x445e1c,_0x157720[_0x197e04(0x107)])&&(_0xfd430f=new Date()[_0x197e04(0x14c)](),_0x5ce3df[_0x197e04(0x113)]&&_0x157720[_0x197e04(0x11e)](_0x5ce3df[_0x197e04(0x113)][_0x197e04(0x15d)],0x0)?(_0x262242=_0x157720[_0x197e04(0xeb)],_0x2f7bf4=util[_0x197e04(0x136)](_0x5ce3df[_0x197e04(0x113)][0x0]),_0x15ec76=_0x157720[_0x197e04(0x12f)](getFailureType,_0x2f7bf4),_0x491990=failureData[_0x197e04(0xe9)](null,[_0x5ce3df[_0x197e04(0x113)],_0x157720[_0x197e04(0x123)]])):_0x262242=_0x157720[_0x197e04(0xcd)]);const _0x3a68d4={'uuid':_0x191a7d,'type':_0x157720[_0x197e04(0x157)],'hook_type':_0xa72761,'name':_0x97e9e3,'body':{'lang':_0x157720[_0x197e04(0x109)],'code':_0x5ce3df['fn']?_0x5ce3df['fn']['toString']():null},'tags':[],'test_run_id':_0x32f9fb,'scope':_0x2e5574,'scopes':[_0x2e5574],'file_name':_0x3ee537,'location':_0x3ee537,'vc_filepath':this['_gitConfigPath']&&_0x2790bc?path['relative'](this['_gitConfigPath'],_0x2790bc):null,'result':_0x262242,'started_at':_0x5ce3df['started_at']||new Date()[_0x197e04(0x14c)](),'finished_at':_0xfd430f,'failure_type':_0x15ec76,'failure_reason':_0x2f7bf4,'failure_data':_0x491990,'framework':_0x157720[_0x197e04(0xec)]};return _0x157720[_0x197e04(0xb0)](_0x445e1c,_0x157720[_0x197e04(0xaf)])&&(hooksMap[_0x32f9fb]?hooksMap[_0x32f9fb][_0x197e04(0x151)](_0x3a68d4):hooksMap[_0x32f9fb]=[_0x3a68d4]),_0x3a68d4;}catch(_0x5d1727){return logger[_0x197e04(0xe4)](_0x197e04(0xe5)+util[_0x197e04(0xf2)](_0x5d1727)),null;}}[a120_0x2be6e7(0x148)](_0x3ca7a3,_0x1b635f,_0x2a005f){const _0x4a990b=a120_0x2be6e7,_0x254b09={'MTdOK':function(_0x4dbb81,_0x59e743){return _0x4dbb81>_0x59e743;},'lTOmI':'failed','oVsnV':function(_0x4dacb5,_0x539e5d){return _0x4dacb5(_0x539e5d);},'yckEc':_0x4a990b(0x10a),'qyyyE':_0x4a990b(0x122)};try{const _0x7830f3=hooksMap[_0x3ca7a3];if(!_0x7830f3)return null;const _0x314f5a=_0x7830f3[_0x4a990b(0xb5)](_0xab4626=>_0xab4626[_0x4a990b(0x125)]===_0x1b635f);if(!_0x314f5a)return null;return _0x314f5a[_0x4a990b(0xd1)]=new Date()[_0x4a990b(0x14c)](),_0x2a005f[_0x4a990b(0x113)]&&_0x254b09[_0x4a990b(0x154)](_0x2a005f[_0x4a990b(0x113)][_0x4a990b(0x15d)],0x0)?(_0x314f5a[_0x4a990b(0xd2)]=_0x254b09[_0x4a990b(0xdf)],_0x314f5a[_0x4a990b(0xcb)]=util[_0x4a990b(0x136)](_0x2a005f[_0x4a990b(0x113)][0x0]),_0x314f5a[_0x4a990b(0x15c)]=_0x254b09['oVsnV'](getFailureType,_0x314f5a[_0x4a990b(0xcb)]),_0x314f5a[_0x4a990b(0x153)]=failureData['apply'](null,[_0x2a005f[_0x4a990b(0x113)],_0x254b09[_0x4a990b(0xd3)]])):_0x314f5a[_0x4a990b(0xd2)]=_0x254b09['qyyyE'],_0x314f5a;}catch(_0x50c90f){return logger['debug']('Exception\x20in\x20getHookRunEventData:\x20'+util[_0x4a990b(0xf2)](_0x50c90f)),null;}}[a120_0x2be6e7(0xb4)](_0x5857ec){const _0x290b14=a120_0x2be6e7,_0x561679={};_0x561679[_0x290b14(0xb9)]=function(_0x38e044,_0x343e24){return _0x38e044!==_0x343e24;},_0x561679[_0x290b14(0xaa)]='test',_0x561679[_0x290b14(0xb2)]='Unknown\x20Test';const _0x10a81c=_0x561679;if(_0x10a81c[_0x290b14(0xb9)](_0x5857ec['type'],_0x10a81c[_0x290b14(0xaa)]))return'\x22'+_0x5857ec[_0x290b14(0x14d)]+_0x290b14(0x116)+(_0x5857ec['parent']&&_0x5857ec['parent'][_0x290b14(0x11b)])+'\x22';return _0x5857ec[_0x290b14(0x11b)]||_0x10a81c[_0x290b14(0xb2)];}[a120_0x2be6e7(0x101)](_0x2cbfad){const _0x1d48e8=a120_0x2be6e7,_0x5b517d={};_0x5b517d['aLWHA']=function(_0xbf46b8,_0x3a5374){return _0xbf46b8!==_0x3a5374;},_0x5b517d['ggZTj']=_0x1d48e8(0xc8);const _0x24057a=_0x5b517d,_0x365d1f=[];if(_0x2cbfad&&_0x2cbfad[_0x1d48e8(0xfc)]){let _0x5f596a=_0x2cbfad['parent'];while(_0x5f596a&&_0x5f596a[_0x1d48e8(0x11b)]&&_0x24057a[_0x1d48e8(0x11d)](_0x5f596a[_0x1d48e8(0x11b)],'')&&_0x24057a[_0x1d48e8(0x11d)](_0x5f596a[_0x1d48e8(0x11b)],_0x24057a['ggZTj'])){_0x365d1f[_0x1d48e8(0x151)](_0x5f596a[_0x1d48e8(0x11b)]),_0x5f596a=_0x5f596a['parent'];}}return _0x365d1f[_0x1d48e8(0x117)](),_0x365d1f;}[a120_0x2be6e7(0x110)](_0x4d2bd7){const _0x27a796=a120_0x2be6e7,_0x1e1093={'sBjig':function(_0x1d0bd4,_0x15183b){return _0x1d0bd4(_0x15183b);}};if(_0x4d2bd7[_0x27a796(0xbf)])return _0x4d2bd7[_0x27a796(0xbf)];if(_0x4d2bd7['asyncError'])try{const _0x1c4b4=stackTrace[_0x27a796(0x12a)][_0x27a796(0x10c)](stackTrace,_0x4d2bd7['asyncError']),_0x52050e=_0x1e1093[_0x27a796(0x146)](pickUserFrameFile,_0x1c4b4);if(_0x52050e)return _0x52050e;logger[_0x27a796(0xe4)](_0x27a796(0xc4)+_0x1c4b4[_0x27a796(0x15d)]+')');}catch(_0xb7f160){logger[_0x27a796(0xe4)](_0x27a796(0xce)+util[_0x27a796(0xf2)](_0xb7f160));}return null;}[a120_0x2be6e7(0x133)](_0x27d99b){const _0x2dda90=a120_0x2be6e7,_0x2681ba={};_0x2681ba[_0x2dda90(0x102)]='jest-circus';const _0x3183d0=_0x2681ba;try{const _0x4e4d31=this['getRootParentFile'](_0x27d99b);if(!_0x4e4d31||_0x4e4d31['includes'](_0x3183d0['fszMR']))return!![];}catch(_0x32dde0){logger[_0x2dda90(0xe4)](_0x2dda90(0x15f)+util[_0x2dda90(0xf2)](_0x32dde0));}return![];}[a120_0x2be6e7(0x144)](_0x538bd3=null){const _0x1e37e5=a120_0x2be6e7;try{const _0x4668da=_0x538bd3||global[_0x1e37e5(0xd8)]||{};if(global[_0x1e37e5(0xea)])return global['__jestCurrentTestIdentifier'];if(_0x4668da?.[_0x1e37e5(0x10d)]?.['testAnalyticsId'])return _0x4668da['currentTest'][_0x1e37e5(0xdb)];if(_0x4668da?.['currentTest']?.['id'])return _0x4668da[_0x1e37e5(0x10d)]['id'];return null;}catch(_0x39e253){return logger[_0x1e37e5(0xe4)](_0x1e37e5(0x130)+util[_0x1e37e5(0xf2)](_0x39e253)),null;}}async[a120_0x2be6e7(0xa8)](){const _0x33d35a=a120_0x2be6e7,_0xf749ff={'QGRNK':function(_0xdff50b){return _0xdff50b();}};if(this['_gitConfigured'])return this[_0x33d35a(0xa6)];const _0x1e6323=await _0xf749ff[_0x33d35a(0xed)](getGitMetaData);_0x1e6323&&(this[_0x33d35a(0xa6)]=_0x1e6323[_0x33d35a(0xa9)]),this[_0x33d35a(0xbb)]=!![];}['clearHooksMap'](_0x3a9508){hooksMap[_0x3a9508]&&delete hooksMap[_0x3a9508];}[a120_0x2be6e7(0xbc)](_0x5d3f12){const _0x5a3533=a120_0x2be6e7,_0x39ffb1={'BkXTz':'jest-circus','SQlkr':function(_0x183970,_0x466341){return _0x183970(_0x466341);},'FPNxH':_0x5a3533(0x14a)};if(_0x5d3f12[_0x5a3533(0xbf)])return _0x5d3f12[_0x5a3533(0xbf)];if(_0x5d3f12[_0x5a3533(0x140)]){try{const _0x44f6b3=stackTrace['parse'](_0x5d3f12[_0x5a3533(0x140)]);if(_0x44f6b3[0x0]&&_0x44f6b3[0x0][_0x5a3533(0xb3)]){const _0x1982a7=_0x44f6b3[0x0][_0x5a3533(0xb3)]();if(_0x1982a7&&!_0x1982a7[_0x5a3533(0x126)](_0x39ffb1['BkXTz']))return _0x1982a7;}}catch(_0x502994){logger[_0x5a3533(0xe4)]('[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util[_0x5a3533(0xf2)](_0x502994));}if(_0x5d3f12[_0x5a3533(0x140)][_0x5a3533(0xd7)]){const _0x24bcc8=_0x5d3f12['asyncError']['stack']['split']('\x0a');for(const _0x5b2559 of _0x24bcc8){const _0x3da43a=_0x5b2559[_0x5a3533(0xca)](/at (.+?):\d+:\d+/);if(_0x3da43a&&_0x3da43a[0x1]&&!_0x3da43a[0x1]['includes'](_0x39ffb1[_0x5a3533(0x145)]))return _0x3da43a[0x1];}}}let _0x852152=_0x5d3f12[_0x5a3533(0xfc)];while(_0x852152){if(_0x852152[_0x5a3533(0xbf)])return _0x852152[_0x5a3533(0xbf)];if(_0x852152[_0x5a3533(0x140)])try{const _0x5ca5c7=stackTrace[_0x5a3533(0x12a)](_0x852152[_0x5a3533(0x140)]);if(_0x5ca5c7[0x0]&&_0x5ca5c7[0x0]['getFileName']){const _0x5f3a9e=_0x5ca5c7[0x0]['getFileName']();if(_0x5f3a9e&&!_0x5f3a9e[_0x5a3533(0x126)](_0x39ffb1[_0x5a3533(0x145)]))return _0x5f3a9e;}}catch(_0x558a15){}_0x852152=_0x852152['parent'];}try{const _0x58a010=_0x39ffb1['SQlkr'](require,_0x39ffb1[_0x5a3533(0x15e)]);if(_0x58a010&&_0x58a010['getState']){const _0x12186b=_0x58a010[_0x5a3533(0xc5)]();if(_0x12186b&&_0x12186b[_0x5a3533(0xe3)])return _0x12186b[_0x5a3533(0xe3)];}}catch(_0x30a003){logger['debug'](_0x5a3533(0x135)+util['format'](_0x30a003));}return null;}['createJestTestIdentifier'](_0x4ce086){const _0x9ca2cc=a120_0x2be6e7,_0x7c091b={};_0x7c091b[_0x9ca2cc(0xf4)]=_0x9ca2cc(0x12b),_0x7c091b['qtvHw']=function(_0xd2e768,_0x1fa6e8){return _0xd2e768!==_0x1fa6e8;},_0x7c091b[_0x9ca2cc(0x114)]='ROOT_DESCRIBE_BLOCK',_0x7c091b[_0x9ca2cc(0xd6)]=_0x9ca2cc(0x138),_0x7c091b[_0x9ca2cc(0xc6)]=_0x9ca2cc(0xfa),_0x7c091b[_0x9ca2cc(0xf9)]=_0x9ca2cc(0x115);const _0x459ba4=_0x7c091b;try{if(!_0x4ce086)return logger[_0x9ca2cc(0xfd)](_0x459ba4[_0x9ca2cc(0xf4)]),null;const _0x453ad2=_0x4ce086[_0x9ca2cc(0x127)]||_0x4ce086[_0x9ca2cc(0x11b)]||_0x4ce086[_0x9ca2cc(0xc1)]||_0x4ce086[_0x9ca2cc(0x103)];let _0x3e0d3a=_0x453ad2;if(_0x4ce086['parent']&&_0x4ce086[_0x9ca2cc(0xfc)][_0x9ca2cc(0x11b)]&&_0x459ba4['qtvHw'](_0x4ce086['parent'][_0x9ca2cc(0x11b)],_0x459ba4[_0x9ca2cc(0x114)])){const _0x42cad4=_0x4ce086[_0x9ca2cc(0x11b)]||_0x4ce086['title'];_0x42cad4&&(_0x3e0d3a=_0x4ce086[_0x9ca2cc(0xfc)][_0x9ca2cc(0x11b)]+'\x20'+_0x42cad4);}let _0x1da23c=_0x4ce086[_0x9ca2cc(0xe3)];if(!_0x1da23c&&_0x4ce086['asyncError']){try{const _0x5f366e=stackTrace[_0x9ca2cc(0x12a)](_0x4ce086[_0x9ca2cc(0x140)]);if(_0x5f366e[0x0]&&_0x5f366e[0x0]['getFileName']){const _0x1449ba=_0x5f366e[0x0][_0x9ca2cc(0xb3)]();_0x1449ba&&!_0x1449ba[_0x9ca2cc(0x126)](_0x459ba4[_0x9ca2cc(0xd6)])&&(_0x1da23c=_0x1449ba);}}catch(_0x207c9b){logger[_0x9ca2cc(0xe4)](_0x9ca2cc(0x14f)+util[_0x9ca2cc(0xf2)](_0x207c9b));}if(!_0x1da23c&&_0x4ce086[_0x9ca2cc(0x140)][_0x9ca2cc(0xd7)]){const _0x4df1af=_0x4ce086[_0x9ca2cc(0x140)][_0x9ca2cc(0xd7)][_0x9ca2cc(0xb7)]('\x0a');for(const _0x32ff70 of _0x4df1af){const _0x2d61b8=_0x32ff70[_0x9ca2cc(0xca)](/at (.+?):\d+:\d+/);if(_0x2d61b8&&_0x2d61b8[0x1]&&!_0x2d61b8[0x1][_0x9ca2cc(0x126)](_0x459ba4[_0x9ca2cc(0xd6)])){_0x1da23c=_0x2d61b8[0x1];break;}}}}const _0x878b93=_0x1da23c+'::'+_0x3e0d3a,_0x1853ea=crypto['createHash'](_0x459ba4[_0x9ca2cc(0xc6)])[_0x9ca2cc(0xc7)](_0x878b93)[_0x9ca2cc(0x11a)](_0x459ba4[_0x9ca2cc(0xf9)])['substring'](0x0,0x8),_0x1a11a3=process[_0x9ca2cc(0xfe)]+_0x9ca2cc(0xcc)+_0x1853ea;return logger[_0x9ca2cc(0xe4)](_0x9ca2cc(0x15b)+_0x1a11a3+_0x9ca2cc(0xff)+_0x878b93),_0x1a11a3;}catch(_0x281579){return logger['error']('[jestUtils]\x20Error\x20creating\x20identifier:\x20'+util[_0x9ca2cc(0xf2)](_0x281579)),null;}}[a120_0x2be6e7(0x121)](_0x1687ad){const _0x27cdb8=a120_0x2be6e7,_0x2ff840={};_0x2ff840[_0x27cdb8(0x152)]=_0x27cdb8(0xc2);const _0x16a008=_0x2ff840;if(!_0x1687ad)return logger[_0x27cdb8(0xe4)](_0x16a008[_0x27cdb8(0x152)]),null;const _0x447930=this[_0x27cdb8(0xbc)](_0x1687ad),_0x2526aa={};_0x2526aa[_0x27cdb8(0x11b)]=_0x1687ad[_0x27cdb8(0x11b)]||_0x1687ad[_0x27cdb8(0xc1)],_0x2526aa[_0x27cdb8(0xfc)]=_0x1687ad['parent'],_0x2526aa['testPath']=_0x447930,_0x2526aa[_0x27cdb8(0x140)]=_0x1687ad['asyncError'];const _0x4d1b6d=_0x2526aa;return this[_0x27cdb8(0xfb)](_0x4d1b6d);}[a120_0x2be6e7(0x143)](_0x57d9cc,_0x274540=null){const _0x1f1820=a120_0x2be6e7,_0x1d95f0={};_0x1d95f0[_0x1f1820(0xf5)]=_0x1f1820(0x13c);const _0x42a139=_0x1d95f0;if(!_0x57d9cc)return logger[_0x1f1820(0xe4)](_0x42a139[_0x1f1820(0xf5)]),_0x274540;if(_0x57d9cc[_0x1f1820(0xb6)])return logger[_0x1f1820(0xe4)](_0x1f1820(0xcf)+_0x57d9cc['testIdentifier']),_0x57d9cc[_0x1f1820(0xb6)];return this[_0x1f1820(0xfb)](_0x57d9cc)||_0x274540;}}module[a120_0x2be6e7(0xba)]=o11yClassErrorHandler(JestUtils,['configureGit',a120_0x2be6e7(0x101),a120_0x2be6e7(0x110),'getName',a120_0x2be6e7(0x133),'getTestIdentifier',a120_0x2be6e7(0xc0),'createHookData',a120_0x2be6e7(0x148),'clearHooksMap',a120_0x2be6e7(0xbc),a120_0x2be6e7(0xfb),'createIdentifierFromJestTest',a120_0x2be6e7(0x143)]);function a120_0x3f58(_0x25f64e,_0x384084){const _0x2d064e=a120_0x2d06();return a120_0x3f58=function(_0x3f5801,_0xfc4d17){_0x3f5801=_0x3f5801-0xa5;let _0x4aea7b=_0x2d064e[_0x3f5801];return _0x4aea7b;},a120_0x3f58(_0x25f64e,_0x384084);}function a120_0x2d06(){const _0xde56e3=['lTOmI','NiCoJ','expanded','failure','testPath','debug','Exception\x20in\x20createHookData:\x20','DwFtl','retryOf','../TestInfo.js','apply','__jestCurrentTestIdentifier','bJwfl','fjcFN','QGRNK','cwd','vYLDp','AjQEM','103111BEJPwU','format',',\x20testRunId:\x20','CHouU','WTOvw','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','8513888xTVdLG','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','oTQmY','md5','createJestTestIdentifier','parent','error','pid','\x20from\x20compositeKey:\x20','startedAt','getHierarchy','fszMR','displayName','134580eWGccW','bQuzl','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','rkjAv','uPqCr','OHlax','test','BEFORE_ALL','call','currentTest','pending','afterEach','getRootParentFile','658pddFoY','getTime','errorsDetailed','gMNEe','hex','\x22\x20hook\x20for\x20\x22','reverse','errors','rQyEm','digest','name','APpog','aLWHA','Hjvtl','wcofT','util','createIdentifierFromJestTest','passed','wsNZk','prefixTestPath','uuid','includes','fullName','toString','kgbUE','parse','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier','EiRfZ','TestRunFinished','qieGL','KEsme','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','7827003xCGzku','ZPZzM','isJestInternalHook','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','inspect','skipped','jest-circus','browserstack-node-agent/src/bin/jest','Creating\x20hook\x20data\x20for\x20eventType:\x20','../../../helpers/helper.js','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation','_paths','winstonLogger',',\x20hookUUID:\x20','asyncError','unknown','../../../helpers/test-observability/utils','recreateIdentifierFromTestInfo','getTestIdentifier','BkXTz','sBjig','crypto','getHookRunEventData','AFTER_EACH','expect','relative','toISOString','type','bMyVA','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','afterAll','push','KHKxU','failure_data','MTdOK','File\x20path\x20could\x20not\x20be\x20found','240oKTwvq','XyRBE','CIhfu','zRQzn','err','[jestUtils]\x20Created\x20identifier:\x20','failure_type','length','FPNxH','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','85554ttJILI','_gitConfigPath','pfxkr','configureGit','root','wcTsM','toUpperCase','beforeAll','beforeEach','failure_backtrace','kjOWx','LCxJh','BEFORE_EACH','eGiCT','getFileName','getName','find','testIdentifier','split','RgrRb','caDXM','exports','_gitConfigured','extractTestFilePath','zLmPs','failed','file','createTestFrameworkData','title','[jestUtils]\x20No\x20test\x20object\x20provided','started_at','[jestUtils]\x20pickUserFrameFile\x20found\x20no\x20user\x20frame\x20(trace\x20length=','getState','rBxMV','update','ROOT_DESCRIBE_BLOCK','68358zTMCjs','match','failure_reason',':jest-','mHmdE','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','hooks','finished_at','result','yckEc','path','1613958REqnWF','cnOaH','stack','__workerDetails','../../../helpers/stackFrameUtils','TestRunSkipped','testAnalyticsId','kmBan','hook','failure_reason_expanded'];a120_0x2d06=function(){return _0xde56e3;};return a120_0x2d06();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a121_0x274b(){const _0x22dd48=['../v2/cliUtils','message','WqZaV','../../helpers/BrowserStackSetup','pKndy','stringify','stop','getPlatformName','deviceName','on\x20non-BrowserStack\x20infrastructure\x20','config','sirmu','parse','5894FhmqCs','__accessibilityOptions','1809125eyEJFK','BROWSERSTACK_PRODUCT_MAP','resolve','bootstrap','3166752grGwps','OutCY','992vemHJr','debug','SDK_SETUP','error','Accessibility\x20Automation\x20is\x20not\x20supported\x20with\x20w3c:\x20false.\x20Skipping\x20accessibility\x20for\x20this\x20run.','7368GACkVl','NlWeH','length','../utils/constants','asFhJ','fOnPR','17713600twoofU','[TRACE:node-generic]\x20Accessibility:\x20enabled=','setupBrowserstackLocal','getInstance','forEach','ehTXR','2727oQgKNB','checkAccessibilityPlatformConfig','accessibility','122cABOpA','modifyBrowserStackCaps','414XfsiYb','isChildConnected','useW3C','HvaSi','modifyBrowserStackW3CCaps','configuration','rBOur','vanilla','args','getHubUrl','getMinVersionForBrowser','IiKEg','../../helpers/testhub/testhubHandler','../v2/browserstackCLI','CNRds','EVENTS','isMainConnected','proxySettings','File\x20path\x20is\x20required','warn','path','OChLr','then','12nPGsZY','setFrameworkDetail','NODE_GENERIC','[TRACE:node-generic]\x20Error\x20enriching\x20accessibility\x20config:\x20','[TRACE:node-generic]\x20CLI\x20not\x20enabled\x20—\x20using\x20Direct\x20Flow','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','env','../../helpers/performance/performance-tester','index','\x20resolves\x20outside\x20the\x20project\x20directory\x20and\x20was\x20rejected','parallelsPerPlatform','push','SDK_CLEANUP','browserName','configPath','\x20browser\x20version\x20greater\x20than\x20','end','accessibilityOptions','16763153vLYvjy','../../helpers/accessibility-automation/helper','[TRACE:node-generic]\x20beforeExit\x20safety\x20net\x20—\x20stopping\x20binary','startsWith','eABmO','\x20doesn\x27t\x20exist','initialize','BROWSERSTACK_TEST_ACCESSIBILITY_YML','browser_version','MtttG','File\x20','kCEpY','isBrowserstackInfra','cliConfig','[TRACE:node-generic]\x20CLI\x20enabled\x20—\x20using\x20Binary\x20Flow','beforeExit','../test-runner','start','../../helpers/helper','scannerVersion','../../helpers/performance/constants','[TRACE:node-generic]\x20parallelVanillaRun\x20complete,\x20stopping\x20binary','../../helpers/utilities','browserVersion','assign','Ofets','file','4XafDZd','finalExecution','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','isRunning','oBSRH','JVFUp','eNTUk','[TRACE:node-generic]\x20Binary\x20bootstrapped,\x20starting\x20parallelVanillaRun','cwd','info','yfTFD','platforms','winstonLogger','isFinite','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'];a121_0x274b=function(){return _0x22dd48;};return a121_0x274b();}const a121_0xcb89c1=a121_0x28c1;(function(_0x306ffa,_0x3e5248){const _0x16c4ed=a121_0x28c1,_0x54d737=_0x306ffa();while(!![]){try{const _0x206c0e=parseInt(_0x16c4ed(0x15f))/0x1*(parseInt(_0x16c4ed(0x14b))/0x2)+parseInt(_0x16c4ed(0x149))/0x3+parseInt(_0x16c4ed(0x127))/0x4*(parseInt(_0x16c4ed(0x145))/0x5)+parseInt(_0x16c4ed(0x161))/0x6*(-parseInt(_0x16c4ed(0x143))/0x7)+parseInt(_0x16c4ed(0x150))/0x8*(-parseInt(_0x16c4ed(0x15c))/0x9)+-parseInt(_0x16c4ed(0x156))/0xa+-parseInt(_0x16c4ed(0x18a))/0xb*(-parseInt(_0x16c4ed(0x178))/0xc);if(_0x206c0e===_0x3e5248)break;else _0x54d737['push'](_0x54d737['shift']());}catch(_0x266f1f){_0x54d737['push'](_0x54d737['shift']());}}}(a121_0x274b,0xda18b));function a121_0x28c1(_0x17888f,_0x18cf1a){const _0x274b68=a121_0x274b();return a121_0x28c1=function(_0x28c1c6,_0x405a78){_0x28c1c6=_0x28c1c6-0x10e;let _0x31b683=_0x274b68[_0x28c1c6];return _0x31b683;},a121_0x28c1(_0x17888f,_0x18cf1a);}const fs=require('fs'),path=require(a121_0xcb89c1(0x175)),{default:BrowserStackSetup}=require(a121_0xcb89c1(0x139)),helper=require(a121_0xcb89c1(0x11e)),PerformanceTester=require(a121_0xcb89c1(0x17f)),PerformanceEvents=require(a121_0xcb89c1(0x120))[a121_0xcb89c1(0x170)],utilities=require(a121_0xcb89c1(0x122)),{parallelVanillaRun}=require(a121_0xcb89c1(0x11c)),TestHubHandler=require(a121_0xcb89c1(0x16d)),BrowserstackCLI=require(a121_0xcb89c1(0x16e)),logger=require('../../helpers/logger')[a121_0xcb89c1(0x133)],CLIUtils=require(a121_0xcb89c1(0x136)),{FRAMEWORKS}=require(a121_0xcb89c1(0x153)),accessibilityHelper=require(a121_0xcb89c1(0x18b));async function run(_0xf8a430,_0x1d0a9b,_0x20758a){const _0x27998c=a121_0xcb89c1,_0x54ebf5={'Ofets':_0x27998c(0x168),'JVFUp':_0x27998c(0x17d),'OChLr':function(_0x6afedd,_0x47e328){return _0x6afedd(_0x47e328);},'asFhJ':function(_0x30169f,_0xf7020f){return _0x30169f(_0xf7020f);},'mRSnD':function(_0x9fed8e,_0x3390af){return _0x9fed8e(_0x3390af);},'NlWeH':function(_0x1ca491,_0x37ce4a){return _0x1ca491>_0x37ce4a;},'IiKEg':_0x27998c(0x13f),'MtttG':_0x27998c(0x10e),'cjNld':_0x27998c(0x173),'eABmO':function(_0x119540,_0x36aacc){return _0x119540!==_0x36aacc;},'pKndy':function(_0x7eb7f6,_0x559c9b){return _0x7eb7f6+_0x559c9b;},'OutCY':function(_0x334ce0,_0x20e682){return _0x334ce0(_0x20e682);},'sTLAD':'Config\x20yml\x20is\x20required','HvaSi':function(_0x63c7a,_0x9c8e2){return _0x63c7a>_0x9c8e2;},'yfTFD':function(_0x23c433,_0x512fe5){return _0x23c433&&_0x512fe5;},'fOnPR':_0x27998c(0x14f),'CNRds':'../../helpers/testhub/utils','vWNYE':function(_0x24029e,_0x14fbaa){return _0x24029e(_0x14fbaa);},'kCEpY':_0x27998c(0x11a),'oBSRH':_0x27998c(0x12e),'WqZaV':'browserstack.accessibilityOptions.scannerVersion','ehTXR':function(_0x1123d7,_0x48f57b){return _0x1123d7*_0x48f57b;},'eNTUk':function(_0x20fca8,_0x52da6b,_0x5babe7){return _0x20fca8(_0x52da6b,_0x5babe7);},'rBOur':_0x27998c(0x121),'UqaWB':_0x27998c(0x17c),'sirmu':_0x27998c(0x11b)};await _0x20758a[_0x27998c(0x112)](_0xf8a430);!BrowserstackCLI['getInstance']()[_0x27998c(0x12a)]()&&await _0x20758a[_0x27998c(0x158)]();await helper['handleApp'](_0x20758a[_0x27998c(0x140)]);const _0x10a2f8=[];if(helper['isUndefined'](_0xf8a430['_'][0x1]))throw _0x54ebf5[_0x27998c(0x176)](Error,_0x54ebf5['cjNld']);const _0x5a53fb=process[_0x27998c(0x12f)](),_0xd97c34=path[_0x27998c(0x147)](_0x5a53fb,_0xf8a430['_'][0x1]);if(_0x54ebf5[_0x27998c(0x110)](_0xd97c34,_0x5a53fb)&&!_0xd97c34[_0x27998c(0x10f)](_0x54ebf5[_0x27998c(0x13a)](_0x5a53fb,path['sep'])))throw _0x54ebf5[_0x27998c(0x14a)](Error,'File\x20path\x20'+_0xf8a430['_'][0x1]+_0x27998c(0x181));if(!fs['existsSync'](_0xd97c34))throw _0x54ebf5[_0x27998c(0x14a)](Error,_0x27998c(0x116)+_0xf8a430['_'][0x1]+_0x27998c(0x111));if(!_0x20758a['config'])throw _0x54ebf5['asFhJ'](Error,_0x54ebf5['sTLAD']);const _0x2a3003=helper[_0x27998c(0x163)](_0x20758a[_0x27998c(0x140)]);_0x20758a[_0x27998c(0x140)][_0x27998c(0x132)]&&_0x54ebf5[_0x27998c(0x151)](_0x20758a[_0x27998c(0x140)]['platforms'][_0x27998c(0x152)],0x0)&&_0x20758a[_0x27998c(0x140)][_0x27998c(0x132)][_0x27998c(0x15a)]((_0x44efef,_0x4b6977)=>{const _0x2b8ac9=_0x27998c;_0x2a3003?_0x10a2f8[_0x2b8ac9(0x183)](helper[_0x2b8ac9(0x165)](_0x20758a[_0x2b8ac9(0x140)],_0x54ebf5[_0x2b8ac9(0x125)],_0x4b6977)):_0x10a2f8[_0x2b8ac9(0x183)](helper[_0x2b8ac9(0x160)](_0x20758a[_0x2b8ac9(0x140)],_0x54ebf5[_0x2b8ac9(0x125)],_0x4b6977));});let _0x5145c4,_0x50d45c;const _0x5dbc0f=[];if(_0x54ebf5[_0x27998c(0x164)](_0x10a2f8['length'],0x0))_0x10a2f8[_0x27998c(0x15a)]((_0x257bd7,_0x24a0c9)=>{const _0x40974d=_0x27998c,_0x4b9196={};_0x4b9196[_0x40974d(0x180)]=_0x24a0c9,_0x5145c4={'server':helper[_0x40974d(0x16a)](_0x20758a[_0x40974d(0x140)]),'proxySettings':_0x20758a['config'][_0x40974d(0x172)],'platform':helper[_0x40974d(0x13d)](_0x257bd7),'platformCaps':Object[_0x40974d(0x124)](_0x4b9196,_0x20758a[_0x40974d(0x140)][_0x40974d(0x132)][_0x24a0c9])};const _0x585039={'capability':_0x257bd7,..._0x5145c4};_0x585039[_0x40974d(0x126)]=_0xd97c34,_0x585039[_0x40974d(0x169)]=_0x1d0a9b;const _0x15bddd={};_0x15bddd[_0x40974d(0x166)]=_0x585039,_0x50d45c=_0x15bddd,_0x5dbc0f[_0x40974d(0x183)](_0x50d45c);});else{let _0x3e4e71;_0x2a3003?_0x3e4e71=helper[_0x27998c(0x165)](_0x20758a[_0x27998c(0x140)],_0x54ebf5[_0x27998c(0x125)],0x0):_0x3e4e71=helper['modifyBrowserStackCaps'](_0x20758a[_0x27998c(0x140)],_0x54ebf5[_0x27998c(0x125)],0x0);_0x5145c4={'server':helper[_0x27998c(0x16a)](_0x20758a[_0x27998c(0x140)]),'proxySettings':_0x20758a[_0x27998c(0x140)][_0x27998c(0x172)]};const _0x35fbca={'capability':_0x3e4e71,..._0x5145c4};_0x35fbca[_0x27998c(0x126)]=_0xd97c34,_0x35fbca[_0x27998c(0x169)]=_0x1d0a9b;const _0x5a7385={};_0x5a7385[_0x27998c(0x166)]=_0x35fbca,_0x50d45c=_0x5a7385,_0x5dbc0f[_0x27998c(0x183)](_0x50d45c);}!helper['isUndefined'](_0x20758a['config'][_0x27998c(0x189)])&&(process[_0x27998c(0x17e)][_0x27998c(0x135)]=JSON[_0x27998c(0x13b)](_0x20758a[_0x27998c(0x140)][_0x27998c(0x189)]));let _0x22f869=_0x20758a['config'][_0x27998c(0x15e)];_0x22f869=_0x22f869||accessibilityHelper[_0x27998c(0x15d)](_0x20758a[_0x27998c(0x140)]);_0x54ebf5[_0x27998c(0x131)](_0x22f869,!_0x2a3003)&&(logger[_0x27998c(0x174)](_0x54ebf5[_0x27998c(0x155)]),_0x22f869=![]);process[_0x27998c(0x17e)][_0x27998c(0x113)]=_0x22f869;if(_0x22f869){const _0x312688=helper[_0x27998c(0x118)]();(_0x20758a[_0x27998c(0x140)]['platforms']||[])['forEach'](_0x54af71=>{const _0x4409a5=_0x27998c;if(!_0x54af71||_0x54af71[_0x4409a5(0x13e)])return;const _0x325a86=_0x54af71[_0x4409a5(0x185)];if(!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x325a86)){logger[_0x4409a5(0x174)](_0x54ebf5[_0x4409a5(0x12c)]);return;}const _0x3809d6=_0x54af71[_0x4409a5(0x123)]||_0x54af71[_0x4409a5(0x114)];if(helper['isUndefined'](_0x3809d6)||!Number[_0x4409a5(0x134)](_0x54ebf5[_0x4409a5(0x176)](parseFloat,_0x54ebf5[_0x4409a5(0x154)](String,_0x3809d6))))return;const _0x22675c=accessibilityHelper[_0x4409a5(0x16b)](_0x325a86,_0x312688),_0x1be726=_0x54ebf5[_0x4409a5(0x176)](parseFloat,_0x22675c),_0x4947b1=_0x54ebf5['mRSnD'](parseFloat,_0x54ebf5[_0x4409a5(0x176)](String,_0x3809d6)),_0x34bbd3=Number['isFinite'](_0x1be726)?_0x54ebf5[_0x4409a5(0x151)](_0x4947b1,_0x1be726):accessibilityHelper['isVersionSupported'](_0x3809d6,_0x22675c);if(!_0x34bbd3){const _0x267ff6=accessibilityHelper['getBrowserDisplayName'](_0x325a86),_0x3bc7b0=_0x312688?'':_0x54ebf5[_0x4409a5(0x16c)];logger['warn'](_0x4409a5(0x129)+_0x267ff6+_0x4409a5(0x187)+_0x22675c+'\x20'+_0x3bc7b0+'.');}});}logger[_0x27998c(0x130)](_0x27998c(0x157)+_0x22f869);const _0x224e0b=BrowserstackCLI[_0x27998c(0x159)]();CLIUtils[_0x27998c(0x179)](FRAMEWORKS[_0x27998c(0x17a)],FRAMEWORKS[_0x27998c(0x17a)]);const {getProductMap:_0x47e2e9}=_0x54ebf5[_0x27998c(0x154)](require,_0x54ebf5[_0x27998c(0x16f)]);process[_0x27998c(0x17e)][_0x27998c(0x146)]=JSON[_0x27998c(0x13b)](_0x54ebf5['vWNYE'](_0x47e2e9,_0x20758a[_0x27998c(0x140)])),_0x224e0b['setBrowserstackConfig'](_0x20758a[_0x27998c(0x140)],_0x20758a[_0x27998c(0x186)],_0x20758a[_0x27998c(0x119)]);if(_0x224e0b['isCliEnabled']()){logger['info'](_0x54ebf5[_0x27998c(0x117)]);try{await _0x224e0b[_0x27998c(0x148)](),logger[_0x27998c(0x130)](_0x54ebf5[_0x27998c(0x12b)]);try{const _0x52130c=global[_0x27998c(0x144)]||{},_0x5eddd4=_0x52130c[_0x54ebf5[_0x27998c(0x138)]];if(_0x5eddd4){const _0x2b19c3=JSON[_0x27998c(0x142)](process[_0x27998c(0x17e)][_0x27998c(0x135)]||'{}');_0x2b19c3[_0x27998c(0x11f)]=_0x5eddd4,process[_0x27998c(0x17e)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x27998c(0x13b)](_0x2b19c3),logger[_0x27998c(0x130)]('[TRACE:node-generic]\x20Accessibility\x20config\x20enriched\x20with\x20binary\x20scannerVersion='+_0x5eddd4);}}catch(_0x578032){logger[_0x27998c(0x14c)](_0x27998c(0x17b)+_0x578032[_0x27998c(0x137)]);}const _0x4273fc=_0x54ebf5[_0x27998c(0x15b)](_0x20758a['config'][_0x27998c(0x132)]['length']||0x1,_0x20758a[_0x27998c(0x140)][_0x27998c(0x182)]||0x1);PerformanceTester[_0x27998c(0x188)](PerformanceEvents[_0x27998c(0x14d)]),await _0x54ebf5[_0x27998c(0x12d)](parallelVanillaRun,_0x5dbc0f,_0x4273fc),logger[_0x27998c(0x130)](_0x54ebf5[_0x27998c(0x167)]),await _0x224e0b[_0x27998c(0x13c)]();}catch(_0x2049ef){logger[_0x27998c(0x14e)]('[TRACE:node-generic]\x20Binary\x20Flow\x20error:\x20'+_0x2049ef[_0x27998c(0x137)]);try{await _0x224e0b[_0x27998c(0x13c)]();}catch(_0x655b75){logger[_0x27998c(0x14c)]('[TRACE:node-generic]\x20Error\x20during\x20stop:\x20'+_0x655b75[_0x27998c(0x137)]);}}finally{PerformanceTester[_0x27998c(0x11d)](PerformanceEvents['SDK_CLEANUP']),await utilities[_0x27998c(0x128)](_0x20758a);}}else{logger[_0x27998c(0x130)](_0x54ebf5['UqaWB']);const _0x1aea55=await TestHubHandler['launchBuild'](_0x54ebf5[_0x27998c(0x125)],_0x20758a),_0x495b53=_0x54ebf5[_0x27998c(0x15b)](_0x20758a[_0x27998c(0x140)][_0x27998c(0x132)][_0x27998c(0x152)]||0x1,_0x20758a['config'][_0x27998c(0x182)]||0x1);PerformanceTester[_0x27998c(0x188)](PerformanceEvents[_0x27998c(0x14d)]),_0x54ebf5[_0x27998c(0x12d)](parallelVanillaRun,_0x5dbc0f,_0x495b53)[_0x27998c(0x177)](_0x3b6708=>{})['finally'](async()=>{const _0xedbfbe=_0x27998c;PerformanceTester['start'](PerformanceEvents[_0xedbfbe(0x184)]),await utilities[_0xedbfbe(0x128)](_0x20758a);});}process['on'](_0x54ebf5[_0x27998c(0x141)],async()=>{const _0xfe8b64=_0x27998c;try{(_0x224e0b[_0xfe8b64(0x171)]||_0x224e0b[_0xfe8b64(0x162)])&&(logger[_0xfe8b64(0x130)](_0x54ebf5[_0xfe8b64(0x115)]),await _0x224e0b[_0xfe8b64(0x13c)]());}catch(_0x3b77c1){}});}module['exports']=run;
|
|
2
|
+
'use strict';function a121_0x4764(){const _0x2b52fc=['message','getPackageVersion','setBrowserstackConfig','File\x20path\x20is\x20required','handleApp','bcwty','QpUoR','2435805GMbkoR','1568660PuPMuk','SDK_SETUP','BROWSERSTACK_SKIP_SESSION_NAME','deviceName','[TRACE:node-generic]\x20beforeExit\x20safety\x20net\x20—\x20stopping\x20binary','getBrowserDisplayName','parallelsPerPlatform','WKZee','index','then','jLAsn','file','getPlatformName','991305QKpVud','[TRACE:node-generic]\x20Binary\x20bootstrapped,\x20starting\x20parallelVanillaRun','LXOvC','sHiST','push','configuration','../utils/constants','\x20resolves\x20outside\x20the\x20project\x20directory\x20and\x20was\x20rejected','../v2/browserstackCLI','101WOAhNi','parse','configPath','tywTe','warn','../../helpers/BrowserStackSetup','isVersionSupported','config','1328253xaCakb','[TRACE:node-generic]\x20Accessibility:\x20enabled=','assign','winstonLogger','debug','\x20browser\x20version\x20greater\x20than\x20','modifyBrowserStackW3CCaps','../../helpers/accessibility-automation/helper','proxySettings','browser_version','IWNyv','browserName','BROWSERSTACK_PRODUCT_MAP','length','stringify','finally','lKjzL','accessibilityOptions','FAOmt','SDK_CLEANUP','rMEvQ','end','BROWSERSTACK_TEST_ACCESSIBILITY_YML','[TRACE:node-generic]\x20CLI\x20enabled\x20—\x20using\x20Binary\x20Flow','EVENTS',':\x20the\x20JSON-wire\x20protocol\x20was\x20removed\x20in\x20selenium-webdriver\x204,\x20so\x20this\x20run\x20will\x20use\x20W3C.\x20Pin\x20selenium-webdriver\x203.x\x20if\x20an\x20MJSONWP\x20session\x20is\x20required.','env','info','useW3C:\x20false\x20has\x20no\x20effect\x20with\x20selenium-webdriver\x20','bootstrap','2013704ugWCDG','browserstack.accessibilityOptions.scannerVersion','launchBuild','forEach','8lpqGKN','__accessibilityOptions','qXqct','Config\x20yml\x20is\x20required','BROWSERSTACK_SKIP_SESSION_STATUS','setupBrowserstackLocal','vanilla','isFinite','exports','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','isChildConnected','3872105UEbjaq','isUndefined','vCycL','Accessibility\x20Automation\x20is\x20not\x20supported\x20with\x20w3c:\x20false.\x20Skipping\x20accessibility\x20for\x20this\x20run.','[TRACE:node-generic]\x20Error\x20during\x20stop:\x20','start','xcdhK','../test-runner','../../helpers/logger','isTrue','DHzrK','useW3C','ookQl','../../helpers/testhub/testhubHandler','getHubUrl','beforeExit','GULJp','PqmBE','NODE_GENERIC','finalExecution','6WVOmzW','../../helpers/performance/constants','isBrowserSupportedForAccessibility','../v2/cliUtils','11762PqSJRN','args','modifyBrowserStackCaps','[TRACE:node-generic]\x20Accessibility\x20config\x20enriched\x20with\x20binary\x20scannerVersion=','existsSync','stop','ZVmkp','platforms','startsWith','../../helpers/performance/performance-tester','accessibility','Mdslz','path','BECkb','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','\x20doesn\x27t\x20exist','isCliEnabled','[TRACE:node-generic]\x20parallelVanillaRun\x20complete,\x20stopping\x20binary','FiooH','isMainConnected','isBrowserstackInfra','[TRACE:node-generic]\x20Error\x20enriching\x20accessibility\x20config:\x20','browserVersion','isRunning'];a121_0x4764=function(){return _0x2b52fc;};return a121_0x4764();}function a121_0x204f(_0x312d13,_0xa7142e){const _0x476469=a121_0x4764();return a121_0x204f=function(_0x204fb3,_0x428bc8){_0x204fb3=_0x204fb3-0x105;let _0x31638c=_0x476469[_0x204fb3];return _0x31638c;},a121_0x204f(_0x312d13,_0xa7142e);}const a121_0x12c59d=a121_0x204f;(function(_0x259f8a,_0x83055d){const _0x2f283a=a121_0x204f,_0x5e5e20=_0x259f8a();while(!![]){try{const _0x2375b7=parseInt(_0x2f283a(0x143))/0x1*(parseInt(_0x2f283a(0x10d))/0x2)+-parseInt(_0x2f283a(0x14b))/0x3+-parseInt(_0x2f283a(0x169))/0x4+-parseInt(_0x2f283a(0x178))/0x5*(-parseInt(_0x2f283a(0x109))/0x6)+parseInt(_0x2f283a(0x13a))/0x7*(-parseInt(_0x2f283a(0x16d))/0x8)+parseInt(_0x2f283a(0x12c))/0x9+-parseInt(_0x2f283a(0x12d))/0xa;if(_0x2375b7===_0x83055d)break;else _0x5e5e20['push'](_0x5e5e20['shift']());}catch(_0x28823c){_0x5e5e20['push'](_0x5e5e20['shift']());}}}(a121_0x4764,0x60495));const fs=require('fs'),path=require(a121_0x12c59d(0x119)),{default:BrowserStackSetup}=require(a121_0x12c59d(0x148)),helper=require('../../helpers/helper'),PerformanceTester=require(a121_0x12c59d(0x116)),PerformanceEvents=require(a121_0x12c59d(0x10a))[a121_0x12c59d(0x163)],utilities=require('../../helpers/utilities'),{parallelVanillaRun}=require(a121_0x12c59d(0x17f)),TestHubHandler=require(a121_0x12c59d(0x185)),BrowserstackCLI=require(a121_0x12c59d(0x142)),logger=require(a121_0x12c59d(0x180))[a121_0x12c59d(0x14e)],CLIUtils=require(a121_0x12c59d(0x10c)),{FRAMEWORKS}=require(a121_0x12c59d(0x140)),accessibilityHelper=require(a121_0x12c59d(0x152));async function run(_0x27d774,_0x42f88d,_0x425089){const _0x2a2e8e=a121_0x12c59d,_0x341f46={'DHzrK':_0x2a2e8e(0x173),'JbaDv':_0x2a2e8e(0x11b),'GULJp':function(_0x2b7ec4,_0x40715f){return _0x2b7ec4(_0x40715f);},'vCycL':function(_0x4a2f41,_0xb6592e){return _0x4a2f41(_0xb6592e);},'sHiST':function(_0x596ff5,_0xfdae6c){return _0x596ff5(_0xfdae6c);},'bcwty':function(_0x1bacfb,_0x4d525f){return _0x1bacfb(_0x4d525f);},'FiooH':function(_0x256d07,_0x111bb){return _0x256d07>_0x111bb;},'WKZee':'on\x20non-BrowserStack\x20infrastructure\x20','jLAsn':_0x2a2e8e(0x131),'FAOmt':function(_0x91c82d,_0x3281ac){return _0x91c82d(_0x3281ac);},'VkGqB':_0x2a2e8e(0x128),'Luels':function(_0x1195c3,_0x585cc4){return _0x1195c3!==_0x585cc4;},'qXqct':function(_0x3437eb,_0x3a0076){return _0x3437eb+_0x3a0076;},'xcdhK':function(_0x2ce5c3,_0x227dd9){return _0x2ce5c3(_0x227dd9);},'IWNyv':_0x2a2e8e(0x170),'dWLcs':'selenium-webdriver','QpUoR':function(_0x32487b,_0x54a4d8,_0x52dd53){return _0x32487b(_0x54a4d8,_0x52dd53);},'rvdsI':function(_0x185dc0,_0x3a434e){return _0x185dc0>=_0x3a434e;},'rMEvQ':function(_0x309cb6,_0x560570){return _0x309cb6>_0x560570;},'uzmZX':function(_0x2ac5ff,_0x5a7512){return _0x2ac5ff&&_0x5a7512;},'Mdslz':_0x2a2e8e(0x17b),'tywTe':function(_0xb30f14,_0x5308ae){return _0xb30f14(_0x5308ae);},'ookQl':'../../helpers/testhub/utils','bvCLc':_0x2a2e8e(0x162),'ZVmkp':_0x2a2e8e(0x13b),'klcqV':_0x2a2e8e(0x16a),'BECkb':function(_0x217cef,_0x3d57b5){return _0x217cef*_0x3d57b5;},'PqmBE':_0x2a2e8e(0x11e),'fIZPo':'[TRACE:node-generic]\x20CLI\x20not\x20enabled\x20—\x20using\x20Direct\x20Flow','lKjzL':function(_0x3fa71b,_0x5c768b){return _0x3fa71b*_0x5c768b;},'LXOvC':_0x2a2e8e(0x187)};await _0x425089['initialize'](_0x27d774);!BrowserstackCLI['getInstance']()[_0x2a2e8e(0x124)]()&&await _0x425089[_0x2a2e8e(0x172)]();await helper[_0x2a2e8e(0x129)](_0x425089[_0x2a2e8e(0x14a)]);const _0xf190f0=[];if(helper['isUndefined'](_0x27d774['_'][0x1]))throw _0x341f46[_0x2a2e8e(0x15d)](Error,_0x341f46['VkGqB']);const _0x129360=process['cwd'](),_0x5a4a48=path['resolve'](_0x129360,_0x27d774['_'][0x1]);if(_0x341f46['Luels'](_0x5a4a48,_0x129360)&&!_0x5a4a48[_0x2a2e8e(0x115)](_0x341f46[_0x2a2e8e(0x16f)](_0x129360,path['sep'])))throw _0x341f46[_0x2a2e8e(0x17e)](Error,'File\x20path\x20'+_0x27d774['_'][0x1]+_0x2a2e8e(0x141));if(!fs[_0x2a2e8e(0x111)](_0x5a4a48))throw _0x341f46[_0x2a2e8e(0x13d)](Error,'File\x20'+_0x27d774['_'][0x1]+_0x2a2e8e(0x11c));if(!_0x425089[_0x2a2e8e(0x14a)])throw _0x341f46['xcdhK'](Error,_0x341f46[_0x2a2e8e(0x155)]);const _0x36a756=helper[_0x2a2e8e(0x183)](_0x425089['config']);if(!_0x36a756){const _0x252e88=helper[_0x2a2e8e(0x126)](_0x341f46['dWLcs']),_0x5c7000=_0x341f46[_0x2a2e8e(0x12b)](parseInt,_0x252e88,0xa);Number[_0x2a2e8e(0x174)](_0x5c7000)&&_0x341f46['rvdsI'](_0x5c7000,0x4)&&logger[_0x2a2e8e(0x147)](_0x2a2e8e(0x167)+_0x252e88+_0x2a2e8e(0x164));}_0x425089[_0x2a2e8e(0x14a)][_0x2a2e8e(0x114)]&&_0x341f46[_0x2a2e8e(0x15f)](_0x425089[_0x2a2e8e(0x14a)][_0x2a2e8e(0x114)][_0x2a2e8e(0x158)],0x0)&&_0x425089[_0x2a2e8e(0x14a)]['platforms'][_0x2a2e8e(0x16c)]((_0x1424f0,_0x4fc969)=>{const _0x2a8c96=_0x2a2e8e;_0x36a756?_0xf190f0[_0x2a8c96(0x13e)](helper[_0x2a8c96(0x151)](_0x425089[_0x2a8c96(0x14a)],_0x341f46[_0x2a8c96(0x182)],_0x4fc969)):_0xf190f0[_0x2a8c96(0x13e)](helper[_0x2a8c96(0x10f)](_0x425089[_0x2a8c96(0x14a)],_0x341f46[_0x2a8c96(0x182)],_0x4fc969));});let _0x13250a,_0x403dc0;const _0xa67e92=[];if(_0x341f46[_0x2a2e8e(0x11f)](_0xf190f0[_0x2a2e8e(0x158)],0x0))_0xf190f0['forEach']((_0x30d11b,_0x2f4dd7)=>{const _0x22ae49=_0x2a2e8e,_0x3fdd47={};_0x3fdd47[_0x22ae49(0x135)]=_0x2f4dd7,_0x13250a={'server':helper[_0x22ae49(0x186)](_0x425089['config']),'proxySettings':_0x425089[_0x22ae49(0x14a)]['proxySettings'],'platform':helper[_0x22ae49(0x139)](_0x30d11b),'platformCaps':Object[_0x22ae49(0x14d)](_0x3fdd47,_0x425089[_0x22ae49(0x14a)]['platforms'][_0x2f4dd7])};const _0x5b956b={'capability':_0x30d11b,..._0x13250a};_0x5b956b[_0x22ae49(0x138)]=_0x5a4a48,_0x5b956b[_0x22ae49(0x10e)]=_0x42f88d;const _0x1a938f={};_0x1a938f[_0x22ae49(0x13f)]=_0x5b956b,_0x403dc0=_0x1a938f,_0xa67e92[_0x22ae49(0x13e)](_0x403dc0);});else{let _0x507ccf;_0x36a756?_0x507ccf=helper['modifyBrowserStackW3CCaps'](_0x425089[_0x2a2e8e(0x14a)],_0x341f46[_0x2a2e8e(0x182)],0x0):_0x507ccf=helper[_0x2a2e8e(0x10f)](_0x425089[_0x2a2e8e(0x14a)],_0x341f46[_0x2a2e8e(0x182)],0x0);_0x13250a={'server':helper[_0x2a2e8e(0x186)](_0x425089[_0x2a2e8e(0x14a)]),'proxySettings':_0x425089[_0x2a2e8e(0x14a)][_0x2a2e8e(0x153)]};const _0x2ff434={'capability':_0x507ccf,..._0x13250a};_0x2ff434[_0x2a2e8e(0x138)]=_0x5a4a48,_0x2ff434['args']=_0x42f88d;const _0x355578={};_0x355578[_0x2a2e8e(0x13f)]=_0x2ff434,_0x403dc0=_0x355578,_0xa67e92[_0x2a2e8e(0x13e)](_0x403dc0);}const _0x5f45ef=_0x425089[_0x2a2e8e(0x14a)]['testContextOptions']||{};process[_0x2a2e8e(0x165)][_0x2a2e8e(0x12f)]=_0x341f46['vCycL'](String,helper[_0x2a2e8e(0x181)](_0x5f45ef['skipSessionName'])),process[_0x2a2e8e(0x165)][_0x2a2e8e(0x171)]=_0x341f46['sHiST'](String,helper[_0x2a2e8e(0x181)](_0x5f45ef['skipSessionStatus']));!helper[_0x2a2e8e(0x179)](_0x425089['config'][_0x2a2e8e(0x15c)])&&(process['env'][_0x2a2e8e(0x176)]=JSON[_0x2a2e8e(0x159)](_0x425089[_0x2a2e8e(0x14a)][_0x2a2e8e(0x15c)]));let _0x47faab=_0x425089['config'][_0x2a2e8e(0x117)];_0x47faab=_0x47faab||accessibilityHelper['checkAccessibilityPlatformConfig'](_0x425089['config']);_0x341f46['uzmZX'](_0x47faab,!_0x36a756)&&(logger['warn'](_0x341f46[_0x2a2e8e(0x118)]),_0x47faab=![]);process[_0x2a2e8e(0x165)][_0x2a2e8e(0x161)]=_0x47faab;if(_0x47faab){const _0x4cd209=helper[_0x2a2e8e(0x121)]();(_0x425089[_0x2a2e8e(0x14a)][_0x2a2e8e(0x114)]||[])['forEach'](_0x51bd12=>{const _0x4ce3eb=_0x2a2e8e;if(!_0x51bd12||_0x51bd12[_0x4ce3eb(0x130)])return;const _0x63e179=_0x51bd12[_0x4ce3eb(0x156)];if(!accessibilityHelper[_0x4ce3eb(0x10b)](_0x63e179)){logger[_0x4ce3eb(0x147)](_0x341f46['JbaDv']);return;}const _0x15029b=_0x51bd12[_0x4ce3eb(0x123)]||_0x51bd12[_0x4ce3eb(0x154)];if(helper[_0x4ce3eb(0x179)](_0x15029b)||!Number[_0x4ce3eb(0x174)](_0x341f46[_0x4ce3eb(0x105)](parseFloat,_0x341f46['vCycL'](String,_0x15029b))))return;const _0x1034ec=accessibilityHelper['getMinVersionForBrowser'](_0x63e179,_0x4cd209),_0x4358e0=_0x341f46[_0x4ce3eb(0x17a)](parseFloat,_0x1034ec),_0xec02b4=_0x341f46[_0x4ce3eb(0x13d)](parseFloat,_0x341f46['bcwty'](String,_0x15029b)),_0x911369=Number[_0x4ce3eb(0x174)](_0x4358e0)?_0x341f46[_0x4ce3eb(0x11f)](_0xec02b4,_0x4358e0):accessibilityHelper[_0x4ce3eb(0x149)](_0x15029b,_0x1034ec);if(!_0x911369){const _0x5f1828=accessibilityHelper[_0x4ce3eb(0x132)](_0x63e179),_0x253b25=_0x4cd209?'':_0x341f46[_0x4ce3eb(0x134)];logger['warn']('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x5f1828+_0x4ce3eb(0x150)+_0x1034ec+'\x20'+_0x253b25+'.');}});}logger[_0x2a2e8e(0x166)](_0x2a2e8e(0x14c)+_0x47faab);const _0x271084=BrowserstackCLI['getInstance']();CLIUtils['setFrameworkDetail'](FRAMEWORKS[_0x2a2e8e(0x107)],FRAMEWORKS[_0x2a2e8e(0x107)]);const {getProductMap:_0xd91a66}=_0x341f46[_0x2a2e8e(0x146)](require,_0x341f46[_0x2a2e8e(0x184)]);process[_0x2a2e8e(0x165)][_0x2a2e8e(0x157)]=JSON[_0x2a2e8e(0x159)](_0x341f46[_0x2a2e8e(0x12a)](_0xd91a66,_0x425089[_0x2a2e8e(0x14a)])),_0x271084[_0x2a2e8e(0x127)](_0x425089[_0x2a2e8e(0x14a)],_0x425089[_0x2a2e8e(0x145)],_0x425089['cliConfig']);if(_0x271084[_0x2a2e8e(0x11d)]()){logger[_0x2a2e8e(0x166)](_0x341f46['bvCLc']);try{await _0x271084[_0x2a2e8e(0x168)](),logger['info'](_0x341f46[_0x2a2e8e(0x113)]);try{const _0xefec49=global[_0x2a2e8e(0x16e)]||{},_0x28fac1=_0xefec49[_0x341f46['klcqV']];if(_0x28fac1){const _0x23069c=JSON[_0x2a2e8e(0x144)](process[_0x2a2e8e(0x165)][_0x2a2e8e(0x176)]||'{}');_0x23069c['scannerVersion']=_0x28fac1,process[_0x2a2e8e(0x165)][_0x2a2e8e(0x176)]=JSON['stringify'](_0x23069c),logger['info'](_0x2a2e8e(0x110)+_0x28fac1);}}catch(_0x588896){logger[_0x2a2e8e(0x14f)](_0x2a2e8e(0x122)+_0x588896['message']);}const _0x39d0b9=_0x341f46[_0x2a2e8e(0x11a)](_0x425089['config']['platforms']['length']||0x1,_0x425089[_0x2a2e8e(0x14a)][_0x2a2e8e(0x133)]||0x1);PerformanceTester['end'](PerformanceEvents[_0x2a2e8e(0x12e)]),await _0x341f46[_0x2a2e8e(0x12b)](parallelVanillaRun,_0xa67e92,_0x39d0b9),logger[_0x2a2e8e(0x166)](_0x341f46[_0x2a2e8e(0x106)]),await _0x271084[_0x2a2e8e(0x112)]();}catch(_0x492450){logger['error']('[TRACE:node-generic]\x20Binary\x20Flow\x20error:\x20'+_0x492450['message']);try{await _0x271084['stop']();}catch(_0x2c5741){logger[_0x2a2e8e(0x14f)](_0x2a2e8e(0x17c)+_0x2c5741[_0x2a2e8e(0x125)]);}}finally{PerformanceTester['start'](PerformanceEvents[_0x2a2e8e(0x15e)]),await utilities[_0x2a2e8e(0x108)](_0x425089);}}else{logger[_0x2a2e8e(0x166)](_0x341f46['fIZPo']);const _0x447208=await TestHubHandler[_0x2a2e8e(0x16b)](_0x341f46['DHzrK'],_0x425089),_0x48261f=_0x341f46[_0x2a2e8e(0x15b)](_0x425089[_0x2a2e8e(0x14a)][_0x2a2e8e(0x114)][_0x2a2e8e(0x158)]||0x1,_0x425089[_0x2a2e8e(0x14a)][_0x2a2e8e(0x133)]||0x1);PerformanceTester[_0x2a2e8e(0x160)](PerformanceEvents['SDK_SETUP']),_0x341f46[_0x2a2e8e(0x12b)](parallelVanillaRun,_0xa67e92,_0x48261f)[_0x2a2e8e(0x136)](_0x19ea2a=>{})[_0x2a2e8e(0x15a)](async()=>{const _0x13cd8d=_0x2a2e8e;PerformanceTester[_0x13cd8d(0x17d)](PerformanceEvents[_0x13cd8d(0x15e)]),await utilities[_0x13cd8d(0x108)](_0x425089);});}process['on'](_0x341f46[_0x2a2e8e(0x13c)],async()=>{const _0x51cf2d=_0x2a2e8e;try{(_0x271084[_0x51cf2d(0x120)]||_0x271084[_0x51cf2d(0x177)])&&(logger['info'](_0x341f46[_0x51cf2d(0x137)]),await _0x271084[_0x51cf2d(0x112)]());}catch(_0x48c104){}});}module[a121_0x12c59d(0x175)]=run;
|
package/src/browserStackSdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a122_0x353915=a122_0x249c;(function(_0x1f7e0d,_0x1c3700){const _0x3a0e1a=a122_0x249c,_0x216ed6=_0x1f7e0d();while(!![]){try{const _0x3cb582=parseInt(_0x3a0e1a(0xd4))/0x1*(parseInt(_0x3a0e1a(0xd7))/0x2)+parseInt(_0x3a0e1a(0xbc))/0x3+parseInt(_0x3a0e1a(0xba))/0x4+-parseInt(_0x3a0e1a(0xc2))/0x5*(parseInt(_0x3a0e1a(0xb9))/0x6)+-parseInt(_0x3a0e1a(0xc6))/0x7+-parseInt(_0x3a0e1a(0xcb))/0x8*(parseInt(_0x3a0e1a(0xda))/0x9)+parseInt(_0x3a0e1a(0xd9))/0xa*(parseInt(_0x3a0e1a(0xb8))/0xb);if(_0x3cb582===_0x1c3700)break;else _0x216ed6['push'](_0x216ed6['shift']());}catch(_0x3a7952){_0x216ed6['push'](_0x216ed6['shift']());}}}(a122_0x3a42,0x9bfc8));function a122_0x249c(_0x41c9e8,_0x226808){const _0x3a42be=a122_0x3a42();return a122_0x249c=function(_0x249c00,_0x4f2262){_0x249c00=_0x249c00-0xb3;let _0x5540dc=_0x3a42be[_0x249c00];return _0x5540dc;},a122_0x249c(_0x41c9e8,_0x226808);}const TestMetadata=require(a122_0x353915(0xcd));function a122_0x3a42(){const _0x2fe4f7=['device','uEUpx','285301GYckKF','osVersion','browserVersion','2FnHnjz','yXCbQ','900tRbRxi','9ZHqoYQ','exports','customVariables','dWmcv','Zyvip','bJjoV','27049NIXIMu','137922MqFYlt','594504GccInB','Gzosa','2905386oIfhDJ','XmVwJ','browser','TnKxo','mhpQu','browser_version','135FJZMoq','deviceName','bDDFw','platformVersion','937167JNloMO','os_version','getCurrentPlatform','HdFtR','browserName','1841992Qvzjly','platform','./helpers/metadata','__platformCaps','OyzIM','set','xeLXs'];a122_0x3a42=function(){return _0x2fe4f7;};return a122_0x3a42();}class BrowserStackSdk{static[a122_0x353915(0xc8)](){const _0x4afb2f=a122_0x353915,_0x55f576={};_0x55f576[_0x4afb2f(0xcf)]=_0x4afb2f(0xc7),_0x55f576['bJjoV']=_0x4afb2f(0xd5),_0x55f576[_0x4afb2f(0xc4)]=_0x4afb2f(0xbe),_0x55f576[_0x4afb2f(0xbd)]=_0x4afb2f(0xca),_0x55f576['HdFtR']=_0x4afb2f(0xc1),_0x55f576[_0x4afb2f(0xd8)]=_0x4afb2f(0xd6),_0x55f576['uEUpx']=_0x4afb2f(0xd2),_0x55f576[_0x4afb2f(0xb6)]=_0x4afb2f(0xc3),_0x55f576[_0x4afb2f(0xd1)]=_0x4afb2f(0xcc),_0x55f576[_0x4afb2f(0xb5)]='platformName',_0x55f576[_0x4afb2f(0xbb)]='platform_version',_0x55f576['TnKxo']=_0x4afb2f(0xc5),_0x55f576['mhpQu']=_0x4afb2f(0xb4);const _0x3349d2=_0x55f576,_0x4de1f9={};if(global[_0x4afb2f(0xce)]){const _0x45ed75=global[_0x4afb2f(0xce)],_0x20c6b9=_0x45ed75[_0x3349d2[_0x4afb2f(0xcf)]]||_0x45ed75[_0x3349d2['bJjoV']],_0x322b9e=_0x45ed75[_0x3349d2[_0x4afb2f(0xc4)]]||_0x45ed75[_0x3349d2[_0x4afb2f(0xbd)]],_0xb5d6d8=_0x45ed75[_0x3349d2[_0x4afb2f(0xc9)]]||_0x45ed75[_0x3349d2[_0x4afb2f(0xd8)]],_0x4b6fa5=_0x45ed75[_0x3349d2[_0x4afb2f(0xd3)]]||_0x45ed75[_0x3349d2[_0x4afb2f(0xb6)]],_0x3de565=_0x45ed75[_0x3349d2[_0x4afb2f(0xd1)]]||_0x45ed75[_0x3349d2[_0x4afb2f(0xb5)]],_0x5ac6c9=_0x45ed75[_0x3349d2[_0x4afb2f(0xbb)]]||_0x45ed75[_0x3349d2[_0x4afb2f(0xbf)]];_0x45ed75['os']&&(_0x4de1f9['os']=_0x45ed75['os']),_0x20c6b9&&(_0x4de1f9[_0x3349d2[_0x4afb2f(0xb7)]]=_0x20c6b9),_0x322b9e&&(_0x4de1f9[_0x3349d2[_0x4afb2f(0xbd)]]=_0x322b9e),_0xb5d6d8&&(_0x4de1f9[_0x3349d2[_0x4afb2f(0xd8)]]=_0xb5d6d8),_0x4b6fa5&&(_0x4de1f9[_0x3349d2['Zyvip']]=_0x4b6fa5),_0x3de565&&(_0x4de1f9[_0x3349d2[_0x4afb2f(0xb5)]]=_0x3de565),_0x5ac6c9&&(_0x4de1f9[_0x3349d2['TnKxo']]=_0x5ac6c9),_0x45ed75[_0x3349d2[_0x4afb2f(0xc0)]]&&(_0x4de1f9[_0x3349d2[_0x4afb2f(0xc0)]]=_0x45ed75[_0x3349d2[_0x4afb2f(0xc0)]]);}return _0x4de1f9;}static['setTestMetadata'](_0x1f709d={}){const _0x59a0e8=a122_0x353915;TestMetadata[_0x59a0e8(0xd0)](_0x1f709d);}}module[a122_0x353915(0xb3)]=BrowserStackSdk;
|