browserstack-node-sdk 1.49.4 → 1.49.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a85_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
|
+
function a85_0x6913(){const _0x2309ea=['KEY_SESSION_ID','443509BwdQHR','bIwXL','pdJiE','KEY_TEST_FRAMEWORK_NAME','CUCUMBER','values','POST','getState','onPageCreate','matchHookRegex','testInfo','\x20hookState:\x20','toString','../framework/testFramework.js','../TestInfo.js','base64','version','1748430bEmaio','../state/hookState.js','debug','./baseModule','4629250xrUfCU','retry','getBuildHashedId','name','onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','Error\x20in\x20sending\x20CBTSession:\x20','testhubConfig','MODULE_NAME','upadB','split','15DpGIkE','234996RfXiQl','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20','QvbhN','153352mjFfWH','testSessionEvent','registerObserver','../utils/jest-utils.js','262436UsFBtq','O11yHashedID','getContext','stringify','frameworkVersion','KEY_HUB_URL','instance','getModuleName','KEY_PLATFORM_INDEX','getLTSSessionId','TestHubModule','testUuid','getTestIdentifierFromTestInfo','../../../helpers/classLogger.js','getJwt','7zNWGYR','getRef','util','BROWSERSTACK_TESTHUB_UUID','hookState','getCurrentTestState','../browserstackCLI.js','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','testFrameworkEvent','JEST','testFrameworkState','10VFDRlU','BROWSERSTACK_TESTHUB_JWT','logger','KEY_TEST_DEFERRED','CztuN','getTestDetails','8aAPncq','LLrhL','../../../helpers/test-observability/constants.js','sendTestFrameworkEvent','from','372fDymsR','ENV_VAR','lLXwg','getThreadId','rPKxz','format','recreateIdentifierFromTestInfo','./playwrightDriverModule.js','Pyflw','../state/automationFrameworkState.js',',\x20test_identifier:\x20','KEY_CAPABILITIES','TEST','dalhE','test_identifier','bind','1361484SqdIky','isLTSSession','testFrameworkData','VmaxP','../../../helpers/helper.js','forEach','getInstance','onAllTestEvents','error','../framework/automationFramework.js','getTestUUID'];a85_0x6913=function(){return _0x2309ea;};return a85_0x6913();}const a85_0xc8f7b1=a85_0x1dd0;(function(_0x37be96,_0x544544){const _0x2c5471=a85_0x1dd0,_0xf257c6=_0x37be96();while(!![]){try{const _0xf91ceb=parseInt(_0x2c5471(0x172))/0x1+-parseInt(_0x2c5471(0x190))/0x2*(parseInt(_0x2c5471(0x16e))/0x3)+parseInt(_0x2c5471(0x176))/0x4*(-parseInt(_0x2c5471(0x16d))/0x5)+parseInt(_0x2c5471(0x142))/0x6*(-parseInt(_0x2c5471(0x185))/0x7)+-parseInt(_0x2c5471(0x196))/0x8*(-parseInt(_0x2c5471(0x15f))/0x9)+-parseInt(_0x2c5471(0x163))/0xa+-parseInt(_0x2c5471(0x14e))/0xb*(-parseInt(_0x2c5471(0x132))/0xc);if(_0xf91ceb===_0x544544)break;else _0xf257c6['push'](_0xf257c6['shift']());}catch(_0x42170b){_0xf257c6['push'](_0xf257c6['shift']());}}}(a85_0x6913,0x4ded1));function a85_0x1dd0(_0x300e48,_0x4fa0b8){const _0x6913ab=a85_0x6913();return a85_0x1dd0=function(_0x1dd017,_0x3f2d11){_0x1dd017=_0x1dd017-0x12e;let _0xc96cc1=_0x6913ab[_0x1dd017];return _0xc96cc1;},a85_0x1dd0(_0x300e48,_0x4fa0b8);}const util=require(a85_0xc8f7b1(0x187)),BaseModule=require(a85_0xc8f7b1(0x162)),{createClassLogger}=require(a85_0xc8f7b1(0x183)),AutomationFramework=require(a85_0xc8f7b1(0x14b)),AutomationFrameworkState=require(a85_0xc8f7b1(0x13b)),HookState=require(a85_0xc8f7b1(0x160)),TestFramework=require(a85_0xc8f7b1(0x15b)),TestFrameworkState=require('../state/testFrameworkState.js'),PlaywrightDriverModule=require(a85_0xc8f7b1(0x139)),TestFrameworkConstants=require('../framework/constants/testFrameworkConstants.js'),GrpcClient=require('../grpcClient.js'),CLIUtils=require('../cliUtils.js'),TestInfo=require(a85_0xc8f7b1(0x15c)),testHubConstants=require('../../../helpers/testhub/constants'),{FRAMEWORKS}=require(a85_0xc8f7b1(0x12f)),helper=require(a85_0xc8f7b1(0x146)),LoadTestModule=require('./loadTestModule.js'),JestUtils=require(a85_0xc8f7b1(0x175)),BrowserstackCLI=require(a85_0xc8f7b1(0x18b)),{getPlaywrightProvider}=require(a85_0xc8f7b1(0x146));class TestHubModule extends BaseModule{[a85_0xc8f7b1(0x192)]=createClassLogger(a85_0xc8f7b1(0x180));constructor(_0x12c943,_0x350d01=null){const _0x27c577=a85_0xc8f7b1,_0x5804ed={};_0x5804ed[_0x27c577(0x13a)]='0|1|7|4|5|2|6|3|8',_0x5804ed[_0x27c577(0x150)]='TestHubModule';const _0x51b8cb=_0x5804ed,_0xbab89b=_0x51b8cb['Pyflw'][_0x27c577(0x16c)]('|');let _0x251495=0x0;while(!![]){switch(_0xbab89b[_0x251495++]){case'0':super(_0x350d01);continue;case'1':this[_0x27c577(0x166)]=_0x51b8cb[_0x27c577(0x150)];continue;case'2':Object[_0x27c577(0x153)](TestFrameworkState)[_0x27c577(0x147)](_0xcb05fc=>{const _0x2fc672=_0x27c577;Object[_0x2fc672(0x153)](HookState)[_0x2fc672(0x147)](_0x44565a=>{const _0x46f26b=_0x2fc672;TestFramework[_0x46f26b(0x174)](_0xcb05fc,_0x44565a,this['onAllTestEvents'][_0x46f26b(0x141)](this));});});continue;case'3':process['env'][testHubConstants[_0x27c577(0x133)][_0x27c577(0x188)]]=this[_0x27c577(0x169)]['getBuildHashedId']();continue;case'4':this['jestUtils']=new JestUtils();continue;case'5':AutomationFramework['registerObserver'](AutomationFrameworkState['CREATE'],HookState[_0x27c577(0x154)],this[_0x27c577(0x156)]['bind'](this));continue;case'6':process['env'][testHubConstants[_0x27c577(0x133)][_0x27c577(0x191)]]=this['testhubConfig'][_0x27c577(0x184)]();continue;case'7':this[_0x27c577(0x169)]=_0x12c943;continue;case'8':BrowserstackCLI[_0x27c577(0x177)]=this[_0x27c577(0x169)][_0x27c577(0x165)]();continue;}break;}}[a85_0xc8f7b1(0x17d)](){const _0x5eb666=a85_0xc8f7b1;return TestHubModule[_0x5eb666(0x16a)];}[a85_0xc8f7b1(0x149)](_0x440bdf){const _0x56ae12=a85_0xc8f7b1,_0x13d92f={};_0x13d92f[_0x56ae12(0x145)]=function(_0x195014,_0x15e486){return _0x195014===_0x15e486;};const _0x4ceda5=_0x13d92f,_0x1fa3f7=_0x440bdf[_0x56ae12(0x17c)],_0x534082=_0x1fa3f7[_0x56ae12(0x18a)]();(_0x4ceda5[_0x56ae12(0x145)](_0x534082,TestFrameworkState[_0x56ae12(0x13e)])||CLIUtils[_0x56ae12(0x157)](_0x534082[_0x56ae12(0x15a)]()[_0x56ae12(0x16c)]('.')[0x1]))&&this[_0x56ae12(0x130)](_0x440bdf);}async[a85_0xc8f7b1(0x130)](_0x348b08){const _0x44f152=a85_0xc8f7b1,_0x37f742={};_0x37f742[_0x44f152(0x194)]=function(_0x5952c9,_0x5a02e3){return _0x5952c9===_0x5a02e3;},_0x37f742[_0x44f152(0x14f)]='sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event';const _0x12821a=_0x37f742;try{const _0x340ab5=BrowserstackCLI[_0x44f152(0x148)]()['getTestFramework']()['createTestFrameworkEventPayload'](_0x348b08);if(!_0x340ab5||_0x12821a[_0x44f152(0x194)](Object['keys'](_0x340ab5)['length'],0x0)){this[_0x44f152(0x192)][_0x44f152(0x161)](_0x12821a[_0x44f152(0x14f)]);return;}const _0x49eef1=await GrpcClient['getInstance']()[_0x44f152(0x18d)](_0x340ab5);this['logger']['debug'](_0x44f152(0x170)+_0x340ab5[_0x44f152(0x18f)]+_0x44f152(0x159)+_0x340ab5[_0x44f152(0x189)]);}catch(_0x6c0596){this[_0x44f152(0x192)][_0x44f152(0x14a)]('Error\x20in\x20sendTestFrameworkEvent:\x20'+util[_0x44f152(0x137)](_0x6c0596));}}async[a85_0xc8f7b1(0x156)](_0x2ce6fb){const _0x21f065=a85_0xc8f7b1,_0x5ddcb1={'lLXwg':function(_0x432469,_0x547de5){return _0x432469===_0x547de5;},'QvbhN':_0x21f065(0x167),'dalhE':function(_0x4cfc05,_0x319f5e){return _0x4cfc05===_0x319f5e;},'LLrhL':function(_0x5636b1,_0x2854e2){return _0x5636b1(_0x2854e2);},'rPKxz':_0x21f065(0x15d),'upadB':function(_0x588c1b,_0x594d85){return _0x588c1b===_0x594d85;}};try{if(_0x2ce6fb['page']){const _0x2d1532=this['getTestId'](_0x2ce6fb);this['logger'][_0x21f065(0x161)](_0x21f065(0x16f)+_0x2d1532);if(this['testFrameworkData']&&_0x5ddcb1[_0x21f065(0x134)](this['testFrameworkData']['name'],FRAMEWORKS[_0x21f065(0x18e)])&&!_0x2ce6fb[_0x21f065(0x158)]){this['logger'][_0x21f065(0x161)](_0x5ddcb1[_0x21f065(0x171)]);return;}let _0x57b9ac,_0x5c79ef;if(this[_0x21f065(0x144)]&&_0x5ddcb1['lLXwg'](this['testFrameworkData']['name'],FRAMEWORKS[_0x21f065(0x152)]))_0x57b9ac=_0x2d1532,_0x5c79ef=TestInfo[_0x21f065(0x14c)](_0x57b9ac);else this[_0x21f065(0x144)]&&_0x5ddcb1['dalhE'](this[_0x21f065(0x144)]['name'],FRAMEWORKS[_0x21f065(0x18e)])?(_0x57b9ac=this['jestUtils'][_0x21f065(0x138)](_0x2ce6fb[_0x21f065(0x158)]),this['logger'][_0x21f065(0x161)]('onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20'+_0x57b9ac)):(_0x57b9ac=TestInfo[_0x21f065(0x182)](_0x2ce6fb[_0x21f065(0x158)],_0x2ce6fb[_0x21f065(0x158)][_0x21f065(0x164)]),_0x5c79ef=TestInfo[_0x21f065(0x14c)](_0x57b9ac));const _0x1f0572=TestInfo[_0x21f065(0x195)](_0x57b9ac),_0xa657f3=_0x2ce6fb['instance'],_0x28ccea=AutomationFramework['getState'](_0xa657f3,PlaywrightDriverModule[_0x21f065(0x17e)]),_0x3b77d2=_0x1f0572?.[TestFrameworkConstants[_0x21f065(0x151)]]||this[_0x21f065(0x144)]&&this[_0x21f065(0x144)][_0x21f065(0x166)],_0x3b2f57=_0x1f0572?.[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]||this[_0x21f065(0x144)]&&this[_0x21f065(0x144)][_0x21f065(0x15e)],_0x48f79f=TestFrameworkState[_0x21f065(0x13e)][_0x21f065(0x15a)]()[_0x21f065(0x16c)]('.')[0x1],_0xde6a1e=HookState[_0x21f065(0x154)][_0x21f065(0x15a)]()[_0x21f065(0x16c)]('.')[0x1],_0x46a24c=_0xa657f3[_0x21f065(0x178)](),_0x24e3e8=AutomationFramework[_0x21f065(0x155)](_0xa657f3,PlaywrightDriverModule[_0x21f065(0x17b)],''),_0xfc57e4={'provider':_0x5ddcb1[_0x21f065(0x12e)](getPlaywrightProvider,_0x24e3e8),'frameworkName':_0xa657f3['frameworkName'],'frameworkVersion':_0xa657f3[_0x21f065(0x17a)],'frameworkSessionId':LoadTestModule[_0x21f065(0x143)]()?LoadTestModule[_0x21f065(0x17f)]():AutomationFramework[_0x21f065(0x155)](_0xa657f3,PlaywrightDriverModule[_0x21f065(0x14d)],''),'ref':_0xa657f3[_0x21f065(0x186)](),'hubUrl':_0x24e3e8};let _0x253287=AutomationFramework[_0x21f065(0x155)](_0xa657f3,PlaywrightDriverModule[_0x21f065(0x13d)],{});_0x253287=Buffer[_0x21f065(0x131)](JSON[_0x21f065(0x179)](_0x253287))[_0x21f065(0x15a)](_0x5ddcb1[_0x21f065(0x136)]);const _0x4fb62f={'hash':_0x46a24c['getId'](),'threadId':_0x46a24c[_0x21f065(0x135)]()[_0x21f065(0x15a)](),'processId':_0x46a24c['getProcessId']()[_0x21f065(0x15a)]()},_0x18cf99={};_0x18cf99[_0x21f065(0x140)]=_0x57b9ac;const _0x286e99={};_0x286e99[_0x21f065(0x181)]=_0x5c79ef;const _0x5e172d={'platformIndex':_0x28ccea,'testFrameworkName':_0x3b77d2,'testFrameworkVersion':_0x3b2f57,'testFrameworkState':_0x48f79f,'testHookState':_0xde6a1e,...this[_0x21f065(0x144)]&&_0x5ddcb1[_0x21f065(0x13f)](this[_0x21f065(0x144)]['name'],FRAMEWORKS[_0x21f065(0x18e)])?_0x18cf99:_0x286e99,'automationSession':_0xfc57e4,'capabilities':_0x253287,'executionContext':_0x4fb62f};this[_0x21f065(0x192)]['debug']('onPageCreate\x20CBTSession\x20payload:\x20'+util[_0x21f065(0x137)](_0x5e172d));const _0x3a27f0=await GrpcClient[_0x21f065(0x148)]()[_0x21f065(0x173)](_0x5e172d);this[_0x21f065(0x192)][_0x21f065(0x161)](_0x21f065(0x18c)+_0x2d1532+(this['testFrameworkData']&&_0x5ddcb1[_0x21f065(0x16b)](this[_0x21f065(0x144)][_0x21f065(0x166)],FRAMEWORKS['JEST'])?_0x21f065(0x13c)+_0x57b9ac:''));}}catch(_0x39ad86){this[_0x21f065(0x192)][_0x21f065(0x14a)](_0x21f065(0x168)+util['format'](_0x39ad86));}}}TestHubModule[a85_0xc8f7b1(0x16a)]=a85_0xc8f7b1(0x180),TestHubModule[a85_0xc8f7b1(0x193)]='test_deferred',module['exports']=TestHubModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x1a5727=a86_0x1880;(function(_0x418c76,_0x3112bf){const _0x296fe7=a86_0x1880,_0x5cd189=_0x418c76();while(!![]){try{const _0x750a3c=-parseInt(_0x296fe7(0xc7))/0x1*(parseInt(_0x296fe7(0xd7))/0x2)+-parseInt(_0x296fe7(0xd8))/0x3*(parseInt(_0x296fe7(0xd1))/0x4)+parseInt(_0x296fe7(0xc6))/0x5+parseInt(_0x296fe7(0xc3))/0x6+-parseInt(_0x296fe7(0xd5))/0x7+-parseInt(_0x296fe7(0xd2))/0x8*(parseInt(_0x296fe7(0xc0))/0x9)+parseInt(_0x296fe7(0xd6))/0xa*(parseInt(_0x296fe7(0xc1))/0xb);if(_0x750a3c===_0x3112bf)break;else _0x5cd189['push'](_0x5cd189['shift']());}catch(_0x2f271c){_0x5cd189['push'](_0x5cd189['shift']());}}}(a86_0x2b4a,0x4cde3));const {PLAYWRIGHT}=require(a86_0x1a5727(0xdb)),a86_0x4786e0={};a86_0x4786e0[a86_0x1a5727(0xd3)]=0x0,a86_0x4786e0[a86_0x1a5727(0xcc)]=function(){const _0x56c9d2=a86_0x1a5727,_0x5200cf={};_0x5200cf[_0x56c9d2(0xcd)]=_0x56c9d2(0xda);const _0x3fb37f=_0x5200cf;return _0x3fb37f[_0x56c9d2(0xcd)];};const a86_0x5048f={};a86_0x5048f[a86_0x1a5727(0xd3)]=0x1,a86_0x5048f['toString']=function(){const _0x453a88=a86_0x1a5727,_0x54165c={};_0x54165c[_0x453a88(0xc4)]=_0x453a88(0xc2);const _0x49eb65=_0x54165c;return _0x49eb65[_0x453a88(0xc4)];};const a86_0x2a7631={};a86_0x2a7631[a86_0x1a5727(0xd3)]=0x2,a86_0x2a7631[a86_0x1a5727(0xcc)]=function(){const _0xcd097b=a86_0x1a5727,_0x36c5a2={};_0x36c5a2[_0xcd097b(0xce)]=_0xcd097b(0xd4);const _0x16642e=_0x36c5a2;return _0x16642e['TRDje'];};const a86_0x18b93f={};a86_0x18b93f[a86_0x1a5727(0xd3)]=0x3,a86_0x18b93f['toString']=function(){const _0x44fcad=a86_0x1a5727,_0x4a170c={};_0x4a170c[_0x44fcad(0xd9)]='AutomationFrameworkState.EXECUTE';const _0x5960d9=_0x4a170c;return _0x5960d9[_0x44fcad(0xd9)];};const a86_0x5cf6e0={};function a86_0x1880(_0x5df9f9,_0x29e19f){const _0x2b4ad8=a86_0x2b4a();return a86_0x1880=function(_0x188049,_0x1d18b1){_0x188049=_0x188049-0xc0;let _0x393e3b=_0x2b4ad8[_0x188049];return _0x393e3b;},a86_0x1880(_0x5df9f9,_0x29e19f);}a86_0x5cf6e0[a86_0x1a5727(0xd3)]=0x4,a86_0x5cf6e0[a86_0x1a5727(0xcc)]=function(){const _0x5c4db3=a86_0x1a5727,_0x20e1e6={};_0x20e1e6[_0x5c4db3(0xc9)]=_0x5c4db3(0xc5);const _0x21b984=_0x20e1e6;return _0x21b984['gnlLe'];};const a86_0x3b0ed4={};a86_0x3b0ed4[a86_0x1a5727(0xd3)]=0x5,a86_0x3b0ed4['toString']=function(){const _0x3cf371=a86_0x1a5727,_0x58e644={};_0x58e644[_0x3cf371(0xcf)]=_0x3cf371(0xc8);const _0x44704d=_0x58e644;return _0x44704d[_0x3cf371(0xcf)];};const AutomationFrameworkState=Object['freeze']({'NONE':a86_0x4786e0,'CREATE':a86_0x5048f,'PLAYWRIGHT_DISPATCH':a86_0x2a7631,'EXECUTE':a86_0x18b93f,'IDLE':a86_0x5cf6e0,'QUIT':a86_0x3b0ed4,'fromValue'(_0x4154f0){const _0x41bc3d=a86_0x1a5727;return Object[_0x41bc3d(0xca)](AutomationFrameworkState)[_0x41bc3d(0xd0)](_0x317342=>_0x317342[_0x41bc3d(0xd3)]===_0x4154f0);}});function a86_0x2b4a(){const _0x3535e8=['AutomationFrameworkState.CREATE','436554NBoNpI','BKfNT','AutomationFrameworkState.IDLE','2048750gQIJrO','334451FmcTpe','AutomationFrameworkState.QUIT','gnlLe','values','exports','toString','CHwVQ','TRDje','wXtvO','find','8TkbYVu','472nGcDKY','value','AutomationFrameworkState.PLAYWRIGHT_DISPATCH','3147452MIAUWv','540zKWCal','2ClrCuc','319446KHzVru','BZqTn','AutomationFrameworkState.NONE','../../utils/constants','45963iPZlqd','230329sAOUdx'];a86_0x2b4a=function(){return _0x3535e8;};return a86_0x2b4a();}module[a86_0x1a5727(0xcb)]=AutomationFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a87_0x569b5b=a87_0x21d7;(function(_0x321ebd,_0xf171c7){const _0x6384e=a87_0x21d7,_0xe6cff2=_0x321ebd();while(!![]){try{const _0x126e45=parseInt(_0x6384e(0x1bb))/0x1*(-parseInt(_0x6384e(0x1be))/0x2)+-parseInt(_0x6384e(0x1c8))/0x3*(-parseInt(_0x6384e(0x1c2))/0x4)+-parseInt(_0x6384e(0x1bf))/0x5*(-parseInt(_0x6384e(0x1c7))/0x6)+parseInt(_0x6384e(0x1cc))/0x7+parseInt(_0x6384e(0x1ca))/0x8*(-parseInt(_0x6384e(0x1c6))/0x9)+parseInt(_0x6384e(0x1c9))/0xa+-parseInt(_0x6384e(0x1bc))/0xb*(parseInt(_0x6384e(0x1c3))/0xc);if(_0x126e45===_0xf171c7)break;else _0xe6cff2['push'](_0xe6cff2['shift']());}catch(_0x1b4233){_0xe6cff2['push'](_0xe6cff2['shift']());}}}(a87_0x379d,0x7202e));const a87_0x58b698={};a87_0x58b698[a87_0x569b5b(0x1bd)]=0x0,a87_0x58b698[a87_0x569b5b(0x1c4)]=function(){const _0x4ff86b=a87_0x569b5b,_0xb42927={};_0xb42927[_0x4ff86b(0x1c1)]=_0x4ff86b(0x1cd);const _0x1502e7=_0xb42927;return _0x1502e7[_0x4ff86b(0x1c1)];};function a87_0x21d7(_0x197b7a,_0x439908){const _0x379de8=a87_0x379d();return a87_0x21d7=function(_0x21d7cc,_0x2148e3){_0x21d7cc=_0x21d7cc-0x1bb;let _0x23c930=_0x379de8[_0x21d7cc];return _0x23c930;},a87_0x21d7(_0x197b7a,_0x439908);}const a87_0x4b60d1={};a87_0x4b60d1[a87_0x569b5b(0x1bd)]=0x1,a87_0x4b60d1['toString']=function(){const _0x23dff4=a87_0x569b5b,_0x5c9863={};_0x5c9863[_0x23dff4(0x1c5)]='HookState.PRE';const _0x547c40=_0x5c9863;return _0x547c40['bgVta'];};function a87_0x379d(){const _0x636473=['63lvEkfi','772962knpSFp','145482ubDWKq','2596390xLyLzQ','553256KUrBfO','find','771225Ncttzp','HookState.NONE','freeze','HookState.POST','2CCDHgj','2962487CEImHU','value','843756CgJwah','30HGoeyw','arVmH','AiBmH','76pjcmiV','12jZTidU','toString','bgVta'];a87_0x379d=function(){return _0x636473;};return a87_0x379d();}const a87_0x34b2f3={};a87_0x34b2f3['value']=0x2,a87_0x34b2f3[a87_0x569b5b(0x1c4)]=function(){const _0x7a4362=a87_0x569b5b,_0xe55483={};_0xe55483[_0x7a4362(0x1c0)]=_0x7a4362(0x1cf);const _0x5aee7e=_0xe55483;return _0x5aee7e[_0x7a4362(0x1c0)];};const HookState=Object[a87_0x569b5b(0x1ce)]({'NONE':a87_0x58b698,'PRE':a87_0x4b60d1,'POST':a87_0x34b2f3,'fromValue'(_0xe72ef9){const _0x33d9bc=a87_0x569b5b;return Object['values'](HookState)[_0x33d9bc(0x1cb)](_0x5100e6=>_0x5100e6[_0x33d9bc(0x1bd)]===_0xe72ef9);}});module['exports']=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x2a58a6=a88_0x2948;(function(_0x2c8ca1,_0x9c1aa2){const _0x5252bb=a88_0x2948,_0x19565f=_0x2c8ca1();while(!![]){try{const _0x532f7c=-parseInt(_0x5252bb(0x127))/0x1+-parseInt(_0x5252bb(0x126))/0x2*(parseInt(_0x5252bb(0x122))/0x3)+-parseInt(_0x5252bb(0x121))/0x4*(parseInt(_0x5252bb(0x125))/0x5)+-parseInt(_0x5252bb(0x120))/0x6+-parseInt(_0x5252bb(0x12e))/0x7*(parseInt(_0x5252bb(0x12f))/0x8)+-parseInt(_0x5252bb(0x13b))/0x9*(-parseInt(_0x5252bb(0x123))/0xa)+parseInt(_0x5252bb(0x136))/0xb;if(_0x532f7c===_0x9c1aa2)break;else _0x19565f['push'](_0x19565f['shift']());}catch(_0x33e1bb){_0x19565f['push'](_0x19565f['shift']());}}}(a88_0x20a1,0x84e7c));const a88_0x5e29c9={};a88_0x5e29c9[a88_0x2a58a6(0x141)]=0x0,a88_0x5e29c9['toString']=function(){const _0x25b899=a88_0x2a58a6,_0x6cb895={};_0x6cb895[_0x25b899(0x13a)]=_0x25b899(0x138);const _0x26bcb3=_0x6cb895;return _0x26bcb3[_0x25b899(0x13a)];};const a88_0x35da9b={};a88_0x35da9b[a88_0x2a58a6(0x141)]=0x1,a88_0x35da9b[a88_0x2a58a6(0x12c)]=function(){const _0x39ba26=a88_0x2a58a6,_0x167585={};_0x167585[_0x39ba26(0x140)]=_0x39ba26(0x11e);const _0x28652e=_0x167585;return _0x28652e['rZAWt'];};const a88_0x6b97f8={};a88_0x6b97f8['value']=0x2,a88_0x6b97f8[a88_0x2a58a6(0x12c)]=function(){const _0x56ea42=a88_0x2a58a6,_0x428c09={};_0x428c09[_0x56ea42(0x13f)]=_0x56ea42(0x133);const _0x536123=_0x428c09;return _0x536123[_0x56ea42(0x13f)];};const a88_0x36cc24={};a88_0x36cc24[a88_0x2a58a6(0x141)]=0x3,a88_0x36cc24[a88_0x2a58a6(0x12c)]=function(){const _0x5caf04=a88_0x2a58a6,_0x27ada1={};_0x27ada1[_0x5caf04(0x11f)]=_0x5caf04(0x13d);const _0x4ed3eb=_0x27ada1;return _0x4ed3eb[_0x5caf04(0x11f)];};const a88_0x18ced6={};a88_0x18ced6[a88_0x2a58a6(0x141)]=0x4,a88_0x18ced6['toString']=function(){const _0x492ac0=a88_0x2a58a6,_0x4b0c13={};_0x4b0c13['uzLfL']=_0x492ac0(0x12d);const _0x2e703e=_0x4b0c13;return _0x2e703e[_0x492ac0(0x12a)];};function a88_0x20a1(){const _0x486511=['3955020WPcOXh','4EAaXoy','74367bSDVis','465640VYUnNz','DjmPy','950745pWYEdn','70tUVOZp','188007IYmDEN','bvrxs','TestFrameworkState.STEP','uzLfL','freeze','toString','TestFrameworkState.INIT_TEST','623uTXMWY','90088NZiNGh','find','UrlzK','QGarc','TestFrameworkState.LOG','SMpCj','izCbW','36942642aWTgyy','TestFrameworkState.LOG_REPORT','TestFrameworkState.NONE','TestFrameworkState.AFTER_ALL','fNfKF','18XjYBza','TestFrameworkState.TEST','TestFrameworkState.SETUP_FIXTURE','TestFrameworkState.TEST_SCREENSHOT','NQyWn','rZAWt','value','TpZxd','exports','TestFrameworkState.BEFORE_ALL','uUyAe'];a88_0x20a1=function(){return _0x486511;};return a88_0x20a1();}const a88_0x1dbfc8={};a88_0x1dbfc8[a88_0x2a58a6(0x141)]=0x5,a88_0x1dbfc8[a88_0x2a58a6(0x12c)]=function(){const _0x3d8877=a88_0x2a58a6,_0x24fdea={};_0x24fdea['izCbW']='TestFrameworkState.BEFORE_EACH';const _0x52c867=_0x24fdea;return _0x52c867[_0x3d8877(0x135)];};const a88_0x1a99a3={};a88_0x1a99a3[a88_0x2a58a6(0x141)]=0x6,a88_0x1a99a3['toString']=function(){const _0x44dca4=a88_0x2a58a6,_0x1e0547={};_0x1e0547[_0x44dca4(0x128)]='TestFrameworkState.AFTER_EACH';const _0x352831=_0x1e0547;return _0x352831['bvrxs'];};const a88_0x5d5dc5={};a88_0x5d5dc5['value']=0x7,a88_0x5d5dc5[a88_0x2a58a6(0x12c)]=function(){const _0x47e084=a88_0x2a58a6,_0x2f6a3e={};_0x2f6a3e['QGarc']=_0x47e084(0x13c);const _0x2c9a4c=_0x2f6a3e;return _0x2c9a4c[_0x47e084(0x132)];};const a88_0x528fef={};a88_0x528fef[a88_0x2a58a6(0x141)]=0x8,a88_0x528fef[a88_0x2a58a6(0x12c)]=function(){const _0x1158b7=a88_0x2a58a6,_0xb32f52={};_0xb32f52[_0x1158b7(0x124)]=_0x1158b7(0x129);const _0x4ea03e=_0xb32f52;return _0x4ea03e['DjmPy'];};const a88_0x408c6c={};a88_0x408c6c['value']=0x9,a88_0x408c6c['toString']=function(){const _0x32e91a=a88_0x2a58a6,_0x150581={};_0x150581[_0x32e91a(0x11c)]=_0x32e91a(0x137);const _0x1da286=_0x150581;return _0x1da286[_0x32e91a(0x11c)];};const a88_0x28c798={};function a88_0x2948(_0x5f3a12,_0x5e58c4){const _0x20a142=a88_0x20a1();return a88_0x2948=function(_0x2948c9,_0x843c23){_0x2948c9=_0x2948c9-0x11c;let _0x217f0b=_0x20a142[_0x2948c9];return _0x217f0b;},a88_0x2948(_0x5f3a12,_0x5e58c4);}a88_0x28c798['value']=0xa,a88_0x28c798[a88_0x2a58a6(0x12c)]=function(){const _0x385d53=a88_0x2a58a6,_0xfa41cf={};_0xfa41cf[_0x385d53(0x131)]=_0x385d53(0x139);const _0x136eeb=_0xfa41cf;return _0x136eeb[_0x385d53(0x131)];};const a88_0x35781b={};a88_0x35781b[a88_0x2a58a6(0x141)]=0xb,a88_0x35781b[a88_0x2a58a6(0x12c)]=function(){const _0x2eb268=a88_0x2a58a6,_0x45734a={};_0x45734a[_0x2eb268(0x134)]=_0x2eb268(0x13e);const _0x38222f=_0x45734a;return _0x38222f[_0x2eb268(0x134)];};const TestFrameworkState=Object[a88_0x2a58a6(0x12b)]({'NONE':a88_0x5e29c9,'BEFORE_ALL':a88_0x35da9b,'LOG':a88_0x6b97f8,'SETUP_FIXTURE':a88_0x36cc24,'INIT_TEST':a88_0x18ced6,'BEFORE_EACH':a88_0x1dbfc8,'AFTER_EACH':a88_0x1a99a3,'TEST':a88_0x5d5dc5,'STEP':a88_0x528fef,'LOG_REPORT':a88_0x408c6c,'AFTER_ALL':a88_0x28c798,'TEST_SCREENSHOT':a88_0x35781b,'fromValue'(_0x129cca){const _0x56ee3a=a88_0x2a58a6;return Object['values'](TestFrameworkState)[_0x56ee3a(0x130)](_0xd73209=>_0xd73209['value']===_0x129cca);}});module[a88_0x2a58a6(0x11d)]=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
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
|
+
function a89_0x5cf9(){const _0x52f95a=['debug','statSync','existsSync','./state/hookState','logger','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','getAllData','5803wyahdM','sSKIj','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','./cliUtils','1304cleRvy','JKZKR','http','./TestInfo','JXWyl','3815174regqBg','util','14629ihnZXz','KEY_FILE_LEVEL','copyFileSync','getTestFramework','getTestIdentifierFromTestInfo','AdrkM','toFixed','clearAttachments','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','./state/testFrameworkState','mWktQ','HbdRg','basename','uploadAttachmentsManager','./modules/playwrightDriverModule','dcDyC','37278fbpVvr','.browserstack','gRDij','iNXxr','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','toLowerCase','addMultipleEntries','dSkBc','name','TEST','1602TusNeW','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','oIado','uploadAttachments','349516cWFrIn','BuildLevel',',\x20filepath:\x20','close','join','trackFile','4udIKGJ','startsWith','http://','abzxa','format','QKFlg','pipe','getTrackedInstance','qYCwL','https://','statusCode','210WRVOhP','xSLrK','JoDic','getTestDetails','UtJEu','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','POST','jest','message','pHsiF','unlinkSync','LZhhm','PjqZt','KEY_TEST_ID','./framework/constants/testFrameworkConstants','modules','Created\x20folder:\x20%s','testhubConfig','homedir','setTestDetails','size','WeDkr','wutxg','yxLTt','retry','SmrOS','TestLevel','exports','lhGxW','getTestFrameworkDetail','MieIV','GQQya','buildHashedId','YScUy','../../helpers/classLogger.js','wlnpH','QBxls','toObject','GYcKH','Created\x20.browserstack\x20folder\x20at:\x20%s','finish','getInstance','ElCQS','WZsCI','3865mcNKKL','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','oNdYg','KEY_FILE_SIZE','error','Attachment\x20recevied\x20for\x20path:\x20%s','SFOxe','eamvU','sriNS','KEY_TEST_ATTACHMENTS','hLEPO','__workerDetails','mkdirSync','TestHubModule','createWriteStream','83106NwJiCF','Xstfl','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','ICHVL','ZUpCZ','getState'];a89_0x5cf9=function(){return _0x52f95a;};return a89_0x5cf9();}function a89_0x4ae6(_0x35d3c,_0x4d3e89){const _0x5cf998=a89_0x5cf9();return a89_0x4ae6=function(_0x4ae673,_0x535a08){_0x4ae673=_0x4ae673-0xee;let _0x1b9ea0=_0x5cf998[_0x4ae673];return _0x1b9ea0;},a89_0x4ae6(_0x35d3c,_0x4d3e89);}const a89_0x539d20=a89_0x4ae6;(function(_0x2f7639,_0x5f4797){const _0x4300f6=a89_0x4ae6,_0x3723db=_0x2f7639();while(!![]){try{const _0x349260=-parseInt(_0x4300f6(0x10d))/0x1*(-parseInt(_0x4300f6(0x131))/0x2)+-parseInt(_0x4300f6(0x11d))/0x3+-parseInt(_0x4300f6(0x12b))/0x4+-parseInt(_0x4300f6(0x168))/0x5*(parseInt(_0x4300f6(0x127))/0x6)+parseInt(_0x4300f6(0x102))/0x7*(-parseInt(_0x4300f6(0x106))/0x8)+parseInt(_0x4300f6(0xf4))/0x9*(parseInt(_0x4300f6(0x13c))/0xa)+parseInt(_0x4300f6(0x10b))/0xb;if(_0x349260===_0x5f4797)break;else _0x3723db['push'](_0x3723db['shift']());}catch(_0x1f9207){_0x3723db['push'](_0x3723db['shift']());}}}(a89_0x5cf9,0x1f6ab));const os=require('os'),fs=require('fs'),path=require('path'),util=require(a89_0x539d20(0x10c)),BrowserstackCLI=require('./browserstackCLI'),https=require('https'),http=require(a89_0x539d20(0x108)),AutomationFramework=require('./framework/automationFramework'),PlaywrightDriverModule=require(a89_0x539d20(0x11b)),TestInfo=require(a89_0x539d20(0x109)),TestFrameworkConstants=require(a89_0x539d20(0x14a)),{createClassLogger}=require(a89_0x539d20(0x15e));class uploadAttachmentsManager{static [a89_0x539d20(0xff)]=createClassLogger(a89_0x539d20(0x11a));static[a89_0x539d20(0x12a)](_0x50186b,_0x795c15=![]){const _0xe694c7=a89_0x539d20,_0x54ef09={};_0x54ef09[_0xe694c7(0x139)]=function(_0x42840a,_0xbaabe1){return _0x42840a/_0xbaabe1;},_0x54ef09[_0xe694c7(0x103)]=function(_0x4a9445,_0x29a725){return _0x4a9445*_0x29a725;},_0x54ef09[_0xe694c7(0x13e)]=function(_0x5f13a7,_0x47ae43){return _0x5f13a7>_0x47ae43;},_0x54ef09[_0xe694c7(0x10a)]='Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.',_0x54ef09[_0xe694c7(0x148)]='File\x20downloaded\x20to:\x20%s',_0x54ef09[_0xe694c7(0x11f)]=function(_0x485f3e,_0x3992ac){return _0x485f3e===_0x3992ac;},_0x54ef09['SFOxe']=_0xe694c7(0x164),_0x54ef09[_0xe694c7(0x140)]=_0xe694c7(0x104),_0x54ef09['Opvdt']=_0xe694c7(0x100),_0x54ef09[_0xe694c7(0x107)]=_0xe694c7(0x16d),_0x54ef09[_0xe694c7(0xef)]=_0xe694c7(0x11e),_0x54ef09[_0xe694c7(0xf8)]='.browserstack\x20folder\x20not\x20found\x20at:\x20%s',_0x54ef09[_0xe694c7(0x15b)]=_0xe694c7(0x163),_0x54ef09[_0xe694c7(0x16a)]=_0xe694c7(0x14c),_0x54ef09[_0xe694c7(0x160)]=function(_0x566b93,_0x216a90){return _0x566b93===_0x216a90;},_0x54ef09[_0xe694c7(0x166)]='Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.',_0x54ef09[_0xe694c7(0x16f)]=_0xe694c7(0x13a),_0x54ef09[_0xe694c7(0x145)]=_0xe694c7(0x133),_0x54ef09[_0xe694c7(0x147)]=_0xe694c7(0x16c),_0x54ef09[_0xe694c7(0x117)]=_0xe694c7(0x141),_0x54ef09[_0xe694c7(0x124)]=function(_0x5f670d,_0x5f29e9){return _0x5f670d/_0x5f29e9;},_0x54ef09[_0xe694c7(0x118)]=function(_0x6b2520,_0x5557f3){return _0x6b2520*_0x5557f3;},_0x54ef09[_0xe694c7(0xf5)]=_0xe694c7(0x121);const _0x54e888=_0x54ef09;this['logger'][_0xe694c7(0xfb)](util[_0xe694c7(0x135)](_0x54e888[_0xe694c7(0x107)],_0x50186b));const _0x35be4d=os['homedir'](),_0x5a23dd=path[_0xe694c7(0x12f)](_0x35be4d,_0x54e888[_0xe694c7(0xef)]);!fs[_0xe694c7(0xfd)](_0x5a23dd)&&(this[_0xe694c7(0xff)][_0xe694c7(0xfb)](util[_0xe694c7(0x135)](_0x54e888[_0xe694c7(0xf8)],_0x5a23dd)),fs['mkdirSync'](_0x5a23dd),this[_0xe694c7(0xff)][_0xe694c7(0xfb)](util[_0xe694c7(0x135)](_0x54e888[_0xe694c7(0x15b)],_0x5a23dd)));const _0x59948a=BrowserstackCLI[_0xe694c7(0x165)]()[_0xe694c7(0x14b)][_0xe694c7(0xf2)]?.['testhubConfig']?.[_0xe694c7(0x161)]()?.[_0xe694c7(0x15c)],_0x17c49a=path[_0xe694c7(0x12f)](_0x5a23dd,_0x59948a);!fs['existsSync'](_0x17c49a)&&(fs[_0xe694c7(0xf1)](_0x17c49a),this[_0xe694c7(0xff)][_0xe694c7(0xfb)](util['format'](_0x54e888[_0xe694c7(0x16a)],_0x17c49a)));if(_0x54e888[_0xe694c7(0x160)](_0x50186b['trim'](),'')){this[_0xe694c7(0xff)][_0xe694c7(0xfb)](util[_0xe694c7(0x135)](_0x54e888['ElCQS']));return;}if(_0x50186b[_0xe694c7(0x132)](_0x54e888[_0xe694c7(0x16f)])||_0x50186b[_0xe694c7(0x132)](_0x54e888['pHsiF'])){const _0x17ab61=_0x50186b[_0xe694c7(0x132)](_0x54e888[_0xe694c7(0x16f)])?https:http,_0x3fbc6e=path[_0xe694c7(0x119)](_0x50186b),_0x5d40f0=path[_0xe694c7(0x12f)](_0x17c49a,_0x3fbc6e),_0x4761c7=fs[_0xe694c7(0xf3)](_0x5d40f0);_0x17ab61['get'](_0x50186b,_0x4eb2be=>{const _0x36521a=_0xe694c7,_0x22324f={'dcDyC':function(_0x4e9ee7,_0xd3187c){const _0x244232=a89_0x4ae6;return _0x54e888[_0x244232(0x139)](_0x4e9ee7,_0xd3187c);},'sriNS':function(_0x3c5dc9,_0x4c8ae8){const _0x5b3ae9=a89_0x4ae6;return _0x54e888[_0x5b3ae9(0x103)](_0x3c5dc9,_0x4c8ae8);},'abzxa':function(_0x497cdc,_0x47592e){const _0xbb15a6=a89_0x4ae6;return _0x54e888[_0xbb15a6(0x13e)](_0x497cdc,_0x47592e);},'RgTnu':_0x54e888['JXWyl'],'xSLrK':_0x54e888[_0x36521a(0x148)]};if(_0x54e888[_0x36521a(0x11f)](_0x4eb2be[_0x36521a(0x13b)],0xc8))_0x4eb2be[_0x36521a(0x137)](_0x4761c7),_0x4761c7['on'](_0x54e888[_0x36521a(0x16e)],()=>{const _0x575c2d=_0x36521a;_0x4761c7[_0x575c2d(0x12e)]();const _0x1bba9c=fs[_0x575c2d(0xfc)](_0x5d40f0),_0x367086=_0x22324f[_0x575c2d(0x11c)](_0x1bba9c['size'],_0x22324f[_0x575c2d(0x170)](0x400,0x400));if(_0x22324f[_0x575c2d(0x134)](_0x367086,0x64)){this[_0x575c2d(0xff)]['debug'](util['format'](_0x22324f['RgTnu'],_0x367086[_0x575c2d(0x113)](0x2))),fs['unlinkSync'](_0x5d40f0);return;}this[_0x575c2d(0xff)][_0x575c2d(0xfb)](util[_0x575c2d(0x135)](_0x22324f[_0x575c2d(0x13d)],_0x5d40f0)),uploadAttachmentsManager[_0x575c2d(0x130)](_0x5d40f0,_0x795c15);});else{this[_0x36521a(0xff)][_0x36521a(0xfb)](util['format'](_0x54e888[_0x36521a(0x140)],_0x4eb2be[_0x36521a(0x13b)])),_0x4761c7[_0x36521a(0x12e)](),fs[_0x36521a(0x146)](_0x5d40f0);return;}})['on'](_0x54e888[_0xe694c7(0x147)],_0x4cf81b=>{const _0x9ee53a=_0xe694c7;this[_0x9ee53a(0xff)][_0x9ee53a(0xfb)](util[_0x9ee53a(0x135)](_0x54e888['Opvdt'],_0x4cf81b[_0x9ee53a(0x144)])),_0x4761c7['close'](),fs[_0x9ee53a(0x146)](_0x5d40f0);return;});}else{if(!fs['existsSync'](_0x50186b)){this['logger']['debug'](util['format'](_0x54e888[_0xe694c7(0x117)],_0x50186b));return;}const _0x3e4c78=fs['statSync'](_0x50186b),_0x11f374=_0x54e888[_0xe694c7(0x124)](_0x3e4c78[_0xe694c7(0x150)],_0x54e888[_0xe694c7(0x118)](0x400,0x400));if(_0x54e888[_0xe694c7(0x13e)](_0x11f374,0x64)){this['logger']['debug'](util[_0xe694c7(0x135)](_0x54e888['Xstfl'],_0x11f374['toFixed'](0x2)));return;}const _0x513520=path[_0xe694c7(0x119)](_0x50186b),_0x166ebc=path[_0xe694c7(0x12f)](_0x17c49a,_0x513520);fs[_0xe694c7(0x10f)](_0x50186b,_0x166ebc),uploadAttachmentsManager['trackFile'](_0x166ebc,_0x795c15);}}static[a89_0x539d20(0x130)](_0x529102,_0x26263a){const _0x4f2603=a89_0x539d20,_0x422b86={'MieIV':function(_0x356051,_0x5a4b66){return _0x356051(_0x5a4b66);},'oFadI':'./browserstackCLI','QKFlg':_0x4f2603(0x105),'DBMhc':function(_0x99708b,_0x3aa16){return _0x99708b===_0x3aa16;},'GYcKH':_0x4f2603(0x143),'GFdEA':'trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','wutxg':_0x4f2603(0x12c),'SmrOS':_0x4f2603(0x156),'WZsCI':_0x4f2603(0x169),'yxLTt':function(_0x42b022,_0x9cab2b){return _0x42b022(_0x9cab2b);},'wlnpH':_0x4f2603(0x116),'oIado':_0x4f2603(0xfe),'WeDkr':'trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','ZUpCZ':_0x4f2603(0xf7),'iNXxr':'Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload'};try{let _0x1b6b03;const _0x3229cf=global[_0x4f2603(0xf0)]?.['currentTest']?.['testInfo'],_0x38577d=_0x422b86[_0x4f2603(0x15a)](require,_0x422b86['oFadI']),_0x2d99d3=_0x422b86[_0x4f2603(0x15a)](require,_0x422b86[_0x4f2603(0x136)]),_0x2a9393=_0x38577d[_0x4f2603(0x165)]()['isRunning']()&&_0x422b86['DBMhc'](_0x2d99d3[_0x4f2603(0x159)]()?.[_0x4f2603(0x125)]?.[_0x4f2603(0x122)](),_0x422b86[_0x4f2603(0x162)]);if(_0x2a9393){_0x1b6b03=global['__jestCurrentTestIdentifier'];if(!_0x1b6b03){const _0x284f57=AutomationFramework[_0x4f2603(0x138)]();_0x1b6b03=AutomationFramework['getState'](_0x284f57,PlaywrightDriverModule[_0x4f2603(0x149)],'');}this[_0x4f2603(0xff)][_0x4f2603(0xfb)](_0x4f2603(0xf6)+_0x1b6b03);}else{if(!_0x3229cf){const _0x3b6e5a=AutomationFramework[_0x4f2603(0x138)]();_0x1b6b03=AutomationFramework[_0x4f2603(0xfa)](_0x3b6e5a,PlaywrightDriverModule[_0x4f2603(0x149)],'');}else _0x1b6b03=TestInfo[_0x4f2603(0x111)](_0x3229cf,_0x3229cf[_0x4f2603(0x154)]);this[_0x4f2603(0xff)][_0x4f2603(0xfb)]('trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20'+_0x1b6b03);}if(!_0x1b6b03){this[_0x4f2603(0xff)][_0x4f2603(0xfb)](_0x422b86['GFdEA']);return;}const _0xcb9d28={[TestFrameworkConstants[_0x4f2603(0x16b)]]:fs['statSync'](_0x529102)[_0x4f2603(0x150)],[TestFrameworkConstants['KEY_FILE_NAME']]:path[_0x4f2603(0x119)](_0x529102),[TestFrameworkConstants['KEY_FILE_PATH']]:_0x529102,[TestFrameworkConstants[_0x4f2603(0x10e)]]:_0x26263a?_0x422b86[_0x4f2603(0x152)]:_0x422b86[_0x4f2603(0x155)]};if(_0x2a9393){const _0x121355=_0x38577d[_0x4f2603(0x165)]()[_0x4f2603(0x110)]();if(!_0x121355){this['logger'][_0x4f2603(0xfb)](_0x422b86[_0x4f2603(0x167)]);return;}const _0x1b53d8=_0x422b86[_0x4f2603(0x153)](require,_0x422b86[_0x4f2603(0x15f)]),_0x26eaef=_0x422b86[_0x4f2603(0x153)](require,_0x422b86[_0x4f2603(0x129)]),_0x5f5c03=_0x121355['resolveInstance'](_0x1b53d8[_0x4f2603(0x126)],_0x26eaef[_0x4f2603(0x142)]);if(!_0x5f5c03){this[_0x4f2603(0xff)][_0x4f2603(0xfb)](_0x422b86[_0x4f2603(0x151)]);return;}const _0x49081a=_0x5f5c03[_0x4f2603(0x101)]()['get'](_0x1b6b03)||{},_0x49af96=_0x49081a[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x36c396={..._0x49af96};_0x36c396[_0x529102]=_0xcb9d28;const _0x5948c7=_0x36c396,_0x26cf8b={[TestFrameworkConstants[_0x4f2603(0xee)]]:_0x5948c7},_0xcfe579={};_0xcfe579[_0x1b6b03]=_0x26cf8b,_0x5f5c03[_0x4f2603(0x123)](_0xcfe579),this[_0x4f2603(0xff)][_0x4f2603(0xfb)]('trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20'+_0x1b6b03+_0x4f2603(0x12d)+_0x529102);}else{const _0x3a3c69=TestInfo[_0x4f2603(0x13f)](_0x1b6b03),_0x19056c=_0x3a3c69[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{};_0x19056c[_0x529102]=_0xcb9d28,_0x3a3c69[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]=_0x19056c,TestInfo[_0x4f2603(0x14f)](_0x1b6b03,_0x3a3c69),this[_0x4f2603(0xff)][_0x4f2603(0xfb)](_0x4f2603(0x128)+_0x1b6b03+_0x4f2603(0x12d)+_0x529102);}this[_0x4f2603(0xff)][_0x4f2603(0xfb)](util[_0x4f2603(0x135)](_0x422b86[_0x4f2603(0xf9)],_0x529102));}catch(_0x27c377){this[_0x4f2603(0xff)][_0x4f2603(0xfb)](util[_0x4f2603(0x135)](_0x422b86[_0x4f2603(0x120)],_0x27c377[_0x4f2603(0x144)]));}}static[a89_0x539d20(0x114)](){const _0x2e6256=a89_0x539d20,_0x27543d={};_0x27543d[_0x2e6256(0x112)]=_0x2e6256(0x11e),_0x27543d['YScUy']=_0x2e6256(0x115),_0x27543d[_0x2e6256(0x158)]='Cleared\x20attachment\x20folder';const _0x6a9492=_0x27543d,_0x24fca8=os[_0x2e6256(0x14e)](),_0x2f9e94=path['join'](_0x24fca8,_0x6a9492['AdrkM']);if(!fs[_0x2e6256(0xfd)](_0x2f9e94))return;const _0x3c363b=BrowserstackCLI[_0x2e6256(0x165)]()[_0x2e6256(0x14b)][_0x2e6256(0xf2)]?.[_0x2e6256(0x14d)]?.[_0x2e6256(0x161)]()?.[_0x2e6256(0x15c)],_0x5bdcd6=_0x3c363b?path[_0x2e6256(0x12f)](_0x2f9e94,_0x3c363b):null;if(!_0x5bdcd6||!fs[_0x2e6256(0xfd)](_0x5bdcd6)){this[_0x2e6256(0xff)][_0x2e6256(0xfb)](util[_0x2e6256(0x135)](_0x6a9492[_0x2e6256(0x15d)],_0x3c363b));return;}const _0x29a671={};_0x29a671['recursive']=!![],_0x29a671['force']=!![],fs['rmSync'](_0x5bdcd6,_0x29a671),this['logger'][_0x2e6256(0xfb)](util[_0x2e6256(0x135)](_0x6a9492[_0x2e6256(0x158)]));}}module[a89_0x539d20(0x157)]=uploadAttachmentsManager;
|
|
@@ -1 +1 @@
|
|
|
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
|
+
function a90_0x1cf0(){const _0x561d4a=['TScbt','XDgEe','length','push','vwcjY','VTTOb','debug','Vbbil','AssertionError','JLTdz','toString','getTestUUID','passed','../../../helpers/test-observability/error-handler.js','ypfkq','forEach','examples','YoqSC','createTestFrameworkData','2749392ctLfRw','result','unknown','status','sendHook','javascript','backtrace','configureGit','PWbOo','1547588HwpFKo','toISOString','cells','StaJQ','exception','6DVaAZy','../../../helpers/helper.js','testStepFinished','GjryI','HmltT','qczMJ','xEosM','feature','format','name','BUcKP','toLowerCase','testStepResult','HAgua','oKZjv','VLVKe','getHookResult','nanos','skipped','pwbQG','PQAji','includes','relative','failure','27145863NYfgrt','1597155Fzkage','GBzqX','failure_type','xvZUh','failureData','failure_data','path','PaBel','gMqEI','flatMap','winstonLogger','qGwpm','Exception\x20in\x20getHookRunEventData:\x20','test','_gitConfigured','UnhandledError','7903llFWMb','hook','BiWjT','GyxVo','AFTER_EACH','VlyYO','failure_reason','getHookRunEventData','scenario','ymTay','uri','../../../helpers/logger.js','vpXMx','SiNdS','HookRunFinished','vHalR','failed','lCbXJ','_gitConfigPath','strip-ansi','sourceReference','pending','getCucumberHookType','MSMqA','SKIPPED','hooks','tagExpression','failureType','dbJWg','tCzmn','timestamp','1422cPHdLT','filter','cucumber','tVLPB','match','uppUt','children','rule','map','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','duration_in_ms','find','testCaseFinished','AzSWa','tags','LjhwF','FDxrz','value','UVCoG','AGZRE','pickleStepId','mlGqS','createHookData','message','647188IPOXEo','astNodeIds','bstack','juzjz','getScenarioExamples','exports','AWupP','hookId','FAILED','695814tKRXHR','root','rFLCN','tableBody'];a90_0x1cf0=function(){return _0x561d4a;};return a90_0x1cf0();}function a90_0x5762(_0x108843,_0x32e356){const _0x1cf091=a90_0x1cf0();return a90_0x5762=function(_0x57622c,_0x21f4e3){_0x57622c=_0x57622c-0x153;let _0x2d2c92=_0x1cf091[_0x57622c];return _0x2d2c92;},a90_0x5762(_0x108843,_0x32e356);}const a90_0x51945b=a90_0x5762;(function(_0x46f26f,_0x84129c){const _0x411113=a90_0x5762,_0x3cdaa4=_0x46f26f();while(!![]){try{const _0x472908=-parseInt(_0x411113(0x1a1))/0x1+-parseInt(_0x411113(0x198))/0x2*(parseInt(_0x411113(0x1c6))/0x3)+-parseInt(_0x411113(0x1c1))/0x4+-parseInt(_0x411113(0x1df))/0x5+parseInt(_0x411113(0x180))/0x6*(-parseInt(_0x411113(0x161))/0x7)+-parseInt(_0x411113(0x1b8))/0x8+parseInt(_0x411113(0x1de))/0x9;if(_0x472908===_0x84129c)break;else _0x3cdaa4['push'](_0x3cdaa4['shift']());}catch(_0x17758d){_0x3cdaa4['push'](_0x3cdaa4['shift']());}}}(a90_0x1cf0,0x56d2e));const path=require(a90_0x51945b(0x157)),util=require('util'),{getGitMetaData,isUndefined,nestedKeyValue}=require(a90_0x51945b(0x1c7)),logger=require(a90_0x51945b(0x16c))[a90_0x51945b(0x15b)],{o11yClassErrorHandler}=require(a90_0x51945b(0x1b2)),TestInfo=require('../TestInfo.js'),hooksMap={};class CucumberUtils{constructor(){const _0x202942=a90_0x51945b;this[_0x202942(0x15f)]=![],this[_0x202942(0x173)]=null;}async[a90_0x51945b(0x1b7)](_0x5ee123,_0x1a7543,_0x44467b,_0xbf189,_0x416300,_0x153e67){const _0x3eccbc=a90_0x51945b,_0x2d2dbd={'gMqEI':function(_0x107217,_0x3e6c34){return _0x107217===_0x3e6c34;},'VlyYO':_0x3eccbc(0x1a0),'SiNdS':_0x3eccbc(0x171),'TkBWV':function(_0x168f9f,_0x3dfa53){return _0x168f9f===_0x3dfa53;},'PQAji':_0x3eccbc(0x179),'lvVsz':_0x3eccbc(0x1d8),'vpXMx':function(_0x2ceced,_0x117ef7){return _0x2ceced||_0x117ef7;},'AzSWa':function(_0x1e5f82,_0xef6e3c){return _0x1e5f82+_0xef6e3c;},'mlGqS':function(_0x2d2940,_0x4eaac9){return _0x2d2940+_0x4eaac9;},'tVLPB':_0x3eccbc(0x15e),'HAgua':_0x3eccbc(0x1bd),'ptvQJ':_0x3eccbc(0x182),'tCzmn':_0x3eccbc(0x176),'xEosM':_0x3eccbc(0x1b1),'AGZRE':function(_0x1491f6,_0x4f3758){return _0x1491f6!==_0x4f3758;},'oKZjv':function(_0x5bbb64,_0x15daa8){return _0x5bbb64/_0x15daa8;},'gsABY':function(_0x1cdc04,_0x55ab95){return _0x1cdc04===_0x55ab95;},'XDgEe':_0x3eccbc(0x174),'lCbXJ':function(_0x1abc8d,_0x19a723){return _0x1abc8d(_0x19a723);},'xvZUh':_0x3eccbc(0x1ba),'ypfkq':_0x3eccbc(0x1ad),'ymTay':_0x3eccbc(0x160)},{feature:_0x2e76c0,scenario:_0x226426,steps:_0x60a547,uuid:_0x28acf7,startedAt:_0x596d8f,finishedAt:_0x3f23f0}=_0x2d2dbd[_0x3eccbc(0x16d)](_0x5ee123,{}),_0x390bb4=this[_0x3eccbc(0x19c)](_0xbf189,_0x1a7543);await this[_0x3eccbc(0x1bf)]();const _0x25eab9=_0x390bb4?_0x2d2dbd['AzSWa'](_0x2d2dbd[_0x3eccbc(0x18d)](_0x2d2dbd[_0x3eccbc(0x195)](_0x1a7543['name'],'\x20('),_0x390bb4['join'](',\x20')),')'):_0x1a7543[_0x3eccbc(0x1cf)],_0x3d041b={'id':_0x416300,'uuid':_0x416300,'startedAt':_0x596d8f,'finishedAt':_0x3f23f0,'type':_0x2d2dbd[_0x3eccbc(0x183)],'body':{'lang':_0x2d2dbd[_0x3eccbc(0x1d3)],'code':null},'name':_0x25eab9,'scopes':[_0x2e76c0&&_0x2e76c0[_0x3eccbc(0x1cf)]?_0x2e76c0[_0x3eccbc(0x1cf)]:''],'tags':_0x1a7543[_0x3eccbc(0x18e)]?_0x1a7543['tags'][_0x3eccbc(0x188)](({name:_0x3bfdea})=>_0x3bfdea):[],'file_name':_0x1a7543[_0x3eccbc(0x16b)],'location':_0x1a7543['uri'],'vc_filepath':this[_0x3eccbc(0x173)]&&_0x1a7543['uri']?path[_0x3eccbc(0x1dc)](this['_gitConfigPath'],_0x1a7543[_0x3eccbc(0x16b)]):null,'framework':_0x2d2dbd['ptvQJ'],'result':_0x2d2dbd[_0x3eccbc(0x17e)],'meta':{'feature':_0x2e76c0,'scenario':_0x226426,'steps':_0x60a547,'examples':_0x390bb4},'customRerunParam':{'rerun_name':_0x25eab9}};if(_0x44467b[_0x3eccbc(0x18c)]&&_0x60a547){const _0x3bb694=_0x44467b[_0x3eccbc(0x18c)];let _0x30d616=_0x2d2dbd[_0x3eccbc(0x1cc)];_0x60a547['every'](_0x813d89=>{const _0xf0bf33=_0x3eccbc;if(_0x2d2dbd[_0xf0bf33(0x159)](_0x813d89[_0xf0bf33(0x1b9)],_0x2d2dbd[_0xf0bf33(0x166)]))return _0x30d616=_0x2d2dbd[_0xf0bf33(0x16e)],_0x3bb694[_0xf0bf33(0x1dd)]=_0x813d89[_0xf0bf33(0x1dd)],_0x3bb694[_0xf0bf33(0x17c)]=_0x813d89[_0xf0bf33(0x17c)],![];else{if(_0x2d2dbd['TkBWV'](_0x813d89[_0xf0bf33(0x1b9)],_0x2d2dbd[_0xf0bf33(0x1da)]))return _0x30d616=_0x2d2dbd['lvVsz'],![];}return!![];}),_0x3d041b['finishedAt']=new Date()['toISOString'](),_0x3d041b['result']=_0x30d616;_0x3bb694[_0x3eccbc(0x17f)]&&_0x2d2dbd[_0x3eccbc(0x193)](_0x3bb694[_0x3eccbc(0x17f)][_0x3eccbc(0x1d7)],undefined)?_0x3d041b[_0x3eccbc(0x18a)]=_0x2d2dbd[_0x3eccbc(0x1d4)](_0x3bb694[_0x3eccbc(0x17f)][_0x3eccbc(0x1d7)],0xf4240):_0x3d041b[_0x3eccbc(0x18a)]=undefined;if(_0x2d2dbd['gsABY'](_0x30d616,_0x2d2dbd[_0x3eccbc(0x16e)])){const {default:_0x498270}=await import(_0x2d2dbd[_0x3eccbc(0x1a6)]);_0x3d041b[_0x3eccbc(0x1dd)]=[{'backtrace':[_0x3bb694[_0x3eccbc(0x1dd)]?_0x2d2dbd['lCbXJ'](_0x498270,_0x3bb694[_0x3eccbc(0x1dd)]):_0x2d2dbd[_0x3eccbc(0x154)]]}],_0x3d041b[_0x3eccbc(0x167)]=_0x3bb694[_0x3eccbc(0x1dd)]?_0x2d2dbd[_0x3eccbc(0x172)](_0x498270,_0x3bb694[_0x3eccbc(0x1dd)]):_0x3bb694['message'],_0x3bb694[_0x3eccbc(0x17c)]&&(_0x3d041b[_0x3eccbc(0x153)]=_0x3bb694['failureType'][_0x3eccbc(0x184)](/AssertError/)?_0x2d2dbd[_0x3eccbc(0x1b3)]:_0x2d2dbd[_0x3eccbc(0x16a)]);}}return _0x3d041b;}['getHookRunEventData'](_0x4fe440,_0x29035a,_0x1e40c6,_0x22ec6b,_0x208b2c,_0x582333){const _0x26bbf0=a90_0x51945b,_0xb57247={'QGJYy':function(_0x27ce7b,_0x346e3d){return _0x27ce7b===_0x346e3d;},'qGwpm':_0x26bbf0(0x16f),'YoqSC':function(_0x3cb3d6,_0x47d3d0,_0x11993c){return _0x3cb3d6(_0x47d3d0,_0x11993c);},'eXhYY':'sourceReference','zXTOi':'uri','Vbbil':_0x26bbf0(0x176),'MSMqA':_0x26bbf0(0x162),'VLVKe':_0x26bbf0(0x1bd),'GBzqX':_0x26bbf0(0x1cd),'VTTOb':'name','StaJQ':_0x26bbf0(0x182)};try{if(_0xb57247['QGJYy'](_0x1e40c6,_0xb57247[_0x26bbf0(0x15c)])){const _0x514b52=new Date()[_0x26bbf0(0x1c2)](),_0x228e7=hooksMap[_0x29035a];if(!_0x228e7)return;const _0x25492a=_0x228e7[_0x26bbf0(0x18b)](_0x55b857=>_0x55b857['uuid']===_0x22ec6b['id']);if(!_0x25492a)return;const _0x1ccb9f=this[_0x26bbf0(0x1d6)](_0x4fe440,_0x29035a);_0x25492a[_0x26bbf0(0x1b9)]=_0x1ccb9f['status'],_0x25492a['finished_at']=_0x514b52,_0x25492a['failure_type']=_0x1ccb9f['failureType'];const _0x11748b={};return _0x11748b[_0x26bbf0(0x1be)]=_0x1ccb9f[_0x26bbf0(0x155)],_0x25492a[_0x26bbf0(0x156)]=[_0x11748b],_0x25492a;}const _0x207db2=TestInfo[_0x26bbf0(0x1b0)](_0x29035a),_0x3dc698=_0x4fe440[_0x26bbf0(0x17a)][_0x26bbf0(0x18b)](_0x390f84=>_0x390f84['id']===_0x22ec6b[_0x26bbf0(0x19f)]),_0x313418=_0xb57247[_0x26bbf0(0x1b6)](nestedKeyValue,_0x3dc698,[_0xb57247['eXhYY'],_0xb57247['zXTOi']]),_0x36bea0=new Date()['toISOString'](),_0x376cec=_0xb57247[_0x26bbf0(0x1ac)],_0x2319f2=_0x3dc698[_0x26bbf0(0x17b)]?_0x3dc698[_0x26bbf0(0x17b)]['split']('\x20')[_0x26bbf0(0x181)](_0x398576=>_0x398576[_0x26bbf0(0x1db)]('@')):[],_0x3d23e2={'uuid':_0x22ec6b['id'],'type':_0xb57247[_0x26bbf0(0x178)],'hook_type':_0x582333,'name':_0x3dc698[_0x26bbf0(0x1cf)],'body':{'lang':_0xb57247[_0x26bbf0(0x1d5)],'code':null},'tags':_0x2319f2,'test_run_id':_0x207db2,'scope':_0xb57247[_0x26bbf0(0x1b6)](nestedKeyValue,_0x208b2c,[_0xb57247[_0x26bbf0(0x1e0)],_0xb57247[_0x26bbf0(0x1aa)]]),'scopes':[_0xb57247[_0x26bbf0(0x1b6)](nestedKeyValue,_0x208b2c,[_0xb57247[_0x26bbf0(0x1e0)],_0xb57247[_0x26bbf0(0x1aa)]])||''],'file_name':_0x313418,'location':_0x313418,'vc_filepath':this[_0x26bbf0(0x173)]?path[_0x26bbf0(0x1dc)](this['_gitConfigPath'],_0x313418):null,'result':_0x376cec,'started_at':_0x36bea0,'framework':_0xb57247[_0x26bbf0(0x1c4)]};return _0x3d23e2;}catch(_0x174b05){logger['debug'](_0x26bbf0(0x15d)+util[_0x26bbf0(0x1ce)](_0x174b05)+'\x20');}}async[a90_0x51945b(0x196)](_0x533b47,_0x174e47,_0x2e16d8,_0x1a37c6,_0x3e8302,_0x329d9e){const _0x1c8650=a90_0x51945b,_0x39df82={'uppUt':function(_0xcef968,_0x8d52dc){return _0xcef968===_0x8d52dc;},'HmltT':'HookRunStarted','rFLCN':function(_0x5e24b6,_0x484cf4,_0x1bc548){return _0x5e24b6(_0x484cf4,_0x1bc548);},'LjhwF':_0x1c8650(0x175),'TScbt':_0x1c8650(0x16b),'BiWjT':_0x1c8650(0x189),'pwbQG':_0x1c8650(0x19a)};try{const _0x5bfc59=_0x1a37c6[_0x1c8650(0x18b)](_0x286f37=>_0x286f37['id']===_0x3e8302);if(!_0x5bfc59[_0x1c8650(0x19f)])return;const _0x262b10=this[_0x1c8650(0x177)](_0x1a37c6,_0x5bfc59),_0x1598cf=this[_0x1c8650(0x168)](_0x533b47,_0x174e47,_0x2e16d8,_0x5bfc59,_0x329d9e,_0x262b10);if(!_0x1598cf)return;_0x39df82[_0x1c8650(0x185)](_0x2e16d8,_0x39df82[_0x1c8650(0x1ca)])&&(hooksMap[_0x174e47]?hooksMap[_0x174e47][_0x1c8650(0x1a8)](_0x1598cf):hooksMap[_0x174e47]=[_0x1598cf]);const _0x3fa147=_0x533b47['hooks'][_0x1c8650(0x18b)](_0x4aca88=>_0x4aca88['id']===_0x5bfc59['hookId']),_0x284a46=_0x39df82[_0x1c8650(0x1a3)](nestedKeyValue,_0x3fa147,[_0x39df82[_0x1c8650(0x18f)],_0x39df82[_0x1c8650(0x1a5)]]);if(!_0x284a46)return;else{if(_0x284a46[_0x1c8650(0x1db)](_0x39df82[_0x1c8650(0x163)]))return;}if(_0x39df82['uppUt'](_0x1598cf[_0x1c8650(0x1cf)],_0x39df82[_0x1c8650(0x1d9)]))return;return _0x1598cf;}catch(_0x2524b0){logger[_0x1c8650(0x1ab)]('Exception\x20in\x20createHookData:\x20'+util[_0x1c8650(0x1ce)](_0x2524b0)+'\x20');}}['getHookResult'](_0xabdac,_0x2a5028){const _0x2b1df4=a90_0x51945b,_0x2ac9b7={};_0x2ac9b7[_0x2b1df4(0x1a9)]=function(_0x1ed9f7,_0x24ac0c){return _0x1ed9f7===_0x24ac0c;},_0x2ac9b7[_0x2b1df4(0x1ae)]=_0x2b1df4(0x171),_0x2ac9b7['AWupP']=function(_0x57d17e,_0x15082d){return _0x57d17e===_0x15082d;},_0x2ac9b7[_0x2b1df4(0x1d0)]=function(_0x42b18f,_0x5268a0){return _0x42b18f===_0x5268a0;},_0x2ac9b7[_0x2b1df4(0x19b)]=_0x2b1df4(0x160),_0x2ac9b7[_0x2b1df4(0x170)]='AssertionError',_0x2ac9b7[_0x2b1df4(0x1c9)]=function(_0x331f06,_0x593d67){return _0x331f06||_0x593d67;};const _0x2b2baf=_0x2ac9b7,_0x41b8bb=_0xabdac[_0x2b1df4(0x1c8)][_0x2a5028][_0x2b1df4(0x1d2)];let _0x2023a4,_0x4bf3f8;return _0x41b8bb&&_0x2b2baf[_0x2b1df4(0x1a9)](_0x41b8bb[_0x2b1df4(0x1bb)][_0x2b1df4(0x1af)]()['toLowerCase'](),_0x2b2baf[_0x2b1df4(0x1ae)])&&(_0x2023a4=_0x2b2baf[_0x2b1df4(0x19e)](_0x41b8bb[_0x2b1df4(0x1c5)],undefined)?_0x41b8bb['message']:_0x41b8bb['exception']['message'],_0x4bf3f8=_0x2b2baf[_0x2b1df4(0x1d0)](_0x41b8bb[_0x2b1df4(0x1c5)],undefined)?_0x2b2baf[_0x2b1df4(0x19b)]:_0x41b8bb[_0x2b1df4(0x197)][_0x2b1df4(0x184)](/Assert/)?_0x2b2baf[_0x2b1df4(0x170)]:_0x2b2baf[_0x2b1df4(0x19b)]),{'status':_0x41b8bb[_0x2b1df4(0x1bb)][_0x2b1df4(0x1d1)](),'failureType':_0x2b2baf[_0x2b1df4(0x1c9)](_0x4bf3f8,null),'failureData':!_0x2023a4?null:[_0x2023a4]};}[a90_0x51945b(0x177)](_0xaaf57b,_0x400df2){const _0x45ab02=a90_0x51945b,_0x5ce965={};_0x5ce965[_0x45ab02(0x164)]=function(_0x3865a8,_0x433d1c){return _0x3865a8===_0x433d1c;},_0x5ce965[_0x45ab02(0x192)]=_0x45ab02(0x165),_0x5ce965[_0x45ab02(0x190)]='BEFORE_EACH';const _0x4b568a=_0x5ce965;let _0x50799e=![];for(const _0x1b9209 of _0xaaf57b){_0x1b9209[_0x45ab02(0x194)]&&(_0x50799e=!![]);if(_0x4b568a['GyxVo'](_0x400df2['id'],_0x1b9209['id']))return _0x50799e?_0x4b568a[_0x45ab02(0x192)]:_0x4b568a[_0x45ab02(0x190)];}}['getScenarioExamples']=(_0x14613c,_0x2ec64d)=>{const _0x30b81a=a90_0x51945b,_0x426280={};_0x426280['PaBel']=function(_0x54873c,_0x485d3c){return _0x54873c===_0x485d3c;},_0x426280[_0x30b81a(0x1cb)]=function(_0x393562,_0x29ff03){return _0x393562>_0x29ff03;};const _0x47b76a=_0x426280;if(!(_0x2ec64d[_0x30b81a(0x199)]&&_0x47b76a[_0x30b81a(0x1cb)](_0x2ec64d['astNodeIds'][_0x30b81a(0x1a7)],0x1)))return;const _0x16e5f8=_0x2ec64d[_0x30b81a(0x199)][0x0],_0x5d4875=_0x2ec64d['astNodeIds'][0x1],_0x2c23ee=_0x14613c['feature']&&_0x14613c['feature'][_0x30b81a(0x186)]?_0x14613c['feature'][_0x30b81a(0x186)]:undefined;let _0x53fd2c=[];_0x2c23ee&&_0x2c23ee[_0x30b81a(0x1b4)](_0x2297b4=>{const _0x279de7=_0x30b81a,_0x1cd32f={'dbJWg':function(_0xceff2c,_0x375941){const _0x5141e1=a90_0x5762;return _0x47b76a[_0x5141e1(0x158)](_0xceff2c,_0x375941);}};if(_0x2297b4['rule'])_0x2297b4[_0x279de7(0x187)]['children'][_0x279de7(0x1b4)](_0x2f86c5=>{const _0x5a76a6=_0x279de7;if(_0x2f86c5[_0x5a76a6(0x169)]&&_0x1cd32f[_0x5a76a6(0x17d)](_0x2f86c5[_0x5a76a6(0x169)]['id'],_0x16e5f8)&&_0x2f86c5[_0x5a76a6(0x169)][_0x5a76a6(0x1b5)]){const _0xa6fc30=_0x2f86c5[_0x5a76a6(0x169)][_0x5a76a6(0x1b5)]['flatMap'](_0x2b44e9=>_0x2b44e9[_0x5a76a6(0x1a4)])[_0x5a76a6(0x18b)](_0x2416b2=>_0x2416b2['id']===_0x5d4875);let _0x365d8d;_0xa6fc30&&_0xa6fc30[_0x5a76a6(0x1c3)]?_0x365d8d=_0xa6fc30[_0x5a76a6(0x1c3)][_0x5a76a6(0x188)](_0x425d9b=>_0x425d9b['value']):_0x365d8d=[],_0x365d8d&&(_0x53fd2c=_0x365d8d);}});else{if(_0x2297b4[_0x279de7(0x169)]&&_0x47b76a[_0x279de7(0x158)](_0x2297b4['scenario']['id'],_0x16e5f8)&&_0x2297b4[_0x279de7(0x169)][_0x279de7(0x1b5)]){const _0x170e82=_0x2297b4[_0x279de7(0x169)][_0x279de7(0x1b5)][_0x279de7(0x15a)](_0x29489a=>_0x29489a[_0x279de7(0x1a4)])[_0x279de7(0x18b)](_0x2fea21=>_0x2fea21['id']===_0x5d4875);let _0x32efb2;_0x170e82&&_0x170e82[_0x279de7(0x1c3)]?_0x32efb2=_0x170e82[_0x279de7(0x1c3)][_0x279de7(0x188)](_0x51ef01=>_0x51ef01[_0x279de7(0x191)]):_0x32efb2=[],_0x32efb2&&(_0x53fd2c=_0x32efb2);}}});if(_0x53fd2c[_0x30b81a(0x1a7)])return _0x53fd2c;return;};async[a90_0x51945b(0x1bf)](){const _0x37daa4=a90_0x51945b,_0x17cac3={'PWbOo':function(_0x4bec70){return _0x4bec70();}};if(this['_gitConfigured'])return this[_0x37daa4(0x173)];const _0x2805ad=await _0x17cac3[_0x37daa4(0x1c0)](getGitMetaData);_0x2805ad&&(this[_0x37daa4(0x173)]=_0x2805ad[_0x37daa4(0x1a2)]),this[_0x37daa4(0x15f)]=!![];}}module[a90_0x51945b(0x19d)]=o11yClassErrorHandler(CucumberUtils,[a90_0x51945b(0x1bf),'getScenarioExamples',a90_0x51945b(0x177),a90_0x51945b(0x1d6),a90_0x51945b(0x1bc),a90_0x51945b(0x168),'sendTestRunEventForCucumber',a90_0x51945b(0x1b7)]);
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a91_0x2232cb=a91_0x3cd4;(function(_0xc58af2,_0xe01b02){const _0x1a7d66=a91_0x3cd4,_0x58d0bb=_0xc58af2();while(!![]){try{const _0x3ba4cd=-parseInt(_0x1a7d66(0x16a))/0x1+-parseInt(_0x1a7d66(0x1aa))/0x2*(parseInt(_0x1a7d66(0x13d))/0x3)+-parseInt(_0x1a7d66(0x179))/0x4+-parseInt(_0x1a7d66(0x183))/0x5+-parseInt(_0x1a7d66(0x17f))/0x6+parseInt(_0x1a7d66(0x186))/0x7+parseInt(_0x1a7d66(0x160))/0x8*(parseInt(_0x1a7d66(0x17b))/0x9);if(_0x3ba4cd===_0xe01b02)break;else _0x58d0bb['push'](_0x58d0bb['shift']());}catch(_0x422999){_0x58d0bb['push'](_0x58d0bb['shift']());}}}(a91_0x2d08,0x886d1));const path=require(a91_0x2232cb(0x137)),util=require('util'),crypto=require('crypto'),{getGitMetaData,isUndefined,nestedKeyValue}=require(a91_0x2232cb(0x190)),logger=require('../../../helpers/logger.js')[a91_0x2232cb(0x14b)],{o11yClassErrorHandler}=require(a91_0x2232cb(0x180)),TestInfo=require(a91_0x2232cb(0x152)),{failureData,getFailureType}=require(a91_0x2232cb(0x161)),stackTrace=require('stack-trace'),a91_0x257dd3={};function a91_0x3cd4(_0x4a8a3d,_0x534a7a){const _0x2d08cf=a91_0x2d08();return a91_0x3cd4=function(_0x3cd483,_0x23a296){_0x3cd483=_0x3cd483-0x11d;let _0x58ef0a=_0x2d08cf[_0x3cd483];return _0x58ef0a;},a91_0x3cd4(_0x4a8a3d,_0x534a7a);}a91_0x257dd3['beforeAll']=a91_0x2232cb(0x1b7),a91_0x257dd3[a91_0x2232cb(0x189)]=a91_0x2232cb(0x11f),a91_0x257dd3[a91_0x2232cb(0x1a2)]=a91_0x2232cb(0x14f),a91_0x257dd3[a91_0x2232cb(0x16e)]=a91_0x2232cb(0x134);const HOOK_TYPES_MAP=a91_0x257dd3,hooksMap={};function a91_0x2d08(){const _0x856c2a=['HookRunFinished','recreateIdentifierFromTestInfo','705553touWVa','uuid','vzVtO','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','afterEach','\x22\x20hook\x20for\x20\x22','length','errorsDetailed','pid','startedAt','ILXir','relative','expanded','fOekj','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','1174816uAEqVd','toUpperCase','667854lDJoxK','call','getState','fullName','5809998JOrkhp','../../../helpers/test-observability/error-handler.js','vmUoA','jest-circus','767155wewyPx','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','hyJkp','4395503IBKrWr','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier','RiCOe','afterAll','getTestIdentifier','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','WbRpS','retryOf','qxPTt','../../../helpers/helper.js','digest','sNuun','vcfyQ','error','Creating\x20hook\x20data\x20for\x20eventType:\x20','file','passed','displayName','createHash','btMLz','LFAAI','getName','err','LKdgQ','failed','backtrace','failure_reason_expanded','beforeEach','uTpwF','stack','test','pending',':jest-','sIXWG','ZkRvk','2FMvjwX','createIdentifierFromJestTest','push','parent','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','jest','GoKvX','hook','ySsnz','getHierarchy','failure_backtrace','root','match','BEFORE_ALL','parse','ydlQq','title','[jestUtils]\x20Created\x20identifier:\x20','_gitConfigured','md5','createJestTestIdentifier','duration','xcWkW','File\x20path\x20could\x20not\x20be\x20found','testPath','configureGit','extractTestFilePath','RUggl','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','finishedAt','UuedX','toISOString','asyncError','now','exports','started_at','Exception\x20in\x20createTestFrameworkData:\x20','hylKo','failure_reason','WowGP','debug','rfyCj','FMxrA','AFTER_ALL','toString','lwMhs','[jestUtils]\x20Error\x20creating\x20identifier:\x20','getTime','LGhtn','split','zXZgG','createHookData',',\x20hookUUID:\x20','failure_data','hcPtq','update','name','FVWag','Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20','clearHooksMap','__jestCurrentTestIdentifier','format','vWTjM','itPek','AFTER_EACH','MaWOq','apply','path','currentTest','hooks','testIdentifier','RumNJ','includes','745479jWALeo','ZOBAS','reverse','getHookRunEventData','getRootParentFile','find','fefML','expect','WGQBd','QWsSZ','hex','type','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','VnpPm','winstonLogger','hlsAT','MTViS','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','BEFORE_EACH','TpZgK','__workerDetails','../TestInfo.js','inspect','ROEai','TestRunFinished','xsSah','wNjtb',',\x20testRunId:\x20','[jestUtils]\x20No\x20test\x20object\x20provided','testAnalyticsId','_gitConfigPath','NPUYk','createTestFrameworkData','ROOT_DESCRIBE_BLOCK','getFileName','248BuKWVS','../../../helpers/test-observability/utils','Exception\x20in\x20createHookData:\x20','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','failure','HookRunStarted','substring','TestRunSkipped'];a91_0x2d08=function(){return _0x856c2a;};return a91_0x2d08();}class JestUtils{constructor(){const _0x5354dd=a91_0x2232cb;this['_gitConfigured']=![],this[_0x5354dd(0x15b)]=null;}async[a91_0x2232cb(0x15d)](_0x191a95,_0x4209ed,_0x37687e=a91_0x2232cb(0x155),_0x568f56=undefined){const _0x213c72=a91_0x2232cb,_0x1b4c52={'VnpPm':_0x213c72(0x184),'hcPtq':_0x213c72(0x182),'GoKvX':function(_0xdaa5f7,_0x44c08b){return _0xdaa5f7||_0x44c08b;},'TpZgK':_0x213c72(0x1c1),'RiCOe':function(_0x281120,_0x24fc51){return _0x281120!==_0x24fc51;},'RumNJ':_0x213c72(0x1a5),'vzVtO':_0x213c72(0x19d),'iPhNu':function(_0x3bf640,_0x20843d){return _0x3bf640!==_0x20843d;},'ctDtB':_0x213c72(0x1a6),'fAmlT':function(_0xf61077,_0x3f4906){return _0xf61077===_0x3f4906;},'ILXir':_0x213c72(0x167),'sIXWG':'skipped','svIVA':function(_0x24e5ef,_0x2c95ac){return _0x24e5ef>_0x2c95ac;},'MaWOq':_0x213c72(0x19f),'sNuun':_0x213c72(0x197),'LGhtn':function(_0x5b45fd,_0x17ceb6){return _0x5b45fd!==_0x17ceb6;},'Hfnpv':function(_0x4fab7c,_0x37a148){return _0x4fab7c-_0x37a148;},'QJPzE':'javascript','dylrK':_0x213c72(0x1af),'hlsAT':function(_0x165069,_0x51fe02){return _0x165069(_0x51fe02);},'hyJkp':function(_0x2bf25a,_0x4f350d){return _0x2bf25a===_0x4f350d;},'uTpwF':'TestRunFinished','uegoB':function(_0x341b0e,_0x3be3d7){return _0x341b0e===_0x3be3d7;}};logger[_0x213c72(0x1d2)](_0x213c72(0x12e)+_0x37687e+',\x20testIdentifier:\x20'+_0x4209ed);try{if(!_0x191a95)return logger[_0x213c72(0x1d2)](_0x1b4c52[_0x213c72(0x14a)]),null;if(_0x191a95['fn']&&_0x191a95['fn'][_0x213c72(0x120)]()[_0x213c72(0x1b6)](/browserstack internal helper hook/))return null;await this['configureGit']();let _0x3db742;try{_0x3db742=this[_0x213c72(0x141)](_0x191a95);if(_0x3db742&&_0x3db742[_0x213c72(0x13c)](_0x1b4c52[_0x213c72(0x12a)]))return null;}catch(_0x517ce0){logger[_0x213c72(0x1d2)](_0x213c72(0x149)+util['format'](_0x517ce0)),_0x3db742=null;}const _0x173e98=this['getHierarchy'](_0x191a95),_0x468dd1=this[_0x213c72(0x19c)](_0x191a95),_0x202d12=_0x1b4c52[_0x213c72(0x1b0)](_0x3db742,_0x1b4c52[_0x213c72(0x150)]);let _0x3aa8d0=[];if(_0x1b4c52['RiCOe'](_0x191a95[_0x213c72(0x171)],undefined))_0x3aa8d0=[_0x191a95[_0x213c72(0x171)],_0x1b4c52[_0x213c72(0x13b)]];else _0x1b4c52[_0x213c72(0x188)](_0x568f56,undefined)&&(_0x3aa8d0=[_0x568f56,_0x1b4c52[_0x213c72(0x16c)]]);const _0x259be7=_0x1b4c52[_0x213c72(0x188)](_0x191a95[_0x213c72(0x171)],undefined)?util['inspect'](_0x191a95[_0x213c72(0x171)][0x0]):_0x1b4c52['iPhNu'](_0x568f56,undefined)?_0x568f56['toString']():undefined;let _0x3a775b=_0x1b4c52['ctDtB'];if(_0x1b4c52['fAmlT'](_0x37687e,_0x1b4c52[_0x213c72(0x174)]))_0x3a775b=_0x1b4c52[_0x213c72(0x1a8)];else _0x191a95[_0x213c72(0x171)]&&_0x1b4c52['svIVA'](_0x191a95[_0x213c72(0x171)][_0x213c72(0x170)],0x0)?_0x3a775b=_0x1b4c52[_0x213c72(0x135)]:_0x3a775b=_0x1b4c52[_0x213c72(0x192)];let _0xff0990=null;if(_0x1b4c52[_0x213c72(0x124)](_0x191a95[_0x213c72(0x1bf)],undefined))_0xff0990=_0x191a95[_0x213c72(0x1bf)];else(_0x37687e[_0x213c72(0x1b6)](/Finished/)||_0x37687e[_0x213c72(0x1b6)](/Skipped/))&&(_0x191a95['started_at']&&(_0xff0990=_0x1b4c52['Hfnpv'](Date[_0x213c72(0x1cb)](),new Date(_0x191a95[_0x213c72(0x1cd)])[_0x213c72(0x123)]())));const _0x5753ab=_0x191a95['fn']?_0x191a95['fn'][_0x213c72(0x120)]():null,_0x1a11a3={'id':_0x4209ed,'uuid':_0x4209ed,'startedAt':_0x191a95[_0x213c72(0x1cd)]||new Date()['toISOString'](),'finishedAt':_0x37687e[_0x213c72(0x1b6)](/Finished/)||_0x37687e['match'](/Skipped/)?new Date()['toISOString']():null,'type':_0x1b4c52[_0x213c72(0x13b)],'body':{'lang':_0x1b4c52['QJPzE'],'code':_0x5753ab},'name':_0x468dd1,'scopes':_0x173e98,'file_name':_0x202d12,'location':_0x202d12,'vc_filepath':this[_0x213c72(0x15b)]&&_0x3db742?path[_0x213c72(0x175)](this['_gitConfigPath'],_0x3db742):null,'framework':_0x1b4c52['dylrK'],'result':_0x3a775b,'failure_reason':_0x259be7,'duration_in_ms':_0xff0990,'failure':failureData['apply'](null,_0x3aa8d0),'failure_type':!_0x259be7?null:_0x1b4c52[_0x213c72(0x14c)](getFailureType,_0x259be7),'retry_of':_0x191a95[_0x213c72(0x18e)]||null,'customRerunParam':{'rerun_name':_0x468dd1}};_0x1b4c52[_0x213c72(0x185)](_0x37687e,_0x1b4c52['ILXir'])&&!_0x1a11a3['startedAt']&&(_0x1a11a3[_0x213c72(0x173)]=_0x1a11a3[_0x213c72(0x1c7)]);const _0x5f18f7=_0x1a11a3['failure']&&_0x1a11a3[_0x213c72(0x164)][0x0];return _0x5f18f7&&(_0x1a11a3[_0x213c72(0x1b4)]=_0x5f18f7[_0x213c72(0x1a0)],_0x1a11a3[_0x213c72(0x1a1)]=_0x5f18f7[_0x213c72(0x176)]),(_0x1b4c52[_0x213c72(0x185)](_0x37687e,_0x1b4c52[_0x213c72(0x1a3)])||_0x1b4c52['uegoB'](_0x37687e,_0x1b4c52['ILXir']))&&(_0x191a95[_0x213c72(0x139)]&&(_0x1a11a3[_0x213c72(0x139)]=_0x191a95['hooks'])),_0x1a11a3;}catch(_0x2de066){return logger[_0x213c72(0x1d2)](_0x213c72(0x1ce)+util['format'](_0x2de066)),null;}}async[a91_0x2232cb(0x127)](_0x1b6720,_0x47fe1b,_0x429c08,_0x20277d){const _0x2157ee=a91_0x2232cb,_0x5aa6cd={'ydlQq':_0x2157ee(0x16d),'QWsSZ':_0x2157ee(0x182),'LFAAI':'browserstack-node-agent/src/bin/jest','ySsnz':'unknown','dAUNt':_0x2157ee(0x1a6),'ROEai':function(_0x3eeb21,_0x29533d){return _0x3eeb21===_0x29533d;},'zXZgG':_0x2157ee(0x168),'DPZpk':function(_0x1868af,_0x45f5c0){return _0x1868af>_0x45f5c0;},'YJwkh':_0x2157ee(0x19f),'fefML':function(_0x3b67d6,_0x2cdd46){return _0x3b67d6(_0x2cdd46);},'RUggl':_0x2157ee(0x1a5),'FMxrA':_0x2157ee(0x197),'btMLz':_0x2157ee(0x1b1),'rfyCj':'javascript','DYDPx':_0x2157ee(0x1af),'zBbxc':function(_0x39c983,_0x227701){return _0x39c983===_0x227701;},'NPUYk':_0x2157ee(0x165)};logger['debug'](_0x2157ee(0x195)+_0x429c08+_0x2157ee(0x128)+_0x47fe1b+_0x2157ee(0x158)+_0x20277d);try{if(!_0x1b6720)return logger[_0x2157ee(0x1d2)](_0x5aa6cd[_0x2157ee(0x1b9)]),null;if(this['isJestInternalHook'](_0x1b6720))return null;await this[_0x2157ee(0x1c3)]();let _0xc6f452=null;try{_0xc6f452=this[_0x2157ee(0x141)](_0x1b6720);if(_0xc6f452&&_0xc6f452[_0x2157ee(0x13c)](_0x5aa6cd[_0x2157ee(0x146)]))return null;if(_0xc6f452&&_0xc6f452[_0x2157ee(0x13c)](_0x5aa6cd[_0x2157ee(0x19b)]))return null;}catch(_0x3f7813){logger['debug'](_0x2157ee(0x178)+util[_0x2157ee(0x131)](_0x3f7813));}const _0x39c663=this['getName'](_0x1b6720),_0x32c101=_0x1b6720['type']||_0x5aa6cd[_0x2157ee(0x1b2)],_0x4b957d=HOOK_TYPES_MAP[_0x32c101]||_0x32c101[_0x2157ee(0x17a)](),_0x21bd06=_0x1b6720[_0x2157ee(0x1ad)]&&_0x1b6720[_0x2157ee(0x1ad)][_0x2157ee(0x12c)]?_0x1b6720[_0x2157ee(0x1ad)][_0x2157ee(0x12c)]:'';let _0x23003e=_0x5aa6cd['dAUNt'],_0x11f359=null,_0x17ddb4=null,_0x42b6be=null,_0x21af4a=null;_0x5aa6cd[_0x2157ee(0x154)](_0x429c08,_0x5aa6cd[_0x2157ee(0x126)])&&(_0x21af4a=new Date()[_0x2157ee(0x1c9)](),_0x1b6720[_0x2157ee(0x171)]&&_0x5aa6cd['DPZpk'](_0x1b6720['errorsDetailed']['length'],0x0)?(_0x23003e=_0x5aa6cd['YJwkh'],_0x17ddb4=util[_0x2157ee(0x153)](_0x1b6720[_0x2157ee(0x171)][0x0]),_0x11f359=_0x5aa6cd[_0x2157ee(0x143)](getFailureType,_0x17ddb4),_0x42b6be=failureData[_0x2157ee(0x136)](null,[_0x1b6720[_0x2157ee(0x171)],_0x5aa6cd[_0x2157ee(0x1c5)]])):_0x23003e=_0x5aa6cd[_0x2157ee(0x11e)]);const _0x3cc354={'uuid':_0x47fe1b,'type':_0x5aa6cd[_0x2157ee(0x19a)],'hook_type':_0x4b957d,'name':_0x39c663,'body':{'lang':_0x5aa6cd[_0x2157ee(0x11d)],'code':_0x1b6720['fn']?_0x1b6720['fn'][_0x2157ee(0x120)]():null},'tags':[],'test_run_id':_0x20277d,'scope':_0x21bd06,'scopes':[_0x21bd06],'file_name':_0xc6f452,'location':_0xc6f452,'vc_filepath':this[_0x2157ee(0x15b)]&&_0xc6f452?path['relative'](this['_gitConfigPath'],_0xc6f452):null,'result':_0x23003e,'started_at':_0x1b6720[_0x2157ee(0x1cd)]||new Date()['toISOString'](),'finished_at':_0x21af4a,'failure_type':_0x11f359,'failure_reason':_0x17ddb4,'failure_data':_0x42b6be,'framework':_0x5aa6cd['DYDPx']};return _0x5aa6cd['zBbxc'](_0x429c08,_0x5aa6cd[_0x2157ee(0x15c)])&&(hooksMap[_0x20277d]?hooksMap[_0x20277d]['push'](_0x3cc354):hooksMap[_0x20277d]=[_0x3cc354]),_0x3cc354;}catch(_0x2098ea){return logger['debug'](_0x2157ee(0x162)+util[_0x2157ee(0x131)](_0x2098ea)),null;}}[a91_0x2232cb(0x140)](_0x487c4d,_0x5d21ff,_0x56a921){const _0x54f691=a91_0x2232cb,_0x48facf={'UuedX':function(_0x1c419f,_0x3d27be){return _0x1c419f>_0x3d27be;},'ZOBAS':_0x54f691(0x19f),'vWTjM':function(_0x14bded,_0x335d54){return _0x14bded(_0x335d54);},'SkAfj':_0x54f691(0x1a5),'ZkRvk':_0x54f691(0x197)};try{const _0x363a27=hooksMap[_0x487c4d];if(!_0x363a27)return null;const _0x51c578=_0x363a27[_0x54f691(0x142)](_0x2f935d=>_0x2f935d[_0x54f691(0x16b)]===_0x5d21ff);if(!_0x51c578)return null;return _0x51c578['finished_at']=new Date()[_0x54f691(0x1c9)](),_0x56a921[_0x54f691(0x171)]&&_0x48facf[_0x54f691(0x1c8)](_0x56a921[_0x54f691(0x171)][_0x54f691(0x170)],0x0)?(_0x51c578['result']=_0x48facf[_0x54f691(0x13e)],_0x51c578[_0x54f691(0x1d0)]=util[_0x54f691(0x153)](_0x56a921['errorsDetailed'][0x0]),_0x51c578['failure_type']=_0x48facf[_0x54f691(0x132)](getFailureType,_0x51c578[_0x54f691(0x1d0)]),_0x51c578[_0x54f691(0x129)]=failureData[_0x54f691(0x136)](null,[_0x56a921[_0x54f691(0x171)],_0x48facf['SkAfj']])):_0x51c578['result']=_0x48facf[_0x54f691(0x1a9)],_0x51c578;}catch(_0x4e9ac9){return logger[_0x54f691(0x1d2)]('Exception\x20in\x20getHookRunEventData:\x20'+util[_0x54f691(0x131)](_0x4e9ac9)),null;}}[a91_0x2232cb(0x19c)](_0x50846b){const _0x2ce690=a91_0x2232cb,_0xea0386={};_0xea0386[_0x2ce690(0x177)]=function(_0x151daa,_0x51c0b3){return _0x151daa!==_0x51c0b3;},_0xea0386[_0x2ce690(0x1d1)]='test',_0xea0386[_0x2ce690(0x121)]='Unknown\x20Test';const _0x31c8d8=_0xea0386;if(_0x31c8d8[_0x2ce690(0x177)](_0x50846b[_0x2ce690(0x148)],_0x31c8d8['WowGP']))return'\x22'+_0x50846b['type']+_0x2ce690(0x16f)+(_0x50846b[_0x2ce690(0x1ad)]&&_0x50846b['parent'][_0x2ce690(0x12c)])+'\x22';return _0x50846b[_0x2ce690(0x12c)]||_0x31c8d8[_0x2ce690(0x121)];}[a91_0x2232cb(0x1b3)](_0x416d35){const _0x59e25f=a91_0x2232cb,_0x1884fa={};_0x1884fa[_0x59e25f(0x19e)]=function(_0x47a197,_0x48b318){return _0x47a197!==_0x48b318;},_0x1884fa[_0x59e25f(0x145)]='ROOT_DESCRIBE_BLOCK';const _0x553ff1=_0x1884fa,_0x4c5dad=[];if(_0x416d35&&_0x416d35[_0x59e25f(0x1ad)]){let _0x1c775e=_0x416d35[_0x59e25f(0x1ad)];while(_0x1c775e&&_0x1c775e[_0x59e25f(0x12c)]&&_0x553ff1[_0x59e25f(0x19e)](_0x1c775e['name'],'')&&_0x553ff1[_0x59e25f(0x19e)](_0x1c775e[_0x59e25f(0x12c)],_0x553ff1[_0x59e25f(0x145)])){_0x4c5dad[_0x59e25f(0x1ac)](_0x1c775e[_0x59e25f(0x12c)]),_0x1c775e=_0x1c775e[_0x59e25f(0x1ad)];}}return _0x4c5dad[_0x59e25f(0x13f)](),_0x4c5dad;}[a91_0x2232cb(0x141)](_0x46f321){const _0x3af038=a91_0x2232cb;if(_0x46f321[_0x3af038(0x1ca)])try{const _0x535ac4=stackTrace[_0x3af038(0x1b8)][_0x3af038(0x17c)](stackTrace,_0x46f321[_0x3af038(0x1ca)]);if(_0x535ac4[0x0]&&_0x535ac4[0x0][_0x3af038(0x15f)])return _0x535ac4[0x0]['getFileName']();}catch(_0x275084){logger['debug']('Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util['format'](_0x275084));}if(_0x46f321[_0x3af038(0x196)])return _0x46f321[_0x3af038(0x196)];return null;}['isJestInternalHook'](_0x9ba5b3){const _0x4cd927=a91_0x2232cb,_0x1ed44b={};_0x1ed44b[_0x4cd927(0x193)]='jest-circus';const _0x39e1ab=_0x1ed44b;try{const _0xc57d2c=this[_0x4cd927(0x141)](_0x9ba5b3);if(_0xc57d2c&&_0xc57d2c[_0x4cd927(0x13c)](_0x39e1ab[_0x4cd927(0x193)]))return!![];}catch(_0xf0576b){logger[_0x4cd927(0x1d2)](_0x4cd927(0x1c6)+util[_0x4cd927(0x131)](_0xf0576b));}return![];}[a91_0x2232cb(0x18a)](_0x4dd1c5=null){const _0x2819c4=a91_0x2232cb;try{const _0x21cf7b=_0x4dd1c5||global[_0x2819c4(0x151)]||{};if(global[_0x2819c4(0x130)])return global[_0x2819c4(0x130)];if(_0x21cf7b?.[_0x2819c4(0x138)]?.[_0x2819c4(0x15a)])return _0x21cf7b[_0x2819c4(0x138)][_0x2819c4(0x15a)];if(_0x21cf7b?.[_0x2819c4(0x138)]?.['id'])return _0x21cf7b['currentTest']['id'];return null;}catch(_0x3c7093){return logger['debug'](_0x2819c4(0x1ae)+util[_0x2819c4(0x131)](_0x3c7093)),null;}}async[a91_0x2232cb(0x1c3)](){const _0x222652=a91_0x2232cb,_0x4a0b52={'kJdhS':function(_0x37ba60){return _0x37ba60();}};if(this[_0x222652(0x1bc)])return this[_0x222652(0x15b)];const _0x4ae9ee=await _0x4a0b52['kJdhS'](getGitMetaData);_0x4ae9ee&&(this[_0x222652(0x15b)]=_0x4ae9ee[_0x222652(0x1b5)]),this['_gitConfigured']=!![];}[a91_0x2232cb(0x12f)](_0x59ad91){hooksMap[_0x59ad91]&&delete hooksMap[_0x59ad91];}['extractTestFilePath'](_0x474acd){const _0x27648a=a91_0x2232cb,_0x442536={'wNjtb':'jest-circus','hylKo':function(_0x5190ab,_0x16d1cc){return _0x5190ab(_0x16d1cc);},'qxPTt':_0x27648a(0x144)};if(_0x474acd[_0x27648a(0x196)])return _0x474acd['file'];if(_0x474acd['asyncError']){try{const _0x182ea4=stackTrace['parse'](_0x474acd[_0x27648a(0x1ca)]);if(_0x182ea4[0x0]&&_0x182ea4[0x0][_0x27648a(0x15f)]){const _0xa07d34=_0x182ea4[0x0][_0x27648a(0x15f)]();if(_0xa07d34&&!_0xa07d34[_0x27648a(0x13c)](_0x442536[_0x27648a(0x157)]))return _0xa07d34;}}catch(_0x22447e){logger[_0x27648a(0x1d2)]('[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util[_0x27648a(0x131)](_0x22447e));}if(_0x474acd[_0x27648a(0x1ca)][_0x27648a(0x1a4)]){const _0x53fce8=_0x474acd[_0x27648a(0x1ca)]['stack'][_0x27648a(0x125)]('\x0a');for(const _0x4f0b38 of _0x53fce8){const _0x5a2e1b=_0x4f0b38[_0x27648a(0x1b6)](/at (.+?):\d+:\d+/);if(_0x5a2e1b&&_0x5a2e1b[0x1]&&!_0x5a2e1b[0x1]['includes'](_0x442536[_0x27648a(0x157)]))return _0x5a2e1b[0x1];}}}let _0x2b3036=_0x474acd['parent'];while(_0x2b3036){if(_0x2b3036[_0x27648a(0x196)])return _0x2b3036[_0x27648a(0x196)];if(_0x2b3036[_0x27648a(0x1ca)])try{const _0x2651dc=stackTrace[_0x27648a(0x1b8)](_0x2b3036[_0x27648a(0x1ca)]);if(_0x2651dc[0x0]&&_0x2651dc[0x0]['getFileName']){const _0x556109=_0x2651dc[0x0][_0x27648a(0x15f)]();if(_0x556109&&!_0x556109[_0x27648a(0x13c)](_0x442536['wNjtb']))return _0x556109;}}catch(_0x2b4aab){}_0x2b3036=_0x2b3036[_0x27648a(0x1ad)];}try{const _0x28cab6=_0x442536[_0x27648a(0x1cf)](require,_0x442536[_0x27648a(0x18f)]);if(_0x28cab6&&_0x28cab6['getState']){const _0x7c3116=_0x28cab6[_0x27648a(0x17d)]();if(_0x7c3116&&_0x7c3116[_0x27648a(0x1c2)])return _0x7c3116[_0x27648a(0x1c2)];}}catch(_0x579549){logger[_0x27648a(0x1d2)](_0x27648a(0x163)+util[_0x27648a(0x131)](_0x579549));}return null;}[a91_0x2232cb(0x1be)](_0xe95afa){const _0x49ad5d=a91_0x2232cb,_0x55a5c6={};_0x55a5c6['AIVhQ']=_0x49ad5d(0x187),_0x55a5c6['WbRpS']=function(_0x3278c5,_0x4334d5){return _0x3278c5!==_0x4334d5;},_0x55a5c6[_0x49ad5d(0x1c0)]=_0x49ad5d(0x15e),_0x55a5c6[_0x49ad5d(0x181)]=_0x49ad5d(0x182),_0x55a5c6[_0x49ad5d(0x133)]=_0x49ad5d(0x1bd),_0x55a5c6[_0x49ad5d(0x12d)]=_0x49ad5d(0x147);const _0x1a476d=_0x55a5c6;try{if(!_0xe95afa)return logger[_0x49ad5d(0x194)](_0x1a476d['AIVhQ']),null;const _0x2f50a5=_0xe95afa[_0x49ad5d(0x17e)]||_0xe95afa[_0x49ad5d(0x12c)]||_0xe95afa[_0x49ad5d(0x1ba)]||_0xe95afa[_0x49ad5d(0x198)];let _0x55bf12=_0x2f50a5;if(_0xe95afa[_0x49ad5d(0x1ad)]&&_0xe95afa[_0x49ad5d(0x1ad)][_0x49ad5d(0x12c)]&&_0x1a476d[_0x49ad5d(0x18d)](_0xe95afa[_0x49ad5d(0x1ad)][_0x49ad5d(0x12c)],_0x1a476d['xcWkW'])){const _0x5d1809=_0xe95afa[_0x49ad5d(0x12c)]||_0xe95afa[_0x49ad5d(0x1ba)];_0x5d1809&&(_0x55bf12=_0xe95afa[_0x49ad5d(0x1ad)][_0x49ad5d(0x12c)]+'\x20'+_0x5d1809);}let _0x23f12c=_0xe95afa[_0x49ad5d(0x1c2)];if(!_0x23f12c&&_0xe95afa['asyncError']){try{const _0x599c90=stackTrace[_0x49ad5d(0x1b8)](_0xe95afa['asyncError']);if(_0x599c90[0x0]&&_0x599c90[0x0][_0x49ad5d(0x15f)]){const _0x3b08c2=_0x599c90[0x0][_0x49ad5d(0x15f)]();_0x3b08c2&&!_0x3b08c2[_0x49ad5d(0x13c)](_0x1a476d['vmUoA'])&&(_0x23f12c=_0x3b08c2);}}catch(_0x362ec6){logger[_0x49ad5d(0x1d2)](_0x49ad5d(0x18c)+util[_0x49ad5d(0x131)](_0x362ec6));}if(!_0x23f12c&&_0xe95afa[_0x49ad5d(0x1ca)][_0x49ad5d(0x1a4)]){const _0x300139=_0xe95afa['asyncError']['stack']['split']('\x0a');for(const _0x5d76c8 of _0x300139){const _0x13606c=_0x5d76c8[_0x49ad5d(0x1b6)](/at (.+?):\d+:\d+/);if(_0x13606c&&_0x13606c[0x1]&&!_0x13606c[0x1]['includes'](_0x1a476d[_0x49ad5d(0x181)])){_0x23f12c=_0x13606c[0x1];break;}}}}const _0x3c66ae=_0x23f12c+'::'+_0x55bf12,_0x22dd6d=crypto[_0x49ad5d(0x199)](_0x1a476d[_0x49ad5d(0x133)])[_0x49ad5d(0x12b)](_0x3c66ae)[_0x49ad5d(0x191)](_0x1a476d[_0x49ad5d(0x12d)])[_0x49ad5d(0x166)](0x0,0x8),_0x15dfc3=process[_0x49ad5d(0x172)]+_0x49ad5d(0x1a7)+_0x22dd6d;return logger[_0x49ad5d(0x1d2)](_0x49ad5d(0x1bb)+_0x15dfc3+'\x20from\x20compositeKey:\x20'+_0x3c66ae),_0x15dfc3;}catch(_0x4af81d){return logger[_0x49ad5d(0x194)](_0x49ad5d(0x122)+util[_0x49ad5d(0x131)](_0x4af81d)),null;}}[a91_0x2232cb(0x1ab)](_0x1f563d){const _0x35c4a7=a91_0x2232cb,_0xff7dd9={};_0xff7dd9[_0x35c4a7(0x14d)]=_0x35c4a7(0x159);const _0x134e81=_0xff7dd9;if(!_0x1f563d)return logger[_0x35c4a7(0x1d2)](_0x134e81[_0x35c4a7(0x14d)]),null;const _0x38f909=this[_0x35c4a7(0x1c4)](_0x1f563d),_0x3cbc6b={};_0x3cbc6b['name']=_0x1f563d[_0x35c4a7(0x12c)]||_0x1f563d[_0x35c4a7(0x1ba)],_0x3cbc6b[_0x35c4a7(0x1ad)]=_0x1f563d[_0x35c4a7(0x1ad)],_0x3cbc6b[_0x35c4a7(0x1c2)]=_0x38f909,_0x3cbc6b['asyncError']=_0x1f563d[_0x35c4a7(0x1ca)];const _0x4f388a=_0x3cbc6b;return this['createJestTestIdentifier'](_0x4f388a);}['recreateIdentifierFromTestInfo'](_0x49036f){const _0x145672=a91_0x2232cb,_0x589fa3={};_0x589fa3[_0x145672(0x156)]=_0x145672(0x18b);const _0x460b60=_0x589fa3;if(!_0x49036f)return logger[_0x145672(0x1d2)](_0x460b60[_0x145672(0x156)]),null;if(_0x49036f['testIdentifier'])return logger[_0x145672(0x1d2)](_0x145672(0x14e)+_0x49036f[_0x145672(0x13a)]),_0x49036f[_0x145672(0x13a)];return this[_0x145672(0x1be)](_0x49036f);}}module[a91_0x2232cb(0x1cc)]=o11yClassErrorHandler(JestUtils,[a91_0x2232cb(0x1c3),a91_0x2232cb(0x1b3),'getRootParentFile',a91_0x2232cb(0x19c),'isJestInternalHook',a91_0x2232cb(0x18a),a91_0x2232cb(0x15d),a91_0x2232cb(0x127),a91_0x2232cb(0x140),a91_0x2232cb(0x12f),a91_0x2232cb(0x1c4),a91_0x2232cb(0x1be),'createIdentifierFromJestTest',a91_0x2232cb(0x169)]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a92_0x46f5a8=a92_0x1fa9;(function(_0x510729,_0x7a601f){const _0x45ab23=a92_0x1fa9,_0x5a9ebe=_0x510729();while(!![]){try{const _0x17bea2=-parseInt(_0x45ab23(0xb7))/0x1+-parseInt(_0x45ab23(0xce))/0x2+-parseInt(_0x45ab23(0xa4))/0x3+-parseInt(_0x45ab23(0xcb))/0x4*(parseInt(_0x45ab23(0xac))/0x5)+parseInt(_0x45ab23(0xbc))/0x6+parseInt(_0x45ab23(0xc7))/0x7*(-parseInt(_0x45ab23(0xc1))/0x8)+-parseInt(_0x45ab23(0xb4))/0x9*(-parseInt(_0x45ab23(0xcc))/0xa);if(_0x17bea2===_0x7a601f)break;else _0x5a9ebe['push'](_0x5a9ebe['shift']());}catch(_0x5d2882){_0x5a9ebe['push'](_0x5a9ebe['shift']());}}}(a92_0x2f70,0x29c34));const fs=require('fs'),path=require('path'),{default:BrowserStackSetup}=require(a92_0x46f5a8(0xad)),helper=require(a92_0x46f5a8(0xa7)),PerformanceTester=require(a92_0x46f5a8(0xbd)),PerformanceEvents=require(a92_0x46f5a8(0xb3))[a92_0x46f5a8(0xb9)],utilities=require(a92_0x46f5a8(0x9f)),{parallelVanillaRun}=require(a92_0x46f5a8(0xb0)),TestHubHandler=require(a92_0x46f5a8(0xa6));async function run(_0x1b3f0e,_0x2aa5db,_0x2864e5){const _0x24d303=a92_0x46f5a8,_0x345b02={'DDCHh':_0x24d303(0xa0),'qjQWU':function(_0x3ef2df,_0x490ac0){return _0x3ef2df(_0x490ac0);},'tmkYp':'File\x20path\x20is\x20required','zWLVy':function(_0x59b0ea,_0x2c7c98){return _0x59b0ea(_0x2c7c98);},'Gunvq':_0x24d303(0xaa),'RJLHA':function(_0x383f89,_0x2258a1){return _0x383f89>_0x2258a1;},'ASvXP':function(_0x4bf12c,_0x42765a){return _0x4bf12c*_0x42765a;},'csHrZ':function(_0x1ede3e,_0x4cba36,_0x2a3281){return _0x1ede3e(_0x4cba36,_0x2a3281);}};await _0x2864e5[_0x24d303(0xc8)](_0x1b3f0e),await helper['handleApp'](_0x2864e5[_0x24d303(0xa5)]);const _0x2d65df=[];if(helper[_0x24d303(0xa3)](_0x1b3f0e['_'][0x1]))throw _0x345b02[_0x24d303(0xb6)](Error,_0x345b02['tmkYp']);const _0x47fba5=path[_0x24d303(0xaf)](process[_0x24d303(0x9c)](),_0x1b3f0e['_'][0x1]);if(!fs['existsSync'](_0x47fba5))throw _0x345b02[_0x24d303(0xb6)](Error,'File\x20'+_0x1b3f0e['_'][0x1]+_0x24d303(0xd0));if(!_0x2864e5[_0x24d303(0xa5)])throw _0x345b02[_0x24d303(0xcd)](Error,_0x345b02[_0x24d303(0xbe)]);const _0x3f7061=helper[_0x24d303(0xd3)](_0x2864e5[_0x24d303(0xa5)]);_0x2864e5[_0x24d303(0xa5)][_0x24d303(0xc6)]&&_0x345b02[_0x24d303(0xc2)](_0x2864e5[_0x24d303(0xa5)][_0x24d303(0xc6)][_0x24d303(0xc3)],0x0)&&_0x2864e5['config'][_0x24d303(0xc6)][_0x24d303(0xca)]((_0x5649b9,_0x310648)=>{const _0x5cf38f=_0x24d303;_0x3f7061?_0x2d65df[_0x5cf38f(0xcf)](helper[_0x5cf38f(0x9d)](_0x2864e5[_0x5cf38f(0xa5)],_0x345b02[_0x5cf38f(0xa8)],_0x310648)):_0x2d65df[_0x5cf38f(0xcf)](helper[_0x5cf38f(0x9e)](_0x2864e5['config'],_0x345b02['DDCHh'],_0x310648));});let _0x5ca9b6,_0x550e99;const _0x468944=[];if(_0x345b02[_0x24d303(0xc2)](_0x2d65df[_0x24d303(0xc3)],0x0))_0x2d65df[_0x24d303(0xca)]((_0xb44d98,_0x160134)=>{const _0x417bef=_0x24d303,_0x3ba3c7={};_0x3ba3c7['index']=_0x160134,_0x5ca9b6={'server':helper[_0x417bef(0xb5)](_0x2864e5['config']),'proxySettings':_0x2864e5[_0x417bef(0xa5)]['proxySettings'],'platform':helper[_0x417bef(0xb2)](_0xb44d98),'platformCaps':Object[_0x417bef(0xae)](_0x3ba3c7,_0x2864e5[_0x417bef(0xa5)][_0x417bef(0xc6)][_0x160134])};const _0x25a41b={'capability':_0xb44d98,..._0x5ca9b6};_0x25a41b[_0x417bef(0xba)]=_0x47fba5,_0x25a41b['args']=_0x2aa5db;const _0x4be192={};_0x4be192[_0x417bef(0xab)]=_0x25a41b,_0x550e99=_0x4be192,_0x468944[_0x417bef(0xcf)](_0x550e99);});else{let _0x25a76f;_0x3f7061?_0x25a76f=helper[_0x24d303(0x9d)](_0x2864e5['config'],_0x345b02[_0x24d303(0xa8)],0x0):_0x25a76f=helper['modifyBrowserStackCaps'](_0x2864e5[_0x24d303(0xa5)],_0x345b02[_0x24d303(0xa8)],0x0);_0x5ca9b6={'server':helper[_0x24d303(0xb5)](_0x2864e5[_0x24d303(0xa5)]),'proxySettings':_0x2864e5[_0x24d303(0xa5)][_0x24d303(0xbb)]};const _0x425e46={'capability':_0x25a76f,..._0x5ca9b6};_0x425e46['file']=_0x47fba5,_0x425e46['args']=_0x2aa5db;const _0x21c618={};_0x21c618['configuration']=_0x425e46,_0x550e99=_0x21c618,_0x468944[_0x24d303(0xcf)](_0x550e99);}const _0x4d5a97=await TestHubHandler[_0x24d303(0xa1)](_0x345b02[_0x24d303(0xa8)],_0x2864e5),_0x228685=_0x345b02[_0x24d303(0xd2)](_0x2864e5['config'][_0x24d303(0xc6)][_0x24d303(0xc3)]||0x1,_0x2864e5[_0x24d303(0xa5)][_0x24d303(0xb8)]||0x1);PerformanceTester[_0x24d303(0xa2)](PerformanceEvents[_0x24d303(0xc9)]),_0x345b02[_0x24d303(0xd1)](parallelVanillaRun,_0x468944,_0x228685)[_0x24d303(0xc5)](_0x589452=>{})[_0x24d303(0xc4)](async()=>{const _0x2dd8f2=_0x24d303;PerformanceTester[_0x2dd8f2(0xa9)](PerformanceEvents[_0x2dd8f2(0xc0)]),await utilities[_0x2dd8f2(0xb1)](_0x2864e5);});}module[a92_0x46f5a8(0xbf)]=run;function a92_0x1fa9(_0x150e7f,_0x32790c){const _0x2f7091=a92_0x2f70();return a92_0x1fa9=function(_0x1fa98e,_0x30a140){_0x1fa98e=_0x1fa98e-0x9c;let _0x3f505d=_0x2f7091[_0x1fa98e];return _0x3f505d;},a92_0x1fa9(_0x150e7f,_0x32790c);}function a92_0x2f70(){const _0x49b6d3=['Gunvq','exports','SDK_CLEANUP','56pmnXWc','RJLHA','length','finally','then','platforms','330897AdrRGw','initialize','SDK_SETUP','forEach','12FKoTqz','540mMwqZk','zWLVy','98912TNYhbC','push','\x20doesn\x27t\x20exist','csHrZ','ASvXP','useW3C','cwd','modifyBrowserStackW3CCaps','modifyBrowserStackCaps','../../helpers/utilities','vanilla','launchBuild','end','isUndefined','644493gkyHwO','config','../../helpers/testhub/testhubHandler','../../helpers/helper','DDCHh','start','Config\x20yml\x20is\x20required','configuration','135925mLJqUl','../../helpers/BrowserStackSetup','assign','join','../test-runner','finalExecution','getPlatformName','../../helpers/performance/constants','170397cfIKAp','getHubUrl','qjQWU','250652DtcDwI','parallelsPerPlatform','EVENTS','file','proxySettings','456414nMwDcp','../../helpers/performance/performance-tester'];a92_0x2f70=function(){return _0x49b6d3;};return a92_0x2f70();}
|
package/src/browserStackSdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x10fe72=a93_0x5145;(function(_0x478c59,_0x591e34){const _0x308f8c=a93_0x5145,_0x2081c0=_0x478c59();while(!![]){try{const _0x596ad9=-parseInt(_0x308f8c(0x1e2))/0x1*(parseInt(_0x308f8c(0x1e1))/0x2)+-parseInt(_0x308f8c(0x1e5))/0x3*(parseInt(_0x308f8c(0x1e0))/0x4)+-parseInt(_0x308f8c(0x1de))/0x5*(-parseInt(_0x308f8c(0x1c8))/0x6)+-parseInt(_0x308f8c(0x1ca))/0x7+parseInt(_0x308f8c(0x1dc))/0x8*(-parseInt(_0x308f8c(0x1eb))/0x9)+parseInt(_0x308f8c(0x1ea))/0xa+parseInt(_0x308f8c(0x1d7))/0xb;if(_0x596ad9===_0x591e34)break;else _0x2081c0['push'](_0x2081c0['shift']());}catch(_0x146617){_0x2081c0['push'](_0x2081c0['shift']());}}}(a93_0x5274,0xd2105));const TestMetadata=require(a93_0x10fe72(0x1e6));class BrowserStackSdk{static[a93_0x10fe72(0x1cb)](){const _0x330424=a93_0x10fe72,_0x37ebb0={};_0x37ebb0['FJLMK']=_0x330424(0x1c6),_0x37ebb0[_0x330424(0x1c7)]=_0x330424(0x1cc),_0x37ebb0['QmGHp']=_0x330424(0x1cf),_0x37ebb0[_0x330424(0x1d6)]=_0x330424(0x1d8),_0x37ebb0[_0x330424(0x1cd)]=_0x330424(0x1d5),_0x37ebb0['LJOIq']=_0x330424(0x1da),_0x37ebb0[_0x330424(0x1c9)]='device',_0x37ebb0[_0x330424(0x1e9)]='deviceName',_0x37ebb0['soGbY']='platform',_0x37ebb0[_0x330424(0x1e4)]='platformName',_0x37ebb0[_0x330424(0x1db)]=_0x330424(0x1e3),_0x37ebb0['YYNSI']='platformVersion',_0x37ebb0[_0x330424(0x1df)]=_0x330424(0x1e7);const _0x4ab2f3=_0x37ebb0,_0x527044={};if(global[_0x330424(0x1d9)]){const _0x53685e=global[_0x330424(0x1d9)],_0x35dc05=_0x53685e[_0x4ab2f3[_0x330424(0x1d4)]]||_0x53685e[_0x4ab2f3[_0x330424(0x1c7)]],_0x3e3e44=_0x53685e[_0x4ab2f3[_0x330424(0x1d2)]]||_0x53685e[_0x4ab2f3[_0x330424(0x1d6)]],_0x37171a=_0x53685e[_0x4ab2f3[_0x330424(0x1cd)]]||_0x53685e[_0x4ab2f3['LJOIq']],_0x42c2d8=_0x53685e[_0x4ab2f3[_0x330424(0x1c9)]]||_0x53685e[_0x4ab2f3['MbdQz']],_0xdc841b=_0x53685e[_0x4ab2f3[_0x330424(0x1ce)]]||_0x53685e[_0x4ab2f3[_0x330424(0x1e4)]],_0x15c564=_0x53685e[_0x4ab2f3['oRYsA']]||_0x53685e[_0x4ab2f3[_0x330424(0x1d1)]];_0x53685e['os']&&(_0x527044['os']=_0x53685e['os']),_0x35dc05&&(_0x527044[_0x4ab2f3[_0x330424(0x1c7)]]=_0x35dc05),_0x3e3e44&&(_0x527044[_0x4ab2f3['pgfBO']]=_0x3e3e44),_0x37171a&&(_0x527044[_0x4ab2f3[_0x330424(0x1d3)]]=_0x37171a),_0x42c2d8&&(_0x527044[_0x4ab2f3[_0x330424(0x1e9)]]=_0x42c2d8),_0xdc841b&&(_0x527044[_0x4ab2f3['kGMpj']]=_0xdc841b),_0x15c564&&(_0x527044[_0x4ab2f3[_0x330424(0x1d1)]]=_0x15c564),_0x53685e[_0x4ab2f3[_0x330424(0x1df)]]&&(_0x527044[_0x4ab2f3[_0x330424(0x1df)]]=_0x53685e[_0x4ab2f3['MEYVj']]);}return _0x527044;}static[a93_0x10fe72(0x1e8)](_0x228060={}){const _0x1f5b93=a93_0x10fe72;TestMetadata[_0x1f5b93(0x1dd)](_0x228060);}}function a93_0x5274(){const _0x4e6d88=['pgfBO','27239366AtMXdp','browserName','__platformCaps','browserVersion','oRYsA','184KQooPH','set','599475juWkub','MEYVj','4XxJGYB','688lnhVuy','2153UCGvbM','platform_version','kGMpj','4431606aywAdG','./helpers/metadata','customVariables','setTestMetadata','MbdQz','10845760tPoCbv','379881CaZLPe','os_version','KRFmA','42ZkWCkn','xzScF','2457595PMwrOP','getCurrentPlatform','osVersion','oklZy','soGbY','browser','exports','YYNSI','QmGHp','LJOIq','FJLMK','browser_version'];a93_0x5274=function(){return _0x4e6d88;};return a93_0x5274();}function a93_0x5145(_0x1c1992,_0x485e7d){const _0x527401=a93_0x5274();return a93_0x5145=function(_0x5145b1,_0x579834){_0x5145b1=_0x5145b1-0x1c6;let _0x582991=_0x527401[_0x5145b1];return _0x582991;},a93_0x5145(_0x1c1992,_0x485e7d);}module[a93_0x10fe72(0x1d0)]=BrowserStackSdk;
|