browserstack-node-sdk 1.53.4 → 1.53.5
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/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.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/puppeteer-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/puppeteerAutomationFramework.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/puppeteerDriverModule.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/puppeteer-helper.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 a90_0x3bfe3f=a90_0x57fa;(function(_0x49390c,_0x590c0f){const _0x49a7fd=a90_0x57fa,_0x28cedb=_0x49390c();while(!![]){try{const _0x276c4b=-parseInt(_0x49a7fd(0x93))/0x1*(parseInt(_0x49a7fd(0x100))/0x2)+-parseInt(_0x49a7fd(0x15c))/0x3+parseInt(_0x49a7fd(0x125))/0x4*(parseInt(_0x49a7fd(0xd8))/0x5)+parseInt(_0x49a7fd(0x168))/0x6*(parseInt(_0x49a7fd(0x10b))/0x7)+parseInt(_0x49a7fd(0x13f))/0x8+parseInt(_0x49a7fd(0x8f))/0x9*(parseInt(_0x49a7fd(0xec))/0xa)+-parseInt(_0x49a7fd(0xf8))/0xb*(parseInt(_0x49a7fd(0x144))/0xc);if(_0x276c4b===_0x590c0f)break;else _0x28cedb['push'](_0x28cedb['shift']());}catch(_0x1e8f09){_0x28cedb['push'](_0x28cedb['shift']());}}}(a90_0x2c75,0x3af51));const util=require(a90_0x3bfe3f(0x9a)),BaseModule=require(a90_0x3bfe3f(0x124)),{createClassLogger}=require(a90_0x3bfe3f(0x15b)),{getFrameworkVersion}=require(a90_0x3bfe3f(0x118)),helper=require('../../../helpers/helper'),{FRAMEWORKS}=require(a90_0x3bfe3f(0x9c)),AutomationFramework=require(a90_0x3bfe3f(0x10c)),AutomationFrameworkState=require(a90_0x3bfe3f(0xd5)),HookState=require('../state/hookState.js'),{nestedKeyValue,playwrightBstackJsExecutor}=require(a90_0x3bfe3f(0xa3)),CLIUtils=require(a90_0x3bfe3f(0xc7)),BrowserstackCLI=require(a90_0x3bfe3f(0xe7)),GrpcClient=require('../grpcClient.js'),PerformanceTester=require(a90_0x3bfe3f(0x131)),PerformanceEvents=require('../../../helpers/performance/constants.js')[a90_0x3bfe3f(0x160)],TestInfo=require('../TestInfo.js'),{getPlaywrightProvider,getProductForSession}=require(a90_0x3bfe3f(0xa3)),LoadTestModule=require('./loadTestModule.js'),TestFrameworkConstants=require(a90_0x3bfe3f(0x162)),TestFrameworkState=require(a90_0x3bfe3f(0xdd)),JestUtils=require('../utils/jest-utils.js'),TestFramework=require(a90_0x3bfe3f(0x88));class PuppeteerDriverModule extends BaseModule{static [a90_0x3bfe3f(0xa2)]='puppeteer_browser';static [a90_0x3bfe3f(0x135)]=a90_0x3bfe3f(0xb5);static ['KEY_SESSION_ID']=a90_0x3bfe3f(0xa6);static ['KEY_PLATFORM_INDEX']=a90_0x3bfe3f(0xe8);static [a90_0x3bfe3f(0x111)]=a90_0x3bfe3f(0x120);static [a90_0x3bfe3f(0xe0)]=a90_0x3bfe3f(0x8c);static [a90_0x3bfe3f(0x156)]=a90_0x3bfe3f(0x96);static [a90_0x3bfe3f(0xd1)]='puppeteer_test_id';static [a90_0x3bfe3f(0x12f)]=a90_0x3bfe3f(0x126);static ['_driverInitCalledForRef']=new Set();static [a90_0x3bfe3f(0x82)]=null;[a90_0x3bfe3f(0x105)]=createClassLogger(a90_0x3bfe3f(0x126));constructor(_0x52ffdf=null){const _0x17649d=a90_0x3bfe3f,_0x2d9e92={};_0x2d9e92['MNLki']=_0x17649d(0x123),_0x2d9e92[_0x17649d(0x14d)]=_0x17649d(0x126);const _0x52ecb5=_0x2d9e92,_0x28a5b3=_0x52ecb5[_0x17649d(0xbb)]['split']('|');let _0x45ab35=0x0;while(!![]){switch(_0x28a5b3[_0x45ab35++]){case'0':this[_0x17649d(0x140)]=null;continue;case'1':super(_0x52ffdf);continue;case'2':this[_0x17649d(0x95)]=new JestUtils();continue;case'3':this[_0x17649d(0xce)]=_0x52ecb5[_0x17649d(0x14d)];continue;case'4':TestFramework['registerObserver'](TestFrameworkState[_0x17649d(0x15e)],HookState[_0x17649d(0xe9)],this[_0x17649d(0x167)][_0x17649d(0xee)](this));continue;case'5':this[_0x17649d(0x119)]=null;continue;case'6':AutomationFramework[_0x17649d(0x8e)](AutomationFrameworkState['CREATE'],HookState[_0x17649d(0xe9)],this[_0x17649d(0xfd)][_0x17649d(0xee)](this));continue;case'7':this[_0x17649d(0xe2)]=null;continue;case'8':AutomationFramework[_0x17649d(0x8e)](AutomationFrameworkState[_0x17649d(0xcc)],HookState[_0x17649d(0x10f)],this[_0x17649d(0x106)]['bind'](this));continue;case'9':this[_0x17649d(0x11c)]=[];continue;case'10':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x17649d(0xba)],HookState[_0x17649d(0x10f)],this[_0x17649d(0xcf)][_0x17649d(0xee)](this));continue;case'11':this[_0x17649d(0x87)]=null;continue;}break;}}[a90_0x3bfe3f(0x159)](){const _0x2898b5=a90_0x3bfe3f;return PuppeteerDriverModule[_0x2898b5(0x12f)];}async[a90_0x3bfe3f(0x106)](_0x2e3d95){const _0x364b8a=a90_0x3bfe3f,_0x230c4f={};_0x230c4f['KFEAk']=_0x364b8a(0x11f),_0x230c4f[_0x364b8a(0x116)]='base64',_0x230c4f[_0x364b8a(0x94)]=_0x364b8a(0x115),_0x230c4f['uITDt']=_0x364b8a(0x8b),_0x230c4f[_0x364b8a(0x13a)]=function(_0x1f1ddb,_0x483acb){return _0x1f1ddb===_0x483acb;},_0x230c4f['gRNAK']=_0x364b8a(0xff),_0x230c4f[_0x364b8a(0x13e)]=function(_0x353c82,_0x42c60f){return _0x353c82!==_0x42c60f;},_0x230c4f['xPvez']=function(_0x3f2bc1,_0x35ca46){return _0x3f2bc1===_0x35ca46;},_0x230c4f['ceDsQ']=_0x364b8a(0xbc),_0x230c4f[_0x364b8a(0xb6)]=function(_0x39ff2a,_0xff14dc){return _0x39ff2a>_0xff14dc;},_0x230c4f[_0x364b8a(0xf7)]=_0x364b8a(0xa9);const _0x3fafce=_0x230c4f;try{this['logger']['debug'](_0x3fafce['KFEAk']);const _0x2a3ded=_0x2e3d95['launchcaps'],_0x443bf5=_0x2e3d95[_0x364b8a(0xf2)];AutomationFramework[_0x364b8a(0x122)](_0x2e3d95[_0x364b8a(0xa5)],PuppeteerDriverModule['KEY_CAPABILITIES'],_0x2a3ded),AutomationFramework[_0x364b8a(0x122)](_0x2e3d95[_0x364b8a(0xa5)],PuppeteerDriverModule[_0x364b8a(0xe0)],_0x443bf5);const _0x2103ac=_0x2e3d95[_0x364b8a(0xa5)]['getRef'](),_0x5023c4=global['__bstackPlatformIndex']||0x0;AutomationFramework[_0x364b8a(0x122)](_0x2e3d95[_0x364b8a(0xa5)],PuppeteerDriverModule['KEY_PLATFORM_INDEX'],_0x5023c4);if(PuppeteerDriverModule[_0x364b8a(0x169)][_0x364b8a(0x157)](_0x2103ac))this[_0x364b8a(0x105)][_0x364b8a(0xa8)](_0x364b8a(0x134)+_0x2103ac+_0x364b8a(0x92));else{PuppeteerDriverModule[_0x364b8a(0x169)][_0x364b8a(0xd0)](_0x2103ac),PuppeteerDriverModule[_0x364b8a(0x82)]=_0x2103ac;const _0x469fe2={..._0x2a3ded};_0x469fe2[_0x364b8a(0x89)]=!![];const _0x1a03c0=Buffer[_0x364b8a(0x171)](JSON[_0x364b8a(0x128)](_0x469fe2)[_0x364b8a(0xa1)](_0x3fafce[_0x364b8a(0x116)])),_0x29df9f={};_0x29df9f[_0x364b8a(0xb1)]=_0x5023c4,_0x29df9f[_0x364b8a(0x13c)]=_0x2103ac,_0x29df9f[_0x364b8a(0x142)]=_0x1a03c0,_0x29df9f[_0x364b8a(0xf2)]=_0x443bf5;const _0x2b9efd=await GrpcClient['getInstance']()[_0x364b8a(0x16c)](_0x29df9f);this[_0x364b8a(0x105)][_0x364b8a(0xa8)](_0x3fafce[_0x364b8a(0x94)]);if(_0x2b9efd)try{const _0x12061e=_0x2b9efd[_0x364b8a(0xfa)]?_0x2b9efd[_0x364b8a(0xfa)]():_0x2b9efd[_0x364b8a(0xa0)];if(_0x12061e){let _0x4fc2c5;if(Buffer[_0x364b8a(0x172)](_0x12061e))_0x4fc2c5=JSON[_0x364b8a(0x15d)](_0x12061e['toString'](_0x3fafce[_0x364b8a(0xfe)]));else{if(_0x3fafce['eAPIl'](typeof _0x12061e,_0x3fafce[_0x364b8a(0xd9)])&&_0x3fafce['XZQKc'](_0x12061e,null)){const _0x309075=Buffer['from'](Object[_0x364b8a(0x132)](_0x12061e));_0x4fc2c5=JSON[_0x364b8a(0x15d)](_0x309075[_0x364b8a(0xa1)](_0x3fafce[_0x364b8a(0xfe)]));}else _0x3fafce['xPvez'](typeof _0x12061e,_0x3fafce[_0x364b8a(0x166)])?_0x4fc2c5=JSON[_0x364b8a(0x15d)](_0x12061e):_0x4fc2c5=_0x12061e;}this[_0x364b8a(0x105)]['debug'](_0x364b8a(0x9f)+JSON[_0x364b8a(0x128)](_0x4fc2c5)),_0x4fc2c5&&_0x3fafce[_0x364b8a(0xb6)](Object[_0x364b8a(0xcd)](_0x4fc2c5)[_0x364b8a(0xb2)],0x0)&&(AutomationFramework[_0x364b8a(0x122)](_0x2e3d95[_0x364b8a(0xa5)],PuppeteerDriverModule[_0x364b8a(0x111)],_0x4fc2c5),global[_0x364b8a(0xa4)]=_0x4fc2c5,this[_0x364b8a(0x105)][_0x364b8a(0xa8)](_0x3fafce['WzuMv']));}const _0x31aa84=_0x2b9efd[_0x364b8a(0xf1)]?_0x2b9efd[_0x364b8a(0xf1)]():_0x2b9efd['hubUrl'];_0x31aa84&&AutomationFramework[_0x364b8a(0x122)](_0x2e3d95[_0x364b8a(0xa5)],PuppeteerDriverModule[_0x364b8a(0xe0)],_0x31aa84);}catch(_0x159705){this[_0x364b8a(0x105)]['debug'](_0x364b8a(0xea)+util['format'](_0x159705));}}}catch(_0x5235c8){this['logger'][_0x364b8a(0xb9)](_0x364b8a(0x113)+util['format'](_0x5235c8));}}async[a90_0x3bfe3f(0xfd)](_0x49f57c){const _0x316744=a90_0x3bfe3f,_0x5cd266={'GYKpV':function(_0x3dfb90,_0x15ecbd){return _0x3dfb90(_0x15ecbd);},'bhYPS':'onAfterDriverCreate:\x20Setting\x20page\x20object','nXEhd':_0x316744(0x170),'JQtBI':_0x316744(0xb7),'xyVGA':_0x316744(0x108),'uUOkZ':function(_0x39afd1,_0x1aa8c4){return _0x39afd1>_0x1aa8c4;},'GjlUk':_0x316744(0x12c),'pINFl':_0x316744(0x85),'FlhHn':function(_0x444fbb,_0x12d625){return _0x444fbb===_0x12d625;},'ESSop':_0x316744(0xbc)};try{this[_0x316744(0x105)]['debug'](_0x316744(0xdf)+JSON[_0x316744(0x128)](_0x49f57c));const _0x5987bf=_0x49f57c[_0x316744(0xa5)];this[_0x316744(0x119)]=_0x5cd266[_0x316744(0x14b)](getFrameworkVersion,FRAMEWORKS[_0x316744(0xbd)]);_0x49f57c[_0x316744(0x149)]&&(this[_0x316744(0x105)]['debug'](_0x5cd266['bhYPS']),AutomationFramework[_0x316744(0x122)](_0x5987bf,PuppeteerDriverModule[_0x316744(0x135)],_0x49f57c[_0x316744(0x149)]),_0x49f57c[_0x316744(0x161)]?(this[_0x316744(0x105)][_0x316744(0xa8)](_0x5cd266['nXEhd']),AutomationFramework[_0x316744(0x122)](_0x5987bf,PuppeteerDriverModule[_0x316744(0xd1)],_0x49f57c['testInfo']['id']||''),await this[_0x316744(0x114)](_0x5987bf,_0x49f57c['testInfo'])):this[_0x316744(0x105)][_0x316744(0xa8)](_0x5cd266[_0x316744(0x12e)]));if(_0x49f57c['browser']){this[_0x316744(0x105)]['debug'](_0x5cd266[_0x316744(0x109)]),AutomationFramework[_0x316744(0x122)](_0x5987bf,PuppeteerDriverModule[_0x316744(0xa2)],_0x49f57c[_0x316744(0x141)]);global[_0x316744(0xa4)]&&_0x5cd266[_0x316744(0x121)](Object['keys'](global[_0x316744(0xa4)])[_0x316744(0xb2)],0x0)&&(AutomationFramework[_0x316744(0x122)](_0x5987bf,PuppeteerDriverModule[_0x316744(0x111)],global[_0x316744(0xa4)]),this[_0x316744(0x105)][_0x316744(0xa8)](_0x5cd266[_0x316744(0x11e)]));if(_0x49f57c[_0x316744(0xed)])AutomationFramework[_0x316744(0x122)](_0x5987bf,PuppeteerDriverModule[_0x316744(0xfc)],_0x49f57c[_0x316744(0xed)]),this['logger'][_0x316744(0xa8)]('onAfterDriverCreate:\x20SessionId\x20set\x20from\x20args:\x20'+_0x49f57c['sessionId']);else{if(global[_0x316744(0x13d)])AutomationFramework['setState'](_0x5987bf,PuppeteerDriverModule[_0x316744(0xfc)],global[_0x316744(0x13d)]),this['logger']['debug'](_0x316744(0x151)+global[_0x316744(0x13d)]);else try{const _0xa10b0c=_0x49f57c['page']||AutomationFramework[_0x316744(0x8a)](_0x5987bf,PuppeteerDriverModule[_0x316744(0x135)]);if(_0xa10b0c){const _0x2b4401=await _0xa10b0c[_0x316744(0x117)](_0x5beb42=>{},_0x5cd266[_0x316744(0x102)]);if(_0x2b4401){const _0x205464=_0x5cd266[_0x316744(0x143)](typeof _0x2b4401,_0x5cd266[_0x316744(0x103)])?JSON['parse'](_0x2b4401):_0x2b4401;_0x205464&&_0x205464[_0x316744(0x91)]&&(AutomationFramework[_0x316744(0x122)](_0x5987bf,PuppeteerDriverModule['KEY_SESSION_ID'],_0x205464['hashed_id']),global[_0x316744(0x13d)]=_0x205464[_0x316744(0x91)],this[_0x316744(0x105)][_0x316744(0xa8)](_0x316744(0x11b)+_0x205464['hashed_id']));}}}catch(_0x9189d){this['logger']['debug'](_0x316744(0xc1)+util[_0x316744(0xf3)](_0x9189d));if(_0x49f57c['browser'][_0x316744(0xc8)]&&_0x49f57c[_0x316744(0x141)][_0x316744(0xc8)]['_url'])try{const _0x96b6fb=_0x49f57c[_0x316744(0x141)][_0x316744(0xc8)][_0x316744(0x13b)];AutomationFramework[_0x316744(0x122)](_0x5987bf,PuppeteerDriverModule[_0x316744(0xfc)],_0x96b6fb),this[_0x316744(0x105)][_0x316744(0xa8)](_0x316744(0xe5)+_0x96b6fb);}catch(_0x4be0b9){this[_0x316744(0x105)][_0x316744(0xa8)](_0x316744(0xc0)+util[_0x316744(0xf3)](_0x4be0b9));}}}}}catch(_0x37a454){this[_0x316744(0x105)][_0x316744(0xb9)]('Error\x20in\x20onAfterDriverCreate:\x20'+util[_0x316744(0xf3)](_0x37a454));}}async[a90_0x3bfe3f(0x167)](_0x3982b7){const _0x1121f4=a90_0x3bfe3f,_0x136af3={'OPhvH':_0x1121f4(0xe3),'ssPip':_0x1121f4(0x145),'IvtNK':'unknown','PSrwb':'Unknown\x20Test','ZYmbq':function(_0x503c9e,_0x1beae8){return _0x503c9e>_0x1beae8;},'BYwwX':function(_0x2a5272,_0x25e573){return _0x2a5272===_0x25e573;},'PdrGp':_0x1121f4(0xbe),'BWshL':function(_0x20c0ef,_0x44ec2a){return _0x20c0ef===_0x44ec2a;},'GyWXb':_0x1121f4(0x137),'ZlvBf':function(_0x2f4ee7,_0x28bf75){return _0x2f4ee7===_0x28bf75;},'OVaRQ':_0x1121f4(0x10a),'dGjXf':_0x1121f4(0xc3),'wypWJ':_0x1121f4(0x14c),'ugpSZ':_0x1121f4(0xb0),'Ngimx':function(_0x2a97d3,_0x100f5a){return _0x2a97d3(_0x100f5a);},'fiJMb':'Puppeteer','jkrlh':function(_0x74c4d3){return _0x74c4d3();},'NRyNa':function(_0x27473d,_0xa739b1){return _0x27473d>_0xa739b1;},'qmnfz':'base64','NqDGg':'Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20','UyfsA':_0x1121f4(0xb3)};this[_0x1121f4(0x105)][_0x1121f4(0xa8)](_0x136af3[_0x1121f4(0x9e)]);const _0x64a62=_0x3982b7[_0x1121f4(0xa5)];if(!_0x64a62){this['logger'][_0x1121f4(0xa8)](_0x136af3[_0x1121f4(0xcb)]);return;}try{const _0x4e7f95=_0x3982b7[_0x1121f4(0x161)],_0x1b84d9=_0x3982b7[_0x1121f4(0xac)];let _0x5a9d39=_0x3982b7[_0x1121f4(0xda)],_0x59ac81=_0x136af3[_0x1121f4(0x14a)],_0x2c737d=_0x136af3[_0x1121f4(0x97)],_0x1ce345=null;_0x4e7f95&&(_0x59ac81=_0x4e7f95[_0x1121f4(0x101)]||_0x1b84d9?.[_0x1121f4(0x9b)]||_0x136af3[_0x1121f4(0x14a)],_0x2c737d=_0x4e7f95['name']||_0x4e7f95[_0x1121f4(0xf6)]||_0x1b84d9?.[_0x1121f4(0xce)]||_0x1b84d9?.[_0x1121f4(0xf6)]||_0x136af3[_0x1121f4(0x97)],_0x1ce345=_0x4e7f95[_0x1121f4(0x16d)]||_0x4e7f95[_0x1121f4(0xb9)]?.['message']||null,_0x1b84d9?.[_0x1121f4(0x139)]&&_0x136af3[_0x1121f4(0x148)](_0x1b84d9[_0x1121f4(0x139)][_0x1121f4(0xb2)],0x0)&&(_0x1ce345=_0x1ce345||_0x1b84d9[_0x1121f4(0x139)][_0x1121f4(0xc9)](_0x376603=>_0x376603[_0x1121f4(0x16b)]||_0x376603)[_0x1121f4(0x15f)]('\x0a')));let _0x4726ce=null;if(_0x136af3['BYwwX'](_0x59ac81,_0x136af3['PdrGp']))_0x4726ce=_0x136af3[_0x1121f4(0xc2)];else{if(_0x136af3[_0x1121f4(0xd2)](_0x59ac81,_0x136af3[_0x1121f4(0x173)])||_0x136af3[_0x1121f4(0x10e)](_0x59ac81,_0x136af3[_0x1121f4(0x112)])||_0x136af3[_0x1121f4(0xdc)](_0x59ac81,_0x136af3[_0x1121f4(0xb4)]))_0x4726ce=_0x136af3[_0x1121f4(0x173)];else(_0x136af3[_0x1121f4(0xdc)](_0x59ac81,_0x136af3[_0x1121f4(0xc6)])||_0x136af3[_0x1121f4(0xdc)](_0x59ac81,_0x136af3['ugpSZ']))&&(_0x4726ce=_0x136af3[_0x1121f4(0xc6)]);}this[_0x1121f4(0xd3)]&&_0x136af3[_0x1121f4(0x10e)](this[_0x1121f4(0xd3)][_0x1121f4(0xce)],FRAMEWORKS[_0x1121f4(0xfb)])?(_0x5a9d39=this[_0x1121f4(0x95)][_0x1121f4(0x146)](_0x4e7f95,_0x5a9d39),this[_0x1121f4(0x105)][_0x1121f4(0xa8)](_0x1121f4(0x174)+_0x5a9d39)):_0x5a9d39=_0x1b84d9?.['id']||_0x1b84d9?.[_0x1121f4(0xe4)]||process['pid']+':testAnalyticsId';const _0x2c8255=TestInfo[_0x1121f4(0x165)](_0x5a9d39),_0x2a1f1d=AutomationFramework[_0x1121f4(0x8a)](_0x64a62,PuppeteerDriverModule[_0x1121f4(0x99)])||global['__bstackPlatformIndex'],_0x19a206=_0x2c8255?.[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]||this[_0x1121f4(0xd3)]&&this[_0x1121f4(0xd3)][_0x1121f4(0xce)],_0x253790=_0x2c8255?.[TestFrameworkConstants[_0x1121f4(0x15a)]]||this[_0x1121f4(0xd3)]&&this['testFrameworkData']['version'],_0x6a2de=TestFrameworkState[_0x1121f4(0x15e)]['toString']()['split']('.')[0x1],_0x22f9e8=HookState[_0x1121f4(0xe9)][_0x1121f4(0xa1)]()[_0x1121f4(0x154)]('.')[0x1],_0x165ba8=_0x64a62[_0x1121f4(0x12b)](),_0x484681=AutomationFramework[_0x1121f4(0x8a)](_0x64a62,PuppeteerDriverModule[_0x1121f4(0xe0)],'')||BrowserstackCLI[_0x1121f4(0x86)]()[_0x1121f4(0xf9)]()?.['hubUrl']||'',_0x475321=AutomationFramework[_0x1121f4(0x8a)](_0x64a62,PuppeteerDriverModule[_0x1121f4(0xfc)],'')||global['__bstackSessionId']||'',_0x4d42c8={'provider':_0x136af3[_0x1121f4(0xe1)](getPlaywrightProvider,_0x484681),'frameworkName':_0x136af3[_0x1121f4(0xdb)],'frameworkVersion':this[_0x1121f4(0x119)]||'','frameworkSessionId':LoadTestModule[_0x1121f4(0x110)]()?LoadTestModule['getLTSSessionId']():_0x475321,'ref':PuppeteerDriverModule[_0x1121f4(0x82)]||_0x64a62['getRef'](),'hubUrl':_0x484681,'product':_0x136af3['jkrlh'](getProductForSession)};let _0x209fb1=AutomationFramework[_0x1121f4(0x8a)](_0x64a62,PuppeteerDriverModule[_0x1121f4(0x111)],null)||global[_0x1121f4(0xa4)]||global[_0x1121f4(0x12d)]||{};_0x209fb1&&_0x136af3[_0x1121f4(0x147)](Object['keys'](_0x209fb1)[_0x1121f4(0xb2)],0x0)?_0x209fb1=Buffer[_0x1121f4(0x171)](JSON[_0x1121f4(0x128)](_0x209fb1))[_0x1121f4(0xa1)](_0x136af3[_0x1121f4(0xab)]):_0x209fb1=Buffer[_0x1121f4(0x171)](JSON['stringify']({}))['toString'](_0x136af3[_0x1121f4(0xab)]);const _0x2c3504={'hash':_0x165ba8[_0x1121f4(0x104)](),'threadId':_0x165ba8[_0x1121f4(0x152)]()[_0x1121f4(0xa1)](),'processId':_0x165ba8[_0x1121f4(0xb8)]()[_0x1121f4(0xa1)]()},_0x4773de={};_0x4773de[_0x1121f4(0xb1)]=_0x2a1f1d,_0x4773de['testFrameworkName']=_0x19a206,_0x4773de['testFrameworkVersion']=_0x253790,_0x4773de[_0x1121f4(0x11a)]=_0x6a2de,_0x4773de[_0x1121f4(0xf5)]=_0x22f9e8,_0x4773de['test_identifier']=_0x5a9d39,_0x4773de['automationSession']=_0x4d42c8,_0x4773de[_0x1121f4(0xa0)]=_0x209fb1,_0x4773de['executionContext']=_0x2c3504;const _0x447054=_0x4773de;this[_0x1121f4(0x105)][_0x1121f4(0xa8)](_0x1121f4(0x155)+util[_0x1121f4(0xf3)](_0x447054)),GrpcClient[_0x1121f4(0x86)]()[_0x1121f4(0xaa)](_0x447054),this[_0x1121f4(0x105)]['debug'](_0x1121f4(0xc4)+_0x5a9d39);if(!_0x4726ce){this['logger'][_0x1121f4(0xa8)](_0x136af3[_0x1121f4(0xd7)],_0x59ac81);return;}this[_0x1121f4(0x105)]['debug'](_0x136af3[_0x1121f4(0xde)]),_0x4e7f95&&await this[_0x1121f4(0x114)](_0x64a62,_0x4e7f95),await this[_0x1121f4(0x129)](_0x64a62,_0x2c737d,_0x4726ce,_0x1ce345);}catch(_0x1fa467){this[_0x1121f4(0x105)][_0x1121f4(0xb9)](_0x1121f4(0x163)+util[_0x1121f4(0xf3)](_0x1fa467));}}async[a90_0x3bfe3f(0xcf)](_0x28c87c){const _0x32281e=a90_0x3bfe3f,_0xd58fd={};_0xd58fd[_0x32281e(0x14e)]='onBeforeQuit:\x20Puppeteer\x20driver\x20is\x20about\x20to\x20quit',_0xd58fd[_0x32281e(0xf4)]=_0x32281e(0x130),_0xd58fd[_0x32281e(0x10d)]=_0x32281e(0x138);const _0x51d2b9=_0xd58fd;try{this[_0x32281e(0x105)][_0x32281e(0xa8)](_0x51d2b9[_0x32281e(0x14e)]);const _0x1694b4=_0x28c87c[_0x32281e(0xa5)];if(!_0x1694b4){this[_0x32281e(0x105)][_0x32281e(0xa8)](_0x51d2b9[_0x32281e(0xf4)]);return;}AutomationFramework[_0x32281e(0x122)](_0x1694b4,PuppeteerDriverModule[_0x32281e(0x135)],null),AutomationFramework[_0x32281e(0x122)](_0x1694b4,PuppeteerDriverModule['KEY_BROWSER_OBJECT'],null),this[_0x32281e(0x105)][_0x32281e(0xa8)](_0x51d2b9[_0x32281e(0x10d)]);}catch(_0x153693){this[_0x32281e(0x105)][_0x32281e(0xb9)](_0x32281e(0x127)+util[_0x32281e(0xf3)](_0x153693));}}async[a90_0x3bfe3f(0x114)](_0xab39ac,_0x2dd255){const _0x1a013c=a90_0x3bfe3f,_0x8c3fa8={};_0x8c3fa8['buejs']=_0x1a013c(0x16e),_0x8c3fa8[_0x1a013c(0x133)]='markSessionName:\x20Page\x20object\x20is\x20not\x20available',_0x8c3fa8[_0x1a013c(0x14f)]='setSessionName';const _0x5e09fc=_0x8c3fa8;try{if(CLIUtils[_0x1a013c(0xc5)](BrowserstackCLI[_0x1a013c(0x86)]()[_0x1a013c(0xf9)]())){this[_0x1a013c(0x105)][_0x1a013c(0xa8)](_0x5e09fc[_0x1a013c(0xd6)]);return;}const _0x4a3ed5=AutomationFramework[_0x1a013c(0x8a)](_0xab39ac,PuppeteerDriverModule[_0x1a013c(0x135)]);if(!_0x4a3ed5){this[_0x1a013c(0x105)][_0x1a013c(0xa8)](_0x5e09fc[_0x1a013c(0x133)]);return;}const _0x2ed65a=_0x2dd255[_0x1a013c(0xce)]||_0x2dd255[_0x1a013c(0xf6)]||_0x2dd255[_0x1a013c(0x164)],_0x465837={};_0x465837['name']=_0x2ed65a;const _0x357caf={};_0x357caf[_0x1a013c(0x16a)]=_0x5e09fc[_0x1a013c(0x14f)],_0x357caf['arguments']=_0x465837;const _0x18f94a=_0x357caf;PerformanceTester[_0x1a013c(0x136)](PerformanceEvents['SESSION_NAME']),await this[_0x1a013c(0xef)](_0x4a3ed5,_0x18f94a),PerformanceTester[_0x1a013c(0x158)](PerformanceEvents[_0x1a013c(0xaf)]);}catch(_0x4d0aee){PerformanceTester[_0x1a013c(0x158)](PerformanceEvents[_0x1a013c(0xaf)],![],util['format'](_0x4d0aee)),this[_0x1a013c(0x105)][_0x1a013c(0xb9)](_0x1a013c(0x83)+util['format'](_0x4d0aee));}}async['markSessionStatus'](_0x1cf802,_0x59058c,_0x318a7f,_0x2df1f6){const _0x257c08=a90_0x3bfe3f,_0x9ce05e={};_0x9ce05e[_0x257c08(0x153)]=_0x257c08(0x107),_0x9ce05e[_0x257c08(0x11d)]='markSessionStatus:\x20Automation\x20instance\x20is\x20not\x20available',_0x9ce05e[_0x257c08(0xbf)]=_0x257c08(0xf0),_0x9ce05e[_0x257c08(0x9d)]='Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20',_0x9ce05e['xGFoe']=_0x257c08(0xe6),_0x9ce05e[_0x257c08(0xca)]=_0x257c08(0x150),_0x9ce05e['hApii']=_0x257c08(0xae);const _0x4bbc55=_0x9ce05e;if(CLIUtils[_0x257c08(0xa7)](BrowserstackCLI[_0x257c08(0x86)]()['getConfig']())){this[_0x257c08(0x105)][_0x257c08(0xa8)](_0x4bbc55[_0x257c08(0x153)]);return;}const _0x5a6569=_0x1cf802;if(!_0x5a6569){this['logger']['debug'](_0x4bbc55[_0x257c08(0x11d)]);return;}const _0x3ffcbb=AutomationFramework[_0x257c08(0x8a)](_0x5a6569,PuppeteerDriverModule['KEY_PAGE_OBJECT']);if(!_0x3ffcbb){this[_0x257c08(0x105)][_0x257c08(0xa8)](_0x4bbc55[_0x257c08(0xbf)]);return;}if(!_0x318a7f){this[_0x257c08(0x105)][_0x257c08(0xa8)](_0x4bbc55[_0x257c08(0x9d)],_0x318a7f);return;}const _0x55828b={};_0x55828b[_0x257c08(0x101)]=_0x318a7f;const _0x558e51={};_0x558e51[_0x257c08(0x16a)]=_0x4bbc55[_0x257c08(0x16f)],_0x558e51[_0x257c08(0x84)]=_0x55828b;const _0x5f2630=_0x558e51;_0x2df1f6&&(_0x5f2630[_0x257c08(0x84)][_0x4bbc55[_0x257c08(0xca)]]=_0x2df1f6),PerformanceTester[_0x257c08(0x136)](PerformanceEvents[_0x257c08(0xad)]),this[_0x257c08(0x105)][_0x257c08(0xa8)](_0x4bbc55['hApii']),await this['puppeteerBstackExecutor'](_0x3ffcbb,_0x5f2630),PerformanceTester[_0x257c08(0x158)](PerformanceEvents[_0x257c08(0xad)]);}async[a90_0x3bfe3f(0xef)](_0x2d0123,_0x15188c){const _0x2884ef=a90_0x3bfe3f,_0x238cab={'xTDgM':function(_0x296090,_0x57bc8a,_0xa012ec){return _0x296090(_0x57bc8a,_0xa012ec);},'YFVOV':function(_0x2eee62,_0xae78ef){return _0x2eee62(_0xae78ef);}};try{const _0x17ea28=0x3a98,_0x1e615d=_0x2884ef(0xeb)+JSON[_0x2884ef(0x128)](_0x15188c),_0x408d94=_0x2d0123['evaluate'](_0x464c53=>{},_0x1e615d);let _0x2e4b5c;await Promise[_0x2884ef(0x90)]([_0x408d94,new Promise((_0x332584,_0x18f853)=>{const _0x417d9e=_0x2884ef;_0x2e4b5c=_0x238cab[_0x417d9e(0x98)](setTimeout,()=>_0x18f853(new Error(_0x417d9e(0x8d)+_0x17ea28+'ms')),_0x17ea28);})])[_0x2884ef(0x12a)](()=>{_0x238cab['YFVOV'](clearTimeout,_0x2e4b5c);});}catch(_0x35f959){this['logger']['debug'](_0x2884ef(0xd4)+(_0x35f959['message']||_0x35f959));}}}function a90_0x2c75(){const _0x1ca747=['shouldSkipSessionStatus','debug','onAfterDriverCreate:\x20Stored\x20full\x20W3C\x20capabilities\x20from\x20DriverInit\x20response','testSessionEvent','qmnfz','test','SESSION_STATUS','markSessionStatus:\x20Marking\x20session\x20status','SESSION_NAME','skip','platformIndex','length','Automation\x20onAfterTest:\x20Setting\x20session\x20name\x20and\x20status','dGjXf','puppeteer_page','rIdZP','onAfterDriverCreate:\x20No\x20testInfo\x20available\x20(browser\x20created\x20outside\x20test\x20context).\x20Session\x20name\x20will\x20be\x20deferred\x20to\x20executeDeferredCloses.','getProcessId','error','QUIT','MNLki','string','PUPPETEER','passed','RPJsb','onAfterDriverCreate:\x20Could\x20not\x20extract\x20sessionId:\x20','onAfterDriverCreate:\x20Could\x20not\x20extract\x20sessionId\x20via\x20page.evaluate:\x20','PdrGp','timedOut','onAfterTest\x20CBTSession\x20complete\x20for\x20testIdentifier:\x20','shouldSkipSessionName','wypWJ','../cliUtils.js','_connection','map','DHfUP','ssPip','CREATE','keys','name','onBeforeQuit','add','KEY_TEST_ID','BWshL','testFrameworkData','Error\x20in\x20puppeteerBstackExecutor:\x20','../state/automationFrameworkState.js','buejs','NqDGg','4790YwbaVQ','gRNAK','testIdentifier','fiJMb','BYwwX','../state/testFrameworkState','UyfsA','onAfterDriverCreate:\x20Puppeteer\x20driver\x20has\x20been\x20created\x20','KEY_HUB_URL','Ngimx','browserName','Automation\x20onAfterTest:\x20Test\x20completed','uuid','onAfterDriverCreate:\x20SessionId\x20set\x20from\x20WebSocket\x20URL:\x20','setSessionStatus','../browserstackCLI.js','puppeteer_platform_index','POST','onAfterDriverCreate:\x20Error\x20extracting\x20caps\x20from\x20driverInit\x20response:\x20','browserstack_executor:\x20','10DgxTgg','sessionId','bind','puppeteerBstackExecutor','markSessionStatus:\x20Page\x20object\x20is\x20not\x20available','getHubUrl','hubUrl','format','uHzga','testHookState','title','WzuMv','176logfSQ','getConfig','getCapabilities','JEST','KEY_SESSION_ID','onAfterDriverCreate','uITDt','object','39486VokOmN','status','pINFl','ESSop','getId','logger','onBeforeDriverCreate','markSessionStatus:\x20Skipping\x20session\x20status\x20marking','onAfterDriverCreate:\x20Setting\x20browser\x20object','xyVGA','timedout','7bwkGlD','../framework/automationFramework.js','mSqzV','ZlvBf','PRE','isLTSSession','KEY_CAPABILITIES','OVaRQ','Error\x20in\x20onBeforeDriverCreate:\x20','markSessionName','onAfterDriverCreate:\x20driverInit\x20response\x20received','qdARs','evaluate','../../../helpers/test-observability/utils','puppeteerVersion','testFrameworkState','onAfterDriverCreate:\x20SessionId\x20extracted\x20via\x20browserstack_executor:\x20','platforms','gpani','GjlUk','onBeforeDriverCreate:\x20Puppeteer\x20driver\x20is\x20about\x20to\x20be\x20created','puppeteer_capabilities','uUOkZ','setState','1|3|5|7|0|9|11|2|8|6|4|10','./baseModule','1412Wtpqps','PuppeteerDriverModule','Error\x20in\x20onBeforeQuit:\x20','stringify','markSessionStatus','finally','getContext','onAfterDriverCreate:\x20Updated\x20capabilities\x20from\x20global.__launchCaps','__platformCaps','JQtBI','MODULE_NAME','onBeforeQuit:\x20No\x20automation\x20instance\x20available','../../../helpers/performance/performance-tester.js','values','AfCXG','onAfterDriverCreate:\x20driverInit\x20already\x20called\x20for\x20ref\x20','KEY_PAGE_OBJECT','start','failed','onBeforeQuit:\x20Cleanup\x20complete','errorsDetailed','eAPIl','_url','ref','__bstackSessionId','XZQKc','1049192iJGBxp','browserVersion','browser','userInputParams','FlhHn','324204CufClq','Automation\x20onAfterTest:\x20Automation\x20instance\x20is\x20not\x20available','recreateIdentifierFromTestInfo','NRyNa','ZYmbq','page','IvtNK','GYKpV','skipped','lobsR','KADzt','CFicX','reason','onAfterDriverCreate:\x20SessionId\x20set\x20from\x20global:\x20','getThreadId','MifNO','split','onAfterTest\x20CBTSession\x20payload:\x20','KEY_PLATFORM_DETAILS','has','end','getModuleName','KEY_TEST_FRAMEWORK_VERSION','../../../helpers/classLogger.js','168747bVLizo','parse','TEST','join','AUTOMATE_EVENTS','testInfo','../framework/constants/testFrameworkConstants.js','Error\x20in\x20onAfterTest:\x20','fullName','getTestDetails','ceDsQ','onAfterTest','1704018rIMhez','_driverInitCalledForRef','action','message','driverInit','failureMessage','markSessionName:\x20Skipping\x20session\x20name\x20marking','xGFoe','onAfterDriverCreate:\x20Setting\x20Session\x20Name\x20from\x20testInfo','from','isBuffer','GyWXb','Automation\x20onAfterTest:\x20Recreated\x20Jest\x20testIdentifier:\x20','_driverInitRef','Error\x20in\x20markSessionName:\x20','arguments','browserstack_executor:\x20{\x22action\x22:\x22getSessionDetails\x22}','getInstance','testRunId','../framework/testFramework.js','isPuppeteer','getState','utf8','puppeteer_hub_url','browserstack_executor\x20timeout\x20after\x20','registerObserver','3166209adYgeL','race','hashed_id',',\x20skipping\x20duplicate','19xpHCNi','EIHGl','jestUtils','puppeteer_platform_details','PSrwb','xTDgM','KEY_PLATFORM_INDEX','util','result','../../utils/constants','HRrRd','OPhvH','onAfterDriverCreate:\x20Extracted\x20capabilities\x20from\x20driverInit\x20response:\x20','capabilities','toString','KEY_BROWSER_OBJECT','../../../helpers/helper.js','__launchCaps','instance','puppeteer_session_id'];a90_0x2c75=function(){return _0x1ca747;};return a90_0x2c75();}function a90_0x57fa(_0x5d7452,_0x88452b){const _0x2c75ce=a90_0x2c75();return a90_0x57fa=function(_0x57fa36,_0x1d5401){_0x57fa36=_0x57fa36-0x82;let _0x148fd5=_0x2c75ce[_0x57fa36];return _0x148fd5;},a90_0x57fa(_0x5d7452,_0x88452b);}module['exports']=PuppeteerDriverModule;
|
|
1
|
+
const a90_0x2f8370=a90_0x2908;(function(_0x437d72,_0x162e33){const _0x5e8e69=a90_0x2908,_0x3c551c=_0x437d72();while(!![]){try{const _0x366034=parseInt(_0x5e8e69(0x13d))/0x1+-parseInt(_0x5e8e69(0x1d9))/0x2+-parseInt(_0x5e8e69(0x14f))/0x3*(parseInt(_0x5e8e69(0x1c5))/0x4)+parseInt(_0x5e8e69(0x166))/0x5*(parseInt(_0x5e8e69(0x176))/0x6)+parseInt(_0x5e8e69(0x138))/0x7+-parseInt(_0x5e8e69(0x156))/0x8+parseInt(_0x5e8e69(0x1d8))/0x9;if(_0x366034===_0x162e33)break;else _0x3c551c['push'](_0x3c551c['shift']());}catch(_0x3225bb){_0x3c551c['push'](_0x3c551c['shift']());}}}(a90_0x4bb3,0x249ca));const util=require(a90_0x2f8370(0x150)),BaseModule=require(a90_0x2f8370(0x129)),{createClassLogger}=require(a90_0x2f8370(0x16b)),{getFrameworkVersion}=require('../../../helpers/test-observability/utils'),helper=require(a90_0x2f8370(0x154)),{FRAMEWORKS}=require(a90_0x2f8370(0x14e)),AutomationFramework=require(a90_0x2f8370(0x1a3)),AutomationFrameworkState=require(a90_0x2f8370(0x128)),HookState=require(a90_0x2f8370(0x125)),{nestedKeyValue,playwrightBstackJsExecutor}=require(a90_0x2f8370(0x17e)),CLIUtils=require('../cliUtils.js'),BrowserstackCLI=require('../browserstackCLI.js'),GrpcClient=require(a90_0x2f8370(0x1b3)),PerformanceTester=require(a90_0x2f8370(0x127)),PerformanceEvents=require(a90_0x2f8370(0x17d))[a90_0x2f8370(0x1e6)],TestInfo=require(a90_0x2f8370(0x13a)),{getPlaywrightProvider,getProductForSession}=require(a90_0x2f8370(0x17e)),LoadTestModule=require(a90_0x2f8370(0x1b6)),TestFrameworkConstants=require('../framework/constants/testFrameworkConstants.js'),TestFrameworkState=require(a90_0x2f8370(0x12e)),JestUtils=require(a90_0x2f8370(0x1fb)),TestFramework=require(a90_0x2f8370(0x204));function a90_0x2908(_0x2f4297,_0x3d074c){const _0x4bb3bb=a90_0x4bb3();return a90_0x2908=function(_0x290886,_0x16a161){_0x290886=_0x290886-0x123;let _0x3a2c71=_0x4bb3bb[_0x290886];return _0x3a2c71;},a90_0x2908(_0x2f4297,_0x3d074c);}class PuppeteerDriverModule extends BaseModule{static [a90_0x2f8370(0x174)]=a90_0x2f8370(0x148);static ['KEY_PAGE_OBJECT']=a90_0x2f8370(0x1d2);static [a90_0x2f8370(0x1c4)]='puppeteer_session_id';static [a90_0x2f8370(0x1fd)]='puppeteer_platform_index';static ['KEY_CAPABILITIES']=a90_0x2f8370(0x1a5);static [a90_0x2f8370(0x1c0)]='puppeteer_hub_url';static [a90_0x2f8370(0x1f5)]='puppeteer_platform_details';static ['KEY_TEST_ID']=a90_0x2f8370(0x1cb);static [a90_0x2f8370(0x164)]=a90_0x2f8370(0x1be);static [a90_0x2f8370(0x17c)]=new Set();static [a90_0x2f8370(0x149)]=null;['logger']=createClassLogger(a90_0x2f8370(0x1be));constructor(_0x2b3c23=null){const _0x27d336=a90_0x2f8370,_0x1864c0={};_0x1864c0['DofpL']=_0x27d336(0x142),_0x1864c0['FYGVj']=_0x27d336(0x1be);const _0x141d27=_0x1864c0,_0xde47fa=_0x141d27[_0x27d336(0x1d7)][_0x27d336(0x171)]('|');let _0x4f4d41=0x0;while(!![]){switch(_0xde47fa[_0x4f4d41++]){case'0':this['browserVersion']=null;continue;case'1':AutomationFramework[_0x27d336(0x1c9)](AutomationFrameworkState[_0x27d336(0x1db)],HookState['PRE'],this[_0x27d336(0x1ab)]['bind'](this));continue;case'2':this['browserName']=null;continue;case'3':AutomationFramework[_0x27d336(0x1c9)](AutomationFrameworkState[_0x27d336(0x1db)],HookState[_0x27d336(0x13c)],this[_0x27d336(0x139)][_0x27d336(0x178)](this));continue;case'4':this[_0x27d336(0x172)]=null;continue;case'5':AutomationFramework[_0x27d336(0x1c9)](AutomationFrameworkState[_0x27d336(0x1e9)],HookState[_0x27d336(0x124)],this[_0x27d336(0x145)]['bind'](this));continue;case'6':this[_0x27d336(0x126)]=new JestUtils();continue;case'7':super(_0x2b3c23);continue;case'8':this[_0x27d336(0x173)]=[];continue;case'9':this[_0x27d336(0x1b1)]=_0x141d27[_0x27d336(0x15e)];continue;case'10':this['testRunId']=null;continue;case'11':TestFramework['registerObserver'](TestFrameworkState[_0x27d336(0x1b8)],HookState[_0x27d336(0x13c)],this[_0x27d336(0x1a9)][_0x27d336(0x178)](this));continue;}break;}}[a90_0x2f8370(0x168)](){return PuppeteerDriverModule['MODULE_NAME'];}async[a90_0x2f8370(0x1ab)](_0x4d040a){const _0x4db588=a90_0x2f8370,_0x5079c0={};_0x5079c0[_0x4db588(0x161)]=_0x4db588(0x1b5),_0x5079c0[_0x4db588(0x1d3)]='base64',_0x5079c0[_0x4db588(0x177)]=_0x4db588(0x1e8),_0x5079c0[_0x4db588(0x196)]=_0x4db588(0x1a1),_0x5079c0[_0x4db588(0x1bb)]=function(_0x5295f9,_0x3de18b){return _0x5295f9===_0x3de18b;},_0x5079c0['RFUKq']='object',_0x5079c0[_0x4db588(0x1df)]=function(_0x1c056e,_0x514ae2){return _0x1c056e!==_0x514ae2;},_0x5079c0[_0x4db588(0x146)]=function(_0x5b1b73,_0x1d8454){return _0x5b1b73===_0x1d8454;},_0x5079c0[_0x4db588(0x192)]='string',_0x5079c0['coZtS']=function(_0x9cb10b,_0x1bb1ba){return _0x9cb10b>_0x1bb1ba;},_0x5079c0[_0x4db588(0x201)]=_0x4db588(0x1d1);const _0x428c79=_0x5079c0;try{this[_0x4db588(0x13e)]['debug'](_0x428c79['KGWHz']);const _0x4f27a8=_0x4d040a[_0x4db588(0x14c)],_0x214487=_0x4d040a[_0x4db588(0x1ca)];AutomationFramework['setState'](_0x4d040a[_0x4db588(0x12a)],PuppeteerDriverModule['KEY_CAPABILITIES'],_0x4f27a8),AutomationFramework[_0x4db588(0x182)](_0x4d040a['instance'],PuppeteerDriverModule[_0x4db588(0x1c0)],_0x214487);const _0x2db39c=_0x4d040a[_0x4db588(0x12a)]['getRef'](),_0x2983b5=global['__bstackPlatformIndex']||0x0;AutomationFramework[_0x4db588(0x182)](_0x4d040a[_0x4db588(0x12a)],PuppeteerDriverModule[_0x4db588(0x1fd)],_0x2983b5);if(PuppeteerDriverModule[_0x4db588(0x17c)]['has'](_0x2db39c))this[_0x4db588(0x13e)][_0x4db588(0x198)](_0x4db588(0x1f3)+_0x2db39c+_0x4db588(0x162));else{PuppeteerDriverModule[_0x4db588(0x17c)]['add'](_0x2db39c),PuppeteerDriverModule[_0x4db588(0x149)]=_0x2db39c;const _0x53deb6={..._0x4f27a8};_0x53deb6['isPuppeteer']=!![];const _0x51489b=Buffer[_0x4db588(0x1ea)](JSON['stringify'](_0x53deb6)[_0x4db588(0x133)](_0x428c79['ORMtu'])),_0x31b8e7={};_0x31b8e7[_0x4db588(0x18f)]=_0x2983b5,_0x31b8e7['ref']=_0x2db39c,_0x31b8e7['userInputParams']=_0x51489b,_0x31b8e7[_0x4db588(0x1ca)]=_0x214487;const _0x2722e4=await GrpcClient[_0x4db588(0x16d)]()[_0x4db588(0x1f9)](_0x31b8e7);this[_0x4db588(0x13e)]['debug'](_0x428c79['vBMRW']);if(_0x2722e4)try{const _0x35ec74=_0x2722e4[_0x4db588(0x1a0)]?_0x2722e4[_0x4db588(0x1a0)]():_0x2722e4['capabilities'];if(_0x35ec74){let _0x2f3528;if(Buffer[_0x4db588(0x15b)](_0x35ec74))_0x2f3528=JSON['parse'](_0x35ec74[_0x4db588(0x133)](_0x428c79[_0x4db588(0x196)]));else{if(_0x428c79[_0x4db588(0x1bb)](typeof _0x35ec74,_0x428c79[_0x4db588(0x1a2)])&&_0x428c79[_0x4db588(0x1df)](_0x35ec74,null)){const _0x2d81b2=Buffer[_0x4db588(0x1ea)](Object['values'](_0x35ec74));_0x2f3528=JSON[_0x4db588(0x19a)](_0x2d81b2[_0x4db588(0x133)](_0x428c79[_0x4db588(0x196)]));}else _0x428c79[_0x4db588(0x146)](typeof _0x35ec74,_0x428c79[_0x4db588(0x192)])?_0x2f3528=JSON[_0x4db588(0x19a)](_0x35ec74):_0x2f3528=_0x35ec74;}this[_0x4db588(0x13e)]['debug'](_0x4db588(0x1d6)+JSON[_0x4db588(0x130)](_0x2f3528)),_0x2f3528&&_0x428c79[_0x4db588(0x179)](Object[_0x4db588(0x1ba)](_0x2f3528)[_0x4db588(0x180)],0x0)&&(AutomationFramework[_0x4db588(0x182)](_0x4d040a[_0x4db588(0x12a)],PuppeteerDriverModule[_0x4db588(0x1bd)],_0x2f3528),global[_0x4db588(0x1fe)]=_0x2f3528,this[_0x4db588(0x13e)][_0x4db588(0x198)](_0x428c79[_0x4db588(0x201)]));}const _0x5c38ba=_0x2722e4[_0x4db588(0x1d4)]?_0x2722e4[_0x4db588(0x1d4)]():_0x2722e4[_0x4db588(0x1ca)];_0x5c38ba&&AutomationFramework[_0x4db588(0x182)](_0x4d040a[_0x4db588(0x12a)],PuppeteerDriverModule['KEY_HUB_URL'],_0x5c38ba);}catch(_0xe7a7d5){this['logger'][_0x4db588(0x198)](_0x4db588(0x18e)+util[_0x4db588(0x1ac)](_0xe7a7d5));}}}catch(_0x1d93cc){this[_0x4db588(0x13e)][_0x4db588(0x167)]('Error\x20in\x20onBeforeDriverCreate:\x20'+util[_0x4db588(0x1ac)](_0x1d93cc));}}async[a90_0x2f8370(0x139)](_0x1418b0){const _0xb64cd3=a90_0x2f8370,_0x4507c4={'xXPvJ':function(_0x1d96f5,_0xfd3f53){return _0x1d96f5(_0xfd3f53);},'POcuv':'onAfterDriverCreate:\x20Setting\x20page\x20object','pyYxm':_0xb64cd3(0x1ad),'RGjsQ':_0xb64cd3(0x1e0),'hHZKH':_0xb64cd3(0x155),'tALuB':function(_0x4d7c13,_0x516d70){return _0x4d7c13>_0x516d70;},'NfCQo':_0xb64cd3(0x1bf),'VuMSh':_0xb64cd3(0x12f),'VcqpT':function(_0x17d7e1,_0xe33843){return _0x17d7e1===_0xe33843;},'iYdBx':_0xb64cd3(0x194)};try{this[_0xb64cd3(0x13e)][_0xb64cd3(0x198)](_0xb64cd3(0x197)+JSON['stringify'](_0x1418b0));const _0x354f34=_0x1418b0[_0xb64cd3(0x12a)];this['puppeteerVersion']=_0x4507c4[_0xb64cd3(0x181)](getFrameworkVersion,FRAMEWORKS[_0xb64cd3(0x152)]);_0x1418b0[_0xb64cd3(0x1e2)]&&(this[_0xb64cd3(0x13e)]['debug'](_0x4507c4[_0xb64cd3(0x183)]),AutomationFramework[_0xb64cd3(0x182)](_0x354f34,PuppeteerDriverModule[_0xb64cd3(0x1fc)],_0x1418b0[_0xb64cd3(0x1e2)]),_0x1418b0['testInfo']?(this['logger'][_0xb64cd3(0x198)](_0x4507c4['pyYxm']),AutomationFramework[_0xb64cd3(0x182)](_0x354f34,PuppeteerDriverModule[_0xb64cd3(0x123)],_0x1418b0[_0xb64cd3(0x1cc)]['id']||''),await this['markSessionName'](_0x354f34,_0x1418b0[_0xb64cd3(0x1cc)])):this[_0xb64cd3(0x13e)][_0xb64cd3(0x198)](_0x4507c4[_0xb64cd3(0x1e7)]));if(_0x1418b0[_0xb64cd3(0x15a)]){this['logger'][_0xb64cd3(0x198)](_0x4507c4[_0xb64cd3(0x202)]),AutomationFramework[_0xb64cd3(0x182)](_0x354f34,PuppeteerDriverModule[_0xb64cd3(0x174)],_0x1418b0[_0xb64cd3(0x15a)]);global[_0xb64cd3(0x1fe)]&&_0x4507c4[_0xb64cd3(0x1bc)](Object['keys'](global[_0xb64cd3(0x1fe)])[_0xb64cd3(0x180)],0x0)&&(AutomationFramework[_0xb64cd3(0x182)](_0x354f34,PuppeteerDriverModule[_0xb64cd3(0x1bd)],global[_0xb64cd3(0x1fe)]),this[_0xb64cd3(0x13e)]['debug'](_0x4507c4[_0xb64cd3(0x1b7)]));if(_0x1418b0[_0xb64cd3(0x15c)])AutomationFramework[_0xb64cd3(0x182)](_0x354f34,PuppeteerDriverModule[_0xb64cd3(0x1c4)],_0x1418b0[_0xb64cd3(0x15c)]),this[_0xb64cd3(0x13e)][_0xb64cd3(0x198)](_0xb64cd3(0x1af)+_0x1418b0[_0xb64cd3(0x15c)]);else{if(global[_0xb64cd3(0x1c8)])AutomationFramework[_0xb64cd3(0x182)](_0x354f34,PuppeteerDriverModule[_0xb64cd3(0x1c4)],global['__bstackSessionId']),this[_0xb64cd3(0x13e)][_0xb64cd3(0x198)](_0xb64cd3(0x203)+global[_0xb64cd3(0x1c8)]);else try{const _0x204523=_0x1418b0[_0xb64cd3(0x1e2)]||AutomationFramework[_0xb64cd3(0x158)](_0x354f34,PuppeteerDriverModule['KEY_PAGE_OBJECT']);if(_0x204523){const _0x4af158=await _0x204523['evaluate'](_0xcf8d3c=>{},_0x4507c4[_0xb64cd3(0x131)]);if(_0x4af158){const _0x57b40d=_0x4507c4[_0xb64cd3(0x1b0)](typeof _0x4af158,_0x4507c4['iYdBx'])?JSON['parse'](_0x4af158):_0x4af158;_0x57b40d&&_0x57b40d[_0xb64cd3(0x15f)]&&(AutomationFramework[_0xb64cd3(0x182)](_0x354f34,PuppeteerDriverModule[_0xb64cd3(0x1c4)],_0x57b40d['hashed_id']),global['__bstackSessionId']=_0x57b40d[_0xb64cd3(0x15f)],this[_0xb64cd3(0x13e)][_0xb64cd3(0x198)]('onAfterDriverCreate:\x20SessionId\x20extracted\x20via\x20browserstack_executor:\x20'+_0x57b40d['hashed_id']));}}}catch(_0x43a598){this[_0xb64cd3(0x13e)][_0xb64cd3(0x198)]('onAfterDriverCreate:\x20Could\x20not\x20extract\x20sessionId\x20via\x20page.evaluate:\x20'+util['format'](_0x43a598));if(_0x1418b0['browser'][_0xb64cd3(0x13b)]&&_0x1418b0[_0xb64cd3(0x15a)]['_connection'][_0xb64cd3(0x1a8)])try{const _0x5c0a2d=_0x1418b0[_0xb64cd3(0x15a)][_0xb64cd3(0x13b)]['_url'];AutomationFramework[_0xb64cd3(0x182)](_0x354f34,PuppeteerDriverModule[_0xb64cd3(0x1c4)],_0x5c0a2d),this['logger'][_0xb64cd3(0x198)](_0xb64cd3(0x18b)+_0x5c0a2d);}catch(_0xb97fef){this[_0xb64cd3(0x13e)][_0xb64cd3(0x198)](_0xb64cd3(0x1c6)+util['format'](_0xb97fef));}}}}}catch(_0x467f14){this[_0xb64cd3(0x13e)]['error'](_0xb64cd3(0x199)+util['format'](_0x467f14));}}async[a90_0x2f8370(0x1a9)](_0x5ebb6b){const _0x1dbd9a=a90_0x2f8370,_0x5d46bd={'rTBrC':_0x1dbd9a(0x159),'dbTsH':_0x1dbd9a(0x1fa),'HsRWr':_0x1dbd9a(0x187),'wPOHm':'Unknown\x20Test','FWDLv':function(_0x2c3a2a,_0x118365){return _0x2c3a2a>_0x118365;},'zGRjf':function(_0x2891eb,_0x2f66a9){return _0x2891eb===_0x2f66a9;},'abpve':_0x1dbd9a(0x1e4),'rRMvf':_0x1dbd9a(0x18a),'lWueI':'timedout','XMAFR':_0x1dbd9a(0x19c),'fyFaG':function(_0x2a3c84,_0x531446){return _0x2a3c84===_0x531446;},'TtCqQ':_0x1dbd9a(0x1e5),'yotJQ':function(_0x2f8a56,_0x5366a1){return _0x2f8a56===_0x5366a1;},'qMxeb':_0x1dbd9a(0x193),'NVwZl':function(_0x267a01,_0x24305e){return _0x267a01===_0x24305e;},'laKJY':function(_0x444650,_0x1474be){return _0x444650(_0x1474be);},'TAeym':_0x1dbd9a(0x12b),'uheYX':function(_0xac6c80){return _0xac6c80();},'HbiZj':_0x1dbd9a(0x1d0),'aegJr':_0x1dbd9a(0x151),'KyfMB':_0x1dbd9a(0x1a7)};this['logger'][_0x1dbd9a(0x198)](_0x5d46bd[_0x1dbd9a(0x16e)]);const _0x72a6a2=_0x5ebb6b[_0x1dbd9a(0x12a)];if(!_0x72a6a2){this[_0x1dbd9a(0x13e)]['debug'](_0x5d46bd[_0x1dbd9a(0x1ae)]);return;}try{const _0x334d62=_0x5ebb6b[_0x1dbd9a(0x1cc)],_0x620b44=_0x5ebb6b[_0x1dbd9a(0x1f0)];let _0x93aed3=_0x5ebb6b[_0x1dbd9a(0x132)],_0x11b87e=_0x5d46bd[_0x1dbd9a(0x1c7)],_0x6d3c8b=_0x5d46bd['wPOHm'],_0x2ae69e=null;_0x334d62&&(_0x11b87e=_0x334d62[_0x1dbd9a(0x1ec)]||_0x620b44?.['result']||_0x5d46bd[_0x1dbd9a(0x1c7)],_0x6d3c8b=_0x334d62[_0x1dbd9a(0x1b1)]||_0x334d62['title']||_0x620b44?.['name']||_0x620b44?.['title']||_0x5d46bd[_0x1dbd9a(0x1cd)],_0x2ae69e=_0x334d62[_0x1dbd9a(0x134)]||_0x334d62['error']?.['message']||null,_0x620b44?.['errorsDetailed']&&_0x5d46bd[_0x1dbd9a(0x1c3)](_0x620b44[_0x1dbd9a(0x12c)][_0x1dbd9a(0x180)],0x0)&&(_0x2ae69e=_0x2ae69e||_0x620b44[_0x1dbd9a(0x12c)][_0x1dbd9a(0x165)](_0x5c6086=>_0x5c6086['message']||_0x5c6086)[_0x1dbd9a(0x188)]('\x0a')));let _0x5e2673=null;if(_0x5d46bd[_0x1dbd9a(0x1dd)](_0x11b87e,_0x5d46bd[_0x1dbd9a(0x186)]))_0x5e2673=_0x5d46bd[_0x1dbd9a(0x186)];else{if(_0x5d46bd[_0x1dbd9a(0x1dd)](_0x11b87e,_0x5d46bd[_0x1dbd9a(0x17f)])||_0x5d46bd[_0x1dbd9a(0x1dd)](_0x11b87e,_0x5d46bd['lWueI'])||_0x5d46bd['zGRjf'](_0x11b87e,_0x5d46bd['XMAFR']))_0x5e2673=_0x5d46bd['rRMvf'];else(_0x5d46bd[_0x1dbd9a(0x1eb)](_0x11b87e,_0x5d46bd[_0x1dbd9a(0x19d)])||_0x5d46bd[_0x1dbd9a(0x1aa)](_0x11b87e,_0x5d46bd[_0x1dbd9a(0x1ee)]))&&(_0x5e2673=_0x5d46bd[_0x1dbd9a(0x19d)]);}this[_0x1dbd9a(0x1ce)]&&_0x5d46bd['NVwZl'](this[_0x1dbd9a(0x1ce)]['name'],FRAMEWORKS['JEST'])?(_0x93aed3=this[_0x1dbd9a(0x126)]['recreateIdentifierFromTestInfo'](_0x334d62,_0x93aed3),this[_0x1dbd9a(0x13e)][_0x1dbd9a(0x198)]('Automation\x20onAfterTest:\x20Recreated\x20Jest\x20testIdentifier:\x20'+_0x93aed3)):_0x93aed3=_0x620b44?.['id']||_0x620b44?.[_0x1dbd9a(0x153)]||process[_0x1dbd9a(0x17b)]+_0x1dbd9a(0x160);const _0x4abdc1=TestInfo['getTestDetails'](_0x93aed3),_0x1a940b=AutomationFramework[_0x1dbd9a(0x158)](_0x72a6a2,PuppeteerDriverModule[_0x1dbd9a(0x1fd)])||global[_0x1dbd9a(0x189)],_0x4b202e=_0x4abdc1?.[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]||this[_0x1dbd9a(0x1ce)]&&this['testFrameworkData']['name'],_0x1862c0=_0x4abdc1?.[TestFrameworkConstants[_0x1dbd9a(0x143)]]||this[_0x1dbd9a(0x1ce)]&&this[_0x1dbd9a(0x1ce)][_0x1dbd9a(0x191)],_0x32dd3e=TestFrameworkState[_0x1dbd9a(0x1b8)][_0x1dbd9a(0x133)]()[_0x1dbd9a(0x171)]('.')[0x1],_0x11239d=HookState[_0x1dbd9a(0x13c)][_0x1dbd9a(0x133)]()[_0x1dbd9a(0x171)]('.')[0x1],_0x1fbfee=_0x72a6a2['getContext'](),_0x52d72a=AutomationFramework[_0x1dbd9a(0x158)](_0x72a6a2,PuppeteerDriverModule[_0x1dbd9a(0x1c0)],'')||BrowserstackCLI[_0x1dbd9a(0x16d)]()[_0x1dbd9a(0x144)]()?.[_0x1dbd9a(0x1ca)]||'',_0x5e8fab=AutomationFramework[_0x1dbd9a(0x158)](_0x72a6a2,PuppeteerDriverModule['KEY_SESSION_ID'],'')||global[_0x1dbd9a(0x1c8)]||'',_0x18dbd3={'provider':_0x5d46bd[_0x1dbd9a(0x13f)](getPlaywrightProvider,_0x52d72a),'frameworkName':_0x5d46bd[_0x1dbd9a(0x1cf)],'frameworkVersion':this[_0x1dbd9a(0x172)]||'','frameworkSessionId':LoadTestModule[_0x1dbd9a(0x1c1)]()?LoadTestModule[_0x1dbd9a(0x1dc)]():_0x5e8fab,'ref':PuppeteerDriverModule[_0x1dbd9a(0x149)]||_0x72a6a2[_0x1dbd9a(0x16a)](),'hubUrl':_0x52d72a,'product':_0x5d46bd[_0x1dbd9a(0x14a)](getProductForSession)};let _0x52980d=AutomationFramework[_0x1dbd9a(0x158)](_0x72a6a2,PuppeteerDriverModule[_0x1dbd9a(0x1bd)],null)||global[_0x1dbd9a(0x1fe)]||global['__platformCaps']||{};_0x52980d&&_0x5d46bd['FWDLv'](Object[_0x1dbd9a(0x1ba)](_0x52980d)[_0x1dbd9a(0x180)],0x0)?_0x52980d=Buffer[_0x1dbd9a(0x1ea)](JSON[_0x1dbd9a(0x130)](_0x52980d))[_0x1dbd9a(0x133)](_0x5d46bd[_0x1dbd9a(0x1b4)]):_0x52980d=Buffer[_0x1dbd9a(0x1ea)](JSON[_0x1dbd9a(0x130)]({}))[_0x1dbd9a(0x133)](_0x5d46bd[_0x1dbd9a(0x1b4)]);const _0x29e5d4={'hash':_0x1fbfee['getId'](),'threadId':_0x1fbfee[_0x1dbd9a(0x135)]()['toString'](),'processId':_0x1fbfee[_0x1dbd9a(0x1f7)]()[_0x1dbd9a(0x133)]()},_0x476435={};_0x476435['platformIndex']=_0x1a940b,_0x476435['testFrameworkName']=_0x4b202e,_0x476435['testFrameworkVersion']=_0x1862c0,_0x476435['testFrameworkState']=_0x32dd3e,_0x476435[_0x1dbd9a(0x185)]=_0x11239d,_0x476435[_0x1dbd9a(0x1f8)]=_0x93aed3,_0x476435[_0x1dbd9a(0x1b2)]=_0x18dbd3,_0x476435['capabilities']=_0x52980d,_0x476435[_0x1dbd9a(0x1b9)]=_0x29e5d4;const _0xc97910=_0x476435;this[_0x1dbd9a(0x13e)][_0x1dbd9a(0x198)]('onAfterTest\x20CBTSession\x20payload:\x20'+util[_0x1dbd9a(0x1ac)](_0xc97910)),GrpcClient[_0x1dbd9a(0x16d)]()[_0x1dbd9a(0x136)](_0xc97910),this[_0x1dbd9a(0x13e)][_0x1dbd9a(0x198)](_0x1dbd9a(0x1f2)+_0x93aed3);if(!_0x5e2673){this[_0x1dbd9a(0x13e)][_0x1dbd9a(0x198)](_0x5d46bd[_0x1dbd9a(0x1ff)],_0x11b87e);return;}this[_0x1dbd9a(0x13e)][_0x1dbd9a(0x198)](_0x5d46bd[_0x1dbd9a(0x1e1)]),_0x334d62&&await this[_0x1dbd9a(0x169)](_0x72a6a2,_0x334d62),await this[_0x1dbd9a(0x12d)](_0x72a6a2,_0x6d3c8b,_0x5e2673,_0x2ae69e);}catch(_0x1f270e){this['logger']['error']('Error\x20in\x20onAfterTest:\x20'+util[_0x1dbd9a(0x1ac)](_0x1f270e));}}async['onBeforeQuit'](_0x4d513e){const _0x46fe94=a90_0x2f8370,_0x1591bc={};_0x1591bc['pXONi']=_0x46fe94(0x1f1),_0x1591bc['KplHn']='onBeforeQuit:\x20No\x20automation\x20instance\x20available',_0x1591bc[_0x46fe94(0x137)]='onBeforeQuit:\x20Cleanup\x20complete';const _0x448ae1=_0x1591bc;try{this[_0x46fe94(0x13e)][_0x46fe94(0x198)](_0x448ae1[_0x46fe94(0x19e)]);const _0x171000=_0x4d513e[_0x46fe94(0x12a)];if(!_0x171000){this[_0x46fe94(0x13e)][_0x46fe94(0x198)](_0x448ae1[_0x46fe94(0x1c2)]);return;}AutomationFramework[_0x46fe94(0x182)](_0x171000,PuppeteerDriverModule['KEY_PAGE_OBJECT'],null),AutomationFramework[_0x46fe94(0x182)](_0x171000,PuppeteerDriverModule[_0x46fe94(0x174)],null),this['logger'][_0x46fe94(0x198)](_0x448ae1[_0x46fe94(0x137)]);}catch(_0x17fa67){this[_0x46fe94(0x13e)][_0x46fe94(0x167)](_0x46fe94(0x1a6)+util['format'](_0x17fa67));}}async['markSessionName'](_0x2e26e4,_0x3236f3){const _0x1d5c79=a90_0x2f8370,_0x35c2a6={};_0x35c2a6['crbFG']=_0x1d5c79(0x184),_0x35c2a6['sxIgS']='markSessionName:\x20Page\x20object\x20is\x20not\x20available',_0x35c2a6[_0x1d5c79(0x1f6)]=_0x1d5c79(0x175);const _0x10fcbc=_0x35c2a6;try{if(CLIUtils[_0x1d5c79(0x14b)](BrowserstackCLI[_0x1d5c79(0x16d)]()[_0x1d5c79(0x144)]())){this[_0x1d5c79(0x13e)][_0x1d5c79(0x198)](_0x10fcbc[_0x1d5c79(0x1ef)]);return;}const _0x3f1ad0=AutomationFramework[_0x1d5c79(0x158)](_0x2e26e4,PuppeteerDriverModule[_0x1d5c79(0x1fc)]);if(!_0x3f1ad0){this['logger'][_0x1d5c79(0x198)](_0x10fcbc['sxIgS']);return;}const _0x2bde37=_0x3236f3[_0x1d5c79(0x1b1)]||_0x3236f3[_0x1d5c79(0x1f4)]||_0x3236f3['fullName'],_0x2c0f77={};_0x2c0f77[_0x1d5c79(0x1b1)]=_0x2bde37;const _0x30b960={};_0x30b960['action']=_0x10fcbc[_0x1d5c79(0x1f6)],_0x30b960[_0x1d5c79(0x190)]=_0x2c0f77;const _0x1c88a2=_0x30b960;PerformanceTester[_0x1d5c79(0x141)](PerformanceEvents['SESSION_NAME']),await this[_0x1d5c79(0x19b)](_0x3f1ad0,_0x1c88a2),PerformanceTester[_0x1d5c79(0x18c)](PerformanceEvents[_0x1d5c79(0x200)]);}catch(_0x22c379){PerformanceTester['end'](PerformanceEvents[_0x1d5c79(0x200)],![],util[_0x1d5c79(0x1ac)](_0x22c379)),this[_0x1d5c79(0x13e)][_0x1d5c79(0x167)](_0x1d5c79(0x1da)+util['format'](_0x22c379));}}async[a90_0x2f8370(0x12d)](_0x420634,_0x766fe6,_0x2b82a8,_0x1c33ec){const _0x20130e=a90_0x2f8370,_0xad7888={};_0xad7888[_0x20130e(0x195)]='markSessionStatus:\x20Skipping\x20session\x20status\x20marking',_0xad7888[_0x20130e(0x1ed)]='markSessionStatus:\x20Automation\x20instance\x20is\x20not\x20available',_0xad7888['BywRb']=_0x20130e(0x14d),_0xad7888[_0x20130e(0x1e3)]=_0x20130e(0x151),_0xad7888[_0x20130e(0x140)]=_0x20130e(0x147),_0xad7888[_0x20130e(0x15d)]='reason',_0xad7888[_0x20130e(0x18d)]='markSessionStatus:\x20Marking\x20session\x20status';const _0x2353f1=_0xad7888;if(CLIUtils[_0x20130e(0x170)](BrowserstackCLI[_0x20130e(0x16d)]()[_0x20130e(0x144)]())){this[_0x20130e(0x13e)][_0x20130e(0x198)](_0x2353f1[_0x20130e(0x195)]);return;}const _0xce097=_0x420634;if(!_0xce097){this[_0x20130e(0x13e)]['debug'](_0x2353f1[_0x20130e(0x1ed)]);return;}const _0x72bb88=AutomationFramework[_0x20130e(0x158)](_0xce097,PuppeteerDriverModule['KEY_PAGE_OBJECT']);if(!_0x72bb88){this[_0x20130e(0x13e)]['debug'](_0x2353f1[_0x20130e(0x157)]);return;}if(!_0x2b82a8){this[_0x20130e(0x13e)][_0x20130e(0x198)](_0x2353f1['OZZdJ'],_0x2b82a8);return;}const _0x2b7038={};_0x2b7038[_0x20130e(0x1ec)]=_0x2b82a8;const _0x302ec3={};_0x302ec3[_0x20130e(0x1d5)]=_0x2353f1[_0x20130e(0x140)],_0x302ec3[_0x20130e(0x190)]=_0x2b7038;const _0x72b459=_0x302ec3;_0x1c33ec&&(_0x72b459[_0x20130e(0x190)][_0x2353f1[_0x20130e(0x15d)]]=_0x1c33ec),PerformanceTester[_0x20130e(0x141)](PerformanceEvents[_0x20130e(0x205)]),this[_0x20130e(0x13e)][_0x20130e(0x198)](_0x2353f1[_0x20130e(0x18d)]),await this[_0x20130e(0x19b)](_0x72bb88,_0x72b459),PerformanceTester['end'](PerformanceEvents[_0x20130e(0x205)]);}async[a90_0x2f8370(0x19b)](_0x43d272,_0x2d76d8){const _0x20c630=a90_0x2f8370,_0x414db7={'vGhAC':function(_0x4e8bbb,_0x15967d,_0x15a93a){return _0x4e8bbb(_0x15967d,_0x15a93a);},'HwQgp':function(_0x3e0695,_0x91a004){return _0x3e0695(_0x91a004);}};try{const _0x8f6d7a=0x3a98,_0x5b8820=_0x20c630(0x16f)+JSON['stringify'](_0x2d76d8),_0x5d220a=_0x43d272[_0x20c630(0x17a)](_0x3d2ab3=>{},_0x5b8820);let _0x3e296d;await Promise['race']([_0x5d220a,new Promise((_0x247712,_0x4f1c74)=>{const _0x560fa1=_0x20c630;_0x3e296d=_0x414db7[_0x560fa1(0x1de)](setTimeout,()=>_0x4f1c74(new Error(_0x560fa1(0x1a4)+_0x8f6d7a+'ms')),_0x8f6d7a);})])[_0x20c630(0x19f)](()=>{const _0x3550be=_0x20c630;_0x414db7[_0x3550be(0x16c)](clearTimeout,_0x3e296d);});}catch(_0x3e3259){this['logger']['debug'](_0x20c630(0x163)+(_0x3e3259['message']||_0x3e3259));}}}function a90_0x4bb3(){const _0x1210cd=['isBuffer','sessionId','fujTY','FYGVj','hashed_id',':testAnalyticsId','KGWHz',',\x20skipping\x20duplicate','Error\x20in\x20puppeteerBstackExecutor:\x20','MODULE_NAME','map','305HJlEFr','error','getModuleName','markSessionName','getRef','../../../helpers/classLogger.js','HwQgp','getInstance','rTBrC','browserstack_executor:\x20','shouldSkipSessionStatus','split','puppeteerVersion','platforms','KEY_BROWSER_OBJECT','setSessionName','6258ebkVsg','vBMRW','bind','coZtS','evaluate','pid','_driverInitCalledForRef','../../../helpers/performance/constants.js','../../../helpers/helper.js','rRMvf','length','xXPvJ','setState','POcuv','markSessionName:\x20Skipping\x20session\x20name\x20marking','testHookState','abpve','unknown','join','__bstackPlatformIndex','failed','onAfterDriverCreate:\x20SessionId\x20set\x20from\x20WebSocket\x20URL:\x20','end','aAdOF','onAfterDriverCreate:\x20Error\x20extracting\x20caps\x20from\x20driverInit\x20response:\x20','platformIndex','arguments','version','XIKdA','skip','string','WWBfj','aMEkX','onAfterDriverCreate:\x20Puppeteer\x20driver\x20has\x20been\x20created\x20','debug','Error\x20in\x20onAfterDriverCreate:\x20','parse','puppeteerBstackExecutor','timedOut','TtCqQ','pXONi','finally','getCapabilities','utf8','RFUKq','../framework/automationFramework.js','browserstack_executor\x20timeout\x20after\x20','puppeteer_capabilities','Error\x20in\x20onBeforeQuit:\x20','Automation\x20onAfterTest:\x20Setting\x20session\x20name\x20and\x20status','_url','onAfterTest','yotJQ','onBeforeDriverCreate','format','onAfterDriverCreate:\x20Setting\x20Session\x20Name\x20from\x20testInfo','dbTsH','onAfterDriverCreate:\x20SessionId\x20set\x20from\x20args:\x20','VcqpT','name','automationSession','../grpcClient.js','HbiZj','onBeforeDriverCreate:\x20Puppeteer\x20driver\x20is\x20about\x20to\x20be\x20created','./loadTestModule.js','NfCQo','TEST','executionContext','keys','cAAOq','tALuB','KEY_CAPABILITIES','PuppeteerDriverModule','onAfterDriverCreate:\x20Updated\x20capabilities\x20from\x20global.__launchCaps','KEY_HUB_URL','isLTSSession','KplHn','FWDLv','KEY_SESSION_ID','4bixpUC','onAfterDriverCreate:\x20Could\x20not\x20extract\x20sessionId:\x20','HsRWr','__bstackSessionId','registerObserver','hubUrl','puppeteer_test_id','testInfo','wPOHm','testFrameworkData','TAeym','base64','onAfterDriverCreate:\x20Stored\x20full\x20W3C\x20capabilities\x20from\x20DriverInit\x20response','puppeteer_page','ORMtu','getHubUrl','action','onAfterDriverCreate:\x20Extracted\x20capabilities\x20from\x20driverInit\x20response:\x20','DofpL','5343867MfqjsV','502218hzlCNK','Error\x20in\x20markSessionName:\x20','CREATE','getLTSSessionId','zGRjf','vGhAC','UFoXx','onAfterDriverCreate:\x20No\x20testInfo\x20available\x20(browser\x20created\x20outside\x20test\x20context).\x20Session\x20name\x20will\x20be\x20deferred\x20to\x20executeDeferredCloses.','KyfMB','page','OZZdJ','passed','skipped','AUTOMATE_EVENTS','RGjsQ','onAfterDriverCreate:\x20driverInit\x20response\x20received','QUIT','from','fyFaG','status','PxDxb','qMxeb','crbFG','test','onBeforeQuit:\x20Puppeteer\x20driver\x20is\x20about\x20to\x20quit','onAfterTest\x20CBTSession\x20complete\x20for\x20testIdentifier:\x20','onAfterDriverCreate:\x20driverInit\x20already\x20called\x20for\x20ref\x20','title','KEY_PLATFORM_DETAILS','LSDrM','getProcessId','test_identifier','driverInit','Automation\x20onAfterTest:\x20Automation\x20instance\x20is\x20not\x20available','../utils/jest-utils.js','KEY_PAGE_OBJECT','KEY_PLATFORM_INDEX','__launchCaps','aegJr','SESSION_NAME','SxUCQ','hHZKH','onAfterDriverCreate:\x20SessionId\x20set\x20from\x20global:\x20','../framework/testFramework.js','SESSION_STATUS','KEY_TEST_ID','PRE','../state/hookState.js','jestUtils','../../../helpers/performance/performance-tester.js','../state/automationFrameworkState.js','./baseModule','instance','Puppeteer','errorsDetailed','markSessionStatus','../state/testFrameworkState','browserstack_executor:\x20{\x22action\x22:\x22getSessionDetails\x22}','stringify','VuMSh','testIdentifier','toString','failureMessage','getThreadId','testSessionEvent','EWQUT','87514vmDLzr','onAfterDriverCreate','../TestInfo.js','_connection','POST','25434qYtJhM','logger','laKJY','zzWUs','start','7|9|4|2|0|8|10|6|1|3|11|5','KEY_TEST_FRAMEWORK_VERSION','getConfig','onBeforeQuit','iuLBa','setSessionStatus','puppeteer_browser','_driverInitRef','uheYX','shouldSkipSessionName','launchcaps','markSessionStatus:\x20Page\x20object\x20is\x20not\x20available','../../utils/constants','497109SaobNa','util','Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20','PUPPETEER','uuid','../../../helpers/helper','onAfterDriverCreate:\x20Setting\x20browser\x20object','1028384jwBDrO','BywRb','getState','Automation\x20onAfterTest:\x20Test\x20completed','browser'];a90_0x4bb3=function(){return _0x1210cd;};return a90_0x4bb3();}module['exports']=PuppeteerDriverModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a91_0x4f26(){const _0x451dcc=['onPageCreate\x20CBTSession\x20payload:\x20','TestHubModule','./baseModule','hookState','instance','testFrameworkEvent','KEY_SESSION_ID','332802KWoXli','POST','version','retry','onPageCreate','from',',\x20test_identifier:\x20','323130tCbAWe','../TestInfo.js','../state/testFrameworkState.js','forEach','length','8835PxFQty','5|3|0|4|8|7|1|2|6','getId','JEST','sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20','109919UWoURx','page','getThreadId','KEY_TEST_FRAMEWORK_VERSION','./loadTestModule.js','getModuleName','BROWSERSTACK_TESTHUB_UUID','getState','registerObserver','getTestId','FRlOu','recreateIdentifierFromTestInfo','getContext','Error\x20in\x20sendTestFrameworkEvent:\x20','../browserstackCLI.js','toString','63JEynoj','Vafyp','testUuid','sendTestFrameworkEvent','IGkkV','createTestFrameworkEventPayload','../framework/testFramework.js','testInfo','KEY_CAPABILITIES','QJAkl','frameworkName','KEY_TEST_FRAMEWORK_NAME','Zpkth','util','CREATE','MODULE_NAME','../../../helpers/helper.js','testhubConfig','bind','testFrameworkState','TEST','../state/automationFrameworkState.js','VNZof','name','xAnzV','7hNKQms','getBuildHashedId','values','WgMlp','../cliUtils.js','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event','getLTSSessionId','KEY_PLATFORM_INDEX','Error\x20in\x20sending\x20CBTSession:\x20','error','./playwrightDriverModule.js','stringify','jestUtils','645800LjlnXV','getJwt','test_identifier','ENV_VAR','getProcessId','keys','../grpcClient.js','\x20hookState:\x20','exports','getInstance','./puppeteerDriverModule.js','133686TJBCsE','../framework/automationFramework.js','testSessionEvent','KEY_TEST_DEFERRED','getTestUUID','getRef','KEY_HUB_URL','frameworkVersion','debug','CUCUMBER','../../../helpers/testhub/constants','oOYSN','../state/hookState.js','split','onAllTestEvents','testFrameworkData','test_deferred','684610AyvOeA','onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20','8aYJBuV','format','pHjbP','logger','getTestIdentifierFromTestInfo'];a91_0x4f26=function(){return _0x451dcc;};return a91_0x4f26();}const a91_0x18bcf1=a91_0x5326;function a91_0x5326(_0x59200d,_0x31cf37){const _0x4f2692=a91_0x4f26();return a91_0x5326=function(_0x5326ed,_0x3f1087){_0x5326ed=_0x5326ed-0xab;let _0x377dd6=_0x4f2692[_0x5326ed];return _0x377dd6;},a91_0x5326(_0x59200d,_0x31cf37);}(function(_0x10d1ff,_0x4991db){const _0x5b67ce=a91_0x5326,_0x48a1de=_0x10d1ff();while(!![]){try{const _0x5e9516=parseInt(_0x5b67ce(0xf0))/0x1+parseInt(_0x5b67ce(0xc0))/0x2+-parseInt(_0x5b67ce(0xeb))/0x3*(parseInt(_0x5b67ce(0xd3))/0x4)+-parseInt(_0x5b67ce(0xd1))/0x5+parseInt(_0x5b67ce(0xdf))/0x6*(-parseInt(_0x5b67ce(0x119))/0x7)+-parseInt(_0x5b67ce(0xb5))/0x8+-parseInt(_0x5b67ce(0x100))/0x9*(-parseInt(_0x5b67ce(0xe6))/0xa);if(_0x5e9516===_0x4991db)break;else _0x48a1de['push'](_0x48a1de['shift']());}catch(_0x525d56){_0x48a1de['push'](_0x48a1de['shift']());}}}(a91_0x4f26,0x1e42d));const util=require(a91_0x18bcf1(0x10d)),BaseModule=require(a91_0x18bcf1(0xda)),{createClassLogger}=require('../../../helpers/classLogger.js'),AutomationFramework=require(a91_0x18bcf1(0xc1)),AutomationFrameworkState=require(a91_0x18bcf1(0x115)),HookState=require(a91_0x18bcf1(0xcc)),TestFramework=require(a91_0x18bcf1(0x106)),TestFrameworkState=require(a91_0x18bcf1(0xe8)),PlaywrightDriverModule=require(a91_0x18bcf1(0xb2)),PuppeteerDriverModule=require(a91_0x18bcf1(0xbf)),TestFrameworkConstants=require('../framework/constants/testFrameworkConstants.js'),GrpcClient=require(a91_0x18bcf1(0xbb)),CLIUtils=require(a91_0x18bcf1(0xab)),TestInfo=require(a91_0x18bcf1(0xe7)),testHubConstants=require(a91_0x18bcf1(0xca)),{FRAMEWORKS}=require('../../../helpers/test-observability/constants.js'),helper=require('../../../helpers/helper.js'),LoadTestModule=require(a91_0x18bcf1(0xf4)),JestUtils=require('../utils/jest-utils.js'),BrowserstackCLI=require(a91_0x18bcf1(0xfe)),{getPlaywrightProvider,getProductForSession}=require(a91_0x18bcf1(0x110));class TestHubModule extends BaseModule{['logger']=createClassLogger(a91_0x18bcf1(0xd9));constructor(_0x5b50fe,_0x15e129=null){const _0x5ccf42=a91_0x18bcf1,_0x28d0d6={};_0x28d0d6[_0x5ccf42(0x101)]=_0x5ccf42(0xec),_0x28d0d6[_0x5ccf42(0x116)]=_0x5ccf42(0xd9);const _0x219d9d=_0x28d0d6,_0x41d879=_0x219d9d[_0x5ccf42(0x101)][_0x5ccf42(0xcd)]('|');let _0x3bf203=0x0;while(!![]){switch(_0x41d879[_0x3bf203++]){case'0':this[_0x5ccf42(0x111)]=_0x5b50fe;continue;case'1':process['env'][testHubConstants[_0x5ccf42(0xb8)]['BROWSERSTACK_TESTHUB_JWT']]=this[_0x5ccf42(0x111)][_0x5ccf42(0xb6)]();continue;case'2':process['env'][testHubConstants['ENV_VAR'][_0x5ccf42(0xf6)]]=this['testhubConfig'][_0x5ccf42(0x11a)]();continue;case'3':this[_0x5ccf42(0x117)]=_0x219d9d[_0x5ccf42(0x116)];continue;case'4':this[_0x5ccf42(0xb4)]=new JestUtils();continue;case'5':super(_0x15e129);continue;case'6':BrowserstackCLI['O11yHashedID']=this[_0x5ccf42(0x111)][_0x5ccf42(0x11a)]();continue;case'7':Object['values'](TestFrameworkState)[_0x5ccf42(0xe9)](_0xac2889=>{const _0xb99fe7=_0x5ccf42;Object[_0xb99fe7(0x11b)](HookState)[_0xb99fe7(0xe9)](_0x571c59=>{const _0x5a7cf4=_0xb99fe7;TestFramework[_0x5a7cf4(0xf8)](_0xac2889,_0x571c59,this[_0x5a7cf4(0xce)][_0x5a7cf4(0x112)](this));});});continue;case'8':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x5ccf42(0x10e)],HookState['POST'],this[_0x5ccf42(0xe3)][_0x5ccf42(0x112)](this));continue;}break;}}[a91_0x18bcf1(0xf5)](){return TestHubModule['MODULE_NAME'];}[a91_0x18bcf1(0xce)](_0x4c7e42){const _0x40d1ea=a91_0x18bcf1,_0x44872c={};_0x44872c[_0x40d1ea(0x118)]=function(_0x5b233c,_0x1ce20d){return _0x5b233c===_0x1ce20d;};const _0x3b8ba9=_0x44872c,_0x3053fb=_0x4c7e42[_0x40d1ea(0xdc)],_0x34c647=_0x3053fb['getCurrentTestState']();(_0x3b8ba9['xAnzV'](_0x34c647,TestFrameworkState[_0x40d1ea(0x114)])||CLIUtils['matchHookRegex'](_0x34c647[_0x40d1ea(0xff)]()[_0x40d1ea(0xcd)]('.')[0x1]))&&this['sendTestFrameworkEvent'](_0x4c7e42);}async[a91_0x18bcf1(0x103)](_0x298159){const _0x21fb00=a91_0x18bcf1,_0x5d35fe={};_0x5d35fe['AoTdF']=function(_0x301699,_0x2db676){return _0x301699===_0x2db676;},_0x5d35fe[_0x21fb00(0x10c)]=_0x21fb00(0xad);const _0x3046c7=_0x5d35fe;try{const _0x75221c=BrowserstackCLI[_0x21fb00(0xbe)]()['getTestFramework']()[_0x21fb00(0x105)](_0x298159);if(!_0x75221c||_0x3046c7['AoTdF'](Object[_0x21fb00(0xba)](_0x75221c)[_0x21fb00(0xea)],0x0)){this[_0x21fb00(0xd6)][_0x21fb00(0xc8)](_0x3046c7['Zpkth']);return;}const _0x2e5d94=await GrpcClient[_0x21fb00(0xbe)]()[_0x21fb00(0xdd)](_0x75221c);this['logger'][_0x21fb00(0xc8)](_0x21fb00(0xef)+_0x75221c[_0x21fb00(0x113)]+_0x21fb00(0xbc)+_0x75221c[_0x21fb00(0xdb)]);}catch(_0x4d1570){this[_0x21fb00(0xd6)][_0x21fb00(0xb1)](_0x21fb00(0xfd)+util[_0x21fb00(0xd4)](_0x4d1570));}}async[a91_0x18bcf1(0xe3)](_0x1a41ab){const _0x57d09e=a91_0x18bcf1,_0x2c9b01={'IGkkV':function(_0x16dda3,_0x352c8e){return _0x16dda3===_0x352c8e;},'FRlOu':'onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','WgMlp':function(_0x4df8bc,_0x4dc7b9){return _0x4df8bc===_0x4dc7b9;},'oOYSN':function(_0x4ccd35,_0x5dd95c){return _0x4ccd35===_0x5dd95c;},'grtNS':function(_0x115674,_0x26798b){return _0x115674(_0x26798b);},'pHjbP':function(_0x11e7ab){return _0x11e7ab();},'QJAkl':'base64'};try{if(_0x1a41ab[_0x57d09e(0xf1)]){const _0x32771a=this[_0x57d09e(0xf9)](_0x1a41ab);this['logger']['debug'](_0x57d09e(0xac)+_0x32771a);if(this[_0x57d09e(0xcf)]&&_0x2c9b01[_0x57d09e(0x104)](this[_0x57d09e(0xcf)][_0x57d09e(0x117)],FRAMEWORKS[_0x57d09e(0xee)])&&!_0x1a41ab[_0x57d09e(0x107)]){this[_0x57d09e(0xd6)][_0x57d09e(0xc8)](_0x2c9b01[_0x57d09e(0xfa)]);return;}let _0x513db2,_0x5a9282;if(this['testFrameworkData']&&_0x2c9b01[_0x57d09e(0x11c)](this[_0x57d09e(0xcf)][_0x57d09e(0x117)],FRAMEWORKS[_0x57d09e(0xc9)]))_0x513db2=_0x32771a,_0x5a9282=TestInfo[_0x57d09e(0xc4)](_0x513db2);else this[_0x57d09e(0xcf)]&&_0x2c9b01[_0x57d09e(0xcb)](this['testFrameworkData'][_0x57d09e(0x117)],FRAMEWORKS[_0x57d09e(0xee)])?(_0x513db2=this['jestUtils'][_0x57d09e(0xfb)](_0x1a41ab['testInfo']),this[_0x57d09e(0xd6)][_0x57d09e(0xc8)](_0x57d09e(0xd2)+_0x513db2)):(_0x513db2=TestInfo[_0x57d09e(0xd7)](_0x1a41ab['testInfo'],_0x1a41ab['testInfo'][_0x57d09e(0xe2)]),_0x5a9282=TestInfo[_0x57d09e(0xc4)](_0x513db2));const _0x53edf4=TestInfo['getTestDetails'](_0x513db2),_0x2be826=_0x1a41ab[_0x57d09e(0xdc)],_0x11f151=AutomationFramework['getState'](_0x2be826,PlaywrightDriverModule[_0x57d09e(0xaf)])||AutomationFramework[_0x57d09e(0xf7)](_0x2be826,PuppeteerDriverModule[_0x57d09e(0xaf)]),_0x17f8ec=_0x53edf4?.[TestFrameworkConstants[_0x57d09e(0x10b)]]||this['testFrameworkData']&&this[_0x57d09e(0xcf)][_0x57d09e(0x117)],_0x177149=_0x53edf4?.[TestFrameworkConstants[_0x57d09e(0xf3)]]||this[_0x57d09e(0xcf)]&&this[_0x57d09e(0xcf)][_0x57d09e(0xe1)],_0xa704d0=TestFrameworkState[_0x57d09e(0x114)]['toString']()[_0x57d09e(0xcd)]('.')[0x1],_0x456875=HookState[_0x57d09e(0xe0)][_0x57d09e(0xff)]()[_0x57d09e(0xcd)]('.')[0x1],_0x21d80e=_0x2be826[_0x57d09e(0xfc)](),_0x20afb2=AutomationFramework['getState'](_0x2be826,PlaywrightDriverModule[_0x57d09e(0xc6)],'')||AutomationFramework[_0x57d09e(0xf7)](_0x2be826,PuppeteerDriverModule[_0x57d09e(0xc6)],''),_0x3803ac=LoadTestModule['isLTSSession']()?LoadTestModule[_0x57d09e(0xae)]():AutomationFramework[_0x57d09e(0xf7)](_0x2be826,PlaywrightDriverModule[_0x57d09e(0xde)],'')||AutomationFramework[_0x57d09e(0xf7)](_0x2be826,PuppeteerDriverModule[_0x57d09e(0xde)],''),_0x419a2a={'provider':_0x2c9b01['grtNS'](getPlaywrightProvider,_0x20afb2),'frameworkName':_0x2be826[_0x57d09e(0x10a)],'frameworkVersion':_0x2be826[_0x57d09e(0xc7)],'frameworkSessionId':_0x3803ac,'ref':_0x2be826[_0x57d09e(0xc5)](),'hubUrl':_0x20afb2,'product':_0x2c9b01[_0x57d09e(0xd5)](getProductForSession)},_0x6d60f2=AutomationFramework['getState'](_0x2be826,PlaywrightDriverModule[_0x57d09e(0x108)],null)||AutomationFramework[_0x57d09e(0xf7)](_0x2be826,PuppeteerDriverModule['KEY_CAPABILITIES'],null),_0x2ba521=_0x6d60f2?Buffer[_0x57d09e(0xe4)](JSON[_0x57d09e(0xb3)](_0x6d60f2))[_0x57d09e(0xff)](_0x2c9b01[_0x57d09e(0x109)]):null,_0x54f42c={'hash':_0x21d80e[_0x57d09e(0xed)](),'threadId':_0x21d80e[_0x57d09e(0xf2)]()[_0x57d09e(0xff)](),'processId':_0x21d80e[_0x57d09e(0xb9)]()[_0x57d09e(0xff)]()},_0x1ed350={};_0x1ed350[_0x57d09e(0xb7)]=_0x513db2;const _0x1644b3={};_0x1644b3[_0x57d09e(0x102)]=_0x5a9282;const _0x38f827={'platformIndex':_0x11f151,'testFrameworkName':_0x17f8ec,'testFrameworkVersion':_0x177149,'testFrameworkState':_0xa704d0,'testHookState':_0x456875,...this[_0x57d09e(0xcf)]&&_0x2c9b01[_0x57d09e(0x11c)](this[_0x57d09e(0xcf)][_0x57d09e(0x117)],FRAMEWORKS['JEST'])?_0x1ed350:_0x1644b3,'automationSession':_0x419a2a,'capabilities':_0x2ba521,'executionContext':_0x54f42c};this[_0x57d09e(0xd6)][_0x57d09e(0xc8)](_0x57d09e(0xd8)+util[_0x57d09e(0xd4)](_0x38f827));const _0x4e9a7c=await GrpcClient[_0x57d09e(0xbe)]()[_0x57d09e(0xc2)](_0x38f827);this[_0x57d09e(0xd6)][_0x57d09e(0xc8)]('onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20'+_0x32771a+(this['testFrameworkData']&&_0x2c9b01['IGkkV'](this[_0x57d09e(0xcf)][_0x57d09e(0x117)],FRAMEWORKS[_0x57d09e(0xee)])?_0x57d09e(0xe5)+_0x513db2:''));}}catch(_0x3b024d){this['logger']['error'](_0x57d09e(0xb0)+util[_0x57d09e(0xd4)](_0x3b024d));}}}TestHubModule[a91_0x18bcf1(0x10f)]=a91_0x18bcf1(0xd9),TestHubModule[a91_0x18bcf1(0xc3)]=a91_0x18bcf1(0xd0),module[a91_0x18bcf1(0xbd)]=TestHubModule;
|
|
1
|
+
const a91_0x12051d=a91_0x3998;function a91_0xa234(){const _0x3f8e1c=['DEXSI','getTestIdentifierFromTestInfo','7|5|0|8|3|1|2|6|4','registerObserver','testFrameworkEvent','exports','../state/testFrameworkState.js','KEY_HUB_URL','../../../helpers/classLogger.js','10xjxdoD','75955YOZYNP','POST','testSessionEvent','\x20hookState:\x20','env','iCITp','frameworkVersion','getContext','testFrameworkData','811108Ytfckp','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','../state/automationFrameworkState.js','KEY_TEST_FRAMEWORK_VERSION','3137540ZoGrkq','7904310oyraeA','matchHookRegex','getBuildHashedId','../../../helpers/helper.js','../TestInfo.js','bTXaF','logger','VrhPA','bind','error','getRef','KEY_PLATFORM_INDEX','from','debug','1301eJmAuo','getCurrentTestState','8109736qQeyaY','getTestId','test_deferred','getProcessId','MODULE_NAME','../../../helpers/test-observability/constants.js','onAllTestEvents','KEY_CAPABILITIES','jestUtils','recreateIdentifierFromTestInfo','cAAIL','getState','testInfo','TEST','Error\x20in\x20sending\x20CBTSession:\x20','page','cJzRR','util','retry','CUCUMBER','getThreadId','JEST','onPageCreate','kWrMA','getTestUUID','base64','../cliUtils.js','frameworkName','getModuleName','hookState','../framework/testFramework.js','136482ktnStB','6okgMmc','forEach','5916Iqtnvt','../state/hookState.js','testUuid','values','O11yHashedID','9wyDnnR',',\x20test_identifier:\x20','sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20','sendTestFrameworkEvent','../framework/automationFramework.js','stringify','getInstance','KEY_SESSION_ID','../grpcClient.js','onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','split','Error\x20in\x20sendTestFrameworkEvent:\x20','isLTSSession','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','testhubConfig','BROWSERSTACK_TESTHUB_UUID','izlLN','./puppeteerDriverModule.js','KEY_TEST_FRAMEWORK_NAME','../../../helpers/testhub/constants','toString','onPageCreate\x20CBTSession\x20payload:\x20','getTestDetails','format','getTestFramework','version','getLTSSessionId','1362wVwdSH','name','onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20'];a91_0xa234=function(){return _0x3f8e1c;};return a91_0xa234();}function a91_0x3998(_0x34c451,_0x135717){const _0xa234dd=a91_0xa234();return a91_0x3998=function(_0x3998fb,_0x156a82){_0x3998fb=_0x3998fb-0x177;let _0x57fc19=_0xa234dd[_0x3998fb];return _0x57fc19;},a91_0x3998(_0x34c451,_0x135717);}(function(_0x2f2821,_0x280736){const _0xef653d=a91_0x3998,_0x5c4bba=_0x2f2821();while(!![]){try{const _0x3e1486=parseInt(_0xef653d(0x1ad))/0x1*(-parseInt(_0xef653d(0x184))/0x2)+-parseInt(_0xef653d(0x1ce))/0x3+parseInt(_0xef653d(0x19a))/0x4*(parseInt(_0xef653d(0x190))/0x5)+-parseInt(_0xef653d(0x1cf))/0x6*(parseInt(_0xef653d(0x19e))/0x7)+parseInt(_0xef653d(0x1af))/0x8*(-parseInt(_0xef653d(0x1d6))/0x9)+-parseInt(_0xef653d(0x19f))/0xa+parseInt(_0xef653d(0x191))/0xb*(parseInt(_0xef653d(0x1d1))/0xc);if(_0x3e1486===_0x280736)break;else _0x5c4bba['push'](_0x5c4bba['shift']());}catch(_0x3f4206){_0x5c4bba['push'](_0x5c4bba['shift']());}}}(a91_0xa234,0x98cd4));const util=require(a91_0x12051d(0x1c0)),BaseModule=require('./baseModule'),{createClassLogger}=require(a91_0x12051d(0x18f)),AutomationFramework=require(a91_0x12051d(0x1da)),AutomationFrameworkState=require(a91_0x12051d(0x19c)),HookState=require(a91_0x12051d(0x1d2)),TestFramework=require(a91_0x12051d(0x1cd)),TestFrameworkState=require(a91_0x12051d(0x18d)),PlaywrightDriverModule=require('./playwrightDriverModule.js'),PuppeteerDriverModule=require(a91_0x12051d(0x17a)),TestFrameworkConstants=require('../framework/constants/testFrameworkConstants.js'),GrpcClient=require(a91_0x12051d(0x1de)),CLIUtils=require(a91_0x12051d(0x1c9)),TestInfo=require(a91_0x12051d(0x1a3)),testHubConstants=require(a91_0x12051d(0x17c)),{FRAMEWORKS}=require(a91_0x12051d(0x1b4)),helper=require('../../../helpers/helper.js'),LoadTestModule=require('./loadTestModule.js'),JestUtils=require('../utils/jest-utils.js'),BrowserstackCLI=require('../browserstackCLI.js'),{getPlaywrightProvider,getProductForSession}=require(a91_0x12051d(0x1a2));class TestHubModule extends BaseModule{[a91_0x12051d(0x1a5)]=createClassLogger('TestHubModule');constructor(_0x478e92,_0x9f2b7d=null){const _0x592593=a91_0x12051d,_0x2ffb12={};_0x2ffb12[_0x592593(0x1a6)]=_0x592593(0x189),_0x2ffb12['cAAIL']='TestHubModule';const _0x54849d=_0x2ffb12,_0x2743c8=_0x54849d[_0x592593(0x1a6)][_0x592593(0x1e0)]('|');let _0x24dcfd=0x0;while(!![]){switch(_0x2743c8[_0x24dcfd++]){case'0':this[_0x592593(0x177)]=_0x478e92;continue;case'1':Object[_0x592593(0x1d4)](TestFrameworkState)[_0x592593(0x1d0)](_0x22df59=>{const _0x1680e3=_0x592593;Object[_0x1680e3(0x1d4)](HookState)['forEach'](_0x294068=>{const _0x32929a=_0x1680e3;TestFramework[_0x32929a(0x18a)](_0x22df59,_0x294068,this[_0x32929a(0x1b5)][_0x32929a(0x1a7)](this));});});continue;case'2':process[_0x592593(0x195)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_JWT']]=this[_0x592593(0x177)]['getJwt']();continue;case'3':AutomationFramework[_0x592593(0x18a)](AutomationFrameworkState['CREATE'],HookState['POST'],this[_0x592593(0x1c5)][_0x592593(0x1a7)](this));continue;case'4':BrowserstackCLI[_0x592593(0x1d5)]=this['testhubConfig'][_0x592593(0x1a1)]();continue;case'5':this[_0x592593(0x185)]=_0x54849d[_0x592593(0x1b9)];continue;case'6':process['env'][testHubConstants['ENV_VAR'][_0x592593(0x178)]]=this[_0x592593(0x177)]['getBuildHashedId']();continue;case'7':super(_0x9f2b7d);continue;case'8':this['jestUtils']=new JestUtils();continue;}break;}}[a91_0x12051d(0x1cb)](){const _0x55c465=a91_0x12051d;return TestHubModule[_0x55c465(0x1b3)];}[a91_0x12051d(0x1b5)](_0x3ae7a4){const _0x1101f0=a91_0x12051d,_0x5cf33b={};_0x5cf33b['izlLN']=function(_0x1bb7a3,_0x2af249){return _0x1bb7a3===_0x2af249;};const _0x587496=_0x5cf33b,_0x5e4e78=_0x3ae7a4['instance'],_0x40d9a5=_0x5e4e78[_0x1101f0(0x1ae)]();(_0x587496[_0x1101f0(0x179)](_0x40d9a5,TestFrameworkState[_0x1101f0(0x1bc)])||CLIUtils[_0x1101f0(0x1a0)](_0x40d9a5[_0x1101f0(0x17d)]()[_0x1101f0(0x1e0)]('.')[0x1]))&&this[_0x1101f0(0x1d9)](_0x3ae7a4);}async[a91_0x12051d(0x1d9)](_0x22a450){const _0x396713=a91_0x12051d,_0x3afe51={};_0x3afe51[_0x396713(0x1bf)]=function(_0xf7842f,_0x483ba8){return _0xf7842f===_0x483ba8;},_0x3afe51[_0x396713(0x196)]='sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event';const _0x2cca95=_0x3afe51;try{const _0x5b5947=BrowserstackCLI[_0x396713(0x1dc)]()[_0x396713(0x181)]()['createTestFrameworkEventPayload'](_0x22a450);if(!_0x5b5947||_0x2cca95['cJzRR'](Object['keys'](_0x5b5947)['length'],0x0)){this[_0x396713(0x1a5)]['debug'](_0x2cca95[_0x396713(0x196)]);return;}const _0x1e4877=await GrpcClient[_0x396713(0x1dc)]()[_0x396713(0x18b)](_0x5b5947);this[_0x396713(0x1a5)]['debug'](_0x396713(0x1d8)+_0x5b5947['testFrameworkState']+_0x396713(0x194)+_0x5b5947[_0x396713(0x1cc)]);}catch(_0x2b488c){this['logger'][_0x396713(0x1a8)](_0x396713(0x1e1)+util[_0x396713(0x180)](_0x2b488c));}}async[a91_0x12051d(0x1c5)](_0x2ae4ce){const _0x5924e2=a91_0x12051d,_0x14ed6e={'DEXSI':function(_0x2e85f3,_0x4c9f5d){return _0x2e85f3===_0x4c9f5d;},'hUsMt':_0x5924e2(0x1df),'oMrqk':function(_0x173084,_0x192cd1){return _0x173084(_0x192cd1);},'bTXaF':function(_0x351e21){return _0x351e21();},'FtyUn':_0x5924e2(0x1c8),'kWrMA':function(_0x2130fc,_0x4f1ca8){return _0x2130fc===_0x4f1ca8;}};try{if(_0x2ae4ce[_0x5924e2(0x1be)]){const _0x497f34=this[_0x5924e2(0x1b0)](_0x2ae4ce);this[_0x5924e2(0x1a5)]['debug'](_0x5924e2(0x19b)+_0x497f34);if(this[_0x5924e2(0x199)]&&_0x14ed6e[_0x5924e2(0x187)](this['testFrameworkData']['name'],FRAMEWORKS[_0x5924e2(0x1c4)])&&!_0x2ae4ce['testInfo']){this[_0x5924e2(0x1a5)][_0x5924e2(0x1ac)](_0x14ed6e['hUsMt']);return;}let _0x24b311,_0x20ad20;if(this[_0x5924e2(0x199)]&&_0x14ed6e[_0x5924e2(0x187)](this['testFrameworkData'][_0x5924e2(0x185)],FRAMEWORKS[_0x5924e2(0x1c2)]))_0x24b311=_0x497f34,_0x20ad20=TestInfo[_0x5924e2(0x1c7)](_0x24b311);else this[_0x5924e2(0x199)]&&_0x14ed6e[_0x5924e2(0x187)](this[_0x5924e2(0x199)][_0x5924e2(0x185)],FRAMEWORKS[_0x5924e2(0x1c4)])?(_0x24b311=this[_0x5924e2(0x1b7)][_0x5924e2(0x1b8)](_0x2ae4ce[_0x5924e2(0x1bb)]),this[_0x5924e2(0x1a5)]['debug'](_0x5924e2(0x186)+_0x24b311)):(_0x24b311=TestInfo[_0x5924e2(0x188)](_0x2ae4ce['testInfo'],_0x2ae4ce['testInfo'][_0x5924e2(0x1c1)]),_0x20ad20=TestInfo[_0x5924e2(0x1c7)](_0x24b311));const _0x56a71b=TestInfo[_0x5924e2(0x17f)](_0x24b311),_0x171af9=_0x2ae4ce['instance'],_0xf218d2=AutomationFramework[_0x5924e2(0x1ba)](_0x171af9,PlaywrightDriverModule[_0x5924e2(0x1aa)])||AutomationFramework[_0x5924e2(0x1ba)](_0x171af9,PuppeteerDriverModule[_0x5924e2(0x1aa)]),_0x4a3b08=_0x56a71b?.[TestFrameworkConstants[_0x5924e2(0x17b)]]||this['testFrameworkData']&&this['testFrameworkData']['name'],_0x4aed4a=_0x56a71b?.[TestFrameworkConstants[_0x5924e2(0x19d)]]||this['testFrameworkData']&&this[_0x5924e2(0x199)][_0x5924e2(0x182)],_0x44ed33=TestFrameworkState['TEST']['toString']()[_0x5924e2(0x1e0)]('.')[0x1],_0x3897cc=HookState[_0x5924e2(0x192)][_0x5924e2(0x17d)]()[_0x5924e2(0x1e0)]('.')[0x1],_0x447403=_0x171af9[_0x5924e2(0x198)](),_0x577470=AutomationFramework[_0x5924e2(0x1ba)](_0x171af9,PlaywrightDriverModule[_0x5924e2(0x18e)],'')||AutomationFramework[_0x5924e2(0x1ba)](_0x171af9,PuppeteerDriverModule[_0x5924e2(0x18e)],''),_0xc0a603=LoadTestModule[_0x5924e2(0x1e2)]()?LoadTestModule[_0x5924e2(0x183)]():AutomationFramework[_0x5924e2(0x1ba)](_0x171af9,PlaywrightDriverModule[_0x5924e2(0x1dd)],'')||AutomationFramework[_0x5924e2(0x1ba)](_0x171af9,PuppeteerDriverModule['KEY_SESSION_ID'],''),_0x28de25={'provider':_0x14ed6e['oMrqk'](getPlaywrightProvider,_0x577470),'frameworkName':_0x171af9[_0x5924e2(0x1ca)],'frameworkVersion':_0x171af9[_0x5924e2(0x197)],'frameworkSessionId':_0xc0a603,'ref':_0x171af9[_0x5924e2(0x1a9)](),'hubUrl':_0x577470,'product':_0x14ed6e[_0x5924e2(0x1a4)](getProductForSession)},_0x39b684=AutomationFramework[_0x5924e2(0x1ba)](_0x171af9,PlaywrightDriverModule['KEY_CAPABILITIES'],null)||AutomationFramework[_0x5924e2(0x1ba)](_0x171af9,PuppeteerDriverModule[_0x5924e2(0x1b6)],null),_0x58bf7c=_0x39b684?Buffer[_0x5924e2(0x1ab)](JSON[_0x5924e2(0x1db)](_0x39b684))[_0x5924e2(0x17d)](_0x14ed6e['FtyUn']):null,_0x2ab966={'hash':_0x447403['getId'](),'threadId':_0x447403[_0x5924e2(0x1c3)]()[_0x5924e2(0x17d)](),'processId':_0x447403[_0x5924e2(0x1b2)]()[_0x5924e2(0x17d)]()},_0xd59aaa={};_0xd59aaa['test_identifier']=_0x24b311;const _0x3ea480={};_0x3ea480[_0x5924e2(0x1d3)]=_0x20ad20;const _0x10f32f={'platformIndex':_0xf218d2,'testFrameworkName':_0x4a3b08,'testFrameworkVersion':_0x4aed4a,'testFrameworkState':_0x44ed33,'testHookState':_0x3897cc,...this[_0x5924e2(0x199)]&&_0x14ed6e[_0x5924e2(0x1c6)](this[_0x5924e2(0x199)][_0x5924e2(0x185)],FRAMEWORKS[_0x5924e2(0x1c4)])?_0xd59aaa:_0x3ea480,'automationSession':_0x28de25,'capabilities':_0x58bf7c,'executionContext':_0x2ab966};this[_0x5924e2(0x1a5)][_0x5924e2(0x1ac)](_0x5924e2(0x17e)+util[_0x5924e2(0x180)](_0x10f32f));const _0x51b0ee=await GrpcClient['getInstance']()[_0x5924e2(0x193)](_0x10f32f);this[_0x5924e2(0x1a5)][_0x5924e2(0x1ac)](_0x5924e2(0x1e3)+_0x497f34+(this[_0x5924e2(0x199)]&&_0x14ed6e[_0x5924e2(0x187)](this[_0x5924e2(0x199)][_0x5924e2(0x185)],FRAMEWORKS['JEST'])?_0x5924e2(0x1d7)+_0x24b311:''));}}catch(_0x208847){this[_0x5924e2(0x1a5)][_0x5924e2(0x1a8)](_0x5924e2(0x1bd)+util[_0x5924e2(0x180)](_0x208847));}}}TestHubModule[a91_0x12051d(0x1b3)]='TestHubModule',TestHubModule['KEY_TEST_DEFERRED']=a91_0x12051d(0x1b1),module[a91_0x12051d(0x18c)]=TestHubModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a92_0x5e5c16=a92_0x5d21;function a92_0x5d21(_0x598f52,_0x434174){const _0x36a9ad=a92_0x36a9();return a92_0x5d21=function(_0x5d2175,_0x351392){_0x5d2175=_0x5d2175-0x14b;let _0x439bbc=_0x36a9ad[_0x5d2175];return _0x439bbc;},a92_0x5d21(_0x598f52,_0x434174);}(function(_0x14dac2,_0x5747ee){const _0x2d2d0c=a92_0x5d21,_0x323e72=_0x14dac2();while(!![]){try{const _0x23816b=-parseInt(_0x2d2d0c(0x164))/0x1*(parseInt(_0x2d2d0c(0x160))/0x2)+-parseInt(_0x2d2d0c(0x15b))/0x3+-parseInt(_0x2d2d0c(0x157))/0x4*(-parseInt(_0x2d2d0c(0x156))/0x5)+-parseInt(_0x2d2d0c(0x14d))/0x6+-parseInt(_0x2d2d0c(0x14e))/0x7+-parseInt(_0x2d2d0c(0x165))/0x8*(-parseInt(_0x2d2d0c(0x153))/0x9)+parseInt(_0x2d2d0c(0x15f))/0xa;if(_0x23816b===_0x5747ee)break;else _0x323e72['push'](_0x323e72['shift']());}catch(_0x3c0942){_0x323e72['push'](_0x323e72['shift']());}}}(a92_0x36a9,0x704df));const {PLAYWRIGHT}=require(a92_0x5e5c16(0x14f)),a92_0x40e341={};a92_0x40e341[a92_0x5e5c16(0x155)]=0x0,a92_0x40e341[a92_0x5e5c16(0x159)]=function(){const _0x47154b=a92_0x5e5c16,_0x2817ff={};_0x2817ff[_0x47154b(0x150)]=_0x47154b(0x15e);const _0x3c66ab=_0x2817ff;return _0x3c66ab['HUZRg'];};const a92_0x2bae0e={};a92_0x2bae0e[a92_0x5e5c16(0x155)]=0x1,a92_0x2bae0e['toString']=function(){const _0x1897ce=a92_0x5e5c16,_0x4086ec={};_0x4086ec[_0x1897ce(0x154)]=_0x1897ce(0x15a);const _0x3934fe=_0x4086ec;return _0x3934fe['lwXRf'];};const a92_0x1ea6fb={};a92_0x1ea6fb[a92_0x5e5c16(0x155)]=0x2,a92_0x1ea6fb[a92_0x5e5c16(0x159)]=function(){const _0x4da85d=a92_0x5e5c16,_0x47dec8={};_0x47dec8[_0x4da85d(0x15d)]='AutomationFrameworkState.PLAYWRIGHT_DISPATCH';const _0x52dc09=_0x47dec8;return _0x52dc09[_0x4da85d(0x15d)];};const a92_0x243d9d={};function a92_0x36a9(){const _0x140686=['gUbAy','1aDVpJF','320FGWGSC','AutomationFrameworkState.EXECUTE','values','freeze','1783710nvWUjd','5303578hIpXLx','../../utils/constants','HUZRg','exports','wloPD','169263nZzFcG','lwXRf','value','266345UtLBMv','4wWJbEs','gwwdX','toString','AutomationFrameworkState.CREATE','2036589WUgKOb','AutomationFrameworkState.IDLE','Aqxjd','AutomationFrameworkState.NONE','17431690BwubNy','709834npbRkL','find','AutomationFrameworkState.QUIT'];a92_0x36a9=function(){return _0x140686;};return a92_0x36a9();}a92_0x243d9d['value']=0x3,a92_0x243d9d['toString']=function(){const _0xc50bfc=a92_0x5e5c16,_0x259c7b={};_0x259c7b['gUbAy']=_0xc50bfc(0x166);const _0x4c9888=_0x259c7b;return _0x4c9888[_0xc50bfc(0x163)];};const a92_0xc0d242={};a92_0xc0d242[a92_0x5e5c16(0x155)]=0x4,a92_0xc0d242[a92_0x5e5c16(0x159)]=function(){const _0xf2eacd=a92_0x5e5c16,_0x7e72fb={};_0x7e72fb[_0xf2eacd(0x152)]=_0xf2eacd(0x15c);const _0x207ed9=_0x7e72fb;return _0x207ed9[_0xf2eacd(0x152)];};const a92_0x421545={};a92_0x421545[a92_0x5e5c16(0x155)]=0x5,a92_0x421545['toString']=function(){const _0x1e3cbb=a92_0x5e5c16,_0x41a7df={};_0x41a7df[_0x1e3cbb(0x158)]=_0x1e3cbb(0x162);const _0x4b202d=_0x41a7df;return _0x4b202d[_0x1e3cbb(0x158)];};const AutomationFrameworkState=Object[a92_0x5e5c16(0x14c)]({'NONE':a92_0x40e341,'CREATE':a92_0x2bae0e,'PLAYWRIGHT_DISPATCH':a92_0x1ea6fb,'EXECUTE':a92_0x243d9d,'IDLE':a92_0xc0d242,'QUIT':a92_0x421545,'fromValue'(_0x2b32cf){const _0xd761c2=a92_0x5e5c16;return Object[_0xd761c2(0x14b)](AutomationFrameworkState)[_0xd761c2(0x161)](_0x108a9c=>_0x108a9c[_0xd761c2(0x155)]===_0x2b32cf);}});module[a92_0x5e5c16(0x151)]=AutomationFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x27a3d5=a93_0x31fc;(function(_0x260b21,_0x26dd30){const _0x2c6b51=a93_0x31fc,_0x27156d=_0x260b21();while(!![]){try{const _0x1e9a37=-parseInt(_0x2c6b51(0xc5))/0x1*(-parseInt(_0x2c6b51(0xc2))/0x2)+-parseInt(_0x2c6b51(0xc4))/0x3+-parseInt(_0x2c6b51(0xbd))/0x4*(parseInt(_0x2c6b51(0xbc))/0x5)+-parseInt(_0x2c6b51(0xb7))/0x6+parseInt(_0x2c6b51(0xc6))/0x7*(parseInt(_0x2c6b51(0xb8))/0x8)+parseInt(_0x2c6b51(0xb9))/0x9+parseInt(_0x2c6b51(0xb5))/0xa*(-parseInt(_0x2c6b51(0xc3))/0xb);if(_0x1e9a37===_0x26dd30)break;else _0x27156d['push'](_0x27156d['shift']());}catch(_0x442b0c){_0x27156d['push'](_0x27156d['shift']());}}}(a93_0x22bb,0x524ab));const a93_0x4218dc={};a93_0x4218dc[a93_0x27a3d5(0xbb)]=0x0,a93_0x4218dc['toString']=function(){const _0x388993=a93_0x27a3d5,_0x41b961={};_0x41b961[_0x388993(0xbf)]=_0x388993(0xbe);const _0x378525=_0x41b961;return _0x378525[_0x388993(0xbf)];};const a93_0x3baac2={};function a93_0x22bb(){const _0x3612ab=['5905134YGLzqy','HookState.POST','value','156680kRAUql','4ZNdtnM','HookState.NONE','XaEpO','HookState.PRE','toString','2dFlXQr','982850Wafbla','597987cOnIfc','453031BqVfea','91hZRPJJ','find','LPBBp','exports','freeze','70RDNPkq','AMvAX','684414SSwNto','121904oSPHBD'];a93_0x22bb=function(){return _0x3612ab;};return a93_0x22bb();}a93_0x3baac2[a93_0x27a3d5(0xbb)]=0x1,a93_0x3baac2[a93_0x27a3d5(0xc1)]=function(){const _0x366750=a93_0x27a3d5,_0x512a14={};_0x512a14[_0x366750(0xb6)]=_0x366750(0xc0);const _0x3e10d4=_0x512a14;return _0x3e10d4[_0x366750(0xb6)];};const a93_0x141de5={};a93_0x141de5[a93_0x27a3d5(0xbb)]=0x2,a93_0x141de5[a93_0x27a3d5(0xc1)]=function(){const _0x83c4cc=a93_0x27a3d5,_0x4b7923={};_0x4b7923[_0x83c4cc(0xc8)]=_0x83c4cc(0xba);const _0x1391db=_0x4b7923;return _0x1391db[_0x83c4cc(0xc8)];};function a93_0x31fc(_0x269170,_0x3786eb){const _0x22bbff=a93_0x22bb();return a93_0x31fc=function(_0x31fc12,_0x32b9d2){_0x31fc12=_0x31fc12-0xb3;let _0x3aa539=_0x22bbff[_0x31fc12];return _0x3aa539;},a93_0x31fc(_0x269170,_0x3786eb);}const HookState=Object[a93_0x27a3d5(0xb4)]({'NONE':a93_0x4218dc,'PRE':a93_0x3baac2,'POST':a93_0x141de5,'fromValue'(_0x4d558d){const _0x2e5030=a93_0x27a3d5;return Object['values'](HookState)[_0x2e5030(0xc7)](_0x1c4c4d=>_0x1c4c4d[_0x2e5030(0xbb)]===_0x4d558d);}});module[a93_0x27a3d5(0xb3)]=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x5180c1=a94_0x14f7;(function(_0x498d67,_0x5c6073){const _0x326b6e=a94_0x14f7,_0x29e996=_0x498d67();while(!![]){try{const _0x427f66=parseInt(_0x326b6e(0x87))/0x1*(-parseInt(_0x326b6e(0x80))/0x2)+-parseInt(_0x326b6e(0x74))/0x3*(parseInt(_0x326b6e(0x70))/0x4)+-parseInt(_0x326b6e(0x73))/0x5*(parseInt(_0x326b6e(0x85))/0x6)+parseInt(_0x326b6e(0x8d))/0x7+-parseInt(_0x326b6e(0x88))/0x8*(parseInt(_0x326b6e(0x83))/0x9)+-parseInt(_0x326b6e(0x7f))/0xa+parseInt(_0x326b6e(0x6b))/0xb;if(_0x427f66===_0x5c6073)break;else _0x29e996['push'](_0x29e996['shift']());}catch(_0x10f99d){_0x29e996['push'](_0x29e996['shift']());}}}(a94_0x18dd,0x75420));const a94_0x2ced0a={};function a94_0x18dd(){const _0x486589=['465344usbdFw','freeze','nFAhV','TestFrameworkState.SETUP_FIXTURE','kjeBS','5818883AVzsFh','AqFsu','values','14712390FNWlGB','OSaIm','TestFrameworkState.TEST','ODCUC','TestFrameworkState.LOG','2376ugZcqw','VshAe','TestFrameworkState.BEFORE_EACH','3667330HdPGHt','204xeNnZW','UGapW','TestFrameworkState.INIT_TEST','toString','zQfHr','lxeqy','PDEHD','value','zBidc','TestFrameworkState.TEST_SCREENSHOT','TestFrameworkState.BEFORE_ALL','1105320ObOBZM','1046wanlpA','ydgep','TestFrameworkState.LOG_REPORT','18QbfqQk','TestFrameworkState.AFTER_ALL','6pqnBJE','qrjTM','1315YXQWiA'];a94_0x18dd=function(){return _0x486589;};return a94_0x18dd();}a94_0x2ced0a[a94_0x5180c1(0x7b)]=0x0,a94_0x2ced0a[a94_0x5180c1(0x77)]=function(){const _0xeb9ad=a94_0x5180c1,_0x4bc5d9={};_0x4bc5d9['VshAe']='TestFrameworkState.NONE';const _0x26a2f5=_0x4bc5d9;return _0x26a2f5[_0xeb9ad(0x71)];};const a94_0x1f843c={};a94_0x1f843c[a94_0x5180c1(0x7b)]=0x1,a94_0x1f843c['toString']=function(){const _0x41cb24=a94_0x5180c1,_0x4dbf0f={};_0x4dbf0f['ydgep']=_0x41cb24(0x7e);const _0x292f93=_0x4dbf0f;return _0x292f93[_0x41cb24(0x81)];};const a94_0xf342f4={};a94_0xf342f4[a94_0x5180c1(0x7b)]=0x2,a94_0xf342f4[a94_0x5180c1(0x77)]=function(){const _0x3d0df5=a94_0x5180c1,_0x140d3f={};_0x140d3f[_0x3d0df5(0x8a)]=_0x3d0df5(0x6f);const _0x4c6a6a=_0x140d3f;return _0x4c6a6a['nFAhV'];};const a94_0x2ea125={};a94_0x2ea125['value']=0x3,a94_0x2ea125['toString']=function(){const _0x449e00=a94_0x5180c1,_0x292a39={};_0x292a39[_0x449e00(0x75)]=_0x449e00(0x8b);const _0x10f059=_0x292a39;return _0x10f059['UGapW'];};function a94_0x14f7(_0x1b84a0,_0x3b2d03){const _0x18ddd3=a94_0x18dd();return a94_0x14f7=function(_0x14f771,_0x40b812){_0x14f771=_0x14f771-0x69;let _0x190d33=_0x18ddd3[_0x14f771];return _0x190d33;},a94_0x14f7(_0x1b84a0,_0x3b2d03);}const a94_0x239612={};a94_0x239612[a94_0x5180c1(0x7b)]=0x4,a94_0x239612[a94_0x5180c1(0x77)]=function(){const _0x3e7c53=a94_0x5180c1,_0x42470f={};_0x42470f[_0x3e7c53(0x69)]=_0x3e7c53(0x76);const _0x40275e=_0x42470f;return _0x40275e[_0x3e7c53(0x69)];};const a94_0x2b6678={};a94_0x2b6678[a94_0x5180c1(0x7b)]=0x5,a94_0x2b6678[a94_0x5180c1(0x77)]=function(){const _0x5d0bc3=a94_0x5180c1,_0xd7eb81={};_0xd7eb81[_0x5d0bc3(0x86)]=_0x5d0bc3(0x72);const _0x3b0b01=_0xd7eb81;return _0x3b0b01[_0x5d0bc3(0x86)];};const a94_0x1da4aa={};a94_0x1da4aa[a94_0x5180c1(0x7b)]=0x6,a94_0x1da4aa[a94_0x5180c1(0x77)]=function(){const _0x45a80e=a94_0x5180c1,_0x4781d3={};_0x4781d3[_0x45a80e(0x78)]='TestFrameworkState.AFTER_EACH';const _0x488aa2=_0x4781d3;return _0x488aa2[_0x45a80e(0x78)];};const a94_0x5480ed={};a94_0x5480ed[a94_0x5180c1(0x7b)]=0x7,a94_0x5480ed[a94_0x5180c1(0x77)]=function(){const _0x1c4947=a94_0x5180c1,_0x20352f={};_0x20352f[_0x1c4947(0x79)]=_0x1c4947(0x6d);const _0x1c1de5=_0x20352f;return _0x1c1de5[_0x1c4947(0x79)];};const a94_0x2d5948={};a94_0x2d5948[a94_0x5180c1(0x7b)]=0x8,a94_0x2d5948[a94_0x5180c1(0x77)]=function(){const _0x311615=a94_0x5180c1,_0x42d0b6={};_0x42d0b6[_0x311615(0x7c)]='TestFrameworkState.STEP';const _0x3f2ce8=_0x42d0b6;return _0x3f2ce8[_0x311615(0x7c)];};const a94_0x4384f8={};a94_0x4384f8[a94_0x5180c1(0x7b)]=0x9,a94_0x4384f8['toString']=function(){const _0x427b36=a94_0x5180c1,_0x547715={};_0x547715['OSaIm']=_0x427b36(0x82);const _0x8ec6df=_0x547715;return _0x8ec6df[_0x427b36(0x6c)];};const a94_0x40847e={};a94_0x40847e[a94_0x5180c1(0x7b)]=0xa,a94_0x40847e[a94_0x5180c1(0x77)]=function(){const _0x21cdc2=a94_0x5180c1,_0x2e4e9b={};_0x2e4e9b[_0x21cdc2(0x8c)]=_0x21cdc2(0x84);const _0x594b51=_0x2e4e9b;return _0x594b51[_0x21cdc2(0x8c)];};const a94_0x41efbb={};a94_0x41efbb[a94_0x5180c1(0x7b)]=0xb,a94_0x41efbb['toString']=function(){const _0x3e76f6=a94_0x5180c1,_0x1c3e05={};_0x1c3e05['PDEHD']=_0x3e76f6(0x7d);const _0x2d82ee=_0x1c3e05;return _0x2d82ee[_0x3e76f6(0x7a)];};const a94_0x1e0619={};a94_0x1e0619[a94_0x5180c1(0x7b)]=0xc,a94_0x1e0619['toString']=function(){const _0x4f7136=a94_0x5180c1,_0x1e7bd6={};_0x1e7bd6[_0x4f7136(0x6e)]='TestFrameworkState.TEST_STEP';const _0x4bf437=_0x1e7bd6;return _0x4bf437[_0x4f7136(0x6e)];};const TestFrameworkState=Object[a94_0x5180c1(0x89)]({'NONE':a94_0x2ced0a,'BEFORE_ALL':a94_0x1f843c,'LOG':a94_0xf342f4,'SETUP_FIXTURE':a94_0x2ea125,'INIT_TEST':a94_0x239612,'BEFORE_EACH':a94_0x2b6678,'AFTER_EACH':a94_0x1da4aa,'TEST':a94_0x5480ed,'STEP':a94_0x2d5948,'LOG_REPORT':a94_0x4384f8,'AFTER_ALL':a94_0x40847e,'TEST_SCREENSHOT':a94_0x41efbb,'TEST_STEP':a94_0x1e0619,'fromValue'(_0x1a0a80){const _0x25c232=a94_0x5180c1;return Object[_0x25c232(0x6a)](TestFrameworkState)['find'](_0x593b47=>_0x593b47[_0x25c232(0x7b)]===_0x1a0a80);}});module['exports']=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a95_0x575472=a95_0x107e;function a95_0x107e(_0x38f5b7,_0x12863e){const _0x1198ca=a95_0x1198();return a95_0x107e=function(_0x107e7f,_0x55c6de){_0x107e7f=_0x107e7f-0x81;let _0x462fec=_0x1198ca[_0x107e7f];return _0x462fec;},a95_0x107e(_0x38f5b7,_0x12863e);}(function(_0x5c5809,_0x434d4b){const _0x2f11d3=a95_0x107e,_0x515738=_0x5c5809();while(!![]){try{const _0x394d15=parseInt(_0x2f11d3(0xc5))/0x1+parseInt(_0x2f11d3(0x105))/0x2*(parseInt(_0x2f11d3(0xdd))/0x3)+-parseInt(_0x2f11d3(0xae))/0x4*(parseInt(_0x2f11d3(0xb9))/0x5)+parseInt(_0x2f11d3(0x91))/0x6*(-parseInt(_0x2f11d3(0x93))/0x7)+-parseInt(_0x2f11d3(0xd0))/0x8+-parseInt(_0x2f11d3(0xce))/0x9+parseInt(_0x2f11d3(0xd9))/0xa*(parseInt(_0x2f11d3(0xc0))/0xb);if(_0x394d15===_0x434d4b)break;else _0x515738['push'](_0x515738['shift']());}catch(_0x5bcead){_0x515738['push'](_0x515738['shift']());}}}(a95_0x1198,0x32bd8));function a95_0x1198(){const _0x22c519=['statSync','testhubConfig','144crGrRd','vmUtG','69755dyPKBe','resolveInstance','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','size','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','KEY_TEST_ID','JDkuh','CqCin',',\x20filepath:\x20','getTestIdentifierFromTestInfo','./state/testFrameworkState','getAllData','KEY_FILE_NAME','copyFileSync','wCcbG','pQlQv','hvYAR','logger','hdYKR','mkdirSync','./state/hookState','Cleared\x20attachment\x20folder','trim','setTestDetails','uvqxI','.browserstack','252uhPSUa','error','tTjBE','POST','jest','buildHashedId','WTxAB','LNdOb','Created\x20folder:\x20%s','PRDyq','aMqKC','4150dVUCZQ','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','https','Mnadf','toFixed','startsWith','PHxef','77858yWmlRJ','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','EUbnx','./TestInfo','QATmx','213130JIzonS','toObject','uploadAttachments','clearAttachments','oSFQe','JYHPP','getTestFramework','format','homedir','1152882iZmUjX','XTtgf','2570336JchUvR','trackFile','TestHubModule','close','KEY_TEST_ATTACHMENTS','HpImr','pipe','https://','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','870TXVDFC','getTrackedInstance','kEiEg','statusCode','546iPWQzT','KEY_FILE_SIZE','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','TEST','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','getState','get','TSgQX','KEY_FILE_LEVEL','getTestDetails','getInstance','unlinkSync','force','Created\x20.browserstack\x20folder\x20at:\x20%s','bUTQt','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','./browserstackCLI','TestLevel','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','jeFgD','./cliUtils','createWriteStream','goBxf','currentTest','recursive','rmSync','basename','BuildLevel','./framework/automationFramework','qsTEj','IvKzm','join','YXOks','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','./framework/constants/testFrameworkConstants','./modules/playwrightDriverModule','modules','MLnXb','toLowerCase','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','1316sSVqpd','name','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','cHQqy','DxQZo','kvLLG','addMultipleEntries','existsSync','HdCsX','NMJRL','message','path','debug','QIKGo','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','http://','LxSGt','getTestFrameworkDetail','ZphYA'];a95_0x1198=function(){return _0x22c519;};return a95_0x1198();}const os=require('os'),fs=require('fs'),path=require(a95_0x575472(0x87)),util=require('util'),BrowserstackCLI=require(a95_0x575472(0xed)),https=require(a95_0x575472(0xbb)),http=require('http'),AutomationFramework=require(a95_0x575472(0xf9)),PlaywrightDriverModule=require(a95_0x575472(0x100)),TestInfo=require(a95_0x575472(0xc3)),TestFrameworkConstants=require(a95_0x575472(0xff)),{createClassLogger}=require('../../helpers/classLogger.js');class uploadAttachmentsManager{static [a95_0x575472(0xa5)]=createClassLogger('uploadAttachmentsManager');static[a95_0x575472(0xc7)](_0x320ccc,_0x16c4bd=![]){const _0x775bef=a95_0x575472,_0x4afcfa={};_0x4afcfa[_0x775bef(0xb5)]=function(_0x2e27e0,_0x3f0bcb){return _0x2e27e0/_0x3f0bcb;},_0x4afcfa[_0x775bef(0x89)]=function(_0x2b41d2,_0x560f3a){return _0x2b41d2*_0x560f3a;},_0x4afcfa[_0x775bef(0xac)]=function(_0x4c8843,_0x47b0d6){return _0x4c8843>_0x47b0d6;},_0x4afcfa[_0x775bef(0xbf)]=_0x775bef(0xec),_0x4afcfa[_0x775bef(0x8c)]='File\x20downloaded\x20to:\x20%s',_0x4afcfa['QATmx']=function(_0x155f4e,_0x1cc36c){return _0x155f4e===_0x1cc36c;},_0x4afcfa['JYHPP']='finish',_0x4afcfa['oSFQe']=_0x775bef(0x95),_0x4afcfa['WTxAB']=_0x775bef(0xfe),_0x4afcfa[_0x775bef(0xb8)]='Attachment\x20recevied\x20for\x20path:\x20%s',_0x4afcfa['PRDyq']=_0x775bef(0xad),_0x4afcfa[_0x775bef(0x108)]='.browserstack\x20folder\x20not\x20found\x20at:\x20%s',_0x4afcfa[_0x775bef(0xf0)]=_0x775bef(0xea),_0x4afcfa[_0x775bef(0xa6)]=_0x775bef(0xb6),_0x4afcfa[_0x775bef(0x9a)]=function(_0x225413,_0xdd5e8f){return _0x225413===_0xdd5e8f;},_0x4afcfa['IvKzm']=_0x775bef(0x98),_0x4afcfa[_0x775bef(0x109)]=_0x775bef(0xd7),_0x4afcfa[_0x775bef(0xdb)]=_0x775bef(0x8b),_0x4afcfa[_0x775bef(0xa4)]=_0x775bef(0xaf),_0x4afcfa[_0x775bef(0xc2)]=_0x775bef(0xc1),_0x4afcfa['pQlQv']=function(_0x122983,_0xe5a29b){return _0x122983/_0xe5a29b;},_0x4afcfa[_0x775bef(0xd5)]=function(_0x585c57,_0x207a65){return _0x585c57*_0x207a65;},_0x4afcfa[_0x775bef(0x84)]='File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.';const _0x135f66=_0x4afcfa;this[_0x775bef(0xa5)][_0x775bef(0x88)](util[_0x775bef(0xcc)](_0x135f66[_0x775bef(0xb8)],_0x320ccc));const _0x2fa4c7=os['homedir'](),_0x4fe864=path['join'](_0x2fa4c7,_0x135f66[_0x775bef(0xb7)]);!fs[_0x775bef(0x83)](_0x4fe864)&&(this[_0x775bef(0xa5)][_0x775bef(0x88)](util[_0x775bef(0xcc)](_0x135f66['cHQqy'],_0x4fe864)),fs[_0x775bef(0xa7)](_0x4fe864),this[_0x775bef(0xa5)][_0x775bef(0x88)](util[_0x775bef(0xcc)](_0x135f66[_0x775bef(0xf0)],_0x4fe864)));const _0x54638f=BrowserstackCLI[_0x775bef(0xe7)]()[_0x775bef(0x101)][_0x775bef(0xd2)]?.[_0x775bef(0x90)]?.[_0x775bef(0xc6)]()?.['buildHashedId'],_0x410149=path[_0x775bef(0xfc)](_0x4fe864,_0x54638f);!fs[_0x775bef(0x83)](_0x410149)&&(fs[_0x775bef(0xa7)](_0x410149),this['logger'][_0x775bef(0x88)](util['format'](_0x135f66[_0x775bef(0xa6)],_0x410149)));if(_0x135f66[_0x775bef(0x9a)](_0x320ccc[_0x775bef(0xaa)](),'')){this[_0x775bef(0xa5)][_0x775bef(0x88)](util['format'](_0x135f66[_0x775bef(0xfb)]));return;}if(_0x320ccc['startsWith'](_0x135f66[_0x775bef(0x109)])||_0x320ccc[_0x775bef(0xbe)](_0x135f66[_0x775bef(0xdb)])){const _0x313f76=_0x320ccc['startsWith'](_0x135f66[_0x775bef(0x109)])?https:http,_0x14ae91=path[_0x775bef(0xf7)](_0x320ccc),_0x56e74a=path[_0x775bef(0xfc)](_0x410149,_0x14ae91),_0x107ee6=fs[_0x775bef(0xf2)](_0x56e74a);_0x313f76[_0x775bef(0xe3)](_0x320ccc,_0x2849cf=>{const _0x482212=_0x775bef,_0x16f245={'kvLLG':function(_0x4d00d7,_0x408ad0){const _0x303076=a95_0x107e;return _0x135f66[_0x303076(0xb5)](_0x4d00d7,_0x408ad0);},'qsTEj':function(_0x3e22ae,_0x27bc23){const _0x38ea5d=a95_0x107e;return _0x135f66[_0x38ea5d(0x89)](_0x3e22ae,_0x27bc23);},'XTtgf':function(_0x3f1f81,_0xa7f91a){const _0x3c2279=a95_0x107e;return _0x135f66[_0x3c2279(0xac)](_0x3f1f81,_0xa7f91a);},'ZSzSS':_0x135f66[_0x482212(0xbf)],'HvMPR':_0x135f66[_0x482212(0x8c)]};if(_0x135f66[_0x482212(0xc4)](_0x2849cf[_0x482212(0xdc)],0xc8))_0x2849cf[_0x482212(0xd6)](_0x107ee6),_0x107ee6['on'](_0x135f66[_0x482212(0xca)],()=>{const _0x118f8e=_0x482212;_0x107ee6[_0x118f8e(0xd3)]();const _0x30f8e5=fs[_0x118f8e(0x8f)](_0x56e74a),_0x4d0e48=_0x16f245[_0x118f8e(0x81)](_0x30f8e5['size'],_0x16f245[_0x118f8e(0xfa)](0x400,0x400));if(_0x16f245[_0x118f8e(0xcf)](_0x4d0e48,0x64)){this['logger'][_0x118f8e(0x88)](util[_0x118f8e(0xcc)](_0x16f245['ZSzSS'],_0x4d0e48['toFixed'](0x2))),fs[_0x118f8e(0xe8)](_0x56e74a);return;}this[_0x118f8e(0xa5)][_0x118f8e(0x88)](util['format'](_0x16f245['HvMPR'],_0x56e74a)),uploadAttachmentsManager['trackFile'](_0x56e74a,_0x16c4bd);});else{this[_0x482212(0xa5)][_0x482212(0x88)](util[_0x482212(0xcc)](_0x135f66[_0x482212(0xc9)],_0x2849cf[_0x482212(0xdc)])),_0x107ee6[_0x482212(0xd3)](),fs[_0x482212(0xe8)](_0x56e74a);return;}})['on'](_0x135f66['hvYAR'],_0x27a2ce=>{const _0x2fef99=_0x775bef;this[_0x2fef99(0xa5)][_0x2fef99(0x88)](util[_0x2fef99(0xcc)](_0x135f66[_0x2fef99(0xb4)],_0x27a2ce[_0x2fef99(0x86)])),_0x107ee6[_0x2fef99(0xd3)](),fs[_0x2fef99(0xe8)](_0x56e74a);return;});}else{if(!fs['existsSync'](_0x320ccc)){this[_0x775bef(0xa5)][_0x775bef(0x88)](util['format'](_0x135f66[_0x775bef(0xc2)],_0x320ccc));return;}const _0x4ff29c=fs[_0x775bef(0x8f)](_0x320ccc),_0x37074c=_0x135f66[_0x775bef(0xa3)](_0x4ff29c[_0x775bef(0x96)],_0x135f66['HpImr'](0x400,0x400));if(_0x135f66[_0x775bef(0xac)](_0x37074c,0x64)){this['logger'][_0x775bef(0x88)](util[_0x775bef(0xcc)](_0x135f66[_0x775bef(0x84)],_0x37074c[_0x775bef(0xbd)](0x2)));return;}const _0x5ad976=path[_0x775bef(0xf7)](_0x320ccc),_0x2f9087=path['join'](_0x410149,_0x5ad976);fs[_0x775bef(0xa1)](_0x320ccc,_0x2f9087),uploadAttachmentsManager[_0x775bef(0xd1)](_0x2f9087,_0x16c4bd);}}static[a95_0x575472(0xd1)](_0x2b9b3e,_0x3e7c66){const _0x391cfd=a95_0x575472,_0x2a60dd={'goBxf':function(_0x332d1a,_0x2f4b76){return _0x332d1a(_0x2f4b76);},'bUTQt':'./browserstackCLI','zTzSv':_0x391cfd(0xf1),'lqUjl':function(_0x14731d,_0x507c8b){return _0x14731d===_0x507c8b;},'XxiRT':_0x391cfd(0xb2),'tTjBE':_0x391cfd(0xdf),'RgQeI':_0x391cfd(0xf8),'CqCin':_0x391cfd(0xee),'Mnadf':_0x391cfd(0xe1),'YXOks':function(_0x3c4327,_0x4bffbc){return _0x3c4327(_0x4bffbc);},'NMJRL':_0x391cfd(0x9e),'vmUtG':_0x391cfd(0xa8),'LXVqR':_0x391cfd(0x104),'pIfBb':_0x391cfd(0x8a),'wCcbG':_0x391cfd(0xd8)};try{let _0x423d69;const _0x1204e7=global['__workerDetails']?.[_0x391cfd(0xf4)]?.['testInfo'],_0x530483=_0x2a60dd[_0x391cfd(0xf3)](require,_0x2a60dd[_0x391cfd(0xeb)]),_0x1e4f18=_0x2a60dd[_0x391cfd(0xf3)](require,_0x2a60dd['zTzSv']),_0x39cb81=_0x530483['getInstance']()['isRunning']()&&_0x2a60dd['lqUjl'](_0x1e4f18[_0x391cfd(0x8d)]()?.[_0x391cfd(0x106)]?.[_0x391cfd(0x103)](),_0x2a60dd['XxiRT']);if(_0x39cb81){_0x423d69=global['__jestCurrentTestIdentifier'];if(!_0x423d69){const _0x5b54e6=AutomationFramework[_0x391cfd(0xda)]();_0x423d69=AutomationFramework[_0x391cfd(0xe2)](_0x5b54e6,PlaywrightDriverModule[_0x391cfd(0x99)],'');}this[_0x391cfd(0xa5)][_0x391cfd(0x88)](_0x391cfd(0x107)+_0x423d69);}else{if(!_0x1204e7){const _0x1a67f0=AutomationFramework[_0x391cfd(0xda)]();_0x423d69=AutomationFramework[_0x391cfd(0xe2)](_0x1a67f0,PlaywrightDriverModule[_0x391cfd(0x99)],'');}else _0x423d69=TestInfo[_0x391cfd(0x9d)](_0x1204e7,_0x1204e7['retry']);this['logger'][_0x391cfd(0x88)](_0x391cfd(0xba)+_0x423d69);}if(!_0x423d69){this[_0x391cfd(0xa5)]['debug'](_0x2a60dd[_0x391cfd(0xb0)]);return;}const _0x23792c={[TestFrameworkConstants[_0x391cfd(0xde)]]:fs['statSync'](_0x2b9b3e)[_0x391cfd(0x96)],[TestFrameworkConstants[_0x391cfd(0xa0)]]:path[_0x391cfd(0xf7)](_0x2b9b3e),[TestFrameworkConstants['KEY_FILE_PATH']]:_0x2b9b3e,[TestFrameworkConstants[_0x391cfd(0xe5)]]:_0x3e7c66?_0x2a60dd['RgQeI']:_0x2a60dd[_0x391cfd(0x9b)]};if(_0x39cb81){const _0x33cd84=_0x530483[_0x391cfd(0xe7)]()[_0x391cfd(0xcb)]();if(!_0x33cd84){this[_0x391cfd(0xa5)][_0x391cfd(0x88)](_0x2a60dd[_0x391cfd(0xbc)]);return;}const _0x2dce57=_0x2a60dd[_0x391cfd(0xfd)](require,_0x2a60dd[_0x391cfd(0x85)]),_0x39edf5=_0x2a60dd[_0x391cfd(0xf3)](require,_0x2a60dd[_0x391cfd(0x92)]),_0x4ee72e=_0x33cd84[_0x391cfd(0x94)](_0x2dce57[_0x391cfd(0xe0)],_0x39edf5[_0x391cfd(0xb1)]);if(!_0x4ee72e){this[_0x391cfd(0xa5)][_0x391cfd(0x88)](_0x2a60dd['LXVqR']);return;}const _0x273476=_0x4ee72e[_0x391cfd(0x9f)]()[_0x391cfd(0xe3)](_0x423d69)||{},_0xc36762=_0x273476[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x3aaf7c={..._0xc36762};_0x3aaf7c[_0x2b9b3e]=_0x23792c;const _0x5e706b=_0x3aaf7c,_0xf4fae0={[TestFrameworkConstants[_0x391cfd(0xd4)]]:_0x5e706b},_0x3cd622={};_0x3cd622[_0x423d69]=_0xf4fae0,_0x4ee72e[_0x391cfd(0x82)](_0x3cd622),this[_0x391cfd(0xa5)]['debug']('trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20'+_0x423d69+',\x20filepath:\x20'+_0x2b9b3e);}else{const _0x6d23ff=TestInfo[_0x391cfd(0xe6)](_0x423d69),_0x2b97b3=_0x6d23ff[TestFrameworkConstants[_0x391cfd(0xd4)]]||{};_0x2b97b3[_0x2b9b3e]=_0x23792c,_0x6d23ff[TestFrameworkConstants[_0x391cfd(0xd4)]]=_0x2b97b3,TestInfo[_0x391cfd(0xab)](_0x423d69,_0x6d23ff),this[_0x391cfd(0xa5)][_0x391cfd(0x88)](_0x391cfd(0xef)+_0x423d69+_0x391cfd(0x9c)+_0x2b9b3e);}this[_0x391cfd(0xa5)]['debug'](util['format'](_0x2a60dd['pIfBb'],_0x2b9b3e));}catch(_0x386179){this[_0x391cfd(0xa5)][_0x391cfd(0x88)](util[_0x391cfd(0xcc)](_0x2a60dd[_0x391cfd(0xa2)],_0x386179[_0x391cfd(0x86)]));}}static[a95_0x575472(0xc8)](){const _0x22dfd9=a95_0x575472,_0x37fa1f={};_0x37fa1f[_0x22dfd9(0x102)]=_0x22dfd9(0xad),_0x37fa1f[_0x22dfd9(0xe4)]=_0x22dfd9(0x97),_0x37fa1f[_0x22dfd9(0x8e)]=_0x22dfd9(0xa9);const _0x1e4b32=_0x37fa1f,_0x3bd63d=os[_0x22dfd9(0xcd)](),_0x137092=path['join'](_0x3bd63d,_0x1e4b32[_0x22dfd9(0x102)]);if(!fs[_0x22dfd9(0x83)](_0x137092))return;const _0x186aad=BrowserstackCLI[_0x22dfd9(0xe7)]()[_0x22dfd9(0x101)][_0x22dfd9(0xd2)]?.[_0x22dfd9(0x90)]?.['toObject']()?.[_0x22dfd9(0xb3)],_0x5d2623=_0x186aad?path[_0x22dfd9(0xfc)](_0x137092,_0x186aad):null;if(!_0x5d2623||!fs[_0x22dfd9(0x83)](_0x5d2623)){this['logger'][_0x22dfd9(0x88)](util[_0x22dfd9(0xcc)](_0x1e4b32[_0x22dfd9(0xe4)],_0x186aad));return;}const _0x36416d={};_0x36416d[_0x22dfd9(0xf5)]=!![],_0x36416d[_0x22dfd9(0xe9)]=!![],fs[_0x22dfd9(0xf6)](_0x5d2623,_0x36416d),this[_0x22dfd9(0xa5)][_0x22dfd9(0x88)](util[_0x22dfd9(0xcc)](_0x1e4b32[_0x22dfd9(0x8e)]));}}module['exports']=uploadAttachmentsManager;
|
|
1
|
+
const a95_0xe3e3b5=a95_0x56a0;(function(_0x2770fd,_0x4db80d){const _0x47252f=a95_0x56a0,_0x3137b5=_0x2770fd();while(!![]){try{const _0x3db1eb=-parseInt(_0x47252f(0x21a))/0x1+-parseInt(_0x47252f(0x1d2))/0x2*(parseInt(_0x47252f(0x1c0))/0x3)+-parseInt(_0x47252f(0x1ef))/0x4+parseInt(_0x47252f(0x1f6))/0x5+-parseInt(_0x47252f(0x20e))/0x6+parseInt(_0x47252f(0x1ae))/0x7*(parseInt(_0x47252f(0x228))/0x8)+parseInt(_0x47252f(0x208))/0x9;if(_0x3db1eb===_0x4db80d)break;else _0x3137b5['push'](_0x3137b5['shift']());}catch(_0xad7bfa){_0x3137b5['push'](_0x3137b5['shift']());}}}(a95_0x3ad5,0xa910e));const os=require('os'),fs=require('fs'),path=require('path'),util=require(a95_0xe3e3b5(0x224)),BrowserstackCLI=require(a95_0xe3e3b5(0x218)),https=require(a95_0xe3e3b5(0x229)),http=require(a95_0xe3e3b5(0x1b8)),AutomationFramework=require('./framework/automationFramework'),PlaywrightDriverModule=require(a95_0xe3e3b5(0x215)),TestInfo=require(a95_0xe3e3b5(0x1e8)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require(a95_0xe3e3b5(0x1c1));class uploadAttachmentsManager{static [a95_0xe3e3b5(0x1ba)]=createClassLogger(a95_0xe3e3b5(0x1ab));static[a95_0xe3e3b5(0x1fe)](_0x4287bf,_0x4e43fb=![]){const _0x46586f=a95_0xe3e3b5,_0x2a55de={};_0x2a55de['yzpUV']=function(_0x81a09d,_0x27640c){return _0x81a09d/_0x27640c;},_0x2a55de[_0x46586f(0x213)]=function(_0x2d019b,_0x4afd7a){return _0x2d019b*_0x4afd7a;},_0x2a55de['PHXue']=function(_0x2b301d,_0x508a40){return _0x2b301d>_0x508a40;},_0x2a55de['DJdXM']=_0x46586f(0x1cc),_0x2a55de[_0x46586f(0x22f)]=_0x46586f(0x219),_0x2a55de[_0x46586f(0x1b4)]=function(_0x204f1a,_0x162e6e){return _0x204f1a===_0x162e6e;},_0x2a55de[_0x46586f(0x1fd)]='finish',_0x2a55de[_0x46586f(0x216)]='Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload',_0x2a55de[_0x46586f(0x1b5)]=_0x46586f(0x1b3),_0x2a55de[_0x46586f(0x1ce)]=_0x46586f(0x22a),_0x2a55de['QxUnu']=_0x46586f(0x1b0),_0x2a55de[_0x46586f(0x1cb)]=_0x46586f(0x22d),_0x2a55de['PuTfV']=_0x46586f(0x1f0),_0x2a55de[_0x46586f(0x1e3)]='Created\x20folder:\x20%s',_0x2a55de[_0x46586f(0x234)]=function(_0x1bbfe8,_0x26eae7){return _0x1bbfe8===_0x26eae7;},_0x2a55de['gEBLy']=_0x46586f(0x1da),_0x2a55de[_0x46586f(0x20b)]=_0x46586f(0x235),_0x2a55de[_0x46586f(0x204)]=_0x46586f(0x230),_0x2a55de['KWSwJ']=_0x46586f(0x1c6),_0x2a55de[_0x46586f(0x237)]='Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s',_0x2a55de[_0x46586f(0x201)]=function(_0x1bc31f,_0x47f709){return _0x1bc31f*_0x47f709;},_0x2a55de['wjbBg']=_0x46586f(0x1c2);const _0x37f3fe=_0x2a55de;this[_0x46586f(0x1ba)][_0x46586f(0x21b)](util['format'](_0x37f3fe[_0x46586f(0x1ce)],_0x4287bf));const _0x5763f9=os[_0x46586f(0x1ea)](),_0x27ff88=path[_0x46586f(0x1d5)](_0x5763f9,_0x37f3fe[_0x46586f(0x1ed)]);!fs['existsSync'](_0x27ff88)&&(this[_0x46586f(0x1ba)]['debug'](util['format'](_0x37f3fe['hajGl'],_0x27ff88)),fs[_0x46586f(0x21d)](_0x27ff88),this[_0x46586f(0x1ba)][_0x46586f(0x21b)](util[_0x46586f(0x1e6)](_0x37f3fe[_0x46586f(0x21e)],_0x27ff88)));const _0x2a8e2d=BrowserstackCLI[_0x46586f(0x209)]()[_0x46586f(0x1ca)][_0x46586f(0x1cf)]?.['testhubConfig']?.[_0x46586f(0x1d3)]()?.[_0x46586f(0x1bd)],_0x408fe3=path[_0x46586f(0x1d5)](_0x27ff88,_0x2a8e2d);!fs['existsSync'](_0x408fe3)&&(fs[_0x46586f(0x21d)](_0x408fe3),this[_0x46586f(0x1ba)]['debug'](util[_0x46586f(0x1e6)](_0x37f3fe[_0x46586f(0x1e3)],_0x408fe3)));if(_0x37f3fe[_0x46586f(0x234)](_0x4287bf[_0x46586f(0x1f7)](),'')){this[_0x46586f(0x1ba)]['debug'](util[_0x46586f(0x1e6)](_0x37f3fe[_0x46586f(0x20c)]));return;}if(_0x4287bf['startsWith'](_0x37f3fe[_0x46586f(0x20b)])||_0x4287bf[_0x46586f(0x227)](_0x37f3fe[_0x46586f(0x204)])){const _0x13e97e=_0x4287bf[_0x46586f(0x227)](_0x37f3fe[_0x46586f(0x20b)])?https:http,_0x4deebd=path[_0x46586f(0x212)](_0x4287bf),_0x501379=path[_0x46586f(0x1d5)](_0x408fe3,_0x4deebd),_0x2b770e=fs[_0x46586f(0x226)](_0x501379);_0x13e97e['get'](_0x4287bf,_0x48b90a=>{const _0x2d3ea0=_0x46586f,_0x4bc099={'lfloA':function(_0x4e1a65,_0x4a15c4){const _0x104cde=a95_0x56a0;return _0x37f3fe[_0x104cde(0x1b2)](_0x4e1a65,_0x4a15c4);},'LQqCZ':function(_0x403b9a,_0x3a8f2d){return _0x37f3fe['ZBMAn'](_0x403b9a,_0x3a8f2d);},'JAKRI':function(_0x2c3f5f,_0x113c11){const _0x1a38b9=a95_0x56a0;return _0x37f3fe[_0x1a38b9(0x21f)](_0x2c3f5f,_0x113c11);},'lmmJw':_0x37f3fe['DJdXM'],'fvhCa':_0x37f3fe[_0x2d3ea0(0x22f)]};if(_0x37f3fe['jZYuM'](_0x48b90a[_0x2d3ea0(0x1bb)],0xc8))_0x48b90a[_0x2d3ea0(0x1eb)](_0x2b770e),_0x2b770e['on'](_0x37f3fe[_0x2d3ea0(0x1fd)],()=>{const _0x3a319b=_0x2d3ea0;_0x2b770e[_0x3a319b(0x1db)]();const _0x473be2=fs[_0x3a319b(0x1b1)](_0x501379),_0x48f823=_0x4bc099['lfloA'](_0x473be2[_0x3a319b(0x220)],_0x4bc099[_0x3a319b(0x1ec)](0x400,0x400));if(_0x4bc099[_0x3a319b(0x1fb)](_0x48f823,0x64)){this['logger'][_0x3a319b(0x21b)](util[_0x3a319b(0x1e6)](_0x4bc099[_0x3a319b(0x1f2)],_0x48f823[_0x3a319b(0x1b6)](0x2))),fs[_0x3a319b(0x1c9)](_0x501379);return;}this[_0x3a319b(0x1ba)][_0x3a319b(0x21b)](util[_0x3a319b(0x1e6)](_0x4bc099[_0x3a319b(0x207)],_0x501379)),uploadAttachmentsManager['trackFile'](_0x501379,_0x4e43fb);});else{this[_0x2d3ea0(0x1ba)][_0x2d3ea0(0x21b)](util[_0x2d3ea0(0x1e6)](_0x37f3fe['DAaqf'],_0x48b90a[_0x2d3ea0(0x1bb)])),_0x2b770e[_0x2d3ea0(0x1db)](),fs[_0x2d3ea0(0x1c9)](_0x501379);return;}})['on'](_0x37f3fe[_0x46586f(0x1e5)],_0x4e2ae6=>{const _0x3b26e2=_0x46586f;this[_0x3b26e2(0x1ba)][_0x3b26e2(0x21b)](util[_0x3b26e2(0x1e6)](_0x37f3fe['Mnmte'],_0x4e2ae6['message'])),_0x2b770e[_0x3b26e2(0x1db)](),fs[_0x3b26e2(0x1c9)](_0x501379);return;});}else{if(!fs['existsSync'](_0x4287bf)){this['logger'][_0x46586f(0x21b)](util['format'](_0x37f3fe['BpDAO'],_0x4287bf));return;}const _0x371201=fs[_0x46586f(0x1b1)](_0x4287bf),_0x238ce0=_0x37f3fe[_0x46586f(0x1b2)](_0x371201[_0x46586f(0x220)],_0x37f3fe['slYRG'](0x400,0x400));if(_0x37f3fe[_0x46586f(0x21f)](_0x238ce0,0x64)){this[_0x46586f(0x1ba)][_0x46586f(0x21b)](util[_0x46586f(0x1e6)](_0x37f3fe[_0x46586f(0x1f9)],_0x238ce0[_0x46586f(0x1b6)](0x2)));return;}const _0x54f938=path[_0x46586f(0x212)](_0x4287bf),_0x2ffba0=path[_0x46586f(0x1d5)](_0x408fe3,_0x54f938);fs[_0x46586f(0x1b9)](_0x4287bf,_0x2ffba0),uploadAttachmentsManager[_0x46586f(0x214)](_0x2ffba0,_0x4e43fb);}}static[a95_0xe3e3b5(0x214)](_0x3f24aa,_0xf5348){const _0x17f518=a95_0xe3e3b5,_0x46178f={'NJJOe':function(_0x585003,_0x1146fc){return _0x585003(_0x1146fc);},'ZCcXm':_0x17f518(0x218),'hmxtW':_0x17f518(0x222),'jZEbk':function(_0x1b158c,_0x48b3a9){return _0x1b158c===_0x48b3a9;},'WIGpG':_0x17f518(0x223),'RcEmE':_0x17f518(0x1f1),'RORmh':_0x17f518(0x21c),'dFSpl':_0x17f518(0x1dd),'pDgom':_0x17f518(0x202),'tSdWZ':_0x17f518(0x1b7),'zzUGA':function(_0x92ee7b,_0x24fe64){return _0x92ee7b(_0x24fe64);},'gFlZK':'./state/hookState','pFymv':_0x17f518(0x221),'JoQyD':'Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','TabzX':_0x17f518(0x1f4)};try{let _0x2090e9;const _0x809be=global[_0x17f518(0x1fc)]?.[_0x17f518(0x1c8)]?.[_0x17f518(0x22e)],_0x15aa3f=_0x46178f[_0x17f518(0x1af)](require,_0x46178f[_0x17f518(0x1ac)]),_0x4434a9=_0x46178f[_0x17f518(0x1af)](require,_0x46178f['hmxtW']),_0x4400a8=_0x15aa3f[_0x17f518(0x209)]()[_0x17f518(0x20d)]()&&_0x46178f[_0x17f518(0x1dc)](_0x4434a9['getTestFrameworkDetail']()?.[_0x17f518(0x1c3)]?.[_0x17f518(0x1e0)](),_0x46178f[_0x17f518(0x233)]);if(_0x4400a8){_0x2090e9=global[_0x17f518(0x210)];if(!_0x2090e9){const _0x24efcb=AutomationFramework[_0x17f518(0x231)]();_0x2090e9=AutomationFramework[_0x17f518(0x1de)](_0x24efcb,PlaywrightDriverModule['KEY_TEST_ID'],'');}this[_0x17f518(0x1ba)][_0x17f518(0x21b)](_0x17f518(0x205)+_0x2090e9);}else{if(!_0x809be){const _0x514686=AutomationFramework[_0x17f518(0x231)]();_0x2090e9=AutomationFramework[_0x17f518(0x1de)](_0x514686,PlaywrightDriverModule[_0x17f518(0x1cd)],'');}else _0x2090e9=TestInfo[_0x17f518(0x1d4)](_0x809be,_0x809be[_0x17f518(0x1d7)]);this[_0x17f518(0x1ba)][_0x17f518(0x21b)](_0x17f518(0x1d0)+_0x2090e9);}if(!_0x2090e9){this[_0x17f518(0x1ba)]['debug'](_0x46178f['RcEmE']);return;}const _0xc3cadb={[TestFrameworkConstants[_0x17f518(0x1ee)]]:fs[_0x17f518(0x1b1)](_0x3f24aa)[_0x17f518(0x220)],[TestFrameworkConstants[_0x17f518(0x1e7)]]:path[_0x17f518(0x212)](_0x3f24aa),[TestFrameworkConstants[_0x17f518(0x1c4)]]:_0x3f24aa,[TestFrameworkConstants[_0x17f518(0x203)]]:_0xf5348?_0x46178f[_0x17f518(0x1e1)]:_0x46178f[_0x17f518(0x1e2)]};if(_0x4400a8){const _0x4b0d72=_0x15aa3f['getInstance']()[_0x17f518(0x1d1)]();if(!_0x4b0d72){this['logger'][_0x17f518(0x21b)](_0x46178f['pDgom']);return;}const _0x2b9f3a=_0x46178f[_0x17f518(0x1af)](require,_0x46178f[_0x17f518(0x1d6)]),_0x31485e=_0x46178f[_0x17f518(0x217)](require,_0x46178f[_0x17f518(0x206)]),_0x39b577=_0x4b0d72[_0x17f518(0x1e9)](_0x2b9f3a[_0x17f518(0x1f5)],_0x31485e[_0x17f518(0x1f8)]);if(!_0x39b577){this[_0x17f518(0x1ba)][_0x17f518(0x21b)](_0x46178f[_0x17f518(0x1fa)]);return;}const _0xcf6b20=_0x39b577[_0x17f518(0x22b)]()['get'](_0x2090e9)||{},_0x4a854b=_0xcf6b20[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x3aa888={..._0x4a854b};_0x3aa888[_0x3f24aa]=_0xc3cadb;const _0xd757ff=_0x3aa888,_0x39fe17={[TestFrameworkConstants[_0x17f518(0x1df)]]:_0xd757ff},_0x2f23ab={};_0x2f23ab[_0x2090e9]=_0x39fe17,_0x39b577[_0x17f518(0x1d8)](_0x2f23ab),this[_0x17f518(0x1ba)][_0x17f518(0x21b)](_0x17f518(0x1bc)+_0x2090e9+_0x17f518(0x1be)+_0x3f24aa);}else{const _0x46c60d=TestInfo[_0x17f518(0x22c)](_0x2090e9),_0x16247c=_0x46c60d[TestFrameworkConstants[_0x17f518(0x1df)]]||{};_0x16247c[_0x3f24aa]=_0xc3cadb,_0x46c60d[TestFrameworkConstants[_0x17f518(0x1df)]]=_0x16247c,TestInfo[_0x17f518(0x1f3)](_0x2090e9,_0x46c60d),this[_0x17f518(0x1ba)]['debug'](_0x17f518(0x1c7)+_0x2090e9+_0x17f518(0x1be)+_0x3f24aa);}this[_0x17f518(0x1ba)][_0x17f518(0x21b)](util[_0x17f518(0x1e6)](_0x46178f[_0x17f518(0x20a)],_0x3f24aa));}catch(_0x25f473){this[_0x17f518(0x1ba)][_0x17f518(0x21b)](util[_0x17f518(0x1e6)](_0x46178f[_0x17f518(0x1ad)],_0x25f473[_0x17f518(0x20f)]));}}static[a95_0xe3e3b5(0x232)](){const _0x288edb=a95_0xe3e3b5,_0x35524f={};_0x35524f[_0x288edb(0x1e4)]='.browserstack',_0x35524f[_0x288edb(0x1d9)]=_0x288edb(0x225),_0x35524f['LRljz']=_0x288edb(0x200);const _0x413c08=_0x35524f,_0x41f7a0=os[_0x288edb(0x1ea)](),_0x24d2f6=path['join'](_0x41f7a0,_0x413c08[_0x288edb(0x1e4)]);if(!fs[_0x288edb(0x1bf)](_0x24d2f6))return;const _0x1fa5b8=BrowserstackCLI[_0x288edb(0x209)]()[_0x288edb(0x1ca)][_0x288edb(0x1cf)]?.[_0x288edb(0x211)]?.['toObject']()?.[_0x288edb(0x1bd)],_0x3dc3e5=_0x1fa5b8?path[_0x288edb(0x1d5)](_0x24d2f6,_0x1fa5b8):null;if(!_0x3dc3e5||!fs['existsSync'](_0x3dc3e5)){this[_0x288edb(0x1ba)][_0x288edb(0x21b)](util['format'](_0x413c08['GrlJM'],_0x1fa5b8));return;}const _0x21381f={};_0x21381f['recursive']=!![],_0x21381f[_0x288edb(0x1c5)]=!![],fs[_0x288edb(0x1ff)](_0x3dc3e5,_0x21381f),this[_0x288edb(0x1ba)]['debug'](util[_0x288edb(0x1e6)](_0x413c08['LRljz']));}}function a95_0x56a0(_0x9bda1e,_0x57f60d){const _0x3ad504=a95_0x3ad5();return a95_0x56a0=function(_0x56a0d3,_0x5c8151){_0x56a0d3=_0x56a0d3-0x1ab;let _0xde5f29=_0x3ad504[_0x56a0d3];return _0xde5f29;},a95_0x56a0(_0x9bda1e,_0x57f60d);}module[a95_0xe3e3b5(0x236)]=uploadAttachmentsManager;function a95_0x3ad5(){const _0x361a0a=['5002182VTfEaD','message','__jestCurrentTestIdentifier','testhubConfig','basename','ZBMAn','trackFile','./modules/playwrightDriverModule','DAaqf','zzUGA','./browserstackCLI','File\x20downloaded\x20to:\x20%s','952970aUptGk','debug','BuildLevel','mkdirSync','PuTfV','PHXue','size','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','./cliUtils','jest','util','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','createWriteStream','startsWith','16zNEjGi','https','Attachment\x20recevied\x20for\x20path:\x20%s','getAllData','getTestDetails','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','testInfo','BxVCi','http://','getTrackedInstance','clearAttachments','WIGpG','VFLnv','https://','exports','BpDAO','uploadAttachmentsManager','ZCcXm','TabzX','1830059yuhiGY','NJJOe','.browserstack','statSync','yzpUV','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','jZYuM','Mnmte','toFixed','./state/testFrameworkState','http','copyFileSync','logger','statusCode','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','buildHashedId',',\x20filepath:\x20','existsSync','1124166bOQxGw','../../helpers/classLogger.js','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','name','KEY_FILE_PATH','force','error','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','currentTest','unlinkSync','modules','hajGl','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','KEY_TEST_ID','pnjrX','TestHubModule','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','getTestFramework','2kMhpsH','toObject','getTestIdentifierFromTestInfo','join','tSdWZ','retry','addMultipleEntries','GrlJM','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','close','jZEbk','TestLevel','getState','KEY_TEST_ATTACHMENTS','toLowerCase','RORmh','dFSpl','MAJGP','joBUm','KWSwJ','format','KEY_FILE_NAME','./TestInfo','resolveInstance','homedir','pipe','LQqCZ','QxUnu','KEY_FILE_SIZE','4349180uJafxA','Created\x20.browserstack\x20folder\x20at:\x20%s','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','lmmJw','setTestDetails','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','TEST','1845125oyjhxv','trim','POST','wjbBg','pFymv','JAKRI','__workerDetails','RPPcO','uploadAttachments','rmSync','Cleared\x20attachment\x20folder','slYRG','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','KEY_FILE_LEVEL','YPdyR','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','gFlZK','fvhCa','27443511xEcMMF','getInstance','JoQyD','msHqU','gEBLy','isRunning'];a95_0x3ad5=function(){return _0x361a0a;};return a95_0x3ad5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a96_0xd628b1=a96_0x170d;function a96_0x170d(_0x3038b5,_0x4ee473){const _0x24c75f=a96_0x24c7();return a96_0x170d=function(_0x170d96,_0x21912c){_0x170d96=_0x170d96-0xdf;let _0x4741e2=_0x24c75f[_0x170d96];return _0x4741e2;},a96_0x170d(_0x3038b5,_0x4ee473);}(function(_0x30bb65,_0x46579a){const _0x5c9566=a96_0x170d,_0x472ad1=_0x30bb65();while(!![]){try{const _0x10d7c9=parseInt(_0x5c9566(0x13c))/0x1+parseInt(_0x5c9566(0x141))/0x2+parseInt(_0x5c9566(0x107))/0x3+parseInt(_0x5c9566(0x146))/0x4*(parseInt(_0x5c9566(0x15c))/0x5)+-parseInt(_0x5c9566(0x11d))/0x6*(parseInt(_0x5c9566(0x159))/0x7)+-parseInt(_0x5c9566(0x117))/0x8*(-parseInt(_0x5c9566(0x158))/0x9)+-parseInt(_0x5c9566(0xfd))/0xa;if(_0x10d7c9===_0x46579a)break;else _0x472ad1['push'](_0x472ad1['shift']());}catch(_0x1c0ab1){_0x472ad1['push'](_0x472ad1['shift']());}}}(a96_0x24c7,0x33aed));function a96_0x24c7(){const _0x32d8b7=['sdrfN','hooks','exception','HookRunStarted','hookId','rdinb','examples','astNodeIds','hpaJZ','failure_type','failure','LhxgQ','rdnrv','3259380Frhzgg','AFTER_EACH','format','finished_at','duration_in_ms','vmipO','nanos','forEach','failureType','finishedAt','985596IQLYdA','OmCqQ','getCucumberHookType','exports','TJiAK','rule','VDibS','wczYD','_gitConfigPath','root','YkucF','scenario','xOSGE','_gitConfigured','AssertionError','feature','24alsjpZ','relative','failed','value','../../../helpers/logger.js','failure_reason','30xILmDN','length','kjTtL','ZqIKn','debug','HookRunFinished','qVmSP','configureGit','failure_data','UKjqI','HIYrN','VEqBS','KlDuG','status','bufNg','sendTestRunEventForCucumber','UMrSZ','passed','OKBpx','includes','cucumber','Exception\x20in\x20createHookData:\x20','zwtva','name','result','hook','match','util','message','getHookRunEventData','createHookData','254823FOZKxp','backtrace','timestamp','nxHzI','SdiLs','301264pBpuSt','find','children','SWnGU','xqCky','848344aezWPq','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','../../../helpers/test-observability/error-handler.js','uri','sourceReference','unknown','VNVpJ','qAgnD','path','getHookResult','RtVrG','toISOString','tags','Lbwow','flatMap','getTestUUID','SKIPPED','strip-ansi','35919KiPYTZ','588581xLRWIf','EytrT','TAuBr','5wMjvhZ','javascript','test','rihnq','tjSKt','sHRAC','pending','BEFORE_EACH','bstack','split','testStepResult','GZCYV','join','testStepFinished','every','uOKXU','wyWuL','YPEEN','cells','getScenarioExamples','tableBody','tagExpression','../../../helpers/helper.js','map','mKrKK','winstonLogger','jnmlh'];a96_0x24c7=function(){return _0x32d8b7;};return a96_0x24c7();}const path=require(a96_0xd628b1(0x14e)),util=require(a96_0xd628b1(0x138)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a96_0xd628b1(0xeb)),logger=require(a96_0xd628b1(0x11b))[a96_0xd628b1(0xee)],{o11yClassErrorHandler}=require(a96_0xd628b1(0x148)),TestInfo=require('../TestInfo.js'),hooksMap={};class CucumberUtils{constructor(){const _0x3a9386=a96_0xd628b1;this[_0x3a9386(0x114)]=![],this[_0x3a9386(0x10f)]=null;}async['createTestFrameworkData'](_0x55b705,_0x2f14d9,_0x192ef5,_0x301e41,_0x4083b4,_0x418c78){const _0xea437c=a96_0xd628b1,_0x390f02={'SdiLs':function(_0x385e14,_0x53216b){return _0x385e14===_0x53216b;},'Lbwow':'FAILED','bufNg':_0xea437c(0x119),'fHWfU':function(_0x27d04d,_0x482d7c){return _0x27d04d===_0x482d7c;},'ucgHJ':_0xea437c(0x156),'PnHXi':'skipped','xOSGE':function(_0x1fafd1,_0x26d7a6){return _0x1fafd1||_0x26d7a6;},'sdrfN':function(_0x132ad7,_0x183843){return _0x132ad7+_0x183843;},'SWnGU':function(_0x50da1b,_0x134ba1){return _0x50da1b+_0x134ba1;},'UMrSZ':function(_0x3c4caa,_0x43e5fa){return _0x3c4caa+_0x43e5fa;},'tjSKt':_0xea437c(0x15e),'OKBpx':_0xea437c(0x15d),'KlDuG':_0xea437c(0x131),'EytrT':_0xea437c(0x162),'rihnq':_0xea437c(0x12e),'umqpP':function(_0x103ab7,_0x293347){return _0x103ab7!==_0x293347;},'jnmlh':function(_0x2c8983,_0x418dd7){return _0x2c8983/_0x418dd7;},'VEqBS':function(_0x203382,_0x37e622){return _0x203382===_0x37e622;},'rdinb':_0xea437c(0x157),'TJiAK':function(_0x1c95cd,_0x16facc){return _0x1c95cd(_0x16facc);},'weXoQ':_0xea437c(0x14b),'wczYD':'AssertionError','SmZOf':'UnhandledError'},{feature:_0x95afb3,scenario:_0x31d137,steps:_0x3d2148,uuid:_0x436138,startedAt:_0x24e77a,finishedAt:_0x5bcbf1}=_0x390f02[_0xea437c(0x113)](_0x55b705,{}),_0x1a9962=this[_0xea437c(0xe8)](_0x301e41,_0x2f14d9);await this[_0xea437c(0x124)]();const _0x5746eb=_0x1a9962?_0x390f02[_0xea437c(0xf0)](_0x390f02[_0xea437c(0x144)](_0x390f02[_0xea437c(0x12d)](_0x2f14d9[_0xea437c(0x134)],'\x20('),_0x1a9962[_0xea437c(0xe1)](',\x20')),')'):_0x2f14d9[_0xea437c(0x134)],_0x4a96fa={'id':_0x4083b4,'uuid':_0x4083b4,'startedAt':_0x24e77a,'finishedAt':_0x5bcbf1,'type':_0x390f02[_0xea437c(0x160)],'body':{'lang':_0x390f02[_0xea437c(0x12f)],'code':null},'name':_0x5746eb,'scopes':[_0x95afb3&&_0x95afb3[_0xea437c(0x134)]?_0x95afb3[_0xea437c(0x134)]:''],'tags':_0x2f14d9['tags']?_0x2f14d9[_0xea437c(0x152)][_0xea437c(0xec)](({name:_0x15e0dc})=>_0x15e0dc):[],'file_name':_0x2f14d9[_0xea437c(0x149)],'location':_0x2f14d9[_0xea437c(0x149)],'vc_filepath':this[_0xea437c(0x10f)]&&_0x2f14d9[_0xea437c(0x149)]?path['relative'](this[_0xea437c(0x10f)],_0x2f14d9[_0xea437c(0x149)]):null,'framework':_0x390f02[_0xea437c(0x129)],'result':_0x390f02[_0xea437c(0x15a)],'meta':{'feature':_0x95afb3,'scenario':_0x31d137,'steps':_0x3d2148,'examples':_0x1a9962},'customRerunParam':{'rerun_name':_0x5746eb}};if(_0x192ef5['testCaseFinished']&&_0x3d2148){const _0x33c373=_0x192ef5['testCaseFinished'];let _0x3fb3bf=_0x390f02[_0xea437c(0x15f)];_0x3d2148[_0xea437c(0xe3)](_0x54d8dd=>{const _0x348ef1=_0xea437c;if(_0x390f02[_0x348ef1(0x140)](_0x54d8dd[_0x348ef1(0x135)],_0x390f02[_0x348ef1(0x153)]))return _0x3fb3bf=_0x390f02[_0x348ef1(0x12b)],_0x33c373[_0x348ef1(0xfa)]=_0x54d8dd['failure'],_0x33c373[_0x348ef1(0x105)]=_0x54d8dd[_0x348ef1(0x105)],![];else{if(_0x390f02['fHWfU'](_0x54d8dd[_0x348ef1(0x135)],_0x390f02['ucgHJ']))return _0x3fb3bf=_0x390f02['PnHXi'],![];}return!![];}),_0x4a96fa[_0xea437c(0x106)]=new Date()[_0xea437c(0x151)](),_0x4a96fa[_0xea437c(0x135)]=_0x3fb3bf;_0x33c373['timestamp']&&_0x390f02['umqpP'](_0x33c373[_0xea437c(0x13e)][_0xea437c(0x103)],undefined)?_0x4a96fa['duration_in_ms']=_0x390f02[_0xea437c(0xef)](_0x33c373[_0xea437c(0x13e)][_0xea437c(0x103)],0xf4240):_0x4a96fa[_0xea437c(0x101)]=undefined;if(_0x390f02[_0xea437c(0x128)](_0x3fb3bf,_0x390f02[_0xea437c(0x12b)])){const {default:_0x2d000b}=await import(_0x390f02[_0xea437c(0xf5)]);_0x4a96fa[_0xea437c(0xfa)]=[{'backtrace':[_0x33c373[_0xea437c(0xfa)]?_0x390f02[_0xea437c(0x10b)](_0x2d000b,_0x33c373[_0xea437c(0xfa)]):_0x390f02['weXoQ']]}],_0x4a96fa[_0xea437c(0x11c)]=_0x33c373['failure']?_0x390f02['TJiAK'](_0x2d000b,_0x33c373[_0xea437c(0xfa)]):_0x33c373[_0xea437c(0x139)],_0x33c373[_0xea437c(0x105)]&&(_0x4a96fa[_0xea437c(0xf9)]=_0x33c373[_0xea437c(0x105)][_0xea437c(0x137)](/AssertError/)?_0x390f02[_0xea437c(0x10e)]:_0x390f02['SmZOf']);}}return _0x4a96fa;}[a96_0xd628b1(0x13a)](_0x1af439,_0x4fe05c,_0x135692,_0x4be58d,_0x4269bc,_0x38fc60){const _0x18843f=a96_0xd628b1,_0x221bad={'xqCky':function(_0x3143b6,_0x198a6c){return _0x3143b6===_0x198a6c;},'qGGJa':_0x18843f(0x122),'LhxgQ':function(_0x1ea434,_0x47eeb2,_0x5d5c9d){return _0x1ea434(_0x47eeb2,_0x5d5c9d);},'RggWa':_0x18843f(0x14a),'YPEEN':_0x18843f(0x149),'udFsn':_0x18843f(0x162),'ZqIKn':_0x18843f(0x136),'OmCqQ':'javascript','rdnrv':function(_0x59dac6,_0x383ef9,_0x292653){return _0x59dac6(_0x383ef9,_0x292653);},'hpaJZ':_0x18843f(0x116),'YkucF':_0x18843f(0x134),'GJMPW':_0x18843f(0x131)};try{if(_0x221bad[_0x18843f(0x145)](_0x135692,_0x221bad['qGGJa'])){const _0x23ad94=new Date()[_0x18843f(0x151)](),_0x249967=hooksMap[_0x4fe05c];if(!_0x249967)return;const _0x5999f8=_0x249967[_0x18843f(0x142)](_0x2195bd=>_0x2195bd['uuid']===_0x4be58d['id']);if(!_0x5999f8)return;const _0x55fa65=this[_0x18843f(0x14f)](_0x1af439,_0x4fe05c);_0x5999f8[_0x18843f(0x135)]=_0x55fa65[_0x18843f(0x12a)],_0x5999f8[_0x18843f(0x100)]=_0x23ad94,_0x5999f8[_0x18843f(0xf9)]=_0x55fa65[_0x18843f(0x105)];const _0x394aa1={};return _0x394aa1[_0x18843f(0x13d)]=_0x55fa65['failureData'],_0x5999f8[_0x18843f(0x125)]=[_0x394aa1],_0x5999f8;}const _0xc6a366=TestInfo[_0x18843f(0x155)](_0x4fe05c),_0x444bc0=_0x1af439[_0x18843f(0xf1)][_0x18843f(0x142)](_0x5eefcd=>_0x5eefcd['id']===_0x4be58d[_0x18843f(0xf4)]),_0x232a9f=_0x221bad[_0x18843f(0xfb)](nestedKeyValue,_0x444bc0,[_0x221bad['RggWa'],_0x221bad[_0x18843f(0xe6)]]),_0x5cd04=new Date()['toISOString'](),_0x6ee17e=_0x221bad['udFsn'],_0x21ffcf=_0x444bc0[_0x18843f(0xea)]?_0x444bc0[_0x18843f(0xea)][_0x18843f(0x165)]('\x20')['filter'](_0x513e80=>_0x513e80[_0x18843f(0x130)]('@')):[],_0x17d6c5={'uuid':_0x4be58d['id'],'type':_0x221bad[_0x18843f(0x120)],'hook_type':_0x38fc60,'name':_0x444bc0['name'],'body':{'lang':_0x221bad[_0x18843f(0x108)],'code':null},'tags':_0x21ffcf,'test_run_id':_0xc6a366,'scope':_0x221bad['rdnrv'](nestedKeyValue,_0x4269bc,[_0x221bad[_0x18843f(0xf8)],_0x221bad[_0x18843f(0x111)]]),'scopes':[_0x221bad[_0x18843f(0xfc)](nestedKeyValue,_0x4269bc,[_0x221bad['hpaJZ'],_0x221bad[_0x18843f(0x111)]])||''],'file_name':_0x232a9f,'location':_0x232a9f,'vc_filepath':this[_0x18843f(0x10f)]?path[_0x18843f(0x118)](this['_gitConfigPath'],_0x232a9f):null,'result':_0x6ee17e,'started_at':_0x5cd04,'framework':_0x221bad['GJMPW']};return _0x17d6c5;}catch(_0x4fe647){logger[_0x18843f(0x121)]('Exception\x20in\x20getHookRunEventData:\x20'+util['format'](_0x4fe647)+'\x20');}}async[a96_0xd628b1(0x13b)](_0x3fcc85,_0x52334b,_0x3c055f,_0x3fcee9,_0x539c04,_0x2143e1){const _0x7fac87=a96_0xd628b1,_0x2b984f={'qAgnD':function(_0x814fa,_0x946c83){return _0x814fa===_0x946c83;},'CQsln':_0x7fac87(0xf3),'BNoJK':function(_0x4efe55,_0x408e79,_0x53d7ea){return _0x4efe55(_0x408e79,_0x53d7ea);},'uGsqp':_0x7fac87(0x14a),'vmipO':'uri','VDibS':_0x7fac87(0x147),'HIYrN':function(_0x54d91d,_0x483b2e){return _0x54d91d===_0x483b2e;},'kjTtL':_0x7fac87(0x164)};try{const _0x53f245=_0x3fcee9[_0x7fac87(0x142)](_0x14b0d9=>_0x14b0d9['id']===_0x539c04);if(!_0x53f245[_0x7fac87(0xf4)])return;const _0x47e679=this[_0x7fac87(0x109)](_0x3fcee9,_0x53f245),_0x4db675=this[_0x7fac87(0x13a)](_0x3fcc85,_0x52334b,_0x3c055f,_0x53f245,_0x2143e1,_0x47e679);if(!_0x4db675)return;_0x2b984f[_0x7fac87(0x14d)](_0x3c055f,_0x2b984f['CQsln'])&&(hooksMap[_0x52334b]?hooksMap[_0x52334b]['push'](_0x4db675):hooksMap[_0x52334b]=[_0x4db675]);const _0x5bb8db=_0x3fcc85[_0x7fac87(0xf1)][_0x7fac87(0x142)](_0x509aaf=>_0x509aaf['id']===_0x53f245[_0x7fac87(0xf4)]),_0x4216b0=_0x2b984f['BNoJK'](nestedKeyValue,_0x5bb8db,[_0x2b984f['uGsqp'],_0x2b984f[_0x7fac87(0x102)]]);if(!_0x4216b0)return;else{if(_0x4216b0[_0x7fac87(0x130)](_0x2b984f[_0x7fac87(0x10d)]))return;}if(_0x2b984f[_0x7fac87(0x127)](_0x4db675[_0x7fac87(0x134)],_0x2b984f[_0x7fac87(0x11f)]))return;return _0x4db675;}catch(_0x7abe17){logger['debug'](_0x7fac87(0x132)+util[_0x7fac87(0xff)](_0x7abe17)+'\x20');}}['getHookResult'](_0x57b75e,_0x2a53c7){const _0x3049bd=a96_0xd628b1,_0x40d333={};_0x40d333[_0x3049bd(0x14c)]=function(_0x312dd6,_0x4f3f8d){return _0x312dd6===_0x4f3f8d;},_0x40d333[_0x3049bd(0x161)]=_0x3049bd(0x119),_0x40d333['qVmSP']=function(_0x5ed5ce,_0x8f6b1b){return _0x5ed5ce===_0x8f6b1b;},_0x40d333['TAuBr']='UnhandledError',_0x40d333[_0x3049bd(0x13f)]=_0x3049bd(0x115),_0x40d333[_0x3049bd(0x133)]=function(_0x1ef3b7,_0x94c4b1){return _0x1ef3b7||_0x94c4b1;};const _0x23abef=_0x40d333,_0x3cca80=_0x57b75e[_0x3049bd(0xe2)][_0x2a53c7][_0x3049bd(0xdf)];let _0x3b423b,_0xf498a7;return _0x3cca80&&_0x23abef[_0x3049bd(0x14c)](_0x3cca80[_0x3049bd(0x12a)]['toString']()['toLowerCase'](),_0x23abef[_0x3049bd(0x161)])&&(_0x3b423b=_0x23abef['qVmSP'](_0x3cca80['exception'],undefined)?_0x3cca80[_0x3049bd(0x139)]:_0x3cca80['exception'][_0x3049bd(0x139)],_0xf498a7=_0x23abef[_0x3049bd(0x123)](_0x3cca80[_0x3049bd(0xf2)],undefined)?_0x23abef[_0x3049bd(0x15b)]:_0x3cca80[_0x3049bd(0x139)][_0x3049bd(0x137)](/Assert/)?_0x23abef[_0x3049bd(0x13f)]:_0x23abef[_0x3049bd(0x15b)]),{'status':_0x3cca80[_0x3049bd(0x12a)]['toLowerCase'](),'failureType':_0x23abef[_0x3049bd(0x133)](_0xf498a7,null),'failureData':!_0x3b423b?null:[_0x3b423b]};}[a96_0xd628b1(0x109)](_0x8be04e,_0x41995b){const _0x55c561=a96_0xd628b1,_0x5e08e5={};_0x5e08e5[_0x55c561(0xe0)]=function(_0xb8767b,_0x2056d8){return _0xb8767b===_0x2056d8;},_0x5e08e5[_0x55c561(0x126)]=_0x55c561(0xfe),_0x5e08e5[_0x55c561(0xed)]=_0x55c561(0x163);const _0x274c73=_0x5e08e5;let _0x2a8e1a=![];for(const _0x13993c of _0x8be04e){_0x13993c['pickleStepId']&&(_0x2a8e1a=!![]);if(_0x274c73[_0x55c561(0xe0)](_0x41995b['id'],_0x13993c['id']))return _0x2a8e1a?_0x274c73['UKjqI']:_0x274c73[_0x55c561(0xed)];}}['getScenarioExamples']=(_0xdd630f,_0x53998d)=>{const _0x2a7e0a=a96_0xd628b1,_0x582e12={};_0x582e12[_0x2a7e0a(0xe4)]=function(_0x2aaf31,_0x317e7b){return _0x2aaf31===_0x317e7b;},_0x582e12[_0x2a7e0a(0xe5)]=function(_0x40ec55,_0x2577de){return _0x40ec55>_0x2577de;};const _0x55164b=_0x582e12;if(!(_0x53998d['astNodeIds']&&_0x55164b[_0x2a7e0a(0xe5)](_0x53998d[_0x2a7e0a(0xf7)][_0x2a7e0a(0x11e)],0x1)))return;const _0x2e0fa0=_0x53998d[_0x2a7e0a(0xf7)][0x0],_0x5de2b9=_0x53998d[_0x2a7e0a(0xf7)][0x1],_0x4c3f59=_0xdd630f[_0x2a7e0a(0x116)]&&_0xdd630f[_0x2a7e0a(0x116)][_0x2a7e0a(0x143)]?_0xdd630f['feature'][_0x2a7e0a(0x143)]:undefined;let _0x584367=[];_0x4c3f59&&_0x4c3f59[_0x2a7e0a(0x104)](_0x4a2d6=>{const _0x4ef489=_0x2a7e0a,_0x10709c={'RtVrG':function(_0x462f2c,_0x35e760){return _0x55164b['uOKXU'](_0x462f2c,_0x35e760);}};if(_0x4a2d6[_0x4ef489(0x10c)])_0x4a2d6['rule'][_0x4ef489(0x143)][_0x4ef489(0x104)](_0x136cc0=>{const _0x33c325=_0x4ef489;if(_0x136cc0[_0x33c325(0x112)]&&_0x10709c[_0x33c325(0x150)](_0x136cc0[_0x33c325(0x112)]['id'],_0x2e0fa0)&&_0x136cc0[_0x33c325(0x112)][_0x33c325(0xf6)]){const _0x39818b=_0x136cc0[_0x33c325(0x112)][_0x33c325(0xf6)][_0x33c325(0x154)](_0xca5e27=>_0xca5e27[_0x33c325(0xe9)])[_0x33c325(0x142)](_0x4afb0f=>_0x4afb0f['id']===_0x5de2b9);let _0x25af8d;_0x39818b&&_0x39818b[_0x33c325(0xe7)]?_0x25af8d=_0x39818b[_0x33c325(0xe7)]['map'](_0x1ae6eb=>_0x1ae6eb[_0x33c325(0x11a)]):_0x25af8d=[],_0x25af8d&&(_0x584367=_0x25af8d);}});else{if(_0x4a2d6[_0x4ef489(0x112)]&&_0x55164b[_0x4ef489(0xe4)](_0x4a2d6[_0x4ef489(0x112)]['id'],_0x2e0fa0)&&_0x4a2d6['scenario'][_0x4ef489(0xf6)]){const _0x127fec=_0x4a2d6['scenario']['examples'][_0x4ef489(0x154)](_0xf953d1=>_0xf953d1[_0x4ef489(0xe9)])[_0x4ef489(0x142)](_0x53b0c6=>_0x53b0c6['id']===_0x5de2b9);let _0x2d4faa;_0x127fec&&_0x127fec[_0x4ef489(0xe7)]?_0x2d4faa=_0x127fec[_0x4ef489(0xe7)][_0x4ef489(0xec)](_0xd66a2b=>_0xd66a2b[_0x4ef489(0x11a)]):_0x2d4faa=[],_0x2d4faa&&(_0x584367=_0x2d4faa);}}});if(_0x584367[_0x2a7e0a(0x11e)])return _0x584367;return;};async[a96_0xd628b1(0x124)](){const _0x1f4120=a96_0xd628b1,_0x9d12f5={'CQUiJ':function(_0x34c268){return _0x34c268();}};if(this['_gitConfigured'])return this[_0x1f4120(0x10f)];const _0xc6d617=await _0x9d12f5['CQUiJ'](getGitMetaData);_0xc6d617&&(this[_0x1f4120(0x10f)]=_0xc6d617[_0x1f4120(0x110)]),this[_0x1f4120(0x114)]=!![];}}module[a96_0xd628b1(0x10a)]=o11yClassErrorHandler(CucumberUtils,[a96_0xd628b1(0x124),a96_0xd628b1(0xe8),a96_0xd628b1(0x109),a96_0xd628b1(0x14f),'sendHook',a96_0xd628b1(0x13a),a96_0xd628b1(0x12c),'createTestFrameworkData']);
|
|
1
|
+
const a96_0x5eb5fd=a96_0x203d;(function(_0x48bd30,_0x3edaf6){const _0x4a53f6=a96_0x203d,_0x5d38ba=_0x48bd30();while(!![]){try{const _0x320892=-parseInt(_0x4a53f6(0x1cc))/0x1*(parseInt(_0x4a53f6(0x1f9))/0x2)+-parseInt(_0x4a53f6(0x244))/0x3*(parseInt(_0x4a53f6(0x1e8))/0x4)+-parseInt(_0x4a53f6(0x1d4))/0x5*(-parseInt(_0x4a53f6(0x20f))/0x6)+parseInt(_0x4a53f6(0x1fa))/0x7+-parseInt(_0x4a53f6(0x1d0))/0x8+parseInt(_0x4a53f6(0x23a))/0x9+parseInt(_0x4a53f6(0x241))/0xa;if(_0x320892===_0x3edaf6)break;else _0x5d38ba['push'](_0x5d38ba['shift']());}catch(_0x157633){_0x5d38ba['push'](_0x5d38ba['shift']());}}}(a96_0x2294,0x1f92f));const path=require(a96_0x5eb5fd(0x249)),util=require(a96_0x5eb5fd(0x251)),{getGitMetaData,isUndefined,nestedKeyValue}=require('../../../helpers/helper.js'),logger=require('../../../helpers/logger.js')[a96_0x5eb5fd(0x239)],{o11yClassErrorHandler}=require(a96_0x5eb5fd(0x236)),TestInfo=require(a96_0x5eb5fd(0x21b)),hooksMap={};class CucumberUtils{constructor(){const _0x300ec6=a96_0x5eb5fd;this[_0x300ec6(0x200)]=![],this[_0x300ec6(0x206)]=null;}async[a96_0x5eb5fd(0x1e5)](_0x114de2,_0x1e8aab,_0xe61cf6,_0x580e0d,_0x25faae,_0x41f95b){const _0x3a2cf8=a96_0x5eb5fd,_0x251863={'ueZGx':function(_0x21eca8,_0x29c2f1){return _0x21eca8===_0x29c2f1;},'eQCVe':_0x3a2cf8(0x1f2),'HdRPj':_0x3a2cf8(0x21a),'vvbkn':function(_0x389097,_0x3927c0){return _0x389097===_0x3927c0;},'qxliq':_0x3a2cf8(0x1e2),'nQqtl':_0x3a2cf8(0x1fe),'fOZAg':function(_0x3c5a69,_0x8cb333){return _0x3c5a69||_0x8cb333;},'cqoHy':function(_0x1598b2,_0x28c3f1){return _0x1598b2+_0x28c3f1;},'DWAUy':function(_0x47bbcf,_0x1ad5b7){return _0x47bbcf+_0x1ad5b7;},'rlkjG':function(_0x27d7d0,_0x5ad205){return _0x27d7d0+_0x5ad205;},'PdyIZ':'test','ZYRHt':_0x3a2cf8(0x1ed),'ROJKS':_0x3a2cf8(0x20c),'hbqxw':'pending','pZEgh':'passed','MFhUn':function(_0xad42bf,_0x5dec0b){return _0xad42bf!==_0x5dec0b;},'oWSSp':function(_0x8713da,_0x23a254){return _0x8713da/_0x23a254;},'bYkQi':_0x3a2cf8(0x210),'iBHKw':function(_0x5b8c0c,_0x210be7){return _0x5b8c0c(_0x210be7);},'YwUeW':_0x3a2cf8(0x1d3),'wLngO':function(_0x2a1eb1,_0x34ebe6){return _0x2a1eb1(_0x34ebe6);},'NrMLq':_0x3a2cf8(0x21c),'TWfWj':'UnhandledError'},{feature:_0x4bec04,scenario:_0x46a6a4,steps:_0x1c4caa,uuid:_0x40c5ae,startedAt:_0x3f766d,finishedAt:_0x420fd6}=_0x251863[_0x3a2cf8(0x218)](_0x114de2,{}),_0x395393=this[_0x3a2cf8(0x23c)](_0x580e0d,_0x1e8aab);await this[_0x3a2cf8(0x205)]();const _0x3d4262=_0x395393?_0x251863['cqoHy'](_0x251863[_0x3a2cf8(0x222)](_0x251863['rlkjG'](_0x1e8aab[_0x3a2cf8(0x1cb)],'\x20('),_0x395393[_0x3a2cf8(0x1ff)](',\x20')),')'):_0x1e8aab['name'],_0x322fac={'id':_0x25faae,'uuid':_0x25faae,'startedAt':_0x3f766d,'finishedAt':_0x420fd6,'type':_0x251863[_0x3a2cf8(0x1dd)],'body':{'lang':_0x251863[_0x3a2cf8(0x1d1)],'code':null},'name':_0x3d4262,'scopes':[_0x4bec04&&_0x4bec04[_0x3a2cf8(0x1cb)]?_0x4bec04[_0x3a2cf8(0x1cb)]:''],'tags':_0x1e8aab[_0x3a2cf8(0x1e4)]?_0x1e8aab[_0x3a2cf8(0x1e4)][_0x3a2cf8(0x212)](({name:_0x215aa3})=>_0x215aa3):[],'file_name':_0x1e8aab[_0x3a2cf8(0x20e)],'location':_0x1e8aab[_0x3a2cf8(0x20e)],'vc_filepath':this[_0x3a2cf8(0x206)]&&_0x1e8aab[_0x3a2cf8(0x20e)]?path[_0x3a2cf8(0x22b)](this['_gitConfigPath'],_0x1e8aab[_0x3a2cf8(0x20e)]):null,'framework':_0x251863[_0x3a2cf8(0x204)],'result':_0x251863[_0x3a2cf8(0x1f7)],'meta':{'feature':_0x4bec04,'scenario':_0x46a6a4,'steps':_0x1c4caa,'examples':_0x395393},'customRerunParam':{'rerun_name':_0x3d4262}};if(_0xe61cf6[_0x3a2cf8(0x23b)]&&_0x1c4caa){const _0x380d56=_0xe61cf6[_0x3a2cf8(0x23b)];let _0x173c30=_0x251863[_0x3a2cf8(0x1fb)];_0x1c4caa[_0x3a2cf8(0x23d)](_0x6cd99d=>{const _0x29b973=_0x3a2cf8;if(_0x251863[_0x29b973(0x1d6)](_0x6cd99d[_0x29b973(0x1f8)],_0x251863[_0x29b973(0x1e0)]))return _0x173c30=_0x251863[_0x29b973(0x1ee)],_0x380d56[_0x29b973(0x243)]=_0x6cd99d['failure'],_0x380d56[_0x29b973(0x230)]=_0x6cd99d[_0x29b973(0x230)],![];else{if(_0x251863[_0x29b973(0x233)](_0x6cd99d[_0x29b973(0x1f8)],_0x251863[_0x29b973(0x20b)]))return _0x173c30=_0x251863[_0x29b973(0x24a)],![];}return!![];}),_0x322fac['finishedAt']=new Date()['toISOString'](),_0x322fac[_0x3a2cf8(0x1f8)]=_0x173c30;_0x380d56['timestamp']&&_0x251863['MFhUn'](_0x380d56[_0x3a2cf8(0x1e9)][_0x3a2cf8(0x1f0)],undefined)?_0x322fac[_0x3a2cf8(0x22a)]=_0x251863[_0x3a2cf8(0x1d2)](_0x380d56[_0x3a2cf8(0x1e9)]['nanos'],0xf4240):_0x322fac['duration_in_ms']=undefined;if(_0x251863[_0x3a2cf8(0x233)](_0x173c30,_0x251863['HdRPj'])){const {default:_0x3bdf84}=await import(_0x251863[_0x3a2cf8(0x213)]);_0x322fac[_0x3a2cf8(0x243)]=[{'backtrace':[_0x380d56[_0x3a2cf8(0x243)]?_0x251863[_0x3a2cf8(0x202)](_0x3bdf84,_0x380d56[_0x3a2cf8(0x243)]):_0x251863[_0x3a2cf8(0x1e6)]]}],_0x322fac[_0x3a2cf8(0x224)]=_0x380d56['failure']?_0x251863[_0x3a2cf8(0x1fc)](_0x3bdf84,_0x380d56[_0x3a2cf8(0x243)]):_0x380d56[_0x3a2cf8(0x250)],_0x380d56['failureType']&&(_0x322fac['failure_type']=_0x380d56[_0x3a2cf8(0x230)][_0x3a2cf8(0x22e)](/AssertError/)?_0x251863['NrMLq']:_0x251863[_0x3a2cf8(0x232)]);}}return _0x322fac;}['getHookRunEventData'](_0x2f6ad2,_0x2b621c,_0x16ea11,_0x439722,_0x365e50,_0x1eda0c){const _0x3e3a3a=a96_0x5eb5fd,_0x2665e9={'XLjln':function(_0x63efa3,_0x5bf6e1){return _0x63efa3===_0x5bf6e1;},'oUvpJ':'HookRunFinished','HojhB':function(_0x25b8cf,_0x5c5a08,_0x4c2423){return _0x25b8cf(_0x5c5a08,_0x4c2423);},'VokmJ':_0x3e3a3a(0x245),'Bacit':_0x3e3a3a(0x20e),'cWIlO':_0x3e3a3a(0x1f4),'qvAQt':_0x3e3a3a(0x223),'THVZn':'javascript','QFowW':'feature','eJJpG':'name','tVGWs':function(_0x632a86,_0xffc6cc,_0x55abdc){return _0x632a86(_0xffc6cc,_0x55abdc);},'PDevN':'cucumber'};try{if(_0x2665e9[_0x3e3a3a(0x1ef)](_0x16ea11,_0x2665e9[_0x3e3a3a(0x234)])){const _0xd39c1e=new Date()[_0x3e3a3a(0x225)](),_0x496475=hooksMap[_0x2b621c];if(!_0x496475)return;const _0x5e853e=_0x496475['find'](_0x40d5b0=>_0x40d5b0[_0x3e3a3a(0x219)]===_0x439722['id']);if(!_0x5e853e)return;const _0x1b8a08=this[_0x3e3a3a(0x1eb)](_0x2f6ad2,_0x2b621c);_0x5e853e[_0x3e3a3a(0x1f8)]=_0x1b8a08[_0x3e3a3a(0x24d)],_0x5e853e[_0x3e3a3a(0x220)]=_0xd39c1e,_0x5e853e['failure_type']=_0x1b8a08['failureType'];const _0x2a88a8={};return _0x2a88a8[_0x3e3a3a(0x235)]=_0x1b8a08[_0x3e3a3a(0x1e7)],_0x5e853e['failure_data']=[_0x2a88a8],_0x5e853e;}const _0x2c2989=TestInfo[_0x3e3a3a(0x1ec)](_0x2b621c),_0x3b27c5=_0x2f6ad2[_0x3e3a3a(0x1ce)][_0x3e3a3a(0x215)](_0x16d195=>_0x16d195['id']===_0x439722[_0x3e3a3a(0x21d)]),_0x524d49=_0x2665e9[_0x3e3a3a(0x1d5)](nestedKeyValue,_0x3b27c5,[_0x2665e9[_0x3e3a3a(0x240)],_0x2665e9[_0x3e3a3a(0x1da)]]),_0x3db586=new Date()[_0x3e3a3a(0x225)](),_0x3d8b03=_0x2665e9['cWIlO'],_0x1c5d48=_0x3b27c5[_0x3e3a3a(0x228)]?_0x3b27c5['tagExpression'][_0x3e3a3a(0x21e)]('\x20')['filter'](_0x108e20=>_0x108e20['includes']('@')):[],_0xf9c390={'uuid':_0x439722['id'],'type':_0x2665e9[_0x3e3a3a(0x24c)],'hook_type':_0x1eda0c,'name':_0x3b27c5['name'],'body':{'lang':_0x2665e9['THVZn'],'code':null},'tags':_0x1c5d48,'test_run_id':_0x2c2989,'scope':_0x2665e9['HojhB'](nestedKeyValue,_0x365e50,[_0x2665e9[_0x3e3a3a(0x1f6)],_0x2665e9['eJJpG']]),'scopes':[_0x2665e9[_0x3e3a3a(0x23f)](nestedKeyValue,_0x365e50,[_0x2665e9['QFowW'],_0x2665e9['eJJpG']])||''],'file_name':_0x524d49,'location':_0x524d49,'vc_filepath':this[_0x3e3a3a(0x206)]?path[_0x3e3a3a(0x22b)](this[_0x3e3a3a(0x206)],_0x524d49):null,'result':_0x3d8b03,'started_at':_0x3db586,'framework':_0x2665e9[_0x3e3a3a(0x1d9)]};return _0xf9c390;}catch(_0x5e7238){logger[_0x3e3a3a(0x23e)]('Exception\x20in\x20getHookRunEventData:\x20'+util['format'](_0x5e7238)+'\x20');}}async[a96_0x5eb5fd(0x226)](_0x4db152,_0x729ec0,_0x39a8a7,_0x3340c4,_0x93524c,_0x77d904){const _0x3eed82=a96_0x5eb5fd,_0x26be01={'MeGeZ':function(_0x106018,_0x5d073e){return _0x106018===_0x5d073e;},'brNxm':_0x3eed82(0x248),'DgxhC':function(_0x27c412,_0x1c21a2,_0x5d737a){return _0x27c412(_0x1c21a2,_0x5d737a);},'TsVgR':_0x3eed82(0x245),'GaUBM':_0x3eed82(0x20e),'mfpeQ':_0x3eed82(0x1f1),'pOMon':function(_0x1154aa,_0x57f67c){return _0x1154aa===_0x57f67c;},'ofZLb':_0x3eed82(0x22d)};try{const _0x2f40f4=_0x3340c4['find'](_0x236332=>_0x236332['id']===_0x93524c);if(!_0x2f40f4[_0x3eed82(0x21d)])return;const _0x3b5703=this[_0x3eed82(0x231)](_0x3340c4,_0x2f40f4),_0x352668=this[_0x3eed82(0x1dc)](_0x4db152,_0x729ec0,_0x39a8a7,_0x2f40f4,_0x77d904,_0x3b5703);if(!_0x352668)return;_0x26be01[_0x3eed82(0x22f)](_0x39a8a7,_0x26be01['brNxm'])&&(hooksMap[_0x729ec0]?hooksMap[_0x729ec0][_0x3eed82(0x1fd)](_0x352668):hooksMap[_0x729ec0]=[_0x352668]);const _0x214d1f=_0x4db152[_0x3eed82(0x1ce)]['find'](_0x57a869=>_0x57a869['id']===_0x2f40f4[_0x3eed82(0x21d)]),_0x57e147=_0x26be01['DgxhC'](nestedKeyValue,_0x214d1f,[_0x26be01[_0x3eed82(0x1de)],_0x26be01[_0x3eed82(0x201)]]);if(!_0x57e147)return;else{if(_0x57e147[_0x3eed82(0x217)](_0x26be01['mfpeQ']))return;}if(_0x26be01[_0x3eed82(0x1f3)](_0x352668[_0x3eed82(0x1cb)],_0x26be01[_0x3eed82(0x216)]))return;return _0x352668;}catch(_0xa1b34b){logger[_0x3eed82(0x23e)](_0x3eed82(0x1ea)+util[_0x3eed82(0x24e)](_0xa1b34b)+'\x20');}}['getHookResult'](_0x7d4f63,_0x3f4768){const _0x9099e9=a96_0x5eb5fd,_0x14b811={};_0x14b811[_0x9099e9(0x247)]=function(_0x1f75bf,_0x57078e){return _0x1f75bf===_0x57078e;},_0x14b811[_0x9099e9(0x209)]=_0x9099e9(0x21a),_0x14b811[_0x9099e9(0x242)]='UnhandledError',_0x14b811[_0x9099e9(0x1db)]=_0x9099e9(0x21c),_0x14b811[_0x9099e9(0x20a)]=function(_0x3e8582,_0x903cfb){return _0x3e8582||_0x903cfb;};const _0x4bac5e=_0x14b811,_0xcaf9a0=_0x7d4f63[_0x9099e9(0x237)][_0x3f4768][_0x9099e9(0x1d8)];let _0x48a71d,_0x514fed;return _0xcaf9a0&&_0x4bac5e[_0x9099e9(0x247)](_0xcaf9a0['status'][_0x9099e9(0x21f)]()[_0x9099e9(0x24b)](),_0x4bac5e['nzfJM'])&&(_0x48a71d=_0x4bac5e[_0x9099e9(0x247)](_0xcaf9a0[_0x9099e9(0x227)],undefined)?_0xcaf9a0[_0x9099e9(0x250)]:_0xcaf9a0['exception']['message'],_0x514fed=_0x4bac5e['rfZxr'](_0xcaf9a0['exception'],undefined)?_0x4bac5e[_0x9099e9(0x242)]:_0xcaf9a0[_0x9099e9(0x250)][_0x9099e9(0x22e)](/Assert/)?_0x4bac5e['xhkwt']:_0x4bac5e['ZFXQP']),{'status':_0xcaf9a0[_0x9099e9(0x24d)][_0x9099e9(0x24b)](),'failureType':_0x4bac5e['MdgOU'](_0x514fed,null),'failureData':!_0x48a71d?null:[_0x48a71d]};}['getCucumberHookType'](_0x367a7c,_0x10c9e4){const _0x3f1f74=a96_0x5eb5fd,_0x4cd8b7={};_0x4cd8b7[_0x3f1f74(0x221)]=function(_0x4dfac2,_0xdfbbf5){return _0x4dfac2===_0xdfbbf5;},_0x4cd8b7[_0x3f1f74(0x238)]=_0x3f1f74(0x254),_0x4cd8b7[_0x3f1f74(0x20d)]=_0x3f1f74(0x22c);const _0x31cbb1=_0x4cd8b7;let _0x652ed7=![];for(const _0x38e157 of _0x367a7c){_0x38e157[_0x3f1f74(0x229)]&&(_0x652ed7=!![]);if(_0x31cbb1[_0x3f1f74(0x221)](_0x10c9e4['id'],_0x38e157['id']))return _0x652ed7?_0x31cbb1[_0x3f1f74(0x238)]:_0x31cbb1['hBKrb'];}}[a96_0x5eb5fd(0x23c)]=(_0x9fed97,_0x59c49a)=>{const _0x1d31e5=a96_0x5eb5fd,_0x1a6033={};_0x1a6033[_0x1d31e5(0x246)]=function(_0x20efeb,_0x173e78){return _0x20efeb===_0x173e78;},_0x1a6033[_0x1d31e5(0x1e3)]=function(_0xd9bac4,_0x229ed7){return _0xd9bac4>_0x229ed7;};const _0x3bb904=_0x1a6033;if(!(_0x59c49a[_0x1d31e5(0x208)]&&_0x3bb904[_0x1d31e5(0x1e3)](_0x59c49a['astNodeIds']['length'],0x1)))return;const _0x313d61=_0x59c49a[_0x1d31e5(0x208)][0x0],_0x18ea21=_0x59c49a['astNodeIds'][0x1],_0x417b9e=_0x9fed97['feature']&&_0x9fed97[_0x1d31e5(0x253)][_0x1d31e5(0x1cd)]?_0x9fed97[_0x1d31e5(0x253)][_0x1d31e5(0x1cd)]:undefined;let _0x29ee75=[];_0x417b9e&&_0x417b9e[_0x1d31e5(0x214)](_0x3be9d0=>{const _0x4b69e7=_0x1d31e5;if(_0x3be9d0[_0x4b69e7(0x207)])_0x3be9d0['rule'][_0x4b69e7(0x1cd)][_0x4b69e7(0x214)](_0x2e222e=>{const _0x2e03c8=_0x4b69e7;if(_0x2e222e[_0x2e03c8(0x211)]&&_0x3bb904[_0x2e03c8(0x246)](_0x2e222e[_0x2e03c8(0x211)]['id'],_0x313d61)&&_0x2e222e[_0x2e03c8(0x211)][_0x2e03c8(0x1df)]){const _0x472073=_0x2e222e[_0x2e03c8(0x211)][_0x2e03c8(0x1df)]['flatMap'](_0x19f99e=>_0x19f99e['tableBody'])[_0x2e03c8(0x215)](_0x50bf89=>_0x50bf89['id']===_0x18ea21);let _0x4fe0ec;_0x472073&&_0x472073[_0x2e03c8(0x1e1)]?_0x4fe0ec=_0x472073[_0x2e03c8(0x1e1)]['map'](_0x1c3d6e=>_0x1c3d6e[_0x2e03c8(0x1d7)]):_0x4fe0ec=[],_0x4fe0ec&&(_0x29ee75=_0x4fe0ec);}});else{if(_0x3be9d0[_0x4b69e7(0x211)]&&_0x3bb904[_0x4b69e7(0x246)](_0x3be9d0[_0x4b69e7(0x211)]['id'],_0x313d61)&&_0x3be9d0[_0x4b69e7(0x211)][_0x4b69e7(0x1df)]){const _0x258445=_0x3be9d0[_0x4b69e7(0x211)][_0x4b69e7(0x1df)]['flatMap'](_0xa2583b=>_0xa2583b['tableBody'])[_0x4b69e7(0x215)](_0x349510=>_0x349510['id']===_0x18ea21);let _0x5e314e;_0x258445&&_0x258445['cells']?_0x5e314e=_0x258445[_0x4b69e7(0x1e1)][_0x4b69e7(0x212)](_0x2d5d9c=>_0x2d5d9c[_0x4b69e7(0x1d7)]):_0x5e314e=[],_0x5e314e&&(_0x29ee75=_0x5e314e);}}});if(_0x29ee75[_0x1d31e5(0x203)])return _0x29ee75;return;};async['configureGit'](){const _0x2fc543=a96_0x5eb5fd,_0x234823={'TmqXI':function(_0x5eb86f){return _0x5eb86f();}};if(this[_0x2fc543(0x200)])return this[_0x2fc543(0x206)];const _0x3332b6=await _0x234823[_0x2fc543(0x252)](getGitMetaData);_0x3332b6&&(this['_gitConfigPath']=_0x3332b6[_0x2fc543(0x1cf)]),this[_0x2fc543(0x200)]=!![];}}function a96_0x203d(_0x4ef7bc,_0x354960){const _0x22940c=a96_0x2294();return a96_0x203d=function(_0x203d82,_0x4666c9){_0x203d82=_0x203d82-0x1cb;let _0xcdc9cb=_0x22940c[_0x203d82];return _0xcdc9cb;},a96_0x203d(_0x4ef7bc,_0x354960);}module['exports']=o11yClassErrorHandler(CucumberUtils,[a96_0x5eb5fd(0x205),'getScenarioExamples',a96_0x5eb5fd(0x231),a96_0x5eb5fd(0x1eb),a96_0x5eb5fd(0x1f5),a96_0x5eb5fd(0x1dc),a96_0x5eb5fd(0x24f),a96_0x5eb5fd(0x1e5)]);function a96_0x2294(){const _0xab4136=['format','sendTestRunEventForCucumber','message','util','TmqXI','feature','AFTER_EACH','name','43gUxvUD','children','hooks','root','136336IiSGET','ZYRHt','oWSSp','unknown','5vHbWTv','HojhB','ueZGx','value','testStepResult','PDevN','Bacit','xhkwt','getHookRunEventData','PdyIZ','TsVgR','examples','eQCVe','cells','SKIPPED','ItyJN','tags','createTestFrameworkData','YwUeW','failureData','612964xdXdyq','timestamp','Exception\x20in\x20createHookData:\x20','getHookResult','getTestUUID','javascript','HdRPj','XLjln','nanos','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','FAILED','pOMon','pending','sendHook','QFowW','hbqxw','result','4766MJxQfN','542563zsnEaL','pZEgh','wLngO','push','skipped','join','_gitConfigured','GaUBM','iBHKw','length','ROJKS','configureGit','_gitConfigPath','rule','astNodeIds','nzfJM','MdgOU','qxliq','cucumber','hBKrb','uri','1484358WDTsuU','strip-ansi','scenario','map','bYkQi','forEach','find','ofZLb','includes','fOZAg','uuid','failed','../TestInfo.js','AssertionError','hookId','split','toString','finished_at','jCxIz','DWAUy','hook','failure_reason','toISOString','createHookData','exception','tagExpression','pickleStepId','duration_in_ms','relative','BEFORE_EACH','bstack','match','MeGeZ','failureType','getCucumberHookType','TWfWj','vvbkn','oUvpJ','backtrace','../../../helpers/test-observability/error-handler.js','testStepFinished','Qrhdj','winstonLogger','394875iKFzuN','testCaseFinished','getScenarioExamples','every','debug','tVGWs','VokmJ','333020QkWnXB','ZFXQP','failure','3KxdRXq','sourceReference','brqfc','rfZxr','HookRunStarted','path','nQqtl','toLowerCase','qvAQt','status'];a96_0x2294=function(){return _0xab4136;};return a96_0x2294();}
|