browserstack-node-sdk 1.65.0 → 1.65.1
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 -0
- 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
|
-
|
|
1
|
+
const a116_0x226391=a116_0x257d;(function(_0x4c44fc,_0x3e79cb){const _0x37ace7=a116_0x257d,_0x20ed4b=_0x4c44fc();while(!![]){try{const _0x57e241=-parseInt(_0x37ace7(0x1e1))/0x1*(parseInt(_0x37ace7(0x1f1))/0x2)+parseInt(_0x37ace7(0x1e6))/0x3*(-parseInt(_0x37ace7(0x1e4))/0x4)+-parseInt(_0x37ace7(0x1ea))/0x5+parseInt(_0x37ace7(0x1ef))/0x6+-parseInt(_0x37ace7(0x1e7))/0x7*(parseInt(_0x37ace7(0x1ee))/0x8)+-parseInt(_0x37ace7(0x1ec))/0x9+parseInt(_0x37ace7(0x1e0))/0xa;if(_0x57e241===_0x3e79cb)break;else _0x20ed4b['push'](_0x20ed4b['shift']());}catch(_0x2af518){_0x20ed4b['push'](_0x20ed4b['shift']());}}}(a116_0x2f63,0x411db));const a116_0x1a96b3={};a116_0x1a96b3[a116_0x226391(0x1e8)]=0x0,a116_0x1a96b3[a116_0x226391(0x1e9)]=function(){const _0x578970=a116_0x226391,_0x5ef54c={};_0x5ef54c[_0x578970(0x1e3)]='HookState.NONE';const _0xebad93=_0x5ef54c;return _0xebad93[_0x578970(0x1e3)];};const a116_0xc4104b={};function a116_0x257d(_0x1e0ae4,_0x3c4c10){const _0x2f6339=a116_0x2f63();return a116_0x257d=function(_0x257d4b,_0x1caa9d){_0x257d4b=_0x257d4b-0x1e0;let _0x2df892=_0x2f6339[_0x257d4b];return _0x2df892;},a116_0x257d(_0x1e0ae4,_0x3c4c10);}a116_0xc4104b['value']=0x1,a116_0xc4104b[a116_0x226391(0x1e9)]=function(){const _0x4463e0=a116_0x226391,_0x20563e={};_0x20563e[_0x4463e0(0x1ed)]=_0x4463e0(0x1e5);const _0x5d42e2=_0x20563e;return _0x5d42e2[_0x4463e0(0x1ed)];};const a116_0xc56c0={};a116_0xc56c0['value']=0x2,a116_0xc56c0[a116_0x226391(0x1e9)]=function(){const _0x82e12e=a116_0x226391,_0x163738={};_0x163738[_0x82e12e(0x1e2)]=_0x82e12e(0x1eb);const _0x34a14b=_0x163738;return _0x34a14b[_0x82e12e(0x1e2)];};function a116_0x2f63(){const _0xe763b8=['HookState.PRE','1389957anVHqS','847iaMBHK','value','toString','1435075wGQEYd','HookState.POST','132786iXmOBr','JNGYQ','24616QnFJXI','520224jYiptu','values','194748ClQglv','17069120KKzndI','4yfPkNw','THQAC','WfGGF','4dZdYyC'];a116_0x2f63=function(){return _0xe763b8;};return a116_0x2f63();}const HookState=Object['freeze']({'NONE':a116_0x1a96b3,'PRE':a116_0xc4104b,'POST':a116_0xc56c0,'fromValue'(_0x227233){const _0xb0c175=a116_0x226391;return Object[_0xb0c175(0x1f0)](HookState)['find'](_0x460f2e=>_0x460f2e['value']===_0x227233);}});module['exports']=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0x31bd00=a117_0x5c5d;(function(_0x381024,_0x266e1c){const _0x4f29b1=a117_0x5c5d,_0x352fea=_0x381024();while(!![]){try{const _0x107ba0=-parseInt(_0x4f29b1(0xc0))/0x1+parseInt(_0x4f29b1(0xb3))/0x2+-parseInt(_0x4f29b1(0xb6))/0x3+parseInt(_0x4f29b1(0xc5))/0x4+parseInt(_0x4f29b1(0xc7))/0x5+parseInt(_0x4f29b1(0xb5))/0x6+parseInt(_0x4f29b1(0xb1))/0x7;if(_0x107ba0===_0x266e1c)break;else _0x352fea['push'](_0x352fea['shift']());}catch(_0x454bcd){_0x352fea['push'](_0x352fea['shift']());}}}(a117_0x2bc9,0x29cad));const a117_0x85427f={};a117_0x85427f[a117_0x31bd00(0xbe)]=0x0,a117_0x85427f[a117_0x31bd00(0xb2)]=function(){const _0x2791a4=a117_0x31bd00,_0x531cf2={};_0x531cf2[_0x2791a4(0xb7)]=_0x2791a4(0xbf);const _0x2fed72=_0x531cf2;return _0x2fed72[_0x2791a4(0xb7)];};const a117_0x562852={};a117_0x562852[a117_0x31bd00(0xbe)]=0x1,a117_0x562852[a117_0x31bd00(0xb2)]=function(){const _0x119364=a117_0x31bd00,_0x863807={};_0x863807[_0x119364(0xae)]='TestFrameworkState.BEFORE_ALL';const _0x4a3da4=_0x863807;return _0x4a3da4[_0x119364(0xae)];};const a117_0x85469c={};a117_0x85469c[a117_0x31bd00(0xbe)]=0x2,a117_0x85469c['toString']=function(){const _0x50a88f=a117_0x31bd00,_0x2c96bc={};_0x2c96bc[_0x50a88f(0xbb)]=_0x50a88f(0xcc);const _0x1a1436=_0x2c96bc;return _0x1a1436['YRSvu'];};const a117_0x20778b={};a117_0x20778b[a117_0x31bd00(0xbe)]=0x3,a117_0x20778b[a117_0x31bd00(0xb2)]=function(){const _0x2cf694=a117_0x31bd00,_0x127946={};_0x127946['gkzzw']=_0x2cf694(0xcb);const _0x4bc894=_0x127946;return _0x4bc894['gkzzw'];};function a117_0x2bc9(){const _0x120482=['185272CVlhcT','sSnti','154210ccqSso','nbvHV','rutea','TestFrameworkState.TEST_STEP','TestFrameworkState.SETUP_FIXTURE','TestFrameworkState.LOG','sNfaI','KZCsc','ICrVA','mtsmf','1464547lypEmA','toString','284558GdwfnI','exports','43218MuTcBK','277383jENhDX','loWgI','TestFrameworkState.AFTER_EACH','TestFrameworkState.INIT_TEST','TestFrameworkState.TEST','YRSvu','AfUJr','values','value','TestFrameworkState.NONE','172221wMMPtP','DgOME','TestFrameworkState.AFTER_ALL','freeze','TlixB'];a117_0x2bc9=function(){return _0x120482;};return a117_0x2bc9();}const a117_0x24e5c8={};a117_0x24e5c8[a117_0x31bd00(0xbe)]=0x4,a117_0x24e5c8[a117_0x31bd00(0xb2)]=function(){const _0x1ec72b=a117_0x31bd00,_0x131bca={};_0x131bca[_0x1ec72b(0xb0)]=_0x1ec72b(0xb9);const _0x207d07=_0x131bca;return _0x207d07['mtsmf'];};const a117_0xb1b13e={};a117_0xb1b13e[a117_0x31bd00(0xbe)]=0x5,a117_0xb1b13e[a117_0x31bd00(0xb2)]=function(){const _0xb1dca7=a117_0x31bd00,_0x191d1c={};_0x191d1c[_0xb1dca7(0xaf)]='TestFrameworkState.BEFORE_EACH';const _0xe897b0=_0x191d1c;return _0xe897b0[_0xb1dca7(0xaf)];};const a117_0xaee198={};a117_0xaee198[a117_0x31bd00(0xbe)]=0x6,a117_0xaee198['toString']=function(){const _0x35f073=a117_0x31bd00,_0x2c15dc={};_0x2c15dc[_0x35f073(0xc8)]=_0x35f073(0xb8);const _0x964ed8=_0x2c15dc;return _0x964ed8[_0x35f073(0xc8)];};const a117_0x4c7d23={};a117_0x4c7d23[a117_0x31bd00(0xbe)]=0x7,a117_0x4c7d23['toString']=function(){const _0x2fafe2=a117_0x31bd00,_0x5b95ef={};_0x5b95ef['sSnti']=_0x2fafe2(0xba);const _0x23f605=_0x5b95ef;return _0x23f605[_0x2fafe2(0xc6)];};function a117_0x5c5d(_0x3869d1,_0x26ca73){const _0x2bc908=a117_0x2bc9();return a117_0x5c5d=function(_0x5c5d55,_0x4f50d9){_0x5c5d55=_0x5c5d55-0xae;let _0x412e8d=_0x2bc908[_0x5c5d55];return _0x412e8d;},a117_0x5c5d(_0x3869d1,_0x26ca73);}const a117_0x5399c3={};a117_0x5399c3[a117_0x31bd00(0xbe)]=0x8,a117_0x5399c3[a117_0x31bd00(0xb2)]=function(){const _0x209a15=a117_0x31bd00,_0x3f35bd={};_0x3f35bd[_0x209a15(0xcd)]='TestFrameworkState.STEP';const _0x22d8dd=_0x3f35bd;return _0x22d8dd[_0x209a15(0xcd)];};const a117_0x92762e={};a117_0x92762e[a117_0x31bd00(0xbe)]=0x9,a117_0x92762e[a117_0x31bd00(0xb2)]=function(){const _0x2cffd3=a117_0x31bd00,_0x56b50c={};_0x56b50c[_0x2cffd3(0xc4)]='TestFrameworkState.LOG_REPORT';const _0x8f65b0=_0x56b50c;return _0x8f65b0[_0x2cffd3(0xc4)];};const a117_0x24ae96={};a117_0x24ae96['value']=0xa,a117_0x24ae96[a117_0x31bd00(0xb2)]=function(){const _0x28f1d7=a117_0x31bd00,_0x3dc445={};_0x3dc445[_0x28f1d7(0xbc)]=_0x28f1d7(0xc2);const _0xe83755=_0x3dc445;return _0xe83755[_0x28f1d7(0xbc)];};const a117_0x36c3c2={};a117_0x36c3c2['value']=0xb,a117_0x36c3c2[a117_0x31bd00(0xb2)]=function(){const _0x5053b5=a117_0x31bd00,_0x4537ba={};_0x4537ba[_0x5053b5(0xc9)]='TestFrameworkState.TEST_SCREENSHOT';const _0x55f653=_0x4537ba;return _0x55f653['rutea'];};const a117_0x3af1e9={};a117_0x3af1e9['value']=0xc,a117_0x3af1e9['toString']=function(){const _0x49d927=a117_0x31bd00,_0x46b1e1={};_0x46b1e1[_0x49d927(0xc1)]=_0x49d927(0xca);const _0x1b0c17=_0x46b1e1;return _0x1b0c17[_0x49d927(0xc1)];};const TestFrameworkState=Object[a117_0x31bd00(0xc3)]({'NONE':a117_0x85427f,'BEFORE_ALL':a117_0x562852,'LOG':a117_0x85469c,'SETUP_FIXTURE':a117_0x20778b,'INIT_TEST':a117_0x24e5c8,'BEFORE_EACH':a117_0xb1b13e,'AFTER_EACH':a117_0xaee198,'TEST':a117_0x4c7d23,'STEP':a117_0x5399c3,'LOG_REPORT':a117_0x92762e,'AFTER_ALL':a117_0x24ae96,'TEST_SCREENSHOT':a117_0x36c3c2,'TEST_STEP':a117_0x3af1e9,'fromValue'(_0x2c4fca){const _0x30115d=a117_0x31bd00;return Object[_0x30115d(0xbd)](TestFrameworkState)['find'](_0x338ff7=>_0x338ff7[_0x30115d(0xbe)]===_0x2c4fca);}});module[a117_0x31bd00(0xb4)]=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a117_0x5388(_0x2e61b8,_0x527c0a){const _0x1f715f=a117_0x1f71();return a117_0x5388=function(_0x5388aa,_0x2dc89d){_0x5388aa=_0x5388aa-0x12d;let _0x571460=_0x1f715f[_0x5388aa];return _0x571460;},a117_0x5388(_0x2e61b8,_0x527c0a);}const a117_0x45d44d=a117_0x5388;(function(_0x4ac644,_0x126cce){const _0xbd9774=a117_0x5388,_0x237e33=_0x4ac644();while(!![]){try{const _0x2c4a47=parseInt(_0xbd9774(0x146))/0x1+-parseInt(_0xbd9774(0x131))/0x2*(parseInt(_0xbd9774(0x1b0))/0x3)+parseInt(_0xbd9774(0x154))/0x4*(-parseInt(_0xbd9774(0x181))/0x5)+-parseInt(_0xbd9774(0x1ad))/0x6*(parseInt(_0xbd9774(0x142))/0x7)+-parseInt(_0xbd9774(0x178))/0x8*(parseInt(_0xbd9774(0x168))/0x9)+-parseInt(_0xbd9774(0x189))/0xa+-parseInt(_0xbd9774(0x144))/0xb*(-parseInt(_0xbd9774(0x19f))/0xc);if(_0x2c4a47===_0x126cce)break;else _0x237e33['push'](_0x237e33['shift']());}catch(_0x27e160){_0x237e33['push'](_0x237e33['shift']());}}}(a117_0x1f71,0x1b76f));const os=require('os'),fs=require('fs'),path=require(a117_0x45d44d(0x137)),util=require('util'),BrowserstackCLI=require(a117_0x45d44d(0x192)),https=require('https'),http=require(a117_0x45d44d(0x140)),AutomationFramework=require(a117_0x45d44d(0x13e)),PlaywrightDriverModule=require(a117_0x45d44d(0x16a)),TestInfo=require(a117_0x45d44d(0x169)),TestFrameworkConstants=require(a117_0x45d44d(0x190)),{createClassLogger}=require('../../helpers/classLogger.js');class uploadAttachmentsManager{static [a117_0x45d44d(0x1a2)]=createClassLogger(a117_0x45d44d(0x14c));static[a117_0x45d44d(0x15c)](_0x4d311e,_0x5db606=![]){const _0x2247ae=a117_0x45d44d,_0x8093f6={};_0x8093f6[_0x2247ae(0x132)]=function(_0x1fadf2,_0x2c36bd){return _0x1fadf2/_0x2c36bd;},_0x8093f6[_0x2247ae(0x18a)]=function(_0x62c1eb,_0x4bcccb){return _0x62c1eb*_0x4bcccb;},_0x8093f6['otNmq']=function(_0x35ca6a,_0x50e693){return _0x35ca6a>_0x50e693;},_0x8093f6['SFHhZ']=_0x2247ae(0x1b6),_0x8093f6[_0x2247ae(0x150)]=_0x2247ae(0x130),_0x8093f6['VVMIE']=function(_0x4d4cdc,_0x3e3216){return _0x4d4cdc===_0x3e3216;},_0x8093f6[_0x2247ae(0x15a)]=_0x2247ae(0x12f),_0x8093f6[_0x2247ae(0x1aa)]=_0x2247ae(0x1a5),_0x8093f6[_0x2247ae(0x1b9)]=_0x2247ae(0x194),_0x8093f6['pFakC']=_0x2247ae(0x14a),_0x8093f6[_0x2247ae(0x1b8)]=_0x2247ae(0x1b5),_0x8093f6[_0x2247ae(0x18f)]=_0x2247ae(0x1a8),_0x8093f6[_0x2247ae(0x135)]='Created\x20.browserstack\x20folder\x20at:\x20%s',_0x8093f6['vqVyl']=_0x2247ae(0x13a),_0x8093f6[_0x2247ae(0x1a4)]=function(_0x2b5fe5,_0x373c7a){return _0x2b5fe5===_0x373c7a;},_0x8093f6[_0x2247ae(0x1a3)]=_0x2247ae(0x1ab),_0x8093f6[_0x2247ae(0x1b3)]=_0x2247ae(0x174),_0x8093f6[_0x2247ae(0x14b)]=_0x2247ae(0x145),_0x8093f6[_0x2247ae(0x149)]=_0x2247ae(0x182),_0x8093f6[_0x2247ae(0x17f)]=_0x2247ae(0x141),_0x8093f6[_0x2247ae(0x19d)]=_0x2247ae(0x16f);const _0xebd086=_0x8093f6;this['logger'][_0x2247ae(0x173)](util[_0x2247ae(0x1b1)](_0xebd086[_0x2247ae(0x193)],_0x4d311e));const _0x389673=os[_0x2247ae(0x186)](),_0x4cd568=path['join'](_0x389673,_0xebd086['PbUXk']);!fs[_0x2247ae(0x166)](_0x4cd568)&&(this[_0x2247ae(0x1a2)][_0x2247ae(0x173)](util['format'](_0xebd086[_0x2247ae(0x18f)],_0x4cd568)),fs['mkdirSync'](_0x4cd568),this['logger']['debug'](util[_0x2247ae(0x1b1)](_0xebd086[_0x2247ae(0x135)],_0x4cd568)));const _0x100d2d=BrowserstackCLI['getInstance']()[_0x2247ae(0x148)][_0x2247ae(0x18d)]?.[_0x2247ae(0x134)]?.[_0x2247ae(0x15d)]()?.[_0x2247ae(0x16e)],_0xdac9a1=path[_0x2247ae(0x147)](_0x4cd568,_0x100d2d);!fs[_0x2247ae(0x166)](_0xdac9a1)&&(fs[_0x2247ae(0x187)](_0xdac9a1),this['logger'][_0x2247ae(0x173)](util[_0x2247ae(0x1b1)](_0xebd086[_0x2247ae(0x17e)],_0xdac9a1)));if(_0xebd086[_0x2247ae(0x1a4)](_0x4d311e[_0x2247ae(0x16c)](),'')){this[_0x2247ae(0x1a2)][_0x2247ae(0x173)](util[_0x2247ae(0x1b1)](_0xebd086['ZBuFZ']));return;}if(_0x4d311e[_0x2247ae(0x1b2)](_0xebd086[_0x2247ae(0x1b3)])||_0x4d311e['startsWith'](_0xebd086[_0x2247ae(0x14b)])){const _0x34e7a1=_0x4d311e[_0x2247ae(0x1b2)](_0xebd086[_0x2247ae(0x1b3)])?https:http,_0x5a3c1d=path[_0x2247ae(0x13c)](_0x4d311e),_0x3d0df6=path[_0x2247ae(0x147)](_0xdac9a1,_0x5a3c1d),_0x89e8e6=fs[_0x2247ae(0x13f)](_0x3d0df6);_0x34e7a1[_0x2247ae(0x15e)](_0x4d311e,_0x4e375a=>{const _0x308ac6=_0x2247ae;if(_0xebd086['VVMIE'](_0x4e375a[_0x308ac6(0x199)],0xc8))_0x4e375a['pipe'](_0x89e8e6),_0x89e8e6['on'](_0xebd086[_0x308ac6(0x15a)],()=>{const _0x3e6274=_0x308ac6;_0x89e8e6[_0x3e6274(0x1a6)]();const _0x52592d=fs[_0x3e6274(0x191)](_0x3d0df6),_0x28f89f=_0xebd086['BwgSy'](_0x52592d[_0x3e6274(0x139)],_0xebd086[_0x3e6274(0x18a)](0x400,0x400));if(_0xebd086[_0x3e6274(0x14d)](_0x28f89f,0x64)){this['logger'][_0x3e6274(0x173)](util['format'](_0xebd086[_0x3e6274(0x18c)],_0x28f89f['toFixed'](0x2))),fs[_0x3e6274(0x171)](_0x3d0df6);return;}this[_0x3e6274(0x1a2)][_0x3e6274(0x173)](util[_0x3e6274(0x1b1)](_0xebd086['vFUIs'],_0x3d0df6)),uploadAttachmentsManager[_0x3e6274(0x138)](_0x3d0df6,_0x5db606);});else{this[_0x308ac6(0x1a2)][_0x308ac6(0x173)](util[_0x308ac6(0x1b1)](_0xebd086['lmDyJ'],_0x4e375a[_0x308ac6(0x199)])),_0x89e8e6['close'](),fs['unlinkSync'](_0x3d0df6);return;}})['on'](_0xebd086[_0x2247ae(0x149)],_0x275ff8=>{const _0x318ba7=_0x2247ae;this[_0x318ba7(0x1a2)][_0x318ba7(0x173)](util[_0x318ba7(0x1b1)](_0xebd086[_0x318ba7(0x1b9)],_0x275ff8[_0x318ba7(0x196)])),_0x89e8e6[_0x318ba7(0x1a6)](),fs[_0x318ba7(0x171)](_0x3d0df6);return;});}else{if(!fs[_0x2247ae(0x166)](_0x4d311e)){this['logger'][_0x2247ae(0x173)](util[_0x2247ae(0x1b1)](_0xebd086['ewuXt'],_0x4d311e));return;}const _0x12d376=fs[_0x2247ae(0x191)](_0x4d311e),_0x16fd02=_0xebd086[_0x2247ae(0x132)](_0x12d376[_0x2247ae(0x139)],_0xebd086['OFOGf'](0x400,0x400));if(_0xebd086[_0x2247ae(0x14d)](_0x16fd02,0x64)){this['logger'][_0x2247ae(0x173)](util[_0x2247ae(0x1b1)](_0xebd086[_0x2247ae(0x19d)],_0x16fd02[_0x2247ae(0x1a7)](0x2)));return;}const _0x125204=path[_0x2247ae(0x13c)](_0x4d311e),_0x2676cb=path[_0x2247ae(0x147)](_0xdac9a1,_0x125204);fs[_0x2247ae(0x180)](_0x4d311e,_0x2676cb),uploadAttachmentsManager[_0x2247ae(0x138)](_0x2676cb,_0x5db606);}}static[a117_0x45d44d(0x138)](_0x2446cf,_0x3e4a24){const _0x366e75=a117_0x45d44d,_0x498e89={'jbRwY':function(_0x3e839e,_0x277152){return _0x3e839e(_0x277152);},'NJUPS':_0x366e75(0x192),'dviFn':'./cliUtils','YIGAz':function(_0x3505fd,_0x4653b6){return _0x3505fd===_0x4653b6;},'YVrhN':'jest','eAojZ':function(_0x10da8a,_0x1b5aab){return _0x10da8a===_0x1b5aab;},'PvKrn':_0x366e75(0x151),'TVfwI':_0x366e75(0x14e),'WJtcM':_0x366e75(0x19e),'Vrjbn':_0x366e75(0x175),'jnmaN':_0x366e75(0x161),'xwAox':_0x366e75(0x167),'ibuTq':function(_0x550ecf,_0x34249c){return _0x550ecf(_0x34249c);},'DEjSr':'./state/hookState','ZXuNY':_0x366e75(0x158),'kIJiX':'Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','UvWwW':_0x366e75(0x176)};try{let _0x544a29;const _0x1c4155=global[_0x366e75(0x165)]?.[_0x366e75(0x153)]?.[_0x366e75(0x12e)],_0x3d5884=_0x498e89[_0x366e75(0x136)](require,_0x498e89[_0x366e75(0x155)]),_0xce0dd4=_0x498e89[_0x366e75(0x136)](require,_0x498e89[_0x366e75(0x13b)]),_0x297a64=_0x3d5884[_0x366e75(0x179)]()[_0x366e75(0x143)]()&&_0x498e89[_0x366e75(0x13d)](_0xce0dd4[_0x366e75(0x156)]()?.['name']?.[_0x366e75(0x198)](),_0x498e89[_0x366e75(0x19c)]);if(_0x297a64){_0x544a29=global[_0x366e75(0x1b7)];if(!_0x544a29){const _0x3f1fa3=AutomationFramework[_0x366e75(0x152)]();_0x544a29=AutomationFramework[_0x366e75(0x157)](_0x3f1fa3,PlaywrightDriverModule[_0x366e75(0x133)],'');}this[_0x366e75(0x1a2)]['debug']('trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20'+_0x544a29);}else{if(!_0x1c4155){const _0x5c9660=AutomationFramework['getTrackedInstance']();_0x544a29=AutomationFramework[_0x366e75(0x157)](_0x5c9660,PlaywrightDriverModule[_0x366e75(0x133)],'');}else _0x544a29=TestInfo[_0x366e75(0x14f)](_0x1c4155,_0x1c4155[_0x366e75(0x172)]);this[_0x366e75(0x1a2)][_0x366e75(0x173)](_0x366e75(0x17c)+_0x544a29);}if(!_0x544a29)try{const _0x40ab6c=_0x3d5884[_0x366e75(0x179)](),_0x3ff3d2=_0x40ab6c&&_0x40ab6c[_0x366e75(0x16b)]();_0x544a29=_0x3ff3d2&&_0x498e89[_0x366e75(0x197)](typeof _0x3ff3d2[_0x366e75(0x185)],_0x498e89['PvKrn'])&&_0x3ff3d2[_0x366e75(0x185)]()||_0x544a29;}catch(_0x329183){this[_0x366e75(0x1a2)]['debug']('trackFile:\x20node-generic\x20testId\x20fallback\x20failed:\x20'+(_0x329183&&_0x329183[_0x366e75(0x196)]));}if(!_0x544a29){this['logger'][_0x366e75(0x173)](_0x498e89[_0x366e75(0x16d)]);return;}const _0x5114cd={[TestFrameworkConstants[_0x366e75(0x170)]]:fs[_0x366e75(0x191)](_0x2446cf)[_0x366e75(0x139)],[TestFrameworkConstants[_0x366e75(0x164)]]:path[_0x366e75(0x13c)](_0x2446cf),[TestFrameworkConstants[_0x366e75(0x1b4)]]:_0x2446cf,[TestFrameworkConstants[_0x366e75(0x18b)]]:_0x3e4a24?_0x498e89[_0x366e75(0x17a)]:_0x498e89['Vrjbn']};if(_0x297a64){const _0x456c14=_0x3d5884[_0x366e75(0x179)]()[_0x366e75(0x16b)]();if(!_0x456c14){this['logger'][_0x366e75(0x173)](_0x498e89[_0x366e75(0x195)]);return;}const _0x526d46=_0x498e89['jbRwY'](require,_0x498e89['xwAox']),_0xb3ae13=_0x498e89[_0x366e75(0x1af)](require,_0x498e89[_0x366e75(0x160)]),_0x45548e=_0x456c14[_0x366e75(0x188)](_0x526d46[_0x366e75(0x1ae)],_0xb3ae13[_0x366e75(0x15f)]);if(!_0x45548e){this[_0x366e75(0x1a2)][_0x366e75(0x173)](_0x498e89['ZXuNY']);return;}const _0x496a22=_0x45548e[_0x366e75(0x184)]()[_0x366e75(0x15e)](_0x544a29)||{},_0x117447=_0x496a22[TestFrameworkConstants[_0x366e75(0x12d)]]||{},_0x5ec267={..._0x117447};_0x5ec267[_0x2446cf]=_0x5114cd;const _0x46f7c8=_0x5ec267,_0x47659c={[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]:_0x46f7c8},_0x3df657={};_0x3df657[_0x544a29]=_0x47659c,_0x45548e[_0x366e75(0x19a)](_0x3df657),this[_0x366e75(0x1a2)][_0x366e75(0x173)](_0x366e75(0x163)+_0x544a29+_0x366e75(0x1a9)+_0x2446cf);}else{const _0x2a9f60=TestInfo[_0x366e75(0x17b)](_0x544a29),_0x3ab1f7=_0x2a9f60[TestFrameworkConstants[_0x366e75(0x12d)]]||{};_0x3ab1f7[_0x2446cf]=_0x5114cd,_0x2a9f60[TestFrameworkConstants[_0x366e75(0x12d)]]=_0x3ab1f7,TestInfo[_0x366e75(0x1ba)](_0x544a29,_0x2a9f60),this[_0x366e75(0x1a2)][_0x366e75(0x173)](_0x366e75(0x177)+_0x544a29+_0x366e75(0x1a9)+_0x2446cf);}this[_0x366e75(0x1a2)]['debug'](util[_0x366e75(0x1b1)](_0x498e89[_0x366e75(0x19b)],_0x2446cf));}catch(_0x40da22){this[_0x366e75(0x1a2)][_0x366e75(0x173)](util[_0x366e75(0x1b1)](_0x498e89[_0x366e75(0x15b)],_0x40da22[_0x366e75(0x196)]));}}static[a117_0x45d44d(0x1ac)](){const _0x365385=a117_0x45d44d,_0x5e848f={};_0x5e848f[_0x365385(0x1a1)]='.browserstack',_0x5e848f[_0x365385(0x18e)]='No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s',_0x5e848f[_0x365385(0x183)]='Cleared\x20attachment\x20folder';const _0x1dabce=_0x5e848f,_0x523d88=os[_0x365385(0x186)](),_0x4863f4=path['join'](_0x523d88,_0x1dabce[_0x365385(0x1a1)]);if(!fs[_0x365385(0x166)](_0x4863f4))return;const _0x40321c=BrowserstackCLI[_0x365385(0x179)]()[_0x365385(0x148)][_0x365385(0x18d)]?.[_0x365385(0x134)]?.[_0x365385(0x15d)]()?.[_0x365385(0x16e)],_0x4912a6=_0x40321c?path[_0x365385(0x147)](_0x4863f4,_0x40321c):null;if(!_0x4912a6||!fs[_0x365385(0x166)](_0x4912a6)){this[_0x365385(0x1a2)]['debug'](util[_0x365385(0x1b1)](_0x1dabce[_0x365385(0x18e)],_0x40321c));return;}const _0x4ba2e5={};_0x4ba2e5[_0x365385(0x17d)]=!![],_0x4ba2e5[_0x365385(0x159)]=!![],fs[_0x365385(0x1a0)](_0x4912a6,_0x4ba2e5),this[_0x365385(0x1a2)][_0x365385(0x173)](util['format'](_0x1dabce[_0x365385(0x183)]));}}module[a117_0x45d44d(0x162)]=uploadAttachmentsManager;function a117_0x1f71(){const _0x164c11=['Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','clearAttachments','12hsbdUt','TEST','ibuTq','37869zyDZHH','format','startsWith','EBpMX','KEY_FILE_PATH','.browserstack','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','__jestCurrentTestIdentifier','PbUXk','KONzQ','setTestDetails','KEY_TEST_ATTACHMENTS','testInfo','finish','File\x20downloaded\x20to:\x20%s','6GiREfO','BwgSy','KEY_TEST_ID','testhubConfig','DZkRE','jbRwY','path','trackFile','size','Created\x20folder:\x20%s','dviFn','basename','YIGAz','./framework/automationFramework','createWriteStream','http','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','215159CnOuah','isRunning','6148219oWKACz','http://','58644nGifpW','join','modules','XGnxy','Attachment\x20recevied\x20for\x20path:\x20%s','fhTJG','uploadAttachmentsManager','otNmq','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','getTestIdentifierFromTestInfo','vFUIs','function','getTrackedInstance','currentTest','32Ldcejx','NJUPS','getTestFrameworkDetail','getState','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','force','jcmkp','UvWwW','uploadAttachments','toObject','get','POST','DEjSr','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','exports','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','KEY_FILE_NAME','__workerDetails','existsSync','./state/testFrameworkState','234XozOuz','./TestInfo','./modules/playwrightDriverModule','getTestFramework','trim','TVfwI','buildHashedId','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','KEY_FILE_SIZE','unlinkSync','retry','debug','https://','TestLevel','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','48536WDDrZF','getInstance','WJtcM','getTestDetails','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','recursive','vqVyl','ewuXt','copyFileSync','63760VHICjM','error','dlOTf','getAllData','getCurrentTestUUID','homedir','mkdirSync','resolveInstance','1459770kQnMOy','OFOGf','KEY_FILE_LEVEL','SFHhZ','TestHubModule','nNTqU','QXzAz','./framework/constants/testFrameworkConstants','statSync','./browserstackCLI','pFakC','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','jnmaN','message','eAojZ','toLowerCase','statusCode','addMultipleEntries','kIJiX','YVrhN','FPMCw','BuildLevel','12OsoJew','rmSync','ojXzw','logger','ZBuFZ','EBCpV','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','close','toFixed','.browserstack\x20folder\x20not\x20found\x20at:\x20%s',',\x20filepath:\x20','lmDyJ'];a117_0x1f71=function(){return _0x164c11;};return a117_0x1f71();}
|
|
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 +1 @@
|
|
|
1
|
-
const a118_0x3b76a8=a118_0x3044;(function(_0x17a691,_0x1e91ba){const _0xcf90c2=a118_0x3044,_0x7eb4fc=_0x17a691();while(!![]){try{const _0xf6532a=parseInt(_0xcf90c2(0x1ea))/0x1*(parseInt(_0xcf90c2(0x1e5))/0x2)+-parseInt(_0xcf90c2(0x1e4))/0x3+-parseInt(_0xcf90c2(0x1b3))/0x4+-parseInt(_0xcf90c2(0x1af))/0x5+parseInt(_0xcf90c2(0x18a))/0x6+-parseInt(_0xcf90c2(0x1de))/0x7+parseInt(_0xcf90c2(0x1c7))/0x8;if(_0xf6532a===_0x1e91ba)break;else _0x7eb4fc['push'](_0x7eb4fc['shift']());}catch(_0x245449){_0x7eb4fc['push'](_0x7eb4fc['shift']());}}}(a118_0x370b,0xb304b));const path=require(a118_0x3b76a8(0x1e6)),util=require(a118_0x3b76a8(0x1a6)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a118_0x3b76a8(0x192)),logger=require(a118_0x3b76a8(0x180))[a118_0x3b76a8(0x176)],{o11yClassErrorHandler}=require(a118_0x3b76a8(0x1d9)),TestInfo=require(a118_0x3b76a8(0x194)),hooksMap={};class CucumberUtils{constructor(){const _0x11f3da=a118_0x3b76a8;this[_0x11f3da(0x197)]=![],this[_0x11f3da(0x1ba)]=null;}async['createTestFrameworkData'](_0x46c281,_0x23d368,_0x370236,_0x9371d4,_0x40c7fe,_0x29fbb4){const _0x33eb02=a118_0x3b76a8,_0x3d80e3={'RLiWZ':function(_0x3deb3e,_0x11e4ae){return _0x3deb3e===_0x11e4ae;},'dFqsP':_0x33eb02(0x181),'SzFiI':_0x33eb02(0x1be),'ehlFT':'SKIPPED','zkVQv':_0x33eb02(0x184),'oFqPY':function(_0x9fafdd,_0x7c8103){return _0x9fafdd||_0x7c8103;},'gUoza':function(_0x317f76,_0x47d156){return _0x317f76+_0x47d156;},'pBByV':_0x33eb02(0x1ae),'jPwix':_0x33eb02(0x1a9),'gicZO':_0x33eb02(0x1bb),'TJaKG':'pending','wuUyJ':'passed','QFRIu':function(_0x5db96a,_0x59c8e0){return _0x5db96a!==_0x59c8e0;},'tWzMw':function(_0x364ef0,_0x541f4f){return _0x364ef0/_0x541f4f;},'LniXH':_0x33eb02(0x1c1),'eTdLs':function(_0x4827dc,_0x5ea32b){return _0x4827dc(_0x5ea32b);},'qerGc':_0x33eb02(0x172),'UcmsF':_0x33eb02(0x1d6),'vfOHL':_0x33eb02(0x1cb)},{feature:_0x5d8efc,scenario:_0x15363f,steps:_0x4ab2ef,uuid:_0x1428cc,startedAt:_0x43b962,finishedAt:_0x188fa8}=_0x3d80e3[_0x33eb02(0x1dd)](_0x46c281,{}),_0x370d2e=this['getScenarioExamples'](_0x9371d4,_0x23d368);await this[_0x33eb02(0x1db)]();const _0x484f71=_0x370d2e?_0x3d80e3['gUoza'](_0x3d80e3['gUoza'](_0x3d80e3['gUoza'](_0x23d368[_0x33eb02(0x1ad)],'\x20('),_0x370d2e[_0x33eb02(0x19e)](',\x20')),')'):_0x23d368[_0x33eb02(0x1ad)],_0x378427={'id':_0x40c7fe,'uuid':_0x40c7fe,'startedAt':_0x43b962,'finishedAt':_0x188fa8,'type':_0x3d80e3[_0x33eb02(0x1b4)],'body':{'lang':_0x3d80e3['jPwix'],'code':null},'name':_0x484f71,'scopes':[_0x5d8efc&&_0x5d8efc[_0x33eb02(0x1ad)]?_0x5d8efc[_0x33eb02(0x1ad)]:''],'tags':_0x23d368[_0x33eb02(0x198)]?_0x23d368[_0x33eb02(0x198)][_0x33eb02(0x188)](({name:_0x17e19b})=>_0x17e19b):[],'file_name':_0x23d368[_0x33eb02(0x17a)],'location':_0x23d368[_0x33eb02(0x17a)],'vc_filepath':this[_0x33eb02(0x1ba)]&&_0x23d368[_0x33eb02(0x17a)]?path[_0x33eb02(0x1f2)](this[_0x33eb02(0x1ba)],_0x23d368[_0x33eb02(0x17a)]):null,'framework':_0x3d80e3['gicZO'],'result':_0x3d80e3[_0x33eb02(0x17c)],'meta':{'feature':_0x5d8efc,'scenario':_0x15363f,'steps':_0x4ab2ef,'examples':_0x370d2e},'customRerunParam':{'rerun_name':_0x484f71}};if(_0x370236[_0x33eb02(0x19b)]&&_0x4ab2ef){const _0xa4e30d=_0x370236[_0x33eb02(0x19b)];let _0x5d115b=_0x3d80e3[_0x33eb02(0x1e1)];_0x4ab2ef['every'](_0x2450ab=>{const _0x42abfd=_0x33eb02;if(_0x3d80e3['RLiWZ'](_0x2450ab['result'],_0x3d80e3[_0x42abfd(0x173)]))return _0x5d115b=_0x3d80e3[_0x42abfd(0x1b7)],_0xa4e30d[_0x42abfd(0x1f5)]=_0x2450ab[_0x42abfd(0x1f5)],_0xa4e30d['failureType']=_0x2450ab[_0x42abfd(0x1b6)],![];else{if(_0x3d80e3[_0x42abfd(0x1ab)](_0x2450ab['result'],_0x3d80e3[_0x42abfd(0x1b0)]))return _0x5d115b=_0x3d80e3[_0x42abfd(0x175)],![];}return!![];}),_0x378427[_0x33eb02(0x1a0)]=new Date()[_0x33eb02(0x1c4)](),_0x378427['result']=_0x5d115b;_0xa4e30d[_0x33eb02(0x19f)]&&_0x3d80e3['QFRIu'](_0xa4e30d[_0x33eb02(0x19f)][_0x33eb02(0x19a)],undefined)?_0x378427['duration_in_ms']=_0x3d80e3[_0x33eb02(0x187)](_0xa4e30d[_0x33eb02(0x19f)]['nanos'],0xf4240):_0x378427[_0x33eb02(0x1bf)]=undefined;if(_0x3d80e3[_0x33eb02(0x1ab)](_0x5d115b,_0x3d80e3[_0x33eb02(0x1b7)])){const {default:_0x4abc69}=await import(_0x3d80e3['LniXH']);_0x378427['failure']=[{'backtrace':[_0xa4e30d[_0x33eb02(0x1f5)]?_0x3d80e3[_0x33eb02(0x1b2)](_0x4abc69,_0xa4e30d['failure']):_0x3d80e3[_0x33eb02(0x17f)]]}],_0x378427[_0x33eb02(0x1b5)]=_0xa4e30d[_0x33eb02(0x1f5)]?_0x3d80e3[_0x33eb02(0x1b2)](_0x4abc69,_0xa4e30d[_0x33eb02(0x1f5)]):_0xa4e30d[_0x33eb02(0x1e8)],_0xa4e30d[_0x33eb02(0x1b6)]&&(_0x378427[_0x33eb02(0x1a3)]=_0xa4e30d[_0x33eb02(0x1b6)][_0x33eb02(0x193)](/AssertError/)?_0x3d80e3[_0x33eb02(0x1a4)]:_0x3d80e3[_0x33eb02(0x1dc)]);}}return _0x378427;}[a118_0x3b76a8(0x1cc)](_0x4e8a31,_0x2e71e2,_0x46db50,_0x52d4db,_0x44f356,_0x3b7c96){const _0x23db13=a118_0x3b76a8,_0x25aff4={'XLEyi':function(_0x794e91,_0xd8818){return _0x794e91===_0xd8818;},'GRDXs':'HookRunFinished','yxdUA':function(_0x150ae0,_0x54948c,_0x20b0e2){return _0x150ae0(_0x54948c,_0x20b0e2);},'CVsGH':_0x23db13(0x1d8),'ATKTz':'uri','oifGr':'pending','ssUMN':_0x23db13(0x195),'qpcGq':_0x23db13(0x1a9),'OAEKc':function(_0x33451c,_0x2fcdee,_0xc1ae15){return _0x33451c(_0x2fcdee,_0xc1ae15);},'yTTcJ':_0x23db13(0x190),'wvuXS':_0x23db13(0x1ad),'AOzSI':function(_0x1c04ab,_0x491ffd,_0x2b4b8f){return _0x1c04ab(_0x491ffd,_0x2b4b8f);},'LAFae':_0x23db13(0x1bb)};try{if(_0x25aff4[_0x23db13(0x1c8)](_0x46db50,_0x25aff4['GRDXs'])){const _0x1bbb8b=new Date()[_0x23db13(0x1c4)](),_0x2eed79=hooksMap[_0x2e71e2];if(!_0x2eed79)return;const _0x4f338c=_0x2eed79[_0x23db13(0x18b)](_0x2ff74e=>_0x2ff74e['uuid']===_0x52d4db['id']);if(!_0x4f338c)return;const _0x21f0ad=this[_0x23db13(0x1c5)](_0x4e8a31,_0x2e71e2);_0x4f338c[_0x23db13(0x1d0)]=_0x21f0ad[_0x23db13(0x1ee)],_0x4f338c['finished_at']=_0x1bbb8b,_0x4f338c[_0x23db13(0x1a3)]=_0x21f0ad[_0x23db13(0x1b6)];const _0xc419ef={};return _0xc419ef[_0x23db13(0x1f3)]=_0x21f0ad[_0x23db13(0x1a8)],_0x4f338c['failure_data']=[_0xc419ef],_0x4f338c;}const _0x347e60=TestInfo[_0x23db13(0x177)](_0x2e71e2),_0x5a5f5e=_0x4e8a31[_0x23db13(0x1e0)][_0x23db13(0x18b)](_0x105c2b=>_0x105c2b['id']===_0x52d4db[_0x23db13(0x1da)]),_0x1fa0ca=_0x25aff4['yxdUA'](nestedKeyValue,_0x5a5f5e,[_0x25aff4[_0x23db13(0x1ca)],_0x25aff4['ATKTz']]),_0x12add5=new Date()['toISOString'](),_0x3eda02=_0x25aff4['oifGr'],_0x32c1ec=_0x5a5f5e[_0x23db13(0x1c9)]?_0x5a5f5e['tagExpression'][_0x23db13(0x189)]('\x20')[_0x23db13(0x1c0)](_0x3d6265=>_0x3d6265['includes']('@')):[],_0x2df291={'uuid':_0x52d4db['id'],'type':_0x25aff4[_0x23db13(0x1b8)],'hook_type':_0x3b7c96,'name':_0x5a5f5e[_0x23db13(0x1ad)],'body':{'lang':_0x25aff4[_0x23db13(0x1cd)],'code':null},'tags':_0x32c1ec,'test_run_id':_0x347e60,'scope':_0x25aff4['OAEKc'](nestedKeyValue,_0x44f356,[_0x25aff4['yTTcJ'],_0x25aff4[_0x23db13(0x1f0)]]),'scopes':[_0x25aff4[_0x23db13(0x1c6)](nestedKeyValue,_0x44f356,[_0x25aff4['yTTcJ'],_0x25aff4[_0x23db13(0x1f0)]])||''],'file_name':_0x1fa0ca,'location':_0x1fa0ca,'vc_filepath':this[_0x23db13(0x1ba)]?path[_0x23db13(0x1f2)](this[_0x23db13(0x1ba)],_0x1fa0ca):null,'result':_0x3eda02,'started_at':_0x12add5,'framework':_0x25aff4[_0x23db13(0x18e)]};return _0x2df291;}catch(_0x5ab5a8){logger[_0x23db13(0x1a5)](_0x23db13(0x1e9)+util[_0x23db13(0x1df)](_0x5ab5a8)+'\x20');}}async['createHookData'](_0x405c27,_0x1f0230,_0x4b8136,_0x176af4,_0x52a602,_0x27a1d4){const _0x58c41f=a118_0x3b76a8,_0x3ab74e={'rEMKV':function(_0x9fb26b,_0x3c2d30){return _0x9fb26b===_0x3c2d30;},'HUJEB':'HookRunStarted','mLcbB':function(_0x468c7c,_0x5af164,_0x19a20d){return _0x468c7c(_0x5af164,_0x19a20d);},'ppPrZ':_0x58c41f(0x1d8),'eUyRl':_0x58c41f(0x17a),'GyibE':_0x58c41f(0x1c2),'ZYAMy':_0x58c41f(0x17e)};try{const _0x4e5017=_0x176af4[_0x58c41f(0x18b)](_0x5e8808=>_0x5e8808['id']===_0x52a602);if(!_0x4e5017['hookId'])return;const _0x3851c1=this['getCucumberHookType'](_0x176af4,_0x4e5017),_0x5eb3c0=this[_0x58c41f(0x1cc)](_0x405c27,_0x1f0230,_0x4b8136,_0x4e5017,_0x27a1d4,_0x3851c1);if(!_0x5eb3c0)return;_0x3ab74e[_0x58c41f(0x199)](_0x4b8136,_0x3ab74e['HUJEB'])&&(hooksMap[_0x1f0230]?hooksMap[_0x1f0230][_0x58c41f(0x182)](_0x5eb3c0):hooksMap[_0x1f0230]=[_0x5eb3c0]);const _0x4dec4c=_0x405c27[_0x58c41f(0x1e0)][_0x58c41f(0x18b)](_0x35f9ad=>_0x35f9ad['id']===_0x4e5017[_0x58c41f(0x1da)]),_0xf7cd92=_0x3ab74e[_0x58c41f(0x1d7)](nestedKeyValue,_0x4dec4c,[_0x3ab74e[_0x58c41f(0x1ac)],_0x3ab74e['eUyRl']]);if(!_0xf7cd92)return;else{if(_0xf7cd92[_0x58c41f(0x1cf)](_0x3ab74e[_0x58c41f(0x1e2)]))return;}if(_0x3ab74e[_0x58c41f(0x199)](_0x5eb3c0[_0x58c41f(0x1ad)],_0x3ab74e['ZYAMy']))return;return _0x5eb3c0;}catch(_0x3a3652){logger[_0x58c41f(0x1a5)](_0x58c41f(0x183)+util[_0x58c41f(0x1df)](_0x3a3652)+'\x20');}}[a118_0x3b76a8(0x1c5)](_0x48706d,_0x2359ba){const _0x236d8f=a118_0x3b76a8,_0x3a0cd2={};_0x3a0cd2[_0x236d8f(0x1e3)]=function(_0x1ff0ff,_0x113b00){return _0x1ff0ff===_0x113b00;},_0x3a0cd2[_0x236d8f(0x174)]=_0x236d8f(0x1be),_0x3a0cd2[_0x236d8f(0x1e7)]=function(_0x5985e9,_0x3b66e6){return _0x5985e9===_0x3b66e6;},_0x3a0cd2[_0x236d8f(0x1b9)]=function(_0x464652,_0x3c355b){return _0x464652===_0x3c355b;},_0x3a0cd2['vqbpd']=_0x236d8f(0x1cb),_0x3a0cd2[_0x236d8f(0x1d2)]=_0x236d8f(0x1d6),_0x3a0cd2[_0x236d8f(0x1c3)]=function(_0xd9c88,_0xfc808b){return _0xd9c88||_0xfc808b;};const _0x3a968d=_0x3a0cd2,_0x1b4d17=_0x48706d[_0x236d8f(0x1d1)][_0x2359ba][_0x236d8f(0x186)];let _0x502d1e,_0x336aa3;return _0x1b4d17&&_0x3a968d[_0x236d8f(0x1e3)](_0x1b4d17['status'][_0x236d8f(0x1b1)]()[_0x236d8f(0x18f)](),_0x3a968d[_0x236d8f(0x174)])&&(_0x502d1e=_0x3a968d['LLuZe'](_0x1b4d17[_0x236d8f(0x1ef)],undefined)?_0x1b4d17[_0x236d8f(0x1e8)]:_0x1b4d17[_0x236d8f(0x1ef)][_0x236d8f(0x1e8)],_0x336aa3=_0x3a968d['TKOhv'](_0x1b4d17[_0x236d8f(0x1ef)],undefined)?_0x3a968d[_0x236d8f(0x19c)]:_0x1b4d17['message'][_0x236d8f(0x193)](/Assert/)?_0x3a968d[_0x236d8f(0x1d2)]:_0x3a968d['vqbpd']),{'status':_0x1b4d17['status'][_0x236d8f(0x18f)](),'failureType':_0x3a968d['ggJiW'](_0x336aa3,null),'failureData':!_0x502d1e?null:[_0x502d1e]};}[a118_0x3b76a8(0x17b)](_0x418ff3,_0x41b8c4){const _0x1380cd=a118_0x3b76a8,_0x52ccd5={};_0x52ccd5[_0x1380cd(0x1bc)]=function(_0x187aeb,_0x288716){return _0x187aeb===_0x288716;},_0x52ccd5[_0x1380cd(0x178)]=_0x1380cd(0x1eb),_0x52ccd5[_0x1380cd(0x1a7)]='BEFORE_EACH';const _0x509da4=_0x52ccd5;let _0x543c24=![];for(const _0x5e3f29 of _0x418ff3){_0x5e3f29['pickleStepId']&&(_0x543c24=!![]);if(_0x509da4['myJHX'](_0x41b8c4['id'],_0x5e3f29['id']))return _0x543c24?_0x509da4[_0x1380cd(0x178)]:_0x509da4[_0x1380cd(0x1a7)];}}[a118_0x3b76a8(0x1a1)]=(_0x3caced,_0x53132d)=>{const _0x146331=a118_0x3b76a8,_0x1e98b6={};_0x1e98b6[_0x146331(0x1ed)]=function(_0x72ced3,_0x31b742){return _0x72ced3===_0x31b742;},_0x1e98b6[_0x146331(0x196)]=function(_0x167fca,_0x1ae710){return _0x167fca===_0x1ae710;},_0x1e98b6['qDVxx']=function(_0x3dc251,_0x15253b){return _0x3dc251>_0x15253b;};const _0x2b4ddd=_0x1e98b6;if(!(_0x53132d[_0x146331(0x1f1)]&&_0x2b4ddd[_0x146331(0x1f4)](_0x53132d[_0x146331(0x1f1)][_0x146331(0x18d)],0x1)))return;const _0x40eaae=_0x53132d['astNodeIds'][0x0],_0x519e9a=_0x53132d[_0x146331(0x1f1)][0x1],_0x5c61ad=_0x3caced[_0x146331(0x190)]&&_0x3caced[_0x146331(0x190)][_0x146331(0x1aa)]?_0x3caced[_0x146331(0x190)][_0x146331(0x1aa)]:undefined;let _0x3761ca=[];_0x5c61ad&&_0x5c61ad[_0x146331(0x1d4)](_0x1964dc=>{const _0x55fb63=_0x146331,_0x4fc354={'diptj':function(_0x110099,_0x228c24){return _0x2b4ddd['enWLK'](_0x110099,_0x228c24);}};if(_0x1964dc[_0x55fb63(0x1ec)])_0x1964dc['rule'][_0x55fb63(0x1aa)][_0x55fb63(0x1d4)](_0x40d766=>{const _0x4493d4=_0x55fb63;if(_0x40d766[_0x4493d4(0x191)]&&_0x4fc354[_0x4493d4(0x185)](_0x40d766[_0x4493d4(0x191)]['id'],_0x40eaae)&&_0x40d766['scenario'][_0x4493d4(0x18c)]){const _0x389d1e=_0x40d766[_0x4493d4(0x191)][_0x4493d4(0x18c)]['flatMap'](_0xfbd8d9=>_0xfbd8d9[_0x4493d4(0x1d3)])['find'](_0x1ab69b=>_0x1ab69b['id']===_0x519e9a);let _0x575f57;_0x389d1e&&_0x389d1e[_0x4493d4(0x1d5)]?_0x575f57=_0x389d1e[_0x4493d4(0x1d5)][_0x4493d4(0x188)](_0x1b23d=>_0x1b23d['value']):_0x575f57=[],_0x575f57&&(_0x3761ca=_0x575f57);}});else{if(_0x1964dc[_0x55fb63(0x191)]&&_0x2b4ddd['qoGcI'](_0x1964dc[_0x55fb63(0x191)]['id'],_0x40eaae)&&_0x1964dc['scenario'][_0x55fb63(0x18c)]){const _0x341978=_0x1964dc[_0x55fb63(0x191)]['examples'][_0x55fb63(0x171)](_0x1cd6bb=>_0x1cd6bb['tableBody'])[_0x55fb63(0x18b)](_0xe3dc43=>_0xe3dc43['id']===_0x519e9a);let _0x14e848;_0x341978&&_0x341978[_0x55fb63(0x1d5)]?_0x14e848=_0x341978[_0x55fb63(0x1d5)]['map'](_0x489182=>_0x489182[_0x55fb63(0x1bd)]):_0x14e848=[],_0x14e848&&(_0x3761ca=_0x14e848);}}});if(_0x3761ca[_0x146331(0x18d)])return _0x3761ca;return;};async[a118_0x3b76a8(0x1db)](){const _0x26261b=a118_0x3b76a8,_0x11100b={'RRFBa':function(_0x471c2a){return _0x471c2a();}};if(this[_0x26261b(0x197)])return this['_gitConfigPath'];const _0x531f94=await _0x11100b[_0x26261b(0x1a2)](getGitMetaData);_0x531f94&&(this[_0x26261b(0x1ba)]=_0x531f94[_0x26261b(0x179)]),this[_0x26261b(0x197)]=!![];}}function a118_0x370b(){const _0xdee475=['tagExpression','CVsGH','UnhandledError','getHookRunEventData','qpcGq','sendTestRunEventForCucumber','includes','result','testStepFinished','XKSbd','tableBody','forEach','cells','AssertionError','mLcbB','sourceReference','../../../helpers/test-observability/error-handler.js','hookId','configureGit','vfOHL','oFqPY','3969413cjqjjg','format','hooks','wuUyJ','GyibE','aPeJa','3497202ZsJQOd','3818HSXIYw','path','LLuZe','message','Exception\x20in\x20getHookRunEventData:\x20','31cvvaBT','AFTER_EACH','rule','enWLK','status','exception','wvuXS','astNodeIds','relative','backtrace','qDVxx','failure','flatMap','unknown','dFqsP','VJWMd','zkVQv','winstonLogger','getTestUUID','uFPqW','root','uri','getCucumberHookType','TJaKG','createTestFrameworkData','bstack','qerGc','../../../helpers/logger.js','FAILED','push','Exception\x20in\x20createHookData:\x20','skipped','diptj','testStepResult','tWzMw','map','split','2042820EYyLNU','find','examples','length','LAFae','toLowerCase','feature','scenario','../../../helpers/helper.js','match','../TestInfo.js','hook','qoGcI','_gitConfigured','tags','rEMKV','nanos','testCaseFinished','vqbpd','exports','join','timestamp','finishedAt','getScenarioExamples','RRFBa','failure_type','UcmsF','debug','util','IZXLb','failureData','javascript','children','RLiWZ','ppPrZ','name','test','2781565zsrunI','ehlFT','toString','eTdLs','2566668Floohj','pBByV','failure_reason','failureType','SzFiI','ssUMN','TKOhv','_gitConfigPath','cucumber','myJHX','value','failed','duration_in_ms','filter','strip-ansi','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','ggJiW','toISOString','getHookResult','AOzSI','26115064oTywng','XLEyi'];a118_0x370b=function(){return _0xdee475;};return a118_0x370b();}function a118_0x3044(_0x5a0b6e,_0x140881){const _0x370b55=a118_0x370b();return a118_0x3044=function(_0x304401,_0x3bf1ca){_0x304401=_0x304401-0x171;let _0xe5561d=_0x370b55[_0x304401];return _0xe5561d;},a118_0x3044(_0x5a0b6e,_0x140881);}module[a118_0x3b76a8(0x19d)]=o11yClassErrorHandler(CucumberUtils,[a118_0x3b76a8(0x1db),a118_0x3b76a8(0x1a1),a118_0x3b76a8(0x17b),'getHookResult','sendHook',a118_0x3b76a8(0x1cc),a118_0x3b76a8(0x1ce),a118_0x3b76a8(0x17d)]);
|
|
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 +1 @@
|
|
|
1
|
-
const a119_0x15a078=a119_0x6d77;(function(_0x384945,_0x413c8f){const _0x12cc60=a119_0x6d77,_0x149edb=_0x384945();while(!![]){try{const _0x5b6e8f=parseInt(_0x12cc60(0x1a3))/0x1*(-parseInt(_0x12cc60(0x1bc))/0x2)+parseInt(_0x12cc60(0x181))/0x3+parseInt(_0x12cc60(0x178))/0x4+-parseInt(_0x12cc60(0x14c))/0x5+-parseInt(_0x12cc60(0x1e0))/0x6+-parseInt(_0x12cc60(0x143))/0x7+parseInt(_0x12cc60(0x1c1))/0x8*(parseInt(_0x12cc60(0x1a7))/0x9);if(_0x5b6e8f===_0x413c8f)break;else _0x149edb['push'](_0x149edb['shift']());}catch(_0xc1f7d6){_0x149edb['push'](_0x149edb['shift']());}}}(a119_0x59d0,0xf2527));const path=require('path'),util=require('util'),crypto=require('crypto'),{getGitMetaData,isUndefined,nestedKeyValue}=require(a119_0x15a078(0x1b9)),logger=require('../../../helpers/logger.js')[a119_0x15a078(0x1a1)],{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler.js'),TestInfo=require('../TestInfo.js'),{failureData,getFailureType,PathHelper}=require('../../../helpers/test-observability/utils'),stackTrace=require(a119_0x15a078(0x1d7)),{pickUserFrameFile}=require(a119_0x15a078(0x1a4)),a119_0x1bff18={};a119_0x1bff18[a119_0x15a078(0x17a)]='BEFORE_ALL',a119_0x1bff18[a119_0x15a078(0x199)]='AFTER_ALL',a119_0x1bff18[a119_0x15a078(0x1b1)]=a119_0x15a078(0x16e),a119_0x1bff18['afterEach']='AFTER_EACH';const HOOK_TYPES_MAP=a119_0x1bff18,hooksMap={};function a119_0x6d77(_0x4c0621,_0x2f053b){const _0x59d0d6=a119_0x59d0();return a119_0x6d77=function(_0x6d7780,_0x182bac){_0x6d7780=_0x6d7780-0x142;let _0x5235a8=_0x59d0d6[_0x6d7780];return _0x5235a8;},a119_0x6d77(_0x4c0621,_0x2f053b);}class JestUtils{constructor(){const _0xfce140=a119_0x15a078;this[_0xfce140(0x184)]=![],this['_gitConfigPath']=null,this['_paths']=new PathHelper({'cwd':process[_0xfce140(0x19e)]()},undefined);}async[a119_0x15a078(0x1f6)](_0x4869a0,_0x227506,_0x5e9b5e=a119_0x15a078(0x179),_0x703633=undefined){const _0x4518d6=a119_0x15a078,_0x437ab9={'eykSY':'No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','APElK':'jest-circus','wvlML':_0x4518d6(0x1e9),'EJkJu':function(_0x245327,_0x48d86c){return _0x245327!==_0x48d86c;},'FhjVh':_0x4518d6(0x198),'nHcbB':function(_0x1c42a0,_0x1075c9){return _0x1c42a0!==_0x1075c9;},'ktVKj':'err','PLvcZ':_0x4518d6(0x1c9),'pKuol':function(_0x1ced64,_0x54bafc){return _0x1ced64===_0x54bafc;},'EirsP':'TestRunSkipped','Rzkht':_0x4518d6(0x167),'bOdRc':function(_0x8deb37,_0x281ff5){return _0x8deb37===_0x281ff5;},'vqDfo':'TestRunFinished','BfqBf':function(_0x396fa2,_0x22e0ad){return _0x396fa2>_0x22e0ad;},'mkZFE':'failed','haBEL':_0x4518d6(0x156),'WZPzd':function(_0x1598d3,_0x7a6a9b){return _0x1598d3-_0x7a6a9b;},'peLei':_0x4518d6(0x1dc),'uoCtj':function(_0x32ca43,_0x3553b3){return _0x32ca43>_0x3553b3;},'odvGv':_0x4518d6(0x1bd),'Ockes':function(_0x335939,_0x120f3b){return _0x335939(_0x120f3b);},'ewHTI':function(_0x2a7d84,_0x9dfff0){return _0x2a7d84===_0x9dfff0;}};logger[_0x4518d6(0x14f)](_0x4518d6(0x164)+_0x5e9b5e+_0x4518d6(0x1d9)+_0x227506);try{if(!_0x4869a0)return logger[_0x4518d6(0x14f)](_0x437ab9[_0x4518d6(0x190)]),null;if(_0x4869a0['fn']&&_0x4869a0['fn'][_0x4518d6(0x145)]()[_0x4518d6(0x1e5)](/browserstack internal helper hook/))return null;await this[_0x4518d6(0x1ab)]();let _0x570746;try{_0x570746=this[_0x4518d6(0x172)](_0x4869a0);if(_0x570746&&_0x570746[_0x4518d6(0x197)](_0x437ab9[_0x4518d6(0x1ee)]))return null;}catch(_0x3d31a0){logger[_0x4518d6(0x14f)](_0x4518d6(0x16d)+util[_0x4518d6(0x14b)](_0x3d31a0)),_0x570746=null;}const _0x468cbb=this[_0x4518d6(0x1d8)](_0x4869a0),_0x14353a=this[_0x4518d6(0x14d)](_0x4869a0),_0x195374=_0x570746?this[_0x4518d6(0x165)]['prefixTestPath'](_0x570746):_0x437ab9[_0x4518d6(0x18d)];let _0x1b2f60=[];const _0x11f19e=_0x4869a0[_0x4518d6(0x1ed)]||_0x4869a0['errors'];if(_0x437ab9['EJkJu'](_0x11f19e,undefined))_0x1b2f60=[_0x11f19e,_0x437ab9['FhjVh']];else _0x437ab9[_0x4518d6(0x1de)](_0x703633,undefined)&&(_0x1b2f60=[_0x703633,_0x437ab9['ktVKj']]);const _0x34a1d9=_0x437ab9[_0x4518d6(0x1d4)](_0x11f19e,undefined)?util[_0x4518d6(0x1c2)](_0x11f19e[0x0]):_0x437ab9[_0x4518d6(0x1d4)](_0x703633,undefined)?_0x703633[_0x4518d6(0x145)]():undefined;let _0x21d0ba=_0x437ab9[_0x4518d6(0x1c3)];if(_0x437ab9[_0x4518d6(0x151)](_0x5e9b5e,_0x437ab9['EirsP']))_0x21d0ba=_0x437ab9[_0x4518d6(0x1ec)];else _0x437ab9[_0x4518d6(0x195)](_0x5e9b5e,_0x437ab9[_0x4518d6(0x1be)])&&(_0x11f19e&&_0x437ab9[_0x4518d6(0x15c)](_0x11f19e[_0x4518d6(0x16b)],0x0)?_0x21d0ba=_0x437ab9['mkZFE']:_0x21d0ba=_0x437ab9[_0x4518d6(0x182)]);let _0x2bcd4d=null;if(_0x437ab9['EJkJu'](_0x4869a0[_0x4518d6(0x192)],undefined))_0x2bcd4d=_0x4869a0[_0x4518d6(0x192)];else(_0x5e9b5e[_0x4518d6(0x1e5)](/Finished/)||_0x5e9b5e[_0x4518d6(0x1e5)](/Skipped/))&&(_0x4869a0['started_at']&&(_0x2bcd4d=_0x437ab9[_0x4518d6(0x1b8)](Date['now'](),new Date(_0x4869a0['started_at'])[_0x4518d6(0x1cf)]())));const _0x301d49=_0x4869a0['fn']?_0x4869a0['fn']['toString']():null,_0x213b10={'id':_0x227506,'uuid':_0x227506,'startedAt':_0x4869a0[_0x4518d6(0x1a2)]||new Date()[_0x4518d6(0x1f3)](),'finishedAt':_0x5e9b5e['match'](/Finished/)||_0x5e9b5e[_0x4518d6(0x1e5)](/Skipped/)?new Date()[_0x4518d6(0x1f3)]():null,'type':_0x437ab9[_0x4518d6(0x1f4)],'body':{'lang':_0x437ab9[_0x4518d6(0x150)],'code':_0x301d49},'name':_0x14353a,'errorsDetailed':_0x437ab9[_0x4518d6(0x1af)](_0x11f19e?.[_0x4518d6(0x16b)],0x0)?_0x11f19e[0x0]:_0x11f19e?_0x11f19e:undefined,'scopes':_0x468cbb,'file_name':_0x195374,'location':_0x195374,'vc_filepath':this[_0x4518d6(0x19a)]&&_0x570746?path[_0x4518d6(0x1aa)](this['_gitConfigPath'],_0x570746):null,'framework':_0x437ab9['odvGv'],'result':_0x21d0ba,'failure_reason':_0x34a1d9,'duration_in_ms':_0x2bcd4d,'failure':failureData[_0x4518d6(0x1e6)](null,_0x1b2f60),'failure_type':!_0x34a1d9?null:_0x437ab9[_0x4518d6(0x1cd)](getFailureType,_0x34a1d9),'retry_of':_0x4869a0[_0x4518d6(0x1da)]||null,'customRerunParam':{'rerun_name':_0x14353a}};_0x437ab9[_0x4518d6(0x151)](_0x5e9b5e,_0x437ab9[_0x4518d6(0x158)])&&!_0x213b10[_0x4518d6(0x1bf)]&&(_0x213b10[_0x4518d6(0x1bf)]=_0x213b10[_0x4518d6(0x19c)]);const _0x4b7db2=_0x213b10['failure']&&_0x213b10[_0x4518d6(0x1db)][0x0];return _0x4b7db2&&(_0x213b10[_0x4518d6(0x1a9)]=_0x4b7db2[_0x4518d6(0x15d)],_0x213b10[_0x4518d6(0x1ba)]=_0x4b7db2[_0x4518d6(0x173)]),(_0x437ab9[_0x4518d6(0x189)](_0x5e9b5e,_0x437ab9[_0x4518d6(0x1be)])||_0x437ab9[_0x4518d6(0x195)](_0x5e9b5e,_0x437ab9['EirsP']))&&(_0x4869a0['hooks']&&(_0x213b10[_0x4518d6(0x1d1)]=_0x4869a0[_0x4518d6(0x1d1)])),_0x213b10;}catch(_0x2135ae){return logger[_0x4518d6(0x14f)](_0x4518d6(0x17f)+util['format'](_0x2135ae)),null;}}async[a119_0x15a078(0x193)](_0x14ccf1,_0x33f79e,_0x2c2b9f,_0xb0475d){const _0x466a2d=a119_0x15a078,_0x31c2f2={'VVkqW':_0x466a2d(0x174),'QmPTl':_0x466a2d(0x149),'FiNDz':_0x466a2d(0x14a),'yfNlq':'unknown','vELPE':_0x466a2d(0x1c9),'XDUOa':function(_0x151d38,_0x4256ba){return _0x151d38===_0x4256ba;},'Nxxkj':_0x466a2d(0x1e4),'MtiPz':function(_0x4b92a7,_0x18d6de){return _0x4b92a7>_0x18d6de;},'JuRlm':'failed','Xogon':function(_0x41adbe,_0x395cf6){return _0x41adbe(_0x395cf6);},'QYUVe':_0x466a2d(0x198),'xSAUq':_0x466a2d(0x156),'sQbgE':_0x466a2d(0x17e),'mlSmN':_0x466a2d(0x1dc),'nEPsw':_0x466a2d(0x1bd),'AlNUp':_0x466a2d(0x1b3)};logger['debug']('Creating\x20hook\x20data\x20for\x20eventType:\x20'+_0x2c2b9f+_0x466a2d(0x15f)+_0x33f79e+_0x466a2d(0x187)+_0xb0475d);try{if(!_0x14ccf1)return logger[_0x466a2d(0x14f)](_0x31c2f2[_0x466a2d(0x176)]),null;if(this[_0x466a2d(0x1d5)](_0x14ccf1))return null;await this[_0x466a2d(0x1ab)]();let _0x43f735=null;try{_0x43f735=this['getRootParentFile'](_0x14ccf1);if(_0x43f735&&_0x43f735[_0x466a2d(0x197)](_0x31c2f2['QmPTl']))return null;if(_0x43f735&&_0x43f735[_0x466a2d(0x197)](_0x31c2f2[_0x466a2d(0x171)]))return null;}catch(_0x45f1ff){logger[_0x466a2d(0x14f)](_0x466a2d(0x191)+util[_0x466a2d(0x14b)](_0x45f1ff));}const _0x3f88ef=_0x43f735?this[_0x466a2d(0x165)]['prefixTestPath'](_0x43f735):_0x43f735,_0xb288e1=this[_0x466a2d(0x14d)](_0x14ccf1),_0x2d3562=_0x14ccf1[_0x466a2d(0x1a6)]||_0x31c2f2[_0x466a2d(0x144)],_0x12b6c2=HOOK_TYPES_MAP[_0x2d3562]||_0x2d3562[_0x466a2d(0x1a0)](),_0x3f7f43=_0x14ccf1['parent']&&_0x14ccf1[_0x466a2d(0x18a)][_0x466a2d(0x166)]?_0x14ccf1[_0x466a2d(0x18a)][_0x466a2d(0x166)]:'';let _0x218f08=_0x31c2f2[_0x466a2d(0x1bb)],_0x686e28=null,_0x3404f2=null,_0x47b5ef=null,_0x243169=null;_0x31c2f2['XDUOa'](_0x2c2b9f,_0x31c2f2[_0x466a2d(0x16f)])&&(_0x243169=new Date()[_0x466a2d(0x1f3)](),_0x14ccf1['errorsDetailed']&&_0x31c2f2['MtiPz'](_0x14ccf1[_0x466a2d(0x1ed)]['length'],0x0)?(_0x218f08=_0x31c2f2['JuRlm'],_0x3404f2=util['inspect'](_0x14ccf1['errorsDetailed'][0x0]),_0x686e28=_0x31c2f2[_0x466a2d(0x1f2)](getFailureType,_0x3404f2),_0x47b5ef=failureData[_0x466a2d(0x1e6)](null,[_0x14ccf1[_0x466a2d(0x1ed)],_0x31c2f2[_0x466a2d(0x1d0)]])):_0x218f08=_0x31c2f2[_0x466a2d(0x1d2)]);const _0x1954dd={'uuid':_0x33f79e,'type':_0x31c2f2[_0x466a2d(0x18e)],'hook_type':_0x12b6c2,'name':_0xb288e1,'body':{'lang':_0x31c2f2[_0x466a2d(0x161)],'code':_0x14ccf1['fn']?_0x14ccf1['fn'][_0x466a2d(0x145)]():null},'tags':[],'test_run_id':_0xb0475d,'scope':_0x3f7f43,'scopes':[_0x3f7f43],'file_name':_0x3f88ef,'location':_0x3f88ef,'vc_filepath':this[_0x466a2d(0x19a)]&&_0x43f735?path[_0x466a2d(0x1aa)](this[_0x466a2d(0x19a)],_0x43f735):null,'result':_0x218f08,'started_at':_0x14ccf1['started_at']||new Date()[_0x466a2d(0x1f3)](),'finished_at':_0x243169,'failure_type':_0x686e28,'failure_reason':_0x3404f2,'failure_data':_0x47b5ef,'framework':_0x31c2f2[_0x466a2d(0x157)]};return _0x31c2f2['XDUOa'](_0x2c2b9f,_0x31c2f2['AlNUp'])&&(hooksMap[_0xb0475d]?hooksMap[_0xb0475d][_0x466a2d(0x180)](_0x1954dd):hooksMap[_0xb0475d]=[_0x1954dd]),_0x1954dd;}catch(_0x1525c9){return logger[_0x466a2d(0x14f)](_0x466a2d(0x1e1)+util[_0x466a2d(0x14b)](_0x1525c9)),null;}}[a119_0x15a078(0x17d)](_0x358402,_0xbb82f2,_0x579e11){const _0x53e821=a119_0x15a078,_0x5577c1={'uQZtK':function(_0xe183a9,_0x24878f){return _0xe183a9>_0x24878f;},'SbXBk':_0x53e821(0x1ca),'lkkao':function(_0x2ecf85,_0x411d1c){return _0x2ecf85(_0x411d1c);},'MPSXR':_0x53e821(0x198),'VfAHt':'passed'};try{const _0x36df3e=hooksMap[_0x358402];if(!_0x36df3e)return null;const _0x17c03f=_0x36df3e[_0x53e821(0x1cc)](_0x2dea21=>_0x2dea21[_0x53e821(0x175)]===_0xbb82f2);if(!_0x17c03f)return null;return _0x17c03f[_0x53e821(0x15e)]=new Date()[_0x53e821(0x1f3)](),_0x579e11[_0x53e821(0x1ed)]&&_0x5577c1[_0x53e821(0x1dd)](_0x579e11[_0x53e821(0x1ed)][_0x53e821(0x16b)],0x0)?(_0x17c03f[_0x53e821(0x153)]=_0x5577c1[_0x53e821(0x1b5)],_0x17c03f[_0x53e821(0x19d)]=util['inspect'](_0x579e11[_0x53e821(0x1ed)][0x0]),_0x17c03f['failure_type']=_0x5577c1[_0x53e821(0x1b4)](getFailureType,_0x17c03f[_0x53e821(0x19d)]),_0x17c03f[_0x53e821(0x148)]=failureData[_0x53e821(0x1e6)](null,[_0x579e11[_0x53e821(0x1ed)],_0x5577c1[_0x53e821(0x1a5)]])):_0x17c03f[_0x53e821(0x153)]=_0x5577c1[_0x53e821(0x188)],_0x17c03f;}catch(_0x3a0ec9){return logger[_0x53e821(0x14f)](_0x53e821(0x168)+util[_0x53e821(0x14b)](_0x3a0ec9)),null;}}[a119_0x15a078(0x14d)](_0x23dd20){const _0x190d8a=a119_0x15a078,_0x1d1fd2={};_0x1d1fd2[_0x190d8a(0x1f1)]=function(_0x1901a3,_0x3875ba){return _0x1901a3!==_0x3875ba;},_0x1d1fd2[_0x190d8a(0x1c0)]=_0x190d8a(0x198),_0x1d1fd2['NFvfr']='Unknown\x20Test';const _0x308df2=_0x1d1fd2;if(_0x308df2[_0x190d8a(0x1f1)](_0x23dd20[_0x190d8a(0x1a6)],_0x308df2[_0x190d8a(0x1c0)]))return'\x22'+_0x23dd20[_0x190d8a(0x1a6)]+'\x22\x20hook\x20for\x20\x22'+(_0x23dd20['parent']&&_0x23dd20['parent'][_0x190d8a(0x166)])+'\x22';return _0x23dd20[_0x190d8a(0x166)]||_0x308df2[_0x190d8a(0x1e3)];}[a119_0x15a078(0x1d8)](_0x51fdc8){const _0x1a37be=a119_0x15a078,_0x1ba087={};_0x1ba087[_0x1a37be(0x154)]=function(_0x429fbd,_0x3161e6){return _0x429fbd!==_0x3161e6;},_0x1ba087['XGYxF']=function(_0xfe3f71,_0x6d48ac){return _0xfe3f71!==_0x6d48ac;},_0x1ba087['IBoDQ']=_0x1a37be(0x14e);const _0x3c72f1=_0x1ba087,_0x2441e0=[];if(_0x51fdc8&&_0x51fdc8[_0x1a37be(0x18a)]){let _0x568b85=_0x51fdc8[_0x1a37be(0x18a)];while(_0x568b85&&_0x568b85[_0x1a37be(0x166)]&&_0x3c72f1[_0x1a37be(0x154)](_0x568b85[_0x1a37be(0x166)],'')&&_0x3c72f1[_0x1a37be(0x1d6)](_0x568b85[_0x1a37be(0x166)],_0x3c72f1[_0x1a37be(0x19b)])){_0x2441e0[_0x1a37be(0x180)](_0x568b85[_0x1a37be(0x166)]),_0x568b85=_0x568b85[_0x1a37be(0x18a)];}}return _0x2441e0['reverse'](),_0x2441e0;}[a119_0x15a078(0x172)](_0x5260d2){const _0x2d02f8=a119_0x15a078,_0x55d236={'bUTjG':function(_0x584a8d,_0x361012){return _0x584a8d(_0x361012);}};if(_0x5260d2['file'])return _0x5260d2[_0x2d02f8(0x1ea)];if(_0x5260d2[_0x2d02f8(0x1f5)])try{const _0x369f62=stackTrace[_0x2d02f8(0x1eb)][_0x2d02f8(0x18b)](stackTrace,_0x5260d2[_0x2d02f8(0x1f5)]),_0x4133bb=_0x55d236[_0x2d02f8(0x1df)](pickUserFrameFile,_0x369f62);if(_0x4133bb)return _0x4133bb;logger['debug']('[jestUtils]\x20pickUserFrameFile\x20found\x20no\x20user\x20frame\x20(trace\x20length='+_0x369f62[_0x2d02f8(0x16b)]+')');}catch(_0x549c39){logger[_0x2d02f8(0x14f)]('Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util[_0x2d02f8(0x14b)](_0x549c39));}return null;}[a119_0x15a078(0x1d5)](_0x1bd93d){const _0x1a228e=a119_0x15a078,_0x7a805a={};_0x7a805a['dOVDt']='jest-circus';const _0x4efad9=_0x7a805a;try{const _0x48ef3e=this['getRootParentFile'](_0x1bd93d);if(!_0x48ef3e||_0x48ef3e['includes'](_0x4efad9[_0x1a228e(0x146)]))return!![];}catch(_0x59cadb){logger[_0x1a228e(0x14f)](_0x1a228e(0x1ae)+util['format'](_0x59cadb));}return![];}[a119_0x15a078(0x1a8)](_0x111744=null){const _0x5673ae=a119_0x15a078;try{const _0x3c7df9=_0x111744||global[_0x5673ae(0x15b)]||{};if(global[_0x5673ae(0x1e8)])return global[_0x5673ae(0x1e8)];if(_0x3c7df9?.[_0x5673ae(0x1c4)]?.[_0x5673ae(0x196)])return _0x3c7df9['currentTest']['testAnalyticsId'];if(_0x3c7df9?.[_0x5673ae(0x1c4)]?.['id'])return _0x3c7df9['currentTest']['id'];return null;}catch(_0x3f2d6b){return logger['debug'](_0x5673ae(0x183)+util['format'](_0x3f2d6b)),null;}}async[a119_0x15a078(0x1ab)](){const _0x46f9ce=a119_0x15a078,_0x1ae3c3={'BcrzF':function(_0x4cf6e5){return _0x4cf6e5();}};if(this[_0x46f9ce(0x184)])return this[_0x46f9ce(0x19a)];const _0x2b88f1=await _0x1ae3c3['BcrzF'](getGitMetaData);_0x2b88f1&&(this[_0x46f9ce(0x19a)]=_0x2b88f1['root']),this[_0x46f9ce(0x184)]=!![];}['clearHooksMap'](_0x4b0090){hooksMap[_0x4b0090]&&delete hooksMap[_0x4b0090];}[a119_0x15a078(0x1e7)](_0x38ccb5){const _0x347f74=a119_0x15a078,_0x25209e={'KEffk':_0x347f74(0x149),'uEGxA':function(_0x39cf6f,_0x587378){return _0x39cf6f(_0x587378);},'mewBd':_0x347f74(0x194)};if(_0x38ccb5['file'])return _0x38ccb5[_0x347f74(0x1ea)];if(_0x38ccb5[_0x347f74(0x1f5)]){try{const _0x2a38d8=stackTrace[_0x347f74(0x1eb)](_0x38ccb5[_0x347f74(0x1f5)]);if(_0x2a38d8[0x0]&&_0x2a38d8[0x0][_0x347f74(0x17b)]){const _0x163483=_0x2a38d8[0x0][_0x347f74(0x17b)]();if(_0x163483&&!_0x163483[_0x347f74(0x197)](_0x25209e[_0x347f74(0x16c)]))return _0x163483;}}catch(_0x597418){logger[_0x347f74(0x14f)](_0x347f74(0x1cb)+util['format'](_0x597418));}if(_0x38ccb5[_0x347f74(0x1f5)][_0x347f74(0x16a)]){const _0xff2155=_0x38ccb5[_0x347f74(0x1f5)][_0x347f74(0x16a)][_0x347f74(0x142)]('\x0a');for(const _0x3d52ec of _0xff2155){const _0x33f74d=_0x3d52ec[_0x347f74(0x1e5)](/at (.+?):\d+:\d+/);if(_0x33f74d&&_0x33f74d[0x1]&&!_0x33f74d[0x1][_0x347f74(0x197)](_0x25209e[_0x347f74(0x16c)]))return _0x33f74d[0x1];}}}let _0x3c416a=_0x38ccb5[_0x347f74(0x18a)];while(_0x3c416a){if(_0x3c416a[_0x347f74(0x1ea)])return _0x3c416a[_0x347f74(0x1ea)];if(_0x3c416a[_0x347f74(0x1f5)])try{const _0x2080e6=stackTrace[_0x347f74(0x1eb)](_0x3c416a['asyncError']);if(_0x2080e6[0x0]&&_0x2080e6[0x0]['getFileName']){const _0x30e308=_0x2080e6[0x0][_0x347f74(0x17b)]();if(_0x30e308&&!_0x30e308[_0x347f74(0x197)](_0x25209e[_0x347f74(0x16c)]))return _0x30e308;}}catch(_0x11954f){}_0x3c416a=_0x3c416a['parent'];}try{const _0x44b44f=_0x25209e[_0x347f74(0x1c5)](require,_0x25209e[_0x347f74(0x1b0)]);if(_0x44b44f&&_0x44b44f[_0x347f74(0x147)]){const _0x5561b0=_0x44b44f[_0x347f74(0x147)]();if(_0x5561b0&&_0x5561b0[_0x347f74(0x170)])return _0x5561b0[_0x347f74(0x170)];}}catch(_0x2af353){logger[_0x347f74(0x14f)](_0x347f74(0x19f)+util[_0x347f74(0x14b)](_0x2af353));}return null;}[a119_0x15a078(0x18f)](_0x5b8886){const _0xd6000c=a119_0x15a078,_0x292c0b={};_0x292c0b['CyPZr']='[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier',_0x292c0b['OHSXc']=function(_0x3fdecd,_0x156654){return _0x3fdecd!==_0x156654;},_0x292c0b['pwFJo']=_0xd6000c(0x14e),_0x292c0b['Aedlr']=_0xd6000c(0x149),_0x292c0b[_0xd6000c(0x1ac)]=_0xd6000c(0x1f7),_0x292c0b[_0xd6000c(0x1b7)]=_0xd6000c(0x1e2);const _0x5438cc=_0x292c0b;try{if(!_0x5b8886)return logger[_0xd6000c(0x1c6)](_0x5438cc[_0xd6000c(0x162)]),null;const _0x1f2a8c=_0x5b8886[_0xd6000c(0x186)]||_0x5b8886[_0xd6000c(0x166)]||_0x5b8886[_0xd6000c(0x163)]||_0x5b8886[_0xd6000c(0x1ce)];let _0x156e11=_0x1f2a8c;if(_0x5b8886[_0xd6000c(0x18a)]&&_0x5b8886[_0xd6000c(0x18a)]['name']&&_0x5438cc[_0xd6000c(0x1b6)](_0x5b8886['parent'][_0xd6000c(0x166)],_0x5438cc[_0xd6000c(0x1b2)])){const _0x432d1b=_0x5b8886['name']||_0x5b8886[_0xd6000c(0x163)];_0x432d1b&&(_0x156e11=_0x5b8886[_0xd6000c(0x18a)][_0xd6000c(0x166)]+'\x20'+_0x432d1b);}let _0x5ca10d=_0x5b8886[_0xd6000c(0x170)];if(!_0x5ca10d&&_0x5b8886['asyncError']){try{const _0x3e016f=stackTrace[_0xd6000c(0x1eb)](_0x5b8886[_0xd6000c(0x1f5)]);if(_0x3e016f[0x0]&&_0x3e016f[0x0][_0xd6000c(0x17b)]){const _0x4ea9f9=_0x3e016f[0x0]['getFileName']();_0x4ea9f9&&!_0x4ea9f9[_0xd6000c(0x197)](_0x5438cc[_0xd6000c(0x17c)])&&(_0x5ca10d=_0x4ea9f9);}}catch(_0x3e1cf1){logger[_0xd6000c(0x14f)](_0xd6000c(0x1cb)+util[_0xd6000c(0x14b)](_0x3e1cf1));}if(!_0x5ca10d&&_0x5b8886['asyncError'][_0xd6000c(0x16a)]){const _0x4596fa=_0x5b8886['asyncError'][_0xd6000c(0x16a)][_0xd6000c(0x142)]('\x0a');for(const _0x1a8765 of _0x4596fa){const _0x156b6f=_0x1a8765[_0xd6000c(0x1e5)](/at (.+?):\d+:\d+/);if(_0x156b6f&&_0x156b6f[0x1]&&!_0x156b6f[0x1]['includes'](_0x5438cc[_0xd6000c(0x17c)])){_0x5ca10d=_0x156b6f[0x1];break;}}}}const _0x158e32=_0x5ca10d+'::'+_0x156e11,_0x28af5c=crypto[_0xd6000c(0x15a)](_0x5438cc[_0xd6000c(0x1ac)])['update'](_0x158e32)[_0xd6000c(0x177)](_0x5438cc[_0xd6000c(0x1b7)])['substring'](0x0,0x8),_0x572851=process[_0xd6000c(0x155)]+_0xd6000c(0x159)+_0x28af5c;return logger[_0xd6000c(0x14f)](_0xd6000c(0x1f0)+_0x572851+_0xd6000c(0x1d3)+_0x158e32),_0x572851;}catch(_0x1db504){return logger[_0xd6000c(0x1c6)](_0xd6000c(0x1c8)+util['format'](_0x1db504)),null;}}[a119_0x15a078(0x1ad)](_0x271903){const _0x503374=a119_0x15a078,_0x20b763={};_0x20b763[_0x503374(0x1c7)]=_0x503374(0x169);const _0x5058f6=_0x20b763;if(!_0x271903)return logger['debug'](_0x5058f6[_0x503374(0x1c7)]),null;const _0x3ba320=this['extractTestFilePath'](_0x271903),_0x1ee109={};_0x1ee109[_0x503374(0x166)]=_0x271903[_0x503374(0x166)]||_0x271903[_0x503374(0x163)],_0x1ee109[_0x503374(0x18a)]=_0x271903[_0x503374(0x18a)],_0x1ee109[_0x503374(0x170)]=_0x3ba320,_0x1ee109[_0x503374(0x1f5)]=_0x271903[_0x503374(0x1f5)];const _0xc4dd11=_0x1ee109;return this[_0x503374(0x18f)](_0xc4dd11);}[a119_0x15a078(0x185)](_0x2e1ead,_0x1932e9=null){const _0xea16e6=a119_0x15a078,_0x1ab692={};_0x1ab692['qZGlA']=_0xea16e6(0x160);const _0x496b71=_0x1ab692;if(!_0x2e1ead)return logger[_0xea16e6(0x14f)](_0x496b71['qZGlA']),_0x1932e9;if(_0x2e1ead[_0xea16e6(0x152)])return logger[_0xea16e6(0x14f)]('[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20'+_0x2e1ead['testIdentifier']),_0x2e1ead[_0xea16e6(0x152)];return this[_0xea16e6(0x18f)](_0x2e1ead)||_0x1932e9;}}function a119_0x59d0(){const _0x7eff47=['VVkqW','digest','2693844KxevEW','TestRunFinished','beforeAll','getFileName','Aedlr','getHookRunEventData','hook','Exception\x20in\x20createTestFrameworkData:\x20','push','4952016fOTWyJ','haBEL','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','_gitConfigured','recreateIdentifierFromTestInfo','fullName',',\x20testRunId:\x20','VfAHt','ewHTI','parent','call','clearHooksMap','wvlML','sQbgE','createJestTestIdentifier','eykSY','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','duration','createHookData','expect','bOdRc','testAnalyticsId','includes','test','afterAll','_gitConfigPath','IBoDQ','finishedAt','failure_reason','cwd','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','toUpperCase','winstonLogger','started_at','301kilhtG','../../../helpers/stackFrameUtils','MPSXR','type','25749aKAsJH','getTestIdentifier','failure_backtrace','relative','configureGit','GwOAG','createIdentifierFromJestTest','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','uoCtj','mewBd','beforeEach','pwFJo','HookRunStarted','lkkao','SbXBk','OHSXc','JUSGx','WZPzd','../../../helpers/helper.js','failure_reason_expanded','vELPE','7862nLlXhy','jest','vqDfo','startedAt','uNwyb','9304EvNTpv','inspect','PLvcZ','currentTest','uEGxA','error','oMmYq','[jestUtils]\x20Error\x20creating\x20identifier:\x20','pending','failed','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','find','Ockes','displayName','getTime','QYUVe','hooks','xSAUq','\x20from\x20compositeKey:\x20','EJkJu','isJestInternalHook','XGYxF','stack-trace','getHierarchy',',\x20testIdentifier:\x20','retryOf','failure','javascript','uQZtK','nHcbB','bUTjG','5028924SlJfMu','Exception\x20in\x20createHookData:\x20','hex','NFvfr','HookRunFinished','match','apply','extractTestFilePath','__jestCurrentTestIdentifier','File\x20path\x20could\x20not\x20be\x20found','file','parse','Rzkht','errorsDetailed','APElK','exports','[jestUtils]\x20Created\x20identifier:\x20','zwXZb','Xogon','toISOString','FhjVh','asyncError','createTestFrameworkData','md5','split','10064355mCVnWS','yfNlq','toString','dOVDt','getState','failure_data','jest-circus','browserstack-node-agent/src/bin/jest','format','5998875aFSLRb','getName','ROOT_DESCRIBE_BLOCK','debug','peLei','pKuol','testIdentifier','result','zXwfD','pid','passed','nEPsw','EirsP',':jest-','createHash','__workerDetails','BfqBf','backtrace','finished_at',',\x20hookUUID:\x20','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation','mlSmN','CyPZr','title','Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20','_paths','name','skipped','Exception\x20in\x20getHookRunEventData:\x20','[jestUtils]\x20No\x20test\x20object\x20provided','stack','length','KEffk','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','BEFORE_EACH','Nxxkj','testPath','FiNDz','getRootParentFile','expanded','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','uuid'];a119_0x59d0=function(){return _0x7eff47;};return a119_0x59d0();}module[a119_0x15a078(0x1ef)]=o11yClassErrorHandler(JestUtils,[a119_0x15a078(0x1ab),a119_0x15a078(0x1d8),'getRootParentFile',a119_0x15a078(0x14d),'isJestInternalHook',a119_0x15a078(0x1a8),'createTestFrameworkData',a119_0x15a078(0x193),a119_0x15a078(0x17d),a119_0x15a078(0x18c),'extractTestFilePath',a119_0x15a078(0x18f),a119_0x15a078(0x1ad),a119_0x15a078(0x185)]);
|
|
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,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a120_0x4889(_0x4c9f7e,_0x141659){const _0x5af3f4=a120_0x5af3();return a120_0x4889=function(_0x488978,_0x1f3063){_0x488978=_0x488978-0x7b;let _0x55c1ce=_0x5af3f4[_0x488978];return _0x55c1ce;},a120_0x4889(_0x4c9f7e,_0x141659);}const a120_0x325ca7=a120_0x4889;(function(_0x16ac5f,_0x4b4f2d){const _0x1aaa5a=a120_0x4889,_0x2d9b96=_0x16ac5f();while(!![]){try{const _0x3e314c=-parseInt(_0x1aaa5a(0x7f))/0x1*(-parseInt(_0x1aaa5a(0xe7))/0x2)+-parseInt(_0x1aaa5a(0xd1))/0x3+-parseInt(_0x1aaa5a(0xc2))/0x4*(parseInt(_0x1aaa5a(0xc7))/0x5)+-parseInt(_0x1aaa5a(0x8d))/0x6+-parseInt(_0x1aaa5a(0xbb))/0x7*(-parseInt(_0x1aaa5a(0xbe))/0x8)+-parseInt(_0x1aaa5a(0xb6))/0x9+parseInt(_0x1aaa5a(0x7e))/0xa;if(_0x3e314c===_0x4b4f2d)break;else _0x2d9b96['push'](_0x2d9b96['shift']());}catch(_0x11c2f8){_0x2d9b96['push'](_0x2d9b96['shift']());}}}(a120_0x5af3,0x5e443));function a120_0x5af3(){const _0x17e4f0=['Zzcyz','1094934xcHJeE','exports','getHubUrl','stringify','winstonLogger','znzQv','index','bootstrap','path','initialize','browser_version','File\x20path\x20is\x20required','[TRACE:node-generic]\x20Error\x20enriching\x20accessibility\x20config:\x20','[TRACE:node-generic]\x20CLI\x20enabled\x20—\x20using\x20Binary\x20Flow','IjSfy','\x20resolves\x20outside\x20the\x20project\x20directory\x20and\x20was\x20rejected','wsbjb','configPath','setupBrowserstackLocal','TRyBH','on\x20non-BrowserStack\x20infrastructure\x20','isBrowserstackInfra','parse','finalExecution','AktyY','browserName','getInstance','accessibilityOptions','EVENTS','platforms','isRunning','existsSync','[TRACE:node-generic]\x20Binary\x20Flow\x20error:\x20','checkAccessibilityPlatformConfig','warn','handleApp','finally','../v2/cliUtils','../../helpers/BrowserStackSetup','env','startsWith','1604340fqyuLy','pPIyL','../../helpers/helper','isMainConnected','BROWSERSTACK_PRODUCT_MAP','7ulTxNx','forEach','MYVph','5393496ZUSAnz','length','../../helpers/performance/constants','oTxgq','904120xmkWLJ','vanilla','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','setBrowserstackConfig','[TRACE:node-generic]\x20beforeExit\x20safety\x20net\x20—\x20stopping\x20binary','10QzYzXf','push','beforeExit','modifyBrowserStackCaps','isVersionSupported','../../helpers/performance/performance-tester','end','../../helpers/logger','parallelsPerPlatform','../../helpers/accessibility-automation/helper','1799073BjcKXk','\x20browser\x20version\x20greater\x20than\x20','assign','Config\x20yml\x20is\x20required','pjoEx','resolve','stop','NVQdL','start','cliConfig','../v2/browserstackCLI','setFrameworkDetail','VSkmd','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','DTcBy','wyUhD','File\x20path\x20','config','[TRACE:node-generic]\x20Binary\x20bootstrapped,\x20starting\x20parallelVanillaRun','error','getBrowserDisplayName','[TRACE:node-generic]\x20CLI\x20not\x20enabled\x20—\x20using\x20Direct\x20Flow','63584aqgRGx','oqWhH','modifyBrowserStackW3CCaps','getMinVersionForBrowser','info','../../helpers/testhub/utils','../test-runner','isBrowserSupportedForAccessibility','proxySettings','message','wtOGS','accessibility','../../helpers/testhub/testhubHandler','cwd','NqTpq','[TRACE:node-generic]\x20Accessibility:\x20enabled=','8700920PKIlsz','8xowsvo','NODE_GENERIC','kUeWR','args','configuration','RwuCz','debug','../utils/constants','file','qFPMA','then','isFinite','isUndefined'];a120_0x5af3=function(){return _0x17e4f0;};return a120_0x5af3();}const fs=require('fs'),path=require(a120_0x325ca7(0x95)),{default:BrowserStackSetup}=require(a120_0x325ca7(0xb3)),helper=require(a120_0x325ca7(0xb8)),PerformanceTester=require(a120_0x325ca7(0xcc)),PerformanceEvents=require(a120_0x325ca7(0xc0))[a120_0x325ca7(0xa9)],utilities=require('../../helpers/utilities'),{parallelVanillaRun}=require(a120_0x325ca7(0xed)),TestHubHandler=require(a120_0x325ca7(0xf3)),BrowserstackCLI=require(a120_0x325ca7(0xdb)),logger=require(a120_0x325ca7(0xce))[a120_0x325ca7(0x91)],CLIUtils=require(a120_0x325ca7(0xb2)),{FRAMEWORKS}=require(a120_0x325ca7(0x86)),accessibilityHelper=require(a120_0x325ca7(0xd0));async function run(_0x69d54b,_0x8d39d,_0x5df469){const _0x37c67f=a120_0x325ca7,_0x3d59da={'MYVph':_0x37c67f(0xc3),'wsbjb':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','znzQv':function(_0x1a2b52,_0x28cd4f){return _0x1a2b52(_0x28cd4f);},'oTxgq':function(_0x5b7d8b,_0x55bc5b){return _0x5b7d8b(_0x55bc5b);},'XYtly':function(_0x33784b,_0x561fb7){return _0x33784b(_0x561fb7);},'AktyY':function(_0x224e0e,_0x4bd2dc){return _0x224e0e(_0x4bd2dc);},'wCIbM':function(_0x4e6a1c,_0x299511){return _0x4e6a1c>_0x299511;},'TRyBH':_0x37c67f(0xa1),'Zzcyz':_0x37c67f(0xc6),'aVLoN':_0x37c67f(0x98),'VSkmd':function(_0x1038ee,_0xcd231){return _0x1038ee!==_0xcd231;},'pPIyL':function(_0x53fe40,_0x445229){return _0x53fe40+_0x445229;},'GSYuF':function(_0x2b1a21,_0x264a5b){return _0x2b1a21(_0x264a5b);},'VGIHA':_0x37c67f(0xd4),'oqWhH':function(_0x2d09ce,_0x379819){return _0x2d09ce>_0x379819;},'kUeWR':function(_0x50ea3c,_0x4f7486){return _0x50ea3c>_0x4f7486;},'piRlZ':function(_0x17a911,_0xfb5d92){return _0x17a911&&_0xfb5d92;},'DTcBy':'Accessibility\x20Automation\x20is\x20not\x20supported\x20with\x20w3c:\x20false.\x20Skipping\x20accessibility\x20for\x20this\x20run.','vuoDT':function(_0x18225d,_0x1d3fe7){return _0x18225d(_0x1d3fe7);},'pjoEx':_0x37c67f(0xec),'wyUhD':_0x37c67f(0x9a),'IjSfy':_0x37c67f(0xe3),'wtOGS':'browserstack.accessibilityOptions.scannerVersion','qFPMA':function(_0x3ff291,_0x450806){return _0x3ff291*_0x450806;},'ziCdF':function(_0x197f7e,_0x1891f0,_0x28855d){return _0x197f7e(_0x1891f0,_0x28855d);},'gcQFs':'[TRACE:node-generic]\x20parallelVanillaRun\x20complete,\x20stopping\x20binary','RwuCz':_0x37c67f(0xe6),'NVQdL':function(_0x3023fb,_0x8786b0,_0x5a3342){return _0x3023fb(_0x8786b0,_0x5a3342);},'NqTpq':_0x37c67f(0xc9)};await _0x5df469[_0x37c67f(0x96)](_0x69d54b);!BrowserstackCLI[_0x37c67f(0xa7)]()[_0x37c67f(0xab)]()&&await _0x5df469[_0x37c67f(0x9f)]();await helper[_0x37c67f(0xb0)](_0x5df469[_0x37c67f(0xe2)]);const _0x58b9a8=[];if(helper[_0x37c67f(0x8b)](_0x69d54b['_'][0x1]))throw _0x3d59da[_0x37c67f(0xc1)](Error,_0x3d59da['aVLoN']);const _0x32b572=process[_0x37c67f(0x7b)](),_0x2febd7=path[_0x37c67f(0xd6)](_0x32b572,_0x69d54b['_'][0x1]);if(_0x3d59da[_0x37c67f(0xdd)](_0x2febd7,_0x32b572)&&!_0x2febd7[_0x37c67f(0xb5)](_0x3d59da[_0x37c67f(0xb7)](_0x32b572,path['sep'])))throw _0x3d59da[_0x37c67f(0xa5)](Error,_0x37c67f(0xe1)+_0x69d54b['_'][0x1]+_0x37c67f(0x9c));if(!fs[_0x37c67f(0xac)](_0x2febd7))throw _0x3d59da['GSYuF'](Error,'File\x20'+_0x69d54b['_'][0x1]+'\x20doesn\x27t\x20exist');if(!_0x5df469[_0x37c67f(0xe2)])throw _0x3d59da[_0x37c67f(0xa5)](Error,_0x3d59da['VGIHA']);const _0x15daed=helper['useW3C'](_0x5df469[_0x37c67f(0xe2)]);_0x5df469[_0x37c67f(0xe2)][_0x37c67f(0xaa)]&&_0x3d59da[_0x37c67f(0xe8)](_0x5df469[_0x37c67f(0xe2)][_0x37c67f(0xaa)][_0x37c67f(0xbf)],0x0)&&_0x5df469[_0x37c67f(0xe2)][_0x37c67f(0xaa)][_0x37c67f(0xbc)]((_0x55a7e3,_0x4f9016)=>{const _0xda923e=_0x37c67f;_0x15daed?_0x58b9a8[_0xda923e(0xc8)](helper[_0xda923e(0xe9)](_0x5df469['config'],_0x3d59da['MYVph'],_0x4f9016)):_0x58b9a8[_0xda923e(0xc8)](helper[_0xda923e(0xca)](_0x5df469[_0xda923e(0xe2)],_0x3d59da[_0xda923e(0xbd)],_0x4f9016));});let _0x5e8292,_0x9b844b;const _0x5959a9=[];if(_0x3d59da[_0x37c67f(0x81)](_0x58b9a8[_0x37c67f(0xbf)],0x0))_0x58b9a8[_0x37c67f(0xbc)]((_0xd0bcaf,_0x390e31)=>{const _0x54358b=_0x37c67f,_0x1c571d={};_0x1c571d[_0x54358b(0x93)]=_0x390e31,_0x5e8292={'server':helper[_0x54358b(0x8f)](_0x5df469[_0x54358b(0xe2)]),'proxySettings':_0x5df469['config'][_0x54358b(0xef)],'platform':helper['getPlatformName'](_0xd0bcaf),'platformCaps':Object[_0x54358b(0xd3)](_0x1c571d,_0x5df469[_0x54358b(0xe2)][_0x54358b(0xaa)][_0x390e31])};const _0x40216c={'capability':_0xd0bcaf,..._0x5e8292};_0x40216c[_0x54358b(0x87)]=_0x2febd7,_0x40216c['args']=_0x8d39d;const _0x5032af={};_0x5032af[_0x54358b(0x83)]=_0x40216c,_0x9b844b=_0x5032af,_0x5959a9[_0x54358b(0xc8)](_0x9b844b);});else{let _0x41061d;_0x15daed?_0x41061d=helper[_0x37c67f(0xe9)](_0x5df469[_0x37c67f(0xe2)],_0x3d59da[_0x37c67f(0xbd)],0x0):_0x41061d=helper[_0x37c67f(0xca)](_0x5df469[_0x37c67f(0xe2)],_0x3d59da['MYVph'],0x0);_0x5e8292={'server':helper[_0x37c67f(0x8f)](_0x5df469[_0x37c67f(0xe2)]),'proxySettings':_0x5df469[_0x37c67f(0xe2)][_0x37c67f(0xef)]};const _0x30930a={'capability':_0x41061d,..._0x5e8292};_0x30930a[_0x37c67f(0x87)]=_0x2febd7,_0x30930a[_0x37c67f(0x82)]=_0x8d39d;const _0x56afc3={};_0x56afc3['configuration']=_0x30930a,_0x9b844b=_0x56afc3,_0x5959a9[_0x37c67f(0xc8)](_0x9b844b);}!helper[_0x37c67f(0x8b)](_0x5df469[_0x37c67f(0xe2)][_0x37c67f(0xa8)])&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x37c67f(0x90)](_0x5df469[_0x37c67f(0xe2)][_0x37c67f(0xa8)]));let _0x549917=_0x5df469['config'][_0x37c67f(0xf2)];_0x549917=_0x549917||accessibilityHelper[_0x37c67f(0xae)](_0x5df469['config']);_0x3d59da['piRlZ'](_0x549917,!_0x15daed)&&(logger[_0x37c67f(0xaf)](_0x3d59da[_0x37c67f(0xdf)]),_0x549917=![]);process[_0x37c67f(0xb4)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x549917;if(_0x549917){const _0x5e8766=helper[_0x37c67f(0xa2)]();(_0x5df469[_0x37c67f(0xe2)][_0x37c67f(0xaa)]||[])['forEach'](_0x5a2a1a=>{const _0x1e73fb=_0x37c67f;if(!_0x5a2a1a||_0x5a2a1a['deviceName'])return;const _0x1a14cc=_0x5a2a1a[_0x1e73fb(0xa6)];if(!accessibilityHelper[_0x1e73fb(0xee)](_0x1a14cc)){logger[_0x1e73fb(0xaf)](_0x3d59da[_0x1e73fb(0x9d)]);return;}const _0x488c19=_0x5a2a1a['browserVersion']||_0x5a2a1a[_0x1e73fb(0x97)];if(helper[_0x1e73fb(0x8b)](_0x488c19)||!Number[_0x1e73fb(0x8a)](_0x3d59da[_0x1e73fb(0x92)](parseFloat,_0x3d59da[_0x1e73fb(0xc1)](String,_0x488c19))))return;const _0x574416=accessibilityHelper[_0x1e73fb(0xea)](_0x1a14cc,_0x5e8766),_0x3c99ad=_0x3d59da['XYtly'](parseFloat,_0x574416),_0x4249ab=_0x3d59da[_0x1e73fb(0xc1)](parseFloat,_0x3d59da[_0x1e73fb(0xa5)](String,_0x488c19)),_0x24e98a=Number['isFinite'](_0x3c99ad)?_0x3d59da['wCIbM'](_0x4249ab,_0x3c99ad):accessibilityHelper[_0x1e73fb(0xcb)](_0x488c19,_0x574416);if(!_0x24e98a){const _0x364882=accessibilityHelper[_0x1e73fb(0xe5)](_0x1a14cc),_0x1a87e1=_0x5e8766?'':_0x3d59da[_0x1e73fb(0xa0)];logger['warn'](_0x1e73fb(0xc4)+_0x364882+_0x1e73fb(0xd2)+_0x574416+'\x20'+_0x1a87e1+'.');}});}logger['info'](_0x37c67f(0x7d)+_0x549917);const _0xd2af95=BrowserstackCLI[_0x37c67f(0xa7)]();CLIUtils[_0x37c67f(0xdc)](FRAMEWORKS['NODE_GENERIC'],FRAMEWORKS[_0x37c67f(0x80)]);const {getProductMap:_0x5db7b8}=_0x3d59da['vuoDT'](require,_0x3d59da[_0x37c67f(0xd5)]);process[_0x37c67f(0xb4)][_0x37c67f(0xba)]=JSON[_0x37c67f(0x90)](_0x3d59da['AktyY'](_0x5db7b8,_0x5df469[_0x37c67f(0xe2)])),_0xd2af95[_0x37c67f(0xc5)](_0x5df469['config'],_0x5df469[_0x37c67f(0x9e)],_0x5df469[_0x37c67f(0xda)]);if(_0xd2af95['isCliEnabled']()){logger[_0x37c67f(0xeb)](_0x3d59da[_0x37c67f(0xe0)]);try{await _0xd2af95[_0x37c67f(0x94)](),logger[_0x37c67f(0xeb)](_0x3d59da[_0x37c67f(0x9b)]);try{const _0x3a0d1f=global['__accessibilityOptions']||{},_0x3227d6=_0x3a0d1f[_0x3d59da[_0x37c67f(0xf1)]];if(_0x3227d6){const _0x43b66c=JSON[_0x37c67f(0xa3)](process[_0x37c67f(0xb4)][_0x37c67f(0xde)]||'{}');_0x43b66c['scannerVersion']=_0x3227d6,process[_0x37c67f(0xb4)][_0x37c67f(0xde)]=JSON[_0x37c67f(0x90)](_0x43b66c),logger[_0x37c67f(0xeb)]('[TRACE:node-generic]\x20Accessibility\x20config\x20enriched\x20with\x20binary\x20scannerVersion='+_0x3227d6);}}catch(_0x179d9e){logger[_0x37c67f(0x85)](_0x37c67f(0x99)+_0x179d9e['message']);}const _0x10424a=_0x3d59da[_0x37c67f(0x88)](_0x5df469[_0x37c67f(0xe2)][_0x37c67f(0xaa)][_0x37c67f(0xbf)]||0x1,_0x5df469[_0x37c67f(0xe2)][_0x37c67f(0xcf)]||0x1);PerformanceTester['end'](PerformanceEvents['SDK_SETUP']),await _0x3d59da['ziCdF'](parallelVanillaRun,_0x5959a9,_0x10424a),logger[_0x37c67f(0xeb)](_0x3d59da['gcQFs']),await _0xd2af95[_0x37c67f(0xd7)]();}catch(_0x9b0504){logger[_0x37c67f(0xe4)](_0x37c67f(0xad)+_0x9b0504[_0x37c67f(0xf0)]);try{await _0xd2af95['stop']();}catch(_0x2878e3){logger[_0x37c67f(0x85)]('[TRACE:node-generic]\x20Error\x20during\x20stop:\x20'+_0x2878e3[_0x37c67f(0xf0)]);}}finally{PerformanceTester[_0x37c67f(0xd9)](PerformanceEvents['SDK_CLEANUP']),await utilities['finalExecution'](_0x5df469);}}else{logger[_0x37c67f(0xeb)](_0x3d59da[_0x37c67f(0x84)]);const _0x48e184=await TestHubHandler['launchBuild'](_0x3d59da[_0x37c67f(0xbd)],_0x5df469),_0x461ffe=_0x3d59da[_0x37c67f(0x88)](_0x5df469[_0x37c67f(0xe2)][_0x37c67f(0xaa)]['length']||0x1,_0x5df469[_0x37c67f(0xe2)][_0x37c67f(0xcf)]||0x1);PerformanceTester[_0x37c67f(0xcd)](PerformanceEvents['SDK_SETUP']),_0x3d59da[_0x37c67f(0xd8)](parallelVanillaRun,_0x5959a9,_0x461ffe)[_0x37c67f(0x89)](_0x4b82b4=>{})[_0x37c67f(0xb1)](async()=>{const _0x496f0c=_0x37c67f;PerformanceTester[_0x496f0c(0xd9)](PerformanceEvents['SDK_CLEANUP']),await utilities[_0x496f0c(0xa4)](_0x5df469);});}process['on'](_0x3d59da[_0x37c67f(0x7c)],async()=>{const _0x48c7ed=_0x37c67f;try{(_0xd2af95[_0x48c7ed(0xb9)]||_0xd2af95['isChildConnected'])&&(logger[_0x48c7ed(0xeb)](_0x3d59da[_0x48c7ed(0x8c)]),await _0xd2af95[_0x48c7ed(0xd7)]());}catch(_0x1aa691){}});}module[a120_0x325ca7(0x8e)]=run;
|
|
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;
|
package/src/browserStackSdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122_0x2f7d5b=a122_0x2c5d;(function(_0x2f0a96,_0x4c76b8){const _0x37ee4c=a122_0x2c5d,_0x483b3b=_0x2f0a96();while(!![]){try{const _0x49ae26=parseInt(_0x37ee4c(0x1f3))/0x1*(parseInt(_0x37ee4c(0x1e3))/0x2)+parseInt(_0x37ee4c(0x1f2))/0x3*(-parseInt(_0x37ee4c(0x1e4))/0x4)+-parseInt(_0x37ee4c(0x202))/0x5+-parseInt(_0x37ee4c(0x1ea))/0x6*(parseInt(_0x37ee4c(0x1f5))/0x7)+parseInt(_0x37ee4c(0x1f4))/0x8*(parseInt(_0x37ee4c(0x1ff))/0x9)+-parseInt(_0x37ee4c(0x1fb))/0xa+-parseInt(_0x37ee4c(0x1fd))/0xb*(-parseInt(_0x37ee4c(0x1fa))/0xc);if(_0x49ae26===_0x4c76b8)break;else _0x483b3b['push'](_0x483b3b['shift']());}catch(_0x31cb9b){_0x483b3b['push'](_0x483b3b['shift']());}}}(a122_0x2442,0x588c5));const TestMetadata=require('./helpers/metadata');class BrowserStackSdk{static[a122_0x2f7d5b(0x1e0)](){const _0x2c1126=a122_0x2f7d5b,_0x467d8a={};_0x467d8a[_0x2c1126(0x200)]=_0x2c1126(0x1ec),_0x467d8a['IEGtv']=_0x2c1126(0x1e6),_0x467d8a[_0x2c1126(0x1f6)]='browser',_0x467d8a[_0x2c1126(0x1fc)]=_0x2c1126(0x1e8),_0x467d8a[_0x2c1126(0x1fe)]='browser_version',_0x467d8a[_0x2c1126(0x1f7)]=_0x2c1126(0x1f1),_0x467d8a['guOPe']='device',_0x467d8a[_0x2c1126(0x1e7)]=_0x2c1126(0x1eb),_0x467d8a['Zjqwm']='platform',_0x467d8a[_0x2c1126(0x1e9)]='platformName',_0x467d8a[_0x2c1126(0x203)]=_0x2c1126(0x1e2),_0x467d8a[_0x2c1126(0x1ed)]=_0x2c1126(0x1ef),_0x467d8a[_0x2c1126(0x204)]=_0x2c1126(0x1f0);const _0x2ad44d=_0x467d8a,_0x1d5bc1={};if(global[_0x2c1126(0x1e5)]){const _0x584189=global[_0x2c1126(0x1e5)],_0x568006=_0x584189[_0x2ad44d['hPHpi']]||_0x584189[_0x2ad44d[_0x2c1126(0x1ee)]],_0x58f499=_0x584189[_0x2ad44d[_0x2c1126(0x1f6)]]||_0x584189[_0x2ad44d['knzxy']],_0x426ab3=_0x584189[_0x2ad44d['UtTvW']]||_0x584189[_0x2ad44d[_0x2c1126(0x1f7)]],_0x5034e4=_0x584189[_0x2ad44d[_0x2c1126(0x201)]]||_0x584189[_0x2ad44d[_0x2c1126(0x1e7)]],_0x297e21=_0x584189[_0x2ad44d['Zjqwm']]||_0x584189[_0x2ad44d['eUrUs']],_0x4d0707=_0x584189[_0x2ad44d[_0x2c1126(0x203)]]||_0x584189[_0x2ad44d[_0x2c1126(0x1ed)]];_0x584189['os']&&(_0x1d5bc1['os']=_0x584189['os']),_0x568006&&(_0x1d5bc1[_0x2ad44d[_0x2c1126(0x1ee)]]=_0x568006),_0x58f499&&(_0x1d5bc1[_0x2ad44d[_0x2c1126(0x1fc)]]=_0x58f499),_0x426ab3&&(_0x1d5bc1[_0x2ad44d[_0x2c1126(0x1f7)]]=_0x426ab3),_0x5034e4&&(_0x1d5bc1[_0x2ad44d[_0x2c1126(0x1e7)]]=_0x5034e4),_0x297e21&&(_0x1d5bc1[_0x2ad44d[_0x2c1126(0x1e9)]]=_0x297e21),_0x4d0707&&(_0x1d5bc1[_0x2ad44d['Ffwmg']]=_0x4d0707),_0x584189[_0x2ad44d[_0x2c1126(0x204)]]&&(_0x1d5bc1[_0x2ad44d[_0x2c1126(0x204)]]=_0x584189[_0x2ad44d[_0x2c1126(0x204)]]);}return _0x1d5bc1;}static[a122_0x2f7d5b(0x1f8)](_0x378843={}){const _0x354c21=a122_0x2f7d5b;TestMetadata[_0x354c21(0x1e1)](_0x378843);}}function a122_0x2c5d(_0x43ae80,_0x547455){const _0x24425d=a122_0x2442();return a122_0x2c5d=function(_0x2c5d35,_0x498dec){_0x2c5d35=_0x2c5d35-0x1e0;let _0x37c487=_0x24425d[_0x2c5d35];return _0x37c487;},a122_0x2c5d(_0x43ae80,_0x547455);}module[a122_0x2f7d5b(0x1f9)]=BrowserStackSdk;function a122_0x2442(){const _0x4ab111=['WfLTe','browserName','eUrUs','258xHNTTZ','deviceName','os_version','Ffwmg','IEGtv','platformVersion','customVariables','browserVersion','15ctzzJv','5081wUSLPE','805216bAoANk','112000pTsCbF','YYGLK','prdxC','setTestMetadata','exports','23116584YQBdts','1292600qEXbsg','knzxy','11kQWMXg','UtTvW','9DSLBCF','hPHpi','guOPe','3401795aYDCIP','PgSfB','wsjcA','getCurrentPlatform','set','platform_version','166dCKwfX','470756lmZayV','__platformCaps','osVersion'];a122_0x2442=function(){return _0x4ab111;};return a122_0x2442();}
|