browserstack-node-sdk 1.52.0 → 1.52.2
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 +2 -2
- 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_0xc31ac9=a27_0x5f06;(function(_0x3304ba,_0x29f633){const _0x3a2f92=a27_0x5f06,_0x354166=_0x3304ba();while(!![]){try{const _0x6727c5=parseInt(_0x3a2f92(0x196))/0x1*(-parseInt(_0x3a2f92(0x189))/0x2)+parseInt(_0x3a2f92(0x18e))/0x3+-parseInt(_0x3a2f92(0x1ad))/0x4*(-parseInt(_0x3a2f92(0x1a8))/0x5)+parseInt(_0x3a2f92(0x198))/0x6+-parseInt(_0x3a2f92(0x18a))/0x7*(parseInt(_0x3a2f92(0x19a))/0x8)+parseInt(_0x3a2f92(0x183))/0x9*(parseInt(_0x3a2f92(0x181))/0xa)+-parseInt(_0x3a2f92(0x188))/0xb;if(_0x6727c5===_0x29f633)break;else _0x354166['push'](_0x354166['shift']());}catch(_0x2fab8e){_0x354166['push'](_0x354166['shift']());}}}(a27_0x52b2,0xa6d9e));const path=require(a27_0xc31ac9(0x1a6)),{requireModule,modifyCommand,getPlatformName,cleanupDrivers,isBrowserstackInfra}=require(a27_0xc31ac9(0x194)),constants=require(a27_0xc31ac9(0x1a0)),{isAccessibilityAutomationSession}=require(a27_0xc31ac9(0x19c)),RequestQueueHandler=require(a27_0xc31ac9(0x180)),{isTestObservabilitySession}=require(a27_0xc31ac9(0x1af)),helper=require(a27_0xc31ac9(0x194)),PerformanceTester=require(a27_0xc31ac9(0x184)),PerformanceEvents=require(a27_0xc31ac9(0x1a9))[a27_0xc31ac9(0x19f)],{commandRepository}=require(a27_0xc31ac9(0x1ae)),BrowserstackCLI=require('../v2/browserstackCLI'),ClientTroubleShootingService=require(a27_0xc31ac9(0x1b1));function a27_0x5f06(_0x5c399b,_0x2ad93a){const _0x52b2bd=a27_0x52b2();return a27_0x5f06=function(_0x5f06bf,_0x493b89){_0x5f06bf=_0x5f06bf-0x180;let _0x102994=_0x52b2bd[_0x5f06bf];return _0x102994;},a27_0x5f06(_0x5c399b,_0x2ad93a);}class Launcher{constructor(_0x3e7c9,_0x46775b,_0x4a3f21,_0x4a42b8=[]){const _0x554842=a27_0xc31ac9,_0x53e742={'oFQvc':_0x554842(0x191),'ftoLl':function(_0x1a540a){return _0x1a540a();}},_0x397359=_0x53e742[_0x554842(0x187)]['split']('|');let _0x4342a5=0x0;while(!![]){switch(_0x397359[_0x4342a5++]){case'0':global[_0x554842(0x18c)]={};continue;case'1':global[_0x554842(0x195)]=0x0;continue;case'2':global[_0x554842(0x1a7)]=this[_0x554842(0x192)][_0x554842(0x197)]||{};continue;case'3':this['_formatter']=_0x46775b[_0x554842(0x186)];continue;case'4':this[_0x554842(0x1a2)]=_0x46775b[_0x554842(0x1a1)];continue;case'5':global[_0x554842(0x19b)]=0x0;continue;case'6':this[_0x554842(0x18f)]=_0x53e742['ftoLl'](isTestObservabilitySession);continue;case'7':global[_0x554842(0x1b2)]=0x0;continue;case'8':global['testsFailed']=0x0;continue;case'9':this[_0x554842(0x192)][_0x554842(0x182)]=_0x3e7c9;continue;case'10':this[_0x554842(0x192)]=_0x46775b[_0x554842(0x1ac)]||{};continue;case'11':this[_0x554842(0x1ab)]=_0x53e742[_0x554842(0x1a3)](isAccessibilityAutomationSession);continue;case'12':global['testsUnknown']=0x0;continue;case'13':this[_0x554842(0x193)]=_0x4a42b8;continue;case'14':global['testsSkipped']=0x0;continue;case'15':this[_0x554842(0x19e)]=_0x3e7c9;continue;case'16':global[_0x554842(0x185)]=0x0;continue;case'17':global[_0x554842(0x18b)]=this[_0x554842(0x192)]['platform'];continue;case'18':global[_0x554842(0x1b0)]=0x0;continue;case'19':!constants[_0x554842(0x18d)][_0x554842(0x19d)](_0x3e7c9)&&(commandRepository['setConfig'](_0x4a3f21),commandRepository[_0x554842(0x190)](_0x3e7c9));continue;case'20':global[_0x554842(0x1aa)]=0x0;continue;case'21':global[_0x554842(0x1a4)]=0x0;continue;case'22':this['_capability']=this[_0x554842(0x192)]['capability'];continue;case'23':this[_0x554842(0x199)]=_0x4a3f21;continue;}break;}}[a27_0xc31ac9(0x1a5)](_0x59ee79,_0x5c8dfd,_0x225512){const _0x264b07=_0x59ee79['resolvePaths'];_0x59ee79.resolvePaths=async function(){const pathResults=await _0x264b07.apply(this,arguments);if(!pathResults.requirePaths){pathResults.requirePaths=[];}pathResults.requirePaths=[path.join(__dirname,'../cucumber-js/test.setup.js')].concat(pathResults.requirePaths,path.join(__dirname,_0x225512));return pathResults;};const relativeFormatterPath=path.relative(process.cwd(),path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));const normalizedPath=relativeFormatterPath.startsWith('.')?relativeFormatterPath:`./${relativeFormatterPath}`;_0x5c8dfd.push('--format'),_0x5c8dfd.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();}});}}function a27_0x52b2(){const _0x1b471e=['framework','1203651cTsVuU','../../helpers/performance/performance-tester','testsUndefined','formatter','oFQvc','28240234YMeoqc','262166vRTHui','77heKMyp','__platform__','testsErrorMessage','AI_ENABLED_FRAMEWORK','3946983tENLcJ','_testObservability','setFramework','15|10|9|4|3|22|17|13|23|6|11|2|21|7|20|8|1|14|18|16|12|5|0|19','_configuration','_argv','../../helpers/helper','testsPending','1LlCWrr','platformCaps','7653906dNotql','_bsConfig','525832VRuHQh','testsAmbiguous','../../helpers/accessibility-automation/helper','includes','_framework','EVENTS','../utils/constants','mochaOpts','_mochaOpts','ftoLl','testSuites','setupCucumber','path','__platformCaps','45215dtDZGE','../../helpers/performance/constants','testsPassed','_accessibilityAutomation','configuration','492WyHKxN','../../helpers/ai-sdk/autoHealHelper','../../helpers/test-observability/utils','testSuitesFailed','../utils/clientTroubleshootingService','totalTests','../../helpers/test-observability/requestQueueHandler','30cReDpz'];a27_0x52b2=function(){return _0x1b471e;};return a27_0x52b2();}module.exports=Launcher;
|
|
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;
|
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_0x14804d=a28_0x4122;function a28_0x41d5(){const _0x214e6c=['25WFuxJg','slice','mZsGg','close','./loadUtils','539196MRbzoM','7sWSQKv','RvSpQ','BROWSERSTACK_ACCESS_KEY','WSIoY','fOqiM','XcgiT','debug','Received\x20','xhUUJ','1706644jrdjVE','inherit','ZMOZe','Error\x20Details:\x20','env','160747iKaROl','BROWSERSTACK_USERNAME','Configuration\x20path:\x20','\x20exited\x20with\x20code\x20','3056656RnnlIJ','path','ADLsB','ZCBnp','Error\x20details:\x20','1311708eKiVGE','sCtmR','argv','SIGQUIT','Waiting\x20for\x20child\x20process\x20to\x20exit...','Failed\x20to\x20determine\x20CLI\x20directory','lBudW','TosPh','exports','getCliDir','../v2/cliUtils','load','userName','exit','XhpBI','getExistingCliPath','Executing\x20load\x20test\x20with\x20arguments:\x20','kill','message','fTAUG',',\x20forwarding\x20to\x20child\x20process...','GythN','error','ZYnKK','\x20load\x20','readConfig','BROWSERSTACK_USER','killed','../../helpers/helper','CLI\x20binary\x20found,\x20Checking\x20for\x20CLI\x20updates','ubfLe','accessKey','../../helpers/logger','Spawning:\x20','9441657yPGHUG','checkAndUpdateCli','Authentication\x20incomplete.\x20Please\x20add\x20your\x20userName\x20and\x20accessKey\x20to\x20either\x20the\x20browserstack.yml\x20file\x20or\x20as\x20environment\x20variables,\x20then\x20try\x20running\x20the\x20command\x20again.','stringify','stack','iaOJp','Loading\x20configuration\x20using\x20environment\x20variables\x20if\x20available.','join','HWeNE','3675810InIZri','QiRGZ'];a28_0x41d5=function(){return _0x214e6c;};return a28_0x41d5();}(function(_0x14aeaa,_0x492a9d){const _0x159269=a28_0x4122,_0x1b42d6=_0x14aeaa();while(!![]){try{const _0x5b33c1=parseInt(_0x159269(0xa4))/0x1+-parseInt(_0x159269(0x9f))/0x2+parseInt(_0x159269(0xad))/0x3+parseInt(_0x159269(0xdf))/0x4*(parseInt(_0x159269(0xda))/0x5)+-parseInt(_0x159269(0xd8))/0x6*(parseInt(_0x159269(0xe0))/0x7)+-parseInt(_0x159269(0xa8))/0x8+parseInt(_0x159269(0xcf))/0x9;if(_0x5b33c1===_0x492a9d)break;else _0x1b42d6['push'](_0x1b42d6['shift']());}catch(_0x3e098b){_0x1b42d6['push'](_0x1b42d6['shift']());}}}(a28_0x41d5,0x737b4));const {spawn}=require('child_process'),path=require(a28_0x14804d(0xa9)),helper=require(a28_0x14804d(0xc9)),CLIUtils=require(a28_0x14804d(0xb7)),{getLoadConfigPath,sleep}=require(a28_0x14804d(0xde)),logger=require(a28_0x14804d(0xcd))['winstonLogger'];async function executeLoadTest(_0x248741){const _0x3530e3=a28_0x14804d,_0x70666e={'XcgiT':function(_0x13610b,_0x4c244d){return _0x13610b(_0x4c244d);},'RvSpQ':_0x3530e3(0xdd),'fOqiM':_0x3530e3(0xb1),'zvjCT':_0x3530e3(0xd5),'Comcf':function(_0x9fdd6f,_0x4b806f){return _0x9fdd6f(_0x4b806f);},'ADLsB':function(_0x20922d){return _0x20922d();},'WSIoY':_0x3530e3(0xd1),'QiRGZ':function(_0x4b4f18){return _0x4b4f18();},'TosPh':_0x3530e3(0xb2),'ZMOZe':function(_0x45b969){return _0x45b969();},'GythN':'CLI\x20binary\x20not\x20found,\x20downloading\x20latest\x20version','ubfLe':_0x3530e3(0xca),'iaOJp':function(_0x48976f){return _0x48976f();},'sCtmR':'Failed\x20to\x20download\x20or\x20locate\x20CLI\x20binary','ZCBnp':function(_0x2405c4,_0x42209d,_0x20f216,_0x228df7){return _0x2405c4(_0x42209d,_0x20f216,_0x228df7);},'HWeNE':_0x3530e3(0xb8),'mZsGg':_0x3530e3(0xa0),'xhUUJ':'SIGINT','fTAUG':'SIGTERM','lBudW':_0x3530e3(0xb0),'XhpBI':'SIGHUP'};try{const _0x4dd720=process[_0x3530e3(0xaf)][_0x3530e3(0xdb)](0x2),_0x4b89b4=_0x4dd720['slice'](0x1);logger[_0x3530e3(0x9c)](_0x3530e3(0xbd)+_0x4b89b4);let _0x20b75e={};try{logger['debug'](_0x70666e['zvjCT']);const _0x179cb0={};_0x179cb0['userName']=process['env'][_0x3530e3(0xa5)]||process[_0x3530e3(0xa3)][_0x3530e3(0xc7)],_0x179cb0['accessKey']=process[_0x3530e3(0xa3)][_0x3530e3(0xe2)]||process[_0x3530e3(0xa3)]['BROWSERSTACK_ACCESSKEY'],_0x20b75e=_0x179cb0;if(!_0x20b75e[_0x3530e3(0xb9)]||!_0x20b75e['accessKey']){const _0x39018e=_0x70666e['Comcf'](getLoadConfigPath,_0x248741[_0x3530e3(0xaf)]);logger[_0x3530e3(0x9c)](_0x3530e3(0xa6)+_0x39018e),_0x39018e&&(_0x20b75e=helper[_0x3530e3(0xc6)](_0x39018e));}}catch(_0x90a937){logger['error']('Error\x20loading\x20configuration:\x20'+_0x90a937['message']),logger[_0x3530e3(0x9c)](_0x3530e3(0xac)+(_0x90a937[_0x3530e3(0xd3)]||JSON[_0x3530e3(0xd2)](_0x90a937))),await _0x70666e[_0x3530e3(0xaa)](sleep),process[_0x3530e3(0xba)](0x1);}(!_0x20b75e[_0x3530e3(0xb9)]||!_0x20b75e[_0x3530e3(0xcc)])&&(logger[_0x3530e3(0xc3)](_0x70666e[_0x3530e3(0x99)]),await _0x70666e[_0x3530e3(0xd9)](sleep),process[_0x3530e3(0xba)](0x1));const _0x5beae8=CLIUtils[_0x3530e3(0xb6)]();!_0x5beae8&&(logger['error'](_0x70666e[_0x3530e3(0xb4)]),await _0x70666e[_0x3530e3(0xa1)](sleep),process[_0x3530e3(0xba)](0x1));let _0x46868d=CLIUtils[_0x3530e3(0xbc)](_0x5beae8);try{!_0x46868d?(logger[_0x3530e3(0x9c)](_0x70666e[_0x3530e3(0xc2)]),_0x46868d=await CLIUtils['checkAndUpdateCli']('',_0x5beae8,_0x20b75e)):(logger[_0x3530e3(0x9c)](_0x70666e[_0x3530e3(0xcb)]),_0x46868d=await CLIUtils[_0x3530e3(0xd0)](_0x46868d,_0x5beae8,_0x20b75e));}catch(_0xe5c8ce){logger[_0x3530e3(0xc3)](_0x70666e[_0x3530e3(0x99)]),logger[_0x3530e3(0x9c)](_0x3530e3(0xa2)+(_0xe5c8ce[_0x3530e3(0xd3)]||JSON[_0x3530e3(0xd2)](_0xe5c8ce))),await _0x70666e[_0x3530e3(0xd4)](sleep),process[_0x3530e3(0xba)](0x1);}!_0x46868d&&(logger[_0x3530e3(0xc3)](_0x70666e[_0x3530e3(0x99)]),logger['debug'](_0x70666e[_0x3530e3(0xae)]),await _0x70666e[_0x3530e3(0xaa)](sleep),process[_0x3530e3(0xba)](0x1));logger[_0x3530e3(0x9c)](_0x3530e3(0xce)+_0x46868d+_0x3530e3(0xc5)+_0x4b89b4[_0x3530e3(0xd6)]('\x20'));const _0x250f71=_0x70666e[_0x3530e3(0xab)](spawn,_0x46868d,[_0x70666e[_0x3530e3(0xd7)],..._0x4b89b4],{'stdio':_0x70666e[_0x3530e3(0xdc)]});let _0x11a21d=![];const _0xff4031=new Promise(_0x4cd5b5=>{const _0x565c37=_0x3530e3;_0x250f71['on'](_0x70666e[_0x565c37(0xe1)],_0x45679e=>{const _0x4eec1f=_0x565c37;logger[_0x4eec1f(0x9c)](_0x46868d+_0x4eec1f(0xa7)+_0x45679e),_0x70666e[_0x4eec1f(0x9b)](_0x4cd5b5,_0x45679e);});});[_0x70666e[_0x3530e3(0x9e)],_0x70666e[_0x3530e3(0xc0)],_0x70666e[_0x3530e3(0xb3)],_0x70666e[_0x3530e3(0xbb)]]['forEach'](_0x3cf2bc=>{const _0x180467=_0x3530e3,_0x57fcd4={};_0x57fcd4[_0x180467(0xc4)]=_0x70666e[_0x180467(0x9a)];const _0x2e4144=_0x57fcd4;process['on'](_0x3cf2bc,()=>{const _0x1e4c9e=_0x180467;if(_0x11a21d)return;_0x11a21d=!![],logger[_0x1e4c9e(0x9c)](_0x1e4c9e(0x9d)+_0x3cf2bc+_0x1e4c9e(0xc1)),_0x250f71&&!_0x250f71[_0x1e4c9e(0xc8)]&&(_0x250f71[_0x1e4c9e(0xbe)](_0x3cf2bc),logger[_0x1e4c9e(0x9c)](_0x2e4144[_0x1e4c9e(0xc4)]));});});const _0x39ea6d=await _0xff4031;await _0x70666e['ADLsB'](sleep),process[_0x3530e3(0xba)](_0x39ea6d);}catch(_0x14ba16){logger[_0x3530e3(0xc3)]('Failed\x20initiating\x20load\x20test:\x20'+_0x14ba16[_0x3530e3(0xbf)]),logger[_0x3530e3(0x9c)](_0x3530e3(0xac)+(_0x14ba16[_0x3530e3(0xd3)]||JSON[_0x3530e3(0xd2)](_0x14ba16))),await _0x70666e[_0x3530e3(0xd4)](sleep),process[_0x3530e3(0xba)](0x1);}}function a28_0x4122(_0x30c604,_0x23952d){const _0x41d59c=a28_0x41d5();return a28_0x4122=function(_0x412278,_0x4fad9e){_0x412278=_0x412278-0x99;let _0x462d3=_0x41d59c[_0x412278];return _0x462d3;},a28_0x4122(_0x30c604,_0x23952d);}module[a28_0x14804d(0xb5)]=executeLoadTest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a29_0x5625(){const _0xc0821e=['Checking\x20for:\x20','GfTwV','browserstack.yml','Ebgzu','Checking\x20for\x20config\x20file\x20with\x20arguments:\x20','error','info','170YasGUb','.yaml','config-file','4787575DnMFqp','hypfV','browserstack.yaml','liIcP','join','WKUQz','8389560JMYYlI','7171052eskzbs','debug','cwd','resolve','path','endsWith','fLdky','5676306fwUCzE','browserstack-load.yml','getLoadConfigPath','../../helpers/logger','browserstack-load.yaml','zRSrS','RJIcl','46401MiUcKH','WhKJI','.yml','Checking\x20for\x20config\x20in\x20default\x20config\x20files...','wXUTl','exports','92178kSetyw','rksrB','\x20and\x20Resolved\x20path:\x20','message','166zeqqQq','4hXfuQA','90208TTmcxx','sleep','MEnwA','Found\x20config\x20file:\x20','existsSync'];a29_0x5625=function(){return _0xc0821e;};return a29_0x5625();}const a29_0x2ecb54=a29_0x1688;(function(_0x8e1663,_0x22de66){const _0x4f3257=a29_0x1688,_0x5270f4=_0x8e1663();while(!![]){try{const _0x33f260=parseInt(_0x4f3257(0x1c6))/0x1+parseInt(_0x4f3257(0x1c4))/0x2*(-parseInt(_0x4f3257(0x1ea))/0x3)+-parseInt(_0x4f3257(0x1c5))/0x4*(-parseInt(_0x4f3257(0x1d5))/0x5)+-parseInt(_0x4f3257(0x1e3))/0x6+parseInt(_0x4f3257(0x1dc))/0x7+parseInt(_0x4f3257(0x1db))/0x8+parseInt(_0x4f3257(0x1c0))/0x9*(-parseInt(_0x4f3257(0x1d2))/0xa);if(_0x33f260===_0x22de66)break;else _0x5270f4['push'](_0x5270f4['shift']());}catch(_0x3b3d91){_0x5270f4['push'](_0x5270f4['shift']());}}}(a29_0x5625,0xaf080));const fs=require('fs'),path=require(a29_0x2ecb54(0x1e0)),logger=require(a29_0x2ecb54(0x1e6))['winstonLogger'];function getLoadConfigPath(_0x15ed85){const _0x5cface=a29_0x2ecb54,_0x541daf={};_0x541daf['hypfV']=function(_0x22286e,_0x16784f){return _0x22286e===_0x16784f;},_0x541daf[_0x5cface(0x1e8)]='load',_0x541daf[_0x5cface(0x1cc)]=function(_0x5998ab,_0x2e3f68){return _0x5998ab===_0x2e3f68;},_0x541daf[_0x5cface(0x1e9)]='run',_0x541daf[_0x5cface(0x1ee)]=_0x5cface(0x1d4),_0x541daf[_0x5cface(0x1c8)]=_0x5cface(0x1ec),_0x541daf['rksrB']=_0x5cface(0x1d3),_0x541daf[_0x5cface(0x1e2)]=_0x5cface(0x1e4),_0x541daf[_0x5cface(0x1da)]=_0x5cface(0x1e7),_0x541daf['liIcP']=_0x5cface(0x1cd),_0x541daf[_0x5cface(0x1eb)]=_0x5cface(0x1d7),_0x541daf['Ebgzu']=_0x5cface(0x1ed);const _0x157079=_0x541daf;logger['debug'](_0x5cface(0x1cf)+JSON['stringify'](_0x15ed85));try{const _0x260f30=_0x15ed85['_']||[],_0x5b6224=_0x157079[_0x5cface(0x1d6)](_0x15ed85['_'][0x0],_0x157079[_0x5cface(0x1e8)])&&_0x157079['GfTwV'](_0x15ed85['subcommand'],_0x157079[_0x5cface(0x1e9)]);if(_0x5b6224){if(_0x15ed85[_0x157079[_0x5cface(0x1ee)]]||_0x15ed85['cf']){const _0x3c102f=_0x15ed85[_0x157079[_0x5cface(0x1ee)]]||_0x15ed85['cf'],_0x396cb5=path[_0x5cface(0x1df)](_0x3c102f);logger['debug']('Config\x20file\x20specified:\x20'+_0x3c102f+_0x5cface(0x1c2)+_0x396cb5);if(_0x396cb5[_0x5cface(0x1e1)](_0x157079[_0x5cface(0x1c8)])||_0x396cb5['endsWith'](_0x157079[_0x5cface(0x1c1)]))return logger[_0x5cface(0x1d1)]('Using\x20specified\x20config\x20file:\x20'+_0x396cb5),_0x396cb5;}}const _0x27c989=[_0x157079[_0x5cface(0x1e2)],_0x157079[_0x5cface(0x1da)],_0x157079[_0x5cface(0x1d8)],_0x157079['WhKJI']];logger['debug'](_0x157079[_0x5cface(0x1ce)]);for(const _0x1e2006 of _0x27c989){const _0x1257d9=path[_0x5cface(0x1d9)](process[_0x5cface(0x1de)](),_0x1e2006);logger['debug'](_0x5cface(0x1cb)+_0x1257d9);if(fs[_0x5cface(0x1ca)](_0x1257d9))return logger[_0x5cface(0x1dd)](_0x5cface(0x1c9)+_0x1257d9),_0x1257d9;}}catch(_0x26a770){logger[_0x5cface(0x1d0)]('Failed\x20to\x20load\x20browserstack\x20config:\x20'+_0x26a770[_0x5cface(0x1c3)]);}}function a29_0x1688(_0x453d8f,_0xed172c){const _0x5625d9=a29_0x5625();return a29_0x1688=function(_0x168867,_0x12d713){_0x168867=_0x168867-0x1bf;let _0x3cc549=_0x5625d9[_0x168867];return _0x3cc549;},a29_0x1688(_0x453d8f,_0xed172c);}function sleep(){return new Promise(_0x11328f=>setTimeout(_0x11328f,0x64));}const a29_0x57384b={};a29_0x57384b[a29_0x2ecb54(0x1e5)]=getLoadConfigPath,a29_0x57384b[a29_0x2ecb54(0x1c7)]=sleep,module[a29_0x2ecb54(0x1bf)]=a29_0x57384b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x15043f=a30_0x3596;function a30_0x3596(_0x9f9ced,_0x100acf){const _0x22829a=a30_0x2282();return a30_0x3596=function(_0x35967a,_0x10526b){_0x35967a=_0x35967a-0x6c;let _0xb97a20=_0x22829a[_0x35967a];return _0xb97a20;},a30_0x3596(_0x9f9ced,_0x100acf);}(function(_0x2a3958,_0x51b7f7){const _0x5513ad=a30_0x3596,_0x418864=_0x2a3958();while(!![]){try{const _0x591c3b=-parseInt(_0x5513ad(0xb7))/0x1+-parseInt(_0x5513ad(0x71))/0x2*(-parseInt(_0x5513ad(0xc0))/0x3)+parseInt(_0x5513ad(0x9f))/0x4*(-parseInt(_0x5513ad(0xb9))/0x5)+-parseInt(_0x5513ad(0x98))/0x6+-parseInt(_0x5513ad(0xc9))/0x7+-parseInt(_0x5513ad(0x7a))/0x8+parseInt(_0x5513ad(0xc3))/0x9;if(_0x591c3b===_0x51b7f7)break;else _0x418864['push'](_0x418864['shift']());}catch(_0x4ae891){_0x418864['push'](_0x418864['shift']());}}}(a30_0x2282,0xd0587));const path=require(a30_0x15043f(0x93)),os=require('os'),util=require(a30_0x15043f(0x8d)),bsSetupHelper=require(a30_0x15043f(0xa7)),globals=require(a30_0x15043f(0x87)),accessibilityHelper=require('../../../helpers/accessibility-automation/helper'),logger=require(a30_0x15043f(0xbe))[a30_0x15043f(0x6e)];exports[a30_0x15043f(0x7f)]=_0x68453b=>{const _0x4f9402=a30_0x15043f,_0x1f8e60={};_0x1f8e60[_0x4f9402(0xa4)]=function(_0x351750,_0x23462b){return _0x351750>_0x23462b;},_0x1f8e60['TOXZt']=function(_0x236137,_0x367c7d){return _0x236137>_0x367c7d;},_0x1f8e60['pRuYR']=_0x4f9402(0xa6),_0x1f8e60[_0x4f9402(0x70)]=_0x4f9402(0x8a),_0x1f8e60[_0x4f9402(0xb0)]=_0x4f9402(0x88),_0x1f8e60['EsbBR']='browserstack.accessibilityOptions';const _0x28e4e7=_0x1f8e60;try{const _0x117fde=_0x28e4e7['sHEsj'](Object[_0x4f9402(0x89)](_0x68453b[_0x4f9402(0x91)])['length'],0x0)?_0x68453b[_0x4f9402(0x91)]:_0x28e4e7[_0x4f9402(0x79)](Object[_0x4f9402(0x89)](_0x68453b[_0x4f9402(0x7e)])[_0x4f9402(0x90)],0x0)?_0x68453b[_0x4f9402(0x7e)][0x0]:{};if(_0x117fde[_0x28e4e7[_0x4f9402(0x76)]]&&_0x117fde[_0x28e4e7[_0x4f9402(0x76)]]['accessibility']||_0x68453b[_0x4f9402(0x91)][_0x28e4e7[_0x4f9402(0x70)]]){globals[_0x4f9402(0xbb)](_0x28e4e7['YGcJJ'],!![]);if(_0x117fde[_0x28e4e7[_0x4f9402(0x76)]]){if(_0x117fde[_0x28e4e7[_0x4f9402(0x76)]][_0x4f9402(0xad)])_0x117fde[_0x28e4e7['pRuYR']][_0x4f9402(0xad)]['authToken']=process[_0x4f9402(0xb3)]['BS_A11Y_JWT'];else{const _0x1fdb43={};_0x1fdb43[_0x4f9402(0xc6)]=process['env']['BS_A11Y_JWT'],_0x117fde[_0x28e4e7[_0x4f9402(0x76)]]['accessibilityOptions']=_0x1fdb43;}_0x117fde[_0x28e4e7[_0x4f9402(0x76)]]['accessibilityOptions']['scannerVersion']=JSON[_0x4f9402(0x72)](process['env'][_0x4f9402(0x8c)])[_0x4f9402(0x80)];}else{if(_0x68453b[_0x4f9402(0x91)][_0x28e4e7[_0x4f9402(0x70)]]){if(_0x117fde[_0x28e4e7['EsbBR']])_0x117fde[_0x28e4e7[_0x4f9402(0xc2)]][_0x4f9402(0xc6)]=process[_0x4f9402(0xb3)]['BS_A11Y_JWT'];else{const _0x5853a3={};_0x5853a3[_0x4f9402(0xc6)]=process['env']['BS_A11Y_JWT'],_0x117fde[_0x28e4e7[_0x4f9402(0xc2)]]=_0x5853a3;}_0x117fde[_0x28e4e7['EsbBR']][_0x4f9402(0x80)]=JSON[_0x4f9402(0x72)](process[_0x4f9402(0xb3)][_0x4f9402(0x8c)])[_0x4f9402(0x80)];}}}}catch(_0x58c1f0){logger[_0x4f9402(0x75)](_0x4f9402(0xa1)+_0x58c1f0);}},exports['setExtension']=(_0x42b4e2,_0x6ddce6)=>{const _0x520bca=a30_0x15043f,_0x491ce9={};_0x491ce9[_0x520bca(0x99)]=_0x520bca(0xa6),_0x491ce9[_0x520bca(0x8b)]=function(_0x1a05a3,_0x51b6a0){return _0x1a05a3!==_0x51b6a0;},_0x491ce9[_0x520bca(0xaf)]='Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.',_0x491ce9[_0x520bca(0xc1)]=_0x520bca(0xbf),_0x491ce9['YitVg']=_0x520bca(0xc7),_0x491ce9[_0x520bca(0x7d)]=_0x520bca(0xa9),_0x491ce9[_0x520bca(0x85)]='selenium-webdriver/chrome.js',_0x491ce9[_0x520bca(0xae)]=_0x520bca(0x83),_0x491ce9[_0x520bca(0xc4)]='options_',_0x491ce9[_0x520bca(0x81)]='args',_0x491ce9[_0x520bca(0x95)]=_0x520bca(0xbd),_0x491ce9[_0x520bca(0x9d)]=_0x520bca(0x94),_0x491ce9[_0x520bca(0x86)]=_0x520bca(0xb8);const _0x540912=_0x491ce9;try{const _0xa6d52c=_0x6ddce6[_0x520bca(0x91)]||{},_0x54c5ed=(_0xa6d52c[_0x540912['XgqFf']]?_0xa6d52c[_0x540912[_0x520bca(0x99)]][_0x520bca(0x6c)]:_0xa6d52c[_0x520bca(0xb5)])||'';if(_0x540912[_0x520bca(0x8b)](_0x54c5ed,''))return logger[_0x520bca(0xc5)](_0x540912[_0x520bca(0xaf)]),![];const _0x3c9dc8=_0xa6d52c[_0x520bca(0xaa)]||_0x42b4e2[_0x520bca(0x7b)][_0x520bca(0xb6)](),_0x5e3096=_0xa6d52c[_0x520bca(0x9e)]||_0xa6d52c[_0x520bca(0xa3)]||_0x42b4e2[_0x520bca(0x7b)][_0x520bca(0x9c)]();if(!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x3c9dc8))return logger[_0x520bca(0xc5)](_0x540912['VclYy']),![];if(!bsSetupHelper[_0x520bca(0xba)](_0x5e3096)&&_0x540912[_0x520bca(0x8b)](_0x5e3096,_0x540912['YitVg'])){const _0x52b4fd=bsSetupHelper[_0x520bca(0x6f)](),_0x1cb9a5=accessibilityHelper[_0x520bca(0x8e)](_0x3c9dc8,_0x52b4fd),_0x2c87fc=accessibilityHelper[_0x520bca(0x9b)](_0x3c9dc8);if(!accessibilityHelper[_0x520bca(0x96)](_0x5e3096,_0x1cb9a5)){const _0x3b36d6=_0x52b4fd?'':_0x540912[_0x520bca(0x7d)];return logger[_0x520bca(0xc5)](_0x520bca(0x97)+_0x2c87fc+_0x520bca(0xb2)+_0x1cb9a5+_0x520bca(0x73)+_0x3b36d6+'.'),![];}}if(!accessibilityHelper[_0x520bca(0xa8)](_0x3c9dc8))return!![];let _0x432647;try{_0x432647=bsSetupHelper[_0x520bca(0xbc)](_0x540912['aRsHI'],_0x540912[_0x520bca(0xae)]);}catch(_0x124ffc){return![];}const _0xdbfcfc=new _0x432647['Options'](_0x42b4e2[_0x520bca(0x84)]),_0x13f202=bsSetupHelper['nestedKeyValue'](_0xdbfcfc,[_0x540912[_0x520bca(0xc4)],_0x540912['WtFmZ']])||bsSetupHelper[_0x520bca(0x6d)](_0x42b4e2[_0x520bca(0x7b)]['get'](_0x540912[_0x520bca(0x99)]),[_0x540912['kMnAQ'],_0x540912[_0x520bca(0x81)]])||bsSetupHelper[_0x520bca(0x6d)](_0x42b4e2[_0x520bca(0x7b)][_0x520bca(0xa5)](_0x540912['kMnAQ']),[_0x540912[_0x520bca(0x81)]])||bsSetupHelper['nestedKeyValue'](_0x42b4e2[_0x520bca(0x7b)][_0x520bca(0xa5)](_0x540912[_0x520bca(0x9d)]),[_0x540912[_0x520bca(0x81)]])||[],_0x5dfb7f=Array[_0x520bca(0x9a)](_0x13f202)?_0x13f202:[];if(_0x5dfb7f[_0x520bca(0xab)](_0x490232=>typeof _0x490232===_0x520bca(0x74)&&(_0x490232===_0x520bca(0x77)||_0x490232['startsWith'](_0x520bca(0xc8))&&_0x490232!==_0x520bca(0xac))))return logger[_0x520bca(0xc5)](_0x540912[_0x520bca(0x86)]),![];return!![];}catch(_0x1e879a){logger['debug'](_0x520bca(0x78)+util[_0x520bca(0x92)](_0x1e879a));}return![];},exports['fetchPlatformDetails']=async _0x1d7944=>{const _0x1490a6=a30_0x15043f,_0x1b17db={};_0x1b17db[_0x1490a6(0x8f)]=function(_0x2bffc0,_0x1bca9a){return _0x2bffc0===_0x1bca9a;},_0x1b17db[_0x1490a6(0xa2)]='browserstack';const _0x3d8b07=_0x1b17db;let _0xf980c0={};try{const _0x461d2c=await _0x1d7944[_0x1490a6(0xb4)]();_0xf980c0={'os_name':_0x461d2c[_0x1490a6(0xb1)](),'os_version':bsSetupHelper[_0x1490a6(0xa0)](_0x3d8b07[_0x1490a6(0x8f)](global[_0x1490a6(0x7c)],_0x3d8b07[_0x1490a6(0xa2)])),'browser_name':_0x461d2c[_0x1490a6(0xb6)](),'browser_version':_0x461d2c[_0x1490a6(0x9c)]()};}catch(_0x473fbb){logger[_0x1490a6(0x75)](_0x1490a6(0x82)+_0x473fbb);}return _0xf980c0;};function a30_0x2282(){const _0x396ace=['../../../helpers/logger','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','247704QVtLiD','VclYy','EsbBR','50474880mpnCGf','fHyRn','warn','authToken','latest','--headless=','6708030NRiGbm','deviceName','nestedKeyValue','winstonLogger','isBrowserstackInfra','piYzp','10uorktt','parse','\x20or\x20higher\x20','string','debug','pRuYR','--headless','Exception\x20in\x20setExtension\x20Error:\x20','TOXZt','7232976tFrYTl','capabilities_','__cloud_provider___','smtWo','capabilities','setAccessibilityCapabilities','scannerVersion','WtFmZ','Exception\x20in\x20fetching\x20platform\x20details\x20with\x20error\x20:\x20','selenium-webdriver','chromeOptions_','aRsHI','jwpnK','../../../helpers/globals','isAccessibilityPlatform','keys','browserstack.accessibility','XQHPv','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','util','getMinVersionForBrowser','wxDPn','length','capability','format','path','goog:chromeOptions','kMnAQ','isVersionSupported','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','6677976HpBbvO','XgqFf','isArray','getBrowserDisplayName','getBrowserVersion','aNCly','browserVersion','1954876LtTtiY','getPlatformVersion','Exception\x20while\x20setting\x20Accessibility\x20Automation\x20capabilities.\x20Error\x20','fMRoY','browser_version','sHEsj','get','bstack:options','../../../helpers/helper','requiresChromeOptionsValidation','on\x20non-BrowserStack\x20infrastructure\x20','browserName','some','--headless=new','accessibilityOptions','jYOIB','VYiRN','YGcJJ','getPlatform','\x20browser\x20version\x20','env','getCapabilities','device','getBrowserName','1703650gxUdIO','Accessibility\x20Automation\x20will\x20not\x20run\x20on\x20legacy\x20headless\x20mode.\x20Switch\x20to\x20new\x20headless\x20mode\x20or\x20avoid\x20using\x20headless\x20mode.','5CbZIDF','isUndefined','setGlobal','requireModule','chromeOptions'];a30_0x2282=function(){return _0x396ace;};return a30_0x2282();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a31_0x9d265b=a31_0x5ff8;(function(_0x16f953,_0xadcc59){const _0x4c6010=a31_0x5ff8,_0x55fa80=_0x16f953();while(!![]){try{const _0x1d38c4=-parseInt(_0x4c6010(0x108))/0x1+parseInt(_0x4c6010(0x104))/0x2+parseInt(_0x4c6010(0x170))/0x3*(parseInt(_0x4c6010(0x200))/0x4)+-parseInt(_0x4c6010(0x152))/0x5+parseInt(_0x4c6010(0x1cd))/0x6+parseInt(_0x4c6010(0x144))/0x7+-parseInt(_0x4c6010(0x210))/0x8*(parseInt(_0x4c6010(0x142))/0x9);if(_0x1d38c4===_0xadcc59)break;else _0x55fa80['push'](_0x55fa80['shift']());}catch(_0x29e55c){_0x55fa80['push'](_0x55fa80['shift']());}}}(a31_0x29c6,0xf14ba));function a31_0x5ff8(_0x57c630,_0x36b756){const _0x29c6a5=a31_0x29c6();return a31_0x5ff8=function(_0x5ff811,_0x4e8b8f){_0x5ff811=_0x5ff811-0xcf;let _0x68b89b=_0x29c6a5[_0x5ff811];return _0x68b89b;},a31_0x5ff8(_0x57c630,_0x36b756);}const util=require('util'),fs=require('fs'),path=require(a31_0x9d265b(0x188)),{requireModule,getCentralUser}=require(a31_0x9d265b(0xe0)),Base=requireModule(a31_0x9d265b(0x1fe),a31_0x9d265b(0xd7)),utils=requireModule(a31_0x9d265b(0x20c),a31_0x9d265b(0xd7)),color=Base[a31_0x9d265b(0xe1)],Mocha=requireModule(a31_0x9d265b(0xd7)),Runnable=requireModule(a31_0x9d265b(0x103),a31_0x9d265b(0xd7)),{v4:uuidv4}=require(a31_0x9d265b(0xee)),bsSetupHelper=require(a31_0x9d265b(0xe0)),testhubUtils=require(a31_0x9d265b(0xd0)),centralScannerUtils=require(a31_0x9d265b(0x14e)),testHubConstants=require('../../../helpers/testhub/constants'),{FRAMEWORKS}=require(a31_0x9d265b(0x1d6)),globals=require(a31_0x9d265b(0x13c)),logger=require(a31_0x9d265b(0xef))['winstonLogger'],TestMetadata=require(a31_0x9d265b(0x107)),a31_0x36d6e6={};a31_0x36d6e6[a31_0x9d265b(0x155)]=a31_0x9d265b(0x1fa),a31_0x36d6e6[a31_0x9d265b(0x1d4)]=a31_0x9d265b(0x204),a31_0x36d6e6['before\x20each']=a31_0x9d265b(0x20a),a31_0x36d6e6[a31_0x9d265b(0x1bf)]=a31_0x9d265b(0x1b7);const HOOK_TYPES_MAP=a31_0x36d6e6,{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_0x9d265b(0x15f)][a31_0x9d265b(0x14a)],{STATE_PASSED,STATE_PENDING,STATE_FAILED}=Runnable[a31_0x9d265b(0x14a)],{getTestEnv,getHookDetails,getHooksForTest,mapTestHooks,getHookSkippedTests}=require(a31_0x9d265b(0x1ec)),{consoleHolder}=require(a31_0x9d265b(0x1d6)),SessionHandler=require(a31_0x9d265b(0x13b)),{isTestObservabilitySession,PathHelper,debug,failureData}=require(a31_0x9d265b(0x1eb)),RequestQueueHandler=require(a31_0x9d265b(0x137)),constants=require(a31_0x9d265b(0x1d5)),requestQueueHandler=RequestQueueHandler['getInstance']();class MyReporter{constructor(_0x1b461f,_0x27a8c4){const _0x1a4995=a31_0x9d265b,_0x3a7c68={'YpfVu':function(_0xd66272,_0x31b0b6){return _0xd66272===_0x31b0b6;},'HMnAa':_0x1a4995(0xe6),'sHlEO':function(_0x3f6731,_0x4a0d82){return _0x3f6731===_0x4a0d82;},'tFFOh':function(_0x11921e,_0x28373e){return _0x11921e+_0x28373e;},'VsHTe':function(_0x5f49b8,_0x50d078,_0x4689d9){return _0x5f49b8(_0x50d078,_0x4689d9);},'FSNXp':_0x1a4995(0x206),'Gzqdy':'%s\x20','NyMrU':'light','XXPPC':_0x1a4995(0x1e4),'FnCsm':'RUNNING','lnOMl':'doc','XBzQl':function(_0x5b226a){return _0x5b226a();},'cwqPE':_0x1a4995(0x184),'RbIOk':function(_0x5353d8,_0x5ce5a8){return _0x5353d8===_0x5ce5a8;},'ZWsll':_0x1a4995(0x1b2),'sNLvl':function(_0x5a3fbc,_0x2daaeb){return _0x5a3fbc===_0x2daaeb;},'vtDGc':_0x1a4995(0x1e5),'aAxCF':_0x1a4995(0x1c7),'yVPQX':function(_0x542611,_0x51cc61,_0x3c9888){return _0x542611(_0x51cc61,_0x3c9888);},'TSGIF':'checkmark','ucBdc':'pass','PyxLb':_0x1a4995(0xf2),'pOZxB':function(_0x23a113,_0x319020){return _0x23a113+_0x319020;},'LKxvR':function(_0x1eedde,_0x59f5df){return _0x1eedde+_0x59f5df;},'IeWDU':_0x1a4995(0x198),'DEKsc':function(_0x591c03,_0x5b9f7b){return _0x591c03+_0x5b9f7b;},'ZkSjf':_0x1a4995(0x1f7),'dvQzE':_0x1a4995(0x118),'ROVRB':function(_0x2941ba,_0x3dd047){return _0x2941ba===_0x3dd047;},'LWqYD':'bright\x20yellow','ZOLwN':_0x1a4995(0x1b6),'xCLOb':function(_0x10d6b3,_0x1d5fdb){return _0x10d6b3===_0x1d5fdb;},'PLzhR':_0x1a4995(0x1fd),'SVVPH':_0x1a4995(0x105),'CWEly':function(_0x3f333a,_0x3114c6){return _0x3f333a===_0x3114c6;},'kSmHl':function(_0x1ad678,_0x4f9e68){return _0x1ad678===_0x4f9e68;},'RDFcd':function(_0x526533,_0x3ae6c4){return _0x526533===_0x3ae6c4;},'uCxpG':function(_0x414ca2,_0x169847){return _0x414ca2===_0x169847;},'nhTUE':_0x1a4995(0x1ea),'qTCEC':function(_0x3781c5,_0x58ca01){return _0x3781c5===_0x58ca01;},'qyYTD':_0x1a4995(0x17b),'RVSjt':function(_0x13223f,_0x3afd1b){return _0x13223f===_0x3afd1b;},'cjVJn':function(_0xccdd16){return _0xccdd16();},'mSPBD':'TestRunSkipped','sXpOV':function(_0x48d205,_0x34a64d){return _0x48d205(_0x34a64d);},'CDBYc':function(_0x5bc8f3){return _0x5bc8f3();},'pEPYl':function(_0x302a9a){return _0x302a9a();},'hDRBw':'xunit','gsztO':_0x1a4995(0xd7),'YUoQX':function(_0x38c2f0,_0x4e3a65){return _0x38c2f0(_0x4e3a65);},'RXSNb':function(_0x696a43,_0x5d28eb){return _0x696a43===_0x5d28eb;},'tTgug':function(_0x124566,_0x31b72){return _0x124566(_0x31b72);},'sXNtw':function(_0x49ce1,_0xd8297f){return _0x49ce1!==_0xd8297f;}};this[_0x1a4995(0x189)]=_0x27a8c4['reporterOption'][_0x1a4995(0x189)],this[_0x1a4995(0x1aa)]=_0x3a7c68[_0x1a4995(0x1d7)](isTestObservabilitySession),Base[_0x1a4995(0xf4)](this,_0x1b461f,_0x27a8c4),this[_0x1a4995(0x185)]=0x0,this[_0x1a4995(0xf3)]=0x0,this['results']=[],this[_0x1a4995(0xf5)]=[],this['suiteCount']=0x0,this['_buildCreated']=![],this[_0x1a4995(0x15a)]=[],this[_0x1a4995(0x145)]=_0x3a7c68[_0x1a4995(0x18a)](getTestEnv),this[_0x1a4995(0x140)]=new PathHelper({'cwd':process['cwd']()},this['_testEnv'][_0x1a4995(0x141)]),this[_0x1a4995(0x164)]=_0x27a8c4['reporterOption'][_0x1a4995(0x1d2)],this[_0x1a4995(0x1e6)]();_0x3a7c68['RVSjt'](this[_0x1a4995(0x189)],_0x3a7c68[_0x1a4995(0x1e9)])&&(this[_0x1a4995(0x20d)]='',this[_0x1a4995(0x139)]=0x2);_0x1b461f[_0x1a4995(0x195)](EVENT_RUN_BEGIN,async()=>{const _0x29040e=_0x1a4995;_0x3a7c68['YpfVu'](this[_0x29040e(0x189)],_0x3a7c68[_0x29040e(0x132)])&&Base['consoleLog']();})['on'](EVENT_SUITE_BEGIN,_0x56a9d8=>{const _0x4934e8=_0x1a4995;if(_0x56a9d8[_0x4934e8(0x202)])return;if(_0x3a7c68['sHlEO'](this[_0x4934e8(0x189)],_0x3a7c68[_0x4934e8(0x132)]))this[_0x4934e8(0x205)](),Base[_0x4934e8(0x116)](_0x3a7c68[_0x4934e8(0x17a)](_0x3a7c68[_0x4934e8(0x17a)](this[_0x4934e8(0x1a5)](),_0x3a7c68[_0x4934e8(0x17e)](color,_0x3a7c68[_0x4934e8(0x18d)],_0x3a7c68[_0x4934e8(0x1a1)])),_0x3a7c68[_0x4934e8(0x17e)](color,_0x3a7c68[_0x4934e8(0x124)],_0x3a7c68['XXPPC'])),_0x3a7c68[_0x4934e8(0x1a0)],_0x56a9d8['title'],global[_0x4934e8(0x115)]);else _0x3a7c68['sHlEO'](this['type'],_0x3a7c68['lnOMl'])&&(this[_0x4934e8(0x1c4)](this[_0x4934e8(0x1a5)]()+'<section\x20class=\x22suite\x22>'),++this[_0x4934e8(0x139)],this[_0x4934e8(0x1c4)](this[_0x4934e8(0x1a5)]()+_0x4934e8(0x148)+utils[_0x4934e8(0x19c)](_0x56a9d8[_0x4934e8(0x1da)]+_0x4934e8(0x181)+global[_0x4934e8(0x115)])+_0x4934e8(0x14b)),this[_0x4934e8(0x1c4)](this[_0x4934e8(0x1a5)]()+_0x4934e8(0x1c9)));})['on'](EVENT_HOOK_BEGIN,async _0x2122c6=>{const _0x2fd357=_0x1a4995;if(_0x3a7c68[_0x2fd357(0xf9)](testhubUtils[_0x2fd357(0xdf)](testHubConstants[_0x2fd357(0xcf)][_0x2fd357(0x168)]),!![])){if(!_0x2122c6[_0x2fd357(0x151)])_0x2122c6[_0x2fd357(0x151)]=_0x3a7c68[_0x2fd357(0x12a)](uuidv4);else _0x2122c6[_0x2fd357(0x1ed)]&&(_0x2122c6[_0x2fd357(0x151)]=_0x3a7c68[_0x2fd357(0x12a)](uuidv4),delete _0x2122c6[_0x2fd357(0x1ed)]);_0x2122c6[_0x2fd357(0x194)]=new Date()[_0x2fd357(0x17f)](),this[_0x2fd357(0x147)]=_0x2122c6,await this['sendTestRunEvent'](_0x2122c6,undefined,![],_0x3a7c68[_0x2fd357(0x1ae)]);}})['on'](EVENT_HOOK_END,async _0x3dbee2=>{const _0x58f342=_0x1a4995;_0x3a7c68[_0x58f342(0xd6)](testhubUtils[_0x58f342(0xdf)](testHubConstants[_0x58f342(0xcf)]['HookFinished']),!![])&&(!_0x3dbee2[_0x58f342(0x1ed)]&&(_0x3dbee2[_0x58f342(0x1ed)]=!![],await this[_0x58f342(0x125)](_0x3dbee2,undefined,![],_0x3a7c68[_0x58f342(0xda)])));})['on'](EVENT_SUITE_END,_0x77bfb7=>{const _0x5800a4=_0x1a4995,_0x410458={'NbTVA':function(_0x211a3f,_0x56b38c){const _0x5cb3ea=a31_0x5ff8;return _0x3a7c68[_0x5cb3ea(0xed)](_0x211a3f,_0x56b38c);},'xEqig':_0x3a7c68['vtDGc'],'CCHnl':_0x3a7c68[_0x5800a4(0x11d)],'cqoBh':function(_0x3079c7,_0x2e241e){const _0x4cd9d8=_0x5800a4;return _0x3a7c68[_0x4cd9d8(0x17a)](_0x3079c7,_0x2e241e);},'ofCNO':function(_0x11a2ac,_0x8232c2,_0x2150af){const _0x4fd2a0=_0x5800a4;return _0x3a7c68[_0x4fd2a0(0xeb)](_0x11a2ac,_0x8232c2,_0x2150af);},'ZhRgq':_0x3a7c68[_0x5800a4(0xd9)],'ufWFy':_0x3a7c68[_0x5800a4(0xdd)],'RgIQS':_0x3a7c68[_0x5800a4(0x203)],'avoOf':function(_0x47a8c0,_0x1532b4){const _0x552380=_0x5800a4;return _0x3a7c68[_0x552380(0x17a)](_0x47a8c0,_0x1532b4);},'xXRsW':function(_0x5553b9,_0x1b60f0){const _0x529e73=_0x5800a4;return _0x3a7c68[_0x529e73(0x15b)](_0x5553b9,_0x1b60f0);},'rEgQp':function(_0x561909,_0x4886eb){return _0x3a7c68['LKxvR'](_0x561909,_0x4886eb);},'KQAMU':function(_0x2c3307,_0x2aed32){return _0x3a7c68['pOZxB'](_0x2c3307,_0x2aed32);},'IYnzc':function(_0x3012a7,_0x3a1902,_0x21471a){const _0x3a9050=_0x5800a4;return _0x3a7c68[_0x3a9050(0xeb)](_0x3012a7,_0x3a1902,_0x21471a);},'RPYmy':_0x3a7c68[_0x5800a4(0x1ff)],'ohcxm':function(_0x1220b5,_0x1460cd){return _0x3a7c68['DEKsc'](_0x1220b5,_0x1460cd);},'LlxQX':_0x3a7c68[_0x5800a4(0x1c3)],'YtSEV':_0x3a7c68['dvQzE']};if(_0x77bfb7[_0x5800a4(0x202)])return;if(_0x3a7c68['ROVRB'](this[_0x5800a4(0x189)],_0x3a7c68[_0x5800a4(0x132)]))Base[_0x5800a4(0x116)](),Base[_0x5800a4(0x116)](_0x3a7c68[_0x5800a4(0x17a)](_0x3a7c68[_0x5800a4(0xe2)](this[_0x5800a4(0x1a5)](),_0x3a7c68[_0x5800a4(0x17e)](color,_0x3a7c68[_0x5800a4(0x100)],_0x3a7c68['Gzqdy'])),_0x3a7c68['VsHTe'](color,_0x3a7c68[_0x5800a4(0x124)],_0x3a7c68['XXPPC'])),_0x3a7c68[_0x5800a4(0x146)],_0x77bfb7['title'],global['__platform__']),this[_0x5800a4(0x1b8)][_0x5800a4(0xfe)](_0x19efe0=>{const _0x48c854=_0x5800a4;if(_0x410458[_0x48c854(0xd5)](_0x19efe0[_0x48c854(0x11e)],_0x410458[_0x48c854(0x113)])){var _0x5adcac;_0x410458[_0x48c854(0xd5)](_0x19efe0[_0x48c854(0x192)],_0x410458[_0x48c854(0x1cb)])?(_0x5adcac=_0x410458[_0x48c854(0xd3)](_0x410458[_0x48c854(0xd3)](this[_0x48c854(0x1a5)](),_0x410458[_0x48c854(0x173)](color,_0x410458[_0x48c854(0x153)],_0x410458['cqoBh']('\x20\x20',Base[_0x48c854(0x1a3)]['ok']))),_0x410458[_0x48c854(0x173)](color,_0x410458[_0x48c854(0xf7)],_0x410458[_0x48c854(0x1c0)])),Base[_0x48c854(0x116)](_0x5adcac,_0x19efe0[_0x48c854(0x1da)])):(_0x5adcac=_0x410458[_0x48c854(0x1d1)](_0x410458[_0x48c854(0x1d0)](_0x410458['rEgQp'](this['indent'](),_0x410458['ofCNO'](color,_0x410458['ZhRgq'],_0x410458[_0x48c854(0x1cf)]('\x20\x20',Base[_0x48c854(0x1a3)]['ok']))),_0x410458['ofCNO'](color,_0x410458[_0x48c854(0xf7)],_0x410458[_0x48c854(0x1c0)])),_0x410458[_0x48c854(0x1ac)](color,_0x19efe0[_0x48c854(0x192)],_0x410458[_0x48c854(0x199)])),Base['consoleLog'](_0x5adcac,_0x19efe0['title'],_0x19efe0[_0x48c854(0x1b9)]));}else Base['consoleLog'](_0x410458[_0x48c854(0x20f)](this[_0x48c854(0x1a5)](),_0x410458[_0x48c854(0x1ac)](color,_0x410458[_0x48c854(0x129)],_0x410458[_0x48c854(0x121)])),++this[_0x48c854(0xf3)],_0x19efe0[_0x48c854(0x1da)]);}),this[_0x5800a4(0x1c5)]();else _0x3a7c68[_0x5800a4(0xd6)](this[_0x5800a4(0x189)],_0x3a7c68['lnOMl'])&&(this[_0x5800a4(0x1c4)](this[_0x5800a4(0x1a5)]()+_0x5800a4(0x10a)),--this['__indents'],this[_0x5800a4(0x1c4)](this['indent']()+_0x5800a4(0x1e7)),--this['__indents']);Array[_0x5800a4(0x171)][_0x5800a4(0x123)][_0x5800a4(0x1d3)](this[_0x5800a4(0xf5)],this[_0x5800a4(0x1b8)]),this[_0x5800a4(0x1b8)]=[];})['on'](EVENT_TEST_PASS,async _0x5376bb=>{const _0x335f87=_0x1a4995;this['results'][_0x335f87(0x123)]({'speed':_0x5376bb[_0x335f87(0x192)],'suite':_0x5376bb['parent'][_0x335f87(0x1da)],'title':_0x5376bb[_0x335f87(0x1da)],'fullTitle':_0x5376bb['fullTitle'](),'duration':_0x5376bb[_0x335f87(0x1b9)],'state':_0x5376bb[_0x335f87(0x11e)],'err':{},'currentRetry':_0x5376bb[_0x335f87(0x162)](),'titlePathV':_0x5376bb[_0x335f87(0x16b)](),'isPending':_0x5376bb[_0x335f87(0x167)]()});if(_0x3a7c68['xCLOb'](this[_0x335f87(0x189)],_0x3a7c68['PLzhR']))_0x3a7c68[_0x335f87(0x16f)](_0x5376bb['speed'],_0x3a7c68[_0x335f87(0x209)])?process[_0x335f87(0xfa)][_0x335f87(0xdc)](Base[_0x335f87(0xe1)](_0x3a7c68[_0x335f87(0x100)],Base[_0x335f87(0x1a3)][_0x335f87(0x1fd)])):process[_0x335f87(0xfa)][_0x335f87(0xdc)](Base[_0x335f87(0xe1)](_0x5376bb[_0x335f87(0x192)],Base['symbols'][_0x335f87(0x1fd)]));else{if(_0x3a7c68[_0x335f87(0x1fc)](this[_0x335f87(0x189)],_0x3a7c68[_0x335f87(0x1e9)])){this['docAppend'](this[_0x335f87(0x1a5)]()+'\x20\x20<dt>'+utils[_0x335f87(0x19c)](_0x5376bb['title'])+_0x335f87(0xf1)),this[_0x335f87(0x1c4)](this[_0x335f87(0x1a5)]()+_0x335f87(0x1b4)+utils['escape'](_0x5376bb[_0x335f87(0x19b)])+'</dt>');var _0x305991=utils['escape'](utils['clean'](_0x5376bb[_0x335f87(0x14c)]));this[_0x335f87(0x1c4)](this['indent']()+_0x335f87(0x1e2)+_0x305991+'</code></pre></dd>');}}_0x3a7c68[_0x335f87(0x212)](testhubUtils['shouldProcessEventForTesthub'](),!![])&&(!_0x5376bb['markedStatus']&&(_0x5376bb[_0x335f87(0x1ed)]=!![],await this['sendTestRunEvent'](_0x5376bb)));})['on'](EVENT_TEST_FAIL,async(_0x566aa1,_0x89201e)=>{const _0x50e12d=_0x1a4995;this[_0x50e12d(0x1b8)][_0x50e12d(0x123)]({'title':_0x566aa1[_0x50e12d(0x1da)],'suite':_0x566aa1[_0x50e12d(0x1ee)][_0x50e12d(0x1da)],'state':_0x566aa1['state'],'err':{'message':util[_0x50e12d(0x10f)](_0x89201e)},'fullTitle':_0x566aa1[_0x50e12d(0x163)](),'speed':_0x566aa1[_0x50e12d(0x192)],'currentRetry':_0x566aa1['currentRetry'](),'titlePathV':_0x566aa1[_0x50e12d(0x16b)]()});if(_0x3a7c68[_0x50e12d(0x190)](this['type'],_0x3a7c68[_0x50e12d(0x19a)]))process[_0x50e12d(0xfa)][_0x50e12d(0xdc)](Base[_0x50e12d(0xe1)](_0x3a7c68[_0x50e12d(0x1c3)],Base[_0x50e12d(0x1a3)][_0x50e12d(0x1de)]));else{if(_0x3a7c68['uCxpG'](this[_0x50e12d(0x189)],_0x3a7c68[_0x50e12d(0x1e9)])){const _0x5ca86d=_0x3a7c68['nhTUE'][_0x50e12d(0x18e)]('|');let _0x13ed40=0x0;while(!![]){switch(_0x5ca86d[_0x13ed40++]){case'0':this[_0x50e12d(0x1c4)](this[_0x50e12d(0x1a5)]()+_0x50e12d(0x1f1)+utils[_0x50e12d(0x19c)](_0x566aa1[_0x50e12d(0x19b)])+'</dt>');continue;case'1':this[_0x50e12d(0x1c4)](this[_0x50e12d(0x1a5)]()+_0x50e12d(0x1b0)+utils[_0x50e12d(0x19c)](_0x566aa1[_0x50e12d(0x120)])+_0x50e12d(0x11c));continue;case'2':var _0x12fdc5=utils[_0x50e12d(0x19c)](utils[_0x50e12d(0x1a2)](_0x566aa1[_0x50e12d(0x14c)]));continue;case'3':this[_0x50e12d(0x1c4)](this['indent']()+_0x50e12d(0x1f1)+utils[_0x50e12d(0x19c)](_0x566aa1['title'])+'</dt>');continue;case'4':this['docAppend'](this[_0x50e12d(0x1a5)]()+_0x50e12d(0x177)+_0x12fdc5+_0x50e12d(0xfc));continue;}break;}}}if(_0x3a7c68[_0x50e12d(0xd6)](testhubUtils[_0x50e12d(0xdf)](testHubConstants['EVENT'][_0x50e12d(0x1cc)]),!![])){if(!_0x566aa1[_0x50e12d(0x1ed)]){_0x566aa1[_0x50e12d(0x1ed)]=!![];if(_0x566aa1[_0x50e12d(0x10e)])await this[_0x50e12d(0x125)](_0x566aa1,_0x89201e);else _0x566aa1[_0x50e12d(0x151)]&&await this[_0x50e12d(0x125)](_0x566aa1,_0x89201e,![],_0x3a7c68['ZWsll']);}}})['on'](EVENT_TEST_PENDING,async _0x101ae2=>{const _0x40d01c=_0x1a4995;this[_0x40d01c(0x1b8)][_0x40d01c(0x123)]({'title':_0x101ae2['title'],'suite':_0x101ae2[_0x40d01c(0x1ee)][_0x40d01c(0x1da)],'state':_0x101ae2[_0x40d01c(0x11e)],'err':{},'fullTitle':_0x101ae2[_0x40d01c(0x163)](),'speed':_0x101ae2[_0x40d01c(0x192)],'currentRetry':_0x101ae2[_0x40d01c(0x162)](),'titlePathV':_0x101ae2[_0x40d01c(0x16b)]()}),_0x3a7c68[_0x40d01c(0x143)](this['type'],_0x3a7c68[_0x40d01c(0x19a)])&&process[_0x40d01c(0xfa)][_0x40d01c(0xdc)](Base[_0x40d01c(0xe1)](_0x3a7c68[_0x40d01c(0x119)],Base[_0x40d01c(0x1a3)]['comma'])),_0x3a7c68[_0x40d01c(0x1c6)](testhubUtils[_0x40d01c(0xdf)](),!![])&&(!_0x101ae2[_0x40d01c(0x10e)]&&(_0x101ae2[_0x40d01c(0x10e)]=_0x3a7c68[_0x40d01c(0x1d7)](uuidv4)),!_0x101ae2[_0x40d01c(0x1ed)]&&(_0x101ae2[_0x40d01c(0x1ed)]=!![],await this[_0x40d01c(0x125)](_0x101ae2,undefined,![],_0x3a7c68['mSPBD'])));})['on'](EVENT_TEST_BEGIN,async _0x41e15e=>{const _0x2184c8=_0x1a4995;_0x3a7c68['CWEly'](testhubUtils['shouldProcessEventForTesthub'](),!![])&&await this[_0x2184c8(0x109)](_0x41e15e);})['on'](EVENT_TEST_END,async _0x2899ac=>{const _0x4fa051=_0x1a4995;_0x3a7c68['sHlEO'](testhubUtils[_0x4fa051(0xdf)](),!![])&&(!_0x2899ac[_0x4fa051(0x1ed)]&&(_0x2899ac[_0x4fa051(0x1ed)]=!![],await this['sendTestRunEvent'](_0x2899ac)));})[_0x1a4995(0x195)](EVENT_RUN_END,async()=>{const _0x3594c0=_0x1a4995;try{if(_0x3a7c68[_0x3594c0(0x212)](testhubUtils[_0x3594c0(0xdf)](),!![])){const _0x52e43b=_0x3a7c68['sXpOV'](getHookSkippedTests,this[_0x3594c0(0xec)][_0x3594c0(0x150)]);for(const _0x5f4e6c of _0x52e43b){!_0x5f4e6c[_0x3594c0(0x10e)]&&(_0x5f4e6c[_0x3594c0(0x10e)]=_0x3a7c68[_0x3594c0(0xf0)](uuidv4)),await this[_0x3594c0(0x125)](_0x5f4e6c,undefined,![],_0x3a7c68[_0x3594c0(0x1f6)]);}}}catch(_0xc2f1cc){_0x3a7c68['sXpOV'](debug,'Exception\x20in\x20populating\x20test\x20data\x20for\x20hook\x20skipped\x20test\x20with\x20error\x20:\x20'+_0xc2f1cc);}await requestQueueHandler[_0x3594c0(0x1be)](),_0x3a7c68[_0x3594c0(0xf9)](this['type'],_0x3a7c68[_0x3594c0(0x1e9)])&&Base[_0x3594c0(0x116)](this[_0x3594c0(0x20d)]);});if(this[_0x1a4995(0x189)]&&![_0x3a7c68[_0x1a4995(0x1e9)],_0x3a7c68[_0x1a4995(0x186)],_0x3a7c68[_0x1a4995(0x132)],_0x3a7c68[_0x1a4995(0x19a)]][_0x1a4995(0x126)](this[_0x1a4995(0x189)])){const _0x1a421a=this[_0x1a4995(0x189)]['trim']();this[_0x1a4995(0x20b)]=null;try{this[_0x1a4995(0x20b)]=_0x3a7c68[_0x1a4995(0xeb)](requireModule,_0x1a4995(0x183)+_0x1a421a+'.js',_0x3a7c68[_0x1a4995(0x1c2)]);}catch(_0x51f3d1){_0x3a7c68[_0x1a4995(0x15c)](debug,_0x1a4995(0x18f)+_0x51f3d1);}if(_0x3a7c68[_0x1a4995(0x160)](this['Reporter'],null))try{this[_0x1a4995(0x20b)]=_0x3a7c68[_0x1a4995(0x19f)](require,_0x1a421a);}catch(_0x48f6cc){console['error']('Failed\x20to\x20load\x20reporter\x20'+_0x1a421a);}if(_0x3a7c68[_0x1a4995(0x1f4)](this['Reporter'],null)){const _0x14f2b4={};_0x14f2b4[_0x1a4995(0x166)]=_0x27a8c4[_0x1a4995(0x197)],this[_0x1a4995(0x20b)]=new this[(_0x1a4995(0x20b))](_0x1b461f,_0x14f2b4);}}}[a31_0x9d265b(0x1a5)](){const _0x436784=a31_0x9d265b,_0x13cd1f={'dkPrj':function(_0x1a2cab,_0x3e71e5){return _0x1a2cab(_0x3e71e5);}};return _0x13cd1f[_0x436784(0x1f8)](Array,this[_0x436784(0x185)])[_0x436784(0xd2)]('\x20\x20');}[a31_0x9d265b(0x205)](){this['_indents']++;}['decreaseIndent'](){const _0x2dc538=a31_0x9d265b;this[_0x2dc538(0x185)]--;}[a31_0x9d265b(0x1c4)](_0x39ab93){this['docHtml']+=_0x39ab93;}[a31_0x9d265b(0x1ce)](_0x455bf1,_0x13cf39){const _0x51639c=a31_0x9d265b,_0x4fd879={'ImIeH':function(_0x58cd7b,_0x536da7){return _0x58cd7b(_0x536da7);}},_0x5e4694={};_0x5e4694[_0x51639c(0x19d)]=_0x455bf1,_0x5e4694[_0x51639c(0x1b8)]=this[_0x51639c(0xf5)],_0x4fd879[_0x51639c(0x18c)](_0x13cf39,_0x5e4694);}['registerListeners'](){const _0x59aefa=a31_0x9d265b;process[_0x59aefa(0x1e8)](_0x59aefa(0xe7)+process[_0x59aefa(0x1b1)]),process['on'](_0x59aefa(0xe7)+process[_0x59aefa(0x1b1)],this[_0x59aefa(0x114)]['bind'](this)),process[_0x59aefa(0x1e8)](_0x59aefa(0x187)+process[_0x59aefa(0x1b1)]),process['on']('bs:addPlatformDetails:'+process[_0x59aefa(0x1b1)],this[_0x59aefa(0x175)][_0x59aefa(0x1af)](this));}['testStarted']=async _0x194ce7=>{const _0x29d5f8=a31_0x9d265b,_0x5ee33b={'kLhLT':function(_0xb0117e){return _0xb0117e();},'tXNCP':_0x29d5f8(0x101),'RdnQW':function(_0x4a858d,_0x38a3a8){return _0x4a858d>_0x38a3a8;},'Pjevt':function(_0x122239,_0x1b9365){return _0x122239===_0x1b9365;},'JTwmA':_0x29d5f8(0x10c),'eJfBS':function(_0xb7c8d7,_0x4ab358){return _0xb7c8d7(_0x4ab358);}};try{const _0xf9aa8d=this['current_test'];this[_0x29d5f8(0x161)]=_0x194ce7,_0x194ce7[_0x29d5f8(0x1e0)]=null,_0x194ce7[_0x29d5f8(0x10e)]=_0x5ee33b[_0x29d5f8(0x18b)](uuidv4),globals[_0x29d5f8(0x13a)](_0x5ee33b[_0x29d5f8(0x1bd)],_0x194ce7['testAnalyticsId']),_0x194ce7['started_at']=new Date()[_0x29d5f8(0x17f)](),_0x5ee33b[_0x29d5f8(0x1f3)](_0x194ce7[_0x29d5f8(0x172)],0x0)&&_0xf9aa8d&&_0x5ee33b['Pjevt'](_0xf9aa8d[_0x29d5f8(0x1da)],_0x194ce7['title'])?(_0x194ce7[_0x29d5f8(0x1e0)]=_0xf9aa8d[_0x29d5f8(0x10e)],await this[_0x29d5f8(0x125)](_0x194ce7,undefined,![],_0x5ee33b['JTwmA']),_0xf9aa8d[_0x29d5f8(0x11e)]=STATE_FAILED,await this[_0x29d5f8(0x125)](_0xf9aa8d,undefined,!![])):await this['sendTestRunEvent'](_0x194ce7,undefined,![],_0x5ee33b[_0x29d5f8(0x208)]);}catch(_0x14393b){_0x5ee33b[_0x29d5f8(0x193)](debug,_0x29d5f8(0x1dd)+_0x14393b);}};['sendTestRunEvent']=async(_0x4810cf,_0x187ff0=undefined,_0x3f1bb4=![],_0x1752d3='TestRunFinished')=>{const _0x177fd8=a31_0x9d265b,_0x2deeef={'VPgLk':function(_0xe0e0d0,_0x4eb0dc){return _0xe0e0d0===_0x4eb0dc;},'KURNw':function(_0x12f22c,_0x5ea056){return _0x12f22c!==_0x5ea056;},'INSwP':_0x177fd8(0x10d),'TFzDG':_0x177fd8(0x120),'wjZhV':function(_0x429323,_0x51b60e){return _0x429323!==_0x51b60e;},'jJmCi':function(_0x43b9f7,_0x2e26f7){return _0x43b9f7!==_0x2e26f7;},'Qaetk':function(_0x502f1f,_0x31321b){return _0x502f1f!==_0x31321b;},'kcRmO':'File\x20path\x20could\x20not\x20be\x20found','AVrGN':_0x177fd8(0xe3),'ZKbKz':_0x177fd8(0x1dc),'kGLdx':_0x177fd8(0x201),'kSxuK':'skipped','nnyyM':function(_0x3d3797,_0x19210c){return _0x3d3797-_0x19210c;},'Fpcfj':_0x177fd8(0x1f0),'kTmFN':_0x177fd8(0x16c),'jkQGG':_0x177fd8(0x138),'kYkEV':_0x177fd8(0x10c),'RYIEe':function(_0x1a71e2){return _0x1a71e2();},'tuRoH':function(_0x4c85d7,_0x5118e6){return _0x4c85d7===_0x5118e6;},'Ksxmk':_0x177fd8(0x194),'CqDlk':_0x177fd8(0x1d8),'aDedJ':function(_0x2c76ee,_0x3d28a0){return _0x2c76ee(_0x3d28a0);},'PXioH':function(_0x41cc0d,_0xf1e02b){return _0x41cc0d===_0xf1e02b;},'rRdAH':_0x177fd8(0x1b2),'hvVEm':function(_0x29fe4f,_0x4ba3d4){return _0x29fe4f!==_0x4ba3d4;},'YqPAb':_0x177fd8(0x17d),'iDXJH':_0x177fd8(0x1e5),'dcaeP':_0x177fd8(0x111),'IFDoe':_0x177fd8(0xff),'ELQbL':_0x177fd8(0x1f9),'ehnPf':_0x177fd8(0x13e),'fLSaZ':_0x177fd8(0x110),'LEkkL':_0x177fd8(0x16a),'sSdSB':function(_0x8bc5b,_0x5ad68e){return _0x8bc5b===_0x5ad68e;},'hwwPh':_0x177fd8(0x179),'sIijv':_0x177fd8(0xd8),'veHha':_0x177fd8(0x176),'JSmuA':function(_0x522fe2,_0x1b3ad3){return _0x522fe2(_0x1b3ad3);}};try{if(_0x4810cf['body']&&_0x4810cf[_0x177fd8(0x14c)]['match'](/browserstack internal helper hook/))return;let _0x2e9a12=[];if(_0x2deeef[_0x177fd8(0x1c8)](_0x4810cf[_0x177fd8(0x11e)],STATE_FAILED)){if(_0x2deeef['KURNw'](_0x4810cf['err'],undefined))_0x2e9a12=_0x4810cf[_0x177fd8(0x120)][_0x177fd8(0x1ad)]?[_0x4810cf[_0x177fd8(0x120)][_0x177fd8(0x1ad)],_0x2deeef[_0x177fd8(0x1f5)]]:[_0x4810cf[_0x177fd8(0x120)],_0x2deeef['TFzDG']];else _0x2deeef['wjZhV'](_0x187ff0,undefined)?_0x2e9a12=[_0x187ff0,_0x2deeef['TFzDG']]:_0x2e9a12=[];}const _0x4d5c18=_0x2deeef[_0x177fd8(0x1bb)](_0x4810cf[_0x177fd8(0x120)],undefined)?_0x4810cf[_0x177fd8(0x120)]['toString']():_0x2deeef[_0x177fd8(0x1e3)](_0x187ff0,undefined)?_0x187ff0[_0x177fd8(0x102)]():undefined;let _0x315d47;try{_0x315d47=this[_0x177fd8(0x12b)](_0x4810cf);}catch(_0x169303){_0x315d47=null;}const _0x1a2e1e=_0x315d47?this[_0x177fd8(0x1f2)](_0x315d47):null,_0x231cdc=_0x315d47?this[_0x177fd8(0x140)][_0x177fd8(0x1df)](this[_0x177fd8(0x12b)](_0x4810cf)):_0x2deeef[_0x177fd8(0x211)],_0xa55b67={'framework':_0x2deeef[_0x177fd8(0xd4)],'uuid':_0x4810cf['testAnalyticsId']||_0x4810cf[_0x177fd8(0x151)],'name':_0x4810cf[_0x177fd8(0x1da)],'body':{'lang':_0x2deeef['ZKbKz'],'code':_0x4810cf['body']},'scope':this[_0x177fd8(0x12c)](_0x4810cf),'scopes':this[_0x177fd8(0xe9)](_0x4810cf),'identifier':_0x4810cf[_0x177fd8(0x163)](),'file_name':_0x231cdc,'vc_filepath':_0x1a2e1e?path[_0x177fd8(0x1a9)](_0x1a2e1e,_0x315d47):null,'location':_0x231cdc,'result':_0x2deeef[_0x177fd8(0x1c8)](_0x1752d3,_0x2deeef[_0x177fd8(0x112)])?_0x2deeef[_0x177fd8(0x128)]:this['analyticsResult'](_0x4810cf['state']),'failure_reason':_0x4d5c18,'duration_in_ms':_0x4810cf[_0x177fd8(0x1b9)]||(_0x1752d3[_0x177fd8(0x1a7)](/Finished/)||_0x1752d3[_0x177fd8(0x1a7)](/Skipped/)?_0x2deeef[_0x177fd8(0x1db)](Date[_0x177fd8(0x196)](),new Date(_0x4810cf['started_at'])[_0x177fd8(0x130)]()):null),'started_at':_0x4810cf[_0x177fd8(0x194)],'finished_at':_0x1752d3[_0x177fd8(0x1a7)](/Finished/)||_0x1752d3[_0x177fd8(0x1a7)](/Skipped/)?new Date()[_0x177fd8(0x17f)]():null,'failure':failureData[_0x177fd8(0x1d3)](null,_0x2e9a12),'failure_type':!_0x4d5c18?null:_0x4d5c18[_0x177fd8(0x1a7)](/AssertionError/)?_0x2deeef[_0x177fd8(0x11b)]:_0x2deeef[_0x177fd8(0x174)],'retry_of':_0x4810cf['retryOf']};if([_0x2deeef[_0x177fd8(0x112)],_0x2deeef[_0x177fd8(0x13d)],_0x2deeef[_0x177fd8(0x15e)]][_0x177fd8(0x126)](_0x1752d3)){if(_0x2deeef[_0x177fd8(0x1ba)](getCentralUser)[_0x177fd8(0x12e)]){const _0x5d6370=TestMetadata['get'](_0x4810cf[_0x177fd8(0x10e)]);if(_0x5d6370){const _0x2ade31={};_0x2ade31[_0x177fd8(0x12e)]=_0x5d6370,Object[_0x177fd8(0x1b3)](_0xa55b67,_0x2ade31);}}}testhubUtils['appendTesthubParams'](_0xa55b67,_0x1752d3,_0x4810cf,FRAMEWORKS['MOCHA']);(_0x4810cf['responseCode']||_0x4810cf[_0x177fd8(0x159)])&¢ralScannerUtils[_0x177fd8(0xf6)](_0xa55b67,_0x4810cf[_0x177fd8(0x154)],_0x4810cf[_0x177fd8(0x159)]);_0x2deeef[_0x177fd8(0x1a8)](_0x1752d3,_0x2deeef['kGLdx'])&&!_0xa55b67[_0x2deeef[_0x177fd8(0x117)]]&&(_0xa55b67[_0x2deeef[_0x177fd8(0x117)]]=_0xa55b67[_0x2deeef[_0x177fd8(0x1a6)]]);if(_0x1752d3['match'](/HookRun/))[_0xa55b67['hook_type'],_0xa55b67[_0x177fd8(0x12f)]]=_0x2deeef[_0x177fd8(0x1b5)](getHookDetails,_0x4810cf['fullTitle']()||_0x4810cf[_0x177fd8(0x19e)]||_0x4810cf[_0x177fd8(0x1da)]),_0x2deeef[_0x177fd8(0x136)](_0x1752d3,_0x2deeef[_0x177fd8(0x1ab)])&&(_0x2deeef[_0x177fd8(0xfd)](_0xa55b67[_0x177fd8(0x133)],_0x2deeef[_0x177fd8(0xea)])&&(_0xa55b67[_0x177fd8(0x133)]=_0x2deeef[_0x177fd8(0x13f)]),_0x2deeef['PXioH'](_0xa55b67[_0x177fd8(0x179)],_0x2deeef[_0x177fd8(0x156)])&&_0x2deeef[_0x177fd8(0x1a8)](_0xa55b67[_0x177fd8(0x133)],_0x2deeef['YqPAb'])&&!_0x4810cf['ctx'][_0x177fd8(0x135)][_0x177fd8(0x1ed)]&&(_0x4810cf[_0x177fd8(0xdb)][_0x177fd8(0x135)]['markedStatus']=!![],_0x4810cf['ctx'][_0x177fd8(0x135)][_0x177fd8(0x11e)]=STATE_FAILED,await this[_0x177fd8(0x125)](_0x4810cf['ctx'][_0x177fd8(0x135)],undefined,!![])));else _0x1752d3[_0x177fd8(0x1a7)](/TestRun/)&&_0x2deeef['aDedJ'](mapTestHooks,_0x4810cf);const _0x1d937e=_0xa55b67[_0x2deeef[_0x177fd8(0xe4)]][0x0];_0x1d937e&&(_0xa55b67[_0x2deeef[_0x177fd8(0x131)]]=_0x1d937e[_0x2deeef[_0x177fd8(0x20e)]],_0xa55b67[_0x2deeef[_0x177fd8(0xe5)]]=_0x1d937e[_0x2deeef[_0x177fd8(0x122)]]);[_0x2deeef[_0x177fd8(0x13d)],_0x2deeef[_0x177fd8(0x112)]]['includes'](_0x1752d3)&&(this[_0x177fd8(0x15a)]['push'](_0xa55b67),_0xa55b67['hooks']=_0x2deeef[_0x177fd8(0x1b5)](getHooksForTest,_0x4810cf));const _0x684dae={'event_type':_0x2deeef[_0x177fd8(0x14f)](_0x1752d3,_0x2deeef[_0x177fd8(0x112)])?_0x2deeef[_0x177fd8(0x13d)]:_0x1752d3};_0x1752d3[_0x177fd8(0x1a7)](/HookRun/)?(_0xa55b67[_0x2deeef[_0x177fd8(0x11f)]]=HOOK_TYPES_MAP[_0xa55b67[_0x2deeef[_0x177fd8(0x11f)]]],_0x684dae[_0x2deeef['sIijv']]=_0xa55b67):_0x684dae[_0x2deeef[_0x177fd8(0x178)]]=_0xa55b67,testhubUtils[_0x177fd8(0x10b)](FRAMEWORKS['MOCHA'],_0x684dae),await SessionHandler[_0x177fd8(0x14d)](_0x684dae);}catch(_0x4f960c){_0x2deeef[_0x177fd8(0x16e)](debug,_0x177fd8(0xe8)+_0x1752d3+_0x177fd8(0x12d)+_0x4f960c);}};[a31_0x9d265b(0x1f2)](_0x46bee0){const _0x2182f0=a31_0x9d265b,_0x1df36d={};_0x1df36d[_0x2182f0(0xd1)]=function(_0x353a62,_0x48e490){return _0x353a62===_0x48e490;},_0x1df36d[_0x2182f0(0x169)]=function(_0xa5f9df,_0x58fa61){return _0xa5f9df===_0x58fa61;},_0x1df36d[_0x2182f0(0x17c)]=function(_0x1ed8e5,_0x1dbbcc){return _0x1ed8e5===_0x1dbbcc;},_0x1df36d['uADjg']=_0x2182f0(0x11a),_0x1df36d[_0x2182f0(0x1bc)]=_0x2182f0(0x165);const _0x3a1ab1=_0x1df36d,_0x516512=path[_0x2182f0(0x134)];if(_0x3a1ab1[_0x2182f0(0xd1)](_0x46bee0,null)||_0x3a1ab1[_0x2182f0(0x169)](_0x46bee0,'')||_0x3a1ab1[_0x2182f0(0x17c)](_0x46bee0,_0x516512)||_0x3a1ab1[_0x2182f0(0x17c)](_0x46bee0,path[_0x2182f0(0x149)](_0x46bee0)))return null;try{return fs[_0x2182f0(0x191)](path[_0x2182f0(0xd2)](_0x46bee0,_0x3a1ab1[_0x2182f0(0xf8)],_0x3a1ab1[_0x2182f0(0x1bc)])),_0x46bee0;}catch(_0x543a73){const _0x29cfd8=path[_0x2182f0(0x149)](_0x46bee0);return this['findGitConfig'](_0x29cfd8);}}[a31_0x9d265b(0x114)]=async _0x282b10=>{const _0x10758d=a31_0x9d265b,_0x5d2f5c={'lhFIc':'LogCreated','ncuJv':function(_0x1b39bb,_0x388625){return _0x1b39bb(_0x388625);}};try{this['current_hook']&&!this[_0x10758d(0x147)][_0x10758d(0x1ed)]&&(_0x282b10[_0x10758d(0xde)]=this['current_hook'][_0x10758d(0x151)]);!_0x282b10[_0x10758d(0xde)]&&this['current_test']&&!this[_0x10758d(0x161)][_0x10758d(0x1ed)]&&(_0x282b10[_0x10758d(0x16d)]=this[_0x10758d(0x161)][_0x10758d(0x10e)]);if(_0x282b10[_0x10758d(0xde)]||_0x282b10['test_run_uuid']){const _0x515daf={};_0x515daf[_0x10758d(0x1a4)]=_0x5d2f5c[_0x10758d(0x1d9)],_0x515daf[_0x10758d(0x106)]=[_0x282b10],await SessionHandler[_0x10758d(0x14d)](_0x515daf);}}catch(_0x1cacbe){_0x5d2f5c[_0x10758d(0x157)](debug,'Exception\x20in\x20uploading\x20log\x20data\x20to\x20'+constants['TEST_REPORTING_ANALYTICS']+'\x20with\x20error\x20:\x20'+_0x1cacbe);}};[a31_0x9d265b(0x175)]=async _0x2208a7=>{const _0x468d03=a31_0x9d265b,_0x2768d4={'mGMTt':'http_response','canMU':_0x468d03(0x1c1),'FxJHF':function(_0x58bdec,_0x436cc4){return _0x58bdec(_0x436cc4);}};try{const _0x2c07d5={};_0x2c07d5['uuid']=_0x2208a7['uuid']||this[_0x468d03(0x161)]['testAnalyticsId'],_0x2c07d5['integrations']=_0x2208a7[_0x2768d4[_0x468d03(0x182)]];const _0x2eaa10=_0x2c07d5,_0x25054b={};_0x25054b[_0x468d03(0x1a4)]=_0x2768d4[_0x468d03(0x15d)],_0x25054b[_0x468d03(0x176)]=_0x2eaa10,await SessionHandler[_0x468d03(0x14d)](_0x25054b);}catch(_0x5917d3){_0x2768d4['FxJHF'](debug,'Exception\x20in\x20uploading\x20platform\x20details\x20to\x20'+constants[_0x468d03(0x213)]+_0x468d03(0x12d)+_0x5917d3);}};['analyticsResult'](_0x2a85f7){const _0x3ee43f=a31_0x9d265b,_0x37f206={};_0x37f206[_0x3ee43f(0x1e1)]=_0x3ee43f(0x1e5),_0x37f206[_0x3ee43f(0x207)]=_0x3ee43f(0x17b),_0x37f206[_0x3ee43f(0x1ef)]=_0x3ee43f(0x17d);const _0x1f5973=_0x37f206,_0x191d6f={};return _0x191d6f[STATE_PASSED]=_0x1f5973[_0x3ee43f(0x1e1)],_0x191d6f[STATE_PENDING]=_0x1f5973[_0x3ee43f(0x207)],_0x191d6f[STATE_FAILED]=_0x1f5973[_0x3ee43f(0x1ef)],_0x191d6f[_0x2a85f7];}[a31_0x9d265b(0x12c)](_0x282736){const _0xaf6064=a31_0x9d265b,_0x30d6b6={};_0x30d6b6[_0xaf6064(0x158)]=function(_0x2a016f,_0x3de89e){return _0x2a016f-_0x3de89e;};const _0x427539=_0x30d6b6,_0xd60066=_0x282736[_0xaf6064(0x16b)]();return _0xd60066[_0xaf6064(0xfb)](0x0,_0x427539[_0xaf6064(0x158)](_0xd60066[_0xaf6064(0x180)],0x1))[_0xaf6064(0xd2)]('\x20');}[a31_0x9d265b(0xe9)](_0xee72eb){const _0x29f130=a31_0x9d265b,_0x133e73={};_0x133e73[_0x29f130(0x1fb)]=function(_0x1c667f,_0x48d91d){return _0x1c667f-_0x48d91d;};const _0x13b1bd=_0x133e73,_0x4736d5=_0xee72eb[_0x29f130(0x16b)]();return _0x4736d5['slice'](0x0,_0x13b1bd['XptLw'](_0x4736d5['length'],0x1));}[a31_0x9d265b(0x12b)](_0x327753){const _0x1986b1=a31_0x9d265b,_0x51c6bd={};_0x51c6bd[_0x1986b1(0x1ca)]=function(_0xffa2ad,_0x51384e){return _0xffa2ad>_0x51384e;};const _0x3b49da=_0x51c6bd;if(_0x327753['file'])return _0x327753[_0x1986b1(0x19b)];if(_0x327753[_0x1986b1(0xdb)]){const _0x3c7703=_0x327753[_0x1986b1(0xdb)][_0x1986b1(0x135)]?this[_0x1986b1(0x12b)](_0x327753[_0x1986b1(0xdb)][_0x1986b1(0x135)]):null;if(_0x3c7703)return _0x3c7703;}if(_0x327753['parent']){const _0x40aca2=this[_0x1986b1(0x12b)](_0x327753[_0x1986b1(0x1ee)])||(_0x327753[_0x1986b1(0x1ee)][_0x1986b1(0xdb)]&&_0x327753[_0x1986b1(0x1ee)][_0x1986b1(0xdb)][_0x1986b1(0x135)]?this[_0x1986b1(0x12b)](_0x327753['parent'][_0x1986b1(0xdb)][_0x1986b1(0x135)]):null);if(_0x40aca2)return _0x40aca2;_0x327753['parent'][_0x1986b1(0x127)]&&_0x3b49da[_0x1986b1(0x1ca)](_0x327753['parent'][_0x1986b1(0x127)][_0x1986b1(0x180)],0x0)&&_0x327753[_0x1986b1(0x1ee)][_0x1986b1(0x127)][_0x1986b1(0xfe)](_0x326070=>{const _0x2d4cf7=_0x1986b1,_0x955a4c=_0x326070[_0x2d4cf7(0xdb)]?this[_0x2d4cf7(0x12b)](_0x326070[_0x2d4cf7(0xdb)]):null;if(_0x955a4c)return _0x955a4c;});}return null;}}function a31_0x29c6(){const _0x1b9217=['RYIEe','jJmCi','RdSCY','tXNCP','shutdown','after\x20each','RgIQS','CBTSessionCreated','gsztO','ZkSjf','docAppend','decreaseIndent','RVSjt','fast','VPgLk','<dl>','TwnKo','CCHnl','HookFinished','5707194KlVtGq','done','KQAMU','xXRsW','avoOf','bsConfig','apply','after\x20all','../../utils/constants','../../../helpers/test-observability/constants','cjVJn','finished_at','lhFIc','title','nnyyM','javascript','Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20','bang','prefixTestPath','retryOf','akZPj','\x20\x20<dd><pre><code>','Qaetk','%s\x20-\x20%s','passed','registerListeners','</section>','removeAllListeners','lnOMl','3|0|2|4|1','../../../helpers/test-observability/utils','../test-observability/mochaUtils','markedStatus','parent','WYjyi','AssertionError','\x20\x20<dt\x20class=\x22error\x22>','findGitConfig','RdnQW','sXNtw','INSwP','mSPBD','fail','dkPrj','failure_backtrace','BEFORE_ALL','XptLw','CWEly','dot','mocha/lib/reporters/base.js','IeWDU','1202708qQXSIo','TestRunSkipped','root','PyxLb','AFTER_ALL','increaseIndent','green','UHKLb','JTwmA','SVVPH','BEFORE_EACH','Reporter','mocha/lib/utils.js','docHtml','ehnPf','ohcxm','8014376qRDoBx','kcRmO','kSmHl','TEST_REPORTING_ANALYTICS','EVENT','../../../helpers/testhub/utils','EahGi','join','cqoBh','AVrGN','NbTVA','RbIOk','mocha','hook_run','TSGIF','ZWsll','ctx','write','ucBdc','hook_run_uuid','shouldProcessEventForTesthub','../../../helpers/helper','color','LKxvR','Mocha','IFDoe','fLSaZ','spec','bs:addLog:','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','scopes','YqPAb','yVPQX','runner','sNLvl','uuid','../../../helpers/logger','CDBYc','</dt>','\x20%s','failCount','call','finalResults','setCentralScannerData','ufWFy','uADjg','YpfVu','stdout','slice','</code></pre></dd>','hvVEm','forEach','failure','LWqYD','testRunUUID','toString','mocha/lib/runnable.js','888232doAtDE','slow','logs','../../../helpers/metadata','854387EugTwV','testStarted','</dl>','setCurrentTestData','TestRunStarted','test','testAnalyticsId','inspect','failure_reason_expanded','before\x20each','kGLdx','xEqig','appendTestItemLog','__platform__','consoleLog','Ksxmk','\x20\x20%d)\x20%s','qyYTD','.git','Fpcfj','</dd>','aAxCF','state','hwwPh','err','YtSEV','LEkkL','push','NyMrU','sendTestRunEvent','includes','suites','kSxuK','LlxQX','XBzQl','getRootParentFile','scope','\x20with\x20error\x20:\x20','lcnc','name','getTime','ELQbL','HMnAa','result','sep','currentTest','PXioH','../../../helpers/test-observability/requestQueueHandler','TestRunFinished','__indents','setGlobal','../../../helpers/test-observability/sessionHandler','../../../helpers/globals','jkQGG','backtrace','iDXJH','_paths','location_prefix','9XyQTum','qTCEC','11152498gSxmlf','_testEnv','ZOLwN','current_hook','<h1>','dirname','constants','</h1>','body','uploadEventData','../../../helpers/central-scanner/helpers','sSdSB','suite','hookAnalyticsId','2223380wtgpxT','ZhRgq','responseCode','before\x20all','dcaeP','ncuJv','tWKdB','redirectUrl','_testResults','pOZxB','YUoQX','canMU','kYkEV','Runner','RXSNb','current_test','currentRetry','fullTitle','_upstreamConfig','config','reporterOptions','isPending','HookStarted','WWAEW','expanded','titlePath','UnhandledError','test_run_uuid','JSmuA','sHlEO','3oDaGQZ','prototype','_currentRetry','ofCNO','kTmFN','appendTestPlatform','test_run','\x20\x20<dd\x20class=\x22error\x22><pre><code>','veHha','hook_type','tFFOh','pending','ITtyk','failed','VsHTe','toISOString','length','\x20-\x20','mGMTt','mocha/lib/reporters/','HookRunStarted','_indents','hDRBw','bs:addPlatformDetails:','path','type','pEPYl','kLhLT','ImIeH','FSNXp','split','Exception\x20in\x20browserstack\x20custome\x20reporter\x20with\x20error:\x20','RDFcd','statSync','speed','eJfBS','started_at','once','now','reporterOption','\x20(%dms)','RPYmy','PLzhR','file','escape','failureCount','originalTitle','tTgug','FnCsm','Gzqdy','clean','symbols','event_type','indent','CqDlk','match','tuRoH','relative','testObservability','rRdAH','IYnzc','multiple','cwqPE','bind','\x20\x20<dd\x20class=\x22error\x22>','pid','HookRunFinished','assign','\x20\x20<dt>','aDedJ','COMPLETED','AFTER_EACH','results','duration'];a31_0x29c6=function(){return _0x1b9217;};return a31_0x29c6();}module['exports']=MyReporter;
|
|
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;
|