browserstack-node-sdk 1.50.10 → 1.50.11
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/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/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/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/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/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/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/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.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/testhubModule.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/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/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/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.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
|
-
function a85_0x3dc4(_0x82db18,_0x494157){const _0x40dad2=a85_0x40da();return a85_0x3dc4=function(_0x3dc4f1,_0x2aac8a){_0x3dc4f1=_0x3dc4f1-0xfa;let _0x1d3b85=_0x40dad2[_0x3dc4f1];return _0x1d3b85;},a85_0x3dc4(_0x82db18,_0x494157);}const a85_0xe5ad20=a85_0x3dc4;(function(_0x4761bd,_0xb16a3e){const _0x3cf820=a85_0x3dc4,_0x52ff65=_0x4761bd();while(!![]){try{const _0x41b299=-parseInt(_0x3cf820(0x146))/0x1+parseInt(_0x3cf820(0x13f))/0x2+-parseInt(_0x3cf820(0x115))/0x3*(-parseInt(_0x3cf820(0x15b))/0x4)+parseInt(_0x3cf820(0x102))/0x5+-parseInt(_0x3cf820(0x120))/0x6*(-parseInt(_0x3cf820(0x165))/0x7)+parseInt(_0x3cf820(0x15c))/0x8*(parseInt(_0x3cf820(0x154))/0x9)+parseInt(_0x3cf820(0x104))/0xa*(-parseInt(_0x3cf820(0x159))/0xb);if(_0x41b299===_0xb16a3e)break;else _0x52ff65['push'](_0x52ff65['shift']());}catch(_0x124d8d){_0x52ff65['push'](_0x52ff65['shift']());}}}(a85_0x40da,0x1dc8a));const util=require(a85_0xe5ad20(0x166)),BaseModule=require('./baseModule'),{createClassLogger}=require(a85_0xe5ad20(0x10e)),AutomationFramework=require(a85_0xe5ad20(0xfa)),AutomationFrameworkState=require('../state/automationFrameworkState.js'),HookState=require(a85_0xe5ad20(0x121)),TestFramework=require('../framework/testFramework.js'),TestFrameworkState=require('../state/testFrameworkState.js'),PlaywrightDriverModule=require(a85_0xe5ad20(0x14b)),TestFrameworkConstants=require(a85_0xe5ad20(0x143)),GrpcClient=require(a85_0xe5ad20(0x11f)),CLIUtils=require(a85_0xe5ad20(0xff)),TestInfo=require(a85_0xe5ad20(0x105)),testHubConstants=require(a85_0xe5ad20(0x123)),{FRAMEWORKS}=require(a85_0xe5ad20(0x156)),helper=require(a85_0xe5ad20(0x122)),LoadTestModule=require(a85_0xe5ad20(0x15f)),JestUtils=require(a85_0xe5ad20(0x12c)),BrowserstackCLI=require(a85_0xe5ad20(0x167)),{getPlaywrightProvider,getProductForSession}=require(a85_0xe5ad20(0x122));class TestHubModule extends BaseModule{[a85_0xe5ad20(0x15d)]=createClassLogger(a85_0xe5ad20(0x130));constructor(_0x8dcbe3,_0x37983e=null){const _0x2f641b=a85_0xe5ad20,_0x3b8ba4={};_0x3b8ba4[_0x2f641b(0x10c)]=_0x2f641b(0x13e),_0x3b8ba4[_0x2f641b(0x119)]=_0x2f641b(0x130);const _0x43aecf=_0x3b8ba4,_0x56cb61=_0x43aecf['mtaVz']['split']('|');let _0x4edff4=0x0;while(!![]){switch(_0x56cb61[_0x4edff4++]){case'0':process['env'][testHubConstants[_0x2f641b(0x138)][_0x2f641b(0x15a)]]=this[_0x2f641b(0x14d)][_0x2f641b(0x106)]();continue;case'1':this[_0x2f641b(0x101)]=new JestUtils();continue;case'2':super(_0x37983e);continue;case'3':BrowserstackCLI[_0x2f641b(0x126)]=this[_0x2f641b(0x14d)][_0x2f641b(0x106)]();continue;case'4':this[_0x2f641b(0x14d)]=_0x8dcbe3;continue;case'5':AutomationFramework[_0x2f641b(0x15e)](AutomationFrameworkState[_0x2f641b(0x168)],HookState[_0x2f641b(0x125)],this[_0x2f641b(0xfe)][_0x2f641b(0x11d)](this));continue;case'6':this['name']=_0x43aecf[_0x2f641b(0x119)];continue;case'7':process[_0x2f641b(0x12e)][testHubConstants[_0x2f641b(0x138)][_0x2f641b(0x11c)]]=this[_0x2f641b(0x14d)]['getJwt']();continue;case'8':Object[_0x2f641b(0x141)](TestFrameworkState)[_0x2f641b(0x150)](_0x51513b=>{const _0xa89079=_0x2f641b;Object[_0xa89079(0x141)](HookState)['forEach'](_0x371a62=>{const _0x498a05=_0xa89079;TestFramework[_0x498a05(0x15e)](_0x51513b,_0x371a62,this[_0x498a05(0x162)]['bind'](this));});});continue;}break;}}[a85_0xe5ad20(0x131)](){const _0x265091=a85_0xe5ad20;return TestHubModule[_0x265091(0x113)];}[a85_0xe5ad20(0x162)](_0x66c066){const _0xb5d75=a85_0xe5ad20,_0x48f669={};_0x48f669[_0xb5d75(0x10a)]=function(_0x238592,_0x20b359){return _0x238592===_0x20b359;};const _0x2923fb=_0x48f669,_0x4354c5=_0x66c066[_0xb5d75(0x151)],_0x235e8d=_0x4354c5[_0xb5d75(0x109)]();(_0x2923fb[_0xb5d75(0x10a)](_0x235e8d,TestFrameworkState[_0xb5d75(0x137)])||CLIUtils[_0xb5d75(0x12a)](_0x235e8d[_0xb5d75(0x148)]()['split']('.')[0x1]))&&this['sendTestFrameworkEvent'](_0x66c066);}async[a85_0xe5ad20(0x108)](_0x5bfd33){const _0x323978=a85_0xe5ad20,_0x590a43={};_0x590a43['qUftu']=function(_0x35ecb6,_0x26add3){return _0x35ecb6===_0x26add3;},_0x590a43[_0x323978(0x112)]=_0x323978(0x103);const _0x470bae=_0x590a43;try{const _0x8f66cd=BrowserstackCLI[_0x323978(0x10b)]()['getTestFramework']()['createTestFrameworkEventPayload'](_0x5bfd33);if(!_0x8f66cd||_0x470bae[_0x323978(0x116)](Object[_0x323978(0x144)](_0x8f66cd)[_0x323978(0x153)],0x0)){this['logger']['debug'](_0x470bae[_0x323978(0x112)]);return;}const _0x522046=await GrpcClient['getInstance']()[_0x323978(0x160)](_0x8f66cd);this[_0x323978(0x15d)]['debug'](_0x323978(0x149)+_0x8f66cd[_0x323978(0xfb)]+_0x323978(0x11e)+_0x8f66cd[_0x323978(0x132)]);}catch(_0x489b64){this[_0x323978(0x15d)]['error'](_0x323978(0x111)+util[_0x323978(0x133)](_0x489b64));}}async[a85_0xe5ad20(0xfe)](_0x47e89c){const _0x223424=a85_0xe5ad20,_0x28e9fe={'mhBBI':function(_0xcd739d,_0x19bcf3){return _0xcd739d===_0x19bcf3;},'fEABo':_0x223424(0x142),'UqpeV':function(_0x400fbe,_0x42b0a7){return _0x400fbe(_0x42b0a7);},'GnGRf':function(_0x1f694b){return _0x1f694b();},'WYUZw':_0x223424(0x158),'AjksZ':function(_0x2aa994,_0x2f5c5c){return _0x2aa994===_0x2f5c5c;}};try{if(_0x47e89c[_0x223424(0x161)]){const _0x4ab0c2=this['getTestId'](_0x47e89c);this['logger'][_0x223424(0x118)](_0x223424(0x11a)+_0x4ab0c2);if(this[_0x223424(0x136)]&&_0x28e9fe[_0x223424(0x13d)](this[_0x223424(0x136)][_0x223424(0x12d)],FRAMEWORKS['JEST'])&&!_0x47e89c[_0x223424(0x10f)]){this[_0x223424(0x15d)]['debug'](_0x28e9fe['fEABo']);return;}let _0x199283,_0x5867f0;if(this[_0x223424(0x136)]&&_0x28e9fe['mhBBI'](this[_0x223424(0x136)][_0x223424(0x12d)],FRAMEWORKS['CUCUMBER']))_0x199283=_0x4ab0c2,_0x5867f0=TestInfo[_0x223424(0x11b)](_0x199283);else this['testFrameworkData']&&_0x28e9fe[_0x223424(0x13d)](this[_0x223424(0x136)]['name'],FRAMEWORKS[_0x223424(0x14c)])?(_0x199283=this['jestUtils'][_0x223424(0x155)](_0x47e89c['testInfo']),this[_0x223424(0x15d)]['debug'](_0x223424(0x114)+_0x199283)):(_0x199283=TestInfo[_0x223424(0x117)](_0x47e89c[_0x223424(0x10f)],_0x47e89c[_0x223424(0x10f)][_0x223424(0x145)]),_0x5867f0=TestInfo[_0x223424(0x11b)](_0x199283));const _0x4a0fed=TestInfo['getTestDetails'](_0x199283),_0x2184d6=_0x47e89c[_0x223424(0x151)],_0x1581cf=AutomationFramework[_0x223424(0x139)](_0x2184d6,PlaywrightDriverModule[_0x223424(0x10d)]),_0x436bb7=_0x4a0fed?.[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]||this['testFrameworkData']&&this[_0x223424(0x136)][_0x223424(0x12d)],_0x450f14=_0x4a0fed?.[TestFrameworkConstants[_0x223424(0xfd)]]||this[_0x223424(0x136)]&&this[_0x223424(0x136)][_0x223424(0x152)],_0x15599c=TestFrameworkState[_0x223424(0x137)]['toString']()[_0x223424(0x107)]('.')[0x1],_0x1f5312=HookState[_0x223424(0x125)][_0x223424(0x148)]()['split']('.')[0x1],_0x3bd569=_0x2184d6[_0x223424(0x134)](),_0x3a931d=AutomationFramework['getState'](_0x2184d6,PlaywrightDriverModule['KEY_HUB_URL'],''),_0x3602e8={'provider':_0x28e9fe['UqpeV'](getPlaywrightProvider,_0x3a931d),'frameworkName':_0x2184d6[_0x223424(0x14e)],'frameworkVersion':_0x2184d6[_0x223424(0x110)],'frameworkSessionId':LoadTestModule[_0x223424(0x128)]()?LoadTestModule[_0x223424(0x147)]():AutomationFramework[_0x223424(0x139)](_0x2184d6,PlaywrightDriverModule[_0x223424(0x12f)],''),'ref':_0x2184d6[_0x223424(0x164)](),'hubUrl':_0x3a931d,'product':_0x28e9fe[_0x223424(0x13c)](getProductForSession)};let _0x431ab0=AutomationFramework[_0x223424(0x139)](_0x2184d6,PlaywrightDriverModule[_0x223424(0x157)],{});_0x431ab0=Buffer[_0x223424(0x129)](JSON[_0x223424(0x13b)](_0x431ab0))[_0x223424(0x148)](_0x28e9fe['WYUZw']);const _0x2fcbd5={'hash':_0x3bd569[_0x223424(0x100)](),'threadId':_0x3bd569['getThreadId']()[_0x223424(0x148)](),'processId':_0x3bd569[_0x223424(0x127)]()[_0x223424(0x148)]()},_0x2e0e5e={};_0x2e0e5e[_0x223424(0x140)]=_0x199283;const _0x576d59={};_0x576d59[_0x223424(0x12b)]=_0x5867f0;const _0x4dd0d6={'platformIndex':_0x1581cf,'testFrameworkName':_0x436bb7,'testFrameworkVersion':_0x450f14,'testFrameworkState':_0x15599c,'testHookState':_0x1f5312,...this[_0x223424(0x136)]&&_0x28e9fe[_0x223424(0x13d)](this[_0x223424(0x136)][_0x223424(0x12d)],FRAMEWORKS[_0x223424(0x14c)])?_0x2e0e5e:_0x576d59,'automationSession':_0x3602e8,'capabilities':_0x431ab0,'executionContext':_0x2fcbd5};this[_0x223424(0x15d)][_0x223424(0x118)](_0x223424(0x163)+util[_0x223424(0x133)](_0x4dd0d6));const _0x3e56d9=await GrpcClient[_0x223424(0x10b)]()[_0x223424(0x14f)](_0x4dd0d6);this[_0x223424(0x15d)][_0x223424(0x118)](_0x223424(0x13a)+_0x4ab0c2+(this[_0x223424(0x136)]&&_0x28e9fe['AjksZ'](this[_0x223424(0x136)]['name'],FRAMEWORKS[_0x223424(0x14c)])?',\x20test_identifier:\x20'+_0x199283:''));}}catch(_0x5e6314){this[_0x223424(0x15d)][_0x223424(0xfc)]('Error\x20in\x20sending\x20CBTSession:\x20'+util[_0x223424(0x133)](_0x5e6314));}}}TestHubModule[a85_0xe5ad20(0x113)]=a85_0xe5ad20(0x130),TestHubModule[a85_0xe5ad20(0x124)]=a85_0xe5ad20(0x14a),module[a85_0xe5ad20(0x135)]=TestHubModule;function a85_0x40da(){const _0x31e7e2=['onAllTestEvents','onPageCreate\x20CBTSession\x20payload:\x20','getRef','927871AGMEiE','util','../browserstackCLI.js','CREATE','../framework/automationFramework.js','testFrameworkState','error','KEY_TEST_FRAMEWORK_VERSION','onPageCreate','../cliUtils.js','getId','jestUtils','171420uqlIfX','sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event','2099790UpaDtC','../TestInfo.js','getBuildHashedId','split','sendTestFrameworkEvent','getCurrentTestState','Cvccw','getInstance','mtaVz','KEY_PLATFORM_INDEX','../../../helpers/classLogger.js','testInfo','frameworkVersion','Error\x20in\x20sendTestFrameworkEvent:\x20','zzJVi','MODULE_NAME','onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20','414567indiMw','qUftu','getTestIdentifierFromTestInfo','debug','AKojm','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','getTestUUID','BROWSERSTACK_TESTHUB_JWT','bind','\x20hookState:\x20','../grpcClient.js','6eSRAtd','../state/hookState.js','../../../helpers/helper.js','../../../helpers/testhub/constants','KEY_TEST_DEFERRED','POST','O11yHashedID','getProcessId','isLTSSession','from','matchHookRegex','testUuid','../utils/jest-utils.js','name','env','KEY_SESSION_ID','TestHubModule','getModuleName','hookState','format','getContext','exports','testFrameworkData','TEST','ENV_VAR','getState','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','stringify','GnGRf','mhBBI','2|6|4|1|5|8|7|0|3','66212ILaezP','test_identifier','values','onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','../framework/constants/testFrameworkConstants.js','keys','retry','91519XemzEe','getLTSSessionId','toString','sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20','test_deferred','./playwrightDriverModule.js','JEST','testhubConfig','frameworkName','testSessionEvent','forEach','instance','version','length','1746rVyXEQ','recreateIdentifierFromTestInfo','../../../helpers/test-observability/constants.js','KEY_CAPABILITIES','base64','11zHHnvG','BROWSERSTACK_TESTHUB_UUID','4IyKyUj','3520DFtQZj','logger','registerObserver','./loadTestModule.js','testFrameworkEvent','page'];a85_0x40da=function(){return _0x31e7e2;};return a85_0x40da();}
|
|
1
|
+
const a85_0x2cf201=a85_0x3e80;function a85_0x3e80(_0x3e04eb,_0x389a81){const _0x25d8dd=a85_0x25d8();return a85_0x3e80=function(_0x3e80f1,_0x5a5596){_0x3e80f1=_0x3e80f1-0x1d5;let _0x3ce243=_0x25d8dd[_0x3e80f1];return _0x3ce243;},a85_0x3e80(_0x3e04eb,_0x389a81);}(function(_0xf4afad,_0x26af71){const _0x1030d5=a85_0x3e80,_0x29e119=_0xf4afad();while(!![]){try{const _0x4526ec=parseInt(_0x1030d5(0x220))/0x1*(parseInt(_0x1030d5(0x1fc))/0x2)+parseInt(_0x1030d5(0x222))/0x3+-parseInt(_0x1030d5(0x223))/0x4+-parseInt(_0x1030d5(0x208))/0x5*(-parseInt(_0x1030d5(0x214))/0x6)+-parseInt(_0x1030d5(0x235))/0x7+parseInt(_0x1030d5(0x213))/0x8*(-parseInt(_0x1030d5(0x22d))/0x9)+-parseInt(_0x1030d5(0x242))/0xa*(-parseInt(_0x1030d5(0x232))/0xb);if(_0x4526ec===_0x26af71)break;else _0x29e119['push'](_0x29e119['shift']());}catch(_0xddc97d){_0x29e119['push'](_0x29e119['shift']());}}}(a85_0x25d8,0xa5563));const util=require(a85_0x2cf201(0x20c)),BaseModule=require(a85_0x2cf201(0x22c)),{createClassLogger}=require(a85_0x2cf201(0x23a)),AutomationFramework=require(a85_0x2cf201(0x1e7)),AutomationFrameworkState=require(a85_0x2cf201(0x225)),HookState=require(a85_0x2cf201(0x211)),TestFramework=require('../framework/testFramework.js'),TestFrameworkState=require('../state/testFrameworkState.js'),PlaywrightDriverModule=require(a85_0x2cf201(0x21a)),TestFrameworkConstants=require(a85_0x2cf201(0x217)),GrpcClient=require(a85_0x2cf201(0x1e1)),CLIUtils=require(a85_0x2cf201(0x1fa)),TestInfo=require(a85_0x2cf201(0x236)),testHubConstants=require(a85_0x2cf201(0x20b)),{FRAMEWORKS}=require('../../../helpers/test-observability/constants.js'),helper=require(a85_0x2cf201(0x1d8)),LoadTestModule=require('./loadTestModule.js'),JestUtils=require(a85_0x2cf201(0x1dd)),BrowserstackCLI=require(a85_0x2cf201(0x1d5)),{getPlaywrightProvider,getProductForSession}=require(a85_0x2cf201(0x1d8));function a85_0x25d8(){const _0x3278d2=['11vHqUKg','vnJST','KEY_TEST_FRAMEWORK_VERSION','1068613rPIHIn','../TestInfo.js','testUuid','Error\x20in\x20sendTestFrameworkEvent:\x20','\x20hookState:\x20','../../../helpers/classLogger.js','testFrameworkState','registerObserver','OTxOC','getTestDetails','MODULE_NAME','TestHubModule','getTestId','2171330PoRFiL','instance','retry','../browserstackCLI.js','getRef','getInstance','../../../helpers/helper.js','getModuleName','onPageCreate','getState','jestUtils','../utils/jest-utils.js','hFMIa','ENV_VAR','getTestFramework','../grpcClient.js','error','base64','onPageCreate\x20CBTSession\x20payload:\x20','split','values','../framework/automationFramework.js','test_identifier','getId','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','logger','Error\x20in\x20sending\x20CBTSession:\x20','forEach','getTestUUID','sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event','env','6|5|2|1|8|4|0|3|7','vGYvf','testFrameworkData','test_deferred','testInfo','onAllTestEvents','POST','recreateIdentifierFromTestInfo','ZPVgH','../cliUtils.js','exports','1998006ZNdTfH','KEY_PLATFORM_INDEX','getBuildHashedId','JEST','name','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','getContext','BROWSERSTACK_TESTHUB_JWT','TEST','testFrameworkEvent','pKlRs','page','75ibFNsu','toString','bind','../../../helpers/testhub/constants','util','getJwt','frameworkName','debug','getThreadId','../state/hookState.js','SrtMZ','152824jeiEvW','115098gdZygd','RHmtZ','frameworkVersion','../framework/constants/testFrameworkConstants.js','KEY_HUB_URL','isLTSSession','./playwrightDriverModule.js','KEY_TEST_DEFERRED','onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20','getCurrentTestState','matchHookRegex','format','1TJpFIE','getTestIdentifierFromTestInfo','1028058uPhCgc','3837520ZXfOBF','onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','../state/automationFrameworkState.js','keys','CREATE','KEY_SESSION_ID',',\x20test_identifier:\x20','from','sendTestFrameworkEvent','./baseModule','27TaYoAm','testSessionEvent','stringify','sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20','testhubConfig'];a85_0x25d8=function(){return _0x3278d2;};return a85_0x25d8();}class TestHubModule extends BaseModule{[a85_0x2cf201(0x1eb)]=createClassLogger(a85_0x2cf201(0x240));constructor(_0xd12c78,_0x574259=null){const _0x175c6b=a85_0x2cf201,_0x4b4cad={};_0x4b4cad['ZPVgH']=_0x175c6b(0x1f1),_0x4b4cad[_0x175c6b(0x212)]=_0x175c6b(0x240);const _0x14475a=_0x4b4cad,_0x574865=_0x14475a[_0x175c6b(0x1f9)][_0x175c6b(0x1e5)]('|');let _0x399bae=0x0;while(!![]){switch(_0x574865[_0x399bae++]){case'0':process['env'][testHubConstants[_0x175c6b(0x1df)][_0x175c6b(0x203)]]=this[_0x175c6b(0x231)][_0x175c6b(0x20d)]();continue;case'1':this['jestUtils']=new JestUtils();continue;case'2':this[_0x175c6b(0x231)]=_0xd12c78;continue;case'3':process[_0x175c6b(0x1f0)][testHubConstants[_0x175c6b(0x1df)]['BROWSERSTACK_TESTHUB_UUID']]=this['testhubConfig'][_0x175c6b(0x1fe)]();continue;case'4':Object['values'](TestFrameworkState)[_0x175c6b(0x1ed)](_0x82914d=>{const _0x18ede0=_0x175c6b;Object[_0x18ede0(0x1e6)](HookState)[_0x18ede0(0x1ed)](_0x32d060=>{const _0x39dc21=_0x18ede0;TestFramework[_0x39dc21(0x23c)](_0x82914d,_0x32d060,this[_0x39dc21(0x1f6)][_0x39dc21(0x20a)](this));});});continue;case'5':this['name']=_0x14475a['SrtMZ'];continue;case'6':super(_0x574259);continue;case'7':BrowserstackCLI['O11yHashedID']=this[_0x175c6b(0x231)]['getBuildHashedId']();continue;case'8':AutomationFramework[_0x175c6b(0x23c)](AutomationFrameworkState[_0x175c6b(0x227)],HookState[_0x175c6b(0x1f7)],this[_0x175c6b(0x1da)][_0x175c6b(0x20a)](this));continue;}break;}}[a85_0x2cf201(0x1d9)](){const _0x1dbfb7=a85_0x2cf201;return TestHubModule[_0x1dbfb7(0x23f)];}[a85_0x2cf201(0x1f6)](_0x34c0f1){const _0x15f92d=a85_0x2cf201,_0xc1d9f1={};_0xc1d9f1['bKqgU']=function(_0x424eee,_0x85c247){return _0x424eee===_0x85c247;};const _0x430e4c=_0xc1d9f1,_0x481771=_0x34c0f1['instance'],_0xb18f18=_0x481771[_0x15f92d(0x21d)]();(_0x430e4c['bKqgU'](_0xb18f18,TestFrameworkState[_0x15f92d(0x204)])||CLIUtils[_0x15f92d(0x21e)](_0xb18f18[_0x15f92d(0x209)]()[_0x15f92d(0x1e5)]('.')[0x1]))&&this['sendTestFrameworkEvent'](_0x34c0f1);}async[a85_0x2cf201(0x22b)](_0x335018){const _0x2b797e=a85_0x2cf201,_0x3c9265={};_0x3c9265[_0x2b797e(0x1de)]=function(_0x1ac4ae,_0x2c1d18){return _0x1ac4ae===_0x2c1d18;},_0x3c9265[_0x2b797e(0x1f2)]=_0x2b797e(0x1ef);const _0x21920e=_0x3c9265;try{const _0x2bd4c9=BrowserstackCLI[_0x2b797e(0x1d7)]()[_0x2b797e(0x1e0)]()['createTestFrameworkEventPayload'](_0x335018);if(!_0x2bd4c9||_0x21920e[_0x2b797e(0x1de)](Object[_0x2b797e(0x226)](_0x2bd4c9)['length'],0x0)){this[_0x2b797e(0x1eb)]['debug'](_0x21920e[_0x2b797e(0x1f2)]);return;}const _0x38a4db=await GrpcClient[_0x2b797e(0x1d7)]()[_0x2b797e(0x205)](_0x2bd4c9);this[_0x2b797e(0x1eb)][_0x2b797e(0x20f)](_0x2b797e(0x230)+_0x2bd4c9[_0x2b797e(0x23b)]+_0x2b797e(0x239)+_0x2bd4c9['hookState']);}catch(_0x16cfa7){this[_0x2b797e(0x1eb)][_0x2b797e(0x1e2)](_0x2b797e(0x238)+util['format'](_0x16cfa7));}}async[a85_0x2cf201(0x1da)](_0x1a7004){const _0x30cbde=a85_0x2cf201,_0x171231={'pKlRs':function(_0x4d5f2c,_0x22a2ce){return _0x4d5f2c===_0x22a2ce;},'gpBDQ':_0x30cbde(0x224),'aPGtR':function(_0x1b2ea8,_0x53a731){return _0x1b2ea8===_0x53a731;},'vnJST':function(_0x4bfda9,_0x3c5b55){return _0x4bfda9(_0x3c5b55);},'OTxOC':function(_0x3a0cf3){return _0x3a0cf3();},'HDVLS':_0x30cbde(0x1e3),'RHmtZ':function(_0x47219b,_0x4bb1ed){return _0x47219b===_0x4bb1ed;},'vtuCv':function(_0x51ed05,_0x50b123){return _0x51ed05===_0x50b123;}};try{if(_0x1a7004[_0x30cbde(0x207)]){const _0x3733a8=this[_0x30cbde(0x241)](_0x1a7004);this['logger']['debug'](_0x30cbde(0x1ea)+_0x3733a8);if(this[_0x30cbde(0x1f3)]&&_0x171231[_0x30cbde(0x206)](this['testFrameworkData'][_0x30cbde(0x200)],FRAMEWORKS[_0x30cbde(0x1ff)])&&!_0x1a7004['testInfo']){this['logger'][_0x30cbde(0x20f)](_0x171231['gpBDQ']);return;}let _0x1eb876,_0x264164;if(this[_0x30cbde(0x1f3)]&&_0x171231['pKlRs'](this['testFrameworkData']['name'],FRAMEWORKS['CUCUMBER']))_0x1eb876=_0x3733a8,_0x264164=TestInfo['getTestUUID'](_0x1eb876);else this[_0x30cbde(0x1f3)]&&_0x171231['aPGtR'](this[_0x30cbde(0x1f3)][_0x30cbde(0x200)],FRAMEWORKS[_0x30cbde(0x1ff)])?(_0x1eb876=this[_0x30cbde(0x1dc)][_0x30cbde(0x1f8)](_0x1a7004[_0x30cbde(0x1f5)]),this['logger'][_0x30cbde(0x20f)](_0x30cbde(0x21c)+_0x1eb876)):(_0x1eb876=TestInfo[_0x30cbde(0x221)](_0x1a7004[_0x30cbde(0x1f5)],_0x1a7004[_0x30cbde(0x1f5)][_0x30cbde(0x244)]),_0x264164=TestInfo[_0x30cbde(0x1ee)](_0x1eb876));const _0x4946bc=TestInfo[_0x30cbde(0x23e)](_0x1eb876),_0x541425=_0x1a7004[_0x30cbde(0x243)],_0x5edb19=AutomationFramework[_0x30cbde(0x1db)](_0x541425,PlaywrightDriverModule[_0x30cbde(0x1fd)]),_0xb419cf=_0x4946bc?.[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]||this[_0x30cbde(0x1f3)]&&this['testFrameworkData'][_0x30cbde(0x200)],_0x21d20f=_0x4946bc?.[TestFrameworkConstants[_0x30cbde(0x234)]]||this[_0x30cbde(0x1f3)]&&this[_0x30cbde(0x1f3)]['version'],_0x256114=TestFrameworkState['TEST'][_0x30cbde(0x209)]()[_0x30cbde(0x1e5)]('.')[0x1],_0x119885=HookState[_0x30cbde(0x1f7)][_0x30cbde(0x209)]()[_0x30cbde(0x1e5)]('.')[0x1],_0x29b9a8=_0x541425[_0x30cbde(0x202)](),_0x36074c=AutomationFramework['getState'](_0x541425,PlaywrightDriverModule[_0x30cbde(0x218)],''),_0x3cfe01={'provider':_0x171231[_0x30cbde(0x233)](getPlaywrightProvider,_0x36074c),'frameworkName':_0x541425[_0x30cbde(0x20e)],'frameworkVersion':_0x541425[_0x30cbde(0x216)],'frameworkSessionId':LoadTestModule[_0x30cbde(0x219)]()?LoadTestModule['getLTSSessionId']():AutomationFramework[_0x30cbde(0x1db)](_0x541425,PlaywrightDriverModule[_0x30cbde(0x228)],''),'ref':_0x541425[_0x30cbde(0x1d6)](),'hubUrl':_0x36074c,'product':_0x171231[_0x30cbde(0x23d)](getProductForSession)};let _0x5f29bd=AutomationFramework['getState'](_0x541425,PlaywrightDriverModule['KEY_CAPABILITIES'],{});_0x5f29bd=Buffer[_0x30cbde(0x22a)](JSON[_0x30cbde(0x22f)](_0x5f29bd))['toString'](_0x171231['HDVLS']);const _0x55469a={'hash':_0x29b9a8[_0x30cbde(0x1e9)](),'threadId':_0x29b9a8[_0x30cbde(0x210)]()[_0x30cbde(0x209)](),'processId':_0x29b9a8['getProcessId']()[_0x30cbde(0x209)]()},_0x3fbf58={};_0x3fbf58[_0x30cbde(0x1e8)]=_0x1eb876;const _0x540142={};_0x540142[_0x30cbde(0x237)]=_0x264164;const _0x5af0f4={'platformIndex':_0x5edb19,'testFrameworkName':_0xb419cf,'testFrameworkVersion':_0x21d20f,'testFrameworkState':_0x256114,'testHookState':_0x119885,...this[_0x30cbde(0x1f3)]&&_0x171231[_0x30cbde(0x215)](this['testFrameworkData']['name'],FRAMEWORKS[_0x30cbde(0x1ff)])?_0x3fbf58:_0x540142,'automationSession':_0x3cfe01,'capabilities':_0x5f29bd,'executionContext':_0x55469a};this[_0x30cbde(0x1eb)][_0x30cbde(0x20f)](_0x30cbde(0x1e4)+util[_0x30cbde(0x21f)](_0x5af0f4));const _0x13c23b=await GrpcClient[_0x30cbde(0x1d7)]()[_0x30cbde(0x22e)](_0x5af0f4);this['logger'][_0x30cbde(0x20f)](_0x30cbde(0x201)+_0x3733a8+(this[_0x30cbde(0x1f3)]&&_0x171231['vtuCv'](this[_0x30cbde(0x1f3)][_0x30cbde(0x200)],FRAMEWORKS[_0x30cbde(0x1ff)])?_0x30cbde(0x229)+_0x1eb876:''));}}catch(_0x4c2ea0){this[_0x30cbde(0x1eb)][_0x30cbde(0x1e2)](_0x30cbde(0x1ec)+util[_0x30cbde(0x21f)](_0x4c2ea0));}}}TestHubModule[a85_0x2cf201(0x23f)]=a85_0x2cf201(0x240),TestHubModule[a85_0x2cf201(0x21b)]=a85_0x2cf201(0x1f4),module[a85_0x2cf201(0x1fb)]=TestHubModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x1f9c5e=a86_0x3eee;(function(_0x501f3f,_0x5482ca){const _0x1f0a69=a86_0x3eee,_0x1ea909=_0x501f3f();while(!![]){try{const _0x10e79a=-parseInt(_0x1f0a69(0x7a))/0x1+parseInt(_0x1f0a69(0x89))/0x2*(-parseInt(_0x1f0a69(0x7e))/0x3)+-parseInt(_0x1f0a69(0x7c))/0x4*(-parseInt(_0x1f0a69(0x83))/0x5)+-parseInt(_0x1f0a69(0x85))/0x6+parseInt(_0x1f0a69(0x77))/0x7*(-parseInt(_0x1f0a69(0x88))/0x8)+-parseInt(_0x1f0a69(0x74))/0x9+parseInt(_0x1f0a69(0x81))/0xa;if(_0x10e79a===_0x5482ca)break;else _0x1ea909['push'](_0x1ea909['shift']());}catch(_0x207c96){_0x1ea909['push'](_0x1ea909['shift']());}}}(a86_0x5427,0x27dc8));const {PLAYWRIGHT}=require(a86_0x1f9c5e(0x79)),a86_0x314dd2={};a86_0x314dd2['value']=0x0,a86_0x314dd2[a86_0x1f9c5e(0x76)]=function(){const _0xc3b4c6=a86_0x1f9c5e,_0x16f6a1={};_0x16f6a1['QkUFl']=_0xc3b4c6(0x84);const _0x3cdce9=_0x16f6a1;return _0x3cdce9[_0xc3b4c6(0x7d)];};const a86_0x3f6a1f={};a86_0x3f6a1f[a86_0x1f9c5e(0x75)]=0x1,a86_0x3f6a1f[a86_0x1f9c5e(0x76)]=function(){const _0x386320={};_0x386320['GEWSz']='AutomationFrameworkState.CREATE';const _0x446105=_0x386320;return _0x446105['GEWSz'];};const a86_0x5f28a0={};a86_0x5f28a0[a86_0x1f9c5e(0x75)]=0x2,a86_0x5f28a0[a86_0x1f9c5e(0x76)]=function(){const _0x1490e1=a86_0x1f9c5e,_0x31955c={};_0x31955c['iyXiT']='AutomationFrameworkState.PLAYWRIGHT_DISPATCH';const _0x3c22ab=_0x31955c;return _0x3c22ab[_0x1490e1(0x78)];};const a86_0x17f433={};a86_0x17f433[a86_0x1f9c5e(0x75)]=0x3,a86_0x17f433[a86_0x1f9c5e(0x76)]=function(){const _0x3857e7=a86_0x1f9c5e,_0x36f292={};_0x36f292[_0x3857e7(0x86)]=_0x3857e7(0x8a);const _0x339b8f=_0x36f292;return _0x339b8f['dROAy'];};const a86_0x9f3f91={};a86_0x9f3f91['value']=0x4,a86_0x9f3f91['toString']=function(){const _0x2a9920=a86_0x1f9c5e,_0x35dd63={};_0x35dd63[_0x2a9920(0x80)]=_0x2a9920(0x82);const _0x4e93c2=_0x35dd63;return _0x4e93c2['xrGjq'];};const a86_0x56e10c={};function a86_0x5427(){const _0x10e86c=['AutomationFrameworkState.EXECUTE','385578AgIjJb','value','toString','35rMmHNy','iyXiT','../../utils/constants','24717DeQMzK','freeze','4kgaXel','QkUFl','6YBmyLe','AutomationFrameworkState.QUIT','xrGjq','3342850AaTWHd','AutomationFrameworkState.IDLE','1494145WiKmUJ','AutomationFrameworkState.NONE','947892hzDWzD','dROAy','Wexek','328632TMJSBi','38906UOdykX'];a86_0x5427=function(){return _0x10e86c;};return a86_0x5427();}a86_0x56e10c['value']=0x5,a86_0x56e10c[a86_0x1f9c5e(0x76)]=function(){const _0x2bac4a=a86_0x1f9c5e,_0x36b09b={};_0x36b09b[_0x2bac4a(0x87)]=_0x2bac4a(0x7f);const _0x4b6912=_0x36b09b;return _0x4b6912[_0x2bac4a(0x87)];};const AutomationFrameworkState=Object[a86_0x1f9c5e(0x7b)]({'NONE':a86_0x314dd2,'CREATE':a86_0x3f6a1f,'PLAYWRIGHT_DISPATCH':a86_0x5f28a0,'EXECUTE':a86_0x17f433,'IDLE':a86_0x9f3f91,'QUIT':a86_0x56e10c,'fromValue'(_0x53cd80){const _0x1e7812=a86_0x1f9c5e;return Object['values'](AutomationFrameworkState)['find'](_0x27bd53=>_0x27bd53[_0x1e7812(0x75)]===_0x53cd80);}});function a86_0x3eee(_0x50a3c2,_0x29f525){const _0x542710=a86_0x5427();return a86_0x3eee=function(_0x3eeec9,_0x269844){_0x3eeec9=_0x3eeec9-0x74;let _0x3ae613=_0x542710[_0x3eeec9];return _0x3ae613;},a86_0x3eee(_0x50a3c2,_0x29f525);}module['exports']=AutomationFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x2b3a79=a87_0x18e5;(function(_0x4c07df,_0x2eb573){const _0x2e3895=a87_0x18e5,_0x97a08b=_0x4c07df();while(!![]){try{const _0x212845=-parseInt(_0x2e3895(0x9d))/0x1*(parseInt(_0x2e3895(0xa3))/0x2)+-parseInt(_0x2e3895(0x98))/0x3*(parseInt(_0x2e3895(0x9f))/0x4)+parseInt(_0x2e3895(0xa2))/0x5*(-parseInt(_0x2e3895(0xac))/0x6)+-parseInt(_0x2e3895(0x99))/0x7*(-parseInt(_0x2e3895(0xa9))/0x8)+parseInt(_0x2e3895(0xa4))/0x9+-parseInt(_0x2e3895(0xa5))/0xa+parseInt(_0x2e3895(0xa7))/0xb;if(_0x212845===_0x2eb573)break;else _0x97a08b['push'](_0x97a08b['shift']());}catch(_0x544c44){_0x97a08b['push'](_0x97a08b['shift']());}}}(a87_0x5d49,0x8f26b));const a87_0x399264={};a87_0x399264[a87_0x2b3a79(0xa6)]=0x0,a87_0x399264[a87_0x2b3a79(0x9c)]=function(){const _0x527ca3=a87_0x2b3a79,_0x5ab70d={};_0x5ab70d[_0x527ca3(0xa8)]=_0x527ca3(0x9a);const _0x3061d4=_0x5ab70d;return _0x3061d4['abmFj'];};function a87_0x18e5(_0xa1d10e,_0x2d8bfa){const _0x5d4971=a87_0x5d49();return a87_0x18e5=function(_0x18e55e,_0x49b816){_0x18e55e=_0x18e55e-0x98;let _0x40cf9d=_0x5d4971[_0x18e55e];return _0x40cf9d;},a87_0x18e5(_0xa1d10e,_0x2d8bfa);}function a87_0x5d49(){const _0x4bf2a1=['33qcbkMn','SHOup','200204KbIzSN','HookState.POST','values','1265ucgEIC','70754UWIWqi','9427617bITKcV','7800190uuUxxB','value','25205312rOGbDW','abmFj','7731448BLmRBr','exports','freeze','14712UuXAPf','69QaolGl','7sRXgOa','HookState.NONE','QUwCX','toString'];a87_0x5d49=function(){return _0x4bf2a1;};return a87_0x5d49();}const a87_0x4d8309={};a87_0x4d8309[a87_0x2b3a79(0xa6)]=0x1,a87_0x4d8309[a87_0x2b3a79(0x9c)]=function(){const _0x266f7b=a87_0x2b3a79,_0x5f0ae5={};_0x5f0ae5[_0x266f7b(0x9b)]='HookState.PRE';const _0x374310=_0x5f0ae5;return _0x374310[_0x266f7b(0x9b)];};const a87_0x30961f={};a87_0x30961f[a87_0x2b3a79(0xa6)]=0x2,a87_0x30961f[a87_0x2b3a79(0x9c)]=function(){const _0x1ac258=a87_0x2b3a79,_0x42749a={};_0x42749a[_0x1ac258(0x9e)]=_0x1ac258(0xa0);const _0x2c8dde=_0x42749a;return _0x2c8dde[_0x1ac258(0x9e)];};const HookState=Object[a87_0x2b3a79(0xab)]({'NONE':a87_0x399264,'PRE':a87_0x4d8309,'POST':a87_0x30961f,'fromValue'(_0x286d92){const _0x48487f=a87_0x2b3a79;return Object[_0x48487f(0xa1)](HookState)['find'](_0x202640=>_0x202640[_0x48487f(0xa6)]===_0x286d92);}});module[a87_0x2b3a79(0xaa)]=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x2fa939=a88_0x4aab;(function(_0x3d8909,_0x56c80c){const _0x1b07e9=a88_0x4aab,_0x4a1b33=_0x3d8909();while(!![]){try{const _0x540e61=parseInt(_0x1b07e9(0x82))/0x1*(-parseInt(_0x1b07e9(0x9e))/0x2)+-parseInt(_0x1b07e9(0x94))/0x3+parseInt(_0x1b07e9(0x84))/0x4*(parseInt(_0x1b07e9(0xa2))/0x5)+parseInt(_0x1b07e9(0x8d))/0x6+-parseInt(_0x1b07e9(0x99))/0x7+parseInt(_0x1b07e9(0x83))/0x8*(-parseInt(_0x1b07e9(0x90))/0x9)+parseInt(_0x1b07e9(0x8a))/0xa;if(_0x540e61===_0x56c80c)break;else _0x4a1b33['push'](_0x4a1b33['shift']());}catch(_0x54fef9){_0x4a1b33['push'](_0x4a1b33['shift']());}}}(a88_0x79f5,0xa0fcc));const a88_0x4597ee={};function a88_0x4aab(_0x5eb9ce,_0x50ef93){const _0x79f5c4=a88_0x79f5();return a88_0x4aab=function(_0x4aab3d,_0x5055f1){_0x4aab3d=_0x4aab3d-0x80;let _0x1eeeab=_0x79f5c4[_0x4aab3d];return _0x1eeeab;},a88_0x4aab(_0x5eb9ce,_0x50ef93);}a88_0x4597ee[a88_0x2fa939(0x91)]=0x0,a88_0x4597ee[a88_0x2fa939(0x9c)]=function(){const _0x412b36=a88_0x2fa939,_0x5c8d42={};_0x5c8d42[_0x412b36(0x85)]=_0x412b36(0x92);const _0x231a19=_0x5c8d42;return _0x231a19['hZHyI'];};const a88_0x8a5668={};a88_0x8a5668[a88_0x2fa939(0x91)]=0x1,a88_0x8a5668[a88_0x2fa939(0x9c)]=function(){const _0x1b0813=a88_0x2fa939,_0x4d3a6f={};_0x4d3a6f[_0x1b0813(0x8e)]=_0x1b0813(0x97);const _0x1b91eb=_0x4d3a6f;return _0x1b91eb[_0x1b0813(0x8e)];};const a88_0x4cb38d={};a88_0x4cb38d[a88_0x2fa939(0x91)]=0x2,a88_0x4cb38d['toString']=function(){const _0x47a80e=a88_0x2fa939,_0x5b7801={};_0x5b7801['qJGgt']=_0x47a80e(0x9d);const _0x472e48=_0x5b7801;return _0x472e48[_0x47a80e(0x8c)];};const a88_0x49c09d={};a88_0x49c09d[a88_0x2fa939(0x91)]=0x3,a88_0x49c09d[a88_0x2fa939(0x9c)]=function(){const _0x204271=a88_0x2fa939,_0x5b158d={};_0x5b158d['FoiBh']='TestFrameworkState.SETUP_FIXTURE';const _0x9ea615=_0x5b158d;return _0x9ea615[_0x204271(0x89)];};const a88_0x346b23={};a88_0x346b23[a88_0x2fa939(0x91)]=0x4,a88_0x346b23[a88_0x2fa939(0x9c)]=function(){const _0x14a5b3=a88_0x2fa939,_0x46f454={};_0x46f454[_0x14a5b3(0x98)]='TestFrameworkState.INIT_TEST';const _0x5d856a=_0x46f454;return _0x5d856a[_0x14a5b3(0x98)];};const a88_0x3616e9={};a88_0x3616e9['value']=0x5,a88_0x3616e9['toString']=function(){const _0x5da6c9=a88_0x2fa939,_0xfc98d1={};_0xfc98d1[_0x5da6c9(0x93)]=_0x5da6c9(0x88);const _0x1481da=_0xfc98d1;return _0x1481da[_0x5da6c9(0x93)];};const a88_0xde32f={};a88_0xde32f['value']=0x6,a88_0xde32f[a88_0x2fa939(0x9c)]=function(){const _0x4b5fb0=a88_0x2fa939,_0x489dc1={};_0x489dc1[_0x4b5fb0(0x80)]=_0x4b5fb0(0x87);const _0x35084f=_0x489dc1;return _0x35084f[_0x4b5fb0(0x80)];};const a88_0x3ebb66={};a88_0x3ebb66['value']=0x7,a88_0x3ebb66[a88_0x2fa939(0x9c)]=function(){const _0x5009e5=a88_0x2fa939,_0x404485={};_0x404485['lfrmu']='TestFrameworkState.TEST';const _0x5c2263=_0x404485;return _0x5c2263[_0x5009e5(0x9b)];};const a88_0x204079={};function a88_0x79f5(){const _0x2dc0f9=['60gphOcC','TestFrameworkState.LOG_REPORT','find','pNFFr','430zINoob','BCruA','TestFrameworkState.STEP','35171YLUFNE','94320PHWBfe','18244aswlKe','hZHyI','values','TestFrameworkState.AFTER_EACH','TestFrameworkState.BEFORE_EACH','FoiBh','29096750scogxl','exports','qJGgt','1133094nwvTQF','XkxVT','freeze','108donnej','value','TestFrameworkState.NONE','stonn','2128968fEgkQn','gKgpR','rPXNP','TestFrameworkState.BEFORE_ALL','wDyTw','6475700TteosC','SjEdC','lfrmu','toString','TestFrameworkState.LOG'];a88_0x79f5=function(){return _0x2dc0f9;};return a88_0x79f5();}a88_0x204079['value']=0x8,a88_0x204079['toString']=function(){const _0x2e74a0=a88_0x2fa939,_0x1e1e08={};_0x1e1e08['rPXNP']=_0x2e74a0(0x81);const _0x17c75f=_0x1e1e08;return _0x17c75f[_0x2e74a0(0x96)];};const a88_0x2dd3e2={};a88_0x2dd3e2['value']=0x9,a88_0x2dd3e2[a88_0x2fa939(0x9c)]=function(){const _0x4024e7=a88_0x2fa939,_0x259052={};_0x259052['gKgpR']=_0x4024e7(0x9f);const _0x2c77be=_0x259052;return _0x2c77be[_0x4024e7(0x95)];};const a88_0x3b437b={};a88_0x3b437b['value']=0xa,a88_0x3b437b[a88_0x2fa939(0x9c)]=function(){const _0x26df3d=a88_0x2fa939,_0xdaf90b={};_0xdaf90b[_0x26df3d(0x9a)]='TestFrameworkState.AFTER_ALL';const _0x1c2bd7=_0xdaf90b;return _0x1c2bd7[_0x26df3d(0x9a)];};const a88_0x694960={};a88_0x694960[a88_0x2fa939(0x91)]=0xb,a88_0x694960[a88_0x2fa939(0x9c)]=function(){const _0x9dbc05=a88_0x2fa939,_0x256733={};_0x256733['pNFFr']='TestFrameworkState.TEST_SCREENSHOT';const _0x1cf812=_0x256733;return _0x1cf812[_0x9dbc05(0xa1)];};const TestFrameworkState=Object[a88_0x2fa939(0x8f)]({'NONE':a88_0x4597ee,'BEFORE_ALL':a88_0x8a5668,'LOG':a88_0x4cb38d,'SETUP_FIXTURE':a88_0x49c09d,'INIT_TEST':a88_0x346b23,'BEFORE_EACH':a88_0x3616e9,'AFTER_EACH':a88_0xde32f,'TEST':a88_0x3ebb66,'STEP':a88_0x204079,'LOG_REPORT':a88_0x2dd3e2,'AFTER_ALL':a88_0x3b437b,'TEST_SCREENSHOT':a88_0x694960,'fromValue'(_0x545d9b){const _0x40fdc5=a88_0x2fa939;return Object[_0x40fdc5(0x86)](TestFrameworkState)[_0x40fdc5(0xa0)](_0x575c08=>_0x575c08[_0x40fdc5(0x91)]===_0x545d9b);}});module[a88_0x2fa939(0x8b)]=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a89_0xa27a(){const _0x1ee85e=['.browserstack\x20folder\x20not\x20found\x20at:\x20%s','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','getTestFrameworkDetail','./modules/playwrightDriverModule','ERZOW','./state/hookState',',\x20filepath:\x20','pipe','close','SLfAW','23255dotEUG','KziqL','uploadAttachments','zrZkh','BFGiE','yAcha','QISzn','485390LcJYZY','toLowerCase','jyoKh','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','TestLevel','name','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','startsWith','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','getAllData','isRunning','https://','KEY_TEST_ATTACHMENTS','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','jest','KEY_FILE_NAME','KEY_FILE_PATH','currentTest','KEY_FILE_LEVEL','http://','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','finish','debug','3414kZNCJW','statSync','toObject','createWriteStream','mkdirSync','CkIDd','toFixed','Cleared\x20attachment\x20folder','tEnGz','jRBwb','./framework/constants/testFrameworkConstants','./TestInfo','kUoxA','BlVCP','zBTEs','TestHubModule','Attachment\x20recevied\x20for\x20path:\x20%s','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','getInstance','homedir','18QFEvBW','getTestDetails','getState','./browserstackCLI','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','buMlp','https','./state/testFrameworkState','basename','Ayvfj','existsSync','402828bkOdfr','trackFile','TEST','getTrackedInstance','getTestIdentifierFromTestInfo','error','UbFZt','dVfQe','132KiXNrr','UwtSr','testhubConfig','addMultipleEntries','268316YSzduS','uVXsu','./cliUtils','.browserstack','join','ENRYd','size','File\x20downloaded\x20to:\x20%s','message','2863wTTvfe','WCqpC','XUnoZ','modules','retry','GjqOx','resolveInstance','POST','buildHashedId','format','KEY_TEST_ID','gSXqO','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','PtCRp','get','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','68bOMVGy','jcsnx','exports','util','qglAU','nozEl','unlinkSync','ypIjv','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','force','UAHJB','lUhoJ','logger','statusCode','suLuP','wHVrT','__workerDetails','http','pxAYv','306rcNYll','1816xkZCol','Eidep','eQrht','1208616wSONsM','uploadAttachmentsManager','AfaLo','KKokx'];a89_0xa27a=function(){return _0x1ee85e;};return a89_0xa27a();}const a89_0x5f5939=a89_0x58be;(function(_0x5a4cee,_0x401d53){const _0x3b75d8=a89_0x58be,_0x294bfe=_0x5a4cee();while(!![]){try{const _0x3c8f31=-parseInt(_0x3b75d8(0xfb))/0x1+parseInt(_0x3b75d8(0x129))/0x2*(-parseInt(_0x3b75d8(0x128))/0x3)+parseInt(_0x3b75d8(0x115))/0x4*(parseInt(_0x3b75d8(0xb0))/0x5)+-parseInt(_0x3b75d8(0xcf))/0x6*(parseInt(_0x3b75d8(0x104))/0x7)+parseInt(_0x3b75d8(0x12c))/0x8+parseInt(_0x3b75d8(0xe4))/0x9*(parseInt(_0x3b75d8(0xb7))/0xa)+-parseInt(_0x3b75d8(0xf7))/0xb*(-parseInt(_0x3b75d8(0xef))/0xc);if(_0x3c8f31===_0x401d53)break;else _0x294bfe['push'](_0x294bfe['shift']());}catch(_0x221f2c){_0x294bfe['push'](_0x294bfe['shift']());}}}(a89_0xa27a,0x214cd));function a89_0x58be(_0x208618,_0xfdb93d){const _0xa27aa9=a89_0xa27a();return a89_0x58be=function(_0x58bea9,_0x5b02bf){_0x58bea9=_0x58bea9-0xa6;let _0x4fa9d7=_0xa27aa9[_0x58bea9];return _0x4fa9d7;},a89_0x58be(_0x208618,_0xfdb93d);}const os=require('os'),fs=require('fs'),path=require('path'),util=require(a89_0x5f5939(0x118)),BrowserstackCLI=require(a89_0x5f5939(0xe7)),https=require(a89_0x5f5939(0xea)),http=require(a89_0x5f5939(0x126)),AutomationFramework=require('./framework/automationFramework'),PlaywrightDriverModule=require(a89_0x5f5939(0xa9)),TestInfo=require(a89_0x5f5939(0xda)),TestFrameworkConstants=require(a89_0x5f5939(0xd9)),{createClassLogger}=require('../../helpers/classLogger.js');class uploadAttachmentsManager{static ['logger']=createClassLogger(a89_0x5f5939(0x12d));static[a89_0x5f5939(0xb2)](_0x4cd2e5,_0x4f39b6=![]){const _0x2c5e52=a89_0x5f5939,_0x585878={};_0x585878[_0x2c5e52(0x12a)]=function(_0x21fef1,_0xc0992c){return _0x21fef1/_0xc0992c;},_0x585878[_0x2c5e52(0x100)]=function(_0x2d2f9f,_0x4448aa){return _0x2d2f9f*_0x4448aa;},_0x585878[_0x2c5e52(0x12f)]=function(_0x366470,_0x3f1259){return _0x366470>_0x3f1259;},_0x585878[_0x2c5e52(0xb4)]=_0x2c5e52(0xc0),_0x585878[_0x2c5e52(0xb1)]=_0x2c5e52(0x102),_0x585878['UAHJB']=function(_0x36dc83,_0x5457f6){return _0x36dc83===_0x5457f6;},_0x585878[_0x2c5e52(0xdb)]=_0x2c5e52(0xcd),_0x585878['ypIjv']=_0x2c5e52(0x11d),_0x585878[_0x2c5e52(0xfc)]=_0x2c5e52(0xa7),_0x585878[_0x2c5e52(0x112)]=_0x2c5e52(0xdf),_0x585878[_0x2c5e52(0xd8)]=_0x2c5e52(0xfe),_0x585878[_0x2c5e52(0xf6)]=_0x2c5e52(0xa6),_0x585878[_0x2c5e52(0x127)]='Created\x20.browserstack\x20folder\x20at:\x20%s',_0x585878['SLfAW']='Created\x20folder:\x20%s',_0x585878['kxldx']=_0x2c5e52(0xe8),_0x585878[_0x2c5e52(0x10f)]=_0x2c5e52(0xc3),_0x585878[_0x2c5e52(0x11a)]=_0x2c5e52(0xcb),_0x585878[_0x2c5e52(0x12b)]=_0x2c5e52(0xf4),_0x585878[_0x2c5e52(0x124)]=_0x2c5e52(0xe1),_0x585878[_0x2c5e52(0xaa)]=function(_0x25a840,_0x2289f2){return _0x25a840/_0x2289f2;},_0x585878['zBTEs']=function(_0xf90058,_0x562444){return _0xf90058*_0x562444;},_0x585878[_0x2c5e52(0x116)]=function(_0x49614e,_0x547da2){return _0x49614e>_0x547da2;},_0x585878[_0x2c5e52(0xb9)]=_0x2c5e52(0xba);const _0x44dfc5=_0x585878;this[_0x2c5e52(0x121)]['debug'](util[_0x2c5e52(0x10d)](_0x44dfc5[_0x2c5e52(0x112)],_0x4cd2e5));const _0x1254ae=os[_0x2c5e52(0xe3)](),_0x82a0c=path[_0x2c5e52(0xff)](_0x1254ae,_0x44dfc5[_0x2c5e52(0xd8)]);!fs['existsSync'](_0x82a0c)&&(this[_0x2c5e52(0x121)][_0x2c5e52(0xce)](util['format'](_0x44dfc5[_0x2c5e52(0xf6)],_0x82a0c)),fs['mkdirSync'](_0x82a0c),this['logger'][_0x2c5e52(0xce)](util['format'](_0x44dfc5[_0x2c5e52(0x127)],_0x82a0c)));const _0x236b9e=BrowserstackCLI[_0x2c5e52(0xe2)]()[_0x2c5e52(0x107)]['TestHubModule']?.[_0x2c5e52(0xf9)]?.['toObject']()?.['buildHashedId'],_0x61fe76=path['join'](_0x82a0c,_0x236b9e);!fs[_0x2c5e52(0xee)](_0x61fe76)&&(fs[_0x2c5e52(0xd3)](_0x61fe76),this[_0x2c5e52(0x121)]['debug'](util['format'](_0x44dfc5[_0x2c5e52(0xaf)],_0x61fe76)));if(_0x44dfc5[_0x2c5e52(0x11f)](_0x4cd2e5['trim'](),'')){this[_0x2c5e52(0x121)][_0x2c5e52(0xce)](util[_0x2c5e52(0x10d)](_0x44dfc5['kxldx']));return;}if(_0x4cd2e5[_0x2c5e52(0xbe)](_0x44dfc5[_0x2c5e52(0x10f)])||_0x4cd2e5['startsWith'](_0x44dfc5['nozEl'])){const _0x1aec95=_0x4cd2e5[_0x2c5e52(0xbe)](_0x44dfc5[_0x2c5e52(0x10f)])?https:http,_0x111615=path['basename'](_0x4cd2e5),_0xe25c72=path['join'](_0x61fe76,_0x111615),_0x382918=fs[_0x2c5e52(0xd2)](_0xe25c72);_0x1aec95[_0x2c5e52(0x113)](_0x4cd2e5,_0x400b83=>{const _0x1a38fd=_0x2c5e52;if(_0x44dfc5[_0x1a38fd(0x11f)](_0x400b83['statusCode'],0xc8))_0x400b83[_0x1a38fd(0xad)](_0x382918),_0x382918['on'](_0x44dfc5[_0x1a38fd(0xdb)],()=>{const _0x7dd4bb=_0x1a38fd;_0x382918[_0x7dd4bb(0xae)]();const _0x5e0c89=fs[_0x7dd4bb(0xd0)](_0xe25c72),_0x20bcda=_0x44dfc5[_0x7dd4bb(0x12a)](_0x5e0c89['size'],_0x44dfc5[_0x7dd4bb(0x100)](0x400,0x400));if(_0x44dfc5[_0x7dd4bb(0x12f)](_0x20bcda,0x64)){this['logger'][_0x7dd4bb(0xce)](util[_0x7dd4bb(0x10d)](_0x44dfc5[_0x7dd4bb(0xb4)],_0x20bcda[_0x7dd4bb(0xd5)](0x2))),fs[_0x7dd4bb(0x11b)](_0xe25c72);return;}this[_0x7dd4bb(0x121)][_0x7dd4bb(0xce)](util[_0x7dd4bb(0x10d)](_0x44dfc5['KziqL'],_0xe25c72)),uploadAttachmentsManager[_0x7dd4bb(0xf0)](_0xe25c72,_0x4f39b6);});else{this[_0x1a38fd(0x121)]['debug'](util[_0x1a38fd(0x10d)](_0x44dfc5[_0x1a38fd(0x11c)],_0x400b83[_0x1a38fd(0x122)])),_0x382918[_0x1a38fd(0xae)](),fs[_0x1a38fd(0x11b)](_0xe25c72);return;}})['on'](_0x44dfc5[_0x2c5e52(0x12b)],_0x8b2037=>{const _0x317a5b=_0x2c5e52;this[_0x317a5b(0x121)][_0x317a5b(0xce)](util['format'](_0x44dfc5[_0x317a5b(0xfc)],_0x8b2037[_0x317a5b(0x103)])),_0x382918[_0x317a5b(0xae)](),fs[_0x317a5b(0x11b)](_0xe25c72);return;});}else{if(!fs[_0x2c5e52(0xee)](_0x4cd2e5)){this[_0x2c5e52(0x121)][_0x2c5e52(0xce)](util[_0x2c5e52(0x10d)](_0x44dfc5[_0x2c5e52(0x124)],_0x4cd2e5));return;}const _0x1df681=fs['statSync'](_0x4cd2e5),_0x5a0870=_0x44dfc5[_0x2c5e52(0xaa)](_0x1df681['size'],_0x44dfc5[_0x2c5e52(0xdd)](0x400,0x400));if(_0x44dfc5['jcsnx'](_0x5a0870,0x64)){this[_0x2c5e52(0x121)][_0x2c5e52(0xce)](util[_0x2c5e52(0x10d)](_0x44dfc5['jyoKh'],_0x5a0870['toFixed'](0x2)));return;}const _0x55f75c=path[_0x2c5e52(0xec)](_0x4cd2e5),_0xdd48b5=path[_0x2c5e52(0xff)](_0x61fe76,_0x55f75c);fs['copyFileSync'](_0x4cd2e5,_0xdd48b5),uploadAttachmentsManager['trackFile'](_0xdd48b5,_0x4f39b6);}}static['trackFile'](_0x24d530,_0x262a9d){const _0x234168=a89_0x5f5939,_0xbbb06a={'GjqOx':function(_0x4e8c88,_0x56d9aa){return _0x4e8c88(_0x56d9aa);},'TddoC':'./browserstackCLI','BlVCP':function(_0x5e49e4,_0x262f3e){return _0x5e49e4(_0x262f3e);},'CkIDd':_0x234168(0xfd),'WCqpC':function(_0x5a619e,_0x3b2370){return _0x5a619e===_0x3b2370;},'AfaLo':_0x234168(0xc6),'XUnoZ':_0x234168(0x114),'UbFZt':'BuildLevel','QISzn':_0x234168(0xbb),'zrZkh':_0x234168(0xbd),'Ayvfj':_0x234168(0xeb),'suLuP':function(_0xbf4835,_0x28048a){return _0xbf4835(_0x28048a);},'yAcha':_0x234168(0xab),'buMlp':_0x234168(0xe0),'lUhoJ':_0x234168(0x111),'tEnGz':_0x234168(0x110)};try{let _0x59ebec;const _0x4ff647=global[_0x234168(0x125)]?.[_0x234168(0xc9)]?.['testInfo'],_0x563c75=_0xbbb06a[_0x234168(0x109)](require,_0xbbb06a['TddoC']),_0x16ac77=_0xbbb06a[_0x234168(0xdc)](require,_0xbbb06a[_0x234168(0xd4)]),_0x172914=_0x563c75[_0x234168(0xe2)]()[_0x234168(0xc2)]()&&_0xbbb06a[_0x234168(0x105)](_0x16ac77[_0x234168(0xa8)]()?.[_0x234168(0xbc)]?.[_0x234168(0xb8)](),_0xbbb06a[_0x234168(0x12e)]);if(_0x172914){_0x59ebec=global['__jestCurrentTestIdentifier'];if(!_0x59ebec){const _0x12dbbb=AutomationFramework[_0x234168(0xf2)]();_0x59ebec=AutomationFramework[_0x234168(0xe6)](_0x12dbbb,PlaywrightDriverModule['KEY_TEST_ID'],'');}this['logger'][_0x234168(0xce)](_0x234168(0xc5)+_0x59ebec);}else{if(!_0x4ff647){const _0x52ce96=AutomationFramework[_0x234168(0xf2)]();_0x59ebec=AutomationFramework[_0x234168(0xe6)](_0x52ce96,PlaywrightDriverModule[_0x234168(0x10e)],'');}else _0x59ebec=TestInfo[_0x234168(0xf3)](_0x4ff647,_0x4ff647[_0x234168(0x108)]);this[_0x234168(0x121)][_0x234168(0xce)]('trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20'+_0x59ebec);}if(!_0x59ebec){this['logger']['debug'](_0xbbb06a[_0x234168(0x106)]);return;}const _0x3f0457={[TestFrameworkConstants['KEY_FILE_SIZE']]:fs[_0x234168(0xd0)](_0x24d530)[_0x234168(0x101)],[TestFrameworkConstants[_0x234168(0xc7)]]:path[_0x234168(0xec)](_0x24d530),[TestFrameworkConstants[_0x234168(0xc8)]]:_0x24d530,[TestFrameworkConstants[_0x234168(0xca)]]:_0x262a9d?_0xbbb06a[_0x234168(0xf5)]:_0xbbb06a[_0x234168(0xb6)]};if(_0x172914){const _0x5c82cd=_0x563c75[_0x234168(0xe2)]()['getTestFramework']();if(!_0x5c82cd){this[_0x234168(0x121)]['debug'](_0xbbb06a[_0x234168(0xb3)]);return;}const _0x360f0c=_0xbbb06a[_0x234168(0x109)](require,_0xbbb06a[_0x234168(0xed)]),_0x49ddb1=_0xbbb06a[_0x234168(0x123)](require,_0xbbb06a[_0x234168(0xb5)]),_0x67ed49=_0x5c82cd[_0x234168(0x10a)](_0x360f0c[_0x234168(0xf1)],_0x49ddb1[_0x234168(0x10b)]);if(!_0x67ed49){this[_0x234168(0x121)][_0x234168(0xce)](_0xbbb06a[_0x234168(0xe9)]);return;}const _0x5c852c=_0x67ed49[_0x234168(0xc1)]()[_0x234168(0x113)](_0x59ebec)||{},_0xa7d442=_0x5c852c[TestFrameworkConstants[_0x234168(0xc4)]]||{},_0x258909={..._0xa7d442};_0x258909[_0x24d530]=_0x3f0457;const _0x55e4b4=_0x258909,_0x3e06f5={[TestFrameworkConstants[_0x234168(0xc4)]]:_0x55e4b4},_0x2cc2ed={};_0x2cc2ed[_0x59ebec]=_0x3e06f5,_0x67ed49[_0x234168(0xfa)](_0x2cc2ed),this[_0x234168(0x121)][_0x234168(0xce)](_0x234168(0xbf)+_0x59ebec+',\x20filepath:\x20'+_0x24d530);}else{const _0x6bfc26=TestInfo[_0x234168(0xe5)](_0x59ebec),_0x242d88=_0x6bfc26[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{};_0x242d88[_0x24d530]=_0x3f0457,_0x6bfc26[TestFrameworkConstants[_0x234168(0xc4)]]=_0x242d88,TestInfo['setTestDetails'](_0x59ebec,_0x6bfc26),this[_0x234168(0x121)][_0x234168(0xce)](_0x234168(0xcc)+_0x59ebec+_0x234168(0xac)+_0x24d530);}this[_0x234168(0x121)]['debug'](util['format'](_0xbbb06a[_0x234168(0x120)],_0x24d530));}catch(_0x45bacb){this[_0x234168(0x121)][_0x234168(0xce)](util[_0x234168(0x10d)](_0xbbb06a[_0x234168(0xd7)],_0x45bacb[_0x234168(0x103)]));}}static['clearAttachments'](){const _0x40c3bf=a89_0x5f5939,_0x344eb7={};_0x344eb7['voNua']='.browserstack',_0x344eb7[_0x40c3bf(0x119)]='No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s',_0x344eb7['UwtSr']=_0x40c3bf(0xd6);const _0x5c2187=_0x344eb7,_0x430040=os[_0x40c3bf(0xe3)](),_0x4b435a=path[_0x40c3bf(0xff)](_0x430040,_0x5c2187['voNua']);if(!fs[_0x40c3bf(0xee)](_0x4b435a))return;const _0x547fc5=BrowserstackCLI[_0x40c3bf(0xe2)]()[_0x40c3bf(0x107)][_0x40c3bf(0xde)]?.[_0x40c3bf(0xf9)]?.[_0x40c3bf(0xd1)]()?.[_0x40c3bf(0x10c)],_0x5015d2=_0x547fc5?path[_0x40c3bf(0xff)](_0x4b435a,_0x547fc5):null;if(!_0x5015d2||!fs['existsSync'](_0x5015d2)){this['logger'][_0x40c3bf(0xce)](util['format'](_0x5c2187[_0x40c3bf(0x119)],_0x547fc5));return;}const _0x3c8a43={};_0x3c8a43['recursive']=!![],_0x3c8a43[_0x40c3bf(0x11e)]=!![],fs['rmSync'](_0x5015d2,_0x3c8a43),this[_0x40c3bf(0x121)]['debug'](util[_0x40c3bf(0x10d)](_0x5c2187[_0x40c3bf(0xf8)]));}}module[a89_0x5f5939(0x117)]=uploadAttachmentsManager;
|
|
1
|
+
function a89_0x3dfc(){const _0x3c41a3=['getTestFramework','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','existsSync','util','https://',',\x20filepath:\x20','XmqGk','orFuI','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','close','NUdJw','statSync','QmYRz','phdXI','getTestFrameworkDetail','qhiWU','kxYRA','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','error','message','1021524kvpjNe','homedir','9073KmfDxY','startsWith','http://','statusCode','getState','7264880oQmNzN','JObYn','force','./TestInfo','logger','KEY_FILE_NAME','currentTest','TestHubModule','clearAttachments','exports','basename','isRunning','9DxOOET','1024554GaLRHs','__workerDetails','qAOUi','size','gmThQ','toObject','join','getTrackedInstance','trackFile','buildHashedId','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','./browserstackCLI','./framework/automationFramework','modules','getInstance','kEfvl','JiZZW','mkdirSync','hbCAx','copyFileSync','.browserstack','TestLevel','rmSync','debug','KEY_TEST_ATTACHMENTS','uploadAttachmentsManager','273736pJdVpO','Created\x20folder:\x20%s','getTestDetails','ECFIU','aYmhz','getTestIdentifierFromTestInfo','Tdxtv','https','Attachment\x20recevied\x20for\x20path:\x20%s','addMultipleEntries','recursive','jest','HajaN','testInfo','XPXjf','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','ofWKX','DHZhA','mJHKa','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','21DCKLtZ','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','KEY_FILE_LEVEL','FlgPS','ijMxY','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','./modules/playwrightDriverModule','rRgYu','toLowerCase','./framework/constants/testFrameworkConstants','KEY_FILE_PATH','format','unlinkSync','IEgfJ','uDkhs','859530HpFvcZ','IktJT','XFuwz','cwUBe','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','path','File\x20downloaded\x20to:\x20%s','./cliUtils','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','yPeRa','CvSwY','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','setTestDetails','POST','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','4XfHacC','Cleared\x20attachment\x20folder','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','retry','IGrps','GALIq','testhubConfig','1426780xUJmcV','__jestCurrentTestIdentifier','BuildLevel','wxGfc','KEY_TEST_ID','jDlyL','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','ahOfi','./state/hookState'];a89_0x3dfc=function(){return _0x3c41a3;};return a89_0x3dfc();}function a89_0x2c83(_0x45fc6f,_0x508de5){const _0x3dfc57=a89_0x3dfc();return a89_0x2c83=function(_0x2c83f9,_0x4b6a9c){_0x2c83f9=_0x2c83f9-0xfa;let _0x53fd6b=_0x3dfc57[_0x2c83f9];return _0x53fd6b;},a89_0x2c83(_0x45fc6f,_0x508de5);}const a89_0x14a9d0=a89_0x2c83;(function(_0x212e88,_0x18a802){const _0xec1ca0=a89_0x2c83,_0x53d61a=_0x212e88();while(!![]){try{const _0x255d03=-parseInt(_0xec1ca0(0x14c))/0x1+parseInt(_0xec1ca0(0x115))/0x2+parseInt(_0xec1ca0(0x14a))/0x3+parseInt(_0xec1ca0(0x125))/0x4*(-parseInt(_0xec1ca0(0x12c))/0x5)+-parseInt(_0xec1ca0(0x15e))/0x6*(-parseInt(_0xec1ca0(0x106))/0x7)+parseInt(_0xec1ca0(0x178))/0x8*(parseInt(_0xec1ca0(0x15d))/0x9)+-parseInt(_0xec1ca0(0x151))/0xa;if(_0x255d03===_0x18a802)break;else _0x53d61a['push'](_0x53d61a['shift']());}catch(_0x5e68a5){_0x53d61a['push'](_0x53d61a['shift']());}}}(a89_0x3dfc,0x483aa));const os=require('os'),fs=require('fs'),path=require(a89_0x14a9d0(0x11a)),util=require(a89_0x14a9d0(0x139)),BrowserstackCLI=require(a89_0x14a9d0(0x169)),https=require(a89_0x14a9d0(0x17f)),http=require('http'),AutomationFramework=require(a89_0x14a9d0(0x16a)),PlaywrightDriverModule=require(a89_0x14a9d0(0x10c)),TestInfo=require(a89_0x14a9d0(0x154)),TestFrameworkConstants=require(a89_0x14a9d0(0x10f)),{createClassLogger}=require('../../helpers/classLogger.js');class uploadAttachmentsManager{static [a89_0x14a9d0(0x155)]=createClassLogger(a89_0x14a9d0(0x177));static['uploadAttachments'](_0x2128c7,_0x47748e=![]){const _0x34d1c8=a89_0x14a9d0,_0x1f56e6={};_0x1f56e6['rRgYu']=function(_0x32855d,_0x5614bb){return _0x32855d/_0x5614bb;},_0x1f56e6[_0x34d1c8(0x113)]=function(_0x51a3fb,_0x5424a2){return _0x51a3fb*_0x5424a2;},_0x1f56e6['xmitC']=function(_0x31986d,_0x3d95d9){return _0x31986d>_0x3d95d9;},_0x1f56e6[_0x34d1c8(0x100)]=_0x34d1c8(0x120),_0x1f56e6[_0x34d1c8(0x11f)]=_0x34d1c8(0x11b),_0x1f56e6[_0x34d1c8(0xfe)]=function(_0x5c70d2,_0x5a3c4b){return _0x5c70d2===_0x5a3c4b;},_0x1f56e6[_0x34d1c8(0x102)]='finish',_0x1f56e6[_0x34d1c8(0x131)]=_0x34d1c8(0x168),_0x1f56e6[_0x34d1c8(0x140)]=_0x34d1c8(0x124),_0x1f56e6['gmThQ']=_0x34d1c8(0xfa),_0x1f56e6[_0x34d1c8(0x170)]=_0x34d1c8(0x172),_0x1f56e6[_0x34d1c8(0x118)]=_0x34d1c8(0x123),_0x1f56e6['XnMFn']='Created\x20.browserstack\x20folder\x20at:\x20%s',_0x1f56e6['tIPaa']=_0x34d1c8(0x179),_0x1f56e6[_0x34d1c8(0x116)]=_0x34d1c8(0x101),_0x1f56e6[_0x34d1c8(0x12a)]=_0x34d1c8(0x13a),_0x1f56e6[_0x34d1c8(0x11e)]=_0x34d1c8(0x14e),_0x1f56e6['nztBs']=_0x34d1c8(0x148),_0x1f56e6[_0x34d1c8(0x109)]=_0x34d1c8(0x147),_0x1f56e6[_0x34d1c8(0x13c)]=function(_0x2e24a1,_0x446018){return _0x2e24a1>_0x446018;},_0x1f56e6[_0x34d1c8(0x17e)]=_0x34d1c8(0x10b);const _0x339392=_0x1f56e6;this[_0x34d1c8(0x155)][_0x34d1c8(0x175)](util['format'](_0x339392[_0x34d1c8(0x162)],_0x2128c7));const _0x4f2378=os[_0x34d1c8(0x14b)](),_0x4a0877=path[_0x34d1c8(0x164)](_0x4f2378,_0x339392[_0x34d1c8(0x170)]);!fs[_0x34d1c8(0x138)](_0x4a0877)&&(this[_0x34d1c8(0x155)][_0x34d1c8(0x175)](util['format'](_0x339392['cwUBe'],_0x4a0877)),fs[_0x34d1c8(0x16f)](_0x4a0877),this[_0x34d1c8(0x155)][_0x34d1c8(0x175)](util['format'](_0x339392['XnMFn'],_0x4a0877)));const _0x58ae52=BrowserstackCLI[_0x34d1c8(0x16c)]()[_0x34d1c8(0x16b)][_0x34d1c8(0x158)]?.['testhubConfig']?.[_0x34d1c8(0x163)]()?.[_0x34d1c8(0x167)],_0x1242a2=path[_0x34d1c8(0x164)](_0x4a0877,_0x58ae52);!fs[_0x34d1c8(0x138)](_0x1242a2)&&(fs[_0x34d1c8(0x16f)](_0x1242a2),this[_0x34d1c8(0x155)][_0x34d1c8(0x175)](util[_0x34d1c8(0x111)](_0x339392['tIPaa'],_0x1242a2)));if(_0x339392[_0x34d1c8(0xfe)](_0x2128c7['trim'](),'')){this[_0x34d1c8(0x155)][_0x34d1c8(0x175)](util[_0x34d1c8(0x111)](_0x339392[_0x34d1c8(0x116)]));return;}if(_0x2128c7['startsWith'](_0x339392[_0x34d1c8(0x12a)])||_0x2128c7[_0x34d1c8(0x14d)](_0x339392[_0x34d1c8(0x11e)])){const _0x412446=_0x2128c7[_0x34d1c8(0x14d)](_0x339392['GALIq'])?https:http,_0x2fbc6f=path['basename'](_0x2128c7),_0x1b0716=path[_0x34d1c8(0x164)](_0x1242a2,_0x2fbc6f),_0x3ae928=fs['createWriteStream'](_0x1b0716);_0x412446['get'](_0x2128c7,_0x4debc2=>{const _0x42874a=_0x34d1c8,_0x5a62aa={'qAOUi':function(_0x1958bb,_0x2aafdf){const _0x4ee03b=a89_0x2c83;return _0x339392[_0x4ee03b(0x10d)](_0x1958bb,_0x2aafdf);},'kxYRA':function(_0x11e254,_0x52dfd3){const _0x5c0b6d=a89_0x2c83;return _0x339392[_0x5c0b6d(0x113)](_0x11e254,_0x52dfd3);},'mJHKa':function(_0x581b32,_0xe7c85e){return _0x339392['xmitC'](_0x581b32,_0xe7c85e);},'IGrps':_0x339392[_0x42874a(0x100)],'ECFIU':_0x339392['CvSwY']};if(_0x339392[_0x42874a(0xfe)](_0x4debc2[_0x42874a(0x14f)],0xc8))_0x4debc2['pipe'](_0x3ae928),_0x3ae928['on'](_0x339392[_0x42874a(0x102)],()=>{const _0x3432af=_0x42874a;_0x3ae928[_0x3432af(0x13f)]();const _0x5b78c4=fs[_0x3432af(0x141)](_0x1b0716),_0x270df7=_0x5a62aa[_0x3432af(0x160)](_0x5b78c4[_0x3432af(0x161)],_0x5a62aa[_0x3432af(0x146)](0x400,0x400));if(_0x5a62aa[_0x3432af(0x104)](_0x270df7,0x64)){this[_0x3432af(0x155)][_0x3432af(0x175)](util[_0x3432af(0x111)](_0x5a62aa[_0x3432af(0x129)],_0x270df7['toFixed'](0x2))),fs[_0x3432af(0x112)](_0x1b0716);return;}this[_0x3432af(0x155)][_0x3432af(0x175)](util['format'](_0x5a62aa[_0x3432af(0x17b)],_0x1b0716)),uploadAttachmentsManager['trackFile'](_0x1b0716,_0x47748e);});else{this[_0x42874a(0x155)][_0x42874a(0x175)](util[_0x42874a(0x111)](_0x339392[_0x42874a(0x131)],_0x4debc2[_0x42874a(0x14f)])),_0x3ae928[_0x42874a(0x13f)](),fs[_0x42874a(0x112)](_0x1b0716);return;}})['on'](_0x339392['nztBs'],_0x4acb47=>{const _0x43c00c=_0x34d1c8;this[_0x43c00c(0x155)][_0x43c00c(0x175)](util[_0x43c00c(0x111)](_0x339392[_0x43c00c(0x140)],_0x4acb47['message'])),_0x3ae928[_0x43c00c(0x13f)](),fs[_0x43c00c(0x112)](_0x1b0716);return;});}else{if(!fs[_0x34d1c8(0x138)](_0x2128c7)){this[_0x34d1c8(0x155)][_0x34d1c8(0x175)](util[_0x34d1c8(0x111)](_0x339392[_0x34d1c8(0x109)],_0x2128c7));return;}const _0x293f27=fs[_0x34d1c8(0x141)](_0x2128c7),_0x5072d6=_0x339392[_0x34d1c8(0x10d)](_0x293f27[_0x34d1c8(0x161)],_0x339392['IEgfJ'](0x400,0x400));if(_0x339392[_0x34d1c8(0x13c)](_0x5072d6,0x64)){this['logger'][_0x34d1c8(0x175)](util[_0x34d1c8(0x111)](_0x339392[_0x34d1c8(0x17e)],_0x5072d6['toFixed'](0x2)));return;}const _0x2868d0=path['basename'](_0x2128c7),_0x3f87b0=path[_0x34d1c8(0x164)](_0x1242a2,_0x2868d0);fs[_0x34d1c8(0x171)](_0x2128c7,_0x3f87b0),uploadAttachmentsManager[_0x34d1c8(0x166)](_0x3f87b0,_0x47748e);}}static[a89_0x14a9d0(0x166)](_0x416fd6,_0xb221c){const _0x57c83c=a89_0x14a9d0,_0x2163ca={'JObYn':function(_0x14114e,_0x2880da){return _0x14114e(_0x2880da);},'uDkhs':_0x57c83c(0x169),'XFuwz':function(_0x2f3fc3,_0x2516e1){return _0x2f3fc3(_0x2516e1);},'gsiNM':_0x57c83c(0x11c),'JiZZW':function(_0x374cc1,_0x33cef7){return _0x374cc1===_0x33cef7;},'wxGfc':_0x57c83c(0xfd),'qhiWU':_0x57c83c(0x127),'DHZhA':_0x57c83c(0x12e),'QmYRz':_0x57c83c(0x173),'ijMxY':'trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','MyiaP':'./state/testFrameworkState','kEfvl':_0x57c83c(0x135),'RPHpx':_0x57c83c(0x13e),'IeyMx':_0x57c83c(0x119),'ahOfi':_0x57c83c(0x107)};try{let _0x385717;const _0x45abe7=global[_0x57c83c(0x15f)]?.[_0x57c83c(0x157)]?.[_0x57c83c(0xff)],_0x3e540d=_0x2163ca[_0x57c83c(0x152)](require,_0x2163ca[_0x57c83c(0x114)]),_0x268fed=_0x2163ca['XFuwz'](require,_0x2163ca['gsiNM']),_0x4e5734=_0x3e540d[_0x57c83c(0x16c)]()[_0x57c83c(0x15c)]()&&_0x2163ca[_0x57c83c(0x16e)](_0x268fed[_0x57c83c(0x144)]()?.['name']?.[_0x57c83c(0x10e)](),_0x2163ca[_0x57c83c(0x12f)]);if(_0x4e5734){_0x385717=global[_0x57c83c(0x12d)];if(!_0x385717){const _0x581a61=AutomationFramework[_0x57c83c(0x165)]();_0x385717=AutomationFramework[_0x57c83c(0x150)](_0x581a61,PlaywrightDriverModule[_0x57c83c(0x130)],'');}this[_0x57c83c(0x155)]['debug'](_0x57c83c(0x133)+_0x385717);}else{if(!_0x45abe7){const _0x179d87=AutomationFramework['getTrackedInstance']();_0x385717=AutomationFramework[_0x57c83c(0x150)](_0x179d87,PlaywrightDriverModule[_0x57c83c(0x130)],'');}else _0x385717=TestInfo[_0x57c83c(0x17d)](_0x45abe7,_0x45abe7[_0x57c83c(0x128)]);this[_0x57c83c(0x155)][_0x57c83c(0x175)](_0x57c83c(0x105)+_0x385717);}if(!_0x385717){this[_0x57c83c(0x155)][_0x57c83c(0x175)](_0x2163ca[_0x57c83c(0x145)]);return;}const _0x1c316e={[TestFrameworkConstants['KEY_FILE_SIZE']]:fs['statSync'](_0x416fd6)[_0x57c83c(0x161)],[TestFrameworkConstants[_0x57c83c(0x156)]]:path[_0x57c83c(0x15b)](_0x416fd6),[TestFrameworkConstants[_0x57c83c(0x110)]]:_0x416fd6,[TestFrameworkConstants[_0x57c83c(0x108)]]:_0xb221c?_0x2163ca[_0x57c83c(0x103)]:_0x2163ca[_0x57c83c(0x142)]};if(_0x4e5734){const _0x1f8df2=_0x3e540d[_0x57c83c(0x16c)]()[_0x57c83c(0x136)]();if(!_0x1f8df2){this[_0x57c83c(0x155)][_0x57c83c(0x175)](_0x2163ca[_0x57c83c(0x10a)]);return;}const _0x55cea5=_0x2163ca[_0x57c83c(0x117)](require,_0x2163ca['MyiaP']),_0x3a16f5=_0x2163ca[_0x57c83c(0x152)](require,_0x2163ca[_0x57c83c(0x16d)]),_0x532c4e=_0x1f8df2['resolveInstance'](_0x55cea5['TEST'],_0x3a16f5[_0x57c83c(0x122)]);if(!_0x532c4e){this[_0x57c83c(0x155)][_0x57c83c(0x175)](_0x2163ca['RPHpx']);return;}const _0x5a073f=_0x532c4e['getAllData']()['get'](_0x385717)||{},_0x17a606=_0x5a073f[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x5991f6={..._0x17a606};_0x5991f6[_0x416fd6]=_0x1c316e;const _0x1c3ccf=_0x5991f6,_0x5e05f7={[TestFrameworkConstants[_0x57c83c(0x176)]]:_0x1c3ccf},_0x247980={};_0x247980[_0x385717]=_0x5e05f7,_0x532c4e[_0x57c83c(0xfb)](_0x247980),this[_0x57c83c(0x155)]['debug'](_0x57c83c(0x11d)+_0x385717+',\x20filepath:\x20'+_0x416fd6);}else{const _0x358c94=TestInfo[_0x57c83c(0x17a)](_0x385717),_0xce364b=_0x358c94[TestFrameworkConstants[_0x57c83c(0x176)]]||{};_0xce364b[_0x416fd6]=_0x1c316e,_0x358c94[TestFrameworkConstants[_0x57c83c(0x176)]]=_0xce364b,TestInfo[_0x57c83c(0x121)](_0x385717,_0x358c94),this[_0x57c83c(0x155)][_0x57c83c(0x175)](_0x57c83c(0x137)+_0x385717+_0x57c83c(0x13b)+_0x416fd6);}this[_0x57c83c(0x155)][_0x57c83c(0x175)](util[_0x57c83c(0x111)](_0x2163ca['IeyMx'],_0x416fd6));}catch(_0x18f690){this[_0x57c83c(0x155)][_0x57c83c(0x175)](util[_0x57c83c(0x111)](_0x2163ca[_0x57c83c(0x134)],_0x18f690[_0x57c83c(0x149)]));}}static[a89_0x14a9d0(0x159)](){const _0x16db4b=a89_0x14a9d0,_0x4345a5={};_0x4345a5[_0x16db4b(0x17c)]=_0x16db4b(0x172),_0x4345a5[_0x16db4b(0x13d)]=_0x16db4b(0x132),_0x4345a5[_0x16db4b(0x143)]=_0x16db4b(0x126);const _0x52cb82=_0x4345a5,_0x4ad769=os[_0x16db4b(0x14b)](),_0x18b001=path[_0x16db4b(0x164)](_0x4ad769,_0x52cb82['aYmhz']);if(!fs[_0x16db4b(0x138)](_0x18b001))return;const _0x173f1d=BrowserstackCLI[_0x16db4b(0x16c)]()[_0x16db4b(0x16b)][_0x16db4b(0x158)]?.[_0x16db4b(0x12b)]?.[_0x16db4b(0x163)]()?.['buildHashedId'],_0xd5df73=_0x173f1d?path['join'](_0x18b001,_0x173f1d):null;if(!_0xd5df73||!fs[_0x16db4b(0x138)](_0xd5df73)){this[_0x16db4b(0x155)][_0x16db4b(0x175)](util[_0x16db4b(0x111)](_0x52cb82[_0x16db4b(0x13d)],_0x173f1d));return;}const _0x4fcc45={};_0x4fcc45[_0x16db4b(0xfc)]=!![],_0x4fcc45[_0x16db4b(0x153)]=!![],fs[_0x16db4b(0x174)](_0xd5df73,_0x4fcc45),this['logger'][_0x16db4b(0x175)](util[_0x16db4b(0x111)](_0x52cb82[_0x16db4b(0x143)]));}}module[a89_0x14a9d0(0x15a)]=uploadAttachmentsManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a90_0x4f48b3=a90_0x1e97;function a90_0x1e97(_0xcd871b,_0x50ce03){const _0x3567b5=a90_0x3567();return a90_0x1e97=function(_0x1e97f6,_0x1fb2e2){_0x1e97f6=_0x1e97f6-0xe9;let _0x269b9d=_0x3567b5[_0x1e97f6];return _0x269b9d;},a90_0x1e97(_0xcd871b,_0x50ce03);}(function(_0x5e3e6c,_0x54e0c9){const _0x27eee3=a90_0x1e97,_0x5d5472=_0x5e3e6c();while(!![]){try{const _0x3812da=-parseInt(_0x27eee3(0x110))/0x1*(parseInt(_0x27eee3(0x153))/0x2)+parseInt(_0x27eee3(0x165))/0x3*(parseInt(_0x27eee3(0x11f))/0x4)+parseInt(_0x27eee3(0x139))/0x5+parseInt(_0x27eee3(0xff))/0x6*(parseInt(_0x27eee3(0x168))/0x7)+-parseInt(_0x27eee3(0x103))/0x8+parseInt(_0x27eee3(0x11d))/0x9+parseInt(_0x27eee3(0x160))/0xa*(-parseInt(_0x27eee3(0x10c))/0xb);if(_0x3812da===_0x54e0c9)break;else _0x5d5472['push'](_0x5d5472['shift']());}catch(_0x129c94){_0x5d5472['push'](_0x5d5472['shift']());}}}(a90_0x3567,0x8ebf2));const path=require('path'),util=require(a90_0x4f48b3(0x137)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a90_0x4f48b3(0x12d)),logger=require(a90_0x4f48b3(0x120))[a90_0x4f48b3(0x123)],{o11yClassErrorHandler}=require(a90_0x4f48b3(0xee)),TestInfo=require(a90_0x4f48b3(0xf4)),hooksMap={};class CucumberUtils{constructor(){const _0x38bbc9=a90_0x4f48b3;this[_0x38bbc9(0x163)]=![],this[_0x38bbc9(0xfd)]=null;}async[a90_0x4f48b3(0x15b)](_0x133377,_0x26b55a,_0x505aa4,_0x5130b6,_0x39fdf3,_0x7af500){const _0x4196e0=a90_0x4f48b3,_0x484085={'arSPm':function(_0x162b2f,_0x4c70c7){return _0x162b2f===_0x4c70c7;},'vPVsl':_0x4196e0(0x117),'OzIUA':'failed','WBWXh':_0x4196e0(0x152),'QKSTl':'skipped','OxMEY':function(_0x2f5e58,_0x36bc4f){return _0x2f5e58||_0x36bc4f;},'tEvHn':function(_0x429a2a,_0x80bb64){return _0x429a2a+_0x80bb64;},'urAHX':function(_0x6b716c,_0x3a2a43){return _0x6b716c+_0x3a2a43;},'SnoOK':_0x4196e0(0x148),'LJjcr':'javascript','qbqNs':'cucumber','JWUNt':_0x4196e0(0x104),'LKjOC':_0x4196e0(0x142),'BDEIG':function(_0x3f32c7,_0x55dabb){return _0x3f32c7!==_0x55dabb;},'DNxSn':function(_0x4ce759,_0x45ddd5){return _0x4ce759/_0x45ddd5;},'yTuef':_0x4196e0(0x10d),'WuqFR':function(_0x3de5e1,_0x108ca7){return _0x3de5e1(_0x108ca7);},'ruPtt':'unknown','QyjrJ':_0x4196e0(0x101),'aicyA':_0x4196e0(0x171)},{feature:_0x543c2b,scenario:_0x44d157,steps:_0x454db2,uuid:_0x5e9037,startedAt:_0x2ad901,finishedAt:_0x452862}=_0x484085[_0x4196e0(0x135)](_0x133377,{}),_0x4017a1=this[_0x4196e0(0x159)](_0x5130b6,_0x26b55a);await this[_0x4196e0(0x162)]();const _0x24d749=_0x4017a1?_0x484085['tEvHn'](_0x484085[_0x4196e0(0x15e)](_0x484085[_0x4196e0(0x14a)](_0x26b55a['name'],'\x20('),_0x4017a1['join'](',\x20')),')'):_0x26b55a[_0x4196e0(0x16a)],_0x5be073={'id':_0x39fdf3,'uuid':_0x39fdf3,'startedAt':_0x2ad901,'finishedAt':_0x452862,'type':_0x484085[_0x4196e0(0xf2)],'body':{'lang':_0x484085[_0x4196e0(0x107)],'code':null},'name':_0x24d749,'scopes':[_0x543c2b&&_0x543c2b[_0x4196e0(0x16a)]?_0x543c2b['name']:''],'tags':_0x26b55a[_0x4196e0(0x13c)]?_0x26b55a[_0x4196e0(0x13c)][_0x4196e0(0x100)](({name:_0x46e5da})=>_0x46e5da):[],'file_name':_0x26b55a['uri'],'location':_0x26b55a[_0x4196e0(0x112)],'vc_filepath':this[_0x4196e0(0xfd)]&&_0x26b55a[_0x4196e0(0x112)]?path[_0x4196e0(0xf9)](this['_gitConfigPath'],_0x26b55a[_0x4196e0(0x112)]):null,'framework':_0x484085[_0x4196e0(0xeb)],'result':_0x484085[_0x4196e0(0x138)],'meta':{'feature':_0x543c2b,'scenario':_0x44d157,'steps':_0x454db2,'examples':_0x4017a1},'customRerunParam':{'rerun_name':_0x24d749}};if(_0x505aa4[_0x4196e0(0x150)]&&_0x454db2){const _0x255ca5=_0x505aa4[_0x4196e0(0x150)];let _0xbb6a50=_0x484085['LKjOC'];_0x454db2[_0x4196e0(0x16c)](_0x325e9c=>{const _0x3f8f3b=_0x4196e0;if(_0x484085[_0x3f8f3b(0xf6)](_0x325e9c[_0x3f8f3b(0x14c)],_0x484085[_0x3f8f3b(0xe9)]))return _0xbb6a50=_0x484085[_0x3f8f3b(0x16e)],_0x255ca5['failure']=_0x325e9c[_0x3f8f3b(0x133)],_0x255ca5[_0x3f8f3b(0x106)]=_0x325e9c[_0x3f8f3b(0x106)],![];else{if(_0x484085[_0x3f8f3b(0xf6)](_0x325e9c[_0x3f8f3b(0x14c)],_0x484085['WBWXh']))return _0xbb6a50=_0x484085[_0x3f8f3b(0xfa)],![];}return!![];}),_0x5be073[_0x4196e0(0x131)]=new Date()[_0x4196e0(0x11c)](),_0x5be073[_0x4196e0(0x14c)]=_0xbb6a50;_0x255ca5[_0x4196e0(0x146)]&&_0x484085['BDEIG'](_0x255ca5[_0x4196e0(0x146)][_0x4196e0(0x114)],undefined)?_0x5be073['duration_in_ms']=_0x484085[_0x4196e0(0x14f)](_0x255ca5[_0x4196e0(0x146)][_0x4196e0(0x114)],0xf4240):_0x5be073[_0x4196e0(0x16d)]=undefined;if(_0x484085['arSPm'](_0xbb6a50,_0x484085['OzIUA'])){const {default:_0x51808e}=await import(_0x484085['yTuef']);_0x5be073[_0x4196e0(0x133)]=[{'backtrace':[_0x255ca5[_0x4196e0(0x133)]?_0x484085[_0x4196e0(0x140)](_0x51808e,_0x255ca5[_0x4196e0(0x133)]):_0x484085[_0x4196e0(0x124)]]}],_0x5be073['failure_reason']=_0x255ca5['failure']?_0x484085[_0x4196e0(0x140)](_0x51808e,_0x255ca5[_0x4196e0(0x133)]):_0x255ca5[_0x4196e0(0x122)],_0x255ca5['failureType']&&(_0x5be073[_0x4196e0(0x126)]=_0x255ca5['failureType']['match'](/AssertError/)?_0x484085[_0x4196e0(0x11a)]:_0x484085[_0x4196e0(0x141)]);}}return _0x5be073;}[a90_0x4f48b3(0x16f)](_0x3e02fb,_0x6ba166,_0x186072,_0x3266c7,_0x43a34c,_0x1530ba){const _0x3d7826=a90_0x4f48b3,_0x233507={'PplOc':function(_0x181a56,_0x4e29c6){return _0x181a56===_0x4e29c6;},'JWhde':_0x3d7826(0x15a),'Shexk':function(_0x6a1fb0,_0x28da67,_0x1b90f1){return _0x6a1fb0(_0x28da67,_0x1b90f1);},'yDTdx':'sourceReference','PRXZj':_0x3d7826(0x112),'pbFhJ':_0x3d7826(0x104),'WAvZW':_0x3d7826(0x164),'FgPjS':_0x3d7826(0x10e),'JRbUl':function(_0x352040,_0x243cb5,_0x38f389){return _0x352040(_0x243cb5,_0x38f389);},'mHFgC':_0x3d7826(0x136),'dARrP':_0x3d7826(0x16a),'KfYTa':function(_0x564442,_0xfd1920,_0x3d3098){return _0x564442(_0xfd1920,_0x3d3098);},'KgCzW':_0x3d7826(0xfc)};try{if(_0x233507[_0x3d7826(0x166)](_0x186072,_0x233507['JWhde'])){const _0x39ffc8=new Date()[_0x3d7826(0x11c)](),_0x128fb5=hooksMap[_0x6ba166];if(!_0x128fb5)return;const _0x3feb69=_0x128fb5[_0x3d7826(0x12b)](_0x1a4b20=>_0x1a4b20[_0x3d7826(0x145)]===_0x3266c7['id']);if(!_0x3feb69)return;const _0x80f106=this[_0x3d7826(0xf1)](_0x3e02fb,_0x6ba166);_0x3feb69[_0x3d7826(0x14c)]=_0x80f106[_0x3d7826(0x108)],_0x3feb69[_0x3d7826(0x10b)]=_0x39ffc8,_0x3feb69['failure_type']=_0x80f106[_0x3d7826(0x106)];const _0x4dc1cf={};return _0x4dc1cf[_0x3d7826(0xf3)]=_0x80f106[_0x3d7826(0x14b)],_0x3feb69[_0x3d7826(0x14e)]=[_0x4dc1cf],_0x3feb69;}const _0x4f5c66=TestInfo['getTestUUID'](_0x6ba166),_0xb3867=_0x3e02fb['hooks'][_0x3d7826(0x12b)](_0x459a75=>_0x459a75['id']===_0x3266c7[_0x3d7826(0x10f)]),_0x39240f=_0x233507[_0x3d7826(0x12c)](nestedKeyValue,_0xb3867,[_0x233507['yDTdx'],_0x233507[_0x3d7826(0x12f)]]),_0x205d47=new Date()[_0x3d7826(0x11c)](),_0x431a52=_0x233507[_0x3d7826(0xfb)],_0x416b96=_0xb3867[_0x3d7826(0xec)]?_0xb3867[_0x3d7826(0xec)][_0x3d7826(0x11b)]('\x20')[_0x3d7826(0x154)](_0x3d477f=>_0x3d477f['includes']('@')):[],_0x861971={'uuid':_0x3266c7['id'],'type':_0x233507[_0x3d7826(0x113)],'hook_type':_0x1530ba,'name':_0xb3867[_0x3d7826(0x16a)],'body':{'lang':_0x233507[_0x3d7826(0x118)],'code':null},'tags':_0x416b96,'test_run_id':_0x4f5c66,'scope':_0x233507[_0x3d7826(0xfe)](nestedKeyValue,_0x43a34c,[_0x233507['mHFgC'],_0x233507[_0x3d7826(0x111)]]),'scopes':[_0x233507[_0x3d7826(0xf5)](nestedKeyValue,_0x43a34c,[_0x233507['mHFgC'],_0x233507[_0x3d7826(0x111)]])||''],'file_name':_0x39240f,'location':_0x39240f,'vc_filepath':this[_0x3d7826(0xfd)]?path[_0x3d7826(0xf9)](this['_gitConfigPath'],_0x39240f):null,'result':_0x431a52,'started_at':_0x205d47,'framework':_0x233507['KgCzW']};return _0x861971;}catch(_0x58f860){logger[_0x3d7826(0xef)](_0x3d7826(0x125)+util[_0x3d7826(0x11e)](_0x58f860)+'\x20');}}async[a90_0x4f48b3(0x132)](_0x580d8b,_0x7a5cc7,_0x37cf55,_0x42883d,_0x162006,_0x535841){const _0x3347fe=a90_0x4f48b3,_0x480a94={'iUwmI':function(_0x43f1c5,_0x57d993){return _0x43f1c5===_0x57d993;},'LgLRt':'HookRunStarted','cVcxl':function(_0x3a2c31,_0x1a5229,_0x16a39b){return _0x3a2c31(_0x1a5229,_0x16a39b);},'aFHAS':_0x3347fe(0xf8),'jGqep':_0x3347fe(0x112),'Fnujm':_0x3347fe(0x13a),'SJxHJ':function(_0x360e93,_0x2a1c99){return _0x360e93===_0x2a1c99;},'fpOgG':'bstack'};try{const _0x6f0459=_0x42883d[_0x3347fe(0x12b)](_0x625d35=>_0x625d35['id']===_0x162006);if(!_0x6f0459['hookId'])return;const _0x41f945=this['getCucumberHookType'](_0x42883d,_0x6f0459),_0x2ce1a4=this['getHookRunEventData'](_0x580d8b,_0x7a5cc7,_0x37cf55,_0x6f0459,_0x535841,_0x41f945);if(!_0x2ce1a4)return;_0x480a94[_0x3347fe(0x13e)](_0x37cf55,_0x480a94[_0x3347fe(0x13b)])&&(hooksMap[_0x7a5cc7]?hooksMap[_0x7a5cc7][_0x3347fe(0x105)](_0x2ce1a4):hooksMap[_0x7a5cc7]=[_0x2ce1a4]);const _0x9f61b5=_0x580d8b[_0x3347fe(0x15d)]['find'](_0x5531dd=>_0x5531dd['id']===_0x6f0459[_0x3347fe(0x10f)]),_0x31f44e=_0x480a94[_0x3347fe(0x134)](nestedKeyValue,_0x9f61b5,[_0x480a94[_0x3347fe(0x127)],_0x480a94['jGqep']]);if(!_0x31f44e)return;else{if(_0x31f44e['includes'](_0x480a94['Fnujm']))return;}if(_0x480a94[_0x3347fe(0x12a)](_0x2ce1a4[_0x3347fe(0x16a)],_0x480a94[_0x3347fe(0xed)]))return;return _0x2ce1a4;}catch(_0x574dc3){logger[_0x3347fe(0xef)]('Exception\x20in\x20createHookData:\x20'+util[_0x3347fe(0x11e)](_0x574dc3)+'\x20');}}[a90_0x4f48b3(0xf1)](_0x28b074,_0x445289){const _0x346d98=a90_0x4f48b3,_0x1c91b2={};_0x1c91b2['VaQSx']=function(_0x360836,_0x7c5140){return _0x360836===_0x7c5140;},_0x1c91b2['dfVjZ']=_0x346d98(0x172),_0x1c91b2[_0x346d98(0x13d)]=_0x346d98(0x171),_0x1c91b2[_0x346d98(0x15f)]=_0x346d98(0x101),_0x1c91b2[_0x346d98(0x102)]=function(_0x5c88c6,_0x3ad791){return _0x5c88c6||_0x3ad791;};const _0x466a46=_0x1c91b2,_0x20120c=_0x28b074[_0x346d98(0x167)][_0x445289]['testStepResult'];let _0x2d6838,_0x55d775;return _0x20120c&&_0x466a46['VaQSx'](_0x20120c[_0x346d98(0x108)][_0x346d98(0x151)]()['toLowerCase'](),_0x466a46[_0x346d98(0x14d)])&&(_0x2d6838=_0x466a46[_0x346d98(0x16b)](_0x20120c[_0x346d98(0xea)],undefined)?_0x20120c[_0x346d98(0x122)]:_0x20120c[_0x346d98(0xea)][_0x346d98(0x122)],_0x55d775=_0x466a46[_0x346d98(0x16b)](_0x20120c[_0x346d98(0xea)],undefined)?_0x466a46[_0x346d98(0x13d)]:_0x20120c[_0x346d98(0x122)][_0x346d98(0xf7)](/Assert/)?_0x466a46[_0x346d98(0x15f)]:_0x466a46['wuljq']),{'status':_0x20120c[_0x346d98(0x108)][_0x346d98(0xf0)](),'failureType':_0x466a46[_0x346d98(0x102)](_0x55d775,null),'failureData':!_0x2d6838?null:[_0x2d6838]};}['getCucumberHookType'](_0x2ef141,_0x11c54f){const _0x3c385a=a90_0x4f48b3,_0x58778d={};_0x58778d['SNCky']=function(_0x423cc6,_0x191278){return _0x423cc6===_0x191278;},_0x58778d[_0x3c385a(0x12e)]='AFTER_EACH',_0x58778d[_0x3c385a(0x169)]=_0x3c385a(0x143);const _0x1742c6=_0x58778d;let _0x2ef3bd=![];for(const _0x1eca29 of _0x2ef141){_0x1eca29['pickleStepId']&&(_0x2ef3bd=!![]);if(_0x1742c6[_0x3c385a(0x158)](_0x11c54f['id'],_0x1eca29['id']))return _0x2ef3bd?_0x1742c6[_0x3c385a(0x12e)]:_0x1742c6[_0x3c385a(0x169)];}}[a90_0x4f48b3(0x159)]=(_0x4c2aaa,_0x52844c)=>{const _0x2d5f82=a90_0x4f48b3,_0x2ab8d6={};_0x2ab8d6[_0x2d5f82(0x116)]=function(_0x2533f0,_0x528146){return _0x2533f0===_0x528146;},_0x2ab8d6[_0x2d5f82(0x170)]=function(_0x3838a2,_0x188078){return _0x3838a2>_0x188078;};const _0x1ad5bf=_0x2ab8d6;if(!(_0x52844c[_0x2d5f82(0x109)]&&_0x1ad5bf[_0x2d5f82(0x170)](_0x52844c[_0x2d5f82(0x109)]['length'],0x1)))return;const _0x801fd1=_0x52844c['astNodeIds'][0x0],_0x3b39b6=_0x52844c[_0x2d5f82(0x109)][0x1],_0x46c1a5=_0x4c2aaa['feature']&&_0x4c2aaa[_0x2d5f82(0x136)][_0x2d5f82(0x121)]?_0x4c2aaa['feature'][_0x2d5f82(0x121)]:undefined;let _0x39f06f=[];_0x46c1a5&&_0x46c1a5[_0x2d5f82(0x161)](_0x366cc1=>{const _0x56d72c=_0x2d5f82;if(_0x366cc1[_0x56d72c(0x155)])_0x366cc1[_0x56d72c(0x155)][_0x56d72c(0x121)][_0x56d72c(0x161)](_0x37958c=>{const _0x4ceb71=_0x56d72c;if(_0x37958c['scenario']&&_0x1ad5bf['bVAts'](_0x37958c[_0x4ceb71(0x115)]['id'],_0x801fd1)&&_0x37958c[_0x4ceb71(0x115)][_0x4ceb71(0x149)]){const _0x41e45b=_0x37958c[_0x4ceb71(0x115)][_0x4ceb71(0x149)][_0x4ceb71(0x157)](_0x20fbcf=>_0x20fbcf[_0x4ceb71(0x119)])[_0x4ceb71(0x12b)](_0x2cc3e0=>_0x2cc3e0['id']===_0x3b39b6);let _0x4298ed;_0x41e45b&&_0x41e45b['cells']?_0x4298ed=_0x41e45b['cells']['map'](_0x39d52b=>_0x39d52b[_0x4ceb71(0x128)]):_0x4298ed=[],_0x4298ed&&(_0x39f06f=_0x4298ed);}});else{if(_0x366cc1[_0x56d72c(0x115)]&&_0x1ad5bf[_0x56d72c(0x116)](_0x366cc1['scenario']['id'],_0x801fd1)&&_0x366cc1[_0x56d72c(0x115)][_0x56d72c(0x149)]){const _0x5e7130=_0x366cc1[_0x56d72c(0x115)][_0x56d72c(0x149)]['flatMap'](_0x1e3512=>_0x1e3512[_0x56d72c(0x119)])[_0x56d72c(0x12b)](_0x563467=>_0x563467['id']===_0x3b39b6);let _0x32341e;_0x5e7130&&_0x5e7130['cells']?_0x32341e=_0x5e7130[_0x56d72c(0x156)]['map'](_0x3316fd=>_0x3316fd[_0x56d72c(0x128)]):_0x32341e=[],_0x32341e&&(_0x39f06f=_0x32341e);}}});if(_0x39f06f[_0x2d5f82(0x13f)])return _0x39f06f;return;};async[a90_0x4f48b3(0x162)](){const _0x2f6ec1=a90_0x4f48b3,_0x43ff19={'irlCB':function(_0x339540){return _0x339540();}};if(this[_0x2f6ec1(0x163)])return this[_0x2f6ec1(0xfd)];const _0x1b27a4=await _0x43ff19[_0x2f6ec1(0x129)](getGitMetaData);_0x1b27a4&&(this[_0x2f6ec1(0xfd)]=_0x1b27a4[_0x2f6ec1(0x15c)]),this[_0x2f6ec1(0x163)]=!![];}}function a90_0x3567(){const _0x5031e2=['createTestFrameworkData','root','hooks','tEvHn','lGYKq','10Krtomz','forEach','configureGit','_gitConfigured','hook','3lUPvFn','PplOc','testStepFinished','3634344dPkwQR','JgyyP','name','VaQSx','every','duration_in_ms','OzIUA','getHookRunEventData','BfWGd','UnhandledError','failed','vPVsl','exception','qbqNs','tagExpression','fpOgG','../../../helpers/test-observability/error-handler.js','debug','toLowerCase','getHookResult','SnoOK','backtrace','../TestInfo.js','KfYTa','arSPm','match','sourceReference','relative','QKSTl','pbFhJ','cucumber','_gitConfigPath','JRbUl','6YiRuaZ','map','AssertionError','jfLjC','1640936NERVfe','pending','push','failureType','LJjcr','status','astNodeIds','sendTestRunEventForCucumber','finished_at','8521821IRchAy','strip-ansi','javascript','hookId','6814GHncuA','dARrP','uri','WAvZW','nanos','scenario','bVAts','FAILED','FgPjS','tableBody','QyjrJ','split','toISOString','2570589MnzyKL','format','1703684vmZDsH','../../../helpers/logger.js','children','message','winstonLogger','ruPtt','Exception\x20in\x20getHookRunEventData:\x20','failure_type','aFHAS','value','irlCB','SJxHJ','find','Shexk','../../../helpers/helper.js','shyyq','PRXZj','exports','finishedAt','createHookData','failure','cVcxl','OxMEY','feature','util','JWUNt','2316250YbukNG','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','LgLRt','tags','wuljq','iUwmI','length','WuqFR','aicyA','passed','BEFORE_EACH','getCucumberHookType','uuid','timestamp','sendHook','test','examples','urAHX','failureData','result','dfVjZ','failure_data','DNxSn','testCaseFinished','toString','SKIPPED','38gHERiJ','filter','rule','cells','flatMap','SNCky','getScenarioExamples','HookRunFinished'];a90_0x3567=function(){return _0x5031e2;};return a90_0x3567();}module[a90_0x4f48b3(0x130)]=o11yClassErrorHandler(CucumberUtils,[a90_0x4f48b3(0x162),'getScenarioExamples',a90_0x4f48b3(0x144),a90_0x4f48b3(0xf1),a90_0x4f48b3(0x147),a90_0x4f48b3(0x16f),a90_0x4f48b3(0x10a),'createTestFrameworkData']);
|
|
1
|
+
const a90_0x4331e3=a90_0x166c;function a90_0x166c(_0x5f1bad,_0x39a411){const _0x4872d6=a90_0x4872();return a90_0x166c=function(_0x166ca9,_0x40493f){_0x166ca9=_0x166ca9-0x16f;let _0x11608c=_0x4872d6[_0x166ca9];return _0x11608c;},a90_0x166c(_0x5f1bad,_0x39a411);}(function(_0x20b5d1,_0x27ef3a){const _0x27b67d=a90_0x166c,_0x177df6=_0x20b5d1();while(!![]){try{const _0x41ccfa=parseInt(_0x27b67d(0x1d8))/0x1+-parseInt(_0x27b67d(0x1e8))/0x2*(-parseInt(_0x27b67d(0x180))/0x3)+parseInt(_0x27b67d(0x1b7))/0x4+-parseInt(_0x27b67d(0x1c2))/0x5+parseInt(_0x27b67d(0x17e))/0x6+parseInt(_0x27b67d(0x1c9))/0x7*(parseInt(_0x27b67d(0x18b))/0x8)+parseInt(_0x27b67d(0x192))/0x9*(-parseInt(_0x27b67d(0x18c))/0xa);if(_0x41ccfa===_0x27ef3a)break;else _0x177df6['push'](_0x177df6['shift']());}catch(_0x358acc){_0x177df6['push'](_0x177df6['shift']());}}}(a90_0x4872,0x35fa0));const path=require(a90_0x4331e3(0x181)),util=require(a90_0x4331e3(0x198)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a90_0x4331e3(0x17d)),logger=require(a90_0x4331e3(0x17a))[a90_0x4331e3(0x1b5)],{o11yClassErrorHandler}=require(a90_0x4331e3(0x1f4)),TestInfo=require('../TestInfo.js'),hooksMap={};class CucumberUtils{constructor(){this['_gitConfigured']=![],this['_gitConfigPath']=null;}async[a90_0x4331e3(0x1b4)](_0x43c216,_0x3f40de,_0x4fd3a7,_0x506262,_0x373370,_0x15c98b){const _0x3deb98=a90_0x4331e3,_0x31835f={'AqPVU':function(_0x3efef4,_0xd4e9f7){return _0x3efef4===_0xd4e9f7;},'aEqIK':'FAILED','JVRev':_0x3deb98(0x182),'jkkWI':function(_0x41e9a6,_0x2d4225){return _0x41e9a6===_0x2d4225;},'xaTJS':_0x3deb98(0x1c4),'lRssC':'skipped','fIljB':function(_0x36e3e9,_0x5a107d){return _0x36e3e9||_0x5a107d;},'ukTqL':function(_0x2f186e,_0x2affd8){return _0x2f186e+_0x2affd8;},'aXTJS':function(_0x4b32f5,_0x37b171){return _0x4b32f5+_0x37b171;},'yanTc':'test','eoAKE':_0x3deb98(0x1d3),'Pgrfl':_0x3deb98(0x1b3),'hazsz':_0x3deb98(0x1bf),'SGFPk':_0x3deb98(0x18e),'TlnIW':function(_0x4fcfdf,_0x33c81c){return _0x4fcfdf!==_0x33c81c;},'SVLdz':function(_0x1882bd,_0x341997){return _0x1882bd/_0x341997;},'baHsr':function(_0x31842f,_0x2432aa){return _0x31842f===_0x2432aa;},'cgHnC':_0x3deb98(0x183),'JNKxf':function(_0x3eff25,_0x9afc0d){return _0x3eff25(_0x9afc0d);},'FWTPk':_0x3deb98(0x1d6),'FbHrk':function(_0x52f690,_0x526297){return _0x52f690(_0x526297);},'kdjrz':_0x3deb98(0x1ed),'wjXBn':_0x3deb98(0x172)},{feature:_0x3527ce,scenario:_0x243e21,steps:_0x394342,uuid:_0x34d2e7,startedAt:_0x427a14,finishedAt:_0x209e1b}=_0x31835f[_0x3deb98(0x17c)](_0x43c216,{}),_0x5f1ed1=this[_0x3deb98(0x1e3)](_0x506262,_0x3f40de);await this[_0x3deb98(0x179)]();const _0x365723=_0x5f1ed1?_0x31835f[_0x3deb98(0x19b)](_0x31835f[_0x3deb98(0x1bc)](_0x31835f[_0x3deb98(0x1bc)](_0x3f40de[_0x3deb98(0x1ac)],'\x20('),_0x5f1ed1[_0x3deb98(0x1be)](',\x20')),')'):_0x3f40de[_0x3deb98(0x1ac)],_0x45ad7b={'id':_0x373370,'uuid':_0x373370,'startedAt':_0x427a14,'finishedAt':_0x209e1b,'type':_0x31835f[_0x3deb98(0x174)],'body':{'lang':_0x31835f['eoAKE'],'code':null},'name':_0x365723,'scopes':[_0x3527ce&&_0x3527ce[_0x3deb98(0x1ac)]?_0x3527ce['name']:''],'tags':_0x3f40de['tags']?_0x3f40de[_0x3deb98(0x1ae)]['map'](({name:_0x589ec0})=>_0x589ec0):[],'file_name':_0x3f40de[_0x3deb98(0x1c3)],'location':_0x3f40de[_0x3deb98(0x1c3)],'vc_filepath':this[_0x3deb98(0x18f)]&&_0x3f40de[_0x3deb98(0x1c3)]?path[_0x3deb98(0x1d9)](this[_0x3deb98(0x18f)],_0x3f40de[_0x3deb98(0x1c3)]):null,'framework':_0x31835f[_0x3deb98(0x194)],'result':_0x31835f[_0x3deb98(0x178)],'meta':{'feature':_0x3527ce,'scenario':_0x243e21,'steps':_0x394342,'examples':_0x5f1ed1},'customRerunParam':{'rerun_name':_0x365723}};if(_0x4fd3a7[_0x3deb98(0x195)]&&_0x394342){const _0x1d26c8=_0x4fd3a7[_0x3deb98(0x195)];let _0x3f771b=_0x31835f[_0x3deb98(0x19a)];_0x394342[_0x3deb98(0x1bb)](_0x3ef21a=>{const _0x239ebb=_0x3deb98;if(_0x31835f['AqPVU'](_0x3ef21a['result'],_0x31835f['aEqIK']))return _0x3f771b=_0x31835f[_0x239ebb(0x175)],_0x1d26c8[_0x239ebb(0x170)]=_0x3ef21a[_0x239ebb(0x170)],_0x1d26c8[_0x239ebb(0x1a4)]=_0x3ef21a[_0x239ebb(0x1a4)],![];else{if(_0x31835f[_0x239ebb(0x173)](_0x3ef21a[_0x239ebb(0x1aa)],_0x31835f[_0x239ebb(0x1ba)]))return _0x3f771b=_0x31835f[_0x239ebb(0x1ec)],![];}return!![];}),_0x45ad7b[_0x3deb98(0x1e4)]=new Date()['toISOString'](),_0x45ad7b[_0x3deb98(0x1aa)]=_0x3f771b;_0x1d26c8['timestamp']&&_0x31835f['TlnIW'](_0x1d26c8[_0x3deb98(0x1dc)][_0x3deb98(0x197)],undefined)?_0x45ad7b[_0x3deb98(0x186)]=_0x31835f[_0x3deb98(0x1a7)](_0x1d26c8[_0x3deb98(0x1dc)][_0x3deb98(0x197)],0xf4240):_0x45ad7b[_0x3deb98(0x186)]=undefined;if(_0x31835f[_0x3deb98(0x1d5)](_0x3f771b,_0x31835f['JVRev'])){const {default:_0x118c5f}=await import(_0x31835f[_0x3deb98(0x1cb)]);_0x45ad7b[_0x3deb98(0x170)]=[{'backtrace':[_0x1d26c8[_0x3deb98(0x170)]?_0x31835f[_0x3deb98(0x1b9)](_0x118c5f,_0x1d26c8[_0x3deb98(0x170)]):_0x31835f[_0x3deb98(0x188)]]}],_0x45ad7b[_0x3deb98(0x191)]=_0x1d26c8[_0x3deb98(0x170)]?_0x31835f['FbHrk'](_0x118c5f,_0x1d26c8[_0x3deb98(0x170)]):_0x1d26c8[_0x3deb98(0x1b0)],_0x1d26c8[_0x3deb98(0x1a4)]&&(_0x45ad7b[_0x3deb98(0x1ce)]=_0x1d26c8[_0x3deb98(0x1a4)][_0x3deb98(0x1c0)](/AssertError/)?_0x31835f[_0x3deb98(0x1da)]:_0x31835f['wjXBn']);}}return _0x45ad7b;}[a90_0x4331e3(0x1d0)](_0x2f4d46,_0x15d694,_0x15e198,_0x5ad58a,_0x29a30f,_0x11185f){const _0x2fdbdc=a90_0x4331e3,_0x375b84={'NLAqk':function(_0x6c666f,_0x545f90){return _0x6c666f===_0x545f90;},'oVrgj':_0x2fdbdc(0x1c7),'wBzVB':function(_0xda236e,_0x52bad7,_0x39093f){return _0xda236e(_0x52bad7,_0x39093f);},'fcWqG':_0x2fdbdc(0x1df),'MZklU':'uri','OMIIH':_0x2fdbdc(0x1bf),'pzgnj':_0x2fdbdc(0x1d2),'QHEED':'javascript','CCDSq':function(_0x19ebd5,_0x30825a,_0x27c207){return _0x19ebd5(_0x30825a,_0x27c207);},'NqWwz':_0x2fdbdc(0x1ad),'FhoPd':_0x2fdbdc(0x1ac),'tYhPd':function(_0x3d3084,_0x4ba8d0,_0x43f318){return _0x3d3084(_0x4ba8d0,_0x43f318);},'TCvNy':'cucumber'};try{if(_0x375b84[_0x2fdbdc(0x1a2)](_0x15e198,_0x375b84[_0x2fdbdc(0x1a6)])){const _0x5e2f66=new Date()['toISOString'](),_0x19126b=hooksMap[_0x15d694];if(!_0x19126b)return;const _0x12d560=_0x19126b[_0x2fdbdc(0x1f0)](_0x1e8b61=>_0x1e8b61[_0x2fdbdc(0x18d)]===_0x5ad58a['id']);if(!_0x12d560)return;const _0x4628dd=this[_0x2fdbdc(0x176)](_0x2f4d46,_0x15d694);_0x12d560[_0x2fdbdc(0x1aa)]=_0x4628dd[_0x2fdbdc(0x1a5)],_0x12d560[_0x2fdbdc(0x1c8)]=_0x5e2f66,_0x12d560[_0x2fdbdc(0x1ce)]=_0x4628dd['failureType'];const _0x14b467={};return _0x14b467[_0x2fdbdc(0x1e6)]=_0x4628dd['failureData'],_0x12d560[_0x2fdbdc(0x19e)]=[_0x14b467],_0x12d560;}const _0x28b759=TestInfo[_0x2fdbdc(0x1e9)](_0x15d694),_0x2cdb3f=_0x2f4d46[_0x2fdbdc(0x171)][_0x2fdbdc(0x1f0)](_0x2e8ac5=>_0x2e8ac5['id']===_0x5ad58a['hookId']),_0x157d35=_0x375b84[_0x2fdbdc(0x1cc)](nestedKeyValue,_0x2cdb3f,[_0x375b84[_0x2fdbdc(0x16f)],_0x375b84[_0x2fdbdc(0x1cd)]]),_0x5af776=new Date()[_0x2fdbdc(0x1b2)](),_0x38322c=_0x375b84['OMIIH'],_0xf0f1aa=_0x2cdb3f[_0x2fdbdc(0x1cf)]?_0x2cdb3f['tagExpression'][_0x2fdbdc(0x1a0)]('\x20')['filter'](_0xd16f45=>_0xd16f45[_0x2fdbdc(0x1e2)]('@')):[],_0x1aa730={'uuid':_0x5ad58a['id'],'type':_0x375b84['pzgnj'],'hook_type':_0x11185f,'name':_0x2cdb3f[_0x2fdbdc(0x1ac)],'body':{'lang':_0x375b84[_0x2fdbdc(0x19d)],'code':null},'tags':_0xf0f1aa,'test_run_id':_0x28b759,'scope':_0x375b84[_0x2fdbdc(0x1dd)](nestedKeyValue,_0x29a30f,[_0x375b84['NqWwz'],_0x375b84['FhoPd']]),'scopes':[_0x375b84[_0x2fdbdc(0x1e7)](nestedKeyValue,_0x29a30f,[_0x375b84['NqWwz'],_0x375b84['FhoPd']])||''],'file_name':_0x157d35,'location':_0x157d35,'vc_filepath':this[_0x2fdbdc(0x18f)]?path[_0x2fdbdc(0x1d9)](this['_gitConfigPath'],_0x157d35):null,'result':_0x38322c,'started_at':_0x5af776,'framework':_0x375b84[_0x2fdbdc(0x190)]};return _0x1aa730;}catch(_0x10ebf2){logger['debug'](_0x2fdbdc(0x199)+util[_0x2fdbdc(0x1a8)](_0x10ebf2)+'\x20');}}async[a90_0x4331e3(0x1f8)](_0x1e6e67,_0x520693,_0x1c1229,_0x364f95,_0x20edb5,_0xb3b15d){const _0x262640=a90_0x4331e3,_0x226036={'GXGmm':function(_0x31a2b7,_0x594b06){return _0x31a2b7===_0x594b06;},'gcaAq':'HookRunStarted','cxcyD':function(_0x3529c8,_0x2d23a3,_0x3f2364){return _0x3529c8(_0x2d23a3,_0x3f2364);},'qhkHU':_0x262640(0x1df),'krGnD':_0x262640(0x1c3),'hsiTh':'browserstack-node-agent/src/bin/cucumber-js/test.setup.js','BVuwq':function(_0x3e5a38,_0x24c1cb){return _0x3e5a38===_0x24c1cb;},'xWIdd':'bstack'};try{const _0x47c17a=_0x364f95[_0x262640(0x1f0)](_0x594be2=>_0x594be2['id']===_0x20edb5);if(!_0x47c17a['hookId'])return;const _0x106cb4=this[_0x262640(0x189)](_0x364f95,_0x47c17a),_0x3ba24d=this[_0x262640(0x1d0)](_0x1e6e67,_0x520693,_0x1c1229,_0x47c17a,_0xb3b15d,_0x106cb4);if(!_0x3ba24d)return;_0x226036['GXGmm'](_0x1c1229,_0x226036[_0x262640(0x1b1)])&&(hooksMap[_0x520693]?hooksMap[_0x520693][_0x262640(0x1d7)](_0x3ba24d):hooksMap[_0x520693]=[_0x3ba24d]);const _0x348045=_0x1e6e67['hooks'][_0x262640(0x1f0)](_0x56fa67=>_0x56fa67['id']===_0x47c17a[_0x262640(0x1f7)]),_0x336d7f=_0x226036[_0x262640(0x19f)](nestedKeyValue,_0x348045,[_0x226036[_0x262640(0x1bd)],_0x226036[_0x262640(0x1db)]]);if(!_0x336d7f)return;else{if(_0x336d7f['includes'](_0x226036[_0x262640(0x185)]))return;}if(_0x226036['BVuwq'](_0x3ba24d[_0x262640(0x1ac)],_0x226036['xWIdd']))return;return _0x3ba24d;}catch(_0x15dfe5){logger[_0x262640(0x19c)](_0x262640(0x1f1)+util[_0x262640(0x1a8)](_0x15dfe5)+'\x20');}}[a90_0x4331e3(0x176)](_0x462fc9,_0x328b64){const _0x5df3eb=a90_0x4331e3,_0x109dfe={};_0x109dfe[_0x5df3eb(0x18a)]=function(_0x5d3aa3,_0x38210f){return _0x5d3aa3===_0x38210f;},_0x109dfe[_0x5df3eb(0x1eb)]='failed',_0x109dfe['MrOuv']=function(_0x5d03e8,_0x11862d){return _0x5d03e8===_0x11862d;},_0x109dfe[_0x5df3eb(0x177)]=_0x5df3eb(0x172),_0x109dfe['qjdRk']='AssertionError',_0x109dfe[_0x5df3eb(0x1ca)]=function(_0x583e03,_0x11dd86){return _0x583e03||_0x11dd86;};const _0x509ead=_0x109dfe,_0x1b35ca=_0x462fc9['testStepFinished'][_0x328b64][_0x5df3eb(0x187)];let _0x2ae168,_0x3dd5a1;return _0x1b35ca&&_0x509ead['EsoRD'](_0x1b35ca[_0x5df3eb(0x1a5)][_0x5df3eb(0x1e0)]()[_0x5df3eb(0x1de)](),_0x509ead[_0x5df3eb(0x1eb)])&&(_0x2ae168=_0x509ead[_0x5df3eb(0x1e1)](_0x1b35ca['exception'],undefined)?_0x1b35ca[_0x5df3eb(0x1b0)]:_0x1b35ca['exception'][_0x5df3eb(0x1b0)],_0x3dd5a1=_0x509ead[_0x5df3eb(0x18a)](_0x1b35ca[_0x5df3eb(0x1b6)],undefined)?_0x509ead[_0x5df3eb(0x177)]:_0x1b35ca[_0x5df3eb(0x1b0)][_0x5df3eb(0x1c0)](/Assert/)?_0x509ead[_0x5df3eb(0x1f6)]:_0x509ead[_0x5df3eb(0x177)]),{'status':_0x1b35ca[_0x5df3eb(0x1a5)][_0x5df3eb(0x1de)](),'failureType':_0x509ead['aNkVk'](_0x3dd5a1,null),'failureData':!_0x2ae168?null:[_0x2ae168]};}['getCucumberHookType'](_0x5763d1,_0x59bc23){const _0x1b175d=a90_0x4331e3,_0x358cdb={};_0x358cdb['daZdx']=function(_0x814cea,_0x3adc8c){return _0x814cea===_0x3adc8c;},_0x358cdb[_0x1b175d(0x1ee)]=_0x1b175d(0x1f3),_0x358cdb[_0x1b175d(0x1ab)]=_0x1b175d(0x1f5);const _0x54c8ea=_0x358cdb;let _0x4aa455=![];for(const _0x5564fa of _0x5763d1){_0x5564fa[_0x1b175d(0x1d1)]&&(_0x4aa455=!![]);if(_0x54c8ea[_0x1b175d(0x1a9)](_0x59bc23['id'],_0x5564fa['id']))return _0x4aa455?_0x54c8ea[_0x1b175d(0x1ee)]:_0x54c8ea[_0x1b175d(0x1ab)];}}['getScenarioExamples']=(_0xd73172,_0x2f6139)=>{const _0x2d9d9c=a90_0x4331e3,_0x4fcb56={};_0x4fcb56[_0x2d9d9c(0x1f2)]=function(_0xb66ed6,_0x262652){return _0xb66ed6===_0x262652;},_0x4fcb56[_0x2d9d9c(0x1a3)]=function(_0x7bbe9c,_0x2bfd3a){return _0x7bbe9c>_0x2bfd3a;};const _0x21f7ec=_0x4fcb56;if(!(_0x2f6139['astNodeIds']&&_0x21f7ec[_0x2d9d9c(0x1a3)](_0x2f6139[_0x2d9d9c(0x17f)][_0x2d9d9c(0x1b8)],0x1)))return;const _0x3c7131=_0x2f6139[_0x2d9d9c(0x17f)][0x0],_0x32eb9b=_0x2f6139[_0x2d9d9c(0x17f)][0x1],_0x2e8b1e=_0xd73172[_0x2d9d9c(0x1ad)]&&_0xd73172[_0x2d9d9c(0x1ad)][_0x2d9d9c(0x1c1)]?_0xd73172[_0x2d9d9c(0x1ad)]['children']:undefined;let _0x3bf20a=[];_0x2e8b1e&&_0x2e8b1e['forEach'](_0x403f49=>{const _0x4f61c5=_0x2d9d9c;if(_0x403f49['rule'])_0x403f49['rule']['children'][_0x4f61c5(0x1c6)](_0x17a13f=>{const _0x3ec288=_0x4f61c5;if(_0x17a13f[_0x3ec288(0x1e5)]&&_0x21f7ec[_0x3ec288(0x1f2)](_0x17a13f['scenario']['id'],_0x3c7131)&&_0x17a13f[_0x3ec288(0x1e5)][_0x3ec288(0x1c5)]){const _0x10db6a=_0x17a13f[_0x3ec288(0x1e5)]['examples'][_0x3ec288(0x193)](_0x1897e4=>_0x1897e4[_0x3ec288(0x1ea)])[_0x3ec288(0x1f0)](_0x34c77d=>_0x34c77d['id']===_0x32eb9b);let _0x1487c3;_0x10db6a&&_0x10db6a['cells']?_0x1487c3=_0x10db6a[_0x3ec288(0x17b)][_0x3ec288(0x1af)](_0xaf8047=>_0xaf8047[_0x3ec288(0x184)]):_0x1487c3=[],_0x1487c3&&(_0x3bf20a=_0x1487c3);}});else{if(_0x403f49['scenario']&&_0x21f7ec[_0x4f61c5(0x1f2)](_0x403f49[_0x4f61c5(0x1e5)]['id'],_0x3c7131)&&_0x403f49['scenario'][_0x4f61c5(0x1c5)]){const _0x4aa592=_0x403f49[_0x4f61c5(0x1e5)][_0x4f61c5(0x1c5)][_0x4f61c5(0x193)](_0x556837=>_0x556837[_0x4f61c5(0x1ea)])[_0x4f61c5(0x1f0)](_0x304d2b=>_0x304d2b['id']===_0x32eb9b);let _0x5dbcd1;_0x4aa592&&_0x4aa592[_0x4f61c5(0x17b)]?_0x5dbcd1=_0x4aa592[_0x4f61c5(0x17b)][_0x4f61c5(0x1af)](_0x518d90=>_0x518d90[_0x4f61c5(0x184)]):_0x5dbcd1=[],_0x5dbcd1&&(_0x3bf20a=_0x5dbcd1);}}});if(_0x3bf20a[_0x2d9d9c(0x1b8)])return _0x3bf20a;return;};async[a90_0x4331e3(0x179)](){const _0x1ad0ae=a90_0x4331e3,_0x2c28c8={'ChjPO':function(_0x2edf09){return _0x2edf09();}};if(this[_0x1ad0ae(0x1d4)])return this[_0x1ad0ae(0x18f)];const _0x4c4b99=await _0x2c28c8[_0x1ad0ae(0x1a1)](getGitMetaData);_0x4c4b99&&(this['_gitConfigPath']=_0x4c4b99['root']),this[_0x1ad0ae(0x1d4)]=!![];}}module['exports']=o11yClassErrorHandler(CucumberUtils,[a90_0x4331e3(0x179),a90_0x4331e3(0x1e3),'getCucumberHookType','getHookResult',a90_0x4331e3(0x196),a90_0x4331e3(0x1d0),a90_0x4331e3(0x1ef),a90_0x4331e3(0x1b4)]);function a90_0x4872(){const _0x5d6d42=['feature','tags','map','message','gcaAq','toISOString','cucumber','createTestFrameworkData','winstonLogger','exception','1005968uVlZre','length','JNKxf','xaTJS','every','aXTJS','qhkHU','join','pending','match','children','483810mVaSIP','uri','SKIPPED','examples','forEach','HookRunFinished','finished_at','12572mpBIin','aNkVk','cgHnC','wBzVB','MZklU','failure_type','tagExpression','getHookRunEventData','pickleStepId','hook','javascript','_gitConfigured','baHsr','unknown','push','199845QiBkhG','relative','kdjrz','krGnD','timestamp','CCDSq','toLowerCase','sourceReference','toString','MrOuv','includes','getScenarioExamples','finishedAt','scenario','backtrace','tYhPd','6726ImsGxL','getTestUUID','tableBody','HNgQx','lRssC','AssertionError','lTFyj','sendTestRunEventForCucumber','find','Exception\x20in\x20createHookData:\x20','DiuuW','AFTER_EACH','../../../helpers/test-observability/error-handler.js','BEFORE_EACH','qjdRk','hookId','createHookData','fcWqG','failure','hooks','UnhandledError','jkkWI','yanTc','JVRev','getHookResult','OalVD','hazsz','configureGit','../../../helpers/logger.js','cells','fIljB','../../../helpers/helper.js','2590482DcpVCn','astNodeIds','195RhvfNW','path','failed','strip-ansi','value','hsiTh','duration_in_ms','testStepResult','FWTPk','getCucumberHookType','EsoRD','760WMdkVJ','10XrAAKU','uuid','passed','_gitConfigPath','TCvNy','failure_reason','8590041WQwHJR','flatMap','Pgrfl','testCaseFinished','sendHook','nanos','util','Exception\x20in\x20getHookRunEventData:\x20','SGFPk','ukTqL','debug','QHEED','failure_data','cxcyD','split','ChjPO','NLAqk','hELmG','failureType','status','oVrgj','SVLdz','format','daZdx','result','jopaj','name'];a90_0x4872=function(){return _0x5d6d42;};return a90_0x4872();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a91_0x231b01=a91_0x427c;(function(_0x4b419a,_0x54a4b8){const _0x495c71=a91_0x427c,_0x5108c1=_0x4b419a();while(!![]){try{const _0x51ff93=-parseInt(_0x495c71(0x281))/0x1*(parseInt(_0x495c71(0x24e))/0x2)+parseInt(_0x495c71(0x212))/0x3+parseInt(_0x495c71(0x1f9))/0x4*(parseInt(_0x495c71(0x207))/0x5)+-parseInt(_0x495c71(0x265))/0x6*(-parseInt(_0x495c71(0x22e))/0x7)+-parseInt(_0x495c71(0x22f))/0x8*(parseInt(_0x495c71(0x1f2))/0x9)+parseInt(_0x495c71(0x21c))/0xa+parseInt(_0x495c71(0x203))/0xb;if(_0x51ff93===_0x54a4b8)break;else _0x5108c1['push'](_0x5108c1['shift']());}catch(_0x32aba8){_0x5108c1['push'](_0x5108c1['shift']());}}}(a91_0x2c30,0x8b29e));const path=require('path'),util=require('util'),crypto=require(a91_0x231b01(0x229)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a91_0x231b01(0x205)),logger=require(a91_0x231b01(0x237))[a91_0x231b01(0x20a)],{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler.js'),TestInfo=require(a91_0x231b01(0x26b)),{failureData,getFailureType}=require('../../../helpers/test-observability/utils'),stackTrace=require(a91_0x231b01(0x221)),a91_0x11d8ec={};a91_0x11d8ec[a91_0x231b01(0x22a)]=a91_0x231b01(0x24b),a91_0x11d8ec['afterAll']='AFTER_ALL',a91_0x11d8ec[a91_0x231b01(0x282)]=a91_0x231b01(0x235),a91_0x11d8ec[a91_0x231b01(0x238)]=a91_0x231b01(0x277);function a91_0x2c30(){const _0x4b66f8=['title','backtrace','testPath','HAjPv','isJestInternalHook','6510880QmoaFF','CjonQ','hook','QdBMI','hCUIK','stack-trace','md5','QfIvB','inspect','veFhU','UQFgH','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','file','crypto','beforeAll','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','recreateIdentifierFromTestInfo','SePVc','1036AekaHq','8pWmkOs','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','Exception\x20in\x20createTestFrameworkData:\x20','stack','bQpaz','_gitConfigured','BEFORE_EACH','FGRXi','../../../helpers/logger.js','afterEach','getHookRunEventData','RVNcb','hvxSj','extractTestFilePath','RIYpd','startedAt','XHUqx','test','iGUbE','errorsDetailed','clearHooksMap','jUIDW','AxQee','OQDQl','CUcaw','apply','type','\x22\x20hook\x20for\x20\x22','BEFORE_ALL','split','lZOJD','262178LEVavH','Wygap','failure','bywPF','OqDAX','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','__jestCurrentTestIdentifier','getFileName','doeVx','HookRunFinished','asyncError','relative','substring','TestRunFinished','name','LHxEz','hooks','createTestFrameworkData','vooah','createIdentifierFromJestTest','myMxs','failure_data','hex','17526mLrMPX','__workerDetails','pid','ROOT_DESCRIBE_BLOCK','XQGfh',',\x20testIdentifier:\x20','../TestInfo.js',',\x20hookUUID:\x20','passed','createHookData','vMHrY','parse','LvzUx','failure_reason_expanded','\x20from\x20compositeKey:\x20','testIdentifier','digest','wvXXS','AFTER_EACH','result',':jest-','acJXw','jest','reverse','getState','[jestUtils]\x20No\x20test\x20object\x20provided','finished_at','parent','7bVumUi','beforeEach','getHierarchy','failure_reason','ZJnXB','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','find','pending','KkTar','Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20','hlogA','err','WuElz','QRagE','yRBdG','GbfmD','createHash','format','KBYOh','zfxqZ','_gitConfigPath','getTestIdentifier','error','configureGit','includes','stYMk','[jestUtils]\x20Created\x20identifier:\x20',',\x20testRunId:\x20','debug','HxsPp','getTime','call','expect','4455684OaIqyt','failure_backtrace','duration','QcjbR','createJestTestIdentifier','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','toISOString','6464cQYklO','failed','now','XawYl','length','nCmNl','started_at','jest-circus','Creating\x20hook\x20data\x20for\x20eventType:\x20','toUpperCase','6545946zyuboE','currentTest','../../../helpers/helper.js','testAnalyticsId','140ZUYRCd','finishedAt','Exception\x20in\x20getHookRunEventData:\x20','winstonLogger','browserstack-node-agent/src/bin/jest','getRootParentFile','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','push','javascript','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier','getName','776949KqAXMQ','toString','PnVJR','gKvWc','match'];a91_0x2c30=function(){return _0x4b66f8;};return a91_0x2c30();}const HOOK_TYPES_MAP=a91_0x11d8ec,hooksMap={};class JestUtils{constructor(){const _0x1148d1=a91_0x231b01;this['_gitConfigured']=![],this[_0x1148d1(0x295)]=null;}async['createTestFrameworkData'](_0x4533d6,_0x2cbd49,_0x548c36=a91_0x231b01(0x25b),_0x3ac4ca=undefined){const _0x4a5f3d=a91_0x231b01,_0x4d1af6={'bywPF':_0x4a5f3d(0x230),'QdBMI':_0x4a5f3d(0x200),'ltCcb':function(_0x3939a9,_0x203d68){return _0x3939a9||_0x203d68;},'doeVx':'File\x20path\x20could\x20not\x20be\x20found','HxsPp':function(_0x319142,_0x14334c){return _0x319142!==_0x14334c;},'LHxEz':_0x4a5f3d(0x240),'PnVJR':function(_0x5cbddb,_0xc0eaf2){return _0x5cbddb!==_0xc0eaf2;},'vMHrY':_0x4a5f3d(0x28c),'hbVZA':function(_0x5f201c,_0x1f7c97){return _0x5f201c!==_0x1f7c97;},'CjonQ':_0x4a5f3d(0x288),'zfxqZ':function(_0x4dc7a4,_0x26d681){return _0x4dc7a4===_0x26d681;},'hCUIK':'TestRunSkipped','QRagE':'skipped','UBcna':function(_0x125d7b,_0x2beb5c){return _0x125d7b>_0x2beb5c;},'OqDAX':'failed','gKvWc':_0x4a5f3d(0x26d),'KBYOh':function(_0x5a9c67,_0x3bf6f5){return _0x5a9c67-_0x3bf6f5;},'hlogA':_0x4a5f3d(0x20f),'OQDQl':_0x4a5f3d(0x27b),'bnbFA':function(_0x2026e4,_0x30eb73){return _0x2026e4(_0x30eb73);},'yRBdG':function(_0x115b5e,_0x2ee992){return _0x115b5e===_0x2ee992;},'SePVc':'TestRunFinished'};logger['debug'](_0x4a5f3d(0x28a)+_0x548c36+_0x4a5f3d(0x26a)+_0x2cbd49);try{if(!_0x4533d6)return logger[_0x4a5f3d(0x1ed)](_0x4d1af6[_0x4a5f3d(0x251)]),null;if(_0x4533d6['fn']&&_0x4533d6['fn']['toString']()[_0x4a5f3d(0x216)](/browserstack internal helper hook/))return null;await this[_0x4a5f3d(0x298)]();let _0x40b877;try{_0x40b877=this['getRootParentFile'](_0x4533d6);if(_0x40b877&&_0x40b877[_0x4a5f3d(0x299)](_0x4d1af6[_0x4a5f3d(0x21f)]))return null;}catch(_0x3724c4){logger[_0x4a5f3d(0x1ed)](_0x4a5f3d(0x253)+util[_0x4a5f3d(0x292)](_0x3724c4)),_0x40b877=null;}const _0x5e08ad=this[_0x4a5f3d(0x283)](_0x4533d6),_0x3beb1c=this[_0x4a5f3d(0x211)](_0x4533d6),_0x558de4=_0x4d1af6['ltCcb'](_0x40b877,_0x4d1af6[_0x4a5f3d(0x256)]);let _0x3f4bd4=[];if(_0x4d1af6[_0x4a5f3d(0x1ee)](_0x4533d6[_0x4a5f3d(0x242)],undefined))_0x3f4bd4=[_0x4533d6[_0x4a5f3d(0x242)],_0x4d1af6[_0x4a5f3d(0x25d)]];else _0x4d1af6[_0x4a5f3d(0x214)](_0x3ac4ca,undefined)&&(_0x3f4bd4=[_0x3ac4ca,_0x4d1af6[_0x4a5f3d(0x26f)]]);const _0x4a73fb=_0x4d1af6[_0x4a5f3d(0x1ee)](_0x4533d6[_0x4a5f3d(0x242)],undefined)?util[_0x4a5f3d(0x224)](_0x4533d6[_0x4a5f3d(0x242)][0x0]):_0x4d1af6['hbVZA'](_0x3ac4ca,undefined)?_0x3ac4ca['toString']():undefined;let _0x202db5=_0x4d1af6[_0x4a5f3d(0x21d)];if(_0x4d1af6[_0x4a5f3d(0x294)](_0x548c36,_0x4d1af6[_0x4a5f3d(0x220)]))_0x202db5=_0x4d1af6[_0x4a5f3d(0x28e)];else _0x4533d6[_0x4a5f3d(0x242)]&&_0x4d1af6['UBcna'](_0x4533d6[_0x4a5f3d(0x242)][_0x4a5f3d(0x1fd)],0x0)?_0x202db5=_0x4d1af6[_0x4a5f3d(0x252)]:_0x202db5=_0x4d1af6[_0x4a5f3d(0x215)];let _0x8b8176=null;if(_0x4d1af6[_0x4a5f3d(0x1ee)](_0x4533d6[_0x4a5f3d(0x1f4)],undefined))_0x8b8176=_0x4533d6[_0x4a5f3d(0x1f4)];else(_0x548c36['match'](/Finished/)||_0x548c36[_0x4a5f3d(0x216)](/Skipped/))&&(_0x4533d6['started_at']&&(_0x8b8176=_0x4d1af6[_0x4a5f3d(0x293)](Date[_0x4a5f3d(0x1fb)](),new Date(_0x4533d6[_0x4a5f3d(0x1ff)])[_0x4a5f3d(0x1ef)]())));const _0x5dabf6=_0x4533d6['fn']?_0x4533d6['fn'][_0x4a5f3d(0x213)]():null,_0x5d06f9={'id':_0x2cbd49,'uuid':_0x2cbd49,'startedAt':_0x4533d6[_0x4a5f3d(0x1ff)]||new Date()[_0x4a5f3d(0x1f8)](),'finishedAt':_0x548c36['match'](/Finished/)||_0x548c36[_0x4a5f3d(0x216)](/Skipped/)?new Date()[_0x4a5f3d(0x1f8)]():null,'type':_0x4d1af6[_0x4a5f3d(0x25d)],'body':{'lang':_0x4d1af6[_0x4a5f3d(0x28b)],'code':_0x5dabf6},'name':_0x3beb1c,'scopes':_0x5e08ad,'file_name':_0x558de4,'location':_0x558de4,'vc_filepath':this['_gitConfigPath']&&_0x40b877?path[_0x4a5f3d(0x259)](this[_0x4a5f3d(0x295)],_0x40b877):null,'framework':_0x4d1af6[_0x4a5f3d(0x246)],'result':_0x202db5,'failure_reason':_0x4a73fb,'duration_in_ms':_0x8b8176,'failure':failureData[_0x4a5f3d(0x248)](null,_0x3f4bd4),'failure_type':!_0x4a73fb?null:_0x4d1af6['bnbFA'](getFailureType,_0x4a73fb),'retry_of':_0x4533d6['retryOf']||null,'customRerunParam':{'rerun_name':_0x3beb1c}};_0x4d1af6['yRBdG'](_0x548c36,_0x4d1af6[_0x4a5f3d(0x220)])&&!_0x5d06f9[_0x4a5f3d(0x23e)]&&(_0x5d06f9[_0x4a5f3d(0x23e)]=_0x5d06f9[_0x4a5f3d(0x208)]);const _0x467aea=_0x5d06f9[_0x4a5f3d(0x250)]&&_0x5d06f9['failure'][0x0];return _0x467aea&&(_0x5d06f9[_0x4a5f3d(0x1f3)]=_0x467aea[_0x4a5f3d(0x218)],_0x5d06f9[_0x4a5f3d(0x272)]=_0x467aea['expanded']),(_0x4d1af6['yRBdG'](_0x548c36,_0x4d1af6[_0x4a5f3d(0x22d)])||_0x4d1af6[_0x4a5f3d(0x28f)](_0x548c36,_0x4d1af6['hCUIK']))&&(_0x4533d6['hooks']&&(_0x5d06f9[_0x4a5f3d(0x25e)]=_0x4533d6[_0x4a5f3d(0x25e)])),_0x5d06f9;}catch(_0x3491e7){return logger[_0x4a5f3d(0x1ed)](_0x4a5f3d(0x231)+util['format'](_0x3491e7)),null;}}async[a91_0x231b01(0x26e)](_0x20b35d,_0x20240a,_0x3f0d2a,_0x92d528){const _0xd1cc2d=a91_0x231b01,_0x1c05d3={'BUmWY':_0xd1cc2d(0x1f7),'mahOO':_0xd1cc2d(0x200),'NGVfn':_0xd1cc2d(0x20b),'TOWLh':'unknown','jUIDW':_0xd1cc2d(0x288),'XHUqx':function(_0x2f5123,_0x571c1c){return _0x2f5123===_0x571c1c;},'nCmNl':_0xd1cc2d(0x257),'QfIvB':function(_0x5a081e,_0x4a44ea){return _0x5a081e>_0x4a44ea;},'jebVT':_0xd1cc2d(0x1fa),'RizTQ':function(_0x2df5d8,_0x18cc40){return _0x2df5d8(_0x18cc40);},'stYMk':'test','WWzlU':'passed','iGUbE':_0xd1cc2d(0x21e),'FGRXi':'javascript','LvzUx':'jest','HAjPv':'HookRunStarted'};logger[_0xd1cc2d(0x1ed)](_0xd1cc2d(0x201)+_0x3f0d2a+_0xd1cc2d(0x26c)+_0x20240a+_0xd1cc2d(0x1ec)+_0x92d528);try{if(!_0x20b35d)return logger[_0xd1cc2d(0x1ed)](_0x1c05d3['BUmWY']),null;if(this['isJestInternalHook'](_0x20b35d))return null;await this[_0xd1cc2d(0x298)]();let _0x4d906f=null;try{_0x4d906f=this[_0xd1cc2d(0x20c)](_0x20b35d);if(_0x4d906f&&_0x4d906f['includes'](_0x1c05d3['mahOO']))return null;if(_0x4d906f&&_0x4d906f[_0xd1cc2d(0x299)](_0x1c05d3['NGVfn']))return null;}catch(_0x26997e){logger[_0xd1cc2d(0x1ed)]('Failed\x20to\x20get\x20hook\x20file\x20path:\x20'+util[_0xd1cc2d(0x292)](_0x26997e));}const _0x4686f8=this[_0xd1cc2d(0x211)](_0x20b35d),_0x32ed07=_0x20b35d[_0xd1cc2d(0x249)]||_0x1c05d3['TOWLh'],_0x38ced4=HOOK_TYPES_MAP[_0x32ed07]||_0x32ed07[_0xd1cc2d(0x202)](),_0xbae5d6=_0x20b35d[_0xd1cc2d(0x280)]&&_0x20b35d['parent']['name']?_0x20b35d[_0xd1cc2d(0x280)]['name']:'';let _0x59affe=_0x1c05d3[_0xd1cc2d(0x244)],_0x3b11a9=null,_0x3fdd8f=null,_0x45836d=null,_0x289289=null;_0x1c05d3[_0xd1cc2d(0x23f)](_0x3f0d2a,_0x1c05d3[_0xd1cc2d(0x1fe)])&&(_0x289289=new Date()[_0xd1cc2d(0x1f8)](),_0x20b35d[_0xd1cc2d(0x242)]&&_0x1c05d3[_0xd1cc2d(0x223)](_0x20b35d[_0xd1cc2d(0x242)]['length'],0x0)?(_0x59affe=_0x1c05d3['jebVT'],_0x3fdd8f=util[_0xd1cc2d(0x224)](_0x20b35d[_0xd1cc2d(0x242)][0x0]),_0x3b11a9=_0x1c05d3['RizTQ'](getFailureType,_0x3fdd8f),_0x45836d=failureData[_0xd1cc2d(0x248)](null,[_0x20b35d[_0xd1cc2d(0x242)],_0x1c05d3[_0xd1cc2d(0x29a)]])):_0x59affe=_0x1c05d3['WWzlU']);const _0x43936a={'uuid':_0x20240a,'type':_0x1c05d3[_0xd1cc2d(0x241)],'hook_type':_0x38ced4,'name':_0x4686f8,'body':{'lang':_0x1c05d3[_0xd1cc2d(0x236)],'code':_0x20b35d['fn']?_0x20b35d['fn'][_0xd1cc2d(0x213)]():null},'tags':[],'test_run_id':_0x92d528,'scope':_0xbae5d6,'scopes':[_0xbae5d6],'file_name':_0x4d906f,'location':_0x4d906f,'vc_filepath':this[_0xd1cc2d(0x295)]&&_0x4d906f?path[_0xd1cc2d(0x259)](this[_0xd1cc2d(0x295)],_0x4d906f):null,'result':_0x59affe,'started_at':_0x20b35d[_0xd1cc2d(0x1ff)]||new Date()[_0xd1cc2d(0x1f8)](),'finished_at':_0x289289,'failure_type':_0x3b11a9,'failure_reason':_0x3fdd8f,'failure_data':_0x45836d,'framework':_0x1c05d3[_0xd1cc2d(0x271)]};return _0x1c05d3[_0xd1cc2d(0x23f)](_0x3f0d2a,_0x1c05d3[_0xd1cc2d(0x21a)])&&(hooksMap[_0x92d528]?hooksMap[_0x92d528][_0xd1cc2d(0x20e)](_0x43936a):hooksMap[_0x92d528]=[_0x43936a]),_0x43936a;}catch(_0x2d2101){return logger[_0xd1cc2d(0x1ed)]('Exception\x20in\x20createHookData:\x20'+util[_0xd1cc2d(0x292)](_0x2d2101)),null;}}['getHookRunEventData'](_0x3d9ad2,_0x35ee0e,_0x2da567){const _0x4a3824=a91_0x231b01,_0x5b839b={'udhND':function(_0xbfbfe,_0x4dc952){return _0xbfbfe>_0x4dc952;},'ZJnXB':'failed','veFhU':function(_0x35f1b7,_0x4c2aa5){return _0x35f1b7(_0x4c2aa5);},'lZOJD':_0x4a3824(0x240),'wvXXS':_0x4a3824(0x26d)};try{const _0xdc77cd=hooksMap[_0x3d9ad2];if(!_0xdc77cd)return null;const _0x508fea=_0xdc77cd[_0x4a3824(0x287)](_0x2cbb2c=>_0x2cbb2c['uuid']===_0x35ee0e);if(!_0x508fea)return null;return _0x508fea[_0x4a3824(0x27f)]=new Date()[_0x4a3824(0x1f8)](),_0x2da567['errorsDetailed']&&_0x5b839b['udhND'](_0x2da567['errorsDetailed'][_0x4a3824(0x1fd)],0x0)?(_0x508fea[_0x4a3824(0x278)]=_0x5b839b[_0x4a3824(0x285)],_0x508fea[_0x4a3824(0x284)]=util[_0x4a3824(0x224)](_0x2da567['errorsDetailed'][0x0]),_0x508fea['failure_type']=_0x5b839b[_0x4a3824(0x225)](getFailureType,_0x508fea[_0x4a3824(0x284)]),_0x508fea[_0x4a3824(0x263)]=failureData[_0x4a3824(0x248)](null,[_0x2da567['errorsDetailed'],_0x5b839b[_0x4a3824(0x24d)]])):_0x508fea[_0x4a3824(0x278)]=_0x5b839b[_0x4a3824(0x276)],_0x508fea;}catch(_0x45ba6d){return logger[_0x4a3824(0x1ed)](_0x4a3824(0x209)+util[_0x4a3824(0x292)](_0x45ba6d)),null;}}['getName'](_0x58606d){const _0x125598=a91_0x231b01,_0x3f2d43={};_0x3f2d43[_0x125598(0x23a)]=function(_0x5a14ba,_0x188a6d){return _0x5a14ba!==_0x188a6d;},_0x3f2d43['KkTar']=_0x125598(0x240),_0x3f2d43['acJXw']='Unknown\x20Test';const _0x304455=_0x3f2d43;if(_0x304455['RVNcb'](_0x58606d[_0x125598(0x249)],_0x304455[_0x125598(0x289)]))return'\x22'+_0x58606d['type']+_0x125598(0x24a)+(_0x58606d[_0x125598(0x280)]&&_0x58606d[_0x125598(0x280)][_0x125598(0x25c)])+'\x22';return _0x58606d[_0x125598(0x25c)]||_0x304455[_0x125598(0x27a)];}['getHierarchy'](_0x885dff){const _0x40dfd0=a91_0x231b01,_0x31b3d4={};_0x31b3d4['bQpaz']=function(_0x4ceb1c,_0x928406){return _0x4ceb1c!==_0x928406;},_0x31b3d4[_0x40dfd0(0x1f5)]=_0x40dfd0(0x268);const _0x349395=_0x31b3d4,_0x1570d5=[];if(_0x885dff&&_0x885dff[_0x40dfd0(0x280)]){let _0x16ad17=_0x885dff[_0x40dfd0(0x280)];while(_0x16ad17&&_0x16ad17[_0x40dfd0(0x25c)]&&_0x349395['bQpaz'](_0x16ad17[_0x40dfd0(0x25c)],'')&&_0x349395[_0x40dfd0(0x233)](_0x16ad17['name'],_0x349395[_0x40dfd0(0x1f5)])){_0x1570d5['push'](_0x16ad17[_0x40dfd0(0x25c)]),_0x16ad17=_0x16ad17[_0x40dfd0(0x280)];}}return _0x1570d5[_0x40dfd0(0x27c)](),_0x1570d5;}[a91_0x231b01(0x20c)](_0x149415){const _0x30f0ae=a91_0x231b01;if(_0x149415['asyncError'])try{const _0x4f52f8=stackTrace[_0x30f0ae(0x270)][_0x30f0ae(0x1f0)](stackTrace,_0x149415[_0x30f0ae(0x258)]);if(_0x4f52f8[0x0]&&_0x4f52f8[0x0][_0x30f0ae(0x255)])return _0x4f52f8[0x0][_0x30f0ae(0x255)]();}catch(_0x4ea1ce){logger['debug'](_0x30f0ae(0x20d)+util[_0x30f0ae(0x292)](_0x4ea1ce));}if(_0x149415[_0x30f0ae(0x228)])return _0x149415['file'];return null;}[a91_0x231b01(0x21b)](_0x110d36){const _0x1f2e20=a91_0x231b01,_0x1225fe={};_0x1225fe[_0x1f2e20(0x290)]='jest-circus';const _0x494c69=_0x1225fe;try{const _0xa4bbf2=this['getRootParentFile'](_0x110d36);if(_0xa4bbf2&&_0xa4bbf2[_0x1f2e20(0x299)](_0x494c69[_0x1f2e20(0x290)]))return!![];}catch(_0x32d6b3){logger['debug'](_0x1f2e20(0x286)+util[_0x1f2e20(0x292)](_0x32d6b3));}return![];}[a91_0x231b01(0x296)](_0x2768f3=null){const _0x20a65f=a91_0x231b01;try{const _0x25dcab=_0x2768f3||global[_0x20a65f(0x266)]||{};if(global[_0x20a65f(0x254)])return global['__jestCurrentTestIdentifier'];if(_0x25dcab?.[_0x20a65f(0x204)]?.[_0x20a65f(0x206)])return _0x25dcab[_0x20a65f(0x204)][_0x20a65f(0x206)];if(_0x25dcab?.[_0x20a65f(0x204)]?.['id'])return _0x25dcab[_0x20a65f(0x204)]['id'];return null;}catch(_0x59bbd7){return logger[_0x20a65f(0x1ed)]('[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20'+util['format'](_0x59bbd7)),null;}}async[a91_0x231b01(0x298)](){const _0x5397c9=a91_0x231b01,_0x4fbaa7={'UQFgH':function(_0x5e9ae3){return _0x5e9ae3();}};if(this[_0x5397c9(0x234)])return this[_0x5397c9(0x295)];const _0x144d2f=await _0x4fbaa7[_0x5397c9(0x226)](getGitMetaData);_0x144d2f&&(this[_0x5397c9(0x295)]=_0x144d2f['root']),this[_0x5397c9(0x234)]=!![];}[a91_0x231b01(0x243)](_0x1b64d0){hooksMap[_0x1b64d0]&&delete hooksMap[_0x1b64d0];}[a91_0x231b01(0x23c)](_0x2234d2){const _0xc2a188=a91_0x231b01,_0x4cb681={'WuElz':_0xc2a188(0x200),'KytbU':function(_0x488d09,_0x5da23d){return _0x488d09(_0x5da23d);},'vooah':_0xc2a188(0x1f1)};if(_0x2234d2[_0xc2a188(0x228)])return _0x2234d2['file'];if(_0x2234d2[_0xc2a188(0x258)]){try{const _0x1a8209=stackTrace[_0xc2a188(0x270)](_0x2234d2[_0xc2a188(0x258)]);if(_0x1a8209[0x0]&&_0x1a8209[0x0][_0xc2a188(0x255)]){const _0x590f99=_0x1a8209[0x0][_0xc2a188(0x255)]();if(_0x590f99&&!_0x590f99[_0xc2a188(0x299)](_0x4cb681['WuElz']))return _0x590f99;}}catch(_0x30609f){logger[_0xc2a188(0x1ed)]('[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util[_0xc2a188(0x292)](_0x30609f));}if(_0x2234d2[_0xc2a188(0x258)]['stack']){const _0x42476c=_0x2234d2[_0xc2a188(0x258)][_0xc2a188(0x232)][_0xc2a188(0x24c)]('\x0a');for(const _0x33eed3 of _0x42476c){const _0x162c85=_0x33eed3[_0xc2a188(0x216)](/at (.+?):\d+:\d+/);if(_0x162c85&&_0x162c85[0x1]&&!_0x162c85[0x1][_0xc2a188(0x299)](_0x4cb681[_0xc2a188(0x28d)]))return _0x162c85[0x1];}}}let _0x125dd4=_0x2234d2[_0xc2a188(0x280)];while(_0x125dd4){if(_0x125dd4[_0xc2a188(0x228)])return _0x125dd4['file'];if(_0x125dd4[_0xc2a188(0x258)])try{const _0x3a1be6=stackTrace[_0xc2a188(0x270)](_0x125dd4[_0xc2a188(0x258)]);if(_0x3a1be6[0x0]&&_0x3a1be6[0x0]['getFileName']){const _0x2e2a09=_0x3a1be6[0x0]['getFileName']();if(_0x2e2a09&&!_0x2e2a09[_0xc2a188(0x299)](_0x4cb681['WuElz']))return _0x2e2a09;}}catch(_0x568970){}_0x125dd4=_0x125dd4[_0xc2a188(0x280)];}try{const _0x56d5a6=_0x4cb681['KytbU'](require,_0x4cb681[_0xc2a188(0x260)]);if(_0x56d5a6&&_0x56d5a6[_0xc2a188(0x27d)]){const _0x22e4ef=_0x56d5a6[_0xc2a188(0x27d)]();if(_0x22e4ef&&_0x22e4ef[_0xc2a188(0x219)])return _0x22e4ef[_0xc2a188(0x219)];}}catch(_0x291182){logger['debug'](_0xc2a188(0x22b)+util[_0xc2a188(0x292)](_0x291182));}return null;}[a91_0x231b01(0x1f6)](_0xe63bd2){const _0xc9c69b=a91_0x231b01,_0x462657={};_0x462657[_0xc9c69b(0x23d)]=_0xc9c69b(0x210),_0x462657[_0xc9c69b(0x247)]=function(_0x4ea95b,_0x5ea4f8){return _0x4ea95b!==_0x5ea4f8;},_0x462657[_0xc9c69b(0x269)]=_0xc9c69b(0x268),_0x462657[_0xc9c69b(0x23b)]='jest-circus',_0x462657[_0xc9c69b(0x262)]=_0xc9c69b(0x222),_0x462657[_0xc9c69b(0x1fc)]=_0xc9c69b(0x264);const _0x2b5f9b=_0x462657;try{if(!_0xe63bd2)return logger[_0xc9c69b(0x297)](_0x2b5f9b[_0xc9c69b(0x23d)]),null;const _0x35a4d4=_0xe63bd2['fullName']||_0xe63bd2[_0xc9c69b(0x25c)]||_0xe63bd2['title']||_0xe63bd2['displayName'];let _0x4d6808=_0x35a4d4;if(_0xe63bd2['parent']&&_0xe63bd2['parent']['name']&&_0x2b5f9b[_0xc9c69b(0x247)](_0xe63bd2[_0xc9c69b(0x280)][_0xc9c69b(0x25c)],_0x2b5f9b[_0xc9c69b(0x269)])){const _0x324ce6=_0xe63bd2[_0xc9c69b(0x25c)]||_0xe63bd2[_0xc9c69b(0x217)];_0x324ce6&&(_0x4d6808=_0xe63bd2['parent'][_0xc9c69b(0x25c)]+'\x20'+_0x324ce6);}let _0x5a6838=_0xe63bd2[_0xc9c69b(0x219)];if(!_0x5a6838&&_0xe63bd2[_0xc9c69b(0x258)]){try{const _0xa1f741=stackTrace[_0xc9c69b(0x270)](_0xe63bd2[_0xc9c69b(0x258)]);if(_0xa1f741[0x0]&&_0xa1f741[0x0]['getFileName']){const _0x5a51f8=_0xa1f741[0x0][_0xc9c69b(0x255)]();_0x5a51f8&&!_0x5a51f8[_0xc9c69b(0x299)](_0x2b5f9b[_0xc9c69b(0x23b)])&&(_0x5a6838=_0x5a51f8);}}catch(_0x2eece6){logger[_0xc9c69b(0x1ed)](_0xc9c69b(0x227)+util[_0xc9c69b(0x292)](_0x2eece6));}if(!_0x5a6838&&_0xe63bd2[_0xc9c69b(0x258)]['stack']){const _0x1cbfcf=_0xe63bd2[_0xc9c69b(0x258)][_0xc9c69b(0x232)][_0xc9c69b(0x24c)]('\x0a');for(const _0x23e6a1 of _0x1cbfcf){const _0x48c5ce=_0x23e6a1[_0xc9c69b(0x216)](/at (.+?):\d+:\d+/);if(_0x48c5ce&&_0x48c5ce[0x1]&&!_0x48c5ce[0x1][_0xc9c69b(0x299)](_0x2b5f9b[_0xc9c69b(0x23b)])){_0x5a6838=_0x48c5ce[0x1];break;}}}}const _0x4e33ab=_0x5a6838+'::'+_0x4d6808,_0x233d41=crypto[_0xc9c69b(0x291)](_0x2b5f9b[_0xc9c69b(0x262)])['update'](_0x4e33ab)[_0xc9c69b(0x275)](_0x2b5f9b['XawYl'])[_0xc9c69b(0x25a)](0x0,0x8),_0x2881f7=process[_0xc9c69b(0x267)]+_0xc9c69b(0x279)+_0x233d41;return logger[_0xc9c69b(0x1ed)](_0xc9c69b(0x1eb)+_0x2881f7+_0xc9c69b(0x273)+_0x4e33ab),_0x2881f7;}catch(_0xe821a5){return logger[_0xc9c69b(0x297)]('[jestUtils]\x20Error\x20creating\x20identifier:\x20'+util[_0xc9c69b(0x292)](_0xe821a5)),null;}}[a91_0x231b01(0x261)](_0x27865d){const _0x5e23db=a91_0x231b01,_0x502075={};_0x502075[_0x5e23db(0x245)]=_0x5e23db(0x27e);const _0x60b190=_0x502075;if(!_0x27865d)return logger[_0x5e23db(0x1ed)](_0x60b190['AxQee']),null;const _0x2f4511=this[_0x5e23db(0x23c)](_0x27865d),_0x2de6da={};_0x2de6da[_0x5e23db(0x25c)]=_0x27865d['name']||_0x27865d['title'],_0x2de6da['parent']=_0x27865d[_0x5e23db(0x280)],_0x2de6da['testPath']=_0x2f4511,_0x2de6da[_0x5e23db(0x258)]=_0x27865d['asyncError'];const _0x3aacb6=_0x2de6da;return this[_0x5e23db(0x1f6)](_0x3aacb6);}[a91_0x231b01(0x22c)](_0x238878){const _0x5754a8=a91_0x231b01,_0x5f3b02={};_0x5f3b02['Wygap']='[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation';const _0x2fcbe6=_0x5f3b02;if(!_0x238878)return logger[_0x5754a8(0x1ed)](_0x2fcbe6[_0x5754a8(0x24f)]),null;if(_0x238878[_0x5754a8(0x274)])return logger[_0x5754a8(0x1ed)]('[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20'+_0x238878[_0x5754a8(0x274)]),_0x238878[_0x5754a8(0x274)];return this[_0x5754a8(0x1f6)](_0x238878);}}function a91_0x427c(_0x4b9fbc,_0x3d4c72){const _0x2c30b0=a91_0x2c30();return a91_0x427c=function(_0x427c93,_0x21816a){_0x427c93=_0x427c93-0x1eb;let _0x7a7b8f=_0x2c30b0[_0x427c93];return _0x7a7b8f;},a91_0x427c(_0x4b9fbc,_0x3d4c72);}module['exports']=o11yClassErrorHandler(JestUtils,[a91_0x231b01(0x298),a91_0x231b01(0x283),a91_0x231b01(0x20c),'getName','isJestInternalHook','getTestIdentifier',a91_0x231b01(0x25f),a91_0x231b01(0x26e),a91_0x231b01(0x239),'clearHooksMap','extractTestFilePath',a91_0x231b01(0x1f6),'createIdentifierFromJestTest',a91_0x231b01(0x22c)]);
|
|
1
|
+
function a91_0x491e(){const _0xeb9795=['aBZJb','getState','jest','yqYLp','createIdentifierFromJestTest','\x20from\x20compositeKey:\x20','qBOsw','getHierarchy','cNbLK',':jest-','pending','zHnpY','Unknown\x20Test','[jestUtils]\x20Error\x20creating\x20identifier:\x20','MCsga','iVBZU','duration','DFiSl','clearHooksMap','Haugt','asyncError','YqnjZ','fullName','errorsDetailed','248qgzgCI','testAnalyticsId','8159930kHPVjR','7538211oshlzi','isJestInternalHook','GNZqa','failure','browserstack-node-agent/src/bin/jest','unknown','pBRDX','title','testPath','__jestCurrentTestIdentifier','backtrace','started_at','createHookData','331569KYeKlE','BEFORE_EACH','lMmAc','efZLn','4IbjQso','debug','QrDaj','afterAll','afterEach','beforeAll','length','beforeEach','CzHYi','createTestFrameworkData','crypto','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','ofaqH','root','[jestUtils]\x20No\x20test\x20object\x20provided','toUpperCase','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','format','gyRiT','currentTest','GCDpt','getHookRunEventData','failure_reason_expanded','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier','relative','Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20','file','util','reverse','zygbf','13978296XbRIkA','AFTER_ALL','1059TVRNkm','[jestUtils]\x20Created\x20identifier:\x20','hbafU','testIdentifier','toISOString','recreateIdentifierFromTestInfo','6919WXhdKj','finished_at','TjOCt','match','displayName','\x22\x20hook\x20for\x20\x22','mtgfu','xezKo','hooks','_gitConfigPath','failure_reason','Exception\x20in\x20createHookData:\x20','configureGit','createHash','AFaGR','Exception\x20in\x20createTestFrameworkData:\x20','md5','stack-trace',',\x20hookUUID:\x20','substring','Exception\x20in\x20getHookRunEventData:\x20','hex','split','createJestTestIdentifier','failure_data','passed','pid','failure_type','type','443413SfJJxL','SwcBN','File\x20path\x20could\x20not\x20be\x20found','result','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','cfmKS','TestRunSkipped','cdgss','javascript','2308XemeSV','RAdei','DxJMf','BEFORE_ALL','hook','toString','UPWMv','uuid','_gitConfigured','AFTER_EACH','getName',',\x20testIdentifier:\x20','name','__workerDetails','err','expect','jest-circus','push','inspect','exports','retryOf','TestRunFinished','XTNrF','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','error','../../../helpers/logger.js','6PTSpWU','qgZgm','nkDuc','../TestInfo.js','parent','aMcpZ','stack','failed','PNrLt','getTestIdentifier','QaOeh','MGaeR','grueq','failure_backtrace','XYylI','ZqWYT','includes','apply','getFileName','ljoZB','VObVe','HookRunStarted','bUVMX','../../../helpers/test-observability/utils','digest','extractTestFilePath','gItWv','getRootParentFile','parse','vdZSB','24410uyeVhf','JDKXN','test','VmxON','ztQUV','DWcgC','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','ROOT_DESCRIBE_BLOCK'];a91_0x491e=function(){return _0xeb9795;};return a91_0x491e();}const a91_0x2f12c3=a91_0x24b3;(function(_0x53d9f6,_0x1162c5){const _0x5ac474=a91_0x24b3,_0x5e128e=_0x53d9f6();while(!![]){try{const _0x472550=parseInt(_0x5ac474(0x18e))/0x1*(-parseInt(_0x5ac474(0x14a))/0x2)+parseInt(_0x5ac474(0x16b))/0x3*(-parseInt(_0x5ac474(0x197))/0x4)+parseInt(_0x5ac474(0x138))/0x5*(parseInt(_0x5ac474(0x1b1))/0x6)+-parseInt(_0x5ac474(0x146))/0x7*(parseInt(_0x5ac474(0x136))/0x8)+-parseInt(_0x5ac474(0x139))/0x9+-parseInt(_0x5ac474(0x116))/0xa*(-parseInt(_0x5ac474(0x171))/0xb)+parseInt(_0x5ac474(0x169))/0xc;if(_0x472550===_0x1162c5)break;else _0x5e128e['push'](_0x5e128e['shift']());}catch(_0x143888){_0x5e128e['push'](_0x5e128e['shift']());}}}(a91_0x491e,0xe475a));const path=require('path'),util=require(a91_0x2f12c3(0x166)),crypto=require(a91_0x2f12c3(0x154)),{getGitMetaData,isUndefined,nestedKeyValue}=require('../../../helpers/helper.js'),logger=require(a91_0x2f12c3(0x1b0))['winstonLogger'],{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler.js'),TestInfo=require(a91_0x2f12c3(0x1b4)),{failureData,getFailureType}=require(a91_0x2f12c3(0x10f)),stackTrace=require(a91_0x2f12c3(0x182)),a91_0x441257={};a91_0x441257[a91_0x2f12c3(0x14f)]=a91_0x2f12c3(0x19a),a91_0x441257[a91_0x2f12c3(0x14d)]=a91_0x2f12c3(0x16a),a91_0x441257[a91_0x2f12c3(0x151)]=a91_0x2f12c3(0x147),a91_0x441257[a91_0x2f12c3(0x14e)]=a91_0x2f12c3(0x1a0);const HOOK_TYPES_MAP=a91_0x441257,hooksMap={};function a91_0x24b3(_0x1e9388,_0x5633dd){const _0x491ebe=a91_0x491e();return a91_0x24b3=function(_0x24b304,_0x5bce3c){_0x24b304=_0x24b304-0x103;let _0x228b8d=_0x491ebe[_0x24b304];return _0x228b8d;},a91_0x24b3(_0x1e9388,_0x5633dd);}class JestUtils{constructor(){const _0x2b6a21=a91_0x2f12c3;this[_0x2b6a21(0x19f)]=![],this['_gitConfigPath']=null;}async[a91_0x2f12c3(0x153)](_0x118bfa,_0x50cfc0,_0x5cf56e=a91_0x2f12c3(0x1ac),_0x232eb0=undefined){const _0x22b7a8=a91_0x2f12c3,_0x429496={'cfmKS':'No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','TjOCt':_0x22b7a8(0x1a7),'CcDkU':function(_0x54ee64,_0x3a5d98){return _0x54ee64||_0x3a5d98;},'SwcBN':_0x22b7a8(0x190),'nkDuc':function(_0x45e057,_0xdb0565){return _0x45e057!==_0xdb0565;},'PNrLt':'test','UbfuU':_0x22b7a8(0x1a5),'VObVe':function(_0x9dd596,_0x1a8bdd){return _0x9dd596!==_0x1a8bdd;},'pVyVQ':function(_0x3a0a4b,_0xf81c2f){return _0x3a0a4b!==_0xf81c2f;},'RWVBL':_0x22b7a8(0x128),'xezKo':function(_0xcaa624,_0x2f871d){return _0xcaa624===_0x2f871d;},'ZqWYT':_0x22b7a8(0x194),'gyRiT':'skipped','aMcpZ':function(_0xd61592,_0x23220d){return _0xd61592>_0x23220d;},'KTCgn':'failed','lMmAc':_0x22b7a8(0x18a),'gItWv':function(_0x4758fa,_0xa9cb46){return _0x4758fa!==_0xa9cb46;},'CzHYi':function(_0x1947b3,_0x18cc67){return _0x1947b3-_0x18cc67;},'fuFRU':_0x22b7a8(0x196),'ofaqH':_0x22b7a8(0x120),'RAsXn':function(_0x2051ad,_0x10e1dd){return _0x2051ad(_0x10e1dd);},'zHnpY':function(_0x122d95,_0x1dcafa){return _0x122d95===_0x1dcafa;},'RAdei':_0x22b7a8(0x1ac)};logger[_0x22b7a8(0x14b)](_0x22b7a8(0x164)+_0x5cf56e+_0x22b7a8(0x1a2)+_0x50cfc0);try{if(!_0x118bfa)return logger[_0x22b7a8(0x14b)](_0x429496[_0x22b7a8(0x193)]),null;if(_0x118bfa['fn']&&_0x118bfa['fn'][_0x22b7a8(0x19c)]()[_0x22b7a8(0x174)](/browserstack internal helper hook/))return null;await this[_0x22b7a8(0x17d)]();let _0x45c757;try{_0x45c757=this[_0x22b7a8(0x113)](_0x118bfa);if(_0x45c757&&_0x45c757[_0x22b7a8(0x108)](_0x429496[_0x22b7a8(0x173)]))return null;}catch(_0x375707){logger['debug']('Failed\x20to\x20get\x20root\x20parent\x20file:\x20'+util[_0x22b7a8(0x15c)](_0x375707)),_0x45c757=null;}const _0x5bfb1e=this['getHierarchy'](_0x118bfa),_0x639dd0=this[_0x22b7a8(0x1a1)](_0x118bfa),_0xdc8d0c=_0x429496['CcDkU'](_0x45c757,_0x429496[_0x22b7a8(0x18f)]);let _0x5aa4c9=[];if(_0x429496[_0x22b7a8(0x1b3)](_0x118bfa[_0x22b7a8(0x135)],undefined))_0x5aa4c9=[_0x118bfa[_0x22b7a8(0x135)],_0x429496[_0x22b7a8(0x1b9)]];else _0x429496[_0x22b7a8(0x1b3)](_0x232eb0,undefined)&&(_0x5aa4c9=[_0x232eb0,_0x429496['UbfuU']]);const _0x3fd6db=_0x429496[_0x22b7a8(0x10c)](_0x118bfa[_0x22b7a8(0x135)],undefined)?util[_0x22b7a8(0x1a9)](_0x118bfa[_0x22b7a8(0x135)][0x0]):_0x429496['pVyVQ'](_0x232eb0,undefined)?_0x232eb0['toString']():undefined;let _0x1917e0=_0x429496['RWVBL'];if(_0x429496[_0x22b7a8(0x178)](_0x5cf56e,_0x429496['ZqWYT']))_0x1917e0=_0x429496[_0x22b7a8(0x15d)];else _0x118bfa[_0x22b7a8(0x135)]&&_0x429496[_0x22b7a8(0x1b6)](_0x118bfa['errorsDetailed']['length'],0x0)?_0x1917e0=_0x429496['KTCgn']:_0x1917e0=_0x429496[_0x22b7a8(0x148)];let _0x2ee73c=null;if(_0x429496[_0x22b7a8(0x112)](_0x118bfa[_0x22b7a8(0x12e)],undefined))_0x2ee73c=_0x118bfa['duration'];else(_0x5cf56e[_0x22b7a8(0x174)](/Finished/)||_0x5cf56e[_0x22b7a8(0x174)](/Skipped/))&&(_0x118bfa[_0x22b7a8(0x144)]&&(_0x2ee73c=_0x429496[_0x22b7a8(0x152)](Date['now'](),new Date(_0x118bfa['started_at'])['getTime']())));const _0x4b113d=_0x118bfa['fn']?_0x118bfa['fn']['toString']():null,_0x4b4af1={'id':_0x50cfc0,'uuid':_0x50cfc0,'startedAt':_0x118bfa[_0x22b7a8(0x144)]||new Date()[_0x22b7a8(0x16f)](),'finishedAt':_0x5cf56e[_0x22b7a8(0x174)](/Finished/)||_0x5cf56e[_0x22b7a8(0x174)](/Skipped/)?new Date()[_0x22b7a8(0x16f)]():null,'type':_0x429496[_0x22b7a8(0x1b9)],'body':{'lang':_0x429496['fuFRU'],'code':_0x4b113d},'name':_0x639dd0,'scopes':_0x5bfb1e,'file_name':_0xdc8d0c,'location':_0xdc8d0c,'vc_filepath':this['_gitConfigPath']&&_0x45c757?path[_0x22b7a8(0x163)](this[_0x22b7a8(0x17a)],_0x45c757):null,'framework':_0x429496[_0x22b7a8(0x157)],'result':_0x1917e0,'failure_reason':_0x3fd6db,'duration_in_ms':_0x2ee73c,'failure':failureData[_0x22b7a8(0x109)](null,_0x5aa4c9),'failure_type':!_0x3fd6db?null:_0x429496['RAsXn'](getFailureType,_0x3fd6db),'retry_of':_0x118bfa[_0x22b7a8(0x1ab)]||null,'customRerunParam':{'rerun_name':_0x639dd0}};_0x429496[_0x22b7a8(0x178)](_0x5cf56e,_0x429496['ZqWYT'])&&!_0x4b4af1['startedAt']&&(_0x4b4af1['startedAt']=_0x4b4af1['finishedAt']);const _0xc72d1a=_0x4b4af1[_0x22b7a8(0x13c)]&&_0x4b4af1[_0x22b7a8(0x13c)][0x0];return _0xc72d1a&&(_0x4b4af1[_0x22b7a8(0x105)]=_0xc72d1a[_0x22b7a8(0x143)],_0x4b4af1[_0x22b7a8(0x161)]=_0xc72d1a['expanded']),(_0x429496[_0x22b7a8(0x129)](_0x5cf56e,_0x429496[_0x22b7a8(0x198)])||_0x429496['xezKo'](_0x5cf56e,_0x429496[_0x22b7a8(0x107)]))&&(_0x118bfa[_0x22b7a8(0x179)]&&(_0x4b4af1[_0x22b7a8(0x179)]=_0x118bfa[_0x22b7a8(0x179)])),_0x4b4af1;}catch(_0x47ec1d){return logger[_0x22b7a8(0x14b)](_0x22b7a8(0x180)+util[_0x22b7a8(0x15c)](_0x47ec1d)),null;}}async[a91_0x2f12c3(0x145)](_0x4fc0fd,_0x43bb07,_0x5553ed,_0x46c394){const _0x57d26f=a91_0x2f12c3,_0x247ecb={'DFiSl':'No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','Hzeht':'jest-circus','VzNSZ':_0x57d26f(0x13d),'MCsga':_0x57d26f(0x13e),'YqnjZ':_0x57d26f(0x128),'ztQUV':function(_0x4d50b3,_0x2d9c2e){return _0x4d50b3===_0x2d9c2e;},'aBZJb':'HookRunFinished','cNbLK':function(_0x98fe93,_0x1a6353){return _0x98fe93>_0x1a6353;},'bUVMX':_0x57d26f(0x1b8),'OOkEO':function(_0x588375,_0x48420a){return _0x588375(_0x48420a);},'bqHBR':_0x57d26f(0x118),'vdZSB':'passed','qBOsw':_0x57d26f(0x19b),'mGtUL':'javascript','DxJMf':'jest','efZLn':_0x57d26f(0x10d)};logger[_0x57d26f(0x14b)]('Creating\x20hook\x20data\x20for\x20eventType:\x20'+_0x5553ed+_0x57d26f(0x183)+_0x43bb07+',\x20testRunId:\x20'+_0x46c394);try{if(!_0x4fc0fd)return logger[_0x57d26f(0x14b)](_0x247ecb[_0x57d26f(0x12f)]),null;if(this['isJestInternalHook'](_0x4fc0fd))return null;await this[_0x57d26f(0x17d)]();let _0x46b793=null;try{_0x46b793=this[_0x57d26f(0x113)](_0x4fc0fd);if(_0x46b793&&_0x46b793[_0x57d26f(0x108)](_0x247ecb['Hzeht']))return null;if(_0x46b793&&_0x46b793[_0x57d26f(0x108)](_0x247ecb['VzNSZ']))return null;}catch(_0x58917e){logger[_0x57d26f(0x14b)](_0x57d26f(0x192)+util[_0x57d26f(0x15c)](_0x58917e));}const _0x269330=this[_0x57d26f(0x1a1)](_0x4fc0fd),_0x8efc37=_0x4fc0fd[_0x57d26f(0x18d)]||_0x247ecb[_0x57d26f(0x12c)],_0x533b39=HOOK_TYPES_MAP[_0x8efc37]||_0x8efc37[_0x57d26f(0x15a)](),_0x1f2883=_0x4fc0fd[_0x57d26f(0x1b5)]&&_0x4fc0fd['parent'][_0x57d26f(0x1a3)]?_0x4fc0fd['parent'][_0x57d26f(0x1a3)]:'';let _0xf05c90=_0x247ecb[_0x57d26f(0x133)],_0x56eb6c=null,_0x3c548b=null,_0x4626cc=null,_0x51b807=null;_0x247ecb[_0x57d26f(0x11a)](_0x5553ed,_0x247ecb[_0x57d26f(0x11e)])&&(_0x51b807=new Date()['toISOString'](),_0x4fc0fd[_0x57d26f(0x135)]&&_0x247ecb[_0x57d26f(0x126)](_0x4fc0fd[_0x57d26f(0x135)]['length'],0x0)?(_0xf05c90=_0x247ecb[_0x57d26f(0x10e)],_0x3c548b=util['inspect'](_0x4fc0fd[_0x57d26f(0x135)][0x0]),_0x56eb6c=_0x247ecb['OOkEO'](getFailureType,_0x3c548b),_0x4626cc=failureData[_0x57d26f(0x109)](null,[_0x4fc0fd[_0x57d26f(0x135)],_0x247ecb['bqHBR']])):_0xf05c90=_0x247ecb[_0x57d26f(0x115)]);const _0x2abe5e={'uuid':_0x43bb07,'type':_0x247ecb[_0x57d26f(0x124)],'hook_type':_0x533b39,'name':_0x269330,'body':{'lang':_0x247ecb['mGtUL'],'code':_0x4fc0fd['fn']?_0x4fc0fd['fn'][_0x57d26f(0x19c)]():null},'tags':[],'test_run_id':_0x46c394,'scope':_0x1f2883,'scopes':[_0x1f2883],'file_name':_0x46b793,'location':_0x46b793,'vc_filepath':this[_0x57d26f(0x17a)]&&_0x46b793?path[_0x57d26f(0x163)](this['_gitConfigPath'],_0x46b793):null,'result':_0xf05c90,'started_at':_0x4fc0fd[_0x57d26f(0x144)]||new Date()['toISOString'](),'finished_at':_0x51b807,'failure_type':_0x56eb6c,'failure_reason':_0x3c548b,'failure_data':_0x4626cc,'framework':_0x247ecb[_0x57d26f(0x199)]};return _0x247ecb[_0x57d26f(0x11a)](_0x5553ed,_0x247ecb[_0x57d26f(0x149)])&&(hooksMap[_0x46c394]?hooksMap[_0x46c394][_0x57d26f(0x1a8)](_0x2abe5e):hooksMap[_0x46c394]=[_0x2abe5e]),_0x2abe5e;}catch(_0x12cacc){return logger['debug'](_0x57d26f(0x17c)+util[_0x57d26f(0x15c)](_0x12cacc)),null;}}[a91_0x2f12c3(0x160)](_0x229170,_0x4f509d,_0x2c6820){const _0x348f34=a91_0x2f12c3,_0xff26a5={'DWcgC':function(_0x54e541,_0x3e4e46){return _0x54e541>_0x3e4e46;},'Haugt':_0x348f34(0x1b8),'KwRgm':function(_0x2dc18d,_0x33621c){return _0x2dc18d(_0x33621c);},'mtgfu':_0x348f34(0x118),'XYylI':_0x348f34(0x18a)};try{const _0x2756fc=hooksMap[_0x229170];if(!_0x2756fc)return null;const _0x368cda=_0x2756fc['find'](_0x1b65da=>_0x1b65da[_0x348f34(0x19e)]===_0x4f509d);if(!_0x368cda)return null;return _0x368cda[_0x348f34(0x172)]=new Date()['toISOString'](),_0x2c6820[_0x348f34(0x135)]&&_0xff26a5[_0x348f34(0x11b)](_0x2c6820[_0x348f34(0x135)][_0x348f34(0x150)],0x0)?(_0x368cda[_0x348f34(0x191)]=_0xff26a5[_0x348f34(0x131)],_0x368cda[_0x348f34(0x17b)]=util[_0x348f34(0x1a9)](_0x2c6820[_0x348f34(0x135)][0x0]),_0x368cda[_0x348f34(0x18c)]=_0xff26a5['KwRgm'](getFailureType,_0x368cda[_0x348f34(0x17b)]),_0x368cda[_0x348f34(0x189)]=failureData[_0x348f34(0x109)](null,[_0x2c6820[_0x348f34(0x135)],_0xff26a5[_0x348f34(0x177)]])):_0x368cda[_0x348f34(0x191)]=_0xff26a5[_0x348f34(0x106)],_0x368cda;}catch(_0x377c34){return logger[_0x348f34(0x14b)](_0x348f34(0x185)+util[_0x348f34(0x15c)](_0x377c34)),null;}}[a91_0x2f12c3(0x1a1)](_0x5c6ec6){const _0x546135=a91_0x2f12c3,_0x3c55c2={};_0x3c55c2[_0x546135(0x1bb)]=function(_0x2090c5,_0x37af0a){return _0x2090c5!==_0x37af0a;},_0x3c55c2[_0x546135(0x104)]='test',_0x3c55c2[_0x546135(0x15f)]=_0x546135(0x12a);const _0x252457=_0x3c55c2;if(_0x252457['QaOeh'](_0x5c6ec6['type'],_0x252457[_0x546135(0x104)]))return'\x22'+_0x5c6ec6[_0x546135(0x18d)]+_0x546135(0x176)+(_0x5c6ec6[_0x546135(0x1b5)]&&_0x5c6ec6[_0x546135(0x1b5)][_0x546135(0x1a3)])+'\x22';return _0x5c6ec6[_0x546135(0x1a3)]||_0x252457[_0x546135(0x15f)];}['getHierarchy'](_0x93a266){const _0x25fd3f=a91_0x2f12c3,_0x36f786={};_0x36f786[_0x25fd3f(0x117)]=function(_0x42fd37,_0x5ac8d8){return _0x42fd37!==_0x5ac8d8;},_0x36f786[_0x25fd3f(0x13b)]=function(_0x5e7bdd,_0x24c6d){return _0x5e7bdd!==_0x24c6d;},_0x36f786[_0x25fd3f(0x16d)]=_0x25fd3f(0x11d);const _0x1b6b35=_0x36f786,_0x26097e=[];if(_0x93a266&&_0x93a266['parent']){let _0x1cc1d4=_0x93a266[_0x25fd3f(0x1b5)];while(_0x1cc1d4&&_0x1cc1d4['name']&&_0x1b6b35[_0x25fd3f(0x117)](_0x1cc1d4[_0x25fd3f(0x1a3)],'')&&_0x1b6b35['GNZqa'](_0x1cc1d4[_0x25fd3f(0x1a3)],_0x1b6b35[_0x25fd3f(0x16d)])){_0x26097e[_0x25fd3f(0x1a8)](_0x1cc1d4['name']),_0x1cc1d4=_0x1cc1d4[_0x25fd3f(0x1b5)];}}return _0x26097e[_0x25fd3f(0x167)](),_0x26097e;}[a91_0x2f12c3(0x113)](_0xd12bcb){const _0x54c068=a91_0x2f12c3;if(_0xd12bcb[_0x54c068(0x132)])try{const _0x5db9e4=stackTrace[_0x54c068(0x114)]['call'](stackTrace,_0xd12bcb[_0x54c068(0x132)]);if(_0x5db9e4[0x0]&&_0x5db9e4[0x0][_0x54c068(0x10a)])return _0x5db9e4[0x0][_0x54c068(0x10a)]();}catch(_0xae9dc6){logger[_0x54c068(0x14b)](_0x54c068(0x155)+util[_0x54c068(0x15c)](_0xae9dc6));}if(_0xd12bcb[_0x54c068(0x165)])return _0xd12bcb[_0x54c068(0x165)];return null;}[a91_0x2f12c3(0x13a)](_0xab363d){const _0x591e2e=a91_0x2f12c3,_0x3eee33={};_0x3eee33[_0x591e2e(0x19d)]=_0x591e2e(0x1a7);const _0x5edb1c=_0x3eee33;try{const _0x5f534c=this['getRootParentFile'](_0xab363d);if(_0x5f534c&&_0x5f534c[_0x591e2e(0x108)](_0x5edb1c[_0x591e2e(0x19d)]))return!![];}catch(_0x11216b){logger['debug'](_0x591e2e(0x11c)+util[_0x591e2e(0x15c)](_0x11216b));}return![];}[a91_0x2f12c3(0x1ba)](_0x9003b5=null){const _0x53aef1=a91_0x2f12c3;try{const _0x14782d=_0x9003b5||global[_0x53aef1(0x1a4)]||{};if(global[_0x53aef1(0x142)])return global[_0x53aef1(0x142)];if(_0x14782d?.[_0x53aef1(0x15e)]?.[_0x53aef1(0x137)])return _0x14782d[_0x53aef1(0x15e)][_0x53aef1(0x137)];if(_0x14782d?.[_0x53aef1(0x15e)]?.['id'])return _0x14782d[_0x53aef1(0x15e)]['id'];return null;}catch(_0x3159ab){return logger[_0x53aef1(0x14b)](_0x53aef1(0x156)+util[_0x53aef1(0x15c)](_0x3159ab)),null;}}async[a91_0x2f12c3(0x17d)](){const _0x4cb6e3=a91_0x2f12c3,_0x4c85a8={'XTNrF':function(_0x491546){return _0x491546();}};if(this[_0x4cb6e3(0x19f)])return this[_0x4cb6e3(0x17a)];const _0x282ddc=await _0x4c85a8[_0x4cb6e3(0x1ad)](getGitMetaData);_0x282ddc&&(this['_gitConfigPath']=_0x282ddc[_0x4cb6e3(0x158)]),this[_0x4cb6e3(0x19f)]=!![];}[a91_0x2f12c3(0x130)](_0x210920){hooksMap[_0x210920]&&delete hooksMap[_0x210920];}[a91_0x2f12c3(0x111)](_0x3ce341){const _0x21a4f4=a91_0x2f12c3,_0x3a8a03={'ljoZB':_0x21a4f4(0x1a7),'QrDaj':function(_0x177f16,_0x2993b8){return _0x177f16(_0x2993b8);},'zygbf':_0x21a4f4(0x1a6)};if(_0x3ce341[_0x21a4f4(0x165)])return _0x3ce341[_0x21a4f4(0x165)];if(_0x3ce341['asyncError']){try{const _0x34c032=stackTrace[_0x21a4f4(0x114)](_0x3ce341[_0x21a4f4(0x132)]);if(_0x34c032[0x0]&&_0x34c032[0x0][_0x21a4f4(0x10a)]){const _0x35bfa8=_0x34c032[0x0]['getFileName']();if(_0x35bfa8&&!_0x35bfa8[_0x21a4f4(0x108)](_0x3a8a03['ljoZB']))return _0x35bfa8;}}catch(_0x305457){logger['debug'](_0x21a4f4(0x15b)+util[_0x21a4f4(0x15c)](_0x305457));}if(_0x3ce341[_0x21a4f4(0x132)][_0x21a4f4(0x1b7)]){const _0x585385=_0x3ce341[_0x21a4f4(0x132)]['stack']['split']('\x0a');for(const _0x2ab11a of _0x585385){const _0x3a2abd=_0x2ab11a[_0x21a4f4(0x174)](/at (.+?):\d+:\d+/);if(_0x3a2abd&&_0x3a2abd[0x1]&&!_0x3a2abd[0x1][_0x21a4f4(0x108)](_0x3a8a03[_0x21a4f4(0x10b)]))return _0x3a2abd[0x1];}}}let _0x3c0fc3=_0x3ce341['parent'];while(_0x3c0fc3){if(_0x3c0fc3[_0x21a4f4(0x165)])return _0x3c0fc3['file'];if(_0x3c0fc3['asyncError'])try{const _0x47046f=stackTrace['parse'](_0x3c0fc3['asyncError']);if(_0x47046f[0x0]&&_0x47046f[0x0][_0x21a4f4(0x10a)]){const _0x46bc8b=_0x47046f[0x0][_0x21a4f4(0x10a)]();if(_0x46bc8b&&!_0x46bc8b[_0x21a4f4(0x108)](_0x3a8a03[_0x21a4f4(0x10b)]))return _0x46bc8b;}}catch(_0x57bbe0){}_0x3c0fc3=_0x3c0fc3[_0x21a4f4(0x1b5)];}try{const _0x35d103=_0x3a8a03[_0x21a4f4(0x14c)](require,_0x3a8a03[_0x21a4f4(0x168)]);if(_0x35d103&&_0x35d103['getState']){const _0x3e89a3=_0x35d103[_0x21a4f4(0x11f)]();if(_0x3e89a3&&_0x3e89a3[_0x21a4f4(0x141)])return _0x3e89a3[_0x21a4f4(0x141)];}}catch(_0x13c059){logger['debug'](_0x21a4f4(0x1ae)+util[_0x21a4f4(0x15c)](_0x13c059));}return null;}[a91_0x2f12c3(0x188)](_0x4d5bcc){const _0x9ca6ef=a91_0x2f12c3,_0x1dff2a={};_0x1dff2a[_0x9ca6ef(0x119)]=_0x9ca6ef(0x162),_0x1dff2a[_0x9ca6ef(0x1b2)]=function(_0x500be4,_0x1f8e61){return _0x500be4!==_0x1f8e61;},_0x1dff2a[_0x9ca6ef(0x13f)]=_0x9ca6ef(0x11d),_0x1dff2a[_0x9ca6ef(0x195)]='jest-circus',_0x1dff2a['MGaeR']=_0x9ca6ef(0x181),_0x1dff2a[_0x9ca6ef(0x121)]=_0x9ca6ef(0x186);const _0x43334f=_0x1dff2a;try{if(!_0x4d5bcc)return logger[_0x9ca6ef(0x1af)](_0x43334f[_0x9ca6ef(0x119)]),null;const _0x2a2cc4=_0x4d5bcc[_0x9ca6ef(0x134)]||_0x4d5bcc[_0x9ca6ef(0x1a3)]||_0x4d5bcc[_0x9ca6ef(0x140)]||_0x4d5bcc[_0x9ca6ef(0x175)];let _0x3331f9=_0x2a2cc4;if(_0x4d5bcc[_0x9ca6ef(0x1b5)]&&_0x4d5bcc[_0x9ca6ef(0x1b5)][_0x9ca6ef(0x1a3)]&&_0x43334f[_0x9ca6ef(0x1b2)](_0x4d5bcc['parent'][_0x9ca6ef(0x1a3)],_0x43334f[_0x9ca6ef(0x13f)])){const _0x243194=_0x4d5bcc[_0x9ca6ef(0x1a3)]||_0x4d5bcc[_0x9ca6ef(0x140)];_0x243194&&(_0x3331f9=_0x4d5bcc[_0x9ca6ef(0x1b5)][_0x9ca6ef(0x1a3)]+'\x20'+_0x243194);}let _0x1d6d52=_0x4d5bcc[_0x9ca6ef(0x141)];if(!_0x1d6d52&&_0x4d5bcc[_0x9ca6ef(0x132)]){try{const _0x185c28=stackTrace[_0x9ca6ef(0x114)](_0x4d5bcc[_0x9ca6ef(0x132)]);if(_0x185c28[0x0]&&_0x185c28[0x0][_0x9ca6ef(0x10a)]){const _0x25a6f5=_0x185c28[0x0][_0x9ca6ef(0x10a)]();_0x25a6f5&&!_0x25a6f5['includes'](_0x43334f[_0x9ca6ef(0x195)])&&(_0x1d6d52=_0x25a6f5);}}catch(_0x2cbd7e){logger[_0x9ca6ef(0x14b)](_0x9ca6ef(0x15b)+util['format'](_0x2cbd7e));}if(!_0x1d6d52&&_0x4d5bcc[_0x9ca6ef(0x132)][_0x9ca6ef(0x1b7)]){const _0x15fdf7=_0x4d5bcc[_0x9ca6ef(0x132)][_0x9ca6ef(0x1b7)][_0x9ca6ef(0x187)]('\x0a');for(const _0x5451be of _0x15fdf7){const _0x3745a0=_0x5451be[_0x9ca6ef(0x174)](/at (.+?):\d+:\d+/);if(_0x3745a0&&_0x3745a0[0x1]&&!_0x3745a0[0x1][_0x9ca6ef(0x108)](_0x43334f['cdgss'])){_0x1d6d52=_0x3745a0[0x1];break;}}}}const _0x63f293=_0x1d6d52+'::'+_0x3331f9,_0x1c18e2=crypto[_0x9ca6ef(0x17e)](_0x43334f[_0x9ca6ef(0x103)])['update'](_0x63f293)[_0x9ca6ef(0x110)](_0x43334f[_0x9ca6ef(0x121)])[_0x9ca6ef(0x184)](0x0,0x8),_0x139c5c=process[_0x9ca6ef(0x18b)]+_0x9ca6ef(0x127)+_0x1c18e2;return logger[_0x9ca6ef(0x14b)](_0x9ca6ef(0x16c)+_0x139c5c+_0x9ca6ef(0x123)+_0x63f293),_0x139c5c;}catch(_0x73d18){return logger[_0x9ca6ef(0x1af)](_0x9ca6ef(0x12b)+util[_0x9ca6ef(0x15c)](_0x73d18)),null;}}[a91_0x2f12c3(0x122)](_0x405a67){const _0x1b346b=a91_0x2f12c3,_0x8340ed={};_0x8340ed[_0x1b346b(0x12d)]=_0x1b346b(0x159);const _0x49701b=_0x8340ed;if(!_0x405a67)return logger[_0x1b346b(0x14b)](_0x49701b[_0x1b346b(0x12d)]),null;const _0x3e4706=this[_0x1b346b(0x111)](_0x405a67),_0x37f527={};_0x37f527['name']=_0x405a67[_0x1b346b(0x1a3)]||_0x405a67['title'],_0x37f527[_0x1b346b(0x1b5)]=_0x405a67[_0x1b346b(0x1b5)],_0x37f527[_0x1b346b(0x141)]=_0x3e4706,_0x37f527[_0x1b346b(0x132)]=_0x405a67[_0x1b346b(0x132)];const _0x4b4a06=_0x37f527;return this[_0x1b346b(0x188)](_0x4b4a06);}[a91_0x2f12c3(0x170)](_0x40cfaf){const _0x1ff896=a91_0x2f12c3,_0x5173fe={};_0x5173fe[_0x1ff896(0x17f)]='[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation';const _0x5485ce=_0x5173fe;if(!_0x40cfaf)return logger['debug'](_0x5485ce[_0x1ff896(0x17f)]),null;if(_0x40cfaf['testIdentifier'])return logger[_0x1ff896(0x14b)]('[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20'+_0x40cfaf['testIdentifier']),_0x40cfaf[_0x1ff896(0x16e)];return this[_0x1ff896(0x188)](_0x40cfaf);}}module[a91_0x2f12c3(0x1aa)]=o11yClassErrorHandler(JestUtils,[a91_0x2f12c3(0x17d),a91_0x2f12c3(0x125),'getRootParentFile',a91_0x2f12c3(0x1a1),'isJestInternalHook',a91_0x2f12c3(0x1ba),a91_0x2f12c3(0x153),'createHookData',a91_0x2f12c3(0x160),a91_0x2f12c3(0x130),a91_0x2f12c3(0x111),a91_0x2f12c3(0x188),a91_0x2f12c3(0x122),a91_0x2f12c3(0x170)]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';function a92_0x41af(){const _0x3190ba=['ypgYj','getHubUrl','getPlatformName','file','xXANC','finally','join','File\x20path\x20is\x20required','parallelsPerPlatform','forEach','modifyBrowserStackCaps','modifyBrowserStackW3CCaps','args','Puilr','isUndefined','FDIPZ','cwd','length','start','16118xYRbyT','File\x20','../../helpers/performance/constants','index','../../helpers/testhub/testhubHandler','3856209fAxEzS','4827072AToUtg','EVENTS','../../helpers/helper','SDK_SETUP','23188584kqSuiR','assign','NMDqe','39DhULyf','1075751TglqSZ','platforms','configuration','../test-runner','proxySettings','useW3C','config','push','oYvVB','../../helpers/performance/performance-tester','5397126fBhnDo','launchBuild','then','oJDyb','duvlV','handleApp','SDK_CLEANUP','4048035DlhKZc','../../helpers/BrowserStackSetup','vanilla'];a92_0x41af=function(){return _0x3190ba;};return a92_0x41af();}const a92_0x33c0ca=a92_0xcd26;function a92_0xcd26(_0x305763,_0xd14664){const _0x41af1e=a92_0x41af();return a92_0xcd26=function(_0xcd2634,_0x44d681){_0xcd2634=_0xcd2634-0x1b2;let _0x1d4654=_0x41af1e[_0xcd2634];return _0x1d4654;},a92_0xcd26(_0x305763,_0xd14664);}(function(_0x13ac67,_0x573dcb){const _0x56e8c0=a92_0xcd26,_0x445c6a=_0x13ac67();while(!![]){try{const _0x5c7489=-parseInt(_0x56e8c0(0x1b3))/0x1+-parseInt(_0x56e8c0(0x1da))/0x2*(parseInt(_0x56e8c0(0x1b2))/0x3)+parseInt(_0x56e8c0(0x1e0))/0x4+-parseInt(_0x56e8c0(0x1c4))/0x5+-parseInt(_0x56e8c0(0x1bd))/0x6+-parseInt(_0x56e8c0(0x1df))/0x7+parseInt(_0x56e8c0(0x1e4))/0x8;if(_0x5c7489===_0x573dcb)break;else _0x445c6a['push'](_0x445c6a['shift']());}catch(_0xa5ce20){_0x445c6a['push'](_0x445c6a['shift']());}}}(a92_0x41af,0xa24e8));const fs=require('fs'),path=require('path'),{default:BrowserStackSetup}=require(a92_0x33c0ca(0x1c5)),helper=require(a92_0x33c0ca(0x1e2)),PerformanceTester=require(a92_0x33c0ca(0x1bc)),PerformanceEvents=require(a92_0x33c0ca(0x1dc))[a92_0x33c0ca(0x1e1)],utilities=require('../../helpers/utilities'),{parallelVanillaRun}=require(a92_0x33c0ca(0x1b6)),TestHubHandler=require(a92_0x33c0ca(0x1de));async function run(_0x30df36,_0x47a4bb,_0x14ebd9){const _0x3631d1=a92_0x33c0ca,_0x9a4d63={'NMDqe':_0x3631d1(0x1c6),'oYvVB':function(_0x39e4bd,_0xa3b9da){return _0x39e4bd(_0xa3b9da);},'DhdfQ':_0x3631d1(0x1ce),'ypgYj':function(_0x393cfa,_0x834278){return _0x393cfa(_0x834278);},'xXANC':'Config\x20yml\x20is\x20required','oJDyb':function(_0x4b0d79,_0x3772b9){return _0x4b0d79>_0x3772b9;},'Puilr':function(_0x1a2c07,_0x4118aa){return _0x1a2c07>_0x4118aa;},'duvlV':function(_0x2ec73d,_0x4791a8){return _0x2ec73d*_0x4791a8;},'FDIPZ':function(_0x1c0255,_0x47b6ef,_0x3332b9){return _0x1c0255(_0x47b6ef,_0x3332b9);}};await _0x14ebd9['initialize'](_0x30df36),await helper[_0x3631d1(0x1c2)](_0x14ebd9[_0x3631d1(0x1b9)]);const _0x4e7685=[];if(helper[_0x3631d1(0x1d5)](_0x30df36['_'][0x1]))throw _0x9a4d63['oYvVB'](Error,_0x9a4d63['DhdfQ']);const _0x2e4c09=path[_0x3631d1(0x1cd)](process[_0x3631d1(0x1d7)](),_0x30df36['_'][0x1]);if(!fs['existsSync'](_0x2e4c09))throw _0x9a4d63[_0x3631d1(0x1bb)](Error,_0x3631d1(0x1db)+_0x30df36['_'][0x1]+'\x20doesn\x27t\x20exist');if(!_0x14ebd9[_0x3631d1(0x1b9)])throw _0x9a4d63[_0x3631d1(0x1c7)](Error,_0x9a4d63[_0x3631d1(0x1cb)]);const _0x1d515c=helper[_0x3631d1(0x1b8)](_0x14ebd9['config']);_0x14ebd9[_0x3631d1(0x1b9)][_0x3631d1(0x1b4)]&&_0x9a4d63[_0x3631d1(0x1c0)](_0x14ebd9[_0x3631d1(0x1b9)][_0x3631d1(0x1b4)][_0x3631d1(0x1d8)],0x0)&&_0x14ebd9[_0x3631d1(0x1b9)][_0x3631d1(0x1b4)][_0x3631d1(0x1d0)]((_0x4b44d2,_0x2b7da0)=>{const _0x18e362=_0x3631d1;_0x1d515c?_0x4e7685['push'](helper[_0x18e362(0x1d2)](_0x14ebd9[_0x18e362(0x1b9)],_0x9a4d63[_0x18e362(0x1e6)],_0x2b7da0)):_0x4e7685[_0x18e362(0x1ba)](helper[_0x18e362(0x1d1)](_0x14ebd9['config'],_0x9a4d63[_0x18e362(0x1e6)],_0x2b7da0));});let _0x5707f3,_0x267b10;const _0x4b5998=[];if(_0x9a4d63[_0x3631d1(0x1d4)](_0x4e7685['length'],0x0))_0x4e7685[_0x3631d1(0x1d0)]((_0x5ef072,_0x30f0b5)=>{const _0x2cc560=_0x3631d1,_0x501435={};_0x501435[_0x2cc560(0x1dd)]=_0x30f0b5,_0x5707f3={'server':helper[_0x2cc560(0x1c8)](_0x14ebd9['config']),'proxySettings':_0x14ebd9[_0x2cc560(0x1b9)][_0x2cc560(0x1b7)],'platform':helper[_0x2cc560(0x1c9)](_0x5ef072),'platformCaps':Object[_0x2cc560(0x1e5)](_0x501435,_0x14ebd9[_0x2cc560(0x1b9)][_0x2cc560(0x1b4)][_0x30f0b5])};const _0x3f0efe={'capability':_0x5ef072,..._0x5707f3};_0x3f0efe[_0x2cc560(0x1ca)]=_0x2e4c09,_0x3f0efe[_0x2cc560(0x1d3)]=_0x47a4bb;const _0x19417a={};_0x19417a[_0x2cc560(0x1b5)]=_0x3f0efe,_0x267b10=_0x19417a,_0x4b5998[_0x2cc560(0x1ba)](_0x267b10);});else{let _0x20b19c;_0x1d515c?_0x20b19c=helper['modifyBrowserStackW3CCaps'](_0x14ebd9[_0x3631d1(0x1b9)],_0x9a4d63[_0x3631d1(0x1e6)],0x0):_0x20b19c=helper[_0x3631d1(0x1d1)](_0x14ebd9[_0x3631d1(0x1b9)],_0x9a4d63['NMDqe'],0x0);_0x5707f3={'server':helper['getHubUrl'](_0x14ebd9[_0x3631d1(0x1b9)]),'proxySettings':_0x14ebd9[_0x3631d1(0x1b9)]['proxySettings']};const _0x5b1ff1={'capability':_0x20b19c,..._0x5707f3};_0x5b1ff1[_0x3631d1(0x1ca)]=_0x2e4c09,_0x5b1ff1[_0x3631d1(0x1d3)]=_0x47a4bb;const _0x47b728={};_0x47b728['configuration']=_0x5b1ff1,_0x267b10=_0x47b728,_0x4b5998[_0x3631d1(0x1ba)](_0x267b10);}const _0x5e0330=await TestHubHandler[_0x3631d1(0x1be)](_0x9a4d63['NMDqe'],_0x14ebd9),_0x2b14bc=_0x9a4d63[_0x3631d1(0x1c1)](_0x14ebd9['config'][_0x3631d1(0x1b4)][_0x3631d1(0x1d8)]||0x1,_0x14ebd9[_0x3631d1(0x1b9)][_0x3631d1(0x1cf)]||0x1);PerformanceTester['end'](PerformanceEvents[_0x3631d1(0x1e3)]),_0x9a4d63[_0x3631d1(0x1d6)](parallelVanillaRun,_0x4b5998,_0x2b14bc)[_0x3631d1(0x1bf)](_0x7c3610=>{})[_0x3631d1(0x1cc)](async()=>{const _0x166e98=_0x3631d1;PerformanceTester[_0x166e98(0x1d9)](PerformanceEvents[_0x166e98(0x1c3)]),await utilities['finalExecution'](_0x14ebd9);});}module['exports']=run;
|
package/src/browserStackSdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a93_0x442c33=a93_0x48f6;(function(_0x427109,_0x427835){const _0x141e8d=a93_0x48f6,_0x416abd=_0x427109();while(!![]){try{const _0x30bd8b=parseInt(_0x141e8d(0x1d3))/0x1*(parseInt(_0x141e8d(0x1bc))/0x2)+-parseInt(_0x141e8d(0x1da))/0x3+-parseInt(_0x141e8d(0x1cd))/0x4+-parseInt(_0x141e8d(0x1c2))/0x5*(parseInt(_0x141e8d(0x1c7))/0x6)+parseInt(_0x141e8d(0x1d1))/0x7*(parseInt(_0x141e8d(0x1d6))/0x8)+parseInt(_0x141e8d(0x1bb))/0x9*(parseInt(_0x141e8d(0x1cb))/0xa)+parseInt(_0x141e8d(0x1c0))/0xb;if(_0x30bd8b===_0x427835)break;else _0x416abd['push'](_0x416abd['shift']());}catch(_0x2a5fa5){_0x416abd['push'](_0x416abd['shift']());}}}(a93_0x2c1f,0x94e11));function a93_0x2c1f(){const _0x245ac0=['QSQLv','9201177IagFDb','132mGuUdg','browser','os_version','iQvzy','465652HNKBYn','browserName','5sgJliL','platform_version','uXZDk','osVersion','TAuci','6168282ysyUEb','zrZYm','ngqPT','platformVersion','10rHZGLq','PNzyJ','3180464qYWkZg','customVariables','exports','CTiTn','3332819sIzMgV','./helpers/metadata','15757njpBbS','WsZhv','platformName','8IxmRMg','browser_version','device','set','443376cjSvLY','setTestMetadata','PNmAW','tWCxU','QGIST'];a93_0x2c1f=function(){return _0x245ac0;};return a93_0x2c1f();}const TestMetadata=require(a93_0x442c33(0x1d2));function a93_0x48f6(_0x3e9da7,_0x50ee5b){const _0x2c1f6f=a93_0x2c1f();return a93_0x48f6=function(_0x48f6e9,_0x63e147){_0x48f6e9=_0x48f6e9-0x1b7;let _0x201054=_0x2c1f6f[_0x48f6e9];return _0x201054;},a93_0x48f6(_0x3e9da7,_0x50ee5b);}class BrowserStackSdk{static['getCurrentPlatform'](){const _0x54b287=a93_0x442c33,_0xb8459={};_0xb8459[_0x54b287(0x1c8)]=_0x54b287(0x1be),_0xb8459[_0x54b287(0x1c4)]=_0x54b287(0x1c5),_0xb8459[_0x54b287(0x1c9)]=_0x54b287(0x1bd),_0xb8459[_0x54b287(0x1cc)]=_0x54b287(0x1c1),_0xb8459[_0x54b287(0x1ba)]=_0x54b287(0x1d7),_0xb8459['PNmAW']='browserVersion',_0xb8459['ouWEN']=_0x54b287(0x1d8),_0xb8459[_0x54b287(0x1d4)]='deviceName',_0xb8459['iQvzy']='platform',_0xb8459[_0x54b287(0x1c6)]=_0x54b287(0x1d5),_0xb8459[_0x54b287(0x1d0)]=_0x54b287(0x1c3),_0xb8459[_0x54b287(0x1b9)]=_0x54b287(0x1ca),_0xb8459['tWCxU']=_0x54b287(0x1ce);const _0x1a50cf=_0xb8459,_0x9c03fc={};if(global['__platformCaps']){const _0x3a2ac6=global['__platformCaps'],_0x4c5b06=_0x3a2ac6[_0x1a50cf[_0x54b287(0x1c8)]]||_0x3a2ac6[_0x1a50cf[_0x54b287(0x1c4)]],_0x351fc8=_0x3a2ac6[_0x1a50cf[_0x54b287(0x1c9)]]||_0x3a2ac6[_0x1a50cf['PNzyJ']],_0x2f0a9a=_0x3a2ac6[_0x1a50cf[_0x54b287(0x1ba)]]||_0x3a2ac6[_0x1a50cf['PNmAW']],_0x537c04=_0x3a2ac6[_0x1a50cf['ouWEN']]||_0x3a2ac6[_0x1a50cf['WsZhv']],_0x168978=_0x3a2ac6[_0x1a50cf[_0x54b287(0x1bf)]]||_0x3a2ac6[_0x1a50cf['TAuci']],_0x3487e7=_0x3a2ac6[_0x1a50cf[_0x54b287(0x1d0)]]||_0x3a2ac6[_0x1a50cf[_0x54b287(0x1b9)]];_0x3a2ac6['os']&&(_0x9c03fc['os']=_0x3a2ac6['os']),_0x4c5b06&&(_0x9c03fc[_0x1a50cf['uXZDk']]=_0x4c5b06),_0x351fc8&&(_0x9c03fc[_0x1a50cf[_0x54b287(0x1cc)]]=_0x351fc8),_0x2f0a9a&&(_0x9c03fc[_0x1a50cf[_0x54b287(0x1b7)]]=_0x2f0a9a),_0x537c04&&(_0x9c03fc[_0x1a50cf[_0x54b287(0x1d4)]]=_0x537c04),_0x168978&&(_0x9c03fc[_0x1a50cf['TAuci']]=_0x168978),_0x3487e7&&(_0x9c03fc[_0x1a50cf[_0x54b287(0x1b9)]]=_0x3487e7),_0x3a2ac6[_0x1a50cf[_0x54b287(0x1b8)]]&&(_0x9c03fc[_0x1a50cf['tWCxU']]=_0x3a2ac6[_0x1a50cf[_0x54b287(0x1b8)]]);}return _0x9c03fc;}static[a93_0x442c33(0x1db)](_0xee1331={}){const _0x578770=a93_0x442c33;TestMetadata[_0x578770(0x1d9)](_0xee1331);}}module[a93_0x442c33(0x1cf)]=BrowserStackSdk;
|