browserstack-node-sdk 1.65.1 → 1.65.3
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
|
+
const a116_0x4095b2=a116_0xebfa;function a116_0xebfa(_0x153e8b,_0x34b13e){const _0x33382f=a116_0x3338();return a116_0xebfa=function(_0xebfa95,_0x2ede71){_0xebfa95=_0xebfa95-0x10d;let _0x3a3a8f=_0x33382f[_0xebfa95];return _0x3a3a8f;},a116_0xebfa(_0x153e8b,_0x34b13e);}(function(_0x82da15,_0x30b075){const _0x192382=a116_0xebfa,_0x1a27c3=_0x82da15();while(!![]){try{const _0x545b85=-parseInt(_0x192382(0x118))/0x1+parseInt(_0x192382(0x111))/0x2*(-parseInt(_0x192382(0x113))/0x3)+parseInt(_0x192382(0x116))/0x4*(-parseInt(_0x192382(0x112))/0x5)+parseInt(_0x192382(0x10e))/0x6*(-parseInt(_0x192382(0x11a))/0x7)+parseInt(_0x192382(0x11e))/0x8*(parseInt(_0x192382(0x11d))/0x9)+parseInt(_0x192382(0x11f))/0xa+-parseInt(_0x192382(0x115))/0xb*(-parseInt(_0x192382(0x114))/0xc);if(_0x545b85===_0x30b075)break;else _0x1a27c3['push'](_0x1a27c3['shift']());}catch(_0x590ea3){_0x1a27c3['push'](_0x1a27c3['shift']());}}}(a116_0x3338,0x71576));const a116_0x3be833={};a116_0x3be833[a116_0x4095b2(0x10d)]=0x0,a116_0x3be833[a116_0x4095b2(0x110)]=function(){const _0x14fb92=a116_0x4095b2,_0x391247={};_0x391247[_0x14fb92(0x10f)]=_0x14fb92(0x11c);const _0x531429=_0x391247;return _0x531429[_0x14fb92(0x10f)];};const a116_0x4dbdc9={};a116_0x4dbdc9[a116_0x4095b2(0x10d)]=0x1,a116_0x4dbdc9[a116_0x4095b2(0x110)]=function(){const _0x36d175=a116_0x4095b2,_0xc6a76f={};_0xc6a76f[_0x36d175(0x121)]=_0x36d175(0x120);const _0x2856f1=_0xc6a76f;return _0x2856f1['KTSnl'];};function a116_0x3338(){const _0x592c3d=['417221kShlGl','values','HookState.NONE','4745151EVryKV','8vnxGvb','1238170haWHGi','HookState.PRE','KTSnl','value','66cqqENd','nmwgF','toString','596BxQmfU','3999885TieOEu','9147jlSOHb','24624TdAUMk','13926FxrqZM','4ouWCas','AxHEr','420430ERnzMq','freeze'];a116_0x3338=function(){return _0x592c3d;};return a116_0x3338();}const a116_0x5cc756={};a116_0x5cc756[a116_0x4095b2(0x10d)]=0x2,a116_0x5cc756[a116_0x4095b2(0x110)]=function(){const _0x28913e=a116_0x4095b2,_0x4f507f={};_0x4f507f[_0x28913e(0x117)]='HookState.POST';const _0x58fad2=_0x4f507f;return _0x58fad2[_0x28913e(0x117)];};const HookState=Object[a116_0x4095b2(0x119)]({'NONE':a116_0x3be833,'PRE':a116_0x4dbdc9,'POST':a116_0x5cc756,'fromValue'(_0x1ed001){const _0x54855a=a116_0x4095b2;return Object[_0x54855a(0x11b)](HookState)['find'](_0x35ced4=>_0x35ced4[_0x54855a(0x10d)]===_0x1ed001);}});module['exports']=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0x5f3bfd=a117_0x5842;(function(_0x20d9ad,_0x4f9336){const _0x47481e=a117_0x5842,_0x5eb87a=_0x20d9ad();while(!![]){try{const _0x5ae3bd=-parseInt(_0x47481e(0xbc))/0x1+-parseInt(_0x47481e(0xc2))/0x2+-parseInt(_0x47481e(0xcf))/0x3*(parseInt(_0x47481e(0xbf))/0x4)+-parseInt(_0x47481e(0xd5))/0x5*(-parseInt(_0x47481e(0xde))/0x6)+parseInt(_0x47481e(0xc8))/0x7*(parseInt(_0x47481e(0xc0))/0x8)+-parseInt(_0x47481e(0xba))/0x9*(parseInt(_0x47481e(0xd7))/0xa)+parseInt(_0x47481e(0xbd))/0xb*(parseInt(_0x47481e(0xc4))/0xc);if(_0x5ae3bd===_0x4f9336)break;else _0x5eb87a['push'](_0x5eb87a['shift']());}catch(_0x92b422){_0x5eb87a['push'](_0x5eb87a['shift']());}}}(a117_0x9fd6,0xdb887));const a117_0x58c29b={};a117_0x58c29b['value']=0x0,a117_0x58c29b[a117_0x5f3bfd(0xd0)]=function(){const _0x35fceb=a117_0x5f3bfd,_0x16b301={};_0x16b301[_0x35fceb(0xca)]=_0x35fceb(0xc1);const _0x4d9ca4=_0x16b301;return _0x4d9ca4['OQuYe'];};const a117_0x5dcaad={};a117_0x5dcaad[a117_0x5f3bfd(0xcd)]=0x1,a117_0x5dcaad[a117_0x5f3bfd(0xd0)]=function(){const _0x3fd044=a117_0x5f3bfd,_0x21d131={};_0x21d131[_0x3fd044(0xd1)]=_0x3fd044(0xc7);const _0x58818b=_0x21d131;return _0x58818b[_0x3fd044(0xd1)];};const a117_0x1b3d94={};a117_0x1b3d94['value']=0x2,a117_0x1b3d94[a117_0x5f3bfd(0xd0)]=function(){const _0xfc89bd=a117_0x5f3bfd,_0x52a249={};_0x52a249[_0xfc89bd(0xc5)]='TestFrameworkState.LOG';const _0xe285df=_0x52a249;return _0xe285df['wbHAw'];};const a117_0x51bf21={};a117_0x51bf21['value']=0x3,a117_0x51bf21[a117_0x5f3bfd(0xd0)]=function(){const _0x32f092=a117_0x5f3bfd,_0x3c1420={};_0x3c1420['QbDhm']=_0x32f092(0xc6);const _0x5ed1b5=_0x3c1420;return _0x5ed1b5['QbDhm'];};const a117_0x41c407={};a117_0x41c407[a117_0x5f3bfd(0xcd)]=0x4,a117_0x41c407[a117_0x5f3bfd(0xd0)]=function(){const _0x11c2da=a117_0x5f3bfd,_0x6d7ba={};_0x6d7ba[_0x11c2da(0xd2)]=_0x11c2da(0xcb);const _0x1a8d53=_0x6d7ba;return _0x1a8d53[_0x11c2da(0xd2)];};function a117_0x9fd6(){const _0x326302=['TvuYH','imSCt','TestFrameworkState.STEP','5dMMDVt','TestFrameworkState.AFTER_EACH','760cUFDqI','nxzzc','TestFrameworkState.TEST_STEP','freeze','TestFrameworkState.BEFORE_EACH','find','BqFXx','9523524uslQfD','100908LWKRCA','zUArJ','336843tgSswu','88759meSQBa','TestFrameworkState.AFTER_ALL','761868pFLiSS','1672uiKVie','TestFrameworkState.NONE','3483244wPNXKB','wYhvR','1464cyJSyd','wbHAw','TestFrameworkState.SETUP_FIXTURE','TestFrameworkState.BEFORE_ALL','48517UFLuzf','fStyj','OQuYe','TestFrameworkState.INIT_TEST','ivFcJ','value','kdGOE','3WgODIV','toString','ERuZV'];a117_0x9fd6=function(){return _0x326302;};return a117_0x9fd6();}const a117_0x5575f6={};a117_0x5575f6[a117_0x5f3bfd(0xcd)]=0x5,a117_0x5575f6[a117_0x5f3bfd(0xd0)]=function(){const _0x29d300=a117_0x5f3bfd,_0x4540c2={};_0x4540c2[_0x29d300(0xd8)]=_0x29d300(0xdb);const _0x576196=_0x4540c2;return _0x576196[_0x29d300(0xd8)];};const a117_0x140a3a={};a117_0x140a3a['value']=0x6,a117_0x140a3a[a117_0x5f3bfd(0xd0)]=function(){const _0x5ddffc=a117_0x5f3bfd,_0x4595={};_0x4595[_0x5ddffc(0xbb)]=_0x5ddffc(0xd6);const _0xa3fac8=_0x4595;return _0xa3fac8[_0x5ddffc(0xbb)];};const a117_0x4d736e={};a117_0x4d736e[a117_0x5f3bfd(0xcd)]=0x7,a117_0x4d736e[a117_0x5f3bfd(0xd0)]=function(){const _0x53c519=a117_0x5f3bfd,_0x2c4b43={};_0x2c4b43[_0x53c519(0xc3)]='TestFrameworkState.TEST';const _0x3ed880=_0x2c4b43;return _0x3ed880[_0x53c519(0xc3)];};const a117_0x43e1c6={};a117_0x43e1c6[a117_0x5f3bfd(0xcd)]=0x8,a117_0x43e1c6[a117_0x5f3bfd(0xd0)]=function(){const _0x17b5ee=a117_0x5f3bfd,_0xeffa46={};_0xeffa46['imSCt']=_0x17b5ee(0xd4);const _0x44c505=_0xeffa46;return _0x44c505[_0x17b5ee(0xd3)];};const a117_0x1a855e={};a117_0x1a855e[a117_0x5f3bfd(0xcd)]=0x9,a117_0x1a855e[a117_0x5f3bfd(0xd0)]=function(){const _0x1e80db=a117_0x5f3bfd,_0x2f02af={};_0x2f02af[_0x1e80db(0xc9)]='TestFrameworkState.LOG_REPORT';const _0x49d95c=_0x2f02af;return _0x49d95c[_0x1e80db(0xc9)];};const a117_0x2c6178={};a117_0x2c6178[a117_0x5f3bfd(0xcd)]=0xa,a117_0x2c6178['toString']=function(){const _0x56951c=a117_0x5f3bfd,_0x476e58={};_0x476e58[_0x56951c(0xce)]=_0x56951c(0xbe);const _0x474758=_0x476e58;return _0x474758[_0x56951c(0xce)];};const a117_0x1cab8e={};a117_0x1cab8e[a117_0x5f3bfd(0xcd)]=0xb,a117_0x1cab8e[a117_0x5f3bfd(0xd0)]=function(){const _0x12a7b3=a117_0x5f3bfd,_0x1b6a6a={};_0x1b6a6a[_0x12a7b3(0xdd)]='TestFrameworkState.TEST_SCREENSHOT';const _0x1150ab=_0x1b6a6a;return _0x1150ab[_0x12a7b3(0xdd)];};const a117_0x48a405={};a117_0x48a405[a117_0x5f3bfd(0xcd)]=0xc,a117_0x48a405[a117_0x5f3bfd(0xd0)]=function(){const _0x4e5b98=a117_0x5f3bfd,_0x4e0cc6={};_0x4e0cc6[_0x4e5b98(0xcc)]=_0x4e5b98(0xd9);const _0x41a8b7=_0x4e0cc6;return _0x41a8b7[_0x4e5b98(0xcc)];};function a117_0x5842(_0x22ae53,_0xb4c78d){const _0x9fd68=a117_0x9fd6();return a117_0x5842=function(_0x584287,_0x4de0cd){_0x584287=_0x584287-0xba;let _0x127f7c=_0x9fd68[_0x584287];return _0x127f7c;},a117_0x5842(_0x22ae53,_0xb4c78d);}const TestFrameworkState=Object[a117_0x5f3bfd(0xda)]({'NONE':a117_0x58c29b,'BEFORE_ALL':a117_0x5dcaad,'LOG':a117_0x1b3d94,'SETUP_FIXTURE':a117_0x51bf21,'INIT_TEST':a117_0x41c407,'BEFORE_EACH':a117_0x5575f6,'AFTER_EACH':a117_0x140a3a,'TEST':a117_0x4d736e,'STEP':a117_0x43e1c6,'LOG_REPORT':a117_0x1a855e,'AFTER_ALL':a117_0x2c6178,'TEST_SCREENSHOT':a117_0x1cab8e,'TEST_STEP':a117_0x48a405,'fromValue'(_0x5d0b47){const _0x464ff5=a117_0x5f3bfd;return Object['values'](TestFrameworkState)[_0x464ff5(0xdc)](_0x29169a=>_0x29169a[_0x464ff5(0xcd)]===_0x5d0b47);}});module['exports']=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a118_0x4f8d2c=a118_0x1729;(function(_0x1f1483,_0x20d8da){const _0x59268a=a118_0x1729,_0x317b32=_0x1f1483();while(!![]){try{const _0x1d00a5=parseInt(_0x59268a(0xf6))/0x1*(-parseInt(_0x59268a(0xe8))/0x2)+parseInt(_0x59268a(0x93))/0x3*(-parseInt(_0x59268a(0x8f))/0x4)+parseInt(_0x59268a(0x72))/0x5+-parseInt(_0x59268a(0xb0))/0x6*(parseInt(_0x59268a(0x92))/0x7)+parseInt(_0x59268a(0xd2))/0x8*(parseInt(_0x59268a(0x71))/0x9)+parseInt(_0x59268a(0x9f))/0xa*(-parseInt(_0x59268a(0x89))/0xb)+parseInt(_0x59268a(0x90))/0xc;if(_0x1d00a5===_0x20d8da)break;else _0x317b32['push'](_0x317b32['shift']());}catch(_0x20664f){_0x317b32['push'](_0x317b32['shift']());}}}(a118_0x1117,0x30f89));const os=require('os'),fs=require('fs'),path=require(a118_0x4f8d2c(0xf8)),util=require(a118_0x4f8d2c(0xe9)),BrowserstackCLI=require('./browserstackCLI'),https=require(a118_0x4f8d2c(0x85)),http=require(a118_0x4f8d2c(0xb3)),AutomationFramework=require(a118_0x4f8d2c(0xa7)),PlaywrightDriverModule=require(a118_0x4f8d2c(0x74)),TestInfo=require(a118_0x4f8d2c(0xc9)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require('../../helpers/classLogger.js');class uploadAttachmentsManager{static [a118_0x4f8d2c(0x75)]=createClassLogger(a118_0x4f8d2c(0xe4));static[a118_0x4f8d2c(0xda)](_0x38351e,_0xf7d3a7=![]){const _0x55f242=a118_0x4f8d2c,_0x59fd40={};_0x59fd40[_0x55f242(0xba)]=function(_0x46e7d9,_0x54e496){return _0x46e7d9/_0x54e496;},_0x59fd40['POGTJ']=function(_0x11ba07,_0x4c2ed2){return _0x11ba07*_0x4c2ed2;},_0x59fd40[_0x55f242(0xa9)]=function(_0x1c3385,_0x1e97ed){return _0x1c3385>_0x1e97ed;},_0x59fd40[_0x55f242(0x73)]=_0x55f242(0x7e),_0x59fd40['lZqZS']=_0x55f242(0xdf),_0x59fd40[_0x55f242(0xec)]=function(_0xfb7c63,_0x3ed221){return _0xfb7c63===_0x3ed221;},_0x59fd40[_0x55f242(0x8b)]=_0x55f242(0xf0),_0x59fd40[_0x55f242(0xee)]=_0x55f242(0xc5),_0x59fd40[_0x55f242(0x82)]=_0x55f242(0xe0),_0x59fd40[_0x55f242(0x6e)]=_0x55f242(0x9d),_0x59fd40['siVzq']=_0x55f242(0x88),_0x59fd40['Zxwpz']=_0x55f242(0x9e),_0x59fd40['KXtAd']=_0x55f242(0x81),_0x59fd40[_0x55f242(0x7c)]='Created\x20folder:\x20%s',_0x59fd40[_0x55f242(0xf5)]=function(_0x3fe15f,_0x5e69d4){return _0x3fe15f===_0x5e69d4;},_0x59fd40['eBqWq']=_0x55f242(0xf1),_0x59fd40['PscoR']=_0x55f242(0xce),_0x59fd40[_0x55f242(0xd7)]=_0x55f242(0xc7),_0x59fd40[_0x55f242(0xc3)]=_0x55f242(0xa3),_0x59fd40[_0x55f242(0xea)]='Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s',_0x59fd40[_0x55f242(0xb9)]=function(_0x3d171c,_0x4e49f5){return _0x3d171c*_0x4e49f5;},_0x59fd40[_0x55f242(0x86)]='File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.';const _0xe775ef=_0x59fd40;this['logger'][_0x55f242(0x77)](util[_0x55f242(0x8d)](_0xe775ef[_0x55f242(0x6e)],_0x38351e));const _0x2d6450=os[_0x55f242(0x96)](),_0x36cba9=path[_0x55f242(0x91)](_0x2d6450,_0xe775ef[_0x55f242(0xc8)]);!fs['existsSync'](_0x36cba9)&&(this[_0x55f242(0x75)][_0x55f242(0x77)](util[_0x55f242(0x8d)](_0xe775ef[_0x55f242(0x79)],_0x36cba9)),fs[_0x55f242(0x8c)](_0x36cba9),this[_0x55f242(0x75)]['debug'](util['format'](_0xe775ef[_0x55f242(0xc1)],_0x36cba9)));const _0x436bba=BrowserstackCLI['getInstance']()[_0x55f242(0xcd)][_0x55f242(0xcc)]?.['testhubConfig']?.[_0x55f242(0x9a)]()?.['buildHashedId'],_0x337394=path[_0x55f242(0x91)](_0x36cba9,_0x436bba);!fs['existsSync'](_0x337394)&&(fs[_0x55f242(0x8c)](_0x337394),this[_0x55f242(0x75)][_0x55f242(0x77)](util[_0x55f242(0x8d)](_0xe775ef[_0x55f242(0x7c)],_0x337394)));if(_0xe775ef[_0x55f242(0xf5)](_0x38351e['trim'](),'')){this[_0x55f242(0x75)][_0x55f242(0x77)](util[_0x55f242(0x8d)](_0xe775ef[_0x55f242(0x7a)]));return;}if(_0x38351e[_0x55f242(0xa6)](_0xe775ef['PscoR'])||_0x38351e[_0x55f242(0xa6)](_0xe775ef[_0x55f242(0xd7)])){const _0x99ef11=_0x38351e[_0x55f242(0xa6)](_0xe775ef[_0x55f242(0x7f)])?https:http,_0x19af68=path[_0x55f242(0xcf)](_0x38351e),_0x405071=path['join'](_0x337394,_0x19af68),_0x2ffde1=fs[_0x55f242(0x70)](_0x405071);_0x99ef11[_0x55f242(0xa8)](_0x38351e,_0x50671c=>{const _0x42d800=_0x55f242;if(_0xe775ef[_0x42d800(0xec)](_0x50671c[_0x42d800(0xbe)],0xc8))_0x50671c[_0x42d800(0xb1)](_0x2ffde1),_0x2ffde1['on'](_0xe775ef[_0x42d800(0x8b)],()=>{const _0x2bf735=_0x42d800;_0x2ffde1[_0x2bf735(0xaa)]();const _0x2b3bee=fs[_0x2bf735(0xdd)](_0x405071),_0x226abe=_0xe775ef['wFCXT'](_0x2b3bee['size'],_0xe775ef[_0x2bf735(0xb7)](0x400,0x400));if(_0xe775ef['LdeeI'](_0x226abe,0x64)){this[_0x2bf735(0x75)][_0x2bf735(0x77)](util[_0x2bf735(0x8d)](_0xe775ef[_0x2bf735(0x73)],_0x226abe[_0x2bf735(0xd0)](0x2))),fs[_0x2bf735(0xdb)](_0x405071);return;}this['logger'][_0x2bf735(0x77)](util['format'](_0xe775ef['lZqZS'],_0x405071)),uploadAttachmentsManager[_0x2bf735(0xd3)](_0x405071,_0xf7d3a7);});else{this['logger'][_0x42d800(0x77)](util['format'](_0xe775ef[_0x42d800(0xee)],_0x50671c[_0x42d800(0xbe)])),_0x2ffde1[_0x42d800(0xaa)](),fs[_0x42d800(0xdb)](_0x405071);return;}})['on'](_0xe775ef['yNOZe'],_0x5496f0=>{const _0x2fc728=_0x55f242;this[_0x2fc728(0x75)]['debug'](util[_0x2fc728(0x8d)](_0xe775ef[_0x2fc728(0x82)],_0x5496f0[_0x2fc728(0x84)])),_0x2ffde1[_0x2fc728(0xaa)](),fs[_0x2fc728(0xdb)](_0x405071);return;});}else{if(!fs[_0x55f242(0x76)](_0x38351e)){this['logger'][_0x55f242(0x77)](util[_0x55f242(0x8d)](_0xe775ef[_0x55f242(0xea)],_0x38351e));return;}const _0x57ab73=fs[_0x55f242(0xdd)](_0x38351e),_0x488672=_0xe775ef[_0x55f242(0xba)](_0x57ab73['size'],_0xe775ef['QwwhZ'](0x400,0x400));if(_0xe775ef[_0x55f242(0xa9)](_0x488672,0x64)){this[_0x55f242(0x75)][_0x55f242(0x77)](util[_0x55f242(0x8d)](_0xe775ef[_0x55f242(0x86)],_0x488672[_0x55f242(0xd0)](0x2)));return;}const _0x421e33=path[_0x55f242(0xcf)](_0x38351e),_0xb0a573=path[_0x55f242(0x91)](_0x337394,_0x421e33);fs['copyFileSync'](_0x38351e,_0xb0a573),uploadAttachmentsManager[_0x55f242(0xd3)](_0xb0a573,_0xf7d3a7);}}static[a118_0x4f8d2c(0xd3)](_0x550c20,_0x22f2a4){const _0x2ce561=a118_0x4f8d2c,_0x4ccefa={'GBUlg':function(_0x46b2ae,_0x14216e){return _0x46b2ae(_0x14216e);},'YYVOR':_0x2ce561(0x95),'HnsHD':function(_0x518fdc,_0xdeb306){return _0x518fdc(_0xdeb306);},'AQeZv':_0x2ce561(0xc4),'PWdDx':function(_0x2ea43d,_0xc468d8){return _0x2ea43d===_0xc468d8;},'ofxGS':_0x2ce561(0xbf),'lMBNj':function(_0x267704,_0x1d4566){return _0x267704===_0x1d4566;},'qLmvy':_0x2ce561(0xd8),'vorVQ':'trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','jRMXx':_0x2ce561(0x7b),'Qayot':_0x2ce561(0xd4),'Wefnb':_0x2ce561(0xed),'kzdlx':function(_0x3c6bca,_0x28c3e4){return _0x3c6bca(_0x28c3e4);},'hNOXd':_0x2ce561(0x94),'UHHGW':_0x2ce561(0xa1),'BPNOd':_0x2ce561(0xab),'fqECt':_0x2ce561(0xa2),'wfHyf':_0x2ce561(0xe6)};try{let _0x4f371e;const _0x26d3b3=global[_0x2ce561(0xa5)]?.[_0x2ce561(0xa4)]?.['testInfo'],_0x390288=_0x4ccefa[_0x2ce561(0xb4)](require,_0x4ccefa[_0x2ce561(0x7d)]),_0x3573ad=_0x4ccefa['HnsHD'](require,_0x4ccefa[_0x2ce561(0xbb)]),_0x33464a=_0x390288['getInstance']()[_0x2ce561(0x9b)]()&&_0x4ccefa['PWdDx'](_0x3573ad[_0x2ce561(0x98)]()?.[_0x2ce561(0xef)]?.['toLowerCase'](),_0x4ccefa[_0x2ce561(0xaf)]);if(_0x33464a){_0x4f371e=global[_0x2ce561(0xde)];if(!_0x4f371e){const _0x6f1854=AutomationFramework[_0x2ce561(0xbc)]();_0x4f371e=AutomationFramework['getState'](_0x6f1854,PlaywrightDriverModule[_0x2ce561(0xca)],'');}this[_0x2ce561(0x75)][_0x2ce561(0x77)](_0x2ce561(0xa0)+_0x4f371e);}else{if(!_0x26d3b3){const _0x40f0f1=AutomationFramework['getTrackedInstance']();_0x4f371e=AutomationFramework[_0x2ce561(0xe5)](_0x40f0f1,PlaywrightDriverModule[_0x2ce561(0xca)],'');}else _0x4f371e=TestInfo['getTestIdentifierFromTestInfo'](_0x26d3b3,_0x26d3b3[_0x2ce561(0x6d)]);this['logger'][_0x2ce561(0x77)]('trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20'+_0x4f371e);}if(!_0x4f371e)try{const _0x343ffd=_0x390288[_0x2ce561(0xe2)](),_0x266e53=_0x343ffd&&_0x343ffd[_0x2ce561(0xcb)]();_0x4f371e=_0x266e53&&_0x4ccefa[_0x2ce561(0xb2)](typeof _0x266e53[_0x2ce561(0xad)],_0x4ccefa[_0x2ce561(0xf4)])&&_0x266e53[_0x2ce561(0xad)]()||_0x4f371e;}catch(_0x164253){this[_0x2ce561(0x75)][_0x2ce561(0x77)](_0x2ce561(0xf7)+(_0x164253&&_0x164253[_0x2ce561(0x84)]));}if(!_0x4f371e){this[_0x2ce561(0x75)][_0x2ce561(0x77)](_0x4ccefa['vorVQ']);return;}const _0xe5361c={[TestFrameworkConstants[_0x2ce561(0x80)]]:fs[_0x2ce561(0xdd)](_0x550c20)[_0x2ce561(0x99)],[TestFrameworkConstants['KEY_FILE_NAME']]:path[_0x2ce561(0xcf)](_0x550c20),[TestFrameworkConstants[_0x2ce561(0xc6)]]:_0x550c20,[TestFrameworkConstants[_0x2ce561(0xd6)]]:_0x22f2a4?_0x4ccefa['jRMXx']:_0x4ccefa['Qayot']};if(_0x33464a){const _0x59bbe9=_0x390288[_0x2ce561(0xe2)]()[_0x2ce561(0xcb)]();if(!_0x59bbe9){this[_0x2ce561(0x75)][_0x2ce561(0x77)](_0x4ccefa[_0x2ce561(0x87)]);return;}const _0x51a140=_0x4ccefa[_0x2ce561(0xb5)](require,_0x4ccefa['hNOXd']),_0x363d1a=_0x4ccefa[_0x2ce561(0xac)](require,_0x4ccefa['UHHGW']),_0x452cf3=_0x59bbe9[_0x2ce561(0xe3)](_0x51a140[_0x2ce561(0x83)],_0x363d1a[_0x2ce561(0x9c)]);if(!_0x452cf3){this[_0x2ce561(0x75)][_0x2ce561(0x77)](_0x4ccefa[_0x2ce561(0xd1)]);return;}const _0x572838=_0x452cf3[_0x2ce561(0xb8)]()[_0x2ce561(0xa8)](_0x4f371e)||{},_0x3af511=_0x572838[TestFrameworkConstants[_0x2ce561(0xc2)]]||{},_0x5ae236={..._0x3af511};_0x5ae236[_0x550c20]=_0xe5361c;const _0x23889d=_0x5ae236,_0x123992={[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]:_0x23889d},_0x5534e4={};_0x5534e4[_0x4f371e]=_0x123992,_0x452cf3[_0x2ce561(0x8e)](_0x5534e4),this[_0x2ce561(0x75)][_0x2ce561(0x77)](_0x2ce561(0xae)+_0x4f371e+',\x20filepath:\x20'+_0x550c20);}else{const _0x22d083=TestInfo[_0x2ce561(0xc0)](_0x4f371e),_0xdb59c0=_0x22d083[TestFrameworkConstants[_0x2ce561(0xc2)]]||{};_0xdb59c0[_0x550c20]=_0xe5361c,_0x22d083[TestFrameworkConstants[_0x2ce561(0xc2)]]=_0xdb59c0,TestInfo['setTestDetails'](_0x4f371e,_0x22d083),this[_0x2ce561(0x75)][_0x2ce561(0x77)](_0x2ce561(0x97)+_0x4f371e+_0x2ce561(0xe1)+_0x550c20);}this[_0x2ce561(0x75)][_0x2ce561(0x77)](util[_0x2ce561(0x8d)](_0x4ccefa[_0x2ce561(0x8a)],_0x550c20));}catch(_0xd591e3){this[_0x2ce561(0x75)][_0x2ce561(0x77)](util[_0x2ce561(0x8d)](_0x4ccefa['wfHyf'],_0xd591e3[_0x2ce561(0x84)]));}}static[a118_0x4f8d2c(0xbd)](){const _0x32a06=a118_0x4f8d2c,_0x5a273e={};_0x5a273e[_0x32a06(0xd9)]=_0x32a06(0x88),_0x5a273e[_0x32a06(0xd5)]=_0x32a06(0xf3),_0x5a273e[_0x32a06(0xf2)]=_0x32a06(0xb6);const _0xc5bcce=_0x5a273e,_0x2020e7=os[_0x32a06(0x96)](),_0x2a0b0e=path['join'](_0x2020e7,_0xc5bcce[_0x32a06(0xd9)]);if(!fs[_0x32a06(0x76)](_0x2a0b0e))return;const _0x114ead=BrowserstackCLI['getInstance']()[_0x32a06(0xcd)][_0x32a06(0xcc)]?.[_0x32a06(0x6f)]?.[_0x32a06(0x9a)]()?.[_0x32a06(0xeb)],_0x30dc61=_0x114ead?path['join'](_0x2a0b0e,_0x114ead):null;if(!_0x30dc61||!fs['existsSync'](_0x30dc61)){this[_0x32a06(0x75)][_0x32a06(0x77)](util[_0x32a06(0x8d)](_0xc5bcce[_0x32a06(0xd5)],_0x114ead));return;}const _0x162ea0={};_0x162ea0[_0x32a06(0xe7)]=!![],_0x162ea0[_0x32a06(0x78)]=!![],fs[_0x32a06(0xdc)](_0x30dc61,_0x162ea0),this[_0x32a06(0x75)][_0x32a06(0x77)](util[_0x32a06(0x8d)](_0xc5bcce[_0x32a06(0xf2)]));}}function a118_0x1729(_0x4c8cc9,_0x324e9f){const _0x111782=a118_0x1117();return a118_0x1729=function(_0x172963,_0x34389e){_0x172963=_0x172963-0x6d;let _0x4b6285=_0x111782[_0x172963];return _0x4b6285;},a118_0x1729(_0x4c8cc9,_0x324e9f);}function a118_0x1117(){const _0x251c7b=['Zxwpz','eBqWq','BuildLevel','rBrmD','YYVOR','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','PscoR','KEY_FILE_SIZE','Created\x20.browserstack\x20folder\x20at:\x20%s','yMLUd','TEST','message','https','ZhkIr','Wefnb','.browserstack','55AGPRjz','fqECt','QcLSg','mkdirSync','format','addMultipleEntries','52VbwqDH','12146208tOYDrP','join','147cWvUGX','77943JyWHtY','./state/testFrameworkState','./browserstackCLI','homedir','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','getTestFrameworkDetail','size','toObject','isRunning','POST','Attachment\x20recevied\x20for\x20path:\x20%s','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','360170Dogqbp','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','./state/hookState','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','error','currentTest','__workerDetails','startsWith','./framework/automationFramework','get','LdeeI','close','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','HnsHD','getCurrentTestUUID','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','ofxGS','105114WcvNQH','pipe','lMBNj','http','GBUlg','kzdlx','Cleared\x20attachment\x20folder','POGTJ','getAllData','QwwhZ','wFCXT','AQeZv','getTrackedInstance','clearAttachments','statusCode','jest','getTestDetails','KXtAd','KEY_TEST_ATTACHMENTS','yNOZe','./cliUtils','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','KEY_FILE_PATH','http://','siVzq','./TestInfo','KEY_TEST_ID','getTestFramework','TestHubModule','modules','https://','basename','toFixed','BPNOd','8YGMplE','trackFile','TestLevel','iWosE','KEY_FILE_LEVEL','Ytnef','function','azAXR','uploadAttachments','unlinkSync','rmSync','statSync','__jestCurrentTestIdentifier','File\x20downloaded\x20to:\x20%s','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload',',\x20filepath:\x20','getInstance','resolveInstance','uploadAttachmentsManager','getState','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','recursive','652010tBBaLm','util','rBKLc','buildHashedId','luiSg','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','JNCtz','name','finish','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','PXIZH','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','qLmvy','cSiiG','1SGTOhS','trackFile:\x20node-generic\x20testId\x20fallback\x20failed:\x20','path','retry','PlgcM','testhubConfig','createWriteStream','816903xoUgHg','1546880ymfPRd','zOrMs','./modules/playwrightDriverModule','logger','existsSync','debug','force'];a118_0x1117=function(){return _0x251c7b;};return a118_0x1117();}module['exports']=uploadAttachmentsManager;
|
|
1
|
+
const a118_0x55a0d0=a118_0x1f62;(function(_0x318bf6,_0x3fe7a7){const _0x1c2319=a118_0x1f62,_0x25b512=_0x318bf6();while(!![]){try{const _0x43d203=parseInt(_0x1c2319(0x1ca))/0x1+parseInt(_0x1c2319(0x1dd))/0x2*(parseInt(_0x1c2319(0x1fb))/0x3)+parseInt(_0x1c2319(0x1c0))/0x4*(-parseInt(_0x1c2319(0x1c8))/0x5)+parseInt(_0x1c2319(0x23b))/0x6*(-parseInt(_0x1c2319(0x1d1))/0x7)+-parseInt(_0x1c2319(0x1c7))/0x8*(-parseInt(_0x1c2319(0x221))/0x9)+-parseInt(_0x1c2319(0x238))/0xa+-parseInt(_0x1c2319(0x1e3))/0xb*(parseInt(_0x1c2319(0x207))/0xc);if(_0x43d203===_0x3fe7a7)break;else _0x25b512['push'](_0x25b512['shift']());}catch(_0x3139b2){_0x25b512['push'](_0x25b512['shift']());}}}(a118_0x1687,0xce916));const os=require('os'),fs=require('fs'),path=require(a118_0x55a0d0(0x212)),util=require(a118_0x55a0d0(0x1ef)),BrowserstackCLI=require(a118_0x55a0d0(0x1e0)),https=require(a118_0x55a0d0(0x208)),http=require(a118_0x55a0d0(0x1dc)),AutomationFramework=require('./framework/automationFramework'),PlaywrightDriverModule=require(a118_0x55a0d0(0x22d)),TestInfo=require(a118_0x55a0d0(0x1f5)),TestFrameworkConstants=require(a118_0x55a0d0(0x201)),{createClassLogger}=require(a118_0x55a0d0(0x213));function a118_0x1f62(_0x2028c2,_0x5885d3){const _0x16879c=a118_0x1687();return a118_0x1f62=function(_0x1f62c3,_0x338b3c){_0x1f62c3=_0x1f62c3-0x1b8;let _0x154fe5=_0x16879c[_0x1f62c3];return _0x154fe5;},a118_0x1f62(_0x2028c2,_0x5885d3);}class uploadAttachmentsManager{static [a118_0x55a0d0(0x235)]=createClassLogger('uploadAttachmentsManager');static['uploadAttachments'](_0x59eacb,_0x146696=![]){const _0x2cf910=a118_0x55a0d0,_0x45c1f7={};_0x45c1f7['vNqVd']=function(_0x9ea365,_0xc3fa38){return _0x9ea365/_0xc3fa38;},_0x45c1f7[_0x2cf910(0x1e7)]=function(_0x1497f1,_0x2d16c9){return _0x1497f1*_0x2d16c9;},_0x45c1f7[_0x2cf910(0x227)]=function(_0x4074d2,_0x4155ac){return _0x4074d2>_0x4155ac;},_0x45c1f7[_0x2cf910(0x1c5)]=_0x2cf910(0x1bb),_0x45c1f7[_0x2cf910(0x1e6)]=_0x2cf910(0x1f2),_0x45c1f7[_0x2cf910(0x1ed)]=function(_0x3b1bb3,_0x55e138){return _0x3b1bb3===_0x55e138;},_0x45c1f7['GBokE']=_0x2cf910(0x1be),_0x45c1f7[_0x2cf910(0x220)]=_0x2cf910(0x1cb),_0x45c1f7[_0x2cf910(0x1c2)]='Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload',_0x45c1f7[_0x2cf910(0x22f)]=_0x2cf910(0x214),_0x45c1f7[_0x2cf910(0x22e)]=_0x2cf910(0x234),_0x45c1f7['PoQuq']='.browserstack\x20folder\x20not\x20found\x20at:\x20%s',_0x45c1f7['XDJjO']=_0x2cf910(0x23a),_0x45c1f7[_0x2cf910(0x222)]='Created\x20folder:\x20%s',_0x45c1f7[_0x2cf910(0x1f3)]=function(_0x4bfe85,_0x425da8){return _0x4bfe85===_0x425da8;},_0x45c1f7[_0x2cf910(0x1d6)]='Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.',_0x45c1f7[_0x2cf910(0x206)]=_0x2cf910(0x20d),_0x45c1f7[_0x2cf910(0x231)]=_0x2cf910(0x1ff),_0x45c1f7[_0x2cf910(0x1d9)]=_0x2cf910(0x1fa),_0x45c1f7[_0x2cf910(0x237)]=_0x2cf910(0x1f8),_0x45c1f7['hyiyy']=function(_0x71d43f,_0xd778e6){return _0x71d43f/_0xd778e6;},_0x45c1f7[_0x2cf910(0x1e8)]=function(_0x5cbc75,_0x2bcc21){return _0x5cbc75>_0x2bcc21;},_0x45c1f7[_0x2cf910(0x239)]=_0x2cf910(0x1fd);const _0x106210=_0x45c1f7;this['logger'][_0x2cf910(0x224)](util['format'](_0x106210['UOZGg'],_0x59eacb));const _0x64c7fa=os['homedir'](),_0x17fcb9=path[_0x2cf910(0x215)](_0x64c7fa,_0x106210[_0x2cf910(0x22e)]);!fs[_0x2cf910(0x1c4)](_0x17fcb9)&&(this[_0x2cf910(0x235)][_0x2cf910(0x224)](util[_0x2cf910(0x1cc)](_0x106210['PoQuq'],_0x17fcb9)),fs[_0x2cf910(0x1ea)](_0x17fcb9),this[_0x2cf910(0x235)]['debug'](util['format'](_0x106210['XDJjO'],_0x17fcb9)));const _0x408278=BrowserstackCLI[_0x2cf910(0x21a)]()[_0x2cf910(0x1bd)][_0x2cf910(0x1da)]?.['testhubConfig']?.['toObject']()?.['buildHashedId'],_0x462cf6=path[_0x2cf910(0x215)](_0x17fcb9,_0x408278);!fs[_0x2cf910(0x1c4)](_0x462cf6)&&(fs['mkdirSync'](_0x462cf6),this[_0x2cf910(0x235)][_0x2cf910(0x224)](util[_0x2cf910(0x1cc)](_0x106210[_0x2cf910(0x222)],_0x462cf6)));if(_0x106210['SBLik'](_0x59eacb['trim'](),'')){this[_0x2cf910(0x235)][_0x2cf910(0x224)](util[_0x2cf910(0x1cc)](_0x106210[_0x2cf910(0x1d6)]));return;}if(_0x59eacb['startsWith'](_0x106210[_0x2cf910(0x206)])||_0x59eacb[_0x2cf910(0x1e5)](_0x106210[_0x2cf910(0x231)])){const _0x4e5891=_0x59eacb[_0x2cf910(0x1e5)](_0x106210[_0x2cf910(0x206)])?https:http,_0x88cc66=path[_0x2cf910(0x20b)](_0x59eacb),_0x179ca2=path[_0x2cf910(0x215)](_0x462cf6,_0x88cc66),_0x4df270=fs['createWriteStream'](_0x179ca2);_0x4e5891['get'](_0x59eacb,_0x29fb1e=>{const _0x1c2260=_0x2cf910,_0x57648b={'DihRs':function(_0x56ec93,_0x750cfe){const _0x121b12=a118_0x1f62;return _0x106210[_0x121b12(0x1f4)](_0x56ec93,_0x750cfe);},'HhKWu':function(_0x1adb1a,_0x3376ca){const _0x228823=a118_0x1f62;return _0x106210[_0x228823(0x1e7)](_0x1adb1a,_0x3376ca);},'IuhLE':function(_0x2c709b,_0x5f0dc3){const _0x485c13=a118_0x1f62;return _0x106210[_0x485c13(0x227)](_0x2c709b,_0x5f0dc3);},'SCCdB':_0x106210[_0x1c2260(0x1c5)],'JpOkK':_0x106210[_0x1c2260(0x1e6)]};if(_0x106210['nMXlD'](_0x29fb1e[_0x1c2260(0x229)],0xc8))_0x29fb1e['pipe'](_0x4df270),_0x4df270['on'](_0x106210[_0x1c2260(0x232)],()=>{const _0xb70fe=_0x1c2260;_0x4df270['close']();const _0x36b937=fs[_0xb70fe(0x1e1)](_0x179ca2),_0x23b285=_0x57648b[_0xb70fe(0x21b)](_0x36b937['size'],_0x57648b[_0xb70fe(0x1d8)](0x400,0x400));if(_0x57648b['IuhLE'](_0x23b285,0x64)){this['logger'][_0xb70fe(0x224)](util[_0xb70fe(0x1cc)](_0x57648b['SCCdB'],_0x23b285[_0xb70fe(0x20c)](0x2))),fs[_0xb70fe(0x1f1)](_0x179ca2);return;}this['logger'][_0xb70fe(0x224)](util[_0xb70fe(0x1cc)](_0x57648b['JpOkK'],_0x179ca2)),uploadAttachmentsManager[_0xb70fe(0x1e9)](_0x179ca2,_0x146696);});else{this[_0x1c2260(0x235)][_0x1c2260(0x224)](util[_0x1c2260(0x1cc)](_0x106210[_0x1c2260(0x220)],_0x29fb1e[_0x1c2260(0x229)])),_0x4df270[_0x1c2260(0x22b)](),fs[_0x1c2260(0x1f1)](_0x179ca2);return;}})['on'](_0x106210[_0x2cf910(0x1d9)],_0x483a21=>{const _0x2a3400=_0x2cf910;this[_0x2a3400(0x235)]['debug'](util[_0x2a3400(0x1cc)](_0x106210[_0x2a3400(0x1c2)],_0x483a21[_0x2a3400(0x1b9)])),_0x4df270['close'](),fs[_0x2a3400(0x1f1)](_0x179ca2);return;});}else{if(!fs[_0x2cf910(0x1c4)](_0x59eacb)){this['logger']['debug'](util[_0x2cf910(0x1cc)](_0x106210[_0x2cf910(0x237)],_0x59eacb));return;}const _0x31dae7=fs[_0x2cf910(0x1e1)](_0x59eacb),_0x1137f7=_0x106210[_0x2cf910(0x1de)](_0x31dae7[_0x2cf910(0x1d0)],_0x106210[_0x2cf910(0x1e7)](0x400,0x400));if(_0x106210[_0x2cf910(0x1e8)](_0x1137f7,0x64)){this[_0x2cf910(0x235)][_0x2cf910(0x224)](util[_0x2cf910(0x1cc)](_0x106210[_0x2cf910(0x239)],_0x1137f7[_0x2cf910(0x20c)](0x2)));return;}const _0x1d6299=path['basename'](_0x59eacb),_0x1ad957=path[_0x2cf910(0x215)](_0x462cf6,_0x1d6299);fs[_0x2cf910(0x20f)](_0x59eacb,_0x1ad957),uploadAttachmentsManager[_0x2cf910(0x1e9)](_0x1ad957,_0x146696);}}static[a118_0x55a0d0(0x1e9)](_0x233ba2,_0x98a7c1){const _0x3cc84e=a118_0x55a0d0,_0x1f6b26={'ijSVC':function(_0x34bb47,_0x535084){return _0x34bb47(_0x535084);},'lyShp':_0x3cc84e(0x1e0),'SppaJ':_0x3cc84e(0x22c),'LhNVc':function(_0x5bf66d,_0x2c107c){return _0x5bf66d===_0x2c107c;},'vVeeb':_0x3cc84e(0x209),'jWXVf':function(_0x3a8dd3,_0x4291a3){return _0x3a8dd3===_0x4291a3;},'XLfpG':_0x3cc84e(0x1ba),'qCquk':_0x3cc84e(0x223),'jfoDW':_0x3cc84e(0x219),'cxLNW':_0x3cc84e(0x1f6),'MayXa':'trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','CnyHO':_0x3cc84e(0x21e),'wMhhd':_0x3cc84e(0x1cf),'oMwaS':_0x3cc84e(0x1f7),'TYjqU':'Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','cMxNT':_0x3cc84e(0x204)};try{let _0x2e70b9;const _0x473c5f=global[_0x3cc84e(0x228)]?.[_0x3cc84e(0x225)]?.[_0x3cc84e(0x211)],_0x517378=_0x1f6b26['ijSVC'](require,_0x1f6b26['lyShp']),_0x3f34ed=_0x1f6b26[_0x3cc84e(0x1cd)](require,_0x1f6b26[_0x3cc84e(0x205)]),_0x12baf3=_0x517378[_0x3cc84e(0x21a)]()[_0x3cc84e(0x1e4)]()&&_0x1f6b26['LhNVc'](_0x3f34ed[_0x3cc84e(0x1e2)]()?.[_0x3cc84e(0x1c9)]?.[_0x3cc84e(0x1c3)](),_0x1f6b26['vVeeb']);if(_0x12baf3){_0x2e70b9=global[_0x3cc84e(0x1bf)];if(!_0x2e70b9){const _0x308f6e=AutomationFramework[_0x3cc84e(0x21d)]();_0x2e70b9=AutomationFramework[_0x3cc84e(0x1fe)](_0x308f6e,PlaywrightDriverModule[_0x3cc84e(0x1b8)],'');}this['logger'][_0x3cc84e(0x224)](_0x3cc84e(0x1d7)+_0x2e70b9);}else{if(!_0x473c5f){const _0x22f787=AutomationFramework[_0x3cc84e(0x21d)]();_0x2e70b9=AutomationFramework[_0x3cc84e(0x1fe)](_0x22f787,PlaywrightDriverModule[_0x3cc84e(0x1b8)],'');}else _0x2e70b9=TestInfo[_0x3cc84e(0x202)](_0x473c5f,_0x473c5f[_0x3cc84e(0x1d4)]);this['logger']['debug'](_0x3cc84e(0x230)+_0x2e70b9);}if(!_0x2e70b9)try{const _0x56cab1=_0x517378[_0x3cc84e(0x21a)](),_0x46d3cb=_0x56cab1&&_0x56cab1[_0x3cc84e(0x20a)]();_0x2e70b9=_0x46d3cb&&_0x1f6b26[_0x3cc84e(0x236)](typeof _0x46d3cb[_0x3cc84e(0x233)],_0x1f6b26[_0x3cc84e(0x1bc)])&&_0x46d3cb[_0x3cc84e(0x233)]()||_0x2e70b9;}catch(_0x4508e2){this['logger'][_0x3cc84e(0x224)](_0x3cc84e(0x1db)+(_0x4508e2&&_0x4508e2[_0x3cc84e(0x1b9)]));}if(!_0x2e70b9){this[_0x3cc84e(0x235)][_0x3cc84e(0x224)](_0x1f6b26['qCquk']);return;}const _0x5f158f={[TestFrameworkConstants[_0x3cc84e(0x1fc)]]:fs[_0x3cc84e(0x1e1)](_0x233ba2)[_0x3cc84e(0x1d0)],[TestFrameworkConstants['KEY_FILE_NAME']]:path['basename'](_0x233ba2),[TestFrameworkConstants['KEY_FILE_PATH']]:_0x233ba2,[TestFrameworkConstants[_0x3cc84e(0x1d5)]]:_0x98a7c1?_0x1f6b26[_0x3cc84e(0x1c1)]:_0x1f6b26[_0x3cc84e(0x1df)]};if(_0x12baf3){const _0x3a6838=_0x517378[_0x3cc84e(0x21a)]()['getTestFramework']();if(!_0x3a6838){this[_0x3cc84e(0x235)]['debug'](_0x1f6b26['MayXa']);return;}const _0x46af86=_0x1f6b26[_0x3cc84e(0x1cd)](require,_0x1f6b26['CnyHO']),_0x27421e=_0x1f6b26[_0x3cc84e(0x1cd)](require,_0x1f6b26[_0x3cc84e(0x210)]),_0x4d5cce=_0x3a6838[_0x3cc84e(0x226)](_0x46af86[_0x3cc84e(0x216)],_0x27421e['POST']);if(!_0x4d5cce){this[_0x3cc84e(0x235)][_0x3cc84e(0x224)](_0x1f6b26[_0x3cc84e(0x22a)]);return;}const _0x39c89c=_0x4d5cce['getAllData']()[_0x3cc84e(0x23c)](_0x2e70b9)||{},_0x3c0cb9=_0x39c89c[TestFrameworkConstants[_0x3cc84e(0x217)]]||{},_0x4c4f8c={..._0x3c0cb9};_0x4c4f8c[_0x233ba2]=_0x5f158f;const _0x5b56ef=_0x4c4f8c,_0x85efe2={[TestFrameworkConstants[_0x3cc84e(0x217)]]:_0x5b56ef},_0x31adc3={};_0x31adc3[_0x2e70b9]=_0x85efe2,_0x4d5cce[_0x3cc84e(0x1ce)](_0x31adc3),this[_0x3cc84e(0x235)][_0x3cc84e(0x224)](_0x3cc84e(0x1d3)+_0x2e70b9+_0x3cc84e(0x203)+_0x233ba2);}else{const _0x35b443=TestInfo['getTestDetails'](_0x2e70b9),_0x2bed06=_0x35b443[TestFrameworkConstants[_0x3cc84e(0x217)]]||{};_0x2bed06[_0x233ba2]=_0x5f158f,_0x35b443[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]=_0x2bed06,TestInfo[_0x3cc84e(0x1c6)](_0x2e70b9,_0x35b443),this[_0x3cc84e(0x235)]['debug']('trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20'+_0x2e70b9+',\x20filepath:\x20'+_0x233ba2);}this[_0x3cc84e(0x235)][_0x3cc84e(0x224)](util[_0x3cc84e(0x1cc)](_0x1f6b26[_0x3cc84e(0x1ec)],_0x233ba2));}catch(_0x4abeb0){this['logger'][_0x3cc84e(0x224)](util[_0x3cc84e(0x1cc)](_0x1f6b26['cMxNT'],_0x4abeb0['message']));}}static['clearAttachments'](){const _0x59e246=a118_0x55a0d0,_0x45e2ca={};_0x45e2ca['KPmSr']=_0x59e246(0x234),_0x45e2ca['dEAyr']=_0x59e246(0x21f),_0x45e2ca[_0x59e246(0x1f9)]=_0x59e246(0x218);const _0x3c82e5=_0x45e2ca,_0xe08b94=os['homedir'](),_0x4761c5=path[_0x59e246(0x215)](_0xe08b94,_0x3c82e5[_0x59e246(0x1f0)]);if(!fs[_0x59e246(0x1c4)](_0x4761c5))return;const _0x3d57ef=BrowserstackCLI['getInstance']()['modules']['TestHubModule']?.['testhubConfig']?.[_0x59e246(0x1ee)]()?.['buildHashedId'],_0x12ac81=_0x3d57ef?path[_0x59e246(0x215)](_0x4761c5,_0x3d57ef):null;if(!_0x12ac81||!fs[_0x59e246(0x1c4)](_0x12ac81)){this[_0x59e246(0x235)][_0x59e246(0x224)](util[_0x59e246(0x1cc)](_0x3c82e5[_0x59e246(0x1d2)],_0x3d57ef));return;}const _0x44b0c7={};_0x44b0c7[_0x59e246(0x21c)]=!![],_0x44b0c7[_0x59e246(0x20e)]=!![],fs[_0x59e246(0x1eb)](_0x12ac81,_0x44b0c7),this[_0x59e246(0x235)][_0x59e246(0x224)](util[_0x59e246(0x1cc)](_0x3c82e5[_0x59e246(0x1f9)]));}}function a118_0x1687(){const _0x2ea963=['1163624irAwco','216915BnnkUs','name','1259182BvItFB','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','format','ijSVC','addMultipleEntries','./state/hookState','size','7laaLWI','dEAyr','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','retry','KEY_FILE_LEVEL','MADxL','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','HhKWu','tLhkp','TestHubModule','trackFile:\x20node-generic\x20testId\x20fallback\x20failed:\x20','http','12dfGydn','hyiyy','cxLNW','./browserstackCLI','statSync','getTestFrameworkDetail','77JdOTWl','isRunning','startsWith','vZVdn','SAjuu','LqlQS','trackFile','mkdirSync','rmSync','TYjqU','nMXlD','toObject','util','KPmSr','unlinkSync','File\x20downloaded\x20to:\x20%s','SBLik','vNqVd','./TestInfo','TestLevel','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','QrWJv','error','638556lIrRRv','KEY_FILE_SIZE','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','getState','http://','exports','./framework/constants/testFrameworkConstants','getTestIdentifierFromTestInfo',',\x20filepath:\x20','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','SppaJ','yaVvX','1683228pVPrsz','https','jest','getTestFramework','basename','toFixed','https://','force','copyFileSync','wMhhd','testInfo','path','../../helpers/classLogger.js','Attachment\x20recevied\x20for\x20path:\x20%s','join','TEST','KEY_TEST_ATTACHMENTS','Cleared\x20attachment\x20folder','BuildLevel','getInstance','DihRs','recursive','getTrackedInstance','./state/testFrameworkState','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','kwGoS','99QVTNJz','MxFpZ','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','debug','currentTest','resolveInstance','yzEjH','__workerDetails','statusCode','oMwaS','close','./cliUtils','./modules/playwrightDriverModule','ZlQea','UOZGg','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','GxfWV','GBokE','getCurrentTestUUID','.browserstack','logger','jWXVf','MvNcg','14490670kjYnlM','BmZno','Created\x20.browserstack\x20folder\x20at:\x20%s','2292072HtpaVi','get','KEY_TEST_ID','message','function','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','XLfpG','modules','finish','__jestCurrentTestIdentifier','44ZFWMMd','jfoDW','moBpo','toLowerCase','existsSync','TGdAv','setTestDetails'];a118_0x1687=function(){return _0x2ea963;};return a118_0x1687();}module[a118_0x55a0d0(0x200)]=uploadAttachmentsManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a119_0x4b66(){const _0x19dbca=['failureData','163598EMTkUd','fnSWJ','UaQHr','match','strip-ansi','THztJ','BEFORE_EACH','includes','ruxFy','test','ilPJY','toISOString','sendTestRunEventForCucumber','KFJLt','relative','CrxAg','8538924myDUmU','failed','duration_in_ms','bstack','_gitConfigured','getScenarioExamples','map','filter','YwXxj','createTestFrameworkData','SKIPPED','ylDZz','WFdoe','status','BBFVo','message','cpFtL','Lrbvs','sendHook','winstonLogger','Jtmcg','uuid','2575280dsVMKw','pSStB','testStepResult','7uSuljU','unknown','flatMap','420968EnQaQq','root','ofYuS','6312672HNKFmK','value','toLowerCase','dbGjD','feature','cells','RSMKi','QLAiE','GpyeG','every','GfMPh','finished_at','lGkKs','uri','4041261LTwSko','hookId','examples','sourceReference','rule','COZww','nanos','Exception\x20in\x20getHookRunEventData:\x20','lHCtl','AssertionError','hyMFS','RcTuM','FAILED','5397696JeJsYO','forEach','push','failure','GubuB','javascript','50HZWpHB','timestamp','uiJkP','uCQUw','AbRbO','../../../helpers/logger.js','children','ZEMQR','testCaseFinished','hooks','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','failureType','exception','GfgZC','tableBody','ZuskX','failure_type','HookRunStarted','HookRunFinished','ZzXgm','pickleStepId','tagExpression','configureGit','scenario','ZvWqk','getHookRunEventData','obDty','_gitConfigPath','length','backtrace','epHgo','QHoMr','skipped','getHookResult','find','aahWB','getCucumberHookType','astNodeIds','cucumber','toString','../../../helpers/test-observability/error-handler.js','24vGGjgl','Exception\x20in\x20createHookData:\x20','HcFNf','result','HctsG','join','TaEdX','pending','format','name','UnhandledError','getTestUUID','failure_data','cLrqh','debug'];a119_0x4b66=function(){return _0x19dbca;};return a119_0x4b66();}const a119_0x478791=a119_0x2a34;function a119_0x2a34(_0x27f115,_0x3565d4){const _0x4b665b=a119_0x4b66();return a119_0x2a34=function(_0x2a344f,_0x27fbe0){_0x2a344f=_0x2a344f-0x1cb;let _0x10cf66=_0x4b665b[_0x2a344f];return _0x10cf66;},a119_0x2a34(_0x27f115,_0x3565d4);}(function(_0x221dbf,_0x3ff8f3){const _0x3951e2=a119_0x2a34,_0x59f440=_0x221dbf();while(!![]){try{const _0x72f176=-parseInt(_0x3951e2(0x1ef))/0x1+-parseInt(_0x3951e2(0x24c))/0x2*(parseInt(_0x3951e2(0x23c))/0x3)+parseInt(_0x3951e2(0x20d))/0x4+parseInt(_0x3951e2(0x1e9))/0x5+parseInt(_0x3951e2(0x1d3))/0x6*(-parseInt(_0x3951e2(0x1ec))/0x7)+-parseInt(_0x3951e2(0x1f2))/0x8+parseInt(_0x3951e2(0x200))/0x9*(parseInt(_0x3951e2(0x213))/0xa);if(_0x72f176===_0x3ff8f3)break;else _0x59f440['push'](_0x59f440['shift']());}catch(_0x3f10df){_0x59f440['push'](_0x59f440['shift']());}}}(a119_0x4b66,0xc8b0b));const path=require('path'),util=require('util'),{getGitMetaData,isUndefined,nestedKeyValue}=require('../../../helpers/helper.js'),logger=require(a119_0x478791(0x218))[a119_0x478791(0x1e6)],{o11yClassErrorHandler}=require(a119_0x478791(0x23b)),TestInfo=require('../TestInfo.js'),hooksMap={};class CucumberUtils{constructor(){const _0x1a3568=a119_0x478791;this[_0x1a3568(0x1d7)]=![],this[_0x1a3568(0x22e)]=null;}async['createTestFrameworkData'](_0x4a18b7,_0x1d446f,_0x5453a7,_0x3afa71,_0xb9ccc5,_0x537610){const _0x4bdf15=a119_0x478791,_0x123907={'QLAiE':function(_0x2359b0,_0x361d67){return _0x2359b0===_0x361d67;},'HctsG':_0x4bdf15(0x20c),'GfgZC':_0x4bdf15(0x1d4),'qldSN':_0x4bdf15(0x1dd),'qbxvI':_0x4bdf15(0x233),'TaEdX':function(_0x277e79,_0x33a8f8){return _0x277e79||_0x33a8f8;},'ofYuS':function(_0xb96e7,_0x4a332d){return _0xb96e7+_0x4a332d;},'THztJ':function(_0x384b25,_0x5d8ccb){return _0x384b25+_0x5d8ccb;},'dbGjD':function(_0x243f15,_0x7f5f89){return _0x243f15+_0x7f5f89;},'HcFNf':_0x4bdf15(0x1cc),'cpFtL':'javascript','Lrbvs':_0x4bdf15(0x239),'obDty':_0x4bdf15(0x243),'WFdoe':'passed','pSStB':function(_0x1768aa,_0x4383b1){return _0x1768aa!==_0x4383b1;},'UaQHr':function(_0x5a1e50,_0x117b03){return _0x5a1e50/_0x117b03;},'fiwwh':function(_0x3b89b2,_0x184f22){return _0x3b89b2===_0x184f22;},'RcTuM':_0x4bdf15(0x250),'BBFVo':function(_0x53f4f5,_0x1a852e){return _0x53f4f5(_0x1a852e);},'RSMKi':_0x4bdf15(0x1ed),'aahWB':function(_0x4e8a3b,_0x4509b4){return _0x4e8a3b(_0x4509b4);},'ZvWqk':_0x4bdf15(0x209),'ylDZz':_0x4bdf15(0x246)},{feature:_0x4e1ae3,scenario:_0xcb1720,steps:_0x4c14d7,uuid:_0x1ea82a,startedAt:_0x567003,finishedAt:_0x116827}=_0x123907[_0x4bdf15(0x242)](_0x4a18b7,{}),_0x1d81d8=this[_0x4bdf15(0x1d8)](_0x3afa71,_0x1d446f);await this[_0x4bdf15(0x229)]();const _0x22e14b=_0x1d81d8?_0x123907[_0x4bdf15(0x1f1)](_0x123907[_0x4bdf15(0x251)](_0x123907[_0x4bdf15(0x1f5)](_0x1d446f[_0x4bdf15(0x245)],'\x20('),_0x1d81d8[_0x4bdf15(0x241)](',\x20')),')'):_0x1d446f[_0x4bdf15(0x245)],_0x140802={'id':_0xb9ccc5,'uuid':_0xb9ccc5,'startedAt':_0x567003,'finishedAt':_0x116827,'type':_0x123907[_0x4bdf15(0x23e)],'body':{'lang':_0x123907[_0x4bdf15(0x1e3)],'code':null},'name':_0x22e14b,'scopes':[_0x4e1ae3&&_0x4e1ae3[_0x4bdf15(0x245)]?_0x4e1ae3[_0x4bdf15(0x245)]:''],'tags':_0x1d446f['tags']?_0x1d446f['tags']['map'](({name:_0x3ff1b8})=>_0x3ff1b8):[],'file_name':_0x1d446f['uri'],'location':_0x1d446f['uri'],'vc_filepath':this[_0x4bdf15(0x22e)]&&_0x1d446f['uri']?path[_0x4bdf15(0x1d1)](this[_0x4bdf15(0x22e)],_0x1d446f[_0x4bdf15(0x1ff)]):null,'framework':_0x123907[_0x4bdf15(0x1e4)],'result':_0x123907[_0x4bdf15(0x22d)],'meta':{'feature':_0x4e1ae3,'scenario':_0xcb1720,'steps':_0x4c14d7,'examples':_0x1d81d8},'customRerunParam':{'rerun_name':_0x22e14b}};if(_0x5453a7[_0x4bdf15(0x21b)]&&_0x4c14d7){const _0x407049=_0x5453a7[_0x4bdf15(0x21b)];let _0x1c158e=_0x123907[_0x4bdf15(0x1df)];_0x4c14d7[_0x4bdf15(0x1fb)](_0x54ae51=>{const _0x2661e2=_0x4bdf15;if(_0x123907[_0x2661e2(0x1f9)](_0x54ae51[_0x2661e2(0x23f)],_0x123907[_0x2661e2(0x240)]))return _0x1c158e=_0x123907[_0x2661e2(0x220)],_0x407049[_0x2661e2(0x210)]=_0x54ae51[_0x2661e2(0x210)],_0x407049['failureType']=_0x54ae51[_0x2661e2(0x21e)],![];else{if(_0x123907[_0x2661e2(0x1f9)](_0x54ae51[_0x2661e2(0x23f)],_0x123907['qldSN']))return _0x1c158e=_0x123907['qbxvI'],![];}return!![];}),_0x140802['finishedAt']=new Date()[_0x4bdf15(0x1ce)](),_0x140802[_0x4bdf15(0x23f)]=_0x1c158e;_0x407049[_0x4bdf15(0x214)]&&_0x123907[_0x4bdf15(0x1ea)](_0x407049['timestamp'][_0x4bdf15(0x206)],undefined)?_0x140802[_0x4bdf15(0x1d5)]=_0x123907[_0x4bdf15(0x24e)](_0x407049[_0x4bdf15(0x214)][_0x4bdf15(0x206)],0xf4240):_0x140802[_0x4bdf15(0x1d5)]=undefined;if(_0x123907['fiwwh'](_0x1c158e,_0x123907['GfgZC'])){const {default:_0x467371}=await import(_0x123907[_0x4bdf15(0x20b)]);_0x140802['failure']=[{'backtrace':[_0x407049[_0x4bdf15(0x210)]?_0x123907[_0x4bdf15(0x1e1)](_0x467371,_0x407049[_0x4bdf15(0x210)]):_0x123907[_0x4bdf15(0x1f8)]]}],_0x140802['failure_reason']=_0x407049[_0x4bdf15(0x210)]?_0x123907[_0x4bdf15(0x236)](_0x467371,_0x407049[_0x4bdf15(0x210)]):_0x407049[_0x4bdf15(0x1e2)],_0x407049[_0x4bdf15(0x21e)]&&(_0x140802['failure_type']=_0x407049['failureType'][_0x4bdf15(0x24f)](/AssertError/)?_0x123907[_0x4bdf15(0x22b)]:_0x123907[_0x4bdf15(0x1de)]);}}return _0x140802;}[a119_0x478791(0x22c)](_0x5281d0,_0x2afbba,_0x2e2b08,_0x35b3ba,_0x124ef0,_0x5ccd52){const _0x4f0cc1=a119_0x478791,_0x3796f4={'cLrqh':function(_0xc1c087,_0x1c0d91){return _0xc1c087===_0x1c0d91;},'avvME':_0x4f0cc1(0x225),'pHNwq':function(_0x472d30,_0x2392d9,_0x2c2b43){return _0x472d30(_0x2392d9,_0x2c2b43);},'hodle':_0x4f0cc1(0x203),'kKlPd':_0x4f0cc1(0x1ff),'yPhYY':'pending','ruxFy':'hook','KFJLt':_0x4f0cc1(0x212),'uCQUw':function(_0x228c01,_0x123e25,_0x537cd8){return _0x228c01(_0x123e25,_0x537cd8);},'YwXxj':_0x4f0cc1(0x1f6),'lGkKs':_0x4f0cc1(0x245),'hyMFS':function(_0xc07864,_0x3e4ae0,_0x4a8767){return _0xc07864(_0x3e4ae0,_0x4a8767);},'GfMPh':_0x4f0cc1(0x239)};try{if(_0x3796f4[_0x4f0cc1(0x249)](_0x2e2b08,_0x3796f4['avvME'])){const _0x4edb07=new Date()['toISOString'](),_0x7ad9bc=hooksMap[_0x2afbba];if(!_0x7ad9bc)return;const _0x17537a=_0x7ad9bc[_0x4f0cc1(0x235)](_0x4d53d8=>_0x4d53d8[_0x4f0cc1(0x1e8)]===_0x35b3ba['id']);if(!_0x17537a)return;const _0x582bb8=this[_0x4f0cc1(0x234)](_0x5281d0,_0x2afbba);_0x17537a[_0x4f0cc1(0x23f)]=_0x582bb8[_0x4f0cc1(0x1e0)],_0x17537a[_0x4f0cc1(0x1fd)]=_0x4edb07,_0x17537a[_0x4f0cc1(0x223)]=_0x582bb8['failureType'];const _0x295d53={};return _0x295d53[_0x4f0cc1(0x230)]=_0x582bb8[_0x4f0cc1(0x24b)],_0x17537a[_0x4f0cc1(0x248)]=[_0x295d53],_0x17537a;}const _0x2f7eef=TestInfo[_0x4f0cc1(0x247)](_0x2afbba),_0x47fa81=_0x5281d0[_0x4f0cc1(0x21c)]['find'](_0xb12572=>_0xb12572['id']===_0x35b3ba[_0x4f0cc1(0x201)]),_0x3ad80e=_0x3796f4['pHNwq'](nestedKeyValue,_0x47fa81,[_0x3796f4['hodle'],_0x3796f4['kKlPd']]),_0x5c7c78=new Date()['toISOString'](),_0x3ea3b2=_0x3796f4['yPhYY'],_0x284805=_0x47fa81[_0x4f0cc1(0x228)]?_0x47fa81[_0x4f0cc1(0x228)]['split']('\x20')[_0x4f0cc1(0x1da)](_0x3dd12f=>_0x3dd12f[_0x4f0cc1(0x253)]('@')):[],_0x1a7249={'uuid':_0x35b3ba['id'],'type':_0x3796f4[_0x4f0cc1(0x1cb)],'hook_type':_0x5ccd52,'name':_0x47fa81['name'],'body':{'lang':_0x3796f4[_0x4f0cc1(0x1d0)],'code':null},'tags':_0x284805,'test_run_id':_0x2f7eef,'scope':_0x3796f4[_0x4f0cc1(0x216)](nestedKeyValue,_0x124ef0,[_0x3796f4[_0x4f0cc1(0x1db)],_0x3796f4[_0x4f0cc1(0x1fe)]]),'scopes':[_0x3796f4[_0x4f0cc1(0x20a)](nestedKeyValue,_0x124ef0,[_0x3796f4[_0x4f0cc1(0x1db)],_0x3796f4[_0x4f0cc1(0x1fe)]])||''],'file_name':_0x3ad80e,'location':_0x3ad80e,'vc_filepath':this[_0x4f0cc1(0x22e)]?path[_0x4f0cc1(0x1d1)](this[_0x4f0cc1(0x22e)],_0x3ad80e):null,'result':_0x3ea3b2,'started_at':_0x5c7c78,'framework':_0x3796f4[_0x4f0cc1(0x1fc)]};return _0x1a7249;}catch(_0x3ec2ba){logger[_0x4f0cc1(0x24a)](_0x4f0cc1(0x207)+util['format'](_0x3ec2ba)+'\x20');}}async['createHookData'](_0x43ffde,_0x3a569d,_0x445bef,_0x1ba27a,_0x4bb87d,_0x96b5cf){const _0x1568b8=a119_0x478791,_0x1c680f={'ZEMQR':function(_0x105eaf,_0x52a9db){return _0x105eaf===_0x52a9db;},'ZuskX':_0x1568b8(0x224),'GpyeG':function(_0x1de5ef,_0x3cb131,_0x46d82b){return _0x1de5ef(_0x3cb131,_0x46d82b);},'gPJPT':_0x1568b8(0x203),'QHoMr':_0x1568b8(0x1ff),'epHgo':_0x1568b8(0x21d),'woiZk':function(_0x3c97e5,_0x491656){return _0x3c97e5===_0x491656;},'ZqLgz':_0x1568b8(0x1d6)};try{const _0xa36ea=_0x1ba27a[_0x1568b8(0x235)](_0x1b18f1=>_0x1b18f1['id']===_0x4bb87d);if(!_0xa36ea[_0x1568b8(0x201)])return;const _0x427edb=this['getCucumberHookType'](_0x1ba27a,_0xa36ea),_0x110e98=this['getHookRunEventData'](_0x43ffde,_0x3a569d,_0x445bef,_0xa36ea,_0x96b5cf,_0x427edb);if(!_0x110e98)return;_0x1c680f[_0x1568b8(0x21a)](_0x445bef,_0x1c680f[_0x1568b8(0x222)])&&(hooksMap[_0x3a569d]?hooksMap[_0x3a569d][_0x1568b8(0x20f)](_0x110e98):hooksMap[_0x3a569d]=[_0x110e98]);const _0x232a0c=_0x43ffde['hooks'][_0x1568b8(0x235)](_0x57a452=>_0x57a452['id']===_0xa36ea['hookId']),_0x1a13ff=_0x1c680f[_0x1568b8(0x1fa)](nestedKeyValue,_0x232a0c,[_0x1c680f['gPJPT'],_0x1c680f[_0x1568b8(0x232)]]);if(!_0x1a13ff)return;else{if(_0x1a13ff[_0x1568b8(0x253)](_0x1c680f[_0x1568b8(0x231)]))return;}if(_0x1c680f['woiZk'](_0x110e98[_0x1568b8(0x245)],_0x1c680f['ZqLgz']))return;return _0x110e98;}catch(_0x150379){logger['debug'](_0x1568b8(0x23d)+util[_0x1568b8(0x244)](_0x150379)+'\x20');}}[a119_0x478791(0x234)](_0x31a056,_0x2c42b6){const _0x893315=a119_0x478791,_0x487c9b={};_0x487c9b[_0x893315(0x1d2)]=function(_0xd042a3,_0x593e74){return _0xd042a3===_0x593e74;},_0x487c9b[_0x893315(0x215)]='failed',_0x487c9b[_0x893315(0x205)]=_0x893315(0x246),_0x487c9b[_0x893315(0x208)]=_0x893315(0x209),_0x487c9b['GubuB']=function(_0x4cd7bc,_0x592ec5){return _0x4cd7bc||_0x592ec5;};const _0x1444b3=_0x487c9b,_0x544f3b=_0x31a056['testStepFinished'][_0x2c42b6][_0x893315(0x1eb)];let _0x8ff9c2,_0x292797;return _0x544f3b&&_0x1444b3[_0x893315(0x1d2)](_0x544f3b['status'][_0x893315(0x23a)]()['toLowerCase'](),_0x1444b3[_0x893315(0x215)])&&(_0x8ff9c2=_0x1444b3[_0x893315(0x1d2)](_0x544f3b[_0x893315(0x21f)],undefined)?_0x544f3b[_0x893315(0x1e2)]:_0x544f3b['exception'][_0x893315(0x1e2)],_0x292797=_0x1444b3[_0x893315(0x1d2)](_0x544f3b[_0x893315(0x21f)],undefined)?_0x1444b3[_0x893315(0x205)]:_0x544f3b['message'][_0x893315(0x24f)](/Assert/)?_0x1444b3[_0x893315(0x208)]:_0x1444b3[_0x893315(0x205)]),{'status':_0x544f3b['status'][_0x893315(0x1f4)](),'failureType':_0x1444b3[_0x893315(0x211)](_0x292797,null),'failureData':!_0x8ff9c2?null:[_0x8ff9c2]};}[a119_0x478791(0x237)](_0xa48b7d,_0x240915){const _0xb8cc40=a119_0x478791,_0xa7226f={};_0xa7226f[_0xb8cc40(0x1cd)]=function(_0x3f4112,_0x2eb7ed){return _0x3f4112===_0x2eb7ed;},_0xa7226f['vpjbJ']='AFTER_EACH',_0xa7226f[_0xb8cc40(0x226)]=_0xb8cc40(0x252);const _0x780bc2=_0xa7226f;let _0x2e20f5=![];for(const _0x51c114 of _0xa48b7d){_0x51c114[_0xb8cc40(0x227)]&&(_0x2e20f5=!![]);if(_0x780bc2[_0xb8cc40(0x1cd)](_0x240915['id'],_0x51c114['id']))return _0x2e20f5?_0x780bc2['vpjbJ']:_0x780bc2['ZzXgm'];}}[a119_0x478791(0x1d8)]=(_0x50b805,_0x2d38b6)=>{const _0x5050cb=a119_0x478791,_0x4d0cd1={};_0x4d0cd1['Jtmcg']=function(_0x15926f,_0x4c6356){return _0x15926f===_0x4c6356;},_0x4d0cd1['fnSWJ']=function(_0x5f1c85,_0x2d64e0){return _0x5f1c85===_0x2d64e0;},_0x4d0cd1['ScbzU']=function(_0x3d067b,_0x3c9e30){return _0x3d067b>_0x3c9e30;};const _0x4c6faa=_0x4d0cd1;if(!(_0x2d38b6['astNodeIds']&&_0x4c6faa['ScbzU'](_0x2d38b6[_0x5050cb(0x238)][_0x5050cb(0x22f)],0x1)))return;const _0x1ed09b=_0x2d38b6[_0x5050cb(0x238)][0x0],_0xa3c400=_0x2d38b6[_0x5050cb(0x238)][0x1],_0x10ca75=_0x50b805[_0x5050cb(0x1f6)]&&_0x50b805[_0x5050cb(0x1f6)][_0x5050cb(0x219)]?_0x50b805[_0x5050cb(0x1f6)][_0x5050cb(0x219)]:undefined;let _0x517542=[];_0x10ca75&&_0x10ca75[_0x5050cb(0x20e)](_0x4bb2be=>{const _0x15c5bf=_0x5050cb,_0xec5692={'ockHY':function(_0x535c6f,_0x1818fe){const _0x58161f=a119_0x2a34;return _0x4c6faa[_0x58161f(0x1e7)](_0x535c6f,_0x1818fe);}};if(_0x4bb2be['rule'])_0x4bb2be[_0x15c5bf(0x204)][_0x15c5bf(0x219)][_0x15c5bf(0x20e)](_0x504c5e=>{const _0x3ae415=_0x15c5bf;if(_0x504c5e[_0x3ae415(0x22a)]&&_0xec5692['ockHY'](_0x504c5e[_0x3ae415(0x22a)]['id'],_0x1ed09b)&&_0x504c5e['scenario'][_0x3ae415(0x202)]){const _0x13a58f=_0x504c5e['scenario'][_0x3ae415(0x202)][_0x3ae415(0x1ee)](_0x4cc7d7=>_0x4cc7d7['tableBody'])['find'](_0x5af10c=>_0x5af10c['id']===_0xa3c400);let _0x4c01f1;_0x13a58f&&_0x13a58f['cells']?_0x4c01f1=_0x13a58f[_0x3ae415(0x1f7)]['map'](_0x10fa9f=>_0x10fa9f[_0x3ae415(0x1f3)]):_0x4c01f1=[],_0x4c01f1&&(_0x517542=_0x4c01f1);}});else{if(_0x4bb2be['scenario']&&_0x4c6faa[_0x15c5bf(0x24d)](_0x4bb2be[_0x15c5bf(0x22a)]['id'],_0x1ed09b)&&_0x4bb2be[_0x15c5bf(0x22a)][_0x15c5bf(0x202)]){const _0x15634c=_0x4bb2be['scenario'][_0x15c5bf(0x202)][_0x15c5bf(0x1ee)](_0x558947=>_0x558947[_0x15c5bf(0x221)])['find'](_0x3147dd=>_0x3147dd['id']===_0xa3c400);let _0x330968;_0x15634c&&_0x15634c[_0x15c5bf(0x1f7)]?_0x330968=_0x15634c[_0x15c5bf(0x1f7)][_0x15c5bf(0x1d9)](_0x38ba4e=>_0x38ba4e['value']):_0x330968=[],_0x330968&&(_0x517542=_0x330968);}}});if(_0x517542[_0x5050cb(0x22f)])return _0x517542;return;};async[a119_0x478791(0x229)](){const _0x5a9a5d=a119_0x478791,_0xbd1ef4={'AbRbO':function(_0x425dd9){return _0x425dd9();}};if(this[_0x5a9a5d(0x1d7)])return this[_0x5a9a5d(0x22e)];const _0x92c36d=await _0xbd1ef4[_0x5a9a5d(0x217)](getGitMetaData);_0x92c36d&&(this[_0x5a9a5d(0x22e)]=_0x92c36d[_0x5a9a5d(0x1f0)]),this['_gitConfigured']=!![];}}module['exports']=o11yClassErrorHandler(CucumberUtils,[a119_0x478791(0x229),a119_0x478791(0x1d8),'getCucumberHookType',a119_0x478791(0x234),a119_0x478791(0x1e5),a119_0x478791(0x22c),a119_0x478791(0x1cf),a119_0x478791(0x1dc)]);
|
|
1
|
+
function a119_0x3cf9(_0x2ede21,_0x468451){const _0x166d27=a119_0x166d();return a119_0x3cf9=function(_0x3cf9ba,_0x22f695){_0x3cf9ba=_0x3cf9ba-0x74;let _0x16634b=_0x166d27[_0x3cf9ba];return _0x16634b;},a119_0x3cf9(_0x2ede21,_0x468451);}const a119_0x1200ba=a119_0x3cf9;(function(_0x42e410,_0x54c412){const _0x3a1752=a119_0x3cf9,_0x3da3f2=_0x42e410();while(!![]){try{const _0x998312=parseInt(_0x3a1752(0x81))/0x1*(-parseInt(_0x3a1752(0xdb))/0x2)+parseInt(_0x3a1752(0xad))/0x3+-parseInt(_0x3a1752(0x7d))/0x4+parseInt(_0x3a1752(0xf6))/0x5+-parseInt(_0x3a1752(0xb4))/0x6*(-parseInt(_0x3a1752(0xaf))/0x7)+parseInt(_0x3a1752(0xcb))/0x8*(parseInt(_0x3a1752(0xf8))/0x9)+parseInt(_0x3a1752(0xc7))/0xa*(parseInt(_0x3a1752(0xb3))/0xb);if(_0x998312===_0x54c412)break;else _0x3da3f2['push'](_0x3da3f2['shift']());}catch(_0x35bc34){_0x3da3f2['push'](_0x3da3f2['shift']());}}}(a119_0x166d,0x22b5f));const path=require(a119_0x1200ba(0xba)),util=require(a119_0x1200ba(0x82)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a119_0x1200ba(0x77)),logger=require(a119_0x1200ba(0xcd))[a119_0x1200ba(0xa1)],{o11yClassErrorHandler}=require(a119_0x1200ba(0x93)),TestInfo=require('../TestInfo.js'),hooksMap={};class CucumberUtils{constructor(){const _0xb5222b=a119_0x1200ba;this[_0xb5222b(0xce)]=![],this[_0xb5222b(0xe3)]=null;}async[a119_0x1200ba(0xf3)](_0x4a6d80,_0x21b1bf,_0x5c3e67,_0x186bfa,_0x5a38ad,_0x5475e3){const _0x4ff3a4=a119_0x1200ba,_0x51c7d2={'rDiIi':function(_0x4066cf,_0x45f3cc){return _0x4066cf===_0x45f3cc;},'wkDYF':_0x4ff3a4(0xde),'YIxoW':_0x4ff3a4(0x7b),'OdfhX':'SKIPPED','LPXfX':_0x4ff3a4(0x7a),'AVICq':function(_0x1cc114,_0x2c75c9){return _0x1cc114||_0x2c75c9;},'HKgvt':function(_0x88d683,_0x521267){return _0x88d683+_0x521267;},'Eqduj':function(_0x1020ab,_0x5217d0){return _0x1020ab+_0x5217d0;},'ISIBh':_0x4ff3a4(0xb7),'miYpG':_0x4ff3a4(0xe5),'Wcvex':'cucumber','UNqYV':'pending','GGoBv':_0x4ff3a4(0x95),'ILdyK':function(_0x318a0a,_0x190def){return _0x318a0a!==_0x190def;},'YAvpG':function(_0x560ef6,_0x2d0488){return _0x560ef6/_0x2d0488;},'RGEhH':_0x4ff3a4(0xaa),'agZru':function(_0x56526c,_0x3dcb81){return _0x56526c(_0x3dcb81);},'RaEFr':_0x4ff3a4(0xd6),'YLozT':function(_0x173014,_0x3e6d26){return _0x173014(_0x3e6d26);},'bUinU':_0x4ff3a4(0x78),'kQLlR':'UnhandledError'},{feature:_0x4449cc,scenario:_0x4d49f6,steps:_0x198a37,uuid:_0x3c0176,startedAt:_0x4cf5d4,finishedAt:_0x4be7c1}=_0x51c7d2[_0x4ff3a4(0x91)](_0x4a6d80,{}),_0x1e04e1=this[_0x4ff3a4(0xa2)](_0x186bfa,_0x21b1bf);await this[_0x4ff3a4(0xac)]();const _0x365871=_0x1e04e1?_0x51c7d2[_0x4ff3a4(0xc8)](_0x51c7d2[_0x4ff3a4(0x103)](_0x51c7d2[_0x4ff3a4(0x103)](_0x21b1bf[_0x4ff3a4(0xec)],'\x20('),_0x1e04e1['join'](',\x20')),')'):_0x21b1bf[_0x4ff3a4(0xec)],_0x3265e7={'id':_0x5a38ad,'uuid':_0x5a38ad,'startedAt':_0x4cf5d4,'finishedAt':_0x4be7c1,'type':_0x51c7d2[_0x4ff3a4(0xe6)],'body':{'lang':_0x51c7d2[_0x4ff3a4(0xbc)],'code':null},'name':_0x365871,'scopes':[_0x4449cc&&_0x4449cc[_0x4ff3a4(0xec)]?_0x4449cc[_0x4ff3a4(0xec)]:''],'tags':_0x21b1bf[_0x4ff3a4(0xa6)]?_0x21b1bf[_0x4ff3a4(0xa6)][_0x4ff3a4(0x98)](({name:_0x3ee8d9})=>_0x3ee8d9):[],'file_name':_0x21b1bf[_0x4ff3a4(0xd4)],'location':_0x21b1bf[_0x4ff3a4(0xd4)],'vc_filepath':this[_0x4ff3a4(0xe3)]&&_0x21b1bf[_0x4ff3a4(0xd4)]?path[_0x4ff3a4(0x89)](this['_gitConfigPath'],_0x21b1bf[_0x4ff3a4(0xd4)]):null,'framework':_0x51c7d2[_0x4ff3a4(0xb0)],'result':_0x51c7d2['UNqYV'],'meta':{'feature':_0x4449cc,'scenario':_0x4d49f6,'steps':_0x198a37,'examples':_0x1e04e1},'customRerunParam':{'rerun_name':_0x365871}};if(_0x5c3e67[_0x4ff3a4(0xff)]&&_0x198a37){const _0x28e931=_0x5c3e67['testCaseFinished'];let _0x59fb21=_0x51c7d2[_0x4ff3a4(0xd0)];_0x198a37[_0x4ff3a4(0x76)](_0x5a14ed=>{const _0x10b59f=_0x4ff3a4;if(_0x51c7d2[_0x10b59f(0xa7)](_0x5a14ed['result'],_0x51c7d2[_0x10b59f(0x7f)]))return _0x59fb21=_0x51c7d2['YIxoW'],_0x28e931[_0x10b59f(0xfa)]=_0x5a14ed[_0x10b59f(0xfa)],_0x28e931[_0x10b59f(0xfc)]=_0x5a14ed[_0x10b59f(0xfc)],![];else{if(_0x51c7d2[_0x10b59f(0xa7)](_0x5a14ed[_0x10b59f(0x87)],_0x51c7d2[_0x10b59f(0xfb)]))return _0x59fb21=_0x51c7d2['LPXfX'],![];}return!![];}),_0x3265e7[_0x4ff3a4(0xcc)]=new Date()[_0x4ff3a4(0xb8)](),_0x3265e7[_0x4ff3a4(0x87)]=_0x59fb21;_0x28e931[_0x4ff3a4(0x7e)]&&_0x51c7d2[_0x4ff3a4(0x90)](_0x28e931[_0x4ff3a4(0x7e)]['nanos'],undefined)?_0x3265e7[_0x4ff3a4(0xbb)]=_0x51c7d2[_0x4ff3a4(0xb6)](_0x28e931[_0x4ff3a4(0x7e)][_0x4ff3a4(0xe2)],0xf4240):_0x3265e7[_0x4ff3a4(0xbb)]=undefined;if(_0x51c7d2[_0x4ff3a4(0xa7)](_0x59fb21,_0x51c7d2[_0x4ff3a4(0x96)])){const {default:_0x9e9d6}=await import(_0x51c7d2['RGEhH']);_0x3265e7[_0x4ff3a4(0xfa)]=[{'backtrace':[_0x28e931['failure']?_0x51c7d2[_0x4ff3a4(0xbe)](_0x9e9d6,_0x28e931[_0x4ff3a4(0xfa)]):_0x51c7d2[_0x4ff3a4(0x84)]]}],_0x3265e7[_0x4ff3a4(0xa4)]=_0x28e931[_0x4ff3a4(0xfa)]?_0x51c7d2[_0x4ff3a4(0xdf)](_0x9e9d6,_0x28e931['failure']):_0x28e931[_0x4ff3a4(0x97)],_0x28e931[_0x4ff3a4(0xfc)]&&(_0x3265e7['failure_type']=_0x28e931['failureType'][_0x4ff3a4(0xa0)](/AssertError/)?_0x51c7d2[_0x4ff3a4(0xef)]:_0x51c7d2['kQLlR']);}}return _0x3265e7;}[a119_0x1200ba(0xeb)](_0x2c288a,_0x325eef,_0x16ea88,_0x1031bb,_0xdf73b1,_0x5b2179){const _0x23920a=a119_0x1200ba,_0x51ee84={'nVCDz':function(_0x20ed5a,_0x1c5354){return _0x20ed5a===_0x1c5354;},'HxCdc':_0x23920a(0x8a),'DfmpM':function(_0x2cd6a7,_0x3c1508,_0x59c067){return _0x2cd6a7(_0x3c1508,_0x59c067);},'PnZEB':_0x23920a(0xe8),'VfxrK':_0x23920a(0xd4),'FxEos':_0x23920a(0xf5),'hcdrc':_0x23920a(0x7c),'mJyGe':'javascript','IBYnd':function(_0x34d546,_0x2ac1f1,_0x586468){return _0x34d546(_0x2ac1f1,_0x586468);},'TomDB':_0x23920a(0x9f),'fNtsb':_0x23920a(0xec),'kklmh':function(_0x1fcaa7,_0x501467,_0x253831){return _0x1fcaa7(_0x501467,_0x253831);},'EPvVt':_0x23920a(0xc5)};try{if(_0x51ee84[_0x23920a(0xb9)](_0x16ea88,_0x51ee84['HxCdc'])){const _0xb43991=new Date()['toISOString'](),_0x450cf1=hooksMap[_0x325eef];if(!_0x450cf1)return;const _0x11f5da=_0x450cf1[_0x23920a(0xf1)](_0x2ad7db=>_0x2ad7db[_0x23920a(0x8f)]===_0x1031bb['id']);if(!_0x11f5da)return;const _0x4cf290=this[_0x23920a(0xe7)](_0x2c288a,_0x325eef);_0x11f5da['result']=_0x4cf290[_0x23920a(0xa9)],_0x11f5da[_0x23920a(0xbf)]=_0xb43991,_0x11f5da[_0x23920a(0xdd)]=_0x4cf290[_0x23920a(0xfc)];const _0x200c71={};return _0x200c71[_0x23920a(0xae)]=_0x4cf290[_0x23920a(0xf2)],_0x11f5da[_0x23920a(0xd1)]=[_0x200c71],_0x11f5da;}const _0xee45d7=TestInfo['getTestUUID'](_0x325eef),_0x377d8e=_0x2c288a[_0x23920a(0x102)][_0x23920a(0xf1)](_0x17ac40=>_0x17ac40['id']===_0x1031bb[_0x23920a(0x9c)]),_0x47804c=_0x51ee84[_0x23920a(0x85)](nestedKeyValue,_0x377d8e,[_0x51ee84[_0x23920a(0x8b)],_0x51ee84[_0x23920a(0x9a)]]),_0x582e9d=new Date()[_0x23920a(0xb8)](),_0x498082=_0x51ee84[_0x23920a(0xfd)],_0x3a9dfd=_0x377d8e['tagExpression']?_0x377d8e[_0x23920a(0xb2)][_0x23920a(0x94)]('\x20')[_0x23920a(0x83)](_0x5d4d42=>_0x5d4d42[_0x23920a(0xcf)]('@')):[],_0x1c6898={'uuid':_0x1031bb['id'],'type':_0x51ee84[_0x23920a(0xdc)],'hook_type':_0x5b2179,'name':_0x377d8e[_0x23920a(0xec)],'body':{'lang':_0x51ee84[_0x23920a(0xb1)],'code':null},'tags':_0x3a9dfd,'test_run_id':_0xee45d7,'scope':_0x51ee84['IBYnd'](nestedKeyValue,_0xdf73b1,[_0x51ee84[_0x23920a(0xf7)],_0x51ee84[_0x23920a(0x8e)]]),'scopes':[_0x51ee84[_0x23920a(0xab)](nestedKeyValue,_0xdf73b1,[_0x51ee84[_0x23920a(0xf7)],_0x51ee84[_0x23920a(0x8e)]])||''],'file_name':_0x47804c,'location':_0x47804c,'vc_filepath':this[_0x23920a(0xe3)]?path[_0x23920a(0x89)](this[_0x23920a(0xe3)],_0x47804c):null,'result':_0x498082,'started_at':_0x582e9d,'framework':_0x51ee84[_0x23920a(0xe1)]};return _0x1c6898;}catch(_0x188f6a){logger[_0x23920a(0xc6)](_0x23920a(0x104)+util[_0x23920a(0xe9)](_0x188f6a)+'\x20');}}async[a119_0x1200ba(0x105)](_0x191442,_0x553cf5,_0x2a4ee7,_0x4442aa,_0xe994bd,_0x1fc7e1){const _0x384ae0=a119_0x1200ba,_0xdd05ca={'kwDJU':function(_0x34de9b,_0x484add){return _0x34de9b===_0x484add;},'GKTFq':_0x384ae0(0x101),'lqDAK':function(_0x51eed8,_0x4df2f4,_0x19cc54){return _0x51eed8(_0x4df2f4,_0x19cc54);},'tZOUy':_0x384ae0(0xe8),'FIZCZ':_0x384ae0(0xd4),'DYwad':'browserstack-node-agent/src/bin/cucumber-js/test.setup.js','BdQoR':_0x384ae0(0xc4)};try{const _0xacf740=_0x4442aa['find'](_0x530a6b=>_0x530a6b['id']===_0xe994bd);if(!_0xacf740['hookId'])return;const _0x339fd1=this['getCucumberHookType'](_0x4442aa,_0xacf740),_0x223838=this[_0x384ae0(0xeb)](_0x191442,_0x553cf5,_0x2a4ee7,_0xacf740,_0x1fc7e1,_0x339fd1);if(!_0x223838)return;_0xdd05ca['kwDJU'](_0x2a4ee7,_0xdd05ca[_0x384ae0(0xf4)])&&(hooksMap[_0x553cf5]?hooksMap[_0x553cf5]['push'](_0x223838):hooksMap[_0x553cf5]=[_0x223838]);const _0x4193c1=_0x191442['hooks'][_0x384ae0(0xf1)](_0x41674b=>_0x41674b['id']===_0xacf740[_0x384ae0(0x9c)]),_0x3ef0ea=_0xdd05ca[_0x384ae0(0xda)](nestedKeyValue,_0x4193c1,[_0xdd05ca['tZOUy'],_0xdd05ca[_0x384ae0(0xc3)]]);if(!_0x3ef0ea)return;else{if(_0x3ef0ea[_0x384ae0(0xcf)](_0xdd05ca[_0x384ae0(0xca)]))return;}if(_0xdd05ca[_0x384ae0(0xbd)](_0x223838[_0x384ae0(0xec)],_0xdd05ca[_0x384ae0(0xa3)]))return;return _0x223838;}catch(_0x221db2){logger[_0x384ae0(0xc6)](_0x384ae0(0x9e)+util['format'](_0x221db2)+'\x20');}}[a119_0x1200ba(0xe7)](_0x25f19a,_0x35ce28){const _0x11c72d=a119_0x1200ba,_0x115d38={};_0x115d38[_0x11c72d(0xe4)]=function(_0xcf3935,_0x3da391){return _0xcf3935===_0x3da391;},_0x115d38[_0x11c72d(0xc2)]=_0x11c72d(0x7b),_0x115d38['WQGSR']=_0x11c72d(0xed),_0x115d38[_0x11c72d(0xd8)]=_0x11c72d(0x78),_0x115d38[_0x11c72d(0x8c)]=function(_0x1bb84b,_0x4f7799){return _0x1bb84b||_0x4f7799;};const _0x55eb2f=_0x115d38,_0x2228ed=_0x25f19a['testStepFinished'][_0x35ce28][_0x11c72d(0xd7)];let _0x256534,_0x289b55;return _0x2228ed&&_0x55eb2f[_0x11c72d(0xe4)](_0x2228ed[_0x11c72d(0xa9)][_0x11c72d(0x8d)]()[_0x11c72d(0xe0)](),_0x55eb2f[_0x11c72d(0xc2)])&&(_0x256534=_0x55eb2f[_0x11c72d(0xe4)](_0x2228ed['exception'],undefined)?_0x2228ed[_0x11c72d(0x97)]:_0x2228ed[_0x11c72d(0xf9)][_0x11c72d(0x97)],_0x289b55=_0x55eb2f[_0x11c72d(0xe4)](_0x2228ed['exception'],undefined)?_0x55eb2f[_0x11c72d(0xf0)]:_0x2228ed['message'][_0x11c72d(0xa0)](/Assert/)?_0x55eb2f[_0x11c72d(0xd8)]:_0x55eb2f[_0x11c72d(0xf0)]),{'status':_0x2228ed['status'][_0x11c72d(0xe0)](),'failureType':_0x55eb2f[_0x11c72d(0x8c)](_0x289b55,null),'failureData':!_0x256534?null:[_0x256534]};}[a119_0x1200ba(0xd9)](_0x175623,_0x4b1625){const _0x5da95f=a119_0x1200ba,_0x311301={};_0x311301['cFHaR']=function(_0x1f5fd1,_0x105530){return _0x1f5fd1===_0x105530;},_0x311301['ekCjA']=_0x5da95f(0x92),_0x311301[_0x5da95f(0x86)]='BEFORE_EACH';const _0x29436d=_0x311301;let _0x229cfc=![];for(const _0x45c058 of _0x175623){_0x45c058[_0x5da95f(0xc1)]&&(_0x229cfc=!![]);if(_0x29436d[_0x5da95f(0x9b)](_0x4b1625['id'],_0x45c058['id']))return _0x229cfc?_0x29436d[_0x5da95f(0x79)]:_0x29436d[_0x5da95f(0x86)];}}[a119_0x1200ba(0xa2)]=(_0x1667ac,_0x52db12)=>{const _0x179c04=a119_0x1200ba,_0x401923={};_0x401923['DOhfy']=function(_0x40feb0,_0x5a90e3){return _0x40feb0===_0x5a90e3;},_0x401923[_0x179c04(0xee)]=function(_0x36a060,_0x4af038){return _0x36a060===_0x4af038;},_0x401923['nFEyk']=function(_0x4ef85f,_0x57ce0e){return _0x4ef85f>_0x57ce0e;};const _0x419720=_0x401923;if(!(_0x52db12[_0x179c04(0x80)]&&_0x419720[_0x179c04(0x106)](_0x52db12['astNodeIds'][_0x179c04(0xc9)],0x1)))return;const _0x465899=_0x52db12[_0x179c04(0x80)][0x0],_0x1ebb3e=_0x52db12[_0x179c04(0x80)][0x1],_0x32d819=_0x1667ac['feature']&&_0x1667ac[_0x179c04(0x9f)][_0x179c04(0xc0)]?_0x1667ac[_0x179c04(0x9f)][_0x179c04(0xc0)]:undefined;let _0x4c81ab=[];_0x32d819&&_0x32d819[_0x179c04(0x75)](_0x1ef75a=>{const _0x5cbb88=_0x179c04,_0x268fe6={'FzasN':function(_0x5b5cbd,_0x142217){const _0x519303=a119_0x3cf9;return _0x419720[_0x519303(0x100)](_0x5b5cbd,_0x142217);}};if(_0x1ef75a[_0x5cbb88(0x99)])_0x1ef75a[_0x5cbb88(0x99)][_0x5cbb88(0xc0)]['forEach'](_0x475aa7=>{const _0x21cada=_0x5cbb88;if(_0x475aa7[_0x21cada(0xfe)]&&_0x268fe6['FzasN'](_0x475aa7['scenario']['id'],_0x465899)&&_0x475aa7[_0x21cada(0xfe)][_0x21cada(0xd2)]){const _0x7ae1da=_0x475aa7[_0x21cada(0xfe)][_0x21cada(0xd2)][_0x21cada(0xb5)](_0x166c85=>_0x166c85[_0x21cada(0x88)])[_0x21cada(0xf1)](_0x414eb8=>_0x414eb8['id']===_0x1ebb3e);let _0x4cc600;_0x7ae1da&&_0x7ae1da[_0x21cada(0xa5)]?_0x4cc600=_0x7ae1da[_0x21cada(0xa5)][_0x21cada(0x98)](_0x408e69=>_0x408e69[_0x21cada(0xd3)]):_0x4cc600=[],_0x4cc600&&(_0x4c81ab=_0x4cc600);}});else{if(_0x1ef75a[_0x5cbb88(0xfe)]&&_0x419720[_0x5cbb88(0xee)](_0x1ef75a[_0x5cbb88(0xfe)]['id'],_0x465899)&&_0x1ef75a[_0x5cbb88(0xfe)][_0x5cbb88(0xd2)]){const _0x589b21=_0x1ef75a['scenario'][_0x5cbb88(0xd2)][_0x5cbb88(0xb5)](_0xc3b075=>_0xc3b075['tableBody'])[_0x5cbb88(0xf1)](_0xbc979f=>_0xbc979f['id']===_0x1ebb3e);let _0x3b14c8;_0x589b21&&_0x589b21['cells']?_0x3b14c8=_0x589b21[_0x5cbb88(0xa5)][_0x5cbb88(0x98)](_0x18690d=>_0x18690d[_0x5cbb88(0xd3)]):_0x3b14c8=[],_0x3b14c8&&(_0x4c81ab=_0x3b14c8);}}});if(_0x4c81ab[_0x179c04(0xc9)])return _0x4c81ab;return;};async[a119_0x1200ba(0xac)](){const _0x1bea77=a119_0x1200ba,_0x209f82={'Sbaci':function(_0x9c9f5b){return _0x9c9f5b();}};if(this[_0x1bea77(0xce)])return this['_gitConfigPath'];const _0x32a2bb=await _0x209f82[_0x1bea77(0xa8)](getGitMetaData);_0x32a2bb&&(this['_gitConfigPath']=_0x32a2bb[_0x1bea77(0xd5)]),this[_0x1bea77(0xce)]=!![];}}function a119_0x166d(){const _0x4c36bd=['rule','VfxrK','cFHaR','hookId','sendTestRunEventForCucumber','Exception\x20in\x20createHookData:\x20','feature','match','winstonLogger','getScenarioExamples','BdQoR','failure_reason','cells','tags','rDiIi','Sbaci','status','strip-ansi','kklmh','configureGit','77997kmisWH','backtrace','7odRBwS','Wcvex','mJyGe','tagExpression','1129183yKXXAH','724602zgSMKs','flatMap','YAvpG','test','toISOString','nVCDz','path','duration_in_ms','miYpG','kwDJU','agZru','finished_at','children','pickleStepId','quuIL','FIZCZ','bstack','cucumber','debug','10tQXUPG','HKgvt','length','DYwad','1007656tvRZOG','finishedAt','../../../helpers/logger.js','_gitConfigured','includes','GGoBv','failure_data','examples','value','uri','root','unknown','testStepResult','HyURD','getCucumberHookType','lqDAK','176642hIDOoi','hcdrc','failure_type','FAILED','YLozT','toLowerCase','EPvVt','nanos','_gitConfigPath','qQKaC','javascript','ISIBh','getHookResult','sourceReference','format','sendHook','getHookRunEventData','name','UnhandledError','vsVtG','bUinU','WQGSR','find','failureData','createTestFrameworkData','GKTFq','pending','1365640zmvelK','TomDB','9RvBktn','exception','failure','OdfhX','failureType','FxEos','scenario','testCaseFinished','DOhfy','HookRunStarted','hooks','Eqduj','Exception\x20in\x20getHookRunEventData:\x20','createHookData','nFEyk','exports','forEach','every','../../../helpers/helper.js','AssertionError','ekCjA','skipped','failed','hook','965464ocBHRU','timestamp','wkDYF','astNodeIds','3uJmEzb','util','filter','RaEFr','DfmpM','TBYHn','result','tableBody','relative','HookRunFinished','PnZEB','NUlMA','toString','fNtsb','uuid','ILdyK','AVICq','AFTER_EACH','../../../helpers/test-observability/error-handler.js','split','passed','YIxoW','message','map'];a119_0x166d=function(){return _0x4c36bd;};return a119_0x166d();}module[a119_0x1200ba(0x74)]=o11yClassErrorHandler(CucumberUtils,[a119_0x1200ba(0xac),a119_0x1200ba(0xa2),'getCucumberHookType',a119_0x1200ba(0xe7),a119_0x1200ba(0xea),a119_0x1200ba(0xeb),a119_0x1200ba(0x9d),'createTestFrameworkData']);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a120_0x23830c=a120_0x4e5c;function a120_0x4e5c(_0x15d395,_0x112090){const _0x1de9bd=a120_0x1de9();return a120_0x4e5c=function(_0x4e5c7c,_0x1af922){_0x4e5c7c=_0x4e5c7c-0x196;let _0x43208d=_0x1de9bd[_0x4e5c7c];return _0x43208d;},a120_0x4e5c(_0x15d395,_0x112090);}(function(_0x5d5fc8,_0x2f1293){const _0x168ba5=a120_0x4e5c,_0x96f7e9=_0x5d5fc8();while(!![]){try{const _0x16025e=-parseInt(_0x168ba5(0x1e6))/0x1+-parseInt(_0x168ba5(0x226))/0x2+-parseInt(_0x168ba5(0x229))/0x3+parseInt(_0x168ba5(0x1e8))/0x4*(parseInt(_0x168ba5(0x22a))/0x5)+parseInt(_0x168ba5(0x22e))/0x6*(parseInt(_0x168ba5(0x1d7))/0x7)+-parseInt(_0x168ba5(0x1f8))/0x8*(parseInt(_0x168ba5(0x218))/0x9)+-parseInt(_0x168ba5(0x203))/0xa*(-parseInt(_0x168ba5(0x1fa))/0xb);if(_0x16025e===_0x2f1293)break;else _0x96f7e9['push'](_0x96f7e9['shift']());}catch(_0x24eef1){_0x96f7e9['push'](_0x96f7e9['shift']());}}}(a120_0x1de9,0x884e8));const path=require(a120_0x23830c(0x1a6)),util=require('util'),crypto=require(a120_0x23830c(0x1e2)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a120_0x23830c(0x205)),logger=require(a120_0x23830c(0x1d3))[a120_0x23830c(0x1bb)],{o11yClassErrorHandler}=require(a120_0x23830c(0x1cd)),TestInfo=require(a120_0x23830c(0x213)),{failureData,getFailureType,PathHelper}=require(a120_0x23830c(0x246)),stackTrace=require('stack-trace'),{pickUserFrameFile}=require(a120_0x23830c(0x24a)),a120_0x2d63dd={};function a120_0x1de9(){const _0x3e2461=['winstonLogger','nZjWE','file','getState','errorsDetailed','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','imuNR','currentTest','parse','fullName','rDrse','failure_data','createHookData','Exception\x20in\x20getHookRunEventData:\x20','name','pvXHz','rVWJl','getTestIdentifier','../../../helpers/test-observability/error-handler.js','testAnalyticsId','push','getRootParentFile','jqKnj','ROOT_DESCRIBE_BLOCK','../../../helpers/logger.js','configureGit','JVEvb','asyncError','15687wiKihq','relative','Qbghk','_gitConfigPath','_paths','dtgCz','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','toString','oWikB','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','RVFxX','crypto','failure_reason','update','test','443951WVNmqV','[jestUtils]\x20No\x20test\x20object\x20provided','54580OlTWHU','\x22\x20hook\x20for\x20\x22','_gitConfigured','failed','heQYC','getFileName','now','Unknown\x20Test','title','browserstack-node-agent/src/bin/jest','vVuDF','failure_backtrace','inspect','wctif','retryOf','aItyC','3843664OXrPRg','err','21195394XFWFwO','toISOString','AaFlN','HookRunStarted','format','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','createHash','WUuah','SJPOg','10DLbYbh','substring','../../../helpers/helper.js','result','hook',',\x20testIdentifier:\x20','ZbzbH','xELie','YplKd','BEFORE_EACH','expanded','afwTS','xKZHi','TestRunFinished','extractTestFilePath','exports','../TestInfo.js','qOuGA','File\x20path\x20could\x20not\x20be\x20found','GcgtG','uuid','9PkdOYY','wGeUP','getName','finishedAt','gfZAH','uiiKq','BEFORE_ALL','jest','createIdentifierFromJestTest','Kticb','errors','AFTER_EACH','ZHzvj','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier','2012904JuaqYU','cwd','jVCPb','2706405HmXZsu','365VizZYd','beforeAll','started_at','javascript','1254YxCbuU','hooks','FHEGr','startedAt','eRlAE','TSqoZ','vvMlG','Noulb','recreateIdentifierFromTestInfo','createJestTestIdentifier','EzRhE','md5','failure','isJestInternalHook','hBfOG','KgsIu','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20',',\x20hookUUID:\x20','stack','reverse','IlSAU','apply','BmOLD','sGaNB','../../../helpers/test-observability/utils','afterEach','pid','ggwnP','../../../helpers/stackFrameUtils','getTime','getHierarchy','match','[jestUtils]\x20pickUserFrameFile\x20found\x20no\x20user\x20frame\x20(trace\x20length=','Creating\x20hook\x20data\x20for\x20eventType:\x20','Exception\x20in\x20createTestFrameworkData:\x20','dYEVo','getHookRunEventData','pending','error','Exception\x20in\x20createHookData:\x20','Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20','includes','parent','jest-circus','AFTER_ALL','testIdentifier','TestRunSkipped','prefixTestPath','duration','hCpFw','alRgz','clearHooksMap','path','type','ZrHFk','zceaI','aiuib','passed','HZYiY','finished_at','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','\x20from\x20compositeKey:\x20','ZKfFf','toUpperCase','length','PepHa','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation','debug',':jest-','split','testPath','__jestCurrentTestIdentifier'];a120_0x1de9=function(){return _0x3e2461;};return a120_0x1de9();}a120_0x2d63dd[a120_0x23830c(0x22b)]=a120_0x23830c(0x21e),a120_0x2d63dd['afterAll']=a120_0x23830c(0x19e),a120_0x2d63dd['beforeEach']=a120_0x23830c(0x20c),a120_0x2d63dd[a120_0x23830c(0x247)]=a120_0x23830c(0x223);const HOOK_TYPES_MAP=a120_0x2d63dd,hooksMap={};class JestUtils{constructor(){const _0x45ed7f=a120_0x23830c;this[_0x45ed7f(0x1ea)]=![],this[_0x45ed7f(0x1da)]=null,this[_0x45ed7f(0x1db)]=new PathHelper({'cwd':process[_0x45ed7f(0x227)]()},undefined);}async['createTestFrameworkData'](_0x45f4c3,_0x374b54,_0x247420='TestRunFinished',_0x494aea=undefined){const _0x4d114f=a120_0x23830c,_0x1da044={'qOuGA':'No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','WUuah':_0x4d114f(0x19d),'DMowa':_0x4d114f(0x215),'rDrse':function(_0x1b74aa,_0x70235e){return _0x1b74aa!==_0x70235e;},'ggwnP':_0x4d114f(0x1e5),'jVCPb':_0x4d114f(0x1f9),'rZFGp':_0x4d114f(0x197),'PepHa':function(_0x18e1a3,_0x7183f6){return _0x18e1a3===_0x7183f6;},'vvMlG':_0x4d114f(0x1a0),'AaFlN':'skipped','Qbghk':function(_0x1a61ac,_0x432d48){return _0x1a61ac===_0x432d48;},'dtgCz':_0x4d114f(0x210),'aItyC':function(_0x4da153,_0xefc82f){return _0x4da153>_0xefc82f;},'zceaI':_0x4d114f(0x1eb),'TSqoZ':_0x4d114f(0x1ab),'alRgz':function(_0x50a3e9,_0x4f4252){return _0x50a3e9-_0x4f4252;},'Kticb':_0x4d114f(0x22d),'nZjWE':function(_0x96f3ad,_0x51919c){return _0x96f3ad>_0x51919c;},'wGeUP':_0x4d114f(0x21f),'aiuib':function(_0x251692,_0x3a1314){return _0x251692(_0x3a1314);},'uiiKq':function(_0x53d506,_0x524f8b){return _0x53d506===_0x524f8b;}};logger[_0x4d114f(0x1b6)](_0x4d114f(0x19a)+_0x247420+_0x4d114f(0x208)+_0x374b54);try{if(!_0x45f4c3)return logger[_0x4d114f(0x1b6)](_0x1da044[_0x4d114f(0x214)]),null;if(_0x45f4c3['fn']&&_0x45f4c3['fn']['toString']()[_0x4d114f(0x24d)](/browserstack internal helper hook/))return null;await this[_0x4d114f(0x1d4)]();let _0x413d7c;try{_0x413d7c=this[_0x4d114f(0x1d0)](_0x45f4c3);if(_0x413d7c&&_0x413d7c[_0x4d114f(0x19b)](_0x1da044[_0x4d114f(0x201)]))return null;}catch(_0xdac372){logger['debug']('Failed\x20to\x20get\x20root\x20parent\x20file:\x20'+util['format'](_0xdac372)),_0x413d7c=null;}const _0x2d6a78=this['getHierarchy'](_0x45f4c3),_0x571f57=this[_0x4d114f(0x21a)](_0x45f4c3),_0x352b8b=_0x413d7c?this['_paths'][_0x4d114f(0x1a1)](_0x413d7c):_0x1da044['DMowa'];let _0x3c6f85=[];const _0x110e2b=_0x45f4c3['errorsDetailed']||_0x45f4c3[_0x4d114f(0x222)];if(_0x1da044[_0x4d114f(0x1c5)](_0x110e2b,undefined))_0x3c6f85=[_0x110e2b,_0x1da044[_0x4d114f(0x249)]];else _0x1da044[_0x4d114f(0x1c5)](_0x494aea,undefined)&&(_0x3c6f85=[_0x494aea,_0x1da044[_0x4d114f(0x228)]]);const _0x31ee22=_0x1da044[_0x4d114f(0x1c5)](_0x110e2b,undefined)?util[_0x4d114f(0x1f4)](_0x110e2b[0x0]):_0x1da044[_0x4d114f(0x1c5)](_0x494aea,undefined)?_0x494aea[_0x4d114f(0x1de)]():undefined;let _0x40b96a=_0x1da044['rZFGp'];if(_0x1da044[_0x4d114f(0x1b3)](_0x247420,_0x1da044[_0x4d114f(0x234)]))_0x40b96a=_0x1da044[_0x4d114f(0x1fc)];else _0x1da044['Qbghk'](_0x247420,_0x1da044[_0x4d114f(0x1dc)])&&(_0x110e2b&&_0x1da044[_0x4d114f(0x1f7)](_0x110e2b[_0x4d114f(0x1b2)],0x0)?_0x40b96a=_0x1da044[_0x4d114f(0x1a9)]:_0x40b96a=_0x1da044[_0x4d114f(0x233)]);let _0xb0800c=null;if(_0x1da044[_0x4d114f(0x1c5)](_0x45f4c3[_0x4d114f(0x1a2)],undefined))_0xb0800c=_0x45f4c3[_0x4d114f(0x1a2)];else(_0x247420[_0x4d114f(0x24d)](/Finished/)||_0x247420[_0x4d114f(0x24d)](/Skipped/))&&(_0x45f4c3[_0x4d114f(0x22c)]&&(_0xb0800c=_0x1da044[_0x4d114f(0x1a4)](Date[_0x4d114f(0x1ee)](),new Date(_0x45f4c3[_0x4d114f(0x22c)])[_0x4d114f(0x24b)]())));const _0x4d8aa9=_0x45f4c3['fn']?_0x45f4c3['fn']['toString']():null,_0x2a5f73={'id':_0x374b54,'uuid':_0x374b54,'startedAt':_0x45f4c3['started_at']||new Date()[_0x4d114f(0x1fb)](),'finishedAt':_0x247420[_0x4d114f(0x24d)](/Finished/)||_0x247420['match'](/Skipped/)?new Date()[_0x4d114f(0x1fb)]():null,'type':_0x1da044['ggwnP'],'body':{'lang':_0x1da044[_0x4d114f(0x221)],'code':_0x4d8aa9},'name':_0x571f57,'errorsDetailed':_0x1da044[_0x4d114f(0x1bc)](_0x110e2b?.[_0x4d114f(0x1b2)],0x0)?_0x110e2b[0x0]:_0x110e2b?_0x110e2b:undefined,'scopes':_0x2d6a78,'file_name':_0x352b8b,'location':_0x352b8b,'vc_filepath':this[_0x4d114f(0x1da)]&&_0x413d7c?path[_0x4d114f(0x1d8)](this[_0x4d114f(0x1da)],_0x413d7c):null,'framework':_0x1da044[_0x4d114f(0x219)],'result':_0x40b96a,'failure_reason':_0x31ee22,'duration_in_ms':_0xb0800c,'failure':failureData[_0x4d114f(0x243)](null,_0x3c6f85),'failure_type':!_0x31ee22?null:_0x1da044[_0x4d114f(0x1aa)](getFailureType,_0x31ee22),'retry_of':_0x45f4c3[_0x4d114f(0x1f6)]||null,'customRerunParam':{'rerun_name':_0x571f57}};_0x1da044[_0x4d114f(0x21d)](_0x247420,_0x1da044['vvMlG'])&&!_0x2a5f73[_0x4d114f(0x231)]&&(_0x2a5f73[_0x4d114f(0x231)]=_0x2a5f73[_0x4d114f(0x21b)]);const _0x13a431=_0x2a5f73['failure']&&_0x2a5f73[_0x4d114f(0x23a)][0x0];return _0x13a431&&(_0x2a5f73[_0x4d114f(0x1f3)]=_0x13a431['backtrace'],_0x2a5f73['failure_reason_expanded']=_0x13a431[_0x4d114f(0x20d)]),(_0x1da044[_0x4d114f(0x1d9)](_0x247420,_0x1da044['dtgCz'])||_0x1da044[_0x4d114f(0x21d)](_0x247420,_0x1da044[_0x4d114f(0x234)]))&&(_0x45f4c3[_0x4d114f(0x22f)]&&(_0x2a5f73[_0x4d114f(0x22f)]=_0x45f4c3['hooks'])),_0x2a5f73;}catch(_0x24ec19){return logger[_0x4d114f(0x1b6)](_0x4d114f(0x250)+util[_0x4d114f(0x1fe)](_0x24ec19)),null;}}async['createHookData'](_0x328a23,_0x33fa93,_0xbb4538,_0x3a0ea9){const _0x3d4cd6=a120_0x23830c,_0x5b7944={'heQYC':_0x3d4cd6(0x1dd),'wFDYS':_0x3d4cd6(0x19d),'ZKfFf':_0x3d4cd6(0x1f1),'cpUHR':'unknown','Sjaes':'pending','eRlAE':function(_0x4140eb,_0x49f607){return _0x4140eb===_0x49f607;},'uIzhU':'HookRunFinished','EDPpM':function(_0x11aee4,_0x30ef89){return _0x11aee4>_0x30ef89;},'rVWJl':_0x3d4cd6(0x1eb),'RVFxX':function(_0x4c98aa,_0x3c8336){return _0x4c98aa(_0x3c8336);},'xKZHi':_0x3d4cd6(0x1e5),'pvXHz':_0x3d4cd6(0x1ab),'BmOLD':_0x3d4cd6(0x207),'ZHzvj':'javascript','GbQHy':'jest','KgsIu':_0x3d4cd6(0x1fd)};logger[_0x3d4cd6(0x1b6)](_0x3d4cd6(0x24f)+_0xbb4538+_0x3d4cd6(0x23f)+_0x33fa93+',\x20testRunId:\x20'+_0x3a0ea9);try{if(!_0x328a23)return logger[_0x3d4cd6(0x1b6)](_0x5b7944[_0x3d4cd6(0x1ec)]),null;if(this['isJestInternalHook'](_0x328a23))return null;await this[_0x3d4cd6(0x1d4)]();let _0x509d47=null;try{_0x509d47=this[_0x3d4cd6(0x1d0)](_0x328a23);if(_0x509d47&&_0x509d47[_0x3d4cd6(0x19b)](_0x5b7944['wFDYS']))return null;if(_0x509d47&&_0x509d47['includes'](_0x5b7944[_0x3d4cd6(0x1b0)]))return null;}catch(_0x6e209){logger['debug']('Failed\x20to\x20get\x20hook\x20file\x20path:\x20'+util[_0x3d4cd6(0x1fe)](_0x6e209));}const _0x45f87b=_0x509d47?this[_0x3d4cd6(0x1db)][_0x3d4cd6(0x1a1)](_0x509d47):_0x509d47,_0xff3d12=this[_0x3d4cd6(0x21a)](_0x328a23),_0x137aa5=_0x328a23[_0x3d4cd6(0x1a7)]||_0x5b7944['cpUHR'],_0x12e206=HOOK_TYPES_MAP[_0x137aa5]||_0x137aa5[_0x3d4cd6(0x1b1)](),_0x134a48=_0x328a23[_0x3d4cd6(0x19c)]&&_0x328a23[_0x3d4cd6(0x19c)][_0x3d4cd6(0x1c9)]?_0x328a23[_0x3d4cd6(0x19c)]['name']:'';let _0x2bfb87=_0x5b7944['Sjaes'],_0x2a5dcb=null,_0x5dc61b=null,_0x34f054=null,_0xb4bd=null;_0x5b7944[_0x3d4cd6(0x232)](_0xbb4538,_0x5b7944['uIzhU'])&&(_0xb4bd=new Date()[_0x3d4cd6(0x1fb)](),_0x328a23[_0x3d4cd6(0x1bf)]&&_0x5b7944['EDPpM'](_0x328a23['errorsDetailed'][_0x3d4cd6(0x1b2)],0x0)?(_0x2bfb87=_0x5b7944[_0x3d4cd6(0x1cb)],_0x5dc61b=util[_0x3d4cd6(0x1f4)](_0x328a23['errorsDetailed'][0x0]),_0x2a5dcb=_0x5b7944[_0x3d4cd6(0x1e1)](getFailureType,_0x5dc61b),_0x34f054=failureData[_0x3d4cd6(0x243)](null,[_0x328a23[_0x3d4cd6(0x1bf)],_0x5b7944[_0x3d4cd6(0x20f)]])):_0x2bfb87=_0x5b7944[_0x3d4cd6(0x1ca)]);const _0x1ff835={'uuid':_0x33fa93,'type':_0x5b7944[_0x3d4cd6(0x244)],'hook_type':_0x12e206,'name':_0xff3d12,'body':{'lang':_0x5b7944[_0x3d4cd6(0x224)],'code':_0x328a23['fn']?_0x328a23['fn'][_0x3d4cd6(0x1de)]():null},'tags':[],'test_run_id':_0x3a0ea9,'scope':_0x134a48,'scopes':[_0x134a48],'file_name':_0x45f87b,'location':_0x45f87b,'vc_filepath':this[_0x3d4cd6(0x1da)]&&_0x509d47?path[_0x3d4cd6(0x1d8)](this[_0x3d4cd6(0x1da)],_0x509d47):null,'result':_0x2bfb87,'started_at':_0x328a23[_0x3d4cd6(0x22c)]||new Date()['toISOString'](),'finished_at':_0xb4bd,'failure_type':_0x2a5dcb,'failure_reason':_0x5dc61b,'failure_data':_0x34f054,'framework':_0x5b7944['GbQHy']};return _0x5b7944['eRlAE'](_0xbb4538,_0x5b7944[_0x3d4cd6(0x23d)])&&(hooksMap[_0x3a0ea9]?hooksMap[_0x3a0ea9][_0x3d4cd6(0x1cf)](_0x1ff835):hooksMap[_0x3a0ea9]=[_0x1ff835]),_0x1ff835;}catch(_0x200405){return logger[_0x3d4cd6(0x1b6)](_0x3d4cd6(0x199)+util[_0x3d4cd6(0x1fe)](_0x200405)),null;}}[a120_0x23830c(0x196)](_0x2fdf15,_0x4308a6,_0x156516){const _0x18d459=a120_0x23830c,_0x2cb2bb={'hCpFw':function(_0x3e1f58,_0x17970f){return _0x3e1f58>_0x17970f;},'gfZAH':_0x18d459(0x1eb),'oWikB':function(_0x597b1c,_0x356e05){return _0x597b1c(_0x356e05);},'jqKnj':_0x18d459(0x1e5),'YXLTn':_0x18d459(0x1ab)};try{const _0xb3400=hooksMap[_0x2fdf15];if(!_0xb3400)return null;const _0x431e2c=_0xb3400['find'](_0x5c1cdf=>_0x5c1cdf[_0x18d459(0x217)]===_0x4308a6);if(!_0x431e2c)return null;return _0x431e2c[_0x18d459(0x1ad)]=new Date()['toISOString'](),_0x156516[_0x18d459(0x1bf)]&&_0x2cb2bb[_0x18d459(0x1a3)](_0x156516['errorsDetailed']['length'],0x0)?(_0x431e2c[_0x18d459(0x206)]=_0x2cb2bb[_0x18d459(0x21c)],_0x431e2c[_0x18d459(0x1e3)]=util[_0x18d459(0x1f4)](_0x156516[_0x18d459(0x1bf)][0x0]),_0x431e2c['failure_type']=_0x2cb2bb[_0x18d459(0x1df)](getFailureType,_0x431e2c[_0x18d459(0x1e3)]),_0x431e2c[_0x18d459(0x1c6)]=failureData['apply'](null,[_0x156516[_0x18d459(0x1bf)],_0x2cb2bb[_0x18d459(0x1d1)]])):_0x431e2c[_0x18d459(0x206)]=_0x2cb2bb['YXLTn'],_0x431e2c;}catch(_0x9cb534){return logger['debug'](_0x18d459(0x1c8)+util[_0x18d459(0x1fe)](_0x9cb534)),null;}}[a120_0x23830c(0x21a)](_0x1ae34e){const _0x1ab9f8=a120_0x23830c,_0xc4599c={};_0xc4599c['EzRhE']=function(_0x6399ad,_0x86bfec){return _0x6399ad!==_0x86bfec;},_0xc4599c[_0x1ab9f8(0x202)]=_0x1ab9f8(0x1e5),_0xc4599c[_0x1ab9f8(0x209)]=_0x1ab9f8(0x1ef);const _0x1ac184=_0xc4599c;if(_0x1ac184[_0x1ab9f8(0x238)](_0x1ae34e[_0x1ab9f8(0x1a7)],_0x1ac184[_0x1ab9f8(0x202)]))return'\x22'+_0x1ae34e[_0x1ab9f8(0x1a7)]+_0x1ab9f8(0x1e9)+(_0x1ae34e[_0x1ab9f8(0x19c)]&&_0x1ae34e[_0x1ab9f8(0x19c)][_0x1ab9f8(0x1c9)])+'\x22';return _0x1ae34e[_0x1ab9f8(0x1c9)]||_0x1ac184[_0x1ab9f8(0x209)];}['getHierarchy'](_0x12a187){const _0x25cc1b=a120_0x23830c,_0x5a4187={};_0x5a4187['dYEVo']=function(_0x1e6e72,_0x218887){return _0x1e6e72!==_0x218887;},_0x5a4187[_0x25cc1b(0x1c1)]=function(_0x5cc8e4,_0xfe2122){return _0x5cc8e4!==_0xfe2122;},_0x5a4187[_0x25cc1b(0x1f2)]=_0x25cc1b(0x1d2);const _0x5b2dbf=_0x5a4187,_0x3d73be=[];if(_0x12a187&&_0x12a187[_0x25cc1b(0x19c)]){let _0x470305=_0x12a187[_0x25cc1b(0x19c)];while(_0x470305&&_0x470305['name']&&_0x5b2dbf[_0x25cc1b(0x251)](_0x470305['name'],'')&&_0x5b2dbf[_0x25cc1b(0x1c1)](_0x470305[_0x25cc1b(0x1c9)],_0x5b2dbf[_0x25cc1b(0x1f2)])){_0x3d73be[_0x25cc1b(0x1cf)](_0x470305[_0x25cc1b(0x1c9)]),_0x470305=_0x470305[_0x25cc1b(0x19c)];}}return _0x3d73be[_0x25cc1b(0x241)](),_0x3d73be;}[a120_0x23830c(0x1d0)](_0x7e8ca1){const _0x3fcbc9=a120_0x23830c,_0x56662b={'GcgtG':function(_0x2c7bcd,_0x51f5c1){return _0x2c7bcd(_0x51f5c1);}};if(_0x7e8ca1['file'])return _0x7e8ca1[_0x3fcbc9(0x1bd)];if(_0x7e8ca1[_0x3fcbc9(0x1d6)])try{const _0x599e16=stackTrace['parse']['call'](stackTrace,_0x7e8ca1[_0x3fcbc9(0x1d6)]),_0x882e94=_0x56662b[_0x3fcbc9(0x216)](pickUserFrameFile,_0x599e16);if(_0x882e94)return _0x882e94;logger[_0x3fcbc9(0x1b6)](_0x3fcbc9(0x24e)+_0x599e16[_0x3fcbc9(0x1b2)]+')');}catch(_0x13e5af){logger[_0x3fcbc9(0x1b6)](_0x3fcbc9(0x1ae)+util[_0x3fcbc9(0x1fe)](_0x13e5af));}return null;}[a120_0x23830c(0x23b)](_0x2a6699){const _0x5ebb4d=a120_0x23830c,_0x3d5332={};_0x3d5332[_0x5ebb4d(0x20a)]=_0x5ebb4d(0x19d);const _0x4457a0=_0x3d5332;try{const _0x127ead=this[_0x5ebb4d(0x1d0)](_0x2a6699);if(!_0x127ead||_0x127ead['includes'](_0x4457a0['xELie']))return!![];}catch(_0x36d92f){logger[_0x5ebb4d(0x1b6)](_0x5ebb4d(0x1b4)+util[_0x5ebb4d(0x1fe)](_0x36d92f));}return![];}['getTestIdentifier'](_0x1ca7bc=null){const _0x30fd90=a120_0x23830c;try{const _0x58929d=_0x1ca7bc||global['__workerDetails']||{};if(global[_0x30fd90(0x1ba)])return global[_0x30fd90(0x1ba)];if(_0x58929d?.[_0x30fd90(0x1c2)]?.[_0x30fd90(0x1ce)])return _0x58929d[_0x30fd90(0x1c2)]['testAnalyticsId'];if(_0x58929d?.[_0x30fd90(0x1c2)]?.['id'])return _0x58929d['currentTest']['id'];return null;}catch(_0xe94cdd){return logger[_0x30fd90(0x1b6)](_0x30fd90(0x1e0)+util[_0x30fd90(0x1fe)](_0xe94cdd)),null;}}async[a120_0x23830c(0x1d4)](){const _0xfa19b3=a120_0x23830c,_0x1af8a9={'afwTS':function(_0x52ee4f){return _0x52ee4f();}};if(this[_0xfa19b3(0x1ea)])return this['_gitConfigPath'];const _0x1c5dfb=await _0x1af8a9[_0xfa19b3(0x20e)](getGitMetaData);_0x1c5dfb&&(this[_0xfa19b3(0x1da)]=_0x1c5dfb['root']),this['_gitConfigured']=!![];}[a120_0x23830c(0x1a5)](_0x53eeb7){hooksMap[_0x53eeb7]&&delete hooksMap[_0x53eeb7];}[a120_0x23830c(0x211)](_0x59d58e){const _0x509388=a120_0x23830c,_0x543317={'JVEvb':_0x509388(0x19d),'sGaNB':function(_0x528357,_0x563744){return _0x528357(_0x563744);},'ZrHFk':'expect'};if(_0x59d58e[_0x509388(0x1bd)])return _0x59d58e[_0x509388(0x1bd)];if(_0x59d58e[_0x509388(0x1d6)]){try{const _0x1066d4=stackTrace['parse'](_0x59d58e[_0x509388(0x1d6)]);if(_0x1066d4[0x0]&&_0x1066d4[0x0]['getFileName']){const _0x394ff9=_0x1066d4[0x0][_0x509388(0x1ed)]();if(_0x394ff9&&!_0x394ff9[_0x509388(0x19b)](_0x543317[_0x509388(0x1d5)]))return _0x394ff9;}}catch(_0x48d51f){logger[_0x509388(0x1b6)](_0x509388(0x23e)+util[_0x509388(0x1fe)](_0x48d51f));}if(_0x59d58e['asyncError'][_0x509388(0x240)]){const _0x1653b3=_0x59d58e[_0x509388(0x1d6)][_0x509388(0x240)][_0x509388(0x1b8)]('\x0a');for(const _0x3d2f1b of _0x1653b3){const _0x544eb2=_0x3d2f1b[_0x509388(0x24d)](/at (.+?):\d+:\d+/);if(_0x544eb2&&_0x544eb2[0x1]&&!_0x544eb2[0x1][_0x509388(0x19b)](_0x543317[_0x509388(0x1d5)]))return _0x544eb2[0x1];}}}let _0x2c19ec=_0x59d58e[_0x509388(0x19c)];while(_0x2c19ec){if(_0x2c19ec[_0x509388(0x1bd)])return _0x2c19ec[_0x509388(0x1bd)];if(_0x2c19ec[_0x509388(0x1d6)])try{const _0x4b9fa1=stackTrace[_0x509388(0x1c3)](_0x2c19ec[_0x509388(0x1d6)]);if(_0x4b9fa1[0x0]&&_0x4b9fa1[0x0][_0x509388(0x1ed)]){const _0x2ea644=_0x4b9fa1[0x0][_0x509388(0x1ed)]();if(_0x2ea644&&!_0x2ea644[_0x509388(0x19b)](_0x543317[_0x509388(0x1d5)]))return _0x2ea644;}}catch(_0x7eab31){}_0x2c19ec=_0x2c19ec['parent'];}try{const _0x9bd496=_0x543317[_0x509388(0x245)](require,_0x543317[_0x509388(0x1a8)]);if(_0x9bd496&&_0x9bd496[_0x509388(0x1be)]){const _0x5bbe56=_0x9bd496['getState']();if(_0x5bbe56&&_0x5bbe56[_0x509388(0x1b9)])return _0x5bbe56[_0x509388(0x1b9)];}}catch(_0x24cdc7){logger[_0x509388(0x1b6)](_0x509388(0x1ff)+util[_0x509388(0x1fe)](_0x24cdc7));}return null;}['createJestTestIdentifier'](_0xaa058b){const _0x2decd6=a120_0x23830c,_0x157e42={};_0x157e42['DfJPh']=_0x2decd6(0x225),_0x157e42['FHEGr']=function(_0x29bb1b,_0x2238b2){return _0x29bb1b!==_0x2238b2;},_0x157e42[_0x2decd6(0x23c)]=_0x2decd6(0x1d2),_0x157e42['wctif']='jest-circus',_0x157e42[_0x2decd6(0x235)]=_0x2decd6(0x239),_0x157e42['IlSAU']='hex';const _0x38dc33=_0x157e42;try{if(!_0xaa058b)return logger['error'](_0x38dc33['DfJPh']),null;const _0x3d1083=_0xaa058b[_0x2decd6(0x1c4)]||_0xaa058b[_0x2decd6(0x1c9)]||_0xaa058b[_0x2decd6(0x1f0)]||_0xaa058b['displayName'];let _0xea598e=_0x3d1083;if(_0xaa058b[_0x2decd6(0x19c)]&&_0xaa058b[_0x2decd6(0x19c)][_0x2decd6(0x1c9)]&&_0x38dc33[_0x2decd6(0x230)](_0xaa058b[_0x2decd6(0x19c)][_0x2decd6(0x1c9)],_0x38dc33[_0x2decd6(0x23c)])){const _0x24bab7=_0xaa058b['name']||_0xaa058b[_0x2decd6(0x1f0)];_0x24bab7&&(_0xea598e=_0xaa058b[_0x2decd6(0x19c)][_0x2decd6(0x1c9)]+'\x20'+_0x24bab7);}let _0x2e01aa=_0xaa058b['testPath'];if(!_0x2e01aa&&_0xaa058b['asyncError']){try{const _0x4cbd51=stackTrace[_0x2decd6(0x1c3)](_0xaa058b[_0x2decd6(0x1d6)]);if(_0x4cbd51[0x0]&&_0x4cbd51[0x0][_0x2decd6(0x1ed)]){const _0x19e1ec=_0x4cbd51[0x0][_0x2decd6(0x1ed)]();_0x19e1ec&&!_0x19e1ec[_0x2decd6(0x19b)](_0x38dc33['wctif'])&&(_0x2e01aa=_0x19e1ec);}}catch(_0x4971ba){logger['debug']('[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util[_0x2decd6(0x1fe)](_0x4971ba));}if(!_0x2e01aa&&_0xaa058b[_0x2decd6(0x1d6)][_0x2decd6(0x240)]){const _0x152690=_0xaa058b[_0x2decd6(0x1d6)]['stack'][_0x2decd6(0x1b8)]('\x0a');for(const _0x2a6d68 of _0x152690){const _0x215db1=_0x2a6d68[_0x2decd6(0x24d)](/at (.+?):\d+:\d+/);if(_0x215db1&&_0x215db1[0x1]&&!_0x215db1[0x1]['includes'](_0x38dc33[_0x2decd6(0x1f5)])){_0x2e01aa=_0x215db1[0x1];break;}}}}const _0x5425b7=_0x2e01aa+'::'+_0xea598e,_0x21bd25=crypto[_0x2decd6(0x200)](_0x38dc33['Noulb'])[_0x2decd6(0x1e4)](_0x5425b7)['digest'](_0x38dc33[_0x2decd6(0x242)])[_0x2decd6(0x204)](0x0,0x8),_0x5d4656=process[_0x2decd6(0x248)]+_0x2decd6(0x1b7)+_0x21bd25;return logger[_0x2decd6(0x1b6)]('[jestUtils]\x20Created\x20identifier:\x20'+_0x5d4656+_0x2decd6(0x1af)+_0x5425b7),_0x5d4656;}catch(_0x2a1dac){return logger[_0x2decd6(0x198)]('[jestUtils]\x20Error\x20creating\x20identifier:\x20'+util[_0x2decd6(0x1fe)](_0x2a1dac)),null;}}[a120_0x23830c(0x220)](_0x43d9e6){const _0x3a297a=a120_0x23830c,_0xa3e542={};_0xa3e542['YplKd']=_0x3a297a(0x1e7);const _0x14cd8a=_0xa3e542;if(!_0x43d9e6)return logger[_0x3a297a(0x1b6)](_0x14cd8a[_0x3a297a(0x20b)]),null;const _0x2fc171=this['extractTestFilePath'](_0x43d9e6),_0x5e58a8={};_0x5e58a8['name']=_0x43d9e6['name']||_0x43d9e6[_0x3a297a(0x1f0)],_0x5e58a8[_0x3a297a(0x19c)]=_0x43d9e6[_0x3a297a(0x19c)],_0x5e58a8['testPath']=_0x2fc171,_0x5e58a8[_0x3a297a(0x1d6)]=_0x43d9e6[_0x3a297a(0x1d6)];const _0x5336b4=_0x5e58a8;return this[_0x3a297a(0x237)](_0x5336b4);}[a120_0x23830c(0x236)](_0x5d5a56,_0x4038a8=null){const _0x76ed0f=a120_0x23830c,_0x1cd56f={};_0x1cd56f[_0x76ed0f(0x1ac)]=_0x76ed0f(0x1b5);const _0x2a454d=_0x1cd56f;if(!_0x5d5a56)return logger[_0x76ed0f(0x1b6)](_0x2a454d[_0x76ed0f(0x1ac)]),_0x4038a8;if(_0x5d5a56[_0x76ed0f(0x19f)])return logger['debug'](_0x76ed0f(0x1c0)+_0x5d5a56[_0x76ed0f(0x19f)]),_0x5d5a56[_0x76ed0f(0x19f)];return this[_0x76ed0f(0x237)](_0x5d5a56)||_0x4038a8;}}module[a120_0x23830c(0x212)]=o11yClassErrorHandler(JestUtils,[a120_0x23830c(0x1d4),a120_0x23830c(0x24c),a120_0x23830c(0x1d0),a120_0x23830c(0x21a),'isJestInternalHook',a120_0x23830c(0x1cc),'createTestFrameworkData',a120_0x23830c(0x1c7),'getHookRunEventData','clearHooksMap',a120_0x23830c(0x211),a120_0x23830c(0x237),a120_0x23830c(0x220),a120_0x23830c(0x236)]);
|
|
1
|
+
const a120_0x11281d=a120_0x1910;function a120_0x4494(){const _0x1752d3=['finished_at','40lVdsLc','lDMIe','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','currentTest','afterAll','frsNk','failure','passed','XdepA',',\x20testIdentifier:\x20','MsAXv','[jestUtils]\x20pickUserFrameFile\x20found\x20no\x20user\x20frame\x20(trace\x20length=','DsdLQ','isJestInternalHook','failure_backtrace','172408sthCBk','parent','toString','file','__workerDetails','sqFoP','[jestUtils]\x20Error\x20creating\x20identifier:\x20','cwd','GvENm','exports','recreateIdentifierFromTestInfo','prefixTestPath','getHookRunEventData','getRootParentFile','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','UUZCf','test','_paths','title','util','testPath','javascript','../../../helpers/helper.js','MAlYv','hex','backtrace','unknown','WnkKL','expect','retryOf','vWkzS','eeLSn','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','../../../helpers/stackFrameUtils','_gitConfigured','hFjzI','Wlprc','sdtoK','displayName','clearHooksMap','getTestIdentifier','update','failure_type','765pABVch','errorsDetailed','HookRunStarted','TestRunSkipped','[jestUtils]\x20No\x20test\x20object\x20provided','DTsCb','iQRKd','wCsWJ','OPArC','toUpperCase','result','finishedAt','kNtgs','type','[jestUtils]\x20Created\x20identifier:\x20','HkYyF','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier','CgVdz','fNOMF','match','getHierarchy','HkVga','pending','relative','../../../helpers/test-observability/error-handler.js','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','PGyQv','3456695cuBaMs','Exception\x20in\x20getHookRunEventData:\x20','NUGjd','failed','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','push','TestRunFinished','kIzkb','AFTER_ALL','includes','jest-circus','substring','61026LMlerL','createHash','TZDyv','crypto','md5','aOWxQ',':jest-','afterEach','find','JWXCN','errors','now','skipped','__jestCurrentTestIdentifier','configureGit','RlSUj','getFileName','1445420daTqkD','parse','DahOT','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','pid','CQmUX','createIdentifierFromJestTest','rRrtc','getName','../../../helpers/test-observability/utils','qKbRw','\x22\x20hook\x20for\x20\x22','beforeAll','eZyvk','failure_data','../../../helpers/logger.js','BuubA','4930QhkUID','inspect','1428hZUqrr','path','error','cuazv','207yFQDwh','cIGwK','fullName','asyncError','expanded','hooks','Owelp','name','failure_reason','started_at','split','createTestFrameworkData','getTime','XgLAL','stack','debug','7692CoGMFv','ZYjkL','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','jest','startedAt','length',',\x20hookUUID:\x20','wRhdw','PgOij','duration','YKPjO','Exception\x20in\x20createTestFrameworkData:\x20','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation','apply','createHookData','KLIvf','reverse','ltWnT','Exception\x20in\x20createHookData:\x20','toISOString','format','DDnwf','ozhbA','SCJeP','LKGQf','UTien','Unknown\x20Test','testIdentifier','ROOT_DESCRIBE_BLOCK','BEFORE_ALL','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','3076495MOTXew','createJestTestIdentifier','PBSTY','root','YnBRS','winstonLogger','lliug','\x20from\x20compositeKey:\x20','extractTestFilePath','THgqw','_gitConfigPath'];a120_0x4494=function(){return _0x1752d3;};return a120_0x4494();}(function(_0x1f939e,_0x18d7a5){const _0x5d946d=a120_0x1910,_0x396230=_0x1f939e();while(!![]){try{const _0xb7467d=-parseInt(_0x5d946d(0x1f4))/0x1+parseInt(_0x5d946d(0x216))/0x2*(-parseInt(_0x5d946d(0x1cd))/0x3)+-parseInt(_0x5d946d(0x205))/0x4+-parseInt(_0x5d946d(0x24b))/0x5+parseInt(_0x5d946d(0x22c))/0x6*(parseInt(_0x5d946d(0x218))/0x7)+-parseInt(_0x5d946d(0x267))/0x8*(-parseInt(_0x5d946d(0x21c))/0x9)+-parseInt(_0x5d946d(0x257))/0xa*(-parseInt(_0x5d946d(0x1e8))/0xb);if(_0xb7467d===_0x18d7a5)break;else _0x396230['push'](_0x396230['shift']());}catch(_0x150122){_0x396230['push'](_0x396230['shift']());}}}(a120_0x4494,0x54f16));const path=require(a120_0x11281d(0x219)),util=require(a120_0x11281d(0x1b5)),crypto=require(a120_0x11281d(0x1f7)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a120_0x11281d(0x1b8)),logger=require(a120_0x11281d(0x214))[a120_0x11281d(0x250)],{o11yClassErrorHandler}=require(a120_0x11281d(0x1e5)),TestInfo=require('../TestInfo.js'),{failureData,getFailureType,PathHelper}=require(a120_0x11281d(0x20e)),stackTrace=require('stack-trace'),{pickUserFrameFile}=require(a120_0x11281d(0x1c3)),a120_0x17de75={};a120_0x17de75[a120_0x11281d(0x211)]=a120_0x11281d(0x249),a120_0x17de75[a120_0x11281d(0x25c)]=a120_0x11281d(0x1f0),a120_0x17de75['beforeEach']='BEFORE_EACH',a120_0x17de75[a120_0x11281d(0x1fb)]='AFTER_EACH';function a120_0x1910(_0x3de8f4,_0x41665d){const _0x4494ca=a120_0x4494();return a120_0x1910=function(_0x1910ed,_0x121426){_0x1910ed=_0x1910ed-0x1af;let _0x58e03b=_0x4494ca[_0x1910ed];return _0x58e03b;},a120_0x1910(_0x3de8f4,_0x41665d);}const HOOK_TYPES_MAP=a120_0x17de75,hooksMap={};class JestUtils{constructor(){const _0x4f7edf=a120_0x11281d;this[_0x4f7edf(0x1c4)]=![],this['_gitConfigPath']=null,this['_paths']=new PathHelper({'cwd':process[_0x4f7edf(0x26e)]()},undefined);}async[a120_0x11281d(0x227)](_0x47458a,_0x5e5189,_0x17ce0c='TestRunFinished',_0x3962c4=undefined){const _0x1bbe37=a120_0x11281d,_0x279f97={'eZyvk':_0x1bbe37(0x1ec),'cIGwK':_0x1bbe37(0x1f2),'KLIvf':'File\x20path\x20could\x20not\x20be\x20found','aOWxQ':function(_0x5c935d,_0x1253e2){return _0x5c935d!==_0x1253e2;},'qKbRw':'test','ozhbA':function(_0x5bf0bc,_0x2dd935){return _0x5bf0bc!==_0x2dd935;},'YnBRS':'err','OPArC':_0x1bbe37(0x1e3),'CgVdz':function(_0x335f45,_0x5da061){return _0x335f45===_0x5da061;},'PgOij':_0x1bbe37(0x1d0),'TZDyv':_0x1bbe37(0x200),'YKPjO':_0x1bbe37(0x1ee),'ltWnT':function(_0x36db7b,_0x20cc80){return _0x36db7b>_0x20cc80;},'DTsCb':'failed','SCJeP':_0x1bbe37(0x25f),'lAvYE':function(_0x54a2ad,_0x4ebdb0){return _0x54a2ad!==_0x4ebdb0;},'GvENm':function(_0x2c6ecf,_0x512f1e){return _0x2c6ecf-_0x512f1e;},'lliug':_0x1bbe37(0x1b7),'PGyQv':function(_0x564d88,_0x5b6374){return _0x564d88>_0x5b6374;},'hFjzI':_0x1bbe37(0x22f),'hXIIF':function(_0x49f65a,_0x2ce48f){return _0x49f65a(_0x2ce48f);},'sqFoP':function(_0x31015e,_0x37ec76){return _0x31015e===_0x37ec76;},'pIqcG':function(_0x4ce291,_0x4f4f98){return _0x4ce291===_0x4f4f98;}};logger[_0x1bbe37(0x22b)]('Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20'+_0x17ce0c+_0x1bbe37(0x261)+_0x5e5189);try{if(!_0x47458a)return logger[_0x1bbe37(0x22b)](_0x279f97[_0x1bbe37(0x212)]),null;if(_0x47458a['fn']&&_0x47458a['fn'][_0x1bbe37(0x269)]()[_0x1bbe37(0x1e0)](/browserstack internal helper hook/))return null;await this['configureGit']();let _0x454139;try{_0x454139=this['getRootParentFile'](_0x47458a);if(_0x454139&&_0x454139[_0x1bbe37(0x1f1)](_0x279f97[_0x1bbe37(0x21d)]))return null;}catch(_0x218000){logger[_0x1bbe37(0x22b)](_0x1bbe37(0x1b0)+util[_0x1bbe37(0x240)](_0x218000)),_0x454139=null;}const _0x12cabf=this[_0x1bbe37(0x1e1)](_0x47458a),_0x342697=this[_0x1bbe37(0x20d)](_0x47458a),_0x44bb65=_0x454139?this[_0x1bbe37(0x1b3)][_0x1bbe37(0x272)](_0x454139):_0x279f97[_0x1bbe37(0x23b)];let _0x39a903=[];const _0x5bd345=_0x47458a[_0x1bbe37(0x1ce)]||_0x47458a[_0x1bbe37(0x1fe)];if(_0x279f97[_0x1bbe37(0x1f9)](_0x5bd345,undefined))_0x39a903=[_0x5bd345,_0x279f97[_0x1bbe37(0x20f)]];else _0x279f97[_0x1bbe37(0x242)](_0x3962c4,undefined)&&(_0x39a903=[_0x3962c4,_0x279f97[_0x1bbe37(0x24f)]]);const _0x339642=_0x279f97['aOWxQ'](_0x5bd345,undefined)?util[_0x1bbe37(0x217)](_0x5bd345[0x0]):_0x279f97['ozhbA'](_0x3962c4,undefined)?_0x3962c4['toString']():undefined;let _0xed8f6c=_0x279f97[_0x1bbe37(0x1d5)];if(_0x279f97['CgVdz'](_0x17ce0c,_0x279f97[_0x1bbe37(0x234)]))_0xed8f6c=_0x279f97[_0x1bbe37(0x1f6)];else _0x279f97[_0x1bbe37(0x1de)](_0x17ce0c,_0x279f97[_0x1bbe37(0x236)])&&(_0x5bd345&&_0x279f97[_0x1bbe37(0x23d)](_0x5bd345['length'],0x0)?_0xed8f6c=_0x279f97[_0x1bbe37(0x1d2)]:_0xed8f6c=_0x279f97[_0x1bbe37(0x243)]);let _0x4fae1e=null;if(_0x279f97['lAvYE'](_0x47458a['duration'],undefined))_0x4fae1e=_0x47458a[_0x1bbe37(0x235)];else(_0x17ce0c[_0x1bbe37(0x1e0)](/Finished/)||_0x17ce0c[_0x1bbe37(0x1e0)](/Skipped/))&&(_0x47458a[_0x1bbe37(0x225)]&&(_0x4fae1e=_0x279f97[_0x1bbe37(0x26f)](Date[_0x1bbe37(0x1ff)](),new Date(_0x47458a[_0x1bbe37(0x225)])[_0x1bbe37(0x228)]())));const _0x56f6e8=_0x47458a['fn']?_0x47458a['fn'][_0x1bbe37(0x269)]():null,_0xdc7e5e={'id':_0x5e5189,'uuid':_0x5e5189,'startedAt':_0x47458a[_0x1bbe37(0x225)]||new Date()['toISOString'](),'finishedAt':_0x17ce0c[_0x1bbe37(0x1e0)](/Finished/)||_0x17ce0c['match'](/Skipped/)?new Date()[_0x1bbe37(0x23f)]():null,'type':_0x279f97[_0x1bbe37(0x20f)],'body':{'lang':_0x279f97[_0x1bbe37(0x251)],'code':_0x56f6e8},'name':_0x342697,'errorsDetailed':_0x279f97[_0x1bbe37(0x1e7)](_0x5bd345?.[_0x1bbe37(0x231)],0x0)?_0x5bd345[0x0]:_0x5bd345?_0x5bd345:undefined,'scopes':_0x12cabf,'file_name':_0x44bb65,'location':_0x44bb65,'vc_filepath':this[_0x1bbe37(0x255)]&&_0x454139?path[_0x1bbe37(0x1e4)](this['_gitConfigPath'],_0x454139):null,'framework':_0x279f97[_0x1bbe37(0x1c5)],'result':_0xed8f6c,'failure_reason':_0x339642,'duration_in_ms':_0x4fae1e,'failure':failureData[_0x1bbe37(0x239)](null,_0x39a903),'failure_type':!_0x339642?null:_0x279f97['hXIIF'](getFailureType,_0x339642),'retry_of':_0x47458a[_0x1bbe37(0x1bf)]||null,'customRerunParam':{'rerun_name':_0x342697}};_0x279f97[_0x1bbe37(0x1de)](_0x17ce0c,_0x279f97[_0x1bbe37(0x234)])&&!_0xdc7e5e[_0x1bbe37(0x230)]&&(_0xdc7e5e['startedAt']=_0xdc7e5e[_0x1bbe37(0x1d8)]);const _0x4d2fde=_0xdc7e5e[_0x1bbe37(0x25e)]&&_0xdc7e5e[_0x1bbe37(0x25e)][0x0];return _0x4d2fde&&(_0xdc7e5e[_0x1bbe37(0x266)]=_0x4d2fde[_0x1bbe37(0x1bb)],_0xdc7e5e['failure_reason_expanded']=_0x4d2fde[_0x1bbe37(0x220)]),(_0x279f97[_0x1bbe37(0x26c)](_0x17ce0c,_0x279f97[_0x1bbe37(0x236)])||_0x279f97['pIqcG'](_0x17ce0c,_0x279f97[_0x1bbe37(0x234)]))&&(_0x47458a[_0x1bbe37(0x221)]&&(_0xdc7e5e['hooks']=_0x47458a['hooks'])),_0xdc7e5e;}catch(_0x30f48c){return logger['debug'](_0x1bbe37(0x237)+util[_0x1bbe37(0x240)](_0x30f48c)),null;}}async[a120_0x11281d(0x23a)](_0x5d0b4a,_0x54292f,_0x43da89,_0x16d72c){const _0x5b5715=a120_0x11281d,_0x37f6ea={'XgLAL':'No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','sdtoK':'jest-circus','XdepA':'browserstack-node-agent/src/bin/jest','iQRKd':_0x5b5715(0x1bc),'HkVga':_0x5b5715(0x1e3),'RlSUj':function(_0x4330e0,_0x319ddb){return _0x4330e0===_0x319ddb;},'Owelp':'HookRunFinished','eeLSn':function(_0x3ae023,_0x371dc6){return _0x3ae023>_0x371dc6;},'lDMIe':'failed','MsAXv':function(_0x5bfc4c,_0x4241ce){return _0x5bfc4c(_0x4241ce);},'vWkzS':_0x5b5715(0x1b2),'pJUat':_0x5b5715(0x25f),'BuubA':'hook','HkYyF':_0x5b5715(0x1b7),'kIzkb':_0x5b5715(0x22f),'MAlYv':function(_0x552e33,_0x19f2e5){return _0x552e33===_0x19f2e5;},'cuazv':_0x5b5715(0x1cf)};logger[_0x5b5715(0x22b)]('Creating\x20hook\x20data\x20for\x20eventType:\x20'+_0x43da89+_0x5b5715(0x232)+_0x54292f+',\x20testRunId:\x20'+_0x16d72c);try{if(!_0x5d0b4a)return logger[_0x5b5715(0x22b)](_0x37f6ea[_0x5b5715(0x229)]),null;if(this[_0x5b5715(0x265)](_0x5d0b4a))return null;await this[_0x5b5715(0x202)]();let _0x226f9b=null;try{_0x226f9b=this[_0x5b5715(0x1af)](_0x5d0b4a);if(_0x226f9b&&_0x226f9b[_0x5b5715(0x1f1)](_0x37f6ea[_0x5b5715(0x1c7)]))return null;if(_0x226f9b&&_0x226f9b[_0x5b5715(0x1f1)](_0x37f6ea[_0x5b5715(0x260)]))return null;}catch(_0x37c042){logger['debug'](_0x5b5715(0x24a)+util['format'](_0x37c042));}const _0x277213=_0x226f9b?this[_0x5b5715(0x1b3)][_0x5b5715(0x272)](_0x226f9b):_0x226f9b,_0x2f0b83=this[_0x5b5715(0x20d)](_0x5d0b4a),_0x26da01=_0x5d0b4a[_0x5b5715(0x1da)]||_0x37f6ea[_0x5b5715(0x1d3)],_0x3a88ac=HOOK_TYPES_MAP[_0x26da01]||_0x26da01[_0x5b5715(0x1d6)](),_0x2f95be=_0x5d0b4a[_0x5b5715(0x268)]&&_0x5d0b4a[_0x5b5715(0x268)][_0x5b5715(0x223)]?_0x5d0b4a[_0x5b5715(0x268)][_0x5b5715(0x223)]:'';let _0x46a26a=_0x37f6ea[_0x5b5715(0x1e2)],_0x12aa72=null,_0x57ca17=null,_0x2ab52a=null,_0x4dc9f6=null;_0x37f6ea[_0x5b5715(0x203)](_0x43da89,_0x37f6ea[_0x5b5715(0x222)])&&(_0x4dc9f6=new Date()['toISOString'](),_0x5d0b4a[_0x5b5715(0x1ce)]&&_0x37f6ea[_0x5b5715(0x1c1)](_0x5d0b4a['errorsDetailed'][_0x5b5715(0x231)],0x0)?(_0x46a26a=_0x37f6ea[_0x5b5715(0x258)],_0x57ca17=util[_0x5b5715(0x217)](_0x5d0b4a[_0x5b5715(0x1ce)][0x0]),_0x12aa72=_0x37f6ea[_0x5b5715(0x262)](getFailureType,_0x57ca17),_0x2ab52a=failureData[_0x5b5715(0x239)](null,[_0x5d0b4a['errorsDetailed'],_0x37f6ea[_0x5b5715(0x1c0)]])):_0x46a26a=_0x37f6ea['pJUat']);const _0x447d9d={'uuid':_0x54292f,'type':_0x37f6ea[_0x5b5715(0x215)],'hook_type':_0x3a88ac,'name':_0x2f0b83,'body':{'lang':_0x37f6ea[_0x5b5715(0x1dc)],'code':_0x5d0b4a['fn']?_0x5d0b4a['fn'][_0x5b5715(0x269)]():null},'tags':[],'test_run_id':_0x16d72c,'scope':_0x2f95be,'scopes':[_0x2f95be],'file_name':_0x277213,'location':_0x277213,'vc_filepath':this[_0x5b5715(0x255)]&&_0x226f9b?path['relative'](this[_0x5b5715(0x255)],_0x226f9b):null,'result':_0x46a26a,'started_at':_0x5d0b4a[_0x5b5715(0x225)]||new Date()[_0x5b5715(0x23f)](),'finished_at':_0x4dc9f6,'failure_type':_0x12aa72,'failure_reason':_0x57ca17,'failure_data':_0x2ab52a,'framework':_0x37f6ea[_0x5b5715(0x1ef)]};return _0x37f6ea[_0x5b5715(0x1b9)](_0x43da89,_0x37f6ea[_0x5b5715(0x21b)])&&(hooksMap[_0x16d72c]?hooksMap[_0x16d72c]['push'](_0x447d9d):hooksMap[_0x16d72c]=[_0x447d9d]),_0x447d9d;}catch(_0x27a246){return logger['debug'](_0x5b5715(0x23e)+util[_0x5b5715(0x240)](_0x27a246)),null;}}[a120_0x11281d(0x273)](_0x1706f2,_0x41777e,_0x20742e){const _0x5e683d=a120_0x11281d,_0x48fbf4={'wCsWJ':function(_0x44ed1f,_0x3e26cc){return _0x44ed1f>_0x3e26cc;},'DDnwf':_0x5e683d(0x1eb),'DsdLQ':function(_0x534c49,_0x3353d6){return _0x534c49(_0x3353d6);},'DahOT':_0x5e683d(0x1b2),'CQmUX':_0x5e683d(0x25f)};try{const _0x4c49fd=hooksMap[_0x1706f2];if(!_0x4c49fd)return null;const _0x3a20a9=_0x4c49fd[_0x5e683d(0x1fc)](_0x2c0810=>_0x2c0810['uuid']===_0x41777e);if(!_0x3a20a9)return null;return _0x3a20a9[_0x5e683d(0x256)]=new Date()[_0x5e683d(0x23f)](),_0x20742e[_0x5e683d(0x1ce)]&&_0x48fbf4[_0x5e683d(0x1d4)](_0x20742e['errorsDetailed'][_0x5e683d(0x231)],0x0)?(_0x3a20a9[_0x5e683d(0x1d7)]=_0x48fbf4[_0x5e683d(0x241)],_0x3a20a9['failure_reason']=util[_0x5e683d(0x217)](_0x20742e[_0x5e683d(0x1ce)][0x0]),_0x3a20a9[_0x5e683d(0x1cc)]=_0x48fbf4[_0x5e683d(0x264)](getFailureType,_0x3a20a9[_0x5e683d(0x224)]),_0x3a20a9[_0x5e683d(0x213)]=failureData[_0x5e683d(0x239)](null,[_0x20742e['errorsDetailed'],_0x48fbf4[_0x5e683d(0x207)]])):_0x3a20a9['result']=_0x48fbf4[_0x5e683d(0x20a)],_0x3a20a9;}catch(_0x1882ba){return logger[_0x5e683d(0x22b)](_0x5e683d(0x1e9)+util[_0x5e683d(0x240)](_0x1882ba)),null;}}['getName'](_0x2b1746){const _0x50f48b=a120_0x11281d,_0x1b435c={};_0x1b435c[_0x50f48b(0x254)]=function(_0xd8c33c,_0x1eecce){return _0xd8c33c!==_0x1eecce;},_0x1b435c[_0x50f48b(0x1b1)]=_0x50f48b(0x1b2),_0x1b435c[_0x50f48b(0x1bd)]=_0x50f48b(0x246);const _0x59b848=_0x1b435c;if(_0x59b848[_0x50f48b(0x254)](_0x2b1746[_0x50f48b(0x1da)],_0x59b848[_0x50f48b(0x1b1)]))return'\x22'+_0x2b1746[_0x50f48b(0x1da)]+_0x50f48b(0x210)+(_0x2b1746[_0x50f48b(0x268)]&&_0x2b1746['parent'][_0x50f48b(0x223)])+'\x22';return _0x2b1746['name']||_0x59b848['WnkKL'];}[a120_0x11281d(0x1e1)](_0x1ca694){const _0x43b1a0=a120_0x11281d,_0x23ee16={};_0x23ee16['wRhdw']=function(_0x521923,_0x37ec45){return _0x521923!==_0x37ec45;},_0x23ee16[_0x43b1a0(0x25d)]=_0x43b1a0(0x248);const _0x2a6e4c=_0x23ee16,_0x3e7976=[];if(_0x1ca694&&_0x1ca694[_0x43b1a0(0x268)]){let _0xc4c29a=_0x1ca694[_0x43b1a0(0x268)];while(_0xc4c29a&&_0xc4c29a[_0x43b1a0(0x223)]&&_0x2a6e4c[_0x43b1a0(0x233)](_0xc4c29a['name'],'')&&_0x2a6e4c['wRhdw'](_0xc4c29a[_0x43b1a0(0x223)],_0x2a6e4c['frsNk'])){_0x3e7976[_0x43b1a0(0x1ed)](_0xc4c29a[_0x43b1a0(0x223)]),_0xc4c29a=_0xc4c29a[_0x43b1a0(0x268)];}}return _0x3e7976[_0x43b1a0(0x23c)](),_0x3e7976;}[a120_0x11281d(0x1af)](_0x1ff46f){const _0xb2e1a0=a120_0x11281d,_0x28c781={'FyzNN':function(_0x25c289,_0x44a837){return _0x25c289(_0x44a837);}};if(_0x1ff46f[_0xb2e1a0(0x26a)])return _0x1ff46f[_0xb2e1a0(0x26a)];if(_0x1ff46f['asyncError'])try{const _0x96a36=stackTrace[_0xb2e1a0(0x206)]['call'](stackTrace,_0x1ff46f[_0xb2e1a0(0x21f)]),_0x592b14=_0x28c781['FyzNN'](pickUserFrameFile,_0x96a36);if(_0x592b14)return _0x592b14;logger[_0xb2e1a0(0x22b)](_0xb2e1a0(0x263)+_0x96a36[_0xb2e1a0(0x231)]+')');}catch(_0x18738f){logger[_0xb2e1a0(0x22b)](_0xb2e1a0(0x1e6)+util[_0xb2e1a0(0x240)](_0x18738f));}return null;}['isJestInternalHook'](_0x91612d){const _0x38c7f0=a120_0x11281d,_0x5815e3={};_0x5815e3[_0x38c7f0(0x1d9)]=_0x38c7f0(0x1f2);const _0xa4b724=_0x5815e3;try{const _0x3c1c0b=this[_0x38c7f0(0x1af)](_0x91612d);if(!_0x3c1c0b||_0x3c1c0b[_0x38c7f0(0x1f1)](_0xa4b724['kNtgs']))return!![];}catch(_0xcc44b9){logger['debug'](_0x38c7f0(0x1c2)+util[_0x38c7f0(0x240)](_0xcc44b9));}return![];}[a120_0x11281d(0x1ca)](_0x431192=null){const _0xfee055=a120_0x11281d;try{const _0x611f06=_0x431192||global[_0xfee055(0x26b)]||{};if(global['__jestCurrentTestIdentifier'])return global[_0xfee055(0x201)];if(_0x611f06?.[_0xfee055(0x25b)]?.['testAnalyticsId'])return _0x611f06[_0xfee055(0x25b)]['testAnalyticsId'];if(_0x611f06?.['currentTest']?.['id'])return _0x611f06[_0xfee055(0x25b)]['id'];return null;}catch(_0x2e1536){return logger[_0xfee055(0x22b)](_0xfee055(0x208)+util[_0xfee055(0x240)](_0x2e1536)),null;}}async[a120_0x11281d(0x202)](){const _0x4e798c=a120_0x11281d,_0x1014e9={'UTien':function(_0x22005e){return _0x22005e();}};if(this[_0x4e798c(0x1c4)])return this[_0x4e798c(0x255)];const _0xdaab1f=await _0x1014e9[_0x4e798c(0x245)](getGitMetaData);_0xdaab1f&&(this[_0x4e798c(0x255)]=_0xdaab1f[_0x4e798c(0x24e)]),this[_0x4e798c(0x1c4)]=!![];}['clearHooksMap'](_0x391fab){hooksMap[_0x391fab]&&delete hooksMap[_0x391fab];}['extractTestFilePath'](_0x40c9f1){const _0x338ede=a120_0x11281d,_0xb9b16d={'JWXCN':_0x338ede(0x1f2),'uCqoW':function(_0x2683d0,_0x35c0ad){return _0x2683d0(_0x35c0ad);},'KZgSz':_0x338ede(0x1be)};if(_0x40c9f1['file'])return _0x40c9f1[_0x338ede(0x26a)];if(_0x40c9f1[_0x338ede(0x21f)]){try{const _0x132aa3=stackTrace['parse'](_0x40c9f1['asyncError']);if(_0x132aa3[0x0]&&_0x132aa3[0x0][_0x338ede(0x204)]){const _0x4e197a=_0x132aa3[0x0][_0x338ede(0x204)]();if(_0x4e197a&&!_0x4e197a[_0x338ede(0x1f1)](_0xb9b16d[_0x338ede(0x1fd)]))return _0x4e197a;}}catch(_0x5137b0){logger[_0x338ede(0x22b)](_0x338ede(0x259)+util[_0x338ede(0x240)](_0x5137b0));}if(_0x40c9f1[_0x338ede(0x21f)][_0x338ede(0x22a)]){const _0x489133=_0x40c9f1['asyncError'][_0x338ede(0x22a)][_0x338ede(0x226)]('\x0a');for(const _0x2ec0cd of _0x489133){const _0x1ae9e4=_0x2ec0cd[_0x338ede(0x1e0)](/at (.+?):\d+:\d+/);if(_0x1ae9e4&&_0x1ae9e4[0x1]&&!_0x1ae9e4[0x1]['includes'](_0xb9b16d[_0x338ede(0x1fd)]))return _0x1ae9e4[0x1];}}}let _0x27a295=_0x40c9f1['parent'];while(_0x27a295){if(_0x27a295['file'])return _0x27a295[_0x338ede(0x26a)];if(_0x27a295['asyncError'])try{const _0x11430e=stackTrace[_0x338ede(0x206)](_0x27a295['asyncError']);if(_0x11430e[0x0]&&_0x11430e[0x0][_0x338ede(0x204)]){const _0x4897f8=_0x11430e[0x0][_0x338ede(0x204)]();if(_0x4897f8&&!_0x4897f8[_0x338ede(0x1f1)](_0xb9b16d['JWXCN']))return _0x4897f8;}}catch(_0x420d2d){}_0x27a295=_0x27a295[_0x338ede(0x268)];}try{const _0x2a549a=_0xb9b16d['uCqoW'](require,_0xb9b16d['KZgSz']);if(_0x2a549a&&_0x2a549a['getState']){const _0x36c74e=_0x2a549a['getState']();if(_0x36c74e&&_0x36c74e[_0x338ede(0x1b6)])return _0x36c74e[_0x338ede(0x1b6)];}}catch(_0x1acb17){logger[_0x338ede(0x22b)](_0x338ede(0x25a)+util[_0x338ede(0x240)](_0x1acb17));}return null;}[a120_0x11281d(0x24c)](_0x2e8c77){const _0x4c21b0=a120_0x11281d,_0x4282d2={};_0x4282d2[_0x4c21b0(0x244)]=_0x4c21b0(0x1dd),_0x4282d2[_0x4c21b0(0x1df)]=function(_0x3819c6,_0x24548d){return _0x3819c6!==_0x24548d;},_0x4282d2[_0x4c21b0(0x1ea)]='ROOT_DESCRIBE_BLOCK',_0x4282d2[_0x4c21b0(0x22d)]='jest-circus',_0x4282d2[_0x4c21b0(0x20c)]=_0x4c21b0(0x1f8),_0x4282d2['AsfQx']=_0x4c21b0(0x1ba);const _0xbe3e89=_0x4282d2;try{if(!_0x2e8c77)return logger[_0x4c21b0(0x21a)](_0xbe3e89[_0x4c21b0(0x244)]),null;const _0x20b9ad=_0x2e8c77[_0x4c21b0(0x21e)]||_0x2e8c77[_0x4c21b0(0x223)]||_0x2e8c77[_0x4c21b0(0x1b4)]||_0x2e8c77[_0x4c21b0(0x1c8)];let _0x1f03c1=_0x20b9ad;if(_0x2e8c77[_0x4c21b0(0x268)]&&_0x2e8c77[_0x4c21b0(0x268)][_0x4c21b0(0x223)]&&_0xbe3e89['fNOMF'](_0x2e8c77[_0x4c21b0(0x268)][_0x4c21b0(0x223)],_0xbe3e89[_0x4c21b0(0x1ea)])){const _0x341516=_0x2e8c77[_0x4c21b0(0x223)]||_0x2e8c77[_0x4c21b0(0x1b4)];_0x341516&&(_0x1f03c1=_0x2e8c77[_0x4c21b0(0x268)][_0x4c21b0(0x223)]+'\x20'+_0x341516);}let _0x5231bb=_0x2e8c77['testPath'];if(!_0x5231bb&&_0x2e8c77[_0x4c21b0(0x21f)]){try{const _0x5c59e1=stackTrace[_0x4c21b0(0x206)](_0x2e8c77[_0x4c21b0(0x21f)]);if(_0x5c59e1[0x0]&&_0x5c59e1[0x0][_0x4c21b0(0x204)]){const _0x4c2569=_0x5c59e1[0x0]['getFileName']();_0x4c2569&&!_0x4c2569[_0x4c21b0(0x1f1)](_0xbe3e89['ZYjkL'])&&(_0x5231bb=_0x4c2569);}}catch(_0x530513){logger[_0x4c21b0(0x22b)]('[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util[_0x4c21b0(0x240)](_0x530513));}if(!_0x5231bb&&_0x2e8c77[_0x4c21b0(0x21f)][_0x4c21b0(0x22a)]){const _0x58d2a0=_0x2e8c77[_0x4c21b0(0x21f)][_0x4c21b0(0x22a)][_0x4c21b0(0x226)]('\x0a');for(const _0x4dd69f of _0x58d2a0){const _0x1b80ac=_0x4dd69f[_0x4c21b0(0x1e0)](/at (.+?):\d+:\d+/);if(_0x1b80ac&&_0x1b80ac[0x1]&&!_0x1b80ac[0x1][_0x4c21b0(0x1f1)](_0xbe3e89[_0x4c21b0(0x22d)])){_0x5231bb=_0x1b80ac[0x1];break;}}}}const _0xb64d6e=_0x5231bb+'::'+_0x1f03c1,_0x3a6b9d=crypto[_0x4c21b0(0x1f5)](_0xbe3e89[_0x4c21b0(0x20c)])[_0x4c21b0(0x1cb)](_0xb64d6e)['digest'](_0xbe3e89['AsfQx'])[_0x4c21b0(0x1f3)](0x0,0x8),_0xa89195=process[_0x4c21b0(0x209)]+_0x4c21b0(0x1fa)+_0x3a6b9d;return logger['debug'](_0x4c21b0(0x1db)+_0xa89195+_0x4c21b0(0x252)+_0xb64d6e),_0xa89195;}catch(_0x57ad00){return logger[_0x4c21b0(0x21a)](_0x4c21b0(0x26d)+util['format'](_0x57ad00)),null;}}[a120_0x11281d(0x20b)](_0x495feb){const _0x1d79e2=a120_0x11281d,_0x1f5a08={};_0x1f5a08[_0x1d79e2(0x24d)]=_0x1d79e2(0x1d1);const _0x44dd04=_0x1f5a08;if(!_0x495feb)return logger['debug'](_0x44dd04[_0x1d79e2(0x24d)]),null;const _0x2cb2e3=this[_0x1d79e2(0x253)](_0x495feb),_0x3cd4ba={};_0x3cd4ba[_0x1d79e2(0x223)]=_0x495feb[_0x1d79e2(0x223)]||_0x495feb[_0x1d79e2(0x1b4)],_0x3cd4ba['parent']=_0x495feb[_0x1d79e2(0x268)],_0x3cd4ba[_0x1d79e2(0x1b6)]=_0x2cb2e3,_0x3cd4ba['asyncError']=_0x495feb[_0x1d79e2(0x21f)];const _0x285816=_0x3cd4ba;return this[_0x1d79e2(0x24c)](_0x285816);}['recreateIdentifierFromTestInfo'](_0x68aa7b,_0x133239=null){const _0x56469b=a120_0x11281d,_0x514f16={};_0x514f16[_0x56469b(0x1c6)]=_0x56469b(0x238);const _0x2bd2d=_0x514f16;if(!_0x68aa7b)return logger[_0x56469b(0x22b)](_0x2bd2d['Wlprc']),_0x133239;if(_0x68aa7b['testIdentifier'])return logger[_0x56469b(0x22b)](_0x56469b(0x22e)+_0x68aa7b['testIdentifier']),_0x68aa7b[_0x56469b(0x247)];return this[_0x56469b(0x24c)](_0x68aa7b)||_0x133239;}}module[a120_0x11281d(0x270)]=o11yClassErrorHandler(JestUtils,[a120_0x11281d(0x202),'getHierarchy',a120_0x11281d(0x1af),a120_0x11281d(0x20d),a120_0x11281d(0x265),a120_0x11281d(0x1ca),a120_0x11281d(0x227),'createHookData',a120_0x11281d(0x273),a120_0x11281d(0x1c9),a120_0x11281d(0x253),a120_0x11281d(0x24c),a120_0x11281d(0x20b),a120_0x11281d(0x271)]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a121_0x566eaa=a121_0x3f9e;function a121_0x1c66(){const _0x318215=['configPath','../../helpers/logger','../../helpers/BrowserStackSetup','modifyBrowserStackCaps','config','browserVersion','150918ppXeWI','cwd','[TRACE:node-generic]\x20CLI\x20enabled\x20—\x20using\x20Binary\x20Flow','naQSc','env','push','index','zFpKv','SDK_SETUP','../../helpers/testhub/testhubHandler','setBrowserstackConfig','RUVFj','mIVqU','ZOCwi','\x20doesn\x27t\x20exist','../../helpers/testhub/utils','browser_version','164382hrcfkq','initialize','XKKxZ','qcVZu','SDK_CLEANUP','[TRACE:node-generic]\x20Error\x20during\x20stop:\x20','EkkGH','BROWSERSTACK_TEST_ACCESSIBILITY_YML','args','14814qFKIsZ','Config\x20yml\x20is\x20required','__accessibilityOptions','isFinite','NaUES','finalExecution','accessibility','platforms','aKDGw','../utils/constants','isMainConnected','deviceName','isChildConnected','winstonLogger','getBrowserDisplayName','NODE_GENERIC','message','info','vkmqK','isBrowserstackInfra','path','isVersionSupported','[TRACE:node-generic]\x20beforeExit\x20safety\x20net\x20—\x20stopping\x20binary','modifyBrowserStackW3CCaps','configuration','isUndefined','../v2/cliUtils','../test-runner','launchBuild','7013174ReNKyy','length','cKgOn','xsuMA','[TRACE:node-generic]\x20Error\x20enriching\x20accessibility\x20config:\x20','handleApp','EVENTS','OPvEa','../v2/browserstackCLI','[TRACE:node-generic]\x20parallelVanillaRun\x20complete,\x20stopping\x20binary','cliConfig','[TRACE:node-generic]\x20Accessibility:\x20enabled=','File\x20','123670maSCbq','zWnvL','pVIey','existsSync','5288jzgsRa','15vcTmgj','start','useW3C','parallelsPerPlatform','on\x20non-BrowserStack\x20infrastructure\x20','zbBfY','debug','startsWith','RCyWY','GcWpF','321964ejueDy','assign','getMinVersionForBrowser','parse','browserName','frsIW','352AHFmst','wwTBB','stringify','34vSXgDD','getInstance','BNteO','HqNRG','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','forEach','../../helpers/utilities','iehpI','File\x20path\x20is\x20required','getHubUrl','vanilla','accessibilityOptions','2520198pWLHtw','error','stop','end','[TRACE:node-generic]\x20CLI\x20not\x20enabled\x20—\x20using\x20Direct\x20Flow','browserstack.accessibilityOptions.scannerVersion','file','../../helpers/helper','[TRACE:node-generic]\x20Binary\x20Flow\x20error:\x20','Iyhrz'];a121_0x1c66=function(){return _0x318215;};return a121_0x1c66();}(function(_0x2d60f1,_0x257d5c){const _0x3c07e7=a121_0x3f9e,_0x38433b=_0x2d60f1();while(!![]){try{const _0x48c637=-parseInt(_0x3c07e7(0x1bd))/0x1+-parseInt(_0x3c07e7(0x190))/0x2*(-parseInt(_0x3c07e7(0x1ac))/0x3)+-parseInt(_0x3c07e7(0x187))/0x4*(parseInt(_0x3c07e7(0x17d))/0x5)+parseInt(_0x3c07e7(0x19c))/0x6+-parseInt(_0x3c07e7(0x16b))/0x7+-parseInt(_0x3c07e7(0x17c))/0x8*(-parseInt(_0x3c07e7(0x1c6))/0x9)+parseInt(_0x3c07e7(0x178))/0xa*(-parseInt(_0x3c07e7(0x18d))/0xb);if(_0x48c637===_0x257d5c)break;else _0x38433b['push'](_0x38433b['shift']());}catch(_0x5437a8){_0x38433b['push'](_0x38433b['shift']());}}}(a121_0x1c66,0x88a90));const fs=require('fs'),path=require(a121_0x566eaa(0x162)),{default:BrowserStackSetup}=require(a121_0x566eaa(0x1a8)),helper=require(a121_0x566eaa(0x1a3)),PerformanceTester=require('../../helpers/performance/performance-tester'),PerformanceEvents=require('../../helpers/performance/constants')[a121_0x566eaa(0x171)],utilities=require(a121_0x566eaa(0x196)),{parallelVanillaRun}=require(a121_0x566eaa(0x169)),TestHubHandler=require(a121_0x566eaa(0x1b5)),BrowserstackCLI=require(a121_0x566eaa(0x173)),logger=require(a121_0x566eaa(0x1a7))[a121_0x566eaa(0x15b)],CLIUtils=require(a121_0x566eaa(0x168)),{FRAMEWORKS}=require(a121_0x566eaa(0x157)),accessibilityHelper=require('../../helpers/accessibility-automation/helper');async function run(_0x199cab,_0x2a0743,_0x4d2089){const _0x29280a=a121_0x566eaa,_0x5d47f4={'xsuMA':_0x29280a(0x19a),'zWnvL':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','zbBfY':function(_0x735677,_0x522da0){return _0x735677(_0x522da0);},'OPvEa':function(_0x3bac4b,_0xf75e2b){return _0x3bac4b(_0xf75e2b);},'RCyWY':function(_0x11fa21,_0x548a11){return _0x11fa21>_0x548a11;},'qcVZu':_0x29280a(0x181),'Iyhrz':_0x29280a(0x164),'EkkGH':function(_0x5062db,_0xee1e11){return _0x5062db(_0xee1e11);},'vkmqK':_0x29280a(0x198),'tPfek':function(_0x4cc0db,_0x2a455b){return _0x4cc0db!==_0x2a455b;},'frsIW':function(_0x3962be,_0x4e1baf){return _0x3962be+_0x4e1baf;},'NaUES':function(_0x525f58,_0x50f4f4){return _0x525f58(_0x50f4f4);},'KiKqs':function(_0xf841a7,_0x412a9e){return _0xf841a7(_0x412a9e);},'aKDGw':_0x29280a(0x1c7),'ZOCwi':function(_0x1c8bab,_0x390c8b){return _0x1c8bab>_0x390c8b;},'cKgOn':function(_0x1ca1ea,_0x1723db){return _0x1ca1ea>_0x1723db;},'iehpI':function(_0x1748b5,_0x494f76){return _0x1748b5&&_0x494f76;},'zFpKv':'Accessibility\x20Automation\x20is\x20not\x20supported\x20with\x20w3c:\x20false.\x20Skipping\x20accessibility\x20for\x20this\x20run.','yRSRb':_0x29280a(0x1bb),'pVIey':function(_0x5b6457,_0x2bef06){return _0x5b6457(_0x2bef06);},'naQSc':_0x29280a(0x1ae),'BNteO':'[TRACE:node-generic]\x20Binary\x20bootstrapped,\x20starting\x20parallelVanillaRun','RUVFj':_0x29280a(0x1a1),'GcWpF':function(_0x342d82,_0x87947d){return _0x342d82*_0x87947d;},'wwTBB':function(_0x282fa3,_0x396d60,_0x2af32b){return _0x282fa3(_0x396d60,_0x2af32b);},'XKKxZ':_0x29280a(0x174),'mIVqU':_0x29280a(0x1a0),'HqNRG':'beforeExit'};await _0x4d2089[_0x29280a(0x1be)](_0x199cab);!BrowserstackCLI[_0x29280a(0x191)]()['isRunning']()&&await _0x4d2089['setupBrowserstackLocal']();await helper[_0x29280a(0x170)](_0x4d2089[_0x29280a(0x1aa)]);const _0x3bcc95=[];if(helper[_0x29280a(0x167)](_0x199cab['_'][0x1]))throw _0x5d47f4[_0x29280a(0x1c3)](Error,_0x5d47f4[_0x29280a(0x160)]);const _0x21a823=process[_0x29280a(0x1ad)](),_0x4ebdae=path['resolve'](_0x21a823,_0x199cab['_'][0x1]);if(_0x5d47f4['tPfek'](_0x4ebdae,_0x21a823)&&!_0x4ebdae[_0x29280a(0x184)](_0x5d47f4[_0x29280a(0x18c)](_0x21a823,path['sep'])))throw _0x5d47f4[_0x29280a(0x152)](Error,'File\x20path\x20'+_0x199cab['_'][0x1]+'\x20resolves\x20outside\x20the\x20project\x20directory\x20and\x20was\x20rejected');if(!fs[_0x29280a(0x17b)](_0x4ebdae))throw _0x5d47f4['KiKqs'](Error,_0x29280a(0x177)+_0x199cab['_'][0x1]+_0x29280a(0x1ba));if(!_0x4d2089[_0x29280a(0x1aa)])throw _0x5d47f4['KiKqs'](Error,_0x5d47f4[_0x29280a(0x156)]);const _0x3ad628=helper[_0x29280a(0x17f)](_0x4d2089['config']);_0x4d2089[_0x29280a(0x1aa)][_0x29280a(0x155)]&&_0x5d47f4[_0x29280a(0x1b9)](_0x4d2089[_0x29280a(0x1aa)][_0x29280a(0x155)][_0x29280a(0x16c)],0x0)&&_0x4d2089['config'][_0x29280a(0x155)][_0x29280a(0x195)]((_0x1f6956,_0x194b6a)=>{const _0x374752=_0x29280a;_0x3ad628?_0x3bcc95['push'](helper[_0x374752(0x165)](_0x4d2089['config'],_0x5d47f4[_0x374752(0x16e)],_0x194b6a)):_0x3bcc95[_0x374752(0x1b1)](helper['modifyBrowserStackCaps'](_0x4d2089[_0x374752(0x1aa)],_0x5d47f4[_0x374752(0x16e)],_0x194b6a));});let _0x5d62ee,_0x43d912;const _0x8b8eba=[];if(_0x5d47f4[_0x29280a(0x16d)](_0x3bcc95[_0x29280a(0x16c)],0x0))_0x3bcc95[_0x29280a(0x195)]((_0x5899ce,_0x1c194c)=>{const _0x117923=_0x29280a,_0x32646d={};_0x32646d[_0x117923(0x1b2)]=_0x1c194c,_0x5d62ee={'server':helper[_0x117923(0x199)](_0x4d2089[_0x117923(0x1aa)]),'proxySettings':_0x4d2089[_0x117923(0x1aa)]['proxySettings'],'platform':helper['getPlatformName'](_0x5899ce),'platformCaps':Object[_0x117923(0x188)](_0x32646d,_0x4d2089[_0x117923(0x1aa)][_0x117923(0x155)][_0x1c194c])};const _0x13e3dd={'capability':_0x5899ce,..._0x5d62ee};_0x13e3dd[_0x117923(0x1a2)]=_0x4ebdae,_0x13e3dd['args']=_0x2a0743;const _0x15dff4={};_0x15dff4[_0x117923(0x166)]=_0x13e3dd,_0x43d912=_0x15dff4,_0x8b8eba[_0x117923(0x1b1)](_0x43d912);});else{let _0x4a9bdd;_0x3ad628?_0x4a9bdd=helper[_0x29280a(0x165)](_0x4d2089[_0x29280a(0x1aa)],_0x5d47f4[_0x29280a(0x16e)],0x0):_0x4a9bdd=helper[_0x29280a(0x1a9)](_0x4d2089[_0x29280a(0x1aa)],_0x5d47f4['xsuMA'],0x0);_0x5d62ee={'server':helper[_0x29280a(0x199)](_0x4d2089[_0x29280a(0x1aa)]),'proxySettings':_0x4d2089[_0x29280a(0x1aa)]['proxySettings']};const _0x46646c={'capability':_0x4a9bdd,..._0x5d62ee};_0x46646c[_0x29280a(0x1a2)]=_0x4ebdae,_0x46646c[_0x29280a(0x1c5)]=_0x2a0743;const _0x3e20b6={};_0x3e20b6[_0x29280a(0x166)]=_0x46646c,_0x43d912=_0x3e20b6,_0x8b8eba[_0x29280a(0x1b1)](_0x43d912);}!helper[_0x29280a(0x167)](_0x4d2089[_0x29280a(0x1aa)][_0x29280a(0x19b)])&&(process[_0x29280a(0x1b0)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x29280a(0x18f)](_0x4d2089['config']['accessibilityOptions']));let _0x26fb1b=_0x4d2089[_0x29280a(0x1aa)][_0x29280a(0x154)];_0x26fb1b=_0x26fb1b||accessibilityHelper['checkAccessibilityPlatformConfig'](_0x4d2089['config']);_0x5d47f4[_0x29280a(0x197)](_0x26fb1b,!_0x3ad628)&&(logger['warn'](_0x5d47f4[_0x29280a(0x1b3)]),_0x26fb1b=![]);process[_0x29280a(0x1b0)][_0x29280a(0x1c4)]=_0x26fb1b;if(_0x26fb1b){const _0x32bf40=helper[_0x29280a(0x161)]();(_0x4d2089['config']['platforms']||[])['forEach'](_0x373db7=>{const _0x4b3782=_0x29280a;if(!_0x373db7||_0x373db7[_0x4b3782(0x159)])return;const _0x51262e=_0x373db7[_0x4b3782(0x18b)];if(!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x51262e)){logger['warn'](_0x5d47f4[_0x4b3782(0x179)]);return;}const _0x133796=_0x373db7[_0x4b3782(0x1ab)]||_0x373db7[_0x4b3782(0x1bc)];if(helper[_0x4b3782(0x167)](_0x133796)||!Number[_0x4b3782(0x151)](_0x5d47f4['zbBfY'](parseFloat,_0x5d47f4[_0x4b3782(0x182)](String,_0x133796))))return;const _0x1ba013=accessibilityHelper[_0x4b3782(0x189)](_0x51262e,_0x32bf40),_0x4ac9a4=_0x5d47f4[_0x4b3782(0x172)](parseFloat,_0x1ba013),_0x2b8c80=_0x5d47f4[_0x4b3782(0x172)](parseFloat,_0x5d47f4[_0x4b3782(0x172)](String,_0x133796)),_0x235dfd=Number['isFinite'](_0x4ac9a4)?_0x5d47f4[_0x4b3782(0x185)](_0x2b8c80,_0x4ac9a4):accessibilityHelper[_0x4b3782(0x163)](_0x133796,_0x1ba013);if(!_0x235dfd){const _0x1c5273=accessibilityHelper[_0x4b3782(0x15c)](_0x51262e),_0x1eeae7=_0x32bf40?'':_0x5d47f4[_0x4b3782(0x1c0)];logger['warn'](_0x4b3782(0x194)+_0x1c5273+'\x20browser\x20version\x20greater\x20than\x20'+_0x1ba013+'\x20'+_0x1eeae7+'.');}});}logger['info'](_0x29280a(0x176)+_0x26fb1b);const _0x588d5a=BrowserstackCLI[_0x29280a(0x191)]();CLIUtils['setFrameworkDetail'](FRAMEWORKS[_0x29280a(0x15d)],FRAMEWORKS[_0x29280a(0x15d)]);const {getProductMap:_0x5e8fba}=_0x5d47f4[_0x29280a(0x152)](require,_0x5d47f4['yRSRb']);process[_0x29280a(0x1b0)]['BROWSERSTACK_PRODUCT_MAP']=JSON[_0x29280a(0x18f)](_0x5d47f4[_0x29280a(0x17a)](_0x5e8fba,_0x4d2089[_0x29280a(0x1aa)])),_0x588d5a[_0x29280a(0x1b6)](_0x4d2089['config'],_0x4d2089[_0x29280a(0x1a6)],_0x4d2089[_0x29280a(0x175)]);if(_0x588d5a['isCliEnabled']()){logger[_0x29280a(0x15f)](_0x5d47f4[_0x29280a(0x1af)]);try{await _0x588d5a['bootstrap'](),logger['info'](_0x5d47f4[_0x29280a(0x192)]);try{const _0x38937d=global[_0x29280a(0x150)]||{},_0x469376=_0x38937d[_0x5d47f4[_0x29280a(0x1b7)]];if(_0x469376){const _0x415a1b=JSON[_0x29280a(0x18a)](process[_0x29280a(0x1b0)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']||'{}');_0x415a1b['scannerVersion']=_0x469376,process[_0x29280a(0x1b0)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x415a1b),logger[_0x29280a(0x15f)]('[TRACE:node-generic]\x20Accessibility\x20config\x20enriched\x20with\x20binary\x20scannerVersion='+_0x469376);}}catch(_0x4f4e6f){logger[_0x29280a(0x183)](_0x29280a(0x16f)+_0x4f4e6f['message']);}const _0x42243e=_0x5d47f4['GcWpF'](_0x4d2089[_0x29280a(0x1aa)]['platforms']['length']||0x1,_0x4d2089[_0x29280a(0x1aa)][_0x29280a(0x180)]||0x1);PerformanceTester[_0x29280a(0x19f)](PerformanceEvents[_0x29280a(0x1b4)]),await _0x5d47f4['wwTBB'](parallelVanillaRun,_0x8b8eba,_0x42243e),logger[_0x29280a(0x15f)](_0x5d47f4[_0x29280a(0x1bf)]),await _0x588d5a[_0x29280a(0x19e)]();}catch(_0x2a51ff){logger[_0x29280a(0x19d)](_0x29280a(0x1a4)+_0x2a51ff[_0x29280a(0x15e)]);try{await _0x588d5a[_0x29280a(0x19e)]();}catch(_0x43d7a){logger[_0x29280a(0x183)](_0x29280a(0x1c2)+_0x43d7a[_0x29280a(0x15e)]);}}finally{PerformanceTester[_0x29280a(0x17e)](PerformanceEvents[_0x29280a(0x1c1)]),await utilities[_0x29280a(0x153)](_0x4d2089);}}else{logger[_0x29280a(0x15f)](_0x5d47f4[_0x29280a(0x1b8)]);const _0x2a1746=await TestHubHandler[_0x29280a(0x16a)](_0x5d47f4[_0x29280a(0x16e)],_0x4d2089),_0x338a61=_0x5d47f4[_0x29280a(0x186)](_0x4d2089[_0x29280a(0x1aa)][_0x29280a(0x155)][_0x29280a(0x16c)]||0x1,_0x4d2089['config'][_0x29280a(0x180)]||0x1);PerformanceTester[_0x29280a(0x19f)](PerformanceEvents[_0x29280a(0x1b4)]),_0x5d47f4[_0x29280a(0x18e)](parallelVanillaRun,_0x8b8eba,_0x338a61)['then'](_0x1e92cc=>{})['finally'](async()=>{const _0x36e373=_0x29280a;PerformanceTester['start'](PerformanceEvents[_0x36e373(0x1c1)]),await utilities[_0x36e373(0x153)](_0x4d2089);});}process['on'](_0x5d47f4[_0x29280a(0x193)],async()=>{const _0x9a1eb9=_0x29280a;try{(_0x588d5a[_0x9a1eb9(0x158)]||_0x588d5a[_0x9a1eb9(0x15a)])&&(logger[_0x9a1eb9(0x15f)](_0x5d47f4[_0x9a1eb9(0x1a5)]),await _0x588d5a[_0x9a1eb9(0x19e)]());}catch(_0x19e690){}});}function a121_0x3f9e(_0x5ef0a3,_0x3417f4){const _0x1c66e1=a121_0x1c66();return a121_0x3f9e=function(_0x3f9eac,_0x25514a){_0x3f9eac=_0x3f9eac-0x150;let _0x568628=_0x1c66e1[_0x3f9eac];return _0x568628;},a121_0x3f9e(_0x5ef0a3,_0x3417f4);}module['exports']=run;
|
|
2
|
+
'use strict';function a121_0x220e(){const _0x34cb0a=['qKcmH','../../helpers/performance/performance-tester','2189907wGHNRQ','path','file','../../helpers/utilities','index','LhbKs','lUbZG','Accessibility\x20Automation\x20is\x20not\x20supported\x20with\x20w3c:\x20false.\x20Skipping\x20accessibility\x20for\x20this\x20run.','finally','4WafBwl','../../helpers/testhub/testhubHandler','BROWSERSTACK_PRODUCT_MAP','isCliEnabled','length','GFyXI','then','1976400iuOSat','finalExecution','[TRACE:node-generic]\x20beforeExit\x20safety\x20net\x20—\x20stopping\x20binary','../utils/constants','assign','isUndefined','accessibility','end','setupBrowserstackLocal','\x20doesn\x27t\x20exist','vanilla','isBrowserstackInfra','1759261wUFBnv','../../helpers/testhub/utils','configuration','File\x20','EVENTS','browser_version','[TRACE:node-generic]\x20Binary\x20Flow\x20error:\x20','OxfXO','parallelsPerPlatform','[TRACE:node-generic]\x20Error\x20during\x20stop:\x20','proxySettings','BjNNL','resolve','253391MvBSwF','ncsle','18VQdOtW','XiAzc','Yxovn','on\x20non-BrowserStack\x20infrastructure\x20','SDK_CLEANUP','startsWith','message','config','getHubUrl','accessibilityOptions','62142FqrpDv','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','../test-runner','lLWFc','beforeExit','BuyWk','push','HCekH','wqJBv','stringify','Mflur','forEach','NeLxt','stop','isVersionSupported','winstonLogger','isRunning','__accessibilityOptions','SDK_SETUP','getInstance','browserName','vSHzd','args','[TRACE:node-generic]\x20Accessibility:\x20enabled=','LszAR','getPlatformName','AcWwl','getBrowserDisplayName','8ndMAol','env','handleApp','20geDOMj','cliConfig','../v2/browserstackCLI','debug','warn','\x20resolves\x20outside\x20the\x20project\x20directory\x20and\x20was\x20rejected','setBrowserstackConfig','ZlLyM','XmYfn','isMainConnected','modifyBrowserStackW3CCaps','getMinVersionForBrowser','iiLjr','modifyBrowserStackCaps','1374109CleiUo','isFinite','checkAccessibilityPlatformConfig','File\x20path\x20is\x20required','../../helpers/BrowserStackSetup','../../helpers/performance/constants','existsSync','NODE_GENERIC','scannerVersion','[TRACE:node-generic]\x20CLI\x20enabled\x20—\x20using\x20Binary\x20Flow','info','../../helpers/accessibility-automation/helper','deviceName','error','FHkeP','platforms','isChildConnected','2538366tfFuif','launchBuild','File\x20path\x20','bootstrap','../../helpers/helper','BROWSERSTACK_TEST_ACCESSIBILITY_YML','setFrameworkDetail','Wfhjz'];a121_0x220e=function(){return _0x34cb0a;};return a121_0x220e();}const a121_0x4ccfe4=a121_0x226e;(function(_0x13eb6a,_0x5862d2){const _0x2e1537=a121_0x226e,_0x56d2a8=_0x13eb6a();while(!![]){try{const _0x4df4b9=parseInt(_0x2e1537(0x122))/0x1+-parseInt(_0x2e1537(0x124))/0x2*(-parseInt(_0x2e1537(0x12e))/0x3)+parseInt(_0x2e1537(0x102))/0x4*(-parseInt(_0x2e1537(0x109))/0x5)+-parseInt(_0x2e1537(0x16c))/0x6+-parseInt(_0x2e1537(0x115))/0x7*(-parseInt(_0x2e1537(0x14a))/0x8)+parseInt(_0x2e1537(0xf9))/0x9+parseInt(_0x2e1537(0x14d))/0xa*(parseInt(_0x2e1537(0x15b))/0xb);if(_0x4df4b9===_0x5862d2)break;else _0x56d2a8['push'](_0x56d2a8['shift']());}catch(_0x334761){_0x56d2a8['push'](_0x56d2a8['shift']());}}}(a121_0x220e,0x59588));function a121_0x226e(_0xa6916,_0x5cff2a){const _0x220ee9=a121_0x220e();return a121_0x226e=function(_0x226ea0,_0x5bd1f3){_0x226ea0=_0x226ea0-0xf2;let _0x45c6ba=_0x220ee9[_0x226ea0];return _0x45c6ba;},a121_0x226e(_0xa6916,_0x5cff2a);}const fs=require('fs'),path=require(a121_0x4ccfe4(0xfa)),{default:BrowserStackSetup}=require(a121_0x4ccfe4(0x15f)),helper=require(a121_0x4ccfe4(0xf3)),PerformanceTester=require(a121_0x4ccfe4(0xf8)),PerformanceEvents=require(a121_0x4ccfe4(0x160))[a121_0x4ccfe4(0x119)],utilities=require(a121_0x4ccfe4(0xfc)),{parallelVanillaRun}=require(a121_0x4ccfe4(0x130)),TestHubHandler=require(a121_0x4ccfe4(0x103)),BrowserstackCLI=require(a121_0x4ccfe4(0x14f)),logger=require('../../helpers/logger')[a121_0x4ccfe4(0x13d)],CLIUtils=require('../v2/cliUtils'),{FRAMEWORKS}=require(a121_0x4ccfe4(0x10c)),accessibilityHelper=require(a121_0x4ccfe4(0x166));async function run(_0x3dccb7,_0x4ec436,_0x522385){const _0x26d252=a121_0x4ccfe4,_0x429251={'BuyWk':_0x26d252(0x113),'iiLjr':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','wqJBv':function(_0x21343c,_0x29dfca){return _0x21343c(_0x29dfca);},'Mflur':function(_0x503f15,_0x1d8331){return _0x503f15(_0x1d8331);},'lUbZG':function(_0x5c68dd,_0x171103){return _0x5c68dd(_0x171103);},'ncsle':function(_0x293cbb,_0x17721b){return _0x293cbb>_0x17721b;},'Bmwsi':_0x26d252(0x127),'xCOYv':_0x26d252(0x10b),'GFyXI':function(_0x3755b1,_0x44951){return _0x3755b1(_0x44951);},'Yxovn':_0x26d252(0x15e),'Wfhjz':function(_0xbb85aa,_0x32c362){return _0xbb85aa!==_0x32c362;},'LszAR':function(_0x58e239,_0x3d0c21){return _0x58e239+_0x3d0c21;},'vSHzd':'Config\x20yml\x20is\x20required','NeLxt':function(_0x4dc0ac,_0x2ab059){return _0x4dc0ac&&_0x2ab059;},'OxfXO':_0x26d252(0x100),'FHkeP':function(_0x377148,_0x22159a){return _0x377148(_0x22159a);},'sqlJr':_0x26d252(0x116),'jDUcd':function(_0x3a3e33,_0x1f4a8e){return _0x3a3e33(_0x1f4a8e);},'XmYfn':_0x26d252(0x164),'AcWwl':'[TRACE:node-generic]\x20Binary\x20bootstrapped,\x20starting\x20parallelVanillaRun','XiAzc':'browserstack.accessibilityOptions.scannerVersion','HCekH':function(_0xc5c7e7,_0x5c9a93){return _0xc5c7e7*_0x5c9a93;},'BjNNL':function(_0x369ef5,_0x65c9d6,_0x557cfd){return _0x369ef5(_0x65c9d6,_0x557cfd);},'lLWFc':'[TRACE:node-generic]\x20parallelVanillaRun\x20complete,\x20stopping\x20binary','PCepk':'[TRACE:node-generic]\x20CLI\x20not\x20enabled\x20—\x20using\x20Direct\x20Flow','LhbKs':function(_0x4fcf2a,_0x2cc8f9){return _0x4fcf2a*_0x2cc8f9;},'qKcmH':function(_0x923461,_0x32fed0,_0x2f7c66){return _0x923461(_0x32fed0,_0x2f7c66);},'ZlLyM':_0x26d252(0x132)};await _0x522385['initialize'](_0x3dccb7);!BrowserstackCLI[_0x26d252(0x141)]()[_0x26d252(0x13e)]()&&await _0x522385[_0x26d252(0x111)]();await helper[_0x26d252(0x14c)](_0x522385[_0x26d252(0x12b)]);const _0xee8362=[];if(helper[_0x26d252(0x10e)](_0x3dccb7['_'][0x1]))throw _0x429251[_0x26d252(0x107)](Error,_0x429251[_0x26d252(0x126)]);const _0x3698ba=process['cwd'](),_0xf2ef12=path[_0x26d252(0x121)](_0x3698ba,_0x3dccb7['_'][0x1]);if(_0x429251[_0x26d252(0xf6)](_0xf2ef12,_0x3698ba)&&!_0xf2ef12[_0x26d252(0x129)](_0x429251[_0x26d252(0x146)](_0x3698ba,path['sep'])))throw _0x429251['wqJBv'](Error,_0x26d252(0x16e)+_0x3dccb7['_'][0x1]+_0x26d252(0x152));if(!fs[_0x26d252(0x161)](_0xf2ef12))throw _0x429251['wqJBv'](Error,_0x26d252(0x118)+_0x3dccb7['_'][0x1]+_0x26d252(0x112));if(!_0x522385[_0x26d252(0x12b)])throw _0x429251[_0x26d252(0x107)](Error,_0x429251[_0x26d252(0x143)]);const _0x1d689c=helper['useW3C'](_0x522385[_0x26d252(0x12b)]);_0x522385['config']['platforms']&&_0x429251['ncsle'](_0x522385[_0x26d252(0x12b)][_0x26d252(0x16a)][_0x26d252(0x106)],0x0)&&_0x522385[_0x26d252(0x12b)][_0x26d252(0x16a)]['forEach']((_0xec70e2,_0x295ed9)=>{const _0x36679e=_0x26d252;_0x1d689c?_0xee8362[_0x36679e(0x134)](helper['modifyBrowserStackW3CCaps'](_0x522385['config'],_0x429251[_0x36679e(0x133)],_0x295ed9)):_0xee8362[_0x36679e(0x134)](helper['modifyBrowserStackCaps'](_0x522385['config'],_0x429251['BuyWk'],_0x295ed9));});let _0x4494ab,_0x2f8e01;const _0x576d2c=[];if(_0x429251['ncsle'](_0xee8362[_0x26d252(0x106)],0x0))_0xee8362[_0x26d252(0x139)]((_0x375e18,_0x2951bf)=>{const _0x4e5a07=_0x26d252,_0x498c34={};_0x498c34[_0x4e5a07(0xfd)]=_0x2951bf,_0x4494ab={'server':helper['getHubUrl'](_0x522385[_0x4e5a07(0x12b)]),'proxySettings':_0x522385[_0x4e5a07(0x12b)]['proxySettings'],'platform':helper[_0x4e5a07(0x147)](_0x375e18),'platformCaps':Object[_0x4e5a07(0x10d)](_0x498c34,_0x522385[_0x4e5a07(0x12b)]['platforms'][_0x2951bf])};const _0x2c346c={'capability':_0x375e18,..._0x4494ab};_0x2c346c['file']=_0xf2ef12,_0x2c346c[_0x4e5a07(0x144)]=_0x4ec436;const _0x51d19b={};_0x51d19b[_0x4e5a07(0x117)]=_0x2c346c,_0x2f8e01=_0x51d19b,_0x576d2c['push'](_0x2f8e01);});else{let _0x154c7d;_0x1d689c?_0x154c7d=helper[_0x26d252(0x157)](_0x522385[_0x26d252(0x12b)],_0x429251[_0x26d252(0x133)],0x0):_0x154c7d=helper[_0x26d252(0x15a)](_0x522385[_0x26d252(0x12b)],_0x429251[_0x26d252(0x133)],0x0);_0x4494ab={'server':helper[_0x26d252(0x12c)](_0x522385[_0x26d252(0x12b)]),'proxySettings':_0x522385[_0x26d252(0x12b)][_0x26d252(0x11f)]};const _0x18b5c0={'capability':_0x154c7d,..._0x4494ab};_0x18b5c0[_0x26d252(0xfb)]=_0xf2ef12,_0x18b5c0['args']=_0x4ec436;const _0x556015={};_0x556015['configuration']=_0x18b5c0,_0x2f8e01=_0x556015,_0x576d2c[_0x26d252(0x134)](_0x2f8e01);}!helper[_0x26d252(0x10e)](_0x522385['config'][_0x26d252(0x12d)])&&(process[_0x26d252(0x14b)][_0x26d252(0x12f)]=JSON[_0x26d252(0x137)](_0x522385[_0x26d252(0x12b)]['accessibilityOptions']));let _0x29f826=_0x522385[_0x26d252(0x12b)][_0x26d252(0x10f)];_0x29f826=_0x29f826||accessibilityHelper[_0x26d252(0x15d)](_0x522385['config']);_0x429251[_0x26d252(0x13a)](_0x29f826,!_0x1d689c)&&(logger[_0x26d252(0x151)](_0x429251[_0x26d252(0x11c)]),_0x29f826=![]);process[_0x26d252(0x14b)][_0x26d252(0xf4)]=_0x29f826;if(_0x29f826){const _0xb511c2=helper[_0x26d252(0x114)]();(_0x522385[_0x26d252(0x12b)][_0x26d252(0x16a)]||[])[_0x26d252(0x139)](_0x51bc2c=>{const _0x18711d=_0x26d252;if(!_0x51bc2c||_0x51bc2c[_0x18711d(0x167)])return;const _0x14a809=_0x51bc2c[_0x18711d(0x142)];if(!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x14a809)){logger[_0x18711d(0x151)](_0x429251[_0x18711d(0x159)]);return;}const _0x580099=_0x51bc2c['browserVersion']||_0x51bc2c[_0x18711d(0x11a)];if(helper[_0x18711d(0x10e)](_0x580099)||!Number[_0x18711d(0x15c)](_0x429251['wqJBv'](parseFloat,_0x429251[_0x18711d(0x136)](String,_0x580099))))return;const _0x2b8881=accessibilityHelper[_0x18711d(0x158)](_0x14a809,_0xb511c2),_0xbfc191=_0x429251[_0x18711d(0x138)](parseFloat,_0x2b8881),_0xb2aba5=_0x429251['wqJBv'](parseFloat,_0x429251[_0x18711d(0xff)](String,_0x580099)),_0x5766c0=Number[_0x18711d(0x15c)](_0xbfc191)?_0x429251[_0x18711d(0x123)](_0xb2aba5,_0xbfc191):accessibilityHelper[_0x18711d(0x13c)](_0x580099,_0x2b8881);if(!_0x5766c0){const _0x741c6f=accessibilityHelper[_0x18711d(0x149)](_0x14a809),_0x417283=_0xb511c2?'':_0x429251['Bmwsi'];logger[_0x18711d(0x151)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x741c6f+'\x20browser\x20version\x20greater\x20than\x20'+_0x2b8881+'\x20'+_0x417283+'.');}});}logger[_0x26d252(0x165)](_0x26d252(0x145)+_0x29f826);const _0x2dfb7a=BrowserstackCLI['getInstance']();CLIUtils[_0x26d252(0xf5)](FRAMEWORKS[_0x26d252(0x162)],FRAMEWORKS[_0x26d252(0x162)]);const {getProductMap:_0x50b9a3}=_0x429251[_0x26d252(0x169)](require,_0x429251['sqlJr']);process[_0x26d252(0x14b)][_0x26d252(0x104)]=JSON[_0x26d252(0x137)](_0x429251['jDUcd'](_0x50b9a3,_0x522385[_0x26d252(0x12b)])),_0x2dfb7a[_0x26d252(0x153)](_0x522385['config'],_0x522385['configPath'],_0x522385[_0x26d252(0x14e)]);if(_0x2dfb7a[_0x26d252(0x105)]()){logger['info'](_0x429251[_0x26d252(0x155)]);try{await _0x2dfb7a[_0x26d252(0xf2)](),logger[_0x26d252(0x165)](_0x429251[_0x26d252(0x148)]);try{const _0x5887f5=global[_0x26d252(0x13f)]||{},_0x79c4a7=_0x5887f5[_0x429251[_0x26d252(0x125)]];if(_0x79c4a7){const _0x6a5243=JSON['parse'](process[_0x26d252(0x14b)][_0x26d252(0x12f)]||'{}');_0x6a5243[_0x26d252(0x163)]=_0x79c4a7,process[_0x26d252(0x14b)][_0x26d252(0x12f)]=JSON[_0x26d252(0x137)](_0x6a5243),logger[_0x26d252(0x165)]('[TRACE:node-generic]\x20Accessibility\x20config\x20enriched\x20with\x20binary\x20scannerVersion='+_0x79c4a7);}}catch(_0x31900a){logger[_0x26d252(0x150)]('[TRACE:node-generic]\x20Error\x20enriching\x20accessibility\x20config:\x20'+_0x31900a[_0x26d252(0x12a)]);}const _0x52478e=_0x429251[_0x26d252(0x135)](_0x522385[_0x26d252(0x12b)][_0x26d252(0x16a)][_0x26d252(0x106)]||0x1,_0x522385['config'][_0x26d252(0x11d)]||0x1);PerformanceTester[_0x26d252(0x110)](PerformanceEvents['SDK_SETUP']),await _0x429251[_0x26d252(0x120)](parallelVanillaRun,_0x576d2c,_0x52478e),logger[_0x26d252(0x165)](_0x429251[_0x26d252(0x131)]),await _0x2dfb7a[_0x26d252(0x13b)]();}catch(_0x4ff98f){logger[_0x26d252(0x168)](_0x26d252(0x11b)+_0x4ff98f[_0x26d252(0x12a)]);try{await _0x2dfb7a[_0x26d252(0x13b)]();}catch(_0xd64c1){logger[_0x26d252(0x150)](_0x26d252(0x11e)+_0xd64c1[_0x26d252(0x12a)]);}}finally{PerformanceTester['start'](PerformanceEvents[_0x26d252(0x128)]),await utilities['finalExecution'](_0x522385);}}else{logger[_0x26d252(0x165)](_0x429251['PCepk']);const _0x2e6012=await TestHubHandler[_0x26d252(0x16d)](_0x429251['BuyWk'],_0x522385),_0x318c9b=_0x429251[_0x26d252(0xfe)](_0x522385[_0x26d252(0x12b)][_0x26d252(0x16a)][_0x26d252(0x106)]||0x1,_0x522385[_0x26d252(0x12b)][_0x26d252(0x11d)]||0x1);PerformanceTester[_0x26d252(0x110)](PerformanceEvents[_0x26d252(0x140)]),_0x429251[_0x26d252(0xf7)](parallelVanillaRun,_0x576d2c,_0x318c9b)[_0x26d252(0x108)](_0x5501f0=>{})[_0x26d252(0x101)](async()=>{const _0xfcf022=_0x26d252;PerformanceTester['start'](PerformanceEvents['SDK_CLEANUP']),await utilities[_0xfcf022(0x10a)](_0x522385);});}process['on'](_0x429251[_0x26d252(0x154)],async()=>{const _0x76e260=_0x26d252;try{(_0x2dfb7a[_0x76e260(0x156)]||_0x2dfb7a[_0x76e260(0x16b)])&&(logger['info'](_0x429251['xCOYv']),await _0x2dfb7a[_0x76e260(0x13b)]());}catch(_0x1b2eda){}});}module['exports']=run;
|
package/src/browserStackSdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122_0x5cc190=a122_0x3e8a;function a122_0x2da4(){const _0xf9e114=['9790970zyGhCC','browserVersion','os_version','475197OgSfyQ','Nxbdf','./helpers/metadata','5VEjkVj','device','exports','268555jlcqlv','ObZWA','uWCIh','9336KKRiAp','1112247OizsTE','browserName','customVariables','30XZQXMf','browser','csULG','29268ALrZCb','getCurrentPlatform','4255144NeAzzP','svbhY','platform','jQsfv','platformVersion','osTcH','UvStN','72kOJTOr','CnAOt','NLZrA','__platformCaps','setTestMetadata','platform_version','ecKpR','XFdVf','browser_version','osVersion','VIjdN'];a122_0x2da4=function(){return _0xf9e114;};return a122_0x2da4();}(function(_0x21777c,_0x4c06d6){const _0x2df436=a122_0x3e8a,_0x38b120=_0x21777c();while(!![]){try{const _0x1b5021=-parseInt(_0x2df436(0xf8))/0x1+-parseInt(_0x2df436(0x101))/0x2*(-parseInt(_0x2df436(0x111))/0x3)+-parseInt(_0x2df436(0x108))/0x4*(-parseInt(_0x2df436(0xfb))/0x5)+parseInt(_0x2df436(0x105))/0x6*(parseInt(_0x2df436(0xfe))/0x7)+-parseInt(_0x2df436(0x10a))/0x8+parseInt(_0x2df436(0x102))/0x9+parseInt(_0x2df436(0xf5))/0xa;if(_0x1b5021===_0x4c06d6)break;else _0x38b120['push'](_0x38b120['shift']());}catch(_0x3a4114){_0x38b120['push'](_0x38b120['shift']());}}}(a122_0x2da4,0x634ec));function a122_0x3e8a(_0x4e9a88,_0x332da9){const _0x2da477=a122_0x2da4();return a122_0x3e8a=function(_0x3e8aa0,_0x487191){_0x3e8aa0=_0x3e8aa0-0xf1;let _0x36290d=_0x2da477[_0x3e8aa0];return _0x36290d;},a122_0x3e8a(_0x4e9a88,_0x332da9);}const TestMetadata=require(a122_0x5cc190(0xfa));class BrowserStackSdk{static[a122_0x5cc190(0x109)](){const _0x2d3fb9=a122_0x5cc190,_0x293b65={};_0x293b65[_0x2d3fb9(0xff)]=_0x2d3fb9(0xf7),_0x293b65[_0x2d3fb9(0x10b)]=_0x2d3fb9(0xf3),_0x293b65['jQsfv']=_0x2d3fb9(0x106),_0x293b65['csULG']=_0x2d3fb9(0x103),_0x293b65[_0x2d3fb9(0x113)]=_0x2d3fb9(0xf2),_0x293b65['Nxbdf']=_0x2d3fb9(0xf6),_0x293b65[_0x2d3fb9(0xf4)]=_0x2d3fb9(0xfc),_0x293b65[_0x2d3fb9(0x100)]='deviceName',_0x293b65[_0x2d3fb9(0x110)]=_0x2d3fb9(0x10c),_0x293b65[_0x2d3fb9(0x10f)]='platformName',_0x293b65['XFdVf']=_0x2d3fb9(0x116),_0x293b65[_0x2d3fb9(0x112)]=_0x2d3fb9(0x10e),_0x293b65[_0x2d3fb9(0x117)]=_0x2d3fb9(0x104);const _0x3e3c57=_0x293b65,_0xf1fed6={};if(global[_0x2d3fb9(0x114)]){const _0x4efb70=global[_0x2d3fb9(0x114)],_0x267f44=_0x4efb70[_0x3e3c57[_0x2d3fb9(0xff)]]||_0x4efb70[_0x3e3c57[_0x2d3fb9(0x10b)]],_0x1c6d83=_0x4efb70[_0x3e3c57[_0x2d3fb9(0x10d)]]||_0x4efb70[_0x3e3c57[_0x2d3fb9(0x107)]],_0x5c0a42=_0x4efb70[_0x3e3c57[_0x2d3fb9(0x113)]]||_0x4efb70[_0x3e3c57[_0x2d3fb9(0xf9)]],_0x1a4afd=_0x4efb70[_0x3e3c57[_0x2d3fb9(0xf4)]]||_0x4efb70[_0x3e3c57[_0x2d3fb9(0x100)]],_0x1c1f1e=_0x4efb70[_0x3e3c57[_0x2d3fb9(0x110)]]||_0x4efb70[_0x3e3c57['osTcH']],_0x3d8307=_0x4efb70[_0x3e3c57[_0x2d3fb9(0xf1)]]||_0x4efb70[_0x3e3c57['CnAOt']];_0x4efb70['os']&&(_0xf1fed6['os']=_0x4efb70['os']),_0x267f44&&(_0xf1fed6[_0x3e3c57[_0x2d3fb9(0x10b)]]=_0x267f44),_0x1c6d83&&(_0xf1fed6[_0x3e3c57['csULG']]=_0x1c6d83),_0x5c0a42&&(_0xf1fed6[_0x3e3c57['Nxbdf']]=_0x5c0a42),_0x1a4afd&&(_0xf1fed6[_0x3e3c57[_0x2d3fb9(0x100)]]=_0x1a4afd),_0x1c1f1e&&(_0xf1fed6[_0x3e3c57[_0x2d3fb9(0x10f)]]=_0x1c1f1e),_0x3d8307&&(_0xf1fed6[_0x3e3c57[_0x2d3fb9(0x112)]]=_0x3d8307),_0x4efb70[_0x3e3c57[_0x2d3fb9(0x117)]]&&(_0xf1fed6[_0x3e3c57[_0x2d3fb9(0x117)]]=_0x4efb70[_0x3e3c57['ecKpR']]);}return _0xf1fed6;}static[a122_0x5cc190(0x115)](_0x3f5dc6={}){TestMetadata['set'](_0x3f5dc6);}}module[a122_0x5cc190(0xfd)]=BrowserStackSdk;
|