browserstack-node-sdk 1.49.6 → 1.49.7
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_0x6913(){const _0x2309ea=['KEY_SESSION_ID','443509BwdQHR','bIwXL','pdJiE','KEY_TEST_FRAMEWORK_NAME','CUCUMBER','values','POST','getState','onPageCreate','matchHookRegex','testInfo','\x20hookState:\x20','toString','../framework/testFramework.js','../TestInfo.js','base64','version','1748430bEmaio','../state/hookState.js','debug','./baseModule','4629250xrUfCU','retry','getBuildHashedId','name','onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','Error\x20in\x20sending\x20CBTSession:\x20','testhubConfig','MODULE_NAME','upadB','split','15DpGIkE','234996RfXiQl','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20','QvbhN','153352mjFfWH','testSessionEvent','registerObserver','../utils/jest-utils.js','262436UsFBtq','O11yHashedID','getContext','stringify','frameworkVersion','KEY_HUB_URL','instance','getModuleName','KEY_PLATFORM_INDEX','getLTSSessionId','TestHubModule','testUuid','getTestIdentifierFromTestInfo','../../../helpers/classLogger.js','getJwt','7zNWGYR','getRef','util','BROWSERSTACK_TESTHUB_UUID','hookState','getCurrentTestState','../browserstackCLI.js','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','testFrameworkEvent','JEST','testFrameworkState','10VFDRlU','BROWSERSTACK_TESTHUB_JWT','logger','KEY_TEST_DEFERRED','CztuN','getTestDetails','8aAPncq','LLrhL','../../../helpers/test-observability/constants.js','sendTestFrameworkEvent','from','372fDymsR','ENV_VAR','lLXwg','getThreadId','rPKxz','format','recreateIdentifierFromTestInfo','./playwrightDriverModule.js','Pyflw','../state/automationFrameworkState.js',',\x20test_identifier:\x20','KEY_CAPABILITIES','TEST','dalhE','test_identifier','bind','1361484SqdIky','isLTSSession','testFrameworkData','VmaxP','../../../helpers/helper.js','forEach','getInstance','onAllTestEvents','error','../framework/automationFramework.js','getTestUUID'];a85_0x6913=function(){return _0x2309ea;};return a85_0x6913();}const a85_0xc8f7b1=a85_0x1dd0;(function(_0x37be96,_0x544544){const _0x2c5471=a85_0x1dd0,_0xf257c6=_0x37be96();while(!![]){try{const _0xf91ceb=parseInt(_0x2c5471(0x172))/0x1+-parseInt(_0x2c5471(0x190))/0x2*(parseInt(_0x2c5471(0x16e))/0x3)+parseInt(_0x2c5471(0x176))/0x4*(-parseInt(_0x2c5471(0x16d))/0x5)+parseInt(_0x2c5471(0x142))/0x6*(-parseInt(_0x2c5471(0x185))/0x7)+-parseInt(_0x2c5471(0x196))/0x8*(-parseInt(_0x2c5471(0x15f))/0x9)+-parseInt(_0x2c5471(0x163))/0xa+-parseInt(_0x2c5471(0x14e))/0xb*(-parseInt(_0x2c5471(0x132))/0xc);if(_0xf91ceb===_0x544544)break;else _0xf257c6['push'](_0xf257c6['shift']());}catch(_0x42170b){_0xf257c6['push'](_0xf257c6['shift']());}}}(a85_0x6913,0x4ded1));function a85_0x1dd0(_0x300e48,_0x4fa0b8){const _0x6913ab=a85_0x6913();return a85_0x1dd0=function(_0x1dd017,_0x3f2d11){_0x1dd017=_0x1dd017-0x12e;let _0xc96cc1=_0x6913ab[_0x1dd017];return _0xc96cc1;},a85_0x1dd0(_0x300e48,_0x4fa0b8);}const util=require(a85_0xc8f7b1(0x187)),BaseModule=require(a85_0xc8f7b1(0x162)),{createClassLogger}=require(a85_0xc8f7b1(0x183)),AutomationFramework=require(a85_0xc8f7b1(0x14b)),AutomationFrameworkState=require(a85_0xc8f7b1(0x13b)),HookState=require(a85_0xc8f7b1(0x160)),TestFramework=require(a85_0xc8f7b1(0x15b)),TestFrameworkState=require('../state/testFrameworkState.js'),PlaywrightDriverModule=require(a85_0xc8f7b1(0x139)),TestFrameworkConstants=require('../framework/constants/testFrameworkConstants.js'),GrpcClient=require('../grpcClient.js'),CLIUtils=require('../cliUtils.js'),TestInfo=require(a85_0xc8f7b1(0x15c)),testHubConstants=require('../../../helpers/testhub/constants'),{FRAMEWORKS}=require(a85_0xc8f7b1(0x12f)),helper=require(a85_0xc8f7b1(0x146)),LoadTestModule=require('./loadTestModule.js'),JestUtils=require(a85_0xc8f7b1(0x175)),BrowserstackCLI=require(a85_0xc8f7b1(0x18b)),{getPlaywrightProvider}=require(a85_0xc8f7b1(0x146));class TestHubModule extends BaseModule{[a85_0xc8f7b1(0x192)]=createClassLogger(a85_0xc8f7b1(0x180));constructor(_0x12c943,_0x350d01=null){const _0x27c577=a85_0xc8f7b1,_0x5804ed={};_0x5804ed[_0x27c577(0x13a)]='0|1|7|4|5|2|6|3|8',_0x5804ed[_0x27c577(0x150)]='TestHubModule';const _0x51b8cb=_0x5804ed,_0xbab89b=_0x51b8cb['Pyflw'][_0x27c577(0x16c)]('|');let _0x251495=0x0;while(!![]){switch(_0xbab89b[_0x251495++]){case'0':super(_0x350d01);continue;case'1':this[_0x27c577(0x166)]=_0x51b8cb[_0x27c577(0x150)];continue;case'2':Object[_0x27c577(0x153)](TestFrameworkState)[_0x27c577(0x147)](_0xcb05fc=>{const _0x2fc672=_0x27c577;Object[_0x2fc672(0x153)](HookState)[_0x2fc672(0x147)](_0x44565a=>{const _0x46f26b=_0x2fc672;TestFramework[_0x46f26b(0x174)](_0xcb05fc,_0x44565a,this['onAllTestEvents'][_0x46f26b(0x141)](this));});});continue;case'3':process['env'][testHubConstants[_0x27c577(0x133)][_0x27c577(0x188)]]=this[_0x27c577(0x169)]['getBuildHashedId']();continue;case'4':this['jestUtils']=new JestUtils();continue;case'5':AutomationFramework['registerObserver'](AutomationFrameworkState['CREATE'],HookState[_0x27c577(0x154)],this[_0x27c577(0x156)]['bind'](this));continue;case'6':process['env'][testHubConstants[_0x27c577(0x133)][_0x27c577(0x191)]]=this['testhubConfig'][_0x27c577(0x184)]();continue;case'7':this[_0x27c577(0x169)]=_0x12c943;continue;case'8':BrowserstackCLI[_0x27c577(0x177)]=this[_0x27c577(0x169)][_0x27c577(0x165)]();continue;}break;}}[a85_0xc8f7b1(0x17d)](){const _0x5eb666=a85_0xc8f7b1;return TestHubModule[_0x5eb666(0x16a)];}[a85_0xc8f7b1(0x149)](_0x440bdf){const _0x56ae12=a85_0xc8f7b1,_0x13d92f={};_0x13d92f[_0x56ae12(0x145)]=function(_0x195014,_0x15e486){return _0x195014===_0x15e486;};const _0x4ceda5=_0x13d92f,_0x1fa3f7=_0x440bdf[_0x56ae12(0x17c)],_0x534082=_0x1fa3f7[_0x56ae12(0x18a)]();(_0x4ceda5[_0x56ae12(0x145)](_0x534082,TestFrameworkState[_0x56ae12(0x13e)])||CLIUtils[_0x56ae12(0x157)](_0x534082[_0x56ae12(0x15a)]()[_0x56ae12(0x16c)]('.')[0x1]))&&this[_0x56ae12(0x130)](_0x440bdf);}async[a85_0xc8f7b1(0x130)](_0x348b08){const _0x44f152=a85_0xc8f7b1,_0x37f742={};_0x37f742[_0x44f152(0x194)]=function(_0x5952c9,_0x5a02e3){return _0x5952c9===_0x5a02e3;},_0x37f742[_0x44f152(0x14f)]='sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event';const _0x12821a=_0x37f742;try{const _0x340ab5=BrowserstackCLI[_0x44f152(0x148)]()['getTestFramework']()['createTestFrameworkEventPayload'](_0x348b08);if(!_0x340ab5||_0x12821a[_0x44f152(0x194)](Object['keys'](_0x340ab5)['length'],0x0)){this[_0x44f152(0x192)][_0x44f152(0x161)](_0x12821a[_0x44f152(0x14f)]);return;}const _0x49eef1=await GrpcClient['getInstance']()[_0x44f152(0x18d)](_0x340ab5);this['logger']['debug'](_0x44f152(0x170)+_0x340ab5[_0x44f152(0x18f)]+_0x44f152(0x159)+_0x340ab5[_0x44f152(0x189)]);}catch(_0x6c0596){this[_0x44f152(0x192)][_0x44f152(0x14a)]('Error\x20in\x20sendTestFrameworkEvent:\x20'+util[_0x44f152(0x137)](_0x6c0596));}}async[a85_0xc8f7b1(0x156)](_0x2ce6fb){const _0x21f065=a85_0xc8f7b1,_0x5ddcb1={'lLXwg':function(_0x432469,_0x547de5){return _0x432469===_0x547de5;},'QvbhN':_0x21f065(0x167),'dalhE':function(_0x4cfc05,_0x319f5e){return _0x4cfc05===_0x319f5e;},'LLrhL':function(_0x5636b1,_0x2854e2){return _0x5636b1(_0x2854e2);},'rPKxz':_0x21f065(0x15d),'upadB':function(_0x588c1b,_0x594d85){return _0x588c1b===_0x594d85;}};try{if(_0x2ce6fb['page']){const _0x2d1532=this['getTestId'](_0x2ce6fb);this['logger'][_0x21f065(0x161)](_0x21f065(0x16f)+_0x2d1532);if(this['testFrameworkData']&&_0x5ddcb1[_0x21f065(0x134)](this['testFrameworkData']['name'],FRAMEWORKS[_0x21f065(0x18e)])&&!_0x2ce6fb[_0x21f065(0x158)]){this['logger'][_0x21f065(0x161)](_0x5ddcb1[_0x21f065(0x171)]);return;}let _0x57b9ac,_0x5c79ef;if(this[_0x21f065(0x144)]&&_0x5ddcb1['lLXwg'](this['testFrameworkData']['name'],FRAMEWORKS[_0x21f065(0x152)]))_0x57b9ac=_0x2d1532,_0x5c79ef=TestInfo[_0x21f065(0x14c)](_0x57b9ac);else this[_0x21f065(0x144)]&&_0x5ddcb1['dalhE'](this[_0x21f065(0x144)]['name'],FRAMEWORKS[_0x21f065(0x18e)])?(_0x57b9ac=this['jestUtils'][_0x21f065(0x138)](_0x2ce6fb[_0x21f065(0x158)]),this['logger'][_0x21f065(0x161)]('onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20'+_0x57b9ac)):(_0x57b9ac=TestInfo[_0x21f065(0x182)](_0x2ce6fb[_0x21f065(0x158)],_0x2ce6fb[_0x21f065(0x158)][_0x21f065(0x164)]),_0x5c79ef=TestInfo[_0x21f065(0x14c)](_0x57b9ac));const _0x1f0572=TestInfo[_0x21f065(0x195)](_0x57b9ac),_0xa657f3=_0x2ce6fb['instance'],_0x28ccea=AutomationFramework['getState'](_0xa657f3,PlaywrightDriverModule[_0x21f065(0x17e)]),_0x3b77d2=_0x1f0572?.[TestFrameworkConstants[_0x21f065(0x151)]]||this[_0x21f065(0x144)]&&this[_0x21f065(0x144)][_0x21f065(0x166)],_0x3b2f57=_0x1f0572?.[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]||this[_0x21f065(0x144)]&&this[_0x21f065(0x144)][_0x21f065(0x15e)],_0x48f79f=TestFrameworkState[_0x21f065(0x13e)][_0x21f065(0x15a)]()[_0x21f065(0x16c)]('.')[0x1],_0xde6a1e=HookState[_0x21f065(0x154)][_0x21f065(0x15a)]()[_0x21f065(0x16c)]('.')[0x1],_0x46a24c=_0xa657f3[_0x21f065(0x178)](),_0x24e3e8=AutomationFramework[_0x21f065(0x155)](_0xa657f3,PlaywrightDriverModule[_0x21f065(0x17b)],''),_0xfc57e4={'provider':_0x5ddcb1[_0x21f065(0x12e)](getPlaywrightProvider,_0x24e3e8),'frameworkName':_0xa657f3['frameworkName'],'frameworkVersion':_0xa657f3[_0x21f065(0x17a)],'frameworkSessionId':LoadTestModule[_0x21f065(0x143)]()?LoadTestModule[_0x21f065(0x17f)]():AutomationFramework[_0x21f065(0x155)](_0xa657f3,PlaywrightDriverModule[_0x21f065(0x14d)],''),'ref':_0xa657f3[_0x21f065(0x186)](),'hubUrl':_0x24e3e8};let _0x253287=AutomationFramework[_0x21f065(0x155)](_0xa657f3,PlaywrightDriverModule[_0x21f065(0x13d)],{});_0x253287=Buffer[_0x21f065(0x131)](JSON[_0x21f065(0x179)](_0x253287))[_0x21f065(0x15a)](_0x5ddcb1[_0x21f065(0x136)]);const _0x4fb62f={'hash':_0x46a24c['getId'](),'threadId':_0x46a24c[_0x21f065(0x135)]()[_0x21f065(0x15a)](),'processId':_0x46a24c['getProcessId']()[_0x21f065(0x15a)]()},_0x18cf99={};_0x18cf99[_0x21f065(0x140)]=_0x57b9ac;const _0x286e99={};_0x286e99[_0x21f065(0x181)]=_0x5c79ef;const _0x5e172d={'platformIndex':_0x28ccea,'testFrameworkName':_0x3b77d2,'testFrameworkVersion':_0x3b2f57,'testFrameworkState':_0x48f79f,'testHookState':_0xde6a1e,...this[_0x21f065(0x144)]&&_0x5ddcb1[_0x21f065(0x13f)](this[_0x21f065(0x144)]['name'],FRAMEWORKS[_0x21f065(0x18e)])?_0x18cf99:_0x286e99,'automationSession':_0xfc57e4,'capabilities':_0x253287,'executionContext':_0x4fb62f};this[_0x21f065(0x192)]['debug']('onPageCreate\x20CBTSession\x20payload:\x20'+util[_0x21f065(0x137)](_0x5e172d));const _0x3a27f0=await GrpcClient[_0x21f065(0x148)]()[_0x21f065(0x173)](_0x5e172d);this[_0x21f065(0x192)][_0x21f065(0x161)](_0x21f065(0x18c)+_0x2d1532+(this['testFrameworkData']&&_0x5ddcb1[_0x21f065(0x16b)](this[_0x21f065(0x144)][_0x21f065(0x166)],FRAMEWORKS['JEST'])?_0x21f065(0x13c)+_0x57b9ac:''));}}catch(_0x39ad86){this[_0x21f065(0x192)][_0x21f065(0x14a)](_0x21f065(0x168)+util['format'](_0x39ad86));}}}TestHubModule[a85_0xc8f7b1(0x16a)]=a85_0xc8f7b1(0x180),TestHubModule[a85_0xc8f7b1(0x193)]='test_deferred',module['exports']=TestHubModule;
|
|
1
|
+
const a85_0x5f138f=a85_0x4d41;(function(_0x3478cb,_0x36d1ae){const _0x4b575e=a85_0x4d41,_0x459ea4=_0x3478cb();while(!![]){try{const _0x15e4cf=parseInt(_0x4b575e(0xa7))/0x1+-parseInt(_0x4b575e(0x92))/0x2*(parseInt(_0x4b575e(0xb6))/0x3)+parseInt(_0x4b575e(0xce))/0x4*(-parseInt(_0x4b575e(0xa0))/0x5)+-parseInt(_0x4b575e(0xe1))/0x6*(parseInt(_0x4b575e(0x7d))/0x7)+parseInt(_0x4b575e(0x8e))/0x8+parseInt(_0x4b575e(0x82))/0x9+parseInt(_0x4b575e(0x85))/0xa;if(_0x15e4cf===_0x36d1ae)break;else _0x459ea4['push'](_0x459ea4['shift']());}catch(_0x5746fa){_0x459ea4['push'](_0x459ea4['shift']());}}}(a85_0x839b,0x4200c));function a85_0x4d41(_0x2a1821,_0x8bb206){const _0x839b61=a85_0x839b();return a85_0x4d41=function(_0x4d415a,_0x4e886c){_0x4d415a=_0x4d415a-0x7c;let _0x561073=_0x839b61[_0x4d415a];return _0x561073;},a85_0x4d41(_0x2a1821,_0x8bb206);}const util=require(a85_0x5f138f(0xa9)),BaseModule=require('./baseModule'),{createClassLogger}=require(a85_0x5f138f(0xd7)),AutomationFramework=require(a85_0x5f138f(0x9d)),AutomationFrameworkState=require('../state/automationFrameworkState.js'),HookState=require(a85_0x5f138f(0xbf)),TestFramework=require('../framework/testFramework.js'),TestFrameworkState=require(a85_0x5f138f(0xad)),PlaywrightDriverModule=require(a85_0x5f138f(0x80)),TestFrameworkConstants=require(a85_0x5f138f(0xc7)),GrpcClient=require(a85_0x5f138f(0x7e)),CLIUtils=require('../cliUtils.js'),TestInfo=require(a85_0x5f138f(0xb0)),testHubConstants=require(a85_0x5f138f(0xa8)),{FRAMEWORKS}=require('../../../helpers/test-observability/constants.js'),helper=require(a85_0x5f138f(0xdc)),LoadTestModule=require(a85_0x5f138f(0xde)),JestUtils=require(a85_0x5f138f(0x9c)),BrowserstackCLI=require('../browserstackCLI.js'),{getPlaywrightProvider}=require('../../../helpers/helper.js');class TestHubModule extends BaseModule{[a85_0x5f138f(0xb5)]=createClassLogger(a85_0x5f138f(0x9f));constructor(_0x2e505f,_0x4b2372=null){const _0x4ef9f4=a85_0x5f138f,_0x9b1af6={};_0x9b1af6[_0x4ef9f4(0xab)]=_0x4ef9f4(0xb2),_0x9b1af6['hYstd']=_0x4ef9f4(0x9f);const _0x42810f=_0x9b1af6,_0x2946aa=_0x42810f[_0x4ef9f4(0xab)][_0x4ef9f4(0xa4)]('|');let _0x2204b7=0x0;while(!![]){switch(_0x2946aa[_0x2204b7++]){case'0':this['jestUtils']=new JestUtils();continue;case'1':Object[_0x4ef9f4(0x7c)](TestFrameworkState)[_0x4ef9f4(0xba)](_0x57905e=>{const _0x411373=_0x4ef9f4;Object[_0x411373(0x7c)](HookState)[_0x411373(0xba)](_0xf23f3=>{const _0x3a9672=_0x411373;TestFramework['registerObserver'](_0x57905e,_0xf23f3,this[_0x3a9672(0x93)][_0x3a9672(0x98)](this));});});continue;case'2':process['env'][testHubConstants['ENV_VAR'][_0x4ef9f4(0xa3)]]=this[_0x4ef9f4(0xe2)][_0x4ef9f4(0x96)]();continue;case'3':super(_0x4b2372);continue;case'4':process['env'][testHubConstants[_0x4ef9f4(0xbb)][_0x4ef9f4(0x86)]]=this['testhubConfig'][_0x4ef9f4(0xc1)]();continue;case'5':BrowserstackCLI['O11yHashedID']=this[_0x4ef9f4(0xe2)][_0x4ef9f4(0x96)]();continue;case'6':this['testhubConfig']=_0x2e505f;continue;case'7':AutomationFramework[_0x4ef9f4(0x8a)](AutomationFrameworkState[_0x4ef9f4(0x8c)],HookState[_0x4ef9f4(0xcd)],this[_0x4ef9f4(0x99)][_0x4ef9f4(0x98)](this));continue;case'8':this[_0x4ef9f4(0xb9)]=_0x42810f[_0x4ef9f4(0xd5)];continue;}break;}}['getModuleName'](){const _0x4583a9=a85_0x5f138f;return TestHubModule[_0x4583a9(0xb8)];}[a85_0x5f138f(0x93)](_0x2771e6){const _0x5c4ed5=a85_0x5f138f,_0x24f838={};_0x24f838[_0x5c4ed5(0xa5)]=function(_0x3d5d13,_0x2c1ae6){return _0x3d5d13===_0x2c1ae6;};const _0x549a16=_0x24f838,_0x290c9d=_0x2771e6[_0x5c4ed5(0xbd)],_0x47fd3c=_0x290c9d[_0x5c4ed5(0x8b)]();(_0x549a16[_0x5c4ed5(0xa5)](_0x47fd3c,TestFrameworkState[_0x5c4ed5(0x9b)])||CLIUtils['matchHookRegex'](_0x47fd3c['toString']()[_0x5c4ed5(0xa4)]('.')[0x1]))&&this[_0x5c4ed5(0x91)](_0x2771e6);}async[a85_0x5f138f(0x91)](_0x48807d){const _0x1bfb16=a85_0x5f138f,_0x6b4865={};_0x6b4865[_0x1bfb16(0xca)]=function(_0x5d5023,_0x1f26aa){return _0x5d5023===_0x1f26aa;},_0x6b4865[_0x1bfb16(0xd8)]=_0x1bfb16(0xcf);const _0x52a429=_0x6b4865;try{const _0x15e13f=BrowserstackCLI[_0x1bfb16(0x84)]()['getTestFramework']()[_0x1bfb16(0xb4)](_0x48807d);if(!_0x15e13f||_0x52a429[_0x1bfb16(0xca)](Object['keys'](_0x15e13f)[_0x1bfb16(0xd2)],0x0)){this[_0x1bfb16(0xb5)][_0x1bfb16(0xc2)](_0x52a429[_0x1bfb16(0xd8)]);return;}const _0xc9367b=await GrpcClient['getInstance']()[_0x1bfb16(0x95)](_0x15e13f);this[_0x1bfb16(0xb5)]['debug'](_0x1bfb16(0xb1)+_0x15e13f[_0x1bfb16(0xc5)]+_0x1bfb16(0x83)+_0x15e13f['hookState']);}catch(_0x438b6c){this[_0x1bfb16(0xb5)]['error']('Error\x20in\x20sendTestFrameworkEvent:\x20'+util['format'](_0x438b6c));}}async['onPageCreate'](_0x5c0d33){const _0x44ad0d=a85_0x5f138f,_0x738c33={'kiKcQ':function(_0x5f57a7,_0x331767){return _0x5f57a7===_0x331767;},'WuxFp':'onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','ZNJOW':function(_0x575436,_0x2adc19){return _0x575436===_0x2adc19;},'bgIFD':function(_0x46acd9,_0x8ad9c2){return _0x46acd9===_0x8ad9c2;},'YjZSR':function(_0x35fef8,_0x52c058){return _0x35fef8(_0x52c058);},'AJIST':_0x44ad0d(0x87)};try{if(_0x5c0d33[_0x44ad0d(0xd3)]){const _0x24813c=this[_0x44ad0d(0xa6)](_0x5c0d33);this[_0x44ad0d(0xb5)][_0x44ad0d(0xc2)]('onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20'+_0x24813c);if(this[_0x44ad0d(0xa1)]&&_0x738c33[_0x44ad0d(0xc0)](this[_0x44ad0d(0xa1)][_0x44ad0d(0xb9)],FRAMEWORKS['JEST'])&&!_0x5c0d33[_0x44ad0d(0xdd)]){this['logger']['debug'](_0x738c33[_0x44ad0d(0x81)]);return;}let _0x7bf037,_0x47d939;if(this[_0x44ad0d(0xa1)]&&_0x738c33['ZNJOW'](this[_0x44ad0d(0xa1)][_0x44ad0d(0xb9)],FRAMEWORKS[_0x44ad0d(0x89)]))_0x7bf037=_0x24813c,_0x47d939=TestInfo[_0x44ad0d(0x97)](_0x7bf037);else this['testFrameworkData']&&_0x738c33[_0x44ad0d(0x88)](this['testFrameworkData'][_0x44ad0d(0xb9)],FRAMEWORKS[_0x44ad0d(0xc9)])?(_0x7bf037=this[_0x44ad0d(0x8f)][_0x44ad0d(0xc4)](_0x5c0d33[_0x44ad0d(0xdd)]),this[_0x44ad0d(0xb5)]['debug']('onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20'+_0x7bf037)):(_0x7bf037=TestInfo[_0x44ad0d(0xd4)](_0x5c0d33['testInfo'],_0x5c0d33['testInfo'][_0x44ad0d(0xd6)]),_0x47d939=TestInfo['getTestUUID'](_0x7bf037));const _0x3ebcae=TestInfo[_0x44ad0d(0xb7)](_0x7bf037),_0x44ce30=_0x5c0d33['instance'],_0x590717=AutomationFramework['getState'](_0x44ce30,PlaywrightDriverModule[_0x44ad0d(0xae)]),_0x32fd56=_0x3ebcae?.[TestFrameworkConstants[_0x44ad0d(0xbc)]]||this[_0x44ad0d(0xa1)]&&this[_0x44ad0d(0xa1)][_0x44ad0d(0xb9)],_0x385e93=_0x3ebcae?.[TestFrameworkConstants[_0x44ad0d(0xa2)]]||this['testFrameworkData']&&this[_0x44ad0d(0xa1)][_0x44ad0d(0xbe)],_0x51b974=TestFrameworkState['TEST']['toString']()[_0x44ad0d(0xa4)]('.')[0x1],_0x2ff32c=HookState[_0x44ad0d(0xcd)][_0x44ad0d(0xd9)]()[_0x44ad0d(0xa4)]('.')[0x1],_0x388b36=_0x44ce30[_0x44ad0d(0xda)](),_0x337bae=AutomationFramework[_0x44ad0d(0x90)](_0x44ce30,PlaywrightDriverModule['KEY_HUB_URL'],''),_0x1d0b5d={'provider':_0x738c33[_0x44ad0d(0xac)](getPlaywrightProvider,_0x337bae),'frameworkName':_0x44ce30[_0x44ad0d(0xc6)],'frameworkVersion':_0x44ce30[_0x44ad0d(0xd0)],'frameworkSessionId':LoadTestModule[_0x44ad0d(0xb3)]()?LoadTestModule['getLTSSessionId']():AutomationFramework[_0x44ad0d(0x90)](_0x44ce30,PlaywrightDriverModule[_0x44ad0d(0xdb)],''),'ref':_0x44ce30[_0x44ad0d(0xcc)](),'hubUrl':_0x337bae};let _0x3c2c35=AutomationFramework[_0x44ad0d(0x90)](_0x44ce30,PlaywrightDriverModule[_0x44ad0d(0x94)],{});_0x3c2c35=Buffer[_0x44ad0d(0xc3)](JSON[_0x44ad0d(0xaf)](_0x3c2c35))[_0x44ad0d(0xd9)](_0x738c33[_0x44ad0d(0xcb)]);const _0x3ebcb2={'hash':_0x388b36['getId'](),'threadId':_0x388b36[_0x44ad0d(0x7f)]()[_0x44ad0d(0xd9)](),'processId':_0x388b36['getProcessId']()['toString']()},_0x9268a2={};_0x9268a2[_0x44ad0d(0xe0)]=_0x7bf037;const _0x128476={};_0x128476[_0x44ad0d(0xc8)]=_0x47d939;const _0x5eb856={'platformIndex':_0x590717,'testFrameworkName':_0x32fd56,'testFrameworkVersion':_0x385e93,'testFrameworkState':_0x51b974,'testHookState':_0x2ff32c,...this['testFrameworkData']&&_0x738c33['kiKcQ'](this[_0x44ad0d(0xa1)][_0x44ad0d(0xb9)],FRAMEWORKS['JEST'])?_0x9268a2:_0x128476,'automationSession':_0x1d0b5d,'capabilities':_0x3c2c35,'executionContext':_0x3ebcb2};this[_0x44ad0d(0xb5)][_0x44ad0d(0xc2)]('onPageCreate\x20CBTSession\x20payload:\x20'+util[_0x44ad0d(0x8d)](_0x5eb856));const _0x549bd6=await GrpcClient[_0x44ad0d(0x84)]()['testSessionEvent'](_0x5eb856);this[_0x44ad0d(0xb5)]['debug'](_0x44ad0d(0xaa)+_0x24813c+(this[_0x44ad0d(0xa1)]&&_0x738c33[_0x44ad0d(0x88)](this[_0x44ad0d(0xa1)][_0x44ad0d(0xb9)],FRAMEWORKS['JEST'])?_0x44ad0d(0x9a)+_0x7bf037:''));}}catch(_0x2cc5ca){this[_0x44ad0d(0xb5)][_0x44ad0d(0xd1)](_0x44ad0d(0xdf)+util[_0x44ad0d(0x8d)](_0x2cc5ca));}}}function a85_0x839b(){const _0x1c6c1b=['testUuid','JEST','ernLO','AJIST','getRef','POST','1783288vprLRD','sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event','frameworkVersion','error','length','page','getTestIdentifierFromTestInfo','hYstd','retry','../../../helpers/classLogger.js','YKQpg','toString','getContext','KEY_SESSION_ID','../../../helpers/helper.js','testInfo','./loadTestModule.js','Error\x20in\x20sending\x20CBTSession:\x20','test_identifier','18zprzzO','testhubConfig','values','911617EooKQg','../grpcClient.js','getThreadId','./playwrightDriverModule.js','WuxFp','2933307jRDITQ','\x20hookState:\x20','getInstance','7674930Dptmfb','BROWSERSTACK_TESTHUB_JWT','base64','bgIFD','CUCUMBER','registerObserver','getCurrentTestState','CREATE','format','122624ZLXsFJ','jestUtils','getState','sendTestFrameworkEvent','210838ZqVVIj','onAllTestEvents','KEY_CAPABILITIES','testFrameworkEvent','getBuildHashedId','getTestUUID','bind','onPageCreate',',\x20test_identifier:\x20','TEST','../utils/jest-utils.js','../framework/automationFramework.js','exports','TestHubModule','5MSvWWQ','testFrameworkData','KEY_TEST_FRAMEWORK_VERSION','BROWSERSTACK_TESTHUB_UUID','split','CyWBM','getTestId','103538hotXOP','../../../helpers/testhub/constants','util','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','XyhwF','YjZSR','../state/testFrameworkState.js','KEY_PLATFORM_INDEX','stringify','../TestInfo.js','sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20','3|8|6|0|7|1|4|2|5','isLTSSession','createTestFrameworkEventPayload','logger','3OnJoib','getTestDetails','MODULE_NAME','name','forEach','ENV_VAR','KEY_TEST_FRAMEWORK_NAME','instance','version','../state/hookState.js','kiKcQ','getJwt','debug','from','recreateIdentifierFromTestInfo','testFrameworkState','frameworkName','../framework/constants/testFrameworkConstants.js'];a85_0x839b=function(){return _0x1c6c1b;};return a85_0x839b();}TestHubModule[a85_0x5f138f(0xb8)]=a85_0x5f138f(0x9f),TestHubModule['KEY_TEST_DEFERRED']='test_deferred',module[a85_0x5f138f(0x9e)]=TestHubModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x24d1bb=a86_0x1f49;(function(_0x240e7e,_0x257962){const _0xcc6e0b=a86_0x1f49,_0x266f8a=_0x240e7e();while(!![]){try{const _0x42cadf=parseInt(_0xcc6e0b(0x1d5))/0x1*(-parseInt(_0xcc6e0b(0x1e6))/0x2)+parseInt(_0xcc6e0b(0x1e5))/0x3+-parseInt(_0xcc6e0b(0x1ea))/0x4*(-parseInt(_0xcc6e0b(0x1ec))/0x5)+parseInt(_0xcc6e0b(0x1d9))/0x6+parseInt(_0xcc6e0b(0x1e0))/0x7+parseInt(_0xcc6e0b(0x1e9))/0x8*(-parseInt(_0xcc6e0b(0x1d7))/0x9)+parseInt(_0xcc6e0b(0x1e7))/0xa*(-parseInt(_0xcc6e0b(0x1e3))/0xb);if(_0x42cadf===_0x257962)break;else _0x266f8a['push'](_0x266f8a['shift']());}catch(_0x36916b){_0x266f8a['push'](_0x266f8a['shift']());}}}(a86_0x4aef,0xc9252));const {PLAYWRIGHT}=require(a86_0x24d1bb(0x1dd)),a86_0x3e3282={};a86_0x3e3282[a86_0x24d1bb(0x1df)]=0x0,a86_0x3e3282['toString']=function(){const _0x19e1a0=a86_0x24d1bb,_0x5101ed={};_0x5101ed['wdDvG']=_0x19e1a0(0x1d4);const _0x53dd2c=_0x5101ed;return _0x53dd2c[_0x19e1a0(0x1de)];};const a86_0x443cd8={};a86_0x443cd8['value']=0x1,a86_0x443cd8[a86_0x24d1bb(0x1dc)]=function(){const _0x311c13=a86_0x24d1bb,_0x408e7a={};_0x408e7a[_0x311c13(0x1d2)]='AutomationFrameworkState.CREATE';const _0x2d01d7=_0x408e7a;return _0x2d01d7['CEFcD'];};const a86_0x5341d0={};a86_0x5341d0[a86_0x24d1bb(0x1df)]=0x2,a86_0x5341d0[a86_0x24d1bb(0x1dc)]=function(){const _0x11a836=a86_0x24d1bb,_0x4ebfc6={};_0x4ebfc6[_0x11a836(0x1e1)]=_0x11a836(0x1e4);const _0x4c0983=_0x4ebfc6;return _0x4c0983[_0x11a836(0x1e1)];};const a86_0x33d89c={};a86_0x33d89c[a86_0x24d1bb(0x1df)]=0x3,a86_0x33d89c['toString']=function(){const _0x15cd7c=a86_0x24d1bb,_0x30b095={};_0x30b095[_0x15cd7c(0x1da)]=_0x15cd7c(0x1eb);const _0x54bd13=_0x30b095;return _0x54bd13[_0x15cd7c(0x1da)];};const a86_0x1a0bc4={};a86_0x1a0bc4[a86_0x24d1bb(0x1df)]=0x4,a86_0x1a0bc4[a86_0x24d1bb(0x1dc)]=function(){const _0x3912cd=a86_0x24d1bb,_0x3d88dd={};_0x3d88dd[_0x3912cd(0x1d3)]=_0x3912cd(0x1ed);const _0x303eb4=_0x3d88dd;return _0x303eb4[_0x3912cd(0x1d3)];};const a86_0x4ac597={};a86_0x4ac597[a86_0x24d1bb(0x1df)]=0x5,a86_0x4ac597[a86_0x24d1bb(0x1dc)]=function(){const _0x16b72f=a86_0x24d1bb,_0x406684={};_0x406684[_0x16b72f(0x1db)]=_0x16b72f(0x1d8);const _0x266878=_0x406684;return _0x266878['LKQJM'];};function a86_0x4aef(){const _0x3a77b1=['toString','../../utils/constants','wdDvG','value','9774681ODQrlD','UjFel','values','68783WoiqVh','AutomationFrameworkState.PLAYWRIGHT_DISPATCH','4852533UWzgnr','8nbqzec','2930RyPBVQ','find','24YKTPhI','4PeaNsw','AutomationFrameworkState.EXECUTE','3669795PKfYXh','AutomationFrameworkState.IDLE','CEFcD','GKTmz','AutomationFrameworkState.NONE','248723FvZnCT','exports','2216232zyHOgP','AutomationFrameworkState.QUIT','3850812fRpDYi','mlDeR','LKQJM'];a86_0x4aef=function(){return _0x3a77b1;};return a86_0x4aef();}const AutomationFrameworkState=Object['freeze']({'NONE':a86_0x3e3282,'CREATE':a86_0x443cd8,'PLAYWRIGHT_DISPATCH':a86_0x5341d0,'EXECUTE':a86_0x33d89c,'IDLE':a86_0x1a0bc4,'QUIT':a86_0x4ac597,'fromValue'(_0x1cc216){const _0x5070c1=a86_0x24d1bb;return Object[_0x5070c1(0x1e2)](AutomationFrameworkState)[_0x5070c1(0x1e8)](_0x33be08=>_0x33be08[_0x5070c1(0x1df)]===_0x1cc216);}});function a86_0x1f49(_0x244372,_0x1c5f83){const _0x4aef95=a86_0x4aef();return a86_0x1f49=function(_0x1f4915,_0x5ba470){_0x1f4915=_0x1f4915-0x1d2;let _0x3b3939=_0x4aef95[_0x1f4915];return _0x3b3939;},a86_0x1f49(_0x244372,_0x1c5f83);}module[a86_0x24d1bb(0x1d6)]=AutomationFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a87_0x277d(_0x3f2a26,_0x4ede7e){const _0xb49bad=a87_0xb49b();return a87_0x277d=function(_0x277d23,_0x4ce1de){_0x277d23=_0x277d23-0x1cd;let _0x424351=_0xb49bad[_0x277d23];return _0x424351;},a87_0x277d(_0x3f2a26,_0x4ede7e);}const a87_0x18d57c=a87_0x277d;(function(_0x25080a,_0x1e23a0){const _0x246fcf=a87_0x277d,_0x146347=_0x25080a();while(!![]){try{const _0x416c35=-parseInt(_0x246fcf(0x1cf))/0x1*(parseInt(_0x246fcf(0x1e0))/0x2)+-parseInt(_0x246fcf(0x1cd))/0x3+-parseInt(_0x246fcf(0x1d2))/0x4+parseInt(_0x246fcf(0x1d6))/0x5*(parseInt(_0x246fcf(0x1dc))/0x6)+parseInt(_0x246fcf(0x1d3))/0x7+-parseInt(_0x246fcf(0x1d5))/0x8+parseInt(_0x246fcf(0x1df))/0x9;if(_0x416c35===_0x1e23a0)break;else _0x146347['push'](_0x146347['shift']());}catch(_0x2d4ec0){_0x146347['push'](_0x146347['shift']());}}}(a87_0xb49b,0x9da6f));const a87_0x3a2cee={};a87_0x3a2cee[a87_0x18d57c(0x1d4)]=0x0,a87_0x3a2cee['toString']=function(){const _0x13c74e=a87_0x18d57c,_0x3102ca={};_0x3102ca[_0x13c74e(0x1dd)]=_0x13c74e(0x1de);const _0x4b2d73=_0x3102ca;return _0x4b2d73[_0x13c74e(0x1dd)];};const a87_0x44d4b9={};a87_0x44d4b9[a87_0x18d57c(0x1d4)]=0x1,a87_0x44d4b9[a87_0x18d57c(0x1ce)]=function(){const _0x456de2=a87_0x18d57c,_0x3e7739={};_0x3e7739[_0x456de2(0x1d8)]=_0x456de2(0x1d7);const _0x5f0436=_0x3e7739;return _0x5f0436['uTaiU'];};const a87_0x5a3898={};function a87_0xb49b(){const _0xc94379=['3465100uJBTRM','HookState.PRE','uTaiU','values','exports','HookState.POST','6AGWzwK','pkDrw','HookState.NONE','23915979kkPrgV','22gtYTjR','3706164lxyJEh','toString','91541LfptKH','find','OpzBw','3299292meWsna','8313851iPtjGT','value','6601112ohIHXO'];a87_0xb49b=function(){return _0xc94379;};return a87_0xb49b();}a87_0x5a3898['value']=0x2,a87_0x5a3898[a87_0x18d57c(0x1ce)]=function(){const _0x114beb=a87_0x18d57c,_0x3e1d77={};_0x3e1d77[_0x114beb(0x1d1)]=_0x114beb(0x1db);const _0x2d1717=_0x3e1d77;return _0x2d1717[_0x114beb(0x1d1)];};const HookState=Object['freeze']({'NONE':a87_0x3a2cee,'PRE':a87_0x44d4b9,'POST':a87_0x5a3898,'fromValue'(_0x5828c1){const _0xf685f4=a87_0x18d57c;return Object[_0xf685f4(0x1d9)](HookState)[_0xf685f4(0x1d0)](_0x2eff90=>_0x2eff90['value']===_0x5828c1);}});module[a87_0x18d57c(0x1da)]=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x426e0a=a88_0x76b9;(function(_0x431f6e,_0x2e0c7e){const _0x33950f=a88_0x76b9,_0x3a5258=_0x431f6e();while(!![]){try{const _0x505699=parseInt(_0x33950f(0x15c))/0x1*(-parseInt(_0x33950f(0x16a))/0x2)+-parseInt(_0x33950f(0x176))/0x3*(-parseInt(_0x33950f(0x155))/0x4)+parseInt(_0x33950f(0x159))/0x5+parseInt(_0x33950f(0x16d))/0x6*(-parseInt(_0x33950f(0x158))/0x7)+parseInt(_0x33950f(0x153))/0x8*(parseInt(_0x33950f(0x164))/0x9)+-parseInt(_0x33950f(0x15e))/0xa+-parseInt(_0x33950f(0x168))/0xb;if(_0x505699===_0x2e0c7e)break;else _0x3a5258['push'](_0x3a5258['shift']());}catch(_0x549b6b){_0x3a5258['push'](_0x3a5258['shift']());}}}(a88_0x3380,0xb1f02));const a88_0x48ad3f={};function a88_0x3380(){const _0x4a0183=['AtTTX','TestFrameworkState.SETUP_FIXTURE','261207DgGXdu','IGKBT','TestFrameworkState.AFTER_EACH','TestFrameworkState.BEFORE_EACH','5122733BoTmBh','CJmqo','10VWtRgS','value','TestFrameworkState.LOG','182868iMsIJd','freeze','TestFrameworkState.STEP','GeUWq','TestFrameworkState.NONE','iOgpi','PIUQg','ZIuKC','TestFrameworkState.AFTER_ALL','14277KqHHnT','PXtbv','400BXCdWu','values','728ZmgTwr','rqdZT','TestFrameworkState.LOG_REPORT','245BeJZHK','4914205NgKFSE','TestFrameworkState.BEFORE_ALL','dwRhv','74752NlkDIg','exports','6651020hsPlff','toString','TestFrameworkState.TEST_SCREENSHOT','SdLmi'];a88_0x3380=function(){return _0x4a0183;};return a88_0x3380();}a88_0x48ad3f[a88_0x426e0a(0x16b)]=0x0,a88_0x48ad3f[a88_0x426e0a(0x15f)]=function(){const _0x4c5168=a88_0x426e0a,_0x4dd716={};_0x4dd716[_0x4c5168(0x152)]=_0x4c5168(0x171);const _0x1238af=_0x4dd716;return _0x1238af[_0x4c5168(0x152)];};const a88_0x3b5dd1={};a88_0x3b5dd1[a88_0x426e0a(0x16b)]=0x1,a88_0x3b5dd1[a88_0x426e0a(0x15f)]=function(){const _0x17d488=a88_0x426e0a,_0x5da405={};_0x5da405[_0x17d488(0x161)]=_0x17d488(0x15a);const _0x71f4fb=_0x5da405;return _0x71f4fb[_0x17d488(0x161)];};const a88_0x18c68f={};a88_0x18c68f['value']=0x2,a88_0x18c68f[a88_0x426e0a(0x15f)]=function(){const _0x1886ad=a88_0x426e0a,_0xa65c0c={};_0xa65c0c[_0x1886ad(0x174)]=_0x1886ad(0x16c);const _0x5099c6=_0xa65c0c;return _0x5099c6[_0x1886ad(0x174)];};const a88_0x3b1778={};a88_0x3b1778[a88_0x426e0a(0x16b)]=0x3,a88_0x3b1778[a88_0x426e0a(0x15f)]=function(){const _0x15eb5f=a88_0x426e0a,_0x45a8e5={};_0x45a8e5['PIUQg']=_0x15eb5f(0x163);const _0x472d42=_0x45a8e5;return _0x472d42[_0x15eb5f(0x173)];};const a88_0x127056={};a88_0x127056['value']=0x4,a88_0x127056[a88_0x426e0a(0x15f)]=function(){const _0xb9780=a88_0x426e0a,_0x23bba6={};_0x23bba6[_0xb9780(0x15b)]='TestFrameworkState.INIT_TEST';const _0x57fa84=_0x23bba6;return _0x57fa84['dwRhv'];};const a88_0x21a4dd={};a88_0x21a4dd[a88_0x426e0a(0x16b)]=0x5,a88_0x21a4dd[a88_0x426e0a(0x15f)]=function(){const _0x5c1d6f=a88_0x426e0a,_0x182f67={};_0x182f67['AtTTX']=_0x5c1d6f(0x167);const _0x2294f8=_0x182f67;return _0x2294f8[_0x5c1d6f(0x162)];};const a88_0x51d431={};a88_0x51d431[a88_0x426e0a(0x16b)]=0x6,a88_0x51d431[a88_0x426e0a(0x15f)]=function(){const _0x1608e2=a88_0x426e0a,_0x40ef4b={};_0x40ef4b['xQubS']=_0x1608e2(0x166);const _0xd9fb0f=_0x40ef4b;return _0xd9fb0f['xQubS'];};const a88_0x3119c8={};a88_0x3119c8[a88_0x426e0a(0x16b)]=0x7,a88_0x3119c8[a88_0x426e0a(0x15f)]=function(){const _0x2ebfeb=a88_0x426e0a,_0x3a0cce={};_0x3a0cce[_0x2ebfeb(0x170)]='TestFrameworkState.TEST';const _0x131d0d=_0x3a0cce;return _0x131d0d[_0x2ebfeb(0x170)];};const a88_0x5d79bd={};a88_0x5d79bd[a88_0x426e0a(0x16b)]=0x8,a88_0x5d79bd[a88_0x426e0a(0x15f)]=function(){const _0x1566d8=a88_0x426e0a,_0x2acb12={};_0x2acb12[_0x1566d8(0x169)]=_0x1566d8(0x16f);const _0x4ce014=_0x2acb12;return _0x4ce014['CJmqo'];};function a88_0x76b9(_0x38ad28,_0x486858){const _0x33804c=a88_0x3380();return a88_0x76b9=function(_0x76b9f9,_0x530fde){_0x76b9f9=_0x76b9f9-0x152;let _0x5a1637=_0x33804c[_0x76b9f9];return _0x5a1637;},a88_0x76b9(_0x38ad28,_0x486858);}const a88_0x44d288={};a88_0x44d288['value']=0x9,a88_0x44d288['toString']=function(){const _0x7eba18=a88_0x426e0a,_0x456b50={};_0x456b50[_0x7eba18(0x165)]=_0x7eba18(0x157);const _0x273dea=_0x456b50;return _0x273dea[_0x7eba18(0x165)];};const a88_0x5496ee={};a88_0x5496ee[a88_0x426e0a(0x16b)]=0xa,a88_0x5496ee['toString']=function(){const _0x22d9cd=a88_0x426e0a,_0x57bcf4={};_0x57bcf4[_0x22d9cd(0x156)]=_0x22d9cd(0x175);const _0x4c998f=_0x57bcf4;return _0x4c998f['rqdZT'];};const a88_0x498e95={};a88_0x498e95[a88_0x426e0a(0x16b)]=0xb,a88_0x498e95[a88_0x426e0a(0x15f)]=function(){const _0x557b34=a88_0x426e0a,_0x38e1a7={};_0x38e1a7[_0x557b34(0x172)]=_0x557b34(0x160);const _0x3cba82=_0x38e1a7;return _0x3cba82[_0x557b34(0x172)];};const TestFrameworkState=Object[a88_0x426e0a(0x16e)]({'NONE':a88_0x48ad3f,'BEFORE_ALL':a88_0x3b5dd1,'LOG':a88_0x18c68f,'SETUP_FIXTURE':a88_0x3b1778,'INIT_TEST':a88_0x127056,'BEFORE_EACH':a88_0x21a4dd,'AFTER_EACH':a88_0x51d431,'TEST':a88_0x3119c8,'STEP':a88_0x5d79bd,'LOG_REPORT':a88_0x44d288,'AFTER_ALL':a88_0x5496ee,'TEST_SCREENSHOT':a88_0x498e95,'fromValue'(_0x4b16a6){const _0x47a91b=a88_0x426e0a;return Object[_0x47a91b(0x154)](TestFrameworkState)['find'](_0x5dfd8e=>_0x5dfd8e[_0x47a91b(0x16b)]===_0x4b16a6);}});module[a88_0x426e0a(0x15d)]=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a89_0x5cf9(){const _0x52f95a=['debug','statSync','existsSync','./state/hookState','logger','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','getAllData','5803wyahdM','sSKIj','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','./cliUtils','1304cleRvy','JKZKR','http','./TestInfo','JXWyl','3815174regqBg','util','14629ihnZXz','KEY_FILE_LEVEL','copyFileSync','getTestFramework','getTestIdentifierFromTestInfo','AdrkM','toFixed','clearAttachments','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','./state/testFrameworkState','mWktQ','HbdRg','basename','uploadAttachmentsManager','./modules/playwrightDriverModule','dcDyC','37278fbpVvr','.browserstack','gRDij','iNXxr','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','toLowerCase','addMultipleEntries','dSkBc','name','TEST','1602TusNeW','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','oIado','uploadAttachments','349516cWFrIn','BuildLevel',',\x20filepath:\x20','close','join','trackFile','4udIKGJ','startsWith','http://','abzxa','format','QKFlg','pipe','getTrackedInstance','qYCwL','https://','statusCode','210WRVOhP','xSLrK','JoDic','getTestDetails','UtJEu','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','POST','jest','message','pHsiF','unlinkSync','LZhhm','PjqZt','KEY_TEST_ID','./framework/constants/testFrameworkConstants','modules','Created\x20folder:\x20%s','testhubConfig','homedir','setTestDetails','size','WeDkr','wutxg','yxLTt','retry','SmrOS','TestLevel','exports','lhGxW','getTestFrameworkDetail','MieIV','GQQya','buildHashedId','YScUy','../../helpers/classLogger.js','wlnpH','QBxls','toObject','GYcKH','Created\x20.browserstack\x20folder\x20at:\x20%s','finish','getInstance','ElCQS','WZsCI','3865mcNKKL','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','oNdYg','KEY_FILE_SIZE','error','Attachment\x20recevied\x20for\x20path:\x20%s','SFOxe','eamvU','sriNS','KEY_TEST_ATTACHMENTS','hLEPO','__workerDetails','mkdirSync','TestHubModule','createWriteStream','83106NwJiCF','Xstfl','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','ICHVL','ZUpCZ','getState'];a89_0x5cf9=function(){return _0x52f95a;};return a89_0x5cf9();}function a89_0x4ae6(_0x35d3c,_0x4d3e89){const _0x5cf998=a89_0x5cf9();return a89_0x4ae6=function(_0x4ae673,_0x535a08){_0x4ae673=_0x4ae673-0xee;let _0x1b9ea0=_0x5cf998[_0x4ae673];return _0x1b9ea0;},a89_0x4ae6(_0x35d3c,_0x4d3e89);}const a89_0x539d20=a89_0x4ae6;(function(_0x2f7639,_0x5f4797){const _0x4300f6=a89_0x4ae6,_0x3723db=_0x2f7639();while(!![]){try{const _0x349260=-parseInt(_0x4300f6(0x10d))/0x1*(-parseInt(_0x4300f6(0x131))/0x2)+-parseInt(_0x4300f6(0x11d))/0x3+-parseInt(_0x4300f6(0x12b))/0x4+-parseInt(_0x4300f6(0x168))/0x5*(parseInt(_0x4300f6(0x127))/0x6)+parseInt(_0x4300f6(0x102))/0x7*(-parseInt(_0x4300f6(0x106))/0x8)+parseInt(_0x4300f6(0xf4))/0x9*(parseInt(_0x4300f6(0x13c))/0xa)+parseInt(_0x4300f6(0x10b))/0xb;if(_0x349260===_0x5f4797)break;else _0x3723db['push'](_0x3723db['shift']());}catch(_0x1f9207){_0x3723db['push'](_0x3723db['shift']());}}}(a89_0x5cf9,0x1f6ab));const os=require('os'),fs=require('fs'),path=require('path'),util=require(a89_0x539d20(0x10c)),BrowserstackCLI=require('./browserstackCLI'),https=require('https'),http=require(a89_0x539d20(0x108)),AutomationFramework=require('./framework/automationFramework'),PlaywrightDriverModule=require(a89_0x539d20(0x11b)),TestInfo=require(a89_0x539d20(0x109)),TestFrameworkConstants=require(a89_0x539d20(0x14a)),{createClassLogger}=require(a89_0x539d20(0x15e));class uploadAttachmentsManager{static [a89_0x539d20(0xff)]=createClassLogger(a89_0x539d20(0x11a));static[a89_0x539d20(0x12a)](_0x50186b,_0x795c15=![]){const _0xe694c7=a89_0x539d20,_0x54ef09={};_0x54ef09[_0xe694c7(0x139)]=function(_0x42840a,_0xbaabe1){return _0x42840a/_0xbaabe1;},_0x54ef09[_0xe694c7(0x103)]=function(_0x4a9445,_0x29a725){return _0x4a9445*_0x29a725;},_0x54ef09[_0xe694c7(0x13e)]=function(_0x5f13a7,_0x47ae43){return _0x5f13a7>_0x47ae43;},_0x54ef09[_0xe694c7(0x10a)]='Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.',_0x54ef09[_0xe694c7(0x148)]='File\x20downloaded\x20to:\x20%s',_0x54ef09[_0xe694c7(0x11f)]=function(_0x485f3e,_0x3992ac){return _0x485f3e===_0x3992ac;},_0x54ef09['SFOxe']=_0xe694c7(0x164),_0x54ef09[_0xe694c7(0x140)]=_0xe694c7(0x104),_0x54ef09['Opvdt']=_0xe694c7(0x100),_0x54ef09[_0xe694c7(0x107)]=_0xe694c7(0x16d),_0x54ef09[_0xe694c7(0xef)]=_0xe694c7(0x11e),_0x54ef09[_0xe694c7(0xf8)]='.browserstack\x20folder\x20not\x20found\x20at:\x20%s',_0x54ef09[_0xe694c7(0x15b)]=_0xe694c7(0x163),_0x54ef09[_0xe694c7(0x16a)]=_0xe694c7(0x14c),_0x54ef09[_0xe694c7(0x160)]=function(_0x566b93,_0x216a90){return _0x566b93===_0x216a90;},_0x54ef09[_0xe694c7(0x166)]='Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.',_0x54ef09[_0xe694c7(0x16f)]=_0xe694c7(0x13a),_0x54ef09[_0xe694c7(0x145)]=_0xe694c7(0x133),_0x54ef09[_0xe694c7(0x147)]=_0xe694c7(0x16c),_0x54ef09[_0xe694c7(0x117)]=_0xe694c7(0x141),_0x54ef09[_0xe694c7(0x124)]=function(_0x5f670d,_0x5f29e9){return _0x5f670d/_0x5f29e9;},_0x54ef09[_0xe694c7(0x118)]=function(_0x6b2520,_0x5557f3){return _0x6b2520*_0x5557f3;},_0x54ef09[_0xe694c7(0xf5)]=_0xe694c7(0x121);const _0x54e888=_0x54ef09;this['logger'][_0xe694c7(0xfb)](util[_0xe694c7(0x135)](_0x54e888[_0xe694c7(0x107)],_0x50186b));const _0x35be4d=os['homedir'](),_0x5a23dd=path[_0xe694c7(0x12f)](_0x35be4d,_0x54e888[_0xe694c7(0xef)]);!fs[_0xe694c7(0xfd)](_0x5a23dd)&&(this[_0xe694c7(0xff)][_0xe694c7(0xfb)](util[_0xe694c7(0x135)](_0x54e888[_0xe694c7(0xf8)],_0x5a23dd)),fs['mkdirSync'](_0x5a23dd),this[_0xe694c7(0xff)][_0xe694c7(0xfb)](util[_0xe694c7(0x135)](_0x54e888[_0xe694c7(0x15b)],_0x5a23dd)));const _0x59948a=BrowserstackCLI[_0xe694c7(0x165)]()[_0xe694c7(0x14b)][_0xe694c7(0xf2)]?.['testhubConfig']?.[_0xe694c7(0x161)]()?.[_0xe694c7(0x15c)],_0x17c49a=path[_0xe694c7(0x12f)](_0x5a23dd,_0x59948a);!fs['existsSync'](_0x17c49a)&&(fs[_0xe694c7(0xf1)](_0x17c49a),this[_0xe694c7(0xff)][_0xe694c7(0xfb)](util['format'](_0x54e888[_0xe694c7(0x16a)],_0x17c49a)));if(_0x54e888[_0xe694c7(0x160)](_0x50186b['trim'](),'')){this[_0xe694c7(0xff)][_0xe694c7(0xfb)](util[_0xe694c7(0x135)](_0x54e888['ElCQS']));return;}if(_0x50186b[_0xe694c7(0x132)](_0x54e888[_0xe694c7(0x16f)])||_0x50186b[_0xe694c7(0x132)](_0x54e888['pHsiF'])){const _0x17ab61=_0x50186b[_0xe694c7(0x132)](_0x54e888[_0xe694c7(0x16f)])?https:http,_0x3fbc6e=path[_0xe694c7(0x119)](_0x50186b),_0x5d40f0=path[_0xe694c7(0x12f)](_0x17c49a,_0x3fbc6e),_0x4761c7=fs[_0xe694c7(0xf3)](_0x5d40f0);_0x17ab61['get'](_0x50186b,_0x4eb2be=>{const _0x36521a=_0xe694c7,_0x22324f={'dcDyC':function(_0x4e9ee7,_0xd3187c){const _0x244232=a89_0x4ae6;return _0x54e888[_0x244232(0x139)](_0x4e9ee7,_0xd3187c);},'sriNS':function(_0x3c5dc9,_0x4c8ae8){const _0x5b3ae9=a89_0x4ae6;return _0x54e888[_0x5b3ae9(0x103)](_0x3c5dc9,_0x4c8ae8);},'abzxa':function(_0x497cdc,_0x47592e){const _0xbb15a6=a89_0x4ae6;return _0x54e888[_0xbb15a6(0x13e)](_0x497cdc,_0x47592e);},'RgTnu':_0x54e888['JXWyl'],'xSLrK':_0x54e888[_0x36521a(0x148)]};if(_0x54e888[_0x36521a(0x11f)](_0x4eb2be[_0x36521a(0x13b)],0xc8))_0x4eb2be[_0x36521a(0x137)](_0x4761c7),_0x4761c7['on'](_0x54e888[_0x36521a(0x16e)],()=>{const _0x575c2d=_0x36521a;_0x4761c7[_0x575c2d(0x12e)]();const _0x1bba9c=fs[_0x575c2d(0xfc)](_0x5d40f0),_0x367086=_0x22324f[_0x575c2d(0x11c)](_0x1bba9c['size'],_0x22324f[_0x575c2d(0x170)](0x400,0x400));if(_0x22324f[_0x575c2d(0x134)](_0x367086,0x64)){this[_0x575c2d(0xff)]['debug'](util['format'](_0x22324f['RgTnu'],_0x367086[_0x575c2d(0x113)](0x2))),fs['unlinkSync'](_0x5d40f0);return;}this[_0x575c2d(0xff)][_0x575c2d(0xfb)](util[_0x575c2d(0x135)](_0x22324f[_0x575c2d(0x13d)],_0x5d40f0)),uploadAttachmentsManager[_0x575c2d(0x130)](_0x5d40f0,_0x795c15);});else{this[_0x36521a(0xff)][_0x36521a(0xfb)](util['format'](_0x54e888[_0x36521a(0x140)],_0x4eb2be[_0x36521a(0x13b)])),_0x4761c7[_0x36521a(0x12e)](),fs[_0x36521a(0x146)](_0x5d40f0);return;}})['on'](_0x54e888[_0xe694c7(0x147)],_0x4cf81b=>{const _0x9ee53a=_0xe694c7;this[_0x9ee53a(0xff)][_0x9ee53a(0xfb)](util[_0x9ee53a(0x135)](_0x54e888['Opvdt'],_0x4cf81b[_0x9ee53a(0x144)])),_0x4761c7['close'](),fs[_0x9ee53a(0x146)](_0x5d40f0);return;});}else{if(!fs['existsSync'](_0x50186b)){this['logger']['debug'](util['format'](_0x54e888[_0xe694c7(0x117)],_0x50186b));return;}const _0x3e4c78=fs['statSync'](_0x50186b),_0x11f374=_0x54e888[_0xe694c7(0x124)](_0x3e4c78[_0xe694c7(0x150)],_0x54e888[_0xe694c7(0x118)](0x400,0x400));if(_0x54e888[_0xe694c7(0x13e)](_0x11f374,0x64)){this['logger']['debug'](util[_0xe694c7(0x135)](_0x54e888['Xstfl'],_0x11f374['toFixed'](0x2)));return;}const _0x513520=path[_0xe694c7(0x119)](_0x50186b),_0x166ebc=path[_0xe694c7(0x12f)](_0x17c49a,_0x513520);fs[_0xe694c7(0x10f)](_0x50186b,_0x166ebc),uploadAttachmentsManager['trackFile'](_0x166ebc,_0x795c15);}}static[a89_0x539d20(0x130)](_0x529102,_0x26263a){const _0x4f2603=a89_0x539d20,_0x422b86={'MieIV':function(_0x356051,_0x5a4b66){return _0x356051(_0x5a4b66);},'oFadI':'./browserstackCLI','QKFlg':_0x4f2603(0x105),'DBMhc':function(_0x99708b,_0x3aa16){return _0x99708b===_0x3aa16;},'GYcKH':_0x4f2603(0x143),'GFdEA':'trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','wutxg':_0x4f2603(0x12c),'SmrOS':_0x4f2603(0x156),'WZsCI':_0x4f2603(0x169),'yxLTt':function(_0x42b022,_0x9cab2b){return _0x42b022(_0x9cab2b);},'wlnpH':_0x4f2603(0x116),'oIado':_0x4f2603(0xfe),'WeDkr':'trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','ZUpCZ':_0x4f2603(0xf7),'iNXxr':'Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload'};try{let _0x1b6b03;const _0x3229cf=global[_0x4f2603(0xf0)]?.['currentTest']?.['testInfo'],_0x38577d=_0x422b86[_0x4f2603(0x15a)](require,_0x422b86['oFadI']),_0x2d99d3=_0x422b86[_0x4f2603(0x15a)](require,_0x422b86[_0x4f2603(0x136)]),_0x2a9393=_0x38577d[_0x4f2603(0x165)]()['isRunning']()&&_0x422b86['DBMhc'](_0x2d99d3[_0x4f2603(0x159)]()?.[_0x4f2603(0x125)]?.[_0x4f2603(0x122)](),_0x422b86[_0x4f2603(0x162)]);if(_0x2a9393){_0x1b6b03=global['__jestCurrentTestIdentifier'];if(!_0x1b6b03){const _0x284f57=AutomationFramework[_0x4f2603(0x138)]();_0x1b6b03=AutomationFramework['getState'](_0x284f57,PlaywrightDriverModule[_0x4f2603(0x149)],'');}this[_0x4f2603(0xff)][_0x4f2603(0xfb)](_0x4f2603(0xf6)+_0x1b6b03);}else{if(!_0x3229cf){const _0x3b6e5a=AutomationFramework[_0x4f2603(0x138)]();_0x1b6b03=AutomationFramework[_0x4f2603(0xfa)](_0x3b6e5a,PlaywrightDriverModule[_0x4f2603(0x149)],'');}else _0x1b6b03=TestInfo[_0x4f2603(0x111)](_0x3229cf,_0x3229cf[_0x4f2603(0x154)]);this[_0x4f2603(0xff)][_0x4f2603(0xfb)]('trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20'+_0x1b6b03);}if(!_0x1b6b03){this[_0x4f2603(0xff)][_0x4f2603(0xfb)](_0x422b86['GFdEA']);return;}const _0xcb9d28={[TestFrameworkConstants[_0x4f2603(0x16b)]]:fs['statSync'](_0x529102)[_0x4f2603(0x150)],[TestFrameworkConstants['KEY_FILE_NAME']]:path[_0x4f2603(0x119)](_0x529102),[TestFrameworkConstants['KEY_FILE_PATH']]:_0x529102,[TestFrameworkConstants[_0x4f2603(0x10e)]]:_0x26263a?_0x422b86[_0x4f2603(0x152)]:_0x422b86[_0x4f2603(0x155)]};if(_0x2a9393){const _0x121355=_0x38577d[_0x4f2603(0x165)]()[_0x4f2603(0x110)]();if(!_0x121355){this['logger'][_0x4f2603(0xfb)](_0x422b86[_0x4f2603(0x167)]);return;}const _0x1b53d8=_0x422b86[_0x4f2603(0x153)](require,_0x422b86[_0x4f2603(0x15f)]),_0x26eaef=_0x422b86[_0x4f2603(0x153)](require,_0x422b86[_0x4f2603(0x129)]),_0x5f5c03=_0x121355['resolveInstance'](_0x1b53d8[_0x4f2603(0x126)],_0x26eaef[_0x4f2603(0x142)]);if(!_0x5f5c03){this[_0x4f2603(0xff)][_0x4f2603(0xfb)](_0x422b86[_0x4f2603(0x151)]);return;}const _0x49081a=_0x5f5c03[_0x4f2603(0x101)]()['get'](_0x1b6b03)||{},_0x49af96=_0x49081a[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x36c396={..._0x49af96};_0x36c396[_0x529102]=_0xcb9d28;const _0x5948c7=_0x36c396,_0x26cf8b={[TestFrameworkConstants[_0x4f2603(0xee)]]:_0x5948c7},_0xcfe579={};_0xcfe579[_0x1b6b03]=_0x26cf8b,_0x5f5c03[_0x4f2603(0x123)](_0xcfe579),this[_0x4f2603(0xff)][_0x4f2603(0xfb)]('trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20'+_0x1b6b03+_0x4f2603(0x12d)+_0x529102);}else{const _0x3a3c69=TestInfo[_0x4f2603(0x13f)](_0x1b6b03),_0x19056c=_0x3a3c69[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{};_0x19056c[_0x529102]=_0xcb9d28,_0x3a3c69[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]=_0x19056c,TestInfo[_0x4f2603(0x14f)](_0x1b6b03,_0x3a3c69),this[_0x4f2603(0xff)][_0x4f2603(0xfb)](_0x4f2603(0x128)+_0x1b6b03+_0x4f2603(0x12d)+_0x529102);}this[_0x4f2603(0xff)][_0x4f2603(0xfb)](util[_0x4f2603(0x135)](_0x422b86[_0x4f2603(0xf9)],_0x529102));}catch(_0x27c377){this[_0x4f2603(0xff)][_0x4f2603(0xfb)](util[_0x4f2603(0x135)](_0x422b86[_0x4f2603(0x120)],_0x27c377[_0x4f2603(0x144)]));}}static[a89_0x539d20(0x114)](){const _0x2e6256=a89_0x539d20,_0x27543d={};_0x27543d[_0x2e6256(0x112)]=_0x2e6256(0x11e),_0x27543d['YScUy']=_0x2e6256(0x115),_0x27543d[_0x2e6256(0x158)]='Cleared\x20attachment\x20folder';const _0x6a9492=_0x27543d,_0x24fca8=os[_0x2e6256(0x14e)](),_0x2f9e94=path['join'](_0x24fca8,_0x6a9492['AdrkM']);if(!fs[_0x2e6256(0xfd)](_0x2f9e94))return;const _0x3c363b=BrowserstackCLI[_0x2e6256(0x165)]()[_0x2e6256(0x14b)][_0x2e6256(0xf2)]?.[_0x2e6256(0x14d)]?.[_0x2e6256(0x161)]()?.[_0x2e6256(0x15c)],_0x5bdcd6=_0x3c363b?path[_0x2e6256(0x12f)](_0x2f9e94,_0x3c363b):null;if(!_0x5bdcd6||!fs[_0x2e6256(0xfd)](_0x5bdcd6)){this[_0x2e6256(0xff)][_0x2e6256(0xfb)](util[_0x2e6256(0x135)](_0x6a9492[_0x2e6256(0x15d)],_0x3c363b));return;}const _0x29a671={};_0x29a671['recursive']=!![],_0x29a671['force']=!![],fs['rmSync'](_0x5bdcd6,_0x29a671),this['logger'][_0x2e6256(0xfb)](util[_0x2e6256(0x135)](_0x6a9492[_0x2e6256(0x158)]));}}module[a89_0x539d20(0x157)]=uploadAttachmentsManager;
|
|
1
|
+
function a89_0x5ec7(){const _0x2ef4e0=['trackFile','MsFLI','EzPNY','addMultipleEntries','statusCode','logger','unlinkSync','format','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','./framework/automationFramework','./browserstackCLI','finish','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','JWgYA','message','../../helpers/classLogger.js','getState','bHdOD','resolveInstance','plzXk','close','homedir','./framework/constants/testFrameworkConstants','212gMpRec','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','uGQMw','./state/hookState','zfpsQ','536AmJRtA','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','exports','3997oBGibf','vuBYS','__workerDetails','currentTest','SOtLd','preIi','http://','SpwTO','alDrZ','modules','debug','tPOZu','http','pCwkL','./state/testFrameworkState','tCsij','7907YIUtan','https','JOGXw','.browserstack','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','mWiya','statSync','force','Cleared\x20attachment\x20folder','KEY_FILE_LEVEL','27867540GEhexG','existsSync','MdNZT','TestHubModule','inngs','sjMKw','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','toFixed','basename','pkcum','testhubConfig','5qUVKiB','sNieQ','name','KEY_FILE_NAME','testInfo','JWwmd',',\x20filepath:\x20','zgNOX','rmSync','getInstance','mkdirSync','./TestInfo','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','Created\x20folder:\x20%s','KEY_TEST_ID','POST','TEST','startsWith','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','TestLevel','2548446LhGrWy','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','get','1299426nfFrZP','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','utlPi','1433817cOfQsv','SsKYo','pipe','join','iXkkF','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','util','getTrackedInstance','toObject','1484532zLyYUU','pLkcx','RWObk','xpaDU','setTestDetails','hJzQf','createWriteStream','buildHashedId','https://','UQmoP','byrTs','getTestIdentifierFromTestInfo','Created\x20.browserstack\x20folder\x20at:\x20%s','GsbbW','copyFileSync','aqdLY','size','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','isRunning','./cliUtils','PIwBu','ewWTK','getAllData','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','uploadAttachments','KEY_FILE_PATH','KEY_TEST_ATTACHMENTS','File\x20downloaded\x20to:\x20%s'];a89_0x5ec7=function(){return _0x2ef4e0;};return a89_0x5ec7();}function a89_0x4ed0(_0x167027,_0x46ce01){const _0x5ec727=a89_0x5ec7();return a89_0x4ed0=function(_0x4ed059,_0x1a1b7e){_0x4ed059=_0x4ed059-0x160;let _0x203945=_0x5ec727[_0x4ed059];return _0x203945;},a89_0x4ed0(_0x167027,_0x46ce01);}const a89_0x3e0440=a89_0x4ed0;(function(_0x6915b6,_0x26e5ac){const _0x1030af=a89_0x4ed0,_0x3c0add=_0x6915b6();while(!![]){try{const _0x3aaef6=parseInt(_0x1030af(0x16f))/0x1*(-parseInt(_0x1030af(0x1da))/0x2)+-parseInt(_0x1030af(0x198))/0x3+-parseInt(_0x1030af(0x1a7))/0x4+parseInt(_0x1030af(0x184))/0x5*(-parseInt(_0x1030af(0x19b))/0x6)+parseInt(_0x1030af(0x1e2))/0x7*(-parseInt(_0x1030af(0x1df))/0x8)+parseInt(_0x1030af(0x19e))/0x9+parseInt(_0x1030af(0x179))/0xa;if(_0x3aaef6===_0x26e5ac)break;else _0x3c0add['push'](_0x3c0add['shift']());}catch(_0x2b390a){_0x3c0add['push'](_0x3c0add['shift']());}}}(a89_0x5ec7,0x9a6a2));const os=require('os'),fs=require('fs'),path=require('path'),util=require(a89_0x3e0440(0x1a4)),BrowserstackCLI=require(a89_0x3e0440(0x1cd)),https=require(a89_0x3e0440(0x170)),http=require(a89_0x3e0440(0x16b)),AutomationFramework=require(a89_0x3e0440(0x1cc)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a89_0x3e0440(0x18f)),TestFrameworkConstants=require(a89_0x3e0440(0x1d9)),{createClassLogger}=require(a89_0x3e0440(0x1d2));class uploadAttachmentsManager{static [a89_0x3e0440(0x1c8)]=createClassLogger('uploadAttachmentsManager');static[a89_0x3e0440(0x1bf)](_0x1ce5c5,_0x95a9e2=![]){const _0x3571a4=a89_0x3e0440,_0x358be5={};_0x358be5[_0x3571a4(0x1d4)]=function(_0x159c8e,_0x64397d){return _0x159c8e/_0x64397d;},_0x358be5[_0x3571a4(0x1ac)]=function(_0x538f3a,_0x3117f9){return _0x538f3a*_0x3117f9;},_0x358be5[_0x3571a4(0x19d)]=function(_0x4cf17d,_0xf3af0){return _0x4cf17d>_0xf3af0;},_0x358be5[_0x3571a4(0x167)]=_0x3571a4(0x1db),_0x358be5[_0x3571a4(0x182)]=_0x3571a4(0x1c2),_0x358be5['tCsij']=function(_0x45eda9,_0x2aa688){return _0x45eda9===_0x2aa688;},_0x358be5[_0x3571a4(0x1c4)]=_0x3571a4(0x1ce),_0x358be5[_0x3571a4(0x1a2)]=_0x3571a4(0x190),_0x358be5['JWgYA']=_0x3571a4(0x17f),_0x358be5[_0x3571a4(0x1c5)]='Attachment\x20recevied\x20for\x20path:\x20%s',_0x358be5[_0x3571a4(0x189)]=_0x3571a4(0x172),_0x358be5[_0x3571a4(0x174)]=_0x3571a4(0x196),_0x358be5['SOtLd']=_0x3571a4(0x1b3),_0x358be5['plzXk']=_0x3571a4(0x191),_0x358be5[_0x3571a4(0x1b1)]=_0x3571a4(0x199),_0x358be5['zfpsQ']=_0x3571a4(0x1af),_0x358be5['inngs']=_0x3571a4(0x165),_0x358be5[_0x3571a4(0x160)]='error',_0x358be5[_0x3571a4(0x18b)]=_0x3571a4(0x19c),_0x358be5['pLkcx']=function(_0x32c07e,_0xbadda9){return _0x32c07e*_0xbadda9;},_0x358be5[_0x3571a4(0x164)]='File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.';const _0x4b1530=_0x358be5;this['logger']['debug'](util[_0x3571a4(0x1ca)](_0x4b1530[_0x3571a4(0x1c5)],_0x1ce5c5));const _0x566f07=os[_0x3571a4(0x1d8)](),_0xa58086=path[_0x3571a4(0x1a1)](_0x566f07,_0x4b1530[_0x3571a4(0x189)]);!fs[_0x3571a4(0x17a)](_0xa58086)&&(this[_0x3571a4(0x1c8)][_0x3571a4(0x169)](util[_0x3571a4(0x1ca)](_0x4b1530[_0x3571a4(0x174)],_0xa58086)),fs[_0x3571a4(0x18e)](_0xa58086),this['logger'][_0x3571a4(0x169)](util[_0x3571a4(0x1ca)](_0x4b1530[_0x3571a4(0x163)],_0xa58086)));const _0x4833de=BrowserstackCLI[_0x3571a4(0x18d)]()[_0x3571a4(0x168)][_0x3571a4(0x17c)]?.[_0x3571a4(0x183)]?.[_0x3571a4(0x1a6)]()?.[_0x3571a4(0x1ae)],_0x1c3551=path[_0x3571a4(0x1a1)](_0xa58086,_0x4833de);!fs['existsSync'](_0x1c3551)&&(fs['mkdirSync'](_0x1c3551),this[_0x3571a4(0x1c8)][_0x3571a4(0x169)](util[_0x3571a4(0x1ca)](_0x4b1530[_0x3571a4(0x1d6)],_0x1c3551)));if(_0x4b1530[_0x3571a4(0x16e)](_0x1ce5c5['trim'](),'')){this[_0x3571a4(0x1c8)][_0x3571a4(0x169)](util[_0x3571a4(0x1ca)](_0x4b1530[_0x3571a4(0x1b1)]));return;}if(_0x1ce5c5[_0x3571a4(0x195)](_0x4b1530[_0x3571a4(0x1de)])||_0x1ce5c5[_0x3571a4(0x195)](_0x4b1530[_0x3571a4(0x17d)])){const _0x139759=_0x1ce5c5[_0x3571a4(0x195)](_0x4b1530['zfpsQ'])?https:http,_0x10bf3b=path['basename'](_0x1ce5c5),_0x4741bf=path[_0x3571a4(0x1a1)](_0x1c3551,_0x10bf3b),_0x2db7af=fs[_0x3571a4(0x1ad)](_0x4741bf);_0x139759['get'](_0x1ce5c5,_0x5ea10a=>{const _0x2544e9=_0x3571a4;if(_0x4b1530[_0x2544e9(0x16e)](_0x5ea10a[_0x2544e9(0x1c7)],0xc8))_0x5ea10a[_0x2544e9(0x1a0)](_0x2db7af),_0x2db7af['on'](_0x4b1530[_0x2544e9(0x1c4)],()=>{const _0x22b2a6=_0x2544e9;_0x2db7af[_0x22b2a6(0x1d7)]();const _0x5c538a=fs['statSync'](_0x4741bf),_0x16cd71=_0x4b1530[_0x22b2a6(0x1d4)](_0x5c538a['size'],_0x4b1530[_0x22b2a6(0x1ac)](0x400,0x400));if(_0x4b1530[_0x22b2a6(0x19d)](_0x16cd71,0x64)){this[_0x22b2a6(0x1c8)]['debug'](util[_0x22b2a6(0x1ca)](_0x4b1530[_0x22b2a6(0x167)],_0x16cd71['toFixed'](0x2))),fs['unlinkSync'](_0x4741bf);return;}this[_0x22b2a6(0x1c8)][_0x22b2a6(0x169)](util[_0x22b2a6(0x1ca)](_0x4b1530[_0x22b2a6(0x182)],_0x4741bf)),uploadAttachmentsManager[_0x22b2a6(0x1c3)](_0x4741bf,_0x95a9e2);});else{this['logger'][_0x2544e9(0x169)](util[_0x2544e9(0x1ca)](_0x4b1530['iXkkF'],_0x5ea10a['statusCode'])),_0x2db7af[_0x2544e9(0x1d7)](),fs[_0x2544e9(0x1c9)](_0x4741bf);return;}})['on'](_0x4b1530['vuBYS'],_0x640d9f=>{const _0x5c3481=_0x3571a4;this[_0x5c3481(0x1c8)][_0x5c3481(0x169)](util[_0x5c3481(0x1ca)](_0x4b1530[_0x5c3481(0x1d0)],_0x640d9f['message'])),_0x2db7af[_0x5c3481(0x1d7)](),fs[_0x5c3481(0x1c9)](_0x4741bf);return;});}else{if(!fs[_0x3571a4(0x17a)](_0x1ce5c5)){this[_0x3571a4(0x1c8)][_0x3571a4(0x169)](util['format'](_0x4b1530[_0x3571a4(0x18b)],_0x1ce5c5));return;}const _0x2ab53c=fs[_0x3571a4(0x175)](_0x1ce5c5),_0x4112a6=_0x4b1530[_0x3571a4(0x1d4)](_0x2ab53c[_0x3571a4(0x1b7)],_0x4b1530[_0x3571a4(0x1a8)](0x400,0x400));if(_0x4b1530[_0x3571a4(0x19d)](_0x4112a6,0x64)){this[_0x3571a4(0x1c8)][_0x3571a4(0x169)](util[_0x3571a4(0x1ca)](_0x4b1530[_0x3571a4(0x164)],_0x4112a6[_0x3571a4(0x180)](0x2)));return;}const _0x40e11d=path[_0x3571a4(0x181)](_0x1ce5c5),_0x41ab47=path[_0x3571a4(0x1a1)](_0x1c3551,_0x40e11d);fs[_0x3571a4(0x1b5)](_0x1ce5c5,_0x41ab47),uploadAttachmentsManager[_0x3571a4(0x1c3)](_0x41ab47,_0x95a9e2);}}static[a89_0x3e0440(0x1c3)](_0x1c3b24,_0x2a33c0){const _0x3ae5b3=a89_0x3e0440,_0x463e29={'UQmoP':function(_0x4493a4,_0x283ff3){return _0x4493a4(_0x283ff3);},'ewWTK':_0x3ae5b3(0x1cd),'sNieQ':function(_0x469873,_0x3f52a9){return _0x469873(_0x3f52a9);},'pCwkL':_0x3ae5b3(0x1ba),'xpaDU':function(_0x1bf9cb,_0x4b38cf){return _0x1bf9cb===_0x4b38cf;},'sjMKw':'jest','SsKYo':_0x3ae5b3(0x1e0),'aqdLY':'BuildLevel','RWObk':_0x3ae5b3(0x197),'GsbbW':'trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','JOGXw':_0x3ae5b3(0x16d),'PIwBu':function(_0x607bcb,_0x225b13){return _0x607bcb(_0x225b13);},'emQuc':_0x3ae5b3(0x1dd),'MdNZT':_0x3ae5b3(0x1b8),'zjrNy':'Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','SpwTO':_0x3ae5b3(0x173)};try{let _0x164489;const _0x41789e=global[_0x3ae5b3(0x161)]?.[_0x3ae5b3(0x162)]?.[_0x3ae5b3(0x188)],_0x4b5fa7=_0x463e29[_0x3ae5b3(0x1b0)](require,_0x463e29[_0x3ae5b3(0x1bc)]),_0x26e78d=_0x463e29[_0x3ae5b3(0x185)](require,_0x463e29[_0x3ae5b3(0x16c)]),_0x1cd878=_0x4b5fa7['getInstance']()[_0x3ae5b3(0x1b9)]()&&_0x463e29[_0x3ae5b3(0x1aa)](_0x26e78d['getTestFrameworkDetail']()?.[_0x3ae5b3(0x186)]?.['toLowerCase'](),_0x463e29[_0x3ae5b3(0x17e)]);if(_0x1cd878){_0x164489=global['__jestCurrentTestIdentifier'];if(!_0x164489){const _0x3dbf85=AutomationFramework['getTrackedInstance']();_0x164489=AutomationFramework[_0x3ae5b3(0x1d3)](_0x3dbf85,PlaywrightDriverModule[_0x3ae5b3(0x192)],'');}this[_0x3ae5b3(0x1c8)][_0x3ae5b3(0x169)]('trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20'+_0x164489);}else{if(!_0x41789e){const _0x429f3b=AutomationFramework[_0x3ae5b3(0x1a5)]();_0x164489=AutomationFramework[_0x3ae5b3(0x1d3)](_0x429f3b,PlaywrightDriverModule['KEY_TEST_ID'],'');}else _0x164489=TestInfo[_0x3ae5b3(0x1b2)](_0x41789e,_0x41789e['retry']);this[_0x3ae5b3(0x1c8)][_0x3ae5b3(0x169)](_0x3ae5b3(0x1cf)+_0x164489);}if(!_0x164489){this[_0x3ae5b3(0x1c8)][_0x3ae5b3(0x169)](_0x463e29[_0x3ae5b3(0x19f)]);return;}const _0x20c43b={[TestFrameworkConstants['KEY_FILE_SIZE']]:fs[_0x3ae5b3(0x175)](_0x1c3b24)[_0x3ae5b3(0x1b7)],[TestFrameworkConstants[_0x3ae5b3(0x187)]]:path[_0x3ae5b3(0x181)](_0x1c3b24),[TestFrameworkConstants[_0x3ae5b3(0x1c0)]]:_0x1c3b24,[TestFrameworkConstants[_0x3ae5b3(0x178)]]:_0x2a33c0?_0x463e29[_0x3ae5b3(0x1b6)]:_0x463e29[_0x3ae5b3(0x1a9)]};if(_0x1cd878){const _0x42eaf0=_0x4b5fa7[_0x3ae5b3(0x18d)]()['getTestFramework']();if(!_0x42eaf0){this['logger'][_0x3ae5b3(0x169)](_0x463e29[_0x3ae5b3(0x1b4)]);return;}const _0x28a4e6=_0x463e29[_0x3ae5b3(0x1b0)](require,_0x463e29[_0x3ae5b3(0x171)]),_0x1b42d0=_0x463e29[_0x3ae5b3(0x1bb)](require,_0x463e29['emQuc']),_0x254865=_0x42eaf0[_0x3ae5b3(0x1d5)](_0x28a4e6[_0x3ae5b3(0x194)],_0x1b42d0[_0x3ae5b3(0x193)]);if(!_0x254865){this['logger'][_0x3ae5b3(0x169)](_0x463e29[_0x3ae5b3(0x17b)]);return;}const _0x12044b=_0x254865[_0x3ae5b3(0x1bd)]()[_0x3ae5b3(0x19a)](_0x164489)||{},_0x4478da=_0x12044b[TestFrameworkConstants[_0x3ae5b3(0x1c1)]]||{},_0x46afe5={..._0x4478da};_0x46afe5[_0x1c3b24]=_0x20c43b;const _0x522bba=_0x46afe5,_0x52d723={[TestFrameworkConstants[_0x3ae5b3(0x1c1)]]:_0x522bba},_0x23e52f={};_0x23e52f[_0x164489]=_0x52d723,_0x254865[_0x3ae5b3(0x1c6)](_0x23e52f),this[_0x3ae5b3(0x1c8)][_0x3ae5b3(0x169)](_0x3ae5b3(0x1cb)+_0x164489+',\x20filepath:\x20'+_0x1c3b24);}else{const _0x25ee4e=TestInfo['getTestDetails'](_0x164489),_0x3f228a=_0x25ee4e[TestFrameworkConstants[_0x3ae5b3(0x1c1)]]||{};_0x3f228a[_0x1c3b24]=_0x20c43b,_0x25ee4e[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]=_0x3f228a,TestInfo[_0x3ae5b3(0x1ab)](_0x164489,_0x25ee4e),this[_0x3ae5b3(0x1c8)][_0x3ae5b3(0x169)](_0x3ae5b3(0x1a3)+_0x164489+_0x3ae5b3(0x18a)+_0x1c3b24);}this['logger'][_0x3ae5b3(0x169)](util['format'](_0x463e29['zjrNy'],_0x1c3b24));}catch(_0x464b22){this[_0x3ae5b3(0x1c8)][_0x3ae5b3(0x169)](util['format'](_0x463e29[_0x3ae5b3(0x166)],_0x464b22[_0x3ae5b3(0x1d1)]));}}static['clearAttachments'](){const _0x34a53b=a89_0x3e0440,_0x40a8d3={};_0x40a8d3[_0x34a53b(0x1dc)]='.browserstack',_0x40a8d3[_0x34a53b(0x16a)]=_0x34a53b(0x1be),_0x40a8d3['mQbKc']=_0x34a53b(0x177);const _0xbe420=_0x40a8d3,_0x4a0846=os[_0x34a53b(0x1d8)](),_0x20a8e0=path[_0x34a53b(0x1a1)](_0x4a0846,_0xbe420[_0x34a53b(0x1dc)]);if(!fs[_0x34a53b(0x17a)](_0x20a8e0))return;const _0x4f06fa=BrowserstackCLI[_0x34a53b(0x18d)]()[_0x34a53b(0x168)]['TestHubModule']?.[_0x34a53b(0x183)]?.[_0x34a53b(0x1a6)]()?.[_0x34a53b(0x1ae)],_0x5e0b13=_0x4f06fa?path[_0x34a53b(0x1a1)](_0x20a8e0,_0x4f06fa):null;if(!_0x5e0b13||!fs['existsSync'](_0x5e0b13)){this[_0x34a53b(0x1c8)][_0x34a53b(0x169)](util[_0x34a53b(0x1ca)](_0xbe420['tPOZu'],_0x4f06fa));return;}const _0x45ef01={};_0x45ef01['recursive']=!![],_0x45ef01[_0x34a53b(0x176)]=!![],fs[_0x34a53b(0x18c)](_0x5e0b13,_0x45ef01),this['logger']['debug'](util[_0x34a53b(0x1ca)](_0xbe420['mQbKc']));}}module[a89_0x3e0440(0x1e1)]=uploadAttachmentsManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a90_0x1cf0(){const _0x561d4a=['TScbt','XDgEe','length','push','vwcjY','VTTOb','debug','Vbbil','AssertionError','JLTdz','toString','getTestUUID','passed','../../../helpers/test-observability/error-handler.js','ypfkq','forEach','examples','YoqSC','createTestFrameworkData','2749392ctLfRw','result','unknown','status','sendHook','javascript','backtrace','configureGit','PWbOo','1547588HwpFKo','toISOString','cells','StaJQ','exception','6DVaAZy','../../../helpers/helper.js','testStepFinished','GjryI','HmltT','qczMJ','xEosM','feature','format','name','BUcKP','toLowerCase','testStepResult','HAgua','oKZjv','VLVKe','getHookResult','nanos','skipped','pwbQG','PQAji','includes','relative','failure','27145863NYfgrt','1597155Fzkage','GBzqX','failure_type','xvZUh','failureData','failure_data','path','PaBel','gMqEI','flatMap','winstonLogger','qGwpm','Exception\x20in\x20getHookRunEventData:\x20','test','_gitConfigured','UnhandledError','7903llFWMb','hook','BiWjT','GyxVo','AFTER_EACH','VlyYO','failure_reason','getHookRunEventData','scenario','ymTay','uri','../../../helpers/logger.js','vpXMx','SiNdS','HookRunFinished','vHalR','failed','lCbXJ','_gitConfigPath','strip-ansi','sourceReference','pending','getCucumberHookType','MSMqA','SKIPPED','hooks','tagExpression','failureType','dbJWg','tCzmn','timestamp','1422cPHdLT','filter','cucumber','tVLPB','match','uppUt','children','rule','map','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','duration_in_ms','find','testCaseFinished','AzSWa','tags','LjhwF','FDxrz','value','UVCoG','AGZRE','pickleStepId','mlGqS','createHookData','message','647188IPOXEo','astNodeIds','bstack','juzjz','getScenarioExamples','exports','AWupP','hookId','FAILED','695814tKRXHR','root','rFLCN','tableBody'];a90_0x1cf0=function(){return _0x561d4a;};return a90_0x1cf0();}function a90_0x5762(_0x108843,_0x32e356){const _0x1cf091=a90_0x1cf0();return a90_0x5762=function(_0x57622c,_0x21f4e3){_0x57622c=_0x57622c-0x153;let _0x2d2c92=_0x1cf091[_0x57622c];return _0x2d2c92;},a90_0x5762(_0x108843,_0x32e356);}const a90_0x51945b=a90_0x5762;(function(_0x46f26f,_0x84129c){const _0x411113=a90_0x5762,_0x3cdaa4=_0x46f26f();while(!![]){try{const _0x472908=-parseInt(_0x411113(0x1a1))/0x1+-parseInt(_0x411113(0x198))/0x2*(parseInt(_0x411113(0x1c6))/0x3)+-parseInt(_0x411113(0x1c1))/0x4+-parseInt(_0x411113(0x1df))/0x5+parseInt(_0x411113(0x180))/0x6*(-parseInt(_0x411113(0x161))/0x7)+-parseInt(_0x411113(0x1b8))/0x8+parseInt(_0x411113(0x1de))/0x9;if(_0x472908===_0x84129c)break;else _0x3cdaa4['push'](_0x3cdaa4['shift']());}catch(_0x17758d){_0x3cdaa4['push'](_0x3cdaa4['shift']());}}}(a90_0x1cf0,0x56d2e));const path=require(a90_0x51945b(0x157)),util=require('util'),{getGitMetaData,isUndefined,nestedKeyValue}=require(a90_0x51945b(0x1c7)),logger=require(a90_0x51945b(0x16c))[a90_0x51945b(0x15b)],{o11yClassErrorHandler}=require(a90_0x51945b(0x1b2)),TestInfo=require('../TestInfo.js'),hooksMap={};class CucumberUtils{constructor(){const _0x202942=a90_0x51945b;this[_0x202942(0x15f)]=![],this[_0x202942(0x173)]=null;}async[a90_0x51945b(0x1b7)](_0x5ee123,_0x1a7543,_0x44467b,_0xbf189,_0x416300,_0x153e67){const _0x3eccbc=a90_0x51945b,_0x2d2dbd={'gMqEI':function(_0x107217,_0x3e6c34){return _0x107217===_0x3e6c34;},'VlyYO':_0x3eccbc(0x1a0),'SiNdS':_0x3eccbc(0x171),'TkBWV':function(_0x168f9f,_0x3dfa53){return _0x168f9f===_0x3dfa53;},'PQAji':_0x3eccbc(0x179),'lvVsz':_0x3eccbc(0x1d8),'vpXMx':function(_0x2ceced,_0x117ef7){return _0x2ceced||_0x117ef7;},'AzSWa':function(_0x1e5f82,_0xef6e3c){return _0x1e5f82+_0xef6e3c;},'mlGqS':function(_0x2d2940,_0x4eaac9){return _0x2d2940+_0x4eaac9;},'tVLPB':_0x3eccbc(0x15e),'HAgua':_0x3eccbc(0x1bd),'ptvQJ':_0x3eccbc(0x182),'tCzmn':_0x3eccbc(0x176),'xEosM':_0x3eccbc(0x1b1),'AGZRE':function(_0x1491f6,_0x4f3758){return _0x1491f6!==_0x4f3758;},'oKZjv':function(_0x5bbb64,_0x15daa8){return _0x5bbb64/_0x15daa8;},'gsABY':function(_0x1cdc04,_0x55ab95){return _0x1cdc04===_0x55ab95;},'XDgEe':_0x3eccbc(0x174),'lCbXJ':function(_0x1abc8d,_0x19a723){return _0x1abc8d(_0x19a723);},'xvZUh':_0x3eccbc(0x1ba),'ypfkq':_0x3eccbc(0x1ad),'ymTay':_0x3eccbc(0x160)},{feature:_0x2e76c0,scenario:_0x226426,steps:_0x60a547,uuid:_0x28acf7,startedAt:_0x596d8f,finishedAt:_0x3f23f0}=_0x2d2dbd[_0x3eccbc(0x16d)](_0x5ee123,{}),_0x390bb4=this[_0x3eccbc(0x19c)](_0xbf189,_0x1a7543);await this[_0x3eccbc(0x1bf)]();const _0x25eab9=_0x390bb4?_0x2d2dbd['AzSWa'](_0x2d2dbd[_0x3eccbc(0x18d)](_0x2d2dbd[_0x3eccbc(0x195)](_0x1a7543['name'],'\x20('),_0x390bb4['join'](',\x20')),')'):_0x1a7543[_0x3eccbc(0x1cf)],_0x3d041b={'id':_0x416300,'uuid':_0x416300,'startedAt':_0x596d8f,'finishedAt':_0x3f23f0,'type':_0x2d2dbd[_0x3eccbc(0x183)],'body':{'lang':_0x2d2dbd[_0x3eccbc(0x1d3)],'code':null},'name':_0x25eab9,'scopes':[_0x2e76c0&&_0x2e76c0[_0x3eccbc(0x1cf)]?_0x2e76c0[_0x3eccbc(0x1cf)]:''],'tags':_0x1a7543[_0x3eccbc(0x18e)]?_0x1a7543['tags'][_0x3eccbc(0x188)](({name:_0x3bfdea})=>_0x3bfdea):[],'file_name':_0x1a7543[_0x3eccbc(0x16b)],'location':_0x1a7543['uri'],'vc_filepath':this[_0x3eccbc(0x173)]&&_0x1a7543['uri']?path[_0x3eccbc(0x1dc)](this['_gitConfigPath'],_0x1a7543[_0x3eccbc(0x16b)]):null,'framework':_0x2d2dbd['ptvQJ'],'result':_0x2d2dbd[_0x3eccbc(0x17e)],'meta':{'feature':_0x2e76c0,'scenario':_0x226426,'steps':_0x60a547,'examples':_0x390bb4},'customRerunParam':{'rerun_name':_0x25eab9}};if(_0x44467b[_0x3eccbc(0x18c)]&&_0x60a547){const _0x3bb694=_0x44467b[_0x3eccbc(0x18c)];let _0x30d616=_0x2d2dbd[_0x3eccbc(0x1cc)];_0x60a547['every'](_0x813d89=>{const _0xf0bf33=_0x3eccbc;if(_0x2d2dbd[_0xf0bf33(0x159)](_0x813d89[_0xf0bf33(0x1b9)],_0x2d2dbd[_0xf0bf33(0x166)]))return _0x30d616=_0x2d2dbd[_0xf0bf33(0x16e)],_0x3bb694[_0xf0bf33(0x1dd)]=_0x813d89[_0xf0bf33(0x1dd)],_0x3bb694[_0xf0bf33(0x17c)]=_0x813d89[_0xf0bf33(0x17c)],![];else{if(_0x2d2dbd['TkBWV'](_0x813d89[_0xf0bf33(0x1b9)],_0x2d2dbd[_0xf0bf33(0x1da)]))return _0x30d616=_0x2d2dbd['lvVsz'],![];}return!![];}),_0x3d041b['finishedAt']=new Date()['toISOString'](),_0x3d041b['result']=_0x30d616;_0x3bb694[_0x3eccbc(0x17f)]&&_0x2d2dbd[_0x3eccbc(0x193)](_0x3bb694[_0x3eccbc(0x17f)][_0x3eccbc(0x1d7)],undefined)?_0x3d041b[_0x3eccbc(0x18a)]=_0x2d2dbd[_0x3eccbc(0x1d4)](_0x3bb694[_0x3eccbc(0x17f)][_0x3eccbc(0x1d7)],0xf4240):_0x3d041b[_0x3eccbc(0x18a)]=undefined;if(_0x2d2dbd['gsABY'](_0x30d616,_0x2d2dbd[_0x3eccbc(0x16e)])){const {default:_0x498270}=await import(_0x2d2dbd[_0x3eccbc(0x1a6)]);_0x3d041b[_0x3eccbc(0x1dd)]=[{'backtrace':[_0x3bb694[_0x3eccbc(0x1dd)]?_0x2d2dbd['lCbXJ'](_0x498270,_0x3bb694[_0x3eccbc(0x1dd)]):_0x2d2dbd[_0x3eccbc(0x154)]]}],_0x3d041b[_0x3eccbc(0x167)]=_0x3bb694[_0x3eccbc(0x1dd)]?_0x2d2dbd[_0x3eccbc(0x172)](_0x498270,_0x3bb694[_0x3eccbc(0x1dd)]):_0x3bb694['message'],_0x3bb694[_0x3eccbc(0x17c)]&&(_0x3d041b[_0x3eccbc(0x153)]=_0x3bb694['failureType'][_0x3eccbc(0x184)](/AssertError/)?_0x2d2dbd[_0x3eccbc(0x1b3)]:_0x2d2dbd[_0x3eccbc(0x16a)]);}}return _0x3d041b;}['getHookRunEventData'](_0x4fe440,_0x29035a,_0x1e40c6,_0x22ec6b,_0x208b2c,_0x582333){const _0x26bbf0=a90_0x51945b,_0xb57247={'QGJYy':function(_0x27ce7b,_0x346e3d){return _0x27ce7b===_0x346e3d;},'qGwpm':_0x26bbf0(0x16f),'YoqSC':function(_0x3cb3d6,_0x47d3d0,_0x11993c){return _0x3cb3d6(_0x47d3d0,_0x11993c);},'eXhYY':'sourceReference','zXTOi':'uri','Vbbil':_0x26bbf0(0x176),'MSMqA':_0x26bbf0(0x162),'VLVKe':_0x26bbf0(0x1bd),'GBzqX':_0x26bbf0(0x1cd),'VTTOb':'name','StaJQ':_0x26bbf0(0x182)};try{if(_0xb57247['QGJYy'](_0x1e40c6,_0xb57247[_0x26bbf0(0x15c)])){const _0x514b52=new Date()[_0x26bbf0(0x1c2)](),_0x228e7=hooksMap[_0x29035a];if(!_0x228e7)return;const _0x25492a=_0x228e7[_0x26bbf0(0x18b)](_0x55b857=>_0x55b857['uuid']===_0x22ec6b['id']);if(!_0x25492a)return;const _0x1ccb9f=this[_0x26bbf0(0x1d6)](_0x4fe440,_0x29035a);_0x25492a[_0x26bbf0(0x1b9)]=_0x1ccb9f['status'],_0x25492a['finished_at']=_0x514b52,_0x25492a['failure_type']=_0x1ccb9f['failureType'];const _0x11748b={};return _0x11748b[_0x26bbf0(0x1be)]=_0x1ccb9f[_0x26bbf0(0x155)],_0x25492a[_0x26bbf0(0x156)]=[_0x11748b],_0x25492a;}const _0x207db2=TestInfo[_0x26bbf0(0x1b0)](_0x29035a),_0x3dc698=_0x4fe440[_0x26bbf0(0x17a)][_0x26bbf0(0x18b)](_0x390f84=>_0x390f84['id']===_0x22ec6b[_0x26bbf0(0x19f)]),_0x313418=_0xb57247[_0x26bbf0(0x1b6)](nestedKeyValue,_0x3dc698,[_0xb57247['eXhYY'],_0xb57247['zXTOi']]),_0x36bea0=new Date()['toISOString'](),_0x376cec=_0xb57247[_0x26bbf0(0x1ac)],_0x2319f2=_0x3dc698[_0x26bbf0(0x17b)]?_0x3dc698[_0x26bbf0(0x17b)]['split']('\x20')[_0x26bbf0(0x181)](_0x398576=>_0x398576[_0x26bbf0(0x1db)]('@')):[],_0x3d23e2={'uuid':_0x22ec6b['id'],'type':_0xb57247[_0x26bbf0(0x178)],'hook_type':_0x582333,'name':_0x3dc698[_0x26bbf0(0x1cf)],'body':{'lang':_0xb57247[_0x26bbf0(0x1d5)],'code':null},'tags':_0x2319f2,'test_run_id':_0x207db2,'scope':_0xb57247[_0x26bbf0(0x1b6)](nestedKeyValue,_0x208b2c,[_0xb57247[_0x26bbf0(0x1e0)],_0xb57247[_0x26bbf0(0x1aa)]]),'scopes':[_0xb57247[_0x26bbf0(0x1b6)](nestedKeyValue,_0x208b2c,[_0xb57247[_0x26bbf0(0x1e0)],_0xb57247[_0x26bbf0(0x1aa)]])||''],'file_name':_0x313418,'location':_0x313418,'vc_filepath':this[_0x26bbf0(0x173)]?path[_0x26bbf0(0x1dc)](this['_gitConfigPath'],_0x313418):null,'result':_0x376cec,'started_at':_0x36bea0,'framework':_0xb57247[_0x26bbf0(0x1c4)]};return _0x3d23e2;}catch(_0x174b05){logger['debug'](_0x26bbf0(0x15d)+util[_0x26bbf0(0x1ce)](_0x174b05)+'\x20');}}async[a90_0x51945b(0x196)](_0x533b47,_0x174e47,_0x2e16d8,_0x1a37c6,_0x3e8302,_0x329d9e){const _0x1c8650=a90_0x51945b,_0x39df82={'uppUt':function(_0xcef968,_0x8d52dc){return _0xcef968===_0x8d52dc;},'HmltT':'HookRunStarted','rFLCN':function(_0x5e24b6,_0x484cf4,_0x1bc548){return _0x5e24b6(_0x484cf4,_0x1bc548);},'LjhwF':_0x1c8650(0x175),'TScbt':_0x1c8650(0x16b),'BiWjT':_0x1c8650(0x189),'pwbQG':_0x1c8650(0x19a)};try{const _0x5bfc59=_0x1a37c6[_0x1c8650(0x18b)](_0x286f37=>_0x286f37['id']===_0x3e8302);if(!_0x5bfc59[_0x1c8650(0x19f)])return;const _0x262b10=this[_0x1c8650(0x177)](_0x1a37c6,_0x5bfc59),_0x1598cf=this[_0x1c8650(0x168)](_0x533b47,_0x174e47,_0x2e16d8,_0x5bfc59,_0x329d9e,_0x262b10);if(!_0x1598cf)return;_0x39df82[_0x1c8650(0x185)](_0x2e16d8,_0x39df82[_0x1c8650(0x1ca)])&&(hooksMap[_0x174e47]?hooksMap[_0x174e47][_0x1c8650(0x1a8)](_0x1598cf):hooksMap[_0x174e47]=[_0x1598cf]);const _0x3fa147=_0x533b47['hooks'][_0x1c8650(0x18b)](_0x4aca88=>_0x4aca88['id']===_0x5bfc59['hookId']),_0x284a46=_0x39df82[_0x1c8650(0x1a3)](nestedKeyValue,_0x3fa147,[_0x39df82[_0x1c8650(0x18f)],_0x39df82[_0x1c8650(0x1a5)]]);if(!_0x284a46)return;else{if(_0x284a46[_0x1c8650(0x1db)](_0x39df82[_0x1c8650(0x163)]))return;}if(_0x39df82['uppUt'](_0x1598cf[_0x1c8650(0x1cf)],_0x39df82[_0x1c8650(0x1d9)]))return;return _0x1598cf;}catch(_0x2524b0){logger[_0x1c8650(0x1ab)]('Exception\x20in\x20createHookData:\x20'+util[_0x1c8650(0x1ce)](_0x2524b0)+'\x20');}}['getHookResult'](_0xabdac,_0x2a5028){const _0x2b1df4=a90_0x51945b,_0x2ac9b7={};_0x2ac9b7[_0x2b1df4(0x1a9)]=function(_0x1ed9f7,_0x24ac0c){return _0x1ed9f7===_0x24ac0c;},_0x2ac9b7[_0x2b1df4(0x1ae)]=_0x2b1df4(0x171),_0x2ac9b7['AWupP']=function(_0x57d17e,_0x15082d){return _0x57d17e===_0x15082d;},_0x2ac9b7[_0x2b1df4(0x1d0)]=function(_0x42b18f,_0x5268a0){return _0x42b18f===_0x5268a0;},_0x2ac9b7[_0x2b1df4(0x19b)]=_0x2b1df4(0x160),_0x2ac9b7[_0x2b1df4(0x170)]='AssertionError',_0x2ac9b7[_0x2b1df4(0x1c9)]=function(_0x331f06,_0x593d67){return _0x331f06||_0x593d67;};const _0x2b2baf=_0x2ac9b7,_0x41b8bb=_0xabdac[_0x2b1df4(0x1c8)][_0x2a5028][_0x2b1df4(0x1d2)];let _0x2023a4,_0x4bf3f8;return _0x41b8bb&&_0x2b2baf[_0x2b1df4(0x1a9)](_0x41b8bb[_0x2b1df4(0x1bb)][_0x2b1df4(0x1af)]()['toLowerCase'](),_0x2b2baf[_0x2b1df4(0x1ae)])&&(_0x2023a4=_0x2b2baf[_0x2b1df4(0x19e)](_0x41b8bb[_0x2b1df4(0x1c5)],undefined)?_0x41b8bb['message']:_0x41b8bb['exception']['message'],_0x4bf3f8=_0x2b2baf[_0x2b1df4(0x1d0)](_0x41b8bb[_0x2b1df4(0x1c5)],undefined)?_0x2b2baf[_0x2b1df4(0x19b)]:_0x41b8bb[_0x2b1df4(0x197)][_0x2b1df4(0x184)](/Assert/)?_0x2b2baf[_0x2b1df4(0x170)]:_0x2b2baf[_0x2b1df4(0x19b)]),{'status':_0x41b8bb[_0x2b1df4(0x1bb)][_0x2b1df4(0x1d1)](),'failureType':_0x2b2baf[_0x2b1df4(0x1c9)](_0x4bf3f8,null),'failureData':!_0x2023a4?null:[_0x2023a4]};}[a90_0x51945b(0x177)](_0xaaf57b,_0x400df2){const _0x45ab02=a90_0x51945b,_0x5ce965={};_0x5ce965[_0x45ab02(0x164)]=function(_0x3865a8,_0x433d1c){return _0x3865a8===_0x433d1c;},_0x5ce965[_0x45ab02(0x192)]=_0x45ab02(0x165),_0x5ce965[_0x45ab02(0x190)]='BEFORE_EACH';const _0x4b568a=_0x5ce965;let _0x50799e=![];for(const _0x1b9209 of _0xaaf57b){_0x1b9209[_0x45ab02(0x194)]&&(_0x50799e=!![]);if(_0x4b568a['GyxVo'](_0x400df2['id'],_0x1b9209['id']))return _0x50799e?_0x4b568a[_0x45ab02(0x192)]:_0x4b568a[_0x45ab02(0x190)];}}['getScenarioExamples']=(_0x14613c,_0x2ec64d)=>{const _0x30b81a=a90_0x51945b,_0x426280={};_0x426280['PaBel']=function(_0x54873c,_0x485d3c){return _0x54873c===_0x485d3c;},_0x426280[_0x30b81a(0x1cb)]=function(_0x393562,_0x29ff03){return _0x393562>_0x29ff03;};const _0x47b76a=_0x426280;if(!(_0x2ec64d[_0x30b81a(0x199)]&&_0x47b76a[_0x30b81a(0x1cb)](_0x2ec64d['astNodeIds'][_0x30b81a(0x1a7)],0x1)))return;const _0x16e5f8=_0x2ec64d[_0x30b81a(0x199)][0x0],_0x5d4875=_0x2ec64d['astNodeIds'][0x1],_0x2c23ee=_0x14613c['feature']&&_0x14613c['feature'][_0x30b81a(0x186)]?_0x14613c['feature'][_0x30b81a(0x186)]:undefined;let _0x53fd2c=[];_0x2c23ee&&_0x2c23ee[_0x30b81a(0x1b4)](_0x2297b4=>{const _0x279de7=_0x30b81a,_0x1cd32f={'dbJWg':function(_0xceff2c,_0x375941){const _0x5141e1=a90_0x5762;return _0x47b76a[_0x5141e1(0x158)](_0xceff2c,_0x375941);}};if(_0x2297b4['rule'])_0x2297b4[_0x279de7(0x187)]['children'][_0x279de7(0x1b4)](_0x2f86c5=>{const _0x5a76a6=_0x279de7;if(_0x2f86c5[_0x5a76a6(0x169)]&&_0x1cd32f[_0x5a76a6(0x17d)](_0x2f86c5[_0x5a76a6(0x169)]['id'],_0x16e5f8)&&_0x2f86c5[_0x5a76a6(0x169)][_0x5a76a6(0x1b5)]){const _0xa6fc30=_0x2f86c5[_0x5a76a6(0x169)][_0x5a76a6(0x1b5)]['flatMap'](_0x2b44e9=>_0x2b44e9[_0x5a76a6(0x1a4)])[_0x5a76a6(0x18b)](_0x2416b2=>_0x2416b2['id']===_0x5d4875);let _0x365d8d;_0xa6fc30&&_0xa6fc30[_0x5a76a6(0x1c3)]?_0x365d8d=_0xa6fc30[_0x5a76a6(0x1c3)][_0x5a76a6(0x188)](_0x425d9b=>_0x425d9b['value']):_0x365d8d=[],_0x365d8d&&(_0x53fd2c=_0x365d8d);}});else{if(_0x2297b4[_0x279de7(0x169)]&&_0x47b76a[_0x279de7(0x158)](_0x2297b4['scenario']['id'],_0x16e5f8)&&_0x2297b4[_0x279de7(0x169)][_0x279de7(0x1b5)]){const _0x170e82=_0x2297b4[_0x279de7(0x169)][_0x279de7(0x1b5)][_0x279de7(0x15a)](_0x29489a=>_0x29489a[_0x279de7(0x1a4)])[_0x279de7(0x18b)](_0x2fea21=>_0x2fea21['id']===_0x5d4875);let _0x32efb2;_0x170e82&&_0x170e82[_0x279de7(0x1c3)]?_0x32efb2=_0x170e82[_0x279de7(0x1c3)][_0x279de7(0x188)](_0x51ef01=>_0x51ef01[_0x279de7(0x191)]):_0x32efb2=[],_0x32efb2&&(_0x53fd2c=_0x32efb2);}}});if(_0x53fd2c[_0x30b81a(0x1a7)])return _0x53fd2c;return;};async[a90_0x51945b(0x1bf)](){const _0x37daa4=a90_0x51945b,_0x17cac3={'PWbOo':function(_0x4bec70){return _0x4bec70();}};if(this['_gitConfigured'])return this[_0x37daa4(0x173)];const _0x2805ad=await _0x17cac3[_0x37daa4(0x1c0)](getGitMetaData);_0x2805ad&&(this[_0x37daa4(0x173)]=_0x2805ad[_0x37daa4(0x1a2)]),this[_0x37daa4(0x15f)]=!![];}}module[a90_0x51945b(0x19d)]=o11yClassErrorHandler(CucumberUtils,[a90_0x51945b(0x1bf),'getScenarioExamples',a90_0x51945b(0x177),a90_0x51945b(0x1d6),a90_0x51945b(0x1bc),a90_0x51945b(0x168),'sendTestRunEventForCucumber',a90_0x51945b(0x1b7)]);
|
|
1
|
+
const a90_0x2f14dc=a90_0x4bdd;function a90_0x57e1(){const _0x117290=['includes','7tjfrAp','createHookData','Nhvqm','hVZCA','NnMpl','relative','369838MoKPeh','pending','split','CQdoL','18XinleH','unknown','AssertionError','find','push','format','exception','1070063lipCiF','Sisvx','qVNKu','ThgaZ','flatMap','SQOGQ','Exception\x20in\x20getHookRunEventData:\x20','FAILED','BEFORE_EACH','uri','examples','sourceReference','strip-ansi','sendHook','join','failureData','astNodeIds','uuid','filter','_gitConfigPath','nanos','failure_reason','JTAly','clhvi','failureType','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','EjiBR','message','cells','getTestUUID','tisNI','tIqoN','map','788335qwDKQG','HookRunFinished','HnpMX','tags','../../../helpers/logger.js','value','gWSzp','oAXqB','duration_in_ms','3620639JhwFet','winstonLogger','finishedAt','HjBaf','getCucumberHookType','sendTestRunEventForCucumber','exports','Frtcj','130YhBdIj','UnhandledError','wBwJG','every','YTqKL','ZFfYX','../TestInfo.js','hook','toISOString','RjTFj','children','scenario','vNrad','pickleStepId','65790HHRiGT','zjqLW','getScenarioExamples','HjPtC','hookId','SKIPPED','../../../helpers/test-observability/error-handler.js','_gitConfigured','KlUes','syklW','finished_at','STlRI','createTestFrameworkData','backtrace','result','BWvVO','BpsGX','ONGAD','failure_data','eqakk','status','SfglP','testCaseFinished','toString','DBQwT','seLCf','3292024mmovqr','FyuOx','debug','feature','NzArj','WHuBC','PpmQF','bstack','723476fOrwiT','forEach','skipped','javascript','hooks','Ixjcg','Exception\x20in\x20createHookData:\x20','KWkpt','15padafr','failure_type','util','toLowerCase','rule','getHookResult','timestamp','tagExpression','HKgWW','length','VRKnQ','failed','path','tableBody','testStepFinished','sEMch','match','configureGit','failure','name','JeSYT'];a90_0x57e1=function(){return _0x117290;};return a90_0x57e1();}function a90_0x4bdd(_0x57c4d9,_0x268185){const _0x57e1c4=a90_0x57e1();return a90_0x4bdd=function(_0x4bdd1a,_0x131847){_0x4bdd1a=_0x4bdd1a-0x175;let _0x56c221=_0x57e1c4[_0x4bdd1a];return _0x56c221;},a90_0x4bdd(_0x57c4d9,_0x268185);}(function(_0x3b5001,_0x5cf28b){const _0x423843=a90_0x4bdd,_0x6cf27b=_0x3b5001();while(!![]){try{const _0x1953aa=-parseInt(_0x423843(0x1aa))/0x1+-parseInt(_0x423843(0x19f))/0x2+-parseInt(_0x423843(0x183))/0x3*(-parseInt(_0x423843(0x17b))/0x4)+parseInt(_0x423843(0x1cb))/0x5*(parseInt(_0x423843(0x1a3))/0x6)+parseInt(_0x423843(0x199))/0x7*(parseInt(_0x423843(0x204))/0x8)+-parseInt(_0x423843(0x1ea))/0x9*(parseInt(_0x423843(0x1dc))/0xa)+parseInt(_0x423843(0x1d4))/0xb;if(_0x1953aa===_0x5cf28b)break;else _0x6cf27b['push'](_0x6cf27b['shift']());}catch(_0x393957){_0x6cf27b['push'](_0x6cf27b['shift']());}}}(a90_0x57e1,0xbb7f2));const path=require(a90_0x2f14dc(0x18f)),util=require(a90_0x2f14dc(0x185)),{getGitMetaData,isUndefined,nestedKeyValue}=require('../../../helpers/helper.js'),logger=require(a90_0x2f14dc(0x1cf))[a90_0x2f14dc(0x1d5)],{o11yClassErrorHandler}=require(a90_0x2f14dc(0x1f0)),TestInfo=require(a90_0x2f14dc(0x1e2)),hooksMap={};class CucumberUtils{constructor(){const _0x487c3a=a90_0x2f14dc;this[_0x487c3a(0x1f1)]=![],this[_0x487c3a(0x1bd)]=null;}async[a90_0x2f14dc(0x1f6)](_0x2c6564,_0x4bf3ca,_0x3eeaa5,_0x2dd270,_0xdb22f7,_0x140c63){const _0x26a57c=a90_0x2f14dc,_0x3e6bbe={'sEMch':function(_0x300993,_0xfc67a0){return _0x300993===_0xfc67a0;},'QVnhi':_0x26a57c(0x1b1),'vNrad':_0x26a57c(0x18e),'EjiBR':_0x26a57c(0x1ef),'tisNI':_0x26a57c(0x17d),'VRKnQ':function(_0x3911bc,_0x6e2c92){return _0x3911bc||_0x6e2c92;},'Ixjcg':function(_0x408ab9,_0x4567eb){return _0x408ab9+_0x4567eb;},'SQOGQ':function(_0x50bc0e,_0xfc23f1){return _0x50bc0e+_0xfc23f1;},'wRQWI':'test','JeSYT':_0x26a57c(0x17e),'hVZCA':'cucumber','Sisvx':'pending','JTAly':'passed','NnMpl':function(_0x47f58d,_0x43180f){return _0x47f58d!==_0x43180f;},'syklW':function(_0x43c480,_0x3fa8b9){return _0x43c480/_0x3fa8b9;},'YTqKL':_0x26a57c(0x1b6),'DBQwT':function(_0xd8c9cf,_0x28c2d2){return _0xd8c9cf(_0x28c2d2);},'gWSzp':_0x26a57c(0x1a4),'eqakk':_0x26a57c(0x1a5),'zjqLW':_0x26a57c(0x1dd)},{feature:_0x39edd8,scenario:_0x1b0120,steps:_0x260853,uuid:_0x3bcabd,startedAt:_0x7e5b20,finishedAt:_0x35df99}=_0x3e6bbe[_0x26a57c(0x18d)](_0x2c6564,{}),_0x15f53a=this[_0x26a57c(0x1ec)](_0x2dd270,_0x4bf3ca);await this[_0x26a57c(0x194)]();const _0x49de77=_0x15f53a?_0x3e6bbe[_0x26a57c(0x180)](_0x3e6bbe[_0x26a57c(0x1af)](_0x3e6bbe['SQOGQ'](_0x4bf3ca[_0x26a57c(0x196)],'\x20('),_0x15f53a[_0x26a57c(0x1b8)](',\x20')),')'):_0x4bf3ca[_0x26a57c(0x196)],_0x48a7cd={'id':_0xdb22f7,'uuid':_0xdb22f7,'startedAt':_0x7e5b20,'finishedAt':_0x35df99,'type':_0x3e6bbe['wRQWI'],'body':{'lang':_0x3e6bbe[_0x26a57c(0x197)],'code':null},'name':_0x49de77,'scopes':[_0x39edd8&&_0x39edd8[_0x26a57c(0x196)]?_0x39edd8[_0x26a57c(0x196)]:''],'tags':_0x4bf3ca['tags']?_0x4bf3ca[_0x26a57c(0x1ce)]['map'](({name:_0x59c2c8})=>_0x59c2c8):[],'file_name':_0x4bf3ca[_0x26a57c(0x1b3)],'location':_0x4bf3ca[_0x26a57c(0x1b3)],'vc_filepath':this[_0x26a57c(0x1bd)]&&_0x4bf3ca[_0x26a57c(0x1b3)]?path[_0x26a57c(0x19e)](this['_gitConfigPath'],_0x4bf3ca[_0x26a57c(0x1b3)]):null,'framework':_0x3e6bbe[_0x26a57c(0x19c)],'result':_0x3e6bbe[_0x26a57c(0x1ab)],'meta':{'feature':_0x39edd8,'scenario':_0x1b0120,'steps':_0x260853,'examples':_0x15f53a},'customRerunParam':{'rerun_name':_0x49de77}};if(_0x3eeaa5[_0x26a57c(0x200)]&&_0x260853){const _0x187eec=_0x3eeaa5['testCaseFinished'];let _0x55643e=_0x3e6bbe[_0x26a57c(0x1c0)];_0x260853[_0x26a57c(0x1df)](_0x367027=>{const _0x140a2a=_0x26a57c;if(_0x3e6bbe[_0x140a2a(0x192)](_0x367027[_0x140a2a(0x1f8)],_0x3e6bbe['QVnhi']))return _0x55643e=_0x3e6bbe[_0x140a2a(0x1e8)],_0x187eec[_0x140a2a(0x195)]=_0x367027[_0x140a2a(0x195)],_0x187eec[_0x140a2a(0x1c2)]=_0x367027[_0x140a2a(0x1c2)],![];else{if(_0x3e6bbe[_0x140a2a(0x192)](_0x367027[_0x140a2a(0x1f8)],_0x3e6bbe[_0x140a2a(0x1c4)]))return _0x55643e=_0x3e6bbe[_0x140a2a(0x1c8)],![];}return!![];}),_0x48a7cd[_0x26a57c(0x1d6)]=new Date()[_0x26a57c(0x1e4)](),_0x48a7cd[_0x26a57c(0x1f8)]=_0x55643e;_0x187eec[_0x26a57c(0x189)]&&_0x3e6bbe[_0x26a57c(0x19d)](_0x187eec[_0x26a57c(0x189)][_0x26a57c(0x1be)],undefined)?_0x48a7cd['duration_in_ms']=_0x3e6bbe[_0x26a57c(0x1f3)](_0x187eec[_0x26a57c(0x189)][_0x26a57c(0x1be)],0xf4240):_0x48a7cd[_0x26a57c(0x1d3)]=undefined;if(_0x3e6bbe[_0x26a57c(0x192)](_0x55643e,_0x3e6bbe['vNrad'])){const {default:_0x1f3a3f}=await import(_0x3e6bbe[_0x26a57c(0x1e0)]);_0x48a7cd[_0x26a57c(0x195)]=[{'backtrace':[_0x187eec[_0x26a57c(0x195)]?_0x3e6bbe[_0x26a57c(0x202)](_0x1f3a3f,_0x187eec[_0x26a57c(0x195)]):_0x3e6bbe[_0x26a57c(0x1d1)]]}],_0x48a7cd[_0x26a57c(0x1bf)]=_0x187eec['failure']?_0x3e6bbe[_0x26a57c(0x202)](_0x1f3a3f,_0x187eec[_0x26a57c(0x195)]):_0x187eec[_0x26a57c(0x1c5)],_0x187eec[_0x26a57c(0x1c2)]&&(_0x48a7cd[_0x26a57c(0x184)]=_0x187eec[_0x26a57c(0x1c2)][_0x26a57c(0x193)](/AssertError/)?_0x3e6bbe[_0x26a57c(0x1fd)]:_0x3e6bbe[_0x26a57c(0x1eb)]);}}return _0x48a7cd;}['getHookRunEventData'](_0x4073ca,_0x96047d,_0x2551e2,_0x38ca44,_0x4c4a45,_0x27e83d){const _0x259e79=a90_0x2f14dc,_0x86c6d6={'CQdoL':function(_0x51f695,_0x577a93){return _0x51f695===_0x577a93;},'uyXew':_0x259e79(0x1cc),'clhvi':function(_0x252f21,_0x2438cd,_0x578a57){return _0x252f21(_0x2438cd,_0x578a57);},'oIHaZ':_0x259e79(0x1b5),'tIqoN':'uri','JBPLG':_0x259e79(0x1a0),'KsfNn':_0x259e79(0x1e3),'FyuOx':_0x259e79(0x17e),'wBwJG':_0x259e79(0x176),'NzArj':_0x259e79(0x196),'Nhvqm':'cucumber'};try{if(_0x86c6d6[_0x259e79(0x1a2)](_0x2551e2,_0x86c6d6['uyXew'])){const _0x5381d8=new Date()[_0x259e79(0x1e4)](),_0x2af6ec=hooksMap[_0x96047d];if(!_0x2af6ec)return;const _0x5bab6e=_0x2af6ec[_0x259e79(0x1a6)](_0x232d14=>_0x232d14[_0x259e79(0x1bb)]===_0x38ca44['id']);if(!_0x5bab6e)return;const _0x29c5d0=this[_0x259e79(0x188)](_0x4073ca,_0x96047d);_0x5bab6e['result']=_0x29c5d0[_0x259e79(0x1fe)],_0x5bab6e[_0x259e79(0x1f4)]=_0x5381d8,_0x5bab6e[_0x259e79(0x184)]=_0x29c5d0[_0x259e79(0x1c2)];const _0xab8863={};return _0xab8863[_0x259e79(0x1f7)]=_0x29c5d0[_0x259e79(0x1b9)],_0x5bab6e[_0x259e79(0x1fc)]=[_0xab8863],_0x5bab6e;}const _0x384b58=TestInfo[_0x259e79(0x1c7)](_0x96047d),_0x2aeffa=_0x4073ca[_0x259e79(0x17f)]['find'](_0x58c624=>_0x58c624['id']===_0x38ca44[_0x259e79(0x1ee)]),_0x255b4a=_0x86c6d6[_0x259e79(0x1c1)](nestedKeyValue,_0x2aeffa,[_0x86c6d6['oIHaZ'],_0x86c6d6[_0x259e79(0x1c9)]]),_0x48d26f=new Date()[_0x259e79(0x1e4)](),_0x589a8e=_0x86c6d6['JBPLG'],_0x85296c=_0x2aeffa[_0x259e79(0x18a)]?_0x2aeffa['tagExpression'][_0x259e79(0x1a1)]('\x20')[_0x259e79(0x1bc)](_0x27a969=>_0x27a969[_0x259e79(0x198)]('@')):[],_0x403985={'uuid':_0x38ca44['id'],'type':_0x86c6d6['KsfNn'],'hook_type':_0x27e83d,'name':_0x2aeffa[_0x259e79(0x196)],'body':{'lang':_0x86c6d6[_0x259e79(0x205)],'code':null},'tags':_0x85296c,'test_run_id':_0x384b58,'scope':_0x86c6d6[_0x259e79(0x1c1)](nestedKeyValue,_0x4c4a45,[_0x86c6d6['wBwJG'],_0x86c6d6[_0x259e79(0x177)]]),'scopes':[_0x86c6d6[_0x259e79(0x1c1)](nestedKeyValue,_0x4c4a45,[_0x86c6d6[_0x259e79(0x1de)],_0x86c6d6[_0x259e79(0x177)]])||''],'file_name':_0x255b4a,'location':_0x255b4a,'vc_filepath':this[_0x259e79(0x1bd)]?path[_0x259e79(0x19e)](this[_0x259e79(0x1bd)],_0x255b4a):null,'result':_0x589a8e,'started_at':_0x48d26f,'framework':_0x86c6d6[_0x259e79(0x19b)]};return _0x403985;}catch(_0x55fb6a){logger['debug'](_0x259e79(0x1b0)+util[_0x259e79(0x1a8)](_0x55fb6a)+'\x20');}}async[a90_0x2f14dc(0x19a)](_0x1b86a1,_0x5dd54a,_0x32d10a,_0x16f537,_0x3c489d,_0x1b3469){const _0x1138b9=a90_0x2f14dc,_0x528da7={'KlUes':function(_0x3501e7,_0x1b3548){return _0x3501e7===_0x1b3548;},'qVNKu':'HookRunStarted','HnpMX':function(_0x232c2d,_0x1fe1c1,_0x35f7fa){return _0x232c2d(_0x1fe1c1,_0x35f7fa);},'RjTFj':_0x1138b9(0x1b5),'ZFfYX':_0x1138b9(0x1b3),'SfglP':_0x1138b9(0x1c3),'crHOe':function(_0x34eb52,_0x54d471){return _0x34eb52===_0x54d471;},'ONGAD':_0x1138b9(0x17a)};try{const _0x17b31e=_0x16f537[_0x1138b9(0x1a6)](_0xf4d396=>_0xf4d396['id']===_0x3c489d);if(!_0x17b31e[_0x1138b9(0x1ee)])return;const _0x3a1514=this['getCucumberHookType'](_0x16f537,_0x17b31e),_0x4e15c8=this['getHookRunEventData'](_0x1b86a1,_0x5dd54a,_0x32d10a,_0x17b31e,_0x1b3469,_0x3a1514);if(!_0x4e15c8)return;_0x528da7[_0x1138b9(0x1f2)](_0x32d10a,_0x528da7[_0x1138b9(0x1ac)])&&(hooksMap[_0x5dd54a]?hooksMap[_0x5dd54a][_0x1138b9(0x1a7)](_0x4e15c8):hooksMap[_0x5dd54a]=[_0x4e15c8]);const _0x5dd29e=_0x1b86a1[_0x1138b9(0x17f)][_0x1138b9(0x1a6)](_0x26a17e=>_0x26a17e['id']===_0x17b31e[_0x1138b9(0x1ee)]),_0x1ff5a4=_0x528da7[_0x1138b9(0x1cd)](nestedKeyValue,_0x5dd29e,[_0x528da7[_0x1138b9(0x1e5)],_0x528da7[_0x1138b9(0x1e1)]]);if(!_0x1ff5a4)return;else{if(_0x1ff5a4[_0x1138b9(0x198)](_0x528da7[_0x1138b9(0x1ff)]))return;}if(_0x528da7['crHOe'](_0x4e15c8['name'],_0x528da7[_0x1138b9(0x1fb)]))return;return _0x4e15c8;}catch(_0x2b4b98){logger[_0x1138b9(0x175)](_0x1138b9(0x181)+util[_0x1138b9(0x1a8)](_0x2b4b98)+'\x20');}}[a90_0x2f14dc(0x188)](_0x3f2b0a,_0x99bc5){const _0x2fd5f0=a90_0x2f14dc,_0x4340fa={};_0x4340fa['MxpBM']=function(_0x71f9c0,_0x36a628){return _0x71f9c0===_0x36a628;},_0x4340fa[_0x2fd5f0(0x1db)]=_0x2fd5f0(0x18e),_0x4340fa[_0x2fd5f0(0x1ed)]=function(_0x4ae277,_0x30af5e){return _0x4ae277===_0x30af5e;},_0x4340fa[_0x2fd5f0(0x1f9)]=function(_0x1e55d6,_0x7cb81a){return _0x1e55d6===_0x7cb81a;},_0x4340fa[_0x2fd5f0(0x1f5)]=_0x2fd5f0(0x1dd),_0x4340fa[_0x2fd5f0(0x182)]='AssertionError',_0x4340fa[_0x2fd5f0(0x1ad)]=function(_0xc4a8bc,_0x1cc369){return _0xc4a8bc||_0x1cc369;};const _0x229732=_0x4340fa,_0x4f7dbb=_0x3f2b0a[_0x2fd5f0(0x191)][_0x99bc5]['testStepResult'];let _0x58b68f,_0x5464bd;return _0x4f7dbb&&_0x229732['MxpBM'](_0x4f7dbb[_0x2fd5f0(0x1fe)][_0x2fd5f0(0x201)]()[_0x2fd5f0(0x186)](),_0x229732[_0x2fd5f0(0x1db)])&&(_0x58b68f=_0x229732['HjPtC'](_0x4f7dbb[_0x2fd5f0(0x1a9)],undefined)?_0x4f7dbb['message']:_0x4f7dbb[_0x2fd5f0(0x1a9)][_0x2fd5f0(0x1c5)],_0x5464bd=_0x229732['BWvVO'](_0x4f7dbb[_0x2fd5f0(0x1a9)],undefined)?_0x229732[_0x2fd5f0(0x1f5)]:_0x4f7dbb[_0x2fd5f0(0x1c5)][_0x2fd5f0(0x193)](/Assert/)?_0x229732[_0x2fd5f0(0x182)]:_0x229732[_0x2fd5f0(0x1f5)]),{'status':_0x4f7dbb['status']['toLowerCase'](),'failureType':_0x229732[_0x2fd5f0(0x1ad)](_0x5464bd,null),'failureData':!_0x58b68f?null:[_0x58b68f]};}[a90_0x2f14dc(0x1d8)](_0x3c7d7f,_0x52d2a8){const _0x2e872e=a90_0x2f14dc,_0x21e8f2={};_0x21e8f2[_0x2e872e(0x1fa)]=function(_0x5065c5,_0xb86e8){return _0x5065c5===_0xb86e8;},_0x21e8f2['seLCf']='AFTER_EACH',_0x21e8f2[_0x2e872e(0x179)]=_0x2e872e(0x1b2);const _0x26d63d=_0x21e8f2;let _0x2ecdf5=![];for(const _0x500e95 of _0x3c7d7f){_0x500e95[_0x2e872e(0x1e9)]&&(_0x2ecdf5=!![]);if(_0x26d63d[_0x2e872e(0x1fa)](_0x52d2a8['id'],_0x500e95['id']))return _0x2ecdf5?_0x26d63d[_0x2e872e(0x203)]:_0x26d63d['PpmQF'];}}[a90_0x2f14dc(0x1ec)]=(_0x4141f5,_0x13536c)=>{const _0x923109=a90_0x2f14dc,_0x1f88d2={};_0x1f88d2[_0x923109(0x178)]=function(_0x986d4b,_0x336ade){return _0x986d4b===_0x336ade;},_0x1f88d2[_0x923109(0x1d2)]=function(_0x491bed,_0x5372ef){return _0x491bed===_0x5372ef;},_0x1f88d2[_0x923109(0x1d7)]=function(_0x31db98,_0x511aee){return _0x31db98>_0x511aee;};const _0x85ba24=_0x1f88d2;if(!(_0x13536c['astNodeIds']&&_0x85ba24[_0x923109(0x1d7)](_0x13536c[_0x923109(0x1ba)][_0x923109(0x18c)],0x1)))return;const _0x1e37ef=_0x13536c['astNodeIds'][0x0],_0xf20b34=_0x13536c['astNodeIds'][0x1],_0x5573b5=_0x4141f5[_0x923109(0x176)]&&_0x4141f5[_0x923109(0x176)]['children']?_0x4141f5[_0x923109(0x176)][_0x923109(0x1e6)]:undefined;let _0x5bb533=[];_0x5573b5&&_0x5573b5[_0x923109(0x17c)](_0x140cd2=>{const _0xb147f3=_0x923109,_0x17a623={'iLYNO':function(_0x525556,_0x21c65e){const _0x19db9c=a90_0x4bdd;return _0x85ba24[_0x19db9c(0x178)](_0x525556,_0x21c65e);}};if(_0x140cd2[_0xb147f3(0x187)])_0x140cd2[_0xb147f3(0x187)][_0xb147f3(0x1e6)][_0xb147f3(0x17c)](_0x52ed40=>{const _0x557bdb=_0xb147f3;if(_0x52ed40['scenario']&&_0x17a623['iLYNO'](_0x52ed40[_0x557bdb(0x1e7)]['id'],_0x1e37ef)&&_0x52ed40[_0x557bdb(0x1e7)][_0x557bdb(0x1b4)]){const _0x1537ae=_0x52ed40[_0x557bdb(0x1e7)][_0x557bdb(0x1b4)]['flatMap'](_0xf8f28d=>_0xf8f28d[_0x557bdb(0x190)])[_0x557bdb(0x1a6)](_0x37b439=>_0x37b439['id']===_0xf20b34);let _0x3e1b8e;_0x1537ae&&_0x1537ae['cells']?_0x3e1b8e=_0x1537ae[_0x557bdb(0x1c6)][_0x557bdb(0x1ca)](_0x33f64b=>_0x33f64b[_0x557bdb(0x1d0)]):_0x3e1b8e=[],_0x3e1b8e&&(_0x5bb533=_0x3e1b8e);}});else{if(_0x140cd2[_0xb147f3(0x1e7)]&&_0x85ba24['oAXqB'](_0x140cd2[_0xb147f3(0x1e7)]['id'],_0x1e37ef)&&_0x140cd2['scenario'][_0xb147f3(0x1b4)]){const _0x36d4d6=_0x140cd2[_0xb147f3(0x1e7)]['examples'][_0xb147f3(0x1ae)](_0x3c890f=>_0x3c890f['tableBody'])['find'](_0x56b7c7=>_0x56b7c7['id']===_0xf20b34);let _0x4d9e6c;_0x36d4d6&&_0x36d4d6[_0xb147f3(0x1c6)]?_0x4d9e6c=_0x36d4d6[_0xb147f3(0x1c6)][_0xb147f3(0x1ca)](_0x3ee453=>_0x3ee453[_0xb147f3(0x1d0)]):_0x4d9e6c=[],_0x4d9e6c&&(_0x5bb533=_0x4d9e6c);}}});if(_0x5bb533['length'])return _0x5bb533;return;};async[a90_0x2f14dc(0x194)](){const _0x21deeb=a90_0x2f14dc,_0x368973={'HKgWW':function(_0x2963a3){return _0x2963a3();}};if(this['_gitConfigured'])return this[_0x21deeb(0x1bd)];const _0x5e3281=await _0x368973[_0x21deeb(0x18b)](getGitMetaData);_0x5e3281&&(this[_0x21deeb(0x1bd)]=_0x5e3281['root']),this['_gitConfigured']=!![];}}module[a90_0x2f14dc(0x1da)]=o11yClassErrorHandler(CucumberUtils,['configureGit','getScenarioExamples',a90_0x2f14dc(0x1d8),a90_0x2f14dc(0x188),a90_0x2f14dc(0x1b7),'getHookRunEventData',a90_0x2f14dc(0x1d9),a90_0x2f14dc(0x1f6)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a91_0x2232cb=a91_0x3cd4;(function(_0xc58af2,_0xe01b02){const _0x1a7d66=a91_0x3cd4,_0x58d0bb=_0xc58af2();while(!![]){try{const _0x3ba4cd=-parseInt(_0x1a7d66(0x16a))/0x1+-parseInt(_0x1a7d66(0x1aa))/0x2*(parseInt(_0x1a7d66(0x13d))/0x3)+-parseInt(_0x1a7d66(0x179))/0x4+-parseInt(_0x1a7d66(0x183))/0x5+-parseInt(_0x1a7d66(0x17f))/0x6+parseInt(_0x1a7d66(0x186))/0x7+parseInt(_0x1a7d66(0x160))/0x8*(parseInt(_0x1a7d66(0x17b))/0x9);if(_0x3ba4cd===_0xe01b02)break;else _0x58d0bb['push'](_0x58d0bb['shift']());}catch(_0x422999){_0x58d0bb['push'](_0x58d0bb['shift']());}}}(a91_0x2d08,0x886d1));const path=require(a91_0x2232cb(0x137)),util=require('util'),crypto=require('crypto'),{getGitMetaData,isUndefined,nestedKeyValue}=require(a91_0x2232cb(0x190)),logger=require('../../../helpers/logger.js')[a91_0x2232cb(0x14b)],{o11yClassErrorHandler}=require(a91_0x2232cb(0x180)),TestInfo=require(a91_0x2232cb(0x152)),{failureData,getFailureType}=require(a91_0x2232cb(0x161)),stackTrace=require('stack-trace'),a91_0x257dd3={};function a91_0x3cd4(_0x4a8a3d,_0x534a7a){const _0x2d08cf=a91_0x2d08();return a91_0x3cd4=function(_0x3cd483,_0x23a296){_0x3cd483=_0x3cd483-0x11d;let _0x58ef0a=_0x2d08cf[_0x3cd483];return _0x58ef0a;},a91_0x3cd4(_0x4a8a3d,_0x534a7a);}a91_0x257dd3['beforeAll']=a91_0x2232cb(0x1b7),a91_0x257dd3[a91_0x2232cb(0x189)]=a91_0x2232cb(0x11f),a91_0x257dd3[a91_0x2232cb(0x1a2)]=a91_0x2232cb(0x14f),a91_0x257dd3[a91_0x2232cb(0x16e)]=a91_0x2232cb(0x134);const HOOK_TYPES_MAP=a91_0x257dd3,hooksMap={};function a91_0x2d08(){const _0x856c2a=['HookRunFinished','recreateIdentifierFromTestInfo','705553touWVa','uuid','vzVtO','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','afterEach','\x22\x20hook\x20for\x20\x22','length','errorsDetailed','pid','startedAt','ILXir','relative','expanded','fOekj','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','1174816uAEqVd','toUpperCase','667854lDJoxK','call','getState','fullName','5809998JOrkhp','../../../helpers/test-observability/error-handler.js','vmUoA','jest-circus','767155wewyPx','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','hyJkp','4395503IBKrWr','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier','RiCOe','afterAll','getTestIdentifier','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','WbRpS','retryOf','qxPTt','../../../helpers/helper.js','digest','sNuun','vcfyQ','error','Creating\x20hook\x20data\x20for\x20eventType:\x20','file','passed','displayName','createHash','btMLz','LFAAI','getName','err','LKdgQ','failed','backtrace','failure_reason_expanded','beforeEach','uTpwF','stack','test','pending',':jest-','sIXWG','ZkRvk','2FMvjwX','createIdentifierFromJestTest','push','parent','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','jest','GoKvX','hook','ySsnz','getHierarchy','failure_backtrace','root','match','BEFORE_ALL','parse','ydlQq','title','[jestUtils]\x20Created\x20identifier:\x20','_gitConfigured','md5','createJestTestIdentifier','duration','xcWkW','File\x20path\x20could\x20not\x20be\x20found','testPath','configureGit','extractTestFilePath','RUggl','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','finishedAt','UuedX','toISOString','asyncError','now','exports','started_at','Exception\x20in\x20createTestFrameworkData:\x20','hylKo','failure_reason','WowGP','debug','rfyCj','FMxrA','AFTER_ALL','toString','lwMhs','[jestUtils]\x20Error\x20creating\x20identifier:\x20','getTime','LGhtn','split','zXZgG','createHookData',',\x20hookUUID:\x20','failure_data','hcPtq','update','name','FVWag','Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20','clearHooksMap','__jestCurrentTestIdentifier','format','vWTjM','itPek','AFTER_EACH','MaWOq','apply','path','currentTest','hooks','testIdentifier','RumNJ','includes','745479jWALeo','ZOBAS','reverse','getHookRunEventData','getRootParentFile','find','fefML','expect','WGQBd','QWsSZ','hex','type','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','VnpPm','winstonLogger','hlsAT','MTViS','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','BEFORE_EACH','TpZgK','__workerDetails','../TestInfo.js','inspect','ROEai','TestRunFinished','xsSah','wNjtb',',\x20testRunId:\x20','[jestUtils]\x20No\x20test\x20object\x20provided','testAnalyticsId','_gitConfigPath','NPUYk','createTestFrameworkData','ROOT_DESCRIBE_BLOCK','getFileName','248BuKWVS','../../../helpers/test-observability/utils','Exception\x20in\x20createHookData:\x20','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','failure','HookRunStarted','substring','TestRunSkipped'];a91_0x2d08=function(){return _0x856c2a;};return a91_0x2d08();}class JestUtils{constructor(){const _0x5354dd=a91_0x2232cb;this['_gitConfigured']=![],this[_0x5354dd(0x15b)]=null;}async[a91_0x2232cb(0x15d)](_0x191a95,_0x4209ed,_0x37687e=a91_0x2232cb(0x155),_0x568f56=undefined){const _0x213c72=a91_0x2232cb,_0x1b4c52={'VnpPm':_0x213c72(0x184),'hcPtq':_0x213c72(0x182),'GoKvX':function(_0xdaa5f7,_0x44c08b){return _0xdaa5f7||_0x44c08b;},'TpZgK':_0x213c72(0x1c1),'RiCOe':function(_0x281120,_0x24fc51){return _0x281120!==_0x24fc51;},'RumNJ':_0x213c72(0x1a5),'vzVtO':_0x213c72(0x19d),'iPhNu':function(_0x3bf640,_0x20843d){return _0x3bf640!==_0x20843d;},'ctDtB':_0x213c72(0x1a6),'fAmlT':function(_0xf61077,_0x3f4906){return _0xf61077===_0x3f4906;},'ILXir':_0x213c72(0x167),'sIXWG':'skipped','svIVA':function(_0x24e5ef,_0x2c95ac){return _0x24e5ef>_0x2c95ac;},'MaWOq':_0x213c72(0x19f),'sNuun':_0x213c72(0x197),'LGhtn':function(_0x5b45fd,_0x17ceb6){return _0x5b45fd!==_0x17ceb6;},'Hfnpv':function(_0x4fab7c,_0x37a148){return _0x4fab7c-_0x37a148;},'QJPzE':'javascript','dylrK':_0x213c72(0x1af),'hlsAT':function(_0x165069,_0x51fe02){return _0x165069(_0x51fe02);},'hyJkp':function(_0x2bf25a,_0x4f350d){return _0x2bf25a===_0x4f350d;},'uTpwF':'TestRunFinished','uegoB':function(_0x341b0e,_0x3be3d7){return _0x341b0e===_0x3be3d7;}};logger[_0x213c72(0x1d2)](_0x213c72(0x12e)+_0x37687e+',\x20testIdentifier:\x20'+_0x4209ed);try{if(!_0x191a95)return logger[_0x213c72(0x1d2)](_0x1b4c52[_0x213c72(0x14a)]),null;if(_0x191a95['fn']&&_0x191a95['fn'][_0x213c72(0x120)]()[_0x213c72(0x1b6)](/browserstack internal helper hook/))return null;await this['configureGit']();let _0x3db742;try{_0x3db742=this[_0x213c72(0x141)](_0x191a95);if(_0x3db742&&_0x3db742[_0x213c72(0x13c)](_0x1b4c52[_0x213c72(0x12a)]))return null;}catch(_0x517ce0){logger[_0x213c72(0x1d2)](_0x213c72(0x149)+util['format'](_0x517ce0)),_0x3db742=null;}const _0x173e98=this['getHierarchy'](_0x191a95),_0x468dd1=this[_0x213c72(0x19c)](_0x191a95),_0x202d12=_0x1b4c52[_0x213c72(0x1b0)](_0x3db742,_0x1b4c52[_0x213c72(0x150)]);let _0x3aa8d0=[];if(_0x1b4c52['RiCOe'](_0x191a95[_0x213c72(0x171)],undefined))_0x3aa8d0=[_0x191a95[_0x213c72(0x171)],_0x1b4c52[_0x213c72(0x13b)]];else _0x1b4c52[_0x213c72(0x188)](_0x568f56,undefined)&&(_0x3aa8d0=[_0x568f56,_0x1b4c52[_0x213c72(0x16c)]]);const _0x259be7=_0x1b4c52[_0x213c72(0x188)](_0x191a95[_0x213c72(0x171)],undefined)?util['inspect'](_0x191a95[_0x213c72(0x171)][0x0]):_0x1b4c52['iPhNu'](_0x568f56,undefined)?_0x568f56['toString']():undefined;let _0x3a775b=_0x1b4c52['ctDtB'];if(_0x1b4c52['fAmlT'](_0x37687e,_0x1b4c52[_0x213c72(0x174)]))_0x3a775b=_0x1b4c52[_0x213c72(0x1a8)];else _0x191a95[_0x213c72(0x171)]&&_0x1b4c52['svIVA'](_0x191a95[_0x213c72(0x171)][_0x213c72(0x170)],0x0)?_0x3a775b=_0x1b4c52[_0x213c72(0x135)]:_0x3a775b=_0x1b4c52[_0x213c72(0x192)];let _0xff0990=null;if(_0x1b4c52[_0x213c72(0x124)](_0x191a95[_0x213c72(0x1bf)],undefined))_0xff0990=_0x191a95[_0x213c72(0x1bf)];else(_0x37687e[_0x213c72(0x1b6)](/Finished/)||_0x37687e[_0x213c72(0x1b6)](/Skipped/))&&(_0x191a95['started_at']&&(_0xff0990=_0x1b4c52['Hfnpv'](Date[_0x213c72(0x1cb)](),new Date(_0x191a95[_0x213c72(0x1cd)])[_0x213c72(0x123)]())));const _0x5753ab=_0x191a95['fn']?_0x191a95['fn'][_0x213c72(0x120)]():null,_0x1a11a3={'id':_0x4209ed,'uuid':_0x4209ed,'startedAt':_0x191a95[_0x213c72(0x1cd)]||new Date()['toISOString'](),'finishedAt':_0x37687e[_0x213c72(0x1b6)](/Finished/)||_0x37687e['match'](/Skipped/)?new Date()['toISOString']():null,'type':_0x1b4c52[_0x213c72(0x13b)],'body':{'lang':_0x1b4c52['QJPzE'],'code':_0x5753ab},'name':_0x468dd1,'scopes':_0x173e98,'file_name':_0x202d12,'location':_0x202d12,'vc_filepath':this[_0x213c72(0x15b)]&&_0x3db742?path[_0x213c72(0x175)](this['_gitConfigPath'],_0x3db742):null,'framework':_0x1b4c52['dylrK'],'result':_0x3a775b,'failure_reason':_0x259be7,'duration_in_ms':_0xff0990,'failure':failureData['apply'](null,_0x3aa8d0),'failure_type':!_0x259be7?null:_0x1b4c52[_0x213c72(0x14c)](getFailureType,_0x259be7),'retry_of':_0x191a95[_0x213c72(0x18e)]||null,'customRerunParam':{'rerun_name':_0x468dd1}};_0x1b4c52[_0x213c72(0x185)](_0x37687e,_0x1b4c52['ILXir'])&&!_0x1a11a3['startedAt']&&(_0x1a11a3[_0x213c72(0x173)]=_0x1a11a3[_0x213c72(0x1c7)]);const _0x5f18f7=_0x1a11a3['failure']&&_0x1a11a3[_0x213c72(0x164)][0x0];return _0x5f18f7&&(_0x1a11a3[_0x213c72(0x1b4)]=_0x5f18f7[_0x213c72(0x1a0)],_0x1a11a3[_0x213c72(0x1a1)]=_0x5f18f7[_0x213c72(0x176)]),(_0x1b4c52[_0x213c72(0x185)](_0x37687e,_0x1b4c52[_0x213c72(0x1a3)])||_0x1b4c52['uegoB'](_0x37687e,_0x1b4c52['ILXir']))&&(_0x191a95[_0x213c72(0x139)]&&(_0x1a11a3[_0x213c72(0x139)]=_0x191a95['hooks'])),_0x1a11a3;}catch(_0x2de066){return logger[_0x213c72(0x1d2)](_0x213c72(0x1ce)+util['format'](_0x2de066)),null;}}async[a91_0x2232cb(0x127)](_0x1b6720,_0x47fe1b,_0x429c08,_0x20277d){const _0x2157ee=a91_0x2232cb,_0x5aa6cd={'ydlQq':_0x2157ee(0x16d),'QWsSZ':_0x2157ee(0x182),'LFAAI':'browserstack-node-agent/src/bin/jest','ySsnz':'unknown','dAUNt':_0x2157ee(0x1a6),'ROEai':function(_0x3eeb21,_0x29533d){return _0x3eeb21===_0x29533d;},'zXZgG':_0x2157ee(0x168),'DPZpk':function(_0x1868af,_0x45f5c0){return _0x1868af>_0x45f5c0;},'YJwkh':_0x2157ee(0x19f),'fefML':function(_0x3b67d6,_0x2cdd46){return _0x3b67d6(_0x2cdd46);},'RUggl':_0x2157ee(0x1a5),'FMxrA':_0x2157ee(0x197),'btMLz':_0x2157ee(0x1b1),'rfyCj':'javascript','DYDPx':_0x2157ee(0x1af),'zBbxc':function(_0x39c983,_0x227701){return _0x39c983===_0x227701;},'NPUYk':_0x2157ee(0x165)};logger['debug'](_0x2157ee(0x195)+_0x429c08+_0x2157ee(0x128)+_0x47fe1b+_0x2157ee(0x158)+_0x20277d);try{if(!_0x1b6720)return logger[_0x2157ee(0x1d2)](_0x5aa6cd[_0x2157ee(0x1b9)]),null;if(this['isJestInternalHook'](_0x1b6720))return null;await this[_0x2157ee(0x1c3)]();let _0xc6f452=null;try{_0xc6f452=this[_0x2157ee(0x141)](_0x1b6720);if(_0xc6f452&&_0xc6f452[_0x2157ee(0x13c)](_0x5aa6cd[_0x2157ee(0x146)]))return null;if(_0xc6f452&&_0xc6f452[_0x2157ee(0x13c)](_0x5aa6cd[_0x2157ee(0x19b)]))return null;}catch(_0x3f7813){logger['debug'](_0x2157ee(0x178)+util[_0x2157ee(0x131)](_0x3f7813));}const _0x39c663=this['getName'](_0x1b6720),_0x32c101=_0x1b6720['type']||_0x5aa6cd[_0x2157ee(0x1b2)],_0x4b957d=HOOK_TYPES_MAP[_0x32c101]||_0x32c101[_0x2157ee(0x17a)](),_0x21bd06=_0x1b6720[_0x2157ee(0x1ad)]&&_0x1b6720[_0x2157ee(0x1ad)][_0x2157ee(0x12c)]?_0x1b6720[_0x2157ee(0x1ad)][_0x2157ee(0x12c)]:'';let _0x23003e=_0x5aa6cd['dAUNt'],_0x11f359=null,_0x17ddb4=null,_0x42b6be=null,_0x21af4a=null;_0x5aa6cd[_0x2157ee(0x154)](_0x429c08,_0x5aa6cd[_0x2157ee(0x126)])&&(_0x21af4a=new Date()[_0x2157ee(0x1c9)](),_0x1b6720[_0x2157ee(0x171)]&&_0x5aa6cd['DPZpk'](_0x1b6720['errorsDetailed']['length'],0x0)?(_0x23003e=_0x5aa6cd['YJwkh'],_0x17ddb4=util[_0x2157ee(0x153)](_0x1b6720[_0x2157ee(0x171)][0x0]),_0x11f359=_0x5aa6cd[_0x2157ee(0x143)](getFailureType,_0x17ddb4),_0x42b6be=failureData[_0x2157ee(0x136)](null,[_0x1b6720[_0x2157ee(0x171)],_0x5aa6cd[_0x2157ee(0x1c5)]])):_0x23003e=_0x5aa6cd[_0x2157ee(0x11e)]);const _0x3cc354={'uuid':_0x47fe1b,'type':_0x5aa6cd[_0x2157ee(0x19a)],'hook_type':_0x4b957d,'name':_0x39c663,'body':{'lang':_0x5aa6cd[_0x2157ee(0x11d)],'code':_0x1b6720['fn']?_0x1b6720['fn'][_0x2157ee(0x120)]():null},'tags':[],'test_run_id':_0x20277d,'scope':_0x21bd06,'scopes':[_0x21bd06],'file_name':_0xc6f452,'location':_0xc6f452,'vc_filepath':this[_0x2157ee(0x15b)]&&_0xc6f452?path['relative'](this['_gitConfigPath'],_0xc6f452):null,'result':_0x23003e,'started_at':_0x1b6720[_0x2157ee(0x1cd)]||new Date()['toISOString'](),'finished_at':_0x21af4a,'failure_type':_0x11f359,'failure_reason':_0x17ddb4,'failure_data':_0x42b6be,'framework':_0x5aa6cd['DYDPx']};return _0x5aa6cd['zBbxc'](_0x429c08,_0x5aa6cd[_0x2157ee(0x15c)])&&(hooksMap[_0x20277d]?hooksMap[_0x20277d]['push'](_0x3cc354):hooksMap[_0x20277d]=[_0x3cc354]),_0x3cc354;}catch(_0x2098ea){return logger['debug'](_0x2157ee(0x162)+util[_0x2157ee(0x131)](_0x2098ea)),null;}}[a91_0x2232cb(0x140)](_0x487c4d,_0x5d21ff,_0x56a921){const _0x54f691=a91_0x2232cb,_0x48facf={'UuedX':function(_0x1c419f,_0x3d27be){return _0x1c419f>_0x3d27be;},'ZOBAS':_0x54f691(0x19f),'vWTjM':function(_0x14bded,_0x335d54){return _0x14bded(_0x335d54);},'SkAfj':_0x54f691(0x1a5),'ZkRvk':_0x54f691(0x197)};try{const _0x363a27=hooksMap[_0x487c4d];if(!_0x363a27)return null;const _0x51c578=_0x363a27[_0x54f691(0x142)](_0x2f935d=>_0x2f935d[_0x54f691(0x16b)]===_0x5d21ff);if(!_0x51c578)return null;return _0x51c578['finished_at']=new Date()[_0x54f691(0x1c9)](),_0x56a921[_0x54f691(0x171)]&&_0x48facf[_0x54f691(0x1c8)](_0x56a921[_0x54f691(0x171)][_0x54f691(0x170)],0x0)?(_0x51c578['result']=_0x48facf[_0x54f691(0x13e)],_0x51c578[_0x54f691(0x1d0)]=util[_0x54f691(0x153)](_0x56a921['errorsDetailed'][0x0]),_0x51c578['failure_type']=_0x48facf[_0x54f691(0x132)](getFailureType,_0x51c578[_0x54f691(0x1d0)]),_0x51c578[_0x54f691(0x129)]=failureData[_0x54f691(0x136)](null,[_0x56a921[_0x54f691(0x171)],_0x48facf['SkAfj']])):_0x51c578['result']=_0x48facf[_0x54f691(0x1a9)],_0x51c578;}catch(_0x4e9ac9){return logger[_0x54f691(0x1d2)]('Exception\x20in\x20getHookRunEventData:\x20'+util[_0x54f691(0x131)](_0x4e9ac9)),null;}}[a91_0x2232cb(0x19c)](_0x50846b){const _0x2ce690=a91_0x2232cb,_0xea0386={};_0xea0386[_0x2ce690(0x177)]=function(_0x151daa,_0x51c0b3){return _0x151daa!==_0x51c0b3;},_0xea0386[_0x2ce690(0x1d1)]='test',_0xea0386[_0x2ce690(0x121)]='Unknown\x20Test';const _0x31c8d8=_0xea0386;if(_0x31c8d8[_0x2ce690(0x177)](_0x50846b[_0x2ce690(0x148)],_0x31c8d8['WowGP']))return'\x22'+_0x50846b['type']+_0x2ce690(0x16f)+(_0x50846b[_0x2ce690(0x1ad)]&&_0x50846b['parent'][_0x2ce690(0x12c)])+'\x22';return _0x50846b[_0x2ce690(0x12c)]||_0x31c8d8[_0x2ce690(0x121)];}[a91_0x2232cb(0x1b3)](_0x416d35){const _0x59e25f=a91_0x2232cb,_0x1884fa={};_0x1884fa[_0x59e25f(0x19e)]=function(_0x47a197,_0x48b318){return _0x47a197!==_0x48b318;},_0x1884fa[_0x59e25f(0x145)]='ROOT_DESCRIBE_BLOCK';const _0x553ff1=_0x1884fa,_0x4c5dad=[];if(_0x416d35&&_0x416d35[_0x59e25f(0x1ad)]){let _0x1c775e=_0x416d35[_0x59e25f(0x1ad)];while(_0x1c775e&&_0x1c775e[_0x59e25f(0x12c)]&&_0x553ff1[_0x59e25f(0x19e)](_0x1c775e['name'],'')&&_0x553ff1[_0x59e25f(0x19e)](_0x1c775e[_0x59e25f(0x12c)],_0x553ff1[_0x59e25f(0x145)])){_0x4c5dad[_0x59e25f(0x1ac)](_0x1c775e[_0x59e25f(0x12c)]),_0x1c775e=_0x1c775e[_0x59e25f(0x1ad)];}}return _0x4c5dad[_0x59e25f(0x13f)](),_0x4c5dad;}[a91_0x2232cb(0x141)](_0x46f321){const _0x3af038=a91_0x2232cb;if(_0x46f321[_0x3af038(0x1ca)])try{const _0x535ac4=stackTrace[_0x3af038(0x1b8)][_0x3af038(0x17c)](stackTrace,_0x46f321[_0x3af038(0x1ca)]);if(_0x535ac4[0x0]&&_0x535ac4[0x0][_0x3af038(0x15f)])return _0x535ac4[0x0]['getFileName']();}catch(_0x275084){logger['debug']('Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util['format'](_0x275084));}if(_0x46f321[_0x3af038(0x196)])return _0x46f321[_0x3af038(0x196)];return null;}['isJestInternalHook'](_0x9ba5b3){const _0x4cd927=a91_0x2232cb,_0x1ed44b={};_0x1ed44b[_0x4cd927(0x193)]='jest-circus';const _0x39e1ab=_0x1ed44b;try{const _0xc57d2c=this[_0x4cd927(0x141)](_0x9ba5b3);if(_0xc57d2c&&_0xc57d2c[_0x4cd927(0x13c)](_0x39e1ab[_0x4cd927(0x193)]))return!![];}catch(_0xf0576b){logger[_0x4cd927(0x1d2)](_0x4cd927(0x1c6)+util[_0x4cd927(0x131)](_0xf0576b));}return![];}[a91_0x2232cb(0x18a)](_0x4dd1c5=null){const _0x2819c4=a91_0x2232cb;try{const _0x21cf7b=_0x4dd1c5||global[_0x2819c4(0x151)]||{};if(global[_0x2819c4(0x130)])return global[_0x2819c4(0x130)];if(_0x21cf7b?.[_0x2819c4(0x138)]?.[_0x2819c4(0x15a)])return _0x21cf7b[_0x2819c4(0x138)][_0x2819c4(0x15a)];if(_0x21cf7b?.[_0x2819c4(0x138)]?.['id'])return _0x21cf7b['currentTest']['id'];return null;}catch(_0x3c7093){return logger['debug'](_0x2819c4(0x1ae)+util[_0x2819c4(0x131)](_0x3c7093)),null;}}async[a91_0x2232cb(0x1c3)](){const _0x222652=a91_0x2232cb,_0x4a0b52={'kJdhS':function(_0x37ba60){return _0x37ba60();}};if(this[_0x222652(0x1bc)])return this[_0x222652(0x15b)];const _0x4ae9ee=await _0x4a0b52['kJdhS'](getGitMetaData);_0x4ae9ee&&(this[_0x222652(0x15b)]=_0x4ae9ee[_0x222652(0x1b5)]),this['_gitConfigured']=!![];}[a91_0x2232cb(0x12f)](_0x59ad91){hooksMap[_0x59ad91]&&delete hooksMap[_0x59ad91];}['extractTestFilePath'](_0x474acd){const _0x27648a=a91_0x2232cb,_0x442536={'wNjtb':'jest-circus','hylKo':function(_0x5190ab,_0x16d1cc){return _0x5190ab(_0x16d1cc);},'qxPTt':_0x27648a(0x144)};if(_0x474acd[_0x27648a(0x196)])return _0x474acd['file'];if(_0x474acd['asyncError']){try{const _0x182ea4=stackTrace['parse'](_0x474acd[_0x27648a(0x1ca)]);if(_0x182ea4[0x0]&&_0x182ea4[0x0][_0x27648a(0x15f)]){const _0xa07d34=_0x182ea4[0x0][_0x27648a(0x15f)]();if(_0xa07d34&&!_0xa07d34[_0x27648a(0x13c)](_0x442536[_0x27648a(0x157)]))return _0xa07d34;}}catch(_0x22447e){logger[_0x27648a(0x1d2)]('[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util[_0x27648a(0x131)](_0x22447e));}if(_0x474acd[_0x27648a(0x1ca)][_0x27648a(0x1a4)]){const _0x53fce8=_0x474acd[_0x27648a(0x1ca)]['stack'][_0x27648a(0x125)]('\x0a');for(const _0x4f0b38 of _0x53fce8){const _0x5a2e1b=_0x4f0b38[_0x27648a(0x1b6)](/at (.+?):\d+:\d+/);if(_0x5a2e1b&&_0x5a2e1b[0x1]&&!_0x5a2e1b[0x1]['includes'](_0x442536[_0x27648a(0x157)]))return _0x5a2e1b[0x1];}}}let _0x2b3036=_0x474acd['parent'];while(_0x2b3036){if(_0x2b3036[_0x27648a(0x196)])return _0x2b3036[_0x27648a(0x196)];if(_0x2b3036[_0x27648a(0x1ca)])try{const _0x2651dc=stackTrace[_0x27648a(0x1b8)](_0x2b3036[_0x27648a(0x1ca)]);if(_0x2651dc[0x0]&&_0x2651dc[0x0]['getFileName']){const _0x556109=_0x2651dc[0x0][_0x27648a(0x15f)]();if(_0x556109&&!_0x556109[_0x27648a(0x13c)](_0x442536['wNjtb']))return _0x556109;}}catch(_0x2b4aab){}_0x2b3036=_0x2b3036[_0x27648a(0x1ad)];}try{const _0x28cab6=_0x442536[_0x27648a(0x1cf)](require,_0x442536[_0x27648a(0x18f)]);if(_0x28cab6&&_0x28cab6['getState']){const _0x7c3116=_0x28cab6[_0x27648a(0x17d)]();if(_0x7c3116&&_0x7c3116[_0x27648a(0x1c2)])return _0x7c3116[_0x27648a(0x1c2)];}}catch(_0x579549){logger[_0x27648a(0x1d2)](_0x27648a(0x163)+util[_0x27648a(0x131)](_0x579549));}return null;}[a91_0x2232cb(0x1be)](_0xe95afa){const _0x49ad5d=a91_0x2232cb,_0x55a5c6={};_0x55a5c6['AIVhQ']=_0x49ad5d(0x187),_0x55a5c6['WbRpS']=function(_0x3278c5,_0x4334d5){return _0x3278c5!==_0x4334d5;},_0x55a5c6[_0x49ad5d(0x1c0)]=_0x49ad5d(0x15e),_0x55a5c6[_0x49ad5d(0x181)]=_0x49ad5d(0x182),_0x55a5c6[_0x49ad5d(0x133)]=_0x49ad5d(0x1bd),_0x55a5c6[_0x49ad5d(0x12d)]=_0x49ad5d(0x147);const _0x1a476d=_0x55a5c6;try{if(!_0xe95afa)return logger[_0x49ad5d(0x194)](_0x1a476d['AIVhQ']),null;const _0x2f50a5=_0xe95afa[_0x49ad5d(0x17e)]||_0xe95afa[_0x49ad5d(0x12c)]||_0xe95afa[_0x49ad5d(0x1ba)]||_0xe95afa[_0x49ad5d(0x198)];let _0x55bf12=_0x2f50a5;if(_0xe95afa[_0x49ad5d(0x1ad)]&&_0xe95afa[_0x49ad5d(0x1ad)][_0x49ad5d(0x12c)]&&_0x1a476d[_0x49ad5d(0x18d)](_0xe95afa[_0x49ad5d(0x1ad)][_0x49ad5d(0x12c)],_0x1a476d['xcWkW'])){const _0x5d1809=_0xe95afa[_0x49ad5d(0x12c)]||_0xe95afa[_0x49ad5d(0x1ba)];_0x5d1809&&(_0x55bf12=_0xe95afa[_0x49ad5d(0x1ad)][_0x49ad5d(0x12c)]+'\x20'+_0x5d1809);}let _0x23f12c=_0xe95afa[_0x49ad5d(0x1c2)];if(!_0x23f12c&&_0xe95afa['asyncError']){try{const _0x599c90=stackTrace[_0x49ad5d(0x1b8)](_0xe95afa['asyncError']);if(_0x599c90[0x0]&&_0x599c90[0x0][_0x49ad5d(0x15f)]){const _0x3b08c2=_0x599c90[0x0][_0x49ad5d(0x15f)]();_0x3b08c2&&!_0x3b08c2[_0x49ad5d(0x13c)](_0x1a476d['vmUoA'])&&(_0x23f12c=_0x3b08c2);}}catch(_0x362ec6){logger[_0x49ad5d(0x1d2)](_0x49ad5d(0x18c)+util[_0x49ad5d(0x131)](_0x362ec6));}if(!_0x23f12c&&_0xe95afa[_0x49ad5d(0x1ca)][_0x49ad5d(0x1a4)]){const _0x300139=_0xe95afa['asyncError']['stack']['split']('\x0a');for(const _0x5d76c8 of _0x300139){const _0x13606c=_0x5d76c8[_0x49ad5d(0x1b6)](/at (.+?):\d+:\d+/);if(_0x13606c&&_0x13606c[0x1]&&!_0x13606c[0x1]['includes'](_0x1a476d[_0x49ad5d(0x181)])){_0x23f12c=_0x13606c[0x1];break;}}}}const _0x3c66ae=_0x23f12c+'::'+_0x55bf12,_0x22dd6d=crypto[_0x49ad5d(0x199)](_0x1a476d[_0x49ad5d(0x133)])[_0x49ad5d(0x12b)](_0x3c66ae)[_0x49ad5d(0x191)](_0x1a476d[_0x49ad5d(0x12d)])[_0x49ad5d(0x166)](0x0,0x8),_0x15dfc3=process[_0x49ad5d(0x172)]+_0x49ad5d(0x1a7)+_0x22dd6d;return logger[_0x49ad5d(0x1d2)](_0x49ad5d(0x1bb)+_0x15dfc3+'\x20from\x20compositeKey:\x20'+_0x3c66ae),_0x15dfc3;}catch(_0x4af81d){return logger[_0x49ad5d(0x194)](_0x49ad5d(0x122)+util[_0x49ad5d(0x131)](_0x4af81d)),null;}}[a91_0x2232cb(0x1ab)](_0x1f563d){const _0x35c4a7=a91_0x2232cb,_0xff7dd9={};_0xff7dd9[_0x35c4a7(0x14d)]=_0x35c4a7(0x159);const _0x134e81=_0xff7dd9;if(!_0x1f563d)return logger[_0x35c4a7(0x1d2)](_0x134e81[_0x35c4a7(0x14d)]),null;const _0x38f909=this[_0x35c4a7(0x1c4)](_0x1f563d),_0x3cbc6b={};_0x3cbc6b['name']=_0x1f563d[_0x35c4a7(0x12c)]||_0x1f563d[_0x35c4a7(0x1ba)],_0x3cbc6b[_0x35c4a7(0x1ad)]=_0x1f563d[_0x35c4a7(0x1ad)],_0x3cbc6b[_0x35c4a7(0x1c2)]=_0x38f909,_0x3cbc6b['asyncError']=_0x1f563d[_0x35c4a7(0x1ca)];const _0x4f388a=_0x3cbc6b;return this['createJestTestIdentifier'](_0x4f388a);}['recreateIdentifierFromTestInfo'](_0x49036f){const _0x145672=a91_0x2232cb,_0x589fa3={};_0x589fa3[_0x145672(0x156)]=_0x145672(0x18b);const _0x460b60=_0x589fa3;if(!_0x49036f)return logger[_0x145672(0x1d2)](_0x460b60[_0x145672(0x156)]),null;if(_0x49036f['testIdentifier'])return logger[_0x145672(0x1d2)](_0x145672(0x14e)+_0x49036f[_0x145672(0x13a)]),_0x49036f[_0x145672(0x13a)];return this[_0x145672(0x1be)](_0x49036f);}}module[a91_0x2232cb(0x1cc)]=o11yClassErrorHandler(JestUtils,[a91_0x2232cb(0x1c3),a91_0x2232cb(0x1b3),'getRootParentFile',a91_0x2232cb(0x19c),'isJestInternalHook',a91_0x2232cb(0x18a),a91_0x2232cb(0x15d),a91_0x2232cb(0x127),a91_0x2232cb(0x140),a91_0x2232cb(0x12f),a91_0x2232cb(0x1c4),a91_0x2232cb(0x1be),'createIdentifierFromJestTest',a91_0x2232cb(0x169)]);
|
|
1
|
+
const a91_0xc7f011=a91_0x3c31;(function(_0x21b714,_0x284dd3){const _0x4a9991=a91_0x3c31,_0x4050bc=_0x21b714();while(!![]){try{const _0x40baaf=parseInt(_0x4a9991(0x22d))/0x1*(-parseInt(_0x4a9991(0x1d2))/0x2)+parseInt(_0x4a9991(0x214))/0x3+parseInt(_0x4a9991(0x25d))/0x4*(parseInt(_0x4a9991(0x25c))/0x5)+parseInt(_0x4a9991(0x26f))/0x6*(parseInt(_0x4a9991(0x1d0))/0x7)+parseInt(_0x4a9991(0x1c9))/0x8+parseInt(_0x4a9991(0x1da))/0x9+-parseInt(_0x4a9991(0x23f))/0xa;if(_0x40baaf===_0x284dd3)break;else _0x4050bc['push'](_0x4050bc['shift']());}catch(_0x14b09c){_0x4050bc['push'](_0x4050bc['shift']());}}}(a91_0x51cc,0x6dfa9));const path=require('path'),util=require(a91_0xc7f011(0x268)),crypto=require('crypto'),{getGitMetaData,isUndefined,nestedKeyValue}=require(a91_0xc7f011(0x1e8)),logger=require(a91_0xc7f011(0x221))[a91_0xc7f011(0x1fc)],{o11yClassErrorHandler}=require(a91_0xc7f011(0x216)),TestInfo=require(a91_0xc7f011(0x1e4)),{failureData,getFailureType}=require(a91_0xc7f011(0x274)),stackTrace=require('stack-trace'),a91_0x226982={};a91_0x226982[a91_0xc7f011(0x215)]=a91_0xc7f011(0x269),a91_0x226982[a91_0xc7f011(0x208)]='AFTER_ALL',a91_0x226982[a91_0xc7f011(0x218)]='BEFORE_EACH',a91_0x226982[a91_0xc7f011(0x1c6)]=a91_0xc7f011(0x1fa);const HOOK_TYPES_MAP=a91_0x226982,hooksMap={};function a91_0x3c31(_0x583648,_0x21816b){const _0x51cc43=a91_0x51cc();return a91_0x3c31=function(_0x3c3163,_0x44763d){_0x3c3163=_0x3c3163-0x1c2;let _0x52d8be=_0x51cc43[_0x3c3163];return _0x52d8be;},a91_0x3c31(_0x583648,_0x21816b);}class JestUtils{constructor(){const _0x1447c3=a91_0xc7f011;this[_0x1447c3(0x1fe)]=![],this['_gitConfigPath']=null;}async[a91_0xc7f011(0x238)](_0x2e954e,_0x5a12e8,_0x4fcde5=a91_0xc7f011(0x1db),_0x3d23ac=undefined){const _0x568e9a=a91_0xc7f011,_0x1d62d8={'szsGJ':_0x568e9a(0x22b),'uAoLK':_0x568e9a(0x224),'bvlCU':function(_0x4f7c1c,_0x8cb334){return _0x4f7c1c||_0x8cb334;},'NsApt':_0x568e9a(0x1c2),'HkLUk':function(_0x226ec9,_0x5a39f2){return _0x226ec9!==_0x5a39f2;},'Hcdde':_0x568e9a(0x23d),'fxgly':_0x568e9a(0x267),'GrdkH':function(_0x1ea91a,_0x27dc9f){return _0x1ea91a!==_0x27dc9f;},'oRkSA':'pending','AHthK':function(_0x48ac39,_0x58f7e3){return _0x48ac39===_0x58f7e3;},'oHihj':'TestRunSkipped','FibBe':_0x568e9a(0x1fb),'XoOyl':function(_0xe6bb89,_0x3bdd12){return _0xe6bb89>_0x3bdd12;},'PPyNq':_0x568e9a(0x1d4),'sdjKM':_0x568e9a(0x20d),'Wabbj':function(_0x589d3c,_0x4ee4e9){return _0x589d3c-_0x4ee4e9;},'hwuXK':'javascript','XjySA':_0x568e9a(0x228),'OdfiW':function(_0x124d78,_0x25dbaf){return _0x124d78(_0x25dbaf);},'cLTqR':function(_0x2bef73,_0x534931){return _0x2bef73===_0x534931;},'BtTAR':_0x568e9a(0x1db),'kfrKW':function(_0x10e7b5,_0x476f10){return _0x10e7b5===_0x476f10;}};logger[_0x568e9a(0x1f5)](_0x568e9a(0x25f)+_0x4fcde5+',\x20testIdentifier:\x20'+_0x5a12e8);try{if(!_0x2e954e)return logger[_0x568e9a(0x1f5)](_0x1d62d8[_0x568e9a(0x1e0)]),null;if(_0x2e954e['fn']&&_0x2e954e['fn'][_0x568e9a(0x1c8)]()['match'](/browserstack internal helper hook/))return null;await this[_0x568e9a(0x254)]();let _0x18881d;try{_0x18881d=this[_0x568e9a(0x240)](_0x2e954e);if(_0x18881d&&_0x18881d['includes'](_0x1d62d8[_0x568e9a(0x202)]))return null;}catch(_0x72ea56){logger[_0x568e9a(0x1f5)](_0x568e9a(0x21b)+util[_0x568e9a(0x236)](_0x72ea56)),_0x18881d=null;}const _0x428c4b=this[_0x568e9a(0x22c)](_0x2e954e),_0x58e3c3=this['getName'](_0x2e954e),_0x3dacef=_0x1d62d8['bvlCU'](_0x18881d,_0x1d62d8[_0x568e9a(0x24d)]);let _0x8ec992=[];if(_0x1d62d8[_0x568e9a(0x234)](_0x2e954e[_0x568e9a(0x257)],undefined))_0x8ec992=[_0x2e954e['errorsDetailed'],_0x1d62d8['Hcdde']];else _0x1d62d8[_0x568e9a(0x234)](_0x3d23ac,undefined)&&(_0x8ec992=[_0x3d23ac,_0x1d62d8['fxgly']]);const _0x2e41fe=_0x1d62d8['GrdkH'](_0x2e954e[_0x568e9a(0x257)],undefined)?util['inspect'](_0x2e954e[_0x568e9a(0x257)][0x0]):_0x1d62d8[_0x568e9a(0x234)](_0x3d23ac,undefined)?_0x3d23ac[_0x568e9a(0x1c8)]():undefined;let _0x1969d4=_0x1d62d8[_0x568e9a(0x226)];if(_0x1d62d8[_0x568e9a(0x1df)](_0x4fcde5,_0x1d62d8['oHihj']))_0x1969d4=_0x1d62d8[_0x568e9a(0x256)];else _0x2e954e[_0x568e9a(0x257)]&&_0x1d62d8['XoOyl'](_0x2e954e[_0x568e9a(0x257)][_0x568e9a(0x229)],0x0)?_0x1969d4=_0x1d62d8[_0x568e9a(0x204)]:_0x1969d4=_0x1d62d8[_0x568e9a(0x272)];let _0x4cbf72=null;if(_0x1d62d8['GrdkH'](_0x2e954e['duration'],undefined))_0x4cbf72=_0x2e954e[_0x568e9a(0x24c)];else(_0x4fcde5[_0x568e9a(0x1ed)](/Finished/)||_0x4fcde5[_0x568e9a(0x1ed)](/Skipped/))&&(_0x2e954e[_0x568e9a(0x251)]&&(_0x4cbf72=_0x1d62d8[_0x568e9a(0x24b)](Date[_0x568e9a(0x225)](),new Date(_0x2e954e['started_at'])[_0x568e9a(0x1cb)]())));const _0x5002ed=_0x2e954e['fn']?_0x2e954e['fn']['toString']():null,_0x17231c={'id':_0x5a12e8,'uuid':_0x5a12e8,'startedAt':_0x2e954e[_0x568e9a(0x251)]||new Date()[_0x568e9a(0x244)](),'finishedAt':_0x4fcde5['match'](/Finished/)||_0x4fcde5[_0x568e9a(0x1ed)](/Skipped/)?new Date()[_0x568e9a(0x244)]():null,'type':_0x1d62d8[_0x568e9a(0x1cc)],'body':{'lang':_0x1d62d8['hwuXK'],'code':_0x5002ed},'name':_0x58e3c3,'scopes':_0x428c4b,'file_name':_0x3dacef,'location':_0x3dacef,'vc_filepath':this[_0x568e9a(0x23a)]&&_0x18881d?path[_0x568e9a(0x212)](this['_gitConfigPath'],_0x18881d):null,'framework':_0x1d62d8[_0x568e9a(0x25e)],'result':_0x1969d4,'failure_reason':_0x2e41fe,'duration_in_ms':_0x4cbf72,'failure':failureData[_0x568e9a(0x255)](null,_0x8ec992),'failure_type':!_0x2e41fe?null:_0x1d62d8[_0x568e9a(0x253)](getFailureType,_0x2e41fe),'retry_of':_0x2e954e['retryOf']||null,'customRerunParam':{'rerun_name':_0x58e3c3}};_0x1d62d8[_0x568e9a(0x24f)](_0x4fcde5,_0x1d62d8[_0x568e9a(0x1fd)])&&!_0x17231c[_0x568e9a(0x249)]&&(_0x17231c[_0x568e9a(0x249)]=_0x17231c[_0x568e9a(0x248)]);const _0x2f5f07=_0x17231c['failure']&&_0x17231c[_0x568e9a(0x233)][0x0];return _0x2f5f07&&(_0x17231c[_0x568e9a(0x219)]=_0x2f5f07[_0x568e9a(0x1e5)],_0x17231c['failure_reason_expanded']=_0x2f5f07['expanded']),(_0x1d62d8['AHthK'](_0x4fcde5,_0x1d62d8[_0x568e9a(0x1e9)])||_0x1d62d8[_0x568e9a(0x245)](_0x4fcde5,_0x1d62d8['oHihj']))&&(_0x2e954e[_0x568e9a(0x1d8)]&&(_0x17231c[_0x568e9a(0x1d8)]=_0x2e954e[_0x568e9a(0x1d8)])),_0x17231c;}catch(_0x2662d4){return logger[_0x568e9a(0x1f5)]('Exception\x20in\x20createTestFrameworkData:\x20'+util[_0x568e9a(0x236)](_0x2662d4)),null;}}async[a91_0xc7f011(0x25a)](_0x3b9b3f,_0x23372d,_0x2aa665,_0x7c660b){const _0x5d841e=a91_0xc7f011,_0x4dabb2={'qIUNs':_0x5d841e(0x1d3),'gOrZP':_0x5d841e(0x224),'UZJWe':'browserstack-node-agent/src/bin/jest','BHNWN':'unknown','DLUjV':_0x5d841e(0x1c3),'QKAiM':function(_0x208464,_0x3c7dfa){return _0x208464===_0x3c7dfa;},'oLXqC':_0x5d841e(0x252),'mtqEq':function(_0x1007bf,_0x36ef56){return _0x1007bf>_0x36ef56;},'LsmPX':_0x5d841e(0x1d4),'SLgnZ':function(_0x29dc18,_0x456925){return _0x29dc18(_0x456925);},'Yxkii':_0x5d841e(0x23d),'nNoJK':_0x5d841e(0x20d),'imuvj':_0x5d841e(0x220),'DipFE':_0x5d841e(0x23e),'ELVUL':_0x5d841e(0x228),'Vrddm':_0x5d841e(0x21d)};logger[_0x5d841e(0x1f5)](_0x5d841e(0x201)+_0x2aa665+_0x5d841e(0x247)+_0x23372d+_0x5d841e(0x1c7)+_0x7c660b);try{if(!_0x3b9b3f)return logger['debug'](_0x4dabb2['qIUNs']),null;if(this[_0x5d841e(0x20b)](_0x3b9b3f))return null;await this[_0x5d841e(0x254)]();let _0x1deb4c=null;try{_0x1deb4c=this[_0x5d841e(0x240)](_0x3b9b3f);if(_0x1deb4c&&_0x1deb4c[_0x5d841e(0x21a)](_0x4dabb2['gOrZP']))return null;if(_0x1deb4c&&_0x1deb4c[_0x5d841e(0x21a)](_0x4dabb2[_0x5d841e(0x26b)]))return null;}catch(_0x4d8a8d){logger[_0x5d841e(0x1f5)]('Failed\x20to\x20get\x20hook\x20file\x20path:\x20'+util['format'](_0x4d8a8d));}const _0x1a4f0b=this['getName'](_0x3b9b3f),_0x506648=_0x3b9b3f[_0x5d841e(0x1ce)]||_0x4dabb2[_0x5d841e(0x250)],_0x236d94=HOOK_TYPES_MAP[_0x506648]||_0x506648[_0x5d841e(0x223)](),_0x498740=_0x3b9b3f[_0x5d841e(0x209)]&&_0x3b9b3f[_0x5d841e(0x209)][_0x5d841e(0x266)]?_0x3b9b3f[_0x5d841e(0x209)][_0x5d841e(0x266)]:'';let _0x2c87ef=_0x4dabb2[_0x5d841e(0x206)],_0x45eee0=null,_0x5a095e=null,_0x2f7604=null,_0xd8a16e=null;_0x4dabb2[_0x5d841e(0x26d)](_0x2aa665,_0x4dabb2[_0x5d841e(0x232)])&&(_0xd8a16e=new Date()[_0x5d841e(0x244)](),_0x3b9b3f[_0x5d841e(0x257)]&&_0x4dabb2[_0x5d841e(0x262)](_0x3b9b3f[_0x5d841e(0x257)][_0x5d841e(0x229)],0x0)?(_0x2c87ef=_0x4dabb2[_0x5d841e(0x20e)],_0x5a095e=util[_0x5d841e(0x265)](_0x3b9b3f[_0x5d841e(0x257)][0x0]),_0x45eee0=_0x4dabb2[_0x5d841e(0x1e7)](getFailureType,_0x5a095e),_0x2f7604=failureData['apply'](null,[_0x3b9b3f['errorsDetailed'],_0x4dabb2['Yxkii']])):_0x2c87ef=_0x4dabb2['nNoJK']);const _0x497731={'uuid':_0x23372d,'type':_0x4dabb2[_0x5d841e(0x23b)],'hook_type':_0x236d94,'name':_0x1a4f0b,'body':{'lang':_0x4dabb2['DipFE'],'code':_0x3b9b3f['fn']?_0x3b9b3f['fn'][_0x5d841e(0x1c8)]():null},'tags':[],'test_run_id':_0x7c660b,'scope':_0x498740,'scopes':[_0x498740],'file_name':_0x1deb4c,'location':_0x1deb4c,'vc_filepath':this['_gitConfigPath']&&_0x1deb4c?path['relative'](this['_gitConfigPath'],_0x1deb4c):null,'result':_0x2c87ef,'started_at':_0x3b9b3f[_0x5d841e(0x251)]||new Date()['toISOString'](),'finished_at':_0xd8a16e,'failure_type':_0x45eee0,'failure_reason':_0x5a095e,'failure_data':_0x2f7604,'framework':_0x4dabb2[_0x5d841e(0x25b)]};return _0x4dabb2[_0x5d841e(0x26d)](_0x2aa665,_0x4dabb2['Vrddm'])&&(hooksMap[_0x7c660b]?hooksMap[_0x7c660b][_0x5d841e(0x1dd)](_0x497731):hooksMap[_0x7c660b]=[_0x497731]),_0x497731;}catch(_0x4093bd){return logger[_0x5d841e(0x1f5)](_0x5d841e(0x1f6)+util['format'](_0x4093bd)),null;}}[a91_0xc7f011(0x1d1)](_0x5a020c,_0x5ce117,_0x552174){const _0x17bb3e=a91_0xc7f011,_0x5c5980={'hrYYu':function(_0x1c4b0d,_0x249914){return _0x1c4b0d>_0x249914;},'ycPNd':_0x17bb3e(0x1d4),'kqavJ':function(_0x2fc7c7,_0x1b568a){return _0x2fc7c7(_0x1b568a);},'PtZXQ':_0x17bb3e(0x23d),'TddiO':_0x17bb3e(0x20d)};try{const _0x387efc=hooksMap[_0x5a020c];if(!_0x387efc)return null;const _0x4baeab=_0x387efc[_0x17bb3e(0x246)](_0x57fa3f=>_0x57fa3f[_0x17bb3e(0x1e1)]===_0x5ce117);if(!_0x4baeab)return null;return _0x4baeab[_0x17bb3e(0x239)]=new Date()[_0x17bb3e(0x244)](),_0x552174['errorsDetailed']&&_0x5c5980['hrYYu'](_0x552174['errorsDetailed'][_0x17bb3e(0x229)],0x0)?(_0x4baeab['result']=_0x5c5980[_0x17bb3e(0x261)],_0x4baeab['failure_reason']=util[_0x17bb3e(0x265)](_0x552174[_0x17bb3e(0x257)][0x0]),_0x4baeab[_0x17bb3e(0x22a)]=_0x5c5980[_0x17bb3e(0x230)](getFailureType,_0x4baeab['failure_reason']),_0x4baeab['failure_data']=failureData[_0x17bb3e(0x255)](null,[_0x552174['errorsDetailed'],_0x5c5980[_0x17bb3e(0x213)]])):_0x4baeab[_0x17bb3e(0x1d6)]=_0x5c5980[_0x17bb3e(0x1eb)],_0x4baeab;}catch(_0x5b9c2f){return logger[_0x17bb3e(0x1f5)]('Exception\x20in\x20getHookRunEventData:\x20'+util[_0x17bb3e(0x236)](_0x5b9c2f)),null;}}[a91_0xc7f011(0x1e2)](_0x314c93){const _0x56fdea=a91_0xc7f011,_0x226490={};_0x226490['IQgSB']=function(_0x161565,_0x428d4d){return _0x161565!==_0x428d4d;},_0x226490['GLWil']=_0x56fdea(0x23d),_0x226490[_0x56fdea(0x1e3)]=_0x56fdea(0x270);const _0xe57976=_0x226490;if(_0xe57976[_0x56fdea(0x1d5)](_0x314c93['type'],_0xe57976[_0x56fdea(0x1ef)]))return'\x22'+_0x314c93['type']+_0x56fdea(0x237)+(_0x314c93[_0x56fdea(0x209)]&&_0x314c93[_0x56fdea(0x209)][_0x56fdea(0x266)])+'\x22';return _0x314c93['name']||_0xe57976['dxcKu'];}[a91_0xc7f011(0x22c)](_0x21ad77){const _0x44f0e9=a91_0xc7f011,_0x4921ff={};_0x4921ff[_0x44f0e9(0x26a)]=function(_0x24e6bb,_0x234ba5){return _0x24e6bb!==_0x234ba5;},_0x4921ff[_0x44f0e9(0x1d9)]=_0x44f0e9(0x1f8);const _0x1b4289=_0x4921ff,_0xdc9143=[];if(_0x21ad77&&_0x21ad77[_0x44f0e9(0x209)]){let _0x544a39=_0x21ad77[_0x44f0e9(0x209)];while(_0x544a39&&_0x544a39[_0x44f0e9(0x266)]&&_0x1b4289[_0x44f0e9(0x26a)](_0x544a39[_0x44f0e9(0x266)],'')&&_0x1b4289[_0x44f0e9(0x26a)](_0x544a39[_0x44f0e9(0x266)],_0x1b4289[_0x44f0e9(0x1d9)])){_0xdc9143[_0x44f0e9(0x1dd)](_0x544a39['name']),_0x544a39=_0x544a39[_0x44f0e9(0x209)];}}return _0xdc9143[_0x44f0e9(0x242)](),_0xdc9143;}[a91_0xc7f011(0x240)](_0x51024e){const _0x25f5e8=a91_0xc7f011;if(_0x51024e['asyncError'])try{const _0x4e882e=stackTrace[_0x25f5e8(0x1f0)][_0x25f5e8(0x1cd)](stackTrace,_0x51024e[_0x25f5e8(0x258)]);if(_0x4e882e[0x0]&&_0x4e882e[0x0]['getFileName'])return _0x4e882e[0x0][_0x25f5e8(0x260)]();}catch(_0x527233){logger['debug'](_0x25f5e8(0x1ee)+util[_0x25f5e8(0x236)](_0x527233));}if(_0x51024e[_0x25f5e8(0x1ca)])return _0x51024e[_0x25f5e8(0x1ca)];return null;}[a91_0xc7f011(0x20b)](_0x5a1c8b){const _0x341386=a91_0xc7f011,_0x344ccc={};_0x344ccc[_0x341386(0x263)]=_0x341386(0x224);const _0x4ca8dc=_0x344ccc;try{const _0x2711c4=this[_0x341386(0x240)](_0x5a1c8b);if(_0x2711c4&&_0x2711c4[_0x341386(0x21a)](_0x4ca8dc[_0x341386(0x263)]))return!![];}catch(_0x55debe){logger[_0x341386(0x1f5)](_0x341386(0x1cf)+util['format'](_0x55debe));}return![];}[a91_0xc7f011(0x231)](_0x56c0f9=null){const _0xa52130=a91_0xc7f011;try{const _0x48d0c8=_0x56c0f9||global['__workerDetails']||{};if(global['__jestCurrentTestIdentifier'])return global[_0xa52130(0x235)];if(_0x48d0c8?.[_0xa52130(0x1de)]?.['testAnalyticsId'])return _0x48d0c8[_0xa52130(0x1de)][_0xa52130(0x1f2)];if(_0x48d0c8?.['currentTest']?.['id'])return _0x48d0c8[_0xa52130(0x1de)]['id'];return null;}catch(_0x18cabb){return logger[_0xa52130(0x1f5)](_0xa52130(0x21e)+util[_0xa52130(0x236)](_0x18cabb)),null;}}async['configureGit'](){const _0x4785b3=a91_0xc7f011,_0x582c5c={'oZNHP':function(_0xc9f37d){return _0xc9f37d();}};if(this[_0x4785b3(0x1fe)])return this[_0x4785b3(0x23a)];const _0x233d59=await _0x582c5c[_0x4785b3(0x203)](getGitMetaData);_0x233d59&&(this[_0x4785b3(0x23a)]=_0x233d59[_0x4785b3(0x217)]),this[_0x4785b3(0x1fe)]=!![];}[a91_0xc7f011(0x20f)](_0x20abf7){hooksMap[_0x20abf7]&&delete hooksMap[_0x20abf7];}['extractTestFilePath'](_0x4f77fa){const _0x5adb26=a91_0xc7f011,_0x11fa64={'pZSdE':'jest-circus','gfRig':function(_0x2e1a08,_0x497565){return _0x2e1a08(_0x497565);},'qXWNr':_0x5adb26(0x211)};if(_0x4f77fa[_0x5adb26(0x1ca)])return _0x4f77fa['file'];if(_0x4f77fa[_0x5adb26(0x258)]){try{const _0x36008d=stackTrace[_0x5adb26(0x1f0)](_0x4f77fa[_0x5adb26(0x258)]);if(_0x36008d[0x0]&&_0x36008d[0x0]['getFileName']){const _0x5e178c=_0x36008d[0x0][_0x5adb26(0x260)]();if(_0x5e178c&&!_0x5e178c[_0x5adb26(0x21a)](_0x11fa64[_0x5adb26(0x24e)]))return _0x5e178c;}}catch(_0x153677){logger[_0x5adb26(0x1f5)](_0x5adb26(0x205)+util['format'](_0x153677));}if(_0x4f77fa['asyncError'][_0x5adb26(0x207)]){const _0x2a471b=_0x4f77fa['asyncError'][_0x5adb26(0x207)]['split']('\x0a');for(const _0x53b954 of _0x2a471b){const _0x24c846=_0x53b954['match'](/at (.+?):\d+:\d+/);if(_0x24c846&&_0x24c846[0x1]&&!_0x24c846[0x1][_0x5adb26(0x21a)](_0x11fa64[_0x5adb26(0x24e)]))return _0x24c846[0x1];}}}let _0x1b9bdf=_0x4f77fa[_0x5adb26(0x209)];while(_0x1b9bdf){if(_0x1b9bdf[_0x5adb26(0x1ca)])return _0x1b9bdf[_0x5adb26(0x1ca)];if(_0x1b9bdf['asyncError'])try{const _0x3cc130=stackTrace['parse'](_0x1b9bdf[_0x5adb26(0x258)]);if(_0x3cc130[0x0]&&_0x3cc130[0x0]['getFileName']){const _0x176a57=_0x3cc130[0x0][_0x5adb26(0x260)]();if(_0x176a57&&!_0x176a57['includes'](_0x11fa64[_0x5adb26(0x24e)]))return _0x176a57;}}catch(_0x301284){}_0x1b9bdf=_0x1b9bdf[_0x5adb26(0x209)];}try{const _0x20c0e7=_0x11fa64[_0x5adb26(0x227)](require,_0x11fa64[_0x5adb26(0x1dc)]);if(_0x20c0e7&&_0x20c0e7[_0x5adb26(0x1e6)]){const _0x103db6=_0x20c0e7[_0x5adb26(0x1e6)]();if(_0x103db6&&_0x103db6[_0x5adb26(0x264)])return _0x103db6[_0x5adb26(0x264)];}}catch(_0xf9a78e){logger['debug'](_0x5adb26(0x20a)+util[_0x5adb26(0x236)](_0xf9a78e));}return null;}[a91_0xc7f011(0x1c4)](_0x557e61){const _0x5c7bc8=a91_0xc7f011,_0x17b633={};_0x17b633[_0x5c7bc8(0x259)]=_0x5c7bc8(0x23c),_0x17b633[_0x5c7bc8(0x26c)]=function(_0x4b1dba,_0x36a7bf){return _0x4b1dba!==_0x36a7bf;},_0x17b633['DqoMX']='ROOT_DESCRIBE_BLOCK',_0x17b633[_0x5c7bc8(0x273)]='jest-circus',_0x17b633[_0x5c7bc8(0x222)]=_0x5c7bc8(0x210),_0x17b633['ifPgo']=_0x5c7bc8(0x1f4);const _0x393334=_0x17b633;try{if(!_0x557e61)return logger[_0x5c7bc8(0x1f1)](_0x393334[_0x5c7bc8(0x259)]),null;const _0x4ef860=_0x557e61[_0x5c7bc8(0x1f3)]||_0x557e61['name']||_0x557e61[_0x5c7bc8(0x1ff)]||_0x557e61[_0x5c7bc8(0x21c)];let _0x429f14=_0x4ef860;if(_0x557e61[_0x5c7bc8(0x209)]&&_0x557e61['parent'][_0x5c7bc8(0x266)]&&_0x393334['ONYfD'](_0x557e61[_0x5c7bc8(0x209)][_0x5c7bc8(0x266)],_0x393334[_0x5c7bc8(0x1ec)])){const _0x441a2d=_0x557e61[_0x5c7bc8(0x266)]||_0x557e61[_0x5c7bc8(0x1ff)];_0x441a2d&&(_0x429f14=_0x557e61[_0x5c7bc8(0x209)][_0x5c7bc8(0x266)]+'\x20'+_0x441a2d);}let _0x55663f=_0x557e61[_0x5c7bc8(0x264)];if(!_0x55663f&&_0x557e61[_0x5c7bc8(0x258)]){try{const _0x402a7f=stackTrace['parse'](_0x557e61[_0x5c7bc8(0x258)]);if(_0x402a7f[0x0]&&_0x402a7f[0x0][_0x5c7bc8(0x260)]){const _0x8012d9=_0x402a7f[0x0][_0x5c7bc8(0x260)]();_0x8012d9&&!_0x8012d9[_0x5c7bc8(0x21a)](_0x393334[_0x5c7bc8(0x273)])&&(_0x55663f=_0x8012d9);}}catch(_0x50eb87){logger[_0x5c7bc8(0x1f5)]('[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util['format'](_0x50eb87));}if(!_0x55663f&&_0x557e61[_0x5c7bc8(0x258)][_0x5c7bc8(0x207)]){const _0x4adae2=_0x557e61['asyncError'][_0x5c7bc8(0x207)][_0x5c7bc8(0x1ea)]('\x0a');for(const _0x21d869 of _0x4adae2){const _0x370154=_0x21d869[_0x5c7bc8(0x1ed)](/at (.+?):\d+:\d+/);if(_0x370154&&_0x370154[0x1]&&!_0x370154[0x1][_0x5c7bc8(0x21a)](_0x393334[_0x5c7bc8(0x273)])){_0x55663f=_0x370154[0x1];break;}}}}const _0x2efd96=_0x55663f+'::'+_0x429f14,_0x3b73ca=crypto[_0x5c7bc8(0x241)](_0x393334['bMtnd'])[_0x5c7bc8(0x26e)](_0x2efd96)['digest'](_0x393334[_0x5c7bc8(0x1f9)])[_0x5c7bc8(0x1d7)](0x0,0x8),_0xfaf134=process[_0x5c7bc8(0x24a)]+':jest-'+_0x3b73ca;return logger[_0x5c7bc8(0x1f5)](_0x5c7bc8(0x22e)+_0xfaf134+_0x5c7bc8(0x271)+_0x2efd96),_0xfaf134;}catch(_0x1ad1f0){return logger[_0x5c7bc8(0x1f1)](_0x5c7bc8(0x243)+util['format'](_0x1ad1f0)),null;}}[a91_0xc7f011(0x22f)](_0x5f457d){const _0x45bee7=a91_0xc7f011,_0x7c32df={};_0x7c32df[_0x45bee7(0x1f7)]=_0x45bee7(0x20c);const _0x5bb5b5=_0x7c32df;if(!_0x5f457d)return logger['debug'](_0x5bb5b5[_0x45bee7(0x1f7)]),null;const _0x5a37df=this['extractTestFilePath'](_0x5f457d),_0x17337f={};_0x17337f[_0x45bee7(0x266)]=_0x5f457d[_0x45bee7(0x266)]||_0x5f457d[_0x45bee7(0x1ff)],_0x17337f[_0x45bee7(0x209)]=_0x5f457d['parent'],_0x17337f[_0x45bee7(0x264)]=_0x5a37df,_0x17337f['asyncError']=_0x5f457d[_0x45bee7(0x258)];const _0x1ce144=_0x17337f;return this['createJestTestIdentifier'](_0x1ce144);}[a91_0xc7f011(0x275)](_0x2d7ea3){const _0x5990b7=a91_0xc7f011,_0x50b018={};_0x50b018[_0x5990b7(0x1c5)]='[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation';const _0x19bb43=_0x50b018;if(!_0x2d7ea3)return logger['debug'](_0x19bb43[_0x5990b7(0x1c5)]),null;if(_0x2d7ea3[_0x5990b7(0x21f)])return logger['debug'](_0x5990b7(0x200)+_0x2d7ea3[_0x5990b7(0x21f)]),_0x2d7ea3['testIdentifier'];return this[_0x5990b7(0x1c4)](_0x2d7ea3);}}function a91_0x51cc(){const _0xf9bd1e=['errorsDetailed','asyncError','kNwnu','createHookData','ELVUL','350IFxhBh','9112oBivdP','XjySA','Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20','getFileName','ycPNd','mtqEq','wkBWB','testPath','inspect','name','err','util','BEFORE_ALL','lZmaQ','UZJWe','ONYfD','QKAiM','update','4614Zypvjs','Unknown\x20Test','\x20from\x20compositeKey:\x20','sdjKM','aZoQM','../../../helpers/test-observability/utils','recreateIdentifierFromTestInfo','File\x20path\x20could\x20not\x20be\x20found','pending','createJestTestIdentifier','BXNGq','afterEach',',\x20testRunId:\x20','toString','2279648CgiNAU','file','getTime','Hcdde','call','type','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','6412KWUUiY','getHookRunEventData','6SVdOkl','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','failed','IQgSB','result','substring','hooks','mhsAo','6484239WGlwmo','TestRunFinished','qXWNr','push','currentTest','AHthK','szsGJ','uuid','getName','dxcKu','../TestInfo.js','backtrace','getState','SLgnZ','../../../helpers/helper.js','BtTAR','split','TddiO','DqoMX','match','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','GLWil','parse','error','testAnalyticsId','fullName','hex','debug','Exception\x20in\x20createHookData:\x20','wDMAe','ROOT_DESCRIBE_BLOCK','ifPgo','AFTER_EACH','skipped','winstonLogger','oHihj','_gitConfigured','title','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','Creating\x20hook\x20data\x20for\x20eventType:\x20','uAoLK','oZNHP','PPyNq','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','DLUjV','stack','afterAll','parent','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','isJestInternalHook','[jestUtils]\x20No\x20test\x20object\x20provided','passed','LsmPX','clearHooksMap','md5','expect','relative','PtZXQ','1506756wJYNSY','beforeAll','../../../helpers/test-observability/error-handler.js','root','beforeEach','failure_backtrace','includes','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','displayName','HookRunStarted','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','testIdentifier','hook','../../../helpers/logger.js','bMtnd','toUpperCase','jest-circus','now','oRkSA','gfRig','jest','length','failure_type','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','getHierarchy','69166TnkcBv','[jestUtils]\x20Created\x20identifier:\x20','createIdentifierFromJestTest','kqavJ','getTestIdentifier','oLXqC','failure','HkLUk','__jestCurrentTestIdentifier','format','\x22\x20hook\x20for\x20\x22','createTestFrameworkData','finished_at','_gitConfigPath','imuvj','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier','test','javascript','17135720KddQyE','getRootParentFile','createHash','reverse','[jestUtils]\x20Error\x20creating\x20identifier:\x20','toISOString','kfrKW','find',',\x20hookUUID:\x20','finishedAt','startedAt','pid','Wabbj','duration','NsApt','pZSdE','cLTqR','BHNWN','started_at','HookRunFinished','OdfiW','configureGit','apply','FibBe'];a91_0x51cc=function(){return _0xf9bd1e;};return a91_0x51cc();}module['exports']=o11yClassErrorHandler(JestUtils,[a91_0xc7f011(0x254),a91_0xc7f011(0x22c),a91_0xc7f011(0x240),a91_0xc7f011(0x1e2),a91_0xc7f011(0x20b),'getTestIdentifier',a91_0xc7f011(0x238),a91_0xc7f011(0x25a),a91_0xc7f011(0x1d1),a91_0xc7f011(0x20f),'extractTestFilePath',a91_0xc7f011(0x1c4),a91_0xc7f011(0x22f),a91_0xc7f011(0x275)]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a92_0x471422=a92_0xe85c;(function(_0x40297c,_0x322a63){const _0x51f60b=a92_0xe85c,_0x538f39=_0x40297c();while(!![]){try{const _0x1089d8=parseInt(_0x51f60b(0x1c2))/0x1+parseInt(_0x51f60b(0x1cb))/0x2+-parseInt(_0x51f60b(0x1c1))/0x3*(-parseInt(_0x51f60b(0x1c9))/0x4)+parseInt(_0x51f60b(0x19b))/0x5*(parseInt(_0x51f60b(0x1bc))/0x6)+-parseInt(_0x51f60b(0x1ad))/0x7*(parseInt(_0x51f60b(0x1b1))/0x8)+parseInt(_0x51f60b(0x1b7))/0x9*(-parseInt(_0x51f60b(0x1b3))/0xa)+-parseInt(_0x51f60b(0x19e))/0xb*(parseInt(_0x51f60b(0x1c7))/0xc);if(_0x1089d8===_0x322a63)break;else _0x538f39['push'](_0x538f39['shift']());}catch(_0x2bbac){_0x538f39['push'](_0x538f39['shift']());}}}(a92_0x3987,0xbf9cd));const fs=require('fs'),path=require('path'),{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),PerformanceTester=require(a92_0x471422(0x1b6)),PerformanceEvents=require(a92_0x471422(0x1b4))[a92_0x471422(0x1ce)],utilities=require(a92_0x471422(0x19d)),{parallelVanillaRun}=require(a92_0x471422(0x1aa)),TestHubHandler=require(a92_0x471422(0x1a9));async function run(_0x5c74c9,_0x346710,_0x331b3a){const _0x51f627=a92_0x471422,_0x3a99ba={'zmOii':_0x51f627(0x1cd),'mqGtL':function(_0x384b52,_0x4eedf8){return _0x384b52(_0x4eedf8);},'pFuSb':_0x51f627(0x19a),'VpIxj':_0x51f627(0x1a3),'bVrcx':function(_0x5245e0,_0x42bc9a){return _0x5245e0>_0x42bc9a;},'gSUIX':function(_0x5d5695,_0x95737b){return _0x5d5695>_0x95737b;},'RlcGj':function(_0x2f97be,_0x1c7a81){return _0x2f97be*_0x1c7a81;},'aIRPT':function(_0x25a985,_0xbab394,_0x550819){return _0x25a985(_0xbab394,_0x550819);}};await _0x331b3a[_0x51f627(0x1cc)](_0x5c74c9),await helper[_0x51f627(0x1ac)](_0x331b3a['config']);const _0xc07388=[];if(helper[_0x51f627(0x1a4)](_0x5c74c9['_'][0x1]))throw _0x3a99ba[_0x51f627(0x1b5)](Error,_0x3a99ba[_0x51f627(0x1ba)]);const _0x226040=path[_0x51f627(0x1bd)](process[_0x51f627(0x19f)](),_0x5c74c9['_'][0x1]);if(!fs[_0x51f627(0x1c3)](_0x226040))throw _0x3a99ba[_0x51f627(0x1b5)](Error,'File\x20'+_0x5c74c9['_'][0x1]+_0x51f627(0x1c5));if(!_0x331b3a[_0x51f627(0x1af)])throw _0x3a99ba[_0x51f627(0x1b5)](Error,_0x3a99ba[_0x51f627(0x1a7)]);const _0x1b7c87=helper[_0x51f627(0x1ae)](_0x331b3a[_0x51f627(0x1af)]);_0x331b3a[_0x51f627(0x1af)][_0x51f627(0x1a1)]&&_0x3a99ba[_0x51f627(0x1b9)](_0x331b3a[_0x51f627(0x1af)][_0x51f627(0x1a1)][_0x51f627(0x1bb)],0x0)&&_0x331b3a[_0x51f627(0x1af)][_0x51f627(0x1a1)][_0x51f627(0x1b2)]((_0x2037d6,_0x5239bb)=>{const _0x56e29=_0x51f627;_0x1b7c87?_0xc07388['push'](helper[_0x56e29(0x1a5)](_0x331b3a[_0x56e29(0x1af)],_0x3a99ba[_0x56e29(0x1a2)],_0x5239bb)):_0xc07388[_0x56e29(0x1bf)](helper[_0x56e29(0x1b8)](_0x331b3a[_0x56e29(0x1af)],_0x3a99ba['zmOii'],_0x5239bb));});let _0x19c1d7,_0x376d93;const _0x30c4af=[];if(_0x3a99ba['gSUIX'](_0xc07388['length'],0x0))_0xc07388['forEach']((_0x5ab9d8,_0x2b48a7)=>{const _0x1c9437=_0x51f627,_0x4541ca={};_0x4541ca[_0x1c9437(0x1c8)]=_0x2b48a7,_0x19c1d7={'server':helper[_0x1c9437(0x1a8)](_0x331b3a[_0x1c9437(0x1af)]),'proxySettings':_0x331b3a['config'][_0x1c9437(0x199)],'platform':helper[_0x1c9437(0x19c)](_0x5ab9d8),'platformCaps':Object[_0x1c9437(0x1ab)](_0x4541ca,_0x331b3a[_0x1c9437(0x1af)][_0x1c9437(0x1a1)][_0x2b48a7])};const _0x42a39f={'capability':_0x5ab9d8,..._0x19c1d7};_0x42a39f[_0x1c9437(0x1b0)]=_0x226040,_0x42a39f[_0x1c9437(0x1a0)]=_0x346710;const _0x1d30f0={};_0x1d30f0[_0x1c9437(0x1a6)]=_0x42a39f,_0x376d93=_0x1d30f0,_0x30c4af[_0x1c9437(0x1bf)](_0x376d93);});else{let _0x391bc1;_0x1b7c87?_0x391bc1=helper[_0x51f627(0x1a5)](_0x331b3a[_0x51f627(0x1af)],_0x3a99ba[_0x51f627(0x1a2)],0x0):_0x391bc1=helper['modifyBrowserStackCaps'](_0x331b3a['config'],_0x3a99ba[_0x51f627(0x1a2)],0x0);_0x19c1d7={'server':helper['getHubUrl'](_0x331b3a[_0x51f627(0x1af)]),'proxySettings':_0x331b3a[_0x51f627(0x1af)][_0x51f627(0x199)]};const _0x475c0c={'capability':_0x391bc1,..._0x19c1d7};_0x475c0c[_0x51f627(0x1b0)]=_0x226040,_0x475c0c[_0x51f627(0x1a0)]=_0x346710;const _0x5190e2={};_0x5190e2['configuration']=_0x475c0c,_0x376d93=_0x5190e2,_0x30c4af[_0x51f627(0x1bf)](_0x376d93);}const _0x2a002a=await TestHubHandler[_0x51f627(0x1c4)](_0x3a99ba[_0x51f627(0x1a2)],_0x331b3a),_0x540991=_0x3a99ba[_0x51f627(0x1ca)](_0x331b3a['config'][_0x51f627(0x1a1)][_0x51f627(0x1bb)]||0x1,_0x331b3a[_0x51f627(0x1af)][_0x51f627(0x1be)]||0x1);PerformanceTester[_0x51f627(0x1cf)](PerformanceEvents[_0x51f627(0x1c0)]),_0x3a99ba['aIRPT'](parallelVanillaRun,_0x30c4af,_0x540991)['then'](_0x3f8df6=>{})['finally'](async()=>{PerformanceTester['start'](PerformanceEvents['SDK_CLEANUP']),await utilities['finalExecution'](_0x331b3a);});}function a92_0xe85c(_0x270186,_0x221de6){const _0x398789=a92_0x3987();return a92_0xe85c=function(_0xe85c17,_0x466dd3){_0xe85c17=_0xe85c17-0x199;let _0x5ca686=_0x398789[_0xe85c17];return _0x5ca686;},a92_0xe85c(_0x270186,_0x221de6);}module[a92_0x471422(0x1c6)]=run;function a92_0x3987(){const _0x48c7ff=['length','213222jeprMN','join','parallelsPerPlatform','push','SDK_SETUP','1672089JuvBJi','1470330NCGBmH','existsSync','launchBuild','\x20doesn\x27t\x20exist','exports','414588GEONAy','index','8ZSoDQD','RlcGj','1038396iObafN','initialize','vanilla','EVENTS','end','proxySettings','File\x20path\x20is\x20required','155zlHZpp','getPlatformName','../../helpers/utilities','407pHFRub','cwd','args','platforms','zmOii','Config\x20yml\x20is\x20required','isUndefined','modifyBrowserStackW3CCaps','configuration','VpIxj','getHubUrl','../../helpers/testhub/testhubHandler','../test-runner','assign','handleApp','15519NpgVZZ','useW3C','config','file','3064cODIHg','forEach','95120hAQUIe','../../helpers/performance/constants','mqGtL','../../helpers/performance/performance-tester','1224ixZtRf','modifyBrowserStackCaps','bVrcx','pFuSb'];a92_0x3987=function(){return _0x48c7ff;};return a92_0x3987();}
|
package/src/browserStackSdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a93_0x4be6(_0x40e8bf,_0x342880){const _0xdac51c=a93_0xdac5();return a93_0x4be6=function(_0x4be643,_0x5a712d){_0x4be643=_0x4be643-0x11c;let _0x21127f=_0xdac51c[_0x4be643];return _0x21127f;},a93_0x4be6(_0x40e8bf,_0x342880);}const a93_0xcfb5f3=a93_0x4be6;(function(_0x55f536,_0x42fad4){const _0xf6a2ca=a93_0x4be6,_0x3d4bfb=_0x55f536();while(!![]){try{const _0x39e321=-parseInt(_0xf6a2ca(0x126))/0x1+-parseInt(_0xf6a2ca(0x137))/0x2+-parseInt(_0xf6a2ca(0x11c))/0x3+-parseInt(_0xf6a2ca(0x130))/0x4+-parseInt(_0xf6a2ca(0x12c))/0x5+parseInt(_0xf6a2ca(0x13b))/0x6+parseInt(_0xf6a2ca(0x123))/0x7*(parseInt(_0xf6a2ca(0x125))/0x8);if(_0x39e321===_0x42fad4)break;else _0x3d4bfb['push'](_0x3d4bfb['shift']());}catch(_0x394742){_0x3d4bfb['push'](_0x3d4bfb['shift']());}}}(a93_0xdac5,0xe835f));const TestMetadata=require(a93_0xcfb5f3(0x11f));class BrowserStackSdk{static[a93_0xcfb5f3(0x132)](){const _0x149c9a=a93_0xcfb5f3,_0x157c26={};_0x157c26[_0x149c9a(0x12a)]='os_version',_0x157c26[_0x149c9a(0x12d)]=_0x149c9a(0x133),_0x157c26[_0x149c9a(0x131)]=_0x149c9a(0x140),_0x157c26[_0x149c9a(0x13d)]=_0x149c9a(0x13f),_0x157c26['gGKxo']=_0x149c9a(0x129),_0x157c26['joXga']='browserVersion',_0x157c26[_0x149c9a(0x134)]=_0x149c9a(0x11d),_0x157c26['abtcx']=_0x149c9a(0x135),_0x157c26['nnipT']=_0x149c9a(0x13e),_0x157c26[_0x149c9a(0x12b)]=_0x149c9a(0x138),_0x157c26[_0x149c9a(0x124)]='platform_version',_0x157c26['RwIeu']=_0x149c9a(0x12e),_0x157c26[_0x149c9a(0x120)]=_0x149c9a(0x121);const _0x1a8aaf=_0x157c26,_0x179bef={};if(global[_0x149c9a(0x139)]){const _0x329937=global[_0x149c9a(0x139)],_0x303c0f=_0x329937[_0x1a8aaf[_0x149c9a(0x12a)]]||_0x329937[_0x1a8aaf['kbmUM']],_0x31f19a=_0x329937[_0x1a8aaf[_0x149c9a(0x131)]]||_0x329937[_0x1a8aaf[_0x149c9a(0x13d)]],_0xe2f2a7=_0x329937[_0x1a8aaf[_0x149c9a(0x128)]]||_0x329937[_0x1a8aaf[_0x149c9a(0x12f)]],_0x452cac=_0x329937[_0x1a8aaf[_0x149c9a(0x134)]]||_0x329937[_0x1a8aaf[_0x149c9a(0x136)]],_0xeb9645=_0x329937[_0x1a8aaf[_0x149c9a(0x11e)]]||_0x329937[_0x1a8aaf[_0x149c9a(0x12b)]],_0x3ef7b2=_0x329937[_0x1a8aaf[_0x149c9a(0x124)]]||_0x329937[_0x1a8aaf['RwIeu']];_0x329937['os']&&(_0x179bef['os']=_0x329937['os']),_0x303c0f&&(_0x179bef[_0x1a8aaf['kbmUM']]=_0x303c0f),_0x31f19a&&(_0x179bef[_0x1a8aaf[_0x149c9a(0x13d)]]=_0x31f19a),_0xe2f2a7&&(_0x179bef[_0x1a8aaf[_0x149c9a(0x12f)]]=_0xe2f2a7),_0x452cac&&(_0x179bef[_0x1a8aaf[_0x149c9a(0x136)]]=_0x452cac),_0xeb9645&&(_0x179bef[_0x1a8aaf[_0x149c9a(0x12b)]]=_0xeb9645),_0x3ef7b2&&(_0x179bef[_0x1a8aaf[_0x149c9a(0x13a)]]=_0x3ef7b2),_0x329937[_0x1a8aaf[_0x149c9a(0x120)]]&&(_0x179bef[_0x1a8aaf['jXnol']]=_0x329937[_0x1a8aaf[_0x149c9a(0x120)]]);}return _0x179bef;}static[a93_0xcfb5f3(0x122)](_0x56e853={}){const _0x336d01=a93_0xcfb5f3;TestMetadata[_0x336d01(0x127)](_0x56e853);}}function a93_0xdac5(){const _0x5069f0=['platformName','__platformCaps','RwIeu','5281812HlgJfg','exports','zdzLN','platform','browserName','browser','1999809ILVztK','device','nnipT','./helpers/metadata','jXnol','customVariables','setTestMetadata','137081LrxqRT','LpRlO','2632dZDScl','1577984JywIiH','set','gGKxo','browser_version','pgrCn','XqbgY','5658130EtdGKH','kbmUM','platformVersion','joXga','6603372DmfQBr','DcDNI','getCurrentPlatform','osVersion','ZHMNA','deviceName','abtcx','2689836DmvyrQ'];a93_0xdac5=function(){return _0x5069f0;};return a93_0xdac5();}module[a93_0xcfb5f3(0x13c)]=BrowserStackSdk;
|