browserstack-node-sdk 1.55.0 → 1.55.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a39_0x2974d4=a39_0x5af3;(function(_0x3b4199,_0x26ca7b){const _0xab7a05=a39_0x5af3,_0x2b929e=_0x3b4199();while(!![]){try{const _0x4d562b=parseInt(_0xab7a05(0x1ba))/0x1+parseInt(_0xab7a05(0x195))/0x2+parseInt(_0xab7a05(0x1a2))/0x3+parseInt(_0xab7a05(0x1ee))/0x4+-parseInt(_0xab7a05(0x1b6))/0x5*(parseInt(_0xab7a05(0x1a8))/0x6)+-parseInt(_0xab7a05(0x171))/0x7*(parseInt(_0xab7a05(0x123))/0x8)+-parseInt(_0xab7a05(0x20b))/0x9;if(_0x4d562b===_0x26ca7b)break;else _0x2b929e['push'](_0x2b929e['shift']());}catch(_0x4827b5){_0x2b929e['push'](_0x2b929e['shift']());}}}(a39_0x1e73,0x3d0a6));function a39_0x5af3(_0x950db7,_0x4b61a2){const _0x1e7376=a39_0x1e73();return a39_0x5af3=function(_0x5af323,_0x3f3790){_0x5af323=_0x5af323-0x120;let _0x2e1e68=_0x1e7376[_0x5af323];return _0x2e1e68;},a39_0x5af3(_0x950db7,_0x4b61a2);}const path=require(a39_0x2974d4(0x173)),{v4:uuidv4}=require(a39_0x2974d4(0x1a0)),SessionHandler=require(a39_0x2974d4(0x1bb)),{debug}=require(a39_0x2974d4(0x18f)),logger=require(a39_0x2974d4(0x1e3))[a39_0x2974d4(0x198)],BrowserstackCLI=require(a39_0x2974d4(0x16c)),GrpcClient=require(a39_0x2974d4(0x205)),TestFrameworkState=require(a39_0x2974d4(0x1e2)),HookState=require('../../v2/state/hookState'),LOG_LEVELS=[a39_0x2974d4(0x122),a39_0x2974d4(0x176),a39_0x2974d4(0x1b8),a39_0x2974d4(0x1ec),a39_0x2974d4(0x18d)];function isCLIRunning(){const _0x2a8284=a39_0x2974d4;try{return BrowserstackCLI[_0x2a8284(0x139)]()[_0x2a8284(0x1b0)]();}catch(_0x5932a8){return![];}}function getParentTitles(_0x5b03b9){const _0xf158dc=a39_0x2974d4,_0x7269d={'GDqHv':function(_0x5b0765,_0x5a4f8b){return _0x5b0765(_0x5a4f8b);}},_0x557412=[],_0x677afb=_0x5b03b9[_0xf158dc(0x1ef)]();return _0x677afb&&_0x557412['push'][_0xf158dc(0x1fb)](_0x557412,_0x7269d[_0xf158dc(0x178)](getParentTitles,_0x677afb)),_0x5b03b9['name']&&_0x557412['push'](_0x7269d['GDqHv'](String,_0x5b03b9[_0xf158dc(0x17d)])),_0x557412;}function normalizeLogLevel(_0x2b603a){const _0x376e75=a39_0x2974d4,_0x16b67f={};_0x16b67f[_0x376e75(0x132)]=_0x376e75(0x122),_0x16b67f[_0x376e75(0x158)]=function(_0x489b3a,_0x78d0c4){return _0x489b3a!==_0x78d0c4;};const _0x276570=_0x16b67f;if(!_0x2b603a)return _0x276570['HzFjN'];const _0x59c45b=_0x2b603a[_0x376e75(0x154)]();return _0x276570[_0x376e75(0x158)](LOG_LEVELS[_0x376e75(0x180)](_0x59c45b),-0x1)?_0x59c45b:_0x276570[_0x376e75(0x132)];}function a39_0x1e73(){const _0x533e45=['BtehA','hostname','mlKBX','toISOString','HBAOH','PRE','ONJWH','hSIgt','url','dGphk','logCreatedEvent','logs','bpKkQ','hgBWm','execution','HPRjz','stringify','LULHZ','testFrameworkName','foPvh','../../v2/browserstackCLI','durationMs','akYwi','zjOYy','ref','595nDhiHs','XgtFa','path','[Newman\x20Reporter]\x20Error\x20in\x20bs:addLog\x20handler:\x20','MnIfx','WARN','TIDGw','GDqHv','WsrhW','xZbGF','aSxkQ','SiNsv','name','OPOyz','hDhPa','indexOf','[Newman\x20Reporter]\x20emitLog\x20error:\x20','EcKlQ','kind','test_run','level','info','http','MuZeb','BVoIs','argv','startedAt','TEST','TRACE','ZSFvU','../../../helpers/test-observability/utils','exports','ZpsRS','jmbMF','testFrameworkVersion','TestRunStarted','914976otaona','QxeLd','czYdP','winstonLogger','yKitk','lastResponseCode','bs:addLog:','concat','code','scopes','failure_backtrace','uuid','ZNoFX','745209BySUuA','iteration','expanded','ubZhx','rQPCF','TEST_LOG','90LNZirB','AIENs','[Newman\x20Reporter]\x20Error\x20in\x20beforeItem:\x20','zUAFB','removeListener','location','AsRfY','UqTLx','isRunning','uWjeb','host','MTbUv','aLLxN','[Newman\x20Reporter]\x20Could\x20not\x20resolve\x20collection\x20file\x20path,\x20falling\x20back\x20to\x20collection.json','104710JoLHgm','AssertionError','ERROR','string','200643qlHzHd','../../../helpers/test-observability/sessionHandler','event','headers','PGsgw','HTTP\x20','zSNHH','OIxYU','duration_ms','startsWith','tUZyX','failed','method','IMtEi','pathname','set','collectionName','event_type','[Newman\x20Reporter]\x20emitTest\x20error:\x20','bpIbv','result','rFcQL','OuWHM','pTvll','LMJAU','failureType','BpDcj','LIYsG','[Newman\x20Reporter]\x20Error\x20in\x20assertion:\x20','fxbKN','PXnHR','resolve','kpquG','ubHuG','LnJHA','jKwct','messages','script','failureReason','tksic','../../v2/state/testFrameworkState','../../../helpers/logger','[Newman\x20Reporter]\x20Error\x20in\x20exception:\x20','LScCR','assert','QyIbT','gouln','http_response','\x20—\x20response\x20status\x20in\x20failure\x20range','get','DEBUG','push','677552TDoToE','parent','):\x20','getTime','forEach','startTimestamp','error','stack','Script\x20error\x20(','test_run_uuid','max','\x20(no\x20assertions)','request','apply','slice','uploadEventData','[Newman\x20Reporter]\x20Error\x20in\x20item:\x20','lLhvo','ZxOfn','URHDQ','cwd','http://','KUslW','../../v2/grpcClient','sBbUI','\x20(HTTP\x20','failure','relative','trackEvent','1241460pViAaV','qMFMF','message','identifier','HTTP\x20Status:\x20','run','item','status_code','INFO','35184ImqnxY','atXJa','javascript','bZYRX','WvnfM','[Newman\x20Reporter]\x20Error\x20in\x20console:\x20','done','now','rduVU','HTTP','UTVWB','JeJos','responseTime','collection','toString','HzFjN','whWMJ','length','clear','RKgiM','eSRcv','Fpvqs','getInstance','finishedAt','httpLog','Exception:\x20','POST','newman','dINGK','OKJha','OAeQg','kZFQq','pending','assertions','search','qrhgL','bufferedLogs','uEMta','beforeItem','beforeIteration','join','err','\x20->\x20','assertion','delete','TestRunFinished','ijrVc','aCZZB','xmSpU','toUpperCase','cursor','response','backtrace'];a39_0x1e73=function(){return _0x533e45;};return a39_0x1e73();}function resolveCollectionFile(_0x1a461b,_0xf1242){const _0xbe134a=a39_0x2974d4,_0x17c8ce={};_0x17c8ce['xddNb']=function(_0x30e4b4,_0x1b0116){return _0x30e4b4===_0x1b0116;},_0x17c8ce[_0xbe134a(0x17a)]=_0xbe134a(0x1b9),_0x17c8ce[_0xbe134a(0x1e5)]=_0xbe134a(0x210),_0x17c8ce[_0xbe134a(0x1ab)]=function(_0x197f1d,_0x3d4da3){return _0x197f1d!==_0x3d4da3;},_0x17c8ce[_0xbe134a(0x167)]=function(_0x4c98eb,_0x165122){return _0x4c98eb<_0x165122;},_0x17c8ce[_0xbe134a(0x152)]=function(_0x330eaf,_0x4135c2){return _0x330eaf+_0x4135c2;},_0x17c8ce[_0xbe134a(0x189)]=_0xbe134a(0x1b5),_0x17c8ce['lzyeI']='collection.json';const _0xeb4799=_0x17c8ce;try{if(_0xf1242&&_0xf1242['collectionPath'])return path['relative'](process[_0xbe134a(0x202)](),path[_0xbe134a(0x1d9)](_0xf1242['collectionPath']));const _0xbbca9f=_0x1a461b[_0xbe134a(0x130)];if(_0xeb4799['xddNb'](typeof _0xbbca9f,_0xeb4799['xZbGF']))return path[_0xbe134a(0x209)](process['cwd'](),path[_0xbe134a(0x1d9)](_0xbbca9f));const _0x1bcb2e=process[_0xbe134a(0x18a)][_0xbe134a(0x180)](_0xeb4799['LScCR']);if(_0xeb4799[_0xbe134a(0x1ab)](_0x1bcb2e,-0x1)&&_0xeb4799['HPRjz'](_0xeb4799[_0xbe134a(0x152)](_0x1bcb2e,0x1),process[_0xbe134a(0x18a)][_0xbe134a(0x134)])){const _0xa55e2a=process['argv'][_0xeb4799[_0xbe134a(0x152)](_0x1bcb2e,0x1)];if(_0xa55e2a&&!_0xa55e2a[_0xbe134a(0x1c3)]('-'))return path[_0xbe134a(0x209)](process[_0xbe134a(0x202)](),path[_0xbe134a(0x1d9)](_0xa55e2a));}}catch(_0xbd7cce){}return logger['info'](_0xeb4799[_0xbe134a(0x189)]),_0xeb4799['lzyeI'];}function resolveCollectionName(_0x22045a){const _0x46b755=a39_0x2974d4,_0x257c61={};_0x257c61[_0x46b755(0x1be)]=function(_0x1599d6,_0x1eae2b){return _0x1599d6===_0x1eae2b;},_0x257c61[_0x46b755(0x165)]='object';const _0xf99d1c=_0x257c61;try{const _0x177a0d=_0x22045a[_0x46b755(0x130)];if(_0x177a0d&&_0xf99d1c[_0x46b755(0x1be)](typeof _0x177a0d,_0xf99d1c[_0x46b755(0x165)]))return _0x177a0d[_0x46b755(0x17d)]||_0x177a0d[_0x46b755(0x186)]&&_0x177a0d[_0x46b755(0x186)][_0x46b755(0x17d)]||null;}catch(_0x2ba0d9){}return null;}function emitTest(_0x8e0338,_0x341221,_0x1051f1,_0x4ec14c,_0x3639ec){const _0x38b8ff=a39_0x2974d4,_0x1c62b1={'ONJWH':function(_0x14283d){return _0x14283d();},'rduVU':_0x38b8ff(0x143),'QyIbT':function(_0x1fc495,_0x53cb80){return _0x1fc495(_0x53cb80);},'kpquG':_0x38b8ff(0x13e),'Dogtw':_0x38b8ff(0x125),'YLnMO':function(_0x4cde12,_0x397dd2){return _0x4cde12!=_0x397dd2;},'tksic':function(_0xcf31db,_0x17f7ef){return _0xcf31db===_0x17f7ef;},'URHDQ':_0x38b8ff(0x194),'iYztX':_0x38b8ff(0x150)};if(_0x1c62b1[_0x38b8ff(0x15e)](isCLIRunning))try{const _0x4b4be8=BrowserstackCLI[_0x38b8ff(0x139)]()['getTestFramework']();if(!_0x4b4be8)return;_0x4b4be8[_0x38b8ff(0x20a)](TestFrameworkState['TEST'],_0x8e0338,{'test':{'uuid':_0x341221[_0x38b8ff(0x1a0)],'name':_0x341221[_0x38b8ff(0x17d)],'scopes':_0x1051f1[_0x38b8ff(0x19e)],'scope':_0x1051f1[_0x38b8ff(0x19e)][_0x38b8ff(0x14b)]('\x20'),'file_path':_0x4ec14c,'location':_0x1051f1[_0x38b8ff(0x1ca)],'started_at':_0x1051f1[_0x38b8ff(0x18b)],'finished_at':_0x3639ec['finishedAt']||null,'result':_0x3639ec['result']||_0x1c62b1['rduVU'],'failure':_0x3639ec['failure']||[],'failure_type':_0x3639ec[_0x38b8ff(0x1d3)]||null,'failure_reason':_0x3639ec['failureReason']||null,'tags':[],'meta':{},'custom_metadata':{}}});}catch(_0x3e77dc){_0x1c62b1[_0x38b8ff(0x1e7)](debug,_0x38b8ff(0x1cc)+_0x3e77dc);}else{const _0x40c42d={'uuid':_0x341221[_0x38b8ff(0x1a0)],'name':_0x341221['name'],'framework':_0x1c62b1[_0x38b8ff(0x1da)],'body':{'lang':_0x1c62b1['Dogtw'],'code':null},'scope':_0x1051f1[_0x38b8ff(0x19e)]['join']('\x20'),'scopes':_0x1051f1[_0x38b8ff(0x19e)],'identifier':_0x341221[_0x38b8ff(0x20e)],'file_name':_0x1051f1[_0x38b8ff(0x1ca)],'vc_filepath':_0x1051f1[_0x38b8ff(0x1ad)],'location':_0x1051f1[_0x38b8ff(0x1ad)],'started_at':_0x1051f1['startedAt'],'finished_at':_0x3639ec[_0x38b8ff(0x13a)]||null,'duration_in_ms':_0x1c62b1['YLnMO'](_0x3639ec[_0x38b8ff(0x16d)],null)?Math[_0x38b8ff(0x1f8)](0x0,_0x3639ec[_0x38b8ff(0x16d)]):null,'result':_0x3639ec[_0x38b8ff(0x1ce)]||_0x1c62b1[_0x38b8ff(0x12b)],'failure_reason':_0x3639ec[_0x38b8ff(0x1e0)]||null,'failure_type':_0x3639ec[_0x38b8ff(0x1d3)]||null,'failure':_0x3639ec[_0x38b8ff(0x208)]||[],'retry_of':null,'hooks':[]};_0x40c42d[_0x38b8ff(0x208)][0x0]&&(_0x40c42d[_0x38b8ff(0x19f)]=_0x40c42d['failure'][0x0][_0x38b8ff(0x157)],_0x40c42d['failure_reason_expanded']=_0x40c42d[_0x38b8ff(0x208)][0x0][_0x38b8ff(0x1a4)]);const _0x7225d=_0x1c62b1[_0x38b8ff(0x1e1)](_0x8e0338,HookState['PRE'])?_0x1c62b1[_0x38b8ff(0x201)]:_0x1c62b1['iYztX'],_0x1dded7={};_0x1dded7[_0x38b8ff(0x1cb)]=_0x7225d,_0x1dded7[_0x38b8ff(0x184)]=_0x40c42d,SessionHandler[_0x38b8ff(0x1fd)](_0x1dded7);}}function emitLog(_0x16c9d6,_0xfb0be3){const _0xdc9dcd=a39_0x2974d4,_0x5794cb={'qMFMF':_0xdc9dcd(0x1a7),'hDhPa':function(_0x20ebce){return _0x20ebce();},'EcKlQ':function(_0x2a6026,_0x1ad492){return _0x2a6026===_0x1ad492;},'XgtFa':_0xdc9dcd(0x12c),'Rkvee':'newman','IZsoz':_0xdc9dcd(0x18c),'IMtEi':_0xdc9dcd(0x122),'ubZhx':function(_0x7f1d83,_0x2d8239){return _0x7f1d83(_0x2d8239);},'WvnfM':function(_0x3eecea,_0x127044){return _0x3eecea+_0x127044;},'RKgiM':_0xdc9dcd(0x181),'yKitk':'LogCreated'},_0x37ae05=_0xfb0be3['kind']||_0x5794cb[_0xdc9dcd(0x20c)],_0x38828e=_0xfb0be3['timestamp']||new Date()['toISOString']();if(_0x5794cb[_0xdc9dcd(0x17f)](isCLIRunning))try{const _0x3ec2bc=_0x5794cb[_0xdc9dcd(0x182)](_0x37ae05,_0x5794cb[_0xdc9dcd(0x172)])?JSON[_0xdc9dcd(0x168)](_0xfb0be3):_0xfb0be3[_0xdc9dcd(0x20d)]||'',_0x3a46f4={};_0x3a46f4['platformIndex']=0x0,_0x3a46f4[_0xdc9dcd(0x16a)]=_0x5794cb['Rkvee'],_0x3a46f4[_0xdc9dcd(0x193)]='',_0x3a46f4['testFrameworkState']=_0x5794cb['IZsoz'],_0x3a46f4[_0xdc9dcd(0x163)]=[{'uuid':_0x16c9d6,'timestamp':_0x38828e,'kind':_0x37ae05,'level':_0xfb0be3[_0xdc9dcd(0x185)]||_0x5794cb[_0xdc9dcd(0x1c7)],'message':_0x3ec2bc}],GrpcClient['getInstance']()[_0xdc9dcd(0x162)](_0x3a46f4);}catch(_0x4ee0b8){_0x5794cb[_0xdc9dcd(0x1a5)](debug,_0x5794cb[_0xdc9dcd(0x127)](_0x5794cb[_0xdc9dcd(0x136)],_0x4ee0b8));}else{const _0x2503be={};_0x2503be[_0xdc9dcd(0x1f7)]=_0x16c9d6,_0x2503be['timestamp']=_0x38828e,_0x2503be['level']=_0xfb0be3[_0xdc9dcd(0x185)]||null,_0x2503be['message']=_0xfb0be3[_0xdc9dcd(0x20d)]||null,_0x2503be[_0xdc9dcd(0x183)]=_0x37ae05,_0x2503be[_0xdc9dcd(0x1e9)]=_0xfb0be3[_0xdc9dcd(0x1e9)]||{};const _0x3d2e37={};_0x3d2e37[_0xdc9dcd(0x1cb)]=_0x5794cb[_0xdc9dcd(0x199)],_0x3d2e37[_0xdc9dcd(0x163)]=[_0x2503be],SessionHandler[_0xdc9dcd(0x1fd)](_0x3d2e37);}}function BrowserStackNewmanReporter(_0x3b72ec,_0x1a2a53,_0x168a93){const _0x1b2bbc=a39_0x2974d4,_0x4f3e80={'MuZeb':function(_0x3a0937,_0x5b18b7,_0x53182b){return _0x3a0937(_0x5b18b7,_0x53182b);},'UqTLx':function(_0xffccfe,_0x26fcc7){return _0xffccfe(_0x26fcc7);},'SiNsv':function(_0x2a7fc8,_0x5197cb){return _0x2a7fc8(_0x5197cb);},'OuWHM':function(_0x7e894b,_0x58fc54){return _0x7e894b>_0x58fc54;},'KUslW':_0x1b2bbc(0x187),'OIxYU':function(_0x2dbf22,_0x88e1bf){return _0x2dbf22+_0x88e1bf;},'rQPCF':'GET','uWjeb':_0x1b2bbc(0x1a7),'USBRS':function(_0x550cd7){return _0x550cd7();},'UTVWB':function(_0x2a53b9,_0x42a37a){return _0x2a53b9||_0x42a37a;},'foPvh':function(_0x576780,_0x4998f4,_0x23cf99,_0x5512a0,_0x59d7e6,_0x8b7da4){return _0x576780(_0x4998f4,_0x23cf99,_0x5512a0,_0x59d7e6,_0x8b7da4);},'ubHuG':function(_0x3991b3,_0x2c70f6){return _0x3991b3===_0x2c70f6;},'BpDcj':function(_0x2201d3,_0x58f3e5,_0x5da6a9){return _0x2201d3(_0x58f3e5,_0x5da6a9);},'ZNoFX':_0x1b2bbc(0x12c),'YhaDf':function(_0x103770,_0x321ecb){return _0x103770+_0x321ecb;},'OPOyz':function(_0x56c547,_0x358c56){return _0x56c547+_0x358c56;},'LnJHA':function(_0x70bf89,_0x269d06){return _0x70bf89+_0x269d06;},'gouln':function(_0x45d111,_0x2873f8){return _0x45d111+_0x2873f8;},'OQaBD':function(_0xd29017,_0x1bbaf7){return _0xd29017+_0x1bbaf7;},'zjOYy':function(_0x5a32db,_0x13e37c){return _0x5a32db+_0x13e37c;},'HBAOH':_0x1b2bbc(0x14d),'akYwi':'ms)','QxeLd':_0x1b2bbc(0x122),'MTbUv':function(_0x157598,_0x11aaa6){return _0x157598-_0x11aaa6;},'OAeQg':function(_0x1ea5c6,_0x32bc7e){return _0x1ea5c6&&_0x32bc7e;},'dGphk':function(_0x4c6daf,_0x5bd5db){return _0x4c6daf>_0x5bd5db;},'AsRfY':function(_0x193830,_0x37616a){return _0x193830-_0x37616a;},'laeVb':function(_0x3d0807,_0x2414d1,_0x541569){return _0x3d0807(_0x2414d1,_0x541569);},'bZYRX':function(_0x20093d,_0x3a1b0d){return _0x20093d+_0x3a1b0d;},'rFcQL':_0x1b2bbc(0x13c),'xmSpU':_0x1b2bbc(0x1b8),'OKJha':function(_0x1b196f,_0x4d369b){return _0x1b196f(_0x4d369b);},'lLhvo':function(_0x27842c,_0x377f5a){return _0x27842c+_0x377f5a;},'WsrhW':_0x1b2bbc(0x1e4),'mlKBX':function(_0x32079b,_0x18f0ad){return _0x32079b-_0x18f0ad;},'qrhgL':'unknown','bpIbv':function(_0x2c9dbc,_0xf563ba,_0x5be26e){return _0x2c9dbc(_0xf563ba,_0x5be26e);},'LMJAU':function(_0x5a02b7,_0x682f8d){return _0x5a02b7+_0x682f8d;},'AIENs':function(_0x4a6f13,_0x214361){return _0x4a6f13+_0x214361;},'Djzsw':_0x1b2bbc(0x1f6),'uEMta':_0x1b2bbc(0x1f0),'aLLxN':function(_0x3ad415,_0x1df90e){return _0x3ad415(_0x1df90e);},'ZpsRS':function(_0x4370b0,_0x1a1780){return _0x4370b0+_0x1a1780;},'hSIgt':'[Newman\x20Reporter]\x20Error\x20in\x20script:\x20','LULHZ':_0x1b2bbc(0x1c5),'whWMJ':'passed','kZFQq':_0x1b2bbc(0x1b7),'AtORY':_0x1b2bbc(0x1e6),'eSRcv':'UnhandledError','zSNHH':function(_0x39cc3d,_0x5ad632,_0x593254){return _0x39cc3d(_0x5ad632,_0x593254);},'bpKkQ':function(_0x4624f9,_0x1e5140){return _0x4624f9>_0x1e5140;},'ZCvOu':function(_0x2d4eb0){return _0x2d4eb0();},'MnIfx':function(_0x458949,_0x355f62){return _0x458949!=_0x355f62;},'fxbKN':function(_0x2420f4,_0x222142){return _0x2420f4>=_0x222142;},'glqSD':function(_0x3cadca,_0x1a9fa8){return _0x3cadca<_0x1a9fa8;},'qPydB':function(_0x54bcff,_0x8686e7){return _0x54bcff||_0x8686e7;},'MkMRG':'N/A','PXnHR':function(_0x30f176,_0xe48329){return _0x30f176!=_0xe48329;},'aSxkQ':'No\x20HTTP\x20response\x20received','dINGK':function(_0x5baf6e,_0x1e1e7c,_0x8c3824){return _0x5baf6e(_0x1e1e7c,_0x8c3824);},'JeJos':function(_0x2b2283,_0xfe59c6){return _0x2b2283+_0xfe59c6;},'wSvRk':function(_0x3cab47,_0x12ed66){return _0x3cab47+_0x12ed66;},'ZxOfn':function(_0x29d46b,_0x178c0b){return _0x29d46b+_0x178c0b;},'TIDGw':function(_0x42d65c,_0x23f345){return _0x42d65c+_0x23f345;},'MbSAB':function(_0x3da671,_0x342fa7,_0x3ce541){return _0x3da671(_0x342fa7,_0x3ce541);},'sBbUI':function(_0x5044cb,_0x560dbb,_0x3399cb){return _0x5044cb(_0x560dbb,_0x3399cb);},'jKwct':_0x1b2bbc(0x20f),'vEfmn':function(_0x5c695c,_0x723f8e){return _0x5c695c||_0x723f8e;},'szodr':_0x1b2bbc(0x1f9),'ZSFvU':function(_0x557391,_0x44731c,_0x37482e,_0x3dd3fd,_0x3ed3cb,_0x9d85f1){return _0x557391(_0x44731c,_0x37482e,_0x3dd3fd,_0x3ed3cb,_0x9d85f1);},'LIYsG':function(_0x206955,_0x39eab5){return _0x206955(_0x39eab5);},'ibRmt':_0x1b2bbc(0x129),'Fpvqs':_0x1b2bbc(0x14a),'UtZRX':_0x1b2bbc(0x149),'atXJa':_0x1b2bbc(0x1fa),'ijrVc':_0x1b2bbc(0x14e),'pTvll':'console','CZeaf':'exception','tUZyX':_0x1b2bbc(0x1df),'czYdP':_0x1b2bbc(0x120)},_0x1e455c=new Map();let _0x347535=null,_0x98b149=0x0;const _0x4a1d73=_0x4f3e80['MuZeb'](resolveCollectionFile,_0x168a93,_0x1a2a53),_0x5018f6=_0x4f3e80[_0x1b2bbc(0x1d5)](resolveCollectionName,_0x168a93)||_0x4a1d73,_0x15355f=path[_0x1b2bbc(0x1d9)](_0x4a1d73),_0x23d0c6=_0x1b2bbc(0x19b)+process['pid'],_0x128921=_0x17dc81=>{const _0x4405ff=_0x1b2bbc;try{_0x347535&&_0x4f3e80[_0x4405ff(0x188)](emitLog,_0x347535,_0x17dc81);}catch(_0x38c915){_0x4f3e80[_0x4405ff(0x1af)](debug,_0x4405ff(0x174)+_0x38c915);}};process['on'](_0x23d0c6,_0x128921),_0x3b72ec['on'](_0x4f3e80['ibRmt'],()=>{const _0xd37c05=_0x1b2bbc;process[_0xd37c05(0x1ac)](_0x23d0c6,_0x128921),_0x1e455c[_0xd37c05(0x135)]();}),_0x3b72ec['on'](_0x4f3e80[_0x1b2bbc(0x138)],(_0x518803,_0x37a5bf)=>{const _0x4eda00=_0x1b2bbc;_0x37a5bf&&_0x37a5bf[_0x4eda00(0x155)]&&(_0x98b149=_0x37a5bf[_0x4eda00(0x155)][_0x4eda00(0x1a3)]||0x0);}),_0x3b72ec['on'](_0x4f3e80['UtZRX'],(_0x6b028f,_0x445136)=>{const _0x138a58=_0x1b2bbc;try{_0x347535=null;const _0x3c83d0=_0x445136['item'],_0x2187b2=_0x3c83d0['parent']()?_0x4f3e80[_0x138a58(0x17c)](getParentTitles,_0x3c83d0[_0x138a58(0x1ef)]()):[],_0x55d660=_0x4f3e80[_0x138a58(0x1d0)](_0x2187b2[_0x138a58(0x134)],0x1)?_0x2187b2[_0x138a58(0x1fc)](0x1):_0x2187b2,_0x5e2bbb=_0x445136[_0x138a58(0x155)]&&_0x445136['cursor']['ref'],_0x1ee2e4={'itemName':_0x3c83d0[_0x138a58(0x17d)],'scopes':_0x55d660[_0x138a58(0x19c)]([_0x3c83d0[_0x138a58(0x17d)]]),'location':_0x4a1d73,'collectionName':_0x5018f6,'startedAt':new Date()[_0x138a58(0x15b)](),'startTimestamp':Date[_0x138a58(0x12a)](),'lastResponseCode':null,'httpLog':null,'assertions':[],'bufferedLogs':[]};_0x1e455c[_0x138a58(0x1c9)](_0x3c83d0['id']+'_'+_0x98b149,_0x1ee2e4),_0x5e2bbb&&_0x1e455c[_0x138a58(0x1c9)](_0x5e2bbb+'_'+_0x98b149,_0x1ee2e4);}catch(_0x446919){_0x4f3e80[_0x138a58(0x1af)](debug,_0x138a58(0x1aa)+_0x446919);}}),_0x3b72ec['on'](_0x4f3e80[_0x1b2bbc(0x124)],(_0x38c091,_0x20b8e2)=>{const _0x13edac=_0x1b2bbc;try{if(!_0x20b8e2||!_0x20b8e2[_0x13edac(0x120)])return;const _0x317007=_0x1e455c[_0x13edac(0x1eb)](_0x20b8e2[_0x13edac(0x120)]['id']+'_'+_0x98b149);if(!_0x317007)return;_0x20b8e2['response']&&(_0x317007[_0x13edac(0x19a)]=_0x20b8e2[_0x13edac(0x156)][_0x13edac(0x19d)]||null);if(!_0x20b8e2[_0x13edac(0x1fa)])return;let _0x51683a='',_0x164399='';if(_0x20b8e2['request'][_0x13edac(0x160)])try{const _0x2c9ffb=_0x20b8e2[_0x13edac(0x1fa)]['url']['toString'](),_0x58d4de=new URL(_0x2c9ffb['startsWith'](_0x4f3e80[_0x13edac(0x204)])?_0x2c9ffb:_0x13edac(0x203)+_0x2c9ffb);_0x51683a=_0x58d4de[_0x13edac(0x159)],_0x164399=_0x4f3e80[_0x13edac(0x1c1)](_0x58d4de[_0x13edac(0x1c8)],_0x58d4de[_0x13edac(0x145)]);}catch(_0xf55f4a){_0x164399=_0x20b8e2[_0x13edac(0x1fa)][_0x13edac(0x160)][_0x13edac(0x131)]();}const _0xced1dd={};_0xced1dd[_0x13edac(0x1b2)]=_0x51683a,_0xced1dd[_0x13edac(0x173)]=_0x164399,_0xced1dd['method']=_0x20b8e2[_0x13edac(0x1fa)][_0x13edac(0x1c6)]||_0x4f3e80[_0x13edac(0x1a6)],_0xced1dd[_0x13edac(0x1bd)]={},_0xced1dd[_0x13edac(0x121)]=_0x20b8e2[_0x13edac(0x156)]?_0x20b8e2['response'][_0x13edac(0x19d)]||0x0:0x0,_0xced1dd[_0x13edac(0x1c2)]=_0x20b8e2['response']?_0x20b8e2['response'][_0x13edac(0x12f)]||0x0:0x0,_0x317007[_0x13edac(0x13b)]=_0xced1dd;}catch(_0x5cb703){_0x4f3e80[_0x13edac(0x1af)](debug,'[Newman\x20Reporter]\x20Error\x20in\x20request:\x20'+_0x5cb703);}}),_0x3b72ec['on'](_0x4f3e80[_0x1b2bbc(0x151)],(_0x502b1c,_0x49f5eb)=>{const _0x305996=_0x1b2bbc;try{if(!_0x49f5eb||!_0x49f5eb[_0x305996(0x120)])return;const _0x39d95c=_0x1e455c[_0x305996(0x1eb)](_0x49f5eb[_0x305996(0x120)]['id']+'_'+_0x98b149);if(!_0x39d95c)return;const _0x4de26e=_0x49f5eb[_0x305996(0x14e)]||'Assertion\x20'+_0x4f3e80[_0x305996(0x1c1)](_0x39d95c[_0x305996(0x144)][_0x305996(0x134)],0x1),_0x3df31f=_0x4f3e80['USBRS'](uuidv4),_0x7971a2=_0x39d95c[_0x305996(0x19e)][_0x305996(0x19c)]([_0x4de26e])[_0x305996(0x14b)]('\x20');_0x39d95c['assertions'][_0x305996(0x1ed)]({'uuid':_0x3df31f,'name':_0x4de26e,'identifier':_0x7971a2,'err':_0x4f3e80[_0x305996(0x12d)](_0x502b1c,null)});const _0x8ac127={};_0x8ac127[_0x305996(0x1a0)]=_0x3df31f,_0x8ac127[_0x305996(0x17d)]=_0x4de26e,_0x8ac127[_0x305996(0x20e)]=_0x7971a2,_0x4f3e80['foPvh'](emitTest,HookState[_0x305996(0x15d)],_0x8ac127,_0x39d95c,_0x15355f,{});_0x4f3e80['ubHuG'](_0x39d95c[_0x305996(0x144)]['length'],0x1)&&_0x4f3e80[_0x305996(0x1d0)](_0x39d95c[_0x305996(0x147)]['length'],0x0)&&(_0x39d95c['bufferedLogs']['forEach'](_0x45b2a5=>{const _0xbb949f=_0x305996;_0x4f3e80[_0xbb949f(0x188)](emitLog,_0x3df31f,{'kind':_0x4f3e80[_0xbb949f(0x1b1)],'message':_0x45b2a5[_0xbb949f(0x20d)],'level':_0x45b2a5[_0xbb949f(0x185)]});}),_0x39d95c['bufferedLogs']=[]);if(_0x39d95c[_0x305996(0x13b)]){_0x4f3e80[_0x305996(0x1d4)](emitLog,_0x3df31f,{'kind':_0x4f3e80[_0x305996(0x1a1)],'http_response':_0x39d95c['httpLog']});const _0x19056f=_0x4f3e80['YhaDf'](_0x4f3e80[_0x305996(0x17e)](_0x4f3e80[_0x305996(0x1dc)](_0x4f3e80[_0x305996(0x1c1)](_0x4f3e80[_0x305996(0x1e8)](_0x4f3e80['gouln'](_0x4f3e80['OQaBD'](_0x4f3e80[_0x305996(0x16f)](_0x39d95c[_0x305996(0x13b)]['method']||_0x4f3e80[_0x305996(0x1a6)],'\x20'),_0x39d95c[_0x305996(0x13b)][_0x305996(0x1b2)]),_0x39d95c['httpLog'][_0x305996(0x173)]),_0x4f3e80[_0x305996(0x15c)]),_0x39d95c['httpLog'][_0x305996(0x121)]),'\x20('),_0x39d95c[_0x305996(0x13b)]['duration_ms']),_0x4f3e80[_0x305996(0x16e)]);_0x4f3e80['MuZeb'](emitLog,_0x3df31f,{'kind':_0x4f3e80[_0x305996(0x1b1)],'message':_0x19056f,'level':_0x4f3e80[_0x305996(0x196)]});}_0x347535=_0x3df31f;}catch(_0x1924a9){_0x4f3e80[_0x305996(0x17c)](debug,_0x305996(0x1d6)+_0x1924a9);}}),_0x3b72ec['on'](_0x4f3e80[_0x1b2bbc(0x1d1)],(_0x900aae,_0x406d83)=>{const _0x58e8ee=_0x1b2bbc;try{if(!_0x406d83)return;let _0x46d8c5=_0x347535;if(!_0x46d8c5&&_0x406d83[_0x58e8ee(0x155)]&&_0x406d83[_0x58e8ee(0x155)][_0x58e8ee(0x170)]){const _0x5bdc1c=_0x1e455c['get'](_0x406d83[_0x58e8ee(0x155)][_0x58e8ee(0x170)]+'_'+_0x98b149);_0x5bdc1c&&_0x4f3e80['OuWHM'](_0x5bdc1c[_0x58e8ee(0x144)][_0x58e8ee(0x134)],0x0)&&(_0x46d8c5=_0x5bdc1c[_0x58e8ee(0x144)][_0x4f3e80[_0x58e8ee(0x1b3)](_0x5bdc1c[_0x58e8ee(0x144)]['length'],0x1)][_0x58e8ee(0x1a0)]);}const _0x3f02d1=_0x406d83[_0x58e8ee(0x1de)]?_0x406d83[_0x58e8ee(0x1de)][_0x58e8ee(0x14b)](',\x20'):'';if(_0x46d8c5)_0x4f3e80[_0x58e8ee(0x1d4)](emitLog,_0x46d8c5,{'kind':_0x4f3e80[_0x58e8ee(0x1b1)],'message':_0x3f02d1,'level':_0x4f3e80['UqTLx'](normalizeLogLevel,_0x406d83[_0x58e8ee(0x185)])});else{if(_0x406d83[_0x58e8ee(0x155)]&&_0x406d83['cursor']['ref']){const _0x1e4402=_0x1e455c['get'](_0x406d83[_0x58e8ee(0x155)][_0x58e8ee(0x170)]+'_'+_0x98b149);_0x1e4402&&_0x1e4402['bufferedLogs'][_0x58e8ee(0x1ed)]({'timestamp':new Date()[_0x58e8ee(0x15b)](),'level':_0x4f3e80[_0x58e8ee(0x17c)](normalizeLogLevel,_0x406d83[_0x58e8ee(0x185)]),'message':_0x3f02d1});}}}catch(_0xc36348){_0x4f3e80['UqTLx'](debug,_0x58e8ee(0x128)+_0xc36348);}}),_0x3b72ec['on'](_0x4f3e80['CZeaf'],(_0x5af6fc,_0xe77b17)=>{const _0x485e8f=_0x1b2bbc;try{if(!_0x5af6fc&&(!_0xe77b17||!_0xe77b17[_0x485e8f(0x1f4)]))return;const _0x409024=_0x5af6fc||_0xe77b17[_0x485e8f(0x1f4)],_0x12c580=_0x409024[_0x485e8f(0x20d)]||_0x4f3e80['SiNsv'](String,_0x409024),_0x4c3a81=_0x409024[_0x485e8f(0x1f5)]||_0x12c580;let _0x21cea9=_0x347535;if(_0x4f3e80[_0x485e8f(0x141)](!_0x21cea9,_0xe77b17)&&_0xe77b17[_0x485e8f(0x155)]&&_0xe77b17[_0x485e8f(0x155)][_0x485e8f(0x170)]){const _0x3981b1=_0x1e455c['get'](_0xe77b17['cursor']['ref']+'_'+_0x98b149);_0x3981b1&&_0x4f3e80[_0x485e8f(0x161)](_0x3981b1['assertions'][_0x485e8f(0x134)],0x0)&&(_0x21cea9=_0x3981b1['assertions'][_0x4f3e80[_0x485e8f(0x1ae)](_0x3981b1['assertions'][_0x485e8f(0x134)],0x1)][_0x485e8f(0x1a0)]);}_0x21cea9&&_0x4f3e80['laeVb'](emitLog,_0x21cea9,{'kind':_0x4f3e80[_0x485e8f(0x1b1)],'message':_0x4f3e80[_0x485e8f(0x126)](_0x4f3e80[_0x485e8f(0x1cf)],_0x4c3a81),'level':_0x4f3e80[_0x485e8f(0x153)]});}catch(_0x223dc0){_0x4f3e80[_0x485e8f(0x140)](debug,_0x4f3e80[_0x485e8f(0x1ff)](_0x4f3e80[_0x485e8f(0x179)],_0x223dc0));}}),_0x3b72ec['on'](_0x4f3e80[_0x1b2bbc(0x1c4)],(_0x5f4ee7,_0x841fa4)=>{const _0x1d9d96=_0x1b2bbc;try{if(!_0x841fa4||!_0x841fa4[_0x1d9d96(0x166)])return;let _0x2d6f34=_0x347535;if(!_0x2d6f34&&_0x841fa4[_0x1d9d96(0x155)]&&_0x841fa4[_0x1d9d96(0x155)][_0x1d9d96(0x170)]){const _0x3c5f18=_0x1e455c[_0x1d9d96(0x1eb)](_0x841fa4['cursor'][_0x1d9d96(0x170)]+'_'+_0x98b149);_0x3c5f18&&_0x4f3e80[_0x1d9d96(0x1d0)](_0x3c5f18[_0x1d9d96(0x144)][_0x1d9d96(0x134)],0x0)&&(_0x2d6f34=_0x3c5f18[_0x1d9d96(0x144)][_0x4f3e80[_0x1d9d96(0x15a)](_0x3c5f18[_0x1d9d96(0x144)][_0x1d9d96(0x134)],0x1)]['uuid']);}if(!_0x2d6f34)return;const _0x303df5=_0x841fa4['event']&&_0x841fa4[_0x1d9d96(0x1bc)]['listen']||_0x4f3e80[_0x1d9d96(0x146)];_0x5f4ee7&&_0x4f3e80[_0x1d9d96(0x1cd)](emitLog,_0x2d6f34,{'kind':_0x4f3e80['uWjeb'],'message':_0x4f3e80[_0x1d9d96(0x17e)](_0x4f3e80['LMJAU'](_0x4f3e80[_0x1d9d96(0x1a9)](_0x4f3e80['Djzsw'],_0x303df5),_0x4f3e80[_0x1d9d96(0x148)]),_0x5f4ee7[_0x1d9d96(0x20d)]||_0x5f4ee7),'level':_0x4f3e80[_0x1d9d96(0x153)]});}catch(_0x37b718){_0x4f3e80[_0x1d9d96(0x1b4)](debug,_0x4f3e80[_0x1d9d96(0x191)](_0x4f3e80[_0x1d9d96(0x15f)],_0x37b718));}}),_0x3b72ec['on'](_0x4f3e80[_0x1b2bbc(0x197)],(_0x1852e7,_0x2119fb)=>{const _0x184293=_0x1b2bbc,_0x404172={'jmbMF':function(_0x1b73df,_0x386f32,_0x6cbd9){const _0x33ca9c=a39_0x5af3;return _0x4f3e80[_0x33ca9c(0x1c0)](_0x1b73df,_0x386f32,_0x6cbd9);},'nGdlL':_0x4f3e80[_0x184293(0x1b1)]};try{if(!_0x2119fb||!_0x2119fb[_0x184293(0x120)])return;const _0x3f4044=_0x2119fb[_0x184293(0x120)]['id']+'_'+_0x98b149,_0x4953c7=_0x1e455c[_0x184293(0x1eb)](_0x3f4044);if(!_0x4953c7)return;const _0x40dc40=new Date(),_0x4302c9=_0x4f3e80[_0x184293(0x15a)](_0x40dc40[_0x184293(0x1f1)](),_0x4953c7[_0x184293(0x1f3)]);if(_0x4f3e80[_0x184293(0x164)](_0x4953c7['assertions'][_0x184293(0x134)],0x0))_0x4953c7[_0x184293(0x144)][_0x184293(0x1f2)](_0xf87615=>{const _0x217db6=_0x184293,_0x373f00=!!_0xf87615['err'],_0x48fbef={'finishedAt':_0x40dc40['toISOString'](),'durationMs':_0x4302c9,'result':_0x373f00?_0x4f3e80['LULHZ']:_0x4f3e80['whWMJ']};_0x373f00&&(_0x48fbef[_0x217db6(0x1e0)]=_0xf87615[_0x217db6(0x14c)][_0x217db6(0x20d)]||'',_0x48fbef[_0x217db6(0x1d3)]=_0x4f3e80[_0x217db6(0x1db)](_0xf87615[_0x217db6(0x14c)][_0x217db6(0x17d)],_0x4f3e80[_0x217db6(0x142)])||_0xf87615[_0x217db6(0x14c)][_0x217db6(0x20d)]&&_0xf87615['err'][_0x217db6(0x20d)]['includes'](_0x4f3e80['AtORY'])?_0x4f3e80[_0x217db6(0x142)]:_0x4f3e80[_0x217db6(0x137)],_0x48fbef[_0x217db6(0x208)]=[{'backtrace':_0xf87615[_0x217db6(0x14c)][_0x217db6(0x1f5)]?_0xf87615[_0x217db6(0x14c)][_0x217db6(0x1f5)]['split']('\x0a'):[_0xf87615[_0x217db6(0x14c)][_0x217db6(0x20d)]||''],'expanded':[]}]),_0x4f3e80[_0x217db6(0x16b)](emitTest,HookState[_0x217db6(0x13d)],_0xf87615,_0x4953c7,_0x15355f,_0x48fbef);});else{const _0x2edac9=_0x4f3e80['ZCvOu'](uuidv4),_0x3086c6=_0x4953c7[_0x184293(0x19a)],_0x4c05a1=_0x4f3e80[_0x184293(0x175)](_0x3086c6,null)&&_0x4f3e80[_0x184293(0x1d7)](_0x3086c6,0xc8)&&_0x4f3e80['glqSD'](_0x3086c6,0x190),_0x370728=_0x4953c7['itemName']+_0x184293(0x207)+_0x4f3e80['qPydB'](_0x3086c6,_0x4f3e80['MkMRG'])+')',_0x1669ae={'uuid':_0x2edac9,'name':_0x370728,'identifier':_0x4953c7[_0x184293(0x19e)]['concat']([_0x370728])[_0x184293(0x14b)]('\x20')},_0xe948ad={'finishedAt':_0x40dc40['toISOString'](),'durationMs':_0x4302c9,'result':_0x4c05a1?_0x4f3e80[_0x184293(0x133)]:_0x4f3e80[_0x184293(0x169)]};!_0x4c05a1&&(_0xe948ad[_0x184293(0x1e0)]=_0x4f3e80[_0x184293(0x1d8)](_0x3086c6,null)?_0x184293(0x1bf)+_0x3086c6+_0x184293(0x1ea):_0x4f3e80[_0x184293(0x17b)],_0xe948ad[_0x184293(0x1d3)]=_0x4f3e80[_0x184293(0x137)],_0xe948ad['failure']=[{'backtrace':[_0xe948ad[_0x184293(0x1e0)]],'expanded':[]}]);_0x4f3e80['foPvh'](emitTest,HookState[_0x184293(0x15d)],_0x1669ae,_0x4953c7,_0x15355f,{}),_0x4953c7[_0x184293(0x147)]['forEach'](_0x5a380c=>{const _0x4ef8a6=_0x184293;_0x404172[_0x4ef8a6(0x192)](emitLog,_0x2edac9,{'kind':_0x404172['nGdlL'],'message':_0x5a380c[_0x4ef8a6(0x20d)],'level':_0x5a380c[_0x4ef8a6(0x185)]});});if(_0x4953c7['httpLog']){_0x4f3e80[_0x184293(0x13f)](emitLog,_0x2edac9,{'kind':_0x4f3e80[_0x184293(0x1a1)],'http_response':_0x4953c7[_0x184293(0x13b)]});const _0x1c808b=_0x4f3e80[_0x184293(0x17e)](_0x4f3e80[_0x184293(0x12e)](_0x4f3e80['wSvRk'](_0x4f3e80[_0x184293(0x200)](_0x4f3e80[_0x184293(0x177)](_0x4f3e80[_0x184293(0x1e8)](_0x4f3e80[_0x184293(0x1d2)](_0x4f3e80[_0x184293(0x1e8)](_0x4953c7[_0x184293(0x13b)][_0x184293(0x1c6)]||_0x4f3e80[_0x184293(0x1a6)],'\x20'),_0x4953c7[_0x184293(0x13b)][_0x184293(0x1b2)]),_0x4953c7[_0x184293(0x13b)][_0x184293(0x173)]),_0x4f3e80[_0x184293(0x15c)]),_0x4953c7[_0x184293(0x13b)]['status_code']),'\x20('),_0x4953c7['httpLog'][_0x184293(0x1c2)]),_0x4f3e80[_0x184293(0x16e)]);_0x4f3e80['MbSAB'](emitLog,_0x2edac9,{'kind':_0x4f3e80[_0x184293(0x1b1)],'message':_0x1c808b,'level':_0x4f3e80[_0x184293(0x196)]});}else _0x4f3e80[_0x184293(0x206)](emitLog,_0x2edac9,{'kind':_0x4f3e80[_0x184293(0x1b1)],'message':_0x4f3e80[_0x184293(0x17e)](_0x4f3e80[_0x184293(0x16f)](_0x4f3e80[_0x184293(0x1dd)],_0x4f3e80['vEfmn'](_0x3086c6,_0x4f3e80['MkMRG'])),_0x4f3e80['szodr']),'level':_0x4f3e80['QxeLd']});_0x4f3e80[_0x184293(0x18e)](emitTest,HookState['POST'],_0x1669ae,_0x4953c7,_0x15355f,_0xe948ad);}_0x1e455c[_0x184293(0x14f)](_0x3f4044),_0x2119fb[_0x184293(0x155)]&&_0x2119fb[_0x184293(0x155)][_0x184293(0x170)]&&_0x1e455c[_0x184293(0x14f)](_0x2119fb[_0x184293(0x155)]['ref']+'_'+_0x98b149);}catch(_0x47ed18){_0x4f3e80[_0x184293(0x1af)](debug,_0x184293(0x1fe)+_0x47ed18);}});}module[a39_0x2974d4(0x190)]=BrowserStackNewmanReporter;
|
|
1
|
+
'use strict';const a39_0x1c48f6=a39_0x2184;(function(_0x596805,_0x49605d){const _0x6d9bb0=a39_0x2184,_0x31bfc1=_0x596805();while(!![]){try{const _0xb3fdb5=-parseInt(_0x6d9bb0(0x1c4))/0x1+-parseInt(_0x6d9bb0(0x294))/0x2*(-parseInt(_0x6d9bb0(0x237))/0x3)+parseInt(_0x6d9bb0(0x1d2))/0x4+parseInt(_0x6d9bb0(0x279))/0x5+parseInt(_0x6d9bb0(0x202))/0x6*(parseInt(_0x6d9bb0(0x204))/0x7)+parseInt(_0x6d9bb0(0x1b3))/0x8+-parseInt(_0x6d9bb0(0x22f))/0x9;if(_0xb3fdb5===_0x49605d)break;else _0x31bfc1['push'](_0x31bfc1['shift']());}catch(_0x3e2359){_0x31bfc1['push'](_0x31bfc1['shift']());}}}(a39_0x4f18,0xd7d30));const path=require(a39_0x1c48f6(0x1d5)),{v4:uuidv4}=require('uuid'),SessionHandler=require(a39_0x1c48f6(0x23d)),{debug}=require(a39_0x1c48f6(0x1e4)),logger=require('../../../helpers/logger')[a39_0x1c48f6(0x250)],BrowserstackCLI=require('../../v2/browserstackCLI'),GrpcClient=require('../../v2/grpcClient'),TestFrameworkState=require(a39_0x1c48f6(0x212)),HookState=require(a39_0x1c48f6(0x281)),LOG_LEVELS=[a39_0x1c48f6(0x221),a39_0x1c48f6(0x218),a39_0x1c48f6(0x278),a39_0x1c48f6(0x276),'TRACE'];function isCLIRunning(){const _0x4a6739=a39_0x1c48f6;try{return BrowserstackCLI[_0x4a6739(0x253)]()[_0x4a6739(0x1a8)]();}catch(_0x294d9b){return![];}}function a39_0x4f18(){const _0x4cc811=['[Newman\x20Reporter]\x20emitLog\x20error:\x20','../../../helpers/test-observability/sessionHandler','POST','No\x20HTTP\x20response\x20received','erueC','err','\x20(no\x20assertions)','\x20—\x20response\x20status\x20in\x20failure\x20range','toISOString','TEST_LOG','VRJDK','maRoV','assert','kpdRU','pjtEa','dzlOS','[Newman\x20Reporter]\x20Error\x20in\x20assertion:\x20','durationMs','url','lZzKN','winstonLogger','push','LRZOw','getInstance','TbsIQ','duration_ms','response','test_run_uuid','apply','result','uuid','hczKR','collectionPath','failure','[Newman\x20Reporter]\x20Error\x20in\x20console:\x20','NYohi','GRyks','PeuIT','Script\x20error\x20(','AssertionError','bufferedLogs','logs','stringify','[Newman\x20Reporter]\x20emitTest\x20error:\x20','InQJP','zzLlu','UghIt','failureType','get','http://','delete','fBOKd','UsDFI','join','startedAt','LRckX','max','Assertion\x20','DEBUG','collection','ERROR','2484965iDSsmV','messages','tpiys','lastResponseCode','uYuKJ','cwd','SfVbk','rlWME','../../v2/state/hookState','ZfXup','stack','RTzib','indexOf','object','VTDjl','collectionName','wyVYD','wUPZz','FQdvM','platformIndex','failureReason','gwpXN','eQLoa','[Newman\x20Reporter]\x20Error\x20in\x20exception:\x20','EhscA','kind','PCZoK','859766GnIsdx','httpLog','prZGj','logCreatedEvent','OFlwO','NTlaW','code','identifier','fCtBs','zdMeg','isRunning','bs:addLog:','jOqGt','message','console','cfpSB','lMTGE','PXCVc','ctUEZ','status_code','COPps','10988192CBkLFj','[Newman\x20Reporter]\x20Error\x20in\x20script:\x20','hAEcl','trackEvent','KmhoN','NmJYW','fxQNw','event_type','IOAtn','[Newman\x20Reporter]\x20Error\x20in\x20beforeItem:\x20','sSGHr','NBtBq','pid','Klsqp','lmUDm','MBOCL','aTjEr','690763ewpQiB','length','bQxHM','hostname','Oyvsp','newman','done','unknown','argv','relative','location','collection.json','HGYrJ','JKDuY','6276752LYcKmk','removeListener','FxgHv','path','lHcCq','cyMtx','WfioC','passed','ZQJqr','host','dtejZ','iteration','\x20(HTTP\x20','parent','xrkkF','timestamp','includes','McWtl','../../../helpers/test-observability/utils','exports','NxFSf','request','wMWmF','item','FMidT','uRKLh','ASFYz','concat','VdShf','eftoc','beforeIteration','method','startsWith','KyGBs','MsEWx','cursor','itemName','GgxCk','jBHeW','N/A','error','getTime','jdIMK','zWpiA','headers','run','Exception:\x20','uploadEventData','6xTkULs','clear','3393292KPPkjS','scopes','uJOJU','forEach','IOyEq','[Newman\x20Reporter]\x20Error\x20in\x20item:\x20','responseTime','toUpperCase','test_run','UnhandledError','ref','yzypw','HTTP','uFRRn','../../v2/state/testFrameworkState','resolve','LogCreated','now','pECix','http_response','WARN','\x20->\x20','finishedAt','utuGf','KSiRz','DVhKP','kIivM','kgjPb','backtrace','INFO','toString','info','nLACS','beforeItem','TestRunFinished','event','failure_backtrace','name','testFrameworkState','JQMNT','level','string','assertion','32753979CJQKND','pending','PRE','gHYOM','aKxEU','assertions','MXJSn','sfkLm','9FbOiXs','GET','pathname','HXekn','cqPWR'];a39_0x4f18=function(){return _0x4cc811;};return a39_0x4f18();}function getParentTitles(_0x243b1a){const _0x34ff38=a39_0x1c48f6,_0x5ab965={'TbsIQ':function(_0x4e6393,_0x38116b){return _0x4e6393(_0x38116b);},'KSiRz':function(_0x2bcb6a,_0x2c7a2c){return _0x2bcb6a(_0x2c7a2c);}},_0x37c588=[],_0x3c851b=_0x243b1a[_0x34ff38(0x1df)]();return _0x3c851b&&_0x37c588[_0x34ff38(0x251)][_0x34ff38(0x258)](_0x37c588,_0x5ab965[_0x34ff38(0x254)](getParentTitles,_0x3c851b)),_0x243b1a[_0x34ff38(0x229)]&&_0x37c588[_0x34ff38(0x251)](_0x5ab965[_0x34ff38(0x21c)](String,_0x243b1a[_0x34ff38(0x229)])),_0x37c588;}function normalizeLogLevel(_0x232ee6){const _0x4a0b83=a39_0x1c48f6,_0x373cfd={};_0x373cfd[_0x4a0b83(0x261)]=_0x4a0b83(0x221),_0x373cfd[_0x4a0b83(0x21e)]=function(_0x3c6bcc,_0x2c1090){return _0x3c6bcc!==_0x2c1090;};const _0x584f93=_0x373cfd;if(!_0x232ee6)return _0x584f93['PeuIT'];const _0x112f88=_0x232ee6[_0x4a0b83(0x20b)]();return _0x584f93[_0x4a0b83(0x21e)](LOG_LEVELS[_0x4a0b83(0x285)](_0x112f88),-0x1)?_0x112f88:_0x584f93[_0x4a0b83(0x261)];}function resolveCollectionFile(_0x555f2e,_0x305170){const _0x53ba46=a39_0x1c48f6,_0x54f7af={};_0x54f7af[_0x53ba46(0x270)]=function(_0x399bc0,_0x15aa07){return _0x399bc0===_0x15aa07;},_0x54f7af['JQMNT']=_0x53ba46(0x22d),_0x54f7af[_0x53ba46(0x28a)]=_0x53ba46(0x1ff),_0x54f7af[_0x53ba46(0x280)]=function(_0x51a4e6,_0x93bb8a){return _0x51a4e6!==_0x93bb8a;},_0x54f7af[_0x53ba46(0x246)]=function(_0x52150b,_0x44c1a3){return _0x52150b<_0x44c1a3;},_0x54f7af[_0x53ba46(0x1f7)]=function(_0x38d578,_0x485beb){return _0x38d578+_0x485beb;},_0x54f7af[_0x53ba46(0x291)]='[Newman\x20Reporter]\x20Could\x20not\x20resolve\x20collection\x20file\x20path,\x20falling\x20back\x20to\x20collection.json',_0x54f7af[_0x53ba46(0x282)]=_0x53ba46(0x1cf);const _0x49ea2c=_0x54f7af;try{if(_0x305170&&_0x305170[_0x53ba46(0x25c)])return path['relative'](process[_0x53ba46(0x27e)](),path[_0x53ba46(0x213)](_0x305170[_0x53ba46(0x25c)]));const _0x21f4fb=_0x555f2e['collection'];if(_0x49ea2c[_0x53ba46(0x270)](typeof _0x21f4fb,_0x49ea2c[_0x53ba46(0x22b)]))return path[_0x53ba46(0x1cd)](process[_0x53ba46(0x27e)](),path[_0x53ba46(0x213)](_0x21f4fb));const _0x5029e9=process[_0x53ba46(0x1cc)][_0x53ba46(0x285)](_0x49ea2c[_0x53ba46(0x28a)]);if(_0x49ea2c[_0x53ba46(0x280)](_0x5029e9,-0x1)&&_0x49ea2c[_0x53ba46(0x246)](_0x49ea2c['GgxCk'](_0x5029e9,0x1),process['argv'][_0x53ba46(0x1c5)])){const _0x32fa04=process[_0x53ba46(0x1cc)][_0x49ea2c[_0x53ba46(0x1f7)](_0x5029e9,0x1)];if(_0x32fa04&&!_0x32fa04[_0x53ba46(0x1f2)]('-'))return path[_0x53ba46(0x1cd)](process[_0x53ba46(0x27e)](),path[_0x53ba46(0x213)](_0x32fa04));}}catch(_0x355489){}return logger['info'](_0x49ea2c[_0x53ba46(0x291)]),_0x49ea2c[_0x53ba46(0x282)];}function resolveCollectionName(_0xcf87f6){const _0xf65fa=a39_0x1c48f6,_0x41aab9={};_0x41aab9['DjcGE']=function(_0x3ade02,_0x4367a9){return _0x3ade02===_0x4367a9;},_0x41aab9['eftoc']=_0xf65fa(0x286);const _0x58d2db=_0x41aab9;try{const _0x3f20c1=_0xcf87f6[_0xf65fa(0x277)];if(_0x3f20c1&&_0x58d2db['DjcGE'](typeof _0x3f20c1,_0x58d2db[_0xf65fa(0x1ef)]))return _0x3f20c1['name']||_0x3f20c1[_0xf65fa(0x223)]&&_0x3f20c1[_0xf65fa(0x223)][_0xf65fa(0x229)]||null;}catch(_0x478004){}return null;}function emitTest(_0x5f28ba,_0x5bab8c,_0x563d3b,_0x438f64,_0x520960){const _0x2989c6=a39_0x1c48f6,_0x267cd8={'MsEWx':function(_0x29f8ff){return _0x29f8ff();},'dtejZ':_0x2989c6(0x230),'lHcCq':function(_0x2fc3c8,_0x792928){return _0x2fc3c8(_0x792928);},'kpdRU':_0x2989c6(0x1c9),'xrkkF':'javascript','kgjPb':function(_0x32bfce,_0x9edec7){return _0x32bfce!=_0x9edec7;},'cfpSB':function(_0x40aac1,_0x261e29){return _0x40aac1===_0x261e29;},'uFRRn':'TestRunStarted','lmUDm':_0x2989c6(0x226)};if(_0x267cd8[_0x2989c6(0x1f4)](isCLIRunning))try{const _0x13f228=BrowserstackCLI['getInstance']()['getTestFramework']();if(!_0x13f228)return;_0x13f228[_0x2989c6(0x1b6)](TestFrameworkState['TEST'],_0x5f28ba,{'test':{'uuid':_0x5bab8c['uuid'],'name':_0x5bab8c[_0x2989c6(0x229)],'scopes':_0x563d3b[_0x2989c6(0x205)],'scope':_0x563d3b[_0x2989c6(0x205)][_0x2989c6(0x271)]('\x20'),'file_path':_0x438f64,'location':_0x563d3b[_0x2989c6(0x288)],'started_at':_0x563d3b[_0x2989c6(0x272)],'finished_at':_0x520960[_0x2989c6(0x21a)]||null,'result':_0x520960[_0x2989c6(0x259)]||_0x267cd8[_0x2989c6(0x1dc)],'failure':_0x520960[_0x2989c6(0x25d)]||[],'failure_type':_0x520960['failureType']||null,'failure_reason':_0x520960[_0x2989c6(0x28d)]||null,'tags':[],'meta':{},'custom_metadata':{}}});}catch(_0x301358){_0x267cd8[_0x2989c6(0x1d6)](debug,_0x2989c6(0x267)+_0x301358);}else{const _0x510b15={'uuid':_0x5bab8c[_0x2989c6(0x25a)],'name':_0x5bab8c[_0x2989c6(0x229)],'framework':_0x267cd8[_0x2989c6(0x249)],'body':{'lang':_0x267cd8[_0x2989c6(0x1e0)],'code':null},'scope':_0x563d3b[_0x2989c6(0x205)][_0x2989c6(0x271)]('\x20'),'scopes':_0x563d3b[_0x2989c6(0x205)],'identifier':_0x5bab8c[_0x2989c6(0x1a5)],'file_name':_0x563d3b[_0x2989c6(0x288)],'vc_filepath':_0x563d3b[_0x2989c6(0x1ce)],'location':_0x563d3b[_0x2989c6(0x1ce)],'started_at':_0x563d3b[_0x2989c6(0x272)],'finished_at':_0x520960[_0x2989c6(0x21a)]||null,'duration_in_ms':_0x267cd8[_0x2989c6(0x21f)](_0x520960[_0x2989c6(0x24d)],null)?Math[_0x2989c6(0x274)](0x0,_0x520960['durationMs']):null,'result':_0x520960['result']||_0x267cd8[_0x2989c6(0x1dc)],'failure_reason':_0x520960[_0x2989c6(0x28d)]||null,'failure_type':_0x520960['failureType']||null,'failure':_0x520960['failure']||[],'retry_of':null,'hooks':[]};_0x510b15['failure'][0x0]&&(_0x510b15[_0x2989c6(0x228)]=_0x510b15[_0x2989c6(0x25d)][0x0][_0x2989c6(0x220)],_0x510b15['failure_reason_expanded']=_0x510b15['failure'][0x0]['expanded']);const _0xadd50f=_0x267cd8[_0x2989c6(0x1ad)](_0x5f28ba,HookState[_0x2989c6(0x231)])?_0x267cd8[_0x2989c6(0x211)]:_0x267cd8[_0x2989c6(0x1c1)],_0xffe447={};_0xffe447[_0x2989c6(0x1ba)]=_0xadd50f,_0xffe447[_0x2989c6(0x20c)]=_0x510b15,SessionHandler[_0x2989c6(0x201)](_0xffe447);}}function emitLog(_0x3b3793,_0x1dd0e8){const _0x1665e5=a39_0x1c48f6,_0x362b7f={'oYliG':_0x1665e5(0x245),'nuGop':function(_0x1e7170){return _0x1e7170();},'pECix':function(_0x4933d7,_0x188610){return _0x4933d7===_0x188610;},'MXJSn':_0x1665e5(0x210),'FQdvM':'newman','WfioC':'TEST','KmhoN':_0x1665e5(0x221),'pjtEa':function(_0x54ee37,_0x481c8f){return _0x54ee37(_0x481c8f);},'VTDjl':function(_0xf06d61,_0x2cc880){return _0xf06d61+_0x2cc880;},'McWtl':_0x1665e5(0x23c),'nKyXH':_0x1665e5(0x214)},_0x3aec32=_0x1dd0e8['kind']||_0x362b7f['oYliG'],_0x29ff7c=_0x1dd0e8[_0x1665e5(0x1e1)]||new Date()[_0x1665e5(0x244)]();if(_0x362b7f['nuGop'](isCLIRunning))try{const _0x21a1ed=_0x362b7f[_0x1665e5(0x216)](_0x3aec32,_0x362b7f[_0x1665e5(0x235)])?JSON[_0x1665e5(0x266)](_0x1dd0e8):_0x1dd0e8[_0x1665e5(0x1ab)]||'',_0x5b6513={};_0x5b6513[_0x1665e5(0x28c)]=0x0,_0x5b6513['testFrameworkName']=_0x362b7f[_0x1665e5(0x28b)],_0x5b6513['testFrameworkVersion']='',_0x5b6513[_0x1665e5(0x22a)]=_0x362b7f[_0x1665e5(0x1d8)],_0x5b6513['logs']=[{'uuid':_0x3b3793,'timestamp':_0x29ff7c,'kind':_0x3aec32,'level':_0x1dd0e8['level']||_0x362b7f[_0x1665e5(0x1b7)],'message':_0x21a1ed}],GrpcClient[_0x1665e5(0x253)]()[_0x1665e5(0x297)](_0x5b6513);}catch(_0xbad4b5){_0x362b7f[_0x1665e5(0x24a)](debug,_0x362b7f[_0x1665e5(0x287)](_0x362b7f[_0x1665e5(0x1e3)],_0xbad4b5));}else{const _0x1850e1={};_0x1850e1[_0x1665e5(0x257)]=_0x3b3793,_0x1850e1[_0x1665e5(0x1e1)]=_0x29ff7c,_0x1850e1['level']=_0x1dd0e8[_0x1665e5(0x22c)]||null,_0x1850e1[_0x1665e5(0x1ab)]=_0x1dd0e8['message']||null,_0x1850e1[_0x1665e5(0x292)]=_0x3aec32,_0x1850e1[_0x1665e5(0x217)]=_0x1dd0e8['http_response']||{};const _0x44ab3d={};_0x44ab3d[_0x1665e5(0x1ba)]=_0x362b7f['nKyXH'],_0x44ab3d[_0x1665e5(0x265)]=[_0x1850e1],SessionHandler['uploadEventData'](_0x44ab3d);}}function a39_0x2184(_0x46b333,_0x76ce21){const _0x4f184e=a39_0x4f18();return a39_0x2184=function(_0x2184db,_0x2e7e12){_0x2184db=_0x2184db-0x1a2;let _0x1f8105=_0x4f184e[_0x2184db];return _0x1f8105;},a39_0x2184(_0x46b333,_0x76ce21);}function BrowserStackNewmanReporter(_0x287369,_0x5a6b76,_0x20b3ac){const _0x543f05=a39_0x1c48f6,_0x2444bf={'NxFSf':function(_0x42de42,_0x5b8915,_0x232d1d){return _0x42de42(_0x5b8915,_0x232d1d);},'ahWqD':function(_0x1b0973,_0x26e285){return _0x1b0973(_0x26e285);},'jBHeW':function(_0x34f263,_0x2f54f1){return _0x34f263(_0x2f54f1);},'jdIMK':function(_0x4ba263,_0x358652){return _0x4ba263>_0x358652;},'cqPWR':function(_0x1a1267,_0x4790c4){return _0x1a1267(_0x4790c4);},'sfkLm':'http','eQLoa':function(_0xa51160,_0x544f7d){return _0xa51160+_0x544f7d;},'OFlwO':_0x543f05(0x238),'yzypw':function(_0x2ab6d6,_0x2ab30f){return _0x2ab6d6(_0x2ab30f);},'zWpiA':_0x543f05(0x245),'bQxHM':function(_0x137002){return _0x137002();},'VdShf':function(_0x4977ef,_0x36690c){return _0x4977ef||_0x36690c;},'DVhKP':function(_0x35b450,_0x288e3d,_0x17f68b,_0x290ddb,_0x468f72,_0x24d99b){return _0x35b450(_0x288e3d,_0x17f68b,_0x290ddb,_0x468f72,_0x24d99b);},'RTzib':function(_0x47ded0,_0x19adea){return _0x47ded0===_0x19adea;},'zzLlu':function(_0x50f1ee,_0x59f161){return _0x50f1ee>_0x59f161;},'hAEcl':function(_0xf9cfb7,_0x2eefc9,_0x5ec954){return _0xf9cfb7(_0x2eefc9,_0x5ec954);},'PXCVc':'HTTP','SfVbk':function(_0x3d376c,_0x2153e3){return _0x3d376c+_0x2153e3;},'InQJP':function(_0x58c919,_0x24c313){return _0x58c919+_0x24c313;},'fxQNw':function(_0x132e28,_0x1c09a2){return _0x132e28+_0x1c09a2;},'maRoV':function(_0x2612d2,_0x379bcf){return _0x2612d2+_0x379bcf;},'NYohi':_0x543f05(0x219),'hczKR':'ms)','fBOKd':function(_0x10c539,_0x326afc,_0x14b7ca){return _0x10c539(_0x326afc,_0x14b7ca);},'IOAtn':_0x543f05(0x221),'ctUEZ':function(_0x577ea9,_0x392c92){return _0x577ea9(_0x392c92);},'GRyks':function(_0x593d24,_0x5930d2){return _0x593d24-_0x5930d2;},'nLACS':function(_0x20d22d,_0x188630,_0x4ee34d){return _0x20d22d(_0x188630,_0x4ee34d);},'kOdBq':function(_0x1e65c8,_0x3db8ef){return _0x1e65c8&&_0x3db8ef;},'MBOCL':function(_0x3ff43e,_0x7c437b){return _0x3ff43e>_0x7c437b;},'UghIt':function(_0x4cc5e5,_0x511f0d){return _0x4cc5e5-_0x511f0d;},'utuGf':function(_0x430b28,_0x1ee4cb,_0x1fcb8d){return _0x430b28(_0x1ee4cb,_0x1fcb8d);},'IOyEq':_0x543f05(0x200),'tpiys':'ERROR','NTlaW':function(_0x3cdf10,_0x2f135b){return _0x3cdf10(_0x2f135b);},'NBtBq':function(_0x3fa9d6,_0xba6821){return _0x3fa9d6+_0xba6821;},'NmJYW':_0x543f05(0x290),'COPps':function(_0x39aab1,_0x39289a){return _0x39aab1-_0x39289a;},'uYuKJ':_0x543f05(0x1cb),'dzlOS':function(_0x48a9c6,_0x16bf53,_0x34edb0){return _0x48a9c6(_0x16bf53,_0x34edb0);},'Klsqp':function(_0x5eaa67,_0x4b4b9d){return _0x5eaa67+_0x4b4b9d;},'aTjEr':function(_0x1f9e5c,_0x59f7a9){return _0x1f9e5c+_0x59f7a9;},'gwpXN':_0x543f05(0x262),'YOcxN':'):\x20','LRZOw':function(_0x2cbb40,_0xddfda4){return _0x2cbb40+_0xddfda4;},'GWWqo':_0x543f05(0x1b4),'sSGHr':'failed','ASFYz':_0x543f05(0x1d9),'uJOJU':_0x543f05(0x263),'PCZoK':_0x543f05(0x248),'lMTGE':_0x543f05(0x20d),'LRckX':function(_0x1533a3,_0x4170c1,_0x40f865,_0x3f2681,_0x42789b,_0x37eadf){return _0x1533a3(_0x4170c1,_0x40f865,_0x3f2681,_0x42789b,_0x37eadf);},'JowOF':function(_0x523d67,_0x1a2d69){return _0x523d67>_0x1a2d69;},'nehrv':function(_0x356432){return _0x356432();},'uRKLh':function(_0x1b0ca8,_0x249a54){return _0x1b0ca8!=_0x249a54;},'JKXYI':function(_0x8979db,_0x4f4f2a){return _0x8979db>=_0x4f4f2a;},'vkJfv':function(_0x46997b,_0xac7667){return _0x46997b<_0xac7667;},'Oyvsp':_0x543f05(0x1f9),'ZnseW':_0x543f05(0x23f),'ZQJqr':function(_0x494063,_0x540d99,_0x5ee173,_0x342f5d,_0x509bf4,_0x3e5aff){return _0x494063(_0x540d99,_0x5ee173,_0x342f5d,_0x509bf4,_0x3e5aff);},'erueC':function(_0x4ce8e5,_0x53a1af){return _0x4ce8e5+_0x53a1af;},'HXekn':function(_0xb8f534,_0x508e9f){return _0xb8f534+_0x508e9f;},'lZzKN':function(_0x3304fe,_0x5d8d42){return _0x3304fe+_0x5d8d42;},'cyMtx':function(_0x18cef9,_0x35efa2){return _0x18cef9+_0x35efa2;},'mJgpr':function(_0x291966,_0x3484ba){return _0x291966+_0x3484ba;},'gHYOM':'HTTP\x20Status:\x20','wKcSI':_0x543f05(0x242),'FxgHv':function(_0x49fa1d,_0x320f95,_0x2da266,_0x563fad,_0x497f26,_0x2d2abf){return _0x49fa1d(_0x320f95,_0x2da266,_0x563fad,_0x497f26,_0x2d2abf);},'KVSjq':function(_0x5d0179,_0x3daa7a){return _0x5d0179(_0x3daa7a);},'iAyMp':_0x543f05(0x1ca),'pLvHf':_0x543f05(0x1f0),'prZGj':_0x543f05(0x225),'FMidT':'request','wMWmF':_0x543f05(0x22e),'aKxEU':_0x543f05(0x1ac),'fCtBs':'exception','jOqGt':'script','wyVYD':_0x543f05(0x1e9)},_0x3c4fb3=new Map();let _0x36240c=null,_0x378df9=0x0;const _0x38a3a6=_0x2444bf[_0x543f05(0x224)](resolveCollectionFile,_0x20b3ac,_0x5a6b76),_0x3adeaa=_0x2444bf[_0x543f05(0x23b)](resolveCollectionName,_0x20b3ac)||_0x38a3a6,_0x28db07=path['resolve'](_0x38a3a6),_0x57eb74=_0x543f05(0x1a9)+process[_0x543f05(0x1bf)],_0x477e62=_0x3d7ebf=>{const _0x16a3b4=_0x543f05;try{_0x36240c&&_0x2444bf[_0x16a3b4(0x1e6)](emitLog,_0x36240c,_0x3d7ebf);}catch(_0x3c23e2){_0x2444bf['ahWqD'](debug,'[Newman\x20Reporter]\x20Error\x20in\x20bs:addLog\x20handler:\x20'+_0x3c23e2);}};process['on'](_0x57eb74,_0x477e62),_0x287369['on'](_0x2444bf['iAyMp'],()=>{const _0x1acb30=_0x543f05;process[_0x1acb30(0x1d3)](_0x57eb74,_0x477e62),_0x3c4fb3[_0x1acb30(0x203)]();}),_0x287369['on'](_0x2444bf['pLvHf'],(_0x493819,_0x1ca2e4)=>{const _0x35c680=_0x543f05;_0x1ca2e4&&_0x1ca2e4[_0x35c680(0x1f5)]&&(_0x378df9=_0x1ca2e4[_0x35c680(0x1f5)][_0x35c680(0x1dd)]||0x0);}),_0x287369['on'](_0x2444bf[_0x543f05(0x296)],(_0x3fb19a,_0x32569)=>{const _0x43ccfd=_0x543f05;try{_0x36240c=null;const _0x12126c=_0x32569[_0x43ccfd(0x1e9)],_0x529c30=_0x12126c[_0x43ccfd(0x1df)]()?_0x2444bf[_0x43ccfd(0x1f8)](getParentTitles,_0x12126c[_0x43ccfd(0x1df)]()):[],_0x2c0944=_0x2444bf[_0x43ccfd(0x1fc)](_0x529c30['length'],0x1)?_0x529c30['slice'](0x1):_0x529c30,_0x26f264=_0x32569['cursor']&&_0x32569[_0x43ccfd(0x1f5)][_0x43ccfd(0x20e)],_0x1e6cdf={'itemName':_0x12126c[_0x43ccfd(0x229)],'scopes':_0x2c0944['concat']([_0x12126c['name']]),'location':_0x38a3a6,'collectionName':_0x3adeaa,'startedAt':new Date()[_0x43ccfd(0x244)](),'startTimestamp':Date[_0x43ccfd(0x215)](),'lastResponseCode':null,'httpLog':null,'assertions':[],'bufferedLogs':[]};_0x3c4fb3['set'](_0x12126c['id']+'_'+_0x378df9,_0x1e6cdf),_0x26f264&&_0x3c4fb3['set'](_0x26f264+'_'+_0x378df9,_0x1e6cdf);}catch(_0x12163b){_0x2444bf[_0x43ccfd(0x23b)](debug,_0x43ccfd(0x1bc)+_0x12163b);}}),_0x287369['on'](_0x2444bf[_0x543f05(0x1ea)],(_0x332755,_0x5ba9a7)=>{const _0x2f78dc=_0x543f05;try{if(!_0x5ba9a7||!_0x5ba9a7['item'])return;const _0x1be57c=_0x3c4fb3[_0x2f78dc(0x26c)](_0x5ba9a7[_0x2f78dc(0x1e9)]['id']+'_'+_0x378df9);if(!_0x1be57c)return;_0x5ba9a7['response']&&(_0x1be57c[_0x2f78dc(0x27c)]=_0x5ba9a7['response'][_0x2f78dc(0x1a4)]||null);if(!_0x5ba9a7[_0x2f78dc(0x1e7)])return;let _0x2d34c3='',_0x4a2dec='';if(_0x5ba9a7[_0x2f78dc(0x1e7)][_0x2f78dc(0x24e)])try{const _0x962e62=_0x5ba9a7['request'][_0x2f78dc(0x24e)]['toString'](),_0x510064=new URL(_0x962e62[_0x2f78dc(0x1f2)](_0x2444bf[_0x2f78dc(0x236)])?_0x962e62:_0x2f78dc(0x26d)+_0x962e62);_0x2d34c3=_0x510064[_0x2f78dc(0x1c7)],_0x4a2dec=_0x2444bf[_0x2f78dc(0x28f)](_0x510064[_0x2f78dc(0x239)],_0x510064['search']);}catch(_0x44e1d8){_0x4a2dec=_0x5ba9a7[_0x2f78dc(0x1e7)][_0x2f78dc(0x24e)][_0x2f78dc(0x222)]();}const _0x35bc17={};_0x35bc17[_0x2f78dc(0x1db)]=_0x2d34c3,_0x35bc17['path']=_0x4a2dec,_0x35bc17[_0x2f78dc(0x1f1)]=_0x5ba9a7[_0x2f78dc(0x1e7)][_0x2f78dc(0x1f1)]||_0x2444bf[_0x2f78dc(0x1a2)],_0x35bc17[_0x2f78dc(0x1fe)]={},_0x35bc17[_0x2f78dc(0x1b1)]=_0x5ba9a7[_0x2f78dc(0x256)]?_0x5ba9a7[_0x2f78dc(0x256)][_0x2f78dc(0x1a4)]||0x0:0x0,_0x35bc17['duration_ms']=_0x5ba9a7[_0x2f78dc(0x256)]?_0x5ba9a7[_0x2f78dc(0x256)][_0x2f78dc(0x20a)]||0x0:0x0,_0x1be57c[_0x2f78dc(0x295)]=_0x35bc17;}catch(_0x39ff86){_0x2444bf[_0x2f78dc(0x20f)](debug,'[Newman\x20Reporter]\x20Error\x20in\x20request:\x20'+_0x39ff86);}}),_0x287369['on'](_0x2444bf[_0x543f05(0x1e8)],(_0x4cff0b,_0xcc8dad)=>{const _0x244498=_0x543f05,_0x1b70af={'JKDuY':function(_0x1c3ce1,_0x2d114e,_0x31e1b2){return _0x2444bf['NxFSf'](_0x1c3ce1,_0x2d114e,_0x31e1b2);},'KyGBs':_0x2444bf[_0x244498(0x1fd)]};try{if(!_0xcc8dad||!_0xcc8dad[_0x244498(0x1e9)])return;const _0x52032f=_0x3c4fb3[_0x244498(0x26c)](_0xcc8dad[_0x244498(0x1e9)]['id']+'_'+_0x378df9);if(!_0x52032f)return;const _0x2b9228=_0xcc8dad[_0x244498(0x22e)]||_0x244498(0x275)+_0x2444bf['eQLoa'](_0x52032f[_0x244498(0x234)][_0x244498(0x1c5)],0x1),_0x436336=_0x2444bf[_0x244498(0x1c6)](uuidv4),_0x4bbcd9=_0x52032f['scopes'][_0x244498(0x1ed)]([_0x2b9228])[_0x244498(0x271)]('\x20');_0x52032f['assertions'][_0x244498(0x251)]({'uuid':_0x436336,'name':_0x2b9228,'identifier':_0x4bbcd9,'err':_0x2444bf[_0x244498(0x1ee)](_0x4cff0b,null)});const _0x372cc6={};_0x372cc6['uuid']=_0x436336,_0x372cc6[_0x244498(0x229)]=_0x2b9228,_0x372cc6['identifier']=_0x4bbcd9,_0x2444bf[_0x244498(0x21d)](emitTest,HookState[_0x244498(0x231)],_0x372cc6,_0x52032f,_0x28db07,{});_0x2444bf[_0x244498(0x284)](_0x52032f['assertions']['length'],0x1)&&_0x2444bf[_0x244498(0x269)](_0x52032f[_0x244498(0x264)][_0x244498(0x1c5)],0x0)&&(_0x52032f[_0x244498(0x264)][_0x244498(0x207)](_0x590a2c=>{const _0x33e079=_0x244498;_0x1b70af[_0x33e079(0x1d1)](emitLog,_0x436336,{'kind':_0x1b70af[_0x33e079(0x1f3)],'message':_0x590a2c[_0x33e079(0x1ab)],'level':_0x590a2c[_0x33e079(0x22c)]});}),_0x52032f[_0x244498(0x264)]=[]);if(_0x52032f['httpLog']){_0x2444bf[_0x244498(0x1b5)](emitLog,_0x436336,{'kind':_0x2444bf['PXCVc'],'http_response':_0x52032f[_0x244498(0x295)]});const _0xdec252=_0x2444bf[_0x244498(0x27f)](_0x2444bf[_0x244498(0x268)](_0x2444bf['eQLoa'](_0x2444bf[_0x244498(0x1b9)](_0x2444bf[_0x244498(0x247)](_0x2444bf[_0x244498(0x1b9)](_0x2444bf[_0x244498(0x28f)](_0x2444bf[_0x244498(0x1b9)](_0x52032f['httpLog'][_0x244498(0x1f1)]||_0x2444bf[_0x244498(0x1a2)],'\x20'),_0x52032f[_0x244498(0x295)][_0x244498(0x1db)]),_0x52032f[_0x244498(0x295)][_0x244498(0x1d5)]),_0x2444bf[_0x244498(0x25f)]),_0x52032f[_0x244498(0x295)][_0x244498(0x1b1)]),'\x20('),_0x52032f[_0x244498(0x295)]['duration_ms']),_0x2444bf[_0x244498(0x25b)]);_0x2444bf[_0x244498(0x26f)](emitLog,_0x436336,{'kind':_0x2444bf['zWpiA'],'message':_0xdec252,'level':_0x2444bf[_0x244498(0x1bb)]});}_0x36240c=_0x436336;}catch(_0x3b5595){_0x2444bf[_0x244498(0x1b0)](debug,_0x244498(0x24c)+_0x3b5595);}}),_0x287369['on'](_0x2444bf[_0x543f05(0x233)],(_0x32e6f1,_0x5e5639)=>{const _0x7579fe=_0x543f05;try{if(!_0x5e5639)return;let _0x53dbaf=_0x36240c;if(!_0x53dbaf&&_0x5e5639[_0x7579fe(0x1f5)]&&_0x5e5639[_0x7579fe(0x1f5)]['ref']){const _0x1c917e=_0x3c4fb3['get'](_0x5e5639[_0x7579fe(0x1f5)][_0x7579fe(0x20e)]+'_'+_0x378df9);_0x1c917e&&_0x2444bf[_0x7579fe(0x1fc)](_0x1c917e[_0x7579fe(0x234)][_0x7579fe(0x1c5)],0x0)&&(_0x53dbaf=_0x1c917e[_0x7579fe(0x234)][_0x2444bf[_0x7579fe(0x260)](_0x1c917e['assertions'][_0x7579fe(0x1c5)],0x1)][_0x7579fe(0x25a)]);}const _0x2e019d=_0x5e5639[_0x7579fe(0x27a)]?_0x5e5639[_0x7579fe(0x27a)][_0x7579fe(0x271)](',\x20'):'';if(_0x53dbaf)_0x2444bf[_0x7579fe(0x224)](emitLog,_0x53dbaf,{'kind':_0x2444bf[_0x7579fe(0x1fd)],'message':_0x2e019d,'level':_0x2444bf[_0x7579fe(0x1b0)](normalizeLogLevel,_0x5e5639[_0x7579fe(0x22c)])});else{if(_0x5e5639[_0x7579fe(0x1f5)]&&_0x5e5639[_0x7579fe(0x1f5)][_0x7579fe(0x20e)]){const _0x4ffb66=_0x3c4fb3[_0x7579fe(0x26c)](_0x5e5639[_0x7579fe(0x1f5)][_0x7579fe(0x20e)]+'_'+_0x378df9);_0x4ffb66&&_0x4ffb66[_0x7579fe(0x264)][_0x7579fe(0x251)]({'timestamp':new Date()[_0x7579fe(0x244)](),'level':_0x2444bf[_0x7579fe(0x20f)](normalizeLogLevel,_0x5e5639[_0x7579fe(0x22c)]),'message':_0x2e019d});}}}catch(_0x38d7ae){_0x2444bf['ctUEZ'](debug,_0x7579fe(0x25e)+_0x38d7ae);}}),_0x287369['on'](_0x2444bf[_0x543f05(0x1a6)],(_0x30c3ef,_0x5f556a)=>{const _0x491b61=_0x543f05;try{if(!_0x30c3ef&&(!_0x5f556a||!_0x5f556a[_0x491b61(0x1fa)]))return;const _0x3e33c1=_0x30c3ef||_0x5f556a[_0x491b61(0x1fa)],_0x22260f=_0x3e33c1[_0x491b61(0x1ab)]||_0x2444bf[_0x491b61(0x23b)](String,_0x3e33c1),_0x4ccf7a=_0x3e33c1[_0x491b61(0x283)]||_0x22260f;let _0xc03e0e=_0x36240c;if(_0x2444bf['kOdBq'](!_0xc03e0e,_0x5f556a)&&_0x5f556a[_0x491b61(0x1f5)]&&_0x5f556a[_0x491b61(0x1f5)][_0x491b61(0x20e)]){const _0x39dd5a=_0x3c4fb3['get'](_0x5f556a['cursor'][_0x491b61(0x20e)]+'_'+_0x378df9);_0x39dd5a&&_0x2444bf[_0x491b61(0x1c2)](_0x39dd5a['assertions'][_0x491b61(0x1c5)],0x0)&&(_0xc03e0e=_0x39dd5a[_0x491b61(0x234)][_0x2444bf[_0x491b61(0x26a)](_0x39dd5a['assertions']['length'],0x1)]['uuid']);}_0xc03e0e&&_0x2444bf[_0x491b61(0x21b)](emitLog,_0xc03e0e,{'kind':_0x2444bf[_0x491b61(0x1fd)],'message':_0x2444bf[_0x491b61(0x247)](_0x2444bf[_0x491b61(0x208)],_0x4ccf7a),'level':_0x2444bf['tpiys']});}catch(_0xd1caf2){_0x2444bf[_0x491b61(0x1a3)](debug,_0x2444bf[_0x491b61(0x1be)](_0x2444bf[_0x491b61(0x1b8)],_0xd1caf2));}}),_0x287369['on'](_0x2444bf[_0x543f05(0x1aa)],(_0x57562a,_0x3fbc0c)=>{const _0x1b0d51=_0x543f05;try{if(!_0x3fbc0c||!_0x3fbc0c['execution'])return;let _0x36413a=_0x36240c;if(!_0x36413a&&_0x3fbc0c[_0x1b0d51(0x1f5)]&&_0x3fbc0c[_0x1b0d51(0x1f5)][_0x1b0d51(0x20e)]){const _0x4e2d03=_0x3c4fb3[_0x1b0d51(0x26c)](_0x3fbc0c['cursor'][_0x1b0d51(0x20e)]+'_'+_0x378df9);_0x4e2d03&&_0x2444bf[_0x1b0d51(0x1fc)](_0x4e2d03['assertions'][_0x1b0d51(0x1c5)],0x0)&&(_0x36413a=_0x4e2d03[_0x1b0d51(0x234)][_0x2444bf[_0x1b0d51(0x1b2)](_0x4e2d03[_0x1b0d51(0x234)][_0x1b0d51(0x1c5)],0x1)][_0x1b0d51(0x25a)]);}if(!_0x36413a)return;const _0x9f69ab=_0x3fbc0c[_0x1b0d51(0x227)]&&_0x3fbc0c['event']['listen']||_0x2444bf[_0x1b0d51(0x27d)];_0x57562a&&_0x2444bf[_0x1b0d51(0x24b)](emitLog,_0x36413a,{'kind':_0x2444bf[_0x1b0d51(0x1fd)],'message':_0x2444bf['maRoV'](_0x2444bf[_0x1b0d51(0x1c0)](_0x2444bf['aTjEr'](_0x2444bf[_0x1b0d51(0x28e)],_0x9f69ab),_0x2444bf['YOcxN']),_0x57562a[_0x1b0d51(0x1ab)]||_0x57562a),'level':_0x2444bf[_0x1b0d51(0x27b)]});}catch(_0x14a1ee){_0x2444bf[_0x1b0d51(0x1f8)](debug,_0x2444bf[_0x1b0d51(0x252)](_0x2444bf['GWWqo'],_0x14a1ee));}}),_0x287369['on'](_0x2444bf[_0x543f05(0x289)],(_0x11bd11,_0xb8b060)=>{const _0x711c22=_0x543f05,_0x490bd5={'HGYrJ':function(_0x765aae,_0xccb68e,_0x5d0b6e){const _0x26f0d2=a39_0x2184;return _0x2444bf[_0x26f0d2(0x224)](_0x765aae,_0xccb68e,_0x5d0b6e);},'zdMeg':_0x2444bf[_0x711c22(0x1fd)]};try{if(!_0xb8b060||!_0xb8b060[_0x711c22(0x1e9)])return;const _0x4ea3cd=_0xb8b060[_0x711c22(0x1e9)]['id']+'_'+_0x378df9,_0x491434=_0x3c4fb3['get'](_0x4ea3cd);if(!_0x491434)return;const _0x148701=new Date(),_0x10d438=_0x2444bf[_0x711c22(0x260)](_0x148701[_0x711c22(0x1fb)](),_0x491434['startTimestamp']);if(_0x2444bf['JowOF'](_0x491434['assertions'][_0x711c22(0x1c5)],0x0))_0x491434[_0x711c22(0x234)][_0x711c22(0x207)](_0x516387=>{const _0x4c05b0=_0x711c22,_0x253b66=!!_0x516387[_0x4c05b0(0x241)],_0x18a90d={'finishedAt':_0x148701[_0x4c05b0(0x244)](),'durationMs':_0x10d438,'result':_0x253b66?_0x2444bf[_0x4c05b0(0x1bd)]:_0x2444bf['ASFYz']};_0x253b66&&(_0x18a90d[_0x4c05b0(0x28d)]=_0x516387[_0x4c05b0(0x241)][_0x4c05b0(0x1ab)]||'',_0x18a90d[_0x4c05b0(0x26b)]=_0x2444bf[_0x4c05b0(0x284)](_0x516387[_0x4c05b0(0x241)][_0x4c05b0(0x229)],_0x2444bf[_0x4c05b0(0x206)])||_0x516387[_0x4c05b0(0x241)]['message']&&_0x516387[_0x4c05b0(0x241)][_0x4c05b0(0x1ab)][_0x4c05b0(0x1e2)](_0x2444bf[_0x4c05b0(0x293)])?_0x2444bf[_0x4c05b0(0x206)]:_0x2444bf[_0x4c05b0(0x1ae)],_0x18a90d['failure']=[{'backtrace':_0x516387[_0x4c05b0(0x241)][_0x4c05b0(0x283)]?_0x516387['err'][_0x4c05b0(0x283)]['split']('\x0a'):[_0x516387['err'][_0x4c05b0(0x1ab)]||''],'expanded':[]}]),_0x2444bf[_0x4c05b0(0x273)](emitTest,HookState[_0x4c05b0(0x23e)],_0x516387,_0x491434,_0x28db07,_0x18a90d);});else{const _0x1e7993=_0x2444bf['nehrv'](uuidv4),_0x51af0c=_0x491434[_0x711c22(0x27c)],_0x7c1630=_0x2444bf['uRKLh'](_0x51af0c,null)&&_0x2444bf['JKXYI'](_0x51af0c,0xc8)&&_0x2444bf['vkJfv'](_0x51af0c,0x190),_0x574079=_0x491434[_0x711c22(0x1f6)]+_0x711c22(0x1de)+_0x2444bf[_0x711c22(0x1ee)](_0x51af0c,_0x2444bf[_0x711c22(0x1c8)])+')',_0x468e8c={'uuid':_0x1e7993,'name':_0x574079,'identifier':_0x491434[_0x711c22(0x205)][_0x711c22(0x1ed)]([_0x574079])[_0x711c22(0x271)]('\x20')},_0x333164={'finishedAt':_0x148701[_0x711c22(0x244)](),'durationMs':_0x10d438,'result':_0x7c1630?_0x2444bf[_0x711c22(0x1ec)]:_0x2444bf[_0x711c22(0x1bd)]};!_0x7c1630&&(_0x333164[_0x711c22(0x28d)]=_0x2444bf[_0x711c22(0x1eb)](_0x51af0c,null)?'HTTP\x20'+_0x51af0c+_0x711c22(0x243):_0x2444bf['ZnseW'],_0x333164[_0x711c22(0x26b)]=_0x2444bf[_0x711c22(0x1ae)],_0x333164[_0x711c22(0x25d)]=[{'backtrace':[_0x333164[_0x711c22(0x28d)]],'expanded':[]}]);_0x2444bf[_0x711c22(0x1da)](emitTest,HookState[_0x711c22(0x231)],_0x468e8c,_0x491434,_0x28db07,{}),_0x491434[_0x711c22(0x264)][_0x711c22(0x207)](_0x5c48a1=>{const _0x389210=_0x711c22;_0x490bd5[_0x389210(0x1d0)](emitLog,_0x1e7993,{'kind':_0x490bd5[_0x389210(0x1a7)],'message':_0x5c48a1[_0x389210(0x1ab)],'level':_0x5c48a1[_0x389210(0x22c)]});});if(_0x491434[_0x711c22(0x295)]){_0x2444bf[_0x711c22(0x21b)](emitLog,_0x1e7993,{'kind':_0x2444bf[_0x711c22(0x1af)],'http_response':_0x491434[_0x711c22(0x295)]});const _0xca1f57=_0x2444bf['SfVbk'](_0x2444bf[_0x711c22(0x1c3)](_0x2444bf[_0x711c22(0x240)](_0x2444bf['NBtBq'](_0x2444bf[_0x711c22(0x1be)](_0x2444bf[_0x711c22(0x23a)](_0x2444bf[_0x711c22(0x24f)](_0x2444bf['Klsqp'](_0x491434[_0x711c22(0x295)][_0x711c22(0x1f1)]||_0x2444bf[_0x711c22(0x1a2)],'\x20'),_0x491434['httpLog']['host']),_0x491434[_0x711c22(0x295)]['path']),_0x2444bf[_0x711c22(0x25f)]),_0x491434[_0x711c22(0x295)][_0x711c22(0x1b1)]),'\x20('),_0x491434[_0x711c22(0x295)][_0x711c22(0x255)]),_0x2444bf['hczKR']);_0x2444bf[_0x711c22(0x224)](emitLog,_0x1e7993,{'kind':_0x2444bf[_0x711c22(0x1fd)],'message':_0xca1f57,'level':_0x2444bf[_0x711c22(0x1bb)]});}else _0x2444bf[_0x711c22(0x24b)](emitLog,_0x1e7993,{'kind':_0x2444bf[_0x711c22(0x1fd)],'message':_0x2444bf[_0x711c22(0x1d7)](_0x2444bf['mJgpr'](_0x2444bf[_0x711c22(0x232)],_0x2444bf['VdShf'](_0x51af0c,_0x2444bf[_0x711c22(0x1c8)])),_0x2444bf['wKcSI']),'level':_0x2444bf[_0x711c22(0x1bb)]});_0x2444bf[_0x711c22(0x1d4)](emitTest,HookState[_0x711c22(0x23e)],_0x468e8c,_0x491434,_0x28db07,_0x333164);}_0x3c4fb3[_0x711c22(0x26e)](_0x4ea3cd),_0xb8b060[_0x711c22(0x1f5)]&&_0xb8b060['cursor'][_0x711c22(0x20e)]&&_0x3c4fb3[_0x711c22(0x26e)](_0xb8b060[_0x711c22(0x1f5)]['ref']+'_'+_0x378df9);}catch(_0x56c573){_0x2444bf['KVSjq'](debug,_0x711c22(0x209)+_0x56c573);}});}module[a39_0x1c48f6(0x1e5)]=BrowserStackNewmanReporter;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function
|
|
2
|
+
'use strict';const a40_0x421a09=a40_0xa84d;function a40_0x1a53(){const _0x3847cd=['concat','run','307271lKiVvi','vluPo','beforeExit','reporter','56428sEtvKm','cli','BEatH','newman','eGmbA','jvFEd','LGpZV','TSHLS','stderr','_load','collection','CZQVF','collectionPath','6250326gtPIVQ','7YbiGax','assign','vSOGJ','exitCode','10kialfX','resolve','length','889162IlXbXB','newman-reporter-browserstack','module','string','../v2/browserstackCLI','1192872dOufnX','dRVgX','bootstrap','indexOf','reporters','rLvAe','call','auDUh','IrEQt','write','[Newman]\x20scriptRunner:\x20failed\x20to\x20load\x20script:\x20','tdcMz','VoxFG','p-limit','izhIR','NEvhd','DLotY','110QCCHbA','getInstance','argv','exit','browserstack','2497056ddaYBO','2794887pXVBls','path','bKVyB','JgbNb','bGynB','[Newman]\x20scriptRunner:\x20no\x20script\x20file\x20provided\x0a','create'];a40_0x1a53=function(){return _0x3847cd;};return a40_0x1a53();}(function(_0x1a8a62,_0x292985){const _0x2b24ee=a40_0xa84d,_0x5693fd=_0x1a8a62();while(!![]){try{const _0x35df41=parseInt(_0x2b24ee(0x159))/0x1+-parseInt(_0x2b24ee(0x134))/0x2+-parseInt(_0x2b24ee(0x14f))/0x3+-parseInt(_0x2b24ee(0x11f))/0x4*(-parseInt(_0x2b24ee(0x14a))/0x5)+parseInt(_0x2b24ee(0x12c))/0x6+-parseInt(_0x2b24ee(0x12d))/0x7*(parseInt(_0x2b24ee(0x139))/0x8)+parseInt(_0x2b24ee(0x150))/0x9*(parseInt(_0x2b24ee(0x131))/0xa);if(_0x35df41===_0x292985)break;else _0x5693fd['push'](_0x5693fd['shift']());}catch(_0x12d9f7){_0x5693fd['push'](_0x5693fd['shift']());}}}(a40_0x1a53,0x84c67));const path=require(a40_0x421a09(0x151)),Module=require(a40_0x421a09(0x136)),BrowserstackCLI=require(a40_0x421a09(0x138)),scriptFile=process[a40_0x421a09(0x14c)][0x2],maxParallel=parseInt(process[a40_0x421a09(0x14c)][0x3])||0x0;!scriptFile&&(process[a40_0x421a09(0x127)][a40_0x421a09(0x142)](a40_0x421a09(0x155)),process['exit'](0x1));const reporterPath=path['join'](__dirname,a40_0x421a09(0x11e),'index.js'),originalResolveFilename=Module['_resolveFilename'];Module['_resolveFilename']=function(_0x3418cd,_0x3db36b,_0x4b7fee,_0x4b95a5){const _0x2d770=a40_0x421a09,_0x5c52aa={};_0x5c52aa[_0x2d770(0x13e)]=function(_0x5ba1ef,_0x1f2040){return _0x5ba1ef===_0x1f2040;},_0x5c52aa[_0x2d770(0x149)]=_0x2d770(0x135);const _0xa99845=_0x5c52aa;if(_0xa99845[_0x2d770(0x13e)](_0x3418cd,_0xa99845[_0x2d770(0x149)]))return reporterPath;return originalResolveFilename[_0x2d770(0x13f)](this,_0x3418cd,_0x3db36b,_0x4b7fee,_0x4b95a5);};let limit;try{const pLimit=require(a40_0x421a09(0x146)),concurrency=maxParallel&&maxParallel>0x0?maxParallel:Infinity;limit=pLimit(concurrency);}catch(a40_0x375ff3){limit=function(_0x4ce068){const _0x4e3b01=a40_0x421a09,_0x58d55e={'BEatH':function(_0x2cd0d4){return _0x2cd0d4();}};return _0x58d55e[_0x4e3b01(0x121)](_0x4ce068);};}let wrappedNewman=null,hasFailure=![];const originalLoad=Module[a40_0x421a09(0x128)];Module[a40_0x421a09(0x128)]=function(_0x16418d,_0x3cc449,_0xebe373){const _0x354bcb=a40_0x421a09,_0x39066a={'vSOGJ':function(_0x2b9ac8,_0x5d40c0){return _0x2b9ac8>_0x5d40c0;},'GcKpy':function(_0x5b75d3,_0x4e53c9){return _0x5b75d3||_0x4e53c9;},'vluPo':function(_0x2e9094,_0x45fb6b,_0x2eef59){return _0x2e9094(_0x45fb6b,_0x2eef59);},'dRVgX':function(_0x22ec94,_0x55976c){return _0x22ec94(_0x55976c);},'JgbNb':_0x354bcb(0x120),'NEvhd':function(_0x5e0977,_0x341b3e){return _0x5e0977===_0x341b3e;},'TSHLS':_0x354bcb(0x14e),'bKVyB':function(_0x1e9c5c,_0x5a45d5){return _0x1e9c5c===_0x5a45d5;},'auDUh':_0x354bcb(0x137),'eGmbA':function(_0x44cada,_0x2507a7){return _0x44cada(_0x2507a7);},'tdcMz':function(_0x37c06a,_0x2b00f8){return _0x37c06a!==_0x2b00f8;},'izhIR':_0x354bcb(0x122)},_0x144515=originalLoad[_0x354bcb(0x13f)](this,_0x16418d,_0x3cc449,_0xebe373);if(_0x39066a[_0x354bcb(0x144)](_0x16418d,_0x39066a[_0x354bcb(0x147)]))return _0x144515;if(wrappedNewman)return wrappedNewman;const _0x1d7081=_0x144515['run']['bind'](_0x144515);return wrappedNewman=Object[_0x354bcb(0x156)](_0x144515),wrappedNewman[_0x354bcb(0x158)]=function(_0x1c2ee5,_0x4b2ed7){const _0x17f3b1=_0x354bcb,_0x440b45={'jvFEd':function(_0x59d9d1,_0x1c113e,_0x572547){const _0x5ce4bd=a40_0xa84d;return _0x39066a[_0x5ce4bd(0x11c)](_0x59d9d1,_0x1c113e,_0x572547);}};let _0x371362=_0x1c2ee5[_0x17f3b1(0x13d)]||[_0x39066a[_0x17f3b1(0x153)]];_0x39066a[_0x17f3b1(0x148)](_0x371362[_0x17f3b1(0x13c)](_0x39066a[_0x17f3b1(0x126)]),-0x1)&&(_0x371362=_0x371362[_0x17f3b1(0x157)]([_0x39066a[_0x17f3b1(0x126)]]));const _0x14f1e7=_0x39066a[_0x17f3b1(0x152)](typeof _0x1c2ee5[_0x17f3b1(0x129)],_0x39066a[_0x17f3b1(0x140)])?_0x1c2ee5[_0x17f3b1(0x129)]:undefined,_0x1dd803={};_0x1dd803[_0x17f3b1(0x12b)]=_0x14f1e7;const _0x1a39f6=Object['assign']({},_0x1c2ee5['reporter'],{'browserstack':Object[_0x17f3b1(0x12e)]({},_0x1c2ee5[_0x17f3b1(0x11e)]&&_0x1c2ee5[_0x17f3b1(0x11e)][_0x17f3b1(0x14e)],_0x1dd803)}),_0x483a76={};return _0x483a76[_0x17f3b1(0x13d)]=_0x371362,_0x483a76[_0x17f3b1(0x11e)]=_0x1a39f6,_0x1c2ee5=Object[_0x17f3b1(0x12e)]({},_0x1c2ee5,_0x483a76),_0x39066a[_0x17f3b1(0x123)](limit,function(){const _0x379398={'LGpZV':function(_0x2486f2,_0x25168d){const _0x20fe59=a40_0xa84d;return _0x39066a[_0x20fe59(0x12f)](_0x2486f2,_0x25168d);},'QYGuz':function(_0x3dc3d2,_0x57aef5){return _0x39066a['GcKpy'](_0x3dc3d2,_0x57aef5);},'VoxFG':function(_0x1f859,_0x5da2ef,_0x26e7b6){const _0x2fecda=a40_0xa84d;return _0x39066a[_0x2fecda(0x11c)](_0x1f859,_0x5da2ef,_0x26e7b6);},'YCYTd':function(_0x25fa19,_0x231212){const _0x3a0316=a40_0xa84d;return _0x39066a[_0x3a0316(0x13a)](_0x25fa19,_0x231212);}};return new Promise(function(_0x639385){const _0x41b4df=a40_0xa84d;_0x440b45[_0x41b4df(0x124)](_0x1d7081,_0x1c2ee5,function(_0x4a2ed6,_0x4e3218){const _0x30d8b8=_0x41b4df,_0x542ab5=_0x4e3218&&_0x4e3218[_0x30d8b8(0x158)]&&(_0x4e3218[_0x30d8b8(0x158)]['error']||_0x4e3218[_0x30d8b8(0x158)]['failures']&&_0x379398[_0x30d8b8(0x125)](_0x4e3218[_0x30d8b8(0x158)]['failures'][_0x30d8b8(0x133)],0x0));_0x379398['QYGuz'](_0x542ab5,_0x4a2ed6)&&(hasFailure=!![]),_0x4b2ed7&&_0x379398[_0x30d8b8(0x145)](_0x4b2ed7,_0x4a2ed6,_0x4e3218),_0x379398['YCYTd'](_0x639385,_0x4e3218);});});});},wrappedNewman;};async function main(){const _0x3b6b1e=a40_0x421a09,_0x4980f4={'IrEQt':function(_0x4b17b4,_0x21c610){return _0x4b17b4(_0x21c610);},'CZQVF':function(_0x4f3189,_0xe1d7e){return _0x4f3189+_0xe1d7e;},'ffvXj':function(_0x223646,_0x4d3897){return _0x223646+_0x4d3897;},'ImTMG':_0x3b6b1e(0x143)};try{await BrowserstackCLI[_0x3b6b1e(0x14b)]()[_0x3b6b1e(0x13b)]();}catch(_0x919c6f){}try{_0x4980f4[_0x3b6b1e(0x141)](require,path[_0x3b6b1e(0x132)](scriptFile));}catch(_0x5e3aa2){process[_0x3b6b1e(0x127)]['write'](_0x4980f4[_0x3b6b1e(0x12a)](_0x4980f4['ffvXj'](_0x4980f4['ImTMG'],_0x5e3aa2['message']||_0x5e3aa2),'\x0a')),process[_0x3b6b1e(0x130)]=0x1;}}function a40_0xa84d(_0x574435,_0x2e37ee){const _0x1a53a0=a40_0x1a53();return a40_0xa84d=function(_0xa84d08,_0x19dc2a){_0xa84d08=_0xa84d08-0x11c;let _0x223c7c=_0x1a53a0[_0xa84d08];return _0x223c7c;},a40_0xa84d(_0x574435,_0x2e37ee);}main(),process['on'](a40_0x421a09(0x11d),function(){const _0x47a3b0=a40_0x421a09;hasFailure&&(process[_0x47a3b0(0x130)]=0x1);}),process['on'](a40_0x421a09(0x14d),function(){const _0x129fe4=a40_0x421a09,_0x19f59e={};_0x19f59e[_0x129fe4(0x154)]=function(_0x2580eb,_0x2976f1){return _0x2580eb===_0x2976f1;};const _0x241742=_0x19f59e;hasFailure&&_0x241742['bGynB'](process[_0x129fe4(0x130)],0x0)&&(process['exitCode']=0x1);});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function
|
|
2
|
+
'use strict';function a41_0x4841(_0x1945cc,_0xe69a5c){const _0x39c316=a41_0x39c3();return a41_0x4841=function(_0x484145,_0x877120){_0x484145=_0x484145-0x111;let _0x471e4b=_0x39c316[_0x484145];return _0x471e4b;},a41_0x4841(_0x1945cc,_0xe69a5c);}const a41_0x45549b=a41_0x4841;(function(_0x1ef0d0,_0x44540e){const _0x19c983=a41_0x4841,_0x4c773c=_0x1ef0d0();while(!![]){try{const _0x4811aa=parseInt(_0x19c983(0x15f))/0x1*(-parseInt(_0x19c983(0x156))/0x2)+-parseInt(_0x19c983(0x129))/0x3+-parseInt(_0x19c983(0x125))/0x4+-parseInt(_0x19c983(0x113))/0x5+-parseInt(_0x19c983(0x11c))/0x6*(-parseInt(_0x19c983(0x144))/0x7)+-parseInt(_0x19c983(0x146))/0x8+parseInt(_0x19c983(0x13b))/0x9*(parseInt(_0x19c983(0x145))/0xa);if(_0x4811aa===_0x44540e)break;else _0x4c773c['push'](_0x4c773c['shift']());}catch(_0x42bf6c){_0x4c773c['push'](_0x4c773c['shift']());}}}(a41_0x39c3,0x7cccf));const fs=require('fs'),path=require(a41_0x45549b(0x15a)),{spawn}=require(a41_0x45549b(0x147)),logger=require(a41_0x45549b(0x13e))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),constants=require(a41_0x45549b(0x114)),getUserNightwatchConfigs=(_0x395e3b,_0xf3e19a)=>{const _0x22ab4c=a41_0x45549b,_0x19931e={'WdWcY':'nightwatch.conf.js','gCJrb':_0x22ab4c(0x155),'JMlhl':function(_0x5a3da6,_0x41e3e3){return _0x5a3da6(_0x41e3e3);},'onCgu':_0x22ab4c(0x111)};let _0x295a46=null,_0x501a71={};const _0xbb60e=_0xf3e19a[_0x22ab4c(0x126)](_0x87f117=>_0x87f117===_0x22ab4c(0x122));if(!helper[_0x22ab4c(0x140)](_0x395e3b[_0x22ab4c(0x12d)])&&fs[_0x22ab4c(0x11e)](path[_0x22ab4c(0x151)](process[_0x22ab4c(0x15c)](),_0x395e3b[_0x22ab4c(0x12d)])))_0x295a46=path[_0x22ab4c(0x151)](process[_0x22ab4c(0x15c)](),_0x395e3b[_0x22ab4c(0x12d)]),_0xf3e19a[_0x22ab4c(0x148)](_0xbb60e,0x2);else{if(fs[_0x22ab4c(0x11e)](path[_0x22ab4c(0x151)](process[_0x22ab4c(0x15c)](),_0x19931e[_0x22ab4c(0x12b)])))_0x295a46=path['join'](process[_0x22ab4c(0x15c)](),_0x19931e[_0x22ab4c(0x12b)]);else fs[_0x22ab4c(0x11e)](path['join'](process[_0x22ab4c(0x15c)](),_0x19931e[_0x22ab4c(0x14c)]))&&(_0x295a46=path['join'](process[_0x22ab4c(0x15c)](),_0x19931e[_0x22ab4c(0x14c)]));}return _0x295a46?(logger[_0x22ab4c(0x115)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x295a46),_0x501a71=_0x19931e['JMlhl'](require,_0x295a46)):logger[_0x22ab4c(0x115)](_0x19931e[_0x22ab4c(0x14b)]),_0x501a71;},removeExistingEnvs=_0x5b2028=>{const _0x4871b7=a41_0x45549b,_0x4a4d4e={};_0x4a4d4e[_0x4871b7(0x124)]=function(_0x3a8c40,_0x783ea9){return _0x3a8c40>_0x783ea9;},_0x4a4d4e['KkJzy']=function(_0x5b18c3,_0x5c8e2f){return _0x5b18c3>_0x5c8e2f;};const _0x374630=_0x4a4d4e;let _0x1cb95a=_0x5b2028[_0x4871b7(0x126)](_0x2c8a95=>_0x2c8a95===_0x4871b7(0x159));_0x374630[_0x4871b7(0x124)](_0x1cb95a,-0x1)&&_0x5b2028[_0x4871b7(0x148)](_0x1cb95a,0x2),_0x1cb95a=_0x5b2028[_0x4871b7(0x126)](_0x1b6de0=>_0x1b6de0==='-e'),_0x374630[_0x4871b7(0x154)](_0x1cb95a,-0x1)&&_0x5b2028[_0x4871b7(0x148)](_0x1cb95a,0x2);};function a41_0x39c3(){const _0x36ffb4=['15498234zuMkIj','host','stringify','../../helpers/logger','oTHix','isUndefined','HRBNs','mergeDeep','nightwatch.cmd','2384081WqlHGm','10EDmQCA','1807352owvuIN','child_process','splice','length','child\x20process\x20exited\x20with\x20code\x20','onCgu','gCJrb','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','close','port','start_process','join','inherit','VjSqX','KkJzy','nightwatch.json','6leduQq','getPlatformName','push','--env','path','bFETh','cwd','map','debug','72221MCSLyR','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','DwzcG','291500DrqMjR','../utils/constants','info','ORnJA','now','GFHbC','Deleting\x20','exports','nightwatch-browserstack.json','6VbBbIl','filter','existsSync','hub.browserstack.com','PEQQd','split','--config','useW3C','sxToS','1093692ynoRvf','findIndex','unlinkSync','platforms','2331363oVzaqB','WHFic','WdWcY','nightwatch','config','test_settings','bJnEp','webdriver','env','trim','abooU','slice','modifyBrowserStackW3CCaps','modifyBrowserStackCaps','WmgDf','forEach','desiredCapabilities','test'];a41_0x39c3=function(){return _0x36ffb4;};return a41_0x39c3();}function run(_0x4c8496,_0x1fbc2f,_0x1202f1){const _0x37513a=a41_0x45549b,_0x120b01={'oTHix':_0x37513a(0x12c),'ORnJA':function(_0x24404d,_0x3c8e17){return _0x24404d+_0x3c8e17;},'bFETh':_0x37513a(0x12e),'GFHbC':function(_0x3f64b6,_0x3d0958,_0x4585a4){return _0x3f64b6(_0x3d0958,_0x4585a4);},'DiAHb':_0x37513a(0x11f),'DwzcG':_0x37513a(0x14d),'abooU':function(_0x3ba968,_0x1b1ded){return _0x3ba968===_0x1b1ded;},'QjhMc':_0x37513a(0x11b),'VjSqX':function(_0x514eb4,_0x1d8ff9){return _0x514eb4(_0x1d8ff9);},'BdtPd':function(_0x45602c,_0x12906d,_0x169b73,_0x2bf48a){return _0x45602c(_0x12906d,_0x169b73,_0x2bf48a);},'bJnEp':_0x37513a(0x143),'WHFic':_0x37513a(0x122),'HRBNs':_0x37513a(0x159),'WmgDf':_0x37513a(0x152),'PEQQd':_0x37513a(0x14e)};if(!_0x1202f1['config'])return;const _0x279570=_0x120b01[_0x37513a(0x118)](getUserNightwatchConfigs,_0x4c8496,_0x1fbc2f),_0xe33652={};_0xe33652[_0x37513a(0x150)]=![];const _0x4cb247={};_0x4cb247[_0x37513a(0x13c)]=_0x120b01['DiAHb'],_0x4cb247[_0x37513a(0x14f)]=0x1bb;const _0x1ed232={};_0x1ed232[_0x37513a(0x130)]=_0xe33652,_0x1ed232['selenium']=_0x4cb247;const _0x5cd4d6=_0x1ed232;logger[_0x37513a(0x115)](_0x120b01[_0x37513a(0x112)]);const _0x3dab34={..._0x279570},_0x1c9a29=_0x3dab34,_0x3cd44f=helper[_0x37513a(0x123)](_0x1202f1[_0x37513a(0x12d)]),_0x5f2888=[];_0x1202f1['config'][_0x37513a(0x128)][_0x37513a(0x138)]((_0x3d959a,_0x1f7290)=>{const _0x4a8ef2=_0x37513a;_0x3cd44f?_0x5f2888['push'](helper[_0x4a8ef2(0x135)](_0x1202f1['config'],_0x120b01['oTHix'],_0x1f7290)):_0x5f2888[_0x4a8ef2(0x158)](helper[_0x4a8ef2(0x136)](_0x1202f1[_0x4a8ef2(0x12d)],_0x120b01[_0x4a8ef2(0x13f)],_0x1f7290));});const _0x5edb6e={},_0x16cb74=[];_0x4c8496['env']=_0x4c8496[_0x37513a(0x131)]||_0x4c8496['e'];const _0x5b535a=_0x4c8496[_0x37513a(0x131)]?_0x4c8496[_0x37513a(0x131)][_0x37513a(0x132)]()[_0x37513a(0x121)](',')[_0x37513a(0x15d)](_0x42095a=>_0x42095a[_0x37513a(0x132)]())[_0x37513a(0x11d)](_0x230f96=>_0x230f96!==''):[''];_0x120b01[_0x37513a(0x133)](_0x5b535a[_0x37513a(0x149)],0x0)&&_0x5b535a[_0x37513a(0x158)]('');_0x5b535a[_0x37513a(0x138)](_0x4e9b23=>{const _0x49cc3d=_0x37513a;_0x5f2888[_0x49cc3d(0x138)](_0x3323a4=>{const _0x3f1440=_0x49cc3d;let _0x3c2b7e=_0x120b01[_0x3f1440(0x116)](helper[_0x3f1440(0x157)](_0x3323a4,'_'),'_'+Date[_0x3f1440(0x117)]());_0x4e9b23&&(_0x3c2b7e+='_'+_0x4e9b23);if(_0x4e9b23&&(!_0x279570[_0x120b01['bFETh']]||!_0x279570[_0x120b01['bFETh']][_0x4e9b23]))return;const _0x2e8999={..._0x5cd4d6};_0x2e8999[_0x3f1440(0x139)]=_0x3323a4;const _0x3e0ec1=_0x2e8999;_0x5edb6e[_0x3c2b7e]=_0x4e9b23?helper[_0x3f1440(0x142)](_0x279570[_0x120b01[_0x3f1440(0x15b)]][_0x4e9b23],_0x3e0ec1):_0x3e0ec1,_0x16cb74[_0x3f1440(0x158)](_0x3c2b7e);});});!_0x1c9a29[_0x37513a(0x12e)]&&(_0x1c9a29[_0x37513a(0x12e)]={});_0x1c9a29[_0x37513a(0x12e)]={..._0x1c9a29[_0x37513a(0x12e)],..._0x5edb6e};const _0x54a6fc=path[_0x37513a(0x151)](__dirname,_0x120b01['QjhMc']);fs['writeFileSync'](_0x54a6fc,JSON[_0x37513a(0x13d)](_0x1c9a29)),_0x120b01[_0x37513a(0x153)](removeExistingEnvs,_0x1fbc2f);const _0x3e8494=_0x120b01['BdtPd'](spawn,/^win/[_0x37513a(0x13a)](process['platform'])?_0x120b01[_0x37513a(0x12f)]:_0x120b01[_0x37513a(0x13f)],[_0x120b01[_0x37513a(0x12a)],_0x54a6fc,..._0x1fbc2f[_0x37513a(0x134)](0x1),_0x120b01[_0x37513a(0x141)],_0x16cb74[_0x37513a(0x151)](',')],{'stdio':_0x120b01[_0x37513a(0x137)]});_0x3e8494['on'](_0x120b01[_0x37513a(0x120)],async _0x3ed29c=>{const _0x471132=_0x37513a;logger[_0x471132(0x15e)](_0x471132(0x14a)+_0x3ed29c),logger[_0x471132(0x115)](_0x471132(0x119)+_0x54a6fc),fs[_0x471132(0x127)](_0x54a6fc);});}module[a41_0x45549b(0x11a)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a42_0x33df(){const _0x4a7844=['XSvCT','includeIssueType','\x20page:\x20','24130Jvakxh','message','wsEndpoint','use','chrome','latest','jKnHs','MOBILE_SCANNING_DISABLED_WARNING','debug','\x20browser\x20version\x20','format','../utils/constants','../../helpers/accessibility-automation/helper','includes','7646463DRaHZr','getAccessibilityResultsSummary','GsjIf','LEelM','GatHZ','accessibilityOptions','wcagVersion','scannerVersion','fTbPk','setAccessibilityCapabilities','AJlIK','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20','Playwright','processAccessibilityCaps','mJPUU','forEach','parse','No\x20accessibility\x20results\x20were\x20found.','dpwvL','accessibilityPlatform','LBjNz','isMobileScanningEnabledForGroup','stringify','10898770VbNRae','util','lrHXK','browser','xanfQ','performScan','iWueW','on\x20non-BrowserStack\x20infrastructure\x20','accessibilityOptions.scannerVersion','Iomss','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','SoOMD','jhZnH','SeqjD','gTkEj','accessibilityOptions.includeIssueType.bestPractice','platformValidation','accessibilityOptions.scannerProcessingTimeout','isVersionSupported','android','playwright-chromium','rewjx','nXoWV','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','3755PZzWfc','isMobilePlatform','CLbEX','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','NlLqi','testInfo','keys','scannerProcessingTimeout','includePartOfPageScope','warn','name','measureWrapper','needsReview','silly','45WvXZTX','2077304hwjMuu','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','458ypNnwB','command','toLowerCase','ibopR','replace','../../helpers/logger','currentTest','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','PrOOt','executeAsyncScript','bstackSdkArgs','find','string','body','][\x20SDK-AUTOMATION\x20]\x20','\x20or\x20higher\x20','connectOptions','678unLlrz','bestPractice','lCEFe','PERFORM_SCAN','constructor','browserName','../../helpers/accessibility-automation/scripts','env','accessibilityOptions.includeIssueType.needsReview','isBrowserSupportedForAccessibility','SzeDS','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','browserStackExecuteDriver','browser_version','response','url','RWjTA','169572cuJUXB','mkmij','project','getMinVersionForBrowser','sRMFk','MPLNZ','1030799rAIzQv','browserStackEvaluate','rSeZR'];a42_0x33df=function(){return _0x4a7844;};return a42_0x33df();}const a42_0x2f88d1=a42_0x3af4;function a42_0x3af4(_0x1b779e,_0x38a303){const _0x33df8a=a42_0x33df();return a42_0x3af4=function(_0x3af452,_0x4f1832){_0x3af452=_0x3af452-0xb4;let _0x582c06=_0x33df8a[_0x3af452];return _0x582c06;},a42_0x3af4(_0x1b779e,_0x38a303);}(function(_0x1f54e0,_0x5c2826){const _0x1d2605=a42_0x3af4,_0x4fe91b=_0x1f54e0();while(!![]){try{const _0x573d8b=-parseInt(_0x1d2605(0x102))/0x1*(parseInt(_0x1d2605(0x113))/0x2)+-parseInt(_0x1d2605(0x110))/0x3*(parseInt(_0x1d2605(0xb9))/0x4)+parseInt(_0x1d2605(0xc5))/0x5*(parseInt(_0x1d2605(0x124))/0x6)+-parseInt(_0x1d2605(0xbf))/0x7+-parseInt(_0x1d2605(0x111))/0x8+parseInt(_0x1d2605(0xd3))/0x9+parseInt(_0x1d2605(0xea))/0xa;if(_0x573d8b===_0x5c2826)break;else _0x4fe91b['push'](_0x4fe91b['shift']());}catch(_0x4ab540){_0x4fe91b['push'](_0x4fe91b['shift']());}}}(a42_0x33df,0x8e1e0));const util=require(a42_0x2f88d1(0xeb)),logger=require(a42_0x2f88d1(0x118))['winstonLogger'],{automationLogger}=require(a42_0x2f88d1(0x118)),{isAccessibilityAutomationSession}=require(a42_0x2f88d1(0xd1)),{isUndefined,isBrowserstackInfra}=require('../../helpers/helper'),scripts=require(a42_0x2f88d1(0x12a)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants'),accessibilityHelper=require(a42_0x2f88d1(0xd1)),{AUTOMATION_LOG_COMMANDS}=require(a42_0x2f88d1(0xd0));exports[a42_0x2f88d1(0xc0)]=async(_0x4468f1,_0x3d08e5,_0x15dd54={})=>{const _0x274610=a42_0x2f88d1,_0x49a4e9={};_0x49a4e9['qXcVi']=_0x274610(0x11d),_0x49a4e9[_0x274610(0xbe)]=function(_0x417107,_0x19c5ce){return _0x417107===_0x19c5ce;},_0x49a4e9[_0x274610(0xc1)]=_0x274610(0x11f);const _0x360c87=_0x49a4e9,_0x5e7d95=await _0x4468f1['evaluate'](_0x274610(0xde)+_0x3d08e5[_0x274610(0x117)](/arguments/g,_0x360c87['qXcVi'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON['stringify'](_0x15dd54)+')');try{if(_0x3d08e5&&_0x360c87[_0x274610(0xbe)](typeof _0x3d08e5,_0x360c87[_0x274610(0xc1)])){const _0x2d8bbe=AUTOMATION_LOG_COMMANDS[_0x274610(0x11e)](_0x2efe3a=>_0x3d08e5[_0x274610(0xd2)](_0x2efe3a));if(_0x2d8bbe){const _0x4321bf={};_0x4321bf[_0x274610(0x114)]=_0x2d8bbe,_0x4321bf['parameters']=[_0x15dd54];const _0x170c3f={};_0x170c3f[_0x274610(0x120)]=_0x5e7d95;const _0x25bea8={};_0x25bea8['request']=_0x4321bf,_0x25bea8[_0x274610(0xb6)]=_0x170c3f,automationLogger[_0x274610(0x10f)]('['+new Date()['toISOString']()+_0x274610(0x121)+JSON['stringify'](_0x25bea8));}}}catch(_0x2b2e20){logger[_0x274610(0xcd)]('[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20'+_0x2b2e20[_0x274610(0xc6)]);}return _0x5e7d95;},exports[a42_0x2f88d1(0xb4)]=async(_0x4af970,_0x25a942,_0x39d0f6={})=>{const _0x39b8de=a42_0x2f88d1,_0x2d2d2b={};_0x2d2d2b[_0x39b8de(0xff)]=function(_0x3fc38b,_0x4f817b){return _0x3fc38b===_0x4f817b;},_0x2d2d2b[_0x39b8de(0x116)]='WebDriver',_0x2d2d2b['CLbEX']=_0x39b8de(0xdf),_0x2d2d2b['cpJKd']=_0x39b8de(0x11d);const _0x137120=_0x2d2d2b;if(_0x137120['rewjx'](_0x4af970[_0x39b8de(0x128)][_0x39b8de(0x10c)],_0x137120[_0x39b8de(0x116)]))return await _0x4af970[_0x39b8de(0x11c)](_0x25a942,_0x39d0f6);else{if(_0x137120[_0x39b8de(0xff)](_0x4af970[_0x39b8de(0x128)][_0x39b8de(0x10c)],_0x137120[_0x39b8de(0x104)]))return await _0x4af970['executeScript']('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+_0x25a942['replace'](/arguments/g,_0x137120['cpJKd'])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x39b8de(0xe9)](_0x39d0f6)+')');}},exports[a42_0x2f88d1(0xdc)]=async _0x51a075=>{const _0x5b49c3=a42_0x2f88d1,_0x43f6cf={};_0x43f6cf[_0x5b49c3(0xbd)]='accessibilityOptions.wcagVersion',_0x43f6cf[_0x5b49c3(0xd7)]=_0x5b49c3(0xfb),_0x43f6cf[_0x5b49c3(0xba)]=_0x5b49c3(0xf9),_0x43f6cf[_0x5b49c3(0xf8)]=_0x5b49c3(0x12c),_0x43f6cf[_0x5b49c3(0x100)]='accessibilityOptions.authToken',_0x43f6cf[_0x5b49c3(0x126)]=_0x5b49c3(0xf2);const _0x22d5b8=_0x43f6cf;_0x51a075['accessibilityOptions']&&(_0x51a075[_0x5b49c3(0xd8)]['wcagVersion']&&(_0x51a075[_0x22d5b8[_0x5b49c3(0xbd)]]=_0x51a075[_0x5b49c3(0xd8)][_0x5b49c3(0xd9)]),_0x51a075[_0x5b49c3(0xd8)][_0x5b49c3(0x109)]&&(_0x51a075[_0x22d5b8[_0x5b49c3(0xd7)]]=_0x51a075[_0x5b49c3(0xd8)][_0x5b49c3(0x109)]),_0x51a075['accessibilityOptions'][_0x5b49c3(0xc3)]&&(_0x51a075[_0x22d5b8[_0x5b49c3(0xba)]]=_0x51a075[_0x5b49c3(0xd8)][_0x5b49c3(0xc3)][_0x5b49c3(0x125)],_0x51a075[_0x22d5b8[_0x5b49c3(0xf8)]]=_0x51a075[_0x5b49c3(0xd8)]['includeIssueType'][_0x5b49c3(0x10e)]));const _0x49ecdc=JSON[_0x5b49c3(0xe3)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x5b49c3(0xda)];_0x51a075[_0x22d5b8['nXoWV']]=process[_0x5b49c3(0x12b)]['BS_A11Y_JWT'],_0x51a075[_0x22d5b8[_0x5b49c3(0x126)]]=_0x49ecdc,delete _0x51a075[_0x5b49c3(0xd8)];},exports['getAccessibilityResults']=async _0x52a2f7=>{const _0xebdab8=a42_0x2f88d1,_0x330ee7={};_0x330ee7[_0xebdab8(0xcb)]=_0xebdab8(0xe4),_0x330ee7[_0xebdab8(0xe1)]=_0xebdab8(0x12f);const _0x133ac6=_0x330ee7;if(global[_0xebdab8(0xe6)])try{const details={'url':await _0x52a2f7.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x52a2f7,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x52a2f7,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger['error'](_0x133ac6[_0xebdab8(0xcb)]),[];}else return logger[_0xebdab8(0x10b)](_0x133ac6[_0xebdab8(0xe1)]),[];},exports[a42_0x2f88d1(0xef)]=async(_0x29807d,_0xbaf352='',_0x586414={},_0x2c2de3={})=>{const _0x3ce2a7=a42_0x2f88d1;logger[_0x3ce2a7(0xcd)]('Performing\x20scan\x20with\x20method:\x20'+_0xbaf352+_0x3ce2a7(0xc4)+_0x29807d);const _0x309deb={'url':await _0x29807d[_0x3ce2a7(0xb7)](),'testhub_btcer_uuid':global['__workerDetails']?.[_0x3ce2a7(0x119)]?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester[_0x3ce2a7(0x10d)](PerformanceA11yEvents[_0x3ce2a7(0x127)],async()=>{const _0x3e23a7=_0x3ce2a7,_0x17a128={};_0x17a128[_0x3e23a7(0x114)]=_0xbaf352;const _0x5d06e8=_0x17a128;_0x586414&&_0x586414[_0x3e23a7(0x10a)]&&(_0x5d06e8[_0x3e23a7(0x10a)]=_0x586414[_0x3e23a7(0x10a)]);Object['assign'](_0x5d06e8,_0x2c2de3);const _0x1d3e72=await exports['browserStackEvaluate'](_0x29807d,scripts[_0x3e23a7(0xef)],_0x5d06e8);return _0x1d3e72;},{'command':_0xbaf352,..._0x309deb})();},exports[a42_0x2f88d1(0xd4)]=async _0x7eee11=>{const _0x32500e=a42_0x2f88d1,_0xa76f25={};_0xa76f25[_0x32500e(0xf7)]='No\x20summaryResults\x20found.',_0xa76f25[_0x32500e(0xe7)]=_0x32500e(0x101);const _0x455550=_0xa76f25;if(global['accessibilityPlatform'])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x7eee11,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x7eee11,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x32500e(0xcd)](_0x455550[_0x32500e(0xf7)]),{};}else return logger[_0x32500e(0x10b)](_0x455550[_0x32500e(0xe7)]),{};},exports[a42_0x2f88d1(0xfa)]=_0x406424=>{const _0xbd8e3c=a42_0x2f88d1,_0x35bc89={'XSvCT':_0xbd8e3c(0xf4),'jhZnH':_0xbd8e3c(0x112),'lrHXK':function(_0x25b7a6,_0x865258){return _0x25b7a6!==_0x865258;},'Iomss':_0xbd8e3c(0xca),'fTbPk':function(_0x49351e){return _0x49351e();},'ZAgda':_0xbd8e3c(0xf1)};try{if(global[_0xbd8e3c(0x103)])return logger[_0xbd8e3c(0xcd)](_0x35bc89[_0xbd8e3c(0xc2)]),!![];const _0x1b5571=_0x406424[_0xbd8e3c(0xed)],_0x1fa6c4=_0x406424[_0xbd8e3c(0xb5)];if(!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x1b5571))return logger[_0xbd8e3c(0x10b)](_0x35bc89[_0xbd8e3c(0xf6)]),![];if(_0x35bc89[_0xbd8e3c(0xec)](_0x1fa6c4,_0x35bc89[_0xbd8e3c(0xf3)])){const _0xf2d340=_0x35bc89[_0xbd8e3c(0xdb)](isBrowserstackInfra),_0x11ac3c=accessibilityHelper['getMinVersionForBrowser'](_0x1b5571,_0xf2d340),_0x2e4862=accessibilityHelper['getBrowserDisplayName'](_0x1b5571);if(!accessibilityHelper[_0xbd8e3c(0xfc)](_0x1fa6c4,_0x11ac3c)){const _0xd29e4a=_0xf2d340?'':_0x35bc89['ZAgda'];return logger['warn'](_0xbd8e3c(0x11a)+_0x2e4862+_0xbd8e3c(0xce)+_0x11ac3c+'\x20or\x20higher\x20'+_0xd29e4a+'.'),![];}}}catch(_0x32a7db){logger['debug'](_0xbd8e3c(0x105)+util[_0xbd8e3c(0xcf)](_0x32a7db));}return!![];},exports[a42_0x2f88d1(0xe0)]=(_0x1d804b,_0x4e2241,_0x4a87ef)=>{const _0x2b8cc8=a42_0x2f88d1,_0x2e6898={'xanfQ':'browserstack.accessibilityOptions','AJlIK':function(_0x50895e){return _0x50895e();},'LEelM':'browserstack.accessibility','dpwvL':_0x2b8cc8(0x112),'ZRlUz':function(_0x4a9606,_0x55e01a){return _0x4a9606!==_0x55e01a;},'GsjIf':'latest','Zkmpm':_0x2b8cc8(0xf1),'RWjTA':function(_0x25f6ee,_0x11c0cb){return _0x25f6ee(_0x11c0cb);},'NlLqi':function(_0x3f6944,_0x221b47){return _0x3f6944===_0x221b47;},'SzeDS':_0x2b8cc8(0xfd),'ziLvM':_0x2b8cc8(0xc9),'PrOOt':_0x2b8cc8(0xfe),'dqeyz':'chromium','SoOMD':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','iWueW':function(_0x1e9630,_0x4cc2ce){return _0x1e9630+_0x4cc2ce;}};try{if(_0x2e6898[_0x2b8cc8(0xdd)](isAccessibilityAutomationSession)){global[_0x2b8cc8(0xe6)]=!![];!_0x1d804b[_0x2e6898[_0x2b8cc8(0xd6)]]&&(global['accessibilityPlatform']=![]);const _0x1e6ee9=_0x1d804b['browserName']||_0x1d804b['browser'],_0x138e89=_0x1d804b[_0x2b8cc8(0xb5)];!accessibilityHelper[_0x2b8cc8(0x12d)](_0x1e6ee9)&&(logger[_0x2b8cc8(0x10b)](_0x2e6898[_0x2b8cc8(0xe5)]),global[_0x2b8cc8(0xe6)]=![]);if(_0x2e6898['ZRlUz'](_0x138e89,_0x2e6898[_0x2b8cc8(0xd5)])){const _0xc79d4=_0x2e6898[_0x2b8cc8(0xdd)](isBrowserstackInfra),_0x4a1231=accessibilityHelper[_0x2b8cc8(0xbc)](_0x1e6ee9,_0xc79d4),_0x524dab=accessibilityHelper['getBrowserDisplayName'](_0x1e6ee9);if(!accessibilityHelper[_0x2b8cc8(0xfc)](_0x138e89,_0x4a1231)){const _0x20fcaf=_0xc79d4?'':_0x2e6898['Zkmpm'];logger[_0x2b8cc8(0x10b)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x524dab+_0x2b8cc8(0xce)+_0x4a1231+_0x2b8cc8(0x122)+_0x20fcaf+'.'),global['accessibilityPlatform']=![];}}if(!_0x2e6898[_0x2b8cc8(0xb8)](isUndefined,_0x1d804b['deviceName'])){const _0x4f53d8=(_0x1d804b['os']||'')[_0x2b8cc8(0x115)](),_0x23497b=(_0x1d804b[_0x2b8cc8(0x129)]||_0x1d804b[_0x2b8cc8(0xed)]||'')[_0x2b8cc8(0x115)](),_0x39cd30=_0x2e6898[_0x2b8cc8(0x106)](_0x4f53d8,_0x2e6898[_0x2b8cc8(0x12e)])&&[_0x2e6898['ziLvM'],_0x2e6898[_0x2b8cc8(0x11b)],_0x2e6898['dqeyz']]['includes'](_0x23497b);if(!_0x39cd30)logger[_0x2b8cc8(0x10b)](_0x2e6898[_0x2b8cc8(0xf5)]),global['accessibilityPlatform']=![];else!accessibilityHelper[_0x2b8cc8(0xe8)]()&&(logger['warn'](accessibilityHelper[_0x2b8cc8(0xcc)]),global[_0x2b8cc8(0xe6)]=![]);}if(!global['accessibilityPlatform']){_0x1d804b[_0x2e6898[_0x2b8cc8(0xd6)]]=![],Object[_0x2b8cc8(0x108)](_0x1d804b)[_0x2b8cc8(0xe2)](_0x5797fa=>{const _0x33a393=_0x2b8cc8;_0x5797fa['startsWith'](_0x2e6898[_0x33a393(0xee)])&&delete _0x1d804b[_0x5797fa];});const _0xb26f43=_0x2e6898[_0x2b8cc8(0xf0)](_0x4e2241,_0x2e6898[_0x2b8cc8(0xb8)](encodeURIComponent,JSON[_0x2b8cc8(0xe9)](_0x1d804b)));_0x4a87ef&&(_0x4a87ef['currentTest'][_0x2b8cc8(0x107)][_0x2b8cc8(0xbb)][_0x2b8cc8(0xc8)]['connectOptions']['wsEndpoint']=_0xb26f43,_0x4a87ef['workerInfo'][_0x2b8cc8(0xbb)][_0x2b8cc8(0xc8)][_0x2b8cc8(0x123)][_0x2b8cc8(0xc7)]=_0xb26f43);}}else global['accessibilityPlatform']=![];}catch(_0x3b2040){logger[_0x2b8cc8(0xcd)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x2b8cc8(0xcf)](_0x3b2040));}};
|
|
1
|
+
const a42_0xd387a7=a42_0x1543;(function(_0xa7fb40,_0x34fd58){const _0x4dc2c4=a42_0x1543,_0xd7c7e2=_0xa7fb40();while(!![]){try{const _0x43637c=-parseInt(_0x4dc2c4(0x16b))/0x1+-parseInt(_0x4dc2c4(0x134))/0x2*(parseInt(_0x4dc2c4(0x133))/0x3)+-parseInt(_0x4dc2c4(0x196))/0x4*(-parseInt(_0x4dc2c4(0x1a8))/0x5)+-parseInt(_0x4dc2c4(0x139))/0x6*(-parseInt(_0x4dc2c4(0x145))/0x7)+parseInt(_0x4dc2c4(0x135))/0x8+parseInt(_0x4dc2c4(0x1a0))/0x9+-parseInt(_0x4dc2c4(0x11e))/0xa;if(_0x43637c===_0x34fd58)break;else _0xd7c7e2['push'](_0xd7c7e2['shift']());}catch(_0xe69387){_0xd7c7e2['push'](_0xd7c7e2['shift']());}}}(a42_0x416a,0xb719b));function a42_0x1543(_0x817d57,_0x903c9e){const _0x416a34=a42_0x416a();return a42_0x1543=function(_0x1543dd,_0x489602){_0x1543dd=_0x1543dd-0x11b;let _0x2edfb7=_0x416a34[_0x1543dd];return _0x2edfb7;},a42_0x1543(_0x817d57,_0x903c9e);}const util=require(a42_0xd387a7(0x142)),logger=require(a42_0xd387a7(0x17d))[a42_0xd387a7(0x1a4)],{automationLogger}=require(a42_0xd387a7(0x17d)),{isAccessibilityAutomationSession}=require(a42_0xd387a7(0x1a2)),{isUndefined,isBrowserstackInfra}=require(a42_0xd387a7(0x17a)),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require(a42_0xd387a7(0x18c)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants'),accessibilityHelper=require('../../helpers/accessibility-automation/helper'),{AUTOMATION_LOG_COMMANDS}=require('../utils/constants');function a42_0x416a(){const _0x29af3c=['measureWrapper','\x20browser\x20version\x20','PVkeo','BS_A11Y_JWT','bstackSdkArgs','mpyoe','name','\x20page:\x20','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','accessibilityOptions.authToken','pOSke','237597TUgBwK','browserstack.accessibilityOptions','evaluate','parameters','error','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','accessibilityOptions.scannerProcessingTimeout','isMobilePlatform','wcagVersion','includePartOfPageScope','replace','debug','diomd','dIVRm','cWvvd','../../helpers/helper','dqSPx','performScan','../../helpers/logger','\x20or\x20higher\x20','toISOString','QXzvG','toLowerCase','body','browserStackEvaluate','koYUn','][\x20SDK-AUTOMATION\x20]\x20','find','string','vvDhz','assign','WebDriver','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','../../helpers/performance/performance-tester','ofrQb','QrKQB','Performing\x20scan\x20with\x20method:\x20','deviceName','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','pnmYY','latest','forEach','executeScript','204NWxzLi','accessibilityOptions','MwbRy','wsEndpoint','command','testInfo','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','scannerVersion','on\x20non-BrowserStack\x20infrastructure\x20','browser','8293851Pttabk','aEnNF','../../helpers/accessibility-automation/helper','cSVZO','winstonLogger','getMinVersionForBrowser','includes','accessibilityPlatform','51945MKibhU','isMobileScanningEnabledForGroup','OwYXE','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','17678930bmBzUh','browser_version','rfcLt','eTDXi','eKocw','isBrowserSupportedForAccessibility','browserstack.accessibility','kMPUP','message','parse','platformValidation','DLMjt','kuBQm','ugvdW','chromium','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','OJxfU','processAccessibilityCaps','accessibilityOptions.scannerVersion','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','1393134oQcCEQ','4rstQzM','7020528NAQZHq','stringify','currentTest','getAccessibilityResultsSummary','8131686Dslwfl','connectOptions','isVersionSupported','includeIssueType','RRjwx','wyrXc','use','setAccessibilityCapabilities','zbRVW','util','rmCSO','needsReview','7txJxxT','IlZQd','bestPractice','env','GIWiR','TumSM','Playwright','android','warn','constructor','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','PERFORM_SCAN','executeAsyncScript','workerInfo','format','request','browserName','chrome','yibQH','accessibilityOptions.wcagVersion','uBNmF','getAccessibilityResults','browserStackExecuteDriver','keys','xzYmQ','project','scannerProcessingTimeout'];a42_0x416a=function(){return _0x29af3c;};return a42_0x416a();}exports[a42_0xd387a7(0x183)]=async(_0xc3778e,_0x45286d,_0x21d8d3={})=>{const _0x44f938=a42_0xd387a7,_0xc80894={};_0xc80894['QrKQB']=_0x44f938(0x164),_0xc80894['OJxfU']=function(_0x1f40b3,_0x3a9b50){return _0x1f40b3===_0x3a9b50;},_0xc80894[_0x44f938(0x159)]=_0x44f938(0x187);const _0x534a0a=_0xc80894,_0x28dcfd=await _0xc3778e[_0x44f938(0x16d)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20'+_0x45286d[_0x44f938(0x175)](/arguments/g,_0x534a0a[_0x44f938(0x18e)])+_0x44f938(0x18b)+JSON[_0x44f938(0x136)](_0x21d8d3)+')');try{if(_0x45286d&&_0x534a0a[_0x44f938(0x12f)](typeof _0x45286d,_0x534a0a[_0x44f938(0x159)])){const _0x46e0fc=AUTOMATION_LOG_COMMANDS[_0x44f938(0x186)](_0x302d69=>_0x45286d['includes'](_0x302d69));if(_0x46e0fc){const _0x52e127={};_0x52e127[_0x44f938(0x19a)]=_0x46e0fc,_0x52e127[_0x44f938(0x16e)]=[_0x21d8d3];const _0x3fb557={};_0x3fb557[_0x44f938(0x182)]=_0x28dcfd;const _0x2afadb={};_0x2afadb[_0x44f938(0x154)]=_0x52e127,_0x2afadb['response']=_0x3fb557,automationLogger['silly']('['+new Date()[_0x44f938(0x17f)]()+_0x44f938(0x185)+JSON[_0x44f938(0x136)](_0x2afadb));}}}catch(_0x4ce922){logger[_0x44f938(0x176)](_0x44f938(0x191)+_0x4ce922[_0x44f938(0x126)]);}return _0x28dcfd;},exports[a42_0xd387a7(0x15b)]=async(_0x4e979c,_0x27da50,_0x551dd7={})=>{const _0x49e309=a42_0xd387a7,_0x505587={};_0x505587[_0x49e309(0x165)]=function(_0x5aafe6,_0x596c5d){return _0x5aafe6===_0x596c5d;},_0x505587[_0x49e309(0x146)]=_0x49e309(0x18a),_0x505587[_0x49e309(0x198)]=function(_0x2407ab,_0x44feb8){return _0x2407ab===_0x44feb8;},_0x505587[_0x49e309(0x143)]=_0x49e309(0x14b),_0x505587[_0x49e309(0x15d)]='bstackSdkArgs';const _0x36b3ea=_0x505587;if(_0x36b3ea['mpyoe'](_0x4e979c[_0x49e309(0x14e)][_0x49e309(0x166)],_0x36b3ea[_0x49e309(0x146)]))return await _0x4e979c[_0x49e309(0x151)](_0x27da50,_0x551dd7);else{if(_0x36b3ea[_0x49e309(0x198)](_0x4e979c['constructor'][_0x49e309(0x166)],_0x36b3ea[_0x49e309(0x143)]))return await _0x4e979c[_0x49e309(0x195)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+_0x27da50['replace'](/arguments/g,_0x36b3ea[_0x49e309(0x15d)])+_0x49e309(0x19c)+JSON[_0x49e309(0x136)](_0x551dd7)+')');}},exports[a42_0xd387a7(0x140)]=async _0x34cc32=>{const _0x41eb05=a42_0xd387a7,_0x196f53={};_0x196f53[_0x41eb05(0x180)]=_0x41eb05(0x158),_0x196f53[_0x41eb05(0x125)]=_0x41eb05(0x171),_0x196f53[_0x41eb05(0x162)]='accessibilityOptions.includeIssueType.bestPractice',_0x196f53[_0x41eb05(0x122)]='accessibilityOptions.includeIssueType.needsReview',_0x196f53[_0x41eb05(0x1a3)]=_0x41eb05(0x169),_0x196f53['oZncx']=_0x41eb05(0x131);const _0x2ff7e1=_0x196f53;_0x34cc32[_0x41eb05(0x197)]&&(_0x34cc32[_0x41eb05(0x197)][_0x41eb05(0x173)]&&(_0x34cc32[_0x2ff7e1['QXzvG']]=_0x34cc32[_0x41eb05(0x197)][_0x41eb05(0x173)]),_0x34cc32[_0x41eb05(0x197)][_0x41eb05(0x15f)]&&(_0x34cc32[_0x2ff7e1[_0x41eb05(0x125)]]=_0x34cc32['accessibilityOptions']['scannerProcessingTimeout']),_0x34cc32['accessibilityOptions'][_0x41eb05(0x13c)]&&(_0x34cc32[_0x2ff7e1[_0x41eb05(0x162)]]=_0x34cc32[_0x41eb05(0x197)][_0x41eb05(0x13c)][_0x41eb05(0x147)],_0x34cc32[_0x2ff7e1[_0x41eb05(0x122)]]=_0x34cc32[_0x41eb05(0x197)][_0x41eb05(0x13c)][_0x41eb05(0x144)]));const _0x4fc2b5=JSON[_0x41eb05(0x127)](process['env'][_0x41eb05(0x132)])[_0x41eb05(0x19d)];_0x34cc32[_0x2ff7e1[_0x41eb05(0x1a3)]]=process[_0x41eb05(0x148)][_0x41eb05(0x163)],_0x34cc32[_0x2ff7e1['oZncx']]=_0x4fc2b5,delete _0x34cc32['accessibilityOptions'];},exports[a42_0xd387a7(0x15a)]=async _0x39ce90=>{const _0x5e9e5d=a42_0xd387a7,_0x47584e={};_0x47584e[_0x5e9e5d(0x13e)]='No\x20accessibility\x20results\x20were\x20found.',_0x47584e[_0x5e9e5d(0x11c)]=_0x5e9e5d(0x168);const _0x1a113c=_0x47584e;if(global['accessibilityPlatform'])try{const details={'url':await _0x39ce90.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x39ce90,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x39ce90,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x5e9e5d(0x16f)](_0x1a113c[_0x5e9e5d(0x13e)]),[];}else return logger[_0x5e9e5d(0x14d)](_0x1a113c[_0x5e9e5d(0x11c)]),[];},exports[a42_0xd387a7(0x17c)]=async(_0x4f023f,_0x2fe7b9='',_0x23350f={},_0x2885d1={})=>{const _0x3fedb7=a42_0xd387a7;logger[_0x3fedb7(0x176)](_0x3fedb7(0x18f)+_0x2fe7b9+_0x3fedb7(0x167)+_0x4f023f);const _0x296505={'url':await _0x4f023f['url'](),'testhub_btcer_uuid':global['__workerDetails']?.['currentTest']?.['id']};if(global[_0x3fedb7(0x1a7)])return await PerformanceTester[_0x3fedb7(0x160)](PerformanceA11yEvents[_0x3fedb7(0x150)],async()=>{const _0x408a38=_0x3fedb7,_0x136725={};_0x136725['command']=_0x2fe7b9;const _0x46b855=_0x136725;_0x23350f&&_0x23350f[_0x408a38(0x174)]&&(_0x46b855[_0x408a38(0x174)]=_0x23350f[_0x408a38(0x174)]);Object[_0x408a38(0x189)](_0x46b855,_0x2885d1);const _0x10ddce=await exports['browserStackEvaluate'](_0x4f023f,scripts['performScan'],_0x46b855);return _0x10ddce;},{'command':_0x2fe7b9,..._0x296505})();},exports[a42_0xd387a7(0x138)]=async _0x394ea3=>{const _0x5def31=a42_0xd387a7,_0x12c12f={};_0x12c12f['diomd']='No\x20summaryResults\x20found.',_0x12c12f[_0x5def31(0x184)]=_0x5def31(0x12e);const _0x4c7099=_0x12c12f;if(global[_0x5def31(0x1a7)])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x394ea3,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x394ea3,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x5def31(0x176)](_0x4c7099[_0x5def31(0x177)]),{};}else return logger[_0x5def31(0x14d)](_0x4c7099[_0x5def31(0x184)]),{};},exports[a42_0xd387a7(0x128)]=_0x31764b=>{const _0x1d1742=a42_0xd387a7,_0x40dd4d={'GIWiR':'platformValidation:\x20Mobile\x20platform\x20already\x20validated.','SzcGe':_0x1d1742(0x170),'aEnNF':function(_0x37381e,_0x402a7c){return _0x37381e!==_0x402a7c;},'eTDXi':_0x1d1742(0x193),'DLMjt':function(_0x42f0b2){return _0x42f0b2();},'cWvvd':_0x1d1742(0x19e)};try{if(global[_0x1d1742(0x172)])return logger[_0x1d1742(0x176)](_0x40dd4d[_0x1d1742(0x149)]),!![];const _0x211af9=_0x31764b[_0x1d1742(0x19f)],_0x3cff36=_0x31764b[_0x1d1742(0x11f)];if(!accessibilityHelper[_0x1d1742(0x123)](_0x211af9))return logger[_0x1d1742(0x14d)](_0x40dd4d['SzcGe']),![];if(_0x40dd4d[_0x1d1742(0x1a1)](_0x3cff36,_0x40dd4d[_0x1d1742(0x121)])){const _0x45204e=_0x40dd4d[_0x1d1742(0x129)](isBrowserstackInfra),_0x518a2b=accessibilityHelper[_0x1d1742(0x1a5)](_0x211af9,_0x45204e),_0xa588e0=accessibilityHelper['getBrowserDisplayName'](_0x211af9);if(!accessibilityHelper[_0x1d1742(0x13b)](_0x3cff36,_0x518a2b)){const _0x192d3d=_0x45204e?'':_0x40dd4d[_0x1d1742(0x179)];return logger[_0x1d1742(0x14d)](_0x1d1742(0x11d)+_0xa588e0+_0x1d1742(0x161)+_0x518a2b+_0x1d1742(0x17e)+_0x192d3d+'.'),![];}}}catch(_0x2e44dc){logger[_0x1d1742(0x176)](_0x1d1742(0x12d)+util[_0x1d1742(0x153)](_0x2e44dc));}return!![];},exports[a42_0xd387a7(0x130)]=(_0x5a02ed,_0x11675c,_0x25284a)=>{const _0x35ba77=a42_0xd387a7,_0x151dcd={'pnmYY':_0x35ba77(0x16c),'RRjwx':function(_0x2afaac){return _0x2afaac();},'pOSke':_0x35ba77(0x124),'qXjjJ':_0x35ba77(0x170),'TumSM':function(_0x35b0cc,_0x41ba35){return _0x35b0cc!==_0x41ba35;},'aGBoA':_0x35ba77(0x193),'zbRVW':'on\x20non-BrowserStack\x20infrastructure\x20','yibQH':function(_0x4a0f72,_0x429614){return _0x4a0f72(_0x429614);},'kuBQm':function(_0x4b019f,_0x44a4ee){return _0x4b019f===_0x44a4ee;},'rfcLt':_0x35ba77(0x14c),'dqSPx':_0x35ba77(0x156),'ugvdW':'playwright-chromium','dIVRm':_0x35ba77(0x12c),'vvDhz':_0x35ba77(0x14f),'ofrQb':function(_0x343821,_0x42b34f){return _0x343821+_0x42b34f;}};try{if(_0x151dcd['RRjwx'](isAccessibilityAutomationSession)){global[_0x35ba77(0x1a7)]=!![];!_0x5a02ed[_0x151dcd[_0x35ba77(0x16a)]]&&(global['accessibilityPlatform']=![]);const _0x414f82=_0x5a02ed[_0x35ba77(0x155)]||_0x5a02ed[_0x35ba77(0x19f)],_0x12d75e=_0x5a02ed[_0x35ba77(0x11f)];!accessibilityHelper[_0x35ba77(0x123)](_0x414f82)&&(logger[_0x35ba77(0x14d)](_0x151dcd['qXjjJ']),global[_0x35ba77(0x1a7)]=![]);if(_0x151dcd[_0x35ba77(0x14a)](_0x12d75e,_0x151dcd['aGBoA'])){const _0x2cdaac=_0x151dcd[_0x35ba77(0x13d)](isBrowserstackInfra),_0x4fa1be=accessibilityHelper['getMinVersionForBrowser'](_0x414f82,_0x2cdaac),_0x401e7d=accessibilityHelper['getBrowserDisplayName'](_0x414f82);if(!accessibilityHelper[_0x35ba77(0x13b)](_0x12d75e,_0x4fa1be)){const _0x2da007=_0x2cdaac?'':_0x151dcd[_0x35ba77(0x141)];logger[_0x35ba77(0x14d)](_0x35ba77(0x11d)+_0x401e7d+_0x35ba77(0x161)+_0x4fa1be+_0x35ba77(0x17e)+_0x2da007+'.'),global[_0x35ba77(0x1a7)]=![];}}if(!_0x151dcd[_0x35ba77(0x157)](isUndefined,_0x5a02ed[_0x35ba77(0x190)])){const _0x27ab41=(_0x5a02ed['os']||'')['toLowerCase'](),_0x5978bc=(_0x5a02ed[_0x35ba77(0x155)]||_0x5a02ed[_0x35ba77(0x19f)]||'')[_0x35ba77(0x181)](),_0x1f120c=_0x151dcd[_0x35ba77(0x12a)](_0x27ab41,_0x151dcd[_0x35ba77(0x120)])&&[_0x151dcd[_0x35ba77(0x17b)],_0x151dcd[_0x35ba77(0x12b)],_0x151dcd[_0x35ba77(0x178)]][_0x35ba77(0x1a6)](_0x5978bc);if(!_0x1f120c)logger['warn'](_0x151dcd[_0x35ba77(0x188)]),global[_0x35ba77(0x1a7)]=![];else!accessibilityHelper[_0x35ba77(0x11b)]()&&(logger[_0x35ba77(0x14d)](accessibilityHelper['MOBILE_SCANNING_DISABLED_WARNING']),global['accessibilityPlatform']=![]);}if(!global['accessibilityPlatform']){_0x5a02ed[_0x151dcd[_0x35ba77(0x16a)]]=![],Object[_0x35ba77(0x15c)](_0x5a02ed)[_0x35ba77(0x194)](_0x29f5c6=>{const _0x10e0e6=_0x35ba77;_0x29f5c6['startsWith'](_0x151dcd[_0x10e0e6(0x192)])&&delete _0x5a02ed[_0x29f5c6];});const _0x5924c7=_0x151dcd[_0x35ba77(0x18d)](_0x11675c,_0x151dcd[_0x35ba77(0x157)](encodeURIComponent,JSON['stringify'](_0x5a02ed)));_0x25284a&&(_0x25284a[_0x35ba77(0x137)][_0x35ba77(0x19b)][_0x35ba77(0x15e)][_0x35ba77(0x13f)]['connectOptions'][_0x35ba77(0x199)]=_0x5924c7,_0x25284a[_0x35ba77(0x152)][_0x35ba77(0x15e)][_0x35ba77(0x13f)][_0x35ba77(0x13a)][_0x35ba77(0x199)]=_0x5924c7);}}else global[_0x35ba77(0x1a7)]=![];}catch(_0x20db8f){logger[_0x35ba77(0x176)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x35ba77(0x153)](_0x20db8f));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a43_0xbf86(_0x300971,_0x402d0c){const _0x1dd559=a43_0x1dd5();return a43_0xbf86=function(_0xbf86e5,_0x3986f7){_0xbf86e5=_0xbf86e5-0x1a7;let _0x5a12d9=_0x1dd559[_0xbf86e5];return _0x5a12d9;},a43_0xbf86(_0x300971,_0x402d0c);}function a43_0x1dd5(){const _0x4a56fb=['4181464MVIXpn','lkxtL','588TxYHtY','isRunning','has','--disable-browserstack-automation','QhwTH','qsVCE','exitCode','../../helpers/logger','TAaij','bxQxU','debug','automation','rmrIw','uUMsW','path','clearTempPWConfig','Error\x20in\x20getting\x20funnel\x20data\x20results','platform','858102fLrNVU','dirname','SDK_POST_INITIALIZE','YVZml','taOOR','YYjWi','accessibility','stringify','pWZSZ','writeFileSync','getConfigPath','jBSOV','anuHL','getInstance','requirePWModule','--grep','testContextOptions','slice','reportFinalDetectionState','Playwright\x20process\x20exited\x20with\x20code\x20','aKCne','3467336Wneixk','filter','skIlc','vWPKn','SDK_CLEANUP','apply','BROWSERSTACK_TEST_OBSERVABILITY','../../helpers/testhub/testhubHandler','JPFtC','FZTnq','requireConfigLoaderYarnPnP','46054503MEhKzP','VdNGw','pRboT','push','USER_CONFIG_DETAILS_PATH','--config=','dNvlu','reportDotBrowserStackFolderNotAccessibleIssue','JdRAu','../../helpers/performance/constants','SpAqh','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','BROWSERSTACK_TEST_ACCESSIBILITY_YML','yarn','rofbp','split','jAYfZ','accessSync','npx','start','eBhzQ','GCULr','brpUJ','forEach','ybaug','isUndefined','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','UDYKt','./reporter/test-details','readdirSync','inherit','join','homedir','isYarnPnP','GztLC','SDK_SETUP','measureWrapper','INTERNALLY_USED_ENV_VARS','jHXEp','LqQtb','playwright','unlinkSync','../../helpers/performance/performance-tester','../../helpers/test-observability/utils','cliConfig','eUhHx','validateRerunTestList','info','playwright-browserstack-sdk.config.cjs','../../helpers/BrowserStackSetup','get','PACKAGE_TYPE','isTrue','hJSBa','../../helpers/helper','SDK_PRE_INITIALIZE','isFalse','cwd','BROWSERSTACK_RERUN','Deleting\x20','../v2/cliUtils','Updated\x20config\x20file\x20name\x20to\x20-\x20','246eCdvjS','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','1669334merPYK','splice','startsWith','length','nestedKeyValue','isCLIEnabled','testObservability','indexOf','accessibilityOptions','skipSessionName','exports','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','../utils/constants','R_OK','BROWSERSTACK_SETUP_CONFIG_PATH','constants','setFrameworkDetail','browserstackAutomation','parse','false','3342CdEpUe','../../helpers/utilities','test','shutdown','reportConflictingEnvVarIssue','xuRwp','resolvedConfigFile','kvYkX','52685BiPeAZ','cSDWk','config','Error\x20in\x20closing\x20playwright','ogObO','resolve','gywAE','BROWSERSTACK_AUTOMATION','../utils/clientTroubleshootingService','stMmQ','assign','PLAYWRIGHT','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','trim','.browserstack','playwright-browserstack-sdk.config.js','trace_','win32','iTEsf','child_process','CDdGE','orqEd','Proxy\x20url\x20:\x20','Error\x20in\x20deleting\x20playwright\x20results','BhDVP','hQjrM','BBrGW','existsSync','winstonLogger','MODULE','--config','ysLve','./reporter/pwUtils','fOgjh','getConfig','W_OK','launchBuild','--disable-test-observability','browserstackSetupConfig.json','logLevel','env'];a43_0x1dd5=function(){return _0x4a56fb;};return a43_0x1dd5();}const a43_0x2adca4=a43_0xbf86;(function(_0x413767,_0x45176c){const _0x1574f2=a43_0xbf86,_0x108426=_0x413767();while(!![]){try{const _0x3a3518=-parseInt(_0x1574f2(0x1b5))/0x1+parseInt(_0x1574f2(0x1b3))/0x2*(-parseInt(_0x1574f2(0x1c9))/0x3)+-parseInt(_0x1574f2(0x1fa))/0x4+parseInt(_0x1574f2(0x1d1))/0x5*(-parseInt(_0x1574f2(0x1fc))/0x6)+parseInt(_0x1574f2(0x20e))/0x7+-parseInt(_0x1574f2(0x223))/0x8+parseInt(_0x1574f2(0x22e))/0x9;if(_0x3a3518===_0x45176c)break;else _0x108426['push'](_0x108426['shift']());}catch(_0x1542b0){_0x108426['push'](_0x108426['shift']());}}}(a43_0x1dd5,0xe1184));const fs=require('fs'),path=require(a43_0x2adca4(0x20a)),{spawn}=require(a43_0x2adca4(0x1e4)),{format}=require('util'),logger=require(a43_0x2adca4(0x203))[a43_0x2adca4(0x1ed)],{default:BrowserStackSetup}=require(a43_0x2adca4(0x25f)),helper=require(a43_0x2adca4(0x1ab)),utilities=require(a43_0x2adca4(0x1ca)),constants=require(a43_0x2adca4(0x1c1)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require(a43_0x2adca4(0x1f1)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a43_0x2adca4(0x259)),TestDetails=require(a43_0x2adca4(0x24a)),TestHubHandler=require(a43_0x2adca4(0x22a)),PerformanceTester=require(a43_0x2adca4(0x258)),BrowserstackCLI=require('../v2/browserstackCLI'),PerformanceEvents=require(a43_0x2adca4(0x237))['EVENTS'],CLIUtils=require(a43_0x2adca4(0x1b1)),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require(a43_0x2adca4(0x1d9)),getUserPlaywrightConfig=async(_0x48425f,_0x43f402)=>{const _0x401262=a43_0x2adca4,_0x11e9c0={'vWPKn':function(_0x8e018c){return _0x8e018c();},'RYlZO':function(_0x4f3226){return _0x4f3226();},'eBhzQ':function(_0x5f3df3,_0x349668){return _0x5f3df3(_0x349668);},'SpAqh':_0x401262(0x1cf),'UDYKt':_0x401262(0x233)},_0x13c0ba=!helper[_0x401262(0x247)](_0x48425f[_0x401262(0x1d3)]),_0x20bf1b=_0x13c0ba?path[_0x401262(0x1d6)](process['cwd'](),_0x48425f['config']):process[_0x401262(0x1ae)](),{resolveConfigFile:_0x4e95bb,resolveConfigLocation:_0x6f6e1e}=helper[_0x401262(0x24f)]()?helper[_0x401262(0x22d)](..._0x11e9c0[_0x401262(0x226)](getConfigLoaderPath)):helper[_0x401262(0x21c)][_0x401262(0x228)](null,_0x11e9c0['RYlZO'](getConfigLoaderPath)),_0x33274f=_0x4e95bb?_0x11e9c0[_0x401262(0x242)](_0x4e95bb,_0x20bf1b):helper[_0x401262(0x1b9)](_0x11e9c0['eBhzQ'](_0x6f6e1e,_0x20bf1b),[_0x11e9c0[_0x401262(0x238)]]),_0x505702={};if(_0x13c0ba){const _0x125719=_0x43f402['findIndex'](_0xdbe318=>_0xdbe318===_0x401262(0x1ef)||_0xdbe318==='-c'||_0xdbe318[_0x401262(0x1b7)](_0x401262(0x233)));_0x43f402[_0x401262(0x1b6)](_0x125719,_0x43f402[_0x125719][_0x401262(0x1b7)](_0x11e9c0[_0x401262(0x249)])?0x1:0x2);}const _0x23350b={};return _0x23350b[_0x401262(0x20a)]=_0x33274f,_0x23350b['config']=_0x505702,_0x23350b;},handleO11yRerun=_0x408ff0=>{const _0xed9861=a43_0x2adca4,_0xf52ffe={};_0xf52ffe['brpUJ']=_0xed9861(0x21d);const _0x420c8e=_0xf52ffe,_0x42fb2a=helper[_0xed9861(0x1a9)](process['env'][_0xed9861(0x1af)]);if(_0x42fb2a){const _0x5d76c8=process[_0xed9861(0x1f9)]['BROWSERSTACK_RERUN_TESTS'],_0x5f10de=[];if(helper[_0xed9861(0x25c)](_0x5d76c8)&&!helper[_0xed9861(0x247)](_0x5d76c8)){_0x5d76c8[_0xed9861(0x23d)](',')['map'](_0x3cbd50=>{const _0x2e04fe=_0xed9861;_0x5f10de[_0x2e04fe(0x231)]('('+_0x3cbd50[_0x2e04fe(0x1de)]()+')');});const _0x4884a1='^'+_0x5f10de['join']('|')+'$';_0x408ff0[_0xed9861(0x231)](_0x420c8e[_0xed9861(0x244)],_0x4884a1);}}},spawnOriginalProcess=_0x1b2e07=>{const _0x396b57=a43_0x2adca4,_0x35a795={'uUMsW':function(_0x48593,_0x1de44d,_0x4a5a92,_0x193da2){return _0x48593(_0x1de44d,_0x4a5a92,_0x193da2);},'JPFtC':_0x396b57(0x23b),'CDdGE':_0x396b57(0x240),'xuRwp':_0x396b57(0x256),'FurUj':function(_0x183cf7,_0x4c0b0d){return _0x183cf7===_0x4c0b0d;},'cSDWk':_0x396b57(0x1e2),'ysLve':'inherit'};_0x35a795[_0x396b57(0x209)](spawn,helper[_0x396b57(0x24f)]()?_0x35a795[_0x396b57(0x22b)]:_0x35a795[_0x396b57(0x1e5)],[_0x35a795[_0x396b57(0x1ce)],..._0x1b2e07[_0x396b57(0x21f)](0x1)],{'shell':_0x35a795['FurUj'](process[_0x396b57(0x20d)],_0x35a795[_0x396b57(0x1d2)]),'stdio':_0x35a795[_0x396b57(0x1f0)],'cwd':process['cwd']()});},isTestCommand=(_0x333617,_0xaa6e08)=>{const _0xb99e9e=a43_0x2adca4,_0x1f6654={};_0x1f6654[_0xb99e9e(0x200)]=function(_0x4fc363,_0x1a3b9d){return _0x4fc363>_0x1a3b9d;},_0x1f6654['ogObO']=function(_0x2132be,_0x491e7d){return _0x2132be===_0x491e7d;},_0x1f6654[_0xb99e9e(0x250)]=_0xb99e9e(0x1cb);const _0x15d21d=_0x1f6654;if(_0x15d21d[_0xb99e9e(0x200)](_0xaa6e08['length'],0x1)&&_0x15d21d[_0xb99e9e(0x1d5)](_0xaa6e08[0x1],_0x15d21d[_0xb99e9e(0x250)]))return!![];return![];};async function run(_0x200ba0,_0xf802da,_0x2d7b17){const _0x34b380=a43_0x2adca4,_0x1543e3={'stMmQ':_0x34b380(0x1df),'rmrIw':function(_0x350616){return _0x350616();},'TAaij':function(_0x9c9c88){return _0x9c9c88();},'rofbp':function(_0x19dd38,_0x5f0834){return _0x19dd38+_0x5f0834;},'jAYfZ':_0x34b380(0x1d4),'ybaug':function(_0x4f082a,_0x5be87b){return _0x4f082a(_0x5be87b);},'jHXEp':'pw_result.json','jBSOV':function(_0x3c1301,_0x47dd4b){return _0x3c1301+_0x47dd4b;},'orqEd':_0x34b380(0x20c),'voXwf':'BrowserStack\x20config\x20file\x20not\x20found.','lkxtL':function(_0x8b071a,_0xd75228){return _0x8b071a<_0xd75228;},'bxQxU':function(_0xf8aac4,_0x5a73ca){return _0xf8aac4===_0x5a73ca;},'iTEsf':_0x34b380(0x1c8),'XNplz':_0x34b380(0x1f6),'YVZml':function(_0x1d37a5,_0x5aa78c){return _0x1d37a5>=_0x5aa78c;},'TGWAZ':_0x34b380(0x207),'iZWyp':function(_0x356a2c,_0x31a046){return _0x356a2c!=_0x31a046;},'FZTnq':function(_0x4bbf6a,_0x1f2b12,_0x4a5ce9){return _0x4bbf6a(_0x1f2b12,_0x4a5ce9);},'dNvlu':'true','uqLSU':_0x34b380(0x1f7),'skIlc':_0x34b380(0x25e),'fOgjh':_0x34b380(0x1e0),'pRboT':function(_0xe8a284,_0x47e088){return _0xe8a284-_0x47e088;},'LqQtb':_0x34b380(0x1b2),'aZyFW':function(_0x57a2e4,_0x9d6725){return _0x57a2e4>_0x9d6725;},'eUhHx':function(_0x53b387,_0x4d0b7b,_0x2c63c8,_0x1ae8ec){return _0x53b387(_0x4d0b7b,_0x2c63c8,_0x1ae8ec);},'hJSBa':_0x34b380(0x23b),'GCULr':_0x34b380(0x240),'anuHL':_0x34b380(0x256),'kvYkX':'test','gywAE':'--config','hQjrM':function(_0x1de91f,_0x4ee8b5){return _0x1de91f===_0x4ee8b5;},'BBrGW':_0x34b380(0x1e2),'gIgTF':function(_0x1e6929,_0x38d3dd){return _0x1e6929===_0x38d3dd;},'taOOR':_0x34b380(0x24c),'BhDVP':'close','JdRAu':function(_0x24deb1,_0x325276){return _0x24deb1|_0x325276;},'qsVCE':function(_0x168fd5,_0x335495){return _0x168fd5+_0x335495;},'YYjWi':_0x34b380(0x1dd),'qHQPb':_0x34b380(0x1e8)};try{const _0x40337c=path[_0x34b380(0x24d)](helper['homedir'](),_0x1543e3[_0x34b380(0x1da)]);try{fs[_0x34b380(0x23f)](_0x40337c,_0x1543e3[_0x34b380(0x236)](fs[_0x34b380(0x1c4)][_0x34b380(0x1c2)],fs['constants'][_0x34b380(0x1f4)]));}catch(_0x357aab){ClientTroubleShootingService[_0x34b380(0x235)]();}}catch(_0x4d59fd){logger[_0x34b380(0x206)](_0x1543e3[_0x34b380(0x201)](_0x1543e3[_0x34b380(0x213)],_0x4d59fd));}try{const _0x571270=path[_0x34b380(0x24d)](helper[_0x34b380(0x24e)](),_0x1543e3[_0x34b380(0x1da)],_0x1543e3[_0x34b380(0x254)]);fs[_0x34b380(0x1ec)](_0x571270)&&fs['unlinkSync'](_0x571270);}catch(_0x1ab7b5){logger['debug'](_0x1543e3[_0x34b380(0x201)](_0x1543e3['qHQPb'],_0x1ab7b5));}if(!_0x1543e3[_0x34b380(0x22c)](isTestCommand,_0x200ba0,_0xf802da)){_0x1543e3[_0x34b380(0x246)](spawnOriginalProcess,_0xf802da);return;}await PerformanceTester[_0x34b380(0x252)](PerformanceEvents[_0x34b380(0x1ac)],async()=>{const _0x38fbc2=_0x34b380,_0x2d6166={'VdNGw':function(_0x126eab,_0x15e01c){const _0x1b1563=a43_0xbf86;return _0x1543e3[_0x1b1563(0x246)](_0x126eab,_0x15e01c);},'zTGkc':_0x1543e3[_0x38fbc2(0x1da)],'JvOXH':_0x1543e3[_0x38fbc2(0x254)],'pWZSZ':function(_0x1206c7,_0x4103b9){const _0x1de092=_0x38fbc2;return _0x1543e3[_0x1de092(0x219)](_0x1206c7,_0x4103b9);},'erDcb':_0x1543e3[_0x38fbc2(0x1e6)]};if(!_0x2d7b17[_0x38fbc2(0x1d3)]){logger['error'](_0x1543e3['voXwf']);return;}await _0x2d7b17['initialize'](_0x200ba0),CLIUtils[_0x38fbc2(0x1c5)](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x38fbc2(0x1dc)]),BrowserstackCLI[_0x38fbc2(0x21b)]()['setBrowserstackConfig'](_0x2d7b17[_0x38fbc2(0x1d3)],_0x2d7b17['configPath'],_0x2d7b17[_0x38fbc2(0x25a)]),await BrowserstackCLI[_0x38fbc2(0x21b)]()['bootstrap']();for(var _0x16cd2e=0x0;_0x1543e3[_0x38fbc2(0x1fb)](_0x16cd2e,constants['INTERNALLY_USED_ENV_VARS'][_0x38fbc2(0x1b8)]);_0x16cd2e++){var _0x34644d=constants[_0x38fbc2(0x253)][_0x16cd2e];process[_0x38fbc2(0x1f9)][_0x34644d]&&await ClientTroubleShootingService[_0x38fbc2(0x1cd)](_0x34644d);}const _0x4157d3=BrowserstackCLI[_0x38fbc2(0x21b)]()[_0x38fbc2(0x1f3)]();!helper[_0x38fbc2(0x1ad)](_0x4157d3[_0x38fbc2(0x1c6)])&&(process['env'][_0x38fbc2(0x1d8)]=!![]);_0x1543e3['bxQxU'](_0x4157d3[_0x38fbc2(0x1c6)],![])&&(process['env'][_0x38fbc2(0x1d8)]=_0x1543e3[_0x38fbc2(0x1e3)],_0xf802da=_0xf802da[_0x38fbc2(0x224)](_0x3f0ccb=>_0x3f0ccb!==_0x38fbc2(0x1ff)));const _0x24832c=_0xf802da[_0x38fbc2(0x1bc)](_0x1543e3['XNplz']);(_0x1543e3[_0x38fbc2(0x211)](_0x24832c,0x0)||_0x1543e3[_0x38fbc2(0x205)](_0x4157d3[_0x38fbc2(0x1bb)],![]))&&(process[_0x38fbc2(0x1f9)][_0x38fbc2(0x229)]=_0x1543e3[_0x38fbc2(0x1e3)],_0xf802da=_0xf802da['filter'](_0xb74b86=>_0xb74b86!=='--disable-test-observability'));!helper[_0x38fbc2(0x247)](_0x2d7b17['cliConfig'])&&_0x2d7b17[_0x38fbc2(0x25a)][_0x38fbc2(0x1fe)](_0x1543e3['TGWAZ'])&&(process[_0x38fbc2(0x1f9)][_0x38fbc2(0x1d8)]=_0x2d7b17[_0x38fbc2(0x25a)][_0x38fbc2(0x1a7)](_0x1543e3['TGWAZ'])||!![]);_0x1543e3['iZWyp'](_0x2d7b17['config'][_0x38fbc2(0x1bb)],null)&&!helper[_0x38fbc2(0x1a9)](process[_0x38fbc2(0x1f9)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process['env'][_0x38fbc2(0x229)]=process['env'][_0x38fbc2(0x229)]||_0x2d7b17['config'][_0x38fbc2(0x1bb)]);const _0x4519f5=!helper[_0x38fbc2(0x1ad)](process['env'][_0x38fbc2(0x229)]);_0x2d7b17[_0x38fbc2(0x1d3)][_0x38fbc2(0x1bd)]&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x38fbc2(0x215)](_0x2d7b17[_0x38fbc2(0x1d3)]['accessibilityOptions']));let _0x1b5ca7=![];_0x2d7b17['config'][_0x38fbc2(0x214)]&&(_0x1b5ca7=!![],process[_0x38fbc2(0x1f9)][_0x38fbc2(0x23a)]=_0x2d7b17['config']['accessibility']);const _0x538a4f=_0xf802da['concat'](),_0x56eba0=await _0x1543e3[_0x38fbc2(0x22c)](getUserPlaywrightConfig,_0x200ba0,_0xf802da);if(helper['isUndefined'](_0x56eba0)){_0x1543e3[_0x38fbc2(0x246)](spawnOriginalProcess,_0x538a4f);return;}const _0x1f66c9=_0x56eba0[_0x38fbc2(0x20a)]?path['dirname'](_0x56eba0['path']):process[_0x38fbc2(0x1ae)]();process[_0x38fbc2(0x1f9)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x1f66c9,await PerformanceTester['measureWrapper'](PerformanceEvents[_0x38fbc2(0x210)],async()=>{const _0x424092=_0x38fbc2;!BrowserstackCLI['getInstance']()[_0x424092(0x1fd)]()&&await TestHubHandler[_0x424092(0x1f5)](FRAMEWORKS['PLAYWRIGHT'],_0x2d7b17),_0x4519f5&&_0x2d6166[_0x424092(0x22f)](handleO11yRerun,_0xf802da);})();if(!BrowserstackCLI[_0x38fbc2(0x21b)]()['isRunning']()){let _0x5e3f5c=_0x1543e3[_0x38fbc2(0x205)](process[_0x38fbc2(0x1f9)][_0x38fbc2(0x23a)],_0x1543e3[_0x38fbc2(0x234)]);_0x5e3f5c=_0x5e3f5c||_0x1543e3[_0x38fbc2(0x246)](checkAccessibilityPlatformConfig,_0x2d7b17['config']),process['env'][_0x38fbc2(0x23a)]=_0x5e3f5c,_0x5e3f5c&&_0x1543e3[_0x38fbc2(0x246)](setAccessibilityCapabilities,_0x2d7b17[_0x38fbc2(0x1d3)]);}const _0x1f566f=path[_0x38fbc2(0x24d)](_0x56eba0[_0x38fbc2(0x20a)]?path[_0x38fbc2(0x20f)](_0x56eba0['path']):process[_0x38fbc2(0x1ae)](),_0x1543e3['uqLSU']);fs[_0x38fbc2(0x217)](_0x1f566f,helper['serializeToYamlString'](_0x2d7b17[_0x38fbc2(0x1d3)])),process[_0x38fbc2(0x1f9)][_0x38fbc2(0x1c3)]=_0x1f566f,helper[_0x38fbc2(0x20b)]();let _0x14cd28='';_0x1543e3[_0x38fbc2(0x205)](helper['getPackageType'](),constants[_0x38fbc2(0x1a8)][_0x38fbc2(0x1ee)])?_0x14cd28=_0x1543e3[_0x38fbc2(0x225)]:_0x14cd28=_0x1543e3[_0x38fbc2(0x1f2)];let _0x568704='';if(helper['isTypescriptProject'](_0x56eba0[_0x38fbc2(0x20a)])){_0x568704=_0x38fbc2(0x248);const _0x5c9c20=_0x14cd28[_0x38fbc2(0x23d)]('.');_0x5c9c20[_0x1543e3[_0x38fbc2(0x230)](_0x5c9c20[_0x38fbc2(0x1b8)],0x1)]='ts',_0x14cd28=_0x5c9c20[_0x38fbc2(0x24d)]('.'),logger['debug'](_0x1543e3[_0x38fbc2(0x23c)](_0x1543e3[_0x38fbc2(0x255)],_0x14cd28));}else _0x568704='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x5019e5=path[_0x38fbc2(0x24d)](_0x56eba0['path']?path[_0x38fbc2(0x20f)](_0x56eba0[_0x38fbc2(0x20a)]):process[_0x38fbc2(0x1ae)](),_0x14cd28);let _0x2b5967=_0x56eba0[_0x38fbc2(0x20a)]?_0x56eba0[_0x38fbc2(0x20a)]:'';_0x2b5967=_0x1543e3['aZyFW'](_0x2b5967['length'],0x0)?path['resolve'](_0x2b5967):'',process[_0x38fbc2(0x1f9)][_0x38fbc2(0x232)]=_0x2b5967;const _0x23b209=helper['getProxyUrl'](_0x2d7b17[_0x38fbc2(0x1d3)]),_0x441bd3=helper['getNoProxy'](_0x2d7b17[_0x38fbc2(0x1d3)]);logger[_0x38fbc2(0x206)](_0x38fbc2(0x1e7)+_0x23b209),logger[_0x38fbc2(0x206)]('No\x20Proxy\x20:\x20'+_0x441bd3);_0x23b209&&(_0x568704=_0x1543e3[_0x38fbc2(0x219)](_0x38fbc2(0x239)+_0x23b209+_0x38fbc2(0x1c0)+_0x441bd3+_0x38fbc2(0x1b4),_0x568704));helper['filterBrowserstackArgs']({},_0xf802da),fs[_0x38fbc2(0x217)](_0x5019e5,_0x568704),PerformanceTester['end'](PerformanceEvents[_0x38fbc2(0x251)]);const _0x25df48=_0x1543e3[_0x38fbc2(0x25b)](spawn,helper[_0x38fbc2(0x24f)]()?_0x1543e3[_0x38fbc2(0x1aa)]:_0x1543e3[_0x38fbc2(0x243)],[_0x1543e3[_0x38fbc2(0x21a)],_0x1543e3[_0x38fbc2(0x1d0)],_0x1543e3[_0x38fbc2(0x1d7)],_0x1543e3[_0x38fbc2(0x1ea)](process[_0x38fbc2(0x20d)],_0x1543e3['BBrGW'])?'\x22'+_0x5019e5+'\x22':_0x5019e5,..._0xf802da[_0x38fbc2(0x21f)](0x2)],{'shell':_0x1543e3['gIgTF'](process['platform'],_0x1543e3[_0x38fbc2(0x1eb)]),'stdio':_0x1543e3[_0x38fbc2(0x212)],'cwd':process[_0x38fbc2(0x1ae)](),'env':Object[_0x38fbc2(0x1db)]({},process[_0x38fbc2(0x1f9)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x38fbc2(0x218)](_0x200ba0),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x2d7b17[_0x38fbc2(0x1d3)][_0x38fbc2(0x21e)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x2d7b17['config'][_0x38fbc2(0x21e)][_0x38fbc2(0x1be)],'BROWSERSTACK_LOG_LEVEL':_0x2d7b17[_0x38fbc2(0x1d3)][_0x38fbc2(0x1f8)]})}),_0xb13e07=()=>{const _0x63ec5a=_0x38fbc2;try{const _0x5a8fc6=path[_0x63ec5a(0x24d)](helper[_0x63ec5a(0x24e)](),_0x2d6166['zTGkc'],_0x2d6166['JvOXH']);if(fs['existsSync'](_0x5a8fc6)){let _0x149105=fs['readFileSync'](_0x5a8fc6);_0x149105=JSON[_0x63ec5a(0x1c7)](_0x149105),_0x2d7b17['errorMessage']=_0x149105,fs[_0x63ec5a(0x257)](_0x5a8fc6);}}catch(_0xcd55cf){logger[_0x63ec5a(0x206)](_0x2d6166[_0x63ec5a(0x216)](_0x2d6166['erDcb'],_0xcd55cf));}};_0x25df48['on'](_0x1543e3[_0x38fbc2(0x1e9)],async _0xdd298=>{const _0x3958a1=_0x38fbc2,_0x221e2d={};_0x221e2d[_0x3958a1(0x222)]=_0x1543e3[_0x3958a1(0x1da)];const _0x3b95be=_0x221e2d;try{PerformanceTester[_0x3958a1(0x241)](PerformanceEvents[_0x3958a1(0x227)]),_0x1543e3[_0x3958a1(0x208)](_0xb13e07),await TestHubHandler['stop'](),await ClientTroubleShootingService[_0x3958a1(0x220)]();const _0x54cf04=BrowserstackCLI[_0x3958a1(0x1ba)]();await BrowserstackCLI[_0x3958a1(0x21b)]()['stop'](),TestDetails[_0x3958a1(0x1cc)](),_0x1543e3[_0x3958a1(0x204)](printBuildLink),await utilities['finalExecution'](_0x2d7b17,_0x54cf04),process[_0x3958a1(0x202)]=_0xdd298,logger[_0x3958a1(0x206)](_0x3958a1(0x221)+_0xdd298),logger[_0x3958a1(0x25d)](_0x3958a1(0x1b0)+_0x5019e5),fs[_0x3958a1(0x257)](_0x5019e5);fs[_0x3958a1(0x1ec)](_0x1f566f)&&(logger[_0x3958a1(0x206)](_0x3958a1(0x1b0)+_0x1f566f),fs[_0x3958a1(0x257)](_0x1f566f));const _0x4d0be3=fs[_0x3958a1(0x24b)](path['join'](helper[_0x3958a1(0x24e)](),_0x1543e3['stMmQ']))[_0x3958a1(0x224)](_0x565f59=>_0x565f59['startsWith'](_0x3958a1(0x1e1)));_0x4d0be3[_0x3958a1(0x245)](_0x2184ac=>{const _0x353a59=_0x3958a1;fs[_0x353a59(0x257)](path[_0x353a59(0x24d)](helper['homedir'](),_0x3b95be[_0x353a59(0x222)],_0x2184ac));});}catch(_0x5eb080){logger[_0x3958a1(0x206)](_0x1543e3[_0x3958a1(0x23c)](_0x1543e3[_0x3958a1(0x23e)],_0x5eb080));}});})();}module[a43_0x2adca4(0x1bf)]=run;
|
|
2
|
+
'use strict';function a43_0x3c0d(){const _0x2736b4=['49207wIJILN','apply','../../helpers/performance/performance-tester','../../helpers/utilities','Updated\x20config\x20file\x20name\x20to\x20-\x20','emcdz','fEkRN','writeFileSync','BJQhx','MXVHE','RWxpp','5EQItRd','BROWSERSTACK_TEST_ACCESSIBILITY_YML','forEach','2woUInU','DRhCI','PuuuM','has','shutdown','child_process','test','resolve','No\x20Proxy\x20:\x20','Oqrej','isUndefined','splice','isTypescriptProject','bootstrap','initialize','getConfigPath','SDK_PRE_INITIALIZE','push','PACKAGE_TYPE','gxacz','XFJHf','isRunning','BROWSERSTACK_AUTOMATION','setFrameworkDetail','Playwright\x20process\x20exited\x20with\x20code\x20','requireConfigLoaderYarnPnP','xKrVo','rmAtY','xjrsr','constants','DbSkK','vPrlQ','indexOf','QKyzq','testObservability','wBwYt','playwright-browserstack-sdk.config.js','W_OK','220736WtTQez','USER_CONFIG_DETAILS_PATH','winstonLogger','platform','1090uZDmOe','resolvedConfigFile','setBrowserstackConfig','nHfog','Error\x20in\x20closing\x20playwright','cliConfig','zFwkC','Deleting\x20','BROWSERSTACK_SETUP_CONFIG_PATH','EVENTS','clearTempPWConfig','xBUuO','stringify','PLAYWRIGHT','inherit','isCLIEnabled','kSarV','util','mJuKL','BrowserStack\x20config\x20file\x20not\x20found.','pw_result.json','../../helpers/helper','kEOPw','get','trace_','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','../../helpers/logger','filter','--disable-test-observability','11zNTykr','MUwDn','psuZv','408499brGMad','DcZIQ','--config','Error\x20in\x20deleting\x20playwright\x20results','fmsRe','stop','browserstackAutomation','ywkvd','getPackageType','CJzLK','trim','449301BIKujC','unlinkSync','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','isFalse','BROWSERSTACK_RERUN','gEbAg','fjoSt','logLevel','exports','../utils/clientTroubleshootingService','../../helpers/test-observability/constants','cPNRk','56DDrzRJ','fYXpa','assign','BROWSERSTACK_TEST_OBSERVABILITY','reportDotBrowserStackFolderNotAccessibleIssue','gVpEY','yarn','./accessibility-helper','./reporter/test-details','launchBuild','YXmUE','dirname','../v2/TestInfo','isTrue','UmeJr','config','automation','../../helpers/accessibility-automation/helper','BROWSERSTACK_PW_CONFIG_DIR','accessibilityOptions','cwd','VcsSg','../../helpers/BrowserStackSetup','skipSessionStatus','SDK_SETUP','getProxyUrl','errorMessage','path','error','npx','eRedv','reportConflictingEnvVarIssue','379518gWWCqN','slice','getNoProxy','testContextOptions','false','XAlVm','concat','accessibility','accessSync','INTERNALLY_USED_ENV_VARS','MODULE','gshbQ','RFNXY','length','measureWrapper','yeIOf','getInstance','hFKcj','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','pYrkO','serializeToYamlString','exitCode','startsWith','qZYKK','info','EuZHs','yVRSU','split','validateRerunTestList','env','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','1345632DQJyOg','debug','../../helpers/testhub/testhubHandler','nBdAx','Error\x20in\x20getting\x20funnel\x20data\x20results','eynYK','YdiXm','../utils/constants','isYarnPnP','zQPVq','join','readFileSync','./reporter/pwUtils','xezmT','MRmbV','homedir','end','nestedKeyValue','playwright-browserstack-sdk.config.cjs','reportFinalDetectionState','BROWSERSTACK_RERUN_TESTS','SDK_POST_INITIALIZE','qQYPC','.browserstack','PIJFV','playwright','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','31797IWWwQi','YxtOK','true','existsSync'];a43_0x3c0d=function(){return _0x2736b4;};return a43_0x3c0d();}const a43_0x397667=a43_0x4466;(function(_0x52ea03,_0x1607e1){const _0x31e2cd=a43_0x4466,_0x2ae2e3=_0x52ea03();while(!![]){try{const _0x12fcba=parseInt(_0x31e2cd(0x133))/0x1+-parseInt(_0x31e2cd(0x74))/0x2*(-parseInt(_0x31e2cd(0xc9))/0x3)+parseInt(_0x31e2cd(0x9a))/0x4+-parseInt(_0x31e2cd(0x71))/0x5*(-parseInt(_0x31e2cd(0xf5))/0x6)+-parseInt(_0x31e2cd(0xbe))/0x7*(-parseInt(_0x31e2cd(0xd5))/0x8)+parseInt(_0x31e2cd(0x12f))/0x9*(-parseInt(_0x31e2cd(0x9e))/0xa)+parseInt(_0x31e2cd(0xbb))/0xb*(-parseInt(_0x31e2cd(0x114))/0xc);if(_0x12fcba===_0x1607e1)break;else _0x2ae2e3['push'](_0x2ae2e3['shift']());}catch(_0x5ac9f8){_0x2ae2e3['push'](_0x2ae2e3['shift']());}}}(a43_0x3c0d,0x37d45));const fs=require('fs'),path=require(a43_0x397667(0xf0)),{spawn}=require(a43_0x397667(0x79)),{format}=require(a43_0x397667(0xaf)),logger=require(a43_0x397667(0xb8))[a43_0x397667(0x9c)],{default:BrowserStackSetup}=require(a43_0x397667(0xeb)),helper=require(a43_0x397667(0xb3)),utilities=require(a43_0x397667(0x136)),constants=require(a43_0x397667(0x11b)),{FRAMEWORKS}=require(a43_0x397667(0xd3)),{getConfigLoaderPath}=require(a43_0x397667(0x120)),{checkAccessibilityPlatformConfig}=require(a43_0x397667(0xe6)),{setAccessibilityCapabilities}=require(a43_0x397667(0xdc)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a43_0x397667(0xdd)),TestHubHandler=require(a43_0x397667(0x116)),PerformanceTester=require(a43_0x397667(0x135)),BrowserstackCLI=require('../v2/browserstackCLI'),PerformanceEvents=require('../../helpers/performance/constants')[a43_0x397667(0xa7)],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a43_0x397667(0xe1)),ClientTroubleShootingService=require(a43_0x397667(0xd2)),getUserPlaywrightConfig=async(_0x570bac,_0x236289)=>{const _0x2838ec=a43_0x397667,_0xc51673={'yVRSU':function(_0x28976a){return _0x28976a();},'xKrVo':function(_0x2b052f){return _0x2b052f();},'YdiXm':function(_0x5919d7,_0x162198){return _0x5919d7(_0x162198);},'nBdAx':_0x2838ec(0x9f),'fjoSt':'--config='},_0x5b2f65=!helper[_0x2838ec(0x7e)](_0x570bac[_0x2838ec(0xe4)]),_0x4b5bca=_0x5b2f65?path[_0x2838ec(0x7b)](process[_0x2838ec(0xe9)](),_0x570bac['config']):process[_0x2838ec(0xe9)](),{resolveConfigFile:_0x4f3030,resolveConfigLocation:_0x4274f3}=helper[_0x2838ec(0x11c)]()?helper[_0x2838ec(0x8d)](..._0xc51673[_0x2838ec(0x10f)](getConfigLoaderPath)):helper['requirePWModule'][_0x2838ec(0x134)](null,_0xc51673[_0x2838ec(0x8e)](getConfigLoaderPath)),_0x4b3eb4=_0x4f3030?_0xc51673[_0x2838ec(0x11a)](_0x4f3030,_0x4b5bca):helper[_0x2838ec(0x125)](_0xc51673[_0x2838ec(0x11a)](_0x4274f3,_0x4b5bca),[_0xc51673[_0x2838ec(0x117)]]),_0x17531a={};if(_0x5b2f65){const _0x54e4da=_0x236289['findIndex'](_0x9025fb=>_0x9025fb===_0x2838ec(0xc0)||_0x9025fb==='-c'||_0x9025fb['startsWith']('--config='));_0x236289[_0x2838ec(0x7f)](_0x54e4da,_0x236289[_0x54e4da]['startsWith'](_0xc51673[_0x2838ec(0xcf)])?0x1:0x2);}const _0x2509e7={};return _0x2509e7[_0x2838ec(0xf0)]=_0x4b3eb4,_0x2509e7[_0x2838ec(0xe4)]=_0x17531a,_0x2509e7;},handleO11yRerun=_0x4eb358=>{const _0x355aa9=a43_0x397667,_0x1e5252={};_0x1e5252[_0x355aa9(0x100)]='--grep';const _0x38138e=_0x1e5252,_0x2f4bef=helper[_0x355aa9(0xe2)](process[_0x355aa9(0x112)][_0x355aa9(0xcd)]);if(_0x2f4bef){const _0x3392d3=process[_0x355aa9(0x112)][_0x355aa9(0x128)],_0x1eaaa7=[];if(helper[_0x355aa9(0x111)](_0x3392d3)&&!helper[_0x355aa9(0x7e)](_0x3392d3)){_0x3392d3[_0x355aa9(0x110)](',')['map'](_0x13b946=>{const _0x366f00=_0x355aa9;_0x1eaaa7[_0x366f00(0x85)]('('+_0x13b946[_0x366f00(0xc8)]()+')');});const _0x39f765='^'+_0x1eaaa7[_0x355aa9(0x11e)]('|')+'$';_0x4eb358[_0x355aa9(0x85)](_0x38138e[_0x355aa9(0x100)],_0x39f765);}}},spawnOriginalProcess=_0x11a987=>{const _0x33b8bb=a43_0x397667,_0x26466f={'eynYK':function(_0x3729d5,_0x2a3358,_0x19931d,_0x46308c){return _0x3729d5(_0x2a3358,_0x19931d,_0x46308c);},'RDhEM':_0x33b8bb(0xdb),'PuuuM':_0x33b8bb(0xf2),'QKyzq':_0x33b8bb(0x12d),'vPrlQ':function(_0x3d4fb,_0x21b3c0){return _0x3d4fb===_0x21b3c0;},'asaxc':'win32','QUEgp':_0x33b8bb(0xac)};_0x26466f[_0x33b8bb(0x119)](spawn,helper[_0x33b8bb(0x11c)]()?_0x26466f['RDhEM']:_0x26466f[_0x33b8bb(0x76)],[_0x26466f[_0x33b8bb(0x95)],..._0x11a987['slice'](0x1)],{'shell':_0x26466f[_0x33b8bb(0x93)](process[_0x33b8bb(0x9d)],_0x26466f['asaxc']),'stdio':_0x26466f['QUEgp'],'cwd':process[_0x33b8bb(0xe9)]()});},isTestCommand=(_0x4c4603,_0x5c95bd)=>{const _0x72dcfd=a43_0x397667,_0x53c369={};_0x53c369[_0x72dcfd(0x12a)]=function(_0x191ca8,_0x13ef1c){return _0x191ca8>_0x13ef1c;},_0x53c369['wBwYt']=function(_0x3a3686,_0x2c4d36){return _0x3a3686===_0x2c4d36;},_0x53c369[_0x72dcfd(0xae)]=_0x72dcfd(0x7a);const _0xeb7af4=_0x53c369;if(_0xeb7af4[_0x72dcfd(0x12a)](_0x5c95bd[_0x72dcfd(0x102)],0x1)&&_0xeb7af4[_0x72dcfd(0x97)](_0x5c95bd[0x1],_0xeb7af4[_0x72dcfd(0xae)]))return!![];return![];};async function run(_0x5d081a,_0xa35b30,_0x2eb2cd){const _0x2a12ab=a43_0x397667,_0x3060e6={'DcZIQ':function(_0x2b2b15,_0xda1862){return _0x2b2b15(_0xda1862);},'ywkvd':_0x2a12ab(0x12b),'Oqrej':_0x2a12ab(0xb2),'cPNRk':function(_0x23003d,_0x42f4a1){return _0x23003d+_0x42f4a1;},'VcsSg':_0x2a12ab(0x118),'MRmbV':function(_0x21edda){return _0x21edda();},'PIJFV':function(_0xc2c862){return _0xc2c862();},'tZsjt':_0x2a12ab(0xa2),'gVcuf':_0x2a12ab(0xb1),'rmAtY':function(_0x37e3b1,_0xc07203){return _0x37e3b1<_0xc07203;},'UmeJr':function(_0x1f8ffb,_0x30c62d){return _0x1f8ffb===_0x30c62d;},'XFJHf':_0x2a12ab(0xf9),'YXmUE':_0x2a12ab(0xba),'fOoJe':function(_0x383350,_0x5bb329){return _0x383350>=_0x5bb329;},'izfJB':function(_0x31ccab,_0x253bab){return _0x31ccab===_0x253bab;},'NwWYR':_0x2a12ab(0xe5),'EuZHs':function(_0x4c9202,_0x205ba2){return _0x4c9202!=_0x205ba2;},'CJzLK':function(_0x5cb7c7,_0x502917,_0x49fb75){return _0x5cb7c7(_0x502917,_0x49fb75);},'DRhCI':function(_0x169e06,_0x1d29bc){return _0x169e06===_0x1d29bc;},'fYXpa':_0x2a12ab(0x131),'psuZv':function(_0x1f7bf9,_0x23606c){return _0x1f7bf9(_0x23606c);},'emcdz':'browserstackSetupConfig.json','mJuKL':function(_0x24c443,_0x1e2d34){return _0x24c443===_0x1e2d34;},'ZySZN':_0x2a12ab(0x126),'YxtOK':_0x2a12ab(0x98),'BJQhx':function(_0x148fa6,_0x4435ae){return _0x148fa6-_0x4435ae;},'qZYKK':_0x2a12ab(0x137),'fEkRN':function(_0x368cbe,_0x5f2294){return _0x368cbe>_0x5f2294;},'fmsRe':function(_0x598e17,_0x2ee34c){return _0x598e17+_0x2ee34c;},'zFwkC':function(_0x29c042,_0x2f88b4,_0x38e82b,_0x36698e){return _0x29c042(_0x2f88b4,_0x38e82b,_0x36698e);},'xBUuO':'yarn','jaamP':_0x2a12ab(0xf2),'gxacz':_0x2a12ab(0x12d),'RWxpp':_0x2a12ab(0x7a),'DbSkK':_0x2a12ab(0xc0),'MUwDn':function(_0x21d907,_0x536ac8){return _0x21d907===_0x536ac8;},'nHfog':'win32','scSQt':function(_0x10fddb,_0x5ddc32){return _0x10fddb===_0x5ddc32;},'eRedv':'inherit','napaV':'close','qImCb':function(_0x2ec33f,_0xf6bce1){return _0x2ec33f|_0xf6bce1;},'hFKcj':function(_0x511bb2,_0xdf368c){return _0x511bb2+_0xdf368c;},'gVpEY':'Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','XAlVm':function(_0x5c1c4d,_0x22d94a){return _0x5c1c4d+_0x22d94a;},'zQPVq':_0x2a12ab(0xc1),'yeIOf':function(_0x1a352c,_0x3740e2,_0x3b2cb9){return _0x1a352c(_0x3740e2,_0x3b2cb9);}};try{const _0x2b5cd8=path[_0x2a12ab(0x11e)](helper['homedir'](),_0x3060e6[_0x2a12ab(0xc5)]);try{fs[_0x2a12ab(0xfd)](_0x2b5cd8,_0x3060e6['qImCb'](fs['constants']['R_OK'],fs[_0x2a12ab(0x91)][_0x2a12ab(0x99)]));}catch(_0x545e21){ClientTroubleShootingService[_0x2a12ab(0xd9)]();}}catch(_0x3c177f){logger['debug'](_0x3060e6[_0x2a12ab(0x106)](_0x3060e6[_0x2a12ab(0xda)],_0x3c177f));}try{const _0x3d5891=path[_0x2a12ab(0x11e)](helper[_0x2a12ab(0x123)](),_0x3060e6[_0x2a12ab(0xc5)],_0x3060e6['Oqrej']);fs['existsSync'](_0x3d5891)&&fs['unlinkSync'](_0x3d5891);}catch(_0x357394){logger[_0x2a12ab(0x115)](_0x3060e6[_0x2a12ab(0xfa)](_0x3060e6[_0x2a12ab(0x11d)],_0x357394));}if(!_0x3060e6[_0x2a12ab(0x104)](isTestCommand,_0x5d081a,_0xa35b30)){_0x3060e6[_0x2a12ab(0xbf)](spawnOriginalProcess,_0xa35b30);return;}await PerformanceTester[_0x2a12ab(0x103)](PerformanceEvents[_0x2a12ab(0x84)],async()=>{const _0xe6015d=_0x2a12ab,_0x3f76b3={'BtaUy':function(_0x1a39cf,_0x573d82){const _0x4524d3=a43_0x4466;return _0x3060e6[_0x4524d3(0xbf)](_0x1a39cf,_0x573d82);},'xjrsr':_0x3060e6[_0xe6015d(0xc5)],'RFNXY':_0x3060e6[_0xe6015d(0x7d)],'kEOPw':function(_0x4a6504,_0x1dbe29){return _0x3060e6['cPNRk'](_0x4a6504,_0x1dbe29);},'GOofP':_0x3060e6[_0xe6015d(0xea)],'FgxOD':function(_0x35f2ee){const _0x4ce972=_0xe6015d;return _0x3060e6[_0x4ce972(0x122)](_0x35f2ee);},'gEbAg':function(_0x525797){const _0x5488b0=_0xe6015d;return _0x3060e6[_0x5488b0(0x12c)](_0x525797);},'MXVHE':function(_0x2a2121,_0x4dd404){return _0x3060e6['cPNRk'](_0x2a2121,_0x4dd404);},'pYrkO':_0x3060e6['tZsjt']};if(!_0x2eb2cd['config']){logger[_0xe6015d(0xf1)](_0x3060e6['gVcuf']);return;}await _0x2eb2cd[_0xe6015d(0x82)](_0x5d081a),CLIUtils[_0xe6015d(0x8b)](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0xe6015d(0xab)]),BrowserstackCLI[_0xe6015d(0x105)]()[_0xe6015d(0xa0)](_0x2eb2cd[_0xe6015d(0xe4)],_0x2eb2cd['configPath'],_0x2eb2cd['cliConfig']),await BrowserstackCLI[_0xe6015d(0x105)]()[_0xe6015d(0x81)]();for(var _0x4c84fd=0x0;_0x3060e6[_0xe6015d(0x8f)](_0x4c84fd,constants['INTERNALLY_USED_ENV_VARS'][_0xe6015d(0x102)]);_0x4c84fd++){var _0x4a6f26=constants[_0xe6015d(0xfe)][_0x4c84fd];process[_0xe6015d(0x112)][_0x4a6f26]&&await ClientTroubleShootingService[_0xe6015d(0xf4)](_0x4a6f26);}const _0x2ec8aa=BrowserstackCLI[_0xe6015d(0x105)]()['getConfig']();!helper[_0xe6015d(0xcc)](_0x2ec8aa[_0xe6015d(0xc4)])&&(process[_0xe6015d(0x112)][_0xe6015d(0x8a)]=!![]);_0x3060e6[_0xe6015d(0xe3)](_0x2ec8aa[_0xe6015d(0xc4)],![])&&(process[_0xe6015d(0x112)][_0xe6015d(0x8a)]=_0x3060e6[_0xe6015d(0x88)],_0xa35b30=_0xa35b30[_0xe6015d(0xb9)](_0x342c39=>_0x342c39!=='--disable-browserstack-automation'));const _0x5484a2=_0xa35b30[_0xe6015d(0x94)](_0x3060e6[_0xe6015d(0xdf)]);(_0x3060e6['fOoJe'](_0x5484a2,0x0)||_0x3060e6['izfJB'](_0x2ec8aa[_0xe6015d(0x96)],![]))&&(process[_0xe6015d(0x112)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x3060e6[_0xe6015d(0x88)],_0xa35b30=_0xa35b30[_0xe6015d(0xb9)](_0x587bd9=>_0x587bd9!==_0xe6015d(0xba)));!helper[_0xe6015d(0x7e)](_0x2eb2cd[_0xe6015d(0xa3)])&&_0x2eb2cd[_0xe6015d(0xa3)][_0xe6015d(0x77)](_0x3060e6['NwWYR'])&&(process['env'][_0xe6015d(0x8a)]=_0x2eb2cd[_0xe6015d(0xa3)][_0xe6015d(0xb5)](_0x3060e6['NwWYR'])||!![]);_0x3060e6[_0xe6015d(0x10e)](_0x2eb2cd[_0xe6015d(0xe4)][_0xe6015d(0x96)],null)&&!helper[_0xe6015d(0xe2)](process[_0xe6015d(0x112)][_0xe6015d(0xd8)])&&(process[_0xe6015d(0x112)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0xe6015d(0x112)][_0xe6015d(0xd8)]||_0x2eb2cd[_0xe6015d(0xe4)]['testObservability']);const _0xb3cec6=!helper['isFalse'](process['env']['BROWSERSTACK_TEST_OBSERVABILITY']);_0x2eb2cd[_0xe6015d(0xe4)][_0xe6015d(0xe8)]&&(process[_0xe6015d(0x112)][_0xe6015d(0xcb)]=JSON[_0xe6015d(0xaa)](_0x2eb2cd[_0xe6015d(0xe4)][_0xe6015d(0xe8)]));let _0x3343da=![];_0x2eb2cd['config'][_0xe6015d(0xfc)]&&(_0x3343da=!![],process[_0xe6015d(0x112)][_0xe6015d(0x72)]=_0x2eb2cd[_0xe6015d(0xe4)][_0xe6015d(0xfc)]);const _0x2ce326=_0xa35b30[_0xe6015d(0xfb)](),_0x472c64=await _0x3060e6[_0xe6015d(0xc7)](getUserPlaywrightConfig,_0x5d081a,_0xa35b30);if(helper[_0xe6015d(0x7e)](_0x472c64)){_0x3060e6[_0xe6015d(0xbf)](spawnOriginalProcess,_0x2ce326);return;}const _0x3127db=_0x472c64[_0xe6015d(0xf0)]?path['dirname'](_0x472c64[_0xe6015d(0xf0)]):process[_0xe6015d(0xe9)]();process['env'][_0xe6015d(0xe7)]=_0x3127db,await PerformanceTester[_0xe6015d(0x103)](PerformanceEvents[_0xe6015d(0x129)],async()=>{const _0x45cf97=_0xe6015d;!BrowserstackCLI['getInstance']()[_0x45cf97(0x89)]()&&await TestHubHandler[_0x45cf97(0xde)](FRAMEWORKS[_0x45cf97(0xab)],_0x2eb2cd),_0xb3cec6&&_0x3f76b3['BtaUy'](handleO11yRerun,_0xa35b30);})();if(!BrowserstackCLI[_0xe6015d(0x105)]()[_0xe6015d(0x89)]()){let _0x57a0aa=_0x3060e6[_0xe6015d(0x75)](process[_0xe6015d(0x112)][_0xe6015d(0x72)],_0x3060e6[_0xe6015d(0xd6)]);_0x57a0aa=_0x57a0aa||_0x3060e6[_0xe6015d(0xbf)](checkAccessibilityPlatformConfig,_0x2eb2cd['config']),process['env'][_0xe6015d(0x72)]=_0x57a0aa,_0x57a0aa&&_0x3060e6[_0xe6015d(0xbd)](setAccessibilityCapabilities,_0x2eb2cd['config']);}const _0x5a5c63=path[_0xe6015d(0x11e)](_0x472c64[_0xe6015d(0xf0)]?path[_0xe6015d(0xe0)](_0x472c64[_0xe6015d(0xf0)]):process['cwd'](),_0x3060e6[_0xe6015d(0x138)]);fs[_0xe6015d(0x6d)](_0x5a5c63,helper[_0xe6015d(0x109)](_0x2eb2cd[_0xe6015d(0xe4)])),process[_0xe6015d(0x112)][_0xe6015d(0xa6)]=_0x5a5c63,helper[_0xe6015d(0xa8)]();let _0x531cb3='';_0x3060e6[_0xe6015d(0xb0)](helper[_0xe6015d(0xc6)](),constants[_0xe6015d(0x86)][_0xe6015d(0xff)])?_0x531cb3=_0x3060e6['ZySZN']:_0x531cb3=_0x3060e6[_0xe6015d(0x130)];let _0xeee050='';if(helper[_0xe6015d(0x80)](_0x472c64[_0xe6015d(0xf0)])){_0xeee050='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x51c31d=_0x531cb3[_0xe6015d(0x110)]('.');_0x51c31d[_0x3060e6[_0xe6015d(0x6e)](_0x51c31d[_0xe6015d(0x102)],0x1)]='ts',_0x531cb3=_0x51c31d[_0xe6015d(0x11e)]('.'),logger[_0xe6015d(0x115)](_0x3060e6[_0xe6015d(0xd4)](_0x3060e6[_0xe6015d(0x10c)],_0x531cb3));}else _0xeee050=_0xe6015d(0x107);const _0x413607=path[_0xe6015d(0x11e)](_0x472c64['path']?path[_0xe6015d(0xe0)](_0x472c64[_0xe6015d(0xf0)]):process[_0xe6015d(0xe9)](),_0x531cb3);let _0xfb4b5f=_0x472c64['path']?_0x472c64[_0xe6015d(0xf0)]:'';_0xfb4b5f=_0x3060e6[_0xe6015d(0x6c)](_0xfb4b5f[_0xe6015d(0x102)],0x0)?path['resolve'](_0xfb4b5f):'',process[_0xe6015d(0x112)][_0xe6015d(0x9b)]=_0xfb4b5f;const _0x52ff39=helper[_0xe6015d(0xee)](_0x2eb2cd[_0xe6015d(0xe4)]),_0x408f12=helper[_0xe6015d(0xf7)](_0x2eb2cd[_0xe6015d(0xe4)]);logger[_0xe6015d(0x115)]('Proxy\x20url\x20:\x20'+_0x52ff39),logger[_0xe6015d(0x115)](_0xe6015d(0x7c)+_0x408f12);_0x52ff39&&(_0xeee050=_0x3060e6[_0xe6015d(0xc2)](_0xe6015d(0x113)+_0x52ff39+_0xe6015d(0x12e)+_0x408f12+_0xe6015d(0xb7),_0xeee050));helper['filterBrowserstackArgs']({},_0xa35b30),fs[_0xe6015d(0x6d)](_0x413607,_0xeee050),PerformanceTester[_0xe6015d(0x124)](PerformanceEvents[_0xe6015d(0xed)]);const _0x391643=_0x3060e6[_0xe6015d(0xa4)](spawn,helper['isYarnPnP']()?_0x3060e6[_0xe6015d(0xa9)]:_0x3060e6['jaamP'],[_0x3060e6[_0xe6015d(0x87)],_0x3060e6[_0xe6015d(0x70)],_0x3060e6[_0xe6015d(0x92)],_0x3060e6[_0xe6015d(0xbc)](process[_0xe6015d(0x9d)],_0x3060e6[_0xe6015d(0xa1)])?'\x22'+_0x413607+'\x22':_0x413607,..._0xa35b30[_0xe6015d(0xf6)](0x2)],{'shell':_0x3060e6['scSQt'](process[_0xe6015d(0x9d)],_0x3060e6[_0xe6015d(0xa1)]),'stdio':_0x3060e6[_0xe6015d(0xf3)],'cwd':process[_0xe6015d(0xe9)](),'env':Object[_0xe6015d(0xd7)]({},process[_0xe6015d(0x112)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0xe6015d(0x83)](_0x5d081a),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x2eb2cd[_0xe6015d(0xe4)][_0xe6015d(0xf8)][_0xe6015d(0xec)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x2eb2cd[_0xe6015d(0xe4)][_0xe6015d(0xf8)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x2eb2cd[_0xe6015d(0xe4)][_0xe6015d(0xd0)]})}),_0xc04596=()=>{const _0x189610=_0xe6015d;try{const _0x59c8af=path['join'](helper[_0x189610(0x123)](),_0x3f76b3[_0x189610(0x90)],_0x3f76b3[_0x189610(0x101)]);if(fs[_0x189610(0x132)](_0x59c8af)){let _0x2c2715=fs[_0x189610(0x11f)](_0x59c8af);_0x2c2715=JSON['parse'](_0x2c2715),_0x2eb2cd[_0x189610(0xef)]=_0x2c2715,fs[_0x189610(0xca)](_0x59c8af);}}catch(_0x5e6c5d){logger[_0x189610(0x115)](_0x3f76b3[_0x189610(0xb4)](_0x3f76b3['GOofP'],_0x5e6c5d));}};_0x391643['on'](_0x3060e6['napaV'],async _0x5a68ac=>{const _0x16730e=_0xe6015d,_0x146a62={};_0x146a62[_0x16730e(0x121)]=_0x3f76b3['xjrsr'];const _0x5288d1=_0x146a62;try{PerformanceTester['start'](PerformanceEvents['SDK_CLEANUP']),_0x3f76b3['FgxOD'](_0xc04596),await TestHubHandler['stop'](),await ClientTroubleShootingService[_0x16730e(0x127)]();const _0x3646f0=BrowserstackCLI[_0x16730e(0xad)]();await BrowserstackCLI[_0x16730e(0x105)]()[_0x16730e(0xc3)](),TestDetails[_0x16730e(0x78)](),_0x3f76b3[_0x16730e(0xce)](printBuildLink),await utilities['finalExecution'](_0x2eb2cd,_0x3646f0),process[_0x16730e(0x10a)]=_0x5a68ac,logger['debug'](_0x16730e(0x8c)+_0x5a68ac),logger[_0x16730e(0x10d)](_0x16730e(0xa5)+_0x413607),fs[_0x16730e(0xca)](_0x413607);fs['existsSync'](_0x5a5c63)&&(logger[_0x16730e(0x115)](_0x16730e(0xa5)+_0x5a5c63),fs[_0x16730e(0xca)](_0x5a5c63));const _0x24705a=fs['readdirSync'](path['join'](helper[_0x16730e(0x123)](),_0x3f76b3[_0x16730e(0x90)]))[_0x16730e(0xb9)](_0x3de346=>_0x3de346[_0x16730e(0x10b)](_0x16730e(0xb6)));_0x24705a[_0x16730e(0x73)](_0x49e58f=>{const _0x346539=_0x16730e;fs[_0x346539(0xca)](path['join'](helper[_0x346539(0x123)](),_0x5288d1[_0x346539(0x121)],_0x49e58f));});}catch(_0x1affe2){logger[_0x16730e(0x115)](_0x3f76b3[_0x16730e(0x6f)](_0x3f76b3[_0x16730e(0x108)],_0x1affe2));}});})();}function a43_0x4466(_0x3c49d3,_0x43e549){const _0x3c0db1=a43_0x3c0d();return a43_0x4466=function(_0x4466f3,_0x370c64){_0x4466f3=_0x4466f3-0x6c;let _0x25d424=_0x3c0db1[_0x4466f3];return _0x25d424;},a43_0x4466(_0x3c49d3,_0x43e549);}module[a43_0x397667(0xd1)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a44_0x1267(){const _0x45b803=['toString','VXZLS','compareVersions','debug','877334vkLwSR','./mock-process.js','\x20is\x20not\x20found','includes','LFGur','AcdpD','isHandlePWErrorSet','EEvat','imJxI','requirePWModule','./patches','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','1WMdTDg','Running\x20existing\x20global\x20setup','SXaJV','hOqLU','193552stxuXT','function','../../helpers/helper','777120pRCcGy','752116zANAwN','Not\x20able\x20to\x20import\x20globalSetup','./reporter/pwUtils','config','Call\x20to\x20child\x20fork\x20with\x20args\x20','6VFmDiv','fork','3614730zCgyuR','PLAYWRIGHT','1270218HwKFrF','env','PJzGs','153qsJxRP','resolve','vXekt','exports','util','QowaJ','../../helpers/logger','229208YqTSrQ','../../helpers/test-observability/utils','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','StkpO','format','CNWJP','winstonLogger'];a44_0x1267=function(){return _0x45b803;};return a44_0x1267();}const a44_0x3d2528=a44_0x404f;function a44_0x404f(_0x5d2d53,_0xbb57f0){const _0x126748=a44_0x1267();return a44_0x404f=function(_0x404f1e,_0x48a705){_0x404f1e=_0x404f1e-0xb7;let _0x3eee01=_0x126748[_0x404f1e];return _0x3eee01;},a44_0x404f(_0x5d2d53,_0xbb57f0);}(function(_0x294b53,_0x18f237){const _0x553aed=a44_0x404f,_0x19598d=_0x294b53();while(!![]){try{const _0x48ac72=-parseInt(_0x553aed(0xd7))/0x1*(-parseInt(_0x553aed(0xcb))/0x2)+-parseInt(_0x553aed(0xe8))/0x3+parseInt(_0x553aed(0xdf))/0x4+parseInt(_0x553aed(0xde))/0x5+-parseInt(_0x553aed(0xe4))/0x6*(parseInt(_0x553aed(0xc0))/0x7)+parseInt(_0x553aed(0xdb))/0x8*(-parseInt(_0x553aed(0xb9))/0x9)+parseInt(_0x553aed(0xe6))/0xa;if(_0x48ac72===_0x18f237)break;else _0x19598d['push'](_0x19598d['shift']());}catch(_0x54f6f9){_0x19598d['push'](_0x19598d['shift']());}}}(a44_0x1267,0x436b1));const util=require(a44_0x3d2528(0xbd)),child_process=require('child_process'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a44_0x3d2528(0xc1)),helper=require(a44_0x3d2528(0xdd)),{getLoadUtilsPath,getForkProcessPath}=require(a44_0x3d2528(0xe1)),{mockIsWorkerRedundant}=require(a44_0x3d2528(0xd5)),logger=require(a44_0x3d2528(0xbf))[a44_0x3d2528(0xc6)];module[a44_0x3d2528(0xbc)]=async function(_0x1bc9de){const _0x34428b=a44_0x3d2528,_0x22c791={'VXZLS':function(_0x3e2a4e,_0xf3407){return _0x3e2a4e(_0xf3407);},'QowaJ':function(_0xe23474){return _0xe23474();},'StkpO':_0x34428b(0xcc),'LFGur':function(_0x4f7d00){return _0x4f7d00();},'AcdpD':function(_0x4f10f9){return _0x4f10f9();},'waCVc':function(_0x4e20a7,_0x480a11){return _0x4e20a7(_0x480a11);},'imJxI':_0x34428b(0xd8),'hOqLU':function(_0x5b19ac,_0xa00d37){return _0x5b19ac(_0xa00d37);},'EEvat':function(_0x13f252,_0x4477f0){return _0x13f252>=_0x4477f0;},'CNWJP':'1.33.0','PJzGs':function(_0xab1336,_0x59b053,_0x37cbc3){return _0xab1336(_0x59b053,_0x37cbc3);},'vXekt':function(_0x108107,_0x439287){return _0x108107!==_0x439287;},'SXaJV':_0x34428b(0xdc),'FRquS':_0x34428b(0xe0),'YdMpz':function(_0x2a6144,_0x2364a9){return _0x2a6144(_0x2364a9);}},_0xfcbf13=child_process[_0x34428b(0xe5)];if(helper[_0x34428b(0xd1)]())try{_0x22c791[_0x34428b(0xd0)](mockIsWorkerRedundant);}catch(_0x481968){logger[_0x34428b(0xca)](_0x34428b(0xd6)+util[_0x34428b(0xc4)](_0x481968));}child_process[_0x34428b(0xe5)]=function(){const _0x4b656f=_0x34428b;return _0x22c791[_0x4b656f(0xc8)](debug,_0x4b656f(0xe3)+arguments[0x0]),arguments[0x0][_0x4b656f(0xce)](_0x22c791[_0x4b656f(0xbe)](getForkProcessPath))?arguments[0x0]=require[_0x4b656f(0xba)](_0x22c791[_0x4b656f(0xc3)]):logger['error']('Path\x20'+_0x22c791[_0x4b656f(0xcf)](getForkProcessPath)+_0x4b656f(0xcd)),_0xfcbf13['apply'](null,arguments);};if(process[_0x34428b(0xb7)][_0x34428b(0xc2)]){_0x22c791['waCVc'](debug,_0x22c791[_0x34428b(0xd3)]);try{const {loadGlobalHook:_0x6d5d7}=helper[_0x34428b(0xd4)]['apply'](null,_0x22c791[_0x34428b(0xbe)](getLoadUtilsPath)),_0x360a5b=_0x22c791[_0x34428b(0xda)](getFrameworkVersion,FRAMEWORKS[_0x34428b(0xe7)]);let _0x249598=_0x1bc9de;if(_0x22c791[_0x34428b(0xd2)](helper[_0x34428b(0xc9)](_0x360a5b,_0x22c791[_0x34428b(0xc5)]),0x0)){const _0x3442a5={};_0x3442a5[_0x34428b(0xe2)]=_0x1bc9de,_0x249598=_0x3442a5;}const _0x2fe1c2=await _0x22c791[_0x34428b(0xb8)](_0x6d5d7,_0x249598,process[_0x34428b(0xb7)][_0x34428b(0xc2)]);if(_0x22c791[_0x34428b(0xbb)](typeof _0x2fe1c2,_0x22c791[_0x34428b(0xd9)]))throw new Error(_0x22c791['FRquS']);return _0x2fe1c2['apply'](null,arguments);}catch(_0x367760){_0x22c791['YdMpz'](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x367760[_0x34428b(0xc7)]());}}};
|