browserstack-node-sdk 1.50.0 → 1.50.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a85_0x1952(_0x38b250,_0x591293){const _0x1c09ec=a85_0x1c09();return a85_0x1952=function(_0x1952df,_0x5bedd4){_0x1952df=_0x1952df-0x1c7;let _0x22e9a2=_0x1c09ec[_0x1952df];return _0x22e9a2;},a85_0x1952(_0x38b250,_0x591293);}function a85_0x1c09(){const _0x55ff19=['getTestDetails','4wfjUpJ','split','getTestId','env','onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20','POST','TEST','1590OuNTCU','onPageCreate','KEY_CAPABILITIES','values','cJQeb','2692OFciTv','MODULE_NAME','KEY_PLATFORM_INDEX','TgkaV','getTestUUID','getInstance','exports','testFrameworkData','sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event','testInfo','ENV_VAR','util','../../../helpers/helper.js','920256NWKNBK','testFrameworkEvent','debug','12HAEyrd','../framework/constants/testFrameworkConstants.js','testSessionEvent','onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','../../../helpers/test-observability/constants.js','../utils/jest-utils.js','BROWSERSTACK_TESTHUB_JWT','TestHubModule','6ywYzNi','sendTestFrameworkEvent','224871FKBAmK','\x20hookState:\x20','testhubConfig','../../../helpers/classLogger.js','./loadTestModule.js','error','keys','forEach','Error\x20in\x20sendTestFrameworkEvent:\x20','matchHookRegex','KEY_TEST_FRAMEWORK_NAME','retry','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','testUuid','frameworkVersion','1942052OQLyZs','toString','OAwPg','getBuildHashedId','registerObserver','BROWSERSTACK_TESTHUB_UUID','logger','getJwt','psirG','stringify','O11yHashedID','KEY_TEST_FRAMEWORK_VERSION','1353011WQKDLr','base64','getTestFramework','jestUtils','yhozZ',',\x20test_identifier:\x20','bkYaQ','./baseModule','test_identifier','JEST','eyFFv','../framework/automationFramework.js','getContext','CUCUMBER','length','onPageCreate\x20CBTSession\x20payload:\x20','getCurrentTestState','getThreadId','testFrameworkState','10214854Hteltl','getTestIdentifierFromTestInfo','LPLVh','../browserstackCLI.js','30VzvbXm','getState','Error\x20in\x20sending\x20CBTSession:\x20','80GiOfhZ','../state/hookState.js','../cliUtils.js','getId','5|6|8|7|3|0|1|2|4','../framework/testFramework.js','KEY_HUB_URL','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','990PEqcjc','createTestFrameworkEventPayload','hookState','page','frameworkName','instance','getLTSSessionId','ZoecD','bind','../TestInfo.js','../../../helpers/testhub/constants','MNrZw','../grpcClient.js','iBqQx','onAllTestEvents','KEY_TEST_DEFERRED','from','name','getProcessId','format','./playwrightDriverModule.js'];a85_0x1c09=function(){return _0x55ff19;};return a85_0x1c09();}const a85_0x1235fd=a85_0x1952;(function(_0x11285b,_0x2ec50e){const _0x46d7d8=a85_0x1952,_0x2ad887=_0x11285b();while(!![]){try{const _0x150180=-parseInt(_0x46d7d8(0x1f7))/0x1*(-parseInt(_0x46d7d8(0x1d1))/0x2)+parseInt(_0x46d7d8(0x1ea))/0x3+-parseInt(_0x46d7d8(0x1dd))/0x4*(parseInt(_0x46d7d8(0x1d8))/0x5)+-parseInt(_0x46d7d8(0x1f5))/0x6*(-parseInt(_0x46d7d8(0x206))/0x7)+parseInt(_0x46d7d8(0x22c))/0x8*(-parseInt(_0x46d7d8(0x234))/0x9)+-parseInt(_0x46d7d8(0x229))/0xa*(-parseInt(_0x46d7d8(0x212))/0xb)+parseInt(_0x46d7d8(0x1ed))/0xc*(-parseInt(_0x46d7d8(0x225))/0xd);if(_0x150180===_0x2ec50e)break;else _0x2ad887['push'](_0x2ad887['shift']());}catch(_0x72185e){_0x2ad887['push'](_0x2ad887['shift']());}}}(a85_0x1c09,0x6228d));const util=require(a85_0x1235fd(0x1e8)),BaseModule=require(a85_0x1235fd(0x219)),{createClassLogger}=require(a85_0x1235fd(0x1fa)),AutomationFramework=require(a85_0x1235fd(0x21d)),AutomationFrameworkState=require('../state/automationFrameworkState.js'),HookState=require(a85_0x1235fd(0x22d)),TestFramework=require(a85_0x1235fd(0x231)),TestFrameworkState=require('../state/testFrameworkState.js'),PlaywrightDriverModule=require(a85_0x1235fd(0x1cf)),TestFrameworkConstants=require(a85_0x1235fd(0x1ee)),GrpcClient=require(a85_0x1235fd(0x1c7)),CLIUtils=require(a85_0x1235fd(0x22e)),TestInfo=require(a85_0x1235fd(0x23d)),testHubConstants=require(a85_0x1235fd(0x23e)),{FRAMEWORKS}=require(a85_0x1235fd(0x1f1)),helper=require(a85_0x1235fd(0x1e9)),LoadTestModule=require(a85_0x1235fd(0x1fb)),JestUtils=require(a85_0x1235fd(0x1f2)),BrowserstackCLI=require(a85_0x1235fd(0x228)),{getPlaywrightProvider,getProductForSession}=require(a85_0x1235fd(0x1e9));class TestHubModule extends BaseModule{['logger']=createClassLogger('TestHubModule');constructor(_0x5c35a2,_0x5f1252=null){const _0x369225=a85_0x1235fd,_0x1b7050={};_0x1b7050['OAwPg']=_0x369225(0x230),_0x1b7050['bkYaQ']=_0x369225(0x1f4);const _0x52a80e=_0x1b7050,_0x5624b5=_0x52a80e[_0x369225(0x208)]['split']('|');let _0x26f5b1=0x0;while(!![]){switch(_0x5624b5[_0x26f5b1++]){case'0':Object[_0x369225(0x1db)](TestFrameworkState)['forEach'](_0x5f247f=>{const _0xfabd68=_0x369225;Object[_0xfabd68(0x1db)](HookState)[_0xfabd68(0x1fe)](_0x116031=>{const _0x557e83=_0xfabd68;TestFramework['registerObserver'](_0x5f247f,_0x116031,this['onAllTestEvents'][_0x557e83(0x23c)](this));});});continue;case'1':process['env'][testHubConstants[_0x369225(0x1e7)][_0x369225(0x1f3)]]=this[_0x369225(0x1f9)][_0x369225(0x20d)]();continue;case'2':process[_0x369225(0x1d4)][testHubConstants[_0x369225(0x1e7)][_0x369225(0x20b)]]=this[_0x369225(0x1f9)][_0x369225(0x209)]();continue;case'3':AutomationFramework[_0x369225(0x20a)](AutomationFrameworkState['CREATE'],HookState[_0x369225(0x1d6)],this['onPageCreate'][_0x369225(0x23c)](this));continue;case'4':BrowserstackCLI[_0x369225(0x210)]=this[_0x369225(0x1f9)][_0x369225(0x209)]();continue;case'5':super(_0x5f1252);continue;case'6':this[_0x369225(0x1cc)]=_0x52a80e[_0x369225(0x218)];continue;case'7':this[_0x369225(0x215)]=new JestUtils();continue;case'8':this[_0x369225(0x1f9)]=_0x5c35a2;continue;}break;}}['getModuleName'](){const _0x3eb222=a85_0x1235fd;return TestHubModule[_0x3eb222(0x1de)];}[a85_0x1235fd(0x1c9)](_0x41d3c2){const _0x1714f3=a85_0x1235fd,_0x4bf352={};_0x4bf352['ZoecD']=function(_0x27bb63,_0xbc45a0){return _0x27bb63===_0xbc45a0;};const _0x474071=_0x4bf352,_0xbbd758=_0x41d3c2[_0x1714f3(0x239)],_0x1446b1=_0xbbd758[_0x1714f3(0x222)]();(_0x474071[_0x1714f3(0x23b)](_0x1446b1,TestFrameworkState[_0x1714f3(0x1d7)])||CLIUtils[_0x1714f3(0x200)](_0x1446b1['toString']()[_0x1714f3(0x1d2)]('.')[0x1]))&&this[_0x1714f3(0x1f6)](_0x41d3c2);}async[a85_0x1235fd(0x1f6)](_0x3f982d){const _0x8999ce=a85_0x1235fd,_0x4515b7={};_0x4515b7['MNrZw']=function(_0x20720f,_0x4a8d2f){return _0x20720f===_0x4a8d2f;},_0x4515b7[_0x8999ce(0x1e0)]=_0x8999ce(0x1e5);const _0x28cb76=_0x4515b7;try{const _0x74971d=BrowserstackCLI[_0x8999ce(0x1e2)]()[_0x8999ce(0x214)]()[_0x8999ce(0x235)](_0x3f982d);if(!_0x74971d||_0x28cb76[_0x8999ce(0x23f)](Object[_0x8999ce(0x1fd)](_0x74971d)[_0x8999ce(0x220)],0x0)){this[_0x8999ce(0x20c)]['debug'](_0x28cb76[_0x8999ce(0x1e0)]);return;}const _0x3fcbe1=await GrpcClient['getInstance']()[_0x8999ce(0x1eb)](_0x74971d);this[_0x8999ce(0x20c)]['debug']('sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20'+_0x74971d[_0x8999ce(0x224)]+_0x8999ce(0x1f8)+_0x74971d[_0x8999ce(0x236)]);}catch(_0x57abde){this[_0x8999ce(0x20c)][_0x8999ce(0x1fc)](_0x8999ce(0x1ff)+util[_0x8999ce(0x1ce)](_0x57abde));}}async[a85_0x1235fd(0x1d9)](_0x2328a5){const _0xece274=a85_0x1235fd,_0x3967b9={'KgYXM':function(_0x12d3e5,_0x14e8e6){return _0x12d3e5===_0x14e8e6;},'LPLVh':_0xece274(0x1f0),'eyFFv':function(_0x5e7f9c,_0x5d0059){return _0x5e7f9c===_0x5d0059;},'iBqQx':function(_0x383e84,_0x15fa50){return _0x383e84===_0x15fa50;},'cJQeb':function(_0x202585,_0x340ec2){return _0x202585(_0x340ec2);},'yhozZ':function(_0x745d3a){return _0x745d3a();},'psirG':_0xece274(0x213),'AuetY':function(_0x3d5b27,_0x5b489c){return _0x3d5b27===_0x5b489c;}};try{if(_0x2328a5[_0xece274(0x237)]){const _0x32b9b1=this[_0xece274(0x1d3)](_0x2328a5);this['logger'][_0xece274(0x1ec)](_0xece274(0x203)+_0x32b9b1);if(this[_0xece274(0x1e4)]&&_0x3967b9['KgYXM'](this[_0xece274(0x1e4)][_0xece274(0x1cc)],FRAMEWORKS[_0xece274(0x21b)])&&!_0x2328a5[_0xece274(0x1e6)]){this[_0xece274(0x20c)][_0xece274(0x1ec)](_0x3967b9[_0xece274(0x227)]);return;}let _0x32f74f,_0xd066cb;if(this[_0xece274(0x1e4)]&&_0x3967b9[_0xece274(0x21c)](this[_0xece274(0x1e4)][_0xece274(0x1cc)],FRAMEWORKS[_0xece274(0x21f)]))_0x32f74f=_0x32b9b1,_0xd066cb=TestInfo[_0xece274(0x1e1)](_0x32f74f);else this[_0xece274(0x1e4)]&&_0x3967b9['iBqQx'](this['testFrameworkData'][_0xece274(0x1cc)],FRAMEWORKS['JEST'])?(_0x32f74f=this['jestUtils']['recreateIdentifierFromTestInfo'](_0x2328a5[_0xece274(0x1e6)]),this['logger'][_0xece274(0x1ec)](_0xece274(0x1d5)+_0x32f74f)):(_0x32f74f=TestInfo[_0xece274(0x226)](_0x2328a5['testInfo'],_0x2328a5[_0xece274(0x1e6)][_0xece274(0x202)]),_0xd066cb=TestInfo[_0xece274(0x1e1)](_0x32f74f));const _0x351ebf=TestInfo[_0xece274(0x1d0)](_0x32f74f),_0x2d4bb8=_0x2328a5['instance'],_0x5a902e=AutomationFramework[_0xece274(0x22a)](_0x2d4bb8,PlaywrightDriverModule[_0xece274(0x1df)]),_0x1de10b=_0x351ebf?.[TestFrameworkConstants[_0xece274(0x201)]]||this[_0xece274(0x1e4)]&&this[_0xece274(0x1e4)][_0xece274(0x1cc)],_0x4ebb29=_0x351ebf?.[TestFrameworkConstants[_0xece274(0x211)]]||this[_0xece274(0x1e4)]&&this[_0xece274(0x1e4)]['version'],_0x37b0a2=TestFrameworkState[_0xece274(0x1d7)]['toString']()['split']('.')[0x1],_0x1a7b61=HookState[_0xece274(0x1d6)][_0xece274(0x207)]()[_0xece274(0x1d2)]('.')[0x1],_0x2b7ee6=_0x2d4bb8[_0xece274(0x21e)](),_0x56b4a6=AutomationFramework['getState'](_0x2d4bb8,PlaywrightDriverModule[_0xece274(0x232)],''),_0x677b28={'provider':_0x3967b9[_0xece274(0x1dc)](getPlaywrightProvider,_0x56b4a6),'frameworkName':_0x2d4bb8[_0xece274(0x238)],'frameworkVersion':_0x2d4bb8[_0xece274(0x205)],'frameworkSessionId':LoadTestModule['isLTSSession']()?LoadTestModule[_0xece274(0x23a)]():AutomationFramework[_0xece274(0x22a)](_0x2d4bb8,PlaywrightDriverModule['KEY_SESSION_ID'],''),'ref':_0x2d4bb8['getRef'](),'hubUrl':_0x56b4a6,'product':_0x3967b9[_0xece274(0x216)](getProductForSession)};let _0x25bb2c=AutomationFramework[_0xece274(0x22a)](_0x2d4bb8,PlaywrightDriverModule[_0xece274(0x1da)],{});_0x25bb2c=Buffer[_0xece274(0x1cb)](JSON[_0xece274(0x20f)](_0x25bb2c))[_0xece274(0x207)](_0x3967b9[_0xece274(0x20e)]);const _0x19bdec={'hash':_0x2b7ee6[_0xece274(0x22f)](),'threadId':_0x2b7ee6[_0xece274(0x223)]()[_0xece274(0x207)](),'processId':_0x2b7ee6[_0xece274(0x1cd)]()['toString']()},_0xb018a0={};_0xb018a0[_0xece274(0x21a)]=_0x32f74f;const _0x30f899={};_0x30f899[_0xece274(0x204)]=_0xd066cb;const _0x3ea806={'platformIndex':_0x5a902e,'testFrameworkName':_0x1de10b,'testFrameworkVersion':_0x4ebb29,'testFrameworkState':_0x37b0a2,'testHookState':_0x1a7b61,...this[_0xece274(0x1e4)]&&_0x3967b9['AuetY'](this[_0xece274(0x1e4)][_0xece274(0x1cc)],FRAMEWORKS['JEST'])?_0xb018a0:_0x30f899,'automationSession':_0x677b28,'capabilities':_0x25bb2c,'executionContext':_0x19bdec};this[_0xece274(0x20c)]['debug'](_0xece274(0x221)+util['format'](_0x3ea806));const _0xfa1cb=await GrpcClient[_0xece274(0x1e2)]()[_0xece274(0x1ef)](_0x3ea806);this[_0xece274(0x20c)][_0xece274(0x1ec)](_0xece274(0x233)+_0x32b9b1+(this[_0xece274(0x1e4)]&&_0x3967b9[_0xece274(0x1c8)](this[_0xece274(0x1e4)][_0xece274(0x1cc)],FRAMEWORKS[_0xece274(0x21b)])?_0xece274(0x217)+_0x32f74f:''));}}catch(_0x219560){this[_0xece274(0x20c)][_0xece274(0x1fc)](_0xece274(0x22b)+util[_0xece274(0x1ce)](_0x219560));}}}TestHubModule['MODULE_NAME']=a85_0x1235fd(0x1f4),TestHubModule[a85_0x1235fd(0x1ca)]='test_deferred',module[a85_0x1235fd(0x1e3)]=TestHubModule;
|
|
1
|
+
const a85_0xdfa6fa=a85_0x2c6d;(function(_0x4716ea,_0x179272){const _0x2d576f=a85_0x2c6d,_0x1f92d8=_0x4716ea();while(!![]){try{const _0x4de6cd=parseInt(_0x2d576f(0xbf))/0x1+parseInt(_0x2d576f(0xec))/0x2+parseInt(_0x2d576f(0x113))/0x3+parseInt(_0x2d576f(0xdf))/0x4+parseInt(_0x2d576f(0xcb))/0x5*(-parseInt(_0x2d576f(0xbb))/0x6)+parseInt(_0x2d576f(0xf1))/0x7+parseInt(_0x2d576f(0x115))/0x8*(-parseInt(_0x2d576f(0xcf))/0x9);if(_0x4de6cd===_0x179272)break;else _0x1f92d8['push'](_0x1f92d8['shift']());}catch(_0x249919){_0x1f92d8['push'](_0x1f92d8['shift']());}}}(a85_0x5ba9,0xcfda4));function a85_0x2c6d(_0x360c97,_0x54452d){const _0x5ba97d=a85_0x5ba9();return a85_0x2c6d=function(_0x2c6d10,_0x1b94d1){_0x2c6d10=_0x2c6d10-0xb6;let _0x4fa59d=_0x5ba97d[_0x2c6d10];return _0x4fa59d;},a85_0x2c6d(_0x360c97,_0x54452d);}function a85_0x5ba9(){const _0x2a0191=['aYlgK','Error\x20in\x20sendTestFrameworkEvent:\x20','base64','Error\x20in\x20sending\x20CBTSession:\x20','onPageCreate\x20CBTSession\x20payload:\x20','2140056aBZFYV','TEST','./baseModule','CREATE','../utils/jest-utils.js','KEY_TEST_FRAMEWORK_VERSION','error','jestUtils','\x20hookState:\x20','onPageCreate','O11yHashedID','BROWSERSTACK_TESTHUB_UUID','TestHubModule','2013032kIwzcB','getBuildHashedId','testFrameworkEvent','testFrameworkState','test_deferred','6931218QKYBHo','sendTestFrameworkEvent:\x20No\x20payload\x20created,\x20skipping\x20test\x20framework\x20event','TZaJH','frameworkVersion','bind','version','getTestUUID','dvbmy','onAllTestEvents','keys','CUCUMBER','JEST','hookState','format','getContext','vGfqB','registerObserver','KEY_TEST_FRAMEWORK_NAME','../framework/automationFramework.js','getTestFramework',',\x20test_identifier:\x20','values','../../../helpers/test-observability/constants.js','POST','testInfo','getId','../../../helpers/classLogger.js','testFrameworkData','../cliUtils.js','toString','getCurrentTestState','stringify','instance','env','3901839vlXNzj','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','2482024UsLOny','KEY_HUB_URL','bLMRM','retry','onPageCreate:\x20Skipping\x20CBT\x20session\x20event\x20-\x20no\x20testInfo\x20(page\x20created\x20outside\x20test\x20context)','forEach','debug','getTestDetails','../framework/testFramework.js','testhubConfig','10674esCgiE','esRpY','../state/testFrameworkState.js','getState','134053RVrQzT','sendTestFrameworkEvent','testUuid','getJwt','../browserstackCLI.js','getInstance','sendTestFrameworkEvent\x20complete\x20for\x20testState:\x20','aRjnu','yonug','../grpcClient.js','CmPwY','onPageCreate:\x20Recreated\x20Jest\x20testIdentifier:\x20','4395yvEadN','../TestInfo.js','getTestId','./loadTestModule.js','45RddWUl','logger','BROWSERSTACK_TESTHUB_JWT','getProcessId','name','testSessionEvent','split','../state/automationFrameworkState.js','mncbu','gxEte','test_identifier'];a85_0x5ba9=function(){return _0x2a0191;};return a85_0x5ba9();}const util=require('util'),BaseModule=require(a85_0xdfa6fa(0xe1)),{createClassLogger}=require(a85_0xdfa6fa(0x10b)),AutomationFramework=require(a85_0xdfa6fa(0x103)),AutomationFrameworkState=require(a85_0xdfa6fa(0xd6)),HookState=require('../state/hookState.js'),TestFramework=require(a85_0xdfa6fa(0xb9)),TestFrameworkState=require(a85_0xdfa6fa(0xbd)),PlaywrightDriverModule=require('./playwrightDriverModule.js'),TestFrameworkConstants=require('../framework/constants/testFrameworkConstants.js'),GrpcClient=require(a85_0xdfa6fa(0xc8)),CLIUtils=require(a85_0xdfa6fa(0x10d)),TestInfo=require(a85_0xdfa6fa(0xcc)),testHubConstants=require('../../../helpers/testhub/constants'),{FRAMEWORKS}=require(a85_0xdfa6fa(0x107)),helper=require('../../../helpers/helper.js'),LoadTestModule=require(a85_0xdfa6fa(0xce)),JestUtils=require(a85_0xdfa6fa(0xe3)),BrowserstackCLI=require(a85_0xdfa6fa(0xc3)),{getPlaywrightProvider,getProductForSession}=require('../../../helpers/helper.js');class TestHubModule extends BaseModule{[a85_0xdfa6fa(0xd0)]=createClassLogger(a85_0xdfa6fa(0xeb));constructor(_0x38aece,_0x5f414c=null){const _0x30fb22=a85_0xdfa6fa,_0x2dffbd={};_0x2dffbd['aYlgK']='5|1|2|4|6|3|7|8|0',_0x2dffbd[_0x30fb22(0xc7)]=_0x30fb22(0xeb);const _0x5c8a6f=_0x2dffbd,_0x447824=_0x5c8a6f[_0x30fb22(0xda)]['split']('|');let _0x218cd2=0x0;while(!![]){switch(_0x447824[_0x218cd2++]){case'0':BrowserstackCLI[_0x30fb22(0xe9)]=this['testhubConfig'][_0x30fb22(0xed)]();continue;case'1':this[_0x30fb22(0xd3)]=_0x5c8a6f[_0x30fb22(0xc7)];continue;case'2':this[_0x30fb22(0xba)]=_0x38aece;continue;case'3':Object['values'](TestFrameworkState)[_0x30fb22(0xb6)](_0x3beb3b=>{const _0x5cd807=_0x30fb22;Object[_0x5cd807(0x106)](HookState)['forEach'](_0xa0d4b2=>{const _0x3b6513=_0x5cd807;TestFramework[_0x3b6513(0x101)](_0x3beb3b,_0xa0d4b2,this['onAllTestEvents'][_0x3b6513(0xf5)](this));});});continue;case'4':this[_0x30fb22(0xe6)]=new JestUtils();continue;case'5':super(_0x5f414c);continue;case'6':AutomationFramework[_0x30fb22(0x101)](AutomationFrameworkState[_0x30fb22(0xe2)],HookState[_0x30fb22(0x108)],this['onPageCreate'][_0x30fb22(0xf5)](this));continue;case'7':process['env'][testHubConstants['ENV_VAR'][_0x30fb22(0xd1)]]=this[_0x30fb22(0xba)][_0x30fb22(0xc2)]();continue;case'8':process[_0x30fb22(0x112)][testHubConstants['ENV_VAR'][_0x30fb22(0xea)]]=this['testhubConfig'][_0x30fb22(0xed)]();continue;}break;}}['getModuleName'](){return TestHubModule['MODULE_NAME'];}[a85_0xdfa6fa(0xf9)](_0x2dfff2){const _0x1103b6=a85_0xdfa6fa,_0x2736cd={};_0x2736cd[_0x1103b6(0xbc)]=function(_0x47e906,_0x53a0f1){return _0x47e906===_0x53a0f1;};const _0x3be09e=_0x2736cd,_0x5c908c=_0x2dfff2[_0x1103b6(0x111)],_0x191b45=_0x5c908c[_0x1103b6(0x10f)]();(_0x3be09e['esRpY'](_0x191b45,TestFrameworkState[_0x1103b6(0xe0)])||CLIUtils['matchHookRegex'](_0x191b45[_0x1103b6(0x10e)]()['split']('.')[0x1]))&&this[_0x1103b6(0xc0)](_0x2dfff2);}async[a85_0xdfa6fa(0xc0)](_0x5bc9a8){const _0x3f462b=a85_0xdfa6fa,_0x1b2566={};_0x1b2566[_0x3f462b(0xc9)]=function(_0x46c5c8,_0x5ae918){return _0x46c5c8===_0x5ae918;},_0x1b2566[_0x3f462b(0x117)]=_0x3f462b(0xf2);const _0x243272=_0x1b2566;try{const _0x50befb=BrowserstackCLI[_0x3f462b(0xc4)]()[_0x3f462b(0x104)]()['createTestFrameworkEventPayload'](_0x5bc9a8);if(!_0x50befb||_0x243272[_0x3f462b(0xc9)](Object[_0x3f462b(0xfa)](_0x50befb)['length'],0x0)){this['logger']['debug'](_0x243272[_0x3f462b(0x117)]);return;}const _0x253dea=await GrpcClient[_0x3f462b(0xc4)]()[_0x3f462b(0xee)](_0x50befb);this[_0x3f462b(0xd0)][_0x3f462b(0xb7)](_0x3f462b(0xc5)+_0x50befb[_0x3f462b(0xef)]+_0x3f462b(0xe7)+_0x50befb[_0x3f462b(0xfd)]);}catch(_0x4d9d09){this[_0x3f462b(0xd0)]['error'](_0x3f462b(0xdb)+util[_0x3f462b(0xfe)](_0x4d9d09));}}async[a85_0xdfa6fa(0xe8)](_0x38eaea){const _0x3726c0=a85_0xdfa6fa,_0x2659ab={'dvbmy':function(_0x1a0745,_0x539de9){return _0x1a0745===_0x539de9;},'mncbu':_0x3726c0(0x119),'gxEte':function(_0x5a8191,_0x986581){return _0x5a8191===_0x986581;},'vGfqB':function(_0x424eff,_0x39fd49){return _0x424eff===_0x39fd49;},'MhGtI':function(_0x38af9e,_0x2c736b){return _0x38af9e(_0x2c736b);},'TZaJH':function(_0x3c9dc0){return _0x3c9dc0();},'aRjnu':_0x3726c0(0xdc)};try{if(_0x38eaea['page']){const _0x651a05=this[_0x3726c0(0xcd)](_0x38eaea);this['logger']['debug']('onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20'+_0x651a05);if(this[_0x3726c0(0x10c)]&&_0x2659ab['dvbmy'](this[_0x3726c0(0x10c)][_0x3726c0(0xd3)],FRAMEWORKS['JEST'])&&!_0x38eaea[_0x3726c0(0x109)]){this[_0x3726c0(0xd0)][_0x3726c0(0xb7)](_0x2659ab[_0x3726c0(0xd7)]);return;}let _0x421809,_0x26e452;if(this[_0x3726c0(0x10c)]&&_0x2659ab['gxEte'](this[_0x3726c0(0x10c)][_0x3726c0(0xd3)],FRAMEWORKS[_0x3726c0(0xfb)]))_0x421809=_0x651a05,_0x26e452=TestInfo[_0x3726c0(0xf7)](_0x421809);else this[_0x3726c0(0x10c)]&&_0x2659ab[_0x3726c0(0x100)](this[_0x3726c0(0x10c)][_0x3726c0(0xd3)],FRAMEWORKS[_0x3726c0(0xfc)])?(_0x421809=this[_0x3726c0(0xe6)]['recreateIdentifierFromTestInfo'](_0x38eaea[_0x3726c0(0x109)]),this[_0x3726c0(0xd0)][_0x3726c0(0xb7)](_0x3726c0(0xca)+_0x421809)):(_0x421809=TestInfo['getTestIdentifierFromTestInfo'](_0x38eaea['testInfo'],_0x38eaea['testInfo'][_0x3726c0(0x118)]),_0x26e452=TestInfo[_0x3726c0(0xf7)](_0x421809));const _0x3c773e=TestInfo[_0x3726c0(0xb8)](_0x421809),_0x206080=_0x38eaea[_0x3726c0(0x111)],_0x22be8f=AutomationFramework['getState'](_0x206080,PlaywrightDriverModule['KEY_PLATFORM_INDEX']),_0x3cbffa=_0x3c773e?.[TestFrameworkConstants[_0x3726c0(0x102)]]||this[_0x3726c0(0x10c)]&&this[_0x3726c0(0x10c)][_0x3726c0(0xd3)],_0x8df30=_0x3c773e?.[TestFrameworkConstants[_0x3726c0(0xe4)]]||this[_0x3726c0(0x10c)]&&this[_0x3726c0(0x10c)][_0x3726c0(0xf6)],_0x2ae6fd=TestFrameworkState[_0x3726c0(0xe0)][_0x3726c0(0x10e)]()[_0x3726c0(0xd5)]('.')[0x1],_0x2c5ac3=HookState[_0x3726c0(0x108)]['toString']()[_0x3726c0(0xd5)]('.')[0x1],_0x357fcd=_0x206080[_0x3726c0(0xff)](),_0x381aff=AutomationFramework['getState'](_0x206080,PlaywrightDriverModule[_0x3726c0(0x116)],''),_0x3b539c={'provider':_0x2659ab['MhGtI'](getPlaywrightProvider,_0x381aff),'frameworkName':_0x206080['frameworkName'],'frameworkVersion':_0x206080[_0x3726c0(0xf4)],'frameworkSessionId':LoadTestModule['isLTSSession']()?LoadTestModule['getLTSSessionId']():AutomationFramework[_0x3726c0(0xbe)](_0x206080,PlaywrightDriverModule['KEY_SESSION_ID'],''),'ref':_0x206080['getRef'](),'hubUrl':_0x381aff,'product':_0x2659ab[_0x3726c0(0xf3)](getProductForSession)};let _0x1d39a0=AutomationFramework['getState'](_0x206080,PlaywrightDriverModule['KEY_CAPABILITIES'],{});_0x1d39a0=Buffer['from'](JSON[_0x3726c0(0x110)](_0x1d39a0))[_0x3726c0(0x10e)](_0x2659ab[_0x3726c0(0xc6)]);const _0x2cf9ad={'hash':_0x357fcd[_0x3726c0(0x10a)](),'threadId':_0x357fcd['getThreadId']()[_0x3726c0(0x10e)](),'processId':_0x357fcd[_0x3726c0(0xd2)]()[_0x3726c0(0x10e)]()},_0x1bb623={};_0x1bb623[_0x3726c0(0xd9)]=_0x421809;const _0x18aa54={};_0x18aa54[_0x3726c0(0xc1)]=_0x26e452;const _0x5bcac2={'platformIndex':_0x22be8f,'testFrameworkName':_0x3cbffa,'testFrameworkVersion':_0x8df30,'testFrameworkState':_0x2ae6fd,'testHookState':_0x2c5ac3,...this[_0x3726c0(0x10c)]&&_0x2659ab[_0x3726c0(0xd8)](this['testFrameworkData'][_0x3726c0(0xd3)],FRAMEWORKS[_0x3726c0(0xfc)])?_0x1bb623:_0x18aa54,'automationSession':_0x3b539c,'capabilities':_0x1d39a0,'executionContext':_0x2cf9ad};this[_0x3726c0(0xd0)][_0x3726c0(0xb7)](_0x3726c0(0xde)+util[_0x3726c0(0xfe)](_0x5bcac2));const _0x5258e6=await GrpcClient[_0x3726c0(0xc4)]()[_0x3726c0(0xd4)](_0x5bcac2);this['logger']['debug'](_0x3726c0(0x114)+_0x651a05+(this[_0x3726c0(0x10c)]&&_0x2659ab[_0x3726c0(0xf8)](this[_0x3726c0(0x10c)][_0x3726c0(0xd3)],FRAMEWORKS[_0x3726c0(0xfc)])?_0x3726c0(0x105)+_0x421809:''));}}catch(_0x3ce05a){this[_0x3726c0(0xd0)][_0x3726c0(0xe5)](_0x3726c0(0xdd)+util[_0x3726c0(0xfe)](_0x3ce05a));}}}TestHubModule['MODULE_NAME']=a85_0xdfa6fa(0xeb),TestHubModule['KEY_TEST_DEFERRED']=a85_0xdfa6fa(0xf0),module['exports']=TestHubModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x2df119=a86_0x11e2;(function(_0x311724,_0x249876){const _0x28329d=a86_0x11e2,_0xa4ef90=_0x311724();while(!![]){try{const _0x40e995=parseInt(_0x28329d(0x82))/0x1*(-parseInt(_0x28329d(0x99))/0x2)+-parseInt(_0x28329d(0x96))/0x3+parseInt(_0x28329d(0x89))/0x4*(-parseInt(_0x28329d(0x8a))/0x5)+-parseInt(_0x28329d(0x84))/0x6*(-parseInt(_0x28329d(0x85))/0x7)+-parseInt(_0x28329d(0x8e))/0x8*(parseInt(_0x28329d(0x98))/0x9)+parseInt(_0x28329d(0x9b))/0xa*(parseInt(_0x28329d(0x97))/0xb)+-parseInt(_0x28329d(0x9d))/0xc*(-parseInt(_0x28329d(0x90))/0xd);if(_0x40e995===_0x249876)break;else _0xa4ef90['push'](_0xa4ef90['shift']());}catch(_0x1fcd4b){_0xa4ef90['push'](_0xa4ef90['shift']());}}}(a86_0x24ec,0x59a49));const {PLAYWRIGHT}=require(a86_0x2df119(0x95)),a86_0x197b85={};a86_0x197b85['value']=0x0,a86_0x197b85[a86_0x2df119(0x9a)]=function(){const _0x1f6bca=a86_0x2df119,_0x4a1211={};_0x4a1211[_0x1f6bca(0x9c)]=_0x1f6bca(0x8c);const _0x189bf4=_0x4a1211;return _0x189bf4[_0x1f6bca(0x9c)];};const a86_0x579e90={};function a86_0x24ec(){const _0x443a95=['AutomationFrameworkState.QUIT','akAEx','../../utils/constants','1918017qerrnG','451iQtuKG','198783xRIbQH','10822WTvxnJ','toString','37690pMrnoG','vfDkx','162228XMNIvq','AutomationFrameworkState.EXECUTE','jSTED','23wmLtHz','find','39420QZhaOm','434YxiAOh','freeze','AutomationFrameworkState.PLAYWRIGHT_DISPATCH','exports','758732KmqHKI','5rrmzsX','ccecU','AutomationFrameworkState.NONE','lnysX','112nVOTny','value','1027dxGkAf','values','NDGft'];a86_0x24ec=function(){return _0x443a95;};return a86_0x24ec();}a86_0x579e90[a86_0x2df119(0x8f)]=0x1,a86_0x579e90[a86_0x2df119(0x9a)]=function(){const _0x7b2edc=a86_0x2df119,_0x55add1={};_0x55add1[_0x7b2edc(0x94)]='AutomationFrameworkState.CREATE';const _0x224e7c=_0x55add1;return _0x224e7c[_0x7b2edc(0x94)];};const a86_0x5693a8={};a86_0x5693a8[a86_0x2df119(0x8f)]=0x2,a86_0x5693a8[a86_0x2df119(0x9a)]=function(){const _0x416221=a86_0x2df119,_0x58ace1={};_0x58ace1[_0x416221(0x92)]=_0x416221(0x87);const _0x5d8a97=_0x58ace1;return _0x5d8a97[_0x416221(0x92)];};const a86_0xf09230={};a86_0xf09230['value']=0x3,a86_0xf09230[a86_0x2df119(0x9a)]=function(){const _0x15780d=a86_0x2df119,_0x17c0b2={};_0x17c0b2[_0x15780d(0x8b)]=_0x15780d(0x80);const _0x399448=_0x17c0b2;return _0x399448[_0x15780d(0x8b)];};const a86_0x55a29a={};a86_0x55a29a[a86_0x2df119(0x8f)]=0x4,a86_0x55a29a[a86_0x2df119(0x9a)]=function(){const _0x2d2180=a86_0x2df119,_0xc55a44={};_0xc55a44[_0x2d2180(0x8d)]='AutomationFrameworkState.IDLE';const _0x15d7ba=_0xc55a44;return _0x15d7ba['lnysX'];};const a86_0x52c642={};function a86_0x11e2(_0x4cc4ac,_0x4e8475){const _0x24ec7e=a86_0x24ec();return a86_0x11e2=function(_0x11e21d,_0x46b84c){_0x11e21d=_0x11e21d-0x80;let _0x1c7636=_0x24ec7e[_0x11e21d];return _0x1c7636;},a86_0x11e2(_0x4cc4ac,_0x4e8475);}a86_0x52c642[a86_0x2df119(0x8f)]=0x5,a86_0x52c642[a86_0x2df119(0x9a)]=function(){const _0x27e4b0=a86_0x2df119,_0x38feef={};_0x38feef[_0x27e4b0(0x81)]=_0x27e4b0(0x93);const _0x16d4b6=_0x38feef;return _0x16d4b6['jSTED'];};const AutomationFrameworkState=Object[a86_0x2df119(0x86)]({'NONE':a86_0x197b85,'CREATE':a86_0x579e90,'PLAYWRIGHT_DISPATCH':a86_0x5693a8,'EXECUTE':a86_0xf09230,'IDLE':a86_0x55a29a,'QUIT':a86_0x52c642,'fromValue'(_0x5ee0e2){const _0x1e363c=a86_0x2df119;return Object[_0x1e363c(0x91)](AutomationFrameworkState)[_0x1e363c(0x83)](_0x4a6821=>_0x4a6821[_0x1e363c(0x8f)]===_0x5ee0e2);}});module[a86_0x2df119(0x88)]=AutomationFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a87_0xf04124=a87_0x3804;(function(_0x1536eb,_0xe4f545){const _0x9a9f31=a87_0x3804,_0x3f38b3=_0x1536eb();while(!![]){try{const _0x2257ab=parseInt(_0x9a9f31(0x1c3))/0x1*(-parseInt(_0x9a9f31(0x1c2))/0x2)+-parseInt(_0x9a9f31(0x1c4))/0x3+parseInt(_0x9a9f31(0x1b9))/0x4*(-parseInt(_0x9a9f31(0x1bf))/0x5)+-parseInt(_0x9a9f31(0x1be))/0x6*(-parseInt(_0x9a9f31(0x1bb))/0x7)+-parseInt(_0x9a9f31(0x1c0))/0x8*(parseInt(_0x9a9f31(0x1c9))/0x9)+-parseInt(_0x9a9f31(0x1c5))/0xa*(parseInt(_0x9a9f31(0x1ca))/0xb)+parseInt(_0x9a9f31(0x1c7))/0xc*(parseInt(_0x9a9f31(0x1b6))/0xd);if(_0x2257ab===_0xe4f545)break;else _0x3f38b3['push'](_0x3f38b3['shift']());}catch(_0x551f21){_0x3f38b3['push'](_0x3f38b3['shift']());}}}(a87_0x2c50,0x54033));const a87_0x5dbaeb={};a87_0x5dbaeb['value']=0x0,a87_0x5dbaeb['toString']=function(){const _0x229c34=a87_0x3804,_0x1da1c5={};_0x1da1c5[_0x229c34(0x1bc)]='HookState.NONE';const _0x2ed012=_0x1da1c5;return _0x2ed012[_0x229c34(0x1bc)];};const a87_0x52dc92={};a87_0x52dc92[a87_0xf04124(0x1b7)]=0x1,a87_0x52dc92[a87_0xf04124(0x1ba)]=function(){const _0xaeb9cc=a87_0xf04124,_0x59df27={};_0x59df27[_0xaeb9cc(0x1b5)]=_0xaeb9cc(0x1bd);const _0x5a244c=_0x59df27;return _0x5a244c['BUolD'];};const a87_0x53dbba={};a87_0x53dbba[a87_0xf04124(0x1b7)]=0x2,a87_0x53dbba[a87_0xf04124(0x1ba)]=function(){const _0x5a7253=a87_0xf04124,_0x548321={};_0x548321[_0x5a7253(0x1b8)]=_0x5a7253(0x1c6);const _0x2a1036=_0x548321;return _0x2a1036['mclIB'];};function a87_0x3804(_0x400be6,_0x331450){const _0x2c50cb=a87_0x2c50();return a87_0x3804=function(_0x380404,_0x20cc87){_0x380404=_0x380404-0x1b5;let _0x50730c=_0x2c50cb[_0x380404];return _0x50730c;},a87_0x3804(_0x400be6,_0x331450);}const HookState=Object[a87_0xf04124(0x1c1)]({'NONE':a87_0x5dbaeb,'PRE':a87_0x52dc92,'POST':a87_0x53dbba,'fromValue'(_0x5bceff){const _0x2c0ef6=a87_0xf04124;return Object[_0x2c0ef6(0x1c8)](HookState)['find'](_0x228537=>_0x228537[_0x2c0ef6(0x1b7)]===_0x5bceff);}});function a87_0x2c50(){const _0x47ba66=['12xtrNwp','toString','7JlQxKV','zZLnw','HookState.PRE','3703932OEppyu','479845DERoOE','118920sgWRSA','freeze','735146WXQnks','1jhBXjG','359265cLSrjz','60fMZTdM','HookState.POST','804wNnLCV','values','315UmeJoZ','557755KnGXhZ','BUolD','257387YoVSxh','value','mclIB'];a87_0x2c50=function(){return _0x47ba66;};return a87_0x2c50();}module['exports']=HookState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x26c96e=a88_0x21ae;(function(_0x25c1ad,_0x4f99e3){const _0x374c30=a88_0x21ae,_0x4c3814=_0x25c1ad();while(!![]){try{const _0x769965=-parseInt(_0x374c30(0xb5))/0x1*(-parseInt(_0x374c30(0xae))/0x2)+parseInt(_0x374c30(0xce))/0x3*(-parseInt(_0x374c30(0xbf))/0x4)+parseInt(_0x374c30(0xb1))/0x5+-parseInt(_0x374c30(0xc1))/0x6+-parseInt(_0x374c30(0xc8))/0x7+parseInt(_0x374c30(0xc4))/0x8+-parseInt(_0x374c30(0xb8))/0x9;if(_0x769965===_0x4f99e3)break;else _0x4c3814['push'](_0x4c3814['shift']());}catch(_0x26db7e){_0x4c3814['push'](_0x4c3814['shift']());}}}(a88_0x332c,0x43720));function a88_0x21ae(_0x11baa4,_0x5712c1){const _0x332c38=a88_0x332c();return a88_0x21ae=function(_0x21ae62,_0x317625){_0x21ae62=_0x21ae62-0xad;let _0x1a3ae9=_0x332c38[_0x21ae62];return _0x1a3ae9;},a88_0x21ae(_0x11baa4,_0x5712c1);}const a88_0x24d834={};a88_0x24d834[a88_0x26c96e(0xc5)]=0x0,a88_0x24d834['toString']=function(){const _0x37537f=a88_0x26c96e,_0x442024={};_0x442024[_0x37537f(0xaf)]=_0x37537f(0xb7);const _0x38d3ba=_0x442024;return _0x38d3ba[_0x37537f(0xaf)];};const a88_0x2a452b={};a88_0x2a452b[a88_0x26c96e(0xc5)]=0x1,a88_0x2a452b[a88_0x26c96e(0xb2)]=function(){const _0x254480=a88_0x26c96e,_0x5c1564={};_0x5c1564['XgJRn']=_0x254480(0xad);const _0x4529c1=_0x5c1564;return _0x4529c1[_0x254480(0xb4)];};const a88_0x4e18a7={};function a88_0x332c(){const _0x9ae6b2=['2444013WQgUdb','TestFrameworkState.AFTER_EACH','dJLeL','VgDpv','RsYau','exports','CIdSw','25028rvRclb','TestFrameworkState.BEFORE_EACH','83598lGeUZw','KYFAq','TestFrameworkState.SETUP_FIXTURE','4004528YQhFOW','value','freeze','TestFrameworkState.INIT_TEST','706657jddCsI','bPNVL','TestFrameworkState.LOG_REPORT','bRwRE','TestFrameworkState.LOG','TestFrameworkState.AFTER_ALL','231zjNSql','values','TestFrameworkState.BEFORE_ALL','158ukcGpp','DDrik','AvzgN','1146245GsadGW','toString','TestFrameworkState.TEST','XgJRn','5249MqFnpe','TSfkJ','TestFrameworkState.NONE'];a88_0x332c=function(){return _0x9ae6b2;};return a88_0x332c();}a88_0x4e18a7[a88_0x26c96e(0xc5)]=0x2,a88_0x4e18a7[a88_0x26c96e(0xb2)]=function(){const _0x3d1f9c=a88_0x26c96e,_0x58715b={};_0x58715b[_0x3d1f9c(0xb0)]=_0x3d1f9c(0xcc);const _0x4a0932=_0x58715b;return _0x4a0932[_0x3d1f9c(0xb0)];};const a88_0x31b241={};a88_0x31b241['value']=0x3,a88_0x31b241[a88_0x26c96e(0xb2)]=function(){const _0x2a21cc=a88_0x26c96e,_0x2f711e={};_0x2f711e[_0x2a21cc(0xbe)]=_0x2a21cc(0xc3);const _0x5685f6=_0x2f711e;return _0x5685f6['CIdSw'];};const a88_0x4ff19d={};a88_0x4ff19d[a88_0x26c96e(0xc5)]=0x4,a88_0x4ff19d[a88_0x26c96e(0xb2)]=function(){const _0x4ff48d=a88_0x26c96e,_0x46c8a7={};_0x46c8a7[_0x4ff48d(0xba)]=_0x4ff48d(0xc7);const _0x20bd9f=_0x46c8a7;return _0x20bd9f[_0x4ff48d(0xba)];};const a88_0x223555={};a88_0x223555[a88_0x26c96e(0xc5)]=0x5,a88_0x223555['toString']=function(){const _0x41aafb=a88_0x26c96e,_0x4ea68f={};_0x4ea68f[_0x41aafb(0xc9)]=_0x41aafb(0xc0);const _0x5507df=_0x4ea68f;return _0x5507df[_0x41aafb(0xc9)];};const a88_0x260d21={};a88_0x260d21[a88_0x26c96e(0xc5)]=0x6,a88_0x260d21[a88_0x26c96e(0xb2)]=function(){const _0x4cd5cf=a88_0x26c96e,_0x40a530={};_0x40a530['TSfkJ']=_0x4cd5cf(0xb9);const _0x367e69=_0x40a530;return _0x367e69[_0x4cd5cf(0xb6)];};const a88_0xe1cc7b={};a88_0xe1cc7b[a88_0x26c96e(0xc5)]=0x7,a88_0xe1cc7b['toString']=function(){const _0x1269bd=a88_0x26c96e,_0x3b5cc6={};_0x3b5cc6[_0x1269bd(0xc2)]=_0x1269bd(0xb3);const _0x4ee8af=_0x3b5cc6;return _0x4ee8af[_0x1269bd(0xc2)];};const a88_0x36b447={};a88_0x36b447[a88_0x26c96e(0xc5)]=0x8,a88_0x36b447[a88_0x26c96e(0xb2)]=function(){const _0x42e5d1={};_0x42e5d1['JruAE']='TestFrameworkState.STEP';const _0x1f74f7=_0x42e5d1;return _0x1f74f7['JruAE'];};const a88_0x2c684d={};a88_0x2c684d[a88_0x26c96e(0xc5)]=0x9,a88_0x2c684d['toString']=function(){const _0x3aa6ed=a88_0x26c96e,_0x13d8a3={};_0x13d8a3[_0x3aa6ed(0xbb)]=_0x3aa6ed(0xca);const _0x1c5983=_0x13d8a3;return _0x1c5983[_0x3aa6ed(0xbb)];};const a88_0x51bf15={};a88_0x51bf15['value']=0xa,a88_0x51bf15[a88_0x26c96e(0xb2)]=function(){const _0x116c5b=a88_0x26c96e,_0x17eb17={};_0x17eb17[_0x116c5b(0xcb)]=_0x116c5b(0xcd);const _0x26655b=_0x17eb17;return _0x26655b[_0x116c5b(0xcb)];};const a88_0xa971a6={};a88_0xa971a6['value']=0xb,a88_0xa971a6[a88_0x26c96e(0xb2)]=function(){const _0x552055=a88_0x26c96e,_0x428bf7={};_0x428bf7[_0x552055(0xbc)]='TestFrameworkState.TEST_SCREENSHOT';const _0x365a37=_0x428bf7;return _0x365a37[_0x552055(0xbc)];};const TestFrameworkState=Object[a88_0x26c96e(0xc6)]({'NONE':a88_0x24d834,'BEFORE_ALL':a88_0x2a452b,'LOG':a88_0x4e18a7,'SETUP_FIXTURE':a88_0x31b241,'INIT_TEST':a88_0x4ff19d,'BEFORE_EACH':a88_0x223555,'AFTER_EACH':a88_0x260d21,'TEST':a88_0xe1cc7b,'STEP':a88_0x36b447,'LOG_REPORT':a88_0x2c684d,'AFTER_ALL':a88_0x51bf15,'TEST_SCREENSHOT':a88_0xa971a6,'fromValue'(_0x5df61f){const _0xe8abf8=a88_0x26c96e;return Object[_0xe8abf8(0xcf)](TestFrameworkState)['find'](_0x1ee69a=>_0x1ee69a[_0xe8abf8(0xc5)]===_0x5df61f);}});module[a88_0x26c96e(0xbd)]=TestFrameworkState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a89_0x55938a=a89_0x3f8c;(function(_0xac576b,_0x2227b2){const _0x3c6482=a89_0x3f8c,_0x3e2511=_0xac576b();while(!![]){try{const _0x3abc78=-parseInt(_0x3c6482(0x18c))/0x1*(parseInt(_0x3c6482(0x1e0))/0x2)+-parseInt(_0x3c6482(0x191))/0x3*(-parseInt(_0x3c6482(0x1da))/0x4)+parseInt(_0x3c6482(0x1c0))/0x5*(-parseInt(_0x3c6482(0x1d5))/0x6)+parseInt(_0x3c6482(0x203))/0x7*(-parseInt(_0x3c6482(0x1bb))/0x8)+parseInt(_0x3c6482(0x1f8))/0x9*(parseInt(_0x3c6482(0x1ef))/0xa)+-parseInt(_0x3c6482(0x1d2))/0xb+parseInt(_0x3c6482(0x1a7))/0xc;if(_0x3abc78===_0x2227b2)break;else _0x3e2511['push'](_0x3e2511['shift']());}catch(_0x5e4720){_0x3e2511['push'](_0x3e2511['shift']());}}}(a89_0x25ee,0xea58f));function a89_0x3f8c(_0x23b36a,_0x5e52a8){const _0x25ee87=a89_0x25ee();return a89_0x3f8c=function(_0x3f8c91,_0x4e9bb5){_0x3f8c91=_0x3f8c91-0x18b;let _0x10ad94=_0x25ee87[_0x3f8c91];return _0x10ad94;},a89_0x3f8c(_0x23b36a,_0x5e52a8);}const os=require('os'),fs=require('fs'),path=require(a89_0x55938a(0x200)),util=require(a89_0x55938a(0x19b)),BrowserstackCLI=require('./browserstackCLI'),https=require('https'),http=require(a89_0x55938a(0x196)),AutomationFramework=require(a89_0x55938a(0x1b0)),PlaywrightDriverModule=require(a89_0x55938a(0x199)),TestInfo=require('./TestInfo'),TestFrameworkConstants=require(a89_0x55938a(0x207)),{createClassLogger}=require(a89_0x55938a(0x1be));class uploadAttachmentsManager{static ['logger']=createClassLogger(a89_0x55938a(0x1aa));static['uploadAttachments'](_0x2ca2ff,_0x2fcbfa=![]){const _0x4476af=a89_0x55938a,_0x2b0821={};_0x2b0821[_0x4476af(0x1e2)]=function(_0x160ecb,_0x1d679a){return _0x160ecb/_0x1d679a;},_0x2b0821['tcXJK']=function(_0xa80a6c,_0x574d13){return _0xa80a6c*_0x574d13;},_0x2b0821['yuepe']=function(_0x3e2f84,_0x492c35){return _0x3e2f84>_0x492c35;},_0x2b0821[_0x4476af(0x1ea)]=_0x4476af(0x18e),_0x2b0821[_0x4476af(0x20a)]=_0x4476af(0x1f4),_0x2b0821[_0x4476af(0x1ba)]=function(_0x51649a,_0xcd5e5f){return _0x51649a===_0xcd5e5f;},_0x2b0821[_0x4476af(0x198)]='finish',_0x2b0821[_0x4476af(0x204)]=_0x4476af(0x1a8),_0x2b0821[_0x4476af(0x1dd)]='Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload',_0x2b0821['TDCXY']=_0x4476af(0x18b),_0x2b0821[_0x4476af(0x206)]=_0x4476af(0x1cf),_0x2b0821[_0x4476af(0x1ed)]=_0x4476af(0x1c2),_0x2b0821[_0x4476af(0x20d)]=_0x4476af(0x212),_0x2b0821[_0x4476af(0x1c5)]='Created\x20folder:\x20%s',_0x2b0821[_0x4476af(0x211)]=_0x4476af(0x1d6),_0x2b0821[_0x4476af(0x1b2)]=_0x4476af(0x1fd),_0x2b0821[_0x4476af(0x1fe)]=_0x4476af(0x1e8),_0x2b0821['xjcSB']='error',_0x2b0821[_0x4476af(0x205)]=_0x4476af(0x1ac),_0x2b0821[_0x4476af(0x202)]=function(_0x17f56c,_0x294fc6){return _0x17f56c*_0x294fc6;},_0x2b0821[_0x4476af(0x1a3)]=_0x4476af(0x1eb);const _0x121499=_0x2b0821;this[_0x4476af(0x1c9)][_0x4476af(0x1a9)](util[_0x4476af(0x201)](_0x121499['TDCXY'],_0x2ca2ff));const _0x326d0e=os[_0x4476af(0x1b8)](),_0x14e8c1=path[_0x4476af(0x1ab)](_0x326d0e,_0x121499[_0x4476af(0x206)]);!fs[_0x4476af(0x193)](_0x14e8c1)&&(this['logger'][_0x4476af(0x1a9)](util[_0x4476af(0x201)](_0x121499[_0x4476af(0x1ed)],_0x14e8c1)),fs[_0x4476af(0x1b3)](_0x14e8c1),this['logger'][_0x4476af(0x1a9)](util['format'](_0x121499[_0x4476af(0x20d)],_0x14e8c1)));const _0x1155a3=BrowserstackCLI[_0x4476af(0x1d3)]()[_0x4476af(0x1d7)]['TestHubModule']?.['testhubConfig']?.[_0x4476af(0x20f)]()?.['buildHashedId'],_0x47ea89=path[_0x4476af(0x1ab)](_0x14e8c1,_0x1155a3);!fs[_0x4476af(0x193)](_0x47ea89)&&(fs[_0x4476af(0x1b3)](_0x47ea89),this['logger'][_0x4476af(0x1a9)](util[_0x4476af(0x201)](_0x121499['ijdvL'],_0x47ea89)));if(_0x121499[_0x4476af(0x1ba)](_0x2ca2ff[_0x4476af(0x1dc)](),'')){this[_0x4476af(0x1c9)][_0x4476af(0x1a9)](util[_0x4476af(0x201)](_0x121499['ggzEC']));return;}if(_0x2ca2ff[_0x4476af(0x1df)](_0x121499[_0x4476af(0x1b2)])||_0x2ca2ff[_0x4476af(0x1df)](_0x121499[_0x4476af(0x1fe)])){const _0x1ee69f=_0x2ca2ff['startsWith'](_0x121499[_0x4476af(0x1b2)])?https:http,_0x34629f=path['basename'](_0x2ca2ff),_0x54b7d0=path[_0x4476af(0x1ab)](_0x47ea89,_0x34629f),_0x14fc8d=fs[_0x4476af(0x1bf)](_0x54b7d0);_0x1ee69f[_0x4476af(0x1b9)](_0x2ca2ff,_0x32b994=>{const _0x19d82a=_0x4476af;if(_0x121499['mlksY'](_0x32b994['statusCode'],0xc8))_0x32b994[_0x19d82a(0x1a1)](_0x14fc8d),_0x14fc8d['on'](_0x121499[_0x19d82a(0x198)],()=>{const _0x4626c8=_0x19d82a;_0x14fc8d['close']();const _0x2a87f9=fs[_0x4626c8(0x1ee)](_0x54b7d0),_0x366e9f=_0x121499[_0x4626c8(0x1e2)](_0x2a87f9['size'],_0x121499[_0x4626c8(0x1fb)](0x400,0x400));if(_0x121499[_0x4626c8(0x1c4)](_0x366e9f,0x64)){this[_0x4626c8(0x1c9)]['debug'](util[_0x4626c8(0x201)](_0x121499[_0x4626c8(0x1ea)],_0x366e9f[_0x4626c8(0x20b)](0x2))),fs[_0x4626c8(0x1e9)](_0x54b7d0);return;}this['logger']['debug'](util[_0x4626c8(0x201)](_0x121499[_0x4626c8(0x20a)],_0x54b7d0)),uploadAttachmentsManager['trackFile'](_0x54b7d0,_0x2fcbfa);});else{this[_0x19d82a(0x1c9)]['debug'](util[_0x19d82a(0x201)](_0x121499[_0x19d82a(0x204)],_0x32b994['statusCode'])),_0x14fc8d[_0x19d82a(0x1a0)](),fs[_0x19d82a(0x1e9)](_0x54b7d0);return;}})['on'](_0x121499['xjcSB'],_0x227f2a=>{const _0x258824=_0x4476af;this[_0x258824(0x1c9)][_0x258824(0x1a9)](util[_0x258824(0x201)](_0x121499[_0x258824(0x1dd)],_0x227f2a[_0x258824(0x20e)])),_0x14fc8d[_0x258824(0x1a0)](),fs['unlinkSync'](_0x54b7d0);return;});}else{if(!fs[_0x4476af(0x193)](_0x2ca2ff)){this[_0x4476af(0x1c9)]['debug'](util[_0x4476af(0x201)](_0x121499[_0x4476af(0x205)],_0x2ca2ff));return;}const _0xb7cbfc=fs[_0x4476af(0x1ee)](_0x2ca2ff),_0x5274af=_0x121499['uzVpn'](_0xb7cbfc[_0x4476af(0x1ad)],_0x121499[_0x4476af(0x202)](0x400,0x400));if(_0x121499[_0x4476af(0x1c4)](_0x5274af,0x64)){this['logger'][_0x4476af(0x1a9)](util[_0x4476af(0x201)](_0x121499['ffwCJ'],_0x5274af[_0x4476af(0x20b)](0x2)));return;}const _0x33931e=path[_0x4476af(0x210)](_0x2ca2ff),_0x3c4dc9=path[_0x4476af(0x1ab)](_0x47ea89,_0x33931e);fs[_0x4476af(0x1b4)](_0x2ca2ff,_0x3c4dc9),uploadAttachmentsManager['trackFile'](_0x3c4dc9,_0x2fcbfa);}}static['trackFile'](_0x43cf3e,_0x472e05){const _0x2edef5=a89_0x55938a,_0x711a1e={'RrCKE':function(_0x5d93a2,_0x5372a8){return _0x5d93a2(_0x5372a8);},'LjLFF':_0x2edef5(0x1c1),'oUHKE':_0x2edef5(0x1c7),'Wdlbh':function(_0x40092f,_0x50f85e){return _0x40092f===_0x50f85e;},'Kcumb':_0x2edef5(0x1d0),'FciSB':'trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','fFUHP':'BuildLevel','cyKMr':'TestLevel','GxOnQ':_0x2edef5(0x1ae),'ZpWjJ':function(_0x1b0851,_0x2657ab){return _0x1b0851(_0x2657ab);},'JAgGH':_0x2edef5(0x1ff),'qBgdC':_0x2edef5(0x20c),'jHGeS':_0x2edef5(0x1f2),'TRmfH':_0x2edef5(0x1bd),'wMXJd':_0x2edef5(0x19e)};try{let _0x31f749;const _0x13173f=global[_0x2edef5(0x19c)]?.[_0x2edef5(0x1a4)]?.['testInfo'],_0x3fd271=_0x711a1e[_0x2edef5(0x1db)](require,_0x711a1e[_0x2edef5(0x19d)]),_0x2f2a3b=_0x711a1e['RrCKE'](require,_0x711a1e[_0x2edef5(0x194)]),_0x5303b1=_0x3fd271[_0x2edef5(0x1d3)]()[_0x2edef5(0x1cc)]()&&_0x711a1e[_0x2edef5(0x1b5)](_0x2f2a3b[_0x2edef5(0x1f0)]()?.[_0x2edef5(0x1e3)]?.[_0x2edef5(0x1f9)](),_0x711a1e[_0x2edef5(0x19a)]);if(_0x5303b1){_0x31f749=global[_0x2edef5(0x1d9)];if(!_0x31f749){const _0x511f07=AutomationFramework[_0x2edef5(0x1a5)]();_0x31f749=AutomationFramework[_0x2edef5(0x1d1)](_0x511f07,PlaywrightDriverModule[_0x2edef5(0x19f)],'');}this[_0x2edef5(0x1c9)][_0x2edef5(0x1a9)](_0x2edef5(0x1ca)+_0x31f749);}else{if(!_0x13173f){const _0x5ec2c5=AutomationFramework[_0x2edef5(0x1a5)]();_0x31f749=AutomationFramework['getState'](_0x5ec2c5,PlaywrightDriverModule[_0x2edef5(0x19f)],'');}else _0x31f749=TestInfo[_0x2edef5(0x1ec)](_0x13173f,_0x13173f[_0x2edef5(0x1b6)]);this['logger'][_0x2edef5(0x1a9)](_0x2edef5(0x1d4)+_0x31f749);}if(!_0x31f749){this[_0x2edef5(0x1c9)][_0x2edef5(0x1a9)](_0x711a1e[_0x2edef5(0x1f6)]);return;}const _0x2658fe={[TestFrameworkConstants[_0x2edef5(0x1f1)]]:fs['statSync'](_0x43cf3e)[_0x2edef5(0x1ad)],[TestFrameworkConstants['KEY_FILE_NAME']]:path[_0x2edef5(0x210)](_0x43cf3e),[TestFrameworkConstants[_0x2edef5(0x1c3)]]:_0x43cf3e,[TestFrameworkConstants[_0x2edef5(0x192)]]:_0x472e05?_0x711a1e[_0x2edef5(0x1bc)]:_0x711a1e[_0x2edef5(0x197)]};if(_0x5303b1){const _0x38254b=_0x3fd271[_0x2edef5(0x1d3)]()[_0x2edef5(0x18f)]();if(!_0x38254b){this[_0x2edef5(0x1c9)][_0x2edef5(0x1a9)](_0x711a1e[_0x2edef5(0x1b7)]);return;}const _0xa09cf=_0x711a1e[_0x2edef5(0x190)](require,_0x711a1e[_0x2edef5(0x1ce)]),_0x13a8d1=_0x711a1e[_0x2edef5(0x1db)](require,_0x711a1e[_0x2edef5(0x1e7)]),_0x2f348b=_0x38254b[_0x2edef5(0x1fa)](_0xa09cf[_0x2edef5(0x1e1)],_0x13a8d1[_0x2edef5(0x1fc)]);if(!_0x2f348b){this[_0x2edef5(0x1c9)][_0x2edef5(0x1a9)](_0x711a1e[_0x2edef5(0x1af)]);return;}const _0x502406=_0x2f348b[_0x2edef5(0x1cb)]()['get'](_0x31f749)||{},_0x2e28b7=_0x502406[TestFrameworkConstants[_0x2edef5(0x195)]]||{},_0x57e1cf={..._0x2e28b7};_0x57e1cf[_0x43cf3e]=_0x2658fe;const _0x4ca490=_0x57e1cf,_0x34e611={[TestFrameworkConstants[_0x2edef5(0x195)]]:_0x4ca490},_0x27e767={};_0x27e767[_0x31f749]=_0x34e611,_0x2f348b[_0x2edef5(0x18d)](_0x27e767),this['logger'][_0x2edef5(0x1a9)](_0x2edef5(0x1c6)+_0x31f749+_0x2edef5(0x1f5)+_0x43cf3e);}else{const _0x52bc00=TestInfo[_0x2edef5(0x1f3)](_0x31f749),_0x3f7aca=_0x52bc00[TestFrameworkConstants[_0x2edef5(0x195)]]||{};_0x3f7aca[_0x43cf3e]=_0x2658fe,_0x52bc00[TestFrameworkConstants[_0x2edef5(0x195)]]=_0x3f7aca,TestInfo[_0x2edef5(0x1e6)](_0x31f749,_0x52bc00),this[_0x2edef5(0x1c9)][_0x2edef5(0x1a9)](_0x2edef5(0x209)+_0x31f749+_0x2edef5(0x1f5)+_0x43cf3e);}this[_0x2edef5(0x1c9)][_0x2edef5(0x1a9)](util[_0x2edef5(0x201)](_0x711a1e['TRmfH'],_0x43cf3e));}catch(_0x4d8c84){this[_0x2edef5(0x1c9)][_0x2edef5(0x1a9)](util[_0x2edef5(0x201)](_0x711a1e[_0x2edef5(0x1d8)],_0x4d8c84[_0x2edef5(0x20e)]));}}static[a89_0x55938a(0x208)](){const _0x4f999f=a89_0x55938a,_0x3e510f={};_0x3e510f[_0x4f999f(0x1f7)]=_0x4f999f(0x1cf),_0x3e510f[_0x4f999f(0x1a2)]=_0x4f999f(0x1b1),_0x3e510f['mXiDc']=_0x4f999f(0x1a6);const _0x3f63e5=_0x3e510f,_0x4f9dbb=os[_0x4f999f(0x1b8)](),_0x32f24a=path[_0x4f999f(0x1ab)](_0x4f9dbb,_0x3f63e5['jMgRd']);if(!fs['existsSync'](_0x32f24a))return;const _0x54d75d=BrowserstackCLI[_0x4f999f(0x1d3)]()[_0x4f999f(0x1d7)][_0x4f999f(0x1e5)]?.[_0x4f999f(0x1cd)]?.['toObject']()?.[_0x4f999f(0x1de)],_0x1b83fb=_0x54d75d?path[_0x4f999f(0x1ab)](_0x32f24a,_0x54d75d):null;if(!_0x1b83fb||!fs[_0x4f999f(0x193)](_0x1b83fb)){this[_0x4f999f(0x1c9)][_0x4f999f(0x1a9)](util[_0x4f999f(0x201)](_0x3f63e5[_0x4f999f(0x1a2)],_0x54d75d));return;}const _0x905275={};_0x905275[_0x4f999f(0x1e4)]=!![],_0x905275['force']=!![],fs['rmSync'](_0x1b83fb,_0x905275),this[_0x4f999f(0x1c9)]['debug'](util[_0x4f999f(0x201)](_0x3f63e5[_0x4f999f(0x1c8)]));}}module['exports']=uploadAttachmentsManager;function a89_0x25ee(){const _0x2edc53=['4281464GQNaHw','getInstance','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','2322282UoMgIO','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','modules','wMXJd','__jestCurrentTestIdentifier','32uSpuSN','RrCKE','trim','PdAHg','buildHashedId','startsWith','4714gNDDOz','TEST','uzVpn','name','recursive','TestHubModule','setTestDetails','qBgdC','http://','unlinkSync','hFCKe','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','getTestIdentifierFromTestInfo','mpuON','statSync','68380Gicnbm','getTestFrameworkDetail','KEY_FILE_SIZE','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','getTestDetails','File\x20downloaded\x20to:\x20%s',',\x20filepath:\x20','FciSB','jMgRd','2151TzAclw','toLowerCase','resolveInstance','tcXJK','POST','https://','HSuzJ','./state/testFrameworkState','path','format','EMvYZ','56zviuOu','RmOim','UkzmV','TCeER','./framework/constants/testFrameworkConstants','clearAttachments','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','oZyLt','toFixed','./state/hookState','wQEKy','message','toObject','basename','ggzEC','Created\x20.browserstack\x20folder\x20at:\x20%s','Attachment\x20recevied\x20for\x20path:\x20%s','354xpUqXl','addMultipleEntries','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','getTestFramework','ZpWjJ','64989AnBQqD','KEY_FILE_LEVEL','existsSync','oUHKE','KEY_TEST_ATTACHMENTS','http','cyKMr','pzGHY','./modules/playwrightDriverModule','Kcumb','util','__workerDetails','LjLFF','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','KEY_TEST_ID','close','pipe','QsRhx','ffwCJ','currentTest','getTrackedInstance','Cleared\x20attachment\x20folder','35688156GuvXDm','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','debug','uploadAttachmentsManager','join','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','size','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','jHGeS','./framework/automationFramework','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','hmRVf','mkdirSync','copyFileSync','Wdlbh','retry','GxOnQ','homedir','get','mlksY','1824016KSRWGK','fFUHP','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','../../helpers/classLogger.js','createWriteStream','10KnaKvM','./browserstackCLI','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','KEY_FILE_PATH','yuepe','ijdvL','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','./cliUtils','mXiDc','logger','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','getAllData','isRunning','testhubConfig','JAgGH','.browserstack','jest','getState'];a89_0x25ee=function(){return _0x2edc53;};return a89_0x25ee();}
|
|
1
|
+
const a89_0x1950f0=a89_0x16bb;function a89_0x1151(){const _0x1c16b5=['statSync','Mcbuv','15usPsgb','bZmee','RSiCx','mkdirSync','getInstance','DwjIX','trim','EEvEl','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','startsWith','190806pfXOaY','get','./state/hookState','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','Cleared\x20attachment\x20folder','name','KEY_TEST_ID','sQBhr','__workerDetails','getTestIdentifierFromTestInfo','isRunning','testhubConfig','KHkNZ','uemmW','http','3125259JgeqzY','dQgRw','TEST','recursive','http://','jeeXf','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','RhMvZ','htQFu','getTestDetails','JKPwW','qGOQZ','xNylv','basename','resolveInstance','trackFile','JiZEh','KEY_FILE_LEVEL','modules','ThkYE',',\x20filepath:\x20','NeBZt','KEY_TEST_ATTACHMENTS','Attachment\x20recevied\x20for\x20path:\x20%s','toFixed','KEY_FILE_SIZE','ITdhV','uploadAttachmentsManager','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','wCgrX','Aythw','103639OvHwBb','cBOnf','setTestDetails','pqyZN','./state/testFrameworkState','toLowerCase','ozcwz','./browserstackCLI','2654505dDdbyA','CXlrg','unlinkSync','currentTest','homedir','statusCode','copyFileSync','Created\x20folder:\x20%s','PgZWV','retry','join','POST','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','path','https','testInfo','aiokG','855690ijTevR','PHrFb','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','4izxMLX','trackFile:\x20No\x20testId\x20available,\x20cannot\x20track\x20attachment','existsSync','trackFile:\x20TestFramework\x20not\x20available,\x20cannot\x20track\x20attachment','../../helpers/classLogger.js','115320luECnO','./modules/playwrightDriverModule','trackFile:\x20Cucumber+Playwright\x20-\x20testId:\x20','size','force','NPGcA','format','trackFile:\x20Instance\x20not\x20available,\x20cannot\x20track\x20attachment','debug','2101274wULokV','trackFile:\x20Stored\x20attachment\x20in\x20TestInfo\x20file\x20for\x20testId:\x20','buildHashedId','PmuSw','TestHubModule','Etcnk','Qtiki','File\x20downloaded\x20to:\x20%s','BuildLevel','hzCSR','dUATY','close','8zLhYtq','Created\x20.browserstack\x20folder\x20at:\x20%s','pTJTn','PPZzP','xTONT','logger','eDVyp','trackFile:\x20Stored\x20attachment\x20in\x20instance\x20memory\x20for\x20testId:\x20','trackFile:\x20Jest+Playwright\x20-\x20testId\x20(testIdentifier):\x20','toObject','KbHjh','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.','mcYvp','TestLevel','euyNo','AmEFt','message','exports','./framework/constants/testFrameworkConstants','rmSync','getTrackedInstance'];a89_0x1151=function(){return _0x1c16b5;};return a89_0x1151();}(function(_0x2d7149,_0x1d8d65){const _0xcfb671=a89_0x16bb,_0x1d5fdd=_0x2d7149();while(!![]){try{const _0x2a6d53=-parseInt(_0xcfb671(0x181))/0x1*(-parseInt(_0xcfb671(0x19d))/0x2)+parseInt(_0xcfb671(0x1cf))/0x3*(-parseInt(_0xcfb671(0x1a2))/0x4)+parseInt(_0xcfb671(0x189))/0x5+-parseInt(_0xcfb671(0x153))/0x6+-parseInt(_0xcfb671(0x1ab))/0x7*(-parseInt(_0xcfb671(0x1b7))/0x8)+-parseInt(_0xcfb671(0x162))/0x9+-parseInt(_0xcfb671(0x19a))/0xa;if(_0x2a6d53===_0x1d8d65)break;else _0x1d5fdd['push'](_0x1d5fdd['shift']());}catch(_0x17a865){_0x1d5fdd['push'](_0x1d5fdd['shift']());}}}(a89_0x1151,0x68e16));const os=require('os'),fs=require('fs'),path=require(a89_0x1950f0(0x196)),util=require('util'),BrowserstackCLI=require(a89_0x1950f0(0x188)),https=require(a89_0x1950f0(0x197)),http=require(a89_0x1950f0(0x161)),AutomationFramework=require('./framework/automationFramework'),PlaywrightDriverModule=require(a89_0x1950f0(0x1a3)),TestInfo=require('./TestInfo'),TestFrameworkConstants=require(a89_0x1950f0(0x1ca)),{createClassLogger}=require(a89_0x1950f0(0x1a1));function a89_0x16bb(_0x502ff3,_0x3a5251){const _0x115175=a89_0x1151();return a89_0x16bb=function(_0x16bb2c,_0x4e6c76){_0x16bb2c=_0x16bb2c-0x14f;let _0x50213c=_0x115175[_0x16bb2c];return _0x50213c;},a89_0x16bb(_0x502ff3,_0x3a5251);}class uploadAttachmentsManager{static [a89_0x1950f0(0x1bc)]=createClassLogger(a89_0x1950f0(0x17d));static['uploadAttachments'](_0x254440,_0x38b8cd=![]){const _0x4d3f35=a89_0x1950f0,_0x51a1f7={};_0x51a1f7[_0x4d3f35(0x180)]=function(_0x4bc5c5,_0x81e35){return _0x4bc5c5/_0x81e35;},_0x51a1f7['KbHjh']=function(_0x2ccca6,_0x4b6a5c){return _0x2ccca6*_0x4b6a5c;},_0x51a1f7[_0x4d3f35(0x16c)]=function(_0x491d99,_0x5b9d95){return _0x491d99>_0x5b9d95;},_0x51a1f7[_0x4d3f35(0x1c4)]=_0x4d3f35(0x1c3),_0x51a1f7[_0x4d3f35(0x160)]=_0x4d3f35(0x1b2),_0x51a1f7[_0x4d3f35(0x16e)]=function(_0x529db0,_0x3f907c){return _0x529db0===_0x3f907c;},_0x51a1f7[_0x4d3f35(0x163)]='finish',_0x51a1f7['Mcbuv']=_0x4d3f35(0x17e),_0x51a1f7[_0x4d3f35(0x172)]=_0x4d3f35(0x151),_0x51a1f7['QQgiK']=_0x4d3f35(0x179),_0x51a1f7[_0x4d3f35(0x1b5)]='.browserstack',_0x51a1f7[_0x4d3f35(0x1b9)]=_0x4d3f35(0x19c),_0x51a1f7[_0x4d3f35(0x1b4)]=_0x4d3f35(0x1b8),_0x51a1f7[_0x4d3f35(0x1d0)]=_0x4d3f35(0x190),_0x51a1f7[_0x4d3f35(0x177)]=function(_0x29c6c7,_0x5bb8f8){return _0x29c6c7===_0x5bb8f8;},_0x51a1f7['Etcnk']='Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.',_0x51a1f7[_0x4d3f35(0x19b)]='https://',_0x51a1f7['ThkYE']=_0x4d3f35(0x166),_0x51a1f7['PPZzP']='error',_0x51a1f7[_0x4d3f35(0x1d4)]=_0x4d3f35(0x1c2),_0x51a1f7[_0x4d3f35(0x191)]=function(_0x3fcf4c,_0x4070b4){return _0x3fcf4c/_0x4070b4;},_0x51a1f7[_0x4d3f35(0x150)]=function(_0x53e245,_0x5e09c8){return _0x53e245>_0x5e09c8;},_0x51a1f7[_0x4d3f35(0x199)]=_0x4d3f35(0x156);const _0x543d60=_0x51a1f7;this[_0x4d3f35(0x1bc)][_0x4d3f35(0x1aa)](util[_0x4d3f35(0x1a8)](_0x543d60['QQgiK'],_0x254440));const _0x12891a=os[_0x4d3f35(0x18d)](),_0x35b944=path[_0x4d3f35(0x193)](_0x12891a,_0x543d60[_0x4d3f35(0x1b5)]);!fs[_0x4d3f35(0x19f)](_0x35b944)&&(this['logger'][_0x4d3f35(0x1aa)](util[_0x4d3f35(0x1a8)](_0x543d60[_0x4d3f35(0x1b9)],_0x35b944)),fs[_0x4d3f35(0x1d2)](_0x35b944),this['logger'][_0x4d3f35(0x1aa)](util[_0x4d3f35(0x1a8)](_0x543d60['hzCSR'],_0x35b944)));const _0x238f59=BrowserstackCLI[_0x4d3f35(0x1d3)]()[_0x4d3f35(0x174)][_0x4d3f35(0x1af)]?.[_0x4d3f35(0x15e)]?.[_0x4d3f35(0x1c0)]()?.[_0x4d3f35(0x1ad)],_0x212f2b=path[_0x4d3f35(0x193)](_0x35b944,_0x238f59);!fs['existsSync'](_0x212f2b)&&(fs[_0x4d3f35(0x1d2)](_0x212f2b),this['logger'][_0x4d3f35(0x1aa)](util[_0x4d3f35(0x1a8)](_0x543d60[_0x4d3f35(0x1d0)],_0x212f2b)));if(_0x543d60[_0x4d3f35(0x177)](_0x254440[_0x4d3f35(0x14f)](),'')){this['logger'][_0x4d3f35(0x1aa)](util[_0x4d3f35(0x1a8)](_0x543d60[_0x4d3f35(0x1b0)]));return;}if(_0x254440[_0x4d3f35(0x152)](_0x543d60[_0x4d3f35(0x19b)])||_0x254440['startsWith'](_0x543d60[_0x4d3f35(0x175)])){const _0x390ec9=_0x254440[_0x4d3f35(0x152)](_0x543d60[_0x4d3f35(0x19b)])?https:http,_0x5df047=path[_0x4d3f35(0x16f)](_0x254440),_0x2d5056=path[_0x4d3f35(0x193)](_0x212f2b,_0x5df047),_0x22fcd3=fs['createWriteStream'](_0x2d5056);_0x390ec9[_0x4d3f35(0x154)](_0x254440,_0x427f3d=>{const _0x3a522e=_0x4d3f35,_0x19e77a={'cBOnf':function(_0x424efc,_0x9040f8){const _0x266031=a89_0x16bb;return _0x543d60[_0x266031(0x180)](_0x424efc,_0x9040f8);},'ITdhV':function(_0x348f7c,_0x4506a6){const _0x3cc058=a89_0x16bb;return _0x543d60[_0x3cc058(0x1c1)](_0x348f7c,_0x4506a6);},'hITwA':function(_0x4586af,_0x20268f){return _0x543d60['JKPwW'](_0x4586af,_0x20268f);},'htQFu':_0x543d60[_0x3a522e(0x1c4)],'xZZts':_0x543d60[_0x3a522e(0x160)]};if(_0x543d60[_0x3a522e(0x16e)](_0x427f3d[_0x3a522e(0x18e)],0xc8))_0x427f3d['pipe'](_0x22fcd3),_0x22fcd3['on'](_0x543d60['dQgRw'],()=>{const _0x4977e0=_0x3a522e;_0x22fcd3[_0x4977e0(0x1b6)]();const _0x129c13=fs[_0x4977e0(0x1cd)](_0x2d5056),_0xe2f4e5=_0x19e77a[_0x4977e0(0x182)](_0x129c13[_0x4977e0(0x1a5)],_0x19e77a[_0x4977e0(0x17c)](0x400,0x400));if(_0x19e77a['hITwA'](_0xe2f4e5,0x64)){this[_0x4977e0(0x1bc)][_0x4977e0(0x1aa)](util[_0x4977e0(0x1a8)](_0x19e77a[_0x4977e0(0x16a)],_0xe2f4e5[_0x4977e0(0x17a)](0x2))),fs[_0x4977e0(0x18b)](_0x2d5056);return;}this['logger'][_0x4977e0(0x1aa)](util[_0x4977e0(0x1a8)](_0x19e77a['xZZts'],_0x2d5056)),uploadAttachmentsManager[_0x4977e0(0x171)](_0x2d5056,_0x38b8cd);});else{this[_0x3a522e(0x1bc)][_0x3a522e(0x1aa)](util[_0x3a522e(0x1a8)](_0x543d60[_0x3a522e(0x1ce)],_0x427f3d['statusCode'])),_0x22fcd3[_0x3a522e(0x1b6)](),fs[_0x3a522e(0x18b)](_0x2d5056);return;}})['on'](_0x543d60[_0x4d3f35(0x1ba)],_0x5e9917=>{const _0x2e1b26=_0x4d3f35;this[_0x2e1b26(0x1bc)][_0x2e1b26(0x1aa)](util[_0x2e1b26(0x1a8)](_0x543d60[_0x2e1b26(0x172)],_0x5e9917[_0x2e1b26(0x1c8)])),_0x22fcd3['close'](),fs['unlinkSync'](_0x2d5056);return;});}else{if(!fs[_0x4d3f35(0x19f)](_0x254440)){this[_0x4d3f35(0x1bc)][_0x4d3f35(0x1aa)](util[_0x4d3f35(0x1a8)](_0x543d60['DwjIX'],_0x254440));return;}const _0x1cb4ee=fs[_0x4d3f35(0x1cd)](_0x254440),_0x4c4969=_0x543d60['PgZWV'](_0x1cb4ee[_0x4d3f35(0x1a5)],_0x543d60['KbHjh'](0x400,0x400));if(_0x543d60[_0x4d3f35(0x150)](_0x4c4969,0x64)){this['logger']['debug'](util[_0x4d3f35(0x1a8)](_0x543d60[_0x4d3f35(0x199)],_0x4c4969['toFixed'](0x2)));return;}const _0x511c96=path[_0x4d3f35(0x16f)](_0x254440),_0x444093=path['join'](_0x212f2b,_0x511c96);fs[_0x4d3f35(0x18f)](_0x254440,_0x444093),uploadAttachmentsManager['trackFile'](_0x444093,_0x38b8cd);}}static[a89_0x1950f0(0x171)](_0x3d0ce0,_0xa6c2b0){const _0x8b4cfc=a89_0x1950f0,_0x1b9ea4={'RhMvZ':function(_0x2fd02f,_0x2c01e3){return _0x2fd02f(_0x2c01e3);},'NPGcA':'./browserstackCLI','PmuSw':function(_0x3c09ba,_0x43893a){return _0x3c09ba(_0x43893a);},'eDVyp':'./cliUtils','pqyZN':function(_0x604a10,_0xdce0c8){return _0x604a10===_0xdce0c8;},'TfZql':'jest','RSiCx':_0x8b4cfc(0x19e),'euyNo':_0x8b4cfc(0x1b3),'wCgrX':_0x8b4cfc(0x1c5),'sQBhr':_0x8b4cfc(0x1a0),'aPtSL':function(_0x54e065,_0xd34b65){return _0x54e065(_0xd34b65);},'AmEFt':_0x8b4cfc(0x185),'CXlrg':_0x8b4cfc(0x155),'ozcwz':_0x8b4cfc(0x1a9),'qGOQZ':_0x8b4cfc(0x195),'Qtiki':_0x8b4cfc(0x168)};try{let _0x2cbaa1;const _0x128090=global[_0x8b4cfc(0x15b)]?.[_0x8b4cfc(0x18c)]?.[_0x8b4cfc(0x198)],_0x1c66e6=_0x1b9ea4[_0x8b4cfc(0x169)](require,_0x1b9ea4[_0x8b4cfc(0x1a7)]),_0x9559f5=_0x1b9ea4[_0x8b4cfc(0x1ae)](require,_0x1b9ea4[_0x8b4cfc(0x1bd)]),_0x339ed5=_0x1c66e6[_0x8b4cfc(0x1d3)]()[_0x8b4cfc(0x15d)]()&&_0x1b9ea4[_0x8b4cfc(0x184)](_0x9559f5['getTestFrameworkDetail']()?.[_0x8b4cfc(0x158)]?.[_0x8b4cfc(0x186)](),_0x1b9ea4['TfZql']);if(_0x339ed5){_0x2cbaa1=global['__jestCurrentTestIdentifier'];if(!_0x2cbaa1){const _0x575615=AutomationFramework[_0x8b4cfc(0x1cc)]();_0x2cbaa1=AutomationFramework['getState'](_0x575615,PlaywrightDriverModule[_0x8b4cfc(0x159)],'');}this[_0x8b4cfc(0x1bc)]['debug'](_0x8b4cfc(0x1bf)+_0x2cbaa1);}else{if(!_0x128090){const _0x24962d=AutomationFramework[_0x8b4cfc(0x1cc)]();_0x2cbaa1=AutomationFramework['getState'](_0x24962d,PlaywrightDriverModule[_0x8b4cfc(0x159)],'');}else _0x2cbaa1=TestInfo[_0x8b4cfc(0x15c)](_0x128090,_0x128090[_0x8b4cfc(0x192)]);this[_0x8b4cfc(0x1bc)][_0x8b4cfc(0x1aa)](_0x8b4cfc(0x1a4)+_0x2cbaa1);}if(!_0x2cbaa1){this[_0x8b4cfc(0x1bc)][_0x8b4cfc(0x1aa)](_0x1b9ea4[_0x8b4cfc(0x1d1)]);return;}const _0x2f3111={[TestFrameworkConstants[_0x8b4cfc(0x17b)]]:fs[_0x8b4cfc(0x1cd)](_0x3d0ce0)[_0x8b4cfc(0x1a5)],[TestFrameworkConstants['KEY_FILE_NAME']]:path[_0x8b4cfc(0x16f)](_0x3d0ce0),[TestFrameworkConstants['KEY_FILE_PATH']]:_0x3d0ce0,[TestFrameworkConstants[_0x8b4cfc(0x173)]]:_0xa6c2b0?_0x1b9ea4[_0x8b4cfc(0x1c6)]:_0x1b9ea4[_0x8b4cfc(0x17f)]};if(_0x339ed5){const _0x5655e9=_0x1c66e6['getInstance']()['getTestFramework']();if(!_0x5655e9){this[_0x8b4cfc(0x1bc)][_0x8b4cfc(0x1aa)](_0x1b9ea4[_0x8b4cfc(0x15a)]);return;}const _0xe6e386=_0x1b9ea4['aPtSL'](require,_0x1b9ea4[_0x8b4cfc(0x1c7)]),_0x1e097a=_0x1b9ea4[_0x8b4cfc(0x169)](require,_0x1b9ea4[_0x8b4cfc(0x18a)]),_0xe252ef=_0x5655e9[_0x8b4cfc(0x170)](_0xe6e386[_0x8b4cfc(0x164)],_0x1e097a[_0x8b4cfc(0x194)]);if(!_0xe252ef){this[_0x8b4cfc(0x1bc)][_0x8b4cfc(0x1aa)](_0x1b9ea4[_0x8b4cfc(0x187)]);return;}const _0x1ea896=_0xe252ef['getAllData']()[_0x8b4cfc(0x154)](_0x2cbaa1)||{},_0x3d144c=_0x1ea896[TestFrameworkConstants[_0x8b4cfc(0x178)]]||{},_0x44c21a={..._0x3d144c};_0x44c21a[_0x3d0ce0]=_0x2f3111;const _0x4c5d37=_0x44c21a,_0x20dfc2={[TestFrameworkConstants[_0x8b4cfc(0x178)]]:_0x4c5d37},_0x146a6a={};_0x146a6a[_0x2cbaa1]=_0x20dfc2,_0xe252ef['addMultipleEntries'](_0x146a6a),this['logger'][_0x8b4cfc(0x1aa)](_0x8b4cfc(0x1be)+_0x2cbaa1+_0x8b4cfc(0x176)+_0x3d0ce0);}else{const _0x4cb40d=TestInfo[_0x8b4cfc(0x16b)](_0x2cbaa1),_0x22209f=_0x4cb40d[TestFrameworkConstants[_0x8b4cfc(0x178)]]||{};_0x22209f[_0x3d0ce0]=_0x2f3111,_0x4cb40d[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]=_0x22209f,TestInfo[_0x8b4cfc(0x183)](_0x2cbaa1,_0x4cb40d),this[_0x8b4cfc(0x1bc)][_0x8b4cfc(0x1aa)](_0x8b4cfc(0x1ac)+_0x2cbaa1+',\x20filepath:\x20'+_0x3d0ce0);}this[_0x8b4cfc(0x1bc)][_0x8b4cfc(0x1aa)](util[_0x8b4cfc(0x1a8)](_0x1b9ea4[_0x8b4cfc(0x16d)],_0x3d0ce0));}catch(_0x660f18){this['logger'][_0x8b4cfc(0x1aa)](util[_0x8b4cfc(0x1a8)](_0x1b9ea4[_0x8b4cfc(0x1b1)],_0x660f18[_0x8b4cfc(0x1c8)]));}}static['clearAttachments'](){const _0x505aa9=a89_0x1950f0,_0x403a27={};_0x403a27[_0x505aa9(0x1bb)]='.browserstack',_0x403a27[_0x505aa9(0x167)]='No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s',_0x403a27[_0x505aa9(0x15f)]=_0x505aa9(0x157);const _0x574338=_0x403a27,_0x5a7100=os[_0x505aa9(0x18d)](),_0x44ac6f=path['join'](_0x5a7100,_0x574338[_0x505aa9(0x1bb)]);if(!fs['existsSync'](_0x44ac6f))return;const _0x13fb08=BrowserstackCLI['getInstance']()[_0x505aa9(0x174)]['TestHubModule']?.[_0x505aa9(0x15e)]?.[_0x505aa9(0x1c0)]()?.[_0x505aa9(0x1ad)],_0x2ae779=_0x13fb08?path[_0x505aa9(0x193)](_0x44ac6f,_0x13fb08):null;if(!_0x2ae779||!fs[_0x505aa9(0x19f)](_0x2ae779)){this[_0x505aa9(0x1bc)][_0x505aa9(0x1aa)](util['format'](_0x574338[_0x505aa9(0x167)],_0x13fb08));return;}const _0x39b93d={};_0x39b93d[_0x505aa9(0x165)]=!![],_0x39b93d[_0x505aa9(0x1a6)]=!![],fs[_0x505aa9(0x1cb)](_0x2ae779,_0x39b93d),this[_0x505aa9(0x1bc)][_0x505aa9(0x1aa)](util['format'](_0x574338['KHkNZ']));}}module[a89_0x1950f0(0x1c9)]=uploadAttachmentsManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a90_0xaa9260=a90_0x15b6;(function(_0x557272,_0x38a2bb){const _0x4b16ba=a90_0x15b6,_0x34a9a3=_0x557272();while(!![]){try{const _0x33321c=-parseInt(_0x4b16ba(0x1fe))/0x1+-parseInt(_0x4b16ba(0x1e7))/0x2*(-parseInt(_0x4b16ba(0x1d1))/0x3)+parseInt(_0x4b16ba(0x218))/0x4*(parseInt(_0x4b16ba(0x21b))/0x5)+parseInt(_0x4b16ba(0x19c))/0x6*(-parseInt(_0x4b16ba(0x20d))/0x7)+parseInt(_0x4b16ba(0x1c3))/0x8+parseInt(_0x4b16ba(0x1d5))/0x9*(-parseInt(_0x4b16ba(0x1d6))/0xa)+parseInt(_0x4b16ba(0x1c1))/0xb*(-parseInt(_0x4b16ba(0x210))/0xc);if(_0x33321c===_0x38a2bb)break;else _0x34a9a3['push'](_0x34a9a3['shift']());}catch(_0x4c61dc){_0x34a9a3['push'](_0x34a9a3['shift']());}}}(a90_0x4bf1,0x89bd0));const path=require(a90_0xaa9260(0x1a1)),util=require(a90_0xaa9260(0x203)),{getGitMetaData,isUndefined,nestedKeyValue}=require('../../../helpers/helper.js'),logger=require(a90_0xaa9260(0x1ec))[a90_0xaa9260(0x19e)],{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler.js'),TestInfo=require(a90_0xaa9260(0x209)),hooksMap={};function a90_0x15b6(_0x59a9bf,_0x58f4fe){const _0x4bf13f=a90_0x4bf1();return a90_0x15b6=function(_0x15b6d4,_0x4a70d0){_0x15b6d4=_0x15b6d4-0x198;let _0x358ae0=_0x4bf13f[_0x15b6d4];return _0x358ae0;},a90_0x15b6(_0x59a9bf,_0x58f4fe);}class CucumberUtils{constructor(){const _0x1a6c32=a90_0xaa9260;this[_0x1a6c32(0x1c2)]=![],this[_0x1a6c32(0x1de)]=null;}async[a90_0xaa9260(0x1b9)](_0x555468,_0x59086a,_0x47dcca,_0x560462,_0x375e95,_0x132fd8){const _0x216ca9=a90_0xaa9260,_0x5f2fd7={'WuEZV':function(_0x3c5bdc,_0x3b41ff){return _0x3c5bdc===_0x3b41ff;},'GOFhW':'FAILED','lSdjq':_0x216ca9(0x198),'xNYdm':function(_0x382d15,_0x19cf40){return _0x382d15===_0x19cf40;},'PRPZe':_0x216ca9(0x1b6),'YXaoN':_0x216ca9(0x1b4),'mghmP':function(_0x9a789b,_0x23e011){return _0x9a789b||_0x23e011;},'oqPSU':function(_0x2b073f,_0x39cfc3){return _0x2b073f+_0x39cfc3;},'IaiQP':function(_0x16ffe7,_0x554f68){return _0x16ffe7+_0x554f68;},'FHEfq':_0x216ca9(0x227),'qZAaO':_0x216ca9(0x1f9),'rDAit':'cucumber','FceiV':_0x216ca9(0x1dd),'xJfTl':_0x216ca9(0x1be),'jjvMc':function(_0x562ca6,_0x4ebd05){return _0x562ca6!==_0x4ebd05;},'rcjCe':function(_0x5aa705,_0x2ec1c0){return _0x5aa705/_0x2ec1c0;},'KReHq':function(_0x329ac4,_0x99b35a){return _0x329ac4===_0x99b35a;},'XTJJn':_0x216ca9(0x213),'ayBxf':function(_0x2d01e7,_0x283e6c){return _0x2d01e7(_0x283e6c);},'fqnQf':_0x216ca9(0x1a6),'UrjnB':_0x216ca9(0x1cc),'TYiwq':'UnhandledError'},{feature:_0x285b12,scenario:_0x4d0f36,steps:_0x241a31,uuid:_0x23a440,startedAt:_0x361d52,finishedAt:_0x3a87df}=_0x5f2fd7[_0x216ca9(0x199)](_0x555468,{}),_0x3249a4=this[_0x216ca9(0x228)](_0x560462,_0x59086a);await this[_0x216ca9(0x1c9)]();const _0x14600b=_0x3249a4?_0x5f2fd7[_0x216ca9(0x206)](_0x5f2fd7[_0x216ca9(0x206)](_0x5f2fd7[_0x216ca9(0x21d)](_0x59086a['name'],'\x20('),_0x3249a4[_0x216ca9(0x1ed)](',\x20')),')'):_0x59086a[_0x216ca9(0x1e3)],_0xdfbcba={'id':_0x375e95,'uuid':_0x375e95,'startedAt':_0x361d52,'finishedAt':_0x3a87df,'type':_0x5f2fd7[_0x216ca9(0x200)],'body':{'lang':_0x5f2fd7[_0x216ca9(0x1cb)],'code':null},'name':_0x14600b,'scopes':[_0x285b12&&_0x285b12[_0x216ca9(0x1e3)]?_0x285b12[_0x216ca9(0x1e3)]:''],'tags':_0x59086a[_0x216ca9(0x1eb)]?_0x59086a[_0x216ca9(0x1eb)][_0x216ca9(0x1bb)](({name:_0x3fe027})=>_0x3fe027):[],'file_name':_0x59086a[_0x216ca9(0x1ae)],'location':_0x59086a[_0x216ca9(0x1ae)],'vc_filepath':this[_0x216ca9(0x1de)]&&_0x59086a['uri']?path['relative'](this[_0x216ca9(0x1de)],_0x59086a['uri']):null,'framework':_0x5f2fd7[_0x216ca9(0x1e9)],'result':_0x5f2fd7['FceiV'],'meta':{'feature':_0x285b12,'scenario':_0x4d0f36,'steps':_0x241a31,'examples':_0x3249a4},'customRerunParam':{'rerun_name':_0x14600b}};if(_0x47dcca[_0x216ca9(0x1b0)]&&_0x241a31){const _0x1ad0bd=_0x47dcca[_0x216ca9(0x1b0)];let _0x2aef36=_0x5f2fd7[_0x216ca9(0x1ef)];_0x241a31[_0x216ca9(0x1c7)](_0x4f16be=>{const _0x476ba5=_0x216ca9;if(_0x5f2fd7['WuEZV'](_0x4f16be['result'],_0x5f2fd7[_0x476ba5(0x1f2)]))return _0x2aef36=_0x5f2fd7[_0x476ba5(0x1a3)],_0x1ad0bd[_0x476ba5(0x1a8)]=_0x4f16be['failure'],_0x1ad0bd[_0x476ba5(0x1d2)]=_0x4f16be[_0x476ba5(0x1d2)],![];else{if(_0x5f2fd7['xNYdm'](_0x4f16be[_0x476ba5(0x1c5)],_0x5f2fd7[_0x476ba5(0x1bc)]))return _0x2aef36=_0x5f2fd7[_0x476ba5(0x20c)],![];}return!![];}),_0xdfbcba['finishedAt']=new Date()['toISOString'](),_0xdfbcba['result']=_0x2aef36;_0x1ad0bd[_0x216ca9(0x19d)]&&_0x5f2fd7[_0x216ca9(0x1b8)](_0x1ad0bd['timestamp'][_0x216ca9(0x1ab)],undefined)?_0xdfbcba[_0x216ca9(0x1b1)]=_0x5f2fd7[_0x216ca9(0x1ce)](_0x1ad0bd[_0x216ca9(0x19d)][_0x216ca9(0x1ab)],0xf4240):_0xdfbcba[_0x216ca9(0x1b1)]=undefined;if(_0x5f2fd7['KReHq'](_0x2aef36,_0x5f2fd7[_0x216ca9(0x1a3)])){const {default:_0x3b12ea}=await import(_0x5f2fd7[_0x216ca9(0x1e4)]);_0xdfbcba[_0x216ca9(0x1a8)]=[{'backtrace':[_0x1ad0bd['failure']?_0x5f2fd7[_0x216ca9(0x19a)](_0x3b12ea,_0x1ad0bd['failure']):_0x5f2fd7[_0x216ca9(0x1cd)]]}],_0xdfbcba[_0x216ca9(0x1a5)]=_0x1ad0bd[_0x216ca9(0x1a8)]?_0x5f2fd7[_0x216ca9(0x19a)](_0x3b12ea,_0x1ad0bd[_0x216ca9(0x1a8)]):_0x1ad0bd[_0x216ca9(0x1fb)],_0x1ad0bd[_0x216ca9(0x1d2)]&&(_0xdfbcba[_0x216ca9(0x224)]=_0x1ad0bd[_0x216ca9(0x1d2)][_0x216ca9(0x1e6)](/AssertError/)?_0x5f2fd7[_0x216ca9(0x221)]:_0x5f2fd7[_0x216ca9(0x20b)]);}}return _0xdfbcba;}[a90_0xaa9260(0x1d8)](_0x2e276e,_0x209912,_0x43d4c0,_0x535062,_0x2094ea,_0x35adcb){const _0xbac9ea=a90_0xaa9260,_0x479b46={'dEykL':function(_0x141146,_0x200292){return _0x141146===_0x200292;},'rZBkw':'HookRunFinished','gYYPE':function(_0x34b2cc,_0x1674c2,_0x34c246){return _0x34b2cc(_0x1674c2,_0x34c246);},'ScKwU':_0xbac9ea(0x1d0),'DuXhk':'uri','STEVm':_0xbac9ea(0x1dd),'LxwLY':_0xbac9ea(0x1f3),'XWlVy':_0xbac9ea(0x1f9),'JLOKB':_0xbac9ea(0x1f7),'wKQRj':_0xbac9ea(0x1e3),'fHooJ':function(_0xe4832c,_0x2f7ef4,_0x1ed548){return _0xe4832c(_0x2f7ef4,_0x1ed548);},'XYDIg':_0xbac9ea(0x21c)};try{if(_0x479b46['dEykL'](_0x43d4c0,_0x479b46[_0xbac9ea(0x220)])){const _0x516ca3=new Date()['toISOString'](),_0x45a417=hooksMap[_0x209912];if(!_0x45a417)return;const _0x48d189=_0x45a417[_0xbac9ea(0x1da)](_0x2bb3c7=>_0x2bb3c7[_0xbac9ea(0x1ba)]===_0x535062['id']);if(!_0x48d189)return;const _0x3d7a48=this['getHookResult'](_0x2e276e,_0x209912);_0x48d189['result']=_0x3d7a48[_0xbac9ea(0x1db)],_0x48d189[_0xbac9ea(0x223)]=_0x516ca3,_0x48d189[_0xbac9ea(0x224)]=_0x3d7a48[_0xbac9ea(0x1d2)];const _0x10cb60={};return _0x10cb60['backtrace']=_0x3d7a48[_0xbac9ea(0x20e)],_0x48d189['failure_data']=[_0x10cb60],_0x48d189;}const _0x1db4c7=TestInfo[_0xbac9ea(0x226)](_0x209912),_0x53d1f7=_0x2e276e[_0xbac9ea(0x1ea)][_0xbac9ea(0x1da)](_0x3a5103=>_0x3a5103['id']===_0x535062[_0xbac9ea(0x1fa)]),_0x3ebf2d=_0x479b46['gYYPE'](nestedKeyValue,_0x53d1f7,[_0x479b46[_0xbac9ea(0x1b2)],_0x479b46['DuXhk']]),_0x3e1a3e=new Date()[_0xbac9ea(0x222)](),_0x432f0e=_0x479b46[_0xbac9ea(0x1f6)],_0x1cd392=_0x53d1f7[_0xbac9ea(0x1c4)]?_0x53d1f7[_0xbac9ea(0x1c4)]['split']('\x20')[_0xbac9ea(0x1f0)](_0x1d352d=>_0x1d352d[_0xbac9ea(0x215)]('@')):[],_0x540df4={'uuid':_0x535062['id'],'type':_0x479b46[_0xbac9ea(0x1b5)],'hook_type':_0x35adcb,'name':_0x53d1f7[_0xbac9ea(0x1e3)],'body':{'lang':_0x479b46[_0xbac9ea(0x1f5)],'code':null},'tags':_0x1cd392,'test_run_id':_0x1db4c7,'scope':_0x479b46[_0xbac9ea(0x1af)](nestedKeyValue,_0x2094ea,[_0x479b46['JLOKB'],_0x479b46[_0xbac9ea(0x21f)]]),'scopes':[_0x479b46[_0xbac9ea(0x1d3)](nestedKeyValue,_0x2094ea,[_0x479b46[_0xbac9ea(0x1e0)],_0x479b46['wKQRj']])||''],'file_name':_0x3ebf2d,'location':_0x3ebf2d,'vc_filepath':this[_0xbac9ea(0x1de)]?path[_0xbac9ea(0x1d9)](this[_0xbac9ea(0x1de)],_0x3ebf2d):null,'result':_0x432f0e,'started_at':_0x3e1a3e,'framework':_0x479b46[_0xbac9ea(0x19b)]};return _0x540df4;}catch(_0x171e1b){logger[_0xbac9ea(0x208)](_0xbac9ea(0x20f)+util[_0xbac9ea(0x1e5)](_0x171e1b)+'\x20');}}async[a90_0xaa9260(0x21a)](_0x5ac3aa,_0x578dab,_0x120201,_0x2c4a4d,_0x5d6943,_0x1f4557){const _0x464c95=a90_0xaa9260,_0x2bbd86={'ABLyW':function(_0x48b5f5,_0x6d3381){return _0x48b5f5===_0x6d3381;},'QyOVw':_0x464c95(0x1c0),'NMKxH':function(_0x201999,_0x2b4bb2,_0x25600c){return _0x201999(_0x2b4bb2,_0x25600c);},'pGPuc':'sourceReference','gJDUt':_0x464c95(0x1ae),'OUWnH':_0x464c95(0x1ca),'LDfpG':function(_0x349f37,_0x273413){return _0x349f37===_0x273413;},'FYanA':_0x464c95(0x1fd)};try{const _0x473483=_0x2c4a4d[_0x464c95(0x1da)](_0x4d14c5=>_0x4d14c5['id']===_0x5d6943);if(!_0x473483[_0x464c95(0x1fa)])return;const _0x65e80e=this[_0x464c95(0x1e2)](_0x2c4a4d,_0x473483),_0x266818=this[_0x464c95(0x1d8)](_0x5ac3aa,_0x578dab,_0x120201,_0x473483,_0x1f4557,_0x65e80e);if(!_0x266818)return;_0x2bbd86[_0x464c95(0x1e1)](_0x120201,_0x2bbd86[_0x464c95(0x205)])&&(hooksMap[_0x578dab]?hooksMap[_0x578dab][_0x464c95(0x1ad)](_0x266818):hooksMap[_0x578dab]=[_0x266818]);const _0x17ccbe=_0x5ac3aa[_0x464c95(0x1ea)][_0x464c95(0x1da)](_0x209a8f=>_0x209a8f['id']===_0x473483[_0x464c95(0x1fa)]),_0x2b3b5e=_0x2bbd86[_0x464c95(0x1f1)](nestedKeyValue,_0x17ccbe,[_0x2bbd86[_0x464c95(0x1b7)],_0x2bbd86[_0x464c95(0x1c6)]]);if(!_0x2b3b5e)return;else{if(_0x2b3b5e['includes'](_0x2bbd86['OUWnH']))return;}if(_0x2bbd86[_0x464c95(0x219)](_0x266818[_0x464c95(0x1e3)],_0x2bbd86[_0x464c95(0x1d7)]))return;return _0x266818;}catch(_0x3cddf7){logger[_0x464c95(0x208)](_0x464c95(0x1f4)+util['format'](_0x3cddf7)+'\x20');}}[a90_0xaa9260(0x1a4)](_0x50aec9,_0x31fc74){const _0x3276d0=a90_0xaa9260,_0x1a6131={};_0x1a6131[_0x3276d0(0x216)]=function(_0x15fe90,_0x5b108a){return _0x15fe90===_0x5b108a;},_0x1a6131[_0x3276d0(0x1cf)]=_0x3276d0(0x198),_0x1a6131[_0x3276d0(0x1ac)]=function(_0x1e6301,_0x22d0da){return _0x1e6301===_0x22d0da;},_0x1a6131['INqwc']=_0x3276d0(0x1a9),_0x1a6131[_0x3276d0(0x1a7)]='AssertionError',_0x1a6131[_0x3276d0(0x229)]=function(_0x502565,_0x4418da){return _0x502565||_0x4418da;};const _0x35f463=_0x1a6131,_0x3dd2ad=_0x50aec9[_0x3276d0(0x1a2)][_0x31fc74][_0x3276d0(0x211)];let _0x3404da,_0x301f7a;return _0x3dd2ad&&_0x35f463[_0x3276d0(0x216)](_0x3dd2ad[_0x3276d0(0x1db)]['toString']()[_0x3276d0(0x207)](),_0x35f463['cMbWx'])&&(_0x3404da=_0x35f463[_0x3276d0(0x1ac)](_0x3dd2ad[_0x3276d0(0x225)],undefined)?_0x3dd2ad[_0x3276d0(0x1fb)]:_0x3dd2ad['exception']['message'],_0x301f7a=_0x35f463['hbJrU'](_0x3dd2ad['exception'],undefined)?_0x35f463[_0x3276d0(0x22a)]:_0x3dd2ad[_0x3276d0(0x1fb)][_0x3276d0(0x1e6)](/Assert/)?_0x35f463[_0x3276d0(0x1a7)]:_0x35f463[_0x3276d0(0x22a)]),{'status':_0x3dd2ad[_0x3276d0(0x1db)][_0x3276d0(0x207)](),'failureType':_0x35f463[_0x3276d0(0x229)](_0x301f7a,null),'failureData':!_0x3404da?null:[_0x3404da]};}['getCucumberHookType'](_0x4b31bc,_0x3e59ae){const _0x2ad0c1=a90_0xaa9260,_0x4ba22e={};_0x4ba22e[_0x2ad0c1(0x202)]=function(_0x89b8b3,_0x289a70){return _0x89b8b3===_0x289a70;},_0x4ba22e[_0x2ad0c1(0x1fc)]=_0x2ad0c1(0x217),_0x4ba22e[_0x2ad0c1(0x1a0)]=_0x2ad0c1(0x1df);const _0x39c636=_0x4ba22e;let _0x40fec3=![];for(const _0x37f12c of _0x4b31bc){_0x37f12c[_0x2ad0c1(0x1ee)]&&(_0x40fec3=!![]);if(_0x39c636[_0x2ad0c1(0x202)](_0x3e59ae['id'],_0x37f12c['id']))return _0x40fec3?_0x39c636[_0x2ad0c1(0x1fc)]:_0x39c636[_0x2ad0c1(0x1a0)];}}[a90_0xaa9260(0x228)]=(_0x230598,_0x5f0bd1)=>{const _0x3c0616=a90_0xaa9260,_0x22ba40={};_0x22ba40[_0x3c0616(0x1aa)]=function(_0x33f3ad,_0x5e8fff){return _0x33f3ad===_0x5e8fff;},_0x22ba40[_0x3c0616(0x201)]=function(_0x4ef29f,_0x6c9f55){return _0x4ef29f>_0x6c9f55;};const _0x37c401=_0x22ba40;if(!(_0x5f0bd1['astNodeIds']&&_0x37c401[_0x3c0616(0x201)](_0x5f0bd1[_0x3c0616(0x1bd)][_0x3c0616(0x1c8)],0x1)))return;const _0x3768ed=_0x5f0bd1['astNodeIds'][0x0],_0x40178f=_0x5f0bd1[_0x3c0616(0x1bd)][0x1],_0x171750=_0x230598[_0x3c0616(0x1f7)]&&_0x230598[_0x3c0616(0x1f7)][_0x3c0616(0x1b3)]?_0x230598['feature']['children']:undefined;let _0x13558c=[];_0x171750&&_0x171750[_0x3c0616(0x1ff)](_0x879d35=>{const _0x2cdbdf=_0x3c0616;if(_0x879d35[_0x2cdbdf(0x1dc)])_0x879d35[_0x2cdbdf(0x1dc)][_0x2cdbdf(0x1b3)][_0x2cdbdf(0x1ff)](_0x338ed7=>{const _0xab9972=_0x2cdbdf;if(_0x338ed7[_0xab9972(0x19f)]&&_0x37c401['hezYm'](_0x338ed7[_0xab9972(0x19f)]['id'],_0x3768ed)&&_0x338ed7[_0xab9972(0x19f)][_0xab9972(0x204)]){const _0x258ad4=_0x338ed7[_0xab9972(0x19f)]['examples'][_0xab9972(0x1e8)](_0x13592b=>_0x13592b[_0xab9972(0x20a)])[_0xab9972(0x1da)](_0x327a40=>_0x327a40['id']===_0x40178f);let _0x242f0a;_0x258ad4&&_0x258ad4[_0xab9972(0x212)]?_0x242f0a=_0x258ad4[_0xab9972(0x212)][_0xab9972(0x1bb)](_0x1103cf=>_0x1103cf[_0xab9972(0x1f8)]):_0x242f0a=[],_0x242f0a&&(_0x13558c=_0x242f0a);}});else{if(_0x879d35['scenario']&&_0x37c401[_0x2cdbdf(0x1aa)](_0x879d35['scenario']['id'],_0x3768ed)&&_0x879d35[_0x2cdbdf(0x19f)]['examples']){const _0x345727=_0x879d35[_0x2cdbdf(0x19f)][_0x2cdbdf(0x204)]['flatMap'](_0x3414c4=>_0x3414c4[_0x2cdbdf(0x20a)])[_0x2cdbdf(0x1da)](_0x4f9fa5=>_0x4f9fa5['id']===_0x40178f);let _0x38de9c;_0x345727&&_0x345727[_0x2cdbdf(0x212)]?_0x38de9c=_0x345727[_0x2cdbdf(0x212)][_0x2cdbdf(0x1bb)](_0x3f6782=>_0x3f6782[_0x2cdbdf(0x1f8)]):_0x38de9c=[],_0x38de9c&&(_0x13558c=_0x38de9c);}}});if(_0x13558c[_0x3c0616(0x1c8)])return _0x13558c;return;};async[a90_0xaa9260(0x1c9)](){const _0x53c2db=a90_0xaa9260,_0x4c99dd={'SwuFD':function(_0x386b56){return _0x386b56();}};if(this[_0x53c2db(0x1c2)])return this[_0x53c2db(0x1de)];const _0xca970b=await _0x4c99dd['SwuFD'](getGitMetaData);_0xca970b&&(this[_0x53c2db(0x1de)]=_0xca970b[_0x53c2db(0x214)]),this[_0x53c2db(0x1c2)]=!![];}}function a90_0x4bf1(){const _0x538057=['cucumber','IaiQP','sendHook','wKQRj','rZBkw','UrjnB','toISOString','finished_at','failure_type','exception','getTestUUID','test','getScenarioExamples','WiJfc','INqwc','failed','mghmP','ayBxf','XYDIg','30xLXPzZ','timestamp','winstonLogger','scenario','baegf','path','testStepFinished','lSdjq','getHookResult','failure_reason','unknown','RNill','failure','UnhandledError','hezYm','nanos','okoAP','push','uri','gYYPE','testCaseFinished','duration_in_ms','ScKwU','children','skipped','LxwLY','SKIPPED','pGPuc','jjvMc','createTestFrameworkData','uuid','map','PRPZe','astNodeIds','passed','exports','HookRunStarted','22zibzGP','_gitConfigured','7545304pKCbgU','tagExpression','result','gJDUt','every','length','configureGit','browserstack-node-agent/src/bin/cucumber-js/test.setup.js','qZAaO','AssertionError','fqnQf','rcjCe','cMbWx','sourceReference','3dHvpKU','failureType','fHooJ','sendTestRunEventForCucumber','242073WSaRek','30AizRFY','FYanA','getHookRunEventData','relative','find','status','rule','pending','_gitConfigPath','BEFORE_EACH','JLOKB','ABLyW','getCucumberHookType','name','XTJJn','format','match','1049350qtKmKr','flatMap','rDAit','hooks','tags','../../../helpers/logger.js','join','pickleStepId','xJfTl','filter','NMKxH','GOFhW','hook','Exception\x20in\x20createHookData:\x20','XWlVy','STEVm','feature','value','javascript','hookId','message','UcWdR','bstack','17084fVyRwz','forEach','FHEfq','UamOl','wCthG','util','examples','QyOVw','oqPSU','toLowerCase','debug','../TestInfo.js','tableBody','TYiwq','YXaoN','645974GFZwEY','failureData','Exception\x20in\x20getHookRunEventData:\x20','4965372idAVFR','testStepResult','cells','strip-ansi','root','includes','hbJrU','AFTER_EACH','20HByQjM','LDfpG','createHookData','483085eJwLJZ'];a90_0x4bf1=function(){return _0x538057;};return a90_0x4bf1();}module[a90_0xaa9260(0x1bf)]=o11yClassErrorHandler(CucumberUtils,['configureGit',a90_0xaa9260(0x228),a90_0xaa9260(0x1e2),a90_0xaa9260(0x1a4),a90_0xaa9260(0x21e),'getHookRunEventData',a90_0xaa9260(0x1d4),a90_0xaa9260(0x1b9)]);
|
|
1
|
+
function a90_0x531c(_0x439d53,_0x3d050f){const _0x4f7217=a90_0x4f72();return a90_0x531c=function(_0x531cb0,_0x282356){_0x531cb0=_0x531cb0-0x1bf;let _0xfddd7=_0x4f7217[_0x531cb0];return _0xfddd7;},a90_0x531c(_0x439d53,_0x3d050f);}const a90_0x209d6f=a90_0x531c;function a90_0x4f72(){const _0xd19303=['UqTWy','AFTER_EACH','toISOString','failureType','CqrOT','find','ininP','eVqsC','toLowerCase','getHookRunEventData','28443660EjMlBg','match','2792976rmvPgw','CnPiO','failure_reason','qtpBw','hook','_gitConfigPath','8634416WReERu','status','failed','uri','qCKgy','lPEga','4931576vlpgNM','LKGlz','duration_in_ms','failure_data','MKxxM','tagExpression','testStepResult','Exception\x20in\x20createHookData:\x20','name','RqKui','rule','testStepFinished','AssertionError','cucumber','sendTestRunEventForCucumber','timestamp','testCaseFinished','HookRunFinished','UnhandledError','pickleStepId','exception','tableBody','6JXKFua','exports','sendHook','../../../helpers/test-observability/error-handler.js','path','VUbYs','grqLt','javascript','9OZBCpx','sTRZZ','astNodeIds','format','wezyP','yNOOY','skipped','jWMGm','HookRunStarted','hookId','children','debug','push','fQDwp','VChQR','nGmjb','WhIec','createHookData','../../../helpers/logger.js','result','includes','kqcmW','filter','util','failure','../../../helpers/helper.js','join','vXiCx','yrEtw','getCucumberHookType','examples','pending','nanos','1272aEQyIX','fVweh','Aukgv','pyneC','sourceReference','_gitConfigured','finishedAt','root','XROql','BmTZe','WlgAU','relative','failure_type','KRIgO','135886FwMAwF','FAILED','hooks','flatMap','unknown','value','backtrace','GexJz','vfZRl','uuid','sMvvY','Hafdu','fGKfE','MFojd','19860CdDxOY','mhEgY','tDOkr','ZyAjy','IjTfU','BZmqJ','getTestUUID','getScenarioExamples','feature','fKIIv','createTestFrameworkData','forEach','configureGit','length','test','message','winstonLogger','getHookResult','map','../TestInfo.js','1440705PdHUVd','cells','scenario','tags','DYVIw'];a90_0x4f72=function(){return _0xd19303;};return a90_0x4f72();}(function(_0x4dce24,_0x5afa6c){const _0x3572dc=a90_0x531c,_0x2edcc5=_0x4dce24();while(!![]){try{const _0x336045=-parseInt(_0x3572dc(0x23e))/0x1+-parseInt(_0x3572dc(0x21c))/0x2*(-parseInt(_0x3572dc(0x1e5))/0x3)+parseInt(_0x3572dc(0x1c3))/0x4+parseInt(_0x3572dc(0x22a))/0x5*(-parseInt(_0x3572dc(0x20e))/0x6)+-parseInt(_0x3572dc(0x1c9))/0x7+parseInt(_0x3572dc(0x1cf))/0x8+-parseInt(_0x3572dc(0x1ed))/0x9*(-parseInt(_0x3572dc(0x1c1))/0xa);if(_0x336045===_0x5afa6c)break;else _0x2edcc5['push'](_0x2edcc5['shift']());}catch(_0x249f93){_0x2edcc5['push'](_0x2edcc5['shift']());}}}(a90_0x4f72,0xbe1be));const path=require(a90_0x209d6f(0x1e9)),util=require(a90_0x209d6f(0x204)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a90_0x209d6f(0x206)),logger=require(a90_0x209d6f(0x1ff))[a90_0x209d6f(0x23a)],{o11yClassErrorHandler}=require(a90_0x209d6f(0x1e8)),TestInfo=require(a90_0x209d6f(0x23d)),hooksMap={};class CucumberUtils{constructor(){const _0x321e0d=a90_0x209d6f;this[_0x321e0d(0x213)]=![],this[_0x321e0d(0x1c8)]=null;}async['createTestFrameworkData'](_0x61a250,_0x247c9f,_0x5447f1,_0x24a902,_0x5b5ad9,_0x2c6a57){const _0x239dd8=a90_0x209d6f,_0xef023a={'vfZRl':function(_0x255d98,_0x446a4e){return _0x255d98===_0x446a4e;},'WhIec':_0x239dd8(0x21d),'sTRZZ':_0x239dd8(0x1cb),'DJlJr':'SKIPPED','Zoqgg':_0x239dd8(0x1f3),'pyneC':function(_0x2385e4,_0x3eaeaa){return _0x2385e4||_0x3eaeaa;},'mhEgY':function(_0x29f1f1,_0x2960dc){return _0x29f1f1+_0x2960dc;},'wezyP':function(_0x276b2c,_0x2c198c){return _0x276b2c+_0x2c198c;},'OyAkk':_0x239dd8(0x238),'LfMrY':_0x239dd8(0x1ec),'nGmjb':_0x239dd8(0x1dc),'ZyAjy':_0x239dd8(0x20c),'sMvvY':'passed','jWMGm':function(_0x1a00f5,_0x161b43){return _0x1a00f5!==_0x161b43;},'QCatf':function(_0x102cab,_0x1ffb9c){return _0x102cab/_0x1ffb9c;},'MFojd':'strip-ansi','vXiCx':function(_0x51574a,_0x3db017){return _0x51574a(_0x3db017);},'IjTfU':_0x239dd8(0x220),'fVweh':'AssertionError','LKGlz':_0x239dd8(0x1e1)},{feature:_0x2579ff,scenario:_0x170d67,steps:_0x412215,uuid:_0x4be381,startedAt:_0x2279c2,finishedAt:_0x3c4871}=_0xef023a[_0x239dd8(0x211)](_0x61a250,{}),_0x523b26=this[_0x239dd8(0x231)](_0x24a902,_0x247c9f);await this[_0x239dd8(0x236)]();const _0x2f41ae=_0x523b26?_0xef023a[_0x239dd8(0x22b)](_0xef023a[_0x239dd8(0x1f1)](_0xef023a[_0x239dd8(0x1f1)](_0x247c9f['name'],'\x20('),_0x523b26[_0x239dd8(0x207)](',\x20')),')'):_0x247c9f[_0x239dd8(0x1d7)],_0x2fd7e9={'id':_0x5b5ad9,'uuid':_0x5b5ad9,'startedAt':_0x2279c2,'finishedAt':_0x3c4871,'type':_0xef023a['OyAkk'],'body':{'lang':_0xef023a['LfMrY'],'code':null},'name':_0x2f41ae,'scopes':[_0x2579ff&&_0x2579ff['name']?_0x2579ff[_0x239dd8(0x1d7)]:''],'tags':_0x247c9f[_0x239dd8(0x241)]?_0x247c9f[_0x239dd8(0x241)][_0x239dd8(0x23c)](({name:_0x1e98b8})=>_0x1e98b8):[],'file_name':_0x247c9f[_0x239dd8(0x1cc)],'location':_0x247c9f[_0x239dd8(0x1cc)],'vc_filepath':this['_gitConfigPath']&&_0x247c9f['uri']?path[_0x239dd8(0x219)](this[_0x239dd8(0x1c8)],_0x247c9f[_0x239dd8(0x1cc)]):null,'framework':_0xef023a[_0x239dd8(0x1fc)],'result':_0xef023a[_0x239dd8(0x22d)],'meta':{'feature':_0x2579ff,'scenario':_0x170d67,'steps':_0x412215,'examples':_0x523b26},'customRerunParam':{'rerun_name':_0x2f41ae}};if(_0x5447f1[_0x239dd8(0x1df)]&&_0x412215){const _0x4b5560=_0x5447f1[_0x239dd8(0x1df)];let _0x323868=_0xef023a[_0x239dd8(0x226)];_0x412215['every'](_0x2608df=>{const _0x53286b=_0x239dd8;if(_0xef023a['vfZRl'](_0x2608df[_0x53286b(0x200)],_0xef023a[_0x53286b(0x1fd)]))return _0x323868=_0xef023a['sTRZZ'],_0x4b5560['failure']=_0x2608df['failure'],_0x4b5560[_0x53286b(0x246)]=_0x2608df[_0x53286b(0x246)],![];else{if(_0xef023a['vfZRl'](_0x2608df['result'],_0xef023a['DJlJr']))return _0x323868=_0xef023a['Zoqgg'],![];}return!![];}),_0x2fd7e9[_0x239dd8(0x214)]=new Date()[_0x239dd8(0x245)](),_0x2fd7e9['result']=_0x323868;_0x4b5560[_0x239dd8(0x1de)]&&_0xef023a[_0x239dd8(0x1f4)](_0x4b5560[_0x239dd8(0x1de)]['nanos'],undefined)?_0x2fd7e9[_0x239dd8(0x1d1)]=_0xef023a['QCatf'](_0x4b5560[_0x239dd8(0x1de)][_0x239dd8(0x20d)],0xf4240):_0x2fd7e9[_0x239dd8(0x1d1)]=undefined;if(_0xef023a[_0x239dd8(0x224)](_0x323868,_0xef023a[_0x239dd8(0x1ee)])){const {default:_0x155d29}=await import(_0xef023a[_0x239dd8(0x229)]);_0x2fd7e9[_0x239dd8(0x205)]=[{'backtrace':[_0x4b5560[_0x239dd8(0x205)]?_0xef023a['vXiCx'](_0x155d29,_0x4b5560[_0x239dd8(0x205)]):_0xef023a[_0x239dd8(0x22e)]]}],_0x2fd7e9[_0x239dd8(0x1c5)]=_0x4b5560['failure']?_0xef023a[_0x239dd8(0x208)](_0x155d29,_0x4b5560[_0x239dd8(0x205)]):_0x4b5560[_0x239dd8(0x239)],_0x4b5560[_0x239dd8(0x246)]&&(_0x2fd7e9[_0x239dd8(0x21a)]=_0x4b5560[_0x239dd8(0x246)]['match'](/AssertError/)?_0xef023a[_0x239dd8(0x20f)]:_0xef023a[_0x239dd8(0x1d0)]);}}return _0x2fd7e9;}[a90_0x209d6f(0x1c0)](_0x26ddb4,_0x1641a9,_0xbe433f,_0x5a669e,_0x533388,_0x34cc19){const _0x3af713=a90_0x209d6f,_0x549c13={'GexJz':function(_0x3613ec,_0x2b876a){return _0x3613ec===_0x2b876a;},'tDOkr':_0x3af713(0x1e0),'VChQR':function(_0x1d63f9,_0x1e8c58,_0x594205){return _0x1d63f9(_0x1e8c58,_0x594205);},'CdDUW':_0x3af713(0x212),'fKIIv':'uri','XROql':_0x3af713(0x20c),'KsILo':_0x3af713(0x1c7),'Hafdu':'javascript','MKxxM':function(_0x49cbbc,_0x484685,_0x19ebf0){return _0x49cbbc(_0x484685,_0x19ebf0);},'WlgAU':_0x3af713(0x232),'CqrOT':_0x3af713(0x1d7),'grqLt':function(_0x4cee9b,_0x30bdec,_0xa418b4){return _0x4cee9b(_0x30bdec,_0xa418b4);},'ihXGc':_0x3af713(0x1dc)};try{if(_0x549c13[_0x3af713(0x223)](_0xbe433f,_0x549c13[_0x3af713(0x22c)])){const _0x47000f=new Date()[_0x3af713(0x245)](),_0x5387ca=hooksMap[_0x1641a9];if(!_0x5387ca)return;const _0x2b81ae=_0x5387ca[_0x3af713(0x248)](_0x11de6c=>_0x11de6c[_0x3af713(0x225)]===_0x5a669e['id']);if(!_0x2b81ae)return;const _0x5899cc=this['getHookResult'](_0x26ddb4,_0x1641a9);_0x2b81ae[_0x3af713(0x200)]=_0x5899cc['status'],_0x2b81ae['finished_at']=_0x47000f,_0x2b81ae['failure_type']=_0x5899cc[_0x3af713(0x246)];const _0x4c8534={};return _0x4c8534[_0x3af713(0x222)]=_0x5899cc['failureData'],_0x2b81ae[_0x3af713(0x1d2)]=[_0x4c8534],_0x2b81ae;}const _0xa565c4=TestInfo[_0x3af713(0x230)](_0x1641a9),_0x4dc87a=_0x26ddb4[_0x3af713(0x21e)]['find'](_0x4cf5cc=>_0x4cf5cc['id']===_0x5a669e[_0x3af713(0x1f6)]),_0x43cb8f=_0x549c13[_0x3af713(0x1fb)](nestedKeyValue,_0x4dc87a,[_0x549c13['CdDUW'],_0x549c13[_0x3af713(0x233)]]),_0x1bbb00=new Date()['toISOString'](),_0x187bbe=_0x549c13[_0x3af713(0x216)],_0xd654e5=_0x4dc87a['tagExpression']?_0x4dc87a[_0x3af713(0x1d4)]['split']('\x20')[_0x3af713(0x203)](_0xddbf0f=>_0xddbf0f[_0x3af713(0x201)]('@')):[],_0x37deed={'uuid':_0x5a669e['id'],'type':_0x549c13['KsILo'],'hook_type':_0x34cc19,'name':_0x4dc87a[_0x3af713(0x1d7)],'body':{'lang':_0x549c13[_0x3af713(0x227)],'code':null},'tags':_0xd654e5,'test_run_id':_0xa565c4,'scope':_0x549c13[_0x3af713(0x1d3)](nestedKeyValue,_0x533388,[_0x549c13[_0x3af713(0x218)],_0x549c13['CqrOT']]),'scopes':[_0x549c13[_0x3af713(0x1eb)](nestedKeyValue,_0x533388,[_0x549c13[_0x3af713(0x218)],_0x549c13[_0x3af713(0x247)]])||''],'file_name':_0x43cb8f,'location':_0x43cb8f,'vc_filepath':this['_gitConfigPath']?path[_0x3af713(0x219)](this[_0x3af713(0x1c8)],_0x43cb8f):null,'result':_0x187bbe,'started_at':_0x1bbb00,'framework':_0x549c13['ihXGc']};return _0x37deed;}catch(_0x2f4086){logger[_0x3af713(0x1f8)]('Exception\x20in\x20getHookRunEventData:\x20'+util[_0x3af713(0x1f0)](_0x2f4086)+'\x20');}}async[a90_0x209d6f(0x1fe)](_0x3ee539,_0x27b4b1,_0x49dd27,_0x2ac300,_0x58ea4a,_0x38a143){const _0xbe3864=a90_0x209d6f,_0x573f34={'kqcmW':function(_0x46090a,_0x7e680d){return _0x46090a===_0x7e680d;},'fGKfE':_0xbe3864(0x1f5),'yrEtw':function(_0x331cc0,_0x107314,_0x1b3b7d){return _0x331cc0(_0x107314,_0x1b3b7d);},'BZmqJ':_0xbe3864(0x212),'pOsng':_0xbe3864(0x1cc),'qtpBw':'browserstack-node-agent/src/bin/cucumber-js/test.setup.js','SPaPM':function(_0x228357,_0x5e4446){return _0x228357===_0x5e4446;},'VUbYs':'bstack'};try{const _0x5db88c=_0x2ac300[_0xbe3864(0x248)](_0x2e6510=>_0x2e6510['id']===_0x58ea4a);if(!_0x5db88c[_0xbe3864(0x1f6)])return;const _0x1ed282=this['getCucumberHookType'](_0x2ac300,_0x5db88c),_0x38c2c0=this[_0xbe3864(0x1c0)](_0x3ee539,_0x27b4b1,_0x49dd27,_0x5db88c,_0x38a143,_0x1ed282);if(!_0x38c2c0)return;_0x573f34[_0xbe3864(0x202)](_0x49dd27,_0x573f34[_0xbe3864(0x228)])&&(hooksMap[_0x27b4b1]?hooksMap[_0x27b4b1][_0xbe3864(0x1f9)](_0x38c2c0):hooksMap[_0x27b4b1]=[_0x38c2c0]);const _0x298195=_0x3ee539[_0xbe3864(0x21e)]['find'](_0x4a5dc1=>_0x4a5dc1['id']===_0x5db88c[_0xbe3864(0x1f6)]),_0x61a88d=_0x573f34[_0xbe3864(0x209)](nestedKeyValue,_0x298195,[_0x573f34[_0xbe3864(0x22f)],_0x573f34['pOsng']]);if(!_0x61a88d)return;else{if(_0x61a88d[_0xbe3864(0x201)](_0x573f34[_0xbe3864(0x1c6)]))return;}if(_0x573f34['SPaPM'](_0x38c2c0[_0xbe3864(0x1d7)],_0x573f34[_0xbe3864(0x1ea)]))return;return _0x38c2c0;}catch(_0x41bd3a){logger[_0xbe3864(0x1f8)](_0xbe3864(0x1d6)+util[_0xbe3864(0x1f0)](_0x41bd3a)+'\x20');}}[a90_0x209d6f(0x23b)](_0x51d26f,_0x2cab4f){const _0x25789a=a90_0x209d6f,_0x204732={};_0x204732[_0x25789a(0x1fa)]=function(_0x34597f,_0x5610fe){return _0x34597f===_0x5610fe;},_0x204732[_0x25789a(0x249)]=_0x25789a(0x1cb),_0x204732[_0x25789a(0x21b)]=function(_0x10c115,_0x1e75b5){return _0x10c115===_0x1e75b5;},_0x204732[_0x25789a(0x1ce)]=function(_0x44caa2,_0x1824f1){return _0x44caa2===_0x1824f1;},_0x204732[_0x25789a(0x217)]=_0x25789a(0x1e1),_0x204732[_0x25789a(0x242)]=_0x25789a(0x1db),_0x204732[_0x25789a(0x1d8)]=function(_0x5c1c7b,_0x484a58){return _0x5c1c7b||_0x484a58;};const _0x4181e8=_0x204732,_0xecbd4d=_0x51d26f[_0x25789a(0x1da)][_0x2cab4f][_0x25789a(0x1d5)];let _0x41d082,_0x3362f2;return _0xecbd4d&&_0x4181e8['fQDwp'](_0xecbd4d[_0x25789a(0x1ca)]['toString']()['toLowerCase'](),_0x4181e8[_0x25789a(0x249)])&&(_0x41d082=_0x4181e8[_0x25789a(0x21b)](_0xecbd4d[_0x25789a(0x1e3)],undefined)?_0xecbd4d[_0x25789a(0x239)]:_0xecbd4d[_0x25789a(0x1e3)][_0x25789a(0x239)],_0x3362f2=_0x4181e8[_0x25789a(0x1ce)](_0xecbd4d[_0x25789a(0x1e3)],undefined)?_0x4181e8[_0x25789a(0x217)]:_0xecbd4d[_0x25789a(0x239)][_0x25789a(0x1c2)](/Assert/)?_0x4181e8['DYVIw']:_0x4181e8[_0x25789a(0x217)]),{'status':_0xecbd4d['status'][_0x25789a(0x1bf)](),'failureType':_0x4181e8['RqKui'](_0x3362f2,null),'failureData':!_0x41d082?null:[_0x41d082]};}[a90_0x209d6f(0x20a)](_0x384aca,_0x239bf0){const _0x2dbec5=a90_0x209d6f,_0x50998f={};_0x50998f[_0x2dbec5(0x1cd)]=function(_0x28e853,_0xa3e683){return _0x28e853===_0xa3e683;},_0x50998f[_0x2dbec5(0x1f2)]=_0x2dbec5(0x244),_0x50998f['ZgyDK']='BEFORE_EACH';const _0x3ed710=_0x50998f;let _0x15f8fa=![];for(const _0x1d945f of _0x384aca){_0x1d945f[_0x2dbec5(0x1e2)]&&(_0x15f8fa=!![]);if(_0x3ed710[_0x2dbec5(0x1cd)](_0x239bf0['id'],_0x1d945f['id']))return _0x15f8fa?_0x3ed710['yNOOY']:_0x3ed710['ZgyDK'];}}[a90_0x209d6f(0x231)]=(_0x10c483,_0x31f6b6)=>{const _0x1f6d77=a90_0x209d6f,_0x9b833c={};_0x9b833c['eVqsC']=function(_0x2d4374,_0x431de0){return _0x2d4374===_0x431de0;},_0x9b833c['CnPiO']=function(_0x434e18,_0x45b9fb){return _0x434e18>_0x45b9fb;};const _0x1f4311=_0x9b833c;if(!(_0x31f6b6[_0x1f6d77(0x1ef)]&&_0x1f4311[_0x1f6d77(0x1c4)](_0x31f6b6[_0x1f6d77(0x1ef)][_0x1f6d77(0x237)],0x1)))return;const _0x3f071b=_0x31f6b6[_0x1f6d77(0x1ef)][0x0],_0x4a6bc1=_0x31f6b6['astNodeIds'][0x1],_0x1a9b5e=_0x10c483[_0x1f6d77(0x232)]&&_0x10c483[_0x1f6d77(0x232)]['children']?_0x10c483['feature']['children']:undefined;let _0x439670=[];_0x1a9b5e&&_0x1a9b5e[_0x1f6d77(0x235)](_0x427979=>{const _0x11725f=_0x1f6d77,_0x2ea09d={'UqTWy':function(_0x3b5a18,_0x4ccf91){return _0x1f4311['eVqsC'](_0x3b5a18,_0x4ccf91);}};if(_0x427979['rule'])_0x427979[_0x11725f(0x1d9)][_0x11725f(0x1f7)][_0x11725f(0x235)](_0x5546e6=>{const _0x1515ef=_0x11725f;if(_0x5546e6[_0x1515ef(0x240)]&&_0x2ea09d[_0x1515ef(0x243)](_0x5546e6[_0x1515ef(0x240)]['id'],_0x3f071b)&&_0x5546e6[_0x1515ef(0x240)]['examples']){const _0x401624=_0x5546e6[_0x1515ef(0x240)][_0x1515ef(0x20b)]['flatMap'](_0xd0a82a=>_0xd0a82a[_0x1515ef(0x1e4)])[_0x1515ef(0x248)](_0x218ab3=>_0x218ab3['id']===_0x4a6bc1);let _0xebc738;_0x401624&&_0x401624[_0x1515ef(0x23f)]?_0xebc738=_0x401624['cells'][_0x1515ef(0x23c)](_0x2f8b5f=>_0x2f8b5f[_0x1515ef(0x221)]):_0xebc738=[],_0xebc738&&(_0x439670=_0xebc738);}});else{if(_0x427979[_0x11725f(0x240)]&&_0x1f4311[_0x11725f(0x24a)](_0x427979[_0x11725f(0x240)]['id'],_0x3f071b)&&_0x427979['scenario'][_0x11725f(0x20b)]){const _0x1cbc5c=_0x427979[_0x11725f(0x240)][_0x11725f(0x20b)][_0x11725f(0x21f)](_0x16bfae=>_0x16bfae[_0x11725f(0x1e4)])[_0x11725f(0x248)](_0x5c8361=>_0x5c8361['id']===_0x4a6bc1);let _0x1d1e31;_0x1cbc5c&&_0x1cbc5c[_0x11725f(0x23f)]?_0x1d1e31=_0x1cbc5c[_0x11725f(0x23f)][_0x11725f(0x23c)](_0x3b4dd8=>_0x3b4dd8[_0x11725f(0x221)]):_0x1d1e31=[],_0x1d1e31&&(_0x439670=_0x1d1e31);}}});if(_0x439670[_0x1f6d77(0x237)])return _0x439670;return;};async[a90_0x209d6f(0x236)](){const _0x1c9162=a90_0x209d6f,_0x2e3307={'Aukgv':function(_0x5f0ce6){return _0x5f0ce6();}};if(this['_gitConfigured'])return this[_0x1c9162(0x1c8)];const _0xe71371=await _0x2e3307[_0x1c9162(0x210)](getGitMetaData);_0xe71371&&(this[_0x1c9162(0x1c8)]=_0xe71371[_0x1c9162(0x215)]),this[_0x1c9162(0x213)]=!![];}}module[a90_0x209d6f(0x1e6)]=o11yClassErrorHandler(CucumberUtils,[a90_0x209d6f(0x236),a90_0x209d6f(0x231),a90_0x209d6f(0x20a),'getHookResult',a90_0x209d6f(0x1e7),'getHookRunEventData',a90_0x209d6f(0x1dd),a90_0x209d6f(0x234)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a91_0x575b(_0x493ff6,_0x2622ff){const _0x58fc20=a91_0x58fc();return a91_0x575b=function(_0x575bb0,_0x128d5b){_0x575bb0=_0x575bb0-0xef;let _0x30f620=_0x58fc20[_0x575bb0];return _0x30f620;},a91_0x575b(_0x493ff6,_0x2622ff);}function a91_0x58fc(){const _0x471a27=['jest','__workerDetails','parse','length','stack','ROOT_DESCRIBE_BLOCK','inspect','configureGit','find','HookRunFinished','testPath',',\x20hookUUID:\x20','PPoaX','HbTVn','result','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','CojrZ','tIgSU','afterAll','LtGSS','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','\x20from\x20compositeKey:\x20','../../../helpers/logger.js','getRootParentFile','_gitConfigured','type','getHierarchy','browserstack-node-agent/src/bin/jest','debug','zSxxU','isJestInternalHook','failed','finished_at','CFsNx','UpCWT','dbebK','ayAEc','BEFORE_EACH','test','UMhfa','Unknown\x20Test','pUWpw','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','started_at','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','beforeEach','pending','error','XWozD','XlznY','BEFORE_ALL','[jestUtils]\x20No\x20test\x20object\x20provided','vzUjk','HookRunStarted','yibDk','Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20','substring','FgMND','tIvmS','gXgLA','file','BcbyB','push','retryOf','parent','util','diMYE','stack-trace','errorsDetailed','toString','apply','[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation','199938zCkxLV','xUCbP',',\x20testIdentifier:\x20','failure_type','vWCas','duration','call','[jestUtils]\x20Error\x20creating\x20identifier:\x20','1263422JZQSQl','clearHooksMap','PdCqI','match','title','failure_reason_expanded','extractTestFilePath','paiPi','pid','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','ormKS','entSb','expect','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','36aAWSIc','lJXaF',':jest-','fullName','createIdentifierFromJestTest','oUBuq','passed','SPUVD','toISOString','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier','22015pgWYrU','uuid','KLQXu','\x22\x20hook\x20for\x20\x22','__jestCurrentTestIdentifier','toUpperCase','rjxel','getState','UgDRV','hooks','oqVdD','ABJXB','expanded','dbQdE','beforeAll','getName','createHookData','name','BknZW','afterEach','aymXz','AkAwT','javascript','aPMyd','nEuSp','hOvRq','reverse','split','testAnalyticsId','jest-circus','Exception\x20in\x20createHookData:\x20','TestRunSkipped','mXuII','9tfiVZb','_gitConfigPath','gXEkP','err','getTestIdentifier','exports','ErwAJ','File\x20path\x20could\x20not\x20be\x20found','356pAyQGo','RHbMC','finishedAt','[jestUtils]\x20Created\x20identifier:\x20','Qslpm','currentTest','includes','9793048YNyPOC','createJestTestIdentifier','displayName','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event',',\x20testRunId:\x20','backtrace','testIdentifier','1484958RCJquH','asyncError','TestRunFinished','crypto','getHookRunEventData','AFTER_ALL','format','failure','getTime','Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20','createHash','../../../helpers/helper.js','Creating\x20hook\x20data\x20for\x20eventType:\x20','TeOYI','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','10774400OlBDno','getFileName','EkISg','winstonLogger','YJczh','failure_reason','createTestFrameworkData','recreateIdentifierFromTestInfo','165529OsFDlR','relative','unknown'];a91_0x58fc=function(){return _0x471a27;};return a91_0x58fc();}const a91_0xccf7b2=a91_0x575b;(function(_0xeb9982,_0x243f59){const _0x1706db=a91_0x575b,_0x1c530a=_0xeb9982();while(!![]){try{const _0x96dd0d=parseInt(_0x1706db(0x138))/0x1+-parseInt(_0x1706db(0x187))/0x2+parseInt(_0x1706db(0x130))/0x3+-parseInt(_0x1706db(0x179))/0x4*(-parseInt(_0x1706db(0x150))/0x5)+-parseInt(_0x1706db(0x146))/0x6*(-parseInt(_0x1706db(0x19e))/0x7)+parseInt(_0x1706db(0x180))/0x8*(-parseInt(_0x1706db(0x171))/0x9)+parseInt(_0x1706db(0x196))/0xa;if(_0x96dd0d===_0x243f59)break;else _0x1c530a['push'](_0x1c530a['shift']());}catch(_0x36bd84){_0x1c530a['push'](_0x1c530a['shift']());}}}(a91_0x58fc,0xedf37));const path=require('path'),util=require(a91_0xccf7b2(0x129)),crypto=require(a91_0xccf7b2(0x18a)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a91_0xccf7b2(0x192)),logger=require(a91_0xccf7b2(0xfe))[a91_0xccf7b2(0x199)],{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler.js'),TestInfo=require('../TestInfo.js'),{failureData,getFailureType}=require('../../../helpers/test-observability/utils'),stackTrace=require(a91_0xccf7b2(0x12b)),a91_0x212d8a={};a91_0x212d8a[a91_0xccf7b2(0x15e)]=a91_0xccf7b2(0x11a),a91_0x212d8a[a91_0xccf7b2(0xfa)]=a91_0xccf7b2(0x18c),a91_0x212d8a[a91_0xccf7b2(0x115)]=a91_0xccf7b2(0x10d),a91_0x212d8a[a91_0xccf7b2(0x163)]='AFTER_EACH';const HOOK_TYPES_MAP=a91_0x212d8a,hooksMap={};class JestUtils{constructor(){const _0x2aa030=a91_0xccf7b2;this['_gitConfigured']=![],this[_0x2aa030(0x172)]=null;}async[a91_0xccf7b2(0x19c)](_0x5d72d5,_0x2c34d4,_0x11c412=a91_0xccf7b2(0x189),_0x570bd6=undefined){const _0x5400ff=a91_0xccf7b2,_0x27b1db={'rjxel':_0x5400ff(0xfc),'INNcs':'jest-circus','lOKLd':function(_0x6baf8c,_0x30d91c){return _0x6baf8c||_0x30d91c;},'YJczh':_0x5400ff(0x178),'ABJXB':function(_0x46c155,_0x5a9db9){return _0x46c155!==_0x5a9db9;},'ayAEc':_0x5400ff(0x10e),'jtVxG':function(_0x1d8738,_0x3cc5bb){return _0x1d8738!==_0x3cc5bb;},'PPoaX':_0x5400ff(0x174),'aPMyd':function(_0x5d0af6,_0x38ef91){return _0x5d0af6!==_0x38ef91;},'Qslpm':_0x5400ff(0x116),'UgDRV':function(_0x2073f6,_0x2a4b19){return _0x2073f6===_0x2a4b19;},'PdCqI':_0x5400ff(0x16f),'NhfNb':'skipped','TpCIv':function(_0x2294d2,_0x11eaad){return _0x2294d2>_0x11eaad;},'UMhfa':_0x5400ff(0x107),'vzUjk':'passed','oUBuq':function(_0x588d34,_0x3f7144){return _0x588d34-_0x3f7144;},'yibDk':_0x5400ff(0x166),'LtGSS':'jest','tIvmS':function(_0x448702,_0x5cb309){return _0x448702(_0x5cb309);},'UpCWT':'TestRunFinished'};logger[_0x5400ff(0x104)](_0x5400ff(0x11f)+_0x11c412+_0x5400ff(0x132)+_0x2c34d4);try{if(!_0x5d72d5)return logger[_0x5400ff(0x104)](_0x27b1db[_0x5400ff(0x156)]),null;if(_0x5d72d5['fn']&&_0x5d72d5['fn'][_0x5400ff(0x12d)]()['match'](/browserstack internal helper hook/))return null;await this[_0x5400ff(0xef)]();let _0x12befb;try{_0x12befb=this[_0x5400ff(0xff)](_0x5d72d5);if(_0x12befb&&_0x12befb[_0x5400ff(0x17f)](_0x27b1db['INNcs']))return null;}catch(_0xb6c515){logger[_0x5400ff(0x104)](_0x5400ff(0xf7)+util[_0x5400ff(0x18d)](_0xb6c515)),_0x12befb=null;}const _0x2468c2=this['getHierarchy'](_0x5d72d5),_0x5e58ff=this['getName'](_0x5d72d5),_0x189047=_0x27b1db['lOKLd'](_0x12befb,_0x27b1db[_0x5400ff(0x19a)]);let _0x90863c=[];if(_0x27b1db[_0x5400ff(0x15b)](_0x5d72d5[_0x5400ff(0x12c)],undefined))_0x90863c=[_0x5d72d5['errorsDetailed'],_0x27b1db[_0x5400ff(0x10c)]];else _0x27b1db['jtVxG'](_0x570bd6,undefined)&&(_0x90863c=[_0x570bd6,_0x27b1db[_0x5400ff(0xf4)]]);const _0x1f3a60=_0x27b1db['aPMyd'](_0x5d72d5[_0x5400ff(0x12c)],undefined)?util[_0x5400ff(0x1a7)](_0x5d72d5[_0x5400ff(0x12c)][0x0]):_0x27b1db[_0x5400ff(0x15b)](_0x570bd6,undefined)?_0x570bd6[_0x5400ff(0x12d)]():undefined;let _0x14eb17=_0x27b1db[_0x5400ff(0x17d)];if(_0x27b1db[_0x5400ff(0x158)](_0x11c412,_0x27b1db['PdCqI']))_0x14eb17=_0x27b1db['NhfNb'];else _0x5d72d5[_0x5400ff(0x12c)]&&_0x27b1db['TpCIv'](_0x5d72d5[_0x5400ff(0x12c)][_0x5400ff(0x1a4)],0x0)?_0x14eb17=_0x27b1db[_0x5400ff(0x10f)]:_0x14eb17=_0x27b1db[_0x5400ff(0x11c)];let _0x280e21=null;if(_0x27b1db[_0x5400ff(0x167)](_0x5d72d5[_0x5400ff(0x135)],undefined))_0x280e21=_0x5d72d5[_0x5400ff(0x135)];else(_0x11c412[_0x5400ff(0x13b)](/Finished/)||_0x11c412[_0x5400ff(0x13b)](/Skipped/))&&(_0x5d72d5[_0x5400ff(0x113)]&&(_0x280e21=_0x27b1db[_0x5400ff(0x14b)](Date['now'](),new Date(_0x5d72d5[_0x5400ff(0x113)])[_0x5400ff(0x18f)]())));const _0x2b6453=_0x5d72d5['fn']?_0x5d72d5['fn'][_0x5400ff(0x12d)]():null,_0x2c8f59={'id':_0x2c34d4,'uuid':_0x2c34d4,'startedAt':_0x5d72d5['started_at']||new Date()[_0x5400ff(0x14e)](),'finishedAt':_0x11c412[_0x5400ff(0x13b)](/Finished/)||_0x11c412[_0x5400ff(0x13b)](/Skipped/)?new Date()[_0x5400ff(0x14e)]():null,'type':_0x27b1db['ayAEc'],'body':{'lang':_0x27b1db[_0x5400ff(0x11e)],'code':_0x2b6453},'name':_0x5e58ff,'scopes':_0x2468c2,'file_name':_0x189047,'location':_0x189047,'vc_filepath':this[_0x5400ff(0x172)]&&_0x12befb?path[_0x5400ff(0x19f)](this[_0x5400ff(0x172)],_0x12befb):null,'framework':_0x27b1db[_0x5400ff(0xfb)],'result':_0x14eb17,'failure_reason':_0x1f3a60,'duration_in_ms':_0x280e21,'failure':failureData[_0x5400ff(0x12e)](null,_0x90863c),'failure_type':!_0x1f3a60?null:_0x27b1db[_0x5400ff(0x122)](getFailureType,_0x1f3a60),'retry_of':_0x5d72d5[_0x5400ff(0x127)]||null,'customRerunParam':{'rerun_name':_0x5e58ff}};_0x27b1db[_0x5400ff(0x158)](_0x11c412,_0x27b1db[_0x5400ff(0x13a)])&&!_0x2c8f59['startedAt']&&(_0x2c8f59['startedAt']=_0x2c8f59[_0x5400ff(0x17b)]);const _0x3200c5=_0x2c8f59[_0x5400ff(0x18e)]&&_0x2c8f59[_0x5400ff(0x18e)][0x0];return _0x3200c5&&(_0x2c8f59['failure_backtrace']=_0x3200c5[_0x5400ff(0x185)],_0x2c8f59[_0x5400ff(0x13d)]=_0x3200c5[_0x5400ff(0x15c)]),(_0x27b1db[_0x5400ff(0x158)](_0x11c412,_0x27b1db[_0x5400ff(0x10a)])||_0x27b1db[_0x5400ff(0x158)](_0x11c412,_0x27b1db[_0x5400ff(0x13a)]))&&(_0x5d72d5[_0x5400ff(0x159)]&&(_0x2c8f59[_0x5400ff(0x159)]=_0x5d72d5[_0x5400ff(0x159)])),_0x2c8f59;}catch(_0x2ff485){return logger['debug']('Exception\x20in\x20createTestFrameworkData:\x20'+util[_0x5400ff(0x18d)](_0x2ff485)),null;}}async[a91_0xccf7b2(0x160)](_0x815206,_0x2ab730,_0x5ca7c6,_0x32cc6a){const _0x553893=a91_0xccf7b2,_0x1968d3={'oqVdD':_0x553893(0x183),'CFsNx':_0x553893(0x16d),'DXFWg':_0x553893(0x103),'CojrZ':_0x553893(0x1a0),'KLQXu':_0x553893(0x116),'lJXaF':function(_0x5c1280,_0x252a38){return _0x5c1280===_0x252a38;},'BknZW':_0x553893(0xf1),'SPUVD':function(_0x1bd9c5,_0x1b7ffa){return _0x1bd9c5>_0x1b7ffa;},'uWeel':_0x553893(0x107),'ErwAJ':function(_0xec2d5b,_0x1f8f1c){return _0xec2d5b(_0x1f8f1c);},'EkISg':_0x553893(0x10e),'pUWpw':'passed','nPdII':'hook','fScBS':_0x553893(0x166),'paiPi':_0x553893(0x1a1),'ormKS':_0x553893(0x11d)};logger['debug'](_0x553893(0x193)+_0x5ca7c6+_0x553893(0xf3)+_0x2ab730+_0x553893(0x184)+_0x32cc6a);try{if(!_0x815206)return logger[_0x553893(0x104)](_0x1968d3[_0x553893(0x15a)]),null;if(this['isJestInternalHook'](_0x815206))return null;await this[_0x553893(0xef)]();let _0x2ee5d7=null;try{_0x2ee5d7=this['getRootParentFile'](_0x815206);if(_0x2ee5d7&&_0x2ee5d7['includes'](_0x1968d3[_0x553893(0x109)]))return null;if(_0x2ee5d7&&_0x2ee5d7[_0x553893(0x17f)](_0x1968d3['DXFWg']))return null;}catch(_0x5bde5a){logger[_0x553893(0x104)](_0x553893(0x112)+util[_0x553893(0x18d)](_0x5bde5a));}const _0x1ce289=this[_0x553893(0x15f)](_0x815206),_0x50d733=_0x815206[_0x553893(0x101)]||_0x1968d3[_0x553893(0xf8)],_0x56ba3a=HOOK_TYPES_MAP[_0x50d733]||_0x50d733[_0x553893(0x155)](),_0x6da3ac=_0x815206[_0x553893(0x128)]&&_0x815206[_0x553893(0x128)][_0x553893(0x161)]?_0x815206[_0x553893(0x128)]['name']:'';let _0x35f8d0=_0x1968d3[_0x553893(0x152)],_0x224ce5=null,_0x2f8491=null,_0x3d67fd=null,_0x1f7c83=null;_0x1968d3[_0x553893(0x147)](_0x5ca7c6,_0x1968d3[_0x553893(0x162)])&&(_0x1f7c83=new Date()[_0x553893(0x14e)](),_0x815206['errorsDetailed']&&_0x1968d3[_0x553893(0x14d)](_0x815206[_0x553893(0x12c)][_0x553893(0x1a4)],0x0)?(_0x35f8d0=_0x1968d3['uWeel'],_0x2f8491=util['inspect'](_0x815206[_0x553893(0x12c)][0x0]),_0x224ce5=_0x1968d3[_0x553893(0x177)](getFailureType,_0x2f8491),_0x3d67fd=failureData[_0x553893(0x12e)](null,[_0x815206[_0x553893(0x12c)],_0x1968d3[_0x553893(0x198)]])):_0x35f8d0=_0x1968d3[_0x553893(0x111)]);const _0x4f030d={'uuid':_0x2ab730,'type':_0x1968d3['nPdII'],'hook_type':_0x56ba3a,'name':_0x1ce289,'body':{'lang':_0x1968d3['fScBS'],'code':_0x815206['fn']?_0x815206['fn']['toString']():null},'tags':[],'test_run_id':_0x32cc6a,'scope':_0x6da3ac,'scopes':[_0x6da3ac],'file_name':_0x2ee5d7,'location':_0x2ee5d7,'vc_filepath':this['_gitConfigPath']&&_0x2ee5d7?path[_0x553893(0x19f)](this[_0x553893(0x172)],_0x2ee5d7):null,'result':_0x35f8d0,'started_at':_0x815206['started_at']||new Date()['toISOString'](),'finished_at':_0x1f7c83,'failure_type':_0x224ce5,'failure_reason':_0x2f8491,'failure_data':_0x3d67fd,'framework':_0x1968d3[_0x553893(0x13f)]};return _0x1968d3[_0x553893(0x147)](_0x5ca7c6,_0x1968d3[_0x553893(0x142)])&&(hooksMap[_0x32cc6a]?hooksMap[_0x32cc6a][_0x553893(0x126)](_0x4f030d):hooksMap[_0x32cc6a]=[_0x4f030d]),_0x4f030d;}catch(_0x966583){return logger[_0x553893(0x104)](_0x553893(0x16e)+util[_0x553893(0x18d)](_0x966583)),null;}}[a91_0xccf7b2(0x18b)](_0x5e43a6,_0x2ba739,_0x574b25){const _0x3666ad=a91_0xccf7b2,_0x149325={'AkAwT':function(_0x5e0bef,_0x58391b){return _0x5e0bef>_0x58391b;},'rSMpC':_0x3666ad(0x107),'vWCas':function(_0x119338,_0x1cadf6){return _0x119338(_0x1cadf6);},'qVFqF':_0x3666ad(0x10e),'BcbyB':_0x3666ad(0x14c)};try{const _0x3d99a5=hooksMap[_0x5e43a6];if(!_0x3d99a5)return null;const _0x5dfb07=_0x3d99a5[_0x3666ad(0xf0)](_0x117316=>_0x117316[_0x3666ad(0x151)]===_0x2ba739);if(!_0x5dfb07)return null;return _0x5dfb07[_0x3666ad(0x108)]=new Date()[_0x3666ad(0x14e)](),_0x574b25[_0x3666ad(0x12c)]&&_0x149325[_0x3666ad(0x165)](_0x574b25['errorsDetailed']['length'],0x0)?(_0x5dfb07[_0x3666ad(0xf6)]=_0x149325['rSMpC'],_0x5dfb07[_0x3666ad(0x19b)]=util[_0x3666ad(0x1a7)](_0x574b25[_0x3666ad(0x12c)][0x0]),_0x5dfb07[_0x3666ad(0x133)]=_0x149325[_0x3666ad(0x134)](getFailureType,_0x5dfb07[_0x3666ad(0x19b)]),_0x5dfb07['failure_data']=failureData[_0x3666ad(0x12e)](null,[_0x574b25[_0x3666ad(0x12c)],_0x149325['qVFqF']])):_0x5dfb07['result']=_0x149325[_0x3666ad(0x125)],_0x5dfb07;}catch(_0x464ded){return logger[_0x3666ad(0x104)]('Exception\x20in\x20getHookRunEventData:\x20'+util['format'](_0x464ded)),null;}}['getName'](_0x24f797){const _0x137f84=a91_0xccf7b2,_0x4d4842={};_0x4d4842[_0x137f84(0xf9)]=function(_0x52c55a,_0x157ce2){return _0x52c55a!==_0x157ce2;},_0x4d4842[_0x137f84(0x164)]='test',_0x4d4842[_0x137f84(0x105)]=_0x137f84(0x110);const _0x3e8a84=_0x4d4842;if(_0x3e8a84[_0x137f84(0xf9)](_0x24f797[_0x137f84(0x101)],_0x3e8a84[_0x137f84(0x164)]))return'\x22'+_0x24f797['type']+_0x137f84(0x153)+(_0x24f797[_0x137f84(0x128)]&&_0x24f797[_0x137f84(0x128)][_0x137f84(0x161)])+'\x22';return _0x24f797[_0x137f84(0x161)]||_0x3e8a84[_0x137f84(0x105)];}[a91_0xccf7b2(0x102)](_0x449d27){const _0x13840d=a91_0xccf7b2,_0x9a7089={};_0x9a7089[_0x13840d(0x143)]=function(_0x426410,_0x1d8cdf){return _0x426410!==_0x1d8cdf;},_0x9a7089[_0x13840d(0x121)]=function(_0x45bd03,_0x22cd0b){return _0x45bd03!==_0x22cd0b;},_0x9a7089[_0x13840d(0x173)]=_0x13840d(0x1a6);const _0x22518e=_0x9a7089,_0x416c28=[];if(_0x449d27&&_0x449d27[_0x13840d(0x128)]){let _0x55d4d4=_0x449d27[_0x13840d(0x128)];while(_0x55d4d4&&_0x55d4d4[_0x13840d(0x161)]&&_0x22518e[_0x13840d(0x143)](_0x55d4d4['name'],'')&&_0x22518e[_0x13840d(0x121)](_0x55d4d4[_0x13840d(0x161)],_0x22518e[_0x13840d(0x173)])){_0x416c28[_0x13840d(0x126)](_0x55d4d4[_0x13840d(0x161)]),_0x55d4d4=_0x55d4d4[_0x13840d(0x128)];}}return _0x416c28[_0x13840d(0x16a)](),_0x416c28;}['getRootParentFile'](_0x53ed4f){const _0x16cd8b=a91_0xccf7b2;if(_0x53ed4f[_0x16cd8b(0x188)])try{const _0x22d85c=stackTrace[_0x16cd8b(0x1a3)][_0x16cd8b(0x136)](stackTrace,_0x53ed4f[_0x16cd8b(0x188)]);if(_0x22d85c[0x0]&&_0x22d85c[0x0][_0x16cd8b(0x197)])return _0x22d85c[0x0]['getFileName']();}catch(_0x1262d2){logger['debug'](_0x16cd8b(0x114)+util[_0x16cd8b(0x18d)](_0x1262d2));}if(_0x53ed4f[_0x16cd8b(0x124)])return _0x53ed4f[_0x16cd8b(0x124)];return null;}['isJestInternalHook'](_0x4c1871){const _0x45efd5=a91_0xccf7b2,_0x30fa65={};_0x30fa65[_0x45efd5(0x10b)]=_0x45efd5(0x16d);const _0x12c96b=_0x30fa65;try{const _0x33ab91=this[_0x45efd5(0xff)](_0x4c1871);if(_0x33ab91&&_0x33ab91[_0x45efd5(0x17f)](_0x12c96b[_0x45efd5(0x10b)]))return!![];}catch(_0x165236){logger[_0x45efd5(0x104)](_0x45efd5(0x190)+util['format'](_0x165236));}return![];}['getTestIdentifier'](_0x1c1eec=null){const _0x298d92=a91_0xccf7b2;try{const _0x47a59e=_0x1c1eec||global[_0x298d92(0x1a2)]||{};if(global[_0x298d92(0x154)])return global[_0x298d92(0x154)];if(_0x47a59e?.['currentTest']?.[_0x298d92(0x16c)])return _0x47a59e[_0x298d92(0x17e)][_0x298d92(0x16c)];if(_0x47a59e?.[_0x298d92(0x17e)]?.['id'])return _0x47a59e[_0x298d92(0x17e)]['id'];return null;}catch(_0x12586b){return logger['debug'](_0x298d92(0x195)+util['format'](_0x12586b)),null;}}async['configureGit'](){const _0x174d8d=a91_0xccf7b2,_0x234388={'xUCbP':function(_0x50e6b9){return _0x50e6b9();}};if(this[_0x174d8d(0x100)])return this[_0x174d8d(0x172)];const _0x1cb70e=await _0x234388[_0x174d8d(0x131)](getGitMetaData);_0x1cb70e&&(this[_0x174d8d(0x172)]=_0x1cb70e['root']),this[_0x174d8d(0x100)]=!![];}[a91_0xccf7b2(0x139)](_0x25951b){hooksMap[_0x25951b]&&delete hooksMap[_0x25951b];}[a91_0xccf7b2(0x13e)](_0xf07555){const _0x22aec7=a91_0xccf7b2,_0x2781cc={'HbTVn':_0x22aec7(0x16d),'RHbMC':function(_0x3a43dd,_0x1967e9){return _0x3a43dd(_0x1967e9);},'nEuSp':_0x22aec7(0x144)};if(_0xf07555['file'])return _0xf07555[_0x22aec7(0x124)];if(_0xf07555[_0x22aec7(0x188)]){try{const _0x5c3985=stackTrace[_0x22aec7(0x1a3)](_0xf07555[_0x22aec7(0x188)]);if(_0x5c3985[0x0]&&_0x5c3985[0x0]['getFileName']){const _0x106c3d=_0x5c3985[0x0]['getFileName']();if(_0x106c3d&&!_0x106c3d[_0x22aec7(0x17f)](_0x2781cc[_0x22aec7(0xf5)]))return _0x106c3d;}}catch(_0x2992a5){logger['debug'](_0x22aec7(0x145)+util[_0x22aec7(0x18d)](_0x2992a5));}if(_0xf07555['asyncError'][_0x22aec7(0x1a5)]){const _0x3ed4c7=_0xf07555[_0x22aec7(0x188)][_0x22aec7(0x1a5)][_0x22aec7(0x16b)]('\x0a');for(const _0x50e9b1 of _0x3ed4c7){const _0x1b5c3e=_0x50e9b1[_0x22aec7(0x13b)](/at (.+?):\d+:\d+/);if(_0x1b5c3e&&_0x1b5c3e[0x1]&&!_0x1b5c3e[0x1][_0x22aec7(0x17f)](_0x2781cc[_0x22aec7(0xf5)]))return _0x1b5c3e[0x1];}}}let _0x2b43a4=_0xf07555['parent'];while(_0x2b43a4){if(_0x2b43a4[_0x22aec7(0x124)])return _0x2b43a4['file'];if(_0x2b43a4[_0x22aec7(0x188)])try{const _0x264c00=stackTrace['parse'](_0x2b43a4['asyncError']);if(_0x264c00[0x0]&&_0x264c00[0x0][_0x22aec7(0x197)]){const _0x190f7=_0x264c00[0x0]['getFileName']();if(_0x190f7&&!_0x190f7['includes'](_0x2781cc[_0x22aec7(0xf5)]))return _0x190f7;}}catch(_0x525d27){}_0x2b43a4=_0x2b43a4[_0x22aec7(0x128)];}try{const _0x4a7f28=_0x2781cc[_0x22aec7(0x17a)](require,_0x2781cc[_0x22aec7(0x168)]);if(_0x4a7f28&&_0x4a7f28['getState']){const _0x290724=_0x4a7f28[_0x22aec7(0x157)]();if(_0x290724&&_0x290724[_0x22aec7(0xf2)])return _0x290724[_0x22aec7(0xf2)];}}catch(_0x22cf2a){logger[_0x22aec7(0x104)]('[jestUtils]\x20expect.getState()\x20not\x20available:\x20'+util[_0x22aec7(0x18d)](_0x22cf2a));}return null;}[a91_0xccf7b2(0x181)](_0x5de5af){const _0x33327=a91_0xccf7b2,_0x4faec5={};_0x4faec5['XlznY']=_0x33327(0x14f),_0x4faec5[_0x33327(0x12a)]=function(_0x5e732d,_0x388055){return _0x5e732d!==_0x388055;},_0x4faec5['dbQdE']=_0x33327(0x1a6),_0x4faec5[_0x33327(0x169)]=_0x33327(0x16d),_0x4faec5[_0x33327(0x194)]='md5',_0x4faec5[_0x33327(0x118)]='hex';const _0x3b0700=_0x4faec5;try{if(!_0x5de5af)return logger[_0x33327(0x117)](_0x3b0700[_0x33327(0x119)]),null;const _0x53c05e=_0x5de5af[_0x33327(0x149)]||_0x5de5af['name']||_0x5de5af[_0x33327(0x13c)]||_0x5de5af[_0x33327(0x182)];let _0x453a83=_0x53c05e;if(_0x5de5af[_0x33327(0x128)]&&_0x5de5af[_0x33327(0x128)][_0x33327(0x161)]&&_0x3b0700[_0x33327(0x12a)](_0x5de5af[_0x33327(0x128)][_0x33327(0x161)],_0x3b0700[_0x33327(0x15d)])){const _0x3cf28d=_0x5de5af[_0x33327(0x161)]||_0x5de5af[_0x33327(0x13c)];_0x3cf28d&&(_0x453a83=_0x5de5af['parent']['name']+'\x20'+_0x3cf28d);}let _0x1d1110=_0x5de5af[_0x33327(0xf2)];if(!_0x1d1110&&_0x5de5af[_0x33327(0x188)]){try{const _0x3becc4=stackTrace[_0x33327(0x1a3)](_0x5de5af[_0x33327(0x188)]);if(_0x3becc4[0x0]&&_0x3becc4[0x0][_0x33327(0x197)]){const _0x567e86=_0x3becc4[0x0]['getFileName']();_0x567e86&&!_0x567e86[_0x33327(0x17f)](_0x3b0700[_0x33327(0x169)])&&(_0x1d1110=_0x567e86);}}catch(_0x5305fe){logger[_0x33327(0x104)](_0x33327(0x145)+util[_0x33327(0x18d)](_0x5305fe));}if(!_0x1d1110&&_0x5de5af[_0x33327(0x188)][_0x33327(0x1a5)]){const _0x52e434=_0x5de5af[_0x33327(0x188)][_0x33327(0x1a5)]['split']('\x0a');for(const _0x3a62f5 of _0x52e434){const _0xf06d29=_0x3a62f5[_0x33327(0x13b)](/at (.+?):\d+:\d+/);if(_0xf06d29&&_0xf06d29[0x1]&&!_0xf06d29[0x1][_0x33327(0x17f)](_0x3b0700[_0x33327(0x169)])){_0x1d1110=_0xf06d29[0x1];break;}}}}const _0x507956=_0x1d1110+'::'+_0x453a83,_0x227e46=crypto[_0x33327(0x191)](_0x3b0700[_0x33327(0x194)])['update'](_0x507956)['digest'](_0x3b0700[_0x33327(0x118)])[_0x33327(0x120)](0x0,0x8),_0x50e079=process[_0x33327(0x140)]+_0x33327(0x148)+_0x227e46;return logger[_0x33327(0x104)](_0x33327(0x17c)+_0x50e079+_0x33327(0xfd)+_0x507956),_0x50e079;}catch(_0x2357d6){return logger['error'](_0x33327(0x137)+util[_0x33327(0x18d)](_0x2357d6)),null;}}[a91_0xccf7b2(0x14a)](_0x2c52e3){const _0x41533d=a91_0xccf7b2,_0x24e792={};_0x24e792[_0x41533d(0x123)]=_0x41533d(0x11b);const _0xbb2ee6=_0x24e792;if(!_0x2c52e3)return logger['debug'](_0xbb2ee6['gXgLA']),null;const _0x36f7df=this[_0x41533d(0x13e)](_0x2c52e3),_0x2f1358={};_0x2f1358[_0x41533d(0x161)]=_0x2c52e3[_0x41533d(0x161)]||_0x2c52e3[_0x41533d(0x13c)],_0x2f1358['parent']=_0x2c52e3[_0x41533d(0x128)],_0x2f1358['testPath']=_0x36f7df,_0x2f1358[_0x41533d(0x188)]=_0x2c52e3[_0x41533d(0x188)];const _0x3afcf8=_0x2f1358;return this[_0x41533d(0x181)](_0x3afcf8);}[a91_0xccf7b2(0x19d)](_0x1c9b54){const _0x2c07ef=a91_0xccf7b2,_0x30a744={};_0x30a744[_0x2c07ef(0x170)]=_0x2c07ef(0x12f);const _0x2f1493=_0x30a744;if(!_0x1c9b54)return logger[_0x2c07ef(0x104)](_0x2f1493[_0x2c07ef(0x170)]),null;if(_0x1c9b54[_0x2c07ef(0x186)])return logger['debug'](_0x2c07ef(0x141)+_0x1c9b54[_0x2c07ef(0x186)]),_0x1c9b54[_0x2c07ef(0x186)];return this[_0x2c07ef(0x181)](_0x1c9b54);}}module[a91_0xccf7b2(0x176)]=o11yClassErrorHandler(JestUtils,[a91_0xccf7b2(0xef),a91_0xccf7b2(0x102),a91_0xccf7b2(0xff),a91_0xccf7b2(0x15f),a91_0xccf7b2(0x106),a91_0xccf7b2(0x175),a91_0xccf7b2(0x19c),a91_0xccf7b2(0x160),a91_0xccf7b2(0x18b),a91_0xccf7b2(0x139),a91_0xccf7b2(0x13e),a91_0xccf7b2(0x181),a91_0xccf7b2(0x14a),a91_0xccf7b2(0x19d)]);
|
|
1
|
+
const a91_0x4ce6bf=a91_0x3d36;function a91_0x4d18(){const _0x3c1ca9=['__workerDetails','split','beforeAll','jRmpW','[jestUtils]\x20expect.getState()\x20not\x20available:\x20','skipped','startedAt','length','createHookData','[jestUtils]\x20Using\x20stored\x20testIdentifier:\x20','Exception\x20in\x20getHookRunEventData:\x20','now','../../../helpers/helper.js',':jest-','QjklW','VrYKv','error','find','lRbWg','parse','File\x20path\x20could\x20not\x20be\x20found','wFCVL','qhaGJ','started_at','\x20from\x20compositeKey:\x20','TestRunFinished','name','nETlf','fullName','getTime','failure_backtrace','inspect','../../../helpers/test-observability/error-handler.js','Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','testAnalyticsId','stack-trace','__jestCurrentTestIdentifier','file','errorsDetailed','[jestUtils]\x20No\x20testInfo\x20provided,\x20cannot\x20create\x20identifier','rnFTl','EfJnn','KDfWg','Exception\x20in\x20createHookData:\x20','failure','../../../helpers/test-observability/utils','getRootParentFile','createHash','SAbPj','CFMmH','apply','AFTER_EACH','No\x20hook\x20data\x20provided\x20for\x20jest\x20hook\x20event','aIFdL','call','getFileName','afterAll','ODrBQ','err','Ptykm','afterEach','unknown','debug','KZoGe','testPath','Failed\x20to\x20get\x20hook\x20file\x20path:\x20','retryOf','BEFORE_EACH','HookRunFinished','FQLhG','ekbRw','12417720chBvoV','MzXtq','getHierarchy','AFTER_ALL','jest-circus','tLMdA','hooks','aUVJS','[jestUtils]\x20No\x20test\x20object\x20provided','LRVTC','javascript','createJestTestIdentifier','vGmFv','format','HookRunStarted','toISOString','317784tXXxFr','configureGit','tZvjO','QCHQY','TtGGv','hex','\x22\x20hook\x20for\x20\x22','testIdentifier','eRDMB','BEFORE_ALL','dOVKM','beforeEach','3483786JUgVVh','[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20','duration','failure_data','finished_at',',\x20testRunId:\x20','gdiUS','Unknown\x20Test','expect','dVYyK','FBREA','failure_type','failure_reason','No\x20test\x20data\x20provided\x20for\x20jest\x20test\x20event','uuid','IWYaY','createIdentifierFromJestTest','exports','APyoP','recreateIdentifierFromTestInfo','BegWo','QnxAi','ROOT_DESCRIBE_BLOCK','includes','parent','toString','1292630zDrbSj','backtrace','_gitConfigPath','joEVW','clearHooksMap','[jestUtils]\x20Error\x20creating\x20identifier:\x20','getTestIdentifier','getName','crypto','browserstack-node-agent/src/bin/jest',',\x20testIdentifier:\x20','QTeYK','dJyZF','xhDLU','cWnJw','path','asyncError','10VXxQTb','pPgJd','title','stack','OOxZw','failed','passed','153exiILI','lfUxw','Creating\x20hook\x20data\x20for\x20eventType:\x20','138302VWRtpJ','mHhPE','../TestInfo.js','extractTestFilePath','171696ejbprE','21dbaKcA','pending','sGdTc','[jestUtils]\x20Error\x20getting\x20test\x20identifier:\x20','xCAXG','getHookRunEventData','XLnQh','currentTest','eCBCI','expanded','jest','RPKQN','createTestFrameworkData','2197200ukrxPY','_gitConfigured','push','uKlYm','[jestUtils]\x20Created\x20identifier:\x20','match','type','xHksi','digest','Failed\x20to\x20get\x20root\x20parent\x20file:\x20','result','getState','reverse','test'];a91_0x4d18=function(){return _0x3c1ca9;};return a91_0x4d18();}(function(_0x13509d,_0xb07289){const _0x2d812b=a91_0x3d36,_0xa1b857=_0x13509d();while(!![]){try{const _0x5ba68b=-parseInt(_0x2d812b(0x1d3))/0x1+-parseInt(_0x2d812b(0x136))/0x2*(parseInt(_0x2d812b(0x13b))/0x3)+-parseInt(_0x2d812b(0x1ad))/0x4+parseInt(_0x2d812b(0x12c))/0x5*(parseInt(_0x2d812b(0x1b9))/0x6)+parseInt(_0x2d812b(0x19d))/0x7+-parseInt(_0x2d812b(0x13a))/0x8*(parseInt(_0x2d812b(0x133))/0x9)+parseInt(_0x2d812b(0x148))/0xa;if(_0x5ba68b===_0xb07289)break;else _0xa1b857['push'](_0xa1b857['shift']());}catch(_0x1ff34e){_0xa1b857['push'](_0xa1b857['shift']());}}}(a91_0x4d18,0xe4043));const path=require(a91_0x4ce6bf(0x12a)),util=require('util'),crypto=require(a91_0x4ce6bf(0x1db)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a91_0x4ce6bf(0x162)),logger=require('../../../helpers/logger.js')['winstonLogger'],{o11yClassErrorHandler}=require(a91_0x4ce6bf(0x176)),TestInfo=require(a91_0x4ce6bf(0x138)),{failureData,getFailureType}=require(a91_0x4ce6bf(0x183)),stackTrace=require(a91_0x4ce6bf(0x179)),a91_0x5e85cd={};a91_0x5e85cd[a91_0x4ce6bf(0x158)]=a91_0x4ce6bf(0x1b6),a91_0x5e85cd[a91_0x4ce6bf(0x18e)]=a91_0x4ce6bf(0x1a0),a91_0x5e85cd[a91_0x4ce6bf(0x1b8)]=a91_0x4ce6bf(0x199),a91_0x5e85cd[a91_0x4ce6bf(0x192)]=a91_0x4ce6bf(0x189);function a91_0x3d36(_0x341a5a,_0x246775){const _0x4d18f8=a91_0x4d18();return a91_0x3d36=function(_0x3d3678,_0x343232){_0x3d3678=_0x3d3678-0x129;let _0x5705ed=_0x4d18f8[_0x3d3678];return _0x5705ed;},a91_0x3d36(_0x341a5a,_0x246775);}const HOOK_TYPES_MAP=a91_0x5e85cd,hooksMap={};class JestUtils{constructor(){const _0x5e6b58=a91_0x4ce6bf;this[_0x5e6b58(0x149)]=![],this[_0x5e6b58(0x1d5)]=null;}async['createTestFrameworkData'](_0x20a5ef,_0x377b8c,_0x4ef31f=a91_0x4ce6bf(0x16f),_0x35ffe7=undefined){const _0x100d46=a91_0x4ce6bf,_0x411c31={'KDfWg':_0x100d46(0x1c6),'MzXtq':'jest-circus','LRVTC':function(_0x1be423,_0x2a5243){return _0x1be423||_0x2a5243;},'lRbWg':_0x100d46(0x16a),'KZoGe':function(_0x250b7b,_0x5e7745){return _0x250b7b!==_0x5e7745;},'eCBCI':_0x100d46(0x155),'dOVKM':_0x100d46(0x190),'QTeYK':function(_0x4c5d21,_0x41ed88){return _0x4c5d21!==_0x41ed88;},'xHksi':_0x100d46(0x13c),'joEVW':function(_0xec2b3c,_0x2d43f0){return _0xec2b3c===_0x2d43f0;},'ODrBQ':'TestRunSkipped','xhDLU':_0x100d46(0x15b),'ggznD':function(_0xa7cc87,_0x17dc8f){return _0xa7cc87>_0x17dc8f;},'OpVEA':'failed','EfJnn':_0x100d46(0x132),'OOxZw':function(_0x530323,_0x1ed70d){return _0x530323!==_0x1ed70d;},'nGNEb':function(_0x13c003,_0x23d590){return _0x13c003-_0x23d590;},'sLFSi':_0x100d46(0x1a7),'sGdTc':_0x100d46(0x145),'nBNvj':function(_0x4d1d3c,_0xcb7cb2){return _0x4d1d3c(_0xcb7cb2);},'nETlf':function(_0x4c3b29,_0x46b50c){return _0x4c3b29===_0x46b50c;},'YclRw':_0x100d46(0x16f)};logger[_0x100d46(0x194)]('Creating\x20test\x20framework\x20data\x20for\x20eventType:\x20'+_0x4ef31f+_0x100d46(0x1dd)+_0x377b8c);try{if(!_0x20a5ef)return logger[_0x100d46(0x194)](_0x411c31[_0x100d46(0x180)]),null;if(_0x20a5ef['fn']&&_0x20a5ef['fn'][_0x100d46(0x1d2)]()['match'](/browserstack internal helper hook/))return null;await this[_0x100d46(0x1ae)]();let _0x590652;try{_0x590652=this[_0x100d46(0x184)](_0x20a5ef);if(_0x590652&&_0x590652[_0x100d46(0x1d0)](_0x411c31[_0x100d46(0x19e)]))return null;}catch(_0x4e354f){logger[_0x100d46(0x194)](_0x100d46(0x151)+util[_0x100d46(0x1aa)](_0x4e354f)),_0x590652=null;}const _0x3de4a5=this[_0x100d46(0x19f)](_0x20a5ef),_0xc6885c=this[_0x100d46(0x1da)](_0x20a5ef),_0x39a8be=_0x411c31[_0x100d46(0x1a6)](_0x590652,_0x411c31[_0x100d46(0x168)]);let _0x21ba3f=[];if(_0x411c31[_0x100d46(0x195)](_0x20a5ef[_0x100d46(0x17c)],undefined))_0x21ba3f=[_0x20a5ef[_0x100d46(0x17c)],_0x411c31['eCBCI']];else _0x411c31['KZoGe'](_0x35ffe7,undefined)&&(_0x21ba3f=[_0x35ffe7,_0x411c31[_0x100d46(0x1b7)]]);const _0x504236=_0x411c31[_0x100d46(0x1de)](_0x20a5ef[_0x100d46(0x17c)],undefined)?util[_0x100d46(0x175)](_0x20a5ef['errorsDetailed'][0x0]):_0x411c31[_0x100d46(0x1de)](_0x35ffe7,undefined)?_0x35ffe7['toString']():undefined;let _0x2a8815=_0x411c31[_0x100d46(0x14f)];if(_0x411c31[_0x100d46(0x1d6)](_0x4ef31f,_0x411c31[_0x100d46(0x18f)]))_0x2a8815=_0x411c31[_0x100d46(0x1e0)];else _0x20a5ef[_0x100d46(0x17c)]&&_0x411c31['ggznD'](_0x20a5ef['errorsDetailed'][_0x100d46(0x15d)],0x0)?_0x2a8815=_0x411c31['OpVEA']:_0x2a8815=_0x411c31[_0x100d46(0x17f)];let _0xd6e873=null;if(_0x411c31[_0x100d46(0x130)](_0x20a5ef['duration'],undefined))_0xd6e873=_0x20a5ef[_0x100d46(0x1bb)];else(_0x4ef31f[_0x100d46(0x14d)](/Finished/)||_0x4ef31f[_0x100d46(0x14d)](/Skipped/))&&(_0x20a5ef[_0x100d46(0x16d)]&&(_0xd6e873=_0x411c31['nGNEb'](Date[_0x100d46(0x161)](),new Date(_0x20a5ef[_0x100d46(0x16d)])[_0x100d46(0x173)]())));const _0x38ad3f=_0x20a5ef['fn']?_0x20a5ef['fn'][_0x100d46(0x1d2)]():null,_0x43c0de={'id':_0x377b8c,'uuid':_0x377b8c,'startedAt':_0x20a5ef[_0x100d46(0x16d)]||new Date()[_0x100d46(0x1ac)](),'finishedAt':_0x4ef31f[_0x100d46(0x14d)](/Finished/)||_0x4ef31f[_0x100d46(0x14d)](/Skipped/)?new Date()[_0x100d46(0x1ac)]():null,'type':_0x411c31[_0x100d46(0x143)],'body':{'lang':_0x411c31['sLFSi'],'code':_0x38ad3f},'name':_0xc6885c,'scopes':_0x3de4a5,'file_name':_0x39a8be,'location':_0x39a8be,'vc_filepath':this['_gitConfigPath']&&_0x590652?path['relative'](this[_0x100d46(0x1d5)],_0x590652):null,'framework':_0x411c31[_0x100d46(0x13d)],'result':_0x2a8815,'failure_reason':_0x504236,'duration_in_ms':_0xd6e873,'failure':failureData['apply'](null,_0x21ba3f),'failure_type':!_0x504236?null:_0x411c31['nBNvj'](getFailureType,_0x504236),'retry_of':_0x20a5ef[_0x100d46(0x198)]||null,'customRerunParam':{'rerun_name':_0xc6885c}};_0x411c31[_0x100d46(0x1d6)](_0x4ef31f,_0x411c31[_0x100d46(0x18f)])&&!_0x43c0de[_0x100d46(0x15c)]&&(_0x43c0de[_0x100d46(0x15c)]=_0x43c0de['finishedAt']);const _0x57145c=_0x43c0de[_0x100d46(0x182)]&&_0x43c0de['failure'][0x0];return _0x57145c&&(_0x43c0de[_0x100d46(0x174)]=_0x57145c[_0x100d46(0x1d4)],_0x43c0de['failure_reason_expanded']=_0x57145c[_0x100d46(0x144)]),(_0x411c31[_0x100d46(0x171)](_0x4ef31f,_0x411c31['YclRw'])||_0x411c31['nETlf'](_0x4ef31f,_0x411c31[_0x100d46(0x18f)]))&&(_0x20a5ef[_0x100d46(0x1a3)]&&(_0x43c0de[_0x100d46(0x1a3)]=_0x20a5ef['hooks'])),_0x43c0de;}catch(_0x212cb9){return logger[_0x100d46(0x194)]('Exception\x20in\x20createTestFrameworkData:\x20'+util[_0x100d46(0x1aa)](_0x212cb9)),null;}}async[a91_0x4ce6bf(0x15e)](_0x496603,_0x320853,_0x43db4e,_0x23b40e){const _0x1676be=a91_0x4ce6bf,_0x48c2f2={'kMyIz':_0x1676be(0x18a),'xCAXG':_0x1676be(0x1a1),'XLnQh':_0x1676be(0x1dc),'QnxAi':_0x1676be(0x193),'qhaGJ':_0x1676be(0x13c),'tZvjO':function(_0x58166d,_0x300679){return _0x58166d===_0x300679;},'FQLhG':_0x1676be(0x19a),'QCHQY':function(_0x16e2e4,_0x4f9e4e){return _0x16e2e4>_0x4f9e4e;},'FBREA':_0x1676be(0x131),'gdiUS':function(_0x11e0f3,_0x139964){return _0x11e0f3(_0x139964);},'dJyZF':_0x1676be(0x155),'pPgJd':'passed','fuHUt':'hook','lfUxw':_0x1676be(0x1a7),'uKlYm':'jest','dVYyK':function(_0x590690,_0x437335){return _0x590690===_0x437335;},'BegWo':_0x1676be(0x1ab)};logger[_0x1676be(0x194)](_0x1676be(0x135)+_0x43db4e+',\x20hookUUID:\x20'+_0x320853+_0x1676be(0x1be)+_0x23b40e);try{if(!_0x496603)return logger['debug'](_0x48c2f2['kMyIz']),null;if(this['isJestInternalHook'](_0x496603))return null;await this[_0x1676be(0x1ae)]();let _0x1f5ee1=null;try{_0x1f5ee1=this['getRootParentFile'](_0x496603);if(_0x1f5ee1&&_0x1f5ee1[_0x1676be(0x1d0)](_0x48c2f2[_0x1676be(0x13f)]))return null;if(_0x1f5ee1&&_0x1f5ee1[_0x1676be(0x1d0)](_0x48c2f2[_0x1676be(0x141)]))return null;}catch(_0x2dea97){logger[_0x1676be(0x194)](_0x1676be(0x197)+util['format'](_0x2dea97));}const _0x4f7753=this['getName'](_0x496603),_0x5158bb=_0x496603[_0x1676be(0x14e)]||_0x48c2f2[_0x1676be(0x1ce)],_0x506dd8=HOOK_TYPES_MAP[_0x5158bb]||_0x5158bb['toUpperCase'](),_0xceb2c3=_0x496603[_0x1676be(0x1d1)]&&_0x496603[_0x1676be(0x1d1)][_0x1676be(0x170)]?_0x496603[_0x1676be(0x1d1)][_0x1676be(0x170)]:'';let _0x31fe9a=_0x48c2f2[_0x1676be(0x16c)],_0x4920a0=null,_0x221da9=null,_0x45cc80=null,_0x386822=null;_0x48c2f2[_0x1676be(0x1af)](_0x43db4e,_0x48c2f2[_0x1676be(0x19b)])&&(_0x386822=new Date()[_0x1676be(0x1ac)](),_0x496603[_0x1676be(0x17c)]&&_0x48c2f2[_0x1676be(0x1b0)](_0x496603[_0x1676be(0x17c)]['length'],0x0)?(_0x31fe9a=_0x48c2f2[_0x1676be(0x1c3)],_0x221da9=util['inspect'](_0x496603[_0x1676be(0x17c)][0x0]),_0x4920a0=_0x48c2f2[_0x1676be(0x1bf)](getFailureType,_0x221da9),_0x45cc80=failureData[_0x1676be(0x188)](null,[_0x496603[_0x1676be(0x17c)],_0x48c2f2[_0x1676be(0x1df)]])):_0x31fe9a=_0x48c2f2[_0x1676be(0x12d)]);const _0x18ddaa={'uuid':_0x320853,'type':_0x48c2f2['fuHUt'],'hook_type':_0x506dd8,'name':_0x4f7753,'body':{'lang':_0x48c2f2[_0x1676be(0x134)],'code':_0x496603['fn']?_0x496603['fn'][_0x1676be(0x1d2)]():null},'tags':[],'test_run_id':_0x23b40e,'scope':_0xceb2c3,'scopes':[_0xceb2c3],'file_name':_0x1f5ee1,'location':_0x1f5ee1,'vc_filepath':this['_gitConfigPath']&&_0x1f5ee1?path['relative'](this[_0x1676be(0x1d5)],_0x1f5ee1):null,'result':_0x31fe9a,'started_at':_0x496603[_0x1676be(0x16d)]||new Date()['toISOString'](),'finished_at':_0x386822,'failure_type':_0x4920a0,'failure_reason':_0x221da9,'failure_data':_0x45cc80,'framework':_0x48c2f2[_0x1676be(0x14b)]};return _0x48c2f2[_0x1676be(0x1c2)](_0x43db4e,_0x48c2f2[_0x1676be(0x1cd)])&&(hooksMap[_0x23b40e]?hooksMap[_0x23b40e][_0x1676be(0x14a)](_0x18ddaa):hooksMap[_0x23b40e]=[_0x18ddaa]),_0x18ddaa;}catch(_0xd0f24d){return logger[_0x1676be(0x194)](_0x1676be(0x181)+util[_0x1676be(0x1aa)](_0xd0f24d)),null;}}[a91_0x4ce6bf(0x140)](_0x2ce516,_0x2a8079,_0x893da6){const _0x3e7ba3=a91_0x4ce6bf,_0x40afba={'WfWmD':function(_0x4806cd,_0x16cc9c){return _0x4806cd>_0x16cc9c;},'FzuFg':_0x3e7ba3(0x131),'CFMmH':function(_0x578828,_0x220ba5){return _0x578828(_0x220ba5);},'jRmpW':_0x3e7ba3(0x155),'APyoP':_0x3e7ba3(0x132)};try{const _0xe57a86=hooksMap[_0x2ce516];if(!_0xe57a86)return null;const _0x6f8a32=_0xe57a86[_0x3e7ba3(0x167)](_0x579973=>_0x579973[_0x3e7ba3(0x1c7)]===_0x2a8079);if(!_0x6f8a32)return null;return _0x6f8a32[_0x3e7ba3(0x1bd)]=new Date()['toISOString'](),_0x893da6[_0x3e7ba3(0x17c)]&&_0x40afba['WfWmD'](_0x893da6[_0x3e7ba3(0x17c)]['length'],0x0)?(_0x6f8a32[_0x3e7ba3(0x152)]=_0x40afba['FzuFg'],_0x6f8a32[_0x3e7ba3(0x1c5)]=util[_0x3e7ba3(0x175)](_0x893da6[_0x3e7ba3(0x17c)][0x0]),_0x6f8a32[_0x3e7ba3(0x1c4)]=_0x40afba[_0x3e7ba3(0x187)](getFailureType,_0x6f8a32['failure_reason']),_0x6f8a32[_0x3e7ba3(0x1bc)]=failureData[_0x3e7ba3(0x188)](null,[_0x893da6[_0x3e7ba3(0x17c)],_0x40afba[_0x3e7ba3(0x159)]])):_0x6f8a32[_0x3e7ba3(0x152)]=_0x40afba[_0x3e7ba3(0x1cb)],_0x6f8a32;}catch(_0x5a49ae){return logger[_0x3e7ba3(0x194)](_0x3e7ba3(0x160)+util[_0x3e7ba3(0x1aa)](_0x5a49ae)),null;}}[a91_0x4ce6bf(0x1da)](_0x2e1fbd){const _0x54d671=a91_0x4ce6bf,_0x1e5c99={};_0x1e5c99[_0x54d671(0x19c)]=function(_0x332152,_0x3327d8){return _0x332152!==_0x3327d8;},_0x1e5c99['aIFdL']=_0x54d671(0x155),_0x1e5c99['TtGGv']=_0x54d671(0x1c0);const _0x217e49=_0x1e5c99;if(_0x217e49['ekbRw'](_0x2e1fbd['type'],_0x217e49[_0x54d671(0x18b)]))return'\x22'+_0x2e1fbd[_0x54d671(0x14e)]+_0x54d671(0x1b3)+(_0x2e1fbd[_0x54d671(0x1d1)]&&_0x2e1fbd['parent'][_0x54d671(0x170)])+'\x22';return _0x2e1fbd[_0x54d671(0x170)]||_0x217e49[_0x54d671(0x1b1)];}['getHierarchy'](_0x24f134){const _0x21d5d5=a91_0x4ce6bf,_0x1bfac9={};_0x1bfac9[_0x21d5d5(0x1b5)]=function(_0x123433,_0x461e4e){return _0x123433!==_0x461e4e;},_0x1bfac9['SQnfH']=function(_0x2ebeae,_0x42f52a){return _0x2ebeae!==_0x42f52a;},_0x1bfac9[_0x21d5d5(0x1c8)]=_0x21d5d5(0x1cf);const _0x3d42a6=_0x1bfac9,_0x53951b=[];if(_0x24f134&&_0x24f134['parent']){let _0x1ed026=_0x24f134['parent'];while(_0x1ed026&&_0x1ed026[_0x21d5d5(0x170)]&&_0x3d42a6[_0x21d5d5(0x1b5)](_0x1ed026[_0x21d5d5(0x170)],'')&&_0x3d42a6['SQnfH'](_0x1ed026[_0x21d5d5(0x170)],_0x3d42a6[_0x21d5d5(0x1c8)])){_0x53951b['push'](_0x1ed026['name']),_0x1ed026=_0x1ed026[_0x21d5d5(0x1d1)];}}return _0x53951b[_0x21d5d5(0x154)](),_0x53951b;}[a91_0x4ce6bf(0x184)](_0x2b7944){const _0x32c509=a91_0x4ce6bf;if(_0x2b7944[_0x32c509(0x12b)])try{const _0x216d5f=stackTrace[_0x32c509(0x169)][_0x32c509(0x18c)](stackTrace,_0x2b7944[_0x32c509(0x12b)]);if(_0x216d5f[0x0]&&_0x216d5f[0x0]['getFileName'])return _0x216d5f[0x0][_0x32c509(0x18d)]();}catch(_0xf22ac0){logger[_0x32c509(0x194)](_0x32c509(0x177)+util[_0x32c509(0x1aa)](_0xf22ac0));}if(_0x2b7944[_0x32c509(0x17b)])return _0x2b7944[_0x32c509(0x17b)];return null;}['isJestInternalHook'](_0x50fca0){const _0x165721=a91_0x4ce6bf,_0x220455={};_0x220455[_0x165721(0x191)]='jest-circus';const _0x4e4268=_0x220455;try{const _0xcba2a1=this[_0x165721(0x184)](_0x50fca0);if(_0xcba2a1&&_0xcba2a1[_0x165721(0x1d0)](_0x4e4268['Ptykm']))return!![];}catch(_0x2fda03){logger[_0x165721(0x194)]('Exception\x20in\x20checking\x20if\x20hook\x20is\x20internal:\x20'+util[_0x165721(0x1aa)](_0x2fda03));}return![];}[a91_0x4ce6bf(0x1d9)](_0x29ae90=null){const _0x490f6c=a91_0x4ce6bf;try{const _0x304569=_0x29ae90||global[_0x490f6c(0x156)]||{};if(global[_0x490f6c(0x17a)])return global['__jestCurrentTestIdentifier'];if(_0x304569?.[_0x490f6c(0x142)]?.[_0x490f6c(0x178)])return _0x304569[_0x490f6c(0x142)]['testAnalyticsId'];if(_0x304569?.[_0x490f6c(0x142)]?.['id'])return _0x304569['currentTest']['id'];return null;}catch(_0x4ef6d2){return logger[_0x490f6c(0x194)](_0x490f6c(0x13e)+util[_0x490f6c(0x1aa)](_0x4ef6d2)),null;}}async['configureGit'](){const _0x202940=a91_0x4ce6bf,_0x91fbd={'SAbPj':function(_0x50529c){return _0x50529c();}};if(this[_0x202940(0x149)])return this[_0x202940(0x1d5)];const _0x18aff6=await _0x91fbd[_0x202940(0x186)](getGitMetaData);_0x18aff6&&(this['_gitConfigPath']=_0x18aff6['root']),this[_0x202940(0x149)]=!![];}[a91_0x4ce6bf(0x1d7)](_0x4fa220){hooksMap[_0x4fa220]&&delete hooksMap[_0x4fa220];}[a91_0x4ce6bf(0x139)](_0x8ddccf){const _0x16331f=a91_0x4ce6bf,_0x414bc8={'aUVJS':_0x16331f(0x1a1),'wFCVL':function(_0x2697e2,_0x38b99c){return _0x2697e2(_0x38b99c);},'VrYKv':_0x16331f(0x1c1)};if(_0x8ddccf[_0x16331f(0x17b)])return _0x8ddccf[_0x16331f(0x17b)];if(_0x8ddccf[_0x16331f(0x12b)]){try{const _0x284c0a=stackTrace[_0x16331f(0x169)](_0x8ddccf['asyncError']);if(_0x284c0a[0x0]&&_0x284c0a[0x0][_0x16331f(0x18d)]){const _0x3024b1=_0x284c0a[0x0][_0x16331f(0x18d)]();if(_0x3024b1&&!_0x3024b1[_0x16331f(0x1d0)](_0x414bc8[_0x16331f(0x1a4)]))return _0x3024b1;}}catch(_0x12d9d7){logger[_0x16331f(0x194)](_0x16331f(0x1ba)+util[_0x16331f(0x1aa)](_0x12d9d7));}if(_0x8ddccf[_0x16331f(0x12b)]['stack']){const _0x49918d=_0x8ddccf[_0x16331f(0x12b)][_0x16331f(0x12f)][_0x16331f(0x157)]('\x0a');for(const _0x1fe52d of _0x49918d){const _0x1448a9=_0x1fe52d[_0x16331f(0x14d)](/at (.+?):\d+:\d+/);if(_0x1448a9&&_0x1448a9[0x1]&&!_0x1448a9[0x1]['includes'](_0x414bc8[_0x16331f(0x1a4)]))return _0x1448a9[0x1];}}}let _0x38fae5=_0x8ddccf[_0x16331f(0x1d1)];while(_0x38fae5){if(_0x38fae5[_0x16331f(0x17b)])return _0x38fae5[_0x16331f(0x17b)];if(_0x38fae5[_0x16331f(0x12b)])try{const _0x51f6d0=stackTrace[_0x16331f(0x169)](_0x38fae5[_0x16331f(0x12b)]);if(_0x51f6d0[0x0]&&_0x51f6d0[0x0][_0x16331f(0x18d)]){const _0x3b5edd=_0x51f6d0[0x0][_0x16331f(0x18d)]();if(_0x3b5edd&&!_0x3b5edd[_0x16331f(0x1d0)](_0x414bc8[_0x16331f(0x1a4)]))return _0x3b5edd;}}catch(_0x56263a){}_0x38fae5=_0x38fae5[_0x16331f(0x1d1)];}try{const _0x5652d2=_0x414bc8[_0x16331f(0x16b)](require,_0x414bc8[_0x16331f(0x165)]);if(_0x5652d2&&_0x5652d2[_0x16331f(0x153)]){const _0x54b2f7=_0x5652d2[_0x16331f(0x153)]();if(_0x54b2f7&&_0x54b2f7[_0x16331f(0x196)])return _0x54b2f7[_0x16331f(0x196)];}}catch(_0x43d8ca){logger[_0x16331f(0x194)](_0x16331f(0x15a)+util[_0x16331f(0x1aa)](_0x43d8ca));}return null;}['createJestTestIdentifier'](_0x1b5fe2){const _0x4b8c3d=a91_0x4ce6bf,_0xf2ea1a={};_0xf2ea1a['QjklW']=_0x4b8c3d(0x17d),_0xf2ea1a[_0x4b8c3d(0x1a9)]=function(_0x33a7cf,_0x3fc917){return _0x33a7cf!==_0x3fc917;},_0xf2ea1a[_0x4b8c3d(0x146)]=_0x4b8c3d(0x1cf),_0xf2ea1a[_0x4b8c3d(0x129)]='jest-circus',_0xf2ea1a[_0x4b8c3d(0x17e)]='md5',_0xf2ea1a[_0x4b8c3d(0x1a2)]=_0x4b8c3d(0x1b2);const _0x22b714=_0xf2ea1a;try{if(!_0x1b5fe2)return logger[_0x4b8c3d(0x166)](_0x22b714[_0x4b8c3d(0x164)]),null;const _0x51f195=_0x1b5fe2[_0x4b8c3d(0x172)]||_0x1b5fe2[_0x4b8c3d(0x170)]||_0x1b5fe2['title']||_0x1b5fe2['displayName'];let _0x5bae90=_0x51f195;if(_0x1b5fe2[_0x4b8c3d(0x1d1)]&&_0x1b5fe2[_0x4b8c3d(0x1d1)][_0x4b8c3d(0x170)]&&_0x22b714[_0x4b8c3d(0x1a9)](_0x1b5fe2[_0x4b8c3d(0x1d1)][_0x4b8c3d(0x170)],_0x22b714[_0x4b8c3d(0x146)])){const _0x3a9676=_0x1b5fe2[_0x4b8c3d(0x170)]||_0x1b5fe2['title'];_0x3a9676&&(_0x5bae90=_0x1b5fe2[_0x4b8c3d(0x1d1)][_0x4b8c3d(0x170)]+'\x20'+_0x3a9676);}let _0x12b605=_0x1b5fe2[_0x4b8c3d(0x196)];if(!_0x12b605&&_0x1b5fe2['asyncError']){try{const _0x4f6af3=stackTrace[_0x4b8c3d(0x169)](_0x1b5fe2['asyncError']);if(_0x4f6af3[0x0]&&_0x4f6af3[0x0][_0x4b8c3d(0x18d)]){const _0xe1b890=_0x4f6af3[0x0][_0x4b8c3d(0x18d)]();_0xe1b890&&!_0xe1b890[_0x4b8c3d(0x1d0)](_0x22b714[_0x4b8c3d(0x129)])&&(_0x12b605=_0xe1b890);}}catch(_0x1e414a){logger[_0x4b8c3d(0x194)]('[jestUtils]\x20Error\x20parsing\x20asyncError\x20stack\x20trace:\x20'+util[_0x4b8c3d(0x1aa)](_0x1e414a));}if(!_0x12b605&&_0x1b5fe2['asyncError'][_0x4b8c3d(0x12f)]){const _0x1231b1=_0x1b5fe2[_0x4b8c3d(0x12b)][_0x4b8c3d(0x12f)]['split']('\x0a');for(const _0x115272 of _0x1231b1){const _0x1f9959=_0x115272[_0x4b8c3d(0x14d)](/at (.+?):\d+:\d+/);if(_0x1f9959&&_0x1f9959[0x1]&&!_0x1f9959[0x1][_0x4b8c3d(0x1d0)](_0x22b714[_0x4b8c3d(0x129)])){_0x12b605=_0x1f9959[0x1];break;}}}}const _0x512fa9=_0x12b605+'::'+_0x5bae90,_0x2a9c7b=crypto[_0x4b8c3d(0x185)](_0x22b714['rnFTl'])['update'](_0x512fa9)[_0x4b8c3d(0x150)](_0x22b714[_0x4b8c3d(0x1a2)])['substring'](0x0,0x8),_0xf6a59=process['pid']+_0x4b8c3d(0x163)+_0x2a9c7b;return logger['debug'](_0x4b8c3d(0x14c)+_0xf6a59+_0x4b8c3d(0x16e)+_0x512fa9),_0xf6a59;}catch(_0x5185f){return logger[_0x4b8c3d(0x166)](_0x4b8c3d(0x1d8)+util[_0x4b8c3d(0x1aa)](_0x5185f)),null;}}['createIdentifierFromJestTest'](_0x33fcdc){const _0x334ead=a91_0x4ce6bf,_0x28651a={};_0x28651a['hWMSj']=_0x334ead(0x1a5);const _0x4c95b9=_0x28651a;if(!_0x33fcdc)return logger[_0x334ead(0x194)](_0x4c95b9['hWMSj']),null;const _0x1aec8c=this['extractTestFilePath'](_0x33fcdc),_0x56dea6={};_0x56dea6[_0x334ead(0x170)]=_0x33fcdc[_0x334ead(0x170)]||_0x33fcdc[_0x334ead(0x12e)],_0x56dea6[_0x334ead(0x1d1)]=_0x33fcdc[_0x334ead(0x1d1)],_0x56dea6[_0x334ead(0x196)]=_0x1aec8c,_0x56dea6['asyncError']=_0x33fcdc[_0x334ead(0x12b)];const _0x3f765e=_0x56dea6;return this[_0x334ead(0x1a8)](_0x3f765e);}['recreateIdentifierFromTestInfo'](_0xce3adc){const _0x575d5a=a91_0x4ce6bf,_0x1dfc5a={};_0x1dfc5a[_0x575d5a(0x137)]='[jestUtils]\x20No\x20testInfo\x20provided\x20for\x20recreation';const _0x367c70=_0x1dfc5a;if(!_0xce3adc)return logger[_0x575d5a(0x194)](_0x367c70[_0x575d5a(0x137)]),null;if(_0xce3adc[_0x575d5a(0x1b4)])return logger[_0x575d5a(0x194)](_0x575d5a(0x15f)+_0xce3adc[_0x575d5a(0x1b4)]),_0xce3adc[_0x575d5a(0x1b4)];return this[_0x575d5a(0x1a8)](_0xce3adc);}}module[a91_0x4ce6bf(0x1ca)]=o11yClassErrorHandler(JestUtils,[a91_0x4ce6bf(0x1ae),'getHierarchy',a91_0x4ce6bf(0x184),a91_0x4ce6bf(0x1da),'isJestInternalHook',a91_0x4ce6bf(0x1d9),a91_0x4ce6bf(0x147),a91_0x4ce6bf(0x15e),a91_0x4ce6bf(0x140),a91_0x4ce6bf(0x1d7),a91_0x4ce6bf(0x139),'createJestTestIdentifier',a91_0x4ce6bf(0x1c9),a91_0x4ce6bf(0x1cc)]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a92_0x5543cd=a92_0x4c47;(function(_0x108d01,_0x38756a){const _0x5da641=a92_0x4c47,_0xbea05=_0x108d01();while(!![]){try{const _0x10f717=-parseInt(_0x5da641(0x10b))/0x1+parseInt(_0x5da641(0x109))/0x2+-parseInt(_0x5da641(0xfc))/0x3+-parseInt(_0x5da641(0x11d))/0x4+parseInt(_0x5da641(0x106))/0x5*(-parseInt(_0x5da641(0x11b))/0x6)+parseInt(_0x5da641(0x10d))/0x7+parseInt(_0x5da641(0x121))/0x8*(parseInt(_0x5da641(0x125))/0x9);if(_0x10f717===_0x38756a)break;else _0xbea05['push'](_0xbea05['shift']());}catch(_0x2d7758){_0xbea05['push'](_0xbea05['shift']());}}}(a92_0x11f9,0x4e260));function a92_0x4c47(_0x5b902f,_0x58b5cd){const _0x11f963=a92_0x11f9();return a92_0x4c47=function(_0x4c4706,_0x3b377c){_0x4c4706=_0x4c4706-0xf0;let _0x5d5efb=_0x11f963[_0x4c4706];return _0x5d5efb;},a92_0x4c47(_0x5b902f,_0x58b5cd);}const fs=require('fs'),path=require(a92_0x5543cd(0x113)),{default:BrowserStackSetup}=require(a92_0x5543cd(0x108)),helper=require(a92_0x5543cd(0x10a)),PerformanceTester=require(a92_0x5543cd(0xf1)),PerformanceEvents=require(a92_0x5543cd(0xf6))[a92_0x5543cd(0x11c)],utilities=require('../../helpers/utilities'),{parallelVanillaRun}=require(a92_0x5543cd(0x120)),TestHubHandler=require(a92_0x5543cd(0xf3));async function run(_0x2d05df,_0x35d81d,_0x5376d3){const _0x1c60a4=a92_0x5543cd,_0x4348aa={'PxrUp':_0x1c60a4(0xf4),'qumNv':function(_0x19ff94,_0x458c80){return _0x19ff94(_0x458c80);},'xYSIH':_0x1c60a4(0x119),'soEGl':function(_0x486941,_0x4a7012){return _0x486941(_0x4a7012);},'XjfaC':_0x1c60a4(0x100),'hqVCQ':function(_0x22c164,_0x216320){return _0x22c164>_0x216320;},'ugRKA':function(_0x58f8ff,_0x3af5a2){return _0x58f8ff*_0x3af5a2;},'MpaBx':function(_0x51ce2c,_0x20a4c,_0x344b55){return _0x51ce2c(_0x20a4c,_0x344b55);}};await _0x5376d3[_0x1c60a4(0x116)](_0x2d05df),await helper[_0x1c60a4(0x103)](_0x5376d3[_0x1c60a4(0x112)]);const _0x54b542=[];if(helper[_0x1c60a4(0xf0)](_0x2d05df['_'][0x1]))throw _0x4348aa[_0x1c60a4(0xff)](Error,_0x4348aa['xYSIH']);const _0x4fd3fa=path[_0x1c60a4(0xf2)](process[_0x1c60a4(0x114)](),_0x2d05df['_'][0x1]);if(!fs['existsSync'](_0x4fd3fa))throw _0x4348aa[_0x1c60a4(0xff)](Error,_0x1c60a4(0x104)+_0x2d05df['_'][0x1]+_0x1c60a4(0x107));if(!_0x5376d3['config'])throw _0x4348aa[_0x1c60a4(0x111)](Error,_0x4348aa['XjfaC']);const _0x1b2f8b=helper['useW3C'](_0x5376d3[_0x1c60a4(0x112)]);_0x5376d3[_0x1c60a4(0x112)][_0x1c60a4(0xfd)]&&_0x4348aa[_0x1c60a4(0xf7)](_0x5376d3[_0x1c60a4(0x112)][_0x1c60a4(0xfd)][_0x1c60a4(0x118)],0x0)&&_0x5376d3[_0x1c60a4(0x112)][_0x1c60a4(0xfd)]['forEach']((_0x2ced98,_0xe296f6)=>{const _0x25e2c4=_0x1c60a4;_0x1b2f8b?_0x54b542[_0x25e2c4(0x115)](helper[_0x25e2c4(0x10e)](_0x5376d3[_0x25e2c4(0x112)],_0x4348aa[_0x25e2c4(0x123)],_0xe296f6)):_0x54b542[_0x25e2c4(0x115)](helper[_0x25e2c4(0x11e)](_0x5376d3[_0x25e2c4(0x112)],_0x4348aa[_0x25e2c4(0x123)],_0xe296f6));});let _0xbf39d7,_0x487da7;const _0x112e76=[];if(_0x4348aa[_0x1c60a4(0xf7)](_0x54b542['length'],0x0))_0x54b542['forEach']((_0x401606,_0x585de)=>{const _0x5f19d9=_0x1c60a4,_0x382b6f={};_0x382b6f[_0x5f19d9(0x10c)]=_0x585de,_0xbf39d7={'server':helper[_0x5f19d9(0x105)](_0x5376d3[_0x5f19d9(0x112)]),'proxySettings':_0x5376d3[_0x5f19d9(0x112)][_0x5f19d9(0x124)],'platform':helper[_0x5f19d9(0x11a)](_0x401606),'platformCaps':Object[_0x5f19d9(0x117)](_0x382b6f,_0x5376d3[_0x5f19d9(0x112)][_0x5f19d9(0xfd)][_0x585de])};const _0xd07de2={'capability':_0x401606,..._0xbf39d7};_0xd07de2[_0x5f19d9(0xfa)]=_0x4fd3fa,_0xd07de2[_0x5f19d9(0x101)]=_0x35d81d;const _0x1203eb={};_0x1203eb[_0x5f19d9(0x10f)]=_0xd07de2,_0x487da7=_0x1203eb,_0x112e76[_0x5f19d9(0x115)](_0x487da7);});else{let _0x20548c;_0x1b2f8b?_0x20548c=helper[_0x1c60a4(0x10e)](_0x5376d3['config'],_0x4348aa[_0x1c60a4(0x123)],0x0):_0x20548c=helper[_0x1c60a4(0x11e)](_0x5376d3[_0x1c60a4(0x112)],_0x4348aa[_0x1c60a4(0x123)],0x0);_0xbf39d7={'server':helper['getHubUrl'](_0x5376d3[_0x1c60a4(0x112)]),'proxySettings':_0x5376d3[_0x1c60a4(0x112)][_0x1c60a4(0x124)]};const _0x26a4d1={'capability':_0x20548c,..._0xbf39d7};_0x26a4d1['file']=_0x4fd3fa,_0x26a4d1[_0x1c60a4(0x101)]=_0x35d81d;const _0x37db73={};_0x37db73['configuration']=_0x26a4d1,_0x487da7=_0x37db73,_0x112e76[_0x1c60a4(0x115)](_0x487da7);}const _0x3a46b3=await TestHubHandler[_0x1c60a4(0x122)](_0x4348aa[_0x1c60a4(0x123)],_0x5376d3),_0x79b101=_0x4348aa[_0x1c60a4(0xf8)](_0x5376d3[_0x1c60a4(0x112)]['platforms']['length']||0x1,_0x5376d3[_0x1c60a4(0x112)][_0x1c60a4(0x102)]||0x1);PerformanceTester[_0x1c60a4(0xf5)](PerformanceEvents[_0x1c60a4(0xf9)]),_0x4348aa[_0x1c60a4(0x110)](parallelVanillaRun,_0x112e76,_0x79b101)['then'](_0x4c410d=>{})[_0x1c60a4(0xfe)](async()=>{const _0xd86345=_0x1c60a4;PerformanceTester['start'](PerformanceEvents[_0xd86345(0xfb)]),await utilities['finalExecution'](_0x5376d3);});}function a92_0x11f9(){const _0xb8fa5f=['MpaBx','soEGl','config','path','cwd','push','initialize','assign','length','File\x20path\x20is\x20required','getPlatformName','2041770rIrhDM','EVENTS','2088788kvFUoo','modifyBrowserStackCaps','exports','../test-runner','24SPFRNh','launchBuild','PxrUp','proxySettings','4779279DgZJrU','isUndefined','../../helpers/performance/performance-tester','join','../../helpers/testhub/testhubHandler','vanilla','end','../../helpers/performance/constants','hqVCQ','ugRKA','SDK_SETUP','file','SDK_CLEANUP','1751202ZySXzn','platforms','finally','qumNv','Config\x20yml\x20is\x20required','args','parallelsPerPlatform','handleApp','File\x20','getHubUrl','5SPTDxF','\x20doesn\x27t\x20exist','../../helpers/BrowserStackSetup','394188OYszPx','../../helpers/helper','121755Ojtjrf','index','685230ObHplP','modifyBrowserStackW3CCaps','configuration'];a92_0x11f9=function(){return _0xb8fa5f;};return a92_0x11f9();}module[a92_0x5543cd(0x11f)]=run;
|
package/src/browserStackSdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0xb4ee42=a93_0x3df8;(function(_0x1fb79e,_0x4cf970){const _0x4daeab=a93_0x3df8,_0x5b8055=_0x1fb79e();while(!![]){try{const _0xbd5f08=parseInt(_0x4daeab(0x15f))/0x1*(-parseInt(_0x4daeab(0x160))/0x2)+parseInt(_0x4daeab(0x162))/0x3+parseInt(_0x4daeab(0x168))/0x4*(-parseInt(_0x4daeab(0x150))/0x5)+-parseInt(_0x4daeab(0x167))/0x6+parseInt(_0x4daeab(0x16b))/0x7*(-parseInt(_0x4daeab(0x16a))/0x8)+parseInt(_0x4daeab(0x15e))/0x9+-parseInt(_0x4daeab(0x154))/0xa*(-parseInt(_0x4daeab(0x151))/0xb);if(_0xbd5f08===_0x4cf970)break;else _0x5b8055['push'](_0x5b8055['shift']());}catch(_0x2d584a){_0x5b8055['push'](_0x5b8055['shift']());}}}(a93_0x4597,0xc2646));function a93_0x3df8(_0x39452d,_0x22a08b){const _0x4597b5=a93_0x4597();return a93_0x3df8=function(_0x3df81c,_0x8574d0){_0x3df81c=_0x3df81c-0x149;let _0x1e48ea=_0x4597b5[_0x3df81c];return _0x1e48ea;},a93_0x3df8(_0x39452d,_0x22a08b);}const TestMetadata=require('./helpers/metadata');class BrowserStackSdk{static['getCurrentPlatform'](){const _0x189ae8=a93_0x3df8,_0x1af0f7={};_0x1af0f7[_0x189ae8(0x15d)]='os_version',_0x1af0f7['qcgvU']=_0x189ae8(0x14b),_0x1af0f7[_0x189ae8(0x156)]=_0x189ae8(0x14f),_0x1af0f7[_0x189ae8(0x14d)]=_0x189ae8(0x166),_0x1af0f7[_0x189ae8(0x157)]=_0x189ae8(0x163),_0x1af0f7[_0x189ae8(0x161)]=_0x189ae8(0x14c),_0x1af0f7[_0x189ae8(0x164)]=_0x189ae8(0x15a),_0x1af0f7[_0x189ae8(0x15c)]='deviceName',_0x1af0f7[_0x189ae8(0x158)]=_0x189ae8(0x169),_0x1af0f7[_0x189ae8(0x15b)]=_0x189ae8(0x153),_0x1af0f7[_0x189ae8(0x155)]=_0x189ae8(0x16c),_0x1af0f7['Jxzjl']=_0x189ae8(0x14e),_0x1af0f7[_0x189ae8(0x165)]=_0x189ae8(0x149);const _0x3735a0=_0x1af0f7,_0x1d91e7={};if(global['__platformCaps']){const _0x4757c3=global['__platformCaps'],_0x3cdf3a=_0x4757c3[_0x3735a0[_0x189ae8(0x15d)]]||_0x4757c3[_0x3735a0[_0x189ae8(0x152)]],_0xd480b9=_0x4757c3[_0x3735a0[_0x189ae8(0x156)]]||_0x4757c3[_0x3735a0[_0x189ae8(0x14d)]],_0x35f0f3=_0x4757c3[_0x3735a0[_0x189ae8(0x157)]]||_0x4757c3[_0x3735a0['shyIv']],_0x3fb8ee=_0x4757c3[_0x3735a0[_0x189ae8(0x164)]]||_0x4757c3[_0x3735a0[_0x189ae8(0x15c)]],_0x2fe0bf=_0x4757c3[_0x3735a0[_0x189ae8(0x158)]]||_0x4757c3[_0x3735a0[_0x189ae8(0x15b)]],_0x1fd246=_0x4757c3[_0x3735a0[_0x189ae8(0x155)]]||_0x4757c3[_0x3735a0[_0x189ae8(0x159)]];_0x4757c3['os']&&(_0x1d91e7['os']=_0x4757c3['os']),_0x3cdf3a&&(_0x1d91e7[_0x3735a0[_0x189ae8(0x152)]]=_0x3cdf3a),_0xd480b9&&(_0x1d91e7[_0x3735a0[_0x189ae8(0x14d)]]=_0xd480b9),_0x35f0f3&&(_0x1d91e7[_0x3735a0[_0x189ae8(0x161)]]=_0x35f0f3),_0x3fb8ee&&(_0x1d91e7[_0x3735a0[_0x189ae8(0x15c)]]=_0x3fb8ee),_0x2fe0bf&&(_0x1d91e7[_0x3735a0[_0x189ae8(0x15b)]]=_0x2fe0bf),_0x1fd246&&(_0x1d91e7[_0x3735a0['Jxzjl']]=_0x1fd246),_0x4757c3[_0x3735a0[_0x189ae8(0x165)]]&&(_0x1d91e7[_0x3735a0[_0x189ae8(0x165)]]=_0x4757c3[_0x3735a0['CmLtq']]);}return _0x1d91e7;}static['setTestMetadata'](_0xd9559e={}){TestMetadata['set'](_0xd9559e);}}function a93_0x4597(){const _0x20e36d=['osVersion','browserVersion','afrhU','platformVersion','browser','177055SCGfuV','23833898obSPNP','qcgvU','platformName','10FGFCEC','nxueu','qLfjU','jAePU','dOfck','Jxzjl','device','lvAMg','kUbTW','BdawV','5688684SaRBJV','155tqfPkj','3162JQXSfw','shyIv','2400153smFpVq','browser_version','bOnHM','CmLtq','browserName','5833536SmDNcR','16alPlTU','platform','2887320ZtTxpW','28TKlEDj','platform_version','customVariables','exports'];a93_0x4597=function(){return _0x20e36d;};return a93_0x4597();}module[a93_0xb4ee42(0x14a)]=BrowserStackSdk;
|