browserstack-node-sdk 1.42.3 → 1.42.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/cucumber-sessionDetails.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/playwright-patcher.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_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/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/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/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/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/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.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 a10_0x3a29(){const _0x1eb34a=['AssertionError','TFfCs','forEach','skipped','uri','8YRZJLZ','HookRunStarted','_gitConfigured','testCaseFinished','zwXKG','feature','12306161POYcie','test','getScenarioExamples','hookId','LNVYY','getHookResult','uploadEventData','../../helpers/helper','ysTaS','aUXJo','backtrace','CUCUMBER','XVwQJ','root','event_type','IfHUO','appendTesthubParams','hooks','CrshR','getCucumberHookType','relative','GDQPg','_gitConfigPath','unknown','CSrAq','132wnZCKC','4069935llnYHz','configureGit','duration_in_ms','result','CaBBy','astNodeIds','ePJXx','push','children','testCaseStartedId','GqCLT','value','every','IGZSt','exports','xLqqJ','YmOKw','GbZcV','failure_reason','tags','message','flatMap','uRFLS','path','1HsQlCI','../../helpers/testhub/utils','AFTER_EACH','winstonLogger','split','cells','SiabF','MliVc','ZImAT','39bKtlPB','20cHDhHr','toISOString','hilIc','9155652sAImjX','FWqAX','ixTdv','scenario','sourceReference','length','join','status','failure_data','sendTestRunEventForCucumber','examples','AZIUe','lKaqE','RcoPL','failure','Exception\x20in\x20getHookRunEventData:\x20','Rntfo','rule','6980085TKlHbx','strip-ansi','timestamp','failed','javascript','util','PIkfD','fHctD','PXDLJ','dmPXV','Exception\x20in\x20sendHook:\x20','getHooksListForTest','ZHdNw','hook_run','match','../playwright/reporter/test-details','../../helpers/logger','toLowerCase','getTestUUID','TestRunFinished','updateTestStatus','format','map','pickleStepId','testStepFinished','kKQWd','tuCWj','failureType','Rslvr','ITWzP','lfpJL','tagExpression','MhVIp','testStepResult','HIckl','finished_at','SrWoK','tableBody','debug','sendHook','xjaVK','failure_type','VhNWQ','getHookRunEventData','SKIPPED','uuid','amxal','hook','name','exception','nanos','aCCfj','FmTAR','find','../../helpers/test-observability/error-handler','11876Bvkbie','cucumber','includes','hWknL','6468011IgynRI','3518318xNHFoP','aJxPx','iXoxH','../../helpers/test-observability/sessionHandler'];a10_0x3a29=function(){return _0x1eb34a;};return a10_0x3a29();}function a10_0x18f3(_0x25a8c1,_0x17d7b2){const _0x3a293d=a10_0x3a29();return a10_0x18f3=function(_0x18f3d6,_0x45ecec){_0x18f3d6=_0x18f3d6-0x1b7;let _0x32781a=_0x3a293d[_0x18f3d6];return _0x32781a;},a10_0x18f3(_0x25a8c1,_0x17d7b2);}const a10_0x59a847=a10_0x18f3;(function(_0x520c18,_0x1e8036){const _0x7e6552=a10_0x18f3,_0x27434d=_0x520c18();while(!![]){try{const _0x40dc81=-parseInt(_0x7e6552(0x211))/0x1*(parseInt(_0x7e6552(0x1d0))/0x2)+-parseInt(_0x7e6552(0x21a))/0x3*(parseInt(_0x7e6552(0x1cb))/0x4)+-parseInt(_0x7e6552(0x230))/0x5+-parseInt(_0x7e6552(0x21e))/0x6+parseInt(_0x7e6552(0x1df))/0x7*(-parseInt(_0x7e6552(0x1d9))/0x8)+parseInt(_0x7e6552(0x1f9))/0x9*(parseInt(_0x7e6552(0x21b))/0xa)+parseInt(_0x7e6552(0x1cf))/0xb*(parseInt(_0x7e6552(0x1f8))/0xc);if(_0x40dc81===_0x1e8036)break;else _0x27434d['push'](_0x27434d['shift']());}catch(_0x47816e){_0x27434d['push'](_0x27434d['shift']());}}}(a10_0x3a29,0xda6ef));const path=require(a10_0x59a847(0x210)),util=require(a10_0x59a847(0x235)),hooksMap={},SessionHandler=require(a10_0x59a847(0x1d3)),testhubUtils=require(a10_0x59a847(0x212)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a10_0x59a847(0x1e6)),logger=require(a10_0x59a847(0x240))[a10_0x59a847(0x214)],{o11yClassErrorHandler}=require(a10_0x59a847(0x1ca)),{FRAMEWORKS}=require('../../helpers/test-observability/constants.js'),TestDetails=require(a10_0x59a847(0x23f));this[a10_0x59a847(0x1db)]=![],this[a10_0x59a847(0x1f5)]=null;class TestObservabilityReporter{async['sendTestRunEventForCucumber'](_0xa9e43c,_0x4615f6,_0x45b8fb,_0x401df6,_0x39e89d){const _0x4fe016=a10_0x59a847,_0x5a55f7={'ITWzP':function(_0x5e6b97,_0x203814){return _0x5e6b97===_0x203814;},'ZHdNw':'FAILED','Nvtyi':_0x4fe016(0x233),'xLqqJ':function(_0x54af7f,_0x5a5683){return _0x54af7f===_0x5a5683;},'SrWoK':_0x4fe016(0x1c0),'OlzeD':_0x4fe016(0x1d7),'OCsWI':function(_0x406b99,_0x5c13cd){return _0x406b99||_0x5c13cd;},'Rslvr':function(_0x5bb0c7,_0x12302c){return _0x5bb0c7+_0x12302c;},'uRFLS':function(_0x46a34e,_0x1edfe9){return _0x46a34e+_0x1edfe9;},'qOeVp':function(_0x46d718,_0x37d5fe){return _0x46d718+_0x37d5fe;},'QzpYx':_0x4fe016(0x1e0),'xjaVK':'javascript','lfpJL':'cucumber','IGZSt':'pending','cEkfD':'passed','YmOKw':function(_0x415ceb,_0x2bfa3e){return _0x415ceb!==_0x2bfa3e;},'PIkfD':function(_0x402721,_0x220d9b){return _0x402721/_0x220d9b;},'CSrAq':_0x4fe016(0x231),'GqCLT':function(_0x3d3fd1,_0x52b717){return _0x3d3fd1(_0x52b717);},'FLxeB':_0x4fe016(0x1f6),'SiabF':_0x4fe016(0x1d4),'lKaqE':'UnhandledError','amxal':_0x4fe016(0x243),'gXzhI':function(_0x1b92f8,_0x8385ce){return _0x1b92f8>_0x8385ce;}},{feature:_0x518910,scenario:_0x5b3ca7,steps:_0x519111,uuid:_0x1f8f43,startedAt:_0x53252,finishedAt:_0x32a65b}=_0x5a55f7['OCsWI'](_0x39e89d,{}),_0x14b254=this['getScenarioExamples'](_0x4615f6,_0x45b8fb);await this[_0x4fe016(0x1fa)]();const _0xc37e36=_0x14b254?_0x5a55f7[_0x4fe016(0x24c)](_0x5a55f7[_0x4fe016(0x20f)](_0x5a55f7['qOeVp'](_0x45b8fb[_0x4fe016(0x1c4)],'\x20('),_0x14b254['join'](',\x20')),')'):_0x45b8fb[_0x4fe016(0x1c4)],_0x3969a1={'uuid':_0x1f8f43,'started_at':_0x53252,'finished_at':_0x32a65b,'type':_0x5a55f7['QzpYx'],'body':{'lang':_0x5a55f7[_0x4fe016(0x1bc)],'code':null},'name':_0xc37e36,'scopes':[_0x518910&&_0x518910[_0x4fe016(0x1c4)]?_0x518910[_0x4fe016(0x1c4)]:''],'tags':_0x45b8fb[_0x4fe016(0x20c)]?_0x45b8fb[_0x4fe016(0x20c)][_0x4fe016(0x246)](({name:_0x30e68e})=>_0x30e68e):[],'file_name':_0x45b8fb[_0x4fe016(0x1d8)],'location':_0x45b8fb[_0x4fe016(0x1d8)],'vc_filepath':this[_0x4fe016(0x1f5)]&&_0x45b8fb[_0x4fe016(0x1d8)]?path[_0x4fe016(0x1f3)](this[_0x4fe016(0x1f5)],_0x45b8fb[_0x4fe016(0x1d8)]):null,'framework':_0x5a55f7[_0x4fe016(0x24e)],'result':_0x5a55f7[_0x4fe016(0x206)],'meta':{'feature':_0x518910,'scenario':_0x5b3ca7,'steps':_0x519111,'examples':_0x14b254},'customRerunParam':{'rerun_name':_0xc37e36}};if(_0xa9e43c[_0x4fe016(0x1dc)]&&_0x519111){const _0x2f913e=_0xa9e43c['testCaseFinished'];let _0x238884=_0x5a55f7['cEkfD'];_0x519111[_0x4fe016(0x205)](_0x3d331f=>{const _0x214dd1=_0x4fe016;if(_0x5a55f7[_0x214dd1(0x24d)](_0x3d331f['result'],_0x5a55f7[_0x214dd1(0x23c)]))return _0x238884=_0x5a55f7['Nvtyi'],_0x2f913e[_0x214dd1(0x22c)]=_0x3d331f[_0x214dd1(0x22c)],_0x2f913e[_0x214dd1(0x24b)]=_0x3d331f[_0x214dd1(0x24b)],![];else{if(_0x5a55f7[_0x214dd1(0x208)](_0x3d331f[_0x214dd1(0x1fc)],_0x5a55f7[_0x214dd1(0x1b8)]))return _0x238884=_0x5a55f7['OlzeD'],![];}return!![];}),_0x3969a1[_0x4fe016(0x1b7)]=new Date()[_0x4fe016(0x21c)](),_0x3969a1[_0x4fe016(0x1fc)]=_0x238884;_0x2f913e[_0x4fe016(0x232)]&&_0x5a55f7[_0x4fe016(0x209)](_0x2f913e['timestamp'][_0x4fe016(0x1c6)],undefined)?_0x3969a1[_0x4fe016(0x1fb)]=_0x5a55f7[_0x4fe016(0x236)](_0x2f913e[_0x4fe016(0x232)][_0x4fe016(0x1c6)],0xf4240):_0x3969a1[_0x4fe016(0x1fb)]=undefined;if(_0x5a55f7[_0x4fe016(0x24d)](_0x238884,_0x5a55f7['Nvtyi'])){const {default:_0x2ddfd8}=await import(_0x5a55f7[_0x4fe016(0x1f7)]);_0x3969a1[_0x4fe016(0x22c)]=[{'backtrace':[_0x2f913e[_0x4fe016(0x22c)]?_0x5a55f7['GqCLT'](_0x2ddfd8,_0x2f913e[_0x4fe016(0x22c)]):_0x5a55f7['FLxeB']]}],_0x3969a1[_0x4fe016(0x20b)]=_0x2f913e['failure']?_0x5a55f7[_0x4fe016(0x203)](_0x2ddfd8,_0x2f913e[_0x4fe016(0x22c)]):_0x2f913e['message'],_0x2f913e[_0x4fe016(0x24b)]&&(_0x3969a1[_0x4fe016(0x1bd)]=_0x2f913e[_0x4fe016(0x24b)]['match'](/AssertError/)?_0x5a55f7[_0x4fe016(0x217)]:_0x5a55f7[_0x4fe016(0x22a)]);}}if(_0x5a55f7[_0x4fe016(0x24d)](_0x401df6,_0x5a55f7[_0x4fe016(0x1c2)])){const _0xd766de=this[_0x4fe016(0x23b)](_0xa9e43c[_0x4fe016(0x1dc)]['testCaseStartedId']);_0xd766de&&_0x5a55f7['gXzhI'](_0xd766de[_0x4fe016(0x223)],0x0)&&(_0x3969a1[_0x4fe016(0x1f0)]=_0xd766de,this[_0x4fe016(0x244)](_0xa9e43c[_0x4fe016(0x1dc)][_0x4fe016(0x202)],_0x3969a1));}testhubUtils[_0x4fe016(0x1ef)](_0x3969a1,_0x401df6,'',FRAMEWORKS[_0x4fe016(0x1ea)]);const _0x4682cc={};_0x4682cc[_0x4fe016(0x1ed)]=_0x401df6,_0x4682cc['test_run']=_0x3969a1;const _0x52043f=_0x4682cc;await SessionHandler[_0x4fe016(0x1e5)](_0x52043f);}[a10_0x59a847(0x244)](_0xbfe160,_0x2fa8c6){const _0x3c255a=a10_0x59a847,_0x249d02={};_0x249d02['fHctD']=function(_0x2d6b0c,_0x27e82d){return _0x2d6b0c instanceof _0x27e82d;},_0x249d02['sREUj']=function(_0x3df514,_0x4c8ec9){return _0x3df514===_0x4c8ec9;},_0x249d02['Rntfo']='failed',_0x249d02[_0x3c255a(0x252)]='0|3|4|2|1';const _0x5c21be=_0x249d02,_0x2dd9ee=hooksMap[_0xbfe160];if(_0x5c21be[_0x3c255a(0x237)](_0x2dd9ee,Array))for(const _0x4f5e51 of _0x2dd9ee){if(_0x5c21be['sREUj'](_0x4f5e51[_0x3c255a(0x1fc)],_0x5c21be[_0x3c255a(0x22e)])){const _0x4ae91c=_0x5c21be[_0x3c255a(0x252)][_0x3c255a(0x215)]('|');let _0x3e84fc=0x0;while(!![]){switch(_0x4ae91c[_0x3e84fc++]){case'0':_0x2fa8c6[_0x3c255a(0x1fc)]=_0x4f5e51[_0x3c255a(0x1fc)];continue;case'1':return _0x2fa8c6;case'2':_0x2fa8c6[_0x3c255a(0x1bd)]=_0x4f5e51[_0x3c255a(0x1bd)];continue;case'3':_0x2fa8c6[_0x3c255a(0x22c)]=_0x4f5e51[_0x3c255a(0x226)];continue;case'4':_0x2fa8c6['failure_reason']=_0x5c21be[_0x3c255a(0x237)](_0x4f5e51[_0x3c255a(0x226)],Array)?_0x4f5e51[_0x3c255a(0x226)][0x0]['backtrace'][_0x3c255a(0x224)]('\x0a'):'';continue;}break;}}};}[a10_0x59a847(0x23b)](_0x34b647){const _0x6ba7d1=a10_0x59a847;if(hooksMap[_0x34b647])return hooksMap[_0x34b647][_0x6ba7d1(0x246)](_0x257d1d=>_0x257d1d['uuid']);return[];}[a10_0x59a847(0x1bf)](_0x19370b,_0x3d9950,_0x23070,_0x6d6683,_0x344a21,_0x44061b){const _0x2d6f7c=a10_0x59a847,_0x1927af={'FWqAX':function(_0x110e44,_0x4b7abd){return _0x110e44===_0x4b7abd;},'PXDLJ':'HookRunFinished','zwXKG':function(_0x5a6582,_0x390f14,_0x1badf5){return _0x5a6582(_0x390f14,_0x1badf5);},'GDQPg':_0x2d6f7c(0x222),'MliVc':_0x2d6f7c(0x1d8),'ZImAT':'pending','hWknL':_0x2d6f7c(0x1c3),'ePJXx':_0x2d6f7c(0x234),'LNVYY':function(_0x512de2,_0x36fda2,_0x16cac2){return _0x512de2(_0x36fda2,_0x16cac2);},'XVwQJ':_0x2d6f7c(0x1de),'dmPXV':'name','iXoxH':function(_0x50c41a,_0x3f797,_0x43dc9c){return _0x50c41a(_0x3f797,_0x43dc9c);},'VhNWQ':_0x2d6f7c(0x1cc)};try{if(_0x1927af[_0x2d6f7c(0x21f)](_0x23070,_0x1927af[_0x2d6f7c(0x238)])){const _0x421672=new Date()['toISOString'](),_0x253141=hooksMap[_0x3d9950];if(!_0x253141)return;const _0x3f98fd=_0x253141[_0x2d6f7c(0x1c9)](_0x197fe9=>_0x197fe9[_0x2d6f7c(0x1c1)]===_0x6d6683['id']);if(!_0x3f98fd)return;const _0x302479=this['getHookResult'](_0x19370b,_0x3d9950);_0x3f98fd[_0x2d6f7c(0x1fc)]=_0x302479[_0x2d6f7c(0x225)],_0x3f98fd['finished_at']=_0x421672,_0x3f98fd[_0x2d6f7c(0x1bd)]=_0x302479[_0x2d6f7c(0x24b)];const _0x5ac40d={};return _0x5ac40d[_0x2d6f7c(0x1e9)]=_0x302479['failureData'],_0x3f98fd['failure_data']=[_0x5ac40d],_0x3f98fd;}const _0x1f7fe9=TestDetails[_0x2d6f7c(0x242)](_0x3d9950),_0x54f27e=_0x19370b[_0x2d6f7c(0x1f0)][_0x2d6f7c(0x1c9)](_0x578f83=>_0x578f83['id']===_0x6d6683[_0x2d6f7c(0x1e2)]),_0x4abfd8=_0x1927af[_0x2d6f7c(0x1dd)](nestedKeyValue,_0x54f27e,[_0x1927af[_0x2d6f7c(0x1f4)],_0x1927af[_0x2d6f7c(0x218)]]),_0x3155ea=new Date()['toISOString'](),_0x8f209f=_0x1927af[_0x2d6f7c(0x219)],_0x4791d6=_0x54f27e[_0x2d6f7c(0x24f)]?_0x54f27e['tagExpression'][_0x2d6f7c(0x215)]('\x20')['filter'](_0x1919ad=>_0x1919ad[_0x2d6f7c(0x1cd)]('@')):[],_0x642cc5={'uuid':_0x6d6683['id'],'type':_0x1927af[_0x2d6f7c(0x1ce)],'hook_type':_0x44061b,'name':_0x54f27e[_0x2d6f7c(0x1c4)],'body':{'lang':_0x1927af[_0x2d6f7c(0x1ff)],'code':null},'tags':_0x4791d6,'test_run_id':_0x1f7fe9,'scope':_0x1927af[_0x2d6f7c(0x1e3)](nestedKeyValue,_0x344a21,[_0x1927af[_0x2d6f7c(0x1eb)],_0x1927af[_0x2d6f7c(0x239)]]),'scopes':[_0x1927af[_0x2d6f7c(0x1d2)](nestedKeyValue,_0x344a21,[_0x1927af[_0x2d6f7c(0x1eb)],_0x1927af[_0x2d6f7c(0x239)]])||''],'file_name':_0x4abfd8,'location':_0x4abfd8,'vc_filepath':this['_gitConfigPath']?path[_0x2d6f7c(0x1f3)](this['_gitConfigPath'],_0x4abfd8):null,'result':_0x8f209f,'started_at':_0x3155ea,'framework':_0x1927af[_0x2d6f7c(0x1be)]};return _0x642cc5;}catch(_0x47b762){logger['debug'](_0x2d6f7c(0x22d)+util[_0x2d6f7c(0x245)](_0x47b762)+'\x20');}}async[a10_0x59a847(0x1bb)](_0x1dabe7,_0x95f6f1,_0x1a6306,_0x1ac755,_0xc690d,_0x478598){const _0x389285=a10_0x59a847,_0x5f4b3d={'kKQWd':function(_0x25ee96,_0xb9ffcc){return _0x25ee96===_0xb9ffcc;},'aUXJo':_0x389285(0x1da),'hilIc':function(_0x2e0fc3,_0xb66dd1,_0x257caf){return _0x2e0fc3(_0xb66dd1,_0x257caf);},'TFfCs':'sourceReference','RcoPL':_0x389285(0x1d8),'FmTAR':'browserstack-node-agent/src/bin/cucumber-js/test.setup.js'};try{const _0x539a89=_0x1ac755['find'](_0x5d20f7=>_0x5d20f7['id']===_0xc690d);if(!_0x539a89[_0x389285(0x1e2)])return;const _0x26cd72=this[_0x389285(0x1f2)](_0x1ac755,_0x539a89),_0xbee3de=this[_0x389285(0x1bf)](_0x1dabe7,_0x95f6f1,_0x1a6306,_0x539a89,_0x478598,_0x26cd72);if(!_0xbee3de)return;_0x5f4b3d[_0x389285(0x249)](_0x1a6306,_0x5f4b3d[_0x389285(0x1e8)])&&(hooksMap[_0x95f6f1]?hooksMap[_0x95f6f1][_0x389285(0x200)](_0xbee3de):hooksMap[_0x95f6f1]=[_0xbee3de]);const _0x56a1db=_0x1dabe7[_0x389285(0x1f0)]['find'](_0x2178a2=>_0x2178a2['id']===_0x539a89[_0x389285(0x1e2)]),_0x5bbdf9=_0x5f4b3d[_0x389285(0x21d)](nestedKeyValue,_0x56a1db,[_0x5f4b3d[_0x389285(0x1d5)],_0x5f4b3d[_0x389285(0x22b)]]);if(!_0x5bbdf9)return;else{if(_0x5bbdf9[_0x389285(0x1cd)](_0x5f4b3d[_0x389285(0x1c8)]))return;}const _0x4e3ca6={};_0x4e3ca6['event_type']=_0x1a6306,_0x4e3ca6[_0x389285(0x23d)]=_0xbee3de;const _0x2e5f89=_0x4e3ca6;await SessionHandler[_0x389285(0x1e5)](_0x2e5f89);}catch(_0x592284){logger[_0x389285(0x1ba)](_0x389285(0x23a)+util[_0x389285(0x245)](_0x592284)+'\x20');}}[a10_0x59a847(0x1e4)](_0x4275a7,_0x25105d){const _0x306ae0=a10_0x59a847,_0x1d970a={};_0x1d970a['ixTdv']=function(_0x134a1a,_0x26c4f3){return _0x134a1a===_0x26c4f3;},_0x1d970a[_0x306ae0(0x250)]=_0x306ae0(0x233),_0x1d970a['IfHUO']='UnhandledError',_0x1d970a[_0x306ae0(0x1e7)]=_0x306ae0(0x1d4),_0x1d970a['AZIUe']=function(_0x368cdf,_0x355242){return _0x368cdf||_0x355242;};const _0x391029=_0x1d970a,_0x25ffbd=_0x4275a7[_0x306ae0(0x248)][_0x25105d][_0x306ae0(0x251)];let _0x17576e,_0x1855f0;return _0x25ffbd&&_0x391029[_0x306ae0(0x220)](_0x25ffbd['status']['toString']()[_0x306ae0(0x241)](),_0x391029['MhVIp'])&&(_0x17576e=_0x391029[_0x306ae0(0x220)](_0x25ffbd[_0x306ae0(0x1c5)],undefined)?_0x25ffbd[_0x306ae0(0x20d)]:_0x25ffbd[_0x306ae0(0x1c5)][_0x306ae0(0x20d)],_0x1855f0=_0x391029[_0x306ae0(0x220)](_0x25ffbd[_0x306ae0(0x1c5)],undefined)?_0x391029[_0x306ae0(0x1ee)]:_0x25ffbd['message'][_0x306ae0(0x23e)](/Assert/)?_0x391029[_0x306ae0(0x1e7)]:_0x391029[_0x306ae0(0x1ee)]),{'status':_0x25ffbd[_0x306ae0(0x225)][_0x306ae0(0x241)](),'failureType':_0x391029[_0x306ae0(0x229)](_0x1855f0,null),'failureData':!_0x17576e?null:[_0x17576e]};}[a10_0x59a847(0x1f2)](_0xc37510,_0x2a6f6b){const _0x486331=a10_0x59a847,_0x1caf4d={};_0x1caf4d['CrshR']=function(_0x3fbbf8,_0x368245){return _0x3fbbf8===_0x368245;},_0x1caf4d[_0x486331(0x1c7)]=_0x486331(0x213),_0x1caf4d[_0x486331(0x20a)]='BEFORE_EACH';const _0x30d8fd=_0x1caf4d;let _0x30f3c0=![];for(const _0x55d56d of _0xc37510){_0x55d56d[_0x486331(0x247)]&&(_0x30f3c0=!![]);if(_0x30d8fd[_0x486331(0x1f1)](_0x2a6f6b['id'],_0x55d56d['id']))return _0x30f3c0?_0x30d8fd[_0x486331(0x1c7)]:_0x30d8fd[_0x486331(0x20a)];}}[a10_0x59a847(0x1e1)]=(_0x796642,_0x35b750)=>{const _0x2c23d2=a10_0x59a847,_0x858d9d={};_0x858d9d[_0x2c23d2(0x1d1)]=function(_0x282aa7,_0x18c166){return _0x282aa7===_0x18c166;},_0x858d9d['tuCWj']=function(_0x45ff5a,_0x2c62a3){return _0x45ff5a>_0x2c62a3;};const _0x5a6263=_0x858d9d;if(!(_0x35b750[_0x2c23d2(0x1fe)]&&_0x5a6263[_0x2c23d2(0x24a)](_0x35b750[_0x2c23d2(0x1fe)][_0x2c23d2(0x223)],0x1)))return;const _0x2e08bf=_0x35b750[_0x2c23d2(0x1fe)][0x0],_0x7b34a3=_0x35b750[_0x2c23d2(0x1fe)][0x1],_0x4c8b76=_0x796642[_0x2c23d2(0x1de)]&&_0x796642[_0x2c23d2(0x1de)][_0x2c23d2(0x201)]?_0x796642[_0x2c23d2(0x1de)]['children']:undefined;let _0x173ead=[];_0x4c8b76&&_0x4c8b76[_0x2c23d2(0x1d6)](_0x4e119f=>{const _0x303718=_0x2c23d2;if(_0x4e119f[_0x303718(0x22f)])_0x4e119f[_0x303718(0x22f)][_0x303718(0x201)][_0x303718(0x1d6)](_0x27d7d4=>{const _0x105c00=_0x303718;if(_0x27d7d4[_0x105c00(0x221)]&&_0x5a6263['aJxPx'](_0x27d7d4[_0x105c00(0x221)]['id'],_0x2e08bf)&&_0x27d7d4[_0x105c00(0x221)][_0x105c00(0x228)]){const _0x58e7e8=_0x27d7d4[_0x105c00(0x221)]['examples'][_0x105c00(0x20e)](_0xcc5cae=>_0xcc5cae[_0x105c00(0x1b9)])['find'](_0x2816d7=>_0x2816d7['id']===_0x7b34a3);let _0x3c72ce;_0x58e7e8&&_0x58e7e8['cells']?_0x3c72ce=_0x58e7e8[_0x105c00(0x216)][_0x105c00(0x246)](_0xdc3e87=>_0xdc3e87[_0x105c00(0x204)]):_0x3c72ce=[],_0x3c72ce&&(_0x173ead=_0x3c72ce);}});else{if(_0x4e119f[_0x303718(0x221)]&&_0x5a6263['aJxPx'](_0x4e119f[_0x303718(0x221)]['id'],_0x2e08bf)&&_0x4e119f[_0x303718(0x221)][_0x303718(0x228)]){const _0x25937f=_0x4e119f['scenario']['examples'][_0x303718(0x20e)](_0xa09f3a=>_0xa09f3a[_0x303718(0x1b9)])[_0x303718(0x1c9)](_0x5a0dd2=>_0x5a0dd2['id']===_0x7b34a3);let _0x4c7448;_0x25937f&&_0x25937f[_0x303718(0x216)]?_0x4c7448=_0x25937f[_0x303718(0x216)]['map'](_0x48da84=>_0x48da84[_0x303718(0x204)]):_0x4c7448=[],_0x4c7448&&(_0x173ead=_0x4c7448);}}});if(_0x173ead[_0x2c23d2(0x223)])return _0x173ead;return;};async['configureGit'](){const _0x10a367=a10_0x59a847,_0x189baf={'CaBBy':function(_0x1edcf4){return _0x1edcf4();}};if(this[_0x10a367(0x1db)])return this['_gitConfigPath'];const _0x534971=await _0x189baf[_0x10a367(0x1fd)](getGitMetaData);_0x534971&&(this[_0x10a367(0x1f5)]=_0x534971[_0x10a367(0x1ec)]),this[_0x10a367(0x1db)]=!![];}}module[a10_0x59a847(0x207)]=o11yClassErrorHandler(TestObservabilityReporter,[a10_0x59a847(0x1fa),a10_0x59a847(0x1e1),a10_0x59a847(0x1f2),'getHookResult','sendHook',a10_0x59a847(0x1bf),a10_0x59a847(0x227)]);
|
|
1
|
+
function a10_0x1940(){const _0x4afe66=['cucumber','RWCZK','tOAkS','../../helpers/logger','sIlRK','Exception\x20in\x20sendHook:\x20','../../helpers/helper','GEuuN','rule','YrUAN','javascript','12178248KBiuJr','hsxJb','XHQQl','hooks','format','WUFXm','AssertionError','LJePn','failure','feature','TFubI','flatMap','../../helpers/test-observability/constants.js','hook','every','2|0|4|3|1','gvKsz','sendHook','relative','sourceReference','LHLtt','SKIPPED','event_type','failure_data','ZIusW','UnhandledError','astNodeIds','BGlFf','jRtmE','thOzu','uri','zQMdA','toISOString','configureGit','tags','2XVqSnV','_gitConfigured','QAXei','oPQgx','failure_type','16wCmqkJ','value','testStepResult','toLowerCase','cells','testStepFinished','winstonLogger','VmAvt','Duuew','lUynu','TestRunFinished','NLsnv','PrGMo','failed','BEFORE_EACH','FAILED','65154gmGFCy','qJKmC','_gitConfigPath','skipped','util','jPMsi','getScenarioExamples','getTestUUID','mGGYd','test','qBYSp','appendTesthubParams','6280YQjXpX','UfXuk','result','debug','name','sendTestRunEventForCucumber','testCaseStartedId','includes','duration_in_ms','10eXaDBt','ZGxrZ','testCaseFinished','length','hookId','children','AFTER_EACH','examples','getHookRunEventData','test_run','find','backtrace','finished_at','getHooksListForTest','IfeQO','849oadTKa','unknown','ymUAf','uploadEventData','qPEeP','5XxohnZ','failure_reason','failureType','root','nioba','pickleStepId','PymDq','tagExpression','320621vqJiRe','TfINF','hook_run','xTOIU','toString','1879083yFkYHZ','CUCUMBER','exception','mWCPP','1446704DGScMq','JYUqC','match','RysAh','skXuj','passed','bPRUU','pending','join','2765785XHKXet','push','../../helpers/test-observability/error-handler','uuid','updateTestStatus','path','getHookResult','nanos','message','LyUwO','getCucumberHookType','timestamp','tableBody','FUMlV','map','HookRunStarted','scenario','status','../../helpers/testhub/utils','wEzPX','uLwqv','gKXrs','exports'];a10_0x1940=function(){return _0x4afe66;};return a10_0x1940();}const a10_0x37fd76=a10_0x1a48;(function(_0x53bf42,_0x403230){const _0x3eda01=a10_0x1a48,_0x5af5f6=_0x53bf42();while(!![]){try{const _0x59d7d4=-parseInt(_0x3eda01(0x197))/0x1*(parseInt(_0x3eda01(0x1ee))/0x2)+parseInt(_0x3eda01(0x227))/0x3*(parseInt(_0x3eda01(0x20f))/0x4)+-parseInt(_0x3eda01(0x22c))/0x5*(parseInt(_0x3eda01(0x203))/0x6)+-parseInt(_0x3eda01(0x1a0))/0x7*(parseInt(_0x3eda01(0x1f3))/0x8)+-parseInt(_0x3eda01(0x19c))/0x9*(parseInt(_0x3eda01(0x218))/0xa)+-parseInt(_0x3eda01(0x1a9))/0xb+parseInt(_0x3eda01(0x1cb))/0xc;if(_0x59d7d4===_0x403230)break;else _0x5af5f6['push'](_0x5af5f6['shift']());}catch(_0x1603c6){_0x5af5f6['push'](_0x5af5f6['shift']());}}}(a10_0x1940,0x3e0a6));function a10_0x1a48(_0x557094,_0x1c7abe){const _0x194087=a10_0x1940();return a10_0x1a48=function(_0x1a48b7,_0x1f0c0f){_0x1a48b7=_0x1a48b7-0x193;let _0x4e8a5d=_0x194087[_0x1a48b7];return _0x4e8a5d;},a10_0x1a48(_0x557094,_0x1c7abe);}const path=require(a10_0x37fd76(0x1ae)),util=require(a10_0x37fd76(0x207)),hooksMap={},SessionHandler=require('../../helpers/test-observability/sessionHandler'),testhubUtils=require(a10_0x37fd76(0x1bb)),{getGitMetaData,isUndefined,nestedKeyValue}=require(a10_0x37fd76(0x1c6)),logger=require(a10_0x37fd76(0x1c3))[a10_0x37fd76(0x1f9)],{o11yClassErrorHandler}=require(a10_0x37fd76(0x1ab)),{FRAMEWORKS}=require(a10_0x37fd76(0x1d7)),TestDetails=require('../playwright/reporter/test-details');this['_gitConfigured']=![],this[a10_0x37fd76(0x205)]=null;class TestObservabilityReporter{async['sendTestRunEventForCucumber'](_0x5b6c3f,_0x27ba2a,_0x28005d,_0x16d663,_0x58fc93){const _0x18c76e=a10_0x37fd76,_0x5a7a23={'Jlmgy':function(_0x2e65d3,_0x2e61d9){return _0x2e65d3===_0x2e61d9;},'sIlRK':_0x18c76e(0x202),'qPEeP':_0x18c76e(0x200),'thOzu':function(_0x4c53b3,_0x3fa596){return _0x4c53b3===_0x3fa596;},'TFubI':_0x18c76e(0x1e0),'gKXrs':_0x18c76e(0x206),'LHLtt':function(_0x58bfe3,_0x2ceee8){return _0x58bfe3||_0x2ceee8;},'ZIusW':function(_0x2d228c,_0x595b16){return _0x2d228c+_0x595b16;},'JDFvS':function(_0x5d6e5,_0x468b4c){return _0x5d6e5+_0x468b4c;},'wEzPX':_0x18c76e(0x20c),'sqBxo':_0x18c76e(0x1ca),'CqpVL':_0x18c76e(0x1c0),'tOAkS':_0x18c76e(0x1a7),'gvKsz':_0x18c76e(0x1a5),'JYUqC':function(_0x37b5d6,_0x2cf5e6){return _0x37b5d6!==_0x2cf5e6;},'jRtmE':function(_0x3958d8,_0x1997df){return _0x3958d8/_0x1997df;},'fehXN':'strip-ansi','VmAvt':function(_0x72adb0,_0x4bd5ce){return _0x72adb0(_0x4bd5ce);},'YrUAN':_0x18c76e(0x228),'VPZHk':_0x18c76e(0x1d1),'oPQgx':'UnhandledError','PrGMo':function(_0x215efa,_0x3d9849){return _0x215efa===_0x3d9849;},'znYKZ':_0x18c76e(0x1fd),'ZGxrZ':function(_0x5c3a47,_0x2233a7){return _0x5c3a47>_0x2233a7;}},{feature:_0x2fdcb4,scenario:_0x598e36,steps:_0x782daf,uuid:_0x108855,startedAt:_0x5994b9,finishedAt:_0x9d5b04}=_0x5a7a23[_0x18c76e(0x1df)](_0x58fc93,{}),_0x2f86e2=this[_0x18c76e(0x209)](_0x27ba2a,_0x28005d);await this[_0x18c76e(0x1ec)]();const _0x36c932=_0x2f86e2?_0x5a7a23[_0x18c76e(0x1e3)](_0x5a7a23[_0x18c76e(0x1e3)](_0x5a7a23['JDFvS'](_0x28005d[_0x18c76e(0x213)],'\x20('),_0x2f86e2[_0x18c76e(0x1a8)](',\x20')),')'):_0x28005d['name'],_0x353c68={'uuid':_0x108855,'started_at':_0x5994b9,'finished_at':_0x9d5b04,'type':_0x5a7a23[_0x18c76e(0x1bc)],'body':{'lang':_0x5a7a23['sqBxo'],'code':null},'name':_0x36c932,'scopes':[_0x2fdcb4&&_0x2fdcb4[_0x18c76e(0x213)]?_0x2fdcb4['name']:''],'tags':_0x28005d[_0x18c76e(0x1ed)]?_0x28005d[_0x18c76e(0x1ed)][_0x18c76e(0x1b7)](({name:_0x4c7eb7})=>_0x4c7eb7):[],'file_name':_0x28005d[_0x18c76e(0x1e9)],'location':_0x28005d['uri'],'vc_filepath':this[_0x18c76e(0x205)]&&_0x28005d[_0x18c76e(0x1e9)]?path['relative'](this['_gitConfigPath'],_0x28005d[_0x18c76e(0x1e9)]):null,'framework':_0x5a7a23['CqpVL'],'result':_0x5a7a23[_0x18c76e(0x1c2)],'meta':{'feature':_0x2fdcb4,'scenario':_0x598e36,'steps':_0x782daf,'examples':_0x2f86e2},'customRerunParam':{'rerun_name':_0x36c932}};if(_0x5b6c3f[_0x18c76e(0x21a)]&&_0x782daf){const _0x5d4510=_0x5b6c3f[_0x18c76e(0x21a)];let _0x1d5b6c=_0x5a7a23[_0x18c76e(0x1db)];_0x782daf[_0x18c76e(0x1d9)](_0x3d5ebd=>{const _0x1f6625=_0x18c76e;if(_0x5a7a23['Jlmgy'](_0x3d5ebd[_0x1f6625(0x211)],_0x5a7a23[_0x1f6625(0x1c4)]))return _0x1d5b6c=_0x5a7a23[_0x1f6625(0x22b)],_0x5d4510['failure']=_0x3d5ebd[_0x1f6625(0x1d3)],_0x5d4510['failureType']=_0x3d5ebd[_0x1f6625(0x22e)],![];else{if(_0x5a7a23['thOzu'](_0x3d5ebd[_0x1f6625(0x211)],_0x5a7a23[_0x1f6625(0x1d5)]))return _0x1d5b6c=_0x5a7a23[_0x1f6625(0x1be)],![];}return!![];}),_0x353c68[_0x18c76e(0x224)]=new Date()[_0x18c76e(0x1eb)](),_0x353c68[_0x18c76e(0x211)]=_0x1d5b6c;_0x5d4510[_0x18c76e(0x1b4)]&&_0x5a7a23[_0x18c76e(0x1a1)](_0x5d4510[_0x18c76e(0x1b4)][_0x18c76e(0x1b0)],undefined)?_0x353c68[_0x18c76e(0x217)]=_0x5a7a23[_0x18c76e(0x1e7)](_0x5d4510[_0x18c76e(0x1b4)][_0x18c76e(0x1b0)],0xf4240):_0x353c68[_0x18c76e(0x217)]=undefined;if(_0x5a7a23[_0x18c76e(0x1e8)](_0x1d5b6c,_0x5a7a23[_0x18c76e(0x22b)])){const {default:_0x32b1c1}=await import(_0x5a7a23['fehXN']);_0x353c68[_0x18c76e(0x1d3)]=[{'backtrace':[_0x5d4510[_0x18c76e(0x1d3)]?_0x5a7a23[_0x18c76e(0x1fa)](_0x32b1c1,_0x5d4510['failure']):_0x5a7a23[_0x18c76e(0x1c9)]]}],_0x353c68[_0x18c76e(0x22d)]=_0x5d4510[_0x18c76e(0x1d3)]?_0x5a7a23[_0x18c76e(0x1fa)](_0x32b1c1,_0x5d4510[_0x18c76e(0x1d3)]):_0x5d4510[_0x18c76e(0x1b1)],_0x5d4510[_0x18c76e(0x22e)]&&(_0x353c68['failure_type']=_0x5d4510[_0x18c76e(0x22e)][_0x18c76e(0x1a2)](/AssertError/)?_0x5a7a23['VPZHk']:_0x5a7a23[_0x18c76e(0x1f1)]);}}if(_0x5a7a23[_0x18c76e(0x1ff)](_0x16d663,_0x5a7a23['znYKZ'])){const _0x2d9fa0=this[_0x18c76e(0x225)](_0x5b6c3f[_0x18c76e(0x21a)][_0x18c76e(0x215)]);_0x2d9fa0&&_0x5a7a23[_0x18c76e(0x219)](_0x2d9fa0[_0x18c76e(0x21b)],0x0)&&(_0x353c68[_0x18c76e(0x1ce)]=_0x2d9fa0,this[_0x18c76e(0x1ad)](_0x5b6c3f[_0x18c76e(0x21a)][_0x18c76e(0x215)],_0x353c68));}testhubUtils[_0x18c76e(0x20e)](_0x353c68,_0x16d663,'',FRAMEWORKS[_0x18c76e(0x19d)]);const _0x5f1a87={};_0x5f1a87[_0x18c76e(0x1e1)]=_0x16d663,_0x5f1a87[_0x18c76e(0x221)]=_0x353c68;const _0x4ce0db=_0x5f1a87;await SessionHandler[_0x18c76e(0x22a)](_0x4ce0db);}[a10_0x37fd76(0x1ad)](_0x6ed9da,_0x357dd5){const _0x5dd9a8=a10_0x37fd76,_0x2585d4={};_0x2585d4['uLwqv']=function(_0x4758f5,_0x13ce6e){return _0x4758f5 instanceof _0x13ce6e;},_0x2585d4[_0x5dd9a8(0x1c1)]=function(_0x1e157b,_0x51869e){return _0x1e157b===_0x51869e;},_0x2585d4[_0x5dd9a8(0x19f)]='failed',_0x2585d4[_0x5dd9a8(0x1a6)]=_0x5dd9a8(0x1da);const _0x3b8a49=_0x2585d4,_0x29bcc4=hooksMap[_0x6ed9da];if(_0x3b8a49[_0x5dd9a8(0x1bd)](_0x29bcc4,Array))for(const _0x67b8f6 of _0x29bcc4){if(_0x3b8a49[_0x5dd9a8(0x1c1)](_0x67b8f6['result'],_0x3b8a49[_0x5dd9a8(0x19f)])){const _0x3016f9=_0x3b8a49[_0x5dd9a8(0x1a6)]['split']('|');let _0x37bbba=0x0;while(!![]){switch(_0x3016f9[_0x37bbba++]){case'0':_0x357dd5[_0x5dd9a8(0x1d3)]=_0x67b8f6['failure_data'];continue;case'1':return _0x357dd5;case'2':_0x357dd5[_0x5dd9a8(0x211)]=_0x67b8f6['result'];continue;case'3':_0x357dd5[_0x5dd9a8(0x1f2)]=_0x67b8f6[_0x5dd9a8(0x1f2)];continue;case'4':_0x357dd5[_0x5dd9a8(0x22d)]=_0x3b8a49['uLwqv'](_0x67b8f6[_0x5dd9a8(0x1e2)],Array)?_0x67b8f6[_0x5dd9a8(0x1e2)][0x0][_0x5dd9a8(0x223)][_0x5dd9a8(0x1a8)]('\x0a'):'';continue;}break;}}};}['getHooksListForTest'](_0x10afd5){const _0x41f7a1=a10_0x37fd76;if(hooksMap[_0x10afd5])return hooksMap[_0x10afd5][_0x41f7a1(0x1b7)](_0x2ce028=>_0x2ce028[_0x41f7a1(0x1ac)]);return[];}[a10_0x37fd76(0x220)](_0x2a4977,_0x571407,_0x256374,_0x25db68,_0x4e5a38,_0x29b335){const _0x3151ab=a10_0x37fd76,_0x4772df={'hsxJb':function(_0x5b8709,_0xec3e8f){return _0x5b8709===_0xec3e8f;},'GEuuN':'HookRunFinished','HdgJd':function(_0x24cda1,_0x890ba,_0x355245){return _0x24cda1(_0x890ba,_0x355245);},'PymDq':_0x3151ab(0x1de),'XHQQl':'uri','MWwHW':_0x3151ab(0x1a7),'mGGYd':_0x3151ab(0x1d8),'VzAGO':_0x3151ab(0x1ca),'DiZvm':function(_0x803533,_0x4a5ef7,_0x5ee6fa){return _0x803533(_0x4a5ef7,_0x5ee6fa);},'RysAh':'feature','WUFXm':_0x3151ab(0x213),'skXuj':function(_0x395765,_0x2cb05a,_0xd264e1){return _0x395765(_0x2cb05a,_0xd264e1);},'TfINF':_0x3151ab(0x1c0)};try{if(_0x4772df[_0x3151ab(0x1cc)](_0x256374,_0x4772df[_0x3151ab(0x1c7)])){const _0x19e450=new Date()['toISOString'](),_0x553a90=hooksMap[_0x571407];if(!_0x553a90)return;const _0x4cd71b=_0x553a90[_0x3151ab(0x222)](_0x4382fa=>_0x4382fa['uuid']===_0x25db68['id']);if(!_0x4cd71b)return;const _0x4914cb=this[_0x3151ab(0x1af)](_0x2a4977,_0x571407);_0x4cd71b[_0x3151ab(0x211)]=_0x4914cb[_0x3151ab(0x1ba)],_0x4cd71b[_0x3151ab(0x224)]=_0x19e450,_0x4cd71b[_0x3151ab(0x1f2)]=_0x4914cb['failureType'];const _0x5ebb88={};return _0x5ebb88[_0x3151ab(0x223)]=_0x4914cb['failureData'],_0x4cd71b[_0x3151ab(0x1e2)]=[_0x5ebb88],_0x4cd71b;}const _0x5354cb=TestDetails[_0x3151ab(0x20a)](_0x571407),_0x166c55=_0x2a4977[_0x3151ab(0x1ce)][_0x3151ab(0x222)](_0x4f80e2=>_0x4f80e2['id']===_0x25db68[_0x3151ab(0x21c)]),_0x1b9af7=_0x4772df['HdgJd'](nestedKeyValue,_0x166c55,[_0x4772df[_0x3151ab(0x195)],_0x4772df[_0x3151ab(0x1cd)]]),_0x31e446=new Date()[_0x3151ab(0x1eb)](),_0x468692=_0x4772df['MWwHW'],_0x4b3f81=_0x166c55[_0x3151ab(0x196)]?_0x166c55['tagExpression']['split']('\x20')['filter'](_0x16b222=>_0x16b222[_0x3151ab(0x216)]('@')):[],_0x1587ca={'uuid':_0x25db68['id'],'type':_0x4772df[_0x3151ab(0x20b)],'hook_type':_0x29b335,'name':_0x166c55[_0x3151ab(0x213)],'body':{'lang':_0x4772df['VzAGO'],'code':null},'tags':_0x4b3f81,'test_run_id':_0x5354cb,'scope':_0x4772df['DiZvm'](nestedKeyValue,_0x4e5a38,[_0x4772df['RysAh'],_0x4772df[_0x3151ab(0x1d0)]]),'scopes':[_0x4772df[_0x3151ab(0x1a4)](nestedKeyValue,_0x4e5a38,[_0x4772df[_0x3151ab(0x1a3)],_0x4772df[_0x3151ab(0x1d0)]])||''],'file_name':_0x1b9af7,'location':_0x1b9af7,'vc_filepath':this[_0x3151ab(0x205)]?path[_0x3151ab(0x1dd)](this['_gitConfigPath'],_0x1b9af7):null,'result':_0x468692,'started_at':_0x31e446,'framework':_0x4772df[_0x3151ab(0x198)]};return _0x1587ca;}catch(_0x3f255e){logger[_0x3151ab(0x212)]('Exception\x20in\x20getHookRunEventData:\x20'+util[_0x3151ab(0x1cf)](_0x3f255e)+'\x20');}}async['sendHook'](_0x43ce2f,_0x35b5bc,_0x44a365,_0x1dbe92,_0x54fd46,_0x3f1019){const _0x439b88=a10_0x37fd76,_0x2385bb={'zQMdA':function(_0x1990f2,_0x44674b){return _0x1990f2===_0x44674b;},'IfeQO':_0x439b88(0x1b8),'UfXuk':function(_0x28f2bf,_0xee6ed0,_0x41494a){return _0x28f2bf(_0xee6ed0,_0x41494a);},'KMCxy':_0x439b88(0x1de),'BGlFf':_0x439b88(0x1e9),'nioba':'browserstack-node-agent/src/bin/cucumber-js/test.setup.js'};try{const _0x53e49b=_0x1dbe92['find'](_0x3d119a=>_0x3d119a['id']===_0x54fd46);if(!_0x53e49b[_0x439b88(0x21c)])return;const _0x49234e=this['getCucumberHookType'](_0x1dbe92,_0x53e49b),_0xc1ff0e=this['getHookRunEventData'](_0x43ce2f,_0x35b5bc,_0x44a365,_0x53e49b,_0x3f1019,_0x49234e);if(!_0xc1ff0e)return;_0x2385bb[_0x439b88(0x1ea)](_0x44a365,_0x2385bb[_0x439b88(0x226)])&&(hooksMap[_0x35b5bc]?hooksMap[_0x35b5bc][_0x439b88(0x1aa)](_0xc1ff0e):hooksMap[_0x35b5bc]=[_0xc1ff0e]);const _0x3cd814=_0x43ce2f[_0x439b88(0x1ce)][_0x439b88(0x222)](_0x496e0e=>_0x496e0e['id']===_0x53e49b[_0x439b88(0x21c)]),_0x239fa6=_0x2385bb[_0x439b88(0x210)](nestedKeyValue,_0x3cd814,[_0x2385bb['KMCxy'],_0x2385bb[_0x439b88(0x1e6)]]);if(!_0x239fa6)return;else{if(_0x239fa6[_0x439b88(0x216)](_0x2385bb[_0x439b88(0x193)]))return;}const _0x40dc47={};_0x40dc47[_0x439b88(0x1e1)]=_0x44a365,_0x40dc47[_0x439b88(0x199)]=_0xc1ff0e;const _0x5ae46b=_0x40dc47;await SessionHandler[_0x439b88(0x22a)](_0x5ae46b);}catch(_0x3490ec){logger[_0x439b88(0x212)](_0x439b88(0x1c5)+util[_0x439b88(0x1cf)](_0x3490ec)+'\x20');}}[a10_0x37fd76(0x1af)](_0x1104a2,_0x397bb0){const _0x580cd8=a10_0x37fd76,_0x1c25b6={};_0x1c25b6[_0x580cd8(0x1d2)]=function(_0x231c8a,_0x14882a){return _0x231c8a===_0x14882a;},_0x1c25b6[_0x580cd8(0x1fb)]=_0x580cd8(0x200),_0x1c25b6[_0x580cd8(0x1f0)]=function(_0x2fbf6d,_0x26f079){return _0x2fbf6d===_0x26f079;},_0x1c25b6['DycYH']=function(_0x1c924f,_0x3fa630){return _0x1c924f===_0x3fa630;},_0x1c25b6[_0x580cd8(0x1fc)]=_0x580cd8(0x1e4),_0x1c25b6['NLsnv']=_0x580cd8(0x1d1),_0x1c25b6[_0x580cd8(0x20d)]=function(_0x51cdaa,_0x2f42f1){return _0x51cdaa||_0x2f42f1;};const _0x51612c=_0x1c25b6,_0x4c330e=_0x1104a2[_0x580cd8(0x1f8)][_0x397bb0][_0x580cd8(0x1f5)];let _0x5e198a,_0x1c229a;return _0x4c330e&&_0x51612c[_0x580cd8(0x1d2)](_0x4c330e[_0x580cd8(0x1ba)][_0x580cd8(0x19b)]()[_0x580cd8(0x1f6)](),_0x51612c[_0x580cd8(0x1fb)])&&(_0x5e198a=_0x51612c[_0x580cd8(0x1f0)](_0x4c330e[_0x580cd8(0x19e)],undefined)?_0x4c330e[_0x580cd8(0x1b1)]:_0x4c330e[_0x580cd8(0x19e)]['message'],_0x1c229a=_0x51612c['DycYH'](_0x4c330e[_0x580cd8(0x19e)],undefined)?_0x51612c[_0x580cd8(0x1fc)]:_0x4c330e[_0x580cd8(0x1b1)][_0x580cd8(0x1a2)](/Assert/)?_0x51612c[_0x580cd8(0x1fe)]:_0x51612c['lUynu']),{'status':_0x4c330e[_0x580cd8(0x1ba)][_0x580cd8(0x1f6)](),'failureType':_0x51612c[_0x580cd8(0x20d)](_0x1c229a,null),'failureData':!_0x5e198a?null:[_0x5e198a]};}[a10_0x37fd76(0x1b3)](_0x370be9,_0x10f393){const _0x81bd85=a10_0x37fd76,_0x168cd5={};_0x168cd5['QxJHb']=function(_0x3535bc,_0x358ab3){return _0x3535bc===_0x358ab3;},_0x168cd5[_0x81bd85(0x1b2)]=_0x81bd85(0x21e),_0x168cd5[_0x81bd85(0x208)]=_0x81bd85(0x201);const _0x4403af=_0x168cd5;let _0x229055=![];for(const _0x5633ba of _0x370be9){_0x5633ba[_0x81bd85(0x194)]&&(_0x229055=!![]);if(_0x4403af['QxJHb'](_0x10f393['id'],_0x5633ba['id']))return _0x229055?_0x4403af[_0x81bd85(0x1b2)]:_0x4403af[_0x81bd85(0x208)];}}['getScenarioExamples']=(_0x22af24,_0x50e0a2)=>{const _0x741049=a10_0x37fd76,_0x22f044={};_0x22f044[_0x741049(0x19a)]=function(_0x227efe,_0x196e2e){return _0x227efe===_0x196e2e;},_0x22f044[_0x741049(0x204)]=function(_0x2ee56c,_0xdba77d){return _0x2ee56c===_0xdba77d;},_0x22f044[_0x741049(0x229)]=function(_0x15d82,_0x5bb331){return _0x15d82>_0x5bb331;};const _0x21376b=_0x22f044;if(!(_0x50e0a2[_0x741049(0x1e5)]&&_0x21376b[_0x741049(0x229)](_0x50e0a2[_0x741049(0x1e5)][_0x741049(0x21b)],0x1)))return;const _0x39ab3a=_0x50e0a2[_0x741049(0x1e5)][0x0],_0x2f55d5=_0x50e0a2[_0x741049(0x1e5)][0x1],_0x1e5ff1=_0x22af24['feature']&&_0x22af24[_0x741049(0x1d4)][_0x741049(0x21d)]?_0x22af24[_0x741049(0x1d4)][_0x741049(0x21d)]:undefined;let _0x21c30b=[];_0x1e5ff1&&_0x1e5ff1['forEach'](_0xece8e8=>{const _0x55b02c=_0x741049;if(_0xece8e8[_0x55b02c(0x1c8)])_0xece8e8['rule'][_0x55b02c(0x21d)]['forEach'](_0x4602c7=>{const _0x32d14e=_0x55b02c;if(_0x4602c7[_0x32d14e(0x1b9)]&&_0x21376b['xTOIU'](_0x4602c7['scenario']['id'],_0x39ab3a)&&_0x4602c7['scenario'][_0x32d14e(0x21f)]){const _0x34f57a=_0x4602c7[_0x32d14e(0x1b9)][_0x32d14e(0x21f)][_0x32d14e(0x1d6)](_0x403b18=>_0x403b18[_0x32d14e(0x1b5)])['find'](_0x542628=>_0x542628['id']===_0x2f55d5);let _0x542a8a;_0x34f57a&&_0x34f57a[_0x32d14e(0x1f7)]?_0x542a8a=_0x34f57a[_0x32d14e(0x1f7)][_0x32d14e(0x1b7)](_0x42cbcf=>_0x42cbcf[_0x32d14e(0x1f4)]):_0x542a8a=[],_0x542a8a&&(_0x21c30b=_0x542a8a);}});else{if(_0xece8e8[_0x55b02c(0x1b9)]&&_0x21376b[_0x55b02c(0x204)](_0xece8e8[_0x55b02c(0x1b9)]['id'],_0x39ab3a)&&_0xece8e8[_0x55b02c(0x1b9)]['examples']){const _0x12eb64=_0xece8e8['scenario'][_0x55b02c(0x21f)][_0x55b02c(0x1d6)](_0xb7aee2=>_0xb7aee2[_0x55b02c(0x1b5)])[_0x55b02c(0x222)](_0x182afb=>_0x182afb['id']===_0x2f55d5);let _0x272977;_0x12eb64&&_0x12eb64[_0x55b02c(0x1f7)]?_0x272977=_0x12eb64[_0x55b02c(0x1f7)][_0x55b02c(0x1b7)](_0x5336c8=>_0x5336c8[_0x55b02c(0x1f4)]):_0x272977=[],_0x272977&&(_0x21c30b=_0x272977);}}});if(_0x21c30b[_0x741049(0x21b)])return _0x21c30b;return;};async[a10_0x37fd76(0x1ec)](){const _0x3ab14c=a10_0x37fd76,_0x53923a={'FUMlV':function(_0x257d4f){return _0x257d4f();}};if(this[_0x3ab14c(0x1ef)])return this[_0x3ab14c(0x205)];const _0x35a8b4=await _0x53923a[_0x3ab14c(0x1b6)](getGitMetaData);_0x35a8b4&&(this[_0x3ab14c(0x205)]=_0x35a8b4[_0x3ab14c(0x22f)]),this[_0x3ab14c(0x1ef)]=!![];}}module[a10_0x37fd76(0x1bf)]=o11yClassErrorHandler(TestObservabilityReporter,[a10_0x37fd76(0x1ec),a10_0x37fd76(0x209),a10_0x37fd76(0x1b3),a10_0x37fd76(0x1af),a10_0x37fd76(0x1dc),a10_0x37fd76(0x220),a10_0x37fd76(0x214)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11_0x13e8ee=a11_0x5610;(function(_0x25659a,_0x933ad4){const _0x55e62f=a11_0x5610,_0xab2b4f=_0x25659a();while(!![]){try{const _0x373e63=-parseInt(_0x55e62f(0x23f))/0x1+-parseInt(_0x55e62f(0x231))/0x2+parseInt(_0x55e62f(0x1d1))/0x3+parseInt(_0x55e62f(0x238))/0x4*(parseInt(_0x55e62f(0x262))/0x5)+parseInt(_0x55e62f(0x222))/0x6*(-parseInt(_0x55e62f(0x1c6))/0x7)+-parseInt(_0x55e62f(0x21d))/0x8+parseInt(_0x55e62f(0x207))/0x9;if(_0x373e63===_0x933ad4)break;else _0xab2b4f['push'](_0xab2b4f['shift']());}catch(_0x43fd7b){_0xab2b4f['push'](_0xab2b4f['shift']());}}}(a11_0xd005,0x9ab45));const {requireModule,modifyCommand,isTrue,markSessionStatus,isBrowserstackInfra,playwrightSetSessionName,playwrightMarkSessionStatus,nestedKeyValue}=require(a11_0x13e8ee(0x21e)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require('../utils/constants'),setKeepAlive=require(a11_0x13e8ee(0x1cb)),util=require(a11_0x13e8ee(0x22f)),PerformanceTester=require(a11_0x13e8ee(0x213)),{commandRepository}=require(a11_0x13e8ee(0x266)),cucumberModule=requireModule(a11_0x13e8ee(0x220),a11_0x13e8ee(0x280)),logger=require(a11_0x13e8ee(0x23d))[a11_0x13e8ee(0x255)],{shouldProcessEventForTesthub}=require(a11_0x13e8ee(0x209)),{sendPlatformDetails,addRequestSpy,patchConsoleLogger}=require(a11_0x13e8ee(0x1ae)),TestDetails=require(a11_0x13e8ee(0x206)),RequestQueueHandler=require(a11_0x13e8ee(0x24e)),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),MyReporter=require(a11_0x13e8ee(0x253)),SessionHandler=require(a11_0x13e8ee(0x248)),scripts=require(a11_0x13e8ee(0x20e)),globals=require(a11_0x13e8ee(0x1be)),testHubConstants=require('../../helpers/testhub/constants.js'),{shouldScanTestForAccessibility}=require(a11_0x13e8ee(0x1d7)),{isUndefined}=require(a11_0x13e8ee(0x1bd)),helper=require('../../helpers/helper'),a11_0x26010f={};a11_0x26010f['workerInfo']=undefined,a11_0x26010f[a11_0x13e8ee(0x284)]={},a11_0x26010f[a11_0x13e8ee(0x20d)]=![],a11_0x26010f[a11_0x13e8ee(0x275)]=null,a11_0x26010f['isPageFixture']=![],a11_0x26010f[a11_0x13e8ee(0x284)]['id']=undefined,a11_0x26010f[a11_0x13e8ee(0x284)][a11_0x13e8ee(0x259)]=undefined;const workerDetails=a11_0x26010f;global[a11_0x13e8ee(0x1e2)]=workerDetails;let playwrightPatcher=null;shouldProcessEventForTesthub()&&patchConsoleLogger();const sendTestLog=o11yErrorHandler(async function sendTestLog(_0x5a4c32){const _0x3579b2=a11_0x13e8ee,_0x6cc346=workerDetails['currentTest'][_0x3579b2(0x259)];if(!_0x6cc346)return;await MyReporter[_0x3579b2(0x1f1)](_0x6cc346,_0x5a4c32);}),registerListeners=()=>{const _0x4d3a9e=a11_0x13e8ee,_0xc8e1f1={};_0xc8e1f1[_0x4d3a9e(0x234)]=_0x4d3a9e(0x214);const _0x17a2a2=_0xc8e1f1;logger[_0x4d3a9e(0x1e0)](_0x17a2a2[_0x4d3a9e(0x234)]),process[_0x4d3a9e(0x1b2)](_0x4d3a9e(0x1ad)+process[_0x4d3a9e(0x1b8)]),process['on'](_0x4d3a9e(0x1ad)+process['pid'],sendTestLog),PerformanceTester[_0x4d3a9e(0x22c)]();};modifyCommand(),setKeepAlive();const Before=cucumberModule[a11_0x13e8ee(0x269)],After=cucumberModule['After'],AfterAll=cucumberModule[a11_0x13e8ee(0x1fd)],BeforeAll=cucumberModule['BeforeAll'],AfterStep=cucumberModule[a11_0x13e8ee(0x1b9)],configuration=process[a11_0x13e8ee(0x23e)]['CONFIG'],bstackConfig=process[a11_0x13e8ee(0x23e)][a11_0x13e8ee(0x26c)];if(configuration!==undefined){const config=JSON[a11_0x13e8ee(0x24a)](configuration);isBrowserstackInfra()?(global[a11_0x13e8ee(0x1ef)]=isTrue(config[a11_0x13e8ee(0x1e3)]),global[a11_0x13e8ee(0x1b6)]=isTrue(config['skipSessionStatus'])):(global['__skipSessionName']=!![],global[a11_0x13e8ee(0x1b6)]=!![]);!helper[a11_0x13e8ee(0x247)](a11_0x13e8ee(0x1af))&&(logger[a11_0x13e8ee(0x1e0)](a11_0x13e8ee(0x226)),shouldProcessEventForTesthub()?require('../../index')[a11_0x13e8ee(0x1fb)](config,null,!![]):require(a11_0x13e8ee(0x233))[a11_0x13e8ee(0x1fb)](config));global[a11_0x13e8ee(0x216)]=config[a11_0x13e8ee(0x224)]||{};if(helper['getPackageVersion'](a11_0x13e8ee(0x1af)))try{logger[a11_0x13e8ee(0x1e0)](a11_0x13e8ee(0x22b)),playwrightPatcher=require(a11_0x13e8ee(0x279)),playwrightPatcher[a11_0x13e8ee(0x254)](config),logger[a11_0x13e8ee(0x1e0)]('Playwright\x20patching\x20initialized\x20for\x20Cucumber-JS');}catch(a11_0x3080e7){logger[a11_0x13e8ee(0x1e0)]('Error\x20initializing\x20Playwright\x20patching:\x20'+util['format'](a11_0x3080e7));}}if(bstackConfig!==undefined){const browserStackConfig=JSON[a11_0x13e8ee(0x24a)](bstackConfig);browserStackConfig&&(commandRepository[a11_0x13e8ee(0x246)](browserStackConfig),commandRepository[a11_0x13e8ee(0x1ee)]('cucumber-js'));}global[a11_0x13e8ee(0x21a)]=0x0;const __setDefaultTimeout=cucumberModule['setDefaultTimeout'];cucumberModule[a11_0x13e8ee(0x1fa)]=_0x52a97d=>{const _0x39e2de=a11_0x13e8ee,_0x3ede3e={'ouQHw':function(_0x3a5fa3,_0x29401d){return _0x3a5fa3(_0x29401d);}};global[_0x39e2de(0x21a)]=_0x52a97d,_0x3ede3e[_0x39e2de(0x270)](__setDefaultTimeout,_0x52a97d);};const a11_0x320624={};a11_0x320624[a11_0x13e8ee(0x278)]=a11_0x13e8ee(0x210),BeforeAll(a11_0x320624,async function(){const _0x4b1420=a11_0x13e8ee,_0x50f013={'GlcJM':function(_0x59855e,_0x44de89,_0x1d561a,_0x42ec10){return _0x59855e(_0x44de89,_0x1d561a,_0x42ec10);},'fxGFd':_0x4b1420(0x1d3),'rYZVD':_0x4b1420(0x272),'CgvAY':function(_0xa67c6f,_0x2431d9,_0x5844a){return _0xa67c6f(_0x2431d9,_0x5844a);},'xWQzw':_0x4b1420(0x1fc),'PJvKO':_0x4b1420(0x223),'jSOCQ':function(_0x1b11f7,_0x2b0ff0){return _0x1b11f7(_0x2b0ff0);},'GnPtS':_0x4b1420(0x27f),'IGfiK':_0x4b1420(0x244),'AdlSA':_0x4b1420(0x1b4),'XGpWc':_0x4b1420(0x268),'lYacF':function(_0x2f76c8){return _0x2f76c8();},'kdYFC':function(_0x2364b8){return _0x2364b8();}};PerformanceTester['startMonitoring'](),logger[_0x4b1420(0x1e0)](_0x50f013[_0x4b1420(0x1f9)]),global['__error_messages__']=[],global[_0x4b1420(0x1f4)]=![];if(playwrightPatcher)try{const _0x59dacd=_0x50f013[_0x4b1420(0x1bb)](require,_0x50f013[_0x4b1420(0x26e)]),_0x1d64a9=_0x50f013[_0x4b1420(0x1bb)](require,_0x50f013[_0x4b1420(0x25e)]),{FRAMEWORKS:_0x2e02c0}=_0x50f013[_0x4b1420(0x1bb)](require,_0x50f013[_0x4b1420(0x1fe)]);_0x59dacd['getInstance']()[_0x4b1420(0x23c)]()&&(logger[_0x4b1420(0x1e0)](_0x50f013['XGpWc']),_0x1d64a9[_0x4b1420(0x243)](_0x2e02c0[_0x4b1420(0x1e6)],_0x2e02c0[_0x4b1420(0x1c8)]),await _0x59dacd[_0x4b1420(0x1ff)]()[_0x4b1420(0x1ed)]());}catch(_0x4a5aa7){logger[_0x4b1420(0x1e0)](_0x4b1420(0x203)+util[_0x4b1420(0x267)](_0x4a5aa7));}_0x50f013[_0x4b1420(0x229)](shouldProcessEventForTesthub)&&(_0x50f013[_0x4b1420(0x21b)](registerListeners),_0x50f013[_0x4b1420(0x1bb)](addRequestSpy,![])),global['driverCleanup']=async()=>{const _0x23b807=_0x4b1420;let _0x56d5df=![];try{global[_0x23b807(0x232)]&&global['__drivers'][0x0]&&(await global[_0x23b807(0x232)][0x0]['session_'],_0x56d5df=!![],global[_0x23b807(0x1f4)]?await _0x50f013[_0x23b807(0x265)](markSessionStatus,global[_0x23b807(0x232)][0x0],_0x50f013['fxGFd'],global[_0x23b807(0x27c)][_0x23b807(0x1ac)](_0x50f013[_0x23b807(0x1d4)])):await _0x50f013[_0x23b807(0x242)](markSessionStatus,global[_0x23b807(0x232)][0x0],_0x50f013[_0x23b807(0x230)]));}catch(_0x33bd84){logger['debug']('Error:\x20cleaning\x20up\x20driver:\x20'+_0x33bd84);}global[_0x23b807(0x27c)]=[],global[_0x23b807(0x1f4)]=![];if(_0x56d5df)try{await global['__drivers'][0x0][_0x23b807(0x1e8)](),global[_0x23b807(0x232)][0x0]['session_'][_0x23b807(0x25f)](_0x58c38c=>{const _0x3b5162=_0x23b807;logger[_0x3b5162(0x1e0)](_0x3b5162(0x1e5)+_0x58c38c[_0x3b5162(0x22e)]());})[_0x23b807(0x1b7)](_0x56dac3=>{});}catch(_0xa005c2){logger[_0x23b807(0x1e0)](_0x23b807(0x273)+_0xa005c2);}};});const a11_0x26922b={};function a11_0xd005(){const _0x44d5f4=['@cucumber/cucumber','Rjoxe','rhYrQ','Flow\x20detection:\x20isSeleniumFlow=','currentTest','pickle','testCaseStartedId','join','bs:addLog:','../../helpers/test-observability/utils','@playwright/test','IOSQv','dOSvN','removeAllListeners','cleanup','../utils/constants','Error\x20determining\x20test\x20flow:\x20','__skipSessionStatus','catch','pid','AfterStep','IAkNA','jSOCQ','executeScript','lodash','../../helpers/globals','FVLkb','Error\x20in\x20playwright\x20beforeTestHook:\x20','driverCleanup','ngLxc','shutdown','\x0aError:\x20','laNet','126tICApr','BROWSERSTACK_TESTHUB_UUID','PLAYWRIGHT','fuhGA','integrations','../../helpers/setKeepAlive','test_run','Error\x20executing\x20fallback\x20deferred\x20closes:\x20','length','setTestNameForHealingContext','quitCount_','2329359xHegGm','Failed:\x20','failed','rYZVD','Inside\x20browserstack\x20Before','YWxJw','../../helpers/accessibility-automation/helper','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20\x22','split','toLowerCase','Playwright\x20flow\x20detected\x20-\x20page\x20exists:\x20','thTestRunUuid','PVKqR','QwxDk','3|4|0|2|1','debug','isAccessibilityPlatform','__workerDetails','skipSessionName','text','Error:\x20in\x20quitting\x20driver\x20','CUCUMBER','\x22}}','initQuit','uuid','saveTestResults','browserstackSessionName','stopMonitoring','bootstrap','setFramework','__skipSessionName','Exception\x20in\x20setting\x20bstackA11yShouldScan\x20in\x20Before\x20Scenario\x20','addTestUIDAndReportLog','finally','beforeTestHook','__sessionFailed','tags','executeAsyncScript','aFDFx','closeTracker','PJvKO','setDefaultTimeout','browserstackAgentV2','passed','AfterAll','AdlSA','getInstance','timeout','vSEXK','Inside\x20browserstack\x20After','Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','lZmBh','kmQZR','../playwright/reporter/test-details.js','9777078mkBYQB','SgVFE','../../helpers/testhub/utils','bstackA11yShouldScan','KkHaT','zPQNi','o11ySyncDone','../../helpers/accessibility-automation/scripts','IhgSE','bstack','Error:\x20at\x20After\x20(Selenium):\x20','oSJau','../../helpers/performance/performance-tester','Inside\x20browserstack\x20registerListeners','iWsSL','__platformCaps','toString','fYGIQ','Inside\x20browserstack\x20AfterAll','__timeout','kdYFC','shift','2321560tAkowN','../../helpers/helper','Cqbxc','@cucumber/cucumber/lib/index.js','rsGvI','186348DKpBMI','Inside\x20browserstack\x20BeforeAll','platformCaps','executeDeferredCloses','Performing\x20Selenium\x20Patching','mtPBF','thJwtToken','lYacF','DqoCJ','Performing\x20Playwright\x20Patching','startMonitoring','map','getId','util','xWQzw','994538OboHYT','__drivers','../../index','nvTIK','message','Error:\x20in\x20After\x20Step\x20for\x20driver\x20','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','4180552KBnIBe','LlJlZ','status','jVDDC','isCliEnabled','../../helpers/logger','env','927756ZXUpKl','IuJvT','stringify','CgvAY','setFrameworkDetail','../v2/cliUtils','Cleaned\x20up\x20Playwright\x20close\x20tracker','setConfig','getPackageVersion','../../helpers/test-observability/sessionHandler','mROWY','parse','ZUpgK',',\x20isPlaywrightFlow=','Performing\x20scan\x20before\x20saving\x20results','../../helpers/test-observability/requestQueueHandler','Cucumber-JS','VgsQq','push','DxoGi','../playwright/reporter/reporter.js','initializePlaywrightPatching','winstonLogger','LzDeV','EcRpm','result','testInfo','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case.\x20Error\x20:\x20','Error:\x20at\x20After\x20(Playwright):\x20','NxETt','ZYeTA','IGfiK','then','afterTestHook','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','5sHGaUD','jAHtV','tRUdJ','GlcJM','../../helpers/ai-sdk/autoHealHelper','format','Bootstrapping\x20BrowserstackCLI\x20for\x20cucumber-js\x20worker\x20process','Before','ENV_VAR','getGlobal','BSTACK_CONFIG',',\x22level\x22:\x20\x22','GnPtS','pickleStep','ouQHw','BROWSERSTACK_TESTHUB_JWT','\x20|\x20','Error:\x20quiting\x20driver\x20at\x20driver\x20cleanup:\x20','OdnyX','pwPage','UEgvs','info','name','./playwright-patcher','setGlobal','getTestUUID','__error_messages__','Error:\x20at\x20After\x20Step:\x20','session_','../v2/browserstackCLI'];a11_0xd005=function(){return _0x44d5f4;};return a11_0xd005();}function a11_0x5610(_0x3e976c,_0x2b1903){const _0xd005f9=a11_0xd005();return a11_0x5610=function(_0x561057,_0x239df2){_0x561057=_0x561057-0x1aa;let _0x547ef9=_0xd005f9[_0x561057];return _0x547ef9;},a11_0x5610(_0x3e976c,_0x2b1903);}a11_0x26922b[a11_0x13e8ee(0x278)]='bstack',a11_0x26922b[a11_0x13e8ee(0x200)]=TEST_FRAMEWORK_HOOK_TIMEOUT[a11_0x13e8ee(0x24f)],Before(a11_0x26922b,function(_0x1388c3,_0x5e41ff){const _0x36d786=a11_0x13e8ee,_0x3379b1={'fYGIQ':function(_0x517b42,_0x5ecd59){return _0x517b42>_0x5ecd59;},'lZmBh':function(_0x2160e2,_0x32293b){return _0x2160e2>_0x32293b;},'IAkNA':function(_0x544f82,_0x1ef129){return _0x544f82(_0x1ef129);},'KkHaT':function(_0x3207dc,_0x256422,_0x112789,_0x2a688d){return _0x3207dc(_0x256422,_0x112789,_0x2a688d);},'Rjoxe':_0x36d786(0x20a),'UEgvs':function(_0x17808c){return _0x17808c();},'Awhan':_0x36d786(0x1d5)};commandRepository[_0x36d786(0x1cf)](_0x1388c3[_0x36d786(0x1aa)][_0x36d786(0x278)]),logger[_0x36d786(0x1e0)](_0x3379b1['Awhan']),new Promise(async _0x517bed=>{const _0x10c2aa=_0x36d786;try{global['__drivers']&&_0x3379b1[_0x10c2aa(0x218)](global[_0x10c2aa(0x232)][_0x10c2aa(0x1ce)],0x1)&&(await global[_0x10c2aa(0x1c1)](),global[_0x10c2aa(0x232)][_0x10c2aa(0x21c)]()),global[_0x10c2aa(0x232)]&&global[_0x10c2aa(0x232)][0x0]&&global[_0x10c2aa(0x232)][0x0]['quitCount_']&&_0x3379b1[_0x10c2aa(0x204)](global[_0x10c2aa(0x232)][0x0][_0x10c2aa(0x1d0)],0x0)&&await global[_0x10c2aa(0x1c1)]();}catch(_0x12e1c1){logger[_0x10c2aa(0x1e0)]('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x12e1c1);}workerDetails['currentTest'][_0x10c2aa(0x259)]=_0x1388c3;if(playwrightPatcher)try{await playwrightPatcher[_0x10c2aa(0x1f3)](_0x1388c3);}catch(_0x160c41){logger[_0x10c2aa(0x1e0)](_0x10c2aa(0x1c0)+util[_0x10c2aa(0x267)](_0x160c41));}try{if(!_0x3379b1[_0x10c2aa(0x1ba)](isUndefined,_0x1388c3['pickle'][_0x10c2aa(0x1f5)])){const _0x166f59=_0x3379b1[_0x10c2aa(0x20b)](shouldScanTestForAccessibility,null,![],_0x1388c3[_0x10c2aa(0x1aa)]['tags'][_0x10c2aa(0x22d)](({name:_0x3e5866})=>_0x3e5866));globals[_0x10c2aa(0x27a)](_0x3379b1[_0x10c2aa(0x281)],_0x166f59);}}catch(_0x3fd5ed){logger[_0x10c2aa(0x1e0)](_0x10c2aa(0x1f0)+util[_0x10c2aa(0x267)](_0x3fd5ed));}_0x3379b1[_0x10c2aa(0x276)](_0x517bed);})[_0x36d786(0x1f2)](_0x5e41ff);});const a11_0x2ec8a7={};a11_0x2ec8a7['name']=a11_0x13e8ee(0x210),a11_0x2ec8a7[a11_0x13e8ee(0x200)]=TEST_FRAMEWORK_HOOK_TIMEOUT[a11_0x13e8ee(0x24f)],After(a11_0x2ec8a7,function(_0x489327,_0x11ea35){const _0x236f76=a11_0x13e8ee,_0x5b84ed={'jAHtV':function(_0x52e7d6,_0x254299){return _0x52e7d6>_0x254299;},'aFDFx':function(_0x5107aa,_0x2d95a8){return _0x5107aa===_0x2d95a8;},'ngLxc':_0x236f76(0x1d3),'ONPLL':function(_0x400088,_0x45e046){return _0x400088>_0x45e046;},'oSJau':function(_0x49d63e,_0x5ee720,_0xf02ea4,_0x2b87e9){return _0x49d63e(_0x5ee720,_0xf02ea4,_0x2b87e9);},'IhgSE':'\x20|\x20','IuJvT':function(_0x483b00,_0x1b7774,_0x38b89d){return _0x483b00(_0x1b7774,_0x38b89d);},'QwxDk':_0x236f76(0x1fc),'OdnyX':'Completed\x20Playwright\x20afterTestHook\x20execution','EcRpm':'Executed\x20fallback\x20deferred\x20Playwright\x20closes\x20after\x20error','iWsSL':function(_0x2e5c60){return _0x2e5c60();},'SgVFE':'CBTSessionCreated','kmQZR':_0x236f76(0x1e1),'tRUdJ':_0x236f76(0x20a),'LlJlZ':_0x236f76(0x237),'DxoGi':_0x236f76(0x24d),'YWxJw':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','qBkpk':_0x236f76(0x202)};logger[_0x236f76(0x1e0)](_0x5b84ed['qBkpk']),workerDetails['currentTest'][_0x236f76(0x259)]=_0x489327,new Promise(async _0x49828f=>{const _0x457d4c=_0x236f76;let _0x14cd03=![],_0x130477=![],_0x131972=![];try{global[_0x457d4c(0x232)]&&_0x5b84ed[_0x457d4c(0x263)](global[_0x457d4c(0x232)][_0x457d4c(0x1ce)],0x0)&&(_0x130477=!![]),playwrightPatcher&&global[_0x457d4c(0x1e2)]&&global[_0x457d4c(0x1e2)][_0x457d4c(0x275)]&&(_0x131972=!![],logger[_0x457d4c(0x1e0)](_0x457d4c(0x1db)+!!global['__workerDetails'][_0x457d4c(0x275)]));}catch(_0x1da595){logger['debug'](_0x457d4c(0x1b5)+_0x1da595);}logger['debug'](_0x457d4c(0x283)+_0x130477+_0x457d4c(0x24c)+_0x131972);const _0x4d3433=_0x489327[_0x457d4c(0x258)]['status'][_0x457d4c(0x217)]()['toLowerCase'](),_0x1d2820=_0x5b84ed[_0x457d4c(0x1f7)](_0x4d3433,_0x5b84ed['ngLxc'])||_0x5b84ed[_0x457d4c(0x1f7)](_0x4d3433,'6'),_0x27c689=_0x1d2820?_0x489327['result'][_0x457d4c(0x235)]:null;if(_0x1d2820)try{global[_0x457d4c(0x27c)][_0x457d4c(0x251)](_0x489327[_0x457d4c(0x258)][_0x457d4c(0x235)]),global[_0x457d4c(0x1f4)]=!![];}catch(_0x46d313){logger['debug']('Error:\x20adding\x20scenario\x20error\x20at\x20After:\x20'+_0x46d313);}if(_0x130477)try{global[_0x457d4c(0x232)]&&_0x5b84ed['ONPLL'](global[_0x457d4c(0x232)][_0x457d4c(0x1ce)],0x1)&&(await global[_0x457d4c(0x1c1)](),global[_0x457d4c(0x232)]['shift'](),global[_0x457d4c(0x27c)]=[],global[_0x457d4c(0x1f4)]=![]),global['__drivers']&&global[_0x457d4c(0x232)][0x0]&&(await global[_0x457d4c(0x232)][0x0][_0x457d4c(0x27e)],_0x14cd03=!![],!global['__skipSessionName']&&await global['__drivers'][0x0][_0x457d4c(0x1bc)](_0x457d4c(0x1d8)+_0x489327['pickle'][_0x457d4c(0x278)]+_0x457d4c(0x1e7)),_0x1d2820?await _0x5b84ed[_0x457d4c(0x212)](markSessionStatus,global[_0x457d4c(0x232)][0x0],_0x5b84ed[_0x457d4c(0x1c2)],global[_0x457d4c(0x27c)]['join'](_0x5b84ed[_0x457d4c(0x20f)])):await _0x5b84ed[_0x457d4c(0x240)](markSessionStatus,global[_0x457d4c(0x232)][0x0],_0x5b84ed[_0x457d4c(0x1de)]));}catch(_0xab1709){logger['debug'](_0x457d4c(0x211)+util[_0x457d4c(0x267)](_0xab1709));}if(_0x131972)try{const _0x45be86=_0x1d2820?_0x5b84ed['ngLxc']:_0x5b84ed['QwxDk'];await playwrightPatcher[_0x457d4c(0x260)](_0x489327,_0x45be86,_0x27c689),logger[_0x457d4c(0x1e0)](_0x5b84ed[_0x457d4c(0x274)]);}catch(_0x4fe772){logger['debug'](_0x457d4c(0x25b)+util[_0x457d4c(0x267)](_0x4fe772));try{playwrightPatcher[_0x457d4c(0x225)]&&(await playwrightPatcher[_0x457d4c(0x225)](),logger['debug'](_0x5b84ed[_0x457d4c(0x257)]));}catch(_0x15188a){logger[_0x457d4c(0x1e0)](_0x457d4c(0x1cd)+util[_0x457d4c(0x267)](_0x15188a));}}try{if(_0x5b84ed[_0x457d4c(0x215)](shouldProcessEventForTesthub)){const _0x2435f8=TestDetails[_0x457d4c(0x27b)](_0x489327[_0x457d4c(0x1ab)]);let _0x5651e0=null;global[_0x457d4c(0x232)]&&global[_0x457d4c(0x232)][0x0]&&(_0x5651e0=await _0x5b84ed['oSJau'](sendPlatformDetails,global[_0x457d4c(0x232)][0x0],_0x2435f8,!![]));const _0x4e68a8={};_0x4e68a8[_0x457d4c(0x1e9)]=_0x2435f8,_0x4e68a8[_0x457d4c(0x1ca)]=_0x5651e0;const _0x33cf71=_0x4e68a8,_0x2658d2={};_0x2658d2['event_type']=_0x5b84ed[_0x457d4c(0x208)],_0x2658d2[_0x457d4c(0x1cc)]=_0x33cf71,await SessionHandler['uploadEventData'](_0x2658d2);}}catch(_0x2c2a8a){logger[_0x457d4c(0x1e0)]('Error:\x20sendPlatformDetails\x20at\x20After:\x20'+util[_0x457d4c(0x267)](_0x2c2a8a));}try{if(globals[_0x457d4c(0x26b)](_0x5b84ed[_0x457d4c(0x205)])&&globals[_0x457d4c(0x26b)](_0x5b84ed[_0x457d4c(0x264)])){logger[_0x457d4c(0x277)](_0x5b84ed[_0x457d4c(0x239)]);const _0x5caa32=TestDetails[_0x457d4c(0x27b)](_0x489327[_0x457d4c(0x1ab)]),_0x53728a={};_0x53728a[_0x457d4c(0x1dc)]=_0x5caa32,_0x53728a['thBuildUuid']=process[_0x457d4c(0x23e)][testHubConstants[_0x457d4c(0x26a)][_0x457d4c(0x1c7)]],_0x53728a[_0x457d4c(0x228)]=process[_0x457d4c(0x23e)][testHubConstants[_0x457d4c(0x26a)][_0x457d4c(0x271)]];const _0x598554=_0x53728a;logger[_0x457d4c(0x1e0)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON['stringify'](_0x598554)),logger[_0x457d4c(0x1e0)](_0x5b84ed[_0x457d4c(0x252)]),global[_0x457d4c(0x232)]&&global[_0x457d4c(0x232)][0x0]&&(logger[_0x457d4c(0x1e0)](util[_0x457d4c(0x267)](await global['__drivers'][0x0]['executeAsyncScript'](scripts['performScan'],{'method':global[_0x457d4c(0x1eb)]}))),await global[_0x457d4c(0x232)][0x0][_0x457d4c(0x1f6)](scripts[_0x457d4c(0x1ea)],_0x598554)),logger[_0x457d4c(0x277)](_0x5b84ed[_0x457d4c(0x1d6)]);}}catch(_0x390cd6){logger['error'](_0x457d4c(0x25a)+util[_0x457d4c(0x267)]);}if(_0x14cd03)try{global['__drivers'][0x0]&&_0x5b84ed['ONPLL'](global['__drivers'][0x0][_0x457d4c(0x1d0)],0x0)&&await global[_0x457d4c(0x232)][0x0][_0x457d4c(0x1e8)]();}catch(_0x367b46){logger[_0x457d4c(0x1e0)]('Error:\x20quiting\x20driver\x20at\x20After:\x20'+_0x367b46);}_0x5b84ed[_0x457d4c(0x215)](_0x49828f);})['finally'](()=>_0x11ea35());});const a11_0x2231a6={};a11_0x2231a6[a11_0x13e8ee(0x278)]=a11_0x13e8ee(0x210),a11_0x2231a6[a11_0x13e8ee(0x200)]=TEST_FRAMEWORK_HOOK_TIMEOUT[a11_0x13e8ee(0x24f)],AfterStep(a11_0x2231a6,function(_0x3e339f,_0x3db0c1){const _0x5ba711=a11_0x13e8ee,_0x56285f={'KRBSl':function(_0x33e746,_0x4d8d3a){return _0x33e746===_0x4d8d3a;},'vSEXK':_0x5ba711(0x1d3),'fuhGA':function(_0x49777b,_0x15cb83){return _0x49777b===_0x15cb83;},'zPQNi':function(_0x2a70f9,_0x3172d7){return _0x2a70f9!==_0x3172d7;},'rhYrQ':function(_0x23232b,_0x2683b4,_0x37b08a){return _0x23232b(_0x2683b4,_0x37b08a);},'VgsQq':function(_0x4e0f5c,_0x31c343){return _0x4e0f5c+_0x31c343;},'dOSvN':function(_0xca42d9,_0x5c85ec){return _0xca42d9+_0x5c85ec;},'mtPBF':function(_0x128354,_0x49cf23){return _0x128354+_0x49cf23;},'mROWY':_0x5ba711(0x1d2),'IOSQv':_0x5ba711(0x1c4),'laNet':'error','PVKqR':function(_0x5e180f,_0x5333e3,_0x58e6fc){return _0x5e180f(_0x5333e3,_0x58e6fc);},'ZUpgK':function(_0x230baa,_0x150f2b){return _0x230baa+_0x150f2b;},'likWU':'Passed:\x20','Qyrut':_0x5ba711(0x277),'NxETt':function(_0xdb0245,_0xc0dbf1,_0x58a8d8){return _0xdb0245(_0xc0dbf1,_0x58a8d8);},'jVDDC':'Passed','DqoCJ':function(_0x3feda9){return _0x3feda9();},'ZYeTA':'Inside\x20browserstack\x20AfterStep'};logger[_0x5ba711(0x1e0)](_0x56285f[_0x5ba711(0x25d)]);const _0x375f7b=async(_0x290079,_0x1d7f8b)=>{const _0x134454=_0x5ba711;global[_0x134454(0x232)]&&global[_0x134454(0x232)][0x0]&&await global[_0x134454(0x232)][0x0]['executeScript'](_0x134454(0x261)+_0x290079+_0x134454(0x26d)+_0x1d7f8b+_0x134454(0x1e7));};new Promise(async _0x51f617=>{const _0x510a98=_0x5ba711;try{_0x56285f['KRBSl'](_0x3e339f[_0x510a98(0x258)][_0x510a98(0x23a)][_0x510a98(0x217)]()['toLowerCase'](),_0x56285f[_0x510a98(0x201)])||_0x56285f[_0x510a98(0x1c9)](_0x3e339f[_0x510a98(0x258)][_0x510a98(0x23a)]['toString']()[_0x510a98(0x1da)](),'6')?(global['__sessionFailed']=!![],global[_0x510a98(0x27c)]['push'](_0x3e339f[_0x510a98(0x258)]['message']),_0x56285f['zPQNi'](_0x3e339f[_0x510a98(0x26f)],undefined)?await _0x56285f[_0x510a98(0x282)](_0x375f7b,JSON[_0x510a98(0x241)](_0x56285f[_0x510a98(0x250)](_0x56285f[_0x510a98(0x1b1)](_0x56285f['mtPBF'](_0x56285f['mROWY'],'\x22'+_0x3e339f[_0x510a98(0x26f)]['text']+'\x22\x20'),_0x56285f[_0x510a98(0x1b0)]),_0x3e339f['result'][_0x510a98(0x235)])),_0x56285f['laNet']):await _0x56285f['PVKqR'](_0x375f7b,JSON[_0x510a98(0x241)](_0x56285f[_0x510a98(0x227)](_0x56285f[_0x510a98(0x249)],_0x3e339f[_0x510a98(0x258)][_0x510a98(0x235)])),_0x56285f[_0x510a98(0x1c5)])):_0x56285f[_0x510a98(0x20c)](_0x3e339f[_0x510a98(0x26f)],undefined)?await _0x56285f[_0x510a98(0x1dd)](_0x375f7b,JSON['stringify'](_0x56285f[_0x510a98(0x24b)](_0x56285f['likWU'],'\x22'+_0x3e339f['pickleStep'][_0x510a98(0x1e4)]+'\x22')),_0x56285f['Qyrut']):await _0x56285f[_0x510a98(0x25c)](_0x375f7b,JSON['stringify'](_0x56285f[_0x510a98(0x23b)]),_0x56285f['Qyrut']),global[_0x510a98(0x232)]&&global[_0x510a98(0x232)][0x0]&&global[_0x510a98(0x232)][0x0][_0x510a98(0x27e)][_0x510a98(0x25f)](_0x45f928=>{})['catch'](_0x3b4fbf=>{const _0x5ceb6f=_0x510a98;logger[_0x5ceb6f(0x1e0)](_0x5ceb6f(0x236)+util[_0x5ceb6f(0x267)](_0x3b4fbf));});}catch(_0x27d9f5){logger[_0x510a98(0x1e0)](_0x510a98(0x27d)+_0x27d9f5);}_0x56285f[_0x510a98(0x22a)](_0x51f617);})['finally'](()=>_0x3db0c1());});const a11_0xa8ac96={};a11_0xa8ac96[a11_0x13e8ee(0x278)]=a11_0x13e8ee(0x210),a11_0xa8ac96[a11_0x13e8ee(0x200)]=TEST_FRAMEWORK_HOOK_TIMEOUT[a11_0x13e8ee(0x24f)],AfterAll(a11_0xa8ac96,async function(_0x1fdd95,_0x599ffa){const _0x2988ca=a11_0x13e8ee,_0x4a964d={'Cqbxc':_0x2988ca(0x1df),'rsGvI':_0x2988ca(0x245),'FVLkb':function(_0x59b7e5){return _0x59b7e5();},'LzDeV':_0x2988ca(0x219)};logger['debug'](_0x4a964d[_0x2988ca(0x256)]),await new Promise(async _0x5e8285=>{const _0x31a51a=_0x2988ca,_0x4e3d64=_0x4a964d[_0x31a51a(0x21f)][_0x31a51a(0x1d9)]('|');let _0x23dd93=0x0;while(!![]){switch(_0x4e3d64[_0x23dd93++]){case'0':try{playwrightPatcher&&playwrightPatcher[_0x31a51a(0x225)]&&(await playwrightPatcher[_0x31a51a(0x225)](),playwrightPatcher['closeTracker']&&playwrightPatcher[_0x31a51a(0x1f8)][_0x31a51a(0x1b3)](),logger[_0x31a51a(0x1e0)](_0x4a964d[_0x31a51a(0x221)]));}catch(_0x135943){logger['debug']('Error\x20cleaning\x20up\x20Playwright\x20close\x20tracker:\x20'+util['format'](_0x135943));}continue;case'1':_0x4a964d[_0x31a51a(0x1bf)](_0x5e8285);continue;case'2':await global[_0x31a51a(0x1c1)]();continue;case'3':await RequestQueueHandler[_0x31a51a(0x1ff)]()[_0x31a51a(0x1c3)]();continue;case'4':PerformanceTester[_0x31a51a(0x1ec)]();continue;}break;}});});
|
|
1
|
+
const a11_0x5bd4a0=a11_0x143a;(function(_0x449907,_0x1860d8){const _0x4e2657=a11_0x143a,_0x70d841=_0x449907();while(!![]){try{const _0x1eb579=-parseInt(_0x4e2657(0x1a2))/0x1*(-parseInt(_0x4e2657(0x1d9))/0x2)+parseInt(_0x4e2657(0x19e))/0x3*(parseInt(_0x4e2657(0x199))/0x4)+-parseInt(_0x4e2657(0x1e8))/0x5*(parseInt(_0x4e2657(0x1a8))/0x6)+-parseInt(_0x4e2657(0x1bb))/0x7*(parseInt(_0x4e2657(0x1ed))/0x8)+parseInt(_0x4e2657(0x1b8))/0x9*(-parseInt(_0x4e2657(0x16b))/0xa)+-parseInt(_0x4e2657(0x176))/0xb*(parseInt(_0x4e2657(0x1c9))/0xc)+parseInt(_0x4e2657(0x21d))/0xd;if(_0x1eb579===_0x1860d8)break;else _0x70d841['push'](_0x70d841['shift']());}catch(_0x583570){_0x70d841['push'](_0x70d841['shift']());}}}(a11_0x16a9,0x91114));const {requireModule,modifyCommand,isTrue,markSessionStatus,isBrowserstackInfra,playwrightSetSessionName,playwrightMarkSessionStatus,nestedKeyValue}=require(a11_0x5bd4a0(0x20b)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a11_0x5bd4a0(0x15a)),setKeepAlive=require(a11_0x5bd4a0(0x1c1)),util=require(a11_0x5bd4a0(0x1fd)),PerformanceTester=require(a11_0x5bd4a0(0x16d)),{commandRepository}=require('../../helpers/ai-sdk/autoHealHelper'),cucumberModule=requireModule(a11_0x5bd4a0(0x147),a11_0x5bd4a0(0x1c0)),logger=require('../../helpers/logger')[a11_0x5bd4a0(0x161)],{shouldProcessEventForTesthub}=require(a11_0x5bd4a0(0x188)),{sendPlatformDetails,addRequestSpy,patchConsoleLogger}=require(a11_0x5bd4a0(0x196)),TestDetails=require(a11_0x5bd4a0(0x1b5)),RequestQueueHandler=require(a11_0x5bd4a0(0x17f)),{o11yErrorHandler}=require(a11_0x5bd4a0(0x1be)),MyReporter=require(a11_0x5bd4a0(0x1df)),SessionHandler=require(a11_0x5bd4a0(0x1d7)),scripts=require(a11_0x5bd4a0(0x20a)),globals=require(a11_0x5bd4a0(0x17d)),testHubConstants=require(a11_0x5bd4a0(0x1ab)),{shouldScanTestForAccessibility}=require(a11_0x5bd4a0(0x152)),{isUndefined}=require(a11_0x5bd4a0(0x160)),helper=require('../../helpers/helper'),a11_0x370d9c={};a11_0x370d9c['workerInfo']=undefined,a11_0x370d9c[a11_0x5bd4a0(0x1b0)]={},a11_0x370d9c[a11_0x5bd4a0(0x167)]=![],a11_0x370d9c[a11_0x5bd4a0(0x1ef)]=null,a11_0x370d9c[a11_0x5bd4a0(0x1e4)]=![],a11_0x370d9c[a11_0x5bd4a0(0x1b0)]['id']=undefined,a11_0x370d9c[a11_0x5bd4a0(0x1b0)]['testInfo']=undefined;const workerDetails=a11_0x370d9c;global[a11_0x5bd4a0(0x1db)]=workerDetails;let playwrightPatcher=null;shouldProcessEventForTesthub()&&patchConsoleLogger();const sendTestLog=o11yErrorHandler(async function sendTestLog(_0x4dec70){const _0x24f160=a11_0x5bd4a0,_0x35d46c=workerDetails[_0x24f160(0x1b0)][_0x24f160(0x185)];if(!_0x35d46c)return;await MyReporter[_0x24f160(0x1dd)](_0x35d46c,_0x4dec70);}),registerListeners=()=>{const _0xc0f4f6=a11_0x5bd4a0,_0x98551c={};_0x98551c[_0xc0f4f6(0x1b1)]=_0xc0f4f6(0x197);const _0x3b7e73=_0x98551c;logger[_0xc0f4f6(0x158)](_0x3b7e73[_0xc0f4f6(0x1b1)]),process['removeAllListeners'](_0xc0f4f6(0x214)+process[_0xc0f4f6(0x177)]),process['on'](_0xc0f4f6(0x214)+process[_0xc0f4f6(0x177)],sendTestLog),PerformanceTester['startMonitoring']();};modifyCommand(),setKeepAlive();const Before=cucumberModule[a11_0x5bd4a0(0x189)],After=cucumberModule[a11_0x5bd4a0(0x178)],AfterAll=cucumberModule[a11_0x5bd4a0(0x1ac)],BeforeAll=cucumberModule[a11_0x5bd4a0(0x18f)],AfterStep=cucumberModule[a11_0x5bd4a0(0x16c)],configuration=process[a11_0x5bd4a0(0x1c6)][a11_0x5bd4a0(0x153)],bstackConfig=process[a11_0x5bd4a0(0x1c6)][a11_0x5bd4a0(0x1c3)];if(configuration!==undefined){const config=JSON[a11_0x5bd4a0(0x21a)](configuration);isBrowserstackInfra()?(global[a11_0x5bd4a0(0x17a)]=isTrue(config['skipSessionName']),global['__skipSessionStatus']=isTrue(config[a11_0x5bd4a0(0x1bd)])):(global[a11_0x5bd4a0(0x17a)]=!![],global['__skipSessionStatus']=!![]);!helper[a11_0x5bd4a0(0x1b2)](a11_0x5bd4a0(0x19d))&&(logger[a11_0x5bd4a0(0x158)](a11_0x5bd4a0(0x1d5)),shouldProcessEventForTesthub()?require(a11_0x5bd4a0(0x174))[a11_0x5bd4a0(0x169)](config,null,!![]):require(a11_0x5bd4a0(0x174))['browserstackAgentV2'](config));global[a11_0x5bd4a0(0x207)]=config[a11_0x5bd4a0(0x1aa)]||{};if(helper['getPackageVersion'](a11_0x5bd4a0(0x19d)))try{logger[a11_0x5bd4a0(0x158)](a11_0x5bd4a0(0x155)),playwrightPatcher=require(a11_0x5bd4a0(0x1ae)),playwrightPatcher[a11_0x5bd4a0(0x209)](config),logger[a11_0x5bd4a0(0x158)]('Playwright\x20patching\x20initialized\x20for\x20Cucumber-JS');}catch(a11_0x1fb641){logger['debug'](a11_0x5bd4a0(0x15e)+util[a11_0x5bd4a0(0x1cd)](a11_0x1fb641));}}function a11_0x16a9(){const _0xe561dc=['Error:\x20sendPlatformDetails\x20at\x20After:\x20','quitCount_','beforeTestHook','setTestNameForHealingContext','../../index','__error_messages__','121jYyiuD','pid','After','qVerg','__skipSessionName','jMUOK','failed','../../helpers/globals',',\x22level\x22:\x20\x22','../../helpers/test-observability/requestQueueHandler','Error\x20determining\x20test\x20flow:\x20','rohQX','BROWSERSTACK_TESTHUB_UUID','tZaoU','qutIw','testInfo','fcDjp','eXOuS','../../helpers/testhub/utils','Before','ySTAF','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','iIbti','yHGaP','rcisq','BeforeAll','fUzSo','../v2/cliUtils','ciOzA','UVRlf','toLowerCase','Playwright\x20flow\x20detected\x20-\x20page\x20exists:\x20','../../helpers/test-observability/utils','Inside\x20browserstack\x20registerListeners','DBSqX','92BhcMUo','apsfZ','pickle','fggmn','@playwright/test','48369wevwyN','stringify','EwUSQ','testCaseStartedId','3530ebXhRO','ENV_VAR','passed','shift','cucumber-js','saveTestResults','25746yDtnsG','Cucumber-JS','platformCaps','../../helpers/testhub/constants.js','AfterAll','afterTestHook','./playwright-patcher','KfGji','currentTest','NDnCw','getPackageVersion','Error:\x20quiting\x20driver\x20at\x20driver\x20cleanup:\x20','Error:\x20at\x20After\x20Step:\x20','../playwright/reporter/test-details.js','catch','getGlobal','1143756POLhYi','wtZAD','Performing\x20scan\x20before\x20saving\x20results','91497GHrJKP','setFrameworkDetail','skipSessionStatus','../../helpers/test-observability/error-handler','PAXIr','@cucumber/cucumber','../../helpers/setKeepAlive','WShHp','BSTACK_CONFIG','getInstance','cXdLY','env','Exception\x20in\x20setting\x20bstackA11yShouldScan\x20in\x20Before\x20Scenario\x20','error','416088prOrDI','map','dZvbH','\x20|\x20','format','info','vCTVI','push','tags','executeDeferredCloses','isAccessibilityPlatform','name','Performing\x20Selenium\x20Patching','PLAYWRIGHT','../../helpers/test-observability/sessionHandler','ESGYv','404KEoCUR','Executed\x20fallback\x20deferred\x20Playwright\x20closes\x20after\x20error','__workerDetails','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','addTestUIDAndReportLog','startMonitoring','../playwright/reporter/reporter.js','Error:\x20quiting\x20driver\x20at\x20After:\x20','Error\x20executing\x20fallback\x20deferred\x20closes:\x20','XYeDm','iJvnw','isPageFixture','yBQvC','dgsOA','getTestUUID','390zQJZWX','fAqZH','Failed:\x20','cZmpn','aGwjZ','568xEFUpA','Inside\x20browserstack\x20After','pwPage','toString','KuIKH','uuid','Inside\x20browserstack\x20BeforeAll','SiXkO','Mswmd','bstack','timeout','xSJEl','Error\x20cleaning\x20up\x20Playwright\x20close\x20tracker:\x20','__drivers','thJwtToken','FbRwS','util','Nrake','executeScript','jkKbs','jhLxf','session_','bstackA11yShouldScan','text','setDefaultTimeout','tYbhK','__platformCaps','cleanup','initializePlaywrightPatching','../../helpers/accessibility-automation/scripts','../../helpers/helper','iAYNr','Inside\x20browserstack\x20AfterAll','CUCUMBER','bffsp','bootstrap','QcjGA','WpooU','\x0aError:\x20','bs:addLog:','__timeout','getId','Error:\x20in\x20After\x20Step\x20for\x20driver\x20','executeAsyncScript','then','parse','__sessionFailed','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case.\x20Error\x20:\x20','18312164dFZSig','@cucumber/cucumber/lib/index.js','\x22}}','Error:\x20cleaning\x20up\x20driver:\x20','PkNIa','Cleaned\x20up\x20Playwright\x20close\x20tracker','CBTSessionCreated','status','join','driverCleanup','message','result','../../helpers/accessibility-automation/helper','CONFIG','Tfbvj','Performing\x20Playwright\x20Patching','pickleStep','setGlobal','debug','initQuit','../utils/constants','Error:\x20adding\x20scenario\x20error\x20at\x20After:\x20','length','thTestRunUuid','Error\x20initializing\x20Playwright\x20patching:\x20','BbHRZ','lodash','winstonLogger','finally','isCliEnabled','closeTracker','integrations','rCRVg','o11ySyncDone','../v2/browserstackCLI','browserstackAgentV2','YqOGa','20ZsVtDC','AfterStep','../../helpers/performance/performance-tester','hkhTw','YXJzb'];a11_0x16a9=function(){return _0xe561dc;};return a11_0x16a9();}if(bstackConfig!==undefined){const browserStackConfig=JSON['parse'](bstackConfig);browserStackConfig&&(commandRepository['setConfig'](browserStackConfig),commandRepository['setFramework'](a11_0x5bd4a0(0x1a6)));}global[a11_0x5bd4a0(0x215)]=0x0;const __setDefaultTimeout=cucumberModule[a11_0x5bd4a0(0x205)];cucumberModule['setDefaultTimeout']=_0x2fb2d6=>{const _0x144047=a11_0x5bd4a0,_0x4dd864={'yHGaP':function(_0x25a0b0,_0x2da804){return _0x25a0b0(_0x2da804);}};global[_0x144047(0x215)]=_0x2fb2d6,_0x4dd864[_0x144047(0x18d)](__setDefaultTimeout,_0x2fb2d6);};const a11_0x54b80a={};a11_0x54b80a['name']=a11_0x5bd4a0(0x1f6),BeforeAll(a11_0x54b80a,async function(){const _0xc900dc=a11_0x5bd4a0,_0xdb3a0={'YqOGa':function(_0x5878b8,_0x26e721,_0x1d84c4,_0xfe481f){return _0x5878b8(_0x26e721,_0x1d84c4,_0xfe481f);},'DBSqX':_0xc900dc(0x17c),'KfGji':_0xc900dc(0x1cc),'rcisq':function(_0x306a48,_0x906d8e,_0x28698d){return _0x306a48(_0x906d8e,_0x28698d);},'fUzSo':'passed','jkKbs':_0xc900dc(0x1f3),'WShHp':function(_0x38121c,_0x53fd75){return _0x38121c(_0x53fd75);},'xkWhA':_0xc900dc(0x168),'MOeWL':_0xc900dc(0x191),'BbHRZ':function(_0x8d9843,_0x460621){return _0x8d9843(_0x460621);},'cZmpn':_0xc900dc(0x15a),'xSJEl':'Bootstrapping\x20BrowserstackCLI\x20for\x20cucumber-js\x20worker\x20process','rohQX':function(_0x3eeb88){return _0x3eeb88();},'bffsp':function(_0x12c6a2,_0x33186e){return _0x12c6a2(_0x33186e);}};PerformanceTester[_0xc900dc(0x1de)](),logger[_0xc900dc(0x158)](_0xdb3a0[_0xc900dc(0x200)]),global['__error_messages__']=[],global[_0xc900dc(0x21b)]=![];if(playwrightPatcher)try{const _0x2b3baa=_0xdb3a0[_0xc900dc(0x1c2)](require,_0xdb3a0['xkWhA']),_0x1d3197=_0xdb3a0[_0xc900dc(0x1c2)](require,_0xdb3a0['MOeWL']),{FRAMEWORKS:_0x48cf43}=_0xdb3a0[_0xc900dc(0x15f)](require,_0xdb3a0[_0xc900dc(0x1eb)]);_0x2b3baa[_0xc900dc(0x1c4)]()[_0xc900dc(0x163)]()&&(logger[_0xc900dc(0x158)](_0xdb3a0[_0xc900dc(0x1f8)]),_0x1d3197[_0xc900dc(0x1bc)](_0x48cf43[_0xc900dc(0x20e)],_0x48cf43[_0xc900dc(0x1d6)]),await _0x2b3baa[_0xc900dc(0x1c4)]()[_0xc900dc(0x210)]());}catch(_0x556971){logger[_0xc900dc(0x158)]('Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20'+util[_0xc900dc(0x1cd)](_0x556971));}_0xdb3a0[_0xc900dc(0x181)](shouldProcessEventForTesthub)&&(_0xdb3a0[_0xc900dc(0x181)](registerListeners),_0xdb3a0[_0xc900dc(0x20f)](addRequestSpy,![])),global[_0xc900dc(0x14f)]=async()=>{const _0x36f473=_0xc900dc;let _0x5e0b46=![];try{global[_0x36f473(0x1fa)]&&global[_0x36f473(0x1fa)][0x0]&&(await global[_0x36f473(0x1fa)][0x0][_0x36f473(0x202)],_0x5e0b46=!![],global[_0x36f473(0x21b)]?await _0xdb3a0[_0x36f473(0x16a)](markSessionStatus,global[_0x36f473(0x1fa)][0x0],_0xdb3a0[_0x36f473(0x198)],global['__error_messages__'][_0x36f473(0x14e)](_0xdb3a0[_0x36f473(0x1af)])):await _0xdb3a0[_0x36f473(0x18e)](markSessionStatus,global[_0x36f473(0x1fa)][0x0],_0xdb3a0[_0x36f473(0x190)]));}catch(_0x57bce9){logger[_0x36f473(0x158)](_0x36f473(0x149)+_0x57bce9);}global['__error_messages__']=[],global[_0x36f473(0x21b)]=![];if(_0x5e0b46)try{await global[_0x36f473(0x1fa)][0x0][_0x36f473(0x159)](),global[_0x36f473(0x1fa)][0x0][_0x36f473(0x202)][_0x36f473(0x219)](_0x1cdf84=>{const _0x2ccdcf=_0x36f473;logger['debug']('Error:\x20in\x20quitting\x20driver\x20'+_0x1cdf84[_0x2ccdcf(0x216)]());})[_0x36f473(0x1b6)](_0x39ade9=>{});}catch(_0x16c429){logger[_0x36f473(0x158)](_0x36f473(0x1b3)+_0x16c429);}};});const a11_0x3e019e={};function a11_0x143a(_0x13c198,_0x32dafd){const _0x16a904=a11_0x16a9();return a11_0x143a=function(_0x143ac8,_0x4800e4){_0x143ac8=_0x143ac8-0x147;let _0xe1879b=_0x16a904[_0x143ac8];return _0xe1879b;},a11_0x143a(_0x13c198,_0x32dafd);}a11_0x3e019e[a11_0x5bd4a0(0x1d4)]=a11_0x5bd4a0(0x1f6),a11_0x3e019e['timeout']=TEST_FRAMEWORK_HOOK_TIMEOUT['Cucumber-JS'],Before(a11_0x3e019e,function(_0x408122,_0x35c430){const _0x4c7dd9=a11_0x5bd4a0,_0x40f39e={'wtZAD':function(_0x4c2224,_0x401766){return _0x4c2224>_0x401766;},'PkNIa':function(_0x2cf793,_0x5c9d34){return _0x2cf793>_0x5c9d34;},'ySTAF':function(_0x29d3b5,_0xdb5cc9){return _0x29d3b5(_0xdb5cc9);},'ESGYv':function(_0x262eb2,_0x546a1e,_0x2919ec,_0x5b48ff){return _0x262eb2(_0x546a1e,_0x2919ec,_0x5b48ff);},'Mswmd':_0x4c7dd9(0x203),'yhbTm':function(_0x4d5246){return _0x4d5246();},'apsfZ':'Inside\x20browserstack\x20Before'};commandRepository[_0x4c7dd9(0x173)](_0x408122[_0x4c7dd9(0x19b)][_0x4c7dd9(0x1d4)]),logger['debug'](_0x40f39e[_0x4c7dd9(0x19a)]),new Promise(async _0x1d4569=>{const _0x1ac255=_0x4c7dd9;try{global[_0x1ac255(0x1fa)]&&_0x40f39e[_0x1ac255(0x1b9)](global['__drivers']['length'],0x1)&&(await global['driverCleanup'](),global['__drivers'][_0x1ac255(0x1a5)]()),global[_0x1ac255(0x1fa)]&&global[_0x1ac255(0x1fa)][0x0]&&global['__drivers'][0x0][_0x1ac255(0x171)]&&_0x40f39e[_0x1ac255(0x14a)](global[_0x1ac255(0x1fa)][0x0][_0x1ac255(0x171)],0x0)&&await global[_0x1ac255(0x14f)]();}catch(_0xa73d41){logger[_0x1ac255(0x158)]('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0xa73d41);}workerDetails['currentTest'][_0x1ac255(0x185)]=_0x408122;if(playwrightPatcher)try{await playwrightPatcher[_0x1ac255(0x172)](_0x408122);}catch(_0x4feab4){logger[_0x1ac255(0x158)]('Error\x20in\x20playwright\x20beforeTestHook:\x20'+util['format'](_0x4feab4));}try{if(!_0x40f39e[_0x1ac255(0x18a)](isUndefined,_0x408122['pickle'][_0x1ac255(0x1d1)])){const _0x14d390=_0x40f39e[_0x1ac255(0x1d8)](shouldScanTestForAccessibility,null,![],_0x408122[_0x1ac255(0x19b)][_0x1ac255(0x1d1)][_0x1ac255(0x1ca)](({name:_0xcf2fd8})=>_0xcf2fd8));globals[_0x1ac255(0x157)](_0x40f39e[_0x1ac255(0x1f5)],_0x14d390);}}catch(_0x3bca18){logger[_0x1ac255(0x158)](_0x1ac255(0x1c7)+util[_0x1ac255(0x1cd)](_0x3bca18));}_0x40f39e['yhbTm'](_0x1d4569);})[_0x4c7dd9(0x162)](_0x35c430);});const a11_0x4dd501={};a11_0x4dd501['name']=a11_0x5bd4a0(0x1f6),a11_0x4dd501['timeout']=TEST_FRAMEWORK_HOOK_TIMEOUT[a11_0x5bd4a0(0x1a9)],After(a11_0x4dd501,function(_0x43caf5,_0x23e6d4){const _0x4ad8e0=a11_0x5bd4a0,_0x4d123b={'qutIw':function(_0x279185,_0x22ecac){return _0x279185>_0x22ecac;},'UTgdw':function(_0x318d74,_0x44b2a0){return _0x318d74===_0x44b2a0;},'KuIKH':_0x4ad8e0(0x17c),'PAXIr':function(_0x144829,_0x273cd1){return _0x144829===_0x273cd1;},'UVRlf':function(_0x5d08a3,_0x5a241c,_0x5bca83,_0x8da980){return _0x5d08a3(_0x5a241c,_0x5bca83,_0x8da980);},'LEnYw':_0x4ad8e0(0x1cc),'EwUSQ':function(_0x4c87a0,_0x56898f,_0x2c4370){return _0x4c87a0(_0x56898f,_0x2c4370);},'rCRVg':_0x4ad8e0(0x1a4),'ciOzA':'Completed\x20Playwright\x20afterTestHook\x20execution','eXOuS':_0x4ad8e0(0x1da),'YXJzb':function(_0xdc91fd){return _0xdc91fd();},'WpooU':function(_0x28b1ec,_0x265493,_0x248910,_0x38081b){return _0x28b1ec(_0x265493,_0x248910,_0x38081b);},'fcDjp':_0x4ad8e0(0x14c),'dgsOA':_0x4ad8e0(0x1d3),'eCQde':_0x4ad8e0(0x203),'iJvnw':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','ATwdq':_0x4ad8e0(0x1ba),'qVerg':_0x4ad8e0(0x18b),'tZaoU':_0x4ad8e0(0x1ee)};logger[_0x4ad8e0(0x158)](_0x4d123b[_0x4ad8e0(0x183)]),workerDetails[_0x4ad8e0(0x1b0)]['testInfo']=_0x43caf5,new Promise(async _0x191297=>{const _0x3396b=_0x4ad8e0;let _0x349b0b=![],_0x129de9=![],_0x1e6c54=![];try{global['__drivers']&&_0x4d123b['qutIw'](global[_0x3396b(0x1fa)][_0x3396b(0x15c)],0x0)&&(_0x129de9=!![]),playwrightPatcher&&global[_0x3396b(0x1db)]&&global[_0x3396b(0x1db)][_0x3396b(0x1ef)]&&(_0x1e6c54=!![],logger[_0x3396b(0x158)](_0x3396b(0x195)+!!global[_0x3396b(0x1db)][_0x3396b(0x1ef)]));}catch(_0x5718d9){logger[_0x3396b(0x158)](_0x3396b(0x180)+_0x5718d9);}logger[_0x3396b(0x158)]('Flow\x20detection:\x20isSeleniumFlow='+_0x129de9+',\x20isPlaywrightFlow='+_0x1e6c54);const _0x2377db=_0x43caf5[_0x3396b(0x151)]['status']['toString']()[_0x3396b(0x194)](),_0x1015ae=_0x4d123b['UTgdw'](_0x2377db,_0x4d123b[_0x3396b(0x1f1)])||_0x4d123b[_0x3396b(0x1bf)](_0x2377db,'6'),_0x135d0a=_0x1015ae?_0x43caf5[_0x3396b(0x151)][_0x3396b(0x150)]:null;if(_0x1015ae)try{global['__error_messages__'][_0x3396b(0x1d0)](_0x43caf5[_0x3396b(0x151)][_0x3396b(0x150)]),global[_0x3396b(0x21b)]=!![];}catch(_0x494982){logger[_0x3396b(0x158)](_0x3396b(0x15b)+_0x494982);}if(_0x129de9)try{global[_0x3396b(0x1fa)]&&_0x4d123b[_0x3396b(0x184)](global[_0x3396b(0x1fa)]['length'],0x1)&&(await global[_0x3396b(0x14f)](),global[_0x3396b(0x1fa)][_0x3396b(0x1a5)](),global['__error_messages__']=[],global[_0x3396b(0x21b)]=![]),global[_0x3396b(0x1fa)]&&global[_0x3396b(0x1fa)][0x0]&&(await global[_0x3396b(0x1fa)][0x0]['session_'],_0x349b0b=!![],!global[_0x3396b(0x17a)]&&await global[_0x3396b(0x1fa)][0x0][_0x3396b(0x1ff)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20\x22'+_0x43caf5[_0x3396b(0x19b)][_0x3396b(0x1d4)]+_0x3396b(0x148)),_0x1015ae?await _0x4d123b[_0x3396b(0x193)](markSessionStatus,global[_0x3396b(0x1fa)][0x0],_0x4d123b[_0x3396b(0x1f1)],global[_0x3396b(0x175)][_0x3396b(0x14e)](_0x4d123b['LEnYw'])):await _0x4d123b[_0x3396b(0x1a0)](markSessionStatus,global[_0x3396b(0x1fa)][0x0],_0x4d123b['rCRVg']));}catch(_0x42eb8b){logger[_0x3396b(0x158)]('Error:\x20at\x20After\x20(Selenium):\x20'+util[_0x3396b(0x1cd)](_0x42eb8b));}if(_0x1e6c54)try{const _0xfa376e=_0x1015ae?_0x4d123b['KuIKH']:_0x4d123b[_0x3396b(0x166)];await playwrightPatcher[_0x3396b(0x1ad)](_0x43caf5,_0xfa376e,_0x135d0a),logger[_0x3396b(0x158)](_0x4d123b[_0x3396b(0x192)]);}catch(_0x59c012){logger[_0x3396b(0x158)]('Error:\x20at\x20After\x20(Playwright):\x20'+util[_0x3396b(0x1cd)](_0x59c012));try{playwrightPatcher[_0x3396b(0x1d2)]&&(await playwrightPatcher[_0x3396b(0x1d2)](),logger['debug'](_0x4d123b[_0x3396b(0x187)]));}catch(_0x8c08c){logger[_0x3396b(0x158)](_0x3396b(0x1e1)+util['format'](_0x8c08c));}}try{if(_0x4d123b[_0x3396b(0x16f)](shouldProcessEventForTesthub)){const _0x1c0dd6=TestDetails['getTestUUID'](_0x43caf5[_0x3396b(0x1a1)]);let _0x1db772=null;global[_0x3396b(0x1fa)]&&global[_0x3396b(0x1fa)][0x0]&&(_0x1db772=await _0x4d123b[_0x3396b(0x212)](sendPlatformDetails,global[_0x3396b(0x1fa)][0x0],_0x1c0dd6,!![]));const _0x300841={};_0x300841[_0x3396b(0x1f2)]=_0x1c0dd6,_0x300841[_0x3396b(0x165)]=_0x1db772;const _0xecddea=_0x300841,_0x264a8d={};_0x264a8d['event_type']=_0x4d123b[_0x3396b(0x186)],_0x264a8d['test_run']=_0xecddea,await SessionHandler['uploadEventData'](_0x264a8d);}}catch(_0x279a3a){logger['debug'](_0x3396b(0x170)+util[_0x3396b(0x1cd)](_0x279a3a));}try{if(globals[_0x3396b(0x1b7)](_0x4d123b[_0x3396b(0x1e6)])&&globals[_0x3396b(0x1b7)](_0x4d123b['eCQde'])){logger[_0x3396b(0x1ce)](_0x4d123b[_0x3396b(0x1e3)]);const _0xeb95ea=TestDetails[_0x3396b(0x1e7)](_0x43caf5[_0x3396b(0x1a1)]),_0x37620f={};_0x37620f[_0x3396b(0x15d)]=_0xeb95ea,_0x37620f['thBuildUuid']=process[_0x3396b(0x1c6)][testHubConstants[_0x3396b(0x1a3)][_0x3396b(0x182)]],_0x37620f[_0x3396b(0x1fb)]=process[_0x3396b(0x1c6)][testHubConstants[_0x3396b(0x1a3)]['BROWSERSTACK_TESTHUB_JWT']];const _0x3f8861=_0x37620f;logger[_0x3396b(0x158)](_0x3396b(0x1dc)+JSON[_0x3396b(0x19f)](_0x3f8861)),logger['debug'](_0x4d123b['ATwdq']),global[_0x3396b(0x1fa)]&&global[_0x3396b(0x1fa)][0x0]&&(logger[_0x3396b(0x158)](util['format'](await global[_0x3396b(0x1fa)][0x0][_0x3396b(0x218)](scripts['performScan'],{'method':global['browserstackSessionName']}))),await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x3396b(0x1a7)],_0x3f8861)),logger[_0x3396b(0x1ce)](_0x4d123b[_0x3396b(0x179)]);}}catch(_0x759fab){logger[_0x3396b(0x1c8)](_0x3396b(0x21c)+util[_0x3396b(0x1cd)]);}if(_0x349b0b)try{global[_0x3396b(0x1fa)][0x0]&&_0x4d123b[_0x3396b(0x184)](global[_0x3396b(0x1fa)][0x0]['quitCount_'],0x0)&&await global[_0x3396b(0x1fa)][0x0][_0x3396b(0x159)]();}catch(_0x681c96){logger[_0x3396b(0x158)](_0x3396b(0x1e0)+_0x681c96);}_0x4d123b[_0x3396b(0x16f)](_0x191297);})[_0x4ad8e0(0x162)](()=>_0x23e6d4());});const a11_0x4cf055={};a11_0x4cf055['name']=a11_0x5bd4a0(0x1f6),a11_0x4cf055[a11_0x5bd4a0(0x1f7)]=TEST_FRAMEWORK_HOOK_TIMEOUT[a11_0x5bd4a0(0x1a9)],AfterStep(a11_0x4cf055,function(_0x572a50,_0x3464b4){const _0x1330b0=a11_0x5bd4a0,_0x483aba={'QcjGA':function(_0x5b723c,_0x271e39){return _0x5b723c===_0x271e39;},'fAqZH':'failed','Idvgp':function(_0xe405b9,_0x494e72){return _0xe405b9===_0x494e72;},'zKMtO':function(_0x5e4318,_0x4dd9e2){return _0x5e4318!==_0x4dd9e2;},'XYeDm':function(_0x2246a4,_0x2330fb,_0x2929fc){return _0x2246a4(_0x2330fb,_0x2929fc);},'Tfbvj':function(_0x24124f,_0x455e05){return _0x24124f+_0x455e05;},'yBQvC':function(_0x258715,_0x1b0f5e){return _0x258715+_0x1b0f5e;},'dZvbH':function(_0x2afa18,_0x52feef){return _0x2afa18+_0x52feef;},'cXdLY':_0x1330b0(0x1ea),'SiXkO':_0x1330b0(0x213),'jhLxf':'error','fggmn':function(_0x5e00b4,_0x58cdfd){return _0x5e00b4+_0x58cdfd;},'FbRwS':function(_0x17d67a,_0x518e01){return _0x17d67a!==_0x518e01;},'hkhTw':'Passed:\x20','tYbhK':_0x1330b0(0x1ce),'iIbti':'Passed','vCTVI':function(_0xa7814a){return _0xa7814a();},'iAYNr':'Inside\x20browserstack\x20AfterStep'};logger[_0x1330b0(0x158)](_0x483aba[_0x1330b0(0x20c)]);const _0x34af06=async(_0x1c0899,_0x129285)=>{const _0x3cdbae=_0x1330b0;global[_0x3cdbae(0x1fa)]&&global[_0x3cdbae(0x1fa)][0x0]&&await global[_0x3cdbae(0x1fa)][0x0][_0x3cdbae(0x1ff)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x1c0899+_0x3cdbae(0x17e)+_0x129285+_0x3cdbae(0x148));};new Promise(async _0x1e51d9=>{const _0x325002=_0x1330b0;try{_0x483aba[_0x325002(0x211)](_0x572a50['result'][_0x325002(0x14d)]['toString']()['toLowerCase'](),_0x483aba[_0x325002(0x1e9)])||_0x483aba['Idvgp'](_0x572a50[_0x325002(0x151)][_0x325002(0x14d)][_0x325002(0x1f0)]()[_0x325002(0x194)](),'6')?(global['__sessionFailed']=!![],global[_0x325002(0x175)]['push'](_0x572a50[_0x325002(0x151)][_0x325002(0x150)]),_0x483aba['zKMtO'](_0x572a50[_0x325002(0x156)],undefined)?await _0x483aba[_0x325002(0x1e2)](_0x34af06,JSON[_0x325002(0x19f)](_0x483aba[_0x325002(0x154)](_0x483aba[_0x325002(0x1e5)](_0x483aba[_0x325002(0x1cb)](_0x483aba['cXdLY'],'\x22'+_0x572a50[_0x325002(0x156)][_0x325002(0x204)]+'\x22\x20'),_0x483aba[_0x325002(0x1f4)]),_0x572a50[_0x325002(0x151)][_0x325002(0x150)])),_0x483aba[_0x325002(0x201)]):await _0x483aba[_0x325002(0x1e2)](_0x34af06,JSON['stringify'](_0x483aba[_0x325002(0x19c)](_0x483aba[_0x325002(0x1c5)],_0x572a50['result'][_0x325002(0x150)])),_0x483aba[_0x325002(0x201)])):_0x483aba[_0x325002(0x1fc)](_0x572a50[_0x325002(0x156)],undefined)?await _0x483aba[_0x325002(0x1e2)](_0x34af06,JSON[_0x325002(0x19f)](_0x483aba[_0x325002(0x154)](_0x483aba[_0x325002(0x16e)],'\x22'+_0x572a50[_0x325002(0x156)][_0x325002(0x204)]+'\x22')),_0x483aba[_0x325002(0x206)]):await _0x483aba[_0x325002(0x1e2)](_0x34af06,JSON[_0x325002(0x19f)](_0x483aba[_0x325002(0x18c)]),_0x483aba['tYbhK']),global[_0x325002(0x1fa)]&&global[_0x325002(0x1fa)][0x0]&&global[_0x325002(0x1fa)][0x0]['session_'][_0x325002(0x219)](_0x16418c=>{})['catch'](_0x5d9526=>{const _0x2fbe5a=_0x325002;logger[_0x2fbe5a(0x158)](_0x2fbe5a(0x217)+util['format'](_0x5d9526));});}catch(_0x261dd6){logger[_0x325002(0x158)](_0x325002(0x1b4)+_0x261dd6);}_0x483aba[_0x325002(0x1cf)](_0x1e51d9);})['finally'](()=>_0x3464b4());});const a11_0x49b9ae={};a11_0x49b9ae['name']=a11_0x5bd4a0(0x1f6),a11_0x49b9ae[a11_0x5bd4a0(0x1f7)]=TEST_FRAMEWORK_HOOK_TIMEOUT['Cucumber-JS'],AfterAll(a11_0x49b9ae,async function(_0xc72ebc,_0x36bc16){const _0x448d32=a11_0x5bd4a0,_0x2078b9={'aGwjZ':'2|4|0|3|1','jMUOK':_0x448d32(0x14b),'Nrake':function(_0x545d25){return _0x545d25();},'FsEbk':_0x448d32(0x20d)};logger['debug'](_0x2078b9['FsEbk']),await new Promise(async _0x4dbbc5=>{const _0x43526b=_0x448d32,_0x45a972=_0x2078b9[_0x43526b(0x1ec)]['split']('|');let _0x4af773=0x0;while(!![]){switch(_0x45a972[_0x4af773++]){case'0':try{playwrightPatcher&&playwrightPatcher['executeDeferredCloses']&&(await playwrightPatcher[_0x43526b(0x1d2)](),playwrightPatcher['closeTracker']&&playwrightPatcher[_0x43526b(0x164)][_0x43526b(0x208)](),logger[_0x43526b(0x158)](_0x2078b9[_0x43526b(0x17b)]));}catch(_0x5b7f13){logger[_0x43526b(0x158)](_0x43526b(0x1f9)+util['format'](_0x5b7f13));}continue;case'1':_0x2078b9[_0x43526b(0x1fe)](_0x4dbbc5);continue;case'2':await RequestQueueHandler[_0x43526b(0x1c4)]()['shutdown']();continue;case'3':await global['driverCleanup']();continue;case'4':PerformanceTester['stopMonitoring']();continue;}break;}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a12_0x2dca(_0x567961,_0x1da19d){const _0x18044f=a12_0x1804();return a12_0x2dca=function(_0x2dca9e,_0x77391b){_0x2dca9e=_0x2dca9e-0x1eb;let _0x491369=_0x18044f[_0x2dca9e];return _0x491369;},a12_0x2dca(_0x567961,_0x1da19d);}const a12_0xa5c089=a12_0x2dca;(function(_0x704a85,_0x5539b0){const _0x3626e8=a12_0x2dca,_0x42cc7e=_0x704a85();while(!![]){try{const _0x30eff7=parseInt(_0x3626e8(0x207))/0x1+parseInt(_0x3626e8(0x1eb))/0x2+parseInt(_0x3626e8(0x208))/0x3+parseInt(_0x3626e8(0x1ed))/0x4+-parseInt(_0x3626e8(0x21a))/0x5*(-parseInt(_0x3626e8(0x209))/0x6)+-parseInt(_0x3626e8(0x20d))/0x7*(parseInt(_0x3626e8(0x1f6))/0x8)+-parseInt(_0x3626e8(0x1ff))/0x9*(parseInt(_0x3626e8(0x1f8))/0xa);if(_0x30eff7===_0x5539b0)break;else _0x42cc7e['push'](_0x42cc7e['shift']());}catch(_0x1a9c49){_0x42cc7e['push'](_0x42cc7e['shift']());}}}(a12_0x1804,0xc5da0));const {requireModule,modifyCommand,isTrue,markSessionStatus}=require(a12_0xa5c089(0x202)),setKeepAlive=require('../../helpers/setKeepAlive'),cucumberModule=requireModule('cucumber/lib/index.js','cucumber'),logger=require(a12_0xa5c089(0x1f9))[a12_0xa5c089(0x213)];modifyCommand(),setKeepAlive();const Before=cucumberModule[a12_0xa5c089(0x1f2)],After=cucumberModule[a12_0xa5c089(0x1f4)],configuration=process[a12_0xa5c089(0x212)]['CONFIG'];if(configuration!==undefined){const config=JSON['parse'](configuration);isTrue(config[a12_0xa5c089(0x21b)])&&(global[a12_0xa5c089(0x211)]=!![]),global[a12_0xa5c089(0x1f1)]=isTrue(config['skipSessionStatus']),require(a12_0xa5c089(0x21d))[a12_0xa5c089(0x1fb)](config),global[a12_0xa5c089(0x201)]=config[a12_0xa5c089(0x20b)]||{};}global[a12_0xa5c089(0x1fe)]=0x0;const __setDefaultTimeout=cucumberModule['setDefaultTimeout'];cucumberModule[a12_0xa5c089(0x200)]=_0xcab8ec=>{const _0x132f52={'hwzqB':function(_0x2f582e,_0x4f0ef0){return _0x2f582e(_0x4f0ef0);}};global['__timeout']=_0xcab8ec,_0x132f52['hwzqB'](__setDefaultTimeout,_0xcab8ec);};const a12_0x49202d={};a12_0x49202d['name']=a12_0xa5c089(0x204),Before(a12_0x49202d,function(){const _0x5cfb25=a12_0xa5c089,_0x51c3a3={};_0x51c3a3[_0x5cfb25(0x214)]=_0x5cfb25(0x1fc);const _0x35491c=_0x51c3a3;logger[_0x5cfb25(0x1fd)](_0x35491c[_0x5cfb25(0x214)]),global[_0x5cfb25(0x20c)]=[];});const a12_0x12f8ac={};function a12_0x1804(){const _0x6fab9e=['browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20\x22','3685400uqVLXn','timeout','Error:\x20quiting\x20at\x20After:\x20','session_','__skipSessionStatus','Before','Error:\x20setting\x20status\x20at\x20After:\x20','After','qkYkr','49000MoBBZq','pickle','3337930AfbmQM','../../helpers/logger','join','browserstackAgentV2','Inside\x20browserstack\x20Before','debug','__timeout','18npBhYw','setDefaultTimeout','__platformCaps','../../helpers/helper','yUmyP','bstack','toLowerCase','status','568510AazIvm','2196213wYeSyE','438CpnhPt','__driver','platformCaps','__error_messages__','1176PrrwiW','fqMWB','result','passed','__skipSessionName','env','winstonLogger','DvOmc','\x22}}','Inside\x20browserstack\x20After','FIgST','guxZg','failed','14590rJWoau','skipSessionName','initQuit','../../index','ejJxR','144082fQJppf'];a12_0x1804=function(){return _0x6fab9e;};return a12_0x1804();}a12_0x12f8ac['name']='bstack',a12_0x12f8ac[a12_0xa5c089(0x1ee)]=0x2710,After(a12_0x12f8ac,function(_0x3e5dbc,_0x14a554){const _0x13871c=a12_0xa5c089,_0x210f40={'VqDUN':function(_0x480c1f,_0x160fe6){return _0x480c1f===_0x160fe6;},'ejJxR':_0x13871c(0x219),'guxZg':function(_0xf35477,_0x2376df,_0x3b1a96,_0x3c1af){return _0xf35477(_0x2376df,_0x3b1a96,_0x3c1af);},'iZLHm':'\x20|\x20','FIgST':function(_0x42ee89,_0x22261d,_0x306f1a){return _0x42ee89(_0x22261d,_0x306f1a);},'cDDVt':_0x13871c(0x210),'yUmyP':function(_0x4323a0){return _0x4323a0();},'SACkH':function(_0x26f81b,_0x3c2a84){return _0x26f81b(_0x3c2a84);},'fqMWB':function(_0xfb287e){return _0xfb287e();},'qkYkr':_0x13871c(0x216)};logger[_0x13871c(0x1fd)](_0x210f40[_0x13871c(0x1f5)]),new Promise(async(_0x4ebbc2,_0x5b6730)=>{const _0x4c8943=_0x13871c;let _0x98c033=![];try{await global[_0x4c8943(0x20a)][_0x4c8943(0x1f0)],_0x98c033=!![],!global[_0x4c8943(0x211)]&&await global['__driver']['executeScript'](_0x4c8943(0x1ec)+_0x3e5dbc[_0x4c8943(0x1f7)]['name']+_0x4c8943(0x215)),_0x210f40['VqDUN'](_0x3e5dbc[_0x4c8943(0x20f)][_0x4c8943(0x206)][_0x4c8943(0x205)](),_0x210f40[_0x4c8943(0x21e)])?await _0x210f40[_0x4c8943(0x218)](markSessionStatus,global[_0x4c8943(0x20a)],_0x210f40[_0x4c8943(0x21e)],global[_0x4c8943(0x20c)][_0x4c8943(0x1fa)](_0x210f40['iZLHm'])):await _0x210f40[_0x4c8943(0x217)](markSessionStatus,global['__driver'],_0x210f40['cDDVt']);}catch(_0x116bfe){logger[_0x4c8943(0x1fd)](_0x4c8943(0x1f3)+_0x116bfe);}if(_0x98c033)try{await global[_0x4c8943(0x20a)][_0x4c8943(0x21c)](),_0x210f40[_0x4c8943(0x203)](_0x4ebbc2);}catch(_0x3c904d){logger[_0x4c8943(0x1fd)](_0x4c8943(0x1ef)+_0x3c904d),_0x210f40['SACkH'](_0x5b6730,_0x3c904d);}else _0x210f40[_0x4c8943(0x20e)](_0x5b6730);})['then'](()=>_0x14a554());});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x50f174=a13_0xcfe7;(function(_0x16d2b3,_0x258006){const _0x113174=a13_0xcfe7,_0x24b902=_0x16d2b3();while(!![]){try{const _0x5f0f73=-parseInt(_0x113174(0x18b))/0x1+-parseInt(_0x113174(0x183))/0x2+parseInt(_0x113174(0x18a))/0x3*(parseInt(_0x113174(0x18c))/0x4)+-parseInt(_0x113174(0x188))/0x5*(parseInt(_0x113174(0x186))/0x6)+-parseInt(_0x113174(0x182))/0x7*(-parseInt(_0x113174(0x185))/0x8)+-parseInt(_0x113174(0x184))/0x9*(-parseInt(_0x113174(0x187))/0xa)+parseInt(_0x113174(0x189))/0xb;if(_0x5f0f73===_0x258006)break;else _0x24b902['push'](_0x24b902['shift']());}catch(_0x26cb62){_0x24b902['push'](_0x24b902['shift']());}}}(a13_0x2103,0xe3856));const {requireModule}=require('../../helpers/helper'),constants=require('../utils/constants');function a13_0xcfe7(_0x4ef894,_0x46f3af){const _0x21036d=a13_0x2103();return a13_0xcfe7=function(_0xcfe7db,_0x572561){_0xcfe7db=_0xcfe7db-0x17f;let _0x4b033a=_0x21036d[_0xcfe7db];return _0x4b033a;},a13_0xcfe7(_0x4ef894,_0x46f3af);};let cucumberModule=null;try{cucumberModule=requireModule(a13_0x50f174(0x17f),'@cucumber/cucumber');}catch(a13_0x3a5cba){cucumberModule=requireModule('cucumber/lib/index.js','cucumber');}function a13_0x2103(){const _0x20ca34=['44295999rDHomF','3342VYiWTW','1742788IvuZdi','1460bWmcnM','@cucumber/cucumber/lib/index.js','BSTACK_DELTA','setDefaultTimeout','28TbNNKm','3334166hopTFM','263178ofYBBS','3368648YvdJwt','11982BaLOTj','10kyJvQY','4520LXdsWa'];a13_0x2103=function(){return _0x20ca34;};return a13_0x2103();}cucumberModule[a13_0x50f174(0x181)](constants[a13_0x50f174(0x180)]+global['__timeout']*0x1);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a14_0x37852e=a14_0x21f6;function a14_0x2305(){const _0x3a7248=['protocol','url','replace','demandCommand','usage','ipXnj','footer','epilogue','UHhka','YUaCy','help','hosts','PjYRf','hostname','1066118FjEyKC','integrations','../../helpers/logger','./constants','UOxdj','invalid','describe','3636180Svpsuj','pJVdc','40VFFqNW','818214VStrpd','options','wjuKh','https:','exports','773087HdPZql','443','connect','type','command','undefined','702lcwBde','bstack-accesskey','bstackAccesskey','../../helpers/helper','error','setProxySettings','accessKey','string','only','config','EhTbb','xAxNE','Integration\x20hosts\x20missing.','870CjtrNK','missing','winstonLogger','integrations-repeater','sATQR','xsyOj','root','demandOption','vXsxE','setupBrowserstackLocal','trim','map','join','LdFpC','ierLb','266810gnVfjW','split','2924aghpVd','23480JymtAS','port','bstackAccessKey','browserstackLocal','vFhJN'];a14_0x2305=function(){return _0x3a7248;};return a14_0x2305();}(function(_0x941cef,_0x1d1fb3){const _0x577e87=a14_0x21f6,_0x4b571d=_0x941cef();while(!![]){try{const _0x336ab0=-parseInt(_0x577e87(0x19a))/0x1+parseInt(_0x577e87(0x190))/0x2+parseInt(_0x577e87(0x16b))/0x3*(-parseInt(_0x577e87(0x17c))/0x4)+parseInt(_0x577e87(0x17d))/0x5+-parseInt(_0x577e87(0x197))/0x6+parseInt(_0x577e87(0x19f))/0x7*(-parseInt(_0x577e87(0x199))/0x8)+parseInt(_0x577e87(0x1a5))/0x9*(parseInt(_0x577e87(0x17a))/0xa);if(_0x336ab0===_0x1d1fb3)break;else _0x4b571d['push'](_0x4b571d['shift']());}catch(_0x44c169){_0x4b571d['push'](_0x4b571d['shift']());}}}(a14_0x2305,0x69162));const {default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),logger=require(a14_0x37852e(0x192))[a14_0x37852e(0x16d)],{URL}=require(a14_0x37852e(0x183)),helper=require(a14_0x37852e(0x1a8)),{HELP_MESSAGES,ERROR_MESSAGES}=require(a14_0x37852e(0x193)),validHosts=function(_0x1bc3f3){const _0x1d4a97=a14_0x37852e;return _0x1bc3f3[_0x1d4a97(0x17b)](',')['every'](_0x119834=>{const _0x5caf51=_0x1d4a97;try{new URL(_0x119834[_0x5caf51(0x175)]());}catch(_0x5a0727){return![];}return!![];});},parseOnPremHosts=function(_0x3540a3){const _0x39e48b=a14_0x37852e,_0x2975e6={};_0x2975e6[_0x39e48b(0x173)]=function(_0x4b0e92,_0x385253){return _0x4b0e92===_0x385253;},_0x2975e6[_0x39e48b(0x19c)]=_0x39e48b(0x19d),_0x2975e6[_0x39e48b(0x168)]=_0x39e48b(0x1a0),_0x2975e6[_0x39e48b(0x179)]=function(_0x56b1e3,_0x620030){return _0x56b1e3===_0x620030;},_0x2975e6[_0x39e48b(0x187)]='https';const _0x3f2c79=_0x2975e6;return _0x3540a3[_0x39e48b(0x17b)](',')[_0x39e48b(0x176)](_0x5265f0=>{const _0x5195d4=_0x39e48b,_0x63194d=new URL(_0x5265f0[_0x5195d4(0x175)]()),_0x1e608b=_0x63194d[_0x5195d4(0x18f)],_0x4a7c2e=_0x63194d[_0x5195d4(0x17e)]||(_0x3f2c79[_0x5195d4(0x173)](_0x63194d[_0x5195d4(0x182)],_0x3f2c79['wjuKh'])?_0x3f2c79[_0x5195d4(0x168)]:'80'),_0x2d7351=_0x63194d['protocol'][_0x5195d4(0x184)](':',''),_0x178952=_0x3f2c79[_0x5195d4(0x179)](_0x2d7351,_0x3f2c79['ipXnj'])?0x1:0x0;return _0x1e608b+','+_0x4a7c2e+','+_0x178952;});},connectCommandBuilder=function(_0x31dea5){const _0x2b6ad3=a14_0x37852e,_0x7c3297={};_0x7c3297['PjYRf']=_0x2b6ad3(0x1ac);const _0x205706=_0x7c3297,_0x3b4414={};_0x3b4414[_0x2b6ad3(0x196)]=HELP_MESSAGES[_0x2b6ad3(0x19b)][_0x2b6ad3(0x17f)],_0x3b4414[_0x2b6ad3(0x1a2)]=_0x205706[_0x2b6ad3(0x18e)];const _0x5a4da1={};_0x5a4da1[_0x2b6ad3(0x196)]=HELP_MESSAGES[_0x2b6ad3(0x19b)][_0x2b6ad3(0x18d)],_0x5a4da1[_0x2b6ad3(0x1a2)]=_0x205706[_0x2b6ad3(0x18e)],_0x5a4da1[_0x2b6ad3(0x172)]=!![];const _0x112d13={};return _0x112d13[_0x2b6ad3(0x1a6)]=_0x3b4414,_0x112d13[_0x2b6ad3(0x18d)]=_0x5a4da1,_0x31dea5['options'](_0x112d13);},connectCommandHandler=async function(_0x1e368b){const _0x449734=a14_0x37852e,_0x56c89e={'UOxdj':_0x449734(0x191),'sATQR':function(_0x508d7d,_0x344597){return _0x508d7d===_0x344597;},'UHhka':_0x449734(0x1a4),'pJVdc':'BrowserStack\x20access\x20key\x20missing.','vFhJN':_0x449734(0x16a),'SrrXr':function(_0x3f2f39,_0x5e90fd){return _0x3f2f39(_0x5e90fd);},'exAHD':'Hosts\x20not\x20valid','YUaCy':_0x449734(0x16e),'LdFpC':'Connection\x20established\x20successfully.','xsyOj':'Failed\x20to\x20establish\x20connection.'};try{const _0x1f387b=new BrowserStackSetup(_0x1e368b,_0x56c89e[_0x449734(0x194)]);_0x1e368b['bstackAccesskey']&&(_0x1f387b[_0x449734(0x1ae)][_0x449734(0x1ab)]=_0x1e368b[_0x449734(0x1a7)]);if(_0x56c89e[_0x449734(0x16f)](typeof _0x1f387b[_0x449734(0x1ae)]['accessKey'],_0x56c89e[_0x449734(0x18a)])){logger[_0x449734(0x1a9)](_0x56c89e[_0x449734(0x198)]);throw new Error(ERROR_MESSAGES['bstackAccessKey']['missing']);}const _0x1a7d70=_0x1e368b['hosts'];if(_0x56c89e[_0x449734(0x16f)](typeof _0x1a7d70,_0x56c89e[_0x449734(0x18a)])){logger[_0x449734(0x1a9)](_0x56c89e[_0x449734(0x181)]);throw new Error(ERROR_MESSAGES[_0x449734(0x18d)][_0x449734(0x16c)]);}if(!_0x56c89e['SrrXr'](validHosts,_0x1a7d70)){logger[_0x449734(0x1a9)](_0x56c89e['exAHD']);throw new Error(ERROR_MESSAGES[_0x449734(0x18d)][_0x449734(0x195)]);}const _0x1ca99f=_0x56c89e['SrrXr'](parseOnPremHosts,_0x1a7d70);_0x1f387b['config'][_0x449734(0x180)]=!![],_0x1f387b['config']['browserStackLocalOptions']['localIdentifier']=_0x56c89e[_0x449734(0x18b)],_0x1f387b[_0x449734(0x1ae)]['browserStackLocalOptions'][_0x449734(0x1ad)]=_0x1ca99f[_0x449734(0x177)](','),helper[_0x449734(0x1aa)](_0x1f387b[_0x449734(0x1ae)]),await _0x1f387b[_0x449734(0x174)](),logger['info'](_0x56c89e[_0x449734(0x178)]);}catch(_0x150548){logger[_0x449734(0x1a9)](_0x56c89e[_0x449734(0x170)]);throw new Error(_0x150548['toString']());}};function run(_0x3347d0){const _0x682fe2=a14_0x37852e,_0x1f3f7d={};_0x1f3f7d[_0x682fe2(0x169)]=_0x682fe2(0x1a1),_0x1f3f7d['WqRvN']=_0x682fe2(0x18c);const _0x2a3c76=_0x1f3f7d;_0x3347d0[_0x682fe2(0x186)](HELP_MESSAGES[_0x682fe2(0x1a3)][_0x682fe2(0x171)])[_0x682fe2(0x1a3)](_0x2a3c76[_0x682fe2(0x169)],HELP_MESSAGES[_0x682fe2(0x1a3)]['connect'],connectCommandBuilder,connectCommandHandler)[_0x682fe2(0x185)]()[_0x682fe2(0x18c)](_0x2a3c76['WqRvN'])[_0x682fe2(0x189)](HELP_MESSAGES[_0x682fe2(0x1a3)][_0x682fe2(0x188)]);}function a14_0x21f6(_0xea3b3f,_0x1421da){const _0x230574=a14_0x2305();return a14_0x21f6=function(_0x21f61a,_0x4f5036){_0x21f61a=_0x21f61a-0x168;let _0x3dcc8d=_0x230574[_0x21f61a];return _0x3dcc8d;},a14_0x21f6(_0xea3b3f,_0x1421da);}module[a14_0x37852e(0x19e)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0xd522af=a15_0x3a87;(function(_0x3acba3,_0x4225d2){var _0x1e5478=a15_0x3a87,_0x4ad2e9=_0x3acba3();while(!![]){try{var _0x386738=-parseInt(_0x1e5478(0xc4))/0x1+parseInt(_0x1e5478(0xce))/0x2*(parseInt(_0x1e5478(0xc0))/0x3)+-parseInt(_0x1e5478(0xcc))/0x4*(parseInt(_0x1e5478(0xc2))/0x5)+-parseInt(_0x1e5478(0xd3))/0x6*(-parseInt(_0x1e5478(0xc9))/0x7)+parseInt(_0x1e5478(0xc5))/0x8+parseInt(_0x1e5478(0xd6))/0x9+parseInt(_0x1e5478(0xbf))/0xa;if(_0x386738===_0x4225d2)break;else _0x4ad2e9['push'](_0x4ad2e9['shift']());}catch(_0x2e7252){_0x4ad2e9['push'](_0x4ad2e9['shift']());}}}(a15_0x4ae7,0xef9d0));var a15_0x14d3ca={};a15_0x14d3ca[a15_0xd522af(0xc7)]='Specify\x20your\x20BrowserStack\x20access\x20key\x20for\x20authentication\x20with\x20our\x20services.',a15_0x14d3ca[a15_0xd522af(0xd4)]=a15_0xd522af(0xc6);var a15_0x2cc7c4={};a15_0x2cc7c4['root']=a15_0xd522af(0xcd),a15_0x2cc7c4[a15_0xd522af(0xd0)]=a15_0xd522af(0xd2),a15_0x2cc7c4[a15_0xd522af(0xd5)]=a15_0xd522af(0xc3);var a15_0x140202={};a15_0x140202[a15_0xd522af(0xc8)]=a15_0x14d3ca,a15_0x140202['command']=a15_0x2cc7c4,exports[a15_0xd522af(0xbe)]=a15_0x140202;var a15_0x138c0a={};function a15_0x4ae7(){var _0x57d748=['connect','Integration\x20hosts\x20are\x20not\x20in\x20the\x20right\x20format.\x20Specify\x20a\x20comma\x20separated\x20list\x20of\x20hosts\x20(eg:\x20http://your-jira.yourdomain.com:8080,..)\x20for\x20the\x20integration.','Connect\x20new\x20integration\x20from\x20a\x20list\x20of\x20supported\x20tools.','185862mwynrj','hosts','footer','5806035xNJkOW','HELP_MESSAGES','5115860TwtTlH','878118xvuJxT','ERROR_MESSAGES','15haWAMY','Use\x20\x22browserstack-cli\x20integrations\x20<command_group>\x20-h/--help\x22\x20for\x20additional\x20help\x20and\x20details\x20about\x20BrowserStack\x20integrations.','528860IhyQgD','619760JiNbGz','This\x20option\x20allows\x20you\x20to\x20provide\x20additional\x20configuration\x20specific\x20to\x20your\x20environment.\x20Specify\x20a\x20comma\x20separated\x20list\x20of\x20hosts\x20(eg:\x20http://your-jira.yourdomain.com:8080,..)\x20for\x20the\x20integration.','bstackAccessKey','options','56sbhkHB','missing','invalid','1133052ZflHvv','Integrate\x20BrowserStack\x20with\x20your\x20favorite\x20third-party\x20tools\x20for\x20faster\x20and\x20efficient\x20testing.','6hJhtOL','Integration\x20hosts\x20missing.\x20Specify\x20a\x20comma\x20separated\x20list\x20of\x20hosts\x20(eg:\x20http://your-jira.yourdomain.com:8080,..)\x20for\x20the\x20integration.'];a15_0x4ae7=function(){return _0x57d748;};return a15_0x4ae7();}a15_0x138c0a[a15_0xd522af(0xca)]='BrowserStack\x20access\x20key\x20missing.\x20Specify\x20your\x20BrowserStack\x20access\x20key\x20for\x20authentication\x20with\x20our\x20services.';function a15_0x3a87(_0x54606c,_0x151df4){var _0x4ae747=a15_0x4ae7();return a15_0x3a87=function(_0x3a8770,_0x1f08ef){_0x3a8770=_0x3a8770-0xbe;var _0x73fd4a=_0x4ae747[_0x3a8770];return _0x73fd4a;},a15_0x3a87(_0x54606c,_0x151df4);}var a15_0x2a7d86={};a15_0x2a7d86[a15_0xd522af(0xca)]=a15_0xd522af(0xcf),a15_0x2a7d86[a15_0xd522af(0xcb)]=a15_0xd522af(0xd1);var a15_0x4d62be={};a15_0x4d62be[a15_0xd522af(0xc7)]=a15_0x138c0a,a15_0x4d62be['hosts']=a15_0x2a7d86,exports[a15_0xd522af(0xc1)]=a15_0x4d62be;
|
package/src/bin/jest/command.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a16_0x3404(){const _0x3a5290=['14NMVHsd','maxWorkers','Modifying\x20jest\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','maxFailures','browserStackLogLevel','testEnvironment','workingDir','finalExecution','isTestOrchestrationEnabled','2UfyvLQ','LrDNy','platformCaps','../../helpers/performance/performance-tester','getHubUrl','Getting\x20your\x20jest\x20configs\x20from\x20','length','winstonLogger','testSequencer','jest_browserstack_results.json','log','HaxCE','customCircus.js','errorMessage','info','timeout__','cwd','EVENTS','isUndefined','FayJg','gFihB','iadWI','existsSync','citCm','usCdB','failFast','child_process','BACav','push','abortBuildOnFailure','Oxxwx','testTimeout','pBBFH','QrcAk','3KWmwJn','config','testObservability','OMpOo','accessibilityOptions','reporters','RYnlf','sZsGO','assign','default','customSequencer.js','../../helpers/utilities','runInBand','end','JEST','Exception\x20in\x20stop\x20build\x20request\x20to\x20TestHub\x20:\x20','skipSessionName','USER_CONFIG_DETAILS_PATH','parallelsPerPlatform','Creating\x20','child\x20process\x20exited\x20with\x20code\x20','jest_browserstack.config.js','stop','browserStackPercyOptions','Error\x20while\x20parsing\x20','cjs','filterBrowserstackArgs','iZbhu','QflwG','setupTCGAuth','../../helpers/test-observability/constants','BROWSERSTACK_TEST_ACCESSIBILITY_YML','rmSync','Reodered\x20Test\x20Files:\x20','logLevel','WkWRn','findIndex','start','BnMrT','platforms','Unable\x20to\x20find\x20jest-circus,\x20','YyKtg','testEnvironmentOptions','Found:\x20','--config','isEmpty','1285515YyLDdF','YMLiI','requireSeleniumWebdriver','debug','test_before.setup.js','UqsVw','slice','getPackageType','util','SROXq','3957270uVhbDG','initialize','izcqi','runner','customTestRunnerTemplate.js','ufAGi','Error\x20while\x20deleting\x20fail-fast\x20state\x20folder:\x20','fOeJZ','setupFilesAfterEnv','getErrorMessageFromResults','ZFWbX','Getting\x20your\x20jest\x20configs\x20from\x20package.json','json','customTestRunner.js','writeFileSync','../../helpers/performance/constants','const\x20config=','reorderTestFiles','32IIBULI','../../helpers/helper','package.json','resolve','./test-observability/test-details','jest-circus','../../helpers/test-orchestration/testOrchestrationHandler','maxRetries','serial__','CYCTo','customEnvironment.js','VOCRB','skipSessionStatus','gwflP','SDK_SETUP','\x20with\x20browserstack\x20jest\x20configs','3887836AferIM','isNotUndefined','stringify','npx','1499208gtTDtP','join','../../helpers/testhub/testhubHandler','launchBuild','jest-config/build/readConfigFileAndSetRootDir.js','SDK_CLEANUP','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','WUGfH','printBuildLink','testContextOptions','../../helpers/accessibility-automation/helper','customImplements',';\x0a\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(__dirname,\x20\x27jest_browserstack_results.json\x27),\x20JSON.stringify(results));\x0a\x20\x20\x20\x20\x20\x20return\x20_someFunc.call(this,\x20testContexts,\x20results);\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20var\x20_onTestFileResultOrig\x20=\x20ReporterDispatcher.prototype.onTestFileResult;\x0a\x20\x20\x20\x20ReporterDispatcher.prototype.onTestFileResult\x20=\x20async\x20function\x20(test,\x20testResult,\x20result)\x20{\x0a\x20\x20\x20\x20\x20\x20testResult.platform\x20=\x20helper.getPlatformName(test.context.config.capability);\x0a\x20\x20\x20\x20\x20\x20return\x20_onTestFileResultOrig.call(this,\x20test,\x20testResult,\x20result);\x0a\x20\x20\x20\x20}\x0a\x20\x20','../../helpers/percy/utils','mjs','force','PACKAGE_TYPE','967106yAMdjX','../utils/constants','shouldProcessEventForTesthub','failureThresholdCount','\x20test\x20files\x20to\x20run.','3949836eblhZf','rmdirSync','oSVNI','error','HcgvD','zHuPr','\x0a\x20\x20\x20\x20','skipping\x20test_before\x20setup\x20since\x20selenium\x20not\x20found','jest.setup.js','test-observability','9135670aHDfWa','Deleting\x20','nBVhl','jest','shutdown','retryTestsOnFailure','BROWSERSTACK_TEST_OBSERVABILITY_YML','retries__','isBrowserstackInfra','platform','getTCGConfigFilePaths','\x20:\x20','inherit','splice','handleApp','accessibility','proxySettings','jest-config','VxAIh','../../helpers/test-observability/utils','BSTACK_JEST_TEST_ENV','turboScaleUrl','true','findTestFiles','data-hooks.js','VYyvT','env','../../helpers/BrowserStackSetup','unlinkSync','setupFiles'];a16_0x3404=function(){return _0x3a5290;};return a16_0x3404();}const a16_0x4102cd=a16_0xb3f5;(function(_0x2145ed,_0x4a55b5){const _0x557806=a16_0xb3f5,_0x5ac67b=_0x2145ed();while(!![]){try{const _0x35704d=parseInt(_0x557806(0xd6))/0x1*(parseInt(_0x557806(0x167))/0x2)+parseInt(_0x557806(0xf8))/0x3*(parseInt(_0x557806(0x152))/0x4)+-parseInt(_0x557806(0x130))/0x5+parseInt(_0x557806(0x156))/0x6*(parseInt(_0x557806(0xcd))/0x7)+parseInt(_0x557806(0x142))/0x8*(-parseInt(_0x557806(0x126))/0x9)+-parseInt(_0x557806(0xaf))/0xa+parseInt(_0x557806(0x16c))/0xb;if(_0x35704d===_0x4a55b5)break;else _0x5ac67b['push'](_0x5ac67b['shift']());}catch(_0x174eed){_0x5ac67b['push'](_0x5ac67b['shift']());}}}(a16_0x3404,0x7f52c));const fs=require('fs'),path=require('path'),util=require(a16_0x4102cd(0x12e)),{spawn}=require(a16_0x4102cd(0xf0)),logger=require('../../helpers/logger')[a16_0x4102cd(0xdd)],{default:BrowserStackSetup}=require(a16_0x4102cd(0xca)),helper=require(a16_0x4102cd(0x143)),utilities=require(a16_0x4102cd(0x103)),constants=require(a16_0x4102cd(0x168)),accessibilityHelper=require(a16_0x4102cd(0x160)),{updateTestRerunConfig}=require('./test-observability/helper'),testOpsHelper=require(a16_0x4102cd(0xc2)),{debug}=require(a16_0x4102cd(0xc2)),TestDetails=require(a16_0x4102cd(0x146)),{getPercyOptions}=require(a16_0x4102cd(0x163)),TestHubHandler=require(a16_0x4102cd(0x158)),testhubUtils=require('../../helpers/testhub/utils'),{FRAMEWORKS}=require(a16_0x4102cd(0x116)),PerformanceTester=require(a16_0x4102cd(0xd9)),PerformanceEvents=require(a16_0x4102cd(0x13f))[a16_0x4102cd(0xe7)],TestOrchestrationHandler=require(a16_0x4102cd(0x148)),getUserJestConfigs=async(_0x4825ab,_0x4fc674)=>{const _0x4db4ec=a16_0x4102cd,_0x6bba3b={'BnMrT':_0x4db4ec(0x15a),'KVZQl':_0x4db4ec(0xc0),'gFihB':function(_0x604812,_0x15808c){return _0x604812||_0x15808c;},'Jxglp':function(_0x15e252,_0x44bd83){return _0x15e252(_0x44bd83);},'Oxxwx':_0x4db4ec(0x144),'JqUyp':_0x4db4ec(0x13b),'citCm':_0x4db4ec(0x164),'FayJg':_0x4db4ec(0x111),'ccHWR':_0x4db4ec(0x13c)},_0x2708ae=helper['requireModule'](_0x6bba3b[_0x4db4ec(0x11e)],_0x6bba3b['KVZQl']),_0x4d2d0a=_0x4fc674[_0x4db4ec(0x11c)](_0x1e41e3=>_0x1e41e3==='--config');if(!helper[_0x4db4ec(0xe8)](_0x4825ab['config'])){logger[_0x4db4ec(0xe4)](_0x4db4ec(0xdb)+_0x4825ab[_0x4db4ec(0xf9)]),process['env'][_0x4db4ec(0x109)]=_0x4825ab[_0x4db4ec(0xf9)];const _0x59c4bb=await(0x0,_0x2708ae[_0x4db4ec(0x101)])(path[_0x4db4ec(0x145)](_0x4825ab['config']));return _0x4fc674[_0x4db4ec(0xbc)](_0x4d2d0a,0x2),_0x6bba3b[_0x4db4ec(0xea)](_0x59c4bb,{});}const _0x3d8052=_0x6bba3b['Jxglp'](require,path[_0x4db4ec(0x157)](process[_0x4db4ec(0xe6)](),_0x6bba3b[_0x4db4ec(0xf4)]));if(_0x3d8052[_0x4db4ec(0xb2)])return logger[_0x4db4ec(0xe4)](_0x6bba3b['JqUyp']),_0x3d8052[_0x4db4ec(0xb2)];const _0x1bcc33=['js',_0x6bba3b[_0x4db4ec(0xed)],_0x6bba3b[_0x4db4ec(0xe9)],_0x6bba3b['ccHWR'],'ts'];for(const _0x3d62e7 of _0x1bcc33){const _0x41f579=path[_0x4db4ec(0x157)](process[_0x4db4ec(0xe6)](),'jest.config.'+_0x3d62e7);if(fs[_0x4db4ec(0xec)](_0x41f579)){process['env'][_0x4db4ec(0x109)]=_0x41f579;const _0x2c7885=await(0x0,_0x2708ae[_0x4db4ec(0x101)])(_0x41f579);return _0x2c7885;}}return{};},getSerial=(_0x6a9ee2,_0x4fdc66)=>{const _0x2bcd44=a16_0x4102cd,_0x3873b7={};_0x3873b7[_0x2bcd44(0x11b)]=_0x2bcd44(0xc5),_0x3873b7[_0x2bcd44(0x14d)]=function(_0xada0a4,_0x3689ca){return _0xada0a4>_0x3689ca;},_0x3873b7[_0x2bcd44(0xff)]='false';const _0x4bd09b=_0x3873b7;let _0x1fd896=_0x4bd09b['WkWRn'];return _0x4bd09b[_0x2bcd44(0x14d)](_0x6a9ee2[_0x2bcd44(0xdc)],0x1)&&(!_0x4fdc66[_0x2bcd44(0x104)]&&(helper[_0x2bcd44(0xe8)](_0x4fdc66[_0x2bcd44(0xce)])||_0x4bd09b[_0x2bcd44(0x14d)](_0x4fdc66['maxWorkers'],0x1)))&&(_0x1fd896=_0x4bd09b['sZsGO']),_0x1fd896;},getMaxWorkers=(_0x2c6f81,_0x3e4130,_0x5e420d)=>{const _0x376e3c=a16_0x4102cd,_0x4c6f6b={'fkLRD':function(_0x3c1e60,_0x2bacc4){return _0x3c1e60(_0x2bacc4);}};let _0x130751=0x1;if(!helper[_0x376e3c(0xe8)](_0x3e4130['parallelsPerPlatform']))_0x130751=_0x4c6f6b['fkLRD'](parseInt,_0x3e4130[_0x376e3c(0x10a)]);else{if(!helper[_0x376e3c(0xe8)](_0x2c6f81['maxWorkers']))_0x130751=_0x2c6f81[_0x376e3c(0xce)];else!helper['isUndefined'](_0x5e420d['maxWorkers'])&&(_0x130751=_0x5e420d[_0x376e3c(0xce)]);}return _0x130751;};function a16_0xb3f5(_0x52f2ad,_0x34b3cb){const _0x3404ce=a16_0x3404();return a16_0xb3f5=function(_0xb3f56e,_0x24032c){_0xb3f56e=_0xb3f56e-0xae;let _0x47b705=_0x3404ce[_0xb3f56e];return _0x47b705;},a16_0xb3f5(_0x52f2ad,_0x34b3cb);}async function run(_0x17b82b,_0x4630d4,_0x4f481f){const _0x48610e=a16_0x4102cd,_0x52f581={'OMpOo':'error\x20removing\x20tcg\x20config\x20file','HcgvD':_0x48610e(0xb2),'nBVhl':function(_0x56dee5,_0xc668c7){return _0x56dee5(_0xc668c7);},'QrcAk':function(_0x47ebe0,_0x347342){return _0x47ebe0!=_0x347342;},'LrDNy':_0x48610e(0xc5),'BACav':function(_0x29c283,_0x3d56ff,_0x372045){return _0x29c283(_0x3d56ff,_0x372045);},'gwflP':_0x48610e(0xcf),'usCdB':function(_0x36c84c,_0xdfd1c8){return _0x36c84c(_0xdfd1c8);},'SROXq':function(_0x1decd6,_0x372812,_0x2bec79){return _0x1decd6(_0x372812,_0x2bec79);},'VxAIh':function(_0x333d8f,_0x40272f,_0x245e95,_0x42a626){return _0x333d8f(_0x40272f,_0x245e95,_0x42a626);},'atzHm':function(_0x120fea,_0x50b136){return _0x120fea*_0x50b136;},'fOeJZ':function(_0x320cf3,_0x4f328f){return _0x320cf3===_0x4f328f;},'QflwG':'jest_browserstack.config.cjs','ezpxW':_0x48610e(0x10d),'iadWI':_0x48610e(0x161),'zHuPr':_0x48610e(0xdf),'WUGfH':_0x48610e(0x13d),'VYyvT':_0x48610e(0x134),'trvZw':_0x48610e(0x14c),'GlDvt':_0x48610e(0x174),'AZiDt':_0x48610e(0x102),'RYnlf':'jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js','izcqi':_0x48610e(0x147),'ZFWbX':_0x48610e(0xae),'HaxCE':_0x48610e(0xc7),'UqsVw':_0x48610e(0xe2),'iZbhu':_0x48610e(0x12a),'pjyOY':_0x48610e(0x173),'YMLiI':_0x48610e(0x101),'pBBFH':_0x48610e(0x15c),'YlGNA':function(_0x20ed04,_0x4dfee7){return _0x20ed04>_0x4dfee7;},'PMtXi':'Showing\x20jest\x20logs\x20and\x20reporter\x20logs.','CYCTo':_0x48610e(0x155),'cTRrF':_0x48610e(0x124),'oSVNI':function(_0x2432d8,_0x55aa17){return _0x2432d8===_0x55aa17;},'ufAGi':'win32','YyKtg':_0x48610e(0xbb),'XKvzD':'close'};helper[_0x48610e(0xb7)]()?(await _0x4f481f[_0x48610e(0x131)](_0x17b82b),await helper[_0x48610e(0xbd)](_0x4f481f[_0x48610e(0xf9)])):await _0x4f481f[_0x48610e(0x115)]();if(!_0x4f481f[_0x48610e(0xf9)])return;_0x52f581[_0x48610e(0xf7)](_0x4f481f[_0x48610e(0xf9)][_0x48610e(0xfa)],null)?process['env'][_0x48610e(0xb5)]=_0x4f481f[_0x48610e(0xf9)][_0x48610e(0xfa)]:process['env']['BROWSERSTACK_TEST_OBSERVABILITY_YML']=_0x52f581[_0x48610e(0xd7)];const _0x386d74=new TestOrchestrationHandler(_0x4f481f[_0x48610e(0xf9)]),_0x5a49fb=await _0x52f581[_0x48610e(0xf1)](getUserJestConfigs,_0x17b82b,_0x4630d4);logger['info'](_0x52f581[_0x48610e(0x14f)]);const _0x5bd62e=Object[_0x48610e(0x100)]({},_0x5a49fb);_0x5bd62e['testEnvironmentOptions']=Object[_0x48610e(0x100)]({},_0x5bd62e[_0x48610e(0x122)],{'server':helper[_0x48610e(0xda)](_0x4f481f[_0x48610e(0xf9)]),'environment':_0x5a49fb['testEnvironment']}),_0x5bd62e['testEnvironmentOptions'][_0x48610e(0x10f)]=_0x52f581[_0x48610e(0xee)](getPercyOptions,_0x4f481f[_0x48610e(0xf9)]);const _0x2f5ec6=helper['useW3C'](_0x4f481f[_0x48610e(0xf9)]);!helper[_0x48610e(0xe8)](_0x4f481f[_0x48610e(0xf9)][_0x48610e(0xfc)])&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x4f481f[_0x48610e(0xf9)][_0x48610e(0xfc)]));const _0x2381f6=await TestHubHandler[_0x48610e(0x159)](FRAMEWORKS[_0x48610e(0x106)],_0x4f481f),_0x48ef8e=helper['prepareCapabilities'](_0x4f481f[_0x48610e(0xf9)],_0x2f5ec6,constants['FRAMEWORKS'][_0x48610e(0x106)]);let _0x420210=_0x4f481f['config'][_0x48610e(0xbe)];_0x420210=_0x420210||accessibilityHelper['checkAccessibilityPlatformConfig'](_0x4f481f[_0x48610e(0xf9)]),process[_0x48610e(0xc9)][_0x48610e(0x117)]=_0x420210,_0x5bd62e['testEnvironmentOptions']['capabilities']=_0x48ef8e,_0x5bd62e[_0x48610e(0x122)][_0x48610e(0x14a)]=_0x52f581[_0x48610e(0x12f)](getSerial,_0x48ef8e,_0x17b82b),_0x5bd62e[_0x48610e(0x122)]['parallels__']=_0x52f581[_0x48610e(0xc1)](getMaxWorkers,_0x17b82b,_0x4f481f[_0x48610e(0xf9)],_0x5a49fb),_0x5bd62e[_0x48610e(0x122)][_0x48610e(0xbf)]=_0x4f481f[_0x48610e(0xf9)][_0x48610e(0xbf)],_0x5bd62e[_0x48610e(0x122)][_0x48610e(0xe5)]=_0x52f581['atzHm'](_0x17b82b[_0x48610e(0xf5)],0x1)||0x1388,_0x5bd62e[_0x48610e(0x122)][_0x48610e(0x108)]=_0x4f481f[_0x48610e(0xf9)][_0x48610e(0x15f)][_0x48610e(0x108)],_0x5bd62e['testEnvironmentOptions'][_0x48610e(0x14e)]=_0x4f481f[_0x48610e(0xf9)][_0x48610e(0x15f)][_0x48610e(0x14e)],_0x5bd62e[_0x48610e(0x122)][_0x48610e(0xd1)]=_0x4f481f[_0x48610e(0xf9)][_0x48610e(0x11a)],_0x5bd62e[_0x48610e(0x122)][_0x48610e(0xc4)]=_0x4f481f['config'][_0x48610e(0xc4)],_0x5bd62e[_0x48610e(0x122)][_0x48610e(0xd8)]=_0x4f481f[_0x48610e(0xf9)][_0x48610e(0x11f)];const _0x56925c=helper['parseTestOrchestrationOptions'](_0x4f481f[_0x48610e(0xf9)]);if(!helper[_0x48610e(0x125)](_0x56925c)){helper['isNotUndefined'](_0x56925c[_0x48610e(0xb4)])&&(_0x5bd62e[_0x48610e(0x122)][_0x48610e(0xb6)]=_0x56925c['retryTestsOnFailure'][_0x48610e(0x149)]);if(helper['isNotUndefined'](_0x56925c[_0x48610e(0xf3)])&&helper[_0x48610e(0x153)](_0x56925c[_0x48610e(0xf3)]['workingDir'])){const _0x34a429={};_0x34a429[_0x48610e(0x16a)]=_0x56925c[_0x48610e(0xf3)][_0x48610e(0xd0)],_0x34a429['workingDir']=_0x56925c[_0x48610e(0xf3)]['workingDir'],_0x5bd62e[_0x48610e(0x122)][_0x48610e(0xef)]=_0x34a429;}}let _0x3a2b56='';_0x52f581[_0x48610e(0x137)](helper[_0x48610e(0x12d)](),constants[_0x48610e(0x166)]['MODULE'])?_0x3a2b56=_0x52f581[_0x48610e(0x114)]:_0x3a2b56=_0x52f581['ezpxW'];const _0x4fcdc8=_0x3a2b56,_0x3290aa=path['join'](__dirname,_0x52f581[_0x48610e(0xeb)],_0x52f581[_0x48610e(0x171)]),_0x218a29=path[_0x48610e(0x157)](__dirname,_0x52f581['iadWI'],_0x52f581[_0x48610e(0x15d)]),_0x36fd72=path[_0x48610e(0x157)](__dirname,_0x52f581[_0x48610e(0xeb)],_0x52f581[_0x48610e(0xc8)]);_0x5bd62e['testEnvironment']&&(process['env'][_0x48610e(0xc3)]=_0x5bd62e[_0x48610e(0xd2)]);_0x5bd62e[_0x48610e(0xd2)]=path['join'](__dirname,_0x52f581[_0x48610e(0xeb)],_0x52f581['trvZw']),_0x5bd62e[_0x48610e(0x133)]=_0x218a29,_0x5bd62e['setupFilesAfterEnv']=_0x5bd62e[_0x48610e(0x138)]||[],_0x5bd62e[_0x48610e(0x138)][_0x48610e(0xf2)](path[_0x48610e(0x157)](__dirname,_0x52f581['GlDvt']));_0x386d74[_0x48610e(0xd5)]()&&(_0x5bd62e[_0x48610e(0xde)]=path[_0x48610e(0x157)](__dirname,_0x52f581['iadWI'],_0x52f581['AZiDt']));if(testhubUtils[_0x48610e(0x169)]()){let _0x200270=null;try{_0x200270=helper['requireModule'](_0x52f581[_0x48610e(0xfe)],_0x52f581[_0x48610e(0x132)]);}catch(_0x597a74){_0x52f581[_0x48610e(0xb1)](debug,_0x48610e(0x120)+_0x597a74);}_0x200270&&(_0x5bd62e[_0x48610e(0x138)][_0x48610e(0xf2)](path[_0x48610e(0x157)](__dirname,_0x52f581[_0x48610e(0x13a)],_0x52f581[_0x48610e(0xe1)])),_0x5bd62e['testRunner']=path[_0x48610e(0x157)](__dirname,_0x52f581[_0x48610e(0xeb)],_0x52f581[_0x48610e(0x12b)]));}_0x5bd62e['setupFiles']=_0x5bd62e[_0x48610e(0xcc)]||[];try{helper[_0x48610e(0x128)](),_0x5bd62e['setupFiles'][_0x48610e(0xf2)](path[_0x48610e(0x157)](__dirname,_0x52f581[_0x48610e(0x113)]));}catch{logger['debug'](_0x52f581['pjyOY']);}_0x5bd62e[_0x48610e(0xfd)]=_0x5bd62e[_0x48610e(0xfd)]||[_0x52f581[_0x48610e(0x127)]],_0x52f581[_0x48610e(0xf1)](updateTestRerunConfig,_0x5bd62e,_0x4f481f);const _0x1af2d1=fs['readFileSync'](_0x36fd72);fs[_0x48610e(0x13e)](_0x5bd62e['runner'],_0x48610e(0x172)+_0x1af2d1+'\x0a\x0a\x20\x20\x20\x20const\x20ReporterDispatcher\x20=\x20_interopRequireDefault(requireModule(\x27@jest/core/build/ReporterDispatcher.js\x27,\x20\x27@jest/core\x27)).default;\x20//node_modules/@jest/core/build/ReporterDispatcher.js\x0a\x20\x20\x20\x20const\x20fs\x20=\x20require(\x27fs\x27);\x0a\x20\x20\x20\x20const\x20path\x20=\x20require(\x27path\x27);\x0a\x20\x20\x20\x20const\x20helper\x20=\x20require(\x27../../../helpers/helper\x27);\x0a\x20\x20\x20\x20var\x20_someFunc\x20=\x20ReporterDispatcher.prototype.onRunComplete;\x0a\x20\x20\x20\x20ReporterDispatcher.prototype.onRunComplete\x20=\x20async\x20function\x20(testContexts,\x20results)\x20{\x0a\x20\x20\x20\x20\x20\x20results.numTotalTestSuites\x20=\x20results.numTotalTestSuites\x20*\x20'+_0x4f481f[_0x48610e(0xf9)][_0x48610e(0x11f)][_0x48610e(0xdc)]+_0x48610e(0x162)),logger[_0x48610e(0xe4)](_0x48610e(0x10b)+_0x4fcdc8+_0x48610e(0x151)),fs[_0x48610e(0x13e)](_0x4fcdc8,_0x48610e(0x140)+JSON[_0x48610e(0x154)](_0x5bd62e)+'\x0amodule.exports\x20=\x20config;');if(_0x386d74['isTestOrchestrationEnabled']()){logger[_0x48610e(0x129)](_0x52f581[_0x48610e(0xf6)]);const _0x533233=await _0x386d74[_0x48610e(0xc6)](_0x5bd62e,_0x4630d4['slice'](0x1),_0x4fcdc8);logger[_0x48610e(0x129)](_0x48610e(0x123)+JSON['stringify'](_0x533233)+_0x48610e(0x16b));const _0x114060=await _0x386d74[_0x48610e(0x141)](_0x533233);logger[_0x48610e(0x129)](_0x48610e(0x119)+JSON[_0x48610e(0x154)](_0x114060)),_0x114060&&_0x52f581['YlGNA'](_0x114060[_0x48610e(0xdc)],0x0)&&(process[_0x48610e(0xc9)]['JEST_TEST_ORDER']=_0x114060?.['join'](','));}logger[_0x48610e(0xe4)](_0x52f581['PMtXi']);testhubUtils[_0x48610e(0x169)]()&&TestDetails['setup']();helper[_0x48610e(0x112)]({},_0x4630d4),PerformanceTester[_0x48610e(0x105)](PerformanceEvents[_0x48610e(0x150)]);const _0x61640=_0x52f581[_0x48610e(0xc1)](spawn,_0x52f581[_0x48610e(0x14b)],[_0x52f581['HcgvD'],_0x52f581['cTRrF'],_0x4fcdc8,..._0x4630d4[_0x48610e(0x12c)](0x1)],{'shell':_0x52f581[_0x48610e(0x16e)](process[_0x48610e(0xb8)],_0x52f581[_0x48610e(0x135)]),'stdio':_0x52f581[_0x48610e(0x121)],'env':Object['assign']({},process[_0x48610e(0xc9)])});_0x61640['on'](_0x52f581['XKvzD'],async _0x2ca8ef=>{const _0x382aa3=_0x48610e;PerformanceTester[_0x382aa3(0x11d)](PerformanceEvents[_0x382aa3(0x15b)]);try{const {browserstackFolderPath:_0x2047db,tcgConfigPath:_0x491b87}=helper[_0x382aa3(0xb9)]();fs[_0x382aa3(0xcb)](_0x491b87),fs[_0x382aa3(0x16d)](_0x2047db);}catch(_0x408268){logger['debug'](_0x52f581[_0x382aa3(0xfb)],_0x408268);}process['exitCode']=_0x2ca8ef,logger['debug'](_0x382aa3(0x10c)+_0x2ca8ef),logger[_0x382aa3(0xe4)](_0x382aa3(0xb0)+_0x4fcdc8);if(helper[_0x382aa3(0x153)](_0x56925c)&&helper[_0x382aa3(0x153)](_0x56925c[_0x382aa3(0xf3)])&&fs[_0x382aa3(0xec)](_0x56925c['abortBuildOnFailure'][_0x382aa3(0xd3)]))try{const _0x1e34cd={};_0x1e34cd['recursive']=!![],_0x1e34cd[_0x382aa3(0x165)]=!![],fs[_0x382aa3(0x118)](_0x56925c['abortBuildOnFailure'][_0x382aa3(0xd3)],_0x1e34cd),logger[_0x382aa3(0x129)]('Deleted\x20fail-fast\x20state\x20folder:\x20'+_0x56925c[_0x382aa3(0xf3)][_0x382aa3(0xd3)]);}catch(_0x309e30){logger[_0x382aa3(0x16f)](_0x382aa3(0x136)+_0x309e30);}let _0x4ad30d=null;if(fs['existsSync'](_0x3290aa)){_0x4ad30d=fs['readFileSync'](_0x3290aa);try{_0x4ad30d=JSON['parse'](_0x4ad30d);}catch(_0x1c1434){logger[_0x382aa3(0x129)](_0x382aa3(0x110)+_0x3290aa+',\x20'+_0x4ad30d+_0x382aa3(0xba)+_0x1c1434);}fs[_0x382aa3(0xcb)](_0x3290aa);}fs[_0x382aa3(0xcb)](_0x4fcdc8),fs[_0x382aa3(0xcb)](_0x218a29),_0x4ad30d&&(_0x4f481f[_0x382aa3(0xe3)]=helper[_0x382aa3(0x139)](_0x4ad30d,_0x52f581[_0x382aa3(0x170)],_0x4f481f));try{await TestHubHandler[_0x382aa3(0x10e)]();}catch(_0x20168d){console[_0x382aa3(0xe0)](_0x20168d),_0x52f581[_0x382aa3(0xb1)](debug,_0x382aa3(0x107)+util['format'](_0x20168d));}testOpsHelper[_0x382aa3(0x15e)](),TestDetails[_0x382aa3(0xb3)](),await utilities[_0x382aa3(0xd4)](_0x4f481f);});}module['exports']=run;
|
|
2
|
+
'use strict';function a16_0x128f(){const _0x5177c4=['getTCGConfigFilePaths','testEnvironment','cjs','skipSessionName','Reodered\x20Test\x20Files:\x20','data-hooks.js','gSvhi','parallelsPerPlatform','HBRaz','RWIIU','length','customEnvironment.js','maxFailures','pXBMo','jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js','Giyry','capabilities','reporters','failureThresholdCount','resolve','../../helpers/helper','Exception\x20in\x20stop\x20build\x20request\x20to\x20TestHub\x20:\x20','abortBuildOnFailure','existsSync','jest_browserstack_results.json','accessibility','false','395281LLPVwl','setupTCGAuth','utGJl','json','testEnvironmentOptions','Unable\x20to\x20find\x20jest-circus,\x20','GaOUg','start','Creating\x20','skipSessionStatus','true','UfueT','customCircus.js','../../helpers/logger','winstonLogger','KWefC','jest','readFileSync','logLevel','isUndefined','GLoYj','default','stop','cnuQh','Showing\x20jest\x20logs\x20and\x20reporter\x20logs.','EVENTS','../../helpers/testhub/testhubHandler','\x0amodule.exports\x20=\x20config;','unlinkSync','testSequencer','setupFiles','jest.config.','maxWorkers','child_process','jest-config/build/readConfigFileAndSetRootDir.js','parseTestOrchestrationOptions',';\x0a\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(__dirname,\x20\x27jest_browserstack_results.json\x27),\x20JSON.stringify(results));\x0a\x20\x20\x20\x20\x20\x20return\x20_someFunc.call(this,\x20testContexts,\x20results);\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20var\x20_onTestFileResultOrig\x20=\x20ReporterDispatcher.prototype.onTestFileResult;\x0a\x20\x20\x20\x20ReporterDispatcher.prototype.onTestFileResult\x20=\x20async\x20function\x20(test,\x20testResult,\x20result)\x20{\x0a\x20\x20\x20\x20\x20\x20testResult.platform\x20=\x20helper.getPlatformName(test.context.config.capability);\x0a\x20\x20\x20\x20\x20\x20return\x20_onTestFileResultOrig.call(this,\x20test,\x20testResult,\x20result);\x0a\x20\x20\x20\x20}\x0a\x20\x20','ujdNO','assign','Deleting\x20','nTUhM','launchBuild','customImplements','platforms','getPackageType','customSequencer.js','const\x20config=','parallels__','jest-config','handleApp','failFast','Error\x20while\x20parsing\x20','../../helpers/test-observability/utils','exitCode','64kVsJUd','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','requireModule','format','\x20:\x20','path','splice','GAxTY','reorderTestFiles','Found:\x20','util','shutdown','testTimeout','ghDJG','config','debug','./test-observability/test-details','log','../../helpers/performance/constants','sJUCA','requireSeleniumWebdriver','../../helpers/test-orchestration/testOrchestrationHandler','EIQIu','TjadB','skipping\x20test_before\x20setup\x20since\x20selenium\x20not\x20found','close','tHlJm','customTestRunner.js','\x20with\x20browserstack\x20jest\x20configs','jest_browserstack.config.js','Modifying\x20jest\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','getErrorMessageFromResults','mjs','../../helpers/percy/utils','customTestRunnerTemplate.js','end','join','force','../../helpers/testhub/utils','GqmBJ','browserStackLogLevel','runner','testObservability','proxySettings','NiFhx','aaMnr','fOvfr','FRAMEWORKS','5276474XWfAPx','isBrowserstackInfra','Deleted\x20fail-fast\x20state\x20folder:\x20','isTestOrchestrationEnabled','maxRetries','rysRQ','push','inherit','writeFileSync','yZgTP','turboScaleUrl','workingDir','testContextOptions','NIEce','setupFilesAfterEnv','getHubUrl','retries__','1482285aaunlj','stringify','ODuMs','checkAccessibilityPlatformConfig','JEST','--config','OAazJ','error','3343158MuoZzq','platformCaps','Getting\x20your\x20jest\x20configs\x20from\x20package.json','isNotUndefined','slice','LUaNT','retryTestsOnFailure','jest-circus','browserStackPercyOptions','shouldProcessEventForTesthub','BROWSERSTACK_TEST_OBSERVABILITY_YML','platform','BXChU','runInBand','rmSync','yDdlg','1348tCbdrR','gRFCi','../utils/constants','jest.setup.js','test-observability','2076jpAsMH','info','Getting\x20your\x20jest\x20configs\x20from\x20','exports','../../helpers/accessibility-automation/helper','serial__','finalExecution','../../helpers/test-observability/constants','child\x20process\x20exited\x20with\x20code\x20','win32','NAleR','test_before.setup.js','eBuIi','env','oCTEY','xtbGk','peNnV','LNYbs','../../helpers/BrowserStackSetup','BSTACK_JEST_TEST_ENV','330620niuZyT','yDWWc','ZAOUl','jest_browserstack.config.cjs','1567683XZVfER'];a16_0x128f=function(){return _0x5177c4;};return a16_0x128f();}const a16_0x5c0197=a16_0xfb5f;(function(_0x5da10d,_0x4a5a1c){const _0x45ee34=a16_0xfb5f,_0x488777=_0x5da10d();while(!![]){try{const _0x439298=parseInt(_0x45ee34(0x1e5))/0x1+-parseInt(_0x45ee34(0x1ac))/0x2*(-parseInt(_0x45ee34(0x1b1))/0x3)+-parseInt(_0x45ee34(0x1c5))/0x4+-parseInt(_0x45ee34(0x194))/0x5+-parseInt(_0x45ee34(0x19c))/0x6+-parseInt(_0x45ee34(0x24b))/0x7+-parseInt(_0x45ee34(0x21b))/0x8*(-parseInt(_0x45ee34(0x1c9))/0x9);if(_0x439298===_0x4a5a1c)break;else _0x488777['push'](_0x488777['shift']());}catch(_0x214b0c){_0x488777['push'](_0x488777['shift']());}}}(a16_0x128f,0x89f6a));const fs=require('fs'),path=require(a16_0x5c0197(0x220)),util=require(a16_0x5c0197(0x225)),{spawn}=require(a16_0x5c0197(0x206)),logger=require(a16_0x5c0197(0x1f2))[a16_0x5c0197(0x1f3)],{default:BrowserStackSetup}=require(a16_0x5c0197(0x1c3)),helper=require(a16_0x5c0197(0x1de)),utilities=require('../../helpers/utilities'),constants=require(a16_0x5c0197(0x1ae)),accessibilityHelper=require(a16_0x5c0197(0x1b5)),{updateTestRerunConfig}=require('./test-observability/helper'),testOpsHelper=require(a16_0x5c0197(0x219)),{debug}=require(a16_0x5c0197(0x219)),TestDetails=require(a16_0x5c0197(0x22b)),{getPercyOptions}=require(a16_0x5c0197(0x23c)),TestHubHandler=require(a16_0x5c0197(0x1ff)),testhubUtils=require(a16_0x5c0197(0x241)),{FRAMEWORKS}=require(a16_0x5c0197(0x1b8)),PerformanceTester=require('../../helpers/performance/performance-tester'),PerformanceEvents=require(a16_0x5c0197(0x22d))[a16_0x5c0197(0x1fe)],TestOrchestrationHandler=require(a16_0x5c0197(0x230)),getUserJestConfigs=async(_0xdf54a0,_0x43809e)=>{const _0x5663f3=a16_0x5c0197,_0x5d8d37={'ZmOUy':_0x5663f3(0x207),'aaMnr':_0x5663f3(0x215),'OAazJ':function(_0x1fb8b5,_0x481a56){return _0x1fb8b5||_0x481a56;},'utGJl':function(_0x2e4100,_0x1a15c0){return _0x2e4100(_0x1a15c0);},'TMXgc':'package.json','LUaNT':_0x5663f3(0x19e),'sJUCA':_0x5663f3(0x23b),'gMSXA':_0x5663f3(0x1cc),'LNYbs':_0x5663f3(0x1e8)},_0xf295e9=helper[_0x5663f3(0x21d)](_0x5d8d37['ZmOUy'],_0x5d8d37[_0x5663f3(0x248)]),_0x296db3=_0x43809e['findIndex'](_0x369ce0=>_0x369ce0===_0x5663f3(0x199));if(!helper[_0x5663f3(0x1f8)](_0xdf54a0[_0x5663f3(0x229)])){logger['info'](_0x5663f3(0x1b3)+_0xdf54a0['config']),process[_0x5663f3(0x1be)]['USER_CONFIG_DETAILS_PATH']=_0xdf54a0[_0x5663f3(0x229)];const _0x1371d1=await(0x0,_0xf295e9[_0x5663f3(0x1fa)])(path[_0x5663f3(0x1dd)](_0xdf54a0[_0x5663f3(0x229)]));return _0x43809e[_0x5663f3(0x221)](_0x296db3,0x2),_0x5d8d37[_0x5663f3(0x19a)](_0x1371d1,{});}const _0x5b97a8=_0x5d8d37[_0x5663f3(0x1e7)](require,path[_0x5663f3(0x23f)](process['cwd'](),_0x5d8d37['TMXgc']));if(_0x5b97a8[_0x5663f3(0x1f5)])return logger['info'](_0x5d8d37[_0x5663f3(0x1a1)]),_0x5b97a8[_0x5663f3(0x1f5)];const _0x34e282=['js',_0x5d8d37[_0x5663f3(0x22e)],_0x5d8d37['gMSXA'],_0x5d8d37[_0x5663f3(0x1c2)],'ts'];for(const _0xbc622d of _0x34e282){const _0x33557c=path[_0x5663f3(0x23f)](process['cwd'](),_0x5663f3(0x204)+_0xbc622d);if(fs[_0x5663f3(0x1e1)](_0x33557c)){process[_0x5663f3(0x1be)]['USER_CONFIG_DETAILS_PATH']=_0x33557c;const _0x122590=await(0x0,_0xf295e9[_0x5663f3(0x1fa)])(_0x33557c);return _0x122590;}}return{};},getSerial=(_0x2e3105,_0x292e5a)=>{const _0x129362=a16_0x5c0197,_0x3d705e={};_0x3d705e['gSvhi']=_0x129362(0x1ef),_0x3d705e[_0x129362(0x1bf)]=function(_0xa3a1d8,_0x3f2417){return _0xa3a1d8>_0x3f2417;},_0x3d705e[_0x129362(0x1bd)]=function(_0x1b7cc0,_0x55bf94){return _0x1b7cc0>_0x55bf94;},_0x3d705e[_0x129362(0x188)]=_0x129362(0x1e4);const _0x4a7808=_0x3d705e;let _0x3357d9=_0x4a7808[_0x129362(0x1d0)];return _0x4a7808['oCTEY'](_0x2e3105['length'],0x1)&&(!_0x292e5a[_0x129362(0x1a9)]&&(helper[_0x129362(0x1f8)](_0x292e5a[_0x129362(0x205)])||_0x4a7808[_0x129362(0x1bd)](_0x292e5a[_0x129362(0x205)],0x1)))&&(_0x3357d9=_0x4a7808[_0x129362(0x188)]),_0x3357d9;},getMaxWorkers=(_0x2e56ab,_0x1c33cc,_0x4c2dac)=>{const _0x360ceb=a16_0x5c0197,_0x35ea8d={'ujdNO':function(_0x40d7c2,_0x4e76f8){return _0x40d7c2(_0x4e76f8);}};let _0xfc9049=0x1;if(!helper[_0x360ceb(0x1f8)](_0x1c33cc[_0x360ceb(0x1d1)]))_0xfc9049=_0x35ea8d[_0x360ceb(0x20a)](parseInt,_0x1c33cc[_0x360ceb(0x1d1)]);else{if(!helper[_0x360ceb(0x1f8)](_0x2e56ab[_0x360ceb(0x205)]))_0xfc9049=_0x2e56ab[_0x360ceb(0x205)];else!helper[_0x360ceb(0x1f8)](_0x4c2dac[_0x360ceb(0x205)])&&(_0xfc9049=_0x4c2dac[_0x360ceb(0x205)]);}return _0xfc9049;};async function run(_0x33b55f,_0x24b086,_0x51eae3){const _0x2ea15c=a16_0x5c0197,_0x136f38={'pXBMo':'error\x20removing\x20tcg\x20config\x20file','EIQIu':_0x2ea15c(0x1f5),'NiFhx':function(_0x1eb55a,_0x14178c){return _0x1eb55a(_0x14178c);},'GaOUg':function(_0x45a389,_0x502b0c){return _0x45a389!=_0x502b0c;},'flbNx':'true','YeOss':function(_0x522477,_0xf3f148,_0xd99c73){return _0x522477(_0xf3f148,_0xd99c73);},'GqmBJ':_0x2ea15c(0x239),'NAleR':function(_0x5926e4,_0x4054db){return _0x5926e4(_0x4054db);},'ANSGt':function(_0x3ab557,_0x10e1c3,_0x25d832){return _0x3ab557(_0x10e1c3,_0x25d832);},'GAxTY':function(_0x3b597d,_0x5aae82,_0x31e024,_0x20301f){return _0x3b597d(_0x5aae82,_0x31e024,_0x20301f);},'bTgrr':function(_0x3da7f8,_0x4cefc3){return _0x3da7f8*_0x4cefc3;},'tHlJm':function(_0x2de697,_0x409743){return _0x2de697===_0x409743;},'xtbGk':_0x2ea15c(0x1c8),'Ukttb':_0x2ea15c(0x238),'yDdlg':_0x2ea15c(0x20f),'TjadB':_0x2ea15c(0x1e2),'BXChU':_0x2ea15c(0x236),'Paquh':_0x2ea15c(0x23d),'GLoYj':_0x2ea15c(0x1d5),'NIEce':_0x2ea15c(0x1af),'gRFCi':_0x2ea15c(0x212),'ZAOUl':_0x2ea15c(0x1d8),'YNbOC':_0x2ea15c(0x1a3),'Giyry':function(_0x3021d7,_0x35df9e){return _0x3021d7(_0x35df9e);},'UfueT':_0x2ea15c(0x1b0),'cnuQh':_0x2ea15c(0x1cf),'RWIIU':_0x2ea15c(0x1f1),'nTUhM':_0x2ea15c(0x1bc),'yZgTP':_0x2ea15c(0x233),'dCZFm':_0x2ea15c(0x1fa),'HBRaz':function(_0x105d0b,_0x2ee34a,_0x88e28e){return _0x105d0b(_0x2ee34a,_0x88e28e);},'KWefC':'Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','ghDJG':function(_0x39cd69,_0x33f16f){return _0x39cd69>_0x33f16f;},'yDWWc':_0x2ea15c(0x1fd),'fOvfr':'npx','VikFd':_0x2ea15c(0x199),'ODuMs':_0x2ea15c(0x1ba),'peNnV':_0x2ea15c(0x18a),'saRkY':_0x2ea15c(0x234)};helper[_0x2ea15c(0x24c)]()?(await _0x51eae3['initialize'](_0x33b55f),await helper[_0x2ea15c(0x216)](_0x51eae3[_0x2ea15c(0x229)])):await _0x51eae3[_0x2ea15c(0x1e6)]();if(!_0x51eae3['config'])return;_0x136f38[_0x2ea15c(0x1eb)](_0x51eae3[_0x2ea15c(0x229)]['testObservability'],null)?process[_0x2ea15c(0x1be)][_0x2ea15c(0x1a6)]=_0x51eae3[_0x2ea15c(0x229)][_0x2ea15c(0x245)]:process[_0x2ea15c(0x1be)][_0x2ea15c(0x1a6)]=_0x136f38['flbNx'];const _0x215013=new TestOrchestrationHandler(_0x51eae3['config']),_0x464501=await _0x136f38['YeOss'](getUserJestConfigs,_0x33b55f,_0x24b086);logger[_0x2ea15c(0x1b2)](_0x136f38[_0x2ea15c(0x242)]);const _0x194833=Object[_0x2ea15c(0x20b)]({},_0x464501);_0x194833[_0x2ea15c(0x1e9)]=Object[_0x2ea15c(0x20b)]({},_0x194833['testEnvironmentOptions'],{'server':helper[_0x2ea15c(0x192)](_0x51eae3[_0x2ea15c(0x229)]),'environment':_0x464501[_0x2ea15c(0x1cb)]}),_0x194833[_0x2ea15c(0x1e9)][_0x2ea15c(0x1a4)]=_0x136f38[_0x2ea15c(0x1bb)](getPercyOptions,_0x51eae3[_0x2ea15c(0x229)]);const _0x3b7011=helper['useW3C'](_0x51eae3['config']);!helper['isUndefined'](_0x51eae3[_0x2ea15c(0x229)]['accessibilityOptions'])&&(process[_0x2ea15c(0x1be)][_0x2ea15c(0x21c)]=JSON[_0x2ea15c(0x195)](_0x51eae3[_0x2ea15c(0x229)]['accessibilityOptions']));const _0x1295e8=await TestHubHandler[_0x2ea15c(0x20e)](FRAMEWORKS[_0x2ea15c(0x198)],_0x51eae3),_0x5d16e2=helper['prepareCapabilities'](_0x51eae3['config'],_0x3b7011,constants[_0x2ea15c(0x24a)]['JEST']);let _0x4c9fd9=_0x51eae3[_0x2ea15c(0x229)][_0x2ea15c(0x1e3)];_0x4c9fd9=_0x4c9fd9||accessibilityHelper[_0x2ea15c(0x197)](_0x51eae3['config']),process[_0x2ea15c(0x1be)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x4c9fd9,_0x194833[_0x2ea15c(0x1e9)][_0x2ea15c(0x1da)]=_0x5d16e2,_0x194833[_0x2ea15c(0x1e9)][_0x2ea15c(0x1b6)]=_0x136f38['ANSGt'](getSerial,_0x5d16e2,_0x33b55f),_0x194833['testEnvironmentOptions'][_0x2ea15c(0x214)]=_0x136f38[_0x2ea15c(0x222)](getMaxWorkers,_0x33b55f,_0x51eae3[_0x2ea15c(0x229)],_0x464501),_0x194833[_0x2ea15c(0x1e9)][_0x2ea15c(0x246)]=_0x51eae3[_0x2ea15c(0x229)][_0x2ea15c(0x246)],_0x194833[_0x2ea15c(0x1e9)]['timeout__']=_0x136f38['bTgrr'](_0x33b55f[_0x2ea15c(0x227)],0x1)||0x1388,_0x194833[_0x2ea15c(0x1e9)][_0x2ea15c(0x1cd)]=_0x51eae3[_0x2ea15c(0x229)][_0x2ea15c(0x18f)][_0x2ea15c(0x1cd)],_0x194833[_0x2ea15c(0x1e9)][_0x2ea15c(0x1ee)]=_0x51eae3['config'][_0x2ea15c(0x18f)][_0x2ea15c(0x1ee)],_0x194833['testEnvironmentOptions'][_0x2ea15c(0x243)]=_0x51eae3['config'][_0x2ea15c(0x1f7)],_0x194833[_0x2ea15c(0x1e9)][_0x2ea15c(0x18d)]=_0x51eae3[_0x2ea15c(0x229)][_0x2ea15c(0x18d)],_0x194833[_0x2ea15c(0x1e9)][_0x2ea15c(0x19d)]=_0x51eae3[_0x2ea15c(0x229)][_0x2ea15c(0x210)];const _0x4ea726=helper[_0x2ea15c(0x208)](_0x51eae3['config']);if(!helper['isEmpty'](_0x4ea726)){helper[_0x2ea15c(0x19f)](_0x4ea726[_0x2ea15c(0x1a2)])&&(_0x194833[_0x2ea15c(0x1e9)][_0x2ea15c(0x193)]=_0x4ea726[_0x2ea15c(0x1a2)][_0x2ea15c(0x24f)]);if(helper[_0x2ea15c(0x19f)](_0x4ea726[_0x2ea15c(0x1e0)])&&helper[_0x2ea15c(0x19f)](_0x4ea726[_0x2ea15c(0x1e0)]['workingDir'])){const _0x4db5f6={};_0x4db5f6[_0x2ea15c(0x1dc)]=_0x4ea726[_0x2ea15c(0x1e0)][_0x2ea15c(0x1d6)],_0x4db5f6[_0x2ea15c(0x18e)]=_0x4ea726[_0x2ea15c(0x1e0)]['workingDir'],_0x194833[_0x2ea15c(0x1e9)][_0x2ea15c(0x217)]=_0x4db5f6;}}let _0x2e6f4f='';_0x136f38['tHlJm'](helper[_0x2ea15c(0x211)](),constants['PACKAGE_TYPE']['MODULE'])?_0x2e6f4f=_0x136f38[_0x2ea15c(0x1c0)]:_0x2e6f4f=_0x136f38['Ukttb'];const _0x3f60dd=_0x2e6f4f,_0x3860e8=path[_0x2ea15c(0x23f)](__dirname,_0x136f38['yDdlg'],_0x136f38[_0x2ea15c(0x232)]),_0xd4f45d=path[_0x2ea15c(0x23f)](__dirname,_0x136f38[_0x2ea15c(0x1ab)],_0x136f38[_0x2ea15c(0x1a8)]),_0x552a46=path[_0x2ea15c(0x23f)](__dirname,_0x136f38[_0x2ea15c(0x1ab)],_0x136f38['Paquh']);_0x194833[_0x2ea15c(0x1cb)]&&(process['env'][_0x2ea15c(0x1c4)]=_0x194833[_0x2ea15c(0x1cb)]);_0x194833['testEnvironment']=path['join'](__dirname,_0x136f38[_0x2ea15c(0x1ab)],_0x136f38[_0x2ea15c(0x1f9)]),_0x194833[_0x2ea15c(0x244)]=_0xd4f45d,_0x194833['setupFilesAfterEnv']=_0x194833[_0x2ea15c(0x191)]||[],_0x194833['setupFilesAfterEnv']['push'](path[_0x2ea15c(0x23f)](__dirname,_0x136f38[_0x2ea15c(0x190)]));_0x215013[_0x2ea15c(0x24e)]()&&(_0x194833[_0x2ea15c(0x202)]=path[_0x2ea15c(0x23f)](__dirname,_0x136f38[_0x2ea15c(0x1ab)],_0x136f38[_0x2ea15c(0x1ad)]));if(testhubUtils['shouldProcessEventForTesthub']()){let _0x1b91e1=null;try{_0x1b91e1=helper[_0x2ea15c(0x21d)](_0x136f38[_0x2ea15c(0x1c7)],_0x136f38['YNbOC']);}catch(_0x3c9b15){_0x136f38[_0x2ea15c(0x1d9)](debug,_0x2ea15c(0x1ea)+_0x3c9b15);}_0x1b91e1&&(_0x194833[_0x2ea15c(0x191)][_0x2ea15c(0x189)](path[_0x2ea15c(0x23f)](__dirname,_0x136f38[_0x2ea15c(0x1f0)],_0x136f38[_0x2ea15c(0x1fc)])),_0x194833['testRunner']=path[_0x2ea15c(0x23f)](__dirname,_0x136f38[_0x2ea15c(0x1ab)],_0x136f38[_0x2ea15c(0x1d3)]));}_0x194833[_0x2ea15c(0x203)]=_0x194833[_0x2ea15c(0x203)]||[];try{helper[_0x2ea15c(0x22f)](),_0x194833[_0x2ea15c(0x203)][_0x2ea15c(0x189)](path[_0x2ea15c(0x23f)](__dirname,_0x136f38[_0x2ea15c(0x20d)]));}catch{logger[_0x2ea15c(0x22a)](_0x136f38[_0x2ea15c(0x18c)]);}_0x194833[_0x2ea15c(0x1db)]=_0x194833[_0x2ea15c(0x1db)]||[_0x136f38['dCZFm']],_0x136f38[_0x2ea15c(0x1d2)](updateTestRerunConfig,_0x194833,_0x51eae3);const _0x5ac897=fs[_0x2ea15c(0x1f6)](_0x552a46);fs[_0x2ea15c(0x18b)](_0x194833[_0x2ea15c(0x244)],'\x0a\x20\x20\x20\x20'+_0x5ac897+'\x0a\x0a\x20\x20\x20\x20const\x20ReporterDispatcher\x20=\x20_interopRequireDefault(requireModule(\x27@jest/core/build/ReporterDispatcher.js\x27,\x20\x27@jest/core\x27)).default;\x20//node_modules/@jest/core/build/ReporterDispatcher.js\x0a\x20\x20\x20\x20const\x20fs\x20=\x20require(\x27fs\x27);\x0a\x20\x20\x20\x20const\x20path\x20=\x20require(\x27path\x27);\x0a\x20\x20\x20\x20const\x20helper\x20=\x20require(\x27../../../helpers/helper\x27);\x0a\x20\x20\x20\x20var\x20_someFunc\x20=\x20ReporterDispatcher.prototype.onRunComplete;\x0a\x20\x20\x20\x20ReporterDispatcher.prototype.onRunComplete\x20=\x20async\x20function\x20(testContexts,\x20results)\x20{\x0a\x20\x20\x20\x20\x20\x20results.numTotalTestSuites\x20=\x20results.numTotalTestSuites\x20*\x20'+_0x51eae3[_0x2ea15c(0x229)][_0x2ea15c(0x210)][_0x2ea15c(0x1d4)]+_0x2ea15c(0x209)),logger[_0x2ea15c(0x1b2)](_0x2ea15c(0x1ed)+_0x3f60dd+_0x2ea15c(0x237)),fs[_0x2ea15c(0x18b)](_0x3f60dd,_0x2ea15c(0x213)+JSON['stringify'](_0x194833)+_0x2ea15c(0x200));if(_0x215013[_0x2ea15c(0x24e)]()){logger[_0x2ea15c(0x22a)](_0x136f38[_0x2ea15c(0x1f4)]);const _0x3d7393=await _0x215013['findTestFiles'](_0x194833,_0x24b086['slice'](0x1),_0x3f60dd);logger[_0x2ea15c(0x22a)](_0x2ea15c(0x224)+JSON[_0x2ea15c(0x195)](_0x3d7393)+'\x20test\x20files\x20to\x20run.');const _0x546263=await _0x215013[_0x2ea15c(0x223)](_0x3d7393);logger['debug'](_0x2ea15c(0x1ce)+JSON[_0x2ea15c(0x195)](_0x546263)),_0x546263&&_0x136f38[_0x2ea15c(0x228)](_0x546263[_0x2ea15c(0x1d4)],0x0)&&(process[_0x2ea15c(0x1be)]['JEST_TEST_ORDER']=_0x546263?.[_0x2ea15c(0x23f)](','));}logger['info'](_0x136f38[_0x2ea15c(0x1c6)]);testhubUtils[_0x2ea15c(0x1a5)]()&&TestDetails['setup']();helper['filterBrowserstackArgs']({},_0x24b086),PerformanceTester[_0x2ea15c(0x23e)](PerformanceEvents['SDK_SETUP']);const _0x345dc0=_0x136f38[_0x2ea15c(0x222)](spawn,_0x136f38[_0x2ea15c(0x249)],[_0x136f38['EIQIu'],_0x136f38['VikFd'],_0x3f60dd,..._0x24b086[_0x2ea15c(0x1a0)](0x1)],{'shell':_0x136f38[_0x2ea15c(0x235)](process[_0x2ea15c(0x1a7)],_0x136f38[_0x2ea15c(0x196)]),'stdio':_0x136f38[_0x2ea15c(0x1c1)],'env':Object[_0x2ea15c(0x20b)]({},process[_0x2ea15c(0x1be)])});_0x345dc0['on'](_0x136f38['saRkY'],async _0x59e15e=>{const _0x41f8fa=_0x2ea15c;PerformanceTester[_0x41f8fa(0x1ec)](PerformanceEvents['SDK_CLEANUP']);try{const {browserstackFolderPath:_0x4db1c2,tcgConfigPath:_0x5bbf4c}=helper[_0x41f8fa(0x1ca)]();fs[_0x41f8fa(0x201)](_0x5bbf4c),fs['rmdirSync'](_0x4db1c2);}catch(_0xa06f98){logger[_0x41f8fa(0x22a)](_0x136f38[_0x41f8fa(0x1d7)],_0xa06f98);}process[_0x41f8fa(0x21a)]=_0x59e15e,logger[_0x41f8fa(0x22a)](_0x41f8fa(0x1b9)+_0x59e15e),logger['info'](_0x41f8fa(0x20c)+_0x3f60dd);if(helper['isNotUndefined'](_0x4ea726)&&helper['isNotUndefined'](_0x4ea726[_0x41f8fa(0x1e0)])&&fs[_0x41f8fa(0x1e1)](_0x4ea726['abortBuildOnFailure'][_0x41f8fa(0x18e)]))try{const _0x370e2c={};_0x370e2c['recursive']=!![],_0x370e2c[_0x41f8fa(0x240)]=!![],fs[_0x41f8fa(0x1aa)](_0x4ea726[_0x41f8fa(0x1e0)][_0x41f8fa(0x18e)],_0x370e2c),logger[_0x41f8fa(0x22a)](_0x41f8fa(0x24d)+_0x4ea726['abortBuildOnFailure'][_0x41f8fa(0x18e)]);}catch(_0x3300f9){logger[_0x41f8fa(0x19b)]('Error\x20while\x20deleting\x20fail-fast\x20state\x20folder:\x20'+_0x3300f9);}let _0x19ba07=null;if(fs['existsSync'](_0x3860e8)){_0x19ba07=fs['readFileSync'](_0x3860e8);try{_0x19ba07=JSON['parse'](_0x19ba07);}catch(_0x33251e){logger[_0x41f8fa(0x22a)](_0x41f8fa(0x218)+_0x3860e8+',\x20'+_0x19ba07+_0x41f8fa(0x21f)+_0x33251e);}fs[_0x41f8fa(0x201)](_0x3860e8);}fs['unlinkSync'](_0x3f60dd),fs[_0x41f8fa(0x201)](_0xd4f45d),_0x19ba07&&(_0x51eae3['errorMessage']=helper[_0x41f8fa(0x23a)](_0x19ba07,_0x136f38[_0x41f8fa(0x231)],_0x51eae3));try{await TestHubHandler[_0x41f8fa(0x1fb)]();}catch(_0x1296c6){console[_0x41f8fa(0x22c)](_0x1296c6),_0x136f38[_0x41f8fa(0x247)](debug,_0x41f8fa(0x1df)+util[_0x41f8fa(0x21e)](_0x1296c6));}testOpsHelper['printBuildLink'](),TestDetails[_0x41f8fa(0x226)](),await utilities[_0x41f8fa(0x1b7)](_0x51eae3);});}function a16_0xfb5f(_0x392519,_0x235e1a){const _0x128f95=a16_0x128f();return a16_0xfb5f=function(_0xfb5f92,_0x32f482){_0xfb5f92=_0xfb5f92-0x188;let _0x460e31=_0x128f95[_0xfb5f92];return _0x460e31;},a16_0xfb5f(_0x392519,_0x235e1a);}module[a16_0x5c0197(0x1b4)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0x36a468=a17_0x57d9;(function(_0x4eeba0,_0x58f3c9){const _0x1f6fe9=a17_0x57d9,_0x2a26aa=_0x4eeba0();while(!![]){try{const _0x1078b4=parseInt(_0x1f6fe9(0x15e))/0x1+-parseInt(_0x1f6fe9(0x15f))/0x2+parseInt(_0x1f6fe9(0x157))/0x3+-parseInt(_0x1f6fe9(0x165))/0x4+-parseInt(_0x1f6fe9(0x15d))/0x5+parseInt(_0x1f6fe9(0x154))/0x6*(-parseInt(_0x1f6fe9(0x152))/0x7)+-parseInt(_0x1f6fe9(0x15b))/0x8*(-parseInt(_0x1f6fe9(0x164))/0x9);if(_0x1078b4===_0x58f3c9)break;else _0x2a26aa['push'](_0x2a26aa['shift']());}catch(_0xeed103){_0x2a26aa['push'](_0x2a26aa['shift']());}}}(a17_0x5496,0x928e5));function a17_0x57d9(_0xa7ead3,_0x51f7c2){const _0x549600=a17_0x5496();return a17_0x57d9=function(_0x57d9d5,_0x5a6068){_0x57d9d5=_0x57d9d5-0x152;let _0x24a494=_0x549600[_0x57d9d5];return _0x24a494;},a17_0x57d9(_0xa7ead3,_0x51f7c2);}const path=require(a17_0x36a468(0x156)),{requireModule}=require('../../../helpers/helper');let initJestAdapter=requireModule(a17_0x36a468(0x163),a17_0x36a468(0x15a));initJestAdapter=typeof initJestAdapter===a17_0x36a468(0x158)?initJestAdapter:initJestAdapter['default'];const FRAMEWORK_INITIALIZER=path[a17_0x36a468(0x159)](__dirname,a17_0x36a468(0x155));module['exports']=(..._0xf77dda)=>{const _0x274a1b=a17_0x36a468,_0xe15cf9={'eQtpy':'jestAdapterInit','IuoxN':function(_0x5a87a5,_0x4b1c87){return _0x5a87a5===_0x4b1c87;},'YxUEM':function(_0x444017,..._0x1eaa4b){return _0x444017(..._0x1eaa4b);}};return _0xf77dda[0x3][_0x274a1b(0x166)]=_0xf77dda[0x3][_0x274a1b(0x162)],_0xf77dda[0x3][_0x274a1b(0x162)]=(..._0x46dbb7)=>{const _0x5f2445=_0x274a1b;if(_0x46dbb7[0x0]&&_0x46dbb7[0x0][_0x5f2445(0x153)](_0xe15cf9[_0x5f2445(0x160)])&&_0xe15cf9[_0x5f2445(0x15c)](_0x46dbb7[0x1],undefined))return _0xf77dda[0x3]['initRequireModule'](FRAMEWORK_INITIALIZER);return _0xf77dda[0x3][_0x5f2445(0x166)](..._0x46dbb7);},_0xe15cf9[_0x274a1b(0x161)](initJestAdapter,..._0xf77dda);};function a17_0x5496(){const _0x37388d=['YxUEM','requireInternalModule','jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js','207MNLieY','1953256SFgOUB','initRequireModule','70sBAdUB','includes','554766VxhuCt','customJestAdapterInit.js','path','59694XQZqQu','function','join','jest-circus','838488yKgNVB','IuoxN','216980GFjgkA','525913RaHbIp','1799702pCkzDR','eQtpy'];a17_0x5496=function(){return _0x37388d;};return a17_0x5496();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a18_0x3a19(){const _0x49e316=['__driversArray','modifyCommand','framework','getInstance','PclcH','136tHKBcl','uJstn','jest-resolve','global','QAoEU','5177105LDyqvc','Builder','VGrZf','KSSRr','skipSessionStatus','cleanupDrivers','../../utils/constants','message','__jestRetries','WuAch','shutdown','teardown','failFastActive','DzhDB','shouldProcessEventForTesthub','configuration','Fail-fast\x20is\x20active,\x20skipping\x20test::\x20','cleanup','../../../helpers/helper','tghix','requireModule','test','browserstackPercyBestPlatform','resolveTestEnvironment','JEST','isNotUndefined','../../../helpers/testhub/utils','__platformCaps','397107xPDtZX','__skipSessionStatus','failFastOptions','47558BZQJpn','errors','1728844rHvuWx','../../../index','getTestEnvironment','capability','isTrue','4viAnxH','UIKkL','iltdr','owOJp','cwd','jest-config','bRwEo','aclpe','onTestDone','builder','DWEEI','Lfxlb','handleTestEvent','pUMuk','browserStackGlobals','../test-observability/obsReporter','browserStackPercyOptions','__webdriver','testEnvironmentOptions','fXJdm','../../../helpers/test-orchestration/failfastManager','ISQJO','BSTACK_JEST_TEST_ENV','dMXUD','230039lhvOdM','BSTACK_DELTA','test_start','32686380OKHkqJ','nestedKeyValue','info','mMAXF','browserstackPlatformIndex','mode','winstonLogger','yBkah','6|9|5|2|0|1|3|4|8|7','projectConfig','Error\x20in\x20fail-fast\x20test_done\x20handler:','\x20>\x20','testContext','isBrowserstackInfra','sessionNameProvided','env','split','name','mhHUY','platformCaps','node','396cMXlLF','debug','percy','shouldFailFast','../../../helpers/logger','quit','exports','browserstackAgentV2','default','skip','UIwZj','__esModule','failFast','1767279czyTRK','join'];a18_0x3a19=function(){return _0x49e316;};return a18_0x3a19();}const a18_0x3065b2=a18_0x14a1;(function(_0x4321fb,_0x3b9e11){const _0x50d7e7=a18_0x14a1,_0x444222=_0x4321fb();while(!![]){try{const _0xcbe357=-parseInt(_0x50d7e7(0x177))/0x1+-parseInt(_0x50d7e7(0x15a))/0x2+parseInt(_0x50d7e7(0x12d))/0x3+-parseInt(_0x50d7e7(0x15f))/0x4*(parseInt(_0x50d7e7(0x139))/0x5)+-parseInt(_0x50d7e7(0x120))/0x6*(parseInt(_0x50d7e7(0x158))/0x7)+-parseInt(_0x50d7e7(0x134))/0x8*(parseInt(_0x50d7e7(0x155))/0x9)+parseInt(_0x50d7e7(0x17a))/0xa;if(_0xcbe357===_0x3b9e11)break;else _0x444222['push'](_0x444222['shift']());}catch(_0x5ab557){_0x444222['push'](_0x444222['shift']());}}}(a18_0x3a19,0x813ca));const helper=require(a18_0x3065b2(0x14b)),constants=require(a18_0x3065b2(0x13f)),{isTestObservabilitySession}=require('../../../helpers/test-observability/utils'),RequestQueueHandler=require('../../../helpers/test-observability/requestQueueHandler'),ObservabilityReporter=require(a18_0x3065b2(0x16e)),testhubUtils=require(a18_0x3065b2(0x153)),logger=require(a18_0x3065b2(0x124))[a18_0x3065b2(0x180)],getTestEnvironment=((()=>{const _0x5be92f=a18_0x3065b2,_0x1f5373={};_0x1f5373[_0x5be92f(0x16c)]=_0x5be92f(0x136),_0x1f5373[_0x5be92f(0x160)]=_0x5be92f(0x164);const _0xfe56ac=_0x1f5373;try{const _0x5a80af=helper[_0x5be92f(0x14d)](_0xfe56ac['pUMuk']);if(_0x5a80af['resolveTestEnvironment'])return _0x5a80af[_0x5be92f(0x150)];const _0x2ca629=helper[_0x5be92f(0x14d)](_0xfe56ac[_0x5be92f(0x160)]);if(_0x2ca629[_0x5be92f(0x15c)])return _0x2ca629['getTestEnvironment'];}catch{return()=>null;}return()=>null;})()),_jestUserEnvironment=((()=>{const _0x6b99dd=a18_0x3065b2,_0x19a82a={'WuAch':function(_0x55dadf,_0x581188){return _0x55dadf(_0x581188);},'jsKxm':_0x6b99dd(0x11f),'mMAXF':'jest-environment-node','VGrZf':function(_0x43fce4,_0x10638f){return _0x43fce4(_0x10638f);}},_0x2a788c=_0x19a82a[_0x6b99dd(0x142)](getTestEnvironment,{'rootDir':process[_0x6b99dd(0x163)](),'testEnvironment':process[_0x6b99dd(0x11a)][_0x6b99dd(0x175)]||_0x19a82a['jsKxm']});if(!_0x2a788c)return _0x19a82a[_0x6b99dd(0x142)](_interopRequireDefault,helper[_0x6b99dd(0x14d)](_0x19a82a[_0x6b99dd(0x17d)]));return _0x19a82a[_0x6b99dd(0x13b)](_interopRequireDefault,helper[_0x6b99dd(0x14d)](_0x2a788c));})()),_seleniumWebdriver2=((()=>{const _0x2ce9f9=a18_0x3065b2,_0x3b7172={'QAoEU':function(_0x2a257b,_0x2cc00d){return _0x2a257b(_0x2cc00d);}};try{const _0x56ac6b=helper['requireSeleniumWebdriver']();return helper[_0x2ce9f9(0x130)](),_0x3b7172[_0x2ce9f9(0x138)](_interopRequireDefault,_0x56ac6b);}catch{return null;}})());function _interopRequireDefault(_0xc2dce7){const _0x40d7b1=a18_0x3065b2;return _0xc2dce7&&_0xc2dce7[_0x40d7b1(0x12b)]?_0xc2dce7:{'default':_0xc2dce7};}const originalBuilder=_seleniumWebdriver2?_seleniumWebdriver2['default']['Builder']:null;class CustomEnvironment extends _jestUserEnvironment[a18_0x3065b2(0x128)]{constructor(_0xba9fb4){const _0x396d2c=a18_0x3065b2,_0x52acde={'dMXUD':_0x396d2c(0x125),'KSSRr':function(_0x181b34,_0x2707db){return _0x181b34+_0x2707db;},'bRwEo':'bstack:options','DWEEI':function(_0x2204a3,_0x40f40f){return _0x2204a3(_0x40f40f);},'PclcH':_0x396d2c(0x173),'owOJp':_0x396d2c(0x182),'UIwZj':_0x396d2c(0x171),'mhHUY':_0x396d2c(0x16f),'yBkah':_0x396d2c(0x122),'DzhDB':'percyCaptureMode','aclpe':_0x396d2c(0x14f),'pjcCX':_0x396d2c(0x11e),'FPBDk':function(_0x2499b5,_0x5b2839){return _0x2499b5(_0x5b2839);},'BKjFu':_0x396d2c(0x15b)};super(_0xba9fb4),this[_0x396d2c(0x137)]['__timeout']=0x0,this['configuration']={};!_0xba9fb4[_0x396d2c(0x171)]&&(_0xba9fb4[_0x396d2c(0x171)]={});if(helper[_0x396d2c(0x187)]()){_0xba9fb4['testEnvironmentOptions']=_0xba9fb4['projectConfig']?_0xba9fb4['projectConfig'][_0x396d2c(0x171)]:_0xba9fb4[_0x396d2c(0x171)],this[_0x396d2c(0x168)]=new _seleniumWebdriver2['default'][(_0x396d2c(0x13a))](),this[_0x396d2c(0x15d)]=_0xba9fb4[_0x396d2c(0x183)]?_0xba9fb4[_0x396d2c(0x183)]['capability']:_0xba9fb4[_0x396d2c(0x15d)],this[_0x396d2c(0x137)]['__timeout']=_0x52acde[_0x396d2c(0x13c)](this[_0x396d2c(0x148)]['timeout__'],constants[_0x396d2c(0x178)]),this[_0x396d2c(0x157)]=_0xba9fb4[_0x396d2c(0x171)]['failFast'];if(this[_0x396d2c(0x157)]){const _0x56d592=this[_0x396d2c(0x15d)][_0x52acde[_0x396d2c(0x165)]]?.['buildName']||'',_0x232dba=this[_0x396d2c(0x15d)][_0x52acde[_0x396d2c(0x165)]]?.['projectName']||'';this[_0x396d2c(0x12c)]=new(_0x52acde[_0x396d2c(0x169)](require,_0x52acde[_0x396d2c(0x133)]))(this[_0x396d2c(0x157)],_0x56d592,_0x232dba),this['global'][_0x396d2c(0x145)]=![];}helper[_0x396d2c(0x152)](this[_0x396d2c(0x148)]['retries__'])&&(this['global'][_0x396d2c(0x141)]=this[_0x396d2c(0x148)]['retries__']);}if(testhubUtils[_0x396d2c(0x147)]()){const _0x2a0144=new ObservabilityReporter();_0x2a0144['registerListeners']();}this[_0x396d2c(0x137)][_0x396d2c(0x16d)]={},this[_0x396d2c(0x148)]=_0xba9fb4[_0x396d2c(0x171)],this[_0x396d2c(0x148)][_0x396d2c(0x131)]=constants['FRAMEWORKS'][_0x396d2c(0x151)];if(_seleniumWebdriver2){const _0x49ff1f=_0x52acde[_0x396d2c(0x162)][_0x396d2c(0x11b)]('|');let _0x6a0b66=0x0;while(!![]){switch(_0x49ff1f[_0x6a0b66++]){case'0':this['global'][_0x396d2c(0x122)]=helper[_0x396d2c(0x17b)](_0xba9fb4,[_0x52acde[_0x396d2c(0x12a)],_0x52acde[_0x396d2c(0x11d)],_0x52acde[_0x396d2c(0x181)]]);continue;case'1':this[_0x396d2c(0x137)]['percyCaptureMode']=helper[_0x396d2c(0x17b)](_0xba9fb4,[_0x52acde['UIwZj'],_0x52acde['mhHUY'],_0x52acde[_0x396d2c(0x146)]]);continue;case'2':this[_0x396d2c(0x137)][_0x396d2c(0x14f)]=helper[_0x396d2c(0x17b)](_0xba9fb4,[_0x52acde[_0x396d2c(0x12a)],_0x52acde[_0x396d2c(0x11d)],_0x52acde[_0x396d2c(0x166)]]);continue;case'3':this[_0x396d2c(0x137)][_0x396d2c(0x154)]=helper[_0x396d2c(0x17b)](this[_0x396d2c(0x148)],[_0x52acde['pjcCX'],this[_0x396d2c(0x137)][_0x396d2c(0x17e)]])||{};continue;case'4':helper[_0x396d2c(0x15e)](this[_0x396d2c(0x148)]['skipSessionName'])?this[_0x396d2c(0x137)][_0x396d2c(0x188)]=!![]:this[_0x396d2c(0x137)][_0x396d2c(0x188)]=![];continue;case'5':this[_0x396d2c(0x137)][_0x396d2c(0x17e)]=(_0xba9fb4[_0x396d2c(0x183)]?_0xba9fb4[_0x396d2c(0x183)][_0x396d2c(0x17e)]:_0xba9fb4[_0x396d2c(0x17e)])||0x0;continue;case'6':this['global']['__drivers']=[];continue;case'7':this[_0x396d2c(0x137)][_0x396d2c(0x14a)]=async()=>{const _0x5c688e=_0x396d2c;await this[_0x5c688e(0x137)]['driver'][_0x5c688e(0x125)](_0x52acde[_0x5c688e(0x176)]);};continue;case'8':this['global'][_0x396d2c(0x156)]=helper['isTrue'](this[_0x396d2c(0x148)][_0x396d2c(0x13d)]);continue;case'9':this['global'][_0x396d2c(0x170)]=_0x52acde['FPBDk'](require,_0x52acde['BKjFu'])[_0x396d2c(0x127)]({...this['configuration'],'capability':this[_0x396d2c(0x15d)]||{}},this,testhubUtils['shouldProcessEventForTesthub']());continue;}break;}}}async[a18_0x3065b2(0x144)](){const _0x580682=a18_0x3065b2;_seleniumWebdriver2&&(await helper[_0x580682(0x13e)](this[_0x580682(0x137)][_0x580682(0x12f)]),this[_0x580682(0x137)]['__webdriver'][_0x580682(0x13a)]=originalBuilder),await RequestQueueHandler[_0x580682(0x132)]()[_0x580682(0x143)]();}async['setup'](){}async[a18_0x3065b2(0x16b)](_0x37d337,_0x14f66a){const _0x2a4a10=a18_0x3065b2,_0x90c627={};_0x90c627['nJcqH']=function(_0x1746a4,_0x1596ad){return _0x1746a4===_0x1596ad;},_0x90c627[_0x2a4a10(0x161)]=_0x2a4a10(0x179),_0x90c627[_0x2a4a10(0x14c)]=function(_0x5cdb64,_0x56c2fc){return _0x5cdb64===_0x56c2fc;},_0x90c627[_0x2a4a10(0x16a)]=_0x2a4a10(0x129),_0x90c627['rVPUz']='test_done',_0x90c627[_0x2a4a10(0x174)]=_0x2a4a10(0x185),_0x90c627[_0x2a4a10(0x135)]=function(_0x32c2f0,_0x51c709){return _0x32c2f0===_0x51c709;},_0x90c627[_0x2a4a10(0x172)]=_0x2a4a10(0x184),_0x90c627['ZCRnT']=_0x2a4a10(0x144);const _0x4fddde=_0x90c627,{name:_0xcd6c93}=_0x37d337;if(_0x4fddde['nJcqH'](_0xcd6c93,_0x4fddde['iltdr'])){this[_0x2a4a10(0x137)][_0x2a4a10(0x186)]=_0x37d337[_0x2a4a10(0x14e)];if(_0x4fddde['tghix'](this[_0x2a4a10(0x137)]['failFastActive'],!![])){const _0x4b0e8c=_0x37d337['test'][_0x2a4a10(0x11c)];logger[_0x2a4a10(0x17c)](_0x2a4a10(0x149)+_0x4b0e8c),_0x37d337[_0x2a4a10(0x14e)][_0x2a4a10(0x17f)]=_0x4fddde[_0x2a4a10(0x16a)];}}if(this[_0x2a4a10(0x12c)]&&_0x4fddde[_0x2a4a10(0x14c)](_0xcd6c93,_0x4fddde['rVPUz']))try{const _0x2a8abd=_0x37d337[_0x2a4a10(0x14e)]['testPath'][_0x2a4a10(0x12e)](_0x4fddde['ISQJO']),_0x458c34=_0x37d337[_0x2a4a10(0x14e)][_0x2a4a10(0x159)];await this[_0x2a4a10(0x12c)][_0x2a4a10(0x167)](_0x2a8abd,_0x458c34);const _0xc2dbd2=await this[_0x2a4a10(0x12c)][_0x2a4a10(0x123)]();_0x4fddde[_0x2a4a10(0x14c)](this[_0x2a4a10(0x137)]['failFastActive'],![])&&_0x4fddde[_0x2a4a10(0x135)](_0xc2dbd2,!![])&&(this[_0x2a4a10(0x137)][_0x2a4a10(0x145)]=!![]);}catch(_0x447d10){logger[_0x2a4a10(0x121)](_0x4fddde[_0x2a4a10(0x172)],_0x447d10[_0x2a4a10(0x140)]);}_0x4fddde['uJstn'](_0xcd6c93,_0x4fddde['ZCRnT'])&&(this['failFast']&&this[_0x2a4a10(0x12c)][_0x2a4a10(0x14a)]());}}function a18_0x14a1(_0x1f7324,_0x21d3a1){const _0x3a19fd=a18_0x3a19();return a18_0x14a1=function(_0x14a1b9,_0x3ea268){_0x14a1b9=_0x14a1b9-0x11a;let _0x238780=_0x3a19fd[_0x14a1b9];return _0x238780;},a18_0x14a1(_0x1f7324,_0x21d3a1);}module[a18_0x3065b2(0x126)]=CustomEnvironment;
|
|
1
|
+
const a18_0x247067=a18_0x3fdc;(function(_0xd2673b,_0x4e10b9){const _0x7a25c0=a18_0x3fdc,_0x43a40c=_0xd2673b();while(!![]){try{const _0x3d565c=-parseInt(_0x7a25c0(0x115))/0x1*(parseInt(_0x7a25c0(0x136))/0x2)+parseInt(_0x7a25c0(0x10f))/0x3+-parseInt(_0x7a25c0(0x178))/0x4*(-parseInt(_0x7a25c0(0x112))/0x5)+parseInt(_0x7a25c0(0x171))/0x6+-parseInt(_0x7a25c0(0x12e))/0x7+-parseInt(_0x7a25c0(0x129))/0x8+-parseInt(_0x7a25c0(0x137))/0x9*(parseInt(_0x7a25c0(0x138))/0xa);if(_0x3d565c===_0x4e10b9)break;else _0x43a40c['push'](_0x43a40c['shift']());}catch(_0x2e77ee){_0x43a40c['push'](_0x43a40c['shift']());}}}(a18_0x3ed7,0x44fe7));function a18_0x3ed7(){const _0x3e30db=['modifyCommand','__webdriver','sessionNameProvided','QSvcE','driver','LVLrr','Kwygd','browserStackGlobals','browserstackPlatformIndex','jTFmV','GGvwy','info','platformCaps','builder','3513352uhNjOU','__timeout','BSTACK_JEST_TEST_ENV','RGnbR','failFast','59745bLYSFu','BSTACK_DELTA','isTrue','handleTestEvent','cleanup','shutdown','onTestDone','getTestEnvironment','2IMXtbu','9vEUgzT','1583070Rxhzpu','test_start','yrzWF','errors','skipSessionName','../../../helpers/testhub/utils','VUKfW','testContext','resolveTestEnvironment','requireModule','bPeNz','isNotUndefined','FRAMEWORKS','gtPiF','pRxTA','testPath','default','fLOre','global','VsrJw','winstonLogger','qQQLF','browserstackPercyBestPlatform','../../../helpers/helper','teardown','setup','registerListeners','RNllJ','debug','join','QUykL','BlKld','__platformCaps','shouldProcessEventForTesthub','ivbBJ','vKZzK','__skipSessionStatus','test','configuration','failFastActive','../../../helpers/test-observability/utils','browserStackPercyOptions','../../../helpers/test-orchestration/failfastManager','\x20>\x20','capability','__driversArray','quit','framework','ccpqw','retries__','JEST','projectConfig','gtfgR','testEnvironmentOptions','../../../helpers/test-observability/requestQueueHandler','exports','YVoYr','2844282wkDUWp','../../../index','timeout__','shouldFailFast','isBrowserstackInfra','Fail-fast\x20is\x20active,\x20skipping\x20test::\x20','UAeaT','18572Boovyw','cleanupDrivers','message','roCju','__esModule','../../utils/constants','test_done','percyCaptureMode','tHBcp','split','esicd','jest-environment-node','446745tPBpen','bstack:options','mode','395YSdhji','nestedKeyValue','VUFMg','101149dLOxeT','Builder','SzCPH','projectName','dVisG','requireSeleniumWebdriver'];a18_0x3ed7=function(){return _0x3e30db;};return a18_0x3ed7();}const helper=require(a18_0x247067(0x14f)),constants=require(a18_0x247067(0x17d)),{isTestObservabilitySession}=require(a18_0x247067(0x160)),RequestQueueHandler=require(a18_0x247067(0x16e)),ObservabilityReporter=require('../test-observability/obsReporter'),testhubUtils=require(a18_0x247067(0x13d)),logger=require('../../../helpers/logger')[a18_0x247067(0x14c)],getTestEnvironment=((()=>{const _0x3238be=a18_0x247067,_0x50a8e6={};_0x50a8e6[_0x3238be(0x117)]='jest-resolve',_0x50a8e6['QSvcE']='jest-config';const _0x507d48=_0x50a8e6;try{const _0x1eec2d=helper[_0x3238be(0x141)](_0x507d48['SzCPH']);if(_0x1eec2d[_0x3238be(0x140)])return _0x1eec2d[_0x3238be(0x140)];const _0x449292=helper[_0x3238be(0x141)](_0x507d48[_0x3238be(0x11e)]);if(_0x449292['getTestEnvironment'])return _0x449292[_0x3238be(0x135)];}catch{return()=>null;}return()=>null;})()),_jestUserEnvironment=((()=>{const _0x2b8ea2=a18_0x247067,_0x14811d={'pRxTA':function(_0x458c92,_0x8cccfb){return _0x458c92(_0x8cccfb);},'LVLrr':'node','vKZzK':_0x2b8ea2(0x10e),'qQQLF':function(_0x4247bf,_0x50774f){return _0x4247bf(_0x50774f);}},_0x370277=_0x14811d['pRxTA'](getTestEnvironment,{'rootDir':process['cwd'](),'testEnvironment':process['env'][_0x2b8ea2(0x12b)]||_0x14811d[_0x2b8ea2(0x120)]});if(!_0x370277)return _0x14811d[_0x2b8ea2(0x146)](_interopRequireDefault,helper[_0x2b8ea2(0x141)](_0x14811d[_0x2b8ea2(0x15b)]));return _0x14811d[_0x2b8ea2(0x14d)](_interopRequireDefault,helper[_0x2b8ea2(0x141)](_0x370277));})()),_seleniumWebdriver2=((()=>{const _0xb06129=a18_0x247067,_0x3a918d={'GGvwy':function(_0x24f9a6,_0xeb1b8d){return _0x24f9a6(_0xeb1b8d);}};try{const _0x5ed502=helper[_0xb06129(0x11a)]();return helper[_0xb06129(0x11b)](),_0x3a918d[_0xb06129(0x125)](_interopRequireDefault,_0x5ed502);}catch{return null;}})());function a18_0x3fdc(_0x1ebd2b,_0x3c46dd){const _0x3ed764=a18_0x3ed7();return a18_0x3fdc=function(_0x3fdc49,_0x22d046){_0x3fdc49=_0x3fdc49-0x10d;let _0x3d32ac=_0x3ed764[_0x3fdc49];return _0x3d32ac;},a18_0x3fdc(_0x1ebd2b,_0x3c46dd);}function _interopRequireDefault(_0x495693){const _0x5b6b25=a18_0x247067;return _0x495693&&_0x495693[_0x5b6b25(0x17c)]?_0x495693:{'default':_0x495693};}const originalBuilder=_seleniumWebdriver2?_seleniumWebdriver2[a18_0x247067(0x148)]['Builder']:null;class CustomEnvironment extends _jestUserEnvironment[a18_0x247067(0x148)]{constructor(_0x116ce6){const _0x539ae5=a18_0x247067,_0x2279b4={'fLOre':_0x539ae5(0x166),'VUKfW':function(_0x3d5159,_0x195e16){return _0x3d5159+_0x195e16;},'bPeNz':_0x539ae5(0x110),'BlKld':function(_0x411e4e,_0x434601){return _0x411e4e(_0x434601);},'VsrJw':_0x539ae5(0x162),'QUykL':'7|1|3|0|6|9|4|2|5|8','ivbBJ':'testEnvironmentOptions','YVoYr':_0x539ae5(0x161),'RGnbR':'browserstackPercyBestPlatform','RNllJ':_0x539ae5(0x172),'roCju':_0x539ae5(0x127),'jTFmV':'percy','VpdKZ':_0x539ae5(0x17f)};super(_0x116ce6),this[_0x539ae5(0x14a)][_0x539ae5(0x12a)]=0x0,this[_0x539ae5(0x15e)]={};!_0x116ce6[_0x539ae5(0x16d)]&&(_0x116ce6[_0x539ae5(0x16d)]={});if(helper[_0x539ae5(0x175)]()){_0x116ce6[_0x539ae5(0x16d)]=_0x116ce6[_0x539ae5(0x16b)]?_0x116ce6[_0x539ae5(0x16b)][_0x539ae5(0x16d)]:_0x116ce6[_0x539ae5(0x16d)],this[_0x539ae5(0x128)]=new _seleniumWebdriver2[(_0x539ae5(0x148))][(_0x539ae5(0x116))](),this['capability']=_0x116ce6['projectConfig']?_0x116ce6[_0x539ae5(0x16b)][_0x539ae5(0x164)]:_0x116ce6['capability'],this[_0x539ae5(0x14a)]['__timeout']=_0x2279b4[_0x539ae5(0x13e)](this[_0x539ae5(0x15e)][_0x539ae5(0x173)],constants[_0x539ae5(0x12f)]),this['failFastOptions']=_0x116ce6[_0x539ae5(0x16d)]['failFast'];if(this['failFastOptions']){const _0x393635=this[_0x539ae5(0x164)][_0x2279b4[_0x539ae5(0x142)]]?.['buildName']||'',_0x277932=this['capability'][_0x2279b4[_0x539ae5(0x142)]]?.[_0x539ae5(0x118)]||'';this[_0x539ae5(0x12d)]=new(_0x2279b4['BlKld'](require,_0x2279b4[_0x539ae5(0x14b)]))(this['failFastOptions'],_0x393635,_0x277932),this['global'][_0x539ae5(0x15f)]=![];}helper[_0x539ae5(0x143)](this[_0x539ae5(0x15e)][_0x539ae5(0x169)])&&(this['global']['__jestRetries']=this[_0x539ae5(0x15e)][_0x539ae5(0x169)]);}if(testhubUtils[_0x539ae5(0x159)]()){const _0x2a9a3b=new ObservabilityReporter();_0x2a9a3b[_0x539ae5(0x152)]();}this[_0x539ae5(0x14a)][_0x539ae5(0x122)]={},this[_0x539ae5(0x15e)]=_0x116ce6['testEnvironmentOptions'],this[_0x539ae5(0x15e)][_0x539ae5(0x167)]=constants[_0x539ae5(0x144)][_0x539ae5(0x16a)];if(_seleniumWebdriver2){const _0x16586c=_0x2279b4[_0x539ae5(0x156)][_0x539ae5(0x181)]('|');let _0x3738e7=0x0;while(!![]){switch(_0x16586c[_0x3738e7++]){case'0':this['global'][_0x539ae5(0x14e)]=helper['nestedKeyValue'](_0x116ce6,[_0x2279b4[_0x539ae5(0x15a)],_0x2279b4[_0x539ae5(0x170)],_0x2279b4[_0x539ae5(0x12c)]]);continue;case'1':this['global'][_0x539ae5(0x11c)]=_0x2279b4[_0x539ae5(0x157)](require,_0x2279b4[_0x539ae5(0x153)])['browserstackAgentV2']({...this['configuration'],'capability':this['capability']||{}},this,testhubUtils[_0x539ae5(0x159)]());continue;case'2':helper['isTrue'](this[_0x539ae5(0x15e)][_0x539ae5(0x13c)])?this[_0x539ae5(0x14a)]['sessionNameProvided']=!![]:this[_0x539ae5(0x14a)][_0x539ae5(0x11d)]=![];continue;case'3':this[_0x539ae5(0x14a)]['browserstackPlatformIndex']=(_0x116ce6[_0x539ae5(0x16b)]?_0x116ce6[_0x539ae5(0x16b)][_0x539ae5(0x123)]:_0x116ce6[_0x539ae5(0x123)])||0x0;continue;case'4':this['global'][_0x539ae5(0x158)]=helper[_0x539ae5(0x113)](this[_0x539ae5(0x15e)],[_0x2279b4[_0x539ae5(0x17b)],this[_0x539ae5(0x14a)][_0x539ae5(0x123)]])||{};continue;case'5':this['global'][_0x539ae5(0x15c)]=helper[_0x539ae5(0x130)](this[_0x539ae5(0x15e)]['skipSessionStatus']);continue;case'6':this[_0x539ae5(0x14a)]['percy']=helper['nestedKeyValue'](_0x116ce6,[_0x2279b4[_0x539ae5(0x15a)],_0x2279b4[_0x539ae5(0x170)],_0x2279b4[_0x539ae5(0x124)]]);continue;case'7':this[_0x539ae5(0x14a)]['__drivers']=[];continue;case'8':this[_0x539ae5(0x14a)][_0x539ae5(0x132)]=async()=>{const _0x4d9795=_0x539ae5;await this['global'][_0x4d9795(0x11f)][_0x4d9795(0x166)](_0x2279b4[_0x4d9795(0x149)]);};continue;case'9':this[_0x539ae5(0x14a)][_0x539ae5(0x17f)]=helper[_0x539ae5(0x113)](_0x116ce6,[_0x2279b4[_0x539ae5(0x15a)],_0x2279b4['YVoYr'],_0x2279b4['VpdKZ']]);continue;}break;}}}async['teardown'](){const _0x1a6065=a18_0x247067;_seleniumWebdriver2&&(await helper[_0x1a6065(0x179)](this[_0x1a6065(0x14a)][_0x1a6065(0x165)]),this[_0x1a6065(0x14a)][_0x1a6065(0x11c)][_0x1a6065(0x116)]=originalBuilder),await RequestQueueHandler['getInstance']()[_0x1a6065(0x133)]();}async[a18_0x247067(0x151)](){}async[a18_0x247067(0x131)](_0x4a49d8,_0x342823){const _0x1ce48f=a18_0x247067,_0x2f17ba={};_0x2f17ba['gtfgR']=function(_0xb1734e,_0xd16b03){return _0xb1734e===_0xd16b03;},_0x2f17ba[_0x1ce48f(0x114)]=_0x1ce48f(0x139),_0x2f17ba['IHyKl']=function(_0x2246a0,_0xe8ae2f){return _0x2246a0===_0xe8ae2f;},_0x2f17ba[_0x1ce48f(0x168)]='skip',_0x2f17ba[_0x1ce48f(0x121)]=function(_0x3e4733,_0x2289c6){return _0x3e4733===_0x2289c6;},_0x2f17ba[_0x1ce48f(0x119)]=_0x1ce48f(0x17e),_0x2f17ba[_0x1ce48f(0x13a)]=_0x1ce48f(0x163),_0x2f17ba[_0x1ce48f(0x180)]=function(_0x36ea9b,_0x25d247){return _0x36ea9b===_0x25d247;},_0x2f17ba[_0x1ce48f(0x145)]=function(_0x3a1659,_0x24a373){return _0x3a1659===_0x24a373;},_0x2f17ba[_0x1ce48f(0x177)]='Error\x20in\x20fail-fast\x20test_done\x20handler:',_0x2f17ba[_0x1ce48f(0x10d)]=_0x1ce48f(0x150);const _0x39c95b=_0x2f17ba,{name:_0x27554e}=_0x4a49d8;if(_0x39c95b[_0x1ce48f(0x16c)](_0x27554e,_0x39c95b[_0x1ce48f(0x114)])){this[_0x1ce48f(0x14a)][_0x1ce48f(0x13f)]=_0x4a49d8['test'];if(_0x39c95b['IHyKl'](this[_0x1ce48f(0x14a)][_0x1ce48f(0x15f)],!![])){const _0xb8c675=_0x4a49d8[_0x1ce48f(0x15d)]['name'];logger[_0x1ce48f(0x126)](_0x1ce48f(0x176)+_0xb8c675),_0x4a49d8['test'][_0x1ce48f(0x111)]=_0x39c95b[_0x1ce48f(0x168)];}}if(this[_0x1ce48f(0x12d)]&&_0x39c95b[_0x1ce48f(0x121)](_0x27554e,_0x39c95b[_0x1ce48f(0x119)]))try{const _0x5a026a=_0x4a49d8[_0x1ce48f(0x15d)][_0x1ce48f(0x147)][_0x1ce48f(0x155)](_0x39c95b[_0x1ce48f(0x13a)]),_0x6514=_0x4a49d8[_0x1ce48f(0x15d)][_0x1ce48f(0x13b)];await this[_0x1ce48f(0x12d)][_0x1ce48f(0x134)](_0x5a026a,_0x6514);const _0xe9f450=await this[_0x1ce48f(0x12d)][_0x1ce48f(0x174)]();_0x39c95b['tHBcp'](this[_0x1ce48f(0x14a)][_0x1ce48f(0x15f)],![])&&_0x39c95b[_0x1ce48f(0x145)](_0xe9f450,!![])&&(this[_0x1ce48f(0x14a)]['failFastActive']=!![]);}catch(_0x5c3d3f){logger[_0x1ce48f(0x154)](_0x39c95b[_0x1ce48f(0x177)],_0x5c3d3f[_0x1ce48f(0x17a)]);}_0x39c95b['IHyKl'](_0x27554e,_0x39c95b[_0x1ce48f(0x10d)])&&(this[_0x1ce48f(0x12d)]&&this[_0x1ce48f(0x12d)][_0x1ce48f(0x132)]());}}module[a18_0x247067(0x16f)]=CustomEnvironment;
|