browserstack-node-sdk 1.34.1 → 1.34.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/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 -0
- package/src/ai-sdk-node/extensions/chrome_extension.crx +0 -0
- 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 -0
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -0
- 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 -0
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a40_0x5e9a(){const _0x2bb33b=['event_type','failed','1682wESnPB','startMonitoring','finishedAt','attachments','startsWith','790332dmMZSS','tuQax','Error\x20in\x20calculating\x20performance:\x20','errors','setStepIdentifier','getInstance','pROcK','UUvqO','XTBux','status','logs','TestRunFinished','SdswJ','depth','addTestUIDAndReportLog','Test\x20Finished\x20with\x20unique\x20id\x20','IFANe','test_run_uuid','RQZfX','onBegin','getTestUUID','JclIs','4307897NTYbwq','startTime','tFXEw','sPCbs','sendSessionDetails','lAqkW','1467xEsgMM','1251630sFKmSj','ldJTn','beforeEach\x20hook','zlOfq','RSpYx','endSession','hook','LogCreated','ISHKQ','Nlunq','CxJCZ','PBPqM','../../../helpers/helper','zsqQp','backtrace','23093azUVDI','TvRdX','YrPFE','CgLSe','object','getStepIdentifier','lSjtX','YKJjU','javascript','MyReporter','255hJVNLc','expectedStatus','START_TIME','NYfMn','UMMsQ','getStepsAndLogs','needToReportStep','dAMKM','sendHookRunEvent','gxkPg','meta','lJwat','error','beforeAll\x20hook','_testHooksMap','ouXWZ','PLAYWRIGHT','../../../helpers/testhub/utils','root','BROWSERSTACK_LOG_LEVEL','message','cMrLq','malIP','TEST_SCREENSHOT','file','\x20is\x20triggered','UpVGR','NzwMP','category','relative','test_run','pending','nJNHV','toISOString','steps','ycqXi','TEST_STEP','uuid','./test-details','expanded','existsSync','readFileSync','_gitConfigured','TygNb','failure','BEFORE_EACH','fVYWw','env','TOMEV','57066ACZBqP','statSync','setup','HNEpb','ylfJz','util','sendTestRunEvent','jtlbj','xlWvF','getHookType','onStepEnd','_tests','EgmbN','path','duration','638618Mkaayu','afterAll\x20hook','parent','../../../helpers/testhub/testhubHandler','owSGP','lxqkq','BEFORE_ALL','Frdlx','_gitConfigPath','KCKKp','base64','BROWSERSTACK_O11Y_PERF_MEASUREMENT','60rxSUqI','CBTSessionCreated','join','klXBO','AbUvE','ldoaG','onTestBegin','stack','AGwvi','jrfsJ','eqsFr','getTestIdentifier','performance-report-reporter.json','htvsH','_projectId','Sending\x20session\x20details\x20for\x20','XqnLZ','reverse','shutdown','toString','length','screenshot','hSqSw','1|2|4|5|0|6|3','BDhuj','LNfeY','KhAgH','reportLogs','exports','ehSeo','cwd','failure_reason','PPonj','xWpkV','FwVWm','Inxyk','quouP','printsToStdio','getScope','hook_run','getHierarchy','getTestRunIdentifier','IxazO','getTime','test','KrhvJ','mZvaj','afterEach\x20hook','push','RqrbH','yTynG','After\x20Hooks','onEnd','retry','jDcVe','\x20is\x20triggered\x20for\x20test\x20','NzLUE','ACMVv','\x20for\x20','passed','onTestEnd','20fahLVC','Expected\x20to\x20fail,\x20but\x20passed.','FzxlH','BKaxD','err','zVEEd','\x20-\x20','../../../helpers/test-observability/error-handler','uploadEventData','../../../helpers/test-observability/constants','1208jQSQbc','startedAt','hook_run_uuid','location','emDgQ','result','BWWFY','title','zGuCn','_bs_hookIdentifier'];a40_0x5e9a=function(){return _0x2bb33b;};return a40_0x5e9a();}const a40_0x83bff6=a40_0x116d;(function(_0x5c4aac,_0x428c74){const _0x497dc9=a40_0x116d,_0x18acda=_0x5c4aac();while(!![]){try{const _0x1b0b5e=-parseInt(_0x497dc9(0x182))/0x1+parseInt(_0x497dc9(0x1e1))/0x2*(-parseInt(_0x497dc9(0x202))/0x3)+-parseInt(_0x497dc9(0x1e6))/0x4+parseInt(_0x497dc9(0x21c))/0x5*(-parseInt(_0x497dc9(0x173))/0x6)+-parseInt(_0x497dc9(0x212))/0x7*(-parseInt(_0x497dc9(0x1d5))/0x8)+-parseInt(_0x497dc9(0x203))/0x9*(parseInt(_0x497dc9(0x1cb))/0xa)+parseInt(_0x497dc9(0x1fc))/0xb*(parseInt(_0x497dc9(0x18e))/0xc);if(_0x1b0b5e===_0x428c74)break;else _0x18acda['push'](_0x18acda['shift']());}catch(_0x2d817c){_0x18acda['push'](_0x18acda['shift']());}}}(a40_0x5e9a,0x6ccc1));const RequestQueueHandler=require('../../../helpers/test-observability/requestQueueHandler'),{calculatePerformance,getTagsFromTitle,getFailureData}=require('./pwUtils'),{v4:uuidv4}=require(a40_0x83bff6(0x167)),path=require(a40_0x83bff6(0x180)),{debug,removeAnsiColors,printBuildLink,getFailureType,failureData,trace}=require('../../../helpers/test-observability/utils'),{getGitMetaData,setLogLevel}=require(a40_0x83bff6(0x20f)),TestDetails=require(a40_0x83bff6(0x168)),fs=require('fs'),util=require(a40_0x83bff6(0x178)),{o11yClassErrorHandler}=require(a40_0x83bff6(0x1d2)),PerformanceTester=require('../../../helpers/performance-tester'),{FRAMEWORKS}=require(a40_0x83bff6(0x1d4)),SessionHandler=require('../../../helpers/test-observability/sessionHandler'),{appendTesthubParams}=require(a40_0x83bff6(0x153)),TestHubHandler=require(a40_0x83bff6(0x185));function a40_0x116d(_0x501fb0,_0x382912){const _0x5e9a8b=a40_0x5e9a();return a40_0x116d=function(_0x116d06,_0x1d9be2){_0x116d06=_0x116d06-0x14b;let _0x4083bf=_0x5e9a8b[_0x116d06];return _0x4083bf;},a40_0x116d(_0x501fb0,_0x382912);}class MyReporter{constructor(_0x3dd849){const _0x4cb100=a40_0x83bff6,_0x1b30be={'cwOic':_0x4cb100(0x1a5),'XTBux':function(_0x468310,_0x1de6c4,_0x461b90,_0x212f99){return _0x468310(_0x1de6c4,_0x461b90,_0x212f99);},'KhAgH':_0x4cb100(0x19a)},_0x166e94=_0x1b30be['cwOic']['split']('|');let _0x5a61e2=0x0;while(!![]){switch(_0x166e94[_0x5a61e2++]){case'0':this['options']=_0x3dd849;continue;case'1':const _0x2e4eaa={};_0x2e4eaa['logLevel']=process[_0x4cb100(0x171)][_0x4cb100(0x155)],_0x1b30be[_0x4cb100(0x1ee)](setLogLevel,_0x2e4eaa,new Map(),new Map());continue;case'2':process[_0x4cb100(0x171)][_0x4cb100(0x18d)]&&(PerformanceTester[_0x4cb100(0x1e2)](_0x1b30be[_0x4cb100(0x1a8)]),process[_0x4cb100(0x171)][_0x4cb100(0x21e)]=new Date()[_0x4cb100(0x163)]());continue;case'3':this[_0x4cb100(0x18a)]=null;continue;case'4':this[_0x4cb100(0x17e)]={};continue;case'5':this['_testHooksMap']={};continue;case'6':this[_0x4cb100(0x16c)]=![];continue;}break;}}async['onBegin'](){const _0x1a3c71=a40_0x83bff6;TestDetails[_0x1a3c71(0x175)](),await this['configureGit']();}async[a40_0x83bff6(0x194)](_0x169a09,_0x457411){const _0x4f1870=a40_0x83bff6,_0x22d654={'zGuCn':function(_0x2085f6,_0x1fdb41){return _0x2085f6(_0x1fdb41);},'BDhuj':'TestRunStarted'},_0x19ba24=this[_0x4f1870(0x199)](_0x169a09);this[_0x4f1870(0x17e)][_0x19ba24]={'uuid':TestDetails[_0x4f1870(0x1fa)](this[_0x4f1870(0x1b7)](_0x169a09,_0x457411[_0x4f1870(0x1c3)])),'startedAt':_0x457411[_0x4f1870(0x1fd)]},_0x22d654[_0x4f1870(0x1dd)](trace,'Test\x20Started\x20with\x20unique\x20id\x20'+_0x19ba24),await this['sendTestRunEvent'](_0x169a09,_0x22d654[_0x4f1870(0x1a6)],_0x457411);}async['onStepBegin'](_0x1ab920,_0x48109f,_0x24e8ae){const _0xb10fab=a40_0x83bff6,_0x1300ab={'AGwvi':function(_0x1d405b,_0x2c23a3){return _0x1d405b(_0x2c23a3);},'IqpMh':'HookRunStarted'};if(!this['needToReportStep'](_0x24e8ae,_0x1ab920))return;const _0x3ecfa9=this[_0xb10fab(0x1ea)](_0x1ab920,_0x24e8ae);this['_tests'][_0x3ecfa9]={'uuid':TestDetails[_0xb10fab(0x1fa)](_0x3ecfa9),'startedAt':_0x24e8ae[_0xb10fab(0x1fd)]['toISOString']()};const _0x52cc13=this[_0xb10fab(0x1b7)](_0x1ab920,_0x48109f[_0xb10fab(0x1c3)]);!this['_testHooksMap'][_0x52cc13]&&(this[_0xb10fab(0x150)][_0x52cc13]=[]),this[_0xb10fab(0x150)][_0x52cc13][_0xb10fab(0x1be)](this[_0xb10fab(0x17e)][_0x3ecfa9]['uuid']),_0x1300ab[_0xb10fab(0x196)](trace,'Hook\x20Started\x20with\x20unique\x20id\x20'+_0x3ecfa9+_0xb10fab(0x1c5)+_0x52cc13),await this[_0xb10fab(0x224)](_0x1ab920,_0x24e8ae,_0x1300ab['IqpMh'],_0x48109f);}async['onStepEnd'](_0x533708,_0x1760ac,_0x2710b3){const _0x3148cd=a40_0x83bff6,_0xef2409={'EgmbN':function(_0x3c0e19,_0x418e7c){return _0x3c0e19+_0x418e7c;},'quouP':function(_0x17d95e,_0x25982a){return _0x17d95e(_0x25982a);},'CxJCZ':'HookRunFinished'};if(!this['needToReportStep'](_0x2710b3,_0x533708))return;const _0x1b44a8=this[_0x3148cd(0x217)](_0x533708,_0x2710b3);this[_0x3148cd(0x17e)][_0x1b44a8]={...this[_0x3148cd(0x17e)][_0x1b44a8]||{},'finishedAt':new Date(_0xef2409[_0x3148cd(0x17f)](_0x2710b3[_0x3148cd(0x1fd)][_0x3148cd(0x1b9)](),_0x2710b3[_0x3148cd(0x181)]))},_0xef2409[_0x3148cd(0x1b2)](trace,'Hook\x20Finished\x20with\x20unique\x20id\x20'+_0x1b44a8+_0x3148cd(0x15b)),await this[_0x3148cd(0x224)](_0x533708,_0x2710b3,_0xef2409[_0x3148cd(0x20d)],_0x1760ac);}async[a40_0x83bff6(0x1ca)](_0x56bdaf,_0x4b017d){const _0x21169c=a40_0x83bff6,_0x6536d={'gxkPg':function(_0x4d8969,_0x3329c1){return _0x4d8969===_0x3329c1;},'TygNb':_0x21169c(0x1a3),'lAqkW':_0x21169c(0x159),'Uernx':_0x21169c(0x18c),'KCKKp':function(_0x3bb4fb,_0x21353d){return _0x3bb4fb(_0x21353d);},'lJwat':_0x21169c(0x1f1),'KoYqQ':function(_0x5aa275,_0x6a83f8){return _0x5aa275>_0x6a83f8;}},_0x806c98=this['getTestIdentifier'](_0x56bdaf),_0x5ed151=TestDetails[_0x21169c(0x1fa)](this[_0x21169c(0x1b7)](_0x56bdaf,_0x4b017d['retry']));this[_0x21169c(0x17e)][_0x806c98]={...this[_0x21169c(0x17e)][_0x806c98]||{},'finishedAt':new Date()[_0x21169c(0x163)]()},_0x6536d[_0x21169c(0x18b)](trace,_0x21169c(0x1f5)+_0x806c98),await this[_0x21169c(0x179)](_0x56bdaf,_0x6536d[_0x21169c(0x14d)],_0x4b017d);const _0x2cd795=[];_0x4b017d[_0x21169c(0x1e4)]&&_0x4b017d[_0x21169c(0x1e4)]['map'](_0x4ac09e=>{const _0x20e3a2=_0x21169c;if(_0x6536d[_0x20e3a2(0x14b)](_0x4ac09e['name'],_0x6536d[_0x20e3a2(0x16d)])){if(!fs[_0x20e3a2(0x16a)](_0x4ac09e['path']))return;_0x2cd795['push']({'test_run_uuid':_0x5ed151,'timestamp':fs[_0x20e3a2(0x174)](_0x4ac09e[_0x20e3a2(0x180)])['mtime'],'kind':_0x6536d[_0x20e3a2(0x201)],'message':fs[_0x20e3a2(0x16b)](_0x4ac09e[_0x20e3a2(0x180)],{'encoding':_0x6536d['Uernx']})});}}),_0x6536d['KoYqQ'](_0x2cd795[_0x21169c(0x1a2)],0x0)&&await MyReporter['reportLogs'](_0x2cd795);}async['endSession'](){const _0x389899=a40_0x83bff6;await RequestQueueHandler[_0x389899(0x1eb)]()[_0x389899(0x1a0)](),TestDetails['shutdown']();}async[a40_0x83bff6(0x1c2)](_0x2b5e4b){const _0x713bfc=a40_0x83bff6,_0x27efe0={'AbUvE':function(_0x27f23b){return _0x27f23b();},'htvsH':function(_0x1136d2){return _0x1136d2();},'RQZfX':function(_0x5b2e0a,_0x14add3){return _0x5b2e0a(_0x14add3);}};await this['endSession'](),_0x27efe0[_0x713bfc(0x192)](printBuildLink);try{process[_0x713bfc(0x171)][_0x713bfc(0x18d)]&&await _0x27efe0[_0x713bfc(0x19b)](calculatePerformance);}catch(_0x4b8d9a){_0x27efe0[_0x713bfc(0x1f8)](debug,_0x713bfc(0x1e8)+_0x4b8d9a[_0x713bfc(0x1a1)]());}}static async[a40_0x83bff6(0x1f4)](_0xb4b575,_0x42bbeb){const _0x9ddec8=a40_0x83bff6;_0x42bbeb['test_run_uuid']=TestDetails['getTestUUID'](_0xb4b575),await this[_0x9ddec8(0x1a9)]([_0x42bbeb]);}static async[a40_0x83bff6(0x1a9)](_0xd79a64){const _0x14b120=a40_0x83bff6,_0x2412e4={};_0x2412e4[_0x14b120(0x1e7)]=_0x14b120(0x20a);const _0x73482a=_0x2412e4,_0x350cb9={};_0x350cb9[_0x14b120(0x1df)]=_0x73482a[_0x14b120(0x1e7)],_0x350cb9['logs']=_0xd79a64,await SessionHandler[_0x14b120(0x1d3)](_0x350cb9);}async[a40_0x83bff6(0x224)](_0x5889e5,_0x5299bb,_0x310dd9,_0x4511d0){const _0x186b10=a40_0x83bff6,_0x186f76={'PBPqM':_0x186b10(0x209),'ycqXi':_0x186b10(0x21a),'RqrbH':_0x186b10(0x161),'pDyGW':function(_0x58c3c8,_0x5354f8){return _0x58c3c8>=_0x5354f8;},'ehSeo':function(_0x2b6712,_0x2b0ae0){return _0x2b6712===_0x2b0ae0;},'lceXe':'HookRunFinished','cMrLq':function(_0x4d99ff,_0x334103){return _0x4d99ff>_0x334103;},'CEKDB':'failed','ylfJz':function(_0x761da0,_0x550a76){return _0x761da0(_0x550a76);},'FwVWm':function(_0x4870ca,_0x101b0f,_0x5363d6){return _0x4870ca(_0x101b0f,_0x5363d6);},'KDceF':_0x186b10(0x1cf),'SXFnU':_0x186b10(0x1c9)},_0x1094b6=this[_0x186b10(0x217)](_0x5889e5,_0x5299bb),_0x82c98d=this['_tests'][_0x1094b6],_0x38abec={'uuid':_0x82c98d[_0x186b10(0x167)],'type':_0x186f76[_0x186b10(0x20e)],'hook_type':this[_0x186b10(0x17c)](_0x5299bb[_0x186b10(0x1dc)]),'name':_0x5299bb[_0x186b10(0x1dc)],'scope':this[_0x186b10(0x1b4)](_0x5299bb),'scopes':this[_0x186b10(0x1b6)](_0x5889e5),'body':{'lang':_0x186f76[_0x186b10(0x165)],'code':null},'identifier':_0x1094b6,'file_name':path[_0x186b10(0x15f)](process['cwd'](),_0x5889e5[_0x186b10(0x1d8)][_0x186b10(0x15a)]),'location':path[_0x186b10(0x15f)](process['cwd'](),_0x5889e5[_0x186b10(0x1d8)]['file']),'result':_0x186f76[_0x186b10(0x1bf)],'duration_in_ms':_0x186f76['pDyGW'](_0x5299bb[_0x186b10(0x181)],0x0)?_0x5299bb[_0x186b10(0x181)]:undefined,'vc_filepath':this['_gitConfigPath']&&_0x5889e5['location']['file']?path[_0x186b10(0x15f)](this[_0x186b10(0x18a)],_0x5889e5[_0x186b10(0x1d8)][_0x186b10(0x15a)]):undefined,'started_at':_0x82c98d['startedAt'],'finished_at':_0x82c98d[_0x186b10(0x1e3)],'framework':FRAMEWORKS[_0x186b10(0x152)]};if(_0x186f76['ehSeo'](_0x310dd9,_0x186f76['lceXe'])){const {steps:_0xc9757c,logs:_0x1cc582}=this[_0x186b10(0x221)](_0x5299bb[_0x186b10(0x164)],_0x82c98d[_0x186b10(0x167)],_0x186f76['PBPqM']);_0x1cc582&&_0x186f76[_0x186b10(0x157)](_0x1cc582[_0x186b10(0x1a2)],0x0)&&await MyReporter[_0x186b10(0x1a9)](_0x1cc582);const _0x5ce30d={};_0x5ce30d[_0x186b10(0x164)]=_0xc9757c,_0x38abec['meta']=_0x5ce30d;if(_0x5299bb[_0x186b10(0x14e)]){_0x38abec[_0x186b10(0x1da)]=_0x186f76['CEKDB'],_0x38abec[_0x186b10(0x1ad)]=_0x186f76[_0x186b10(0x177)](removeAnsiColors,_0x5299bb['error']['message']),_0x38abec['failure_type']=_0x186f76[_0x186b10(0x177)](getFailureType,_0x5299bb['error']['message']);const _0x582314=_0x186f76[_0x186b10(0x1b0)](failureData,_0x5299bb[_0x186b10(0x14e)],_0x186f76['KDceF']);if(_0x582314&&_0x186f76[_0x186b10(0x1ab)](_0x582314[_0x186b10(0x1a2)],0x0)){const _0x46410f={};_0x46410f[_0x186b10(0x211)]=[_0x38abec[_0x186b10(0x1ad)]],_0x46410f['expanded']=[],_0x582314[_0x186b10(0x1be)](_0x46410f);}_0x38abec[_0x186b10(0x16e)]=_0x582314;}else _0x38abec[_0x186b10(0x1da)]=_0x186f76['SXFnU'];}const _0x306fa6={};_0x306fa6[_0x186b10(0x1df)]=_0x310dd9,_0x306fa6[_0x186b10(0x1b5)]=_0x38abec;const _0x3f4856=_0x306fa6;await SessionHandler[_0x186b10(0x1d3)](_0x3f4856);}[a40_0x83bff6(0x221)](_0x26f91f,_0x36da86,_0x76bb07){const _0x2ee4fc=a40_0x83bff6,_0x2b7bb6={'klXBO':function(_0x41eb47,_0x5c55f8){return _0x41eb47===_0x5c55f8;},'MdNYi':_0x2ee4fc(0x209),'lSjtX':function(_0x564523,_0x336cce){return _0x564523===_0x336cce;},'xWpkV':_0x2ee4fc(0x1c1),'ldJTn':function(_0x2bc0f6,_0x3157d2){return _0x2bc0f6===_0x3157d2;},'QqCqY':'Before\x20Hooks','nfZEL':function(_0x37a224,_0x1006fd){return _0x37a224===_0x1006fd;},'BWWFY':function(_0x55b13d,_0x2dccae){return _0x55b13d===_0x2dccae;},'hhSSe':'test','JclIs':_0x2ee4fc(0x1f7),'bxnOD':_0x2ee4fc(0x1d7),'IxazO':_0x2ee4fc(0x166),'UpVGR':_0x2ee4fc(0x1e0),'CgLSe':_0x2ee4fc(0x1c9),'LNfeY':function(_0xef783e,_0x350686){return _0xef783e(_0x350686);},'IFANe':function(_0x4edd49,_0x101aef){return _0x4edd49(_0x101aef);},'RSpYx':function(_0x5c660f){return _0x5c660f();},'malIP':function(_0x51a8cd,_0x188bf8){return _0x51a8cd(_0x188bf8);},'ouXWZ':function(_0x46d1cc,_0x1eb2be,_0x1e65ef){return _0x46d1cc(_0x1eb2be,_0x1e65ef);}},_0x4e0236=[],_0x37df55=[],_0x548f62=_0x26f91f['filter'](_0x93486a=>{const _0x49343b=_0x2ee4fc;if(_0x2b7bb6[_0x49343b(0x191)](_0x93486a[_0x49343b(0x15e)],_0x2b7bb6['MdNYi'])&&(_0x2b7bb6[_0x49343b(0x218)](_0x93486a[_0x49343b(0x1dc)],_0x2b7bb6[_0x49343b(0x1af)])||_0x2b7bb6[_0x49343b(0x204)](_0x93486a['title'],_0x2b7bb6['QqCqY'])))return![];return!![];}),_0x21c244=(_0x41d297,_0x409def=![])=>{const _0x8b39e=_0x2ee4fc;if(_0x2b7bb6['nfZEL'](_0x41d297[_0x8b39e(0x164)][_0x8b39e(0x1a2)],0x0)){const _0x1312e7=_0x2b7bb6[_0x8b39e(0x1db)](_0x76bb07,_0x2b7bb6['hhSSe'])?_0x2b7bb6[_0x8b39e(0x1fb)]:_0x2b7bb6['bxnOD'];_0x37df55['push']({'kind':_0x2b7bb6[_0x8b39e(0x1b8)],[_0x1312e7]:_0x36da86,'message':_0x41d297[_0x8b39e(0x1dc)],'timestamp':_0x41d297[_0x8b39e(0x1fd)]['toISOString'](),'level':_0x41d297[_0x8b39e(0x14e)]?_0x2b7bb6['UpVGR']:_0x2b7bb6['CgLSe'],'duration':_0x41d297[_0x8b39e(0x181)],'failure':_0x41d297[_0x8b39e(0x14e)]&&_0x41d297[_0x8b39e(0x14e)]['message']&&_0x2b7bb6[_0x8b39e(0x1a7)](removeAnsiColors,_0x41d297[_0x8b39e(0x14e)][_0x8b39e(0x156)]),'failure_type':_0x2b7bb6[_0x8b39e(0x1f6)](getFailureType,_0x41d297['error']&&_0x41d297['error'][_0x8b39e(0x156)])});}else{!_0x409def&&_0x4e0236[_0x8b39e(0x1be)]({'id':_0x2b7bb6[_0x8b39e(0x207)](uuidv4),'text':_0x41d297[_0x8b39e(0x1dc)],'keyword':undefined,'started_at':_0x41d297[_0x8b39e(0x1fd)][_0x8b39e(0x163)](),'duration':_0x41d297[_0x8b39e(0x181)],'result':_0x41d297[_0x8b39e(0x14e)]?_0x2b7bb6[_0x8b39e(0x15c)]:_0x2b7bb6[_0x8b39e(0x215)],'failure':_0x41d297[_0x8b39e(0x14e)]&&_0x41d297[_0x8b39e(0x14e)][_0x8b39e(0x156)]&&_0x2b7bb6[_0x8b39e(0x1f6)](removeAnsiColors,_0x41d297[_0x8b39e(0x14e)][_0x8b39e(0x156)]),'failure_type':_0x2b7bb6[_0x8b39e(0x158)](getFailureType,_0x41d297[_0x8b39e(0x14e)]&&_0x41d297[_0x8b39e(0x14e)][_0x8b39e(0x156)])});for(const _0x1640c5 of _0x41d297['steps']){_0x2b7bb6[_0x8b39e(0x151)](_0x21c244,_0x1640c5,!![]);}}};for(const _0xf7b607 of _0x548f62){_0x2b7bb6[_0x2ee4fc(0x151)](_0x21c244,_0xf7b607,![]);}const _0x50cce2={};return _0x50cce2[_0x2ee4fc(0x164)]=_0x4e0236,_0x50cce2[_0x2ee4fc(0x1f0)]=_0x37df55,_0x50cce2;}async['sendTestRunEvent'](_0x2ffcd0,_0x1f7beb,_0x41d62a){const _0x431c29=a40_0x83bff6,_0x552490={'UMMsQ':_0x431c29(0x1ba),'YNxQz':'javascript','fVYWw':_0x431c29(0x161),'nJNHV':function(_0x518399,_0x4011b2){return _0x518399(_0x4011b2);},'zVEEd':function(_0x2c367f,_0x14ec1d,_0x6e59af,_0x2be704,_0x116358){return _0x2c367f(_0x14ec1d,_0x6e59af,_0x2be704,_0x116358);},'lxqkq':function(_0x225a04,_0x30003c){return _0x225a04>_0x30003c;},'CByiQ':function(_0x58cf36,_0x3b0cc9){return _0x58cf36-_0x3b0cc9;},'FzxlH':function(_0x329af4,_0x310d99){return _0x329af4===_0x310d99;},'zlOfq':'TestRunFinished','mZvaj':function(_0x538761,_0x5a3710){return _0x538761===_0x5a3710;},'KrhvJ':'skipped','UUvqO':_0x431c29(0x1c9),'xlWvF':function(_0x4c9d1b,_0x4c28ae){return _0x4c9d1b===_0x4c28ae;},'emDgQ':_0x431c29(0x1e0),'sPCbs':function(_0xdf64ac,_0x12ab68){return _0xdf64ac===_0x12ab68;},'Inxyk':'timedOut','YKJjU':_0x431c29(0x1cc),'jtlbj':function(_0x1af903,_0x5c81e7){return _0x1af903(_0x5c81e7);},'hSqSw':function(_0xe9aa96,_0x436715,_0x4c9575){return _0xe9aa96(_0x436715,_0x4c9575);},'NYfMn':function(_0x834f5f,_0x168643){return _0x834f5f===_0x168643;}},_0x370d04=this[_0x431c29(0x199)](_0x2ffcd0),_0x1f7fd1=this[_0x431c29(0x1b4)](_0x2ffcd0),_0x410b33=this[_0x431c29(0x17e)][_0x370d04],_0x1f6404=path['relative'](process[_0x431c29(0x1ac)](),_0x2ffcd0[_0x431c29(0x1d8)][_0x431c29(0x15a)]);await this['configureGit']();const _0x10ef06={'uuid':_0x410b33[_0x431c29(0x167)],'type':_0x552490[_0x431c29(0x220)],'name':_0x2ffcd0[_0x431c29(0x1dc)],'body':{'lang':_0x552490['YNxQz'],'code':_0x2ffcd0['fn']['toString']()},'scope':_0x1f7fd1,'scopes':this[_0x431c29(0x1b6)](_0x2ffcd0),'identifier':_0x370d04,'file_name':_0x1f6404,'location':_0x1f6404,'result':_0x552490[_0x431c29(0x170)],'duration_in_ms':_0x41d62a&&_0x41d62a[_0x431c29(0x181)]?_0x41d62a[_0x431c29(0x181)]:null,'vc_filepath':this[_0x431c29(0x18a)]&&_0x2ffcd0[_0x431c29(0x1d8)]['file']?path[_0x431c29(0x15f)](this[_0x431c29(0x18a)],_0x2ffcd0[_0x431c29(0x1d8)][_0x431c29(0x15a)]):undefined,'started_at':_0x410b33[_0x431c29(0x1d6)],'finished_at':_0x410b33['finishedAt'],'framework':FRAMEWORKS[_0x431c29(0x152)],'customRerunParam':{'rerun_name':_0x2ffcd0['titlePath']()[_0x431c29(0x190)]('\x20')},'tags':_0x552490[_0x431c29(0x162)](getTagsFromTitle,_0x2ffcd0['title'])};_0x552490[_0x431c29(0x1d0)](appendTesthubParams,_0x10ef06,_0x1f7beb,_0x2ffcd0,FRAMEWORKS[_0x431c29(0x152)]);_0x41d62a&&_0x552490[_0x431c29(0x187)](_0x41d62a[_0x431c29(0x1c3)],0x0)&&(_0x10ef06['retry_of']=TestDetails[_0x431c29(0x1fa)](this['getTestRunIdentifier'](_0x2ffcd0,_0x552490['CByiQ'](_0x41d62a[_0x431c29(0x1c3)],0x1))));if(_0x552490[_0x431c29(0x1cd)](_0x1f7beb,_0x552490[_0x431c29(0x206)])){_0x10ef06[_0x431c29(0x1da)]=_0x41d62a[_0x431c29(0x1ef)];if(_0x552490['mZvaj'](_0x41d62a[_0x431c29(0x1ef)],_0x2ffcd0[_0x431c29(0x21d)]))_0x10ef06[_0x431c29(0x1da)]=_0x552490[_0x431c29(0x1bc)](_0x41d62a[_0x431c29(0x1ef)],_0x552490[_0x431c29(0x1bb)])?_0x552490['KrhvJ']:_0x552490[_0x431c29(0x1ed)];else{(_0x552490[_0x431c29(0x1cd)](_0x10ef06[_0x431c29(0x1da)],_0x552490[_0x431c29(0x1ed)])||_0x552490['xlWvF'](_0x10ef06['result'],_0x552490['emDgQ'])||_0x552490[_0x431c29(0x1ff)](_0x10ef06[_0x431c29(0x1da)],_0x552490[_0x431c29(0x1b1)]))&&(_0x10ef06[_0x431c29(0x1da)]=_0x552490['emDgQ']);if(_0x552490[_0x431c29(0x17b)](_0x41d62a[_0x431c29(0x1ef)],_0x552490[_0x431c29(0x1ed)])&&_0x552490[_0x431c29(0x17b)](_0x2ffcd0[_0x431c29(0x21d)],_0x552490[_0x431c29(0x1d9)])){const _0x426ced={};_0x426ced['message']=_0x552490[_0x431c29(0x219)],_0x426ced[_0x431c29(0x195)]=_0x552490[_0x431c29(0x219)],_0x41d62a['error']=_0x426ced,_0x41d62a['errors']=[_0x41d62a[_0x431c29(0x14e)]];}}const _0x312d6c=this['getTestRunIdentifier'](_0x2ffcd0,_0x41d62a[_0x431c29(0x1c3)]);_0x10ef06['hooks']=this[_0x431c29(0x150)][_0x312d6c];const {steps:_0x2d9fe4,logs:_0x213eb9}=this[_0x431c29(0x221)](_0x41d62a[_0x431c29(0x164)],_0x410b33['uuid'],_0x552490['UMMsQ']);await MyReporter['reportLogs'](_0x213eb9);const _0x413ed0={};_0x413ed0[_0x431c29(0x164)]=_0x2d9fe4,_0x10ef06[_0x431c29(0x14c)]=_0x413ed0;if(_0x41d62a[_0x431c29(0x14e)]){_0x10ef06['failure_reason']=_0x552490[_0x431c29(0x162)](removeAnsiColors,_0x41d62a['error'][_0x431c29(0x156)]),_0x10ef06['failure_type']=_0x552490[_0x431c29(0x17a)](getFailureType,_0x41d62a[_0x431c29(0x14e)]['message']);const _0x11ee8b={};_0x11ee8b[_0x431c29(0x1f7)]=_0x410b33[_0x431c29(0x167)];const {failureData:_0x399a0f,logs:_0x3c695d}=_0x552490[_0x431c29(0x1a4)](getFailureData,_0x41d62a[_0x431c29(0x1e9)],_0x11ee8b);if(_0x399a0f&&_0x552490[_0x431c29(0x21f)](_0x399a0f['length'],0x0)){const _0x55db0d={};_0x55db0d[_0x431c29(0x211)]=[_0x10ef06[_0x431c29(0x1ad)]],_0x55db0d[_0x431c29(0x169)]=[],_0x399a0f[_0x431c29(0x1be)](_0x55db0d);}_0x10ef06[_0x431c29(0x16e)]=_0x399a0f,_0x3c695d&&_0x552490[_0x431c29(0x187)](_0x3c695d[_0x431c29(0x1a2)],0x0)&&await MyReporter['reportLogs'](_0x3c695d);}}const _0x4b830a={};_0x4b830a[_0x431c29(0x1df)]=_0x1f7beb,_0x4b830a[_0x431c29(0x160)]=_0x10ef06;const _0x51e7af=_0x4b830a;await SessionHandler['uploadEventData'](_0x51e7af);}static async[a40_0x83bff6(0x200)](_0x10dc29,_0x546786){const _0xec7ac6=a40_0x83bff6,_0x1194b6={'jrfsJ':function(_0x6a2cd7,_0x50899e){return _0x6a2cd7(_0x50899e);},'TOMEV':_0xec7ac6(0x18f)},_0x4a6168={'uuid':TestDetails[_0xec7ac6(0x1fa)](_0x10dc29),'integrations':_0x546786},_0x4e0764={};_0x4e0764[_0xec7ac6(0x1f3)]=null,_0x1194b6[_0xec7ac6(0x197)](debug,_0xec7ac6(0x19d)+_0x10dc29+',\x20'+util['inspect'](_0x546786,_0x4e0764));const _0x354c5c={};_0x354c5c[_0xec7ac6(0x1df)]=_0x1194b6[_0xec7ac6(0x172)],_0x354c5c[_0xec7ac6(0x160)]=_0x4a6168,await SessionHandler[_0xec7ac6(0x1d3)](_0x354c5c);}async['configureGit'](){const _0x347f85=a40_0x83bff6,_0x4f8e40={'PPonj':function(_0x3af23a){return _0x3af23a();}};if(this[_0x347f85(0x16c)])return;const _0xc68a69=await _0x4f8e40[_0x347f85(0x1ae)](getGitMetaData);_0xc68a69&&(this[_0x347f85(0x18a)]=_0xc68a69[_0x347f85(0x154)]),this[_0x347f85(0x16c)]=!![];}['getHierarchy'](_0x520c28){const _0x788ad8=a40_0x83bff6,_0x4dd4e2={};_0x4dd4e2[_0x788ad8(0x1c0)]=function(_0x57771f,_0x5ba335){return _0x57771f!==_0x5ba335;};const _0x3f6d81=_0x4dd4e2,_0x5bc360=[];if(_0x520c28&&_0x520c28[_0x788ad8(0x184)]){let _0x8c7c18=_0x520c28[_0x788ad8(0x184)];while(_0x8c7c18&&_0x3f6d81[_0x788ad8(0x1c0)](_0x8c7c18[_0x788ad8(0x1dc)],'')){_0x5bc360['push'](_0x8c7c18[_0x788ad8(0x1dc)]),_0x8c7c18=_0x8c7c18[_0x788ad8(0x184)];}}return _0x5bc360[_0x788ad8(0x19f)]()['splice'](0x0,0x2),_0x5bc360;}[a40_0x83bff6(0x222)](_0x1a8f7e){const _0x540dc9=a40_0x83bff6,_0x462fc5={};_0x462fc5[_0x540dc9(0x1f2)]=function(_0x5901cd,_0x576a4a){return _0x5901cd!==_0x576a4a;},_0x462fc5[_0x540dc9(0x176)]=_0x540dc9(0x209),_0x462fc5['zsqQp']=function(_0x46389c,_0x98ab41){return _0x46389c===_0x98ab41;},_0x462fc5[_0x540dc9(0x193)]=_0x540dc9(0x205),_0x462fc5[_0x540dc9(0x1c4)]=_0x540dc9(0x14f),_0x462fc5['ISHKQ']=_0x540dc9(0x183),_0x462fc5[_0x540dc9(0x1ec)]=_0x540dc9(0x1bd);const _0x411c41=_0x462fc5;if(_0x411c41['SdswJ'](_0x1a8f7e[_0x540dc9(0x15e)],_0x411c41['HNEpb']))return![];if(_0x411c41[_0x540dc9(0x210)]([_0x411c41[_0x540dc9(0x193)],_0x411c41[_0x540dc9(0x1c4)],_0x411c41[_0x540dc9(0x20b)],_0x411c41['pROcK']]['indexOf'](_0x1a8f7e['title']),-0x1))return![];return!![];}[a40_0x83bff6(0x217)](_0x46f44e,_0x1de01a){const _0x10280b=a40_0x83bff6,_0x49e36b=_0x1de01a[_0x10280b(0x1de)];if(_0x49e36b)return _0x49e36b;return _0x1de01a[_0x10280b(0x1dc)]+_0x10280b(0x1c8)+this[_0x10280b(0x199)](_0x46f44e);}[a40_0x83bff6(0x1ea)](_0x189f78,_0xabe995){const _0xfc25bd=a40_0x83bff6,_0x41436f={'BWubj':function(_0x23a598){return _0x23a598();}};let _0x32e68a=_0xabe995[_0xfc25bd(0x1dc)]+_0xfc25bd(0x1c8)+this['getTestIdentifier'](_0x189f78);return this[_0xfc25bd(0x17e)][_0x32e68a]&&(_0x32e68a=_0x32e68a+_0xfc25bd(0x1d1)+_0x41436f['BWubj'](uuidv4)),_0xabe995[_0xfc25bd(0x1de)]=_0x32e68a,_0x32e68a;}[a40_0x83bff6(0x199)]=_0x58bb2c=>{const _0x5419e2=a40_0x83bff6,_0xe1bf2e={};_0xe1bf2e[_0x5419e2(0x198)]=function(_0x2a8f15,_0x9c23c3){return _0x2a8f15+_0x9c23c3;};const _0x36681c=_0xe1bf2e;return _0x36681c[_0x5419e2(0x198)](_0x36681c[_0x5419e2(0x198)](_0x58bb2c[_0x5419e2(0x19c)],'-'),_0x58bb2c['id']);};[a40_0x83bff6(0x1b7)]=(_0xc53e66,_0x399004)=>{const _0x1a438e=a40_0x83bff6,_0x29bd7c={};_0x29bd7c[_0x1a438e(0x1c6)]=function(_0x2302d4,_0x21bfb1){return _0x2302d4+_0x21bfb1;};const _0x1fdc09=_0x29bd7c;return _0x1fdc09[_0x1a438e(0x1c6)](_0x1fdc09[_0x1a438e(0x1c6)](this[_0x1a438e(0x199)](_0xc53e66),'-'),_0x399004);};['getHookType']=_0x5e88d5=>{const _0x83dcb=a40_0x83bff6,_0x1a8f7f={};_0x1a8f7f[_0x83dcb(0x223)]='beforeEach\x20hook',_0x1a8f7f[_0x83dcb(0x15d)]=_0x83dcb(0x16f),_0x1a8f7f['Nlunq']='beforeAll\x20hook',_0x1a8f7f[_0x83dcb(0x1fe)]=_0x83dcb(0x188),_0x1a8f7f[_0x83dcb(0x1c7)]=_0x83dcb(0x1bd),_0x1a8f7f[_0x83dcb(0x213)]='AFTER_EACH',_0x1a8f7f[_0x83dcb(0x1ce)]=_0x83dcb(0x183),_0x1a8f7f[_0x83dcb(0x19e)]='AFTER_ALL',_0x1a8f7f[_0x83dcb(0x186)]='unknown';const _0x1c8d11=_0x1a8f7f;if(_0x5e88d5['startsWith'](_0x1c8d11[_0x83dcb(0x223)]))return _0x1c8d11['NzwMP'];else{if(_0x5e88d5[_0x83dcb(0x1e5)](_0x1c8d11[_0x83dcb(0x20c)]))return _0x1c8d11['tFXEw'];else{if(_0x5e88d5['startsWith'](_0x1c8d11[_0x83dcb(0x1c7)]))return _0x1c8d11[_0x83dcb(0x213)];else{if(_0x5e88d5[_0x83dcb(0x1e5)](_0x1c8d11[_0x83dcb(0x1ce)]))return _0x1c8d11[_0x83dcb(0x19e)];}}}return _0x1c8d11[_0x83dcb(0x186)];};[a40_0x83bff6(0x1b4)]=_0x545f04=>{const _0x295868=a40_0x83bff6,_0x3466d1={};_0x3466d1[_0x295868(0x189)]=function(_0x2580f,_0xe01a43){return _0x2580f===_0xe01a43;},_0x3466d1[_0x295868(0x214)]=_0x295868(0x216);const _0x32c537=_0x3466d1;let _0x29cd2d=_0x545f04[_0x295868(0x184)];return _0x32c537['Frdlx'](typeof _0x545f04['parent'],_0x32c537[_0x295868(0x214)])&&(_0x29cd2d=_0x29cd2d[_0x295868(0x1dc)]),_0x29cd2d+_0x295868(0x1d1)+_0x545f04['title'];};[a40_0x83bff6(0x1b3)](){return![];}}module[a40_0x83bff6(0x1aa)]=o11yClassErrorHandler(MyReporter,[a40_0x83bff6(0x1f9),a40_0x83bff6(0x208),a40_0x83bff6(0x194),'onTestEnd','onStepBegin',a40_0x83bff6(0x17d),'sendSessionDetails'],a40_0x83bff6(0x21b));
|
|
1
|
+
const a41_0x5e6a5c=a41_0x18e9;function a41_0x1e27(){const _0x12771c=['sEPRL','stack','expectedStatus','getInstance','EWsJY','ZQwjo','Error\x20in\x20calculating\x20performance:\x20','Gbjqy','xFKhp','../../../helpers/helper','uploadEventData','izJYD','SGhUC','duration','hvxSp','../../../helpers/performance-tester','szGDr','SNmeI','passed','RCdRH','WyHCA','xEUaq','vbUTk','skipped','15zHaMGd','SoEHZ','BdQqQ','SDCAH','OFpAF','wExlt','LyTCt','4BKhMZp','endSession','startTime','getTime','1182495CczPTW','backtrace','oYmjs','base64','IonZt','logLevel','KkLjO','retry','RdPAn','DvLmB','finishedAt','nHZOh','TEST_STEP','printsToStdio','getTestUUID','OVZGY','getTestIdentifier','NzNAU','beforeEach\x20hook','./pwUtils','XKiRD','beforeAll\x20hook','../../../helpers/test-observability/requestQueueHandler','_tests','_gitConfigPath','sVTKp','performance-report-reporter.json','errors','../../../helpers/test-observability/utils','statSync','wZOjj','\x20is\x20triggered\x20for\x20test\x20','OQgla','configureGit','attachments','title','860927CtdMbd','236115TWAuzi','hook','HfxLy','test','jXAjS','screenshot','category','GOjcX','UBLJe','failed','YygYB','Pguxc','WNLte','push','AegIc','UZrXy','WLnWV','getHierarchy','sendTestRunEvent','pending','Before\x20Hooks','splice','5669237lWFOMp','onStepBegin','length','BEFORE_ALL','BROWSERSTACK_LOG_LEVEL','hooks','onEnd','../../../helpers/test-observability/error-handler','mHpbn','needToReportStep','\x20is\x20triggered','../../../helpers/test-observability/constants','1715586gSyDxQ','startMonitoring','uuid','event_type','afterAll\x20hook','2tOsYbM','ZiwIZ','VdMbt','GfNra','PqyRF','FnHcX','After\x20Hooks','pRutC','steps','readFileSync','HookRunFinished','lcnPU','kjRHG','test_run_uuid','aaZLw','getTestRunIdentifier','test_run','javascript','cwd','TEST_SCREENSHOT','inspect','onTestEnd','pcejR','path','expanded','AisxE','BEFORE_EACH','file','map','sendHookRunEvent','Sending\x20session\x20details\x20for\x20','location','Expected\x20to\x20fail,\x20but\x20passed.','cyIVP','keQSX','PLAYWRIGHT','logs','_gitConfigured','31401924tlNuDI','fRXcW','LogCreated','env','shutdown','parent','HPfnh','RxLFD','\x20for\x20','BROWSERSTACK_O11Y_PERF_MEASUREMENT','onTestBegin','YlVUL','Hook\x20Started\x20with\x20unique\x20id\x20','EgAfa','142056gDMSRP','message','Isgrm','getStepsAndLogs','ZhUZc','144NQtdqk','exports','CAqaZ','ucqVY','getScope','TSSne','Bkekl','MhOYE','sendSessionDetails','../../../helpers/testhub/utils','RnYwy','status','hook_run','ekxkP','MyReporter','error','split','uNcRq','failure_reason','nDwzW','./test-details','toISOString','err','TestRunFinished','\x20-\x20','EPxor','onStepEnd','_testHooksMap','NjOxD','startedAt','result','reportLogs','relative','failure_type','reverse','KZHDx','TciwR','lKObA','getStepIdentifier','_bs_hookIdentifier','unknown','RMgSU','startsWith','YDiLa','720VVZwYL'];a41_0x1e27=function(){return _0x12771c;};return a41_0x1e27();}function a41_0x18e9(_0x5560d8,_0x28c93a){const _0x1e27df=a41_0x1e27();return a41_0x18e9=function(_0x18e917,_0x388dff){_0x18e917=_0x18e917-0x108;let _0x1cd8ce=_0x1e27df[_0x18e917];return _0x1cd8ce;},a41_0x18e9(_0x5560d8,_0x28c93a);}(function(_0x202f5c,_0x189776){const _0x5ee933=a41_0x18e9,_0x1a8097=_0x202f5c();while(!![]){try{const _0x174f2d=-parseInt(_0x5ee933(0x1b0))/0x1*(parseInt(_0x5ee933(0x1d8))/0x2)+-parseInt(_0x5ee933(0x18c))/0x3*(-parseInt(_0x5ee933(0x188))/0x4)+-parseInt(_0x5ee933(0x181))/0x5*(-parseInt(_0x5ee933(0x1d3))/0x6)+-parseInt(_0x5ee933(0x1c7))/0x7+parseInt(_0x5ee933(0x137))/0x8*(parseInt(_0x5ee933(0x13c))/0x9)+-parseInt(_0x5ee933(0x168))/0xa*(parseInt(_0x5ee933(0x1b1))/0xb)+parseInt(_0x5ee933(0x129))/0xc;if(_0x174f2d===_0x189776)break;else _0x1a8097['push'](_0x1a8097['shift']());}catch(_0x27fb8a){_0x1a8097['push'](_0x1a8097['shift']());}}}(a41_0x1e27,0xe4a97));const RequestQueueHandler=require(a41_0x5e6a5c(0x1a2)),{calculatePerformance,getTagsFromTitle,getFailureData}=require(a41_0x5e6a5c(0x19f)),{v4:uuidv4}=require(a41_0x5e6a5c(0x1d5)),path=require('path'),{debug,removeAnsiColors,printBuildLink,getFailureType,failureData,trace}=require(a41_0x5e6a5c(0x1a8)),{getGitMetaData,setLogLevel}=require(a41_0x5e6a5c(0x172)),TestDetails=require(a41_0x5e6a5c(0x150)),fs=require('fs'),util=require('util'),{o11yClassErrorHandler}=require(a41_0x5e6a5c(0x1ce)),PerformanceTester=require(a41_0x5e6a5c(0x178)),{FRAMEWORKS}=require(a41_0x5e6a5c(0x1d2)),SessionHandler=require('../../../helpers/test-observability/sessionHandler'),{appendTesthubParams}=require(a41_0x5e6a5c(0x145)),TestHubHandler=require('../../../helpers/testhub/testhubHandler');class MyReporter{constructor(_0x185c75){const _0x4e7560=a41_0x5e6a5c,_0xb555dc={'RMgSU':'0|6|4|2|5|1|3','WjPHL':function(_0x400d0f,_0x4fe7dd,_0x58578a,_0x2ff9a8){return _0x400d0f(_0x4fe7dd,_0x58578a,_0x2ff9a8);},'FHvSB':_0x4e7560(0x1a6)},_0x301d0b=_0xb555dc[_0x4e7560(0x165)][_0x4e7560(0x14c)]('|');let _0x533106=0x0;while(!![]){switch(_0x301d0b[_0x533106++]){case'0':const _0x2f1756={};_0x2f1756[_0x4e7560(0x191)]=process[_0x4e7560(0x12c)][_0x4e7560(0x1cb)],_0xb555dc['WjPHL'](setLogLevel,_0x2f1756,new Map(),new Map());continue;case'1':this['_gitConfigured']=![];continue;case'2':this[_0x4e7560(0x157)]={};continue;case'3':this[_0x4e7560(0x1a4)]=null;continue;case'4':this[_0x4e7560(0x1a3)]={};continue;case'5':this['options']=_0x185c75;continue;case'6':process[_0x4e7560(0x12c)][_0x4e7560(0x132)]&&(PerformanceTester[_0x4e7560(0x1d4)](_0xb555dc['FHvSB']),process['env']['START_TIME']=new Date()['toISOString']());continue;}break;}}async['onBegin'](){TestDetails['setup'](),await this['configureGit']();}async[a41_0x5e6a5c(0x133)](_0x58126b,_0x30ef0b){const _0x306a0c=a41_0x5e6a5c,_0x3d9cd9={'SGhUC':function(_0x27f31e,_0x32cc75){return _0x27f31e(_0x32cc75);},'HPfnh':'TestRunStarted'},_0x2f30f4=this[_0x306a0c(0x19c)](_0x58126b);this[_0x306a0c(0x1a3)][_0x2f30f4]={'uuid':TestDetails[_0x306a0c(0x19a)](this[_0x306a0c(0x112)](_0x58126b,_0x30ef0b[_0x306a0c(0x193)])),'startedAt':_0x30ef0b[_0x306a0c(0x18a)]},_0x3d9cd9[_0x306a0c(0x175)](trace,'Test\x20Started\x20with\x20unique\x20id\x20'+_0x2f30f4),await this[_0x306a0c(0x1c3)](_0x58126b,_0x3d9cd9[_0x306a0c(0x12f)],_0x30ef0b);}async[a41_0x5e6a5c(0x1c8)](_0x544e70,_0x5736bd,_0x27ddca){const _0x1beabb=a41_0x5e6a5c,_0x3cb326={'ZiwIZ':function(_0x10fa5b,_0x12dfd6){return _0x10fa5b(_0x12dfd6);},'NzNAU':'HookRunStarted'};if(!this[_0x1beabb(0x1d0)](_0x27ddca,_0x544e70))return;const _0x11d629=this['setStepIdentifier'](_0x544e70,_0x27ddca);this[_0x1beabb(0x1a3)][_0x11d629]={'uuid':TestDetails['getTestUUID'](_0x11d629),'startedAt':_0x27ddca[_0x1beabb(0x18a)]['toISOString']()};const _0x4a06cf=this[_0x1beabb(0x112)](_0x544e70,_0x5736bd[_0x1beabb(0x193)]);!this[_0x1beabb(0x157)][_0x4a06cf]&&(this[_0x1beabb(0x157)][_0x4a06cf]=[]),this['_testHooksMap'][_0x4a06cf][_0x1beabb(0x1be)](this['_tests'][_0x11d629][_0x1beabb(0x1d5)]),_0x3cb326[_0x1beabb(0x1d9)](trace,_0x1beabb(0x135)+_0x11d629+_0x1beabb(0x1ab)+_0x4a06cf),await this[_0x1beabb(0x120)](_0x544e70,_0x27ddca,_0x3cb326[_0x1beabb(0x19d)],_0x5736bd);}async['onStepEnd'](_0x56a5c4,_0x46e3d1,_0x53c285){const _0x4957ce=a41_0x5e6a5c,_0x530581={'YlVUL':function(_0x318f55,_0x3eb8e4){return _0x318f55+_0x3eb8e4;},'RnYwy':function(_0x2c6255,_0xfab9a){return _0x2c6255(_0xfab9a);},'WyHCA':_0x4957ce(0x10d)};if(!this[_0x4957ce(0x1d0)](_0x53c285,_0x56a5c4))return;const _0x4d2546=this[_0x4957ce(0x162)](_0x56a5c4,_0x53c285);this['_tests'][_0x4d2546]={...this['_tests'][_0x4d2546]||{},'finishedAt':new Date(_0x530581[_0x4957ce(0x134)](_0x53c285['startTime'][_0x4957ce(0x18b)](),_0x53c285['duration']))},_0x530581[_0x4957ce(0x146)](trace,'Hook\x20Finished\x20with\x20unique\x20id\x20'+_0x4d2546+_0x4957ce(0x1d1)),await this[_0x4957ce(0x120)](_0x56a5c4,_0x53c285,_0x530581[_0x4957ce(0x17d)],_0x46e3d1);}async[a41_0x5e6a5c(0x118)](_0x48d44b,_0x554dcf){const _0x1a7641=a41_0x5e6a5c,_0x335e6d={'UBLJe':function(_0x207472,_0x207693){return _0x207472===_0x207693;},'GOjcX':_0x1a7641(0x1b6),'nHZOh':_0x1a7641(0x116),'VdMbt':_0x1a7641(0x18f),'RIyYM':function(_0x9a7bd1,_0x2dc538){return _0x9a7bd1(_0x2dc538);},'rJWtA':_0x1a7641(0x153),'WNLte':function(_0x330b7d,_0x3d2001){return _0x330b7d>_0x3d2001;}},_0x1f9032=this[_0x1a7641(0x19c)](_0x48d44b),_0x54d745=TestDetails[_0x1a7641(0x19a)](this['getTestRunIdentifier'](_0x48d44b,_0x554dcf[_0x1a7641(0x193)]));this[_0x1a7641(0x1a3)][_0x1f9032]={...this['_tests'][_0x1f9032]||{},'finishedAt':new Date()[_0x1a7641(0x151)]()},_0x335e6d['RIyYM'](trace,'Test\x20Finished\x20with\x20unique\x20id\x20'+_0x1f9032),await this[_0x1a7641(0x1c3)](_0x48d44b,_0x335e6d['rJWtA'],_0x554dcf);const _0x568e51=[];_0x554dcf['attachments']&&_0x554dcf[_0x1a7641(0x1ae)][_0x1a7641(0x11f)](_0x23000a=>{const _0xe924e0=_0x1a7641;if(_0x335e6d[_0xe924e0(0x1b9)](_0x23000a['name'],_0x335e6d[_0xe924e0(0x1b8)])){if(!fs['existsSync'](_0x23000a[_0xe924e0(0x11a)]))return;_0x568e51['push']({'test_run_uuid':_0x54d745,'timestamp':fs[_0xe924e0(0x1a9)](_0x23000a[_0xe924e0(0x11a)])['mtime'],'kind':_0x335e6d[_0xe924e0(0x197)],'message':fs[_0xe924e0(0x10c)](_0x23000a[_0xe924e0(0x11a)],{'encoding':_0x335e6d[_0xe924e0(0x1da)]})});}}),_0x335e6d[_0x1a7641(0x1bd)](_0x568e51[_0x1a7641(0x1c9)],0x0)&&await MyReporter['reportLogs'](_0x568e51);}async[a41_0x5e6a5c(0x189)](){const _0x70e510=a41_0x5e6a5c;await RequestQueueHandler[_0x70e510(0x16c)]()[_0x70e510(0x12d)](),TestDetails[_0x70e510(0x12d)]();}async[a41_0x5e6a5c(0x1cd)](_0x52b6e8){const _0x2de41d=a41_0x5e6a5c,_0x4ef50b={'ZQwjo':function(_0x52cf53){return _0x52cf53();},'AisxE':function(_0x2ae36b,_0x2c9b15){return _0x2ae36b(_0x2c9b15);}};await this[_0x2de41d(0x189)](),_0x4ef50b[_0x2de41d(0x16e)](printBuildLink);try{process['env']['BROWSERSTACK_O11Y_PERF_MEASUREMENT']&&await _0x4ef50b[_0x2de41d(0x16e)](calculatePerformance);}catch(_0x3ff539){_0x4ef50b[_0x2de41d(0x11c)](debug,_0x2de41d(0x16f)+_0x3ff539['toString']());}}static async['addTestUIDAndReportLog'](_0x132f2f,_0x3c8e04){const _0x34fa5a=a41_0x5e6a5c;_0x3c8e04[_0x34fa5a(0x110)]=TestDetails[_0x34fa5a(0x19a)](_0x132f2f),await this[_0x34fa5a(0x15b)]([_0x3c8e04]);}static async['reportLogs'](_0x1a7fc2){const _0x2088a3=a41_0x5e6a5c,_0x583cc2={};_0x583cc2[_0x2088a3(0x136)]=_0x2088a3(0x12b);const _0x32e294=_0x583cc2,_0x472906={};_0x472906[_0x2088a3(0x1d6)]=_0x32e294[_0x2088a3(0x136)],_0x472906[_0x2088a3(0x127)]=_0x1a7fc2,await SessionHandler[_0x2088a3(0x173)](_0x472906);}async['sendHookRunEvent'](_0x44ed04,_0x23bc94,_0x31d462,_0x216a89){const _0x35fca0=a41_0x5e6a5c,_0x3cc5ed={'TSSne':'hook','lBGqQ':_0x35fca0(0x114),'jXAjS':_0x35fca0(0x1c4),'ucqVY':function(_0x2224bd,_0x5ca065){return _0x2224bd>=_0x5ca065;},'GfNra':function(_0x1ce173,_0x19db2f){return _0x1ce173===_0x19db2f;},'NjOxD':_0x35fca0(0x10d),'pcejR':function(_0x4e93cc,_0x49f51c){return _0x4e93cc>_0x49f51c;},'cEUsn':_0x35fca0(0x1ba),'AegIc':function(_0x2340ca,_0x2b3723){return _0x2340ca(_0x2b3723);},'sEPRL':function(_0x5165a5,_0x5b04fa){return _0x5165a5(_0x5b04fa);},'edHNt':function(_0x292ed7,_0x2d5e12,_0x8f36d4){return _0x292ed7(_0x2d5e12,_0x8f36d4);},'SDCAH':_0x35fca0(0x152),'uNcRq':_0x35fca0(0x17b)},_0x2bc716=this[_0x35fca0(0x162)](_0x44ed04,_0x23bc94),_0x30193f=this[_0x35fca0(0x1a3)][_0x2bc716],_0x3a94f4={'uuid':_0x30193f[_0x35fca0(0x1d5)],'type':_0x3cc5ed[_0x35fca0(0x141)],'hook_type':this['getHookType'](_0x23bc94[_0x35fca0(0x1af)]),'name':_0x23bc94[_0x35fca0(0x1af)],'scope':this[_0x35fca0(0x140)](_0x23bc94),'scopes':this[_0x35fca0(0x1c2)](_0x44ed04),'body':{'lang':_0x3cc5ed['lBGqQ'],'code':null},'identifier':_0x2bc716,'file_name':path[_0x35fca0(0x15c)](process[_0x35fca0(0x115)](),_0x44ed04[_0x35fca0(0x122)][_0x35fca0(0x11e)]),'location':path[_0x35fca0(0x15c)](process['cwd'](),_0x44ed04['location']['file']),'result':_0x3cc5ed[_0x35fca0(0x1b5)],'duration_in_ms':_0x3cc5ed[_0x35fca0(0x13f)](_0x23bc94[_0x35fca0(0x176)],0x0)?_0x23bc94[_0x35fca0(0x176)]:undefined,'vc_filepath':this['_gitConfigPath']&&_0x44ed04[_0x35fca0(0x122)][_0x35fca0(0x11e)]?path[_0x35fca0(0x15c)](this[_0x35fca0(0x1a4)],_0x44ed04[_0x35fca0(0x122)][_0x35fca0(0x11e)]):undefined,'started_at':_0x30193f[_0x35fca0(0x159)],'finished_at':_0x30193f[_0x35fca0(0x196)],'framework':FRAMEWORKS['PLAYWRIGHT']};if(_0x3cc5ed[_0x35fca0(0x1db)](_0x31d462,_0x3cc5ed[_0x35fca0(0x158)])){const {steps:_0x58e691,logs:_0xd2abae}=this['getStepsAndLogs'](_0x23bc94[_0x35fca0(0x10b)],_0x30193f['uuid'],_0x3cc5ed[_0x35fca0(0x141)]);_0xd2abae&&_0x3cc5ed[_0x35fca0(0x119)](_0xd2abae[_0x35fca0(0x1c9)],0x0)&&await MyReporter['reportLogs'](_0xd2abae);const _0x16f5d6={};_0x16f5d6[_0x35fca0(0x10b)]=_0x58e691,_0x3a94f4['meta']=_0x16f5d6;if(_0x23bc94[_0x35fca0(0x14b)]){_0x3a94f4[_0x35fca0(0x15a)]=_0x3cc5ed['cEUsn'],_0x3a94f4[_0x35fca0(0x14e)]=_0x3cc5ed[_0x35fca0(0x1bf)](removeAnsiColors,_0x23bc94['error']['message']),_0x3a94f4[_0x35fca0(0x15d)]=_0x3cc5ed[_0x35fca0(0x169)](getFailureType,_0x23bc94[_0x35fca0(0x14b)][_0x35fca0(0x138)]);const _0xd2b094=_0x3cc5ed['edHNt'](failureData,_0x23bc94[_0x35fca0(0x14b)],_0x3cc5ed[_0x35fca0(0x184)]);if(_0xd2b094&&_0x3cc5ed[_0x35fca0(0x1db)](_0xd2b094[_0x35fca0(0x1c9)],0x0)){const _0x7c80e5={};_0x7c80e5[_0x35fca0(0x18d)]=[_0x3a94f4[_0x35fca0(0x14e)]],_0x7c80e5[_0x35fca0(0x11b)]=[],_0xd2b094[_0x35fca0(0x1be)](_0x7c80e5);}_0x3a94f4['failure']=_0xd2b094;}else _0x3a94f4[_0x35fca0(0x15a)]=_0x3cc5ed[_0x35fca0(0x14d)];}const _0x4c5c6e={};_0x4c5c6e[_0x35fca0(0x1d6)]=_0x31d462,_0x4c5c6e[_0x35fca0(0x148)]=_0x3a94f4;const _0x20c70d=_0x4c5c6e;await SessionHandler[_0x35fca0(0x173)](_0x20c70d);}[a41_0x5e6a5c(0x13a)](_0x9171fa,_0x4d48bd,_0x592b01){const _0x1aa60f=a41_0x5e6a5c,_0x2c8305={'keQSX':function(_0x208bc5,_0x3309df){return _0x208bc5===_0x3309df;},'ZhUZc':_0x1aa60f(0x1b2),'FnHcX':_0x1aa60f(0x109),'YygYB':_0x1aa60f(0x1c5),'JXBuD':'test','BdQqQ':_0x1aa60f(0x110),'KkLjO':'hook_run_uuid','nDwzW':_0x1aa60f(0x198),'hvxSp':'failed','fRXcW':'passed','kjRHG':function(_0x4a648d,_0x58328d){return _0x4a648d(_0x58328d);},'sVTKp':function(_0x31502a,_0x207f1a){return _0x31502a(_0x207f1a);},'OFpAF':function(_0x5284f1){return _0x5284f1();},'xUhrY':function(_0x8bc15e,_0x435521){return _0x8bc15e(_0x435521);},'RdPAn':function(_0x5c596f,_0x1b1c34,_0x468088){return _0x5c596f(_0x1b1c34,_0x468088);}},_0x1c1be3=[],_0x2f8173=[],_0x54f7b2=_0x9171fa['filter'](_0x955d3e=>{const _0x357a14=_0x1aa60f;if(_0x2c8305['keQSX'](_0x955d3e[_0x357a14(0x1b7)],_0x2c8305[_0x357a14(0x13b)])&&(_0x2c8305[_0x357a14(0x125)](_0x955d3e[_0x357a14(0x1af)],_0x2c8305[_0x357a14(0x108)])||_0x2c8305['keQSX'](_0x955d3e['title'],_0x2c8305[_0x357a14(0x1bb)])))return![];return!![];}),_0x4a7315=(_0x56eb3b,_0x3fefa1=![])=>{const _0x3c598b=_0x1aa60f;if(_0x2c8305[_0x3c598b(0x125)](_0x56eb3b[_0x3c598b(0x10b)][_0x3c598b(0x1c9)],0x0)){const _0x5f5391=_0x2c8305[_0x3c598b(0x125)](_0x592b01,_0x2c8305['JXBuD'])?_0x2c8305[_0x3c598b(0x183)]:_0x2c8305[_0x3c598b(0x192)];_0x2f8173['push']({'kind':_0x2c8305[_0x3c598b(0x14f)],[_0x5f5391]:_0x4d48bd,'message':_0x56eb3b['title'],'timestamp':_0x56eb3b['startTime'][_0x3c598b(0x151)](),'level':_0x56eb3b[_0x3c598b(0x14b)]?_0x2c8305[_0x3c598b(0x177)]:_0x2c8305[_0x3c598b(0x12a)],'duration':_0x56eb3b['duration'],'failure':_0x56eb3b['error']&&_0x56eb3b[_0x3c598b(0x14b)][_0x3c598b(0x138)]&&_0x2c8305[_0x3c598b(0x10f)](removeAnsiColors,_0x56eb3b[_0x3c598b(0x14b)][_0x3c598b(0x138)]),'failure_type':_0x2c8305[_0x3c598b(0x1a5)](getFailureType,_0x56eb3b['error']&&_0x56eb3b['error'][_0x3c598b(0x138)])});}else{!_0x3fefa1&&_0x1c1be3[_0x3c598b(0x1be)]({'id':_0x2c8305[_0x3c598b(0x185)](uuidv4),'text':_0x56eb3b['title'],'keyword':undefined,'started_at':_0x56eb3b[_0x3c598b(0x18a)]['toISOString'](),'duration':_0x56eb3b['duration'],'result':_0x56eb3b[_0x3c598b(0x14b)]?_0x2c8305['hvxSp']:_0x2c8305[_0x3c598b(0x12a)],'failure':_0x56eb3b['error']&&_0x56eb3b[_0x3c598b(0x14b)][_0x3c598b(0x138)]&&_0x2c8305['kjRHG'](removeAnsiColors,_0x56eb3b['error']['message']),'failure_type':_0x2c8305['xUhrY'](getFailureType,_0x56eb3b[_0x3c598b(0x14b)]&&_0x56eb3b[_0x3c598b(0x14b)][_0x3c598b(0x138)])});for(const _0x3ad01c of _0x56eb3b[_0x3c598b(0x10b)]){_0x2c8305[_0x3c598b(0x194)](_0x4a7315,_0x3ad01c,!![]);}}};for(const _0x1e6a45 of _0x54f7b2){_0x2c8305[_0x1aa60f(0x194)](_0x4a7315,_0x1e6a45,![]);}const _0x5145df={};return _0x5145df[_0x1aa60f(0x10b)]=_0x1c1be3,_0x5145df[_0x1aa60f(0x127)]=_0x2f8173,_0x5145df;}async[a41_0x5e6a5c(0x1c3)](_0x2bc30c,_0x39d290,_0x1b90bd){const _0x7c8e17=a41_0x5e6a5c,_0x5c962a={'mHpbn':_0x7c8e17(0x1b4),'SNmeI':_0x7c8e17(0x114),'WgxqF':_0x7c8e17(0x1c4),'OVZGY':function(_0x981258,_0x2d4b72){return _0x981258(_0x2d4b72);},'szGDr':function(_0x3411bf,_0x413066,_0xd94d0,_0x3057e1,_0x4c252b){return _0x3411bf(_0x413066,_0xd94d0,_0x3057e1,_0x4c252b);},'xEUaq':function(_0x285216,_0x4d1184){return _0x285216>_0x4d1184;},'ekxkP':function(_0x2e10b8,_0x2703d0){return _0x2e10b8-_0x2703d0;},'PqyRF':function(_0x5ef1c8,_0x3b6d32){return _0x5ef1c8===_0x3b6d32;},'Gbjqy':_0x7c8e17(0x153),'RxLFD':function(_0x50b6bf,_0x629d3b){return _0x50b6bf===_0x629d3b;},'MhOYE':_0x7c8e17(0x180),'DvLmB':'passed','KZHDx':function(_0x1a5893,_0x1e4097){return _0x1a5893===_0x1e4097;},'lKObA':_0x7c8e17(0x1ba),'vbUTk':'timedOut','CubgE':function(_0x262718,_0x363b10){return _0x262718===_0x363b10;},'LyTCt':_0x7c8e17(0x123),'YDiLa':function(_0x545de5,_0xf17b2){return _0x545de5(_0xf17b2);},'wZOjj':function(_0x3a716a,_0x362d29,_0x14b8a4){return _0x3a716a(_0x362d29,_0x14b8a4);},'aaZLw':function(_0x3df9ee,_0x47c30a){return _0x3df9ee===_0x47c30a;}},_0x4bb81f=this[_0x7c8e17(0x19c)](_0x2bc30c),_0x4a6664=this[_0x7c8e17(0x140)](_0x2bc30c),_0x341803=this[_0x7c8e17(0x1a3)][_0x4bb81f],_0x481d65=path[_0x7c8e17(0x15c)](process['cwd'](),_0x2bc30c[_0x7c8e17(0x122)][_0x7c8e17(0x11e)]);await this[_0x7c8e17(0x1ad)]();const _0x5480e8={'uuid':_0x341803['uuid'],'type':_0x5c962a[_0x7c8e17(0x1cf)],'name':_0x2bc30c[_0x7c8e17(0x1af)],'body':{'lang':_0x5c962a[_0x7c8e17(0x17a)],'code':_0x2bc30c['fn']['toString']()},'scope':_0x4a6664,'scopes':this[_0x7c8e17(0x1c2)](_0x2bc30c),'identifier':_0x4bb81f,'file_name':_0x481d65,'location':_0x481d65,'result':_0x5c962a['WgxqF'],'duration_in_ms':_0x1b90bd&&_0x1b90bd[_0x7c8e17(0x176)]?_0x1b90bd[_0x7c8e17(0x176)]:null,'vc_filepath':this[_0x7c8e17(0x1a4)]&&_0x2bc30c[_0x7c8e17(0x122)][_0x7c8e17(0x11e)]?path['relative'](this[_0x7c8e17(0x1a4)],_0x2bc30c[_0x7c8e17(0x122)][_0x7c8e17(0x11e)]):undefined,'started_at':_0x341803['startedAt'],'finished_at':_0x341803['finishedAt'],'framework':FRAMEWORKS[_0x7c8e17(0x126)],'customRerunParam':{'rerun_name':_0x2bc30c['titlePath']()['join']('\x20')},'tags':_0x5c962a[_0x7c8e17(0x19b)](getTagsFromTitle,_0x2bc30c[_0x7c8e17(0x1af)])};_0x5c962a[_0x7c8e17(0x179)](appendTesthubParams,_0x5480e8,_0x39d290,_0x2bc30c,FRAMEWORKS[_0x7c8e17(0x126)]);_0x1b90bd&&_0x5c962a[_0x7c8e17(0x17e)](_0x1b90bd[_0x7c8e17(0x193)],0x0)&&(_0x5480e8['retry_of']=TestDetails[_0x7c8e17(0x19a)](this['getTestRunIdentifier'](_0x2bc30c,_0x5c962a[_0x7c8e17(0x149)](_0x1b90bd['retry'],0x1))));if(_0x5c962a[_0x7c8e17(0x1dc)](_0x39d290,_0x5c962a[_0x7c8e17(0x170)])){_0x5480e8[_0x7c8e17(0x15a)]=_0x1b90bd[_0x7c8e17(0x147)];if(_0x5c962a[_0x7c8e17(0x1dc)](_0x1b90bd[_0x7c8e17(0x147)],_0x2bc30c[_0x7c8e17(0x16b)]))_0x5480e8['result']=_0x5c962a[_0x7c8e17(0x130)](_0x1b90bd[_0x7c8e17(0x147)],_0x5c962a[_0x7c8e17(0x143)])?_0x5c962a[_0x7c8e17(0x143)]:_0x5c962a[_0x7c8e17(0x195)];else{(_0x5c962a[_0x7c8e17(0x130)](_0x5480e8['result'],_0x5c962a[_0x7c8e17(0x195)])||_0x5c962a[_0x7c8e17(0x15f)](_0x5480e8[_0x7c8e17(0x15a)],_0x5c962a[_0x7c8e17(0x161)])||_0x5c962a[_0x7c8e17(0x130)](_0x5480e8['result'],_0x5c962a[_0x7c8e17(0x17f)]))&&(_0x5480e8[_0x7c8e17(0x15a)]=_0x5c962a[_0x7c8e17(0x161)]);if(_0x5c962a['CubgE'](_0x1b90bd[_0x7c8e17(0x147)],_0x5c962a[_0x7c8e17(0x195)])&&_0x5c962a[_0x7c8e17(0x1dc)](_0x2bc30c[_0x7c8e17(0x16b)],_0x5c962a['lKObA'])){const _0xe1b2c9={};_0xe1b2c9['message']=_0x5c962a[_0x7c8e17(0x187)],_0xe1b2c9[_0x7c8e17(0x16a)]=_0x5c962a[_0x7c8e17(0x187)],_0x1b90bd['error']=_0xe1b2c9,_0x1b90bd[_0x7c8e17(0x1a7)]=[_0x1b90bd[_0x7c8e17(0x14b)]];}}const _0x3f78a0=this[_0x7c8e17(0x112)](_0x2bc30c,_0x1b90bd[_0x7c8e17(0x193)]);_0x5480e8[_0x7c8e17(0x1cc)]=this['_testHooksMap'][_0x3f78a0];const {steps:_0x205ee5,logs:_0x575429}=this['getStepsAndLogs'](_0x1b90bd['steps'],_0x341803[_0x7c8e17(0x1d5)],_0x5c962a[_0x7c8e17(0x1cf)]);await MyReporter[_0x7c8e17(0x15b)](_0x575429);const _0x31804f={};_0x31804f[_0x7c8e17(0x10b)]=_0x205ee5,_0x5480e8['meta']=_0x31804f;if(_0x1b90bd[_0x7c8e17(0x14b)]){_0x5480e8[_0x7c8e17(0x14e)]=_0x5c962a[_0x7c8e17(0x167)](removeAnsiColors,_0x1b90bd[_0x7c8e17(0x14b)][_0x7c8e17(0x138)]),_0x5480e8['failure_type']=_0x5c962a[_0x7c8e17(0x19b)](getFailureType,_0x1b90bd['error']['message']);const _0x32bdf6={};_0x32bdf6[_0x7c8e17(0x110)]=_0x341803[_0x7c8e17(0x1d5)];const {failureData:_0x462998,logs:_0xcb9cb8}=_0x5c962a[_0x7c8e17(0x1aa)](getFailureData,_0x1b90bd[_0x7c8e17(0x1a7)],_0x32bdf6);if(_0x462998&&_0x5c962a[_0x7c8e17(0x111)](_0x462998[_0x7c8e17(0x1c9)],0x0)){const _0x19eb4f={};_0x19eb4f[_0x7c8e17(0x18d)]=[_0x5480e8['failure_reason']],_0x19eb4f['expanded']=[],_0x462998['push'](_0x19eb4f);}_0x5480e8['failure']=_0x462998,_0xcb9cb8&&_0x5c962a[_0x7c8e17(0x17e)](_0xcb9cb8[_0x7c8e17(0x1c9)],0x0)&&await MyReporter['reportLogs'](_0xcb9cb8);}}const _0x30cf20={};_0x30cf20[_0x7c8e17(0x1d6)]=_0x39d290,_0x30cf20[_0x7c8e17(0x113)]=_0x5480e8;const _0x1759ae=_0x30cf20;await SessionHandler[_0x7c8e17(0x173)](_0x1759ae);}static async[a41_0x5e6a5c(0x144)](_0x2b9188,_0x55d515){const _0x282165=a41_0x5e6a5c,_0x5d04e0={'lcnPU':function(_0x517c9f,_0x30cbfe){return _0x517c9f(_0x30cbfe);},'oYmjs':'CBTSessionCreated'},_0x1d1925={'uuid':TestDetails[_0x282165(0x19a)](_0x2b9188),'integrations':_0x55d515},_0x18eb5a={};_0x18eb5a['depth']=null,_0x5d04e0[_0x282165(0x10e)](debug,_0x282165(0x121)+_0x2b9188+',\x20'+util[_0x282165(0x117)](_0x55d515,_0x18eb5a));const _0x3a313c={};_0x3a313c[_0x282165(0x1d6)]=_0x5d04e0[_0x282165(0x18e)],_0x3a313c[_0x282165(0x113)]=_0x1d1925,await SessionHandler[_0x282165(0x173)](_0x3a313c);}async[a41_0x5e6a5c(0x1ad)](){const _0x51292c=a41_0x5e6a5c,_0x4d8f60={'WXdkF':function(_0x56a8fe){return _0x56a8fe();}};if(this[_0x51292c(0x128)])return;const _0x33fad3=await _0x4d8f60['WXdkF'](getGitMetaData);_0x33fad3&&(this['_gitConfigPath']=_0x33fad3['root']),this[_0x51292c(0x128)]=!![];}['getHierarchy'](_0x200fde){const _0x39e4cc=a41_0x5e6a5c,_0x5db8ff={};_0x5db8ff['RCdRH']=function(_0x555418,_0x1a2983){return _0x555418!==_0x1a2983;};const _0x3e5259=_0x5db8ff,_0x361514=[];if(_0x200fde&&_0x200fde[_0x39e4cc(0x12e)]){let _0x12280f=_0x200fde['parent'];while(_0x12280f&&_0x3e5259[_0x39e4cc(0x17c)](_0x12280f[_0x39e4cc(0x1af)],'')){_0x361514[_0x39e4cc(0x1be)](_0x12280f[_0x39e4cc(0x1af)]),_0x12280f=_0x12280f[_0x39e4cc(0x12e)];}}return _0x361514[_0x39e4cc(0x15e)]()[_0x39e4cc(0x1c6)](0x0,0x2),_0x361514;}[a41_0x5e6a5c(0x1d0)](_0x1849b1){const _0x585875=a41_0x5e6a5c,_0x18b65c={};_0x18b65c['XKiRD']=function(_0x3c37e3,_0x4a5acf){return _0x3c37e3!==_0x4a5acf;},_0x18b65c[_0x585875(0x160)]=_0x585875(0x1b2),_0x18b65c[_0x585875(0x1c0)]=function(_0x3e1a15,_0x2747a4){return _0x3e1a15===_0x2747a4;},_0x18b65c['EWsJY']=_0x585875(0x19e),_0x18b65c['pRutC']=_0x585875(0x1a1),_0x18b65c['OQgla']='afterAll\x20hook',_0x18b65c[_0x585875(0x182)]='afterEach\x20hook';const _0x4a056c=_0x18b65c;if(_0x4a056c[_0x585875(0x1a0)](_0x1849b1['category'],_0x4a056c[_0x585875(0x160)]))return![];if(_0x4a056c[_0x585875(0x1c0)]([_0x4a056c[_0x585875(0x16d)],_0x4a056c[_0x585875(0x10a)],_0x4a056c[_0x585875(0x1ac)],_0x4a056c[_0x585875(0x182)]]['indexOf'](_0x1849b1[_0x585875(0x1af)]),-0x1))return![];return!![];}[a41_0x5e6a5c(0x162)](_0x479f66,_0x39edba){const _0x24bd8c=a41_0x5e6a5c,_0x2180ab=_0x39edba[_0x24bd8c(0x163)];if(_0x2180ab)return _0x2180ab;return _0x39edba['title']+'\x20for\x20'+this[_0x24bd8c(0x19c)](_0x479f66);}['setStepIdentifier'](_0x2c8ebe,_0xc49d55){const _0x3947cf=a41_0x5e6a5c,_0xb7a67c={'HfxLy':function(_0x5e7637){return _0x5e7637();}};let _0x3e271d=_0xc49d55[_0x3947cf(0x1af)]+_0x3947cf(0x131)+this[_0x3947cf(0x19c)](_0x2c8ebe);return this[_0x3947cf(0x1a3)][_0x3e271d]&&(_0x3e271d=_0x3e271d+_0x3947cf(0x154)+_0xb7a67c[_0x3947cf(0x1b3)](uuidv4)),_0xc49d55[_0x3947cf(0x163)]=_0x3e271d,_0x3e271d;}[a41_0x5e6a5c(0x19c)]=_0xd44ab3=>{const _0x5f5c05=a41_0x5e6a5c,_0x5b9aa0={};_0x5b9aa0['WLnWV']=function(_0x4a5a14,_0xf93f2){return _0x4a5a14+_0xf93f2;};const _0x336d20=_0x5b9aa0;return _0x336d20[_0x5f5c05(0x1c1)](_0x336d20[_0x5f5c05(0x1c1)](_0xd44ab3['_projectId'],'-'),_0xd44ab3['id']);};[a41_0x5e6a5c(0x112)]=(_0x3f605d,_0x40b31e)=>{const _0x30d8cb=a41_0x5e6a5c,_0xc685e2={};_0xc685e2[_0x30d8cb(0x174)]=function(_0x505c42,_0x4cc22e){return _0x505c42+_0x4cc22e;};const _0x2e284b=_0xc685e2;return _0x2e284b[_0x30d8cb(0x174)](_0x2e284b[_0x30d8cb(0x174)](this[_0x30d8cb(0x19c)](_0x3f605d),'-'),_0x40b31e);};['getHookType']=_0x576da7=>{const _0x3174e4=a41_0x5e6a5c,_0x49336c={};_0x49336c[_0x3174e4(0x124)]=_0x3174e4(0x19e),_0x49336c[_0x3174e4(0x190)]=_0x3174e4(0x11d),_0x49336c['vTEqc']='beforeAll\x20hook',_0x49336c['xFKhp']=_0x3174e4(0x1ca),_0x49336c[_0x3174e4(0x186)]='afterEach\x20hook',_0x49336c[_0x3174e4(0x155)]='AFTER_EACH',_0x49336c[_0x3174e4(0x139)]=_0x3174e4(0x1d7),_0x49336c[_0x3174e4(0x13e)]='AFTER_ALL',_0x49336c['IDbPB']=_0x3174e4(0x164);const _0x4e60bd=_0x49336c;if(_0x576da7[_0x3174e4(0x166)](_0x4e60bd[_0x3174e4(0x124)]))return _0x4e60bd['IonZt'];else{if(_0x576da7['startsWith'](_0x4e60bd['vTEqc']))return _0x4e60bd[_0x3174e4(0x171)];else{if(_0x576da7[_0x3174e4(0x166)](_0x4e60bd[_0x3174e4(0x186)]))return _0x4e60bd[_0x3174e4(0x155)];else{if(_0x576da7[_0x3174e4(0x166)](_0x4e60bd[_0x3174e4(0x139)]))return _0x4e60bd[_0x3174e4(0x13e)];}}}return _0x4e60bd['IDbPB'];};[a41_0x5e6a5c(0x140)]=_0x381203=>{const _0x31b745=a41_0x5e6a5c,_0x3c79b4={};_0x3c79b4[_0x31b745(0x142)]=function(_0x393460,_0xb8496e){return _0x393460===_0xb8496e;},_0x3c79b4[_0x31b745(0x1bc)]='object';const _0x3c8407=_0x3c79b4;let _0x2d956d=_0x381203['parent'];return _0x3c8407[_0x31b745(0x142)](typeof _0x381203['parent'],_0x3c8407[_0x31b745(0x1bc)])&&(_0x2d956d=_0x2d956d[_0x31b745(0x1af)]),_0x2d956d+'\x20-\x20'+_0x381203[_0x31b745(0x1af)];};[a41_0x5e6a5c(0x199)](){return![];}}module[a41_0x5e6a5c(0x13d)]=o11yClassErrorHandler(MyReporter,['onBegin',a41_0x5e6a5c(0x189),a41_0x5e6a5c(0x133),a41_0x5e6a5c(0x118),a41_0x5e6a5c(0x1c8),a41_0x5e6a5c(0x156),a41_0x5e6a5c(0x144)],a41_0x5e6a5c(0x14a));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a42_0x39fe(){const _0xa5d7df=['IsfeP','GQxzq','EOIdx','26148txuvMY','mkdirSync','1209257KiBqEh','testId','tests','1774836PKaoYX','setTestDetails','.json','PKLQt','uYzjU','path','env','BS_TESTOPS_BUILD_HASHED_ID','getTestIdFromTestInfo','getProjectIdFromTestInfo','cwd','69530qgWizF','TZKbc','recursive','writeFileSync','__projectId','getTestUUID','parse','_projectId','../../../helpers/helper','1642375uMpkSz','64660nLcHZm','existsSync','uuid','toString','setup','getFilePath','XyJLl','6frTOdO','string','zDLeE','OVkIQ','../../../helpers/test-observability/constants','cGTnG','175471pTUpKp','getTestRunIdFromTestInfo','dirPath','stringify','setAccessibilityPlatformValidation','407Qpznaj','JBLED','exports','bcuUj','8aMkixb','_platformDetails.json','join','readFileSync','getAccessibilityPlatformValidation','getStoreDirName','8BSthqT'];a42_0x39fe=function(){return _0xa5d7df;};return a42_0x39fe();}const a42_0x4b2caa=a42_0x392c;(function(_0x471efc,_0x4d5b4e){const _0x197be6=a42_0x392c,_0x1c556f=_0x471efc();while(!![]){try{const _0x5888ca=parseInt(_0x197be6(0x1af))/0x1+-parseInt(_0x197be6(0x1a2))/0x2+-parseInt(_0x197be6(0x188))/0x3*(parseInt(_0x197be6(0x184))/0x4)+-parseInt(_0x197be6(0x1a1))/0x5*(-parseInt(_0x197be6(0x1a9))/0x6)+-parseInt(_0x197be6(0x18a))/0x7*(-parseInt(_0x197be6(0x1b8))/0x8)+-parseInt(_0x197be6(0x18d))/0x9+-parseInt(_0x197be6(0x198))/0xa*(parseInt(_0x197be6(0x1b4))/0xb);if(_0x5888ca===_0x4d5b4e)break;else _0x1c556f['push'](_0x1c556f['shift']());}catch(_0x117618){_0x1c556f['push'](_0x1c556f['shift']());}}}(a42_0x39fe,0x2a1b6));function a42_0x392c(_0x4d967c,_0x32c59d){const _0x39fe2b=a42_0x39fe();return a42_0x392c=function(_0x392c48,_0x281f07){_0x392c48=_0x392c48-0x180;let _0x82d4ab=_0x39fe2b[_0x392c48];return _0x82d4ab;},a42_0x392c(_0x4d967c,_0x32c59d);}const fs=require('fs'),path=require(a42_0x4b2caa(0x192)),{v4:uuidv4}=require(a42_0x4b2caa(0x1a4)),{TEMP_STORE_DIR_NAME}=require(a42_0x4b2caa(0x1ad)),{nestedKeyValue}=require(a42_0x4b2caa(0x1a0));class TestDetails{static ['tests']={};static [a42_0x4b2caa(0x1b1)]=path[a42_0x4b2caa(0x180)](process['cwd'](),TestDetails[a42_0x4b2caa(0x183)]());static[a42_0x4b2caa(0x1a6)](){const _0x215f3d=a42_0x4b2caa;this[_0x215f3d(0x1b1)]=path[_0x215f3d(0x180)](process[_0x215f3d(0x197)](),TestDetails['getStoreDirName']()),this['shutdown']();const _0x21e1ee={};_0x21e1ee[_0x215f3d(0x19a)]=!![],fs[_0x215f3d(0x189)](this[_0x215f3d(0x1b1)],_0x21e1ee);}static['getStoreDirName'](){const _0x54e6b5=a42_0x4b2caa,_0x3b3d35={};_0x3b3d35['zDLeE']=function(_0x25d03f,_0x2ff268){return _0x25d03f+_0x2ff268;};const _0x5c0c7d=_0x3b3d35;return _0x5c0c7d[_0x54e6b5(0x1ab)](_0x5c0c7d[_0x54e6b5(0x1ab)](TEMP_STORE_DIR_NAME,'-'),process[_0x54e6b5(0x193)][_0x54e6b5(0x194)]);}static[a42_0x4b2caa(0x1a7)](_0x284a55){const _0x3f8738=a42_0x4b2caa,_0x4880e2={};_0x4880e2[_0x3f8738(0x1a8)]=function(_0x321ccd,_0x2313e2){return _0x321ccd+_0x2313e2;},_0x4880e2[_0x3f8738(0x199)]=_0x3f8738(0x18f);const _0x35b353=_0x4880e2;return path[_0x3f8738(0x180)](this[_0x3f8738(0x1b1)],_0x35b353[_0x3f8738(0x1a8)](_0x284a55,_0x35b353[_0x3f8738(0x199)]));}static[a42_0x4b2caa(0x1b0)](_0x5e2740){const _0x15bd93=a42_0x4b2caa,_0x9c53ac={};_0x9c53ac[_0x15bd93(0x191)]=function(_0x1e2b28,_0x1dcc1a){return _0x1e2b28+_0x1dcc1a;},_0x9c53ac['OVkIQ']=function(_0x5b97b4,_0x58f2a0){return _0x5b97b4+_0x58f2a0;},_0x9c53ac[_0x15bd93(0x1ae)]=function(_0x442791,_0x1e9ba2){return _0x442791+_0x1e9ba2;};const _0x409271=_0x9c53ac;return _0x409271[_0x15bd93(0x191)](_0x409271[_0x15bd93(0x1ac)](_0x409271[_0x15bd93(0x1ae)](_0x409271['uYzjU'](this[_0x15bd93(0x196)](_0x5e2740),'-'),this[_0x15bd93(0x195)](_0x5e2740)),'-'),_0x5e2740['retry']);}static[a42_0x4b2caa(0x196)](_0x2ac06b){const _0x4cdde7=a42_0x4b2caa,_0x247968={'IsfeP':function(_0x52c9f2,_0x2742d8,_0x4986be){return _0x52c9f2(_0x2742d8,_0x4986be);},'EttPp':'_test','GQxzq':_0x4cdde7(0x19f),'PKLQt':'project','bcuUj':_0x4cdde7(0x19c)};return _0x247968[_0x4cdde7(0x185)](nestedKeyValue,_0x2ac06b,[_0x247968['EttPp'],_0x247968[_0x4cdde7(0x186)]])||_0x247968[_0x4cdde7(0x185)](nestedKeyValue,_0x2ac06b,[_0x247968[_0x4cdde7(0x190)],_0x247968[_0x4cdde7(0x1b7)]]);}static[a42_0x4b2caa(0x195)](_0xcdd217){const _0x407cdf=a42_0x4b2caa,_0x1757d0={'xKnJn':function(_0x15d066,_0x39fecb,_0x5b1f97){return _0x15d066(_0x39fecb,_0x5b1f97);},'JBLED':'_test'};return _0x1757d0['xKnJn'](nestedKeyValue,_0xcdd217,[_0x1757d0[_0x407cdf(0x1b5)],'id'])||_0xcdd217[_0x407cdf(0x18b)];}static[a42_0x4b2caa(0x19d)](_0x595bdf){const _0x1ff093=a42_0x4b2caa,_0x2fcf79={'ivDmr':function(_0x98cc42,_0x269027){return _0x98cc42===_0x269027;},'qCvIf':_0x1ff093(0x1aa),'EOIdx':function(_0xa32fa1){return _0xa32fa1();}};if(this[_0x1ff093(0x18c)][_0x595bdf]&&_0x2fcf79['ivDmr'](typeof this[_0x1ff093(0x18c)][_0x595bdf]['uuid'],_0x2fcf79['qCvIf']))return this[_0x1ff093(0x18c)][_0x595bdf][_0x1ff093(0x1a4)];const _0x206b58=this[_0x1ff093(0x1a7)](_0x595bdf);if(fs[_0x1ff093(0x1a3)](_0x206b58)){const _0x21bbf5=JSON['parse'](fs[_0x1ff093(0x181)](_0x206b58)['toString']());return this[_0x1ff093(0x18c)][_0x595bdf]=_0x21bbf5,this[_0x1ff093(0x18c)][_0x595bdf][_0x1ff093(0x1a4)];}return this[_0x1ff093(0x18c)][_0x595bdf]={'uuid':_0x2fcf79[_0x1ff093(0x187)](uuidv4)},fs[_0x1ff093(0x19b)](_0x206b58,JSON[_0x1ff093(0x1b2)](this['tests'][_0x595bdf])),this['tests'][_0x595bdf][_0x1ff093(0x1a4)];}static[a42_0x4b2caa(0x182)](_0x4cfbbc){const _0x3c8655=a42_0x4b2caa,_0x9aa345=path['join'](this[_0x3c8655(0x1b1)],_0x4cfbbc+'_platformDetails.json');if(fs[_0x3c8655(0x1a3)](_0x9aa345))return fs['readFileSync'](_0x9aa345)[_0x3c8655(0x1a5)]();}static[a42_0x4b2caa(0x1b3)](_0x4f83cb,_0x2b010d){const _0x514a0b=a42_0x4b2caa,_0x1ebbc6=path[_0x514a0b(0x180)](this[_0x514a0b(0x1b1)],_0x2b010d+_0x514a0b(0x1b9));fs[_0x514a0b(0x19b)](_0x1ebbc6,_0x4f83cb[_0x514a0b(0x1a5)]());}static['shutdown'](){const _0x7eb429=a42_0x4b2caa,_0x14d20a={};_0x14d20a[_0x7eb429(0x19a)]=!![],_0x14d20a['force']=!![],fs['rmSync'](this[_0x7eb429(0x1b1)],_0x14d20a);}static['getTestDetails'](_0x268483){const _0x304762=a42_0x4b2caa;if(this[_0x304762(0x18c)][_0x268483])return this['tests'][_0x268483];const _0x1ece37=this[_0x304762(0x1a7)](_0x268483);if(fs[_0x304762(0x1a3)](_0x1ece37)){const _0x589700=JSON[_0x304762(0x19e)](fs[_0x304762(0x181)](_0x1ece37)[_0x304762(0x1a5)]());return this['tests'][_0x268483]=_0x589700,_0x589700;}return{};}static[a42_0x4b2caa(0x18e)](_0x353742,_0x4f7518){const _0x580b17=a42_0x4b2caa,_0x53339c=this[_0x580b17(0x1a7)](_0x353742);if(fs[_0x580b17(0x1a3)](_0x53339c)){const _0x546f1b=JSON[_0x580b17(0x19e)](fs[_0x580b17(0x181)](_0x53339c)[_0x580b17(0x1a5)]()),_0x1b5308={..._0x546f1b,..._0x4f7518};this['tests'][_0x353742]=_0x1b5308;}else this[_0x580b17(0x18c)][_0x353742]=_0x4f7518;fs[_0x580b17(0x19b)](_0x53339c,this['tests'][_0x353742]);}}module[a42_0x4b2caa(0x1b6)]=TestDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a42_0x27c8bb=a42_0x52f4;(function(_0x1ec30f,_0x593a39){const _0xf82846=a42_0x52f4,_0x251b32=_0x1ec30f();while(!![]){try{const _0x325108=-parseInt(_0xf82846(0x150))/0x1*(parseInt(_0xf82846(0xdc))/0x2)+parseInt(_0xf82846(0x12c))/0x3+parseInt(_0xf82846(0x155))/0x4+-parseInt(_0xf82846(0x141))/0x5*(parseInt(_0xf82846(0x148))/0x6)+parseInt(_0xf82846(0x160))/0x7*(parseInt(_0xf82846(0xed))/0x8)+-parseInt(_0xf82846(0x125))/0x9+parseInt(_0xf82846(0x12e))/0xa;if(_0x325108===_0x593a39)break;else _0x251b32['push'](_0x251b32['shift']());}catch(_0x4a90f5){_0x251b32['push'](_0x251b32['shift']());}}}(a42_0xaf84,0x7c423));function a42_0xaf84(){const _0x328122=['bsParams','VgGHO','1295856axBLfm','query','platform_version','_connection','platformName','EtHdX','sessionId','ADOHn','apply','browserstack.com','pwPage','util','bstackPerformA11yScan','hAsOF','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','browser','OEHPs','Error\x20in\x20importing\x20crConnection','./accessibility-helper','kEqOW','exports','sHgZC','crConnection.js','connectOptions','xhdTk','qzNsD','vzMYX','bsSessionId','server','prototype','entries','rEUaK','patchCRConnection','browserstack','NtcXg','bStackParams','../../helpers/test-observability/error-handler','patchConnection','../../bin/playwright/accessibility-helper','ihWEd','cloudProvider','hxkWD','currentSessionDetails','_browserType','../../helpers/accessibility-automation/scripts','capabilities','CRConnection','_defaultConnectOptions','chromium','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','lBNfT','mDlZe','Connection','dUFOV','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','connection.js','4741326xHoFWi','../../helpers/test-observability/utils','method','toString','QOujg','getDetails','debug','2004414rlFXqR','currentTest','1411680qljLUM','qwxUk','Error\x20in\x20importing\x20connection\x20','channel','browserName','unknown_grid','firefox','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','__workerDetails','Page','fromEntries','Not\x20able\x20to\x20import\x20Connection','jChmZ','platformDetails','platformVersion','winstonLogger','LPwVh','platform','defineProperty','10HgweRB','_type','join','lib','local_grid','path','accessibilityPlatform','653922oDWWnT','sCuZx','version','isRemote','caps','gXkbp','sYNDB','params','33131bCMuss','POSpk','YsemM','testInfo','NXqjq','1571500NPrUPN','titlePath','dispatch','setupBrowserDetails','SqvbT','Lxoyp','BKHIf','__driver','client','sendMessageToServer','xdUNG','28jfLzly','Setting\x20session\x20id\x20received\x20from\x20BS\x20','IUPAM','playwright-','onLyv','automate','ypvzk','performScan','includes','use','product','VOTZs','XSwhh','format','hmSwR','DaRYt','zHKiR','fbBPk','HyMSH','JuTvX','36nzfXqT','patch','Failed\x20to\x20perform\x20scan\x20','env','WXnPO','Error\x20in\x20finding\x20platform\x20details\x20','chrome','DZSUE','DnrZP','hCHDc','../../helpers/logger','BROWSERSTACK_TEST_OBSERVABILITY','jpslj','project','assign'];a42_0xaf84=function(){return _0x328122;};return a42_0xaf84();}const path=require(a42_0x27c8bb(0x146)),url=require('url'),util=require(a42_0x27c8bb(0xf8)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule}=require('../../helpers/helper'),{o11yErrorHandler}=require(a42_0x27c8bb(0x111)),{debug,getPlatformDetails}=require(a42_0x27c8bb(0x126)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),logger=require(a42_0x27c8bb(0xe6))[a42_0x27c8bb(0x13d)],scripts=require(a42_0x27c8bb(0x119)),{browserStackExecuteDriver}=require(a42_0x27c8bb(0x113)),AccessibilityHelper=require(a42_0x27c8bb(0xff)),getBrowserNameFromChannel=_0x421ad7=>{const _0x59d29d=a42_0x27c8bb,_0x49180c={};_0x49180c[_0x59d29d(0xd8)]=_0x59d29d(0xe2),_0x49180c[_0x59d29d(0x106)]='edge',_0x49180c[_0x59d29d(0x129)]=_0x59d29d(0x134),_0x49180c[_0x59d29d(0x152)]='safari';const _0x2f85a1=_0x49180c;if(_0x421ad7['includes'](_0x2f85a1[_0x59d29d(0xd8)]))return _0x2f85a1[_0x59d29d(0xd8)];if(_0x421ad7[_0x59d29d(0x168)](_0x2f85a1['qzNsD']))return _0x2f85a1[_0x59d29d(0x106)];if(_0x421ad7[_0x59d29d(0x168)](_0x2f85a1[_0x59d29d(0x129)]))return _0x2f85a1[_0x59d29d(0x129)];if(_0x421ad7['includes'](_0x2f85a1['YsemM']))return _0x2f85a1[_0x59d29d(0x152)];},getBrowserFromWSEndpoint=_0x3746ec=>{const _0x398c01=a42_0x27c8bb,_0x15f5cd={'EtHdX':_0x398c01(0xe2),'WXnPO':function(_0x3ed2c2,_0x590f03){return _0x3ed2c2(_0x590f03);}};try{const _0x57f806=url['parse'](_0x3746ec),_0x21e2fe=new URLSearchParams(_0x57f806[_0x398c01(0xee)]),_0x180906=Object[_0x398c01(0x138)](_0x21e2fe[_0x398c01(0x10b)]()),_0x158eb7=JSON['parse'](_0x180906[_0x398c01(0x14c)]);if(_0x158eb7&&(_0x158eb7['browser']||_0x158eb7[_0x398c01(0x132)]))return _0x158eb7['browser']||_0x158eb7[_0x398c01(0x132)];return _0x15f5cd[_0x398c01(0xf2)];}catch(_0x261c24){_0x15f5cd[_0x398c01(0xe0)](debug,_0x398c01(0x123)+_0x261c24[_0x398c01(0x128)]());}},getCloudProviderFromWsEndpoint=_0x224ee2=>{const _0x5553d6=a42_0x27c8bb,_0x5dbe52={};_0x5dbe52[_0x5553d6(0x11f)]=_0x5553d6(0xf6),_0x5dbe52[_0x5553d6(0x154)]=_0x5553d6(0x10e),_0x5dbe52[_0x5553d6(0xd7)]=_0x5553d6(0x133);const _0x1b16ed=_0x5dbe52;if(_0x224ee2['includes'](_0x1b16ed['lBNfT']))return _0x1b16ed[_0x5553d6(0x154)];return _0x1b16ed[_0x5553d6(0xd7)];},a42_0x3ec12e={};function a42_0x52f4(_0x1bf04b,_0x1110e7){const _0xaf8467=a42_0xaf84();return a42_0x52f4=function(_0x52f425,_0x5687b5){_0x52f425=_0x52f425-0xd5;let _0x25bc67=_0xaf8467[_0x52f425];return _0x25bc67;},a42_0x52f4(_0x1bf04b,_0x1110e7);}a42_0x3ec12e[a42_0x27c8bb(0x115)]=undefined,a42_0x3ec12e[a42_0x27c8bb(0x108)]=undefined,a42_0x3ec12e[a42_0x27c8bb(0xfc)]=undefined,a42_0x3ec12e['browser_version']=undefined,a42_0x3ec12e[a42_0x27c8bb(0x13f)]=undefined,a42_0x3ec12e[a42_0x27c8bb(0xef)]=undefined,a42_0x3ec12e[a42_0x27c8bb(0x16a)]=undefined,a42_0x3ec12e[a42_0x27c8bb(0x11a)]={};class PlaywrightSessionDetails{static [a42_0x27c8bb(0x117)]=a42_0x3ec12e;constructor(){const _0x1878fb=a42_0x27c8bb,_0x2fcf1f={};_0x2fcf1f['xxWap']=_0x1878fb(0xfb);const _0x5ccce0=_0x2fcf1f;throw new Error(_0x5ccce0['xxWap']);}static ['sessionError']=null;static[a42_0x27c8bb(0x158)](_0x4d4701,_0x29ff2a,_0x5907d8=null){const _0x2abdae=a42_0x27c8bb,_0x4da474={'BKHIf':_0x2abdae(0x145),'VgGHO':function(_0x7924f5,_0x555d9e,_0x3a3301){return _0x7924f5(_0x555d9e,_0x3a3301);},'POSpk':_0x2abdae(0xe9),'vzMYX':_0x2abdae(0x169),'hxkWD':_0x2abdae(0x104),'VOTZs':function(_0x20b584,_0x5da7b7){return _0x20b584(_0x5da7b7);},'xdUNG':function(_0x26accd,_0x28a3fe){return _0x26accd===_0x28a3fe;},'rEUaK':_0x2abdae(0x10e),'RvbVS':_0x2abdae(0x165),'GLsHO':function(_0x4cbb00,_0x345120){return _0x4cbb00(_0x345120);},'kEqOW':function(_0x99c5b7,_0x22c038){return _0x99c5b7+_0x22c038;},'EiszW':_0x2abdae(0x163),'mYpIF':function(_0x21212c){return _0x21212c();},'EgVZP':_0x2abdae(0x158)},_0x39413d=this;return _0x4da474['VgGHO'](o11yErrorHandler,async function _0x18918d(_0x4de800,_0x5d0dde,_0x251cdd=null){const _0x3ceea5=_0x2abdae;let _0x487f39=_0x4de800['_name'];const _0x475488=_0x4de800[_0x3ceea5(0x14a)]();let _0x3556a6=null,_0x15b49c=null,_0x45a248=null,_0x40fda4=_0x4da474[_0x3ceea5(0x15b)];if(_0x4de800[_0x3ceea5(0xf0)][_0x3ceea5(0x14b)]()||global['accessibilityPlatform']){const _0xf1b7a4=_0x4de800[_0x3ceea5(0x118)][_0x3ceea5(0x11c)]||_0x4da474[_0x3ceea5(0xec)](nestedKeyValue,_0x5d0dde,[_0x4da474[_0x3ceea5(0x151)],_0x4da474[_0x3ceea5(0x107)],_0x4da474[_0x3ceea5(0x116)]]),_0x3a2aa4=_0x251cdd||_0xf1b7a4&&_0xf1b7a4['wsEndpoint'];_0x3a2aa4&&(_0x40fda4=_0x4da474[_0x3ceea5(0x16b)](getCloudProviderFromWsEndpoint,_0x3a2aa4),_0x4da474[_0x3ceea5(0x15f)](_0x40fda4,_0x4da474[_0x3ceea5(0x10c)])&&(_0x45a248=_0x4da474['RvbVS'],_0x487f39=_0x4da474['VOTZs'](getBrowserFromWSEndpoint,_0x3a2aa4)||_0x487f39,_0x3556a6=_0x39413d[_0x3ceea5(0x117)][_0x3ceea5(0x13f)],_0x15b49c=_0x39413d[_0x3ceea5(0x117)]['platform_version']));}else{_0x5d0dde&&_0x5d0dde[_0x3ceea5(0xe9)][_0x3ceea5(0x169)][_0x3ceea5(0x131)]?_0x487f39=_0x4da474['GLsHO'](getBrowserNameFromChannel,_0x5d0dde[_0x3ceea5(0xe9)]['use']['channel']):_0x487f39=_0x4da474[_0x3ceea5(0x100)](_0x4da474['EiszW'],_0x487f39['toLowerCase']());const _0x440032=await _0x4da474['mYpIF'](getPlatformDetails);_0x3556a6=_0x440032[_0x3ceea5(0xf1)],_0x15b49c=_0x440032['platformVersion'];}const _0x162e63={};_0x162e63[_0x3ceea5(0xfc)]=_0x487f39,_0x162e63['browser_version']=_0x475488,_0x162e63['capabilities']={},_0x162e63[_0x3ceea5(0x13f)]=_0x3556a6,_0x162e63['platform_version']=_0x15b49c,_0x162e63[_0x3ceea5(0x16a)]=_0x45a248;const _0x418518=_0x162e63,_0x338029={};_0x338029[_0x3ceea5(0x115)]=_0x40fda4,_0x39413d[_0x3ceea5(0x117)]=Object[_0x3ceea5(0xea)]({},_0x39413d[_0x3ceea5(0x117)],_0x338029,_0x418518);},_0x4da474['EgVZP'])(_0x4d4701,_0x29ff2a,_0x5907d8);}static[a42_0x27c8bb(0xdd)](){const _0x4e9e22=a42_0x27c8bb;this[_0x4e9e22(0x112)](),this['patchCRConnection']();}static[a42_0x27c8bb(0x112)](){const _0x40fc49=a42_0x27c8bb,_0x3f8ad9={'IUPAM':function(_0x171707,_0x6df0bb,_0x494904){return _0x171707(_0x6df0bb,_0x494904);},'Lxoyp':_0x40fc49(0x12d),'DZSUE':'testInfo','qwxUk':'titlePath','ypvzk':function(_0xa99258,_0x8f131f,_0x2fd8fe){return _0xa99258(_0x8f131f,_0x2fd8fe);},'ZEqsu':_0x40fc49(0x136),'hmSwR':_0x40fc49(0xf7),'jChmZ':function(_0x566dc1,_0xd685ef){return _0x566dc1===_0xd685ef;},'ADOHn':_0x40fc49(0x137),'ihWEd':function(_0x5aea92,_0x3689b7,_0x27fd5e,_0x4b83e5){return _0x5aea92(_0x3689b7,_0x27fd5e,_0x4b83e5);},'sCuZx':function(_0x6037eb,_0x91434f){return _0x6037eb(_0x91434f);},'fbBPk':_0x40fc49(0x144),'XSwhh':_0x40fc49(0x15d),'hCHDc':_0x40fc49(0x124),'NtcXg':function(_0x548731,_0x3b2309){return _0x548731(_0x3b2309);},'vQvUc':_0x40fc49(0x139),'SVmfz':function(_0xab3f33,_0x39540e){return _0xab3f33!=_0x39540e;},'onLyv':function(_0x1cbe68){return _0x1cbe68();},'jpslj':'sendMessageToServer','xhdTk':_0x40fc49(0x157)},_0x3910e8=this;if(!this['Connection'])try{const _0x18e34f=path[_0x40fc49(0x143)](_0x3f8ad9[_0x40fc49(0xd9)],_0x3f8ad9[_0x40fc49(0x16c)],_0x3f8ad9[_0x40fc49(0xe5)]),_0x206946=_0x3f8ad9[_0x40fc49(0x10f)](importFileFromPWCore,_0x18e34f);!_0x206946?_0x3f8ad9[_0x40fc49(0x10f)](debug,_0x3f8ad9['vQvUc']):this[_0x40fc49(0x121)]=_0x206946[_0x40fc49(0x121)];}catch(_0x46fce5){_0x3f8ad9['sCuZx'](debug,_0x40fc49(0x130)+_0x46fce5[_0x40fc49(0x128)]());}const _0x52f6d1=this['Connection'];try{if(_0x3f8ad9['SVmfz'](_0x52f6d1,null)){const _0xdc2c2d=_0x52f6d1[_0x40fc49(0x10a)][_0x40fc49(0x157)],_0x25b686=_0x52f6d1[_0x40fc49(0x10a)][_0x40fc49(0x15e)];_0x3f8ad9[_0x40fc49(0x164)](isAccessibilityAutomationSession)&&Object[_0x40fc49(0x140)](_0x52f6d1[_0x40fc49(0x10a)],_0x3f8ad9[_0x40fc49(0xe8)],{'get':function(){return async function(){const _0x42277a=a42_0x52f4;try{if(!global[_0x42277a(0xf9)]&&global[_0x42277a(0x147)]&&_0x3f8ad9[_0x42277a(0x162)](nestedKeyValue,global[_0x42277a(0x136)],[_0x3f8ad9[_0x42277a(0x15a)],_0x3f8ad9[_0x42277a(0xe3)],_0x3f8ad9[_0x42277a(0x12f)]])&&_0x3f8ad9[_0x42277a(0x166)](shouldScanTestForAccessibility,global['__workerDetails']['currentTest'][_0x42277a(0x153)][_0x42277a(0x156)],!![])&&scripts['shouldWrapCommand'](arguments[0x1])){logger[_0x42277a(0x12b)]('Performing\x20scan\x20for\x20'+arguments[0x1]),global[_0x42277a(0xf9)]=!![];const _0x415fea=_0x3f8ad9[_0x42277a(0x166)](nestedKeyValue,global,[_0x3f8ad9['ZEqsu'],_0x3f8ad9[_0x42277a(0xd6)]]),_0x5f260d={};_0x5f260d[_0x42277a(0x127)]=arguments[0x1],_0x415fea&&logger[_0x42277a(0x12b)](util[_0x42277a(0xd5)](await AccessibilityHelper[_0x42277a(0x167)](_0x415fea,_0x5f260d)));if(_0x3f8ad9[_0x42277a(0x13a)](arguments[0x0][_0x42277a(0x142)],_0x3f8ad9[_0x42277a(0xf4)])&&global[_0x42277a(0x15c)]){const _0x2afe3f={};_0x2afe3f[_0x42277a(0x127)]=arguments[0x1],await _0x3f8ad9[_0x42277a(0x114)](browserStackExecuteDriver,global[_0x42277a(0x15c)],scripts[_0x42277a(0x167)],_0x2afe3f);}}}catch(_0x5ad7f3){logger[_0x42277a(0x12b)](_0x42277a(0xde)+util[_0x42277a(0xd5)](_0x5ad7f3));}return global[_0x42277a(0xf9)]=![],_0x25b686[_0x42277a(0xf5)](this,arguments);};}}),!_0x3f8ad9[_0x40fc49(0x10f)](isFalse,process[_0x40fc49(0xdf)][_0x40fc49(0xe7)])&&Object['defineProperty'](_0x52f6d1['prototype'],_0x3f8ad9[_0x40fc49(0x105)],{'get':function(){const _0x649b38={'sYNDB':function(_0x183da1,_0x51945c){return _0x3f8ad9['sCuZx'](_0x183da1,_0x51945c);}};return function _0x2bbc40(_0x228c9e){const _0x1b9cd4=a42_0x52f4,_0x1a94f0=_0x228c9e&&_0x228c9e[_0x1b9cd4(0x14f)]&&_0x228c9e['params'][_0x1b9cd4(0xeb)];if(_0x1a94f0){const _0x400c05=_0x1a94f0['sessionId'],_0x3b8587=_0x1a94f0[_0x1b9cd4(0x13b)];_0x3b8587&&(_0x649b38[_0x1b9cd4(0x14e)](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+_0x3b8587[_0x1b9cd4(0x128)]()),_0x3910e8['currentSessionDetails'][_0x1b9cd4(0x13f)]=_0x3b8587[_0x1b9cd4(0xf1)],_0x3910e8[_0x1b9cd4(0x117)][_0x1b9cd4(0xef)]=_0x3b8587[_0x1b9cd4(0x13c)]),_0x400c05&&(_0x649b38[_0x1b9cd4(0x14e)](debug,_0x1b9cd4(0x161)+_0x400c05),_0x3910e8['currentSessionDetails'][_0x1b9cd4(0x108)]=_0x400c05);}return _0xdc2c2d[_0x1b9cd4(0xf5)](this,arguments);};}});}}catch(_0x5405d0){_0x3f8ad9[_0x40fc49(0x149)](debug,'Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20'+_0x5405d0),_0x3910e8['sessionError']=_0x5405d0[_0x40fc49(0x128)]();}}static[a42_0x27c8bb(0x10d)](){const _0x2b8b00=a42_0x27c8bb,_0x1053f7={'LPwVh':function(_0x1610e3,_0x5b54ff){return _0x1610e3(_0x5b54ff);},'dUFOV':function(_0x14da1,_0x57f1ab){return _0x14da1(_0x57f1ab);},'SqvbT':function(_0x5d1f63){return _0x5d1f63();},'mDlZe':_0x2b8b00(0x144),'JuTvX':_0x2b8b00(0x109),'JWNmD':_0x2b8b00(0x11d),'oKVqW':_0x2b8b00(0x103),'DnrZP':'Not\x20able\x20to\x20import\x20crConnection','gXkbp':_0x2b8b00(0xfe),'drwju':function(_0x365936,_0x1e9e55){return _0x365936!=_0x1e9e55;},'HyMSH':'_onMessage','hAsOF':function(_0x35d033,_0x5c6b4a){return _0x35d033(_0x5c6b4a);}},_0x31a79a=this;if(_0x1053f7[_0x2b8b00(0x159)](isAccessibilityAutomationSession)){let _0x374223=null;try{const _0x49262a=path['join'](_0x1053f7[_0x2b8b00(0x120)],_0x1053f7[_0x2b8b00(0xdb)],_0x1053f7['JWNmD'],_0x1053f7['oKVqW']),_0x42019d=_0x1053f7[_0x2b8b00(0x122)](importFileFromPWCore,_0x49262a);!_0x42019d?_0x1053f7[_0x2b8b00(0x13e)](debug,_0x1053f7[_0x2b8b00(0xe4)]):_0x374223=_0x42019d[_0x2b8b00(0x11b)];}catch(_0x1a3b9d){_0x1053f7[_0x2b8b00(0x122)](debug,_0x1053f7[_0x2b8b00(0x14d)]);}try{if(_0x1053f7['drwju'](_0x374223,null)){const _0xa85fbc=_0x374223['prototype']['_onMessage'];Object['defineProperty'](_0x374223[_0x2b8b00(0x10a)],_0x1053f7[_0x2b8b00(0xda)],{'get':function(){const _0x43565c={'sHgZC':function(_0x330d6a,_0x30a460){return _0x1053f7['LPwVh'](_0x330d6a,_0x30a460);},'OEHPs':function(_0x22ad84,_0x53a671){return _0x1053f7['dUFOV'](_0x22ad84,_0x53a671);}};return function _0x539245(_0x53abef){const _0x1d0a32=a42_0x52f4;try{const _0x2405d1=_0x53abef[_0x1d0a32(0x110)];if(_0x2405d1){delete _0x53abef[_0x1d0a32(0x110)];const _0x36ccc3=_0x2405d1[_0x1d0a32(0xf3)],_0x26aba6=_0x2405d1['platformDetails'];_0x26aba6&&(_0x43565c[_0x1d0a32(0x102)](debug,_0x1d0a32(0x11e)+_0x26aba6[_0x1d0a32(0x128)]()),_0x31a79a['currentSessionDetails'][_0x1d0a32(0x13f)]=_0x26aba6[_0x1d0a32(0xf1)],_0x31a79a['currentSessionDetails'][_0x1d0a32(0xef)]=_0x26aba6[_0x1d0a32(0x13c)]),_0x36ccc3&&(_0x43565c[_0x1d0a32(0xfd)](debug,'Setting\x20session\x20id\x20received\x20from\x20browserstack\x20'+_0x36ccc3),_0x31a79a[_0x1d0a32(0x117)][_0x1d0a32(0x108)]=_0x36ccc3);}}catch(_0x5666af){_0x43565c[_0x1d0a32(0xfd)](debug,_0x1d0a32(0xe1)+_0x5666af[_0x1d0a32(0x128)]());}return _0xa85fbc['apply'](this,arguments);};}});}}catch(_0x50ad26){_0x1053f7[_0x2b8b00(0xfa)](debug,_0x2b8b00(0x135)+_0x50ad26),_0x31a79a['sessionError']=_0x50ad26[_0x2b8b00(0x128)]();}}}static[a42_0x27c8bb(0x12a)](){return this['currentSessionDetails'];}}module[a42_0x27c8bb(0x101)]=PlaywrightSessionDetails;
|
|
1
|
+
const a43_0x19848c=a43_0x3e40;(function(_0x3edc5a,_0x333464){const _0x27f04d=a43_0x3e40,_0x5665e0=_0x3edc5a();while(!![]){try{const _0x28d130=-parseInt(_0x27f04d(0x176))/0x1*(parseInt(_0x27f04d(0x1ed))/0x2)+parseInt(_0x27f04d(0x1d5))/0x3+-parseInt(_0x27f04d(0x1a5))/0x4+parseInt(_0x27f04d(0x1cf))/0x5*(parseInt(_0x27f04d(0x17d))/0x6)+-parseInt(_0x27f04d(0x1ac))/0x7*(-parseInt(_0x27f04d(0x167))/0x8)+parseInt(_0x27f04d(0x177))/0x9*(-parseInt(_0x27f04d(0x1c6))/0xa)+parseInt(_0x27f04d(0x1d9))/0xb;if(_0x28d130===_0x333464)break;else _0x5665e0['push'](_0x5665e0['shift']());}catch(_0x2d6946){_0x5665e0['push'](_0x5665e0['shift']());}}}(a43_0x354b,0x55766));const path=require(a43_0x19848c(0x179)),url=require(a43_0x19848c(0x1c8)),util=require(a43_0x19848c(0x20e)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule}=require(a43_0x19848c(0x17a)),{o11yErrorHandler}=require(a43_0x19848c(0x1f9)),{debug,getPlatformDetails}=require(a43_0x19848c(0x1f0)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a43_0x19848c(0x1d7)),logger=require(a43_0x19848c(0x1db))[a43_0x19848c(0x208)],scripts=require(a43_0x19848c(0x1b5)),{browserStackExecuteDriver}=require(a43_0x19848c(0x1c1)),AccessibilityHelper=require(a43_0x19848c(0x169)),getBrowserNameFromChannel=_0x19c758=>{const _0x26a98b=a43_0x19848c,_0x10ca25={};_0x10ca25[_0x26a98b(0x16d)]='chrome',_0x10ca25[_0x26a98b(0x1dc)]=_0x26a98b(0x1bc),_0x10ca25['qBPqZ']=_0x26a98b(0x1a0),_0x10ca25[_0x26a98b(0x168)]=_0x26a98b(0x198);const _0x293ae6=_0x10ca25;if(_0x19c758[_0x26a98b(0x1e0)](_0x293ae6['yORFu']))return _0x293ae6[_0x26a98b(0x16d)];if(_0x19c758['includes'](_0x293ae6['njZTh']))return _0x293ae6['njZTh'];if(_0x19c758[_0x26a98b(0x1e0)](_0x293ae6[_0x26a98b(0x1b8)]))return _0x293ae6[_0x26a98b(0x1b8)];if(_0x19c758[_0x26a98b(0x1e0)](_0x293ae6[_0x26a98b(0x168)]))return _0x293ae6['yRgZG'];},getBrowserFromWSEndpoint=_0x586186=>{const _0x4d9a81=a43_0x19848c,_0x2b75cc={'JTNsZ':_0x4d9a81(0x1f1),'DeoDr':function(_0x12c293,_0x5a09b2){return _0x12c293(_0x5a09b2);}};try{const _0x386ca9=url[_0x4d9a81(0x1f5)](_0x586186),_0x5102c1=new URLSearchParams(_0x386ca9[_0x4d9a81(0x1b1)]),_0x5cee68=Object[_0x4d9a81(0x1be)](_0x5102c1[_0x4d9a81(0x1cc)]()),_0x337c7e=JSON[_0x4d9a81(0x1f5)](_0x5cee68[_0x4d9a81(0x1b6)]);if(_0x337c7e&&(_0x337c7e[_0x4d9a81(0x19b)]||_0x337c7e[_0x4d9a81(0x18f)]))return _0x337c7e[_0x4d9a81(0x19b)]||_0x337c7e[_0x4d9a81(0x18f)];return _0x2b75cc[_0x4d9a81(0x1da)];}catch(_0x5e7a31){_0x2b75cc[_0x4d9a81(0x20c)](debug,_0x4d9a81(0x1ff)+_0x5e7a31['toString']());}},getCloudProviderFromWsEndpoint=_0x307424=>{const _0x5e6454=a43_0x19848c,_0x599c2d={};_0x599c2d[_0x5e6454(0x171)]=_0x5e6454(0x1ce),_0x599c2d[_0x5e6454(0x1ca)]=_0x5e6454(0x191),_0x599c2d[_0x5e6454(0x193)]=_0x5e6454(0x1a1);const _0x405382=_0x599c2d;if(_0x307424[_0x5e6454(0x1e0)](_0x405382[_0x5e6454(0x171)]))return _0x405382[_0x5e6454(0x1ca)];return _0x405382[_0x5e6454(0x193)];},a43_0x4d9a60={};a43_0x4d9a60[a43_0x19848c(0x1a7)]=undefined,a43_0x4d9a60[a43_0x19848c(0x186)]=undefined,a43_0x4d9a60['browser']=undefined,a43_0x4d9a60[a43_0x19848c(0x1e8)]=undefined,a43_0x4d9a60[a43_0x19848c(0x211)]=undefined,a43_0x4d9a60['platform_version']=undefined,a43_0x4d9a60['product']=undefined,a43_0x4d9a60[a43_0x19848c(0x1a8)]={};function a43_0x354b(){const _0x1a1672=['JTNsZ','../../helpers/logger','njZTh','nJglf','prototype','lib','includes','NeemO','patchConnection','PPABb','platform_version','SuOeR','FasAC','Performing\x20scan\x20for\x20','browser_version','platformName','Not\x20able\x20to\x20import\x20Connection','OMiPl','assign','24042oiXVcQ','bstackPerformA11yScan','JyrER','../../helpers/test-observability/utils','chrome','jqjql','ztYPX','toString','parse','Not\x20able\x20to\x20import\x20crConnection','hSaJb','LodJc','../../helpers/test-observability/error-handler','chromium','XeEbe','Error\x20in\x20importing\x20connection\x20','Connection','sendMessageToServer','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','local_grid','_connection','szZdu','alvyk','shouldWrapCommand','TWHWH','titlePath','_browserType','winstonLogger','model','apply','project','DeoDr','ERVQK','util','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','bwTmO','platform','__workerDetails','DUIeL','debug','bStackParams','1926088XLbMzf','yRgZG','./accessibility-helper','sZmhZ','hfwHr','nuetl','yORFu','accessibilityPlatform','patchCRConnection','format','jJDdZ','getDetails','bsParams','GGWPz','rNjCF','46CMZWvT','320787RSyUcc','HpurV','path','../../helpers/helper','join','defineProperty','30bxWhmn','exports','BSueF','pwPage','kHMAB','rdTaC','mEaab','sessionError','crConnection.js','bsSessionId','channel','vgTGT','QnlEF','wsEndpoint','ZhgXC','eItwD','Device\x20Model\x20is\x20not\x20available','_onMessage','browserName','guCiL','browserstack','WrskQ','XToik','AIZZd','cBIEp','performScan','SWIzH','safari','CsiwD','FswAh','browser','platformDetails','BROWSERSTACK_TEST_OBSERVABILITY','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','IjWSp','firefox','unknown_grid','automate','platformVersion','Setting\x20session\x20id\x20received\x20from\x20BS\x20','2722672cKVqml','params','cloudProvider','capabilities','function','currentSessionDetails','use','7xXGFoP','ndHNY','setupBrowserDetails','Fhepc','CRConnection','query','zLTcb','toLowerCase','currentTest','../../helpers/accessibility-automation/scripts','caps','sessionId','qBPqZ','env','dispatch','Error\x20in\x20finding\x20platform\x20details\x20','edge','eUEpp','fromEntries','version','_defaultConnectOptions','../../bin/playwright/accessibility-helper','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','connection.js','__driver','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','30pDQCQR','server','url','CAIKL','DzElv','FTIng','entries','lZPFZ','browserstack.com','404545CfDnXA','IrxeL','WByWI','patch','method','ofRpg','2082486MNpngj','ZMLQN','../../helpers/accessibility-automation/helper','_name','3862639FiGGNV'];a43_0x354b=function(){return _0x1a1672;};return a43_0x354b();}class PlaywrightSessionDetails{static [a43_0x19848c(0x1aa)]=a43_0x4d9a60;constructor(){const _0x89fb08=a43_0x19848c,_0x306db0={};_0x306db0['QnlEF']='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x1748ac=_0x306db0;throw new Error(_0x1748ac[_0x89fb08(0x189)]);}static [a43_0x19848c(0x184)]=null;static[a43_0x19848c(0x1ae)](_0x57616f,_0x2ba7bf,_0x469f65=null){const _0x285f0f=a43_0x19848c,_0x53592d={'WrskQ':function(_0x33a469,_0x5ba4b1){return _0x33a469===_0x5ba4b1;},'lQBNb':_0x285f0f(0x1a9),'ZMLQN':_0x285f0f(0x1c2),'NjALy':_0x285f0f(0x18d),'cBIEp':_0x285f0f(0x200),'bCEpt':function(_0x1f08ab,_0x21b723,_0x24449d){return _0x1f08ab(_0x21b723,_0x24449d);},'LodJc':_0x285f0f(0x207),'szZdu':_0x285f0f(0x1c0),'HpurV':_0x285f0f(0x20b),'kHMAB':_0x285f0f(0x1ab),'BSueF':'connectOptions','GGWPz':function(_0x58f627,_0x3ac631){return _0x58f627(_0x3ac631);},'rcsoc':_0x285f0f(0x191),'lZPFZ':_0x285f0f(0x1a2),'MkpZP':function(_0x4f924e,_0x6e7c9d){return _0x4f924e(_0x6e7c9d);},'EeILZ':function(_0x3e1814,_0x288033){return _0x3e1814+_0x288033;},'FTIng':'playwright-','vgTGT':function(_0x2518f6){return _0x2518f6();},'LnhdK':function(_0x14751d,_0x51473b,_0xbe4bfa){return _0x14751d(_0x51473b,_0xbe4bfa);},'ERVQK':_0x285f0f(0x1ae)},_0x4c110a=this;return _0x53592d['LnhdK'](o11yErrorHandler,async function _0x96ed8(_0x1a04fb,_0x91c122,_0xdbc401=null){const _0x53aace=_0x285f0f;let _0x318a32=_0x1a04fb[_0x53aace(0x1d8)],_0x20951d=null;_0x1a04fb&&_0x53592d[_0x53aace(0x192)](typeof _0x1a04fb[_0x53aace(0x1bf)],_0x53592d['lQBNb'])?_0x20951d=_0x1a04fb[_0x53aace(0x1bf)]():logger[_0x53aace(0x165)](_0x53592d[_0x53aace(0x1d6)]);let _0x1691e6=null;_0x1a04fb&&_0x53592d[_0x53aace(0x192)](typeof _0x1a04fb['model'],_0x53592d['lQBNb'])?_0x1691e6=_0x1a04fb[_0x53aace(0x209)]():logger[_0x53aace(0x165)](_0x53592d['NjALy']);let _0x1a5d22=null,_0x212371=null,_0x625314=null,_0x5dc2ea=_0x53592d[_0x53aace(0x195)];if(_0x1a04fb[_0x53aace(0x201)]['isRemote']()||global['accessibilityPlatform']){let _0x28581a=null;_0x53592d['bCEpt'](nestedKeyValue,_0x1a04fb,[_0x53592d[_0x53aace(0x1f8)],_0x53592d[_0x53aace(0x202)]])?_0x28581a=_0x1a04fb['_browserType'][_0x53aace(0x1c0)]:_0x28581a=_0x53592d['bCEpt'](nestedKeyValue,_0x91c122,[_0x53592d[_0x53aace(0x178)],_0x53592d[_0x53aace(0x181)],_0x53592d[_0x53aace(0x17f)]]);const _0x251ab9=_0xdbc401||_0x28581a&&_0x28581a[_0x53aace(0x18a)];_0x251ab9&&(_0x5dc2ea=_0x53592d['GGWPz'](getCloudProviderFromWsEndpoint,_0x251ab9),_0x53592d[_0x53aace(0x192)](_0x5dc2ea,_0x53592d['rcsoc'])&&(_0x625314=_0x53592d[_0x53aace(0x1cd)],_0x318a32=_0x53592d[_0x53aace(0x174)](getBrowserFromWSEndpoint,_0x251ab9)||_0x318a32,_0x1a5d22=_0x4c110a['currentSessionDetails'][_0x53aace(0x211)],_0x212371=_0x4c110a[_0x53aace(0x1aa)]['platform_version']));}else{_0x91c122&&_0x91c122['project'][_0x53aace(0x1ab)]['channel']?_0x318a32=_0x53592d['MkpZP'](getBrowserNameFromChannel,_0x91c122[_0x53aace(0x20b)][_0x53aace(0x1ab)][_0x53aace(0x187)]):_0x318a32=_0x53592d['EeILZ'](_0x53592d[_0x53aace(0x1cb)],_0x318a32[_0x53aace(0x1b3)]());const _0x4369f2=await _0x53592d[_0x53aace(0x188)](getPlatformDetails);_0x1a5d22=_0x4369f2[_0x53aace(0x1e9)],_0x212371=_0x4369f2[_0x53aace(0x1a3)];}const _0x3b9181={};_0x3b9181[_0x53aace(0x19b)]=_0x318a32,_0x3b9181['browser_version']=_0x20951d,_0x3b9181[_0x53aace(0x1a8)]={},_0x3b9181[_0x53aace(0x211)]=_0x1a5d22,_0x3b9181[_0x53aace(0x1e4)]=_0x212371,_0x3b9181['product']=_0x625314;const _0x4d0135=_0x3b9181;_0x1691e6&&(_0x4d0135[_0x53aace(0x1a8)]['deviceModel']=_0x1691e6);const _0x5b979f={};_0x5b979f['cloudProvider']=_0x5dc2ea,_0x4c110a['currentSessionDetails']=Object[_0x53aace(0x1ec)]({},_0x4c110a[_0x53aace(0x1aa)],_0x5b979f,_0x4d0135);},_0x53592d[_0x285f0f(0x20d)])(_0x57616f,_0x2ba7bf,_0x469f65);}static[a43_0x19848c(0x1d2)](){const _0x3db412=a43_0x19848c;this[_0x3db412(0x1e2)](),this[_0x3db412(0x16f)]();}static[a43_0x19848c(0x1e2)](){const _0x2fd579=a43_0x19848c,_0x4c0f48={'ndHNY':function(_0x2ba4f0,_0xf46731,_0x320541){return _0x2ba4f0(_0xf46731,_0x320541);},'sZmhZ':'currentTest','Fhepc':'testInfo','TfIZi':_0x2fd579(0x206),'XeEbe':_0x2fd579(0x212),'mEaab':_0x2fd579(0x180),'SWIzH':function(_0x1fe824,_0x2a6776){return _0x1fe824===_0x2a6776;},'ztYPX':'Page','WByWI':function(_0x5c0a3e,_0x46e439,_0x1b20b5,_0x280b0e){return _0x5c0a3e(_0x46e439,_0x1b20b5,_0x280b0e);},'nuetl':function(_0x28409c,_0x54f547){return _0x28409c(_0x54f547);},'alvyk':function(_0x3d9a7f,_0x3cdedd){return _0x3d9a7f(_0x3cdedd);},'ofRpg':_0x2fd579(0x1df),'zLTcb':'client','ZhgXC':_0x2fd579(0x1c3),'hSaJb':function(_0xef7cd0,_0x435d68){return _0xef7cd0(_0x435d68);},'OMiPl':_0x2fd579(0x1ea),'GloqS':function(_0x4eebf0,_0x3e4b89){return _0x4eebf0!=_0x3e4b89;},'FswAh':function(_0x197ac0){return _0x197ac0();},'guCiL':_0x2fd579(0x1fe),'bwTmO':function(_0x440d55,_0x4574bf){return _0x440d55(_0x4574bf);},'rNjCF':'dispatch'},_0x544331=this;if(!this[_0x2fd579(0x1fd)])try{const _0x2129bd=path[_0x2fd579(0x17b)](_0x4c0f48[_0x2fd579(0x1d4)],_0x4c0f48[_0x2fd579(0x1b2)],_0x4c0f48[_0x2fd579(0x18b)]),_0x136c3c=_0x4c0f48['nuetl'](importFileFromPWCore,_0x2129bd);!_0x136c3c?_0x4c0f48[_0x2fd579(0x1f7)](debug,_0x4c0f48[_0x2fd579(0x1eb)]):this[_0x2fd579(0x1fd)]=_0x136c3c[_0x2fd579(0x1fd)];}catch(_0x523b82){_0x4c0f48['nuetl'](debug,_0x2fd579(0x1fc)+_0x523b82[_0x2fd579(0x1f4)]());}const _0xf9a3a4=this['Connection'];try{if(_0x4c0f48['GloqS'](_0xf9a3a4,null)){const _0x141bf9=_0xf9a3a4[_0x2fd579(0x1de)][_0x2fd579(0x1ba)],_0x249948=_0xf9a3a4[_0x2fd579(0x1de)][_0x2fd579(0x1fe)];_0x4c0f48[_0x2fd579(0x19a)](isAccessibilityAutomationSession)&&Object[_0x2fd579(0x17c)](_0xf9a3a4[_0x2fd579(0x1de)],_0x4c0f48[_0x2fd579(0x190)],{'get':function(){const _0x45408c=_0x2fd579,_0xe3ec61={'NeemO':function(_0x274f68,_0x53abae,_0x199350){const _0x4ea71f=a43_0x3e40;return _0x4c0f48[_0x4ea71f(0x1ad)](_0x274f68,_0x53abae,_0x199350);},'cQDbs':_0x4c0f48[_0x45408c(0x16a)],'BQiDL':_0x4c0f48[_0x45408c(0x1af)],'AIZZd':_0x4c0f48['TfIZi'],'eItwD':function(_0x299c58,_0x3e5950,_0xa2bf3){const _0x438706=_0x45408c;return _0x4c0f48[_0x438706(0x1ad)](_0x299c58,_0x3e5950,_0xa2bf3);},'PPABb':_0x4c0f48[_0x45408c(0x1fb)],'OnVDN':_0x4c0f48[_0x45408c(0x183)],'TWHWH':function(_0x3773b3,_0x886f43){const _0x3f2c85=_0x45408c;return _0x4c0f48[_0x3f2c85(0x197)](_0x3773b3,_0x886f43);},'FasAC':_0x4c0f48[_0x45408c(0x1f3)],'SuOeR':function(_0x66a3ef,_0x1dbc60,_0x43eb7b,_0x47ac1f){const _0x2a9c62=_0x45408c;return _0x4c0f48[_0x2a9c62(0x1d1)](_0x66a3ef,_0x1dbc60,_0x43eb7b,_0x47ac1f);}};return async function(){const _0x3ba283=_0x45408c;try{if(!global[_0x3ba283(0x1ee)]&&global[_0x3ba283(0x16e)]&&_0xe3ec61[_0x3ba283(0x1e1)](nestedKeyValue,global['__workerDetails'],[_0xe3ec61['cQDbs'],_0xe3ec61['BQiDL'],_0xe3ec61[_0x3ba283(0x194)]])&&_0xe3ec61[_0x3ba283(0x1e1)](shouldScanTestForAccessibility,global[_0x3ba283(0x212)][_0x3ba283(0x1b4)]['testInfo'][_0x3ba283(0x206)],!![])&&scripts[_0x3ba283(0x204)](arguments[0x1])){logger[_0x3ba283(0x165)](_0x3ba283(0x1e7)+arguments[0x1]),global[_0x3ba283(0x1ee)]=!![];const _0x516295=_0xe3ec61[_0x3ba283(0x18c)](nestedKeyValue,global,[_0xe3ec61[_0x3ba283(0x1e3)],_0xe3ec61['OnVDN']]),_0x509307={};_0x509307[_0x3ba283(0x1d3)]=arguments[0x1],_0x516295&&logger[_0x3ba283(0x165)](util[_0x3ba283(0x170)](await AccessibilityHelper['performScan'](_0x516295,_0x509307)));if(_0xe3ec61[_0x3ba283(0x205)](arguments[0x0]['_type'],_0xe3ec61[_0x3ba283(0x1e6)])&&global[_0x3ba283(0x1c4)]){const _0x169437={};_0x169437[_0x3ba283(0x1d3)]=arguments[0x1],await _0xe3ec61[_0x3ba283(0x1e5)](browserStackExecuteDriver,global[_0x3ba283(0x1c4)],scripts[_0x3ba283(0x196)],_0x169437);}}}catch(_0x1244c4){logger[_0x3ba283(0x165)]('Failed\x20to\x20perform\x20scan\x20'+util[_0x3ba283(0x170)](_0x1244c4));}return global['bstackPerformA11yScan']=![],_0x249948[_0x3ba283(0x20a)](this,arguments);};}}),!_0x4c0f48[_0x2fd579(0x210)](isFalse,process[_0x2fd579(0x1b9)][_0x2fd579(0x19d)])&&Object[_0x2fd579(0x17c)](_0xf9a3a4[_0x2fd579(0x1de)],_0x4c0f48[_0x2fd579(0x175)],{'get':function(){return function _0x2a781e(_0x54f266){const _0x517f79=a43_0x3e40,_0x1d1446=_0x54f266&&_0x54f266['params']&&_0x54f266[_0x517f79(0x1a6)][_0x517f79(0x173)];if(_0x1d1446){const _0x38475d=_0x1d1446[_0x517f79(0x1b7)],_0x252f98=_0x1d1446['platformDetails'];_0x252f98&&(_0x4c0f48[_0x517f79(0x16c)](debug,_0x517f79(0x20f)+_0x252f98['toString']()),_0x544331[_0x517f79(0x1aa)][_0x517f79(0x211)]=_0x252f98['platformName'],_0x544331[_0x517f79(0x1aa)][_0x517f79(0x1e4)]=_0x252f98[_0x517f79(0x1a3)]),_0x38475d&&(_0x4c0f48[_0x517f79(0x203)](debug,_0x517f79(0x1a4)+_0x38475d),_0x544331[_0x517f79(0x1aa)]['bsSessionId']=_0x38475d);}return _0x141bf9[_0x517f79(0x20a)](this,arguments);};}});}}catch(_0x30be50){_0x4c0f48[_0x2fd579(0x16c)](debug,_0x2fd579(0x1c5)+_0x30be50),_0x544331[_0x2fd579(0x184)]=_0x30be50[_0x2fd579(0x1f4)]();}}static[a43_0x19848c(0x16f)](){const _0x598aa3=a43_0x19848c,_0x25a444={'DUIeL':function(_0x46ccbd,_0x453c93){return _0x46ccbd(_0x453c93);},'CAIKL':function(_0x378b40,_0x300054){return _0x378b40(_0x300054);},'hfwHr':function(_0xb09578,_0x40e612){return _0xb09578(_0x40e612);},'JyrER':function(_0x2f280c){return _0x2f280c();},'nJglf':_0x598aa3(0x1df),'eUEpp':_0x598aa3(0x1c7),'IrxeL':_0x598aa3(0x1fa),'rdTaC':_0x598aa3(0x185),'jqjql':_0x598aa3(0x1f6),'ptIWI':function(_0xe3efcf,_0x2fdc40){return _0xe3efcf(_0x2fdc40);},'IjWSp':'Error\x20in\x20importing\x20crConnection','CsiwD':function(_0x49d627,_0x28d429){return _0x49d627!=_0x28d429;},'EFGzv':_0x598aa3(0x18e)},_0x581a1e=this;if(_0x25a444[_0x598aa3(0x1ef)](isAccessibilityAutomationSession)){let _0x287364=null;try{const _0x236266=path[_0x598aa3(0x17b)](_0x25a444[_0x598aa3(0x1dd)],_0x25a444[_0x598aa3(0x1bd)],_0x25a444[_0x598aa3(0x1d0)],_0x25a444[_0x598aa3(0x182)]),_0x3c961f=_0x25a444[_0x598aa3(0x213)](importFileFromPWCore,_0x236266);!_0x3c961f?_0x25a444[_0x598aa3(0x1c9)](debug,_0x25a444[_0x598aa3(0x1f2)]):_0x287364=_0x3c961f[_0x598aa3(0x1b0)];}catch(_0x5c1a38){_0x25a444['ptIWI'](debug,_0x25a444[_0x598aa3(0x19f)]);}try{if(_0x25a444[_0x598aa3(0x199)](_0x287364,null)){const _0xa16490=_0x287364['prototype'][_0x598aa3(0x18e)];Object[_0x598aa3(0x17c)](_0x287364[_0x598aa3(0x1de)],_0x25a444['EFGzv'],{'get':function(){return function _0x1677f1(_0x37073c){const _0x171b15=a43_0x3e40;try{const _0x36d3b9=_0x37073c[_0x171b15(0x166)];if(_0x36d3b9){delete _0x37073c[_0x171b15(0x166)];const _0x52b90e=_0x36d3b9[_0x171b15(0x1b7)],_0x50db07=_0x36d3b9[_0x171b15(0x19c)];_0x50db07&&(_0x25a444[_0x171b15(0x213)](debug,_0x171b15(0x19e)+_0x50db07[_0x171b15(0x1f4)]()),_0x581a1e['currentSessionDetails'][_0x171b15(0x211)]=_0x50db07[_0x171b15(0x1e9)],_0x581a1e[_0x171b15(0x1aa)][_0x171b15(0x1e4)]=_0x50db07['platformVersion']),_0x52b90e&&(_0x25a444['CAIKL'](debug,'Setting\x20session\x20id\x20received\x20from\x20browserstack\x20'+_0x52b90e),_0x581a1e[_0x171b15(0x1aa)][_0x171b15(0x186)]=_0x52b90e);}}catch(_0x255d90){_0x25a444[_0x171b15(0x16b)](debug,_0x171b15(0x1bb)+_0x255d90['toString']());}return _0xa16490[_0x171b15(0x20a)](this,arguments);};}});}}catch(_0x549ed6){_0x25a444[_0x598aa3(0x1c9)](debug,'Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20'+_0x549ed6),_0x581a1e[_0x598aa3(0x184)]=_0x549ed6[_0x598aa3(0x1f4)]();}}}static[a43_0x19848c(0x172)](){return this['currentSessionDetails'];}}function a43_0x3e40(_0x31625a,_0xdc96e2){const _0x354b51=a43_0x354b();return a43_0x3e40=function(_0x3e402e,_0x40229c){_0x3e402e=_0x3e402e-0x165;let _0x476080=_0x354b51[_0x3e402e];return _0x476080;},a43_0x3e40(_0x31625a,_0xdc96e2);}module[a43_0x19848c(0x17e)]=PlaywrightSessionDetails;
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a43_0x54d10b=a43_0x3148;(function(_0x1498ae,_0x42ad32){const _0x142886=a43_0x3148,_0x5c26ab=_0x1498ae();while(!![]){try{const _0x1c0ad8=-parseInt(_0x142886(0x207))/0x1*(parseInt(_0x142886(0x205))/0x2)+parseInt(_0x142886(0x22b))/0x3+-parseInt(_0x142886(0x1ee))/0x4*(parseInt(_0x142886(0x23f))/0x5)+parseInt(_0x142886(0x20e))/0x6*(parseInt(_0x142886(0x236))/0x7)+-parseInt(_0x142886(0x24f))/0x8*(-parseInt(_0x142886(0x22a))/0x9)+parseInt(_0x142886(0x23a))/0xa*(parseInt(_0x142886(0x200))/0xb)+-parseInt(_0x142886(0x20c))/0xc;if(_0x1c0ad8===_0x42ad32)break;else _0x5c26ab['push'](_0x5c26ab['shift']());}catch(_0x1b312e){_0x5c26ab['push'](_0x5c26ab['shift']());}}}(a43_0x3712,0xc8bcb));const fs=require('fs'),path=require(a43_0x54d10b(0x243)),util=require('util'),{performance}=require(a43_0x54d10b(0x216)),{requireModule}=require(a43_0x54d10b(0x21c)),helper=require('../helpers/helper'),runIntegrations=require(a43_0x54d10b(0x1ed)),captureError=async(_0x11c9fa,_0x40472e,_0x390705=null)=>{const _0x42357a=a43_0x54d10b,_0x143d2f={'gZCay':function(_0x5c9d5e,_0x276d9d,_0x58f044){return _0x5c9d5e(_0x276d9d,_0x58f044);},'WHiVe':_0x42357a(0x1f2)};try{await _0x143d2f[_0x42357a(0x254)](_0x11c9fa,_0x40472e,_0x390705);}catch(_0x1ec44d){process[_0x42357a(0x214)]=0x1,logger[_0x42357a(0x237)](util[_0x42357a(0x204)](_0x1ec44d));const _0x3c97c0={};_0x3c97c0[_0x42357a(0x225)]=_0x1ec44d[_0x42357a(0x23d)];const _0x45d908=_0x3c97c0;if(helper['isUndefined'](global[_0x42357a(0x21e)])&&helper[_0x42357a(0x209)](global[_0x42357a(0x1f3)]))return;try{helper['fireFunnelTestEvent'](_0x143d2f['WHiVe'],_0x45d908,global['config'],global[_0x42357a(0x1f3)]);}catch(_0x5cfe11){logger[_0x42357a(0x22e)](_0x42357a(0x202)+_0x5cfe11);}}};try{const browserstackFolderPath=path['join'](helper['homedir'](),'.browserstack');if(fs[a43_0x54d10b(0x213)](browserstackFolderPath)){const filePath=path[a43_0x54d10b(0x241)](browserstackFolderPath,a43_0x54d10b(0x206));fs[a43_0x54d10b(0x213)](filePath)&&fs[a43_0x54d10b(0x250)](filePath);}}catch(a43_0xa9e76b){logger[a43_0x54d10b(0x22e)](a43_0x54d10b(0x229)+a43_0xa9e76b[a43_0x54d10b(0x23d)]);}process[a43_0x54d10b(0x1ff)][a43_0x54d10b(0x226)](a43_0x54d10b(0x1ef))&&(!process[a43_0x54d10b(0x1ff)][a43_0x54d10b(0x226)]('--opts')&&process['argv'][a43_0x54d10b(0x247)]('--no-opts'),!process[a43_0x54d10b(0x1ff)][a43_0x54d10b(0x226)]('--config')&&process[a43_0x54d10b(0x1ff)][a43_0x54d10b(0x247)]('--no-config'),!process['argv'][a43_0x54d10b(0x226)](a43_0x54d10b(0x208))&&process[a43_0x54d10b(0x1ff)][a43_0x54d10b(0x247)]('--no-package'));function a43_0x3148(_0x13a59d,_0xfc5c37){const _0x37120d=a43_0x3712();return a43_0x3148=function(_0x3148fa,_0x17bb31){_0x3148fa=_0x3148fa-0x1eb;let _0x22fc8f=_0x37120d[_0x3148fa];return _0x22fc8f;},a43_0x3148(_0x13a59d,_0xfc5c37);}const yargs=require('yargs'),Constants=require('./utils/constants'),PerformanceTester=require('../helpers/performance-tester'),logger=require(a43_0x54d10b(0x233))[a43_0x54d10b(0x235)];PerformanceTester[a43_0x54d10b(0x1fd)](),performance['mark'](a43_0x54d10b(0x253));const a43_0x45bd54={};function a43_0x3712(){const _0xf75ea5=['BOzzv','push','handler','wrap','HST','mocha/lib/cli/commands.js','parserConfiguration','../../ats/src/index','describe','1992BbSAAN','unlinkSync','NqWgP','integrations','sdk:setup-start','gZCay','CODECEPTJS','Wcxjg','usage:\x20$0\x20<command>\x20[args]','slice','./integrations/command','453652izblhZ','mocha','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','hpmrN','SDKTestSuccessful','framework','./playwright/command','STbHJ','MOCHA','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','jest','setBrowserStackAutomationDisable','hpDcg','PLAYWRIGHT','HELP','startMonitoring','mocha/lib/cli/run.js','argv','11PrmUgS','CUCUMBER','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','ats','format','1786IRxSfg','.local-not-set.json','281ZyhbAn','--package','isUndefined','ebicQ','Parsing\x20command\x20line\x20arguements','21649092HXcxRU','command','6VaQCSr','XOaOx','VzYCm','cucumber-js','mocha/lib/cli/cli.js','existsSync','exitCode','./mocha/command','perf_hooks','PehaA','NIGHTWATCH','GXSrT','./jest/command','usage','../helpers/helper','./codeceptjs/command','config','help','YLbYP','eNjVk','INFO','dot-notation','owBhT','globalException','includes','Qojer','showHelpOnFail','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','8271BQoHKJ','3441075KGDimT','vmUPE','nightwatch','debug','demandCommand','lKlEK','dGATO','alias','../helpers/logger','nPcZk','winstonLogger','11271652GhfbAI','error','JEST','VERSION','5716290hZUFZI','HYOsB','codeceptjs','message','./nightwatch/command','30LpQScH','rhlgz','join','version','path','KlvVq','WrjOS'];a43_0x3712=function(){return _0xf75ea5;};return a43_0x3712();}a43_0x45bd54[a43_0x54d10b(0x223)]=![];const argv=yargs[a43_0x54d10b(0x24c)](a43_0x45bd54)[a43_0x54d10b(0x21b)](a43_0x54d10b(0x1eb))[a43_0x54d10b(0x232)]('v',a43_0x54d10b(0x242))[a43_0x54d10b(0x24e)]('v')[a43_0x54d10b(0x232)]('h',a43_0x54d10b(0x21f))[a43_0x54d10b(0x21f)](a43_0x54d10b(0x21f))[a43_0x54d10b(0x228)](!![],Constants[a43_0x54d10b(0x239)][a43_0x54d10b(0x1fc)])[a43_0x54d10b(0x20d)](a43_0x54d10b(0x1f8),Constants[a43_0x54d10b(0x238)][a43_0x54d10b(0x222)],function(_0x3182a5){const _0x5ed2df=a43_0x54d10b,_0x32e985={'SqkeW':function(_0x239ac1,_0x3793fb,_0x1e0b9c,_0x245d3f){return _0x239ac1(_0x3793fb,_0x1e0b9c,_0x245d3f);},'rhlgz':function(_0x75488f,_0x408a9f){return _0x75488f(_0x408a9f);},'omJkO':_0x5ed2df(0x21a)};helper['setTestObservabilityDisable'](),helper[_0x5ed2df(0x1f9)]();const _0x25d23c=process[_0x5ed2df(0x1ff)]['slice'](0x2);return _0x32e985['SqkeW'](captureError,_0x32e985[_0x5ed2df(0x240)](require,_0x32e985['omJkO']),_0x3182a5[_0x5ed2df(0x1ff)],_0x25d23c);})['command']('mocha',Constants[a43_0x54d10b(0x1f6)][a43_0x54d10b(0x222)],_0x45de60=>{const _0x45d6e7=a43_0x54d10b,_0x1a2fca={'jjneD':function(_0x394122,_0x409dc1,_0x2bff14){return _0x394122(_0x409dc1,_0x2bff14);},'nSbIF':function(_0x46df56,_0x1a82f3){return _0x46df56(_0x1a82f3);},'lKlEK':_0x45d6e7(0x215),'ELZRq':_0x45d6e7(0x20b),'NqWgP':function(_0x47f4dc,_0x254c30){return _0x47f4dc(_0x254c30);},'Wcxjg':_0x45d6e7(0x1fe),'dGATO':function(_0x32c4d0,_0x1480f1){return _0x32c4d0(_0x1480f1);},'VzYCm':_0x45d6e7(0x24b),'XOaOx':_0x45d6e7(0x212),'nPcZk':function(_0x5924c6){return _0x5924c6();}};logger[_0x45d6e7(0x22e)](_0x1a2fca['ELZRq']);const _0x7e40d8=_0x1a2fca[_0x45d6e7(0x251)](requireModule,_0x1a2fca[_0x45d6e7(0x256)]),_0x8ccbfa=_0x1a2fca['dGATO'](requireModule,_0x1a2fca[_0x45d6e7(0x210)]);process[_0x45d6e7(0x1ff)]=process[_0x45d6e7(0x1ff)][_0x45d6e7(0x1ec)](0x1),delete _0x7e40d8['handler'],_0x7e40d8[_0x45d6e7(0x248)]=function(_0x544011){const _0x417cfe=_0x45d6e7;return _0x1a2fca['jjneD'](captureError,_0x1a2fca['nSbIF'](require,_0x1a2fca[_0x417cfe(0x230)]),_0x544011);},_0x8ccbfa['run']=_0x7e40d8;const {main:_0x467d82}=_0x1a2fca[_0x45d6e7(0x231)](requireModule,_0x1a2fca[_0x45d6e7(0x20f)]);_0x1a2fca[_0x45d6e7(0x234)](_0x467d82);})[a43_0x54d10b(0x20d)](a43_0x54d10b(0x211),Constants[a43_0x54d10b(0x201)]['INFO'],function(_0x325cb0){const _0x5443d7=a43_0x54d10b,_0x252bdd={'eNjVk':function(_0x8201d4,_0xd87eee,_0x359ee0,_0x33170f){return _0x8201d4(_0xd87eee,_0x359ee0,_0x33170f);},'owBhT':function(_0x59fc49,_0x444604){return _0x59fc49(_0x444604);},'GXSrT':'./cucumber-js/command'},_0x3ccd12=process['argv']['slice'](0x2);return _0x252bdd[_0x5443d7(0x221)](captureError,_0x252bdd[_0x5443d7(0x224)](require,_0x252bdd[_0x5443d7(0x219)]),_0x325cb0[_0x5443d7(0x1ff)],_0x3ccd12);})[a43_0x54d10b(0x20d)]('node',Constants['VANILLA'][a43_0x54d10b(0x222)],function(_0x5b102b){const _0x375e99=a43_0x54d10b,_0x31c0d4={'WrjOS':function(_0x21e1c3,_0x5b8edd,_0x2f2b9c,_0x1fa205){return _0x21e1c3(_0x5b8edd,_0x2f2b9c,_0x1fa205);},'YLbYP':function(_0x504c1a,_0x3c7043){return _0x504c1a(_0x3c7043);},'WHMHq':'./vanilla-js/command'},_0x32c762=process['argv']['slice'](0x2);return _0x31c0d4[_0x375e99(0x245)](captureError,_0x31c0d4[_0x375e99(0x220)](require,_0x31c0d4['WHMHq']),_0x5b102b['argv'],_0x32c762);})[a43_0x54d10b(0x20d)](a43_0x54d10b(0x22d),Constants[a43_0x54d10b(0x218)][a43_0x54d10b(0x222)],function(_0xc409c4){const _0x563983=a43_0x54d10b,_0x4fd8bc={'pgmfb':function(_0x3aab78,_0x24c701,_0x1048b6,_0x40061a){return _0x3aab78(_0x24c701,_0x1048b6,_0x40061a);},'Qojer':function(_0x237584,_0x43a972){return _0x237584(_0x43a972);},'hpmrN':_0x563983(0x23e)},_0x3da46a=process[_0x563983(0x1ff)][_0x563983(0x1ec)](0x2);return _0x4fd8bc['pgmfb'](captureError,_0x4fd8bc[_0x563983(0x227)](require,_0x4fd8bc[_0x563983(0x1f1)]),_0xc409c4[_0x563983(0x1ff)],_0x3da46a);})[a43_0x54d10b(0x20d)](a43_0x54d10b(0x23c),Constants[a43_0x54d10b(0x255)][a43_0x54d10b(0x222)],function(_0x5f1348){const _0x3c0645=a43_0x54d10b,_0x3c2792={'EDoiG':function(_0x972e8c,_0x73c93c,_0x391fdf,_0xd60297){return _0x972e8c(_0x73c93c,_0x391fdf,_0xd60297);},'HYOsB':function(_0x18e7b9,_0x48b99c){return _0x18e7b9(_0x48b99c);},'STbHJ':_0x3c0645(0x21d)},_0x3b8cbc=process[_0x3c0645(0x1ff)][_0x3c0645(0x1ec)](0x2);return _0x3c2792['EDoiG'](captureError,_0x3c2792[_0x3c0645(0x23b)](require,_0x3c2792[_0x3c0645(0x1f5)]),_0x5f1348[_0x3c0645(0x1ff)],_0x3b8cbc);})['command']('ats',Constants[a43_0x54d10b(0x24a)][a43_0x54d10b(0x222)],function(_0x192eb0){const _0x24ef25=a43_0x54d10b,_0x2643a6={'qpIGR':function(_0x56342d,_0xb00a98,_0x1b7fcb){return _0x56342d(_0xb00a98,_0x1b7fcb);},'KlvVq':function(_0x4343ac,_0x1d000e){return _0x4343ac(_0x1d000e);},'vmUPE':_0x24ef25(0x24d)},_0x3956e8=process[_0x24ef25(0x1ff)]['slice'](0x2);return _0x2643a6['qpIGR'](captureError,_0x2643a6[_0x24ef25(0x244)](require,_0x2643a6[_0x24ef25(0x22c)]),_0x192eb0);})[a43_0x54d10b(0x20d)](a43_0x54d10b(0x252),Constants['INTEGRATIONS'][a43_0x54d10b(0x222)],function(_0x42bdac){const _0x1635b4=a43_0x54d10b,_0x203ec4={'hpDcg':function(_0x4eab32,_0x73223f){return _0x4eab32(_0x73223f);}};return _0x203ec4[_0x1635b4(0x1fa)](runIntegrations,_0x42bdac);})[a43_0x54d10b(0x20d)]('playwright',Constants[a43_0x54d10b(0x1fb)]['INFO'],function(_0x3d2ef2){const _0x5bc255=a43_0x54d10b,_0x46c4bc={'PehaA':function(_0x512cb6,_0x261831,_0x2995b8,_0x1e321c){return _0x512cb6(_0x261831,_0x2995b8,_0x1e321c);},'ebicQ':function(_0x37e859,_0x8da9a9){return _0x37e859(_0x8da9a9);},'BOzzv':_0x5bc255(0x1f4)},_0x55006c=process[_0x5bc255(0x1ff)]['slice'](0x2);return _0x46c4bc[_0x5bc255(0x217)](captureError,_0x46c4bc[_0x5bc255(0x20a)](require,_0x46c4bc[_0x5bc255(0x246)]),_0x3d2ef2[_0x5bc255(0x1ff)],_0x55006c);})[a43_0x54d10b(0x22f)](0x1,a43_0x54d10b(0x1f7))[a43_0x54d10b(0x249)](null)[a43_0x54d10b(0x1ff)];!helper['isUndefined'](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a43_0x54d10b(0x203)&&console['error'](a43_0x54d10b(0x1f0));
|
|
2
|
+
'use strict';const a44_0x5b1a1d=a44_0x1f19;(function(_0x4eca39,_0x370997){const _0xe4c509=a44_0x1f19,_0x273ee0=_0x4eca39();while(!![]){try{const _0x3803c5=parseInt(_0xe4c509(0x20c))/0x1+-parseInt(_0xe4c509(0x23c))/0x2*(-parseInt(_0xe4c509(0x211))/0x3)+parseInt(_0xe4c509(0x1fd))/0x4*(-parseInt(_0xe4c509(0x22c))/0x5)+-parseInt(_0xe4c509(0x206))/0x6*(parseInt(_0xe4c509(0x1da))/0x7)+parseInt(_0xe4c509(0x20e))/0x8*(parseInt(_0xe4c509(0x1ee))/0x9)+-parseInt(_0xe4c509(0x20a))/0xa*(-parseInt(_0xe4c509(0x1d9))/0xb)+-parseInt(_0xe4c509(0x1ff))/0xc*(parseInt(_0xe4c509(0x1f7))/0xd);if(_0x3803c5===_0x370997)break;else _0x273ee0['push'](_0x273ee0['shift']());}catch(_0x4e350f){_0x273ee0['push'](_0x273ee0['shift']());}}}(a44_0x5a93,0xc066d));const fs=require('fs'),path=require(a44_0x5b1a1d(0x1f3)),util=require(a44_0x5b1a1d(0x224)),{performance}=require('perf_hooks'),{requireModule}=require(a44_0x5b1a1d(0x21b)),helper=require(a44_0x5b1a1d(0x21b)),runIntegrations=require(a44_0x5b1a1d(0x231)),captureError=async(_0x4d5aae,_0x373290,_0x539142=null)=>{const _0xe7f8a5=a44_0x5b1a1d,_0x43138e={'FVRok':function(_0x11416b,_0x4a5c11,_0x2e898f){return _0x11416b(_0x4a5c11,_0x2e898f);},'ENUQt':'SDKTestSuccessful'};try{await _0x43138e[_0xe7f8a5(0x237)](_0x4d5aae,_0x373290,_0x539142);}catch(_0x579cff){process[_0xe7f8a5(0x21c)]=0x1,logger[_0xe7f8a5(0x1de)](util['format'](_0x579cff));const _0x41576e={};_0x41576e[_0xe7f8a5(0x233)]=_0x579cff['message'];const _0x4ee960=_0x41576e;if(helper['isUndefined'](global[_0xe7f8a5(0x207)])&&helper[_0xe7f8a5(0x21a)](global[_0xe7f8a5(0x1d3)]))return;try{helper[_0xe7f8a5(0x21e)](_0x43138e[_0xe7f8a5(0x219)],_0x4ee960,global[_0xe7f8a5(0x207)],global['framework']);}catch(_0x36b3fe){logger[_0xe7f8a5(0x1fe)](_0xe7f8a5(0x1d4)+_0x36b3fe);}}};try{const browserstackFolderPath=path[a44_0x5b1a1d(0x218)](helper[a44_0x5b1a1d(0x1f1)](),a44_0x5b1a1d(0x20d));if(fs[a44_0x5b1a1d(0x1eb)](browserstackFolderPath)){const filePath=path[a44_0x5b1a1d(0x218)](browserstackFolderPath,a44_0x5b1a1d(0x20b));fs[a44_0x5b1a1d(0x1eb)](filePath)&&fs['unlinkSync'](filePath);}}catch(a44_0x36df1f){logger[a44_0x5b1a1d(0x1fe)](a44_0x5b1a1d(0x223)+a44_0x36df1f[a44_0x5b1a1d(0x23b)]);}process[a44_0x5b1a1d(0x234)][a44_0x5b1a1d(0x1e0)](a44_0x5b1a1d(0x208))&&(!process[a44_0x5b1a1d(0x234)][a44_0x5b1a1d(0x1e0)]('--opts')&&process['argv'][a44_0x5b1a1d(0x212)]('--no-opts'),!process[a44_0x5b1a1d(0x234)]['includes'](a44_0x5b1a1d(0x232))&&process['argv']['push']('--no-config'),!process[a44_0x5b1a1d(0x234)][a44_0x5b1a1d(0x1e0)](a44_0x5b1a1d(0x204))&&process['argv'][a44_0x5b1a1d(0x212)]('--no-package'));const yargs=require(a44_0x5b1a1d(0x23a)),Constants=require(a44_0x5b1a1d(0x1f6)),PerformanceTester=require(a44_0x5b1a1d(0x22a)),logger=require(a44_0x5b1a1d(0x1ea))[a44_0x5b1a1d(0x200)];PerformanceTester['startMonitoring'](),performance[a44_0x5b1a1d(0x23e)]('sdk:setup-start');const a44_0x20ac5b={};function a44_0x5a93(){const _0x1bfe03=['Bjqgo','homedir','elLpm','path','ClpOs','handler','./utils/constants','794989gCDvWA','wrap','QipjS','nTxOn','MOCHA','INTEGRATIONS','8PZnYIy','debug','192FOOfMN','winstonLogger','RnCTs','Parsing\x20command\x20line\x20arguements','PLAYWRIGHT','--package','KOFRw','6wFXppG','config','mocha','command','4066470lcvKoN','.local-not-set.json','1363992dsPVpn','.browserstack','8vzIIyv','jest','QHnWM','968604xRrdtB','push','YSdPu','hkIyk','usage','playwright','zWpzN','join','ENUQt','isUndefined','../helpers/helper','exitCode','LOTqQ','fireFunnelTestEvent','rrIWs','FJGNW','INFO','node','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','util','slice','iDJxu','JEST','mocha/lib/cli/commands.js','integrations','../helpers/performance-tester','help','967830tgscMq','./jest/command','HELP','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','CUCUMBER','./integrations/command','--config','globalException','argv','nightwatch','QlvkC','FVRok','lwiQe','codeceptjs','yargs','message','4BIoBYy','alias','mark','UeWBd','WIjLQ','framework','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','TknRm','describe','ats','XyTLw','22MdQMUn','5064682MhNyCv','./mocha/command','cucumber-js','../../ats/src/index','error','ZtJxU','includes','CODECEPTJS','VANILLA','SLuaP','parserConfiguration','showHelpOnFail','VERSION','./cucumber-js/command','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','demandCommand','../helpers/logger','existsSync','pxqlb','setTestObservabilityDisable','487449oVFHmz','OkILA'];a44_0x5a93=function(){return _0x1bfe03;};return a44_0x5a93();}a44_0x20ac5b['dot-notation']=![];const argv=yargs[a44_0x5b1a1d(0x1e4)](a44_0x20ac5b)[a44_0x5b1a1d(0x215)]('usage:\x20$0\x20<command>\x20[args]')[a44_0x5b1a1d(0x23d)]('v','version')[a44_0x5b1a1d(0x1d6)]('v')[a44_0x5b1a1d(0x23d)]('h','help')[a44_0x5b1a1d(0x22b)](a44_0x5b1a1d(0x22b))[a44_0x5b1a1d(0x1e5)](!![],Constants[a44_0x5b1a1d(0x1e6)][a44_0x5b1a1d(0x22e)])[a44_0x5b1a1d(0x209)](a44_0x5b1a1d(0x20f),Constants[a44_0x5b1a1d(0x227)][a44_0x5b1a1d(0x221)],function(_0xfa945e){const _0x31aa97=a44_0x5b1a1d,_0x31e38f={'Bjqgo':function(_0x5900e8,_0x103d8b,_0xcdf2d,_0x35705a){return _0x5900e8(_0x103d8b,_0xcdf2d,_0x35705a);},'Vcwti':function(_0x434e9c,_0x31eda0){return _0x434e9c(_0x31eda0);},'rrIWs':_0x31aa97(0x22d)};helper[_0x31aa97(0x1ed)](),helper['setBrowserStackAutomationDisable']();const _0x5b783a=process[_0x31aa97(0x234)][_0x31aa97(0x225)](0x2);return _0x31e38f[_0x31aa97(0x1f0)](captureError,_0x31e38f['Vcwti'](require,_0x31e38f[_0x31aa97(0x21f)]),_0xfa945e[_0x31aa97(0x234)],_0x5b783a);})[a44_0x5b1a1d(0x209)](a44_0x5b1a1d(0x208),Constants[a44_0x5b1a1d(0x1fb)]['INFO'],_0xf6ce91=>{const _0x529f5b=a44_0x5b1a1d,_0x2397ab={'elLpm':function(_0x2d325d,_0x152d77,_0x3e0132){return _0x2d325d(_0x152d77,_0x3e0132);},'YSdPu':function(_0x3df8f5,_0x38f5ac){return _0x3df8f5(_0x38f5ac);},'OkILA':_0x529f5b(0x1db),'QipjS':_0x529f5b(0x202),'XyTLw':function(_0x42a3b4,_0x2bce80){return _0x42a3b4(_0x2bce80);},'wvAWZ':'mocha/lib/cli/run.js','zWpzN':_0x529f5b(0x228),'RnCTs':'mocha/lib/cli/cli.js','hkIyk':function(_0x2fb1ac){return _0x2fb1ac();}};logger['debug'](_0x2397ab[_0x529f5b(0x1f9)]);const _0x53b4d2=_0x2397ab['XyTLw'](requireModule,_0x2397ab['wvAWZ']),_0x221a43=_0x2397ab[_0x529f5b(0x213)](requireModule,_0x2397ab[_0x529f5b(0x217)]);process['argv']=process[_0x529f5b(0x234)][_0x529f5b(0x225)](0x1),delete _0x53b4d2[_0x529f5b(0x1f5)],_0x53b4d2[_0x529f5b(0x1f5)]=function(_0x510fff){const _0x9bfd5d=_0x529f5b;return _0x2397ab[_0x9bfd5d(0x1f2)](captureError,_0x2397ab[_0x9bfd5d(0x213)](require,_0x2397ab[_0x9bfd5d(0x1ef)]),_0x510fff);},_0x221a43['run']=_0x53b4d2;const {main:_0x2a2999}=_0x2397ab[_0x529f5b(0x1d8)](requireModule,_0x2397ab[_0x529f5b(0x201)]);_0x2397ab[_0x529f5b(0x214)](_0x2a2999);})[a44_0x5b1a1d(0x209)](a44_0x5b1a1d(0x1dc),Constants[a44_0x5b1a1d(0x230)]['INFO'],function(_0xe9aa7a){const _0x5c6b5a=a44_0x5b1a1d,_0x2cff93={'FJGNW':function(_0x1eeb3f,_0x3fe70d,_0x1465ee,_0x458995){return _0x1eeb3f(_0x3fe70d,_0x1465ee,_0x458995);},'iDJxu':function(_0x566ff7,_0x22c097){return _0x566ff7(_0x22c097);},'nTxOn':_0x5c6b5a(0x1e7)},_0x423ea0=process[_0x5c6b5a(0x234)]['slice'](0x2);return _0x2cff93[_0x5c6b5a(0x220)](captureError,_0x2cff93[_0x5c6b5a(0x226)](require,_0x2cff93[_0x5c6b5a(0x1fa)]),_0xe9aa7a[_0x5c6b5a(0x234)],_0x423ea0);})[a44_0x5b1a1d(0x209)](a44_0x5b1a1d(0x222),Constants[a44_0x5b1a1d(0x1e2)][a44_0x5b1a1d(0x221)],function(_0x3b0f2c){const _0x5e6196=a44_0x5b1a1d,_0x4f48f1={'LOTqQ':function(_0xcb4c10,_0x3d519f,_0x5d2e3f,_0x4db30e){return _0xcb4c10(_0x3d519f,_0x5d2e3f,_0x4db30e);},'mmGPt':function(_0x1fabaf,_0x247f5b){return _0x1fabaf(_0x247f5b);},'lwiQe':'./vanilla-js/command'},_0xfe88b0=process[_0x5e6196(0x234)]['slice'](0x2);return _0x4f48f1[_0x5e6196(0x21d)](captureError,_0x4f48f1['mmGPt'](require,_0x4f48f1[_0x5e6196(0x238)]),_0x3b0f2c['argv'],_0xfe88b0);})[a44_0x5b1a1d(0x209)](a44_0x5b1a1d(0x235),Constants['NIGHTWATCH'][a44_0x5b1a1d(0x221)],function(_0x16b8dd){const _0x16798a=a44_0x5b1a1d,_0x271850={'EbxPX':function(_0xa3e9a6,_0x151b50,_0x9fc95c,_0x2d45ca){return _0xa3e9a6(_0x151b50,_0x9fc95c,_0x2d45ca);},'UeWBd':function(_0x4fee46,_0xbbe10b){return _0x4fee46(_0xbbe10b);},'QlvkC':'./nightwatch/command'},_0x6fbe24=process[_0x16798a(0x234)][_0x16798a(0x225)](0x2);return _0x271850['EbxPX'](captureError,_0x271850[_0x16798a(0x1d1)](require,_0x271850[_0x16798a(0x236)]),_0x16b8dd['argv'],_0x6fbe24);})[a44_0x5b1a1d(0x209)](a44_0x5b1a1d(0x239),Constants[a44_0x5b1a1d(0x1e1)][a44_0x5b1a1d(0x221)],function(_0x56f5c1){const _0x3def76=a44_0x5b1a1d,_0x5ce132={'TknRm':function(_0x208c11,_0x2f8f76,_0x142174,_0x55aa59){return _0x208c11(_0x2f8f76,_0x142174,_0x55aa59);},'xRKmT':function(_0x291710,_0x208957){return _0x291710(_0x208957);},'KOFRw':'./codeceptjs/command'},_0x28b1f7=process[_0x3def76(0x234)]['slice'](0x2);return _0x5ce132[_0x3def76(0x1d5)](captureError,_0x5ce132['xRKmT'](require,_0x5ce132[_0x3def76(0x205)]),_0x56f5c1['argv'],_0x28b1f7);})[a44_0x5b1a1d(0x209)](a44_0x5b1a1d(0x1d7),Constants['HST']['INFO'],function(_0x489542){const _0x18b34c=a44_0x5b1a1d,_0x57816f={'ClpOs':function(_0x2ef84c,_0xe20261,_0x1fe21a){return _0x2ef84c(_0xe20261,_0x1fe21a);},'ZtJxU':function(_0x357162,_0x4bfdf0){return _0x357162(_0x4bfdf0);},'WIjLQ':_0x18b34c(0x1dd)},_0x14ac8d=process[_0x18b34c(0x234)][_0x18b34c(0x225)](0x2);return _0x57816f[_0x18b34c(0x1f4)](captureError,_0x57816f[_0x18b34c(0x1df)](require,_0x57816f[_0x18b34c(0x1d2)]),_0x489542);})[a44_0x5b1a1d(0x209)](a44_0x5b1a1d(0x229),Constants[a44_0x5b1a1d(0x1fc)][a44_0x5b1a1d(0x221)],function(_0x4d852f){const _0x413530=a44_0x5b1a1d,_0x2ccad2={'pxqlb':function(_0x5aa4dd,_0x1a6348){return _0x5aa4dd(_0x1a6348);}};return _0x2ccad2[_0x413530(0x1ec)](runIntegrations,_0x4d852f);})[a44_0x5b1a1d(0x209)](a44_0x5b1a1d(0x216),Constants[a44_0x5b1a1d(0x203)]['INFO'],function(_0x4d5af0){const _0x1fde5b=a44_0x5b1a1d,_0x49cf58={'TcLpB':function(_0x5b640e,_0x51769d,_0x13f448,_0x455d0f){return _0x5b640e(_0x51769d,_0x13f448,_0x455d0f);},'SLuaP':function(_0x5d0fa8,_0x1ab7c0){return _0x5d0fa8(_0x1ab7c0);},'QHnWM':'./playwright/command'},_0x1e1f16=process['argv'][_0x1fde5b(0x225)](0x2);return _0x49cf58['TcLpB'](captureError,_0x49cf58[_0x1fde5b(0x1e3)](require,_0x49cf58[_0x1fde5b(0x210)]),_0x4d5af0['argv'],_0x1e1f16);})[a44_0x5b1a1d(0x1e9)](0x1,a44_0x5b1a1d(0x1e8))[a44_0x5b1a1d(0x1f8)](null)[a44_0x5b1a1d(0x234)];function a44_0x1f19(_0x15080f,_0x10aad1){const _0x5a9345=a44_0x5a93();return a44_0x1f19=function(_0x1f1949,_0x50e78f){_0x1f1949=_0x1f1949-0x1d1;let _0x18d9de=_0x5a9345[_0x1f1949];return _0x18d9de;},a44_0x1f19(_0x15080f,_0x10aad1);}!helper[a44_0x5b1a1d(0x21a)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!=='ats'&&console[a44_0x5b1a1d(0x1de)](a44_0x5b1a1d(0x22f));
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const a45_0x72658c=a45_0x554b;(function(_0x502979,_0x55aae3){const _0x2e1952=a45_0x554b,_0x2c1b8c=_0x502979();while(!![]){try{const _0x37c91f=parseInt(_0x2e1952(0x1f2))/0x1*(parseInt(_0x2e1952(0x1eb))/0x2)+parseInt(_0x2e1952(0x1e2))/0x3+parseInt(_0x2e1952(0x1e8))/0x4*(parseInt(_0x2e1952(0x1f0))/0x5)+-parseInt(_0x2e1952(0x1f4))/0x6+parseInt(_0x2e1952(0x1e9))/0x7*(-parseInt(_0x2e1952(0x1ef))/0x8)+-parseInt(_0x2e1952(0x208))/0x9+parseInt(_0x2e1952(0x1c5))/0xa*(-parseInt(_0x2e1952(0x206))/0xb);if(_0x37c91f===_0x55aae3)break;else _0x2c1b8c['push'](_0x2c1b8c['shift']());}catch(_0x16704c){_0x2c1b8c['push'](_0x2c1b8c['shift']());}}}(a45_0x2e38,0x5bc70));const fs=require('fs'),helper=require(a45_0x72658c(0x1da)),yaml=require('js-yaml'),yargs=require(a45_0x72658c(0x1f3)),logger=require('../helpers/logger')[a45_0x72658c(0x1bd)],configFileTemplate=__dirname+'/../../browserstack.yml.sample',configFileTemplatePW=__dirname+'/../../browserstack.pw.yml.sample',configFile=process['cwd']()+a45_0x72658c(0x1cf),packageFile=process[a45_0x72658c(0x1dc)]()+a45_0x72658c(0x1be),frameworks=[a45_0x72658c(0x1ee),a45_0x72658c(0x1fa),a45_0x72658c(0x203),a45_0x72658c(0x1bf),'nightwatch',a45_0x72658c(0x1ff),a45_0x72658c(0x1ec)];let config;logger[a45_0x72658c(0x1d3)](a45_0x72658c(0x202)),createConfigurationFile(yargs['argv'][a45_0x72658c(0x1fe)],yargs['argv'][a45_0x72658c(0x1c0)],yargs[a45_0x72658c(0x1df)][a45_0x72658c(0x1ec)]);try{sdkSetup();}catch(a45_0x372e7f){logger[a45_0x72658c(0x1d9)](a45_0x72658c(0x1d5)+a45_0x372e7f);}addScriptInPackageJson();function createConfigurationFile(_0x3a1c9b,_0x2a43f6,_0xe298c9=![]){const _0x5a500e=a45_0x72658c,_0xfc186f={};_0xfc186f[_0x5a500e(0x1e4)]=_0x5a500e(0x1c2),_0xfc186f[_0x5a500e(0x1e3)]=_0x5a500e(0x1cb),_0xfc186f[_0x5a500e(0x1c4)]='YOUR_ACCESS_KEY';const _0x1da68c=_0xfc186f;try{let _0xdaad19=fs[_0x5a500e(0x1e0)](_0xe298c9?configFileTemplatePW:configFileTemplate,_0x1da68c['IRRUZ']);_0x3a1c9b&&(_0xdaad19=_0xdaad19[_0x5a500e(0x1ed)](_0x1da68c['JtYnl'],_0x3a1c9b)),_0x2a43f6&&(_0xdaad19=_0xdaad19[_0x5a500e(0x1ed)](_0x1da68c[_0x5a500e(0x1c4)],_0x2a43f6)),config=yaml[_0x5a500e(0x1ea)](_0xdaad19),fs[_0x5a500e(0x1e5)](configFile,_0xdaad19,_0x28fc9e=>{const _0x37c79d=_0x5a500e;_0x28fc9e&&logger[_0x37c79d(0x1ce)](_0x28fc9e);});}catch(_0x2b7b0c){logger[_0x5a500e(0x1ce)](_0x2b7b0c);}}function a45_0x554b(_0x5011dc,_0x418dc5){const _0x2e38a4=a45_0x2e38();return a45_0x554b=function(_0x554b89,_0x591a54){_0x554b89=_0x554b89-0x1bc;let _0x210fda=_0x2e38a4[_0x554b89];return _0x210fda;},a45_0x554b(_0x5011dc,_0x418dc5);}function addPostInstallScript(_0x24d138,_0x47e91c){const _0x53dbe9=a45_0x72658c,_0x1b1380={};_0x1b1380[_0x53dbe9(0x1fd)]=_0x53dbe9(0x1c7),_0x1b1380[_0x53dbe9(0x1e7)]='npm\x20update\x20browserstack-node-sdk',_0x1b1380[_0x53dbe9(0x1d6)]='\x20&&\x20npm\x20update\x20browserstack-node-sdk';const _0x59139c=_0x1b1380;let _0x2a34b8=_0x24d138[_0x59139c['nCEEW']];if(_0x2a34b8&&_0x2a34b8[_0x53dbe9(0x1d0)](_0x59139c[_0x53dbe9(0x1e7)]))return;!_0x2a34b8?_0x2a34b8=_0x59139c[_0x53dbe9(0x1e7)]:_0x2a34b8+=_0x59139c[_0x53dbe9(0x1d6)],_0x47e91c[_0x53dbe9(0x1de)]([_0x59139c[_0x53dbe9(0x1fd)],_0x2a34b8]);}function a45_0x2e38(){const _0x34b0ff=['3245022ZuVtdC','TtnvX','winstonLogger','/package.json','node','key','split','utf8','NzcYv','vYNBj','130KEuSnh','CjmGM','postinstall','node-setup','uVrsg','QdMMc','YOUR_USERNAME','isUndefined','ORYew','error','/browserstack.yml','includes','BioSF','zgtxM','info','Setup\x20completed','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','cDulF','indexOf','TQlnd','debug','../helpers/helper','UzINT','cwd','kJVht','push','argv','readFileSync','browserstack-node-sdk\x20','2037030wRgJVz','JtYnl','IRRUZ','writeFileSync','Adding\x20new\x20script(s)\x20in\x20package.json...','voHTn','961672VmOMMx','7819vbJVwQ','load','701580GRaQrX','playwright','replace','mocha','4936inLCvP','5onxKHO','scripts','2LwNSRW','yargs','40812aJzfoQ','xoEXj','SDKSetup','bMBLa','fireFunnelTestEvent','length','jest','source','browserstack-node-sdk','nCEEW','username','codeceptjs','splice','entries','Creating\x20configuration\x20file...','cucumber-js','EIePt','stringify','159533TRRyvr','parse'];a45_0x2e38=function(){return _0x34b0ff;};return a45_0x2e38();}function addScriptInPackageJson(){const _0x338875=a45_0x72658c,_0x12f940={'BioSF':_0x338875(0x1c2),'xoEXj':function(_0x520098,_0x1818dc){return _0x520098<_0x1818dc;},'zgtxM':function(_0x549762,_0x291aad,_0xfff215){return _0x549762(_0x291aad,_0xfff215);},'CjmGM':function(_0x313040,_0x166618,_0x1f94b5){return _0x313040(_0x166618,_0x1f94b5);},'UzINT':function(_0x45586b,_0x3cf875,_0x3c5239){return _0x45586b(_0x3cf875,_0x3c5239);},'TtnvX':function(_0x29324c,_0x4a9d15){return _0x29324c<_0x4a9d15;},'IiEsr':function(_0x4b107a,_0x527fe6){return _0x4b107a!==_0x527fe6;},'bMBLa':_0x338875(0x1e6)},_0x2317ab=JSON[_0x338875(0x207)](fs[_0x338875(0x1e0)](packageFile,_0x12f940[_0x338875(0x1d1)])),_0x38aea3=[];for(let _0x440aa9=0x0;_0x12f940[_0x338875(0x1f5)](_0x440aa9,frameworks['length']);_0x440aa9+=0x1){const _0x3196d9=_0x12f940[_0x338875(0x1d2)](findScriptsWithFramework,_0x2317ab['scripts'],frameworks[_0x440aa9]);for(let _0x2a9d90=0x0;_0x12f940['xoEXj'](_0x2a9d90,_0x3196d9[_0x338875(0x1f9)]);_0x2a9d90+=0x1){_0x38aea3[_0x338875(0x1de)](_0x12f940[_0x338875(0x1c6)](getUpdatedCommand,_0x2317ab[_0x338875(0x1f1)],_0x3196d9[_0x2a9d90]));}_0x12f940[_0x338875(0x1db)](addPostInstallScript,_0x2317ab[_0x338875(0x1f1)],_0x38aea3);}const _0x5b4275={..._0x2317ab[_0x338875(0x1f1)]},_0x1aeb84=_0x5b4275;for(let _0x5a6d2f=0x0;_0x12f940[_0x338875(0x1bc)](_0x5a6d2f,_0x38aea3[_0x338875(0x1f9)]);_0x5a6d2f+=0x1){_0x1aeb84[_0x38aea3[_0x5a6d2f][0x0]]=_0x38aea3[_0x5a6d2f][0x1];}_0x12f940['IiEsr'](JSON[_0x338875(0x205)](_0x2317ab[_0x338875(0x1f1)]),JSON[_0x338875(0x205)](_0x1aeb84))&&(logger[_0x338875(0x1d3)](_0x12f940[_0x338875(0x1f7)]),_0x2317ab['scripts']=_0x1aeb84,fs[_0x338875(0x1e5)](packageFile,JSON[_0x338875(0x205)](_0x2317ab,null,0x2),_0x5af979=>{const _0x3c9e90=_0x338875;_0x5af979&&logger[_0x3c9e90(0x1ce)](_0x5af979);}));};function findScriptsWithFramework(_0x3cca31,_0xc97b1){const _0x244f3d=a45_0x72658c,_0x2e883b={};_0x2e883b[_0x244f3d(0x204)]=function(_0xf9b9a5,_0x3277ae){return _0xf9b9a5<_0x3277ae;},_0x2e883b[_0x244f3d(0x1dd)]=_0x244f3d(0x1fc);const _0xa7828a=_0x2e883b,_0xaca006=[],_0x42b6c6=Object[_0x244f3d(0x201)](_0x3cca31);for(let _0x48b01c=0x0;_0xa7828a[_0x244f3d(0x204)](_0x48b01c,_0x42b6c6[_0x244f3d(0x1f9)]);_0x48b01c+=0x1){_0x42b6c6[_0x48b01c][0x1][_0x244f3d(0x1d0)](_0xc97b1)&&!_0x42b6c6[_0x48b01c][0x1][_0x244f3d(0x1d0)](_0xa7828a['kJVht'])&&_0xaca006[_0x244f3d(0x1de)](_0x42b6c6[_0x48b01c][0x0]);}return _0xaca006;}function getUpdatedCommand(_0x164422,_0x5c5b69){const _0x4de05c=a45_0x72658c,_0x14e084={};_0x14e084['NzcYv']=function(_0x50fe25,_0x21cc5b){return _0x50fe25!==_0x21cc5b;},_0x14e084[_0x4de05c(0x1ca)]=_0x4de05c(0x1fc),_0x14e084[_0x4de05c(0x1d8)]=function(_0x54379f,_0x55f165){return _0x54379f===_0x55f165;};const _0x58a623=_0x14e084,_0x38c6c6=_0x5c5b69+'-browserstack',_0x205dcd=_0x164422[_0x5c5b69],_0x4b0b2f=_0x205dcd[_0x4de05c(0x1c1)]('\x20');for(const _0x3774dd of frameworks){if(_0x58a623[_0x4de05c(0x1c3)](_0x4b0b2f[_0x4de05c(0x1d7)](_0x3774dd),-0x1)){_0x4b0b2f[_0x4de05c(0x200)](_0x4b0b2f[_0x4de05c(0x1d7)](_0x3774dd),0x0,_0x58a623['QdMMc']);break;}}let _0x2a9458=_0x4b0b2f['join']('\x20');return _0x58a623[_0x4de05c(0x1d8)](_0x2a9458,_0x205dcd)&&(_0x2a9458=_0x4de05c(0x1e1)+_0x205dcd),[_0x38c6c6,_0x2a9458];}function sdkSetup(){const _0x55cab7=a45_0x72658c,_0x3d3ca1={};_0x3d3ca1[_0x55cab7(0x1cd)]=_0x55cab7(0x1c8),_0x3d3ca1[_0x55cab7(0x1c9)]=_0x55cab7(0x1f6);const _0x4a9546=_0x3d3ca1;if(helper[_0x55cab7(0x1cc)](config))return;config[_0x55cab7(0x1fb)]=_0x4a9546[_0x55cab7(0x1cd)];try{helper[_0x55cab7(0x1f8)](_0x4a9546[_0x55cab7(0x1c9)],{},config,'');}catch(_0x5453d7){logger[_0x55cab7(0x1d9)](_0x55cab7(0x1d5)+_0x5453d7);}}logger[a45_0x72658c(0x1d3)](a45_0x72658c(0x1d4));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a45_0x568aa4=a45_0xfca2;function a45_0xfca2(_0x434a83,_0x1b9185){const _0x5a9b51=a45_0x5a9b();return a45_0xfca2=function(_0xfca2fa,_0x38b92f){_0xfca2fa=_0xfca2fa-0x193;let _0x1ce268=_0x5a9b51[_0xfca2fa];return _0x1ce268;},a45_0xfca2(_0x434a83,_0x1b9185);}(function(_0x3429ce,_0x36d4d0){const _0x376b37=a45_0xfca2,_0x60a287=_0x3429ce();while(!![]){try{const _0x2e62ec=-parseInt(_0x376b37(0x1c5))/0x1+parseInt(_0x376b37(0x1be))/0x2*(parseInt(_0x376b37(0x19d))/0x3)+-parseInt(_0x376b37(0x1ac))/0x4+-parseInt(_0x376b37(0x1db))/0x5*(-parseInt(_0x376b37(0x1bf))/0x6)+-parseInt(_0x376b37(0x19c))/0x7*(-parseInt(_0x376b37(0x1d3))/0x8)+-parseInt(_0x376b37(0x1e8))/0x9*(-parseInt(_0x376b37(0x1a8))/0xa)+parseInt(_0x376b37(0x1c6))/0xb;if(_0x2e62ec===_0x36d4d0)break;else _0x60a287['push'](_0x60a287['shift']());}catch(_0x4560c5){_0x60a287['push'](_0x60a287['shift']());}}}(a45_0x5a9b,0x3d174));function a45_0x5a9b(){const _0x2ea583=['sTkmH','18352zOKUZP','./testWorker.js','getWorkers','Bqyyg','PCWRJ','AHGGh','WkPzx','IrNxh','379915ekIaJW','launchBuild','Worker','end','emittery','p-limit','file','ZRXvf','kvDhx','zkxhT','log','ZkJKW','cucumberWorker','9ssXFMt','pipe','jest-worker','resolve','stderr','avcfg','platform','uMstd','util','platforms','MOCHA','error','OVAcT','push','vuhqn','test-file-success','Workers\x20failed\x20to\x20exit\x20gracefully','worker','700bLECNG','48RHMfpc','RBPqt','map','all','test-file-failure','platformCaps','json','then','results','TWPfr','hlddW','2885020YRIfGs','stop','configuration','emit','1599952GSnqEe','exitCode','winstonLogger','length','eFQww','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','../../helpers/testhub/testhubHandler','platform-run-start','test-file-start','parallelCucumberRun','platform-run-success','IfXKo','platform-run-failure','QwIJo','getStderr','ZDHvU','TBqVE','llIkT','8576XEswyf','12KOFHkW','KaJaC','../../helpers/test-observability/utils','SVspN','\x20for','_child','245598DFalHV','1730718cZgxmR','../../helpers/test-observability/constants','getStdout','parallelTestRun','stdout','CJEVt','lULne','BaLeL','EWvMv','bPhqr','vanillaWorker','dIztr'];a45_0x5a9b=function(){return _0x2ea583;};return a45_0x5a9b();}const Worker=require(a45_0x568aa4(0x1ea))[a45_0x568aa4(0x1dd)],Emittery=require(a45_0x568aa4(0x1df)),pLimit=require(a45_0x568aa4(0x1e0)),util=require(a45_0x568aa4(0x1f0)),logger=require('../../helpers/logger')[a45_0x568aa4(0x1ae)],{debug}=require(a45_0x568aa4(0x1c1)),TestHubHandler=require(a45_0x568aa4(0x1b2)),{FRAMEWORKS}=require(a45_0x568aa4(0x1c7));exports[a45_0x568aa4(0x1c9)]=(_0x461ea1,_0x342d31,_0x5248f7)=>new Promise(async _0x16597e=>{const _0x401e0c=a45_0x568aa4,_0x40231e={'vuhqn':'failureCount','dWdid':function(_0x692b0c,_0x3ba872){return _0x692b0c+_0x3ba872;},'uMstd':_0x401e0c(0x1a5),'TWPfr':_0x401e0c(0x19a),'CJEVt':function(_0x430814,_0x47482a){return _0x430814(_0x47482a);},'eFQww':_0x401e0c(0x1b4),'dCxAI':'./testWorker.js','hlddW':_0x401e0c(0x19b),'lULne':_0x401e0c(0x1a3),'kvDhx':_0x401e0c(0x1e9),'KaJaC':function(_0x17e372,_0x272073){return _0x17e372*_0x272073;},'GffrW':_0x401e0c(0x199),'bajyb':_0x401e0c(0x1a1),'ZDHvU':function(_0x4a31f4,_0x2e76f9){return _0x4a31f4(_0x2e76f9);},'WkPzx':function(_0x73efc,_0x3865d7){return _0x73efc*_0x3865d7;}},_0x19c328=_0x5248f7['config'],_0x2da439={},_0x1d44ce=await TestHubHandler[_0x401e0c(0x1dc)](FRAMEWORKS[_0x401e0c(0x194)],_0x5248f7),_0x1356d3=new Worker(require[_0x401e0c(0x1eb)](_0x40231e['dCxAI']),{'exposedMethods':[_0x40231e[_0x401e0c(0x1a7)]],'forkOptions':{'serialization':_0x40231e[_0x401e0c(0x1cc)],'stdio':_0x40231e[_0x401e0c(0x1e3)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0x40231e[_0x401e0c(0x1c0)](_0x342d31,0x1),'enableWorkerThreads':!![]}),_0x3986bd=new Emittery();_0x3986bd['on'](_0x40231e['GffrW'],_0x1603d0=>{const _0x5536e2=_0x401e0c;_0x2da439[_0x1603d0[0x0]]?(_0x2da439[_0x1603d0[0x0]][_0x40231e[_0x5536e2(0x198)]]=_0x40231e['dWdid'](_0x2da439[_0x1603d0[0x0]][_0x40231e[_0x5536e2(0x198)]],_0x1603d0[0x1][_0x40231e[_0x5536e2(0x198)]]),_0x2da439[_0x1603d0[0x0]][_0x40231e[_0x5536e2(0x1ef)]]=[..._0x2da439[_0x1603d0[0x0]][_0x40231e[_0x5536e2(0x1ef)]],..._0x1603d0[0x1][_0x40231e[_0x5536e2(0x1ef)]]]):_0x2da439[_0x1603d0[0x0]]={'failureCount':_0x1603d0[0x1][_0x40231e[_0x5536e2(0x198)]],'results':[..._0x1603d0[0x1][_0x40231e['uMstd']]]};}),_0x3986bd['on'](_0x40231e['bajyb'],_0x285084=>console[_0x401e0c(0x1e5)](_0x285084[0x1]));_0x1356d3[_0x401e0c(0x1c8)]()&&_0x1356d3['getStdout']()[_0x401e0c(0x1e9)](process[_0x401e0c(0x1ca)]);_0x1356d3[_0x401e0c(0x1ba)]()&&_0x1356d3[_0x401e0c(0x1ba)]()[_0x401e0c(0x1e9)](process[_0x401e0c(0x1ec)]);const _0x4ab962=async()=>{const _0x434ab7=_0x401e0c,{forceExited:_0x29dc12}=await _0x1356d3[_0x434ab7(0x1de)]();_0x29dc12&&console[_0x434ab7(0x195)](_0x40231e[_0x434ab7(0x1a6)]);try{await TestHubHandler[_0x434ab7(0x1a9)]();}catch(_0x386da7){_0x40231e[_0x434ab7(0x1cb)](debug,_0x434ab7(0x1b1)+_0x386da7);}_0x40231e[_0x434ab7(0x1cb)](_0x16597e,_0x2da439);},_0x534cb6=_0x40231e[_0x401e0c(0x1bb)](pLimit,_0x40231e[_0x401e0c(0x1d9)](_0x342d31,0x1)),_0x1fe6de=_0x3eb268=>_0x534cb6(async()=>{const _0x366ed8=_0x401e0c;return await _0x3986bd[_0x366ed8(0x1ab)](_0x40231e[_0x366ed8(0x1b0)],_0x3eb268),_0x1356d3[_0x366ed8(0x19b)](_0x3eb268,_0x19c328);});Promise['all'](_0x461ea1[_0x401e0c(0x19f)](_0x18eab9=>_0x1fe6de(_0x18eab9)[_0x401e0c(0x1a4)](_0x2f5a38=>_0x3986bd[_0x401e0c(0x1ab)](_0x401e0c(0x199),[_0x18eab9[_0x401e0c(0x1aa)][_0x401e0c(0x1ee)],_0x2f5a38]),_0x1f1b12=>_0x3986bd[_0x401e0c(0x1ab)]('test-file-failure',[_0x18eab9,_0x1f1b12]))))['then'](_0x4ab962,_0x4ab962);}),exports[a45_0x568aa4(0x1b5)]=(_0x5bb91d,_0x951f29,_0x6f7feb,_0x56202d,_0xa36339)=>{const _0x278d94=a45_0x568aa4,_0x225025={'SVspN':_0x278d94(0x1b3),'ZkJKW':_0x278d94(0x19a),'RBPqt':function(_0x276c75,_0x1c8e59){return _0x276c75(_0x1c8e59);},'rTAql':_0x278d94(0x1d4),'avcfg':_0x278d94(0x1e7),'Bqyyg':'json','PCWRJ':'pipe','BaLeL':_0x278d94(0x1b6),'EWvMv':_0x278d94(0x1b8)};return new Promise(_0x302ca6=>{const _0x28fa3d=_0x278d94,_0x31c7e0={'sTkmH':_0x225025[_0x28fa3d(0x1e6)],'IfXKo':function(_0x1c86cd,_0x41ae74){const _0x5c5eb8=_0x28fa3d;return _0x225025[_0x5c5eb8(0x19e)](_0x1c86cd,_0x41ae74);}},_0x4fe07a=[],_0xf0f7b5=new Worker(require[_0x28fa3d(0x1eb)](_0x225025['rTAql']),{'exposedMethods':[_0x225025[_0x28fa3d(0x1ed)]],'forkOptions':{'serialization':_0x225025[_0x28fa3d(0x1d6)],'stdio':_0x225025[_0x28fa3d(0x1d7)]},'numWorkers':_0x5bb91d['length']||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x30673a=new Emittery();_0x30673a['on'](_0x225025[_0x28fa3d(0x1cd)],_0x5a194b=>{const _0x4721a4=_0x28fa3d;_0x4fe07a[_0x4721a4(0x197)]([_0x5a194b[0x0],_0x5a194b[0x1]]);}),_0x30673a['on'](_0x225025[_0x28fa3d(0x1ce)],_0x15b252=>console[_0x28fa3d(0x1e5)](_0x15b252[0x1]));_0xf0f7b5[_0x28fa3d(0x1c8)]()&&_0xf0f7b5[_0x28fa3d(0x1c8)]()[_0x28fa3d(0x1e9)](process['stdout']);_0xf0f7b5[_0x28fa3d(0x1ba)]()&&_0xf0f7b5[_0x28fa3d(0x1ba)]()[_0x28fa3d(0x1e9)](process[_0x28fa3d(0x1ec)]);const _0x9838f4=async()=>{const _0x2b5607=_0x28fa3d,{forceExited:_0x2d3945}=await _0xf0f7b5[_0x2b5607(0x1de)]();_0x2d3945&&console[_0x2b5607(0x195)](_0x31c7e0[_0x2b5607(0x1d2)]),_0x31c7e0[_0x2b5607(0x1b7)](_0x302ca6,_0x4fe07a);},_0x32c152=_0x225025[_0x28fa3d(0x19e)](pLimit,_0x5bb91d[_0x28fa3d(0x1af)]||0x1),_0x357ee1=(_0x448084,_0x4fd46f)=>_0x32c152(async()=>{const _0x34317b=_0x28fa3d;return await _0x30673a[_0x34317b(0x1ab)](_0x225025[_0x34317b(0x1c2)],_0x448084),_0x951f29[_0x34317b(0x1a2)]=_0x6f7feb[_0x34317b(0x193)][_0x4fd46f],_0xf0f7b5[_0x34317b(0x1e7)](_0x448084,_0x951f29,_0x6f7feb,_0x56202d,_0xa36339);});Promise[_0x28fa3d(0x1a0)](_0x5bb91d[_0x28fa3d(0x19f)]((_0x5a945b,_0x35dcef)=>_0x357ee1(_0x5a945b,_0x35dcef)[_0x28fa3d(0x1a4)](_0x36f9cd=>_0x30673a[_0x28fa3d(0x1ab)](_0x28fa3d(0x1b6),[_0x5a945b,_0x36f9cd]),_0x234390=>_0x30673a['emit']('platform-run-failure',[_0x5a945b,_0x234390]))))[_0x28fa3d(0x1a4)](_0x9838f4,_0x9838f4);});},exports['parallelVanillaRun']=(_0x496795,_0x580efe)=>new Promise(_0x21e51e=>{const _0x37958a=a45_0x568aa4,_0x3160ea={'ZRXvf':function(_0x14ff2c,_0x121e40){return _0x14ff2c===_0x121e40;},'QwIJo':function(_0xf54870,_0x31c3f7){return _0xf54870!==_0x31c3f7;},'bPhqr':'exit','iAzuq':_0x37958a(0x19a),'zkxhT':function(_0x4a7755,_0x48542a){return _0x4a7755(_0x48542a);},'UOoKT':_0x37958a(0x1d4),'OVAcT':_0x37958a(0x1d0),'AHGGh':_0x37958a(0x1a3),'TBqVE':'pipe','IrNxh':_0x37958a(0x199),'dIztr':_0x37958a(0x1a1)},_0x387100={},_0x33899d=new Worker(require['resolve'](_0x3160ea['UOoKT']),{'exposedMethods':[_0x3160ea[_0x37958a(0x196)]],'forkOptions':{'serialization':_0x3160ea[_0x37958a(0x1d8)],'stdio':_0x3160ea[_0x37958a(0x1bc)]},'numWorkers':_0x580efe,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0x3fedd4=new Emittery();_0x3fedd4['on'](_0x3160ea[_0x37958a(0x1da)],_0x12e47f=>{const _0x293e1d=_0x37958a;_0x12e47f[0x0]&&logger['info']('Running\x20'+_0x12e47f[0x1]+_0x293e1d(0x1c3),_0x12e47f[0x0]);}),_0x3fedd4['on'](_0x3160ea[_0x37958a(0x1d1)],_0x54cdb3=>{const _0x2f8452=_0x37958a;process[_0x2f8452(0x1ad)]=0x1;});_0x33899d[_0x37958a(0x1c8)]()&&_0x33899d[_0x37958a(0x1c8)]()['pipe'](process[_0x37958a(0x1ca)]);_0x33899d['getStderr']()&&_0x33899d['getStderr']()[_0x37958a(0x1e9)](process[_0x37958a(0x1ec)]);const _0x5cc409=async()=>{const _0x2a809a=_0x37958a;let _0x4e12d9=0x0;const _0x3d0e01=_0x33899d['_workerPool'][_0x2a809a(0x1d5)](),_0x5d1c45=()=>{},_0x33d4b8=_0x3d0e01[_0x2a809a(0x19f)](async _0x2a94c7=>{const _0x101c33=_0x2a809a,_0x102dbc={'llIkT':function(_0x1356a8,_0x598c02){const _0xf8218b=a45_0xfca2;return _0x3160ea[_0xf8218b(0x1e2)](_0x1356a8,_0x598c02);},'VCJXY':function(_0x12fad0,_0x3f1c8a){const _0x587099=a45_0xfca2;return _0x3160ea[_0x587099(0x1b9)](_0x12fad0,_0x3f1c8a);}};_0x2a94c7['send']([0x2,![]],_0x5d1c45,_0x5d1c45,_0x5d1c45),_0x2a94c7[_0x101c33(0x1c4)]['on'](_0x3160ea[_0x101c33(0x1cf)],_0x309db2=>{const _0x46c749=_0x101c33;_0x102dbc[_0x46c749(0x1bd)](_0x4e12d9,0x0)&&_0x102dbc['VCJXY'](_0x309db2,0x0)&&(_0x4e12d9=_0x309db2);}),await _0x2a94c7['waitForExit']();});await Promise[_0x2a809a(0x1a0)](_0x33d4b8),process[_0x2a809a(0x1ad)]=_0x4e12d9;const {forceExited:_0x534ecf}=await _0x33899d[_0x2a809a(0x1de)]();_0x534ecf&&console['error'](_0x3160ea['iAzuq']),_0x3160ea[_0x2a809a(0x1e4)](_0x21e51e,_0x387100);},_0x4fcd9a=_0x3160ea[_0x37958a(0x1e4)](pLimit,_0x580efe),_0x14d138=_0x2714ac=>_0x4fcd9a(async()=>{const _0x27416c=_0x37958a;return _0x33899d[_0x27416c(0x1d0)](_0x2714ac);});Promise[_0x37958a(0x1a0)](_0x496795['map'](_0x55900c=>_0x14d138(_0x55900c)[_0x37958a(0x1a4)](_0x3ecd70=>_0x3fedd4[_0x37958a(0x1ab)](_0x37958a(0x199),[_0x55900c['configuration'][_0x37958a(0x1ee)],_0x55900c[_0x37958a(0x1aa)][_0x37958a(0x1e1)]]),_0xbd07a4=>_0x3fedd4[_0x37958a(0x1ab)](_0x37958a(0x1a1),[_0x55900c,_0xbd07a4]))))['then'](_0x5cc409,_0x5cc409);});
|
|
1
|
+
const a46_0x32c51c=a46_0x113f;(function(_0x1f6e9a,_0x8063c5){const _0x425b62=a46_0x113f,_0x2fc318=_0x1f6e9a();while(!![]){try{const _0x172834=-parseInt(_0x425b62(0x142))/0x1*(-parseInt(_0x425b62(0x16e))/0x2)+-parseInt(_0x425b62(0x159))/0x3*(parseInt(_0x425b62(0x136))/0x4)+parseInt(_0x425b62(0x169))/0x5+parseInt(_0x425b62(0x12b))/0x6*(-parseInt(_0x425b62(0x13a))/0x7)+parseInt(_0x425b62(0x130))/0x8*(parseInt(_0x425b62(0x147))/0x9)+parseInt(_0x425b62(0x174))/0xa+parseInt(_0x425b62(0x12e))/0xb*(-parseInt(_0x425b62(0x146))/0xc);if(_0x172834===_0x8063c5)break;else _0x2fc318['push'](_0x2fc318['shift']());}catch(_0x3f3dc7){_0x2fc318['push'](_0x2fc318['shift']());}}}(a46_0x30e5,0xc0c8c));function a46_0x113f(_0x1da977,_0x25d283){const _0x30e5bd=a46_0x30e5();return a46_0x113f=function(_0x113faa,_0x3d7abb){_0x113faa=_0x113faa-0x11b;let _0x286e86=_0x30e5bd[_0x113faa];return _0x286e86;},a46_0x113f(_0x1da977,_0x25d283);}const Worker=require(a46_0x32c51c(0x12f))[a46_0x32c51c(0x150)],Emittery=require(a46_0x32c51c(0x140)),pLimit=require('p-limit'),util=require(a46_0x32c51c(0x14a)),logger=require(a46_0x32c51c(0x16a))[a46_0x32c51c(0x15d)],{debug}=require('../../helpers/test-observability/utils'),TestHubHandler=require(a46_0x32c51c(0x179)),{FRAMEWORKS}=require(a46_0x32c51c(0x16b));exports['parallelTestRun']=(_0x5e503e,_0x255168,_0x31e6fb)=>new Promise(async _0x5268a2=>{const _0x2b10fb=a46_0x32c51c,_0x569635={'tCQtF':_0x2b10fb(0x172),'XJWUo':function(_0x55b8a5,_0x3f1e86){return _0x55b8a5+_0x3f1e86;},'qXtAq':'results','GmCLZ':'Workers\x20failed\x20to\x20exit\x20gracefully','StbWM':function(_0x5de030,_0x2c6f43){return _0x5de030(_0x2c6f43);},'GJXjq':_0x2b10fb(0x177),'YmTaa':_0x2b10fb(0x168),'GMTUq':'worker','dlhuq':'json','HzKlw':_0x2b10fb(0x176),'haZzz':function(_0x458a51,_0x5d69aa){return _0x458a51*_0x5d69aa;},'uoSKj':_0x2b10fb(0x11b),'dQaBB':_0x2b10fb(0x132)},_0xdf083c=_0x31e6fb[_0x2b10fb(0x120)],_0x4d4f1f={},_0x23cd81=await TestHubHandler['launchBuild'](FRAMEWORKS['MOCHA'],_0x31e6fb),_0x179085=new Worker(require[_0x2b10fb(0x144)](_0x569635[_0x2b10fb(0x155)]),{'exposedMethods':[_0x569635[_0x2b10fb(0x173)]],'forkOptions':{'serialization':_0x569635['dlhuq'],'stdio':_0x569635[_0x2b10fb(0x14f)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0x569635[_0x2b10fb(0x151)](_0x255168,0x1),'enableWorkerThreads':!![]}),_0x31ae79=new Emittery();_0x31ae79['on'](_0x569635[_0x2b10fb(0x145)],_0x32944c=>{const _0x85c3da=_0x2b10fb;_0x4d4f1f[_0x32944c[0x0]]?(_0x4d4f1f[_0x32944c[0x0]][_0x569635[_0x85c3da(0x13f)]]=_0x569635[_0x85c3da(0x138)](_0x4d4f1f[_0x32944c[0x0]][_0x569635[_0x85c3da(0x13f)]],_0x32944c[0x1][_0x569635[_0x85c3da(0x13f)]]),_0x4d4f1f[_0x32944c[0x0]][_0x569635[_0x85c3da(0x123)]]=[..._0x4d4f1f[_0x32944c[0x0]][_0x569635['qXtAq']],..._0x32944c[0x1][_0x569635[_0x85c3da(0x123)]]]):_0x4d4f1f[_0x32944c[0x0]]={'failureCount':_0x32944c[0x1][_0x569635[_0x85c3da(0x13f)]],'results':[..._0x32944c[0x1][_0x569635[_0x85c3da(0x123)]]]};}),_0x31ae79['on'](_0x569635[_0x2b10fb(0x13d)],_0x3f01c1=>console['log'](_0x3f01c1[0x1]));_0x179085[_0x2b10fb(0x11f)]()&&_0x179085[_0x2b10fb(0x11f)]()[_0x2b10fb(0x176)](process[_0x2b10fb(0x158)]);_0x179085[_0x2b10fb(0x157)]()&&_0x179085[_0x2b10fb(0x157)]()['pipe'](process['stderr']);const _0x8ec177=async()=>{const _0x7a9aa5=_0x2b10fb,{forceExited:_0x4daca2}=await _0x179085['end']();_0x4daca2&&console[_0x7a9aa5(0x128)](_0x569635[_0x7a9aa5(0x14d)]);try{await TestHubHandler['stop']();}catch(_0x4ebb8d){_0x569635['StbWM'](debug,_0x7a9aa5(0x148)+_0x4ebb8d);}_0x569635[_0x7a9aa5(0x161)](_0x5268a2,_0x4d4f1f);},_0x3ad2d0=_0x569635[_0x2b10fb(0x161)](pLimit,_0x569635[_0x2b10fb(0x151)](_0x255168,0x1)),_0x3ee7bb=_0x4366b6=>_0x3ad2d0(async()=>{const _0x268cb3=_0x2b10fb;return await _0x31ae79[_0x268cb3(0x14e)](_0x569635[_0x268cb3(0x11c)],_0x4366b6),_0x179085[_0x268cb3(0x11e)](_0x4366b6,_0xdf083c);});Promise['all'](_0x5e503e['map'](_0x3c4c45=>_0x3ee7bb(_0x3c4c45)[_0x2b10fb(0x13e)](_0x52a8bf=>_0x31ae79['emit'](_0x2b10fb(0x11b),[_0x3c4c45[_0x2b10fb(0x160)]['platform'],_0x52a8bf]),_0x9e39f3=>_0x31ae79[_0x2b10fb(0x14e)](_0x2b10fb(0x132),[_0x3c4c45,_0x9e39f3]))))[_0x2b10fb(0x13e)](_0x8ec177,_0x8ec177);}),exports[a46_0x32c51c(0x139)]=(_0x8ed55e,_0x2d1cef,_0x2c8ac1,_0x4be671,_0x194d08)=>{const _0x5da458=a46_0x32c51c,_0xf86c69={'BTkfF':_0x5da458(0x171),'epRHI':function(_0x426be,_0x23ebe6){return _0x426be(_0x23ebe6);},'fKnBM':_0x5da458(0x163),'vmvXr':'./testWorker.js','OGIWv':_0x5da458(0x121),'NInNB':_0x5da458(0x15c),'TFGEd':'pipe','wNDTN':'platform-run-success','zJNHy':_0x5da458(0x141)};return new Promise(_0x4c7c9f=>{const _0x1171d3=_0x5da458,_0x1c6bbb={};_0x1c6bbb['CBLvg']=_0xf86c69[_0x1171d3(0x129)];const _0x12ae3a=_0x1c6bbb,_0x575bf2=[],_0x837897=new Worker(require['resolve'](_0xf86c69[_0x1171d3(0x164)]),{'exposedMethods':[_0xf86c69[_0x1171d3(0x126)]],'forkOptions':{'serialization':_0xf86c69[_0x1171d3(0x154)],'stdio':_0xf86c69['TFGEd']},'numWorkers':_0x8ed55e['length']||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x2ef613=new Emittery();_0x2ef613['on'](_0xf86c69[_0x1171d3(0x153)],_0x5bd3e7=>{const _0x1d05a8=_0x1171d3;_0x575bf2[_0x1d05a8(0x134)]([_0x5bd3e7[0x0],_0x5bd3e7[0x1]]);}),_0x2ef613['on'](_0xf86c69['zJNHy'],_0xc5dd90=>console[_0x1171d3(0x152)](_0xc5dd90[0x1]));_0x837897[_0x1171d3(0x11f)]()&&_0x837897['getStdout']()[_0x1171d3(0x176)](process[_0x1171d3(0x158)]);_0x837897[_0x1171d3(0x157)]()&&_0x837897[_0x1171d3(0x157)]()['pipe'](process[_0x1171d3(0x15e)]);const _0x5a5fdf=async()=>{const _0x324500=_0x1171d3,{forceExited:_0x5d050d}=await _0x837897[_0x324500(0x13b)]();_0x5d050d&&console[_0x324500(0x128)](_0xf86c69['BTkfF']),_0xf86c69[_0x324500(0x13c)](_0x4c7c9f,_0x575bf2);},_0x29dc2f=_0xf86c69[_0x1171d3(0x13c)](pLimit,_0x8ed55e[_0x1171d3(0x175)]||0x1),_0x35aed2=(_0x5d951f,_0x177c55)=>_0x29dc2f(async()=>{const _0xe44f7a=_0x1171d3;return await _0x2ef613[_0xe44f7a(0x14e)](_0x12ae3a[_0xe44f7a(0x16d)],_0x5d951f),_0x2d1cef[_0xe44f7a(0x137)]=_0x2c8ac1[_0xe44f7a(0x133)][_0x177c55],_0x837897[_0xe44f7a(0x121)](_0x5d951f,_0x2d1cef,_0x2c8ac1,_0x4be671,_0x194d08);});Promise[_0x1171d3(0x12d)](_0x8ed55e[_0x1171d3(0x125)]((_0x1b084c,_0x343c0e)=>_0x35aed2(_0x1b084c,_0x343c0e)['then'](_0x534f4b=>_0x2ef613[_0x1171d3(0x14e)](_0x1171d3(0x122),[_0x1b084c,_0x534f4b]),_0x163458=>_0x2ef613['emit']('platform-run-failure',[_0x1b084c,_0x163458]))))[_0x1171d3(0x13e)](_0x5a5fdf,_0x5a5fdf);});},exports[a46_0x32c51c(0x12c)]=(_0x1f432c,_0x24402f)=>new Promise(_0x299209=>{const _0x95707f=a46_0x32c51c,_0x1124bc={'ffGmU':function(_0x535045,_0x1e8c10){return _0x535045===_0x1e8c10;},'DroPN':function(_0x1bfe05,_0x165081){return _0x1bfe05!==_0x165081;},'yXCsv':_0x95707f(0x162),'QRief':'Workers\x20failed\x20to\x20exit\x20gracefully','wCmzv':function(_0x1ba61c,_0x399e3f){return _0x1ba61c(_0x399e3f);},'ngtyL':_0x95707f(0x168),'kTwcA':'vanillaWorker','RGOtH':_0x95707f(0x15c),'ujmkr':_0x95707f(0x176),'qasPD':'test-file-success','RTwfW':'test-file-failure'},_0x1b19f3={},_0xfec4bc=new Worker(require['resolve'](_0x1124bc[_0x95707f(0x127)]),{'exposedMethods':[_0x1124bc[_0x95707f(0x15a)]],'forkOptions':{'serialization':_0x1124bc[_0x95707f(0x131)],'stdio':_0x1124bc[_0x95707f(0x15f)]},'numWorkers':_0x24402f,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0x16c03e=new Emittery();_0x16c03e['on'](_0x1124bc[_0x95707f(0x14b)],_0x57bb5e=>{const _0x43dbde=_0x95707f;_0x57bb5e[0x0]&&logger['info'](_0x43dbde(0x16f)+_0x57bb5e[0x1]+'\x20for',_0x57bb5e[0x0]);}),_0x16c03e['on'](_0x1124bc[_0x95707f(0x156)],_0x1a67b8=>{process['exitCode']=0x1;});_0xfec4bc[_0x95707f(0x11f)]()&&_0xfec4bc[_0x95707f(0x11f)]()[_0x95707f(0x176)](process[_0x95707f(0x158)]);_0xfec4bc[_0x95707f(0x157)]()&&_0xfec4bc[_0x95707f(0x157)]()[_0x95707f(0x176)](process[_0x95707f(0x15e)]);const _0x1b57da=async()=>{const _0x21da4b=_0x95707f;let _0x722c1f=0x0;const _0x106b14=_0xfec4bc[_0x21da4b(0x166)]['getWorkers'](),_0x4243fc=()=>{},_0x29b68e=_0x106b14[_0x21da4b(0x125)](async _0x447d31=>{const _0x463397=_0x21da4b,_0x4641fd={'KNWpk':function(_0x150724,_0x1634d8){const _0x378344=a46_0x113f;return _0x1124bc[_0x378344(0x170)](_0x150724,_0x1634d8);},'AzAhF':function(_0x2e43b2,_0x3a3291){const _0x599470=a46_0x113f;return _0x1124bc[_0x599470(0x124)](_0x2e43b2,_0x3a3291);}};_0x447d31[_0x463397(0x149)]([0x2,![]],_0x4243fc,_0x4243fc,_0x4243fc),_0x447d31[_0x463397(0x178)]['on'](_0x1124bc[_0x463397(0x165)],_0xacbd5a=>{const _0x6cc9d6=_0x463397;_0x4641fd[_0x6cc9d6(0x16c)](_0x722c1f,0x0)&&_0x4641fd[_0x6cc9d6(0x135)](_0xacbd5a,0x0)&&(_0x722c1f=_0xacbd5a);}),await _0x447d31[_0x463397(0x12a)]();});await Promise[_0x21da4b(0x12d)](_0x29b68e),process[_0x21da4b(0x15b)]=_0x722c1f;const {forceExited:_0x5785b1}=await _0xfec4bc[_0x21da4b(0x13b)]();_0x5785b1&&console[_0x21da4b(0x128)](_0x1124bc[_0x21da4b(0x11d)]),_0x1124bc[_0x21da4b(0x14c)](_0x299209,_0x1b19f3);},_0x36673a=_0x1124bc[_0x95707f(0x14c)](pLimit,_0x24402f),_0x560020=_0x1acdc5=>_0x36673a(async()=>{const _0xa7da97=_0x95707f;return _0xfec4bc[_0xa7da97(0x167)](_0x1acdc5);});Promise[_0x95707f(0x12d)](_0x1f432c[_0x95707f(0x125)](_0x39f9f6=>_0x560020(_0x39f9f6)[_0x95707f(0x13e)](_0x4e14be=>_0x16c03e[_0x95707f(0x14e)](_0x95707f(0x11b),[_0x39f9f6['configuration']['platform'],_0x39f9f6[_0x95707f(0x160)][_0x95707f(0x143)]]),_0xa87e88=>_0x16c03e['emit'](_0x95707f(0x132),[_0x39f9f6,_0xa87e88]))))[_0x95707f(0x13e)](_0x1b57da,_0x1b57da);});function a46_0x30e5(){const _0x2d7515=['emit','HzKlw','Worker','haZzz','log','wNDTN','NInNB','YmTaa','RTwfW','getStderr','stdout','9URwzmH','kTwcA','exitCode','json','winstonLogger','stderr','ujmkr','configuration','StbWM','exit','platform-run-start','vmvXr','yXCsv','_workerPool','vanillaWorker','./testWorker.js','6887150PYWACq','../../helpers/logger','../../helpers/test-observability/constants','KNWpk','CBLvg','12hwbWOZ','Running\x20','ffGmU','Workers\x20failed\x20to\x20exit\x20gracefully','failureCount','GMTUq','1093780VtrbTW','length','pipe','test-file-start','_child','../../helpers/testhub/testhubHandler','test-file-success','GJXjq','QRief','worker','getStdout','config','cucumberWorker','platform-run-success','qXtAq','DroPN','map','OGIWv','ngtyL','error','fKnBM','waitForExit','6PDRZbp','parallelVanillaRun','all','3784429HWpCMq','jest-worker','11931800jmJwcu','RGOtH','test-file-failure','platforms','push','AzAhF','1712372QwiyCW','platformCaps','XJWUo','parallelCucumberRun','5096735YowBjH','end','epRHI','dQaBB','then','tCQtF','emittery','platform-run-failure','27964NRbCUj','file','resolve','uoSKj','12zuWzlP','9ubCHmO','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','send','util','qasPD','wCmzv','GmCLZ'];a46_0x30e5=function(){return _0x2d7515;};return a46_0x30e5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47_0x52c2f9=a47_0xd782;function a47_0xd782(_0x39f4da,_0x830b09){const _0xa51823=a47_0xa518();return a47_0xd782=function(_0xd7829f,_0x3bfa2b){_0xd7829f=_0xd7829f-0x199;let _0x370a34=_0xa51823[_0xd7829f];return _0x370a34;},a47_0xd782(_0x39f4da,_0x830b09);}(function(_0x9c7966,_0x2b3bfe){const _0x5ad119=a47_0xd782,_0x1ea4b5=_0x9c7966();while(!![]){try{const _0x201ef7=parseInt(_0x5ad119(0x1ae))/0x1+-parseInt(_0x5ad119(0x1a7))/0x2*(parseInt(_0x5ad119(0x1a5))/0x3)+parseInt(_0x5ad119(0x19a))/0x4*(-parseInt(_0x5ad119(0x1a9))/0x5)+-parseInt(_0x5ad119(0x1ac))/0x6*(parseInt(_0x5ad119(0x1ab))/0x7)+parseInt(_0x5ad119(0x19b))/0x8+-parseInt(_0x5ad119(0x1a8))/0x9*(parseInt(_0x5ad119(0x1ad))/0xa)+parseInt(_0x5ad119(0x19d))/0xb;if(_0x201ef7===_0x2b3bfe)break;else _0x1ea4b5['push'](_0x1ea4b5['shift']());}catch(_0x374b7a){_0x1ea4b5['push'](_0x1ea4b5['shift']());}}}(a47_0xa518,0x9f041),exports[a47_0x52c2f9(0x1b1)]=async(_0x5ee05a,_0x10113f)=>{const _0x41ecd2=a47_0x52c2f9,_0x304206={'uEHka':function(_0x58f82f,_0x4aeb10){return _0x58f82f(_0x4aeb10);},'FsrUz':_0x41ecd2(0x1af),'EnyoA':_0x41ecd2(0x1a3)},_0x4c5523=_0x304206[_0x41ecd2(0x1a4)](require,_0x304206[_0x41ecd2(0x19e)]),_0x39f685=new _0x4c5523(_0x304206['EnyoA'],_0x5ee05a,_0x10113f);return await _0x39f685['run']();},exports[a47_0x52c2f9(0x1a6)]=async(_0x3a5394,_0x5200a3,_0x17de78,_0x371b3f,_0x18c950)=>{const _0x456baa=a47_0x52c2f9,_0x2791f8={'HYUTM':function(_0x3c3986,_0x4d8eb6){return _0x3c3986(_0x4d8eb6);},'eWnbd':_0x456baa(0x1af),'MCwrt':_0x456baa(0x19c)},_0x2dcf08={'capability':_0x3a5394,..._0x5200a3},_0x46326e={};_0x46326e[_0x456baa(0x1a2)]=_0x2dcf08,_0x46326e['formatter']=_0x18c950;const _0x17df6d=_0x46326e,_0x5ece6e=_0x2791f8['HYUTM'](require,_0x2791f8[_0x456baa(0x1aa)]),_0x5f39cc=new _0x5ece6e(_0x2791f8[_0x456baa(0x1a1)],_0x17df6d,_0x17de78,_0x371b3f);return await _0x5f39cc[_0x456baa(0x199)]();},exports[a47_0x52c2f9(0x1a0)]=async _0x39ebea=>{const _0x2af73a=a47_0x52c2f9,_0x92cfb1={'EMOdC':function(_0x1df9f1,_0x14670c){return _0x1df9f1(_0x14670c);},'oXEPH':'../launcher/launcher','VWcpe':_0x2af73a(0x1b0)},_0x5443c=_0x92cfb1['EMOdC'](require,_0x92cfb1[_0x2af73a(0x19f)]),_0x3db418=new _0x5443c(_0x92cfb1[_0x2af73a(0x1b2)],_0x39ebea);return await _0x3db418[_0x2af73a(0x199)]();});function a47_0xa518(){const _0x38cf94=['runVanillaTest','MCwrt','configuration','mocha','uEHka','1794kTmFvm','runCucumberTest','1142cFGTAx','9lnoemo','1936505UZTYKL','eWnbd','3143FGXuqR','7668swyiGP','507740ZyRZxZ','98752RpFpKZ','../launcher/launcher','vanilla','runTest','VWcpe','run','8TVzTsc','2508912kvuUiF','cucumber-js','21775809xXEQDY','FsrUz','oXEPH'];a47_0xa518=function(){return _0x38cf94;};return a47_0xa518();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a48_0xb278(){const _0x1a924d=['2YrVZHs','1755204LpokPv','2499973VpuuvM','SLiGv','1446561HShZpa','1109100PDoHbR','2106570yXpWAD','vanillaWorker','PgXvt','92029YuagXg','./runTest','445986NUhGMl','8GLQSLK'];a48_0xb278=function(){return _0x1a924d;};return a48_0xb278();}const a48_0x1a83e6=a48_0x52ef;(function(_0x24fdef,_0x1d045b){const _0x2ccb37=a48_0x52ef,_0x233113=_0x24fdef();while(!![]){try{const _0x2475d6=parseInt(_0x2ccb37(0x13e))/0x1*(-parseInt(_0x2ccb37(0x135))/0x2)+parseInt(_0x2ccb37(0x139))/0x3+-parseInt(_0x2ccb37(0x136))/0x4+parseInt(_0x2ccb37(0x13b))/0x5+parseInt(_0x2ccb37(0x13a))/0x6+-parseInt(_0x2ccb37(0x137))/0x7+parseInt(_0x2ccb37(0x141))/0x8*(parseInt(_0x2ccb37(0x140))/0x9);if(_0x2475d6===_0x1d045b)break;else _0x233113['push'](_0x233113['shift']());}catch(_0x2612a2){_0x233113['push'](_0x233113['shift']());}}}(a48_0xb278,0x3d050));const {runTest,runCucumberTest,runVanillaTest}=require(a48_0x1a83e6(0x13f));function a48_0x52ef(_0x4cc86f,_0x3c10c0){const _0xb2781f=a48_0xb278();return a48_0x52ef=function(_0x52ef62,_0x1665ad){_0x52ef62=_0x52ef62-0x135;let _0x21a6cd=_0xb2781f[_0x52ef62];return _0x21a6cd;},a48_0x52ef(_0x4cc86f,_0x3c10c0);}exports['worker']=async(_0x3ac3bb,_0x3b0ba2)=>{const _0x491aa9=a48_0x1a83e6,_0x4bdd53={'SLiGv':function(_0xac1cbb,_0x2f1e2d,_0x46a169){return _0xac1cbb(_0x2f1e2d,_0x46a169);}};return await _0x4bdd53[_0x491aa9(0x138)](runTest,_0x3ac3bb,_0x3b0ba2);},exports['cucumberWorker']=async(_0x1ac0f5,_0x404063,_0x4ec08d,_0x3a13ad,_0x2322c3)=>{const _0x31542a=a48_0x1a83e6,_0x4a661f={'PgXvt':function(_0x18fc85,_0xee5147,_0x55772f,_0x5f3da5,_0x4cb24a,_0x5e3fc4){return _0x18fc85(_0xee5147,_0x55772f,_0x5f3da5,_0x4cb24a,_0x5e3fc4);}};return await _0x4a661f[_0x31542a(0x13d)](runCucumberTest,_0x1ac0f5,_0x404063,_0x4ec08d,_0x3a13ad,_0x2322c3);},exports[a48_0x1a83e6(0x13c)]=async _0x11291a=>{const _0x3c60cb={'UhMsR':function(_0x31ffd3,_0x504c6b){return _0x31ffd3(_0x504c6b);}};return await _0x3c60cb['UhMsR'](runVanillaTest,_0x11291a);};
|