browserstack-node-sdk 1.34.11 → 1.34.13
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/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/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.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/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_before.setup.js +1 -1
- package/src/bin/launcher/launcher.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/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/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/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.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/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.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-tester.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/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a24_0x3516(_0x51ab35,_0x5417bb){const _0x52ebc6=a24_0x52eb();return a24_0x3516=function(_0x3516fa,_0xd45bc1){_0x3516fa=_0x3516fa-0x140;let _0xfbbca3=_0x52ebc6[_0x3516fa];return _0xfbbca3;},a24_0x3516(_0x51ab35,_0x5417bb);}const a24_0x391c83=a24_0x3516;(function(_0x259ff0,_0x3db29c){const _0x90c00f=a24_0x3516,_0x128670=_0x259ff0();while(!![]){try{const _0x5e92a4=-parseInt(_0x90c00f(0x14d))/0x1*(parseInt(_0x90c00f(0x14c))/0x2)+parseInt(_0x90c00f(0x140))/0x3*(-parseInt(_0x90c00f(0x14e))/0x4)+-parseInt(_0x90c00f(0x145))/0x5+parseInt(_0x90c00f(0x150))/0x6*(parseInt(_0x90c00f(0x144))/0x7)+parseInt(_0x90c00f(0x143))/0x8*(parseInt(_0x90c00f(0x14a))/0x9)+-parseInt(_0x90c00f(0x14b))/0xa*(parseInt(_0x90c00f(0x14f))/0xb)+parseInt(_0x90c00f(0x147))/0xc*(parseInt(_0x90c00f(0x141))/0xd);if(_0x5e92a4===_0x3db29c)break;else _0x128670['push'](_0x128670['shift']());}catch(_0x10164b){_0x128670['push'](_0x128670['shift']());}}}(a24_0x52eb,0x557e3));const {requireModule}=require(a24_0x391c83(0x142));function a24_0x52eb(){const _0x3f6c03=['keys','477567MdPSDC','3841940WboPtU','1234538KRnHAf','1hAWLFk','1368FpqQgb','11UakBpj','6ghAxUY','selenium-webdriver','1908drvEkU','13CsJhji','../../helpers/helper','96EorKCy','196357fuLfGD','2315860Tqlgyo','../../helpers/setKeepAlive','16410228oZKXIk','__webdriver'];a24_0x52eb=function(){return _0x3f6c03;};return a24_0x52eb();}require(a24_0x391c83(0x146))();const __wd__=requireModule(a24_0x391c83(0x151));for(const key of Object[a24_0x391c83(0x149)](global[a24_0x391c83(0x148)])){__wd__[key]=global[a24_0x391c83(0x148)][key];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a25_0x44bb39=a25_0x35e0;function a25_0x35e0(_0x2231bc,_0x59af3c){const _0xdc8825=a25_0xdc88();return a25_0x35e0=function(_0x35e0b3,_0x47680e){_0x35e0b3=_0x35e0b3-0x1b5;let _0x4be95b=_0xdc8825[_0x35e0b3];return _0x4be95b;},a25_0x35e0(_0x2231bc,_0x59af3c);}function a25_0xdc88(){const _0x5f1922=['testSuitesFailed','473CXJHeW','40JSuCah','capability','_capability','91ryVsCH','setConfig','testsUnknown','includes','721488bCaFQL','1605558xNKFyw','configuration','_bsConfig','38802WNDZka','setFramework','AI_ENABLED_FRAMEWORK','testsUndefined','_testObservability','10fUWoMX','16|12|19|11|17|5|22|6|18|0|4|14|10|23|8|9|20|2|15|21|1|13|7|3','368274KjDtwG','resolvePaths','framework','_configuration','testsFailed','__platformCaps','RPcAJ','8136297ftaRaE','grdkp','_framework','8QeGLRW','testsPending','_argv','_formatter','../utils/constants','401014qOgPNY','248616YBwpEb','../../helpers/test-observability/requestQueueHandler','_mochaOpts','testsErrorMessage','_accessibilityAutomation','testsAmbiguous','path','../../helpers/test-observability/utils','platformCaps','setupCucumber','testsPassed','testsSkipped','../../helpers/helper'];a25_0xdc88=function(){return _0x5f1922;};return a25_0xdc88();}(function(_0x1e180b,_0x45a234){const _0x12b0cc=a25_0x35e0,_0x4043c5=_0x1e180b();while(!![]){try{const _0xa92a68=-parseInt(_0x12b0cc(0x1d2))/0x1+-parseInt(_0x12b0cc(0x1b9))/0x2+parseInt(_0x12b0cc(0x1c3))/0x3*(-parseInt(_0x12b0cc(0x1cd))/0x4)+-parseInt(_0x12b0cc(0x1e2))/0x5*(parseInt(_0x12b0cc(0x1bc))/0x6)+parseInt(_0x12b0cc(0x1e5))/0x7*(parseInt(_0x12b0cc(0x1d3))/0x8)+parseInt(_0x12b0cc(0x1ca))/0x9*(-parseInt(_0x12b0cc(0x1c1))/0xa)+-parseInt(_0x12b0cc(0x1e1))/0xb*(-parseInt(_0x12b0cc(0x1b8))/0xc);if(_0xa92a68===_0x45a234)break;else _0x4043c5['push'](_0x4043c5['shift']());}catch(_0x4e1a00){_0x4043c5['push'](_0x4043c5['shift']());}}}(a25_0xdc88,0x8ea3f));const path=require(a25_0x44bb39(0x1d9)),{requireModule,modifyCommand,getPlatformName,cleanupDrivers,isBrowserstackInfra}=require(a25_0x44bb39(0x1df)),constants=require(a25_0x44bb39(0x1d1)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),RequestQueueHandler=require(a25_0x44bb39(0x1d4)),{isTestObservabilitySession}=require(a25_0x44bb39(0x1da)),helper=require(a25_0x44bb39(0x1df)),{commandRepository}=require('../../helpers/ai-sdk/autoHealHelper');class Launcher{constructor(_0x80603b,_0x3c9f4a,_0x154c28,_0x58f152=[]){const _0x3b225f=a25_0x44bb39,_0x3badab={'RPcAJ':_0x3b225f(0x1c2),'grdkp':function(_0x5cbb63){return _0x5cbb63();}},_0x5da1b8=_0x3badab[_0x3b225f(0x1c9)]['split']('|');let _0x6450b=0x0;while(!![]){switch(_0x5da1b8[_0x6450b++]){case'0':this[_0x3b225f(0x1c0)]=_0x3badab[_0x3b225f(0x1cb)](isTestObservabilitySession);continue;case'1':global[_0x3b225f(0x1b6)]=0x0;continue;case'2':global[_0x3b225f(0x1de)]=0x0;continue;case'3':!constants[_0x3b225f(0x1be)][_0x3b225f(0x1b7)](_0x80603b)&&(commandRepository[_0x3b225f(0x1b5)](_0x154c28),commandRepository[_0x3b225f(0x1bd)](_0x80603b));continue;case'4':this[_0x3b225f(0x1d7)]=_0x3badab[_0x3b225f(0x1cb)](isAccessibilityAutomationSession);continue;case'5':this[_0x3b225f(0x1e4)]=this['_configuration'][_0x3b225f(0x1e3)];continue;case'6':this[_0x3b225f(0x1cf)]=_0x58f152;continue;case'7':global[_0x3b225f(0x1d6)]={};continue;case'8':global[_0x3b225f(0x1dd)]=0x0;continue;case'9':global[_0x3b225f(0x1c7)]=0x0;continue;case'10':global['testSuites']=0x0;continue;case'11':this[_0x3b225f(0x1d5)]=_0x3c9f4a['mochaOpts'];continue;case'12':this['_configuration']=_0x3c9f4a[_0x3b225f(0x1ba)]||{};continue;case'13':global[_0x3b225f(0x1d8)]=0x0;continue;case'14':global[_0x3b225f(0x1c8)]=this[_0x3b225f(0x1c6)][_0x3b225f(0x1db)]||{};continue;case'15':global[_0x3b225f(0x1e0)]=0x0;continue;case'16':this[_0x3b225f(0x1cc)]=_0x80603b;continue;case'17':this[_0x3b225f(0x1d0)]=_0x3c9f4a['formatter'];continue;case'18':this[_0x3b225f(0x1bb)]=_0x154c28;continue;case'19':this[_0x3b225f(0x1c6)][_0x3b225f(0x1c5)]=_0x80603b;continue;case'20':global[_0x3b225f(0x1ce)]=0x0;continue;case'21':global[_0x3b225f(0x1bf)]=0x0;continue;case'22':global['__platform__']=this[_0x3b225f(0x1c6)]['platform'];continue;case'23':global['totalTests']=0x0;continue;}break;}}[a25_0x44bb39(0x1dc)](_0x38423e,_0x3fd09e,_0x6b6562){const _0x435047=a25_0x44bb39,_0x47eabb=_0x38423e[_0x435047(0x1c4)];_0x38423e.resolvePaths=async function(){const pathResults=await _0x47eabb.apply(this,arguments);if(!pathResults.requirePaths){pathResults.requirePaths=[];}pathResults.requirePaths=[path.join(__dirname,'../cucumber-js/test.setup.js')].concat(pathResults.requirePaths,path.join(__dirname,_0x6b6562));return pathResults;},_0x3fd09e.push('--format'),_0x3fd09e.push(path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));}run(){return new Promise(async(resolve,reject)=>{require('../../helpers/setKeepAlive')();if(this._framework==='mocha'){const mochaRunHelper=requireModule('mocha/lib/cli/run-helpers.js');const Mocha=requireModule('mocha');if(isBrowserstackInfra()){modifyCommand();}const mochaHooks=require('../mocha/test.setup').mochaHooks;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);}const plugins=await mochaRunHelper.handleRequires(this._mochaOpts.require);Object.assign(this._mochaOpts,plugins);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={...this._mochaOpts,reporter:path.join(__dirname,'../mocha/bstack-reporter/customReporter.js'),reporterOption:{...this._mochaOpts.reporterOptions,type:userReporter||'spec',testObservability:this._testObservability,bsConfig:this._bsConfig},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()=>{if(RequestQueueHandler.getInstance().pendingUploads<=0){clearInterval(checkPendingUploadsInterval);await cleanupDrivers(global.__driversArray);resolve(exit);}},1000);});};}else{mocha.run=function(_){return mocha.prevRun(async exit=>{await cleanupDrivers(global.__driversArray);resolve(exit);});};}try{require('../../index').browserstackAgentV2(this._configuration,null,this._testObservability);}catch{}const runProm=mochaRunHelper.runMocha(mocha,mochaOpts);runProm&&runProm.catch(er=>{reject(er);});}else if(this._framework==='cucumber-js'){let cucumberCli;try{cucumberCli=requireModule('@cucumber/cucumber/lib/cli/index.js');}catch(e){cucumberCli=requireModule('cucumber/lib/cli/index.js');}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');this.setupCucumber(paths,argv,timeoutFileName);}catch(e){try{paths=requireModule('@cucumber/cucumber/lib/api/paths.js');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').default;argv.push('--format');argv.push(path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));}catch(e){ConfigurationBuilder=requireModule('cucumber/lib/cli/configuration_builder.js').default;argv.push('--format');argv.push(path.join(__dirname,'../cucumber-js/formatter/custom_formatter_old_versions.js'));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'){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);process.exitCode=1;reject(er);}resolve();}});}}module.exports=Launcher;
|
|
1
|
+
const a25_0x20480b=a25_0x15fa;(function(_0x5259b3,_0x448b21){const _0x4ccde4=a25_0x15fa,_0x535b4d=_0x5259b3();while(!![]){try{const _0x80e6ef=-parseInt(_0x4ccde4(0x159))/0x1+parseInt(_0x4ccde4(0x176))/0x2+parseInt(_0x4ccde4(0x14e))/0x3*(parseInt(_0x4ccde4(0x15b))/0x4)+parseInt(_0x4ccde4(0x173))/0x5*(-parseInt(_0x4ccde4(0x177))/0x6)+-parseInt(_0x4ccde4(0x155))/0x7+-parseInt(_0x4ccde4(0x16a))/0x8*(-parseInt(_0x4ccde4(0x165))/0x9)+parseInt(_0x4ccde4(0x16f))/0xa;if(_0x80e6ef===_0x448b21)break;else _0x535b4d['push'](_0x535b4d['shift']());}catch(_0x3b434d){_0x535b4d['push'](_0x535b4d['shift']());}}}(a25_0xf2f7,0xb98d6));function a25_0xf2f7(){const _0x40b76e=['../../helpers/test-observability/requestQueueHandler','configuration','25875620WqvuQe','testsUnknown','setupCucumber','18|7|6|20|1|19|3|21|4|23|0|9|15|8|2|12|17|5|14|10|16|22|13|11','85385DgEijh','formatter','testsUndefined','326932owVOeg','354hRlYKE','totalTests','_framework','testsErrorMessage','33261JqMcWa','_testObservability','capability','../../helpers/helper','platform','__platform__','_mochaOpts','2784810wuUwTV','split','testsPassed','resolvePaths','827424FdlrYJ','../../helpers/ai-sdk/autoHealHelper','28dspywU','EWjPL','includes','../../helpers/accessibility-automation/helper','_accessibilityAutomation','setFramework','platformCaps','_bsConfig','__platformCaps','zGSqg','14346RDsfhA','mochaOpts','../../helpers/test-observability/utils','_configuration','../utils/constants','824oYCymD','path','_argv'];a25_0xf2f7=function(){return _0x40b76e;};return a25_0xf2f7();}function a25_0x15fa(_0x545f74,_0x2887cc){const _0xf2f70e=a25_0xf2f7();return a25_0x15fa=function(_0x15faf3,_0xf474af){_0x15faf3=_0x15faf3-0x14b;let _0x25178a=_0xf2f70e[_0x15faf3];return _0x25178a;},a25_0x15fa(_0x545f74,_0x2887cc);}const path=require(a25_0x20480b(0x16b)),{requireModule,modifyCommand,getPlatformName,cleanupDrivers,isBrowserstackInfra}=require(a25_0x20480b(0x151)),constants=require(a25_0x20480b(0x169)),{isAccessibilityAutomationSession}=require(a25_0x20480b(0x15e)),RequestQueueHandler=require(a25_0x20480b(0x16d)),{isTestObservabilitySession}=require(a25_0x20480b(0x167)),helper=require(a25_0x20480b(0x151)),{commandRepository}=require(a25_0x20480b(0x15a));class Launcher{constructor(_0x2932be,_0x5804cf,_0x14de44,_0x5c5a5b=[]){const _0xb3e4c1=a25_0x20480b,_0x435756={'EWjPL':_0xb3e4c1(0x172),'zGSqg':function(_0x103cd8){return _0x103cd8();}},_0xc66f7d=_0x435756[_0xb3e4c1(0x15c)][_0xb3e4c1(0x156)]('|');let _0x439d59=0x0;while(!![]){switch(_0xc66f7d[_0x439d59++]){case'0':this[_0xb3e4c1(0x15f)]=_0x435756[_0xb3e4c1(0x164)](isAccessibilityAutomationSession);continue;case'1':this['_formatter']=_0x5804cf[_0xb3e4c1(0x174)];continue;case'2':global[_0xb3e4c1(0x157)]=0x0;continue;case'3':global[_0xb3e4c1(0x153)]=this[_0xb3e4c1(0x168)][_0xb3e4c1(0x152)];continue;case'4':this[_0xb3e4c1(0x162)]=_0x14de44;continue;case'5':global['testsSkipped']=0x0;continue;case'6':this[_0xb3e4c1(0x168)]['framework']=_0x2932be;continue;case'7':this['_configuration']=_0x5804cf[_0xb3e4c1(0x16e)]||{};continue;case'8':global[_0xb3e4c1(0x14b)]=0x0;continue;case'9':global[_0xb3e4c1(0x163)]=this['_configuration'][_0xb3e4c1(0x161)]||{};continue;case'10':global[_0xb3e4c1(0x175)]=0x0;continue;case'11':!constants['AI_ENABLED_FRAMEWORK'][_0xb3e4c1(0x15d)](_0x2932be)&&(commandRepository['setConfig'](_0x14de44),commandRepository[_0xb3e4c1(0x160)](_0x2932be));continue;case'12':global['testsFailed']=0x0;continue;case'13':global[_0xb3e4c1(0x14d)]={};continue;case'14':global['testSuitesFailed']=0x0;continue;case'15':global['testSuites']=0x0;continue;case'16':global[_0xb3e4c1(0x170)]=0x0;continue;case'17':global['testsPending']=0x0;continue;case'18':this[_0xb3e4c1(0x14c)]=_0x2932be;continue;case'19':this['_capability']=this[_0xb3e4c1(0x168)][_0xb3e4c1(0x150)];continue;case'20':this[_0xb3e4c1(0x154)]=_0x5804cf[_0xb3e4c1(0x166)];continue;case'21':this[_0xb3e4c1(0x16c)]=_0x5c5a5b;continue;case'22':global['testsAmbiguous']=0x0;continue;case'23':this[_0xb3e4c1(0x14f)]=_0x435756[_0xb3e4c1(0x164)](isTestObservabilitySession);continue;}break;}}[a25_0x20480b(0x171)](_0x1da56b,_0x351b45,_0x95ac7b){const _0x5dccfe=a25_0x20480b,_0x2941ae=_0x1da56b[_0x5dccfe(0x158)];_0x1da56b.resolvePaths=async function(){const pathResults=await _0x2941ae.apply(this,arguments);if(!pathResults.requirePaths){pathResults.requirePaths=[];}pathResults.requirePaths=[path.join(__dirname,'../cucumber-js/test.setup.js')].concat(pathResults.requirePaths,path.join(__dirname,_0x95ac7b));return pathResults;},_0x351b45.push('--format'),_0x351b45.push(path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));}run(){return new Promise(async(resolve,reject)=>{require('../../helpers/setKeepAlive')();if(this._framework==='mocha'){const mochaRunHelper=requireModule('mocha/lib/cli/run-helpers.js');const Mocha=requireModule('mocha');if(isBrowserstackInfra()){modifyCommand();}const mochaHooks=require('../mocha/test.setup').mochaHooks;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);}const plugins=await mochaRunHelper.handleRequires(this._mochaOpts.require);Object.assign(this._mochaOpts,plugins);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={...this._mochaOpts,reporter:path.join(__dirname,'../mocha/bstack-reporter/customReporter.js'),reporterOption:{...this._mochaOpts.reporterOptions,type:userReporter||'spec',testObservability:this._testObservability,bsConfig:this._bsConfig},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()=>{if(RequestQueueHandler.getInstance().pendingUploads<=0){clearInterval(checkPendingUploadsInterval);await cleanupDrivers(global.__driversArray);resolve(exit);}},1000);});};}else{mocha.run=function(_){return mocha.prevRun(async exit=>{await cleanupDrivers(global.__driversArray);resolve(exit);});};}try{require('../../index').browserstackAgentV2(this._configuration,null,this._testObservability);}catch{}const runProm=mochaRunHelper.runMocha(mocha,mochaOpts);runProm&&runProm.catch(er=>{reject(er);});}else if(this._framework==='cucumber-js'){let cucumberCli;try{cucumberCli=requireModule('@cucumber/cucumber/lib/cli/index.js');}catch(e){cucumberCli=requireModule('cucumber/lib/cli/index.js');}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');this.setupCucumber(paths,argv,timeoutFileName);}catch(e){try{paths=requireModule('@cucumber/cucumber/lib/api/paths.js');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').default;argv.push('--format');argv.push(path.join(__dirname,'../cucumber-js/formatter/custom_formatter.js'));}catch(e){ConfigurationBuilder=requireModule('cucumber/lib/cli/configuration_builder.js').default;argv.push('--format');argv.push(path.join(__dirname,'../cucumber-js/formatter/custom_formatter_old_versions.js'));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'){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);process.exitCode=1;reject(er);}resolve();}});}}module.exports=Launcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a26_0x14a8(_0x48e834,_0x28ec88){const _0x5b22ef=a26_0x5b22();return a26_0x14a8=function(_0x14a8b6,_0x5a4005){_0x14a8b6=_0x14a8b6-0xbf;let _0x5f4137=_0x5b22ef[_0x14a8b6];return _0x5f4137;},a26_0x14a8(_0x48e834,_0x28ec88);}const a26_0x373dac=a26_0x14a8;(function(_0x2614cb,_0x5675e2){const _0x364f3c=a26_0x14a8,_0x5216a3=_0x2614cb();while(!![]){try{const _0x30d6b5=-parseInt(_0x364f3c(0xd1))/0x1*(parseInt(_0x364f3c(0xc3))/0x2)+parseInt(_0x364f3c(0x10c))/0x3*(parseInt(_0x364f3c(0xec))/0x4)+-parseInt(_0x364f3c(0xd2))/0x5+-parseInt(_0x364f3c(0xd5))/0x6*(parseInt(_0x364f3c(0xd4))/0x7)+-parseInt(_0x364f3c(0xf9))/0x8+parseInt(_0x364f3c(0xcb))/0x9*(-parseInt(_0x364f3c(0xf4))/0xa)+parseInt(_0x364f3c(0xfb))/0xb;if(_0x30d6b5===_0x5675e2)break;else _0x5216a3['push'](_0x5216a3['shift']());}catch(_0x246224){_0x5216a3['push'](_0x5216a3['shift']());}}}(a26_0x5b22,0x489d0));function a26_0x5b22(){const _0xd56883=['deviceName','LpQSy','9MTOjMz','latest','setAccessibilityCapabilities','BS_A11Y_JWT','browserstack.accessibility','warn','494049yCOyKV','2826700jOiVYA','getCapabilities','93163uQyMbR','30PjMfvm','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','capabilities_','browserstack.accessibilityOptions','getBrowserName','selenium-webdriver/chrome.js','BFVNa','options_','debug','nestedKeyValue','Options','util','ZTZAX','TqFWK','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','PjUtf','browserstack','BsVZT','winstonLogger','VMnkp','get','getPlatform','env','1871332tINJhg','accessibility','gQtQa','Exception\x20in\x20fetching\x20platform\x20details\x20with\x20error\x20:\x20','authToken','accessibilityOptions','wHrEI','vjfQK','4033810gbvSVb','fetchPlatformDetails','format','Accessibility\x20Automation\x20will\x20not\x20run\x20on\x20legacy\x20headless\x20mode.\x20Switch\x20to\x20new\x20headless\x20mode\x20or\x20avoid\x20using\x20headless\x20mode.','getBrowserVersion','1157032VavPnj','setGlobal','16538885vYpMcK','toLowerCase','chrome','nOxSu','UOWXl','dwPbM','capability','../../../helpers/logger','getPlatformVersion','Exception\x20in\x20setExtension\x20Error:\x20','TdQsW','jHwSM','browserName','ZPcnt','Exception\x20while\x20setting\x20Accessibility\x20Automation\x20capabilities.\x20Error\x20','isUndefined','scannerVersion','3vkaVAZ','HLqpf','bstack:options','OmYmz','../../../helpers/globals','includes','xPOgb','fANDf','2kvythy','isAccessibilityPlatform','wyrVf','browserVersion','chromeOptions','__cloud_provider___'];a26_0x5b22=function(){return _0xd56883;};return a26_0x5b22();}const path=require('path'),os=require('os'),util=require(a26_0x373dac(0xe0)),bsSetupHelper=require('../../../helpers/helper'),globals=require(a26_0x373dac(0xbf)),logger=require(a26_0x373dac(0x102))[a26_0x373dac(0xe7)];exports[a26_0x373dac(0xcd)]=_0x38f3dc=>{const _0x44d676=a26_0x373dac,_0x589c8e={};_0x589c8e[_0x44d676(0x106)]=_0x44d676(0x10e),_0x589c8e['VMnkp']=_0x44d676(0xcf),_0x589c8e[_0x44d676(0xff)]=_0x44d676(0xc4),_0x589c8e['wHrEI']=_0x44d676(0xd8);const _0x48ffac=_0x589c8e;try{const _0x1d576c=_0x38f3dc[_0x44d676(0x101)]||{};if(_0x1d576c[_0x48ffac[_0x44d676(0x106)]]&&_0x1d576c[_0x48ffac[_0x44d676(0x106)]][_0x44d676(0xed)]||_0x38f3dc[_0x44d676(0x101)][_0x48ffac[_0x44d676(0xe8)]]){globals[_0x44d676(0xfa)](_0x48ffac['UOWXl'],!![]);if(_0x1d576c[_0x48ffac[_0x44d676(0x106)]]){if(_0x1d576c[_0x48ffac['jHwSM']][_0x44d676(0xf1)])_0x1d576c[_0x48ffac[_0x44d676(0x106)]][_0x44d676(0xf1)][_0x44d676(0xf0)]=process[_0x44d676(0xeb)][_0x44d676(0xce)];else{const _0x332e13={};_0x332e13['authToken']=process[_0x44d676(0xeb)][_0x44d676(0xce)],_0x1d576c[_0x48ffac[_0x44d676(0x106)]][_0x44d676(0xf1)]=_0x332e13;}_0x1d576c[_0x48ffac[_0x44d676(0x106)]]['accessibilityOptions'][_0x44d676(0x10b)]=JSON['parse'](process[_0x44d676(0xeb)][_0x44d676(0xe3)])[_0x44d676(0x10b)];}else{if(_0x38f3dc['capability'][_0x48ffac[_0x44d676(0xe8)]]){if(_0x1d576c[_0x48ffac[_0x44d676(0xf2)]])_0x1d576c[_0x48ffac[_0x44d676(0xf2)]]['authToken']=process['env'][_0x44d676(0xce)];else{const _0x1d74f3={};_0x1d74f3[_0x44d676(0xf0)]=process['env']['BS_A11Y_JWT'],_0x1d576c[_0x48ffac['wHrEI']]=_0x1d74f3;}_0x1d576c[_0x48ffac[_0x44d676(0xf2)]][_0x44d676(0x10b)]=JSON['parse'](process[_0x44d676(0xeb)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x44d676(0x10b)];}}}}catch(_0x1e0f1e){logger[_0x44d676(0xdd)](_0x44d676(0x109)+_0x1e0f1e);}},exports['setExtension']=(_0x11198a,_0x5deba5)=>{const _0x42fb34=a26_0x373dac,_0x5a91a2={};_0x5a91a2[_0x42fb34(0xc5)]='bstack:options',_0x5a91a2[_0x42fb34(0xee)]=function(_0xb3abb,_0x6fc3c1){return _0xb3abb!==_0x6fc3c1;},_0x5a91a2[_0x42fb34(0xdb)]=_0x42fb34(0xd6),_0x5a91a2[_0x42fb34(0xe6)]=function(_0x1ea1ee,_0x4dbfb1){return _0x1ea1ee!==_0x4dbfb1;},_0x5a91a2[_0x42fb34(0x105)]=_0x42fb34(0xfd),_0x5a91a2[_0x42fb34(0xc1)]='Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.',_0x5a91a2[_0x42fb34(0x108)]=function(_0x320989,_0x11b272){return _0x320989===_0x11b272;},_0x5a91a2[_0x42fb34(0xc2)]=_0x42fb34(0xcc),_0x5a91a2['ZTZAX']=function(_0x105aae,_0x39fc26){return _0x105aae>_0x39fc26;},_0x5a91a2['NqtCg']='Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.',_0x5a91a2[_0x42fb34(0xca)]=_0x42fb34(0xda),_0x5a91a2['nOxSu']=_0x42fb34(0xdc),_0x5a91a2[_0x42fb34(0xe2)]='args',_0x5a91a2[_0x42fb34(0xe4)]=_0x42fb34(0xc7),_0x5a91a2[_0x42fb34(0x10f)]='--headless',_0x5a91a2[_0x42fb34(0x10d)]=_0x42fb34(0xf7);const _0x2b99aa=_0x5a91a2;try{const _0x4be243=_0x5deba5['capability']||{},_0x211b59=(_0x4be243[_0x2b99aa[_0x42fb34(0xc5)]]?_0x4be243[_0x2b99aa[_0x42fb34(0xc5)]][_0x42fb34(0xc9)]:_0x4be243['device'])||'';if(_0x2b99aa[_0x42fb34(0xee)](_0x211b59,''))return logger[_0x42fb34(0xd0)](_0x2b99aa[_0x42fb34(0xdb)]),![];const _0x243f0c=_0x4be243[_0x42fb34(0x107)]||_0x11198a[_0x42fb34(0xd7)][_0x42fb34(0xd9)]();if(_0x2b99aa[_0x42fb34(0xe6)](_0x243f0c[_0x42fb34(0xfc)](),_0x2b99aa[_0x42fb34(0x105)]))return logger['warn'](_0x2b99aa[_0x42fb34(0xc1)]),![];const _0x289ad4=_0x4be243[_0x42fb34(0xc6)]||_0x4be243['browser_version']||_0x11198a[_0x42fb34(0xd7)][_0x42fb34(0xf8)]();if(!bsSetupHelper[_0x42fb34(0x10a)](_0x289ad4)&&!(_0x2b99aa[_0x42fb34(0x108)](_0x289ad4,_0x2b99aa['fANDf'])||_0x2b99aa[_0x42fb34(0xe1)](_0x289ad4,0x5e)))return logger[_0x42fb34(0xd0)](_0x2b99aa['NqtCg']),![];let _0x1f6fe2;try{_0x1f6fe2=bsSetupHelper['requireModule'](_0x2b99aa[_0x42fb34(0xca)]);}catch(_0x319938){return![];}const _0xfd8fa6=new _0x1f6fe2[(_0x42fb34(0xdf))](_0x11198a['chromeOptions_']),_0x6d1d8f=bsSetupHelper[_0x42fb34(0xde)](_0xfd8fa6,[_0x2b99aa[_0x42fb34(0xfe)],_0x2b99aa[_0x42fb34(0xe2)]])||bsSetupHelper['nestedKeyValue'](_0x11198a[_0x42fb34(0xd7)][_0x42fb34(0xe9)](_0x2b99aa[_0x42fb34(0xc5)]),[_0x2b99aa[_0x42fb34(0xe4)],_0x2b99aa[_0x42fb34(0xe2)]])||bsSetupHelper[_0x42fb34(0xde)](_0x11198a[_0x42fb34(0xd7)][_0x42fb34(0xe9)](_0x2b99aa[_0x42fb34(0xe4)]),[_0x2b99aa[_0x42fb34(0xe2)]])||[];if(_0x6d1d8f[_0x42fb34(0xc0)](_0x2b99aa['OmYmz']))return logger[_0x42fb34(0xd0)](_0x2b99aa[_0x42fb34(0x10d)]),![];return!![];}catch(_0x455070){logger['debug'](_0x42fb34(0x104)+util[_0x42fb34(0xf6)](_0x455070));}return![];},exports[a26_0x373dac(0xf5)]=async _0x343573=>{const _0x580802=a26_0x373dac,_0x6c0fd6={};_0x6c0fd6[_0x580802(0xf3)]=function(_0x18cc47,_0x516157){return _0x18cc47===_0x516157;},_0x6c0fd6['dwPbM']=_0x580802(0xe5);const _0x3c25e8=_0x6c0fd6;let _0x21e9e9={};try{const _0xdba05d=await _0x343573[_0x580802(0xd3)]();_0x21e9e9={'os_name':_0xdba05d[_0x580802(0xea)](),'os_version':bsSetupHelper[_0x580802(0x103)](_0x3c25e8[_0x580802(0xf3)](global[_0x580802(0xc8)],_0x3c25e8[_0x580802(0x100)])),'browser_name':_0xdba05d['getBrowserName'](),'browser_version':_0xdba05d['getBrowserVersion']()};}catch(_0x59961e){logger['debug'](_0x580802(0xef)+_0x59961e);}return _0x21e9e9;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a27_0x2a0062=a27_0x1707;function a27_0x2e57(){const _0x2fdb35=['slow','DGNQs','push','indent','currentRetry','17589060nAJlUG','includes','name','YFWsk','vXASR','parent','\x20%s','EvXIQ','fullTitle','suites','AKsen','fZOJa','testStarted','expanded','__platform__','escape','.git','COMPLETED','CihdN','</dd>','eSrID','spec','4741842hGmgIa','\x20\x20<dt>','config','getInstance','failed','Runner','zrjis','fail','ctx','bs:addLog:','retryOf','duration','kYswB','finalResults','UsmUG','KHXXw','AFTER_ALL','XWbBJ','IwnJR','hookAnalyticsId','_upstreamConfig','test_run','mocha','dirname','sjFkJ','test','qfWmt','toString','KvxZn','dlLQE','PJiuF','_indents','\x20\x20%d)\x20%s','JOqiD','finished_at','cezoA','consoleLog','AWYuE','symbols','</dt>','error','test_run_uuid','QPvzD','trim','inspect','_currentRetry','altYL','bs:addPlatformDetails:','currentTest','eToVu','scope','VSvhY','mocha/lib/utils.js','shouldProcessEventForTesthub','reporterOptions','.js','mocha/lib/reporters/','GKJkX','yhqDh','now','CiLSc','findGitConfig','tUmkp','bVlAH','sAZQL','green','failCount','</dl>','VeDrI','sbrwG','\x20\x20<dd><pre><code>','BEFORE_EACH','suiteCount','appendTestItemLog','mShLd','relative','constants','NjplU','zskWc','DJIcb','testAnalyticsId','Exception\x20in\x20uploading\x20platform\x20details\x20to\x20Observability\x20with\x20error\x20:\x20','rvckD','mFgEj','AFTER_EACH','NsRYj','CFidS','before\x20each','cMRZv','TiYrm','getTime','after\x20all','\x20\x20<dd\x20class=\x22error\x22><pre><code>','yeDVt','err','result','titlePath','Exception\x20in\x20uploading\x20log\x20data\x20to\x20Observability\x20with\x20error\x20:\x20','slice','TestRunStarted','current_hook','<section\x20class=\x22suite\x22>','length','<h1>','../../../helpers/test-observability/constants','file','hook_run_uuid','logs','fgNZy','KhMwz','55424MPcfys','_testResults','\x20(%dms)','AmxpG','state','TestRunFinished','kDnpS','CBTSessionCreated','zEyPS','multiple','YfDRM','analyticsResult','statSync','jaxXZ','hqcJg','sendTestRunEvent','yJQYt','mocha/lib/reporters/base.js','color','testObservability','results','zVTWD','uuid','gGljO','pid','KmkyR','GpqZO','KXSNg','ZqPxQ','started_at','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','getRootParentFile','cwd','tOkbz','../../../helpers/testhub/constants','wZhzY','pNcAG','prototype','stdout','after\x20each','LogCreated','../../../helpers/testhub/utils','join','write','event_type','TZnVG','25990XglRMe','comma','HookStarted','\x20-\x20','__indents','../test-observability/mochaUtils','Failed\x20to\x20load\x20reporter\x20','HookRunFinished','fast','call','markedStatus','RpVEw','MOCHA','_testEnv','prefixTestPath','</section>','_buildCreated','originalTitle','<dl>','582Sbccjr','BEFORE_ALL','increaseIndent','suite','11152552lwVptE','backtrace','isaLb','SJZue','YZGvF','9TPGIuN','hook_type','TestRunSkipped','_paths','varpW','forEach','OtFiv','pending','\x20\x20<dt\x20class=\x22error\x22>','IPfqm','79064LNKhBn','wJnjl','cgmaK','failure_backtrace','location_prefix','before\x20all','guJOm','qsNCt','appendTestPlatform','lkEwX','%s\x20-\x20%s','</code></pre></dd>','Reporter','docAppend','cTwWm','oHSPS','uploadEventData','util','isPending','once','setCurrentTestData','docHtml','QhjOF','6FHRRkG','scopes','cxMkU','pCtKN','lRAsd','xunit','EVENT','failure','doc','body','HookFinished','pass','http_response','failure_reason_expanded','%s\x20','title','Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20','ozVcs','GJkkV','bang','mocha/lib/runnable.js','\x20with\x20error\x20:\x20','CytPI','split','PhqHA','RbUWG','fgkkO','YIHPI','../../../helpers/test-observability/sessionHandler','ssCbf','lZeXr','jjzBK','RTAji','checkmark','toISOString','dot','speed','wZrUM','rYKhR','lrWjM','match','PuQYq','passed','current_test','done','DgIuf','lWMvS','314632BLrpcV','exports','../../../helpers/test-observability/requestQueueHandler','DjMrB','pLory','type','JfLli','reporterOption','clean'];a27_0x2e57=function(){return _0x2fdb35;};return a27_0x2e57();}(function(_0x59aa0a,_0x4f45eb){const _0x55789f=a27_0x1707,_0x4bc02a=_0x59aa0a();while(!![]){try{const _0x53ad28=-parseInt(_0x55789f(0x9c))/0x1+parseInt(_0x55789f(0xf0))/0x2*(parseInt(_0x55789f(0x107))/0x3)+parseInt(_0x55789f(0x136))/0x4+-parseInt(_0x55789f(0xca))/0x5*(-parseInt(_0x55789f(0xdd))/0x6)+parseInt(_0x55789f(0x15a))/0x7+-parseInt(_0x55789f(0xe1))/0x8*(-parseInt(_0x55789f(0xe6))/0x9)+-parseInt(_0x55789f(0x144))/0xa;if(_0x53ad28===_0x4f45eb)break;else _0x4bc02a['push'](_0x4bc02a['shift']());}catch(_0x1d839a){_0x4bc02a['push'](_0x4bc02a['shift']());}}}(a27_0x2e57,0xe0621));function a27_0x1707(_0x4fcbfd,_0x32a56f){const _0x2e57e8=a27_0x2e57();return a27_0x1707=function(_0x170718,_0x122715){_0x170718=_0x170718-0x8e;let _0x289cdf=_0x2e57e8[_0x170718];return _0x289cdf;},a27_0x1707(_0x4fcbfd,_0x32a56f);}const util=require(a27_0x2a0062(0x101)),fs=require('fs'),path=require('path'),{requireModule}=require('../../../helpers/helper'),Base=requireModule(a27_0x2a0062(0xad)),utils=requireModule(a27_0x2a0062(0x18e)),color=Base[a27_0x2a0062(0xae)],Mocha=requireModule(a27_0x2a0062(0x170)),Runnable=requireModule(a27_0x2a0062(0x11b)),{v4:uuidv4}=require(a27_0x2a0062(0xb2)),bsSetupHelper=require('../../../helpers/helper'),testhubUtils=require(a27_0x2a0062(0xc5)),testHubConstants=require(a27_0x2a0062(0xbe)),{FRAMEWORKS}=require('../../../helpers/test-observability/constants'),a27_0x56a062={};a27_0x56a062[a27_0x2a0062(0xf5)]=a27_0x2a0062(0xde),a27_0x56a062[a27_0x2a0062(0x1b5)]=a27_0x2a0062(0x16a),a27_0x56a062[a27_0x2a0062(0x1b1)]=a27_0x2a0062(0x1a1),a27_0x56a062[a27_0x2a0062(0xc3)]=a27_0x2a0062(0x1ae);const HOOK_TYPES_MAP=a27_0x56a062,{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[a27_0x2a0062(0x15f)][a27_0x2a0062(0x1a6)],{STATE_PASSED,STATE_PENDING,STATE_FAILED}=Runnable[a27_0x2a0062(0x1a6)],{getTestEnv,getHookDetails,getHooksForTest,mapTestHooks,getHookSkippedTests}=require(a27_0x2a0062(0xcf)),{consoleHolder}=require(a27_0x2a0062(0x96)),SessionHandler=require(a27_0x2a0062(0x123)),{isTestObservabilitySession,PathHelper,debug,failureData}=require('../../../helpers/test-observability/utils'),RequestQueueHandler=require(a27_0x2a0062(0x138)),requestQueueHandler=RequestQueueHandler[a27_0x2a0062(0x15d)]();class MyReporter{constructor(_0x4d19e3,_0x96ce81){const _0x1cdcc6=a27_0x2a0062,_0x3a6eb9={'wZhzY':function(_0x32d07a,_0x153916){return _0x32d07a===_0x153916;},'sbrwG':_0x1cdcc6(0x159),'PhqHA':function(_0x533443,_0x405e52){return _0x533443===_0x405e52;},'AKsen':function(_0x41720d,_0x4d81af){return _0x41720d+_0x4d81af;},'fgNZy':function(_0x145779,_0x1db864,_0x436152){return _0x145779(_0x1db864,_0x436152);},'varpW':_0x1cdcc6(0x19b),'zVTWD':_0x1cdcc6(0x115),'UsmUG':function(_0x36272b,_0xdd948b,_0x2efdab){return _0x36272b(_0xdd948b,_0x2efdab);},'QhjOF':'light','SJZue':_0x1cdcc6(0xfa),'vgAGZ':'RUNNING','YFWsk':_0x1cdcc6(0x10f),'lRAsd':function(_0x47a6ba){return _0x47a6ba();},'CFidS':'HookRunStarted','kYswB':_0x1cdcc6(0xd1),'AmxpG':_0x1cdcc6(0x131),'bVlAH':_0x1cdcc6(0xd2),'tXfOT':_0x1cdcc6(0x128),'KvxZn':function(_0x571d98,_0x5916ac,_0x3f226b){return _0x571d98(_0x5916ac,_0x3f226b);},'sAZQL':_0x1cdcc6(0x112),'TZnVG':_0x1cdcc6(0x14a),'PJiuF':function(_0x38c591,_0x243f29){return _0x38c591+_0x243f29;},'ozVcs':function(_0x16f03e,_0x4ae98a,_0x1502b4){return _0x16f03e(_0x4ae98a,_0x1502b4);},'gZjbd':function(_0xfa96a6,_0x57c219,_0x69c499){return _0xfa96a6(_0x57c219,_0x69c499);},'dUBZD':_0x1cdcc6(0x9e),'lrWjM':_0x1cdcc6(0x161),'Fdtua':_0x1cdcc6(0x17a),'fZOJa':function(_0x60df3,_0x592b3c){return _0x60df3+_0x592b3c;},'KmkyR':'bright\x20yellow','VSqYo':_0x1cdcc6(0x155),'nFXuA':function(_0xd75fce,_0x24e159){return _0xd75fce===_0x24e159;},'IwnJR':function(_0x598b0a,_0x3c321a){return _0x598b0a===_0x3c321a;},'OtFiv':_0x1cdcc6(0x12a),'QTudb':function(_0xa2b02,_0x386b40){return _0xa2b02===_0x386b40;},'VeDrI':_0x1cdcc6(0x13f),'VShgF':function(_0x453e0e,_0x4dc533){return _0x453e0e===_0x4dc533;},'GSpdp':'0|1|2|3|4','cMRZv':function(_0x4865d3,_0x36949a){return _0x4865d3===_0x36949a;},'NjplU':_0x1cdcc6(0xed),'NsRYj':function(_0x3f97fb,_0x3d8850){return _0x3f97fb===_0x3d8850;},'CytPI':function(_0x53c74d){return _0x53c74d();},'sjFkJ':_0x1cdcc6(0xe8),'ssCbf':function(_0x1e2947,_0x555717){return _0x1e2947===_0x555717;},'cTwWm':function(_0x476d32,_0x5c4afe){return _0x476d32===_0x5c4afe;},'wZrUM':function(_0x4aeefd,_0x5cf5f7){return _0x4aeefd===_0x5cf5f7;},'pNcAG':function(_0x1d5acd,_0x588fec){return _0x1d5acd(_0x588fec);},'IPfqm':function(_0x1a9ccb,_0x2bf17e){return _0x1a9ccb(_0x2bf17e);},'zrjis':function(_0x30e849){return _0x30e849();},'fqFSW':function(_0x228fd8,_0x3d179c){return _0x228fd8===_0x3d179c;},'oHSPS':_0x1cdcc6(0x10c),'YIHPI':function(_0x585e44,_0xcc25a1){return _0x585e44===_0xcc25a1;},'QPvzD':function(_0x3d5401,_0x34aaec){return _0x3d5401!==_0x34aaec;}};this[_0x1cdcc6(0x13b)]=_0x96ce81['reporterOption'][_0x1cdcc6(0x13b)],this[_0x1cdcc6(0xaf)]=_0x3a6eb9[_0x1cdcc6(0x11d)](isTestObservabilitySession),Base[_0x1cdcc6(0xd3)](this,_0x4d19e3,_0x96ce81),this[_0x1cdcc6(0x179)]=0x0,this[_0x1cdcc6(0x19c)]=0x0,this[_0x1cdcc6(0xb0)]=[],this[_0x1cdcc6(0x167)]=[],this[_0x1cdcc6(0x1a2)]=0x0,this[_0x1cdcc6(0xda)]=![],this[_0x1cdcc6(0x9d)]=[],this['_testEnv']=_0x3a6eb9[_0x1cdcc6(0x160)](getTestEnv),this[_0x1cdcc6(0xe9)]=new PathHelper({'cwd':process[_0x1cdcc6(0xbc)]()},this[_0x1cdcc6(0xd7)][_0x1cdcc6(0xf4)]),this[_0x1cdcc6(0x16e)]=_0x96ce81[_0x1cdcc6(0x13d)]['bsConfig'],this['registerListeners']();_0x3a6eb9['fqFSW'](this[_0x1cdcc6(0x13b)],_0x3a6eb9[_0x1cdcc6(0x147)])&&(this[_0x1cdcc6(0x105)]='',this[_0x1cdcc6(0xce)]=0x2);_0x4d19e3[_0x1cdcc6(0x103)](EVENT_RUN_BEGIN,async()=>{const _0x434289=_0x1cdcc6;_0x3a6eb9[_0x434289(0xbf)](this['type'],_0x3a6eb9[_0x434289(0x19f)])&&Base[_0x434289(0x17e)]();})['on'](EVENT_SUITE_BEGIN,_0x4576f0=>{const _0x5337da=_0x1cdcc6;if(_0x4576f0['root'])return;if(_0x3a6eb9[_0x5337da(0x11f)](this[_0x5337da(0x13b)],_0x3a6eb9[_0x5337da(0x19f)]))this[_0x5337da(0xdf)](),Base['consoleLog'](_0x3a6eb9[_0x5337da(0x14e)](_0x3a6eb9['AKsen'](this[_0x5337da(0x142)](),_0x3a6eb9[_0x5337da(0x9a)](color,_0x3a6eb9[_0x5337da(0xea)],_0x3a6eb9['zVTWD'])),_0x3a6eb9[_0x5337da(0x168)](color,_0x3a6eb9[_0x5337da(0x106)],_0x3a6eb9['SJZue'])),_0x3a6eb9['vgAGZ'],_0x4576f0[_0x5337da(0x116)],global[_0x5337da(0x152)]);else _0x3a6eb9['wZhzY'](this[_0x5337da(0x13b)],_0x3a6eb9[_0x5337da(0x147)])&&(this[_0x5337da(0xfd)](this[_0x5337da(0x142)]()+_0x5337da(0x93)),++this[_0x5337da(0xce)],this[_0x5337da(0xfd)](this[_0x5337da(0x142)]()+_0x5337da(0x95)+utils[_0x5337da(0x153)](_0x4576f0[_0x5337da(0x116)]+_0x5337da(0xcd)+global[_0x5337da(0x152)])+'</h1>'),this[_0x5337da(0xfd)](this[_0x5337da(0x142)]()+_0x5337da(0xdc)));})['on'](EVENT_HOOK_BEGIN,async _0x3172c8=>{const _0xdea199=_0x1cdcc6;if(_0x3a6eb9[_0xdea199(0x11f)](testhubUtils['shouldProcessEventForTesthub'](testHubConstants[_0xdea199(0x10d)][_0xdea199(0xcc)]),!![])){if(!_0x3172c8[_0xdea199(0x16d)])_0x3172c8[_0xdea199(0x16d)]=_0x3a6eb9['lRAsd'](uuidv4);else _0x3172c8[_0xdea199(0xd4)]&&(_0x3172c8[_0xdea199(0x16d)]=_0x3a6eb9[_0xdea199(0x10b)](uuidv4),delete _0x3172c8[_0xdea199(0xd4)]);_0x3172c8['started_at']=new Date()['toISOString'](),this['current_hook']=_0x3172c8,await this['sendTestRunEvent'](_0x3172c8,undefined,![],_0x3a6eb9[_0xdea199(0x1b0)]);}})['on'](EVENT_HOOK_END,async _0x51ba32=>{const _0x4ca005=_0x1cdcc6;_0x3a6eb9[_0x4ca005(0xbf)](testhubUtils[_0x4ca005(0x18f)](testHubConstants[_0x4ca005(0x10d)][_0x4ca005(0x111)]),!![])&&(!_0x51ba32[_0x4ca005(0xd4)]&&(_0x51ba32[_0x4ca005(0xd4)]=!![],await this['sendTestRunEvent'](_0x51ba32,undefined,![],_0x3a6eb9[_0x4ca005(0x166)])));})['on'](EVENT_SUITE_END,_0x530335=>{const _0x20e724=_0x1cdcc6,_0x353f0e={'PuQYq':function(_0x4661ca,_0x166919){const _0x5ecbce=a27_0x1707;return _0x3a6eb9[_0x5ecbce(0x11f)](_0x4661ca,_0x166919);},'cgmaK':_0x3a6eb9[_0x20e724(0x9f)],'DjMrB':_0x3a6eb9[_0x20e724(0x199)],'cezoA':function(_0x42ab54,_0x2dd4ea){return _0x3a6eb9['AKsen'](_0x42ab54,_0x2dd4ea);},'yhqDh':function(_0x11645b,_0x3b9f4d,_0x5cb31a){return _0x3a6eb9['UsmUG'](_0x11645b,_0x3b9f4d,_0x5cb31a);},'qsNCt':_0x3a6eb9['tXfOT'],'eToVu':function(_0x3973c8,_0x404cf4,_0x3a2442){const _0x167b69=_0x20e724;return _0x3a6eb9[_0x167b69(0x176)](_0x3973c8,_0x404cf4,_0x3a2442);},'DJIcb':_0x3a6eb9[_0x20e724(0x19a)],'rYKhR':_0x3a6eb9[_0x20e724(0xc9)],'mFgEj':function(_0x34e7b0,_0x49dd7b){return _0x3a6eb9['PJiuF'](_0x34e7b0,_0x49dd7b);},'RbUWG':function(_0x366d76,_0x1a8898,_0x856f03){return _0x3a6eb9['ozVcs'](_0x366d76,_0x1a8898,_0x856f03);},'ZVYje':function(_0x45bc29,_0x12cf82,_0x24da2d){return _0x3a6eb9['gZjbd'](_0x45bc29,_0x12cf82,_0x24da2d);},'XWbBJ':_0x3a6eb9['dUBZD'],'lWMvS':function(_0x3d0e7c,_0x24fedf){const _0x59c563=_0x20e724;return _0x3a6eb9[_0x59c563(0x178)](_0x3d0e7c,_0x24fedf);},'guJOm':function(_0x2f444c,_0xc09bb6,_0x35715e){const _0xbc657e=_0x20e724;return _0x3a6eb9[_0xbc657e(0x118)](_0x2f444c,_0xc09bb6,_0x35715e);},'QkVXv':_0x3a6eb9[_0x20e724(0x12e)],'YZGvF':_0x3a6eb9['Fdtua']};if(_0x530335['root'])return;if(_0x3a6eb9['PhqHA'](this[_0x20e724(0x13b)],_0x3a6eb9[_0x20e724(0x19f)]))Base[_0x20e724(0x17e)](),Base[_0x20e724(0x17e)](_0x3a6eb9[_0x20e724(0x14f)](_0x3a6eb9[_0x20e724(0x178)](this[_0x20e724(0x142)](),_0x3a6eb9[_0x20e724(0x176)](color,_0x3a6eb9[_0x20e724(0xb5)],_0x3a6eb9[_0x20e724(0xb1)])),_0x3a6eb9[_0x20e724(0x168)](color,_0x3a6eb9['QhjOF'],_0x3a6eb9[_0x20e724(0xe4)])),_0x3a6eb9['VSqYo'],_0x530335[_0x20e724(0x116)],global[_0x20e724(0x152)]),this['results'][_0x20e724(0xeb)](_0x279afc=>{const _0x5f3dd1=_0x20e724;if(_0x353f0e['PuQYq'](_0x279afc[_0x5f3dd1(0xa0)],_0x353f0e[_0x5f3dd1(0xf2)])){var _0x11ee3b;_0x353f0e[_0x5f3dd1(0x130)](_0x279afc[_0x5f3dd1(0x12b)],_0x353f0e[_0x5f3dd1(0x139)])?(_0x11ee3b=_0x353f0e['cezoA'](_0x353f0e[_0x5f3dd1(0x17d)](this[_0x5f3dd1(0x142)](),_0x353f0e[_0x5f3dd1(0x194)](color,_0x353f0e['qsNCt'],_0x353f0e[_0x5f3dd1(0x17d)]('\x20\x20',Base['symbols']['ok']))),_0x353f0e[_0x5f3dd1(0x18b)](color,_0x353f0e[_0x5f3dd1(0x1a9)],_0x353f0e['rYKhR'])),Base['consoleLog'](_0x11ee3b,_0x279afc[_0x5f3dd1(0x116)])):(_0x11ee3b=_0x353f0e[_0x5f3dd1(0x1ad)](_0x353f0e['mFgEj'](_0x353f0e[_0x5f3dd1(0x1ad)](this[_0x5f3dd1(0x142)](),_0x353f0e[_0x5f3dd1(0x120)](color,_0x353f0e[_0x5f3dd1(0xf7)],_0x353f0e[_0x5f3dd1(0x17d)]('\x20\x20',Base['symbols']['ok']))),_0x353f0e[_0x5f3dd1(0x194)](color,_0x353f0e[_0x5f3dd1(0x1a9)],_0x353f0e[_0x5f3dd1(0x12d)])),_0x353f0e['ZVYje'](color,_0x279afc[_0x5f3dd1(0x12b)],_0x353f0e[_0x5f3dd1(0x16b)])),Base[_0x5f3dd1(0x17e)](_0x11ee3b,_0x279afc[_0x5f3dd1(0x116)],_0x279afc[_0x5f3dd1(0x165)]));}else Base[_0x5f3dd1(0x17e)](_0x353f0e[_0x5f3dd1(0x135)](this['indent'](),_0x353f0e[_0x5f3dd1(0xf6)](color,_0x353f0e['QkVXv'],_0x353f0e[_0x5f3dd1(0xe5)])),++this[_0x5f3dd1(0x19c)],_0x279afc[_0x5f3dd1(0x116)]);}),this['decreaseIndent']();else _0x3a6eb9['nFXuA'](this[_0x20e724(0x13b)],_0x3a6eb9[_0x20e724(0x147)])&&(this['docAppend'](this[_0x20e724(0x142)]()+_0x20e724(0x19d)),--this[_0x20e724(0xce)],this[_0x20e724(0xfd)](this[_0x20e724(0x142)]()+_0x20e724(0xd9)),--this[_0x20e724(0xce)]);Array[_0x20e724(0xc1)][_0x20e724(0x141)]['apply'](this[_0x20e724(0x167)],this[_0x20e724(0xb0)]),this[_0x20e724(0xb0)]=[];})['on'](EVENT_TEST_PASS,async _0x4dfd0a=>{const _0xd41e96=_0x1cdcc6;this[_0xd41e96(0xb0)][_0xd41e96(0x141)]({'speed':_0x4dfd0a[_0xd41e96(0x12b)],'suite':_0x4dfd0a[_0xd41e96(0x149)][_0xd41e96(0x116)],'title':_0x4dfd0a[_0xd41e96(0x116)],'fullTitle':_0x4dfd0a['fullTitle'](),'duration':_0x4dfd0a['duration'],'state':_0x4dfd0a['state'],'err':{},'currentRetry':_0x4dfd0a[_0xd41e96(0x143)](),'titlePathV':_0x4dfd0a[_0xd41e96(0x8e)](),'isPending':_0x4dfd0a[_0xd41e96(0x102)]()});if(_0x3a6eb9['IwnJR'](this[_0xd41e96(0x13b)],_0x3a6eb9[_0xd41e96(0xec)]))_0x3a6eb9['QTudb'](_0x4dfd0a[_0xd41e96(0x12b)],_0x3a6eb9[_0xd41e96(0x19e)])?process['stdout'][_0xd41e96(0xc7)](Base[_0xd41e96(0xae)](_0x3a6eb9['KmkyR'],Base['symbols']['dot'])):process[_0xd41e96(0xc2)][_0xd41e96(0xc7)](Base[_0xd41e96(0xae)](_0x4dfd0a[_0xd41e96(0x12b)],Base[_0xd41e96(0x180)][_0xd41e96(0x12a)]));else{if(_0x3a6eb9[_0xd41e96(0x16c)](this[_0xd41e96(0x13b)],_0x3a6eb9[_0xd41e96(0x147)])){this['docAppend'](this['indent']()+_0xd41e96(0x15b)+utils[_0xd41e96(0x153)](_0x4dfd0a[_0xd41e96(0x116)])+_0xd41e96(0x181)),this['docAppend'](this['indent']()+_0xd41e96(0x15b)+utils[_0xd41e96(0x153)](_0x4dfd0a[_0xd41e96(0x97)])+_0xd41e96(0x181));var _0x11065b=utils[_0xd41e96(0x153)](utils['clean'](_0x4dfd0a[_0xd41e96(0x110)]));this[_0xd41e96(0xfd)](this[_0xd41e96(0x142)]()+_0xd41e96(0x1a0)+_0x11065b+_0xd41e96(0xfb));}}_0x3a6eb9[_0xd41e96(0xbf)](testhubUtils[_0xd41e96(0x18f)](),!![])&&(!_0x4dfd0a[_0xd41e96(0xd4)]&&(_0x4dfd0a[_0xd41e96(0xd4)]=!![],await this[_0xd41e96(0xab)](_0x4dfd0a)));})['on'](EVENT_TEST_FAIL,async(_0x346df9,_0x1d2bbe)=>{const _0x4a72c7=_0x1cdcc6;this[_0x4a72c7(0xb0)][_0x4a72c7(0x141)]({'title':_0x346df9[_0x4a72c7(0x116)],'suite':_0x346df9[_0x4a72c7(0x149)][_0x4a72c7(0x116)],'state':_0x346df9['state'],'err':{'message':util[_0x4a72c7(0x186)](_0x1d2bbe)},'fullTitle':_0x346df9[_0x4a72c7(0x14c)](),'speed':_0x346df9[_0x4a72c7(0x12b)],'currentRetry':_0x346df9['currentRetry'](),'titlePathV':_0x346df9[_0x4a72c7(0x8e)]()});if(_0x3a6eb9['PhqHA'](this[_0x4a72c7(0x13b)],_0x3a6eb9[_0x4a72c7(0xec)]))process['stdout'][_0x4a72c7(0xc7)](Base['color'](_0x3a6eb9[_0x4a72c7(0x12e)],Base[_0x4a72c7(0x180)][_0x4a72c7(0x11a)]));else{if(_0x3a6eb9['VShgF'](this['type'],_0x3a6eb9[_0x4a72c7(0x147)])){const _0x19ed1b=_0x3a6eb9['GSpdp'][_0x4a72c7(0x11e)]('|');let _0x2d9112=0x0;while(!![]){switch(_0x19ed1b[_0x2d9112++]){case'0':this[_0x4a72c7(0xfd)](this['indent']()+_0x4a72c7(0xee)+utils[_0x4a72c7(0x153)](_0x346df9[_0x4a72c7(0x116)])+_0x4a72c7(0x181));continue;case'1':this[_0x4a72c7(0xfd)](this[_0x4a72c7(0x142)]()+_0x4a72c7(0xee)+utils[_0x4a72c7(0x153)](_0x346df9['file'])+_0x4a72c7(0x181));continue;case'2':var _0x46dc01=utils['escape'](utils[_0x4a72c7(0x13e)](_0x346df9[_0x4a72c7(0x110)]));continue;case'3':this[_0x4a72c7(0xfd)](this['indent']()+_0x4a72c7(0x1b6)+_0x46dc01+_0x4a72c7(0xfb));continue;case'4':this[_0x4a72c7(0xfd)](this[_0x4a72c7(0x142)]()+'\x20\x20<dd\x20class=\x22error\x22>'+utils[_0x4a72c7(0x153)](_0x346df9[_0x4a72c7(0x1b8)])+_0x4a72c7(0x157));continue;}break;}}}if(_0x3a6eb9[_0x4a72c7(0x1b2)](testhubUtils['shouldProcessEventForTesthub'](testHubConstants[_0x4a72c7(0x10d)][_0x4a72c7(0x111)]),!![])){if(!_0x346df9[_0x4a72c7(0xd4)]){_0x346df9[_0x4a72c7(0xd4)]=!![];if(_0x346df9[_0x4a72c7(0x1aa)])await this[_0x4a72c7(0xab)](_0x346df9,_0x1d2bbe);else _0x346df9[_0x4a72c7(0x16d)]&&await this[_0x4a72c7(0xab)](_0x346df9,_0x1d2bbe,![],_0x3a6eb9[_0x4a72c7(0x166)]);}}})['on'](EVENT_TEST_PENDING,async _0x27edf6=>{const _0x36ea30=_0x1cdcc6;this[_0x36ea30(0xb0)][_0x36ea30(0x141)]({'title':_0x27edf6[_0x36ea30(0x116)],'suite':_0x27edf6[_0x36ea30(0x149)][_0x36ea30(0x116)],'state':_0x27edf6['state'],'err':{},'fullTitle':_0x27edf6[_0x36ea30(0x14c)](),'speed':_0x27edf6['speed'],'currentRetry':_0x27edf6['currentRetry'](),'titlePathV':_0x27edf6[_0x36ea30(0x8e)]()}),_0x3a6eb9['QTudb'](this['type'],_0x3a6eb9[_0x36ea30(0xec)])&&process[_0x36ea30(0xc2)][_0x36ea30(0xc7)](Base[_0x36ea30(0xae)](_0x3a6eb9[_0x36ea30(0x1a7)],Base[_0x36ea30(0x180)][_0x36ea30(0xcb)])),_0x3a6eb9[_0x36ea30(0x1af)](testhubUtils['shouldProcessEventForTesthub'](),!![])&&(!_0x27edf6[_0x36ea30(0x1aa)]&&(_0x27edf6['testAnalyticsId']=_0x3a6eb9[_0x36ea30(0x11d)](uuidv4)),!_0x27edf6[_0x36ea30(0xd4)]&&(_0x27edf6[_0x36ea30(0xd4)]=!![],await this[_0x36ea30(0xab)](_0x27edf6,undefined,![],_0x3a6eb9[_0x36ea30(0x172)])));})['on'](EVENT_TEST_BEGIN,async _0x10ccd1=>{const _0x5563fa=_0x1cdcc6;_0x3a6eb9[_0x5563fa(0x124)](testhubUtils[_0x5563fa(0x18f)](),!![])&&await this['testStarted'](_0x10ccd1);})['on'](EVENT_TEST_END,async _0x1721ce=>{const _0x5144a6=_0x1cdcc6;_0x3a6eb9['cTwWm'](testhubUtils['shouldProcessEventForTesthub'](),!![])&&(!_0x1721ce['markedStatus']&&(_0x1721ce[_0x5144a6(0xd4)]=!![],await this[_0x5144a6(0xab)](_0x1721ce)));})[_0x1cdcc6(0x103)](EVENT_RUN_END,async()=>{const _0x4116f6=_0x1cdcc6;try{if(_0x3a6eb9[_0x4116f6(0x12c)](testhubUtils['shouldProcessEventForTesthub'](),!![])){const _0xf7ede8=_0x3a6eb9[_0x4116f6(0xc0)](getHookSkippedTests,this['runner'][_0x4116f6(0xe0)]);for(const _0x5fc02b of _0xf7ede8){!_0x5fc02b[_0x4116f6(0x1aa)]&&(_0x5fc02b[_0x4116f6(0x1aa)]=_0x3a6eb9[_0x4116f6(0x11d)](uuidv4)),await this['sendTestRunEvent'](_0x5fc02b,undefined,![],_0x3a6eb9['sjFkJ']);}}}catch(_0x555462){_0x3a6eb9[_0x4116f6(0xef)](debug,'Exception\x20in\x20populating\x20test\x20data\x20for\x20hook\x20skipped\x20test\x20with\x20error\x20:\x20'+_0x555462);}await requestQueueHandler['shutdown'](),_0x3a6eb9[_0x4116f6(0xfe)](this[_0x4116f6(0x13b)],_0x3a6eb9[_0x4116f6(0x147)])&&Base['consoleLog'](this[_0x4116f6(0x105)]);});if(this[_0x1cdcc6(0x13b)]&&![_0x3a6eb9[_0x1cdcc6(0x147)],_0x3a6eb9[_0x1cdcc6(0xff)],_0x3a6eb9[_0x1cdcc6(0x19f)],_0x3a6eb9[_0x1cdcc6(0xec)]]['includes'](this[_0x1cdcc6(0x13b)])){const _0x352ffe=this[_0x1cdcc6(0x13b)][_0x1cdcc6(0x185)]();this[_0x1cdcc6(0xfc)]=null;try{this['Reporter']=_0x3a6eb9[_0x1cdcc6(0xc0)](requireModule,_0x1cdcc6(0x192)+_0x352ffe+_0x1cdcc6(0x191));}catch{}if(_0x3a6eb9[_0x1cdcc6(0x122)](this[_0x1cdcc6(0xfc)],null))try{this['Reporter']=_0x3a6eb9[_0x1cdcc6(0xef)](require,_0x352ffe);}catch(_0x57c7f8){console[_0x1cdcc6(0x182)](_0x1cdcc6(0xd0)+_0x352ffe);}if(_0x3a6eb9[_0x1cdcc6(0x184)](this[_0x1cdcc6(0xfc)],null)){const _0x2024a5={};_0x2024a5[_0x1cdcc6(0x190)]=_0x96ce81[_0x1cdcc6(0x13d)],this[_0x1cdcc6(0xfc)]=new this[(_0x1cdcc6(0xfc))](_0x4d19e3,_0x2024a5);}}}[a27_0x2a0062(0x142)](){const _0x3e5019=a27_0x2a0062,_0x99d1ee={'pCTNN':function(_0x5159f3,_0x587e62){return _0x5159f3(_0x587e62);}};return _0x99d1ee['pCTNN'](Array,this[_0x3e5019(0x179)])[_0x3e5019(0xc6)]('\x20\x20');}[a27_0x2a0062(0xdf)](){this['_indents']++;}['decreaseIndent'](){const _0xc38fb0=a27_0x2a0062;this[_0xc38fb0(0x179)]--;}['docAppend'](_0x42de16){const _0xfc1b96=a27_0x2a0062;this[_0xfc1b96(0x105)]+=_0x42de16;}[a27_0x2a0062(0x133)](_0x4b31d6,_0x59b07f){const _0x496824=a27_0x2a0062,_0x4515ff={'VSvhY':function(_0x498678,_0x18effc){return _0x498678(_0x18effc);}},_0x3448f3={};_0x3448f3['failureCount']=_0x4b31d6,_0x3448f3['results']=this[_0x496824(0x167)],_0x4515ff[_0x496824(0x18d)](_0x59b07f,_0x3448f3);}['registerListeners'](){const _0x1f43fe=a27_0x2a0062;process['removeAllListeners'](_0x1f43fe(0x163)+process[_0x1f43fe(0xb4)]),process['on'](_0x1f43fe(0x163)+process['pid'],this[_0x1f43fe(0x1a3)]['bind'](this)),process['removeAllListeners'](_0x1f43fe(0x189)+process['pid']),process['on']('bs:addPlatformDetails:'+process[_0x1f43fe(0xb4)],this[_0x1f43fe(0xf8)]['bind'](this));}[a27_0x2a0062(0x150)]=async _0x476f81=>{const _0x15570b=a27_0x2a0062,_0x4f3c00={'dlLQE':function(_0x456ada){return _0x456ada();},'pJUup':function(_0x513c20,_0xb46b6){return _0x513c20>_0xb46b6;},'hqcJg':function(_0x46b023,_0x46b736){return _0x46b023===_0x46b736;},'JfLli':_0x15570b(0x91),'GKJkX':function(_0x4106ed,_0x581e33){return _0x4106ed(_0x581e33);}};try{const _0x17a924=this['current_test'];this[_0x15570b(0x132)]=_0x476f81,_0x476f81[_0x15570b(0x164)]=null,_0x476f81[_0x15570b(0x1aa)]=_0x4f3c00[_0x15570b(0x177)](uuidv4),_0x476f81[_0x15570b(0xb9)]=new Date()[_0x15570b(0x129)](),_0x4f3c00['pJUup'](_0x476f81[_0x15570b(0x187)],0x0)&&_0x17a924&&_0x4f3c00[_0x15570b(0xaa)](_0x17a924[_0x15570b(0x116)],_0x476f81[_0x15570b(0x116)])?(_0x476f81['retryOf']=_0x17a924[_0x15570b(0x1aa)],await this[_0x15570b(0xab)](_0x476f81,undefined,![],_0x4f3c00[_0x15570b(0x13c)]),_0x17a924['state']=STATE_FAILED,await this[_0x15570b(0xab)](_0x17a924,undefined,!![])):await this[_0x15570b(0xab)](_0x476f81,undefined,![],_0x4f3c00['JfLli']);}catch(_0x4708c8){_0x4f3c00[_0x15570b(0x193)](debug,_0x15570b(0x117)+_0x4708c8);}};['sendTestRunEvent']=async(_0x123b89,_0x33a07=undefined,_0x5348a3=![],_0x3afdc6=a27_0x2a0062(0xa1))=>{const _0x220b44=a27_0x2a0062,_0x3898a1={'kDnpS':function(_0xb66994,_0x1e507c){return _0xb66994===_0x1e507c;},'zskWc':function(_0xf3d492,_0x4eefa6){return _0xf3d492!==_0x4eefa6;},'tOkbz':_0x220b44(0x173),'vXASR':_0x220b44(0x1b8),'wJnjl':'File\x20path\x20could\x20not\x20be\x20found','EvXIQ':'Mocha','zEyPS':'javascript','GJkkV':_0x220b44(0xe8),'isaLb':'skipped','FIXAi':function(_0x31cf59,_0x282f06){return _0x31cf59-_0x282f06;},'pLory':'AssertionError','YfDRM':'UnhandledError','GpqZO':_0x220b44(0xb9),'altYL':_0x220b44(0x17c),'fgkkO':function(_0x4c2c3c,_0x3ef66e){return _0x4c2c3c(_0x3ef66e);},'DgIuf':function(_0x1b5d6c,_0x205368){return _0x1b5d6c===_0x205368;},'JOqiD':_0x220b44(0xd1),'cxMkU':'failed','yJQYt':_0x220b44(0x131),'TiYrm':function(_0x28adb7,_0x1e6680){return _0x28adb7===_0x1e6680;},'AWYuE':'before\x20each','faQcb':function(_0x4a33a3,_0x145a2d){return _0x4a33a3===_0x145a2d;},'yeDVt':_0x220b44(0x10e),'fNvpy':_0x220b44(0xf3),'jaxXZ':_0x220b44(0xe2),'KXSNg':_0x220b44(0x114),'KHXXw':_0x220b44(0x151),'mShLd':'TestRunFinished','WZYMy':function(_0xe3b54e,_0x38c821){return _0xe3b54e(_0x38c821);},'RpVEw':'hook_type','KhMwz':'hook_run','rvckD':'test_run'};try{if(_0x123b89[_0x220b44(0x110)]&&_0x123b89['body']['match'](/browserstack internal helper hook/))return;let _0x240f64=[];if(_0x3898a1[_0x220b44(0xa2)](_0x123b89['state'],STATE_FAILED)){if(_0x3898a1[_0x220b44(0x1a8)](_0x123b89['err'],undefined))_0x240f64=_0x123b89['err'][_0x220b44(0xa5)]?[_0x123b89[_0x220b44(0x1b8)][_0x220b44(0xa5)],_0x3898a1[_0x220b44(0xbd)]]:[_0x123b89[_0x220b44(0x1b8)],_0x3898a1[_0x220b44(0x148)]];else _0x3898a1[_0x220b44(0x1a8)](_0x33a07,undefined)?_0x240f64=[_0x33a07,_0x3898a1[_0x220b44(0x148)]]:_0x240f64=[];}const _0x38ad1f=_0x3898a1[_0x220b44(0x1a8)](_0x123b89[_0x220b44(0x1b8)],undefined)?_0x123b89[_0x220b44(0x1b8)][_0x220b44(0x175)]():_0x3898a1[_0x220b44(0x1a8)](_0x33a07,undefined)?_0x33a07[_0x220b44(0x175)]():undefined;let _0x39f408;try{_0x39f408=this[_0x220b44(0xbb)](_0x123b89);}catch(_0x288cbc){_0x39f408=null;}const _0x4a2899=_0x39f408?this['findGitConfig'](_0x39f408):null,_0x123f7a=_0x39f408?this[_0x220b44(0xe9)][_0x220b44(0xd8)](this[_0x220b44(0xbb)](_0x123b89)):_0x3898a1[_0x220b44(0xf1)],_0xd5e6d9={'framework':_0x3898a1[_0x220b44(0x14b)],'uuid':_0x123b89[_0x220b44(0x1aa)]||_0x123b89[_0x220b44(0x16d)],'name':_0x123b89[_0x220b44(0x116)],'body':{'lang':_0x3898a1[_0x220b44(0xa4)],'code':_0x123b89[_0x220b44(0x110)]},'scope':this[_0x220b44(0x18c)](_0x123b89),'scopes':this[_0x220b44(0x108)](_0x123b89),'identifier':_0x123b89[_0x220b44(0x14c)](),'file_name':_0x123f7a,'vc_filepath':_0x4a2899?path[_0x220b44(0x1a5)](_0x4a2899,_0x39f408):null,'location':_0x123f7a,'result':_0x3898a1['kDnpS'](_0x3afdc6,_0x3898a1[_0x220b44(0x119)])?_0x3898a1[_0x220b44(0xe3)]:this['analyticsResult'](_0x123b89['state']),'failure_reason':_0x38ad1f,'duration_in_ms':_0x123b89['duration']||(_0x3afdc6[_0x220b44(0x12f)](/Finished/)||_0x3afdc6[_0x220b44(0x12f)](/Skipped/)?_0x3898a1['FIXAi'](Date[_0x220b44(0x195)](),new Date(_0x123b89[_0x220b44(0xb9)])[_0x220b44(0x1b4)]()):null),'started_at':_0x123b89[_0x220b44(0xb9)],'finished_at':_0x3afdc6[_0x220b44(0x12f)](/Finished/)||_0x3afdc6[_0x220b44(0x12f)](/Skipped/)?new Date()[_0x220b44(0x129)]():null,'failure':failureData['apply'](null,_0x240f64),'failure_type':!_0x38ad1f?null:_0x38ad1f[_0x220b44(0x12f)](/AssertionError/)?_0x3898a1[_0x220b44(0x13a)]:_0x3898a1[_0x220b44(0xa6)],'retry_of':_0x123b89[_0x220b44(0x164)]};testhubUtils['appendTesthubParams'](_0xd5e6d9,_0x3afdc6,_0x123b89,FRAMEWORKS[_0x220b44(0xd6)]);_0x3898a1[_0x220b44(0xa2)](_0x3afdc6,_0x3898a1['GJkkV'])&&!_0xd5e6d9[_0x3898a1[_0x220b44(0xb6)]]&&(_0xd5e6d9[_0x3898a1[_0x220b44(0xb6)]]=_0xd5e6d9[_0x3898a1[_0x220b44(0x188)]]);if(_0x3afdc6[_0x220b44(0x12f)](/HookRun/))[_0xd5e6d9['hook_type'],_0xd5e6d9[_0x220b44(0x146)]]=_0x3898a1[_0x220b44(0x121)](getHookDetails,_0x123b89[_0x220b44(0x14c)]()||_0x123b89[_0x220b44(0xdb)]||_0x123b89[_0x220b44(0x116)]),_0x3898a1[_0x220b44(0x134)](_0x3afdc6,_0x3898a1[_0x220b44(0x17b)])&&(_0x3898a1[_0x220b44(0x1a8)](_0xd5e6d9[_0x220b44(0x1b9)],_0x3898a1[_0x220b44(0x109)])&&(_0xd5e6d9[_0x220b44(0x1b9)]=_0x3898a1[_0x220b44(0xac)]),_0x3898a1[_0x220b44(0x1b3)](_0xd5e6d9[_0x220b44(0xe7)],_0x3898a1[_0x220b44(0x17f)])&&_0x3898a1['faQcb'](_0xd5e6d9[_0x220b44(0x1b9)],_0x3898a1[_0x220b44(0x109)])&&!_0x123b89[_0x220b44(0x162)][_0x220b44(0x18a)][_0x220b44(0xd4)]&&(_0x123b89[_0x220b44(0x162)][_0x220b44(0x18a)][_0x220b44(0xd4)]=!![],_0x123b89[_0x220b44(0x162)]['currentTest'][_0x220b44(0xa0)]=STATE_FAILED,await this[_0x220b44(0xab)](_0x123b89[_0x220b44(0x162)]['currentTest'],undefined,!![])));else _0x3afdc6[_0x220b44(0x12f)](/TestRun/)&&_0x3898a1[_0x220b44(0x121)](mapTestHooks,_0x123b89);const _0x4b56d5=_0xd5e6d9[_0x3898a1[_0x220b44(0x1b7)]][0x0];_0x4b56d5&&(_0xd5e6d9[_0x3898a1['fNvpy']]=_0x4b56d5[_0x3898a1[_0x220b44(0xa9)]],_0xd5e6d9[_0x3898a1[_0x220b44(0xb7)]]=_0x4b56d5[_0x3898a1[_0x220b44(0x169)]]);[_0x3898a1[_0x220b44(0x1a4)],_0x3898a1[_0x220b44(0x119)]][_0x220b44(0x145)](_0x3afdc6)&&(this[_0x220b44(0x9d)]['push'](_0xd5e6d9),_0xd5e6d9['hooks']=_0x3898a1['WZYMy'](getHooksForTest,_0x123b89));const _0xe76b8c={'event_type':_0x3898a1[_0x220b44(0xa2)](_0x3afdc6,_0x3898a1['GJkkV'])?_0x3898a1[_0x220b44(0x1a4)]:_0x3afdc6};_0x3afdc6['match'](/HookRun/)?(_0xd5e6d9[_0x3898a1[_0x220b44(0xd5)]]=HOOK_TYPES_MAP[_0xd5e6d9[_0x3898a1[_0x220b44(0xd5)]]],_0xe76b8c[_0x3898a1[_0x220b44(0x9b)]]=_0xd5e6d9):_0xe76b8c[_0x3898a1[_0x220b44(0x1ac)]]=_0xd5e6d9,testhubUtils[_0x220b44(0x104)](FRAMEWORKS[_0x220b44(0xd6)],_0xe76b8c),await SessionHandler['uploadEventData'](_0xe76b8c);}catch(_0x1c9cf9){_0x3898a1[_0x220b44(0x121)](debug,_0x220b44(0xba)+_0x3afdc6+_0x220b44(0x11c)+_0x1c9cf9);}};[a27_0x2a0062(0x197)](_0x312310){const _0x17985c=a27_0x2a0062,_0x56bb30={};_0x56bb30[_0x17985c(0xb8)]=function(_0x5878ad,_0x2aa40c){return _0x5878ad===_0x2aa40c;},_0x56bb30['jjzBK']=_0x17985c(0x154),_0x56bb30[_0x17985c(0x125)]=_0x17985c(0x15c);const _0x59df47=_0x56bb30,_0x1614fd=path['sep'];if(_0x59df47[_0x17985c(0xb8)](_0x312310,null)||_0x59df47[_0x17985c(0xb8)](_0x312310,'')||_0x59df47[_0x17985c(0xb8)](_0x312310,_0x1614fd))return null;try{return fs[_0x17985c(0xa8)](path[_0x17985c(0xc6)](_0x312310,_0x59df47[_0x17985c(0x126)],_0x59df47[_0x17985c(0x125)])),_0x312310;}catch(_0x4efdd0){const _0x6a2714=path[_0x17985c(0x171)](_0x312310);return this[_0x17985c(0x197)](_0x6a2714);}}[a27_0x2a0062(0x1a3)]=async _0x108829=>{const _0x3ab332=a27_0x2a0062,_0x243c55={'RTAji':_0x3ab332(0xc4),'qfWmt':function(_0x126967,_0xf0db23){return _0x126967(_0xf0db23);}};try{this['current_hook']&&!this['current_hook'][_0x3ab332(0xd4)]&&(_0x108829[_0x3ab332(0x98)]=this[_0x3ab332(0x92)][_0x3ab332(0x16d)]);!_0x108829[_0x3ab332(0x98)]&&this[_0x3ab332(0x132)]&&!this['current_test'][_0x3ab332(0xd4)]&&(_0x108829[_0x3ab332(0x183)]=this[_0x3ab332(0x132)][_0x3ab332(0x1aa)]);if(_0x108829[_0x3ab332(0x98)]||_0x108829[_0x3ab332(0x183)]){const _0x46896f={};_0x46896f['event_type']=_0x243c55[_0x3ab332(0x127)],_0x46896f[_0x3ab332(0x99)]=[_0x108829],await SessionHandler[_0x3ab332(0x100)](_0x46896f);}}catch(_0x437529){_0x243c55[_0x3ab332(0x174)](debug,_0x3ab332(0x8f)+_0x437529);}};['appendTestPlatform']=async _0x3d2372=>{const _0xf17521=a27_0x2a0062,_0x514653={'dXCrL':_0xf17521(0x113),'tUmkp':_0xf17521(0xa3),'gGljO':function(_0x176d0b,_0x158cef){return _0x176d0b(_0x158cef);}};try{const _0x9ed235={};_0x9ed235[_0xf17521(0xb2)]=_0x3d2372[_0xf17521(0xb2)]||this[_0xf17521(0x132)][_0xf17521(0x1aa)],_0x9ed235['integrations']=_0x3d2372[_0x514653['dXCrL']];const _0x3f6dff=_0x9ed235,_0xe11691={};_0xe11691[_0xf17521(0xc8)]=_0x514653[_0xf17521(0x198)],_0xe11691[_0xf17521(0x16f)]=_0x3f6dff,await SessionHandler[_0xf17521(0x100)](_0xe11691);}catch(_0x1f712d){_0x514653[_0xf17521(0xb3)](debug,_0xf17521(0x1ab)+_0x1f712d);}};[a27_0x2a0062(0xa7)](_0x2ee3b0){const _0x2f9cfc=a27_0x2a0062,_0x4d700d={};_0x4d700d[_0x2f9cfc(0x140)]=_0x2f9cfc(0x131),_0x4d700d['lkEwX']=_0x2f9cfc(0xed),_0x4d700d[_0x2f9cfc(0x156)]=_0x2f9cfc(0x15e);const _0x865b7e=_0x4d700d,_0x1b88c6={};return _0x1b88c6[STATE_PASSED]=_0x865b7e['DGNQs'],_0x1b88c6[STATE_PENDING]=_0x865b7e[_0x2f9cfc(0xf9)],_0x1b88c6[STATE_FAILED]=_0x865b7e['CihdN'],_0x1b88c6[_0x2ee3b0];}[a27_0x2a0062(0x18c)](_0x255ff9){const _0x42cfd3=a27_0x2a0062,_0x390878={};_0x390878[_0x42cfd3(0x196)]=function(_0x1c5c14,_0x2598e2){return _0x1c5c14-_0x2598e2;};const _0x589ddc=_0x390878,_0x47fe70=_0x255ff9[_0x42cfd3(0x8e)]();return _0x47fe70[_0x42cfd3(0x90)](0x0,_0x589ddc[_0x42cfd3(0x196)](_0x47fe70[_0x42cfd3(0x94)],0x1))['join']('\x20');}[a27_0x2a0062(0x108)](_0x1993c6){const _0x30360f=a27_0x2a0062,_0xe73771={};_0xe73771[_0x30360f(0x158)]=function(_0xd8a8c4,_0x1735cd){return _0xd8a8c4-_0x1735cd;};const _0x129ef8=_0xe73771,_0x2262a3=_0x1993c6[_0x30360f(0x8e)]();return _0x2262a3['slice'](0x0,_0x129ef8[_0x30360f(0x158)](_0x2262a3[_0x30360f(0x94)],0x1));}[a27_0x2a0062(0xbb)](_0x329fbd){const _0x2bce25=a27_0x2a0062,_0x4ce784={};_0x4ce784[_0x2bce25(0x10a)]=function(_0x12c712,_0x3b75d8){return _0x12c712>_0x3b75d8;};const _0x8e0683=_0x4ce784;if(_0x329fbd['file'])return _0x329fbd[_0x2bce25(0x97)];if(_0x329fbd[_0x2bce25(0x162)]){const _0xa1181a=_0x329fbd[_0x2bce25(0x162)]['currentTest']?this['getRootParentFile'](_0x329fbd[_0x2bce25(0x162)]['currentTest']):null;if(_0xa1181a)return _0xa1181a;}if(_0x329fbd['parent']){const _0x2a00e6=this[_0x2bce25(0xbb)](_0x329fbd[_0x2bce25(0x149)])||(_0x329fbd[_0x2bce25(0x149)]['ctx']&&_0x329fbd['parent'][_0x2bce25(0x162)][_0x2bce25(0x18a)]?this[_0x2bce25(0xbb)](_0x329fbd[_0x2bce25(0x149)][_0x2bce25(0x162)][_0x2bce25(0x18a)]):null);if(_0x2a00e6)return _0x2a00e6;_0x329fbd[_0x2bce25(0x149)][_0x2bce25(0x14d)]&&_0x8e0683[_0x2bce25(0x10a)](_0x329fbd[_0x2bce25(0x149)][_0x2bce25(0x14d)][_0x2bce25(0x94)],0x0)&&_0x329fbd[_0x2bce25(0x149)]['suites'][_0x2bce25(0xeb)](_0x166cfc=>{const _0x13c284=_0x2bce25,_0x445317=_0x166cfc[_0x13c284(0x162)]?this[_0x13c284(0xbb)](_0x166cfc[_0x13c284(0x162)]):null;if(_0x445317)return _0x445317;});}return null;}}module[a27_0x2a0062(0x137)]=MyReporter;
|
|
1
|
+
'use strict';const a27_0x1405b5=a27_0x545f;(function(_0x281ca2,_0x4101da){const _0x525efb=a27_0x545f,_0x43a70c=_0x281ca2();while(!![]){try{const _0x5b731c=parseInt(_0x525efb(0xac))/0x1+-parseInt(_0x525efb(0x147))/0x2*(parseInt(_0x525efb(0xc8))/0x3)+-parseInt(_0x525efb(0x180))/0x4*(-parseInt(_0x525efb(0x168))/0x5)+-parseInt(_0x525efb(0x1b6))/0x6+-parseInt(_0x525efb(0xd5))/0x7+parseInt(_0x525efb(0x114))/0x8+-parseInt(_0x525efb(0xea))/0x9;if(_0x5b731c===_0x4101da)break;else _0x43a70c['push'](_0x43a70c['shift']());}catch(_0x5c1478){_0x43a70c['push'](_0x43a70c['shift']());}}}(a27_0x1ac0,0x5c405));function a27_0x545f(_0x228a16,_0x3f4aab){const _0x1ac02c=a27_0x1ac0();return a27_0x545f=function(_0x545fb5,_0x2a476c){_0x545fb5=_0x545fb5-0x92;let _0x231d88=_0x1ac02c[_0x545fb5];return _0x231d88;},a27_0x545f(_0x228a16,_0x3f4aab);}const util=require('util'),fs=require('fs'),path=require('path'),{requireModule}=require(a27_0x1405b5(0x150)),Base=requireModule('mocha/lib/reporters/base.js'),utils=requireModule('mocha/lib/utils.js'),color=Base[a27_0x1405b5(0x105)],Mocha=requireModule(a27_0x1405b5(0xcf)),Runnable=requireModule(a27_0x1405b5(0xd7)),{v4:uuidv4}=require(a27_0x1405b5(0x155)),bsSetupHelper=require(a27_0x1405b5(0x150)),testhubUtils=require('../../../helpers/testhub/utils'),testHubConstants=require(a27_0x1405b5(0xe2)),{FRAMEWORKS}=require(a27_0x1405b5(0xb4)),a27_0x414854={};function a27_0x1ac0(){const _0x6cec6e=['result','logs','wRCGV','parent','../../../helpers/test-observability/utils','FXgnZ','eetuL','started_at','lxewC','includes','uwvdu','consoleLog','state','scope','hookAnalyticsId','constants','color','</dt>','inspect','GLcQo','mocha/lib/reporters/','yDdxu','AUgUb','getRootParentFile','zWiYF','docAppend','failure_reason_expanded','EVENT','TestRunSkipped','hooks','lkqeb','5118384XwJKwd','type','ONNRT','WMnTZ','light','_paths','WgJwh','kklLI','testObservability','lLebp','qPuzN','MLtLk','BEFORE_ALL','Runner','originalTitle','shutdown','TestRunFinished','iDlFG','AFTER_EACH','azyUr','JTIev','pbACJ','AssertionError','Exception\x20in\x20uploading\x20platform\x20details\x20to\x20Observability\x20with\x20error\x20:\x20','HookRunFinished','HookStarted','findGitConfig','cJNyA','clean','XXagh','DRJbr','RBNdZ','exports','slow','oMvJl','qluIQ','uOytv','yArHm','shouldProcessEventForTesthub','TsnLP','\x20%s','increaseIndent','rijUn','\x20with\x20error\x20:\x20','match','_upstreamConfig','diAcS','jdKuG','\x20-\x20','failureCount','_currentRetry','241302gFFHFV','../../../helpers/test-observability/sessionHandler','teyWX','IoAZR','VWKIk','before\x20each','gTdmL','_testEnv','VwVVH','../../../helpers/helper','HGmLu','analyticsResult','NMOyC','WsXPF','uuid','uploadEventData','comma','hxLEA','sbqcg','pending','COMPLETED','roLQg','\x20(%dms)','1|4|3|0|2','RwuPV','Exception\x20in\x20populating\x20test\x20data\x20for\x20event\x20','CBTSessionCreated','ZYwWL','.js','current_hook','_buildCreated','title','jmopl','4840wVZkbR','UfPMG','SpxRs','\x20\x20<dt\x20class=\x22error\x22>','QZPOA','tWkKD','rwcmy','soZFP','MOCHA','KuNGc','stdout','symbols','wsOCw','lZHkp','once','MJWWJ','rGOuO','root','name','ctx','dRMNm','sendTestRunEvent','dot','config','2716UQDkqD','now','<dl>','KtWyb','GfCkH','body','_testResults','failure_backtrace','hUhOp','appendTesthubParams','DYmPJ','ndmvN','kzfZU','integrations','hook_run_uuid','reporterOption','kYiCq','fBTmo','suites','JIiHP','</code></pre></dd>','err','VPsUQ','VLKJL','event_type','appendTestPlatform','fullTitle','HookRunStarted','BhvOH','DsMQt','djozy','bright\x20yellow','vIEpb','muJNb','expanded','AFTER_ALL','lVBrT','apply','currentTest','hook_run','reporterOptions','MgelK','appendTestItemLog','multiple','Failed\x20to\x20load\x20reporter\x20','toString','HookFinished','EEwns','results','RUNNING','spec','hook_type','test_run_uuid','GhYZs','2136504ffOrgq','duration','_indents','pid','hKaOB','error','indent','.git','ljrZC','\x20\x20<dd\x20class=\x22error\x22>','split','scopes','retryOf','titlePath','oyvaQ','decreaseIndent','DZVRi','XVCAH','TestRunStarted','pass','prefixTestPath','lkuZt','join','jlPqP','%s\x20','forEach','getTime','517373ynoXwS','xunit','dqvly','exIjr','write','failed','removeAllListeners','speed','../../../helpers/test-observability/constants','AENmQ','statSync','skipped','bsConfig','docHtml','\x20\x20<dt>','done','__platform__','finished_at','ROVOd','DBWwE','JCiRl','current_test','zkliI','toISOString','__indents','eWvgt','ECSua','push','9AvXJPg','testStarted','slice','passed','cQvTG','getInstance','XUPnw','mocha','%s\x20-\x20%s','markedStatus','file','sep','failCount','1916614sWnQSo','HJlyU','mocha/lib/runnable.js','cwd','call','fPpfi','bs:addPlatformDetails:','isPending','javascript','EdhLk','testAnalyticsId','finalResults','hNYiH','../../../helpers/testhub/constants','uJfGH','currentRetry','CabEt','escape','DahxL','PWaHY','RtmFP','4002687IypFdw','Reporter','Exception\x20in\x20uploading\x20log\x20data\x20to\x20Observability\x20with\x20error\x20:\x20','registerListeners','checkmark','xkfJX','bind','fail','bs:addLog:','dirname','trim'];a27_0x1ac0=function(){return _0x6cec6e;};return a27_0x1ac0();}a27_0x414854['before\x20all']=a27_0x1405b5(0x120),a27_0x414854['after\x20all']=a27_0x1405b5(0x1a3),a27_0x414854['before\x20each']='BEFORE_EACH',a27_0x414854['after\x20each']=a27_0x1405b5(0x126);const HOOK_TYPES_MAP=a27_0x414854,{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[a27_0x1405b5(0x121)][a27_0x1405b5(0x104)],{STATE_PASSED,STATE_PENDING,STATE_FAILED}=Runnable[a27_0x1405b5(0x104)],{getTestEnv,getHookDetails,getHooksForTest,mapTestHooks,getHookSkippedTests}=require('../test-observability/mochaUtils'),{consoleHolder}=require(a27_0x1405b5(0xb4)),SessionHandler=require(a27_0x1405b5(0x148)),{isTestObservabilitySession,PathHelper,debug,failureData}=require(a27_0x1405b5(0xf9)),RequestQueueHandler=require('../../../helpers/test-observability/requestQueueHandler'),requestQueueHandler=RequestQueueHandler[a27_0x1405b5(0xcd)]();class MyReporter{constructor(_0xc927d1,_0x1ee3eb){const _0x1a7e6b=a27_0x1405b5,_0x58c7f3={'jlPqP':function(_0x1f3daf,_0x1dd35d){return _0x1f3daf===_0x1dd35d;},'jmopl':_0x1a7e6b(0x1b2),'DZVRi':function(_0x342a1a,_0x51f429){return _0x342a1a+_0x51f429;},'lkuZt':function(_0x52d6eb,_0x41b38c){return _0x52d6eb+_0x41b38c;},'DRJbr':function(_0x5c3f96,_0x3c5397,_0x397b88){return _0x5c3f96(_0x3c5397,_0x397b88);},'HGmLu':'green','RtmFP':_0x1a7e6b(0xa9),'ONNRT':_0x1a7e6b(0x118),'VSFkw':_0x1a7e6b(0xd0),'HEYJQ':_0x1a7e6b(0x1b1),'uwvdu':function(_0x535dd6,_0x1aa6fb){return _0x535dd6===_0x1aa6fb;},'cJNyA':'doc','azyUr':function(_0x295bf9,_0x1c81de){return _0x295bf9===_0x1c81de;},'muJNb':function(_0x296f15){return _0x296f15();},'HJlyU':_0x1a7e6b(0x19b),'IoAZR':_0x1a7e6b(0x12c),'EEwns':_0x1a7e6b(0xcb),'xkfJX':'fast','WMnTZ':function(_0xe93e3f,_0xacfe9){return _0xe93e3f+_0xacfe9;},'WgJwh':function(_0x43f4c9,_0x1a18b9){return _0x43f4c9+_0x1a18b9;},'oMvJl':function(_0x2e9c19,_0xe007a5,_0x389260){return _0x2e9c19(_0xe007a5,_0x389260);},'lxewC':_0x1a7e6b(0xee),'diAcS':_0x1a7e6b(0xa4),'oWOJZ':_0x1a7e6b(0x13c),'toBHQ':function(_0x1f763c,_0x4dc3a6){return _0x1f763c+_0x4dc3a6;},'lVBrT':function(_0x43449e,_0x421f49,_0x239732){return _0x43449e(_0x421f49,_0x239732);},'roLQg':_0x1a7e6b(0x15d),'kZwhw':function(_0x47cdf0,_0x53e9e2){return _0x47cdf0+_0x53e9e2;},'wRCGV':_0x1a7e6b(0xf1),'wuKle':'\x20\x20%d)\x20%s','EdhLk':function(_0x497878,_0x38ec85){return _0x497878+_0x38ec85;},'VLKJL':_0x1a7e6b(0x19f),'ljrZC':_0x1a7e6b(0x15b),'SpxRs':function(_0x3e9b95,_0x231763){return _0x3e9b95===_0x231763;},'cQvTG':_0x1a7e6b(0x17e),'VwVVH':_0x1a7e6b(0x135),'dqvly':_0x1a7e6b(0x15e),'PWaHY':function(_0x30c319,_0x127209){return _0x30c319===_0x127209;},'sbqcg':function(_0x34da14,_0x52f5a0){return _0x34da14===_0x52f5a0;},'VPsUQ':_0x1a7e6b(0x15a),'qluIQ':function(_0x5d982f,_0x3c48ee){return _0x5d982f===_0x3c48ee;},'fBTmo':function(_0x287fb1){return _0x287fb1();},'XUPnw':_0x1a7e6b(0x111),'exIjr':function(_0x3e61b6,_0x40f60a){return _0x3e61b6===_0x40f60a;},'DsMQt':function(_0x135c2c,_0x356f12){return _0x135c2c(_0x356f12);},'BhvOH':function(_0x59d9b0){return _0x59d9b0();},'xUXng':function(_0x28f3e3,_0x526cbc){return _0x28f3e3===_0x526cbc;},'hxLEA':function(_0xc0ee1f){return _0xc0ee1f();},'bgCzN':function(_0x202088,_0x23ef98){return _0x202088===_0x23ef98;},'PpiMw':_0x1a7e6b(0xad),'lZHkp':function(_0x7acdfa,_0x3d3b1e){return _0x7acdfa(_0x3d3b1e);},'aRemi':function(_0x200b79,_0x115b45){return _0x200b79===_0x115b45;},'WsXPF':function(_0x312f31,_0x2d8841){return _0x312f31(_0x2d8841);},'kioPi':function(_0x55fcbc,_0x541623){return _0x55fcbc!==_0x541623;}};this['type']=_0x1ee3eb[_0x1a7e6b(0x18f)][_0x1a7e6b(0x115)],this[_0x1a7e6b(0x11c)]=_0x58c7f3[_0x1a7e6b(0x19c)](isTestObservabilitySession),Base[_0x1a7e6b(0xd9)](this,_0xc927d1,_0x1ee3eb),this[_0x1a7e6b(0x93)]=0x0,this[_0x1a7e6b(0xd4)]=0x0,this[_0x1a7e6b(0x1b0)]=[],this[_0x1a7e6b(0xe0)]=[],this['suiteCount']=0x0,this[_0x1a7e6b(0x165)]=![],this[_0x1a7e6b(0x186)]=[],this['_testEnv']=_0x58c7f3[_0x1a7e6b(0x158)](getTestEnv),this[_0x1a7e6b(0x119)]=new PathHelper({'cwd':process[_0x1a7e6b(0xd8)]()},this[_0x1a7e6b(0x14e)]['location_prefix']),this[_0x1a7e6b(0x141)]=_0x1ee3eb[_0x1a7e6b(0x18f)][_0x1a7e6b(0xb8)],this[_0x1a7e6b(0xed)]();_0x58c7f3['bgCzN'](this['type'],_0x58c7f3[_0x1a7e6b(0x12f)])&&(this[_0x1a7e6b(0xb9)]='',this[_0x1a7e6b(0xc4)]=0x2);_0xc927d1[_0x1a7e6b(0x176)](EVENT_RUN_BEGIN,async()=>{const _0x1f219e=_0x1a7e6b;_0x58c7f3[_0x1f219e(0xa8)](this[_0x1f219e(0x115)],_0x58c7f3[_0x1f219e(0x167)])&&Base[_0x1f219e(0x100)]();})['on'](EVENT_SUITE_BEGIN,_0x4b0af9=>{const _0x1839bd=_0x1a7e6b;if(_0x4b0af9['root'])return;if(_0x58c7f3['jlPqP'](this['type'],_0x58c7f3['jmopl']))this['increaseIndent'](),Base[_0x1839bd(0x100)](_0x58c7f3[_0x1839bd(0xa1)](_0x58c7f3[_0x1839bd(0xa6)](this[_0x1839bd(0x97)](),_0x58c7f3['DRJbr'](color,_0x58c7f3[_0x1839bd(0x151)],_0x58c7f3[_0x1839bd(0xe9)])),_0x58c7f3[_0x1839bd(0x132)](color,_0x58c7f3[_0x1839bd(0x116)],_0x58c7f3['VSFkw'])),_0x58c7f3['HEYJQ'],_0x4b0af9[_0x1839bd(0x166)],global['__platform__']);else _0x58c7f3[_0x1839bd(0xff)](this['type'],_0x58c7f3[_0x1839bd(0x12f)])&&(this['docAppend'](this[_0x1839bd(0x97)]()+'<section\x20class=\x22suite\x22>'),++this[_0x1839bd(0xc4)],this[_0x1839bd(0x10e)](this[_0x1839bd(0x97)]()+'<h1>'+utils[_0x1839bd(0xe6)](_0x4b0af9['title']+_0x1839bd(0x144)+global[_0x1839bd(0xbc)])+'</h1>'),this[_0x1839bd(0x10e)](this['indent']()+_0x1839bd(0x182)));})['on'](EVENT_HOOK_BEGIN,async _0x50a849=>{const _0x4ffe90=_0x1a7e6b;if(_0x58c7f3[_0x4ffe90(0x127)](testhubUtils[_0x4ffe90(0x13a)](testHubConstants['EVENT'][_0x4ffe90(0x12d)]),!![])){if(!_0x50a849[_0x4ffe90(0x103)])_0x50a849[_0x4ffe90(0x103)]=_0x58c7f3[_0x4ffe90(0x1a1)](uuidv4);else _0x50a849[_0x4ffe90(0xd1)]&&(_0x50a849['hookAnalyticsId']=_0x58c7f3[_0x4ffe90(0x1a1)](uuidv4),delete _0x50a849[_0x4ffe90(0xd1)]);_0x50a849[_0x4ffe90(0xfc)]=new Date()[_0x4ffe90(0xc3)](),this['current_hook']=_0x50a849,await this[_0x4ffe90(0x17d)](_0x50a849,undefined,![],_0x58c7f3[_0x4ffe90(0xd6)]);}})['on'](EVENT_HOOK_END,async _0x1fd266=>{const _0x473279=_0x1a7e6b;_0x58c7f3[_0x473279(0xff)](testhubUtils['shouldProcessEventForTesthub'](testHubConstants['EVENT'][_0x473279(0x1ae)]),!![])&&(!_0x1fd266[_0x473279(0xd1)]&&(_0x1fd266['markedStatus']=!![],await this[_0x473279(0x17d)](_0x1fd266,undefined,![],_0x58c7f3['IoAZR'])));})['on'](EVENT_SUITE_END,_0x21b4c1=>{const _0x5ea484=_0x1a7e6b,_0x518453={'VWKIk':function(_0xce59d7,_0x407eca){return _0x58c7f3['azyUr'](_0xce59d7,_0x407eca);},'FXgnZ':_0x58c7f3[_0x5ea484(0x1af)],'RBNdZ':function(_0x5697dd,_0x1e7a87){const _0x2fd237=_0x5ea484;return _0x58c7f3[_0x2fd237(0xff)](_0x5697dd,_0x1e7a87);},'MJWWJ':_0x58c7f3[_0x5ea484(0xef)],'ndmvN':function(_0x69525c,_0x19c247){const _0x9aa03e=_0x5ea484;return _0x58c7f3[_0x9aa03e(0x117)](_0x69525c,_0x19c247);},'ROVOd':function(_0x266cd3,_0x4fb3a3){return _0x58c7f3['WgJwh'](_0x266cd3,_0x4fb3a3);},'lkqeb':function(_0x39bfb5,_0x4a9286,_0x432c75){const _0x4be620=_0x5ea484;return _0x58c7f3[_0x4be620(0x136)](_0x39bfb5,_0x4a9286,_0x432c75);},'fPpfi':_0x58c7f3[_0x5ea484(0xfd)],'DahxL':function(_0x4646f9,_0x9d036d){const _0x581c7c=_0x5ea484;return _0x58c7f3[_0x581c7c(0x11a)](_0x4646f9,_0x9d036d);},'rijUn':_0x58c7f3[_0x5ea484(0x142)],'rGOuO':_0x58c7f3['oWOJZ'],'PXZjw':function(_0x3e4520,_0x1937fd){return _0x58c7f3['toBHQ'](_0x3e4520,_0x1937fd);},'mHSPG':function(_0x118781,_0xdd0d43){return _0x58c7f3['WgJwh'](_0x118781,_0xdd0d43);},'eetuL':function(_0x2c072c,_0x36dc67,_0x2340ce){const _0x11f590=_0x5ea484;return _0x58c7f3[_0x11f590(0x1a4)](_0x2c072c,_0x36dc67,_0x2340ce);},'soZFP':_0x58c7f3[_0x5ea484(0x15c)],'ECSua':function(_0x11ddba,_0x28d4c4){return _0x58c7f3['kZwhw'](_0x11ddba,_0x28d4c4);},'yDdxu':_0x58c7f3[_0x5ea484(0xf7)],'JIiHP':_0x58c7f3['wuKle']};if(_0x21b4c1[_0x5ea484(0x179)])return;if(_0x58c7f3[_0x5ea484(0xa8)](this[_0x5ea484(0x115)],_0x58c7f3[_0x5ea484(0x167)]))Base[_0x5ea484(0x100)](),Base[_0x5ea484(0x100)](_0x58c7f3[_0x5ea484(0xa1)](_0x58c7f3[_0x5ea484(0xde)](this['indent'](),_0x58c7f3[_0x5ea484(0x136)](color,_0x58c7f3['VLKJL'],_0x58c7f3[_0x5ea484(0xe9)])),_0x58c7f3[_0x5ea484(0x1a4)](color,_0x58c7f3[_0x5ea484(0x116)],_0x58c7f3['VSFkw'])),_0x58c7f3[_0x5ea484(0x99)],_0x21b4c1['title'],global[_0x5ea484(0xbc)]),this[_0x5ea484(0x1b0)][_0x5ea484(0xaa)](_0x26c85f=>{const _0x290de2=_0x5ea484;if(_0x518453[_0x290de2(0x14b)](_0x26c85f[_0x290de2(0x101)],_0x518453[_0x290de2(0xfa)])){var _0x6c7fe4;_0x518453[_0x290de2(0x133)](_0x26c85f['speed'],_0x518453[_0x290de2(0x177)])?(_0x6c7fe4=_0x518453[_0x290de2(0x18b)](_0x518453[_0x290de2(0xbe)](this['indent'](),_0x518453[_0x290de2(0x113)](color,_0x518453[_0x290de2(0xda)],_0x518453['DahxL']('\x20\x20',Base[_0x290de2(0x173)]['ok']))),_0x518453[_0x290de2(0x113)](color,_0x518453[_0x290de2(0x13e)],_0x518453[_0x290de2(0x178)])),Base[_0x290de2(0x100)](_0x6c7fe4,_0x26c85f[_0x290de2(0x166)])):(_0x6c7fe4=_0x518453[_0x290de2(0xe7)](_0x518453['PXZjw'](_0x518453['mHSPG'](this[_0x290de2(0x97)](),_0x518453[_0x290de2(0x113)](color,_0x518453[_0x290de2(0xda)],_0x518453[_0x290de2(0x18b)]('\x20\x20',Base[_0x290de2(0x173)]['ok']))),_0x518453[_0x290de2(0x113)](color,_0x518453[_0x290de2(0x13e)],_0x518453[_0x290de2(0x178)])),_0x518453[_0x290de2(0xfb)](color,_0x26c85f[_0x290de2(0xb3)],_0x518453[_0x290de2(0x16f)])),Base[_0x290de2(0x100)](_0x6c7fe4,_0x26c85f[_0x290de2(0x166)],_0x26c85f['duration']));}else Base[_0x290de2(0x100)](_0x518453[_0x290de2(0xc6)](this[_0x290de2(0x97)](),_0x518453[_0x290de2(0xfb)](color,_0x518453[_0x290de2(0x10a)],_0x518453[_0x290de2(0x193)])),++this[_0x290de2(0xd4)],_0x26c85f[_0x290de2(0x166)]);}),this[_0x5ea484(0xa0)]();else _0x58c7f3['SpxRs'](this[_0x5ea484(0x115)],_0x58c7f3[_0x5ea484(0x12f)])&&(this[_0x5ea484(0x10e)](this[_0x5ea484(0x97)]()+'</dl>'),--this[_0x5ea484(0xc4)],this[_0x5ea484(0x10e)](this['indent']()+'</section>'),--this[_0x5ea484(0xc4)]);Array['prototype'][_0x5ea484(0xc7)]['apply'](this[_0x5ea484(0xe0)],this['results']),this[_0x5ea484(0x1b0)]=[];})['on'](EVENT_TEST_PASS,async _0x26b29c=>{const _0xe16fef=_0x1a7e6b;this[_0xe16fef(0x1b0)][_0xe16fef(0xc7)]({'speed':_0x26b29c['speed'],'suite':_0x26b29c[_0xe16fef(0xf8)]['title'],'title':_0x26b29c[_0xe16fef(0x166)],'fullTitle':_0x26b29c[_0xe16fef(0x19a)](),'duration':_0x26b29c['duration'],'state':_0x26b29c[_0xe16fef(0x101)],'err':{},'currentRetry':_0x26b29c['currentRetry'](),'titlePathV':_0x26b29c[_0xe16fef(0x9e)](),'isPending':_0x26b29c[_0xe16fef(0xdc)]()});if(_0x58c7f3[_0xe16fef(0x127)](this['type'],_0x58c7f3[_0xe16fef(0xcc)]))_0x58c7f3[_0xe16fef(0x127)](_0x26b29c[_0xe16fef(0xb3)],_0x58c7f3[_0xe16fef(0x14f)])?process[_0xe16fef(0x172)][_0xe16fef(0xb0)](Base['color'](_0x58c7f3[_0xe16fef(0x197)],Base[_0xe16fef(0x173)][_0xe16fef(0x17e)])):process[_0xe16fef(0x172)]['write'](Base[_0xe16fef(0x105)](_0x26b29c['speed'],Base[_0xe16fef(0x173)][_0xe16fef(0x17e)]));else{if(_0x58c7f3[_0xe16fef(0x127)](this[_0xe16fef(0x115)],_0x58c7f3[_0xe16fef(0x12f)])){this[_0xe16fef(0x10e)](this[_0xe16fef(0x97)]()+_0xe16fef(0xba)+utils[_0xe16fef(0xe6)](_0x26b29c['title'])+_0xe16fef(0x106)),this['docAppend'](this[_0xe16fef(0x97)]()+'\x20\x20<dt>'+utils[_0xe16fef(0xe6)](_0x26b29c[_0xe16fef(0xd2)])+'</dt>');var _0x354ff1=utils[_0xe16fef(0xe6)](utils[_0xe16fef(0x130)](_0x26b29c['body']));this[_0xe16fef(0x10e)](this[_0xe16fef(0x97)]()+'\x20\x20<dd><pre><code>'+_0x354ff1+'</code></pre></dd>');}}_0x58c7f3[_0xe16fef(0x127)](testhubUtils[_0xe16fef(0x13a)](),!![])&&(!_0x26b29c[_0xe16fef(0xd1)]&&(_0x26b29c['markedStatus']=!![],await this['sendTestRunEvent'](_0x26b29c)));})['on'](EVENT_TEST_FAIL,async(_0x574320,_0x239432)=>{const _0x1f7d1d=_0x1a7e6b;this[_0x1f7d1d(0x1b0)][_0x1f7d1d(0xc7)]({'title':_0x574320['title'],'suite':_0x574320[_0x1f7d1d(0xf8)][_0x1f7d1d(0x166)],'state':_0x574320[_0x1f7d1d(0x101)],'err':{'message':util[_0x1f7d1d(0x107)](_0x239432)},'fullTitle':_0x574320['fullTitle'](),'speed':_0x574320['speed'],'currentRetry':_0x574320[_0x1f7d1d(0xe4)](),'titlePathV':_0x574320[_0x1f7d1d(0x9e)]()});if(_0x58c7f3['azyUr'](this['type'],_0x58c7f3['cQvTG']))process[_0x1f7d1d(0x172)][_0x1f7d1d(0xb0)](Base['color'](_0x58c7f3['wRCGV'],Base[_0x1f7d1d(0x173)]['bang']));else{if(_0x58c7f3[_0x1f7d1d(0x16a)](this[_0x1f7d1d(0x115)],_0x58c7f3[_0x1f7d1d(0x12f)])){const _0x11f61e=_0x58c7f3[_0x1f7d1d(0xae)][_0x1f7d1d(0x9b)]('|');let _0x48f031=0x0;while(!![]){switch(_0x11f61e[_0x48f031++]){case'0':this[_0x1f7d1d(0x10e)](this[_0x1f7d1d(0x97)]()+'\x20\x20<dd\x20class=\x22error\x22><pre><code>'+_0x538a67+_0x1f7d1d(0x194));continue;case'1':this['docAppend'](this['indent']()+'\x20\x20<dt\x20class=\x22error\x22>'+utils['escape'](_0x574320[_0x1f7d1d(0x166)])+_0x1f7d1d(0x106));continue;case'2':this[_0x1f7d1d(0x10e)](this[_0x1f7d1d(0x97)]()+_0x1f7d1d(0x9a)+utils[_0x1f7d1d(0xe6)](_0x574320[_0x1f7d1d(0x195)])+'</dd>');continue;case'3':var _0x538a67=utils[_0x1f7d1d(0xe6)](utils[_0x1f7d1d(0x130)](_0x574320[_0x1f7d1d(0x185)]));continue;case'4':this[_0x1f7d1d(0x10e)](this[_0x1f7d1d(0x97)]()+_0x1f7d1d(0x16b)+utils[_0x1f7d1d(0xe6)](_0x574320['file'])+'</dt>');continue;}break;}}}if(_0x58c7f3[_0x1f7d1d(0xe8)](testhubUtils['shouldProcessEventForTesthub'](testHubConstants[_0x1f7d1d(0x110)][_0x1f7d1d(0x1ae)]),!![])){if(!_0x574320[_0x1f7d1d(0xd1)]){_0x574320[_0x1f7d1d(0xd1)]=!![];if(_0x574320[_0x1f7d1d(0xdf)])await this[_0x1f7d1d(0x17d)](_0x574320,_0x239432);else _0x574320[_0x1f7d1d(0x103)]&&await this[_0x1f7d1d(0x17d)](_0x574320,_0x239432,![],_0x58c7f3[_0x1f7d1d(0x14a)]);}}})['on'](EVENT_TEST_PENDING,async _0x15379c=>{const _0x2e8161=_0x1a7e6b;this[_0x2e8161(0x1b0)][_0x2e8161(0xc7)]({'title':_0x15379c[_0x2e8161(0x166)],'suite':_0x15379c[_0x2e8161(0xf8)][_0x2e8161(0x166)],'state':_0x15379c['state'],'err':{},'fullTitle':_0x15379c[_0x2e8161(0x19a)](),'speed':_0x15379c['speed'],'currentRetry':_0x15379c[_0x2e8161(0xe4)](),'titlePathV':_0x15379c[_0x2e8161(0x9e)]()}),_0x58c7f3[_0x2e8161(0x159)](this[_0x2e8161(0x115)],_0x58c7f3[_0x2e8161(0xcc)])&&process[_0x2e8161(0x172)]['write'](Base['color'](_0x58c7f3[_0x2e8161(0x196)],Base[_0x2e8161(0x173)][_0x2e8161(0x157)])),_0x58c7f3[_0x2e8161(0x137)](testhubUtils[_0x2e8161(0x13a)](),!![])&&(!_0x15379c[_0x2e8161(0xdf)]&&(_0x15379c[_0x2e8161(0xdf)]=_0x58c7f3[_0x2e8161(0x191)](uuidv4)),!_0x15379c[_0x2e8161(0xd1)]&&(_0x15379c[_0x2e8161(0xd1)]=!![],await this[_0x2e8161(0x17d)](_0x15379c,undefined,![],_0x58c7f3['XUPnw'])));})['on'](EVENT_TEST_BEGIN,async _0xdf605a=>{_0x58c7f3['uwvdu'](testhubUtils['shouldProcessEventForTesthub'](),!![])&&await this['testStarted'](_0xdf605a);})['on'](EVENT_TEST_END,async _0x3065c6=>{const _0x233fa9=_0x1a7e6b;_0x58c7f3[_0x233fa9(0xe8)](testhubUtils[_0x233fa9(0x13a)](),!![])&&(!_0x3065c6[_0x233fa9(0xd1)]&&(_0x3065c6[_0x233fa9(0xd1)]=!![],await this[_0x233fa9(0x17d)](_0x3065c6)));})[_0x1a7e6b(0x176)](EVENT_RUN_END,async()=>{const _0xb8639=_0x1a7e6b;try{if(_0x58c7f3[_0xb8639(0xaf)](testhubUtils[_0xb8639(0x13a)](),!![])){const _0x9868ba=_0x58c7f3['DsMQt'](getHookSkippedTests,this['runner']['suite']);for(const _0x35c4b5 of _0x9868ba){!_0x35c4b5['testAnalyticsId']&&(_0x35c4b5[_0xb8639(0xdf)]=_0x58c7f3[_0xb8639(0x19c)](uuidv4)),await this[_0xb8639(0x17d)](_0x35c4b5,undefined,![],_0x58c7f3[_0xb8639(0xce)]);}}}catch(_0x209d1b){_0x58c7f3[_0xb8639(0x19d)](debug,'Exception\x20in\x20populating\x20test\x20data\x20for\x20hook\x20skipped\x20test\x20with\x20error\x20:\x20'+_0x209d1b);}await requestQueueHandler[_0xb8639(0x123)](),_0x58c7f3['xUXng'](this[_0xb8639(0x115)],_0x58c7f3[_0xb8639(0x12f)])&&Base[_0xb8639(0x100)](this[_0xb8639(0xb9)]);});if(this['type']&&![_0x58c7f3[_0x1a7e6b(0x12f)],_0x58c7f3['PpiMw'],_0x58c7f3['jmopl'],_0x58c7f3['cQvTG']]['includes'](this[_0x1a7e6b(0x115)])){const _0x37b89b=this[_0x1a7e6b(0x115)][_0x1a7e6b(0xf4)]();this[_0x1a7e6b(0xeb)]=null;try{this[_0x1a7e6b(0xeb)]=_0x58c7f3[_0x1a7e6b(0x175)](requireModule,_0x1a7e6b(0x109)+_0x37b89b+_0x1a7e6b(0x163));}catch{}if(_0x58c7f3['aRemi'](this[_0x1a7e6b(0xeb)],null))try{this['Reporter']=_0x58c7f3[_0x1a7e6b(0x154)](require,_0x37b89b);}catch(_0x26b2d4){console[_0x1a7e6b(0x96)](_0x1a7e6b(0x1ac)+_0x37b89b);}if(_0x58c7f3['kioPi'](this[_0x1a7e6b(0xeb)],null)){const _0x4603ed={};_0x4603ed[_0x1a7e6b(0x1a8)]=_0x1ee3eb[_0x1a7e6b(0x18f)],this['Reporter']=new this[(_0x1a7e6b(0xeb))](_0xc927d1,_0x4603ed);}}}[a27_0x1405b5(0x97)](){const _0x411afa=a27_0x1405b5,_0x48f558={'dRMNm':function(_0x23703d,_0x2642c0){return _0x23703d(_0x2642c0);}};return _0x48f558[_0x411afa(0x17c)](Array,this[_0x411afa(0x93)])[_0x411afa(0xa7)]('\x20\x20');}[a27_0x1405b5(0x13d)](){const _0xb706e7=a27_0x1405b5;this[_0xb706e7(0x93)]++;}[a27_0x1405b5(0xa0)](){const _0x1498a7=a27_0x1405b5;this[_0x1498a7(0x93)]--;}[a27_0x1405b5(0x10e)](_0x33ff4a){const _0x35add7=a27_0x1405b5;this[_0x35add7(0xb9)]+=_0x33ff4a;}[a27_0x1405b5(0xbb)](_0x5b5375,_0x4f4fbc){const _0x2ee0b5=a27_0x1405b5,_0x15a102={'KoTfR':function(_0x53ce72,_0x325479){return _0x53ce72(_0x325479);}},_0x471d67={};_0x471d67[_0x2ee0b5(0x145)]=_0x5b5375,_0x471d67[_0x2ee0b5(0x1b0)]=this[_0x2ee0b5(0xe0)],_0x15a102['KoTfR'](_0x4f4fbc,_0x471d67);}['registerListeners'](){const _0x21d589=a27_0x1405b5;process[_0x21d589(0xb2)](_0x21d589(0xf2)+process[_0x21d589(0x94)]),process['on'](_0x21d589(0xf2)+process[_0x21d589(0x94)],this[_0x21d589(0x1aa)][_0x21d589(0xf0)](this)),process['removeAllListeners']('bs:addPlatformDetails:'+process['pid']),process['on'](_0x21d589(0xdb)+process[_0x21d589(0x94)],this[_0x21d589(0x199)][_0x21d589(0xf0)](this));}[a27_0x1405b5(0xc9)]=async _0x221e51=>{const _0x1c3b36=a27_0x1405b5,_0x5b40cf={'hKaOB':function(_0x2e8760){return _0x2e8760();},'MLtLk':function(_0x3e649e,_0x40b307){return _0x3e649e>_0x40b307;},'zkliI':function(_0x239862,_0xf60c57){return _0x239862===_0xf60c57;},'GfCkH':_0x1c3b36(0xa3),'VqdfQ':function(_0x375418,_0x406744){return _0x375418(_0x406744);}};try{const _0x653a39=this[_0x1c3b36(0xc1)];this[_0x1c3b36(0xc1)]=_0x221e51,_0x221e51[_0x1c3b36(0x9d)]=null,_0x221e51['testAnalyticsId']=_0x5b40cf[_0x1c3b36(0x95)](uuidv4),_0x221e51[_0x1c3b36(0xfc)]=new Date()[_0x1c3b36(0xc3)](),_0x5b40cf[_0x1c3b36(0x11f)](_0x221e51[_0x1c3b36(0x146)],0x0)&&_0x653a39&&_0x5b40cf[_0x1c3b36(0xc2)](_0x653a39[_0x1c3b36(0x166)],_0x221e51[_0x1c3b36(0x166)])?(_0x221e51[_0x1c3b36(0x9d)]=_0x653a39[_0x1c3b36(0xdf)],await this['sendTestRunEvent'](_0x221e51,undefined,![],_0x5b40cf[_0x1c3b36(0x184)]),_0x653a39[_0x1c3b36(0x101)]=STATE_FAILED,await this[_0x1c3b36(0x17d)](_0x653a39,undefined,!![])):await this[_0x1c3b36(0x17d)](_0x221e51,undefined,![],_0x5b40cf[_0x1c3b36(0x184)]);}catch(_0x577cca){_0x5b40cf['VqdfQ'](debug,'Exception\x20in\x20populating\x20test\x20data\x20for\x20test\x20start\x20with\x20error\x20:\x20'+_0x577cca);}};[a27_0x1405b5(0x17d)]=async(_0x3b2644,_0x313db5=undefined,_0x106be0=![],_0x3ffef5=a27_0x1405b5(0x124))=>{const _0xa525af=a27_0x1405b5,_0x5c61e8={'GLcQo':function(_0x247ee4,_0x189782){return _0x247ee4===_0x189782;},'gTdmL':function(_0x2a0c1a,_0x312153){return _0x2a0c1a!==_0x312153;},'oyvaQ':'test','XXagh':_0xa525af(0x195),'hNYiH':function(_0x3a3cd8,_0x2ec426){return _0x3a3cd8!==_0x2ec426;},'XVCAH':function(_0x1003bd,_0x427852){return _0x1003bd!==_0x427852;},'Zdsxa':'File\x20path\x20could\x20not\x20be\x20found','LTMAk':'Mocha','MgelK':_0xa525af(0xdd),'JCiRl':'TestRunSkipped','fDcXf':_0xa525af(0xb7),'djozy':function(_0x4e7bda,_0x4393a0){return _0x4e7bda-_0x4393a0;},'lLebp':_0xa525af(0x12a),'NMOyC':'UnhandledError','DYmPJ':'started_at','kklLI':_0xa525af(0xbd),'wsOCw':function(_0x448eaa,_0x2f9213){return _0x448eaa(_0x2f9213);},'Xlfmd':function(_0x4009ec,_0x3b1cdd){return _0x4009ec===_0x3b1cdd;},'GhYZs':_0xa525af(0x12c),'UfPMG':_0xa525af(0xb1),'kzfZU':_0xa525af(0xcb),'CabEt':function(_0x2b89dc,_0x2eec87){return _0x2b89dc===_0x2eec87;},'rwcmy':_0xa525af(0x14c),'qnQSD':function(_0xb8dbe5,_0x3c3e7a){return _0xb8dbe5(_0x3c3e7a);},'kUlxt':'failure','RwuPV':_0xa525af(0x187),'JTIev':'backtrace','ZYwWL':_0xa525af(0x10f),'zWiYF':_0xa525af(0x1a2),'vIEpb':_0xa525af(0x124),'teyWX':function(_0x1660f7,_0x473adc){return _0x1660f7(_0x473adc);},'yArHm':'hook_type','pbACJ':_0xa525af(0x1a7),'AENmQ':'test_run'};try{if(_0x3b2644[_0xa525af(0x185)]&&_0x3b2644[_0xa525af(0x185)]['match'](/browserstack internal helper hook/))return;let _0x8a1fb6=[];if(_0x5c61e8[_0xa525af(0x108)](_0x3b2644[_0xa525af(0x101)],STATE_FAILED)){if(_0x5c61e8[_0xa525af(0x14d)](_0x3b2644[_0xa525af(0x195)],undefined))_0x8a1fb6=_0x3b2644[_0xa525af(0x195)][_0xa525af(0x1ab)]?[_0x3b2644[_0xa525af(0x195)]['multiple'],_0x5c61e8[_0xa525af(0x9f)]]:[_0x3b2644['err'],_0x5c61e8[_0xa525af(0x131)]];else _0x5c61e8[_0xa525af(0xe1)](_0x313db5,undefined)?_0x8a1fb6=[_0x313db5,_0x5c61e8[_0xa525af(0x131)]]:_0x8a1fb6=[];}const _0xe0b087=_0x5c61e8[_0xa525af(0xa2)](_0x3b2644[_0xa525af(0x195)],undefined)?_0x3b2644[_0xa525af(0x195)][_0xa525af(0x1ad)]():_0x5c61e8[_0xa525af(0x14d)](_0x313db5,undefined)?_0x313db5[_0xa525af(0x1ad)]():undefined;let _0x39e548;try{_0x39e548=this[_0xa525af(0x10c)](_0x3b2644);}catch(_0x65265){_0x39e548=null;}const _0x152d02=_0x39e548?this[_0xa525af(0x12e)](_0x39e548):null,_0x3e4d88=_0x39e548?this[_0xa525af(0x119)][_0xa525af(0xa5)](this[_0xa525af(0x10c)](_0x3b2644)):_0x5c61e8['Zdsxa'],_0x33fdc5={'framework':_0x5c61e8['LTMAk'],'uuid':_0x3b2644[_0xa525af(0xdf)]||_0x3b2644[_0xa525af(0x103)],'name':_0x3b2644[_0xa525af(0x166)],'body':{'lang':_0x5c61e8[_0xa525af(0x1a9)],'code':_0x3b2644[_0xa525af(0x185)]},'scope':this[_0xa525af(0x102)](_0x3b2644),'scopes':this['scopes'](_0x3b2644),'identifier':_0x3b2644[_0xa525af(0x19a)](),'file_name':_0x3e4d88,'vc_filepath':_0x152d02?path['relative'](_0x152d02,_0x39e548):null,'location':_0x3e4d88,'result':_0x5c61e8[_0xa525af(0x108)](_0x3ffef5,_0x5c61e8[_0xa525af(0xc0)])?_0x5c61e8['fDcXf']:this[_0xa525af(0x152)](_0x3b2644[_0xa525af(0x101)]),'failure_reason':_0xe0b087,'duration_in_ms':_0x3b2644[_0xa525af(0x92)]||(_0x3ffef5['match'](/Finished/)||_0x3ffef5[_0xa525af(0x140)](/Skipped/)?_0x5c61e8[_0xa525af(0x19e)](Date[_0xa525af(0x181)](),new Date(_0x3b2644[_0xa525af(0xfc)])[_0xa525af(0xab)]()):null),'started_at':_0x3b2644[_0xa525af(0xfc)],'finished_at':_0x3ffef5[_0xa525af(0x140)](/Finished/)||_0x3ffef5[_0xa525af(0x140)](/Skipped/)?new Date()['toISOString']():null,'failure':failureData[_0xa525af(0x1a5)](null,_0x8a1fb6),'failure_type':!_0xe0b087?null:_0xe0b087[_0xa525af(0x140)](/AssertionError/)?_0x5c61e8[_0xa525af(0x11d)]:_0x5c61e8[_0xa525af(0x153)],'retry_of':_0x3b2644[_0xa525af(0x9d)]};testhubUtils[_0xa525af(0x189)](_0x33fdc5,_0x3ffef5,_0x3b2644,FRAMEWORKS[_0xa525af(0x170)]);_0x5c61e8[_0xa525af(0x108)](_0x3ffef5,_0x5c61e8[_0xa525af(0xc0)])&&!_0x33fdc5[_0x5c61e8[_0xa525af(0x18a)]]&&(_0x33fdc5[_0x5c61e8[_0xa525af(0x18a)]]=_0x33fdc5[_0x5c61e8[_0xa525af(0x11b)]]);if(_0x3ffef5[_0xa525af(0x140)](/HookRun/))[_0x33fdc5[_0xa525af(0x1b3)],_0x33fdc5[_0xa525af(0x17a)]]=_0x5c61e8[_0xa525af(0x174)](getHookDetails,_0x3b2644[_0xa525af(0x19a)]()||_0x3b2644[_0xa525af(0x122)]||_0x3b2644[_0xa525af(0x166)]),_0x5c61e8['Xlfmd'](_0x3ffef5,_0x5c61e8[_0xa525af(0x1b5)])&&(_0x5c61e8[_0xa525af(0x14d)](_0x33fdc5['result'],_0x5c61e8[_0xa525af(0x169)])&&(_0x33fdc5[_0xa525af(0xf5)]=_0x5c61e8[_0xa525af(0x18c)]),_0x5c61e8[_0xa525af(0xe5)](_0x33fdc5[_0xa525af(0x1b3)],_0x5c61e8[_0xa525af(0x16e)])&&_0x5c61e8[_0xa525af(0x108)](_0x33fdc5[_0xa525af(0xf5)],_0x5c61e8[_0xa525af(0x169)])&&!_0x3b2644[_0xa525af(0x17b)][_0xa525af(0x1a6)][_0xa525af(0xd1)]&&(_0x3b2644[_0xa525af(0x17b)]['currentTest']['markedStatus']=!![],_0x3b2644[_0xa525af(0x17b)][_0xa525af(0x1a6)][_0xa525af(0x101)]=STATE_FAILED,await this[_0xa525af(0x17d)](_0x3b2644[_0xa525af(0x17b)][_0xa525af(0x1a6)],undefined,!![])));else _0x3ffef5[_0xa525af(0x140)](/TestRun/)&&_0x5c61e8['qnQSD'](mapTestHooks,_0x3b2644);const _0x33aa45=_0x33fdc5[_0x5c61e8['kUlxt']][0x0];_0x33aa45&&(_0x33fdc5[_0x5c61e8[_0xa525af(0x15f)]]=_0x33aa45[_0x5c61e8[_0xa525af(0x128)]],_0x33fdc5[_0x5c61e8[_0xa525af(0x162)]]=_0x33aa45[_0x5c61e8[_0xa525af(0x10d)]]);[_0x5c61e8[_0xa525af(0x1a0)],_0x5c61e8['JCiRl']][_0xa525af(0xfe)](_0x3ffef5)&&(this[_0xa525af(0x186)][_0xa525af(0xc7)](_0x33fdc5),_0x33fdc5[_0xa525af(0x112)]=_0x5c61e8[_0xa525af(0x149)](getHooksForTest,_0x3b2644));const _0x37da92={'event_type':_0x5c61e8[_0xa525af(0xe5)](_0x3ffef5,_0x5c61e8[_0xa525af(0xc0)])?_0x5c61e8[_0xa525af(0x1a0)]:_0x3ffef5};_0x3ffef5['match'](/HookRun/)?(_0x33fdc5[_0x5c61e8[_0xa525af(0x139)]]=HOOK_TYPES_MAP[_0x33fdc5[_0x5c61e8[_0xa525af(0x139)]]],_0x37da92[_0x5c61e8[_0xa525af(0x129)]]=_0x33fdc5):_0x37da92[_0x5c61e8[_0xa525af(0xb5)]]=_0x33fdc5,testhubUtils['setCurrentTestData'](FRAMEWORKS[_0xa525af(0x170)],_0x37da92),await SessionHandler['uploadEventData'](_0x37da92);}catch(_0x335f25){_0x5c61e8[_0xa525af(0x174)](debug,_0xa525af(0x160)+_0x3ffef5+_0xa525af(0x13f)+_0x335f25);}};[a27_0x1405b5(0x12e)](_0x46778c){const _0x3b3b47=a27_0x1405b5,_0xb10e61={};_0xb10e61[_0x3b3b47(0x125)]=function(_0x155cae,_0x5f278f){return _0x155cae===_0x5f278f;},_0xb10e61[_0x3b3b47(0x16c)]=function(_0x2056bb,_0x3ed6f0){return _0x2056bb===_0x3ed6f0;},_0xb10e61[_0x3b3b47(0x13b)]=_0x3b3b47(0x98),_0xb10e61[_0x3b3b47(0x171)]=_0x3b3b47(0x17f);const _0x2be824=_0xb10e61,_0x1d5afa=path[_0x3b3b47(0xd3)];if(_0x2be824[_0x3b3b47(0x125)](_0x46778c,null)||_0x2be824[_0x3b3b47(0x125)](_0x46778c,'')||_0x2be824[_0x3b3b47(0x16c)](_0x46778c,_0x1d5afa)||_0x2be824[_0x3b3b47(0x125)](_0x46778c,path[_0x3b3b47(0xf3)](_0x46778c)))return null;try{return fs[_0x3b3b47(0xb6)](path['join'](_0x46778c,_0x2be824[_0x3b3b47(0x13b)],_0x2be824['KuNGc'])),_0x46778c;}catch(_0x1fe7ce){const _0xbcd8d0=path[_0x3b3b47(0xf3)](_0x46778c);return this['findGitConfig'](_0xbcd8d0);}}[a27_0x1405b5(0x1aa)]=async _0x250aca=>{const _0x44fc1b=a27_0x1405b5,_0x1d72ae={'tWkKD':'LogCreated','KtWyb':function(_0x52a510,_0x59ed00){return _0x52a510(_0x59ed00);}};try{this[_0x44fc1b(0x164)]&&!this[_0x44fc1b(0x164)][_0x44fc1b(0xd1)]&&(_0x250aca[_0x44fc1b(0x18e)]=this[_0x44fc1b(0x164)][_0x44fc1b(0x103)]);!_0x250aca[_0x44fc1b(0x18e)]&&this[_0x44fc1b(0xc1)]&&!this['current_test']['markedStatus']&&(_0x250aca['test_run_uuid']=this['current_test'][_0x44fc1b(0xdf)]);if(_0x250aca[_0x44fc1b(0x18e)]||_0x250aca[_0x44fc1b(0x1b4)]){const _0x119dcf={};_0x119dcf[_0x44fc1b(0x198)]=_0x1d72ae[_0x44fc1b(0x16d)],_0x119dcf[_0x44fc1b(0xf6)]=[_0x250aca],await SessionHandler[_0x44fc1b(0x156)](_0x119dcf);}}catch(_0x6a920b){_0x1d72ae[_0x44fc1b(0x183)](debug,_0x44fc1b(0xec)+_0x6a920b);}};['appendTestPlatform']=async _0x5b2c20=>{const _0x2ff560=a27_0x1405b5,_0x3b00cb={'kYiCq':'http_response','eWvgt':_0x2ff560(0x161),'jdKuG':function(_0x4a5e1b,_0x1ed91f){return _0x4a5e1b(_0x1ed91f);}};try{const _0x147ba5={};_0x147ba5[_0x2ff560(0x155)]=_0x5b2c20[_0x2ff560(0x155)]||this['current_test'][_0x2ff560(0xdf)],_0x147ba5[_0x2ff560(0x18d)]=_0x5b2c20[_0x3b00cb[_0x2ff560(0x190)]];const _0x35d643=_0x147ba5,_0x7abd73={};_0x7abd73[_0x2ff560(0x198)]=_0x3b00cb[_0x2ff560(0xc5)],_0x7abd73['test_run']=_0x35d643,await SessionHandler[_0x2ff560(0x156)](_0x7abd73);}catch(_0x4f053a){_0x3b00cb[_0x2ff560(0x143)](debug,_0x2ff560(0x12b)+_0x4f053a);}};[a27_0x1405b5(0x152)](_0x15fdd6){const _0x20a835=a27_0x1405b5,_0x56f282={};_0x56f282[_0x20a835(0xe3)]=_0x20a835(0xcb),_0x56f282[_0x20a835(0x138)]=_0x20a835(0x15a),_0x56f282[_0x20a835(0x11e)]=_0x20a835(0xb1);const _0x2bb530=_0x56f282,_0x5bb020={};return _0x5bb020[STATE_PASSED]=_0x2bb530[_0x20a835(0xe3)],_0x5bb020[STATE_PENDING]=_0x2bb530[_0x20a835(0x138)],_0x5bb020[STATE_FAILED]=_0x2bb530[_0x20a835(0x11e)],_0x5bb020[_0x15fdd6];}[a27_0x1405b5(0x102)](_0xbc301c){const _0x1c8b01=a27_0x1405b5,_0x3b1f7a={};_0x3b1f7a['AUgUb']=function(_0x5ea124,_0x1be973){return _0x5ea124-_0x1be973;};const _0x297703=_0x3b1f7a,_0x5d6286=_0xbc301c[_0x1c8b01(0x9e)]();return _0x5d6286['slice'](0x0,_0x297703[_0x1c8b01(0x10b)](_0x5d6286['length'],0x1))['join']('\x20');}[a27_0x1405b5(0x9c)](_0x2787dd){const _0x43a831=a27_0x1405b5,_0x3dacb2={};_0x3dacb2[_0x43a831(0x188)]=function(_0x18eed0,_0x5a00ce){return _0x18eed0-_0x5a00ce;};const _0x387c44=_0x3dacb2,_0x5d3f3e=_0x2787dd['titlePath']();return _0x5d3f3e[_0x43a831(0xca)](0x0,_0x387c44[_0x43a831(0x188)](_0x5d3f3e['length'],0x1));}[a27_0x1405b5(0x10c)](_0x1de69d){const _0x277612=a27_0x1405b5,_0x923e52={};_0x923e52['DBWwE']=function(_0x3e9f9f,_0x19e5bb){return _0x3e9f9f>_0x19e5bb;};const _0x4a1eed=_0x923e52;if(_0x1de69d[_0x277612(0xd2)])return _0x1de69d[_0x277612(0xd2)];if(_0x1de69d[_0x277612(0x17b)]){const _0x139946=_0x1de69d[_0x277612(0x17b)][_0x277612(0x1a6)]?this[_0x277612(0x10c)](_0x1de69d['ctx'][_0x277612(0x1a6)]):null;if(_0x139946)return _0x139946;}if(_0x1de69d[_0x277612(0xf8)]){const _0x1ee6a1=this['getRootParentFile'](_0x1de69d[_0x277612(0xf8)])||(_0x1de69d['parent'][_0x277612(0x17b)]&&_0x1de69d[_0x277612(0xf8)][_0x277612(0x17b)][_0x277612(0x1a6)]?this[_0x277612(0x10c)](_0x1de69d['parent'][_0x277612(0x17b)][_0x277612(0x1a6)]):null);if(_0x1ee6a1)return _0x1ee6a1;_0x1de69d['parent'][_0x277612(0x192)]&&_0x4a1eed[_0x277612(0xbf)](_0x1de69d[_0x277612(0xf8)][_0x277612(0x192)]['length'],0x0)&&_0x1de69d[_0x277612(0xf8)][_0x277612(0x192)][_0x277612(0xaa)](_0x2ec912=>{const _0x507383=_0x277612,_0x33a623=_0x2ec912['ctx']?this[_0x507383(0x10c)](_0x2ec912['ctx']):null;if(_0x33a623)return _0x33a623;});}return null;}}module[a27_0x1405b5(0x134)]=MyReporter;
|
package/src/bin/mocha/command.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a28_0xd7c2d4=a28_0x227b;(function(_0x32f88a,_0x37b5e1){const _0x330c59=a28_0x227b,_0x3a01a2=_0x32f88a();while(!![]){try{const _0x20d5c6=parseInt(_0x330c59(0x16c))/0x1*(parseInt(_0x330c59(0x118))/0x2)+-parseInt(_0x330c59(0x1c2))/0x3*(-parseInt(_0x330c59(0x12a))/0x4)+-parseInt(_0x330c59(0x1f6))/0x5+-parseInt(_0x330c59(0x164))/0x6*(-parseInt(_0x330c59(0x202))/0x7)+parseInt(_0x330c59(0x110))/0x8+-parseInt(_0x330c59(0x185))/0x9*(-parseInt(_0x330c59(0x1d6))/0xa)+-parseInt(_0x330c59(0x141))/0xb;if(_0x20d5c6===_0x37b5e1)break;else _0x3a01a2['push'](_0x3a01a2['shift']());}catch(_0x2689ab){_0x3a01a2['push'](_0x3a01a2['shift']());}}}(a28_0x11d2,0xf0ff3));const chalk=require(a28_0xd7c2d4(0x1b0)),logger=require(a28_0xd7c2d4(0x140))['winstonLogger'],{default:BrowserStackSetup}=require(a28_0xd7c2d4(0x17d)),helper=require(a28_0xd7c2d4(0x189)),utilities=require('../../helpers/utilities'),testOpsHelper=require('../../helpers/test-observability/utils'),fs=require('fs'),os=require('os'),{parallelTestRun}=require(a28_0xd7c2d4(0x150)),{requireModule,nestedKeyValue}=require(a28_0xd7c2d4(0x189)),{getPercyOptions}=require(a28_0xd7c2d4(0x133)),Base=requireModule('mocha/lib/reporters/base.js'),collectFiles=requireModule(a28_0xd7c2d4(0x1fc)),constants=require('../utils/constants');function tag(_0x49bb1a,_0x5cb656,_0xe97406,_0x1379f4){const _0x554dfc=a28_0xd7c2d4,_0x2e2c29={'ZjmvM':function(_0x2480c6,_0x1e7c38){return _0x2480c6+_0x1e7c38;},'DTgrD':function(_0x248720,_0x18e0ef){return _0x248720+_0x18e0ef;},'XQILG':function(_0x33a584,_0x327cd3){return _0x33a584+_0x327cd3;},'LucKG':function(_0x591794,_0x11d8dd){return _0x591794(_0x11d8dd);},'MrxQg':function(_0x37f07b,_0x53b970){return _0x37f07b+_0x53b970;},'TwXxE':function(_0x8ee08d,_0x5916b7){return _0x8ee08d+_0x5916b7;},'XCdUQ':function(_0x1e9d91,_0x1f50e1){return _0x1e9d91+_0x1f50e1;},'fvCfp':function(_0x46381e,_0x5b0453){return _0x46381e+_0x5b0453;},'ACVsA':function(_0xe9427a,_0x453088){return _0xe9427a+_0x453088;}},_0x3d4adf=_0xe97406?'/>':'>',_0x82331d=[];let _0x4ed4ee;for(const _0x2b1516 in _0x5cb656){Object[_0x554dfc(0x17e)]['hasOwnProperty'][_0x554dfc(0x145)](_0x5cb656,_0x2b1516)&&_0x82331d['push'](_0x2e2c29[_0x554dfc(0x1e8)](_0x2e2c29['DTgrD'](_0x2e2c29[_0x554dfc(0x197)](_0x2b1516,'=\x22'),_0x2e2c29[_0x554dfc(0x13d)](escape,_0x5cb656[_0x2b1516])),'\x22'));}return _0x4ed4ee=_0x2e2c29[_0x554dfc(0x1df)](_0x2e2c29[_0x554dfc(0x163)](_0x2e2c29[_0x554dfc(0x197)]('<',_0x49bb1a),_0x82331d['length']?_0x2e2c29[_0x554dfc(0x163)]('\x20',_0x82331d['join']('\x20')):''),_0x3d4adf),_0x1379f4&&(_0x4ed4ee+=_0x2e2c29['XCdUQ'](_0x2e2c29[_0x554dfc(0x1a3)](_0x2e2c29[_0x554dfc(0x15e)](_0x1379f4,'</'),_0x49bb1a),_0x3d4adf)),_0x4ed4ee;}let xunitContent='';function a28_0x227b(_0x87bf93,_0x50fa51){const _0x11d212=a28_0x11d2();return a28_0x227b=function(_0x227bb0,_0x27f295){_0x227bb0=_0x227bb0-0x10d;let _0x128975=_0x11d212[_0x227bb0];return _0x128975;},a28_0x227b(_0x87bf93,_0x50fa51);}function xunitWrite(_0x54f118){xunitContent+=_0x54f118;}function xunitTest(_0x3afc23,_0x1e7607){const _0x39c6b8=a28_0xd7c2d4,_0x4baa34={'MRLOy':function(_0x5ca642,_0x2a83c5){return _0x5ca642/_0x2a83c5;},'GPBFv':function(_0x333aa1,_0x4d260f){return _0x333aa1===_0x4d260f;},'vjsLU':_0x39c6b8(0x1ce),'JglmB':function(_0x250161,_0x48f8c7){return _0x250161+_0x48f8c7;},'sRnKF':function(_0x4c7aed,_0x22467a){return _0x4c7aed(_0x22467a);},'MQIyA':function(_0x22882a,_0x20993f,_0x507090,_0x47b4e7,_0x2adb0b){return _0x22882a(_0x20993f,_0x507090,_0x47b4e7,_0x2adb0b);},'LkhIN':_0x39c6b8(0x13c),'WdwJd':function(_0x331006,_0x2579db,_0x5522bd,_0x319ba6,_0x272701){return _0x331006(_0x2579db,_0x5522bd,_0x319ba6,_0x272701);},'xDINK':_0x39c6b8(0x1d8),'GaGCb':function(_0x17cf1c,_0x2944bf){return _0x17cf1c+_0x2944bf;},'eVpUZ':function(_0x46ed9b,_0x2030f4,_0xccb31f,_0x24472b){return _0x46ed9b(_0x2030f4,_0xccb31f,_0x24472b);},'KsIKO':'skipped'};Base[_0x39c6b8(0x127)]=![];var _0x4f19b8={'classname':_0x3afc23['fullTitle'],'name':_0x3afc23[_0x39c6b8(0x1bc)],'time':_0x4baa34[_0x39c6b8(0x10e)](_0x3afc23[_0x39c6b8(0x193)],0x3e8)||0x0,'platform':_0x1e7607};if(_0x4baa34[_0x39c6b8(0x19b)](_0x3afc23[_0x39c6b8(0x180)],_0x4baa34[_0x39c6b8(0x12f)])){var _0x42ea8a=_0x3afc23['err'],_0xc427f9=!Base[_0x39c6b8(0x1ef)]&&Base[_0x39c6b8(0x1c3)](_0x42ea8a)?_0x4baa34['JglmB']('\x0a',Base['generateDiff'](_0x42ea8a[_0x39c6b8(0x178)],_0x42ea8a[_0x39c6b8(0x1fb)])):'';_0x4baa34[_0x39c6b8(0x144)](xunitWrite,_0x4baa34[_0x39c6b8(0x126)](tag,_0x4baa34[_0x39c6b8(0x1ba)],_0x4f19b8,![],_0x4baa34[_0x39c6b8(0x1cc)](tag,_0x4baa34['xDINK'],{},![],_0x4baa34[_0x39c6b8(0x1ab)](_0x4baa34[_0x39c6b8(0x131)](_0x4baa34[_0x39c6b8(0x131)](_0x4baa34[_0x39c6b8(0x144)](escape,_0x42ea8a['message']),_0x4baa34[_0x39c6b8(0x144)](escape,_0xc427f9)),'\x0a'),_0x4baa34[_0x39c6b8(0x144)](escape,_0x42ea8a[_0x39c6b8(0x15f)])))));}else _0x3afc23[_0x39c6b8(0x1c9)]?_0x4baa34[_0x39c6b8(0x144)](xunitWrite,_0x4baa34[_0x39c6b8(0x126)](tag,_0x4baa34[_0x39c6b8(0x1ba)],_0x4f19b8,![],_0x4baa34[_0x39c6b8(0x146)](tag,_0x4baa34[_0x39c6b8(0x128)],{},!![]))):_0x4baa34[_0x39c6b8(0x144)](xunitWrite,_0x4baa34[_0x39c6b8(0x146)](tag,_0x4baa34['LkhIN'],_0x4f19b8,!![]));};function getStats(_0xdd59b3){const _0x96ac36=a28_0xd7c2d4,_0x4e0f85={};_0x4e0f85[_0x96ac36(0x196)]=_0x96ac36(0x1ee),_0x4e0f85[_0x96ac36(0x15d)]=_0x96ac36(0x11c),_0x4e0f85['JvqYp']=_0x96ac36(0x1ce),_0x4e0f85[_0x96ac36(0x1ac)]=_0x96ac36(0x11a);const _0x3941b1=_0x4e0f85,_0x21c369=Object['keys'](_0xdd59b3);let _0x3e04c5=0x0,_0x322d63=0x0,_0x4d1e12=0x0,_0x30d40b=0x0;const _0x54059e=new Set();_0x21c369['forEach'](_0xe41fe7=>{const _0x5ce562=_0x96ac36,_0x9b920c={};_0x9b920c[_0x5ce562(0x1e6)]=_0x3941b1[_0x5ce562(0x196)],_0x9b920c[_0x5ce562(0x1d9)]=_0x3941b1['NGEJM'],_0x9b920c[_0x5ce562(0x19f)]=_0x3941b1['JvqYp'];const _0x2e66bd=_0x9b920c;_0xdd59b3[_0xe41fe7][_0x3941b1[_0x5ce562(0x1ac)]][_0x5ce562(0x135)](_0x5e6dce=>{const _0x46240c=_0x5ce562;_0x54059e[_0x46240c(0x191)](_0x5e6dce[_0x2e66bd[_0x46240c(0x1e6)]]),_0x3e04c5++;switch(_0x5e6dce[_0x46240c(0x180)]){case _0x2e66bd['PhtqX']:_0x4d1e12++;break;case _0x2e66bd['IrRyh']:_0x322d63++;break;default:_0x30d40b++;}});});const _0xc85d9d={};return _0xc85d9d['testSuites']=_0x54059e[_0x96ac36(0x19e)],_0xc85d9d['platforms']=_0x21c369,_0xc85d9d[_0x96ac36(0x1ca)]=_0x3e04c5,_0xc85d9d['testsFailed']=_0x322d63,_0xc85d9d[_0x96ac36(0x11d)]=_0x4d1e12,_0xc85d9d[_0x96ac36(0x113)]=_0x30d40b,_0xc85d9d;}function errorJSON(_0x535b04){const _0x622be2=a28_0xd7c2d4;var _0x3fad87={};return Object[_0x622be2(0x19a)](_0x535b04)[_0x622be2(0x135)](function(_0x22d671){_0x3fad87[_0x22d671]=_0x535b04[_0x22d671];},_0x535b04),_0x3fad87;}function cleanCycles(_0x472d8c){const _0x45325a=a28_0xd7c2d4,_0x4683b2={};_0x4683b2[_0x45325a(0x14b)]=function(_0x29f05b,_0x3e946b){return _0x29f05b===_0x3e946b;},_0x4683b2[_0x45325a(0x1b8)]=_0x45325a(0x176),_0x4683b2[_0x45325a(0x1aa)]=function(_0x188f2a,_0x18a1eb){return _0x188f2a!==_0x18a1eb;},_0x4683b2[_0x45325a(0x13a)]=function(_0x355c6f,_0x1f8bb4){return _0x355c6f+_0x1f8bb4;};const _0x25092b=_0x4683b2;var _0x50efca=[];return JSON['parse'](JSON[_0x45325a(0x18b)](_0x472d8c,function(_0x23c439,_0x243e16){const _0x206725=_0x45325a;if(_0x25092b[_0x206725(0x14b)](typeof _0x243e16,_0x25092b[_0x206725(0x1b8)])&&_0x25092b[_0x206725(0x1aa)](_0x243e16,null)){if(_0x25092b[_0x206725(0x1aa)](_0x50efca[_0x206725(0x1f3)](_0x243e16),-0x1))return _0x25092b[_0x206725(0x13a)]('',_0x243e16);_0x50efca[_0x206725(0x177)](_0x243e16);}return _0x243e16;}));}function a28_0x11d2(){const _0x59e68e=['testsuite','UMXmH','fBdqz','passes','GhAdz','fullTitle','mPVBj','config','prepareCapabilities','NGEJM','ACVsA','stack','bqwAB','\x0a\x0a\x0a','BNNdH','TwXxE','1609800TYlrmW','isBrowserstackInfra','Xmpxm','Running\x20your\x20mocha\x20tests','hBvmr','getErrorMessageFromResults','hBjKz','nGVAJ','37LloQLs','SDKTestSuccessful','log','BROWSERSTACK_TEST_OBSERVABILITY','notifyUpdate','gIKWI','BROWSERSTACK_TEST_OBSERVABILITY_YML','FLRsB','accessibility','suiteName','object','push','actual','failures','Setting\x20non\x20exit\x20code\x20for\x20failures','toUTCString','cFFKk','../../helpers/BrowserStackSetup','prototype','YGnFP','state','spec','Running\x20your\x20mocha\x20tests\x20across\x20','GEokm','parallelsPerPlatform','27OmFZXn','JtjYR','isTestObservabilitySession','gDfLt','../../helpers/helper','info','stringify','fireFunnelTestEvent','markSDKSetupComplete','MOCHA','vJEwS','Tests:\x20\x20\x20\x20\x20\x20\x20','add','error\x20removing\x20tcg\x20config\x20file','duration','DUBgv','xdGgU','yDaie','XQILG','get','lWumQ','getOwnPropertyNames','GPBFv','JZQeG','KnQzY','size','IrRyh','currentRetry','aBUYl','argv','fvCfp','efdLi','stats','files','brFHw','printBuildLink','useW3C','UaRBk','JglmB','mCnqc','aHRKv','xeVik','Total\x20Platforms:\x20','chalk','WdGoP','HCkUe','getTCGConfigFilePaths','error','finally','getUserWorkerCount','doc','ywApH','cjs','LkhIN','bold','title','initialize','Total\x20Suites:\x20','platform','mocha','Listing\x20all\x20the\x20failures','10785YjGSue','showDiff','kFGII','writeFileSync','sort','reporterOptions','\x20total','isPending','totalTests','NAtdo','WdwJd','dwdXk','failed','hRxSb','nQalf','isUndefined','includes','Error\x20in\x20notifying\x20update.\x20Stacktrace:\x20','bTZra','kPmDN','2175330GnxTIy','IdQSH','failure','PhtqX','rootHooks','QAYSp','unlinkSync','recursive','pending','MrxQg','cHBQc','getPlatformName','No\x20output\x20file\x20given,\x20writing\x20json\x20result\x20to\x20console','\x20passed','BROWSERSTACK_RERUN_TESTS','setupTCGAuth','ahQqF','then','ZjmvM','titlePathV','iPJwV','unoYc','speed','aZLFk','suite','hideDiff','bgBlueBright','logLevel','reporter','indexOf','file','DqjPj','4936195XIfJLf','QDDBN','No\x20output\x20file\x20given,\x20writing\x20xunit\x20result\x20to\x20console','EFnlX','platforms','expected','mocha/lib/cli/collect-files.js','WYzaQ','OhQxu','list','testObservability','err','28EYiawv','--disable-test-observability','wEIQP','MRLOy','DPYQM','4249848sWtWUx','fgyIL','json','testsPending','length','proxySettings','accessibilityOptions','assign','81198KuuQDl','FOzrn','results','UDBDK','passed','testsPassed','shouldReRunObservabilityTests','finalExecution','FRAMEWORKS','consoleLog','rmdirSync','exitCode','BROWSERSTACK_TEST_ACCESSIBILITY_YML','red','MQIyA','useColors','KsIKO','Mocha\x20Tests','1684unEPND','cBmnh','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','rLRKM','imOml','vjsLU','PEitE','GaGCb','sLnOc','../../helpers/percy/utils','Couldn\x27t\x20write\x20xunit\x20result\x20to','forEach','getHubUrl','Couldn\x27t\x20write\x20json\x20result\x20to','yellow','debug','khDNY','reporter-option','testcase','LucKG','HEkHz','rerunTests','../../helpers/logger','36281586ODJlSF','EtavR','has','sRnKF','call','eVpUZ','hGWhn','handleApp','Printing\x20stats\x20of\x20tests','cliConfig','VTNbk','mIFqY','env','Writing\x20json\x20result\x20to\x20file','cNDwP','../test-runner','output','sdRKF','testSuites'];a28_0x11d2=function(){return _0x59e68e;};return a28_0x11d2();}function clean(_0x5b828b){const _0x57b847=a28_0xd7c2d4,_0x1cc535={'hGWhn':function(_0x4bc12e,_0x436f52){return _0x4bc12e instanceof _0x436f52;},'efdLi':function(_0x30c2cc,_0x1a97e6){return _0x30c2cc(_0x1a97e6);}};var _0x51e12f=_0x5b828b[_0x57b847(0x201)]||{};return _0x1cc535[_0x57b847(0x147)](_0x51e12f,Error)&&(_0x51e12f=_0x1cc535[_0x57b847(0x1a4)](errorJSON,_0x51e12f)),{'title':_0x5b828b['title'],'fullTitle':_0x5b828b[_0x57b847(0x159)],'file':_0x5b828b[_0x57b847(0x1f4)],'duration':_0x5b828b[_0x57b847(0x193)],'currentRetry':_0x5b828b[_0x57b847(0x1a0)],'speed':_0x5b828b[_0x57b847(0x1ec)],'err':_0x1cc535[_0x57b847(0x1a4)](cleanCycles,_0x51e12f)};}function printStats(_0x1aedf5,_0x2b47e4='spec',_0x2df247={}){const _0x42da31=a28_0xd7c2d4,_0x5951d1={'JZQeG':function(_0x25cb5c,_0x1d8583){return _0x25cb5c(_0x1d8583);},'KkiRK':function(_0x4b235b,_0x57b948){return _0x4b235b===_0x57b948;},'ouHFX':_0x42da31(0x11c),'ErsWc':_0x42da31(0x157),'EVWIe':function(_0x5a2797,_0x11b3a3){return _0x5a2797(_0x11b3a3);},'fBdqz':_0x42da31(0x1ce),'GNKFO':_0x42da31(0x179),'hBjKz':_0x42da31(0x1de),'WYzaQ':_0x42da31(0x11a),'NAtdo':function(_0x590a71,_0x2011b2){return _0x590a71===_0x2011b2;},'JtjYR':function(_0x1b0d0e,_0x417f3c){return _0x1b0d0e*_0x417f3c;},'cHBQc':function(_0x3d5111,_0x14dd8a,_0x14a6f6){return _0x3d5111(_0x14dd8a,_0x14a6f6);},'fgyIL':function(_0x37b116,_0x2c31b8){return _0x37b116>_0x2c31b8;},'unoYc':function(_0x303a14){return _0x303a14();},'IdQSH':_0x42da31(0x1b7),'cNDwP':function(_0x495927,_0x56dfbd){return _0x495927(_0x56dfbd);},'WdGoP':_0x42da31(0x17a),'ZFPpW':_0x42da31(0x149),'GlunY':function(_0xa764f8,_0x242a08){return _0xa764f8+_0x242a08;},'NtQux':_0x42da31(0x1af),'kFGII':function(_0x482193,_0x1f7ac0){return _0x482193+_0x1f7ac0;},'vJEwS':_0x42da31(0x1be),'DqjPj':function(_0x5d10ca,_0x5196d2){return _0x5d10ca+_0x5196d2;},'OhQxu':_0x42da31(0x190),'rLRKM':function(_0x3df855,_0x35a7db){return _0x3df855>_0x35a7db;},'nQalf':function(_0x33d1e5,_0x521215){return _0x33d1e5>_0x521215;},'FLRsB':function(_0x52886d,_0x258454){return _0x52886d+_0x258454;},'sLnOc':_0x42da31(0x161),'HEkHz':function(_0x2305b4,_0x2923ab){return _0x2305b4===_0x2923ab;},'bqwAB':_0x42da31(0x112),'UMXmH':_0x42da31(0x14e),'GmSGC':_0x42da31(0x137),'aBUYl':_0x42da31(0x1e2),'hBvmr':'xunit','QDDBN':_0x42da31(0x129),'bTZra':function(_0x31df00,_0x48aeb2){return _0x31df00||_0x48aeb2;},'iPJwV':function(_0x347f92,_0x2c3e09){return _0x347f92(_0x2c3e09);},'efmsS':function(_0x12c85a,_0x1e6d4e,_0x5dba36,_0x5e0c5b){return _0x12c85a(_0x1e6d4e,_0x5dba36,_0x5e0c5b);},'gIKWI':_0x42da31(0x154),'aHRKv':function(_0x47488e,_0x5f312){return _0x47488e-_0x5f312;},'PEitE':function(_0x20d15b,_0x4de241){return _0x20d15b-_0x4de241;},'wEIQP':function(_0x17dc85,_0x4c829f){return _0x17dc85/_0x4c829f;},'UDBDK':function(_0x9b57c0,_0xf65bab){return _0x9b57c0(_0xf65bab);},'eIcsC':'</testsuite>','AalfB':'Writing\x20xunit\x20result\x20to\x20file','xdGgU':_0x42da31(0x134),'KnQzY':_0x42da31(0x1f8),'lWumQ':_0x42da31(0x1c1),'cBmnh':'****\x20FAILURES\x20****'};if(_0x5951d1['KkiRK'](_0x2b47e4,_0x5951d1[_0x42da31(0x1d7)]))return;const _0x2c320b=0x0,_0xf1baeb=()=>{const _0x19f9f1=_0x42da31;return _0x5951d1[_0x19f9f1(0x19c)](Array,_0x2c320b)['join']('\x20\x20');},{testSuites:_0x1b65f4,platforms:_0x3b79ef,totalTests:_0x24df7f,testsFailed:_0x24a89b,testsPassed:_0x49f8e2,testsPending:_0x1be1bb}=_0x5951d1[_0x42da31(0x14f)](getStats,_0x1aedf5);_0x5951d1[_0x42da31(0x111)](_0x24a89b,0x0)&&(logger[_0x42da31(0x139)](_0x5951d1[_0x42da31(0x1b1)]),process[_0x42da31(0x123)]=Math['min'](_0x24a89b,0xff));logger[_0x42da31(0x139)](_0x5951d1['ZFPpW']);const _0x30fbd3=''+_0x5951d1['GlunY'](chalk['bold'](_0x5951d1['NtQux']),_0x3b79ef[_0x42da31(0x114)]),_0x22fa2b=''+_0x5951d1[_0x42da31(0x1c4)](chalk[_0x42da31(0x1bb)](_0x5951d1[_0x42da31(0x18f)]),_0x1b65f4),_0x32de2c=''+_0x5951d1[_0x42da31(0x1c4)](_0x5951d1['GlunY'](_0x5951d1[_0x42da31(0x1f5)](chalk[_0x42da31(0x1bb)](_0x5951d1[_0x42da31(0x1fe)]),_0x5951d1['rLRKM'](_0x24a89b,0x0)?chalk[_0x42da31(0x1bb)][_0x42da31(0x125)](_0x24a89b+'\x20failed')+',\x20':''),_0x5951d1[_0x42da31(0x12d)](_0x1be1bb,0x0)?chalk[_0x42da31(0x1bb)][_0x42da31(0x138)](_0x1be1bb+'\x20skipped')+',\x20':''),_0x5951d1[_0x42da31(0x1d0)](_0x49f8e2,0x0)?chalk['bold']['green'](_0x49f8e2+_0x42da31(0x1e3))+',\x20':'')+_0x24df7f+_0x42da31(0x1c8);console['log'](_0x5951d1[_0x42da31(0x1c4)](_0x5951d1['DqjPj'](_0x5951d1[_0x42da31(0x1f5)](_0x5951d1[_0x42da31(0x1c4)](_0x5951d1[_0x42da31(0x173)](_0x5951d1[_0x42da31(0x132)],_0x30fbd3),'\x0a'),_0x22fa2b),'\x0a'),_0x32de2c));if(_0x5951d1[_0x42da31(0x13e)](_0x2b47e4,_0x5951d1[_0x42da31(0x160)])){const _0x29adde={},_0x394bf7={};_0x394bf7[_0x42da31(0x153)]=_0x1b65f4,_0x394bf7[_0x42da31(0x1fa)]=_0x3b79ef,_0x394bf7['testsFailed']=_0x24a89b,_0x394bf7[_0x42da31(0x11d)]=_0x49f8e2,_0x394bf7[_0x42da31(0x113)]=_0x1be1bb,_0x29adde[_0x42da31(0x1a5)]=_0x394bf7,_0x3b79ef[_0x42da31(0x135)](_0x589f9c=>{const _0x457a1e=_0x42da31,_0x33d96b={'nGVAJ':function(_0x1e7846,_0x5400ef){return _0x5951d1['KkiRK'](_0x1e7846,_0x5400ef);},'DUBgv':_0x5951d1['ouHFX'],'Xmpxm':_0x5951d1['ErsWc'],'EFnlX':function(_0x36994a,_0x45df1c){return _0x5951d1['EVWIe'](_0x36994a,_0x45df1c);},'GhAdz':_0x5951d1[_0x457a1e(0x156)],'brFHw':_0x5951d1['GNKFO'],'EtavR':_0x5951d1[_0x457a1e(0x16a)]};_0x29adde[_0x589f9c]={'pending':[],'failures':[],'passes':[],'tests':_0x1aedf5[_0x589f9c][_0x5951d1[_0x457a1e(0x1fd)]]['map'](clean)},_0x1aedf5[_0x589f9c][_0x5951d1[_0x457a1e(0x1fd)]][_0x457a1e(0x135)](_0x2d24b6=>{const _0x3557e5=_0x457a1e;if(_0x33d96b[_0x3557e5(0x16b)](_0x2d24b6['state'],_0x33d96b[_0x3557e5(0x194)]))_0x29adde[_0x589f9c][_0x33d96b[_0x3557e5(0x166)]][_0x3557e5(0x177)](_0x33d96b[_0x3557e5(0x1f9)](clean,_0x2d24b6));else _0x33d96b[_0x3557e5(0x16b)](_0x2d24b6[_0x3557e5(0x180)],_0x33d96b[_0x3557e5(0x158)])?_0x29adde[_0x589f9c][_0x33d96b[_0x3557e5(0x1a7)]][_0x3557e5(0x177)](_0x33d96b[_0x3557e5(0x1f9)](clean,_0x2d24b6)):_0x29adde[_0x589f9c][_0x33d96b[_0x3557e5(0x142)]][_0x3557e5(0x177)](_0x33d96b[_0x3557e5(0x1f9)](clean,_0x2d24b6));});});if(_0x2df247[_0x42da31(0x151)])try{logger[_0x42da31(0x139)](_0x5951d1[_0x42da31(0x155)],_0x2df247[_0x42da31(0x151)]),fs['writeFileSync'](_0x2df247[_0x42da31(0x151)],JSON[_0x42da31(0x18b)](_0x29adde,null,0x3));}catch(_0x1f10d7){logger[_0x42da31(0x1b4)](_0x5951d1['GmSGC'],_0x2df247[_0x42da31(0x151)]),logger[_0x42da31(0x139)](_0x1f10d7);}else logger[_0x42da31(0x139)](_0x5951d1[_0x42da31(0x1a1)]),console[_0x42da31(0x16e)](JSON[_0x42da31(0x18b)](_0x29adde,null,0x3));}else{if(_0x5951d1['HEkHz'](_0x2b47e4,_0x5951d1[_0x42da31(0x168)])){let _0x11a1bc;const _0x5d35f4=_0x5951d1[_0x42da31(0x1f7)];_0x2df247&&(_0x11a1bc=_0x2df247[_0x42da31(0x175)]);_0x11a1bc=_0x5951d1[_0x42da31(0x1d4)](_0x11a1bc,_0x5d35f4);let _0x3ae92c=0x0,_0xa0e9b5=0x0,_0x3e2f13=0x0,_0x2d4c02=0x0;_0x3b79ef[_0x42da31(0x135)](_0x142ba1=>{const _0x3cbc23=_0x42da31;_0x1aedf5[_0x142ba1][_0x5951d1[_0x3cbc23(0x1fd)]][_0x3cbc23(0x135)](_0x278180=>{const _0x355a0f=_0x3cbc23;if(_0x5951d1['NAtdo'](_0x278180['state'],_0x5951d1['ouHFX']))_0x3ae92c++;else _0x5951d1[_0x355a0f(0x1cb)](_0x278180[_0x355a0f(0x180)],_0x5951d1[_0x355a0f(0x156)])&&_0xa0e9b5++;_0x3e2f13++,_0x2d4c02+=_0x5951d1[_0x355a0f(0x186)](_0x278180[_0x355a0f(0x193)],0x1);});}),_0x5951d1[_0x42da31(0x1ea)](xunitWrite,_0x5951d1['efmsS'](tag,_0x5951d1[_0x42da31(0x171)],{'name':_0x11a1bc,'tests':_0x3e2f13,'failures':0x0,'errors':_0xa0e9b5,'skipped':_0x5951d1[_0x42da31(0x1ad)](_0x5951d1[_0x42da31(0x130)](_0x3e2f13,_0xa0e9b5),_0x3ae92c),'timestamp':new Date()[_0x42da31(0x17b)](),'time':_0x5951d1[_0x42da31(0x10d)](_0x2d4c02,0x3e8)||0x0},![])),_0x3b79ef['forEach'](_0x13ec35=>{const _0x3892c5=_0x42da31,_0x57d502={'aZLFk':function(_0x58d393,_0x48b5a4,_0x4a2da7){const _0x3885dd=a28_0x227b;return _0x5951d1[_0x3885dd(0x1e0)](_0x58d393,_0x48b5a4,_0x4a2da7);}};_0x1aedf5[_0x13ec35][_0x5951d1['WYzaQ']][_0x3892c5(0x135)](_0x4584a3=>{const _0x46588b=_0x3892c5;_0x57d502[_0x46588b(0x1ed)](xunitTest,_0x4584a3,_0x13ec35);});}),_0x5951d1[_0x42da31(0x11b)](xunitWrite,_0x5951d1['eIcsC']);if(_0x2df247[_0x42da31(0x151)])try{logger['debug'](_0x5951d1['AalfB'],_0x2df247[_0x42da31(0x151)]),fs[_0x42da31(0x1c5)](_0x2df247['output'],xunitContent);}catch(_0x8213c6){logger[_0x42da31(0x1b4)](_0x5951d1[_0x42da31(0x195)],_0x2df247[_0x42da31(0x151)]),logger['debug'](_0x8213c6);}else logger[_0x42da31(0x139)](_0x5951d1[_0x42da31(0x19d)]),console['log'](xunitContent);}else{if(_0x5951d1[_0x42da31(0x1cb)](_0x24a89b,0x0))return;console[_0x42da31(0x16e)](),logger[_0x42da31(0x139)](_0x5951d1[_0x42da31(0x199)]),console[_0x42da31(0x16e)](chalk[_0x42da31(0x1bb)]['bgRedBright'](_0x5951d1[_0x42da31(0x12b)])),_0x3b79ef['forEach'](_0xd614bf=>{const _0x27057d=_0x42da31,_0xb9f48c=[];_0x1aedf5[_0xd614bf][_0x5951d1[_0x27057d(0x1fd)]]['forEach'](_0x202b90=>{const _0x4fc4c2=_0x27057d;_0x5951d1['NAtdo'](_0x202b90[_0x4fc4c2(0x180)],_0x5951d1[_0x4fc4c2(0x156)])&&(_0x202b90['titlePath']=()=>_0x202b90[_0x4fc4c2(0x1e9)],_0xb9f48c['push'](_0x202b90));}),_0x5951d1[_0x27057d(0x111)](_0xb9f48c['length'],0x0)&&(Base['consoleLog'](),Base[_0x27057d(0x121)](_0x5951d1[_0x27057d(0x1eb)](_0xf1baeb),chalk[_0x27057d(0x1bb)][_0x27057d(0x1f0)](_0xd614bf)),Base[_0x27057d(0x1ff)](_0xb9f48c));});}}}async function run(_0x3349c6,_0x4f7b69){const _0x23ad94=a28_0xd7c2d4,_0x87527={'GEokm':function(_0x3d0c54,_0x101183,_0x673fe,_0x37224b){return _0x3d0c54(_0x101183,_0x673fe,_0x37224b);},'HCkUe':_0x23ad94(0x13b),'jHCbB':_0x23ad94(0x192),'YGnFP':_0x23ad94(0x16d),'kPmDN':_0x23ad94(0x1c0),'mYIDl':_0x23ad94(0x203),'BNNdH':'--disable-browserstack-automation','xeVik':function(_0x100f2e,_0x5795e5){return _0x100f2e!=_0x5795e5;},'mIFqY':_0x23ad94(0x1b9),'imOml':'mjs','QAYSp':'test','hRxSb':_0x23ad94(0x13f),'FOzrn':function(_0x271127,_0x7396fd){return _0x271127(_0x7396fd);},'dwdXk':function(_0x10f9af,_0x25e6c9,_0x1b8920){return _0x10f9af(_0x25e6c9,_0x1b8920);},'cFFKk':_0x23ad94(0x1a6),'DPYQM':_0x23ad94(0x167),'sdRKF':'Now,\x20showing\x20logs\x20from\x20mocha','mPVBj':function(_0x49aecd,_0x59a233){return _0x49aecd*_0x59a233;},'gDfLt':function(_0x53cfd6,_0x32714d){return _0x53cfd6!==_0x32714d;}};process[_0x23ad94(0x1a2)][_0x23ad94(0x1d2)](_0x87527['mYIDl'])&&(process[_0x23ad94(0x14d)][_0x23ad94(0x16f)]=![]);process['argv'][_0x23ad94(0x1d2)](_0x87527[_0x23ad94(0x162)])&&(process[_0x23ad94(0x14d)]['BROWSERSTACK_AUTOMATION']=![]);const _0x16f1d9=new BrowserStackSetup(_0x3349c6,_0x87527[_0x23ad94(0x1d5)]);helper['isBrowserstackInfra']()?(await _0x16f1d9[_0x23ad94(0x1bd)](),await helper[_0x23ad94(0x148)](_0x16f1d9[_0x23ad94(0x15b)])):await _0x16f1d9[_0x23ad94(0x1e5)]();const _0x25f8ca=[];let _0x18a0fd=[];if(!_0x16f1d9[_0x23ad94(0x15b)])return;_0x87527[_0x23ad94(0x1ae)](_0x16f1d9['config'][_0x23ad94(0x200)],null)&&(process[_0x23ad94(0x14d)][_0x23ad94(0x172)]=_0x16f1d9[_0x23ad94(0x15b)][_0x23ad94(0x200)]);!helper[_0x23ad94(0x1d1)](_0x16f1d9[_0x23ad94(0x15b)][_0x23ad94(0x174)])&&(process[_0x23ad94(0x14d)][_0x23ad94(0x124)]=_0x16f1d9[_0x23ad94(0x15b)][_0x23ad94(0x174)]);!helper[_0x23ad94(0x1d1)](_0x16f1d9[_0x23ad94(0x15b)][_0x23ad94(0x116)])&&(process[_0x23ad94(0x14d)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x16f1d9[_0x23ad94(0x15b)][_0x23ad94(0x116)]));const {extension:extension=['js',_0x87527[_0x23ad94(0x14c)],_0x87527[_0x23ad94(0x12e)]],ignore:ignore=[],file:file=[],recursive:recursive=![],sort:sort=![],spec:spec=[_0x87527[_0x23ad94(0x1db)]]}=_0x3349c6,_0x3536cf={..._0x3349c6};_0x3536cf[_0x23ad94(0x1da)]=null;const _0x5daafd=_0x3536cf;let _0x5c6640;if(testOpsHelper[_0x23ad94(0x187)]()&&testOpsHelper[_0x23ad94(0x11e)]()){let _0x4f491e=process['env'][_0x23ad94(0x1e4)];!helper[_0x23ad94(0x1d1)](_0x16f1d9['cliConfig'])&&_0x16f1d9[_0x23ad94(0x14a)][_0x23ad94(0x143)](_0x87527[_0x23ad94(0x1cf)])&&(_0x4f491e=_0x16f1d9['cliConfig'][_0x23ad94(0x198)](_0x87527[_0x23ad94(0x1cf)])),_0x5c6640=testOpsHelper['parseFileNames'](_0x4f491e);}if(helper[_0x23ad94(0x1d1)](_0x5c6640)){const _0x53973a={};_0x53973a['ignore']=ignore,_0x53973a['extension']=extension,_0x53973a[_0x23ad94(0x1f4)]=file,_0x53973a[_0x23ad94(0x1dd)]=recursive,_0x53973a[_0x23ad94(0x1c6)]=sort,_0x53973a['spec']=spec,_0x5c6640=_0x87527['FOzrn'](collectFiles,_0x53973a),_0x87527[_0x23ad94(0x1cd)](nestedKeyValue,_0x5c6640,[_0x87527[_0x23ad94(0x17c)]])&&(_0x5c6640=_0x5c6640[_0x23ad94(0x1a6)]);}helper[_0x23ad94(0x18d)]();if(!helper[_0x23ad94(0x165)]()){const _0x3a9c91=0x1,_0x21110f={..._0x5daafd};_0x21110f[_0x23ad94(0x181)]=[..._0x5c6640],_0x25f8ca['push']({'mochaOpts':_0x21110f,'configuration':{'platform':os[_0x23ad94(0x1bf)]()}}),logger[_0x23ad94(0x18a)](_0x87527[_0x23ad94(0x10f)]),logger[_0x23ad94(0x18a)](_0x87527[_0x23ad94(0x152)]),_0x87527[_0x23ad94(0x183)](parallelTestRun,_0x25f8ca,_0x3a9c91,_0x16f1d9)['then'](_0x164b56=>{const _0x5d9a9a=_0x23ad94;_0x87527[_0x5d9a9a(0x183)](printStats,_0x164b56,_0x3349c6[_0x5d9a9a(0x1f2)],_0x3349c6[_0x5d9a9a(0x1c7)]||_0x3349c6[_0x87527[_0x5d9a9a(0x1b2)]]);})[_0x23ad94(0x1b5)](()=>{const _0xb3f999=_0x23ad94;try{const {browserstackFolderPath:_0x322f63,tcgConfigPath:_0x3918b4}=helper[_0xb3f999(0x1b3)]();fs[_0xb3f999(0x1dc)](_0x3918b4),fs[_0xb3f999(0x122)](_0x322f63);}catch(_0x263765){logger[_0xb3f999(0x139)](_0x87527['jHCbB'],_0x263765);}try{utilities[_0xb3f999(0x18c)](_0x87527[_0xb3f999(0x17f)],{},_0x16f1d9[_0xb3f999(0x15b)],_0x16f1d9['framework']);}catch(_0x52e49c){logger[_0xb3f999(0x139)](_0xb3f999(0x12c)+_0x52e49c);}try{helper[_0xb3f999(0x170)]();}catch(_0x527cda){logger[_0xb3f999(0x139)](_0xb3f999(0x1d3)+_0x527cda);}testOpsHelper[_0xb3f999(0x1a8)]();});}else{const _0x34ded2=helper[_0x23ad94(0x1a9)](_0x16f1d9[_0x23ad94(0x15b)]),_0x4c7194=helper[_0x23ad94(0x136)](_0x16f1d9[_0x23ad94(0x15b)]);_0x18a0fd=helper[_0x23ad94(0x15c)](_0x16f1d9[_0x23ad94(0x15b)],_0x34ded2,constants[_0x23ad94(0x120)]['MOCHA']);let _0x58b751;const _0x456768=_0x16f1d9[_0x23ad94(0x15b)][_0x23ad94(0x184)]||helper[_0x23ad94(0x1b6)](_0x3349c6,_0x4f7b69,_0x16f1d9[_0x23ad94(0x15b)],constants[_0x23ad94(0x120)][_0x23ad94(0x18e)])||0x1;helper['validPlatformsPresent'](_0x16f1d9[_0x23ad94(0x15b)])?_0x58b751=_0x87527[_0x23ad94(0x15a)](_0x16f1d9['config'][_0x23ad94(0x1fa)]['length'],_0x456768):_0x58b751=_0x456768;const _0x785240=_0x87527[_0x23ad94(0x119)](getPercyOptions,_0x16f1d9[_0x23ad94(0x15b)]);if(_0x87527[_0x23ad94(0x188)](_0x16f1d9[_0x23ad94(0x15b)]['parallelsPerPlatform'],0x1))_0x5c6640[_0x23ad94(0x135)](_0x5b95a1=>{const _0x164602=_0x23ad94,_0x46e82d=[];_0x18a0fd[_0x164602(0x135)]((_0x1d3693,_0x4e5009)=>{const _0x18b2f3=_0x164602,_0x5cf315={};_0x5cf315[_0x18b2f3(0x181)]=[_0x5b95a1],_0x46e82d[_0x18b2f3(0x177)]({'mochaOpts':Object[_0x18b2f3(0x117)]({},_0x5daafd,_0x5cf315),'configuration':{'server':_0x4c7194,'capability':_0x1d3693,'proxySettings':_0x16f1d9['config'][_0x18b2f3(0x115)],'platform':helper[_0x18b2f3(0x1e1)](_0x1d3693),'browserStackLogLevel':_0x16f1d9['config'][_0x18b2f3(0x1f1)],'platformIndex':_0x4e5009,'browserStackPercyOptions':_0x785240,'platformCaps':_0x16f1d9[_0x18b2f3(0x15b)]['platforms'][_0x4e5009]}});}),_0x25f8ca['push'](..._0x46e82d);});else{const _0x1953f6=[];_0x18a0fd['forEach']((_0xd59694,_0x94d2c1)=>{const _0xb9eb5f=_0x23ad94;let _0x160a3b=Object['assign']({},_0x5daafd);testOpsHelper[_0xb9eb5f(0x187)]()&&testOpsHelper[_0xb9eb5f(0x11e)]()&&(_0x160a3b={..._0x160a3b,'spec':[..._0x5c6640]}),_0x1953f6['push']({'mochaOpts':_0x160a3b,'configuration':{'server':_0x4c7194,'capability':_0xd59694,'proxySettings':_0x16f1d9[_0xb9eb5f(0x15b)][_0xb9eb5f(0x115)],'platform':helper[_0xb9eb5f(0x1e1)](_0xd59694),'browserStackLogLevel':_0x16f1d9[_0xb9eb5f(0x15b)]['logLevel'],'platformIndex':_0x94d2c1,'browserStackPercyOptions':_0x785240,'platformCaps':_0x16f1d9[_0xb9eb5f(0x15b)][_0xb9eb5f(0x1fa)][_0x94d2c1]}});}),_0x25f8ca[_0x23ad94(0x177)](..._0x1953f6);}logger[_0x23ad94(0x18a)](_0x23ad94(0x182)+_0x16f1d9['config'][_0x23ad94(0x1fa)][_0x23ad94(0x114)]+'\x20platforms'),logger[_0x23ad94(0x18a)](_0x87527[_0x23ad94(0x152)]);let _0xfb40ea;_0x87527[_0x23ad94(0x183)](parallelTestRun,_0x25f8ca,_0x58b751,_0x16f1d9)[_0x23ad94(0x1e7)](_0x5cd23c=>{const _0x5cee90=_0x23ad94;_0xfb40ea=_0x5cd23c,_0x87527[_0x5cee90(0x183)](printStats,_0x5cd23c,_0x3349c6[_0x5cee90(0x1f2)],_0x3349c6[_0x5cee90(0x1c7)]||_0x3349c6[_0x87527[_0x5cee90(0x1b2)]]);})[_0x23ad94(0x1b5)](async()=>{const _0x2b9a3f=_0x23ad94;_0x16f1d9['errorMessage']=helper[_0x2b9a3f(0x169)](_0xfb40ea,_0x87527[_0x2b9a3f(0x1d5)]),await utilities[_0x2b9a3f(0x11f)](_0x16f1d9),testOpsHelper[_0x2b9a3f(0x1a8)]();});}}module['exports']=run;
|
|
2
|
+
'use strict';const a28_0x495afd=a28_0x5843;(function(_0x2c3d1a,_0x17182f){const _0x500bff=a28_0x5843,_0x5225da=_0x2c3d1a();while(!![]){try{const _0x1eabb3=parseInt(_0x500bff(0xff))/0x1+parseInt(_0x500bff(0x137))/0x2*(-parseInt(_0x500bff(0x14a))/0x3)+parseInt(_0x500bff(0xa1))/0x4*(-parseInt(_0x500bff(0x156))/0x5)+-parseInt(_0x500bff(0xe9))/0x6+-parseInt(_0x500bff(0xba))/0x7+-parseInt(_0x500bff(0xd7))/0x8+parseInt(_0x500bff(0x14d))/0x9*(parseInt(_0x500bff(0x93))/0xa);if(_0x1eabb3===_0x17182f)break;else _0x5225da['push'](_0x5225da['shift']());}catch(_0xaa3472){_0x5225da['push'](_0x5225da['shift']());}}}(a28_0x3bff,0x93c1a));const chalk=require('chalk'),logger=require(a28_0x495afd(0x96))['winstonLogger'],{default:BrowserStackSetup}=require(a28_0x495afd(0x13e)),helper=require(a28_0x495afd(0x7f)),utilities=require(a28_0x495afd(0xa8)),testOpsHelper=require(a28_0x495afd(0x120)),fs=require('fs'),os=require('os'),{parallelTestRun}=require('../test-runner'),{requireModule,nestedKeyValue}=require(a28_0x495afd(0x7f)),{getPercyOptions}=require(a28_0x495afd(0x98)),Base=requireModule(a28_0x495afd(0xfd)),collectFiles=requireModule(a28_0x495afd(0xab)),constants=require(a28_0x495afd(0x151));function tag(_0x2b6e53,_0x1d9ef5,_0x2e1bff,_0x1ba888){const _0x332454=a28_0x495afd,_0xa84add={'qjVuP':function(_0x146ec4,_0x557598){return _0x146ec4+_0x557598;},'VtdOu':function(_0xf8d049,_0x2c7dc2){return _0xf8d049+_0x2c7dc2;},'kKQnw':function(_0x47b513,_0x1c6237){return _0x47b513(_0x1c6237);},'oKBJG':function(_0x1e1e93,_0x5aa489){return _0x1e1e93+_0x5aa489;},'NhRno':function(_0x3c3bb1,_0x991bb3){return _0x3c3bb1+_0x991bb3;},'JiJJx':function(_0x4fd112,_0x4181f2){return _0x4fd112+_0x4181f2;},'QVuDh':function(_0x1d5f49,_0x382201){return _0x1d5f49+_0x382201;},'Upvkn':function(_0x21e61a,_0x5ba4db){return _0x21e61a+_0x5ba4db;}},_0xab57c6=_0x2e1bff?'/>':'>',_0x29792a=[];let _0x22760c;for(const _0x3ead83 in _0x1d9ef5){Object[_0x332454(0x79)][_0x332454(0x74)]['call'](_0x1d9ef5,_0x3ead83)&&_0x29792a['push'](_0xa84add[_0x332454(0x76)](_0xa84add[_0x332454(0x81)](_0xa84add[_0x332454(0x76)](_0x3ead83,'=\x22'),_0xa84add[_0x332454(0x75)](escape,_0x1d9ef5[_0x3ead83])),'\x22'));}return _0x22760c=_0xa84add[_0x332454(0x81)](_0xa84add[_0x332454(0x76)](_0xa84add['oKBJG']('<',_0x2b6e53),_0x29792a[_0x332454(0xf6)]?_0xa84add[_0x332454(0xd1)]('\x20',_0x29792a[_0x332454(0x8f)]('\x20')):''),_0xab57c6),_0x1ba888&&(_0x22760c+=_0xa84add[_0x332454(0xf9)](_0xa84add[_0x332454(0x11a)](_0xa84add[_0x332454(0xd4)](_0x1ba888,'</'),_0x2b6e53),_0xab57c6)),_0x22760c;}function a28_0x3bff(){const _0x243158=['XKzQk','yellow','spec','nsCdq','71814eeSiGd','accessibility','BROWSERSTACK_TEST_OBSERVABILITY_YML','18JfSpOV','Unjpj','platforms','aINpk','../utils/constants','qnoRB','printBuildLink','isPending','Running\x20your\x20mocha\x20tests\x20across\x20','175EfXtms','getUserWorkerCount','xzcsK','files','AOjbB','RYSbe','has','GnFYH','Error\x20in\x20notifying\x20update.\x20Stacktrace:\x20','stringify','MOCHA','expected','OfqmO','isTestObservabilitySession','CkiLk','Running\x20your\x20mocha\x20tests','Total\x20Platforms:\x20','stack','argv','getOwnPropertyNames','size','red','vgdyw','kxAvz','hasOwnProperty','kKQnw','qjVuP','testsPending','reporter','prototype','EeunM','mVOQP','lKQMV','XQedV','zmNBv','../../helpers/helper','geUAL','VtdOu','suiteName','getErrorMessageFromResults','includes','pending','cliConfig','finalExecution','indexOf','duration','VnjCf','writeFileSync','failure','MCiJP','xJCtW','join','debug','results','gxcfE','17055710blSLXV','ITeak','list','../../helpers/logger','eciQm','../../helpers/percy/utils','JHNIq','nFJTJ','\x20platforms','showDiff','err','TdURD','unlinkSync','env','74260aGIDWI','OolHZ','getTCGConfigFilePaths','nsrgr','QCeTY','actual','sort','../../helpers/utilities','isUndefined','skipped','mocha/lib/cli/collect-files.js','Listing\x20all\x20the\x20failures','FKPGz','\x20total','NVJRB','tDpWV','BROWSERSTACK_TEST_OBSERVABILITY','object','testObservability','kBGxc','handleApp','info','map','HkoHm','asTZd','4161220fBEYne','ewSrv','passed','errorMessage','CFzwE','setupTCGAuth','assign','suite','recursive','forEach','finally','error','SDKTestSuccessful','MrqPQ','xaYyy','xtEWz','rootHooks','Writing\x20json\x20result\x20to\x20file','rCRNp','titlePathV','PfqMG','UzcDT','jaEsE','NhRno','testsuite','then','Upvkn','jWWRX','XCWEX','2488400rHeyci','add','oBoip','testSuites','No\x20output\x20file\x20given,\x20writing\x20xunit\x20result\x20to\x20console','FdUBk','mjs','rmdirSync','MaeKS','totalTests','mbxGd','prepareCapabilities','qivwN','BROWSERSTACK_AUTOMATION','failed','FRAMEWORKS','keys','file','5324880fZWQOT','parallelsPerPlatform','xWrdM','useColors','doc','YeJRC','ignore','state','kooFu','generateDiff','passes','fireFunnelTestEvent','bgBlueBright','length','shouldReRunObservabilityTests','Total\x20Suites:\x20','JiJJx','Couldn\x27t\x20write\x20xunit\x20result\x20to','proxySettings','No\x20output\x20file\x20given,\x20writing\x20json\x20result\x20to\x20console','mocha/lib/reporters/base.js','qElzJ','259221ukflwS','Couldn\x27t\x20write\x20json\x20result\x20to','yktDV','accessibilityOptions','qShcX','extension','QbEyu','log','output','testsPassed','message','parseFileNames','exitCode','ZhseR','</testsuite>','failures','min','EoHsP','get','zEDiW','toUTCString','Setting\x20non\x20exit\x20code\x20for\x20failures','bold','\x0a\x0a\x0a','HBerE','nVqrv','push','QVuDh','validPlatformsPresent','rerunTests','KIILf','BROWSERSTACK_TEST_ACCESSIBILITY_YML','Abzmf','../../helpers/test-observability/utils','aZzRG','fullTitle','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','KzwfH','MINhf','YywYv','logLevel','ejbqD','speed','tWiuR','wmpig','YfSfF','consoleLog','Tests:\x20\x20\x20\x20\x20\x20\x20','uBeth','eWbZM','lwKWv','config','error\x20removing\x20tcg\x20config\x20file','Mocha\x20Tests','test','cjs','52NctGbp','LuMpY','getPlatformName','title','reporter-option','testsFailed','testcase','../../helpers/BrowserStackSetup','\x20passed','dNggV','pTEIK','gqtjy','DHxEu','Printing\x20stats\x20of\x20tests','\x20skipped'];a28_0x3bff=function(){return _0x243158;};return a28_0x3bff();}let xunitContent='';function xunitWrite(_0x4b123d){xunitContent+=_0x4b123d;}function xunitTest(_0x5164c0,_0x4bdd4d){const _0x198e48=a28_0x495afd,_0x253022={'nFJTJ':function(_0x73e2c2,_0x1bed45){return _0x73e2c2/_0x1bed45;},'xaYyy':function(_0x4f65e0,_0x216bca){return _0x4f65e0===_0x216bca;},'Cgnhd':_0x198e48(0xe5),'xzcsK':function(_0x2bc332,_0x3b7470){return _0x2bc332+_0x3b7470;},'aZzRG':function(_0x3c124c,_0x466f1b){return _0x3c124c(_0x466f1b);},'UzcDT':function(_0x427b6f,_0x44288c,_0x1a25a7,_0x41a141,_0x548a87){return _0x427b6f(_0x44288c,_0x1a25a7,_0x41a141,_0x548a87);},'DHxEu':_0x198e48(0x13d),'QCeTY':_0x198e48(0x8c),'aINpk':function(_0x4e562d,_0x52c836){return _0x4e562d+_0x52c836;},'woFpr':function(_0x24051d,_0x55a0c7){return _0x24051d+_0x55a0c7;},'JHNIq':function(_0x1d97d2,_0x433fb7){return _0x1d97d2+_0x433fb7;},'zEDiW':function(_0x5cfa24,_0x523563){return _0x5cfa24(_0x523563);},'YeJRC':function(_0x58273f,_0x2e4668){return _0x58273f(_0x2e4668);},'RYSbe':function(_0x46897d,_0x36a13e){return _0x46897d(_0x36a13e);},'XQedV':function(_0x5afbc9,_0x382cb8,_0x37cae7,_0xed54a0){return _0x5afbc9(_0x382cb8,_0x37cae7,_0xed54a0);},'hAkei':_0x198e48(0xaa)};Base[_0x198e48(0xec)]=![];var _0x558337={'classname':_0x5164c0[_0x198e48(0x122)],'name':_0x5164c0[_0x198e48(0x13a)],'time':_0x253022[_0x198e48(0x9a)](_0x5164c0[_0x198e48(0x89)],0x3e8)||0x0,'platform':_0x4bdd4d};if(_0x253022[_0x198e48(0xc8)](_0x5164c0['state'],_0x253022['Cgnhd'])){var _0x322505=_0x5164c0[_0x198e48(0x9d)],_0xe307a2=!Base['hideDiff']&&Base[_0x198e48(0x9c)](_0x322505)?_0x253022[_0x198e48(0x158)]('\x0a',Base[_0x198e48(0xf2)](_0x322505[_0x198e48(0xa6)],_0x322505[_0x198e48(0x161)])):'';_0x253022[_0x198e48(0x121)](xunitWrite,_0x253022[_0x198e48(0xcf)](tag,_0x253022['DHxEu'],_0x558337,![],_0x253022[_0x198e48(0xcf)](tag,_0x253022[_0x198e48(0xa5)],{},![],_0x253022[_0x198e48(0x150)](_0x253022['woFpr'](_0x253022[_0x198e48(0x99)](_0x253022[_0x198e48(0x112)](escape,_0x322505[_0x198e48(0x109)]),_0x253022[_0x198e48(0x121)](escape,_0xe307a2)),'\x0a'),_0x253022[_0x198e48(0xee)](escape,_0x322505[_0x198e48(0x6d)])))));}else _0x5164c0[_0x198e48(0x154)]?_0x253022[_0x198e48(0x15b)](xunitWrite,_0x253022[_0x198e48(0xcf)](tag,_0x253022[_0x198e48(0x143)],_0x558337,![],_0x253022[_0x198e48(0x7d)](tag,_0x253022['hAkei'],{},!![]))):_0x253022[_0x198e48(0x121)](xunitWrite,_0x253022['XQedV'](tag,_0x253022[_0x198e48(0x143)],_0x558337,!![]));};function getStats(_0x47e5dd){const _0xe1797b=a28_0x495afd,_0x38782d={};_0x38782d['YfSfF']=_0xe1797b(0xc1),_0x38782d[_0xe1797b(0xa2)]=_0xe1797b(0xbc),_0x38782d[_0xe1797b(0x130)]=_0xe1797b(0xe5),_0x38782d['nVqrv']=_0xe1797b(0x91);const _0x356f12=_0x38782d,_0x20531c=Object[_0xe1797b(0xe7)](_0x47e5dd);let _0x593e46=0x0,_0x2edb6e=0x0,_0x281a93=0x0,_0x243c31=0x0;const _0x2c79b9=new Set();_0x20531c['forEach'](_0x3aece4=>{const _0x554b3e=_0xe1797b;_0x47e5dd[_0x3aece4][_0x356f12[_0x554b3e(0x118)]][_0x554b3e(0xc3)](_0x268c7d=>{const _0x34a653=_0x554b3e;_0x2c79b9[_0x34a653(0xd8)](_0x268c7d[_0x356f12[_0x34a653(0x12c)]]),_0x593e46++;switch(_0x268c7d[_0x34a653(0xf0)]){case _0x356f12[_0x34a653(0xa2)]:_0x281a93++;break;case _0x356f12['eWbZM']:_0x2edb6e++;break;default:_0x243c31++;}});});const _0x27841e={};return _0x27841e[_0xe1797b(0xda)]=_0x2c79b9[_0xe1797b(0x70)],_0x27841e[_0xe1797b(0x14f)]=_0x20531c,_0x27841e[_0xe1797b(0xe0)]=_0x593e46,_0x27841e[_0xe1797b(0x13c)]=_0x2edb6e,_0x27841e[_0xe1797b(0x108)]=_0x281a93,_0x27841e[_0xe1797b(0x77)]=_0x243c31,_0x27841e;}function errorJSON(_0x2b3547){const _0x321302=a28_0x495afd;var _0x54dbfb={};return Object[_0x321302(0x6f)](_0x2b3547)[_0x321302(0xc3)](function(_0x17491e){_0x54dbfb[_0x17491e]=_0x2b3547[_0x17491e];},_0x2b3547),_0x54dbfb;}function cleanCycles(_0x484eeb){const _0x11cc21=a28_0x495afd,_0xf26eda={};_0xf26eda[_0x11cc21(0x110)]=function(_0xd1c5c4,_0x3703e5){return _0xd1c5c4===_0x3703e5;},_0xf26eda[_0x11cc21(0xcc)]=_0x11cc21(0xb2),_0xf26eda['YywYv']=function(_0x2a0c0b,_0x1dd93b){return _0x2a0c0b!==_0x1dd93b;},_0xf26eda[_0x11cc21(0xd6)]=function(_0x5a9f69,_0x7225df){return _0x5a9f69!==_0x7225df;},_0xf26eda[_0x11cc21(0x105)]=function(_0x2a7551,_0x54b702){return _0x2a7551+_0x54b702;};const _0x2ffea1=_0xf26eda;var _0x441fe9=[];return JSON['parse'](JSON[_0x11cc21(0x15f)](_0x484eeb,function(_0xca3c63,_0x2907e4){const _0x329a50=_0x11cc21;if(_0x2ffea1['EoHsP'](typeof _0x2907e4,_0x2ffea1['rCRNp'])&&_0x2ffea1[_0x329a50(0x126)](_0x2907e4,null)){if(_0x2ffea1['XCWEX'](_0x441fe9[_0x329a50(0x88)](_0x2907e4),-0x1))return _0x2ffea1[_0x329a50(0x105)]('',_0x2907e4);_0x441fe9[_0x329a50(0x119)](_0x2907e4);}return _0x2907e4;}));}function clean(_0x18634d){const _0x20d7a4=a28_0x495afd,_0x337092={'EeunM':function(_0x6edce,_0x3f035f){return _0x6edce instanceof _0x3f035f;},'BnFDa':function(_0x1c0b05,_0x241fe8){return _0x1c0b05(_0x241fe8);},'PfqMG':function(_0x532eee,_0x2707e1){return _0x532eee(_0x2707e1);}};var _0xac8126=_0x18634d[_0x20d7a4(0x9d)]||{};return _0x337092[_0x20d7a4(0x7a)](_0xac8126,Error)&&(_0xac8126=_0x337092['BnFDa'](errorJSON,_0xac8126)),{'title':_0x18634d[_0x20d7a4(0x13a)],'fullTitle':_0x18634d[_0x20d7a4(0x122)],'file':_0x18634d[_0x20d7a4(0xe8)],'duration':_0x18634d[_0x20d7a4(0x89)],'currentRetry':_0x18634d['currentRetry'],'speed':_0x18634d[_0x20d7a4(0x129)],'err':_0x337092[_0x20d7a4(0xce)](cleanCycles,_0xac8126)};}function printStats(_0x10545c,_0x2a1ede=a28_0x495afd(0x148),_0x1a1462={}){const _0x347df3=a28_0x495afd,_0xe4d8e6={'KzwfH':function(_0x2edb2d,_0x10c54b){return _0x2edb2d(_0x10c54b);},'xtEWz':function(_0x2ec036,_0x491f6d){return _0x2ec036===_0x491f6d;},'xWrdM':_0x347df3(0xbc),'iASli':_0x347df3(0xf3),'MrqPQ':function(_0x78c258,_0x4819b9){return _0x78c258(_0x4819b9);},'MaeKS':function(_0x525a86,_0x4a3ace){return _0x525a86===_0x4a3ace;},'mVOQP':_0x347df3(0xe5),'ftIkC':_0x347df3(0x10e),'MCiJP':_0x347df3(0x85),'ZhseR':function(_0x3f7bef,_0x361cee){return _0x3f7bef(_0x361cee);},'tDpWV':_0x347df3(0x91),'gxcfE':function(_0x4964e9,_0x2edb13){return _0x4964e9*_0x2edb13;},'CkiLk':function(_0x2ad6d5,_0x3e579c,_0x4e6fc0){return _0x2ad6d5(_0x3e579c,_0x4e6fc0);},'ejbqD':function(_0x2f17bf,_0x468b98){return _0x2f17bf>_0x468b98;},'ewSrv':function(_0x1214ab){return _0x1214ab();},'xJCtW':_0x347df3(0xed),'IEASP':_0x347df3(0x114),'Unjpj':_0x347df3(0x144),'oBoip':function(_0xfcd0a6,_0x5537cf){return _0xfcd0a6+_0x5537cf;},'KvhDF':_0x347df3(0x6c),'tWiuR':function(_0x274a3b,_0x48580e){return _0x274a3b+_0x48580e;},'UCCxQ':_0x347df3(0xf8),'VnjCf':function(_0x498954,_0x5e3ed6){return _0x498954+_0x5e3ed6;},'kBGxc':function(_0x4e56ae,_0x551f28){return _0x4e56ae+_0x551f28;},'uBeth':function(_0x4f098e,_0x2b0fca){return _0x4f098e+_0x2b0fca;},'Abzmf':_0x347df3(0x12e),'qElzJ':function(_0x1685e4,_0x8ffbb6){return _0x1685e4>_0x8ffbb6;},'yktDV':function(_0x346282,_0x12a822){return _0x346282+_0x12a822;},'geUAL':function(_0x240e23,_0x4684a3){return _0x240e23+_0x4684a3;},'nsCdq':function(_0x49bebf,_0xeb00e7){return _0x49bebf+_0xeb00e7;},'LuMpY':_0x347df3(0x116),'NVJRB':'json','AOjbB':_0x347df3(0xcb),'rZuvu':_0x347df3(0x100),'MINhf':_0x347df3(0xfc),'gqtjy':'xunit','TdURD':_0x347df3(0x134),'lKQMV':function(_0x7242e8,_0x5bd3bf){return _0x7242e8||_0x5bd3bf;},'HMZfg':function(_0xa2730a,_0x307d06){return _0xa2730a(_0x307d06);},'eRkML':function(_0x5c5e20,_0x1457e3,_0x41fb8c,_0x3ddf46){return _0x5c5e20(_0x1457e3,_0x41fb8c,_0x3ddf46);},'HkoHm':_0x347df3(0xd2),'jWWRX':function(_0xb70630,_0x3db11f){return _0xb70630-_0x3db11f;},'zmNBv':function(_0x53a848,_0x599b38){return _0x53a848/_0x599b38;},'HYRiA':function(_0x4c11ab,_0x202bb1){return _0x4c11ab(_0x202bb1);},'HrPRh':_0x347df3(0x10d),'CqgFM':'Writing\x20xunit\x20result\x20to\x20file','ITeak':_0x347df3(0xfa),'lwKWv':_0x347df3(0xdb),'pTEIK':_0x347df3(0xac),'FdUBk':'****\x20FAILURES\x20****'};if(_0xe4d8e6[_0x347df3(0xc9)](_0x2a1ede,_0xe4d8e6[_0x347df3(0x8e)]))return;const _0x5020bc=0x0,_0x57635a=()=>{const _0x172926=_0x347df3;return _0xe4d8e6[_0x172926(0x124)](Array,_0x5020bc)[_0x172926(0x8f)]('\x20\x20');},{testSuites:_0x64b27b,platforms:_0xcd6e86,totalTests:_0x382675,testsFailed:_0x49e67b,testsPassed:_0x2fc725,testsPending:_0x503daa}=_0xe4d8e6['KzwfH'](getStats,_0x10545c);_0xe4d8e6[_0x347df3(0x128)](_0x49e67b,0x0)&&(logger[_0x347df3(0x90)](_0xe4d8e6['IEASP']),process[_0x347df3(0x10b)]=Math[_0x347df3(0x10f)](_0x49e67b,0xff));logger[_0x347df3(0x90)](_0xe4d8e6[_0x347df3(0x14e)]);const _0x3be82c=''+_0xe4d8e6[_0x347df3(0xd9)](chalk[_0x347df3(0x115)](_0xe4d8e6['KvhDF']),_0xcd6e86['length']),_0x4ea60e=''+_0xe4d8e6[_0x347df3(0x12a)](chalk[_0x347df3(0x115)](_0xe4d8e6['UCCxQ']),_0x64b27b),_0x4d1f34=''+_0xe4d8e6[_0x347df3(0x8a)](_0xe4d8e6[_0x347df3(0xb4)](_0xe4d8e6[_0x347df3(0x12f)](chalk[_0x347df3(0x115)](_0xe4d8e6[_0x347df3(0x11f)]),_0xe4d8e6[_0x347df3(0xfe)](_0x49e67b,0x0)?chalk[_0x347df3(0x115)][_0x347df3(0x71)](_0x49e67b+'\x20failed')+',\x20':''),_0xe4d8e6[_0x347df3(0xfe)](_0x503daa,0x0)?chalk[_0x347df3(0x115)][_0x347df3(0x147)](_0x503daa+_0x347df3(0x145))+',\x20':''),_0xe4d8e6[_0x347df3(0xfe)](_0x2fc725,0x0)?chalk['bold']['green'](_0x2fc725+_0x347df3(0x13f))+',\x20':'')+_0x382675+_0x347df3(0xae);console[_0x347df3(0x106)](_0xe4d8e6[_0x347df3(0x8a)](_0xe4d8e6[_0x347df3(0x101)](_0xe4d8e6[_0x347df3(0x80)](_0xe4d8e6[_0x347df3(0x80)](_0xe4d8e6[_0x347df3(0x149)](_0xe4d8e6[_0x347df3(0x138)],_0x3be82c),'\x0a'),_0x4ea60e),'\x0a'),_0x4d1f34));if(_0xe4d8e6[_0x347df3(0xdf)](_0x2a1ede,_0xe4d8e6[_0x347df3(0xaf)])){const _0xd93ccd={},_0x4ad3f1={};_0x4ad3f1[_0x347df3(0xda)]=_0x64b27b,_0x4ad3f1[_0x347df3(0x14f)]=_0xcd6e86,_0x4ad3f1[_0x347df3(0x13c)]=_0x49e67b,_0x4ad3f1['testsPassed']=_0x2fc725,_0x4ad3f1[_0x347df3(0x77)]=_0x503daa,_0xd93ccd['stats']=_0x4ad3f1,_0xcd6e86['forEach'](_0x103375=>{const _0x39d20c=_0x347df3;_0xd93ccd[_0x103375]={'pending':[],'failures':[],'passes':[],'tests':_0x10545c[_0x103375][_0xe4d8e6['tDpWV']][_0x39d20c(0xb7)](clean)},_0x10545c[_0x103375][_0xe4d8e6[_0x39d20c(0xb0)]][_0x39d20c(0xc3)](_0x26b3a1=>{const _0xa6ccd8=_0x39d20c;if(_0xe4d8e6[_0xa6ccd8(0xc9)](_0x26b3a1[_0xa6ccd8(0xf0)],_0xe4d8e6['xWrdM']))_0xd93ccd[_0x103375][_0xe4d8e6['iASli']][_0xa6ccd8(0x119)](_0xe4d8e6[_0xa6ccd8(0xc7)](clean,_0x26b3a1));else _0xe4d8e6[_0xa6ccd8(0xdf)](_0x26b3a1[_0xa6ccd8(0xf0)],_0xe4d8e6[_0xa6ccd8(0x7b)])?_0xd93ccd[_0x103375][_0xe4d8e6['ftIkC']][_0xa6ccd8(0x119)](_0xe4d8e6[_0xa6ccd8(0xc7)](clean,_0x26b3a1)):_0xd93ccd[_0x103375][_0xe4d8e6[_0xa6ccd8(0x8d)]]['push'](_0xe4d8e6[_0xa6ccd8(0x10c)](clean,_0x26b3a1));});});if(_0x1a1462[_0x347df3(0x107)])try{logger[_0x347df3(0x90)](_0xe4d8e6[_0x347df3(0x15a)],_0x1a1462[_0x347df3(0x107)]),fs[_0x347df3(0x8b)](_0x1a1462[_0x347df3(0x107)],JSON[_0x347df3(0x15f)](_0xd93ccd,null,0x3));}catch(_0x5af75c){logger['error'](_0xe4d8e6['rZuvu'],_0x1a1462['output']),logger[_0x347df3(0x90)](_0x5af75c);}else logger['debug'](_0xe4d8e6[_0x347df3(0x125)]),console[_0x347df3(0x106)](JSON[_0x347df3(0x15f)](_0xd93ccd,null,0x3));}else{if(_0xe4d8e6[_0x347df3(0xc9)](_0x2a1ede,_0xe4d8e6[_0x347df3(0x142)])){let _0x8e50e9;const _0x6069ac=_0xe4d8e6[_0x347df3(0x9e)];_0x1a1462&&(_0x8e50e9=_0x1a1462[_0x347df3(0x82)]);_0x8e50e9=_0xe4d8e6[_0x347df3(0x7c)](_0x8e50e9,_0x6069ac);let _0x4c6477=0x0,_0x313361=0x0,_0x1138fa=0x0,_0x5eca48=0x0;_0xcd6e86[_0x347df3(0xc3)](_0x1c3f90=>{const _0x13411e=_0x347df3;_0x10545c[_0x1c3f90][_0xe4d8e6[_0x13411e(0xb0)]]['forEach'](_0x388e08=>{const _0x3d5e34=_0x13411e;if(_0xe4d8e6[_0x3d5e34(0xdf)](_0x388e08[_0x3d5e34(0xf0)],_0xe4d8e6[_0x3d5e34(0xeb)]))_0x4c6477++;else _0xe4d8e6[_0x3d5e34(0xdf)](_0x388e08[_0x3d5e34(0xf0)],_0xe4d8e6[_0x3d5e34(0x7b)])&&_0x313361++;_0x1138fa++,_0x5eca48+=_0xe4d8e6[_0x3d5e34(0x92)](_0x388e08[_0x3d5e34(0x89)],0x1);});}),_0xe4d8e6['HMZfg'](xunitWrite,_0xe4d8e6['eRkML'](tag,_0xe4d8e6[_0x347df3(0xb8)],{'name':_0x8e50e9,'tests':_0x1138fa,'failures':0x0,'errors':_0x313361,'skipped':_0xe4d8e6[_0x347df3(0xd5)](_0xe4d8e6[_0x347df3(0xd5)](_0x1138fa,_0x313361),_0x4c6477),'timestamp':new Date()[_0x347df3(0x113)](),'time':_0xe4d8e6[_0x347df3(0x7e)](_0x5eca48,0x3e8)||0x0},![])),_0xcd6e86[_0x347df3(0xc3)](_0x4e07fd=>{const _0x2d52c5=_0x347df3,_0x1d37af={'mbxGd':function(_0x3354c3,_0x2e20b4,_0x45541c){const _0x4f67b9=a28_0x5843;return _0xe4d8e6[_0x4f67b9(0x6a)](_0x3354c3,_0x2e20b4,_0x45541c);}};_0x10545c[_0x4e07fd][_0xe4d8e6[_0x2d52c5(0xb0)]]['forEach'](_0x13c940=>{const _0x5ed93d=_0x2d52c5;_0x1d37af[_0x5ed93d(0xe1)](xunitTest,_0x13c940,_0x4e07fd);});}),_0xe4d8e6['HYRiA'](xunitWrite,_0xe4d8e6['HrPRh']);if(_0x1a1462[_0x347df3(0x107)])try{logger['debug'](_0xe4d8e6['CqgFM'],_0x1a1462[_0x347df3(0x107)]),fs['writeFileSync'](_0x1a1462[_0x347df3(0x107)],xunitContent);}catch(_0x4d4ee9){logger[_0x347df3(0xc5)](_0xe4d8e6[_0x347df3(0x94)],_0x1a1462['output']),logger[_0x347df3(0x90)](_0x4d4ee9);}else logger[_0x347df3(0x90)](_0xe4d8e6[_0x347df3(0x131)]),console[_0x347df3(0x106)](xunitContent);}else{if(_0xe4d8e6['MaeKS'](_0x49e67b,0x0))return;console[_0x347df3(0x106)](),logger[_0x347df3(0x90)](_0xe4d8e6[_0x347df3(0x141)]),console['log'](chalk[_0x347df3(0x115)]['bgRedBright'](_0xe4d8e6[_0x347df3(0xdc)])),_0xcd6e86['forEach'](_0x21b69f=>{const _0x39ebb0=_0x347df3,_0x224796={'qnoRB':function(_0x2e0d5f,_0x13d100){const _0x266f32=a28_0x5843;return _0xe4d8e6[_0x266f32(0xc9)](_0x2e0d5f,_0x13d100);},'qShcX':_0xe4d8e6['mVOQP']},_0x4e67da=[];_0x10545c[_0x21b69f][_0xe4d8e6[_0x39ebb0(0xb0)]][_0x39ebb0(0xc3)](_0x56761f=>{const _0x2036bd=_0x39ebb0;_0x224796[_0x2036bd(0x152)](_0x56761f[_0x2036bd(0xf0)],_0x224796[_0x2036bd(0x103)])&&(_0x56761f['titlePath']=()=>_0x56761f[_0x2036bd(0xcd)],_0x4e67da[_0x2036bd(0x119)](_0x56761f));}),_0xe4d8e6[_0x39ebb0(0x128)](_0x4e67da[_0x39ebb0(0xf6)],0x0)&&(Base[_0x39ebb0(0x12d)](),Base[_0x39ebb0(0x12d)](_0xe4d8e6[_0x39ebb0(0xbb)](_0x57635a),chalk[_0x39ebb0(0x115)][_0x39ebb0(0xf5)](_0x21b69f)),Base[_0x39ebb0(0x95)](_0x4e67da));});}}}async function run(_0x51c692,_0x4b0017){const _0x534e8a=a28_0x495afd,_0x5c385c={'HBerE':function(_0x2122ca,_0x450363,_0x19bf0f,_0x275d0c){return _0x2122ca(_0x450363,_0x19bf0f,_0x275d0c);},'GnFYH':_0x534e8a(0x13b),'VyzYs':_0x534e8a(0x133),'eciQm':_0x534e8a(0xc6),'CFzwE':'mocha','XKzQk':'--disable-test-observability','kxAvz':'--disable-browserstack-automation','asTZd':function(_0x42e05c,_0x18b993){return _0x42e05c!=_0x18b993;},'ZoZxl':_0x534e8a(0x136),'KIILf':_0x534e8a(0xdd),'jaEsE':_0x534e8a(0x135),'vgdyw':_0x534e8a(0x11c),'kooFu':function(_0x152387,_0x23c8d2){return _0x152387(_0x23c8d2);},'FKPGz':function(_0x158a4a,_0x32989f,_0x4fdf34){return _0x158a4a(_0x32989f,_0x4fdf34);},'WsLVM':_0x534e8a(0x159),'qivwN':_0x534e8a(0x6b),'OfqmO':'Now,\x20showing\x20logs\x20from\x20mocha','nsrgr':function(_0x70ff65,_0x27c708,_0xed55ef,_0x55fd91){return _0x70ff65(_0x27c708,_0xed55ef,_0x55fd91);},'wmpig':function(_0x1ffb9b,_0x3f6e91){return _0x1ffb9b*_0x3f6e91;},'WLWPD':function(_0x1e151c,_0x102d8f){return _0x1e151c(_0x102d8f);},'dNggV':function(_0x4b9902,_0x38a460){return _0x4b9902!==_0x38a460;}};process[_0x534e8a(0x6e)][_0x534e8a(0x84)](_0x5c385c[_0x534e8a(0x146)])&&(process[_0x534e8a(0xa0)][_0x534e8a(0xb1)]=![]);process[_0x534e8a(0x6e)]['includes'](_0x5c385c[_0x534e8a(0x73)])&&(process['env'][_0x534e8a(0xe4)]=![]);const _0x40fd49=new BrowserStackSetup(_0x51c692,_0x5c385c[_0x534e8a(0xbe)]);helper['isBrowserstackInfra']()?(await _0x40fd49['initialize'](),await helper[_0x534e8a(0xb5)](_0x40fd49[_0x534e8a(0x132)])):await _0x40fd49[_0x534e8a(0xbf)]();const _0x4c46bc=[];let _0x177003=[];if(!_0x40fd49['config'])return;_0x5c385c[_0x534e8a(0xb9)](_0x40fd49['config']['testObservability'],null)&&(process[_0x534e8a(0xa0)][_0x534e8a(0x14c)]=_0x40fd49[_0x534e8a(0x132)][_0x534e8a(0xb3)]);!helper[_0x534e8a(0xa9)](_0x40fd49[_0x534e8a(0x132)][_0x534e8a(0x14b)])&&(process['env'][_0x534e8a(0x11e)]=_0x40fd49[_0x534e8a(0x132)][_0x534e8a(0x14b)]);!helper[_0x534e8a(0xa9)](_0x40fd49[_0x534e8a(0x132)][_0x534e8a(0x102)])&&(process[_0x534e8a(0xa0)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x534e8a(0x15f)](_0x40fd49[_0x534e8a(0x132)][_0x534e8a(0x102)]));const {extension:extension=['js',_0x5c385c['ZoZxl'],_0x5c385c[_0x534e8a(0x11d)]],ignore:ignore=[],file:file=[],recursive:recursive=![],sort:sort=![],spec:spec=[_0x5c385c[_0x534e8a(0xd0)]]}=_0x51c692,_0x44ba18={..._0x51c692};_0x44ba18[_0x534e8a(0xca)]=null;const _0x410d74=_0x44ba18;let _0x3dcee5;if(testOpsHelper[_0x534e8a(0x69)]()&&testOpsHelper['shouldReRunObservabilityTests']()){let _0x1a8a5d=process['env']['BROWSERSTACK_RERUN_TESTS'];!helper['isUndefined'](_0x40fd49[_0x534e8a(0x86)])&&_0x40fd49[_0x534e8a(0x86)][_0x534e8a(0x15c)](_0x5c385c[_0x534e8a(0x72)])&&(_0x1a8a5d=_0x40fd49[_0x534e8a(0x86)][_0x534e8a(0x111)](_0x5c385c[_0x534e8a(0x72)])),_0x3dcee5=testOpsHelper[_0x534e8a(0x10a)](_0x1a8a5d);}if(helper[_0x534e8a(0xa9)](_0x3dcee5)){const _0x2cc0d7={};_0x2cc0d7[_0x534e8a(0xef)]=ignore,_0x2cc0d7[_0x534e8a(0x104)]=extension,_0x2cc0d7[_0x534e8a(0xe8)]=file,_0x2cc0d7[_0x534e8a(0xc2)]=recursive,_0x2cc0d7[_0x534e8a(0xa7)]=sort,_0x2cc0d7[_0x534e8a(0x148)]=spec,_0x3dcee5=_0x5c385c[_0x534e8a(0xf1)](collectFiles,_0x2cc0d7),_0x5c385c[_0x534e8a(0xad)](nestedKeyValue,_0x3dcee5,[_0x5c385c['WsLVM']])&&(_0x3dcee5=_0x3dcee5[_0x534e8a(0x159)]);}helper['markSDKSetupComplete']();if(!helper['isBrowserstackInfra']()){const _0x145f33=0x1,_0x76fc04={..._0x410d74};_0x76fc04['spec']=[..._0x3dcee5],_0x4c46bc[_0x534e8a(0x119)]({'mochaOpts':_0x76fc04,'configuration':{'platform':os['platform']()}}),logger[_0x534e8a(0xb6)](_0x5c385c[_0x534e8a(0xe3)]),logger['info'](_0x5c385c['OfqmO']),_0x5c385c[_0x534e8a(0xa4)](parallelTestRun,_0x4c46bc,_0x145f33,_0x40fd49)[_0x534e8a(0xd3)](_0x89bd83=>{const _0xf5a9c9=_0x534e8a;_0x5c385c[_0xf5a9c9(0x117)](printStats,_0x89bd83,_0x51c692[_0xf5a9c9(0x78)],_0x51c692['reporterOptions']||_0x51c692[_0x5c385c[_0xf5a9c9(0x15d)]]);})[_0x534e8a(0xc4)](()=>{const _0x2edef7=_0x534e8a;try{const {browserstackFolderPath:_0x1aa200,tcgConfigPath:_0x3a9177}=helper[_0x2edef7(0xa3)]();fs[_0x2edef7(0x9f)](_0x3a9177),fs[_0x2edef7(0xde)](_0x1aa200);}catch(_0x5a5bd2){logger[_0x2edef7(0x90)](_0x5c385c['VyzYs'],_0x5a5bd2);}try{utilities[_0x2edef7(0xf4)](_0x5c385c[_0x2edef7(0x97)],{},_0x40fd49[_0x2edef7(0x132)],_0x40fd49['framework']);}catch(_0x2627af){logger[_0x2edef7(0x90)](_0x2edef7(0x123)+_0x2627af);}try{helper['notifyUpdate']();}catch(_0x249545){logger[_0x2edef7(0x90)](_0x2edef7(0x15e)+_0x249545);}testOpsHelper[_0x2edef7(0x153)]();});}else{const _0x240629=helper['useW3C'](_0x40fd49[_0x534e8a(0x132)]),_0x193269=helper['getHubUrl'](_0x40fd49[_0x534e8a(0x132)]);_0x177003=helper[_0x534e8a(0xe2)](_0x40fd49[_0x534e8a(0x132)],_0x240629,constants[_0x534e8a(0xe6)][_0x534e8a(0x160)]);let _0x8b176f;const _0xeba953=_0x40fd49[_0x534e8a(0x132)][_0x534e8a(0xea)]||helper[_0x534e8a(0x157)](_0x51c692,_0x4b0017,_0x40fd49[_0x534e8a(0x132)],constants[_0x534e8a(0xe6)]['MOCHA'])||0x1;helper[_0x534e8a(0x11b)](_0x40fd49['config'])?_0x8b176f=_0x5c385c[_0x534e8a(0x12b)](_0x40fd49[_0x534e8a(0x132)][_0x534e8a(0x14f)]['length'],_0xeba953):_0x8b176f=_0xeba953;const _0xdb76ac=_0x5c385c['WLWPD'](getPercyOptions,_0x40fd49['config']);if(_0x5c385c[_0x534e8a(0x140)](_0x40fd49[_0x534e8a(0x132)][_0x534e8a(0xea)],0x1))_0x3dcee5[_0x534e8a(0xc3)](_0x4386d5=>{const _0x5f1cca=_0x534e8a,_0x6ad063=[];_0x177003[_0x5f1cca(0xc3)]((_0x193bb3,_0x211445)=>{const _0x3f440e=_0x5f1cca,_0xc8bb1e={};_0xc8bb1e[_0x3f440e(0x148)]=[_0x4386d5],_0x6ad063[_0x3f440e(0x119)]({'mochaOpts':Object[_0x3f440e(0xc0)]({},_0x410d74,_0xc8bb1e),'configuration':{'server':_0x193269,'capability':_0x193bb3,'proxySettings':_0x40fd49[_0x3f440e(0x132)]['proxySettings'],'platform':helper['getPlatformName'](_0x193bb3),'browserStackLogLevel':_0x40fd49[_0x3f440e(0x132)][_0x3f440e(0x127)],'platformIndex':_0x211445,'browserStackPercyOptions':_0xdb76ac,'platformCaps':_0x40fd49[_0x3f440e(0x132)][_0x3f440e(0x14f)][_0x211445]}});}),_0x4c46bc[_0x5f1cca(0x119)](..._0x6ad063);});else{const _0x322f91=[];_0x177003[_0x534e8a(0xc3)]((_0x2ee446,_0x314ac3)=>{const _0x1665c5=_0x534e8a;let _0x3d2073=Object['assign']({},_0x410d74);testOpsHelper[_0x1665c5(0x69)]()&&testOpsHelper[_0x1665c5(0xf7)]()&&(_0x3d2073={..._0x3d2073,'spec':[..._0x3dcee5]}),_0x322f91[_0x1665c5(0x119)]({'mochaOpts':_0x3d2073,'configuration':{'server':_0x193269,'capability':_0x2ee446,'proxySettings':_0x40fd49[_0x1665c5(0x132)][_0x1665c5(0xfb)],'platform':helper[_0x1665c5(0x139)](_0x2ee446),'browserStackLogLevel':_0x40fd49[_0x1665c5(0x132)][_0x1665c5(0x127)],'platformIndex':_0x314ac3,'browserStackPercyOptions':_0xdb76ac,'platformCaps':_0x40fd49['config'][_0x1665c5(0x14f)][_0x314ac3]}});}),_0x4c46bc['push'](..._0x322f91);}logger[_0x534e8a(0xb6)](_0x534e8a(0x155)+_0x40fd49[_0x534e8a(0x132)][_0x534e8a(0x14f)][_0x534e8a(0xf6)]+_0x534e8a(0x9b)),logger[_0x534e8a(0xb6)](_0x5c385c[_0x534e8a(0x162)]);let _0x1da472;_0x5c385c[_0x534e8a(0x117)](parallelTestRun,_0x4c46bc,_0x8b176f,_0x40fd49)[_0x534e8a(0xd3)](_0x504a9d=>{const _0x5e2188=_0x534e8a;_0x1da472=_0x504a9d,_0x5c385c[_0x5e2188(0x117)](printStats,_0x504a9d,_0x51c692[_0x5e2188(0x78)],_0x51c692['reporterOptions']||_0x51c692[_0x5c385c[_0x5e2188(0x15d)]]);})['finally'](async()=>{const _0x18600c=_0x534e8a;_0x40fd49[_0x18600c(0xbd)]=helper[_0x18600c(0x83)](_0x1da472,_0x5c385c[_0x18600c(0xbe)]),await utilities[_0x18600c(0x87)](_0x40fd49),testOpsHelper[_0x18600c(0x153)]();});}}function a28_0x5843(_0x34e8fc,_0x11ac50){const _0x3bff09=a28_0x3bff();return a28_0x5843=function(_0x584347,_0x1a0058){_0x584347=_0x584347-0x69;let _0x16d6f8=_0x3bff09[_0x584347];return _0x16d6f8;},a28_0x5843(_0x34e8fc,_0x11ac50);}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a29_0x18c7(_0x1c9c04,_0x5f4858){const _0x4f73c1=a29_0x4f73();return a29_0x18c7=function(_0x18c760,_0x21fe57){_0x18c760=_0x18c760-0x84;let _0x540905=_0x4f73c1[_0x18c760];return _0x540905;},a29_0x18c7(_0x1c9c04,_0x5f4858);}function a29_0x4f73(){const _0x1bb1bc=['QckQy','capability','MlDbd','Xowik','../../../bin/utils/constants','ieOptions_','overrideGet','then','mergeDeep','firefoxOptions_','options_','isPacProxy','../../../helpers/globals','proxy_','Builder','session_','../../../helpers/patchHelpers','proxySettings','proxyUrl','ZfBGL','7aWDsAs','__driver','originalBuilder','../../../helpers/helper','Xwyua','sbiJg','1043716EsXbvy','ieOptions','259967wEEiBz','push','QZTCO','vXlqK','2242784UACfUe','send','keys','setCapabilities','Xibbk','rIURy','18996NQsppA','firefoxOptions','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','logLevel','FeoxO','updateHubUrl','build','url_','nApsR','EUFhV','setServer','caps_','getAccessibilityResultsSummary','../../../hubAllocationMethods','chromeOptions','HttpClient','/wd/hub','goog:chromeOptions','SfKpY','optimalHubUrl','getHttpAgent','get','__driversArray','moz:firefoxOptions','YFkOZ','mfTri','overrideExecute','Modifying\x20webdriver\x20builder','1241760VFBQvW','path','__setBrowserOptions','RlzVS','getGlobal','/session','split','edgeOptions_','296992jLdzdK','RNxkx','exports','NIXoo','object','Proxy\x20set\x20to\x20','LGobi','capabilities_','1|0|2|5|3|4','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','requireHttpClient','gaKuA','https://','CAPABILITY_KEY','agent_','debug','newHubUrl','tbeDW','getRequestOptions','browserstackAgentObservability','se:ieOptions','chromeOptions_','storeOptimalHubUrl','867618IwgRAx','Hub\x20url\x20set\x20to\x20','__drivers','LEXvJ','../../../helpers/accessibility-automation/helper','isBrowserstackInfra','BXNmL','error','set','isAccessibilityPlatform','zZCpO','YgWpk','wwmDU','../../../helpers/logger','20IDwzRZ','global','dwNEO','browserStackLogLevel','mveFL','ueRPR','POxCa','setGlobal','safariOptions_'];a29_0x4f73=function(){return _0x1bb1bc;};return a29_0x4f73();}const a29_0x2541c8=a29_0x18c7;(function(_0x599596,_0x5396ee){const _0x18357f=a29_0x18c7,_0x29837e=_0x599596();while(!![]){try{const _0x4d4da6=-parseInt(_0x18357f(0xc4))/0x1+-parseInt(_0x18357f(0xc2))/0x2+parseInt(_0x18357f(0xea))/0x3+parseInt(_0x18357f(0xc8))/0x4+parseInt(_0x18357f(0x9f))/0x5*(parseInt(_0x18357f(0xce))/0x6)+-parseInt(_0x18357f(0xbc))/0x7*(-parseInt(_0x18357f(0xf2))/0x8)+parseInt(_0x18357f(0x91))/0x9;if(_0x4d4da6===_0x5396ee)break;else _0x29837e['push'](_0x29837e['shift']());}catch(_0x2e41b0){_0x29837e['push'](_0x29837e['shift']());}}}(a29_0x4f73,0x52c25));const logger=require(a29_0x2541c8(0x9e))['winstonLogger'],helper=require(a29_0x2541c8(0xbf)),constants=require(a29_0x2541c8(0xac)),hubAllocator=require(a29_0x2541c8(0xdb)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x2541c8(0xb8)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x2541c8(0x95)),globals=require(a29_0x2541c8(0xb4)),modify=(_0x31a25d,_0x12a3f8=null,_0x437afa=![])=>{const _0x50cda8=a29_0x2541c8,_0x719a46={'ZfBGL':function(_0x459a0e,_0x16db8e){return _0x459a0e!==_0x16db8e;},'nApsR':_0x50cda8(0xef),'YgWpk':function(_0x5eb0cd,_0x3634a0){return _0x5eb0cd+_0x3634a0;},'mfTri':function(_0x349c47,_0x53d07a){return _0x349c47+_0x53d07a;},'sbiJg':_0x50cda8(0x86),'LEXvJ':_0x50cda8(0xde),'dwNEO':_0x50cda8(0xdf),'ouDRc':_0x50cda8(0xdc),'ueRPR':'ms:edgeOptions','mveFL':'edgeOptions','rIURy':_0x50cda8(0xe5),'wwmDU':_0x50cda8(0xcf),'vXlqK':'safari.options','Xibbk':_0x50cda8(0x8e),'RlzVS':_0x50cda8(0xc3),'SfKpY':function(_0x19c83f,_0x4928dd){return _0x19c83f===_0x4928dd;},'NIXoo':_0x50cda8(0xf6),'QZTCO':'Setting\x20Browserstack\x20capabilities','MlDbd':_0x50cda8(0xe1),'LGobi':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','RNxkx':function(_0x65eaf6,_0x5647c2,_0xb17702){return _0x65eaf6(_0x5647c2,_0xb17702);},'Xwyua':function(_0x449809,_0x2e5d67){return _0x449809(_0x2e5d67);},'FNvHw':_0x50cda8(0xfa),'MKVps':function(_0x36077e){return _0x36077e();},'YFkOZ':_0x50cda8(0x9a),'FeoxO':function(_0x3fe50a,_0x43020e,_0x4d4435){return _0x3fe50a(_0x43020e,_0x4d4435);},'ifakB':_0x50cda8(0xfb),'gaKuA':function(_0x329129,_0x44126f){return _0x329129(_0x44126f);},'zknPH':function(_0x2cfed5,_0x24a201){return _0x2cfed5!==_0x24a201;},'EUFhV':function(_0x52e289,_0x35b4be){return _0x52e289!==_0x35b4be;},'POxCa':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','QckQy':_0x50cda8(0xe9)},_0x2049e3=helper[_0x50cda8(0x84)]();let _0xfc3617;try{_0xfc3617=helper['requireSeleniumWebdriver'](),_0xfc3617[_0x50cda8(0xbe)]&&(_0xfc3617[_0x50cda8(0xb6)]=_0xfc3617[_0x50cda8(0xbe)]);}catch(_0x53e1d5){return;}if(helper[_0x50cda8(0x96)]()){const _0xb66cd2={};_0xb66cd2[_0x50cda8(0xd1)]=_0x31a25d[_0x50cda8(0xa2)],helper['setLogLevel'](_0xb66cd2,new Map(),new Map()),logger['info'](_0x719a46[_0x50cda8(0xa5)]),logger[_0x50cda8(0x89)](_0x719a46[_0x50cda8(0xa8)]);}class _0x7140bf extends _0x2049e3[_0x50cda8(0xdd)]{[_0x50cda8(0xc9)](_0x2e193d){const _0x5bf0ce=_0x50cda8;if(_0x719a46['ZfBGL'](_0x2e193d[_0x5bf0ce(0xeb)],_0x719a46[_0x5bf0ce(0xd6)])&&_0x719a46[_0x5bf0ce(0xbb)](global[_0x5bf0ce(0x8a)],''))try{global[_0x5bf0ce(0x8a)]=_0x719a46[_0x5bf0ce(0x9c)](_0x719a46[_0x5bf0ce(0xe7)](_0x719a46[_0x5bf0ce(0xc1)],global[_0x5bf0ce(0x8a)]),_0x719a46[_0x5bf0ce(0x94)]),this[_0x5bf0ce(0xb2)]=hubAllocator[_0x5bf0ce(0x8c)](global['newHubUrl']),logger[_0x5bf0ce(0x89)]('New\x20hub\x20url\x20set\x20to\x20'+global[_0x5bf0ce(0x8a)]),global[_0x5bf0ce(0x8a)]='';}catch(_0x375603){logger[_0x5bf0ce(0x98)](_0x375603);}return super['send'](_0x2e193d);}}class _0x2327ef extends _0xfc3617[_0x50cda8(0xb6)]{[_0x50cda8(0xd8)](){const _0x16cb3e=_0x50cda8;return this[_0x16cb3e(0xd5)]=helper['getHubUrl'](_0x31a25d),logger[_0x16cb3e(0x89)](_0x16cb3e(0x92)+this['url_']),this;}[_0x50cda8(0xec)](_0x317a60){const _0x35a184=_0x50cda8;let _0x1dc8f2={};for(const _0x3a860d in _0x317a60){switch(_0x3a860d){case _0x719a46[_0x35a184(0xa1)]:case _0x719a46['ouDRc']:this[_0x35a184(0x8f)]&&(_0x1dc8f2=this[_0x35a184(0x8f)]['get'](this[_0x35a184(0x8f)][_0x35a184(0x87)])||{},this[_0x35a184(0x8f)][_0x35a184(0x99)](this[_0x35a184(0x8f)][_0x35a184(0x87)],helper[_0x35a184(0xb0)](_0x1dc8f2,_0x317a60[_0x3a860d])));break;case _0x719a46[_0x35a184(0xa4)]:case _0x719a46[_0x35a184(0xa3)]:this[_0x35a184(0xf1)]&&(_0x1dc8f2=this[_0x35a184(0xf1)]['get'](this[_0x35a184(0xf1)][_0x35a184(0x87)])||{},this[_0x35a184(0xf1)]['set'](this[_0x35a184(0xf1)][_0x35a184(0x87)],helper[_0x35a184(0xb0)](_0x1dc8f2,_0x317a60[_0x3a860d])));break;case _0x719a46[_0x35a184(0xcd)]:case _0x719a46[_0x35a184(0x9d)]:this[_0x35a184(0xb1)]&&(_0x1dc8f2=this[_0x35a184(0xb1)][_0x35a184(0xe3)](this[_0x35a184(0xb1)][_0x35a184(0x87)])||{},this[_0x35a184(0xb1)][_0x35a184(0x99)](this['firefoxOptions_']['CAPABILITY_KEY'],helper[_0x35a184(0xb0)](_0x1dc8f2,_0x317a60[_0x3a860d])));break;case _0x719a46[_0x35a184(0xc7)]:this[_0x35a184(0xa7)]&&(_0x1dc8f2=this['safariOptions_'][_0x35a184(0xe3)](this[_0x35a184(0xa7)][_0x35a184(0x87)])||{},this['safariOptions_'][_0x35a184(0x99)](this[_0x35a184(0xa7)][_0x35a184(0x87)],helper['mergeDeep'](_0x1dc8f2,_0x317a60[_0x3a860d])));break;case _0x719a46[_0x35a184(0xcc)]:case _0x719a46[_0x35a184(0xed)]:this[_0x35a184(0xad)]&&(_0x1dc8f2=this[_0x35a184(0xad)][_0x35a184(0xe3)](this['ieOptions_'][_0x35a184(0x87)])||{},this[_0x35a184(0xad)][_0x35a184(0x99)](this[_0x35a184(0xad)]['CAPABILITY_KEY'],helper[_0x35a184(0xb0)](_0x1dc8f2,_0x317a60[_0x3a860d])));break;}}}[_0x50cda8(0xcb)](){const _0x50c841=_0x50cda8;return logger[_0x50c841(0x89)](_0x719a46[_0x50c841(0xc6)]),this['__setBrowserOptions'](_0x31a25d[_0x50c841(0xa9)]),Object[_0x50c841(0xca)](_0x31a25d[_0x50c841(0xa9)])['forEach'](_0x461744=>{const _0x148e0b=_0x50c841,_0x1642c3=this[_0x148e0b(0xf9)]['get'](_0x461744);_0x719a46[_0x148e0b(0xe0)](typeof _0x1642c3,_0x719a46[_0x148e0b(0xf5)])?this[_0x148e0b(0xf9)][_0x148e0b(0x99)](_0x461744,helper[_0x148e0b(0xb0)](_0x1642c3,_0x31a25d[_0x148e0b(0xa9)][_0x461744])):this[_0x148e0b(0xf9)][_0x148e0b(0x99)](_0x461744,_0x31a25d[_0x148e0b(0xa9)][_0x461744]);}),this;}['build'](){const _0x4544e7=_0x50cda8,_0x2a65c9={'BXNmL':function(_0x3eb510,_0x3174c5,_0x448515){const _0x5d8805=a29_0x18c7;return _0x719a46[_0x5d8805(0xf3)](_0x3eb510,_0x3174c5,_0x448515);},'zZCpO':function(_0x55109f,_0x3b15c9,_0x2c9aee){const _0x49c023=a29_0x18c7;return _0x719a46[_0x49c023(0xf3)](_0x55109f,_0x3b15c9,_0x2c9aee);},'tbeDW':function(_0x261d9d,_0x26151){const _0x453ba0=a29_0x18c7;return _0x719a46[_0x453ba0(0xc0)](_0x261d9d,_0x26151);}};if(helper[_0x4544e7(0x96)]()){const _0x2e0e6f=_0x719a46['FNvHw'][_0x4544e7(0xf0)]('|');let _0x3641a4=0x0;while(!![]){switch(_0x2e0e6f[_0x3641a4++]){case'0':this['setServer']();continue;case'1':_0x719a46['MKVps'](isAccessibilityAutomationSession)&&_0x719a46[_0x4544e7(0xc0)](setAccessibilityCapabilities,_0x31a25d);continue;case'2':this[_0x4544e7(0xcb)]();continue;case'3':globals[_0x4544e7(0xee)](_0x719a46['YFkOZ'])&&(!_0x719a46[_0x4544e7(0xd2)](setExtension,this,_0x31a25d)&&globals[_0x4544e7(0xa6)](_0x719a46[_0x4544e7(0xe6)],![]));continue;case'4':logger[_0x4544e7(0x89)](_0x719a46['ifakB']);continue;case'5':if(helper[_0x4544e7(0xb3)](_0x31a25d[_0x4544e7(0xb9)]['proxyUrl']))this[_0x4544e7(0x88)]=helper[_0x4544e7(0xe2)](_0x31a25d[_0x4544e7(0xb9)][_0x4544e7(0xba)]);else _0x31a25d['proxySettings'][_0x4544e7(0xba)]&&(this[_0x4544e7(0xb5)]=_0x31a25d[_0x4544e7(0xb9)][_0x4544e7(0xba)],logger[_0x4544e7(0x89)](_0x4544e7(0xf7)+this['proxy_']));continue;}break;}}const _0x436daf=super[_0x4544e7(0xd4)]();return _0x436daf[_0x4544e7(0xb7)][_0x4544e7(0xaf)](_0x429b27=>{const _0x40087a=_0x4544e7;try{const _0x191421=_0x429b27[_0x40087a(0xd9)][_0x40087a(0xe3)](_0x719a46[_0x40087a(0xaa)]);_0x191421?(logger[_0x40087a(0x89)](_0x40087a(0xd0)+_0x191421),hubAllocator[_0x40087a(0xd3)](_0x191421),helper[_0x40087a(0x90)](_0x191421)):logger['debug'](_0x719a46[_0x40087a(0xf8)]);}catch(_0x1faa2a){logger[_0x40087a(0x89)]('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x1faa2a);}}),_0x436daf['quitCount_']=0x0,_0x436daf[_0x4544e7(0xaf)]&&_0x436daf[_0x4544e7(0xaf)](_0x1c07a9=>{const _0x557460=_0x4544e7,_0x3e890a={'Xowik':function(_0x1773d9,_0xc0e0af,_0x1944a5){const _0x99021d=a29_0x18c7;return _0x2a65c9[_0x99021d(0x97)](_0x1773d9,_0xc0e0af,_0x1944a5);}};_0x2a65c9[_0x557460(0x9b)](overrideQuit,_0x1c07a9,_0x436daf),_0x2a65c9[_0x557460(0x8b)](overrideTakeScreenshot,_0x1c07a9),helper[_0x557460(0xae)](_0x1c07a9,_0x31a25d),helper[_0x557460(0xe8)](_0x1c07a9,_0x31a25d),_0x1c07a9['getAccessibilityResultsSummary']=async()=>{const _0xe4487b=_0x557460;return await _0x3e890a[_0xe4487b(0xab)](getAccessibilityResultsSummary,_0x1c07a9,global);},_0x1c07a9['getAccessibilityResults']=async()=>{const _0x4ddd32=_0x557460;return await _0x3e890a[_0x4ddd32(0xab)](getAccessibilityResults,_0x1c07a9,global);};}),_0x436daf[_0x4544e7(0xda)]=async()=>{const _0x3d6601=_0x4544e7;return await _0x2a65c9[_0x3d6601(0x97)](getAccessibilityResultsSummary,_0x436daf,global);},_0x436daf['getAccessibilityResults']=async()=>{const _0x313444=_0x4544e7;return await _0x2a65c9[_0x313444(0x9b)](getAccessibilityResults,_0x436daf,global);},_0x719a46[_0x4544e7(0xc0)](overrideTakeScreenshot,_0x436daf),_0x719a46[_0x4544e7(0x85)](overrideQuit,_0x436daf),helper['overrideGet'](_0x436daf,_0x31a25d),helper[_0x4544e7(0xe8)](_0x436daf,_0x31a25d),helper['isUndefined'](global[_0x4544e7(0xe4)])&&(global[_0x4544e7(0xe4)]=[]),helper['isUndefined'](global[_0x4544e7(0x93)])&&(global[_0x4544e7(0x93)]=[]),global[_0x4544e7(0xe4)][_0x4544e7(0xc5)](_0x436daf),global[_0x4544e7(0xbd)]=_0x436daf,_0x719a46['zknPH'](global['__drivers'],undefined)&&global['__drivers'][_0x4544e7(0xc5)](_0x436daf),_0x12a3f8&&helper['isUndefined'](_0x12a3f8['global']['__driversArray'])&&(_0x12a3f8[_0x4544e7(0xa0)][_0x4544e7(0xe4)]=[]),_0x12a3f8&&_0x719a46[_0x4544e7(0xd7)](_0x12a3f8[_0x4544e7(0xa0)][_0x4544e7(0x93)],undefined)&&(_0x12a3f8['global'][_0x4544e7(0x93)][_0x4544e7(0xc5)](_0x436daf),_0x12a3f8[_0x4544e7(0xa0)]['__driversArray']['push'](_0x436daf)),_0x436daf;}}return _0xfc3617['originalBuilder']=_0xfc3617[_0x50cda8(0xb6)],_0xfc3617[_0x50cda8(0xb6)]=_0x2327ef,_0x2049e3[_0x50cda8(0xdd)]=_0x7140bf,_0xfc3617;};module[a29_0x2541c8(0xf4)][a29_0x2541c8(0x8d)]=modify;
|
|
1
|
+
const a29_0x30d60f=a29_0x2320;(function(_0x246e8d,_0x43d666){const _0x53fd44=a29_0x2320,_0x5bbacc=_0x246e8d();while(!![]){try{const _0x4cc779=parseInt(_0x53fd44(0xe7))/0x1+parseInt(_0x53fd44(0xa8))/0x2*(parseInt(_0x53fd44(0xc4))/0x3)+-parseInt(_0x53fd44(0x8c))/0x4+parseInt(_0x53fd44(0x9b))/0x5+-parseInt(_0x53fd44(0x100))/0x6*(parseInt(_0x53fd44(0x8f))/0x7)+parseInt(_0x53fd44(0xff))/0x8+-parseInt(_0x53fd44(0x95))/0x9;if(_0x4cc779===_0x43d666)break;else _0x5bbacc['push'](_0x5bbacc['shift']());}catch(_0x4a3e0e){_0x5bbacc['push'](_0x5bbacc['shift']());}}}(a29_0x2d3e,0x562d4));const logger=require(a29_0x30d60f(0xa0))[a29_0x30d60f(0xf9)],helper=require(a29_0x30d60f(0xcd)),constants=require(a29_0x30d60f(0x101)),hubAllocator=require(a29_0x30d60f(0xad)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x30d60f(0xa1)),{setAccessibilityCapabilities,setExtension}=require(a29_0x30d60f(0xf3)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x30d60f(0xb4)),globals=require(a29_0x30d60f(0x94)),modify=(_0x283ef3,_0x3a5982=null,_0x1b56b6=![])=>{const _0x577a74=a29_0x30d60f,_0x415f8b={'MalBE':function(_0x4ba014,_0x1b9fff){return _0x4ba014!==_0x1b9fff;},'TZyfJ':_0x577a74(0x105),'lRJvZ':function(_0x4560d7,_0x3e869b){return _0x4560d7+_0x3e869b;},'aZPez':'https://','PIwhR':_0x577a74(0x107),'eltbr':'goog:chromeOptions','AMkdL':_0x577a74(0xf1),'lIXmb':_0x577a74(0xc8),'jPqFi':_0x577a74(0x90),'AFYeR':_0x577a74(0x104),'pvZMF':_0x577a74(0xe5),'aCThp':'safari.options','eEZJY':_0x577a74(0xd0),'nYDWw':_0x577a74(0xc9),'MqUJR':function(_0xb1d2cc,_0x4d0996){return _0xb1d2cc===_0x4d0996;},'hTwoa':_0x577a74(0xae),'pzpwQ':_0x577a74(0xd7),'SFRfa':function(_0xd0523c,_0x35142a,_0x39afe4){return _0xd0523c(_0x35142a,_0x39afe4);},'TOLBF':function(_0x4728e5,_0x5485da,_0x3587d8){return _0x4728e5(_0x5485da,_0x3587d8);},'nDLGm':function(_0x55c4e9,_0x658ec7){return _0x55c4e9(_0x658ec7);},'hDbnM':function(_0xb7457f,_0x18aed0,_0x4cad10){return _0xb7457f(_0x18aed0,_0x4cad10);},'bDIXn':_0x577a74(0xb5),'cTffQ':_0x577a74(0xcf),'iRAYP':function(_0x473701,_0x15e85f,_0x54b2cb){return _0x473701(_0x15e85f,_0x54b2cb);},'kDgpQ':function(_0x517c2e,_0x3eea62,_0x4d9670){return _0x517c2e(_0x3eea62,_0x4d9670);},'cVVON':_0x577a74(0xc3),'uhbyC':function(_0xb3b677){return _0xb3b677();},'VzGzw':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','hbnQv':_0x577a74(0xac),'bZYDs':function(_0x4b4e11,_0x43f95d){return _0x4b4e11(_0x43f95d);},'PJFGE':function(_0x432e51,_0x51bc10){return _0x432e51!==_0x51bc10;},'znzCP':_0x577a74(0xfc),'NFEmv':_0x577a74(0xb3)},_0x5a045b=helper[_0x577a74(0xe9)]();let _0x3215d1;try{_0x3215d1=helper['requireSeleniumWebdriver'](),_0x3215d1['originalBuilder']&&(_0x3215d1[_0x577a74(0xe1)]=_0x3215d1[_0x577a74(0xbe)]);}catch(_0x10fa59){return;}if(helper[_0x577a74(0xa6)]()){const _0x4ba8da={};_0x4ba8da[_0x577a74(0xbc)]=_0x283ef3[_0x577a74(0xef)],helper[_0x577a74(0xce)](_0x4ba8da,new Map(),new Map()),logger['info'](_0x415f8b['znzCP']),logger['debug'](_0x415f8b[_0x577a74(0xdb)]);}class _0x4b51e2 extends _0x5a045b[_0x577a74(0xfa)]{[_0x577a74(0xed)](_0x4f77f9){const _0x54da60=_0x577a74;if(_0x415f8b[_0x54da60(0xa5)](_0x4f77f9['path'],_0x415f8b[_0x54da60(0x9d)])&&_0x415f8b[_0x54da60(0xa5)](global[_0x54da60(0xee)],''))try{global[_0x54da60(0xee)]=_0x415f8b[_0x54da60(0xcb)](_0x415f8b['lRJvZ'](_0x415f8b['aZPez'],global[_0x54da60(0xee)]),_0x415f8b[_0x54da60(0xc7)]),this[_0x54da60(0xca)]=hubAllocator[_0x54da60(0x9c)](global[_0x54da60(0xee)]),logger[_0x54da60(0xde)](_0x54da60(0xba)+global[_0x54da60(0xee)]),global[_0x54da60(0xee)]='';}catch(_0x35a5ef){logger['error'](_0x35a5ef);}return super[_0x54da60(0xed)](_0x4f77f9);}}class _0x567409 extends _0x3215d1['Builder']{['setServer'](){const _0x318406=_0x577a74;return this[_0x318406(0xb1)]=helper[_0x318406(0xd2)](_0x283ef3),logger[_0x318406(0xde)](_0x318406(0x91)+this['url_']),this;}[_0x577a74(0x9a)](_0x41634f){const _0x2ea27a=_0x577a74;let _0x4c5f05={};for(const _0x5b6b00 in _0x41634f){switch(_0x5b6b00){case _0x415f8b[_0x2ea27a(0xdf)]:case _0x415f8b['AMkdL']:this['chromeOptions_']&&(_0x4c5f05=this[_0x2ea27a(0xd8)][_0x2ea27a(0xd9)](this['chromeOptions_'][_0x2ea27a(0x98)])||{},this[_0x2ea27a(0xd8)][_0x2ea27a(0x99)](this[_0x2ea27a(0xd8)][_0x2ea27a(0x98)],helper['mergeDeep'](_0x4c5f05,_0x41634f[_0x5b6b00])));break;case _0x415f8b[_0x2ea27a(0xb8)]:case _0x415f8b[_0x2ea27a(0xda)]:this['edgeOptions_']&&(_0x4c5f05=this[_0x2ea27a(0xd4)][_0x2ea27a(0xd9)](this[_0x2ea27a(0xd4)]['CAPABILITY_KEY'])||{},this[_0x2ea27a(0xd4)][_0x2ea27a(0x99)](this['edgeOptions_'][_0x2ea27a(0x98)],helper[_0x2ea27a(0xa2)](_0x4c5f05,_0x41634f[_0x5b6b00])));break;case _0x415f8b[_0x2ea27a(0xf8)]:case _0x415f8b[_0x2ea27a(0xb7)]:this[_0x2ea27a(0xa7)]&&(_0x4c5f05=this[_0x2ea27a(0xa7)][_0x2ea27a(0xd9)](this[_0x2ea27a(0xa7)][_0x2ea27a(0x98)])||{},this['firefoxOptions_'][_0x2ea27a(0x99)](this[_0x2ea27a(0xa7)][_0x2ea27a(0x98)],helper[_0x2ea27a(0xa2)](_0x4c5f05,_0x41634f[_0x5b6b00])));break;case _0x415f8b[_0x2ea27a(0xe4)]:this[_0x2ea27a(0xbb)]&&(_0x4c5f05=this[_0x2ea27a(0xbb)][_0x2ea27a(0xd9)](this[_0x2ea27a(0xbb)][_0x2ea27a(0x98)])||{},this[_0x2ea27a(0xbb)][_0x2ea27a(0x99)](this[_0x2ea27a(0xbb)][_0x2ea27a(0x98)],helper[_0x2ea27a(0xa2)](_0x4c5f05,_0x41634f[_0x5b6b00])));break;case _0x415f8b[_0x2ea27a(0xe6)]:case _0x415f8b[_0x2ea27a(0x8d)]:this[_0x2ea27a(0xfb)]&&(_0x4c5f05=this[_0x2ea27a(0xfb)][_0x2ea27a(0xd9)](this[_0x2ea27a(0xfb)][_0x2ea27a(0x98)])||{},this[_0x2ea27a(0xfb)][_0x2ea27a(0x99)](this[_0x2ea27a(0xfb)]['CAPABILITY_KEY'],helper[_0x2ea27a(0xa2)](_0x4c5f05,_0x41634f[_0x5b6b00])));break;}}}['setCapabilities'](){const _0x309a8d=_0x577a74;return logger[_0x309a8d(0xde)](_0x415f8b['pzpwQ']),this[_0x309a8d(0x9a)](_0x283ef3['capability']),Object[_0x309a8d(0xf5)](_0x283ef3[_0x309a8d(0x103)])[_0x309a8d(0xfd)](_0x14bc8c=>{const _0x40ebae=_0x309a8d,_0x7f83c7=this[_0x40ebae(0xd5)]['get'](_0x14bc8c);_0x415f8b[_0x40ebae(0xe2)](typeof _0x7f83c7,_0x415f8b[_0x40ebae(0xb6)])?this['capabilities_'][_0x40ebae(0x99)](_0x14bc8c,helper[_0x40ebae(0xa2)](_0x7f83c7,_0x283ef3[_0x40ebae(0x103)][_0x14bc8c])):this[_0x40ebae(0xd5)][_0x40ebae(0x99)](_0x14bc8c,_0x283ef3[_0x40ebae(0x103)][_0x14bc8c]);}),this;}[_0x577a74(0xeb)](){const _0x4cdd1a=_0x577a74,_0x42c648={'rsrZZ':_0x415f8b[_0x4cdd1a(0x102)],'sDsvQ':_0x415f8b[_0x4cdd1a(0xcc)],'syWsG':function(_0x444e43,_0x247de5,_0x1a9a23){const _0xd28722=_0x4cdd1a;return _0x415f8b[_0xd28722(0xc6)](_0x444e43,_0x247de5,_0x1a9a23);},'ORyHr':function(_0xe23fbe,_0x5f2d20,_0x3b9e4a){const _0x24150b=_0x4cdd1a;return _0x415f8b[_0x24150b(0xd6)](_0xe23fbe,_0x5f2d20,_0x3b9e4a);}};if(helper['isBrowserstackInfra']()){const _0x37801d=_0x415f8b[_0x4cdd1a(0xe3)][_0x4cdd1a(0xaf)]('|');let _0x3de73f=0x0;while(!![]){switch(_0x37801d[_0x3de73f++]){case'0':this[_0x4cdd1a(0xd3)]();continue;case'1':this['setServer']();continue;case'2':_0x415f8b['uhbyC'](isAccessibilityAutomationSession)&&_0x415f8b[_0x4cdd1a(0xf4)](setAccessibilityCapabilities,_0x283ef3);continue;case'3':logger[_0x4cdd1a(0xde)](_0x415f8b[_0x4cdd1a(0xaa)]);continue;case'4':globals[_0x4cdd1a(0xa3)](_0x415f8b[_0x4cdd1a(0xea)])&&(!_0x415f8b[_0x4cdd1a(0xa9)](setExtension,this,_0x283ef3)&&globals[_0x4cdd1a(0xd1)](_0x415f8b['hbnQv'],![]));continue;case'5':if(helper[_0x4cdd1a(0xec)](_0x283ef3['proxySettings'][_0x4cdd1a(0x106)]))this[_0x4cdd1a(0x93)]=helper[_0x4cdd1a(0xc2)](_0x283ef3[_0x4cdd1a(0x96)][_0x4cdd1a(0x106)]);else _0x283ef3['proxySettings'][_0x4cdd1a(0x106)]&&(this[_0x4cdd1a(0xb9)]=_0x283ef3[_0x4cdd1a(0x96)]['proxyUrl'],logger[_0x4cdd1a(0xde)](_0x4cdd1a(0xab)+this['proxy_']));continue;}break;}}const _0x16825b=super[_0x4cdd1a(0xeb)]();return _0x16825b[_0x4cdd1a(0x9f)][_0x4cdd1a(0xc1)](_0x326c45=>{const _0x56dabf=_0x4cdd1a;try{const _0x1e9cff=_0x326c45['caps_'][_0x56dabf(0xd9)](_0x42c648[_0x56dabf(0xbf)]);_0x1e9cff?(logger[_0x56dabf(0xde)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x1e9cff),hubAllocator['updateHubUrl'](_0x1e9cff),helper[_0x56dabf(0xc0)](_0x1e9cff)):logger[_0x56dabf(0xde)](_0x42c648['sDsvQ']);}catch(_0x165aa3){logger['debug'](_0x56dabf(0xf0)+_0x165aa3);}}),_0x16825b[_0x4cdd1a(0xf6)]=0x0,_0x16825b['then']&&_0x16825b[_0x4cdd1a(0xc1)](_0x47dd6b=>{const _0x1f59a7=_0x4cdd1a,_0x31c7cd={'HRXxP':function(_0x3107df,_0x12b751,_0x7bcce2){const _0x2612ac=a29_0x2320;return _0x415f8b[_0x2612ac(0xdd)](_0x3107df,_0x12b751,_0x7bcce2);}};_0x415f8b[_0x1f59a7(0xbd)](overrideQuit,_0x47dd6b,_0x16825b),_0x415f8b['nDLGm'](overrideTakeScreenshot,_0x47dd6b),helper[_0x1f59a7(0xe8)](_0x47dd6b,_0x283ef3),helper[_0x1f59a7(0xfe)](_0x47dd6b,_0x283ef3),_0x47dd6b[_0x1f59a7(0xb2)]=async()=>{return await _0x31c7cd['HRXxP'](getAccessibilityResultsSummary,_0x47dd6b,global);},_0x47dd6b[_0x1f59a7(0x92)]=async()=>{const _0x52845b=_0x1f59a7;return await _0x42c648[_0x52845b(0xf7)](getAccessibilityResults,_0x47dd6b,global);};}),_0x16825b[_0x4cdd1a(0xb2)]=async()=>{const _0x53f823=_0x4cdd1a;return await _0x42c648[_0x53f823(0xa4)](getAccessibilityResultsSummary,_0x16825b,global);},_0x16825b[_0x4cdd1a(0x92)]=async()=>{const _0x31aeda=_0x4cdd1a;return await _0x415f8b[_0x31aeda(0xa9)](getAccessibilityResults,_0x16825b,global);},_0x415f8b['bZYDs'](overrideTakeScreenshot,_0x16825b),_0x415f8b[_0x4cdd1a(0x97)](overrideQuit,_0x16825b),helper[_0x4cdd1a(0xe8)](_0x16825b,_0x283ef3),helper[_0x4cdd1a(0xfe)](_0x16825b,_0x283ef3),helper[_0x4cdd1a(0x9e)](global[_0x4cdd1a(0xf2)])&&(global[_0x4cdd1a(0xf2)]=[]),helper[_0x4cdd1a(0x9e)](global[_0x4cdd1a(0xb0)])&&(global[_0x4cdd1a(0xb0)]=[]),global[_0x4cdd1a(0xf2)][_0x4cdd1a(0xc5)](_0x16825b),global[_0x4cdd1a(0x8e)]=_0x16825b,_0x415f8b[_0x4cdd1a(0xa5)](global[_0x4cdd1a(0xb0)],undefined)&&global[_0x4cdd1a(0xb0)][_0x4cdd1a(0xc5)](_0x16825b),_0x3a5982&&helper[_0x4cdd1a(0x9e)](_0x3a5982['global'][_0x4cdd1a(0xf2)])&&(_0x3a5982['global']['__driversArray']=[]),_0x3a5982&&_0x415f8b[_0x4cdd1a(0xe0)](_0x3a5982[_0x4cdd1a(0xdc)][_0x4cdd1a(0xb0)],undefined)&&(_0x3a5982[_0x4cdd1a(0xdc)][_0x4cdd1a(0xb0)][_0x4cdd1a(0xc5)](_0x16825b),_0x3a5982[_0x4cdd1a(0xdc)][_0x4cdd1a(0xf2)][_0x4cdd1a(0xc5)](_0x16825b)),_0x16825b;}}return _0x3215d1[_0x577a74(0xbe)]=_0x3215d1['Builder'],_0x3215d1[_0x577a74(0xe1)]=_0x567409,_0x5a045b['HttpClient']=_0x4b51e2,_0x3215d1;};function a29_0x2d3e(){const _0x5db2b9=['get','jPqFi','NFEmv','global','SFRfa','debug','eltbr','PJFGE','Builder','MqUJR','cVVON','aCThp','firefoxOptions','eEZJY','475707DAKmlc','overrideGet','requireHttpClient','hbnQv','build','isPacProxy','send','newHubUrl','browserStackLogLevel','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','chromeOptions','__driversArray','../accessibility-automation/helper','nDLGm','keys','quitCount_','syWsG','AFYeR','winstonLogger','HttpClient','ieOptions_','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','forEach','overrideExecute','2546384oFBrMT','6eYteiv','../../../bin/utils/constants','bDIXn','capability','moz:firefoxOptions','/session','proxyUrl','/wd/hub','339316ZNTzsn','nYDWw','__driver','1820259nuXUOK','edgeOptions','Hub\x20url\x20set\x20to\x20','getAccessibilityResults','agent_','../../../helpers/globals','6283530jGBswH','proxySettings','bZYDs','CAPABILITY_KEY','set','__setBrowserOptions','1635670MDPqPT','getRequestOptions','TZyfJ','isUndefined','session_','../../../helpers/logger','../../../helpers/patchHelpers','mergeDeep','getGlobal','ORyHr','MalBE','isBrowserstackInfra','firefoxOptions_','549754XVpZqO','hDbnM','VzGzw','Proxy\x20set\x20to\x20','isAccessibilityPlatform','../../../hubAllocationMethods','object','split','__drivers','url_','getAccessibilityResultsSummary','Modifying\x20webdriver\x20builder','../../../helpers/accessibility-automation/helper','optimalHubUrl','hTwoa','pvZMF','lIXmb','proxy_','New\x20hub\x20url\x20set\x20to\x20','safariOptions_','logLevel','TOLBF','originalBuilder','rsrZZ','storeOptimalHubUrl','then','getHttpAgent','2|1|0|5|4|3','3pWUOyA','push','iRAYP','PIwhR','ms:edgeOptions','ieOptions','options_','lRJvZ','cTffQ','../../../helpers/helper','setLogLevel','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','se:ieOptions','setGlobal','getHubUrl','setCapabilities','edgeOptions_','capabilities_','kDgpQ','Setting\x20Browserstack\x20capabilities','chromeOptions_'];a29_0x2d3e=function(){return _0x5db2b9;};return a29_0x2d3e();}function a29_0x2320(_0x34dc26,_0x1f41ca){const _0x2d3e70=a29_0x2d3e();return a29_0x2320=function(_0x232088,_0x28fffc){_0x232088=_0x232088-0x8c;let _0x13ebda=_0x2d3e70[_0x232088];return _0x13ebda;},a29_0x2320(_0x34dc26,_0x1f41ca);}module['exports']['browserstackAgentObservability']=modify;
|