browserstack-node-sdk 1.52.2 → 1.52.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +4 -3
- 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_0x2965=a27_0x185c;(function(_0x3241a4,_0x5f3516){const _0x2c75eb=a27_0x185c,_0x3e99b5=_0x3241a4();while(!![]){try{const _0x280334=parseInt(_0x2c75eb(0x135))/0x1+parseInt(_0x2c75eb(0x133))/0x2+parseInt(_0x2c75eb(0x113))/0x3+-parseInt(_0x2c75eb(0x132))/0x4*(-parseInt(_0x2c75eb(0x13a))/0x5)+parseInt(_0x2c75eb(0x12b))/0x6+-parseInt(_0x2c75eb(0x11c))/0x7+-parseInt(_0x2c75eb(0x123))/0x8*(parseInt(_0x2c75eb(0x12f))/0x9);if(_0x280334===_0x5f3516)break;else _0x3e99b5['push'](_0x3e99b5['shift']());}catch(_0x213baf){_0x3e99b5['push'](_0x3e99b5['shift']());}}}(a27_0x5500,0xb8495));function a27_0x5500(){const _0x46ae1e=['../utils/constants','formatter','EVENTS','../v2/browserstackCLI','testsErrorMessage','_framework','_argv','hEjom','1275138ZwpSjX','testsPending','../../helpers/test-observability/utils','_configuration','path','videC','AI_ENABLED_FRAMEWORK','__platformCaps','resolvePaths','6918429lZdTIh','_testObservability','../../helpers/accessibility-automation/helper','capability','configuration','mochaOpts','testsSkipped','17265208hHHlpm','setupCucumber','../../helpers/performance/constants','split','../../helpers/helper','includes','__platform__','platform','7680414UgHFJN','../../helpers/performance/performance-tester','testsUnknown','testsUndefined','9ZdzKuv','../../helpers/test-observability/requestQueueHandler','_bsConfig','330244PEhaJe','2216808VeaizJ','23|15|7|10|21|13|12|8|17|22|16|6|14|4|9|5|3|0|1|19|11|18|2|20','97084YcEOEI','testsFailed','../utils/clientTroubleshootingService','testsPassed','testsAmbiguous','60cmRKMp'];a27_0x5500=function(){return _0x46ae1e;};return a27_0x5500();}const path=require(a27_0x2965(0x117)),{requireModule,modifyCommand,getPlatformName,cleanupDrivers,isBrowserstackInfra}=require(a27_0x2965(0x127)),constants=require(a27_0x2965(0x13b)),{isAccessibilityAutomationSession}=require(a27_0x2965(0x11e)),RequestQueueHandler=require(a27_0x2965(0x130)),{isTestObservabilitySession}=require(a27_0x2965(0x115)),helper=require(a27_0x2965(0x127)),PerformanceTester=require(a27_0x2965(0x12c)),PerformanceEvents=require(a27_0x2965(0x125))[a27_0x2965(0x10d)],{commandRepository}=require('../../helpers/ai-sdk/autoHealHelper'),BrowserstackCLI=require(a27_0x2965(0x10e)),ClientTroubleShootingService=require(a27_0x2965(0x137));function a27_0x185c(_0x3fe46d,_0x26a875){const _0x550087=a27_0x5500();return a27_0x185c=function(_0x185c1f,_0x3bebee){_0x185c1f=_0x185c1f-0x10c;let _0x3d631f=_0x550087[_0x185c1f];return _0x3d631f;},a27_0x185c(_0x3fe46d,_0x26a875);}class Launcher{constructor(_0x1053a0,_0x5db42e,_0x153f7a,_0x376a16=[]){const _0x4cae32=a27_0x2965,_0x5828e0={'videC':_0x4cae32(0x134),'hEjom':function(_0x492033){return _0x492033();}},_0x7a7b4c=_0x5828e0[_0x4cae32(0x118)][_0x4cae32(0x126)]('|');let _0x287642=0x0;while(!![]){switch(_0x7a7b4c[_0x287642++]){case'0':global[_0x4cae32(0x122)]=0x0;continue;case'1':global['testSuitesFailed']=0x0;continue;case'2':global[_0x4cae32(0x10f)]={};continue;case'3':global[_0x4cae32(0x114)]=0x0;continue;case'4':global['totalTests']=0x0;continue;case'5':global[_0x4cae32(0x136)]=0x0;continue;case'6':global[_0x4cae32(0x11a)]=this['_configuration']['platformCaps']||{};continue;case'7':this[_0x4cae32(0x116)]['framework']=_0x1053a0;continue;case'8':this[_0x4cae32(0x111)]=_0x376a16;continue;case'9':global[_0x4cae32(0x138)]=0x0;continue;case'10':this['_mochaOpts']=_0x5db42e[_0x4cae32(0x121)];continue;case'11':global[_0x4cae32(0x12d)]=0x0;continue;case'12':global[_0x4cae32(0x129)]=this[_0x4cae32(0x116)][_0x4cae32(0x12a)];continue;case'13':this['_capability']=this[_0x4cae32(0x116)][_0x4cae32(0x11f)];continue;case'14':global['testSuites']=0x0;continue;case'15':this[_0x4cae32(0x116)]=_0x5db42e[_0x4cae32(0x120)]||{};continue;case'16':this['_accessibilityAutomation']=_0x5828e0['hEjom'](isAccessibilityAutomationSession);continue;case'17':this[_0x4cae32(0x131)]=_0x153f7a;continue;case'18':global[_0x4cae32(0x139)]=0x0;continue;case'19':global[_0x4cae32(0x12e)]=0x0;continue;case'20':!constants[_0x4cae32(0x119)][_0x4cae32(0x128)](_0x1053a0)&&(commandRepository['setConfig'](_0x153f7a),commandRepository['setFramework'](_0x1053a0));continue;case'21':this['_formatter']=_0x5db42e[_0x4cae32(0x10c)];continue;case'22':this[_0x4cae32(0x11d)]=_0x5828e0[_0x4cae32(0x112)](isTestObservabilitySession);continue;case'23':this[_0x4cae32(0x110)]=_0x1053a0;continue;}break;}}[a27_0x2965(0x124)](_0x187688,_0x37ed23,_0x4b995a){const _0x1cd980=a27_0x2965,_0x2bf648=_0x187688[_0x1cd980(0x11b)];_0x187688.resolvePaths=async function(){const pathResults=await _0x2bf648.apply(this,arguments);if(!pathResults.requirePaths){pathResults.requirePaths=[];}pathResults.requirePaths=[path.join(__dirname,'../cucumber-js/test.setup.js')].concat(pathResults.requirePaths,path.join(__dirname,_0x4b995a));return pathResults;};const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;_0x37ed23.push('--format'),_0x37ed23.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
|
+
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;
|
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_0x303535=a28_0x3826;(function(_0x317552,_0x5a986a){const _0x5d744f=a28_0x3826,_0x640238=_0x317552();while(!![]){try{const _0x5dc208=-parseInt(_0x5d744f(0x1f1))/0x1+-parseInt(_0x5d744f(0x1d4))/0x2*(parseInt(_0x5d744f(0x20c))/0x3)+parseInt(_0x5d744f(0x1df))/0x4+parseInt(_0x5d744f(0x1e3))/0x5+-parseInt(_0x5d744f(0x1de))/0x6*(-parseInt(_0x5d744f(0x20a))/0x7)+parseInt(_0x5d744f(0x1cf))/0x8*(-parseInt(_0x5d744f(0x1dc))/0x9)+parseInt(_0x5d744f(0x1fe))/0xa;if(_0x5dc208===_0x5a986a)break;else _0x640238['push'](_0x640238['shift']());}catch(_0x1aae51){_0x640238['push'](_0x640238['shift']());}}}(a28_0x5994,0x22844));const {spawn}=require(a28_0x303535(0x1e8)),path=require(a28_0x303535(0x1e4)),helper=require('../../helpers/helper'),CLIUtils=require(a28_0x303535(0x1e1)),{getLoadConfigPath,sleep}=require(a28_0x303535(0x20f)),logger=require(a28_0x303535(0x1f0))[a28_0x303535(0x1f2)];function a28_0x3826(_0x2bcb10,_0x5ac76f){const _0x5994b6=a28_0x5994();return a28_0x3826=function(_0x38264c,_0x1d5339){_0x38264c=_0x38264c-0x1c6;let _0x496d48=_0x5994b6[_0x38264c];return _0x496d48;},a28_0x3826(_0x2bcb10,_0x5ac76f);}function a28_0x5994(){const _0x26e273=['Authentication\x20incomplete.\x20Please\x20add\x20your\x20userName\x20and\x20accessKey\x20to\x20either\x20the\x20browserstack.yml\x20file\x20or\x20as\x20environment\x20variables,\x20then\x20try\x20running\x20the\x20command\x20again.','bKpBF','Spawning:\x20','killed','env','Error\x20Details:\x20','load','sQzaX','Failed\x20to\x20determine\x20CLI\x20directory','3296eIlqIl','Loading\x20configuration\x20using\x20environment\x20variables\x20if\x20available.','kill','KMlwP','accessKey','150xgNrEh','CLI\x20binary\x20found,\x20Checking\x20for\x20CLI\x20updates','exports','join','Configuration\x20path:\x20','argv','readConfig','Failed\x20initiating\x20load\x20test:\x20','5265UsrbYi','Waiting\x20for\x20child\x20process\x20to\x20exit...','36vINGDG','747660KjnpvT','CLI\x20binary\x20not\x20found,\x20downloading\x20latest\x20version','../v2/cliUtils','KyHbr','1390180pjyFXa','path','npaBP','VcPBV','Failed\x20to\x20download\x20or\x20locate\x20CLI\x20binary','child_process','slice','uyIMS','\x20load\x20','error','stringify','Error\x20loading\x20configuration:\x20','exit','../../helpers/logger','71926CTEJQa','winstonLogger','ORJFu','JtuIp','VLfdR','getExistingCliPath','BROWSERSTACK_ACCESSKEY','\x20exited\x20with\x20code\x20','SIGQUIT','OfHCA','SIGINT','stack','BROWSERSTACK_ACCESS_KEY','567640muBMtx','debug','zvhoP','NFwxd','tazSR','userName','Received\x20','Executing\x20load\x20test\x20with\x20arguments:\x20','wmLHt','checkAndUpdateCli','message','IGheL','205142UDYktU','dvsEK','9729iZdpPp','getCliDir','inherit','./loadUtils','SIGHUP'];a28_0x5994=function(){return _0x26e273;};return a28_0x5994();}async function executeLoadTest(_0x4023b0){const _0x35dbcc=a28_0x303535,_0xf98893={'uyIMS':function(_0x5d3c79,_0x53df67){return _0x5d3c79(_0x53df67);},'KyHbr':'close','VcPBV':_0x35dbcc(0x1dd),'wmLHt':_0x35dbcc(0x1d0),'KMlwP':function(_0x50cf40){return _0x50cf40();},'NFwxd':_0x35dbcc(0x1c6),'npaBP':_0x35dbcc(0x1ce),'apJqm':_0x35dbcc(0x1e0),'ORJFu':_0x35dbcc(0x1d5),'sQzaX':function(_0x27aeee){return _0x27aeee();},'MifCS':_0x35dbcc(0x1e7),'RDMhV':function(_0x16e5c7){return _0x16e5c7();},'OfHCA':function(_0x1e039b,_0x376769,_0x462792,_0x468dbd){return _0x1e039b(_0x376769,_0x462792,_0x468dbd);},'VLfdR':_0x35dbcc(0x1cc),'GRAZO':_0x35dbcc(0x20e),'IGheL':_0x35dbcc(0x1fb),'tazSR':'SIGTERM','zvhoP':_0x35dbcc(0x1f9),'dvsEK':_0x35dbcc(0x210),'JtuIp':function(_0x530aa3){return _0x530aa3();}};try{const _0x54559f=process[_0x35dbcc(0x1d9)][_0x35dbcc(0x1e9)](0x2),_0x48404a=_0x54559f[_0x35dbcc(0x1e9)](0x1);logger[_0x35dbcc(0x1ff)](_0x35dbcc(0x205)+_0x48404a);let _0x3ebaf9={};try{logger['debug'](_0xf98893[_0x35dbcc(0x206)]);const _0x3072b7={};_0x3072b7[_0x35dbcc(0x203)]=process['env']['BROWSERSTACK_USERNAME']||process[_0x35dbcc(0x1ca)]['BROWSERSTACK_USER'],_0x3072b7['accessKey']=process[_0x35dbcc(0x1ca)][_0x35dbcc(0x1fd)]||process[_0x35dbcc(0x1ca)][_0x35dbcc(0x1f7)],_0x3ebaf9=_0x3072b7;if(!_0x3ebaf9['userName']||!_0x3ebaf9[_0x35dbcc(0x1d3)]){const _0x4e0a21=_0xf98893[_0x35dbcc(0x1ea)](getLoadConfigPath,_0x4023b0[_0x35dbcc(0x1d9)]);logger[_0x35dbcc(0x1ff)](_0x35dbcc(0x1d8)+_0x4e0a21),_0x4e0a21&&(_0x3ebaf9=helper[_0x35dbcc(0x1da)](_0x4e0a21));}}catch(_0x2f0804){logger[_0x35dbcc(0x1ec)](_0x35dbcc(0x1ee)+_0x2f0804[_0x35dbcc(0x208)]),logger[_0x35dbcc(0x1ff)]('Error\x20details:\x20'+(_0x2f0804[_0x35dbcc(0x1fc)]||JSON[_0x35dbcc(0x1ed)](_0x2f0804))),await _0xf98893[_0x35dbcc(0x1d2)](sleep),process[_0x35dbcc(0x1ef)](0x1);}(!_0x3ebaf9[_0x35dbcc(0x203)]||!_0x3ebaf9[_0x35dbcc(0x1d3)])&&(logger[_0x35dbcc(0x1ec)](_0xf98893[_0x35dbcc(0x201)]),await _0xf98893['KMlwP'](sleep),process[_0x35dbcc(0x1ef)](0x1));const _0x1c14da=CLIUtils[_0x35dbcc(0x20d)]();!_0x1c14da&&(logger[_0x35dbcc(0x1ec)](_0xf98893[_0x35dbcc(0x1e5)]),await _0xf98893['KMlwP'](sleep),process[_0x35dbcc(0x1ef)](0x1));let _0x1ce3b2=CLIUtils[_0x35dbcc(0x1f6)](_0x1c14da);try{!_0x1ce3b2?(logger[_0x35dbcc(0x1ff)](_0xf98893['apJqm']),_0x1ce3b2=await CLIUtils[_0x35dbcc(0x207)]('',_0x1c14da,_0x3ebaf9)):(logger[_0x35dbcc(0x1ff)](_0xf98893[_0x35dbcc(0x1f3)]),_0x1ce3b2=await CLIUtils[_0x35dbcc(0x207)](_0x1ce3b2,_0x1c14da,_0x3ebaf9));}catch(_0x28a87a){logger['error'](_0xf98893[_0x35dbcc(0x201)]),logger[_0x35dbcc(0x1ff)](_0x35dbcc(0x1cb)+(_0x28a87a[_0x35dbcc(0x1fc)]||JSON[_0x35dbcc(0x1ed)](_0x28a87a))),await _0xf98893[_0x35dbcc(0x1cd)](sleep),process[_0x35dbcc(0x1ef)](0x1);}!_0x1ce3b2&&(logger[_0x35dbcc(0x1ec)](_0xf98893[_0x35dbcc(0x201)]),logger['debug'](_0xf98893['MifCS']),await _0xf98893['RDMhV'](sleep),process[_0x35dbcc(0x1ef)](0x1));logger['debug'](_0x35dbcc(0x1c8)+_0x1ce3b2+_0x35dbcc(0x1eb)+_0x48404a[_0x35dbcc(0x1d7)]('\x20'));const _0x311c3d=_0xf98893[_0x35dbcc(0x1fa)](spawn,_0x1ce3b2,[_0xf98893[_0x35dbcc(0x1f5)],..._0x48404a],{'stdio':_0xf98893['GRAZO']});let _0x3a62ff=![];const _0x10301e=new Promise(_0x586a81=>{const _0x3ae17e=_0x35dbcc,_0x4851b7={'bKpBF':function(_0x4d1109,_0x3afe41){const _0x31de14=a28_0x3826;return _0xf98893[_0x31de14(0x1ea)](_0x4d1109,_0x3afe41);}};_0x311c3d['on'](_0xf98893[_0x3ae17e(0x1e2)],_0x28867c=>{const _0x2d2a91=_0x3ae17e;logger['debug'](_0x1ce3b2+_0x2d2a91(0x1f8)+_0x28867c),_0x4851b7[_0x2d2a91(0x1c7)](_0x586a81,_0x28867c);});});[_0xf98893[_0x35dbcc(0x209)],_0xf98893[_0x35dbcc(0x202)],_0xf98893[_0x35dbcc(0x200)],_0xf98893[_0x35dbcc(0x20b)]]['forEach'](_0x10980d=>{process['on'](_0x10980d,()=>{const _0x4d8f1c=a28_0x3826;if(_0x3a62ff)return;_0x3a62ff=!![],logger[_0x4d8f1c(0x1ff)](_0x4d8f1c(0x204)+_0x10980d+',\x20forwarding\x20to\x20child\x20process...'),_0x311c3d&&!_0x311c3d[_0x4d8f1c(0x1c9)]&&(_0x311c3d[_0x4d8f1c(0x1d1)](_0x10980d),logger[_0x4d8f1c(0x1ff)](_0xf98893[_0x4d8f1c(0x1e6)]));});});const _0x440453=await _0x10301e;await _0xf98893[_0x35dbcc(0x1d2)](sleep),process[_0x35dbcc(0x1ef)](_0x440453);}catch(_0x2e0ef9){logger[_0x35dbcc(0x1ec)](_0x35dbcc(0x1db)+_0x2e0ef9['message']),logger['debug']('Error\x20details:\x20'+(_0x2e0ef9[_0x35dbcc(0x1fc)]||JSON[_0x35dbcc(0x1ed)](_0x2e0ef9))),await _0xf98893[_0x35dbcc(0x1f4)](sleep),process[_0x35dbcc(0x1ef)](0x1);}}module[a28_0x303535(0x1d6)]=executeLoadTest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a29_0x485b(){const _0x560e8d=['../../helpers/logger','cwd','1124856ysiygT','stringify','54606LOQEyM','browserstack-load.yml','60935SqZmhG','.yaml','.yml','6ByfWkf','etIgY','164REfLpW','Checking\x20for\x20config\x20in\x20default\x20config\x20files...','existsSync','vgGyu','Failed\x20to\x20load\x20browserstack\x20config:\x20','93KYpWoE','info','error','endsWith','824973fQkyLl','HCvTX','getLoadConfigPath','fMmSv','message','OZBpO','4127460YmSXth','Config\x20file\x20specified:\x20','EqgoL','VOVXJ','config-file','resolve','JtHat','run','debug','2773323nvpvMb','join','Checking\x20for\x20config\x20file\x20with\x20arguments:\x20','\x20and\x20Resolved\x20path:\x20','jtMnm','fpRcA','exports','9pidRSU','VDwxb','13854962ClwzlG','Checking\x20for:\x20','winstonLogger'];a29_0x485b=function(){return _0x560e8d;};return a29_0x485b();}const a29_0xc65776=a29_0x4213;(function(_0x456b1f,_0x57197e){const _0x129822=a29_0x4213,_0x2eb935=_0x456b1f();while(!![]){try{const _0x3d197a=parseInt(_0x129822(0xed))/0x1+-parseInt(_0x129822(0x10c))/0x2*(-parseInt(_0x129822(0x118))/0x3)+-parseInt(_0x129822(0x113))/0x4*(parseInt(_0x129822(0x10e))/0x5)+-parseInt(_0x129822(0x111))/0x6*(-parseInt(_0x129822(0xfc))/0x7)+-parseInt(_0x129822(0x10a))/0x8*(parseInt(_0x129822(0x103))/0x9)+parseInt(_0x129822(0xf3))/0xa+-parseInt(_0x129822(0x105))/0xb;if(_0x3d197a===_0x57197e)break;else _0x2eb935['push'](_0x2eb935['shift']());}catch(_0x2e4e8d){_0x2eb935['push'](_0x2eb935['shift']());}}}(a29_0x485b,0x8db85));const fs=require('fs'),path=require('path'),logger=require(a29_0xc65776(0x108))[a29_0xc65776(0x107)];function a29_0x4213(_0x47ccf0,_0x317656){const _0x485be4=a29_0x485b();return a29_0x4213=function(_0x4213ce,_0x119874){_0x4213ce=_0x4213ce-0xed;let _0x593275=_0x485be4[_0x4213ce];return _0x593275;},a29_0x4213(_0x47ccf0,_0x317656);}function getLoadConfigPath(_0x4d5db0){const _0x40e35d=a29_0xc65776,_0x57ee65={};_0x57ee65[_0x40e35d(0x116)]=function(_0x163a66,_0x52fa07){return _0x163a66===_0x52fa07;},_0x57ee65[_0x40e35d(0xee)]='load',_0x57ee65[_0x40e35d(0xf2)]=function(_0x1b6461,_0x4c404a){return _0x1b6461===_0x4c404a;},_0x57ee65[_0x40e35d(0x112)]=_0x40e35d(0xfa),_0x57ee65['fMmSv']=_0x40e35d(0xf7),_0x57ee65['VDwxb']=_0x40e35d(0x110),_0x57ee65['fpRcA']=_0x40e35d(0x10f),_0x57ee65[_0x40e35d(0x100)]=_0x40e35d(0x10d),_0x57ee65[_0x40e35d(0xf9)]='browserstack-load.yaml',_0x57ee65['xiFAO']='browserstack.yml',_0x57ee65['EqgoL']='browserstack.yaml',_0x57ee65['VOVXJ']=_0x40e35d(0x114);const _0x4f846b=_0x57ee65;logger[_0x40e35d(0xfb)](_0x40e35d(0xfe)+JSON[_0x40e35d(0x10b)](_0x4d5db0));try{const _0xa270c8=_0x4d5db0['_']||[],_0x5e2e05=_0x4f846b[_0x40e35d(0x116)](_0x4d5db0['_'][0x0],_0x4f846b[_0x40e35d(0xee)])&&_0x4f846b[_0x40e35d(0xf2)](_0x4d5db0['subcommand'],_0x4f846b[_0x40e35d(0x112)]);if(_0x5e2e05){if(_0x4d5db0[_0x4f846b[_0x40e35d(0xf0)]]||_0x4d5db0['cf']){const _0x440394=_0x4d5db0[_0x4f846b['fMmSv']]||_0x4d5db0['cf'],_0x3e3e97=path[_0x40e35d(0xf8)](_0x440394);logger[_0x40e35d(0xfb)](_0x40e35d(0xf4)+_0x440394+_0x40e35d(0xff)+_0x3e3e97);if(_0x3e3e97[_0x40e35d(0x11b)](_0x4f846b[_0x40e35d(0x104)])||_0x3e3e97[_0x40e35d(0x11b)](_0x4f846b[_0x40e35d(0x101)]))return logger[_0x40e35d(0x119)]('Using\x20specified\x20config\x20file:\x20'+_0x3e3e97),_0x3e3e97;}}const _0x2a944c=[_0x4f846b[_0x40e35d(0x100)],_0x4f846b[_0x40e35d(0xf9)],_0x4f846b['xiFAO'],_0x4f846b[_0x40e35d(0xf5)]];logger[_0x40e35d(0xfb)](_0x4f846b[_0x40e35d(0xf6)]);for(const _0x2640fb of _0x2a944c){const _0x13c59f=path[_0x40e35d(0xfd)](process[_0x40e35d(0x109)](),_0x2640fb);logger[_0x40e35d(0xfb)](_0x40e35d(0x106)+_0x13c59f);if(fs[_0x40e35d(0x115)](_0x13c59f))return logger[_0x40e35d(0xfb)]('Found\x20config\x20file:\x20'+_0x13c59f),_0x13c59f;}}catch(_0x1a2436){logger[_0x40e35d(0x11a)](_0x40e35d(0x117)+_0x1a2436[_0x40e35d(0xf1)]);}}function sleep(){return new Promise(_0x47bd8c=>setTimeout(_0x47bd8c,0x64));}const a29_0x19eefc={};a29_0x19eefc[a29_0xc65776(0xef)]=getLoadConfigPath,a29_0x19eefc['sleep']=sleep,module[a29_0xc65776(0x102)]=a29_0x19eefc;
|
|
@@ -1 +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 +1 @@
|
|
|
1
|
-
'use strict';function a31_0x5f57(_0x56a428,_0x26eefa){const _0x48850c=a31_0x4885();return a31_0x5f57=function(_0x5f5703,_0x8b03c2){_0x5f5703=_0x5f5703-0xd9;let _0x73d21f=_0x48850c[_0x5f5703];return _0x73d21f;},a31_0x5f57(_0x56a428,_0x26eefa);}const a31_0x5dd3aa=a31_0x5f57;(function(_0x5c4e41,_0x423494){const _0x4424a5=a31_0x5f57,_0x59768e=_0x5c4e41();while(!![]){try{const _0x265192=-parseInt(_0x4424a5(0x17f))/0x1*(-parseInt(_0x4424a5(0x1d3))/0x2)+-parseInt(_0x4424a5(0xfe))/0x3*(parseInt(_0x4424a5(0x19c))/0x4)+-parseInt(_0x4424a5(0x1e2))/0x5*(-parseInt(_0x4424a5(0x1ef))/0x6)+parseInt(_0x4424a5(0x16a))/0x7+parseInt(_0x4424a5(0x169))/0x8*(parseInt(_0x4424a5(0x165))/0x9)+-parseInt(_0x4424a5(0xe9))/0xa+parseInt(_0x4424a5(0x200))/0xb;if(_0x265192===_0x423494)break;else _0x59768e['push'](_0x59768e['shift']());}catch(_0x208a83){_0x59768e['push'](_0x59768e['shift']());}}}(a31_0x4885,0x6f35b));function a31_0x4885(){const _0x5c31be=['forEach','current_test','zoVyL','test_run_uuid','write','\x20\x20<dt>','title','yPQeh','_upstreamConfig','once','Jysyf','VjWfl','FbxNe','GoHCO','jliZl','Xvfti','WBANT','hook_run','fMPMb','docHtml','%s\x20','IenHw','length','FyoaD','lTBTi','mocha/lib/utils.js','parent','yqjei','ZUfcg','SowwC','<section\x20class=\x22suite\x22>','VKwTR','isPending','removeAllListeners','registerListeners','NtRff','%s\x20-\x20%s','currentTest','increaseIndent','mEoNP','sendTestRunEvent','fullTitle','trim','ERxNK','hNERh','redirectUrl','finalResults','VWmOA','cwd','failure_backtrace','ggsHv','analyticsResult','\x20\x20<dt\x20class=\x22error\x22>','BEFORE_ALL','5346AbjpZN','javascript','_indents','Exception\x20in\x20uploading\x20log\x20data\x20to\x20','clean','wSmgc','originalTitle','GpMXO','LogCreated','bDOgm','qRotA','includes','hookAnalyticsId','test','consoleLog','10ywdtEE','inspect','uuid','ntTWv','yaCdr','sWuHt','<dl>','suite','setCurrentTestData','../../../helpers/testhub/constants','HookFinished','cZeNm','slow','946998SZNPOu','TEST_REPORTING_ANALYTICS','MOCHA','\x20\x20%d)\x20%s','setGlobal','VFkfT','statSync','Mocha','after\x20all','multiple','type','xunit','speed','wReCQ','markedStatus','appendTestPlatform','../../../helpers/testhub/utils','4590487oFyohO','_paths','Bkgip','TestRunSkipped','../../../helpers/test-observability/utils','utPoa','currentRetry','push','VtLpy','Reporter','mocha/lib/runnable.js','escape','Rtqfz','current_hook','exports','JwUcb','ElCSS','dot','appendTestItemLog','\x20\x20<dd><pre><code>','Failed\x20to\x20load\x20reporter\x20','../../../helpers/test-observability/constants','fail','after\x20each','_testEnv','logs','URugH','2235440GZQVMm','split','before\x20each','IhyBk','BQrLJ','shutdown','XflQz','decreaseIndent','</dt>','util','../../utils/constants','\x20\x20<dd\x20class=\x22error\x22><pre><code>','DuiZg','TestRunStarted','checkmark','jxvGJ','passed','bind','RabSG','ljTDX','err','364389mcmxjY','retryOf','kjAVY','jxjOZ','WvRds','name','constants','RCaBA','apply','appendTesthubParams','<h1>','RUNNING','light','reporterOptions','_testResults','HookStarted','EVENT','tFfJl','hooks','YrizD','uploadEventData','WMcqM','event_type','\x20(%dms)','pass','COMPLETED','AFTER_ALL','sfurM','GSJLI','before\x20all','docAppend','TestRunFinished','toISOString','titlePath','comma','OJpYQ','assign','ymVXt','QLTXv','_currentRetry','NIhBZ','state','</section>','Doiug','scope','results','nDjIM','RzmKa','bsConfig','Wzgry','runner','PKQoO','hook_type','indent','UnhandledError','symbols','njQFT','fast','ySFXV','DZjum','http_response','prototype','ctx','rzFRA','toString','failCount','YgQSJ','CuRmu','RrTYL','call','</dd>','root','failure_reason_expanded','rngzh','CgNil','stdout','file','responseCode','result','CBTSessionCreated','duration','tMIxm','winstonLogger','xOYmj','findGitConfig','atgjU','__platform__','FFiHx','test_run','doc','fAnne','mOuYR','_buildCreated','spec','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','hook_run_uuid','location_prefix','\x20with\x20error\x20:\x20','tLbHe','body','shouldProcessEventForTesthub','slice','iJHDq','146061UoggON','bright\x20yellow','expanded','bang','200mNBfdE','434910GSMLcf','mocha/lib/reporters/','reporterOption','getRootParentFile','Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20','SjEjm','join','MaHwQ','testStarted','TjsQW','__indents','JzdLF','gzJfP','get','HookRunFinished','testAnalyticsId','bs:addLog:','suites','skipped','\x20\x20<dd\x20class=\x22error\x22>','yejlJ','32WJlmPY','prefixTestPath','../../../helpers/helper','started_at','getTime','ptOga','failure','../../../helpers/globals','color','DTxUR','sep','UBkuP','../../../helpers/metadata','csTiI','match','../../../helpers/test-observability/sessionHandler','pKWnP','suiteCount','mocha','dirname','tbXkf','Runner','JEVFk','File\x20path\x20could\x20not\x20be\x20found','iUwQV','getInstance','bs:addPlatformDetails:','failed','AFTER_EACH','20qWXkVr'];a31_0x4885=function(){return _0x5c31be;};return a31_0x4885();}const util=require(a31_0x5dd3aa(0xf2)),fs=require('fs'),path=require('path'),{requireModule,getCentralUser}=require('../../../helpers/helper'),Base=requireModule('mocha/lib/reporters/base.js',a31_0x5dd3aa(0x191)),utils=requireModule(a31_0x5dd3aa(0x1b6),a31_0x5dd3aa(0x191)),color=Base[a31_0x5dd3aa(0x187)],Mocha=requireModule(a31_0x5dd3aa(0x191)),Runnable=requireModule(a31_0x5dd3aa(0x20a),a31_0x5dd3aa(0x191)),{v4:uuidv4}=require('uuid'),bsSetupHelper=require(a31_0x5dd3aa(0x181)),testhubUtils=require(a31_0x5dd3aa(0x1ff)),centralScannerUtils=require('../../../helpers/central-scanner/helpers'),testHubConstants=require(a31_0x5dd3aa(0x1eb)),{FRAMEWORKS}=require(a31_0x5dd3aa(0xe3)),globals=require(a31_0x5dd3aa(0x186)),logger=require('../../../helpers/logger')[a31_0x5dd3aa(0x150)],TestMetadata=require(a31_0x5dd3aa(0x18b)),a31_0x3c458a={};a31_0x3c458a[a31_0x5dd3aa(0x11b)]=a31_0x5dd3aa(0x1d2),a31_0x3c458a[a31_0x5dd3aa(0x1f7)]=a31_0x5dd3aa(0x118),a31_0x3c458a[a31_0x5dd3aa(0xeb)]='BEFORE_EACH',a31_0x3c458a[a31_0x5dd3aa(0xe5)]=a31_0x5dd3aa(0x19b);const HOOK_TYPES_MAP=a31_0x3c458a,{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_0x5dd3aa(0x194)][a31_0x5dd3aa(0x104)],{STATE_PASSED,STATE_PENDING,STATE_FAILED}=Runnable['constants'],{getTestEnv,getHookDetails,getHooksForTest,mapTestHooks,getHookSkippedTests}=require('../test-observability/mochaUtils'),{consoleHolder}=require('../../../helpers/test-observability/constants'),SessionHandler=require(a31_0x5dd3aa(0x18e)),{isTestObservabilitySession,PathHelper,debug,failureData}=require(a31_0x5dd3aa(0x204)),RequestQueueHandler=require('../../../helpers/test-observability/requestQueueHandler'),constants=require(a31_0x5dd3aa(0xf3)),requestQueueHandler=RequestQueueHandler[a31_0x5dd3aa(0x198)]();class MyReporter{constructor(_0x284040,_0x273fc3){const _0x590837=a31_0x5dd3aa,_0x593d48={'DZjum':function(_0x1d0222,_0x35d071){return _0x1d0222===_0x35d071;},'ggsHv':_0x590837(0x15b),'yPQeh':function(_0x21d5f4,_0x438d02){return _0x21d5f4+_0x438d02;},'rngzh':function(_0x247406,_0x149cb6,_0xea3042){return _0x247406(_0x149cb6,_0xea3042);},'eYIQh':'green','lTBTi':_0x590837(0x1b1),'cZeNm':function(_0x4d1e81,_0x89f2cb,_0x53939c){return _0x4d1e81(_0x89f2cb,_0x53939c);},'WBANT':_0x590837(0x10a),'DuiZg':_0x590837(0x1c1),'VtLpy':_0x590837(0x109),'tbXkf':function(_0x2da3a2,_0x130f23){return _0x2da3a2===_0x130f23;},'ERxNK':_0x590837(0x157),'VjWfl':function(_0x48149e){return _0x48149e();},'kjAVY':'HookRunStarted','DTxUR':function(_0x4c59fc,_0xdb807f){return _0x4c59fc===_0xdb807f;},'ySFXV':_0x590837(0x178),'FyoaD':_0x590837(0xf9),'MaHwQ':function(_0x10768e,_0x625ba7){return _0x10768e===_0x625ba7;},'CuRmu':_0x590837(0x137),'bDOgm':function(_0x3158cf,_0xaf8e56){return _0x3158cf+_0xaf8e56;},'IhyBk':function(_0x303080,_0x29039f,_0x5763d2){return _0x303080(_0x29039f,_0x5763d2);},'XAMlB':_0x590837(0xf7),'utPoa':function(_0x3b5f43,_0xbb99fd,_0x345cff){return _0x3b5f43(_0xbb99fd,_0x345cff);},'JEVFk':_0x590837(0x116),'RCaBA':'\x20%s','YrizD':function(_0x53d8a2,_0x36db97){return _0x53d8a2+_0x36db97;},'jliZl':function(_0x8c2cc1,_0x5083a6,_0x2dc7ff){return _0x8c2cc1(_0x5083a6,_0x2dc7ff);},'VKwTR':_0x590837(0x115),'SjEjm':function(_0x2ebfc6,_0x9e4945){return _0x2ebfc6+_0x9e4945;},'wReCQ':_0x590837(0xe4),'FFiHx':_0x590837(0x1f2),'GpMXO':function(_0x2a12a4,_0x14e54b){return _0x2a12a4+_0x14e54b;},'WywLD':function(_0x10af70,_0x2d5b36,_0x10fd14){return _0x10af70(_0x2d5b36,_0x10fd14);},'iUwQV':_0x590837(0x166),'OJpYQ':function(_0x26fba4,_0x472c6e,_0x623dc2){return _0x26fba4(_0x472c6e,_0x623dc2);},'AcmAl':_0x590837(0x117),'yejlJ':function(_0x57b762,_0x251596){return _0x57b762===_0x251596;},'JwUcb':'dot','hNERh':function(_0x279249,_0x18167a){return _0x279249===_0x18167a;},'MvMZS':_0x590837(0x1ee),'oFvnw':'3|4|1|0|2','GSJLI':function(_0x20649c,_0x19ade8){return _0x20649c===_0x19ade8;},'Qbhib':'pending','gzJfP':function(_0x1d4bb7,_0x81c4a9){return _0x1d4bb7===_0x81c4a9;},'XflQz':_0x590837(0x203),'aOOKT':function(_0x4628c8,_0x555d03){return _0x4628c8===_0x555d03;},'ntTWv':function(_0x330ea8,_0x27f480){return _0x330ea8===_0x27f480;},'FbxNe':function(_0x2be2d8,_0x30193c){return _0x2be2d8(_0x30193c);},'PKQoO':function(_0x35981e){return _0x35981e();},'VWmOA':function(_0x568fab,_0x47d984){return _0x568fab===_0x47d984;},'xOYmj':_0x590837(0x1fa),'BQrLJ':function(_0x51e43d,_0x40349a,_0x2657ed){return _0x51e43d(_0x40349a,_0x2657ed);},'sfurM':_0x590837(0x191),'iJHDq':function(_0x57ffcd,_0x595b81){return _0x57ffcd(_0x595b81);},'YgQSJ':function(_0x2c1d4e,_0x4fcc18){return _0x2c1d4e===_0x4fcc18;},'RrTYL':function(_0x347dc0,_0x1ca3d7){return _0x347dc0(_0x1ca3d7);},'URugH':function(_0x1bfdd8,_0x551313){return _0x1bfdd8!==_0x551313;}};this[_0x590837(0x1f9)]=_0x273fc3[_0x590837(0x16c)][_0x590837(0x1f9)],this['testObservability']=_0x593d48[_0x590837(0x1a8)](isTestObservabilitySession),Base[_0x590837(0x143)](this,_0x284040,_0x273fc3),this[_0x590837(0x1d5)]=0x0,this['failCount']=0x0,this[_0x590837(0x12b)]=[],this[_0x590837(0x1cb)]=[],this[_0x590837(0x190)]=0x0,this[_0x590837(0x15a)]=![],this[_0x590837(0x10c)]=[],this[_0x590837(0xe6)]=_0x593d48[_0x590837(0x131)](getTestEnv),this[_0x590837(0x201)]=new PathHelper({'cwd':process[_0x590837(0x1cd)]()},this[_0x590837(0xe6)][_0x590837(0x15e)]),this[_0x590837(0x1a5)]=_0x273fc3[_0x590837(0x16c)][_0x590837(0x12e)],this[_0x590837(0x1bf)]();_0x593d48[_0x590837(0x1cc)](this[_0x590837(0x1f9)],_0x593d48[_0x590837(0x1c8)])&&(this[_0x590837(0x1b0)]='',this['__indents']=0x2);_0x284040[_0x590837(0x1a6)](EVENT_RUN_BEGIN,async()=>{const _0x10e484=_0x590837;_0x593d48[_0x10e484(0x139)](this[_0x10e484(0x1f9)],_0x593d48[_0x10e484(0x1cf)])&&Base[_0x10e484(0x1e1)]();})['on'](EVENT_SUITE_BEGIN,_0x3ee6e9=>{const _0x1b2477=_0x590837;if(_0x3ee6e9[_0x1b2477(0x145)])return;if(_0x593d48['DZjum'](this[_0x1b2477(0x1f9)],_0x593d48[_0x1b2477(0x1cf)]))this[_0x1b2477(0x1c3)](),Base[_0x1b2477(0x1e1)](_0x593d48[_0x1b2477(0x1a4)](_0x593d48['yPQeh'](this[_0x1b2477(0x133)](),_0x593d48[_0x1b2477(0x147)](color,_0x593d48['eYIQh'],_0x593d48[_0x1b2477(0x1b5)])),_0x593d48[_0x1b2477(0x1ed)](color,_0x593d48[_0x1b2477(0x1ad)],_0x593d48[_0x1b2477(0xf5)])),_0x593d48[_0x1b2477(0x208)],_0x3ee6e9[_0x1b2477(0x1a3)],global['__platform__']);else _0x593d48[_0x1b2477(0x193)](this[_0x1b2477(0x1f9)],_0x593d48[_0x1b2477(0x1c8)])&&(this['docAppend'](this['indent']()+_0x1b2477(0x1bb)),++this[_0x1b2477(0x174)],this[_0x1b2477(0x11c)](this['indent']()+_0x1b2477(0x108)+utils[_0x1b2477(0xd9)](_0x3ee6e9[_0x1b2477(0x1a3)]+'\x20-\x20'+global[_0x1b2477(0x154)])+'</h1>'),this[_0x1b2477(0x11c)](this['indent']()+_0x1b2477(0x1e8)));})['on'](EVENT_HOOK_BEGIN,async _0x55d8d9=>{const _0x1c42c6=_0x590837;if(_0x593d48[_0x1c42c6(0x139)](testhubUtils[_0x1c42c6(0x162)](testHubConstants[_0x1c42c6(0x10e)][_0x1c42c6(0x10d)]),!![])){if(!_0x55d8d9[_0x1c42c6(0x1df)])_0x55d8d9[_0x1c42c6(0x1df)]=_0x593d48[_0x1c42c6(0x1a8)](uuidv4);else _0x55d8d9[_0x1c42c6(0x1fd)]&&(_0x55d8d9[_0x1c42c6(0x1df)]=_0x593d48[_0x1c42c6(0x1a8)](uuidv4),delete _0x55d8d9['markedStatus']);_0x55d8d9[_0x1c42c6(0x182)]=new Date()[_0x1c42c6(0x11e)](),this[_0x1c42c6(0xdb)]=_0x55d8d9,await this['sendTestRunEvent'](_0x55d8d9,undefined,![],_0x593d48[_0x1c42c6(0x100)]);}})['on'](EVENT_HOOK_END,async _0x6dc257=>{const _0x2eb6a1=_0x590837;_0x593d48[_0x2eb6a1(0x188)](testhubUtils['shouldProcessEventForTesthub'](testHubConstants[_0x2eb6a1(0x10e)][_0x2eb6a1(0x1ec)]),!![])&&(!_0x6dc257[_0x2eb6a1(0x1fd)]&&(_0x6dc257[_0x2eb6a1(0x1fd)]=!![],await this[_0x2eb6a1(0x1c5)](_0x6dc257,undefined,![],_0x593d48['ySFXV'])));})['on'](EVENT_SUITE_END,_0x1e1b6e=>{const _0x1be27d=_0x590837;if(_0x1e1b6e['root'])return;if(_0x593d48[_0x1be27d(0x139)](this['type'],_0x593d48[_0x1be27d(0x1cf)]))Base[_0x1be27d(0x1e1)](),Base[_0x1be27d(0x1e1)](_0x593d48[_0x1be27d(0x16f)](_0x593d48[_0x1be27d(0x1da)](this[_0x1be27d(0x133)](),_0x593d48['WywLD'](color,_0x593d48[_0x1be27d(0x197)],_0x593d48[_0x1be27d(0x1b5)])),_0x593d48[_0x1be27d(0x121)](color,_0x593d48[_0x1be27d(0x1ad)],_0x593d48['DuiZg'])),_0x593d48['AcmAl'],_0x1e1b6e['title'],global[_0x1be27d(0x154)]),this[_0x1be27d(0x12b)][_0x1be27d(0x19d)](_0x1ea7c6=>{const _0x44e28a=_0x1be27d;if(_0x593d48[_0x44e28a(0x193)](_0x1ea7c6[_0x44e28a(0x127)],_0x593d48[_0x44e28a(0x1b4)])){var _0x1d9c6b;_0x593d48[_0x44e28a(0x171)](_0x1ea7c6['speed'],_0x593d48[_0x44e28a(0x141)])?(_0x1d9c6b=_0x593d48[_0x44e28a(0x1a4)](_0x593d48[_0x44e28a(0x1dc)](this[_0x44e28a(0x133)](),_0x593d48[_0x44e28a(0xec)](color,_0x593d48['XAMlB'],_0x593d48[_0x44e28a(0x1dc)]('\x20\x20',Base[_0x44e28a(0x135)]['ok']))),_0x593d48['utPoa'](color,_0x593d48[_0x44e28a(0x195)],_0x593d48[_0x44e28a(0x105)])),Base['consoleLog'](_0x1d9c6b,_0x1ea7c6[_0x44e28a(0x1a3)])):(_0x1d9c6b=_0x593d48[_0x44e28a(0x111)](_0x593d48[_0x44e28a(0x1a4)](_0x593d48[_0x44e28a(0x1dc)](this[_0x44e28a(0x133)](),_0x593d48[_0x44e28a(0x205)](color,_0x593d48['XAMlB'],_0x593d48[_0x44e28a(0x1dc)]('\x20\x20',Base[_0x44e28a(0x135)]['ok']))),_0x593d48[_0x44e28a(0x205)](color,_0x593d48[_0x44e28a(0x195)],_0x593d48[_0x44e28a(0x105)])),_0x593d48[_0x44e28a(0x1ab)](color,_0x1ea7c6[_0x44e28a(0x1fb)],_0x593d48[_0x44e28a(0x1bc)])),Base[_0x44e28a(0x1e1)](_0x1d9c6b,_0x1ea7c6[_0x44e28a(0x1a3)],_0x1ea7c6[_0x44e28a(0x14e)]));}else Base[_0x44e28a(0x1e1)](_0x593d48[_0x44e28a(0x16f)](this[_0x44e28a(0x133)](),_0x593d48['utPoa'](color,_0x593d48['wReCQ'],_0x593d48[_0x44e28a(0x155)])),++this[_0x44e28a(0x13f)],_0x1ea7c6[_0x44e28a(0x1a3)]);}),this['decreaseIndent']();else _0x593d48[_0x1be27d(0x17e)](this[_0x1be27d(0x1f9)],_0x593d48[_0x1be27d(0x1c8)])&&(this['docAppend'](this[_0x1be27d(0x133)]()+'</dl>'),--this[_0x1be27d(0x174)],this[_0x1be27d(0x11c)](this[_0x1be27d(0x133)]()+_0x1be27d(0x128)),--this['__indents']);Array[_0x1be27d(0x13b)][_0x1be27d(0x207)][_0x1be27d(0x106)](this[_0x1be27d(0x1cb)],this[_0x1be27d(0x12b)]),this[_0x1be27d(0x12b)]=[];})['on'](EVENT_TEST_PASS,async _0xe84318=>{const _0x2da343=_0x590837;this[_0x2da343(0x12b)]['push']({'speed':_0xe84318['speed'],'suite':_0xe84318['parent'][_0x2da343(0x1a3)],'title':_0xe84318[_0x2da343(0x1a3)],'fullTitle':_0xe84318[_0x2da343(0x1c6)](),'duration':_0xe84318[_0x2da343(0x14e)],'state':_0xe84318[_0x2da343(0x127)],'err':{},'currentRetry':_0xe84318[_0x2da343(0x206)](),'titlePathV':_0xe84318[_0x2da343(0x11f)](),'isPending':_0xe84318[_0x2da343(0x1bd)]()});if(_0x593d48[_0x2da343(0x193)](this[_0x2da343(0x1f9)],_0x593d48['JwUcb']))_0x593d48[_0x2da343(0x1c9)](_0xe84318['speed'],_0x593d48['MvMZS'])?process[_0x2da343(0x149)][_0x2da343(0x1a1)](Base[_0x2da343(0x187)](_0x593d48[_0x2da343(0x197)],Base[_0x2da343(0x135)][_0x2da343(0xdf)])):process[_0x2da343(0x149)][_0x2da343(0x1a1)](Base['color'](_0xe84318['speed'],Base[_0x2da343(0x135)]['dot']));else{if(_0x593d48['DTxUR'](this[_0x2da343(0x1f9)],_0x593d48[_0x2da343(0x1c8)])){this[_0x2da343(0x11c)](this[_0x2da343(0x133)]()+_0x2da343(0x1a2)+utils[_0x2da343(0xd9)](_0xe84318[_0x2da343(0x1a3)])+'</dt>'),this[_0x2da343(0x11c)](this[_0x2da343(0x133)]()+_0x2da343(0x1a2)+utils[_0x2da343(0xd9)](_0xe84318[_0x2da343(0x14a)])+_0x2da343(0xf1));var _0x2ff210=utils['escape'](utils[_0x2da343(0x1d7)](_0xe84318[_0x2da343(0x161)]));this[_0x2da343(0x11c)](this[_0x2da343(0x133)]()+_0x2da343(0xe1)+_0x2ff210+'</code></pre></dd>');}}_0x593d48[_0x2da343(0x1c9)](testhubUtils[_0x2da343(0x162)](),!![])&&(!_0xe84318[_0x2da343(0x1fd)]&&(_0xe84318['markedStatus']=!![],await this[_0x2da343(0x1c5)](_0xe84318)));})['on'](EVENT_TEST_FAIL,async(_0x3a121c,_0x45770f)=>{const _0x50d08e=_0x590837;this[_0x50d08e(0x12b)][_0x50d08e(0x207)]({'title':_0x3a121c['title'],'suite':_0x3a121c[_0x50d08e(0x1b7)][_0x50d08e(0x1a3)],'state':_0x3a121c[_0x50d08e(0x127)],'err':{'message':util[_0x50d08e(0x1e3)](_0x45770f)},'fullTitle':_0x3a121c[_0x50d08e(0x1c6)](),'speed':_0x3a121c['speed'],'currentRetry':_0x3a121c[_0x50d08e(0x206)](),'titlePathV':_0x3a121c[_0x50d08e(0x11f)]()});if(_0x593d48['DZjum'](this[_0x50d08e(0x1f9)],_0x593d48['JwUcb']))process[_0x50d08e(0x149)][_0x50d08e(0x1a1)](Base[_0x50d08e(0x187)](_0x593d48[_0x50d08e(0x1fc)],Base[_0x50d08e(0x135)][_0x50d08e(0x168)]));else{if(_0x593d48[_0x50d08e(0x1c9)](this[_0x50d08e(0x1f9)],_0x593d48[_0x50d08e(0x1c8)])){const _0x1eab3=_0x593d48['oFvnw'][_0x50d08e(0xea)]('|');let _0xc76be5=0x0;while(!![]){switch(_0x1eab3[_0xc76be5++]){case'0':this[_0x50d08e(0x11c)](this[_0x50d08e(0x133)]()+_0x50d08e(0xf4)+_0x5b0eee+'</code></pre></dd>');continue;case'1':var _0x5b0eee=utils[_0x50d08e(0xd9)](utils['clean'](_0x3a121c['body']));continue;case'2':this[_0x50d08e(0x11c)](this['indent']()+_0x50d08e(0x17d)+utils[_0x50d08e(0xd9)](_0x3a121c['err'])+_0x50d08e(0x144));continue;case'3':this[_0x50d08e(0x11c)](this[_0x50d08e(0x133)]()+_0x50d08e(0x1d1)+utils['escape'](_0x3a121c[_0x50d08e(0x1a3)])+_0x50d08e(0xf1));continue;case'4':this['docAppend'](this[_0x50d08e(0x133)]()+_0x50d08e(0x1d1)+utils[_0x50d08e(0xd9)](_0x3a121c[_0x50d08e(0x14a)])+_0x50d08e(0xf1));continue;}break;}}}if(_0x593d48['hNERh'](testhubUtils['shouldProcessEventForTesthub'](testHubConstants[_0x50d08e(0x10e)][_0x50d08e(0x1ec)]),!![])){if(!_0x3a121c[_0x50d08e(0x1fd)]){_0x3a121c['markedStatus']=!![];if(_0x3a121c[_0x50d08e(0x179)])await this['sendTestRunEvent'](_0x3a121c,_0x45770f);else _0x3a121c['hookAnalyticsId']&&await this[_0x50d08e(0x1c5)](_0x3a121c,_0x45770f,![],_0x593d48[_0x50d08e(0x138)]);}}})['on'](EVENT_TEST_PENDING,async _0x832d85=>{const _0x5ad600=_0x590837;this[_0x5ad600(0x12b)][_0x5ad600(0x207)]({'title':_0x832d85['title'],'suite':_0x832d85[_0x5ad600(0x1b7)][_0x5ad600(0x1a3)],'state':_0x832d85[_0x5ad600(0x127)],'err':{},'fullTitle':_0x832d85[_0x5ad600(0x1c6)](),'speed':_0x832d85['speed'],'currentRetry':_0x832d85[_0x5ad600(0x206)](),'titlePathV':_0x832d85[_0x5ad600(0x11f)]()}),_0x593d48[_0x5ad600(0x11a)](this[_0x5ad600(0x1f9)],_0x593d48[_0x5ad600(0xdd)])&&process[_0x5ad600(0x149)]['write'](Base[_0x5ad600(0x187)](_0x593d48['Qbhib'],Base[_0x5ad600(0x135)][_0x5ad600(0x120)])),_0x593d48[_0x5ad600(0x176)](testhubUtils[_0x5ad600(0x162)](),!![])&&(!_0x832d85[_0x5ad600(0x179)]&&(_0x832d85[_0x5ad600(0x179)]=_0x593d48[_0x5ad600(0x1a8)](uuidv4)),!_0x832d85[_0x5ad600(0x1fd)]&&(_0x832d85[_0x5ad600(0x1fd)]=!![],await this[_0x5ad600(0x1c5)](_0x832d85,undefined,![],_0x593d48[_0x5ad600(0xef)])));})['on'](EVENT_TEST_BEGIN,async _0x1ef197=>{const _0x553f94=_0x590837;_0x593d48['aOOKT'](testhubUtils[_0x553f94(0x162)](),!![])&&await this[_0x553f94(0x172)](_0x1ef197);})['on'](EVENT_TEST_END,async _0x4b1f2d=>{const _0x13971d=_0x590837;_0x593d48[_0x13971d(0x171)](testhubUtils[_0x13971d(0x162)](),!![])&&(!_0x4b1f2d[_0x13971d(0x1fd)]&&(_0x4b1f2d[_0x13971d(0x1fd)]=!![],await this['sendTestRunEvent'](_0x4b1f2d)));})[_0x590837(0x1a6)](EVENT_RUN_END,async()=>{const _0x14c2fd=_0x590837;try{if(_0x593d48[_0x14c2fd(0x1e5)](testhubUtils[_0x14c2fd(0x162)](),!![])){const _0xe286ea=_0x593d48[_0x14c2fd(0x1a9)](getHookSkippedTests,this[_0x14c2fd(0x130)][_0x14c2fd(0x1e9)]);for(const _0x178675 of _0xe286ea){!_0x178675['testAnalyticsId']&&(_0x178675[_0x14c2fd(0x179)]=_0x593d48[_0x14c2fd(0x1a8)](uuidv4)),await this['sendTestRunEvent'](_0x178675,undefined,![],_0x593d48[_0x14c2fd(0xef)]);}}}catch(_0x3a8a7b){_0x593d48['FbxNe'](debug,'Exception\x20in\x20populating\x20test\x20data\x20for\x20hook\x20skipped\x20test\x20with\x20error\x20:\x20'+_0x3a8a7b);}await requestQueueHandler[_0x14c2fd(0xee)](),_0x593d48[_0x14c2fd(0x171)](this['type'],_0x593d48[_0x14c2fd(0x1c8)])&&Base['consoleLog'](this[_0x14c2fd(0x1b0)]);});if(this[_0x590837(0x1f9)]&&![_0x593d48[_0x590837(0x1c8)],_0x593d48[_0x590837(0x151)],_0x593d48['ggsHv'],_0x593d48[_0x590837(0xdd)]]['includes'](this['type'])){const _0x278016=this['type'][_0x590837(0x1c7)]();this[_0x590837(0x209)]=null;try{this['Reporter']=_0x593d48[_0x590837(0xed)](requireModule,_0x590837(0x16b)+_0x278016+'.js',_0x593d48[_0x590837(0x119)]);}catch(_0x101379){_0x593d48[_0x590837(0x164)](debug,'Exception\x20in\x20browserstack\x20custome\x20reporter\x20with\x20error:\x20'+_0x101379);}if(_0x593d48[_0x590837(0x140)](this[_0x590837(0x209)],null))try{this[_0x590837(0x209)]=_0x593d48[_0x590837(0x142)](require,_0x278016);}catch(_0xf65b87){console['error'](_0x590837(0xe2)+_0x278016);}if(_0x593d48[_0x590837(0xe8)](this[_0x590837(0x209)],null)){const _0x49cf32={};_0x49cf32[_0x590837(0x10b)]=_0x273fc3['reporterOption'],this[_0x590837(0x209)]=new this[(_0x590837(0x209))](_0x284040,_0x49cf32);}}}[a31_0x5dd3aa(0x133)](){const _0x3df280=a31_0x5dd3aa,_0x2c199b={'yqjei':function(_0x4e9f26,_0xa5b803){return _0x4e9f26(_0xa5b803);}};return _0x2c199b[_0x3df280(0x1b8)](Array,this['_indents'])[_0x3df280(0x170)]('\x20\x20');}[a31_0x5dd3aa(0x1c3)](){const _0x46d49a=a31_0x5dd3aa;this[_0x46d49a(0x1d5)]++;}[a31_0x5dd3aa(0xf0)](){const _0x409e67=a31_0x5dd3aa;this[_0x409e67(0x1d5)]--;}[a31_0x5dd3aa(0x11c)](_0x2fec66){const _0x255834=a31_0x5dd3aa;this[_0x255834(0x1b0)]+=_0x2fec66;}['done'](_0x175427,_0x117085){const _0x1cef18={'oDhSx':function(_0x39b7ce,_0x607f7b){return _0x39b7ce(_0x607f7b);}},_0x1c5788={};_0x1c5788['failureCount']=_0x175427,_0x1c5788['results']=this['finalResults'],_0x1cef18['oDhSx'](_0x117085,_0x1c5788);}['registerListeners'](){const _0x3cdbd6=a31_0x5dd3aa;process[_0x3cdbd6(0x1be)](_0x3cdbd6(0x17a)+process['pid']),process['on']('bs:addLog:'+process['pid'],this['appendTestItemLog'][_0x3cdbd6(0xfa)](this)),process[_0x3cdbd6(0x1be)](_0x3cdbd6(0x199)+process['pid']),process['on']('bs:addPlatformDetails:'+process['pid'],this[_0x3cdbd6(0x1fe)]['bind'](this));}[a31_0x5dd3aa(0x172)]=async _0x4d0b25=>{const _0x2594ba=a31_0x5dd3aa,_0x43c339={'Bkgip':function(_0xceb337){return _0xceb337();},'pKWnP':'testRunUUID','NtRff':function(_0x712cab,_0x2edb9e){return _0x712cab>_0x2edb9e;},'Doiug':function(_0x14ec85,_0x5327cd){return _0x14ec85===_0x5327cd;},'nZTxz':_0x2594ba(0xf6),'zoVyL':function(_0xfc5243,_0xadfc05){return _0xfc5243(_0xadfc05);}};try{const _0x286fcb=this[_0x2594ba(0x19e)];this[_0x2594ba(0x19e)]=_0x4d0b25,_0x4d0b25['retryOf']=null,_0x4d0b25[_0x2594ba(0x179)]=_0x43c339[_0x2594ba(0x202)](uuidv4),globals[_0x2594ba(0x1f3)](_0x43c339[_0x2594ba(0x18f)],_0x4d0b25['testAnalyticsId']),_0x4d0b25[_0x2594ba(0x182)]=new Date()[_0x2594ba(0x11e)](),_0x43c339[_0x2594ba(0x1c0)](_0x4d0b25[_0x2594ba(0x125)],0x0)&&_0x286fcb&&_0x43c339[_0x2594ba(0x129)](_0x286fcb[_0x2594ba(0x1a3)],_0x4d0b25[_0x2594ba(0x1a3)])?(_0x4d0b25['retryOf']=_0x286fcb[_0x2594ba(0x179)],await this[_0x2594ba(0x1c5)](_0x4d0b25,undefined,![],_0x43c339['nZTxz']),_0x286fcb[_0x2594ba(0x127)]=STATE_FAILED,await this['sendTestRunEvent'](_0x286fcb,undefined,!![])):await this[_0x2594ba(0x1c5)](_0x4d0b25,undefined,![],_0x43c339['nZTxz']);}catch(_0x1b823b){_0x43c339[_0x2594ba(0x19f)](debug,_0x2594ba(0x16e)+_0x1b823b);}};[a31_0x5dd3aa(0x1c5)]=async(_0x367d27,_0xaa43c5=undefined,_0x438b89=![],_0x51cddb=a31_0x5dd3aa(0x11d))=>{const _0x10970f=a31_0x5dd3aa,_0x409dbf={'ptOga':function(_0x57f8f3,_0x51cc6a){return _0x57f8f3===_0x51cc6a;},'csTiI':function(_0x38a38d,_0x55ed09){return _0x38a38d!==_0x55ed09;},'xqPLv':_0x10970f(0x1e0),'JzdLF':'err','nDjIM':_0x10970f(0x196),'tLbHe':_0x10970f(0x1f6),'fAnne':_0x10970f(0x1d4),'Rtqfz':function(_0x4f6452,_0x25d081){return _0x4f6452===_0x25d081;},'qRotA':_0x10970f(0x203),'GoHCO':_0x10970f(0x17c),'sWuHt':function(_0x1f02aa,_0x2ed110){return _0x1f02aa-_0x2ed110;},'bYHYv':'AssertionError','nFrZl':_0x10970f(0x134),'VFkfT':'TestRunFinished','LGBWl':_0x10970f(0xf6),'CgNil':function(_0x1105fd){return _0x1105fd();},'Xvfti':_0x10970f(0x182),'ymVXt':'finished_at','fMPMb':function(_0x5500b7,_0x23ef87){return _0x5500b7(_0x23ef87);},'tMIxm':function(_0x37b4bd,_0x2d2433){return _0x37b4bd===_0x2d2433;},'jxjOZ':_0x10970f(0x178),'SowwC':_0x10970f(0x19a),'djyFR':_0x10970f(0xf9),'OakJQ':function(_0xd510f6,_0x20c803){return _0xd510f6===_0x20c803;},'tFfJl':'before\x20each','WEtTV':function(_0x1110aa,_0x42b2e9){return _0x1110aa(_0x42b2e9);},'IJPdZ':_0x10970f(0x185),'zHvAU':_0x10970f(0x1ce),'WvRds':'backtrace','jxvGJ':_0x10970f(0x146),'QLTXv':_0x10970f(0x167),'eKNVo':function(_0x24f26a,_0x177a66){return _0x24f26a(_0x177a66);},'njQFT':function(_0x4c87a0,_0x4669bc){return _0x4c87a0===_0x4669bc;},'ElCSS':_0x10970f(0x132),'RabSG':_0x10970f(0x1ae),'RzmKa':_0x10970f(0x156),'wSmgc':function(_0x5d398a,_0x430da0){return _0x5d398a(_0x430da0);}};try{if(_0x367d27[_0x10970f(0x161)]&&_0x367d27[_0x10970f(0x161)][_0x10970f(0x18d)](/browserstack internal helper hook/))return;let _0x1a4b8a=[];if(_0x409dbf[_0x10970f(0x184)](_0x367d27['state'],STATE_FAILED)){if(_0x409dbf[_0x10970f(0x18c)](_0x367d27[_0x10970f(0xfd)],undefined))_0x1a4b8a=_0x367d27[_0x10970f(0xfd)][_0x10970f(0x1f8)]?[_0x367d27[_0x10970f(0xfd)][_0x10970f(0x1f8)],_0x409dbf['xqPLv']]:[_0x367d27[_0x10970f(0xfd)],_0x409dbf[_0x10970f(0x175)]];else _0x409dbf[_0x10970f(0x18c)](_0xaa43c5,undefined)?_0x1a4b8a=[_0xaa43c5,_0x409dbf[_0x10970f(0x175)]]:_0x1a4b8a=[];}const _0x5032bf=_0x409dbf[_0x10970f(0x18c)](_0x367d27['err'],undefined)?_0x367d27[_0x10970f(0xfd)][_0x10970f(0x13e)]():_0x409dbf[_0x10970f(0x18c)](_0xaa43c5,undefined)?_0xaa43c5['toString']():undefined;let _0x23e4f6;try{_0x23e4f6=this[_0x10970f(0x16d)](_0x367d27);}catch(_0x5c6c0a){_0x23e4f6=null;}const _0x2ae816=_0x23e4f6?this[_0x10970f(0x152)](_0x23e4f6):null,_0x275220=_0x23e4f6?this[_0x10970f(0x201)][_0x10970f(0x180)](this[_0x10970f(0x16d)](_0x367d27)):_0x409dbf[_0x10970f(0x12c)],_0x5d5f44={'framework':_0x409dbf[_0x10970f(0x160)],'uuid':_0x367d27[_0x10970f(0x179)]||_0x367d27[_0x10970f(0x1df)],'name':_0x367d27['title'],'body':{'lang':_0x409dbf[_0x10970f(0x158)],'code':_0x367d27[_0x10970f(0x161)]},'scope':this[_0x10970f(0x12a)](_0x367d27),'scopes':this['scopes'](_0x367d27),'identifier':_0x367d27['fullTitle'](),'file_name':_0x275220,'vc_filepath':_0x2ae816?path['relative'](_0x2ae816,_0x23e4f6):null,'location':_0x275220,'result':_0x409dbf[_0x10970f(0xda)](_0x51cddb,_0x409dbf['qRotA'])?_0x409dbf[_0x10970f(0x1aa)]:this[_0x10970f(0x1d0)](_0x367d27[_0x10970f(0x127)]),'failure_reason':_0x5032bf,'duration_in_ms':_0x367d27[_0x10970f(0x14e)]||(_0x51cddb['match'](/Finished/)||_0x51cddb['match'](/Skipped/)?_0x409dbf[_0x10970f(0x1e7)](Date['now'](),new Date(_0x367d27[_0x10970f(0x182)])[_0x10970f(0x183)]()):null),'started_at':_0x367d27[_0x10970f(0x182)],'finished_at':_0x51cddb[_0x10970f(0x18d)](/Finished/)||_0x51cddb[_0x10970f(0x18d)](/Skipped/)?new Date()['toISOString']():null,'failure':failureData[_0x10970f(0x106)](null,_0x1a4b8a),'failure_type':!_0x5032bf?null:_0x5032bf['match'](/AssertionError/)?_0x409dbf['bYHYv']:_0x409dbf['nFrZl'],'retry_of':_0x367d27[_0x10970f(0xff)]};if([_0x409dbf[_0x10970f(0x1dd)],_0x409dbf[_0x10970f(0x1f4)],_0x409dbf['LGBWl']][_0x10970f(0x1de)](_0x51cddb)){if(_0x409dbf[_0x10970f(0x148)](getCentralUser)['lcnc']){const _0x2b30bf=TestMetadata[_0x10970f(0x177)](_0x367d27['testAnalyticsId']);if(_0x2b30bf){const _0x3e843c={};_0x3e843c['lcnc']=_0x2b30bf,Object[_0x10970f(0x122)](_0x5d5f44,_0x3e843c);}}}testhubUtils[_0x10970f(0x107)](_0x5d5f44,_0x51cddb,_0x367d27,FRAMEWORKS[_0x10970f(0x1f1)]);(_0x367d27[_0x10970f(0x14b)]||_0x367d27[_0x10970f(0x1ca)])&¢ralScannerUtils['setCentralScannerData'](_0x5d5f44,_0x367d27[_0x10970f(0x14b)],_0x367d27[_0x10970f(0x1ca)]);_0x409dbf['ptOga'](_0x51cddb,_0x409dbf[_0x10970f(0x1dd)])&&!_0x5d5f44[_0x409dbf[_0x10970f(0x1ac)]]&&(_0x5d5f44[_0x409dbf[_0x10970f(0x1ac)]]=_0x5d5f44[_0x409dbf[_0x10970f(0x123)]]);if(_0x51cddb['match'](/HookRun/))[_0x5d5f44[_0x10970f(0x132)],_0x5d5f44[_0x10970f(0x103)]]=_0x409dbf[_0x10970f(0x1af)](getHookDetails,_0x367d27['fullTitle']()||_0x367d27[_0x10970f(0x1d9)]||_0x367d27['title']),_0x409dbf[_0x10970f(0x14f)](_0x51cddb,_0x409dbf[_0x10970f(0x101)])&&(_0x409dbf[_0x10970f(0x18c)](_0x5d5f44[_0x10970f(0x14c)],_0x409dbf[_0x10970f(0x1ba)])&&(_0x5d5f44[_0x10970f(0x14c)]=_0x409dbf['djyFR']),_0x409dbf['OakJQ'](_0x5d5f44[_0x10970f(0x132)],_0x409dbf[_0x10970f(0x10f)])&&_0x409dbf[_0x10970f(0x184)](_0x5d5f44[_0x10970f(0x14c)],_0x409dbf[_0x10970f(0x1ba)])&&!_0x367d27[_0x10970f(0x13c)][_0x10970f(0x1c2)]['markedStatus']&&(_0x367d27[_0x10970f(0x13c)][_0x10970f(0x1c2)][_0x10970f(0x1fd)]=!![],_0x367d27['ctx'][_0x10970f(0x1c2)]['state']=STATE_FAILED,await this[_0x10970f(0x1c5)](_0x367d27[_0x10970f(0x13c)][_0x10970f(0x1c2)],undefined,!![])));else _0x51cddb[_0x10970f(0x18d)](/TestRun/)&&_0x409dbf['WEtTV'](mapTestHooks,_0x367d27);const _0x1e7775=_0x5d5f44[_0x409dbf['IJPdZ']][0x0];_0x1e7775&&(_0x5d5f44[_0x409dbf['zHvAU']]=_0x1e7775[_0x409dbf[_0x10970f(0x102)]],_0x5d5f44[_0x409dbf[_0x10970f(0xf8)]]=_0x1e7775[_0x409dbf[_0x10970f(0x124)]]);[_0x409dbf[_0x10970f(0x1f4)],_0x409dbf['qRotA']][_0x10970f(0x1de)](_0x51cddb)&&(this['_testResults'][_0x10970f(0x207)](_0x5d5f44),_0x5d5f44[_0x10970f(0x110)]=_0x409dbf['eKNVo'](getHooksForTest,_0x367d27));const _0x35c045={'event_type':_0x409dbf[_0x10970f(0x136)](_0x51cddb,_0x409dbf[_0x10970f(0x1dd)])?_0x409dbf[_0x10970f(0x1f4)]:_0x51cddb};_0x51cddb[_0x10970f(0x18d)](/HookRun/)?(_0x5d5f44[_0x409dbf[_0x10970f(0xde)]]=HOOK_TYPES_MAP[_0x5d5f44[_0x409dbf[_0x10970f(0xde)]]],_0x35c045[_0x409dbf[_0x10970f(0xfb)]]=_0x5d5f44):_0x35c045[_0x409dbf[_0x10970f(0x12d)]]=_0x5d5f44,testhubUtils[_0x10970f(0x1ea)](FRAMEWORKS[_0x10970f(0x1f1)],_0x35c045),await SessionHandler['uploadEventData'](_0x35c045);}catch(_0x4a2dec){_0x409dbf[_0x10970f(0x1d8)](debug,_0x10970f(0x15c)+_0x51cddb+_0x10970f(0x15f)+_0x4a2dec);}};[a31_0x5dd3aa(0x152)](_0x5bfa81){const _0x4e7694=a31_0x5dd3aa,_0x5f29a2={};_0x5f29a2[_0x4e7694(0x1b9)]=function(_0x4b9e7b,_0x486aa3){return _0x4b9e7b===_0x486aa3;},_0x5f29a2[_0x4e7694(0x1a7)]=function(_0x5cc99a,_0x1b694a){return _0x5cc99a===_0x1b694a;},_0x5f29a2[_0x4e7694(0x113)]='.git',_0x5f29a2[_0x4e7694(0x18a)]='config';const _0x20876e=_0x5f29a2,_0x3ce59c=path[_0x4e7694(0x189)];if(_0x20876e['ZUfcg'](_0x5bfa81,null)||_0x20876e[_0x4e7694(0x1a7)](_0x5bfa81,'')||_0x20876e['ZUfcg'](_0x5bfa81,_0x3ce59c)||_0x20876e[_0x4e7694(0x1b9)](_0x5bfa81,path[_0x4e7694(0x192)](_0x5bfa81)))return null;try{return fs[_0x4e7694(0x1f5)](path[_0x4e7694(0x170)](_0x5bfa81,_0x20876e['WMcqM'],_0x20876e[_0x4e7694(0x18a)])),_0x5bfa81;}catch(_0x2f7be4){const _0x25b8b4=path[_0x4e7694(0x192)](_0x5bfa81);return this['findGitConfig'](_0x25b8b4);}}[a31_0x5dd3aa(0xe0)]=async _0x16fc7a=>{const _0x1589f0=a31_0x5dd3aa,_0x46544f={'ljTDX':_0x1589f0(0x1db),'mOuYR':function(_0x170e4a,_0x2c565e){return _0x170e4a(_0x2c565e);}};try{this[_0x1589f0(0xdb)]&&!this['current_hook'][_0x1589f0(0x1fd)]&&(_0x16fc7a['hook_run_uuid']=this[_0x1589f0(0xdb)]['hookAnalyticsId']);!_0x16fc7a[_0x1589f0(0x15d)]&&this[_0x1589f0(0x19e)]&&!this[_0x1589f0(0x19e)][_0x1589f0(0x1fd)]&&(_0x16fc7a['test_run_uuid']=this[_0x1589f0(0x19e)][_0x1589f0(0x179)]);if(_0x16fc7a[_0x1589f0(0x15d)]||_0x16fc7a[_0x1589f0(0x1a0)]){const _0x251eb4={};_0x251eb4[_0x1589f0(0x114)]=_0x46544f[_0x1589f0(0xfc)],_0x251eb4[_0x1589f0(0xe7)]=[_0x16fc7a],await SessionHandler[_0x1589f0(0x112)](_0x251eb4);}}catch(_0x1f3d7f){_0x46544f[_0x1589f0(0x159)](debug,_0x1589f0(0x1d6)+constants[_0x1589f0(0x1f0)]+'\x20with\x20error\x20:\x20'+_0x1f3d7f);}};['appendTestPlatform']=async _0x4e63d5=>{const _0x5687c1=a31_0x5dd3aa,_0x3bb16a={'atgjU':_0x5687c1(0x13a),'mEoNP':_0x5687c1(0x14d),'Wzgry':function(_0x4907f4,_0x548b34){return _0x4907f4(_0x548b34);}};try{const _0x2531e7={};_0x2531e7[_0x5687c1(0x1e4)]=_0x4e63d5['uuid']||this[_0x5687c1(0x19e)][_0x5687c1(0x179)],_0x2531e7['integrations']=_0x4e63d5[_0x3bb16a[_0x5687c1(0x153)]];const _0x2a0967=_0x2531e7,_0x35c957={};_0x35c957[_0x5687c1(0x114)]=_0x3bb16a[_0x5687c1(0x1c4)],_0x35c957['test_run']=_0x2a0967,await SessionHandler[_0x5687c1(0x112)](_0x35c957);}catch(_0x4de9b0){_0x3bb16a[_0x5687c1(0x12f)](debug,'Exception\x20in\x20uploading\x20platform\x20details\x20to\x20'+constants[_0x5687c1(0x1f0)]+_0x5687c1(0x15f)+_0x4de9b0);}};[a31_0x5dd3aa(0x1d0)](_0x59188a){const _0xc862a6=a31_0x5dd3aa,_0x189af9={};_0x189af9['DSGqR']=_0xc862a6(0xf9),_0x189af9[_0xc862a6(0x13d)]='pending',_0x189af9[_0xc862a6(0x1e6)]='failed';const _0x3b12a0=_0x189af9,_0x39067d={};return _0x39067d[STATE_PASSED]=_0x3b12a0['DSGqR'],_0x39067d[STATE_PENDING]=_0x3b12a0['rzFRA'],_0x39067d[STATE_FAILED]=_0x3b12a0['yaCdr'],_0x39067d[_0x59188a];}['scope'](_0xd938e4){const _0x54f054=a31_0x5dd3aa,_0x3573f2={};_0x3573f2['NIhBZ']=function(_0x225367,_0x41205e){return _0x225367-_0x41205e;};const _0x44cf80=_0x3573f2,_0x421bbd=_0xd938e4['titlePath']();return _0x421bbd[_0x54f054(0x163)](0x0,_0x44cf80[_0x54f054(0x126)](_0x421bbd[_0x54f054(0x1b3)],0x1))[_0x54f054(0x170)]('\x20');}['scopes'](_0x860b00){const _0x3f2e10=a31_0x5dd3aa,_0x3ccd77={};_0x3ccd77[_0x3f2e10(0x1b2)]=function(_0x20fddf,_0x5e5745){return _0x20fddf-_0x5e5745;};const _0x1d4b7d=_0x3ccd77,_0x4c9fca=_0x860b00[_0x3f2e10(0x11f)]();return _0x4c9fca[_0x3f2e10(0x163)](0x0,_0x1d4b7d['IenHw'](_0x4c9fca[_0x3f2e10(0x1b3)],0x1));}['getRootParentFile'](_0x1ebe3f){const _0xb1a84d=a31_0x5dd3aa,_0x2c59e0={};_0x2c59e0[_0xb1a84d(0x173)]=function(_0xad2913,_0x5906e9){return _0xad2913>_0x5906e9;};const _0xf3e483=_0x2c59e0;if(_0x1ebe3f[_0xb1a84d(0x14a)])return _0x1ebe3f[_0xb1a84d(0x14a)];if(_0x1ebe3f['ctx']){const _0x25b77f=_0x1ebe3f[_0xb1a84d(0x13c)][_0xb1a84d(0x1c2)]?this['getRootParentFile'](_0x1ebe3f[_0xb1a84d(0x13c)][_0xb1a84d(0x1c2)]):null;if(_0x25b77f)return _0x25b77f;}if(_0x1ebe3f[_0xb1a84d(0x1b7)]){const _0x5548ae=this[_0xb1a84d(0x16d)](_0x1ebe3f[_0xb1a84d(0x1b7)])||(_0x1ebe3f['parent']['ctx']&&_0x1ebe3f['parent']['ctx']['currentTest']?this[_0xb1a84d(0x16d)](_0x1ebe3f[_0xb1a84d(0x1b7)]['ctx'][_0xb1a84d(0x1c2)]):null);if(_0x5548ae)return _0x5548ae;_0x1ebe3f['parent'][_0xb1a84d(0x17b)]&&_0xf3e483[_0xb1a84d(0x173)](_0x1ebe3f[_0xb1a84d(0x1b7)][_0xb1a84d(0x17b)][_0xb1a84d(0x1b3)],0x0)&&_0x1ebe3f['parent']['suites'][_0xb1a84d(0x19d)](_0x40c2ce=>{const _0x139947=_0xb1a84d,_0x212242=_0x40c2ce[_0x139947(0x13c)]?this[_0x139947(0x16d)](_0x40c2ce[_0x139947(0x13c)]):null;if(_0x212242)return _0x212242;});}return null;}}module[a31_0x5dd3aa(0xdc)]=MyReporter;
|
|
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;
|