browserstack-node-sdk 1.63.6 → 1.64.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/ai-sdk-node/bundle.js +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/builderPatch.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/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/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/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/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.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/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115_0x1a57e0=a115_0x274f;(function(_0x534e49,_0x26e23c){const _0x2d1f88=a115_0x274f,_0x14533a=_0x534e49();while(!![]){try{const _0x5dbea3=-parseInt(_0x2d1f88(0x109))/0x1+-parseInt(_0x2d1f88(0xfe))/0x2+parseInt(_0x2d1f88(0x104))/0x3*(-parseInt(_0x2d1f88(0x10a))/0x4)+-parseInt(_0x2d1f88(0x101))/0x5*(parseInt(_0x2d1f88(0x105))/0x6)+-parseInt(_0x2d1f88(0xfd))/0x7*(-parseInt(_0x2d1f88(0x10b))/0x8)+parseInt(_0x2d1f88(0xfb))/0x9+parseInt(_0x2d1f88(0x106))/0xa;if(_0x5dbea3===_0x26e23c)break;else _0x14533a['push'](_0x14533a['shift']());}catch(_0xf260b8){_0x14533a['push'](_0x14533a['shift']());}}}(a115_0x30f6,0xca322));const a115_0x29250a={};a115_0x29250a['value']=0x0,a115_0x29250a[a115_0x1a57e0(0xff)]=function(){const _0x5603ab=a115_0x1a57e0,_0x355ddc={};_0x355ddc[_0x5603ab(0xfa)]='HookState.NONE';const _0x18de2b=_0x355ddc;return _0x18de2b[_0x5603ab(0xfa)];};const a115_0x1764cf={};a115_0x1764cf[a115_0x1a57e0(0x102)]=0x1,a115_0x1764cf[a115_0x1a57e0(0xff)]=function(){const _0x2f36dc=a115_0x1a57e0,_0x4a643f={};_0x4a643f[_0x2f36dc(0xf9)]=_0x2f36dc(0x103);const _0x19c5dc=_0x4a643f;return _0x19c5dc['YEreV'];};const a115_0x5f22c8={};a115_0x5f22c8['value']=0x2,a115_0x5f22c8[a115_0x1a57e0(0xff)]=function(){const _0x91f79=a115_0x1a57e0,_0x3cfa5a={};_0x3cfa5a[_0x91f79(0x100)]=_0x91f79(0x108);const _0x4d3258=_0x3cfa5a;return _0x4d3258[_0x91f79(0x100)];};function a115_0x274f(_0x4996dc,_0x22f527){const _0x30f6c5=a115_0x30f6();return a115_0x274f=function(_0x274f71,_0x4ebdb1){_0x274f71=_0x274f71-0xf8;let _0x415495=_0x30f6c5[_0x274f71];return _0x415495;},a115_0x274f(_0x4996dc,_0x22f527);}const HookState=Object[a115_0x1a57e0(0x107)]({'NONE':a115_0x29250a,'PRE':a115_0x1764cf,'POST':a115_0x5f22c8,'fromValue'(_0x54ad01){const _0xae13a4=a115_0x1a57e0;return Object[_0xae13a4(0xfc)](HookState)['find'](_0x16729d=>_0x16729d[_0xae13a4(0x102)]===_0x54ad01);}});function a115_0x30f6(){const _0x8d2882=['134810vckhEQ','16whlhDu','24tWREkm','exports','YEreV','whfKf','14684940eRwnBE','values','2292920KYpUJH','1028770tkBHZT','toString','xTNVW','535iZACMG','value','HookState.PRE','942729lhjLNA','38586wlJzwX','8081380AiRwtW','freeze','HookState.POST'];a115_0x30f6=function(){return _0x8d2882;};return a115_0x30f6();}module[a115_0x1a57e0(0xf8)]=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x42d197=a116_0x3e56;(function(_0x2b032a,_0x26a920){const _0x162666=a116_0x3e56,_0x11bd15=_0x2b032a();while(!![]){try{const _0x3b2192=-parseInt(_0x162666(0xe7))/0x1*(parseInt(_0x162666(0xec))/0x2)+parseInt(_0x162666(0xd5))/0x3*(parseInt(_0x162666(0xe5))/0x4)+parseInt(_0x162666(0xed))/0x5+-parseInt(_0x162666(0xe6))/0x6*(-parseInt(_0x162666(0xe3))/0x7)+-parseInt(_0x162666(0xd7))/0x8*(parseInt(_0x162666(0xdf))/0x9)+parseInt(_0x162666(0xf2))/0xa*(parseInt(_0x162666(0xd6))/0xb)+-parseInt(_0x162666(0xd0))/0xc;if(_0x3b2192===_0x26a920)break;else _0x11bd15['push'](_0x11bd15['shift']());}catch(_0x2ec567){_0x11bd15['push'](_0x11bd15['shift']());}}}(a116_0x1480,0xf19bb));const a116_0x5bbd09={};function a116_0x1480(){const _0x1b70e1=['RhHCL','gUvMN','7067352ZSQhuz','TestFrameworkState.AFTER_ALL','find','tKmgK','exports','2454324bKnXpG','11hCNqrx','184YFnNLG','toString','AKEoM','RnYJg','TestFrameworkState.BEFORE_ALL','TestFrameworkState.LOG_REPORT','zqRFa','sEFlk','756243KRbNjh','TestFrameworkState.BEFORE_EACH','value','TestFrameworkState.LOG','3241SRfqfq','TestFrameworkState.NONE','4olqeNP','22206dwRakC','358573goIRUx','FHpNv','TestFrameworkState.TEST','xXeDt','hDBXv','2ZksxBC','2024470TFvYxV','TestFrameworkState.SETUP_FIXTURE','values','CAIek','aJEKF','9332020EShgxl','TestFrameworkState.INIT_TEST','TestFrameworkState.TEST_STEP','Xkqpm'];a116_0x1480=function(){return _0x1b70e1;};return a116_0x1480();}a116_0x5bbd09[a116_0x42d197(0xe1)]=0x0,a116_0x5bbd09[a116_0x42d197(0xd8)]=function(){const _0x171aba=a116_0x42d197,_0x5efc01={};_0x5efc01[_0x171aba(0xf1)]=_0x171aba(0xe4);const _0x42b5e1=_0x5efc01;return _0x42b5e1['aJEKF'];};const a116_0x41b419={};a116_0x41b419['value']=0x1,a116_0x41b419['toString']=function(){const _0x2af270=a116_0x42d197,_0x5195ef={};_0x5195ef[_0x2af270(0xf0)]=_0x2af270(0xdb);const _0x4d8276=_0x5195ef;return _0x4d8276['CAIek'];};const a116_0x25b1eb={};a116_0x25b1eb[a116_0x42d197(0xe1)]=0x2,a116_0x25b1eb[a116_0x42d197(0xd8)]=function(){const _0x182b86=a116_0x42d197,_0x2b46f8={};_0x2b46f8['FHpNv']=_0x182b86(0xe2);const _0x15f84f=_0x2b46f8;return _0x15f84f[_0x182b86(0xe8)];};const a116_0x21ef41={};a116_0x21ef41[a116_0x42d197(0xe1)]=0x3,a116_0x21ef41[a116_0x42d197(0xd8)]=function(){const _0x2ba084=a116_0x42d197,_0x443abf={};_0x443abf[_0x2ba084(0xd9)]=_0x2ba084(0xee);const _0x48b480=_0x443abf;return _0x48b480[_0x2ba084(0xd9)];};function a116_0x3e56(_0x220006,_0x28f3ba){const _0x14808f=a116_0x1480();return a116_0x3e56=function(_0x3e5636,_0x123d7d){_0x3e5636=_0x3e5636-0xd0;let _0x547d91=_0x14808f[_0x3e5636];return _0x547d91;},a116_0x3e56(_0x220006,_0x28f3ba);}const a116_0x2778e2={};a116_0x2778e2['value']=0x4,a116_0x2778e2['toString']=function(){const _0x5056c6=a116_0x42d197,_0x102414={};_0x102414[_0x5056c6(0xda)]=_0x5056c6(0xf3);const _0x32b5f7=_0x102414;return _0x32b5f7[_0x5056c6(0xda)];};const a116_0x2e131f={};a116_0x2e131f[a116_0x42d197(0xe1)]=0x5,a116_0x2e131f[a116_0x42d197(0xd8)]=function(){const _0x479bd1=a116_0x42d197,_0x435db6={};_0x435db6[_0x479bd1(0xdd)]=_0x479bd1(0xe0);const _0x10acaa=_0x435db6;return _0x10acaa[_0x479bd1(0xdd)];};const a116_0x5b6981={};a116_0x5b6981[a116_0x42d197(0xe1)]=0x6,a116_0x5b6981[a116_0x42d197(0xd8)]=function(){const _0xdc9ef0=a116_0x42d197,_0x2b61d0={};_0x2b61d0[_0xdc9ef0(0xeb)]='TestFrameworkState.AFTER_EACH';const _0x567dfa=_0x2b61d0;return _0x567dfa[_0xdc9ef0(0xeb)];};const a116_0x5c0cb3={};a116_0x5c0cb3[a116_0x42d197(0xe1)]=0x7,a116_0x5c0cb3[a116_0x42d197(0xd8)]=function(){const _0x52ebfe=a116_0x42d197,_0x5a3515={};_0x5a3515[_0x52ebfe(0xf5)]=_0x52ebfe(0xe9);const _0x3a4de8=_0x5a3515;return _0x3a4de8[_0x52ebfe(0xf5)];};const a116_0x2923c3={};a116_0x2923c3['value']=0x8,a116_0x2923c3[a116_0x42d197(0xd8)]=function(){const _0x35a3f6=a116_0x42d197,_0x2c9d0b={};_0x2c9d0b[_0x35a3f6(0xd3)]='TestFrameworkState.STEP';const _0x1bf64b=_0x2c9d0b;return _0x1bf64b['tKmgK'];};const a116_0x4858ba={};a116_0x4858ba[a116_0x42d197(0xe1)]=0x9,a116_0x4858ba['toString']=function(){const _0x328864=a116_0x42d197,_0x314a8c={};_0x314a8c[_0x328864(0xde)]=_0x328864(0xdc);const _0x28bed9=_0x314a8c;return _0x28bed9['sEFlk'];};const a116_0x5709e5={};a116_0x5709e5[a116_0x42d197(0xe1)]=0xa,a116_0x5709e5['toString']=function(){const _0x2357af=a116_0x42d197,_0x1761e0={};_0x1761e0[_0x2357af(0xf7)]=_0x2357af(0xd1);const _0xf9efee=_0x1761e0;return _0xf9efee[_0x2357af(0xf7)];};const a116_0x262b55={};a116_0x262b55['value']=0xb,a116_0x262b55['toString']=function(){const _0x14b230=a116_0x42d197,_0x510fc1={};_0x510fc1['RhHCL']='TestFrameworkState.TEST_SCREENSHOT';const _0x1f5ce0=_0x510fc1;return _0x1f5ce0[_0x14b230(0xf6)];};const a116_0x4c1064={};a116_0x4c1064['value']=0xc,a116_0x4c1064[a116_0x42d197(0xd8)]=function(){const _0x516ddd=a116_0x42d197,_0x4f4461={};_0x4f4461['xXeDt']=_0x516ddd(0xf4);const _0x3686f6=_0x4f4461;return _0x3686f6[_0x516ddd(0xea)];};const TestFrameworkState=Object['freeze']({'NONE':a116_0x5bbd09,'BEFORE_ALL':a116_0x41b419,'LOG':a116_0x25b1eb,'SETUP_FIXTURE':a116_0x21ef41,'INIT_TEST':a116_0x2778e2,'BEFORE_EACH':a116_0x2e131f,'AFTER_EACH':a116_0x5b6981,'TEST':a116_0x5c0cb3,'STEP':a116_0x2923c3,'LOG_REPORT':a116_0x4858ba,'AFTER_ALL':a116_0x5709e5,'TEST_SCREENSHOT':a116_0x262b55,'TEST_STEP':a116_0x4c1064,'fromValue'(_0x1d377c){const _0x57a34b=a116_0x42d197;return Object[_0x57a34b(0xef)](TestFrameworkState)[_0x57a34b(0xd2)](_0x26eeaf=>_0x26eeaf[_0x57a34b(0xe1)]===_0x1d377c);}});module[a116_0x42d197(0xd4)]=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a117_0x14f5(){const _0x10e5e1=['FiQqX','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','11161128CiicOj','wygfT','neRwX','nrhkL','dSrLI','format','util','TlTnP','statusCode','File\x20downloaded\x20to:\x20%s','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','buildHashedId','PSgmn','127230wyiFCP','isRunning','FOmtX','18KAavHN','gtSzW','KEY_TEST_ATTACHMENTS','anhjb','close','.browserstack','./browserstackCLI','ucawz','ByofJ','testhubConfig','560RLPzbj','resolveInstance','WYdVu','KEY_FILE_SIZE','Created\x20.browserstack\x20folder\x20at:\x20%s','rmSync','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','Attachment\x20recevied\x20for\x20path:\x20%s','paQeE','TestHubModule','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','size','modules','copyFileSync','UGcaM','Jgrnb','addMultipleEntries','fpXyi','oJNqt','fUIJJ','name',',\x20filepath:\x20','path','5456yhpuJe','9VaiHKd','./state/hookState','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','EJWBx','get','2111104pjoyYg','CFmoy','uploadAttachmentsManager','FhflF','join','nIhXj','VqlEx','./cliUtils','oidWt','homedir','getTestDetails','logger','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','./framework/automationFramework','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','XDyZj','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','1247429LiMgBY','WNYKF','oMuPS','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','http://','KEY_FILE_PATH','message','2371940SVfwtr','unlinkSync','SAKEl','statSync','XPVvc','getState','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','./framework/constants/testFrameworkConstants','trim','mkdirSync','getTestFramework','recursive','KEY_TEST_ID','existsSync','ziRKe','POST','./TestInfo','toLowerCase','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','error','VnDDM','gVEVl','toFixed','KEY_FILE_LEVEL','3057187aiaHmo','fiCCg','dCwgJ','PCdlj','wpFFi','clearAttachments','getInstance','https','basename','SGBQD','OytmC','pipe','retry','uploadAttachments','KEY_FILE_NAME','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','trackFile','http','toObject','currentTest','BJgdA','1317adXzee','debug','https://','startsWith','__jestCurrentTestIdentifier','BuildLevel','finish','wmMdp','testInfo','./modules/playwrightDriverModule','IPhpQ','exports'];a117_0x14f5=function(){return _0x10e5e1;};return a117_0x14f5();}const a117_0x3193da=a117_0x39ab;function a117_0x39ab(_0x5e15e4,_0x15725f){const _0x14f5d7=a117_0x14f5();return a117_0x39ab=function(_0x39ab97,_0x558e0c){_0x39ab97=_0x39ab97-0x160;let _0x5819c9=_0x14f5d7[_0x39ab97];return _0x5819c9;},a117_0x39ab(_0x5e15e4,_0x15725f);}(function(_0x6475a3,_0x248284){const _0x26a098=a117_0x39ab,_0x49f3c1=_0x6475a3();while(!![]){try{const _0x4b5aeb=-parseInt(_0x26a098(0x1c9))/0x1+-parseInt(_0x26a098(0x1b8))/0x2+-parseInt(_0x26a098(0x173))/0x3*(parseInt(_0x26a098(0x19b))/0x4)+-parseInt(_0x26a098(0x1d0))/0x5+parseInt(_0x26a098(0x191))/0x6*(-parseInt(_0x26a098(0x1e8))/0x7)+parseInt(_0x26a098(0x181))/0x8*(-parseInt(_0x26a098(0x1b3))/0x9)+-parseInt(_0x26a098(0x18e))/0xa*(-parseInt(_0x26a098(0x1b2))/0xb);if(_0x4b5aeb===_0x248284)break;else _0x49f3c1['push'](_0x49f3c1['shift']());}catch(_0x40bc80){_0x49f3c1['push'](_0x49f3c1['shift']());}}}(a117_0x14f5,0xbb1cf));const os=require('os'),fs=require('fs'),path=require(a117_0x3193da(0x1b1)),util=require(a117_0x3193da(0x187)),BrowserstackCLI=require(a117_0x3193da(0x197)),https=require(a117_0x3193da(0x165)),http=require(a117_0x3193da(0x16f)),AutomationFramework=require(a117_0x3193da(0x1c5)),PlaywrightDriverModule=require(a117_0x3193da(0x17c)),TestInfo=require(a117_0x3193da(0x1e0)),TestFrameworkConstants=require(a117_0x3193da(0x1d7)),{createClassLogger}=require('../../helpers/classLogger.js');class uploadAttachmentsManager{static ['logger']=createClassLogger(a117_0x3193da(0x1ba));static[a117_0x3193da(0x16b)](_0x351768,_0x43a71e=![]){const _0xbaf58a=a117_0x3193da,_0x55077a={};_0x55077a[_0xbaf58a(0x1ca)]=function(_0x4f8a76,_0x48c86b){return _0x4f8a76/_0x48c86b;},_0x55077a[_0xbaf58a(0x1ac)]=function(_0x198278,_0x11f2c4){return _0x198278*_0x11f2c4;},_0x55077a[_0xbaf58a(0x1a9)]=function(_0x30ef59,_0x2c33b8){return _0x30ef59>_0x2c33b8;},_0x55077a[_0xbaf58a(0x167)]=_0xbaf58a(0x180),_0x55077a[_0xbaf58a(0x198)]=_0xbaf58a(0x18a),_0x55077a['BJgdA']=function(_0x463173,_0x3a1c32){return _0x463173===_0x3a1c32;},_0x55077a['fiCCg']=_0xbaf58a(0x179),_0x55077a[_0xbaf58a(0x1bd)]=_0xbaf58a(0x1c4),_0x55077a[_0xbaf58a(0x1ae)]='Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload',_0x55077a[_0xbaf58a(0x161)]=_0xbaf58a(0x1a2),_0x55077a[_0xbaf58a(0x1bb)]=_0xbaf58a(0x196),_0x55077a[_0xbaf58a(0x17f)]='.browserstack\x20folder\x20not\x20found\x20at:\x20%s',_0x55077a[_0xbaf58a(0x1d2)]=_0xbaf58a(0x19f),_0x55077a['oJNqt']='Created\x20folder:\x20%s',_0x55077a[_0xbaf58a(0x199)]=function(_0x14d11f,_0x59109d){return _0x14d11f===_0x59109d;},_0x55077a[_0xbaf58a(0x1a3)]=_0xbaf58a(0x16d),_0x55077a[_0xbaf58a(0x1e5)]=_0xbaf58a(0x175),_0x55077a[_0xbaf58a(0x1cb)]=_0xbaf58a(0x1cd),_0x55077a['neRwX']=_0xbaf58a(0x1e3),_0x55077a['OytmC']='Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s',_0x55077a[_0xbaf58a(0x1e4)]=function(_0x5b78cc,_0x2f7295){return _0x5b78cc*_0x2f7295;},_0x55077a[_0xbaf58a(0x162)]=function(_0x904b5,_0x8062c8){return _0x904b5>_0x8062c8;},_0x55077a[_0xbaf58a(0x17d)]=_0xbaf58a(0x1d6);const _0x2b0afe=_0x55077a;this[_0xbaf58a(0x1c3)]['debug'](util[_0xbaf58a(0x186)](_0x2b0afe[_0xbaf58a(0x161)],_0x351768));const _0x161c66=os[_0xbaf58a(0x1c1)](),_0x49082e=path[_0xbaf58a(0x1bc)](_0x161c66,_0x2b0afe['FhflF']);!fs[_0xbaf58a(0x1dd)](_0x49082e)&&(this[_0xbaf58a(0x1c3)]['debug'](util[_0xbaf58a(0x186)](_0x2b0afe[_0xbaf58a(0x17f)],_0x49082e)),fs[_0xbaf58a(0x1d9)](_0x49082e),this['logger'][_0xbaf58a(0x174)](util[_0xbaf58a(0x186)](_0x2b0afe[_0xbaf58a(0x1d2)],_0x49082e)));const _0x59ce90=BrowserstackCLI['getInstance']()[_0xbaf58a(0x1a7)][_0xbaf58a(0x1a4)]?.[_0xbaf58a(0x19a)]?.[_0xbaf58a(0x170)]()?.[_0xbaf58a(0x18c)],_0x590bed=path[_0xbaf58a(0x1bc)](_0x49082e,_0x59ce90);!fs[_0xbaf58a(0x1dd)](_0x590bed)&&(fs[_0xbaf58a(0x1d9)](_0x590bed),this[_0xbaf58a(0x1c3)][_0xbaf58a(0x174)](util[_0xbaf58a(0x186)](_0x2b0afe[_0xbaf58a(0x1ad)],_0x590bed)));if(_0x2b0afe['ByofJ'](_0x351768[_0xbaf58a(0x1d8)](),'')){this[_0xbaf58a(0x1c3)][_0xbaf58a(0x174)](util['format'](_0x2b0afe['paQeE']));return;}if(_0x351768[_0xbaf58a(0x176)](_0x2b0afe[_0xbaf58a(0x1e5)])||_0x351768['startsWith'](_0x2b0afe['oMuPS'])){const _0x5cffb8=_0x351768[_0xbaf58a(0x176)](_0x2b0afe['gVEVl'])?https:http,_0x1a69eb=path[_0xbaf58a(0x166)](_0x351768),_0x287d7c=path[_0xbaf58a(0x1bc)](_0x590bed,_0x1a69eb),_0x36307e=fs['createWriteStream'](_0x287d7c);_0x5cffb8[_0xbaf58a(0x1b7)](_0x351768,_0x2e42ec=>{const _0xfbedbe=_0xbaf58a,_0x2cebaf={'VqlEx':function(_0x46092b,_0x1dbeec){return _0x2b0afe['WNYKF'](_0x46092b,_0x1dbeec);},'KBUBH':function(_0x35ff40,_0xb56130){const _0x37bdf7=a117_0x39ab;return _0x2b0afe[_0x37bdf7(0x1ac)](_0x35ff40,_0xb56130);},'anhjb':function(_0x4a061f,_0x30b233){const _0x37853b=a117_0x39ab;return _0x2b0afe[_0x37853b(0x1a9)](_0x4a061f,_0x30b233);},'ziRKe':_0x2b0afe[_0xfbedbe(0x167)],'PSgmn':_0x2b0afe[_0xfbedbe(0x198)]};if(_0x2b0afe[_0xfbedbe(0x172)](_0x2e42ec['statusCode'],0xc8))_0x2e42ec[_0xfbedbe(0x169)](_0x36307e),_0x36307e['on'](_0x2b0afe[_0xfbedbe(0x1e9)],()=>{const _0x4c6f3f=_0xfbedbe;_0x36307e[_0x4c6f3f(0x195)]();const _0x34dade=fs[_0x4c6f3f(0x1d3)](_0x287d7c),_0x123516=_0x2cebaf[_0x4c6f3f(0x1be)](_0x34dade[_0x4c6f3f(0x1a6)],_0x2cebaf['KBUBH'](0x400,0x400));if(_0x2cebaf[_0x4c6f3f(0x194)](_0x123516,0x64)){this[_0x4c6f3f(0x1c3)][_0x4c6f3f(0x174)](util[_0x4c6f3f(0x186)](_0x2cebaf[_0x4c6f3f(0x1de)],_0x123516[_0x4c6f3f(0x1e6)](0x2))),fs[_0x4c6f3f(0x1d1)](_0x287d7c);return;}this[_0x4c6f3f(0x1c3)][_0x4c6f3f(0x174)](util[_0x4c6f3f(0x186)](_0x2cebaf[_0x4c6f3f(0x18d)],_0x287d7c)),uploadAttachmentsManager[_0x4c6f3f(0x16e)](_0x287d7c,_0x43a71e);});else{this[_0xfbedbe(0x1c3)][_0xfbedbe(0x174)](util[_0xfbedbe(0x186)](_0x2b0afe['nIhXj'],_0x2e42ec[_0xfbedbe(0x189)])),_0x36307e[_0xfbedbe(0x195)](),fs[_0xfbedbe(0x1d1)](_0x287d7c);return;}})['on'](_0x2b0afe[_0xbaf58a(0x183)],_0x135205=>{const _0x26374a=_0xbaf58a;this[_0x26374a(0x1c3)]['debug'](util[_0x26374a(0x186)](_0x2b0afe[_0x26374a(0x1ae)],_0x135205['message'])),_0x36307e[_0x26374a(0x195)](),fs[_0x26374a(0x1d1)](_0x287d7c);return;});}else{if(!fs[_0xbaf58a(0x1dd)](_0x351768)){this[_0xbaf58a(0x1c3)][_0xbaf58a(0x174)](util[_0xbaf58a(0x186)](_0x2b0afe[_0xbaf58a(0x168)],_0x351768));return;}const _0x208160=fs[_0xbaf58a(0x1d3)](_0x351768),_0x342679=_0x2b0afe[_0xbaf58a(0x1ca)](_0x208160[_0xbaf58a(0x1a6)],_0x2b0afe['VnDDM'](0x400,0x400));if(_0x2b0afe['wpFFi'](_0x342679,0x64)){this[_0xbaf58a(0x1c3)][_0xbaf58a(0x174)](util[_0xbaf58a(0x186)](_0x2b0afe['IPhpQ'],_0x342679[_0xbaf58a(0x1e6)](0x2)));return;}const _0x195384=path['basename'](_0x351768),_0x3e1c5b=path['join'](_0x590bed,_0x195384);fs[_0xbaf58a(0x1a8)](_0x351768,_0x3e1c5b),uploadAttachmentsManager['trackFile'](_0x3e1c5b,_0x43a71e);}}static[a117_0x3193da(0x16e)](_0x3d7402,_0x2596e6){const _0x3cb8d7=a117_0x3193da,_0xa47d0e={'oidWt':function(_0x9b961e,_0x397954){return _0x9b961e(_0x397954);},'TlTnP':_0x3cb8d7(0x197),'gtSzW':function(_0x3ec577,_0x168b6b){return _0x3ec577(_0x168b6b);},'nWRow':_0x3cb8d7(0x1bf),'wmMdp':function(_0x40da3f,_0x453508){return _0x40da3f===_0x453508;},'XPVvc':'jest','XDyZj':_0x3cb8d7(0x1c6),'FOmtX':_0x3cb8d7(0x178),'dCwgJ':'TestLevel','tHxVZ':_0x3cb8d7(0x1a5),'nrhkL':function(_0x588c82,_0x595431){return _0x588c82(_0x595431);},'wygfT':'./state/testFrameworkState','CFmoy':function(_0x41caab,_0x2abae8){return _0x41caab(_0x2abae8);},'Jgrnb':_0x3cb8d7(0x1b4),'dSrLI':_0x3cb8d7(0x18b),'cDwKv':_0x3cb8d7(0x1e2),'ZpGJI':'Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload'};try{let _0x21d709;const _0x1c4ca7=global['__workerDetails']?.[_0x3cb8d7(0x171)]?.[_0x3cb8d7(0x17b)],_0x41f9c0=_0xa47d0e[_0x3cb8d7(0x1c0)](require,_0xa47d0e[_0x3cb8d7(0x188)]),_0x4199c9=_0xa47d0e[_0x3cb8d7(0x192)](require,_0xa47d0e['nWRow']),_0x487942=_0x41f9c0[_0x3cb8d7(0x164)]()[_0x3cb8d7(0x18f)]()&&_0xa47d0e[_0x3cb8d7(0x17a)](_0x4199c9['getTestFrameworkDetail']()?.[_0x3cb8d7(0x1af)]?.[_0x3cb8d7(0x1e1)](),_0xa47d0e[_0x3cb8d7(0x1d4)]);if(_0x487942){_0x21d709=global[_0x3cb8d7(0x177)];if(!_0x21d709){const _0x38b3ca=AutomationFramework['getTrackedInstance']();_0x21d709=AutomationFramework[_0x3cb8d7(0x1d5)](_0x38b3ca,PlaywrightDriverModule[_0x3cb8d7(0x1dc)],'');}this[_0x3cb8d7(0x1c3)]['debug'](_0x3cb8d7(0x1cc)+_0x21d709);}else{if(!_0x1c4ca7){const _0x36ba96=AutomationFramework['getTrackedInstance']();_0x21d709=AutomationFramework['getState'](_0x36ba96,PlaywrightDriverModule[_0x3cb8d7(0x1dc)],'');}else _0x21d709=TestInfo['getTestIdentifierFromTestInfo'](_0x1c4ca7,_0x1c4ca7[_0x3cb8d7(0x16a)]);this[_0x3cb8d7(0x1c3)][_0x3cb8d7(0x174)]('trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20'+_0x21d709);}if(!_0x21d709){this[_0x3cb8d7(0x1c3)]['debug'](_0xa47d0e[_0x3cb8d7(0x1c7)]);return;}const _0xb188a9={[TestFrameworkConstants[_0x3cb8d7(0x19e)]]:fs[_0x3cb8d7(0x1d3)](_0x3d7402)[_0x3cb8d7(0x1a6)],[TestFrameworkConstants[_0x3cb8d7(0x16c)]]:path[_0x3cb8d7(0x166)](_0x3d7402),[TestFrameworkConstants[_0x3cb8d7(0x1ce)]]:_0x3d7402,[TestFrameworkConstants[_0x3cb8d7(0x1e7)]]:_0x2596e6?_0xa47d0e[_0x3cb8d7(0x190)]:_0xa47d0e[_0x3cb8d7(0x160)]};if(_0x487942){const _0x516a3d=_0x41f9c0[_0x3cb8d7(0x164)]()[_0x3cb8d7(0x1da)]();if(!_0x516a3d){this[_0x3cb8d7(0x1c3)][_0x3cb8d7(0x174)](_0xa47d0e['tHxVZ']);return;}const _0x25931c=_0xa47d0e[_0x3cb8d7(0x184)](require,_0xa47d0e[_0x3cb8d7(0x182)]),_0x2a1648=_0xa47d0e[_0x3cb8d7(0x1b9)](require,_0xa47d0e[_0x3cb8d7(0x1aa)]),_0xc874ed=_0x516a3d[_0x3cb8d7(0x19c)](_0x25931c['TEST'],_0x2a1648[_0x3cb8d7(0x1df)]);if(!_0xc874ed){this['logger'][_0x3cb8d7(0x174)](_0xa47d0e[_0x3cb8d7(0x185)]);return;}const _0x4d2bd6=_0xc874ed['getAllData']()['get'](_0x21d709)||{},_0x3bc547=_0x4d2bd6[TestFrameworkConstants[_0x3cb8d7(0x193)]]||{},_0x3f268f={..._0x3bc547};_0x3f268f[_0x3d7402]=_0xb188a9;const _0x57dbc1=_0x3f268f,_0x3d7a1a={[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]:_0x57dbc1},_0x193b8e={};_0x193b8e[_0x21d709]=_0x3d7a1a,_0xc874ed[_0x3cb8d7(0x1ab)](_0x193b8e),this[_0x3cb8d7(0x1c3)][_0x3cb8d7(0x174)](_0x3cb8d7(0x1b5)+_0x21d709+_0x3cb8d7(0x1b0)+_0x3d7402);}else{const _0x3c92c5=TestInfo[_0x3cb8d7(0x1c2)](_0x21d709),_0x1b8731=_0x3c92c5[TestFrameworkConstants[_0x3cb8d7(0x193)]]||{};_0x1b8731[_0x3d7402]=_0xb188a9,_0x3c92c5[TestFrameworkConstants[_0x3cb8d7(0x193)]]=_0x1b8731,TestInfo['setTestDetails'](_0x21d709,_0x3c92c5),this[_0x3cb8d7(0x1c3)]['debug'](_0x3cb8d7(0x1c8)+_0x21d709+_0x3cb8d7(0x1b0)+_0x3d7402);}this[_0x3cb8d7(0x1c3)][_0x3cb8d7(0x174)](util[_0x3cb8d7(0x186)](_0xa47d0e['cDwKv'],_0x3d7402));}catch(_0x31cfe5){this[_0x3cb8d7(0x1c3)][_0x3cb8d7(0x174)](util[_0x3cb8d7(0x186)](_0xa47d0e['ZpGJI'],_0x31cfe5[_0x3cb8d7(0x1cf)]));}}static[a117_0x3193da(0x163)](){const _0x207ecd=a117_0x3193da,_0x44ddd7={};_0x44ddd7['HBMFA']=_0x207ecd(0x196),_0x44ddd7['WYdVu']=_0x207ecd(0x1a1),_0x44ddd7[_0x207ecd(0x1b6)]='Cleared\x20attachment\x20folder';const _0x2f2f5d=_0x44ddd7,_0x58b2a2=os[_0x207ecd(0x1c1)](),_0x28bec3=path[_0x207ecd(0x1bc)](_0x58b2a2,_0x2f2f5d['HBMFA']);if(!fs['existsSync'](_0x28bec3))return;const _0x2a70d6=BrowserstackCLI['getInstance']()['modules'][_0x207ecd(0x1a4)]?.[_0x207ecd(0x19a)]?.[_0x207ecd(0x170)]()?.['buildHashedId'],_0x4d5070=_0x2a70d6?path['join'](_0x28bec3,_0x2a70d6):null;if(!_0x4d5070||!fs[_0x207ecd(0x1dd)](_0x4d5070)){this[_0x207ecd(0x1c3)][_0x207ecd(0x174)](util[_0x207ecd(0x186)](_0x2f2f5d[_0x207ecd(0x19d)],_0x2a70d6));return;}const _0x51513b={};_0x51513b[_0x207ecd(0x1db)]=!![],_0x51513b['force']=!![],fs[_0x207ecd(0x1a0)](_0x4d5070,_0x51513b),this[_0x207ecd(0x1c3)]['debug'](util[_0x207ecd(0x186)](_0x2f2f5d['EJWBx']));}}module[a117_0x3193da(0x17e)]=uploadAttachmentsManager;
|
|
1
|
+
function a117_0x4a25(_0x584e49,_0xa6f2d5){const _0x17c5f7=a117_0x17c5();return a117_0x4a25=function(_0x4a25f6,_0x3a12bf){_0x4a25f6=_0x4a25f6-0x17c;let _0x1cbc39=_0x17c5f7[_0x4a25f6];return _0x1cbc39;},a117_0x4a25(_0x584e49,_0xa6f2d5);}function a117_0x17c5(){const _0x7a5f8b=['peXKC','1278QYTAxH','KEY_TEST_ID','trim','POST','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','KEY_FILE_NAME','2068610FTYQTj','finish','FJMxt','basename','size','MNxdi','http','join','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','resolveInstance','mkdirSync','getTestIdentifierFromTestInfo','rmSync','KmORg','trackFile','tMhPn','NZAui','logger','TEST','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','currentTest','Cleared\x20attachment\x20folder','CxmQX','./TestInfo','xjwSO','getTrackedInstance','statusCode','toObject','File\x20downloaded\x20to:\x20%s','jVpyF','62811iTBBjJ','./state/hookState','VbMwi','36INUACq','xhUez','homedir','./state/testFrameworkState','modules','BuildLevel','QqGEF','LJlft','isRunning','__jestCurrentTestIdentifier','KEY_FILE_PATH','YUyPg','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','BqzqR','testhubConfig','getTestDetails','QgvOn','40552QFHwof','http://','fcmUL','createWriteStream','./framework/automationFramework','1193187IBOEkt','KEY_TEST_ATTACHMENTS','debug','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','addMultipleEntries','TestHubModule','TestLevel','mqyWC','./browserstackCLI','mphTr','setTestDetails','626gaTqPH','getTestFramework','MBfEp','rOmsc','getInstance','buildHashedId','KEY_FILE_LEVEL','PmfnE','ahldV','avLey','ANCQm','./cliUtils','exports','existsSync','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','TjnUG','util','erXRc','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','https','UBezH','dsLSc','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','statSync','DQtXy','XwMgh','getAllData','uploadAttachments','RrnVZ','./modules/playwrightDriverModule','close','startsWith','__workerDetails','get','NZgtL','yxeuw','getState','Created\x20.browserstack\x20folder\x20at:\x20%s','3137570JkYHYN','glTVQ','4935852tDaiWH','xhbXi','Attachment\x20recevied\x20for\x20path:\x20%s','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','336cKVoaL','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','HhfCH','message','kWLlX','pipe','recursive','tCHjk','unlinkSync','format','EDsgR','sRMsw','jest','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','../../helpers/classLogger.js'];a117_0x17c5=function(){return _0x7a5f8b;};return a117_0x17c5();}const a117_0x1a7b88=a117_0x4a25;(function(_0xe97488,_0x8022c4){const _0x509760=a117_0x4a25,_0x56269d=_0xe97488();while(!![]){try{const _0x5438b2=parseInt(_0x509760(0x1c7))/0x1*(-parseInt(_0x509760(0x17e))/0x2)+-parseInt(_0x509760(0x1bc))/0x3+-parseInt(_0x509760(0x1b7))/0x4+-parseInt(_0x509760(0x184))/0x5+parseInt(_0x509760(0x1ef))/0x6+-parseInt(_0x509760(0x1a2))/0x7*(parseInt(_0x509760(0x1f3))/0x8)+parseInt(_0x509760(0x1a5))/0x9*(parseInt(_0x509760(0x1ed))/0xa);if(_0x5438b2===_0x8022c4)break;else _0x56269d['push'](_0x56269d['shift']());}catch(_0x5f5865){_0x56269d['push'](_0x56269d['shift']());}}}(a117_0x17c5,0x74fe1));const os=require('os'),fs=require('fs'),path=require('path'),util=require(a117_0x1a7b88(0x1d7)),BrowserstackCLI=require(a117_0x1a7b88(0x1c4)),https=require(a117_0x1a7b88(0x1da)),http=require(a117_0x1a7b88(0x18a)),AutomationFramework=require(a117_0x1a7b88(0x1bb)),PlaywrightDriverModule=require(a117_0x1a7b88(0x1e4)),TestInfo=require(a117_0x1a7b88(0x19b)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require(a117_0x1a7b88(0x17c));class uploadAttachmentsManager{static [a117_0x1a7b88(0x195)]=createClassLogger('uploadAttachmentsManager');static[a117_0x1a7b88(0x1e2)](_0x49ca57,_0x81d3fb=![]){const _0x56ce81=a117_0x1a7b88,_0x338d71={};_0x338d71[_0x56ce81(0x1c9)]=function(_0x35b68c,_0x3e6c4c){return _0x35b68c/_0x3e6c4c;},_0x338d71['CxmQX']=function(_0x11eca5,_0x584cbd){return _0x11eca5*_0x584cbd;},_0x338d71[_0x56ce81(0x1b0)]=function(_0x4faba4,_0x344701){return _0x4faba4>_0x344701;},_0x338d71[_0x56ce81(0x1e3)]='Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.',_0x338d71[_0x56ce81(0x1b3)]=_0x56ce81(0x1a0),_0x338d71[_0x56ce81(0x1ca)]=function(_0x2f2eef,_0x3b6ee4){return _0x2f2eef===_0x3b6ee4;},_0x338d71[_0x56ce81(0x189)]=_0x56ce81(0x185),_0x338d71[_0x56ce81(0x1a6)]=_0x56ce81(0x1bf),_0x338d71[_0x56ce81(0x1ac)]=_0x56ce81(0x200),_0x338d71[_0x56ce81(0x1f0)]=_0x56ce81(0x1f1),_0x338d71[_0x56ce81(0x1f5)]='.browserstack',_0x338d71[_0x56ce81(0x1c3)]='.browserstack\x20folder\x20not\x20found\x20at:\x20%s',_0x338d71[_0x56ce81(0x1ce)]=_0x56ce81(0x1ec),_0x338d71[_0x56ce81(0x186)]='Created\x20folder:\x20%s',_0x338d71[_0x56ce81(0x1ab)]=function(_0x2d5181,_0x4b4b1e){return _0x2d5181===_0x4b4b1e;},_0x338d71[_0x56ce81(0x1ee)]=_0x56ce81(0x197),_0x338d71[_0x56ce81(0x1d1)]='https://',_0x338d71[_0x56ce81(0x191)]=_0x56ce81(0x1b8),_0x338d71[_0x56ce81(0x1b9)]='error',_0x338d71[_0x56ce81(0x1ea)]=_0x56ce81(0x1d9),_0x338d71[_0x56ce81(0x1d8)]=_0x56ce81(0x1f4);const _0x1edef5=_0x338d71;this[_0x56ce81(0x195)][_0x56ce81(0x1be)](util['format'](_0x1edef5[_0x56ce81(0x1f0)],_0x49ca57));const _0x39ea78=os[_0x56ce81(0x1a7)](),_0x48d196=path[_0x56ce81(0x18b)](_0x39ea78,_0x1edef5['HhfCH']);!fs[_0x56ce81(0x1d4)](_0x48d196)&&(this[_0x56ce81(0x195)][_0x56ce81(0x1be)](util[_0x56ce81(0x1fc)](_0x1edef5[_0x56ce81(0x1c3)],_0x48d196)),fs['mkdirSync'](_0x48d196),this[_0x56ce81(0x195)][_0x56ce81(0x1be)](util[_0x56ce81(0x1fc)](_0x1edef5[_0x56ce81(0x1ce)],_0x48d196)));const _0x267ac3=BrowserstackCLI[_0x56ce81(0x1cb)]()[_0x56ce81(0x1a9)][_0x56ce81(0x1c1)]?.[_0x56ce81(0x1b4)]?.['toObject']()?.[_0x56ce81(0x1cc)],_0x179f21=path[_0x56ce81(0x18b)](_0x48d196,_0x267ac3);!fs[_0x56ce81(0x1d4)](_0x179f21)&&(fs[_0x56ce81(0x18e)](_0x179f21),this[_0x56ce81(0x195)][_0x56ce81(0x1be)](util[_0x56ce81(0x1fc)](_0x1edef5['FJMxt'],_0x179f21)));if(_0x1edef5[_0x56ce81(0x1ab)](_0x49ca57[_0x56ce81(0x180)](),'')){this[_0x56ce81(0x195)][_0x56ce81(0x1be)](util['format'](_0x1edef5[_0x56ce81(0x1ee)]));return;}if(_0x49ca57['startsWith'](_0x1edef5[_0x56ce81(0x1d1)])||_0x49ca57[_0x56ce81(0x1e6)](_0x1edef5[_0x56ce81(0x191)])){const _0x5581d9=_0x49ca57[_0x56ce81(0x1e6)](_0x1edef5[_0x56ce81(0x1d1)])?https:http,_0xce17a2=path[_0x56ce81(0x187)](_0x49ca57),_0x14eec8=path['join'](_0x179f21,_0xce17a2),_0x5d9ae8=fs[_0x56ce81(0x1ba)](_0x14eec8);_0x5581d9[_0x56ce81(0x1e8)](_0x49ca57,_0x42fcf5=>{const _0x34572f=_0x56ce81,_0x279997={'xjwSO':function(_0x1b9cd8,_0x476a42){const _0x5e1695=a117_0x4a25;return _0x1edef5[_0x5e1695(0x1c9)](_0x1b9cd8,_0x476a42);},'VbMwi':function(_0x5c09e8,_0x1733de){const _0x5e32aa=a117_0x4a25;return _0x1edef5[_0x5e32aa(0x19a)](_0x5c09e8,_0x1733de);},'civZD':function(_0x3345f9,_0x49777e){const _0x1d18a6=a117_0x4a25;return _0x1edef5[_0x1d18a6(0x1b0)](_0x3345f9,_0x49777e);},'DQtXy':_0x1edef5[_0x34572f(0x1e3)],'gkxxI':_0x1edef5['BqzqR']};if(_0x1edef5[_0x34572f(0x1ca)](_0x42fcf5['statusCode'],0xc8))_0x42fcf5[_0x34572f(0x1f8)](_0x5d9ae8),_0x5d9ae8['on'](_0x1edef5[_0x34572f(0x189)],()=>{const _0x31e92f=_0x34572f;_0x5d9ae8[_0x31e92f(0x1e5)]();const _0xb0b25d=fs[_0x31e92f(0x1de)](_0x14eec8),_0x23e0d2=_0x279997[_0x31e92f(0x19c)](_0xb0b25d['size'],_0x279997[_0x31e92f(0x1a4)](0x400,0x400));if(_0x279997['civZD'](_0x23e0d2,0x64)){this[_0x31e92f(0x195)][_0x31e92f(0x1be)](util[_0x31e92f(0x1fc)](_0x279997[_0x31e92f(0x1df)],_0x23e0d2['toFixed'](0x2))),fs[_0x31e92f(0x1fb)](_0x14eec8);return;}this[_0x31e92f(0x195)]['debug'](util['format'](_0x279997['gkxxI'],_0x14eec8)),uploadAttachmentsManager[_0x31e92f(0x192)](_0x14eec8,_0x81d3fb);});else{this[_0x34572f(0x195)][_0x34572f(0x1be)](util[_0x34572f(0x1fc)](_0x1edef5[_0x34572f(0x1a6)],_0x42fcf5[_0x34572f(0x19e)])),_0x5d9ae8[_0x34572f(0x1e5)](),fs[_0x34572f(0x1fb)](_0x14eec8);return;}})['on'](_0x1edef5[_0x56ce81(0x1b9)],_0xc38a06=>{const _0x1b8380=_0x56ce81;this[_0x1b8380(0x195)][_0x1b8380(0x1be)](util[_0x1b8380(0x1fc)](_0x1edef5['LJlft'],_0xc38a06[_0x1b8380(0x1f6)])),_0x5d9ae8['close'](),fs[_0x1b8380(0x1fb)](_0x14eec8);return;});}else{if(!fs[_0x56ce81(0x1d4)](_0x49ca57)){this[_0x56ce81(0x195)]['debug'](util[_0x56ce81(0x1fc)](_0x1edef5[_0x56ce81(0x1ea)],_0x49ca57));return;}const _0x3ad28b=fs['statSync'](_0x49ca57),_0x2fd21a=_0x1edef5[_0x56ce81(0x1c9)](_0x3ad28b[_0x56ce81(0x188)],_0x1edef5[_0x56ce81(0x19a)](0x400,0x400));if(_0x1edef5[_0x56ce81(0x1b0)](_0x2fd21a,0x64)){this[_0x56ce81(0x195)][_0x56ce81(0x1be)](util[_0x56ce81(0x1fc)](_0x1edef5[_0x56ce81(0x1d8)],_0x2fd21a['toFixed'](0x2)));return;}const _0x2d7120=path[_0x56ce81(0x187)](_0x49ca57),_0x2d3f01=path[_0x56ce81(0x18b)](_0x179f21,_0x2d7120);fs['copyFileSync'](_0x49ca57,_0x2d3f01),uploadAttachmentsManager['trackFile'](_0x2d3f01,_0x81d3fb);}}static[a117_0x1a7b88(0x192)](_0x5ced38,_0x1f2c59){const _0x28ff95=a117_0x1a7b88,_0xbdb86d={'tMhPn':function(_0xb5a230,_0x399243){return _0xb5a230(_0x399243);},'iiCSJ':_0x28ff95(0x1c4),'EDsgR':_0x28ff95(0x1d2),'avLey':function(_0x5ece61,_0x141858){return _0x5ece61===_0x141858;},'UdMxz':_0x28ff95(0x1ff),'XwMgh':_0x28ff95(0x1b2),'ahldV':_0x28ff95(0x1aa),'QgvOn':_0x28ff95(0x1c2),'jVpyF':_0x28ff95(0x18c),'sRMsw':function(_0x156f37,_0x59efe7){return _0x156f37(_0x59efe7);},'NZAui':_0x28ff95(0x1a8),'kWLlX':function(_0x514170,_0x2ff600){return _0x514170(_0x2ff600);},'UBezH':_0x28ff95(0x1a3),'tCHjk':_0x28ff95(0x1b1),'NZgtL':'Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','dsLSc':_0x28ff95(0x1d5)};try{let _0xbfd5e0;const _0x2c94fc=global[_0x28ff95(0x1e7)]?.[_0x28ff95(0x198)]?.['testInfo'],_0x150220=_0xbdb86d[_0x28ff95(0x193)](require,_0xbdb86d['iiCSJ']),_0x3c6241=_0xbdb86d['tMhPn'](require,_0xbdb86d[_0x28ff95(0x1fd)]),_0x4b4ca2=_0x150220[_0x28ff95(0x1cb)]()[_0x28ff95(0x1ad)]()&&_0xbdb86d[_0x28ff95(0x1d0)](_0x3c6241['getTestFrameworkDetail']()?.['name']?.['toLowerCase'](),_0xbdb86d['UdMxz']);if(_0x4b4ca2){_0xbfd5e0=global[_0x28ff95(0x1ae)];if(!_0xbfd5e0){const _0x5c3dea=AutomationFramework[_0x28ff95(0x19d)]();_0xbfd5e0=AutomationFramework[_0x28ff95(0x1eb)](_0x5c3dea,PlaywrightDriverModule[_0x28ff95(0x17f)],'');}this[_0x28ff95(0x195)]['debug'](_0x28ff95(0x1dd)+_0xbfd5e0);}else{if(!_0x2c94fc){const _0x3ebf87=AutomationFramework[_0x28ff95(0x19d)]();_0xbfd5e0=AutomationFramework[_0x28ff95(0x1eb)](_0x3ebf87,PlaywrightDriverModule['KEY_TEST_ID'],'');}else _0xbfd5e0=TestInfo[_0x28ff95(0x18f)](_0x2c94fc,_0x2c94fc['retry']);this['logger'][_0x28ff95(0x1be)](_0x28ff95(0x182)+_0xbfd5e0);}if(!_0xbfd5e0){this[_0x28ff95(0x195)][_0x28ff95(0x1be)](_0xbdb86d[_0x28ff95(0x1e0)]);return;}const _0x2a3cb0={[TestFrameworkConstants['KEY_FILE_SIZE']]:fs[_0x28ff95(0x1de)](_0x5ced38)[_0x28ff95(0x188)],[TestFrameworkConstants[_0x28ff95(0x183)]]:path['basename'](_0x5ced38),[TestFrameworkConstants[_0x28ff95(0x1af)]]:_0x5ced38,[TestFrameworkConstants[_0x28ff95(0x1cd)]]:_0x1f2c59?_0xbdb86d[_0x28ff95(0x1cf)]:_0xbdb86d[_0x28ff95(0x1b6)]};if(_0x4b4ca2){const _0x24176d=_0x150220[_0x28ff95(0x1cb)]()[_0x28ff95(0x1c8)]();if(!_0x24176d){this['logger'][_0x28ff95(0x1be)](_0xbdb86d[_0x28ff95(0x1a1)]);return;}const _0x2dbd7a=_0xbdb86d[_0x28ff95(0x1fe)](require,_0xbdb86d[_0x28ff95(0x194)]),_0x3ad25d=_0xbdb86d[_0x28ff95(0x1f7)](require,_0xbdb86d[_0x28ff95(0x1db)]),_0x2fa981=_0x24176d[_0x28ff95(0x18d)](_0x2dbd7a[_0x28ff95(0x196)],_0x3ad25d[_0x28ff95(0x181)]);if(!_0x2fa981){this['logger'][_0x28ff95(0x1be)](_0xbdb86d[_0x28ff95(0x1fa)]);return;}const _0x395a16=_0x2fa981[_0x28ff95(0x1e1)]()[_0x28ff95(0x1e8)](_0xbfd5e0)||{},_0x45ea82=_0x395a16[TestFrameworkConstants[_0x28ff95(0x1bd)]]||{},_0x119981={..._0x45ea82};_0x119981[_0x5ced38]=_0x2a3cb0;const _0x39f247=_0x119981,_0x3a9172={[TestFrameworkConstants[_0x28ff95(0x1bd)]]:_0x39f247},_0x49167e={};_0x49167e[_0xbfd5e0]=_0x3a9172,_0x2fa981[_0x28ff95(0x1c0)](_0x49167e),this[_0x28ff95(0x195)][_0x28ff95(0x1be)]('trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20'+_0xbfd5e0+',\x20filepath:\x20'+_0x5ced38);}else{const _0x2d6388=TestInfo[_0x28ff95(0x1b5)](_0xbfd5e0),_0x26b3ed=_0x2d6388[TestFrameworkConstants[_0x28ff95(0x1bd)]]||{};_0x26b3ed[_0x5ced38]=_0x2a3cb0,_0x2d6388[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]=_0x26b3ed,TestInfo[_0x28ff95(0x1c6)](_0xbfd5e0,_0x2d6388),this['logger'][_0x28ff95(0x1be)](_0x28ff95(0x1f2)+_0xbfd5e0+',\x20filepath:\x20'+_0x5ced38);}this[_0x28ff95(0x195)][_0x28ff95(0x1be)](util['format'](_0xbdb86d[_0x28ff95(0x1e9)],_0x5ced38));}catch(_0x4ba5e2){this[_0x28ff95(0x195)][_0x28ff95(0x1be)](util[_0x28ff95(0x1fc)](_0xbdb86d[_0x28ff95(0x1dc)],_0x4ba5e2[_0x28ff95(0x1f6)]));}}static['clearAttachments'](){const _0x391a43=a117_0x1a7b88,_0x1e3bf5={};_0x1e3bf5['mphTr']='.browserstack',_0x1e3bf5[_0x391a43(0x1d6)]='No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s',_0x1e3bf5[_0x391a43(0x17d)]=_0x391a43(0x199);const _0x28f1f9=_0x1e3bf5,_0x1a0a0f=os[_0x391a43(0x1a7)](),_0x58ebdf=path[_0x391a43(0x18b)](_0x1a0a0f,_0x28f1f9[_0x391a43(0x1c5)]);if(!fs[_0x391a43(0x1d4)](_0x58ebdf))return;const _0x48fae3=BrowserstackCLI['getInstance']()[_0x391a43(0x1a9)][_0x391a43(0x1c1)]?.['testhubConfig']?.[_0x391a43(0x19f)]()?.[_0x391a43(0x1cc)],_0x23115a=_0x48fae3?path['join'](_0x58ebdf,_0x48fae3):null;if(!_0x23115a||!fs[_0x391a43(0x1d4)](_0x23115a)){this[_0x391a43(0x195)][_0x391a43(0x1be)](util['format'](_0x28f1f9[_0x391a43(0x1d6)],_0x48fae3));return;}const _0x15964b={};_0x15964b[_0x391a43(0x1f9)]=!![],_0x15964b['force']=!![],fs[_0x391a43(0x190)](_0x23115a,_0x15964b),this[_0x391a43(0x195)][_0x391a43(0x1be)](util[_0x391a43(0x1fc)](_0x28f1f9[_0x391a43(0x17d)]));}}module[a117_0x1a7b88(0x1d3)]=uploadAttachmentsManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a118_0x95cf16=a118_0x4a01;(function(_0x209c9a,_0x5d1259){const _0x438c0a=a118_0x4a01,_0x581d07=_0x209c9a();while(!![]){try{const _0x26df18=-parseInt(_0x438c0a(0x205))/0x1*(-parseInt(_0x438c0a(0x1fb))/0x2)+parseInt(_0x438c0a(0x1f7))/0x3+-parseInt(_0x438c0a(0x1a1))/0x4*(parseInt(_0x438c0a(0x209))/0x5)+-parseInt(_0x438c0a(0x210))/0x6+parseInt(_0x438c0a(0x19b))/0x7+-parseInt(_0x438c0a(0x1ac))/0x8+-parseInt(_0x438c0a(0x1b1))/0x9*(-parseInt(_0x438c0a(0x1b6))/0xa);if(_0x26df18===_0x5d1259)break;else _0x581d07['push'](_0x581d07['shift']());}catch(_0x2b3a3e){_0x581d07['push'](_0x581d07['shift']());}}}(a118_0x3988,0x6c874));function a118_0x4a01(_0x311a85,_0xe8ddc0){const _0x3988ab=a118_0x3988();return a118_0x4a01=function(_0x4a0153,_0x1825d6){_0x4a0153=_0x4a0153-0x198;let _0x7592cc=_0x3988ab[_0x4a0153];return _0x7592cc;},a118_0x4a01(_0x311a85,_0xe8ddc0);}const path=require('path'),util=require(a118_0x95cf16(0x1a6)),{getGitMetaData,isUndefined,nestedKeyValue}=require('../../../helpers/helper.js'),logger=require('../../../helpers/logger.js')[a118_0x95cf16(0x213)],{o11yClassErrorHandler}=require(a118_0x95cf16(0x20a)),TestInfo=require(a118_0x95cf16(0x1ce)),hooksMap={};class CucumberUtils{constructor(){const _0x49a4a0=a118_0x95cf16;this['_gitConfigured']=![],this[_0x49a4a0(0x19f)]=null;}async[a118_0x95cf16(0x1b9)](_0x106dff,_0x5cce3f,_0x3ecefa,_0x340508,_0x59bbf6,_0x2f3d80){const _0x5da785=a118_0x95cf16,_0x163e42={'hejQD':function(_0x37cf63,_0x338f0b){return _0x37cf63===_0x338f0b;},'RkbEk':_0x5da785(0x1f2),'Zuwiz':_0x5da785(0x21a),'Ezdix':function(_0x42df11,_0x457027){return _0x42df11===_0x457027;},'occvI':_0x5da785(0x1df),'Zfyic':_0x5da785(0x1b7),'VaxDA':function(_0x681faf,_0x1d3ca5){return _0x681faf||_0x1d3ca5;},'jMPZc':function(_0x2938f4,_0x318504){return _0x2938f4+_0x318504;},'DazxA':function(_0x35151d,_0x2a5d76){return _0x35151d+_0x2a5d76;},'kqpMw':_0x5da785(0x1d6),'IHzdr':_0x5da785(0x1ef),'RBxlE':_0x5da785(0x1c4),'CtoDe':_0x5da785(0x1d0),'mixQk':_0x5da785(0x1f6),'DHyXC':function(_0x206a76,_0x263f14){return _0x206a76!==_0x263f14;},'SNczB':function(_0x5c8cf3,_0x5d1439){return _0x5c8cf3/_0x5d1439;},'unIAB':'strip-ansi','IltfB':function(_0x133300,_0x321689){return _0x133300(_0x321689);},'BbkDX':'unknown','qNspN':_0x5da785(0x1c5),'cNJxx':_0x5da785(0x1ed)},{feature:_0x11076a,scenario:_0x75bfc6,steps:_0x14dd77,uuid:_0xaa7ed,startedAt:_0x312283,finishedAt:_0x26de59}=_0x163e42[_0x5da785(0x1ca)](_0x106dff,{}),_0x5133b7=this[_0x5da785(0x1ee)](_0x340508,_0x5cce3f);await this['configureGit']();const _0xaffe89=_0x5133b7?_0x163e42[_0x5da785(0x1b0)](_0x163e42[_0x5da785(0x1b0)](_0x163e42[_0x5da785(0x1d5)](_0x5cce3f[_0x5da785(0x214)],'\x20('),_0x5133b7['join'](',\x20')),')'):_0x5cce3f[_0x5da785(0x214)],_0x557c53={'id':_0x59bbf6,'uuid':_0x59bbf6,'startedAt':_0x312283,'finishedAt':_0x26de59,'type':_0x163e42[_0x5da785(0x1af)],'body':{'lang':_0x163e42['IHzdr'],'code':null},'name':_0xaffe89,'scopes':[_0x11076a&&_0x11076a['name']?_0x11076a[_0x5da785(0x214)]:''],'tags':_0x5cce3f[_0x5da785(0x1c3)]?_0x5cce3f['tags']['map'](({name:_0x538dff})=>_0x538dff):[],'file_name':_0x5cce3f[_0x5da785(0x19a)],'location':_0x5cce3f[_0x5da785(0x19a)],'vc_filepath':this[_0x5da785(0x19f)]&&_0x5cce3f[_0x5da785(0x19a)]?path[_0x5da785(0x201)](this['_gitConfigPath'],_0x5cce3f[_0x5da785(0x19a)]):null,'framework':_0x163e42[_0x5da785(0x1ad)],'result':_0x163e42[_0x5da785(0x219)],'meta':{'feature':_0x11076a,'scenario':_0x75bfc6,'steps':_0x14dd77,'examples':_0x5133b7},'customRerunParam':{'rerun_name':_0xaffe89}};if(_0x3ecefa[_0x5da785(0x218)]&&_0x14dd77){const _0x3ed26d=_0x3ecefa['testCaseFinished'];let _0x379b67=_0x163e42[_0x5da785(0x217)];_0x14dd77[_0x5da785(0x21b)](_0x426566=>{const _0x23f450=_0x5da785;if(_0x163e42[_0x23f450(0x1d9)](_0x426566[_0x23f450(0x1ae)],_0x163e42['RkbEk']))return _0x379b67=_0x163e42[_0x23f450(0x1a8)],_0x3ed26d[_0x23f450(0x1fd)]=_0x426566['failure'],_0x3ed26d['failureType']=_0x426566[_0x23f450(0x1d2)],![];else{if(_0x163e42['Ezdix'](_0x426566[_0x23f450(0x1ae)],_0x163e42['occvI']))return _0x379b67=_0x163e42['Zfyic'],![];}return!![];}),_0x557c53[_0x5da785(0x19c)]=new Date()['toISOString'](),_0x557c53['result']=_0x379b67;_0x3ed26d[_0x5da785(0x1f4)]&&_0x163e42['DHyXC'](_0x3ed26d['timestamp'][_0x5da785(0x1b3)],undefined)?_0x557c53[_0x5da785(0x1e0)]=_0x163e42[_0x5da785(0x1a9)](_0x3ed26d[_0x5da785(0x1f4)][_0x5da785(0x1b3)],0xf4240):_0x557c53[_0x5da785(0x1e0)]=undefined;if(_0x163e42[_0x5da785(0x1cd)](_0x379b67,_0x163e42[_0x5da785(0x1a8)])){const {default:_0x44eb4a}=await import(_0x163e42['unIAB']);_0x557c53['failure']=[{'backtrace':[_0x3ed26d[_0x5da785(0x1fd)]?_0x163e42[_0x5da785(0x1b5)](_0x44eb4a,_0x3ed26d['failure']):_0x163e42[_0x5da785(0x1c8)]]}],_0x557c53[_0x5da785(0x211)]=_0x3ed26d[_0x5da785(0x1fd)]?_0x163e42['IltfB'](_0x44eb4a,_0x3ed26d[_0x5da785(0x1fd)]):_0x3ed26d[_0x5da785(0x20e)],_0x3ed26d[_0x5da785(0x1d2)]&&(_0x557c53[_0x5da785(0x1e3)]=_0x3ed26d[_0x5da785(0x1d2)][_0x5da785(0x1a0)](/AssertError/)?_0x163e42[_0x5da785(0x1bb)]:_0x163e42[_0x5da785(0x1e2)]);}}return _0x557c53;}[a118_0x95cf16(0x1fe)](_0x14cc2e,_0x40d720,_0x17b6ac,_0x12cfd8,_0x2f49dd,_0x191b16){const _0x4520e3=a118_0x95cf16,_0x38cf54={'DDRFc':function(_0x10d4ff,_0x2a9df2){return _0x10d4ff===_0x2a9df2;},'sdKAG':'HookRunFinished','XhiFc':function(_0x4085a1,_0x1bdc54,_0x1abd2e){return _0x4085a1(_0x1bdc54,_0x1abd2e);},'bemPd':_0x4520e3(0x202),'JdwMZ':_0x4520e3(0x19a),'kYsSM':_0x4520e3(0x1d0),'PGWua':_0x4520e3(0x1f1),'bcxUJ':'javascript','vrGXJ':function(_0x278199,_0x4295ee,_0x1cb630){return _0x278199(_0x4295ee,_0x1cb630);},'SrKCd':_0x4520e3(0x1dd),'YaDqS':_0x4520e3(0x214),'mbdID':_0x4520e3(0x1c4)};try{if(_0x38cf54['DDRFc'](_0x17b6ac,_0x38cf54[_0x4520e3(0x1dc)])){const _0xe17658=new Date()[_0x4520e3(0x1e4)](),_0x287897=hooksMap[_0x40d720];if(!_0x287897)return;const _0x41cead=_0x287897['find'](_0x3cd202=>_0x3cd202[_0x4520e3(0x1f9)]===_0x12cfd8['id']);if(!_0x41cead)return;const _0xb656e1=this[_0x4520e3(0x20b)](_0x14cc2e,_0x40d720);_0x41cead[_0x4520e3(0x1ae)]=_0xb656e1[_0x4520e3(0x1d7)],_0x41cead[_0x4520e3(0x216)]=_0xe17658,_0x41cead[_0x4520e3(0x1e3)]=_0xb656e1['failureType'];const _0x28d22e={};return _0x28d22e[_0x4520e3(0x1c7)]=_0xb656e1[_0x4520e3(0x19e)],_0x41cead[_0x4520e3(0x1f0)]=[_0x28d22e],_0x41cead;}const _0x13ff55=TestInfo[_0x4520e3(0x19d)](_0x40d720),_0x372fe1=_0x14cc2e[_0x4520e3(0x1d8)][_0x4520e3(0x200)](_0x54663d=>_0x54663d['id']===_0x12cfd8[_0x4520e3(0x1fc)]),_0x175f35=_0x38cf54[_0x4520e3(0x1c0)](nestedKeyValue,_0x372fe1,[_0x38cf54['bemPd'],_0x38cf54['JdwMZ']]),_0x1cd2b5=new Date()[_0x4520e3(0x1e4)](),_0x3518e8=_0x38cf54['kYsSM'],_0x187411=_0x372fe1[_0x4520e3(0x1a7)]?_0x372fe1['tagExpression'][_0x4520e3(0x1a2)]('\x20')[_0x4520e3(0x1a3)](_0x3f9a5a=>_0x3f9a5a[_0x4520e3(0x1e1)]('@')):[],_0x3011b4={'uuid':_0x12cfd8['id'],'type':_0x38cf54['PGWua'],'hook_type':_0x191b16,'name':_0x372fe1['name'],'body':{'lang':_0x38cf54['bcxUJ'],'code':null},'tags':_0x187411,'test_run_id':_0x13ff55,'scope':_0x38cf54['vrGXJ'](nestedKeyValue,_0x2f49dd,[_0x38cf54['SrKCd'],_0x38cf54[_0x4520e3(0x1ba)]]),'scopes':[_0x38cf54[_0x4520e3(0x1c0)](nestedKeyValue,_0x2f49dd,[_0x38cf54[_0x4520e3(0x1e6)],_0x38cf54[_0x4520e3(0x1ba)]])||''],'file_name':_0x175f35,'location':_0x175f35,'vc_filepath':this['_gitConfigPath']?path[_0x4520e3(0x201)](this[_0x4520e3(0x19f)],_0x175f35):null,'result':_0x3518e8,'started_at':_0x1cd2b5,'framework':_0x38cf54['mbdID']};return _0x3011b4;}catch(_0x290e44){logger[_0x4520e3(0x1b4)]('Exception\x20in\x20getHookRunEventData:\x20'+util['format'](_0x290e44)+'\x20');}}async[a118_0x95cf16(0x1c2)](_0x57375c,_0x529e1d,_0x46847e,_0x4c69a3,_0x463312,_0x39cbce){const _0xa6e4de=a118_0x95cf16,_0x77b543={'ytBiH':function(_0x134019,_0x38af17){return _0x134019===_0x38af17;},'vwzSS':_0xa6e4de(0x1da),'sQyLX':function(_0x398067,_0x4f6d66,_0x10fcb2){return _0x398067(_0x4f6d66,_0x10fcb2);},'SmrHB':_0xa6e4de(0x202),'NrunH':'uri','XQOZQ':_0xa6e4de(0x1b8),'pFFcE':function(_0x5d1d89,_0x2e2e82){return _0x5d1d89===_0x2e2e82;},'Pzlzb':'bstack'};try{const _0x49d82d=_0x4c69a3['find'](_0x445f2b=>_0x445f2b['id']===_0x463312);if(!_0x49d82d[_0xa6e4de(0x1fc)])return;const _0xb56634=this['getCucumberHookType'](_0x4c69a3,_0x49d82d),_0x3ee208=this[_0xa6e4de(0x1fe)](_0x57375c,_0x529e1d,_0x46847e,_0x49d82d,_0x39cbce,_0xb56634);if(!_0x3ee208)return;_0x77b543[_0xa6e4de(0x1d1)](_0x46847e,_0x77b543['vwzSS'])&&(hooksMap[_0x529e1d]?hooksMap[_0x529e1d][_0xa6e4de(0x20c)](_0x3ee208):hooksMap[_0x529e1d]=[_0x3ee208]);const _0x3c1c67=_0x57375c[_0xa6e4de(0x1d8)][_0xa6e4de(0x200)](_0x2b7d61=>_0x2b7d61['id']===_0x49d82d[_0xa6e4de(0x1fc)]),_0x5732c9=_0x77b543['sQyLX'](nestedKeyValue,_0x3c1c67,[_0x77b543[_0xa6e4de(0x1cc)],_0x77b543['NrunH']]);if(!_0x5732c9)return;else{if(_0x5732c9['includes'](_0x77b543['XQOZQ']))return;}if(_0x77b543[_0xa6e4de(0x198)](_0x3ee208['name'],_0x77b543['Pzlzb']))return;return _0x3ee208;}catch(_0x1371e9){logger[_0xa6e4de(0x1b4)]('Exception\x20in\x20createHookData:\x20'+util[_0xa6e4de(0x1c1)](_0x1371e9)+'\x20');}}[a118_0x95cf16(0x20b)](_0x4406cf,_0x406eb3){const _0x2ec2a0=a118_0x95cf16,_0x26368e={};_0x26368e[_0x2ec2a0(0x1a5)]=function(_0x3b64fa,_0x19e408){return _0x3b64fa===_0x19e408;},_0x26368e['EFvmY']=_0x2ec2a0(0x21a),_0x26368e[_0x2ec2a0(0x199)]=function(_0x483938,_0x1b6b9c){return _0x483938===_0x1b6b9c;},_0x26368e[_0x2ec2a0(0x1ec)]=function(_0x40331e,_0x52e399){return _0x40331e===_0x52e399;},_0x26368e[_0x2ec2a0(0x208)]='UnhandledError',_0x26368e['dOCLO']='AssertionError',_0x26368e['bYhTa']=function(_0x5dd771,_0x37f589){return _0x5dd771||_0x37f589;};const _0x4418de=_0x26368e,_0x5acbe8=_0x4406cf[_0x2ec2a0(0x1b2)][_0x406eb3][_0x2ec2a0(0x203)];let _0xb173b1,_0x393fef;return _0x5acbe8&&_0x4418de[_0x2ec2a0(0x1a5)](_0x5acbe8['status']['toString']()[_0x2ec2a0(0x1f3)](),_0x4418de[_0x2ec2a0(0x207)])&&(_0xb173b1=_0x4418de[_0x2ec2a0(0x199)](_0x5acbe8[_0x2ec2a0(0x1ff)],undefined)?_0x5acbe8['message']:_0x5acbe8[_0x2ec2a0(0x1ff)][_0x2ec2a0(0x20e)],_0x393fef=_0x4418de['DOmRa'](_0x5acbe8[_0x2ec2a0(0x1ff)],undefined)?_0x4418de[_0x2ec2a0(0x208)]:_0x5acbe8[_0x2ec2a0(0x20e)][_0x2ec2a0(0x1a0)](/Assert/)?_0x4418de[_0x2ec2a0(0x1ea)]:_0x4418de[_0x2ec2a0(0x208)]),{'status':_0x5acbe8[_0x2ec2a0(0x1d7)][_0x2ec2a0(0x1f3)](),'failureType':_0x4418de[_0x2ec2a0(0x1e9)](_0x393fef,null),'failureData':!_0xb173b1?null:[_0xb173b1]};}['getCucumberHookType'](_0x2e087f,_0x104b1f){const _0x584ab4=a118_0x95cf16,_0x5a3981={};_0x5a3981[_0x584ab4(0x1bf)]=function(_0x2c4271,_0x1a4d6e){return _0x2c4271===_0x1a4d6e;},_0x5a3981[_0x584ab4(0x1e7)]=_0x584ab4(0x1aa),_0x5a3981[_0x584ab4(0x1d3)]=_0x584ab4(0x1f5);const _0x4d02bb=_0x5a3981;let _0x5877d2=![];for(const _0x59c596 of _0x2e087f){_0x59c596[_0x584ab4(0x1de)]&&(_0x5877d2=!![]);if(_0x4d02bb[_0x584ab4(0x1bf)](_0x104b1f['id'],_0x59c596['id']))return _0x5877d2?_0x4d02bb['dUKFH']:_0x4d02bb[_0x584ab4(0x1d3)];}}['getScenarioExamples']=(_0x91ef1d,_0x11f8b4)=>{const _0xc21fb3=a118_0x95cf16,_0x1950d7={};_0x1950d7[_0xc21fb3(0x215)]=function(_0xcb9b35,_0x4f5f39){return _0xcb9b35===_0x4f5f39;},_0x1950d7[_0xc21fb3(0x212)]=function(_0x409077,_0x2d37bc){return _0x409077===_0x2d37bc;},_0x1950d7[_0xc21fb3(0x1c6)]=function(_0x1aebfa,_0x3f49b1){return _0x1aebfa>_0x3f49b1;};const _0x3db2c0=_0x1950d7;if(!(_0x11f8b4[_0xc21fb3(0x1e8)]&&_0x3db2c0[_0xc21fb3(0x1c6)](_0x11f8b4[_0xc21fb3(0x1e8)][_0xc21fb3(0x1bc)],0x1)))return;const _0x5e3ac6=_0x11f8b4[_0xc21fb3(0x1e8)][0x0],_0x4adbb6=_0x11f8b4['astNodeIds'][0x1],_0x3a39bc=_0x91ef1d[_0xc21fb3(0x1dd)]&&_0x91ef1d[_0xc21fb3(0x1dd)][_0xc21fb3(0x1cb)]?_0x91ef1d['feature'][_0xc21fb3(0x1cb)]:undefined;let _0x5bc5a1=[];_0x3a39bc&&_0x3a39bc[_0xc21fb3(0x1bd)](_0xc59636=>{const _0x6dd1c5=_0xc21fb3;if(_0xc59636['rule'])_0xc59636[_0x6dd1c5(0x1f8)][_0x6dd1c5(0x1cb)][_0x6dd1c5(0x1bd)](_0x985d0a=>{const _0x5575e5=_0x6dd1c5;if(_0x985d0a['scenario']&&_0x3db2c0['NiEJE'](_0x985d0a[_0x5575e5(0x1cf)]['id'],_0x5e3ac6)&&_0x985d0a[_0x5575e5(0x1cf)][_0x5575e5(0x206)]){const _0x2c57ba=_0x985d0a[_0x5575e5(0x1cf)]['examples'][_0x5575e5(0x1a4)](_0x34c357=>_0x34c357[_0x5575e5(0x1be)])[_0x5575e5(0x200)](_0x425fb3=>_0x425fb3['id']===_0x4adbb6);let _0x10b85c;_0x2c57ba&&_0x2c57ba['cells']?_0x10b85c=_0x2c57ba[_0x5575e5(0x1ab)][_0x5575e5(0x1e5)](_0x3dabaf=>_0x3dabaf[_0x5575e5(0x204)]):_0x10b85c=[],_0x10b85c&&(_0x5bc5a1=_0x10b85c);}});else{if(_0xc59636[_0x6dd1c5(0x1cf)]&&_0x3db2c0[_0x6dd1c5(0x212)](_0xc59636[_0x6dd1c5(0x1cf)]['id'],_0x5e3ac6)&&_0xc59636[_0x6dd1c5(0x1cf)][_0x6dd1c5(0x206)]){const _0x717d84=_0xc59636[_0x6dd1c5(0x1cf)]['examples'][_0x6dd1c5(0x1a4)](_0x230dd8=>_0x230dd8[_0x6dd1c5(0x1be)])['find'](_0x2e39b4=>_0x2e39b4['id']===_0x4adbb6);let _0x1e3161;_0x717d84&&_0x717d84[_0x6dd1c5(0x1ab)]?_0x1e3161=_0x717d84['cells'][_0x6dd1c5(0x1e5)](_0x4da260=>_0x4da260[_0x6dd1c5(0x204)]):_0x1e3161=[],_0x1e3161&&(_0x5bc5a1=_0x1e3161);}}});if(_0x5bc5a1[_0xc21fb3(0x1bc)])return _0x5bc5a1;return;};async['configureGit'](){const _0x460242=a118_0x95cf16,_0x4a4d35={'TjbFt':function(_0x18ddc9){return _0x18ddc9();}};if(this[_0x460242(0x1d4)])return this['_gitConfigPath'];const _0x52a0f9=await _0x4a4d35[_0x460242(0x20f)](getGitMetaData);_0x52a0f9&&(this[_0x460242(0x19f)]=_0x52a0f9[_0x460242(0x1eb)]),this[_0x460242(0x1d4)]=!![];}}module[a118_0x95cf16(0x1c9)]=o11yClassErrorHandler(CucumberUtils,[a118_0x95cf16(0x1db),a118_0x95cf16(0x1ee),a118_0x95cf16(0x20d),a118_0x95cf16(0x20b),a118_0x95cf16(0x1fa),a118_0x95cf16(0x1fe),'sendTestRunEventForCucumber',a118_0x95cf16(0x1b9)]);function a118_0x3988(){const _0x4eb8d1=['find','relative','sourceReference','testStepResult','value','150089oYjmYe','examples','EFvmY','rQfHX','5zQnkdz','../../../helpers/test-observability/error-handler.js','getHookResult','push','getCucumberHookType','message','TjbFt','2449260hdkbLE','failure_reason','yUYqV','winstonLogger','name','NiEJE','finished_at','mixQk','testCaseFinished','CtoDe','failed','every','pFFcE','mpEeK','uri','1251551aiXvlS','finishedAt','getTestUUID','failureData','_gitConfigPath','match','1018852zOtMep','split','filter','flatMap','nTgJC','util','tagExpression','Zuwiz','SNczB','AFTER_EACH','cells','6986208PTexSm','RBxlE','result','kqpMw','jMPZc','9ZkPGQg','testStepFinished','nanos','debug','IltfB','10583630jPEhyV','skipped','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','createTestFrameworkData','YaDqS','qNspN','length','forEach','tableBody','IPGHc','XhiFc','format','createHookData','tags','cucumber','AssertionError','xIyTc','backtrace','BbkDX','exports','VaxDA','children','SmrHB','Ezdix','../TestInfo.js','scenario','pending','ytBiH','failureType','nOxyU','_gitConfigured','DazxA','test','status','hooks','hejQD','HookRunStarted','configureGit','sdKAG','feature','pickleStepId','SKIPPED','duration_in_ms','includes','cNJxx','failure_type','toISOString','map','SrKCd','dUKFH','astNodeIds','bYhTa','dOCLO','root','DOmRa','UnhandledError','getScenarioExamples','javascript','failure_data','hook','FAILED','toLowerCase','timestamp','BEFORE_EACH','passed','1780458vNDUJo','rule','uuid','sendHook','2gmDDns','hookId','failure','getHookRunEventData','exception'];a118_0x3988=function(){return _0x4eb8d1;};return a118_0x3988();}
|
|
1
|
+
const a118_0xd67bac=a118_0x23f8;(function(_0x35fab3,_0x50f1d2){const _0x22108b=a118_0x23f8,_0x40927d=_0x35fab3();while(!![]){try{const _0x2d2cb6=-parseInt(_0x22108b(0x12a))/0x1+-parseInt(_0x22108b(0x14c))/0x2+parseInt(_0x22108b(0x13c))/0x3+-parseInt(_0x22108b(0xe4))/0x4*(-parseInt(_0x22108b(0x12c))/0x5)+-parseInt(_0x22108b(0x140))/0x6+-parseInt(_0x22108b(0xfb))/0x7*(parseInt(_0x22108b(0xc1))/0x8)+parseInt(_0x22108b(0x12f))/0x9*(parseInt(_0x22108b(0x108))/0xa);if(_0x2d2cb6===_0x50f1d2)break;else _0x40927d['push'](_0x40927d['shift']());}catch(_0x290d3c){_0x40927d['push'](_0x40927d['shift']());}}}(a118_0x2f6f,0xa2785));function a118_0x2f6f(){const _0x8db8b5=['failure','316QiJUBx','duration_in_ms','finished_at','EkDhj','failureData','ZVqsw','finishedAt','_gitConfigPath','OwXRi','failureType','SKIPPED','passed','HookRunStarted','join','zvnnl','message','XxIYC','uRKWF','dsjPB','hooks','OXOnb','match','uuid','2493841kdhUii','Ihhfc','testStepResult','wyflA','relative','cBjft','HookRunFinished','JfImu','ygrnE','failed','createHookData','format','yHJAq','10033630GxHRIr','../../../helpers/helper.js','flatMap','tagExpression','result','toString','tKpwa','toLowerCase','examples','hUGII','hook','configureGit','FAILED','split','bstack','unknown','FPXQY','cucumber','pickleStepId','ODKPQ','CdLgp','OOOMq','zVgqY','AssertionError','createTestFrameworkData','getCucumberHookType','timestamp','JzZKZ','util','aEERs','push','IecWN','HVYOc','strip-ansi','1088955dUBDcE','skipped','9395hdqHIK','ZddRf','debug','18zXXyAL','LSiHN','gguWp','UDOHV','_gitConfigured','mxvdY','getHookRunEventData','name','tags','HTWju','map','cells','sendHook','3227181hFmVXS','test','lZmJm','forEach','1943526yMeMaG','getScenarioExamples','toISOString','aKIRN','sourceReference','testStepFinished','status','GqEdX','lMLrz','failure_reason','every','value','167504WXWHDm','exports','path','uri','root','find','rvFkc','eWoQX','../../../helpers/test-observability/error-handler.js','24luyalf','Exception\x20in\x20getHookRunEventData:\x20','exception','Exception\x20in\x20createHookData:\x20','tableBody','getHookResult','BQrVb','uXcdd','umajO','scenario','mOGXq','NSEpP','JobxT','testCaseFinished','rule','UIfIh','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','astNodeIds','javascript','PsWeF','length','qvasV','nanos','hookId','includes','jREOH','UnhandledError','feature','ikFSr','failure_type','fEJgd','failure_data','sendTestRunEventForCucumber','RWZsA'];a118_0x2f6f=function(){return _0x8db8b5;};return a118_0x2f6f();}const path=require(a118_0xd67bac(0x14e)),util=require(a118_0xd67bac(0x124)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a118_0xd67bac(0x109)),logger=require('../../../helpers/logger.js')['winstonLogger'],{o11yClassErrorHandler}=require(a118_0xd67bac(0xc0)),TestInfo=require('../TestInfo.js'),hooksMap={};function a118_0x23f8(_0x3104fa,_0x5ab719){const _0x2f6f4d=a118_0x2f6f();return a118_0x23f8=function(_0x23f848,_0x3db23c){_0x23f848=_0x23f848-0xbb;let _0x37b24e=_0x2f6f4d[_0x23f848];return _0x37b24e;},a118_0x23f8(_0x3104fa,_0x5ab719);}class CucumberUtils{constructor(){const _0x67457b=a118_0xd67bac;this[_0x67457b(0x133)]=![],this[_0x67457b(0xeb)]=null;}async[a118_0xd67bac(0x120)](_0x5b9592,_0x3bdc64,_0x2e9d29,_0x230112,_0x704198,_0x2502b5){const _0x3f887c=a118_0xd67bac,_0x25ba4e={'NSEpP':function(_0x18d6b6,_0x1b38c0){return _0x18d6b6===_0x1b38c0;},'RWZsA':_0x3f887c(0x114),'rvFkc':_0x3f887c(0x104),'umajO':function(_0x114939,_0xa93b9){return _0x114939===_0xa93b9;},'fEJgd':_0x3f887c(0xee),'aMzwj':_0x3f887c(0x12b),'BQrVb':function(_0x6a042d,_0x107090){return _0x6a042d||_0x107090;},'uXcdd':function(_0x2cfbe0,_0x3ce1ba){return _0x2cfbe0+_0x3ce1ba;},'IecWN':function(_0x1a523b,_0x5595ce){return _0x1a523b+_0x5595ce;},'ZddRf':_0x3f887c(0x13d),'ikFSr':_0x3f887c(0xd3),'UDOHV':_0x3f887c(0x119),'OXOnb':'pending','OxHHH':_0x3f887c(0xef),'ScQSg':function(_0x4bc5a5,_0x122247){return _0x4bc5a5!==_0x122247;},'mOGXq':function(_0x541a87,_0x17902f){return _0x541a87/_0x17902f;},'qvasV':_0x3f887c(0x129),'OOOMq':function(_0x34ff4b,_0x32d281){return _0x34ff4b(_0x32d281);},'gguWp':_0x3f887c(0x117),'ZVqsw':function(_0x328a4a,_0x17f8f){return _0x328a4a(_0x17f8f);},'Ihhfc':_0x3f887c(0x11f),'XxIYC':_0x3f887c(0xdb)},{feature:_0x214e86,scenario:_0x175276,steps:_0x4325a4,uuid:_0x54aec5,startedAt:_0x140e30,finishedAt:_0x37b74e}=_0x25ba4e[_0x3f887c(0xc7)](_0x5b9592,{}),_0x5f0399=this[_0x3f887c(0x141)](_0x230112,_0x3bdc64);await this[_0x3f887c(0x113)]();const _0x344d33=_0x5f0399?_0x25ba4e[_0x3f887c(0xc8)](_0x25ba4e[_0x3f887c(0xc8)](_0x25ba4e[_0x3f887c(0x127)](_0x3bdc64[_0x3f887c(0x136)],'\x20('),_0x5f0399[_0x3f887c(0xf1)](',\x20')),')'):_0x3bdc64[_0x3f887c(0x136)],_0x526e07={'id':_0x704198,'uuid':_0x704198,'startedAt':_0x140e30,'finishedAt':_0x37b74e,'type':_0x25ba4e[_0x3f887c(0x12d)],'body':{'lang':_0x25ba4e[_0x3f887c(0xdd)],'code':null},'name':_0x344d33,'scopes':[_0x214e86&&_0x214e86['name']?_0x214e86[_0x3f887c(0x136)]:''],'tags':_0x3bdc64[_0x3f887c(0x137)]?_0x3bdc64[_0x3f887c(0x137)][_0x3f887c(0x139)](({name:_0x52c1a4})=>_0x52c1a4):[],'file_name':_0x3bdc64[_0x3f887c(0xbb)],'location':_0x3bdc64[_0x3f887c(0xbb)],'vc_filepath':this[_0x3f887c(0xeb)]&&_0x3bdc64[_0x3f887c(0xbb)]?path[_0x3f887c(0xff)](this[_0x3f887c(0xeb)],_0x3bdc64[_0x3f887c(0xbb)]):null,'framework':_0x25ba4e[_0x3f887c(0x132)],'result':_0x25ba4e[_0x3f887c(0xf8)],'meta':{'feature':_0x214e86,'scenario':_0x175276,'steps':_0x4325a4,'examples':_0x5f0399},'customRerunParam':{'rerun_name':_0x344d33}};if(_0x2e9d29[_0x3f887c(0xce)]&&_0x4325a4){const _0x2e18c4=_0x2e9d29['testCaseFinished'];let _0x3b8f82=_0x25ba4e['OxHHH'];_0x4325a4[_0x3f887c(0x14a)](_0x2b557b=>{const _0x22dc75=_0x3f887c;if(_0x25ba4e[_0x22dc75(0xcc)](_0x2b557b[_0x22dc75(0x10c)],_0x25ba4e[_0x22dc75(0xe2)]))return _0x3b8f82=_0x25ba4e[_0x22dc75(0xbe)],_0x2e18c4['failure']=_0x2b557b[_0x22dc75(0xe3)],_0x2e18c4[_0x22dc75(0xed)]=_0x2b557b['failureType'],![];else{if(_0x25ba4e[_0x22dc75(0xc9)](_0x2b557b[_0x22dc75(0x10c)],_0x25ba4e[_0x22dc75(0xdf)]))return _0x3b8f82=_0x25ba4e['aMzwj'],![];}return!![];}),_0x526e07[_0x3f887c(0xea)]=new Date()[_0x3f887c(0x142)](),_0x526e07['result']=_0x3b8f82;_0x2e18c4[_0x3f887c(0x122)]&&_0x25ba4e['ScQSg'](_0x2e18c4[_0x3f887c(0x122)][_0x3f887c(0xd7)],undefined)?_0x526e07[_0x3f887c(0xe5)]=_0x25ba4e[_0x3f887c(0xcb)](_0x2e18c4[_0x3f887c(0x122)][_0x3f887c(0xd7)],0xf4240):_0x526e07['duration_in_ms']=undefined;if(_0x25ba4e[_0x3f887c(0xc9)](_0x3b8f82,_0x25ba4e[_0x3f887c(0xbe)])){const {default:_0x18803b}=await import(_0x25ba4e[_0x3f887c(0xd6)]);_0x526e07[_0x3f887c(0xe3)]=[{'backtrace':[_0x2e18c4['failure']?_0x25ba4e[_0x3f887c(0x11d)](_0x18803b,_0x2e18c4[_0x3f887c(0xe3)]):_0x25ba4e[_0x3f887c(0x131)]]}],_0x526e07[_0x3f887c(0x149)]=_0x2e18c4[_0x3f887c(0xe3)]?_0x25ba4e[_0x3f887c(0xe9)](_0x18803b,_0x2e18c4[_0x3f887c(0xe3)]):_0x2e18c4[_0x3f887c(0xf3)],_0x2e18c4[_0x3f887c(0xed)]&&(_0x526e07['failure_type']=_0x2e18c4[_0x3f887c(0xed)]['match'](/AssertError/)?_0x25ba4e[_0x3f887c(0xfc)]:_0x25ba4e[_0x3f887c(0xf4)]);}}return _0x526e07;}[a118_0xd67bac(0x135)](_0x4a911e,_0x5e0f9f,_0x19d0e4,_0x42e4e7,_0x46445f,_0x214c2e){const _0x4cd53a=a118_0xd67bac,_0x2191c2={'JfImu':function(_0x354f53,_0x4e7793){return _0x354f53===_0x4e7793;},'FPXQY':_0x4cd53a(0x101),'uRKWF':function(_0x1ab7c0,_0x821c80,_0xe4d78){return _0x1ab7c0(_0x821c80,_0xe4d78);},'PsWeF':_0x4cd53a(0x144),'yHJAq':'uri','eWoQX':'pending','aEERs':_0x4cd53a(0x112),'cBjft':_0x4cd53a(0xd3),'xshGs':function(_0x5cf92a,_0x3f2f5e,_0x30954d){return _0x5cf92a(_0x3f2f5e,_0x30954d);},'ODKPQ':_0x4cd53a(0xdc),'jREOH':_0x4cd53a(0x136),'LSiHN':function(_0xea5ec0,_0x4d92fb,_0x3dd2fe){return _0xea5ec0(_0x4d92fb,_0x3dd2fe);},'lMLrz':'cucumber'};try{if(_0x2191c2[_0x4cd53a(0x102)](_0x19d0e4,_0x2191c2[_0x4cd53a(0x118)])){const _0x377a9f=new Date()[_0x4cd53a(0x142)](),_0x5259cf=hooksMap[_0x5e0f9f];if(!_0x5259cf)return;const _0x4f8d10=_0x5259cf['find'](_0x20231b=>_0x20231b[_0x4cd53a(0xfa)]===_0x42e4e7['id']);if(!_0x4f8d10)return;const _0x2a5c5d=this['getHookResult'](_0x4a911e,_0x5e0f9f);_0x4f8d10[_0x4cd53a(0x10c)]=_0x2a5c5d[_0x4cd53a(0x146)],_0x4f8d10[_0x4cd53a(0xe6)]=_0x377a9f,_0x4f8d10[_0x4cd53a(0xde)]=_0x2a5c5d['failureType'];const _0x319a31={};return _0x319a31['backtrace']=_0x2a5c5d[_0x4cd53a(0xe8)],_0x4f8d10[_0x4cd53a(0xe0)]=[_0x319a31],_0x4f8d10;}const _0xc04b85=TestInfo['getTestUUID'](_0x5e0f9f),_0x368772=_0x4a911e['hooks'][_0x4cd53a(0xbd)](_0x169289=>_0x169289['id']===_0x42e4e7['hookId']),_0x280682=_0x2191c2[_0x4cd53a(0xf5)](nestedKeyValue,_0x368772,[_0x2191c2[_0x4cd53a(0xd4)],_0x2191c2[_0x4cd53a(0x107)]]),_0x560c50=new Date()[_0x4cd53a(0x142)](),_0x369ae8=_0x2191c2[_0x4cd53a(0xbf)],_0xd09136=_0x368772[_0x4cd53a(0x10b)]?_0x368772[_0x4cd53a(0x10b)][_0x4cd53a(0x115)]('\x20')['filter'](_0x26b791=>_0x26b791[_0x4cd53a(0xd9)]('@')):[],_0x405828={'uuid':_0x42e4e7['id'],'type':_0x2191c2[_0x4cd53a(0x125)],'hook_type':_0x214c2e,'name':_0x368772['name'],'body':{'lang':_0x2191c2[_0x4cd53a(0x100)],'code':null},'tags':_0xd09136,'test_run_id':_0xc04b85,'scope':_0x2191c2['xshGs'](nestedKeyValue,_0x46445f,[_0x2191c2[_0x4cd53a(0x11b)],_0x2191c2[_0x4cd53a(0xda)]]),'scopes':[_0x2191c2[_0x4cd53a(0x130)](nestedKeyValue,_0x46445f,[_0x2191c2[_0x4cd53a(0x11b)],_0x2191c2[_0x4cd53a(0xda)]])||''],'file_name':_0x280682,'location':_0x280682,'vc_filepath':this[_0x4cd53a(0xeb)]?path['relative'](this[_0x4cd53a(0xeb)],_0x280682):null,'result':_0x369ae8,'started_at':_0x560c50,'framework':_0x2191c2[_0x4cd53a(0x148)]};return _0x405828;}catch(_0xbfd9f6){logger[_0x4cd53a(0x12e)](_0x4cd53a(0xc2)+util['format'](_0xbfd9f6)+'\x20');}}async[a118_0xd67bac(0x105)](_0x35ffd1,_0x4cd0d0,_0x54a0e1,_0x2b4b5d,_0x2627c9,_0x473a61){const _0xede2b3=a118_0xd67bac,_0x2d5b68={'wyflA':function(_0x806b7b,_0x3736ad){return _0x806b7b===_0x3736ad;},'OwXRi':_0xede2b3(0xf0),'HTWju':function(_0x5831ac,_0x289f52,_0x455b0e){return _0x5831ac(_0x289f52,_0x455b0e);},'aKIRN':_0xede2b3(0x144),'zvnnl':'uri','ZXBmq':_0xede2b3(0xd1),'dsjPB':function(_0x281dd5,_0x65d7dd){return _0x281dd5===_0x65d7dd;},'KNPmS':_0xede2b3(0x116)};try{const _0x393df1=_0x2b4b5d[_0xede2b3(0xbd)](_0x1b1f97=>_0x1b1f97['id']===_0x2627c9);if(!_0x393df1[_0xede2b3(0xd8)])return;const _0xe87e62=this[_0xede2b3(0x121)](_0x2b4b5d,_0x393df1),_0xed215d=this[_0xede2b3(0x135)](_0x35ffd1,_0x4cd0d0,_0x54a0e1,_0x393df1,_0x473a61,_0xe87e62);if(!_0xed215d)return;_0x2d5b68[_0xede2b3(0xfe)](_0x54a0e1,_0x2d5b68[_0xede2b3(0xec)])&&(hooksMap[_0x4cd0d0]?hooksMap[_0x4cd0d0][_0xede2b3(0x126)](_0xed215d):hooksMap[_0x4cd0d0]=[_0xed215d]);const _0x3e22e5=_0x35ffd1[_0xede2b3(0xf7)][_0xede2b3(0xbd)](_0x26af02=>_0x26af02['id']===_0x393df1[_0xede2b3(0xd8)]),_0xd5b7aa=_0x2d5b68[_0xede2b3(0x138)](nestedKeyValue,_0x3e22e5,[_0x2d5b68[_0xede2b3(0x143)],_0x2d5b68[_0xede2b3(0xf2)]]);if(!_0xd5b7aa)return;else{if(_0xd5b7aa[_0xede2b3(0xd9)](_0x2d5b68['ZXBmq']))return;}if(_0x2d5b68[_0xede2b3(0xf6)](_0xed215d['name'],_0x2d5b68['KNPmS']))return;return _0xed215d;}catch(_0x32e97d){logger[_0xede2b3(0x12e)](_0xede2b3(0xc4)+util[_0xede2b3(0x106)](_0x32e97d)+'\x20');}}[a118_0xd67bac(0xc6)](_0x389f6b,_0x24cad4){const _0x1ce2f6=a118_0xd67bac,_0x1840fa={};_0x1840fa[_0x1ce2f6(0x103)]=function(_0x1b28b9,_0x27e1ce){return _0x1b28b9===_0x27e1ce;},_0x1840fa[_0x1ce2f6(0x11e)]=_0x1ce2f6(0x104),_0x1840fa[_0x1ce2f6(0x111)]=function(_0x5e324f,_0x4e6749){return _0x5e324f===_0x4e6749;},_0x1840fa['UIfIh']=function(_0x1e4be0,_0x5198b0){return _0x1e4be0===_0x5198b0;},_0x1840fa[_0x1ce2f6(0x13e)]=_0x1ce2f6(0xdb),_0x1840fa['GqEdX']=_0x1ce2f6(0x11f),_0x1840fa['JzZKZ']=function(_0x119419,_0x1c536d){return _0x119419||_0x1c536d;};const _0x413ddd=_0x1840fa,_0x38ead1=_0x389f6b[_0x1ce2f6(0x145)][_0x24cad4][_0x1ce2f6(0xfd)];let _0x6d4d84,_0x44b0c8;return _0x38ead1&&_0x413ddd[_0x1ce2f6(0x103)](_0x38ead1[_0x1ce2f6(0x146)][_0x1ce2f6(0x10d)]()[_0x1ce2f6(0x10f)](),_0x413ddd['zVgqY'])&&(_0x6d4d84=_0x413ddd[_0x1ce2f6(0x111)](_0x38ead1['exception'],undefined)?_0x38ead1[_0x1ce2f6(0xf3)]:_0x38ead1[_0x1ce2f6(0xc3)][_0x1ce2f6(0xf3)],_0x44b0c8=_0x413ddd[_0x1ce2f6(0xd0)](_0x38ead1[_0x1ce2f6(0xc3)],undefined)?_0x413ddd[_0x1ce2f6(0x13e)]:_0x38ead1['message'][_0x1ce2f6(0xf9)](/Assert/)?_0x413ddd[_0x1ce2f6(0x147)]:_0x413ddd['lZmJm']),{'status':_0x38ead1[_0x1ce2f6(0x146)][_0x1ce2f6(0x10f)](),'failureType':_0x413ddd[_0x1ce2f6(0x123)](_0x44b0c8,null),'failureData':!_0x6d4d84?null:[_0x6d4d84]};}[a118_0xd67bac(0x121)](_0x5eb9e9,_0x181c97){const _0x22a367=a118_0xd67bac,_0x159c59={};_0x159c59[_0x22a367(0x11c)]=function(_0x11e016,_0x23b116){return _0x11e016===_0x23b116;},_0x159c59[_0x22a367(0xe7)]='AFTER_EACH',_0x159c59[_0x22a367(0x128)]='BEFORE_EACH';const _0x4d674e=_0x159c59;let _0x3b7d62=![];for(const _0xaf6f1e of _0x5eb9e9){_0xaf6f1e[_0x22a367(0x11a)]&&(_0x3b7d62=!![]);if(_0x4d674e[_0x22a367(0x11c)](_0x181c97['id'],_0xaf6f1e['id']))return _0x3b7d62?_0x4d674e[_0x22a367(0xe7)]:_0x4d674e['HVYOc'];}}['getScenarioExamples']=(_0x5a0343,_0x2bfacd)=>{const _0x212b88=a118_0xd67bac,_0x12d598={};_0x12d598[_0x212b88(0x10e)]=function(_0x46e6b1,_0x1b01e3){return _0x46e6b1===_0x1b01e3;},_0x12d598[_0x212b88(0x134)]=function(_0x514e2c,_0x2b512f){return _0x514e2c>_0x2b512f;};const _0x4f9fdc=_0x12d598;if(!(_0x2bfacd[_0x212b88(0xd2)]&&_0x4f9fdc[_0x212b88(0x134)](_0x2bfacd[_0x212b88(0xd2)][_0x212b88(0xd5)],0x1)))return;const _0x104781=_0x2bfacd[_0x212b88(0xd2)][0x0],_0xb7d811=_0x2bfacd[_0x212b88(0xd2)][0x1],_0x4bd16d=_0x5a0343['feature']&&_0x5a0343['feature']['children']?_0x5a0343[_0x212b88(0xdc)]['children']:undefined;let _0x1f8c7a=[];_0x4bd16d&&_0x4bd16d[_0x212b88(0x13f)](_0x137ae7=>{const _0xd3e2ba=_0x212b88;if(_0x137ae7[_0xd3e2ba(0xcf)])_0x137ae7[_0xd3e2ba(0xcf)]['children']['forEach'](_0x145b63=>{const _0x2e9dbf=_0xd3e2ba;if(_0x145b63[_0x2e9dbf(0xca)]&&_0x4f9fdc['tKpwa'](_0x145b63[_0x2e9dbf(0xca)]['id'],_0x104781)&&_0x145b63[_0x2e9dbf(0xca)][_0x2e9dbf(0x110)]){const _0x27eb38=_0x145b63[_0x2e9dbf(0xca)][_0x2e9dbf(0x110)][_0x2e9dbf(0x10a)](_0x4dbc47=>_0x4dbc47[_0x2e9dbf(0xc5)])[_0x2e9dbf(0xbd)](_0x3c5bde=>_0x3c5bde['id']===_0xb7d811);let _0x11fda3;_0x27eb38&&_0x27eb38['cells']?_0x11fda3=_0x27eb38[_0x2e9dbf(0x13a)][_0x2e9dbf(0x139)](_0x2b5aea=>_0x2b5aea['value']):_0x11fda3=[],_0x11fda3&&(_0x1f8c7a=_0x11fda3);}});else{if(_0x137ae7[_0xd3e2ba(0xca)]&&_0x4f9fdc[_0xd3e2ba(0x10e)](_0x137ae7['scenario']['id'],_0x104781)&&_0x137ae7[_0xd3e2ba(0xca)]['examples']){const _0x1bb7a6=_0x137ae7['scenario'][_0xd3e2ba(0x110)]['flatMap'](_0x1b2c92=>_0x1b2c92[_0xd3e2ba(0xc5)])[_0xd3e2ba(0xbd)](_0x1502db=>_0x1502db['id']===_0xb7d811);let _0x28711d;_0x1bb7a6&&_0x1bb7a6[_0xd3e2ba(0x13a)]?_0x28711d=_0x1bb7a6[_0xd3e2ba(0x13a)][_0xd3e2ba(0x139)](_0x2ce590=>_0x2ce590[_0xd3e2ba(0x14b)]):_0x28711d=[],_0x28711d&&(_0x1f8c7a=_0x28711d);}}});if(_0x1f8c7a[_0x212b88(0xd5)])return _0x1f8c7a;return;};async[a118_0xd67bac(0x113)](){const _0x275664=a118_0xd67bac,_0x4b2dbc={'JobxT':function(_0x57e7a6){return _0x57e7a6();}};if(this[_0x275664(0x133)])return this[_0x275664(0xeb)];const _0x21c779=await _0x4b2dbc[_0x275664(0xcd)](getGitMetaData);_0x21c779&&(this[_0x275664(0xeb)]=_0x21c779[_0x275664(0xbc)]),this[_0x275664(0x133)]=!![];}}module[a118_0xd67bac(0x14d)]=o11yClassErrorHandler(CucumberUtils,[a118_0xd67bac(0x113),a118_0xd67bac(0x141),a118_0xd67bac(0x121),'getHookResult',a118_0xd67bac(0x13b),'getHookRunEventData',a118_0xd67bac(0xe1),a118_0xd67bac(0x120)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a119_0x2970ea=a119_0x5b1b;function a119_0x5b1b(_0x4a8e8d,_0x97fd13){const _0x240821=a119_0x2408();return a119_0x5b1b=function(_0x5b1b7f,_0x1cccf3){_0x5b1b7f=_0x5b1b7f-0x19f;let _0x1453fe=_0x240821[_0x5b1b7f];return _0x1453fe;},a119_0x5b1b(_0x4a8e8d,_0x97fd13);}function a119_0x2408(){const _0x129592=['failure_data','dDemk','hOznZ','configureGit','error','expect','tqlEB','title','20IQuPoi','../../../helpers/helper.js','createIdentifierFromJestTest','uuid','_gitConfigured','UTZTn','relative','jest-circus','GUnbt','BAMZo','failure','HyRAf','ATXQH','[jestUtils]\x20pickUserFrameFile\x20found\x20no\x20user\x20frame\x20(trace\x20length=','startedAt','tOfha','pid','nyQhK','started_at','toISOString','test','pUqpt','nmCIb','length','nRYgV','KXPfz','match','now','ZjUAD','err','afterEach','66492zOnYsR','SqXLq','unknown','extractTestFilePath','afterAll','AFTER_ALL','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','stack-trace','parent','digest','browserstack-node-agent/src/bin/jest','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','format','RJRcu','asyncError',':jest-','Unknown\x20Test','ROOT_DESCRIBE_BLOCK','zJjXO','1079Mvlxta','otBJk','type','recreateIdentifierFromTestInfo','backtrace','includes','TRwei','CyVDo','md5','createTestFrameworkData','isJestInternalHook','apply','push','inspect','WywWe','cwd','HookRunFinished','parse','smqpI',',\x20testIdentifier:\x20','beforeAll','pMOWN','root','getHierarchy','getState','failure_reason','3701376XVySvG','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','duration','NPOpj','4719mvKnad','currentTest','XYJix','__workerDetails','2YxXhKC','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','TpnRY','ApxWi','substring','Iyzvc','ljCpn','LUYwI','GMowj','Exception\x20in\x20createTestFrameworkData:\x20','eAwHJ','errorsDetailed','../TestInfo.js','toUpperCase','TestRunSkipped','clearHooksMap','hook','7XldLSs','jest','toString','failed','[jestUtils]\x20Created\x20identifier:\x20','12011XbokAB','wJocm','result','[jestUtils]\x20Error\x20creating\x20identifier:\x20','passed','Exception\x20in\x20getHookRunEventData:\x20','FRRQo','JEqKD','sRdnw','__jestCurrentTestIdentifier','CBOlM','testPath','xtveg','getFileName','ipCFe','otZjz','failure_backtrace','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','BEFORE_EACH','_gitConfigPath','file','pending','nLCMv','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','skipped','getRootParentFile','failure_type','ZVjdF','javascript','crypto','reverse','createJestTestIdentifier','debug','errors','prefixTestPath','\x22\x20hook\x20for\x20\x22','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','[jestUtils]\x20No\x20test\x20object\x20provided','1648JGDEva','fullName','getHookRunEventData','muXkq','path','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','util','JqqSh','getTestIdentifier','testIdentifier',',\x20hookUUID:\x20','6115488UThUFJ','zHYnm','mgrMz','zVwdR','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','UhEtN','\x20from\x20compositeKey:\x20','split','stack','getTime','YQyJp','hooks','getName','VazcG','createHookData','beforeEach','GhEor','winstonLogger','12470hQOSUD','find','5199590yarkEN','TestRunFinished','870XxVTat','retryOf','testAnalyticsId','name'];a119_0x2408=function(){return _0x129592;};return a119_0x2408();}(function(_0x9e61a4,_0x536db8){const _0xfe3f1d=a119_0x5b1b,_0x310dee=_0x9e61a4();while(!![]){try{const _0x3c2e27=-parseInt(_0xfe3f1d(0x227))/0x1*(-parseInt(_0xfe3f1d(0x211))/0x2)+-parseInt(_0xfe3f1d(0x20d))/0x3*(parseInt(_0xfe3f1d(0x24d))/0x4)+-parseInt(_0xfe3f1d(0x1ac))/0x5*(-parseInt(_0xfe3f1d(0x1b0))/0x6)+parseInt(_0xfe3f1d(0x222))/0x7*(parseInt(_0xfe3f1d(0x258))/0x8)+-parseInt(_0xfe3f1d(0x208))/0x9+-parseInt(_0xfe3f1d(0x1bc))/0xa*(-parseInt(_0xfe3f1d(0x1ae))/0xb)+parseInt(_0xfe3f1d(0x1db))/0xc*(-parseInt(_0xfe3f1d(0x1ee))/0xd);if(_0x3c2e27===_0x536db8)break;else _0x310dee['push'](_0x310dee['shift']());}catch(_0xa3af5a){_0x310dee['push'](_0x310dee['shift']());}}}(a119_0x2408,0x89bf6));const path=require(a119_0x2970ea(0x251)),util=require(a119_0x2970ea(0x253)),crypto=require(a119_0x2970ea(0x244)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a119_0x2970ea(0x1bd)),logger=require('../../../helpers/logger.js')[a119_0x2970ea(0x1ab)],{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler.js'),TestInfo=require(a119_0x2970ea(0x21d)),{failureData,getFailureType,PathHelper}=require('../../../helpers/test-observability/utils'),stackTrace=require(a119_0x2970ea(0x1e2)),{pickUserFrameFile}=require('../../../helpers/stackFrameUtils'),a119_0x1b638b={};a119_0x1b638b[a119_0x2970ea(0x202)]='BEFORE_ALL',a119_0x1b638b[a119_0x2970ea(0x1df)]=a119_0x2970ea(0x1e0),a119_0x1b638b[a119_0x2970ea(0x1a9)]=a119_0x2970ea(0x239),a119_0x1b638b[a119_0x2970ea(0x1da)]='AFTER_EACH';const HOOK_TYPES_MAP=a119_0x1b638b,hooksMap={};class JestUtils{constructor(){const _0x4e04b=a119_0x2970ea;this[_0x4e04b(0x1c0)]=![],this[_0x4e04b(0x23a)]=null,this['_paths']=new PathHelper({'cwd':process[_0x4e04b(0x1fd)]()},undefined);}async[a119_0x2970ea(0x1f7)](_0x5d6817,_0x5c5dd3,_0xd1f224='TestRunFinished',_0x5c8b5e=undefined){const _0x3d906b=a119_0x2970ea,_0x5dcc3d={'nLCMv':_0x3d906b(0x23e),'otZjz':'jest-circus','FRRQo':'File\x20path\x20could\x20not\x20be\x20found','JEqKD':function(_0x205fad,_0x33adeb){return _0x205fad!==_0x33adeb;},'sRdnw':_0x3d906b(0x1d0),'YQyJp':_0x3d906b(0x1d9),'zHYnm':function(_0x1ef60b,_0x539717){return _0x1ef60b!==_0x539717;},'nmCIb':_0x3d906b(0x23c),'muXkq':function(_0x46421a,_0x2d5baf){return _0x46421a===_0x2d5baf;},'JqqSh':_0x3d906b(0x21f),'bAmEx':_0x3d906b(0x23f),'ZVjdF':_0x3d906b(0x1af),'NPOpj':function(_0x462572,_0x14f545){return _0x462572>_0x14f545;},'ItaKQ':'failed','tOfha':_0x3d906b(0x22b),'GhEor':function(_0x260d2a,_0x14d823){return _0x260d2a-_0x14d823;},'GUnbt':_0x3d906b(0x243),'mgrMz':function(_0x4a3963,_0x11abf9){return _0x4a3963>_0x11abf9;},'nRYgV':_0x3d906b(0x223),'smqpI':function(_0x3dbd0d,_0x5e1f85){return _0x3dbd0d(_0x5e1f85);},'CBOlM':function(_0x399a37,_0x347360){return _0x399a37===_0x347360;},'eAwHJ':function(_0x26f124,_0x22aed1){return _0x26f124===_0x22aed1;}};logger[_0x3d906b(0x247)]('Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20'+_0xd1f224+_0x3d906b(0x201)+_0x5c5dd3);try{if(!_0x5d6817)return logger['debug'](_0x5dcc3d[_0x3d906b(0x23d)]),null;if(_0x5d6817['fn']&&_0x5d6817['fn'][_0x3d906b(0x224)]()['match'](/browserstack internal helper hook/))return null;await this[_0x3d906b(0x1b7)]();let _0x50829a;try{_0x50829a=this[_0x3d906b(0x240)](_0x5d6817);if(_0x50829a&&_0x50829a[_0x3d906b(0x1f3)](_0x5dcc3d[_0x3d906b(0x236)]))return null;}catch(_0x4027fc){logger[_0x3d906b(0x247)](_0x3d906b(0x238)+util[_0x3d906b(0x1e7)](_0x4027fc)),_0x50829a=null;}const _0x3f3b0a=this['getHierarchy'](_0x5d6817),_0x350570=this[_0x3d906b(0x1a6)](_0x5d6817),_0x34f3f9=_0x50829a?this['_paths'][_0x3d906b(0x249)](_0x50829a):_0x5dcc3d[_0x3d906b(0x22d)];let _0x3ca9cc=[];const _0x15dd29=_0x5d6817[_0x3d906b(0x21c)]||_0x5d6817[_0x3d906b(0x248)];if(_0x5dcc3d[_0x3d906b(0x22e)](_0x15dd29,undefined))_0x3ca9cc=[_0x15dd29,_0x5dcc3d[_0x3d906b(0x22f)]];else _0x5dcc3d[_0x3d906b(0x22e)](_0x5c8b5e,undefined)&&(_0x3ca9cc=[_0x5c8b5e,_0x5dcc3d[_0x3d906b(0x1a4)]]);const _0x48e779=_0x5dcc3d[_0x3d906b(0x259)](_0x15dd29,undefined)?util[_0x3d906b(0x1fb)](_0x15dd29[0x0]):_0x5dcc3d[_0x3d906b(0x259)](_0x5c8b5e,undefined)?_0x5c8b5e[_0x3d906b(0x224)]():undefined;let _0x2da3f3=_0x5dcc3d[_0x3d906b(0x1d2)];if(_0x5dcc3d[_0x3d906b(0x250)](_0xd1f224,_0x5dcc3d[_0x3d906b(0x254)]))_0x2da3f3=_0x5dcc3d['bAmEx'];else _0x5dcc3d[_0x3d906b(0x250)](_0xd1f224,_0x5dcc3d[_0x3d906b(0x242)])&&(_0x15dd29&&_0x5dcc3d[_0x3d906b(0x20c)](_0x15dd29[_0x3d906b(0x1d3)],0x0)?_0x2da3f3=_0x5dcc3d['ItaKQ']:_0x2da3f3=_0x5dcc3d[_0x3d906b(0x1cb)]);let _0x1ed2f7=null;if(_0x5dcc3d[_0x3d906b(0x259)](_0x5d6817['duration'],undefined))_0x1ed2f7=_0x5d6817[_0x3d906b(0x20b)];else(_0xd1f224[_0x3d906b(0x1d6)](/Finished/)||_0xd1f224['match'](/Skipped/))&&(_0x5d6817['started_at']&&(_0x1ed2f7=_0x5dcc3d[_0x3d906b(0x1aa)](Date[_0x3d906b(0x1d7)](),new Date(_0x5d6817['started_at'])[_0x3d906b(0x1a3)]())));const _0x2a723e=_0x5d6817['fn']?_0x5d6817['fn'][_0x3d906b(0x224)]():null,_0x18aeb9={'id':_0x5c5dd3,'uuid':_0x5c5dd3,'startedAt':_0x5d6817[_0x3d906b(0x1ce)]||new Date()[_0x3d906b(0x1cf)](),'finishedAt':_0xd1f224['match'](/Finished/)||_0xd1f224[_0x3d906b(0x1d6)](/Skipped/)?new Date()[_0x3d906b(0x1cf)]():null,'type':_0x5dcc3d[_0x3d906b(0x22f)],'body':{'lang':_0x5dcc3d[_0x3d906b(0x1c4)],'code':_0x2a723e},'name':_0x350570,'errorsDetailed':_0x5dcc3d[_0x3d906b(0x25a)](_0x15dd29?.[_0x3d906b(0x1d3)],0x0)?_0x15dd29[0x0]:_0x15dd29?_0x15dd29:undefined,'scopes':_0x3f3b0a,'file_name':_0x34f3f9,'location':_0x34f3f9,'vc_filepath':this[_0x3d906b(0x23a)]&&_0x50829a?path[_0x3d906b(0x1c2)](this[_0x3d906b(0x23a)],_0x50829a):null,'framework':_0x5dcc3d[_0x3d906b(0x1d4)],'result':_0x2da3f3,'failure_reason':_0x48e779,'duration_in_ms':_0x1ed2f7,'failure':failureData[_0x3d906b(0x1f9)](null,_0x3ca9cc),'failure_type':!_0x48e779?null:_0x5dcc3d[_0x3d906b(0x200)](getFailureType,_0x48e779),'retry_of':_0x5d6817[_0x3d906b(0x1b1)]||null,'customRerunParam':{'rerun_name':_0x350570}};_0x5dcc3d[_0x3d906b(0x231)](_0xd1f224,_0x5dcc3d['JqqSh'])&&!_0x18aeb9['startedAt']&&(_0x18aeb9[_0x3d906b(0x1ca)]=_0x18aeb9['finishedAt']);const _0x20ec59=_0x18aeb9[_0x3d906b(0x1c6)]&&_0x18aeb9['failure'][0x0];return _0x20ec59&&(_0x18aeb9[_0x3d906b(0x237)]=_0x20ec59[_0x3d906b(0x1f2)],_0x18aeb9['failure_reason_expanded']=_0x20ec59['expanded']),(_0x5dcc3d[_0x3d906b(0x250)](_0xd1f224,_0x5dcc3d[_0x3d906b(0x242)])||_0x5dcc3d[_0x3d906b(0x21b)](_0xd1f224,_0x5dcc3d[_0x3d906b(0x254)]))&&(_0x5d6817[_0x3d906b(0x1a5)]&&(_0x18aeb9[_0x3d906b(0x1a5)]=_0x5d6817[_0x3d906b(0x1a5)])),_0x18aeb9;}catch(_0x2ff872){return logger[_0x3d906b(0x247)](_0x3d906b(0x21a)+util[_0x3d906b(0x1e7)](_0x2ff872)),null;}}async[a119_0x2970ea(0x1a8)](_0xf6ab6f,_0x2ea5d1,_0x3e6cf7,_0x1c2274){const _0x47a5f1=a119_0x2970ea,_0x2c3e10={'ZjUAD':'No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','VazcG':_0x47a5f1(0x1c3),'XYJix':_0x47a5f1(0x1e5),'pMOWN':_0x47a5f1(0x1dd),'zJjXO':_0x47a5f1(0x23c),'pUqpt':function(_0x116871,_0xd8e332){return _0x116871===_0xd8e332;},'ipCFe':_0x47a5f1(0x1fe),'zVwdR':function(_0x3bab57,_0x2fbbcd){return _0x3bab57>_0x2fbbcd;},'dDemk':_0x47a5f1(0x225),'UTZTn':function(_0x5c8e48,_0x458782){return _0x5c8e48(_0x458782);},'pazUt':_0x47a5f1(0x1d0),'ljCpn':_0x47a5f1(0x22b),'xtveg':_0x47a5f1(0x221),'HGDyJ':_0x47a5f1(0x243),'BAMZo':_0x47a5f1(0x223),'eVOhn':'HookRunStarted'};logger[_0x47a5f1(0x247)]('Creating\x20hook\x20data\x20for\x20eventType:\x20'+_0x3e6cf7+_0x47a5f1(0x257)+_0x2ea5d1+',\x20testRunId:\x20'+_0x1c2274);try{if(!_0xf6ab6f)return logger[_0x47a5f1(0x247)](_0x2c3e10[_0x47a5f1(0x1d8)]),null;if(this[_0x47a5f1(0x1f8)](_0xf6ab6f))return null;await this['configureGit']();let _0x1f8b45=null;try{_0x1f8b45=this[_0x47a5f1(0x240)](_0xf6ab6f);if(_0x1f8b45&&_0x1f8b45[_0x47a5f1(0x1f3)](_0x2c3e10[_0x47a5f1(0x1a7)]))return null;if(_0x1f8b45&&_0x1f8b45['includes'](_0x2c3e10[_0x47a5f1(0x20f)]))return null;}catch(_0x4950a8){logger['debug'](_0x47a5f1(0x25c)+util[_0x47a5f1(0x1e7)](_0x4950a8));}const _0x4f6864=_0x1f8b45?this['_paths']['prefixTestPath'](_0x1f8b45):_0x1f8b45,_0xc46722=this[_0x47a5f1(0x1a6)](_0xf6ab6f),_0x41fd17=_0xf6ab6f['type']||_0x2c3e10[_0x47a5f1(0x203)],_0x401f3f=HOOK_TYPES_MAP[_0x41fd17]||_0x41fd17[_0x47a5f1(0x21e)](),_0x49f6e6=_0xf6ab6f[_0x47a5f1(0x1e3)]&&_0xf6ab6f[_0x47a5f1(0x1e3)][_0x47a5f1(0x1b3)]?_0xf6ab6f['parent'][_0x47a5f1(0x1b3)]:'';let _0x719ad2=_0x2c3e10[_0x47a5f1(0x1ed)],_0x61883b=null,_0x33c8f1=null,_0x4e35be=null,_0x2f734d=null;_0x2c3e10[_0x47a5f1(0x1d1)](_0x3e6cf7,_0x2c3e10[_0x47a5f1(0x235)])&&(_0x2f734d=new Date()[_0x47a5f1(0x1cf)](),_0xf6ab6f['errorsDetailed']&&_0x2c3e10[_0x47a5f1(0x25b)](_0xf6ab6f[_0x47a5f1(0x21c)][_0x47a5f1(0x1d3)],0x0)?(_0x719ad2=_0x2c3e10[_0x47a5f1(0x1b5)],_0x33c8f1=util['inspect'](_0xf6ab6f['errorsDetailed'][0x0]),_0x61883b=_0x2c3e10[_0x47a5f1(0x1c1)](getFailureType,_0x33c8f1),_0x4e35be=failureData[_0x47a5f1(0x1f9)](null,[_0xf6ab6f[_0x47a5f1(0x21c)],_0x2c3e10['pazUt']])):_0x719ad2=_0x2c3e10[_0x47a5f1(0x217)]);const _0x39aada={'uuid':_0x2ea5d1,'type':_0x2c3e10[_0x47a5f1(0x233)],'hook_type':_0x401f3f,'name':_0xc46722,'body':{'lang':_0x2c3e10['HGDyJ'],'code':_0xf6ab6f['fn']?_0xf6ab6f['fn'][_0x47a5f1(0x224)]():null},'tags':[],'test_run_id':_0x1c2274,'scope':_0x49f6e6,'scopes':[_0x49f6e6],'file_name':_0x4f6864,'location':_0x4f6864,'vc_filepath':this[_0x47a5f1(0x23a)]&&_0x1f8b45?path[_0x47a5f1(0x1c2)](this[_0x47a5f1(0x23a)],_0x1f8b45):null,'result':_0x719ad2,'started_at':_0xf6ab6f[_0x47a5f1(0x1ce)]||new Date()[_0x47a5f1(0x1cf)](),'finished_at':_0x2f734d,'failure_type':_0x61883b,'failure_reason':_0x33c8f1,'failure_data':_0x4e35be,'framework':_0x2c3e10[_0x47a5f1(0x1c5)]};return _0x2c3e10[_0x47a5f1(0x1d1)](_0x3e6cf7,_0x2c3e10['eVOhn'])&&(hooksMap[_0x1c2274]?hooksMap[_0x1c2274][_0x47a5f1(0x1fa)](_0x39aada):hooksMap[_0x1c2274]=[_0x39aada]),_0x39aada;}catch(_0x9e85d4){return logger[_0x47a5f1(0x247)]('Exception\x20in\x20createHookData:\x20'+util[_0x47a5f1(0x1e7)](_0x9e85d4)),null;}}['getHookRunEventData'](_0x339d9f,_0x36fd5b,_0x7d1362){const _0xf2549d=a119_0x2970ea,_0x53d711={'CyVDo':function(_0x43885c,_0x547313){return _0x43885c>_0x547313;},'lrKha':_0xf2549d(0x225),'ATXQH':function(_0x212823,_0x1b9ead){return _0x212823(_0x1b9ead);},'UhEtN':_0xf2549d(0x1d0),'RJRcu':_0xf2549d(0x22b)};try{const _0x14dbd2=hooksMap[_0x339d9f];if(!_0x14dbd2)return null;const _0x5827cc=_0x14dbd2[_0xf2549d(0x1ad)](_0x4d8ba5=>_0x4d8ba5[_0xf2549d(0x1bf)]===_0x36fd5b);if(!_0x5827cc)return null;return _0x5827cc['finished_at']=new Date()[_0xf2549d(0x1cf)](),_0x7d1362['errorsDetailed']&&_0x53d711[_0xf2549d(0x1f5)](_0x7d1362[_0xf2549d(0x21c)][_0xf2549d(0x1d3)],0x0)?(_0x5827cc['result']=_0x53d711['lrKha'],_0x5827cc[_0xf2549d(0x207)]=util[_0xf2549d(0x1fb)](_0x7d1362[_0xf2549d(0x21c)][0x0]),_0x5827cc[_0xf2549d(0x241)]=_0x53d711[_0xf2549d(0x1c8)](getFailureType,_0x5827cc[_0xf2549d(0x207)]),_0x5827cc[_0xf2549d(0x1b4)]=failureData[_0xf2549d(0x1f9)](null,[_0x7d1362[_0xf2549d(0x21c)],_0x53d711[_0xf2549d(0x19f)]])):_0x5827cc[_0xf2549d(0x229)]=_0x53d711[_0xf2549d(0x1e8)],_0x5827cc;}catch(_0x43de18){return logger['debug'](_0xf2549d(0x22c)+util[_0xf2549d(0x1e7)](_0x43de18)),null;}}['getName'](_0x6cb2b6){const _0xdcbcb9=a119_0x2970ea,_0x20325c={};_0x20325c[_0xdcbcb9(0x1dc)]=function(_0x25b873,_0x3c6deb){return _0x25b873!==_0x3c6deb;},_0x20325c[_0xdcbcb9(0x1fc)]='test',_0x20325c[_0xdcbcb9(0x213)]=_0xdcbcb9(0x1eb);const _0x4f2eb0=_0x20325c;if(_0x4f2eb0[_0xdcbcb9(0x1dc)](_0x6cb2b6[_0xdcbcb9(0x1f0)],_0x4f2eb0[_0xdcbcb9(0x1fc)]))return'\x22'+_0x6cb2b6['type']+_0xdcbcb9(0x24a)+(_0x6cb2b6[_0xdcbcb9(0x1e3)]&&_0x6cb2b6[_0xdcbcb9(0x1e3)][_0xdcbcb9(0x1b3)])+'\x22';return _0x6cb2b6[_0xdcbcb9(0x1b3)]||_0x4f2eb0[_0xdcbcb9(0x213)];}[a119_0x2970ea(0x205)](_0x1eb696){const _0x13b252=a119_0x2970ea,_0x2366c8={};_0x2366c8[_0x13b252(0x219)]=function(_0x1ba5f4,_0x2214f8){return _0x1ba5f4!==_0x2214f8;},_0x2366c8[_0x13b252(0x1d5)]=_0x13b252(0x1ec);const _0x544e38=_0x2366c8,_0x17ca89=[];if(_0x1eb696&&_0x1eb696[_0x13b252(0x1e3)]){let _0x9a276e=_0x1eb696['parent'];while(_0x9a276e&&_0x9a276e[_0x13b252(0x1b3)]&&_0x544e38['GMowj'](_0x9a276e['name'],'')&&_0x544e38[_0x13b252(0x219)](_0x9a276e[_0x13b252(0x1b3)],_0x544e38[_0x13b252(0x1d5)])){_0x17ca89['push'](_0x9a276e[_0x13b252(0x1b3)]),_0x9a276e=_0x9a276e[_0x13b252(0x1e3)];}}return _0x17ca89[_0x13b252(0x245)](),_0x17ca89;}[a119_0x2970ea(0x240)](_0x12a920){const _0x4d945d=a119_0x2970ea,_0x412d5a={'Iyzvc':function(_0x4ba6e1,_0x364951){return _0x4ba6e1(_0x364951);}};if(_0x12a920[_0x4d945d(0x23b)])return _0x12a920[_0x4d945d(0x23b)];if(_0x12a920[_0x4d945d(0x1e9)])try{const _0x147cec=stackTrace[_0x4d945d(0x1ff)]['call'](stackTrace,_0x12a920[_0x4d945d(0x1e9)]),_0x99eb9a=_0x412d5a[_0x4d945d(0x216)](pickUserFrameFile,_0x147cec);if(_0x99eb9a)return _0x99eb9a;logger['debug'](_0x4d945d(0x1c9)+_0x147cec['length']+')');}catch(_0xf6fa61){logger[_0x4d945d(0x247)](_0x4d945d(0x252)+util[_0x4d945d(0x1e7)](_0xf6fa61));}return null;}['isJestInternalHook'](_0x4995e9){const _0x4d1d31=a119_0x2970ea,_0x3d53a6={};_0x3d53a6[_0x4d1d31(0x1c7)]=_0x4d1d31(0x1c3);const _0x2979b1=_0x3d53a6;try{const _0x5c1207=this['getRootParentFile'](_0x4995e9);if(!_0x5c1207||_0x5c1207[_0x4d1d31(0x1f3)](_0x2979b1[_0x4d1d31(0x1c7)]))return!![];}catch(_0x1bbd90){logger[_0x4d1d31(0x247)](_0x4d1d31(0x24b)+util[_0x4d1d31(0x1e7)](_0x1bbd90));}return![];}[a119_0x2970ea(0x255)](_0x4e29d3=null){const _0x2dc293=a119_0x2970ea;try{const _0x195652=_0x4e29d3||global[_0x2dc293(0x210)]||{};if(global[_0x2dc293(0x230)])return global[_0x2dc293(0x230)];if(_0x195652?.[_0x2dc293(0x20e)]?.[_0x2dc293(0x1b2)])return _0x195652['currentTest'][_0x2dc293(0x1b2)];if(_0x195652?.[_0x2dc293(0x20e)]?.['id'])return _0x195652['currentTest']['id'];return null;}catch(_0x79bae0){return logger[_0x2dc293(0x247)](_0x2dc293(0x212)+util[_0x2dc293(0x1e7)](_0x79bae0)),null;}}async[a119_0x2970ea(0x1b7)](){const _0x4612a1=a119_0x2970ea,_0x1824d8={'iRnrm':function(_0x271bf6){return _0x271bf6();}};if(this[_0x4612a1(0x1c0)])return this[_0x4612a1(0x23a)];const _0x463c86=await _0x1824d8['iRnrm'](getGitMetaData);_0x463c86&&(this[_0x4612a1(0x23a)]=_0x463c86[_0x4612a1(0x204)]),this[_0x4612a1(0x1c0)]=!![];}[a119_0x2970ea(0x220)](_0x137fc7){hooksMap[_0x137fc7]&&delete hooksMap[_0x137fc7];}[a119_0x2970ea(0x1de)](_0x4c77b2){const _0x4db94e=a119_0x2970ea,_0x43c411={'otBJk':_0x4db94e(0x1c3),'nxTvo':function(_0x45b2f2,_0x1b3fa4){return _0x45b2f2(_0x1b3fa4);},'hOznZ':_0x4db94e(0x1b9)};if(_0x4c77b2[_0x4db94e(0x23b)])return _0x4c77b2[_0x4db94e(0x23b)];if(_0x4c77b2[_0x4db94e(0x1e9)]){try{const _0x4b19a6=stackTrace[_0x4db94e(0x1ff)](_0x4c77b2[_0x4db94e(0x1e9)]);if(_0x4b19a6[0x0]&&_0x4b19a6[0x0][_0x4db94e(0x234)]){const _0xd18401=_0x4b19a6[0x0]['getFileName']();if(_0xd18401&&!_0xd18401[_0x4db94e(0x1f3)](_0x43c411['otBJk']))return _0xd18401;}}catch(_0x19eddd){logger['debug'](_0x4db94e(0x20a)+util[_0x4db94e(0x1e7)](_0x19eddd));}if(_0x4c77b2[_0x4db94e(0x1e9)][_0x4db94e(0x1a2)]){const _0xac0d61=_0x4c77b2['asyncError'][_0x4db94e(0x1a2)][_0x4db94e(0x1a1)]('\x0a');for(const _0x1b7842 of _0xac0d61){const _0x503ebb=_0x1b7842['match'](/at (.+?):\d+:\d+/);if(_0x503ebb&&_0x503ebb[0x1]&&!_0x503ebb[0x1]['includes'](_0x43c411[_0x4db94e(0x1ef)]))return _0x503ebb[0x1];}}}let _0x1f8ea8=_0x4c77b2[_0x4db94e(0x1e3)];while(_0x1f8ea8){if(_0x1f8ea8[_0x4db94e(0x23b)])return _0x1f8ea8[_0x4db94e(0x23b)];if(_0x1f8ea8[_0x4db94e(0x1e9)])try{const _0xb1d443=stackTrace['parse'](_0x1f8ea8[_0x4db94e(0x1e9)]);if(_0xb1d443[0x0]&&_0xb1d443[0x0][_0x4db94e(0x234)]){const _0x16c315=_0xb1d443[0x0]['getFileName']();if(_0x16c315&&!_0x16c315[_0x4db94e(0x1f3)](_0x43c411[_0x4db94e(0x1ef)]))return _0x16c315;}}catch(_0x6a7d76){}_0x1f8ea8=_0x1f8ea8[_0x4db94e(0x1e3)];}try{const _0x41bdda=_0x43c411['nxTvo'](require,_0x43c411[_0x4db94e(0x1b6)]);if(_0x41bdda&&_0x41bdda[_0x4db94e(0x206)]){const _0x4d94c2=_0x41bdda[_0x4db94e(0x206)]();if(_0x4d94c2&&_0x4d94c2[_0x4db94e(0x232)])return _0x4d94c2[_0x4db94e(0x232)];}}catch(_0x42c1ce){logger['debug'](_0x4db94e(0x1e1)+util[_0x4db94e(0x1e7)](_0x42c1ce));}return null;}[a119_0x2970ea(0x246)](_0x59df0e){const _0x12a42f=a119_0x2970ea,_0x1582cd={};_0x1582cd['alqWD']=_0x12a42f(0x209),_0x1582cd['bCElY']=function(_0x22fac2,_0x4c22fa){return _0x22fac2!==_0x4c22fa;},_0x1582cd[_0x12a42f(0x1ba)]=_0x12a42f(0x1ec),_0x1582cd[_0x12a42f(0x228)]=_0x12a42f(0x1c3),_0x1582cd[_0x12a42f(0x214)]=_0x12a42f(0x1f6),_0x1582cd[_0x12a42f(0x1cd)]='hex';const _0x5dd8a3=_0x1582cd;try{if(!_0x59df0e)return logger[_0x12a42f(0x1b8)](_0x5dd8a3['alqWD']),null;const _0xdcca0f=_0x59df0e[_0x12a42f(0x24e)]||_0x59df0e[_0x12a42f(0x1b3)]||_0x59df0e['title']||_0x59df0e['displayName'];let _0x4dd5c9=_0xdcca0f;if(_0x59df0e['parent']&&_0x59df0e['parent']['name']&&_0x5dd8a3['bCElY'](_0x59df0e[_0x12a42f(0x1e3)][_0x12a42f(0x1b3)],_0x5dd8a3[_0x12a42f(0x1ba)])){const _0x4b6b92=_0x59df0e[_0x12a42f(0x1b3)]||_0x59df0e[_0x12a42f(0x1bb)];_0x4b6b92&&(_0x4dd5c9=_0x59df0e['parent'][_0x12a42f(0x1b3)]+'\x20'+_0x4b6b92);}let _0x42718c=_0x59df0e[_0x12a42f(0x232)];if(!_0x42718c&&_0x59df0e[_0x12a42f(0x1e9)]){try{const _0x17ac79=stackTrace[_0x12a42f(0x1ff)](_0x59df0e['asyncError']);if(_0x17ac79[0x0]&&_0x17ac79[0x0][_0x12a42f(0x234)]){const _0x3b7b0b=_0x17ac79[0x0]['getFileName']();_0x3b7b0b&&!_0x3b7b0b[_0x12a42f(0x1f3)](_0x5dd8a3[_0x12a42f(0x228)])&&(_0x42718c=_0x3b7b0b);}}catch(_0x49759a){logger[_0x12a42f(0x247)]('[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util['format'](_0x49759a));}if(!_0x42718c&&_0x59df0e['asyncError'][_0x12a42f(0x1a2)]){const _0x3e0f78=_0x59df0e[_0x12a42f(0x1e9)][_0x12a42f(0x1a2)][_0x12a42f(0x1a1)]('\x0a');for(const _0xd57989 of _0x3e0f78){const _0x52487e=_0xd57989[_0x12a42f(0x1d6)](/at (.+?):\d+:\d+/);if(_0x52487e&&_0x52487e[0x1]&&!_0x52487e[0x1][_0x12a42f(0x1f3)](_0x5dd8a3[_0x12a42f(0x228)])){_0x42718c=_0x52487e[0x1];break;}}}}const _0x1eb818=_0x42718c+'::'+_0x4dd5c9,_0x51289e=crypto['createHash'](_0x5dd8a3[_0x12a42f(0x214)])['update'](_0x1eb818)[_0x12a42f(0x1e4)](_0x5dd8a3[_0x12a42f(0x1cd)])[_0x12a42f(0x215)](0x0,0x8),_0x32edba=process[_0x12a42f(0x1cc)]+_0x12a42f(0x1ea)+_0x51289e;return logger['debug'](_0x12a42f(0x226)+_0x32edba+_0x12a42f(0x1a0)+_0x1eb818),_0x32edba;}catch(_0x5adf05){return logger['error'](_0x12a42f(0x22a)+util[_0x12a42f(0x1e7)](_0x5adf05)),null;}}[a119_0x2970ea(0x1be)](_0x4c13b8){const _0x514be0=a119_0x2970ea,_0x3e7ca0={};_0x3e7ca0[_0x514be0(0x218)]=_0x514be0(0x24c);const _0x34c14f=_0x3e7ca0;if(!_0x4c13b8)return logger[_0x514be0(0x247)](_0x34c14f[_0x514be0(0x218)]),null;const _0xc0645e=this[_0x514be0(0x1de)](_0x4c13b8),_0x260ba9={};_0x260ba9[_0x514be0(0x1b3)]=_0x4c13b8[_0x514be0(0x1b3)]||_0x4c13b8[_0x514be0(0x1bb)],_0x260ba9[_0x514be0(0x1e3)]=_0x4c13b8['parent'],_0x260ba9[_0x514be0(0x232)]=_0xc0645e,_0x260ba9[_0x514be0(0x1e9)]=_0x4c13b8[_0x514be0(0x1e9)];const _0x70a10b=_0x260ba9;return this[_0x514be0(0x246)](_0x70a10b);}['recreateIdentifierFromTestInfo'](_0x1212d9,_0x59d9f8=null){const _0x43bbda=a119_0x2970ea,_0x2c954b={};_0x2c954b['TRwei']='[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation';const _0x2107e5=_0x2c954b;if(!_0x1212d9)return logger[_0x43bbda(0x247)](_0x2107e5[_0x43bbda(0x1f4)]),_0x59d9f8;if(_0x1212d9[_0x43bbda(0x256)])return logger[_0x43bbda(0x247)](_0x43bbda(0x1e6)+_0x1212d9[_0x43bbda(0x256)]),_0x1212d9['testIdentifier'];return this[_0x43bbda(0x246)](_0x1212d9)||_0x59d9f8;}}module['exports']=o11yClassErrorHandler(JestUtils,[a119_0x2970ea(0x1b7),a119_0x2970ea(0x205),a119_0x2970ea(0x240),a119_0x2970ea(0x1a6),a119_0x2970ea(0x1f8),'getTestIdentifier',a119_0x2970ea(0x1f7),'createHookData',a119_0x2970ea(0x24f),a119_0x2970ea(0x220),a119_0x2970ea(0x1de),a119_0x2970ea(0x246),a119_0x2970ea(0x1be),a119_0x2970ea(0x1f1)]);
|
|
1
|
+
const a119_0x3720e1=a119_0x4236;(function(_0x5359a1,_0x34f5e7){const _0x2eef82=a119_0x4236,_0x241af4=_0x5359a1();while(!![]){try{const _0x280fd8=-parseInt(_0x2eef82(0x111))/0x1*(parseInt(_0x2eef82(0x12e))/0x2)+-parseInt(_0x2eef82(0xfa))/0x3*(parseInt(_0x2eef82(0xa0))/0x4)+-parseInt(_0x2eef82(0xc1))/0x5+-parseInt(_0x2eef82(0x137))/0x6+-parseInt(_0x2eef82(0xc5))/0x7*(-parseInt(_0x2eef82(0xe3))/0x8)+parseInt(_0x2eef82(0xa4))/0x9+-parseInt(_0x2eef82(0x136))/0xa*(-parseInt(_0x2eef82(0xb6))/0xb);if(_0x280fd8===_0x34f5e7)break;else _0x241af4['push'](_0x241af4['shift']());}catch(_0x592bab){_0x241af4['push'](_0x241af4['shift']());}}}(a119_0xc62e,0xcc569));function a119_0x4236(_0x3a6e1c,_0x1378df){const _0xc62e19=a119_0xc62e();return a119_0x4236=function(_0x423625,_0x2c371e){_0x423625=_0x423625-0x8d;let _0x328c55=_0xc62e19[_0x423625];return _0x328c55;},a119_0x4236(_0x3a6e1c,_0x1378df);}const path=require(a119_0x3720e1(0xea)),util=require(a119_0x3720e1(0xce)),crypto=require(a119_0x3720e1(0xc4)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a119_0x3720e1(0xe0)),logger=require(a119_0x3720e1(0xeb))['winstonLogger'],{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler.js'),TestInfo=require(a119_0x3720e1(0x141)),{failureData,getFailureType,PathHelper}=require(a119_0x3720e1(0xb5)),stackTrace=require(a119_0x3720e1(0x102)),{pickUserFrameFile}=require(a119_0x3720e1(0xb7)),a119_0x38000a={};function a119_0xc62e(){const _0x3050ac=['includes','vjIxw','EpnuK','update','XXzMk','getName','nXAYU','TestRunSkipped','currentTest','3001638bqcTUz','createTestFrameworkData','mlnrL','hex','toString','expect','clearHooksMap','getHierarchy','6730690hyomnD','4098690vIWrQF','getState','ybxOt','uUWqX','prefixTestPath','asyncError','GMCQD','KEeBY',',\x20hookUUID:\x20','duration','../TestInfo.js','Creating\x20hook\x20data\x20for\x20eventType:\x20','skipped','md5','testIdentifier','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','\x22\x20hook\x20for\x20\x22','_gitConfigPath','lPcfG','parent','jest','hooks','RxQFi','find','jest-circus','dzVZN','extractTestFilePath','started_at','retryOf','eDMMA','backtrace','4BphvJV','getRootParentFile','[jestUtils]\x20No\x20test\x20object\x20provided','title','5159439QIfpjA','ajcBF','AFTER_ALL','createHookData','__jestCurrentTestIdentifier','now','pid','format','zHsjt','\x20from\x20compositeKey:\x20','dCStB','BuUXA','Exception\x20in\x20createTestFrameworkData:\x20','oUgnq','[jestUtils]\x20Created\x20identifier:\x20','ANxLP','finished_at','../../../helpers/test-observability/utils','55pIzouA','../../../helpers/stackFrameUtils','cwd','pending','Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20','AFTER_EACH','AYIwe','pAHgl','getTestIdentifier','jwTNQ','stack','6607430DAMBJa','failed','getHookRunEventData','crypto','7LsiatS','configureGit','BEFORE_ALL','hook','length','Fjsmv','root','apply','getTime','util','KBODo','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20',',\x20testRunId:\x20','GxIhD','[jestUtils]\x20Error\x20creating\x20identifier:\x20','reverse','EAmxq','recreateIdentifierFromTestInfo','substring','relative','Unknown\x20Test','createHash','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','digest','wCLMg','name','lRnJO','../../../helpers/helper.js','toISOString','Aaqey','3241240pDsliL','failure_data','RfmmG','NzqJQ','displayName','type','inspect','path','../../../helpers/logger.js','file','qICdD','createIdentifierFromJestTest','_paths','PGNBV','testAnalyticsId','match','startedAt','failure','testPath','errorsDetailed','toUpperCase','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','Exception\x20in\x20createHookData:\x20','4146BJORIh','ndTun','err','test','hYBqN','aZaLc','failure_reason','failure_type','stack-trace','xkzeQ','createJestTestIdentifier','call','DxHLF','error','parse','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','fullName','_gitConfigured','lLKEq','beforeEach','javascript','CpbCy','1BxcIvE','MwHJb','Exception\x20in\x20getHookRunEventData:\x20','ROOT_DESCRIBE_BLOCK','YzIwk','errors','TestRunFinished','AAobR','exports','JQwQs','passed','TpUqp','sPVTT','debug','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation',',\x20testIdentifier:\x20','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','CEcxZ','crwtN','getFileName'];a119_0xc62e=function(){return _0x3050ac;};return a119_0xc62e();}a119_0x38000a['beforeAll']=a119_0x3720e1(0xc7),a119_0x38000a['afterAll']=a119_0x3720e1(0xa6),a119_0x38000a[a119_0x3720e1(0x10e)]='BEFORE_EACH',a119_0x38000a['afterEach']=a119_0x3720e1(0xbb);const HOOK_TYPES_MAP=a119_0x38000a,hooksMap={};class JestUtils{constructor(){const _0x255361=a119_0x3720e1;this[_0x255361(0x10c)]=![],this[_0x255361(0x92)]=null,this[_0x255361(0xef)]=new PathHelper({'cwd':process[_0x255361(0xb8)]()},undefined);}async[a119_0x3720e1(0x12f)](_0xb8d33e,_0x3df255,_0xda15f4='TestRunFinished',_0x2b999e=undefined){const _0x4f6c72=a119_0x3720e1,_0x2df889={'qICdD':_0x4f6c72(0xf8),'oAizG':_0x4f6c72(0x99),'crwtN':'File\x20path\x20could\x20not\x20be\x20found','eDMMA':function(_0x134833,_0x644fec){return _0x134833!==_0x644fec;},'ybxOt':'test','pAHgl':_0x4f6c72(0xfc),'lRnJO':function(_0x5d1187,_0x2ad10a){return _0x5d1187!==_0x2ad10a;},'DCaPM':_0x4f6c72(0xb9),'VYXSo':function(_0x424b1b,_0x4dd6e0){return _0x424b1b===_0x4dd6e0;},'NzqJQ':_0x4f6c72(0x12c),'BGlWK':_0x4f6c72(0x8d),'ajcBF':function(_0x21dcec,_0x5c6598){return _0x21dcec===_0x5c6598;},'ndTun':_0x4f6c72(0x117),'sPVTT':function(_0x587a40,_0x4a78c6){return _0x587a40>_0x4a78c6;},'Aaqey':'failed','BuUXA':'passed','nXAYU':function(_0x52b7e5,_0x14e034){return _0x52b7e5-_0x14e034;},'PGNBV':'javascript','GMCQD':_0x4f6c72(0x95),'IziqD':function(_0x29424e,_0x11500a){return _0x29424e(_0x11500a);},'DxHLF':function(_0x571675,_0x1b079a){return _0x571675===_0x1b079a;},'hYBqN':function(_0x746a59,_0x593ef4){return _0x746a59===_0x593ef4;},'YVvJE':function(_0x148424,_0x411295){return _0x148424===_0x411295;}};logger[_0x4f6c72(0x11e)](_0x4f6c72(0xba)+_0xda15f4+_0x4f6c72(0x120)+_0x3df255);try{if(!_0xb8d33e)return logger[_0x4f6c72(0x11e)](_0x2df889[_0x4f6c72(0xed)]),null;if(_0xb8d33e['fn']&&_0xb8d33e['fn'][_0x4f6c72(0x132)]()[_0x4f6c72(0xf2)](/browserstack internal helper hook/))return null;await this['configureGit']();let _0x31b490;try{_0x31b490=this['getRootParentFile'](_0xb8d33e);if(_0x31b490&&_0x31b490[_0x4f6c72(0x125)](_0x2df889['oAizG']))return null;}catch(_0x4ef414){logger[_0x4f6c72(0x11e)](_0x4f6c72(0x121)+util[_0x4f6c72(0xab)](_0x4ef414)),_0x31b490=null;}const _0x423871=this[_0x4f6c72(0x135)](_0xb8d33e),_0x17b711=this[_0x4f6c72(0x12a)](_0xb8d33e),_0x1daeae=_0x31b490?this[_0x4f6c72(0xef)][_0x4f6c72(0x13b)](_0x31b490):_0x2df889[_0x4f6c72(0x123)];let _0x10a410=[];const _0x306c5a=_0xb8d33e[_0x4f6c72(0xf6)]||_0xb8d33e[_0x4f6c72(0x116)];if(_0x2df889[_0x4f6c72(0x9e)](_0x306c5a,undefined))_0x10a410=[_0x306c5a,_0x2df889[_0x4f6c72(0x139)]];else _0x2df889[_0x4f6c72(0x9e)](_0x2b999e,undefined)&&(_0x10a410=[_0x2b999e,_0x2df889[_0x4f6c72(0xbd)]]);const _0x219a0d=_0x2df889['lRnJO'](_0x306c5a,undefined)?util[_0x4f6c72(0xe9)](_0x306c5a[0x0]):_0x2df889[_0x4f6c72(0xdf)](_0x2b999e,undefined)?_0x2b999e['toString']():undefined;let _0x25b1fb=_0x2df889['DCaPM'];if(_0x2df889['VYXSo'](_0xda15f4,_0x2df889[_0x4f6c72(0xe6)]))_0x25b1fb=_0x2df889['BGlWK'];else _0x2df889[_0x4f6c72(0xa5)](_0xda15f4,_0x2df889[_0x4f6c72(0xfb)])&&(_0x306c5a&&_0x2df889[_0x4f6c72(0x11d)](_0x306c5a[_0x4f6c72(0xc9)],0x0)?_0x25b1fb=_0x2df889[_0x4f6c72(0xe2)]:_0x25b1fb=_0x2df889[_0x4f6c72(0xaf)]);let _0x4c214f=null;if(_0x2df889[_0x4f6c72(0x9e)](_0xb8d33e[_0x4f6c72(0x140)],undefined))_0x4c214f=_0xb8d33e[_0x4f6c72(0x140)];else(_0xda15f4[_0x4f6c72(0xf2)](/Finished/)||_0xda15f4[_0x4f6c72(0xf2)](/Skipped/))&&(_0xb8d33e['started_at']&&(_0x4c214f=_0x2df889[_0x4f6c72(0x12b)](Date[_0x4f6c72(0xa9)](),new Date(_0xb8d33e[_0x4f6c72(0x9c)])[_0x4f6c72(0xcd)]())));const _0x502536=_0xb8d33e['fn']?_0xb8d33e['fn'][_0x4f6c72(0x132)]():null,_0x144035={'id':_0x3df255,'uuid':_0x3df255,'startedAt':_0xb8d33e[_0x4f6c72(0x9c)]||new Date()[_0x4f6c72(0xe1)](),'finishedAt':_0xda15f4[_0x4f6c72(0xf2)](/Finished/)||_0xda15f4['match'](/Skipped/)?new Date()[_0x4f6c72(0xe1)]():null,'type':_0x2df889['ybxOt'],'body':{'lang':_0x2df889[_0x4f6c72(0xf0)],'code':_0x502536},'name':_0x17b711,'errorsDetailed':_0x2df889[_0x4f6c72(0x11d)](_0x306c5a?.[_0x4f6c72(0xc9)],0x0)?_0x306c5a[0x0]:_0x306c5a?_0x306c5a:undefined,'scopes':_0x423871,'file_name':_0x1daeae,'location':_0x1daeae,'vc_filepath':this[_0x4f6c72(0x92)]&&_0x31b490?path[_0x4f6c72(0xd8)](this[_0x4f6c72(0x92)],_0x31b490):null,'framework':_0x2df889[_0x4f6c72(0x13d)],'result':_0x25b1fb,'failure_reason':_0x219a0d,'duration_in_ms':_0x4c214f,'failure':failureData[_0x4f6c72(0xcc)](null,_0x10a410),'failure_type':!_0x219a0d?null:_0x2df889['IziqD'](getFailureType,_0x219a0d),'retry_of':_0xb8d33e[_0x4f6c72(0x9d)]||null,'customRerunParam':{'rerun_name':_0x17b711}};_0x2df889[_0x4f6c72(0x106)](_0xda15f4,_0x2df889[_0x4f6c72(0xe6)])&&!_0x144035['startedAt']&&(_0x144035[_0x4f6c72(0xf3)]=_0x144035['finishedAt']);const _0x26f56c=_0x144035[_0x4f6c72(0xf4)]&&_0x144035['failure'][0x0];return _0x26f56c&&(_0x144035['failure_backtrace']=_0x26f56c[_0x4f6c72(0x9f)],_0x144035['failure_reason_expanded']=_0x26f56c['expanded']),(_0x2df889[_0x4f6c72(0xfe)](_0xda15f4,_0x2df889[_0x4f6c72(0xfb)])||_0x2df889['YVvJE'](_0xda15f4,_0x2df889[_0x4f6c72(0xe6)]))&&(_0xb8d33e[_0x4f6c72(0x96)]&&(_0x144035[_0x4f6c72(0x96)]=_0xb8d33e[_0x4f6c72(0x96)])),_0x144035;}catch(_0x400ecd){return logger[_0x4f6c72(0x11e)](_0x4f6c72(0xb0)+util[_0x4f6c72(0xab)](_0x400ecd)),null;}}async[a119_0x3720e1(0xa7)](_0x2a8022,_0x92fb68,_0x20bdbb,_0x256ed7){const _0x565ef6=a119_0x3720e1,_0x152fb2={'XXzMk':_0x565ef6(0xdb),'CEcxZ':_0x565ef6(0x99),'wZJtw':'browserstack-node-agent/src/bin/jest','ANxLP':'unknown','YzIwk':'pending','AAobR':function(_0x59c402,_0x4981f2){return _0x59c402===_0x4981f2;},'PGowI':'HookRunFinished','gliCi':function(_0x1e94bb,_0x432aa9){return _0x1e94bb>_0x432aa9;},'dTUKR':_0x565ef6(0xc2),'lPcfG':function(_0x581597,_0x251065){return _0x581597(_0x251065);},'jCsJa':'test','irKkT':_0x565ef6(0x11b),'Fjsmv':_0x565ef6(0xc8),'MwHJb':_0x565ef6(0x10f),'dCStB':_0x565ef6(0x95),'GxIhD':'HookRunStarted'};logger[_0x565ef6(0x11e)](_0x565ef6(0x142)+_0x20bdbb+_0x565ef6(0x13f)+_0x92fb68+_0x565ef6(0xd1)+_0x256ed7);try{if(!_0x2a8022)return logger[_0x565ef6(0x11e)](_0x152fb2[_0x565ef6(0x129)]),null;if(this['isJestInternalHook'](_0x2a8022))return null;await this[_0x565ef6(0xc6)]();let _0x1e0634=null;try{_0x1e0634=this['getRootParentFile'](_0x2a8022);if(_0x1e0634&&_0x1e0634[_0x565ef6(0x125)](_0x152fb2[_0x565ef6(0x122)]))return null;if(_0x1e0634&&_0x1e0634['includes'](_0x152fb2['wZJtw']))return null;}catch(_0x2bc688){logger['debug']('Failed\x20to\x20get\x20hook\x20file\x20path:\x20'+util[_0x565ef6(0xab)](_0x2bc688));}const _0x239e94=_0x1e0634?this[_0x565ef6(0xef)]['prefixTestPath'](_0x1e0634):_0x1e0634,_0xd6e753=this[_0x565ef6(0x12a)](_0x2a8022),_0x4e3ec2=_0x2a8022[_0x565ef6(0xe8)]||_0x152fb2[_0x565ef6(0xb3)],_0x5a25da=HOOK_TYPES_MAP[_0x4e3ec2]||_0x4e3ec2[_0x565ef6(0xf7)](),_0xff8817=_0x2a8022[_0x565ef6(0x94)]&&_0x2a8022['parent'][_0x565ef6(0xde)]?_0x2a8022[_0x565ef6(0x94)][_0x565ef6(0xde)]:'';let _0x377ed9=_0x152fb2[_0x565ef6(0x115)],_0x13a31f=null,_0x2e4fd3=null,_0x4a692c=null,_0x21bd13=null;_0x152fb2['AAobR'](_0x20bdbb,_0x152fb2['PGowI'])&&(_0x21bd13=new Date()['toISOString'](),_0x2a8022[_0x565ef6(0xf6)]&&_0x152fb2['gliCi'](_0x2a8022[_0x565ef6(0xf6)]['length'],0x0)?(_0x377ed9=_0x152fb2['dTUKR'],_0x2e4fd3=util[_0x565ef6(0xe9)](_0x2a8022['errorsDetailed'][0x0]),_0x13a31f=_0x152fb2[_0x565ef6(0x93)](getFailureType,_0x2e4fd3),_0x4a692c=failureData[_0x565ef6(0xcc)](null,[_0x2a8022[_0x565ef6(0xf6)],_0x152fb2['jCsJa']])):_0x377ed9=_0x152fb2['irKkT']);const _0x2f7988={'uuid':_0x92fb68,'type':_0x152fb2[_0x565ef6(0xca)],'hook_type':_0x5a25da,'name':_0xd6e753,'body':{'lang':_0x152fb2[_0x565ef6(0x112)],'code':_0x2a8022['fn']?_0x2a8022['fn'][_0x565ef6(0x132)]():null},'tags':[],'test_run_id':_0x256ed7,'scope':_0xff8817,'scopes':[_0xff8817],'file_name':_0x239e94,'location':_0x239e94,'vc_filepath':this[_0x565ef6(0x92)]&&_0x1e0634?path[_0x565ef6(0xd8)](this[_0x565ef6(0x92)],_0x1e0634):null,'result':_0x377ed9,'started_at':_0x2a8022[_0x565ef6(0x9c)]||new Date()[_0x565ef6(0xe1)](),'finished_at':_0x21bd13,'failure_type':_0x13a31f,'failure_reason':_0x2e4fd3,'failure_data':_0x4a692c,'framework':_0x152fb2[_0x565ef6(0xae)]};return _0x152fb2[_0x565ef6(0x118)](_0x20bdbb,_0x152fb2[_0x565ef6(0xd2)])&&(hooksMap[_0x256ed7]?hooksMap[_0x256ed7]['push'](_0x2f7988):hooksMap[_0x256ed7]=[_0x2f7988]),_0x2f7988;}catch(_0x504857){return logger[_0x565ef6(0x11e)](_0x565ef6(0xf9)+util[_0x565ef6(0xab)](_0x504857)),null;}}[a119_0x3720e1(0xc3)](_0x4b4bf2,_0x36ad35,_0x510af6){const _0x5c366c=a119_0x3720e1,_0x5bc3c1={'dzVZN':function(_0x541a3e,_0x14f211){return _0x541a3e>_0x14f211;},'uUWqX':_0x5c366c(0xc2),'gQIcd':function(_0x254388,_0x472ed7){return _0x254388(_0x472ed7);},'Ftbdx':_0x5c366c(0xfd),'sZbit':_0x5c366c(0x11b)};try{const _0x3998b5=hooksMap[_0x4b4bf2];if(!_0x3998b5)return null;const _0x53371d=_0x3998b5[_0x5c366c(0x98)](_0x592ecb=>_0x592ecb['uuid']===_0x36ad35);if(!_0x53371d)return null;return _0x53371d[_0x5c366c(0xb4)]=new Date()[_0x5c366c(0xe1)](),_0x510af6[_0x5c366c(0xf6)]&&_0x5bc3c1[_0x5c366c(0x9a)](_0x510af6[_0x5c366c(0xf6)][_0x5c366c(0xc9)],0x0)?(_0x53371d['result']=_0x5bc3c1[_0x5c366c(0x13a)],_0x53371d[_0x5c366c(0x100)]=util[_0x5c366c(0xe9)](_0x510af6[_0x5c366c(0xf6)][0x0]),_0x53371d[_0x5c366c(0x101)]=_0x5bc3c1['gQIcd'](getFailureType,_0x53371d['failure_reason']),_0x53371d[_0x5c366c(0xe4)]=failureData[_0x5c366c(0xcc)](null,[_0x510af6[_0x5c366c(0xf6)],_0x5bc3c1['Ftbdx']])):_0x53371d['result']=_0x5bc3c1['sZbit'],_0x53371d;}catch(_0x446a5c){return logger['debug'](_0x5c366c(0x113)+util['format'](_0x446a5c)),null;}}[a119_0x3720e1(0x12a)](_0x5ed1dc){const _0x3c00d3=a119_0x3720e1,_0x3829d4={};_0x3829d4[_0x3c00d3(0xe5)]=function(_0x1f7f8f,_0x2c6ce5){return _0x1f7f8f!==_0x2c6ce5;},_0x3829d4['oUgnq']='test',_0x3829d4[_0x3c00d3(0x10d)]=_0x3c00d3(0xd9);const _0x312d67=_0x3829d4;if(_0x312d67[_0x3c00d3(0xe5)](_0x5ed1dc[_0x3c00d3(0xe8)],_0x312d67[_0x3c00d3(0xb1)]))return'\x22'+_0x5ed1dc[_0x3c00d3(0xe8)]+_0x3c00d3(0x91)+(_0x5ed1dc[_0x3c00d3(0x94)]&&_0x5ed1dc[_0x3c00d3(0x94)][_0x3c00d3(0xde)])+'\x22';return _0x5ed1dc[_0x3c00d3(0xde)]||_0x312d67[_0x3c00d3(0x10d)];}[a119_0x3720e1(0x135)](_0xacae27){const _0x35409c=a119_0x3720e1,_0x163932={};_0x163932[_0x35409c(0x11a)]=function(_0x155c8c,_0x558313){return _0x155c8c!==_0x558313;},_0x163932['wCLMg']=function(_0x2a2d9f,_0x3d3140){return _0x2a2d9f!==_0x3d3140;},_0x163932[_0x35409c(0x110)]=_0x35409c(0x114);const _0x2126b7=_0x163932,_0x2b811c=[];if(_0xacae27&&_0xacae27[_0x35409c(0x94)]){let _0x355eb5=_0xacae27[_0x35409c(0x94)];while(_0x355eb5&&_0x355eb5[_0x35409c(0xde)]&&_0x2126b7[_0x35409c(0x11a)](_0x355eb5[_0x35409c(0xde)],'')&&_0x2126b7[_0x35409c(0xdd)](_0x355eb5[_0x35409c(0xde)],_0x2126b7[_0x35409c(0x110)])){_0x2b811c['push'](_0x355eb5[_0x35409c(0xde)]),_0x355eb5=_0x355eb5['parent'];}}return _0x2b811c[_0x35409c(0xd4)](),_0x2b811c;}[a119_0x3720e1(0xa1)](_0x3ecf23){const _0x2f2799=a119_0x3720e1,_0xdffca3={'TpUqp':function(_0x2fe054,_0xc44710){return _0x2fe054(_0xc44710);}};if(_0x3ecf23[_0x2f2799(0xec)])return _0x3ecf23['file'];if(_0x3ecf23[_0x2f2799(0x13c)])try{const _0x1bcef0=stackTrace[_0x2f2799(0x108)][_0x2f2799(0x105)](stackTrace,_0x3ecf23[_0x2f2799(0x13c)]),_0x189b63=_0xdffca3[_0x2f2799(0x11c)](pickUserFrameFile,_0x1bcef0);if(_0x189b63)return _0x189b63;logger[_0x2f2799(0x11e)]('[jestUtils]\x20pickUserFrameFile\x20found\x20no\x20user\x20frame\x20(trace\x20length='+_0x1bcef0['length']+')');}catch(_0x317b5f){logger[_0x2f2799(0x11e)]('Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util['format'](_0x317b5f));}return null;}['isJestInternalHook'](_0x2844ae){const _0x15df59=a119_0x3720e1,_0x3d941f={};_0x3d941f[_0x15df59(0x103)]=_0x15df59(0x99);const _0x1cc013=_0x3d941f;try{const _0x202e4=this[_0x15df59(0xa1)](_0x2844ae);if(!_0x202e4||_0x202e4['includes'](_0x1cc013[_0x15df59(0x103)]))return!![];}catch(_0xe42825){logger[_0x15df59(0x11e)](_0x15df59(0xd0)+util[_0x15df59(0xab)](_0xe42825));}return![];}['getTestIdentifier'](_0x4b7c78=null){const _0x121176=a119_0x3720e1;try{const _0x31c4ca=_0x4b7c78||global['__workerDetails']||{};if(global[_0x121176(0xa8)])return global[_0x121176(0xa8)];if(_0x31c4ca?.['currentTest']?.[_0x121176(0xf1)])return _0x31c4ca[_0x121176(0x12d)][_0x121176(0xf1)];if(_0x31c4ca?.['currentTest']?.['id'])return _0x31c4ca[_0x121176(0x12d)]['id'];return null;}catch(_0x36f873){return logger[_0x121176(0x11e)](_0x121176(0x90)+util[_0x121176(0xab)](_0x36f873)),null;}}async['configureGit'](){const _0x5eb14a=a119_0x3720e1,_0x316c00={'zHsjt':function(_0x526e13){return _0x526e13();}};if(this['_gitConfigured'])return this[_0x5eb14a(0x92)];const _0x226742=await _0x316c00[_0x5eb14a(0xac)](getGitMetaData);_0x226742&&(this[_0x5eb14a(0x92)]=_0x226742[_0x5eb14a(0xcb)]),this[_0x5eb14a(0x10c)]=!![];}['clearHooksMap'](_0x56f887){hooksMap[_0x56f887]&&delete hooksMap[_0x56f887];}[a119_0x3720e1(0x9b)](_0x214674){const _0x3d6076=a119_0x3720e1,_0x2c809d={'KBODo':_0x3d6076(0x99),'jwTNQ':function(_0x43cd19,_0x3be5dd){return _0x43cd19(_0x3be5dd);},'ETMdB':_0x3d6076(0x133)};if(_0x214674['file'])return _0x214674[_0x3d6076(0xec)];if(_0x214674[_0x3d6076(0x13c)]){try{const _0x2775a2=stackTrace[_0x3d6076(0x108)](_0x214674[_0x3d6076(0x13c)]);if(_0x2775a2[0x0]&&_0x2775a2[0x0][_0x3d6076(0x124)]){const _0x13b439=_0x2775a2[0x0][_0x3d6076(0x124)]();if(_0x13b439&&!_0x13b439['includes'](_0x2c809d[_0x3d6076(0xcf)]))return _0x13b439;}}catch(_0x8290f9){logger[_0x3d6076(0x11e)](_0x3d6076(0x109)+util[_0x3d6076(0xab)](_0x8290f9));}if(_0x214674[_0x3d6076(0x13c)]['stack']){const _0x2c9433=_0x214674[_0x3d6076(0x13c)][_0x3d6076(0xc0)]['split']('\x0a');for(const _0x116bd9 of _0x2c9433){const _0x3d9f3f=_0x116bd9[_0x3d6076(0xf2)](/at (.+?):\d+:\d+/);if(_0x3d9f3f&&_0x3d9f3f[0x1]&&!_0x3d9f3f[0x1][_0x3d6076(0x125)](_0x2c809d[_0x3d6076(0xcf)]))return _0x3d9f3f[0x1];}}}let _0x251efb=_0x214674[_0x3d6076(0x94)];while(_0x251efb){if(_0x251efb[_0x3d6076(0xec)])return _0x251efb[_0x3d6076(0xec)];if(_0x251efb[_0x3d6076(0x13c)])try{const _0x3bc2d1=stackTrace['parse'](_0x251efb[_0x3d6076(0x13c)]);if(_0x3bc2d1[0x0]&&_0x3bc2d1[0x0]['getFileName']){const _0x20267c=_0x3bc2d1[0x0][_0x3d6076(0x124)]();if(_0x20267c&&!_0x20267c[_0x3d6076(0x125)](_0x2c809d[_0x3d6076(0xcf)]))return _0x20267c;}}catch(_0x14edd2){}_0x251efb=_0x251efb[_0x3d6076(0x94)];}try{const _0x315cc0=_0x2c809d[_0x3d6076(0xbf)](require,_0x2c809d['ETMdB']);if(_0x315cc0&&_0x315cc0[_0x3d6076(0x138)]){const _0x50fb74=_0x315cc0['getState']();if(_0x50fb74&&_0x50fb74[_0x3d6076(0xf5)])return _0x50fb74['testPath'];}}catch(_0x2fac47){logger[_0x3d6076(0x11e)](_0x3d6076(0x10a)+util['format'](_0x2fac47));}return null;}[a119_0x3720e1(0x104)](_0x50b9d4){const _0x30c724=a119_0x3720e1,_0x3e5c8c={};_0x3e5c8c['RxQFi']='[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier',_0x3e5c8c[_0x30c724(0xbc)]=function(_0x5c1f22,_0x16c91a){return _0x5c1f22!==_0x16c91a;},_0x3e5c8c[_0x30c724(0xd5)]='ROOT_DESCRIBE_BLOCK',_0x3e5c8c['EpnuK']=_0x30c724(0x99),_0x3e5c8c[_0x30c724(0x126)]=_0x30c724(0x8e),_0x3e5c8c[_0x30c724(0xff)]=_0x30c724(0x131);const _0x3698e0=_0x3e5c8c;try{if(!_0x50b9d4)return logger[_0x30c724(0x107)](_0x3698e0[_0x30c724(0x97)]),null;const _0x2a5ec1=_0x50b9d4[_0x30c724(0x10b)]||_0x50b9d4[_0x30c724(0xde)]||_0x50b9d4[_0x30c724(0xa3)]||_0x50b9d4[_0x30c724(0xe7)];let _0x2d5e58=_0x2a5ec1;if(_0x50b9d4[_0x30c724(0x94)]&&_0x50b9d4[_0x30c724(0x94)][_0x30c724(0xde)]&&_0x3698e0[_0x30c724(0xbc)](_0x50b9d4['parent'][_0x30c724(0xde)],_0x3698e0['EAmxq'])){const _0x14d576=_0x50b9d4[_0x30c724(0xde)]||_0x50b9d4['title'];_0x14d576&&(_0x2d5e58=_0x50b9d4['parent'][_0x30c724(0xde)]+'\x20'+_0x14d576);}let _0x58eb79=_0x50b9d4['testPath'];if(!_0x58eb79&&_0x50b9d4[_0x30c724(0x13c)]){try{const _0xa428f7=stackTrace[_0x30c724(0x108)](_0x50b9d4['asyncError']);if(_0xa428f7[0x0]&&_0xa428f7[0x0][_0x30c724(0x124)]){const _0x150110=_0xa428f7[0x0][_0x30c724(0x124)]();_0x150110&&!_0x150110[_0x30c724(0x125)](_0x3698e0[_0x30c724(0x127)])&&(_0x58eb79=_0x150110);}}catch(_0x395ea0){logger[_0x30c724(0x11e)]('[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util[_0x30c724(0xab)](_0x395ea0));}if(!_0x58eb79&&_0x50b9d4[_0x30c724(0x13c)][_0x30c724(0xc0)]){const _0x57ff9e=_0x50b9d4[_0x30c724(0x13c)][_0x30c724(0xc0)]['split']('\x0a');for(const _0x47400f of _0x57ff9e){const _0x275c13=_0x47400f[_0x30c724(0xf2)](/at (.+?):\d+:\d+/);if(_0x275c13&&_0x275c13[0x1]&&!_0x275c13[0x1][_0x30c724(0x125)](_0x3698e0['EpnuK'])){_0x58eb79=_0x275c13[0x1];break;}}}}const _0x4eff48=_0x58eb79+'::'+_0x2d5e58,_0x9b3a6d=crypto[_0x30c724(0xda)](_0x3698e0['vjIxw'])[_0x30c724(0x128)](_0x4eff48)[_0x30c724(0xdc)](_0x3698e0[_0x30c724(0xff)])[_0x30c724(0xd7)](0x0,0x8),_0xbe8a3c=process[_0x30c724(0xaa)]+':jest-'+_0x9b3a6d;return logger['debug'](_0x30c724(0xb2)+_0xbe8a3c+_0x30c724(0xad)+_0x4eff48),_0xbe8a3c;}catch(_0x2eaafb){return logger['error'](_0x30c724(0xd3)+util[_0x30c724(0xab)](_0x2eaafb)),null;}}[a119_0x3720e1(0xee)](_0xfe2ea){const _0x4419f9=a119_0x3720e1,_0x5bed81={};_0x5bed81[_0x4419f9(0x130)]=_0x4419f9(0xa2);const _0x144b3c=_0x5bed81;if(!_0xfe2ea)return logger[_0x4419f9(0x11e)](_0x144b3c[_0x4419f9(0x130)]),null;const _0x5bbea4=this[_0x4419f9(0x9b)](_0xfe2ea),_0x2961ee={};_0x2961ee[_0x4419f9(0xde)]=_0xfe2ea['name']||_0xfe2ea['title'],_0x2961ee[_0x4419f9(0x94)]=_0xfe2ea['parent'],_0x2961ee[_0x4419f9(0xf5)]=_0x5bbea4,_0x2961ee['asyncError']=_0xfe2ea[_0x4419f9(0x13c)];const _0x5e4ccf=_0x2961ee;return this[_0x4419f9(0x104)](_0x5e4ccf);}[a119_0x3720e1(0xd6)](_0x4d5773,_0x270e74=null){const _0x4122e8=a119_0x3720e1,_0xec92e4={};_0xec92e4[_0x4122e8(0x13e)]=_0x4122e8(0x11f);const _0x2d7cc0=_0xec92e4;if(!_0x4d5773)return logger['debug'](_0x2d7cc0[_0x4122e8(0x13e)]),_0x270e74;if(_0x4d5773[_0x4122e8(0x8f)])return logger[_0x4122e8(0x11e)]('[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20'+_0x4d5773[_0x4122e8(0x8f)]),_0x4d5773[_0x4122e8(0x8f)];return this[_0x4122e8(0x104)](_0x4d5773)||_0x270e74;}}module[a119_0x3720e1(0x119)]=o11yClassErrorHandler(JestUtils,[a119_0x3720e1(0xc6),a119_0x3720e1(0x135),'getRootParentFile','getName','isJestInternalHook',a119_0x3720e1(0xbe),a119_0x3720e1(0x12f),a119_0x3720e1(0xa7),a119_0x3720e1(0xc3),a119_0x3720e1(0x134),'extractTestFilePath',a119_0x3720e1(0x104),a119_0x3720e1(0xee),a119_0x3720e1(0xd6)]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a120_0x47d21e=a120_0x3997;(function(_0x3ac1fd,_0x5db39f){const _0x157a6c=a120_0x3997,_0x253ef1=_0x3ac1fd();while(!![]){try{const _0x55122e=-parseInt(_0x157a6c(0x1ee))/0x1*(-parseInt(_0x157a6c(0x21f))/0x2)+parseInt(_0x157a6c(0x211))/0x3+-parseInt(_0x157a6c(0x21d))/0x4*(parseInt(_0x157a6c(0x214))/0x5)+parseInt(_0x157a6c(0x21b))/0x6*(parseInt(_0x157a6c(0x1fc))/0x7)+parseInt(_0x157a6c(0x1eb))/0x8*(parseInt(_0x157a6c(0x219))/0x9)+-parseInt(_0x157a6c(0x1ff))/0xa*(-parseInt(_0x157a6c(0x207))/0xb)+-parseInt(_0x157a6c(0x203))/0xc;if(_0x55122e===_0x5db39f)break;else _0x253ef1['push'](_0x253ef1['shift']());}catch(_0x14b275){_0x253ef1['push'](_0x253ef1['shift']());}}}(a120_0x2232,0x38dfb));const fs=require('fs'),path=require(a120_0x47d21e(0x1f4)),{default:BrowserStackSetup}=require(a120_0x47d21e(0x21a)),helper=require(a120_0x47d21e(0x217)),PerformanceTester=require(a120_0x47d21e(0x218)),PerformanceEvents=require(a120_0x47d21e(0x200))[a120_0x47d21e(0x1f6)],utilities=require('../../helpers/utilities'),{parallelVanillaRun}=require('../test-runner'),TestHubHandler=require(a120_0x47d21e(0x204)),BrowserstackCLI=require(a120_0x47d21e(0x20a));function a120_0x2232(){const _0x155a0c=['14zcQexf','Config\x20yml\x20is\x20required','handleApp','\x20resolves\x20outside\x20the\x20project\x20directory\x20and\x20was\x20rejected','length','launchBuild','then','KLhhZ','getInstance','SGeha','\x20doesn\x27t\x20exist','File\x20path\x20is\x20required','1849000CYmGel','forEach','resolve','19476pdYBuJ','vanilla','proxySettings','VWUFU','zZevn','NKYWE','path','SDK_SETUP','EVENTS','index','push','SKkIJ','isRunning','sep','1106035AmtcKd','modifyBrowserStackCaps','assign','2809670TBQGsq','../../helpers/performance/constants','file','initialize','8341908dYdDTI','../../helpers/testhub/testhubHandler','finally','useW3C','11PFPhWt','startsWith','platforms','../v2/browserstackCLI','config','cwd','start','modifyBrowserStackW3CCaps','setupBrowserstackLocal','LmkIU','526227pJFklJ','existsSync','getHubUrl','1058645popxuB','isUndefined','getPlatformName','../../helpers/helper','../../helpers/performance/performance-tester','9yDOEfa','../../helpers/BrowserStackSetup','12mnPaGn','configuration','4lQEzTY','args'];a120_0x2232=function(){return _0x155a0c;};return a120_0x2232();}async function run(_0x35b38c,_0x45ed4c,_0x56e0a3){const _0x3fe36d=a120_0x47d21e,_0x2f8735={'VWUFU':_0x3fe36d(0x1ef),'SKkIJ':function(_0x178899,_0x3133fc){return _0x178899(_0x3133fc);},'Alcah':_0x3fe36d(0x1ea),'tucEa':function(_0x59a203,_0x5723ec){return _0x59a203!==_0x5723ec;},'CXWcZ':function(_0x237853,_0x38f46b){return _0x237853+_0x38f46b;},'LmkIU':function(_0x25f937,_0x3ce243){return _0x25f937(_0x3ce243);},'KLhhZ':_0x3fe36d(0x220),'NKYWE':function(_0x1aed4c,_0x569f48){return _0x1aed4c>_0x569f48;},'SGeha':function(_0x25c21c,_0x3155ca){return _0x25c21c>_0x3155ca;},'zZevn':function(_0x4c7521,_0x432ee3){return _0x4c7521*_0x432ee3;},'IxzGS':function(_0x5c6838,_0x5c1f21,_0x10f504){return _0x5c6838(_0x5c1f21,_0x10f504);}};await _0x56e0a3[_0x3fe36d(0x202)](_0x35b38c);!BrowserstackCLI[_0x3fe36d(0x227)]()[_0x3fe36d(0x1fa)]()&&await _0x56e0a3[_0x3fe36d(0x20f)]();await helper[_0x3fe36d(0x221)](_0x56e0a3[_0x3fe36d(0x20b)]);const _0x3de4ea=[];if(helper[_0x3fe36d(0x215)](_0x35b38c['_'][0x1]))throw _0x2f8735[_0x3fe36d(0x1f9)](Error,_0x2f8735['Alcah']);const _0x303fe5=process[_0x3fe36d(0x20c)](),_0x446866=path[_0x3fe36d(0x1ed)](_0x303fe5,_0x35b38c['_'][0x1]);if(_0x2f8735['tucEa'](_0x446866,_0x303fe5)&&!_0x446866[_0x3fe36d(0x208)](_0x2f8735['CXWcZ'](_0x303fe5,path[_0x3fe36d(0x1fb)])))throw _0x2f8735[_0x3fe36d(0x1f9)](Error,'File\x20path\x20'+_0x35b38c['_'][0x1]+_0x3fe36d(0x222));if(!fs[_0x3fe36d(0x212)](_0x446866))throw _0x2f8735['SKkIJ'](Error,'File\x20'+_0x35b38c['_'][0x1]+_0x3fe36d(0x229));if(!_0x56e0a3[_0x3fe36d(0x20b)])throw _0x2f8735[_0x3fe36d(0x210)](Error,_0x2f8735[_0x3fe36d(0x226)]);const _0x335065=helper[_0x3fe36d(0x206)](_0x56e0a3['config']);_0x56e0a3['config']['platforms']&&_0x2f8735[_0x3fe36d(0x1f3)](_0x56e0a3[_0x3fe36d(0x20b)]['platforms'][_0x3fe36d(0x223)],0x0)&&_0x56e0a3[_0x3fe36d(0x20b)][_0x3fe36d(0x209)][_0x3fe36d(0x1ec)]((_0x3ba189,_0x4ece8b)=>{const _0x24f708=_0x3fe36d;_0x335065?_0x3de4ea[_0x24f708(0x1f8)](helper[_0x24f708(0x20e)](_0x56e0a3[_0x24f708(0x20b)],_0x2f8735[_0x24f708(0x1f1)],_0x4ece8b)):_0x3de4ea[_0x24f708(0x1f8)](helper[_0x24f708(0x1fd)](_0x56e0a3[_0x24f708(0x20b)],_0x2f8735['VWUFU'],_0x4ece8b));});let _0x4beb93,_0x5d9d74;const _0x33013b=[];if(_0x2f8735[_0x3fe36d(0x228)](_0x3de4ea[_0x3fe36d(0x223)],0x0))_0x3de4ea['forEach']((_0x294066,_0x4dda71)=>{const _0x6dbe25=_0x3fe36d,_0x4fbe50={};_0x4fbe50[_0x6dbe25(0x1f7)]=_0x4dda71,_0x4beb93={'server':helper[_0x6dbe25(0x213)](_0x56e0a3[_0x6dbe25(0x20b)]),'proxySettings':_0x56e0a3[_0x6dbe25(0x20b)][_0x6dbe25(0x1f0)],'platform':helper[_0x6dbe25(0x216)](_0x294066),'platformCaps':Object[_0x6dbe25(0x1fe)](_0x4fbe50,_0x56e0a3[_0x6dbe25(0x20b)][_0x6dbe25(0x209)][_0x4dda71])};const _0x359936={'capability':_0x294066,..._0x4beb93};_0x359936[_0x6dbe25(0x201)]=_0x446866,_0x359936[_0x6dbe25(0x21e)]=_0x45ed4c;const _0x2da22a={};_0x2da22a[_0x6dbe25(0x21c)]=_0x359936,_0x5d9d74=_0x2da22a,_0x33013b[_0x6dbe25(0x1f8)](_0x5d9d74);});else{let _0x1383f8;_0x335065?_0x1383f8=helper[_0x3fe36d(0x20e)](_0x56e0a3['config'],_0x2f8735[_0x3fe36d(0x1f1)],0x0):_0x1383f8=helper[_0x3fe36d(0x1fd)](_0x56e0a3[_0x3fe36d(0x20b)],_0x2f8735['VWUFU'],0x0);_0x4beb93={'server':helper[_0x3fe36d(0x213)](_0x56e0a3[_0x3fe36d(0x20b)]),'proxySettings':_0x56e0a3[_0x3fe36d(0x20b)][_0x3fe36d(0x1f0)]};const _0x3f9192={'capability':_0x1383f8,..._0x4beb93};_0x3f9192[_0x3fe36d(0x201)]=_0x446866,_0x3f9192[_0x3fe36d(0x21e)]=_0x45ed4c;const _0x4b245f={};_0x4b245f[_0x3fe36d(0x21c)]=_0x3f9192,_0x5d9d74=_0x4b245f,_0x33013b[_0x3fe36d(0x1f8)](_0x5d9d74);}const _0x25c498=await TestHubHandler[_0x3fe36d(0x224)](_0x2f8735['VWUFU'],_0x56e0a3),_0x10a72c=_0x2f8735[_0x3fe36d(0x1f2)](_0x56e0a3[_0x3fe36d(0x20b)]['platforms'][_0x3fe36d(0x223)]||0x1,_0x56e0a3[_0x3fe36d(0x20b)]['parallelsPerPlatform']||0x1);PerformanceTester['end'](PerformanceEvents[_0x3fe36d(0x1f5)]),_0x2f8735['IxzGS'](parallelVanillaRun,_0x33013b,_0x10a72c)[_0x3fe36d(0x225)](_0x3f0ba3=>{})[_0x3fe36d(0x205)](async()=>{const _0x40e67d=_0x3fe36d;PerformanceTester[_0x40e67d(0x20d)](PerformanceEvents['SDK_CLEANUP']),await utilities['finalExecution'](_0x56e0a3);});}function a120_0x3997(_0x574313,_0x126074){const _0x223247=a120_0x2232();return a120_0x3997=function(_0x3997e9,_0x26bc2d){_0x3997e9=_0x3997e9-0x1ea;let _0x37ee89=_0x223247[_0x3997e9];return _0x37ee89;},a120_0x3997(_0x574313,_0x126074);}module['exports']=run;
|
package/src/browserStackSdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a121_0x563eeb=a121_0x90ea;(function(_0x32c357,_0x2cc6cd){const _0x491a5c=a121_0x90ea,_0x30c6d6=_0x32c357();while(!![]){try{const _0x417b25=parseInt(_0x491a5c(0x146))/0x1+parseInt(_0x491a5c(0x150))/0x2+-parseInt(_0x491a5c(0x15f))/0x3*(parseInt(_0x491a5c(0x141))/0x4)+parseInt(_0x491a5c(0x145))/0x5+-parseInt(_0x491a5c(0x158))/0x6*(-parseInt(_0x491a5c(0x14a))/0x7)+-parseInt(_0x491a5c(0x14f))/0x8+-parseInt(_0x491a5c(0x161))/0x9;if(_0x417b25===_0x2cc6cd)break;else _0x30c6d6['push'](_0x30c6d6['shift']());}catch(_0x5a0713){_0x30c6d6['push'](_0x30c6d6['shift']());}}}(a121_0x5d5d,0x5ca59));const TestMetadata=require(a121_0x563eeb(0x15b));function a121_0x5d5d(){const _0x4b02e2=['deviceName','exports','12skWqmB','customVariables','AyUSI','MPlGE','3243605IkKfMc','719658NrHyZd','browserName','__platformCaps','os_version','2096661YSweZN','lksde','FULyf','osVersion','getCurrentPlatform','3902312wPIVUd','930850rKlcgZ','setTestMetadata','qPded','browser','uSbrl','Oltug','Aiyjx','platform_version','6ZGWuBW','ysXEH','platform','./helpers/metadata','browserVersion','HrmDJ','platformName','559293TRLncU','GLBOz','6360876VoEwca','YyIWn','QjkMn','device','set','browser_version'];a121_0x5d5d=function(){return _0x4b02e2;};return a121_0x5d5d();}function a121_0x90ea(_0x3d6a1d,_0xdb6bf0){const _0x5d5dd4=a121_0x5d5d();return a121_0x90ea=function(_0x90eacf,_0xd6e345){_0x90eacf=_0x90eacf-0x13a;let _0x15fa30=_0x5d5dd4[_0x90eacf];return _0x15fa30;},a121_0x90ea(_0x3d6a1d,_0xdb6bf0);}class BrowserStackSdk{static[a121_0x563eeb(0x14e)](){const _0x145fe1=a121_0x563eeb,_0x1653d7={};_0x1653d7[_0x145fe1(0x143)]=_0x145fe1(0x149),_0x1653d7['YyIWn']=_0x145fe1(0x14d),_0x1653d7['Aiyjx']=_0x145fe1(0x153),_0x1653d7[_0x145fe1(0x14b)]=_0x145fe1(0x147),_0x1653d7[_0x145fe1(0x155)]=_0x145fe1(0x13e),_0x1653d7[_0x145fe1(0x13b)]=_0x145fe1(0x15c),_0x1653d7['MPlGE']=_0x145fe1(0x13c),_0x1653d7[_0x145fe1(0x15d)]=_0x145fe1(0x13f),_0x1653d7[_0x145fe1(0x152)]=_0x145fe1(0x15a),_0x1653d7[_0x145fe1(0x14c)]=_0x145fe1(0x15e),_0x1653d7[_0x145fe1(0x160)]=_0x145fe1(0x157),_0x1653d7[_0x145fe1(0x154)]='platformVersion',_0x1653d7[_0x145fe1(0x159)]=_0x145fe1(0x142);const _0x341c8c=_0x1653d7,_0x4d386a={};if(global['__platformCaps']){const _0x1b6007=global[_0x145fe1(0x148)],_0x2bb211=_0x1b6007[_0x341c8c[_0x145fe1(0x143)]]||_0x1b6007[_0x341c8c[_0x145fe1(0x13a)]],_0x44f1e5=_0x1b6007[_0x341c8c[_0x145fe1(0x156)]]||_0x1b6007[_0x341c8c['lksde']],_0x959eb=_0x1b6007[_0x341c8c[_0x145fe1(0x155)]]||_0x1b6007[_0x341c8c[_0x145fe1(0x13b)]],_0x27a207=_0x1b6007[_0x341c8c[_0x145fe1(0x144)]]||_0x1b6007[_0x341c8c[_0x145fe1(0x15d)]],_0xa509ac=_0x1b6007[_0x341c8c['qPded']]||_0x1b6007[_0x341c8c[_0x145fe1(0x14c)]],_0x5c7110=_0x1b6007[_0x341c8c['GLBOz']]||_0x1b6007[_0x341c8c['uSbrl']];_0x1b6007['os']&&(_0x4d386a['os']=_0x1b6007['os']),_0x2bb211&&(_0x4d386a[_0x341c8c['YyIWn']]=_0x2bb211),_0x44f1e5&&(_0x4d386a[_0x341c8c[_0x145fe1(0x14b)]]=_0x44f1e5),_0x959eb&&(_0x4d386a[_0x341c8c[_0x145fe1(0x13b)]]=_0x959eb),_0x27a207&&(_0x4d386a[_0x341c8c[_0x145fe1(0x15d)]]=_0x27a207),_0xa509ac&&(_0x4d386a[_0x341c8c[_0x145fe1(0x14c)]]=_0xa509ac),_0x5c7110&&(_0x4d386a[_0x341c8c[_0x145fe1(0x154)]]=_0x5c7110),_0x1b6007[_0x341c8c[_0x145fe1(0x159)]]&&(_0x4d386a[_0x341c8c[_0x145fe1(0x159)]]=_0x1b6007[_0x341c8c[_0x145fe1(0x159)]]);}return _0x4d386a;}static[a121_0x563eeb(0x151)](_0x494ca3={}){const _0x16f934=a121_0x563eeb;TestMetadata[_0x16f934(0x13d)](_0x494ca3);}}module[a121_0x563eeb(0x140)]=BrowserStackSdk;
|