browserstack-node-sdk 1.49.2 → 1.49.4
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
|
-
const a85_0x26c711=a85_0x4920;(function(_0x4172be,_0x12228f){const _0x2684d3=a85_0x4920,_0x19d8cb=_0x4172be();while(!![]){try{const _0x4a2184=-parseInt(_0x2684d3(0x20a))/0x1*(parseInt(_0x2684d3(0x22a))/0x2)+-parseInt(_0x2684d3(0x1f2))/0x3+-parseInt(_0x2684d3(0x1e1))/0x4*(parseInt(_0x2684d3(0x1ec))/0x5)+parseInt(_0x2684d3(0x222))/0x6*(parseInt(_0x2684d3(0x20c))/0x7)+parseInt(_0x2684d3(0x23d))/0x8+parseInt(_0x2684d3(0x1e4))/0x9+parseInt(_0x2684d3(0x212))/0xa;if(_0x4a2184===_0x12228f)break;else _0x19d8cb['push'](_0x19d8cb['shift']());}catch(_0x11bf03){_0x19d8cb['push'](_0x19d8cb['shift']());}}}(a85_0x3fbe,0xdd1f3));function a85_0x3fbe(){const _0x3194ff=['sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event','KEY_TEST_FRAMEWORK_NAME','onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','onPageCreate','matchHookRegex','getId','JEST','test_identifier','./loadTestModule.js','dvHXi','../state/automationFrameworkState.js','../../../helpers/helper.js','TEST','CUCUMBER','test_deferred','Hkwmn','exports','POST','3928488UleFNo','getModuleName','createTestFrameworkEventPayload','oYeKr','env','../../../helpers/test-observability/constants.js','isLTSSession','toString','instance','getThreadId','../TestInfo.js','version','lhyeQ','4UkIIqL','TestHubModule','hookState','6863490FuccxR','BROWSERSTACK_TESTHUB_UUID','getContext','getJwt','../../../helpers/classLogger.js','frameworkName','logger','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','7156105JGataI','debug','../grpcClient.js','KEY_HUB_URL','error','util','2581638FiEnGN','onAllTestEvents','ENV_VAR','keys','../../../helpers/testhub/constants','getTestUUID','Error\x20in\x20sending\x20CBTSession:\x20','getTestDetails','../framework/constants/testFrameworkConstants.js','\x20hookState:\x20','values','getTestIdentifierFromTestInfo','testFrameworkState','testFrameworkData','getTestFramework','testSessionEvent','./playwrightDriverModule.js','testInfo','MxhcJ','split','MODULE_NAME','getBuildHashedId','getState','../state/hookState.js','1024643kcvwTp','jestUtils','11461513QUSMOc','Error\x20in\x20sendTestFrameworkEvent:\x20','format','from','BROWSERSTACK_TESTHUB_JWT','testhubConfig','13310950rzCkkL','name','bind','forEach','testUuid','testFrameworkEvent','registerObserver','retry','O11yHashedID','stringify','./baseModule','onPageCreate\x20CBTSession\x20payload:\x20','page','getInstance','CREATE','../framework/testFramework.js','6xbRhQD','KEY_CAPABILITIES','base64','sendTestFrameworkEvent','../state/testFrameworkState.js','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','../framework/automationFramework.js','UJSrX','2SfpeLQ'];a85_0x3fbe=function(){return _0x3194ff;};return a85_0x3fbe();}const util=require(a85_0x26c711(0x1f1)),BaseModule=require(a85_0x26c711(0x21c)),{createClassLogger}=require(a85_0x26c711(0x1e8)),AutomationFramework=require(a85_0x26c711(0x228)),AutomationFrameworkState=require(a85_0x26c711(0x235)),HookState=require(a85_0x26c711(0x209)),TestFramework=require(a85_0x26c711(0x221)),TestFrameworkState=require(a85_0x26c711(0x226)),PlaywrightDriverModule=require(a85_0x26c711(0x202)),TestFrameworkConstants=require(a85_0x26c711(0x1fa)),GrpcClient=require(a85_0x26c711(0x1ee)),CLIUtils=require('../cliUtils.js'),TestInfo=require(a85_0x26c711(0x1de)),testHubConstants=require(a85_0x26c711(0x1f6)),{FRAMEWORKS}=require(a85_0x26c711(0x242)),helper=require(a85_0x26c711(0x236)),LoadTestModule=require(a85_0x26c711(0x233)),JestUtils=require('../utils/jest-utils.js'),BrowserstackCLI=require('../browserstackCLI.js'),{getPlaywrightProvider}=require(a85_0x26c711(0x236));class TestHubModule extends BaseModule{[a85_0x26c711(0x1ea)]=createClassLogger(a85_0x26c711(0x1e2));constructor(_0xd20ca7,_0x4fd2f2=null){const _0x5967dc=a85_0x26c711,_0x11a69f={};_0x11a69f[_0x5967dc(0x23a)]='3|8|7|4|2|6|1|5|0',_0x11a69f['hxmVd']=_0x5967dc(0x1e2);const _0x4b62a7=_0x11a69f,_0x51aa04=_0x4b62a7['Hkwmn']['split']('|');let _0x4b334=0x0;while(!![]){switch(_0x51aa04[_0x4b334++]){case'0':BrowserstackCLI[_0x5967dc(0x21a)]=this[_0x5967dc(0x211)][_0x5967dc(0x207)]();continue;case'1':process[_0x5967dc(0x241)][testHubConstants[_0x5967dc(0x1f4)][_0x5967dc(0x210)]]=this[_0x5967dc(0x211)][_0x5967dc(0x1e7)]();continue;case'2':AutomationFramework[_0x5967dc(0x218)](AutomationFrameworkState[_0x5967dc(0x220)],HookState[_0x5967dc(0x23c)],this[_0x5967dc(0x22e)][_0x5967dc(0x214)](this));continue;case'3':super(_0x4fd2f2);continue;case'4':this[_0x5967dc(0x20b)]=new JestUtils();continue;case'5':process['env'][testHubConstants[_0x5967dc(0x1f4)][_0x5967dc(0x1e5)]]=this['testhubConfig'][_0x5967dc(0x207)]();continue;case'6':Object[_0x5967dc(0x1fc)](TestFrameworkState)[_0x5967dc(0x215)](_0x204b81=>{const _0x4cadd2=_0x5967dc;Object[_0x4cadd2(0x1fc)](HookState)[_0x4cadd2(0x215)](_0xa30c4a=>{const _0x1a9fe5=_0x4cadd2;TestFramework['registerObserver'](_0x204b81,_0xa30c4a,this[_0x1a9fe5(0x1f3)]['bind'](this));});});continue;case'7':this[_0x5967dc(0x211)]=_0xd20ca7;continue;case'8':this[_0x5967dc(0x213)]=_0x4b62a7['hxmVd'];continue;}break;}}[a85_0x26c711(0x23e)](){const _0x130b89=a85_0x26c711;return TestHubModule[_0x130b89(0x206)];}[a85_0x26c711(0x1f3)](_0x3df377){const _0x350f41=a85_0x26c711,_0x154623={};_0x154623[_0x350f41(0x204)]=function(_0x16754c,_0x343f15){return _0x16754c===_0x343f15;};const _0x3c5de7=_0x154623,_0x18eb77=_0x3df377['instance'],_0x463382=_0x18eb77['getCurrentTestState']();(_0x3c5de7[_0x350f41(0x204)](_0x463382,TestFrameworkState[_0x350f41(0x237)])||CLIUtils[_0x350f41(0x22f)](_0x463382[_0x350f41(0x1db)]()[_0x350f41(0x205)]('.')[0x1]))&&this[_0x350f41(0x225)](_0x3df377);}async[a85_0x26c711(0x225)](_0x1fe646){const _0x58670e=a85_0x26c711,_0x51ce5a={};_0x51ce5a[_0x58670e(0x229)]=function(_0x3262ec,_0x1b5134){return _0x3262ec===_0x1b5134;},_0x51ce5a['oYeKr']=_0x58670e(0x22b);const _0x5003af=_0x51ce5a;try{const _0x12d1c5=BrowserstackCLI[_0x58670e(0x21f)]()[_0x58670e(0x200)]()[_0x58670e(0x23f)](_0x1fe646);if(!_0x12d1c5||_0x5003af['UJSrX'](Object[_0x58670e(0x1f5)](_0x12d1c5)['length'],0x0)){this[_0x58670e(0x1ea)][_0x58670e(0x1ed)](_0x5003af[_0x58670e(0x240)]);return;}const _0x10989e=await GrpcClient[_0x58670e(0x21f)]()[_0x58670e(0x217)](_0x12d1c5);this['logger'][_0x58670e(0x1ed)]('sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20'+_0x12d1c5[_0x58670e(0x1fe)]+_0x58670e(0x1fb)+_0x12d1c5[_0x58670e(0x1e3)]);}catch(_0x596845){this[_0x58670e(0x1ea)]['error'](_0x58670e(0x20d)+util[_0x58670e(0x20e)](_0x596845));}}async[a85_0x26c711(0x22e)](_0x3c6fda){const _0x427c96=a85_0x26c711,_0x23e641={'dvHXi':function(_0x6f5c09,_0x359270){return _0x6f5c09===_0x359270;},'lhyeQ':_0x427c96(0x22d),'glwks':function(_0x2d477c,_0x9a4b20){return _0x2d477c(_0x9a4b20);},'SmlaM':_0x427c96(0x224)};try{if(_0x3c6fda[_0x427c96(0x21e)]){const _0x274e1a=this['getTestId'](_0x3c6fda);this[_0x427c96(0x1ea)][_0x427c96(0x1ed)](_0x427c96(0x1eb)+_0x274e1a);if(this['testFrameworkData']&&_0x23e641[_0x427c96(0x234)](this['testFrameworkData'][_0x427c96(0x213)],FRAMEWORKS[_0x427c96(0x231)])&&!_0x3c6fda[_0x427c96(0x203)]){this['logger'][_0x427c96(0x1ed)](_0x23e641[_0x427c96(0x1e0)]);return;}let _0x5e04c5,_0x3bfa61;if(this[_0x427c96(0x1ff)]&&_0x23e641[_0x427c96(0x234)](this['testFrameworkData'][_0x427c96(0x213)],FRAMEWORKS[_0x427c96(0x238)]))_0x5e04c5=_0x274e1a,_0x3bfa61=TestInfo['getTestUUID'](_0x5e04c5);else this[_0x427c96(0x1ff)]&&_0x23e641[_0x427c96(0x234)](this[_0x427c96(0x1ff)]['name'],FRAMEWORKS[_0x427c96(0x231)])?(_0x5e04c5=this[_0x427c96(0x20b)]['recreateIdentifierFromTestInfo'](_0x3c6fda[_0x427c96(0x203)]),this[_0x427c96(0x1ea)][_0x427c96(0x1ed)]('onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20'+_0x5e04c5)):(_0x5e04c5=TestInfo[_0x427c96(0x1fd)](_0x3c6fda[_0x427c96(0x203)],_0x3c6fda[_0x427c96(0x203)][_0x427c96(0x219)]),_0x3bfa61=TestInfo[_0x427c96(0x1f7)](_0x5e04c5));const _0x54eee8=TestInfo[_0x427c96(0x1f9)](_0x5e04c5),_0x3f7311=_0x3c6fda[_0x427c96(0x1dc)],_0x262e20=AutomationFramework[_0x427c96(0x208)](_0x3f7311,PlaywrightDriverModule['KEY_PLATFORM_INDEX']),_0x155a3c=_0x54eee8?.[TestFrameworkConstants[_0x427c96(0x22c)]]||this['testFrameworkData']&&this['testFrameworkData'][_0x427c96(0x213)],_0x59a7cf=_0x54eee8?.[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]||this['testFrameworkData']&&this[_0x427c96(0x1ff)][_0x427c96(0x1df)],_0x81636=TestFrameworkState[_0x427c96(0x237)][_0x427c96(0x1db)]()['split']('.')[0x1],_0x1214f0=HookState[_0x427c96(0x23c)][_0x427c96(0x1db)]()[_0x427c96(0x205)]('.')[0x1],_0x460369=_0x3f7311[_0x427c96(0x1e6)](),_0xfa8249=AutomationFramework[_0x427c96(0x208)](_0x3f7311,PlaywrightDriverModule[_0x427c96(0x1ef)],''),_0x5d672e={'provider':_0x23e641['glwks'](getPlaywrightProvider,_0xfa8249),'frameworkName':_0x3f7311[_0x427c96(0x1e9)],'frameworkVersion':_0x3f7311['frameworkVersion'],'frameworkSessionId':LoadTestModule[_0x427c96(0x243)]()?LoadTestModule['getLTSSessionId']():AutomationFramework['getState'](_0x3f7311,PlaywrightDriverModule['KEY_SESSION_ID'],''),'ref':_0x3f7311['getRef'](),'hubUrl':_0xfa8249};let _0x59627c=AutomationFramework[_0x427c96(0x208)](_0x3f7311,PlaywrightDriverModule[_0x427c96(0x223)],{});_0x59627c=Buffer[_0x427c96(0x20f)](JSON[_0x427c96(0x21b)](_0x59627c))[_0x427c96(0x1db)](_0x23e641['SmlaM']);const _0x118da0={'hash':_0x460369[_0x427c96(0x230)](),'threadId':_0x460369[_0x427c96(0x1dd)]()[_0x427c96(0x1db)](),'processId':_0x460369['getProcessId']()['toString']()},_0x18a850={};_0x18a850[_0x427c96(0x232)]=_0x5e04c5;const _0x4a1389={};_0x4a1389[_0x427c96(0x216)]=_0x3bfa61;const _0x4ec7e1={'platformIndex':_0x262e20,'testFrameworkName':_0x155a3c,'testFrameworkVersion':_0x59a7cf,'testFrameworkState':_0x81636,'testHookState':_0x1214f0,...this[_0x427c96(0x1ff)]&&_0x23e641['dvHXi'](this['testFrameworkData'][_0x427c96(0x213)],FRAMEWORKS[_0x427c96(0x231)])?_0x18a850:_0x4a1389,'automationSession':_0x5d672e,'capabilities':_0x59627c,'executionContext':_0x118da0};this['logger'][_0x427c96(0x1ed)](_0x427c96(0x21d)+util[_0x427c96(0x20e)](_0x4ec7e1));const _0x3e9e2d=await GrpcClient[_0x427c96(0x21f)]()[_0x427c96(0x201)](_0x4ec7e1);this[_0x427c96(0x1ea)][_0x427c96(0x1ed)](_0x427c96(0x227)+_0x274e1a+(this['testFrameworkData']&&_0x23e641['dvHXi'](this['testFrameworkData'][_0x427c96(0x213)],FRAMEWORKS[_0x427c96(0x231)])?',\x20test_identifier:\x20'+_0x5e04c5:''));}}catch(_0x5360f2){this['logger'][_0x427c96(0x1f0)](_0x427c96(0x1f8)+util[_0x427c96(0x20e)](_0x5360f2));}}}function a85_0x4920(_0x4da402,_0x3d8604){const _0x3fbe2d=a85_0x3fbe();return a85_0x4920=function(_0x492020,_0x58947c){_0x492020=_0x492020-0x1db;let _0x5ae167=_0x3fbe2d[_0x492020];return _0x5ae167;},a85_0x4920(_0x4da402,_0x3d8604);}TestHubModule[a85_0x26c711(0x206)]='TestHubModule',TestHubModule['KEY_TEST_DEFERRED']=a85_0x26c711(0x239),module[a85_0x26c711(0x23b)]=TestHubModule;
|
|
1
|
+
function a85_0x36fa(){const _0x4b970b=['error','POST','base64','TestHubModule','getProcessId','../../../helpers/classLogger.js','154744OxtbDQ','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','getContext','../../../helpers/test-observability/constants.js','../grpcClient.js','../state/automationFrameworkState.js','getInstance','testUuid','../../../helpers/helper.js','isLTSSession','values','KEY_TEST_FRAMEWORK_NAME','version','getThreadId','../TestInfo.js','../state/hookState.js','sendTestFrameworkEvent','createTestFrameworkEventPayload','split','getRef','Error\x20in\x20sendTestFrameworkEvent:\x20',',\x20test_identifier:\x20','stringify','testFrameworkState','22BlcdZl','testFrameworkEvent','SNcGy','getLTSSessionId','TEST','bqwjH','vCXxx','KEY_PLATFORM_INDEX','../cliUtils.js','20940Xeezwa','onPageCreate','getId','getTestFramework','frameworkVersion','testSessionEvent','../framework/testFramework.js','1855pNlmjf','DTBtw','testInfo','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','szVHA','testhubConfig','JuQbB','KEY_TEST_DEFERRED','vTJDd','sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20','instance','127304rFinOm','toString','zQiwm','name','2645665brxpIs','util','format','gHTan','hookState','BROWSERSTACK_TESTHUB_JWT','5945990MpoQlU','from','./baseModule','18IOpibz','getTestIdentifierFromTestInfo','JEST','getState','bind','debug','KEY_CAPABILITIES','../state/testFrameworkState.js','CUCUMBER','WYeuq','forEach','env','MODULE_NAME','14030124kNXbtk','onAllTestEvents','ENV_VAR','../framework/automationFramework.js','KEY_TEST_FRAMEWORK_VERSION','matchHookRegex','retry','registerObserver','getBuildHashedId','getTestUUID','./playwrightDriverModule.js','4OlNUHl','./loadTestModule.js','316799jVmNdt','testFrameworkData','603wXaMIe','logger','jestUtils','onPageCreate\x20CBTSession\x20payload:\x20','exports'];a85_0x36fa=function(){return _0x4b970b;};return a85_0x36fa();}const a85_0x2fa4d5=a85_0x328f;(function(_0x4308f0,_0x29a218){const _0x56aecf=a85_0x328f,_0x39790f=_0x4308f0();while(!![]){try{const _0x13f2c5=-parseInt(_0x56aecf(0xdf))/0x1+-parseInt(_0x56aecf(0x11f))/0x2*(-parseInt(_0x56aecf(0x12c))/0x3)+parseInt(_0x56aecf(0xdd))/0x4*(parseInt(_0x56aecf(0x123))/0x5)+parseInt(_0x56aecf(0x10d))/0x6*(-parseInt(_0x56aecf(0x114))/0x7)+parseInt(_0x56aecf(0xec))/0x8*(-parseInt(_0x56aecf(0xe1))/0x9)+parseInt(_0x56aecf(0x129))/0xa*(parseInt(_0x56aecf(0x104))/0xb)+parseInt(_0x56aecf(0x139))/0xc;if(_0x13f2c5===_0x29a218)break;else _0x39790f['push'](_0x39790f['shift']());}catch(_0x5df39b){_0x39790f['push'](_0x39790f['shift']());}}}(a85_0x36fa,0xb2a8e));function a85_0x328f(_0x392a46,_0x3d4d41){const _0x36fa61=a85_0x36fa();return a85_0x328f=function(_0x328f53,_0x358c57){_0x328f53=_0x328f53-0xd5;let _0x478285=_0x36fa61[_0x328f53];return _0x478285;},a85_0x328f(_0x392a46,_0x3d4d41);}const util=require(a85_0x2fa4d5(0x124)),BaseModule=require(a85_0x2fa4d5(0x12b)),{createClassLogger}=require(a85_0x2fa4d5(0xeb)),AutomationFramework=require(a85_0x2fa4d5(0xd5)),AutomationFrameworkState=require(a85_0x2fa4d5(0xf1)),HookState=require(a85_0x2fa4d5(0xfb)),TestFramework=require(a85_0x2fa4d5(0x113)),TestFrameworkState=require(a85_0x2fa4d5(0x133)),PlaywrightDriverModule=require(a85_0x2fa4d5(0xdc)),TestFrameworkConstants=require('../framework/constants/testFrameworkConstants.js'),GrpcClient=require(a85_0x2fa4d5(0xf0)),CLIUtils=require(a85_0x2fa4d5(0x10c)),TestInfo=require(a85_0x2fa4d5(0xfa)),testHubConstants=require('../../../helpers/testhub/constants'),{FRAMEWORKS}=require(a85_0x2fa4d5(0xef)),helper=require(a85_0x2fa4d5(0xf4)),LoadTestModule=require(a85_0x2fa4d5(0xde)),JestUtils=require('../utils/jest-utils.js'),BrowserstackCLI=require('../browserstackCLI.js'),{getPlaywrightProvider}=require('../../../helpers/helper.js');class TestHubModule extends BaseModule{[a85_0x2fa4d5(0xe2)]=createClassLogger('TestHubModule');constructor(_0x4a370b,_0xeccbf9=null){const _0x200794=a85_0x2fa4d5,_0x50a3bb={};_0x50a3bb[_0x200794(0x115)]='0|6|5|2|3|4|1|8|7',_0x50a3bb[_0x200794(0x121)]='TestHubModule';const _0x37e518=_0x50a3bb,_0x251e53=_0x37e518['DTBtw'][_0x200794(0xfe)]('|');let _0x1c77ff=0x0;while(!![]){switch(_0x251e53[_0x1c77ff++]){case'0':super(_0xeccbf9);continue;case'1':process[_0x200794(0x137)][testHubConstants[_0x200794(0x13b)][_0x200794(0x128)]]=this[_0x200794(0x119)]['getJwt']();continue;case'2':this[_0x200794(0xe3)]=new JestUtils();continue;case'3':AutomationFramework[_0x200794(0xd9)](AutomationFrameworkState['CREATE'],HookState['POST'],this[_0x200794(0x10e)][_0x200794(0x130)](this));continue;case'4':Object[_0x200794(0xf6)](TestFrameworkState)[_0x200794(0x136)](_0x1e4194=>{const _0x3ac6b=_0x200794;Object[_0x3ac6b(0xf6)](HookState)['forEach'](_0x46abdf=>{const _0x46bdc8=_0x3ac6b;TestFramework[_0x46bdc8(0xd9)](_0x1e4194,_0x46abdf,this[_0x46bdc8(0x13a)]['bind'](this));});});continue;case'5':this[_0x200794(0x119)]=_0x4a370b;continue;case'6':this['name']=_0x37e518[_0x200794(0x121)];continue;case'7':BrowserstackCLI['O11yHashedID']=this[_0x200794(0x119)][_0x200794(0xda)]();continue;case'8':process[_0x200794(0x137)][testHubConstants[_0x200794(0x13b)]['BROWSERSTACK_TESTHUB_UUID']]=this[_0x200794(0x119)][_0x200794(0xda)]();continue;}break;}}['getModuleName'](){const _0x1255d4=a85_0x2fa4d5;return TestHubModule[_0x1255d4(0x138)];}[a85_0x2fa4d5(0x13a)](_0x4ecfff){const _0x42cffd=a85_0x2fa4d5,_0x130129={};_0x130129['JuQbB']=function(_0x2aec25,_0x1ba7e7){return _0x2aec25===_0x1ba7e7;};const _0x8d16de=_0x130129,_0xaf40eb=_0x4ecfff[_0x42cffd(0x11e)],_0x4fb541=_0xaf40eb['getCurrentTestState']();(_0x8d16de[_0x42cffd(0x11a)](_0x4fb541,TestFrameworkState[_0x42cffd(0x108)])||CLIUtils[_0x42cffd(0xd7)](_0x4fb541[_0x42cffd(0x120)]()[_0x42cffd(0xfe)]('.')[0x1]))&&this[_0x42cffd(0xfc)](_0x4ecfff);}async[a85_0x2fa4d5(0xfc)](_0x5e47c9){const _0x3fb679=a85_0x2fa4d5,_0x428cc2={};_0x428cc2[_0x3fb679(0x126)]=function(_0x5ec27f,_0x1a85f1){return _0x5ec27f===_0x1a85f1;},_0x428cc2[_0x3fb679(0x118)]='sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event';const _0x22028a=_0x428cc2;try{const _0x5c0a14=BrowserstackCLI['getInstance']()[_0x3fb679(0x110)]()[_0x3fb679(0xfd)](_0x5e47c9);if(!_0x5c0a14||_0x22028a[_0x3fb679(0x126)](Object['keys'](_0x5c0a14)['length'],0x0)){this[_0x3fb679(0xe2)][_0x3fb679(0x131)](_0x22028a[_0x3fb679(0x118)]);return;}const _0x459fd3=await GrpcClient[_0x3fb679(0xf2)]()[_0x3fb679(0x105)](_0x5c0a14);this[_0x3fb679(0xe2)]['debug'](_0x3fb679(0x11d)+_0x5c0a14[_0x3fb679(0x103)]+'\x20hookState:\x20'+_0x5c0a14[_0x3fb679(0x127)]);}catch(_0xd46b70){this[_0x3fb679(0xe2)][_0x3fb679(0xe6)](_0x3fb679(0x100)+util[_0x3fb679(0x125)](_0xd46b70));}}async[a85_0x2fa4d5(0x10e)](_0x546d93){const _0x327fc9=a85_0x2fa4d5,_0x19e9a6={'SNcGy':function(_0x5bee83,_0x5cf2ce){return _0x5bee83===_0x5cf2ce;},'vTJDd':'onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','vCXxx':function(_0x4619e1,_0x1b2f5d){return _0x4619e1===_0x1b2f5d;},'gZVUR':function(_0x5b66db,_0x4c8c78){return _0x5b66db(_0x4c8c78);},'WYeuq':_0x327fc9(0xe8),'bqwjH':function(_0x2cc749,_0x347f38){return _0x2cc749===_0x347f38;}};try{if(_0x546d93['page']){const _0x5d5731=this['getTestId'](_0x546d93);this[_0x327fc9(0xe2)][_0x327fc9(0x131)](_0x327fc9(0x117)+_0x5d5731);if(this['testFrameworkData']&&_0x19e9a6['SNcGy'](this['testFrameworkData'][_0x327fc9(0x122)],FRAMEWORKS[_0x327fc9(0x12e)])&&!_0x546d93['testInfo']){this[_0x327fc9(0xe2)][_0x327fc9(0x131)](_0x19e9a6[_0x327fc9(0x11c)]);return;}let _0x1c175b,_0x98e366;if(this[_0x327fc9(0xe0)]&&_0x19e9a6[_0x327fc9(0x10a)](this['testFrameworkData'][_0x327fc9(0x122)],FRAMEWORKS[_0x327fc9(0x134)]))_0x1c175b=_0x5d5731,_0x98e366=TestInfo[_0x327fc9(0xdb)](_0x1c175b);else this[_0x327fc9(0xe0)]&&_0x19e9a6[_0x327fc9(0x106)](this[_0x327fc9(0xe0)][_0x327fc9(0x122)],FRAMEWORKS[_0x327fc9(0x12e)])?(_0x1c175b=this[_0x327fc9(0xe3)]['recreateIdentifierFromTestInfo'](_0x546d93[_0x327fc9(0x116)]),this[_0x327fc9(0xe2)][_0x327fc9(0x131)]('onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20'+_0x1c175b)):(_0x1c175b=TestInfo[_0x327fc9(0x12d)](_0x546d93[_0x327fc9(0x116)],_0x546d93['testInfo'][_0x327fc9(0xd8)]),_0x98e366=TestInfo[_0x327fc9(0xdb)](_0x1c175b));const _0x4b4205=TestInfo['getTestDetails'](_0x1c175b),_0x107870=_0x546d93[_0x327fc9(0x11e)],_0x1f5902=AutomationFramework[_0x327fc9(0x12f)](_0x107870,PlaywrightDriverModule[_0x327fc9(0x10b)]),_0x48ae94=_0x4b4205?.[TestFrameworkConstants[_0x327fc9(0xf7)]]||this['testFrameworkData']&&this[_0x327fc9(0xe0)][_0x327fc9(0x122)],_0x41d5d3=_0x4b4205?.[TestFrameworkConstants[_0x327fc9(0xd6)]]||this['testFrameworkData']&&this[_0x327fc9(0xe0)][_0x327fc9(0xf8)],_0x257484=TestFrameworkState[_0x327fc9(0x108)][_0x327fc9(0x120)]()['split']('.')[0x1],_0x35142f=HookState[_0x327fc9(0xe7)][_0x327fc9(0x120)]()[_0x327fc9(0xfe)]('.')[0x1],_0x21a9a7=_0x107870[_0x327fc9(0xee)](),_0x1b45c4=AutomationFramework[_0x327fc9(0x12f)](_0x107870,PlaywrightDriverModule['KEY_HUB_URL'],''),_0x44ca5f={'provider':_0x19e9a6['gZVUR'](getPlaywrightProvider,_0x1b45c4),'frameworkName':_0x107870['frameworkName'],'frameworkVersion':_0x107870[_0x327fc9(0x111)],'frameworkSessionId':LoadTestModule[_0x327fc9(0xf5)]()?LoadTestModule[_0x327fc9(0x107)]():AutomationFramework['getState'](_0x107870,PlaywrightDriverModule['KEY_SESSION_ID'],''),'ref':_0x107870[_0x327fc9(0xff)](),'hubUrl':_0x1b45c4};let _0x1cd8b2=AutomationFramework[_0x327fc9(0x12f)](_0x107870,PlaywrightDriverModule[_0x327fc9(0x132)],{});_0x1cd8b2=Buffer[_0x327fc9(0x12a)](JSON[_0x327fc9(0x102)](_0x1cd8b2))[_0x327fc9(0x120)](_0x19e9a6[_0x327fc9(0x135)]);const _0x46298f={'hash':_0x21a9a7[_0x327fc9(0x10f)](),'threadId':_0x21a9a7[_0x327fc9(0xf9)]()['toString'](),'processId':_0x21a9a7[_0x327fc9(0xea)]()[_0x327fc9(0x120)]()},_0x225392={};_0x225392['test_identifier']=_0x1c175b;const _0x447445={};_0x447445[_0x327fc9(0xf3)]=_0x98e366;const _0x324d8f={'platformIndex':_0x1f5902,'testFrameworkName':_0x48ae94,'testFrameworkVersion':_0x41d5d3,'testFrameworkState':_0x257484,'testHookState':_0x35142f,...this[_0x327fc9(0xe0)]&&_0x19e9a6[_0x327fc9(0x109)](this['testFrameworkData'][_0x327fc9(0x122)],FRAMEWORKS['JEST'])?_0x225392:_0x447445,'automationSession':_0x44ca5f,'capabilities':_0x1cd8b2,'executionContext':_0x46298f};this['logger'][_0x327fc9(0x131)](_0x327fc9(0xe4)+util[_0x327fc9(0x125)](_0x324d8f));const _0x28ec9d=await GrpcClient[_0x327fc9(0xf2)]()[_0x327fc9(0x112)](_0x324d8f);this[_0x327fc9(0xe2)]['debug'](_0x327fc9(0xed)+_0x5d5731+(this[_0x327fc9(0xe0)]&&_0x19e9a6['vCXxx'](this[_0x327fc9(0xe0)]['name'],FRAMEWORKS[_0x327fc9(0x12e)])?_0x327fc9(0x101)+_0x1c175b:''));}}catch(_0x3c2e78){this[_0x327fc9(0xe2)][_0x327fc9(0xe6)]('Error\x20in\x20sending\x20CBTSession:\x20'+util[_0x327fc9(0x125)](_0x3c2e78));}}}TestHubModule['MODULE_NAME']=a85_0x2fa4d5(0xe9),TestHubModule[a85_0x2fa4d5(0x11b)]='test_deferred',module[a85_0x2fa4d5(0xe5)]=TestHubModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x21b688=a86_0x2b4c;(function(_0x11107c,_0x124b97){const _0x4fad3e=a86_0x2b4c,_0x25cf45=_0x11107c();while(!![]){try{const _0x94e68b=parseInt(_0x4fad3e(0x132))/0x1*(parseInt(_0x4fad3e(0x129))/0x2)+parseInt(_0x4fad3e(0x12b))/0x3+-parseInt(_0x4fad3e(0x135))/0x4*(parseInt(_0x4fad3e(0x133))/0x5)+-parseInt(_0x4fad3e(0x11d))/0x6*(-parseInt(_0x4fad3e(0x137))/0x7)+-parseInt(_0x4fad3e(0x131))/0x8*(-parseInt(_0x4fad3e(0x124))/0x9)+parseInt(_0x4fad3e(0x125))/0xa*(-parseInt(_0x4fad3e(0x12e))/0xb)+parseInt(_0x4fad3e(0x123))/0xc;if(_0x94e68b===_0x124b97)break;else _0x25cf45['push'](_0x25cf45['shift']());}catch(_0x5ad0f4){_0x25cf45['push'](_0x25cf45['shift']());}}}(a86_0x1aac,0xbed95));const {PLAYWRIGHT}=require(a86_0x21b688(0x136)),a86_0x168f09={};a86_0x168f09[a86_0x21b688(0x11f)]=0x0,a86_0x168f09[a86_0x21b688(0x12a)]=function(){const _0x534bdf=a86_0x21b688,_0x731e7d={};_0x731e7d[_0x534bdf(0x12d)]='AutomationFrameworkState.NONE';const _0x517cf5=_0x731e7d;return _0x517cf5[_0x534bdf(0x12d)];};const a86_0xe84ae4={};function a86_0x2b4c(_0x3892db,_0x76baca){const _0x1aacde=a86_0x1aac();return a86_0x2b4c=function(_0x2b4c9c,_0x211fc7){_0x2b4c9c=_0x2b4c9c-0x11d;let _0x5c50e4=_0x1aacde[_0x2b4c9c];return _0x5c50e4;},a86_0x2b4c(_0x3892db,_0x76baca);}a86_0xe84ae4[a86_0x21b688(0x11f)]=0x1,a86_0xe84ae4[a86_0x21b688(0x12a)]=function(){const _0x37f099=a86_0x21b688,_0x4b1dd4={};_0x4b1dd4[_0x37f099(0x127)]=_0x37f099(0x126);const _0x1f2c63=_0x4b1dd4;return _0x1f2c63[_0x37f099(0x127)];};const a86_0x4ec32b={};a86_0x4ec32b[a86_0x21b688(0x11f)]=0x2,a86_0x4ec32b[a86_0x21b688(0x12a)]=function(){const _0x2a3b50=a86_0x21b688,_0x1951a1={};_0x1951a1[_0x2a3b50(0x120)]=_0x2a3b50(0x128);const _0x387b07=_0x1951a1;return _0x387b07[_0x2a3b50(0x120)];};const a86_0x179194={};function a86_0x1aac(){const _0x39e278=['AutomationFrameworkState.EXECUTE','value','pGZYe','AutomationFrameworkState.QUIT','AutomationFrameworkState.IDLE','10801884wBDwPU','244350WRhAvk','3778090zUbvbC','AutomationFrameworkState.CREATE','NwvxI','AutomationFrameworkState.PLAYWRIGHT_DISPATCH','1660954QwmZkI','toString','1650375tWFFCY','UrxvM','FkRYo','44NLMJrL','values','freeze','40BUGvdc','1lLBKxV','20eqKJtJ','VRSfW','1321916alqxmm','../../utils/constants','1677704VKZYGL','find','SmxnH','30zsAXDH'];a86_0x1aac=function(){return _0x39e278;};return a86_0x1aac();}a86_0x179194[a86_0x21b688(0x11f)]=0x3,a86_0x179194[a86_0x21b688(0x12a)]=function(){const _0x1bdc3d=a86_0x21b688,_0xc133ae={};_0xc133ae[_0x1bdc3d(0x134)]=_0x1bdc3d(0x11e);const _0xc95c77=_0xc133ae;return _0xc95c77[_0x1bdc3d(0x134)];};const a86_0x31d6c6={};a86_0x31d6c6[a86_0x21b688(0x11f)]=0x4,a86_0x31d6c6['toString']=function(){const _0x2a7d5d=a86_0x21b688,_0x3bf772={};_0x3bf772[_0x2a7d5d(0x12c)]=_0x2a7d5d(0x122);const _0x2fd5c4=_0x3bf772;return _0x2fd5c4['UrxvM'];};const a86_0xfe271f={};a86_0xfe271f[a86_0x21b688(0x11f)]=0x5,a86_0xfe271f[a86_0x21b688(0x12a)]=function(){const _0x491b18=a86_0x21b688,_0x46f5dd={};_0x46f5dd['SmxnH']=_0x491b18(0x121);const _0x5902d9=_0x46f5dd;return _0x5902d9[_0x491b18(0x139)];};const AutomationFrameworkState=Object[a86_0x21b688(0x130)]({'NONE':a86_0x168f09,'CREATE':a86_0xe84ae4,'PLAYWRIGHT_DISPATCH':a86_0x4ec32b,'EXECUTE':a86_0x179194,'IDLE':a86_0x31d6c6,'QUIT':a86_0xfe271f,'fromValue'(_0x14aec8){const _0x387c4c=a86_0x21b688;return Object[_0x387c4c(0x12f)](AutomationFrameworkState)[_0x387c4c(0x138)](_0x28e7a2=>_0x28e7a2[_0x387c4c(0x11f)]===_0x14aec8);}});module['exports']=AutomationFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a87_0x4712(_0x22c13f,_0x75266){const _0x57296a=a87_0x5729();return a87_0x4712=function(_0x4712ce,_0x5785cd){_0x4712ce=_0x4712ce-0x177;let _0x51c416=_0x57296a[_0x4712ce];return _0x51c416;},a87_0x4712(_0x22c13f,_0x75266);}const a87_0x57a6f8=a87_0x4712;(function(_0x4d7d7b,_0x5db63c){const _0x10886c=a87_0x4712,_0x2beebb=_0x4d7d7b();while(!![]){try{const _0x5ad3bb=parseInt(_0x10886c(0x185))/0x1*(-parseInt(_0x10886c(0x178))/0x2)+parseInt(_0x10886c(0x17f))/0x3+-parseInt(_0x10886c(0x187))/0x4*(parseInt(_0x10886c(0x17a))/0x5)+parseInt(_0x10886c(0x180))/0x6+parseInt(_0x10886c(0x184))/0x7*(-parseInt(_0x10886c(0x177))/0x8)+-parseInt(_0x10886c(0x17c))/0x9*(parseInt(_0x10886c(0x181))/0xa)+parseInt(_0x10886c(0x188))/0xb;if(_0x5ad3bb===_0x5db63c)break;else _0x2beebb['push'](_0x2beebb['shift']());}catch(_0xa6e7dc){_0x2beebb['push'](_0x2beebb['shift']());}}}(a87_0x5729,0x50d27));const a87_0x5d67fd={};a87_0x5d67fd[a87_0x57a6f8(0x189)]=0x0,a87_0x5d67fd[a87_0x57a6f8(0x182)]=function(){const _0x553496=a87_0x57a6f8,_0xa7639a={};_0xa7639a[_0x553496(0x179)]='HookState.NONE';const _0x48e03d=_0xa7639a;return _0x48e03d[_0x553496(0x179)];};const a87_0x203d2a={};a87_0x203d2a[a87_0x57a6f8(0x189)]=0x1,a87_0x203d2a['toString']=function(){const _0x32dfc9=a87_0x57a6f8,_0x2218bc={};_0x2218bc[_0x32dfc9(0x17e)]=_0x32dfc9(0x183);const _0x1cd9d1=_0x2218bc;return _0x1cd9d1['sXJMr'];};const a87_0x304d50={};function a87_0x5729(){const _0x423aa0=['21bTXGIO','54297GviuPe','ZRJhQ','147372GomxDt','9592154lrTJav','value','1678720Irbhzc','12HpIfCa','zIUXm','15UMsUWN','HookState.POST','9BtYvDy','freeze','sXJMr','242478ZrBZIr','3067728cOxZZx','672500mshqLb','toString','HookState.PRE'];a87_0x5729=function(){return _0x423aa0;};return a87_0x5729();}a87_0x304d50['value']=0x2,a87_0x304d50[a87_0x57a6f8(0x182)]=function(){const _0x4b1d6e=a87_0x57a6f8,_0x5c9340={};_0x5c9340['ZRJhQ']=_0x4b1d6e(0x17b);const _0x567ead=_0x5c9340;return _0x567ead[_0x4b1d6e(0x186)];};const HookState=Object[a87_0x57a6f8(0x17d)]({'NONE':a87_0x5d67fd,'PRE':a87_0x203d2a,'POST':a87_0x304d50,'fromValue'(_0x1d1c9d){return Object['values'](HookState)['find'](_0x468395=>_0x468395['value']===_0x1d1c9d);}});module['exports']=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x4ee3d8=a88_0x2a61;(function(_0x54a60b,_0x4b1229){const _0x2cf235=a88_0x2a61,_0x4074f0=_0x54a60b();while(!![]){try{const _0x5925b0=-parseInt(_0x2cf235(0x146))/0x1*(parseInt(_0x2cf235(0x127))/0x2)+-parseInt(_0x2cf235(0x125))/0x3+-parseInt(_0x2cf235(0x12e))/0x4+-parseInt(_0x2cf235(0x13f))/0x5+parseInt(_0x2cf235(0x134))/0x6*(-parseInt(_0x2cf235(0x140))/0x7)+parseInt(_0x2cf235(0x136))/0x8*(-parseInt(_0x2cf235(0x12f))/0x9)+parseInt(_0x2cf235(0x13c))/0xa*(parseInt(_0x2cf235(0x128))/0xb);if(_0x5925b0===_0x4b1229)break;else _0x4074f0['push'](_0x4074f0['shift']());}catch(_0x50b290){_0x4074f0['push'](_0x4074f0['shift']());}}}(a88_0x4f55,0xd4a99));const a88_0x7dea95={};a88_0x7dea95[a88_0x4ee3d8(0x13b)]=0x0,a88_0x7dea95[a88_0x4ee3d8(0x132)]=function(){const _0x5c8113=a88_0x4ee3d8,_0x2082cf={};_0x2082cf[_0x5c8113(0x149)]=_0x5c8113(0x13e);const _0xfd31f7=_0x2082cf;return _0xfd31f7['UaCWu'];};const a88_0x33021e={};a88_0x33021e[a88_0x4ee3d8(0x13b)]=0x1,a88_0x33021e[a88_0x4ee3d8(0x132)]=function(){const _0x26081d=a88_0x4ee3d8,_0xe0853a={};_0xe0853a['mfYSh']=_0x26081d(0x138);const _0x570078=_0xe0853a;return _0x570078[_0x26081d(0x145)];};const a88_0x476485={};a88_0x476485[a88_0x4ee3d8(0x13b)]=0x2,a88_0x476485['toString']=function(){const _0x3c170e=a88_0x4ee3d8,_0x33ddb0={};_0x33ddb0[_0x3c170e(0x13a)]=_0x3c170e(0x124);const _0x1fceab=_0x33ddb0;return _0x1fceab['vxrAn'];};const a88_0x2bc5d1={};a88_0x2bc5d1[a88_0x4ee3d8(0x13b)]=0x3,a88_0x2bc5d1[a88_0x4ee3d8(0x132)]=function(){const _0x4a03ed=a88_0x4ee3d8,_0x2c5e70={};_0x2c5e70[_0x4a03ed(0x137)]=_0x4a03ed(0x135);const _0x235073=_0x2c5e70;return _0x235073[_0x4a03ed(0x137)];};const a88_0x60398e={};a88_0x60398e[a88_0x4ee3d8(0x13b)]=0x4,a88_0x60398e[a88_0x4ee3d8(0x132)]=function(){const _0x364102=a88_0x4ee3d8,_0x4859d7={};_0x4859d7['GDTdl']=_0x364102(0x12b);const _0x1e0a27=_0x4859d7;return _0x1e0a27[_0x364102(0x13d)];};const a88_0x21a438={};a88_0x21a438[a88_0x4ee3d8(0x13b)]=0x5,a88_0x21a438[a88_0x4ee3d8(0x132)]=function(){const _0x3202b6=a88_0x4ee3d8,_0x397e36={};_0x397e36[_0x3202b6(0x126)]=_0x3202b6(0x144);const _0x2cedc6=_0x397e36;return _0x2cedc6[_0x3202b6(0x126)];};const a88_0x1f969f={};a88_0x1f969f[a88_0x4ee3d8(0x13b)]=0x6,a88_0x1f969f[a88_0x4ee3d8(0x132)]=function(){const _0x306ce7=a88_0x4ee3d8,_0x39f79c={};_0x39f79c[_0x306ce7(0x147)]=_0x306ce7(0x12d);const _0x4bbc40=_0x39f79c;return _0x4bbc40[_0x306ce7(0x147)];};function a88_0x2a61(_0x205d10,_0x35c54d){const _0x4f5596=a88_0x4f55();return a88_0x2a61=function(_0x2a61eb,_0x129386){_0x2a61eb=_0x2a61eb-0x123;let _0x464ee7=_0x4f5596[_0x2a61eb];return _0x464ee7;},a88_0x2a61(_0x205d10,_0x35c54d);}const a88_0x3353e0={};a88_0x3353e0['value']=0x7,a88_0x3353e0[a88_0x4ee3d8(0x132)]=function(){const _0x3cb98a=a88_0x4ee3d8,_0x380eac={};_0x380eac['RLgSB']=_0x3cb98a(0x130);const _0x175770=_0x380eac;return _0x175770[_0x3cb98a(0x123)];};const a88_0x38ff3c={};a88_0x38ff3c[a88_0x4ee3d8(0x13b)]=0x8,a88_0x38ff3c[a88_0x4ee3d8(0x132)]=function(){const _0xa9eef0=a88_0x4ee3d8,_0x464ade={};_0x464ade[_0xa9eef0(0x131)]=_0xa9eef0(0x133);const _0x29a75c=_0x464ade;return _0x29a75c[_0xa9eef0(0x131)];};function a88_0x4f55(){const _0x2dff34=['TestFrameworkState.NONE','620725GPzvSL','1022dYjFoD','TestFrameworkState.AFTER_ALL','fcyix','values','TestFrameworkState.BEFORE_EACH','mfYSh','1mcfLBc','PNmdJ','HtOwC','UaCWu','RLgSB','TestFrameworkState.LOG','2403570RjSJef','fyIep','2270740Hrngym','1595rDrSKv','ykFjt','find','TestFrameworkState.INIT_TEST','TestFrameworkState.LOG_REPORT','TestFrameworkState.AFTER_EACH','4873796oYCpmk','2124iBaHfq','TestFrameworkState.TEST','loygt','toString','TestFrameworkState.STEP','9336ypuWRf','TestFrameworkState.SETUP_FIXTURE','43520AlsxRf','uiXqd','TestFrameworkState.BEFORE_ALL','exports','vxrAn','value','390430mZmgpV','GDTdl'];a88_0x4f55=function(){return _0x2dff34;};return a88_0x4f55();}const a88_0x58ae07={};a88_0x58ae07[a88_0x4ee3d8(0x13b)]=0x9,a88_0x58ae07[a88_0x4ee3d8(0x132)]=function(){const _0x54f15a=a88_0x4ee3d8,_0x311231={};_0x311231[_0x54f15a(0x129)]=_0x54f15a(0x12c);const _0x297823=_0x311231;return _0x297823['ykFjt'];};const a88_0x108da8={};a88_0x108da8['value']=0xa,a88_0x108da8['toString']=function(){const _0x194c98=a88_0x4ee3d8,_0x5755dd={};_0x5755dd[_0x194c98(0x148)]=_0x194c98(0x141);const _0x4822b4=_0x5755dd;return _0x4822b4['HtOwC'];};const a88_0x10f9f5={};a88_0x10f9f5[a88_0x4ee3d8(0x13b)]=0xb,a88_0x10f9f5['toString']=function(){const _0x577d9d=a88_0x4ee3d8,_0x2352a8={};_0x2352a8[_0x577d9d(0x142)]='TestFrameworkState.TEST_SCREENSHOT';const _0x5ef57d=_0x2352a8;return _0x5ef57d[_0x577d9d(0x142)];};const TestFrameworkState=Object['freeze']({'NONE':a88_0x7dea95,'BEFORE_ALL':a88_0x33021e,'LOG':a88_0x476485,'SETUP_FIXTURE':a88_0x2bc5d1,'INIT_TEST':a88_0x60398e,'BEFORE_EACH':a88_0x21a438,'AFTER_EACH':a88_0x1f969f,'TEST':a88_0x3353e0,'STEP':a88_0x38ff3c,'LOG_REPORT':a88_0x58ae07,'AFTER_ALL':a88_0x108da8,'TEST_SCREENSHOT':a88_0x10f9f5,'fromValue'(_0x508ec6){const _0x3f38d5=a88_0x4ee3d8;return Object[_0x3f38d5(0x143)](TestFrameworkState)[_0x3f38d5(0x12a)](_0x5c9203=>_0x5c9203[_0x3f38d5(0x13b)]===_0x508ec6);}});module[a88_0x4ee3d8(0x139)]=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a89_0x230463=a89_0x281a;(function(_0x5314b0,_0x3f74fa){const _0x53b533=a89_0x281a,_0x279eeb=_0x5314b0();while(!![]){try{const _0x53e31c=parseInt(_0x53b533(0xd2))/0x1+parseInt(_0x53b533(0xee))/0x2*(-parseInt(_0x53b533(0x12c))/0x3)+parseInt(_0x53b533(0xe7))/0x4+parseInt(_0x53b533(0x11c))/0x5+-parseInt(_0x53b533(0xed))/0x6+-parseInt(_0x53b533(0x136))/0x7+-parseInt(_0x53b533(0x134))/0x8;if(_0x53e31c===_0x3f74fa)break;else _0x279eeb['push'](_0x279eeb['shift']());}catch(_0xe7b1f9){_0x279eeb['push'](_0x279eeb['shift']());}}}(a89_0x4ade,0x5d810));const os=require('os'),fs=require('fs'),path=require(a89_0x230463(0xfa)),util=require(a89_0x230463(0x12e)),BrowserstackCLI=require('./browserstackCLI'),https=require('https'),http=require('http'),AutomationFramework=require(a89_0x230463(0xca)),PlaywrightDriverModule=require(a89_0x230463(0xd0)),TestInfo=require('./TestInfo'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require('../../helpers/classLogger.js');function a89_0x281a(_0x5f4462,_0x2c9664){const _0x4ade00=a89_0x4ade();return a89_0x281a=function(_0x281aaa,_0x1f85a7){_0x281aaa=_0x281aaa-0xb9;let _0xf4b6a9=_0x4ade00[_0x281aaa];return _0xf4b6a9;},a89_0x281a(_0x5f4462,_0x2c9664);}class uploadAttachmentsManager{static [a89_0x230463(0x138)]=createClassLogger('uploadAttachmentsManager');static[a89_0x230463(0x100)](_0x589b47,_0x413ede=![]){const _0x1b6faa=a89_0x230463,_0x3fa18f={};_0x3fa18f['vuLkA']=function(_0x2367f5,_0x5982a7){return _0x2367f5/_0x5982a7;},_0x3fa18f[_0x1b6faa(0x11d)]=function(_0x268459,_0x33d227){return _0x268459*_0x33d227;},_0x3fa18f[_0x1b6faa(0xdb)]=function(_0x194fe8,_0x49383f){return _0x194fe8>_0x49383f;},_0x3fa18f[_0x1b6faa(0xf3)]=_0x1b6faa(0x118),_0x3fa18f['dvgOc']='File\x20downloaded\x20to:\x20%s',_0x3fa18f['qUphe']=function(_0x3b43b4,_0x153375){return _0x3b43b4===_0x153375;},_0x3fa18f[_0x1b6faa(0x110)]='finish',_0x3fa18f['SXUTL']=_0x1b6faa(0xdf),_0x3fa18f[_0x1b6faa(0xd7)]=_0x1b6faa(0x11e),_0x3fa18f[_0x1b6faa(0xc5)]=_0x1b6faa(0x113),_0x3fa18f[_0x1b6faa(0xbe)]='.browserstack',_0x3fa18f[_0x1b6faa(0x126)]=_0x1b6faa(0xff),_0x3fa18f[_0x1b6faa(0xfe)]=_0x1b6faa(0xf1),_0x3fa18f[_0x1b6faa(0x10a)]=_0x1b6faa(0xec),_0x3fa18f[_0x1b6faa(0x13a)]='Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.',_0x3fa18f[_0x1b6faa(0xc3)]=_0x1b6faa(0xf8),_0x3fa18f[_0x1b6faa(0xe2)]='http://',_0x3fa18f[_0x1b6faa(0x129)]=_0x1b6faa(0x11b),_0x3fa18f[_0x1b6faa(0x10c)]='Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s',_0x3fa18f[_0x1b6faa(0xc4)]=function(_0x5dd40b,_0x1ca4cd){return _0x5dd40b/_0x1ca4cd;},_0x3fa18f[_0x1b6faa(0xf5)]=function(_0x425b14,_0x1491e5){return _0x425b14*_0x1491e5;},_0x3fa18f[_0x1b6faa(0xf4)]=_0x1b6faa(0x128);const _0x3965d6=_0x3fa18f;this['logger'][_0x1b6faa(0x101)](util['format'](_0x3965d6[_0x1b6faa(0xc5)],_0x589b47));const _0x399155=os[_0x1b6faa(0x139)](),_0x3558c2=path[_0x1b6faa(0x111)](_0x399155,_0x3965d6[_0x1b6faa(0xbe)]);!fs[_0x1b6faa(0xd9)](_0x3558c2)&&(this[_0x1b6faa(0x138)][_0x1b6faa(0x101)](util[_0x1b6faa(0xf9)](_0x3965d6[_0x1b6faa(0x126)],_0x3558c2)),fs['mkdirSync'](_0x3558c2),this[_0x1b6faa(0x138)][_0x1b6faa(0x101)](util['format'](_0x3965d6[_0x1b6faa(0xfe)],_0x3558c2)));const _0xe4b402=BrowserstackCLI['getInstance']()[_0x1b6faa(0xcb)]['TestHubModule']?.[_0x1b6faa(0x132)]?.['toObject']()?.[_0x1b6faa(0x10b)],_0x4f672a=path[_0x1b6faa(0x111)](_0x3558c2,_0xe4b402);!fs[_0x1b6faa(0xd9)](_0x4f672a)&&(fs[_0x1b6faa(0xe5)](_0x4f672a),this[_0x1b6faa(0x138)]['debug'](util['format'](_0x3965d6[_0x1b6faa(0x10a)],_0x4f672a)));if(_0x3965d6['qUphe'](_0x589b47[_0x1b6faa(0xc6)](),'')){this['logger'][_0x1b6faa(0x101)](util[_0x1b6faa(0xf9)](_0x3965d6[_0x1b6faa(0x13a)]));return;}if(_0x589b47[_0x1b6faa(0x119)](_0x3965d6['fweoa'])||_0x589b47['startsWith'](_0x3965d6[_0x1b6faa(0xe2)])){const _0x452e64=_0x589b47[_0x1b6faa(0x119)](_0x3965d6[_0x1b6faa(0xc3)])?https:http,_0x5d1901=path[_0x1b6faa(0xcc)](_0x589b47),_0x321a7e=path[_0x1b6faa(0x111)](_0x4f672a,_0x5d1901),_0x1f0ca4=fs[_0x1b6faa(0xbd)](_0x321a7e);_0x452e64[_0x1b6faa(0x109)](_0x589b47,_0x470e0a=>{const _0x5e5526=_0x1b6faa;if(_0x3965d6[_0x5e5526(0xba)](_0x470e0a['statusCode'],0xc8))_0x470e0a[_0x5e5526(0x112)](_0x1f0ca4),_0x1f0ca4['on'](_0x3965d6[_0x5e5526(0x110)],()=>{const _0x596835=_0x5e5526;_0x1f0ca4[_0x596835(0xd4)]();const _0x2a1531=fs[_0x596835(0xbc)](_0x321a7e),_0x4e1794=_0x3965d6[_0x596835(0x10d)](_0x2a1531[_0x596835(0xc0)],_0x3965d6[_0x596835(0x11d)](0x400,0x400));if(_0x3965d6[_0x596835(0xdb)](_0x4e1794,0x64)){this[_0x596835(0x138)][_0x596835(0x101)](util[_0x596835(0xf9)](_0x3965d6[_0x596835(0xf3)],_0x4e1794[_0x596835(0x12f)](0x2))),fs['unlinkSync'](_0x321a7e);return;}this['logger'][_0x596835(0x101)](util['format'](_0x3965d6[_0x596835(0xdd)],_0x321a7e)),uploadAttachmentsManager[_0x596835(0xeb)](_0x321a7e,_0x413ede);});else{this[_0x5e5526(0x138)]['debug'](util[_0x5e5526(0xf9)](_0x3965d6[_0x5e5526(0x127)],_0x470e0a[_0x5e5526(0xcd)])),_0x1f0ca4[_0x5e5526(0xd4)](),fs[_0x5e5526(0x104)](_0x321a7e);return;}})['on'](_0x3965d6[_0x1b6faa(0x129)],_0x4c2a5f=>{const _0x20a8a5=_0x1b6faa;this['logger'][_0x20a8a5(0x101)](util[_0x20a8a5(0xf9)](_0x3965d6[_0x20a8a5(0xd7)],_0x4c2a5f['message'])),_0x1f0ca4['close'](),fs[_0x20a8a5(0x104)](_0x321a7e);return;});}else{if(!fs['existsSync'](_0x589b47)){this[_0x1b6faa(0x138)][_0x1b6faa(0x101)](util['format'](_0x3965d6[_0x1b6faa(0x10c)],_0x589b47));return;}const _0x2dcfcb=fs['statSync'](_0x589b47),_0xf5c7a0=_0x3965d6[_0x1b6faa(0xc4)](_0x2dcfcb['size'],_0x3965d6['OBnCK'](0x400,0x400));if(_0x3965d6[_0x1b6faa(0xdb)](_0xf5c7a0,0x64)){this[_0x1b6faa(0x138)]['debug'](util['format'](_0x3965d6[_0x1b6faa(0xf4)],_0xf5c7a0[_0x1b6faa(0x12f)](0x2)));return;}const _0x297337=path[_0x1b6faa(0xcc)](_0x589b47),_0x2d96ec=path['join'](_0x4f672a,_0x297337);fs[_0x1b6faa(0xde)](_0x589b47,_0x2d96ec),uploadAttachmentsManager[_0x1b6faa(0xeb)](_0x2d96ec,_0x413ede);}}static['trackFile'](_0x5213ec,_0x59353a){const _0x25a42a=a89_0x230463,_0x548190={'HXpTO':function(_0x26f613,_0x1a6969){return _0x26f613(_0x1a6969);},'ClPKp':'./browserstackCLI','yqrwE':function(_0x3367df,_0x9c210c){return _0x3367df(_0x9c210c);},'vhqtB':'./cliUtils','hmljg':function(_0x2f596d,_0x4d4786){return _0x2f596d===_0x4d4786;},'BnBEL':_0x25a42a(0xef),'uqkIt':'trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','DJuSS':_0x25a42a(0x12a),'lbeZi':_0x25a42a(0xd8),'ZkicZ':_0x25a42a(0xc1),'mCNsi':function(_0x2f537c,_0x165caa){return _0x2f537c(_0x165caa);},'mTNRA':_0x25a42a(0xb9),'fqFYG':function(_0x31e6fd,_0x4e6261){return _0x31e6fd(_0x4e6261);},'dxycy':_0x25a42a(0x108),'KgIhc':'trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','yOqvm':_0x25a42a(0x133),'xwlgE':'Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload'};try{let _0x1bc543;const _0x7b2318=global['__workerDetails']?.[_0x25a42a(0xf2)]?.[_0x25a42a(0xd1)],_0x5aed64=_0x548190[_0x25a42a(0xfb)](require,_0x548190[_0x25a42a(0x10f)]),_0x1d40d0=_0x548190[_0x25a42a(0x102)](require,_0x548190[_0x25a42a(0x122)]),_0x49d626=_0x5aed64['getInstance']()['isRunning']()&&_0x548190[_0x25a42a(0xe3)](_0x1d40d0[_0x25a42a(0x115)]()?.[_0x25a42a(0xc2)]?.[_0x25a42a(0xe4)](),_0x548190[_0x25a42a(0x124)]);if(_0x49d626){_0x1bc543=global[_0x25a42a(0xfc)];if(!_0x1bc543){const _0x52f7c6=AutomationFramework[_0x25a42a(0xc8)]();_0x1bc543=AutomationFramework[_0x25a42a(0x106)](_0x52f7c6,PlaywrightDriverModule[_0x25a42a(0xe0)],'');}this['logger'][_0x25a42a(0x101)](_0x25a42a(0x125)+_0x1bc543);}else{if(!_0x7b2318){const _0x4dc603=AutomationFramework[_0x25a42a(0xc8)]();_0x1bc543=AutomationFramework[_0x25a42a(0x106)](_0x4dc603,PlaywrightDriverModule[_0x25a42a(0xe0)],'');}else _0x1bc543=TestInfo[_0x25a42a(0x11a)](_0x7b2318,_0x7b2318['retry']);this[_0x25a42a(0x138)][_0x25a42a(0x101)](_0x25a42a(0xd3)+_0x1bc543);}if(!_0x1bc543){this[_0x25a42a(0x138)]['debug'](_0x548190[_0x25a42a(0x107)]);return;}const _0x196c21={[TestFrameworkConstants[_0x25a42a(0xe9)]]:fs['statSync'](_0x5213ec)[_0x25a42a(0xc0)],[TestFrameworkConstants['KEY_FILE_NAME']]:path['basename'](_0x5213ec),[TestFrameworkConstants[_0x25a42a(0x135)]]:_0x5213ec,[TestFrameworkConstants[_0x25a42a(0xd6)]]:_0x59353a?_0x548190[_0x25a42a(0x123)]:_0x548190[_0x25a42a(0xd5)]};if(_0x49d626){const _0x1699c6=_0x5aed64[_0x25a42a(0xf0)]()[_0x25a42a(0x12b)]();if(!_0x1699c6){this[_0x25a42a(0x138)][_0x25a42a(0x101)](_0x548190[_0x25a42a(0x114)]);return;}const _0x3f3604=_0x548190[_0x25a42a(0xc9)](require,_0x548190[_0x25a42a(0x10e)]),_0x40e3a3=_0x548190[_0x25a42a(0xce)](require,_0x548190[_0x25a42a(0xea)]),_0x4b0dcd=_0x1699c6[_0x25a42a(0x103)](_0x3f3604[_0x25a42a(0x137)],_0x40e3a3[_0x25a42a(0xdc)]);if(!_0x4b0dcd){this[_0x25a42a(0x138)]['debug'](_0x548190[_0x25a42a(0xda)]);return;}const _0x351c8f=_0x4b0dcd['getAllData']()[_0x25a42a(0x109)](_0x1bc543)||{},_0x35bc5d=_0x351c8f[TestFrameworkConstants[_0x25a42a(0x117)]]||{},_0x45dfaf={..._0x35bc5d};_0x45dfaf[_0x5213ec]=_0x196c21;const _0x5e3db5=_0x45dfaf,_0x441933={[TestFrameworkConstants[_0x25a42a(0x117)]]:_0x5e3db5},_0x551322={};_0x551322[_0x1bc543]=_0x441933,_0x4b0dcd[_0x25a42a(0xf6)](_0x551322),this['logger'][_0x25a42a(0x101)](_0x25a42a(0xc7)+_0x1bc543+',\x20filepath:\x20'+_0x5213ec);}else{const _0x44d5b2=TestInfo['getTestDetails'](_0x1bc543),_0x42214b=_0x44d5b2[TestFrameworkConstants[_0x25a42a(0x117)]]||{};_0x42214b[_0x5213ec]=_0x196c21,_0x44d5b2[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]=_0x42214b,TestInfo[_0x25a42a(0xbb)](_0x1bc543,_0x44d5b2),this[_0x25a42a(0x138)][_0x25a42a(0x101)](_0x25a42a(0xbf)+_0x1bc543+_0x25a42a(0xe6)+_0x5213ec);}this[_0x25a42a(0x138)][_0x25a42a(0x101)](util[_0x25a42a(0xf9)](_0x548190[_0x25a42a(0x131)],_0x5213ec));}catch(_0xfd227b){this[_0x25a42a(0x138)]['debug'](util[_0x25a42a(0xf9)](_0x548190[_0x25a42a(0xcf)],_0xfd227b[_0x25a42a(0xf7)]));}}static[a89_0x230463(0x11f)](){const _0x34a867=a89_0x230463,_0x14561a={};_0x14561a['DrzGn']=_0x34a867(0x121),_0x14561a['fUwcC']=_0x34a867(0x130),_0x14561a[_0x34a867(0x12d)]='Cleared\x20attachment\x20folder';const _0x4772cb=_0x14561a,_0x427e9e=os[_0x34a867(0x139)](),_0x6a172=path[_0x34a867(0x111)](_0x427e9e,_0x4772cb['DrzGn']);if(!fs[_0x34a867(0xd9)](_0x6a172))return;const _0x1953fb=BrowserstackCLI['getInstance']()[_0x34a867(0xcb)][_0x34a867(0x116)]?.[_0x34a867(0x132)]?.[_0x34a867(0x120)]()?.[_0x34a867(0x10b)],_0x14b391=_0x1953fb?path[_0x34a867(0x111)](_0x6a172,_0x1953fb):null;if(!_0x14b391||!fs[_0x34a867(0xd9)](_0x14b391)){this[_0x34a867(0x138)][_0x34a867(0x101)](util[_0x34a867(0xf9)](_0x4772cb[_0x34a867(0xfd)],_0x1953fb));return;}const _0x50f809={};_0x50f809['recursive']=!![],_0x50f809[_0x34a867(0xe8)]=!![],fs[_0x34a867(0x105)](_0x14b391,_0x50f809),this['logger'][_0x34a867(0x101)](util['format'](_0x4772cb[_0x34a867(0x12d)]));}}function a89_0x4ade(){const _0x58db9a=['lbeZi','KEY_FILE_LEVEL','xAkcL','TestLevel','existsSync','KgIhc','eXgLl','POST','dvgOc','copyFileSync','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','KEY_TEST_ID','exports','CuLDR','hmljg','toLowerCase','mkdirSync',',\x20filepath:\x20','2976920edGjhW','force','KEY_FILE_SIZE','dxycy','trackFile','Created\x20folder:\x20%s','871818hzvyrB','2IyGVbD','jest','getInstance','Created\x20.browserstack\x20folder\x20at:\x20%s','currentTest','ydQqr','Vqrhr','OBnCK','addMultipleEntries','message','https://','format','path','HXpTO','__jestCurrentTestIdentifier','fUwcC','EXoOY','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','uploadAttachments','debug','yqrwE','resolveInstance','unlinkSync','rmSync','getState','uqkIt','./state/hookState','get','uDtxk','buildHashedId','cStND','vuLkA','mTNRA','ClPKp','LVkqW','join','pipe','Attachment\x20recevied\x20for\x20path:\x20%s','ZkicZ','getTestFrameworkDetail','TestHubModule','KEY_TEST_ATTACHMENTS','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','startsWith','getTestIdentifierFromTestInfo','error','3819075kmGsmL','meINa','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','clearAttachments','toObject','.browserstack','vhqtB','DJuSS','BnBEL','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','eRbql','SXUTL','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','gwCsJ','BuildLevel','getTestFramework','284478Cszkex','rBdle','util','toFixed','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','yOqvm','testhubConfig','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','2666136OOCjUg','KEY_FILE_PATH','5264861DFzlfP','TEST','logger','homedir','ndXLn','./state/testFrameworkState','qUphe','setTestDetails','statSync','createWriteStream','qivFD','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','size','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','name','fweoa','ARQGF','UEfSv','trim','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','getTrackedInstance','mCNsi','./framework/automationFramework','modules','basename','statusCode','fqFYG','xwlgE','./modules/playwrightDriverModule','testInfo','200466izbTNI','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','close'];a89_0x4ade=function(){return _0x58db9a;};return a89_0x4ade();}module[a89_0x230463(0xe1)]=uploadAttachmentsManager;
|
|
1
|
+
function a89_0x182d(){const _0x19b9ed=['util','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','statSync',',\x20filepath:\x20','CWfKg','resolveInstance','logger','toObject','format','TEST','recursive','get','tAuTM','close','Created\x20folder:\x20%s','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','basename','emnBM','TestHubModule','getTestDetails','modules','addMultipleEntries','./state/hookState','toLowerCase','gNlZn','../../helpers/classLogger.js','./framework/automationFramework','AviLM','15572061OSsilt','TyvKE','getInstance','getTrackedInstance','copyFileSync','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','http://','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','HyZZx','OQWLo','getTestIdentifierFromTestInfo','HzAdD','message','getTestFramework','__workerDetails','http','VwjLh','toFixed','.browserstack','finish','./browserstackCLI','trim','8xWTECc','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','Created\x20.browserstack\x20folder\x20at:\x20%s','DLutB','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','wiQuX','20035IEBlbQ','Attachment\x20recevied\x20for\x20path:\x20%s','BuildLevel','__jestCurrentTestIdentifier','gblmR','File\x20downloaded\x20to:\x20%s','khYyT','shrTe','getAllData','uploadAttachments','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','Cleared\x20attachment\x20folder','6439748nJLrYz','dOWeg','KEY_TEST_ID','size','arMQO','CYIHy','694745ATUPYh','920416dapEPh','YBGKC','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','getTestFrameworkDetail','KEY_TEST_ATTACHMENTS','statusCode','KEY_FILE_PATH','existsSync','debug','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','getState','trackFile','retry','KEY_FILE_SIZE','unlinkSync','ojEjS','QDKGy','OulNB','caCqo','kWqyl','startsWith','./framework/constants/testFrameworkConstants','159288vsdEkn','./state/testFrameworkState','sRjOB','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','neWAF','testInfo','path','jest','join','XrTFg','VhNgQ','rmSync','JHoRC','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','testhubConfig','LWlCM','force','homedir','https','buildHashedId','3218576IYzATw','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','FKSAR','TestLevel','fQBKm','ZUNtw','KEY_FILE_NAME','1542oSJTla','zIiJm','isRunning','pipe'];a89_0x182d=function(){return _0x19b9ed;};return a89_0x182d();}function a89_0x677f(_0x1e9c01,_0x1fe561){const _0x182d35=a89_0x182d();return a89_0x677f=function(_0x677fc1,_0x52b2f7){_0x677fc1=_0x677fc1-0x7a;let _0x184282=_0x182d35[_0x677fc1];return _0x184282;},a89_0x677f(_0x1e9c01,_0x1fe561);}const a89_0x456f95=a89_0x677f;(function(_0x1a0f45,_0x27450f){const _0x1e39ff=a89_0x677f,_0x1c5bdd=_0x1a0f45();while(!![]){try{const _0x35c390=parseInt(_0x1e39ff(0x99))/0x1+parseInt(_0x1e39ff(0x9a))/0x2+-parseInt(_0x1e39ff(0xb0))/0x3+-parseInt(_0x1e39ff(0xc4))/0x4+-parseInt(_0x1e39ff(0x87))/0x5*(-parseInt(_0x1e39ff(0xcc))/0x6)+parseInt(_0x1e39ff(0x93))/0x7+-parseInt(_0x1e39ff(0x81))/0x8*(parseInt(_0x1e39ff(0xec))/0x9);if(_0x35c390===_0x27450f)break;else _0x1c5bdd['push'](_0x1c5bdd['shift']());}catch(_0xae2901){_0x1c5bdd['push'](_0x1c5bdd['shift']());}}}(a89_0x182d,0x7e28b));const os=require('os'),fs=require('fs'),path=require(a89_0x456f95(0xb6)),util=require(a89_0x456f95(0xd0)),BrowserstackCLI=require(a89_0x456f95(0x7f)),https=require(a89_0x456f95(0xc2)),http=require(a89_0x456f95(0x7a)),AutomationFramework=require(a89_0x456f95(0xea)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require('./TestInfo'),TestFrameworkConstants=require(a89_0x456f95(0xaf)),{createClassLogger}=require(a89_0x456f95(0xe9));class uploadAttachmentsManager{static ['logger']=createClassLogger('uploadAttachmentsManager');static[a89_0x456f95(0x90)](_0x223225,_0x3a43ad=![]){const _0x43a9d9=a89_0x456f95,_0x90c7fc={};_0x90c7fc[_0x43a9d9(0xcd)]=function(_0x40ccb9,_0x399de6){return _0x40ccb9/_0x399de6;},_0x90c7fc[_0x43a9d9(0xf7)]=function(_0x41c53c,_0x2b30fd){return _0x41c53c*_0x2b30fd;},_0x90c7fc[_0x43a9d9(0x94)]=function(_0x23fcd1,_0x4b9afa){return _0x23fcd1>_0x4b9afa;},_0x90c7fc[_0x43a9d9(0xb4)]=_0x43a9d9(0xf3),_0x90c7fc['KUQrs']=_0x43a9d9(0x8c),_0x90c7fc['gNlZn']=function(_0x236aae,_0x44144b){return _0x236aae===_0x44144b;},_0x90c7fc['UwLkL']=_0x43a9d9(0x7e),_0x90c7fc[_0x43a9d9(0xba)]=_0x43a9d9(0x9c),_0x90c7fc[_0x43a9d9(0xb2)]=_0x43a9d9(0xa3),_0x90c7fc[_0x43a9d9(0xac)]=_0x43a9d9(0x88),_0x90c7fc['psGDD']=_0x43a9d9(0x7d),_0x90c7fc[_0x43a9d9(0xa9)]=_0x43a9d9(0xbd),_0x90c7fc[_0x43a9d9(0xd4)]=_0x43a9d9(0x83),_0x90c7fc['emnBM']=_0x43a9d9(0xde),_0x90c7fc[_0x43a9d9(0x8d)]=_0x43a9d9(0xf1),_0x90c7fc[_0x43a9d9(0xca)]='https://',_0x90c7fc[_0x43a9d9(0xc9)]=_0x43a9d9(0xf2),_0x90c7fc[_0x43a9d9(0xbf)]='error',_0x90c7fc[_0x43a9d9(0xeb)]='Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s',_0x90c7fc['tJSrE']=function(_0x4e313e,_0x273318){return _0x4e313e/_0x273318;},_0x90c7fc[_0x43a9d9(0xf5)]=function(_0x290669,_0x3864a5){return _0x290669>_0x3864a5;},_0x90c7fc[_0x43a9d9(0xad)]=_0x43a9d9(0x82);const _0x276ea7=_0x90c7fc;this[_0x43a9d9(0xd6)][_0x43a9d9(0xa2)](util[_0x43a9d9(0xd8)](_0x276ea7['caCqo'],_0x223225));const _0x36f92a=os[_0x43a9d9(0xc1)](),_0x59ac42=path[_0x43a9d9(0xb8)](_0x36f92a,_0x276ea7['psGDD']);!fs['existsSync'](_0x59ac42)&&(this['logger'][_0x43a9d9(0xa2)](util['format'](_0x276ea7[_0x43a9d9(0xa9)],_0x59ac42)),fs['mkdirSync'](_0x59ac42),this['logger'][_0x43a9d9(0xa2)](util[_0x43a9d9(0xd8)](_0x276ea7[_0x43a9d9(0xd4)],_0x59ac42)));const _0x4c2683=BrowserstackCLI[_0x43a9d9(0xee)]()[_0x43a9d9(0xe4)][_0x43a9d9(0xe2)]?.['testhubConfig']?.[_0x43a9d9(0xd7)]()?.[_0x43a9d9(0xc3)],_0x232cca=path[_0x43a9d9(0xb8)](_0x59ac42,_0x4c2683);!fs['existsSync'](_0x232cca)&&(fs['mkdirSync'](_0x232cca),this['logger']['debug'](util['format'](_0x276ea7[_0x43a9d9(0xe1)],_0x232cca)));if(_0x276ea7['gNlZn'](_0x223225[_0x43a9d9(0x80)](),'')){this['logger'][_0x43a9d9(0xa2)](util[_0x43a9d9(0xd8)](_0x276ea7['khYyT']));return;}if(_0x223225[_0x43a9d9(0xae)](_0x276ea7['ZUNtw'])||_0x223225['startsWith'](_0x276ea7[_0x43a9d9(0xc9)])){const _0x35ad7e=_0x223225['startsWith'](_0x276ea7[_0x43a9d9(0xca)])?https:http,_0x4c37a6=path[_0x43a9d9(0xe0)](_0x223225),_0x63270a=path[_0x43a9d9(0xb8)](_0x232cca,_0x4c37a6),_0x182e95=fs['createWriteStream'](_0x63270a);_0x35ad7e[_0x43a9d9(0xdb)](_0x223225,_0x4b732a=>{const _0x36b0a8=_0x43a9d9,_0xbef421={'VwjLh':function(_0xd8478c,_0x1867c7){const _0x3c02d0=a89_0x677f;return _0x276ea7[_0x3c02d0(0xcd)](_0xd8478c,_0x1867c7);},'VvGgB':function(_0xddf51d,_0x2924df){const _0x5587f4=a89_0x677f;return _0x276ea7[_0x5587f4(0xf7)](_0xddf51d,_0x2924df);},'AnDNW':function(_0x16e78d,_0x3a7441){return _0x276ea7['dOWeg'](_0x16e78d,_0x3a7441);},'XKTiR':_0x276ea7['neWAF'],'zKHKj':_0x276ea7['KUQrs']};if(_0x276ea7[_0x36b0a8(0xe8)](_0x4b732a[_0x36b0a8(0x9f)],0xc8))_0x4b732a[_0x36b0a8(0xcf)](_0x182e95),_0x182e95['on'](_0x276ea7['UwLkL'],()=>{const _0x1ee713=_0x36b0a8;_0x182e95[_0x1ee713(0xdd)]();const _0x502e9c=fs['statSync'](_0x63270a),_0x3d4d5b=_0xbef421[_0x1ee713(0x7b)](_0x502e9c[_0x1ee713(0x96)],_0xbef421['VvGgB'](0x400,0x400));if(_0xbef421['AnDNW'](_0x3d4d5b,0x64)){this['logger']['debug'](util[_0x1ee713(0xd8)](_0xbef421['XKTiR'],_0x3d4d5b[_0x1ee713(0x7c)](0x2))),fs['unlinkSync'](_0x63270a);return;}this[_0x1ee713(0xd6)]['debug'](util['format'](_0xbef421['zKHKj'],_0x63270a)),uploadAttachmentsManager[_0x1ee713(0xa5)](_0x63270a,_0x3a43ad);});else{this[_0x36b0a8(0xd6)][_0x36b0a8(0xa2)](util['format'](_0x276ea7['VhNgQ'],_0x4b732a[_0x36b0a8(0x9f)])),_0x182e95[_0x36b0a8(0xdd)](),fs[_0x36b0a8(0xa8)](_0x63270a);return;}})['on'](_0x276ea7[_0x43a9d9(0xbf)],_0x41a94a=>{const _0x45aa4d=_0x43a9d9;this[_0x45aa4d(0xd6)][_0x45aa4d(0xa2)](util[_0x45aa4d(0xd8)](_0x276ea7[_0x45aa4d(0xb2)],_0x41a94a[_0x45aa4d(0xf8)])),_0x182e95[_0x45aa4d(0xdd)](),fs['unlinkSync'](_0x63270a);return;});}else{if(!fs[_0x43a9d9(0xa1)](_0x223225)){this[_0x43a9d9(0xd6)][_0x43a9d9(0xa2)](util[_0x43a9d9(0xd8)](_0x276ea7[_0x43a9d9(0xeb)],_0x223225));return;}const _0x3583ed=fs[_0x43a9d9(0xd2)](_0x223225),_0x4ee487=_0x276ea7['tJSrE'](_0x3583ed[_0x43a9d9(0x96)],_0x276ea7['HzAdD'](0x400,0x400));if(_0x276ea7[_0x43a9d9(0xf5)](_0x4ee487,0x64)){this['logger'][_0x43a9d9(0xa2)](util[_0x43a9d9(0xd8)](_0x276ea7['kWqyl'],_0x4ee487['toFixed'](0x2)));return;}const _0x4f42d4=path[_0x43a9d9(0xe0)](_0x223225),_0x37152d=path[_0x43a9d9(0xb8)](_0x232cca,_0x4f42d4);fs[_0x43a9d9(0xf0)](_0x223225,_0x37152d),uploadAttachmentsManager['trackFile'](_0x37152d,_0x3a43ad);}}static[a89_0x456f95(0xa5)](_0x1245d3,_0xee2364){const _0x3fa560=a89_0x456f95,_0x4ce5bc={'FKSAR':function(_0x4426c6,_0x355338){return _0x4426c6(_0x355338);},'YBGKC':_0x3fa560(0x7f),'DLutB':'./cliUtils','OulNB':function(_0x45c7e6,_0x564f5c){return _0x45c7e6===_0x564f5c;},'tsGgB':_0x3fa560(0xb7),'shrTe':'trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','tgJOi':_0x3fa560(0x89),'JHoRC':_0x3fa560(0xc8),'wiQuX':_0x3fa560(0xd1),'tAuTM':_0x3fa560(0xb1),'HyZZx':function(_0x28c2a6,_0x399e0d){return _0x28c2a6(_0x399e0d);},'QDKGy':_0x3fa560(0xe6),'TyvKE':_0x3fa560(0xc5),'ewNyp':'Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','XrTFg':_0x3fa560(0xc6)};try{let _0x3e05de;const _0x3f816e=global[_0x3fa560(0xfa)]?.['currentTest']?.[_0x3fa560(0xb5)],_0x215667=_0x4ce5bc[_0x3fa560(0xc7)](require,_0x4ce5bc[_0x3fa560(0x9b)]),_0x310630=_0x4ce5bc['FKSAR'](require,_0x4ce5bc[_0x3fa560(0x84)]),_0x229f81=_0x215667['getInstance']()[_0x3fa560(0xce)]()&&_0x4ce5bc[_0x3fa560(0xab)](_0x310630[_0x3fa560(0x9d)]()?.['name']?.[_0x3fa560(0xe7)](),_0x4ce5bc['tsGgB']);if(_0x229f81){_0x3e05de=global[_0x3fa560(0x8a)];if(!_0x3e05de){const _0x409a2b=AutomationFramework[_0x3fa560(0xef)]();_0x3e05de=AutomationFramework[_0x3fa560(0xa4)](_0x409a2b,PlaywrightDriverModule[_0x3fa560(0x95)],'');}this[_0x3fa560(0xd6)][_0x3fa560(0xa2)](_0x3fa560(0x85)+_0x3e05de);}else{if(!_0x3f816e){const _0x2c2c70=AutomationFramework['getTrackedInstance']();_0x3e05de=AutomationFramework[_0x3fa560(0xa4)](_0x2c2c70,PlaywrightDriverModule[_0x3fa560(0x95)],'');}else _0x3e05de=TestInfo[_0x3fa560(0xf6)](_0x3f816e,_0x3f816e[_0x3fa560(0xa6)]);this[_0x3fa560(0xd6)][_0x3fa560(0xa2)](_0x3fa560(0x91)+_0x3e05de);}if(!_0x3e05de){this[_0x3fa560(0xd6)][_0x3fa560(0xa2)](_0x4ce5bc[_0x3fa560(0x8e)]);return;}const _0xba589e={[TestFrameworkConstants[_0x3fa560(0xa7)]]:fs[_0x3fa560(0xd2)](_0x1245d3)[_0x3fa560(0x96)],[TestFrameworkConstants[_0x3fa560(0xcb)]]:path[_0x3fa560(0xe0)](_0x1245d3),[TestFrameworkConstants[_0x3fa560(0xa0)]]:_0x1245d3,[TestFrameworkConstants['KEY_FILE_LEVEL']]:_0xee2364?_0x4ce5bc['tgJOi']:_0x4ce5bc[_0x3fa560(0xbc)]};if(_0x229f81){const _0x3cdfb5=_0x215667[_0x3fa560(0xee)]()[_0x3fa560(0xf9)]();if(!_0x3cdfb5){this[_0x3fa560(0xd6)][_0x3fa560(0xa2)](_0x4ce5bc[_0x3fa560(0x86)]);return;}const _0x484c20=_0x4ce5bc['FKSAR'](require,_0x4ce5bc[_0x3fa560(0xdc)]),_0x5af39e=_0x4ce5bc[_0x3fa560(0xf4)](require,_0x4ce5bc[_0x3fa560(0xaa)]),_0xc8588a=_0x3cdfb5[_0x3fa560(0xd5)](_0x484c20[_0x3fa560(0xd9)],_0x5af39e['POST']);if(!_0xc8588a){this[_0x3fa560(0xd6)]['debug'](_0x4ce5bc[_0x3fa560(0xed)]);return;}const _0x1c0e98=_0xc8588a[_0x3fa560(0x8f)]()['get'](_0x3e05de)||{},_0x2b5898=_0x1c0e98[TestFrameworkConstants[_0x3fa560(0x9e)]]||{},_0x58c7c4={..._0x2b5898};_0x58c7c4[_0x1245d3]=_0xba589e;const _0x5f009b=_0x58c7c4,_0x26371e={[TestFrameworkConstants[_0x3fa560(0x9e)]]:_0x5f009b},_0x10c258={};_0x10c258[_0x3e05de]=_0x26371e,_0xc8588a[_0x3fa560(0xe5)](_0x10c258),this['logger'][_0x3fa560(0xa2)](_0x3fa560(0xdf)+_0x3e05de+_0x3fa560(0xd3)+_0x1245d3);}else{const _0x3fdbc1=TestInfo[_0x3fa560(0xe3)](_0x3e05de),_0x4fe258=_0x3fdbc1[TestFrameworkConstants[_0x3fa560(0x9e)]]||{};_0x4fe258[_0x1245d3]=_0xba589e,_0x3fdbc1[TestFrameworkConstants[_0x3fa560(0x9e)]]=_0x4fe258,TestInfo['setTestDetails'](_0x3e05de,_0x3fdbc1),this[_0x3fa560(0xd6)]['debug']('trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20'+_0x3e05de+',\x20filepath:\x20'+_0x1245d3);}this['logger']['debug'](util[_0x3fa560(0xd8)](_0x4ce5bc['ewNyp'],_0x1245d3));}catch(_0x6f6888){this['logger'][_0x3fa560(0xa2)](util[_0x3fa560(0xd8)](_0x4ce5bc[_0x3fa560(0xb9)],_0x6f6888['message']));}}static['clearAttachments'](){const _0x4e8c65=a89_0x456f95,_0x88295d={};_0x88295d[_0x4e8c65(0x97)]=_0x4e8c65(0x7d),_0x88295d[_0x4e8c65(0x8b)]=_0x4e8c65(0xb3),_0x88295d[_0x4e8c65(0x98)]=_0x4e8c65(0x92);const _0x252dee=_0x88295d,_0x3a6e65=os[_0x4e8c65(0xc1)](),_0x1e55e8=path[_0x4e8c65(0xb8)](_0x3a6e65,_0x252dee[_0x4e8c65(0x97)]);if(!fs[_0x4e8c65(0xa1)](_0x1e55e8))return;const _0x10e8b2=BrowserstackCLI['getInstance']()[_0x4e8c65(0xe4)]['TestHubModule']?.[_0x4e8c65(0xbe)]?.[_0x4e8c65(0xd7)]()?.[_0x4e8c65(0xc3)],_0x230f0a=_0x10e8b2?path['join'](_0x1e55e8,_0x10e8b2):null;if(!_0x230f0a||!fs[_0x4e8c65(0xa1)](_0x230f0a)){this[_0x4e8c65(0xd6)][_0x4e8c65(0xa2)](util[_0x4e8c65(0xd8)](_0x252dee[_0x4e8c65(0x8b)],_0x10e8b2));return;}const _0x321390={};_0x321390[_0x4e8c65(0xda)]=!![],_0x321390[_0x4e8c65(0xc0)]=!![],fs[_0x4e8c65(0xbb)](_0x230f0a,_0x321390),this[_0x4e8c65(0xd6)]['debug'](util[_0x4e8c65(0xd8)](_0x252dee[_0x4e8c65(0x98)]));}}module['exports']=uploadAttachmentsManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a90_0xa0ed(){const _0x49cdc6=['../../../helpers/helper.js','result','relative','tDStz','EVyos','KFMEP','push','debug','498024GMssfa','filter','hookId','sUNxd','children','failure_reason','zOLAe','Exception\x20in\x20getHookRunEventData:\x20','HookRunFinished','finishedAt','message','DFBLj','hooks','feature','javascript','tableBody','1391795mzJAWQ','WIGlO','test','283088xpioIx','ViKSG','pending','MWqMz','flatMap','util','createTestFrameworkData','failureType','failed','bstack','strip-ansi','testCaseFinished','../TestInfo.js','IYZpN','zLZjU','jLNoK','kaqML','astNodeIds','match','BjIts','oiiSN','scenario','gUDqZ','length','finished_at','pQQgW','getTestUUID','nanos','ahwpp','WaAYD','_gitConfigPath','Dqrxn','GDTtC','BSIEX','vjGNh','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','QaXBR','value','11631LmcbxC','HookRunStarted','UnhandledError','../../../helpers/test-observability/error-handler.js','vEvZX','tags','SIeGR','rVTNd','exports','path','722688VRFkGN','../../../helpers/logger.js','xgrmi','tagExpression','LKpqU','FAILED','xJqHF','unknown','testStepResult','fGfwP','status','OYuyo','getScenarioExamples','toString','cucumber','timestamp','Ryqfu','cells','name','includes','testStepFinished','getHookRunEventData','format','WHffP','find','RNMDg','map','backtrace','HNrPi','AFTER_EACH','configureGit','146UmoBNk','failure_type','YtQSK','uri','uuid','failure_data','15786Ezyrer','AssertionError','DxSaz','toISOString','duration_in_ms','sourceReference','357kzcEpi','exception','20dohErJ','SKaCf','examples','sendTestRunEventForCucumber','RGBKt','rule','root','passed','BJGot','bMmTB','winstonLogger','getHookResult','forEach','_gitConfigured','toLowerCase','createHookData','zCvyF','getCucumberHookType','join','xptLJ','failure','74299nOyOgp','EYXow'];a90_0xa0ed=function(){return _0x49cdc6;};return a90_0xa0ed();}const a90_0x3d9720=a90_0x417c;function a90_0x417c(_0x3e1404,_0x51cd77){const _0xa0ede0=a90_0xa0ed();return a90_0x417c=function(_0x417ca5,_0x37b9a5){_0x417ca5=_0x417ca5-0x195;let _0x5ccdcd=_0xa0ede0[_0x417ca5];return _0x5ccdcd;},a90_0x417c(_0x3e1404,_0x51cd77);}(function(_0x81722,_0x434c66){const _0x4b2d1e=a90_0x417c,_0x3c028d=_0x81722();while(!![]){try{const _0x489f5f=-parseInt(_0x4b2d1e(0x1da))/0x1+-parseInt(_0x4b2d1e(0x1b7))/0x2*(parseInt(_0x4b2d1e(0x21d))/0x3)+parseInt(_0x4b2d1e(0x1f7))/0x4+parseInt(_0x4b2d1e(0x1f4))/0x5+-parseInt(_0x4b2d1e(0x1bd))/0x6*(-parseInt(_0x4b2d1e(0x1c3))/0x7)+-parseInt(_0x4b2d1e(0x198))/0x8+-parseInt(_0x4b2d1e(0x1e4))/0x9*(-parseInt(_0x4b2d1e(0x1c5))/0xa);if(_0x489f5f===_0x434c66)break;else _0x3c028d['push'](_0x3c028d['shift']());}catch(_0x1fdf45){_0x3c028d['push'](_0x3c028d['shift']());}}}(a90_0xa0ed,0x23b98));const path=require(a90_0x3d9720(0x197)),util=require(a90_0x3d9720(0x1fc)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a90_0x3d9720(0x1dc)),logger=require(a90_0x3d9720(0x199))[a90_0x3d9720(0x1cf)],{o11yClassErrorHandler}=require(a90_0x3d9720(0x220)),TestInfo=require(a90_0x3d9720(0x203)),hooksMap={};class CucumberUtils{constructor(){const _0x3abcba=a90_0x3d9720;this[_0x3abcba(0x1d2)]=![],this['_gitConfigPath']=null;}async[a90_0x3d9720(0x1fd)](_0x3e93f7,_0x230d90,_0x12e070,_0x321d72,_0x422e94,_0x3c66e9){const _0x584534=a90_0x3d9720,_0x198096={'HNrPi':function(_0x241d35,_0x3aa1bd){return _0x241d35===_0x3aa1bd;},'kaqML':_0x584534(0x19d),'YtQSK':_0x584534(0x1ff),'BJGot':function(_0x3052b0,_0x19825a){return _0x3052b0===_0x19825a;},'LKpqU':'SKIPPED','jLNoK':'skipped','RNMDg':function(_0x4c0eaf,_0x1208a2){return _0x4c0eaf||_0x1208a2;},'EVyos':function(_0x33c335,_0x1cf349){return _0x33c335+_0x1cf349;},'MWqMz':_0x584534(0x1f6),'zCvyF':_0x584534(0x1f2),'zOLAe':_0x584534(0x1a6),'cDOsY':_0x584534(0x1f9),'BSIEX':_0x584534(0x1cc),'RGBKt':function(_0x3b6be1,_0x28270e){return _0x3b6be1!==_0x28270e;},'vjGNh':function(_0xd70949,_0xf1744b){return _0xd70949/_0xf1744b;},'ViKSG':function(_0x43d5a6,_0x5cebd1){return _0x43d5a6===_0x5cebd1;},'Ryqfu':_0x584534(0x201),'SKaCf':function(_0xdcf451,_0x181db3){return _0xdcf451(_0x181db3);},'NrOMC':_0x584534(0x19f),'mexPh':_0x584534(0x1be),'KFMEP':_0x584534(0x21f)},{feature:_0x32fd53,scenario:_0x89af50,steps:_0x2ec132,uuid:_0x278dcb,startedAt:_0x8ec233,finishedAt:_0x4a82ad}=_0x198096[_0x584534(0x1b1)](_0x3e93f7,{}),_0x1f6ec8=this[_0x584534(0x1a4)](_0x321d72,_0x230d90);await this[_0x584534(0x1b6)]();const _0x45edbd=_0x1f6ec8?_0x198096[_0x584534(0x1e0)](_0x198096['EVyos'](_0x198096[_0x584534(0x1e0)](_0x230d90[_0x584534(0x1aa)],'\x20('),_0x1f6ec8[_0x584534(0x1d7)](',\x20')),')'):_0x230d90[_0x584534(0x1aa)],_0x336ebe={'id':_0x422e94,'uuid':_0x422e94,'startedAt':_0x8ec233,'finishedAt':_0x4a82ad,'type':_0x198096[_0x584534(0x1fa)],'body':{'lang':_0x198096[_0x584534(0x1d5)],'code':null},'name':_0x45edbd,'scopes':[_0x32fd53&&_0x32fd53[_0x584534(0x1aa)]?_0x32fd53['name']:''],'tags':_0x230d90[_0x584534(0x222)]?_0x230d90[_0x584534(0x222)][_0x584534(0x1b2)](({name:_0x12f428})=>_0x12f428):[],'file_name':_0x230d90[_0x584534(0x1ba)],'location':_0x230d90[_0x584534(0x1ba)],'vc_filepath':this[_0x584534(0x215)]&&_0x230d90['uri']?path[_0x584534(0x1de)](this[_0x584534(0x215)],_0x230d90[_0x584534(0x1ba)]):null,'framework':_0x198096[_0x584534(0x1ea)],'result':_0x198096['cDOsY'],'meta':{'feature':_0x32fd53,'scenario':_0x89af50,'steps':_0x2ec132,'examples':_0x1f6ec8},'customRerunParam':{'rerun_name':_0x45edbd}};if(_0x12e070[_0x584534(0x202)]&&_0x2ec132){const _0x3651d2=_0x12e070['testCaseFinished'];let _0xdf27ca=_0x198096[_0x584534(0x218)];_0x2ec132['every'](_0xe9711f=>{const _0x5823d3=_0x584534;if(_0x198096[_0x5823d3(0x1b4)](_0xe9711f[_0x5823d3(0x1dd)],_0x198096[_0x5823d3(0x207)]))return _0xdf27ca=_0x198096['YtQSK'],_0x3651d2['failure']=_0xe9711f[_0x5823d3(0x1d9)],_0x3651d2[_0x5823d3(0x1fe)]=_0xe9711f['failureType'],![];else{if(_0x198096[_0x5823d3(0x1cd)](_0xe9711f[_0x5823d3(0x1dd)],_0x198096[_0x5823d3(0x19c)]))return _0xdf27ca=_0x198096[_0x5823d3(0x206)],![];}return!![];}),_0x336ebe[_0x584534(0x1ed)]=new Date()[_0x584534(0x1c0)](),_0x336ebe[_0x584534(0x1dd)]=_0xdf27ca;_0x3651d2[_0x584534(0x1a7)]&&_0x198096[_0x584534(0x1c9)](_0x3651d2[_0x584534(0x1a7)][_0x584534(0x212)],undefined)?_0x336ebe['duration_in_ms']=_0x198096[_0x584534(0x219)](_0x3651d2[_0x584534(0x1a7)][_0x584534(0x212)],0xf4240):_0x336ebe[_0x584534(0x1c1)]=undefined;if(_0x198096[_0x584534(0x1f8)](_0xdf27ca,_0x198096[_0x584534(0x1b9)])){const {default:_0x373ed3}=await import(_0x198096[_0x584534(0x1a8)]);_0x336ebe[_0x584534(0x1d9)]=[{'backtrace':[_0x3651d2[_0x584534(0x1d9)]?_0x198096[_0x584534(0x1c6)](_0x373ed3,_0x3651d2[_0x584534(0x1d9)]):_0x198096['NrOMC']]}],_0x336ebe[_0x584534(0x1e9)]=_0x3651d2[_0x584534(0x1d9)]?_0x198096[_0x584534(0x1c6)](_0x373ed3,_0x3651d2['failure']):_0x3651d2['message'],_0x3651d2[_0x584534(0x1fe)]&&(_0x336ebe[_0x584534(0x1b8)]=_0x3651d2[_0x584534(0x1fe)][_0x584534(0x209)](/AssertError/)?_0x198096['mexPh']:_0x198096[_0x584534(0x1e1)]);}}return _0x336ebe;}['getHookRunEventData'](_0x24f6e3,_0x22aa07,_0x26dc91,_0x3e14c3,_0x3c2bd0,_0x3c69e3){const _0x5a6208=a90_0x3d9720,_0x2fe839={'oiiSN':function(_0x4be980,_0xe7ee17){return _0x4be980===_0xe7ee17;},'WaAYD':_0x5a6208(0x1ec),'WIGlO':function(_0x2f09c4,_0x3af9ca,_0x44721d){return _0x2f09c4(_0x3af9ca,_0x44721d);},'pQQgW':'sourceReference','YqXHJ':_0x5a6208(0x1ba),'OYuyo':_0x5a6208(0x1f9),'xJqHF':'hook','vEvZX':_0x5a6208(0x1f2),'EYXow':function(_0x1657c4,_0x5bbc37,_0xd81740){return _0x1657c4(_0x5bbc37,_0xd81740);},'xgrmi':_0x5a6208(0x1f1),'rVTNd':_0x5a6208(0x1aa),'GDTtC':_0x5a6208(0x1a6)};try{if(_0x2fe839[_0x5a6208(0x20b)](_0x26dc91,_0x2fe839[_0x5a6208(0x214)])){const _0x1609ee=new Date()[_0x5a6208(0x1c0)](),_0x18ef85=hooksMap[_0x22aa07];if(!_0x18ef85)return;const _0x3ebb91=_0x18ef85[_0x5a6208(0x1b0)](_0x470a9f=>_0x470a9f[_0x5a6208(0x1bb)]===_0x3e14c3['id']);if(!_0x3ebb91)return;const _0x500d1b=this[_0x5a6208(0x1d0)](_0x24f6e3,_0x22aa07);_0x3ebb91[_0x5a6208(0x1dd)]=_0x500d1b['status'],_0x3ebb91[_0x5a6208(0x20f)]=_0x1609ee,_0x3ebb91[_0x5a6208(0x1b8)]=_0x500d1b[_0x5a6208(0x1fe)];const _0x34481d={};return _0x34481d[_0x5a6208(0x1b3)]=_0x500d1b['failureData'],_0x3ebb91[_0x5a6208(0x1bc)]=[_0x34481d],_0x3ebb91;}const _0x213d0a=TestInfo[_0x5a6208(0x211)](_0x22aa07),_0x42ff7e=_0x24f6e3[_0x5a6208(0x1f0)][_0x5a6208(0x1b0)](_0x5e53e3=>_0x5e53e3['id']===_0x3e14c3[_0x5a6208(0x1e6)]),_0x284966=_0x2fe839[_0x5a6208(0x1f5)](nestedKeyValue,_0x42ff7e,[_0x2fe839[_0x5a6208(0x210)],_0x2fe839['YqXHJ']]),_0x1cb409=new Date()[_0x5a6208(0x1c0)](),_0x552f1c=_0x2fe839[_0x5a6208(0x1a3)],_0x53ca50=_0x42ff7e['tagExpression']?_0x42ff7e[_0x5a6208(0x19b)]['split']('\x20')[_0x5a6208(0x1e5)](_0x37805f=>_0x37805f[_0x5a6208(0x1ab)]('@')):[],_0xabf8ba={'uuid':_0x3e14c3['id'],'type':_0x2fe839[_0x5a6208(0x19e)],'hook_type':_0x3c69e3,'name':_0x42ff7e['name'],'body':{'lang':_0x2fe839[_0x5a6208(0x221)],'code':null},'tags':_0x53ca50,'test_run_id':_0x213d0a,'scope':_0x2fe839[_0x5a6208(0x1db)](nestedKeyValue,_0x3c2bd0,[_0x2fe839[_0x5a6208(0x19a)],_0x2fe839[_0x5a6208(0x195)]]),'scopes':[_0x2fe839[_0x5a6208(0x1db)](nestedKeyValue,_0x3c2bd0,[_0x2fe839[_0x5a6208(0x19a)],_0x2fe839[_0x5a6208(0x195)]])||''],'file_name':_0x284966,'location':_0x284966,'vc_filepath':this[_0x5a6208(0x215)]?path['relative'](this[_0x5a6208(0x215)],_0x284966):null,'result':_0x552f1c,'started_at':_0x1cb409,'framework':_0x2fe839[_0x5a6208(0x217)]};return _0xabf8ba;}catch(_0x4d9951){logger[_0x5a6208(0x1e3)](_0x5a6208(0x1eb)+util[_0x5a6208(0x1ae)](_0x4d9951)+'\x20');}}async[a90_0x3d9720(0x1d4)](_0x1ad495,_0x211313,_0x49f3db,_0x1c11a2,_0x1cd694,_0x2eba51){const _0x3aac01=a90_0x3d9720,_0x133eb4={'zLZjU':function(_0x1ab686,_0xfd734a){return _0x1ab686===_0xfd734a;},'DFvfe':_0x3aac01(0x21e),'BjIts':function(_0x13b40a,_0x496dc3,_0x42c4e1){return _0x13b40a(_0x496dc3,_0x42c4e1);},'sUNxd':_0x3aac01(0x1c2),'Dqrxn':_0x3aac01(0x1ba),'IYZpN':_0x3aac01(0x21a),'SIeGR':function(_0x49c2e5,_0x45154d){return _0x49c2e5===_0x45154d;},'iAtcg':_0x3aac01(0x200)};try{const _0x3542d4=_0x1c11a2[_0x3aac01(0x1b0)](_0x577ac8=>_0x577ac8['id']===_0x1cd694);if(!_0x3542d4['hookId'])return;const _0x2de398=this[_0x3aac01(0x1d6)](_0x1c11a2,_0x3542d4),_0x4ae293=this[_0x3aac01(0x1ad)](_0x1ad495,_0x211313,_0x49f3db,_0x3542d4,_0x2eba51,_0x2de398);if(!_0x4ae293)return;_0x133eb4[_0x3aac01(0x205)](_0x49f3db,_0x133eb4['DFvfe'])&&(hooksMap[_0x211313]?hooksMap[_0x211313][_0x3aac01(0x1e2)](_0x4ae293):hooksMap[_0x211313]=[_0x4ae293]);const _0x40a007=_0x1ad495[_0x3aac01(0x1f0)][_0x3aac01(0x1b0)](_0x53d15f=>_0x53d15f['id']===_0x3542d4[_0x3aac01(0x1e6)]),_0x1fa359=_0x133eb4[_0x3aac01(0x20a)](nestedKeyValue,_0x40a007,[_0x133eb4[_0x3aac01(0x1e7)],_0x133eb4[_0x3aac01(0x216)]]);if(!_0x1fa359)return;else{if(_0x1fa359[_0x3aac01(0x1ab)](_0x133eb4[_0x3aac01(0x204)]))return;}if(_0x133eb4[_0x3aac01(0x223)](_0x4ae293[_0x3aac01(0x1aa)],_0x133eb4['iAtcg']))return;return _0x4ae293;}catch(_0x254b00){logger[_0x3aac01(0x1e3)]('Exception\x20in\x20createHookData:\x20'+util[_0x3aac01(0x1ae)](_0x254b00)+'\x20');}}[a90_0x3d9720(0x1d0)](_0x308cdb,_0x3d9c95){const _0x45ed01=a90_0x3d9720,_0x434b19={};_0x434b19[_0x45ed01(0x1ef)]=function(_0x442695,_0x48abd2){return _0x442695===_0x48abd2;},_0x434b19[_0x45ed01(0x21b)]=_0x45ed01(0x1ff),_0x434b19[_0x45ed01(0x213)]='UnhandledError',_0x434b19[_0x45ed01(0x1a1)]='AssertionError',_0x434b19['xptLJ']=function(_0x19893a,_0x45e36d){return _0x19893a||_0x45e36d;};const _0x4bf2b4=_0x434b19,_0x3bd7f1=_0x308cdb[_0x45ed01(0x1ac)][_0x3d9c95][_0x45ed01(0x1a0)];let _0x395523,_0x7b2a33;return _0x3bd7f1&&_0x4bf2b4[_0x45ed01(0x1ef)](_0x3bd7f1[_0x45ed01(0x1a2)][_0x45ed01(0x1a5)]()['toLowerCase'](),_0x4bf2b4['QaXBR'])&&(_0x395523=_0x4bf2b4[_0x45ed01(0x1ef)](_0x3bd7f1[_0x45ed01(0x1c4)],undefined)?_0x3bd7f1['message']:_0x3bd7f1[_0x45ed01(0x1c4)][_0x45ed01(0x1ee)],_0x7b2a33=_0x4bf2b4['DFBLj'](_0x3bd7f1[_0x45ed01(0x1c4)],undefined)?_0x4bf2b4['ahwpp']:_0x3bd7f1[_0x45ed01(0x1ee)]['match'](/Assert/)?_0x4bf2b4[_0x45ed01(0x1a1)]:_0x4bf2b4[_0x45ed01(0x213)]),{'status':_0x3bd7f1[_0x45ed01(0x1a2)][_0x45ed01(0x1d3)](),'failureType':_0x4bf2b4[_0x45ed01(0x1d8)](_0x7b2a33,null),'failureData':!_0x395523?null:[_0x395523]};}['getCucumberHookType'](_0x5cf0e5,_0xfb73d1){const _0x3e9d4a=a90_0x3d9720,_0x2071dd={};_0x2071dd[_0x3e9d4a(0x1af)]=function(_0x56b4fe,_0x48a847){return _0x56b4fe===_0x48a847;},_0x2071dd[_0x3e9d4a(0x1ce)]=_0x3e9d4a(0x1b5),_0x2071dd[_0x3e9d4a(0x1bf)]='BEFORE_EACH';const _0xfec302=_0x2071dd;let _0x5779c3=![];for(const _0x5e23c7 of _0x5cf0e5){_0x5e23c7['pickleStepId']&&(_0x5779c3=!![]);if(_0xfec302['WHffP'](_0xfb73d1['id'],_0x5e23c7['id']))return _0x5779c3?_0xfec302[_0x3e9d4a(0x1ce)]:_0xfec302['DxSaz'];}}['getScenarioExamples']=(_0x2e0560,_0x20289c)=>{const _0xa6c4a1=a90_0x3d9720,_0x207aa3={};_0x207aa3[_0xa6c4a1(0x20d)]=function(_0x27cf76,_0x5c63a7){return _0x27cf76===_0x5c63a7;},_0x207aa3[_0xa6c4a1(0x1df)]=function(_0x4dd19a,_0x3367f3){return _0x4dd19a>_0x3367f3;};const _0x343a63=_0x207aa3;if(!(_0x20289c[_0xa6c4a1(0x208)]&&_0x343a63[_0xa6c4a1(0x1df)](_0x20289c[_0xa6c4a1(0x208)][_0xa6c4a1(0x20e)],0x1)))return;const _0x51d59a=_0x20289c[_0xa6c4a1(0x208)][0x0],_0xdf41db=_0x20289c[_0xa6c4a1(0x208)][0x1],_0x57923a=_0x2e0560[_0xa6c4a1(0x1f1)]&&_0x2e0560[_0xa6c4a1(0x1f1)][_0xa6c4a1(0x1e8)]?_0x2e0560['feature'][_0xa6c4a1(0x1e8)]:undefined;let _0x36d66a=[];_0x57923a&&_0x57923a[_0xa6c4a1(0x1d1)](_0x552f3e=>{const _0x4d7b46=_0xa6c4a1;if(_0x552f3e[_0x4d7b46(0x1ca)])_0x552f3e['rule'][_0x4d7b46(0x1e8)]['forEach'](_0x2103e5=>{const _0x448a14=_0x4d7b46;if(_0x2103e5['scenario']&&_0x343a63[_0x448a14(0x20d)](_0x2103e5[_0x448a14(0x20c)]['id'],_0x51d59a)&&_0x2103e5['scenario'][_0x448a14(0x1c7)]){const _0x205cd1=_0x2103e5[_0x448a14(0x20c)][_0x448a14(0x1c7)][_0x448a14(0x1fb)](_0x470588=>_0x470588[_0x448a14(0x1f3)])[_0x448a14(0x1b0)](_0x988899=>_0x988899['id']===_0xdf41db);let _0x5e9b9d;_0x205cd1&&_0x205cd1['cells']?_0x5e9b9d=_0x205cd1[_0x448a14(0x1a9)][_0x448a14(0x1b2)](_0x4d551c=>_0x4d551c[_0x448a14(0x21c)]):_0x5e9b9d=[],_0x5e9b9d&&(_0x36d66a=_0x5e9b9d);}});else{if(_0x552f3e[_0x4d7b46(0x20c)]&&_0x343a63['gUDqZ'](_0x552f3e[_0x4d7b46(0x20c)]['id'],_0x51d59a)&&_0x552f3e[_0x4d7b46(0x20c)][_0x4d7b46(0x1c7)]){const _0x457377=_0x552f3e[_0x4d7b46(0x20c)][_0x4d7b46(0x1c7)][_0x4d7b46(0x1fb)](_0x506093=>_0x506093[_0x4d7b46(0x1f3)])[_0x4d7b46(0x1b0)](_0x5c175d=>_0x5c175d['id']===_0xdf41db);let _0x485f3e;_0x457377&&_0x457377[_0x4d7b46(0x1a9)]?_0x485f3e=_0x457377[_0x4d7b46(0x1a9)][_0x4d7b46(0x1b2)](_0x13e1ac=>_0x13e1ac[_0x4d7b46(0x21c)]):_0x485f3e=[],_0x485f3e&&(_0x36d66a=_0x485f3e);}}});if(_0x36d66a[_0xa6c4a1(0x20e)])return _0x36d66a;return;};async[a90_0x3d9720(0x1b6)](){const _0x8917b=a90_0x3d9720,_0x4dac8={'ARrgR':function(_0x787d1f){return _0x787d1f();}};if(this[_0x8917b(0x1d2)])return this['_gitConfigPath'];const _0xdb5f1e=await _0x4dac8['ARrgR'](getGitMetaData);_0xdb5f1e&&(this[_0x8917b(0x215)]=_0xdb5f1e[_0x8917b(0x1cb)]),this['_gitConfigured']=!![];}}module[a90_0x3d9720(0x196)]=o11yClassErrorHandler(CucumberUtils,['configureGit',a90_0x3d9720(0x1a4),'getCucumberHookType',a90_0x3d9720(0x1d0),'sendHook',a90_0x3d9720(0x1ad),a90_0x3d9720(0x1c8),a90_0x3d9720(0x1fd)]);
|
|
1
|
+
function a90_0x55e6(_0x36d854,_0x17d387){const _0x4ceac6=a90_0x4cea();return a90_0x55e6=function(_0x55e637,_0x2f26a9){_0x55e637=_0x55e637-0x185;let _0x6099cf=_0x4ceac6[_0x55e637];return _0x6099cf;},a90_0x55e6(_0x36d854,_0x17d387);}const a90_0x32f9fa=a90_0x55e6;function a90_0x4cea(){const _0x125c89=['KHWte','AssertionError','createTestFrameworkData','hook','join','sendTestRunEventForCucumber','WTWXu','aElbQ','YCPMD','createHookData','sgIuW','tags','uuid','529921bktqFV','failure','failed','UXHiS','HNPEw','failure_reason','rZONU','gWYzg','TbIdC','uri','xLDKP','zzFLe','feature','24PuElRs','gZCSW','finishedAt','push','491904NsGkTW','getScenarioExamples','zbbOT','cells','TkOVs','194474vdHEoY','1268vmaojm','util','relative','POBky','winstonLogger','debug','PPzlu','exports','HCdhb','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','RUltl','HookRunFinished','UnhandledError','HookRunStarted','UoGmu','length','jcMSD','timestamp','nanos','getHookResult','format','testStepFinished','every','duration_in_ms','UqfwF','qnhfO','fDeRn','../../../helpers/logger.js','tagExpression','25JyOCRV','gUVYp','2796hyxZne','pending','getCucumberHookType','skipped','_gitConfigPath','children','vhJLb','330880LAlpjV','1160154gKxiNR','value','FAILED','includes','split','TjtQH','astNodeIds','root','finished_at','220ZJAMkb','../../../helpers/test-observability/error-handler.js','getHookRunEventData','exception','sourceReference','arXvN','failure_type','1443856jmJjLv','message','TZmds','match','RslNz','ebfNA','PvJXP','testCaseFinished','cucumber','hookId','xstTT','failureType','failureData','passed','eYpFZ','Exception\x20in\x20createHookData:\x20','waQdZ','find','examples','bstack','../../../helpers/helper.js','map','toISOString','configureGit','YYKOQ','vRWtr','qoBDx','rule','QnpaL','javascript','flatMap','test','toString','BuIwN','sendHook','tableBody','wnNMf','scenario','NVIUS','status','unknown','BEFORE_EACH','naglH','forEach','kMWnq','MTGLl','_gitConfigured','AFTER_EACH','name','FHcgm','result'];a90_0x4cea=function(){return _0x125c89;};return a90_0x4cea();}(function(_0x39c5d6,_0x4495ce){const _0x52ddab=a90_0x55e6,_0x4f4dff=_0x39c5d6();while(!![]){try{const _0x3d4fbb=parseInt(_0x52ddab(0x1f6))/0x1+parseInt(_0x52ddab(0x20d))/0x2*(-parseInt(_0x52ddab(0x19e))/0x3)+-parseInt(_0x52ddab(0x207))/0x4*(-parseInt(_0x52ddab(0x19c))/0x5)+-parseInt(_0x52ddab(0x203))/0x6*(-parseInt(_0x52ddab(0x20c))/0x7)+parseInt(_0x52ddab(0x1b6))/0x8+parseInt(_0x52ddab(0x1a6))/0x9+-parseInt(_0x52ddab(0x1af))/0xa*(parseInt(_0x52ddab(0x1a5))/0xb);if(_0x3d4fbb===_0x4495ce)break;else _0x4f4dff['push'](_0x4f4dff['shift']());}catch(_0x51fa51){_0x4f4dff['push'](_0x4f4dff['shift']());}}}(a90_0x4cea,0x4c55d));const path=require('path'),util=require(a90_0x32f9fa(0x20e)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a90_0x32f9fa(0x1ca)),logger=require(a90_0x32f9fa(0x19a))[a90_0x32f9fa(0x211)],{o11yClassErrorHandler}=require(a90_0x32f9fa(0x1b0)),TestInfo=require('../TestInfo.js'),hooksMap={};class CucumberUtils{constructor(){const _0x23a4bf=a90_0x32f9fa;this[_0x23a4bf(0x1e4)]=![],this['_gitConfigPath']=null;}async[a90_0x32f9fa(0x1eb)](_0x29ee48,_0x59c96f,_0x1b7d12,_0x40ecaf,_0x1d51d4,_0x5c99ca){const _0x347022=a90_0x32f9fa,_0x9d9a04={'UXHiS':function(_0x27e65a,_0x353c6f){return _0x27e65a===_0x353c6f;},'NzbkY':_0x347022(0x1a8),'HCdhb':_0x347022(0x1f8),'vRWtr':function(_0x5bf322,_0x3cb69a){return _0x5bf322===_0x3cb69a;},'TbIdC':'SKIPPED','qoBDx':_0x347022(0x1a1),'NQllE':function(_0x329c62,_0x499c94){return _0x329c62||_0x499c94;},'MTGLl':function(_0x531a60,_0x282886){return _0x531a60+_0x282886;},'YYKOQ':_0x347022(0x1d5),'gUVYp':_0x347022(0x1d3),'wnNMf':_0x347022(0x1be),'ebfNA':_0x347022(0x19f),'aElbQ':_0x347022(0x1c3),'RUltl':function(_0x792fce,_0x561d8c){return _0x792fce!==_0x561d8c;},'IgEiJ':function(_0x3e3903,_0x37ae57){return _0x3e3903/_0x37ae57;},'arXvN':'strip-ansi','TkOVs':function(_0x624d4f,_0x5966ac){return _0x624d4f(_0x5966ac);},'iLvnL':_0x347022(0x1de),'HNPEw':function(_0x116a89,_0xea829e){return _0x116a89(_0xea829e);},'TZmds':_0x347022(0x1ea),'naglH':_0x347022(0x18b)},{feature:_0x46caf3,scenario:_0x572a21,steps:_0x3dd533,uuid:_0x4d98a7,startedAt:_0x50ca06,finishedAt:_0x453373}=_0x9d9a04['NQllE'](_0x29ee48,{}),_0x1c2b8a=this['getScenarioExamples'](_0x40ecaf,_0x59c96f);await this[_0x347022(0x1cd)]();const _0x34c563=_0x1c2b8a?_0x9d9a04[_0x347022(0x1e3)](_0x9d9a04[_0x347022(0x1e3)](_0x9d9a04['MTGLl'](_0x59c96f[_0x347022(0x1e6)],'\x20('),_0x1c2b8a[_0x347022(0x1ed)](',\x20')),')'):_0x59c96f['name'],_0x4678fe={'id':_0x1d51d4,'uuid':_0x1d51d4,'startedAt':_0x50ca06,'finishedAt':_0x453373,'type':_0x9d9a04[_0x347022(0x1ce)],'body':{'lang':_0x9d9a04[_0x347022(0x19d)],'code':null},'name':_0x34c563,'scopes':[_0x46caf3&&_0x46caf3['name']?_0x46caf3[_0x347022(0x1e6)]:''],'tags':_0x59c96f[_0x347022(0x1f4)]?_0x59c96f['tags'][_0x347022(0x1cb)](({name:_0x53f613})=>_0x53f613):[],'file_name':_0x59c96f['uri'],'location':_0x59c96f[_0x347022(0x1ff)],'vc_filepath':this[_0x347022(0x1a2)]&&_0x59c96f['uri']?path[_0x347022(0x20f)](this[_0x347022(0x1a2)],_0x59c96f[_0x347022(0x1ff)]):null,'framework':_0x9d9a04[_0x347022(0x1da)],'result':_0x9d9a04[_0x347022(0x1bb)],'meta':{'feature':_0x46caf3,'scenario':_0x572a21,'steps':_0x3dd533,'examples':_0x1c2b8a},'customRerunParam':{'rerun_name':_0x34c563}};if(_0x1b7d12[_0x347022(0x1bd)]&&_0x3dd533){const _0x8b6345=_0x1b7d12[_0x347022(0x1bd)];let _0x2f35e0=_0x9d9a04[_0x347022(0x1f0)];_0x3dd533[_0x347022(0x195)](_0xeb78e0=>{const _0x5e3e56=_0x347022;if(_0x9d9a04[_0x5e3e56(0x1f9)](_0xeb78e0['result'],_0x9d9a04['NzbkY']))return _0x2f35e0=_0x9d9a04[_0x5e3e56(0x187)],_0x8b6345['failure']=_0xeb78e0[_0x5e3e56(0x1f7)],_0x8b6345[_0x5e3e56(0x1c1)]=_0xeb78e0[_0x5e3e56(0x1c1)],![];else{if(_0x9d9a04[_0x5e3e56(0x1cf)](_0xeb78e0['result'],_0x9d9a04[_0x5e3e56(0x1fe)]))return _0x2f35e0=_0x9d9a04[_0x5e3e56(0x1d0)],![];}return!![];}),_0x4678fe[_0x347022(0x205)]=new Date()[_0x347022(0x1cc)](),_0x4678fe[_0x347022(0x1e8)]=_0x2f35e0;_0x8b6345['timestamp']&&_0x9d9a04[_0x347022(0x189)](_0x8b6345['timestamp'][_0x347022(0x191)],undefined)?_0x4678fe[_0x347022(0x196)]=_0x9d9a04['IgEiJ'](_0x8b6345[_0x347022(0x190)]['nanos'],0xf4240):_0x4678fe[_0x347022(0x196)]=undefined;if(_0x9d9a04['vRWtr'](_0x2f35e0,_0x9d9a04[_0x347022(0x187)])){const {default:_0x521d0b}=await import(_0x9d9a04[_0x347022(0x1b4)]);_0x4678fe[_0x347022(0x1f7)]=[{'backtrace':[_0x8b6345['failure']?_0x9d9a04[_0x347022(0x20b)](_0x521d0b,_0x8b6345[_0x347022(0x1f7)]):_0x9d9a04['iLvnL']]}],_0x4678fe[_0x347022(0x1fb)]=_0x8b6345[_0x347022(0x1f7)]?_0x9d9a04[_0x347022(0x1fa)](_0x521d0b,_0x8b6345[_0x347022(0x1f7)]):_0x8b6345[_0x347022(0x1b7)],_0x8b6345[_0x347022(0x1c1)]&&(_0x4678fe[_0x347022(0x1b5)]=_0x8b6345[_0x347022(0x1c1)]['match'](/AssertError/)?_0x9d9a04[_0x347022(0x1b8)]:_0x9d9a04[_0x347022(0x1e0)]);}}return _0x4678fe;}[a90_0x32f9fa(0x1b1)](_0x2d95b2,_0x4a84c7,_0xcaf1c4,_0x409713,_0x37dfc7,_0x49dab9){const _0x5c278b=a90_0x32f9fa,_0x293e4c={'TjtQH':function(_0x4c8d94,_0x757b60){return _0x4c8d94===_0x757b60;},'kMWnq':_0x5c278b(0x18a),'jcMSD':function(_0x5581bf,_0x271fa9,_0xe7bf74){return _0x5581bf(_0x271fa9,_0xe7bf74);},'UqfwF':'sourceReference','vhJLb':'uri','zbbOT':_0x5c278b(0x19f),'BuIwN':_0x5c278b(0x1ec),'hWyNP':_0x5c278b(0x1d3),'rZONU':_0x5c278b(0x202),'YCPMD':_0x5c278b(0x1e6),'gZCSW':function(_0x5d365d,_0x571c69,_0x393eac){return _0x5d365d(_0x571c69,_0x393eac);},'gWYzg':'cucumber'};try{if(_0x293e4c[_0x5c278b(0x1ab)](_0xcaf1c4,_0x293e4c[_0x5c278b(0x1e2)])){const _0x3556fe=new Date()[_0x5c278b(0x1cc)](),_0x14aede=hooksMap[_0x4a84c7];if(!_0x14aede)return;const _0x449e08=_0x14aede[_0x5c278b(0x1c7)](_0x327156=>_0x327156[_0x5c278b(0x1f5)]===_0x409713['id']);if(!_0x449e08)return;const _0xf2550b=this[_0x5c278b(0x192)](_0x2d95b2,_0x4a84c7);_0x449e08[_0x5c278b(0x1e8)]=_0xf2550b['status'],_0x449e08[_0x5c278b(0x1ae)]=_0x3556fe,_0x449e08[_0x5c278b(0x1b5)]=_0xf2550b['failureType'];const _0x1afbb6={};return _0x1afbb6['backtrace']=_0xf2550b[_0x5c278b(0x1c2)],_0x449e08['failure_data']=[_0x1afbb6],_0x449e08;}const _0x3b39b6=TestInfo['getTestUUID'](_0x4a84c7),_0xbdab07=_0x2d95b2['hooks'][_0x5c278b(0x1c7)](_0x252e2a=>_0x252e2a['id']===_0x409713[_0x5c278b(0x1bf)]),_0x4ba6c9=_0x293e4c[_0x5c278b(0x18f)](nestedKeyValue,_0xbdab07,[_0x293e4c[_0x5c278b(0x197)],_0x293e4c[_0x5c278b(0x1a4)]]),_0x3ac654=new Date()[_0x5c278b(0x1cc)](),_0x207e5d=_0x293e4c[_0x5c278b(0x209)],_0x402c8f=_0xbdab07[_0x5c278b(0x19b)]?_0xbdab07['tagExpression'][_0x5c278b(0x1aa)]('\x20')['filter'](_0x12bcd9=>_0x12bcd9[_0x5c278b(0x1a9)]('@')):[],_0x4657c9={'uuid':_0x409713['id'],'type':_0x293e4c[_0x5c278b(0x1d7)],'hook_type':_0x49dab9,'name':_0xbdab07['name'],'body':{'lang':_0x293e4c['hWyNP'],'code':null},'tags':_0x402c8f,'test_run_id':_0x3b39b6,'scope':_0x293e4c[_0x5c278b(0x18f)](nestedKeyValue,_0x37dfc7,[_0x293e4c['rZONU'],_0x293e4c['YCPMD']]),'scopes':[_0x293e4c[_0x5c278b(0x204)](nestedKeyValue,_0x37dfc7,[_0x293e4c[_0x5c278b(0x1fc)],_0x293e4c[_0x5c278b(0x1f1)]])||''],'file_name':_0x4ba6c9,'location':_0x4ba6c9,'vc_filepath':this[_0x5c278b(0x1a2)]?path['relative'](this['_gitConfigPath'],_0x4ba6c9):null,'result':_0x207e5d,'started_at':_0x3ac654,'framework':_0x293e4c[_0x5c278b(0x1fd)]};return _0x4657c9;}catch(_0x54fade){logger[_0x5c278b(0x212)]('Exception\x20in\x20getHookRunEventData:\x20'+util['format'](_0x54fade)+'\x20');}}async[a90_0x32f9fa(0x1f2)](_0x325692,_0x2c0d57,_0x20661f,_0x451872,_0x3d569c,_0x210126){const _0x449e46=a90_0x32f9fa,_0x427d46={'WTWXu':function(_0x39cf55,_0x13bc4b){return _0x39cf55===_0x13bc4b;},'sgIuW':_0x449e46(0x18c),'eYpFZ':function(_0x25dff4,_0x1962a4,_0x32edff){return _0x25dff4(_0x1962a4,_0x32edff);},'KHWte':_0x449e46(0x1b3),'xstTT':'uri','BaOOy':_0x449e46(0x188),'DsXxD':function(_0x12104d,_0x273d97){return _0x12104d===_0x273d97;},'PPzlu':_0x449e46(0x1c9)};try{const _0x27cd35=_0x451872['find'](_0x1bda8c=>_0x1bda8c['id']===_0x3d569c);if(!_0x27cd35[_0x449e46(0x1bf)])return;const _0xcec63c=this[_0x449e46(0x1a0)](_0x451872,_0x27cd35),_0x221fc7=this['getHookRunEventData'](_0x325692,_0x2c0d57,_0x20661f,_0x27cd35,_0x210126,_0xcec63c);if(!_0x221fc7)return;_0x427d46[_0x449e46(0x1ef)](_0x20661f,_0x427d46[_0x449e46(0x1f3)])&&(hooksMap[_0x2c0d57]?hooksMap[_0x2c0d57][_0x449e46(0x206)](_0x221fc7):hooksMap[_0x2c0d57]=[_0x221fc7]);const _0x4c3e26=_0x325692['hooks'][_0x449e46(0x1c7)](_0x463202=>_0x463202['id']===_0x27cd35[_0x449e46(0x1bf)]),_0x17432a=_0x427d46[_0x449e46(0x1c4)](nestedKeyValue,_0x4c3e26,[_0x427d46[_0x449e46(0x1e9)],_0x427d46[_0x449e46(0x1c0)]]);if(!_0x17432a)return;else{if(_0x17432a['includes'](_0x427d46['BaOOy']))return;}if(_0x427d46['DsXxD'](_0x221fc7[_0x449e46(0x1e6)],_0x427d46[_0x449e46(0x185)]))return;return _0x221fc7;}catch(_0x264291){logger[_0x449e46(0x212)](_0x449e46(0x1c5)+util[_0x449e46(0x193)](_0x264291)+'\x20');}}['getHookResult'](_0x521285,_0x4d6a54){const _0xd51e8c=a90_0x32f9fa,_0x259f01={};_0x259f01[_0xd51e8c(0x1d2)]=function(_0x57eb6d,_0x5d388d){return _0x57eb6d===_0x5d388d;},_0x259f01[_0xd51e8c(0x201)]=_0xd51e8c(0x1f8),_0x259f01['qnhfO']=function(_0x22c896,_0x2a97de){return _0x22c896===_0x2a97de;},_0x259f01[_0xd51e8c(0x1bc)]=_0xd51e8c(0x18b),_0x259f01[_0xd51e8c(0x199)]=_0xd51e8c(0x1ea),_0x259f01[_0xd51e8c(0x210)]=function(_0x43c510,_0x5b8ef3){return _0x43c510||_0x5b8ef3;};const _0x301c97=_0x259f01,_0x477661=_0x521285[_0xd51e8c(0x194)][_0x4d6a54]['testStepResult'];let _0x4a73d5,_0x3da5ca;return _0x477661&&_0x301c97['QnpaL'](_0x477661[_0xd51e8c(0x1dd)][_0xd51e8c(0x1d6)]()['toLowerCase'](),_0x301c97[_0xd51e8c(0x201)])&&(_0x4a73d5=_0x301c97[_0xd51e8c(0x1d2)](_0x477661[_0xd51e8c(0x1b2)],undefined)?_0x477661[_0xd51e8c(0x1b7)]:_0x477661['exception'][_0xd51e8c(0x1b7)],_0x3da5ca=_0x301c97[_0xd51e8c(0x198)](_0x477661[_0xd51e8c(0x1b2)],undefined)?_0x301c97[_0xd51e8c(0x1bc)]:_0x477661[_0xd51e8c(0x1b7)][_0xd51e8c(0x1b9)](/Assert/)?_0x301c97[_0xd51e8c(0x199)]:_0x301c97[_0xd51e8c(0x1bc)]),{'status':_0x477661['status']['toLowerCase'](),'failureType':_0x301c97[_0xd51e8c(0x210)](_0x3da5ca,null),'failureData':!_0x4a73d5?null:[_0x4a73d5]};}['getCucumberHookType'](_0x870b14,_0x405319){const _0x35a5f6=a90_0x32f9fa,_0x4bff6={};_0x4bff6['FHcgm']=function(_0x37a2c5,_0x3504c1){return _0x37a2c5===_0x3504c1;},_0x4bff6[_0x35a5f6(0x200)]=_0x35a5f6(0x1e5),_0x4bff6['waQdZ']=_0x35a5f6(0x1df);const _0xe584ec=_0x4bff6;let _0x3dd6e3=![];for(const _0x2cb5c0 of _0x870b14){_0x2cb5c0['pickleStepId']&&(_0x3dd6e3=!![]);if(_0xe584ec[_0x35a5f6(0x1e7)](_0x405319['id'],_0x2cb5c0['id']))return _0x3dd6e3?_0xe584ec['xLDKP']:_0xe584ec[_0x35a5f6(0x1c6)];}}['getScenarioExamples']=(_0xd6aebb,_0x38164c)=>{const _0x4fbe0f=a90_0x32f9fa,_0x3aff7f={};_0x3aff7f[_0x4fbe0f(0x1dc)]=function(_0x5c8f1c,_0x5626f1){return _0x5c8f1c===_0x5626f1;},_0x3aff7f['UoGmu']=function(_0x6ef42a,_0x429c0d){return _0x6ef42a>_0x429c0d;};const _0x371b58=_0x3aff7f;if(!(_0x38164c['astNodeIds']&&_0x371b58[_0x4fbe0f(0x18d)](_0x38164c[_0x4fbe0f(0x1ac)]['length'],0x1)))return;const _0x3f10db=_0x38164c['astNodeIds'][0x0],_0x7967b5=_0x38164c['astNodeIds'][0x1],_0x37c23b=_0xd6aebb[_0x4fbe0f(0x202)]&&_0xd6aebb[_0x4fbe0f(0x202)][_0x4fbe0f(0x1a3)]?_0xd6aebb['feature']['children']:undefined;let _0x49bc5d=[];_0x37c23b&&_0x37c23b[_0x4fbe0f(0x1e1)](_0x1b62f7=>{const _0x432072=_0x4fbe0f;if(_0x1b62f7[_0x432072(0x1d1)])_0x1b62f7[_0x432072(0x1d1)][_0x432072(0x1a3)][_0x432072(0x1e1)](_0x7dcc4d=>{const _0x34215d=_0x432072;if(_0x7dcc4d[_0x34215d(0x1db)]&&_0x371b58[_0x34215d(0x1dc)](_0x7dcc4d[_0x34215d(0x1db)]['id'],_0x3f10db)&&_0x7dcc4d['scenario'][_0x34215d(0x1c8)]){const _0x383b63=_0x7dcc4d['scenario'][_0x34215d(0x1c8)][_0x34215d(0x1d4)](_0x44db69=>_0x44db69[_0x34215d(0x1d9)])[_0x34215d(0x1c7)](_0x65bf91=>_0x65bf91['id']===_0x7967b5);let _0x4c1fbb;_0x383b63&&_0x383b63[_0x34215d(0x20a)]?_0x4c1fbb=_0x383b63[_0x34215d(0x20a)]['map'](_0x55e283=>_0x55e283[_0x34215d(0x1a7)]):_0x4c1fbb=[],_0x4c1fbb&&(_0x49bc5d=_0x4c1fbb);}});else{if(_0x1b62f7['scenario']&&_0x371b58[_0x432072(0x1dc)](_0x1b62f7['scenario']['id'],_0x3f10db)&&_0x1b62f7[_0x432072(0x1db)][_0x432072(0x1c8)]){const _0x5dc920=_0x1b62f7[_0x432072(0x1db)][_0x432072(0x1c8)][_0x432072(0x1d4)](_0x44fd46=>_0x44fd46['tableBody'])[_0x432072(0x1c7)](_0x43cdc8=>_0x43cdc8['id']===_0x7967b5);let _0x4257a9;_0x5dc920&&_0x5dc920[_0x432072(0x20a)]?_0x4257a9=_0x5dc920[_0x432072(0x20a)][_0x432072(0x1cb)](_0x1686dc=>_0x1686dc['value']):_0x4257a9=[],_0x4257a9&&(_0x49bc5d=_0x4257a9);}}});if(_0x49bc5d[_0x4fbe0f(0x18e)])return _0x49bc5d;return;};async[a90_0x32f9fa(0x1cd)](){const _0x212d8c=a90_0x32f9fa,_0x4ca03c={'RslNz':function(_0x49ae0c){return _0x49ae0c();}};if(this[_0x212d8c(0x1e4)])return this[_0x212d8c(0x1a2)];const _0x4f5528=await _0x4ca03c[_0x212d8c(0x1ba)](getGitMetaData);_0x4f5528&&(this[_0x212d8c(0x1a2)]=_0x4f5528[_0x212d8c(0x1ad)]),this['_gitConfigured']=!![];}}module[a90_0x32f9fa(0x186)]=o11yClassErrorHandler(CucumberUtils,['configureGit',a90_0x32f9fa(0x208),a90_0x32f9fa(0x1a0),a90_0x32f9fa(0x192),a90_0x32f9fa(0x1d8),a90_0x32f9fa(0x1b1),a90_0x32f9fa(0x1ee),a90_0x32f9fa(0x1eb)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a91_0x30504a=a91_0x3c16;(function(_0x28b678,_0x2ad97a){const _0x1b7010=a91_0x3c16,_0x4b7156=_0x28b678();while(!![]){try{const _0x28a65b=-parseInt(_0x1b7010(0x10f))/0x1*(-parseInt(_0x1b7010(0x13d))/0x2)+parseInt(_0x1b7010(0xb9))/0x3*(-parseInt(_0x1b7010(0x15a))/0x4)+-parseInt(_0x1b7010(0x133))/0x5+parseInt(_0x1b7010(0x11d))/0x6+-parseInt(_0x1b7010(0xd9))/0x7+parseInt(_0x1b7010(0xf7))/0x8*(parseInt(_0x1b7010(0x151))/0x9)+parseInt(_0x1b7010(0xdc))/0xa*(parseInt(_0x1b7010(0xc2))/0xb);if(_0x28a65b===_0x2ad97a)break;else _0x4b7156['push'](_0x4b7156['shift']());}catch(_0x38d7fd){_0x4b7156['push'](_0x4b7156['shift']());}}}(a91_0x2300,0xcf425));const path=require('path'),util=require(a91_0x30504a(0xc7)),crypto=require(a91_0x30504a(0x13b)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a91_0x30504a(0x173)),logger=require(a91_0x30504a(0xba))[a91_0x30504a(0x166)],{o11yClassErrorHandler}=require(a91_0x30504a(0xcd)),TestInfo=require('../TestInfo.js'),{failureData,getFailureType}=require(a91_0x30504a(0xf2)),stackTrace=require(a91_0x30504a(0xbe)),a91_0x594f7a={};a91_0x594f7a[a91_0x30504a(0xc8)]=a91_0x30504a(0x12a),a91_0x594f7a[a91_0x30504a(0x10d)]=a91_0x30504a(0x124),a91_0x594f7a[a91_0x30504a(0x13e)]=a91_0x30504a(0x147),a91_0x594f7a[a91_0x30504a(0x12b)]=a91_0x30504a(0x159);const HOOK_TYPES_MAP=a91_0x594f7a,hooksMap={};function a91_0x2300(){const _0x101f81=['afterAll','toString','1250922fotdDe','getName','GhiyM','HookRunFinished','VUzTD','btxhG','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','match','testAnalyticsId','ySlqT','cJjJN','currentTest','cvrNG','error','2348820XxcFBX','createIdentifierFromJestTest','finished_at','jest','MXrUm','jurec','file','AFTER_ALL','substring','includes','started_at','name','getRootParentFile','BEFORE_ALL','afterEach','uWqko','failed','createTestFrameworkData','parse','createHookData','uskJp','test','2608880lxlHAJ','debug','hvnEt','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','eVArS','toISOString','HocLx','createJestTestIdentifier','crypto','AYqDl','2ALuVGU','beforeEach','pending','BDglr','fXhnq',':jest-','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','SoNll','[jestUtils]\x20No\x20test\x20object\x20provided','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','BEFORE_EACH','_gitConfigured','TestRunFinished','skipped','testIdentifier','fullName','relative','apply','clearHooksMap','iKXsa','9Sjrrhf','__jestCurrentTestIdentifier','GtUwW','parent','uuid','getState','cKWiC','testPath','AFTER_EACH','5108pWVKbJ','mqLLx','hex','getFileName','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','GWGTQ','err','extractTestFilePath','Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20','getHookRunEventData','failure_backtrace','browserstack-node-agent/src/bin/jest','winstonLogger','YwOqD','getTime','wSMtp','asyncError','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','now','startedAt','iabNo','ClFLm','configureGit','vfCvk','../../../helpers/helper.js','hhali','3543ilJBPV','../../../helpers/logger.js','wbEGU','_gitConfigPath','push','stack-trace',',\x20hookUUID:\x20','find','length','932019uINUKB','failure_type','finishedAt','jest-circus','HookRunStarted','util','beforeAll','\x20from\x20compositeKey:\x20','recreateIdentifierFromTestInfo','File\x20path\x20could\x20not\x20be\x20found','MyGbs','../../../helpers/test-observability/error-handler.js','WAaaM','KyLZq','acQpV','RbOTq','Exception\x20in\x20createHookData:\x20','type','iFyww','[jestUtils]\x20Created\x20identifier:\x20','getTestIdentifier','unknown','createHash','8292788JnMuNe','failure_reason_expanded','isJestInternalHook','110YmyOkB','ROOT_DESCRIBE_BLOCK','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','__workerDetails','javascript','kZHya','duration','hooks','getHierarchy','gzIHy','Creating\x20hook\x20data\x20for\x20eventType:\x20','LCkeq','format','failure_reason','inspect','errorsDetailed','passed','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier','backtrace','tGtwh','split','md5','../../../helpers/test-observability/utils','wnvnN','failure','root','QNizU','11912952bORTpG','displayName','lblaq','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','\x22\x20hook\x20for\x20\x22','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','pid','title','HEqwH','cVDhx','reverse','UNzFA','vNtCY','call','retryOf','failure_data','BgRPR','result','Exception\x20in\x20createTestFrameworkData:\x20','RyHdV','expect','shYLc'];a91_0x2300=function(){return _0x101f81;};return a91_0x2300();}function a91_0x3c16(_0x2aeb0d,_0x1a0511){const _0x23008c=a91_0x2300();return a91_0x3c16=function(_0x3c161a,_0x35c0f1){_0x3c161a=_0x3c161a-0xb8;let _0x1aa820=_0x23008c[_0x3c161a];return _0x1aa820;},a91_0x3c16(_0x2aeb0d,_0x1a0511);}class JestUtils{constructor(){const _0x2cb88e=a91_0x30504a;this[_0x2cb88e(0x148)]=![],this[_0x2cb88e(0xbc)]=null;}async[a91_0x30504a(0x12e)](_0x1d20d1,_0x886669,_0x4b8213=a91_0x30504a(0x149),_0x434d6f=undefined){const _0x3abf93=a91_0x30504a,_0x207ca0={'SoNll':'No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','asPwX':_0x3abf93(0xc5),'gzIHy':function(_0x64d115,_0x3b8371){return _0x64d115||_0x3b8371;},'DCOtr':_0x3abf93(0xcb),'fXhnq':function(_0x143e0b,_0x4bfc06){return _0x143e0b!==_0x4bfc06;},'MyGbs':_0x3abf93(0x132),'lblaq':_0x3abf93(0x160),'cJjJN':function(_0x395b8e,_0x54e89f){return _0x395b8e!==_0x54e89f;},'QYGPl':function(_0x1e5f01,_0xa7b28e){return _0x1e5f01!==_0xa7b28e;},'vRVfM':_0x3abf93(0x13f),'YwOqD':function(_0x55bb40,_0x5d080d){return _0x55bb40===_0x5d080d;},'cVDhx':'TestRunSkipped','yfNpi':_0x3abf93(0x14a),'LCkeq':function(_0x34b73d,_0x4f4969){return _0x34b73d>_0x4f4969;},'ClFLm':_0x3abf93(0x12d),'hhali':_0x3abf93(0xec),'UEKRL':function(_0x43cd7e,_0x6fe827){return _0x43cd7e!==_0x6fe827;},'BDglr':function(_0xc83c2c,_0x3e61fb){return _0xc83c2c-_0x3e61fb;},'wbEGU':_0x3abf93(0xe0),'wSMtp':_0x3abf93(0x120),'RbOTq':function(_0x248f03,_0x479483){return _0x248f03(_0x479483);},'RyHdV':function(_0x1cb4b5,_0x89aa11){return _0x1cb4b5===_0x89aa11;},'iabNo':function(_0x371af0,_0x163de7){return _0x371af0===_0x163de7;},'acQpV':_0x3abf93(0x149)};logger[_0x3abf93(0x134)](_0x3abf93(0x162)+_0x4b8213+',\x20testIdentifier:\x20'+_0x886669);try{if(!_0x1d20d1)return logger['debug'](_0x207ca0[_0x3abf93(0x144)]),null;if(_0x1d20d1['fn']&&_0x1d20d1['fn'][_0x3abf93(0x10e)]()['match'](/browserstack internal helper hook/))return null;await this[_0x3abf93(0x171)]();let _0x20544d;try{_0x20544d=this[_0x3abf93(0x129)](_0x1d20d1);if(_0x20544d&&_0x20544d[_0x3abf93(0x126)](_0x207ca0['asPwX']))return null;}catch(_0x24e1f5){logger['debug'](_0x3abf93(0xde)+util[_0x3abf93(0xe8)](_0x24e1f5)),_0x20544d=null;}const _0x12374c=this[_0x3abf93(0xe4)](_0x1d20d1),_0x2693f3=this[_0x3abf93(0x110)](_0x1d20d1),_0x31d500=_0x207ca0[_0x3abf93(0xe5)](_0x20544d,_0x207ca0['DCOtr']);let _0x4de54c=[];if(_0x207ca0[_0x3abf93(0x141)](_0x1d20d1[_0x3abf93(0xeb)],undefined))_0x4de54c=[_0x1d20d1[_0x3abf93(0xeb)],_0x207ca0[_0x3abf93(0xcc)]];else _0x207ca0['fXhnq'](_0x434d6f,undefined)&&(_0x4de54c=[_0x434d6f,_0x207ca0[_0x3abf93(0xf9)]]);const _0x49d932=_0x207ca0[_0x3abf93(0x119)](_0x1d20d1[_0x3abf93(0xeb)],undefined)?util['inspect'](_0x1d20d1[_0x3abf93(0xeb)][0x0]):_0x207ca0['QYGPl'](_0x434d6f,undefined)?_0x434d6f[_0x3abf93(0x10e)]():undefined;let _0x3ba60b=_0x207ca0['vRVfM'];if(_0x207ca0[_0x3abf93(0x167)](_0x4b8213,_0x207ca0[_0x3abf93(0x100)]))_0x3ba60b=_0x207ca0['yfNpi'];else _0x1d20d1[_0x3abf93(0xeb)]&&_0x207ca0[_0x3abf93(0xe7)](_0x1d20d1[_0x3abf93(0xeb)]['length'],0x0)?_0x3ba60b=_0x207ca0[_0x3abf93(0x170)]:_0x3ba60b=_0x207ca0[_0x3abf93(0xb8)];let _0xa44c8e=null;if(_0x207ca0['UEKRL'](_0x1d20d1[_0x3abf93(0xe2)],undefined))_0xa44c8e=_0x1d20d1[_0x3abf93(0xe2)];else(_0x4b8213[_0x3abf93(0x116)](/Finished/)||_0x4b8213[_0x3abf93(0x116)](/Skipped/))&&(_0x1d20d1['started_at']&&(_0xa44c8e=_0x207ca0[_0x3abf93(0x140)](Date[_0x3abf93(0x16d)](),new Date(_0x1d20d1[_0x3abf93(0x127)])[_0x3abf93(0x168)]())));const _0x6a2fec=_0x1d20d1['fn']?_0x1d20d1['fn'][_0x3abf93(0x10e)]():null,_0x18c5c2={'id':_0x886669,'uuid':_0x886669,'startedAt':_0x1d20d1[_0x3abf93(0x127)]||new Date()[_0x3abf93(0x138)](),'finishedAt':_0x4b8213[_0x3abf93(0x116)](/Finished/)||_0x4b8213[_0x3abf93(0x116)](/Skipped/)?new Date()['toISOString']():null,'type':_0x207ca0[_0x3abf93(0xcc)],'body':{'lang':_0x207ca0[_0x3abf93(0xbb)],'code':_0x6a2fec},'name':_0x2693f3,'scopes':_0x12374c,'file_name':_0x31d500,'location':_0x31d500,'vc_filepath':this['_gitConfigPath']&&_0x20544d?path[_0x3abf93(0x14d)](this[_0x3abf93(0xbc)],_0x20544d):null,'framework':_0x207ca0[_0x3abf93(0x169)],'result':_0x3ba60b,'failure_reason':_0x49d932,'duration_in_ms':_0xa44c8e,'failure':failureData[_0x3abf93(0x14e)](null,_0x4de54c),'failure_type':!_0x49d932?null:_0x207ca0[_0x3abf93(0xd1)](getFailureType,_0x49d932),'retry_of':_0x1d20d1[_0x3abf93(0x105)]||null,'customRerunParam':{'rerun_name':_0x2693f3}};_0x207ca0[_0x3abf93(0x10a)](_0x4b8213,_0x207ca0[_0x3abf93(0x100)])&&!_0x18c5c2[_0x3abf93(0x16e)]&&(_0x18c5c2['startedAt']=_0x18c5c2[_0x3abf93(0xc4)]);const _0x12f4f1=_0x18c5c2['failure']&&_0x18c5c2[_0x3abf93(0xf4)][0x0];return _0x12f4f1&&(_0x18c5c2[_0x3abf93(0x164)]=_0x12f4f1[_0x3abf93(0xee)],_0x18c5c2[_0x3abf93(0xda)]=_0x12f4f1['expanded']),(_0x207ca0[_0x3abf93(0x16f)](_0x4b8213,_0x207ca0[_0x3abf93(0xd0)])||_0x207ca0[_0x3abf93(0x10a)](_0x4b8213,_0x207ca0[_0x3abf93(0x100)]))&&(_0x1d20d1[_0x3abf93(0xe3)]&&(_0x18c5c2[_0x3abf93(0xe3)]=_0x1d20d1[_0x3abf93(0xe3)])),_0x18c5c2;}catch(_0x4a460c){return logger['debug'](_0x3abf93(0x109)+util[_0x3abf93(0xe8)](_0x4a460c)),null;}}async[a91_0x30504a(0x130)](_0x3f45b2,_0x4fb07b,_0x2f62f8,_0x2a2769){const _0x18fa16=a91_0x30504a,_0x5f6596={'vNtCY':_0x18fa16(0x143),'IsUtF':_0x18fa16(0xc5),'cKWiC':_0x18fa16(0x165),'CwEzZ':_0x18fa16(0xd7),'jurec':_0x18fa16(0x13f),'kZHya':function(_0x39f097,_0x266f30){return _0x39f097===_0x266f30;},'FUSSu':_0x18fa16(0x112),'CDpYx':function(_0x437dfa,_0x259eaf){return _0x437dfa>_0x259eaf;},'btxhG':_0x18fa16(0x12d),'hvnEt':function(_0x4446a1,_0x26bffc){return _0x4446a1(_0x26bffc);},'GaTzW':_0x18fa16(0x132),'HocLx':_0x18fa16(0xec),'SqeGK':'hook','BgRPR':_0x18fa16(0xe0),'shYLc':_0x18fa16(0x120),'YcxgG':_0x18fa16(0xc6)};logger[_0x18fa16(0x134)](_0x18fa16(0xe6)+_0x2f62f8+_0x18fa16(0xbf)+_0x4fb07b+',\x20testRunId:\x20'+_0x2a2769);try{if(!_0x3f45b2)return logger[_0x18fa16(0x134)](_0x5f6596[_0x18fa16(0x103)]),null;if(this[_0x18fa16(0xdb)](_0x3f45b2))return null;await this[_0x18fa16(0x171)]();let _0x279a5d=null;try{_0x279a5d=this[_0x18fa16(0x129)](_0x3f45b2);if(_0x279a5d&&_0x279a5d['includes'](_0x5f6596['IsUtF']))return null;if(_0x279a5d&&_0x279a5d[_0x18fa16(0x126)](_0x5f6596[_0x18fa16(0x157)]))return null;}catch(_0x2367ae){logger['debug'](_0x18fa16(0x15e)+util['format'](_0x2367ae));}const _0x1c3940=this[_0x18fa16(0x110)](_0x3f45b2),_0x37c328=_0x3f45b2[_0x18fa16(0xd3)]||_0x5f6596['CwEzZ'],_0x295a31=HOOK_TYPES_MAP[_0x37c328]||_0x37c328['toUpperCase'](),_0xf2b03b=_0x3f45b2[_0x18fa16(0x154)]&&_0x3f45b2['parent'][_0x18fa16(0x128)]?_0x3f45b2[_0x18fa16(0x154)]['name']:'';let _0x2959ae=_0x5f6596[_0x18fa16(0x122)],_0x2beeef=null,_0x2e92e8=null,_0x427f57=null,_0x404e3c=null;_0x5f6596[_0x18fa16(0xe1)](_0x2f62f8,_0x5f6596['FUSSu'])&&(_0x404e3c=new Date()[_0x18fa16(0x138)](),_0x3f45b2[_0x18fa16(0xeb)]&&_0x5f6596['CDpYx'](_0x3f45b2[_0x18fa16(0xeb)][_0x18fa16(0xc1)],0x0)?(_0x2959ae=_0x5f6596[_0x18fa16(0x114)],_0x2e92e8=util[_0x18fa16(0xea)](_0x3f45b2[_0x18fa16(0xeb)][0x0]),_0x2beeef=_0x5f6596[_0x18fa16(0x135)](getFailureType,_0x2e92e8),_0x427f57=failureData[_0x18fa16(0x14e)](null,[_0x3f45b2[_0x18fa16(0xeb)],_0x5f6596['GaTzW']])):_0x2959ae=_0x5f6596[_0x18fa16(0x139)]);const _0xbea0da={'uuid':_0x4fb07b,'type':_0x5f6596['SqeGK'],'hook_type':_0x295a31,'name':_0x1c3940,'body':{'lang':_0x5f6596[_0x18fa16(0x107)],'code':_0x3f45b2['fn']?_0x3f45b2['fn'][_0x18fa16(0x10e)]():null},'tags':[],'test_run_id':_0x2a2769,'scope':_0xf2b03b,'scopes':[_0xf2b03b],'file_name':_0x279a5d,'location':_0x279a5d,'vc_filepath':this[_0x18fa16(0xbc)]&&_0x279a5d?path[_0x18fa16(0x14d)](this[_0x18fa16(0xbc)],_0x279a5d):null,'result':_0x2959ae,'started_at':_0x3f45b2['started_at']||new Date()[_0x18fa16(0x138)](),'finished_at':_0x404e3c,'failure_type':_0x2beeef,'failure_reason':_0x2e92e8,'failure_data':_0x427f57,'framework':_0x5f6596[_0x18fa16(0x10c)]};return _0x5f6596['kZHya'](_0x2f62f8,_0x5f6596['YcxgG'])&&(hooksMap[_0x2a2769]?hooksMap[_0x2a2769][_0x18fa16(0xbd)](_0xbea0da):hooksMap[_0x2a2769]=[_0xbea0da]),_0xbea0da;}catch(_0x5d2377){return logger['debug'](_0x18fa16(0xd2)+util[_0x18fa16(0xe8)](_0x5d2377)),null;}}[a91_0x30504a(0x163)](_0x24fe0b,_0x4023b1,_0x3869dd){const _0x2aead0=a91_0x30504a,_0x3b2338={'vfCvk':function(_0x83a03f,_0x233f31){return _0x83a03f>_0x233f31;},'NOJiP':'failed','GWGTQ':function(_0x6ad5e8,_0x5ba86a){return _0x6ad5e8(_0x5ba86a);},'ySlqT':_0x2aead0(0x132),'uWqko':_0x2aead0(0xec)};try{const _0x26cb55=hooksMap[_0x24fe0b];if(!_0x26cb55)return null;const _0x478c3e=_0x26cb55[_0x2aead0(0xc0)](_0x32088b=>_0x32088b[_0x2aead0(0x155)]===_0x4023b1);if(!_0x478c3e)return null;return _0x478c3e[_0x2aead0(0x11f)]=new Date()[_0x2aead0(0x138)](),_0x3869dd[_0x2aead0(0xeb)]&&_0x3b2338[_0x2aead0(0x172)](_0x3869dd[_0x2aead0(0xeb)]['length'],0x0)?(_0x478c3e[_0x2aead0(0x108)]=_0x3b2338['NOJiP'],_0x478c3e[_0x2aead0(0xe9)]=util[_0x2aead0(0xea)](_0x3869dd[_0x2aead0(0xeb)][0x0]),_0x478c3e[_0x2aead0(0xc3)]=_0x3b2338[_0x2aead0(0x15f)](getFailureType,_0x478c3e[_0x2aead0(0xe9)]),_0x478c3e[_0x2aead0(0x106)]=failureData[_0x2aead0(0x14e)](null,[_0x3869dd['errorsDetailed'],_0x3b2338[_0x2aead0(0x118)]])):_0x478c3e[_0x2aead0(0x108)]=_0x3b2338[_0x2aead0(0x12c)],_0x478c3e;}catch(_0xe03b3b){return logger['debug']('Exception\x20in\x20getHookRunEventData:\x20'+util[_0x2aead0(0xe8)](_0xe03b3b)),null;}}[a91_0x30504a(0x110)](_0x25543f){const _0x4ff86e=a91_0x30504a,_0xf4f633={};_0xf4f633[_0x4ff86e(0xf6)]=function(_0x39ee6e,_0x8b088e){return _0x39ee6e!==_0x8b088e;},_0xf4f633[_0x4ff86e(0x150)]='test',_0xf4f633['FZbWu']='Unknown\x20Test';const _0x4cc4a1=_0xf4f633;if(_0x4cc4a1[_0x4ff86e(0xf6)](_0x25543f[_0x4ff86e(0xd3)],_0x4cc4a1[_0x4ff86e(0x150)]))return'\x22'+_0x25543f['type']+_0x4ff86e(0xfb)+(_0x25543f['parent']&&_0x25543f[_0x4ff86e(0x154)][_0x4ff86e(0x128)])+'\x22';return _0x25543f[_0x4ff86e(0x128)]||_0x4cc4a1['FZbWu'];}[a91_0x30504a(0xe4)](_0x51d3e2){const _0x2f7aa9=a91_0x30504a,_0x4f7f1d={};_0x4f7f1d[_0x2f7aa9(0x111)]=function(_0x537ef7,_0x3b8d31){return _0x537ef7!==_0x3b8d31;},_0x4f7f1d['mqLLx']=function(_0x1f4f75,_0x3e65ef){return _0x1f4f75!==_0x3e65ef;},_0x4f7f1d[_0x2f7aa9(0xcf)]=_0x2f7aa9(0xdd);const _0x32f37d=_0x4f7f1d,_0x230bc2=[];if(_0x51d3e2&&_0x51d3e2[_0x2f7aa9(0x154)]){let _0x22fbdb=_0x51d3e2[_0x2f7aa9(0x154)];while(_0x22fbdb&&_0x22fbdb[_0x2f7aa9(0x128)]&&_0x32f37d[_0x2f7aa9(0x111)](_0x22fbdb[_0x2f7aa9(0x128)],'')&&_0x32f37d[_0x2f7aa9(0x15b)](_0x22fbdb[_0x2f7aa9(0x128)],_0x32f37d[_0x2f7aa9(0xcf)])){_0x230bc2[_0x2f7aa9(0xbd)](_0x22fbdb[_0x2f7aa9(0x128)]),_0x22fbdb=_0x22fbdb['parent'];}}return _0x230bc2[_0x2f7aa9(0x101)](),_0x230bc2;}[a91_0x30504a(0x129)](_0x5dace9){const _0x3915d2=a91_0x30504a;if(_0x5dace9['asyncError'])try{const _0x33b8bf=stackTrace[_0x3915d2(0x12f)][_0x3915d2(0x104)](stackTrace,_0x5dace9['asyncError']);if(_0x33b8bf[0x0]&&_0x33b8bf[0x0][_0x3915d2(0x15d)])return _0x33b8bf[0x0][_0x3915d2(0x15d)]();}catch(_0x1ae5d0){logger[_0x3915d2(0x134)](_0x3915d2(0x146)+util[_0x3915d2(0xe8)](_0x1ae5d0));}if(_0x5dace9['file'])return _0x5dace9[_0x3915d2(0x123)];return null;}[a91_0x30504a(0xdb)](_0x4f4588){const _0x4f7ef8=a91_0x30504a,_0x119cce={};_0x119cce[_0x4f7ef8(0x131)]=_0x4f7ef8(0xc5);const _0x3f1a6c=_0x119cce;try{const _0x274444=this['getRootParentFile'](_0x4f4588);if(_0x274444&&_0x274444['includes'](_0x3f1a6c[_0x4f7ef8(0x131)]))return!![];}catch(_0x298f23){logger[_0x4f7ef8(0x134)](_0x4f7ef8(0xfc)+util[_0x4f7ef8(0xe8)](_0x298f23));}return![];}['getTestIdentifier'](_0x582ce4=null){const _0x217cdd=a91_0x30504a;try{const _0x3d5e27=_0x582ce4||global[_0x217cdd(0xdf)]||{};if(global[_0x217cdd(0x152)])return global[_0x217cdd(0x152)];if(_0x3d5e27?.[_0x217cdd(0x11a)]?.[_0x217cdd(0x117)])return _0x3d5e27['currentTest']['testAnalyticsId'];if(_0x3d5e27?.[_0x217cdd(0x11a)]?.['id'])return _0x3d5e27[_0x217cdd(0x11a)]['id'];return null;}catch(_0xbab774){return logger[_0x217cdd(0x134)](_0x217cdd(0x16c)+util['format'](_0xbab774)),null;}}async['configureGit'](){const _0xca604f=a91_0x30504a,_0x167bac={'AYqDl':function(_0x55b609){return _0x55b609();}};if(this[_0xca604f(0x148)])return this[_0xca604f(0xbc)];const _0x4a4136=await _0x167bac[_0xca604f(0x13c)](getGitMetaData);_0x4a4136&&(this[_0xca604f(0xbc)]=_0x4a4136[_0xca604f(0xf5)]),this[_0xca604f(0x148)]=!![];}[a91_0x30504a(0x14f)](_0x235d1a){hooksMap[_0x235d1a]&&delete hooksMap[_0x235d1a];}[a91_0x30504a(0x161)](_0x1eb56a){const _0x567fec=a91_0x30504a,_0x2929f9={'cvrNG':_0x567fec(0xc5),'wnvnN':function(_0x183070,_0x566d38){return _0x183070(_0x566d38);},'eVArS':_0x567fec(0x10b)};if(_0x1eb56a['file'])return _0x1eb56a[_0x567fec(0x123)];if(_0x1eb56a['asyncError']){try{const _0x585f08=stackTrace[_0x567fec(0x12f)](_0x1eb56a[_0x567fec(0x16a)]);if(_0x585f08[0x0]&&_0x585f08[0x0][_0x567fec(0x15d)]){const _0x448b72=_0x585f08[0x0][_0x567fec(0x15d)]();if(_0x448b72&&!_0x448b72[_0x567fec(0x126)](_0x2929f9[_0x567fec(0x11b)]))return _0x448b72;}}catch(_0x4d0635){logger[_0x567fec(0x134)](_0x567fec(0x115)+util[_0x567fec(0xe8)](_0x4d0635));}if(_0x1eb56a['asyncError']['stack']){const _0x3ef86d=_0x1eb56a[_0x567fec(0x16a)]['stack'][_0x567fec(0xf0)]('\x0a');for(const _0x15f763 of _0x3ef86d){const _0x25631a=_0x15f763[_0x567fec(0x116)](/at (.+?):\d+:\d+/);if(_0x25631a&&_0x25631a[0x1]&&!_0x25631a[0x1][_0x567fec(0x126)](_0x2929f9[_0x567fec(0x11b)]))return _0x25631a[0x1];}}}let _0x4e2ca=_0x1eb56a[_0x567fec(0x154)];while(_0x4e2ca){if(_0x4e2ca[_0x567fec(0x123)])return _0x4e2ca['file'];if(_0x4e2ca[_0x567fec(0x16a)])try{const _0x55211f=stackTrace[_0x567fec(0x12f)](_0x4e2ca['asyncError']);if(_0x55211f[0x0]&&_0x55211f[0x0][_0x567fec(0x15d)]){const _0x41d001=_0x55211f[0x0]['getFileName']();if(_0x41d001&&!_0x41d001[_0x567fec(0x126)](_0x2929f9[_0x567fec(0x11b)]))return _0x41d001;}}catch(_0x1eacbe){}_0x4e2ca=_0x4e2ca['parent'];}try{const _0x59208e=_0x2929f9[_0x567fec(0xf3)](require,_0x2929f9[_0x567fec(0x137)]);if(_0x59208e&&_0x59208e[_0x567fec(0x156)]){const _0x16ae7b=_0x59208e[_0x567fec(0x156)]();if(_0x16ae7b&&_0x16ae7b['testPath'])return _0x16ae7b[_0x567fec(0x158)];}}catch(_0x56d4b6){logger['debug'](_0x567fec(0x136)+util[_0x567fec(0xe8)](_0x56d4b6));}return null;}['createJestTestIdentifier'](_0x35abbb){const _0x3f52fb=a91_0x30504a,_0x4e8084={};_0x4e8084['MXrUm']=_0x3f52fb(0xed),_0x4e8084['GtUwW']=function(_0x2205d5,_0x20d231){return _0x2205d5!==_0x20d231;},_0x4e8084['tGtwh']='ROOT_DESCRIBE_BLOCK',_0x4e8084['HEqwH']=_0x3f52fb(0xc5),_0x4e8084[_0x3f52fb(0xce)]=_0x3f52fb(0xf1),_0x4e8084[_0x3f52fb(0x102)]=_0x3f52fb(0x15c);const _0x5b5165=_0x4e8084;try{if(!_0x35abbb)return logger[_0x3f52fb(0x11c)](_0x5b5165[_0x3f52fb(0x121)]),null;const _0x409b45=_0x35abbb[_0x3f52fb(0x14c)]||_0x35abbb[_0x3f52fb(0x128)]||_0x35abbb['title']||_0x35abbb[_0x3f52fb(0xf8)];let _0x59d0b1=_0x409b45;if(_0x35abbb[_0x3f52fb(0x154)]&&_0x35abbb['parent'][_0x3f52fb(0x128)]&&_0x5b5165[_0x3f52fb(0x153)](_0x35abbb[_0x3f52fb(0x154)]['name'],_0x5b5165[_0x3f52fb(0xef)])){const _0x235796=_0x35abbb[_0x3f52fb(0x128)]||_0x35abbb[_0x3f52fb(0xfe)];_0x235796&&(_0x59d0b1=_0x35abbb[_0x3f52fb(0x154)][_0x3f52fb(0x128)]+'\x20'+_0x235796);}let _0x146905=_0x35abbb[_0x3f52fb(0x158)];if(!_0x146905&&_0x35abbb[_0x3f52fb(0x16a)]){try{const _0x17fd5d=stackTrace[_0x3f52fb(0x12f)](_0x35abbb[_0x3f52fb(0x16a)]);if(_0x17fd5d[0x0]&&_0x17fd5d[0x0]['getFileName']){const _0x59bf7e=_0x17fd5d[0x0][_0x3f52fb(0x15d)]();_0x59bf7e&&!_0x59bf7e[_0x3f52fb(0x126)](_0x5b5165[_0x3f52fb(0xff)])&&(_0x146905=_0x59bf7e);}}catch(_0x2c1d76){logger[_0x3f52fb(0x134)]('[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util[_0x3f52fb(0xe8)](_0x2c1d76));}if(!_0x146905&&_0x35abbb[_0x3f52fb(0x16a)]['stack']){const _0x439c74=_0x35abbb[_0x3f52fb(0x16a)]['stack'][_0x3f52fb(0xf0)]('\x0a');for(const _0x6c4cfe of _0x439c74){const _0x96dad0=_0x6c4cfe[_0x3f52fb(0x116)](/at (.+?):\d+:\d+/);if(_0x96dad0&&_0x96dad0[0x1]&&!_0x96dad0[0x1][_0x3f52fb(0x126)](_0x5b5165[_0x3f52fb(0xff)])){_0x146905=_0x96dad0[0x1];break;}}}}const _0x360fbd=_0x146905+'::'+_0x59d0b1,_0x20f1cf=crypto[_0x3f52fb(0xd8)](_0x5b5165[_0x3f52fb(0xce)])['update'](_0x360fbd)['digest'](_0x5b5165[_0x3f52fb(0x102)])[_0x3f52fb(0x125)](0x0,0x8),_0x152f1a=process[_0x3f52fb(0xfd)]+_0x3f52fb(0x142)+_0x20f1cf;return logger[_0x3f52fb(0x134)](_0x3f52fb(0xd5)+_0x152f1a+_0x3f52fb(0xc9)+_0x360fbd),_0x152f1a;}catch(_0x1ea280){return logger[_0x3f52fb(0x11c)]('[jestUtils]\x20Error\x20creating\x20identifier:\x20'+util[_0x3f52fb(0xe8)](_0x1ea280)),null;}}['createIdentifierFromJestTest'](_0xdd5075){const _0x3943e3=a91_0x30504a,_0x1ef894={};_0x1ef894['VUzTD']=_0x3943e3(0x145);const _0x462550=_0x1ef894;if(!_0xdd5075)return logger['debug'](_0x462550[_0x3943e3(0x113)]),null;const _0x2dfdb0=this[_0x3943e3(0x161)](_0xdd5075),_0x57bbe7={};_0x57bbe7[_0x3943e3(0x128)]=_0xdd5075[_0x3943e3(0x128)]||_0xdd5075['title'],_0x57bbe7['parent']=_0xdd5075['parent'],_0x57bbe7[_0x3943e3(0x158)]=_0x2dfdb0,_0x57bbe7[_0x3943e3(0x16a)]=_0xdd5075[_0x3943e3(0x16a)];const _0x2c37dc=_0x57bbe7;return this['createJestTestIdentifier'](_0x2c37dc);}['recreateIdentifierFromTestInfo'](_0x537f54){const _0x3cd9b3=a91_0x30504a,_0x330c9d={};_0x330c9d[_0x3cd9b3(0xd4)]=_0x3cd9b3(0x16b);const _0x5ecea7=_0x330c9d;if(!_0x537f54)return logger[_0x3cd9b3(0x134)](_0x5ecea7[_0x3cd9b3(0xd4)]),null;if(_0x537f54['testIdentifier'])return logger[_0x3cd9b3(0x134)](_0x3cd9b3(0xfa)+_0x537f54[_0x3cd9b3(0x14b)]),_0x537f54['testIdentifier'];return this[_0x3cd9b3(0x13a)](_0x537f54);}}module['exports']=o11yClassErrorHandler(JestUtils,[a91_0x30504a(0x171),'getHierarchy','getRootParentFile',a91_0x30504a(0x110),'isJestInternalHook',a91_0x30504a(0xd6),a91_0x30504a(0x12e),a91_0x30504a(0x130),a91_0x30504a(0x163),a91_0x30504a(0x14f),a91_0x30504a(0x161),a91_0x30504a(0x13a),a91_0x30504a(0x11e),a91_0x30504a(0xca)]);
|
|
1
|
+
const a91_0x266f6e=a91_0x3f36;function a91_0x3f36(_0x21a876,_0x4aae42){const _0x42726a=a91_0x4272();return a91_0x3f36=function(_0x3f3672,_0x389fb3){_0x3f3672=_0x3f3672-0x1b0;let _0x5f127e=_0x42726a[_0x3f3672];return _0x5f127e;},a91_0x3f36(_0x21a876,_0x4aae42);}(function(_0x108c65,_0x30c7cd){const _0x5a218c=a91_0x3f36,_0x34522f=_0x108c65();while(!![]){try{const _0x1b7a82=parseInt(_0x5a218c(0x25c))/0x1+-parseInt(_0x5a218c(0x1cf))/0x2*(-parseInt(_0x5a218c(0x258))/0x3)+-parseInt(_0x5a218c(0x252))/0x4*(-parseInt(_0x5a218c(0x246))/0x5)+-parseInt(_0x5a218c(0x1c7))/0x6+parseInt(_0x5a218c(0x23d))/0x7+parseInt(_0x5a218c(0x1d9))/0x8*(-parseInt(_0x5a218c(0x25f))/0x9)+-parseInt(_0x5a218c(0x236))/0xa;if(_0x1b7a82===_0x30c7cd)break;else _0x34522f['push'](_0x34522f['shift']());}catch(_0x5594f0){_0x34522f['push'](_0x34522f['shift']());}}}(a91_0x4272,0xc18c8));const path=require(a91_0x266f6e(0x1f1)),util=require('util'),crypto=require(a91_0x266f6e(0x1fa)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a91_0x266f6e(0x237)),logger=require(a91_0x266f6e(0x1f5))[a91_0x266f6e(0x23c)],{o11yClassErrorHandler}=require(a91_0x266f6e(0x1b1)),TestInfo=require(a91_0x266f6e(0x1e0)),{failureData,getFailureType}=require(a91_0x266f6e(0x251)),stackTrace=require(a91_0x266f6e(0x20f)),a91_0x28f5ce={};a91_0x28f5ce['beforeAll']='BEFORE_ALL',a91_0x28f5ce['afterAll']=a91_0x266f6e(0x244),a91_0x28f5ce[a91_0x266f6e(0x1ef)]=a91_0x266f6e(0x1e1),a91_0x28f5ce['afterEach']=a91_0x266f6e(0x25a);const HOOK_TYPES_MAP=a91_0x28f5ce,hooksMap={};class JestUtils{constructor(){const _0x4be9c3=a91_0x266f6e;this['_gitConfigured']=![],this[_0x4be9c3(0x214)]=null;}async[a91_0x266f6e(0x1f2)](_0x331e05,_0x2bda26,_0x51811f=a91_0x266f6e(0x1d2),_0x2b9ebe=undefined){const _0x1efdf1=a91_0x266f6e,_0x53b38f={'BrdUx':_0x1efdf1(0x1ff),'oRUxI':_0x1efdf1(0x1f4),'fQZEV':function(_0x2f888f,_0x44237b){return _0x2f888f||_0x44237b;},'RDNDA':'File\x20path\x20could\x20not\x20be\x20found','lvhZh':function(_0x5c59f2,_0x6852be){return _0x5c59f2!==_0x6852be;},'LIvph':_0x1efdf1(0x1b5),'mlxSy':function(_0x1386fc,_0xfb7a77){return _0x1386fc!==_0xfb7a77;},'IXnlg':_0x1efdf1(0x232),'wcEdI':function(_0x49acfb,_0x476300){return _0x49acfb!==_0x476300;},'YfkAg':_0x1efdf1(0x1d1),'AeDij':function(_0x1fdec0,_0x12d021){return _0x1fdec0===_0x12d021;},'bGVWp':_0x1efdf1(0x253),'fOcIb':_0x1efdf1(0x212),'vlgse':function(_0x539ac3,_0x563ce0){return _0x539ac3>_0x563ce0;},'MEsKv':_0x1efdf1(0x21a),'mBbQl':'passed','wklrH':function(_0x747dee,_0x40bd46){return _0x747dee!==_0x40bd46;},'tdYgK':function(_0x32426f,_0x3fc0fc){return _0x32426f-_0x3fc0fc;},'UOspH':_0x1efdf1(0x20c),'oRXNb':'jest','IWMnw':function(_0x520070,_0x1cf6bb){return _0x520070(_0x1cf6bb);},'OoKcM':_0x1efdf1(0x1d2),'xujdZ':function(_0xca5bbe,_0x50d7ca){return _0xca5bbe===_0x50d7ca;}};logger[_0x1efdf1(0x1fd)]('Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20'+_0x51811f+_0x1efdf1(0x1ed)+_0x2bda26);try{if(!_0x331e05)return logger[_0x1efdf1(0x1fd)](_0x53b38f['BrdUx']),null;if(_0x331e05['fn']&&_0x331e05['fn'][_0x1efdf1(0x1ba)]()[_0x1efdf1(0x1be)](/browserstack internal helper hook/))return null;await this[_0x1efdf1(0x254)]();let _0xbdafe3;try{_0xbdafe3=this[_0x1efdf1(0x208)](_0x331e05);if(_0xbdafe3&&_0xbdafe3['includes'](_0x53b38f[_0x1efdf1(0x259)]))return null;}catch(_0x2401a8){logger[_0x1efdf1(0x1fd)](_0x1efdf1(0x1d0)+util[_0x1efdf1(0x24f)](_0x2401a8)),_0xbdafe3=null;}const _0x523bfa=this[_0x1efdf1(0x1c6)](_0x331e05),_0x228e9a=this[_0x1efdf1(0x201)](_0x331e05),_0x18e27b=_0x53b38f[_0x1efdf1(0x238)](_0xbdafe3,_0x53b38f[_0x1efdf1(0x1d3)]);let _0x2021a3=[];if(_0x53b38f[_0x1efdf1(0x266)](_0x331e05['errorsDetailed'],undefined))_0x2021a3=[_0x331e05['errorsDetailed'],_0x53b38f[_0x1efdf1(0x260)]];else _0x53b38f[_0x1efdf1(0x1df)](_0x2b9ebe,undefined)&&(_0x2021a3=[_0x2b9ebe,_0x53b38f['IXnlg']]);const _0x4c2f5f=_0x53b38f[_0x1efdf1(0x1df)](_0x331e05[_0x1efdf1(0x211)],undefined)?util[_0x1efdf1(0x25d)](_0x331e05[_0x1efdf1(0x211)][0x0]):_0x53b38f[_0x1efdf1(0x1bb)](_0x2b9ebe,undefined)?_0x2b9ebe['toString']():undefined;let _0xca2a13=_0x53b38f[_0x1efdf1(0x1b6)];if(_0x53b38f[_0x1efdf1(0x23a)](_0x51811f,_0x53b38f[_0x1efdf1(0x1f3)]))_0xca2a13=_0x53b38f[_0x1efdf1(0x21e)];else _0x331e05[_0x1efdf1(0x211)]&&_0x53b38f[_0x1efdf1(0x230)](_0x331e05[_0x1efdf1(0x211)][_0x1efdf1(0x1d4)],0x0)?_0xca2a13=_0x53b38f[_0x1efdf1(0x21b)]:_0xca2a13=_0x53b38f['mBbQl'];let _0x5b4b0a=null;if(_0x53b38f[_0x1efdf1(0x24e)](_0x331e05[_0x1efdf1(0x1dd)],undefined))_0x5b4b0a=_0x331e05[_0x1efdf1(0x1dd)];else(_0x51811f[_0x1efdf1(0x1be)](/Finished/)||_0x51811f[_0x1efdf1(0x1be)](/Skipped/))&&(_0x331e05['started_at']&&(_0x5b4b0a=_0x53b38f['tdYgK'](Date[_0x1efdf1(0x1ee)](),new Date(_0x331e05[_0x1efdf1(0x1f8)])['getTime']())));const _0x530ce6=_0x331e05['fn']?_0x331e05['fn'][_0x1efdf1(0x1ba)]():null,_0x230d35={'id':_0x2bda26,'uuid':_0x2bda26,'startedAt':_0x331e05[_0x1efdf1(0x1f8)]||new Date()[_0x1efdf1(0x225)](),'finishedAt':_0x51811f[_0x1efdf1(0x1be)](/Finished/)||_0x51811f[_0x1efdf1(0x1be)](/Skipped/)?new Date()[_0x1efdf1(0x225)]():null,'type':_0x53b38f[_0x1efdf1(0x260)],'body':{'lang':_0x53b38f[_0x1efdf1(0x1f7)],'code':_0x530ce6},'name':_0x228e9a,'scopes':_0x523bfa,'file_name':_0x18e27b,'location':_0x18e27b,'vc_filepath':this[_0x1efdf1(0x214)]&&_0xbdafe3?path[_0x1efdf1(0x239)](this[_0x1efdf1(0x214)],_0xbdafe3):null,'framework':_0x53b38f[_0x1efdf1(0x248)],'result':_0xca2a13,'failure_reason':_0x4c2f5f,'duration_in_ms':_0x5b4b0a,'failure':failureData['apply'](null,_0x2021a3),'failure_type':!_0x4c2f5f?null:_0x53b38f[_0x1efdf1(0x1e5)](getFailureType,_0x4c2f5f),'retry_of':_0x331e05[_0x1efdf1(0x24c)]||null,'customRerunParam':{'rerun_name':_0x228e9a}};_0x53b38f[_0x1efdf1(0x23a)](_0x51811f,_0x53b38f[_0x1efdf1(0x1f3)])&&!_0x230d35[_0x1efdf1(0x1da)]&&(_0x230d35[_0x1efdf1(0x1da)]=_0x230d35['finishedAt']);const _0x20802e=_0x230d35[_0x1efdf1(0x21c)]&&_0x230d35[_0x1efdf1(0x21c)][0x0];return _0x20802e&&(_0x230d35[_0x1efdf1(0x1e4)]=_0x20802e[_0x1efdf1(0x209)],_0x230d35[_0x1efdf1(0x1b3)]=_0x20802e[_0x1efdf1(0x22f)]),(_0x53b38f['AeDij'](_0x51811f,_0x53b38f[_0x1efdf1(0x1f9)])||_0x53b38f['xujdZ'](_0x51811f,_0x53b38f['bGVWp']))&&(_0x331e05['hooks']&&(_0x230d35[_0x1efdf1(0x1cd)]=_0x331e05[_0x1efdf1(0x1cd)])),_0x230d35;}catch(_0x2d84d3){return logger['debug']('Exception\x20in\x20createTestFrameworkData:\x20'+util[_0x1efdf1(0x24f)](_0x2d84d3)),null;}}async[a91_0x266f6e(0x1b0)](_0x19be62,_0x3f5d80,_0x530599,_0x5eb7c1){const _0x4805b8=a91_0x266f6e,_0x1c4353={'MkZPa':_0x4805b8(0x240),'Oqkao':'jest-circus','abrtO':_0x4805b8(0x23b),'XLkTT':_0x4805b8(0x24b),'OEqhS':_0x4805b8(0x1d1),'mOeWA':function(_0x2583d5,_0x5b7256){return _0x2583d5===_0x5b7256;},'dVTEy':_0x4805b8(0x1c3),'HeipV':function(_0x345f91,_0x2634d6){return _0x345f91>_0x2634d6;},'lILmz':_0x4805b8(0x21a),'KFdRP':function(_0x4a0e73,_0x469381){return _0x4a0e73(_0x469381);},'Rxfym':_0x4805b8(0x1b5),'TuIVV':_0x4805b8(0x255),'uDPFp':_0x4805b8(0x21f),'ajKDj':'javascript','udksu':_0x4805b8(0x228),'rwZBd':_0x4805b8(0x1f6)};logger[_0x4805b8(0x1fd)](_0x4805b8(0x1c9)+_0x530599+',\x20hookUUID:\x20'+_0x3f5d80+_0x4805b8(0x25b)+_0x5eb7c1);try{if(!_0x19be62)return logger[_0x4805b8(0x1fd)](_0x1c4353['MkZPa']),null;if(this['isJestInternalHook'](_0x19be62))return null;await this['configureGit']();let _0x281de3=null;try{_0x281de3=this[_0x4805b8(0x208)](_0x19be62);if(_0x281de3&&_0x281de3['includes'](_0x1c4353[_0x4805b8(0x1db)]))return null;if(_0x281de3&&_0x281de3[_0x4805b8(0x257)](_0x1c4353['abrtO']))return null;}catch(_0x345b8a){logger['debug'](_0x4805b8(0x219)+util['format'](_0x345b8a));}const _0x854d00=this[_0x4805b8(0x201)](_0x19be62),_0x4c3ff9=_0x19be62[_0x4805b8(0x1e2)]||_0x1c4353[_0x4805b8(0x200)],_0x4905c8=HOOK_TYPES_MAP[_0x4c3ff9]||_0x4c3ff9[_0x4805b8(0x1d6)](),_0x5af3cf=_0x19be62[_0x4805b8(0x222)]&&_0x19be62[_0x4805b8(0x222)][_0x4805b8(0x1e6)]?_0x19be62['parent'][_0x4805b8(0x1e6)]:'';let _0x3c3f13=_0x1c4353[_0x4805b8(0x1c2)],_0x47c55d=null,_0xa2a542=null,_0x1f5971=null,_0x599a2d=null;_0x1c4353[_0x4805b8(0x241)](_0x530599,_0x1c4353['dVTEy'])&&(_0x599a2d=new Date()[_0x4805b8(0x225)](),_0x19be62[_0x4805b8(0x211)]&&_0x1c4353['HeipV'](_0x19be62[_0x4805b8(0x211)][_0x4805b8(0x1d4)],0x0)?(_0x3c3f13=_0x1c4353['lILmz'],_0xa2a542=util[_0x4805b8(0x25d)](_0x19be62[_0x4805b8(0x211)][0x0]),_0x47c55d=_0x1c4353[_0x4805b8(0x207)](getFailureType,_0xa2a542),_0x1f5971=failureData[_0x4805b8(0x224)](null,[_0x19be62[_0x4805b8(0x211)],_0x1c4353[_0x4805b8(0x1b7)]])):_0x3c3f13=_0x1c4353[_0x4805b8(0x22a)]);const _0x4aa164={'uuid':_0x3f5d80,'type':_0x1c4353[_0x4805b8(0x220)],'hook_type':_0x4905c8,'name':_0x854d00,'body':{'lang':_0x1c4353[_0x4805b8(0x221)],'code':_0x19be62['fn']?_0x19be62['fn'][_0x4805b8(0x1ba)]():null},'tags':[],'test_run_id':_0x5eb7c1,'scope':_0x5af3cf,'scopes':[_0x5af3cf],'file_name':_0x281de3,'location':_0x281de3,'vc_filepath':this[_0x4805b8(0x214)]&&_0x281de3?path[_0x4805b8(0x239)](this[_0x4805b8(0x214)],_0x281de3):null,'result':_0x3c3f13,'started_at':_0x19be62[_0x4805b8(0x1f8)]||new Date()[_0x4805b8(0x225)](),'finished_at':_0x599a2d,'failure_type':_0x47c55d,'failure_reason':_0xa2a542,'failure_data':_0x1f5971,'framework':_0x1c4353['udksu']};return _0x1c4353[_0x4805b8(0x241)](_0x530599,_0x1c4353[_0x4805b8(0x229)])&&(hooksMap[_0x5eb7c1]?hooksMap[_0x5eb7c1][_0x4805b8(0x213)](_0x4aa164):hooksMap[_0x5eb7c1]=[_0x4aa164]),_0x4aa164;}catch(_0x1e0296){return logger['debug'](_0x4805b8(0x22c)+util['format'](_0x1e0296)),null;}}[a91_0x266f6e(0x20b)](_0x1b8360,_0x2b7c64,_0x17e139){const _0x8d4bf3=a91_0x266f6e,_0x51ff46={'HJBzj':function(_0x14898b,_0x332a60){return _0x14898b>_0x332a60;},'CnisA':_0x8d4bf3(0x21a),'rZLDr':function(_0x211db1,_0x227ac6){return _0x211db1(_0x227ac6);},'tnVAN':_0x8d4bf3(0x1b5),'plWtb':_0x8d4bf3(0x255)};try{const _0x55cd1b=hooksMap[_0x1b8360];if(!_0x55cd1b)return null;const _0x50cc0d=_0x55cd1b[_0x8d4bf3(0x1e7)](_0x53b545=>_0x53b545[_0x8d4bf3(0x1b4)]===_0x2b7c64);if(!_0x50cc0d)return null;return _0x50cc0d['finished_at']=new Date()['toISOString'](),_0x17e139[_0x8d4bf3(0x211)]&&_0x51ff46[_0x8d4bf3(0x20d)](_0x17e139['errorsDetailed'][_0x8d4bf3(0x1d4)],0x0)?(_0x50cc0d[_0x8d4bf3(0x1b9)]=_0x51ff46[_0x8d4bf3(0x1eb)],_0x50cc0d['failure_reason']=util[_0x8d4bf3(0x25d)](_0x17e139['errorsDetailed'][0x0]),_0x50cc0d[_0x8d4bf3(0x24d)]=_0x51ff46[_0x8d4bf3(0x1fe)](getFailureType,_0x50cc0d['failure_reason']),_0x50cc0d[_0x8d4bf3(0x1ec)]=failureData[_0x8d4bf3(0x224)](null,[_0x17e139[_0x8d4bf3(0x211)],_0x51ff46[_0x8d4bf3(0x1fc)]])):_0x50cc0d[_0x8d4bf3(0x1b9)]=_0x51ff46[_0x8d4bf3(0x1de)],_0x50cc0d;}catch(_0x2f886c){return logger[_0x8d4bf3(0x1fd)](_0x8d4bf3(0x21d)+util[_0x8d4bf3(0x24f)](_0x2f886c)),null;}}[a91_0x266f6e(0x201)](_0x11a4a6){const _0x56ee8c=a91_0x266f6e,_0x28279c={};_0x28279c[_0x56ee8c(0x1bc)]=function(_0x52f14c,_0x3a0df6){return _0x52f14c!==_0x3a0df6;},_0x28279c[_0x56ee8c(0x22b)]=_0x56ee8c(0x1b5),_0x28279c[_0x56ee8c(0x217)]=_0x56ee8c(0x1ca);const _0x5f38a6=_0x28279c;if(_0x5f38a6[_0x56ee8c(0x1bc)](_0x11a4a6['type'],_0x5f38a6['RwtIu']))return'\x22'+_0x11a4a6[_0x56ee8c(0x1e2)]+_0x56ee8c(0x227)+(_0x11a4a6[_0x56ee8c(0x222)]&&_0x11a4a6[_0x56ee8c(0x222)][_0x56ee8c(0x1e6)])+'\x22';return _0x11a4a6[_0x56ee8c(0x1e6)]||_0x5f38a6[_0x56ee8c(0x217)];}['getHierarchy'](_0xed156d){const _0x4e4bf3=a91_0x266f6e,_0x42e652={};_0x42e652['hivWb']=function(_0x1af1e1,_0x3dc7c7){return _0x1af1e1!==_0x3dc7c7;},_0x42e652[_0x4e4bf3(0x1bd)]=_0x4e4bf3(0x1d8);const _0x4c1ade=_0x42e652,_0x196bc5=[];if(_0xed156d&&_0xed156d[_0x4e4bf3(0x222)]){let _0x51d8b5=_0xed156d[_0x4e4bf3(0x222)];while(_0x51d8b5&&_0x51d8b5[_0x4e4bf3(0x1e6)]&&_0x4c1ade[_0x4e4bf3(0x256)](_0x51d8b5[_0x4e4bf3(0x1e6)],'')&&_0x4c1ade[_0x4e4bf3(0x256)](_0x51d8b5['name'],_0x4c1ade[_0x4e4bf3(0x1bd)])){_0x196bc5['push'](_0x51d8b5[_0x4e4bf3(0x1e6)]),_0x51d8b5=_0x51d8b5[_0x4e4bf3(0x222)];}}return _0x196bc5[_0x4e4bf3(0x261)](),_0x196bc5;}[a91_0x266f6e(0x208)](_0x359631){const _0x396b76=a91_0x266f6e;if(_0x359631[_0x396b76(0x223)])try{const _0x24e6e6=stackTrace['parse'][_0x396b76(0x264)](stackTrace,_0x359631[_0x396b76(0x223)]);if(_0x24e6e6[0x0]&&_0x24e6e6[0x0][_0x396b76(0x242)])return _0x24e6e6[0x0][_0x396b76(0x242)]();}catch(_0x3deeea){logger[_0x396b76(0x1fd)](_0x396b76(0x1cb)+util['format'](_0x3deeea));}if(_0x359631[_0x396b76(0x1c8)])return _0x359631['file'];return null;}['isJestInternalHook'](_0x2250de){const _0x2b4951=a91_0x266f6e,_0x34b5d9={};_0x34b5d9['WZqoa']=_0x2b4951(0x1f4);const _0x327466=_0x34b5d9;try{const _0x3491d7=this[_0x2b4951(0x208)](_0x2250de);if(_0x3491d7&&_0x3491d7[_0x2b4951(0x257)](_0x327466['WZqoa']))return!![];}catch(_0x1a5101){logger['debug'](_0x2b4951(0x250)+util[_0x2b4951(0x24f)](_0x1a5101));}return![];}[a91_0x266f6e(0x1b8)](_0x280631=null){const _0xb42d9e=a91_0x266f6e;try{const _0x1aba4b=_0x280631||global[_0xb42d9e(0x218)]||{};if(global[_0xb42d9e(0x1bf)])return global[_0xb42d9e(0x1bf)];if(_0x1aba4b?.[_0xb42d9e(0x1d5)]?.[_0xb42d9e(0x1ea)])return _0x1aba4b['currentTest'][_0xb42d9e(0x1ea)];if(_0x1aba4b?.[_0xb42d9e(0x1d5)]?.['id'])return _0x1aba4b['currentTest']['id'];return null;}catch(_0x45869e){return logger['debug'](_0xb42d9e(0x1cc)+util[_0xb42d9e(0x24f)](_0x45869e)),null;}}async[a91_0x266f6e(0x254)](){const _0xb95136=a91_0x266f6e,_0x374c31={'kywBj':function(_0x233bc5){return _0x233bc5();}};if(this['_gitConfigured'])return this[_0xb95136(0x214)];const _0x3a3eb8=await _0x374c31['kywBj'](getGitMetaData);_0x3a3eb8&&(this[_0xb95136(0x214)]=_0x3a3eb8[_0xb95136(0x1e8)]),this['_gitConfigured']=!![];}[a91_0x266f6e(0x235)](_0x5cad99){hooksMap[_0x5cad99]&&delete hooksMap[_0x5cad99];}[a91_0x266f6e(0x1c0)](_0x3f7445){const _0xd506c5=a91_0x266f6e,_0xa17c7={'qRckS':_0xd506c5(0x1f4),'SIlPi':function(_0x97ba6b,_0x2d73bf){return _0x97ba6b(_0x2d73bf);},'WUgBQ':_0xd506c5(0x20e)};if(_0x3f7445[_0xd506c5(0x1c8)])return _0x3f7445['file'];if(_0x3f7445['asyncError']){try{const _0x11537a=stackTrace[_0xd506c5(0x204)](_0x3f7445[_0xd506c5(0x223)]);if(_0x11537a[0x0]&&_0x11537a[0x0][_0xd506c5(0x242)]){const _0xbddb40=_0x11537a[0x0]['getFileName']();if(_0xbddb40&&!_0xbddb40[_0xd506c5(0x257)](_0xa17c7[_0xd506c5(0x23e)]))return _0xbddb40;}}catch(_0x24a018){logger[_0xd506c5(0x1fd)]('[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util[_0xd506c5(0x24f)](_0x24a018));}if(_0x3f7445[_0xd506c5(0x223)][_0xd506c5(0x247)]){const _0x28a4e7=_0x3f7445[_0xd506c5(0x223)]['stack'][_0xd506c5(0x263)]('\x0a');for(const _0x1bcbd6 of _0x28a4e7){const _0xb0a9f=_0x1bcbd6['match'](/at (.+?):\d+:\d+/);if(_0xb0a9f&&_0xb0a9f[0x1]&&!_0xb0a9f[0x1]['includes'](_0xa17c7[_0xd506c5(0x23e)]))return _0xb0a9f[0x1];}}}let _0x21626d=_0x3f7445[_0xd506c5(0x222)];while(_0x21626d){if(_0x21626d['file'])return _0x21626d[_0xd506c5(0x1c8)];if(_0x21626d[_0xd506c5(0x223)])try{const _0xfd13f3=stackTrace[_0xd506c5(0x204)](_0x21626d[_0xd506c5(0x223)]);if(_0xfd13f3[0x0]&&_0xfd13f3[0x0][_0xd506c5(0x242)]){const _0x4302a0=_0xfd13f3[0x0]['getFileName']();if(_0x4302a0&&!_0x4302a0[_0xd506c5(0x257)](_0xa17c7[_0xd506c5(0x23e)]))return _0x4302a0;}}catch(_0x51a1ab){}_0x21626d=_0x21626d[_0xd506c5(0x222)];}try{const _0x51c13a=_0xa17c7[_0xd506c5(0x202)](require,_0xa17c7[_0xd506c5(0x249)]);if(_0x51c13a&&_0x51c13a['getState']){const _0x194cdc=_0x51c13a[_0xd506c5(0x233)]();if(_0x194cdc&&_0x194cdc[_0xd506c5(0x22e)])return _0x194cdc[_0xd506c5(0x22e)];}}catch(_0x171f09){logger['debug']('[jestUtils]\x20expect.getState()\x20not\x20available:\x20'+util['format'](_0x171f09));}return null;}[a91_0x266f6e(0x1b2)](_0xbb3572){const _0x3f8804=a91_0x266f6e,_0x33e968={};_0x33e968[_0x3f8804(0x1c5)]='[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier',_0x33e968[_0x3f8804(0x25e)]=function(_0x5c0d60,_0x45fd3a){return _0x5c0d60!==_0x45fd3a;},_0x33e968[_0x3f8804(0x22d)]='ROOT_DESCRIBE_BLOCK',_0x33e968['DwMTl']=_0x3f8804(0x1f4),_0x33e968[_0x3f8804(0x1e3)]=_0x3f8804(0x245),_0x33e968[_0x3f8804(0x1fb)]=_0x3f8804(0x1dc);const _0x5af3de=_0x33e968;try{if(!_0xbb3572)return logger[_0x3f8804(0x215)](_0x5af3de[_0x3f8804(0x1c5)]),null;const _0x3a9c44=_0xbb3572[_0x3f8804(0x1c4)]||_0xbb3572['name']||_0xbb3572[_0x3f8804(0x262)]||_0xbb3572[_0x3f8804(0x226)];let _0x5c2fe8=_0x3a9c44;if(_0xbb3572[_0x3f8804(0x222)]&&_0xbb3572[_0x3f8804(0x222)][_0x3f8804(0x1e6)]&&_0x5af3de[_0x3f8804(0x25e)](_0xbb3572['parent'][_0x3f8804(0x1e6)],_0x5af3de[_0x3f8804(0x22d)])){const _0x2741bd=_0xbb3572['name']||_0xbb3572[_0x3f8804(0x262)];_0x2741bd&&(_0x5c2fe8=_0xbb3572[_0x3f8804(0x222)][_0x3f8804(0x1e6)]+'\x20'+_0x2741bd);}let _0x3a9ec5=_0xbb3572[_0x3f8804(0x22e)];if(!_0x3a9ec5&&_0xbb3572[_0x3f8804(0x223)]){try{const _0x1d3d18=stackTrace[_0x3f8804(0x204)](_0xbb3572[_0x3f8804(0x223)]);if(_0x1d3d18[0x0]&&_0x1d3d18[0x0][_0x3f8804(0x242)]){const _0x52f77e=_0x1d3d18[0x0]['getFileName']();_0x52f77e&&!_0x52f77e[_0x3f8804(0x257)](_0x5af3de[_0x3f8804(0x206)])&&(_0x3a9ec5=_0x52f77e);}}catch(_0x581110){logger[_0x3f8804(0x1fd)]('[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util[_0x3f8804(0x24f)](_0x581110));}if(!_0x3a9ec5&&_0xbb3572['asyncError'][_0x3f8804(0x247)]){const _0x22dc6b=_0xbb3572[_0x3f8804(0x223)][_0x3f8804(0x247)][_0x3f8804(0x263)]('\x0a');for(const _0x254ed2 of _0x22dc6b){const _0x31f410=_0x254ed2['match'](/at (.+?):\d+:\d+/);if(_0x31f410&&_0x31f410[0x1]&&!_0x31f410[0x1][_0x3f8804(0x257)](_0x5af3de[_0x3f8804(0x206)])){_0x3a9ec5=_0x31f410[0x1];break;}}}}const _0x35b41e=_0x3a9ec5+'::'+_0x5c2fe8,_0x4172ff=crypto[_0x3f8804(0x216)](_0x5af3de[_0x3f8804(0x1e3)])[_0x3f8804(0x231)](_0x35b41e)[_0x3f8804(0x205)](_0x5af3de[_0x3f8804(0x1fb)])[_0x3f8804(0x20a)](0x0,0x8),_0x523289=process[_0x3f8804(0x1e9)]+_0x3f8804(0x23f)+_0x4172ff;return logger[_0x3f8804(0x1fd)](_0x3f8804(0x1d7)+_0x523289+_0x3f8804(0x1c1)+_0x35b41e),_0x523289;}catch(_0x501580){return logger[_0x3f8804(0x215)](_0x3f8804(0x210)+util['format'](_0x501580)),null;}}['createIdentifierFromJestTest'](_0x1a9f1e){const _0x368cb3=a91_0x266f6e,_0x8e8513={};_0x8e8513[_0x368cb3(0x1ce)]='[jestUtils]\x20No\x20test\x20object\x20provided';const _0x446222=_0x8e8513;if(!_0x1a9f1e)return logger['debug'](_0x446222[_0x368cb3(0x1ce)]),null;const _0x160d3e=this[_0x368cb3(0x1c0)](_0x1a9f1e),_0x4eb692={};_0x4eb692[_0x368cb3(0x1e6)]=_0x1a9f1e['name']||_0x1a9f1e[_0x368cb3(0x262)],_0x4eb692['parent']=_0x1a9f1e[_0x368cb3(0x222)],_0x4eb692[_0x368cb3(0x22e)]=_0x160d3e,_0x4eb692[_0x368cb3(0x223)]=_0x1a9f1e[_0x368cb3(0x223)];const _0x522620=_0x4eb692;return this['createJestTestIdentifier'](_0x522620);}[a91_0x266f6e(0x243)](_0x23b334){const _0x350d52=a91_0x266f6e,_0x4ef3a7={};_0x4ef3a7[_0x350d52(0x1f0)]='[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation';const _0x337220=_0x4ef3a7;if(!_0x23b334)return logger[_0x350d52(0x1fd)](_0x337220['InFLU']),null;if(_0x23b334['testIdentifier'])return logger[_0x350d52(0x1fd)]('[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20'+_0x23b334[_0x350d52(0x265)]),_0x23b334[_0x350d52(0x265)];return this['createJestTestIdentifier'](_0x23b334);}}function a91_0x4272(){const _0x268a90=['AFTER_EACH',',\x20testRunId:\x20','1568387PfBzRD','inspect','lOUxZ','86895NQZPHt','LIvph','reverse','title','split','call','testIdentifier','lvhZh','createHookData','../../../helpers/test-observability/error-handler.js','createJestTestIdentifier','failure_reason_expanded','uuid','test','YfkAg','Rxfym','getTestIdentifier','result','toString','wcEdI','qoJtH','kMbIG','match','__jestCurrentTestIdentifier','extractTestFilePath','\x20from\x20compositeKey:\x20','OEqhS','HookRunFinished','fullName','MtpIr','getHierarchy','6974634SEtHSo','file','Creating\x20hook\x20data\x20for\x20eventType:\x20','Unknown\x20Test','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','hooks','koINY','26elXxfV','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','pending','TestRunFinished','RDNDA','length','currentTest','toUpperCase','[jestUtils]\x20Created\x20identifier:\x20','ROOT_DESCRIBE_BLOCK','912MUyDiQ','startedAt','Oqkao','hex','duration','plWtb','mlxSy','../TestInfo.js','BEFORE_EACH','type','jxRxk','failure_backtrace','IWMnw','name','find','root','pid','testAnalyticsId','CnisA','failure_data',',\x20testIdentifier:\x20','now','beforeEach','InFLU','path','createTestFrameworkData','bGVWp','jest-circus','../../../helpers/logger.js','HookRunStarted','UOspH','started_at','OoKcM','crypto','paFUq','tnVAN','debug','rZLDr','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','XLkTT','getName','SIlPi','createIdentifierFromJestTest','parse','digest','DwMTl','KFdRP','getRootParentFile','backtrace','substring','getHookRunEventData','javascript','HJBzj','expect','stack-trace','[jestUtils]\x20Error\x20creating\x20identifier:\x20','errorsDetailed','skipped','push','_gitConfigPath','error','createHash','VQlkB','__workerDetails','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','failed','MEsKv','failure','Exception\x20in\x20getHookRunEventData:\x20','fOcIb','hook','uDPFp','ajKDj','parent','asyncError','apply','toISOString','displayName','\x22\x20hook\x20for\x20\x22','jest','rwZBd','TuIVV','RwtIu','Exception\x20in\x20createHookData:\x20','rScXB','testPath','expanded','vlgse','update','err','getState','exports','clearHooksMap','20382890qMgNIy','../../../helpers/helper.js','fQZEV','relative','AeDij','browserstack-node-agent/src/bin/jest','winstonLogger','7460152rugbSK','qRckS',':jest-','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','mOeWA','getFileName','recreateIdentifierFromTestInfo','AFTER_ALL','md5','5ztTWss','stack','oRXNb','WUgBQ','isJestInternalHook','unknown','retryOf','failure_type','wklrH','format','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','../../../helpers/test-observability/utils','4730788INPJxO','TestRunSkipped','configureGit','passed','hivWb','includes','294774SLUIZj','oRUxI'];a91_0x4272=function(){return _0x268a90;};return a91_0x4272();}module[a91_0x266f6e(0x234)]=o11yClassErrorHandler(JestUtils,[a91_0x266f6e(0x254),a91_0x266f6e(0x1c6),'getRootParentFile',a91_0x266f6e(0x201),a91_0x266f6e(0x24a),a91_0x266f6e(0x1b8),a91_0x266f6e(0x1f2),'createHookData','getHookRunEventData',a91_0x266f6e(0x235),'extractTestFilePath',a91_0x266f6e(0x1b2),a91_0x266f6e(0x203),a91_0x266f6e(0x243)]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a92_0x3cfc73=a92_0x26ec;(function(_0x33fe23,_0x321a8e){const _0x5480a5=a92_0x26ec,_0x51d560=_0x33fe23();while(!![]){try{const _0x45c92a=-parseInt(_0x5480a5(0x198))/0x1*(parseInt(_0x5480a5(0x190))/0x2)+-parseInt(_0x5480a5(0x18e))/0x3+parseInt(_0x5480a5(0x1a2))/0x4+-parseInt(_0x5480a5(0x19a))/0x5*(parseInt(_0x5480a5(0x1a0))/0x6)+parseInt(_0x5480a5(0x186))/0x7*(-parseInt(_0x5480a5(0x199))/0x8)+parseInt(_0x5480a5(0x1ab))/0x9*(parseInt(_0x5480a5(0x194))/0xa)+parseInt(_0x5480a5(0x18b))/0xb*(parseInt(_0x5480a5(0x182))/0xc);if(_0x45c92a===_0x321a8e)break;else _0x51d560['push'](_0x51d560['shift']());}catch(_0x5a20ad){_0x51d560['push'](_0x51d560['shift']());}}}(a92_0x1e43,0x95952));function a92_0x26ec(_0x2dcbf2,_0x3f807b){const _0x1e4320=a92_0x1e43();return a92_0x26ec=function(_0x26ec16,_0x5d3a50){_0x26ec16=_0x26ec16-0x176;let _0x257d7d=_0x1e4320[_0x26ec16];return _0x257d7d;},a92_0x26ec(_0x2dcbf2,_0x3f807b);}const fs=require('fs'),path=require(a92_0x3cfc73(0x19f)),{default:BrowserStackSetup}=require(a92_0x3cfc73(0x18d)),helper=require('../../helpers/helper'),PerformanceTester=require('../../helpers/performance/performance-tester'),PerformanceEvents=require('../../helpers/performance/constants')[a92_0x3cfc73(0x17b)],utilities=require(a92_0x3cfc73(0x18a)),{parallelVanillaRun}=require(a92_0x3cfc73(0x18f)),TestHubHandler=require('../../helpers/testhub/testhubHandler');function a92_0x1e43(){const _0x129b1a=['args','proxySettings','parallelsPerPlatform','modifyBrowserStackCaps','EVENTS','\x20doesn\x27t\x20exist','uAfjJ','hiriA','IscrN','GmQxt','File\x20path\x20is\x20required','60rTAsQI','then','vanilla','configuration','28OvWHkJ','getPlatformName','initialize','launchBuild','../../helpers/utilities','4731903XvtXNs','length','../../helpers/BrowserStackSetup','3468435ubezqt','../test-runner','130oaEiZA','platforms','finally','file','11316430SVFaSV','AUEUZ','SDK_SETUP','join','8033yeDLgl','668344IDrYgj','170dKzHWd','start','useW3C','forEach','finalExecution','path','158226edAuzY','push','957032gvUZgo','modifyBrowserStackW3CCaps','config','existsSync','uwnhz','cwd','LTBxb','QXAjA','assign','9UEyvcA','getHubUrl','SDK_CLEANUP'];a92_0x1e43=function(){return _0x129b1a;};return a92_0x1e43();}async function run(_0x1632d0,_0x13fae9,_0xad4d12){const _0xca8a72=a92_0x3cfc73,_0x1fabd8={'uAfjJ':_0xca8a72(0x184),'hiriA':function(_0x11fd3d,_0x4d9a72){return _0x11fd3d(_0x4d9a72);},'IscrN':_0xca8a72(0x181),'uwnhz':function(_0x6d85d3,_0x4c5131){return _0x6d85d3(_0x4c5131);},'LTBxb':'Config\x20yml\x20is\x20required','QXAjA':function(_0x37bb04,_0x234043){return _0x37bb04>_0x234043;},'AUEUZ':function(_0x1dfd5e,_0x402c48){return _0x1dfd5e*_0x402c48;},'GmQxt':function(_0x417bb2,_0x5468a8,_0x45bbb1){return _0x417bb2(_0x5468a8,_0x45bbb1);}};await _0xad4d12[_0xca8a72(0x188)](_0x1632d0),await helper['handleApp'](_0xad4d12[_0xca8a72(0x1a4)]);const _0x3cc651=[];if(helper['isUndefined'](_0x1632d0['_'][0x1]))throw _0x1fabd8[_0xca8a72(0x17e)](Error,_0x1fabd8[_0xca8a72(0x17f)]);const _0x430adb=path[_0xca8a72(0x197)](process[_0xca8a72(0x1a7)](),_0x1632d0['_'][0x1]);if(!fs[_0xca8a72(0x1a5)](_0x430adb))throw _0x1fabd8['hiriA'](Error,'File\x20'+_0x1632d0['_'][0x1]+_0xca8a72(0x17c));if(!_0xad4d12[_0xca8a72(0x1a4)])throw _0x1fabd8[_0xca8a72(0x1a6)](Error,_0x1fabd8[_0xca8a72(0x1a8)]);const _0x72d82d=helper[_0xca8a72(0x19c)](_0xad4d12[_0xca8a72(0x1a4)]);_0xad4d12[_0xca8a72(0x1a4)][_0xca8a72(0x191)]&&_0x1fabd8['QXAjA'](_0xad4d12[_0xca8a72(0x1a4)][_0xca8a72(0x191)]['length'],0x0)&&_0xad4d12[_0xca8a72(0x1a4)][_0xca8a72(0x191)][_0xca8a72(0x19d)]((_0x2cd902,_0x533058)=>{const _0x31c506=_0xca8a72;_0x72d82d?_0x3cc651[_0x31c506(0x1a1)](helper[_0x31c506(0x1a3)](_0xad4d12[_0x31c506(0x1a4)],_0x1fabd8[_0x31c506(0x17d)],_0x533058)):_0x3cc651['push'](helper[_0x31c506(0x17a)](_0xad4d12['config'],_0x1fabd8[_0x31c506(0x17d)],_0x533058));});let _0x4dce8a,_0x413fe8;const _0x2729df=[];if(_0x1fabd8[_0xca8a72(0x1a9)](_0x3cc651[_0xca8a72(0x18c)],0x0))_0x3cc651[_0xca8a72(0x19d)]((_0xab32a5,_0x41b0df)=>{const _0x2c2b78=_0xca8a72,_0x514f3b={};_0x514f3b['index']=_0x41b0df,_0x4dce8a={'server':helper['getHubUrl'](_0xad4d12[_0x2c2b78(0x1a4)]),'proxySettings':_0xad4d12[_0x2c2b78(0x1a4)][_0x2c2b78(0x178)],'platform':helper[_0x2c2b78(0x187)](_0xab32a5),'platformCaps':Object[_0x2c2b78(0x1aa)](_0x514f3b,_0xad4d12[_0x2c2b78(0x1a4)][_0x2c2b78(0x191)][_0x41b0df])};const _0x1955c1={'capability':_0xab32a5,..._0x4dce8a};_0x1955c1[_0x2c2b78(0x193)]=_0x430adb,_0x1955c1['args']=_0x13fae9;const _0x534cb1={};_0x534cb1[_0x2c2b78(0x185)]=_0x1955c1,_0x413fe8=_0x534cb1,_0x2729df[_0x2c2b78(0x1a1)](_0x413fe8);});else{let _0x196cef;_0x72d82d?_0x196cef=helper['modifyBrowserStackW3CCaps'](_0xad4d12[_0xca8a72(0x1a4)],_0x1fabd8['uAfjJ'],0x0):_0x196cef=helper['modifyBrowserStackCaps'](_0xad4d12[_0xca8a72(0x1a4)],_0x1fabd8[_0xca8a72(0x17d)],0x0);_0x4dce8a={'server':helper[_0xca8a72(0x1ac)](_0xad4d12[_0xca8a72(0x1a4)]),'proxySettings':_0xad4d12['config'][_0xca8a72(0x178)]};const _0x1b0c61={'capability':_0x196cef,..._0x4dce8a};_0x1b0c61[_0xca8a72(0x193)]=_0x430adb,_0x1b0c61[_0xca8a72(0x177)]=_0x13fae9;const _0x47158d={};_0x47158d['configuration']=_0x1b0c61,_0x413fe8=_0x47158d,_0x2729df['push'](_0x413fe8);}const _0x41461a=await TestHubHandler[_0xca8a72(0x189)](_0x1fabd8[_0xca8a72(0x17d)],_0xad4d12),_0x98306d=_0x1fabd8[_0xca8a72(0x195)](_0xad4d12[_0xca8a72(0x1a4)][_0xca8a72(0x191)]['length']||0x1,_0xad4d12[_0xca8a72(0x1a4)][_0xca8a72(0x179)]||0x1);PerformanceTester['end'](PerformanceEvents[_0xca8a72(0x196)]),_0x1fabd8[_0xca8a72(0x180)](parallelVanillaRun,_0x2729df,_0x98306d)[_0xca8a72(0x183)](_0x16bef1=>{})[_0xca8a72(0x192)](async()=>{const _0x2f69cf=_0xca8a72;PerformanceTester[_0x2f69cf(0x19b)](PerformanceEvents[_0x2f69cf(0x176)]),await utilities[_0x2f69cf(0x19e)](_0xad4d12);});}module['exports']=run;
|
package/src/browserStackSdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x38801a=a93_0x2f02;(function(_0x4006f1,_0x526864){const _0x7ec1d8=a93_0x2f02,_0x31b46d=_0x4006f1();while(!![]){try{const _0x32052d=parseInt(_0x7ec1d8(0x1b7))/0x1*(parseInt(_0x7ec1d8(0x1bf))/0x2)+parseInt(_0x7ec1d8(0x1bb))/0x3+-parseInt(_0x7ec1d8(0x1ce))/0x4+parseInt(_0x7ec1d8(0x1c5))/0x5+-parseInt(_0x7ec1d8(0x1c8))/0x6+parseInt(_0x7ec1d8(0x1cb))/0x7*(parseInt(_0x7ec1d8(0x1b8))/0x8)+-parseInt(_0x7ec1d8(0x1c7))/0x9*(parseInt(_0x7ec1d8(0x1bc))/0xa);if(_0x32052d===_0x526864)break;else _0x31b46d['push'](_0x31b46d['shift']());}catch(_0x23e885){_0x31b46d['push'](_0x31b46d['shift']());}}}(a93_0x21fa,0x619bb));function a93_0x21fa(){const _0x25d50b=['setTestMetadata','platform_version','ixFFg','1LezCHX','106000IlckzD','__platformCaps','browserName','1937061blhRNx','9399080jvWXiA','fqcpW','dNrOd','568354npSmGs','platformName','Vdxhc','jibTD','exports','browserVersion','3127090shPgFO','yiIVe','9VNtkLp','854262SBBSTC','platformVersion','fNWEc','343GAfnVi','getCurrentPlatform','browser_version','2889776tYgdrZ','BkoUb','customVariables','hkhvb','HWUeq','eaXNG','ZPkml'];a93_0x21fa=function(){return _0x25d50b;};return a93_0x21fa();}const TestMetadata=require('./helpers/metadata');class BrowserStackSdk{static[a93_0x38801a(0x1cc)](){const _0x5280f5=a93_0x38801a,_0x3daa7a={};_0x3daa7a['rWMrq']='os_version',_0x3daa7a[_0x5280f5(0x1be)]='osVersion',_0x3daa7a[_0x5280f5(0x1b6)]='browser',_0x3daa7a[_0x5280f5(0x1ca)]=_0x5280f5(0x1ba),_0x3daa7a[_0x5280f5(0x1c1)]=_0x5280f5(0x1cd),_0x3daa7a[_0x5280f5(0x1d4)]=_0x5280f5(0x1c4),_0x3daa7a['eaXNG']='device',_0x3daa7a[_0x5280f5(0x1bd)]='deviceName',_0x3daa7a['BkoUb']='platform',_0x3daa7a[_0x5280f5(0x1c2)]=_0x5280f5(0x1c0),_0x3daa7a[_0x5280f5(0x1d1)]=_0x5280f5(0x1b5),_0x3daa7a['HWUeq']=_0x5280f5(0x1c9),_0x3daa7a[_0x5280f5(0x1c6)]=_0x5280f5(0x1d0);const _0x45e4d2=_0x3daa7a,_0x1ba4f4={};if(global[_0x5280f5(0x1b9)]){const _0x134f7b=global[_0x5280f5(0x1b9)],_0x11fbb8=_0x134f7b[_0x45e4d2['rWMrq']]||_0x134f7b[_0x45e4d2['dNrOd']],_0x12fb94=_0x134f7b[_0x45e4d2['ixFFg']]||_0x134f7b[_0x45e4d2['fNWEc']],_0x140b29=_0x134f7b[_0x45e4d2[_0x5280f5(0x1c1)]]||_0x134f7b[_0x45e4d2[_0x5280f5(0x1d4)]],_0x348177=_0x134f7b[_0x45e4d2[_0x5280f5(0x1d3)]]||_0x134f7b[_0x45e4d2[_0x5280f5(0x1bd)]],_0x3e2a62=_0x134f7b[_0x45e4d2[_0x5280f5(0x1cf)]]||_0x134f7b[_0x45e4d2[_0x5280f5(0x1c2)]],_0x415df3=_0x134f7b[_0x45e4d2[_0x5280f5(0x1d1)]]||_0x134f7b[_0x45e4d2[_0x5280f5(0x1d2)]];_0x134f7b['os']&&(_0x1ba4f4['os']=_0x134f7b['os']),_0x11fbb8&&(_0x1ba4f4[_0x45e4d2[_0x5280f5(0x1be)]]=_0x11fbb8),_0x12fb94&&(_0x1ba4f4[_0x45e4d2[_0x5280f5(0x1ca)]]=_0x12fb94),_0x140b29&&(_0x1ba4f4[_0x45e4d2[_0x5280f5(0x1d4)]]=_0x140b29),_0x348177&&(_0x1ba4f4[_0x45e4d2['fqcpW']]=_0x348177),_0x3e2a62&&(_0x1ba4f4[_0x45e4d2[_0x5280f5(0x1c2)]]=_0x3e2a62),_0x415df3&&(_0x1ba4f4[_0x45e4d2[_0x5280f5(0x1d2)]]=_0x415df3),_0x134f7b[_0x45e4d2[_0x5280f5(0x1c6)]]&&(_0x1ba4f4[_0x45e4d2[_0x5280f5(0x1c6)]]=_0x134f7b[_0x45e4d2['yiIVe']]);}return _0x1ba4f4;}static[a93_0x38801a(0x1b4)](_0x2a33c2={}){TestMetadata['set'](_0x2a33c2);}}function a93_0x2f02(_0x226f60,_0x42df14){const _0x21fa50=a93_0x21fa();return a93_0x2f02=function(_0x2f02fb,_0x162bb0){_0x2f02fb=_0x2f02fb-0x1b4;let _0x313545=_0x21fa50[_0x2f02fb];return _0x313545;},a93_0x2f02(_0x226f60,_0x42df14);}module[a93_0x38801a(0x1c3)]=BrowserStackSdk;
|