browserstack-node-sdk 1.50.6 → 1.50.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a85_0x24e28a=a85_0x2500;(function(_0xf9c665,_0x20815e){const _0x316a8b=a85_0x2500,_0x29ce43=_0xf9c665();while(!![]){try{const _0x26cd41=-parseInt(_0x316a8b(0x185))/0x1+-parseInt(_0x316a8b(0x196))/0x2+parseInt(_0x316a8b(0x186))/0x3+parseInt(_0x316a8b(0x1b0))/0x4+-parseInt(_0x316a8b(0x173))/0x5+-parseInt(_0x316a8b(0x1a7))/0x6+parseInt(_0x316a8b(0x190))/0x7;if(_0x26cd41===_0x20815e)break;else _0x29ce43['push'](_0x29ce43['shift']());}catch(_0x13ce55){_0x29ce43['push'](_0x29ce43['shift']());}}}(a85_0x4841,0x714d0));const util=require(a85_0x24e28a(0x1c1)),BaseModule=require(a85_0x24e28a(0x1c4)),{createClassLogger}=require('../../../helpers/classLogger.js'),AutomationFramework=require(a85_0x24e28a(0x1c2)),AutomationFrameworkState=require(a85_0x24e28a(0x198)),HookState=require(a85_0x24e28a(0x1a4)),TestFramework=require('../framework/testFramework.js'),TestFrameworkState=require(a85_0x24e28a(0x1c3)),PlaywrightDriverModule=require(a85_0x24e28a(0x1b1)),TestFrameworkConstants=require('../framework/constants/testFrameworkConstants.js'),GrpcClient=require(a85_0x24e28a(0x1a8)),CLIUtils=require(a85_0x24e28a(0x1ba)),TestInfo=require(a85_0x24e28a(0x1d2)),testHubConstants=require(a85_0x24e28a(0x179)),{FRAMEWORKS}=require(a85_0x24e28a(0x1c9)),helper=require(a85_0x24e28a(0x1a6)),LoadTestModule=require(a85_0x24e28a(0x195)),JestUtils=require(a85_0x24e28a(0x191)),BrowserstackCLI=require(a85_0x24e28a(0x1dc)),{getPlaywrightProvider,getProductForSession}=require('../../../helpers/helper.js');class TestHubModule extends BaseModule{['logger']=createClassLogger(a85_0x24e28a(0x1d9));constructor(_0x4c06d0,_0x525e27=null){const _0x2f3308=a85_0x24e28a,_0x52f317={};_0x52f317[_0x2f3308(0x18f)]=_0x2f3308(0x172),_0x52f317[_0x2f3308(0x1bf)]='TestHubModule';const _0xc98d44=_0x52f317,_0x80445f=_0xc98d44['jmQPL'][_0x2f3308(0x1d0)]('|');let _0x36fb48=0x0;while(!![]){switch(_0x80445f[_0x36fb48++]){case'0':super(_0x525e27);continue;case'1':process['env'][testHubConstants['ENV_VAR'][_0x2f3308(0x1cc)]]=this[_0x2f3308(0x180)][_0x2f3308(0x1ab)]();continue;case'2':process[_0x2f3308(0x181)][testHubConstants[_0x2f3308(0x18e)][_0x2f3308(0x1da)]]=this[_0x2f3308(0x180)][_0x2f3308(0x1b9)]();continue;case'3':this[_0x2f3308(0x19a)]=new JestUtils();continue;case'4':AutomationFramework[_0x2f3308(0x1d3)](AutomationFrameworkState[_0x2f3308(0x19b)],HookState[_0x2f3308(0x1d5)],this[_0x2f3308(0x16e)][_0x2f3308(0x1a0)](this));continue;case'5':Object['values'](TestFrameworkState)[_0x2f3308(0x1c5)](_0x5263ec=>{const _0x17e6e8=_0x2f3308;Object[_0x17e6e8(0x177)](HookState)['forEach'](_0x3ad035=>{const _0x2df414=_0x17e6e8;TestFramework[_0x2df414(0x1d3)](_0x5263ec,_0x3ad035,this[_0x2df414(0x171)]['bind'](this));});});continue;case'6':BrowserstackCLI[_0x2f3308(0x199)]=this[_0x2f3308(0x180)][_0x2f3308(0x1ab)]();continue;case'7':this['name']=_0xc98d44['mwQGk'];continue;case'8':this[_0x2f3308(0x180)]=_0x4c06d0;continue;}break;}}[a85_0x24e28a(0x1bd)](){const _0x172551=a85_0x24e28a;return TestHubModule[_0x172551(0x189)];}[a85_0x24e28a(0x171)](_0x1a6a2e){const _0x437269=a85_0x24e28a,_0x3014b2={};_0x3014b2[_0x437269(0x1aa)]=function(_0x384b96,_0x398cef){return _0x384b96===_0x398cef;};const _0x1855ce=_0x3014b2,_0x4e21fa=_0x1a6a2e['instance'],_0x1ce9d7=_0x4e21fa[_0x437269(0x1b4)]();(_0x1855ce[_0x437269(0x1aa)](_0x1ce9d7,TestFrameworkState['TEST'])||CLIUtils[_0x437269(0x1a1)](_0x1ce9d7[_0x437269(0x1c8)]()['split']('.')[0x1]))&&this['sendTestFrameworkEvent'](_0x1a6a2e);}async['sendTestFrameworkEvent'](_0x4a6214){const _0x12c010=a85_0x24e28a,_0x4097d0={};_0x4097d0[_0x12c010(0x1ca)]=function(_0x33262e,_0x151141){return _0x33262e===_0x151141;},_0x4097d0[_0x12c010(0x18b)]='sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event';const _0x367bda=_0x4097d0;try{const _0x3b9732=BrowserstackCLI[_0x12c010(0x17c)]()[_0x12c010(0x19e)]()[_0x12c010(0x197)](_0x4a6214);if(!_0x3b9732||_0x367bda[_0x12c010(0x1ca)](Object[_0x12c010(0x1ce)](_0x3b9732)[_0x12c010(0x1a2)],0x0)){this[_0x12c010(0x1c6)][_0x12c010(0x19f)](_0x367bda[_0x12c010(0x18b)]);return;}const _0x1d803f=await GrpcClient[_0x12c010(0x17c)]()[_0x12c010(0x16f)](_0x3b9732);this[_0x12c010(0x1c6)]['debug'](_0x12c010(0x176)+_0x3b9732['testFrameworkState']+_0x12c010(0x1a5)+_0x3b9732['hookState']);}catch(_0x167360){this[_0x12c010(0x1c6)]['error']('Error\x20in\x20sendTestFrameworkEvent:\x20'+util[_0x12c010(0x1b8)](_0x167360));}}async[a85_0x24e28a(0x16e)](_0x608dad){const _0x96e429=a85_0x24e28a,_0x262d1e={'rjZwI':function(_0x1acfec,_0x3bfcb6){return _0x1acfec===_0x3bfcb6;},'hMKAU':_0x96e429(0x1af),'QJUxY':function(_0x54ac66,_0x28b32e){return _0x54ac66(_0x28b32e);},'BAaKe':function(_0x2a2971){return _0x2a2971();},'XFcUU':_0x96e429(0x183),'EQPAq':function(_0x28a0a9,_0x1f352c){return _0x28a0a9===_0x1f352c;}};try{if(_0x608dad[_0x96e429(0x18a)]){const _0x226126=this[_0x96e429(0x192)](_0x608dad);this[_0x96e429(0x1c6)][_0x96e429(0x19f)](_0x96e429(0x1ac)+_0x226126);if(this['testFrameworkData']&&_0x262d1e[_0x96e429(0x19d)](this[_0x96e429(0x1a3)][_0x96e429(0x194)],FRAMEWORKS[_0x96e429(0x1be)])&&!_0x608dad[_0x96e429(0x1d7)]){this[_0x96e429(0x1c6)][_0x96e429(0x19f)](_0x262d1e['hMKAU']);return;}let _0x1444a5,_0x5bdbeb;if(this['testFrameworkData']&&_0x262d1e['rjZwI'](this[_0x96e429(0x1a3)][_0x96e429(0x194)],FRAMEWORKS[_0x96e429(0x1b6)]))_0x1444a5=_0x226126,_0x5bdbeb=TestInfo[_0x96e429(0x1ad)](_0x1444a5);else this[_0x96e429(0x1a3)]&&_0x262d1e[_0x96e429(0x19d)](this[_0x96e429(0x1a3)][_0x96e429(0x194)],FRAMEWORKS[_0x96e429(0x1be)])?(_0x1444a5=this[_0x96e429(0x19a)][_0x96e429(0x188)](_0x608dad['testInfo']),this[_0x96e429(0x1c6)]['debug'](_0x96e429(0x1db)+_0x1444a5)):(_0x1444a5=TestInfo[_0x96e429(0x1cb)](_0x608dad[_0x96e429(0x1d7)],_0x608dad[_0x96e429(0x1d7)]['retry']),_0x5bdbeb=TestInfo[_0x96e429(0x1ad)](_0x1444a5));const _0x4432e9=TestInfo[_0x96e429(0x175)](_0x1444a5),_0x28a455=_0x608dad['instance'],_0x544e4c=AutomationFramework[_0x96e429(0x1b2)](_0x28a455,PlaywrightDriverModule[_0x96e429(0x1bc)]),_0x53f218=_0x4432e9?.[TestFrameworkConstants[_0x96e429(0x1b5)]]||this[_0x96e429(0x1a3)]&&this[_0x96e429(0x1a3)][_0x96e429(0x194)],_0x13b390=_0x4432e9?.[TestFrameworkConstants[_0x96e429(0x170)]]||this[_0x96e429(0x1a3)]&&this[_0x96e429(0x1a3)][_0x96e429(0x1c0)],_0x5228e7=TestFrameworkState[_0x96e429(0x1cd)]['toString']()[_0x96e429(0x1d0)]('.')[0x1],_0x21d8ea=HookState[_0x96e429(0x1d5)][_0x96e429(0x1c8)]()[_0x96e429(0x1d0)]('.')[0x1],_0x7064f3=_0x28a455[_0x96e429(0x1cf)](),_0x385088=AutomationFramework[_0x96e429(0x1b2)](_0x28a455,PlaywrightDriverModule['KEY_HUB_URL'],''),_0x2b9b0a={'provider':_0x262d1e[_0x96e429(0x17f)](getPlaywrightProvider,_0x385088),'frameworkName':_0x28a455[_0x96e429(0x1b3)],'frameworkVersion':_0x28a455[_0x96e429(0x18c)],'frameworkSessionId':LoadTestModule[_0x96e429(0x193)]()?LoadTestModule[_0x96e429(0x1d1)]():AutomationFramework[_0x96e429(0x1b2)](_0x28a455,PlaywrightDriverModule[_0x96e429(0x17e)],''),'ref':_0x28a455[_0x96e429(0x17d)](),'hubUrl':_0x385088,'product':_0x262d1e[_0x96e429(0x174)](getProductForSession)};let _0x2c4990=AutomationFramework['getState'](_0x28a455,PlaywrightDriverModule[_0x96e429(0x17a)],{});_0x2c4990=Buffer['from'](JSON[_0x96e429(0x187)](_0x2c4990))['toString'](_0x262d1e[_0x96e429(0x1d8)]);const _0x54bc22={'hash':_0x7064f3[_0x96e429(0x1d4)](),'threadId':_0x7064f3[_0x96e429(0x1c7)]()[_0x96e429(0x1c8)](),'processId':_0x7064f3[_0x96e429(0x182)]()[_0x96e429(0x1c8)]()},_0x14212e={};_0x14212e[_0x96e429(0x178)]=_0x1444a5;const _0x2d0347={};_0x2d0347[_0x96e429(0x1d6)]=_0x5bdbeb;const _0x519d67={'platformIndex':_0x544e4c,'testFrameworkName':_0x53f218,'testFrameworkVersion':_0x13b390,'testFrameworkState':_0x5228e7,'testHookState':_0x21d8ea,...this[_0x96e429(0x1a3)]&&_0x262d1e[_0x96e429(0x184)](this[_0x96e429(0x1a3)][_0x96e429(0x194)],FRAMEWORKS[_0x96e429(0x1be)])?_0x14212e:_0x2d0347,'automationSession':_0x2b9b0a,'capabilities':_0x2c4990,'executionContext':_0x54bc22};this['logger'][_0x96e429(0x19f)](_0x96e429(0x19c)+util[_0x96e429(0x1b8)](_0x519d67));const _0x30715f=await GrpcClient[_0x96e429(0x17c)]()['testSessionEvent'](_0x519d67);this[_0x96e429(0x1c6)][_0x96e429(0x19f)]('onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20'+_0x226126+(this['testFrameworkData']&&_0x262d1e['rjZwI'](this[_0x96e429(0x1a3)][_0x96e429(0x194)],FRAMEWORKS[_0x96e429(0x1be)])?_0x96e429(0x17b)+_0x1444a5:''));}}catch(_0x28e8e1){this[_0x96e429(0x1c6)][_0x96e429(0x1bb)](_0x96e429(0x1a9)+util[_0x96e429(0x1b8)](_0x28e8e1));}}}TestHubModule[a85_0x24e28a(0x189)]='TestHubModule',TestHubModule[a85_0x24e28a(0x18d)]=a85_0x24e28a(0x1b7),module[a85_0x24e28a(0x1ae)]=TestHubModule;function a85_0x2500(_0x351111,_0x152fc1){const _0x4841c2=a85_0x4841();return a85_0x2500=function(_0x250011,_0xf8342b){_0x250011=_0x250011-0x16e;let _0x297cf1=_0x4841c2[_0x250011];return _0x297cf1;},a85_0x2500(_0x351111,_0x152fc1);}function a85_0x4841(){const _0x10336e=['onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','3124472qKohJd','./playwrightDriverModule.js','getState','frameworkName','getCurrentTestState','KEY_TEST_FRAMEWORK_NAME','CUCUMBER','test_deferred','format','getJwt','../cliUtils.js','error','KEY_PLATFORM_INDEX','getModuleName','JEST','mwQGk','version','util','../framework/automationFramework.js','../state/testFrameworkState.js','./baseModule','forEach','logger','getThreadId','toString','../../../helpers/test-observability/constants.js','LYBUV','getTestIdentifierFromTestInfo','BROWSERSTACK_TESTHUB_UUID','TEST','keys','getContext','split','getLTSSessionId','../TestInfo.js','registerObserver','getId','POST','testUuid','testInfo','XFcUU','TestHubModule','BROWSERSTACK_TESTHUB_JWT','onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20','../browserstackCLI.js','onPageCreate','testFrameworkEvent','KEY_TEST_FRAMEWORK_VERSION','onAllTestEvents','0|7|8|3|4|5|2|1|6','2790130GzPVUx','BAaKe','getTestDetails','sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20','values','test_identifier','../../../helpers/testhub/constants','KEY_CAPABILITIES',',\x20test_identifier:\x20','getInstance','getRef','KEY_SESSION_ID','QJUxY','testhubConfig','env','getProcessId','base64','EQPAq','595447YfzMsl','220488sPpMAx','stringify','recreateIdentifierFromTestInfo','MODULE_NAME','page','EMwvH','frameworkVersion','KEY_TEST_DEFERRED','ENV_VAR','jmQPL','12217226TyYtxz','../utils/jest-utils.js','getTestId','isLTSSession','name','./loadTestModule.js','229416AqNkbZ','createTestFrameworkEventPayload','../state/automationFrameworkState.js','O11yHashedID','jestUtils','CREATE','onPageCreate\x20CBTSession\x20payload:\x20','rjZwI','getTestFramework','debug','bind','matchHookRegex','length','testFrameworkData','../state/hookState.js','\x20hookState:\x20','../../../helpers/helper.js','5206026puCiwR','../grpcClient.js','Error\x20in\x20sending\x20CBTSession:\x20','ZAGpt','getBuildHashedId','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','getTestUUID','exports'];a85_0x4841=function(){return _0x10336e;};return a85_0x4841();}
|
|
1
|
+
const a85_0x38065e=a85_0x5618;function a85_0x5618(_0x1a774c,_0x4b6db0){const _0x26a9ba=a85_0x26a9();return a85_0x5618=function(_0x561818,_0x3b19c2){_0x561818=_0x561818-0x154;let _0x1ac0b4=_0x26a9ba[_0x561818];return _0x1ac0b4;},a85_0x5618(_0x1a774c,_0x4b6db0);}(function(_0x4ab3dc,_0x13451e){const _0x258500=a85_0x5618,_0xac0d39=_0x4ab3dc();while(!![]){try{const _0x4320a1=parseInt(_0x258500(0x1b7))/0x1+-parseInt(_0x258500(0x159))/0x2+parseInt(_0x258500(0x15a))/0x3*(-parseInt(_0x258500(0x184))/0x4)+parseInt(_0x258500(0x1a2))/0x5+parseInt(_0x258500(0x1bd))/0x6+parseInt(_0x258500(0x18a))/0x7*(-parseInt(_0x258500(0x171))/0x8)+-parseInt(_0x258500(0x17c))/0x9*(-parseInt(_0x258500(0x19e))/0xa);if(_0x4320a1===_0x13451e)break;else _0xac0d39['push'](_0xac0d39['shift']());}catch(_0xa56442){_0xac0d39['push'](_0xac0d39['shift']());}}}(a85_0x26a9,0xb89f0));function a85_0x26a9(){const _0x9500ae=['../../../helpers/helper.js','Error\x20in\x20sendTestFrameworkEvent:\x20','../framework/automationFramework.js','\x20hookState:\x20','../framework/testFramework.js','env','Error\x20in\x20sending\x20CBTSession:\x20','BcRdy','sjmyp','20GzOhaR','KEY_TEST_FRAMEWORK_VERSION','from','getProcessId','1757075TuoFkq','eGWjv','values','getTestIdentifierFromTestInfo','testSessionEvent','TestHubModule','debug','uQBNO','onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','version','onAllTestEvents','getRef','testFrameworkData','getState','getInstance','dHmCC','pLmfL','lGssO','name','AhQOy','377946VVjYjh','logger','KEY_SESSION_ID','testInfo','exports','retry','2934486GOTRIu','getId','keys','CREATE','testUuid','DZnSB','../../../helpers/test-observability/constants.js','onPageCreate\x20CBTSession\x20payload:\x20','getJwt','getTestFramework','884828ylurtn','855JksjRu','TEST','../../../helpers/testhub/constants','bind','page','forEach','../TestInfo.js','JEST','format','getContext','0|7|6|4|8|1|3|2|5','hookState','BROWSERSTACK_TESTHUB_JWT','getTestId','matchHookRegex','../browserstackCLI.js','sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20','../state/automationFrameworkState.js','./playwrightDriverModule.js','O11yHashedID','isLTSSession','toString','split','40TezofP','getModuleName','KEY_CAPABILITIES','../state/testFrameworkState.js','../utils/jest-utils.js','registerObserver',',\x20test_identifier:\x20','KEY_HUB_URL','./loadTestModule.js','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','createTestFrameworkEventPayload','10751445NHSTAN','BROWSERSTACK_TESTHUB_UUID','getTestUUID','MODULE_NAME','sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event','getTestDetails','error','testhubConfig','17572fygKym','./baseModule','onPageCreate','util','POST','testFrameworkEvent','1619835YITRxW','ENV_VAR','instance','sendTestFrameworkEvent','../../../helpers/classLogger.js','jestUtils','test_identifier','CUCUMBER','uoRMY','frameworkVersion','getCurrentTestState'];a85_0x26a9=function(){return _0x9500ae;};return a85_0x26a9();}const util=require(a85_0x38065e(0x187)),BaseModule=require(a85_0x38065e(0x185)),{createClassLogger}=require(a85_0x38065e(0x18e)),AutomationFramework=require(a85_0x38065e(0x197)),AutomationFrameworkState=require(a85_0x38065e(0x16b)),HookState=require('../state/hookState.js'),TestFramework=require(a85_0x38065e(0x199)),TestFrameworkState=require(a85_0x38065e(0x174)),PlaywrightDriverModule=require(a85_0x38065e(0x16c)),TestFrameworkConstants=require('../framework/constants/testFrameworkConstants.js'),GrpcClient=require('../grpcClient.js'),CLIUtils=require('../cliUtils.js'),TestInfo=require(a85_0x38065e(0x160)),testHubConstants=require(a85_0x38065e(0x15c)),{FRAMEWORKS}=require(a85_0x38065e(0x155)),helper=require('../../../helpers/helper.js'),LoadTestModule=require(a85_0x38065e(0x179)),JestUtils=require(a85_0x38065e(0x175)),BrowserstackCLI=require(a85_0x38065e(0x169)),{getPlaywrightProvider,getProductForSession}=require(a85_0x38065e(0x195));class TestHubModule extends BaseModule{['logger']=createClassLogger('TestHubModule');constructor(_0x3da5e8,_0x141a1d=null){const _0x3e2086=a85_0x38065e,_0x44a2c9={};_0x44a2c9[_0x3e2086(0x1b6)]=_0x3e2086(0x164),_0x44a2c9[_0x3e2086(0x19c)]=_0x3e2086(0x1a7);const _0x490852=_0x44a2c9,_0x286642=_0x490852[_0x3e2086(0x1b6)]['split']('|');let _0x5e6274=0x0;while(!![]){switch(_0x286642[_0x5e6274++]){case'0':super(_0x141a1d);continue;case'1':Object['values'](TestFrameworkState)[_0x3e2086(0x15f)](_0x2a2875=>{const _0x6ff188=_0x3e2086;Object[_0x6ff188(0x1a4)](HookState)[_0x6ff188(0x15f)](_0x57b2a3=>{const _0x160c4e=_0x6ff188;TestFramework[_0x160c4e(0x176)](_0x2a2875,_0x57b2a3,this[_0x160c4e(0x1ad)]['bind'](this));});});continue;case'2':process[_0x3e2086(0x19a)][testHubConstants['ENV_VAR'][_0x3e2086(0x17d)]]=this[_0x3e2086(0x183)]['getBuildHashedId']();continue;case'3':process['env'][testHubConstants[_0x3e2086(0x18b)][_0x3e2086(0x166)]]=this[_0x3e2086(0x183)][_0x3e2086(0x157)]();continue;case'4':this[_0x3e2086(0x18f)]=new JestUtils();continue;case'5':BrowserstackCLI[_0x3e2086(0x16d)]=this['testhubConfig']['getBuildHashedId']();continue;case'6':this[_0x3e2086(0x183)]=_0x3da5e8;continue;case'7':this[_0x3e2086(0x1b5)]=_0x490852[_0x3e2086(0x19c)];continue;case'8':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x3e2086(0x1c0)],HookState['POST'],this[_0x3e2086(0x186)][_0x3e2086(0x15d)](this));continue;}break;}}[a85_0x38065e(0x172)](){const _0x166de7=a85_0x38065e;return TestHubModule[_0x166de7(0x17f)];}[a85_0x38065e(0x1ad)](_0x9bd7f8){const _0x803499=a85_0x38065e,_0x2434d7={};_0x2434d7[_0x803499(0x1b2)]=function(_0x20967d,_0x336b99){return _0x20967d===_0x336b99;};const _0x4ad428=_0x2434d7,_0x4e2d3e=_0x9bd7f8[_0x803499(0x18c)],_0x302878=_0x4e2d3e[_0x803499(0x194)]();(_0x4ad428[_0x803499(0x1b2)](_0x302878,TestFrameworkState[_0x803499(0x15b)])||CLIUtils[_0x803499(0x168)](_0x302878[_0x803499(0x16f)]()[_0x803499(0x170)]('.')[0x1]))&&this['sendTestFrameworkEvent'](_0x9bd7f8);}async[a85_0x38065e(0x18d)](_0x532e70){const _0xc8a6f2=a85_0x38065e,_0x5ef5b5={};_0x5ef5b5[_0xc8a6f2(0x192)]=function(_0x5a3518,_0x5e4ec0){return _0x5a3518===_0x5e4ec0;},_0x5ef5b5[_0xc8a6f2(0x1a3)]=_0xc8a6f2(0x180);const _0x21e8f7=_0x5ef5b5;try{const _0x533d3a=BrowserstackCLI[_0xc8a6f2(0x1b1)]()[_0xc8a6f2(0x158)]()[_0xc8a6f2(0x17b)](_0x532e70);if(!_0x533d3a||_0x21e8f7[_0xc8a6f2(0x192)](Object[_0xc8a6f2(0x1bf)](_0x533d3a)['length'],0x0)){this[_0xc8a6f2(0x1b8)][_0xc8a6f2(0x1a8)](_0x21e8f7[_0xc8a6f2(0x1a3)]);return;}const _0x22a1dd=await GrpcClient[_0xc8a6f2(0x1b1)]()[_0xc8a6f2(0x189)](_0x533d3a);this[_0xc8a6f2(0x1b8)][_0xc8a6f2(0x1a8)](_0xc8a6f2(0x16a)+_0x533d3a['testFrameworkState']+_0xc8a6f2(0x198)+_0x533d3a[_0xc8a6f2(0x165)]);}catch(_0x3b56f2){this[_0xc8a6f2(0x1b8)][_0xc8a6f2(0x182)](_0xc8a6f2(0x196)+util[_0xc8a6f2(0x162)](_0x3b56f2));}}async[a85_0x38065e(0x186)](_0x471b26){const _0x1f4b1d=a85_0x38065e,_0x4d2496={'lGssO':function(_0x9a4de5,_0x2a05cc){return _0x9a4de5===_0x2a05cc;},'uQBNO':_0x1f4b1d(0x1aa),'DZnSB':function(_0x2a297a,_0x151005){return _0x2a297a===_0x151005;},'qgxRR':function(_0x46b801,_0x2d0b0d){return _0x46b801(_0x2d0b0d);},'sjmyp':function(_0x32b58c){return _0x32b58c();},'pLmfL':'base64'};try{if(_0x471b26[_0x1f4b1d(0x15e)]){const _0x5dfdb5=this[_0x1f4b1d(0x167)](_0x471b26);this[_0x1f4b1d(0x1b8)][_0x1f4b1d(0x1a8)](_0x1f4b1d(0x1ab)+_0x5dfdb5);if(this['testFrameworkData']&&_0x4d2496[_0x1f4b1d(0x1b4)](this['testFrameworkData'][_0x1f4b1d(0x1b5)],FRAMEWORKS['JEST'])&&!_0x471b26[_0x1f4b1d(0x1ba)]){this[_0x1f4b1d(0x1b8)][_0x1f4b1d(0x1a8)](_0x4d2496[_0x1f4b1d(0x1a9)]);return;}let _0x44c003,_0x402b1d;if(this[_0x1f4b1d(0x1af)]&&_0x4d2496[_0x1f4b1d(0x1b4)](this[_0x1f4b1d(0x1af)][_0x1f4b1d(0x1b5)],FRAMEWORKS[_0x1f4b1d(0x191)]))_0x44c003=_0x5dfdb5,_0x402b1d=TestInfo[_0x1f4b1d(0x17e)](_0x44c003);else this[_0x1f4b1d(0x1af)]&&_0x4d2496[_0x1f4b1d(0x154)](this[_0x1f4b1d(0x1af)][_0x1f4b1d(0x1b5)],FRAMEWORKS[_0x1f4b1d(0x161)])?(_0x44c003=this['jestUtils']['recreateIdentifierFromTestInfo'](_0x471b26[_0x1f4b1d(0x1ba)]),this[_0x1f4b1d(0x1b8)][_0x1f4b1d(0x1a8)]('onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20'+_0x44c003)):(_0x44c003=TestInfo[_0x1f4b1d(0x1a5)](_0x471b26['testInfo'],_0x471b26[_0x1f4b1d(0x1ba)][_0x1f4b1d(0x1bc)]),_0x402b1d=TestInfo['getTestUUID'](_0x44c003));const _0xe1ff97=TestInfo[_0x1f4b1d(0x181)](_0x44c003),_0xd149f1=_0x471b26['instance'],_0x405905=AutomationFramework[_0x1f4b1d(0x1b0)](_0xd149f1,PlaywrightDriverModule['KEY_PLATFORM_INDEX']),_0x18478e=_0xe1ff97?.[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]||this['testFrameworkData']&&this[_0x1f4b1d(0x1af)]['name'],_0x5d0003=_0xe1ff97?.[TestFrameworkConstants[_0x1f4b1d(0x19f)]]||this[_0x1f4b1d(0x1af)]&&this[_0x1f4b1d(0x1af)][_0x1f4b1d(0x1ac)],_0x37c069=TestFrameworkState['TEST'][_0x1f4b1d(0x16f)]()[_0x1f4b1d(0x170)]('.')[0x1],_0x3d065a=HookState[_0x1f4b1d(0x188)][_0x1f4b1d(0x16f)]()[_0x1f4b1d(0x170)]('.')[0x1],_0x1fe101=_0xd149f1[_0x1f4b1d(0x163)](),_0x49cc6f=AutomationFramework[_0x1f4b1d(0x1b0)](_0xd149f1,PlaywrightDriverModule[_0x1f4b1d(0x178)],''),_0x20ab51={'provider':_0x4d2496['qgxRR'](getPlaywrightProvider,_0x49cc6f),'frameworkName':_0xd149f1['frameworkName'],'frameworkVersion':_0xd149f1[_0x1f4b1d(0x193)],'frameworkSessionId':LoadTestModule[_0x1f4b1d(0x16e)]()?LoadTestModule['getLTSSessionId']():AutomationFramework[_0x1f4b1d(0x1b0)](_0xd149f1,PlaywrightDriverModule[_0x1f4b1d(0x1b9)],''),'ref':_0xd149f1[_0x1f4b1d(0x1ae)](),'hubUrl':_0x49cc6f,'product':_0x4d2496[_0x1f4b1d(0x19d)](getProductForSession)};let _0x5e778f=AutomationFramework['getState'](_0xd149f1,PlaywrightDriverModule[_0x1f4b1d(0x173)],{});_0x5e778f=Buffer[_0x1f4b1d(0x1a0)](JSON['stringify'](_0x5e778f))[_0x1f4b1d(0x16f)](_0x4d2496[_0x1f4b1d(0x1b3)]);const _0x1037c6={'hash':_0x1fe101[_0x1f4b1d(0x1be)](),'threadId':_0x1fe101['getThreadId']()[_0x1f4b1d(0x16f)](),'processId':_0x1fe101[_0x1f4b1d(0x1a1)]()['toString']()},_0x2d49c7={};_0x2d49c7[_0x1f4b1d(0x190)]=_0x44c003;const _0x485b98={};_0x485b98[_0x1f4b1d(0x1c1)]=_0x402b1d;const _0x291d03={'platformIndex':_0x405905,'testFrameworkName':_0x18478e,'testFrameworkVersion':_0x5d0003,'testFrameworkState':_0x37c069,'testHookState':_0x3d065a,...this['testFrameworkData']&&_0x4d2496['lGssO'](this[_0x1f4b1d(0x1af)]['name'],FRAMEWORKS['JEST'])?_0x2d49c7:_0x485b98,'automationSession':_0x20ab51,'capabilities':_0x5e778f,'executionContext':_0x1037c6};this[_0x1f4b1d(0x1b8)]['debug'](_0x1f4b1d(0x156)+util[_0x1f4b1d(0x162)](_0x291d03));const _0x2bb31c=await GrpcClient[_0x1f4b1d(0x1b1)]()[_0x1f4b1d(0x1a6)](_0x291d03);this[_0x1f4b1d(0x1b8)][_0x1f4b1d(0x1a8)](_0x1f4b1d(0x17a)+_0x5dfdb5+(this['testFrameworkData']&&_0x4d2496[_0x1f4b1d(0x1b4)](this[_0x1f4b1d(0x1af)][_0x1f4b1d(0x1b5)],FRAMEWORKS[_0x1f4b1d(0x161)])?_0x1f4b1d(0x177)+_0x44c003:''));}}catch(_0x64159b){this['logger'][_0x1f4b1d(0x182)](_0x1f4b1d(0x19b)+util['format'](_0x64159b));}}}TestHubModule[a85_0x38065e(0x17f)]=a85_0x38065e(0x1a7),TestHubModule['KEY_TEST_DEFERRED']='test_deferred',module[a85_0x38065e(0x1bb)]=TestHubModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x1d76b0=a86_0x7a61;function a86_0x4ad2(){const _0x4abbcb=['AutomationFrameworkState.CREATE','toString','106bALyLH','AutomationFrameworkState.IDLE','7907DFhWiA','fKxyt','aIIXy','freeze','4462255XBdeFV','6foiatD','AutomationFrameworkState.NONE','ieoBr','11PkxeIr','exports','10982808eWNtDz','find','499764rvqHMD','13621210fbLnda','SyKjI','8tmLWFg','../../utils/constants','AutomationFrameworkState.PLAYWRIGHT_DISPATCH','8WIcXyk','values','hevlr','value','1123275FHDDmu','eMtOz','934077oeVMpn'];a86_0x4ad2=function(){return _0x4abbcb;};return a86_0x4ad2();}(function(_0x49f749,_0x40d5dd){const _0x5475f9=a86_0x7a61,_0x58de63=_0x49f749();while(!![]){try{const _0xae2374=-parseInt(_0x5475f9(0x193))/0x1*(parseInt(_0x5475f9(0x191))/0x2)+parseInt(_0x5475f9(0x18e))/0x3*(parseInt(_0x5475f9(0x185))/0x4)+parseInt(_0x5475f9(0x18c))/0x5+parseInt(_0x5475f9(0x198))/0x6*(parseInt(_0x5475f9(0x197))/0x7)+-parseInt(_0x5475f9(0x188))/0x8*(-parseInt(_0x5475f9(0x180))/0x9)+-parseInt(_0x5475f9(0x183))/0xa*(parseInt(_0x5475f9(0x17e))/0xb)+-parseInt(_0x5475f9(0x182))/0xc;if(_0xae2374===_0x40d5dd)break;else _0x58de63['push'](_0x58de63['shift']());}catch(_0x4d334e){_0x58de63['push'](_0x58de63['shift']());}}}(a86_0x4ad2,0xd7687));const {PLAYWRIGHT}=require(a86_0x1d76b0(0x186)),a86_0x58f624={};a86_0x58f624[a86_0x1d76b0(0x18b)]=0x0,a86_0x58f624[a86_0x1d76b0(0x190)]=function(){const _0x1b25ac=a86_0x1d76b0,_0x4e3537={};_0x4e3537[_0x1b25ac(0x194)]=_0x1b25ac(0x17c);const _0x42192e=_0x4e3537;return _0x42192e[_0x1b25ac(0x194)];};const a86_0x20f229={};a86_0x20f229[a86_0x1d76b0(0x18b)]=0x1,a86_0x20f229[a86_0x1d76b0(0x190)]=function(){const _0x5e90cf=a86_0x1d76b0,_0x40507b={};_0x40507b['eMtOz']=_0x5e90cf(0x18f);const _0x441b20=_0x40507b;return _0x441b20[_0x5e90cf(0x18d)];};const a86_0x11c6b1={};a86_0x11c6b1['value']=0x2,a86_0x11c6b1[a86_0x1d76b0(0x190)]=function(){const _0x3bccbe=a86_0x1d76b0,_0x59e14d={};_0x59e14d[_0x3bccbe(0x18a)]=_0x3bccbe(0x187);const _0x529dfe=_0x59e14d;return _0x529dfe['hevlr'];};const a86_0x571ded={};a86_0x571ded['value']=0x3,a86_0x571ded[a86_0x1d76b0(0x190)]=function(){const _0x136056=a86_0x1d76b0,_0x39e302={};_0x39e302[_0x136056(0x184)]='AutomationFrameworkState.EXECUTE';const _0x289411=_0x39e302;return _0x289411[_0x136056(0x184)];};function a86_0x7a61(_0x555a04,_0x3f67fd){const _0x4ad273=a86_0x4ad2();return a86_0x7a61=function(_0x7a6194,_0x58a37d){_0x7a6194=_0x7a6194-0x17c;let _0x572ae6=_0x4ad273[_0x7a6194];return _0x572ae6;},a86_0x7a61(_0x555a04,_0x3f67fd);}const a86_0x247b2f={};a86_0x247b2f[a86_0x1d76b0(0x18b)]=0x4,a86_0x247b2f[a86_0x1d76b0(0x190)]=function(){const _0x5b5b93=a86_0x1d76b0,_0x5f14fa={};_0x5f14fa[_0x5b5b93(0x17d)]=_0x5b5b93(0x192);const _0x4dec11=_0x5f14fa;return _0x4dec11[_0x5b5b93(0x17d)];};const a86_0x125102={};a86_0x125102['value']=0x5,a86_0x125102['toString']=function(){const _0x1c1e5d=a86_0x1d76b0,_0xa4c855={};_0xa4c855[_0x1c1e5d(0x195)]='AutomationFrameworkState.QUIT';const _0x2eb241=_0xa4c855;return _0x2eb241['aIIXy'];};const AutomationFrameworkState=Object[a86_0x1d76b0(0x196)]({'NONE':a86_0x58f624,'CREATE':a86_0x20f229,'PLAYWRIGHT_DISPATCH':a86_0x11c6b1,'EXECUTE':a86_0x571ded,'IDLE':a86_0x247b2f,'QUIT':a86_0x125102,'fromValue'(_0x35dd55){const _0x79cfe6=a86_0x1d76b0;return Object[_0x79cfe6(0x189)](AutomationFrameworkState)[_0x79cfe6(0x181)](_0x1cfc30=>_0x1cfc30[_0x79cfe6(0x18b)]===_0x35dd55);}});module[a86_0x1d76b0(0x17f)]=AutomationFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a87_0x20a5(_0x6d0376,_0x13e6bd){const _0x34641e=a87_0x3464();return a87_0x20a5=function(_0x20a5d6,_0x103ff8){_0x20a5d6=_0x20a5d6-0x16a;let _0x4f7a8a=_0x34641e[_0x20a5d6];return _0x4f7a8a;},a87_0x20a5(_0x6d0376,_0x13e6bd);}const a87_0x410eba=a87_0x20a5;(function(_0x1c6a1e,_0x3d13d8){const _0x5ebc4e=a87_0x20a5,_0x5dc8a7=_0x1c6a1e();while(!![]){try{const _0x36d8c4=-parseInt(_0x5ebc4e(0x179))/0x1*(parseInt(_0x5ebc4e(0x16f))/0x2)+parseInt(_0x5ebc4e(0x16b))/0x3*(-parseInt(_0x5ebc4e(0x173))/0x4)+-parseInt(_0x5ebc4e(0x177))/0x5+parseInt(_0x5ebc4e(0x176))/0x6*(parseInt(_0x5ebc4e(0x16d))/0x7)+parseInt(_0x5ebc4e(0x16a))/0x8+-parseInt(_0x5ebc4e(0x175))/0x9+parseInt(_0x5ebc4e(0x17b))/0xa;if(_0x36d8c4===_0x3d13d8)break;else _0x5dc8a7['push'](_0x5dc8a7['shift']());}catch(_0x19e0c2){_0x5dc8a7['push'](_0x5dc8a7['shift']());}}}(a87_0x3464,0xad094));const a87_0xd95cf0={};a87_0xd95cf0[a87_0x410eba(0x16c)]=0x0,a87_0xd95cf0[a87_0x410eba(0x17e)]=function(){const _0x481833=a87_0x410eba,_0x34bcda={};_0x34bcda['xwceG']=_0x481833(0x170);const _0xe0afcd=_0x34bcda;return _0xe0afcd[_0x481833(0x17d)];};const a87_0x1b62d8={};a87_0x1b62d8[a87_0x410eba(0x16c)]=0x1,a87_0x1b62d8[a87_0x410eba(0x17e)]=function(){const _0x2c9878=a87_0x410eba,_0x3fd09c={};_0x3fd09c['nAdEh']=_0x2c9878(0x16e);const _0x160c69=_0x3fd09c;return _0x160c69[_0x2c9878(0x174)];};const a87_0x45dd01={};a87_0x45dd01[a87_0x410eba(0x16c)]=0x2,a87_0x45dd01[a87_0x410eba(0x17e)]=function(){const _0x1c3f94=a87_0x410eba,_0x398b03={};_0x398b03[_0x1c3f94(0x17c)]='HookState.POST';const _0x383a1f=_0x398b03;return _0x383a1f[_0x1c3f94(0x17c)];};function a87_0x3464(){const _0x268bdb=['value','3775233KWsWfk','HookState.PRE','4GetQfz','HookState.NONE','values','exports','8aUoazs','nAdEh','6960879HLKtKp','6DmBEdV','3171845eYeLrj','freeze','132103LPAxXL','find','10929470jiLyEL','ThnZI','xwceG','toString','9087312fUTYCO','581127ZtNERa'];a87_0x3464=function(){return _0x268bdb;};return a87_0x3464();}const HookState=Object[a87_0x410eba(0x178)]({'NONE':a87_0xd95cf0,'PRE':a87_0x1b62d8,'POST':a87_0x45dd01,'fromValue'(_0x3e1b45){const _0x37d5eb=a87_0x410eba;return Object[_0x37d5eb(0x171)](HookState)[_0x37d5eb(0x17a)](_0x3a36ea=>_0x3a36ea[_0x37d5eb(0x16c)]===_0x3e1b45);}});module[a87_0x410eba(0x172)]=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x448d54=a88_0x26e7;(function(_0x42a544,_0x50b477){const _0x22ce49=a88_0x26e7,_0x2f0c50=_0x42a544();while(!![]){try{const _0x139b7b=-parseInt(_0x22ce49(0x1a4))/0x1+parseInt(_0x22ce49(0x18f))/0x2+-parseInt(_0x22ce49(0x192))/0x3+-parseInt(_0x22ce49(0x199))/0x4*(-parseInt(_0x22ce49(0x190))/0x5)+parseInt(_0x22ce49(0x19b))/0x6*(-parseInt(_0x22ce49(0x18e))/0x7)+parseInt(_0x22ce49(0x195))/0x8*(parseInt(_0x22ce49(0x194))/0x9)+parseInt(_0x22ce49(0x196))/0xa;if(_0x139b7b===_0x50b477)break;else _0x2f0c50['push'](_0x2f0c50['shift']());}catch(_0x3175ae){_0x2f0c50['push'](_0x2f0c50['shift']());}}}(a88_0x5584,0x6596a));function a88_0x5584(){const _0x107922=['TestFrameworkState.STEP','4uxsbLc','DbVHs','52758wybqea','LFJGo','TestFrameworkState.LOG_REPORT','hQMzH','NqoUt','TibLn','TestFrameworkState.AFTER_ALL','pFeNQ','toString','29254qlDOde','exports','TestFrameworkState.AFTER_EACH','ODnjI','FatKg','freeze','YZzAO','usYZY','values','315xWyXco','234460lJMIHN','1448060IvpVRN','TestFrameworkState.TEST','796146ZdtJIv','SvybN','4446018qIsurF','8ksJosq','2055830wfTiOB','value'];a88_0x5584=function(){return _0x107922;};return a88_0x5584();}const a88_0x372300={};a88_0x372300[a88_0x448d54(0x197)]=0x0,a88_0x372300[a88_0x448d54(0x1a3)]=function(){const _0x39248c=a88_0x448d54,_0x11c914={};_0x11c914[_0x39248c(0x1a8)]='TestFrameworkState.NONE';const _0x43291f=_0x11c914;return _0x43291f['FatKg'];};function a88_0x26e7(_0x1db42b,_0x266811){const _0x5584a0=a88_0x5584();return a88_0x26e7=function(_0x26e741,_0xb37adb){_0x26e741=_0x26e741-0x18e;let _0x10c510=_0x5584a0[_0x26e741];return _0x10c510;},a88_0x26e7(_0x1db42b,_0x266811);}const a88_0x304df9={};a88_0x304df9[a88_0x448d54(0x197)]=0x1,a88_0x304df9[a88_0x448d54(0x1a3)]=function(){const _0x3e427c=a88_0x448d54,_0x1047e2={};_0x1047e2[_0x3e427c(0x1ab)]='TestFrameworkState.BEFORE_ALL';const _0x290641=_0x1047e2;return _0x290641[_0x3e427c(0x1ab)];};const a88_0x3727ea={};a88_0x3727ea['value']=0x2,a88_0x3727ea[a88_0x448d54(0x1a3)]=function(){const _0x76b615=a88_0x448d54,_0x5c90cd={};_0x5c90cd['YZzAO']='TestFrameworkState.LOG';const _0x271485=_0x5c90cd;return _0x271485[_0x76b615(0x1aa)];};const a88_0x1173f0={};a88_0x1173f0[a88_0x448d54(0x197)]=0x3,a88_0x1173f0[a88_0x448d54(0x1a3)]=function(){const _0x7a0b28=a88_0x448d54,_0x4ee3c8={};_0x4ee3c8['hQMzH']='TestFrameworkState.SETUP_FIXTURE';const _0x315d70=_0x4ee3c8;return _0x315d70[_0x7a0b28(0x19e)];};const a88_0x51ec9c={};a88_0x51ec9c['value']=0x4,a88_0x51ec9c['toString']=function(){const _0x5c5bd2={};_0x5c5bd2['Ejwzg']='TestFrameworkState.INIT_TEST';const _0x463361=_0x5c5bd2;return _0x463361['Ejwzg'];};const a88_0x4a4176={};a88_0x4a4176[a88_0x448d54(0x197)]=0x5,a88_0x4a4176[a88_0x448d54(0x1a3)]=function(){const _0x12771b=a88_0x448d54,_0x23637b={};_0x23637b[_0x12771b(0x19f)]='TestFrameworkState.BEFORE_EACH';const _0x4cf314=_0x23637b;return _0x4cf314[_0x12771b(0x19f)];};const a88_0x25e2ae={};a88_0x25e2ae[a88_0x448d54(0x197)]=0x6,a88_0x25e2ae['toString']=function(){const _0x5a2a27=a88_0x448d54,_0x5357d3={};_0x5357d3['DbVHs']=_0x5a2a27(0x1a6);const _0x51c65b=_0x5357d3;return _0x51c65b[_0x5a2a27(0x19a)];};const a88_0x1e1023={};a88_0x1e1023[a88_0x448d54(0x197)]=0x7,a88_0x1e1023['toString']=function(){const _0xfa3ae0=a88_0x448d54,_0xcdf365={};_0xcdf365[_0xfa3ae0(0x1a2)]=_0xfa3ae0(0x191);const _0x850d54=_0xcdf365;return _0x850d54['pFeNQ'];};const a88_0x168676={};a88_0x168676[a88_0x448d54(0x197)]=0x8,a88_0x168676[a88_0x448d54(0x1a3)]=function(){const _0x5806a0=a88_0x448d54,_0x4d5d1c={};_0x4d5d1c[_0x5806a0(0x1a0)]=_0x5806a0(0x198);const _0x315410=_0x4d5d1c;return _0x315410[_0x5806a0(0x1a0)];};const a88_0x3a1b92={};a88_0x3a1b92[a88_0x448d54(0x197)]=0x9,a88_0x3a1b92['toString']=function(){const _0x26b66f=a88_0x448d54,_0x39954a={};_0x39954a['LFJGo']=_0x26b66f(0x19d);const _0xd97e8b=_0x39954a;return _0xd97e8b[_0x26b66f(0x19c)];};const a88_0x4e956d={};a88_0x4e956d['value']=0xa,a88_0x4e956d['toString']=function(){const _0x26b9ae=a88_0x448d54,_0x258b08={};_0x258b08['ODnjI']=_0x26b9ae(0x1a1);const _0x3cbfa6=_0x258b08;return _0x3cbfa6[_0x26b9ae(0x1a7)];};const a88_0x5562f7={};a88_0x5562f7[a88_0x448d54(0x197)]=0xb,a88_0x5562f7[a88_0x448d54(0x1a3)]=function(){const _0x5a663b=a88_0x448d54,_0x1660a7={};_0x1660a7[_0x5a663b(0x193)]='TestFrameworkState.TEST_SCREENSHOT';const _0x55f79e=_0x1660a7;return _0x55f79e[_0x5a663b(0x193)];};const TestFrameworkState=Object[a88_0x448d54(0x1a9)]({'NONE':a88_0x372300,'BEFORE_ALL':a88_0x304df9,'LOG':a88_0x3727ea,'SETUP_FIXTURE':a88_0x1173f0,'INIT_TEST':a88_0x51ec9c,'BEFORE_EACH':a88_0x4a4176,'AFTER_EACH':a88_0x25e2ae,'TEST':a88_0x1e1023,'STEP':a88_0x168676,'LOG_REPORT':a88_0x3a1b92,'AFTER_ALL':a88_0x4e956d,'TEST_SCREENSHOT':a88_0x5562f7,'fromValue'(_0x163733){const _0x2c2074=a88_0x448d54;return Object[_0x2c2074(0x1ac)](TestFrameworkState)['find'](_0x373611=>_0x373611['value']===_0x163733);}});module[a88_0x448d54(0x1a5)]=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a89_0x157a(_0x58b46a,_0x198fcd){const _0x461c72=a89_0x461c();return a89_0x157a=function(_0x157a95,_0x36c1b6){_0x157a95=_0x157a95-0x1ae;let _0x23cdb5=_0x461c72[_0x157a95];return _0x23cdb5;},a89_0x157a(_0x58b46a,_0x198fcd);}const a89_0x442f62=a89_0x157a;(function(_0x5aaca0,_0x4e604b){const _0x4f1289=a89_0x157a,_0x7298c8=_0x5aaca0();while(!![]){try{const _0x4e5b34=parseInt(_0x4f1289(0x1b8))/0x1*(-parseInt(_0x4f1289(0x1d8))/0x2)+-parseInt(_0x4f1289(0x229))/0x3*(-parseInt(_0x4f1289(0x217))/0x4)+parseInt(_0x4f1289(0x1f1))/0x5+parseInt(_0x4f1289(0x1c0))/0x6+parseInt(_0x4f1289(0x1ca))/0x7+parseInt(_0x4f1289(0x1d9))/0x8+-parseInt(_0x4f1289(0x1e2))/0x9;if(_0x4e5b34===_0x4e604b)break;else _0x7298c8['push'](_0x7298c8['shift']());}catch(_0x1698e1){_0x7298c8['push'](_0x7298c8['shift']());}}}(a89_0x461c,0x6060d));function a89_0x461c(){const _0x4a8f99=['rKqGP','./state/hookState','pipe','./state/testFrameworkState','wUNji','format','statusCode','vCOdD','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','bnTnA','finish','106QGjuqg','425416aSKpqd','getAllData','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','ESOVX','unlinkSync','getTestFramework','logger','WytjR','FTbxg','6372819UNUdvk','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','QjnnO','close','trim','./framework/constants/testFrameworkConstants','JMhkg','KEY_TEST_ATTACHMENTS','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','recursive','getState','startsWith','toObject','getInstance','2872420PrNoIa','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','KEY_FILE_SIZE','OKvat','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','JNwTd','QUaGv','mzvYI','./browserstackCLI','File\x20downloaded\x20to:\x20%s','isRunning','hfmOZ','Created\x20.browserstack\x20folder\x20at:\x20%s','jOlbx','message','rmSync','util','XgVRH','sluiX','GmMPR','KEY_FILE_NAME','trackFile','debug','resolveInstance','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','homedir','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','SlvDn','mkdirSync','size','TestHubModule','LUrwX',',\x20filepath:\x20','http','uiuBT','./TestInfo','XVPof','getTestIdentifierFromTestInfo','195912QjGRwi','.browserstack','path','toFixed','buildHashedId','uploadAttachments','join','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','__workerDetails','./modules/playwrightDriverModule','jEqIe','setTestDetails','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','http://','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','getTrackedInstance','NmZps','dToxB','3ZLQPjF','../../helpers/classLogger.js','uploadAttachmentsManager','https','get','CEMME','UDsBb','OHzUY','xLoSI','DfaFt','error','createWriteStream','existsSync','__jestCurrentTestIdentifier','basename','statSync','wkBnx','testInfo','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','9446zcFxZv','mrofv','TEST','copyFileSync','GYuMd','name','testhubConfig','GgENB','2438232MtvSKu','addMultipleEntries','oSsGy','force','Attachment\x20recevied\x20for\x20path:\x20%s','clearAttachments','getTestDetails','Created\x20folder:\x20%s','rSaAj','KEY_TEST_ID','3643381VtmDpk','FtQaC','FTKlF'];a89_0x461c=function(){return _0x4a8f99;};return a89_0x461c();}const os=require('os'),fs=require('fs'),path=require(a89_0x442f62(0x219)),util=require(a89_0x442f62(0x201)),BrowserstackCLI=require(a89_0x442f62(0x1f9)),https=require(a89_0x442f62(0x22c)),http=require(a89_0x442f62(0x212)),AutomationFramework=require('./framework/automationFramework'),PlaywrightDriverModule=require(a89_0x442f62(0x220)),TestInfo=require(a89_0x442f62(0x214)),TestFrameworkConstants=require(a89_0x442f62(0x1e8)),{createClassLogger}=require(a89_0x442f62(0x22a));class uploadAttachmentsManager{static [a89_0x442f62(0x1df)]=createClassLogger(a89_0x442f62(0x22b));static[a89_0x442f62(0x21c)](_0x32b234,_0x13f748=![]){const _0x25d708=a89_0x442f62,_0x4c16b9={};_0x4c16b9[_0x25d708(0x1b5)]=function(_0x4428b8,_0x114cd4){return _0x4428b8/_0x114cd4;},_0x4c16b9[_0x25d708(0x231)]=function(_0x317400,_0x4b836b){return _0x317400*_0x4b836b;},_0x4c16b9['wUNji']=function(_0x33c81e,_0x11c7a6){return _0x33c81e>_0x11c7a6;},_0x4c16b9[_0x25d708(0x210)]=_0x25d708(0x1e3),_0x4c16b9['OHzUY']=_0x25d708(0x1fa),_0x4c16b9['UDsBb']=function(_0x338714,_0x4aa75c){return _0x338714===_0x4aa75c;},_0x4c16b9[_0x25d708(0x1f6)]=_0x25d708(0x1d7),_0x4c16b9[_0x25d708(0x1f8)]='Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload',_0x4c16b9[_0x25d708(0x1e5)]=_0x25d708(0x1f2),_0x4c16b9[_0x25d708(0x1e9)]=_0x25d708(0x1c4),_0x4c16b9[_0x25d708(0x1e1)]=_0x25d708(0x218),_0x4c16b9[_0x25d708(0x215)]=_0x25d708(0x209),_0x4c16b9[_0x25d708(0x1dc)]=_0x25d708(0x1fd),_0x4c16b9[_0x25d708(0x221)]=_0x25d708(0x1c7),_0x4c16b9[_0x25d708(0x1f7)]=_0x25d708(0x223),_0x4c16b9[_0x25d708(0x1bc)]='https://',_0x4c16b9[_0x25d708(0x20c)]=_0x25d708(0x224),_0x4c16b9[_0x25d708(0x1fc)]=_0x25d708(0x1af),_0x4c16b9[_0x25d708(0x1d6)]=_0x25d708(0x1b7),_0x4c16b9[_0x25d708(0x1cb)]=function(_0x283988,_0x4e0756){return _0x283988/_0x4e0756;},_0x4c16b9['jOlbx']=function(_0x4e5112,_0x363c08){return _0x4e5112*_0x363c08;},_0x4c16b9['dToxB']='File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.';const _0x3ccd26=_0x4c16b9;this['logger'][_0x25d708(0x207)](util['format'](_0x3ccd26[_0x25d708(0x1e9)],_0x32b234));const _0x57b97d=os['homedir'](),_0x23f906=path[_0x25d708(0x21d)](_0x57b97d,_0x3ccd26[_0x25d708(0x1e1)]);!fs[_0x25d708(0x1b1)](_0x23f906)&&(this[_0x25d708(0x1df)][_0x25d708(0x207)](util[_0x25d708(0x1d2)](_0x3ccd26[_0x25d708(0x215)],_0x23f906)),fs['mkdirSync'](_0x23f906),this[_0x25d708(0x1df)][_0x25d708(0x207)](util['format'](_0x3ccd26[_0x25d708(0x1dc)],_0x23f906)));const _0x2d850f=BrowserstackCLI['getInstance']()['modules']['TestHubModule']?.[_0x25d708(0x1be)]?.[_0x25d708(0x1ef)]()?.['buildHashedId'],_0x380058=path[_0x25d708(0x21d)](_0x23f906,_0x2d850f);!fs['existsSync'](_0x380058)&&(fs[_0x25d708(0x20d)](_0x380058),this[_0x25d708(0x1df)][_0x25d708(0x207)](util[_0x25d708(0x1d2)](_0x3ccd26[_0x25d708(0x221)],_0x380058)));if(_0x3ccd26[_0x25d708(0x22f)](_0x32b234[_0x25d708(0x1e7)](),'')){this[_0x25d708(0x1df)][_0x25d708(0x207)](util[_0x25d708(0x1d2)](_0x3ccd26[_0x25d708(0x1f7)]));return;}if(_0x32b234[_0x25d708(0x1ee)](_0x3ccd26[_0x25d708(0x1bc)])||_0x32b234[_0x25d708(0x1ee)](_0x3ccd26[_0x25d708(0x20c)])){const _0x15acf3=_0x32b234[_0x25d708(0x1ee)](_0x3ccd26[_0x25d708(0x1bc)])?https:http,_0x10f391=path[_0x25d708(0x1b3)](_0x32b234),_0x4bfc3f=path[_0x25d708(0x21d)](_0x380058,_0x10f391),_0x25a226=fs[_0x25d708(0x1b0)](_0x4bfc3f);_0x15acf3['get'](_0x32b234,_0x59624a=>{const _0x1e65f4=_0x25d708;if(_0x3ccd26['UDsBb'](_0x59624a['statusCode'],0xc8))_0x59624a[_0x1e65f4(0x1cf)](_0x25a226),_0x25a226['on'](_0x3ccd26[_0x1e65f4(0x1f6)],()=>{const _0x197a10=_0x1e65f4;_0x25a226[_0x197a10(0x1e6)]();const _0x4f9308=fs[_0x197a10(0x1b4)](_0x4bfc3f),_0x367ca1=_0x3ccd26[_0x197a10(0x1b5)](_0x4f9308[_0x197a10(0x20e)],_0x3ccd26['xLoSI'](0x400,0x400));if(_0x3ccd26[_0x197a10(0x1d1)](_0x367ca1,0x64)){this['logger'][_0x197a10(0x207)](util['format'](_0x3ccd26[_0x197a10(0x210)],_0x367ca1[_0x197a10(0x21a)](0x2))),fs[_0x197a10(0x1dd)](_0x4bfc3f);return;}this['logger'][_0x197a10(0x207)](util[_0x197a10(0x1d2)](_0x3ccd26[_0x197a10(0x230)],_0x4bfc3f)),uploadAttachmentsManager[_0x197a10(0x206)](_0x4bfc3f,_0x13f748);});else{this[_0x1e65f4(0x1df)]['debug'](util[_0x1e65f4(0x1d2)](_0x3ccd26[_0x1e65f4(0x1f8)],_0x59624a[_0x1e65f4(0x1d3)])),_0x25a226[_0x1e65f4(0x1e6)](),fs[_0x1e65f4(0x1dd)](_0x4bfc3f);return;}})['on'](_0x3ccd26[_0x25d708(0x1fc)],_0x3e2cb8=>{const _0x1fa38e=_0x25d708;this['logger'][_0x1fa38e(0x207)](util[_0x1fa38e(0x1d2)](_0x3ccd26[_0x1fa38e(0x1e5)],_0x3e2cb8[_0x1fa38e(0x1ff)])),_0x25a226[_0x1fa38e(0x1e6)](),fs[_0x1fa38e(0x1dd)](_0x4bfc3f);return;});}else{if(!fs[_0x25d708(0x1b1)](_0x32b234)){this[_0x25d708(0x1df)][_0x25d708(0x207)](util[_0x25d708(0x1d2)](_0x3ccd26[_0x25d708(0x1d6)],_0x32b234));return;}const _0x15dedc=fs[_0x25d708(0x1b4)](_0x32b234),_0x56bcab=_0x3ccd26[_0x25d708(0x1cb)](_0x15dedc[_0x25d708(0x20e)],_0x3ccd26[_0x25d708(0x1fe)](0x400,0x400));if(_0x3ccd26[_0x25d708(0x1d1)](_0x56bcab,0x64)){this[_0x25d708(0x1df)]['debug'](util[_0x25d708(0x1d2)](_0x3ccd26[_0x25d708(0x228)],_0x56bcab[_0x25d708(0x21a)](0x2)));return;}const _0x4e4fa3=path[_0x25d708(0x1b3)](_0x32b234),_0x497733=path[_0x25d708(0x21d)](_0x380058,_0x4e4fa3);fs[_0x25d708(0x1bb)](_0x32b234,_0x497733),uploadAttachmentsManager[_0x25d708(0x206)](_0x497733,_0x13f748);}}static[a89_0x442f62(0x206)](_0x37658a,_0x25758b){const _0x3cf827=a89_0x442f62,_0x2f8d28={'mrofv':function(_0x3f3d00,_0x597310){return _0x3f3d00(_0x597310);},'oSsGy':_0x3cf827(0x1f9),'pZMUp':function(_0xe17bde,_0x447679){return _0xe17bde(_0x447679);},'pGNqz':'./cliUtils','GmMPR':function(_0x4cf168,_0x41fd74){return _0x4cf168===_0x41fd74;},'sluiX':'jest','BBenO':'trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','rSaAj':'BuildLevel','XgVRH':'TestLevel','GgENB':'trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','OKvat':function(_0x440efc,_0x4d5d80){return _0x440efc(_0x4d5d80);},'pjcTh':_0x3cf827(0x1d0),'DfaFt':function(_0x133d32,_0x23b3cc){return _0x133d32(_0x23b3cc);},'NmZps':_0x3cf827(0x1ce),'FTKlF':_0x3cf827(0x1d5),'vCOdD':_0x3cf827(0x1eb),'uiuBT':_0x3cf827(0x225)};try{let _0x39873c;const _0x4a4500=global[_0x3cf827(0x21f)]?.['currentTest']?.[_0x3cf827(0x1b6)],_0x378b80=_0x2f8d28[_0x3cf827(0x1b9)](require,_0x2f8d28[_0x3cf827(0x1c2)]),_0x38eb96=_0x2f8d28['pZMUp'](require,_0x2f8d28['pGNqz']),_0x17152d=_0x378b80[_0x3cf827(0x1f0)]()[_0x3cf827(0x1fb)]()&&_0x2f8d28[_0x3cf827(0x204)](_0x38eb96['getTestFrameworkDetail']()?.[_0x3cf827(0x1bd)]?.['toLowerCase'](),_0x2f8d28[_0x3cf827(0x203)]);if(_0x17152d){_0x39873c=global[_0x3cf827(0x1b2)];if(!_0x39873c){const _0x597d89=AutomationFramework['getTrackedInstance']();_0x39873c=AutomationFramework[_0x3cf827(0x1ed)](_0x597d89,PlaywrightDriverModule[_0x3cf827(0x1c9)],'');}this[_0x3cf827(0x1df)][_0x3cf827(0x207)](_0x3cf827(0x1f5)+_0x39873c);}else{if(!_0x4a4500){const _0x59c7a6=AutomationFramework[_0x3cf827(0x226)]();_0x39873c=AutomationFramework[_0x3cf827(0x1ed)](_0x59c7a6,PlaywrightDriverModule[_0x3cf827(0x1c9)],'');}else _0x39873c=TestInfo[_0x3cf827(0x216)](_0x4a4500,_0x4a4500['retry']);this[_0x3cf827(0x1df)][_0x3cf827(0x207)](_0x3cf827(0x1db)+_0x39873c);}if(!_0x39873c){this[_0x3cf827(0x1df)]['debug'](_0x2f8d28['BBenO']);return;}const _0x1f8b16={[TestFrameworkConstants[_0x3cf827(0x1f3)]]:fs[_0x3cf827(0x1b4)](_0x37658a)[_0x3cf827(0x20e)],[TestFrameworkConstants[_0x3cf827(0x205)]]:path[_0x3cf827(0x1b3)](_0x37658a),[TestFrameworkConstants['KEY_FILE_PATH']]:_0x37658a,[TestFrameworkConstants['KEY_FILE_LEVEL']]:_0x25758b?_0x2f8d28[_0x3cf827(0x1c8)]:_0x2f8d28[_0x3cf827(0x202)]};if(_0x17152d){const _0x422540=_0x378b80[_0x3cf827(0x1f0)]()[_0x3cf827(0x1de)]();if(!_0x422540){this['logger'][_0x3cf827(0x207)](_0x2f8d28[_0x3cf827(0x1bf)]);return;}const _0x4bd092=_0x2f8d28[_0x3cf827(0x1f4)](require,_0x2f8d28['pjcTh']),_0x21ead7=_0x2f8d28[_0x3cf827(0x1ae)](require,_0x2f8d28[_0x3cf827(0x227)]),_0x3494de=_0x422540[_0x3cf827(0x208)](_0x4bd092[_0x3cf827(0x1ba)],_0x21ead7['POST']);if(!_0x3494de){this[_0x3cf827(0x1df)][_0x3cf827(0x207)](_0x2f8d28[_0x3cf827(0x1cc)]);return;}const _0x4059a3=_0x3494de[_0x3cf827(0x1da)]()[_0x3cf827(0x22d)](_0x39873c)||{},_0x168316=_0x4059a3[TestFrameworkConstants[_0x3cf827(0x1ea)]]||{},_0x6d5d3={..._0x168316};_0x6d5d3[_0x37658a]=_0x1f8b16;const _0x35b7d8=_0x6d5d3,_0x4f7461={[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]:_0x35b7d8},_0x134eeb={};_0x134eeb[_0x39873c]=_0x4f7461,_0x3494de[_0x3cf827(0x1c1)](_0x134eeb),this[_0x3cf827(0x1df)][_0x3cf827(0x207)](_0x3cf827(0x20b)+_0x39873c+_0x3cf827(0x211)+_0x37658a);}else{const _0x5b3a2e=TestInfo[_0x3cf827(0x1c6)](_0x39873c),_0x332688=_0x5b3a2e[TestFrameworkConstants[_0x3cf827(0x1ea)]]||{};_0x332688[_0x37658a]=_0x1f8b16,_0x5b3a2e[TestFrameworkConstants[_0x3cf827(0x1ea)]]=_0x332688,TestInfo[_0x3cf827(0x222)](_0x39873c,_0x5b3a2e),this[_0x3cf827(0x1df)][_0x3cf827(0x207)](_0x3cf827(0x21e)+_0x39873c+_0x3cf827(0x211)+_0x37658a);}this[_0x3cf827(0x1df)][_0x3cf827(0x207)](util[_0x3cf827(0x1d2)](_0x2f8d28[_0x3cf827(0x1d4)],_0x37658a));}catch(_0x4d8688){this[_0x3cf827(0x1df)][_0x3cf827(0x207)](util[_0x3cf827(0x1d2)](_0x2f8d28[_0x3cf827(0x213)],_0x4d8688[_0x3cf827(0x1ff)]));}}static[a89_0x442f62(0x1c5)](){const _0x29ff3f=a89_0x442f62,_0x3ca44a={};_0x3ca44a[_0x29ff3f(0x1cd)]=_0x29ff3f(0x218),_0x3ca44a['WytjR']=_0x29ff3f(0x1e4),_0x3ca44a['CEMME']='Cleared\x20attachment\x20folder';const _0x1cd8ec=_0x3ca44a,_0x144234=os[_0x29ff3f(0x20a)](),_0x28c78d=path[_0x29ff3f(0x21d)](_0x144234,_0x1cd8ec['rKqGP']);if(!fs[_0x29ff3f(0x1b1)](_0x28c78d))return;const _0x479ce9=BrowserstackCLI['getInstance']()['modules'][_0x29ff3f(0x20f)]?.['testhubConfig']?.[_0x29ff3f(0x1ef)]()?.[_0x29ff3f(0x21b)],_0x4e3645=_0x479ce9?path['join'](_0x28c78d,_0x479ce9):null;if(!_0x4e3645||!fs['existsSync'](_0x4e3645)){this['logger'][_0x29ff3f(0x207)](util[_0x29ff3f(0x1d2)](_0x1cd8ec[_0x29ff3f(0x1e0)],_0x479ce9));return;}const _0x3555d1={};_0x3555d1[_0x29ff3f(0x1ec)]=!![],_0x3555d1[_0x29ff3f(0x1c3)]=!![],fs[_0x29ff3f(0x200)](_0x4e3645,_0x3555d1),this[_0x29ff3f(0x1df)][_0x29ff3f(0x207)](util['format'](_0x1cd8ec[_0x29ff3f(0x22e)]));}}module['exports']=uploadAttachmentsManager;
|
|
1
|
+
const a89_0xdbdb3=a89_0xde36;(function(_0x2bb1c3,_0x28ec65){const _0x56d3f4=a89_0xde36,_0x4cb29d=_0x2bb1c3();while(!![]){try{const _0x43ba56=parseInt(_0x56d3f4(0x15f))/0x1*(parseInt(_0x56d3f4(0x106))/0x2)+parseInt(_0x56d3f4(0x15d))/0x3+-parseInt(_0x56d3f4(0x10f))/0x4+-parseInt(_0x56d3f4(0x14b))/0x5+-parseInt(_0x56d3f4(0x10d))/0x6+parseInt(_0x56d3f4(0x117))/0x7+parseInt(_0x56d3f4(0x17a))/0x8;if(_0x43ba56===_0x28ec65)break;else _0x4cb29d['push'](_0x4cb29d['shift']());}catch(_0x5a3ee3){_0x4cb29d['push'](_0x4cb29d['shift']());}}}(a89_0x32c8,0xd2ac6));const os=require('os'),fs=require('fs'),path=require(a89_0xdbdb3(0xfc)),util=require(a89_0xdbdb3(0x135)),BrowserstackCLI=require('./browserstackCLI'),https=require(a89_0xdbdb3(0x15e)),http=require(a89_0xdbdb3(0x124)),AutomationFramework=require(a89_0xdbdb3(0x175)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a89_0xdbdb3(0x12c)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require(a89_0xdbdb3(0x14a));function a89_0xde36(_0x3769cd,_0x4da066){const _0x32c8b6=a89_0x32c8();return a89_0xde36=function(_0xde3698,_0x21d50f){_0xde3698=_0xde3698-0xfa;let _0x1e21d2=_0x32c8b6[_0xde3698];return _0x1e21d2;},a89_0xde36(_0x3769cd,_0x4da066);}class uploadAttachmentsManager{static [a89_0xdbdb3(0x114)]=createClassLogger(a89_0xdbdb3(0x125));static[a89_0xdbdb3(0x138)](_0x441f41,_0x1dbae0=![]){const _0x21f929=a89_0xdbdb3,_0x194bfa={};_0x194bfa[_0x21f929(0x115)]=function(_0x3af44d,_0xf71b10){return _0x3af44d/_0xf71b10;},_0x194bfa[_0x21f929(0x173)]=function(_0x3b3d88,_0x10c7c1){return _0x3b3d88*_0x10c7c1;},_0x194bfa[_0x21f929(0x10b)]=function(_0x22638c,_0xf20617){return _0x22638c>_0xf20617;},_0x194bfa[_0x21f929(0x134)]=_0x21f929(0x108),_0x194bfa[_0x21f929(0x13a)]=_0x21f929(0x152),_0x194bfa[_0x21f929(0x16d)]=function(_0x125ab1,_0x10a737){return _0x125ab1===_0x10a737;},_0x194bfa['jaVkg']=_0x21f929(0x128),_0x194bfa[_0x21f929(0x113)]=_0x21f929(0x169),_0x194bfa[_0x21f929(0x16a)]=_0x21f929(0x161),_0x194bfa[_0x21f929(0x119)]=_0x21f929(0x13d),_0x194bfa['DiZAE']=_0x21f929(0x139),_0x194bfa[_0x21f929(0x11a)]=_0x21f929(0x111),_0x194bfa[_0x21f929(0x14e)]='Created\x20.browserstack\x20folder\x20at:\x20%s',_0x194bfa[_0x21f929(0x15a)]='Created\x20folder:\x20%s',_0x194bfa[_0x21f929(0x17e)]=function(_0x120e2c,_0x295cf4){return _0x120e2c===_0x295cf4;},_0x194bfa[_0x21f929(0x17b)]=_0x21f929(0x109),_0x194bfa[_0x21f929(0x144)]=_0x21f929(0x163),_0x194bfa['bShrD']='http://',_0x194bfa['NUPnF']=_0x21f929(0x12b),_0x194bfa['CnCsr']=_0x21f929(0xfa),_0x194bfa[_0x21f929(0x140)]=function(_0x59789c,_0x4696b6){return _0x59789c*_0x4696b6;},_0x194bfa[_0x21f929(0x131)]=function(_0x5cb359,_0x391917){return _0x5cb359>_0x391917;},_0x194bfa['VvqlH']=_0x21f929(0x122);const _0x84aec7=_0x194bfa;this[_0x21f929(0x114)]['debug'](util[_0x21f929(0x156)](_0x84aec7[_0x21f929(0x119)],_0x441f41));const _0x4aa855=os['homedir'](),_0x404e91=path[_0x21f929(0x132)](_0x4aa855,_0x84aec7[_0x21f929(0x12f)]);!fs[_0x21f929(0x14d)](_0x404e91)&&(this[_0x21f929(0x114)][_0x21f929(0x13f)](util[_0x21f929(0x156)](_0x84aec7[_0x21f929(0x11a)],_0x404e91)),fs['mkdirSync'](_0x404e91),this[_0x21f929(0x114)][_0x21f929(0x13f)](util['format'](_0x84aec7[_0x21f929(0x14e)],_0x404e91)));const _0xeda5cf=BrowserstackCLI['getInstance']()[_0x21f929(0x171)][_0x21f929(0x176)]?.[_0x21f929(0x170)]?.[_0x21f929(0x116)]()?.['buildHashedId'],_0x1bc57d=path[_0x21f929(0x132)](_0x404e91,_0xeda5cf);!fs[_0x21f929(0x14d)](_0x1bc57d)&&(fs[_0x21f929(0x145)](_0x1bc57d),this[_0x21f929(0x114)][_0x21f929(0x13f)](util[_0x21f929(0x156)](_0x84aec7[_0x21f929(0x15a)],_0x1bc57d)));if(_0x84aec7[_0x21f929(0x17e)](_0x441f41['trim'](),'')){this['logger'][_0x21f929(0x13f)](util[_0x21f929(0x156)](_0x84aec7['jvnAR']));return;}if(_0x441f41[_0x21f929(0x141)](_0x84aec7[_0x21f929(0x144)])||_0x441f41[_0x21f929(0x141)](_0x84aec7[_0x21f929(0x107)])){const _0x57d9e6=_0x441f41[_0x21f929(0x141)](_0x84aec7[_0x21f929(0x144)])?https:http,_0x4c2a8d=path[_0x21f929(0x14c)](_0x441f41),_0x5cdd07=path[_0x21f929(0x132)](_0x1bc57d,_0x4c2a8d),_0x5099c7=fs[_0x21f929(0x11f)](_0x5cdd07);_0x57d9e6[_0x21f929(0x16c)](_0x441f41,_0x1cf44a=>{const _0x117193=_0x21f929,_0x5939f8={'eCTcv':function(_0x46cf6c,_0x41e1fc){const _0x2e30fb=a89_0xde36;return _0x84aec7[_0x2e30fb(0x115)](_0x46cf6c,_0x41e1fc);},'KOKwI':function(_0x2e7111,_0x3ebb9e){const _0x46ca3a=a89_0xde36;return _0x84aec7[_0x46ca3a(0x173)](_0x2e7111,_0x3ebb9e);},'xiRrA':function(_0x29e23f,_0x40a816){const _0x2ad222=a89_0xde36;return _0x84aec7[_0x2ad222(0x10b)](_0x29e23f,_0x40a816);},'wFzpJ':_0x84aec7[_0x117193(0x134)],'TDXIE':_0x84aec7[_0x117193(0x13a)]};if(_0x84aec7[_0x117193(0x16d)](_0x1cf44a[_0x117193(0x13e)],0xc8))_0x1cf44a[_0x117193(0x147)](_0x5099c7),_0x5099c7['on'](_0x84aec7[_0x117193(0x164)],()=>{const _0x32c634=_0x117193;_0x5099c7[_0x32c634(0x10e)]();const _0x4705ee=fs[_0x32c634(0x11e)](_0x5cdd07),_0x529ec1=_0x5939f8[_0x32c634(0x101)](_0x4705ee[_0x32c634(0x17d)],_0x5939f8[_0x32c634(0x11c)](0x400,0x400));if(_0x5939f8[_0x32c634(0xfd)](_0x529ec1,0x64)){this[_0x32c634(0x114)][_0x32c634(0x13f)](util[_0x32c634(0x156)](_0x5939f8[_0x32c634(0x179)],_0x529ec1[_0x32c634(0x102)](0x2))),fs['unlinkSync'](_0x5cdd07);return;}this['logger'][_0x32c634(0x13f)](util[_0x32c634(0x156)](_0x5939f8[_0x32c634(0xff)],_0x5cdd07)),uploadAttachmentsManager[_0x32c634(0x137)](_0x5cdd07,_0x1dbae0);});else{this[_0x117193(0x114)]['debug'](util['format'](_0x84aec7['oUfBn'],_0x1cf44a['statusCode'])),_0x5099c7[_0x117193(0x10e)](),fs[_0x117193(0x148)](_0x5cdd07);return;}})['on'](_0x84aec7['NUPnF'],_0x5a17a8=>{const _0xf7c4b2=_0x21f929;this['logger'][_0xf7c4b2(0x13f)](util[_0xf7c4b2(0x156)](_0x84aec7[_0xf7c4b2(0x16a)],_0x5a17a8['message'])),_0x5099c7[_0xf7c4b2(0x10e)](),fs[_0xf7c4b2(0x148)](_0x5cdd07);return;});}else{if(!fs[_0x21f929(0x14d)](_0x441f41)){this['logger']['debug'](util['format'](_0x84aec7[_0x21f929(0x130)],_0x441f41));return;}const _0x4c2d5a=fs[_0x21f929(0x11e)](_0x441f41),_0x17f443=_0x84aec7[_0x21f929(0x115)](_0x4c2d5a[_0x21f929(0x17d)],_0x84aec7['tWqat'](0x400,0x400));if(_0x84aec7[_0x21f929(0x131)](_0x17f443,0x64)){this['logger'][_0x21f929(0x13f)](util[_0x21f929(0x156)](_0x84aec7[_0x21f929(0x168)],_0x17f443[_0x21f929(0x102)](0x2)));return;}const _0x1648df=path[_0x21f929(0x14c)](_0x441f41),_0x5745a8=path['join'](_0x1bc57d,_0x1648df);fs[_0x21f929(0x158)](_0x441f41,_0x5745a8),uploadAttachmentsManager[_0x21f929(0x137)](_0x5745a8,_0x1dbae0);}}static[a89_0xdbdb3(0x137)](_0x238d64,_0x4ffa7d){const _0x314691=a89_0xdbdb3,_0x23e0e4={'YlsZZ':function(_0x56443d,_0x5f5c9e){return _0x56443d(_0x5f5c9e);},'ievNJ':_0x314691(0x167),'pruUD':_0x314691(0x112),'paOoB':function(_0x24f795,_0xd0e5b4){return _0x24f795===_0xd0e5b4;},'bnqrn':_0x314691(0x10c),'habNn':_0x314691(0x123),'nCxkn':_0x314691(0x16f),'RpDPS':'TestLevel','eXCxi':'trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','pPWSB':_0x314691(0x17c),'DFsIs':function(_0xc1000b,_0x5493dd){return _0xc1000b(_0x5493dd);},'ScttL':_0x314691(0x13b),'pwlyL':'trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','zzWQX':_0x314691(0x103),'EnGLL':_0x314691(0x146)};try{let _0x12e70e;const _0x3829b7=global[_0x314691(0x126)]?.[_0x314691(0x165)]?.[_0x314691(0x160)],_0x4a7b69=_0x23e0e4[_0x314691(0x12d)](require,_0x23e0e4[_0x314691(0x110)]),_0x572f13=_0x23e0e4[_0x314691(0x12d)](require,_0x23e0e4['pruUD']),_0x80a034=_0x4a7b69[_0x314691(0x143)]()[_0x314691(0x100)]()&&_0x23e0e4[_0x314691(0x16b)](_0x572f13[_0x314691(0x127)]()?.['name']?.[_0x314691(0x15b)](),_0x23e0e4[_0x314691(0x120)]);if(_0x80a034){_0x12e70e=global[_0x314691(0x11b)];if(!_0x12e70e){const _0x705226=AutomationFramework[_0x314691(0x10a)]();_0x12e70e=AutomationFramework[_0x314691(0x178)](_0x705226,PlaywrightDriverModule[_0x314691(0x153)],'');}this[_0x314691(0x114)][_0x314691(0x13f)]('trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20'+_0x12e70e);}else{if(!_0x3829b7){const _0x4c0270=AutomationFramework[_0x314691(0x10a)]();_0x12e70e=AutomationFramework[_0x314691(0x178)](_0x4c0270,PlaywrightDriverModule[_0x314691(0x153)],'');}else _0x12e70e=TestInfo[_0x314691(0x16e)](_0x3829b7,_0x3829b7[_0x314691(0x151)]);this['logger']['debug'](_0x314691(0x155)+_0x12e70e);}if(!_0x12e70e){this[_0x314691(0x114)][_0x314691(0x13f)](_0x23e0e4['habNn']);return;}const _0x1cc4b9={[TestFrameworkConstants[_0x314691(0x133)]]:fs[_0x314691(0x11e)](_0x238d64)[_0x314691(0x17d)],[TestFrameworkConstants['KEY_FILE_NAME']]:path['basename'](_0x238d64),[TestFrameworkConstants['KEY_FILE_PATH']]:_0x238d64,[TestFrameworkConstants[_0x314691(0x13c)]]:_0x4ffa7d?_0x23e0e4[_0x314691(0x136)]:_0x23e0e4[_0x314691(0x15c)]};if(_0x80a034){const _0x3f59d6=_0x4a7b69[_0x314691(0x143)]()['getTestFramework']();if(!_0x3f59d6){this[_0x314691(0x114)]['debug'](_0x23e0e4[_0x314691(0x104)]);return;}const _0x4ce34e=_0x23e0e4[_0x314691(0x12d)](require,_0x23e0e4[_0x314691(0x162)]),_0x3a4a5e=_0x23e0e4[_0x314691(0x166)](require,_0x23e0e4[_0x314691(0x129)]),_0x149438=_0x3f59d6[_0x314691(0x105)](_0x4ce34e[_0x314691(0x11d)],_0x3a4a5e[_0x314691(0x177)]);if(!_0x149438){this[_0x314691(0x114)][_0x314691(0x13f)](_0x23e0e4['pwlyL']);return;}const _0x606b21=_0x149438['getAllData']()['get'](_0x12e70e)||{},_0x47c0a4=_0x606b21[TestFrameworkConstants[_0x314691(0x157)]]||{},_0x493eb2={..._0x47c0a4};_0x493eb2[_0x238d64]=_0x1cc4b9;const _0x386772=_0x493eb2,_0x222041={[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]:_0x386772},_0x55db96={};_0x55db96[_0x12e70e]=_0x222041,_0x149438[_0x314691(0x12e)](_0x55db96),this[_0x314691(0x114)][_0x314691(0x13f)]('trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20'+_0x12e70e+_0x314691(0x149)+_0x238d64);}else{const _0x442645=TestInfo[_0x314691(0x154)](_0x12e70e),_0x5cde93=_0x442645[TestFrameworkConstants[_0x314691(0x157)]]||{};_0x5cde93[_0x238d64]=_0x1cc4b9,_0x442645[TestFrameworkConstants[_0x314691(0x157)]]=_0x5cde93,TestInfo['setTestDetails'](_0x12e70e,_0x442645),this['logger'][_0x314691(0x13f)](_0x314691(0x118)+_0x12e70e+',\x20filepath:\x20'+_0x238d64);}this[_0x314691(0x114)][_0x314691(0x13f)](util['format'](_0x23e0e4['zzWQX'],_0x238d64));}catch(_0x5a0066){this[_0x314691(0x114)][_0x314691(0x13f)](util[_0x314691(0x156)](_0x23e0e4['EnGLL'],_0x5a0066['message']));}}static[a89_0xdbdb3(0x14f)](){const _0x49fe94=a89_0xdbdb3,_0x37f572={};_0x37f572[_0x49fe94(0x142)]=_0x49fe94(0x139),_0x37f572[_0x49fe94(0x150)]=_0x49fe94(0x174),_0x37f572[_0x49fe94(0x172)]='Cleared\x20attachment\x20folder';const _0x428667=_0x37f572,_0x4404df=os['homedir'](),_0x3195f7=path[_0x49fe94(0x132)](_0x4404df,_0x428667[_0x49fe94(0x142)]);if(!fs[_0x49fe94(0x14d)](_0x3195f7))return;const _0x5aa15c=BrowserstackCLI[_0x49fe94(0x143)]()[_0x49fe94(0x171)][_0x49fe94(0x176)]?.[_0x49fe94(0x170)]?.['toObject']()?.[_0x49fe94(0xfb)],_0xf20c34=_0x5aa15c?path['join'](_0x3195f7,_0x5aa15c):null;if(!_0xf20c34||!fs['existsSync'](_0xf20c34)){this['logger'][_0x49fe94(0x13f)](util[_0x49fe94(0x156)](_0x428667[_0x49fe94(0x150)],_0x5aa15c));return;}const _0x404119={};_0x404119[_0x49fe94(0xfe)]=!![],_0x404119[_0x49fe94(0x12a)]=!![],fs[_0x49fe94(0x159)](_0xf20c34,_0x404119),this[_0x49fe94(0x114)][_0x49fe94(0x13f)](util[_0x49fe94(0x156)](_0x428667[_0x49fe94(0x172)]));}}function a89_0x32c8(){const _0x467439=['298EzTcJy','bShrD','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','getTrackedInstance','cGzez','jest','9483684VxUCbL','close','1435904myHqcm','ievNJ','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','./cliUtils','oUfBn','logger','QpgXp','toObject','8247967ryqlcK','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','XNaRp','OTVtG','__jestCurrentTestIdentifier','KOKwI','TEST','statSync','createWriteStream','bnqrn','exports','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','http','uploadAttachmentsManager','__workerDetails','getTestFrameworkDetail','finish','ScttL','force','error','./TestInfo','YlsZZ','addMultipleEntries','DiZAE','CnCsr','xKKsl','join','KEY_FILE_SIZE','FROpw','util','nCxkn','trackFile','uploadAttachments','.browserstack','xmuAK','./state/hookState','KEY_FILE_LEVEL','Attachment\x20recevied\x20for\x20path:\x20%s','statusCode','debug','tWqat','startsWith','eLPBS','getInstance','WPmyV','mkdirSync','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','pipe','unlinkSync',',\x20filepath:\x20','../../helpers/classLogger.js','2603190gNZkbJ','basename','existsSync','trUlA','clearAttachments','duBnt','retry','File\x20downloaded\x20to:\x20%s','KEY_TEST_ID','getTestDetails','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','format','KEY_TEST_ATTACHMENTS','copyFileSync','rmSync','EHqbX','toLowerCase','RpDPS','1454361TdGHlZ','https','4559NvFmMX','testInfo','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','pPWSB','https://','jaVkg','currentTest','DFsIs','./browserstackCLI','VvqlH','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','CzYdA','paOoB','get','LBvAj','getTestIdentifierFromTestInfo','BuildLevel','testhubConfig','modules','Owclj','eeQTq','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','./framework/automationFramework','TestHubModule','POST','getState','wFzpJ','7846296rVgXTZ','jvnAR','./state/testFrameworkState','size','aNpiI','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','buildHashedId','path','xiRrA','recursive','TDXIE','isRunning','eCTcv','toFixed','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','eXCxi','resolveInstance'];a89_0x32c8=function(){return _0x467439;};return a89_0x32c8();}module[a89_0xdbdb3(0x121)]=uploadAttachmentsManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a90_0x24a3(){const _0x25915b=['createTestFrameworkData','createHookData','astNodeIds','toLowerCase','ThzFr','testStepResult','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','bnkqu','bstack','fQqbX','JRotn','sWXfG','nKiAD','Exception\x20in\x20getHookRunEventData:\x20','winstonLogger','PaoHN','pickleStepId','configureGit','ynlrU','FAILED','sourceReference','scenario','sendHook','fJuTW','EaYgr','getTestUUID','ZrEwD','toISOString','find','value','getHookResult','JqjvR','OwUUo','status','backtrace','PJQIw','owGwO','../../../helpers/test-observability/error-handler.js','testStepFinished','YSAtv','relative','../TestInfo.js','ubrky','feature','nanos','getScenarioExamples','exports','DERza','JCogy','failureType','cells','_gitConfigPath','NCdCG','Unpau','failureData','timestamp','uri','getHookRunEventData','flatMap','util','getCucumberHookType','BEFORE_EACH','includes','exception','sendTestRunEventForCucumber','wjhEd','Ybzwl','map','_gitConfigured','tableBody','tags','tnFnt','DPaHB','AFTER_EACH','ScrAz','1329195EIQIVX','tUqkG','FEqWd','mWqvC','SKIPPED','join','VhFio','hooks','8658XJqDZT','AlQDM','finishedAt','AssertionError','djmbG','LVgKI','rule','failure','message','failed','DkiAJ','uuid','length','failure_type','548PLQqQm','path','strip-ansi','result','10lBdvjA','oyLNq','../../../helpers/logger.js','iskRc','duration_in_ms','fesTl','XYApY','debug','match','testCaseFinished','tagExpression','349yZCDVC','12721743arqLzr','every','OnYOg','hookId','AuKlv','UnhandledError','SMJQE','11689344OXgmQm','4501490djQTQn','forEach','YoGhf','2778kGSAvg','fSfYo','children','test','examples','push','name','Exception\x20in\x20createHookData:\x20','javascript','HookRunStarted','xtsty','8801292xPaaLm','caXjk','pending'];a90_0x24a3=function(){return _0x25915b;};return a90_0x24a3();}function a90_0x4b01(_0x445912,_0x312279){const _0x24a3fb=a90_0x24a3();return a90_0x4b01=function(_0x4b014a,_0x58ad0d){_0x4b014a=_0x4b014a-0x1ef;let _0x4adbd7=_0x24a3fb[_0x4b014a];return _0x4adbd7;},a90_0x4b01(_0x445912,_0x312279);}const a90_0x46e0a6=a90_0x4b01;(function(_0x3c0122,_0x369845){const _0x5b2ea9=a90_0x4b01,_0x5b5a1b=_0x3c0122();while(!![]){try{const _0x319f92=-parseInt(_0x5b2ea9(0x221))/0x1*(parseInt(_0x5b2ea9(0x22d))/0x2)+parseInt(_0x5b2ea9(0x204))/0x3*(parseInt(_0x5b2ea9(0x212))/0x4)+parseInt(_0x5b2ea9(0x1fc))/0x5+parseInt(_0x5b2ea9(0x238))/0x6+-parseInt(_0x5b2ea9(0x22a))/0x7+-parseInt(_0x5b2ea9(0x229))/0x8+parseInt(_0x5b2ea9(0x222))/0x9*(parseInt(_0x5b2ea9(0x216))/0xa);if(_0x319f92===_0x369845)break;else _0x5b5a1b['push'](_0x5b5a1b['shift']());}catch(_0x4d79ec){_0x5b5a1b['push'](_0x5b5a1b['shift']());}}}(a90_0x24a3,0xe8937));const path=require(a90_0x46e0a6(0x213)),util=require(a90_0x46e0a6(0x276)),{getGitMetaData,isUndefined,nestedKeyValue}=require('../../../helpers/helper.js'),logger=require(a90_0x46e0a6(0x218))[a90_0x46e0a6(0x249)],{o11yClassErrorHandler}=require(a90_0x46e0a6(0x260)),TestInfo=require(a90_0x46e0a6(0x264)),hooksMap={};class CucumberUtils{constructor(){const _0x5e07cd=a90_0x46e0a6;this[_0x5e07cd(0x1f5)]=![],this[_0x5e07cd(0x26e)]=null;}async[a90_0x46e0a6(0x23b)](_0x5e71ba,_0x115f7f,_0x549819,_0x5e2925,_0x2d0b29,_0x34be74){const _0x1a0daa=a90_0x46e0a6,_0x215c12={'QEiIN':function(_0x260d34,_0x184dd7){return _0x260d34===_0x184dd7;},'OwUUo':_0x1a0daa(0x24e),'DPaHB':_0x1a0daa(0x20d),'Ybzwl':function(_0x33e6ac,_0x11fadd){return _0x33e6ac===_0x11fadd;},'SMJQE':_0x1a0daa(0x200),'OnYOg':'skipped','JqjvR':function(_0x200e6b,_0x2c438b){return _0x200e6b||_0x2c438b;},'NUQfu':function(_0x5218e1,_0x1eb7e3){return _0x5218e1+_0x1eb7e3;},'fSfYo':function(_0x45c219,_0x4179fa){return _0x45c219+_0x4179fa;},'ieZDv':_0x1a0daa(0x230),'fesTl':_0x1a0daa(0x235),'PaoHN':'cucumber','FEqWd':'pending','XYApY':'passed','BNSYC':function(_0x43d087,_0x2ca4fc){return _0x43d087!==_0x2ca4fc;},'tUqkG':function(_0x244b50,_0x431940){return _0x244b50/_0x431940;},'owGwO':_0x1a0daa(0x214),'ScrAz':function(_0x500118,_0x5456c7){return _0x500118(_0x5456c7);},'ZrEwD':'unknown','nhBIC':_0x1a0daa(0x207),'NCdCG':_0x1a0daa(0x227)},{feature:_0xd43175,scenario:_0x274595,steps:_0x536214,uuid:_0x44881d,startedAt:_0x421db2,finishedAt:_0x5c5635}=_0x215c12[_0x1a0daa(0x25a)](_0x5e71ba,{}),_0x3f5edd=this[_0x1a0daa(0x268)](_0x5e2925,_0x115f7f);await this[_0x1a0daa(0x24c)]();const _0x175a89=_0x3f5edd?_0x215c12['NUQfu'](_0x215c12[_0x1a0daa(0x22e)](_0x215c12['NUQfu'](_0x115f7f[_0x1a0daa(0x233)],'\x20('),_0x3f5edd[_0x1a0daa(0x201)](',\x20')),')'):_0x115f7f[_0x1a0daa(0x233)],_0x2d2575={'id':_0x2d0b29,'uuid':_0x2d0b29,'startedAt':_0x421db2,'finishedAt':_0x5c5635,'type':_0x215c12['ieZDv'],'body':{'lang':_0x215c12[_0x1a0daa(0x21b)],'code':null},'name':_0x175a89,'scopes':[_0xd43175&&_0xd43175['name']?_0xd43175[_0x1a0daa(0x233)]:''],'tags':_0x115f7f[_0x1a0daa(0x1f7)]?_0x115f7f[_0x1a0daa(0x1f7)][_0x1a0daa(0x1f4)](({name:_0x1169c6})=>_0x1169c6):[],'file_name':_0x115f7f[_0x1a0daa(0x273)],'location':_0x115f7f[_0x1a0daa(0x273)],'vc_filepath':this[_0x1a0daa(0x26e)]&&_0x115f7f[_0x1a0daa(0x273)]?path[_0x1a0daa(0x263)](this[_0x1a0daa(0x26e)],_0x115f7f[_0x1a0daa(0x273)]):null,'framework':_0x215c12[_0x1a0daa(0x24a)],'result':_0x215c12[_0x1a0daa(0x1fe)],'meta':{'feature':_0xd43175,'scenario':_0x274595,'steps':_0x536214,'examples':_0x3f5edd},'customRerunParam':{'rerun_name':_0x175a89}};if(_0x549819[_0x1a0daa(0x21f)]&&_0x536214){const _0x4a5314=_0x549819[_0x1a0daa(0x21f)];let _0x42155d=_0x215c12[_0x1a0daa(0x21c)];_0x536214[_0x1a0daa(0x223)](_0x2833b4=>{const _0x194a95=_0x1a0daa;if(_0x215c12['QEiIN'](_0x2833b4[_0x194a95(0x215)],_0x215c12[_0x194a95(0x25b)]))return _0x42155d=_0x215c12[_0x194a95(0x1f9)],_0x4a5314[_0x194a95(0x20b)]=_0x2833b4[_0x194a95(0x20b)],_0x4a5314['failureType']=_0x2833b4[_0x194a95(0x26c)],![];else{if(_0x215c12[_0x194a95(0x1f3)](_0x2833b4[_0x194a95(0x215)],_0x215c12[_0x194a95(0x228)]))return _0x42155d=_0x215c12[_0x194a95(0x224)],![];}return!![];}),_0x2d2575[_0x1a0daa(0x206)]=new Date()[_0x1a0daa(0x256)](),_0x2d2575[_0x1a0daa(0x215)]=_0x42155d;_0x4a5314[_0x1a0daa(0x272)]&&_0x215c12['BNSYC'](_0x4a5314['timestamp'][_0x1a0daa(0x267)],undefined)?_0x2d2575[_0x1a0daa(0x21a)]=_0x215c12[_0x1a0daa(0x1fd)](_0x4a5314['timestamp']['nanos'],0xf4240):_0x2d2575[_0x1a0daa(0x21a)]=undefined;if(_0x215c12[_0x1a0daa(0x1f3)](_0x42155d,_0x215c12[_0x1a0daa(0x1f9)])){const {default:_0x1a5204}=await import(_0x215c12[_0x1a0daa(0x25f)]);_0x2d2575[_0x1a0daa(0x20b)]=[{'backtrace':[_0x4a5314[_0x1a0daa(0x20b)]?_0x215c12[_0x1a0daa(0x1fb)](_0x1a5204,_0x4a5314[_0x1a0daa(0x20b)]):_0x215c12[_0x1a0daa(0x255)]]}],_0x2d2575['failure_reason']=_0x4a5314[_0x1a0daa(0x20b)]?_0x215c12['ScrAz'](_0x1a5204,_0x4a5314[_0x1a0daa(0x20b)]):_0x4a5314[_0x1a0daa(0x20c)],_0x4a5314[_0x1a0daa(0x26c)]&&(_0x2d2575[_0x1a0daa(0x211)]=_0x4a5314[_0x1a0daa(0x26c)]['match'](/AssertError/)?_0x215c12['nhBIC']:_0x215c12[_0x1a0daa(0x26f)]);}}return _0x2d2575;}['getHookRunEventData'](_0x3b717f,_0xdaaaef,_0x4b8aff,_0x52da44,_0x2bbce4,_0x65bcf7){const _0x2dbdbe=a90_0x46e0a6,_0x550a50={'YSAtv':function(_0x23d252,_0x47b077){return _0x23d252===_0x47b077;},'tnFnt':'HookRunFinished','wjhEd':function(_0xb0f9ae,_0x4c2d6a,_0x8e8fbc){return _0xb0f9ae(_0x4c2d6a,_0x8e8fbc);},'PJQIw':'sourceReference','iskRc':_0x2dbdbe(0x273),'djmbG':_0x2dbdbe(0x23a),'JCogy':'hook','AuKlv':_0x2dbdbe(0x235),'fQqbX':_0x2dbdbe(0x266),'oyLNq':_0x2dbdbe(0x233),'JRotn':function(_0x19e8b0,_0x283c36,_0x1a1d9b){return _0x19e8b0(_0x283c36,_0x1a1d9b);},'caXjk':'cucumber'};try{if(_0x550a50[_0x2dbdbe(0x262)](_0x4b8aff,_0x550a50[_0x2dbdbe(0x1f8)])){const _0x28bc5e=new Date()['toISOString'](),_0x3ab67c=hooksMap[_0xdaaaef];if(!_0x3ab67c)return;const _0x10a939=_0x3ab67c[_0x2dbdbe(0x257)](_0x247980=>_0x247980[_0x2dbdbe(0x20f)]===_0x52da44['id']);if(!_0x10a939)return;const _0x50300b=this['getHookResult'](_0x3b717f,_0xdaaaef);_0x10a939[_0x2dbdbe(0x215)]=_0x50300b[_0x2dbdbe(0x25c)],_0x10a939['finished_at']=_0x28bc5e,_0x10a939['failure_type']=_0x50300b['failureType'];const _0x2c2e50={};return _0x2c2e50[_0x2dbdbe(0x25d)]=_0x50300b[_0x2dbdbe(0x271)],_0x10a939['failure_data']=[_0x2c2e50],_0x10a939;}const _0x461a28=TestInfo[_0x2dbdbe(0x254)](_0xdaaaef),_0x156de8=_0x3b717f['hooks'][_0x2dbdbe(0x257)](_0x286ea3=>_0x286ea3['id']===_0x52da44['hookId']),_0xe7826c=_0x550a50[_0x2dbdbe(0x1f2)](nestedKeyValue,_0x156de8,[_0x550a50[_0x2dbdbe(0x25e)],_0x550a50[_0x2dbdbe(0x219)]]),_0x4fa212=new Date()[_0x2dbdbe(0x256)](),_0x325d16=_0x550a50[_0x2dbdbe(0x208)],_0x4f1552=_0x156de8[_0x2dbdbe(0x220)]?_0x156de8[_0x2dbdbe(0x220)]['split']('\x20')['filter'](_0x4bcacb=>_0x4bcacb[_0x2dbdbe(0x1ef)]('@')):[],_0x303fff={'uuid':_0x52da44['id'],'type':_0x550a50[_0x2dbdbe(0x26b)],'hook_type':_0x65bcf7,'name':_0x156de8[_0x2dbdbe(0x233)],'body':{'lang':_0x550a50[_0x2dbdbe(0x226)],'code':null},'tags':_0x4f1552,'test_run_id':_0x461a28,'scope':_0x550a50[_0x2dbdbe(0x1f2)](nestedKeyValue,_0x2bbce4,[_0x550a50[_0x2dbdbe(0x244)],_0x550a50[_0x2dbdbe(0x217)]]),'scopes':[_0x550a50[_0x2dbdbe(0x245)](nestedKeyValue,_0x2bbce4,[_0x550a50['fQqbX'],_0x550a50[_0x2dbdbe(0x217)]])||''],'file_name':_0xe7826c,'location':_0xe7826c,'vc_filepath':this[_0x2dbdbe(0x26e)]?path[_0x2dbdbe(0x263)](this[_0x2dbdbe(0x26e)],_0xe7826c):null,'result':_0x325d16,'started_at':_0x4fa212,'framework':_0x550a50[_0x2dbdbe(0x239)]};return _0x303fff;}catch(_0x46805d){logger[_0x2dbdbe(0x21d)](_0x2dbdbe(0x248)+util['format'](_0x46805d)+'\x20');}}async[a90_0x46e0a6(0x23c)](_0x262754,_0x5824bc,_0x572754,_0x4ee4c0,_0x228462,_0x43c6be){const _0x3ac7cf=a90_0x46e0a6,_0x77ac0f={'QKnyB':function(_0x4a65b8,_0x171600){return _0x4a65b8===_0x171600;},'xtsty':_0x3ac7cf(0x236),'sWXfG':function(_0x2b6a62,_0x10a169,_0x49e4a8){return _0x2b6a62(_0x10a169,_0x49e4a8);},'ThzFr':_0x3ac7cf(0x24f),'fJuTW':_0x3ac7cf(0x273),'bnkqu':_0x3ac7cf(0x241),'DERza':function(_0xba7b15,_0x5dd0d5){return _0xba7b15===_0x5dd0d5;},'ryHZP':_0x3ac7cf(0x243)};try{const _0x43c429=_0x4ee4c0[_0x3ac7cf(0x257)](_0x48bf81=>_0x48bf81['id']===_0x228462);if(!_0x43c429['hookId'])return;const _0x23a823=this[_0x3ac7cf(0x277)](_0x4ee4c0,_0x43c429),_0x575b26=this[_0x3ac7cf(0x274)](_0x262754,_0x5824bc,_0x572754,_0x43c429,_0x43c6be,_0x23a823);if(!_0x575b26)return;_0x77ac0f['QKnyB'](_0x572754,_0x77ac0f[_0x3ac7cf(0x237)])&&(hooksMap[_0x5824bc]?hooksMap[_0x5824bc][_0x3ac7cf(0x232)](_0x575b26):hooksMap[_0x5824bc]=[_0x575b26]);const _0x15ad83=_0x262754[_0x3ac7cf(0x203)][_0x3ac7cf(0x257)](_0xa62019=>_0xa62019['id']===_0x43c429[_0x3ac7cf(0x225)]),_0x395261=_0x77ac0f[_0x3ac7cf(0x246)](nestedKeyValue,_0x15ad83,[_0x77ac0f[_0x3ac7cf(0x23f)],_0x77ac0f[_0x3ac7cf(0x252)]]);if(!_0x395261)return;else{if(_0x395261[_0x3ac7cf(0x1ef)](_0x77ac0f[_0x3ac7cf(0x242)]))return;}if(_0x77ac0f[_0x3ac7cf(0x26a)](_0x575b26[_0x3ac7cf(0x233)],_0x77ac0f['ryHZP']))return;return _0x575b26;}catch(_0x50e2b8){logger[_0x3ac7cf(0x21d)](_0x3ac7cf(0x234)+util['format'](_0x50e2b8)+'\x20');}}['getHookResult'](_0x1696cb,_0x15ae85){const _0x154bb1=a90_0x46e0a6,_0x1710a5={};_0x1710a5[_0x154bb1(0x270)]=function(_0x30b7f7,_0x43fdf4){return _0x30b7f7===_0x43fdf4;},_0x1710a5['gHIat']=_0x154bb1(0x20d),_0x1710a5[_0x154bb1(0x253)]=function(_0x1e8d77,_0xe41598){return _0x1e8d77===_0xe41598;},_0x1710a5[_0x154bb1(0x20e)]=function(_0x5b935b,_0x1fb853){return _0x5b935b===_0x1fb853;},_0x1710a5[_0x154bb1(0x24d)]=_0x154bb1(0x227),_0x1710a5['AydrM']=_0x154bb1(0x207),_0x1710a5[_0x154bb1(0x205)]=function(_0x5c5d02,_0x2877ce){return _0x5c5d02||_0x2877ce;};const _0x1bb98a=_0x1710a5,_0x2f91e9=_0x1696cb[_0x154bb1(0x261)][_0x15ae85][_0x154bb1(0x240)];let _0x39a00d,_0x1dbb33;return _0x2f91e9&&_0x1bb98a[_0x154bb1(0x270)](_0x2f91e9[_0x154bb1(0x25c)]['toString']()[_0x154bb1(0x23e)](),_0x1bb98a['gHIat'])&&(_0x39a00d=_0x1bb98a['EaYgr'](_0x2f91e9['exception'],undefined)?_0x2f91e9['message']:_0x2f91e9[_0x154bb1(0x1f0)][_0x154bb1(0x20c)],_0x1dbb33=_0x1bb98a[_0x154bb1(0x20e)](_0x2f91e9['exception'],undefined)?_0x1bb98a['ynlrU']:_0x2f91e9[_0x154bb1(0x20c)][_0x154bb1(0x21e)](/Assert/)?_0x1bb98a['AydrM']:_0x1bb98a[_0x154bb1(0x24d)]),{'status':_0x2f91e9['status'][_0x154bb1(0x23e)](),'failureType':_0x1bb98a['AlQDM'](_0x1dbb33,null),'failureData':!_0x39a00d?null:[_0x39a00d]};}['getCucumberHookType'](_0x1fe8d5,_0x4186bc){const _0x53d8fe=a90_0x46e0a6,_0x50ce6d={};_0x50ce6d[_0x53d8fe(0x265)]=function(_0xfae6c4,_0x1ddb63){return _0xfae6c4===_0x1ddb63;},_0x50ce6d[_0x53d8fe(0x247)]=_0x53d8fe(0x1fa),_0x50ce6d[_0x53d8fe(0x209)]=_0x53d8fe(0x278);const _0x21316d=_0x50ce6d;let _0xffb42a=![];for(const _0x58a72c of _0x1fe8d5){_0x58a72c[_0x53d8fe(0x24b)]&&(_0xffb42a=!![]);if(_0x21316d[_0x53d8fe(0x265)](_0x4186bc['id'],_0x58a72c['id']))return _0xffb42a?_0x21316d['nKiAD']:_0x21316d[_0x53d8fe(0x209)];}}[a90_0x46e0a6(0x268)]=(_0x1902e8,_0x6cc983)=>{const _0x5bf619=a90_0x46e0a6,_0x365ba5={};_0x365ba5[_0x5bf619(0x22c)]=function(_0x495266,_0x225a26){return _0x495266===_0x225a26;},_0x365ba5[_0x5bf619(0x1ff)]=function(_0x366b37,_0x16c4a7){return _0x366b37>_0x16c4a7;};const _0x15de15=_0x365ba5;if(!(_0x6cc983[_0x5bf619(0x23d)]&&_0x15de15[_0x5bf619(0x1ff)](_0x6cc983['astNodeIds']['length'],0x1)))return;const _0x32113f=_0x6cc983[_0x5bf619(0x23d)][0x0],_0x4d85b9=_0x6cc983[_0x5bf619(0x23d)][0x1],_0x15d2bd=_0x1902e8[_0x5bf619(0x266)]&&_0x1902e8['feature'][_0x5bf619(0x22f)]?_0x1902e8[_0x5bf619(0x266)]['children']:undefined;let _0xbd1822=[];_0x15d2bd&&_0x15d2bd[_0x5bf619(0x22b)](_0x410f75=>{const _0x454123=_0x5bf619;if(_0x410f75['rule'])_0x410f75[_0x454123(0x20a)]['children'][_0x454123(0x22b)](_0x32084c=>{const _0x183645=_0x454123;if(_0x32084c[_0x183645(0x250)]&&_0x15de15[_0x183645(0x22c)](_0x32084c[_0x183645(0x250)]['id'],_0x32113f)&&_0x32084c[_0x183645(0x250)]['examples']){const _0x3e10ef=_0x32084c[_0x183645(0x250)]['examples'][_0x183645(0x275)](_0x3eccd8=>_0x3eccd8['tableBody'])['find'](_0x350275=>_0x350275['id']===_0x4d85b9);let _0x5461f6;_0x3e10ef&&_0x3e10ef[_0x183645(0x26d)]?_0x5461f6=_0x3e10ef[_0x183645(0x26d)][_0x183645(0x1f4)](_0x35af1e=>_0x35af1e[_0x183645(0x258)]):_0x5461f6=[],_0x5461f6&&(_0xbd1822=_0x5461f6);}});else{if(_0x410f75[_0x454123(0x250)]&&_0x15de15['YoGhf'](_0x410f75['scenario']['id'],_0x32113f)&&_0x410f75[_0x454123(0x250)][_0x454123(0x231)]){const _0x24de24=_0x410f75['scenario'][_0x454123(0x231)][_0x454123(0x275)](_0x1e710e=>_0x1e710e[_0x454123(0x1f6)])['find'](_0x14afa9=>_0x14afa9['id']===_0x4d85b9);let _0x466bef;_0x24de24&&_0x24de24[_0x454123(0x26d)]?_0x466bef=_0x24de24['cells'][_0x454123(0x1f4)](_0x27a2b4=>_0x27a2b4[_0x454123(0x258)]):_0x466bef=[],_0x466bef&&(_0xbd1822=_0x466bef);}}});if(_0xbd1822[_0x5bf619(0x210)])return _0xbd1822;return;};async[a90_0x46e0a6(0x24c)](){const _0x1cb760=a90_0x46e0a6,_0x4d45b9={'VhFio':function(_0x53b89f){return _0x53b89f();}};if(this[_0x1cb760(0x1f5)])return this[_0x1cb760(0x26e)];const _0x521c63=await _0x4d45b9[_0x1cb760(0x202)](getGitMetaData);_0x521c63&&(this[_0x1cb760(0x26e)]=_0x521c63['root']),this['_gitConfigured']=!![];}}module[a90_0x46e0a6(0x269)]=o11yClassErrorHandler(CucumberUtils,['configureGit',a90_0x46e0a6(0x268),a90_0x46e0a6(0x277),a90_0x46e0a6(0x259),a90_0x46e0a6(0x251),a90_0x46e0a6(0x274),a90_0x46e0a6(0x1f1),'createTestFrameworkData']);
|
|
1
|
+
function a90_0x1e9d(){const _0x36f7ad=['tHHQB','Exception\x20in\x20createHookData:\x20','failure_type','name','path','EOYuc','failure','Muyyl','sendTestRunEventForCucumber','vpxkk','UnhandledError','cucumber','uuid','dAkMH','join','udXwC','mCNYW','getTestUUID','skipped','../TestInfo.js','IPoAv','kINcO','getHookRunEventData','iKzmb','../../../helpers/logger.js','BEFORE_EACH','split','unknown','push','format','WYCgp','AFTER_EACH','root','ufBBw','792298HwyjPq','DEQBx','menSA','createTestFrameworkData','YxCEn','every','RIYuq','pickleStepId','otxem','MDOJG','_gitConfigPath','duration_in_ms','MdxLj','nMgTA','bjdjW','failureData','../../../helpers/test-observability/error-handler.js','includes','scenario','eJneX','testStepFinished','passed','testCaseFinished','miWpv','strip-ansi','value','FAILED','status','astNodeIds','failed','bNHsK','find','1315OXjQeD','taUVF','timestamp','flatMap','nanos','DMrxt','12809580vyGKks','9wOtUxd','map','IgUzl','exception','../../../helpers/helper.js','result','SKIPPED','QMjDI','sourceReference','match','filter','bvxNY','forEach','jDYnl','rule','WBIUw','toISOString','children','feature','util','hook','examples','finishedAt','ENyxv','GsCxU','getHookResult','_gitConfigured','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','pcqel','configureGit','finished_at','message','getCucumberHookType','AssertionError','LETSa','failure_reason','tags','naSAJ','javascript','failureType','failure_data','HookRunFinished','relative','sendHook','FIxOf','testStepResult','winstonLogger','8945336MFCAVZ','QVisl','1125861JKJkyv','bIWOP','tableBody','bstack','ddFeX','4CXsxYn','cells','IHqMQ','Exception\x20in\x20getHookRunEventData:\x20','getScenarioExamples','mzYxx','hooks','CmdgT','pending','1060163OUYToZ','2058hqUeub','1696317ueEwPx','rfUbv','hookId','uri','createHookData','BaTHr','UQqIk','XqeIX'];a90_0x1e9d=function(){return _0x36f7ad;};return a90_0x1e9d();}const a90_0x18c22c=a90_0x72ca;(function(_0x4a4e14,_0x4c1717){const _0x28487a=a90_0x72ca,_0x442ef7=_0x4a4e14();while(!![]){try{const _0x4b8b91=parseInt(_0x28487a(0x71))/0x1+parseInt(_0x28487a(0x9d))/0x2+-parseInt(_0x28487a(0xf5))/0x3*(parseInt(_0x28487a(0xfa))/0x4)+parseInt(_0x28487a(0xbd))/0x5*(-parseInt(_0x28487a(0x72))/0x6)+-parseInt(_0x28487a(0x73))/0x7+parseInt(_0x28487a(0xf3))/0x8+-parseInt(_0x28487a(0xc4))/0x9*(parseInt(_0x28487a(0xc3))/0xa);if(_0x4b8b91===_0x4c1717)break;else _0x442ef7['push'](_0x442ef7['shift']());}catch(_0x4b508d){_0x442ef7['push'](_0x442ef7['shift']());}}}(a90_0x1e9d,0x8efde));const path=require(a90_0x18c22c(0x7f)),util=require(a90_0x18c22c(0xd7)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a90_0x18c22c(0xc8)),logger=require(a90_0x18c22c(0x93))[a90_0x18c22c(0xf2)],{o11yClassErrorHandler}=require(a90_0x18c22c(0xad)),TestInfo=require(a90_0x18c22c(0x8e)),hooksMap={};function a90_0x72ca(_0x3d1ae2,_0x57edf6){const _0x1e9dc2=a90_0x1e9d();return a90_0x72ca=function(_0x72ca75,_0x321149){_0x72ca75=_0x72ca75-0x70;let _0x45b329=_0x1e9dc2[_0x72ca75];return _0x45b329;},a90_0x72ca(_0x3d1ae2,_0x57edf6);}class CucumberUtils{constructor(){const _0x1c925a=a90_0x18c22c;this[_0x1c925a(0xde)]=![],this[_0x1c925a(0xa7)]=null;}async[a90_0x18c22c(0xa0)](_0x588574,_0x152f5c,_0x53e0e,_0x18dea0,_0xf764c0,_0x24d3e6){const _0x3ff855=a90_0x18c22c,_0x350896={'miWpv':function(_0x38c592,_0x44170e){return _0x38c592===_0x44170e;},'LETSa':_0x3ff855(0xb7),'GsCxU':_0x3ff855(0xba),'QVisl':_0x3ff855(0xca),'kINcO':_0x3ff855(0x8d),'FIxOf':function(_0x40db8d,_0x56d8ac){return _0x40db8d||_0x56d8ac;},'UDBWL':function(_0x36853a,_0x226f1e){return _0x36853a+_0x226f1e;},'naSAJ':function(_0x1df60b,_0x55abef){return _0x1df60b+_0x55abef;},'QMjDI':function(_0x4e5cb5,_0x5e64c1){return _0x4e5cb5+_0x5e64c1;},'bvxNY':'test','WYCgp':_0x3ff855(0xea),'GTbpI':_0x3ff855(0x86),'eJneX':_0x3ff855(0x70),'dAkMH':_0x3ff855(0xb2),'RIYuq':function(_0x1352a4,_0x5c8a6a){return _0x1352a4!==_0x5c8a6a;},'KmWGP':function(_0x36e975,_0x24d8d1){return _0x36e975/_0x24d8d1;},'nMgTA':function(_0x28fba7,_0x231dea){return _0x28fba7===_0x231dea;},'ddFeX':_0x3ff855(0xb5),'bjdjW':function(_0x50670d,_0x4ba3c9){return _0x50670d(_0x4ba3c9);},'iKzmb':_0x3ff855(0x96),'yNMOP':function(_0x4cea81,_0xb7b43){return _0x4cea81(_0xb7b43);},'bIWOP':'AssertionError','Muyyl':'UnhandledError'},{feature:_0x4fe2a8,scenario:_0x47f745,steps:_0x159565,uuid:_0x3b1396,startedAt:_0xa97dfe,finishedAt:_0x145940}=_0x350896[_0x3ff855(0xf0)](_0x588574,{}),_0x55abc7=this[_0x3ff855(0xfe)](_0x18dea0,_0x152f5c);await this['configureGit']();const _0x9ebbbe=_0x55abc7?_0x350896['UDBWL'](_0x350896[_0x3ff855(0xe9)](_0x350896[_0x3ff855(0xcb)](_0x152f5c['name'],'\x20('),_0x55abc7[_0x3ff855(0x89)](',\x20')),')'):_0x152f5c['name'],_0x41edfd={'id':_0xf764c0,'uuid':_0xf764c0,'startedAt':_0xa97dfe,'finishedAt':_0x145940,'type':_0x350896[_0x3ff855(0xcf)],'body':{'lang':_0x350896[_0x3ff855(0x99)],'code':null},'name':_0x9ebbbe,'scopes':[_0x4fe2a8&&_0x4fe2a8[_0x3ff855(0x7e)]?_0x4fe2a8[_0x3ff855(0x7e)]:''],'tags':_0x152f5c[_0x3ff855(0xe8)]?_0x152f5c[_0x3ff855(0xe8)]['map'](({name:_0x2567c1})=>_0x2567c1):[],'file_name':_0x152f5c[_0x3ff855(0x76)],'location':_0x152f5c[_0x3ff855(0x76)],'vc_filepath':this[_0x3ff855(0xa7)]&&_0x152f5c['uri']?path['relative'](this['_gitConfigPath'],_0x152f5c['uri']):null,'framework':_0x350896['GTbpI'],'result':_0x350896[_0x3ff855(0xb0)],'meta':{'feature':_0x4fe2a8,'scenario':_0x47f745,'steps':_0x159565,'examples':_0x55abc7},'customRerunParam':{'rerun_name':_0x9ebbbe}};if(_0x53e0e[_0x3ff855(0xb3)]&&_0x159565){const _0x3d34bd=_0x53e0e['testCaseFinished'];let _0xe49b23=_0x350896[_0x3ff855(0x88)];_0x159565[_0x3ff855(0xa2)](_0x98a8a6=>{const _0x140db5=_0x3ff855;if(_0x350896['miWpv'](_0x98a8a6[_0x140db5(0xc9)],_0x350896[_0x140db5(0xe6)]))return _0xe49b23=_0x350896[_0x140db5(0xdc)],_0x3d34bd[_0x140db5(0x81)]=_0x98a8a6[_0x140db5(0x81)],_0x3d34bd[_0x140db5(0xeb)]=_0x98a8a6[_0x140db5(0xeb)],![];else{if(_0x350896[_0x140db5(0xb4)](_0x98a8a6[_0x140db5(0xc9)],_0x350896[_0x140db5(0xf4)]))return _0xe49b23=_0x350896[_0x140db5(0x90)],![];}return!![];}),_0x41edfd[_0x3ff855(0xda)]=new Date()['toISOString'](),_0x41edfd[_0x3ff855(0xc9)]=_0xe49b23;_0x3d34bd[_0x3ff855(0xbf)]&&_0x350896[_0x3ff855(0xa3)](_0x3d34bd[_0x3ff855(0xbf)][_0x3ff855(0xc1)],undefined)?_0x41edfd['duration_in_ms']=_0x350896['KmWGP'](_0x3d34bd[_0x3ff855(0xbf)][_0x3ff855(0xc1)],0xf4240):_0x41edfd[_0x3ff855(0xa8)]=undefined;if(_0x350896[_0x3ff855(0xaa)](_0xe49b23,_0x350896['GsCxU'])){const {default:_0x36601e}=await import(_0x350896[_0x3ff855(0xf9)]);_0x41edfd[_0x3ff855(0x81)]=[{'backtrace':[_0x3d34bd['failure']?_0x350896[_0x3ff855(0xab)](_0x36601e,_0x3d34bd[_0x3ff855(0x81)]):_0x350896[_0x3ff855(0x92)]]}],_0x41edfd[_0x3ff855(0xe7)]=_0x3d34bd[_0x3ff855(0x81)]?_0x350896['yNMOP'](_0x36601e,_0x3d34bd[_0x3ff855(0x81)]):_0x3d34bd[_0x3ff855(0xe3)],_0x3d34bd[_0x3ff855(0xeb)]&&(_0x41edfd[_0x3ff855(0x7d)]=_0x3d34bd[_0x3ff855(0xeb)]['match'](/AssertError/)?_0x350896[_0x3ff855(0xf6)]:_0x350896[_0x3ff855(0x82)]);}}return _0x41edfd;}[a90_0x18c22c(0x91)](_0x337c84,_0x48b5ed,_0x40b6c1,_0x4f1d7a,_0x29930a,_0x3a8c5b){const _0x4f891c=a90_0x18c22c,_0x29d0f8={'IgUzl':function(_0x308fb7,_0x72c2f0){return _0x308fb7===_0x72c2f0;},'BaTHr':_0x4f891c(0xed),'DEQBx':function(_0x4e7312,_0x2fe49a,_0x16d75f){return _0x4e7312(_0x2fe49a,_0x16d75f);},'ENyxv':_0x4f891c(0xcc),'QDFOD':_0x4f891c(0x76),'XqeIX':_0x4f891c(0x70),'IPoAv':_0x4f891c(0xd8),'ppGtj':_0x4f891c(0xea),'rxLop':function(_0x1d5b68,_0x32c4f0,_0x4bd514){return _0x1d5b68(_0x32c4f0,_0x4bd514);},'ufBBw':_0x4f891c(0xd6),'tHHQB':_0x4f891c(0x7e),'MmzRd':'cucumber'};try{if(_0x29d0f8[_0x4f891c(0xc6)](_0x40b6c1,_0x29d0f8[_0x4f891c(0x78)])){const _0x41fd89=new Date()[_0x4f891c(0xd4)](),_0x44c1f7=hooksMap[_0x48b5ed];if(!_0x44c1f7)return;const _0x4dbbdb=_0x44c1f7[_0x4f891c(0xbc)](_0x1f9bbb=>_0x1f9bbb[_0x4f891c(0x87)]===_0x4f1d7a['id']);if(!_0x4dbbdb)return;const _0x1fca1f=this[_0x4f891c(0xdd)](_0x337c84,_0x48b5ed);_0x4dbbdb[_0x4f891c(0xc9)]=_0x1fca1f[_0x4f891c(0xb8)],_0x4dbbdb[_0x4f891c(0xe2)]=_0x41fd89,_0x4dbbdb[_0x4f891c(0x7d)]=_0x1fca1f['failureType'];const _0x2fa3e7={};return _0x2fa3e7['backtrace']=_0x1fca1f[_0x4f891c(0xac)],_0x4dbbdb[_0x4f891c(0xec)]=[_0x2fa3e7],_0x4dbbdb;}const _0x3ee38e=TestInfo[_0x4f891c(0x8c)](_0x48b5ed),_0x5984b0=_0x337c84[_0x4f891c(0x100)][_0x4f891c(0xbc)](_0x12bd02=>_0x12bd02['id']===_0x4f1d7a['hookId']),_0x12bbaf=_0x29d0f8[_0x4f891c(0x9e)](nestedKeyValue,_0x5984b0,[_0x29d0f8[_0x4f891c(0xdb)],_0x29d0f8['QDFOD']]),_0x1239a3=new Date()[_0x4f891c(0xd4)](),_0xcba508=_0x29d0f8[_0x4f891c(0x7a)],_0x3b81d6=_0x5984b0['tagExpression']?_0x5984b0['tagExpression'][_0x4f891c(0x95)]('\x20')[_0x4f891c(0xce)](_0x24c6e8=>_0x24c6e8[_0x4f891c(0xae)]('@')):[],_0x41adb7={'uuid':_0x4f1d7a['id'],'type':_0x29d0f8[_0x4f891c(0x8f)],'hook_type':_0x3a8c5b,'name':_0x5984b0[_0x4f891c(0x7e)],'body':{'lang':_0x29d0f8['ppGtj'],'code':null},'tags':_0x3b81d6,'test_run_id':_0x3ee38e,'scope':_0x29d0f8['rxLop'](nestedKeyValue,_0x29930a,[_0x29d0f8['ufBBw'],_0x29d0f8[_0x4f891c(0x7b)]]),'scopes':[_0x29d0f8[_0x4f891c(0x9e)](nestedKeyValue,_0x29930a,[_0x29d0f8[_0x4f891c(0x9c)],_0x29d0f8[_0x4f891c(0x7b)]])||''],'file_name':_0x12bbaf,'location':_0x12bbaf,'vc_filepath':this[_0x4f891c(0xa7)]?path[_0x4f891c(0xee)](this[_0x4f891c(0xa7)],_0x12bbaf):null,'result':_0xcba508,'started_at':_0x1239a3,'framework':_0x29d0f8['MmzRd']};return _0x41adb7;}catch(_0x21cdf1){logger['debug'](_0x4f891c(0xfd)+util[_0x4f891c(0x98)](_0x21cdf1)+'\x20');}}async[a90_0x18c22c(0x77)](_0x4617c2,_0x2f5733,_0x613fa6,_0x32eb40,_0x404734,_0x144517){const _0x28cb9f=a90_0x18c22c,_0x36170f={'CmdgT':function(_0x341b5e,_0x2e2784){return _0x341b5e===_0x2e2784;},'UMdXY':'HookRunStarted','rfUbv':function(_0x421716,_0x303d33,_0x21518b){return _0x421716(_0x303d33,_0x21518b);},'MDOJG':_0x28cb9f(0xcc),'EOYuc':_0x28cb9f(0x76),'mCNYW':_0x28cb9f(0xdf),'JlkSD':function(_0x5a8448,_0x20b1a3){return _0x5a8448===_0x20b1a3;},'YxCEn':_0x28cb9f(0xf8)};try{const _0x411f8b=_0x32eb40[_0x28cb9f(0xbc)](_0x581b84=>_0x581b84['id']===_0x404734);if(!_0x411f8b[_0x28cb9f(0x75)])return;const _0x38e719=this[_0x28cb9f(0xe4)](_0x32eb40,_0x411f8b),_0x5166e5=this[_0x28cb9f(0x91)](_0x4617c2,_0x2f5733,_0x613fa6,_0x411f8b,_0x144517,_0x38e719);if(!_0x5166e5)return;_0x36170f[_0x28cb9f(0x101)](_0x613fa6,_0x36170f['UMdXY'])&&(hooksMap[_0x2f5733]?hooksMap[_0x2f5733][_0x28cb9f(0x97)](_0x5166e5):hooksMap[_0x2f5733]=[_0x5166e5]);const _0x3847f3=_0x4617c2[_0x28cb9f(0x100)][_0x28cb9f(0xbc)](_0x9ef442=>_0x9ef442['id']===_0x411f8b[_0x28cb9f(0x75)]),_0x2f913a=_0x36170f[_0x28cb9f(0x74)](nestedKeyValue,_0x3847f3,[_0x36170f[_0x28cb9f(0xa6)],_0x36170f[_0x28cb9f(0x80)]]);if(!_0x2f913a)return;else{if(_0x2f913a[_0x28cb9f(0xae)](_0x36170f[_0x28cb9f(0x8b)]))return;}if(_0x36170f['JlkSD'](_0x5166e5[_0x28cb9f(0x7e)],_0x36170f[_0x28cb9f(0xa1)]))return;return _0x5166e5;}catch(_0x1ff9c5){logger['debug'](_0x28cb9f(0x7c)+util[_0x28cb9f(0x98)](_0x1ff9c5)+'\x20');}}[a90_0x18c22c(0xdd)](_0x5ceee5,_0x9a0bdd){const _0x415869=a90_0x18c22c,_0x5b8fbd={};_0x5b8fbd[_0x415869(0x8a)]=function(_0x422b01,_0x170eb6){return _0x422b01===_0x170eb6;},_0x5b8fbd[_0x415869(0xa5)]='failed',_0x5b8fbd['vpxkk']=function(_0x28b154,_0xf46c02){return _0x28b154===_0xf46c02;},_0x5b8fbd[_0x415869(0xa9)]=function(_0x57a4db,_0xee47db){return _0x57a4db===_0xee47db;},_0x5b8fbd[_0x415869(0xd1)]=_0x415869(0x85),_0x5b8fbd[_0x415869(0xff)]=_0x415869(0xe5),_0x5b8fbd[_0x415869(0xbe)]=function(_0x477644,_0x450089){return _0x477644||_0x450089;};const _0x165b6a=_0x5b8fbd,_0x4f6db6=_0x5ceee5[_0x415869(0xb1)][_0x9a0bdd][_0x415869(0xf1)];let _0x48639a,_0x3e8fd7;return _0x4f6db6&&_0x165b6a['udXwC'](_0x4f6db6[_0x415869(0xb8)]['toString']()['toLowerCase'](),_0x165b6a[_0x415869(0xa5)])&&(_0x48639a=_0x165b6a[_0x415869(0x84)](_0x4f6db6[_0x415869(0xc7)],undefined)?_0x4f6db6[_0x415869(0xe3)]:_0x4f6db6[_0x415869(0xc7)][_0x415869(0xe3)],_0x3e8fd7=_0x165b6a[_0x415869(0xa9)](_0x4f6db6[_0x415869(0xc7)],undefined)?_0x165b6a['jDYnl']:_0x4f6db6[_0x415869(0xe3)][_0x415869(0xcd)](/Assert/)?_0x165b6a[_0x415869(0xff)]:_0x165b6a[_0x415869(0xd1)]),{'status':_0x4f6db6[_0x415869(0xb8)]['toLowerCase'](),'failureType':_0x165b6a['taUVF'](_0x3e8fd7,null),'failureData':!_0x48639a?null:[_0x48639a]};}[a90_0x18c22c(0xe4)](_0x3996c2,_0x35caeb){const _0x6e3ef8=a90_0x18c22c,_0x2755cd={};_0x2755cd['bNHsK']=function(_0x360445,_0x5ab950){return _0x360445===_0x5ab950;},_0x2755cd[_0x6e3ef8(0xe0)]=_0x6e3ef8(0x9a),_0x2755cd[_0x6e3ef8(0xc2)]=_0x6e3ef8(0x94);const _0x255594=_0x2755cd;let _0x5d6844=![];for(const _0x218614 of _0x3996c2){_0x218614[_0x6e3ef8(0xa4)]&&(_0x5d6844=!![]);if(_0x255594[_0x6e3ef8(0xbb)](_0x35caeb['id'],_0x218614['id']))return _0x5d6844?_0x255594['pcqel']:_0x255594[_0x6e3ef8(0xc2)];}}['getScenarioExamples']=(_0x5b948b,_0x414e83)=>{const _0x2ba883=a90_0x18c22c,_0x794d1={};_0x794d1[_0x2ba883(0xfc)]=function(_0x3723fb,_0x1291ca){return _0x3723fb===_0x1291ca;},_0x794d1[_0x2ba883(0x9f)]=function(_0x1a67af,_0x26fbdf){return _0x1a67af>_0x26fbdf;};const _0x24baec=_0x794d1;if(!(_0x414e83[_0x2ba883(0xb9)]&&_0x24baec[_0x2ba883(0x9f)](_0x414e83[_0x2ba883(0xb9)]['length'],0x1)))return;const _0x42bce5=_0x414e83[_0x2ba883(0xb9)][0x0],_0x116c94=_0x414e83[_0x2ba883(0xb9)][0x1],_0x2de91a=_0x5b948b[_0x2ba883(0xd6)]&&_0x5b948b[_0x2ba883(0xd6)]['children']?_0x5b948b[_0x2ba883(0xd6)]['children']:undefined;let _0x32b534=[];_0x2de91a&&_0x2de91a[_0x2ba883(0xd0)](_0x347267=>{const _0x2a18f4=_0x2ba883,_0x5a7c07={'UQqIk':function(_0x28a9ea,_0x1b49e7){const _0x4f942b=a90_0x72ca;return _0x24baec[_0x4f942b(0xfc)](_0x28a9ea,_0x1b49e7);}};if(_0x347267[_0x2a18f4(0xd2)])_0x347267[_0x2a18f4(0xd2)][_0x2a18f4(0xd5)][_0x2a18f4(0xd0)](_0x1ce73f=>{const _0x43c8b4=_0x2a18f4;if(_0x1ce73f[_0x43c8b4(0xaf)]&&_0x5a7c07[_0x43c8b4(0x79)](_0x1ce73f[_0x43c8b4(0xaf)]['id'],_0x42bce5)&&_0x1ce73f[_0x43c8b4(0xaf)][_0x43c8b4(0xd9)]){const _0x24a314=_0x1ce73f[_0x43c8b4(0xaf)][_0x43c8b4(0xd9)][_0x43c8b4(0xc0)](_0x20a628=>_0x20a628[_0x43c8b4(0xf7)])[_0x43c8b4(0xbc)](_0x1b8248=>_0x1b8248['id']===_0x116c94);let _0x3f023d;_0x24a314&&_0x24a314[_0x43c8b4(0xfb)]?_0x3f023d=_0x24a314[_0x43c8b4(0xfb)][_0x43c8b4(0xc5)](_0x3e7ab3=>_0x3e7ab3['value']):_0x3f023d=[],_0x3f023d&&(_0x32b534=_0x3f023d);}});else{if(_0x347267['scenario']&&_0x24baec['IHqMQ'](_0x347267[_0x2a18f4(0xaf)]['id'],_0x42bce5)&&_0x347267[_0x2a18f4(0xaf)][_0x2a18f4(0xd9)]){const _0xbe88c6=_0x347267['scenario'][_0x2a18f4(0xd9)][_0x2a18f4(0xc0)](_0x4b6ee7=>_0x4b6ee7[_0x2a18f4(0xf7)])[_0x2a18f4(0xbc)](_0x15f1fc=>_0x15f1fc['id']===_0x116c94);let _0x4b4102;_0xbe88c6&&_0xbe88c6['cells']?_0x4b4102=_0xbe88c6['cells']['map'](_0x3c403c=>_0x3c403c[_0x2a18f4(0xb6)]):_0x4b4102=[],_0x4b4102&&(_0x32b534=_0x4b4102);}}});if(_0x32b534['length'])return _0x32b534;return;};async[a90_0x18c22c(0xe1)](){const _0x8f61db=a90_0x18c22c,_0x3c772b={'WBIUw':function(_0x6ff287){return _0x6ff287();}};if(this['_gitConfigured'])return this[_0x8f61db(0xa7)];const _0x15b62b=await _0x3c772b[_0x8f61db(0xd3)](getGitMetaData);_0x15b62b&&(this[_0x8f61db(0xa7)]=_0x15b62b[_0x8f61db(0x9b)]),this[_0x8f61db(0xde)]=!![];}}module['exports']=o11yClassErrorHandler(CucumberUtils,[a90_0x18c22c(0xe1),'getScenarioExamples','getCucumberHookType',a90_0x18c22c(0xdd),a90_0x18c22c(0xef),a90_0x18c22c(0x91),a90_0x18c22c(0x83),a90_0x18c22c(0xa0)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a91_0x4e3cad=a91_0x113d;function a91_0x939b(){const _0x8ba43e=['createIdentifierFromJestTest',',\x20hookUUID:\x20','getTime','stack-trace','MDejB','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','DDZCv','exports','getFileName','fuNKc','1492508ouPgAv','createTestFrameworkData','stack','7390512nWFTqX','uuid','cGRPJ',':jest-','getState','pid','HZtWT','980188iChnTg','24PFyaTQ','../../../helpers/helper.js','fullName','debug','beforeEach','GHnOF','8418400QIUHxN','fpTUK','update','javascript','inspect','LKlLx','TuxOW','uAPLb','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation','testIdentifier','now','hooks','ROOT_DESCRIBE_BLOCK','lXSCz','browserstack-node-agent/src/bin/jest','42TyewIZ','BkBBa','cBneh','LZYry','extractTestFilePath','__workerDetails','TestRunSkipped','NPKUk','NOYnX','AFTER_ALL','createHash','length','qpNNW','name','MznbF','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','__jestCurrentTestIdentifier','XTxso','Gbvzs','format','_gitConfigured','toISOString','BEFORE_EACH','OrqLW','getTestIdentifier','uEArM','[jestUtils]\x20Created\x20identifier:\x20','dXzWQ','toString','ZGvDV','failure_reason_expanded','type','qbtRq','util','displayName','[jestUtils]\x20Error\x20creating\x20identifier:\x20','Unknown\x20Test','hrmBa','failure_reason','testAnalyticsId','parent','title','root','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','createHookData','yTaMk','getHookRunEventData','afterAll','err','isJestInternalHook','failed','relative','errorsDetailed','TestRunFinished','45925xCYvHa','myvqE','file','passed','getHierarchy','Fzuqv','Exception\x20in\x20createTestFrameworkData:\x20','NQMFj','Exception\x20in\x20createHookData:\x20','sRoeE','251237bVUnbA','push','HMaQh','finishedAt','HookRunStarted','hqxIt','RdFGw','md5','XYyTm','started_at','Ymyxy','TVkPg','20072wOZiJV','getRootParentFile','../../../helpers/test-observability/utils',',\x20testRunId:\x20','match','\x20from\x20compositeKey:\x20','jest-circus','testPath','Ofwrx','hook','JVqkP','300GkXIyk','HIvsz','Grnsj','finished_at','QwYYq','parse','failure_type','duration','QKnrE','find','YUgMQ','recreateIdentifierFromTestInfo','apply','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','configureGit','expect','path','createJestTestIdentifier','Exception\x20in\x20getHookRunEventData:\x20','SMtwE','jest','pending','crypto','\x22\x20hook\x20for\x20\x22','toUpperCase','getName','error',',\x20testIdentifier:\x20','result','test','failure','asyncError','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','retryOf','afterEach','oaoOE','xptPn','expanded','AwcKa','failure_backtrace','_gitConfigPath','split','reverse','cndMR','[jestUtils]\x20No\x20test\x20object\x20provided','unknown','jcKlT','6PVwbDD','currentTest','includes','../../../helpers/logger.js','clearHooksMap','digest','12tSxRyp'];a91_0x939b=function(){return _0x8ba43e;};return a91_0x939b();}(function(_0x18067f,_0x29ca0b){const _0x2598c0=a91_0x113d,_0x566019=_0x18067f();while(!![]){try{const _0x344b0b=parseInt(_0x2598c0(0x17a))/0x1*(-parseInt(_0x2598c0(0x1e5))/0x2)+-parseInt(_0x2598c0(0x1b4))/0x3*(-parseInt(_0x2598c0(0x1c5))/0x4)+-parseInt(_0x2598c0(0x21b))/0x5*(-parseInt(_0x2598c0(0x185))/0x6)+parseInt(_0x2598c0(0x16e))/0x7*(-parseInt(_0x2598c0(0x1d0))/0x8)+parseInt(_0x2598c0(0x1c8))/0x9+-parseInt(_0x2598c0(0x1d6))/0xa+parseInt(_0x2598c0(0x1cf))/0xb*(parseInt(_0x2598c0(0x1ba))/0xc);if(_0x344b0b===_0x29ca0b)break;else _0x566019['push'](_0x566019['shift']());}catch(_0x59979e){_0x566019['push'](_0x566019['shift']());}}}(a91_0x939b,0xb5d33));const path=require(a91_0x4e3cad(0x195)),util=require(a91_0x4e3cad(0x206)),crypto=require(a91_0x4e3cad(0x19b)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a91_0x4e3cad(0x1d1)),logger=require(a91_0x4e3cad(0x1b7))['winstonLogger'],{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler.js'),TestInfo=require('../TestInfo.js'),{failureData,getFailureType}=require(a91_0x4e3cad(0x17c)),stackTrace=require(a91_0x4e3cad(0x1be)),a91_0x7beebf={};a91_0x7beebf['beforeAll']='BEFORE_ALL',a91_0x7beebf[a91_0x4e3cad(0x214)]=a91_0x4e3cad(0x1ee),a91_0x7beebf[a91_0x4e3cad(0x1d4)]=a91_0x4e3cad(0x1fb),a91_0x7beebf[a91_0x4e3cad(0x1a7)]='AFTER_EACH';const HOOK_TYPES_MAP=a91_0x7beebf,hooksMap={};class JestUtils{constructor(){const _0x3a56fc=a91_0x4e3cad;this['_gitConfigured']=![],this[_0x3a56fc(0x1ad)]=null;}async[a91_0x4e3cad(0x1c6)](_0x383a45,_0x199083,_0x45a723=a91_0x4e3cad(0x21a),_0x27c591=undefined){const _0x454c7e=a91_0x4e3cad,_0x50899b={'hqxIt':'No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','hrmBa':_0x454c7e(0x180),'TVkPg':function(_0x56d8d3,_0x1092df){return _0x56d8d3||_0x1092df;},'LZYry':'File\x20path\x20could\x20not\x20be\x20found','qpNNW':function(_0x4a3dba,_0x55c13c){return _0x4a3dba!==_0x55c13c;},'BkBBa':_0x454c7e(0x1a2),'Fzuqv':_0x454c7e(0x215),'NOYnX':'pending','cndMR':function(_0x163d08,_0x32657e){return _0x163d08===_0x32657e;},'uAPLb':_0x454c7e(0x1eb),'XYyTm':'skipped','lXSCz':function(_0x11faa2,_0x5aa6eb){return _0x11faa2>_0x5aa6eb;},'jcKlT':_0x454c7e(0x217),'SMtwE':_0x454c7e(0x167),'qbtRq':function(_0xbc430c,_0x1a8857){return _0xbc430c-_0x1a8857;},'xptPn':_0x454c7e(0x1d9),'myvqE':_0x454c7e(0x199),'YUgMQ':function(_0x482490,_0xe5d724){return _0x482490(_0xe5d724);},'sRoeE':_0x454c7e(0x21a)};logger[_0x454c7e(0x1d3)]('Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20'+_0x45a723+_0x454c7e(0x1a0)+_0x199083);try{if(!_0x383a45)return logger['debug'](_0x50899b[_0x454c7e(0x173)]),null;if(_0x383a45['fn']&&_0x383a45['fn'][_0x454c7e(0x201)]()[_0x454c7e(0x17e)](/browserstack internal helper hook/))return null;await this[_0x454c7e(0x193)]();let _0x34e66a;try{_0x34e66a=this['getRootParentFile'](_0x383a45);if(_0x34e66a&&_0x34e66a[_0x454c7e(0x1b6)](_0x50899b[_0x454c7e(0x20a)]))return null;}catch(_0x1ec8a4){logger[_0x454c7e(0x1d3)](_0x454c7e(0x210)+util['format'](_0x1ec8a4)),_0x34e66a=null;}const _0x5a201a=this[_0x454c7e(0x168)](_0x383a45),_0x45b7ea=this[_0x454c7e(0x19e)](_0x383a45),_0x8c0a20=_0x50899b[_0x454c7e(0x179)](_0x34e66a,_0x50899b[_0x454c7e(0x1e8)]);let _0x342d48=[];if(_0x50899b[_0x454c7e(0x1f1)](_0x383a45[_0x454c7e(0x219)],undefined))_0x342d48=[_0x383a45[_0x454c7e(0x219)],_0x50899b[_0x454c7e(0x1e6)]];else _0x50899b[_0x454c7e(0x1f1)](_0x27c591,undefined)&&(_0x342d48=[_0x27c591,_0x50899b[_0x454c7e(0x169)]]);const _0x317e8b=_0x50899b[_0x454c7e(0x1f1)](_0x383a45[_0x454c7e(0x219)],undefined)?util[_0x454c7e(0x1da)](_0x383a45[_0x454c7e(0x219)][0x0]):_0x50899b[_0x454c7e(0x1f1)](_0x27c591,undefined)?_0x27c591[_0x454c7e(0x201)]():undefined;let _0x1f6e81=_0x50899b[_0x454c7e(0x1ed)];if(_0x50899b[_0x454c7e(0x1b0)](_0x45a723,_0x50899b[_0x454c7e(0x1dd)]))_0x1f6e81=_0x50899b[_0x454c7e(0x176)];else _0x383a45[_0x454c7e(0x219)]&&_0x50899b[_0x454c7e(0x1e3)](_0x383a45[_0x454c7e(0x219)][_0x454c7e(0x1f0)],0x0)?_0x1f6e81=_0x50899b[_0x454c7e(0x1b3)]:_0x1f6e81=_0x50899b[_0x454c7e(0x198)];let _0x14b6d8=null;if(_0x50899b[_0x454c7e(0x1f1)](_0x383a45[_0x454c7e(0x18c)],undefined))_0x14b6d8=_0x383a45[_0x454c7e(0x18c)];else(_0x45a723['match'](/Finished/)||_0x45a723[_0x454c7e(0x17e)](/Skipped/))&&(_0x383a45[_0x454c7e(0x177)]&&(_0x14b6d8=_0x50899b[_0x454c7e(0x205)](Date[_0x454c7e(0x1e0)](),new Date(_0x383a45['started_at'])[_0x454c7e(0x1bd)]())));const _0x52ece9=_0x383a45['fn']?_0x383a45['fn'][_0x454c7e(0x201)]():null,_0x815339={'id':_0x199083,'uuid':_0x199083,'startedAt':_0x383a45['started_at']||new Date()[_0x454c7e(0x1fa)](),'finishedAt':_0x45a723[_0x454c7e(0x17e)](/Finished/)||_0x45a723[_0x454c7e(0x17e)](/Skipped/)?new Date()[_0x454c7e(0x1fa)]():null,'type':_0x50899b[_0x454c7e(0x1e6)],'body':{'lang':_0x50899b[_0x454c7e(0x1a9)],'code':_0x52ece9},'name':_0x45b7ea,'scopes':_0x5a201a,'file_name':_0x8c0a20,'location':_0x8c0a20,'vc_filepath':this[_0x454c7e(0x1ad)]&&_0x34e66a?path[_0x454c7e(0x218)](this[_0x454c7e(0x1ad)],_0x34e66a):null,'framework':_0x50899b[_0x454c7e(0x21c)],'result':_0x1f6e81,'failure_reason':_0x317e8b,'duration_in_ms':_0x14b6d8,'failure':failureData['apply'](null,_0x342d48),'failure_type':!_0x317e8b?null:_0x50899b[_0x454c7e(0x18f)](getFailureType,_0x317e8b),'retry_of':_0x383a45[_0x454c7e(0x1a6)]||null,'customRerunParam':{'rerun_name':_0x45b7ea}};_0x50899b['cndMR'](_0x45a723,_0x50899b[_0x454c7e(0x1dd)])&&!_0x815339['startedAt']&&(_0x815339['startedAt']=_0x815339[_0x454c7e(0x171)]);const _0x41899e=_0x815339[_0x454c7e(0x1a3)]&&_0x815339[_0x454c7e(0x1a3)][0x0];return _0x41899e&&(_0x815339[_0x454c7e(0x1ac)]=_0x41899e['backtrace'],_0x815339[_0x454c7e(0x203)]=_0x41899e[_0x454c7e(0x1aa)]),(_0x50899b[_0x454c7e(0x1b0)](_0x45a723,_0x50899b[_0x454c7e(0x16d)])||_0x50899b['cndMR'](_0x45a723,_0x50899b[_0x454c7e(0x1dd)]))&&(_0x383a45[_0x454c7e(0x1e1)]&&(_0x815339[_0x454c7e(0x1e1)]=_0x383a45[_0x454c7e(0x1e1)])),_0x815339;}catch(_0xfacd42){return logger[_0x454c7e(0x1d3)](_0x454c7e(0x16a)+util[_0x454c7e(0x1f8)](_0xfacd42)),null;}}async[a91_0x4e3cad(0x211)](_0x313abf,_0x4b766e,_0x28410b,_0x128406){const _0x3c6a0a=a91_0x4e3cad,_0x3a94bd={'NQMFj':_0x3c6a0a(0x1a5),'yTaMk':_0x3c6a0a(0x180),'sZGmM':_0x3c6a0a(0x1e4),'zjFZK':_0x3c6a0a(0x1b2),'cBneh':_0x3c6a0a(0x19a),'MznbF':function(_0x5cc572,_0x545d75){return _0x5cc572===_0x545d75;},'cGRPJ':'HookRunFinished','JVqkP':function(_0x2ea070,_0x218f34){return _0x2ea070>_0x218f34;},'TuxOW':_0x3c6a0a(0x217),'fuNKc':function(_0x475b20,_0x49004e){return _0x475b20(_0x49004e);},'jmTPZ':_0x3c6a0a(0x1a2),'XTxso':_0x3c6a0a(0x167),'Ofwrx':_0x3c6a0a(0x183),'uEArM':_0x3c6a0a(0x1d9),'Grnsj':'jest','eIYGV':_0x3c6a0a(0x172)};logger[_0x3c6a0a(0x1d3)]('Creating\x20hook\x20data\x20for\x20eventType:\x20'+_0x28410b+_0x3c6a0a(0x1bc)+_0x4b766e+_0x3c6a0a(0x17d)+_0x128406);try{if(!_0x313abf)return logger[_0x3c6a0a(0x1d3)](_0x3a94bd[_0x3c6a0a(0x16b)]),null;if(this[_0x3c6a0a(0x216)](_0x313abf))return null;await this[_0x3c6a0a(0x193)]();let _0x417a9b=null;try{_0x417a9b=this[_0x3c6a0a(0x17b)](_0x313abf);if(_0x417a9b&&_0x417a9b[_0x3c6a0a(0x1b6)](_0x3a94bd[_0x3c6a0a(0x212)]))return null;if(_0x417a9b&&_0x417a9b[_0x3c6a0a(0x1b6)](_0x3a94bd['sZGmM']))return null;}catch(_0x852280){logger[_0x3c6a0a(0x1d3)](_0x3c6a0a(0x1f4)+util[_0x3c6a0a(0x1f8)](_0x852280));}const _0x241451=this[_0x3c6a0a(0x19e)](_0x313abf),_0x22fac8=_0x313abf[_0x3c6a0a(0x204)]||_0x3a94bd['zjFZK'],_0x17b9ab=HOOK_TYPES_MAP[_0x22fac8]||_0x22fac8[_0x3c6a0a(0x19d)](),_0x2837bb=_0x313abf['parent']&&_0x313abf[_0x3c6a0a(0x20d)][_0x3c6a0a(0x1f2)]?_0x313abf[_0x3c6a0a(0x20d)][_0x3c6a0a(0x1f2)]:'';let _0x1b6298=_0x3a94bd[_0x3c6a0a(0x1e7)],_0x495480=null,_0x373a6d=null,_0x38b3f8=null,_0x42e015=null;_0x3a94bd[_0x3c6a0a(0x1f3)](_0x28410b,_0x3a94bd[_0x3c6a0a(0x1ca)])&&(_0x42e015=new Date()['toISOString'](),_0x313abf[_0x3c6a0a(0x219)]&&_0x3a94bd[_0x3c6a0a(0x184)](_0x313abf['errorsDetailed'][_0x3c6a0a(0x1f0)],0x0)?(_0x1b6298=_0x3a94bd[_0x3c6a0a(0x1dc)],_0x373a6d=util['inspect'](_0x313abf[_0x3c6a0a(0x219)][0x0]),_0x495480=_0x3a94bd[_0x3c6a0a(0x1c4)](getFailureType,_0x373a6d),_0x38b3f8=failureData[_0x3c6a0a(0x191)](null,[_0x313abf[_0x3c6a0a(0x219)],_0x3a94bd['jmTPZ']])):_0x1b6298=_0x3a94bd[_0x3c6a0a(0x1f6)]);const _0x4cf037={'uuid':_0x4b766e,'type':_0x3a94bd[_0x3c6a0a(0x182)],'hook_type':_0x17b9ab,'name':_0x241451,'body':{'lang':_0x3a94bd[_0x3c6a0a(0x1fe)],'code':_0x313abf['fn']?_0x313abf['fn'][_0x3c6a0a(0x201)]():null},'tags':[],'test_run_id':_0x128406,'scope':_0x2837bb,'scopes':[_0x2837bb],'file_name':_0x417a9b,'location':_0x417a9b,'vc_filepath':this[_0x3c6a0a(0x1ad)]&&_0x417a9b?path[_0x3c6a0a(0x218)](this[_0x3c6a0a(0x1ad)],_0x417a9b):null,'result':_0x1b6298,'started_at':_0x313abf['started_at']||new Date()[_0x3c6a0a(0x1fa)](),'finished_at':_0x42e015,'failure_type':_0x495480,'failure_reason':_0x373a6d,'failure_data':_0x38b3f8,'framework':_0x3a94bd[_0x3c6a0a(0x187)]};return _0x3a94bd['MznbF'](_0x28410b,_0x3a94bd['eIYGV'])&&(hooksMap[_0x128406]?hooksMap[_0x128406][_0x3c6a0a(0x16f)](_0x4cf037):hooksMap[_0x128406]=[_0x4cf037]),_0x4cf037;}catch(_0x5bb12e){return logger[_0x3c6a0a(0x1d3)](_0x3c6a0a(0x16c)+util[_0x3c6a0a(0x1f8)](_0x5bb12e)),null;}}[a91_0x4e3cad(0x213)](_0x373cd1,_0x3a8e63,_0xbba752){const _0x239ddb=a91_0x4e3cad,_0x298752={'QwYYq':function(_0x5a293c,_0x14f059){return _0x5a293c>_0x14f059;},'FCRxc':_0x239ddb(0x217),'rQVhv':function(_0x2fcffd,_0x455549){return _0x2fcffd(_0x455549);},'oaoOE':'test','NPKUk':_0x239ddb(0x167)};try{const _0x298a5f=hooksMap[_0x373cd1];if(!_0x298a5f)return null;const _0x379d07=_0x298a5f[_0x239ddb(0x18e)](_0xbb1415=>_0xbb1415[_0x239ddb(0x1c9)]===_0x3a8e63);if(!_0x379d07)return null;return _0x379d07[_0x239ddb(0x188)]=new Date()[_0x239ddb(0x1fa)](),_0xbba752[_0x239ddb(0x219)]&&_0x298752[_0x239ddb(0x189)](_0xbba752['errorsDetailed'][_0x239ddb(0x1f0)],0x0)?(_0x379d07[_0x239ddb(0x1a1)]=_0x298752['FCRxc'],_0x379d07['failure_reason']=util['inspect'](_0xbba752['errorsDetailed'][0x0]),_0x379d07[_0x239ddb(0x18b)]=_0x298752['rQVhv'](getFailureType,_0x379d07[_0x239ddb(0x20b)]),_0x379d07['failure_data']=failureData[_0x239ddb(0x191)](null,[_0xbba752[_0x239ddb(0x219)],_0x298752[_0x239ddb(0x1a8)]])):_0x379d07[_0x239ddb(0x1a1)]=_0x298752[_0x239ddb(0x1ec)],_0x379d07;}catch(_0x22f28e){return logger['debug'](_0x239ddb(0x197)+util[_0x239ddb(0x1f8)](_0x22f28e)),null;}}[a91_0x4e3cad(0x19e)](_0xcf0408){const _0x1dc76d=a91_0x4e3cad,_0x4cf7fa={};_0x4cf7fa[_0x1dc76d(0x1d7)]=function(_0x46afaf,_0x4bd80e){return _0x46afaf!==_0x4bd80e;},_0x4cf7fa['GyNUv']='test',_0x4cf7fa[_0x1dc76d(0x178)]=_0x1dc76d(0x209);const _0x408fab=_0x4cf7fa;if(_0x408fab[_0x1dc76d(0x1d7)](_0xcf0408['type'],_0x408fab['GyNUv']))return'\x22'+_0xcf0408[_0x1dc76d(0x204)]+_0x1dc76d(0x19c)+(_0xcf0408['parent']&&_0xcf0408[_0x1dc76d(0x20d)][_0x1dc76d(0x1f2)])+'\x22';return _0xcf0408[_0x1dc76d(0x1f2)]||_0x408fab[_0x1dc76d(0x178)];}['getHierarchy'](_0x565866){const _0x3287a5=a91_0x4e3cad,_0x5b8b48={};_0x5b8b48['HIvsz']=function(_0x3eac5f,_0x5df6a9){return _0x3eac5f!==_0x5df6a9;},_0x5b8b48[_0x3287a5(0x170)]=function(_0x3861ad,_0x9ffa21){return _0x3861ad!==_0x9ffa21;},_0x5b8b48[_0x3287a5(0x1d5)]=_0x3287a5(0x1e2);const _0xc319de=_0x5b8b48,_0x3b83c9=[];if(_0x565866&&_0x565866[_0x3287a5(0x20d)]){let _0x53436c=_0x565866[_0x3287a5(0x20d)];while(_0x53436c&&_0x53436c['name']&&_0xc319de[_0x3287a5(0x186)](_0x53436c['name'],'')&&_0xc319de[_0x3287a5(0x170)](_0x53436c[_0x3287a5(0x1f2)],_0xc319de[_0x3287a5(0x1d5)])){_0x3b83c9['push'](_0x53436c[_0x3287a5(0x1f2)]),_0x53436c=_0x53436c[_0x3287a5(0x20d)];}}return _0x3b83c9[_0x3287a5(0x1af)](),_0x3b83c9;}[a91_0x4e3cad(0x17b)](_0x291af8){const _0x3de7aa=a91_0x4e3cad;if(_0x291af8[_0x3de7aa(0x1a4)])try{const _0x59e0be=stackTrace[_0x3de7aa(0x18a)]['call'](stackTrace,_0x291af8[_0x3de7aa(0x1a4)]);if(_0x59e0be[0x0]&&_0x59e0be[0x0][_0x3de7aa(0x1c3)])return _0x59e0be[0x0][_0x3de7aa(0x1c3)]();}catch(_0x5e1806){logger['debug']('Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util[_0x3de7aa(0x1f8)](_0x5e1806));}if(_0x291af8[_0x3de7aa(0x166)])return _0x291af8[_0x3de7aa(0x166)];return null;}[a91_0x4e3cad(0x216)](_0x37dd62){const _0x444fd5=a91_0x4e3cad,_0x15b409={};_0x15b409[_0x444fd5(0x1db)]=_0x444fd5(0x180);const _0x5636ab=_0x15b409;try{const _0x4fb051=this[_0x444fd5(0x17b)](_0x37dd62);if(_0x4fb051&&_0x4fb051[_0x444fd5(0x1b6)](_0x5636ab[_0x444fd5(0x1db)]))return!![];}catch(_0x4bdd2f){logger[_0x444fd5(0x1d3)]('Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20'+util[_0x444fd5(0x1f8)](_0x4bdd2f));}return![];}[a91_0x4e3cad(0x1fd)](_0x2de2dc=null){const _0x561951=a91_0x4e3cad;try{const _0x3a2a16=_0x2de2dc||global[_0x561951(0x1ea)]||{};if(global[_0x561951(0x1f5)])return global[_0x561951(0x1f5)];if(_0x3a2a16?.['currentTest']?.['testAnalyticsId'])return _0x3a2a16['currentTest'][_0x561951(0x20c)];if(_0x3a2a16?.['currentTest']?.['id'])return _0x3a2a16[_0x561951(0x1b5)]['id'];return null;}catch(_0x48245e){return logger[_0x561951(0x1d3)]('[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20'+util['format'](_0x48245e)),null;}}async[a91_0x4e3cad(0x193)](){const _0x4d590c=a91_0x4e3cad,_0x1d3101={'zxZPg':function(_0x3834cb){return _0x3834cb();}};if(this[_0x4d590c(0x1f9)])return this[_0x4d590c(0x1ad)];const _0x47863f=await _0x1d3101['zxZPg'](getGitMetaData);_0x47863f&&(this[_0x4d590c(0x1ad)]=_0x47863f[_0x4d590c(0x20f)]),this[_0x4d590c(0x1f9)]=!![];}[a91_0x4e3cad(0x1b8)](_0x34fabe){hooksMap[_0x34fabe]&&delete hooksMap[_0x34fabe];}['extractTestFilePath'](_0x4a6c7b){const _0x1ad479=a91_0x4e3cad,_0x37e070={'DDZCv':_0x1ad479(0x180),'XyrBb':function(_0x19a02e,_0x561817){return _0x19a02e(_0x561817);},'OrqLW':_0x1ad479(0x194)};if(_0x4a6c7b[_0x1ad479(0x166)])return _0x4a6c7b[_0x1ad479(0x166)];if(_0x4a6c7b[_0x1ad479(0x1a4)]){try{const _0x554d93=stackTrace[_0x1ad479(0x18a)](_0x4a6c7b['asyncError']);if(_0x554d93[0x0]&&_0x554d93[0x0][_0x1ad479(0x1c3)]){const _0x3ffae7=_0x554d93[0x0][_0x1ad479(0x1c3)]();if(_0x3ffae7&&!_0x3ffae7['includes'](_0x37e070[_0x1ad479(0x1c1)]))return _0x3ffae7;}}catch(_0x19cd03){logger['debug'](_0x1ad479(0x192)+util[_0x1ad479(0x1f8)](_0x19cd03));}if(_0x4a6c7b[_0x1ad479(0x1a4)][_0x1ad479(0x1c7)]){const _0x30fc3b=_0x4a6c7b['asyncError'][_0x1ad479(0x1c7)][_0x1ad479(0x1ae)]('\x0a');for(const _0x3c912d of _0x30fc3b){const _0x4b4f8d=_0x3c912d['match'](/at (.+?):\d+:\d+/);if(_0x4b4f8d&&_0x4b4f8d[0x1]&&!_0x4b4f8d[0x1]['includes'](_0x37e070['DDZCv']))return _0x4b4f8d[0x1];}}}let _0x4fb38d=_0x4a6c7b[_0x1ad479(0x20d)];while(_0x4fb38d){if(_0x4fb38d['file'])return _0x4fb38d[_0x1ad479(0x166)];if(_0x4fb38d[_0x1ad479(0x1a4)])try{const _0x154102=stackTrace[_0x1ad479(0x18a)](_0x4fb38d[_0x1ad479(0x1a4)]);if(_0x154102[0x0]&&_0x154102[0x0]['getFileName']){const _0x3532ab=_0x154102[0x0][_0x1ad479(0x1c3)]();if(_0x3532ab&&!_0x3532ab[_0x1ad479(0x1b6)](_0x37e070[_0x1ad479(0x1c1)]))return _0x3532ab;}}catch(_0x581848){}_0x4fb38d=_0x4fb38d[_0x1ad479(0x20d)];}try{const _0x4af769=_0x37e070['XyrBb'](require,_0x37e070[_0x1ad479(0x1fc)]);if(_0x4af769&&_0x4af769[_0x1ad479(0x1cc)]){const _0x2a8cc0=_0x4af769[_0x1ad479(0x1cc)]();if(_0x2a8cc0&&_0x2a8cc0[_0x1ad479(0x181)])return _0x2a8cc0[_0x1ad479(0x181)];}}catch(_0x29a737){logger[_0x1ad479(0x1d3)](_0x1ad479(0x1c0)+util[_0x1ad479(0x1f8)](_0x29a737));}return null;}[a91_0x4e3cad(0x196)](_0x453bec){const _0x16ef7b=a91_0x4e3cad,_0x20f219={};_0x20f219[_0x16ef7b(0x1ce)]='[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier',_0x20f219['dXzWQ']=function(_0x24ae72,_0x1a5a8a){return _0x24ae72!==_0x1a5a8a;},_0x20f219[_0x16ef7b(0x202)]='ROOT_DESCRIBE_BLOCK',_0x20f219[_0x16ef7b(0x18d)]=_0x16ef7b(0x180),_0x20f219['Gbvzs']=_0x16ef7b(0x175),_0x20f219[_0x16ef7b(0x174)]='hex';const _0x6ef9bb=_0x20f219;try{if(!_0x453bec)return logger[_0x16ef7b(0x19f)](_0x6ef9bb['HZtWT']),null;const _0x14c5b0=_0x453bec[_0x16ef7b(0x1d2)]||_0x453bec['name']||_0x453bec[_0x16ef7b(0x20e)]||_0x453bec[_0x16ef7b(0x207)];let _0xe86d63=_0x14c5b0;if(_0x453bec[_0x16ef7b(0x20d)]&&_0x453bec[_0x16ef7b(0x20d)][_0x16ef7b(0x1f2)]&&_0x6ef9bb[_0x16ef7b(0x200)](_0x453bec[_0x16ef7b(0x20d)]['name'],_0x6ef9bb['ZGvDV'])){const _0x384f5c=_0x453bec[_0x16ef7b(0x1f2)]||_0x453bec[_0x16ef7b(0x20e)];_0x384f5c&&(_0xe86d63=_0x453bec[_0x16ef7b(0x20d)][_0x16ef7b(0x1f2)]+'\x20'+_0x384f5c);}let _0x3ff54d=_0x453bec[_0x16ef7b(0x181)];if(!_0x3ff54d&&_0x453bec[_0x16ef7b(0x1a4)]){try{const _0x25291b=stackTrace[_0x16ef7b(0x18a)](_0x453bec[_0x16ef7b(0x1a4)]);if(_0x25291b[0x0]&&_0x25291b[0x0][_0x16ef7b(0x1c3)]){const _0x13fcbf=_0x25291b[0x0][_0x16ef7b(0x1c3)]();_0x13fcbf&&!_0x13fcbf[_0x16ef7b(0x1b6)](_0x6ef9bb[_0x16ef7b(0x18d)])&&(_0x3ff54d=_0x13fcbf);}}catch(_0xa3496e){logger[_0x16ef7b(0x1d3)]('[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util[_0x16ef7b(0x1f8)](_0xa3496e));}if(!_0x3ff54d&&_0x453bec[_0x16ef7b(0x1a4)][_0x16ef7b(0x1c7)]){const _0x506923=_0x453bec['asyncError'][_0x16ef7b(0x1c7)][_0x16ef7b(0x1ae)]('\x0a');for(const _0x192e1d of _0x506923){const _0x40cbda=_0x192e1d[_0x16ef7b(0x17e)](/at (.+?):\d+:\d+/);if(_0x40cbda&&_0x40cbda[0x1]&&!_0x40cbda[0x1][_0x16ef7b(0x1b6)](_0x6ef9bb['QKnrE'])){_0x3ff54d=_0x40cbda[0x1];break;}}}}const _0x1cb1e8=_0x3ff54d+'::'+_0xe86d63,_0x1df3e4=crypto[_0x16ef7b(0x1ef)](_0x6ef9bb[_0x16ef7b(0x1f7)])[_0x16ef7b(0x1d8)](_0x1cb1e8)[_0x16ef7b(0x1b9)](_0x6ef9bb[_0x16ef7b(0x174)])['substring'](0x0,0x8),_0x4c4b19=process[_0x16ef7b(0x1cd)]+_0x16ef7b(0x1cb)+_0x1df3e4;return logger[_0x16ef7b(0x1d3)](_0x16ef7b(0x1ff)+_0x4c4b19+_0x16ef7b(0x17f)+_0x1cb1e8),_0x4c4b19;}catch(_0x350eef){return logger['error'](_0x16ef7b(0x208)+util[_0x16ef7b(0x1f8)](_0x350eef)),null;}}[a91_0x4e3cad(0x1bb)](_0x3e77ac){const _0x30e878=a91_0x4e3cad,_0x4ae785={};_0x4ae785[_0x30e878(0x1ab)]=_0x30e878(0x1b1);const _0x5b8751=_0x4ae785;if(!_0x3e77ac)return logger['debug'](_0x5b8751[_0x30e878(0x1ab)]),null;const _0x512679=this[_0x30e878(0x1e9)](_0x3e77ac),_0x25fdb1={};_0x25fdb1[_0x30e878(0x1f2)]=_0x3e77ac[_0x30e878(0x1f2)]||_0x3e77ac[_0x30e878(0x20e)],_0x25fdb1['parent']=_0x3e77ac[_0x30e878(0x20d)],_0x25fdb1[_0x30e878(0x181)]=_0x512679,_0x25fdb1[_0x30e878(0x1a4)]=_0x3e77ac[_0x30e878(0x1a4)];const _0x52a836=_0x25fdb1;return this[_0x30e878(0x196)](_0x52a836);}[a91_0x4e3cad(0x190)](_0x131695){const _0x1da8c0=a91_0x4e3cad,_0x29348e={};_0x29348e[_0x1da8c0(0x1bf)]=_0x1da8c0(0x1de);const _0x4a37e3=_0x29348e;if(!_0x131695)return logger[_0x1da8c0(0x1d3)](_0x4a37e3[_0x1da8c0(0x1bf)]),null;if(_0x131695[_0x1da8c0(0x1df)])return logger[_0x1da8c0(0x1d3)]('[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20'+_0x131695[_0x1da8c0(0x1df)]),_0x131695['testIdentifier'];return this[_0x1da8c0(0x196)](_0x131695);}}function a91_0x113d(_0x43cf46,_0xbfd14){const _0x939b8=a91_0x939b();return a91_0x113d=function(_0x113d25,_0x6278f9){_0x113d25=_0x113d25-0x166;let _0x53621f=_0x939b8[_0x113d25];return _0x53621f;},a91_0x113d(_0x43cf46,_0xbfd14);}module[a91_0x4e3cad(0x1c2)]=o11yClassErrorHandler(JestUtils,[a91_0x4e3cad(0x193),a91_0x4e3cad(0x168),a91_0x4e3cad(0x17b),a91_0x4e3cad(0x19e),a91_0x4e3cad(0x216),a91_0x4e3cad(0x1fd),a91_0x4e3cad(0x1c6),a91_0x4e3cad(0x211),a91_0x4e3cad(0x213),a91_0x4e3cad(0x1b8),a91_0x4e3cad(0x1e9),'createJestTestIdentifier',a91_0x4e3cad(0x1bb),a91_0x4e3cad(0x190)]);
|
|
1
|
+
function a91_0x241b(){const _0x24a29c=['ZuxKk','started_at','../../../helpers/helper.js','pkRYC','finished_at','pid','1289736jQeRlY',',\x20testIdentifier:\x20','split','debug','DZeSi','match','clearHooksMap','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','parse','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','susIO','1963095vxpXQQ','hlMWV','9489571LRpVdu','expect','uuid','JhYeh','toString','length','3840309homTkF','228644SUGDee','getHookRunEventData','failed','push','plDkn','HookRunStarted','GTCdD','Rgpyi','vNFYo','failure_backtrace','Cxbkd','title',',\x20testRunId:\x20','result','__jestCurrentTestIdentifier','relative',',\x20hookUUID:\x20','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','GXQVw','2TYGwTQ','testIdentifier','testPath','crypto','RlJcI','sjoKs','ZmClp','toISOString','asyncError','failure','ifQiw','12fwhxSh','apply','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','AFTER_ALL','5236130ZfJQdQ','BtcIf','Exception\x20in\x20createTestFrameworkData:\x20','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','PvnJg','parent','type','afterAll','FnlTg','currentTest','afterEach','getTime','AHOis','hook','testAnalyticsId','SvQon','uFUCM','errorsDetailed','createHookData','format','zExcQ','pGUgd','klzlX','Nfprw','kVLWt','configureGit','exports','../TestInfo.js','../../../helpers/test-observability/error-handler.js','getState','8vawWvD','QHWPD','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation','OnjZG','OIGaX','_gitConfigPath','NwRlQ','browserstack-node-agent/src/bin/jest','[jestUtils]\x20No\x20test\x20object\x20provided','NHoYb','../../../helpers/test-observability/utils','EAeXJ','ibKAV','JFhjA','find','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','inspect','kNBrv','ReUhJ','backtrace','_gitConfigured','getFileName','yXAGv','stack','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier','failure_reason_expanded','Creating\x20hook\x20data\x20for\x20eventType:\x20','extractTestFilePath','javascript','300174fUnCTa','rjODU','substring','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','yQGau','UfOcm','skipped','Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20','\x20from\x20compositeKey:\x20','ljccz','ymJEo','error','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','path','passed','kvykd','fullName','createTestFrameworkData','name','JZcnZ','failure_reason','duration','now','xNYjh','TestRunFinished','TJDhA','../../../helpers/logger.js','jbvTW','hex','BEFORE_ALL','includes','getRootParentFile','HookRunFinished','vZQKC','jiJYb','30QDaLez','call',':jest-','displayName','reverse','Gfler','getName','recreateIdentifierFromTestInfo','Exception\x20in\x20createHookData:\x20','jest-circus','createIdentifierFromJestTest','CBpWN','boVRs','failure_data','file','8wGObzO','JiIdF','beforeAll','ROOT_DESCRIBE_BLOCK','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','unknown','createJestTestIdentifier','Unknown\x20Test','kOnxU','jest','TestRunSkipped','\x22\x20hook\x20for\x20\x22','isJestInternalHook','toUpperCase','stack-trace','test','getHierarchy','SjWhj','startedAt','hFcdv','hooks'];a91_0x241b=function(){return _0x24a29c;};return a91_0x241b();}const a91_0x2c7416=a91_0x2e66;function a91_0x2e66(_0x325994,_0x4620ed){const _0x241b45=a91_0x241b();return a91_0x2e66=function(_0x2e6689,_0xf602d2){_0x2e6689=_0x2e6689-0x121;let _0x575eb9=_0x241b45[_0x2e6689];return _0x575eb9;},a91_0x2e66(_0x325994,_0x4620ed);}(function(_0x14dfce,_0x53382e){const _0x581975=a91_0x2e66,_0x41d9fd=_0x14dfce();while(!![]){try{const _0xeb6425=-parseInt(_0x581975(0x1db))/0x1*(parseInt(_0x581975(0x130))/0x2)+-parseInt(_0x581975(0x1d2))/0x3*(parseInt(_0x581975(0x15d))/0x4)+parseInt(_0x581975(0x13f))/0x5+-parseInt(_0x581975(0x17a))/0x6+-parseInt(_0x581975(0x1d4))/0x7*(-parseInt(_0x581975(0x1ac))/0x8)+-parseInt(_0x581975(0x1c7))/0x9*(-parseInt(_0x581975(0x19d))/0xa)+-parseInt(_0x581975(0x1da))/0xb*(parseInt(_0x581975(0x13b))/0xc);if(_0xeb6425===_0x53382e)break;else _0x41d9fd['push'](_0x41d9fd['shift']());}catch(_0xe92e7){_0x41d9fd['push'](_0x41d9fd['shift']());}}}(a91_0x241b,0xdad0d));const path=require(a91_0x2c7416(0x187)),util=require('util'),crypto=require(a91_0x2c7416(0x133)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a91_0x2c7416(0x1c3)),logger=require(a91_0x2c7416(0x194))['winstonLogger'],{o11yClassErrorHandler}=require(a91_0x2c7416(0x15b)),TestInfo=require(a91_0x2c7416(0x15a)),{failureData,getFailureType}=require(a91_0x2c7416(0x167)),stackTrace=require(a91_0x2c7416(0x1ba)),a91_0x116e0a={};a91_0x116e0a[a91_0x2c7416(0x1ae)]=a91_0x2c7416(0x197),a91_0x116e0a[a91_0x2c7416(0x146)]=a91_0x2c7416(0x13e),a91_0x116e0a['beforeEach']='BEFORE_EACH',a91_0x116e0a[a91_0x2c7416(0x149)]='AFTER_EACH';const HOOK_TYPES_MAP=a91_0x116e0a,hooksMap={};class JestUtils{constructor(){const _0x244f84=a91_0x2c7416;this[_0x244f84(0x171)]=![],this[_0x244f84(0x162)]=null;}async[a91_0x2c7416(0x18b)](_0x204b96,_0x41dfcd,_0x4f775a='TestRunFinished',_0x44c609=undefined){const _0x3011ae=a91_0x2c7416,_0x1abf3c={'IGojy':_0x3011ae(0x16c),'DZeSi':_0x3011ae(0x1a6),'kvykd':function(_0x235961,_0x5d09a3){return _0x235961||_0x5d09a3;},'Nfprw':'File\x20path\x20could\x20not\x20be\x20found','kOnxU':function(_0x33fc74,_0x3e7c3d){return _0x33fc74!==_0x3e7c3d;},'BtcIf':_0x3011ae(0x1bb),'ifQiw':function(_0x41eda6,_0x56c0b4){return _0x41eda6!==_0x56c0b4;},'pGUgd':'err','kNBrv':function(_0x5d336b,_0x5e23eb){return _0x5d336b!==_0x5e23eb;},'vNFYo':function(_0x12286e,_0x510fa4){return _0x12286e!==_0x510fa4;},'GTCdD':'pending','NHoYb':function(_0x2369d1,_0x211aab){return _0x2369d1===_0x211aab;},'Gfler':_0x3011ae(0x1b6),'QHWPD':_0x3011ae(0x180),'jiJYb':function(_0x131a17,_0x2c3bc2){return _0x131a17>_0x2c3bc2;},'JZcnZ':_0x3011ae(0x1dd),'PvnJg':_0x3011ae(0x188),'UfOcm':function(_0xd0ab0a,_0x5e469b){return _0xd0ab0a-_0x5e469b;},'MOnZx':_0x3011ae(0x179),'taCrK':_0x3011ae(0x1b5),'ymJEo':function(_0x1270c5,_0x273080){return _0x1270c5(_0x273080);},'TJDhA':function(_0x171d72,_0x4ce1b7){return _0x171d72===_0x4ce1b7;},'RlJcI':_0x3011ae(0x192)};logger[_0x3011ae(0x1ca)](_0x3011ae(0x181)+_0x4f775a+_0x3011ae(0x1c8)+_0x41dfcd);try{if(!_0x204b96)return logger[_0x3011ae(0x1ca)](_0x1abf3c['IGojy']),null;if(_0x204b96['fn']&&_0x204b96['fn']['toString']()[_0x3011ae(0x1cc)](/browserstack internal helper hook/))return null;await this['configureGit']();let _0x3b1df4;try{_0x3b1df4=this[_0x3011ae(0x199)](_0x204b96);if(_0x3b1df4&&_0x3b1df4[_0x3011ae(0x198)](_0x1abf3c[_0x3011ae(0x1cb)]))return null;}catch(_0x572125){logger[_0x3011ae(0x1ca)](_0x3011ae(0x12e)+util[_0x3011ae(0x152)](_0x572125)),_0x3b1df4=null;}const _0x42c890=this[_0x3011ae(0x1bc)](_0x204b96),_0x823f02=this[_0x3011ae(0x1a3)](_0x204b96),_0x496713=_0x1abf3c[_0x3011ae(0x189)](_0x3b1df4,_0x1abf3c[_0x3011ae(0x156)]);let _0x422475=[];if(_0x1abf3c[_0x3011ae(0x1b4)](_0x204b96[_0x3011ae(0x150)],undefined))_0x422475=[_0x204b96[_0x3011ae(0x150)],_0x1abf3c['BtcIf']];else _0x1abf3c[_0x3011ae(0x13a)](_0x44c609,undefined)&&(_0x422475=[_0x44c609,_0x1abf3c[_0x3011ae(0x154)]]);const _0x5ae2b0=_0x1abf3c[_0x3011ae(0x16e)](_0x204b96['errorsDetailed'],undefined)?util['inspect'](_0x204b96[_0x3011ae(0x150)][0x0]):_0x1abf3c[_0x3011ae(0x125)](_0x44c609,undefined)?_0x44c609[_0x3011ae(0x1d8)]():undefined;let _0x30559b=_0x1abf3c[_0x3011ae(0x123)];if(_0x1abf3c[_0x3011ae(0x166)](_0x4f775a,_0x1abf3c[_0x3011ae(0x1a2)]))_0x30559b=_0x1abf3c[_0x3011ae(0x15e)];else _0x204b96[_0x3011ae(0x150)]&&_0x1abf3c[_0x3011ae(0x19c)](_0x204b96[_0x3011ae(0x150)][_0x3011ae(0x1d9)],0x0)?_0x30559b=_0x1abf3c[_0x3011ae(0x18d)]:_0x30559b=_0x1abf3c[_0x3011ae(0x143)];let _0x3591d7=null;if(_0x1abf3c['kNBrv'](_0x204b96[_0x3011ae(0x18f)],undefined))_0x3591d7=_0x204b96['duration'];else(_0x4f775a['match'](/Finished/)||_0x4f775a[_0x3011ae(0x1cc)](/Skipped/))&&(_0x204b96[_0x3011ae(0x1c2)]&&(_0x3591d7=_0x1abf3c[_0x3011ae(0x17f)](Date[_0x3011ae(0x190)](),new Date(_0x204b96[_0x3011ae(0x1c2)])[_0x3011ae(0x14a)]())));const _0x52409b=_0x204b96['fn']?_0x204b96['fn']['toString']():null,_0x2a8a84={'id':_0x41dfcd,'uuid':_0x41dfcd,'startedAt':_0x204b96[_0x3011ae(0x1c2)]||new Date()['toISOString'](),'finishedAt':_0x4f775a['match'](/Finished/)||_0x4f775a[_0x3011ae(0x1cc)](/Skipped/)?new Date()[_0x3011ae(0x137)]():null,'type':_0x1abf3c[_0x3011ae(0x140)],'body':{'lang':_0x1abf3c['MOnZx'],'code':_0x52409b},'name':_0x823f02,'scopes':_0x42c890,'file_name':_0x496713,'location':_0x496713,'vc_filepath':this[_0x3011ae(0x162)]&&_0x3b1df4?path[_0x3011ae(0x12c)](this['_gitConfigPath'],_0x3b1df4):null,'framework':_0x1abf3c['taCrK'],'result':_0x30559b,'failure_reason':_0x5ae2b0,'duration_in_ms':_0x3591d7,'failure':failureData['apply'](null,_0x422475),'failure_type':!_0x5ae2b0?null:_0x1abf3c[_0x3011ae(0x184)](getFailureType,_0x5ae2b0),'retry_of':_0x204b96['retryOf']||null,'customRerunParam':{'rerun_name':_0x823f02}};_0x1abf3c[_0x3011ae(0x193)](_0x4f775a,_0x1abf3c[_0x3011ae(0x1a2)])&&!_0x2a8a84[_0x3011ae(0x1be)]&&(_0x2a8a84[_0x3011ae(0x1be)]=_0x2a8a84['finishedAt']);const _0x400792=_0x2a8a84[_0x3011ae(0x139)]&&_0x2a8a84[_0x3011ae(0x139)][0x0];return _0x400792&&(_0x2a8a84[_0x3011ae(0x126)]=_0x400792[_0x3011ae(0x170)],_0x2a8a84[_0x3011ae(0x176)]=_0x400792['expanded']),(_0x1abf3c[_0x3011ae(0x193)](_0x4f775a,_0x1abf3c[_0x3011ae(0x134)])||_0x1abf3c[_0x3011ae(0x166)](_0x4f775a,_0x1abf3c[_0x3011ae(0x1a2)]))&&(_0x204b96[_0x3011ae(0x1c0)]&&(_0x2a8a84[_0x3011ae(0x1c0)]=_0x204b96[_0x3011ae(0x1c0)])),_0x2a8a84;}catch(_0x2dde0f){return logger[_0x3011ae(0x1ca)](_0x3011ae(0x141)+util['format'](_0x2dde0f)),null;}}async[a91_0x2c7416(0x151)](_0xe40a77,_0x59b04a,_0x4f8f22,_0x2b35dc){const _0x2dbddb=a91_0x2c7416,_0x160d95={'OUHSG':_0x2dbddb(0x1ce),'boVRs':_0x2dbddb(0x1a6),'zZqoV':_0x2dbddb(0x164),'BOhEI':_0x2dbddb(0x1b1),'klzlX':'pending','uFUCM':function(_0x2242ac,_0x247e38){return _0x2242ac===_0x247e38;},'xtVJT':_0x2dbddb(0x19a),'xNYjh':function(_0x4dc75f,_0x39af17){return _0x4dc75f>_0x39af17;},'vZQKC':'failed','jbvTW':function(_0x5e346b,_0x1a1a81){return _0x5e346b(_0x1a1a81);},'SvQon':'test','ReUhJ':'passed','susIO':_0x2dbddb(0x14c),'hlMWV':_0x2dbddb(0x179),'ljccz':_0x2dbddb(0x1b5),'plDkn':function(_0x20e613,_0x362483){return _0x20e613===_0x362483;},'OIGaX':_0x2dbddb(0x122)};logger[_0x2dbddb(0x1ca)](_0x2dbddb(0x177)+_0x4f8f22+_0x2dbddb(0x12d)+_0x59b04a+_0x2dbddb(0x129)+_0x2b35dc);try{if(!_0xe40a77)return logger[_0x2dbddb(0x1ca)](_0x160d95['OUHSG']),null;if(this[_0x2dbddb(0x1b8)](_0xe40a77))return null;await this[_0x2dbddb(0x158)]();let _0x126daf=null;try{_0x126daf=this[_0x2dbddb(0x199)](_0xe40a77);if(_0x126daf&&_0x126daf[_0x2dbddb(0x198)](_0x160d95[_0x2dbddb(0x1a9)]))return null;if(_0x126daf&&_0x126daf['includes'](_0x160d95['zZqoV']))return null;}catch(_0x261357){logger[_0x2dbddb(0x1ca)]('Failed\x20to\x20get\x20hook\x20file\x20path:\x20'+util[_0x2dbddb(0x152)](_0x261357));}const _0x14c6d8=this[_0x2dbddb(0x1a3)](_0xe40a77),_0x4e2500=_0xe40a77[_0x2dbddb(0x145)]||_0x160d95['BOhEI'],_0x125b48=HOOK_TYPES_MAP[_0x4e2500]||_0x4e2500[_0x2dbddb(0x1b9)](),_0x855f6a=_0xe40a77['parent']&&_0xe40a77[_0x2dbddb(0x144)][_0x2dbddb(0x18c)]?_0xe40a77[_0x2dbddb(0x144)]['name']:'';let _0x9cfdca=_0x160d95[_0x2dbddb(0x155)],_0x113488=null,_0x2548fb=null,_0x3867b5=null,_0x572bbd=null;_0x160d95[_0x2dbddb(0x14f)](_0x4f8f22,_0x160d95['xtVJT'])&&(_0x572bbd=new Date()[_0x2dbddb(0x137)](),_0xe40a77[_0x2dbddb(0x150)]&&_0x160d95[_0x2dbddb(0x191)](_0xe40a77[_0x2dbddb(0x150)][_0x2dbddb(0x1d9)],0x0)?(_0x9cfdca=_0x160d95[_0x2dbddb(0x19b)],_0x2548fb=util[_0x2dbddb(0x16d)](_0xe40a77[_0x2dbddb(0x150)][0x0]),_0x113488=_0x160d95[_0x2dbddb(0x195)](getFailureType,_0x2548fb),_0x3867b5=failureData['apply'](null,[_0xe40a77[_0x2dbddb(0x150)],_0x160d95[_0x2dbddb(0x14e)]])):_0x9cfdca=_0x160d95[_0x2dbddb(0x16f)]);const _0x4b10ee={'uuid':_0x59b04a,'type':_0x160d95[_0x2dbddb(0x1d1)],'hook_type':_0x125b48,'name':_0x14c6d8,'body':{'lang':_0x160d95[_0x2dbddb(0x1d3)],'code':_0xe40a77['fn']?_0xe40a77['fn'][_0x2dbddb(0x1d8)]():null},'tags':[],'test_run_id':_0x2b35dc,'scope':_0x855f6a,'scopes':[_0x855f6a],'file_name':_0x126daf,'location':_0x126daf,'vc_filepath':this['_gitConfigPath']&&_0x126daf?path[_0x2dbddb(0x12c)](this['_gitConfigPath'],_0x126daf):null,'result':_0x9cfdca,'started_at':_0xe40a77[_0x2dbddb(0x1c2)]||new Date()[_0x2dbddb(0x137)](),'finished_at':_0x572bbd,'failure_type':_0x113488,'failure_reason':_0x2548fb,'failure_data':_0x3867b5,'framework':_0x160d95[_0x2dbddb(0x183)]};return _0x160d95[_0x2dbddb(0x121)](_0x4f8f22,_0x160d95[_0x2dbddb(0x161)])&&(hooksMap[_0x2b35dc]?hooksMap[_0x2b35dc][_0x2dbddb(0x1de)](_0x4b10ee):hooksMap[_0x2b35dc]=[_0x4b10ee]),_0x4b10ee;}catch(_0x523cad){return logger['debug'](_0x2dbddb(0x1a5)+util[_0x2dbddb(0x152)](_0x523cad)),null;}}[a91_0x2c7416(0x1dc)](_0x72024b,_0x295efd,_0x4f30f2){const _0x305276=a91_0x2c7416,_0x3e273b={'yXAGv':function(_0x58c88b,_0x51aa04){return _0x58c88b>_0x51aa04;},'ibKAV':_0x305276(0x1dd),'Cxbkd':function(_0x5e91d2,_0x56ba9f){return _0x5e91d2(_0x56ba9f);},'JhYeh':_0x305276(0x1bb),'AHOis':'passed'};try{const _0x1e70a9=hooksMap[_0x72024b];if(!_0x1e70a9)return null;const _0x16e3dc=_0x1e70a9[_0x305276(0x16b)](_0x1050cd=>_0x1050cd[_0x305276(0x1d6)]===_0x295efd);if(!_0x16e3dc)return null;return _0x16e3dc[_0x305276(0x1c5)]=new Date()[_0x305276(0x137)](),_0x4f30f2['errorsDetailed']&&_0x3e273b[_0x305276(0x173)](_0x4f30f2[_0x305276(0x150)]['length'],0x0)?(_0x16e3dc[_0x305276(0x12a)]=_0x3e273b[_0x305276(0x169)],_0x16e3dc[_0x305276(0x18e)]=util[_0x305276(0x16d)](_0x4f30f2[_0x305276(0x150)][0x0]),_0x16e3dc['failure_type']=_0x3e273b[_0x305276(0x127)](getFailureType,_0x16e3dc['failure_reason']),_0x16e3dc[_0x305276(0x1aa)]=failureData[_0x305276(0x13c)](null,[_0x4f30f2[_0x305276(0x150)],_0x3e273b[_0x305276(0x1d7)]])):_0x16e3dc[_0x305276(0x12a)]=_0x3e273b[_0x305276(0x14b)],_0x16e3dc;}catch(_0x384259){return logger['debug']('Exception\x20in\x20getHookRunEventData:\x20'+util['format'](_0x384259)),null;}}[a91_0x2c7416(0x1a3)](_0x39e5fa){const _0x26832a=a91_0x2c7416,_0x5d7beb={};_0x5d7beb[_0x26832a(0x1ad)]=function(_0x3e6771,_0x5b2ba3){return _0x3e6771!==_0x5b2ba3;},_0x5d7beb[_0x26832a(0x12f)]=_0x26832a(0x1bb),_0x5d7beb[_0x26832a(0x1c4)]=_0x26832a(0x1b3);const _0x4ce2a4=_0x5d7beb;if(_0x4ce2a4['JiIdF'](_0x39e5fa[_0x26832a(0x145)],_0x4ce2a4[_0x26832a(0x12f)]))return'\x22'+_0x39e5fa[_0x26832a(0x145)]+_0x26832a(0x1b7)+(_0x39e5fa[_0x26832a(0x144)]&&_0x39e5fa[_0x26832a(0x144)][_0x26832a(0x18c)])+'\x22';return _0x39e5fa[_0x26832a(0x18c)]||_0x4ce2a4[_0x26832a(0x1c4)];}[a91_0x2c7416(0x1bc)](_0x8a04ed){const _0x352467=a91_0x2c7416,_0xa839f1={};_0xa839f1[_0x352467(0x1bf)]=function(_0x857dac,_0x276742){return _0x857dac!==_0x276742;},_0xa839f1[_0x352467(0x157)]=function(_0x33fdb2,_0x119514){return _0x33fdb2!==_0x119514;},_0xa839f1[_0x352467(0x160)]=_0x352467(0x1af);const _0x8d47bb=_0xa839f1,_0x10b464=[];if(_0x8a04ed&&_0x8a04ed['parent']){let _0x41dc0b=_0x8a04ed[_0x352467(0x144)];while(_0x41dc0b&&_0x41dc0b[_0x352467(0x18c)]&&_0x8d47bb[_0x352467(0x1bf)](_0x41dc0b[_0x352467(0x18c)],'')&&_0x8d47bb[_0x352467(0x157)](_0x41dc0b[_0x352467(0x18c)],_0x8d47bb['OnjZG'])){_0x10b464[_0x352467(0x1de)](_0x41dc0b[_0x352467(0x18c)]),_0x41dc0b=_0x41dc0b[_0x352467(0x144)];}}return _0x10b464[_0x352467(0x1a1)](),_0x10b464;}[a91_0x2c7416(0x199)](_0x256e4f){const _0x359e9f=a91_0x2c7416;if(_0x256e4f[_0x359e9f(0x138)])try{const _0x4c23e4=stackTrace[_0x359e9f(0x1cf)][_0x359e9f(0x19e)](stackTrace,_0x256e4f['asyncError']);if(_0x4c23e4[0x0]&&_0x4c23e4[0x0]['getFileName'])return _0x4c23e4[0x0]['getFileName']();}catch(_0x522eb7){logger['debug'](_0x359e9f(0x186)+util[_0x359e9f(0x152)](_0x522eb7));}if(_0x256e4f[_0x359e9f(0x1ab)])return _0x256e4f[_0x359e9f(0x1ab)];return null;}[a91_0x2c7416(0x1b8)](_0xe8c738){const _0x5c916f=a91_0x2c7416,_0x53e57c={};_0x53e57c['yQGau']=_0x5c916f(0x1a6);const _0x17c6c5=_0x53e57c;try{const _0x4179cc=this[_0x5c916f(0x199)](_0xe8c738);if(_0x4179cc&&_0x4179cc[_0x5c916f(0x198)](_0x17c6c5[_0x5c916f(0x17e)]))return!![];}catch(_0x599af9){logger['debug'](_0x5c916f(0x1d0)+util['format'](_0x599af9));}return![];}['getTestIdentifier'](_0x4e193b=null){const _0x5402fd=a91_0x2c7416;try{const _0x344db6=_0x4e193b||global['__workerDetails']||{};if(global[_0x5402fd(0x12b)])return global[_0x5402fd(0x12b)];if(_0x344db6?.['currentTest']?.[_0x5402fd(0x14d)])return _0x344db6['currentTest'][_0x5402fd(0x14d)];if(_0x344db6?.[_0x5402fd(0x148)]?.['id'])return _0x344db6[_0x5402fd(0x148)]['id'];return null;}catch(_0x93b140){return logger[_0x5402fd(0x1ca)](_0x5402fd(0x13d)+util[_0x5402fd(0x152)](_0x93b140)),null;}}async[a91_0x2c7416(0x158)](){const _0x1380e2=a91_0x2c7416,_0x55363d={'sjoKs':function(_0x4a8d75){return _0x4a8d75();}};if(this[_0x1380e2(0x171)])return this[_0x1380e2(0x162)];const _0x24fc91=await _0x55363d[_0x1380e2(0x135)](getGitMetaData);_0x24fc91&&(this[_0x1380e2(0x162)]=_0x24fc91['root']),this[_0x1380e2(0x171)]=!![];}['clearHooksMap'](_0x8e743b){hooksMap[_0x8e743b]&&delete hooksMap[_0x8e743b];}[a91_0x2c7416(0x178)](_0x3071c7){const _0x3880f8=a91_0x2c7416,_0xa06a79={'FnlTg':_0x3880f8(0x1a6),'rjODU':function(_0x50eeb8,_0x5cb1fe){return _0x50eeb8(_0x5cb1fe);},'CBpWN':_0x3880f8(0x1d5)};if(_0x3071c7[_0x3880f8(0x1ab)])return _0x3071c7['file'];if(_0x3071c7[_0x3880f8(0x138)]){try{const _0x543449=stackTrace[_0x3880f8(0x1cf)](_0x3071c7[_0x3880f8(0x138)]);if(_0x543449[0x0]&&_0x543449[0x0][_0x3880f8(0x172)]){const _0x45d916=_0x543449[0x0]['getFileName']();if(_0x45d916&&!_0x45d916['includes'](_0xa06a79[_0x3880f8(0x147)]))return _0x45d916;}}catch(_0x1a0532){logger['debug'](_0x3880f8(0x1b0)+util[_0x3880f8(0x152)](_0x1a0532));}if(_0x3071c7[_0x3880f8(0x138)][_0x3880f8(0x174)]){const _0x55a932=_0x3071c7[_0x3880f8(0x138)][_0x3880f8(0x174)][_0x3880f8(0x1c9)]('\x0a');for(const _0x3661e8 of _0x55a932){const _0x3b7718=_0x3661e8[_0x3880f8(0x1cc)](/at (.+?):\d+:\d+/);if(_0x3b7718&&_0x3b7718[0x1]&&!_0x3b7718[0x1][_0x3880f8(0x198)](_0xa06a79[_0x3880f8(0x147)]))return _0x3b7718[0x1];}}}let _0x1a1f65=_0x3071c7[_0x3880f8(0x144)];while(_0x1a1f65){if(_0x1a1f65[_0x3880f8(0x1ab)])return _0x1a1f65[_0x3880f8(0x1ab)];if(_0x1a1f65[_0x3880f8(0x138)])try{const _0x2c8fd2=stackTrace[_0x3880f8(0x1cf)](_0x1a1f65[_0x3880f8(0x138)]);if(_0x2c8fd2[0x0]&&_0x2c8fd2[0x0][_0x3880f8(0x172)]){const _0x371a5c=_0x2c8fd2[0x0][_0x3880f8(0x172)]();if(_0x371a5c&&!_0x371a5c['includes'](_0xa06a79[_0x3880f8(0x147)]))return _0x371a5c;}}catch(_0x24184a){}_0x1a1f65=_0x1a1f65[_0x3880f8(0x144)];}try{const _0x4e9b76=_0xa06a79[_0x3880f8(0x17b)](require,_0xa06a79[_0x3880f8(0x1a8)]);if(_0x4e9b76&&_0x4e9b76[_0x3880f8(0x15c)]){const _0x6c95db=_0x4e9b76[_0x3880f8(0x15c)]();if(_0x6c95db&&_0x6c95db[_0x3880f8(0x132)])return _0x6c95db['testPath'];}}catch(_0x3e3065){logger['debug'](_0x3880f8(0x142)+util[_0x3880f8(0x152)](_0x3e3065));}return null;}['createJestTestIdentifier'](_0x484838){const _0x207f2e=a91_0x2c7416,_0x5f2b4c={};_0x5f2b4c[_0x207f2e(0x16a)]=_0x207f2e(0x175),_0x5f2b4c[_0x207f2e(0x153)]=function(_0x14becf,_0x10c200){return _0x14becf!==_0x10c200;},_0x5f2b4c[_0x207f2e(0x163)]=_0x207f2e(0x1af),_0x5f2b4c[_0x207f2e(0x124)]='jest-circus',_0x5f2b4c[_0x207f2e(0x1bd)]='md5',_0x5f2b4c[_0x207f2e(0x136)]=_0x207f2e(0x196);const _0x24e807=_0x5f2b4c;try{if(!_0x484838)return logger['error'](_0x24e807['JFhjA']),null;const _0x19132c=_0x484838[_0x207f2e(0x18a)]||_0x484838['name']||_0x484838['title']||_0x484838[_0x207f2e(0x1a0)];let _0x1c89a5=_0x19132c;if(_0x484838[_0x207f2e(0x144)]&&_0x484838[_0x207f2e(0x144)][_0x207f2e(0x18c)]&&_0x24e807['zExcQ'](_0x484838[_0x207f2e(0x144)][_0x207f2e(0x18c)],_0x24e807[_0x207f2e(0x163)])){const _0x4489d1=_0x484838[_0x207f2e(0x18c)]||_0x484838[_0x207f2e(0x128)];_0x4489d1&&(_0x1c89a5=_0x484838[_0x207f2e(0x144)][_0x207f2e(0x18c)]+'\x20'+_0x4489d1);}let _0xb9775f=_0x484838[_0x207f2e(0x132)];if(!_0xb9775f&&_0x484838[_0x207f2e(0x138)]){try{const _0x86675a=stackTrace[_0x207f2e(0x1cf)](_0x484838[_0x207f2e(0x138)]);if(_0x86675a[0x0]&&_0x86675a[0x0][_0x207f2e(0x172)]){const _0x149f73=_0x86675a[0x0][_0x207f2e(0x172)]();_0x149f73&&!_0x149f73[_0x207f2e(0x198)](_0x24e807[_0x207f2e(0x124)])&&(_0xb9775f=_0x149f73);}}catch(_0x523b4c){logger[_0x207f2e(0x1ca)](_0x207f2e(0x1b0)+util[_0x207f2e(0x152)](_0x523b4c));}if(!_0xb9775f&&_0x484838[_0x207f2e(0x138)][_0x207f2e(0x174)]){const _0x46d90f=_0x484838['asyncError'][_0x207f2e(0x174)][_0x207f2e(0x1c9)]('\x0a');for(const _0x2c49a4 of _0x46d90f){const _0x2ccabf=_0x2c49a4[_0x207f2e(0x1cc)](/at (.+?):\d+:\d+/);if(_0x2ccabf&&_0x2ccabf[0x1]&&!_0x2ccabf[0x1][_0x207f2e(0x198)](_0x24e807[_0x207f2e(0x124)])){_0xb9775f=_0x2ccabf[0x1];break;}}}}const _0x4542f7=_0xb9775f+'::'+_0x1c89a5,_0x1edf82=crypto['createHash'](_0x24e807['SjWhj'])['update'](_0x4542f7)['digest'](_0x24e807['ZmClp'])[_0x207f2e(0x17c)](0x0,0x8),_0x218ed3=process[_0x207f2e(0x1c6)]+_0x207f2e(0x19f)+_0x1edf82;return logger[_0x207f2e(0x1ca)]('[jestUtils]\x20Created\x20identifier:\x20'+_0x218ed3+_0x207f2e(0x182)+_0x4542f7),_0x218ed3;}catch(_0x5273e2){return logger[_0x207f2e(0x185)]('[jestUtils]\x20Error\x20creating\x20identifier:\x20'+util[_0x207f2e(0x152)](_0x5273e2)),null;}}[a91_0x2c7416(0x1a7)](_0x17a1ca){const _0x3989b8=a91_0x2c7416,_0x491b77={};_0x491b77[_0x3989b8(0x168)]=_0x3989b8(0x165);const _0x453f83=_0x491b77;if(!_0x17a1ca)return logger[_0x3989b8(0x1ca)](_0x453f83[_0x3989b8(0x168)]),null;const _0x5a2b7f=this[_0x3989b8(0x178)](_0x17a1ca),_0x3637b3={};_0x3637b3[_0x3989b8(0x18c)]=_0x17a1ca[_0x3989b8(0x18c)]||_0x17a1ca[_0x3989b8(0x128)],_0x3637b3[_0x3989b8(0x144)]=_0x17a1ca[_0x3989b8(0x144)],_0x3637b3[_0x3989b8(0x132)]=_0x5a2b7f,_0x3637b3[_0x3989b8(0x138)]=_0x17a1ca[_0x3989b8(0x138)];const _0x5ea248=_0x3637b3;return this['createJestTestIdentifier'](_0x5ea248);}[a91_0x2c7416(0x1a4)](_0x1be577){const _0x15a730=a91_0x2c7416,_0x3e100b={};_0x3e100b[_0x15a730(0x1c1)]=_0x15a730(0x15f);const _0x29d870=_0x3e100b;if(!_0x1be577)return logger['debug'](_0x29d870['ZuxKk']),null;if(_0x1be577[_0x15a730(0x131)])return logger['debug'](_0x15a730(0x17d)+_0x1be577[_0x15a730(0x131)]),_0x1be577['testIdentifier'];return this[_0x15a730(0x1b2)](_0x1be577);}}module[a91_0x2c7416(0x159)]=o11yClassErrorHandler(JestUtils,['configureGit',a91_0x2c7416(0x1bc),'getRootParentFile','getName',a91_0x2c7416(0x1b8),'getTestIdentifier','createTestFrameworkData',a91_0x2c7416(0x151),'getHookRunEventData',a91_0x2c7416(0x1cd),a91_0x2c7416(0x178),a91_0x2c7416(0x1b2),a91_0x2c7416(0x1a7),a91_0x2c7416(0x1a4)]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a92_0x1c0d24=a92_0x834f;function a92_0x4a39(){const _0x1fa874=['Config\x20yml\x20is\x20required','743561xYKQug','launchBuild','10DFWthr','../../helpers/performance/constants','1052596BlgDsg','cwd','modifyBrowserStackCaps','108409xIVhxQ','../test-runner','isUndefined','configuration','finalExecution','../../helpers/helper','initialize','parallelsPerPlatform','platforms','finally','assign','EVENTS','File\x20path\x20is\x20required','1117161enHwWS','116434PKyBNM','path','JfhvF','proxySettings','push','args','index','bTBHT','oHRGw','forEach','16NwKIWL','5rmMLrZ','length','884290AduFrP','exports','handleApp','join','end','getPlatformName','../../helpers/testhub/testhubHandler','hjWgN','useW3C','QBJsr','168URKdwu','22tgrhqN','bYlIw','vanilla','getHubUrl','modifyBrowserStackW3CCaps','784623KehATr','IkQnO','config','228bjOCeP','../../helpers/utilities','file','\x20doesn\x27t\x20exist','kmcMl','../../helpers/BrowserStackSetup'];a92_0x4a39=function(){return _0x1fa874;};return a92_0x4a39();}(function(_0x48b653,_0x7fe5e8){const _0x3f7739=a92_0x834f,_0x3530cd=_0x48b653();while(!![]){try{const _0x2c4a8d=parseInt(_0x3f7739(0x17d))/0x1*(parseInt(_0x3f7739(0x16a))/0x2)+-parseInt(_0x3f7739(0x15e))/0x3+-parseInt(_0x3f7739(0x16c))/0x4*(-parseInt(_0x3f7739(0x14c))/0x5)+parseInt(_0x3f7739(0x161))/0x6*(-parseInt(_0x3f7739(0x16f))/0x7)+parseInt(_0x3f7739(0x14b))/0x8*(-parseInt(_0x3f7739(0x17c))/0x9)+-parseInt(_0x3f7739(0x14e))/0xa*(parseInt(_0x3f7739(0x159))/0xb)+-parseInt(_0x3f7739(0x158))/0xc*(-parseInt(_0x3f7739(0x168))/0xd);if(_0x2c4a8d===_0x7fe5e8)break;else _0x3530cd['push'](_0x3530cd['shift']());}catch(_0x48a851){_0x3530cd['push'](_0x3530cd['shift']());}}}(a92_0x4a39,0x5a8e2));const fs=require('fs'),path=require(a92_0x1c0d24(0x17e)),{default:BrowserStackSetup}=require(a92_0x1c0d24(0x166)),helper=require(a92_0x1c0d24(0x174)),PerformanceTester=require('../../helpers/performance/performance-tester'),PerformanceEvents=require(a92_0x1c0d24(0x16b))[a92_0x1c0d24(0x17a)],utilities=require(a92_0x1c0d24(0x162)),{parallelVanillaRun}=require(a92_0x1c0d24(0x170)),TestHubHandler=require(a92_0x1c0d24(0x154));function a92_0x834f(_0x578bd4,_0x36cfdd){const _0x4a39c9=a92_0x4a39();return a92_0x834f=function(_0x834ffa,_0x24b3a8){_0x834ffa=_0x834ffa-0x149;let _0x3efd42=_0x4a39c9[_0x834ffa];return _0x3efd42;},a92_0x834f(_0x578bd4,_0x36cfdd);}async function run(_0x41abaa,_0x1405ed,_0x38f9ed){const _0x4f4c0f=a92_0x1c0d24,_0xf7644={'IkQnO':_0x4f4c0f(0x15b),'QBJsr':function(_0x3ae88f,_0x4c158e){return _0x3ae88f(_0x4c158e);},'bYlIw':_0x4f4c0f(0x17b),'hjWgN':function(_0x346bc4,_0x2ea66e){return _0x346bc4(_0x2ea66e);},'kmcMl':_0x4f4c0f(0x167),'zDEvm':function(_0x42a0a0,_0x394eac){return _0x42a0a0>_0x394eac;},'oHRGw':function(_0x4307e4,_0x302d03){return _0x4307e4>_0x302d03;},'bTBHT':function(_0x5a27bd,_0x9dea6){return _0x5a27bd*_0x9dea6;},'JfhvF':function(_0x107f1f,_0x3159f8,_0x19670b){return _0x107f1f(_0x3159f8,_0x19670b);}};await _0x38f9ed[_0x4f4c0f(0x175)](_0x41abaa),await helper[_0x4f4c0f(0x150)](_0x38f9ed[_0x4f4c0f(0x160)]);const _0x212d1b=[];if(helper[_0x4f4c0f(0x171)](_0x41abaa['_'][0x1]))throw _0xf7644['QBJsr'](Error,_0xf7644[_0x4f4c0f(0x15a)]);const _0x1f20c4=path[_0x4f4c0f(0x151)](process[_0x4f4c0f(0x16d)](),_0x41abaa['_'][0x1]);if(!fs['existsSync'](_0x1f20c4))throw _0xf7644[_0x4f4c0f(0x157)](Error,'File\x20'+_0x41abaa['_'][0x1]+_0x4f4c0f(0x164));if(!_0x38f9ed['config'])throw _0xf7644[_0x4f4c0f(0x155)](Error,_0xf7644[_0x4f4c0f(0x165)]);const _0x2f0c19=helper[_0x4f4c0f(0x156)](_0x38f9ed[_0x4f4c0f(0x160)]);_0x38f9ed[_0x4f4c0f(0x160)][_0x4f4c0f(0x177)]&&_0xf7644['zDEvm'](_0x38f9ed[_0x4f4c0f(0x160)][_0x4f4c0f(0x177)]['length'],0x0)&&_0x38f9ed[_0x4f4c0f(0x160)][_0x4f4c0f(0x177)][_0x4f4c0f(0x14a)]((_0x1e1904,_0x48be63)=>{const _0x25fc67=_0x4f4c0f;_0x2f0c19?_0x212d1b[_0x25fc67(0x181)](helper[_0x25fc67(0x15d)](_0x38f9ed[_0x25fc67(0x160)],_0xf7644[_0x25fc67(0x15f)],_0x48be63)):_0x212d1b[_0x25fc67(0x181)](helper[_0x25fc67(0x16e)](_0x38f9ed[_0x25fc67(0x160)],_0xf7644['IkQnO'],_0x48be63));});let _0x5d7850,_0x48f5c8;const _0x5df8f4=[];if(_0xf7644[_0x4f4c0f(0x149)](_0x212d1b['length'],0x0))_0x212d1b[_0x4f4c0f(0x14a)]((_0x24961d,_0x23cef1)=>{const _0x50fbce=_0x4f4c0f,_0x25d699={};_0x25d699[_0x50fbce(0x183)]=_0x23cef1,_0x5d7850={'server':helper[_0x50fbce(0x15c)](_0x38f9ed[_0x50fbce(0x160)]),'proxySettings':_0x38f9ed['config']['proxySettings'],'platform':helper[_0x50fbce(0x153)](_0x24961d),'platformCaps':Object[_0x50fbce(0x179)](_0x25d699,_0x38f9ed[_0x50fbce(0x160)]['platforms'][_0x23cef1])};const _0x14acc2={'capability':_0x24961d,..._0x5d7850};_0x14acc2[_0x50fbce(0x163)]=_0x1f20c4,_0x14acc2['args']=_0x1405ed;const _0x3e9877={};_0x3e9877[_0x50fbce(0x172)]=_0x14acc2,_0x48f5c8=_0x3e9877,_0x5df8f4['push'](_0x48f5c8);});else{let _0x681291;_0x2f0c19?_0x681291=helper['modifyBrowserStackW3CCaps'](_0x38f9ed['config'],_0xf7644[_0x4f4c0f(0x15f)],0x0):_0x681291=helper[_0x4f4c0f(0x16e)](_0x38f9ed[_0x4f4c0f(0x160)],_0xf7644['IkQnO'],0x0);_0x5d7850={'server':helper[_0x4f4c0f(0x15c)](_0x38f9ed[_0x4f4c0f(0x160)]),'proxySettings':_0x38f9ed[_0x4f4c0f(0x160)][_0x4f4c0f(0x180)]};const _0x4b0e8e={'capability':_0x681291,..._0x5d7850};_0x4b0e8e['file']=_0x1f20c4,_0x4b0e8e[_0x4f4c0f(0x182)]=_0x1405ed;const _0x161402={};_0x161402[_0x4f4c0f(0x172)]=_0x4b0e8e,_0x48f5c8=_0x161402,_0x5df8f4[_0x4f4c0f(0x181)](_0x48f5c8);}const _0x51e687=await TestHubHandler[_0x4f4c0f(0x169)](_0xf7644[_0x4f4c0f(0x15f)],_0x38f9ed),_0x19a9d8=_0xf7644[_0x4f4c0f(0x184)](_0x38f9ed[_0x4f4c0f(0x160)]['platforms'][_0x4f4c0f(0x14d)]||0x1,_0x38f9ed[_0x4f4c0f(0x160)][_0x4f4c0f(0x176)]||0x1);PerformanceTester[_0x4f4c0f(0x152)](PerformanceEvents['SDK_SETUP']),_0xf7644[_0x4f4c0f(0x17f)](parallelVanillaRun,_0x5df8f4,_0x19a9d8)['then'](_0x5d6781=>{})[_0x4f4c0f(0x178)](async()=>{const _0x484df5=_0x4f4c0f;PerformanceTester['start'](PerformanceEvents['SDK_CLEANUP']),await utilities[_0x484df5(0x173)](_0x38f9ed);});}module[a92_0x1c0d24(0x14f)]=run;
|
package/src/browserStackSdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a93_0x4f2a(_0x1a8ae0,_0x5d4636){const _0x1fe972=a93_0x1fe9();return a93_0x4f2a=function(_0x4f2af4,_0xfd36){_0x4f2af4=_0x4f2af4-0x74;let _0x57985f=_0x1fe972[_0x4f2af4];return _0x57985f;},a93_0x4f2a(_0x1a8ae0,_0x5d4636);}const a93_0x39ceac=a93_0x4f2a;function a93_0x1fe9(){const _0x4dcf91=['gAKrp','ZTANw','tpFLj','JPYdx','40jHtIGq','323964FmzxHT','4563251cDgTon','12lNWNLy','kuvbU','setTestMetadata','305nIGGiq','nHvEv','LCtnG','platform','18762cccoXP','osVersion','21710755bZQpdd','browserVersion','nICRV','browserName','deviceName','os_version','QsNYv','set','4388336NouOah','exports','browser','device','__platformCaps','89757oUJOPb','VJOny','GyNKs','xdbwu','18fyCMTQ','997098DTjgrY'];a93_0x1fe9=function(){return _0x4dcf91;};return a93_0x1fe9();}(function(_0x187a3f,_0xed7726){const _0x370d50=a93_0x4f2a,_0x3c9edb=_0x187a3f();while(!![]){try{const _0x43aae7=parseInt(_0x370d50(0x7f))/0x1*(parseInt(_0x370d50(0x83))/0x2)+-parseInt(_0x370d50(0x84))/0x3*(parseInt(_0x370d50(0x8c))/0x4)+-parseInt(_0x370d50(0x8f))/0x5*(parseInt(_0x370d50(0x93))/0x6)+-parseInt(_0x370d50(0x8b))/0x7+-parseInt(_0x370d50(0x7a))/0x8+-parseInt(_0x370d50(0x8a))/0x9*(-parseInt(_0x370d50(0x89))/0xa)+parseInt(_0x370d50(0x95))/0xb;if(_0x43aae7===_0xed7726)break;else _0x3c9edb['push'](_0x3c9edb['shift']());}catch(_0x3fe974){_0x3c9edb['push'](_0x3c9edb['shift']());}}}(a93_0x1fe9,0x83286));const TestMetadata=require('./helpers/metadata');class BrowserStackSdk{static['getCurrentPlatform'](){const _0x294bbc=a93_0x4f2a,_0x30a078={};_0x30a078[_0x294bbc(0x91)]=_0x294bbc(0x77),_0x30a078['ZTANw']=_0x294bbc(0x94),_0x30a078[_0x294bbc(0x90)]=_0x294bbc(0x7c),_0x30a078[_0x294bbc(0x88)]=_0x294bbc(0x75),_0x30a078['kuvbU']='browser_version',_0x30a078['hZhIJ']=_0x294bbc(0x96),_0x30a078[_0x294bbc(0x80)]=_0x294bbc(0x7d),_0x30a078[_0x294bbc(0x78)]=_0x294bbc(0x76),_0x30a078[_0x294bbc(0x82)]=_0x294bbc(0x92),_0x30a078['gAKrp']='platformName',_0x30a078[_0x294bbc(0x74)]='platform_version',_0x30a078[_0x294bbc(0x87)]='platformVersion',_0x30a078[_0x294bbc(0x81)]='customVariables';const _0x5b9a7c=_0x30a078,_0x28157d={};if(global['__platformCaps']){const _0x2139bd=global[_0x294bbc(0x7e)],_0x3b9392=_0x2139bd[_0x5b9a7c[_0x294bbc(0x91)]]||_0x2139bd[_0x5b9a7c[_0x294bbc(0x86)]],_0x3fea31=_0x2139bd[_0x5b9a7c[_0x294bbc(0x90)]]||_0x2139bd[_0x5b9a7c[_0x294bbc(0x88)]],_0x587eba=_0x2139bd[_0x5b9a7c[_0x294bbc(0x8d)]]||_0x2139bd[_0x5b9a7c['hZhIJ']],_0x25c169=_0x2139bd[_0x5b9a7c[_0x294bbc(0x80)]]||_0x2139bd[_0x5b9a7c[_0x294bbc(0x78)]],_0x334bc9=_0x2139bd[_0x5b9a7c['xdbwu']]||_0x2139bd[_0x5b9a7c[_0x294bbc(0x85)]],_0xe707d6=_0x2139bd[_0x5b9a7c[_0x294bbc(0x74)]]||_0x2139bd[_0x5b9a7c['tpFLj']];_0x2139bd['os']&&(_0x28157d['os']=_0x2139bd['os']),_0x3b9392&&(_0x28157d[_0x5b9a7c[_0x294bbc(0x86)]]=_0x3b9392),_0x3fea31&&(_0x28157d[_0x5b9a7c[_0x294bbc(0x88)]]=_0x3fea31),_0x587eba&&(_0x28157d[_0x5b9a7c['hZhIJ']]=_0x587eba),_0x25c169&&(_0x28157d[_0x5b9a7c[_0x294bbc(0x78)]]=_0x25c169),_0x334bc9&&(_0x28157d[_0x5b9a7c[_0x294bbc(0x85)]]=_0x334bc9),_0xe707d6&&(_0x28157d[_0x5b9a7c[_0x294bbc(0x87)]]=_0xe707d6),_0x2139bd[_0x5b9a7c[_0x294bbc(0x81)]]&&(_0x28157d[_0x5b9a7c[_0x294bbc(0x81)]]=_0x2139bd[_0x5b9a7c['GyNKs']]);}return _0x28157d;}static[a93_0x39ceac(0x8e)](_0x198295={}){const _0x1ae81d=a93_0x39ceac;TestMetadata[_0x1ae81d(0x79)](_0x198295);}}module[a93_0x39ceac(0x7b)]=BrowserStackSdk;
|