browserstack-node-sdk 1.53.1 → 1.53.3
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 +6 -4
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a27_0x34a1(){const _0x28861f=['../../helpers/helper','__platformCaps','../utils/clientTroubleshootingService','_argv','__platform__','../../helpers/performance/performance-tester','setupCucumber','totalTests','testsPending','274598lcamPE','platformCaps','18825320yXrQoe','_configuration','365uncHHY','path','../../helpers/test-observability/utils','../../helpers/test-observability/requestQueueHandler','222051UwcmXM','includes','1497209YFzYyt','testsSkipped','63498KpAAUf','split','mochaOpts','_capability','testsAmbiguous','30ABmgEQ','resolvePaths','299444TQqEOm','_bsConfig','../v2/browserstackCLI','20|4|8|21|2|17|22|3|0|18|1|13|16|14|6|11|12|9|5|10|15|23|7|19','56ttEArh','formatter','_formatter','_testObservability','hzFcO','qhLCE','testsFailed','../utils/constants','_framework','testsUnknown','testSuitesFailed','framework','configuration','testsErrorMessage','testsUndefined','../../helpers/ai-sdk/autoHealHelper','366021xKHIXW','_mochaOpts','../../helpers/performance/constants'];a27_0x34a1=function(){return _0x28861f;};return a27_0x34a1();}const a27_0x99a358=a27_0x2f62;(function(_0x5c28e4,_0x4644d2){const _0x467b21=a27_0x2f62,_0x1e3c38=_0x5c28e4();while(!![]){try{const _0x2fba72=parseInt(_0x467b21(0x122))/0x1+-parseInt(_0x467b21(0x11a))/0x2+-parseInt(_0x467b21(0x12b))/0x3*(parseInt(_0x467b21(0x12d))/0x4)+parseInt(_0x467b21(0x11e))/0x5*(-parseInt(_0x467b21(0x126))/0x6)+-parseInt(_0x467b21(0x124))/0x7+parseInt(_0x467b21(0x131))/0x8*(parseInt(_0x467b21(0x141))/0x9)+parseInt(_0x467b21(0x11c))/0xa;if(_0x2fba72===_0x4644d2)break;else _0x1e3c38['push'](_0x1e3c38['shift']());}catch(_0x2c900a){_0x1e3c38['push'](_0x1e3c38['shift']());}}}(a27_0x34a1,0x7e32f));function a27_0x2f62(_0x28f779,_0x41ab6b){const _0x34a127=a27_0x34a1();return a27_0x2f62=function(_0x2f62a9,_0x35adc2){_0x2f62a9=_0x2f62a9-0x11a;let _0x53f0f7=_0x34a127[_0x2f62a9];return _0x53f0f7;},a27_0x2f62(_0x28f779,_0x41ab6b);}const path=require(a27_0x99a358(0x11f)),{requireModule,modifyCommand,getPlatformName,cleanupDrivers,isBrowserstackInfra}=require(a27_0x99a358(0x144)),constants=require(a27_0x99a358(0x138)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),RequestQueueHandler=require(a27_0x99a358(0x121)),{isTestObservabilitySession}=require(a27_0x99a358(0x120)),helper=require(a27_0x99a358(0x144)),PerformanceTester=require(a27_0x99a358(0x149)),PerformanceEvents=require(a27_0x99a358(0x143))['EVENTS'],{commandRepository}=require(a27_0x99a358(0x140)),BrowserstackCLI=require(a27_0x99a358(0x12f)),ClientTroubleShootingService=require(a27_0x99a358(0x146));class Launcher{constructor(_0x5e176b,_0x52be6a,_0x53c030,_0x4b665d=[]){const _0x5e984d=a27_0x99a358,_0x46d884={'qhLCE':_0x5e984d(0x130),'DIGvj':function(_0x422a53){return _0x422a53();},'hzFcO':function(_0x418d46){return _0x418d46();}},_0x815ce8=_0x46d884[_0x5e984d(0x136)][_0x5e984d(0x127)]('|');let _0x4b83b8=0x0;while(!![]){switch(_0x815ce8[_0x4b83b8++]){case'0':this[_0x5e984d(0x12e)]=_0x53c030;continue;case'1':this['_accessibilityAutomation']=_0x46d884['DIGvj'](isAccessibilityAutomationSession);continue;case'2':this[_0x5e984d(0x133)]=_0x52be6a[_0x5e984d(0x132)];continue;case'3':this[_0x5e984d(0x147)]=_0x4b665d;continue;case'4':this[_0x5e984d(0x11d)]=_0x52be6a[_0x5e984d(0x13d)]||{};continue;case'5':global[_0x5e984d(0x13b)]=0x0;continue;case'6':global['testsPassed']=0x0;continue;case'7':global[_0x5e984d(0x13e)]={};continue;case'8':this[_0x5e984d(0x11d)][_0x5e984d(0x13c)]=_0x5e176b;continue;case'9':global[_0x5e984d(0x125)]=0x0;continue;case'10':global[_0x5e984d(0x13f)]=0x0;continue;case'11':global[_0x5e984d(0x137)]=0x0;continue;case'12':global[_0x5e984d(0x14c)]=0x0;continue;case'13':global[_0x5e984d(0x145)]=this[_0x5e984d(0x11d)][_0x5e984d(0x11b)]||{};continue;case'14':global[_0x5e984d(0x14b)]=0x0;continue;case'15':global[_0x5e984d(0x13a)]=0x0;continue;case'16':global['testSuites']=0x0;continue;case'17':this[_0x5e984d(0x129)]=this[_0x5e984d(0x11d)]['capability'];continue;case'18':this[_0x5e984d(0x134)]=_0x46d884[_0x5e984d(0x135)](isTestObservabilitySession);continue;case'19':!constants['AI_ENABLED_FRAMEWORK'][_0x5e984d(0x123)](_0x5e176b)&&(commandRepository['setConfig'](_0x53c030),commandRepository['setFramework'](_0x5e176b));continue;case'20':this[_0x5e984d(0x139)]=_0x5e176b;continue;case'21':this[_0x5e984d(0x142)]=_0x52be6a[_0x5e984d(0x128)];continue;case'22':global[_0x5e984d(0x148)]=this[_0x5e984d(0x11d)]['platform'];continue;case'23':global[_0x5e984d(0x12a)]=0x0;continue;}break;}}[a27_0x99a358(0x14a)](_0x2ac67d,_0x5b5de8,_0xa71efa){const _0x14a3c8=a27_0x99a358,_0x22a422=_0x2ac67d[_0x14a3c8(0x12c)];_0x2ac67d.resolvePaths=async function(){const pathResults=await _0x22a422.apply(this,arguments);if(!pathResults.requirePaths){pathResults.requirePaths=[];}pathResults.requirePaths=[path.join(__dirname,'../cucumber-js/test.setup.js')].concat(pathResults.requirePaths,path.join(__dirname,_0xa71efa));return pathResults;};const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;_0x5b5de8.push('--format'),_0x5b5de8.push(`"${normalizedPath}"`);}run(){return new Promise(async(resolve,reject)=>{PerformanceTester.start(PerformanceEvents.SDK_PRE_TEST);require('../../helpers/setKeepAlive')();if(this._framework==='mocha'){const mochaRunHelper=requireModule('mocha/lib/cli/run-helpers.js','mocha');const Mocha=requireModule('mocha');if(isBrowserstackInfra()){modifyCommand();}const mochaHooks=require('../mocha/test.setup').mochaHooks;if(!helper.isUndefined(this._mochaOpts.mochaRequire)){this._mochaOpts.require=this._mochaOpts.mochaRequire;const plugins=await mochaRunHelper.handleRequires([this._mochaOpts.require]);Object.assign(this._mochaOpts,plugins);}const rootHooks={beforeAll:[mochaHooks.beforeAll],beforeEach:[mochaHooks.beforeEach],afterAll:[mochaHooks.afterAll],afterEach:[mochaHooks.afterEach]};if(isTestObservabilitySession()){const mochaObservabilityHooks=require('../mocha/test-observability/data-hooks').mochaHooks;rootHooks.beforeAll.unshift(mochaObservabilityHooks.beforeAll);rootHooks.afterAll.push(mochaObservabilityHooks.afterAll);}if(this._mochaOpts.rootHooks){this._mochaOpts.rootHooks.beforeAll&&rootHooks.beforeAll.unshift(...this._mochaOpts.rootHooks.beforeAll);this._mochaOpts.rootHooks.beforeEach&&rootHooks.beforeEach.unshift(...this._mochaOpts.rootHooks.beforeEach);this._mochaOpts.rootHooks.afterAll&&rootHooks.afterAll.push(...this._mochaOpts.rootHooks.afterAll);this._mochaOpts.rootHooks.afterEach&&rootHooks.afterEach.push(...this._mochaOpts.rootHooks.afterEach);}const userReporter=this._mochaOpts.reporter;let mochaTimeout=this._mochaOpts.timeout*1;if(this._mochaOpts.timeout===0){mochaTimeout=0;}else{mochaTimeout+=constants.BSTACK_DELTA;}const mochaOpts={};Object.assign(mochaOpts,this._mochaOpts);const reporterOption={};Object.assign(reporterOption,this._mochaOpts.reporterOptions);Object.assign(reporterOption,{type:userReporter||'spec',testObservability:this._testObservability,bsConfig:this._bsConfig});mochaOpts.reporterOption=reporterOption;Object.assign(mochaOpts,{reporter:path.join(__dirname,'../mocha/bstack-reporter/customReporter.js'),parallel:false,rootHooks,isWorker:true,timeout:mochaTimeout});global.browserstackPlatformIndex=helper.nestedKeyValue(this._configuration,['platformIndex']);global.browserstackPercyBestPlatform=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','browserstackPercyBestPlatform']);global.percy=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','percy']);global.percyCaptureMode=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','percyCaptureMode']);global.capabilities=[this._capability];if(helper.isBrowserstackInfra()){if(this._bsConfig.testContextOptions.skipSessionName){global.__skipSessionName=true;}if(this._bsConfig.testContextOptions.skipSessionStatus){global.__skipSessionStatus=true;}}else{global.__skipSessionName=true;global.__skipSessionStatus=true;}if(this._bsConfig.turboScaleUrl){this._configuration.turboScaleUrl=this._bsConfig.turboScaleUrl;}const mocha=new Mocha(mochaOpts);mocha.prevRun=mocha.run;if(isTestObservabilitySession()){mocha.run=function(_){return mocha.prevRun(exit=>{const checkPendingUploadsInterval=setInterval(async()=>{PerformanceTester.start(PerformanceEvents.SDK_POST_TEST);if(RequestQueueHandler.getInstance().pendingUploads<=0){clearInterval(checkPendingUploadsInterval);await cleanupDrivers(global.__driversArray);resolve(exit);}},1000);});};}else{mocha.run=function(_){return mocha.prevRun(async exit=>{PerformanceTester.start(PerformanceEvents.SDK_POST_TEST);await cleanupDrivers(global.__driversArray);resolve(exit);});};}try{require('../../index').browserstackAgentV2(this._configuration,null,this._testObservability);}catch{}PerformanceTester.end(PerformanceEvents.SDK_PRE_TEST);const runProm=mochaRunHelper.runMocha(mocha,mochaOpts);runProm&&runProm.catch(er=>{reject(er);});}else if(this._framework==='cucumber-js'){let cucumberCli;global.capabilities=[this._capability];try{cucumberCli=requireModule('@cucumber/cucumber/lib/cli/index.js','@cucumber/cucumber');}catch(e){cucumberCli=requireModule('cucumber/lib/cli/index.js','cucumber');}const argv=this._argv;const index=argv.indexOf('cucumber-js');if(index>-1){argv.splice(index,1);}const timeoutFileName='../cucumber-js/timeout.setup.js';let paths;try{paths=requireModule('@cucumber/cucumber/lib/paths/paths.js','@cucumber/cucumber');this.setupCucumber(paths,argv,timeoutFileName);}catch(e){try{paths=requireModule('@cucumber/cucumber/lib/api/paths.js','@cucumber/cucumber');this.setupCucumber(paths,argv,timeoutFileName);}catch(e){let hookFileName='../cucumber-js/test.setup.js';let ConfigurationBuilder;try{ConfigurationBuilder=requireModule('@cucumber/cucumber/lib/cli/configuration_builder.js','@cucumber/cucumber').default;const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;argv.push('--format');argv.push(normalizedPath);}catch(e){ConfigurationBuilder=requireModule('cucumber/lib/cli/configuration_builder.js','cucumber').default;const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter_old_versions.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;argv.push('--format');argv.push(normalizedPath);hookFileName='../cucumber-js/test_old.setup.js';}const configBuilder=ConfigurationBuilder.prototype.build;ConfigurationBuilder.prototype.build=async function(){const builderHash=await configBuilder.call(this);builderHash.supportCodePaths.unshift(path.join(__dirname,hookFileName));builderHash.supportCodePaths.push(path.join(__dirname,timeoutFileName));return builderHash;};}}argv.push('--parallel');argv.push(`${this._configuration.maxWorkers}`);if(this._formatter&&this._formatter.length>0){for(let i=0;i<this._formatter.length;i++){const r=getPlatformName(this._capability).replace(/ /g,'_');if(this._formatter[i]!==undefined&&this._formatter[i].length>0){const formatterFinalOutputFileName=this._formatter[i][1];const formatterType=`${this._formatter[i][0]}`;if(formatterFinalOutputFileName!==undefined){const formatterOutputFile=`tmp/${r}${path.extname(formatterFinalOutputFileName)}`;argv.push('--format');argv.push(`${formatterType}:${formatterOutputFile}`);}else{argv.push('--format');argv.push(`${formatterType}:tmp/${r}`);}}}}const cucumber=new cucumberCli.default({argv:argv,cwd:process.cwd(),stdout:process.stdout,stderr:process.stderr,env:process.env});process.env.CONFIG=JSON.stringify(this._configuration);process.env.BSTACK_CONFIG=JSON.stringify(this._bsConfig);cucumber.run().then(async output=>{const _results={scenarios:global.testSuites,steps:global.totalTests,scenariosFailed:global.testSuitesFailed,stepsFailed:global.testsFailed,stepsPassed:global.testsPassed,stepsSkipped:global.testsSkipped,stepsPending:global.testsPending,stepsUndefined:global.testsUndefined,stepsUnknown:global.testsUnknown,stepsAmbiguous:global.testsAmbiguous,processSuccess:output.success,testsErrorMessage:global.testsErrorMessage};await RequestQueueHandler.getInstance().shutdown();resolve(_results);}).catch(async er=>{await RequestQueueHandler.getInstance().shutdown();reject(er);});}else if(this._framework==='vanilla'){global.capabilities=[this._capability];process.argv=this._configuration.args;try{modifyCommand();require('../../index').browserstackAgent(this._configuration);let i=0;process.on('beforeExit',async()=>{if(i>0){return;}i++;await cleanupDrivers(global.__driversArray);});require(this._configuration.file);}catch(er){console.error(er);await BrowserstackCLI.getInstance().stop();process.exitCode=1;reject(er);}resolve();}});}}module.exports=Launcher;
|
|
1
|
+
function a27_0x229c(){const _0x43abb6=['setConfig','5|19|22|10|12|18|20|17|13|7|16|9|4|0|23|1|6|14|8|3|21|11|15|2','_argv','../utils/clientTroubleshootingService','resolvePaths','testsUnknown','formatter','VIgRt','testsErrorMessage','_formatter','AI_ENABLED_FRAMEWORK','911670KMFuCM','../../helpers/accessibility-automation/helper','../../helpers/helper','EVENTS','16959uGAuvD','testsPending','164pGmqla','testsUndefined','mochaOpts','testsAmbiguous','../utils/constants','includes','../../helpers/ai-sdk/autoHealHelper','635616JHppKz','8KbNhMW','split','_configuration','_framework','totalTests','lzlLH','54868WXrKXq','../../helpers/performance/performance-tester','../../helpers/performance/constants','1095101ctzgjq','1051101ilobCe','../../helpers/test-observability/requestQueueHandler','1627015dOYZpR','_accessibilityAutomation','platform','setFramework','framework','capability','platformCaps','__platform__','testsFailed','../../helpers/test-observability/utils','_capability','path'];a27_0x229c=function(){return _0x43abb6;};return a27_0x229c();}function a27_0x118e(_0x5be0d0,_0xdb7836){const _0x229c3b=a27_0x229c();return a27_0x118e=function(_0x118ee4,_0xd25b66){_0x118ee4=_0x118ee4-0x1c6;let _0x1e03c4=_0x229c3b[_0x118ee4];return _0x1e03c4;},a27_0x118e(_0x5be0d0,_0xdb7836);}const a27_0x4d9990=a27_0x118e;(function(_0x3e1826,_0x4978df){const _0x21f919=a27_0x118e,_0x3d9456=_0x3e1826();while(!![]){try{const _0x1af68f=parseInt(_0x21f919(0x1e6))/0x1+parseInt(_0x21f919(0x1df))/0x2+-parseInt(_0x21f919(0x1d6))/0x3*(-parseInt(_0x21f919(0x1d8))/0x4)+-parseInt(_0x21f919(0x1ec))/0x5+-parseInt(_0x21f919(0x1d2))/0x6+parseInt(_0x21f919(0x1e9))/0x7+-parseInt(_0x21f919(0x1e0))/0x8*(parseInt(_0x21f919(0x1ea))/0x9);if(_0x1af68f===_0x4978df)break;else _0x3d9456['push'](_0x3d9456['shift']());}catch(_0x366a21){_0x3d9456['push'](_0x3d9456['shift']());}}}(a27_0x229c,0x28b63));const path=require(a27_0x4d9990(0x1c6)),{requireModule,modifyCommand,getPlatformName,cleanupDrivers,isBrowserstackInfra}=require(a27_0x4d9990(0x1d4)),constants=require(a27_0x4d9990(0x1dc)),{isAccessibilityAutomationSession}=require(a27_0x4d9990(0x1d3)),RequestQueueHandler=require(a27_0x4d9990(0x1eb)),{isTestObservabilitySession}=require(a27_0x4d9990(0x1f5)),helper=require(a27_0x4d9990(0x1d4)),PerformanceTester=require(a27_0x4d9990(0x1e7)),PerformanceEvents=require(a27_0x4d9990(0x1e8))[a27_0x4d9990(0x1d5)],{commandRepository}=require(a27_0x4d9990(0x1de)),BrowserstackCLI=require('../v2/browserstackCLI'),ClientTroubleShootingService=require(a27_0x4d9990(0x1ca));class Launcher{constructor(_0x47df19,_0x40ad8d,_0x5432be,_0x121a1c=[]){const _0x263d43=a27_0x4d9990,_0x5da9cd={'lzlLH':_0x263d43(0x1c8),'VIgRt':function(_0x5a7022){return _0x5a7022();},'iDjnq':function(_0x8532e4){return _0x8532e4();}},_0x30a97a=_0x5da9cd[_0x263d43(0x1e5)][_0x263d43(0x1e1)]('|');let _0x489195=0x0;while(!![]){switch(_0x30a97a[_0x489195++]){case'0':global[_0x263d43(0x1e4)]=0x0;continue;case'1':global[_0x263d43(0x1f4)]=0x0;continue;case'2':!constants[_0x263d43(0x1d1)][_0x263d43(0x1dd)](_0x47df19)&&(commandRepository[_0x263d43(0x1c7)](_0x5432be),commandRepository[_0x263d43(0x1ef)](_0x47df19));continue;case'3':global[_0x263d43(0x1d9)]=0x0;continue;case'4':global['testSuites']=0x0;continue;case'5':this[_0x263d43(0x1e3)]=_0x47df19;continue;case'6':global[_0x263d43(0x1d7)]=0x0;continue;case'7':this['_testObservability']=_0x5da9cd[_0x263d43(0x1ce)](isTestObservabilitySession);continue;case'8':global['testSuitesFailed']=0x0;continue;case'9':global['__platformCaps']=this[_0x263d43(0x1e2)][_0x263d43(0x1f2)]||{};continue;case'10':this['_mochaOpts']=_0x40ad8d[_0x263d43(0x1da)];continue;case'11':global[_0x263d43(0x1db)]=0x0;continue;case'12':this[_0x263d43(0x1d0)]=_0x40ad8d[_0x263d43(0x1cd)];continue;case'13':this['_bsConfig']=_0x5432be;continue;case'14':global['testsSkipped']=0x0;continue;case'15':global[_0x263d43(0x1cf)]={};continue;case'16':this[_0x263d43(0x1ed)]=_0x5da9cd['iDjnq'](isAccessibilityAutomationSession);continue;case'17':this[_0x263d43(0x1c9)]=_0x121a1c;continue;case'18':this[_0x263d43(0x1f6)]=this[_0x263d43(0x1e2)][_0x263d43(0x1f1)];continue;case'19':this[_0x263d43(0x1e2)]=_0x40ad8d['configuration']||{};continue;case'20':global[_0x263d43(0x1f3)]=this[_0x263d43(0x1e2)][_0x263d43(0x1ee)];continue;case'21':global[_0x263d43(0x1cc)]=0x0;continue;case'22':this['_configuration'][_0x263d43(0x1f0)]=_0x47df19;continue;case'23':global['testsPassed']=0x0;continue;}break;}}['setupCucumber'](_0x2013a7,_0x4a1d8d,_0x1bb3f1){const _0x291ed6=a27_0x4d9990,_0x1d705a=_0x2013a7[_0x291ed6(0x1cb)];_0x2013a7.resolvePaths=async function(){const pathResults=await _0x1d705a.apply(this,arguments);if(!pathResults.requirePaths){pathResults.requirePaths=[];}pathResults.requirePaths=[path.join(__dirname,'../cucumber-js/test.setup.js')].concat(pathResults.requirePaths,path.join(__dirname,_0x1bb3f1));return pathResults;};const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;_0x4a1d8d.push('--format'),_0x4a1d8d.push(`"${normalizedPath}"`);}run(){return new Promise(async(resolve,reject)=>{PerformanceTester.start(PerformanceEvents.SDK_PRE_TEST);require('../../helpers/setKeepAlive')();if(this._framework==='mocha'){const mochaRunHelper=requireModule('mocha/lib/cli/run-helpers.js','mocha');const Mocha=requireModule('mocha');if(isBrowserstackInfra()){modifyCommand();}const mochaHooks=require('../mocha/test.setup').mochaHooks;if(!helper.isUndefined(this._mochaOpts.mochaRequire)){this._mochaOpts.require=this._mochaOpts.mochaRequire;const plugins=await mochaRunHelper.handleRequires([this._mochaOpts.require]);Object.assign(this._mochaOpts,plugins);}const rootHooks={beforeAll:[mochaHooks.beforeAll],beforeEach:[mochaHooks.beforeEach],afterAll:[mochaHooks.afterAll],afterEach:[mochaHooks.afterEach]};if(isTestObservabilitySession()){const mochaObservabilityHooks=require('../mocha/test-observability/data-hooks').mochaHooks;rootHooks.beforeAll.unshift(mochaObservabilityHooks.beforeAll);rootHooks.afterAll.push(mochaObservabilityHooks.afterAll);}if(this._mochaOpts.rootHooks){this._mochaOpts.rootHooks.beforeAll&&rootHooks.beforeAll.unshift(...this._mochaOpts.rootHooks.beforeAll);this._mochaOpts.rootHooks.beforeEach&&rootHooks.beforeEach.unshift(...this._mochaOpts.rootHooks.beforeEach);this._mochaOpts.rootHooks.afterAll&&rootHooks.afterAll.push(...this._mochaOpts.rootHooks.afterAll);this._mochaOpts.rootHooks.afterEach&&rootHooks.afterEach.push(...this._mochaOpts.rootHooks.afterEach);}const userReporter=this._mochaOpts.reporter;let mochaTimeout=this._mochaOpts.timeout*1;if(this._mochaOpts.timeout===0){mochaTimeout=0;}else{mochaTimeout+=constants.BSTACK_DELTA;}const mochaOpts={};Object.assign(mochaOpts,this._mochaOpts);const reporterOption={};Object.assign(reporterOption,this._mochaOpts.reporterOptions);Object.assign(reporterOption,{type:userReporter||'spec',testObservability:this._testObservability,bsConfig:this._bsConfig});mochaOpts.reporterOption=reporterOption;Object.assign(mochaOpts,{reporter:path.join(__dirname,'../mocha/bstack-reporter/customReporter.js'),parallel:false,rootHooks,isWorker:true,timeout:mochaTimeout});global.browserstackPlatformIndex=helper.nestedKeyValue(this._configuration,['platformIndex']);global.browserstackPercyBestPlatform=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','browserstackPercyBestPlatform']);global.percy=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','percy']);global.percyCaptureMode=helper.nestedKeyValue(this._configuration,['browserStackPercyOptions','percyCaptureMode']);global.capabilities=[this._capability];if(helper.isBrowserstackInfra()){if(this._bsConfig.testContextOptions.skipSessionName){global.__skipSessionName=true;}if(this._bsConfig.testContextOptions.skipSessionStatus){global.__skipSessionStatus=true;}}else{global.__skipSessionName=true;global.__skipSessionStatus=true;}if(this._bsConfig.turboScaleUrl){this._configuration.turboScaleUrl=this._bsConfig.turboScaleUrl;}const mocha=new Mocha(mochaOpts);mocha.prevRun=mocha.run;if(isTestObservabilitySession()){mocha.run=function(_){return mocha.prevRun(exit=>{const checkPendingUploadsInterval=setInterval(async()=>{PerformanceTester.start(PerformanceEvents.SDK_POST_TEST);if(RequestQueueHandler.getInstance().pendingUploads<=0){clearInterval(checkPendingUploadsInterval);await cleanupDrivers(global.__driversArray);resolve(exit);}},1000);});};}else{mocha.run=function(_){return mocha.prevRun(async exit=>{PerformanceTester.start(PerformanceEvents.SDK_POST_TEST);await cleanupDrivers(global.__driversArray);resolve(exit);});};}try{require('../../index').browserstackAgentV2(this._configuration,null,this._testObservability);}catch{}PerformanceTester.end(PerformanceEvents.SDK_PRE_TEST);const runProm=mochaRunHelper.runMocha(mocha,mochaOpts);runProm&&runProm.catch(er=>{reject(er);});}else if(this._framework==='cucumber-js'){let cucumberCli;global.capabilities=[this._capability];try{cucumberCli=requireModule('@cucumber/cucumber/lib/cli/index.js','@cucumber/cucumber');}catch(e){cucumberCli=requireModule('cucumber/lib/cli/index.js','cucumber');}const argv=this._argv;const index=argv.indexOf('cucumber-js');if(index>-1){argv.splice(index,1);}const timeoutFileName='../cucumber-js/timeout.setup.js';let paths;try{paths=requireModule('@cucumber/cucumber/lib/paths/paths.js','@cucumber/cucumber');this.setupCucumber(paths,argv,timeoutFileName);}catch(e){try{paths=requireModule('@cucumber/cucumber/lib/api/paths.js','@cucumber/cucumber');this.setupCucumber(paths,argv,timeoutFileName);}catch(e){let hookFileName='../cucumber-js/test.setup.js';let ConfigurationBuilder;try{ConfigurationBuilder=requireModule('@cucumber/cucumber/lib/cli/configuration_builder.js','@cucumber/cucumber').default;const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;argv.push('--format');argv.push(normalizedPath);}catch(e){ConfigurationBuilder=requireModule('cucumber/lib/cli/configuration_builder.js','cucumber').default;const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter_old_versions.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;argv.push('--format');argv.push(normalizedPath);hookFileName='../cucumber-js/test_old.setup.js';}const configBuilder=ConfigurationBuilder.prototype.build;ConfigurationBuilder.prototype.build=async function(){const builderHash=await configBuilder.call(this);builderHash.supportCodePaths.unshift(path.join(__dirname,hookFileName));builderHash.supportCodePaths.push(path.join(__dirname,timeoutFileName));return builderHash;};}}argv.push('--parallel');argv.push(`${this._configuration.maxWorkers}`);if(this._formatter&&this._formatter.length>0){for(let i=0;i<this._formatter.length;i++){const r=getPlatformName(this._capability).replace(/ /g,'_');if(this._formatter[i]!==undefined&&this._formatter[i].length>0){const formatterFinalOutputFileName=this._formatter[i][1];const formatterType=`${this._formatter[i][0]}`;if(formatterFinalOutputFileName!==undefined){const formatterOutputFile=`tmp/${r}${path.extname(formatterFinalOutputFileName)}`;argv.push('--format');argv.push(`${formatterType}:${formatterOutputFile}`);}else{argv.push('--format');argv.push(`${formatterType}:tmp/${r}`);}}}}const cucumber=new cucumberCli.default({argv:argv,cwd:process.cwd(),stdout:process.stdout,stderr:process.stderr,env:process.env});process.env.CONFIG=JSON.stringify(this._configuration);process.env.BSTACK_CONFIG=JSON.stringify(this._bsConfig);cucumber.run().then(async output=>{const _results={scenarios:global.testSuites,steps:global.totalTests,scenariosFailed:global.testSuitesFailed,stepsFailed:global.testsFailed,stepsPassed:global.testsPassed,stepsSkipped:global.testsSkipped,stepsPending:global.testsPending,stepsUndefined:global.testsUndefined,stepsUnknown:global.testsUnknown,stepsAmbiguous:global.testsAmbiguous,processSuccess:output.success,testsErrorMessage:global.testsErrorMessage};await RequestQueueHandler.getInstance().shutdown();resolve(_results);}).catch(async er=>{await RequestQueueHandler.getInstance().shutdown();reject(er);});}else if(this._framework==='vanilla'){global.capabilities=[this._capability];process.argv=this._configuration.args;try{modifyCommand();require('../../index').browserstackAgent(this._configuration);let i=0;process.on('beforeExit',async()=>{if(i>0){return;}i++;await cleanupDrivers(global.__driversArray);});require(this._configuration.file);}catch(er){console.error(er);await BrowserstackCLI.getInstance().stop();process.exitCode=1;reject(er);}resolve();}});}}module.exports=Launcher;
|
package/src/bin/load/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a28_0x393f21=a28_0x1daa;function a28_0x1daa(_0x1f9d2f,_0xea6c59){const _0x496aca=a28_0x496a();return a28_0x1daa=function(_0x1daa2f,_0x283f32){_0x1daa2f=_0x1daa2f-0x189;let _0x10c950=_0x496aca[_0x1daa2f];return _0x10c950;},a28_0x1daa(_0x1f9d2f,_0xea6c59);}(function(_0x344505,_0x55f5dc){const _0x491ddb=a28_0x1daa,_0x31c3a1=_0x344505();while(!![]){try{const _0xde3aba=-parseInt(_0x491ddb(0x1a3))/0x1*(-parseInt(_0x491ddb(0x1b7))/0x2)+-parseInt(_0x491ddb(0x19d))/0x3*(-parseInt(_0x491ddb(0x1b3))/0x4)+-parseInt(_0x491ddb(0x18f))/0x5*(parseInt(_0x491ddb(0x1c9))/0x6)+-parseInt(_0x491ddb(0x1c5))/0x7+-parseInt(_0x491ddb(0x1b4))/0x8+parseInt(_0x491ddb(0x1bc))/0x9+parseInt(_0x491ddb(0x1b5))/0xa;if(_0xde3aba===_0x55f5dc)break;else _0x31c3a1['push'](_0x31c3a1['shift']());}catch(_0x4f4b6f){_0x31c3a1['push'](_0x31c3a1['shift']());}}}(a28_0x496a,0x2038d));const {spawn}=require(a28_0x393f21(0x1a4)),path=require('path'),helper=require(a28_0x393f21(0x18d)),CLIUtils=require(a28_0x393f21(0x1a5)),{getLoadConfigPath,sleep}=require(a28_0x393f21(0x18b)),logger=require(a28_0x393f21(0x1bd))[a28_0x393f21(0x1c3)];async function executeLoadTest(_0x442b23){const _0x50b502=a28_0x393f21,_0x4bea32={'VqUVw':function(_0xbb15c3,_0x167160){return _0xbb15c3(_0x167160);},'SQAzX':'close','aigxs':_0x50b502(0x1ad),'xgXQf':'Loading\x20configuration\x20using\x20environment\x20variables\x20if\x20available.','XSvEm':function(_0x455417){return _0x455417();},'rSgNx':'Authentication\x20incomplete.\x20Please\x20add\x20your\x20userName\x20and\x20accessKey\x20to\x20either\x20the\x20browserstack.yml\x20file\x20or\x20as\x20environment\x20variables,\x20then\x20try\x20running\x20the\x20command\x20again.','GiDFT':_0x50b502(0x1a0),'JySNo':_0x50b502(0x1c6),'DlsFC':'CLI\x20binary\x20found,\x20Checking\x20for\x20CLI\x20updates','cAHdN':function(_0x1bf8fc){return _0x1bf8fc();},'IpXPB':'Failed\x20to\x20download\x20or\x20locate\x20CLI\x20binary','IIkVR':function(_0x4a9cc7,_0x570a29,_0x57bfba,_0x4c53b8){return _0x4a9cc7(_0x570a29,_0x57bfba,_0x4c53b8);},'ZpQfv':'load','TZbbm':_0x50b502(0x19b),'GFKBs':_0x50b502(0x1ba),'hFDYT':_0x50b502(0x18e),'GtUGn':_0x50b502(0x197),'xbQeZ':_0x50b502(0x19c)};try{const _0x3cdb79=process['argv']['slice'](0x2),_0x277eee=_0x3cdb79[_0x50b502(0x1b6)](0x1);logger[_0x50b502(0x1c2)]('Executing\x20load\x20test\x20with\x20arguments:\x20'+_0x277eee);let _0x285dfe={};try{logger[_0x50b502(0x1c2)](_0x4bea32[_0x50b502(0x1bf)]);const _0x4c498b={};_0x4c498b[_0x50b502(0x1b8)]=process[_0x50b502(0x1c4)]['BROWSERSTACK_USERNAME']||process[_0x50b502(0x1c4)]['BROWSERSTACK_USER'],_0x4c498b[_0x50b502(0x1ae)]=process['env'][_0x50b502(0x190)]||process[_0x50b502(0x1c4)][_0x50b502(0x19a)],_0x285dfe=_0x4c498b;if(!_0x285dfe[_0x50b502(0x1b8)]||!_0x285dfe[_0x50b502(0x1ae)]){const _0x7c92d2=_0x4bea32[_0x50b502(0x1a1)](getLoadConfigPath,_0x442b23['argv']);logger[_0x50b502(0x1c2)](_0x50b502(0x195)+_0x7c92d2),_0x7c92d2&&(_0x285dfe=helper[_0x50b502(0x1a6)](_0x7c92d2));}}catch(_0x97b9c3){logger[_0x50b502(0x1a2)](_0x50b502(0x198)+_0x97b9c3[_0x50b502(0x1c8)]),logger[_0x50b502(0x1c2)](_0x50b502(0x18a)+(_0x97b9c3['stack']||JSON[_0x50b502(0x192)](_0x97b9c3))),await _0x4bea32['XSvEm'](sleep),process['exit'](0x1);}(!_0x285dfe[_0x50b502(0x1b8)]||!_0x285dfe[_0x50b502(0x1ae)])&&(logger[_0x50b502(0x1a2)](_0x4bea32[_0x50b502(0x1b9)]),await _0x4bea32['XSvEm'](sleep),process[_0x50b502(0x1b1)](0x1));const _0x1772e9=CLIUtils[_0x50b502(0x1bb)]();!_0x1772e9&&(logger[_0x50b502(0x1a2)](_0x4bea32[_0x50b502(0x1ab)]),await _0x4bea32[_0x50b502(0x1c7)](sleep),process['exit'](0x1));let _0x2a4622=CLIUtils[_0x50b502(0x1af)](_0x1772e9);try{!_0x2a4622?(logger[_0x50b502(0x1c2)](_0x4bea32[_0x50b502(0x1b2)]),_0x2a4622=await CLIUtils[_0x50b502(0x1ac)]('',_0x1772e9,_0x285dfe)):(logger[_0x50b502(0x1c2)](_0x4bea32[_0x50b502(0x196)]),_0x2a4622=await CLIUtils[_0x50b502(0x1ac)](_0x2a4622,_0x1772e9,_0x285dfe));}catch(_0x41cb1d){logger[_0x50b502(0x1a2)](_0x4bea32[_0x50b502(0x1b9)]),logger[_0x50b502(0x1c2)]('Error\x20Details:\x20'+(_0x41cb1d['stack']||JSON[_0x50b502(0x192)](_0x41cb1d))),await _0x4bea32[_0x50b502(0x1c1)](sleep),process['exit'](0x1);}!_0x2a4622&&(logger[_0x50b502(0x1a2)](_0x4bea32[_0x50b502(0x1b9)]),logger[_0x50b502(0x1c2)](_0x4bea32[_0x50b502(0x194)]),await _0x4bea32[_0x50b502(0x1c7)](sleep),process[_0x50b502(0x1b1)](0x1));logger['debug'](_0x50b502(0x1a8)+_0x2a4622+_0x50b502(0x1ca)+_0x277eee[_0x50b502(0x199)]('\x20'));const _0x671490=_0x4bea32['IIkVR'](spawn,_0x2a4622,[_0x4bea32[_0x50b502(0x189)],..._0x277eee],{'stdio':_0x4bea32[_0x50b502(0x1cb)]});let _0x368b91=![];const _0x361f89=new Promise(_0x511d2e=>{const _0x4d2a95=_0x50b502;_0x671490['on'](_0x4bea32[_0x4d2a95(0x1a7)],_0x4d203a=>{const _0x56aa03=_0x4d2a95;logger[_0x56aa03(0x1c2)](_0x2a4622+_0x56aa03(0x19f)+_0x4d203a),_0x4bea32[_0x56aa03(0x1a1)](_0x511d2e,_0x4d203a);});});[_0x4bea32[_0x50b502(0x193)],_0x4bea32[_0x50b502(0x1be)],_0x4bea32[_0x50b502(0x18c)],_0x4bea32['xbQeZ']][_0x50b502(0x19e)](_0x3e04c8=>{process['on'](_0x3e04c8,()=>{const _0x4ffc08=a28_0x1daa;if(_0x368b91)return;_0x368b91=!![],logger[_0x4ffc08(0x1c2)](_0x4ffc08(0x1c0)+_0x3e04c8+_0x4ffc08(0x1b0)),_0x671490&&!_0x671490['killed']&&(_0x671490[_0x4ffc08(0x1a9)](_0x3e04c8),logger['debug'](_0x4bea32['aigxs']));});});const _0x4a554a=await _0x361f89;await _0x4bea32['XSvEm'](sleep),process[_0x50b502(0x1b1)](_0x4a554a);}catch(_0x53a21e){logger['error']('Failed\x20initiating\x20load\x20test:\x20'+_0x53a21e[_0x50b502(0x1c8)]),logger['debug']('Error\x20details:\x20'+(_0x53a21e[_0x50b502(0x191)]||JSON[_0x50b502(0x192)](_0x53a21e))),await _0x4bea32[_0x50b502(0x1c1)](sleep),process[_0x50b502(0x1b1)](0x1);}}module[a28_0x393f21(0x1aa)]=executeLoadTest;function a28_0x496a(){const _0x4cf556=['SIGQUIT','Error\x20loading\x20configuration:\x20','join','BROWSERSTACK_ACCESSKEY','inherit','SIGHUP','3RZZWaI','forEach','\x20exited\x20with\x20code\x20','Failed\x20to\x20determine\x20CLI\x20directory','VqUVw','error','1685DDRYfK','child_process','../v2/cliUtils','readConfig','SQAzX','Spawning:\x20','kill','exports','GiDFT','checkAndUpdateCli','Waiting\x20for\x20child\x20process\x20to\x20exit...','accessKey','getExistingCliPath',',\x20forwarding\x20to\x20child\x20process...','exit','JySNo','242036udPGeN','1502432QkjeGt','3100300HEcKjA','slice','266MnsdiG','userName','rSgNx','SIGINT','getCliDir','74574GFLuZm','../../helpers/logger','hFDYT','xgXQf','Received\x20','cAHdN','debug','winstonLogger','env','358666GOuJmY','CLI\x20binary\x20not\x20found,\x20downloading\x20latest\x20version','XSvEm','message','1391442cGJsVe','\x20load\x20','TZbbm','ZpQfv','Error\x20details:\x20','./loadUtils','GtUGn','../../helpers/helper','SIGTERM','5DBjjjx','BROWSERSTACK_ACCESS_KEY','stack','stringify','GFKBs','IpXPB','Configuration\x20path:\x20','DlsFC'];a28_0x496a=function(){return _0x4cf556;};return a28_0x496a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a29_0xeab397=a29_0x2685;(function(_0x468478,_0x2a9ac2){const _0x560d7b=a29_0x2685,_0x3d3e01=_0x468478();while(!![]){try{const _0x23d3e6=parseInt(_0x560d7b(0x20f))/0x1*(-parseInt(_0x560d7b(0x214))/0x2)+parseInt(_0x560d7b(0x1ff))/0x3+-parseInt(_0x560d7b(0x202))/0x4+parseInt(_0x560d7b(0x20e))/0x5*(parseInt(_0x560d7b(0x1fb))/0x6)+-parseInt(_0x560d7b(0x215))/0x7*(-parseInt(_0x560d7b(0x1ef))/0x8)+-parseInt(_0x560d7b(0x1f2))/0x9+-parseInt(_0x560d7b(0x205))/0xa*(parseInt(_0x560d7b(0x211))/0xb);if(_0x23d3e6===_0x2a9ac2)break;else _0x3d3e01['push'](_0x3d3e01['shift']());}catch(_0x2ee0af){_0x3d3e01['push'](_0x3d3e01['shift']());}}}(a29_0x219f,0x85f7b));const fs=require('fs'),path=require(a29_0xeab397(0x212)),logger=require('../../helpers/logger')[a29_0xeab397(0x1ea)];function getLoadConfigPath(_0x50206d){const _0x391279=a29_0xeab397,_0x3f3ebe={};_0x3f3ebe[_0x391279(0x203)]=function(_0x10b034,_0x4aa4ea){return _0x10b034===_0x4aa4ea;},_0x3f3ebe[_0x391279(0x1fc)]='load',_0x3f3ebe[_0x391279(0x1f3)]=_0x391279(0x213),_0x3f3ebe[_0x391279(0x207)]=_0x391279(0x1f0),_0x3f3ebe[_0x391279(0x20d)]='.yml',_0x3f3ebe['qyZvZ']=_0x391279(0x1fe),_0x3f3ebe[_0x391279(0x206)]=_0x391279(0x20b),_0x3f3ebe['anDNl']=_0x391279(0x1ee),_0x3f3ebe[_0x391279(0x204)]=_0x391279(0x20c),_0x3f3ebe['clLQj']=_0x391279(0x200),_0x3f3ebe[_0x391279(0x1f7)]=_0x391279(0x217);const _0x532d56=_0x3f3ebe;logger[_0x391279(0x1fd)]('Checking\x20for\x20config\x20file\x20with\x20arguments:\x20'+JSON[_0x391279(0x1f6)](_0x50206d));try{const _0x9d45f8=_0x50206d['_']||[],_0x52b79f=_0x532d56[_0x391279(0x203)](_0x50206d['_'][0x0],_0x532d56['kqhxT'])&&_0x532d56[_0x391279(0x203)](_0x50206d[_0x391279(0x216)],_0x532d56[_0x391279(0x1f3)]);if(_0x52b79f){if(_0x50206d[_0x532d56[_0x391279(0x207)]]||_0x50206d['cf']){const _0x5e6ef5=_0x50206d[_0x532d56[_0x391279(0x207)]]||_0x50206d['cf'],_0xbca0c=path[_0x391279(0x1ec)](_0x5e6ef5);logger[_0x391279(0x1fd)](_0x391279(0x209)+_0x5e6ef5+'\x20and\x20Resolved\x20path:\x20'+_0xbca0c);if(_0xbca0c['endsWith'](_0x532d56[_0x391279(0x20d)])||_0xbca0c['endsWith'](_0x532d56[_0x391279(0x1eb)]))return logger[_0x391279(0x210)](_0x391279(0x1f9)+_0xbca0c),_0xbca0c;}}const _0x374164=[_0x532d56[_0x391279(0x206)],_0x532d56[_0x391279(0x1f1)],_0x532d56['SpWbm'],_0x532d56['clLQj']];logger['debug'](_0x532d56[_0x391279(0x1f7)]);for(const _0x5647ba of _0x374164){const _0x345640=path[_0x391279(0x20a)](process[_0x391279(0x1ed)](),_0x5647ba);logger[_0x391279(0x1fd)]('Checking\x20for:\x20'+_0x345640);if(fs[_0x391279(0x201)](_0x345640))return logger[_0x391279(0x1fd)](_0x391279(0x1f4)+_0x345640),_0x345640;}}catch(_0xe0f0c5){logger['error']('Failed\x20to\x20load\x20browserstack\x20config:\x20'+_0xe0f0c5[_0x391279(0x1fa)]);}}function a29_0x2685(_0xf74558,_0x5ced7e){const _0x219f59=a29_0x219f();return a29_0x2685=function(_0x2685b8,_0x13a1c8){_0x2685b8=_0x2685b8-0x1ea;let _0x10296f=_0x219f59[_0x2685b8];return _0x10296f;},a29_0x2685(_0xf74558,_0x5ced7e);}function a29_0x219f(){const _0x24424d=['Checking\x20for\x20config\x20in\x20default\x20config\x20files...','winstonLogger','qyZvZ','resolve','cwd','browserstack-load.yaml','128784RtBhvO','config-file','anDNl','1539639urnjOJ','gIbVr','Found\x20config\x20file:\x20','getLoadConfigPath','stringify','Vdkrw','sleep','Using\x20specified\x20config\x20file:\x20','message','6dXchIN','kqhxT','debug','.yaml','282345rhhqzm','browserstack.yaml','existsSync','964060RnGUBU','YJCaT','SpWbm','10vLQjzd','toLYC','MkRGk','exports','Config\x20file\x20specified:\x20','join','browserstack-load.yml','browserstack.yml','CXQyN','3935595mvqGRB','1mlasUm','info','4050761eEALHi','path','run','1261464rJhkrj','469MGEDDw','subcommand'];a29_0x219f=function(){return _0x24424d;};return a29_0x219f();}function sleep(){return new Promise(_0x488f1e=>setTimeout(_0x488f1e,0x64));}const a29_0x27c0ba={};a29_0x27c0ba[a29_0xeab397(0x1f5)]=getLoadConfigPath,a29_0x27c0ba[a29_0xeab397(0x1f8)]=sleep,module[a29_0xeab397(0x208)]=a29_0x27c0ba;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a30_0x1a3f(_0x43b43f,_0x30ca72){const _0x5db17f=a30_0x5db1();return a30_0x1a3f=function(_0x1a3f3a,_0x21b1a7){_0x1a3f3a=_0x1a3f3a-0x113;let _0x19572c=_0x5db17f[_0x1a3f3a];return _0x19572c;},a30_0x1a3f(_0x43b43f,_0x30ca72);}const a30_0x147005=a30_0x1a3f;function a30_0x5db1(){const _0x410f96=['SXlRZ','getBrowserVersion','startsWith','options_','debug','bUkoI','string','selenium-webdriver','PcJlP','getPlatform','deviceName','OSaVp','xRWRj','authToken','smbgL','getCapabilities','CbOSe','tYKzc','browserstack.accessibilityOptions','rWBUX','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','scannerVersion','uvloT','gjemX','KcTbf','some','setGlobal','chromeOptions_','Options','--headless=','BS_A11Y_JWT','bstack:options','Accessibility\x20Automation\x20is\x20enabled\x20for\x20Android\x20mobile\x20browser\x20(Chrome).\x20Skipping\x20extension\x20setup.','4365992yiEMrL','Iifzj','PAWLZ','parse','args','latest','env','on\x20non-BrowserStack\x20infrastructure\x20','--headless=new','1|3|0|4|2','requireModule','accessibilityOptions','Accessibility\x20Automation\x20will\x20not\x20run\x20on\x20legacy\x20headless\x20mode.\x20Switch\x20to\x20new\x20headless\x20mode\x20or\x20avoid\x20using\x20headless\x20mode.','device','4351851qUIHmA','Efmdz','1686012zyhFIp','getMinVersionForBrowser','4267698FVEeUu','warn','capability','accessibility','util','getBrowserDisplayName','2caYIbA','android','../../../helpers/logger','winstonLogger','pAICL','\x20or\x20higher\x20','ZvtMD','toLowerCase','nestedKeyValue','length','ZnTuH','getPlatformVersion','getBrowserName','browserName','isAccessibilityPlatform','capabilities_','dzhFv','6147210ZuhDAW','oNWXm','includes','info','../../../helpers/accessibility-automation/helper','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','14hLAmRo','isVersionSupported','selenium-webdriver/chrome.js','browser_version','hpUTr','path','browserstack.accessibility','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','browserVersion','chromeOptions','tAXkc','split','2649516asROwC','yUWkm','96916svmjwP','isMobilePlatform','mrMNe','keys','MOBILE_SCANNING_DISABLED_WARNING','requiresChromeOptionsValidation','chrome','platformName','Exception\x20while\x20setting\x20Accessibility\x20Automation\x20capabilities.\x20Error\x20','ZyMWO','20JZxiKF','Exception\x20in\x20fetching\x20platform\x20details\x20with\x20error\x20:\x20','--headless','NhzsI','capabilities','setAccessibilityCapabilities'];a30_0x5db1=function(){return _0x410f96;};return a30_0x5db1();}(function(_0x4a43c4,_0x1366c8){const _0x5af427=a30_0x1a3f,_0x19efdf=_0x4a43c4();while(!![]){try{const _0x3c0de9=-parseInt(_0x5af427(0x15e))/0x1*(parseInt(_0x5af427(0x115))/0x2)+parseInt(_0x5af427(0x156))/0x3+parseInt(_0x5af427(0x113))/0x4+-parseInt(_0x5af427(0x16f))/0x5+parseInt(_0x5af427(0x158))/0x6+-parseInt(_0x5af427(0x175))/0x7*(-parseInt(_0x5af427(0x146))/0x8)+parseInt(_0x5af427(0x154))/0x9*(-parseInt(_0x5af427(0x11f))/0xa);if(_0x3c0de9===_0x1366c8)break;else _0x19efdf['push'](_0x19efdf['shift']());}catch(_0x1ae858){_0x19efdf['push'](_0x19efdf['shift']());}}}(a30_0x5db1,0xb3220));const path=require(a30_0x147005(0x17a)),os=require('os'),util=require(a30_0x147005(0x15c)),bsSetupHelper=require('../../../helpers/helper'),globals=require('../../../helpers/globals'),accessibilityHelper=require(a30_0x147005(0x173)),logger=require(a30_0x147005(0x160))[a30_0x147005(0x161)];exports[a30_0x147005(0x124)]=_0x232b5b=>{const _0x143860=a30_0x147005,_0x43790f={};_0x43790f[_0x143860(0x117)]=function(_0x543545,_0x536d8f){return _0x543545>_0x536d8f;},_0x43790f[_0x143860(0x131)]=function(_0x222c88,_0x3ba192){return _0x222c88>_0x3ba192;},_0x43790f['OSaVp']=_0x143860(0x144),_0x43790f[_0x143860(0x136)]=_0x143860(0x17b),_0x43790f[_0x143860(0x122)]=_0x143860(0x16c),_0x43790f[_0x143860(0x164)]=_0x143860(0x137);const _0xf3e14a=_0x43790f;try{const _0x3eff7e=_0xf3e14a['mrMNe'](Object[_0x143860(0x118)](_0x232b5b[_0x143860(0x15a)])[_0x143860(0x167)],0x0)?_0x232b5b['capability']:_0xf3e14a[_0x143860(0x131)](Object[_0x143860(0x118)](_0x232b5b['capabilities'])[_0x143860(0x167)],0x0)?_0x232b5b[_0x143860(0x123)][0x0]:{};if(_0x3eff7e[_0xf3e14a[_0x143860(0x130)]]&&_0x3eff7e[_0xf3e14a['OSaVp']][_0x143860(0x15b)]||_0x232b5b[_0x143860(0x15a)][_0xf3e14a[_0x143860(0x136)]]){globals[_0x143860(0x13f)](_0xf3e14a[_0x143860(0x122)],!![]);if(_0x3eff7e[_0xf3e14a[_0x143860(0x130)]]){if(_0x3eff7e[_0xf3e14a['OSaVp']][_0x143860(0x151)])_0x3eff7e[_0xf3e14a['OSaVp']]['accessibilityOptions'][_0x143860(0x132)]=process[_0x143860(0x14c)][_0x143860(0x143)];else{const _0x3762d8={};_0x3762d8[_0x143860(0x132)]=process[_0x143860(0x14c)]['BS_A11Y_JWT'],_0x3eff7e[_0xf3e14a[_0x143860(0x130)]][_0x143860(0x151)]=_0x3762d8;}_0x3eff7e[_0xf3e14a[_0x143860(0x130)]][_0x143860(0x151)]['scannerVersion']=JSON[_0x143860(0x149)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x143860(0x13a)];}else{if(_0x232b5b[_0x143860(0x15a)][_0xf3e14a[_0x143860(0x136)]]){if(_0x3eff7e[_0xf3e14a[_0x143860(0x164)]])_0x3eff7e[_0xf3e14a[_0x143860(0x164)]][_0x143860(0x132)]=process[_0x143860(0x14c)][_0x143860(0x143)];else{const _0x287db7={};_0x287db7['authToken']=process[_0x143860(0x14c)][_0x143860(0x143)],_0x3eff7e[_0xf3e14a[_0x143860(0x164)]]=_0x287db7;}_0x3eff7e[_0xf3e14a[_0x143860(0x164)]][_0x143860(0x13a)]=JSON[_0x143860(0x149)](process['env'][_0x143860(0x17c)])[_0x143860(0x13a)];}}}}catch(_0x250ee3){logger[_0x143860(0x129)](_0x143860(0x11d)+_0x250ee3);}},exports['setExtension']=(_0x2aad94,_0x47ca96)=>{const _0x33d475=a30_0x147005,_0x497df3={};_0x497df3['Iifzj']='bstack:options',_0x497df3[_0x33d475(0x162)]=function(_0x582782,_0x2ce44a){return _0x582782!==_0x2ce44a;},_0x497df3[_0x33d475(0x13b)]=function(_0x46d38e,_0xce21bb){return _0x46d38e===_0xce21bb;},_0x497df3['vACtC']=_0x33d475(0x15f),_0x497df3[_0x33d475(0x170)]=_0x33d475(0x11b),_0x497df3[_0x33d475(0x135)]=_0x33d475(0x14f),_0x497df3[_0x33d475(0x138)]=_0x33d475(0x16c),_0x497df3[_0x33d475(0x13d)]=_0x33d475(0x145),_0x497df3[_0x33d475(0x16e)]=_0x33d475(0x116),_0x497df3[_0x33d475(0x155)]=_0x33d475(0x174),_0x497df3[_0x33d475(0x11e)]=_0x33d475(0x139),_0x497df3[_0x33d475(0x168)]=_0x33d475(0x14b),_0x497df3[_0x33d475(0x17f)]=_0x33d475(0x14d),_0x497df3[_0x33d475(0x13c)]=_0x33d475(0x177),_0x497df3[_0x33d475(0x12d)]=_0x33d475(0x12c),_0x497df3[_0x33d475(0x133)]=_0x33d475(0x128),_0x497df3[_0x33d475(0x148)]=_0x33d475(0x14a),_0x497df3[_0x33d475(0x12a)]=_0x33d475(0x17e),_0x497df3[_0x33d475(0x125)]='goog:chromeOptions',_0x497df3['TEbIr']=_0x33d475(0x152);const _0x40f87b=_0x497df3;try{const _0x539046=_0x47ca96[_0x33d475(0x15a)]||{},_0x4b2445=(_0x539046[_0x40f87b[_0x33d475(0x147)]]?_0x539046[_0x40f87b[_0x33d475(0x147)]][_0x33d475(0x12f)]:_0x539046[_0x33d475(0x153)])||'';if(_0x40f87b['pAICL'](_0x4b2445,'')){const _0x47f0ff=(_0x539046[_0x40f87b['Iifzj']]?_0x539046[_0x40f87b[_0x33d475(0x147)]]['platformName']:_0x539046[_0x33d475(0x11c)])||'',_0xbf96a2=_0x539046[_0x33d475(0x16b)]||_0x2aad94[_0x33d475(0x16d)][_0x33d475(0x16a)]()||'';if(_0x40f87b[_0x33d475(0x13b)](_0x47f0ff[_0x33d475(0x165)](),_0x40f87b['vACtC'])&&_0xbf96a2[_0x33d475(0x165)]()[_0x33d475(0x171)](_0x40f87b[_0x33d475(0x170)])){const _0xbd3735=_0x40f87b[_0x33d475(0x135)][_0x33d475(0x180)]('|');let _0x2f0394=0x0;while(!![]){switch(_0xbd3735[_0x2f0394++]){case'0':globals['setGlobal'](_0x40f87b['rWBUX'],!![]);continue;case'1':if(!accessibilityHelper['isMobileScanningEnabledForGroup']())return logger[_0x33d475(0x159)](accessibilityHelper[_0x33d475(0x119)]),![];continue;case'2':return!![];case'3':logger[_0x33d475(0x172)](_0x40f87b[_0x33d475(0x13d)]);continue;case'4':globals[_0x33d475(0x13f)](_0x40f87b[_0x33d475(0x16e)],!![]);continue;}break;}}return logger[_0x33d475(0x159)](_0x40f87b['Efmdz']),![];}const _0x1ed53a=_0x539046[_0x33d475(0x16b)]||_0x2aad94[_0x33d475(0x16d)][_0x33d475(0x16a)](),_0x203c75=_0x539046[_0x33d475(0x17d)]||_0x539046[_0x33d475(0x178)]||_0x2aad94['capabilities_'][_0x33d475(0x126)]();if(!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x1ed53a))return logger[_0x33d475(0x159)](_0x40f87b[_0x33d475(0x11e)]),![];if(!bsSetupHelper['isUndefined'](_0x203c75)&&_0x40f87b[_0x33d475(0x162)](_0x203c75,_0x40f87b[_0x33d475(0x168)])){const _0x2b248e=bsSetupHelper['isBrowserstackInfra'](),_0xa7ccaa=accessibilityHelper[_0x33d475(0x157)](_0x1ed53a,_0x2b248e),_0x2225ba=accessibilityHelper[_0x33d475(0x15d)](_0x1ed53a);if(!accessibilityHelper[_0x33d475(0x176)](_0x203c75,_0xa7ccaa)){const _0xe4949d=_0x2b248e?'':_0x40f87b[_0x33d475(0x17f)];return logger[_0x33d475(0x159)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x2225ba+'\x20browser\x20version\x20'+_0xa7ccaa+_0x33d475(0x163)+_0xe4949d+'.'),![];}}if(!accessibilityHelper[_0x33d475(0x11a)](_0x1ed53a))return!![];let _0x54da01;try{_0x54da01=bsSetupHelper[_0x33d475(0x150)](_0x40f87b['gjemX'],_0x40f87b[_0x33d475(0x12d)]);}catch(_0x135efb){return![];}const _0x5d1edb=new _0x54da01[(_0x33d475(0x141))](_0x2aad94[_0x33d475(0x140)]),_0x3f92d5=bsSetupHelper[_0x33d475(0x166)](_0x5d1edb,[_0x40f87b[_0x33d475(0x133)],_0x40f87b[_0x33d475(0x148)]])||bsSetupHelper['nestedKeyValue'](_0x2aad94[_0x33d475(0x16d)]['get'](_0x40f87b[_0x33d475(0x147)]),[_0x40f87b[_0x33d475(0x12a)],_0x40f87b[_0x33d475(0x148)]])||bsSetupHelper[_0x33d475(0x166)](_0x2aad94['capabilities_']['get'](_0x40f87b[_0x33d475(0x12a)]),[_0x40f87b[_0x33d475(0x148)]])||bsSetupHelper[_0x33d475(0x166)](_0x2aad94[_0x33d475(0x16d)]['get'](_0x40f87b[_0x33d475(0x125)]),[_0x40f87b[_0x33d475(0x148)]])||[],_0x5af310=Array['isArray'](_0x3f92d5)?_0x3f92d5:[];if(_0x5af310[_0x33d475(0x13e)](_0x458545=>typeof _0x458545===_0x33d475(0x12b)&&(_0x458545===_0x33d475(0x121)||_0x458545[_0x33d475(0x127)](_0x33d475(0x142))&&_0x458545!==_0x33d475(0x14e))))return logger[_0x33d475(0x159)](_0x40f87b['TEbIr']),![];return!![];}catch(_0x496707){logger[_0x33d475(0x129)]('Exception\x20in\x20setExtension\x20Error:\x20'+util['format'](_0x496707));}return![];},exports['fetchPlatformDetails']=async _0x147df4=>{const _0x132bbd=a30_0x147005,_0x45ed2e={};_0x45ed2e[_0x132bbd(0x179)]=function(_0x1a9d0d,_0x3b9edc){return _0x1a9d0d===_0x3b9edc;},_0x45ed2e[_0x132bbd(0x114)]='browserstack';const _0x7bfce4=_0x45ed2e;let _0x36ff96={};try{const _0x411bc1=await _0x147df4[_0x132bbd(0x134)]();_0x36ff96={'os_name':_0x411bc1[_0x132bbd(0x12e)](),'os_version':bsSetupHelper[_0x132bbd(0x169)](_0x7bfce4[_0x132bbd(0x179)](global['__cloud_provider___'],_0x7bfce4['yUWkm'])),'browser_name':_0x411bc1[_0x132bbd(0x16a)](),'browser_version':_0x411bc1[_0x132bbd(0x126)]()};}catch(_0x2a7974){logger[_0x132bbd(0x129)](_0x132bbd(0x120)+_0x2a7974);}return _0x36ff96;};
|
|
1
|
+
const a30_0xddff6f=a30_0x4cd1;(function(_0x34d193,_0x31abb7){const _0x38ea1e=a30_0x4cd1,_0x2e08eb=_0x34d193();while(!![]){try{const _0x94bf70=-parseInt(_0x38ea1e(0x205))/0x1+parseInt(_0x38ea1e(0x1b0))/0x2*(-parseInt(_0x38ea1e(0x1c8))/0x3)+-parseInt(_0x38ea1e(0x214))/0x4*(-parseInt(_0x38ea1e(0x1ac))/0x5)+parseInt(_0x38ea1e(0x1f0))/0x6*(-parseInt(_0x38ea1e(0x1c5))/0x7)+parseInt(_0x38ea1e(0x20c))/0x8+-parseInt(_0x38ea1e(0x1de))/0x9*(-parseInt(_0x38ea1e(0x1f1))/0xa)+-parseInt(_0x38ea1e(0x1c0))/0xb*(-parseInt(_0x38ea1e(0x201))/0xc);if(_0x94bf70===_0x31abb7)break;else _0x2e08eb['push'](_0x2e08eb['shift']());}catch(_0x4ea95b){_0x2e08eb['push'](_0x2e08eb['shift']());}}}(a30_0x33e6,0xae2af));function a30_0x33e6(){const _0x9b9478=['capabilities','MOBILE_SCANNING_DISABLED_WARNING','14DEnfRW','browserstack.accessibility','BafqQ','1686LXTDcV','path','browserstack','chromeOptions_','on\x20non-BrowserStack\x20infrastructure\x20','getMinVersionForBrowser','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','selenium-webdriver','lANPw','length','selenium-webdriver/chrome.js','mHmNj','--headless','device','\x20browser\x20version\x20','KbUdv','sRYux','dAHFM','isaDx','kBFWI','requireModule','string','27gDOVxU','args','getBrowserDisplayName','EoWpd','bstack:options','fetchPlatformDetails','WWuyT','USWXE','KLsIl','cUJST','browserVersion','BWxkZ','isAccessibilityPlatform','bQTtD','JLYbR','deviceName','../../../helpers/accessibility-automation/helper','FRuTr','2554716cFpQeF','1844130EJevlB','WRsrR','isBrowserstackInfra','--headless=new','KqDNp','parse','getBrowserName','getBrowserVersion','ZStEv','isArray','isMobileScanningEnabledForGroup','__cloud_provider___','../../../helpers/logger','adYBh','isUndefined','platformName','241284cGahlL','android','accessibilityOptions','scannerVersion','1414078ITyEKL','nYCXh','goog:chromeOptions','browserName','isBrowserSupportedForAccessibility','TrrMU','CBvCU','8165920UYoZIj','ZqMFU','authToken','kNasq','latest','chromeOptions','xgYyj','capabilities_','4jJfPgN','--headless=','Accessibility\x20Automation\x20is\x20enabled\x20for\x20Android\x20mobile\x20browser\x20(Chrome).\x20Skipping\x20extension\x20setup.','BS_A11Y_JWT','6320335VCbfNy','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','warn','pCbrt','2432JcbHXu','format','keqOk','setGlobal','chrome','debug','env','../../../helpers/globals','Exception\x20in\x20fetching\x20platform\x20details\x20with\x20error\x20:\x20','Exception\x20while\x20setting\x20Accessibility\x20Automation\x20capabilities.\x20Error\x20','capability','getPlatformVersion','nestedKeyValue','includes','get','\x20or\x20higher\x20','451mwdECT','0|2|4|3|1','Exception\x20in\x20setExtension\x20Error:\x20'];a30_0x33e6=function(){return _0x9b9478;};return a30_0x33e6();}function a30_0x4cd1(_0x1b0a43,_0x5cf54){const _0x33e6e4=a30_0x33e6();return a30_0x4cd1=function(_0x4cd1ae,_0x543a24){_0x4cd1ae=_0x4cd1ae-0x1a9;let _0x231e7e=_0x33e6e4[_0x4cd1ae];return _0x231e7e;},a30_0x4cd1(_0x1b0a43,_0x5cf54);}const path=require(a30_0xddff6f(0x1c9)),os=require('os'),util=require('util'),bsSetupHelper=require('../../../helpers/helper'),globals=require(a30_0xddff6f(0x1b7)),accessibilityHelper=require(a30_0xddff6f(0x1ee)),logger=require(a30_0xddff6f(0x1fd))['winstonLogger'];exports['setAccessibilityCapabilities']=_0x3c4d4f=>{const _0x1f3960=a30_0xddff6f,_0x107c63={};_0x107c63[_0x1f3960(0x1e6)]=function(_0x27c76c,_0x458d88){return _0x27c76c>_0x458d88;},_0x107c63[_0x1f3960(0x20d)]=function(_0x282d6f,_0x53cdc9){return _0x282d6f>_0x53cdc9;},_0x107c63[_0x1f3960(0x1c7)]=_0x1f3960(0x1e2),_0x107c63['pCbrt']=_0x1f3960(0x1c6),_0x107c63[_0x1f3960(0x1e1)]=_0x1f3960(0x1ea),_0x107c63[_0x1f3960(0x1da)]='browserstack.accessibilityOptions';const _0x3096d8=_0x107c63;try{const _0x10aa02=_0x3096d8['KLsIl'](Object['keys'](_0x3c4d4f['capability'])[_0x1f3960(0x1d1)],0x0)?_0x3c4d4f[_0x1f3960(0x1ba)]:_0x3096d8['ZqMFU'](Object['keys'](_0x3c4d4f[_0x1f3960(0x1c3)])[_0x1f3960(0x1d1)],0x0)?_0x3c4d4f[_0x1f3960(0x1c3)][0x0]:{};if(_0x10aa02[_0x3096d8['BafqQ']]&&_0x10aa02[_0x3096d8[_0x1f3960(0x1c7)]]['accessibility']||_0x3c4d4f[_0x1f3960(0x1ba)][_0x3096d8['pCbrt']]){globals[_0x1f3960(0x1b3)](_0x3096d8[_0x1f3960(0x1e1)],!![]);if(_0x10aa02[_0x3096d8['BafqQ']]){if(_0x10aa02[_0x3096d8[_0x1f3960(0x1c7)]][_0x1f3960(0x203)])_0x10aa02[_0x3096d8[_0x1f3960(0x1c7)]][_0x1f3960(0x203)][_0x1f3960(0x20e)]=process['env'][_0x1f3960(0x1ab)];else{const _0x4cd3f6={};_0x4cd3f6[_0x1f3960(0x20e)]=process[_0x1f3960(0x1b6)][_0x1f3960(0x1ab)],_0x10aa02[_0x3096d8[_0x1f3960(0x1c7)]][_0x1f3960(0x203)]=_0x4cd3f6;}_0x10aa02[_0x3096d8[_0x1f3960(0x1c7)]][_0x1f3960(0x203)][_0x1f3960(0x204)]=JSON['parse'](process[_0x1f3960(0x1b6)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x1f3960(0x204)];}else{if(_0x3c4d4f[_0x1f3960(0x1ba)][_0x3096d8[_0x1f3960(0x1af)]]){if(_0x10aa02[_0x3096d8[_0x1f3960(0x1da)]])_0x10aa02[_0x3096d8[_0x1f3960(0x1da)]][_0x1f3960(0x20e)]=process[_0x1f3960(0x1b6)][_0x1f3960(0x1ab)];else{const _0x2e229f={};_0x2e229f[_0x1f3960(0x20e)]=process['env']['BS_A11Y_JWT'],_0x10aa02[_0x3096d8['isaDx']]=_0x2e229f;}_0x10aa02[_0x3096d8[_0x1f3960(0x1da)]]['scannerVersion']=JSON[_0x1f3960(0x1f6)](process[_0x1f3960(0x1b6)][_0x1f3960(0x1ce)])[_0x1f3960(0x204)];}}}}catch(_0x16031d){logger[_0x1f3960(0x1b5)](_0x1f3960(0x1b9)+_0x16031d);}},exports['setExtension']=(_0x2b2ef7,_0x49d8ec)=>{const _0x494aa7=a30_0xddff6f,_0x418be4={};_0x418be4['xgYyj']='bstack:options',_0x418be4['KbUdv']=function(_0x2253ab,_0x8b1cb3){return _0x2253ab!==_0x8b1cb3;},_0x418be4[_0x494aa7(0x1f5)]=function(_0x2ce49b,_0x1dc024){return _0x2ce49b===_0x1dc024;},_0x418be4[_0x494aa7(0x1e9)]=_0x494aa7(0x202),_0x418be4[_0x494aa7(0x1e7)]=_0x494aa7(0x1b4),_0x418be4[_0x494aa7(0x206)]=_0x494aa7(0x1c1),_0x418be4[_0x494aa7(0x1d9)]=_0x494aa7(0x1aa),_0x418be4[_0x494aa7(0x1f2)]='isMobilePlatform',_0x418be4[_0x494aa7(0x1b2)]='isAccessibilityPlatform',_0x418be4[_0x494aa7(0x1d3)]=_0x494aa7(0x1ad),_0x418be4[_0x494aa7(0x1ec)]='Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.',_0x418be4[_0x494aa7(0x1d0)]=function(_0x50e977,_0x386f86){return _0x50e977!==_0x386f86;},_0x418be4['ZStEv']=_0x494aa7(0x210),_0x418be4[_0x494aa7(0x20b)]=_0x494aa7(0x1cc),_0x418be4['bQTtD']=_0x494aa7(0x1d2),_0x418be4['TrrMU']=_0x494aa7(0x1cf),_0x418be4[_0x494aa7(0x1e5)]='options_',_0x418be4[_0x494aa7(0x1ef)]=_0x494aa7(0x1df),_0x418be4[_0x494aa7(0x1d8)]=_0x494aa7(0x211),_0x418be4['kBFWI']=_0x494aa7(0x207),_0x418be4[_0x494aa7(0x20f)]='Accessibility\x20Automation\x20will\x20not\x20run\x20on\x20legacy\x20headless\x20mode.\x20Switch\x20to\x20new\x20headless\x20mode\x20or\x20avoid\x20using\x20headless\x20mode.';const _0x25213d=_0x418be4;try{const _0x27287a=_0x49d8ec['capability']||{},_0x4c0251=(_0x27287a[_0x25213d[_0x494aa7(0x212)]]?_0x27287a[_0x25213d[_0x494aa7(0x212)]][_0x494aa7(0x1ed)]:_0x27287a[_0x494aa7(0x1d5)])||'';if(_0x25213d[_0x494aa7(0x1d7)](_0x4c0251,'')){const _0x14cb38=(_0x27287a[_0x25213d['xgYyj']]?_0x27287a[_0x25213d[_0x494aa7(0x212)]][_0x494aa7(0x200)]:_0x27287a[_0x494aa7(0x200)])||'',_0xd71fe0=_0x27287a[_0x494aa7(0x208)]||_0x2b2ef7[_0x494aa7(0x213)][_0x494aa7(0x1f7)]()||'';if(_0x25213d['KqDNp'](_0x14cb38['toLowerCase'](),_0x25213d['BWxkZ'])&&_0xd71fe0['toLowerCase']()[_0x494aa7(0x1bd)](_0x25213d[_0x494aa7(0x1e7)])){const _0x5bfc74=_0x25213d[_0x494aa7(0x206)]['split']('|');let _0x3fc7c2=0x0;while(!![]){switch(_0x5bfc74[_0x3fc7c2++]){case'0':if(!accessibilityHelper[_0x494aa7(0x1fb)]())return logger[_0x494aa7(0x1ae)](accessibilityHelper[_0x494aa7(0x1c4)]),![];continue;case'1':return!![];case'2':logger['info'](_0x25213d[_0x494aa7(0x1d9)]);continue;case'3':globals[_0x494aa7(0x1b3)](_0x25213d['WRsrR'],!![]);continue;case'4':globals[_0x494aa7(0x1b3)](_0x25213d[_0x494aa7(0x1b2)],!![]);continue;}break;}}return logger[_0x494aa7(0x1ae)](_0x25213d[_0x494aa7(0x1d3)]),![];}const _0x4b7279=_0x27287a[_0x494aa7(0x208)]||_0x2b2ef7['capabilities_'][_0x494aa7(0x1f7)](),_0x5745a2=_0x27287a[_0x494aa7(0x1e8)]||_0x27287a['browser_version']||_0x2b2ef7[_0x494aa7(0x213)][_0x494aa7(0x1f8)]();if(!accessibilityHelper[_0x494aa7(0x209)](_0x4b7279))return logger[_0x494aa7(0x1ae)](_0x25213d['JLYbR']),![];if(!bsSetupHelper[_0x494aa7(0x1ff)](_0x5745a2)&&_0x25213d['lANPw'](_0x5745a2,_0x25213d[_0x494aa7(0x1f9)])){const _0x1fd3b2=bsSetupHelper[_0x494aa7(0x1f3)](),_0xa578b7=accessibilityHelper[_0x494aa7(0x1cd)](_0x4b7279,_0x1fd3b2),_0x4122a1=accessibilityHelper[_0x494aa7(0x1e0)](_0x4b7279);if(!accessibilityHelper['isVersionSupported'](_0x5745a2,_0xa578b7)){const _0x482a9f=_0x1fd3b2?'':_0x25213d[_0x494aa7(0x20b)];return logger[_0x494aa7(0x1ae)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x4122a1+_0x494aa7(0x1d6)+_0xa578b7+_0x494aa7(0x1bf)+_0x482a9f+'.'),![];}}if(!accessibilityHelper['requiresChromeOptionsValidation'](_0x4b7279))return!![];let _0x9f16d9;try{_0x9f16d9=bsSetupHelper[_0x494aa7(0x1dc)](_0x25213d[_0x494aa7(0x1eb)],_0x25213d[_0x494aa7(0x20a)]);}catch(_0x45c40a){return![];}const _0x197b06=new _0x9f16d9['Options'](_0x2b2ef7[_0x494aa7(0x1cb)]),_0x10a640=bsSetupHelper[_0x494aa7(0x1bc)](_0x197b06,[_0x25213d[_0x494aa7(0x1e5)],_0x25213d[_0x494aa7(0x1ef)]])||bsSetupHelper[_0x494aa7(0x1bc)](_0x2b2ef7[_0x494aa7(0x213)]['get'](_0x25213d['xgYyj']),[_0x25213d['sRYux'],_0x25213d['FRuTr']])||bsSetupHelper[_0x494aa7(0x1bc)](_0x2b2ef7['capabilities_'][_0x494aa7(0x1be)](_0x25213d[_0x494aa7(0x1d8)]),[_0x25213d['FRuTr']])||bsSetupHelper[_0x494aa7(0x1bc)](_0x2b2ef7[_0x494aa7(0x213)][_0x494aa7(0x1be)](_0x25213d[_0x494aa7(0x1db)]),[_0x25213d[_0x494aa7(0x1ef)]])||[],_0x4bc44e=Array[_0x494aa7(0x1fa)](_0x10a640)?_0x10a640:[];if(_0x4bc44e['some'](_0x4267c1=>typeof _0x4267c1===_0x494aa7(0x1dd)&&(_0x4267c1===_0x494aa7(0x1d4)||_0x4267c1['startsWith'](_0x494aa7(0x1a9))&&_0x4267c1!==_0x494aa7(0x1f4))))return logger[_0x494aa7(0x1ae)](_0x25213d[_0x494aa7(0x20f)]),![];return!![];}catch(_0x5052a8){logger[_0x494aa7(0x1b5)](_0x494aa7(0x1c2)+util[_0x494aa7(0x1b1)](_0x5052a8));}return![];},exports[a30_0xddff6f(0x1e3)]=async _0x24270f=>{const _0x25817d=a30_0xddff6f,_0x4c46ad={};_0x4c46ad[_0x25817d(0x1e4)]=function(_0x2d651c,_0x4c4ef9){return _0x2d651c===_0x4c4ef9;},_0x4c46ad[_0x25817d(0x1fe)]=_0x25817d(0x1ca);const _0x52554d=_0x4c46ad;let _0x262a96={};try{const _0x47b10d=await _0x24270f['getCapabilities']();_0x262a96={'os_name':_0x47b10d['getPlatform'](),'os_version':bsSetupHelper[_0x25817d(0x1bb)](_0x52554d[_0x25817d(0x1e4)](global[_0x25817d(0x1fc)],_0x52554d['adYBh'])),'browser_name':_0x47b10d[_0x25817d(0x1f7)](),'browser_version':_0x47b10d[_0x25817d(0x1f8)]()};}catch(_0x3a25b6){logger[_0x25817d(0x1b5)](_0x25817d(0x1b8)+_0x3a25b6);}return _0x262a96;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a31_0x5652a8=a31_0x4d97;(function(_0x124ad1,_0x18985d){const _0x4acf5b=a31_0x4d97,_0x5e297b=_0x124ad1();while(!![]){try{const _0x5adfbc=parseInt(_0x4acf5b(0x2af))/0x1*(-parseInt(_0x4acf5b(0x1e7))/0x2)+-parseInt(_0x4acf5b(0x1aa))/0x3*(parseInt(_0x4acf5b(0x1e0))/0x4)+parseInt(_0x4acf5b(0x200))/0x5+-parseInt(_0x4acf5b(0x22d))/0x6*(parseInt(_0x4acf5b(0x298))/0x7)+parseInt(_0x4acf5b(0x271))/0x8*(-parseInt(_0x4acf5b(0x282))/0x9)+parseInt(_0x4acf5b(0x2c8))/0xa*(parseInt(_0x4acf5b(0x202))/0xb)+parseInt(_0x4acf5b(0x1b5))/0xc;if(_0x5adfbc===_0x18985d)break;else _0x5e297b['push'](_0x5e297b['shift']());}catch(_0x282c0f){_0x5e297b['push'](_0x5e297b['shift']());}}}(a31_0x52e4,0x5b7f0));const util=require(a31_0x5652a8(0x27c)),fs=require('fs'),path=require(a31_0x5652a8(0x1b0)),{requireModule,getCentralUser}=require(a31_0x5652a8(0x2b0)),Base=requireModule(a31_0x5652a8(0x2c0),a31_0x5652a8(0x239)),utils=requireModule(a31_0x5652a8(0x1a3),a31_0x5652a8(0x239)),color=Base[a31_0x5652a8(0x1e6)],Mocha=requireModule(a31_0x5652a8(0x239)),Runnable=requireModule('mocha/lib/runnable.js',a31_0x5652a8(0x239)),{v4:uuidv4}=require(a31_0x5652a8(0x1b4)),bsSetupHelper=require('../../../helpers/helper'),testhubUtils=require(a31_0x5652a8(0x25f)),centralScannerUtils=require(a31_0x5652a8(0x1a1)),testHubConstants=require(a31_0x5652a8(0x1e3)),{FRAMEWORKS}=require(a31_0x5652a8(0x284)),globals=require(a31_0x5652a8(0x1cb)),logger=require(a31_0x5652a8(0x279))[a31_0x5652a8(0x226)],TestMetadata=require('../../../helpers/metadata'),a31_0x2798aa={};function a31_0x4d97(_0x4fa583,_0x3cf6b3){const _0x52e4a9=a31_0x52e4();return a31_0x4d97=function(_0x4d976e,_0x2913ff){_0x4d976e=_0x4d976e-0x194;let _0x5a8ca2=_0x52e4a9[_0x4d976e];return _0x5a8ca2;},a31_0x4d97(_0x4fa583,_0x3cf6b3);}function a31_0x52e4(){const _0xf211dd=['winstonLogger','green','OkfBM','bind','zinPG','\x20\x20<dt\x20class=\x22error\x22>','event_type','60uPMCeZ','logs','result','consoleLog','passed','LogCreated','UYnKK','\x20\x20<dt>','lnayH','_testResults','shutdown','escape','mocha','results','location_prefix','dWqWc','KMZXo','includes','__indents','ZwniT','hook_run_uuid','nMVIq','shUpB','fail','jWPZH','hookAnalyticsId','wkAGq','reporterOptions','TestRunFinished','ctx','BqFld','JdTQe','dirname','removeAllListeners','YTwBC','failed','DHFEq','_testEnv','jYpSC','<h1>','Exception\x20in\x20browserstack\x20custome\x20reporter\x20with\x20error:\x20','stdout','\x20%s','exports','</section>','fdmSU','pass','bsConfig','eeOnR','http_response','../../../helpers/testhub/utils','responseCode','jsPhK','oebgC','uzFIt','root','after\x20all','after\x20each','../../../helpers/test-observability/requestQueueHandler','okAIz','zCBWx','originalTitle','KOeXO','EcazJ','inspect','spec','setCentralScannerData','error','1200cvpYLB','shouldProcessEventForTesthub','current_hook','bZaTS','RWbCi','ZkGoh','mocha/lib/reporters/','toString','../../../helpers/logger','eKrGh','test_run_uuid','util','testStarted','jwINV','fSHZQ','__workerDetails','split','40023BxRPyD','write','../../../helpers/test-observability/constants','failCount','backtrace','Mocha','pid','push','docHtml','.js','xnNlo','_indents','HookRunFinished','usmMw','BEFORE_ALL','length','</dl>','dot','TEST_REPORTING_ANALYTICS','started_at','TestRunSkipped','failureCount','161413yEcROy','type','dZWtT','assign','multiple','IMDOB','decreaseIndent','hook_type','indent','Runner','VXBlD','<section\x20class=\x22suite\x22>','AFTER_ALL','woWAY','reporterOption','gRwWA','vowPZ','NMHIc','_upstreamConfig','\x20(%dms)','qAios','comma','ITPKM','31LNbRen','../../../helpers/helper','retryOf','bs:addPlatformDetails:','\x20with\x20error\x20:\x20','lcnc','test_run','current_test','oEcrN','_paths','testRunUUID','vRWZQ','zqjnH','pending','sQXCb','hooks','__platform__','mocha/lib/reporters/base.js','HookFinished','LHGcu','COMPLETED','bang','KTMal','bpkGJ','MOCHA','10NgQtRJ','BaknY','now','fast','rbbzV','SnhSF','<dl>','GKYlQ','HookRunStarted','err','fBBRp','aTfRZ','%s\x20-\x20%s','uploadEventData','toISOString','../../../helpers/central-scanner/helpers','yxjRh','mocha/lib/utils.js','</dt>','javascript','BmHSN','wvEha','state','analyticsResult','246WEOosi','xEyoc','suiteCount','aNHTU','cAqeK','File\x20path\x20could\x20not\x20be\x20found','path','increaseIndent','currentTest','bs:addLog:','uuid','7514820bTEqKY','suites','getRootParentFile','appendTestPlatform','wJUwU','ZYlNt','_buildCreated','match','MTaNq','hvYOH','findGitConfig','../../../helpers/test-observability/sessionHandler','LtyGC','BlegL','doc','BEFORE_EACH','getTime','\x20-\x20','Exception\x20in\x20uploading\x20platform\x20details\x20to\x20','apply','ljpSh','sendTestRunEvent','../../../helpers/globals','finalResults','zYnOn','ehwMp','scopes','wsjFE','DBPVj','clean','appendTestItemLog','markedStatus','\x20\x20<dd><pre><code>','1|3|4|0|2','title','titlePath','nxoUF','cwd','TestRunStarted','Baupx','registerListeners','expanded','file','13880zttjay','failure','Tsbhw','../../../helpers/testhub/constants','UnhandledError','Reporter','color','5370VIFSMg','light','FlSfC','OQdeH','scope','getInstance','LHOoO','pbIxY','IzSeB','NhGrg','</h1>','Exception\x20in\x20uploading\x20log\x20data\x20to\x20','sXOHz','sCYiK','pfajA','symbols','SOfBt','QbBoB','thTestRunUuid','join','%s\x20','AtCMB','Vhrbe','speed','failure_backtrace','3136020LfcwYb','UAfqX','4254184COsQCg','bright\x20yellow','Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20','get','prototype','IdUgQ','EVENT','CohAD','before\x20each','parent','forEach','currentRetry','testObservability','fullTitle','before\x20all','name','setGlobal','../../utils/constants','qMXTG','testAnalyticsId','slow','CBTSessionCreated','duration','TagLZ','prefixTestPath','constants','docAppend','uaIgo','slice','body','LAiNc','config','sQTVc','EGQYW','PVIhh','AFTER_EACH'];a31_0x52e4=function(){return _0xf211dd;};return a31_0x52e4();}a31_0x2798aa[a31_0x5652a8(0x210)]=a31_0x5652a8(0x290),a31_0x2798aa[a31_0x5652a8(0x265)]=a31_0x5652a8(0x2a4),a31_0x2798aa[a31_0x5652a8(0x20a)]=a31_0x5652a8(0x1c4),a31_0x2798aa[a31_0x5652a8(0x266)]=a31_0x5652a8(0x225);const HOOK_TYPES_MAP=a31_0x2798aa,{EVENT_RUN_END,EVENT_TEST_BEGIN,EVENT_TEST_END,EVENT_TEST_PENDING,EVENT_RUN_BEGIN,EVENT_TEST_FAIL,EVENT_TEST_PASS,EVENT_SUITE_BEGIN,EVENT_SUITE_END,EVENT_HOOK_BEGIN,EVENT_HOOK_END}=Mocha[a31_0x5652a8(0x2a1)][a31_0x5652a8(0x21b)],{STATE_PASSED,STATE_PENDING,STATE_FAILED}=Runnable[a31_0x5652a8(0x21b)],{getTestEnv,getHookDetails,getHooksForTest,mapTestHooks,getHookSkippedTests}=require('../test-observability/mochaUtils'),{consoleHolder}=require(a31_0x5652a8(0x284)),SessionHandler=require(a31_0x5652a8(0x1c0)),{isTestObservabilitySession,PathHelper,debug,failureData}=require('../../../helpers/test-observability/utils'),RequestQueueHandler=require(a31_0x5652a8(0x267)),constants=require(a31_0x5652a8(0x213)),requestQueueHandler=RequestQueueHandler[a31_0x5652a8(0x1ec)]();class MyReporter{constructor(_0x14b95e,_0x146fb7){const _0x23b054=a31_0x5652a8,_0x22dc77={'PVIhh':function(_0xe99c17,_0x4dcd97){return _0xe99c17===_0x4dcd97;},'dWqWc':_0x23b054(0x26e),'oEcrN':function(_0x5504c6,_0x2e04f1){return _0x5504c6+_0x2e04f1;},'zCBWx':function(_0x8e3f23,_0x39627e,_0x25f2fb){return _0x8e3f23(_0x39627e,_0x25f2fb);},'GquvP':_0x23b054(0x227),'JdTQe':_0x23b054(0x1fb),'vRWZQ':_0x23b054(0x1e8),'UAfqX':_0x23b054(0x19e),'hDBHl':'RUNNING','LAiNc':function(_0x1924ae,_0x4563c6){return _0x1924ae===_0x4563c6;},'DBPVj':_0x23b054(0x1c3),'UYnKK':function(_0x11e522){return _0x11e522();},'RWbCi':function(_0xb7062d){return _0xb7062d();},'hwwGZ':_0x23b054(0x19a),'MTaNq':'HookRunFinished','uaIgo':function(_0xd91da1,_0x4260c5){return _0xd91da1===_0x4260c5;},'GKYlQ':_0x23b054(0x231),'xEyoc':_0x23b054(0x195),'KOeXO':'checkmark','NhGrg':function(_0x4f4081,_0x29ed76){return _0x4f4081+_0x29ed76;},'woWAY':_0x23b054(0x25b),'bZaTS':_0x23b054(0x257),'zinPG':function(_0x1335ee,_0xe7868){return _0x1335ee+_0xe7868;},'QbBoB':function(_0xb7c225,_0x16e415){return _0xb7c225+_0x16e415;},'okAIz':function(_0x46246d,_0x1a9f01,_0x5eeae0){return _0x46246d(_0x1a9f01,_0x5eeae0);},'KTMal':_0x23b054(0x2ab),'ITPKM':function(_0x5dbf05,_0x407bea){return _0x5dbf05+_0x407bea;},'TagLZ':_0x23b054(0x244),'dZWtT':'\x20\x20%d)\x20%s','usmMw':function(_0x4b6c9e,_0x3d2c5c){return _0x4b6c9e===_0x3d2c5c;},'sQXCb':function(_0x242ee8,_0x362483){return _0x242ee8+_0x362483;},'BmHSN':_0x23b054(0x203),'hvYOH':_0x23b054(0x2c3),'LHOoO':function(_0x11da9c,_0x5df7ef){return _0x11da9c===_0x5df7ef;},'OkfBM':_0x23b054(0x293),'jYpSC':_0x23b054(0x216),'ASdhN':function(_0x3985d9,_0x151b0b){return _0x3985d9===_0x151b0b;},'ZwniT':function(_0x4df5dd,_0x2f4b1d){return _0x4df5dd===_0x2f4b1d;},'wVOKp':_0x23b054(0x1d6),'fSHZQ':function(_0xcdd990,_0x54e787){return _0xcdd990===_0x54e787;},'fBBRp':function(_0x26115f,_0x3a5eea){return _0x26115f===_0x3a5eea;},'pbIxY':_0x23b054(0x2bc),'lnayH':'TestRunSkipped','YTwBC':function(_0x385ac0,_0x16b7ba){return _0x385ac0===_0x16b7ba;},'aNHTU':function(_0xfb68fe,_0x23ba1b){return _0xfb68fe===_0x23ba1b;},'SnhSF':function(_0x517e8c,_0x11d587){return _0x517e8c===_0x11d587;},'CohAD':function(_0x5ea1de,_0x370de0){return _0x5ea1de(_0x370de0);},'AtCMB':function(_0x3990fd){return _0x3990fd();},'LtyGC':'xunit','cAqeK':'mocha','Tsbhw':function(_0x4e268d,_0x49fbf1){return _0x4e268d(_0x49fbf1);},'qAios':function(_0x66447a,_0x678167){return _0x66447a(_0x678167);},'BaknY':function(_0x5cc74a,_0xf02457){return _0x5cc74a!==_0xf02457;}};this[_0x23b054(0x299)]=_0x146fb7['reporterOption'][_0x23b054(0x299)],this[_0x23b054(0x20e)]=_0x22dc77[_0x23b054(0x1fc)](isTestObservabilitySession),Base['call'](this,_0x14b95e,_0x146fb7),this['_indents']=0x0,this['failCount']=0x0,this[_0x23b054(0x23a)]=[],this[_0x23b054(0x1cc)]=[],this[_0x23b054(0x1ac)]=0x0,this[_0x23b054(0x1bb)]=![],this[_0x23b054(0x236)]=[],this[_0x23b054(0x252)]=_0x22dc77[_0x23b054(0x1fc)](getTestEnv),this[_0x23b054(0x2b8)]=new PathHelper({'cwd':process[_0x23b054(0x1da)]()},this[_0x23b054(0x252)][_0x23b054(0x23b)]),this[_0x23b054(0x2aa)]=_0x146fb7[_0x23b054(0x2a6)][_0x23b054(0x25c)],this[_0x23b054(0x1dd)]();_0x22dc77[_0x23b054(0x240)](this[_0x23b054(0x299)],_0x22dc77[_0x23b054(0x1d1)])&&(this['docHtml']='',this[_0x23b054(0x23f)]=0x2);_0x14b95e['once'](EVENT_RUN_BEGIN,async()=>{const _0x3c4794=_0x23b054;_0x22dc77[_0x3c4794(0x224)](this['type'],_0x22dc77['dWqWc'])&&Base[_0x3c4794(0x230)]();})['on'](EVENT_SUITE_BEGIN,_0x5ba7e8=>{const _0x257198=_0x23b054;if(_0x5ba7e8['root'])return;if(_0x22dc77['PVIhh'](this[_0x257198(0x299)],_0x22dc77['dWqWc']))this[_0x257198(0x1b1)](),Base[_0x257198(0x230)](_0x22dc77[_0x257198(0x2b7)](_0x22dc77[_0x257198(0x2b7)](this[_0x257198(0x2a0)](),_0x22dc77[_0x257198(0x269)](color,_0x22dc77['GquvP'],_0x22dc77[_0x257198(0x24c)])),_0x22dc77[_0x257198(0x269)](color,_0x22dc77[_0x257198(0x2ba)],_0x22dc77[_0x257198(0x201)])),_0x22dc77['hDBHl'],_0x5ba7e8[_0x257198(0x1d7)],global[_0x257198(0x2bf)]);else _0x22dc77[_0x257198(0x220)](this[_0x257198(0x299)],_0x22dc77[_0x257198(0x1d1)])&&(this[_0x257198(0x21c)](this[_0x257198(0x2a0)]()+_0x257198(0x2a3)),++this[_0x257198(0x23f)],this['docAppend'](this[_0x257198(0x2a0)]()+_0x257198(0x254)+utils['escape'](_0x5ba7e8['title']+_0x257198(0x1c6)+global[_0x257198(0x2bf)])+_0x257198(0x1f1)),this[_0x257198(0x21c)](this[_0x257198(0x2a0)]()+_0x257198(0x198)));})['on'](EVENT_HOOK_BEGIN,async _0x4f9fdc=>{const _0x5d731a=_0x23b054;if(_0x22dc77[_0x5d731a(0x224)](testhubUtils['shouldProcessEventForTesthub'](testHubConstants[_0x5d731a(0x208)]['HookStarted']),!![])){if(!_0x4f9fdc[_0x5d731a(0x246)])_0x4f9fdc[_0x5d731a(0x246)]=_0x22dc77[_0x5d731a(0x233)](uuidv4);else _0x4f9fdc[_0x5d731a(0x1d4)]&&(_0x4f9fdc['hookAnalyticsId']=_0x22dc77[_0x5d731a(0x275)](uuidv4),delete _0x4f9fdc[_0x5d731a(0x1d4)]);_0x4f9fdc[_0x5d731a(0x295)]=new Date()[_0x5d731a(0x1a0)](),this[_0x5d731a(0x273)]=_0x4f9fdc,await this[_0x5d731a(0x1ca)](_0x4f9fdc,undefined,![],_0x22dc77['hwwGZ']);}})['on'](EVENT_HOOK_END,async _0x8a525f=>{const _0x13c2a5=_0x23b054;_0x22dc77[_0x13c2a5(0x220)](testhubUtils[_0x13c2a5(0x272)](testHubConstants[_0x13c2a5(0x208)][_0x13c2a5(0x2c1)]),!![])&&(!_0x8a525f[_0x13c2a5(0x1d4)]&&(_0x8a525f[_0x13c2a5(0x1d4)]=!![],await this[_0x13c2a5(0x1ca)](_0x8a525f,undefined,![],_0x22dc77['MTaNq'])));})['on'](EVENT_SUITE_END,_0x44f29f=>{const _0x1e1cf7=_0x23b054;if(_0x44f29f[_0x1e1cf7(0x264)])return;if(_0x22dc77[_0x1e1cf7(0x28f)](this[_0x1e1cf7(0x299)],_0x22dc77[_0x1e1cf7(0x23c)]))Base[_0x1e1cf7(0x230)](),Base['consoleLog'](_0x22dc77[_0x1e1cf7(0x2bd)](_0x22dc77[_0x1e1cf7(0x22a)](this['indent'](),_0x22dc77[_0x1e1cf7(0x268)](color,_0x22dc77[_0x1e1cf7(0x1a6)],_0x22dc77['JdTQe'])),_0x22dc77['okAIz'](color,_0x22dc77['vRWZQ'],_0x22dc77[_0x1e1cf7(0x201)])),_0x22dc77[_0x1e1cf7(0x1be)],_0x44f29f[_0x1e1cf7(0x1d7)],global[_0x1e1cf7(0x2bf)]),this[_0x1e1cf7(0x23a)][_0x1e1cf7(0x20c)](_0x229278=>{const _0x3e0774=_0x1e1cf7;if(_0x22dc77[_0x3e0774(0x21d)](_0x229278[_0x3e0774(0x1a8)],_0x22dc77[_0x3e0774(0x199)])){var _0x541c4d;_0x22dc77[_0x3e0774(0x21d)](_0x229278[_0x3e0774(0x1fe)],_0x22dc77[_0x3e0774(0x1ab)])?(_0x541c4d=_0x22dc77['oEcrN'](_0x22dc77[_0x3e0774(0x2b7)](this[_0x3e0774(0x2a0)](),_0x22dc77[_0x3e0774(0x269)](color,_0x22dc77[_0x3e0774(0x26b)],_0x22dc77[_0x3e0774(0x1f0)]('\x20\x20',Base[_0x3e0774(0x1f6)]['ok']))),_0x22dc77[_0x3e0774(0x269)](color,_0x22dc77[_0x3e0774(0x2a5)],_0x22dc77['bZaTS'])),Base[_0x3e0774(0x230)](_0x541c4d,_0x229278[_0x3e0774(0x1d7)])):(_0x541c4d=_0x22dc77[_0x3e0774(0x22a)](_0x22dc77[_0x3e0774(0x1f8)](_0x22dc77[_0x3e0774(0x1f8)](this[_0x3e0774(0x2a0)](),_0x22dc77['okAIz'](color,_0x22dc77[_0x3e0774(0x26b)],_0x22dc77[_0x3e0774(0x1f0)]('\x20\x20',Base[_0x3e0774(0x1f6)]['ok']))),_0x22dc77[_0x3e0774(0x269)](color,_0x22dc77[_0x3e0774(0x2a5)],_0x22dc77[_0x3e0774(0x274)])),_0x22dc77[_0x3e0774(0x268)](color,_0x229278[_0x3e0774(0x1fe)],_0x22dc77[_0x3e0774(0x2c5)])),Base[_0x3e0774(0x230)](_0x541c4d,_0x229278[_0x3e0774(0x1d7)],_0x229278[_0x3e0774(0x218)]));}else Base[_0x3e0774(0x230)](_0x22dc77[_0x3e0774(0x2ae)](this['indent'](),_0x22dc77[_0x3e0774(0x269)](color,_0x22dc77[_0x3e0774(0x219)],_0x22dc77[_0x3e0774(0x29a)])),++this[_0x3e0774(0x285)],_0x229278['title']);}),this[_0x1e1cf7(0x29e)]();else _0x22dc77[_0x1e1cf7(0x224)](this[_0x1e1cf7(0x299)],_0x22dc77['DBPVj'])&&(this[_0x1e1cf7(0x21c)](this['indent']()+_0x1e1cf7(0x292)),--this[_0x1e1cf7(0x23f)],this[_0x1e1cf7(0x21c)](this[_0x1e1cf7(0x2a0)]()+_0x1e1cf7(0x259)),--this['__indents']);Array[_0x1e1cf7(0x206)]['push'][_0x1e1cf7(0x1c8)](this[_0x1e1cf7(0x1cc)],this[_0x1e1cf7(0x23a)]),this[_0x1e1cf7(0x23a)]=[];})['on'](EVENT_TEST_PASS,async _0x4d9736=>{const _0x51ffa5=_0x23b054;this[_0x51ffa5(0x23a)][_0x51ffa5(0x289)]({'speed':_0x4d9736[_0x51ffa5(0x1fe)],'suite':_0x4d9736[_0x51ffa5(0x20b)][_0x51ffa5(0x1d7)],'title':_0x4d9736[_0x51ffa5(0x1d7)],'fullTitle':_0x4d9736[_0x51ffa5(0x20f)](),'duration':_0x4d9736[_0x51ffa5(0x218)],'state':_0x4d9736[_0x51ffa5(0x1a8)],'err':{},'currentRetry':_0x4d9736[_0x51ffa5(0x20d)](),'titlePathV':_0x4d9736[_0x51ffa5(0x1d8)](),'isPending':_0x4d9736['isPending']()});if(_0x22dc77[_0x51ffa5(0x1ed)](this[_0x51ffa5(0x299)],_0x22dc77['OkfBM']))_0x22dc77[_0x51ffa5(0x224)](_0x4d9736[_0x51ffa5(0x1fe)],_0x22dc77[_0x51ffa5(0x253)])?process[_0x51ffa5(0x256)][_0x51ffa5(0x283)](Base[_0x51ffa5(0x1e6)](_0x22dc77[_0x51ffa5(0x1a6)],Base[_0x51ffa5(0x1f6)][_0x51ffa5(0x293)])):process[_0x51ffa5(0x256)][_0x51ffa5(0x283)](Base['color'](_0x4d9736['speed'],Base[_0x51ffa5(0x1f6)][_0x51ffa5(0x293)]));else{if(_0x22dc77['ASdhN'](this[_0x51ffa5(0x299)],_0x22dc77[_0x51ffa5(0x1d1)])){this[_0x51ffa5(0x21c)](this['indent']()+_0x51ffa5(0x234)+utils[_0x51ffa5(0x238)](_0x4d9736[_0x51ffa5(0x1d7)])+_0x51ffa5(0x1a4)),this[_0x51ffa5(0x21c)](this[_0x51ffa5(0x2a0)]()+'\x20\x20<dt>'+utils['escape'](_0x4d9736[_0x51ffa5(0x1df)])+'</dt>');var _0x26ea3b=utils[_0x51ffa5(0x238)](utils['clean'](_0x4d9736[_0x51ffa5(0x21f)]));this[_0x51ffa5(0x21c)](this[_0x51ffa5(0x2a0)]()+_0x51ffa5(0x1d5)+_0x26ea3b+'</code></pre></dd>');}}_0x22dc77[_0x51ffa5(0x21d)](testhubUtils[_0x51ffa5(0x272)](),!![])&&(!_0x4d9736[_0x51ffa5(0x1d4)]&&(_0x4d9736[_0x51ffa5(0x1d4)]=!![],await this['sendTestRunEvent'](_0x4d9736)));})['on'](EVENT_TEST_FAIL,async(_0x41d649,_0x826324)=>{const _0x452172=_0x23b054;this[_0x452172(0x23a)][_0x452172(0x289)]({'title':_0x41d649[_0x452172(0x1d7)],'suite':_0x41d649[_0x452172(0x20b)][_0x452172(0x1d7)],'state':_0x41d649[_0x452172(0x1a8)],'err':{'message':util[_0x452172(0x26d)](_0x826324)},'fullTitle':_0x41d649[_0x452172(0x20f)](),'speed':_0x41d649[_0x452172(0x1fe)],'currentRetry':_0x41d649['currentRetry'](),'titlePathV':_0x41d649[_0x452172(0x1d8)]()});if(_0x22dc77[_0x452172(0x240)](this[_0x452172(0x299)],_0x22dc77[_0x452172(0x228)]))process['stdout']['write'](Base['color'](_0x22dc77['TagLZ'],Base[_0x452172(0x1f6)][_0x452172(0x2c4)]));else{if(_0x22dc77[_0x452172(0x28f)](this[_0x452172(0x299)],_0x22dc77[_0x452172(0x1d1)])){const _0x39d573=_0x22dc77['wVOKp'][_0x452172(0x281)]('|');let _0x4d8e0c=0x0;while(!![]){switch(_0x39d573[_0x4d8e0c++]){case'0':this['docAppend'](this[_0x452172(0x2a0)]()+'\x20\x20<dd\x20class=\x22error\x22><pre><code>'+_0x28d251+'</code></pre></dd>');continue;case'1':this['docAppend'](this[_0x452172(0x2a0)]()+'\x20\x20<dt\x20class=\x22error\x22>'+utils['escape'](_0x41d649[_0x452172(0x1d7)])+_0x452172(0x1a4));continue;case'2':this[_0x452172(0x21c)](this[_0x452172(0x2a0)]()+'\x20\x20<dd\x20class=\x22error\x22>'+utils[_0x452172(0x238)](_0x41d649[_0x452172(0x19b)])+'</dd>');continue;case'3':this['docAppend'](this[_0x452172(0x2a0)]()+_0x452172(0x22b)+utils[_0x452172(0x238)](_0x41d649[_0x452172(0x1df)])+_0x452172(0x1a4));continue;case'4':var _0x28d251=utils[_0x452172(0x238)](utils[_0x452172(0x1d2)](_0x41d649['body']));continue;}break;}}}if(_0x22dc77[_0x452172(0x27f)](testhubUtils[_0x452172(0x272)](testHubConstants[_0x452172(0x208)]['HookFinished']),!![])){if(!_0x41d649[_0x452172(0x1d4)]){_0x41d649['markedStatus']=!![];if(_0x41d649[_0x452172(0x215)])await this[_0x452172(0x1ca)](_0x41d649,_0x826324);else _0x41d649[_0x452172(0x246)]&&await this[_0x452172(0x1ca)](_0x41d649,_0x826324,![],_0x22dc77[_0x452172(0x1bd)]);}}})['on'](EVENT_TEST_PENDING,async _0x344f75=>{const _0x3ff6eb=_0x23b054;this[_0x3ff6eb(0x23a)][_0x3ff6eb(0x289)]({'title':_0x344f75['title'],'suite':_0x344f75[_0x3ff6eb(0x20b)][_0x3ff6eb(0x1d7)],'state':_0x344f75['state'],'err':{},'fullTitle':_0x344f75[_0x3ff6eb(0x20f)](),'speed':_0x344f75[_0x3ff6eb(0x1fe)],'currentRetry':_0x344f75[_0x3ff6eb(0x20d)](),'titlePathV':_0x344f75['titlePath']()}),_0x22dc77[_0x3ff6eb(0x19c)](this[_0x3ff6eb(0x299)],_0x22dc77[_0x3ff6eb(0x228)])&&process[_0x3ff6eb(0x256)]['write'](Base[_0x3ff6eb(0x1e6)](_0x22dc77[_0x3ff6eb(0x1ee)],Base[_0x3ff6eb(0x1f6)][_0x3ff6eb(0x2ad)])),_0x22dc77['uaIgo'](testhubUtils[_0x3ff6eb(0x272)](),!![])&&(!_0x344f75[_0x3ff6eb(0x215)]&&(_0x344f75[_0x3ff6eb(0x215)]=_0x22dc77['UYnKK'](uuidv4)),!_0x344f75[_0x3ff6eb(0x1d4)]&&(_0x344f75[_0x3ff6eb(0x1d4)]=!![],await this[_0x3ff6eb(0x1ca)](_0x344f75,undefined,![],_0x22dc77[_0x3ff6eb(0x235)])));})['on'](EVENT_TEST_BEGIN,async _0x2592e6=>{const _0x363683=_0x23b054;_0x22dc77['YTwBC'](testhubUtils[_0x363683(0x272)](),!![])&&await this[_0x363683(0x27d)](_0x2592e6);})['on'](EVENT_TEST_END,async _0x5462fe=>{const _0x3e66c0=_0x23b054;_0x22dc77[_0x3e66c0(0x1ad)](testhubUtils['shouldProcessEventForTesthub'](),!![])&&(!_0x5462fe[_0x3e66c0(0x1d4)]&&(_0x5462fe[_0x3e66c0(0x1d4)]=!![],await this['sendTestRunEvent'](_0x5462fe)));})['once'](EVENT_RUN_END,async()=>{const _0x1f83f1=_0x23b054;try{if(_0x22dc77[_0x1f83f1(0x197)](testhubUtils[_0x1f83f1(0x272)](),!![])){const _0x42e7f0=_0x22dc77['CohAD'](getHookSkippedTests,this['runner']['suite']);for(const _0x4e5f1e of _0x42e7f0){!_0x4e5f1e['testAnalyticsId']&&(_0x4e5f1e['testAnalyticsId']=_0x22dc77[_0x1f83f1(0x233)](uuidv4)),await this[_0x1f83f1(0x1ca)](_0x4e5f1e,undefined,![],_0x22dc77[_0x1f83f1(0x235)]);}}}catch(_0x3923d9){_0x22dc77[_0x1f83f1(0x209)](debug,'Exception\x20in\x20populating\x20test\x20data\x20for\x20hook\x20skipped\x20test\x20with\x20error\x20:\x20'+_0x3923d9);}await requestQueueHandler[_0x1f83f1(0x237)](),_0x22dc77[_0x1f83f1(0x24f)](this[_0x1f83f1(0x299)],_0x22dc77[_0x1f83f1(0x1d1)])&&Base[_0x1f83f1(0x230)](this[_0x1f83f1(0x28a)]);});if(this[_0x23b054(0x299)]&&![_0x22dc77['DBPVj'],_0x22dc77[_0x23b054(0x1c1)],_0x22dc77[_0x23b054(0x23c)],_0x22dc77['OkfBM']][_0x23b054(0x23e)](this[_0x23b054(0x299)])){const _0x8a6ce=this[_0x23b054(0x299)]['trim']();this['Reporter']=null;try{this[_0x23b054(0x1e5)]=_0x22dc77[_0x23b054(0x268)](requireModule,_0x23b054(0x277)+_0x8a6ce+_0x23b054(0x28b),_0x22dc77[_0x23b054(0x1ae)]);}catch(_0x4742ad){_0x22dc77[_0x23b054(0x1e2)](debug,_0x23b054(0x255)+_0x4742ad);}if(_0x22dc77[_0x23b054(0x1ad)](this[_0x23b054(0x1e5)],null))try{this['Reporter']=_0x22dc77[_0x23b054(0x2ac)](require,_0x8a6ce);}catch(_0xd39a9d){console[_0x23b054(0x270)]('Failed\x20to\x20load\x20reporter\x20'+_0x8a6ce);}if(_0x22dc77[_0x23b054(0x2c9)](this[_0x23b054(0x1e5)],null)){const _0x2d1187={};_0x2d1187[_0x23b054(0x248)]=_0x146fb7[_0x23b054(0x2a6)],this[_0x23b054(0x1e5)]=new this[(_0x23b054(0x1e5))](_0x14b95e,_0x2d1187);}}}[a31_0x5652a8(0x2a0)](){const _0x3ca017=a31_0x5652a8,_0x2cbffe={'sQTVc':function(_0x35148a,_0x2ceb05){return _0x35148a(_0x2ceb05);}};return _0x2cbffe[_0x3ca017(0x222)](Array,this[_0x3ca017(0x28d)])['join']('\x20\x20');}[a31_0x5652a8(0x1b1)](){this['_indents']++;}[a31_0x5652a8(0x29e)](){const _0x1d760b=a31_0x5652a8;this[_0x1d760b(0x28d)]--;}[a31_0x5652a8(0x21c)](_0xa137d1){const _0x1487b2=a31_0x5652a8;this[_0x1487b2(0x28a)]+=_0xa137d1;}['done'](_0x3e7131,_0x5b4487){const _0x34fbc4=a31_0x5652a8,_0x22ad77={'kyrvp':function(_0x311fd0,_0x263b71){return _0x311fd0(_0x263b71);}},_0x479387={};_0x479387[_0x34fbc4(0x297)]=_0x3e7131,_0x479387[_0x34fbc4(0x23a)]=this[_0x34fbc4(0x1cc)],_0x22ad77['kyrvp'](_0x5b4487,_0x479387);}[a31_0x5652a8(0x1dd)](){const _0x4ee30c=a31_0x5652a8;process['removeAllListeners']('bs:addLog:'+process[_0x4ee30c(0x288)]),process['on'](_0x4ee30c(0x1b3)+process[_0x4ee30c(0x288)],this['appendTestItemLog'][_0x4ee30c(0x229)](this)),process[_0x4ee30c(0x24e)](_0x4ee30c(0x2b2)+process[_0x4ee30c(0x288)]),process['on']('bs:addPlatformDetails:'+process[_0x4ee30c(0x288)],this[_0x4ee30c(0x1b8)][_0x4ee30c(0x229)](this));}[a31_0x5652a8(0x27d)]=async _0x178d53=>{const _0x238717=a31_0x5652a8,_0x2a574c={'ZYlNt':function(_0x5911fb){return _0x5911fb();},'jsPhK':_0x238717(0x2b9),'ZkGoh':function(_0x50b447,_0x5d0732){return _0x50b447>_0x5d0732;},'wvEha':function(_0x1c865b,_0x79d368){return _0x1c865b===_0x79d368;},'oebgC':_0x238717(0x1db),'jwINV':function(_0x1ca937,_0x3746c1){return _0x1ca937(_0x3746c1);}};try{const _0x1c4ce3=this['current_test'];this[_0x238717(0x2b6)]=_0x178d53,_0x178d53[_0x238717(0x2b1)]=null,_0x178d53[_0x238717(0x215)]=_0x2a574c[_0x238717(0x1ba)](uuidv4),globals[_0x238717(0x212)](_0x2a574c[_0x238717(0x261)],_0x178d53[_0x238717(0x215)]),global[_0x238717(0x280)]=global['__workerDetails']||{},global[_0x238717(0x280)]['currentTest']=global[_0x238717(0x280)]['currentTest']||{},global['__workerDetails'][_0x238717(0x1b2)][_0x238717(0x1f9)]=_0x178d53['testAnalyticsId'],_0x178d53['started_at']=new Date()[_0x238717(0x1a0)](),_0x2a574c[_0x238717(0x276)](_0x178d53['_currentRetry'],0x0)&&_0x1c4ce3&&_0x2a574c[_0x238717(0x1a7)](_0x1c4ce3[_0x238717(0x1d7)],_0x178d53[_0x238717(0x1d7)])?(_0x178d53[_0x238717(0x2b1)]=_0x1c4ce3[_0x238717(0x215)],await this[_0x238717(0x1ca)](_0x178d53,undefined,![],_0x2a574c[_0x238717(0x262)]),_0x1c4ce3[_0x238717(0x1a8)]=STATE_FAILED,await this[_0x238717(0x1ca)](_0x1c4ce3,undefined,!![])):await this[_0x238717(0x1ca)](_0x178d53,undefined,![],_0x2a574c[_0x238717(0x262)]);}catch(_0x4479b2){_0x2a574c[_0x238717(0x27e)](debug,_0x238717(0x204)+_0x4479b2);}};[a31_0x5652a8(0x1ca)]=async(_0xa6f0f,_0x191543=undefined,_0x28166c=![],_0x1c1907=a31_0x5652a8(0x249))=>{const _0x34b5fb=a31_0x5652a8,_0x5229bb={'eKrGh':function(_0x472d59,_0xb1744b){return _0x472d59===_0xb1744b;},'zqjnH':function(_0x4c80cb,_0x59ce7b){return _0x4c80cb!==_0x59ce7b;},'yxjRh':'test','gRwWA':_0x34b5fb(0x19b),'zYnOn':function(_0xe13aad,_0x5c7743){return _0xe13aad!==_0x5c7743;},'qMXTG':function(_0x365a6e,_0x540041){return _0x365a6e!==_0x540041;},'Jfoym':_0x34b5fb(0x1af),'nMVIq':_0x34b5fb(0x287),'FlSfC':_0x34b5fb(0x1a5),'pfajA':_0x34b5fb(0x296),'xnNlo':'skipped','EcazJ':function(_0x25d0c8,_0x358bc1){return _0x25d0c8-_0x358bc1;},'Vhrbe':'AssertionError','nxoUF':_0x34b5fb(0x1e4),'wJUwU':_0x34b5fb(0x249),'EGQYW':_0x34b5fb(0x1db),'LHGcu':function(_0x466e95){return _0x466e95();},'VXBlD':function(_0x1661cd,_0x2ad456){return _0x1661cd===_0x2ad456;},'bpkGJ':'started_at','IzSeB':'finished_at','wsjFE':function(_0x457551,_0x1050db){return _0x457551(_0x1050db);},'ehwMp':function(_0x341f62,_0x21d29b){return _0x341f62===_0x21d29b;},'MXLhT':_0x34b5fb(0x28e),'aTfRZ':function(_0x2afebe,_0xc0e580){return _0x2afebe!==_0xc0e580;},'wkAGq':'failed','IdUgQ':'passed','NEAuv':_0x34b5fb(0x20a),'KMZXo':function(_0x2ecd84,_0x1ea606){return _0x2ecd84===_0x1ea606;},'BqFld':function(_0x480b5c,_0x5798fb){return _0x480b5c(_0x5798fb);},'uzFIt':_0x34b5fb(0x1e1),'rbbzV':_0x34b5fb(0x1ff),'RSaXu':_0x34b5fb(0x286),'ExqZZ':'failure_reason_expanded','jWPZH':_0x34b5fb(0x1de),'vowPZ':_0x34b5fb(0x29f),'shUpB':'hook_run','ipjXA':_0x34b5fb(0x2b5)};try{if(_0xa6f0f[_0x34b5fb(0x21f)]&&_0xa6f0f[_0x34b5fb(0x21f)][_0x34b5fb(0x1bc)](/browserstack internal helper hook/))return;let _0x539524=[];if(_0x5229bb[_0x34b5fb(0x27a)](_0xa6f0f[_0x34b5fb(0x1a8)],STATE_FAILED)){if(_0x5229bb[_0x34b5fb(0x2bb)](_0xa6f0f[_0x34b5fb(0x19b)],undefined))_0x539524=_0xa6f0f[_0x34b5fb(0x19b)][_0x34b5fb(0x29c)]?[_0xa6f0f[_0x34b5fb(0x19b)][_0x34b5fb(0x29c)],_0x5229bb[_0x34b5fb(0x1a2)]]:[_0xa6f0f[_0x34b5fb(0x19b)],_0x5229bb[_0x34b5fb(0x2a7)]];else _0x5229bb[_0x34b5fb(0x1cd)](_0x191543,undefined)?_0x539524=[_0x191543,_0x5229bb[_0x34b5fb(0x2a7)]]:_0x539524=[];}const _0x38b137=_0x5229bb['zqjnH'](_0xa6f0f[_0x34b5fb(0x19b)],undefined)?_0xa6f0f[_0x34b5fb(0x19b)]['toString']():_0x5229bb[_0x34b5fb(0x214)](_0x191543,undefined)?_0x191543[_0x34b5fb(0x278)]():undefined;let _0x49294b;try{_0x49294b=this[_0x34b5fb(0x1b7)](_0xa6f0f);}catch(_0xd4b9d8){_0x49294b=null;}const _0x2a312d=_0x49294b?this[_0x34b5fb(0x1bf)](_0x49294b):null,_0x258400=_0x49294b?this[_0x34b5fb(0x2b8)][_0x34b5fb(0x21a)](this[_0x34b5fb(0x1b7)](_0xa6f0f)):_0x5229bb['Jfoym'],_0x597593={'framework':_0x5229bb[_0x34b5fb(0x242)],'uuid':_0xa6f0f[_0x34b5fb(0x215)]||_0xa6f0f[_0x34b5fb(0x246)],'name':_0xa6f0f[_0x34b5fb(0x1d7)],'body':{'lang':_0x5229bb[_0x34b5fb(0x1e9)],'code':_0xa6f0f[_0x34b5fb(0x21f)]},'scope':this[_0x34b5fb(0x1eb)](_0xa6f0f),'scopes':this[_0x34b5fb(0x1cf)](_0xa6f0f),'identifier':_0xa6f0f[_0x34b5fb(0x20f)](),'file_name':_0x258400,'vc_filepath':_0x2a312d?path['relative'](_0x2a312d,_0x49294b):null,'location':_0x258400,'result':_0x5229bb['eKrGh'](_0x1c1907,_0x5229bb['pfajA'])?_0x5229bb[_0x34b5fb(0x28c)]:this[_0x34b5fb(0x1a9)](_0xa6f0f[_0x34b5fb(0x1a8)]),'failure_reason':_0x38b137,'duration_in_ms':_0xa6f0f[_0x34b5fb(0x218)]||(_0x1c1907[_0x34b5fb(0x1bc)](/Finished/)||_0x1c1907[_0x34b5fb(0x1bc)](/Skipped/)?_0x5229bb[_0x34b5fb(0x26c)](Date[_0x34b5fb(0x194)](),new Date(_0xa6f0f[_0x34b5fb(0x295)])[_0x34b5fb(0x1c5)]()):null),'started_at':_0xa6f0f[_0x34b5fb(0x295)],'finished_at':_0x1c1907[_0x34b5fb(0x1bc)](/Finished/)||_0x1c1907['match'](/Skipped/)?new Date()[_0x34b5fb(0x1a0)]():null,'failure':failureData[_0x34b5fb(0x1c8)](null,_0x539524),'failure_type':!_0x38b137?null:_0x38b137[_0x34b5fb(0x1bc)](/AssertionError/)?_0x5229bb[_0x34b5fb(0x1fd)]:_0x5229bb[_0x34b5fb(0x1d9)],'retry_of':_0xa6f0f[_0x34b5fb(0x2b1)]};if([_0x5229bb[_0x34b5fb(0x1f5)],_0x5229bb[_0x34b5fb(0x1b9)],_0x5229bb[_0x34b5fb(0x223)]]['includes'](_0x1c1907)){if(_0x5229bb[_0x34b5fb(0x2c2)](getCentralUser)['lcnc']){const _0x2845cf=TestMetadata[_0x34b5fb(0x205)](_0xa6f0f[_0x34b5fb(0x215)]);if(_0x2845cf){const _0x1dc702={};_0x1dc702[_0x34b5fb(0x2b4)]=_0x2845cf,Object[_0x34b5fb(0x29b)](_0x597593,_0x1dc702);}}}testhubUtils['appendTesthubParams'](_0x597593,_0x1c1907,_0xa6f0f,FRAMEWORKS['MOCHA']);(_0xa6f0f['responseCode']||_0xa6f0f['redirectUrl'])&¢ralScannerUtils[_0x34b5fb(0x26f)](_0x597593,_0xa6f0f[_0x34b5fb(0x260)],_0xa6f0f['redirectUrl']);_0x5229bb[_0x34b5fb(0x2a2)](_0x1c1907,_0x5229bb[_0x34b5fb(0x1f5)])&&!_0x597593[_0x5229bb[_0x34b5fb(0x2c6)]]&&(_0x597593[_0x5229bb[_0x34b5fb(0x2c6)]]=_0x597593[_0x5229bb[_0x34b5fb(0x1ef)]]);if(_0x1c1907[_0x34b5fb(0x1bc)](/HookRun/))[_0x597593[_0x34b5fb(0x29f)],_0x597593[_0x34b5fb(0x211)]]=_0x5229bb[_0x34b5fb(0x1d0)](getHookDetails,_0xa6f0f[_0x34b5fb(0x20f)]()||_0xa6f0f[_0x34b5fb(0x26a)]||_0xa6f0f['title']),_0x5229bb[_0x34b5fb(0x1ce)](_0x1c1907,_0x5229bb['MXLhT'])&&(_0x5229bb[_0x34b5fb(0x19d)](_0x597593[_0x34b5fb(0x22f)],_0x5229bb[_0x34b5fb(0x247)])&&(_0x597593[_0x34b5fb(0x22f)]=_0x5229bb[_0x34b5fb(0x207)]),_0x5229bb[_0x34b5fb(0x1ce)](_0x597593[_0x34b5fb(0x29f)],_0x5229bb['NEAuv'])&&_0x5229bb[_0x34b5fb(0x23d)](_0x597593[_0x34b5fb(0x22f)],_0x5229bb[_0x34b5fb(0x247)])&&!_0xa6f0f['ctx'][_0x34b5fb(0x1b2)]['markedStatus']&&(_0xa6f0f[_0x34b5fb(0x24a)][_0x34b5fb(0x1b2)][_0x34b5fb(0x1d4)]=!![],_0xa6f0f[_0x34b5fb(0x24a)]['currentTest'][_0x34b5fb(0x1a8)]=STATE_FAILED,await this[_0x34b5fb(0x1ca)](_0xa6f0f[_0x34b5fb(0x24a)][_0x34b5fb(0x1b2)],undefined,!![])));else _0x1c1907[_0x34b5fb(0x1bc)](/TestRun/)&&_0x5229bb['BqFld'](mapTestHooks,_0xa6f0f);const _0x26436a=_0x597593[_0x5229bb[_0x34b5fb(0x263)]][0x0];_0x26436a&&(_0x597593[_0x5229bb[_0x34b5fb(0x196)]]=_0x26436a[_0x5229bb['RSaXu']],_0x597593[_0x5229bb['ExqZZ']]=_0x26436a[_0x5229bb[_0x34b5fb(0x245)]]);[_0x5229bb['wJUwU'],_0x5229bb[_0x34b5fb(0x1f5)]][_0x34b5fb(0x23e)](_0x1c1907)&&(this[_0x34b5fb(0x236)][_0x34b5fb(0x289)](_0x597593),_0x597593[_0x34b5fb(0x2be)]=_0x5229bb[_0x34b5fb(0x24b)](getHooksForTest,_0xa6f0f));const _0x4b9358={'event_type':_0x5229bb[_0x34b5fb(0x1ce)](_0x1c1907,_0x5229bb['pfajA'])?_0x5229bb[_0x34b5fb(0x1b9)]:_0x1c1907};_0x1c1907[_0x34b5fb(0x1bc)](/HookRun/)?(_0x597593[_0x5229bb[_0x34b5fb(0x2a8)]]=HOOK_TYPES_MAP[_0x597593[_0x5229bb[_0x34b5fb(0x2a8)]]],_0x4b9358[_0x5229bb[_0x34b5fb(0x243)]]=_0x597593):_0x4b9358[_0x5229bb['ipjXA']]=_0x597593,testhubUtils['setCurrentTestData'](FRAMEWORKS[_0x34b5fb(0x2c7)],_0x4b9358),await SessionHandler[_0x34b5fb(0x19f)](_0x4b9358);}catch(_0x4ed636){_0x5229bb[_0x34b5fb(0x24b)](debug,'Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20'+_0x1c1907+_0x34b5fb(0x2b3)+_0x4ed636);}};[a31_0x5652a8(0x1bf)](_0x539d50){const _0x3c31a0=a31_0x5652a8,_0x5e854a={};_0x5e854a['SOfBt']=function(_0x1af83d,_0x41868e){return _0x1af83d===_0x41868e;},_0x5e854a[_0x3c31a0(0x1f4)]=function(_0x11dd58,_0x6ac2dc){return _0x11dd58===_0x6ac2dc;},_0x5e854a[_0x3c31a0(0x1dc)]='.git',_0x5e854a[_0x3c31a0(0x251)]=_0x3c31a0(0x221);const _0x17df86=_0x5e854a,_0x47a4b5=path['sep'];if(_0x17df86['SOfBt'](_0x539d50,null)||_0x17df86[_0x3c31a0(0x1f7)](_0x539d50,'')||_0x17df86[_0x3c31a0(0x1f4)](_0x539d50,_0x47a4b5)||_0x17df86[_0x3c31a0(0x1f4)](_0x539d50,path[_0x3c31a0(0x24d)](_0x539d50)))return null;try{return fs['statSync'](path['join'](_0x539d50,_0x17df86[_0x3c31a0(0x1dc)],_0x17df86[_0x3c31a0(0x251)])),_0x539d50;}catch(_0x1a8878){const _0x24998a=path[_0x3c31a0(0x24d)](_0x539d50);return this[_0x3c31a0(0x1bf)](_0x24998a);}}[a31_0x5652a8(0x1d3)]=async _0x58a2d8=>{const _0x17af87=a31_0x5652a8,_0x1b0ab6={'iXjqp':_0x17af87(0x232),'eeOnR':function(_0x266ded,_0x5dd2a1){return _0x266ded(_0x5dd2a1);}};try{this[_0x17af87(0x273)]&&!this[_0x17af87(0x273)][_0x17af87(0x1d4)]&&(_0x58a2d8[_0x17af87(0x241)]=this['current_hook'][_0x17af87(0x246)]);!_0x58a2d8[_0x17af87(0x241)]&&this[_0x17af87(0x2b6)]&&!this['current_test'][_0x17af87(0x1d4)]&&(_0x58a2d8[_0x17af87(0x27b)]=this[_0x17af87(0x2b6)]['testAnalyticsId']);if(_0x58a2d8[_0x17af87(0x241)]||_0x58a2d8[_0x17af87(0x27b)]){const _0x10f0f3={};_0x10f0f3[_0x17af87(0x22c)]=_0x1b0ab6['iXjqp'],_0x10f0f3[_0x17af87(0x22e)]=[_0x58a2d8],await SessionHandler['uploadEventData'](_0x10f0f3);}}catch(_0x432407){_0x1b0ab6[_0x17af87(0x25d)](debug,_0x17af87(0x1f2)+constants[_0x17af87(0x294)]+_0x17af87(0x2b3)+_0x432407);}};[a31_0x5652a8(0x1b8)]=async _0x24fa2a=>{const _0x5e54da=a31_0x5652a8,_0x28d96e={'kkPhj':_0x5e54da(0x25e),'sXOHz':_0x5e54da(0x217),'KGsds':function(_0x53732f,_0x11df36){return _0x53732f(_0x11df36);}};try{const _0x1ad458={};_0x1ad458['uuid']=_0x24fa2a[_0x5e54da(0x1b4)]||this[_0x5e54da(0x2b6)][_0x5e54da(0x215)],_0x1ad458['integrations']=_0x24fa2a[_0x28d96e['kkPhj']];const _0x395155=_0x1ad458,_0x1cf6c9={};_0x1cf6c9[_0x5e54da(0x22c)]=_0x28d96e[_0x5e54da(0x1f3)],_0x1cf6c9[_0x5e54da(0x2b5)]=_0x395155,await SessionHandler[_0x5e54da(0x19f)](_0x1cf6c9);}catch(_0x1d1cf1){_0x28d96e['KGsds'](debug,_0x5e54da(0x1c7)+constants[_0x5e54da(0x294)]+_0x5e54da(0x2b3)+_0x1d1cf1);}};[a31_0x5652a8(0x1a9)](_0x12fdfd){const _0x336a2a=a31_0x5652a8,_0x36312d={};_0x36312d[_0x336a2a(0x2a9)]=_0x336a2a(0x231),_0x36312d['BlegL']=_0x336a2a(0x2bc),_0x36312d[_0x336a2a(0x29d)]=_0x336a2a(0x250);const _0x5764f9=_0x36312d,_0x15ed55={};return _0x15ed55[STATE_PASSED]=_0x5764f9[_0x336a2a(0x2a9)],_0x15ed55[STATE_PENDING]=_0x5764f9[_0x336a2a(0x1c2)],_0x15ed55[STATE_FAILED]=_0x5764f9[_0x336a2a(0x29d)],_0x15ed55[_0x12fdfd];}[a31_0x5652a8(0x1eb)](_0x5d74e5){const _0x2863bb=a31_0x5652a8,_0x16fe80={};_0x16fe80['fdmSU']=function(_0x2df2d5,_0x11a263){return _0x2df2d5-_0x11a263;};const _0x202f6a=_0x16fe80,_0x5b3a1e=_0x5d74e5[_0x2863bb(0x1d8)]();return _0x5b3a1e[_0x2863bb(0x21e)](0x0,_0x202f6a[_0x2863bb(0x25a)](_0x5b3a1e[_0x2863bb(0x291)],0x1))[_0x2863bb(0x1fa)]('\x20');}[a31_0x5652a8(0x1cf)](_0x146509){const _0x40d0cb=a31_0x5652a8,_0x341132={};_0x341132[_0x40d0cb(0x1ea)]=function(_0x49b5ef,_0x2d369b){return _0x49b5ef-_0x2d369b;};const _0x395842=_0x341132,_0x42a53e=_0x146509[_0x40d0cb(0x1d8)]();return _0x42a53e[_0x40d0cb(0x21e)](0x0,_0x395842[_0x40d0cb(0x1ea)](_0x42a53e[_0x40d0cb(0x291)],0x1));}[a31_0x5652a8(0x1b7)](_0x2fe5d9){const _0x4d06a1=a31_0x5652a8,_0xfef134={};_0xfef134[_0x4d06a1(0x1c9)]=function(_0x1759d3,_0xc2a066){return _0x1759d3>_0xc2a066;};const _0x3e1200=_0xfef134;if(_0x2fe5d9[_0x4d06a1(0x1df)])return _0x2fe5d9['file'];if(_0x2fe5d9[_0x4d06a1(0x24a)]){const _0x18c6a0=_0x2fe5d9[_0x4d06a1(0x24a)]['currentTest']?this[_0x4d06a1(0x1b7)](_0x2fe5d9[_0x4d06a1(0x24a)][_0x4d06a1(0x1b2)]):null;if(_0x18c6a0)return _0x18c6a0;}if(_0x2fe5d9[_0x4d06a1(0x20b)]){const _0xc6775=this[_0x4d06a1(0x1b7)](_0x2fe5d9[_0x4d06a1(0x20b)])||(_0x2fe5d9[_0x4d06a1(0x20b)]['ctx']&&_0x2fe5d9[_0x4d06a1(0x20b)][_0x4d06a1(0x24a)][_0x4d06a1(0x1b2)]?this['getRootParentFile'](_0x2fe5d9[_0x4d06a1(0x20b)][_0x4d06a1(0x24a)][_0x4d06a1(0x1b2)]):null);if(_0xc6775)return _0xc6775;_0x2fe5d9[_0x4d06a1(0x20b)]['suites']&&_0x3e1200[_0x4d06a1(0x1c9)](_0x2fe5d9['parent'][_0x4d06a1(0x1b6)][_0x4d06a1(0x291)],0x0)&&_0x2fe5d9[_0x4d06a1(0x20b)][_0x4d06a1(0x1b6)]['forEach'](_0xab4ae4=>{const _0x5505f2=_0x4d06a1,_0xc13a9=_0xab4ae4['ctx']?this[_0x5505f2(0x1b7)](_0xab4ae4['ctx']):null;if(_0xc13a9)return _0xc13a9;});}return null;}}module[a31_0x5652a8(0x258)]=MyReporter;
|
|
1
|
+
'use strict';function a31_0x5156(){const _0x4cbf48=['getRootParentFile','currentRetry','xUtiE','cwd','currentTest','TZiwr','File\x20path\x20could\x20not\x20be\x20found','\x20\x20<dt\x20class=\x22error\x22>','zwLVR','trim','aNRWi','itWut','hookAnalyticsId','bZPFl','doc','IrbyF','408910tbdwNK','suite','shouldProcessEventForTesthub','now','hook_type','../../../helpers/test-observability/constants','YkdVw','rYiXz','skipped','IeuDR','JvMPW','escape','nfXlg','bs:addLog:','Failed\x20to\x20load\x20reporter\x20','thTestRunUuid','failCount','light','sendTestRunEvent','mocha/lib/reporters/base.js','parent','fTJFn','aVQQL','write','__workerDetails','YFsYy','isPending','yhtAL','redirectUrl','BuIXY','clean','multiple','dZbwM','path','Exception\x20in\x20uploading\x20log\x20data\x20to\x20','EVENT','failure','../../../helpers/testhub/utils','IXDpg','QODbt','length','backtrace','12IFsFwh','appendTestPlatform','__platform__','prototype','PNiKK','uploadEventData','state','bind','fullTitle','ksuYd','LlExB','../../../helpers/logger','config','<section\x20class=\x22suite\x22>','stWza','event_type','expanded','VUxPr','apply','name','err','</dl>','dirname','Reporter','HookFinished','jGeFO','vkJqk','QNIZg','current_hook','pqgJR','VfJDV','FwVLc','speed','HADFz','setGlobal','gjXAP','Runner','Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20','AFTER_EACH','originalTitle','537985Dcekst','sJDeC','\x20(%dms)','after\x20each','mqkPP','<dl>','mocha/lib/runnable.js','rOPRd','started_at','_currentRetry','xEDkq','DFVCR','pass','sep','GtuZd','runner','titlePath','reporterOptions','.git','PfhfZ','once','ZPrXT','_paths','mocha/lib/reporters/','163581XseCxS','vgDCb','retryOf','constants','color','IsjTa','vkGqU','../../../helpers/test-observability/requestQueueHandler','dLkMY','failure_reason_expanded','\x20\x20<dd><pre><code>','setCurrentTestData','ssPkU','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','pVISc','QisdE','dpKpL','Exception\x20in\x20uploading\x20platform\x20details\x20to\x20','results','__indents','_testResults','symbols','javascript','Mocha','Pdelw','hvTEw','responseCode','%s\x20-\x20%s','toString','sushS','52332wPqboD','galDW','HookRunFinished','wfUKC','</section>','FZINp','vrEqE','MOCHA','TestRunSkipped','relative','ojJBN','ToADW','.js','wjywj','pid','before\x20each','oUpVr','spec','tkNPm','call','450888GfZiIH','DAjrV','flXMV','uuid','nuDGc','wnJDm','../test-observability/mochaUtils','gBlSR','get','mUfBN','iJIaR','LueAO','current_test','12XnnjRk','join','testAnalyticsId','PmkYV','docHtml','failed','inspect','zMhEj','<h1>','</code></pre></dd>','push','uPXUq','duration','JQJvC','testStarted','ArrfB','bs:addPlatformDetails:','shutdown','DRLxL','_indents','includes','match','prefixTestPath','split','FsPPO','BuDjS','xJHNj','%s\x20','NVCuA','suites','increaseIndent','qCEqd','indent','iJOhG','../../../helpers/central-scanner/helpers','analyticsResult','body','ZtXCs','DWLsH','passed','decreaseIndent','DQxGb','statSync','ibtij','appendTestItemLog','iCErQ','36fFsqbM','TEST_REPORTING_ANALYTICS','Exception\x20in\x20populating\x20test\x20data\x20for\x20hook\x20skipped\x20test\x20with\x20error\x20:\x20','../../../helpers/testhub/constants','done','pLPZf','lKuyU','IyvzB','comma','../../../helpers/globals','green','hook_run_uuid','after\x20all','consoleLog','ctx','JcUXU','hqptN','TestRunStarted','UTKZI','reporterOption','AHrwP','BEFORE_EACH','hook_run','237685yGbqxD','bright\x20yellow','</dt>','dot','ILYkG','test','PNAqe','eGleu','CBTSessionCreated','removeAllListeners','lcnc','title','PQoOi','bsConfig','YnOKY','type','\x20\x20<dd\x20class=\x22error\x22><pre><code>','assign','_buildCreated','\x20\x20<dt>','akmlr','COMPLETED','</h1>','failureCount','mocha','AFTER_ALL','ipoKH','findGitConfig','_testEnv','PafEt','docAppend','location_prefix','BEWME','bang','lnjfs','markedStatus','file','2|3|4|1|0','finalResults','638362wZqBPd','stdout','PYmwK','FYHhC','testRunUUID','scope','scopes','test_run_uuid','slow','FIilE','testObservability','registerListeners','appendTesthubParams','result','../../../helpers/metadata','TestRunFinished','jbofw','rpMIq','hooks','ZhPoT','VANme','fzpZf','TPeIh','Exception\x20in\x20browserstack\x20custome\x20reporter\x20with\x20error:\x20','slice','zlVQW','toISOString','\x20-\x20','winstonLogger','setCentralScannerData','akjUT','UyXlr','</dd>'];a31_0x5156=function(){return _0x4cbf48;};return a31_0x5156();}const a31_0x2a69fd=a31_0x22e1;(function(_0x347bb4,_0x24b1aa){const _0x4ed7ef=a31_0x22e1,_0x33745f=_0x347bb4();while(!![]){try{const _0x34c510=-parseInt(_0x4ed7ef(0x1e5))/0x1+parseInt(_0x4ed7ef(0x12c))/0x2+parseInt(_0x4ed7ef(0x1c7))/0x3*(-parseInt(_0x4ed7ef(0x206))/0x4)+parseInt(_0x4ed7ef(0x1af))/0x5+-parseInt(_0x4ed7ef(0x187))/0x6*(-parseInt(_0x4ed7ef(0x105))/0x7)+parseInt(_0x4ed7ef(0x1f9))/0x8+parseInt(_0x4ed7ef(0x234))/0x9*(-parseInt(_0x4ed7ef(0x15d))/0xa);if(_0x34c510===_0x24b1aa)break;else _0x33745f['push'](_0x33745f['shift']());}catch(_0x1a0e96){_0x33745f['push'](_0x33745f['shift']());}}}(a31_0x5156,0x29e34));const util=require('util'),fs=require('fs'),path=require(a31_0x2a69fd(0x17e)),{requireModule,getCentralUser}=require('../../../helpers/helper'),Base=requireModule(a31_0x2a69fd(0x170),'mocha'),utils=requireModule('mocha/lib/utils.js',a31_0x2a69fd(0x11d)),color=Base[a31_0x2a69fd(0x1cb)],Mocha=requireModule(a31_0x2a69fd(0x11d)),Runnable=requireModule(a31_0x2a69fd(0x1b5),a31_0x2a69fd(0x11d)),{v4:uuidv4}=require(a31_0x2a69fd(0x1fc)),bsSetupHelper=require('../../../helpers/helper'),testhubUtils=require(a31_0x2a69fd(0x182)),centralScannerUtils=require(a31_0x2a69fd(0x228)),testHubConstants=require(a31_0x2a69fd(0x237)),{FRAMEWORKS}=require(a31_0x2a69fd(0x162)),globals=require(a31_0x2a69fd(0x23d)),logger=require(a31_0x2a69fd(0x192))[a31_0x2a69fd(0x148)],TestMetadata=require(a31_0x2a69fd(0x13a)),a31_0x21662d={};a31_0x21662d['before\x20all']='BEFORE_ALL',a31_0x21662d[a31_0x2a69fd(0x240)]=a31_0x2a69fd(0x11e),a31_0x21662d[a31_0x2a69fd(0x1f4)]=a31_0x2a69fd(0x103),a31_0x21662d[a31_0x2a69fd(0x1b2)]=a31_0x2a69fd(0x1ad);const HOOK_TYPES_MAP=a31_0x21662d,{EVENT_RUN_END,EVENT_TEST_BEGIN,EVENT_TEST_END,EVENT_TEST_PENDING,EVENT_RUN_BEGIN,EVENT_TEST_FAIL,EVENT_TEST_PASS,EVENT_SUITE_BEGIN,EVENT_SUITE_END,EVENT_HOOK_BEGIN,EVENT_HOOK_END}=Mocha[a31_0x2a69fd(0x1ab)]['constants'],{STATE_PASSED,STATE_PENDING,STATE_FAILED}=Runnable[a31_0x2a69fd(0x1ca)],{getTestEnv,getHookDetails,getHooksForTest,mapTestHooks,getHookSkippedTests}=require(a31_0x2a69fd(0x1ff)),{consoleHolder}=require(a31_0x2a69fd(0x162)),SessionHandler=require('../../../helpers/test-observability/sessionHandler'),{isTestObservabilitySession,PathHelper,debug,failureData}=require('../../../helpers/test-observability/utils'),RequestQueueHandler=require(a31_0x2a69fd(0x1ce)),constants=require('../../utils/constants'),requestQueueHandler=RequestQueueHandler['getInstance']();function a31_0x22e1(_0x21b528,_0x50b5e0){const _0x5156c0=a31_0x5156();return a31_0x22e1=function(_0x22e1dc,_0x1b349b){_0x22e1dc=_0x22e1dc-0xfc;let _0x554e0f=_0x5156c0[_0x22e1dc];return _0x554e0f;},a31_0x22e1(_0x21b528,_0x50b5e0);}class MyReporter{constructor(_0x43b60e,_0xecc8e0){const _0x4cbdd2=a31_0x2a69fd,_0x7b986b={'NVCuA':function(_0x19d1ab,_0x4ed4b9){return _0x19d1ab===_0x4ed4b9;},'lnjfs':_0x4cbdd2(0x1f6),'rpMIq':function(_0x1c8d02,_0x3db20d){return _0x1c8d02===_0x3db20d;},'xJHNj':function(_0x5267db,_0x533d47){return _0x5267db+_0x533d47;},'DAjrV':function(_0xe8f14d,_0x307beb){return _0xe8f14d+_0x307beb;},'ToADW':function(_0x2c8315,_0x65fb5f,_0x2d9bae){return _0x2c8315(_0x65fb5f,_0x2d9bae);},'PnDtX':_0x4cbdd2(0x23e),'PYmwK':_0x4cbdd2(0x221),'PNAqe':function(_0x40103f,_0x3b74f8,_0x265739){return _0x40103f(_0x3b74f8,_0x265739);},'DWLsH':_0x4cbdd2(0x16e),'ZhPoT':_0x4cbdd2(0x1e2),'uPXUq':'RUNNING','dLkMY':_0x4cbdd2(0x15b),'YFsYy':function(_0x4a6020){return _0x4a6020();},'QODbt':'HookRunStarted','ksuYd':_0x4cbdd2(0x1e7),'aNRWi':'passed','LueAO':'fast','YnOKY':function(_0x3f9349,_0x119d98){return _0x3f9349+_0x119d98;},'akjUT':function(_0x5b49e6,_0x5a5391,_0x301f0e){return _0x5b49e6(_0x5a5391,_0x301f0e);},'FIilE':'checkmark','Pdelw':function(_0x12c876,_0x125264){return _0x12c876+_0x125264;},'ShOiV':_0x4cbdd2(0x1bb),'ZPrXT':'\x20%s','TPeIh':function(_0x4b7474,_0x3b0ba6){return _0x4b7474+_0x3b0ba6;},'FwVLc':function(_0x3db058,_0x37ecb3,_0x508c6d){return _0x3db058(_0x37ecb3,_0x508c6d);},'jbofw':function(_0x4028ef,_0x5987e0,_0x37bb89){return _0x4028ef(_0x5987e0,_0x37bb89);},'GtuZd':_0x4cbdd2(0x1b1),'PmkYV':'fail','eGleu':'\x20\x20%d)\x20%s','UTKZI':function(_0x40fd6a,_0x3ae0d6){return _0x40fd6a===_0x3ae0d6;},'bLSCJ':function(_0x260cd6,_0x1c965a){return _0x260cd6+_0x1c965a;},'YkdVw':_0x4cbdd2(0x106),'nfXlg':function(_0x2ba491,_0x23f9f3,_0x14ee7f){return _0x2ba491(_0x23f9f3,_0x14ee7f);},'AHrwP':_0x4cbdd2(0x11a),'vgDCb':function(_0x5a5e38,_0x468579){return _0x5a5e38===_0x468579;},'vrEqE':function(_0x207066,_0x24f033){return _0x207066===_0x24f033;},'iCErQ':_0x4cbdd2(0x108),'TZiwr':function(_0x5f522e,_0x108d10){return _0x5f522e===_0x108d10;},'ZtXCs':_0x4cbdd2(0x134),'ojJBN':function(_0x340b7d,_0x12a69e){return _0x340b7d===_0x12a69e;},'qCEqd':function(_0x5eb8d1,_0x3c62d4){return _0x5eb8d1===_0x3c62d4;},'UyXlr':_0x4cbdd2(0x12a),'bZPFl':function(_0x36fe97,_0x421cb4){return _0x36fe97===_0x421cb4;},'IrbyF':'pending','tIJKV':function(_0x4a82dd){return _0x4a82dd();},'nuDGc':_0x4cbdd2(0x1ed),'flXMV':function(_0xcc3c9e,_0x431d91){return _0xcc3c9e===_0x431d91;},'hNnmz':function(_0x4b29eb,_0x139fc7){return _0x4b29eb(_0x139fc7);},'IXDpg':function(_0x5ad3b7,_0x417b67){return _0x5ad3b7(_0x417b67);},'ArrfB':function(_0x400378,_0x573ef8){return _0x400378===_0x573ef8;},'VfJDV':function(_0x570079){return _0x570079();},'QisdE':function(_0x2a0542){return _0x2a0542();},'QNIZg':'xunit','stWza':'mocha','ibtij':function(_0x3d23e3,_0x1a3cd4){return _0x3d23e3(_0x1a3cd4);},'iJIaR':function(_0x5408db,_0x2643da){return _0x5408db(_0x2643da);},'LlExB':function(_0x4277c8,_0x2c9e80){return _0x4277c8!==_0x2c9e80;}};this[_0x4cbdd2(0x114)]=_0xecc8e0[_0x4cbdd2(0x101)][_0x4cbdd2(0x114)],this[_0x4cbdd2(0x136)]=_0x7b986b[_0x4cbdd2(0x1a5)](isTestObservabilitySession),Base[_0x4cbdd2(0x1f8)](this,_0x43b60e,_0xecc8e0),this[_0x4cbdd2(0x219)]=0x0,this[_0x4cbdd2(0x16d)]=0x0,this[_0x4cbdd2(0x1d9)]=[],this[_0x4cbdd2(0x12b)]=[],this['suiteCount']=0x0,this[_0x4cbdd2(0x117)]=![],this[_0x4cbdd2(0x1db)]=[],this[_0x4cbdd2(0x121)]=_0x7b986b[_0x4cbdd2(0x1d6)](getTestEnv),this[_0x4cbdd2(0x1c5)]=new PathHelper({'cwd':process[_0x4cbdd2(0x150)]()},this['_testEnv'][_0x4cbdd2(0x124)]),this['_upstreamConfig']=_0xecc8e0['reporterOption'][_0x4cbdd2(0x112)],this[_0x4cbdd2(0x137)]();_0x7b986b[_0x4cbdd2(0x152)](this[_0x4cbdd2(0x114)],_0x7b986b['dLkMY'])&&(this[_0x4cbdd2(0x20a)]='',this[_0x4cbdd2(0x1da)]=0x2);_0x43b60e['once'](EVENT_RUN_BEGIN,async()=>{const _0x5c3e9b=_0x4cbdd2;_0x7b986b[_0x5c3e9b(0x222)](this['type'],_0x7b986b[_0x5c3e9b(0x127)])&&Base[_0x5c3e9b(0x241)]();})['on'](EVENT_SUITE_BEGIN,_0x2da452=>{const _0x5dca21=_0x4cbdd2;if(_0x2da452['root'])return;if(_0x7b986b[_0x5dca21(0x13d)](this[_0x5dca21(0x114)],_0x7b986b[_0x5dca21(0x127)]))this[_0x5dca21(0x224)](),Base['consoleLog'](_0x7b986b[_0x5dca21(0x220)](_0x7b986b[_0x5dca21(0x1fa)](this[_0x5dca21(0x226)](),_0x7b986b[_0x5dca21(0x1f0)](color,_0x7b986b['PnDtX'],_0x7b986b[_0x5dca21(0x12e)])),_0x7b986b['PNAqe'](color,_0x7b986b[_0x5dca21(0x22c)],_0x7b986b[_0x5dca21(0x13f)])),_0x7b986b[_0x5dca21(0x211)],_0x2da452[_0x5dca21(0x110)],global['__platform__']);else _0x7b986b[_0x5dca21(0x13d)](this[_0x5dca21(0x114)],_0x7b986b['dLkMY'])&&(this[_0x5dca21(0x123)](this[_0x5dca21(0x226)]()+_0x5dca21(0x194)),++this[_0x5dca21(0x1da)],this[_0x5dca21(0x123)](this[_0x5dca21(0x226)]()+_0x5dca21(0x20e)+utils[_0x5dca21(0x168)](_0x2da452[_0x5dca21(0x110)]+_0x5dca21(0x147)+global[_0x5dca21(0x189)])+_0x5dca21(0x11b)),this[_0x5dca21(0x123)](this[_0x5dca21(0x226)]()+_0x5dca21(0x1b4)));})['on'](EVENT_HOOK_BEGIN,async _0x3e0f64=>{const _0x428ad9=_0x4cbdd2;if(_0x7b986b[_0x428ad9(0x13d)](testhubUtils[_0x428ad9(0x15f)](testHubConstants['EVENT']['HookStarted']),!![])){if(!_0x3e0f64['hookAnalyticsId'])_0x3e0f64[_0x428ad9(0x159)]=_0x7b986b[_0x428ad9(0x176)](uuidv4);else _0x3e0f64[_0x428ad9(0x128)]&&(_0x3e0f64['hookAnalyticsId']=_0x7b986b['YFsYy'](uuidv4),delete _0x3e0f64[_0x428ad9(0x128)]);_0x3e0f64[_0x428ad9(0x1b7)]=new Date()[_0x428ad9(0x146)](),this[_0x428ad9(0x1a3)]=_0x3e0f64,await this['sendTestRunEvent'](_0x3e0f64,undefined,![],_0x7b986b[_0x428ad9(0x184)]);}})['on'](EVENT_HOOK_END,async _0x284108=>{const _0x578d72=_0x4cbdd2;_0x7b986b[_0x578d72(0x13d)](testhubUtils[_0x578d72(0x15f)](testHubConstants[_0x578d72(0x180)][_0x578d72(0x19f)]),!![])&&(!_0x284108['markedStatus']&&(_0x284108[_0x578d72(0x128)]=!![],await this[_0x578d72(0x16f)](_0x284108,undefined,![],_0x7b986b['ksuYd'])));})['on'](EVENT_SUITE_END,_0x1a48b5=>{const _0x54956d=_0x4cbdd2,_0xdf018b={'DQxGb':function(_0x2612e0,_0x4b47f8){return _0x7b986b['rpMIq'](_0x2612e0,_0x4b47f8);},'BuIXY':_0x7b986b[_0x54956d(0x157)],'dpKpL':_0x7b986b[_0x54956d(0x204)],'PfhfZ':function(_0x19b59f,_0x452b9b){const _0x22d7ce=_0x54956d;return _0x7b986b[_0x22d7ce(0x113)](_0x19b59f,_0x452b9b);},'PQoOi':function(_0x53251d,_0x39509a,_0x38f0bc){const _0x27e8c9=_0x54956d;return _0x7b986b[_0x27e8c9(0x14a)](_0x53251d,_0x39509a,_0x38f0bc);},'BEWME':_0x7b986b[_0x54956d(0x135)],'ipoKH':function(_0x547d8e,_0x307c28){const _0x340d9b=_0x54956d;return _0x7b986b[_0x340d9b(0x1df)](_0x547d8e,_0x307c28);},'PNiKK':function(_0x375a47,_0x1f5dc6,_0x2417ae){const _0xa0b214=_0x54956d;return _0x7b986b[_0xa0b214(0x1f0)](_0x375a47,_0x1f5dc6,_0x2417ae);},'wjywj':_0x7b986b['ShOiV'],'oUpVr':_0x7b986b[_0x54956d(0x1c4)],'xEDkq':function(_0x1c6372,_0xfc5bba){const _0x3f75e8=_0x54956d;return _0x7b986b[_0x3f75e8(0x142)](_0x1c6372,_0xfc5bba);},'fpgMv':function(_0xf2fd46,_0x2326a2){const _0x4bd195=_0x54956d;return _0x7b986b[_0x4bd195(0x1df)](_0xf2fd46,_0x2326a2);},'gBlSR':function(_0x775d78,_0x4875dd,_0xa44952){const _0x4a1c9d=_0x54956d;return _0x7b986b[_0x4a1c9d(0x1a6)](_0x775d78,_0x4875dd,_0xa44952);},'sushS':function(_0x567898,_0xf2e0ad,_0x5165bb){const _0x4f0736=_0x54956d;return _0x7b986b[_0x4f0736(0x13c)](_0x567898,_0xf2e0ad,_0x5165bb);},'IsjTa':function(_0x35660f,_0x519a78,_0x181fbf){const _0x1ce189=_0x54956d;return _0x7b986b[_0x1ce189(0x1a6)](_0x35660f,_0x519a78,_0x181fbf);},'bnFRv':_0x7b986b[_0x54956d(0x1bd)],'pVISc':function(_0x3b7ce7,_0x24c5d8){return _0x7b986b['TPeIh'](_0x3b7ce7,_0x24c5d8);},'eTjXA':_0x7b986b[_0x54956d(0x209)],'zrxCL':_0x7b986b[_0x54956d(0x10c)]};if(_0x1a48b5['root'])return;if(_0x7b986b[_0x54956d(0x100)](this[_0x54956d(0x114)],_0x7b986b[_0x54956d(0x127)]))Base[_0x54956d(0x241)](),Base[_0x54956d(0x241)](_0x7b986b['bLSCJ'](_0x7b986b[_0x54956d(0x1fa)](this[_0x54956d(0x226)](),_0x7b986b[_0x54956d(0x13c)](color,_0x7b986b[_0x54956d(0x163)],_0x7b986b[_0x54956d(0x12e)])),_0x7b986b[_0x54956d(0x169)](color,_0x7b986b[_0x54956d(0x22c)],_0x7b986b['ZhPoT'])),_0x7b986b[_0x54956d(0x102)],_0x1a48b5[_0x54956d(0x110)],global[_0x54956d(0x189)]),this['results']['forEach'](_0x329c6e=>{const _0x4fa1f7=_0x54956d;if(_0xdf018b[_0x4fa1f7(0x22f)](_0x329c6e[_0x4fa1f7(0x18d)],_0xdf018b[_0x4fa1f7(0x17a)])){var _0x3f74e2;_0xdf018b[_0x4fa1f7(0x22f)](_0x329c6e['speed'],_0xdf018b[_0x4fa1f7(0x1d7)])?(_0x3f74e2=_0xdf018b[_0x4fa1f7(0x1c2)](_0xdf018b[_0x4fa1f7(0x1c2)](this[_0x4fa1f7(0x226)](),_0xdf018b[_0x4fa1f7(0x111)](color,_0xdf018b[_0x4fa1f7(0x125)],_0xdf018b[_0x4fa1f7(0x11f)]('\x20\x20',Base[_0x4fa1f7(0x1dc)]['ok']))),_0xdf018b[_0x4fa1f7(0x18b)](color,_0xdf018b[_0x4fa1f7(0x1f2)],_0xdf018b[_0x4fa1f7(0x1f5)])),Base[_0x4fa1f7(0x241)](_0x3f74e2,_0x329c6e['title'])):(_0x3f74e2=_0xdf018b[_0x4fa1f7(0x1c2)](_0xdf018b[_0x4fa1f7(0x1b9)](_0xdf018b['fpgMv'](this['indent'](),_0xdf018b[_0x4fa1f7(0x200)](color,_0xdf018b['BEWME'],_0xdf018b['ipoKH']('\x20\x20',Base['symbols']['ok']))),_0xdf018b[_0x4fa1f7(0x1e4)](color,_0xdf018b[_0x4fa1f7(0x1f2)],_0xdf018b['oUpVr'])),_0xdf018b[_0x4fa1f7(0x1cc)](color,_0x329c6e[_0x4fa1f7(0x1a7)],_0xdf018b['bnFRv'])),Base[_0x4fa1f7(0x241)](_0x3f74e2,_0x329c6e[_0x4fa1f7(0x110)],_0x329c6e[_0x4fa1f7(0x212)]));}else Base[_0x4fa1f7(0x241)](_0xdf018b[_0x4fa1f7(0x1d5)](this[_0x4fa1f7(0x226)](),_0xdf018b[_0x4fa1f7(0x111)](color,_0xdf018b['eTjXA'],_0xdf018b['zrxCL'])),++this[_0x4fa1f7(0x16d)],_0x329c6e[_0x4fa1f7(0x110)]);}),this[_0x54956d(0x22e)]();else _0x7b986b[_0x54956d(0x1c8)](this[_0x54956d(0x114)],_0x7b986b[_0x54956d(0x1cf)])&&(this[_0x54956d(0x123)](this['indent']()+_0x54956d(0x19c)),--this[_0x54956d(0x1da)],this['docAppend'](this[_0x54956d(0x226)]()+_0x54956d(0x1e9)),--this[_0x54956d(0x1da)]);Array[_0x54956d(0x18a)][_0x54956d(0x210)][_0x54956d(0x199)](this['finalResults'],this[_0x54956d(0x1d9)]),this[_0x54956d(0x1d9)]=[];})['on'](EVENT_TEST_PASS,async _0x1495a7=>{const _0x541516=_0x4cbdd2;this[_0x541516(0x1d9)][_0x541516(0x210)]({'speed':_0x1495a7[_0x541516(0x1a7)],'suite':_0x1495a7[_0x541516(0x171)][_0x541516(0x110)],'title':_0x1495a7['title'],'fullTitle':_0x1495a7['fullTitle'](),'duration':_0x1495a7[_0x541516(0x212)],'state':_0x1495a7['state'],'err':{},'currentRetry':_0x1495a7[_0x541516(0x14e)](),'titlePathV':_0x1495a7[_0x541516(0x1bf)](),'isPending':_0x1495a7[_0x541516(0x177)]()});if(_0x7b986b['vrEqE'](this[_0x541516(0x114)],_0x7b986b[_0x541516(0x233)]))_0x7b986b[_0x541516(0x152)](_0x1495a7[_0x541516(0x1a7)],_0x7b986b[_0x541516(0x22b)])?process[_0x541516(0x12d)][_0x541516(0x174)](Base[_0x541516(0x1cb)](_0x7b986b[_0x541516(0x163)],Base[_0x541516(0x1dc)][_0x541516(0x108)])):process['stdout'][_0x541516(0x174)](Base[_0x541516(0x1cb)](_0x1495a7['speed'],Base['symbols'][_0x541516(0x108)]));else{if(_0x7b986b['ojJBN'](this[_0x541516(0x114)],_0x7b986b['dLkMY'])){this[_0x541516(0x123)](this[_0x541516(0x226)]()+_0x541516(0x118)+utils[_0x541516(0x168)](_0x1495a7[_0x541516(0x110)])+_0x541516(0x107)),this['docAppend'](this[_0x541516(0x226)]()+_0x541516(0x118)+utils['escape'](_0x1495a7['file'])+_0x541516(0x107));var _0x2d73e1=utils[_0x541516(0x168)](utils[_0x541516(0x17b)](_0x1495a7[_0x541516(0x22a)]));this[_0x541516(0x123)](this[_0x541516(0x226)]()+_0x541516(0x1d1)+_0x2d73e1+_0x541516(0x20f));}}_0x7b986b[_0x541516(0x225)](testhubUtils['shouldProcessEventForTesthub'](),!![])&&(!_0x1495a7[_0x541516(0x128)]&&(_0x1495a7['markedStatus']=!![],await this[_0x541516(0x16f)](_0x1495a7)));})['on'](EVENT_TEST_FAIL,async(_0x1c94aa,_0x410e63)=>{const _0x34bd56=_0x4cbdd2;this[_0x34bd56(0x1d9)][_0x34bd56(0x210)]({'title':_0x1c94aa[_0x34bd56(0x110)],'suite':_0x1c94aa[_0x34bd56(0x171)][_0x34bd56(0x110)],'state':_0x1c94aa[_0x34bd56(0x18d)],'err':{'message':util[_0x34bd56(0x20c)](_0x410e63)},'fullTitle':_0x1c94aa[_0x34bd56(0x18f)](),'speed':_0x1c94aa[_0x34bd56(0x1a7)],'currentRetry':_0x1c94aa[_0x34bd56(0x14e)](),'titlePathV':_0x1c94aa[_0x34bd56(0x1bf)]()});if(_0x7b986b[_0x34bd56(0x1ef)](this[_0x34bd56(0x114)],_0x7b986b[_0x34bd56(0x233)]))process[_0x34bd56(0x12d)][_0x34bd56(0x174)](Base[_0x34bd56(0x1cb)](_0x7b986b['PmkYV'],Base['symbols'][_0x34bd56(0x126)]));else{if(_0x7b986b[_0x34bd56(0x1eb)](this[_0x34bd56(0x114)],_0x7b986b['dLkMY'])){const _0x15ba95=_0x7b986b[_0x34bd56(0x14b)][_0x34bd56(0x21d)]('|');let _0x2b6cd4=0x0;while(!![]){switch(_0x15ba95[_0x2b6cd4++]){case'0':this[_0x34bd56(0x123)](this[_0x34bd56(0x226)]()+'\x20\x20<dd\x20class=\x22error\x22>'+utils[_0x34bd56(0x168)](_0x1c94aa['err'])+_0x34bd56(0x14c));continue;case'1':this[_0x34bd56(0x123)](this[_0x34bd56(0x226)]()+_0x34bd56(0x115)+_0x1bbb68+_0x34bd56(0x20f));continue;case'2':this[_0x34bd56(0x123)](this[_0x34bd56(0x226)]()+'\x20\x20<dt\x20class=\x22error\x22>'+utils[_0x34bd56(0x168)](_0x1c94aa[_0x34bd56(0x110)])+_0x34bd56(0x107));continue;case'3':this[_0x34bd56(0x123)](this[_0x34bd56(0x226)]()+_0x34bd56(0x154)+utils[_0x34bd56(0x168)](_0x1c94aa[_0x34bd56(0x129)])+_0x34bd56(0x107));continue;case'4':var _0x1bbb68=utils['escape'](utils[_0x34bd56(0x17b)](_0x1c94aa['body']));continue;}break;}}}if(_0x7b986b[_0x34bd56(0x15a)](testhubUtils[_0x34bd56(0x15f)](testHubConstants[_0x34bd56(0x180)]['HookFinished']),!![])){if(!_0x1c94aa[_0x34bd56(0x128)]){_0x1c94aa[_0x34bd56(0x128)]=!![];if(_0x1c94aa['testAnalyticsId'])await this[_0x34bd56(0x16f)](_0x1c94aa,_0x410e63);else _0x1c94aa[_0x34bd56(0x159)]&&await this[_0x34bd56(0x16f)](_0x1c94aa,_0x410e63,![],_0x7b986b[_0x34bd56(0x190)]);}}})['on'](EVENT_TEST_PENDING,async _0x23e85b=>{const _0x4b31de=_0x4cbdd2;this[_0x4b31de(0x1d9)][_0x4b31de(0x210)]({'title':_0x23e85b['title'],'suite':_0x23e85b[_0x4b31de(0x171)][_0x4b31de(0x110)],'state':_0x23e85b[_0x4b31de(0x18d)],'err':{},'fullTitle':_0x23e85b['fullTitle'](),'speed':_0x23e85b[_0x4b31de(0x1a7)],'currentRetry':_0x23e85b[_0x4b31de(0x14e)](),'titlePathV':_0x23e85b[_0x4b31de(0x1bf)]()}),_0x7b986b[_0x4b31de(0x1eb)](this[_0x4b31de(0x114)],_0x7b986b['iCErQ'])&&process[_0x4b31de(0x12d)]['write'](Base[_0x4b31de(0x1cb)](_0x7b986b[_0x4b31de(0x15c)],Base['symbols'][_0x4b31de(0x23c)])),_0x7b986b[_0x4b31de(0x100)](testhubUtils[_0x4b31de(0x15f)](),!![])&&(!_0x23e85b[_0x4b31de(0x208)]&&(_0x23e85b[_0x4b31de(0x208)]=_0x7b986b['tIJKV'](uuidv4)),!_0x23e85b[_0x4b31de(0x128)]&&(_0x23e85b['markedStatus']=!![],await this['sendTestRunEvent'](_0x23e85b,undefined,![],_0x7b986b[_0x4b31de(0x1fd)])));})['on'](EVENT_TEST_BEGIN,async _0x1f594a=>{const _0x518e18=_0x4cbdd2;_0x7b986b['UTKZI'](testhubUtils[_0x518e18(0x15f)](),!![])&&await this[_0x518e18(0x214)](_0x1f594a);})['on'](EVENT_TEST_END,async _0x303981=>{const _0x1cc3df=_0x4cbdd2;_0x7b986b[_0x1cc3df(0x1fb)](testhubUtils['shouldProcessEventForTesthub'](),!![])&&(!_0x303981[_0x1cc3df(0x128)]&&(_0x303981['markedStatus']=!![],await this[_0x1cc3df(0x16f)](_0x303981)));})[_0x4cbdd2(0x1c3)](EVENT_RUN_END,async()=>{const _0x5c20eb=_0x4cbdd2;try{if(_0x7b986b[_0x5c20eb(0x1ef)](testhubUtils['shouldProcessEventForTesthub'](),!![])){const _0x23775f=_0x7b986b['hNnmz'](getHookSkippedTests,this[_0x5c20eb(0x1be)][_0x5c20eb(0x15e)]);for(const _0x5eb528 of _0x23775f){!_0x5eb528['testAnalyticsId']&&(_0x5eb528['testAnalyticsId']=_0x7b986b[_0x5c20eb(0x176)](uuidv4)),await this[_0x5c20eb(0x16f)](_0x5eb528,undefined,![],_0x7b986b[_0x5c20eb(0x1fd)]);}}}catch(_0x3a9338){_0x7b986b[_0x5c20eb(0x183)](debug,_0x5c20eb(0x236)+_0x3a9338);}await requestQueueHandler[_0x5c20eb(0x217)](),_0x7b986b[_0x5c20eb(0x215)](this[_0x5c20eb(0x114)],_0x7b986b[_0x5c20eb(0x1cf)])&&Base[_0x5c20eb(0x241)](this[_0x5c20eb(0x20a)]);});if(this['type']&&![_0x7b986b[_0x4cbdd2(0x1cf)],_0x7b986b[_0x4cbdd2(0x1a2)],_0x7b986b[_0x4cbdd2(0x127)],_0x7b986b[_0x4cbdd2(0x233)]][_0x4cbdd2(0x21a)](this[_0x4cbdd2(0x114)])){const _0x5b06f1=this[_0x4cbdd2(0x114)][_0x4cbdd2(0x156)]();this[_0x4cbdd2(0x19e)]=null;try{this['Reporter']=_0x7b986b[_0x4cbdd2(0x10b)](requireModule,_0x4cbdd2(0x1c6)+_0x5b06f1+_0x4cbdd2(0x1f1),_0x7b986b[_0x4cbdd2(0x195)]);}catch(_0x2acc50){_0x7b986b[_0x4cbdd2(0x231)](debug,_0x4cbdd2(0x143)+_0x2acc50);}if(_0x7b986b['flXMV'](this[_0x4cbdd2(0x19e)],null))try{this[_0x4cbdd2(0x19e)]=_0x7b986b[_0x4cbdd2(0x203)](require,_0x5b06f1);}catch(_0x5e2f6c){console['error'](_0x4cbdd2(0x16b)+_0x5b06f1);}if(_0x7b986b[_0x4cbdd2(0x191)](this[_0x4cbdd2(0x19e)],null)){const _0x12bed1={};_0x12bed1[_0x4cbdd2(0x1c0)]=_0xecc8e0[_0x4cbdd2(0x101)],this[_0x4cbdd2(0x19e)]=new this[(_0x4cbdd2(0x19e))](_0x43b60e,_0x12bed1);}}}[a31_0x2a69fd(0x226)](){const _0xd573ea=a31_0x2a69fd,_0x4215dc={'tkNPm':function(_0x342e18,_0x99d011){return _0x342e18(_0x99d011);}};return _0x4215dc[_0xd573ea(0x1f7)](Array,this[_0xd573ea(0x219)])[_0xd573ea(0x207)]('\x20\x20');}[a31_0x2a69fd(0x224)](){const _0x22e2e6=a31_0x2a69fd;this[_0x22e2e6(0x219)]++;}['decreaseIndent'](){const _0x5cf11f=a31_0x2a69fd;this[_0x5cf11f(0x219)]--;}[a31_0x2a69fd(0x123)](_0x203409){const _0x153f51=a31_0x2a69fd;this[_0x153f51(0x20a)]+=_0x203409;}[a31_0x2a69fd(0x238)](_0x48d989,_0x267c3b){const _0x76d4ee=a31_0x2a69fd,_0x107f3c={'FZINp':function(_0x12ad7a,_0x54a4b1){return _0x12ad7a(_0x54a4b1);}},_0x347314={};_0x347314[_0x76d4ee(0x11c)]=_0x48d989,_0x347314['results']=this[_0x76d4ee(0x12b)],_0x107f3c[_0x76d4ee(0x1ea)](_0x267c3b,_0x347314);}['registerListeners'](){const _0x49db8a=a31_0x2a69fd;process['removeAllListeners'](_0x49db8a(0x16a)+process[_0x49db8a(0x1f3)]),process['on'](_0x49db8a(0x16a)+process[_0x49db8a(0x1f3)],this[_0x49db8a(0x232)][_0x49db8a(0x18e)](this)),process[_0x49db8a(0x10e)](_0x49db8a(0x216)+process['pid']),process['on']('bs:addPlatformDetails:'+process[_0x49db8a(0x1f3)],this[_0x49db8a(0x188)][_0x49db8a(0x18e)](this));}[a31_0x2a69fd(0x214)]=async _0x4bc463=>{const _0xc534ec=a31_0x2a69fd,_0x338358={'IEotV':function(_0x275f88){return _0x275f88();},'FsPPO':_0xc534ec(0x130),'zeqDH':function(_0x124e30,_0x48fbb6){return _0x124e30>_0x48fbb6;},'wfUKC':function(_0x5f4170,_0x368779){return _0x5f4170===_0x368779;},'JQJvC':_0xc534ec(0xff),'VUxPr':function(_0x22db3e,_0x2f4c3c){return _0x22db3e(_0x2f4c3c);}};try{const _0x4746e9=this[_0xc534ec(0x205)];this[_0xc534ec(0x205)]=_0x4bc463,_0x4bc463[_0xc534ec(0x1c9)]=null,_0x4bc463[_0xc534ec(0x208)]=_0x338358['IEotV'](uuidv4),globals[_0xc534ec(0x1a9)](_0x338358[_0xc534ec(0x21e)],_0x4bc463[_0xc534ec(0x208)]),global['__workerDetails']=global['__workerDetails']||{},global[_0xc534ec(0x175)][_0xc534ec(0x151)]=global[_0xc534ec(0x175)][_0xc534ec(0x151)]||{},global[_0xc534ec(0x175)][_0xc534ec(0x151)][_0xc534ec(0x16c)]=_0x4bc463['testAnalyticsId'],_0x4bc463[_0xc534ec(0x1b7)]=new Date()[_0xc534ec(0x146)](),_0x338358['zeqDH'](_0x4bc463[_0xc534ec(0x1b8)],0x0)&&_0x4746e9&&_0x338358[_0xc534ec(0x1e8)](_0x4746e9[_0xc534ec(0x110)],_0x4bc463[_0xc534ec(0x110)])?(_0x4bc463[_0xc534ec(0x1c9)]=_0x4746e9[_0xc534ec(0x208)],await this['sendTestRunEvent'](_0x4bc463,undefined,![],_0x338358['JQJvC']),_0x4746e9[_0xc534ec(0x18d)]=STATE_FAILED,await this[_0xc534ec(0x16f)](_0x4746e9,undefined,!![])):await this[_0xc534ec(0x16f)](_0x4bc463,undefined,![],_0x338358[_0xc534ec(0x213)]);}catch(_0x386fca){_0x338358[_0xc534ec(0x198)](debug,_0xc534ec(0x1ac)+_0x386fca);}};['sendTestRunEvent']=async(_0x20c4b6,_0x3ffa27=undefined,_0x52b515=![],_0x65091c='TestRunFinished')=>{const _0x580153=a31_0x2a69fd,_0x491a9b={'ILYkG':function(_0x32bc2d,_0x1589cc){return _0x32bc2d===_0x1589cc;},'rYiXz':function(_0x2d2da7,_0x3c3cc3){return _0x2d2da7!==_0x3c3cc3;},'zMhEj':_0x580153(0x10a),'gjXAP':_0x580153(0x19b),'fTJFn':_0x580153(0x153),'uJwiF':_0x580153(0x1de),'iJOhG':_0x580153(0x1dd),'PafEt':_0x580153(0x1ed),'hMSRC':_0x580153(0x165),'pqgJR':function(_0x51b817,_0x190891){return _0x51b817-_0x190891;},'aVQQL':'AssertionError','wnJDm':'UnhandledError','FYHhC':_0x580153(0x13b),'tAMWC':_0x580153(0xff),'itWut':function(_0x39cd86){return _0x39cd86();},'galDW':_0x580153(0x1b7),'lmmID':'finished_at','ssPkU':function(_0x11fee0,_0x3038a6){return _0x11fee0(_0x3038a6);},'fzpZf':_0x580153(0x1e7),'JvMPW':'failed','yhtAL':_0x580153(0x22d),'BuDjS':function(_0x271c33,_0x1857c9){return _0x271c33===_0x1857c9;},'sJDeC':_0x580153(0x1f4),'pLPZf':function(_0x2541e8,_0x51c05f){return _0x2541e8(_0x51c05f);},'DRLxL':_0x580153(0x181),'mUfBN':'failure_backtrace','dZbwM':_0x580153(0x186),'pjQkT':_0x580153(0x1d0),'hqptN':_0x580153(0x197),'HADFz':_0x580153(0x161),'JcUXU':_0x580153(0x104),'vkGqU':'test_run'};try{if(_0x20c4b6[_0x580153(0x22a)]&&_0x20c4b6[_0x580153(0x22a)][_0x580153(0x21b)](/browserstack internal helper hook/))return;let _0x26cc88=[];if(_0x491a9b[_0x580153(0x109)](_0x20c4b6['state'],STATE_FAILED)){if(_0x491a9b[_0x580153(0x164)](_0x20c4b6[_0x580153(0x19b)],undefined))_0x26cc88=_0x20c4b6['err'][_0x580153(0x17c)]?[_0x20c4b6[_0x580153(0x19b)][_0x580153(0x17c)],_0x491a9b[_0x580153(0x20d)]]:[_0x20c4b6['err'],_0x491a9b[_0x580153(0x1aa)]];else _0x491a9b[_0x580153(0x164)](_0x3ffa27,undefined)?_0x26cc88=[_0x3ffa27,_0x491a9b[_0x580153(0x1aa)]]:_0x26cc88=[];}const _0x35e1cd=_0x491a9b[_0x580153(0x164)](_0x20c4b6[_0x580153(0x19b)],undefined)?_0x20c4b6[_0x580153(0x19b)][_0x580153(0x1e3)]():_0x491a9b[_0x580153(0x164)](_0x3ffa27,undefined)?_0x3ffa27[_0x580153(0x1e3)]():undefined;let _0x1a044b;try{_0x1a044b=this[_0x580153(0x14d)](_0x20c4b6);}catch(_0x4a21ed){_0x1a044b=null;}const _0x14c922=_0x1a044b?this[_0x580153(0x120)](_0x1a044b):null,_0x1817ba=_0x1a044b?this['_paths'][_0x580153(0x21c)](this[_0x580153(0x14d)](_0x20c4b6)):_0x491a9b[_0x580153(0x172)],_0xa839a9={'framework':_0x491a9b['uJwiF'],'uuid':_0x20c4b6[_0x580153(0x208)]||_0x20c4b6[_0x580153(0x159)],'name':_0x20c4b6[_0x580153(0x110)],'body':{'lang':_0x491a9b[_0x580153(0x227)],'code':_0x20c4b6[_0x580153(0x22a)]},'scope':this[_0x580153(0x131)](_0x20c4b6),'scopes':this[_0x580153(0x132)](_0x20c4b6),'identifier':_0x20c4b6['fullTitle'](),'file_name':_0x1817ba,'vc_filepath':_0x14c922?path[_0x580153(0x1ee)](_0x14c922,_0x1a044b):null,'location':_0x1817ba,'result':_0x491a9b[_0x580153(0x109)](_0x65091c,_0x491a9b[_0x580153(0x122)])?_0x491a9b['hMSRC']:this['analyticsResult'](_0x20c4b6[_0x580153(0x18d)]),'failure_reason':_0x35e1cd,'duration_in_ms':_0x20c4b6[_0x580153(0x212)]||(_0x65091c[_0x580153(0x21b)](/Finished/)||_0x65091c[_0x580153(0x21b)](/Skipped/)?_0x491a9b[_0x580153(0x1a4)](Date[_0x580153(0x160)](),new Date(_0x20c4b6[_0x580153(0x1b7)])['getTime']()):null),'started_at':_0x20c4b6[_0x580153(0x1b7)],'finished_at':_0x65091c['match'](/Finished/)||_0x65091c[_0x580153(0x21b)](/Skipped/)?new Date()[_0x580153(0x146)]():null,'failure':failureData[_0x580153(0x199)](null,_0x26cc88),'failure_type':!_0x35e1cd?null:_0x35e1cd[_0x580153(0x21b)](/AssertionError/)?_0x491a9b[_0x580153(0x173)]:_0x491a9b[_0x580153(0x1fe)],'retry_of':_0x20c4b6[_0x580153(0x1c9)]};if([_0x491a9b['PafEt'],_0x491a9b[_0x580153(0x12f)],_0x491a9b['tAMWC']][_0x580153(0x21a)](_0x65091c)){if(_0x491a9b[_0x580153(0x158)](getCentralUser)[_0x580153(0x10f)]){const _0xf2e4fc=TestMetadata[_0x580153(0x201)](_0x20c4b6['testAnalyticsId']);if(_0xf2e4fc){const _0x2e70e7={};_0x2e70e7[_0x580153(0x10f)]=_0xf2e4fc,Object[_0x580153(0x116)](_0xa839a9,_0x2e70e7);}}}testhubUtils[_0x580153(0x138)](_0xa839a9,_0x65091c,_0x20c4b6,FRAMEWORKS[_0x580153(0x1ec)]);(_0x20c4b6[_0x580153(0x1e1)]||_0x20c4b6[_0x580153(0x179)])&¢ralScannerUtils[_0x580153(0x149)](_0xa839a9,_0x20c4b6[_0x580153(0x1e1)],_0x20c4b6[_0x580153(0x179)]);_0x491a9b[_0x580153(0x109)](_0x65091c,_0x491a9b[_0x580153(0x122)])&&!_0xa839a9[_0x491a9b[_0x580153(0x1e6)]]&&(_0xa839a9[_0x491a9b[_0x580153(0x1e6)]]=_0xa839a9[_0x491a9b['lmmID']]);if(_0x65091c['match'](/HookRun/))[_0xa839a9[_0x580153(0x161)],_0xa839a9[_0x580153(0x19a)]]=_0x491a9b['ssPkU'](getHookDetails,_0x20c4b6[_0x580153(0x18f)]()||_0x20c4b6[_0x580153(0x1ae)]||_0x20c4b6[_0x580153(0x110)]),_0x491a9b[_0x580153(0x109)](_0x65091c,_0x491a9b[_0x580153(0x141)])&&(_0x491a9b[_0x580153(0x164)](_0xa839a9[_0x580153(0x139)],_0x491a9b[_0x580153(0x167)])&&(_0xa839a9[_0x580153(0x139)]=_0x491a9b[_0x580153(0x178)]),_0x491a9b[_0x580153(0x21f)](_0xa839a9[_0x580153(0x161)],_0x491a9b[_0x580153(0x1b0)])&&_0x491a9b[_0x580153(0x21f)](_0xa839a9['result'],_0x491a9b['JvMPW'])&&!_0x20c4b6['ctx'][_0x580153(0x151)][_0x580153(0x128)]&&(_0x20c4b6[_0x580153(0xfc)]['currentTest'][_0x580153(0x128)]=!![],_0x20c4b6[_0x580153(0xfc)][_0x580153(0x151)][_0x580153(0x18d)]=STATE_FAILED,await this['sendTestRunEvent'](_0x20c4b6[_0x580153(0xfc)]['currentTest'],undefined,!![])));else _0x65091c[_0x580153(0x21b)](/TestRun/)&&_0x491a9b[_0x580153(0x239)](mapTestHooks,_0x20c4b6);const _0x3cf1cc=_0xa839a9[_0x491a9b[_0x580153(0x218)]][0x0];_0x3cf1cc&&(_0xa839a9[_0x491a9b[_0x580153(0x202)]]=_0x3cf1cc[_0x491a9b[_0x580153(0x17d)]],_0xa839a9[_0x491a9b['pjQkT']]=_0x3cf1cc[_0x491a9b[_0x580153(0xfe)]]);[_0x491a9b[_0x580153(0x12f)],_0x491a9b[_0x580153(0x122)]][_0x580153(0x21a)](_0x65091c)&&(this[_0x580153(0x1db)][_0x580153(0x210)](_0xa839a9),_0xa839a9[_0x580153(0x13e)]=_0x491a9b[_0x580153(0x239)](getHooksForTest,_0x20c4b6));const _0x810b={'event_type':_0x491a9b[_0x580153(0x21f)](_0x65091c,_0x491a9b['PafEt'])?_0x491a9b[_0x580153(0x12f)]:_0x65091c};_0x65091c[_0x580153(0x21b)](/HookRun/)?(_0xa839a9[_0x491a9b[_0x580153(0x1a8)]]=HOOK_TYPES_MAP[_0xa839a9[_0x491a9b[_0x580153(0x1a8)]]],_0x810b[_0x491a9b[_0x580153(0xfd)]]=_0xa839a9):_0x810b[_0x491a9b[_0x580153(0x1cd)]]=_0xa839a9,testhubUtils[_0x580153(0x1d2)](FRAMEWORKS['MOCHA'],_0x810b),await SessionHandler[_0x580153(0x18c)](_0x810b);}catch(_0x39449c){_0x491a9b[_0x580153(0x1d3)](debug,_0x580153(0x1d4)+_0x65091c+'\x20with\x20error\x20:\x20'+_0x39449c);}};[a31_0x2a69fd(0x120)](_0x2e64f5){const _0x4ca88e=a31_0x2a69fd,_0x2fd533={};_0x2fd533[_0x4ca88e(0x23b)]=function(_0xf7638c,_0x1aa007){return _0xf7638c===_0x1aa007;},_0x2fd533[_0x4ca88e(0x23a)]=function(_0x41e2a2,_0x536dbe){return _0x41e2a2===_0x536dbe;},_0x2fd533[_0x4ca88e(0x1e0)]=_0x4ca88e(0x1c1),_0x2fd533[_0x4ca88e(0x166)]=_0x4ca88e(0x193);const _0x4b0a37=_0x2fd533,_0x5b4cda=path[_0x4ca88e(0x1bc)];if(_0x4b0a37[_0x4ca88e(0x23b)](_0x2e64f5,null)||_0x4b0a37[_0x4ca88e(0x23b)](_0x2e64f5,'')||_0x4b0a37[_0x4ca88e(0x23b)](_0x2e64f5,_0x5b4cda)||_0x4b0a37['lKuyU'](_0x2e64f5,path['dirname'](_0x2e64f5)))return null;try{return fs[_0x4ca88e(0x230)](path[_0x4ca88e(0x207)](_0x2e64f5,_0x4b0a37[_0x4ca88e(0x1e0)],_0x4b0a37[_0x4ca88e(0x166)])),_0x2e64f5;}catch(_0x1160af){const _0x24b713=path[_0x4ca88e(0x19d)](_0x2e64f5);return this[_0x4ca88e(0x120)](_0x24b713);}}[a31_0x2a69fd(0x232)]=async _0x3b9e27=>{const _0x1cdb4e=a31_0x2a69fd,_0x87a5ee={'xUtiE':'LogCreated','mqkPP':function(_0x4f10b5,_0xfd089b){return _0x4f10b5(_0xfd089b);}};try{this['current_hook']&&!this['current_hook']['markedStatus']&&(_0x3b9e27[_0x1cdb4e(0x23f)]=this[_0x1cdb4e(0x1a3)][_0x1cdb4e(0x159)]);!_0x3b9e27[_0x1cdb4e(0x23f)]&&this[_0x1cdb4e(0x205)]&&!this[_0x1cdb4e(0x205)]['markedStatus']&&(_0x3b9e27[_0x1cdb4e(0x133)]=this[_0x1cdb4e(0x205)][_0x1cdb4e(0x208)]);if(_0x3b9e27[_0x1cdb4e(0x23f)]||_0x3b9e27['test_run_uuid']){const _0x5873aa={};_0x5873aa[_0x1cdb4e(0x196)]=_0x87a5ee[_0x1cdb4e(0x14f)],_0x5873aa['logs']=[_0x3b9e27],await SessionHandler[_0x1cdb4e(0x18c)](_0x5873aa);}}catch(_0x5dbe29){_0x87a5ee[_0x1cdb4e(0x1b3)](debug,_0x1cdb4e(0x17f)+constants[_0x1cdb4e(0x235)]+'\x20with\x20error\x20:\x20'+_0x5dbe29);}};['appendTestPlatform']=async _0xc6276a=>{const _0x58c5b4=a31_0x2a69fd,_0x2b4387={'rOPRd':'http_response','jGeFO':_0x58c5b4(0x10d),'thVBh':function(_0x5ca1d8,_0x176cd7){return _0x5ca1d8(_0x176cd7);}};try{const _0x1bbe99={};_0x1bbe99[_0x58c5b4(0x1fc)]=_0xc6276a['uuid']||this[_0x58c5b4(0x205)][_0x58c5b4(0x208)],_0x1bbe99['integrations']=_0xc6276a[_0x2b4387[_0x58c5b4(0x1b6)]];const _0x4474a4=_0x1bbe99,_0xf9c95={};_0xf9c95['event_type']=_0x2b4387[_0x58c5b4(0x1a0)],_0xf9c95['test_run']=_0x4474a4,await SessionHandler[_0x58c5b4(0x18c)](_0xf9c95);}catch(_0x35468a){_0x2b4387['thVBh'](debug,_0x58c5b4(0x1d8)+constants[_0x58c5b4(0x235)]+'\x20with\x20error\x20:\x20'+_0x35468a);}};[a31_0x2a69fd(0x229)](_0xc8077c){const _0x469872=a31_0x2a69fd,_0x4569cb={};_0x4569cb[_0x469872(0x155)]='passed',_0x4569cb[_0x469872(0x140)]='pending',_0x4569cb[_0x469872(0x1ba)]=_0x469872(0x20b);const _0x254a8f=_0x4569cb,_0x4e920f={};return _0x4e920f[STATE_PASSED]=_0x254a8f[_0x469872(0x155)],_0x4e920f[STATE_PENDING]=_0x254a8f[_0x469872(0x140)],_0x4e920f[STATE_FAILED]=_0x254a8f[_0x469872(0x1ba)],_0x4e920f[_0xc8077c];}[a31_0x2a69fd(0x131)](_0x5df320){const _0x21f17b=a31_0x2a69fd,_0x2ba72a={};_0x2ba72a[_0x21f17b(0x145)]=function(_0xe8e9b5,_0x7f4be1){return _0xe8e9b5-_0x7f4be1;};const _0x27140f=_0x2ba72a,_0x584649=_0x5df320['titlePath']();return _0x584649[_0x21f17b(0x144)](0x0,_0x27140f[_0x21f17b(0x145)](_0x584649[_0x21f17b(0x185)],0x1))[_0x21f17b(0x207)]('\x20');}['scopes'](_0x5e4f10){const _0x3751e3=a31_0x2a69fd,_0x9d9ce0={};_0x9d9ce0[_0x3751e3(0x119)]=function(_0x49bb19,_0x1c4121){return _0x49bb19-_0x1c4121;};const _0x16e9a6=_0x9d9ce0,_0x302495=_0x5e4f10[_0x3751e3(0x1bf)]();return _0x302495[_0x3751e3(0x144)](0x0,_0x16e9a6[_0x3751e3(0x119)](_0x302495[_0x3751e3(0x185)],0x1));}[a31_0x2a69fd(0x14d)](_0x204358){const _0x3b1db0=a31_0x2a69fd,_0x41b4b4={};_0x41b4b4[_0x3b1db0(0x1a1)]=function(_0x2bba5a,_0x2166ae){return _0x2bba5a>_0x2166ae;};const _0x57caf1=_0x41b4b4;if(_0x204358['file'])return _0x204358[_0x3b1db0(0x129)];if(_0x204358['ctx']){const _0x383c44=_0x204358[_0x3b1db0(0xfc)][_0x3b1db0(0x151)]?this[_0x3b1db0(0x14d)](_0x204358['ctx'][_0x3b1db0(0x151)]):null;if(_0x383c44)return _0x383c44;}if(_0x204358['parent']){const _0x43f6be=this['getRootParentFile'](_0x204358['parent'])||(_0x204358['parent'][_0x3b1db0(0xfc)]&&_0x204358[_0x3b1db0(0x171)][_0x3b1db0(0xfc)]['currentTest']?this[_0x3b1db0(0x14d)](_0x204358[_0x3b1db0(0x171)]['ctx'][_0x3b1db0(0x151)]):null);if(_0x43f6be)return _0x43f6be;_0x204358[_0x3b1db0(0x171)][_0x3b1db0(0x223)]&&_0x57caf1['vkJqk'](_0x204358['parent'][_0x3b1db0(0x223)]['length'],0x0)&&_0x204358[_0x3b1db0(0x171)][_0x3b1db0(0x223)]['forEach'](_0x1f0745=>{const _0x1c9668=_0x3b1db0,_0x29095f=_0x1f0745['ctx']?this[_0x1c9668(0x14d)](_0x1f0745[_0x1c9668(0xfc)]):null;if(_0x29095f)return _0x29095f;});}return null;}}module['exports']=MyReporter;
|