browserstack-node-sdk 1.52.3 → 1.53.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a27_0x16ef42=a27_0x4674;(function(_0x4e1939,_0x4e5f28){const _0x1cdc08=a27_0x4674,_0x441853=_0x4e1939();while(!![]){try{const _0x5afa8b=parseInt(_0x1cdc08(0x1e1))/0x1*(-parseInt(_0x1cdc08(0x1db))/0x2)+-parseInt(_0x1cdc08(0x1dd))/0x3*(parseInt(_0x1cdc08(0x1eb))/0x4)+parseInt(_0x1cdc08(0x1c3))/0x5+parseInt(_0x1cdc08(0x1d4))/0x6*(-parseInt(_0x1cdc08(0x1df))/0x7)+-parseInt(_0x1cdc08(0x1c2))/0x8+parseInt(_0x1cdc08(0x1e2))/0x9+parseInt(_0x1cdc08(0x1da))/0xa;if(_0x5afa8b===_0x4e5f28)break;else _0x441853['push'](_0x441853['shift']());}catch(_0x3cc079){_0x441853['push'](_0x441853['shift']());}}}(a27_0x1015,0x8da3f));const path=require('path'),{requireModule,modifyCommand,getPlatformName,cleanupDrivers,isBrowserstackInfra}=require(a27_0x16ef42(0x1ea)),constants=require(a27_0x16ef42(0x1e3)),{isAccessibilityAutomationSession}=require(a27_0x16ef42(0x1e0)),RequestQueueHandler=require(a27_0x16ef42(0x1d9)),{isTestObservabilitySession}=require('../../helpers/test-observability/utils'),helper=require(a27_0x16ef42(0x1ea)),PerformanceTester=require(a27_0x16ef42(0x1e5)),PerformanceEvents=require('../../helpers/performance/constants')[a27_0x16ef42(0x1ce)],{commandRepository}=require('../../helpers/ai-sdk/autoHealHelper'),BrowserstackCLI=require(a27_0x16ef42(0x1e9)),ClientTroubleShootingService=require(a27_0x16ef42(0x1dc));function a27_0x1015(){const _0xf45bf2=['../../helpers/performance/performance-tester','setConfig','resolvePaths','_mochaOpts','../v2/browserstackCLI','../../helpers/helper','424lhxRrd','testsUndefined','3710624fVFWJM','1199510ooqxqH','mochaOpts','includes','configuration','_formatter','_capability','setFramework','split','testsPending','formatter','_accessibilityAutomation','EVENTS','bVYCt','platform','platformCaps','testSuitesFailed','PiGmx','611178vMuvxW','_configuration','totalTests','AI_ENABLED_FRAMEWORK','testsUnknown','../../helpers/test-observability/requestQueueHandler','33427650cYTYgn','2sTdnuL','../utils/clientTroubleshootingService','31731MdQMOW','testsSkipped','77NfPjyT','../../helpers/accessibility-automation/helper','501175pNOIHN','1837350rxKuiu','../utils/constants','__platformCaps'];a27_0x1015=function(){return _0xf45bf2;};return a27_0x1015();}function a27_0x4674(_0x478406,_0x4f72eb){const _0x101536=a27_0x1015();return a27_0x4674=function(_0x467485,_0xdf95df){_0x467485=_0x467485-0x1c2;let _0x2e193c=_0x101536[_0x467485];return _0x2e193c;},a27_0x4674(_0x478406,_0x4f72eb);}class Launcher{constructor(_0x444334,_0x315cd5,_0x452682,_0x33f8a0=[]){const _0x5364aa=a27_0x16ef42,_0x2bde55={'PiGmx':'23|11|17|0|2|19|21|4|9|1|22|13|20|18|15|6|5|7|12|10|8|3|14|16','bVYCt':function(_0x39a833){return _0x39a833();},'FhMXm':function(_0x1e7c51){return _0x1e7c51();}},_0x5bc237=_0x2bde55[_0x5364aa(0x1d3)][_0x5364aa(0x1ca)]('|');let _0x2623c9=0x0;while(!![]){switch(_0x5bc237[_0x2623c9++]){case'0':this[_0x5364aa(0x1e8)]=_0x315cd5[_0x5364aa(0x1c4)];continue;case'1':this['_testObservability']=_0x2bde55[_0x5364aa(0x1cf)](isTestObservabilitySession);continue;case'2':this[_0x5364aa(0x1c7)]=_0x315cd5[_0x5364aa(0x1cc)];continue;case'3':global['testsAmbiguous']=0x0;continue;case'4':this['_argv']=_0x33f8a0;continue;case'5':global[_0x5364aa(0x1cb)]=0x0;continue;case'6':global['testsFailed']=0x0;continue;case'7':global[_0x5364aa(0x1de)]=0x0;continue;case'8':global[_0x5364aa(0x1d8)]=0x0;continue;case'9':this['_bsConfig']=_0x452682;continue;case'10':global[_0x5364aa(0x1ec)]=0x0;continue;case'11':this[_0x5364aa(0x1d5)]=_0x315cd5[_0x5364aa(0x1c6)]||{};continue;case'12':global[_0x5364aa(0x1d2)]=0x0;continue;case'13':global[_0x5364aa(0x1e4)]=this[_0x5364aa(0x1d5)][_0x5364aa(0x1d1)]||{};continue;case'14':global['testsErrorMessage']={};continue;case'15':global['testsPassed']=0x0;continue;case'16':!constants[_0x5364aa(0x1d7)][_0x5364aa(0x1c5)](_0x444334)&&(commandRepository[_0x5364aa(0x1e6)](_0x452682),commandRepository[_0x5364aa(0x1c9)](_0x444334));continue;case'17':this[_0x5364aa(0x1d5)]['framework']=_0x444334;continue;case'18':global[_0x5364aa(0x1d6)]=0x0;continue;case'19':this[_0x5364aa(0x1c8)]=this[_0x5364aa(0x1d5)]['capability'];continue;case'20':global['testSuites']=0x0;continue;case'21':global['__platform__']=this[_0x5364aa(0x1d5)][_0x5364aa(0x1d0)];continue;case'22':this[_0x5364aa(0x1cd)]=_0x2bde55['FhMXm'](isAccessibilityAutomationSession);continue;case'23':this['_framework']=_0x444334;continue;}break;}}['setupCucumber'](_0xaf88f7,_0x4e37f2,_0x213106){const _0x4cce70=a27_0x16ef42,_0x5911e0=_0xaf88f7[_0x4cce70(0x1e7)];_0xaf88f7.resolvePaths=async function(){const pathResults=await _0x5911e0.apply(this,arguments);if(!pathResults.requirePaths){pathResults.requirePaths=[];}pathResults.requirePaths=[path.join(__dirname,'../cucumber-js/test.setup.js')].concat(pathResults.requirePaths,path.join(__dirname,_0x213106));return pathResults;};const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;_0x4e37f2.push('--format'),_0x4e37f2.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_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;
|
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_0x552596=a28_0x1c54;function a28_0x2df6(){const _0x3901cb=['hgkKe','killed','stack','exit','Spawning:\x20','YuAWW',',\x20forwarding\x20to\x20child\x20process...','5TCciXs','path','SIGQUIT','Received\x20','join','Executing\x20load\x20test\x20with\x20arguments:\x20','598308adRCvC','message','getCliDir','Waiting\x20for\x20child\x20process\x20to\x20exit...','FmuBx','BROWSERSTACK_USERNAME','forEach','SIGTERM','142eQfhSz','deCfP','qTnLX','5116IlVver','slNXo','lelDI','stringify','Configuration\x20path:\x20','CLI\x20binary\x20not\x20found,\x20downloading\x20latest\x20version','readConfig','Error\x20details:\x20','../v2/cliUtils','userName','mKPMT','CLI\x20binary\x20found,\x20Checking\x20for\x20CLI\x20updates','hblwh','1630880cxQqBF','Failed\x20to\x20download\x20or\x20locate\x20CLI\x20binary','argv','2156000eufAST','TkRFI','env','../../helpers/helper','Feutl','Gtmaj','BROWSERSTACK_USER','8ZxEHdm','9158666cbYPQA','load','mQytZ','vvqTO','inherit','Error\x20loading\x20configuration:\x20','27awIoeo','Loading\x20configuration\x20using\x20environment\x20variables\x20if\x20available.','2425734gcBqpd','RMUnJ','error','BROWSERSTACK_ACCESSKEY','icbDI','../../helpers/logger','Failed\x20to\x20determine\x20CLI\x20directory','exports','slice','1400328mXaaDs','YiiNh','getExistingCliPath','OkOTk','debug','child_process','SkmSV','Error\x20Details:\x20','ZNtOl','accessKey','oLHnv','Failed\x20initiating\x20load\x20test:\x20'];a28_0x2df6=function(){return _0x3901cb;};return a28_0x2df6();}function a28_0x1c54(_0x3abc45,_0x1b8ef7){const _0x2df6fd=a28_0x2df6();return a28_0x1c54=function(_0x1c54b6,_0x1157f7){_0x1c54b6=_0x1c54b6-0xfe;let _0x564891=_0x2df6fd[_0x1c54b6];return _0x564891;},a28_0x1c54(_0x3abc45,_0x1b8ef7);}(function(_0x2475e1,_0x549c9b){const _0x436119=a28_0x1c54,_0x27d84f=_0x2475e1();while(!![]){try{const _0xf87191=parseInt(_0x436119(0x11b))/0x1*(parseInt(_0x436119(0x11e))/0x2)+-parseInt(_0x436119(0x113))/0x3+parseInt(_0x436119(0x147))/0x4+-parseInt(_0x436119(0x10d))/0x5*(-parseInt(_0x436119(0x13e))/0x6)+-parseInt(_0x436119(0x12e))/0x7*(parseInt(_0x436119(0x135))/0x8)+parseInt(_0x436119(0x13c))/0x9*(parseInt(_0x436119(0x12b))/0xa)+-parseInt(_0x436119(0x136))/0xb;if(_0xf87191===_0x549c9b)break;else _0x27d84f['push'](_0x27d84f['shift']());}catch(_0x40685d){_0x27d84f['push'](_0x27d84f['shift']());}}}(a28_0x2df6,0x4124d));const {spawn}=require(a28_0x552596(0xff)),path=require(a28_0x552596(0x10e)),helper=require(a28_0x552596(0x131)),CLIUtils=require(a28_0x552596(0x126)),{getLoadConfigPath,sleep}=require('./loadUtils'),logger=require(a28_0x552596(0x143))['winstonLogger'];async function executeLoadTest(_0x9e29a2){const _0xe63778=a28_0x552596,_0x24a1d6={'OkOTk':function(_0x3363cf,_0x31d9df){return _0x3363cf(_0x31d9df);},'mKPMT':'close','hgkKe':_0xe63778(0x116),'rWrsl':_0xe63778(0x13d),'YuAWW':function(_0x529275,_0x56a8ea){return _0x529275(_0x56a8ea);},'FmuBx':function(_0xbdee65){return _0xbdee65();},'vvqTO':'Authentication\x20incomplete.\x20Please\x20add\x20your\x20userName\x20and\x20accessKey\x20to\x20either\x20the\x20browserstack.yml\x20file\x20or\x20as\x20environment\x20variables,\x20then\x20try\x20running\x20the\x20command\x20again.','lelDI':function(_0x5991cf){return _0x5991cf();},'YiiNh':_0xe63778(0x144),'slNXo':_0xe63778(0x123),'ZNtOl':_0xe63778(0x129),'TkRFI':function(_0x152e7e){return _0x152e7e();},'dxBtb':_0xe63778(0x12c),'mQytZ':function(_0x50a8cb){return _0x50a8cb();},'SkmSV':function(_0x30d84f,_0x1cd040,_0x49becb,_0x3baf05){return _0x30d84f(_0x1cd040,_0x49becb,_0x3baf05);},'icbDI':_0xe63778(0x137),'Gtmaj':_0xe63778(0x13a),'Feutl':'SIGINT','khIkq':_0xe63778(0x11a),'deCfP':_0xe63778(0x10f),'oLHnv':'SIGHUP','qTnLX':function(_0x5c059b){return _0x5c059b();},'RMUnJ':function(_0x1414fa){return _0x1414fa();}};try{const _0x46dd94=process[_0xe63778(0x12d)][_0xe63778(0x146)](0x2),_0x15e160=_0x46dd94['slice'](0x1);logger[_0xe63778(0xfe)](_0xe63778(0x112)+_0x15e160);let _0x405a15={};try{logger[_0xe63778(0xfe)](_0x24a1d6['rWrsl']);const _0xd72b3a={};_0xd72b3a[_0xe63778(0x127)]=process['env'][_0xe63778(0x118)]||process[_0xe63778(0x130)][_0xe63778(0x134)],_0xd72b3a[_0xe63778(0x103)]=process[_0xe63778(0x130)]['BROWSERSTACK_ACCESS_KEY']||process[_0xe63778(0x130)][_0xe63778(0x141)],_0x405a15=_0xd72b3a;if(!_0x405a15['userName']||!_0x405a15['accessKey']){const _0x583765=_0x24a1d6[_0xe63778(0x10b)](getLoadConfigPath,_0x9e29a2[_0xe63778(0x12d)]);logger['debug'](_0xe63778(0x122)+_0x583765),_0x583765&&(_0x405a15=helper[_0xe63778(0x124)](_0x583765));}}catch(_0x233c80){logger['error'](_0xe63778(0x13b)+_0x233c80[_0xe63778(0x114)]),logger[_0xe63778(0xfe)](_0xe63778(0x125)+(_0x233c80[_0xe63778(0x108)]||JSON['stringify'](_0x233c80))),await _0x24a1d6['FmuBx'](sleep),process['exit'](0x1);}(!_0x405a15[_0xe63778(0x127)]||!_0x405a15['accessKey'])&&(logger[_0xe63778(0x140)](_0x24a1d6['vvqTO']),await _0x24a1d6[_0xe63778(0x120)](sleep),process[_0xe63778(0x109)](0x1));const _0x89c41e=CLIUtils[_0xe63778(0x115)]();!_0x89c41e&&(logger['error'](_0x24a1d6[_0xe63778(0x148)]),await _0x24a1d6[_0xe63778(0x117)](sleep),process['exit'](0x1));let _0x435c02=CLIUtils[_0xe63778(0x149)](_0x89c41e);try{!_0x435c02?(logger[_0xe63778(0xfe)](_0x24a1d6[_0xe63778(0x11f)]),_0x435c02=await CLIUtils['checkAndUpdateCli']('',_0x89c41e,_0x405a15)):(logger[_0xe63778(0xfe)](_0x24a1d6[_0xe63778(0x102)]),_0x435c02=await CLIUtils['checkAndUpdateCli'](_0x435c02,_0x89c41e,_0x405a15));}catch(_0x50a3b1){logger[_0xe63778(0x140)](_0x24a1d6[_0xe63778(0x139)]),logger['debug'](_0xe63778(0x101)+(_0x50a3b1[_0xe63778(0x108)]||JSON[_0xe63778(0x121)](_0x50a3b1))),await _0x24a1d6[_0xe63778(0x12f)](sleep),process[_0xe63778(0x109)](0x1);}!_0x435c02&&(logger[_0xe63778(0x140)](_0x24a1d6[_0xe63778(0x139)]),logger[_0xe63778(0xfe)](_0x24a1d6['dxBtb']),await _0x24a1d6[_0xe63778(0x138)](sleep),process['exit'](0x1));logger['debug'](_0xe63778(0x10a)+_0x435c02+'\x20load\x20'+_0x15e160[_0xe63778(0x111)]('\x20'));const _0x30735f=_0x24a1d6[_0xe63778(0x100)](spawn,_0x435c02,[_0x24a1d6[_0xe63778(0x142)],..._0x15e160],{'stdio':_0x24a1d6[_0xe63778(0x133)]});let _0x124d9f=![];const _0x44a8d3=new Promise(_0x4a3100=>{const _0x36d096=_0xe63778;_0x30735f['on'](_0x24a1d6[_0x36d096(0x128)],_0x5f093a=>{const _0x4f8cdc=_0x36d096;logger['debug'](_0x435c02+'\x20exited\x20with\x20code\x20'+_0x5f093a),_0x24a1d6[_0x4f8cdc(0x14a)](_0x4a3100,_0x5f093a);});});[_0x24a1d6[_0xe63778(0x132)],_0x24a1d6['khIkq'],_0x24a1d6[_0xe63778(0x11c)],_0x24a1d6[_0xe63778(0x104)]][_0xe63778(0x119)](_0x24f002=>{const _0x2f938c=_0xe63778,_0x3578a6={};_0x3578a6[_0x2f938c(0x12a)]=_0x24a1d6[_0x2f938c(0x106)];const _0x16bed3=_0x3578a6;process['on'](_0x24f002,()=>{const _0x2e73ef=_0x2f938c;if(_0x124d9f)return;_0x124d9f=!![],logger['debug'](_0x2e73ef(0x110)+_0x24f002+_0x2e73ef(0x10c)),_0x30735f&&!_0x30735f[_0x2e73ef(0x107)]&&(_0x30735f['kill'](_0x24f002),logger[_0x2e73ef(0xfe)](_0x16bed3[_0x2e73ef(0x12a)]));});});const _0x142ed9=await _0x44a8d3;await _0x24a1d6[_0xe63778(0x11d)](sleep),process['exit'](_0x142ed9);}catch(_0x165959){logger[_0xe63778(0x140)](_0xe63778(0x105)+_0x165959[_0xe63778(0x114)]),logger['debug']('Error\x20details:\x20'+(_0x165959[_0xe63778(0x108)]||JSON[_0xe63778(0x121)](_0x165959))),await _0x24a1d6[_0xe63778(0x13f)](sleep),process[_0xe63778(0x109)](0x1);}}module[a28_0x552596(0x145)]=executeLoadTest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a29_0x18c237=a29_0x4f95;function a29_0xb0df(){const _0x1290de=['cwd','getLoadConfigPath','iNdmo','rXmiK','Checking\x20for:\x20','mRmQZ','BqlnO','Found\x20config\x20file:\x20','existsSync','IfXLr','Kubvl','Failed\x20to\x20load\x20browserstack\x20config:\x20','error','hpqsk','.yml','yPvAy','stringify','browserstack.yml','706456imxnVV','3EvDgSE','join','320580kbzPQx','browserstack-load.yaml','message','Checking\x20for\x20config\x20in\x20default\x20config\x20files...','debug','10tykhrL','\x20and\x20Resolved\x20path:\x20','228792uHyeuJ','140dyfVck','browserstack.yaml','subcommand','endsWith','220476EjUeCG','NpTVG','Checking\x20for\x20config\x20file\x20with\x20arguments:\x20','run','617192iEFlLJ','XvxCj','../../helpers/logger','19144BwMaNd','info','WNoqw','2728044OJpMyD','resolve','load','.yaml','aIvHr'];a29_0xb0df=function(){return _0x1290de;};return a29_0xb0df();}(function(_0x4881c4,_0x1db3ba){const _0xbed1aa=a29_0x4f95,_0x4f2635=_0x4881c4();while(!![]){try{const _0x52cb79=parseInt(_0xbed1aa(0x134))/0x1+-parseInt(_0xbed1aa(0x15a))/0x2+-parseInt(_0xbed1aa(0x15b))/0x3*(parseInt(_0xbed1aa(0x13d))/0x4)+parseInt(_0xbed1aa(0x162))/0x5*(parseInt(_0xbed1aa(0x139))/0x6)+-parseInt(_0xbed1aa(0x135))/0x7*(-parseInt(_0xbed1aa(0x140))/0x8)+parseInt(_0xbed1aa(0x143))/0x9+parseInt(_0xbed1aa(0x15d))/0xa;if(_0x52cb79===_0x1db3ba)break;else _0x4f2635['push'](_0x4f2635['shift']());}catch(_0x409528){_0x4f2635['push'](_0x4f2635['shift']());}}}(a29_0xb0df,0x2b680));function a29_0x4f95(_0x252f2e,_0x40f421){const _0xb0df00=a29_0xb0df();return a29_0x4f95=function(_0x4f95eb,_0x5596e9){_0x4f95eb=_0x4f95eb-0x133;let _0x1651a9=_0xb0df00[_0x4f95eb];return _0x1651a9;},a29_0x4f95(_0x252f2e,_0x40f421);}const fs=require('fs'),path=require('path'),logger=require(a29_0x18c237(0x13f))['winstonLogger'];function getLoadConfigPath(_0x285147){const _0x47c8be=a29_0x18c237,_0x5eccf5={};_0x5eccf5[_0x47c8be(0x14b)]=function(_0x4ffb9c,_0x583f50){return _0x4ffb9c===_0x583f50;},_0x5eccf5['BqlnO']=_0x47c8be(0x145),_0x5eccf5[_0x47c8be(0x14a)]=function(_0x121ebc,_0x3b9013){return _0x121ebc===_0x3b9013;},_0x5eccf5[_0x47c8be(0x151)]=_0x47c8be(0x13c),_0x5eccf5['yPvAy']='config-file',_0x5eccf5['WNoqw']=_0x47c8be(0x156),_0x5eccf5[_0x47c8be(0x14d)]=_0x47c8be(0x146),_0x5eccf5[_0x47c8be(0x147)]='browserstack-load.yml',_0x5eccf5[_0x47c8be(0x13e)]=_0x47c8be(0x15e),_0x5eccf5[_0x47c8be(0x152)]=_0x47c8be(0x159),_0x5eccf5[_0x47c8be(0x155)]=_0x47c8be(0x136),_0x5eccf5['NpTVG']=_0x47c8be(0x160);const _0x16a202=_0x5eccf5;logger['debug'](_0x47c8be(0x13b)+JSON[_0x47c8be(0x158)](_0x285147));try{const _0x2a9858=_0x285147['_']||[],_0x5a6abf=_0x16a202[_0x47c8be(0x14b)](_0x285147['_'][0x0],_0x16a202[_0x47c8be(0x14e)])&&_0x16a202[_0x47c8be(0x14a)](_0x285147[_0x47c8be(0x137)],_0x16a202[_0x47c8be(0x151)]);if(_0x5a6abf){if(_0x285147[_0x16a202[_0x47c8be(0x157)]]||_0x285147['cf']){const _0x47916b=_0x285147[_0x16a202[_0x47c8be(0x157)]]||_0x285147['cf'],_0x5a1391=path[_0x47c8be(0x144)](_0x47916b);logger[_0x47c8be(0x161)]('Config\x20file\x20specified:\x20'+_0x47916b+_0x47c8be(0x133)+_0x5a1391);if(_0x5a1391[_0x47c8be(0x138)](_0x16a202[_0x47c8be(0x142)])||_0x5a1391[_0x47c8be(0x138)](_0x16a202[_0x47c8be(0x14d)]))return logger[_0x47c8be(0x141)]('Using\x20specified\x20config\x20file:\x20'+_0x5a1391),_0x5a1391;}}const _0x3a6a81=[_0x16a202[_0x47c8be(0x147)],_0x16a202[_0x47c8be(0x13e)],_0x16a202[_0x47c8be(0x152)],_0x16a202[_0x47c8be(0x155)]];logger['debug'](_0x16a202[_0x47c8be(0x13a)]);for(const _0x17f626 of _0x3a6a81){const _0x12832d=path[_0x47c8be(0x15c)](process[_0x47c8be(0x148)](),_0x17f626);logger[_0x47c8be(0x161)](_0x47c8be(0x14c)+_0x12832d);if(fs[_0x47c8be(0x150)](_0x12832d))return logger[_0x47c8be(0x161)](_0x47c8be(0x14f)+_0x12832d),_0x12832d;}}catch(_0x1a82f9){logger[_0x47c8be(0x154)](_0x47c8be(0x153)+_0x1a82f9[_0x47c8be(0x15f)]);}}function sleep(){return new Promise(_0x2e76bd=>setTimeout(_0x2e76bd,0x64));}const a29_0x1916b1={};a29_0x1916b1[a29_0x18c237(0x149)]=getLoadConfigPath,a29_0x1916b1['sleep']=sleep,module['exports']=a29_0x1916b1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a30_0x2131(_0x2bef78,_0x328886){const _0x3eae51=a30_0x3eae();return a30_0x2131=function(_0x21310a,_0x17d94c){_0x21310a=_0x21310a-0x7d;let _0x41189b=_0x3eae51[_0x21310a];return _0x41189b;},a30_0x2131(_0x2bef78,_0x328886);}const a30_0x584c2d=a30_0x2131;function a30_0x3eae(){const _0x39b3d0=['winstonLogger','nefBj','fetchPlatformDetails','udRbu','LRZEv','browserstack.accessibility','14373eupJKK','getBrowserVersion','--headless=new','browser_version','Exception\x20while\x20setting\x20Accessibility\x20Automation\x20capabilities.\x20Error\x20','56612NfcDUe','isArray','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','deviceName','Exception\x20in\x20setExtension\x20Error:\x20','keys','\x20or\x20higher\x20','jvGXp','../../../helpers/helper','GGwIv','getBrowserDisplayName','goog:chromeOptions','449896foCVTP','gCogW','getCapabilities','BS_A11Y_JWT','browserVersion','startsWith','capability','RSqVh','BeLEQ','capabilities_','length','bstack:options','isBrowserSupportedForAccessibility','pJRYA','qhxPM','../../../helpers/logger','wTBlo','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','__cloud_provider___','kKknI','2764097pwWcka','scannerVersion','format','setAccessibilityCapabilities','../../../helpers/globals','MRqCo','UEBxP','browserstack.accessibilityOptions','latest','44Whrith','browserstack','2956578LeMPDE','selenium-webdriver','get','isVersionSupported','getPlatformVersion','isAccessibilityPlatform','6410OzDkZN','warn','KALvE','isUndefined','KhmPe','Accessibility\x20Automation\x20will\x20not\x20run\x20on\x20legacy\x20headless\x20mode.\x20Switch\x20to\x20new\x20headless\x20mode\x20or\x20avoid\x20using\x20headless\x20mode.','../../../helpers/accessibility-automation/helper','capabilities','getPlatform','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Exception\x20in\x20fetching\x20platform\x20details\x20with\x20error\x20:\x20','sOajV','accessibilityOptions','path','getBrowserName','5754888Kyibzw','requiresChromeOptionsValidation','nestedKeyValue','51DsPWNE','debug','setExtension','84870szRUZl','browserName','--headless=','selenium-webdriver/chrome.js','env','ambTz','authToken','options_','chromeOptions','hEtoK'];a30_0x3eae=function(){return _0x39b3d0;};return a30_0x3eae();}(function(_0x2c8d78,_0x2a22ec){const _0xc763c2=a30_0x2131,_0x5015d7=_0x2c8d78();while(!![]){try{const _0x392ff7=-parseInt(_0xc763c2(0x8a))/0x1+-parseInt(_0xc763c2(0x7e))/0x2*(-parseInt(_0xc763c2(0xc1))/0x3)+-parseInt(_0xc763c2(0xa7))/0x4*(-parseInt(_0xc763c2(0xc4))/0x5)+-parseInt(_0xc763c2(0xa9))/0x6+parseInt(_0xc763c2(0x9e))/0x7+-parseInt(_0xc763c2(0xbe))/0x8+-parseInt(_0xc763c2(0xd4))/0x9*(-parseInt(_0xc763c2(0xaf))/0xa);if(_0x392ff7===_0x2a22ec)break;else _0x5015d7['push'](_0x5015d7['shift']());}catch(_0xbd46e1){_0x5015d7['push'](_0x5015d7['shift']());}}}(a30_0x3eae,0x679fc));const path=require(a30_0x584c2d(0xbc)),os=require('os'),util=require('util'),bsSetupHelper=require(a30_0x584c2d(0x86)),globals=require(a30_0x584c2d(0xa2)),accessibilityHelper=require(a30_0x584c2d(0xb5)),logger=require(a30_0x584c2d(0x99))[a30_0x584c2d(0xce)];exports[a30_0x584c2d(0xa1)]=_0x155c67=>{const _0x28ad30=a30_0x584c2d,_0x5d26a4={};_0x5d26a4['XOzES']=function(_0x295dbc,_0x475056){return _0x295dbc>_0x475056;},_0x5d26a4['WQqyg']=function(_0x5665ec,_0x87fbdb){return _0x5665ec>_0x87fbdb;},_0x5d26a4['wTBlo']='bstack:options',_0x5d26a4['KALvE']=_0x28ad30(0xd3),_0x5d26a4[_0x28ad30(0x85)]=_0x28ad30(0xae),_0x5d26a4[_0x28ad30(0xc9)]=_0x28ad30(0xa5);const _0x5f3501=_0x5d26a4;try{const _0x4ab2d5=_0x5f3501['XOzES'](Object['keys'](_0x155c67['capability'])[_0x28ad30(0x94)],0x0)?_0x155c67[_0x28ad30(0x90)]:_0x5f3501['WQqyg'](Object[_0x28ad30(0x83)](_0x155c67[_0x28ad30(0xb6)])[_0x28ad30(0x94)],0x0)?_0x155c67[_0x28ad30(0xb6)][0x0]:{};if(_0x4ab2d5[_0x5f3501[_0x28ad30(0x9a)]]&&_0x4ab2d5[_0x5f3501[_0x28ad30(0x9a)]]['accessibility']||_0x155c67['capability'][_0x5f3501[_0x28ad30(0xb1)]]){globals['setGlobal'](_0x5f3501[_0x28ad30(0x85)],!![]);if(_0x4ab2d5[_0x5f3501['wTBlo']]){if(_0x4ab2d5[_0x5f3501[_0x28ad30(0x9a)]][_0x28ad30(0xbb)])_0x4ab2d5[_0x5f3501[_0x28ad30(0x9a)]][_0x28ad30(0xbb)][_0x28ad30(0xca)]=process['env']['BS_A11Y_JWT'];else{const _0x28a4c2={};_0x28a4c2[_0x28ad30(0xca)]=process[_0x28ad30(0xc8)][_0x28ad30(0x8d)],_0x4ab2d5[_0x5f3501[_0x28ad30(0x9a)]][_0x28ad30(0xbb)]=_0x28a4c2;}_0x4ab2d5[_0x5f3501['wTBlo']][_0x28ad30(0xbb)][_0x28ad30(0x9f)]=JSON['parse'](process[_0x28ad30(0xc8)][_0x28ad30(0xb8)])[_0x28ad30(0x9f)];}else{if(_0x155c67['capability'][_0x5f3501[_0x28ad30(0xb1)]]){if(_0x4ab2d5[_0x5f3501[_0x28ad30(0xc9)]])_0x4ab2d5[_0x5f3501[_0x28ad30(0xc9)]][_0x28ad30(0xca)]=process['env'][_0x28ad30(0x8d)];else{const _0x238ee8={};_0x238ee8[_0x28ad30(0xca)]=process['env'][_0x28ad30(0x8d)],_0x4ab2d5[_0x5f3501[_0x28ad30(0xc9)]]=_0x238ee8;}_0x4ab2d5[_0x5f3501[_0x28ad30(0xc9)]]['scannerVersion']=JSON['parse'](process[_0x28ad30(0xc8)][_0x28ad30(0xb8)])[_0x28ad30(0x9f)];}}}}catch(_0x17f1f4){logger['debug'](_0x28ad30(0x7d)+_0x17f1f4);}},exports[a30_0x584c2d(0xc3)]=(_0x3f1d1e,_0x26a7af)=>{const _0x569467=a30_0x584c2d,_0x376335={};_0x376335[_0x569467(0x9d)]=_0x569467(0x95),_0x376335[_0x569467(0xb3)]=function(_0x4cfce0,_0x4bbb69){return _0x4cfce0!==_0x4bbb69;},_0x376335[_0x569467(0x91)]='Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.',_0x376335[_0x569467(0x92)]=_0x569467(0x9b),_0x376335[_0x569467(0x87)]=_0x569467(0xa6),_0x376335[_0x569467(0x97)]='on\x20non-BrowserStack\x20infrastructure\x20',_0x376335[_0x569467(0xa3)]=_0x569467(0xc7),_0x376335[_0x569467(0xd2)]=_0x569467(0xaa),_0x376335[_0x569467(0xba)]=_0x569467(0xcb),_0x376335['gCogW']='args',_0x376335['qhxPM']=_0x569467(0xcc),_0x376335[_0x569467(0xa4)]=_0x569467(0x89),_0x376335['hEtoK']=_0x569467(0xb4);const _0x226b43=_0x376335;try{const _0x4f175a=_0x26a7af[_0x569467(0x90)]||{},_0x79a48c=(_0x4f175a[_0x226b43[_0x569467(0x9d)]]?_0x4f175a[_0x226b43[_0x569467(0x9d)]][_0x569467(0x81)]:_0x4f175a['device'])||'';if(_0x226b43[_0x569467(0xb3)](_0x79a48c,''))return logger[_0x569467(0xb0)](_0x226b43[_0x569467(0x91)]),![];const _0x5e7f63=_0x4f175a[_0x569467(0xc5)]||_0x3f1d1e[_0x569467(0x93)][_0x569467(0xbd)](),_0xcb8af6=_0x4f175a[_0x569467(0x8e)]||_0x4f175a[_0x569467(0xd7)]||_0x3f1d1e[_0x569467(0x93)]['getBrowserVersion']();if(!accessibilityHelper[_0x569467(0x96)](_0x5e7f63))return logger[_0x569467(0xb0)](_0x226b43['BeLEQ']),![];if(!bsSetupHelper[_0x569467(0xb2)](_0xcb8af6)&&_0x226b43[_0x569467(0xb3)](_0xcb8af6,_0x226b43['GGwIv'])){const _0x13b3a0=bsSetupHelper['isBrowserstackInfra'](),_0x25ad63=accessibilityHelper['getMinVersionForBrowser'](_0x5e7f63,_0x13b3a0),_0x11f42a=accessibilityHelper[_0x569467(0x88)](_0x5e7f63);if(!accessibilityHelper[_0x569467(0xac)](_0xcb8af6,_0x25ad63)){const _0x18a85b=_0x13b3a0?'':_0x226b43[_0x569467(0x97)];return logger[_0x569467(0xb0)](_0x569467(0x80)+_0x11f42a+'\x20browser\x20version\x20'+_0x25ad63+_0x569467(0x84)+_0x18a85b+'.'),![];}}if(!accessibilityHelper[_0x569467(0xbf)](_0x5e7f63))return!![];let _0x1cf59d;try{_0x1cf59d=bsSetupHelper['requireModule'](_0x226b43['MRqCo'],_0x226b43[_0x569467(0xd2)]);}catch(_0x1a7e9a){return![];}const _0x4368ec=new _0x1cf59d['Options'](_0x3f1d1e['chromeOptions_']),_0x99a9f8=bsSetupHelper[_0x569467(0xc0)](_0x4368ec,[_0x226b43['sOajV'],_0x226b43[_0x569467(0x8b)]])||bsSetupHelper[_0x569467(0xc0)](_0x3f1d1e[_0x569467(0x93)][_0x569467(0xab)](_0x226b43[_0x569467(0x9d)]),[_0x226b43[_0x569467(0x98)],_0x226b43[_0x569467(0x8b)]])||bsSetupHelper[_0x569467(0xc0)](_0x3f1d1e['capabilities_'][_0x569467(0xab)](_0x226b43[_0x569467(0x98)]),[_0x226b43[_0x569467(0x8b)]])||bsSetupHelper[_0x569467(0xc0)](_0x3f1d1e[_0x569467(0x93)][_0x569467(0xab)](_0x226b43[_0x569467(0xa4)]),[_0x226b43[_0x569467(0x8b)]])||[],_0x343301=Array[_0x569467(0x7f)](_0x99a9f8)?_0x99a9f8:[];if(_0x343301['some'](_0x48f6be=>typeof _0x48f6be==='string'&&(_0x48f6be==='--headless'||_0x48f6be[_0x569467(0x8f)](_0x569467(0xc6))&&_0x48f6be!==_0x569467(0xd6))))return logger[_0x569467(0xb0)](_0x226b43[_0x569467(0xcd)]),![];return!![];}catch(_0x4508ee){logger['debug'](_0x569467(0x82)+util[_0x569467(0xa0)](_0x4508ee));}return![];},exports[a30_0x584c2d(0xd0)]=async _0x580703=>{const _0x127169=a30_0x584c2d,_0x6fc01d={};_0x6fc01d[_0x127169(0xcf)]=function(_0x51306b,_0x3b7f15){return _0x51306b===_0x3b7f15;},_0x6fc01d[_0x127169(0xd1)]=_0x127169(0xa8);const _0x593284=_0x6fc01d;let _0x4a0347={};try{const _0x3bdcbc=await _0x580703[_0x127169(0x8c)]();_0x4a0347={'os_name':_0x3bdcbc[_0x127169(0xb7)](),'os_version':bsSetupHelper[_0x127169(0xad)](_0x593284[_0x127169(0xcf)](global[_0x127169(0x9c)],_0x593284[_0x127169(0xd1)])),'browser_name':_0x3bdcbc['getBrowserName'](),'browser_version':_0x3bdcbc[_0x127169(0xd5)]()};}catch(_0x5d77f5){logger[_0x127169(0xc2)](_0x127169(0xb9)+_0x5d77f5);}return _0x4a0347;};
|
|
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 +1 @@
|
|
|
1
|
-
'use strict';const a31_0x2ef6be=a31_0x3011;(function(_0x48bad8,_0x34da40){const _0x4b8b6e=a31_0x3011,_0x4cd6fd=_0x48bad8();while(!![]){try{const _0x58658d=-parseInt(_0x4b8b6e(0x2d7))/0x1*(parseInt(_0x4b8b6e(0x1c6))/0x2)+-parseInt(_0x4b8b6e(0x277))/0x3*(-parseInt(_0x4b8b6e(0x26e))/0x4)+-parseInt(_0x4b8b6e(0x2a6))/0x5+parseInt(_0x4b8b6e(0x207))/0x6*(parseInt(_0x4b8b6e(0x2d1))/0x7)+-parseInt(_0x4b8b6e(0x20a))/0x8+parseInt(_0x4b8b6e(0x24f))/0x9+-parseInt(_0x4b8b6e(0x2c3))/0xa*(-parseInt(_0x4b8b6e(0x1fb))/0xb);if(_0x58658d===_0x34da40)break;else _0x4cd6fd['push'](_0x4cd6fd['shift']());}catch(_0x1e6350){_0x4cd6fd['push'](_0x4cd6fd['shift']());}}}(a31_0x1384,0x69fab));function a31_0x1384(){const _0x360e42=['../../../helpers/test-observability/sessionHandler','suiteCount','\x20\x20<dd\x20class=\x22error\x22>','QxlWY','Iwufy','doc','winstonLogger','testObservability','test_run_uuid','once','BKZKB','getRootParentFile','hsXze','duration','</dd>','backtrace','mocha/lib/reporters/base.js','szwih','LooHi','setCurrentTestData','retryOf','okItR','result','parent','RGsbo','KReIw','slice','xPGvv','vLZFh','22MUesmu','fullTitle','increaseIndent','_currentRetry','_paths','passed','__platform__','exports','cwd','shutdown','Cfhub','QlWKu','12ldAoTK','../../../helpers/logger','XEdAz','4601344QUiQCk','light','</dl>','hook_run_uuid','keSlZ','vHNRt','state','nfnmv','qqtPb','TestRunSkipped','fast','scopes','\x20(%dms)','bs:addLog:','xyLRh','QAlyp','WPyrx','uBvsA','dirname','assign','prefixTestPath','TgLcn','failure_backtrace','oqqPR','hooks','bind','hPeBK','ICsYx','csRRp','titlePath','color','tqriX','bMmsl','qIbkr','sendTestRunEvent','%s\x20-\x20%s','CUeEr','bwkrp','\x20%s','setGlobal','tftQy','uploadEventData','bs:addPlatformDetails:','integrations','suites','results','push','ddSWx','getTime','green','\x20\x20<dd\x20class=\x22error\x22><pre><code>','CBTSessionCreated','testStarted','stdout','join','match','PYcin','Failed\x20to\x20load\x20reporter\x20','efPOG','UpquA','_testResults','pending','LRPxR','clean','HookRunStarted','before\x20all','gwFKl','4|3|0|2|1','uEKrN','7232427YnHHjk','consoleLog','redirectUrl','Mocha','failure_reason_expanded','dot','trim','symbols','dXohT','HyVoW','MHrfz','__indents','ysjRv','xYoUk','suite','pWpLQ','removeAllListeners','reporterOption','snccQ','Exception\x20in\x20populating\x20test\x20data\x20for\x20hook\x20skipped\x20test\x20with\x20error\x20:\x20','reporterOptions','length','UnhandledError','after\x20all','RUNNING','title','UiJto','name','<dl>','MOCHA','done','20zrumlD','LogCreated','failureCount','YmTfN','Ctorf','mocha/lib/utils.js','hookAnalyticsId','../../utils/constants','appendTesthubParams','177351bnSjbR','javascript','appendTestItemLog','toISOString','xunit','GMpfM','../../../helpers/test-observability/utils','slow','Reporter','body','COMPLETED','AFTER_EACH','../../../helpers/testhub/utils','XBdSZ','lcnc','_testEnv','BaGIh','IqEEa','dPgYh','location_prefix','\x20\x20<dt\x20class=\x22error\x22>','toString','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','forEach','BEFORE_ALL','includes','error','started_at','fbThO','vTeGV','write','choob','wLMih','HookFinished','TEST_REPORTING_ANALYTICS','VBose','mUQJQ','</code></pre></dd>','EVENT','BEFORE_EACH','HjLXw','../../../helpers/helper','after\x20each','TestRunFinished','FOlGC','file','EGyuV','2790170vlahhS','gKRwe','docHtml','Exception\x20in\x20uploading\x20platform\x20details\x20to\x20','agpwc','docAppend','</section>','checkmark','registerListeners','pid','event_type','constants','ISZlL','CcZpv','failCount','testRunUUID','isPending','jfNle','zOpUu','jQemb','Foknz','YqIRc','indent','hook_type','analyticsResult','../../../helpers/metadata','TLGyS','File\x20path\x20could\x20not\x20be\x20found','uKUpV','718130amdNNs','\x20\x20<dd><pre><code>','NGNZd','ctx','FrWSn','logs','responseCode','failure','hook_run','bright\x20yellow','<h1>','_buildCreated','EZHiF','wZaFl','1482565UfkzYh','current_hook','../../../helpers/test-observability/constants','../../../helpers/globals','failed','currentRetry','3vDRUuD','finalResults','zRjen','hMMeC','</dt>','finished_at','bsConfig','inspect','split','TestRunStarted','gRxUW','_indents','</h1>','zcdEG','type','hYJtk','testAnalyticsId','BlbAJ','shouldProcessEventForTesthub','ILaKm','\x20-\x20','IFKmD','GsHfr','uuid','relative','Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20','findGitConfig','SYWxe','../../../helpers/test-observability/requestQueueHandler','yyvSt','ZbGBS','currentTest','fTvmb','apply','scope','gLntN','util','66074EOVSIe','QrTAT','statSync','mocha','err','test_run','Exception\x20in\x20uploading\x20log\x20data\x20to\x20','<section\x20class=\x22suite\x22>','iXxBs','escape','TBGMd','TZErT','PNggm','markedStatus','root','nOKeC','AssertionError','get','HookRunFinished','skipped','current_test','fail','speed','mQPcW'];a31_0x1384=function(){return _0x360e42;};return a31_0x1384();}const util=require(a31_0x2ef6be(0x1c5)),fs=require('fs'),path=require('path'),{requireModule,getCentralUser}=require(a31_0x2ef6be(0x2a0)),Base=requireModule(a31_0x2ef6be(0x1ee),a31_0x2ef6be(0x1c9)),utils=requireModule(a31_0x2ef6be(0x273),a31_0x2ef6be(0x1c9)),color=Base[a31_0x2ef6be(0x228)],Mocha=requireModule('mocha'),Runnable=requireModule('mocha/lib/runnable.js',a31_0x2ef6be(0x1c9)),{v4:uuidv4}=require('uuid'),bsSetupHelper=require('../../../helpers/helper'),testhubUtils=require(a31_0x2ef6be(0x283)),centralScannerUtils=require('../../../helpers/central-scanner/helpers'),testHubConstants=require('../../../helpers/testhub/constants'),{FRAMEWORKS}=require(a31_0x2ef6be(0x2d3)),globals=require(a31_0x2ef6be(0x2d4)),logger=require(a31_0x2ef6be(0x208))[a31_0x2ef6be(0x1e4)],TestMetadata=require(a31_0x2ef6be(0x2bf)),a31_0x2974a2={};a31_0x2974a2[a31_0x2ef6be(0x24b)]=a31_0x2ef6be(0x28f),a31_0x2974a2[a31_0x2ef6be(0x266)]='AFTER_ALL',a31_0x2974a2['before\x20each']=a31_0x2ef6be(0x29e),a31_0x2974a2[a31_0x2ef6be(0x2a1)]=a31_0x2ef6be(0x282);const HOOK_TYPES_MAP=a31_0x2974a2,{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['Runner']['constants'],{STATE_PASSED,STATE_PENDING,STATE_FAILED}=Runnable[a31_0x2ef6be(0x2b1)],{getTestEnv,getHookDetails,getHooksForTest,mapTestHooks,getHookSkippedTests}=require('../test-observability/mochaUtils'),{consoleHolder}=require(a31_0x2ef6be(0x2d3)),SessionHandler=require(a31_0x2ef6be(0x1de)),{isTestObservabilitySession,PathHelper,debug,failureData}=require(a31_0x2ef6be(0x27d)),RequestQueueHandler=require(a31_0x2ef6be(0x2f3)),constants=require(a31_0x2ef6be(0x275)),requestQueueHandler=RequestQueueHandler['getInstance']();class MyReporter{constructor(_0x5faa3f,_0x1fe3f0){const _0x191489=a31_0x2ef6be,_0x1d9141={'PYcin':function(_0x2bddc8,_0x486472){return _0x2bddc8===_0x486472;},'vHNRt':'spec','snccQ':function(_0x334356,_0x46aad2){return _0x334356===_0x46aad2;},'IqEEa':function(_0x552733,_0x53df95){return _0x552733+_0x53df95;},'bwkrp':function(_0x16b3af,_0x420082,_0x426a73){return _0x16b3af(_0x420082,_0x426a73);},'mOugA':_0x191489(0x23b),'pWpLQ':'%s\x20','YqIRc':function(_0x2f086f,_0x298869,_0x231358){return _0x2f086f(_0x298869,_0x231358);},'PNggm':_0x191489(0x20b),'nOKeC':_0x191489(0x22d),'xyLRh':_0x191489(0x267),'SYWxe':_0x191489(0x1e3),'VBose':function(_0x4fc52f){return _0x4fc52f();},'QAlyp':_0x191489(0x24a),'IFKmD':function(_0x5b059c,_0x55349){return _0x5b059c===_0x55349;},'iXxBs':'HookRunFinished','CRkEA':function(_0x4157f6,_0x28d6d7){return _0x4157f6===_0x28d6d7;},'TZErT':'passed','wZaFl':function(_0x408717,_0x2a2efc){return _0x408717===_0x2a2efc;},'CUeEr':_0x191489(0x214),'uEKrN':function(_0x5d412c,_0x464fc5){return _0x5d412c+_0x464fc5;},'yyvSt':function(_0x1487ed,_0x1b6e1f){return _0x1487ed+_0x1b6e1f;},'WPyrx':function(_0x30f71f,_0xd22164,_0x3b3dc5){return _0x30f71f(_0xd22164,_0x3b3dc5);},'ivYin':_0x191489(0x2ad),'QrTAT':function(_0xb184a4,_0x3b05c4){return _0xb184a4+_0x3b05c4;},'KReIw':'pass','UiJto':_0x191489(0x230),'TLGyS':function(_0xd02b35,_0x2bfe63){return _0xd02b35+_0x2bfe63;},'nfnmv':function(_0x3a4496,_0x2d56bd){return _0x3a4496+_0x2d56bd;},'hPeBK':_0x191489(0x216),'GMpfM':function(_0x405f97,_0x3426ee){return _0x405f97+_0x3426ee;},'tqriX':_0x191489(0x1db),'TZUrz':'\x20\x20%d)\x20%s','TgLcn':function(_0x325c73,_0x33e0b5){return _0x325c73+_0x33e0b5;},'XEdAz':function(_0x244902,_0x23f080,_0xb8bd7d){return _0x244902(_0x23f080,_0xb8bd7d);},'ZbGBS':_0x191489(0x2cc),'QJgnN':_0x191489(0x281),'Foknz':function(_0x37a00d,_0x28f1a0){return _0x37a00d===_0x28f1a0;},'RGsbo':_0x191489(0x254),'EGyuV':_0x191489(0x27e),'zOpUu':function(_0x416042,_0x352849){return _0x416042===_0x352849;},'csRRp':_0x191489(0x24d),'tZqhN':_0x191489(0x247),'fTvmb':function(_0x1a810f,_0x553695){return _0x1a810f===_0x553695;},'mQPcW':_0x191489(0x213),'dXohT':function(_0x556f5f,_0x14b427){return _0x556f5f===_0x14b427;},'MHrfz':function(_0x1bd106,_0xa89595){return _0x1bd106===_0xa89595;},'FrWSn':function(_0x21f251,_0x50a4eb){return _0x21f251(_0x50a4eb);},'gLntN':function(_0x3dfc15,_0x26eeed){return _0x3dfc15(_0x26eeed);},'TBGMd':function(_0x10df08,_0x25ae37){return _0x10df08===_0x25ae37;},'CcZpv':_0x191489(0x27b),'CbgUE':'mocha','WZcXr':function(_0x3c1a9f,_0x10bc40){return _0x3c1a9f===_0x10bc40;},'Ctorf':function(_0x18cb2f,_0x1c3a2e){return _0x18cb2f(_0x1c3a2e);},'EZHiF':function(_0x554efa,_0x45b866){return _0x554efa!==_0x45b866;}};this[_0x191489(0x2e5)]=_0x1fe3f0[_0x191489(0x260)][_0x191489(0x2e5)],this[_0x191489(0x1e5)]=_0x1d9141[_0x191489(0x29a)](isTestObservabilitySession),Base['call'](this,_0x5faa3f,_0x1fe3f0),this[_0x191489(0x2e2)]=0x0,this[_0x191489(0x2b4)]=0x0,this['results']=[],this['finalResults']=[],this[_0x191489(0x1df)]=0x0,this[_0x191489(0x2ce)]=![],this[_0x191489(0x246)]=[],this['_testEnv']=_0x1d9141['VBose'](getTestEnv),this[_0x191489(0x1ff)]=new PathHelper({'cwd':process[_0x191489(0x203)]()},this[_0x191489(0x286)][_0x191489(0x28a)]),this['_upstreamConfig']=_0x1fe3f0['reporterOption'][_0x191489(0x2dd)],this[_0x191489(0x2ae)]();_0x1d9141[_0x191489(0x261)](this[_0x191489(0x2e5)],_0x1d9141[_0x191489(0x2f2)])&&(this[_0x191489(0x2a8)]='',this['__indents']=0x2);_0x5faa3f['once'](EVENT_RUN_BEGIN,async()=>{const _0x548bf5=_0x191489;_0x1d9141[_0x548bf5(0x242)](this['type'],_0x1d9141[_0x548bf5(0x20f)])&&Base[_0x548bf5(0x250)]();})['on'](EVENT_SUITE_BEGIN,_0x19ee97=>{const _0x105786=_0x191489;if(_0x19ee97[_0x105786(0x1d4)])return;if(_0x1d9141[_0x105786(0x261)](this[_0x105786(0x2e5)],_0x1d9141['vHNRt']))this['increaseIndent'](),Base[_0x105786(0x250)](_0x1d9141[_0x105786(0x288)](_0x1d9141[_0x105786(0x288)](this['indent'](),_0x1d9141['bwkrp'](color,_0x1d9141['mOugA'],_0x1d9141['pWpLQ'])),_0x1d9141['YqIRc'](color,_0x1d9141[_0x105786(0x1d2)],_0x1d9141['nOKeC'])),_0x1d9141[_0x105786(0x218)],_0x19ee97[_0x105786(0x268)],global[_0x105786(0x201)]);else _0x1d9141[_0x105786(0x261)](this[_0x105786(0x2e5)],_0x1d9141[_0x105786(0x2f2)])&&(this[_0x105786(0x2ab)](this[_0x105786(0x2bc)]()+_0x105786(0x1cd)),++this['__indents'],this['docAppend'](this[_0x105786(0x2bc)]()+_0x105786(0x2cd)+utils[_0x105786(0x1cf)](_0x19ee97[_0x105786(0x268)]+_0x105786(0x2eb)+global[_0x105786(0x201)])+_0x105786(0x2e3)),this['docAppend'](this[_0x105786(0x2bc)]()+_0x105786(0x26b)));})['on'](EVENT_HOOK_BEGIN,async _0x2b8182=>{const _0x10f09e=_0x191489;if(_0x1d9141[_0x10f09e(0x242)](testhubUtils[_0x10f09e(0x2e9)](testHubConstants[_0x10f09e(0x29d)]['HookStarted']),!![])){if(!_0x2b8182[_0x10f09e(0x274)])_0x2b8182[_0x10f09e(0x274)]=_0x1d9141[_0x10f09e(0x29a)](uuidv4);else _0x2b8182[_0x10f09e(0x1d3)]&&(_0x2b8182[_0x10f09e(0x274)]=_0x1d9141[_0x10f09e(0x29a)](uuidv4),delete _0x2b8182[_0x10f09e(0x1d3)]);_0x2b8182[_0x10f09e(0x292)]=new Date()[_0x10f09e(0x27a)](),this['current_hook']=_0x2b8182,await this[_0x10f09e(0x22c)](_0x2b8182,undefined,![],_0x1d9141[_0x10f09e(0x219)]);}})['on'](EVENT_HOOK_END,async _0x45778c=>{const _0x4ebea3=_0x191489;_0x1d9141[_0x4ebea3(0x2ec)](testhubUtils[_0x4ebea3(0x2e9)](testHubConstants[_0x4ebea3(0x29d)][_0x4ebea3(0x298)]),!![])&&(!_0x45778c['markedStatus']&&(_0x45778c[_0x4ebea3(0x1d3)]=!![],await this[_0x4ebea3(0x22c)](_0x45778c,undefined,![],_0x1d9141[_0x4ebea3(0x1ce)])));})['on'](EVENT_SUITE_END,_0x54d0b7=>{const _0x13e4e4=_0x191489;if(_0x54d0b7[_0x13e4e4(0x1d4)])return;if(_0x1d9141[_0x13e4e4(0x2d0)](this[_0x13e4e4(0x2e5)],_0x1d9141['vHNRt']))Base['consoleLog'](),Base[_0x13e4e4(0x250)](_0x1d9141[_0x13e4e4(0x21f)](_0x1d9141[_0x13e4e4(0x288)](this[_0x13e4e4(0x2bc)](),_0x1d9141[_0x13e4e4(0x209)](color,_0x1d9141[_0x13e4e4(0x1bf)],_0x1d9141[_0x13e4e4(0x25e)])),_0x1d9141['XEdAz'](color,_0x1d9141[_0x13e4e4(0x1d2)],_0x1d9141[_0x13e4e4(0x1d5)])),_0x1d9141['QJgnN'],_0x54d0b7[_0x13e4e4(0x268)],global[_0x13e4e4(0x201)]),this[_0x13e4e4(0x237)][_0x13e4e4(0x28e)](_0xfcf3da=>{const _0x113d17=_0x13e4e4;if(_0x1d9141['CRkEA'](_0xfcf3da[_0x113d17(0x210)],_0x1d9141[_0x113d17(0x1d1)])){var _0x25070d;_0x1d9141[_0x113d17(0x2d0)](_0xfcf3da[_0x113d17(0x1dc)],_0x1d9141[_0x113d17(0x22e)])?(_0x25070d=_0x1d9141[_0x113d17(0x24e)](_0x1d9141['yyvSt'](this[_0x113d17(0x2bc)](),_0x1d9141[_0x113d17(0x21a)](color,_0x1d9141['ivYin'],_0x1d9141[_0x113d17(0x1c7)]('\x20\x20',Base[_0x113d17(0x256)]['ok']))),_0x1d9141[_0x113d17(0x22f)](color,_0x1d9141[_0x113d17(0x1f7)],_0x1d9141[_0x113d17(0x269)])),Base[_0x113d17(0x250)](_0x25070d,_0xfcf3da[_0x113d17(0x268)])):(_0x25070d=_0x1d9141[_0x113d17(0x2f4)](_0x1d9141[_0x113d17(0x24e)](_0x1d9141[_0x113d17(0x2c0)](this[_0x113d17(0x2bc)](),_0x1d9141[_0x113d17(0x2bb)](color,_0x1d9141['ivYin'],_0x1d9141[_0x113d17(0x211)]('\x20\x20',Base[_0x113d17(0x256)]['ok']))),_0x1d9141['bwkrp'](color,_0x1d9141['KReIw'],_0x1d9141[_0x113d17(0x269)])),_0x1d9141[_0x113d17(0x22f)](color,_0xfcf3da['speed'],_0x1d9141[_0x113d17(0x224)])),Base['consoleLog'](_0x25070d,_0xfcf3da['title'],_0xfcf3da['duration']));}else Base['consoleLog'](_0x1d9141[_0x113d17(0x27c)](this[_0x113d17(0x2bc)](),_0x1d9141['bwkrp'](color,_0x1d9141[_0x113d17(0x229)],_0x1d9141['TZUrz'])),++this[_0x113d17(0x2b4)],_0xfcf3da[_0x113d17(0x268)]);}),this['decreaseIndent']();else _0x1d9141[_0x13e4e4(0x2ba)](this['type'],_0x1d9141[_0x13e4e4(0x2f2)])&&(this['docAppend'](this['indent']()+_0x13e4e4(0x20c)),--this[_0x13e4e4(0x25a)],this[_0x13e4e4(0x2ab)](this[_0x13e4e4(0x2bc)]()+_0x13e4e4(0x2ac)),--this['__indents']);Array['prototype'][_0x13e4e4(0x238)][_0x13e4e4(0x1c2)](this['finalResults'],this[_0x13e4e4(0x237)]),this[_0x13e4e4(0x237)]=[];})['on'](EVENT_TEST_PASS,async _0x17111b=>{const _0x14d117=_0x191489;this[_0x14d117(0x237)]['push']({'speed':_0x17111b[_0x14d117(0x1dc)],'suite':_0x17111b['parent'][_0x14d117(0x268)],'title':_0x17111b[_0x14d117(0x268)],'fullTitle':_0x17111b['fullTitle'](),'duration':_0x17111b['duration'],'state':_0x17111b[_0x14d117(0x210)],'err':{},'currentRetry':_0x17111b['currentRetry'](),'titlePathV':_0x17111b[_0x14d117(0x227)](),'isPending':_0x17111b[_0x14d117(0x2b6)]()});if(_0x1d9141[_0x14d117(0x2d0)](this[_0x14d117(0x2e5)],_0x1d9141[_0x14d117(0x1f6)]))_0x1d9141['wZaFl'](_0x17111b['speed'],_0x1d9141[_0x14d117(0x2a5)])?process[_0x14d117(0x23f)]['write'](Base[_0x14d117(0x228)](_0x1d9141[_0x14d117(0x1bf)],Base[_0x14d117(0x256)][_0x14d117(0x254)])):process[_0x14d117(0x23f)][_0x14d117(0x295)](Base[_0x14d117(0x228)](_0x17111b[_0x14d117(0x1dc)],Base['symbols']['dot']));else{if(_0x1d9141[_0x14d117(0x261)](this[_0x14d117(0x2e5)],_0x1d9141[_0x14d117(0x2f2)])){this[_0x14d117(0x2ab)](this[_0x14d117(0x2bc)]()+'\x20\x20<dt>'+utils[_0x14d117(0x1cf)](_0x17111b[_0x14d117(0x268)])+_0x14d117(0x2db)),this[_0x14d117(0x2ab)](this['indent']()+'\x20\x20<dt>'+utils['escape'](_0x17111b['file'])+_0x14d117(0x2db));var _0x2b71a2=utils['escape'](utils[_0x14d117(0x249)](_0x17111b['body']));this['docAppend'](this['indent']()+_0x14d117(0x2c4)+_0x2b71a2+'</code></pre></dd>');}}_0x1d9141[_0x14d117(0x261)](testhubUtils['shouldProcessEventForTesthub'](),!![])&&(!_0x17111b[_0x14d117(0x1d3)]&&(_0x17111b[_0x14d117(0x1d3)]=!![],await this[_0x14d117(0x22c)](_0x17111b)));})['on'](EVENT_TEST_FAIL,async(_0x32c91c,_0x41a47f)=>{const _0x3d05b2=_0x191489;this[_0x3d05b2(0x237)][_0x3d05b2(0x238)]({'title':_0x32c91c['title'],'suite':_0x32c91c[_0x3d05b2(0x1f5)][_0x3d05b2(0x268)],'state':_0x32c91c[_0x3d05b2(0x210)],'err':{'message':util[_0x3d05b2(0x2de)](_0x41a47f)},'fullTitle':_0x32c91c[_0x3d05b2(0x1fc)](),'speed':_0x32c91c[_0x3d05b2(0x1dc)],'currentRetry':_0x32c91c[_0x3d05b2(0x2d6)](),'titlePathV':_0x32c91c[_0x3d05b2(0x227)]()});if(_0x1d9141['Foknz'](this[_0x3d05b2(0x2e5)],_0x1d9141[_0x3d05b2(0x1f6)]))process[_0x3d05b2(0x23f)][_0x3d05b2(0x295)](Base[_0x3d05b2(0x228)](_0x1d9141[_0x3d05b2(0x229)],Base[_0x3d05b2(0x256)]['bang']));else{if(_0x1d9141[_0x3d05b2(0x2b8)](this[_0x3d05b2(0x2e5)],_0x1d9141[_0x3d05b2(0x2f2)])){const _0x18bed4=_0x1d9141[_0x3d05b2(0x226)][_0x3d05b2(0x2df)]('|');let _0x5f1243=0x0;while(!![]){switch(_0x18bed4[_0x5f1243++]){case'0':var _0x530ede=utils[_0x3d05b2(0x1cf)](utils['clean'](_0x32c91c[_0x3d05b2(0x280)]));continue;case'1':this[_0x3d05b2(0x2ab)](this['indent']()+_0x3d05b2(0x1e0)+utils[_0x3d05b2(0x1cf)](_0x32c91c[_0x3d05b2(0x1ca)])+_0x3d05b2(0x1ec));continue;case'2':this[_0x3d05b2(0x2ab)](this[_0x3d05b2(0x2bc)]()+_0x3d05b2(0x23c)+_0x530ede+_0x3d05b2(0x29c));continue;case'3':this[_0x3d05b2(0x2ab)](this[_0x3d05b2(0x2bc)]()+_0x3d05b2(0x28b)+utils['escape'](_0x32c91c[_0x3d05b2(0x2a4)])+'</dt>');continue;case'4':this[_0x3d05b2(0x2ab)](this[_0x3d05b2(0x2bc)]()+_0x3d05b2(0x28b)+utils[_0x3d05b2(0x1cf)](_0x32c91c['title'])+_0x3d05b2(0x2db));continue;}break;}}}if(_0x1d9141[_0x3d05b2(0x2ec)](testhubUtils[_0x3d05b2(0x2e9)](testHubConstants['EVENT'][_0x3d05b2(0x298)]),!![])){if(!_0x32c91c['markedStatus']){_0x32c91c[_0x3d05b2(0x1d3)]=!![];if(_0x32c91c[_0x3d05b2(0x2e7)])await this[_0x3d05b2(0x22c)](_0x32c91c,_0x41a47f);else _0x32c91c[_0x3d05b2(0x274)]&&await this['sendTestRunEvent'](_0x32c91c,_0x41a47f,![],_0x1d9141[_0x3d05b2(0x1ce)]);}}})['on'](EVENT_TEST_PENDING,async _0x5439b9=>{const _0x54e0ee=_0x191489;this['results']['push']({'title':_0x5439b9[_0x54e0ee(0x268)],'suite':_0x5439b9[_0x54e0ee(0x1f5)][_0x54e0ee(0x268)],'state':_0x5439b9[_0x54e0ee(0x210)],'err':{},'fullTitle':_0x5439b9[_0x54e0ee(0x1fc)](),'speed':_0x5439b9[_0x54e0ee(0x1dc)],'currentRetry':_0x5439b9[_0x54e0ee(0x2d6)](),'titlePathV':_0x5439b9[_0x54e0ee(0x227)]()}),_0x1d9141['snccQ'](this[_0x54e0ee(0x2e5)],_0x1d9141['RGsbo'])&&process[_0x54e0ee(0x23f)][_0x54e0ee(0x295)](Base[_0x54e0ee(0x228)](_0x1d9141['tZqhN'],Base['symbols']['comma'])),_0x1d9141[_0x54e0ee(0x1c1)](testhubUtils['shouldProcessEventForTesthub'](),!![])&&(!_0x5439b9['testAnalyticsId']&&(_0x5439b9[_0x54e0ee(0x2e7)]=_0x1d9141[_0x54e0ee(0x29a)](uuidv4)),!_0x5439b9[_0x54e0ee(0x1d3)]&&(_0x5439b9[_0x54e0ee(0x1d3)]=!![],await this[_0x54e0ee(0x22c)](_0x5439b9,undefined,![],_0x1d9141[_0x54e0ee(0x1dd)])));})['on'](EVENT_TEST_BEGIN,async _0x582fcc=>{const _0xdae42f=_0x191489;_0x1d9141[_0xdae42f(0x257)](testhubUtils[_0xdae42f(0x2e9)](),!![])&&await this[_0xdae42f(0x23e)](_0x582fcc);})['on'](EVENT_TEST_END,async _0x10d613=>{const _0x245fe4=_0x191489;_0x1d9141[_0x245fe4(0x2d0)](testhubUtils[_0x245fe4(0x2e9)](),!![])&&(!_0x10d613[_0x245fe4(0x1d3)]&&(_0x10d613[_0x245fe4(0x1d3)]=!![],await this[_0x245fe4(0x22c)](_0x10d613)));})[_0x191489(0x1e7)](EVENT_RUN_END,async()=>{const _0x2669f3=_0x191489;try{if(_0x1d9141[_0x2669f3(0x259)](testhubUtils[_0x2669f3(0x2e9)](),!![])){const _0xdb1100=_0x1d9141['FrWSn'](getHookSkippedTests,this['runner'][_0x2669f3(0x25d)]);for(const _0x2eaa82 of _0xdb1100){!_0x2eaa82['testAnalyticsId']&&(_0x2eaa82[_0x2669f3(0x2e7)]=_0x1d9141['VBose'](uuidv4)),await this[_0x2669f3(0x22c)](_0x2eaa82,undefined,![],_0x1d9141[_0x2669f3(0x1dd)]);}}}catch(_0x250984){_0x1d9141[_0x2669f3(0x1c4)](debug,_0x2669f3(0x262)+_0x250984);}await requestQueueHandler[_0x2669f3(0x204)](),_0x1d9141[_0x2669f3(0x1d0)](this[_0x2669f3(0x2e5)],_0x1d9141[_0x2669f3(0x2f2)])&&Base['consoleLog'](this[_0x2669f3(0x2a8)]);});if(this['type']&&![_0x1d9141[_0x191489(0x2f2)],_0x1d9141[_0x191489(0x2b3)],_0x1d9141[_0x191489(0x20f)],_0x1d9141[_0x191489(0x1f6)]][_0x191489(0x290)](this[_0x191489(0x2e5)])){const _0x35bb07=this[_0x191489(0x2e5)][_0x191489(0x255)]();this['Reporter']=null;try{this[_0x191489(0x27f)]=_0x1d9141[_0x191489(0x21a)](requireModule,'mocha/lib/reporters/'+_0x35bb07+'.js',_0x1d9141['CbgUE']);}catch(_0x2eb587){_0x1d9141[_0x191489(0x2c7)](debug,'Exception\x20in\x20browserstack\x20custome\x20reporter\x20with\x20error:\x20'+_0x2eb587);}if(_0x1d9141['WZcXr'](this[_0x191489(0x27f)],null))try{this[_0x191489(0x27f)]=_0x1d9141[_0x191489(0x272)](require,_0x35bb07);}catch(_0x44871d){console[_0x191489(0x291)](_0x191489(0x243)+_0x35bb07);}if(_0x1d9141[_0x191489(0x2cf)](this[_0x191489(0x27f)],null)){const _0x1cb9d4={};_0x1cb9d4[_0x191489(0x263)]=_0x1fe3f0[_0x191489(0x260)],this[_0x191489(0x27f)]=new this[(_0x191489(0x27f))](_0x5faa3f,_0x1cb9d4);}}}[a31_0x2ef6be(0x2bc)](){const _0x2d8be7=a31_0x2ef6be,_0x10386c={'hMMeC':function(_0x1bf975,_0x4a02bb){return _0x1bf975(_0x4a02bb);}};return _0x10386c[_0x2d8be7(0x2da)](Array,this[_0x2d8be7(0x2e2)])[_0x2d8be7(0x240)]('\x20\x20');}[a31_0x2ef6be(0x1fd)](){const _0x33c717=a31_0x2ef6be;this[_0x33c717(0x2e2)]++;}['decreaseIndent'](){this['_indents']--;}['docAppend'](_0x73442e){this['docHtml']+=_0x73442e;}[a31_0x2ef6be(0x26d)](_0x332819,_0x20eb77){const _0x36b1fd=a31_0x2ef6be,_0xc1cc0f={'QxlWY':function(_0x455b00,_0x12adfc){return _0x455b00(_0x12adfc);}},_0x1c13e7={};_0x1c13e7[_0x36b1fd(0x270)]=_0x332819,_0x1c13e7['results']=this[_0x36b1fd(0x2d8)],_0xc1cc0f[_0x36b1fd(0x1e1)](_0x20eb77,_0x1c13e7);}[a31_0x2ef6be(0x2ae)](){const _0x473d5f=a31_0x2ef6be;process[_0x473d5f(0x25f)](_0x473d5f(0x217)+process['pid']),process['on'](_0x473d5f(0x217)+process[_0x473d5f(0x2af)],this[_0x473d5f(0x279)]['bind'](this)),process[_0x473d5f(0x25f)]('bs:addPlatformDetails:'+process['pid']),process['on'](_0x473d5f(0x234)+process['pid'],this['appendTestPlatform'][_0x473d5f(0x223)](this));}['testStarted']=async _0x313595=>{const _0x2115fd=a31_0x2ef6be,_0x24be12={'zRjen':function(_0x3db65f){return _0x3db65f();},'Cfhub':_0x2115fd(0x2b5),'mUQJQ':function(_0x2cc521,_0x57b947){return _0x2cc521>_0x57b947;},'UpquA':function(_0x3267,_0x2dc7ca){return _0x3267===_0x2dc7ca;},'gwFKl':_0x2115fd(0x2e0),'hBoSs':function(_0x3cc3da,_0x2b9dce){return _0x3cc3da(_0x2b9dce);}};try{const _0x3825f9=this[_0x2115fd(0x1da)];this['current_test']=_0x313595,_0x313595[_0x2115fd(0x1f2)]=null,_0x313595[_0x2115fd(0x2e7)]=_0x24be12[_0x2115fd(0x2d9)](uuidv4),globals[_0x2115fd(0x231)](_0x24be12[_0x2115fd(0x205)],_0x313595['testAnalyticsId']),_0x313595['started_at']=new Date()[_0x2115fd(0x27a)](),_0x24be12[_0x2115fd(0x29b)](_0x313595[_0x2115fd(0x1fe)],0x0)&&_0x3825f9&&_0x24be12[_0x2115fd(0x245)](_0x3825f9['title'],_0x313595[_0x2115fd(0x268)])?(_0x313595[_0x2115fd(0x1f2)]=_0x3825f9['testAnalyticsId'],await this[_0x2115fd(0x22c)](_0x313595,undefined,![],_0x24be12[_0x2115fd(0x24c)]),_0x3825f9['state']=STATE_FAILED,await this[_0x2115fd(0x22c)](_0x3825f9,undefined,!![])):await this[_0x2115fd(0x22c)](_0x313595,undefined,![],_0x24be12[_0x2115fd(0x24c)]);}catch(_0x15c55a){_0x24be12['hBoSs'](debug,_0x2115fd(0x2f0)+_0x15c55a);}};[a31_0x2ef6be(0x22c)]=async(_0x45f26e,_0x46cf9f=undefined,_0x19bcfe=![],_0x3815c9=a31_0x2ef6be(0x2a2))=>{const _0x524b8e=a31_0x2ef6be,_0x520aa3={'Iwufy':function(_0x1992ee,_0x31a83d){return _0x1992ee===_0x31a83d;},'BaGIh':function(_0x10ea65,_0x4e1bc4){return _0x10ea65!==_0x4e1bc4;},'uKUpV':'test','XBdSZ':_0x524b8e(0x1ca),'jfNle':function(_0x16751c,_0x462355){return _0x16751c!==_0x462355;},'jQemb':function(_0xc67b0e,_0x106231){return _0xc67b0e!==_0x106231;},'kedof':_0x524b8e(0x2c1),'QlWKu':_0x524b8e(0x252),'hsXze':_0x524b8e(0x278),'VGQyg':function(_0x46fe77,_0x35d35f){return _0x46fe77===_0x35d35f;},'GsHfr':_0x524b8e(0x213),'dPgYh':_0x524b8e(0x1d9),'wqVKW':function(_0x1f9617,_0x217358){return _0x1f9617-_0x217358;},'bMmsl':_0x524b8e(0x1d6),'vLZFh':_0x524b8e(0x265),'ddSWx':_0x524b8e(0x2a2),'YmTfN':_0x524b8e(0x2e0),'HyVoW':function(_0x835ddd){return _0x835ddd();},'ICsYx':function(_0x25a6f7,_0x5de6ae){return _0x25a6f7===_0x5de6ae;},'szwih':_0x524b8e(0x292),'ugxwh':_0x524b8e(0x2dc),'oqqPR':function(_0x262f59,_0x3c069f){return _0x262f59(_0x3c069f);},'okItR':_0x524b8e(0x1d8),'LRPxR':function(_0x4e07cf,_0x188c20){return _0x4e07cf!==_0x188c20;},'wLMih':_0x524b8e(0x2d5),'xPGvv':_0x524b8e(0x200),'LooHi':'before\x20each','keSlZ':function(_0x21d090,_0x527eea){return _0x21d090===_0x527eea;},'vTeGV':_0x524b8e(0x2ca),'hYJtk':_0x524b8e(0x220),'jeBKW':_0x524b8e(0x1ed),'uBvsA':_0x524b8e(0x253),'FOlGC':'expanded','ISZlL':function(_0xafc328,_0x47c5cd){return _0xafc328(_0x47c5cd);},'xYoUk':_0x524b8e(0x2bd),'qIbkr':_0x524b8e(0x2cb),'oQZxg':_0x524b8e(0x1cb)};try{if(_0x45f26e[_0x524b8e(0x280)]&&_0x45f26e[_0x524b8e(0x280)][_0x524b8e(0x241)](/browserstack internal helper hook/))return;let _0x49330c=[];if(_0x520aa3[_0x524b8e(0x1e2)](_0x45f26e[_0x524b8e(0x210)],STATE_FAILED)){if(_0x520aa3[_0x524b8e(0x287)](_0x45f26e[_0x524b8e(0x1ca)],undefined))_0x49330c=_0x45f26e[_0x524b8e(0x1ca)]['multiple']?[_0x45f26e[_0x524b8e(0x1ca)]['multiple'],_0x520aa3[_0x524b8e(0x2c2)]]:[_0x45f26e['err'],_0x520aa3[_0x524b8e(0x284)]];else _0x520aa3['BaGIh'](_0x46cf9f,undefined)?_0x49330c=[_0x46cf9f,_0x520aa3['XBdSZ']]:_0x49330c=[];}const _0x11811c=_0x520aa3[_0x524b8e(0x2b7)](_0x45f26e['err'],undefined)?_0x45f26e[_0x524b8e(0x1ca)][_0x524b8e(0x28c)]():_0x520aa3[_0x524b8e(0x2b9)](_0x46cf9f,undefined)?_0x46cf9f[_0x524b8e(0x28c)]():undefined;let _0x1ed17d;try{_0x1ed17d=this[_0x524b8e(0x1e9)](_0x45f26e);}catch(_0x54acf4){_0x1ed17d=null;}const _0x1df49c=_0x1ed17d?this[_0x524b8e(0x2f1)](_0x1ed17d):null,_0xb26aea=_0x1ed17d?this[_0x524b8e(0x1ff)][_0x524b8e(0x21e)](this['getRootParentFile'](_0x45f26e)):_0x520aa3['kedof'],_0xb1d73b={'framework':_0x520aa3[_0x524b8e(0x206)],'uuid':_0x45f26e[_0x524b8e(0x2e7)]||_0x45f26e['hookAnalyticsId'],'name':_0x45f26e[_0x524b8e(0x268)],'body':{'lang':_0x520aa3[_0x524b8e(0x1ea)],'code':_0x45f26e['body']},'scope':this[_0x524b8e(0x1c3)](_0x45f26e),'scopes':this[_0x524b8e(0x215)](_0x45f26e),'identifier':_0x45f26e['fullTitle'](),'file_name':_0xb26aea,'vc_filepath':_0x1df49c?path[_0x524b8e(0x2ef)](_0x1df49c,_0x1ed17d):null,'location':_0xb26aea,'result':_0x520aa3['VGQyg'](_0x3815c9,_0x520aa3[_0x524b8e(0x2ed)])?_0x520aa3[_0x524b8e(0x289)]:this['analyticsResult'](_0x45f26e['state']),'failure_reason':_0x11811c,'duration_in_ms':_0x45f26e[_0x524b8e(0x1eb)]||(_0x3815c9['match'](/Finished/)||_0x3815c9[_0x524b8e(0x241)](/Skipped/)?_0x520aa3['wqVKW'](Date['now'](),new Date(_0x45f26e[_0x524b8e(0x292)])[_0x524b8e(0x23a)]()):null),'started_at':_0x45f26e[_0x524b8e(0x292)],'finished_at':_0x3815c9['match'](/Finished/)||_0x3815c9['match'](/Skipped/)?new Date()[_0x524b8e(0x27a)]():null,'failure':failureData[_0x524b8e(0x1c2)](null,_0x49330c),'failure_type':!_0x11811c?null:_0x11811c[_0x524b8e(0x241)](/AssertionError/)?_0x520aa3[_0x524b8e(0x22a)]:_0x520aa3[_0x524b8e(0x1fa)],'retry_of':_0x45f26e[_0x524b8e(0x1f2)]};if([_0x520aa3[_0x524b8e(0x2ed)],_0x520aa3[_0x524b8e(0x239)],_0x520aa3[_0x524b8e(0x271)]]['includes'](_0x3815c9)){if(_0x520aa3[_0x524b8e(0x258)](getCentralUser)['lcnc']){const _0x2c83b5=TestMetadata[_0x524b8e(0x1d7)](_0x45f26e[_0x524b8e(0x2e7)]);if(_0x2c83b5){const _0x4cbd94={};_0x4cbd94[_0x524b8e(0x285)]=_0x2c83b5,Object[_0x524b8e(0x21d)](_0xb1d73b,_0x4cbd94);}}}testhubUtils[_0x524b8e(0x276)](_0xb1d73b,_0x3815c9,_0x45f26e,FRAMEWORKS[_0x524b8e(0x26c)]);(_0x45f26e[_0x524b8e(0x2c9)]||_0x45f26e['redirectUrl'])&¢ralScannerUtils['setCentralScannerData'](_0xb1d73b,_0x45f26e[_0x524b8e(0x2c9)],_0x45f26e[_0x524b8e(0x251)]);_0x520aa3[_0x524b8e(0x225)](_0x3815c9,_0x520aa3['GsHfr'])&&!_0xb1d73b[_0x520aa3['szwih']]&&(_0xb1d73b[_0x520aa3[_0x524b8e(0x1ef)]]=_0xb1d73b[_0x520aa3['ugxwh']]);if(_0x3815c9[_0x524b8e(0x241)](/HookRun/))[_0xb1d73b['hook_type'],_0xb1d73b[_0x524b8e(0x26a)]]=_0x520aa3[_0x524b8e(0x221)](getHookDetails,_0x45f26e['fullTitle']()||_0x45f26e['originalTitle']||_0x45f26e['title']),_0x520aa3[_0x524b8e(0x1e2)](_0x3815c9,_0x520aa3[_0x524b8e(0x1f3)])&&(_0x520aa3[_0x524b8e(0x248)](_0xb1d73b[_0x524b8e(0x1f4)],_0x520aa3[_0x524b8e(0x297)])&&(_0xb1d73b[_0x524b8e(0x1f4)]=_0x520aa3[_0x524b8e(0x1f9)]),_0x520aa3[_0x524b8e(0x225)](_0xb1d73b[_0x524b8e(0x2bd)],_0x520aa3[_0x524b8e(0x1f0)])&&_0x520aa3[_0x524b8e(0x20e)](_0xb1d73b[_0x524b8e(0x1f4)],_0x520aa3[_0x524b8e(0x297)])&&!_0x45f26e[_0x524b8e(0x2c6)]['currentTest'][_0x524b8e(0x1d3)]&&(_0x45f26e[_0x524b8e(0x2c6)][_0x524b8e(0x1c0)]['markedStatus']=!![],_0x45f26e[_0x524b8e(0x2c6)][_0x524b8e(0x1c0)][_0x524b8e(0x210)]=STATE_FAILED,await this[_0x524b8e(0x22c)](_0x45f26e[_0x524b8e(0x2c6)][_0x524b8e(0x1c0)],undefined,!![])));else _0x3815c9[_0x524b8e(0x241)](/TestRun/)&&_0x520aa3['oqqPR'](mapTestHooks,_0x45f26e);const _0x3734ec=_0xb1d73b[_0x520aa3[_0x524b8e(0x294)]][0x0];_0x3734ec&&(_0xb1d73b[_0x520aa3[_0x524b8e(0x2e6)]]=_0x3734ec[_0x520aa3['jeBKW']],_0xb1d73b[_0x520aa3[_0x524b8e(0x21b)]]=_0x3734ec[_0x520aa3[_0x524b8e(0x2a3)]]);[_0x520aa3[_0x524b8e(0x239)],_0x520aa3['GsHfr']]['includes'](_0x3815c9)&&(this[_0x524b8e(0x246)][_0x524b8e(0x238)](_0xb1d73b),_0xb1d73b[_0x524b8e(0x222)]=_0x520aa3[_0x524b8e(0x2b2)](getHooksForTest,_0x45f26e));const _0x3f2216={'event_type':_0x520aa3[_0x524b8e(0x225)](_0x3815c9,_0x520aa3['GsHfr'])?_0x520aa3[_0x524b8e(0x239)]:_0x3815c9};_0x3815c9[_0x524b8e(0x241)](/HookRun/)?(_0xb1d73b[_0x520aa3[_0x524b8e(0x25c)]]=HOOK_TYPES_MAP[_0xb1d73b[_0x520aa3['xYoUk']]],_0x3f2216[_0x520aa3[_0x524b8e(0x22b)]]=_0xb1d73b):_0x3f2216[_0x520aa3['oQZxg']]=_0xb1d73b,testhubUtils[_0x524b8e(0x1f1)](FRAMEWORKS['MOCHA'],_0x3f2216),await SessionHandler[_0x524b8e(0x233)](_0x3f2216);}catch(_0x90ae2c){_0x520aa3[_0x524b8e(0x2b2)](debug,_0x524b8e(0x28d)+_0x3815c9+'\x20with\x20error\x20:\x20'+_0x90ae2c);}};[a31_0x2ef6be(0x2f1)](_0x54b92b){const _0x3cb92a=a31_0x2ef6be,_0x1c1b14={};_0x1c1b14[_0x3cb92a(0x1e8)]=function(_0xe9d117,_0x69d4ed){return _0xe9d117===_0x69d4ed;},_0x1c1b14[_0x3cb92a(0x2aa)]=function(_0x42b62a,_0x4ba85d){return _0x42b62a===_0x4ba85d;},_0x1c1b14[_0x3cb92a(0x2e4)]='.git',_0x1c1b14['ILaKm']='config';const _0x4bd591=_0x1c1b14,_0x2cd705=path['sep'];if(_0x4bd591[_0x3cb92a(0x1e8)](_0x54b92b,null)||_0x4bd591[_0x3cb92a(0x1e8)](_0x54b92b,'')||_0x4bd591[_0x3cb92a(0x1e8)](_0x54b92b,_0x2cd705)||_0x4bd591['agpwc'](_0x54b92b,path[_0x3cb92a(0x21c)](_0x54b92b)))return null;try{return fs[_0x3cb92a(0x1c8)](path[_0x3cb92a(0x240)](_0x54b92b,_0x4bd591[_0x3cb92a(0x2e4)],_0x4bd591[_0x3cb92a(0x2ea)])),_0x54b92b;}catch(_0x45f510){const _0x5caddd=path['dirname'](_0x54b92b);return this[_0x3cb92a(0x2f1)](_0x5caddd);}}['appendTestItemLog']=async _0x1f4999=>{const _0x51916b=a31_0x2ef6be,_0x208e43={'fbThO':_0x51916b(0x26f),'HjLXw':function(_0x3364f0,_0x42499a){return _0x3364f0(_0x42499a);}};try{this[_0x51916b(0x2d2)]&&!this[_0x51916b(0x2d2)]['markedStatus']&&(_0x1f4999['hook_run_uuid']=this[_0x51916b(0x2d2)][_0x51916b(0x274)]);!_0x1f4999[_0x51916b(0x20d)]&&this[_0x51916b(0x1da)]&&!this['current_test'][_0x51916b(0x1d3)]&&(_0x1f4999[_0x51916b(0x1e6)]=this[_0x51916b(0x1da)][_0x51916b(0x2e7)]);if(_0x1f4999[_0x51916b(0x20d)]||_0x1f4999[_0x51916b(0x1e6)]){const _0x311b87={};_0x311b87[_0x51916b(0x2b0)]=_0x208e43[_0x51916b(0x293)],_0x311b87[_0x51916b(0x2c8)]=[_0x1f4999],await SessionHandler[_0x51916b(0x233)](_0x311b87);}}catch(_0x445d24){_0x208e43[_0x51916b(0x29f)](debug,_0x51916b(0x1cc)+constants[_0x51916b(0x299)]+'\x20with\x20error\x20:\x20'+_0x445d24);}};['appendTestPlatform']=async _0x9d0b37=>{const _0x28b75f=a31_0x2ef6be,_0x5d583f={'tftQy':'http_response','efPOG':_0x28b75f(0x23d),'ysjRv':function(_0x7ed86,_0x5412ad){return _0x7ed86(_0x5412ad);}};try{const _0x152cda={};_0x152cda['uuid']=_0x9d0b37[_0x28b75f(0x2ee)]||this['current_test'][_0x28b75f(0x2e7)],_0x152cda[_0x28b75f(0x235)]=_0x9d0b37[_0x5d583f[_0x28b75f(0x232)]];const _0x1a883f=_0x152cda,_0x4455e9={};_0x4455e9['event_type']=_0x5d583f[_0x28b75f(0x244)],_0x4455e9['test_run']=_0x1a883f,await SessionHandler['uploadEventData'](_0x4455e9);}catch(_0x4baa8b){_0x5d583f[_0x28b75f(0x25b)](debug,_0x28b75f(0x2a9)+constants[_0x28b75f(0x299)]+'\x20with\x20error\x20:\x20'+_0x4baa8b);}};[a31_0x2ef6be(0x2be)](_0x19cba3){const _0x5f3831=a31_0x2ef6be,_0x5c2d9a={};_0x5c2d9a[_0x5f3831(0x2e8)]=_0x5f3831(0x200),_0x5c2d9a[_0x5f3831(0x2c5)]=_0x5f3831(0x247),_0x5c2d9a[_0x5f3831(0x2e1)]=_0x5f3831(0x2d5);const _0x5aca7e=_0x5c2d9a,_0x14370={};return _0x14370[STATE_PASSED]=_0x5aca7e[_0x5f3831(0x2e8)],_0x14370[STATE_PENDING]=_0x5aca7e[_0x5f3831(0x2c5)],_0x14370[STATE_FAILED]=_0x5aca7e[_0x5f3831(0x2e1)],_0x14370[_0x19cba3];}['scope'](_0x1449f3){const _0x2e47d6=a31_0x2ef6be,_0x38e615={};_0x38e615[_0x2e47d6(0x2a7)]=function(_0x24e48e,_0x210cf8){return _0x24e48e-_0x210cf8;};const _0x5c3852=_0x38e615,_0x1abf65=_0x1449f3[_0x2e47d6(0x227)]();return _0x1abf65[_0x2e47d6(0x1f8)](0x0,_0x5c3852[_0x2e47d6(0x2a7)](_0x1abf65[_0x2e47d6(0x264)],0x1))['join']('\x20');}[a31_0x2ef6be(0x215)](_0x5db16e){const _0x340e1c=a31_0x2ef6be,_0x6fd236={};_0x6fd236[_0x340e1c(0x296)]=function(_0x55dbc6,_0x2eb358){return _0x55dbc6-_0x2eb358;};const _0x5f0161=_0x6fd236,_0x25305d=_0x5db16e['titlePath']();return _0x25305d[_0x340e1c(0x1f8)](0x0,_0x5f0161[_0x340e1c(0x296)](_0x25305d['length'],0x1));}[a31_0x2ef6be(0x1e9)](_0xef26ad){const _0x521183=a31_0x2ef6be,_0x20b32c={};_0x20b32c[_0x521183(0x212)]=function(_0x47a100,_0x5eb3bb){return _0x47a100>_0x5eb3bb;};const _0x5f3524=_0x20b32c;if(_0xef26ad[_0x521183(0x2a4)])return _0xef26ad[_0x521183(0x2a4)];if(_0xef26ad[_0x521183(0x2c6)]){const _0x19fef0=_0xef26ad[_0x521183(0x2c6)][_0x521183(0x1c0)]?this[_0x521183(0x1e9)](_0xef26ad[_0x521183(0x2c6)][_0x521183(0x1c0)]):null;if(_0x19fef0)return _0x19fef0;}if(_0xef26ad[_0x521183(0x1f5)]){const _0x177df8=this['getRootParentFile'](_0xef26ad[_0x521183(0x1f5)])||(_0xef26ad['parent'][_0x521183(0x2c6)]&&_0xef26ad[_0x521183(0x1f5)][_0x521183(0x2c6)]['currentTest']?this[_0x521183(0x1e9)](_0xef26ad['parent'][_0x521183(0x2c6)][_0x521183(0x1c0)]):null);if(_0x177df8)return _0x177df8;_0xef26ad[_0x521183(0x1f5)][_0x521183(0x236)]&&_0x5f3524[_0x521183(0x212)](_0xef26ad[_0x521183(0x1f5)][_0x521183(0x236)][_0x521183(0x264)],0x0)&&_0xef26ad[_0x521183(0x1f5)]['suites']['forEach'](_0x16fe01=>{const _0x5527fa=_0x521183,_0x4a0c02=_0x16fe01[_0x5527fa(0x2c6)]?this[_0x5527fa(0x1e9)](_0x16fe01[_0x5527fa(0x2c6)]):null;if(_0x4a0c02)return _0x4a0c02;});}return null;}}function a31_0x3011(_0x996a01,_0x5e605a){const _0x1384ec=a31_0x1384();return a31_0x3011=function(_0x3011f4,_0x19bfea){_0x3011f4=_0x3011f4-0x1bf;let _0x1da39d=_0x1384ec[_0x3011f4];return _0x1da39d;},a31_0x3011(_0x996a01,_0x5e605a);}module[a31_0x2ef6be(0x202)]=MyReporter;
|
|
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;
|