browserstack-node-sdk 1.63.1 → 1.63.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/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_0x11fb24=a115_0xb23a;(function(_0x4ca60e,_0x21020f){const _0x2dd0ff=a115_0xb23a,_0x459af2=_0x4ca60e();while(!![]){try{const _0x43d672=-parseInt(_0x2dd0ff(0x1ad))/0x1+-parseInt(_0x2dd0ff(0x1a0))/0x2*(-parseInt(_0x2dd0ff(0x1a8))/0x3)+-parseInt(_0x2dd0ff(0x1a7))/0x4+-parseInt(_0x2dd0ff(0x19a))/0x5*(parseInt(_0x2dd0ff(0x19d))/0x6)+parseInt(_0x2dd0ff(0x1ab))/0x7*(-parseInt(_0x2dd0ff(0x19f))/0x8)+parseInt(_0x2dd0ff(0x1a2))/0x9*(parseInt(_0x2dd0ff(0x1a5))/0xa)+parseInt(_0x2dd0ff(0x19c))/0xb*(parseInt(_0x2dd0ff(0x1ac))/0xc);if(_0x43d672===_0x21020f)break;else _0x459af2['push'](_0x459af2['shift']());}catch(_0x486a4b){_0x459af2['push'](_0x459af2['shift']());}}}(a115_0x4fd7,0x30812));const a115_0x5b397b={};function a115_0x4fd7(){const _0x12a960=['toString','7rwpMCN','938136GPceAl','333445VZBiQq','HookState.NONE','freeze','40PPlXuy','VgiZe','88ENONsb','137316gNmksv','HookState.PRE','490480bDQycX','20atOdLR','value','117KoHDdQ','HookState.POST','umVdz','67470vZHoac','HDrTM','172392BTZxwK','31944qOAorz','find'];a115_0x4fd7=function(){return _0x12a960;};return a115_0x4fd7();}function a115_0xb23a(_0x3a02af,_0x5c194a){const _0x4fd711=a115_0x4fd7();return a115_0xb23a=function(_0xb23a4c,_0x2e555a){_0xb23a4c=_0xb23a4c-0x199;let _0x516499=_0x4fd711[_0xb23a4c];return _0x516499;},a115_0xb23a(_0x3a02af,_0x5c194a);}a115_0x5b397b[a115_0x11fb24(0x1a1)]=0x0,a115_0x5b397b[a115_0x11fb24(0x1aa)]=function(){const _0x411b75=a115_0x11fb24,_0x332983={};_0x332983[_0x411b75(0x1a6)]=_0x411b75(0x1ae);const _0x19455c=_0x332983;return _0x19455c['HDrTM'];};const a115_0x41da01={};a115_0x41da01[a115_0x11fb24(0x1a1)]=0x1,a115_0x41da01[a115_0x11fb24(0x1aa)]=function(){const _0x31e64d=a115_0x11fb24,_0xcf852f={};_0xcf852f[_0x31e64d(0x19b)]=_0x31e64d(0x19e);const _0x3b5261=_0xcf852f;return _0x3b5261['VgiZe'];};const a115_0x2c1467={};a115_0x2c1467['value']=0x2,a115_0x2c1467[a115_0x11fb24(0x1aa)]=function(){const _0x9698b=a115_0x11fb24,_0x101777={};_0x101777['umVdz']=_0x9698b(0x1a3);const _0x12be4c=_0x101777;return _0x12be4c[_0x9698b(0x1a4)];};const HookState=Object[a115_0x11fb24(0x199)]({'NONE':a115_0x5b397b,'PRE':a115_0x41da01,'POST':a115_0x2c1467,'fromValue'(_0x303d24){const _0x262840=a115_0x11fb24;return Object['values'](HookState)[_0x262840(0x1a9)](_0x587772=>_0x587772[_0x262840(0x1a1)]===_0x303d24);}});module['exports']=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a116_0x52e9(_0x31044b,_0x1740b5){const _0x4bd824=a116_0x4bd8();return a116_0x52e9=function(_0x52e956,_0x52fc41){_0x52e956=_0x52e956-0x142;let _0x3ed23f=_0x4bd824[_0x52e956];return _0x3ed23f;},a116_0x52e9(_0x31044b,_0x1740b5);}const a116_0x30ab81=a116_0x52e9;(function(_0x210a7b,_0x526544){const _0x340218=a116_0x52e9,_0x2c8037=_0x210a7b();while(!![]){try{const _0x5ab59c=-parseInt(_0x340218(0x16a))/0x1*(-parseInt(_0x340218(0x154))/0x2)+-parseInt(_0x340218(0x14e))/0x3+-parseInt(_0x340218(0x150))/0x4*(-parseInt(_0x340218(0x152))/0x5)+-parseInt(_0x340218(0x169))/0x6*(-parseInt(_0x340218(0x15e))/0x7)+parseInt(_0x340218(0x166))/0x8*(parseInt(_0x340218(0x15c))/0x9)+-parseInt(_0x340218(0x155))/0xa*(-parseInt(_0x340218(0x149))/0xb)+-parseInt(_0x340218(0x16b))/0xc;if(_0x5ab59c===_0x526544)break;else _0x2c8037['push'](_0x2c8037['shift']());}catch(_0x138ff0){_0x2c8037['push'](_0x2c8037['shift']());}}}(a116_0x4bd8,0x25988));const a116_0xc47f35={};a116_0xc47f35[a116_0x30ab81(0x160)]=0x0,a116_0xc47f35[a116_0x30ab81(0x145)]=function(){const _0x1f0e40=a116_0x30ab81,_0x57d202={};_0x57d202[_0x1f0e40(0x14f)]='TestFrameworkState.NONE';const _0x495c24=_0x57d202;return _0x495c24[_0x1f0e40(0x14f)];};const a116_0x16eb4d={};a116_0x16eb4d[a116_0x30ab81(0x160)]=0x1,a116_0x16eb4d[a116_0x30ab81(0x145)]=function(){const _0x589323=a116_0x30ab81,_0x2dc154={};_0x2dc154[_0x589323(0x159)]=_0x589323(0x146);const _0x47ff36=_0x2dc154;return _0x47ff36['kVGtn'];};const a116_0x57099f={};a116_0x57099f[a116_0x30ab81(0x160)]=0x2,a116_0x57099f[a116_0x30ab81(0x145)]=function(){const _0x1c3e42=a116_0x30ab81,_0x3008c1={};_0x3008c1['IpuDx']=_0x1c3e42(0x15f);const _0x3f0489=_0x3008c1;return _0x3f0489[_0x1c3e42(0x147)];};const a116_0x193e6e={};a116_0x193e6e['value']=0x3,a116_0x193e6e[a116_0x30ab81(0x145)]=function(){const _0x1deed6=a116_0x30ab81,_0x3b2e57={};_0x3b2e57[_0x1deed6(0x14a)]=_0x1deed6(0x144);const _0xb32992=_0x3b2e57;return _0xb32992[_0x1deed6(0x14a)];};const a116_0x2d0abe={};a116_0x2d0abe['value']=0x4,a116_0x2d0abe['toString']=function(){const _0x1a26c9=a116_0x30ab81,_0x772600={};_0x772600[_0x1a26c9(0x167)]=_0x1a26c9(0x14c);const _0x2fb28b=_0x772600;return _0x2fb28b[_0x1a26c9(0x167)];};const a116_0x151610={};a116_0x151610[a116_0x30ab81(0x160)]=0x5,a116_0x151610['toString']=function(){const _0xff332f=a116_0x30ab81,_0x3adbb4={};_0x3adbb4[_0xff332f(0x165)]=_0xff332f(0x151);const _0x3740e0=_0x3adbb4;return _0x3740e0[_0xff332f(0x165)];};const a116_0x1ba535={};a116_0x1ba535[a116_0x30ab81(0x160)]=0x6,a116_0x1ba535[a116_0x30ab81(0x145)]=function(){const _0xed1763=a116_0x30ab81,_0x3e79e3={};_0x3e79e3[_0xed1763(0x168)]=_0xed1763(0x153);const _0x1415bd=_0x3e79e3;return _0x1415bd[_0xed1763(0x168)];};const a116_0x490938={};a116_0x490938[a116_0x30ab81(0x160)]=0x7,a116_0x490938[a116_0x30ab81(0x145)]=function(){const _0x380150=a116_0x30ab81,_0x319406={};_0x319406[_0x380150(0x15b)]=_0x380150(0x156);const _0x5df1fe=_0x319406;return _0x5df1fe[_0x380150(0x15b)];};function a116_0x4bd8(){const _0x21e2c5=['4rRRNIj','TestFrameworkState.BEFORE_EACH','523465NHSepR','TestFrameworkState.AFTER_EACH','404hmDfSk','43820NcZIiN','TestFrameworkState.TEST','BXXto','exports','kVGtn','umHYX','kANRW','54njlIEx','cXtXk','889nNvpxX','TestFrameworkState.LOG','value','PeYHb','TestFrameworkState.STEP','SEkZh','TestFrameworkState.AFTER_ALL','shZlw','235904gnpLBr','rZfvJ','romPA','9114gSGNmW','1209QFeUqJ','7633608fPbEtc','values','find','TestFrameworkState.SETUP_FIXTURE','toString','TestFrameworkState.BEFORE_ALL','IpuDx','freeze','671kiYPZr','XsSRY','TestFrameworkState.TEST_STEP','TestFrameworkState.INIT_TEST','TestFrameworkState.LOG_REPORT','587784SCRmll','FvlFW'];a116_0x4bd8=function(){return _0x21e2c5;};return a116_0x4bd8();}const a116_0x471a4b={};a116_0x471a4b[a116_0x30ab81(0x160)]=0x8,a116_0x471a4b[a116_0x30ab81(0x145)]=function(){const _0x18fe61=a116_0x30ab81,_0xf65aa9={};_0xf65aa9[_0x18fe61(0x15d)]=_0x18fe61(0x162);const _0x5cc5fe=_0xf65aa9;return _0x5cc5fe[_0x18fe61(0x15d)];};const a116_0x5bf678={};a116_0x5bf678['value']=0x9,a116_0x5bf678[a116_0x30ab81(0x145)]=function(){const _0x1b77d4=a116_0x30ab81,_0x5b2d92={};_0x5b2d92[_0x1b77d4(0x15a)]=_0x1b77d4(0x14d);const _0x3f0658=_0x5b2d92;return _0x3f0658[_0x1b77d4(0x15a)];};const a116_0x2fcfff={};a116_0x2fcfff[a116_0x30ab81(0x160)]=0xa,a116_0x2fcfff[a116_0x30ab81(0x145)]=function(){const _0x319ae7=a116_0x30ab81,_0x26d69b={};_0x26d69b[_0x319ae7(0x163)]=_0x319ae7(0x164);const _0x1cdff9=_0x26d69b;return _0x1cdff9['SEkZh'];};const a116_0x791ff3={};a116_0x791ff3[a116_0x30ab81(0x160)]=0xb,a116_0x791ff3[a116_0x30ab81(0x145)]=function(){const _0x3fa3c6=a116_0x30ab81,_0x4e4478={};_0x4e4478[_0x3fa3c6(0x157)]='TestFrameworkState.TEST_SCREENSHOT';const _0x277463=_0x4e4478;return _0x277463[_0x3fa3c6(0x157)];};const a116_0x74abc7={};a116_0x74abc7[a116_0x30ab81(0x160)]=0xc,a116_0x74abc7[a116_0x30ab81(0x145)]=function(){const _0xb5e968=a116_0x30ab81,_0x477b77={};_0x477b77[_0xb5e968(0x161)]=_0xb5e968(0x14b);const _0x401227=_0x477b77;return _0x401227['PeYHb'];};const TestFrameworkState=Object[a116_0x30ab81(0x148)]({'NONE':a116_0xc47f35,'BEFORE_ALL':a116_0x16eb4d,'LOG':a116_0x57099f,'SETUP_FIXTURE':a116_0x193e6e,'INIT_TEST':a116_0x2d0abe,'BEFORE_EACH':a116_0x151610,'AFTER_EACH':a116_0x1ba535,'TEST':a116_0x490938,'STEP':a116_0x471a4b,'LOG_REPORT':a116_0x5bf678,'AFTER_ALL':a116_0x2fcfff,'TEST_SCREENSHOT':a116_0x791ff3,'TEST_STEP':a116_0x74abc7,'fromValue'(_0x2a64ae){const _0x586f8c=a116_0x30ab81;return Object[_0x586f8c(0x142)](TestFrameworkState)[_0x586f8c(0x143)](_0x2350d2=>_0x2350d2[_0x586f8c(0x160)]===_0x2a64ae);}});module[a116_0x30ab81(0x158)]=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a117_0x22ea(_0x419c54,_0x175ac1){const _0x1fb65d=a117_0x1fb6();return a117_0x22ea=function(_0x22ea8d,_0x4ea1d1){_0x22ea8d=_0x22ea8d-0x100;let _0x157dcd=_0x1fb65d[_0x22ea8d];return _0x157dcd;},a117_0x22ea(_0x419c54,_0x175ac1);}const a117_0x28aa6a=a117_0x22ea;function a117_0x1fb6(){const _0x1ee2c4=['retry','CJzKC','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','FiksM','testhubConfig','./framework/constants/testFrameworkConstants','DniBm','./state/testFrameworkState','1WqpaaR','isRunning','IswBn','statusCode','pipe','rmSync','ukEcE','https','./cliUtils','getState','709268iyfxXd','clearAttachments','20LLUxSV','debug','GApax','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','trcYJ','format','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','emRKj','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','message','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','fLXbu','DWlej','KEY_TEST_ATTACHMENTS','buildHashedId','vAZso','toObject','getTestDetails','modules','SEecL','EHDqE','name','5064192HWEoaD','get','uYzaJ','sgnQZ','uploadAttachmentsManager','jest','statSync','logger','EGevY','KEY_TEST_ID','existsSync','epQhM','OVPks','uRhrF','size','UQBcg','KEY_FILE_NAME','toFixed','force','GBJkM','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','currentTest','GkzyD','wyLeY','18TBZsNv','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','OnPlI','Cleared\x20attachment\x20folder','2376033TsAIvP','File\x20downloaded\x20to:\x20%s','TestLevel','getAllData','mHaEF','qYrEm','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','AKoSg','basename','./browserstackCLI','8NiaAyP','setTestDetails','bIlIV','uploadAttachments','./modules/playwrightDriverModule','createWriteStream','KEY_FILE_LEVEL','getTestFrameworkDetail','join','CNZTS','McbGl',',\x20filepath:\x20','KEY_FILE_PATH','QNkus','close','1147059gKCSrv','CieuW','path','POST','.browserstack','397362ShlYeg','finish','mkdirSync','copyFileSync','testInfo','QiWEp','trackFile','toLowerCase','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','http','error','KEY_FILE_SIZE','yCOSI','BuildLevel','./state/hookState','getTestIdentifierFromTestInfo','startsWith','resolveInstance','util','getTrackedInstance','http://','NmBhs','__jestCurrentTestIdentifier','unlinkSync','Created\x20.browserstack\x20folder\x20at:\x20%s','3003500TaNLOB','1107772DttHXA','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','IAgcx','homedir','NIyLk'];a117_0x1fb6=function(){return _0x1ee2c4;};return a117_0x1fb6();}(function(_0x240dec,_0xae9b26){const _0x1f5dfa=a117_0x22ea,_0x1fdd52=_0x240dec();while(!![]){try{const _0x4a8477=parseInt(_0x1f5dfa(0x17b))/0x1*(-parseInt(_0x1f5dfa(0x153))/0x2)+parseInt(_0x1f5dfa(0x14e))/0x3+-parseInt(_0x1f5dfa(0x16e))/0x4*(-parseInt(_0x1f5dfa(0x101))/0x5)+-parseInt(_0x1f5dfa(0x118))/0x6+parseInt(_0x1f5dfa(0x185))/0x7*(-parseInt(_0x1f5dfa(0x13f))/0x8)+parseInt(_0x1f5dfa(0x130))/0x9*(parseInt(_0x1f5dfa(0x16d))/0xa)+-parseInt(_0x1f5dfa(0x135))/0xb;if(_0x4a8477===_0xae9b26)break;else _0x1fdd52['push'](_0x1fdd52['shift']());}catch(_0x49dba1){_0x1fdd52['push'](_0x1fdd52['shift']());}}}(a117_0x1fb6,0xb26a1));const os=require('os'),fs=require('fs'),path=require(a117_0x28aa6a(0x150)),util=require(a117_0x28aa6a(0x166)),BrowserstackCLI=require(a117_0x28aa6a(0x13e)),https=require(a117_0x28aa6a(0x182)),http=require(a117_0x28aa6a(0x15d)),AutomationFramework=require('./framework/automationFramework'),PlaywrightDriverModule=require(a117_0x28aa6a(0x143)),TestInfo=require('./TestInfo'),TestFrameworkConstants=require(a117_0x28aa6a(0x178)),{createClassLogger}=require('../../helpers/classLogger.js');class uploadAttachmentsManager{static [a117_0x28aa6a(0x11f)]=createClassLogger(a117_0x28aa6a(0x11c));static[a117_0x28aa6a(0x142)](_0x2934c1,_0x17295d=![]){const _0x3ee500=a117_0x28aa6a,_0xdc87ca={};_0xdc87ca['DWlej']=function(_0x555a9c,_0xa2fdf8){return _0x555a9c/_0xa2fdf8;},_0xdc87ca['EHDqE']=function(_0x26ff7d,_0x2f0963){return _0x26ff7d*_0x2f0963;},_0xdc87ca['NmBhs']=function(_0x431403,_0x14028b){return _0x431403>_0x14028b;},_0xdc87ca[_0x3ee500(0x148)]='Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.',_0xdc87ca['emRKj']=_0x3ee500(0x136),_0xdc87ca[_0x3ee500(0x12e)]=function(_0x514df1,_0x2ef0b3){return _0x514df1===_0x2ef0b3;},_0xdc87ca[_0x3ee500(0x12f)]=_0x3ee500(0x154),_0xdc87ca[_0x3ee500(0x11b)]='Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload',_0xdc87ca['NoEoM']=_0x3ee500(0x10c),_0xdc87ca[_0x3ee500(0x17d)]='Attachment\x20recevied\x20for\x20path:\x20%s',_0xdc87ca[_0x3ee500(0x149)]=_0x3ee500(0x152),_0xdc87ca[_0x3ee500(0x105)]=_0x3ee500(0x104),_0xdc87ca[_0x3ee500(0x125)]=_0x3ee500(0x16c),_0xdc87ca['DniBm']='Created\x20folder:\x20%s',_0xdc87ca[_0x3ee500(0x139)]=_0x3ee500(0x175),_0xdc87ca[_0x3ee500(0x127)]='https://',_0xdc87ca[_0x3ee500(0x13a)]=_0x3ee500(0x168),_0xdc87ca[_0x3ee500(0x181)]=_0x3ee500(0x15e),_0xdc87ca[_0x3ee500(0x170)]=_0x3ee500(0x109),_0xdc87ca['zLMZA']=_0x3ee500(0x15b);const _0x137edf=_0xdc87ca;this['logger'][_0x3ee500(0x102)](util[_0x3ee500(0x106)](_0x137edf[_0x3ee500(0x17d)],_0x2934c1));const _0x16d0c4=os[_0x3ee500(0x171)](),_0x190ac2=path[_0x3ee500(0x147)](_0x16d0c4,_0x137edf[_0x3ee500(0x149)]);!fs[_0x3ee500(0x122)](_0x190ac2)&&(this[_0x3ee500(0x11f)][_0x3ee500(0x102)](util['format'](_0x137edf[_0x3ee500(0x105)],_0x190ac2)),fs[_0x3ee500(0x155)](_0x190ac2),this[_0x3ee500(0x11f)]['debug'](util[_0x3ee500(0x106)](_0x137edf[_0x3ee500(0x125)],_0x190ac2)));const _0x7a9ba8=BrowserstackCLI['getInstance']()[_0x3ee500(0x114)]['TestHubModule']?.['testhubConfig']?.[_0x3ee500(0x112)]()?.[_0x3ee500(0x110)],_0x5b6381=path['join'](_0x190ac2,_0x7a9ba8);!fs[_0x3ee500(0x122)](_0x5b6381)&&(fs['mkdirSync'](_0x5b6381),this[_0x3ee500(0x11f)][_0x3ee500(0x102)](util[_0x3ee500(0x106)](_0x137edf[_0x3ee500(0x179)],_0x5b6381)));if(_0x137edf[_0x3ee500(0x12e)](_0x2934c1['trim'](),'')){this[_0x3ee500(0x11f)][_0x3ee500(0x102)](util[_0x3ee500(0x106)](_0x137edf[_0x3ee500(0x139)]));return;}if(_0x2934c1['startsWith'](_0x137edf['UQBcg'])||_0x2934c1[_0x3ee500(0x164)](_0x137edf[_0x3ee500(0x13a)])){const _0x7c0e8e=_0x2934c1[_0x3ee500(0x164)](_0x137edf[_0x3ee500(0x127)])?https:http,_0x5b61cf=path['basename'](_0x2934c1),_0x38e37f=path[_0x3ee500(0x147)](_0x5b6381,_0x5b61cf),_0x29bd85=fs[_0x3ee500(0x144)](_0x38e37f);_0x7c0e8e[_0x3ee500(0x119)](_0x2934c1,_0x157d89=>{const _0x58fc96=_0x3ee500,_0x216f9d={'FiksM':function(_0x230aac,_0x5527cc){const _0x19264b=a117_0x22ea;return _0x137edf[_0x19264b(0x10e)](_0x230aac,_0x5527cc);},'pevdX':function(_0x113d46,_0x42a5e0){const _0xdc3f24=a117_0x22ea;return _0x137edf[_0xdc3f24(0x116)](_0x113d46,_0x42a5e0);},'NIyLk':function(_0xc157b7,_0xf0425){const _0x4ee1ca=a117_0x22ea;return _0x137edf[_0x4ee1ca(0x169)](_0xc157b7,_0xf0425);},'EGevY':_0x137edf[_0x58fc96(0x148)],'epQhM':_0x137edf[_0x58fc96(0x108)]};if(_0x137edf[_0x58fc96(0x12e)](_0x157d89[_0x58fc96(0x17e)],0xc8))_0x157d89[_0x58fc96(0x17f)](_0x29bd85),_0x29bd85['on'](_0x137edf['wyLeY'],()=>{const _0x588dd7=_0x58fc96;_0x29bd85['close']();const _0xa925b6=fs[_0x588dd7(0x11e)](_0x38e37f),_0x5d9a2f=_0x216f9d[_0x588dd7(0x176)](_0xa925b6[_0x588dd7(0x126)],_0x216f9d['pevdX'](0x400,0x400));if(_0x216f9d[_0x588dd7(0x172)](_0x5d9a2f,0x64)){this[_0x588dd7(0x11f)][_0x588dd7(0x102)](util[_0x588dd7(0x106)](_0x216f9d[_0x588dd7(0x120)],_0x5d9a2f[_0x588dd7(0x129)](0x2))),fs[_0x588dd7(0x16b)](_0x38e37f);return;}this[_0x588dd7(0x11f)][_0x588dd7(0x102)](util[_0x588dd7(0x106)](_0x216f9d[_0x588dd7(0x123)],_0x38e37f)),uploadAttachmentsManager[_0x588dd7(0x159)](_0x38e37f,_0x17295d);});else{this['logger'][_0x58fc96(0x102)](util[_0x58fc96(0x106)](_0x137edf[_0x58fc96(0x11b)],_0x157d89['statusCode'])),_0x29bd85[_0x58fc96(0x14d)](),fs['unlinkSync'](_0x38e37f);return;}})['on'](_0x137edf[_0x3ee500(0x181)],_0x2ed3ca=>{const _0x1e4976=_0x3ee500;this[_0x1e4976(0x11f)][_0x1e4976(0x102)](util[_0x1e4976(0x106)](_0x137edf['NoEoM'],_0x2ed3ca[_0x1e4976(0x10b)])),_0x29bd85['close'](),fs['unlinkSync'](_0x38e37f);return;});}else{if(!fs['existsSync'](_0x2934c1)){this[_0x3ee500(0x11f)]['debug'](util['format'](_0x137edf['IAgcx'],_0x2934c1));return;}const _0x24fb12=fs[_0x3ee500(0x11e)](_0x2934c1),_0x42d39b=_0x137edf[_0x3ee500(0x10e)](_0x24fb12[_0x3ee500(0x126)],_0x137edf['EHDqE'](0x400,0x400));if(_0x137edf[_0x3ee500(0x169)](_0x42d39b,0x64)){this[_0x3ee500(0x11f)][_0x3ee500(0x102)](util[_0x3ee500(0x106)](_0x137edf['zLMZA'],_0x42d39b[_0x3ee500(0x129)](0x2)));return;}const _0x4cf467=path[_0x3ee500(0x13d)](_0x2934c1),_0x203775=path[_0x3ee500(0x147)](_0x5b6381,_0x4cf467);fs[_0x3ee500(0x156)](_0x2934c1,_0x203775),uploadAttachmentsManager[_0x3ee500(0x159)](_0x203775,_0x17295d);}}static[a117_0x28aa6a(0x159)](_0x5408f6,_0x1fb4c3){const _0x374afb=a117_0x28aa6a,_0x1081c7={'GApax':function(_0xb75cd1,_0x5250f2){return _0xb75cd1(_0x5250f2);},'guZpf':'./browserstackCLI','yCOSI':function(_0x1a7d40,_0x124eeb){return _0x1a7d40(_0x124eeb);},'CieuW':_0x374afb(0x183),'eeJZR':function(_0x40a245,_0x1d8c75){return _0x40a245===_0x1d8c75;},'vAZso':_0x374afb(0x11d),'AKoSg':_0x374afb(0x131),'zdJBh':_0x374afb(0x161),'nbzFv':_0x374afb(0x137),'GBJkM':'trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','bIlIV':function(_0x2b7cc7,_0x50f084){return _0x2b7cc7(_0x50f084);},'ahPMb':_0x374afb(0x17a),'QNkus':function(_0x41c50c,_0x460e13){return _0x41c50c(_0x460e13);},'CJzKC':_0x374afb(0x162),'QiWEp':_0x374afb(0x132),'OnPlI':_0x374afb(0x10a),'fLXbu':_0x374afb(0x16f)};try{let _0x53b426;const _0x14160c=global['__workerDetails']?.[_0x374afb(0x12d)]?.[_0x374afb(0x157)],_0x3cf48e=_0x1081c7[_0x374afb(0x103)](require,_0x1081c7['guZpf']),_0x2805d4=_0x1081c7[_0x374afb(0x160)](require,_0x1081c7[_0x374afb(0x14f)]),_0x210953=_0x3cf48e['getInstance']()[_0x374afb(0x17c)]()&&_0x1081c7['eeJZR'](_0x2805d4[_0x374afb(0x146)]()?.[_0x374afb(0x117)]?.[_0x374afb(0x15a)](),_0x1081c7[_0x374afb(0x111)]);if(_0x210953){_0x53b426=global[_0x374afb(0x16a)];if(!_0x53b426){const _0x148bf2=AutomationFramework[_0x374afb(0x167)]();_0x53b426=AutomationFramework['getState'](_0x148bf2,PlaywrightDriverModule[_0x374afb(0x121)],'');}this[_0x374afb(0x11f)][_0x374afb(0x102)](_0x374afb(0x13b)+_0x53b426);}else{if(!_0x14160c){const _0x5e2b17=AutomationFramework['getTrackedInstance']();_0x53b426=AutomationFramework[_0x374afb(0x184)](_0x5e2b17,PlaywrightDriverModule[_0x374afb(0x121)],'');}else _0x53b426=TestInfo[_0x374afb(0x163)](_0x14160c,_0x14160c[_0x374afb(0x173)]);this[_0x374afb(0x11f)][_0x374afb(0x102)]('trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20'+_0x53b426);}if(!_0x53b426){this[_0x374afb(0x11f)]['debug'](_0x1081c7[_0x374afb(0x13c)]);return;}const _0x1f015d={[TestFrameworkConstants[_0x374afb(0x15f)]]:fs[_0x374afb(0x11e)](_0x5408f6)[_0x374afb(0x126)],[TestFrameworkConstants[_0x374afb(0x128)]]:path[_0x374afb(0x13d)](_0x5408f6),[TestFrameworkConstants[_0x374afb(0x14b)]]:_0x5408f6,[TestFrameworkConstants[_0x374afb(0x145)]]:_0x1fb4c3?_0x1081c7['zdJBh']:_0x1081c7['nbzFv']};if(_0x210953){const _0x3e7c7b=_0x3cf48e['getInstance']()['getTestFramework']();if(!_0x3e7c7b){this[_0x374afb(0x11f)]['debug'](_0x1081c7[_0x374afb(0x12b)]);return;}const _0x3a160a=_0x1081c7[_0x374afb(0x141)](require,_0x1081c7['ahPMb']),_0x2ce106=_0x1081c7[_0x374afb(0x14c)](require,_0x1081c7[_0x374afb(0x174)]),_0xbc52a2=_0x3e7c7b[_0x374afb(0x165)](_0x3a160a['TEST'],_0x2ce106[_0x374afb(0x151)]);if(!_0xbc52a2){this[_0x374afb(0x11f)][_0x374afb(0x102)](_0x1081c7[_0x374afb(0x158)]);return;}const _0x4d3678=_0xbc52a2[_0x374afb(0x138)]()[_0x374afb(0x119)](_0x53b426)||{},_0x2693fb=_0x4d3678[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x5e6d47={..._0x2693fb};_0x5e6d47[_0x5408f6]=_0x1f015d;const _0x5a1cba=_0x5e6d47,_0x49cbaa={[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]:_0x5a1cba},_0x3cb546={};_0x3cb546[_0x53b426]=_0x49cbaa,_0xbc52a2['addMultipleEntries'](_0x3cb546),this['logger'][_0x374afb(0x102)](_0x374afb(0x15c)+_0x53b426+_0x374afb(0x14a)+_0x5408f6);}else{const _0x3cf30f=TestInfo[_0x374afb(0x113)](_0x53b426),_0x44798f=_0x3cf30f[TestFrameworkConstants[_0x374afb(0x10f)]]||{};_0x44798f[_0x5408f6]=_0x1f015d,_0x3cf30f[TestFrameworkConstants[_0x374afb(0x10f)]]=_0x44798f,TestInfo[_0x374afb(0x140)](_0x53b426,_0x3cf30f),this['logger'][_0x374afb(0x102)](_0x374afb(0x12c)+_0x53b426+',\x20filepath:\x20'+_0x5408f6);}this[_0x374afb(0x11f)][_0x374afb(0x102)](util[_0x374afb(0x106)](_0x1081c7[_0x374afb(0x133)],_0x5408f6));}catch(_0x3568a7){this[_0x374afb(0x11f)][_0x374afb(0x102)](util[_0x374afb(0x106)](_0x1081c7[_0x374afb(0x10d)],_0x3568a7['message']));}}static[a117_0x28aa6a(0x100)](){const _0xa12e30=a117_0x28aa6a,_0x3c9723={};_0x3c9723[_0xa12e30(0x115)]='.browserstack',_0x3c9723[_0xa12e30(0x11a)]=_0xa12e30(0x107),_0x3c9723[_0xa12e30(0x124)]=_0xa12e30(0x134);const _0xf70cd3=_0x3c9723,_0x5b540a=os['homedir'](),_0x1380be=path['join'](_0x5b540a,_0xf70cd3[_0xa12e30(0x115)]);if(!fs[_0xa12e30(0x122)](_0x1380be))return;const _0x5b8d4e=BrowserstackCLI['getInstance']()[_0xa12e30(0x114)]['TestHubModule']?.[_0xa12e30(0x177)]?.[_0xa12e30(0x112)]()?.[_0xa12e30(0x110)],_0x16e60f=_0x5b8d4e?path[_0xa12e30(0x147)](_0x1380be,_0x5b8d4e):null;if(!_0x16e60f||!fs['existsSync'](_0x16e60f)){this[_0xa12e30(0x11f)]['debug'](util[_0xa12e30(0x106)](_0xf70cd3[_0xa12e30(0x11a)],_0x5b8d4e));return;}const _0x107bf1={};_0x107bf1['recursive']=!![],_0x107bf1[_0xa12e30(0x12a)]=!![],fs[_0xa12e30(0x180)](_0x16e60f,_0x107bf1),this[_0xa12e30(0x11f)][_0xa12e30(0x102)](util['format'](_0xf70cd3[_0xa12e30(0x124)]));}}module['exports']=uploadAttachmentsManager;
|
|
1
|
+
const a117_0x2435e9=a117_0x2f29;function a117_0x2275(){const _0x1da75f=['util','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','resolveInstance','MAwJC','toObject','__jestCurrentTestIdentifier','TestHubModule','jQOWY','getAllData','uNnPz','8TvpjkJ','Cleared\x20attachment\x20folder','addMultipleEntries','./framework/constants/testFrameworkConstants','Vhgoa','close','riHqL','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','EaMIe','toFixed','POST','KEY_FILE_PATH','Created\x20.browserstack\x20folder\x20at:\x20%s','13419dtZLjb','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','getTestDetails','jJbgN','KEY_FILE_LEVEL','12590248eUlKei','trackFile','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','qgfLc','2580273ICubqS','join','./state/testFrameworkState','unlinkSync','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','path','GXOfi','exports','oFnaV','3777060rMYiFw','get','sfwOq','statSync','xqBFR','ookYy','./TestInfo','4536RjLwxJ','getInstance','xwAhl','homedir','ecfuF','https://',',\x20filepath:\x20','bqJrA','uploadAttachmentsManager','JugHM','2510lNwxzS','retry','File\x20downloaded\x20to:\x20%s','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','testhubConfig','KEY_TEST_ID','hlghW','recursive','QyqEa','gGgEM','TEST','message','mkdirSync','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','.browserstack','copyFileSync','./cliUtils','2ioDTsQ','basename','createWriteStream','BuildLevel','AcbpE','http://','name','pipe','qksjF','uploadAttachments','debug','yZIAw','601255buHJhW','getTestIdentifierFromTestInfo','logger','modules','HAWSs','setTestDetails','startsWith','LEgjk','buildHashedId','statusCode','size','xRfWj','gpHBx','force','getState','aJonW','format','Created\x20folder:\x20%s','clearAttachments','1582mZQnOt','error','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','KEY_FILE_NAME','testInfo','getTestFramework','JDWii','rmSync','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','eFVPd','jest','KEY_FILE_SIZE','suBCH','585910TgVIsm','SlTvc','KEY_TEST_ATTACHMENTS','JcMNI','http','../../helpers/classLogger.js','IyxJQ','toLowerCase','zEpvr','existsSync'];a117_0x2275=function(){return _0x1da75f;};return a117_0x2275();}(function(_0x49fe06,_0x684769){const _0x4e840a=a117_0x2f29,_0x5a1289=_0x49fe06();while(!![]){try{const _0x23d117=-parseInt(_0x4e840a(0x1cf))/0x1+parseInt(_0x4e840a(0x227))/0x2*(parseInt(_0x4e840a(0x1fa))/0x3)+parseInt(_0x4e840a(0x1e3))/0x4*(parseInt(_0x4e840a(0x233))/0x5)+-parseInt(_0x4e840a(0x203))/0x6+parseInt(_0x4e840a(0x1c2))/0x7*(-parseInt(_0x4e840a(0x20a))/0x8)+parseInt(_0x4e840a(0x1f0))/0x9*(-parseInt(_0x4e840a(0x214))/0xa)+parseInt(_0x4e840a(0x1f6))/0xb;if(_0x23d117===_0x684769)break;else _0x5a1289['push'](_0x5a1289['shift']());}catch(_0x1e2037){_0x5a1289['push'](_0x5a1289['shift']());}}}(a117_0x2275,0x80bfe));const os=require('os'),fs=require('fs'),path=require(a117_0x2435e9(0x1ff)),util=require(a117_0x2435e9(0x1d9)),BrowserstackCLI=require('./browserstackCLI'),https=require('https'),http=require(a117_0x2435e9(0x1d3)),AutomationFramework=require('./framework/automationFramework'),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a117_0x2435e9(0x209)),TestFrameworkConstants=require(a117_0x2435e9(0x1e6)),{createClassLogger}=require(a117_0x2435e9(0x1d4));class uploadAttachmentsManager{static [a117_0x2435e9(0x1b1)]=createClassLogger(a117_0x2435e9(0x212));static[a117_0x2435e9(0x230)](_0x6b5ccc,_0x3013ec=![]){const _0x43bfd8=a117_0x2435e9,_0x17bccb={};_0x17bccb[_0x43bfd8(0x1e9)]=function(_0x5c3bc3,_0x37fb8d){return _0x5c3bc3/_0x37fb8d;},_0x17bccb[_0x43bfd8(0x22b)]=function(_0xdc37c6,_0x134fc0){return _0xdc37c6*_0x134fc0;},_0x17bccb[_0x43bfd8(0x205)]=function(_0x37a0f9,_0x4e0f9f){return _0x37a0f9>_0x4e0f9f;},_0x17bccb[_0x43bfd8(0x1cb)]=_0x43bfd8(0x1f1),_0x17bccb[_0x43bfd8(0x1b6)]=_0x43bfd8(0x216),_0x17bccb[_0x43bfd8(0x208)]=function(_0x1ef80e,_0x64d2df){return _0x1ef80e===_0x64d2df;},_0x17bccb['ecfuF']='finish',_0x17bccb[_0x43bfd8(0x1f4)]=_0x43bfd8(0x223),_0x17bccb[_0x43bfd8(0x1eb)]=_0x43bfd8(0x218),_0x17bccb[_0x43bfd8(0x213)]='Attachment\x20recevied\x20for\x20path:\x20%s',_0x17bccb[_0x43bfd8(0x1e0)]=_0x43bfd8(0x224),_0x17bccb[_0x43bfd8(0x1b3)]='.browserstack\x20folder\x20not\x20found\x20at:\x20%s',_0x17bccb['CTcAH']=_0x43bfd8(0x1ef),_0x17bccb[_0x43bfd8(0x202)]=_0x43bfd8(0x1c0),_0x17bccb['qgfLc']=function(_0x36dcfd,_0x429756){return _0x36dcfd===_0x429756;},_0x17bccb[_0x43bfd8(0x21b)]=_0x43bfd8(0x1da),_0x17bccb[_0x43bfd8(0x21d)]=_0x43bfd8(0x20f),_0x17bccb['GXOfi']=_0x43bfd8(0x22c),_0x17bccb[_0x43bfd8(0x1be)]=_0x43bfd8(0x1c3),_0x17bccb[_0x43bfd8(0x232)]='Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s',_0x17bccb[_0x43bfd8(0x20c)]=function(_0x4bc8d8,_0x373b69){return _0x4bc8d8*_0x373b69;},_0x17bccb[_0x43bfd8(0x1ce)]='File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.';const _0x5e0260=_0x17bccb;this[_0x43bfd8(0x1b1)]['debug'](util[_0x43bfd8(0x1bf)](_0x5e0260[_0x43bfd8(0x213)],_0x6b5ccc));const _0x46d25d=os['homedir'](),_0xb84882=path[_0x43bfd8(0x1fb)](_0x46d25d,_0x5e0260[_0x43bfd8(0x1e0)]);!fs[_0x43bfd8(0x1d8)](_0xb84882)&&(this[_0x43bfd8(0x1b1)][_0x43bfd8(0x231)](util['format'](_0x5e0260[_0x43bfd8(0x1b3)],_0xb84882)),fs[_0x43bfd8(0x221)](_0xb84882),this[_0x43bfd8(0x1b1)][_0x43bfd8(0x231)](util['format'](_0x5e0260['CTcAH'],_0xb84882)));const _0x469cfc=BrowserstackCLI[_0x43bfd8(0x20b)]()[_0x43bfd8(0x1b2)][_0x43bfd8(0x1df)]?.['testhubConfig']?.[_0x43bfd8(0x1dd)]()?.[_0x43bfd8(0x1b7)],_0x4ce2fd=path[_0x43bfd8(0x1fb)](_0xb84882,_0x469cfc);!fs[_0x43bfd8(0x1d8)](_0x4ce2fd)&&(fs[_0x43bfd8(0x221)](_0x4ce2fd),this[_0x43bfd8(0x1b1)][_0x43bfd8(0x231)](util[_0x43bfd8(0x1bf)](_0x5e0260[_0x43bfd8(0x202)],_0x4ce2fd)));if(_0x5e0260[_0x43bfd8(0x1f9)](_0x6b5ccc['trim'](),'')){this['logger'][_0x43bfd8(0x231)](util['format'](_0x5e0260[_0x43bfd8(0x21b)]));return;}if(_0x6b5ccc[_0x43bfd8(0x1b5)](_0x5e0260[_0x43bfd8(0x21d)])||_0x6b5ccc[_0x43bfd8(0x1b5)](_0x5e0260[_0x43bfd8(0x200)])){const _0x3dd4f1=_0x6b5ccc['startsWith'](_0x5e0260['QyqEa'])?https:http,_0xcadb4f=path[_0x43bfd8(0x228)](_0x6b5ccc),_0x455b4e=path[_0x43bfd8(0x1fb)](_0x4ce2fd,_0xcadb4f),_0x27f6b2=fs[_0x43bfd8(0x229)](_0x455b4e);_0x3dd4f1['get'](_0x6b5ccc,_0x5a78b6=>{const _0x4c1ac1=_0x43bfd8;if(_0x5e0260['ookYy'](_0x5a78b6[_0x4c1ac1(0x1b8)],0xc8))_0x5a78b6[_0x4c1ac1(0x22e)](_0x27f6b2),_0x27f6b2['on'](_0x5e0260[_0x4c1ac1(0x20e)],()=>{const _0x342ded=_0x4c1ac1;_0x27f6b2[_0x342ded(0x1e8)]();const _0x3323be=fs['statSync'](_0x455b4e),_0x4072ce=_0x5e0260[_0x342ded(0x1e9)](_0x3323be[_0x342ded(0x1b9)],_0x5e0260[_0x342ded(0x22b)](0x400,0x400));if(_0x5e0260[_0x342ded(0x205)](_0x4072ce,0x64)){this['logger'][_0x342ded(0x231)](util[_0x342ded(0x1bf)](_0x5e0260[_0x342ded(0x1cb)],_0x4072ce[_0x342ded(0x1ec)](0x2))),fs['unlinkSync'](_0x455b4e);return;}this[_0x342ded(0x1b1)][_0x342ded(0x231)](util['format'](_0x5e0260[_0x342ded(0x1b6)],_0x455b4e)),uploadAttachmentsManager[_0x342ded(0x1f7)](_0x455b4e,_0x3013ec);});else{this[_0x4c1ac1(0x1b1)][_0x4c1ac1(0x231)](util[_0x4c1ac1(0x1bf)](_0x5e0260[_0x4c1ac1(0x1f4)],_0x5a78b6[_0x4c1ac1(0x1b8)])),_0x27f6b2['close'](),fs[_0x4c1ac1(0x1fd)](_0x455b4e);return;}})['on'](_0x5e0260[_0x43bfd8(0x1be)],_0x10745c=>{const _0x1e6925=_0x43bfd8;this['logger']['debug'](util['format'](_0x5e0260['EaMIe'],_0x10745c[_0x1e6925(0x220)])),_0x27f6b2[_0x1e6925(0x1e8)](),fs[_0x1e6925(0x1fd)](_0x455b4e);return;});}else{if(!fs[_0x43bfd8(0x1d8)](_0x6b5ccc)){this[_0x43bfd8(0x1b1)]['debug'](util[_0x43bfd8(0x1bf)](_0x5e0260[_0x43bfd8(0x232)],_0x6b5ccc));return;}const _0x5dc43c=fs[_0x43bfd8(0x206)](_0x6b5ccc),_0x472fe6=_0x5e0260['riHqL'](_0x5dc43c[_0x43bfd8(0x1b9)],_0x5e0260['xwAhl'](0x400,0x400));if(_0x5e0260[_0x43bfd8(0x205)](_0x472fe6,0x64)){this[_0x43bfd8(0x1b1)][_0x43bfd8(0x231)](util[_0x43bfd8(0x1bf)](_0x5e0260[_0x43bfd8(0x1ce)],_0x472fe6['toFixed'](0x2)));return;}const _0x5098cc=path['basename'](_0x6b5ccc),_0x2eb066=path[_0x43bfd8(0x1fb)](_0x4ce2fd,_0x5098cc);fs[_0x43bfd8(0x225)](_0x6b5ccc,_0x2eb066),uploadAttachmentsManager[_0x43bfd8(0x1f7)](_0x2eb066,_0x3013ec);}}static[a117_0x2435e9(0x1f7)](_0x1088c3,_0x190092){const _0x456c3a=a117_0x2435e9,_0x11229b={'JcMNI':function(_0x46c362,_0xd7cd24){return _0x46c362(_0xd7cd24);},'SlTvc':'./browserstackCLI','gGgEM':function(_0x4736f9,_0x39e50b){return _0x4736f9(_0x39e50b);},'gsSnS':_0x456c3a(0x226),'dqYPk':function(_0x147274,_0x40a343){return _0x147274===_0x40a343;},'JDWii':_0x456c3a(0x1cc),'Wuuuq':_0x456c3a(0x1c4),'zEpvr':_0x456c3a(0x22a),'qksjF':'TestLevel','IyxJQ':_0x456c3a(0x1f2),'xRfWj':function(_0x4c89eb,_0x4c0b3f){return _0x4c89eb(_0x4c0b3f);},'RcBwR':_0x456c3a(0x1fc),'RBbwV':function(_0x10c853,_0x171f29){return _0x10c853(_0x171f29);},'gpHBx':'./state/hookState','Vhgoa':_0x456c3a(0x1fe),'xqBFR':_0x456c3a(0x1ca),'bqJrA':_0x456c3a(0x1ea)};try{let _0x2f5171;const _0x2cf693=global['__workerDetails']?.['currentTest']?.[_0x456c3a(0x1c6)],_0x4f9c08=_0x11229b[_0x456c3a(0x1d2)](require,_0x11229b[_0x456c3a(0x1d0)]),_0x138e52=_0x11229b[_0x456c3a(0x21e)](require,_0x11229b['gsSnS']),_0x1cc172=_0x4f9c08[_0x456c3a(0x20b)]()['isRunning']()&&_0x11229b['dqYPk'](_0x138e52['getTestFrameworkDetail']()?.[_0x456c3a(0x22d)]?.[_0x456c3a(0x1d6)](),_0x11229b[_0x456c3a(0x1c8)]);if(_0x1cc172){_0x2f5171=global[_0x456c3a(0x1de)];if(!_0x2f5171){const _0x3412a8=AutomationFramework['getTrackedInstance']();_0x2f5171=AutomationFramework[_0x456c3a(0x1bd)](_0x3412a8,PlaywrightDriverModule[_0x456c3a(0x21a)],'');}this[_0x456c3a(0x1b1)][_0x456c3a(0x231)](_0x456c3a(0x217)+_0x2f5171);}else{if(!_0x2cf693){const _0x1b3133=AutomationFramework['getTrackedInstance']();_0x2f5171=AutomationFramework[_0x456c3a(0x1bd)](_0x1b3133,PlaywrightDriverModule['KEY_TEST_ID'],'');}else _0x2f5171=TestInfo[_0x456c3a(0x234)](_0x2cf693,_0x2cf693[_0x456c3a(0x215)]);this[_0x456c3a(0x1b1)][_0x456c3a(0x231)](_0x456c3a(0x1f8)+_0x2f5171);}if(!_0x2f5171){this[_0x456c3a(0x1b1)][_0x456c3a(0x231)](_0x11229b['Wuuuq']);return;}const _0x213712={[TestFrameworkConstants[_0x456c3a(0x1cd)]]:fs[_0x456c3a(0x206)](_0x1088c3)[_0x456c3a(0x1b9)],[TestFrameworkConstants[_0x456c3a(0x1c5)]]:path[_0x456c3a(0x228)](_0x1088c3),[TestFrameworkConstants[_0x456c3a(0x1ee)]]:_0x1088c3,[TestFrameworkConstants[_0x456c3a(0x1f5)]]:_0x190092?_0x11229b[_0x456c3a(0x1d7)]:_0x11229b[_0x456c3a(0x22f)]};if(_0x1cc172){const _0x420bc5=_0x4f9c08['getInstance']()[_0x456c3a(0x1c7)]();if(!_0x420bc5){this[_0x456c3a(0x1b1)][_0x456c3a(0x231)](_0x11229b[_0x456c3a(0x1d5)]);return;}const _0x12440f=_0x11229b[_0x456c3a(0x1ba)](require,_0x11229b['RcBwR']),_0x3aeb50=_0x11229b['RBbwV'](require,_0x11229b[_0x456c3a(0x1bb)]),_0x20f7c9=_0x420bc5[_0x456c3a(0x1db)](_0x12440f[_0x456c3a(0x21f)],_0x3aeb50[_0x456c3a(0x1ed)]);if(!_0x20f7c9){this[_0x456c3a(0x1b1)][_0x456c3a(0x231)](_0x11229b[_0x456c3a(0x1e7)]);return;}const _0x544cb7=_0x20f7c9[_0x456c3a(0x1e1)]()[_0x456c3a(0x204)](_0x2f5171)||{},_0x30ce8d=_0x544cb7[TestFrameworkConstants[_0x456c3a(0x1d1)]]||{},_0x1d2540={..._0x30ce8d};_0x1d2540[_0x1088c3]=_0x213712;const _0x2a0e76=_0x1d2540,_0x1cee79={[TestFrameworkConstants[_0x456c3a(0x1d1)]]:_0x2a0e76},_0x4101de={};_0x4101de[_0x2f5171]=_0x1cee79,_0x20f7c9[_0x456c3a(0x1e5)](_0x4101de),this[_0x456c3a(0x1b1)][_0x456c3a(0x231)]('trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20'+_0x2f5171+_0x456c3a(0x210)+_0x1088c3);}else{const _0x3267aa=TestInfo[_0x456c3a(0x1f3)](_0x2f5171),_0x2256a8=_0x3267aa[TestFrameworkConstants[_0x456c3a(0x1d1)]]||{};_0x2256a8[_0x1088c3]=_0x213712,_0x3267aa[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]=_0x2256a8,TestInfo[_0x456c3a(0x1b4)](_0x2f5171,_0x3267aa),this[_0x456c3a(0x1b1)][_0x456c3a(0x231)]('trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20'+_0x2f5171+_0x456c3a(0x210)+_0x1088c3);}this[_0x456c3a(0x1b1)][_0x456c3a(0x231)](util[_0x456c3a(0x1bf)](_0x11229b[_0x456c3a(0x207)],_0x1088c3));}catch(_0x238c93){this[_0x456c3a(0x1b1)][_0x456c3a(0x231)](util[_0x456c3a(0x1bf)](_0x11229b[_0x456c3a(0x211)],_0x238c93['message']));}}static[a117_0x2435e9(0x1c1)](){const _0x2e6adf=a117_0x2435e9,_0xb5f8bf={};_0xb5f8bf[_0x2e6adf(0x1e2)]=_0x2e6adf(0x224),_0xb5f8bf[_0x2e6adf(0x1dc)]=_0x2e6adf(0x222),_0xb5f8bf['AHksj']=_0x2e6adf(0x1e4);const _0x1fe952=_0xb5f8bf,_0x409f0a=os[_0x2e6adf(0x20d)](),_0x2f7545=path[_0x2e6adf(0x1fb)](_0x409f0a,_0x1fe952[_0x2e6adf(0x1e2)]);if(!fs[_0x2e6adf(0x1d8)](_0x2f7545))return;const _0xbc4c54=BrowserstackCLI[_0x2e6adf(0x20b)]()[_0x2e6adf(0x1b2)][_0x2e6adf(0x1df)]?.[_0x2e6adf(0x219)]?.['toObject']()?.[_0x2e6adf(0x1b7)],_0x4e1463=_0xbc4c54?path[_0x2e6adf(0x1fb)](_0x2f7545,_0xbc4c54):null;if(!_0x4e1463||!fs[_0x2e6adf(0x1d8)](_0x4e1463)){this[_0x2e6adf(0x1b1)][_0x2e6adf(0x231)](util['format'](_0x1fe952[_0x2e6adf(0x1dc)],_0xbc4c54));return;}const _0x156c43={};_0x156c43[_0x2e6adf(0x21c)]=!![],_0x156c43[_0x2e6adf(0x1bc)]=!![],fs[_0x2e6adf(0x1c9)](_0x4e1463,_0x156c43),this[_0x2e6adf(0x1b1)][_0x2e6adf(0x231)](util[_0x2e6adf(0x1bf)](_0x1fe952['AHksj']));}}function a117_0x2f29(_0x47983d,_0x5abb97){const _0x227538=a117_0x2275();return a117_0x2f29=function(_0x2f293e,_0x11f910){_0x2f293e=_0x2f293e-0x1b1;let _0x17beb9=_0x227538[_0x2f293e];return _0x17beb9;},a117_0x2f29(_0x47983d,_0x5abb97);}module[a117_0x2435e9(0x201)]=uploadAttachmentsManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a118_0x54f0d1=a118_0x525e;function a118_0x5388(){const _0x2b4e96=['EcdQR','../../../helpers/logger.js','HookRunFinished','FWeuB','tableBody','XGtFm','UnhandledError','rDbzS','length','../TestInfo.js','name','strip-ansi','debug','AFTER_EACH','../../../helpers/helper.js','bstack','result','uuid','getCucumberHookType','root','children','getHookRunEventData','eKFGS','path','TeUmv','Exception\x20in\x20createHookData:\x20','exports','QuKEO','uJCAN','EySyc','JRCPx','uri','_gitConfigured','getHookResult','timestamp','javascript','forEach','GEIHJ','1406310cMalzV','tagExpression','AssertionError','nanos','8ZpBkdC','finished_at','QiPTQ','TORUJ','every','match','failureData','KpYiB','fsSnP','sourceReference','failed','NmODI','369580qvfhYp','zGTUR','aaVwD','eCHJq','feature','toISOString','sendTestRunEventForCucumber','nbYyE','iougx','filter','configureGit','jHrSj','createTestFrameworkData','scenario','iDdBa','map','finishedAt','message','find','_gitConfigPath','hookId','hooks','unknown','../../../helpers/test-observability/error-handler.js','qjLes','GLfZc','failure_data','iJEBL','2230656wcLNko','includes','relative','BEFORE_EACH','cNXjl','UVLef','MbOzH','failureType','lZMIC','test','testCaseFinished','NzdpV','format','createHookData','cucumber','status','zncgr','qeQeu','qBLwC','HookRunStarted','onAbI','pending','PnWzM','winstonLogger','duration_in_ms','toLowerCase','failure','tOMFk','4IbJgwj','35553ZIdsuU','Gaebx','FAILED','fEwXi','852984MTbtsy','esSim','VaQWH','5365863zyjhWS','getScenarioExamples','baHUp','push','mIuPR','RqIdd','2842959cJXTxq','examples','exception','cells','astNodeIds','failure_type','backtrace','toString','flatMap'];a118_0x5388=function(){return _0x2b4e96;};return a118_0x5388();}(function(_0x45dda0,_0xc3a409){const _0x1d9637=a118_0x525e,_0x332995=_0x45dda0();while(!![]){try{const _0x1c568b=parseInt(_0x1d9637(0x22d))/0x1+parseInt(_0x1d9637(0x221))/0x2*(-parseInt(_0x1d9637(0x1e1))/0x3)+-parseInt(_0x1d9637(0x1e0))/0x4*(parseInt(_0x1d9637(0x21d))/0x5)+parseInt(_0x1d9637(0x1e5))/0x6+parseInt(_0x1d9637(0x1ee))/0x7+parseInt(_0x1d9637(0x249))/0x8+-parseInt(_0x1d9637(0x1e8))/0x9;if(_0x1c568b===_0xc3a409)break;else _0x332995['push'](_0x332995['shift']());}catch(_0x5d7c32){_0x332995['push'](_0x332995['shift']());}}}(a118_0x5388,0x425e0));function a118_0x525e(_0x3c6854,_0x4f11f5){const _0x538874=a118_0x5388();return a118_0x525e=function(_0x525ef7,_0x34fb63){_0x525ef7=_0x525ef7-0x1d2;let _0x33fe39=_0x538874[_0x525ef7];return _0x33fe39;},a118_0x525e(_0x3c6854,_0x4f11f5);}const path=require(a118_0x54f0d1(0x20e)),util=require('util'),{getGitMetaData,isUndefined,nestedKeyValue}=require(a118_0x54f0d1(0x205)),logger=require(a118_0x54f0d1(0x1f8))[a118_0x54f0d1(0x1db)],{o11yClassErrorHandler}=require(a118_0x54f0d1(0x244)),TestInfo=require(a118_0x54f0d1(0x200)),hooksMap={};class CucumberUtils{constructor(){const _0x4f6166=a118_0x54f0d1;this[_0x4f6166(0x217)]=![],this[_0x4f6166(0x240)]=null;}async[a118_0x54f0d1(0x239)](_0x530f94,_0x2518df,_0x509669,_0x191f7a,_0x253ffc,_0x5475b6){const _0x3b6f22=a118_0x54f0d1,_0x27f539={'QuKEO':function(_0x242f9f,_0x46668e){return _0x242f9f===_0x46668e;},'JRCPx':_0x3b6f22(0x1e3),'fsSnP':_0x3b6f22(0x22b),'aLkBk':'SKIPPED','iJEBL':'skipped','GEIHJ':function(_0x5ca924,_0x5d7746){return _0x5ca924||_0x5d7746;},'RqIdd':function(_0x56a6c7,_0x17e8d8){return _0x56a6c7+_0x17e8d8;},'rDbzS':function(_0x3398e1,_0x2b482e){return _0x3398e1+_0x2b482e;},'zGTUR':_0x3b6f22(0x252),'zncgr':_0x3b6f22(0x21a),'TORUJ':_0x3b6f22(0x1d2),'GLfZc':_0x3b6f22(0x1d9),'KpYiB':'passed','rBaZJ':function(_0x2b059e,_0x40fdd0){return _0x2b059e!==_0x40fdd0;},'QNZSt':function(_0x4cdbdc,_0x3fb146){return _0x4cdbdc/_0x3fb146;},'EySyc':function(_0x19597c,_0x365010){return _0x19597c===_0x365010;},'MLxGS':_0x3b6f22(0x202),'nbYyE':function(_0xa9b4fb,_0x55341a){return _0xa9b4fb(_0x55341a);},'cNXjl':_0x3b6f22(0x243),'TtiXU':_0x3b6f22(0x21f),'iDdBa':_0x3b6f22(0x1fd)},{feature:_0x326c0d,scenario:_0x2bfb66,steps:_0x3dab97,uuid:_0x18b801,startedAt:_0x49b30f,finishedAt:_0x82932a}=_0x27f539[_0x3b6f22(0x21c)](_0x530f94,{}),_0x4fa400=this[_0x3b6f22(0x1e9)](_0x191f7a,_0x2518df);await this[_0x3b6f22(0x237)]();const _0x228df7=_0x4fa400?_0x27f539[_0x3b6f22(0x1ed)](_0x27f539[_0x3b6f22(0x1ed)](_0x27f539[_0x3b6f22(0x1fe)](_0x2518df['name'],'\x20('),_0x4fa400['join'](',\x20')),')'):_0x2518df[_0x3b6f22(0x201)],_0x46b674={'id':_0x253ffc,'uuid':_0x253ffc,'startedAt':_0x49b30f,'finishedAt':_0x82932a,'type':_0x27f539[_0x3b6f22(0x22e)],'body':{'lang':_0x27f539[_0x3b6f22(0x1d4)],'code':null},'name':_0x228df7,'scopes':[_0x326c0d&&_0x326c0d[_0x3b6f22(0x201)]?_0x326c0d[_0x3b6f22(0x201)]:''],'tags':_0x2518df['tags']?_0x2518df['tags'][_0x3b6f22(0x23c)](({name:_0xa5641d})=>_0xa5641d):[],'file_name':_0x2518df[_0x3b6f22(0x216)],'location':_0x2518df[_0x3b6f22(0x216)],'vc_filepath':this['_gitConfigPath']&&_0x2518df[_0x3b6f22(0x216)]?path[_0x3b6f22(0x24b)](this[_0x3b6f22(0x240)],_0x2518df[_0x3b6f22(0x216)]):null,'framework':_0x27f539[_0x3b6f22(0x224)],'result':_0x27f539[_0x3b6f22(0x246)],'meta':{'feature':_0x326c0d,'scenario':_0x2bfb66,'steps':_0x3dab97,'examples':_0x4fa400},'customRerunParam':{'rerun_name':_0x228df7}};if(_0x509669[_0x3b6f22(0x253)]&&_0x3dab97){const _0x2fd30c=_0x509669[_0x3b6f22(0x253)];let _0x232fba=_0x27f539[_0x3b6f22(0x228)];_0x3dab97[_0x3b6f22(0x225)](_0x4998d7=>{const _0x4525d0=_0x3b6f22;if(_0x27f539[_0x4525d0(0x212)](_0x4998d7['result'],_0x27f539[_0x4525d0(0x215)]))return _0x232fba=_0x27f539[_0x4525d0(0x229)],_0x2fd30c['failure']=_0x4998d7['failure'],_0x2fd30c[_0x4525d0(0x250)]=_0x4998d7[_0x4525d0(0x250)],![];else{if(_0x27f539['QuKEO'](_0x4998d7['result'],_0x27f539['aLkBk']))return _0x232fba=_0x27f539[_0x4525d0(0x248)],![];}return!![];}),_0x46b674[_0x3b6f22(0x23d)]=new Date()['toISOString'](),_0x46b674[_0x3b6f22(0x207)]=_0x232fba;_0x2fd30c[_0x3b6f22(0x219)]&&_0x27f539['rBaZJ'](_0x2fd30c[_0x3b6f22(0x219)][_0x3b6f22(0x220)],undefined)?_0x46b674[_0x3b6f22(0x1dc)]=_0x27f539['QNZSt'](_0x2fd30c['timestamp'][_0x3b6f22(0x220)],0xf4240):_0x46b674['duration_in_ms']=undefined;if(_0x27f539[_0x3b6f22(0x214)](_0x232fba,_0x27f539[_0x3b6f22(0x229)])){const {default:_0x3b9003}=await import(_0x27f539['MLxGS']);_0x46b674[_0x3b6f22(0x1de)]=[{'backtrace':[_0x2fd30c[_0x3b6f22(0x1de)]?_0x27f539[_0x3b6f22(0x234)](_0x3b9003,_0x2fd30c[_0x3b6f22(0x1de)]):_0x27f539[_0x3b6f22(0x24d)]]}],_0x46b674['failure_reason']=_0x2fd30c[_0x3b6f22(0x1de)]?_0x27f539[_0x3b6f22(0x234)](_0x3b9003,_0x2fd30c[_0x3b6f22(0x1de)]):_0x2fd30c[_0x3b6f22(0x23e)],_0x2fd30c[_0x3b6f22(0x250)]&&(_0x46b674['failure_type']=_0x2fd30c[_0x3b6f22(0x250)][_0x3b6f22(0x226)](/AssertError/)?_0x27f539['TtiXU']:_0x27f539[_0x3b6f22(0x23b)]);}}return _0x46b674;}[a118_0x54f0d1(0x20c)](_0x5292eb,_0x314ab2,_0x526570,_0x44844d,_0x2e1c54,_0x2f2339){const _0x29b0e5=a118_0x54f0d1,_0x1795f4={'iougx':function(_0x9f4f07,_0x54911e){return _0x9f4f07===_0x54911e;},'YnuSj':_0x29b0e5(0x1f9),'aaVwD':function(_0x5766ae,_0x53600b,_0x392002){return _0x5766ae(_0x53600b,_0x392002);},'PnWzM':'sourceReference','qBLwC':_0x29b0e5(0x216),'MbOzH':'pending','fEwXi':'hook','tOMFk':_0x29b0e5(0x21a),'baHUp':_0x29b0e5(0x231),'UVLef':_0x29b0e5(0x201),'NmODI':function(_0x3f7920,_0x278530,_0x3654da){return _0x3f7920(_0x278530,_0x3654da);},'uJCAN':_0x29b0e5(0x1d2)};try{if(_0x1795f4[_0x29b0e5(0x235)](_0x526570,_0x1795f4['YnuSj'])){const _0x122382=new Date()[_0x29b0e5(0x232)](),_0x5c7c79=hooksMap[_0x314ab2];if(!_0x5c7c79)return;const _0x37c148=_0x5c7c79['find'](_0x553eb9=>_0x553eb9[_0x29b0e5(0x208)]===_0x44844d['id']);if(!_0x37c148)return;const _0xba7386=this[_0x29b0e5(0x218)](_0x5292eb,_0x314ab2);_0x37c148[_0x29b0e5(0x207)]=_0xba7386['status'],_0x37c148[_0x29b0e5(0x222)]=_0x122382,_0x37c148[_0x29b0e5(0x1f3)]=_0xba7386[_0x29b0e5(0x250)];const _0x202601={};return _0x202601[_0x29b0e5(0x1f4)]=_0xba7386[_0x29b0e5(0x227)],_0x37c148[_0x29b0e5(0x247)]=[_0x202601],_0x37c148;}const _0x7685d3=TestInfo['getTestUUID'](_0x314ab2),_0x857015=_0x5292eb[_0x29b0e5(0x242)]['find'](_0x54e3ec=>_0x54e3ec['id']===_0x44844d[_0x29b0e5(0x241)]),_0x5e25bb=_0x1795f4[_0x29b0e5(0x22f)](nestedKeyValue,_0x857015,[_0x1795f4[_0x29b0e5(0x1da)],_0x1795f4[_0x29b0e5(0x1d6)]]),_0x2049cf=new Date()[_0x29b0e5(0x232)](),_0xfc78cf=_0x1795f4[_0x29b0e5(0x24f)],_0x3c0b76=_0x857015[_0x29b0e5(0x21e)]?_0x857015[_0x29b0e5(0x21e)]['split']('\x20')[_0x29b0e5(0x236)](_0xc9194a=>_0xc9194a[_0x29b0e5(0x24a)]('@')):[],_0xa81034={'uuid':_0x44844d['id'],'type':_0x1795f4[_0x29b0e5(0x1e4)],'hook_type':_0x2f2339,'name':_0x857015['name'],'body':{'lang':_0x1795f4[_0x29b0e5(0x1df)],'code':null},'tags':_0x3c0b76,'test_run_id':_0x7685d3,'scope':_0x1795f4[_0x29b0e5(0x22f)](nestedKeyValue,_0x2e1c54,[_0x1795f4[_0x29b0e5(0x1ea)],_0x1795f4[_0x29b0e5(0x24e)]]),'scopes':[_0x1795f4[_0x29b0e5(0x22c)](nestedKeyValue,_0x2e1c54,[_0x1795f4[_0x29b0e5(0x1ea)],_0x1795f4[_0x29b0e5(0x24e)]])||''],'file_name':_0x5e25bb,'location':_0x5e25bb,'vc_filepath':this[_0x29b0e5(0x240)]?path['relative'](this[_0x29b0e5(0x240)],_0x5e25bb):null,'result':_0xfc78cf,'started_at':_0x2049cf,'framework':_0x1795f4[_0x29b0e5(0x213)]};return _0xa81034;}catch(_0x5c3722){logger[_0x29b0e5(0x203)]('Exception\x20in\x20getHookRunEventData:\x20'+util['format'](_0x5c3722)+'\x20');}}async[a118_0x54f0d1(0x256)](_0x387e79,_0x5bc838,_0x2dfe7d,_0x6ce2c0,_0x33dc22,_0x45c25e){const _0x42428a=a118_0x54f0d1,_0x58c7bb={'nCYJj':function(_0x29602c,_0x765841){return _0x29602c===_0x765841;},'lZMIC':_0x42428a(0x1d7),'WvQVs':function(_0xa3248d,_0x44ae65,_0x44e8fe){return _0xa3248d(_0x44ae65,_0x44e8fe);},'eKFGS':_0x42428a(0x22a),'EcdQR':_0x42428a(0x216),'IzqMX':'browserstack-node-agent/src/bin/cucumber-js/test.setup.js','onAbI':function(_0x58ac5c,_0x482ea4){return _0x58ac5c===_0x482ea4;},'VaQWH':_0x42428a(0x206)};try{const _0xb8bd11=_0x6ce2c0[_0x42428a(0x23f)](_0x4dd407=>_0x4dd407['id']===_0x33dc22);if(!_0xb8bd11[_0x42428a(0x241)])return;const _0x2341bf=this[_0x42428a(0x209)](_0x6ce2c0,_0xb8bd11),_0x5dd476=this[_0x42428a(0x20c)](_0x387e79,_0x5bc838,_0x2dfe7d,_0xb8bd11,_0x45c25e,_0x2341bf);if(!_0x5dd476)return;_0x58c7bb['nCYJj'](_0x2dfe7d,_0x58c7bb[_0x42428a(0x251)])&&(hooksMap[_0x5bc838]?hooksMap[_0x5bc838][_0x42428a(0x1eb)](_0x5dd476):hooksMap[_0x5bc838]=[_0x5dd476]);const _0x3498af=_0x387e79[_0x42428a(0x242)][_0x42428a(0x23f)](_0x59af1c=>_0x59af1c['id']===_0xb8bd11['hookId']),_0x1296d3=_0x58c7bb['WvQVs'](nestedKeyValue,_0x3498af,[_0x58c7bb[_0x42428a(0x20d)],_0x58c7bb[_0x42428a(0x1f7)]]);if(!_0x1296d3)return;else{if(_0x1296d3[_0x42428a(0x24a)](_0x58c7bb['IzqMX']))return;}if(_0x58c7bb[_0x42428a(0x1d8)](_0x5dd476[_0x42428a(0x201)],_0x58c7bb[_0x42428a(0x1e7)]))return;return _0x5dd476;}catch(_0x31f3c0){logger[_0x42428a(0x203)](_0x42428a(0x210)+util[_0x42428a(0x255)](_0x31f3c0)+'\x20');}}[a118_0x54f0d1(0x218)](_0x519d17,_0x2f21d7){const _0x4032dd=a118_0x54f0d1,_0x31fcbc={};_0x31fcbc[_0x4032dd(0x20f)]=function(_0xae2b,_0x3a1615){return _0xae2b===_0x3a1615;},_0x31fcbc[_0x4032dd(0x1fa)]='failed',_0x31fcbc[_0x4032dd(0x245)]=function(_0x1b4f03,_0x4c6fd1){return _0x1b4f03===_0x4c6fd1;},_0x31fcbc[_0x4032dd(0x1ec)]='UnhandledError',_0x31fcbc['NzdpV']='AssertionError',_0x31fcbc[_0x4032dd(0x1e6)]=function(_0x20925d,_0x2dda58){return _0x20925d||_0x2dda58;};const _0x142954=_0x31fcbc,_0x25030b=_0x519d17['testStepFinished'][_0x2f21d7]['testStepResult'];let _0x43ee0e,_0x4c526d;return _0x25030b&&_0x142954['TeUmv'](_0x25030b[_0x4032dd(0x1d3)][_0x4032dd(0x1f5)]()['toLowerCase'](),_0x142954['FWeuB'])&&(_0x43ee0e=_0x142954[_0x4032dd(0x20f)](_0x25030b[_0x4032dd(0x1f0)],undefined)?_0x25030b[_0x4032dd(0x23e)]:_0x25030b['exception'][_0x4032dd(0x23e)],_0x4c526d=_0x142954['qjLes'](_0x25030b[_0x4032dd(0x1f0)],undefined)?_0x142954['mIuPR']:_0x25030b['message']['match'](/Assert/)?_0x142954[_0x4032dd(0x254)]:_0x142954[_0x4032dd(0x1ec)]),{'status':_0x25030b[_0x4032dd(0x1d3)][_0x4032dd(0x1dd)](),'failureType':_0x142954[_0x4032dd(0x1e6)](_0x4c526d,null),'failureData':!_0x43ee0e?null:[_0x43ee0e]};}['getCucumberHookType'](_0x45323f,_0x9c2ed9){const _0x584cda=a118_0x54f0d1,_0x14c20a={};_0x14c20a['eCHJq']=function(_0x8d0f3b,_0x505f02){return _0x8d0f3b===_0x505f02;},_0x14c20a[_0x584cda(0x1e2)]=_0x584cda(0x204),_0x14c20a[_0x584cda(0x1fc)]=_0x584cda(0x24c);const _0x4001eb=_0x14c20a;let _0x456309=![];for(const _0x386867 of _0x45323f){_0x386867['pickleStepId']&&(_0x456309=!![]);if(_0x4001eb[_0x584cda(0x230)](_0x9c2ed9['id'],_0x386867['id']))return _0x456309?_0x4001eb[_0x584cda(0x1e2)]:_0x4001eb['XGtFm'];}}['getScenarioExamples']=(_0x3410f9,_0x1eb034)=>{const _0x5f303c=a118_0x54f0d1,_0x290ffb={};_0x290ffb[_0x5f303c(0x223)]=function(_0x2d80c8,_0x562672){return _0x2d80c8===_0x562672;},_0x290ffb[_0x5f303c(0x1d5)]=function(_0x94b0b6,_0x26553e){return _0x94b0b6>_0x26553e;};const _0x4a03b7=_0x290ffb;if(!(_0x1eb034[_0x5f303c(0x1f2)]&&_0x4a03b7[_0x5f303c(0x1d5)](_0x1eb034[_0x5f303c(0x1f2)][_0x5f303c(0x1ff)],0x1)))return;const _0x53591f=_0x1eb034[_0x5f303c(0x1f2)][0x0],_0x23be95=_0x1eb034['astNodeIds'][0x1],_0x3bb62d=_0x3410f9['feature']&&_0x3410f9['feature'][_0x5f303c(0x20b)]?_0x3410f9[_0x5f303c(0x231)][_0x5f303c(0x20b)]:undefined;let _0x77194=[];_0x3bb62d&&_0x3bb62d['forEach'](_0x780506=>{const _0x1c7cca=_0x5f303c,_0x30670e={'jHrSj':function(_0x5078f7,_0x1a3fdf){const _0xd216a=a118_0x525e;return _0x4a03b7[_0xd216a(0x223)](_0x5078f7,_0x1a3fdf);}};if(_0x780506['rule'])_0x780506['rule'][_0x1c7cca(0x20b)][_0x1c7cca(0x21b)](_0x4e5e1a=>{const _0x42d2bb=_0x1c7cca;if(_0x4e5e1a[_0x42d2bb(0x23a)]&&_0x30670e[_0x42d2bb(0x238)](_0x4e5e1a['scenario']['id'],_0x53591f)&&_0x4e5e1a[_0x42d2bb(0x23a)][_0x42d2bb(0x1ef)]){const _0x4c20de=_0x4e5e1a['scenario'][_0x42d2bb(0x1ef)][_0x42d2bb(0x1f6)](_0x4466e8=>_0x4466e8[_0x42d2bb(0x1fb)])[_0x42d2bb(0x23f)](_0x3c26e6=>_0x3c26e6['id']===_0x23be95);let _0x4dd755;_0x4c20de&&_0x4c20de[_0x42d2bb(0x1f1)]?_0x4dd755=_0x4c20de['cells'][_0x42d2bb(0x23c)](_0x5308af=>_0x5308af['value']):_0x4dd755=[],_0x4dd755&&(_0x77194=_0x4dd755);}});else{if(_0x780506['scenario']&&_0x4a03b7[_0x1c7cca(0x223)](_0x780506[_0x1c7cca(0x23a)]['id'],_0x53591f)&&_0x780506[_0x1c7cca(0x23a)][_0x1c7cca(0x1ef)]){const _0x84159b=_0x780506[_0x1c7cca(0x23a)][_0x1c7cca(0x1ef)]['flatMap'](_0x27d181=>_0x27d181['tableBody'])['find'](_0x110b42=>_0x110b42['id']===_0x23be95);let _0x1be2be;_0x84159b&&_0x84159b[_0x1c7cca(0x1f1)]?_0x1be2be=_0x84159b[_0x1c7cca(0x1f1)][_0x1c7cca(0x23c)](_0x4393d2=>_0x4393d2['value']):_0x1be2be=[],_0x1be2be&&(_0x77194=_0x1be2be);}}});if(_0x77194[_0x5f303c(0x1ff)])return _0x77194;return;};async[a118_0x54f0d1(0x237)](){const _0x54c903=a118_0x54f0d1,_0x402ee4={'zMXlV':function(_0xda0290){return _0xda0290();}};if(this[_0x54c903(0x217)])return this['_gitConfigPath'];const _0x4cf3c4=await _0x402ee4['zMXlV'](getGitMetaData);_0x4cf3c4&&(this['_gitConfigPath']=_0x4cf3c4[_0x54c903(0x20a)]),this['_gitConfigured']=!![];}}module[a118_0x54f0d1(0x211)]=o11yClassErrorHandler(CucumberUtils,[a118_0x54f0d1(0x237),a118_0x54f0d1(0x1e9),a118_0x54f0d1(0x209),a118_0x54f0d1(0x218),'sendHook',a118_0x54f0d1(0x20c),a118_0x54f0d1(0x233),a118_0x54f0d1(0x239)]);
|
|
1
|
+
function a118_0x34b0(){const _0x1449b2=['../TestInfo.js','JTpTe','Exception\x20in\x20createHookData:\x20','getTestUUID','pQZVl','duration_in_ms','toLowerCase','NllCV','backtrace','../../../helpers/logger.js','sendTestRunEventForCucumber','javascript','filter','uri','tEDdC','failure_reason','testStepFinished','Exception\x20in\x20getHookRunEventData:\x20','scenario','PzXnC','value','12151696SalWam','createHookData','forEach','QmwTa','getScenarioExamples','ESrXT','BpmQI','timestamp','XofUU','failureData','push','AFTER_EACH','message','failure_type','getCucumberHookType','ntrfY','1091106gGeZyX','1aqhutZ','168zAnRVr','HookRunFinished','../../../helpers/test-observability/error-handler.js','tozFW','lJCnS','cells','NPcfW','_gitConfigured','feature','tags','sourceReference','68484gfjniJ','cucumber','../../../helpers/helper.js','90feskRX','AssertionError','_gitConfigPath','HozEv','XeLeM','Ehybs','qedtk','jyEnO','RjEvX','getHookResult','find','YmpqA','map','6635825aUdMsL','examples','test','hookId','epzPC','rule','bsyxF','unknown','format','HookRunStarted','ElxZJ','debug','nDalR','passed','2293790TKWeGR','failure_data','exception','join','jyCLZ','split','lrQcB','createTestFrameworkData','result','fqjxS','astNodeIds','every','JEEYx','flatMap','length','finishedAt','failure','Dczhd','rphta','toISOString','pickleStepId','tagExpression','YwDmf','bstack','status','fBXtp','toString','JpaXr','nanos','dCvlF','failureType','children','tableBody','ARIzq','match','testCaseFinished','relative','path','PrqSV','pending','strip-ansi','dCOrh','sXlHz','includes','tBucm','8890532oxvafy','configureGit','name','SsETl','OjNZT','1412978gIRyyf','aRPff','TqmLd','rcWWH','failed','hooks'];a118_0x34b0=function(){return _0x1449b2;};return a118_0x34b0();}const a118_0x2ae370=a118_0x3950;function a118_0x3950(_0x5ca734,_0x617206){const _0x34b03c=a118_0x34b0();return a118_0x3950=function(_0x3950f9,_0x85064e){_0x3950f9=_0x3950f9-0x141;let _0xa122f4=_0x34b03c[_0x3950f9];return _0xa122f4;},a118_0x3950(_0x5ca734,_0x617206);}(function(_0x2425db,_0x252981){const _0x20ac23=a118_0x3950,_0x4a156c=_0x2425db();while(!![]){try{const _0x1dd5e0=parseInt(_0x20ac23(0x1a7))/0x1*(parseInt(_0x20ac23(0x17b))/0x2)+parseInt(_0x20ac23(0x1b3))/0x3*(-parseInt(_0x20ac23(0x1a8))/0x4)+parseInt(_0x20ac23(0x1c3))/0x5+parseInt(_0x20ac23(0x1a6))/0x6+-parseInt(_0x20ac23(0x176))/0x7+-parseInt(_0x20ac23(0x196))/0x8+-parseInt(_0x20ac23(0x1b6))/0x9*(-parseInt(_0x20ac23(0x149))/0xa);if(_0x1dd5e0===_0x252981)break;else _0x4a156c['push'](_0x4a156c['shift']());}catch(_0x5e8e15){_0x4a156c['push'](_0x4a156c['shift']());}}}(a118_0x34b0,0xb9e89));const path=require(a118_0x2ae370(0x16e)),util=require('util'),{getGitMetaData,isUndefined,nestedKeyValue}=require(a118_0x2ae370(0x1b5)),logger=require(a118_0x2ae370(0x18a))['winstonLogger'],{o11yClassErrorHandler}=require(a118_0x2ae370(0x1aa)),TestInfo=require(a118_0x2ae370(0x181)),hooksMap={};class CucumberUtils{constructor(){const _0x15e6a7=a118_0x2ae370;this['_gitConfigured']=![],this[_0x15e6a7(0x1b8)]=null;}async[a118_0x2ae370(0x150)](_0x40f740,_0x459afd,_0x1ad4e2,_0x5d1dd3,_0x36482a,_0x460d2e){const _0x4a56e4=a118_0x2ae370,_0x571991={'jyCLZ':function(_0x1fc63f,_0x1bd4d){return _0x1fc63f===_0x1bd4d;},'NPcfW':'FAILED','fqjxS':_0x4a56e4(0x17f),'nDalR':function(_0x5608cc,_0xfcdb39){return _0x5608cc===_0xfcdb39;},'YwDmf':'SKIPPED','qedtk':'skipped','BpmQI':function(_0x4a247e,_0x2ef6f7){return _0x4a247e||_0x2ef6f7;},'PzXnC':function(_0x133640,_0x22b1ee){return _0x133640+_0x22b1ee;},'LonrW':_0x4a56e4(0x1c5),'sHmZW':_0x4a56e4(0x18c),'ElxZJ':'cucumber','QmwTa':_0x4a56e4(0x170),'fBXtp':_0x4a56e4(0x148),'QzaJN':function(_0x37bf86,_0x1b6df8){return _0x37bf86!==_0x1b6df8;},'tozFW':function(_0x417696,_0x2e4b59){return _0x417696/_0x2e4b59;},'bKewf':function(_0x69f4,_0x226368){return _0x69f4===_0x226368;},'wQHJE':_0x4a56e4(0x171),'aRPff':function(_0x6858b9,_0xbd5645){return _0x6858b9(_0xbd5645);},'YmpqA':_0x4a56e4(0x142),'NllCV':_0x4a56e4(0x1b7),'Dczhd':'UnhandledError'},{feature:_0x5ee34b,scenario:_0x114cd1,steps:_0x509212,uuid:_0x2df84d,startedAt:_0xe64663,finishedAt:_0x2eade4}=_0x571991[_0x4a56e4(0x19c)](_0x40f740,{}),_0x5ce89=this[_0x4a56e4(0x19a)](_0x5d1dd3,_0x459afd);await this[_0x4a56e4(0x177)]();const _0x7c1a50=_0x5ce89?_0x571991[_0x4a56e4(0x194)](_0x571991[_0x4a56e4(0x194)](_0x571991[_0x4a56e4(0x194)](_0x459afd[_0x4a56e4(0x178)],'\x20('),_0x5ce89[_0x4a56e4(0x14c)](',\x20')),')'):_0x459afd[_0x4a56e4(0x178)],_0x5ccf32={'id':_0x36482a,'uuid':_0x36482a,'startedAt':_0xe64663,'finishedAt':_0x2eade4,'type':_0x571991['LonrW'],'body':{'lang':_0x571991['sHmZW'],'code':null},'name':_0x7c1a50,'scopes':[_0x5ee34b&&_0x5ee34b[_0x4a56e4(0x178)]?_0x5ee34b['name']:''],'tags':_0x459afd[_0x4a56e4(0x1b1)]?_0x459afd[_0x4a56e4(0x1b1)]['map'](({name:_0x573abd})=>_0x573abd):[],'file_name':_0x459afd[_0x4a56e4(0x18e)],'location':_0x459afd['uri'],'vc_filepath':this[_0x4a56e4(0x1b8)]&&_0x459afd[_0x4a56e4(0x18e)]?path[_0x4a56e4(0x16d)](this[_0x4a56e4(0x1b8)],_0x459afd['uri']):null,'framework':_0x571991[_0x4a56e4(0x145)],'result':_0x571991[_0x4a56e4(0x199)],'meta':{'feature':_0x5ee34b,'scenario':_0x114cd1,'steps':_0x509212,'examples':_0x5ce89},'customRerunParam':{'rerun_name':_0x7c1a50}};if(_0x1ad4e2[_0x4a56e4(0x16c)]&&_0x509212){const _0xe41cc2=_0x1ad4e2[_0x4a56e4(0x16c)];let _0x2b2ce4=_0x571991[_0x4a56e4(0x162)];_0x509212[_0x4a56e4(0x154)](_0x54bb7d=>{const _0x445809=_0x4a56e4;if(_0x571991[_0x445809(0x14d)](_0x54bb7d[_0x445809(0x151)],_0x571991[_0x445809(0x1ae)]))return _0x2b2ce4=_0x571991[_0x445809(0x152)],_0xe41cc2['failure']=_0x54bb7d[_0x445809(0x159)],_0xe41cc2[_0x445809(0x167)]=_0x54bb7d[_0x445809(0x167)],![];else{if(_0x571991[_0x445809(0x147)](_0x54bb7d[_0x445809(0x151)],_0x571991[_0x445809(0x15f)]))return _0x2b2ce4=_0x571991[_0x445809(0x1bc)],![];}return!![];}),_0x5ccf32[_0x4a56e4(0x158)]=new Date()['toISOString'](),_0x5ccf32[_0x4a56e4(0x151)]=_0x2b2ce4;_0xe41cc2[_0x4a56e4(0x19d)]&&_0x571991['QzaJN'](_0xe41cc2[_0x4a56e4(0x19d)][_0x4a56e4(0x165)],undefined)?_0x5ccf32[_0x4a56e4(0x186)]=_0x571991[_0x4a56e4(0x1ab)](_0xe41cc2[_0x4a56e4(0x19d)][_0x4a56e4(0x165)],0xf4240):_0x5ccf32[_0x4a56e4(0x186)]=undefined;if(_0x571991['bKewf'](_0x2b2ce4,_0x571991[_0x4a56e4(0x152)])){const {default:_0x4f2bf1}=await import(_0x571991['wQHJE']);_0x5ccf32[_0x4a56e4(0x159)]=[{'backtrace':[_0xe41cc2['failure']?_0x571991[_0x4a56e4(0x17c)](_0x4f2bf1,_0xe41cc2[_0x4a56e4(0x159)]):_0x571991[_0x4a56e4(0x1c1)]]}],_0x5ccf32[_0x4a56e4(0x190)]=_0xe41cc2['failure']?_0x571991['aRPff'](_0x4f2bf1,_0xe41cc2[_0x4a56e4(0x159)]):_0xe41cc2['message'],_0xe41cc2[_0x4a56e4(0x167)]&&(_0x5ccf32[_0x4a56e4(0x1a3)]=_0xe41cc2[_0x4a56e4(0x167)][_0x4a56e4(0x16b)](/AssertError/)?_0x571991[_0x4a56e4(0x188)]:_0x571991[_0x4a56e4(0x15a)]);}}return _0x5ccf32;}['getHookRunEventData'](_0x1a6793,_0x41da34,_0x3d8c97,_0x46ed2a,_0x257ad7,_0x24cbc0){const _0x41acb1=a118_0x2ae370,_0x11ecf4={'bsyxF':function(_0x4ad2fb,_0x54f205){return _0x4ad2fb===_0x54f205;},'pQZVl':_0x41acb1(0x1a9),'lrQcB':function(_0x3d946e,_0x290bcd,_0x2ab617){return _0x3d946e(_0x290bcd,_0x2ab617);},'HozEv':_0x41acb1(0x1b2),'ESrXT':_0x41acb1(0x18e),'pwwDs':_0x41acb1(0x170),'TqmLd':'hook','PrqSV':_0x41acb1(0x18c),'lJCnS':_0x41acb1(0x1b0),'NcwZL':_0x41acb1(0x178),'ARIzq':function(_0x22451a,_0x27e817,_0x508c0a){return _0x22451a(_0x27e817,_0x508c0a);},'Fybhu':_0x41acb1(0x1b4)};try{if(_0x11ecf4[_0x41acb1(0x141)](_0x3d8c97,_0x11ecf4[_0x41acb1(0x185)])){const _0x29b238=new Date()[_0x41acb1(0x15c)](),_0x5bfb5b=hooksMap[_0x41da34];if(!_0x5bfb5b)return;const _0x1a99a9=_0x5bfb5b[_0x41acb1(0x1c0)](_0x59c399=>_0x59c399['uuid']===_0x46ed2a['id']);if(!_0x1a99a9)return;const _0x1fce63=this['getHookResult'](_0x1a6793,_0x41da34);_0x1a99a9[_0x41acb1(0x151)]=_0x1fce63[_0x41acb1(0x161)],_0x1a99a9['finished_at']=_0x29b238,_0x1a99a9[_0x41acb1(0x1a3)]=_0x1fce63[_0x41acb1(0x167)];const _0x29db98={};return _0x29db98[_0x41acb1(0x189)]=_0x1fce63[_0x41acb1(0x19f)],_0x1a99a9[_0x41acb1(0x14a)]=[_0x29db98],_0x1a99a9;}const _0x1488e9=TestInfo[_0x41acb1(0x184)](_0x41da34),_0x172263=_0x1a6793[_0x41acb1(0x180)][_0x41acb1(0x1c0)](_0x3c966f=>_0x3c966f['id']===_0x46ed2a['hookId']),_0x266dc0=_0x11ecf4[_0x41acb1(0x14f)](nestedKeyValue,_0x172263,[_0x11ecf4[_0x41acb1(0x1b9)],_0x11ecf4[_0x41acb1(0x19b)]]),_0x1b0c4d=new Date()[_0x41acb1(0x15c)](),_0xb20965=_0x11ecf4['pwwDs'],_0x4defec=_0x172263[_0x41acb1(0x15e)]?_0x172263[_0x41acb1(0x15e)][_0x41acb1(0x14e)]('\x20')[_0x41acb1(0x18d)](_0x5968e6=>_0x5968e6[_0x41acb1(0x174)]('@')):[],_0x5a3942={'uuid':_0x46ed2a['id'],'type':_0x11ecf4[_0x41acb1(0x17d)],'hook_type':_0x24cbc0,'name':_0x172263[_0x41acb1(0x178)],'body':{'lang':_0x11ecf4[_0x41acb1(0x16f)],'code':null},'tags':_0x4defec,'test_run_id':_0x1488e9,'scope':_0x11ecf4['lrQcB'](nestedKeyValue,_0x257ad7,[_0x11ecf4[_0x41acb1(0x1ac)],_0x11ecf4['NcwZL']]),'scopes':[_0x11ecf4[_0x41acb1(0x16a)](nestedKeyValue,_0x257ad7,[_0x11ecf4[_0x41acb1(0x1ac)],_0x11ecf4['NcwZL']])||''],'file_name':_0x266dc0,'location':_0x266dc0,'vc_filepath':this[_0x41acb1(0x1b8)]?path['relative'](this['_gitConfigPath'],_0x266dc0):null,'result':_0xb20965,'started_at':_0x1b0c4d,'framework':_0x11ecf4['Fybhu']};return _0x5a3942;}catch(_0x5559e0){logger['debug'](_0x41acb1(0x192)+util[_0x41acb1(0x143)](_0x5559e0)+'\x20');}}async[a118_0x2ae370(0x197)](_0x2b5748,_0x122ca0,_0x567807,_0x15a81a,_0x19aa11,_0x20f0e7){const _0x38d80b=a118_0x2ae370,_0x330495={'sXlHz':function(_0x3087dd,_0x41ba8e){return _0x3087dd===_0x41ba8e;},'JTpTe':_0x38d80b(0x144),'tEDdC':function(_0x50c917,_0x3086e5,_0x13ae52){return _0x50c917(_0x3086e5,_0x13ae52);},'jyEnO':'sourceReference','RjEvX':_0x38d80b(0x18e),'OjNZT':'browserstack-node-agent/src/bin/cucumber-js/test.setup.js','uDaOC':function(_0x5b7f25,_0x244b31){return _0x5b7f25===_0x244b31;},'nDsaO':_0x38d80b(0x160)};try{const _0xf18918=_0x15a81a[_0x38d80b(0x1c0)](_0x3e254b=>_0x3e254b['id']===_0x19aa11);if(!_0xf18918[_0x38d80b(0x1c6)])return;const _0x192dcc=this[_0x38d80b(0x1a4)](_0x15a81a,_0xf18918),_0x579955=this['getHookRunEventData'](_0x2b5748,_0x122ca0,_0x567807,_0xf18918,_0x20f0e7,_0x192dcc);if(!_0x579955)return;_0x330495[_0x38d80b(0x173)](_0x567807,_0x330495[_0x38d80b(0x182)])&&(hooksMap[_0x122ca0]?hooksMap[_0x122ca0][_0x38d80b(0x1a0)](_0x579955):hooksMap[_0x122ca0]=[_0x579955]);const _0x429d36=_0x2b5748[_0x38d80b(0x180)]['find'](_0x1c9f0b=>_0x1c9f0b['id']===_0xf18918['hookId']),_0x26fa26=_0x330495[_0x38d80b(0x18f)](nestedKeyValue,_0x429d36,[_0x330495[_0x38d80b(0x1bd)],_0x330495[_0x38d80b(0x1be)]]);if(!_0x26fa26)return;else{if(_0x26fa26['includes'](_0x330495[_0x38d80b(0x17a)]))return;}if(_0x330495['uDaOC'](_0x579955[_0x38d80b(0x178)],_0x330495['nDsaO']))return;return _0x579955;}catch(_0x2194fe){logger[_0x38d80b(0x146)](_0x38d80b(0x183)+util[_0x38d80b(0x143)](_0x2194fe)+'\x20');}}[a118_0x2ae370(0x1bf)](_0x1859d4,_0x627032){const _0x35972e=a118_0x2ae370,_0x4831d6={};_0x4831d6[_0x35972e(0x166)]=function(_0x556606,_0x35bd5d){return _0x556606===_0x35bd5d;},_0x4831d6[_0x35972e(0x1ba)]=_0x35972e(0x17f),_0x4831d6[_0x35972e(0x19e)]=function(_0x17daa1,_0xc93ab0){return _0x17daa1===_0xc93ab0;},_0x4831d6[_0x35972e(0x164)]='UnhandledError',_0x4831d6[_0x35972e(0x155)]='AssertionError',_0x4831d6[_0x35972e(0x17e)]=function(_0x433b8b,_0x340202){return _0x433b8b||_0x340202;};const _0x1c8842=_0x4831d6,_0x34701c=_0x1859d4[_0x35972e(0x191)][_0x627032]['testStepResult'];let _0x189705,_0x1392aa;return _0x34701c&&_0x1c8842[_0x35972e(0x166)](_0x34701c['status'][_0x35972e(0x163)]()[_0x35972e(0x187)](),_0x1c8842[_0x35972e(0x1ba)])&&(_0x189705=_0x1c8842[_0x35972e(0x166)](_0x34701c['exception'],undefined)?_0x34701c[_0x35972e(0x1a2)]:_0x34701c['exception'][_0x35972e(0x1a2)],_0x1392aa=_0x1c8842[_0x35972e(0x19e)](_0x34701c[_0x35972e(0x14b)],undefined)?_0x1c8842[_0x35972e(0x164)]:_0x34701c[_0x35972e(0x1a2)][_0x35972e(0x16b)](/Assert/)?_0x1c8842[_0x35972e(0x155)]:_0x1c8842[_0x35972e(0x164)]),{'status':_0x34701c[_0x35972e(0x161)][_0x35972e(0x187)](),'failureType':_0x1c8842[_0x35972e(0x17e)](_0x1392aa,null),'failureData':!_0x189705?null:[_0x189705]};}['getCucumberHookType'](_0x532b2e,_0x456aaf){const _0x680e9c=a118_0x2ae370,_0x4db30b={};_0x4db30b[_0x680e9c(0x15b)]=function(_0x172418,_0x174ec2){return _0x172418===_0x174ec2;},_0x4db30b[_0x680e9c(0x1bb)]=_0x680e9c(0x1a1),_0x4db30b[_0x680e9c(0x172)]='BEFORE_EACH';const _0x269a98=_0x4db30b;let _0x1b740f=![];for(const _0x58bc5a of _0x532b2e){_0x58bc5a[_0x680e9c(0x15d)]&&(_0x1b740f=!![]);if(_0x269a98[_0x680e9c(0x15b)](_0x456aaf['id'],_0x58bc5a['id']))return _0x1b740f?_0x269a98[_0x680e9c(0x1bb)]:_0x269a98[_0x680e9c(0x172)];}}['getScenarioExamples']=(_0x29125f,_0x3b9bc2)=>{const _0x124885=a118_0x2ae370,_0x3c83b5={};_0x3c83b5['ntrfY']=function(_0x72d9e5,_0x515ddf){return _0x72d9e5===_0x515ddf;},_0x3c83b5[_0x124885(0x175)]=function(_0x2b99ae,_0x3b59c7){return _0x2b99ae===_0x3b59c7;},_0x3c83b5['SsETl']=function(_0x764779,_0x2227d7){return _0x764779>_0x2227d7;};const _0x31be24=_0x3c83b5;if(!(_0x3b9bc2[_0x124885(0x153)]&&_0x31be24[_0x124885(0x179)](_0x3b9bc2[_0x124885(0x153)][_0x124885(0x157)],0x1)))return;const _0x397cc7=_0x3b9bc2[_0x124885(0x153)][0x0],_0x1fa721=_0x3b9bc2['astNodeIds'][0x1],_0x1b1b4e=_0x29125f['feature']&&_0x29125f['feature'][_0x124885(0x168)]?_0x29125f[_0x124885(0x1b0)][_0x124885(0x168)]:undefined;let _0xa25beb=[];_0x1b1b4e&&_0x1b1b4e[_0x124885(0x198)](_0x251632=>{const _0x309bf2=_0x124885;if(_0x251632[_0x309bf2(0x1c8)])_0x251632['rule'][_0x309bf2(0x168)][_0x309bf2(0x198)](_0x2bd972=>{const _0x516ff2=_0x309bf2;if(_0x2bd972['scenario']&&_0x31be24[_0x516ff2(0x1a5)](_0x2bd972[_0x516ff2(0x193)]['id'],_0x397cc7)&&_0x2bd972[_0x516ff2(0x193)][_0x516ff2(0x1c4)]){const _0x5775fd=_0x2bd972['scenario'][_0x516ff2(0x1c4)][_0x516ff2(0x156)](_0xf152e6=>_0xf152e6[_0x516ff2(0x169)])[_0x516ff2(0x1c0)](_0x3a3c0d=>_0x3a3c0d['id']===_0x1fa721);let _0x13ecd1;_0x5775fd&&_0x5775fd[_0x516ff2(0x1ad)]?_0x13ecd1=_0x5775fd[_0x516ff2(0x1ad)][_0x516ff2(0x1c2)](_0x1de216=>_0x1de216['value']):_0x13ecd1=[],_0x13ecd1&&(_0xa25beb=_0x13ecd1);}});else{if(_0x251632[_0x309bf2(0x193)]&&_0x31be24[_0x309bf2(0x175)](_0x251632['scenario']['id'],_0x397cc7)&&_0x251632[_0x309bf2(0x193)][_0x309bf2(0x1c4)]){const _0x8c4472=_0x251632[_0x309bf2(0x193)]['examples'][_0x309bf2(0x156)](_0x41aee2=>_0x41aee2[_0x309bf2(0x169)])['find'](_0x3fbb0e=>_0x3fbb0e['id']===_0x1fa721);let _0x3dc939;_0x8c4472&&_0x8c4472['cells']?_0x3dc939=_0x8c4472[_0x309bf2(0x1ad)]['map'](_0xf8aa1b=>_0xf8aa1b[_0x309bf2(0x195)]):_0x3dc939=[],_0x3dc939&&(_0xa25beb=_0x3dc939);}}});if(_0xa25beb[_0x124885(0x157)])return _0xa25beb;return;};async[a118_0x2ae370(0x177)](){const _0x1e75e4=a118_0x2ae370,_0x23cf0b={'epzPC':function(_0x5a1753){return _0x5a1753();}};if(this['_gitConfigured'])return this['_gitConfigPath'];const _0x2e05e9=await _0x23cf0b[_0x1e75e4(0x1c7)](getGitMetaData);_0x2e05e9&&(this['_gitConfigPath']=_0x2e05e9['root']),this[_0x1e75e4(0x1af)]=!![];}}module['exports']=o11yClassErrorHandler(CucumberUtils,['configureGit',a118_0x2ae370(0x19a),a118_0x2ae370(0x1a4),a118_0x2ae370(0x1bf),'sendHook','getHookRunEventData',a118_0x2ae370(0x18b),a118_0x2ae370(0x150)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a119_0xabd8(_0xc2fdf1,_0x34f197){const _0x5a27db=a119_0x5a27();return a119_0xabd8=function(_0xabd882,_0x21e47b){_0xabd882=_0xabd882-0x14f;let _0x476208=_0x5a27db[_0xabd882];return _0x476208;},a119_0xabd8(_0xc2fdf1,_0x34f197);}const a119_0x33ff17=a119_0xabd8;(function(_0x5af0af,_0x21850d){const _0x15d99d=a119_0xabd8,_0x13627c=_0x5af0af();while(!![]){try{const _0x3cb690=parseInt(_0x15d99d(0x1a3))/0x1*(parseInt(_0x15d99d(0x185))/0x2)+-parseInt(_0x15d99d(0x1c2))/0x3+parseInt(_0x15d99d(0x1b4))/0x4*(parseInt(_0x15d99d(0x200))/0x5)+parseInt(_0x15d99d(0x170))/0x6+parseInt(_0x15d99d(0x15e))/0x7+-parseInt(_0x15d99d(0x1f2))/0x8*(parseInt(_0x15d99d(0x1bf))/0x9)+parseInt(_0x15d99d(0x1ae))/0xa*(-parseInt(_0x15d99d(0x153))/0xb);if(_0x3cb690===_0x21850d)break;else _0x13627c['push'](_0x13627c['shift']());}catch(_0x3b56ff){_0x13627c['push'](_0x13627c['shift']());}}}(a119_0x5a27,0xcc8c9));const path=require(a119_0x33ff17(0x1b8)),util=require('util'),crypto=require('crypto'),{getGitMetaData,isUndefined,nestedKeyValue}=require(a119_0x33ff17(0x16c)),logger=require('../../../helpers/logger.js')['winstonLogger'],{o11yClassErrorHandler}=require(a119_0x33ff17(0x1ab)),TestInfo=require(a119_0x33ff17(0x186)),{failureData,getFailureType,PathHelper}=require(a119_0x33ff17(0x1fd)),stackTrace=require(a119_0x33ff17(0x1c0)),{pickUserFrameFile}=require('../../../helpers/stackFrameUtils'),a119_0x18dedc={};a119_0x18dedc[a119_0x33ff17(0x1f5)]=a119_0x33ff17(0x1c7),a119_0x18dedc[a119_0x33ff17(0x15c)]=a119_0x33ff17(0x18e),a119_0x18dedc['beforeEach']='BEFORE_EACH',a119_0x18dedc[a119_0x33ff17(0x187)]=a119_0x33ff17(0x17f);const HOOK_TYPES_MAP=a119_0x18dedc,hooksMap={};function a119_0x5a27(){const _0x1f40fc=['hooks','1818WMOzSR','stack-trace','getFileName','1922076bWlduH','DzDca','currentTest','zVAsX','RFyVa','BEFORE_ALL','iFCAm','TestRunFinished','passed','skipped','rGmoZ','asyncError','yQPkZ','format','parse','md5','_paths','match','GkGIS','isJestInternalHook','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation','digest','URtCv','gEgAa','expanded','Wllen','RONVL','name','Exception\x20in\x20createTestFrameworkData:\x20','IxpCA','extractTestFilePath','now','testPath','SohKZ','retryOf','uuid','jest','failure','getHierarchy','apply','__jestCurrentTestIdentifier','dikrU','NWGvj','jSVjt','parent','_gitConfigPath','ZowaH','MwZtj','9320VQEHAG','find','toISOString','beforeAll','bAhQb',',\x20hookUUID:\x20',':jest-','rmWos','failure_data','file','createJestTestIdentifier','../../../helpers/test-observability/utils','yCWjA','getTestIdentifier','5TUrJoF','OVTGn','gZJFQ','jsdKO','split','jest-circus','recreateIdentifierFromTestInfo','File\x20path\x20could\x20not\x20be\x20found','pending','BIEla','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','KOPOF','xzglh','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','9578503fYoSOz','call','[jestUtils]\x20Created\x20identifier:\x20','hex','prefixTestPath','__workerDetails','eMAsb','dRfYu','[jestUtils]\x20pickUserFrameFile\x20found\x20no\x20user\x20frame\x20(trace\x20length=','afterAll','jEYIq','8277976NMunbN','update','createHookData','uPtej','displayName','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','dVMKK','test','FrGKw','failed','result','ROOT_DESCRIBE_BLOCK','_gitConfigured','testIdentifier','../../../helpers/helper.js','gIwHX','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','substring','7363440gXNAvy','vXIBR','njkRa','lwsrl','Unknown\x20Test','OFWzo','duration','javascript','xZjiN','finishedAt','clearHooksMap','pid','PPXnW','configureGit','toString','AFTER_EACH','testAnalyticsId','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','Mhgcp','hPRDg','debug','2oWBLYf','../TestInfo.js','afterEach','includes','inspect','fooBV','TestRunSkipped','xGNWV','DMEsJ','AFTER_ALL','cwd','wTiLl','unknown','huIoq','createHash','HJJRw','getHookRunEventData','failure_reason','Qspbv','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','VUhyA','SylDy','GNuFw','hook','browserstack-node-agent/src/bin/jest','pkHQN','err','startedAt','XDQkO','\x22\x20hook\x20for\x20\x22','1612841qJhdmT','failure_reason_expanded','getName','length','fullName','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','getRootParentFile','errors','../../../helpers/test-observability/error-handler.js','errorsDetailed','failure_type','30TdORwe','getState','fyteq','\x20from\x20compositeKey:\x20','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','createTestFrameworkData','1214100yosLJi','zdWus','type','createIdentifierFromJestTest','path','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','FNNxB','started_at','stack','title'];a119_0x5a27=function(){return _0x1f40fc;};return a119_0x5a27();}class JestUtils{constructor(){const _0x55d82e=a119_0x33ff17;this[_0x55d82e(0x16a)]=![],this[_0x55d82e(0x1ef)]=null,this[_0x55d82e(0x1d2)]=new PathHelper({'cwd':process[_0x55d82e(0x18f)]()},undefined);}async[a119_0x33ff17(0x1b3)](_0x3b2e85,_0x205a23,_0x1393b8='TestRunFinished',_0x2119a1=undefined){const _0x37afae=a119_0x33ff17,_0x2273eb={'fooBV':_0x37afae(0x163),'pkHQN':_0x37afae(0x205),'kGkPX':_0x37afae(0x207),'NWGvj':function(_0x362c2d,_0x19b53f){return _0x362c2d!==_0x19b53f;},'iFCAm':'test','yQPkZ':function(_0x44e5f1,_0x3e6d17){return _0x44e5f1!==_0x3e6d17;},'beKks':_0x37afae(0x19f),'Wllen':function(_0x297dc9,_0x2a58e7){return _0x297dc9!==_0x2a58e7;},'DiueQ':_0x37afae(0x208),'xVtYz':function(_0x1cfc0b,_0x5aeb44){return _0x1cfc0b===_0x5aeb44;},'BIEla':_0x37afae(0x18b),'Qspbv':_0x37afae(0x1cb),'eMAsb':_0x37afae(0x1c9),'PPXnW':function(_0x569288,_0x25e3fb){return _0x569288>_0x25e3fb;},'yCWjA':_0x37afae(0x167),'ZowaH':_0x37afae(0x1ca),'bAhQb':function(_0x267a97,_0x2eed2f){return _0x267a97-_0x2eed2f;},'YfOnL':_0x37afae(0x177),'vXIBR':function(_0x2b8c4a,_0x4ae7a3){return _0x2b8c4a>_0x4ae7a3;},'Mhgcp':_0x37afae(0x1e6),'HJJRw':function(_0x4b2c62,_0x55649e){return _0x4b2c62(_0x55649e);},'xGNWV':function(_0x103cc5,_0x4d1b8b){return _0x103cc5===_0x4d1b8b;},'PEZHX':function(_0x2ea8d3,_0x2ae335){return _0x2ea8d3===_0x2ae335;},'IxpCA':function(_0x19fe78,_0x299417){return _0x19fe78===_0x299417;}};logger[_0x37afae(0x184)]('Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20'+_0x1393b8+',\x20testIdentifier:\x20'+_0x205a23);try{if(!_0x3b2e85)return logger[_0x37afae(0x184)](_0x2273eb[_0x37afae(0x18a)]),null;if(_0x3b2e85['fn']&&_0x3b2e85['fn'][_0x37afae(0x17e)]()[_0x37afae(0x1d3)](/browserstack internal helper hook/))return null;await this[_0x37afae(0x17d)]();let _0x500aa6;try{_0x500aa6=this[_0x37afae(0x1a9)](_0x3b2e85);if(_0x500aa6&&_0x500aa6[_0x37afae(0x188)](_0x2273eb[_0x37afae(0x19e)]))return null;}catch(_0x151a5a){logger[_0x37afae(0x184)](_0x37afae(0x1b2)+util[_0x37afae(0x1cf)](_0x151a5a)),_0x500aa6=null;}const _0x2c1a25=this[_0x37afae(0x1e8)](_0x3b2e85),_0x295e19=this[_0x37afae(0x1a5)](_0x3b2e85),_0x636d76=_0x500aa6?this[_0x37afae(0x1d2)][_0x37afae(0x157)](_0x500aa6):_0x2273eb['kGkPX'];let _0xe2af6=[];const _0x5bedf6=_0x3b2e85[_0x37afae(0x1ac)]||_0x3b2e85[_0x37afae(0x1aa)];if(_0x2273eb['NWGvj'](_0x5bedf6,undefined))_0xe2af6=[_0x5bedf6,_0x2273eb[_0x37afae(0x1c8)]];else _0x2273eb[_0x37afae(0x1ce)](_0x2119a1,undefined)&&(_0xe2af6=[_0x2119a1,_0x2273eb['beKks']]);const _0x2f9b3d=_0x2273eb[_0x37afae(0x1ec)](_0x5bedf6,undefined)?util[_0x37afae(0x189)](_0x5bedf6[0x0]):_0x2273eb['Wllen'](_0x2119a1,undefined)?_0x2119a1['toString']():undefined;let _0x30af81=_0x2273eb['DiueQ'];if(_0x2273eb['xVtYz'](_0x1393b8,_0x2273eb[_0x37afae(0x209)]))_0x30af81=_0x2273eb[_0x37afae(0x197)];else _0x2273eb['xVtYz'](_0x1393b8,_0x2273eb[_0x37afae(0x159)])&&(_0x5bedf6&&_0x2273eb[_0x37afae(0x17c)](_0x5bedf6[_0x37afae(0x1a6)],0x0)?_0x30af81=_0x2273eb[_0x37afae(0x1fe)]:_0x30af81=_0x2273eb[_0x37afae(0x1f0)]);let _0x35f170=null;if(_0x2273eb[_0x37afae(0x1db)](_0x3b2e85['duration'],undefined))_0x35f170=_0x3b2e85[_0x37afae(0x176)];else(_0x1393b8['match'](/Finished/)||_0x1393b8[_0x37afae(0x1d3)](/Skipped/))&&(_0x3b2e85['started_at']&&(_0x35f170=_0x2273eb[_0x37afae(0x1f6)](Date[_0x37afae(0x1e1)](),new Date(_0x3b2e85[_0x37afae(0x1bb)])['getTime']())));const _0x9242d4=_0x3b2e85['fn']?_0x3b2e85['fn'][_0x37afae(0x17e)]():null,_0xf1a88f={'id':_0x205a23,'uuid':_0x205a23,'startedAt':_0x3b2e85[_0x37afae(0x1bb)]||new Date()['toISOString'](),'finishedAt':_0x1393b8[_0x37afae(0x1d3)](/Finished/)||_0x1393b8[_0x37afae(0x1d3)](/Skipped/)?new Date()[_0x37afae(0x1f4)]():null,'type':_0x2273eb[_0x37afae(0x1c8)],'body':{'lang':_0x2273eb['YfOnL'],'code':_0x9242d4},'name':_0x295e19,'errorsDetailed':_0x2273eb[_0x37afae(0x171)](_0x5bedf6?.[_0x37afae(0x1a6)],0x0)?_0x5bedf6[0x0]:_0x5bedf6?_0x5bedf6:undefined,'scopes':_0x2c1a25,'file_name':_0x636d76,'location':_0x636d76,'vc_filepath':this['_gitConfigPath']&&_0x500aa6?path['relative'](this[_0x37afae(0x1ef)],_0x500aa6):null,'framework':_0x2273eb[_0x37afae(0x182)],'result':_0x30af81,'failure_reason':_0x2f9b3d,'duration_in_ms':_0x35f170,'failure':failureData[_0x37afae(0x1e9)](null,_0xe2af6),'failure_type':!_0x2f9b3d?null:_0x2273eb[_0x37afae(0x194)](getFailureType,_0x2f9b3d),'retry_of':_0x3b2e85[_0x37afae(0x1e4)]||null,'customRerunParam':{'rerun_name':_0x295e19}};_0x2273eb[_0x37afae(0x18c)](_0x1393b8,_0x2273eb[_0x37afae(0x209)])&&!_0xf1a88f[_0x37afae(0x1a0)]&&(_0xf1a88f[_0x37afae(0x1a0)]=_0xf1a88f[_0x37afae(0x179)]);const _0x581afe=_0xf1a88f['failure']&&_0xf1a88f[_0x37afae(0x1e7)][0x0];return _0x581afe&&(_0xf1a88f['failure_backtrace']=_0x581afe['backtrace'],_0xf1a88f[_0x37afae(0x1a4)]=_0x581afe[_0x37afae(0x1da)]),(_0x2273eb['PEZHX'](_0x1393b8,_0x2273eb[_0x37afae(0x159)])||_0x2273eb[_0x37afae(0x1df)](_0x1393b8,_0x2273eb['BIEla']))&&(_0x3b2e85['hooks']&&(_0xf1a88f[_0x37afae(0x1be)]=_0x3b2e85[_0x37afae(0x1be)])),_0xf1a88f;}catch(_0x186f3e){return logger[_0x37afae(0x184)](_0x37afae(0x1de)+util['format'](_0x186f3e)),null;}}async[a119_0x33ff17(0x160)](_0x15b527,_0x10a94a,_0x3d6856,_0x3c2c74){const _0xcd8cbf=a119_0x33ff17,_0x5d1580={'adrME':_0xcd8cbf(0x181),'GNuFw':_0xcd8cbf(0x205),'gIwHX':_0xcd8cbf(0x19d),'zdWus':_0xcd8cbf(0x191),'xzglh':_0xcd8cbf(0x208),'DMEsJ':function(_0x260109,_0x237c4c){return _0x260109===_0x237c4c;},'zVAsX':'HookRunFinished','lwsrl':function(_0x37a51b,_0x5e4d40){return _0x37a51b>_0x5e4d40;},'dRfYu':_0xcd8cbf(0x167),'RONVL':function(_0x4e490a,_0x48d5d4){return _0x4e490a(_0x48d5d4);},'gZJFQ':_0xcd8cbf(0x165),'URtCv':'passed','UmQrO':_0xcd8cbf(0x19c),'RFyVa':_0xcd8cbf(0x177),'jEYIq':'jest','rmWos':'HookRunStarted'};logger[_0xcd8cbf(0x184)]('Creating\x20hook\x20data\x20for\x20eventType:\x20'+_0x3d6856+_0xcd8cbf(0x1f7)+_0x10a94a+',\x20testRunId:\x20'+_0x3c2c74);try{if(!_0x15b527)return logger[_0xcd8cbf(0x184)](_0x5d1580['adrME']),null;if(this[_0xcd8cbf(0x1d5)](_0x15b527))return null;await this['configureGit']();let _0x43ae08=null;try{_0x43ae08=this[_0xcd8cbf(0x1a9)](_0x15b527);if(_0x43ae08&&_0x43ae08[_0xcd8cbf(0x188)](_0x5d1580[_0xcd8cbf(0x19b)]))return null;if(_0x43ae08&&_0x43ae08[_0xcd8cbf(0x188)](_0x5d1580[_0xcd8cbf(0x16d)]))return null;}catch(_0x15fe19){logger[_0xcd8cbf(0x184)](_0xcd8cbf(0x152)+util[_0xcd8cbf(0x1cf)](_0x15fe19));}const _0x1e4dd4=_0x43ae08?this[_0xcd8cbf(0x1d2)][_0xcd8cbf(0x157)](_0x43ae08):_0x43ae08,_0xe10e=this[_0xcd8cbf(0x1a5)](_0x15b527),_0x4ca79a=_0x15b527[_0xcd8cbf(0x1b6)]||_0x5d1580[_0xcd8cbf(0x1b5)],_0x576490=HOOK_TYPES_MAP[_0x4ca79a]||_0x4ca79a['toUpperCase'](),_0x18fe8b=_0x15b527['parent']&&_0x15b527['parent'][_0xcd8cbf(0x1dd)]?_0x15b527[_0xcd8cbf(0x1ee)][_0xcd8cbf(0x1dd)]:'';let _0x4eb325=_0x5d1580[_0xcd8cbf(0x151)],_0x1d23ca=null,_0x22896f=null,_0x3f337d=null,_0x5cc61c=null;_0x5d1580[_0xcd8cbf(0x18d)](_0x3d6856,_0x5d1580[_0xcd8cbf(0x1c5)])&&(_0x5cc61c=new Date()[_0xcd8cbf(0x1f4)](),_0x15b527[_0xcd8cbf(0x1ac)]&&_0x5d1580[_0xcd8cbf(0x173)](_0x15b527['errorsDetailed'][_0xcd8cbf(0x1a6)],0x0)?(_0x4eb325=_0x5d1580[_0xcd8cbf(0x15a)],_0x22896f=util[_0xcd8cbf(0x189)](_0x15b527['errorsDetailed'][0x0]),_0x1d23ca=_0x5d1580[_0xcd8cbf(0x1dc)](getFailureType,_0x22896f),_0x3f337d=failureData['apply'](null,[_0x15b527['errorsDetailed'],_0x5d1580[_0xcd8cbf(0x202)]])):_0x4eb325=_0x5d1580[_0xcd8cbf(0x1d8)]);const _0x194b41={'uuid':_0x10a94a,'type':_0x5d1580['UmQrO'],'hook_type':_0x576490,'name':_0xe10e,'body':{'lang':_0x5d1580[_0xcd8cbf(0x1c6)],'code':_0x15b527['fn']?_0x15b527['fn']['toString']():null},'tags':[],'test_run_id':_0x3c2c74,'scope':_0x18fe8b,'scopes':[_0x18fe8b],'file_name':_0x1e4dd4,'location':_0x1e4dd4,'vc_filepath':this[_0xcd8cbf(0x1ef)]&&_0x43ae08?path['relative'](this['_gitConfigPath'],_0x43ae08):null,'result':_0x4eb325,'started_at':_0x15b527[_0xcd8cbf(0x1bb)]||new Date()[_0xcd8cbf(0x1f4)](),'finished_at':_0x5cc61c,'failure_type':_0x1d23ca,'failure_reason':_0x22896f,'failure_data':_0x3f337d,'framework':_0x5d1580[_0xcd8cbf(0x15d)]};return _0x5d1580['DMEsJ'](_0x3d6856,_0x5d1580[_0xcd8cbf(0x1f9)])&&(hooksMap[_0x3c2c74]?hooksMap[_0x3c2c74]['push'](_0x194b41):hooksMap[_0x3c2c74]=[_0x194b41]),_0x194b41;}catch(_0x2351da){return logger['debug']('Exception\x20in\x20createHookData:\x20'+util[_0xcd8cbf(0x1cf)](_0x2351da)),null;}}['getHookRunEventData'](_0x253f51,_0x6fc12f,_0x3331d3){const _0x97eb11=a119_0x33ff17,_0x1caa21={'fyteq':function(_0x24032f,_0x43ddb9){return _0x24032f>_0x43ddb9;},'FNNxB':'failed','jsdKO':function(_0x399cbb,_0x12c523){return _0x399cbb(_0x12c523);},'hPRDg':_0x97eb11(0x165),'gEgAa':_0x97eb11(0x1ca)};try{const _0x2dd9ec=hooksMap[_0x253f51];if(!_0x2dd9ec)return null;const _0x4ca5ca=_0x2dd9ec[_0x97eb11(0x1f3)](_0x21b064=>_0x21b064[_0x97eb11(0x1e5)]===_0x6fc12f);if(!_0x4ca5ca)return null;return _0x4ca5ca['finished_at']=new Date()['toISOString'](),_0x3331d3['errorsDetailed']&&_0x1caa21[_0x97eb11(0x1b0)](_0x3331d3['errorsDetailed'][_0x97eb11(0x1a6)],0x0)?(_0x4ca5ca[_0x97eb11(0x168)]=_0x1caa21[_0x97eb11(0x1ba)],_0x4ca5ca[_0x97eb11(0x196)]=util[_0x97eb11(0x189)](_0x3331d3[_0x97eb11(0x1ac)][0x0]),_0x4ca5ca[_0x97eb11(0x1ad)]=_0x1caa21[_0x97eb11(0x203)](getFailureType,_0x4ca5ca[_0x97eb11(0x196)]),_0x4ca5ca[_0x97eb11(0x1fa)]=failureData['apply'](null,[_0x3331d3[_0x97eb11(0x1ac)],_0x1caa21[_0x97eb11(0x183)]])):_0x4ca5ca[_0x97eb11(0x168)]=_0x1caa21[_0x97eb11(0x1d9)],_0x4ca5ca;}catch(_0x2c307e){return logger['debug']('Exception\x20in\x20getHookRunEventData:\x20'+util[_0x97eb11(0x1cf)](_0x2c307e)),null;}}[a119_0x33ff17(0x1a5)](_0xf7a555){const _0x39b353=a119_0x33ff17,_0x782ced={};_0x782ced['SylDy']=function(_0x1e59d2,_0x4b7e38){return _0x1e59d2!==_0x4b7e38;},_0x782ced[_0x39b353(0x1cc)]=_0x39b353(0x165),_0x782ced[_0x39b353(0x1a1)]=_0x39b353(0x174);const _0x39287b=_0x782ced;if(_0x39287b[_0x39b353(0x19a)](_0xf7a555[_0x39b353(0x1b6)],_0x39287b['rGmoZ']))return'\x22'+_0xf7a555[_0x39b353(0x1b6)]+_0x39b353(0x1a2)+(_0xf7a555['parent']&&_0xf7a555[_0x39b353(0x1ee)][_0x39b353(0x1dd)])+'\x22';return _0xf7a555[_0x39b353(0x1dd)]||_0x39287b['XDQkO'];}[a119_0x33ff17(0x1e8)](_0x45eb47){const _0x1b5b8d=a119_0x33ff17,_0x37c909={};_0x37c909['VUhyA']=function(_0x59221e,_0x4e0e4e){return _0x59221e!==_0x4e0e4e;},_0x37c909[_0x1b5b8d(0x1f1)]=function(_0x25f8cc,_0x5caa8e){return _0x25f8cc!==_0x5caa8e;},_0x37c909[_0x1b5b8d(0x1eb)]=_0x1b5b8d(0x169);const _0x242586=_0x37c909,_0x3d346a=[];if(_0x45eb47&&_0x45eb47[_0x1b5b8d(0x1ee)]){let _0x1a9fa0=_0x45eb47[_0x1b5b8d(0x1ee)];while(_0x1a9fa0&&_0x1a9fa0[_0x1b5b8d(0x1dd)]&&_0x242586[_0x1b5b8d(0x199)](_0x1a9fa0[_0x1b5b8d(0x1dd)],'')&&_0x242586['MwZtj'](_0x1a9fa0[_0x1b5b8d(0x1dd)],_0x242586['dikrU'])){_0x3d346a['push'](_0x1a9fa0['name']),_0x1a9fa0=_0x1a9fa0['parent'];}}return _0x3d346a['reverse'](),_0x3d346a;}[a119_0x33ff17(0x1a9)](_0xcb1583){const _0x261bff=a119_0x33ff17,_0x32f950={'KOPOF':function(_0x3b2691,_0x1606b7){return _0x3b2691(_0x1606b7);}};if(_0xcb1583[_0x261bff(0x1fb)])return _0xcb1583['file'];if(_0xcb1583[_0x261bff(0x1cd)])try{const _0x3dd2fb=stackTrace['parse'][_0x261bff(0x154)](stackTrace,_0xcb1583[_0x261bff(0x1cd)]),_0x3337a7=_0x32f950[_0x261bff(0x150)](pickUserFrameFile,_0x3dd2fb);if(_0x3337a7)return _0x3337a7;logger[_0x261bff(0x184)](_0x261bff(0x15b)+_0x3dd2fb['length']+')');}catch(_0x4aed92){logger[_0x261bff(0x184)](_0x261bff(0x198)+util[_0x261bff(0x1cf)](_0x4aed92));}return null;}[a119_0x33ff17(0x1d5)](_0x52c538){const _0x544714=a119_0x33ff17,_0xfb054c={};_0xfb054c['OVTGn']=_0x544714(0x205);const _0x13606e=_0xfb054c;try{const _0x121011=this[_0x544714(0x1a9)](_0x52c538);if(!_0x121011||_0x121011['includes'](_0x13606e[_0x544714(0x201)]))return!![];}catch(_0x38ff0b){logger[_0x544714(0x184)]('Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20'+util['format'](_0x38ff0b));}return![];}[a119_0x33ff17(0x1ff)](_0x43d088=null){const _0x1fa849=a119_0x33ff17;try{const _0x49a619=_0x43d088||global[_0x1fa849(0x158)]||{};if(global['__jestCurrentTestIdentifier'])return global[_0x1fa849(0x1ea)];if(_0x49a619?.['currentTest']?.[_0x1fa849(0x180)])return _0x49a619[_0x1fa849(0x1c4)]['testAnalyticsId'];if(_0x49a619?.[_0x1fa849(0x1c4)]?.['id'])return _0x49a619[_0x1fa849(0x1c4)]['id'];return null;}catch(_0x18b474){return logger[_0x1fa849(0x184)](_0x1fa849(0x14f)+util['format'](_0x18b474)),null;}}async['configureGit'](){const _0x3778dd=a119_0x33ff17,_0x1b8478={'njkRa':function(_0x5b1d0c){return _0x5b1d0c();}};if(this['_gitConfigured'])return this['_gitConfigPath'];const _0x40b416=await _0x1b8478[_0x3778dd(0x172)](getGitMetaData);_0x40b416&&(this['_gitConfigPath']=_0x40b416['root']),this[_0x3778dd(0x16a)]=!![];}[a119_0x33ff17(0x17a)](_0x43f2c3){hooksMap[_0x43f2c3]&&delete hooksMap[_0x43f2c3];}['extractTestFilePath'](_0x33d17c){const _0x4274a8=a119_0x33ff17,_0x456abc={'FrGKw':_0x4274a8(0x205),'OFWzo':function(_0x41a4ad,_0x51de9b){return _0x41a4ad(_0x51de9b);},'dVMKK':'expect'};if(_0x33d17c[_0x4274a8(0x1fb)])return _0x33d17c[_0x4274a8(0x1fb)];if(_0x33d17c[_0x4274a8(0x1cd)]){try{const _0x2d9b96=stackTrace[_0x4274a8(0x1d0)](_0x33d17c[_0x4274a8(0x1cd)]);if(_0x2d9b96[0x0]&&_0x2d9b96[0x0][_0x4274a8(0x1c1)]){const _0x246242=_0x2d9b96[0x0][_0x4274a8(0x1c1)]();if(_0x246242&&!_0x246242[_0x4274a8(0x188)](_0x456abc[_0x4274a8(0x166)]))return _0x246242;}}catch(_0x253730){logger[_0x4274a8(0x184)]('[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util[_0x4274a8(0x1cf)](_0x253730));}if(_0x33d17c[_0x4274a8(0x1cd)][_0x4274a8(0x1bc)]){const _0x43cb22=_0x33d17c[_0x4274a8(0x1cd)][_0x4274a8(0x1bc)][_0x4274a8(0x204)]('\x0a');for(const _0x243b4d of _0x43cb22){const _0x5934fa=_0x243b4d[_0x4274a8(0x1d3)](/at (.+?):\d+:\d+/);if(_0x5934fa&&_0x5934fa[0x1]&&!_0x5934fa[0x1]['includes'](_0x456abc['FrGKw']))return _0x5934fa[0x1];}}}let _0x34856a=_0x33d17c['parent'];while(_0x34856a){if(_0x34856a[_0x4274a8(0x1fb)])return _0x34856a[_0x4274a8(0x1fb)];if(_0x34856a['asyncError'])try{const _0x53b518=stackTrace[_0x4274a8(0x1d0)](_0x34856a[_0x4274a8(0x1cd)]);if(_0x53b518[0x0]&&_0x53b518[0x0][_0x4274a8(0x1c1)]){const _0x1f9c1c=_0x53b518[0x0][_0x4274a8(0x1c1)]();if(_0x1f9c1c&&!_0x1f9c1c[_0x4274a8(0x188)](_0x456abc[_0x4274a8(0x166)]))return _0x1f9c1c;}}catch(_0x44cf5f){}_0x34856a=_0x34856a[_0x4274a8(0x1ee)];}try{const _0xa92018=_0x456abc[_0x4274a8(0x175)](require,_0x456abc[_0x4274a8(0x164)]);if(_0xa92018&&_0xa92018[_0x4274a8(0x1af)]){const _0x118da1=_0xa92018[_0x4274a8(0x1af)]();if(_0x118da1&&_0x118da1[_0x4274a8(0x1e2)])return _0x118da1[_0x4274a8(0x1e2)];}}catch(_0x523a81){logger[_0x4274a8(0x184)](_0x4274a8(0x16e)+util[_0x4274a8(0x1cf)](_0x523a81));}return null;}['createJestTestIdentifier'](_0xacc99f){const _0x2000da=a119_0x33ff17,_0xf7b97b={};_0xf7b97b[_0x2000da(0x1e3)]='[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier',_0xf7b97b[_0x2000da(0x161)]=function(_0x292167,_0x5a6115){return _0x292167!==_0x5a6115;},_0xf7b97b[_0x2000da(0x178)]=_0x2000da(0x169),_0xf7b97b[_0x2000da(0x192)]=_0x2000da(0x205),_0xf7b97b[_0x2000da(0x1d4)]=_0x2000da(0x1d1),_0xf7b97b[_0x2000da(0x1ed)]=_0x2000da(0x156);const _0x3a4535=_0xf7b97b;try{if(!_0xacc99f)return logger['error'](_0x3a4535[_0x2000da(0x1e3)]),null;const _0x28ccce=_0xacc99f[_0x2000da(0x1a7)]||_0xacc99f['name']||_0xacc99f[_0x2000da(0x1bd)]||_0xacc99f[_0x2000da(0x162)];let _0x201bd6=_0x28ccce;if(_0xacc99f[_0x2000da(0x1ee)]&&_0xacc99f[_0x2000da(0x1ee)][_0x2000da(0x1dd)]&&_0x3a4535[_0x2000da(0x161)](_0xacc99f['parent'][_0x2000da(0x1dd)],_0x3a4535[_0x2000da(0x178)])){const _0x4c9668=_0xacc99f[_0x2000da(0x1dd)]||_0xacc99f[_0x2000da(0x1bd)];_0x4c9668&&(_0x201bd6=_0xacc99f[_0x2000da(0x1ee)]['name']+'\x20'+_0x4c9668);}let _0x24a89a=_0xacc99f[_0x2000da(0x1e2)];if(!_0x24a89a&&_0xacc99f[_0x2000da(0x1cd)]){try{const _0x1e8038=stackTrace['parse'](_0xacc99f[_0x2000da(0x1cd)]);if(_0x1e8038[0x0]&&_0x1e8038[0x0][_0x2000da(0x1c1)]){const _0x55f81e=_0x1e8038[0x0][_0x2000da(0x1c1)]();_0x55f81e&&!_0x55f81e[_0x2000da(0x188)](_0x3a4535[_0x2000da(0x192)])&&(_0x24a89a=_0x55f81e);}}catch(_0x200c54){logger[_0x2000da(0x184)](_0x2000da(0x1a8)+util['format'](_0x200c54));}if(!_0x24a89a&&_0xacc99f[_0x2000da(0x1cd)][_0x2000da(0x1bc)]){const _0x24686a=_0xacc99f[_0x2000da(0x1cd)][_0x2000da(0x1bc)][_0x2000da(0x204)]('\x0a');for(const _0x321675 of _0x24686a){const _0x496fc1=_0x321675[_0x2000da(0x1d3)](/at (.+?):\d+:\d+/);if(_0x496fc1&&_0x496fc1[0x1]&&!_0x496fc1[0x1][_0x2000da(0x188)](_0x3a4535[_0x2000da(0x192)])){_0x24a89a=_0x496fc1[0x1];break;}}}}const _0x1d44be=_0x24a89a+'::'+_0x201bd6,_0x1274a0=crypto[_0x2000da(0x193)](_0x3a4535[_0x2000da(0x1d4)])[_0x2000da(0x15f)](_0x1d44be)[_0x2000da(0x1d7)](_0x3a4535[_0x2000da(0x1ed)])[_0x2000da(0x16f)](0x0,0x8),_0x185165=process[_0x2000da(0x17b)]+_0x2000da(0x1f8)+_0x1274a0;return logger['debug'](_0x2000da(0x155)+_0x185165+_0x2000da(0x1b1)+_0x1d44be),_0x185165;}catch(_0x15edfc){return logger['error']('[jestUtils]\x20Error\x20creating\x20identifier:\x20'+util[_0x2000da(0x1cf)](_0x15edfc)),null;}}[a119_0x33ff17(0x1b7)](_0x44369b){const _0x45420b=a119_0x33ff17,_0x1f9013={};_0x1f9013[_0x45420b(0x1c3)]='[jestUtils]\x20No\x20test\x20object\x20provided';const _0xae9348=_0x1f9013;if(!_0x44369b)return logger['debug'](_0xae9348[_0x45420b(0x1c3)]),null;const _0x1682fe=this[_0x45420b(0x1e0)](_0x44369b),_0x1c0fd7={};_0x1c0fd7[_0x45420b(0x1dd)]=_0x44369b['name']||_0x44369b[_0x45420b(0x1bd)],_0x1c0fd7[_0x45420b(0x1ee)]=_0x44369b['parent'],_0x1c0fd7[_0x45420b(0x1e2)]=_0x1682fe,_0x1c0fd7['asyncError']=_0x44369b[_0x45420b(0x1cd)];const _0x3d14e6=_0x1c0fd7;return this[_0x45420b(0x1fc)](_0x3d14e6);}[a119_0x33ff17(0x206)](_0x562988,_0x3cf7aa=null){const _0x61f579=a119_0x33ff17,_0x34d482={};_0x34d482[_0x61f579(0x190)]=_0x61f579(0x1d6);const _0x39bdc2=_0x34d482;if(!_0x562988)return logger[_0x61f579(0x184)](_0x39bdc2['wTiLl']),_0x3cf7aa;if(_0x562988[_0x61f579(0x16b)])return logger[_0x61f579(0x184)](_0x61f579(0x1b9)+_0x562988[_0x61f579(0x16b)]),_0x562988[_0x61f579(0x16b)];return this[_0x61f579(0x1fc)](_0x562988)||_0x3cf7aa;}}module['exports']=o11yClassErrorHandler(JestUtils,[a119_0x33ff17(0x17d),'getHierarchy',a119_0x33ff17(0x1a9),a119_0x33ff17(0x1a5),a119_0x33ff17(0x1d5),a119_0x33ff17(0x1ff),'createTestFrameworkData',a119_0x33ff17(0x160),a119_0x33ff17(0x195),a119_0x33ff17(0x17a),a119_0x33ff17(0x1e0),a119_0x33ff17(0x1fc),a119_0x33ff17(0x1b7),a119_0x33ff17(0x206)]);
|
|
1
|
+
const a119_0x229a0f=a119_0x3873;(function(_0x27941d,_0x5b1529){const _0x48a0c3=a119_0x3873,_0x51bc34=_0x27941d();while(!![]){try{const _0x5a6fa8=parseInt(_0x48a0c3(0x182))/0x1+parseInt(_0x48a0c3(0x213))/0x2+parseInt(_0x48a0c3(0x165))/0x3+-parseInt(_0x48a0c3(0x201))/0x4*(-parseInt(_0x48a0c3(0x1c7))/0x5)+-parseInt(_0x48a0c3(0x178))/0x6*(parseInt(_0x48a0c3(0x20d))/0x7)+parseInt(_0x48a0c3(0x1a9))/0x8+-parseInt(_0x48a0c3(0x1a5))/0x9;if(_0x5a6fa8===_0x5b1529)break;else _0x51bc34['push'](_0x51bc34['shift']());}catch(_0xabee72){_0x51bc34['push'](_0x51bc34['shift']());}}}(a119_0x345f,0x7daaf));const path=require('path'),util=require(a119_0x229a0f(0x181)),crypto=require(a119_0x229a0f(0x1b7)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a119_0x229a0f(0x179)),logger=require('../../../helpers/logger.js')[a119_0x229a0f(0x17a)],{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler.js'),TestInfo=require('../TestInfo.js'),{failureData,getFailureType,PathHelper}=require(a119_0x229a0f(0x1c3)),stackTrace=require('stack-trace'),{pickUserFrameFile}=require(a119_0x229a0f(0x1a7)),a119_0x37dbd8={};a119_0x37dbd8['beforeAll']=a119_0x229a0f(0x208),a119_0x37dbd8[a119_0x229a0f(0x1ca)]=a119_0x229a0f(0x1f3),a119_0x37dbd8[a119_0x229a0f(0x1ff)]=a119_0x229a0f(0x17f),a119_0x37dbd8[a119_0x229a0f(0x1b3)]='AFTER_EACH';function a119_0x3873(_0x240096,_0x588408){const _0x345fc9=a119_0x345f();return a119_0x3873=function(_0x3873f7,_0x4fc098){_0x3873f7=_0x3873f7-0x160;let _0x22d6a3=_0x345fc9[_0x3873f7];return _0x22d6a3;},a119_0x3873(_0x240096,_0x588408);}function a119_0x345f(){const _0x9d8c7e=['toUpperCase','debug','browserstack-node-agent/src/bin/jest','result','cwd','stack','includes','createHash','fgzwu','aFhGl','moTQT','getFileName','getName','getHookRunEventData','format','lClUI','parse','AFTER_ALL','getHierarchy','getState','JGLXc','recreateIdentifierFromTestInfo','substring','TestRunFinished','cpunM','[jestUtils]\x20Created\x20identifier:\x20','toISOString','Exception\x20in\x20createHookData:\x20','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','beforeEach','[jestUtils]\x20pickUserFrameFile\x20found\x20no\x20user\x20frame\x20(trace\x20length=','3812JIvRHU','name','qbosb','expanded','toString','[jestUtils]\x20Error\x20creating\x20identifier:\x20','bPBre','BEFORE_ALL','LpkHA','MIPAm','bssNY','Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20','18697bMeBZz','match','Exception\x20in\x20getHookRunEventData:\x20','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','vVqFH','WwaqI','1153536fDfTig','split','errorsDetailed','test','skipped','jest-circus','2129280TuYKOO','iUDZz','file',',\x20testRunId:\x20','sTwxq','clearHooksMap','HNLPV','cBAyx','pIghr','testAnalyticsId','ROOT_DESCRIBE_BLOCK','oOWeE','lrbLZ','NeEHJ','find','ZBhov','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation','YXrVn','HookRunStarted','1806TSusGB','../../../helpers/helper.js','winstonLogger','unknown','onDbC','startedAt','update','BEFORE_EACH','ZfdlQ','util','974472VIlktA','started_at','pid','nWfuf','FmJfm','passed','isJestInternalHook','__workerDetails','parent','rwCaH','bIygI','asyncError','error','TestRunSkipped','backtrace','bkaXQ','Eovlk','hex','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','relative','javascript','createJestTestIdentifier','hooks','kwQZV','YGJwU','failure_reason','\x20from\x20compositeKey:\x20','CqIkY','mNjbS','WWjeI','getRootParentFile','_gitConfigPath','createIdentifierFromJestTest','errors','createTestFrameworkData','13204062ffzAFs','failure_type','../../../helpers/stackFrameUtils','xZXpC','2185856GnIlLO',',\x20testIdentifier:\x20','now','getTestIdentifier','jest','mbETC','Unknown\x20Test','RXwZs','push','duration','afterEach','failure_reason_expanded','md5','nBFoE','crypto','nXaQp','ewiWs','type','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','File\x20path\x20could\x20not\x20be\x20found','pending','Creating\x20hook\x20data\x20for\x20eventType:\x20',':jest-','oYoNL','createHookData','ybbPE','../../../helpers/test-observability/utils','vKXfF','_gitConfigured','oLVja','1320OnRiNk','VcsLY','err','afterAll','fullName','testPath','prefixTestPath','currentTest','__jestCurrentTestIdentifier','retryOf','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','extractTestFilePath','apply','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','_paths','NFhxb','bVoDr','title','configureGit','inspect','failed','length','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','testIdentifier','wLLrl'];a119_0x345f=function(){return _0x9d8c7e;};return a119_0x345f();}const HOOK_TYPES_MAP=a119_0x37dbd8,hooksMap={};class JestUtils{constructor(){const _0x5d1708=a119_0x229a0f;this[_0x5d1708(0x1c5)]=![],this[_0x5d1708(0x1a1)]=null,this[_0x5d1708(0x1d7)]=new PathHelper({'cwd':process[_0x5d1708(0x1e6)]()},undefined);}async[a119_0x229a0f(0x1a4)](_0x55a78a,_0x59520d,_0x391fce='TestRunFinished',_0x2e5747=undefined){const _0x516f19=a119_0x229a0f,_0x2141d8={'kwQZV':_0x516f19(0x1d6),'ewiWs':_0x516f19(0x164),'mbETC':_0x516f19(0x1bc),'oYoNL':function(_0x2d190d,_0x37741b){return _0x2d190d!==_0x37741b;},'aFhGl':'test','cpunM':_0x516f19(0x1c9),'ZBhov':'pending','NeEHJ':function(_0x4c98ae,_0x4c6e93){return _0x4c98ae===_0x4c6e93;},'lrbLZ':_0x516f19(0x18f),'ZfdlQ':_0x516f19(0x163),'FmJfm':function(_0x59ad99,_0x215f4f){return _0x59ad99===_0x215f4f;},'vVqFH':_0x516f19(0x1f9),'tIRka':function(_0x51dfb2,_0x189f36){return _0x51dfb2>_0x189f36;},'onDbC':_0x516f19(0x1dd),'bssNY':'passed','pIghr':function(_0x45bfec,_0x320468){return _0x45bfec-_0x320468;},'WFWlI':_0x516f19(0x196),'WwaqI':_0x516f19(0x1ad),'nXaQp':function(_0x1a224e,_0x1010ce){return _0x1a224e(_0x1010ce);},'HiZyh':function(_0x1af7ca,_0x3fdacd){return _0x1af7ca===_0x3fdacd;}};logger[_0x516f19(0x1e3)](_0x516f19(0x20c)+_0x391fce+_0x516f19(0x1aa)+_0x59520d);try{if(!_0x55a78a)return logger['debug'](_0x2141d8[_0x516f19(0x199)]),null;if(_0x55a78a['fn']&&_0x55a78a['fn'][_0x516f19(0x205)]()[_0x516f19(0x20e)](/browserstack internal helper hook/))return null;await this[_0x516f19(0x1db)]();let _0x5050bf;try{_0x5050bf=this[_0x516f19(0x1a0)](_0x55a78a);if(_0x5050bf&&_0x5050bf['includes'](_0x2141d8[_0x516f19(0x1b9)]))return null;}catch(_0x5966ec){logger[_0x516f19(0x1e3)]('Failed\x20to\x20get\x20root\x20parent\x20file:\x20'+util[_0x516f19(0x1f0)](_0x5966ec)),_0x5050bf=null;}const _0x280e60=this[_0x516f19(0x1f4)](_0x55a78a),_0x243f32=this[_0x516f19(0x1ee)](_0x55a78a),_0x1b4252=_0x5050bf?this[_0x516f19(0x1d7)][_0x516f19(0x1cd)](_0x5050bf):_0x2141d8[_0x516f19(0x1ae)];let _0x1591e0=[];const _0x199967=_0x55a78a[_0x516f19(0x161)]||_0x55a78a[_0x516f19(0x1a3)];if(_0x2141d8[_0x516f19(0x1c0)](_0x199967,undefined))_0x1591e0=[_0x199967,_0x2141d8[_0x516f19(0x1eb)]];else _0x2141d8[_0x516f19(0x1c0)](_0x2e5747,undefined)&&(_0x1591e0=[_0x2e5747,_0x2141d8[_0x516f19(0x1fa)]]);const _0x5319d1=_0x2141d8['oYoNL'](_0x199967,undefined)?util[_0x516f19(0x1dc)](_0x199967[0x0]):_0x2141d8['oYoNL'](_0x2e5747,undefined)?_0x2e5747[_0x516f19(0x205)]():undefined;let _0x133c4e=_0x2141d8[_0x516f19(0x174)];if(_0x2141d8[_0x516f19(0x172)](_0x391fce,_0x2141d8['lrbLZ']))_0x133c4e=_0x2141d8[_0x516f19(0x180)];else _0x2141d8[_0x516f19(0x186)](_0x391fce,_0x2141d8[_0x516f19(0x211)])&&(_0x199967&&_0x2141d8['tIRka'](_0x199967[_0x516f19(0x1de)],0x0)?_0x133c4e=_0x2141d8[_0x516f19(0x17c)]:_0x133c4e=_0x2141d8[_0x516f19(0x20b)]);let _0x2f1af2=null;if(_0x2141d8[_0x516f19(0x1c0)](_0x55a78a[_0x516f19(0x1b2)],undefined))_0x2f1af2=_0x55a78a['duration'];else(_0x391fce[_0x516f19(0x20e)](/Finished/)||_0x391fce['match'](/Skipped/))&&(_0x55a78a[_0x516f19(0x183)]&&(_0x2f1af2=_0x2141d8[_0x516f19(0x16d)](Date[_0x516f19(0x1ab)](),new Date(_0x55a78a[_0x516f19(0x183)])['getTime']())));const _0x13c802=_0x55a78a['fn']?_0x55a78a['fn'][_0x516f19(0x205)]():null,_0x32c485={'id':_0x59520d,'uuid':_0x59520d,'startedAt':_0x55a78a['started_at']||new Date()[_0x516f19(0x1fc)](),'finishedAt':_0x391fce[_0x516f19(0x20e)](/Finished/)||_0x391fce['match'](/Skipped/)?new Date()[_0x516f19(0x1fc)]():null,'type':_0x2141d8['aFhGl'],'body':{'lang':_0x2141d8['WFWlI'],'code':_0x13c802},'name':_0x243f32,'errorsDetailed':_0x2141d8['tIRka'](_0x199967?.[_0x516f19(0x1de)],0x0)?_0x199967[0x0]:_0x199967?_0x199967:undefined,'scopes':_0x280e60,'file_name':_0x1b4252,'location':_0x1b4252,'vc_filepath':this[_0x516f19(0x1a1)]&&_0x5050bf?path[_0x516f19(0x195)](this[_0x516f19(0x1a1)],_0x5050bf):null,'framework':_0x2141d8[_0x516f19(0x212)],'result':_0x133c4e,'failure_reason':_0x5319d1,'duration_in_ms':_0x2f1af2,'failure':failureData[_0x516f19(0x1d5)](null,_0x1591e0),'failure_type':!_0x5319d1?null:_0x2141d8[_0x516f19(0x1b8)](getFailureType,_0x5319d1),'retry_of':_0x55a78a[_0x516f19(0x1d0)]||null,'customRerunParam':{'rerun_name':_0x243f32}};_0x2141d8['HiZyh'](_0x391fce,_0x2141d8[_0x516f19(0x171)])&&!_0x32c485[_0x516f19(0x17d)]&&(_0x32c485[_0x516f19(0x17d)]=_0x32c485['finishedAt']);const _0x49efb3=_0x32c485['failure']&&_0x32c485['failure'][0x0];return _0x49efb3&&(_0x32c485['failure_backtrace']=_0x49efb3[_0x516f19(0x190)],_0x32c485[_0x516f19(0x1b4)]=_0x49efb3[_0x516f19(0x204)]),(_0x2141d8[_0x516f19(0x172)](_0x391fce,_0x2141d8[_0x516f19(0x211)])||_0x2141d8[_0x516f19(0x172)](_0x391fce,_0x2141d8['lrbLZ']))&&(_0x55a78a[_0x516f19(0x198)]&&(_0x32c485[_0x516f19(0x198)]=_0x55a78a['hooks'])),_0x32c485;}catch(_0x3cfbca){return logger[_0x516f19(0x1e3)]('Exception\x20in\x20createTestFrameworkData:\x20'+util[_0x516f19(0x1f0)](_0x3cfbca)),null;}}async[a119_0x229a0f(0x1c1)](_0x4430df,_0x554dfe,_0x1145ef,_0x5d2c15){const _0x4b5426=a119_0x229a0f,_0x1c4ccb={'mNjbS':_0x4b5426(0x1fe),'njYJo':_0x4b5426(0x164),'mAjtG':_0x4b5426(0x1e4),'nBFoE':_0x4b5426(0x17b),'JAlIb':_0x4b5426(0x1bd),'lClUI':function(_0x93c775,_0x92575d){return _0x93c775===_0x92575d;},'szbFc':'HookRunFinished','qRPaf':function(_0x1f44bf,_0x3f9a81){return _0x1f44bf>_0x3f9a81;},'NFhxb':_0x4b5426(0x1dd),'sTwxq':function(_0x4ac4c0,_0x2dad65){return _0x4ac4c0(_0x2dad65);},'RXwZs':_0x4b5426(0x162),'qbosb':_0x4b5426(0x187),'bVoDr':'hook','Eovlk':_0x4b5426(0x196),'bIygI':'jest','MIPAm':function(_0x2e8952,_0x575e69){return _0x2e8952===_0x575e69;},'LpkHA':_0x4b5426(0x177)};logger['debug'](_0x4b5426(0x1be)+_0x1145ef+',\x20hookUUID:\x20'+_0x554dfe+_0x4b5426(0x168)+_0x5d2c15);try{if(!_0x4430df)return logger['debug'](_0x1c4ccb[_0x4b5426(0x19e)]),null;if(this[_0x4b5426(0x188)](_0x4430df))return null;await this[_0x4b5426(0x1db)]();let _0x206596=null;try{_0x206596=this['getRootParentFile'](_0x4430df);if(_0x206596&&_0x206596[_0x4b5426(0x1e8)](_0x1c4ccb['njYJo']))return null;if(_0x206596&&_0x206596[_0x4b5426(0x1e8)](_0x1c4ccb['mAjtG']))return null;}catch(_0x141e3e){logger[_0x4b5426(0x1e3)](_0x4b5426(0x1d1)+util[_0x4b5426(0x1f0)](_0x141e3e));}const _0x1772be=_0x206596?this[_0x4b5426(0x1d7)][_0x4b5426(0x1cd)](_0x206596):_0x206596,_0x4e3e66=this[_0x4b5426(0x1ee)](_0x4430df),_0x162bf9=_0x4430df['type']||_0x1c4ccb[_0x4b5426(0x1b6)],_0x5cd291=HOOK_TYPES_MAP[_0x162bf9]||_0x162bf9[_0x4b5426(0x1e2)](),_0x29ce99=_0x4430df[_0x4b5426(0x18a)]&&_0x4430df[_0x4b5426(0x18a)][_0x4b5426(0x202)]?_0x4430df[_0x4b5426(0x18a)][_0x4b5426(0x202)]:'';let _0x5e51ff=_0x1c4ccb['JAlIb'],_0x499297=null,_0x524f16=null,_0x132909=null,_0x587141=null;_0x1c4ccb[_0x4b5426(0x1f1)](_0x1145ef,_0x1c4ccb['szbFc'])&&(_0x587141=new Date()[_0x4b5426(0x1fc)](),_0x4430df['errorsDetailed']&&_0x1c4ccb['qRPaf'](_0x4430df['errorsDetailed'][_0x4b5426(0x1de)],0x0)?(_0x5e51ff=_0x1c4ccb[_0x4b5426(0x1d8)],_0x524f16=util[_0x4b5426(0x1dc)](_0x4430df['errorsDetailed'][0x0]),_0x499297=_0x1c4ccb[_0x4b5426(0x169)](getFailureType,_0x524f16),_0x132909=failureData[_0x4b5426(0x1d5)](null,[_0x4430df[_0x4b5426(0x161)],_0x1c4ccb[_0x4b5426(0x1b0)]])):_0x5e51ff=_0x1c4ccb[_0x4b5426(0x203)]);const _0x3643b4={'uuid':_0x554dfe,'type':_0x1c4ccb[_0x4b5426(0x1d9)],'hook_type':_0x5cd291,'name':_0x4e3e66,'body':{'lang':_0x1c4ccb[_0x4b5426(0x192)],'code':_0x4430df['fn']?_0x4430df['fn'][_0x4b5426(0x205)]():null},'tags':[],'test_run_id':_0x5d2c15,'scope':_0x29ce99,'scopes':[_0x29ce99],'file_name':_0x1772be,'location':_0x1772be,'vc_filepath':this[_0x4b5426(0x1a1)]&&_0x206596?path['relative'](this['_gitConfigPath'],_0x206596):null,'result':_0x5e51ff,'started_at':_0x4430df['started_at']||new Date()[_0x4b5426(0x1fc)](),'finished_at':_0x587141,'failure_type':_0x499297,'failure_reason':_0x524f16,'failure_data':_0x132909,'framework':_0x1c4ccb[_0x4b5426(0x18c)]};return _0x1c4ccb[_0x4b5426(0x20a)](_0x1145ef,_0x1c4ccb[_0x4b5426(0x209)])&&(hooksMap[_0x5d2c15]?hooksMap[_0x5d2c15]['push'](_0x3643b4):hooksMap[_0x5d2c15]=[_0x3643b4]),_0x3643b4;}catch(_0x26321f){return logger[_0x4b5426(0x1e3)](_0x4b5426(0x1fd)+util[_0x4b5426(0x1f0)](_0x26321f)),null;}}[a119_0x229a0f(0x1ef)](_0x491826,_0x3769f6,_0x3abb64){const _0x2fe6f2=a119_0x229a0f,_0x13b174={'oiTUF':function(_0x2672f5,_0x2fb34e){return _0x2672f5>_0x2fb34e;},'JGLXc':'failed','moTQT':function(_0x89191d,_0x4c11c1){return _0x89191d(_0x4c11c1);},'YXrVn':_0x2fe6f2(0x162),'oLVja':_0x2fe6f2(0x187)};try{const _0x4d4526=hooksMap[_0x491826];if(!_0x4d4526)return null;const _0x27f4fd=_0x4d4526[_0x2fe6f2(0x173)](_0x4e09d3=>_0x4e09d3['uuid']===_0x3769f6);if(!_0x27f4fd)return null;return _0x27f4fd['finished_at']=new Date()[_0x2fe6f2(0x1fc)](),_0x3abb64['errorsDetailed']&&_0x13b174['oiTUF'](_0x3abb64['errorsDetailed'][_0x2fe6f2(0x1de)],0x0)?(_0x27f4fd[_0x2fe6f2(0x1e5)]=_0x13b174[_0x2fe6f2(0x1f6)],_0x27f4fd['failure_reason']=util['inspect'](_0x3abb64[_0x2fe6f2(0x161)][0x0]),_0x27f4fd[_0x2fe6f2(0x1a6)]=_0x13b174[_0x2fe6f2(0x1ec)](getFailureType,_0x27f4fd[_0x2fe6f2(0x19b)]),_0x27f4fd['failure_data']=failureData[_0x2fe6f2(0x1d5)](null,[_0x3abb64[_0x2fe6f2(0x161)],_0x13b174[_0x2fe6f2(0x176)]])):_0x27f4fd[_0x2fe6f2(0x1e5)]=_0x13b174[_0x2fe6f2(0x1c6)],_0x27f4fd;}catch(_0x5a5fe7){return logger['debug'](_0x2fe6f2(0x20f)+util['format'](_0x5a5fe7)),null;}}[a119_0x229a0f(0x1ee)](_0x31c630){const _0x1549ed=a119_0x229a0f,_0x26238d={};_0x26238d[_0x1549ed(0x19d)]=function(_0x42b4be,_0x49465b){return _0x42b4be!==_0x49465b;},_0x26238d[_0x1549ed(0x16c)]='test',_0x26238d[_0x1549ed(0x19a)]=_0x1549ed(0x1af);const _0x2b084f=_0x26238d;if(_0x2b084f[_0x1549ed(0x19d)](_0x31c630['type'],_0x2b084f['cBAyx']))return'\x22'+_0x31c630[_0x1549ed(0x1ba)]+'\x22\x20hook\x20for\x20\x22'+(_0x31c630[_0x1549ed(0x18a)]&&_0x31c630['parent'][_0x1549ed(0x202)])+'\x22';return _0x31c630[_0x1549ed(0x202)]||_0x2b084f[_0x1549ed(0x19a)];}[a119_0x229a0f(0x1f4)](_0x48ace3){const _0x5bfdcc=a119_0x229a0f,_0x2ef229={};_0x2ef229['VcsLY']=function(_0x4d135f,_0x381fca){return _0x4d135f!==_0x381fca;},_0x2ef229[_0x5bfdcc(0x166)]=_0x5bfdcc(0x16f);const _0x3ffdc0=_0x2ef229,_0x37da4b=[];if(_0x48ace3&&_0x48ace3[_0x5bfdcc(0x18a)]){let _0x5c4e7b=_0x48ace3[_0x5bfdcc(0x18a)];while(_0x5c4e7b&&_0x5c4e7b[_0x5bfdcc(0x202)]&&_0x3ffdc0[_0x5bfdcc(0x1c8)](_0x5c4e7b['name'],'')&&_0x3ffdc0['VcsLY'](_0x5c4e7b[_0x5bfdcc(0x202)],_0x3ffdc0[_0x5bfdcc(0x166)])){_0x37da4b[_0x5bfdcc(0x1b1)](_0x5c4e7b[_0x5bfdcc(0x202)]),_0x5c4e7b=_0x5c4e7b[_0x5bfdcc(0x18a)];}}return _0x37da4b['reverse'](),_0x37da4b;}[a119_0x229a0f(0x1a0)](_0x5b8996){const _0x45268f=a119_0x229a0f,_0x305d81={'rwCaH':function(_0x346ac7,_0x1045dc){return _0x346ac7(_0x1045dc);}};if(_0x5b8996[_0x45268f(0x167)])return _0x5b8996[_0x45268f(0x167)];if(_0x5b8996[_0x45268f(0x18d)])try{const _0x4857ed=stackTrace[_0x45268f(0x1f2)]['call'](stackTrace,_0x5b8996[_0x45268f(0x18d)]),_0x4574be=_0x305d81[_0x45268f(0x18b)](pickUserFrameFile,_0x4857ed);if(_0x4574be)return _0x4574be;logger['debug'](_0x45268f(0x200)+_0x4857ed[_0x45268f(0x1de)]+')');}catch(_0x92af66){logger[_0x45268f(0x1e3)](_0x45268f(0x194)+util[_0x45268f(0x1f0)](_0x92af66));}return null;}[a119_0x229a0f(0x188)](_0x4c2eb6){const _0x231444=a119_0x229a0f,_0x443ab2={};_0x443ab2['hSgKx']=_0x231444(0x164);const _0x470795=_0x443ab2;try{const _0x59d7ee=this[_0x231444(0x1a0)](_0x4c2eb6);if(!_0x59d7ee||_0x59d7ee[_0x231444(0x1e8)](_0x470795['hSgKx']))return!![];}catch(_0xd1d550){logger[_0x231444(0x1e3)](_0x231444(0x1df)+util[_0x231444(0x1f0)](_0xd1d550));}return![];}[a119_0x229a0f(0x1ac)](_0x38fea5=null){const _0x523a74=a119_0x229a0f;try{const _0x1b3e46=_0x38fea5||global[_0x523a74(0x189)]||{};if(global[_0x523a74(0x1cf)])return global[_0x523a74(0x1cf)];if(_0x1b3e46?.[_0x523a74(0x1ce)]?.[_0x523a74(0x16e)])return _0x1b3e46[_0x523a74(0x1ce)][_0x523a74(0x16e)];if(_0x1b3e46?.[_0x523a74(0x1ce)]?.['id'])return _0x1b3e46[_0x523a74(0x1ce)]['id'];return null;}catch(_0x1f54b6){return logger[_0x523a74(0x1e3)](_0x523a74(0x210)+util[_0x523a74(0x1f0)](_0x1f54b6)),null;}}async[a119_0x229a0f(0x1db)](){const _0x4292d5=a119_0x229a0f,_0x116e5d={'vKXfF':function(_0x426d80){return _0x426d80();}};if(this[_0x4292d5(0x1c5)])return this['_gitConfigPath'];const _0x386e10=await _0x116e5d[_0x4292d5(0x1c4)](getGitMetaData);_0x386e10&&(this[_0x4292d5(0x1a1)]=_0x386e10['root']),this[_0x4292d5(0x1c5)]=!![];}[a119_0x229a0f(0x16a)](_0x566a9c){hooksMap[_0x566a9c]&&delete hooksMap[_0x566a9c];}[a119_0x229a0f(0x1d4)](_0x3f5df8){const _0x2a6ae3=a119_0x229a0f,_0x56ac59={'bPBre':_0x2a6ae3(0x164),'HNLPV':function(_0xa58d4f,_0x1e7f4a){return _0xa58d4f(_0x1e7f4a);},'wLLrl':'expect'};if(_0x3f5df8['file'])return _0x3f5df8['file'];if(_0x3f5df8[_0x2a6ae3(0x18d)]){try{const _0x5e58ba=stackTrace[_0x2a6ae3(0x1f2)](_0x3f5df8[_0x2a6ae3(0x18d)]);if(_0x5e58ba[0x0]&&_0x5e58ba[0x0][_0x2a6ae3(0x1ed)]){const _0x6baabf=_0x5e58ba[0x0][_0x2a6ae3(0x1ed)]();if(_0x6baabf&&!_0x6baabf[_0x2a6ae3(0x1e8)](_0x56ac59['bPBre']))return _0x6baabf;}}catch(_0x241ddf){logger[_0x2a6ae3(0x1e3)](_0x2a6ae3(0x1d3)+util[_0x2a6ae3(0x1f0)](_0x241ddf));}if(_0x3f5df8[_0x2a6ae3(0x18d)][_0x2a6ae3(0x1e7)]){const _0x4e9c84=_0x3f5df8[_0x2a6ae3(0x18d)][_0x2a6ae3(0x1e7)][_0x2a6ae3(0x160)]('\x0a');for(const _0xd45ddc of _0x4e9c84){const _0x4fede2=_0xd45ddc[_0x2a6ae3(0x20e)](/at (.+?):\d+:\d+/);if(_0x4fede2&&_0x4fede2[0x1]&&!_0x4fede2[0x1]['includes'](_0x56ac59[_0x2a6ae3(0x207)]))return _0x4fede2[0x1];}}}let _0x512ce1=_0x3f5df8[_0x2a6ae3(0x18a)];while(_0x512ce1){if(_0x512ce1['file'])return _0x512ce1[_0x2a6ae3(0x167)];if(_0x512ce1[_0x2a6ae3(0x18d)])try{const _0x1cca55=stackTrace[_0x2a6ae3(0x1f2)](_0x512ce1['asyncError']);if(_0x1cca55[0x0]&&_0x1cca55[0x0]['getFileName']){const _0x7b981d=_0x1cca55[0x0]['getFileName']();if(_0x7b981d&&!_0x7b981d['includes'](_0x56ac59['bPBre']))return _0x7b981d;}}catch(_0x15296d){}_0x512ce1=_0x512ce1[_0x2a6ae3(0x18a)];}try{const _0x3dd920=_0x56ac59[_0x2a6ae3(0x16b)](require,_0x56ac59[_0x2a6ae3(0x1e1)]);if(_0x3dd920&&_0x3dd920[_0x2a6ae3(0x1f5)]){const _0x3f10be=_0x3dd920[_0x2a6ae3(0x1f5)]();if(_0x3f10be&&_0x3f10be['testPath'])return _0x3f10be[_0x2a6ae3(0x1cc)];}}catch(_0x2767d5){logger['debug'](_0x2a6ae3(0x1d2)+util[_0x2a6ae3(0x1f0)](_0x2767d5));}return null;}[a119_0x229a0f(0x197)](_0x35e280){const _0x51b6f7=a119_0x229a0f,_0x4e7dab={};_0x4e7dab[_0x51b6f7(0x170)]='[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier',_0x4e7dab[_0x51b6f7(0x1ea)]=function(_0x3d2a88,_0x580409){return _0x3d2a88!==_0x580409;},_0x4e7dab[_0x51b6f7(0x19f)]=_0x51b6f7(0x16f),_0x4e7dab[_0x51b6f7(0x1a8)]=_0x51b6f7(0x164),_0x4e7dab[_0x51b6f7(0x185)]=_0x51b6f7(0x1b5),_0x4e7dab['YeFzX']=_0x51b6f7(0x193);const _0x487181=_0x4e7dab;try{if(!_0x35e280)return logger[_0x51b6f7(0x18e)](_0x487181['oOWeE']),null;const _0x3b700e=_0x35e280[_0x51b6f7(0x1cb)]||_0x35e280['name']||_0x35e280['title']||_0x35e280['displayName'];let _0x3b8c40=_0x3b700e;if(_0x35e280[_0x51b6f7(0x18a)]&&_0x35e280[_0x51b6f7(0x18a)][_0x51b6f7(0x202)]&&_0x487181[_0x51b6f7(0x1ea)](_0x35e280[_0x51b6f7(0x18a)][_0x51b6f7(0x202)],_0x487181[_0x51b6f7(0x19f)])){const _0x395b29=_0x35e280[_0x51b6f7(0x202)]||_0x35e280[_0x51b6f7(0x1da)];_0x395b29&&(_0x3b8c40=_0x35e280['parent']['name']+'\x20'+_0x395b29);}let _0x2d8c64=_0x35e280[_0x51b6f7(0x1cc)];if(!_0x2d8c64&&_0x35e280[_0x51b6f7(0x18d)]){try{const _0x873ce4=stackTrace[_0x51b6f7(0x1f2)](_0x35e280['asyncError']);if(_0x873ce4[0x0]&&_0x873ce4[0x0][_0x51b6f7(0x1ed)]){const _0x40d48f=_0x873ce4[0x0]['getFileName']();_0x40d48f&&!_0x40d48f['includes'](_0x487181[_0x51b6f7(0x1a8)])&&(_0x2d8c64=_0x40d48f);}}catch(_0x5a899d){logger[_0x51b6f7(0x1e3)](_0x51b6f7(0x1d3)+util[_0x51b6f7(0x1f0)](_0x5a899d));}if(!_0x2d8c64&&_0x35e280[_0x51b6f7(0x18d)]['stack']){const _0x19e4de=_0x35e280[_0x51b6f7(0x18d)][_0x51b6f7(0x1e7)][_0x51b6f7(0x160)]('\x0a');for(const _0x3a5387 of _0x19e4de){const _0x56ef55=_0x3a5387[_0x51b6f7(0x20e)](/at (.+?):\d+:\d+/);if(_0x56ef55&&_0x56ef55[0x1]&&!_0x56ef55[0x1][_0x51b6f7(0x1e8)](_0x487181[_0x51b6f7(0x1a8)])){_0x2d8c64=_0x56ef55[0x1];break;}}}}const _0xe9a5b6=_0x2d8c64+'::'+_0x3b8c40,_0x40d4ac=crypto[_0x51b6f7(0x1e9)](_0x487181['nWfuf'])[_0x51b6f7(0x17e)](_0xe9a5b6)['digest'](_0x487181['YeFzX'])[_0x51b6f7(0x1f8)](0x0,0x8),_0x1ec138=process[_0x51b6f7(0x184)]+_0x51b6f7(0x1bf)+_0x40d4ac;return logger[_0x51b6f7(0x1e3)](_0x51b6f7(0x1fb)+_0x1ec138+_0x51b6f7(0x19c)+_0xe9a5b6),_0x1ec138;}catch(_0x5f3602){return logger[_0x51b6f7(0x18e)](_0x51b6f7(0x206)+util[_0x51b6f7(0x1f0)](_0x5f3602)),null;}}[a119_0x229a0f(0x1a2)](_0x678729){const _0x5e4917=a119_0x229a0f,_0x59f426={};_0x59f426['ybbPE']='[jestUtils]\x20No\x20test\x20object\x20provided';const _0x63a831=_0x59f426;if(!_0x678729)return logger[_0x5e4917(0x1e3)](_0x63a831[_0x5e4917(0x1c2)]),null;const _0x489f5b=this[_0x5e4917(0x1d4)](_0x678729),_0x10e6c3={};_0x10e6c3[_0x5e4917(0x202)]=_0x678729[_0x5e4917(0x202)]||_0x678729[_0x5e4917(0x1da)],_0x10e6c3['parent']=_0x678729[_0x5e4917(0x18a)],_0x10e6c3['testPath']=_0x489f5b,_0x10e6c3[_0x5e4917(0x18d)]=_0x678729['asyncError'];const _0x47eb46=_0x10e6c3;return this[_0x5e4917(0x197)](_0x47eb46);}[a119_0x229a0f(0x1f7)](_0x1dca67,_0x41cd42=null){const _0x4587c7=a119_0x229a0f,_0x454a56={};_0x454a56[_0x4587c7(0x191)]=_0x4587c7(0x175);const _0x3c6950=_0x454a56;if(!_0x1dca67)return logger[_0x4587c7(0x1e3)](_0x3c6950[_0x4587c7(0x191)]),_0x41cd42;if(_0x1dca67[_0x4587c7(0x1e0)])return logger[_0x4587c7(0x1e3)](_0x4587c7(0x1bb)+_0x1dca67[_0x4587c7(0x1e0)]),_0x1dca67['testIdentifier'];return this['createJestTestIdentifier'](_0x1dca67)||_0x41cd42;}}module['exports']=o11yClassErrorHandler(JestUtils,[a119_0x229a0f(0x1db),a119_0x229a0f(0x1f4),'getRootParentFile',a119_0x229a0f(0x1ee),a119_0x229a0f(0x188),'getTestIdentifier','createTestFrameworkData','createHookData','getHookRunEventData',a119_0x229a0f(0x16a),a119_0x229a0f(0x1d4),'createJestTestIdentifier',a119_0x229a0f(0x1a2),a119_0x229a0f(0x1f7)]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';const a120_0x2a48d6=a120_0x3773;(function(_0x1a3291,_0x468917){const _0xb5d39=a120_0x3773,_0x391f00=_0x1a3291();while(!![]){try{const _0x35bed3=-parseInt(_0xb5d39(0x1be))/0x1*(-parseInt(_0xb5d39(0x1cd))/0x2)+parseInt(_0xb5d39(0x1d6))/0x3*(-parseInt(_0xb5d39(0x1e5))/0x4)+-parseInt(_0xb5d39(0x1da))/0x5*(parseInt(_0xb5d39(0x1d9))/0x6)+-parseInt(_0xb5d39(0x1b9))/0x7*(-parseInt(_0xb5d39(0x1ad))/0x8)+-parseInt(_0xb5d39(0x1cc))/0x9+-parseInt(_0xb5d39(0x1a7))/0xa+parseInt(_0xb5d39(0x1c6))/0xb;if(_0x35bed3===_0x468917)break;else _0x391f00['push'](_0x391f00['shift']());}catch(_0x4ea65f){_0x391f00['push'](_0x391f00['shift']());}}}(a120_0x2b66,0x43ec2));function a120_0x2b66(){const _0x34f783=['DGILK','modifyBrowserStackCaps','isUndefined','\x20doesn\x27t\x20exist','length','forEach','index','3bbDHIo','initialize','launchBuild','6IAyUBo','1221845wLXfrL','resolve','config','\x20resolves\x20outside\x20the\x20project\x20directory\x20and\x20was\x20rejected','path','getHubUrl','end','SDK_CLEANUP','vanilla','File\x20','YhzFX','1657076IbyMQg','../../helpers/performance/constants','5359920XqtjLI','useW3C','configuration','WtAAn','platforms','hLhqW','4808RrJzPs','parallelsPerPlatform','sep','../../helpers/performance/performance-tester','handleApp','Config\x20yml\x20is\x20required','file','exports','finalExecution','push','File\x20path\x20is\x20required','FVRwd','6125uBdzvC','getInstance','../../helpers/helper','proxySettings','../../helpers/BrowserStackSetup','6AglFoj','startsWith','EVENTS','modifyBrowserStackW3CCaps','SDK_SETUP','start','gBlff','wGuYb','8348131NHoxJY','../../helpers/utilities','setupBrowserstackLocal','finally','funMV','File\x20path\x20','2627550NpURjd','159998IMGSlu','cwd'];a120_0x2b66=function(){return _0x34f783;};return a120_0x2b66();}function a120_0x3773(_0x4e7da6,_0x4f6a46){const _0x2b6646=a120_0x2b66();return a120_0x3773=function(_0x37738a,_0x50098c){_0x37738a=_0x37738a-0x1a7;let _0xd9f4f9=_0x2b6646[_0x37738a];return _0xd9f4f9;},a120_0x3773(_0x4e7da6,_0x4f6a46);}const fs=require('fs'),path=require(a120_0x2a48d6(0x1de)),{default:BrowserStackSetup}=require(a120_0x2a48d6(0x1bd)),helper=require(a120_0x2a48d6(0x1bb)),PerformanceTester=require(a120_0x2a48d6(0x1b0)),PerformanceEvents=require(a120_0x2a48d6(0x1e6))[a120_0x2a48d6(0x1c0)],utilities=require(a120_0x2a48d6(0x1c7)),{parallelVanillaRun}=require('../test-runner'),TestHubHandler=require('../../helpers/testhub/testhubHandler'),BrowserstackCLI=require('../v2/browserstackCLI');async function run(_0x4c296e,_0x2a8ed4,_0x3eb72b){const _0x1fd726=a120_0x2a48d6,_0x570432={'hLhqW':_0x1fd726(0x1e2),'wGuYb':function(_0x217922,_0x1b5c25){return _0x217922(_0x1b5c25);},'YhzFX':_0x1fd726(0x1b7),'WtAAn':function(_0x342753,_0x38612b){return _0x342753!==_0x38612b;},'tdEQv':function(_0x5ac53e,_0x8977c2){return _0x5ac53e+_0x8977c2;},'FVRwd':function(_0xad2546,_0x4193fd){return _0xad2546(_0x4193fd);},'DGILK':_0x1fd726(0x1b2),'funMV':function(_0x507f5f,_0x481d99){return _0x507f5f>_0x481d99;},'tTzLK':function(_0x26c756,_0x52b5b5){return _0x26c756*_0x52b5b5;},'gBlff':function(_0x385c29,_0x10254c,_0x30e804){return _0x385c29(_0x10254c,_0x30e804);}};await _0x3eb72b[_0x1fd726(0x1d7)](_0x4c296e);!BrowserstackCLI[_0x1fd726(0x1ba)]()['isRunning']()&&await _0x3eb72b[_0x1fd726(0x1c8)]();await helper[_0x1fd726(0x1b1)](_0x3eb72b[_0x1fd726(0x1dc)]);const _0x24bef2=[];if(helper[_0x1fd726(0x1d1)](_0x4c296e['_'][0x1]))throw _0x570432[_0x1fd726(0x1c5)](Error,_0x570432[_0x1fd726(0x1e4)]);const _0x41f7aa=process[_0x1fd726(0x1ce)](),_0x15cfa4=path[_0x1fd726(0x1db)](_0x41f7aa,_0x4c296e['_'][0x1]);if(_0x570432[_0x1fd726(0x1aa)](_0x15cfa4,_0x41f7aa)&&!_0x15cfa4[_0x1fd726(0x1bf)](_0x570432['tdEQv'](_0x41f7aa,path[_0x1fd726(0x1af)])))throw _0x570432['FVRwd'](Error,_0x1fd726(0x1cb)+_0x4c296e['_'][0x1]+_0x1fd726(0x1dd));if(!fs['existsSync'](_0x15cfa4))throw _0x570432['wGuYb'](Error,_0x1fd726(0x1e3)+_0x4c296e['_'][0x1]+_0x1fd726(0x1d2));if(!_0x3eb72b[_0x1fd726(0x1dc)])throw _0x570432[_0x1fd726(0x1b8)](Error,_0x570432[_0x1fd726(0x1cf)]);const _0x37fba7=helper[_0x1fd726(0x1a8)](_0x3eb72b['config']);_0x3eb72b[_0x1fd726(0x1dc)][_0x1fd726(0x1ab)]&&_0x570432[_0x1fd726(0x1ca)](_0x3eb72b[_0x1fd726(0x1dc)][_0x1fd726(0x1ab)][_0x1fd726(0x1d3)],0x0)&&_0x3eb72b[_0x1fd726(0x1dc)]['platforms'][_0x1fd726(0x1d4)]((_0x2c1b20,_0x1e3150)=>{const _0x12535f=_0x1fd726;_0x37fba7?_0x24bef2[_0x12535f(0x1b6)](helper[_0x12535f(0x1c1)](_0x3eb72b[_0x12535f(0x1dc)],_0x570432[_0x12535f(0x1ac)],_0x1e3150)):_0x24bef2[_0x12535f(0x1b6)](helper[_0x12535f(0x1d0)](_0x3eb72b[_0x12535f(0x1dc)],_0x570432[_0x12535f(0x1ac)],_0x1e3150));});let _0x226103,_0x163a78;const _0x10140a=[];if(_0x570432[_0x1fd726(0x1ca)](_0x24bef2['length'],0x0))_0x24bef2[_0x1fd726(0x1d4)]((_0xe11435,_0x231de5)=>{const _0x3439bd=_0x1fd726,_0x17c07c={};_0x17c07c[_0x3439bd(0x1d5)]=_0x231de5,_0x226103={'server':helper[_0x3439bd(0x1df)](_0x3eb72b[_0x3439bd(0x1dc)]),'proxySettings':_0x3eb72b[_0x3439bd(0x1dc)][_0x3439bd(0x1bc)],'platform':helper['getPlatformName'](_0xe11435),'platformCaps':Object['assign'](_0x17c07c,_0x3eb72b['config'][_0x3439bd(0x1ab)][_0x231de5])};const _0xe7b33f={'capability':_0xe11435,..._0x226103};_0xe7b33f[_0x3439bd(0x1b3)]=_0x15cfa4,_0xe7b33f['args']=_0x2a8ed4;const _0x1796f1={};_0x1796f1['configuration']=_0xe7b33f,_0x163a78=_0x1796f1,_0x10140a[_0x3439bd(0x1b6)](_0x163a78);});else{let _0xc8416a;_0x37fba7?_0xc8416a=helper[_0x1fd726(0x1c1)](_0x3eb72b[_0x1fd726(0x1dc)],_0x570432[_0x1fd726(0x1ac)],0x0):_0xc8416a=helper[_0x1fd726(0x1d0)](_0x3eb72b['config'],_0x570432['hLhqW'],0x0);_0x226103={'server':helper[_0x1fd726(0x1df)](_0x3eb72b[_0x1fd726(0x1dc)]),'proxySettings':_0x3eb72b['config'][_0x1fd726(0x1bc)]};const _0x50a394={'capability':_0xc8416a,..._0x226103};_0x50a394[_0x1fd726(0x1b3)]=_0x15cfa4,_0x50a394['args']=_0x2a8ed4;const _0x2fa5c9={};_0x2fa5c9[_0x1fd726(0x1a9)]=_0x50a394,_0x163a78=_0x2fa5c9,_0x10140a[_0x1fd726(0x1b6)](_0x163a78);}const _0x43c45b=await TestHubHandler[_0x1fd726(0x1d8)](_0x570432[_0x1fd726(0x1ac)],_0x3eb72b),_0x2835f6=_0x570432['tTzLK'](_0x3eb72b[_0x1fd726(0x1dc)]['platforms']['length']||0x1,_0x3eb72b[_0x1fd726(0x1dc)][_0x1fd726(0x1ae)]||0x1);PerformanceTester[_0x1fd726(0x1e0)](PerformanceEvents[_0x1fd726(0x1c2)]),_0x570432[_0x1fd726(0x1c4)](parallelVanillaRun,_0x10140a,_0x2835f6)['then'](_0x2e4e6d=>{})[_0x1fd726(0x1c9)](async()=>{const _0x58acd3=_0x1fd726;PerformanceTester[_0x58acd3(0x1c3)](PerformanceEvents[_0x58acd3(0x1e1)]),await utilities[_0x58acd3(0x1b5)](_0x3eb72b);});}module[a120_0x2a48d6(0x1b4)]=run;
|
package/src/browserStackSdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121_0x46ff26=a121_0x7243;(function(_0x2a6ca1,_0x4180d6){const _0x39a25e=a121_0x7243,_0x2d9e3b=_0x2a6ca1();while(!![]){try{const _0x3350cb=-parseInt(_0x39a25e(0x14f))/0x1*(parseInt(_0x39a25e(0x131))/0x2)+parseInt(_0x39a25e(0x138))/0x3*(parseInt(_0x39a25e(0x13c))/0x4)+parseInt(_0x39a25e(0x13d))/0x5*(-parseInt(_0x39a25e(0x14d))/0x6)+parseInt(_0x39a25e(0x142))/0x7*(-parseInt(_0x39a25e(0x133))/0x8)+parseInt(_0x39a25e(0x14c))/0x9+parseInt(_0x39a25e(0x13f))/0xa+-parseInt(_0x39a25e(0x12c))/0xb*(parseInt(_0x39a25e(0x144))/0xc);if(_0x3350cb===_0x4180d6)break;else _0x2d9e3b['push'](_0x2d9e3b['shift']());}catch(_0x4384ff){_0x2d9e3b['push'](_0x2d9e3b['shift']());}}}(a121_0xd817,0xc5486));const TestMetadata=require(a121_0x46ff26(0x147));function a121_0xd817(){const _0x2609f0=['setTestMetadata','808576sWEbxp','ifcZc','browser_version','osVersion','LjKtd','6ekeVPH','getCurrentPlatform','platformVersion','PpksR','990852IWjlCS','5boaorB','deviceName','11191450UtYqCU','customVariables','pTHHW','35OBLSyU','browserName','436524JqQMjf','browserVersion','platformName','./helpers/metadata','biGKx','DgMAb','WKfyb','set','4707315XYwCyV','2471784ENkOYm','__platformCaps','914jrFGXS','VczkM','exports','nYeYu','tIQkp','110eLBqSj','IWpcj','platform_version','RKOCi','sQDwy','106WjKnts'];a121_0xd817=function(){return _0x2609f0;};return a121_0xd817();}class BrowserStackSdk{static[a121_0x46ff26(0x139)](){const _0x158078=a121_0x46ff26,_0x348fe1={};_0x348fe1[_0x158078(0x134)]='os_version',_0x348fe1[_0x158078(0x12f)]=_0x158078(0x136),_0x348fe1[_0x158078(0x13b)]='browser',_0x348fe1['biGKx']=_0x158078(0x143),_0x348fe1[_0x158078(0x130)]=_0x158078(0x135),_0x348fe1[_0x158078(0x141)]=_0x158078(0x145),_0x348fe1[_0x158078(0x12d)]='device',_0x348fe1[_0x158078(0x12b)]=_0x158078(0x13e),_0x348fe1[_0x158078(0x149)]='platform',_0x348fe1['nYeYu']=_0x158078(0x146),_0x348fe1[_0x158078(0x14a)]=_0x158078(0x12e),_0x348fe1[_0x158078(0x128)]=_0x158078(0x13a),_0x348fe1['LjKtd']=_0x158078(0x140);const _0x39e18c=_0x348fe1,_0x397c85={};if(global['__platformCaps']){const _0x27cb3a=global[_0x158078(0x14e)],_0x47c264=_0x27cb3a[_0x39e18c[_0x158078(0x134)]]||_0x27cb3a[_0x39e18c[_0x158078(0x12f)]],_0x4de1aa=_0x27cb3a[_0x39e18c[_0x158078(0x13b)]]||_0x27cb3a[_0x39e18c['biGKx']],_0x214052=_0x27cb3a[_0x39e18c[_0x158078(0x130)]]||_0x27cb3a[_0x39e18c[_0x158078(0x141)]],_0x25847f=_0x27cb3a[_0x39e18c['IWpcj']]||_0x27cb3a[_0x39e18c[_0x158078(0x12b)]],_0x538afe=_0x27cb3a[_0x39e18c[_0x158078(0x149)]]||_0x27cb3a[_0x39e18c[_0x158078(0x12a)]],_0x1a9d77=_0x27cb3a[_0x39e18c['WKfyb']]||_0x27cb3a[_0x39e18c['VczkM']];_0x27cb3a['os']&&(_0x397c85['os']=_0x27cb3a['os']),_0x47c264&&(_0x397c85[_0x39e18c[_0x158078(0x12f)]]=_0x47c264),_0x4de1aa&&(_0x397c85[_0x39e18c[_0x158078(0x148)]]=_0x4de1aa),_0x214052&&(_0x397c85[_0x39e18c[_0x158078(0x141)]]=_0x214052),_0x25847f&&(_0x397c85[_0x39e18c['tIQkp']]=_0x25847f),_0x538afe&&(_0x397c85[_0x39e18c[_0x158078(0x12a)]]=_0x538afe),_0x1a9d77&&(_0x397c85[_0x39e18c['VczkM']]=_0x1a9d77),_0x27cb3a[_0x39e18c[_0x158078(0x137)]]&&(_0x397c85[_0x39e18c[_0x158078(0x137)]]=_0x27cb3a[_0x39e18c[_0x158078(0x137)]]);}return _0x397c85;}static[a121_0x46ff26(0x132)](_0x526565={}){const _0x149da0=a121_0x46ff26;TestMetadata[_0x149da0(0x14b)](_0x526565);}}function a121_0x7243(_0x523e85,_0x1ec5f4){const _0xd81713=a121_0xd817();return a121_0x7243=function(_0x724312,_0x714daa){_0x724312=_0x724312-0x128;let _0x3f2fd1=_0xd81713[_0x724312];return _0x3f2fd1;},a121_0x7243(_0x523e85,_0x1ec5f4);}module[a121_0x46ff26(0x129)]=BrowserStackSdk;
|