browserstack-node-sdk 1.42.5 → 1.42.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/cucumber-sessionDetails.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/playwright-patcher.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/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/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a46_0x5139(){const _0x53535a=['format','7KmYlYY','sQVEB','GMwOy','yPNOx','../../../helpers/helper','logs','setStepIdentifier','JGGUP','afterEach\x20hook','env','steps','Etwev','Starting\x20sending\x20trace\x20zip\x20for\x20test:\x20','mVDGC','BcWjf','_tags','BROWSERSTACK_TEST_RUN_ID','trackEvent','options','pwhKe','xYERK','aWfBQ','START_TIME','\x20for\x20','../../v2/state/hookState','308BEyCrG','fmtar','UyJWw','getTestUUID','NSwHP','MXFGz','title','LEVwV','existsSync','indexOf','beforeEach\x20hook','WqLPR','HIvMN','status','splice','onTestEnd','xsbMD','iAtth','titlePath','error','6|2|3|5|0|1|4','root','AXpvW','TUmWx','yjYJB','zfoxj','category','yhkCa','stack','expanded','onStepEnd','homedir','lSROo','LogCreated','getHookType','startTime','ORRSN','HookRunStarted','niDsu','relative','lfcAZ','YKKfT','path','MVpyI','CBTSessionCreated','../../../helpers/test-observability/requestQueueHandler','performance-report-reporter.json','hook','readFileSync','jBOKI','setup','eFIUe','test_run','getInstance','timedOut','endSession','17500MxbSBe','../../../helpers/testhub/utils','16NDrMUK','BROWSERSTACK_O11Y_PERF_MEASUREMENT','wUEpB','55vGfBhn','PLAYWRIGHT','CpgqV','PTWgN','Sending\x20session\x20details\x20for\x20','mNtlf','.txt','getHierarchy','Test\x20Started\x20with\x20unique\x20id\x20','../../v2/browserstackCLI','DxIsG','_gitConfigPath','getStepIdentifier','message','eersU','file','Ycbmc','javascript','RclKu','TEST_ATTACHMENT','jTtOR','HOxkd','Test\x20Finished\x20with\x20unique\x20id\x20','isRunning','bxpVG','printsToStdio','test','ItgVj','MlKDM','getTime','../../../helpers/test-observability/error-handler','failure_reason','POST','\x20at\x20','YTSDL','wMZHV','sendHookRunEvent','INIT_TEST','rKRrT','parent','depth','uploadEventData','backtrace','finishedAt','getStepsAndLogs','reportLogs','reverse','PaWUA','\x20-\x20','PRE','BEFORE_EACH','location','configureGit','bGfWF','onStepBegin','280158ATZCcr','GfGqo','test_run_uuid','onEnd','hook_run','AFTER_EACH','TestRunStarted','retry_of','zZwJx','name','mxers','htGbb','HAQFI','YLKjI','10lUxYMP','TestRunFinished','Trace\x20file\x20found\x20for\x20test:\x20','CCJYA','./test-details','ZUcwL','JwcYY','split','bCmBV','util','YjaLd','toString','../../v2/state/testFrameworkState','_bs_hookIdentifier','pOZWC','failure','nbjsB','attachments','pending','PulLe','toISOString','CDjrA','../../../../src/bin/utils/constants','BEFORE_ALL','OktzN','meta','VvViq','TEST','failed','../../../helpers/test-observability/utils','cOBtu','haybB','bufyg','result','startMonitoring','SwOgV','getScope','afterAll\x20hook','GpNEG','uuid','oeRsd','Error\x20in\x20sending\x20test\x20run\x20event:\x20%s','retry','1587213WYQdJv','push','PqzhI','LiQUu','getTestFramework','eumDy','map','wcgUo','dgJqU','XcnZa','_testHooksMap','length','gTEQj','LyQyr','filter','_tests','expectedStatus','object','AFTER_ALL','QJvDE','lKqCz','BJygB','10695fFQZNh','102501hyHwNX','onTestBegin','startsWith','step','beforeAll\x20hook','_gitConfigured','trace_','MyReporter','TEST_STEP','passed','errors','URUoS','onBegin','unknown','mkdirSync','MVezN','join','JnImu','TEST_SCREENSHOT','failure_type','iyvaq','986632awbpvr','sendSessionDetails','needToReportStep','After\x20Hooks','exports','startedAt','61944yIPSOz','basename','JzRKZ','TGxZP','statSync','vVnGh','yFucN','sendTestRunEvent','YMQbx','getCustomRerunParam','GCctq','\x20is\x20triggered','wGsqK','event_type','duration','mOxCE','shutdown','jxaFp'];a46_0x5139=function(){return _0x53535a;};return a46_0x5139();}function a46_0x478a(_0x557146,_0x52f20f){const _0x513946=a46_0x5139();return a46_0x478a=function(_0x478a49,_0x25fa09){_0x478a49=_0x478a49-0x168;let _0x32afcf=_0x513946[_0x478a49];return _0x32afcf;},a46_0x478a(_0x557146,_0x52f20f);}const a46_0x909905=a46_0x478a;(function(_0x37036c,_0x296e89){const _0x182261=a46_0x478a,_0xe8a6a3=_0x37036c();while(!![]){try{const _0x4746b2=-parseInt(_0x182261(0x1a8))/0x1+parseInt(_0x182261(0x22a))/0x2*(-parseInt(_0x182261(0x1a9))/0x3)+parseInt(_0x182261(0x228))/0x4*(-parseInt(_0x182261(0x22d))/0x5)+parseInt(_0x182261(0x264))/0x6+parseInt(_0x182261(0x1d7))/0x7*(parseInt(_0x182261(0x1be))/0x8)+parseInt(_0x182261(0x192))/0x9*(parseInt(_0x182261(0x272))/0xa)+parseInt(_0x182261(0x1f0))/0xb*(parseInt(_0x182261(0x1c4))/0xc);if(_0x4746b2===_0x296e89)break;else _0xe8a6a3['push'](_0xe8a6a3['shift']());}catch(_0x10d811){_0xe8a6a3['push'](_0xe8a6a3['shift']());}}}(a46_0x5139,0x26c27));const RequestQueueHandler=require(a46_0x909905(0x21d)),{calculatePerformance,getTestTags,getFailureData,sendTraceZip,findNestedKey,validateFilePath,getTestIdentifier,getTestRunIdentifier}=require('./pwUtils'),{v4:uuidv4}=require('uuid'),path=require(a46_0x909905(0x21a)),{debug,removeAnsiColors,printBuildLink,getFailureType,failureData,trace}=require(a46_0x909905(0x184)),{getGitMetaData,setLogLevel}=require(a46_0x909905(0x1db)),TestDetails=require(a46_0x909905(0x16b)),fs=require('fs'),util=require(a46_0x909905(0x170)),{o11yClassErrorHandler}=require(a46_0x909905(0x24b)),PerformanceTester=require('../../../helpers/performance/performance-tester'),{FRAMEWORKS}=require('../../../helpers/test-observability/constants'),SessionHandler=require('../../../helpers/test-observability/sessionHandler'),{appendTesthubParams}=require(a46_0x909905(0x229)),helper=require('../../../helpers/helper'),BrowserstackCLI=require(a46_0x909905(0x236)),TestFrameworkState=require(a46_0x909905(0x173)),HookState=require(a46_0x909905(0x1ef)),TestInfo=require('../../v2/TestInfo'),{PLAYWRIGHT_TRACE_LOGS}=require(a46_0x909905(0x17d));class MyReporter{constructor(_0x24a5b7){const _0x2d7782=a46_0x909905,_0x10bb34={'YjaLd':_0x2d7782(0x204),'pOZWC':_0x2d7782(0x21e),'JGGUP':function(_0x4e58a4,_0x2741db,_0x36cd48,_0x375c73){return _0x4e58a4(_0x2741db,_0x36cd48,_0x375c73);}},_0x14ee1e=_0x10bb34[_0x2d7782(0x171)][_0x2d7782(0x16e)]('|');let _0x5073df=0x0;while(!![]){switch(_0x14ee1e[_0x5073df++]){case'0':this[_0x2d7782(0x1e9)]=_0x24a5b7;continue;case'1':this['_gitConfigured']=![];continue;case'2':process['env'][_0x2d7782(0x22b)]&&(PerformanceTester[_0x2d7782(0x189)](_0x10bb34[_0x2d7782(0x175)]),process[_0x2d7782(0x1e0)][_0x2d7782(0x1ed)]=new Date()[_0x2d7782(0x17b)]());continue;case'3':this[_0x2d7782(0x1a1)]={};continue;case'4':this['_gitConfigPath']=null;continue;case'5':this[_0x2d7782(0x19c)]={};continue;case'6':const _0x2f0fca={};_0x2f0fca['logLevel']=process['env']['BROWSERSTACK_LOG_LEVEL'],_0x10bb34[_0x2d7782(0x1de)](setLogLevel,_0x2f0fca,new Map(),new Map());continue;}break;}}async[a46_0x909905(0x1b5)](){const _0x8589fd=a46_0x909905;TestDetails[_0x8589fd(0x222)](),await this[_0x8589fd(0x261)](),TestInfo[_0x8589fd(0x222)]();if(BrowserstackCLI[_0x8589fd(0x225)]()['isRunning']()){await BrowserstackCLI[_0x8589fd(0x225)]()[_0x8589fd(0x196)]()[_0x8589fd(0x1e8)](TestFrameworkState[_0x8589fd(0x252)],HookState[_0x8589fd(0x25e)],{});return;}}async['onTestBegin'](_0x5578d3,_0x59bb2a){const _0x468d6b=a46_0x909905,_0x83f76e={'DxIsG':function(_0x299af4,_0x8df9fb){return _0x299af4(_0x8df9fb);},'yFucN':function(_0x27009a,_0x1778e6,_0x270238){return _0x27009a(_0x1778e6,_0x270238);},'MXFGz':_0x468d6b(0x26a)};if(BrowserstackCLI[_0x468d6b(0x225)]()[_0x468d6b(0x244)]()){const _0x682d8f={};_0x682d8f[_0x468d6b(0x247)]=_0x5578d3,_0x682d8f[_0x468d6b(0x188)]=_0x59bb2a,await BrowserstackCLI['getInstance']()[_0x468d6b(0x196)]()['trackEvent'](TestFrameworkState[_0x468d6b(0x182)],HookState['PRE'],_0x682d8f);return;}const _0x101c4b=_0x83f76e['DxIsG'](getTestIdentifier,_0x5578d3),_0x59bfe2=TestDetails['getTestUUID'](_0x83f76e[_0x468d6b(0x1ca)](getTestRunIdentifier,_0x5578d3,_0x59bb2a[_0x468d6b(0x191)]));process[_0x468d6b(0x1e0)][_0x468d6b(0x1e7)]=_0x59bfe2;const _0x3e1de6={};_0x3e1de6[_0x468d6b(0x18e)]=_0x59bfe2,_0x3e1de6['startedAt']=_0x59bb2a[_0x468d6b(0x213)],this[_0x468d6b(0x1a1)][_0x101c4b]=_0x3e1de6,_0x83f76e[_0x468d6b(0x237)](trace,_0x468d6b(0x235)+_0x101c4b),await this[_0x468d6b(0x1cb)](_0x5578d3,_0x83f76e[_0x468d6b(0x1f5)],_0x59bb2a);}async['onStepBegin'](_0x1e5afc,_0x27bd04,_0x490a56){const _0x296ca2=a46_0x909905,_0x1048c2={'mVDGC':function(_0x568862,_0x41ec0d,_0xefa20b){return _0x568862(_0x41ec0d,_0xefa20b);},'BJygB':function(_0x5628df,_0x11d3fe){return _0x5628df(_0x11d3fe);},'QJvDE':_0x296ca2(0x215)};if(!this[_0x296ca2(0x1c0)](_0x490a56,_0x1e5afc))return;if(BrowserstackCLI['getInstance']()[_0x296ca2(0x244)]()){const _0x135d56=this['getHookType'](_0x490a56[_0x296ca2(0x1f6)]),_0x13cc45=TestFrameworkState[_0x135d56],_0xf5d14={};_0xf5d14[_0x296ca2(0x247)]=_0x1e5afc,_0xf5d14['result']=_0x27bd04,_0xf5d14[_0x296ca2(0x1ac)]=_0x490a56,await BrowserstackCLI['getInstance']()[_0x296ca2(0x196)]()[_0x296ca2(0x1e8)](_0x13cc45,HookState[_0x296ca2(0x25e)],_0xf5d14);return;}const _0x2b762a=this[_0x296ca2(0x1dd)](_0x1e5afc,_0x490a56);this[_0x296ca2(0x1a1)][_0x2b762a]={'uuid':TestDetails[_0x296ca2(0x1f3)](_0x2b762a),'startedAt':_0x490a56[_0x296ca2(0x213)][_0x296ca2(0x17b)]()};const _0x54b86b=_0x1048c2[_0x296ca2(0x1e4)](getTestRunIdentifier,_0x1e5afc,_0x27bd04[_0x296ca2(0x191)]);!this[_0x296ca2(0x19c)][_0x54b86b]&&(this[_0x296ca2(0x19c)][_0x54b86b]=[]),this[_0x296ca2(0x19c)][_0x54b86b][_0x296ca2(0x193)](this[_0x296ca2(0x1a1)][_0x2b762a]['uuid']),_0x1048c2[_0x296ca2(0x1a7)](trace,'Hook\x20Started\x20with\x20unique\x20id\x20'+_0x2b762a+'\x20is\x20triggered\x20for\x20test\x20'+_0x54b86b),await this[_0x296ca2(0x251)](_0x1e5afc,_0x490a56,_0x1048c2[_0x296ca2(0x1a5)],_0x27bd04);}async[a46_0x909905(0x20e)](_0x33ce85,_0x21f816,_0x2f9a37){const _0x432840=a46_0x909905,_0x42fe56={'YMQbx':function(_0xf53e84,_0x2addbe){return _0xf53e84+_0x2addbe;},'WznOw':function(_0x945ea4,_0x1b0d94){return _0x945ea4(_0x1b0d94);},'JwcYY':'HookRunFinished'};if(!this['needToReportStep'](_0x2f9a37,_0x33ce85))return;if(BrowserstackCLI['getInstance']()[_0x432840(0x244)]()){const _0xcee361=this[_0x432840(0x212)](_0x2f9a37[_0x432840(0x1f6)]),_0x200fd2=TestFrameworkState[_0xcee361],_0x24e7ac={};_0x24e7ac[_0x432840(0x247)]=_0x33ce85,_0x24e7ac[_0x432840(0x188)]=_0x21f816,_0x24e7ac[_0x432840(0x1ac)]=_0x2f9a37,await BrowserstackCLI[_0x432840(0x225)]()[_0x432840(0x196)]()['trackEvent'](_0x200fd2,HookState[_0x432840(0x24d)],_0x24e7ac);return;}const _0x1f1c41=this[_0x432840(0x239)](_0x33ce85,_0x2f9a37);this[_0x432840(0x1a1)][_0x1f1c41]={...this[_0x432840(0x1a1)][_0x1f1c41]||{},'finishedAt':new Date(_0x42fe56[_0x432840(0x1cc)](_0x2f9a37[_0x432840(0x213)][_0x432840(0x24a)](),_0x2f9a37[_0x432840(0x1d2)]))},_0x42fe56['WznOw'](trace,'Hook\x20Finished\x20with\x20unique\x20id\x20'+_0x1f1c41+_0x432840(0x1cf)),await this[_0x432840(0x251)](_0x33ce85,_0x2f9a37,_0x42fe56[_0x432840(0x16d)],_0x21f816);}async['onTestEnd'](_0x242b8f,_0x4b1dec){const _0x2da22b=a46_0x909905,_0x4cf1ec={'ORRSN':function(_0x249c44,_0x45ca8f){return _0x249c44===_0x45ca8f;},'hGlAf':'screenshot','cOBtu':_0x2da22b(0x1bb),'ywjBS':'base64','CpgqV':function(_0x3afd9d,_0x5d71ae){return _0x3afd9d(_0x5d71ae);},'xsbMD':function(_0x13feaf,_0x297978,_0x350c47){return _0x13feaf(_0x297978,_0x350c47);},'wcgUo':_0x2da22b(0x168),'GpNEG':_0x2da22b(0x190),'fmtar':function(_0x3e9e4a,_0x2fb0f8){return _0x3e9e4a(_0x2fb0f8);},'yjYJB':'Error\x20in\x20sending\x20trace\x20zip:\x20%s','JnImu':function(_0x497130,_0x3b63c1){return _0x497130>_0x3b63c1;}};if(BrowserstackCLI[_0x2da22b(0x225)]()[_0x2da22b(0x244)]()){const _0x26ef43={};_0x26ef43[_0x2da22b(0x247)]=_0x242b8f,_0x26ef43[_0x2da22b(0x188)]=_0x4b1dec,await BrowserstackCLI[_0x2da22b(0x225)]()[_0x2da22b(0x196)]()[_0x2da22b(0x1e8)](TestFrameworkState[_0x2da22b(0x182)],HookState['POST'],_0x26ef43);return;}const _0x4e9454=_0x4cf1ec[_0x2da22b(0x22f)](getTestIdentifier,_0x242b8f),_0x52692e=TestDetails[_0x2da22b(0x1f3)](_0x4cf1ec[_0x2da22b(0x200)](getTestRunIdentifier,_0x242b8f,_0x4b1dec['retry']));this[_0x2da22b(0x1a1)][_0x4e9454]={...this[_0x2da22b(0x1a1)][_0x4e9454]||{},'finishedAt':new Date()[_0x2da22b(0x17b)]()},_0x4cf1ec[_0x2da22b(0x22f)](debug,_0x2da22b(0x243)+_0x4e9454);try{await this[_0x2da22b(0x1cb)](_0x242b8f,_0x4cf1ec[_0x2da22b(0x199)],_0x4b1dec);}catch(_0xeb4c14){_0x4cf1ec[_0x2da22b(0x22f)](debug,util[_0x2da22b(0x1d6)](_0x4cf1ec[_0x2da22b(0x18d)],_0xeb4c14[_0x2da22b(0x172)]()));}try{_0x4cf1ec[_0x2da22b(0x22f)](debug,_0x2da22b(0x1e3)+_0x52692e),await _0x4cf1ec[_0x2da22b(0x200)](sendTraceZip,_0x4b1dec,_0x52692e);}catch(_0x4ffa61){_0x4cf1ec[_0x2da22b(0x1f1)](debug,util[_0x2da22b(0x1d6)](_0x4cf1ec[_0x2da22b(0x208)],_0x4ffa61['toString']()));}const _0x2f6a90=[];_0x4b1dec[_0x2da22b(0x178)]&&_0x4b1dec[_0x2da22b(0x178)][_0x2da22b(0x198)](_0x320c70=>{const _0x4bf6a3=_0x2da22b;if(_0x4cf1ec[_0x4bf6a3(0x214)](_0x320c70[_0x4bf6a3(0x26d)],_0x4cf1ec['hGlAf'])){if(!_0x320c70[_0x4bf6a3(0x21a)]||!fs['existsSync'](_0x320c70[_0x4bf6a3(0x21a)]))return;_0x2f6a90[_0x4bf6a3(0x193)]({'test_run_uuid':_0x52692e,'timestamp':fs[_0x4bf6a3(0x1c8)](_0x320c70[_0x4bf6a3(0x21a)])['mtime'],'kind':_0x4cf1ec[_0x4bf6a3(0x185)],'message':fs[_0x4bf6a3(0x220)](_0x320c70['path'],{'encoding':_0x4cf1ec['ywjBS']})});}}),_0x4cf1ec[_0x2da22b(0x1ba)](_0x2f6a90[_0x2da22b(0x19d)],0x0)&&await MyReporter[_0x2da22b(0x25a)](_0x2f6a90);}async[a46_0x909905(0x227)](){const _0x43af3f=a46_0x909905;await RequestQueueHandler['getInstance']()[_0x43af3f(0x1d4)]();}async[a46_0x909905(0x267)](_0xab4336){const _0x25ad3d=a46_0x909905,_0x51a586={'BcWjf':function(_0x1a4f2d){return _0x1a4f2d();},'MlKDM':function(_0x58dfd7,_0x2c7dc9){return _0x58dfd7(_0x2c7dc9);}};await this[_0x25ad3d(0x227)]();try{process[_0x25ad3d(0x1e0)][_0x25ad3d(0x22b)]&&await _0x51a586[_0x25ad3d(0x1e5)](calculatePerformance);}catch(_0x1a8514){_0x51a586[_0x25ad3d(0x249)](debug,'Error\x20in\x20calculating\x20performance:\x20'+_0x1a8514[_0x25ad3d(0x172)]());}}static async['addTestUIDAndReportLog'](_0x3e28c3,_0xa46fe){const _0x445e1d=a46_0x909905;_0xa46fe[_0x445e1d(0x266)]=TestDetails['getTestUUID'](_0x3e28c3),await this['reportLogs']([_0xa46fe]);}static async[a46_0x909905(0x25a)](_0x827964){const _0x53505a=a46_0x909905,_0x394635={};_0x394635['LiQUu']=_0x53505a(0x211);const _0x1b00e0=_0x394635;if(BrowserstackCLI[_0x53505a(0x225)]()[_0x53505a(0x244)]())return;const _0x557e72={};_0x557e72[_0x53505a(0x1d1)]=_0x1b00e0[_0x53505a(0x195)],_0x557e72[_0x53505a(0x1dc)]=_0x827964,await SessionHandler['uploadEventData'](_0x557e72);}async[a46_0x909905(0x251)](_0x44f20b,_0x2f3577,_0x23d915,_0x17bb38){const _0xf6cde7=a46_0x909905,_0x1bff1f={'mxers':_0xf6cde7(0x21f),'dgJqU':_0xf6cde7(0x23e),'xYERK':_0xf6cde7(0x179),'EDbGf':function(_0x392401,_0x568121){return _0x392401>=_0x568121;},'WqLPR':function(_0x10d11b,_0xf9fd29){return _0x10d11b===_0xf9fd29;},'eersU':'HookRunFinished','ZUcwL':function(_0x55c9bb,_0x2490d1){return _0x55c9bb>_0x2490d1;},'wUEpB':_0xf6cde7(0x183),'jxaFp':function(_0x55b804,_0x1c9282){return _0x55b804(_0x1c9282);},'LyQyr':function(_0x16dc50,_0x154a6e){return _0x16dc50(_0x154a6e);},'iOiuj':function(_0x4eb4a6,_0x4df0bc,_0x4f3d8a){return _0x4eb4a6(_0x4df0bc,_0x4f3d8a);},'MVpyI':'err','iyvaq':function(_0x361bcc,_0x3bf1df){return _0x361bcc===_0x3bf1df;},'nFwBa':'passed'},_0x1dc3a4=this[_0xf6cde7(0x239)](_0x44f20b,_0x2f3577),_0x519831=this[_0xf6cde7(0x1a1)][_0x1dc3a4],_0x39bc1f={'uuid':_0x519831['uuid'],'type':_0x1bff1f['mxers'],'hook_type':this[_0xf6cde7(0x212)](_0x2f3577[_0xf6cde7(0x1f6)]),'name':_0x2f3577[_0xf6cde7(0x1f6)],'scope':this[_0xf6cde7(0x18b)](_0x2f3577),'scopes':this[_0xf6cde7(0x234)](_0x44f20b),'body':{'lang':_0x1bff1f[_0xf6cde7(0x19a)],'code':null},'identifier':_0x1dc3a4,'file_name':path[_0xf6cde7(0x217)](process['cwd'](),_0x44f20b['location'][_0xf6cde7(0x23c)]),'location':path['relative'](process['cwd'](),_0x44f20b[_0xf6cde7(0x260)][_0xf6cde7(0x23c)]),'result':_0x1bff1f[_0xf6cde7(0x1eb)],'duration_in_ms':_0x1bff1f['EDbGf'](_0x2f3577[_0xf6cde7(0x1d2)],0x0)?_0x2f3577['duration']:undefined,'vc_filepath':this['_gitConfigPath']&&_0x44f20b[_0xf6cde7(0x260)]['file']?path[_0xf6cde7(0x217)](this[_0xf6cde7(0x238)],_0x44f20b[_0xf6cde7(0x260)][_0xf6cde7(0x23c)]):undefined,'started_at':_0x519831['startedAt'],'finished_at':_0x519831[_0xf6cde7(0x258)],'framework':FRAMEWORKS[_0xf6cde7(0x22e)]};if(_0x1bff1f[_0xf6cde7(0x1fb)](_0x23d915,_0x1bff1f[_0xf6cde7(0x23b)])){const {steps:_0x53740d,logs:_0x5674f6}=this[_0xf6cde7(0x259)](_0x2f3577[_0xf6cde7(0x1e1)],_0x519831[_0xf6cde7(0x18e)],_0x1bff1f[_0xf6cde7(0x26e)]);_0x5674f6&&_0x1bff1f[_0xf6cde7(0x16c)](_0x5674f6['length'],0x0)&&await MyReporter[_0xf6cde7(0x25a)](_0x5674f6);const _0x13681c={};_0x13681c[_0xf6cde7(0x1e1)]=_0x53740d,_0x39bc1f[_0xf6cde7(0x180)]=_0x13681c;if(_0x2f3577[_0xf6cde7(0x203)]){_0x39bc1f[_0xf6cde7(0x188)]=_0x1bff1f[_0xf6cde7(0x22c)],_0x39bc1f['failure_reason']=_0x1bff1f[_0xf6cde7(0x1d5)](removeAnsiColors,_0x2f3577['error'][_0xf6cde7(0x23a)]),_0x39bc1f[_0xf6cde7(0x1bc)]=_0x1bff1f[_0xf6cde7(0x19f)](getFailureType,_0x2f3577[_0xf6cde7(0x203)][_0xf6cde7(0x23a)]);const _0x5e1aa6=_0x1bff1f['iOiuj'](failureData,_0x2f3577[_0xf6cde7(0x203)],_0x1bff1f[_0xf6cde7(0x21b)]);if(_0x5e1aa6&&_0x1bff1f[_0xf6cde7(0x1bd)](_0x5e1aa6['length'],0x0)){const _0x10bd34={};_0x10bd34['backtrace']=[_0x39bc1f[_0xf6cde7(0x24c)]],_0x10bd34[_0xf6cde7(0x20d)]=[],_0x5e1aa6[_0xf6cde7(0x193)](_0x10bd34);}_0x39bc1f[_0xf6cde7(0x176)]=_0x5e1aa6;}else _0x39bc1f[_0xf6cde7(0x188)]=_0x1bff1f['nFwBa'];}const _0x56ad28={};_0x56ad28[_0xf6cde7(0x1d1)]=_0x23d915,_0x56ad28[_0xf6cde7(0x268)]=_0x39bc1f;const _0x566557=_0x56ad28;await SessionHandler[_0xf6cde7(0x256)](_0x566557);}['getStepsAndLogs'](_0x2f191e,_0x1f190c,_0x2a550a){const _0x4cf17a=a46_0x909905,_0x4b1842={'Etwev':function(_0xe60f21,_0x2f0c91){return _0xe60f21===_0x2f0c91;},'EvYcz':_0x4cf17a(0x21f),'EsfkW':_0x4cf17a(0x1c1),'URUoS':function(_0x15df6d,_0x1c0276){return _0x15df6d===_0x1c0276;},'GCctq':'Before\x20Hooks','SwOgV':'test','ItgVj':_0x4cf17a(0x266),'wGsqK':'hook_run_uuid','nbjsB':_0x4cf17a(0x1b1),'YKKfT':_0x4cf17a(0x183),'CCJYA':'passed','jBOKI':function(_0x5c91ae,_0x28eebf){return _0x5c91ae(_0x28eebf);},'JzRKZ':function(_0x4a0e38,_0x336fbd){return _0x4a0e38(_0x336fbd);},'vSZgz':function(_0x7be826){return _0x7be826();},'htGbb':function(_0x43cdda,_0x44197e){return _0x43cdda(_0x44197e);},'EbIOP':function(_0x5e2576,_0x412651){return _0x5e2576(_0x412651);},'XcnZa':function(_0x5da233,_0x41ecac,_0x2bcc2a){return _0x5da233(_0x41ecac,_0x2bcc2a);}},_0xd75e57=[],_0x26a0b1=[],_0x5931e4=_0x2f191e[_0x4cf17a(0x1a0)](_0x36a76=>{const _0x3fde55=_0x4cf17a;if(_0x4b1842[_0x3fde55(0x1e2)](_0x36a76[_0x3fde55(0x20a)],_0x4b1842['EvYcz'])&&(_0x4b1842[_0x3fde55(0x1e2)](_0x36a76['title'],_0x4b1842['EsfkW'])||_0x4b1842[_0x3fde55(0x1b4)](_0x36a76[_0x3fde55(0x1f6)],_0x4b1842[_0x3fde55(0x1ce)])))return![];return!![];}),_0x2680dd=(_0x55e1c6,_0x7ba4d0=![])=>{const _0x94b2f4=_0x4cf17a;if(_0x4b1842[_0x94b2f4(0x1b4)](_0x55e1c6[_0x94b2f4(0x1e1)][_0x94b2f4(0x19d)],0x0)){const _0x5bd584=_0x4b1842[_0x94b2f4(0x1b4)](_0x2a550a,_0x4b1842[_0x94b2f4(0x18a)])?_0x4b1842[_0x94b2f4(0x248)]:_0x4b1842[_0x94b2f4(0x1d0)];_0x26a0b1[_0x94b2f4(0x193)]({'kind':_0x4b1842[_0x94b2f4(0x177)],[_0x5bd584]:_0x1f190c,'message':_0x55e1c6[_0x94b2f4(0x1f6)],'timestamp':_0x55e1c6[_0x94b2f4(0x213)][_0x94b2f4(0x17b)](),'level':_0x55e1c6[_0x94b2f4(0x203)]?_0x4b1842[_0x94b2f4(0x219)]:_0x4b1842[_0x94b2f4(0x16a)],'duration':_0x55e1c6[_0x94b2f4(0x1d2)],'failure':_0x55e1c6[_0x94b2f4(0x203)]&&_0x55e1c6[_0x94b2f4(0x203)][_0x94b2f4(0x23a)]&&_0x4b1842[_0x94b2f4(0x221)](removeAnsiColors,_0x55e1c6[_0x94b2f4(0x203)][_0x94b2f4(0x23a)]),'failure_type':_0x4b1842[_0x94b2f4(0x1c6)](getFailureType,_0x55e1c6[_0x94b2f4(0x203)]&&_0x55e1c6['error'][_0x94b2f4(0x23a)])});}else{!_0x7ba4d0&&_0xd75e57[_0x94b2f4(0x193)]({'id':_0x4b1842['vSZgz'](uuidv4),'text':_0x55e1c6['title'],'keyword':undefined,'started_at':_0x55e1c6['startTime'][_0x94b2f4(0x17b)](),'duration':_0x55e1c6['duration'],'result':_0x55e1c6[_0x94b2f4(0x203)]?_0x4b1842[_0x94b2f4(0x219)]:_0x4b1842['CCJYA'],'failure':_0x55e1c6['error']&&_0x55e1c6[_0x94b2f4(0x203)]['message']&&_0x4b1842[_0x94b2f4(0x26f)](removeAnsiColors,_0x55e1c6[_0x94b2f4(0x203)][_0x94b2f4(0x23a)]),'failure_type':_0x4b1842['EbIOP'](getFailureType,_0x55e1c6[_0x94b2f4(0x203)]&&_0x55e1c6['error'][_0x94b2f4(0x23a)])});for(const _0x25190e of _0x55e1c6[_0x94b2f4(0x1e1)]){_0x4b1842['XcnZa'](_0x2680dd,_0x25190e,!![]);}}};for(const _0x5a1b2d of _0x5931e4){_0x4b1842[_0x4cf17a(0x19b)](_0x2680dd,_0x5a1b2d,![]);}const _0x5e9309={};return _0x5e9309[_0x4cf17a(0x1e1)]=_0xd75e57,_0x5e9309['logs']=_0x26a0b1,_0x5e9309;}async[a46_0x909905(0x1cb)](_0x2b2f58,_0x23a7a8,_0x466fc9){const _0x4be589=a46_0x909905,_0x1257b8={'lKqCz':function(_0x32958a,_0x1b84da){return _0x32958a(_0x1b84da);},'vVnGh':_0x4be589(0x240),'GMwOy':function(_0xd361bb,_0x244fda){return _0xd361bb(_0x244fda);},'lfcAZ':_0x4be589(0x247),'YLKjI':_0x4be589(0x23e),'VyzIb':_0x4be589(0x179),'PTWgN':function(_0x3262bf,_0x34a5ca,_0x445b7c,_0x3b666e,_0x3d2d54){return _0x3262bf(_0x34a5ca,_0x445b7c,_0x3b666e,_0x3d2d54);},'UyJWw':function(_0x42e37b,_0x411bbd){return _0x42e37b>_0x411bbd;},'MVezN':function(_0x110fdb,_0x2e4586,_0x3e25cb){return _0x110fdb(_0x2e4586,_0x3e25cb);},'RIMkG':function(_0x3b1b13,_0x31e09f){return _0x3b1b13-_0x31e09f;},'iAtth':function(_0x5bec29,_0x359e8b){return _0x5bec29===_0x359e8b;},'NSwHP':_0x4be589(0x168),'eumDy':function(_0x2d6ad5,_0x12a548){return _0x2d6ad5===_0x12a548;},'GfGqo':'skipped','CDjrA':_0x4be589(0x1b2),'aWfBQ':function(_0xbdd864,_0x54ed00){return _0xbdd864===_0x54ed00;},'niDsu':function(_0x5c197a,_0x25fc74){return _0x5c197a===_0x25fc74;},'TGxZP':'failed','HAQFI':function(_0x57847f,_0x38f603){return _0x57847f===_0x38f603;},'WtepQ':_0x4be589(0x226),'jTtOR':'Expected\x20to\x20fail,\x20but\x20passed.','WEpna':function(_0x1f699a,_0x423a0c,_0x1e37eb){return _0x1f699a(_0x423a0c,_0x1e37eb);},'LEVwV':function(_0x3b4835,_0x585010,_0x19467c){return _0x3b4835(_0x585010,_0x19467c);},'yPNOx':_0x4be589(0x21a),'PqzhI':function(_0x2792a2,_0x5d43cc){return _0x2792a2(_0x5d43cc);},'bCmBV':'.browserstack','mNtlf':'utf8','eFIUe':function(_0x4c9214,_0x3352dc){return _0x4c9214!==_0x3352dc;}},_0x1f46f2=_0x1257b8[_0x4be589(0x1d9)](getTestIdentifier,_0x2b2f58),_0x148031=this[_0x4be589(0x18b)](_0x2b2f58),_0x4d5ed1=this[_0x4be589(0x1a1)][_0x1f46f2],_0x156cbe=path[_0x4be589(0x217)](process['cwd'](),_0x2b2f58['location'][_0x4be589(0x23c)]);await this[_0x4be589(0x261)]();const _0x527756={'uuid':_0x4d5ed1[_0x4be589(0x18e)],'type':_0x1257b8[_0x4be589(0x218)],'name':_0x2b2f58['title'],'body':{'lang':_0x1257b8[_0x4be589(0x271)],'code':_0x2b2f58['fn'][_0x4be589(0x172)]()},'scope':_0x148031,'scopes':this[_0x4be589(0x234)](_0x2b2f58),'identifier':_0x1f46f2,'file_name':_0x156cbe,'location':_0x156cbe,'result':_0x1257b8['VyzIb'],'duration_in_ms':_0x466fc9&&_0x466fc9[_0x4be589(0x1d2)]?_0x466fc9[_0x4be589(0x1d2)]:null,'vc_filepath':this['_gitConfigPath']&&_0x2b2f58[_0x4be589(0x260)][_0x4be589(0x23c)]?path[_0x4be589(0x217)](this[_0x4be589(0x238)],_0x2b2f58['location'][_0x4be589(0x23c)]):undefined,'started_at':_0x4d5ed1[_0x4be589(0x1c3)],'finished_at':_0x4d5ed1['finishedAt'],'framework':FRAMEWORKS['PLAYWRIGHT'],'customRerunParam':{'rerun_name':this['getCustomRerunParam'](_0x2b2f58)},'tags':_0x1257b8[_0x4be589(0x1a6)](getTestTags,_0x2b2f58)};_0x1257b8[_0x4be589(0x230)](appendTesthubParams,_0x527756,_0x23a7a8,_0x2b2f58,FRAMEWORKS[_0x4be589(0x22e)]);_0x466fc9&&_0x1257b8[_0x4be589(0x1f2)](_0x466fc9['retry'],0x0)&&(_0x527756[_0x4be589(0x26b)]=TestDetails[_0x4be589(0x1f3)](_0x1257b8[_0x4be589(0x1b8)](getTestRunIdentifier,_0x2b2f58,_0x1257b8['RIMkG'](_0x466fc9['retry'],0x1))));if(_0x1257b8[_0x4be589(0x201)](_0x23a7a8,_0x1257b8[_0x4be589(0x1f4)])){_0x527756[_0x4be589(0x188)]=_0x466fc9[_0x4be589(0x1fd)];if(_0x1257b8[_0x4be589(0x197)](_0x466fc9[_0x4be589(0x1fd)],_0x2b2f58['expectedStatus']))_0x527756[_0x4be589(0x188)]=_0x1257b8[_0x4be589(0x197)](_0x466fc9[_0x4be589(0x1fd)],_0x1257b8[_0x4be589(0x265)])?_0x1257b8[_0x4be589(0x265)]:_0x1257b8[_0x4be589(0x17c)];else{(_0x1257b8[_0x4be589(0x1ec)](_0x527756[_0x4be589(0x188)],_0x1257b8[_0x4be589(0x17c)])||_0x1257b8[_0x4be589(0x216)](_0x527756[_0x4be589(0x188)],_0x1257b8[_0x4be589(0x1c7)])||_0x1257b8[_0x4be589(0x270)](_0x527756[_0x4be589(0x188)],_0x1257b8['WtepQ']))&&(_0x527756[_0x4be589(0x188)]=_0x1257b8[_0x4be589(0x1c7)]);if(_0x1257b8['eumDy'](_0x466fc9[_0x4be589(0x1fd)],_0x1257b8[_0x4be589(0x17c)])&&_0x1257b8[_0x4be589(0x201)](_0x2b2f58[_0x4be589(0x1a2)],_0x1257b8['TGxZP'])){const _0x508db2={};_0x508db2[_0x4be589(0x23a)]=_0x1257b8[_0x4be589(0x241)],_0x508db2[_0x4be589(0x20c)]=_0x1257b8[_0x4be589(0x241)],_0x466fc9[_0x4be589(0x203)]=_0x508db2,_0x466fc9[_0x4be589(0x1b3)]=[_0x466fc9['error']];}}const _0x44e11b=_0x1257b8['WEpna'](getTestRunIdentifier,_0x2b2f58,_0x466fc9['retry']);_0x527756['hooks']=this[_0x4be589(0x19c)][_0x44e11b];const {steps:_0x43afbf,logs:_0xd3a670}=this[_0x4be589(0x259)](_0x466fc9[_0x4be589(0x1e1)],_0x4d5ed1[_0x4be589(0x18e)],_0x1257b8[_0x4be589(0x218)]);await MyReporter[_0x4be589(0x25a)](_0xd3a670);const _0x1a39f6={};_0x1a39f6['steps']=_0x43afbf,_0x527756['meta']=_0x1a39f6;if(_0x466fc9[_0x4be589(0x203)]){_0x527756[_0x4be589(0x24c)]=_0x1257b8[_0x4be589(0x1a6)](removeAnsiColors,_0x466fc9[_0x4be589(0x203)][_0x4be589(0x23a)]),_0x527756[_0x4be589(0x1bc)]=_0x1257b8[_0x4be589(0x1d9)](getFailureType,_0x466fc9['error'][_0x4be589(0x23a)]);const _0x1745db={};_0x1745db['test_run_uuid']=_0x4d5ed1['uuid'];const {failureData:_0x4b4669,logs:_0x599431}=_0x1257b8['WEpna'](getFailureData,_0x466fc9[_0x4be589(0x1b3)],_0x1745db);if(_0x4b4669&&_0x1257b8[_0x4be589(0x197)](_0x4b4669[_0x4be589(0x19d)],0x0)){const _0x19a120={};_0x19a120[_0x4be589(0x257)]=[_0x527756[_0x4be589(0x24c)]],_0x19a120[_0x4be589(0x20d)]=[],_0x4b4669[_0x4be589(0x193)](_0x19a120);}_0x527756[_0x4be589(0x176)]=_0x4b4669,_0x599431&&_0x1257b8[_0x4be589(0x1f2)](_0x599431[_0x4be589(0x19d)],0x0)&&await MyReporter['reportLogs'](_0x599431);}}let _0x2a9c0a=_0x1257b8[_0x4be589(0x1f7)](findNestedKey,_0x466fc9,_0x1257b8[_0x4be589(0x1da)]);if(_0x2a9c0a&&_0x1257b8[_0x4be589(0x194)](validateFilePath,_0x2a9c0a))_0x1257b8[_0x4be589(0x1a6)](debug,'Trace\x20file\x20found\x20for\x20test:\x20'+_0x4d5ed1['uuid']+'\x20at\x20'+_0x2a9c0a);else{const _0x5087c1=path[_0x4be589(0x1b9)](helper[_0x4be589(0x20f)](),_0x1257b8[_0x4be589(0x16f)]);!fs[_0x4be589(0x1f8)](_0x5087c1)&&fs[_0x4be589(0x1b7)](_0x5087c1),fs[_0x4be589(0x1f8)](path['join'](_0x5087c1,_0x4be589(0x1af)+_0x4d5ed1[_0x4be589(0x18e)]+_0x4be589(0x233)))&&(_0x2a9c0a=fs[_0x4be589(0x220)](path['join'](_0x5087c1,_0x4be589(0x1af)+_0x4d5ed1[_0x4be589(0x18e)]+_0x4be589(0x233)),_0x1257b8[_0x4be589(0x232)]),_0x1257b8[_0x4be589(0x194)](debug,_0x4be589(0x169)+_0x4d5ed1['uuid']+_0x4be589(0x24e)+_0x2a9c0a));}const _0x538486={};_0x538486[_0x4be589(0x1d1)]=_0x23a7a8,_0x538486[_0x4be589(0x224)]=_0x527756;const _0xa3a862=_0x538486;_0x2a9c0a&&_0x1257b8[_0x4be589(0x223)](_0x2a9c0a,'')&&_0x1257b8[_0x4be589(0x216)](_0x23a7a8,_0x1257b8['NSwHP'])&&(!_0xa3a862['logs']&&(_0xa3a862[_0x4be589(0x1dc)]=[]),_0x2a9c0a[_0x4be589(0x16e)]('\x0a')['forEach'](_0x48100f=>{const _0x1aab36=_0x4be589;_0x48100f&&_0x1257b8[_0x1aab36(0x1a6)](validateFilePath,_0x48100f)&&_0xa3a862[_0x1aab36(0x1dc)]['push']({'kind':_0x1257b8[_0x1aab36(0x1c9)],'timestamp':new Date()[_0x1aab36(0x17b)](),'test_run_uuid':_0x4d5ed1['uuid'],'file_name':path[_0x1aab36(0x1c5)](_0x48100f),'file_size':fs[_0x1aab36(0x1c8)](_0x48100f)['size'],'attachment_type':PLAYWRIGHT_TRACE_LOGS});})),await SessionHandler['uploadEventData'](_0xa3a862);}[a46_0x909905(0x1cd)](_0x3c7171){const _0x30e897=a46_0x909905,_0x5e81b8={};_0x5e81b8[_0x30e897(0x17a)]=function(_0xd0d66a,_0x2d715f){return _0xd0d66a===_0x2d715f;},_0x5e81b8[_0x30e897(0x209)]=function(_0x2aacfc,_0x90949c){return _0x2aacfc>_0x90949c;},_0x5e81b8[_0x30e897(0x19e)]=function(_0x163357,_0x850b7a){return _0x163357+_0x850b7a;},_0x5e81b8[_0x30e897(0x207)]=function(_0x59bdb6,_0x239f4d){return _0x59bdb6+_0x239f4d;};const _0x4c8fc0=_0x5e81b8,_0x32271b=_0x3c7171[_0x30e897(0x202)]()[_0x30e897(0x198)](_0x1dd0e6=>{const _0x31c456=_0x30e897;if(_0x3c7171[_0x31c456(0x254)]&&_0x4c8fc0[_0x31c456(0x17a)](_0x1dd0e6,_0x3c7171['parent'][_0x31c456(0x1f6)])&&_0x3c7171[_0x31c456(0x254)][_0x31c456(0x1e6)]&&_0x4c8fc0[_0x31c456(0x209)](_0x3c7171[_0x31c456(0x254)][_0x31c456(0x1e6)][_0x31c456(0x19d)],0x0))return _0x4c8fc0[_0x31c456(0x19e)](_0x4c8fc0[_0x31c456(0x19e)](_0x1dd0e6,'\x20'),_0x3c7171[_0x31c456(0x254)][_0x31c456(0x1e6)]['join']('\x20'));if(_0x4c8fc0[_0x31c456(0x17a)](_0x1dd0e6,_0x3c7171['title'])&&_0x3c7171[_0x31c456(0x1e6)]&&_0x4c8fc0[_0x31c456(0x209)](_0x3c7171[_0x31c456(0x1e6)][_0x31c456(0x19d)],0x0))return _0x4c8fc0[_0x31c456(0x207)](_0x4c8fc0[_0x31c456(0x207)](_0x1dd0e6,'\x20'),_0x3c7171['_tags'][_0x31c456(0x1b9)]('\x20'));return _0x1dd0e6;})[_0x30e897(0x1b9)]('\x20');return _0x32271b;}static async['sendSessionDetails'](_0x727b6e,_0xf9ca71){const _0x1d0cf3=a46_0x909905,_0x14075a={'haybB':function(_0x1c015d,_0x3e0d1e){return _0x1c015d(_0x3e0d1e);},'hyxAI':_0x1d0cf3(0x21c)},_0x81be9e={'uuid':TestDetails['getTestUUID'](_0x727b6e),'integrations':_0xf9ca71},_0x258ccc={};_0x258ccc[_0x1d0cf3(0x255)]=null,_0x14075a[_0x1d0cf3(0x186)](debug,_0x1d0cf3(0x231)+_0x727b6e+',\x20'+util['inspect'](_0xf9ca71,_0x258ccc));const _0x404fd3={};_0x404fd3['event_type']=_0x14075a['hyxAI'],_0x404fd3[_0x1d0cf3(0x224)]=_0x81be9e,await SessionHandler['uploadEventData'](_0x404fd3);}async[a46_0x909905(0x261)](){const _0x2e6b0b=a46_0x909905,_0x3bd927={'HOxkd':function(_0x53d1c7){return _0x53d1c7();}};if(this['_gitConfigured'])return;const _0x457add=await _0x3bd927[_0x2e6b0b(0x242)](getGitMetaData);_0x457add&&(this[_0x2e6b0b(0x238)]=_0x457add[_0x2e6b0b(0x205)]),this[_0x2e6b0b(0x1ae)]=!![];}[a46_0x909905(0x234)](_0x32dc77){const _0x2db512=a46_0x909905,_0x12e3b2={};_0x12e3b2[_0x2db512(0x245)]=function(_0x32480b,_0x13d1f8){return _0x32480b!==_0x13d1f8;};const _0x1eb510=_0x12e3b2,_0x4f1ba9=[];if(_0x32dc77&&_0x32dc77[_0x2db512(0x254)]){let _0x596c80=_0x32dc77[_0x2db512(0x254)];while(_0x596c80&&_0x1eb510[_0x2db512(0x245)](_0x596c80[_0x2db512(0x1f6)],'')){_0x4f1ba9[_0x2db512(0x193)](_0x596c80[_0x2db512(0x1f6)]),_0x596c80=_0x596c80[_0x2db512(0x254)];}}return _0x4f1ba9[_0x2db512(0x25b)]()[_0x2db512(0x1fe)](0x0,0x2),_0x4f1ba9;}[a46_0x909905(0x1c0)](_0x452581){const _0x541ff1=a46_0x909905,_0xfdef44={};_0xfdef44[_0x541ff1(0x206)]=function(_0x19abb1,_0x4155ca){return _0x19abb1!==_0x4155ca;},_0xfdef44['lSROo']=_0x541ff1(0x21f),_0xfdef44[_0x541ff1(0x26c)]=function(_0x37a937,_0x308226){return _0x37a937===_0x308226;},_0xfdef44[_0x541ff1(0x25c)]='beforeEach\x20hook',_0xfdef44[_0x541ff1(0x23d)]=_0x541ff1(0x1ad),_0xfdef44[_0x541ff1(0x262)]=_0x541ff1(0x18c),_0xfdef44[_0x541ff1(0x181)]=_0x541ff1(0x1df);const _0x3ba4c4=_0xfdef44;if(_0x3ba4c4[_0x541ff1(0x206)](_0x452581[_0x541ff1(0x20a)],_0x3ba4c4[_0x541ff1(0x210)]))return![];if(_0x3ba4c4[_0x541ff1(0x26c)]([_0x3ba4c4['PaWUA'],_0x3ba4c4[_0x541ff1(0x23d)],_0x3ba4c4[_0x541ff1(0x262)],_0x3ba4c4[_0x541ff1(0x181)]][_0x541ff1(0x1f9)](_0x452581[_0x541ff1(0x1f6)]),-0x1))return![];return!![];}[a46_0x909905(0x239)](_0x406bbe,_0x582133){const _0xd11217=a46_0x909905,_0x2288d9={'pwhKe':function(_0x1fc919,_0x1063ba){return _0x1fc919(_0x1063ba);}},_0x2adec6=_0x582133[_0xd11217(0x174)];if(_0x2adec6)return _0x2adec6;return _0x582133[_0xd11217(0x1f6)]+_0xd11217(0x1ee)+_0x2288d9[_0xd11217(0x1ea)](getTestIdentifier,_0x406bbe);}[a46_0x909905(0x1dd)](_0x2a0165,_0x4deca5){const _0x1891c7=a46_0x909905,_0x135992={'YTSDL':function(_0x206544,_0x317995){return _0x206544(_0x317995);},'lczTm':function(_0x23d0a4){return _0x23d0a4();}};let _0x171b98=_0x4deca5[_0x1891c7(0x1f6)]+_0x1891c7(0x1ee)+_0x135992[_0x1891c7(0x24f)](getTestIdentifier,_0x2a0165);return this['_tests'][_0x171b98]&&(_0x171b98=_0x171b98+_0x1891c7(0x25d)+_0x135992['lczTm'](uuidv4)),_0x4deca5['_bs_hookIdentifier']=_0x171b98,_0x171b98;}['getHookType']=_0x45a43e=>{const _0x23f9d1=a46_0x909905,_0x299bae={};_0x299bae['sQVEB']=_0x23f9d1(0x1fa),_0x299bae[_0x23f9d1(0x1d3)]=_0x23f9d1(0x25f),_0x299bae[_0x23f9d1(0x253)]=_0x23f9d1(0x1ad),_0x299bae[_0x23f9d1(0x18f)]=_0x23f9d1(0x17e),_0x299bae[_0x23f9d1(0x20b)]=_0x23f9d1(0x1df),_0x299bae['OktzN']=_0x23f9d1(0x269),_0x299bae['WhIkp']='afterAll\x20hook',_0x299bae['wMZHV']=_0x23f9d1(0x1a4),_0x299bae[_0x23f9d1(0x23f)]=_0x23f9d1(0x1b6);const _0x23cddb=_0x299bae;if(_0x45a43e[_0x23f9d1(0x1ab)](_0x23cddb[_0x23f9d1(0x1d8)]))return _0x23cddb['mOxCE'];else{if(_0x45a43e[_0x23f9d1(0x1ab)](_0x23cddb[_0x23f9d1(0x253)]))return _0x23cddb['oeRsd'];else{if(_0x45a43e['startsWith'](_0x23cddb[_0x23f9d1(0x20b)]))return _0x23cddb[_0x23f9d1(0x17f)];else{if(_0x45a43e[_0x23f9d1(0x1ab)](_0x23cddb['WhIkp']))return _0x23cddb[_0x23f9d1(0x250)];}}}return _0x23cddb[_0x23f9d1(0x23f)];};[a46_0x909905(0x18b)]=_0x4a8fed=>{const _0x239b97=a46_0x909905,_0x14dad7={};_0x14dad7[_0x239b97(0x1fc)]=function(_0x369cbf,_0x663b89){return _0x369cbf===_0x663b89;},_0x14dad7[_0x239b97(0x187)]=_0x239b97(0x1a3);const _0x52cd54=_0x14dad7;let _0x1229c8=_0x4a8fed[_0x239b97(0x254)];return _0x52cd54[_0x239b97(0x1fc)](typeof _0x4a8fed['parent'],_0x52cd54[_0x239b97(0x187)])&&(_0x1229c8=_0x1229c8[_0x239b97(0x1f6)]),_0x1229c8+_0x239b97(0x25d)+_0x4a8fed[_0x239b97(0x1f6)];};[a46_0x909905(0x246)](){return![];}}module[a46_0x909905(0x1c2)]=o11yClassErrorHandler(MyReporter,['onBegin','endSession',a46_0x909905(0x1aa),a46_0x909905(0x1ff),a46_0x909905(0x263),'onStepEnd',a46_0x909905(0x1bf)],a46_0x909905(0x1b0));
|
|
1
|
+
const a46_0x574f42=a46_0x3438;(function(_0x113b83,_0x2881f5){const _0x2981db=a46_0x3438,_0x21bd62=_0x113b83();while(!![]){try{const _0x299189=parseInt(_0x2981db(0x1b5))/0x1*(parseInt(_0x2981db(0x1a6))/0x2)+parseInt(_0x2981db(0x182))/0x3+parseInt(_0x2981db(0xfd))/0x4+parseInt(_0x2981db(0x181))/0x5*(-parseInt(_0x2981db(0x1bf))/0x6)+parseInt(_0x2981db(0xe5))/0x7*(parseInt(_0x2981db(0x1b4))/0x8)+parseInt(_0x2981db(0x121))/0x9*(-parseInt(_0x2981db(0x186))/0xa)+-parseInt(_0x2981db(0xf6))/0xb;if(_0x299189===_0x2881f5)break;else _0x21bd62['push'](_0x21bd62['shift']());}catch(_0xfb187a){_0x21bd62['push'](_0x21bd62['shift']());}}}(a46_0xf886,0x7a264));function a46_0x3438(_0x2b0aea,_0x63914b){const _0xf8869a=a46_0xf886();return a46_0x3438=function(_0x343890,_0x542ddd){_0x343890=_0x343890-0xb6;let _0x21ab84=_0xf8869a[_0x343890];return _0x21ab84;},a46_0x3438(_0x2b0aea,_0x63914b);}function a46_0xf886(){const _0x12152f=['TOScE','reportLogs','sendHookRunEvent','UWExT','_tests','6744416mTSmGH','Sending\x20session\x20details\x20for\x20','depth','VlncT','xEiKd','AFTER_EACH','onTestBegin','TEST_STEP','join','ZHzDf','wwlQk','TJwgX','err','exports','homedir','test_run','toISOString','9292646NxDwTt','PRE','EGQlD','LKwbC','SDCcL','EOALd','../../../helpers/helper','3916396cZStCp','Hiagi','GuaLL','START_TIME','pending','_testHooksMap','Hofcw','../../../helpers/performance/performance-tester','filter','onStepEnd','size','javascript','getHierarchy','onBegin','LogCreated','onEnd','toString','XdNpA','Nltxd','hook','dwLKZ','_tags','Wvotf','TestRunStarted','title','getTestUUID','location','reverse','JdSAB','trackEvent','message','XVcvl','\x20-\x20','stack','yHKKF','split','27WBktzL','logLevel','JsiQi','Trace\x20file\x20found\x20for\x20test:\x20','../../v2/TestInfo','gmaUx','rTIOn','zJFRJ','../../../helpers/testhub/utils','HookRunFinished','IRFnj','length','BTdZM','getHookType','./test-details','POST','beforeAll\x20hook','HookRunStarted','CEzGC','./pwUtils','lHrxk','getTime','TEST_SCREENSHOT','result','getInstance','event_type','skipped','mtime','ZOiVU','hook_run_uuid','5|3|2|4|0|6|1','performance-report-reporter.json','screenshot','CUrzU','errors','backtrace','attachments','INIT_TEST','parent','fREFg','OTHTd','Hook\x20Started\x20with\x20unique\x20id\x20','startsWith','VreTQ','hooks','ACHSM','relative','../../v2/browserstackCLI','failed','Error\x20in\x20calculating\x20performance:\x20','cwd','status','inspect','BROWSERSTACK_LOG_LEVEL','error','shutdown','getStepIdentifier','JGsFn','onTestEnd','VneAX','BKxIu','configureGit','env','Before\x20Hooks','ElfDm','isRunning','existsSync','failure_reason','kMwYz','cbHiu','oHQvk','mkdirSync','format','../../../helpers/test-observability/sessionHandler','xtMch','passed','NnZVV','jQycF','indexOf','sendTestRunEvent','vynqK','statSync','startTime','_gitConfigPath','test_run_uuid','splice','options','titlePath','unknown','getScope','spDYU','aXvoq','onStepBegin','finishedAt','test','getCustomRerunParam','5gQATbE','1227045riwxPq','PLAYWRIGHT','sendSessionDetails','YMxga','2071090mXijaC','qAsMt','BROWSERSTACK_O11Y_PERF_MEASUREMENT','HLIOg','axstP','TestRunFinished','SkBkM','steps','praZJ','../../v2/state/hookState','path','meta','.browserstack','uploadEventData','afterAll\x20hook','getTestFramework','startedAt','../../../helpers/test-observability/utils','beforeEach\x20hook','EsGfx','After\x20Hooks','Test\x20Started\x20with\x20unique\x20id\x20','\x20at\x20','bKTTX','expectedStatus','TlaUv','VOuvS','iACKr','retry','readFileSync','root','BEFORE_ALL','8SqfKBU','OREHp','RApmC','Expected\x20to\x20fail,\x20but\x20passed.','TEST','EAcJc','getStepsAndLogs','../../../helpers/test-observability/requestQueueHandler','Error\x20in\x20sending\x20test\x20run\x20event:\x20%s','AFTER_ALL','NCJYI','../../v2/state/testFrameworkState','Cbgmm','../../../helpers/test-observability/constants','8ELrFov','1681LfukkX','failure','Starting\x20sending\x20trace\x20zip\x20for\x20test:\x20','MyReporter','../../../../src/bin/utils/constants','bickn','trVsx','ustpj','logs','VInHL','2351334sxpHGF','dJgGO','LsFVN','bybHH','base64','setStepIdentifier','xTelG','xxrLb','fIGNQ','push','file','endSession','../../../helpers/test-observability/error-handler','uuid','category','setup','uYPmq','Mojsp','NZNnC','NIoWK','map','HYjAm','IOfvi','\x20is\x20triggered','timedOut','wFmKt','LcIts','fGUoo','Pcbde','CKzUL','NrOeB','dGOkB','startMonitoring','failure_type','expanded','Error\x20in\x20sending\x20trace\x20zip:\x20%s','xQPjF','step','duration','needToReportStep','trace_','BEFORE_EACH','_gitConfigured','JfguW'];a46_0xf886=function(){return _0x12152f;};return a46_0xf886();}const RequestQueueHandler=require(a46_0x574f42(0x1ad)),{calculatePerformance,getTestTags,getFailureData,sendTraceZip,findNestedKey,validateFilePath,getTestIdentifier,getTestRunIdentifier}=require(a46_0x574f42(0x134)),{v4:uuidv4}=require(a46_0x574f42(0xc1)),path=require(a46_0x574f42(0x190)),{debug,removeAnsiColors,printBuildLink,getFailureType,failureData,trace}=require(a46_0x574f42(0x197)),{getGitMetaData,setLogLevel}=require('../../../helpers/helper'),TestDetails=require(a46_0x574f42(0x12f)),fs=require('fs'),util=require('util'),{o11yClassErrorHandler}=require(a46_0x574f42(0xc0)),PerformanceTester=require(a46_0x574f42(0x104)),{FRAMEWORKS}=require(a46_0x574f42(0x1b3)),SessionHandler=require(a46_0x574f42(0x16a)),{appendTesthubParams}=require(a46_0x574f42(0x129)),helper=require(a46_0x574f42(0xfc)),BrowserstackCLI=require(a46_0x574f42(0x150)),TestFrameworkState=require(a46_0x574f42(0x1b1)),HookState=require(a46_0x574f42(0x18f)),TestInfo=require(a46_0x574f42(0x125)),{PLAYWRIGHT_TRACE_LOGS}=require(a46_0x574f42(0x1b9));class MyReporter{constructor(_0xcec5e8){const _0x53b58f=a46_0x574f42,_0x33ce4b={'TOScE':_0x53b58f(0x13f),'ElfDm':_0x53b58f(0x140),'mPvyT':function(_0x584635,_0x57f7be,_0x3bc19c,_0x39fc45){return _0x584635(_0x57f7be,_0x3bc19c,_0x39fc45);}},_0x184b3d=_0x33ce4b[_0x53b58f(0xe0)]['split']('|');let _0xc3ccac=0x0;while(!![]){switch(_0x184b3d[_0xc3ccac++]){case'0':this[_0x53b58f(0x177)]=_0xcec5e8;continue;case'1':this[_0x53b58f(0x174)]=null;continue;case'2':this[_0x53b58f(0xe4)]={};continue;case'3':process[_0x53b58f(0x15f)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']&&(PerformanceTester[_0x53b58f(0xd4)](_0x33ce4b[_0x53b58f(0x161)]),process[_0x53b58f(0x15f)][_0x53b58f(0x100)]=new Date()[_0x53b58f(0xf5)]());continue;case'4':this[_0x53b58f(0x102)]={};continue;case'5':const _0x5028a9={};_0x5028a9[_0x53b58f(0x122)]=process['env'][_0x53b58f(0x156)],_0x33ce4b['mPvyT'](setLogLevel,_0x5028a9,new Map(),new Map());continue;case'6':this['_gitConfigured']=![];continue;}break;}}async[a46_0x574f42(0x10a)](){const _0x3029ef=a46_0x574f42;TestDetails[_0x3029ef(0xc3)](),await this[_0x3029ef(0x15e)](),TestInfo['setup']();if(BrowserstackCLI[_0x3029ef(0x139)]()['isRunning']()){await BrowserstackCLI[_0x3029ef(0x139)]()[_0x3029ef(0x195)]()[_0x3029ef(0x11a)](TestFrameworkState[_0x3029ef(0x146)],HookState[_0x3029ef(0xf7)],{});return;}}async[a46_0x574f42(0xeb)](_0x2d8bae,_0x432662){const _0x3ecdc5=a46_0x574f42,_0x393d78={'ACHSM':function(_0x23ff76,_0x4bc6d9){return _0x23ff76(_0x4bc6d9);},'OfTeG':function(_0x52b91e,_0x2ba03f,_0x343d16){return _0x52b91e(_0x2ba03f,_0x343d16);},'hhdAz':_0x3ecdc5(0x114)};if(BrowserstackCLI[_0x3ecdc5(0x139)]()[_0x3ecdc5(0x162)]()){const _0x1022e2={};_0x1022e2[_0x3ecdc5(0x17f)]=_0x2d8bae,_0x1022e2[_0x3ecdc5(0x138)]=_0x432662,await BrowserstackCLI['getInstance']()[_0x3ecdc5(0x195)]()[_0x3ecdc5(0x11a)](TestFrameworkState[_0x3ecdc5(0x1aa)],HookState['PRE'],_0x1022e2);return;}const _0x46c5bc=_0x393d78[_0x3ecdc5(0x14e)](getTestIdentifier,_0x2d8bae),_0x199fe7=TestDetails[_0x3ecdc5(0x116)](_0x393d78['OfTeG'](getTestRunIdentifier,_0x2d8bae,_0x432662[_0x3ecdc5(0x1a2)]));process['env']['BROWSERSTACK_TEST_RUN_ID']=_0x199fe7;const _0x5bcb7d={};_0x5bcb7d[_0x3ecdc5(0xc1)]=_0x199fe7,_0x5bcb7d[_0x3ecdc5(0x196)]=_0x432662[_0x3ecdc5(0x173)],this['_tests'][_0x46c5bc]=_0x5bcb7d,_0x393d78['ACHSM'](trace,_0x3ecdc5(0x19b)+_0x46c5bc),await this[_0x3ecdc5(0x170)](_0x2d8bae,_0x393d78['hhdAz'],_0x432662);}async['onStepBegin'](_0x433624,_0x56ae6f,_0xf110d9){const _0x2b73be=a46_0x574f42,_0x125e17={'EAcJc':function(_0x5dc8a9,_0x3497ed,_0x499b83){return _0x5dc8a9(_0x3497ed,_0x499b83);},'Wvotf':function(_0x5c3305,_0x1185d6){return _0x5c3305(_0x1185d6);},'KXJBO':_0x2b73be(0x132)};if(!this[_0x2b73be(0xdb)](_0xf110d9,_0x433624))return;if(BrowserstackCLI[_0x2b73be(0x139)]()[_0x2b73be(0x162)]()){const _0x1fbeb0=this[_0x2b73be(0x12e)](_0xf110d9[_0x2b73be(0x115)]),_0x5c92ad=TestFrameworkState[_0x1fbeb0],_0x192fc8={};_0x192fc8[_0x2b73be(0x17f)]=_0x433624,_0x192fc8[_0x2b73be(0x138)]=_0x56ae6f,_0x192fc8[_0x2b73be(0xd9)]=_0xf110d9,await BrowserstackCLI[_0x2b73be(0x139)]()[_0x2b73be(0x195)]()['trackEvent'](_0x5c92ad,HookState['PRE'],_0x192fc8);return;}const _0x4c7c70=this[_0x2b73be(0xb9)](_0x433624,_0xf110d9);this[_0x2b73be(0xe4)][_0x4c7c70]={'uuid':TestDetails[_0x2b73be(0x116)](_0x4c7c70),'startedAt':_0xf110d9['startTime'][_0x2b73be(0xf5)]()};const _0x431ddd=_0x125e17[_0x2b73be(0x1ab)](getTestRunIdentifier,_0x433624,_0x56ae6f[_0x2b73be(0x1a2)]);!this[_0x2b73be(0x102)][_0x431ddd]&&(this[_0x2b73be(0x102)][_0x431ddd]=[]),this[_0x2b73be(0x102)][_0x431ddd][_0x2b73be(0xbd)](this[_0x2b73be(0xe4)][_0x4c7c70][_0x2b73be(0xc1)]),_0x125e17[_0x2b73be(0x113)](trace,_0x2b73be(0x14a)+_0x4c7c70+'\x20is\x20triggered\x20for\x20test\x20'+_0x431ddd),await this[_0x2b73be(0xe2)](_0x433624,_0xf110d9,_0x125e17['KXJBO'],_0x56ae6f);}async[a46_0x574f42(0x106)](_0x15adba,_0x46667d,_0xc322e3){const _0x5607eb=a46_0x574f42,_0x501507={'mvwaO':function(_0x1c6cd9,_0x91e795){return _0x1c6cd9+_0x91e795;},'pTBCO':function(_0xe40efb,_0x589994){return _0xe40efb(_0x589994);},'bKTTX':_0x5607eb(0x12a)};if(!this['needToReportStep'](_0xc322e3,_0x15adba))return;if(BrowserstackCLI[_0x5607eb(0x139)]()[_0x5607eb(0x162)]()){const _0x573102=this[_0x5607eb(0x12e)](_0xc322e3['title']),_0x1efa51=TestFrameworkState[_0x573102],_0x49f6e8={};_0x49f6e8[_0x5607eb(0x17f)]=_0x15adba,_0x49f6e8[_0x5607eb(0x138)]=_0x46667d,_0x49f6e8[_0x5607eb(0xd9)]=_0xc322e3,await BrowserstackCLI[_0x5607eb(0x139)]()[_0x5607eb(0x195)]()[_0x5607eb(0x11a)](_0x1efa51,HookState[_0x5607eb(0x130)],_0x49f6e8);return;}const _0x187467=this[_0x5607eb(0x159)](_0x15adba,_0xc322e3);this[_0x5607eb(0xe4)][_0x187467]={...this[_0x5607eb(0xe4)][_0x187467]||{},'finishedAt':new Date(_0x501507['mvwaO'](_0xc322e3[_0x5607eb(0x173)][_0x5607eb(0x136)](),_0xc322e3[_0x5607eb(0xda)]))},_0x501507['pTBCO'](trace,'Hook\x20Finished\x20with\x20unique\x20id\x20'+_0x187467+_0x5607eb(0xcb)),await this[_0x5607eb(0xe2)](_0x15adba,_0xc322e3,_0x501507[_0x5607eb(0x19d)],_0x46667d);}async[a46_0x574f42(0x15b)](_0x129819,_0x1d5616){const _0x13930d=a46_0x574f42,_0x33ba92={'xtouW':function(_0x28390f,_0x24b266){return _0x28390f===_0x24b266;},'BKxIu':_0x13930d(0x141),'wFmKt':_0x13930d(0x137),'qmAqx':_0x13930d(0xb8),'LKwbC':function(_0x2009dc,_0x98f560){return _0x2009dc(_0x98f560);},'ZOiVU':function(_0x38f4cc,_0x5db1ad,_0xcd646d){return _0x38f4cc(_0x5db1ad,_0xcd646d);},'XdNpA':function(_0x4cbcbb,_0x295223){return _0x4cbcbb(_0x295223);},'IRFnj':'TestRunFinished','dJgGO':_0x13930d(0x1ae),'VOuvS':function(_0xcc4bc3,_0xfa6673){return _0xcc4bc3(_0xfa6673);},'FQJLW':_0x13930d(0xd7),'SjWLu':function(_0x16f0df,_0x1d2f32){return _0x16f0df>_0x1d2f32;}};if(BrowserstackCLI[_0x13930d(0x139)]()['isRunning']()){const _0x1334a0={};_0x1334a0[_0x13930d(0x17f)]=_0x129819,_0x1334a0[_0x13930d(0x138)]=_0x1d5616,await BrowserstackCLI[_0x13930d(0x139)]()['getTestFramework']()[_0x13930d(0x11a)](TestFrameworkState['TEST'],HookState[_0x13930d(0x130)],_0x1334a0);return;}const _0x2a31e2=_0x33ba92[_0x13930d(0xf9)](getTestIdentifier,_0x129819),_0x5224da=TestDetails[_0x13930d(0x116)](_0x33ba92[_0x13930d(0x13d)](getTestRunIdentifier,_0x129819,_0x1d5616[_0x13930d(0x1a2)]));this[_0x13930d(0xe4)][_0x2a31e2]={...this[_0x13930d(0xe4)][_0x2a31e2]||{},'finishedAt':new Date()[_0x13930d(0xf5)]()},_0x33ba92[_0x13930d(0x10e)](debug,'Test\x20Finished\x20with\x20unique\x20id\x20'+_0x2a31e2);try{await this['sendTestRunEvent'](_0x129819,_0x33ba92[_0x13930d(0x12b)],_0x1d5616);}catch(_0x59c3f9){_0x33ba92['LKwbC'](debug,util[_0x13930d(0x169)](_0x33ba92[_0x13930d(0x1c0)],_0x59c3f9['toString']()));}try{_0x33ba92[_0x13930d(0x10e)](debug,_0x13930d(0x1b7)+_0x5224da),await _0x33ba92['ZOiVU'](sendTraceZip,_0x1d5616,_0x5224da);}catch(_0x1ca26e){_0x33ba92[_0x13930d(0x1a0)](debug,util['format'](_0x33ba92['FQJLW'],_0x1ca26e[_0x13930d(0x10d)]()));}const _0x1ee562=[];_0x1d5616[_0x13930d(0x145)]&&_0x1d5616[_0x13930d(0x145)][_0x13930d(0xc8)](_0x16a17d=>{const _0x12a151=_0x13930d;if(_0x33ba92['xtouW'](_0x16a17d['name'],_0x33ba92[_0x12a151(0x15d)])){if(!_0x16a17d[_0x12a151(0x190)]||!fs[_0x12a151(0x163)](_0x16a17d[_0x12a151(0x190)]))return;_0x1ee562[_0x12a151(0xbd)]({'test_run_uuid':_0x5224da,'timestamp':fs[_0x12a151(0x172)](_0x16a17d[_0x12a151(0x190)])[_0x12a151(0x13c)],'kind':_0x33ba92[_0x12a151(0xcd)],'message':fs[_0x12a151(0x1a3)](_0x16a17d[_0x12a151(0x190)],{'encoding':_0x33ba92['qmAqx']})});}}),_0x33ba92['SjWLu'](_0x1ee562[_0x13930d(0x12c)],0x0)&&await MyReporter[_0x13930d(0xe1)](_0x1ee562);}async[a46_0x574f42(0xbf)](){const _0x2707bc=a46_0x574f42;await RequestQueueHandler['getInstance']()[_0x2707bc(0x158)]();}async[a46_0x574f42(0x10c)](_0x1c6e47){const _0x2993b4=a46_0x574f42,_0x887073={'TlaUv':function(_0x250d45){return _0x250d45();},'xQPjF':function(_0x1e130a,_0x1671f8){return _0x1e130a(_0x1671f8);}};await this[_0x2993b4(0xbf)]();try{process[_0x2993b4(0x15f)][_0x2993b4(0x188)]&&await _0x887073[_0x2993b4(0x19f)](calculatePerformance);}catch(_0x354c81){_0x887073[_0x2993b4(0xd8)](debug,_0x2993b4(0x152)+_0x354c81[_0x2993b4(0x10d)]());}}static async['addTestUIDAndReportLog'](_0x4d42ce,_0x57196f){const _0x3e82d6=a46_0x574f42;_0x57196f[_0x3e82d6(0x175)]=TestDetails['getTestUUID'](_0x4d42ce),await this[_0x3e82d6(0xe1)]([_0x57196f]);}static async[a46_0x574f42(0xe1)](_0x71d54){const _0x199ba5=a46_0x574f42,_0x102cb8={};_0x102cb8[_0x199ba5(0x135)]=_0x199ba5(0x10b);const _0x4bb9f6=_0x102cb8;if(BrowserstackCLI['getInstance']()[_0x199ba5(0x162)]())return;const _0x366637={};_0x366637['event_type']=_0x4bb9f6['lHrxk'],_0x366637[_0x199ba5(0x1bd)]=_0x71d54,await SessionHandler['uploadEventData'](_0x366637);}async[a46_0x574f42(0xe2)](_0x49ebd9,_0x56d89e,_0x3a6d50,_0x146c24){const _0x3fbc87=a46_0x574f42,_0x525466={'CEzGC':_0x3fbc87(0x110),'HLIOg':_0x3fbc87(0x108),'OREHp':_0x3fbc87(0x101),'dFFxl':function(_0x1acbd0,_0xeaadfd){return _0x1acbd0>=_0xeaadfd;},'qAsMt':function(_0xabb668,_0x5e2493){return _0xabb668===_0x5e2493;},'sVyLu':'HookRunFinished','praZJ':function(_0x365c52,_0x578294){return _0x365c52>_0x578294;},'yHKKF':'failed','JGsFn':function(_0xcf8c80,_0x1d0751){return _0xcf8c80(_0x1d0751);},'JdSAB':function(_0x509923,_0x35f854,_0x5a913c){return _0x509923(_0x35f854,_0x5a913c);},'oIwHA':_0x3fbc87(0xf1),'anqEX':_0x3fbc87(0x16c)},_0x17f0d6=this[_0x3fbc87(0x159)](_0x49ebd9,_0x56d89e),_0xd5d220=this[_0x3fbc87(0xe4)][_0x17f0d6],_0x24d05c={'uuid':_0xd5d220[_0x3fbc87(0xc1)],'type':_0x525466[_0x3fbc87(0x133)],'hook_type':this[_0x3fbc87(0x12e)](_0x56d89e['title']),'name':_0x56d89e[_0x3fbc87(0x115)],'scope':this[_0x3fbc87(0x17a)](_0x56d89e),'scopes':this[_0x3fbc87(0x109)](_0x49ebd9),'body':{'lang':_0x525466[_0x3fbc87(0x189)],'code':null},'identifier':_0x17f0d6,'file_name':path[_0x3fbc87(0x14f)](process[_0x3fbc87(0x153)](),_0x49ebd9[_0x3fbc87(0x117)][_0x3fbc87(0xbe)]),'location':path[_0x3fbc87(0x14f)](process['cwd'](),_0x49ebd9[_0x3fbc87(0x117)][_0x3fbc87(0xbe)]),'result':_0x525466[_0x3fbc87(0x1a7)],'duration_in_ms':_0x525466['dFFxl'](_0x56d89e[_0x3fbc87(0xda)],0x0)?_0x56d89e['duration']:undefined,'vc_filepath':this[_0x3fbc87(0x174)]&&_0x49ebd9[_0x3fbc87(0x117)]['file']?path[_0x3fbc87(0x14f)](this[_0x3fbc87(0x174)],_0x49ebd9[_0x3fbc87(0x117)]['file']):undefined,'started_at':_0xd5d220[_0x3fbc87(0x196)],'finished_at':_0xd5d220[_0x3fbc87(0x17e)],'framework':FRAMEWORKS[_0x3fbc87(0x183)]};if(_0x525466['qAsMt'](_0x3a6d50,_0x525466['sVyLu'])){const {steps:_0xfac750,logs:_0x5a887e}=this[_0x3fbc87(0x1ac)](_0x56d89e[_0x3fbc87(0x18d)],_0xd5d220['uuid'],_0x525466[_0x3fbc87(0x133)]);_0x5a887e&&_0x525466[_0x3fbc87(0x18e)](_0x5a887e['length'],0x0)&&await MyReporter['reportLogs'](_0x5a887e);const _0x146663={};_0x146663['steps']=_0xfac750,_0x24d05c[_0x3fbc87(0x191)]=_0x146663;if(_0x56d89e[_0x3fbc87(0x157)]){_0x24d05c['result']=_0x525466[_0x3fbc87(0x11f)],_0x24d05c['failure_reason']=_0x525466[_0x3fbc87(0x15a)](removeAnsiColors,_0x56d89e['error'][_0x3fbc87(0x11b)]),_0x24d05c[_0x3fbc87(0xd5)]=_0x525466[_0x3fbc87(0x15a)](getFailureType,_0x56d89e[_0x3fbc87(0x157)][_0x3fbc87(0x11b)]);const _0xe2925=_0x525466[_0x3fbc87(0x119)](failureData,_0x56d89e['error'],_0x525466['oIwHA']);if(_0xe2925&&_0x525466[_0x3fbc87(0x187)](_0xe2925[_0x3fbc87(0x12c)],0x0)){const _0xa94a8a={};_0xa94a8a[_0x3fbc87(0x144)]=[_0x24d05c[_0x3fbc87(0x164)]],_0xa94a8a['expanded']=[],_0xe2925['push'](_0xa94a8a);}_0x24d05c['failure']=_0xe2925;}else _0x24d05c[_0x3fbc87(0x138)]=_0x525466['anqEX'];}const _0xa3c328={};_0xa3c328['event_type']=_0x3a6d50,_0xa3c328['hook_run']=_0x24d05c;const _0x3feb2b=_0xa3c328;await SessionHandler['uploadEventData'](_0x3feb2b);}[a46_0x574f42(0x1ac)](_0x1478a9,_0x2ed123,_0x38ddf3){const _0x463b63=a46_0x574f42,_0x498386={'Mojsp':function(_0x114313,_0x4adca9){return _0x114313===_0x4adca9;},'Nltxd':_0x463b63(0x110),'jQycF':function(_0x455efb,_0x52e466){return _0x455efb===_0x52e466;},'LcIts':_0x463b63(0x19a),'bLIMZ':_0x463b63(0x160),'ddNLA':function(_0x33f73f,_0x14947d){return _0x33f73f===_0x14947d;},'ustpj':_0x463b63(0x17f),'JfguW':_0x463b63(0x175),'FrfWQ':_0x463b63(0x13e),'bJgFi':_0x463b63(0xec),'MFKtP':'failed','VInHL':_0x463b63(0x16c),'xxrLb':function(_0x243608,_0x30b182){return _0x243608(_0x30b182);},'EGQlD':function(_0x493113){return _0x493113();},'NCJYI':function(_0x308b48,_0x81a7b1){return _0x308b48(_0x81a7b1);},'tqVXc':function(_0x46e0c9,_0x57fe50){return _0x46e0c9(_0x57fe50);},'cyTUK':function(_0x41fdb9,_0x169d62,_0x4d5655){return _0x41fdb9(_0x169d62,_0x4d5655);},'GuaLL':function(_0x3c2a8f,_0x165ea1,_0x26aece){return _0x3c2a8f(_0x165ea1,_0x26aece);}},_0x3ea5eb=[],_0x3df5d6=[],_0x55e17a=_0x1478a9[_0x463b63(0x105)](_0x1a677d=>{const _0x3a4e15=_0x463b63;if(_0x498386[_0x3a4e15(0xc5)](_0x1a677d[_0x3a4e15(0xc2)],_0x498386[_0x3a4e15(0x10f)])&&(_0x498386[_0x3a4e15(0x16e)](_0x1a677d['title'],_0x498386[_0x3a4e15(0xce)])||_0x498386[_0x3a4e15(0x16e)](_0x1a677d[_0x3a4e15(0x115)],_0x498386['bLIMZ'])))return![];return!![];}),_0x2a6c0b=(_0x425df1,_0x2bedba=![])=>{const _0x499fb0=_0x463b63;if(_0x498386['jQycF'](_0x425df1[_0x499fb0(0x18d)][_0x499fb0(0x12c)],0x0)){const _0x28b3b2=_0x498386['ddNLA'](_0x38ddf3,_0x498386[_0x499fb0(0x1bc)])?_0x498386[_0x499fb0(0xdf)]:_0x498386['FrfWQ'];_0x3df5d6['push']({'kind':_0x498386['bJgFi'],[_0x28b3b2]:_0x2ed123,'message':_0x425df1['title'],'timestamp':_0x425df1[_0x499fb0(0x173)]['toISOString'](),'level':_0x425df1[_0x499fb0(0x157)]?_0x498386['MFKtP']:_0x498386[_0x499fb0(0x1be)],'duration':_0x425df1['duration'],'failure':_0x425df1[_0x499fb0(0x157)]&&_0x425df1['error'][_0x499fb0(0x11b)]&&_0x498386['xxrLb'](removeAnsiColors,_0x425df1['error'][_0x499fb0(0x11b)]),'failure_type':_0x498386[_0x499fb0(0xbb)](getFailureType,_0x425df1[_0x499fb0(0x157)]&&_0x425df1[_0x499fb0(0x157)][_0x499fb0(0x11b)])});}else{!_0x2bedba&&_0x3ea5eb[_0x499fb0(0xbd)]({'id':_0x498386[_0x499fb0(0xf8)](uuidv4),'text':_0x425df1[_0x499fb0(0x115)],'keyword':undefined,'started_at':_0x425df1[_0x499fb0(0x173)][_0x499fb0(0xf5)](),'duration':_0x425df1[_0x499fb0(0xda)],'result':_0x425df1['error']?_0x498386['MFKtP']:_0x498386[_0x499fb0(0x1be)],'failure':_0x425df1[_0x499fb0(0x157)]&&_0x425df1[_0x499fb0(0x157)]['message']&&_0x498386[_0x499fb0(0x1b0)](removeAnsiColors,_0x425df1[_0x499fb0(0x157)][_0x499fb0(0x11b)]),'failure_type':_0x498386['tqVXc'](getFailureType,_0x425df1[_0x499fb0(0x157)]&&_0x425df1[_0x499fb0(0x157)][_0x499fb0(0x11b)])});for(const _0x4c02b7 of _0x425df1['steps']){_0x498386['cyTUK'](_0x2a6c0b,_0x4c02b7,!![]);}}};for(const _0x133098 of _0x55e17a){_0x498386[_0x463b63(0xff)](_0x2a6c0b,_0x133098,![]);}const _0x1d9857={};return _0x1d9857['steps']=_0x3ea5eb,_0x1d9857[_0x463b63(0x1bd)]=_0x3df5d6,_0x1d9857;}async[a46_0x574f42(0x170)](_0x436e7f,_0x420248,_0x683d53){const _0x5aca6e=a46_0x574f42,_0x120dec={'TJwgX':function(_0x5a0702,_0x511b05){return _0x5a0702(_0x511b05);},'xTelG':'TEST_ATTACHMENT','XVcvl':function(_0x58a21a,_0x2d2b77){return _0x58a21a(_0x2d2b77);},'uYPmq':_0x5aca6e(0x17f),'EsGfx':_0x5aca6e(0x108),'VreTQ':_0x5aca6e(0x101),'ZHzDf':function(_0x79db87,_0xec497b,_0x5a14c9,_0x5b6cad,_0x2ec7c7){return _0x79db87(_0xec497b,_0x5a14c9,_0x5b6cad,_0x2ec7c7);},'GCQhP':function(_0x5716ef,_0x4687bb){return _0x5716ef>_0x4687bb;},'cbHiu':function(_0x39327c,_0xc7a137,_0x5348ef){return _0x39327c(_0xc7a137,_0x5348ef);},'bybHH':function(_0xe4fe52,_0x509d51){return _0xe4fe52-_0x509d51;},'VneAX':function(_0x5af86d,_0x173a8a){return _0x5af86d===_0x173a8a;},'NnZVV':_0x5aca6e(0x18b),'HYjAm':function(_0x26f8db,_0x59498a){return _0x26f8db===_0x59498a;},'FIWKs':_0x5aca6e(0x13b),'trVsx':'passed','CKzUL':function(_0x1a1c6e,_0x5216a6){return _0x1a1c6e===_0x5216a6;},'Cbgmm':function(_0x4f696b,_0x31e3a4){return _0x4f696b===_0x31e3a4;},'VlncT':_0x5aca6e(0x151),'NZNnC':function(_0x30da00,_0x53e5ac){return _0x30da00===_0x53e5ac;},'BTdZM':_0x5aca6e(0xcc),'LsFVN':function(_0x35c899,_0x640afc){return _0x35c899===_0x640afc;},'xEiKd':_0x5aca6e(0x1a9),'IOfvi':function(_0x2617a9,_0x62bbf8,_0x106919){return _0x2617a9(_0x62bbf8,_0x106919);},'NIoWK':function(_0x19a7a8,_0x3e0cd4){return _0x19a7a8(_0x3e0cd4);},'mqsOK':function(_0x3c1813,_0x54ac6e){return _0x3c1813===_0x54ac6e;},'vynqK':function(_0xb93f3c,_0x2bd422){return _0xb93f3c>_0x2bd422;},'RApmC':_0x5aca6e(0x190),'spDYU':function(_0x469155,_0x1ae127){return _0x469155(_0x1ae127);},'wwlQk':_0x5aca6e(0x192),'zJFRJ':'utf8','BXzoP':function(_0x3c7089,_0x2d15d9){return _0x3c7089!==_0x2d15d9;}},_0x2cc896=_0x120dec[_0x5aca6e(0x11c)](getTestIdentifier,_0x436e7f),_0x4d285e=this[_0x5aca6e(0x17a)](_0x436e7f),_0x1a37b9=this[_0x5aca6e(0xe4)][_0x2cc896],_0x113ee1=path[_0x5aca6e(0x14f)](process[_0x5aca6e(0x153)](),_0x436e7f[_0x5aca6e(0x117)][_0x5aca6e(0xbe)]);await this[_0x5aca6e(0x15e)]();const _0x2d8958={'uuid':_0x1a37b9[_0x5aca6e(0xc1)],'type':_0x120dec['uYPmq'],'name':_0x436e7f['title'],'body':{'lang':_0x120dec[_0x5aca6e(0x199)],'code':_0x436e7f['fn'][_0x5aca6e(0x10d)]()},'scope':_0x4d285e,'scopes':this[_0x5aca6e(0x109)](_0x436e7f),'identifier':_0x2cc896,'file_name':_0x113ee1,'location':_0x113ee1,'result':_0x120dec[_0x5aca6e(0x14c)],'duration_in_ms':_0x683d53&&_0x683d53[_0x5aca6e(0xda)]?_0x683d53[_0x5aca6e(0xda)]:null,'vc_filepath':this[_0x5aca6e(0x174)]&&_0x436e7f[_0x5aca6e(0x117)][_0x5aca6e(0xbe)]?path[_0x5aca6e(0x14f)](this['_gitConfigPath'],_0x436e7f[_0x5aca6e(0x117)][_0x5aca6e(0xbe)]):undefined,'started_at':_0x1a37b9['startedAt'],'finished_at':_0x1a37b9[_0x5aca6e(0x17e)],'framework':FRAMEWORKS[_0x5aca6e(0x183)],'customRerunParam':{'rerun_name':this[_0x5aca6e(0x180)](_0x436e7f)},'tags':_0x120dec[_0x5aca6e(0xf0)](getTestTags,_0x436e7f)};_0x120dec[_0x5aca6e(0xee)](appendTesthubParams,_0x2d8958,_0x420248,_0x436e7f,FRAMEWORKS[_0x5aca6e(0x183)]);_0x683d53&&_0x120dec['GCQhP'](_0x683d53[_0x5aca6e(0x1a2)],0x0)&&(_0x2d8958['retry_of']=TestDetails[_0x5aca6e(0x116)](_0x120dec[_0x5aca6e(0x166)](getTestRunIdentifier,_0x436e7f,_0x120dec[_0x5aca6e(0xb7)](_0x683d53[_0x5aca6e(0x1a2)],0x1))));if(_0x120dec[_0x5aca6e(0x15c)](_0x420248,_0x120dec['NnZVV'])){_0x2d8958[_0x5aca6e(0x138)]=_0x683d53[_0x5aca6e(0x154)];if(_0x120dec[_0x5aca6e(0x15c)](_0x683d53[_0x5aca6e(0x154)],_0x436e7f[_0x5aca6e(0x19e)]))_0x2d8958['result']=_0x120dec[_0x5aca6e(0xc9)](_0x683d53[_0x5aca6e(0x154)],_0x120dec['FIWKs'])?_0x120dec['FIWKs']:_0x120dec[_0x5aca6e(0x1bb)];else{(_0x120dec[_0x5aca6e(0xd1)](_0x2d8958[_0x5aca6e(0x138)],_0x120dec[_0x5aca6e(0x1bb)])||_0x120dec[_0x5aca6e(0x1b2)](_0x2d8958['result'],_0x120dec[_0x5aca6e(0xe8)])||_0x120dec[_0x5aca6e(0xc6)](_0x2d8958['result'],_0x120dec[_0x5aca6e(0x12d)]))&&(_0x2d8958[_0x5aca6e(0x138)]=_0x120dec[_0x5aca6e(0xe8)]);if(_0x120dec[_0x5aca6e(0x15c)](_0x683d53['status'],_0x120dec[_0x5aca6e(0x1bb)])&&_0x120dec[_0x5aca6e(0xb6)](_0x436e7f[_0x5aca6e(0x19e)],_0x120dec[_0x5aca6e(0xe8)])){const _0xe9e595={};_0xe9e595[_0x5aca6e(0x11b)]=_0x120dec[_0x5aca6e(0xe9)],_0xe9e595[_0x5aca6e(0x11e)]=_0x120dec['xEiKd'],_0x683d53[_0x5aca6e(0x157)]=_0xe9e595,_0x683d53['errors']=[_0x683d53[_0x5aca6e(0x157)]];}}const _0x24abe3=_0x120dec[_0x5aca6e(0xca)](getTestRunIdentifier,_0x436e7f,_0x683d53[_0x5aca6e(0x1a2)]);_0x2d8958[_0x5aca6e(0x14d)]=this['_testHooksMap'][_0x24abe3];const {steps:_0x21390a,logs:_0xe89007}=this[_0x5aca6e(0x1ac)](_0x683d53[_0x5aca6e(0x18d)],_0x1a37b9[_0x5aca6e(0xc1)],_0x120dec[_0x5aca6e(0xc4)]);await MyReporter[_0x5aca6e(0xe1)](_0xe89007);const _0x502a72={};_0x502a72['steps']=_0x21390a,_0x2d8958[_0x5aca6e(0x191)]=_0x502a72;if(_0x683d53['error']){_0x2d8958[_0x5aca6e(0x164)]=_0x120dec[_0x5aca6e(0xf0)](removeAnsiColors,_0x683d53['error'][_0x5aca6e(0x11b)]),_0x2d8958[_0x5aca6e(0xd5)]=_0x120dec[_0x5aca6e(0xc7)](getFailureType,_0x683d53[_0x5aca6e(0x157)][_0x5aca6e(0x11b)]);const _0x5aa51b={};_0x5aa51b['test_run_uuid']=_0x1a37b9[_0x5aca6e(0xc1)];const {failureData:_0x268c63,logs:_0x471361}=_0x120dec[_0x5aca6e(0x166)](getFailureData,_0x683d53[_0x5aca6e(0x143)],_0x5aa51b);if(_0x268c63&&_0x120dec['mqsOK'](_0x268c63[_0x5aca6e(0x12c)],0x0)){const _0x50d37c={};_0x50d37c[_0x5aca6e(0x144)]=[_0x2d8958[_0x5aca6e(0x164)]],_0x50d37c[_0x5aca6e(0xd6)]=[],_0x268c63[_0x5aca6e(0xbd)](_0x50d37c);}_0x2d8958[_0x5aca6e(0x1b6)]=_0x268c63,_0x471361&&_0x120dec[_0x5aca6e(0x171)](_0x471361['length'],0x0)&&await MyReporter[_0x5aca6e(0xe1)](_0x471361);}}let _0x28e8f8=_0x120dec[_0x5aca6e(0xca)](findNestedKey,_0x683d53,_0x120dec[_0x5aca6e(0x1a8)]);if(_0x28e8f8&&_0x120dec[_0x5aca6e(0x17b)](validateFilePath,_0x28e8f8))_0x120dec[_0x5aca6e(0xf0)](debug,_0x5aca6e(0x124)+_0x1a37b9[_0x5aca6e(0xc1)]+_0x5aca6e(0x19c)+_0x28e8f8);else{const _0x2e983b=path[_0x5aca6e(0xed)](helper[_0x5aca6e(0xf3)](),_0x120dec[_0x5aca6e(0xef)]);!fs[_0x5aca6e(0x163)](_0x2e983b)&&fs[_0x5aca6e(0x168)](_0x2e983b),fs['existsSync'](path[_0x5aca6e(0xed)](_0x2e983b,_0x5aca6e(0xdc)+_0x1a37b9[_0x5aca6e(0xc1)]+'.txt'))&&(_0x28e8f8=fs[_0x5aca6e(0x1a3)](path[_0x5aca6e(0xed)](_0x2e983b,_0x5aca6e(0xdc)+_0x1a37b9[_0x5aca6e(0xc1)]+'.txt'),_0x120dec[_0x5aca6e(0x128)]),_0x120dec[_0x5aca6e(0x11c)](debug,_0x5aca6e(0x124)+_0x1a37b9[_0x5aca6e(0xc1)]+_0x5aca6e(0x19c)+_0x28e8f8));}const _0x35e7ce={};_0x35e7ce['event_type']=_0x420248,_0x35e7ce[_0x5aca6e(0xf4)]=_0x2d8958;const _0x26161f=_0x35e7ce;_0x28e8f8&&_0x120dec['BXzoP'](_0x28e8f8,'')&&_0x120dec[_0x5aca6e(0xb6)](_0x420248,_0x120dec[_0x5aca6e(0x16d)])&&(!_0x26161f[_0x5aca6e(0x1bd)]&&(_0x26161f['logs']=[]),_0x28e8f8[_0x5aca6e(0x120)]('\x0a')['forEach'](_0x48f473=>{const _0x851b70=_0x5aca6e;_0x48f473&&_0x120dec[_0x851b70(0xf0)](validateFilePath,_0x48f473)&&_0x26161f[_0x851b70(0x1bd)][_0x851b70(0xbd)]({'kind':_0x120dec[_0x851b70(0xba)],'timestamp':new Date()[_0x851b70(0xf5)](),'test_run_uuid':_0x1a37b9[_0x851b70(0xc1)],'file_name':path['basename'](_0x48f473),'file_size':fs[_0x851b70(0x172)](_0x48f473)[_0x851b70(0x107)],'attachment_type':PLAYWRIGHT_TRACE_LOGS});})),await SessionHandler['uploadEventData'](_0x26161f);}[a46_0x574f42(0x180)](_0x11c3e0){const _0x21be85=a46_0x574f42,_0x5a7b48={};_0x5a7b48[_0x21be85(0xbc)]=function(_0x24413c,_0x31dfbd){return _0x24413c===_0x31dfbd;},_0x5a7b48['xtMch']=function(_0x2b0ea6,_0x353269){return _0x2b0ea6>_0x353269;},_0x5a7b48['fREFg']=function(_0x3078e3,_0x3f6b65){return _0x3078e3+_0x3f6b65;},_0x5a7b48[_0x21be85(0x123)]=function(_0x5311f9,_0x4c46fa){return _0x5311f9===_0x4c46fa;},_0x5a7b48[_0x21be85(0xd2)]=function(_0x294c08,_0x53fe5f){return _0x294c08>_0x53fe5f;},_0x5a7b48[_0x21be85(0x149)]=function(_0x2519d8,_0x31820f){return _0x2519d8+_0x31820f;};const _0x231f9e=_0x5a7b48,_0x552048=_0x11c3e0[_0x21be85(0x178)]()[_0x21be85(0xc8)](_0x38e78a=>{const _0x2c6565=_0x21be85;if(_0x11c3e0[_0x2c6565(0x147)]&&_0x231f9e['fIGNQ'](_0x38e78a,_0x11c3e0[_0x2c6565(0x147)]['title'])&&_0x11c3e0[_0x2c6565(0x147)][_0x2c6565(0x112)]&&_0x231f9e[_0x2c6565(0x16b)](_0x11c3e0[_0x2c6565(0x147)][_0x2c6565(0x112)][_0x2c6565(0x12c)],0x0))return _0x231f9e[_0x2c6565(0x148)](_0x231f9e[_0x2c6565(0x148)](_0x38e78a,'\x20'),_0x11c3e0['parent'][_0x2c6565(0x112)][_0x2c6565(0xed)]('\x20'));if(_0x231f9e[_0x2c6565(0x123)](_0x38e78a,_0x11c3e0[_0x2c6565(0x115)])&&_0x11c3e0['_tags']&&_0x231f9e[_0x2c6565(0xd2)](_0x11c3e0[_0x2c6565(0x112)][_0x2c6565(0x12c)],0x0))return _0x231f9e[_0x2c6565(0x148)](_0x231f9e[_0x2c6565(0x149)](_0x38e78a,'\x20'),_0x11c3e0[_0x2c6565(0x112)]['join']('\x20'));return _0x38e78a;})[_0x21be85(0xed)]('\x20');return _0x552048;}static async[a46_0x574f42(0x184)](_0x32d172,_0x3d5898){const _0x3ae8b0=a46_0x574f42,_0x26d12e={'YiUse':function(_0x3d1b34,_0x5cf498){return _0x3d1b34(_0x5cf498);},'Pcbde':'CBTSessionCreated'},_0x246596={'uuid':TestDetails[_0x3ae8b0(0x116)](_0x32d172),'integrations':_0x3d5898},_0x31192c={};_0x31192c[_0x3ae8b0(0xe7)]=null,_0x26d12e['YiUse'](debug,_0x3ae8b0(0xe6)+_0x32d172+',\x20'+util[_0x3ae8b0(0x155)](_0x3d5898,_0x31192c));const _0x40ef1d={};_0x40ef1d[_0x3ae8b0(0x13a)]=_0x26d12e[_0x3ae8b0(0xd0)],_0x40ef1d['test_run']=_0x246596,await SessionHandler[_0x3ae8b0(0x193)](_0x40ef1d);}async['configureGit'](){const _0x53c717=a46_0x574f42,_0x1b298c={'SkBkM':function(_0x251048){return _0x251048();}};if(this[_0x53c717(0xde)])return;const _0x34cd8e=await _0x1b298c[_0x53c717(0x18c)](getGitMetaData);_0x34cd8e&&(this['_gitConfigPath']=_0x34cd8e[_0x53c717(0x1a4)]),this[_0x53c717(0xde)]=!![];}['getHierarchy'](_0x4f6134){const _0x40b11f=a46_0x574f42,_0x5659d3={};_0x5659d3['hNBDK']=function(_0x111e26,_0xcf3d9a){return _0x111e26!==_0xcf3d9a;};const _0xa1c2bf=_0x5659d3,_0x48062f=[];if(_0x4f6134&&_0x4f6134[_0x40b11f(0x147)]){let _0x12c98d=_0x4f6134[_0x40b11f(0x147)];while(_0x12c98d&&_0xa1c2bf['hNBDK'](_0x12c98d[_0x40b11f(0x115)],'')){_0x48062f[_0x40b11f(0xbd)](_0x12c98d[_0x40b11f(0x115)]),_0x12c98d=_0x12c98d[_0x40b11f(0x147)];}}return _0x48062f[_0x40b11f(0x118)]()[_0x40b11f(0x176)](0x0,0x2),_0x48062f;}[a46_0x574f42(0xdb)](_0x337ba0){const _0xd32a8e=a46_0x574f42,_0x4e82f6={};_0x4e82f6[_0xd32a8e(0xe3)]=function(_0x4a7dfe,_0x1c9126){return _0x4a7dfe!==_0x1c9126;},_0x4e82f6[_0xd32a8e(0x185)]=_0xd32a8e(0x110),_0x4e82f6[_0xd32a8e(0x1a1)]=function(_0x349b1f,_0x33473c){return _0x349b1f===_0x33473c;},_0x4e82f6['SDCcL']='beforeEach\x20hook',_0x4e82f6['Iftnm']=_0xd32a8e(0x131),_0x4e82f6[_0xd32a8e(0x167)]='afterAll\x20hook',_0x4e82f6[_0xd32a8e(0xd3)]='afterEach\x20hook';const _0x38c31c=_0x4e82f6;if(_0x38c31c[_0xd32a8e(0xe3)](_0x337ba0[_0xd32a8e(0xc2)],_0x38c31c[_0xd32a8e(0x185)]))return![];if(_0x38c31c[_0xd32a8e(0x1a1)]([_0x38c31c[_0xd32a8e(0xfa)],_0x38c31c['Iftnm'],_0x38c31c[_0xd32a8e(0x167)],_0x38c31c[_0xd32a8e(0xd3)]][_0xd32a8e(0x16f)](_0x337ba0['title']),-0x1))return![];return!![];}[a46_0x574f42(0x159)](_0x362352,_0x256d8a){const _0x15766=a46_0x574f42,_0x47ab9a={'bickn':function(_0x481a83,_0x5d92db){return _0x481a83(_0x5d92db);}},_0x46a2ef=_0x256d8a['_bs_hookIdentifier'];if(_0x46a2ef)return _0x46a2ef;return _0x256d8a[_0x15766(0x115)]+'\x20for\x20'+_0x47ab9a[_0x15766(0x1ba)](getTestIdentifier,_0x362352);}[a46_0x574f42(0xb9)](_0x1260d5,_0x35e465){const _0x5c934c=a46_0x574f42,_0x10e87a={'kMwYz':function(_0x131b99,_0x4d06b7){return _0x131b99(_0x4d06b7);},'EOALd':function(_0x110059){return _0x110059();}};let _0x4a8d22=_0x35e465[_0x5c934c(0x115)]+'\x20for\x20'+_0x10e87a[_0x5c934c(0x165)](getTestIdentifier,_0x1260d5);return this['_tests'][_0x4a8d22]&&(_0x4a8d22=_0x4a8d22+'\x20-\x20'+_0x10e87a[_0x5c934c(0xfb)](uuidv4)),_0x35e465['_bs_hookIdentifier']=_0x4a8d22,_0x4a8d22;}[a46_0x574f42(0x12e)]=_0x117f99=>{const _0x4bfd2a=a46_0x574f42,_0x1b8047={};_0x1b8047['fGUoo']=_0x4bfd2a(0x198),_0x1b8047[_0x4bfd2a(0xfe)]=_0x4bfd2a(0xdd),_0x1b8047['rTIOn']=_0x4bfd2a(0x131),_0x1b8047[_0x4bfd2a(0x18a)]=_0x4bfd2a(0x1a5),_0x1b8047['CUrzU']='afterEach\x20hook',_0x1b8047['uFome']=_0x4bfd2a(0xea),_0x1b8047['jHSSo']=_0x4bfd2a(0x194),_0x1b8047['aXvoq']=_0x4bfd2a(0x1af),_0x1b8047['Hofcw']=_0x4bfd2a(0x179);const _0x5c4566=_0x1b8047;if(_0x117f99[_0x4bfd2a(0x14b)](_0x5c4566[_0x4bfd2a(0xcf)]))return _0x5c4566[_0x4bfd2a(0xfe)];else{if(_0x117f99[_0x4bfd2a(0x14b)](_0x5c4566[_0x4bfd2a(0x127)]))return _0x5c4566[_0x4bfd2a(0x18a)];else{if(_0x117f99['startsWith'](_0x5c4566[_0x4bfd2a(0x142)]))return _0x5c4566['uFome'];else{if(_0x117f99['startsWith'](_0x5c4566['jHSSo']))return _0x5c4566[_0x4bfd2a(0x17c)];}}}return _0x5c4566[_0x4bfd2a(0x103)];};['getScope']=_0x45895e=>{const _0x37cfb4=a46_0x574f42,_0x1a1215={};_0x1a1215[_0x37cfb4(0x111)]=function(_0x3c4868,_0x24e1ab){return _0x3c4868===_0x24e1ab;},_0x1a1215[_0x37cfb4(0x126)]='object';const _0x885b25=_0x1a1215;let _0x2965fd=_0x45895e[_0x37cfb4(0x147)];return _0x885b25[_0x37cfb4(0x111)](typeof _0x45895e['parent'],_0x885b25[_0x37cfb4(0x126)])&&(_0x2965fd=_0x2965fd[_0x37cfb4(0x115)]),_0x2965fd+_0x37cfb4(0x11d)+_0x45895e['title'];};['printsToStdio'](){return![];}}module[a46_0x574f42(0xf2)]=o11yClassErrorHandler(MyReporter,[a46_0x574f42(0x10a),a46_0x574f42(0xbf),'onTestBegin',a46_0x574f42(0x15b),a46_0x574f42(0x17d),a46_0x574f42(0x106),a46_0x574f42(0x184)],a46_0x574f42(0x1b8));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a47_0x21cf6f=a47_0x58dc;(function(_0x5227f2,_0x52024b){const _0x370d5d=a47_0x58dc,_0x4f51be=_0x5227f2();while(!![]){try{const _0x2215d1=-parseInt(_0x370d5d(0x117))/0x1*(parseInt(_0x370d5d(0xfa))/0x2)+-parseInt(_0x370d5d(0x11e))/0x3*(-parseInt(_0x370d5d(0x12c))/0x4)+-parseInt(_0x370d5d(0x132))/0x5+-parseInt(_0x370d5d(0xf1))/0x6+-parseInt(_0x370d5d(0xfd))/0x7+parseInt(_0x370d5d(0x11c))/0x8*(-parseInt(_0x370d5d(0xfb))/0x9)+-parseInt(_0x370d5d(0x14b))/0xa*(-parseInt(_0x370d5d(0x135))/0xb);if(_0x2215d1===_0x52024b)break;else _0x4f51be['push'](_0x4f51be['shift']());}catch(_0x564390){_0x4f51be['push'](_0x4f51be['shift']());}}}(a47_0x85c1,0x1dcaf));const fs=require('fs'),path=require(a47_0x21cf6f(0x120)),{v4:uuidv4}=require(a47_0x21cf6f(0xff)),{TEMP_STORE_DIR_NAME}=require('../../../helpers/test-observability/constants'),{nestedKeyValue}=require(a47_0x21cf6f(0x10b)),logger=require(a47_0x21cf6f(0x105))['winstonLogger'],{getLogDir}=require(a47_0x21cf6f(0x105)),util=require(a47_0x21cf6f(0x149)),helper=require(a47_0x21cf6f(0x10b));class TestDetails{static [a47_0x21cf6f(0x11d)]={};static[a47_0x21cf6f(0x110)](){const _0x637db9=a47_0x21cf6f;this['shutdown']();const _0x5be3d2={};_0x5be3d2[_0x637db9(0xf6)]=!![],fs[_0x637db9(0x13a)](this[_0x637db9(0xf7)](),_0x5be3d2);const _0x48bd1f={};_0x48bd1f[_0x637db9(0xf6)]=!![],fs[_0x637db9(0x13a)](this[_0x637db9(0x12b)](),_0x48bd1f);}static[a47_0x21cf6f(0x139)](){const _0x1aba17=a47_0x21cf6f,_0x44622a={};_0x44622a['sspAU']=function(_0x4509c2,_0x1de231){return _0x4509c2+_0x1de231;},_0x44622a[_0x1aba17(0x137)]=function(_0x4bc391,_0x9b3c70){return _0x4bc391+_0x9b3c70;};const _0x88b690=_0x44622a;return _0x88b690[_0x1aba17(0x10a)](_0x88b690[_0x1aba17(0x137)](TEMP_STORE_DIR_NAME,'-'),process[_0x1aba17(0x111)]['BS_TESTOPS_BUILD_HASHED_ID']);}static[a47_0x21cf6f(0x13f)](){const _0x23575c=a47_0x21cf6f,_0x1e813d={};_0x1e813d['ZGBYW']=function(_0x41f377,_0x1a1894){return _0x41f377+_0x1a1894;},_0x1e813d[_0x23575c(0x124)]=_0x23575c(0x130);const _0x18cf44=_0x1e813d;return path[_0x23575c(0x112)](_0x18cf44[_0x23575c(0x126)](_0x18cf44[_0x23575c(0x126)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x23575c(0x122)]||_0x18cf44['jfxOI']));}static[a47_0x21cf6f(0x12b)](){const _0x1d1b55=a47_0x21cf6f,_0x16d9e9={};_0x16d9e9['rjZoe']=_0x1d1b55(0x13b);const _0x107bb7=_0x16d9e9;return path['join'](this[_0x1d1b55(0x13f)](),_0x107bb7['rjZoe']);}static[a47_0x21cf6f(0xf7)](){const _0x5aa887=a47_0x21cf6f;return TestDetails[_0x5aa887(0x139)]();}static[a47_0x21cf6f(0x100)](_0x4b5688){const _0xfbe762=a47_0x21cf6f,_0x3caee2={};_0x3caee2['KjhIs']=function(_0x56d5ff,_0x5f16dc){return _0x56d5ff+_0x5f16dc;},_0x3caee2[_0xfbe762(0x129)]=_0xfbe762(0x109);const _0x339225=_0x3caee2;return path[_0xfbe762(0x112)](this['getDirPath'](),_0x339225[_0xfbe762(0x12f)](_0x4b5688,_0x339225[_0xfbe762(0x129)]));}static[a47_0x21cf6f(0x14c)](_0x2c0066){const _0x315e3f=a47_0x21cf6f,_0x3a04f2={};_0x3a04f2[_0x315e3f(0x10c)]=function(_0x28b610,_0x189324){return _0x28b610+_0x189324;},_0x3a04f2[_0x315e3f(0x102)]=function(_0x3b6cc3,_0x3fd2fb){return _0x3b6cc3+_0x3fd2fb;},_0x3a04f2[_0x315e3f(0x119)]=function(_0x57c2bf,_0x39bf9e){return _0x57c2bf+_0x39bf9e;};const _0x5572a8=_0x3a04f2;return _0x5572a8[_0x315e3f(0x10c)](_0x5572a8[_0x315e3f(0x102)](_0x5572a8[_0x315e3f(0x119)](_0x5572a8[_0x315e3f(0x10c)](this[_0x315e3f(0x131)](_0x2c0066),'-'),this[_0x315e3f(0xee)](_0x2c0066)),'-'),_0x2c0066[_0x315e3f(0x10e)]);}static[a47_0x21cf6f(0x131)](_0x441a60){const _0x219fef=a47_0x21cf6f,_0x353913={'bGKPX':function(_0x2fecb9,_0x314df7,_0x4b2f61){return _0x2fecb9(_0x314df7,_0x4b2f61);},'yIhhe':'_test','nfRjU':_0x219fef(0xf3),'AhmnD':function(_0x3f2c47,_0x5c951a,_0x45713b){return _0x3f2c47(_0x5c951a,_0x45713b);},'cvtEA':'project','jbYPL':_0x219fef(0x134)};return _0x353913[_0x219fef(0x145)](nestedKeyValue,_0x441a60,[_0x353913[_0x219fef(0x13e)],_0x353913[_0x219fef(0xf5)]])||_0x353913[_0x219fef(0x114)](nestedKeyValue,_0x441a60,[_0x353913[_0x219fef(0xfe)],_0x353913[_0x219fef(0x118)]]);}static[a47_0x21cf6f(0xee)](_0x405bc4){const _0x163a01=a47_0x21cf6f,_0x489413={'gJXmF':function(_0x4dce34,_0x480360,_0x5702b6){return _0x4dce34(_0x480360,_0x5702b6);},'PGsxy':_0x163a01(0x13d)};return _0x489413[_0x163a01(0xed)](nestedKeyValue,_0x405bc4,[_0x489413[_0x163a01(0x128)],'id'])||_0x405bc4[_0x163a01(0x12e)];}static['getTestUUID'](_0x2b074c){const _0x14d24b=a47_0x21cf6f,_0x40f70e={'ifLQh':function(_0x39ffae,_0x588648){return _0x39ffae===_0x588648;},'pLKRi':_0x14d24b(0xf2),'Hkmet':function(_0x38cbb1){return _0x38cbb1();}};if(this[_0x14d24b(0x11d)][_0x2b074c]&&_0x40f70e[_0x14d24b(0x144)](typeof this[_0x14d24b(0x11d)][_0x2b074c][_0x14d24b(0xff)],_0x40f70e[_0x14d24b(0x107)]))return this[_0x14d24b(0x11d)][_0x2b074c]['uuid'];const _0x578206=this[_0x14d24b(0x100)](_0x2b074c);if(_0x578206&&fs[_0x14d24b(0x12a)](_0x578206)){const _0x38ddbb=JSON['parse'](fs[_0x14d24b(0xf8)](_0x578206)[_0x14d24b(0x141)]());return this[_0x14d24b(0x11d)][_0x2b074c]=_0x38ddbb,this[_0x14d24b(0x11d)][_0x2b074c][_0x14d24b(0xff)];}return this[_0x14d24b(0x11d)][_0x2b074c]={'uuid':_0x40f70e[_0x14d24b(0x11a)](uuidv4)},fs[_0x14d24b(0x108)](_0x578206,JSON['stringify'](this[_0x14d24b(0x11d)][_0x2b074c])),this[_0x14d24b(0x11d)][_0x2b074c][_0x14d24b(0xff)];}static[a47_0x21cf6f(0x140)](_0x4a772b){const _0x233d6e=a47_0x21cf6f,_0x2473c8=path[_0x233d6e(0x112)](this['getDirPath'](),_0x4a772b+'_platformDetails.json');if(_0x2473c8&&fs['existsSync'](_0x2473c8))return fs[_0x233d6e(0xf8)](_0x2473c8)[_0x233d6e(0x141)]();}static[a47_0x21cf6f(0x127)](_0x155cc3,_0x3274a7){const _0xb3a3ed=a47_0x21cf6f,_0x682200=path[_0xb3a3ed(0x112)](this['getDirPath'](),_0x3274a7+_0xb3a3ed(0x101));fs['writeFileSync'](_0x682200,_0x155cc3[_0xb3a3ed(0x141)]());}static['shutdown'](){const _0x4ef56a=a47_0x21cf6f,_0x14abad={};_0x14abad['recursive']=!![],_0x14abad['force']=!![],fs[_0x4ef56a(0xec)](this['getDirPath'](),_0x14abad);}static['getTestDetails'](_0x87dc58){const _0x4aefd7=a47_0x21cf6f;if(this['tests'][_0x87dc58])return this['tests'][_0x87dc58];const _0x371731=this['getFilePath'](_0x87dc58);if(_0x371731&&fs['existsSync'](_0x371731)){const _0x494a29=JSON[_0x4aefd7(0x14a)](fs[_0x4aefd7(0xf8)](_0x371731)[_0x4aefd7(0x141)]());return this['tests'][_0x87dc58]=_0x494a29,_0x494a29;}return{};}static['setTestDetails'](_0x42254c,_0x3e6515){const _0x42cfd9=a47_0x21cf6f,_0xea660d=this['getFilePath'](_0x42254c);if(_0xea660d&&fs[_0x42cfd9(0x12a)](_0xea660d)){const _0x504100=JSON[_0x42cfd9(0x14a)](fs['readFileSync'](_0xea660d)[_0x42cfd9(0x141)]()),_0x13aca6={..._0x504100,..._0x3e6515};this[_0x42cfd9(0x11d)][_0x42254c]=_0x13aca6;}else this[_0x42cfd9(0x11d)][_0x42254c]=_0x3e6515;fs[_0x42cfd9(0x108)](_0xea660d,this[_0x42cfd9(0x11d)][_0x42254c]);}static['addTraceFilePath'](_0x1ab023){const _0x4f5753=a47_0x21cf6f,_0x3dda3f={};_0x3dda3f[_0x4f5753(0x116)]='Error\x20handling\x20trace\x20file\x20paths:\x20';const _0x48d262=_0x3dda3f;try{const _0x1f2c44=process[_0x4f5753(0x10d)],_0x4fb661=path['join'](TestDetails[_0x4f5753(0x12b)](),_0x1f2c44+_0x4f5753(0xef));let _0x339053=[];_0x4fb661&&fs[_0x4f5753(0x12a)](_0x4fb661)&&(_0x339053=JSON['parse'](fs[_0x4f5753(0xf8)](_0x4fb661)[_0x4f5753(0x141)]())),!_0x339053[_0x4f5753(0x115)](_0x4e0da5=>_0x4e0da5['filePath']===_0x1ab023[_0x4f5753(0x10f)])&&(_0x339053[_0x4f5753(0x143)](_0x1ab023),fs[_0x4f5753(0x108)](_0x4fb661,JSON[_0x4f5753(0x146)](_0x339053)));}catch(_0x564b0b){logger[_0x4f5753(0x148)](_0x48d262[_0x4f5753(0x116)],_0x564b0b);}}static[a47_0x21cf6f(0xfc)](){const _0x36490e=a47_0x21cf6f,_0x1f29ff={};_0x1f29ff[_0x36490e(0x133)]=_0x36490e(0xef),_0x1f29ff['aDiSq']=_0x36490e(0x136);const _0x449e00=_0x1f29ff,_0x1c3e39=[];try{const _0x363f1c=TestDetails[_0x36490e(0x12b)]();if(_0x363f1c&&!fs['existsSync'](_0x363f1c))return _0x1c3e39;const _0x2c6c97=fs[_0x36490e(0xf0)](_0x363f1c);_0x2c6c97[_0x36490e(0xf9)](_0x12d1e7=>{const _0x379de0=_0x36490e;if(_0x12d1e7&&_0x12d1e7[_0x379de0(0x12d)](_0x449e00[_0x379de0(0x133)])){const _0x488b49=JSON[_0x379de0(0x14a)](fs[_0x379de0(0xf8)](path[_0x379de0(0x112)](_0x363f1c,_0x12d1e7))[_0x379de0(0x141)]());_0x1c3e39[_0x379de0(0x143)](..._0x488b49);}});}catch(_0x36d60f){logger[_0x36490e(0x148)](util['format'](_0x449e00[_0x36490e(0x106)],_0x36d60f));}const _0x52414c={};return _0x1c3e39[_0x36490e(0xf9)](_0x4ca845=>{const _0x53c363=_0x36490e;_0x52414c[_0x4ca845[_0x53c363(0x10f)]]=_0x4ca845;}),Object[_0x36490e(0x138)](_0x52414c);}static[a47_0x21cf6f(0x11f)](_0x221145,_0x197504){const _0x453f25=a47_0x21cf6f,_0x48478b={};_0x48478b[_0x453f25(0x13c)]=_0x453f25(0x123),_0x48478b[_0x453f25(0x142)]=_0x453f25(0x121);const _0x32d76e=_0x48478b;try{const _0x2b8529=path[_0x453f25(0x112)](helper[_0x453f25(0x104)](),_0x32d76e['gnEkp']);if(!fs[_0x453f25(0x12a)](_0x2b8529)){const _0x4e4043={};_0x4e4043[_0x453f25(0xf6)]=!![],fs[_0x453f25(0x13a)](_0x2b8529,_0x4e4043);}fs[_0x453f25(0x11b)](path[_0x453f25(0x112)](_0x2b8529,_0x453f25(0xf4)+_0x197504+_0x453f25(0x147)),_0x221145+'\x0a',_0x32d76e[_0x453f25(0x142)]);}catch(_0x22d8a9){console[_0x453f25(0x148)](_0x453f25(0x103)+_0x22d8a9[_0x453f25(0x125)]);}}}module[a47_0x21cf6f(0x113)]=TestDetails;function a47_0x58dc(_0x28b007,_0x16d033){const _0x85c161=a47_0x85c1();return a47_0x58dc=function(_0x58dc18,_0x536a97){_0x58dc18=_0x58dc18-0xec;let _0x6180fd=_0x85c161[_0x58dc18];return _0x6180fd;},a47_0x58dc(_0x28b007,_0x16d033);}function a47_0x85c1(){const _0x4edf2f=['CMzEF','push','ifLQh','bGKPX','stringify','.txt','error','util','parse','153130vadGBz','getTestRunIdFromTestInfo','rmSync','gJXmF','getTestIdFromTestInfo','_traceZipPaths.json','readdirSync','31002LAkkVn','string','_projectId','trace_','nfRjU','recursive','getDirPath','readFileSync','forEach','62ShseIX','145782Qouvve','getTraceFilePaths','1294230oHYLJz','cvtEA','uuid','getFilePath','_platformDetails.json','JoyVm','Error\x20writing\x20trace\x20file:\x20','homedir','../../../helpers/logger','aDiSq','pLKRi','writeFileSync','.json','sspAU','../../../helpers/helper','iPCHk','pid','retry','filePath','setup','env','join','exports','AhmnD','some','dGYFm','4813tYVNfI','jbYPL','VgRIa','Hkmet','appendFileSync','24uqrpmN','tests','438843lsJyuj','appendToTracePaths','path','utf8','BS_TESTOPS_BUILD_HASHED_ID','.browserstack','jfxOI','message','ZGBYW','setAccessibilityPlatformValidation','PGsxy','Xpslw','existsSync','getTraceZipDir','4OFHsrb','endsWith','testId','KjhIs','default','getProjectIdFromTestInfo','172670jcaTCh','tBQJm','__projectId','286QuErJg','Error\x20reading\x20trace\x20file\x20paths:\x20%s','rNrZI','values','getStoreDirName','mkdirSync','traceZipPaths','gnEkp','_test','yIhhe','getStoreDirPath','getAccessibilityPlatformValidation','toString'];a47_0x85c1=function(){return _0x4edf2f;};return a47_0x85c1();}
|
|
1
|
+
function a47_0x281c(){const _0x551cdb=['trace_','Qglnl','_platformDetails.json','appendToTracePaths','join','traceZipPaths','getDirPath','.json','1301667kZSTFa','2865624czAlcF','20yqwiqC','error','getProjectIdFromTestInfo','xgead','sXICo','eGvXI','qzayS','shutdown','readFileSync','mkdirSync','env','atPib','appendFileSync','setTestDetails','263793oaUupW','64610lSHZFz','getTestRunIdFromTestInfo','../../../helpers/helper','iaDAN','getTestIdFromTestInfo','OFhDa','FCsOf','rmSync','getFilePath','TRavR','Error\x20handling\x20trace\x20file\x20paths:\x20','tests','stringify','PYzho','_projectId','exports','EEBEf','string','LYYyl','some','ZjCsH','nVWNn','GjUGz','Error\x20reading\x20trace\x20file\x20paths:\x20%s','utf8','getTestUUID','36516uBzzcE','getStoreDirName','_traceZipPaths.json','toString','forEach','388836XGcyDl','getStoreDirPath','testId','aolIj','CkWeV','path','uuid','parse','push','279JafegG','__projectId','endsWith','pid','util','getTraceZipDir','Error\x20writing\x20trace\x20file:\x20','nEmzv','../../../helpers/test-observability/constants','getTestDetails','bLEVy','message','getTraceFilePaths','hrKZF','values','UKjPr','existsSync','recursive','writeFileSync','7LEekvq','394490RiTwVj','filePath','BS_TESTOPS_BUILD_HASHED_ID','setAccessibilityPlatformValidation','winstonLogger','bTxuy','getAccessibilityPlatformValidation'];a47_0x281c=function(){return _0x551cdb;};return a47_0x281c();}const a47_0x2d3bf0=a47_0x56a3;(function(_0x31ba4d,_0x29a396){const _0x573daf=a47_0x56a3,_0x5791c9=_0x31ba4d();while(!![]){try{const _0x1161df=parseInt(_0x573daf(0xd6))/0x1+parseInt(_0x573daf(0xd7))/0x2+-parseInt(_0x573daf(0xc6))/0x3+parseInt(_0x573daf(0xf6))/0x4*(-parseInt(_0x573daf(0xc8))/0x5)+-parseInt(_0x573daf(0xf1))/0x6*(parseInt(_0x573daf(0x112))/0x7)+-parseInt(_0x573daf(0xc7))/0x8+parseInt(_0x573daf(0xff))/0x9*(parseInt(_0x573daf(0x113))/0xa);if(_0x1161df===_0x29a396)break;else _0x5791c9['push'](_0x5791c9['shift']());}catch(_0x4d9e43){_0x5791c9['push'](_0x5791c9['shift']());}}}(a47_0x281c,0x510e3));const fs=require('fs'),path=require(a47_0x2d3bf0(0xfb)),{v4:uuidv4}=require(a47_0x2d3bf0(0xfc)),{TEMP_STORE_DIR_NAME}=require(a47_0x2d3bf0(0x107)),{nestedKeyValue}=require(a47_0x2d3bf0(0xd9)),logger=require('../../../helpers/logger')[a47_0x2d3bf0(0x117)],{getLogDir}=require('../../../helpers/logger'),util=require(a47_0x2d3bf0(0x103)),helper=require(a47_0x2d3bf0(0xd9));class TestDetails{static ['tests']={};static['setup'](){const _0x55f0be=a47_0x2d3bf0;this[_0x55f0be(0xcf)]();const _0xd63f33={};_0xd63f33[_0x55f0be(0x110)]=!![],fs[_0x55f0be(0xd1)](this[_0x55f0be(0x120)](),_0xd63f33);const _0x36362a={};_0x36362a['recursive']=!![],fs[_0x55f0be(0xd1)](this[_0x55f0be(0x104)](),_0x36362a);}static[a47_0x2d3bf0(0xf2)](){const _0x152d0c=a47_0x2d3bf0,_0xf3dd66={};_0xf3dd66[_0x152d0c(0xec)]=function(_0x3d4314,_0x5cf70e){return _0x3d4314+_0x5cf70e;};const _0x38a761=_0xf3dd66;return _0x38a761[_0x152d0c(0xec)](_0x38a761[_0x152d0c(0xec)](TEMP_STORE_DIR_NAME,'-'),process[_0x152d0c(0xd2)]['BS_TESTOPS_BUILD_HASHED_ID']);}static[a47_0x2d3bf0(0xf7)](){const _0x1974a7=a47_0x2d3bf0,_0x2fee91={};_0x2fee91[_0x1974a7(0x118)]=function(_0xfe8d62,_0x244ee0){return _0xfe8d62+_0x244ee0;},_0x2fee91[_0x1974a7(0xcd)]=function(_0x2d059a,_0x508e83){return _0x2d059a+_0x508e83;},_0x2fee91[_0x1974a7(0xf9)]='default';const _0x3bd9e9=_0x2fee91;return path[_0x1974a7(0x11e)](_0x3bd9e9[_0x1974a7(0x118)](_0x3bd9e9[_0x1974a7(0xcd)](TEMP_STORE_DIR_NAME,'-'),process[_0x1974a7(0xd2)][_0x1974a7(0x115)]||_0x3bd9e9[_0x1974a7(0xf9)]));}static[a47_0x2d3bf0(0x104)](){const _0xe5db6b=a47_0x2d3bf0,_0x1e2f9d={};_0x1e2f9d['GjUGz']=_0xe5db6b(0x11f);const _0x15b277=_0x1e2f9d;return path[_0xe5db6b(0x11e)](this[_0xe5db6b(0xf7)](),_0x15b277[_0xe5db6b(0xed)]);}static['getDirPath'](){return TestDetails['getStoreDirName']();}static[a47_0x2d3bf0(0xdf)](_0x3b52c8){const _0x180faf=a47_0x2d3bf0,_0xe198e2={};_0xe198e2[_0x180faf(0xe0)]=function(_0x12c57e,_0xa98b86){return _0x12c57e+_0xa98b86;},_0xe198e2[_0x180faf(0xcc)]=_0x180faf(0xc5);const _0x19873e=_0xe198e2;return path[_0x180faf(0x11e)](this[_0x180faf(0x120)](),_0x19873e[_0x180faf(0xe0)](_0x3b52c8,_0x19873e['sXICo']));}static[a47_0x2d3bf0(0xd8)](_0x17d761){const _0x52d141=a47_0x2d3bf0,_0x534470={};_0x534470[_0x52d141(0x10e)]=function(_0x4f02a2,_0x4f76b4){return _0x4f02a2+_0x4f76b4;},_0x534470['OFhDa']=function(_0x26244e,_0x1ab533){return _0x26244e+_0x1ab533;},_0x534470[_0x52d141(0x10c)]=function(_0x41de81,_0x448076){return _0x41de81+_0x448076;};const _0x4ee3a5=_0x534470;return _0x4ee3a5[_0x52d141(0x10e)](_0x4ee3a5[_0x52d141(0xdc)](_0x4ee3a5[_0x52d141(0x10c)](_0x4ee3a5[_0x52d141(0x10c)](this[_0x52d141(0xca)](_0x17d761),'-'),this['getTestIdFromTestInfo'](_0x17d761)),'-'),_0x17d761['retry']);}static[a47_0x2d3bf0(0xca)](_0x5af089){const _0x328cda=a47_0x2d3bf0,_0x4af7e1={'qzayS':function(_0x22449e,_0xaf0df3,_0x49fed1){return _0x22449e(_0xaf0df3,_0x49fed1);},'iaDAN':'_test','EEBEf':_0x328cda(0xe5),'atPib':function(_0x309bf1,_0x537405,_0x7e1db9){return _0x309bf1(_0x537405,_0x7e1db9);},'Qglnl':'project','xgead':_0x328cda(0x100)};return _0x4af7e1[_0x328cda(0xce)](nestedKeyValue,_0x5af089,[_0x4af7e1[_0x328cda(0xda)],_0x4af7e1[_0x328cda(0xe7)]])||_0x4af7e1[_0x328cda(0xd3)](nestedKeyValue,_0x5af089,[_0x4af7e1[_0x328cda(0x11b)],_0x4af7e1[_0x328cda(0xcb)]]);}static[a47_0x2d3bf0(0xdb)](_0x36e5d1){const _0x1370c8=a47_0x2d3bf0,_0x3ceea4={'FCsOf':function(_0x5bb76e,_0x517379,_0x278805){return _0x5bb76e(_0x517379,_0x278805);},'bShPo':'_test'};return _0x3ceea4[_0x1370c8(0xdd)](nestedKeyValue,_0x36e5d1,[_0x3ceea4['bShPo'],'id'])||_0x36e5d1[_0x1370c8(0xf8)];}static[a47_0x2d3bf0(0xf0)](_0x4f4904){const _0x49f692=a47_0x2d3bf0,_0x4b3b7d={'bLEVy':function(_0x365b96,_0x13689c){return _0x365b96===_0x13689c;},'VFCGx':_0x49f692(0xe8),'guNuj':function(_0x565381){return _0x565381();}};if(this[_0x49f692(0xe2)][_0x4f4904]&&_0x4b3b7d[_0x49f692(0x109)](typeof this['tests'][_0x4f4904][_0x49f692(0xfc)],_0x4b3b7d['VFCGx']))return this[_0x49f692(0xe2)][_0x4f4904][_0x49f692(0xfc)];const _0x2ea5da=this[_0x49f692(0xdf)](_0x4f4904);if(_0x2ea5da&&fs[_0x49f692(0x10f)](_0x2ea5da)){const _0x1ecc4a=JSON[_0x49f692(0xfd)](fs[_0x49f692(0xd0)](_0x2ea5da)['toString']());return this['tests'][_0x4f4904]=_0x1ecc4a,this[_0x49f692(0xe2)][_0x4f4904]['uuid'];}return this['tests'][_0x4f4904]={'uuid':_0x4b3b7d['guNuj'](uuidv4)},fs[_0x49f692(0x111)](_0x2ea5da,JSON[_0x49f692(0xe3)](this['tests'][_0x4f4904])),this[_0x49f692(0xe2)][_0x4f4904][_0x49f692(0xfc)];}static[a47_0x2d3bf0(0x119)](_0x56a679){const _0x7ba6ed=a47_0x2d3bf0,_0xf490c5=path[_0x7ba6ed(0x11e)](this[_0x7ba6ed(0x120)](),_0x56a679+_0x7ba6ed(0x11c));if(_0xf490c5&&fs[_0x7ba6ed(0x10f)](_0xf490c5))return fs[_0x7ba6ed(0xd0)](_0xf490c5)[_0x7ba6ed(0xf4)]();}static[a47_0x2d3bf0(0x116)](_0x3ea171,_0x46a71d){const _0x1ba895=a47_0x2d3bf0,_0x4d3923=path['join'](this[_0x1ba895(0x120)](),_0x46a71d+_0x1ba895(0x11c));fs[_0x1ba895(0x111)](_0x4d3923,_0x3ea171[_0x1ba895(0xf4)]());}static[a47_0x2d3bf0(0xcf)](){const _0x3d03e8=a47_0x2d3bf0,_0x40c35b={};_0x40c35b['recursive']=!![],_0x40c35b['force']=!![],fs[_0x3d03e8(0xde)](this[_0x3d03e8(0x120)](),_0x40c35b);}static[a47_0x2d3bf0(0x108)](_0x2e2859){const _0x43c4ac=a47_0x2d3bf0;if(this['tests'][_0x2e2859])return this['tests'][_0x2e2859];const _0x5e8815=this[_0x43c4ac(0xdf)](_0x2e2859);if(_0x5e8815&&fs[_0x43c4ac(0x10f)](_0x5e8815)){const _0x5c510c=JSON[_0x43c4ac(0xfd)](fs[_0x43c4ac(0xd0)](_0x5e8815)[_0x43c4ac(0xf4)]());return this[_0x43c4ac(0xe2)][_0x2e2859]=_0x5c510c,_0x5c510c;}return{};}static[a47_0x2d3bf0(0xd5)](_0x33049e,_0x40863a){const _0x1b5971=a47_0x2d3bf0,_0x563ab4=this['getFilePath'](_0x33049e);if(_0x563ab4&&fs[_0x1b5971(0x10f)](_0x563ab4)){const _0x7fb2b6=JSON['parse'](fs[_0x1b5971(0xd0)](_0x563ab4)[_0x1b5971(0xf4)]()),_0x63a7c3={..._0x7fb2b6,..._0x40863a};this[_0x1b5971(0xe2)][_0x33049e]=_0x63a7c3;}else this[_0x1b5971(0xe2)][_0x33049e]=_0x40863a;fs['writeFileSync'](_0x563ab4,this[_0x1b5971(0xe2)][_0x33049e]);}static['addTraceFilePath'](_0x3ed127){const _0x1e5cdd=a47_0x2d3bf0,_0x333bda={};_0x333bda[_0x1e5cdd(0xe9)]=_0x1e5cdd(0xe1);const _0x2f9392=_0x333bda;try{const _0x4ef72e=process[_0x1e5cdd(0x102)],_0x1e415f=path[_0x1e5cdd(0x11e)](TestDetails[_0x1e5cdd(0x104)](),_0x4ef72e+_0x1e5cdd(0xf3));let _0x5d80f3=[];_0x1e415f&&fs['existsSync'](_0x1e415f)&&(_0x5d80f3=JSON[_0x1e5cdd(0xfd)](fs[_0x1e5cdd(0xd0)](_0x1e415f)[_0x1e5cdd(0xf4)]())),!_0x5d80f3[_0x1e5cdd(0xea)](_0x4a7d21=>_0x4a7d21[_0x1e5cdd(0x114)]===_0x3ed127[_0x1e5cdd(0x114)])&&(_0x5d80f3['push'](_0x3ed127),fs[_0x1e5cdd(0x111)](_0x1e415f,JSON['stringify'](_0x5d80f3)));}catch(_0x718278){logger['error'](_0x2f9392['LYYyl'],_0x718278);}}static[a47_0x2d3bf0(0x10b)](){const _0x40000c=a47_0x2d3bf0,_0x3d416b={};_0x3d416b[_0x40000c(0xe4)]=_0x40000c(0xf3),_0x3d416b[_0x40000c(0x106)]=_0x40000c(0xee);const _0x557597=_0x3d416b,_0x24d17a=[];try{const _0x489613=TestDetails[_0x40000c(0x104)]();if(_0x489613&&!fs[_0x40000c(0x10f)](_0x489613))return _0x24d17a;const _0x332fab=fs['readdirSync'](_0x489613);_0x332fab[_0x40000c(0xf5)](_0x149cd7=>{const _0x464e15=_0x40000c;if(_0x149cd7&&_0x149cd7[_0x464e15(0x101)](_0x557597['PYzho'])){const _0x5dc9c=JSON['parse'](fs[_0x464e15(0xd0)](path[_0x464e15(0x11e)](_0x489613,_0x149cd7))[_0x464e15(0xf4)]());_0x24d17a[_0x464e15(0xfe)](..._0x5dc9c);}});}catch(_0x2c8014){logger[_0x40000c(0xc9)](util['format'](_0x557597[_0x40000c(0x106)],_0x2c8014));}const _0x2c9c85={};return _0x24d17a[_0x40000c(0xf5)](_0x38b750=>{const _0x5b2970=_0x40000c;_0x2c9c85[_0x38b750[_0x5b2970(0x114)]]=_0x38b750;}),Object[_0x40000c(0x10d)](_0x2c9c85);}static[a47_0x2d3bf0(0x11d)](_0x1d6785,_0x494733){const _0x31d353=a47_0x2d3bf0,_0x203946={};_0x203946[_0x31d353(0xeb)]='.browserstack',_0x203946['CkWeV']=_0x31d353(0xef);const _0x4f5308=_0x203946;try{const _0x2a6c34=path[_0x31d353(0x11e)](helper['homedir'](),_0x4f5308[_0x31d353(0xeb)]);if(!fs[_0x31d353(0x10f)](_0x2a6c34)){const _0x11c659={};_0x11c659[_0x31d353(0x110)]=!![],fs[_0x31d353(0xd1)](_0x2a6c34,_0x11c659);}fs[_0x31d353(0xd4)](path[_0x31d353(0x11e)](_0x2a6c34,_0x31d353(0x11a)+_0x494733+'.txt'),_0x1d6785+'\x0a',_0x4f5308[_0x31d353(0xfa)]);}catch(_0x5eaf6c){console[_0x31d353(0xc9)](_0x31d353(0x105)+_0x5eaf6c[_0x31d353(0x10a)]);}}}function a47_0x56a3(_0x2a8b76,_0x47f023){const _0x281c28=a47_0x281c();return a47_0x56a3=function(_0x56a39f,_0x293241){_0x56a39f=_0x56a39f-0xc5;let _0x3de040=_0x281c28[_0x56a39f];return _0x3de040;},a47_0x56a3(_0x2a8b76,_0x47f023);}module[a47_0x2d3bf0(0xe6)]=TestDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a48_0x44afcc=a48_0x4756;function a48_0x4756(_0x2e2c6e,_0x2028c5){const _0x43fa58=a48_0x43fa();return a48_0x4756=function(_0x475652,_0x2778bc){_0x475652=_0x475652-0xbf;let _0x36395b=_0x43fa58[_0x475652];return _0x36395b;},a48_0x4756(_0x2e2c6e,_0x2028c5);}(function(_0x27e64d,_0x1f9f6b){const _0x1433d6=a48_0x4756,_0x36997d=_0x27e64d();while(!![]){try{const _0x662e1c=parseInt(_0x1433d6(0x11c))/0x1*(parseInt(_0x1433d6(0x144))/0x2)+-parseInt(_0x1433d6(0x16b))/0x3+-parseInt(_0x1433d6(0xed))/0x4+-parseInt(_0x1433d6(0x123))/0x5*(parseInt(_0x1433d6(0xf4))/0x6)+parseInt(_0x1433d6(0xcd))/0x7+parseInt(_0x1433d6(0x172))/0x8+parseInt(_0x1433d6(0x121))/0x9;if(_0x662e1c===_0x1f9f6b)break;else _0x36997d['push'](_0x36997d['shift']());}catch(_0x3602e5){_0x36997d['push'](_0x36997d['shift']());}}}(a48_0x43fa,0xf1094));const path=require(a48_0x44afcc(0x161)),url=require(a48_0x44afcc(0xd6)),util=require('util'),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule}=require(a48_0x44afcc(0x158)),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),{debug,getPlatformDetails}=require(a48_0x44afcc(0x16d)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a48_0x44afcc(0x14b)),logger=require(a48_0x44afcc(0x105))[a48_0x44afcc(0xef)],scripts=require(a48_0x44afcc(0x10e)),{browserStackExecuteDriver}=require('../../bin/playwright/accessibility-helper'),AccessibilityHelper=require(a48_0x44afcc(0x14c)),constants=require(a48_0x44afcc(0xe5)),BrowserstackCLI=require(a48_0x44afcc(0x112)),AutomationFrameworkState=require(a48_0x44afcc(0x10b)),HookState=require(a48_0x44afcc(0x13c)),getBrowserNameFromChannel=_0x210865=>{const _0x4d2ee8=a48_0x44afcc,_0x1d080b={};_0x1d080b[_0x4d2ee8(0x135)]=_0x4d2ee8(0xff),_0x1d080b['NKitU']='edge',_0x1d080b[_0x4d2ee8(0x138)]='firefox',_0x1d080b[_0x4d2ee8(0x157)]=_0x4d2ee8(0x13d);const _0x5a886d=_0x1d080b;if(_0x210865[_0x4d2ee8(0x151)](_0x5a886d[_0x4d2ee8(0x135)]))return _0x5a886d[_0x4d2ee8(0x135)];if(_0x210865['includes'](_0x5a886d[_0x4d2ee8(0x12d)]))return _0x5a886d[_0x4d2ee8(0x12d)];if(_0x210865[_0x4d2ee8(0x151)](_0x5a886d[_0x4d2ee8(0x138)]))return _0x5a886d[_0x4d2ee8(0x138)];if(_0x210865[_0x4d2ee8(0x151)](_0x5a886d[_0x4d2ee8(0x157)]))return _0x5a886d[_0x4d2ee8(0x157)];},getBrowserFromWSEndpoint=_0x123652=>{const _0x1488af=a48_0x44afcc,_0x5e6b14={'uZazS':_0x1488af(0xff),'SzWSl':function(_0x24980c,_0x4ddfc0){return _0x24980c(_0x4ddfc0);}};try{const _0x4c3e18=url[_0x1488af(0xfe)](_0x123652),_0x5a630f=new URLSearchParams(_0x4c3e18['query']),_0x2e9126=Object[_0x1488af(0xd9)](_0x5a630f[_0x1488af(0xe0)]()),_0x3c8c7e=JSON[_0x1488af(0xfe)](_0x2e9126[_0x1488af(0x108)]);if(_0x3c8c7e&&(_0x3c8c7e[_0x1488af(0xfb)]||_0x3c8c7e[_0x1488af(0x167)]))return _0x3c8c7e[_0x1488af(0xfb)]||_0x3c8c7e['browserName'];return _0x5e6b14[_0x1488af(0x169)];}catch(_0x40151f){_0x5e6b14[_0x1488af(0x126)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x40151f[_0x1488af(0x118)]());}},getCloudProviderFromWsEndpoint=_0x26dd05=>{const _0x1d5295=a48_0x44afcc,_0xa86072={};_0xa86072['rDbWB']=_0x1d5295(0x171),_0xa86072[_0x1d5295(0xd4)]=_0x1d5295(0x168);const _0x37e491=_0xa86072;if(_0x26dd05[_0x1d5295(0x151)](constants[_0x1d5295(0xf0)])||_0x26dd05['includes'](constants['BSTACK_ATS_URL']))return _0x37e491[_0x1d5295(0x162)];return _0x37e491[_0x1d5295(0xd4)];},a48_0x373958={};a48_0x373958[a48_0x44afcc(0x14e)]=undefined,a48_0x373958['bsSessionId']=undefined,a48_0x373958[a48_0x44afcc(0xfb)]=undefined,a48_0x373958[a48_0x44afcc(0x154)]=undefined,a48_0x373958['platform']=undefined,a48_0x373958['platform_version']=undefined,a48_0x373958[a48_0x44afcc(0xe6)]=undefined,a48_0x373958[a48_0x44afcc(0x16c)]={};class PlaywrightSessionDetails{static [a48_0x44afcc(0xe7)]=a48_0x373958;constructor(){const _0x21f071=a48_0x44afcc,_0x233ca4={};_0x233ca4[_0x21f071(0xf1)]=_0x21f071(0x15e);const _0x19077d=_0x233ca4;throw new Error(_0x19077d[_0x21f071(0xf1)]);}static ['sessionError']=null;static[a48_0x44afcc(0xe8)](_0x5bf05c,_0x45a555,_0x5bca69=null){const _0x4b86b6=a48_0x44afcc,_0x12631c={'TzJWM':function(_0x3a8268,_0x5b313f){return _0x3a8268===_0x5b313f;},'ulvix':_0x4b86b6(0x15f),'BsmZP':_0x4b86b6(0xf9),'VuYFX':function(_0x3a77a5,_0x227541){return _0x3a77a5===_0x227541;},'NImDW':'Device\x20Model\x20is\x20not\x20available','NHYKt':_0x4b86b6(0xd2),'bsHNx':function(_0x58cc5a,_0x5a018c,_0x319ba7){return _0x58cc5a(_0x5a018c,_0x319ba7);},'mLepZ':_0x4b86b6(0x11e),'jjkjn':_0x4b86b6(0xc6),'bUXCD':function(_0x24925c,_0x32fb99,_0x4c09c5){return _0x24925c(_0x32fb99,_0x4c09c5);},'wUOMm':_0x4b86b6(0x165),'MMyQX':_0x4b86b6(0xc1),'uVBbt':_0x4b86b6(0x10f),'RBxHz':function(_0x2f88f9,_0x36510f){return _0x2f88f9(_0x36510f);},'xNQhq':_0x4b86b6(0x171),'CsTeR':_0x4b86b6(0x16f),'gsmtK':'automate','VRfQd':function(_0x3f0b07,_0x323a9e){return _0x3f0b07(_0x323a9e);},'koOjh':function(_0x3ded7b,_0x5982e0){return _0x3ded7b+_0x5982e0;},'tAKbf':_0x4b86b6(0x103),'HrXjQ':function(_0x40e791){return _0x40e791();},'pygDT':'setupBrowserDetails'},_0x27e997=this;return _0x12631c[_0x4b86b6(0x146)](o11yErrorHandler,async function _0x375ed9(_0x4701ed,_0x421af8,_0x464b48=null){const _0x2c2881=_0x4b86b6;let _0x4b4fd0=_0x4701ed['_name'],_0x549587=null;_0x4701ed&&_0x12631c[_0x2c2881(0xc4)](typeof _0x4701ed[_0x2c2881(0xe3)],_0x12631c[_0x2c2881(0x10d)])?_0x549587=_0x4701ed[_0x2c2881(0xe3)]():logger[_0x2c2881(0x131)](_0x12631c['BsmZP']);let _0x1a897f=null;_0x4701ed&&_0x12631c[_0x2c2881(0xfd)](typeof _0x4701ed[_0x2c2881(0x163)],_0x12631c['ulvix'])?_0x1a897f=_0x4701ed[_0x2c2881(0x163)]():logger[_0x2c2881(0x131)](_0x12631c[_0x2c2881(0x160)]);let _0xbc8000=null,_0x39b69e=null,_0x14b8d3=null,_0x6e2fb9=_0x12631c[_0x2c2881(0x14f)];if(_0x4701ed['_connection'][_0x2c2881(0xde)]()||global['accessibilityPlatform']){let _0x1e4895=null;_0x12631c[_0x2c2881(0x146)](nestedKeyValue,_0x4701ed,[_0x12631c[_0x2c2881(0xf6)],_0x12631c[_0x2c2881(0x10c)]])?_0x1e4895=_0x4701ed[_0x2c2881(0x11e)][_0x2c2881(0xc6)]:_0x1e4895=_0x12631c[_0x2c2881(0x12f)](nestedKeyValue,_0x421af8,[_0x12631c[_0x2c2881(0xe2)],_0x12631c[_0x2c2881(0xdf)],_0x12631c[_0x2c2881(0x14a)]]);const _0x23dae4=_0x464b48||_0x1e4895&&_0x1e4895[_0x2c2881(0x164)];_0x23dae4&&(_0x6e2fb9=_0x12631c[_0x2c2881(0xd0)](getCloudProviderFromWsEndpoint,_0x23dae4),_0x12631c[_0x2c2881(0xfd)](_0x6e2fb9,_0x12631c['xNQhq'])&&(_0x14b8d3=constants[_0x2c2881(0xbf)][_0x2c2881(0x133)](_0x23dae4)?_0x12631c[_0x2c2881(0xd1)]:_0x12631c[_0x2c2881(0x111)],_0x4b4fd0=_0x12631c[_0x2c2881(0x170)](getBrowserFromWSEndpoint,_0x23dae4)||_0x4b4fd0,_0xbc8000=_0x27e997[_0x2c2881(0xe7)][_0x2c2881(0x156)],_0x39b69e=_0x27e997['currentSessionDetails'][_0x2c2881(0x153)]));}else{_0x421af8&&_0x421af8[_0x2c2881(0x165)]['use'][_0x2c2881(0xe1)]?_0x4b4fd0=_0x12631c[_0x2c2881(0x170)](getBrowserNameFromChannel,_0x421af8[_0x2c2881(0x165)][_0x2c2881(0xc1)][_0x2c2881(0xe1)]):_0x4b4fd0=_0x12631c['koOjh'](_0x12631c[_0x2c2881(0x122)],_0x4b4fd0[_0x2c2881(0x139)]());const _0x5bdcd5=await _0x12631c[_0x2c2881(0x130)](getPlatformDetails);_0xbc8000=_0x5bdcd5[_0x2c2881(0x16e)],_0x39b69e=_0x5bdcd5[_0x2c2881(0x114)];}const _0x44f07d={};_0x44f07d[_0x2c2881(0xfb)]=_0x4b4fd0,_0x44f07d[_0x2c2881(0x154)]=_0x549587,_0x44f07d[_0x2c2881(0x16c)]={},_0x44f07d[_0x2c2881(0x156)]=_0xbc8000,_0x44f07d['platform_version']=_0x39b69e,_0x44f07d[_0x2c2881(0xe6)]=_0x14b8d3;const _0x29ca90=_0x44f07d;_0x1a897f&&(_0x29ca90[_0x2c2881(0x16c)][_0x2c2881(0xf8)]=_0x1a897f);const _0x21bc16={};_0x21bc16['cloudProvider']=_0x6e2fb9,_0x27e997[_0x2c2881(0xe7)]=Object[_0x2c2881(0xcf)]({},_0x27e997[_0x2c2881(0xe7)],_0x21bc16,_0x29ca90);},_0x12631c['pygDT'])(_0x5bf05c,_0x45a555,_0x5bca69);}static[a48_0x44afcc(0x141)](){const _0x3baf95=a48_0x44afcc;this[_0x3baf95(0x128)](),this[_0x3baf95(0xec)]();}static[a48_0x44afcc(0x128)](){const _0x3638e3=a48_0x44afcc,_0x27c3a8={'hptFZ':function(_0x51e007,_0x2f8367,_0x5ed75b){return _0x51e007(_0x2f8367,_0x5ed75b);},'uxubs':_0x3638e3(0xda),'ohtgN':_0x3638e3(0x109),'IMjYv':_0x3638e3(0xea),'HGJrF':function(_0x26ef63,_0x34f0dd,_0x457b00){return _0x26ef63(_0x34f0dd,_0x457b00);},'szwkO':_0x3638e3(0x116),'xmWIU':_0x3638e3(0xfc),'pZcln':function(_0x45d592,_0xdc7526){return _0x45d592===_0xdc7526;},'KmfRd':_0x3638e3(0x14d),'CNsQv':function(_0x462134,_0x4aadb1,_0x486f67,_0x25c76e){return _0x462134(_0x4aadb1,_0x486f67,_0x25c76e);},'buXFt':function(_0x1b9813,_0x5256a){return _0x1b9813(_0x5256a);},'PdfSn':function(_0x3ea24f,_0x481d0b){return _0x3ea24f(_0x481d0b);},'HIZuA':_0x3638e3(0xe9),'SVZEh':_0x3638e3(0x147),'dVaSP':'connection.js','wqTkS':function(_0xec67bd,_0x3407fe){return _0xec67bd(_0x3407fe);},'MXtzo':'Not\x20able\x20to\x20import\x20Connection','zSmZB':function(_0x3fcee9,_0x26a5e2){return _0x3fcee9!=_0x26a5e2;},'OXLUx':function(_0x277dc8){return _0x277dc8();},'npOoV':_0x3638e3(0x145),'xggIp':function(_0x1401e6,_0x2a5a6b){return _0x1401e6(_0x2a5a6b);},'XekXH':_0x3638e3(0xd7),'WHUHT':function(_0x2b032d,_0x41b168){return _0x2b032d(_0x41b168);}},_0x20d340=this;if(!this[_0x3638e3(0x129)])try{const _0x58e6ca=path[_0x3638e3(0xeb)](_0x27c3a8[_0x3638e3(0x12b)],_0x27c3a8[_0x3638e3(0xc3)],_0x27c3a8['dVaSP']),_0x24c9cb=_0x27c3a8['wqTkS'](importFileFromPWCore,_0x58e6ca);!_0x24c9cb?_0x27c3a8['wqTkS'](debug,_0x27c3a8[_0x3638e3(0x13a)]):this[_0x3638e3(0x129)]=_0x24c9cb[_0x3638e3(0x129)];}catch(_0x41c301){_0x27c3a8[_0x3638e3(0x117)](debug,'Error\x20in\x20importing\x20connection\x20'+_0x41c301[_0x3638e3(0x118)]());}const _0x56abf9=this[_0x3638e3(0x129)];try{if(_0x27c3a8[_0x3638e3(0xdd)](_0x56abf9,null)){const _0x4a339d=_0x56abf9[_0x3638e3(0xe4)][_0x3638e3(0xd7)],_0x31b2db=_0x56abf9['prototype']['sendMessageToServer'];_0x27c3a8[_0x3638e3(0x124)](isAccessibilityAutomationSession)&&Object[_0x3638e3(0x143)](_0x56abf9['prototype'],_0x27c3a8[_0x3638e3(0x149)],{'get':function(){const _0x37fa28=_0x3638e3,_0x247a2e={'lvwQN':function(_0x15d677,_0x1915bc,_0x299aad){const _0x2afc11=a48_0x4756;return _0x27c3a8[_0x2afc11(0x120)](_0x15d677,_0x1915bc,_0x299aad);},'bGluU':_0x27c3a8['uxubs'],'Eqage':_0x27c3a8['ohtgN'],'uFGLl':_0x27c3a8[_0x37fa28(0xf5)],'zkEKg':function(_0x61c1c9,_0x3966a4,_0x517c0b){return _0x27c3a8['HGJrF'](_0x61c1c9,_0x3966a4,_0x517c0b);},'mWkzz':function(_0x228d7f,_0x129926,_0x12a547){return _0x27c3a8['hptFZ'](_0x228d7f,_0x129926,_0x12a547);},'yATMP':_0x27c3a8['szwkO'],'KcLBX':_0x27c3a8[_0x37fa28(0x11a)],'tCDyx':function(_0xffd09c,_0x42d9c5){const _0x28afda=_0x37fa28;return _0x27c3a8[_0x28afda(0x16a)](_0xffd09c,_0x42d9c5);},'MDmtQ':_0x27c3a8[_0x37fa28(0xd3)],'vNooc':function(_0x5d95df,_0x53537b,_0x4319ef,_0x5ddee7){const _0x1b488a=_0x37fa28;return _0x27c3a8[_0x1b488a(0x173)](_0x5d95df,_0x53537b,_0x4319ef,_0x5ddee7);}};return async function(){const _0x2c56fe=_0x37fa28;try{if(!global[_0x2c56fe(0x119)]&&global[_0x2c56fe(0x127)]&&_0x247a2e[_0x2c56fe(0xd8)](nestedKeyValue,global[_0x2c56fe(0x116)],[_0x247a2e[_0x2c56fe(0xcc)],_0x247a2e[_0x2c56fe(0x107)],_0x247a2e['uFGLl']])&&_0x247a2e['zkEKg'](shouldScanTestForAccessibility,global[_0x2c56fe(0x116)][_0x2c56fe(0xda)][_0x2c56fe(0x109)][_0x2c56fe(0xea)],!![])&&scripts[_0x2c56fe(0xc8)](arguments[0x1])){logger[_0x2c56fe(0x131)](_0x2c56fe(0x12c)+arguments[0x1]),global[_0x2c56fe(0x119)]=!![];const _0x1e38d7=_0x247a2e[_0x2c56fe(0x148)](nestedKeyValue,global,[_0x247a2e[_0x2c56fe(0xce)],_0x247a2e[_0x2c56fe(0x11d)]]);if(_0x1e38d7){const _0x14351f={};_0x14351f[_0x2c56fe(0x113)]=arguments[0x1],logger[_0x2c56fe(0x140)](_0x2c56fe(0xc2)+util[_0x2c56fe(0xd5)](await AccessibilityHelper[_0x2c56fe(0x132)](_0x1e38d7,_0x14351f)));}if(_0x247a2e[_0x2c56fe(0x15b)](arguments[0x0][_0x2c56fe(0x115)],_0x247a2e[_0x2c56fe(0xfa)])&&global[_0x2c56fe(0xca)]){const _0x7d2388={};_0x7d2388[_0x2c56fe(0x113)]=arguments[0x1],logger['info'](_0x2c56fe(0x166)+util[_0x2c56fe(0xd5)](await _0x247a2e['vNooc'](browserStackExecuteDriver,global[_0x2c56fe(0xca)],scripts['performScan'],_0x7d2388)));}}}catch(_0x35eff4){logger[_0x2c56fe(0x131)](_0x2c56fe(0x13e)+util[_0x2c56fe(0xd5)](_0x35eff4));}return global[_0x2c56fe(0x119)]=![],_0x31b2db[_0x2c56fe(0x15a)](this,arguments);};}}),!_0x27c3a8[_0x3638e3(0x15c)](isFalse,process[_0x3638e3(0x142)][_0x3638e3(0x125)])&&Object[_0x3638e3(0x143)](_0x56abf9['prototype'],_0x27c3a8[_0x3638e3(0x136)],{'get':function(){return async function _0x16c12b(_0x537606){const _0x16e7ab=a48_0x4756;if(BrowserstackCLI['getInstance']()[_0x16e7ab(0x11b)]()){const _0x423929={};_0x423929[_0x16e7ab(0xee)]=_0x537606,await BrowserstackCLI[_0x16e7ab(0x150)]()[_0x16e7ab(0xdb)]()[_0x16e7ab(0xf3)](AutomationFrameworkState[_0x16e7ab(0x155)],HookState[_0x16e7ab(0x12a)],_0x423929);}else{const _0x3d490f=_0x537606&&_0x537606[_0x16e7ab(0xdc)]&&_0x537606[_0x16e7ab(0xdc)][_0x16e7ab(0xcb)];if(_0x3d490f){const _0x4ec8ee=_0x3d490f[_0x16e7ab(0x13b)],_0x32cb07=_0x3d490f[_0x16e7ab(0xc7)];_0x32cb07&&(_0x27c3a8[_0x16e7ab(0x117)](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+_0x32cb07[_0x16e7ab(0x118)]()),_0x20d340[_0x16e7ab(0xe7)]['platform']=_0x32cb07['platformName'],_0x20d340[_0x16e7ab(0xe7)]['platform_version']=_0x32cb07[_0x16e7ab(0x114)]),_0x4ec8ee&&(_0x27c3a8['PdfSn'](debug,_0x16e7ab(0x11f)+_0x4ec8ee),_0x20d340[_0x16e7ab(0xe7)][_0x16e7ab(0x152)]=_0x4ec8ee);}}return _0x4a339d[_0x16e7ab(0x15a)](this,arguments);};}});}}catch(_0x5f4d8e){_0x27c3a8['WHUHT'](debug,_0x3638e3(0x137)+_0x5f4d8e),_0x20d340[_0x3638e3(0x100)]=_0x5f4d8e[_0x3638e3(0x118)]();}}static[a48_0x44afcc(0xec)](){const _0x555129=a48_0x44afcc,_0x4a9af7={'GZpVC':function(_0x52e5e9,_0x220ad9){return _0x52e5e9(_0x220ad9);},'oZlWQ':function(_0x38f8a1,_0x3e902c){return _0x38f8a1(_0x3e902c);},'GYttL':function(_0x44f09a){return _0x44f09a();},'QRmTk':'lib','fwnQZ':_0x555129(0xf2),'FeAMF':_0x555129(0xc5),'BgZYh':_0x555129(0xc9),'BTvvh':function(_0xb3c333,_0x6c921d){return _0xb3c333(_0x6c921d);},'EUxmg':function(_0x5df692,_0x43286e){return _0x5df692(_0x43286e);},'RWAuJ':_0x555129(0x134),'sowgO':function(_0x49522e,_0x895a22){return _0x49522e(_0x895a22);},'tOgex':'Error\x20in\x20importing\x20crConnection','UxoSB':function(_0x31d375,_0x4490cd){return _0x31d375!=_0x4490cd;},'PQVaW':_0x555129(0x159),'GbFGx':function(_0x3bfe41,_0x446a96){return _0x3bfe41(_0x446a96);}},_0x3d4442=this;if(_0x4a9af7[_0x555129(0xc0)](isAccessibilityAutomationSession)){let _0x4c2174=null;try{const _0x4b26b5=path[_0x555129(0xeb)](_0x4a9af7['QRmTk'],_0x4a9af7[_0x555129(0x13f)],_0x4a9af7['FeAMF'],_0x4a9af7[_0x555129(0x174)]),_0x52fc89=_0x4a9af7['BTvvh'](importFileFromPWCore,_0x4b26b5);!_0x52fc89?_0x4a9af7['EUxmg'](debug,_0x4a9af7['RWAuJ']):_0x4c2174=_0x52fc89[_0x555129(0x175)];}catch(_0x2001fa){_0x4a9af7[_0x555129(0x101)](debug,_0x4a9af7[_0x555129(0x102)]);}try{if(_0x4a9af7['UxoSB'](_0x4c2174,null)){const _0x1c4f10=_0x4c2174[_0x555129(0xe4)][_0x555129(0x159)];Object[_0x555129(0x143)](_0x4c2174[_0x555129(0xe4)],_0x4a9af7[_0x555129(0x110)],{'get':function(){const _0x1262dd={'sIDNX':function(_0x4e59cd,_0x33664e){return _0x4a9af7['GZpVC'](_0x4e59cd,_0x33664e);},'xkJIp':function(_0x4d7c82,_0x49284f){return _0x4a9af7['GZpVC'](_0x4d7c82,_0x49284f);},'IcvSB':function(_0x279f3b,_0x3ea360){return _0x4a9af7['oZlWQ'](_0x279f3b,_0x3ea360);}};return async function _0x16cf75(_0x4bd7a7){const _0x1feed5=a48_0x4756;try{if(BrowserstackCLI[_0x1feed5(0x150)]()[_0x1feed5(0x11b)]()){const _0x39106e={};_0x39106e[_0x1feed5(0xee)]=_0x4bd7a7,await BrowserstackCLI['getInstance']()['getAutomationFramework']()[_0x1feed5(0xf3)](AutomationFrameworkState[_0x1feed5(0x155)],HookState[_0x1feed5(0x12a)],_0x39106e),delete _0x4bd7a7[_0x1feed5(0x10a)];}else{const _0x23f771=_0x4bd7a7[_0x1feed5(0x10a)];if(_0x23f771){delete _0x4bd7a7[_0x1feed5(0x10a)];const _0x124a2a=_0x23f771[_0x1feed5(0x13b)],_0x328ee6=_0x23f771[_0x1feed5(0xc7)];_0x328ee6&&(_0x1262dd[_0x1feed5(0x12e)](debug,'Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20'+_0x328ee6['toString']()),_0x3d4442[_0x1feed5(0xe7)][_0x1feed5(0x156)]=_0x328ee6[_0x1feed5(0x16e)],_0x3d4442[_0x1feed5(0xe7)][_0x1feed5(0x153)]=_0x328ee6[_0x1feed5(0x114)]),_0x124a2a&&(_0x1262dd[_0x1feed5(0x106)](debug,'Setting\x20session\x20id\x20received\x20from\x20browserstack\x20'+_0x124a2a),_0x3d4442['currentSessionDetails'][_0x1feed5(0x152)]=_0x124a2a);}}}catch(_0x8a5219){_0x1262dd[_0x1feed5(0x104)](debug,_0x1feed5(0x15d)+_0x8a5219[_0x1feed5(0x118)]());}return _0x1c4f10[_0x1feed5(0x15a)](this,arguments);};}});}}catch(_0x3b71e2){_0x4a9af7[_0x555129(0xf7)](debug,'Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20'+_0x3b71e2),_0x3d4442[_0x555129(0x100)]=_0x3b71e2[_0x555129(0x118)]();}}}static['getDetails'](){const _0x44609b=a48_0x44afcc;return this[_0x44609b(0xe7)];}}function a48_0x43fa(){const _0x558936=['Invalid\x20constructor,\x20please\x20use\x20static\x20methods','function','NImDW','path','rDbWB','model','wsEndpoint','project','Driver\x20Scan\x20result=','browserName','unknown_grid','uZazS','pZcln','2286477ZEHWpO','capabilities','../../helpers/test-observability/utils','platformName','turboscale','VRfQd','browserstack','4240080AcOBfy','CNsQv','BgZYh','CRConnection','ATS_WSS_URL_REGEX','GYttL','use','Page\x20Scan\x20result=','SVZEh','TzJWM','chromium','_defaultConnectOptions','platformDetails','shouldWrapCommand','crConnection.js','__driver','bsParams','bGluU','2914933TnGTLG','yATMP','assign','RBxHz','CsTeR','local_grid','KmfRd','vEMEa','format','url','dispatch','lvwQN','fromEntries','currentTest','getAutomationFramework','params','zSmZB','isRemote','MMyQX','entries','channel','wUOMm','version','prototype','../utils/constants','product','currentSessionDetails','setupBrowserDetails','lib','titlePath','join','patchCRConnection','1595716ZZhIYD','message','winstonLogger','BSTACK_URL','ZVXDD','server','trackEvent','690khRSZn','IMjYv','mLepZ','GbFGx','deviceModel','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','MDmtQ','browser','pwPage','VuYFX','parse','chrome','sessionError','sowgO','tOgex','playwright-','IcvSB','../../helpers/logger','xkJIp','Eqage','caps','testInfo','bStackParams','../v2/state/automationFrameworkState.js','jjkjn','ulvix','../../helpers/accessibility-automation/scripts','connectOptions','PQVaW','gsmtK','../v2/browserstackCLI','method','platformVersion','_type','__workerDetails','buXFt','toString','bstackPerformA11yScan','xmWIU','isRunning','26cXGjKL','KcLBX','_browserType','Setting\x20session\x20id\x20received\x20from\x20BS\x20','hptFZ','7987428MBlkGS','tAKbf','52765RcteUX','OXLUx','BROWSERSTACK_TEST_OBSERVABILITY','SzWSl','accessibilityPlatform','patchConnection','Connection','POST','HIZuA','Performing\x20scan\x20for\x20','NKitU','sIDNX','bUXCD','HrXjQ','debug','performScan','test','Not\x20able\x20to\x20import\x20crConnection','zdFle','XekXH','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','luXmE','toLowerCase','MXtzo','sessionId','../v2/state/hookState.js','safari','Failed\x20to\x20perform\x20scan\x20','fwnQZ','info','patch','env','defineProperty','117542AObciM','sendMessageToServer','bsHNx','client','mWkzz','npOoV','uVBbt','../../helpers/accessibility-automation/helper','./accessibility-helper','Page','cloudProvider','NHYKt','getInstance','includes','bsSessionId','platform_version','browser_version','PLAYWRIGHT_DISPATCH','platform','KEeKT','../../helpers/helper','_onMessage','apply','tCDyx','xggIp','Error\x20in\x20finding\x20platform\x20details\x20'];a48_0x43fa=function(){return _0x558936;};return a48_0x43fa();}module['exports']=PlaywrightSessionDetails;
|
|
1
|
+
const a48_0x1c5e11=a48_0x167e;(function(_0x422132,_0x37fc74){const _0x173c81=a48_0x167e,_0x1dcf90=_0x422132();while(!![]){try{const _0x33a385=parseInt(_0x173c81(0x139))/0x1*(parseInt(_0x173c81(0x19e))/0x2)+parseInt(_0x173c81(0x126))/0x3*(parseInt(_0x173c81(0x1a9))/0x4)+-parseInt(_0x173c81(0x134))/0x5+-parseInt(_0x173c81(0x141))/0x6+-parseInt(_0x173c81(0x159))/0x7+parseInt(_0x173c81(0x137))/0x8*(-parseInt(_0x173c81(0x18c))/0x9)+-parseInt(_0x173c81(0x161))/0xa*(-parseInt(_0x173c81(0x1a5))/0xb);if(_0x33a385===_0x37fc74)break;else _0x1dcf90['push'](_0x1dcf90['shift']());}catch(_0x272c38){_0x1dcf90['push'](_0x1dcf90['shift']());}}}(a48_0x8d87,0x6037b));const path=require(a48_0x1c5e11(0x17e)),url=require(a48_0x1c5e11(0xfb)),util=require('util'),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule}=require(a48_0x1c5e11(0x18a)),{o11yErrorHandler}=require(a48_0x1c5e11(0x113)),{debug,getPlatformDetails}=require(a48_0x1c5e11(0x12a)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),logger=require('../../helpers/logger')[a48_0x1c5e11(0x100)],scripts=require('../../helpers/accessibility-automation/scripts'),{browserStackExecuteDriver}=require('../../bin/playwright/accessibility-helper'),AccessibilityHelper=require(a48_0x1c5e11(0x192)),constants=require(a48_0x1c5e11(0x162)),BrowserstackCLI=require(a48_0x1c5e11(0x116)),AutomationFrameworkState=require(a48_0x1c5e11(0x1b1)),HookState=require(a48_0x1c5e11(0x19a)),getBrowserNameFromChannel=_0x50e8a7=>{const _0x57cd14=a48_0x1c5e11,_0xce6a42={};_0xce6a42[_0x57cd14(0x15f)]=_0x57cd14(0x182),_0xce6a42[_0x57cd14(0x17d)]=_0x57cd14(0x119),_0xce6a42[_0x57cd14(0x1ab)]=_0x57cd14(0x138),_0xce6a42[_0x57cd14(0x13e)]=_0x57cd14(0x16f);const _0xd80e09=_0xce6a42;if(_0x50e8a7[_0x57cd14(0x14e)](_0xd80e09[_0x57cd14(0x15f)]))return _0xd80e09[_0x57cd14(0x15f)];if(_0x50e8a7[_0x57cd14(0x14e)](_0xd80e09[_0x57cd14(0x17d)]))return _0xd80e09['FopJD'];if(_0x50e8a7[_0x57cd14(0x14e)](_0xd80e09['eZMlv']))return _0xd80e09['eZMlv'];if(_0x50e8a7['includes'](_0xd80e09[_0x57cd14(0x13e)]))return _0xd80e09['zLaaa'];},getBrowserFromWSEndpoint=_0x594b30=>{const _0x113dc8=a48_0x1c5e11,_0x508334={'itlkD':_0x113dc8(0x182),'axoxH':function(_0x132502,_0x58aa9d){return _0x132502(_0x58aa9d);}};try{const _0x42b5e7=url[_0x113dc8(0x184)](_0x594b30),_0x56d628=new URLSearchParams(_0x42b5e7[_0x113dc8(0x1a8)]),_0x580892=Object[_0x113dc8(0x120)](_0x56d628[_0x113dc8(0x114)]()),_0x1ba49a=JSON[_0x113dc8(0x184)](_0x580892[_0x113dc8(0xfd)]);if(_0x1ba49a&&(_0x1ba49a[_0x113dc8(0xf3)]||_0x1ba49a[_0x113dc8(0x118)]))return _0x1ba49a[_0x113dc8(0xf3)]||_0x1ba49a[_0x113dc8(0x118)];return _0x508334[_0x113dc8(0x136)];}catch(_0x420868){_0x508334[_0x113dc8(0x186)](debug,_0x113dc8(0x156)+_0x420868[_0x113dc8(0x109)]());}},getCloudProviderFromWsEndpoint=_0x48144a=>{const _0x45603c=a48_0x1c5e11,_0x4bb80b={};_0x4bb80b[_0x45603c(0x1b2)]=_0x45603c(0x11d),_0x4bb80b[_0x45603c(0x106)]=_0x45603c(0x190);const _0x705bae=_0x4bb80b;if(_0x48144a['includes'](constants[_0x45603c(0x12c)])||_0x48144a[_0x45603c(0x14e)](constants[_0x45603c(0x1b0)]))return _0x705bae[_0x45603c(0x1b2)];return _0x705bae['TiNJC'];},a48_0x2865b9={};function a48_0x167e(_0xe26084,_0x2b86e0){const _0x8d875a=a48_0x8d87();return a48_0x167e=function(_0x167eca,_0x40d940){_0x167eca=_0x167eca-0xf1;let _0x132a9d=_0x8d875a[_0x167eca];return _0x132a9d;},a48_0x167e(_0xe26084,_0x2b86e0);}function a48_0x8d87(){const _0x242d5a=['Connection','channel','safari','deviceModel','version','BRgmL','client','ODHkw','test','goCYl','QmjVV','capabilities','platform','__driver','bsParams','aAtaw','FopJD','path','nkgQD','hoSBj','crConnection.js','chrome','Page','parse','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','axoxH','tlzfd','wHAoQ','Device\x20Model\x20is\x20not\x20available','../../helpers/helper','POST','642771jiSTqv','VGRFj','CRConnection','Nvomr','unknown_grid','Setting\x20session\x20id\x20received\x20from\x20BS\x20','./accessibility-helper','isRunning','xHvmm','_defaultConnectOptions','platformVersion','project','accessibilityPlatform','oQgqS','../v2/state/hookState.js','aHXey','UeZiQ','yPgJi','1316386EVZLvC','rfAiD','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','SpEQw','Kslpf','Failed\x20to\x20perform\x20scan\x20','Opxkb','11pgRWHe','turboscale','browser_version','query','1314532nzsNGu','params','eZMlv','yYhwr','PLAYWRIGHT_DISPATCH','Not\x20able\x20to\x20import\x20crConnection','pJfSj','BSTACK_ATS_URL','../v2/state/automationFrameworkState.js','RLQgm','LExfc','BROWSERSTACK_TEST_OBSERVABILITY','browser','patch','env','apply','pEEAk','qnZPk','sessionId','playwright-','url','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','caps','apmLS','prototype','winstonLogger','ETFut','performScan','server','DZHCT','_onMessage','TiNJC','_type','__workerDetails','toString','gdVRY','defineProperty','setupBrowserDetails','XujYC','sendMessageToServer','PqWKk','method','connection.js','tCBzQ','../../helpers/test-observability/error-handler','entries','nsSPR','../v2/browserstackCLI','message','browserName','edge','vBAkg','Driver\x20Scan\x20result=','tYKuF','browserstack','lib','_name','fromEntries','SiQJJ','trackEvent','currentTest','WcVzJ','toLowerCase','3GnymAv','bStackParams','info','sessionError','../../helpers/test-observability/utils','JDUHP','BSTACK_URL','exports','titlePath','bsSessionId','JhMpb','debug','connectOptions','MjBXF','3119030aTueBv','axOKY','itlkD','8yJIbEk','firefox','1ceQOyo','RKBJH','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','pwPage','YcFFf','zLaaa','jNyBW','getAutomationFramework','2486160deJRUH','isRemote','vFLcx','model','vIVWn','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','platform_version','gqsVE','NjMdH','lXrnO','join','patchConnection','currentSessionDetails','includes','cloudProvider','rUayQ','product','chromium','patchCRConnection','getInstance','wsEndpoint','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','use','1329531duTWnP','wJNlb','format','Ymncr','dispatch','sNJeE','qNqoG','dPyev','7067990chSSKH','../utils/constants','gRAlh','testInfo','bstackPerformA11yScan','cjkzO','platformName','Performing\x20scan\x20for\x20','Error\x20in\x20importing\x20crConnection','platformDetails','Page\x20Scan\x20result=','HzOrX'];a48_0x8d87=function(){return _0x242d5a;};return a48_0x8d87();}a48_0x2865b9[a48_0x1c5e11(0x14f)]=undefined,a48_0x2865b9[a48_0x1c5e11(0x12f)]=undefined,a48_0x2865b9[a48_0x1c5e11(0xf3)]=undefined,a48_0x2865b9['browser_version']=undefined,a48_0x2865b9[a48_0x1c5e11(0x179)]=undefined,a48_0x2865b9[a48_0x1c5e11(0x147)]=undefined,a48_0x2865b9[a48_0x1c5e11(0x151)]=undefined,a48_0x2865b9[a48_0x1c5e11(0x178)]={};class PlaywrightSessionDetails{static [a48_0x1c5e11(0x14d)]=a48_0x2865b9;constructor(){const _0x1d49d2=a48_0x1c5e11,_0x2f75aa={};_0x2f75aa[_0x1d49d2(0x166)]=_0x1d49d2(0x1a0);const _0x180434=_0x2f75aa;throw new Error(_0x180434[_0x1d49d2(0x166)]);}static [a48_0x1c5e11(0x129)]=null;static[a48_0x1c5e11(0x10c)](_0x261f9a,_0x11beb1,_0x46458f=null){const _0x48e06f=a48_0x1c5e11,_0x209d71={'nsSPR':function(_0x1cb281,_0x23a105){return _0x1cb281===_0x23a105;},'xHvmm':'function','sNJeE':_0x48e06f(0x146),'ETFut':_0x48e06f(0x189),'dPyev':'local_grid','Nvomr':function(_0x15d6e7,_0x4d39a0,_0x2fd549){return _0x15d6e7(_0x4d39a0,_0x2fd549);},'QmjVV':'_browserType','UeZiQ':_0x48e06f(0x195),'pJfSj':function(_0x3ac3d5,_0x21e7e0,_0x451647){return _0x3ac3d5(_0x21e7e0,_0x451647);},'JDUHP':_0x48e06f(0x197),'hoSBj':_0x48e06f(0x158),'gdVRY':_0x48e06f(0x132),'yYhwr':function(_0x35b7a2,_0x45ae36){return _0x35b7a2(_0x45ae36);},'SpEQw':function(_0x59195b,_0x537db3){return _0x59195b===_0x537db3;},'ovgJH':_0x48e06f(0x11d),'goCYl':_0x48e06f(0x1a6),'WiRGw':'automate','Ymncr':function(_0x11032a,_0x369919){return _0x11032a(_0x369919);},'nrvWV':function(_0x2bc5c7,_0x5a019a){return _0x2bc5c7+_0x5a019a;},'axOKY':_0x48e06f(0xfa),'vIVWn':function(_0x5103e7){return _0x5103e7();},'aAtaw':function(_0x162c0b,_0x58d069,_0x11dfdd){return _0x162c0b(_0x58d069,_0x11dfdd);},'gRAlh':_0x48e06f(0x10c)},_0x12ef75=this;return _0x209d71[_0x48e06f(0x17c)](o11yErrorHandler,async function _0x25287c(_0x56aee2,_0x5bfe56,_0x13fe7e=null){const _0x4fedc7=_0x48e06f;let _0x35ea55=_0x56aee2[_0x4fedc7(0x11f)],_0x5bf707=null;_0x56aee2&&_0x209d71[_0x4fedc7(0x115)](typeof _0x56aee2['version'],_0x209d71['xHvmm'])?_0x5bf707=_0x56aee2[_0x4fedc7(0x171)]():logger['debug'](_0x209d71[_0x4fedc7(0x15e)]);let _0x52a118=null;_0x56aee2&&_0x209d71['nsSPR'](typeof _0x56aee2[_0x4fedc7(0x144)],_0x209d71[_0x4fedc7(0x194)])?_0x52a118=_0x56aee2['model']():logger['debug'](_0x209d71[_0x4fedc7(0x101)]);let _0x25f5d9=null,_0x47a996=null,_0x434446=null,_0xd777c=_0x209d71[_0x4fedc7(0x160)];if(_0x56aee2['_connection'][_0x4fedc7(0x142)]()||global[_0x4fedc7(0x198)]){let _0xc16a58=null;_0x209d71[_0x4fedc7(0x18f)](nestedKeyValue,_0x56aee2,[_0x209d71[_0x4fedc7(0x177)],_0x209d71[_0x4fedc7(0x19c)]])?_0xc16a58=_0x56aee2['_browserType'][_0x4fedc7(0x195)]:_0xc16a58=_0x209d71[_0x4fedc7(0x1af)](nestedKeyValue,_0x5bfe56,[_0x209d71[_0x4fedc7(0x12b)],_0x209d71[_0x4fedc7(0x180)],_0x209d71[_0x4fedc7(0x10a)]]);const _0xba2068=_0x13fe7e||_0xc16a58&&_0xc16a58[_0x4fedc7(0x155)];_0xba2068&&(_0xd777c=_0x209d71[_0x4fedc7(0x1ac)](getCloudProviderFromWsEndpoint,_0xba2068),_0x209d71[_0x4fedc7(0x1a1)](_0xd777c,_0x209d71['ovgJH'])&&(_0x434446=constants['ATS_WSS_URL_REGEX'][_0x4fedc7(0x175)](_0xba2068)?_0x209d71[_0x4fedc7(0x176)]:_0x209d71['WiRGw'],_0x35ea55=_0x209d71[_0x4fedc7(0x1ac)](getBrowserFromWSEndpoint,_0xba2068)||_0x35ea55,_0x25f5d9=_0x12ef75['currentSessionDetails'][_0x4fedc7(0x179)],_0x47a996=_0x12ef75[_0x4fedc7(0x14d)][_0x4fedc7(0x147)]));}else{_0x5bfe56&&_0x5bfe56[_0x4fedc7(0x197)][_0x4fedc7(0x158)][_0x4fedc7(0x16e)]?_0x35ea55=_0x209d71[_0x4fedc7(0x15c)](getBrowserNameFromChannel,_0x5bfe56[_0x4fedc7(0x197)][_0x4fedc7(0x158)][_0x4fedc7(0x16e)]):_0x35ea55=_0x209d71['nrvWV'](_0x209d71[_0x4fedc7(0x135)],_0x35ea55[_0x4fedc7(0x125)]());const _0xf3a61e=await _0x209d71[_0x4fedc7(0x145)](getPlatformDetails);_0x25f5d9=_0xf3a61e[_0x4fedc7(0x167)],_0x47a996=_0xf3a61e[_0x4fedc7(0x196)];}const _0x2cc5a8={};_0x2cc5a8['browser']=_0x35ea55,_0x2cc5a8[_0x4fedc7(0x1a7)]=_0x5bf707,_0x2cc5a8['capabilities']={},_0x2cc5a8[_0x4fedc7(0x179)]=_0x25f5d9,_0x2cc5a8[_0x4fedc7(0x147)]=_0x47a996,_0x2cc5a8['product']=_0x434446;const _0x2f97d1=_0x2cc5a8;_0x52a118&&(_0x2f97d1[_0x4fedc7(0x178)][_0x4fedc7(0x170)]=_0x52a118);const _0x40a853={};_0x40a853[_0x4fedc7(0x14f)]=_0xd777c,_0x12ef75[_0x4fedc7(0x14d)]=Object['assign']({},_0x12ef75[_0x4fedc7(0x14d)],_0x40a853,_0x2f97d1);},_0x209d71[_0x48e06f(0x163)])(_0x261f9a,_0x11beb1,_0x46458f);}static[a48_0x1c5e11(0xf4)](){const _0x628482=a48_0x1c5e11;this[_0x628482(0x14c)](),this['patchCRConnection']();}static['patchConnection'](){const _0x446109=a48_0x1c5e11,_0x1c0c9e={'lXrnO':function(_0x521866,_0x59e9e0,_0xa7511a){return _0x521866(_0x59e9e0,_0xa7511a);},'aHXey':_0x446109(0x123),'VGRFj':_0x446109(0x164),'JhMpb':_0x446109(0x12e),'PqWKk':_0x446109(0x108),'yFrwU':_0x446109(0x13c),'ItBer':function(_0x527699,_0x10996b){return _0x527699===_0x10996b;},'SiQJJ':_0x446109(0x183),'wHAoQ':function(_0x82024c,_0x4c46a8,_0x17c274,_0x33b15f){return _0x82024c(_0x4c46a8,_0x17c274,_0x33b15f);},'YcFFf':function(_0x9ed63c,_0x2ebb81){return _0x9ed63c(_0x2ebb81);},'WcVzJ':function(_0x25265e,_0x20f864){return _0x25265e(_0x20f864);},'rUayQ':_0x446109(0x11e),'jNyBW':_0x446109(0x173),'gqsVE':_0x446109(0x111),'vBAkg':function(_0x3627d2,_0x86d5e2){return _0x3627d2(_0x86d5e2);},'Kslpf':'Not\x20able\x20to\x20import\x20Connection','MjBXF':function(_0x2015a0,_0x22cd47){return _0x2015a0(_0x22cd47);},'oQgqS':function(_0x4e893c,_0x46bc99){return _0x4e893c!=_0x46bc99;},'PFtFm':function(_0x10cd18){return _0x10cd18();},'HzOrX':_0x446109(0x10e),'lUWmK':function(_0x1a02a4,_0x16c18f){return _0x1a02a4(_0x16c18f);},'LExfc':_0x446109(0x15d),'DZHCT':function(_0x3fd226,_0x2ad88d){return _0x3fd226(_0x2ad88d);}},_0x587896=this;if(!this[_0x446109(0x16d)])try{const _0x503f50=path['join'](_0x1c0c9e[_0x446109(0x150)],_0x1c0c9e[_0x446109(0x13f)],_0x1c0c9e[_0x446109(0x148)]),_0x2ee6cd=_0x1c0c9e[_0x446109(0x11a)](importFileFromPWCore,_0x503f50);!_0x2ee6cd?_0x1c0c9e[_0x446109(0x11a)](debug,_0x1c0c9e[_0x446109(0x1a2)]):this[_0x446109(0x16d)]=_0x2ee6cd[_0x446109(0x16d)];}catch(_0x536ab7){_0x1c0c9e[_0x446109(0x133)](debug,'Error\x20in\x20importing\x20connection\x20'+_0x536ab7['toString']());}const _0x15bff1=this[_0x446109(0x16d)];try{if(_0x1c0c9e[_0x446109(0x199)](_0x15bff1,null)){const _0x37bb09=_0x15bff1['prototype']['dispatch'],_0x169ad8=_0x15bff1[_0x446109(0xff)][_0x446109(0x10e)];_0x1c0c9e['PFtFm'](isAccessibilityAutomationSession)&&Object[_0x446109(0x10b)](_0x15bff1[_0x446109(0xff)],_0x1c0c9e[_0x446109(0x16c)],{'get':function(){const _0x4ad140=_0x446109,_0x6c1c4f={'dTwCZ':function(_0x1c946e,_0xf05eae,_0x6ab2d9){const _0x4cb8ff=a48_0x167e;return _0x1c0c9e[_0x4cb8ff(0x14a)](_0x1c946e,_0xf05eae,_0x6ab2d9);},'apmLS':_0x1c0c9e[_0x4ad140(0x19b)],'ODHkw':_0x1c0c9e[_0x4ad140(0x18d)],'tlzfd':_0x1c0c9e[_0x4ad140(0x130)],'MyyGD':_0x1c0c9e[_0x4ad140(0x10f)],'HIRTt':_0x1c0c9e['yFrwU'],'tYKuF':function(_0x5daf65,_0x48db5c){return _0x1c0c9e['ItBer'](_0x5daf65,_0x48db5c);},'Opxkb':_0x1c0c9e[_0x4ad140(0x121)],'BRgmL':function(_0x575c42,_0x1e73fb,_0x4adb49,_0x240713){const _0x3d1a64=_0x4ad140;return _0x1c0c9e[_0x3d1a64(0x188)](_0x575c42,_0x1e73fb,_0x4adb49,_0x240713);}};return async function(){const _0x1b8129=_0x4ad140;try{if(!global[_0x1b8129(0x165)]&&global[_0x1b8129(0x198)]&&_0x6c1c4f['dTwCZ'](nestedKeyValue,global[_0x1b8129(0x108)],[_0x6c1c4f[_0x1b8129(0xfe)],_0x6c1c4f[_0x1b8129(0x174)],_0x6c1c4f[_0x1b8129(0x187)]])&&_0x6c1c4f['dTwCZ'](shouldScanTestForAccessibility,global['__workerDetails']['currentTest'][_0x1b8129(0x164)][_0x1b8129(0x12e)],!![])&&scripts['shouldWrapCommand'](arguments[0x1])){logger[_0x1b8129(0x131)](_0x1b8129(0x168)+arguments[0x1]),global[_0x1b8129(0x165)]=!![];const _0x2af9bc=_0x6c1c4f['dTwCZ'](nestedKeyValue,global,[_0x6c1c4f['MyyGD'],_0x6c1c4f['HIRTt']]);if(_0x2af9bc){const _0x4915be={};_0x4915be[_0x1b8129(0x110)]=arguments[0x1],logger[_0x1b8129(0x128)](_0x1b8129(0x16b)+util[_0x1b8129(0x15b)](await AccessibilityHelper[_0x1b8129(0x102)](_0x2af9bc,_0x4915be)));}if(_0x6c1c4f[_0x1b8129(0x11c)](arguments[0x0][_0x1b8129(0x107)],_0x6c1c4f[_0x1b8129(0x1a4)])&&global['__driver']){const _0x54071e={};_0x54071e['method']=arguments[0x1],logger['info'](_0x1b8129(0x11b)+util[_0x1b8129(0x15b)](await _0x6c1c4f[_0x1b8129(0x172)](browserStackExecuteDriver,global[_0x1b8129(0x17a)],scripts[_0x1b8129(0x102)],_0x54071e)));}}}catch(_0x4e0093){logger['debug'](_0x1b8129(0x1a3)+util[_0x1b8129(0x15b)](_0x4e0093));}return global[_0x1b8129(0x165)]=![],_0x169ad8[_0x1b8129(0xf6)](this,arguments);};}}),!_0x1c0c9e['lUWmK'](isFalse,process[_0x446109(0xf5)][_0x446109(0xf2)])&&Object[_0x446109(0x10b)](_0x15bff1[_0x446109(0xff)],_0x1c0c9e[_0x446109(0xf1)],{'get':function(){return async function _0x3b518e(_0x3ab728){const _0x407a04=a48_0x167e;if(BrowserstackCLI[_0x407a04(0x154)]()['isRunning']()){const _0x160de1={};_0x160de1[_0x407a04(0x117)]=_0x3ab728,await BrowserstackCLI[_0x407a04(0x154)]()[_0x407a04(0x140)]()[_0x407a04(0x122)](AutomationFrameworkState[_0x407a04(0x1ad)],HookState[_0x407a04(0x18b)],_0x160de1);}else{const _0x4e123f=_0x3ab728&&_0x3ab728[_0x407a04(0x1aa)]&&_0x3ab728[_0x407a04(0x1aa)][_0x407a04(0x17b)];if(_0x4e123f){const _0x240c92=_0x4e123f[_0x407a04(0xf9)],_0x5b8ddb=_0x4e123f[_0x407a04(0x16a)];_0x5b8ddb&&(_0x1c0c9e[_0x407a04(0x13d)](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+_0x5b8ddb[_0x407a04(0x109)]()),_0x587896['currentSessionDetails'][_0x407a04(0x179)]=_0x5b8ddb[_0x407a04(0x167)],_0x587896[_0x407a04(0x14d)][_0x407a04(0x147)]=_0x5b8ddb[_0x407a04(0x196)]),_0x240c92&&(_0x1c0c9e[_0x407a04(0x124)](debug,_0x407a04(0x191)+_0x240c92),_0x587896[_0x407a04(0x14d)][_0x407a04(0x12f)]=_0x240c92);}}return _0x37bb09[_0x407a04(0xf6)](this,arguments);};}});}}catch(_0x1c035d){_0x1c0c9e[_0x446109(0x104)](debug,_0x446109(0x13b)+_0x1c035d),_0x587896[_0x446109(0x129)]=_0x1c035d['toString']();}}static[a48_0x1c5e11(0x153)](){const _0x14c9ad=a48_0x1c5e11,_0x4a4a09={'rfAiD':function(_0xba0064,_0x241760){return _0xba0064(_0x241760);},'pEEAk':function(_0x337c9f,_0x16ff5a){return _0x337c9f(_0x16ff5a);},'KIvGE':function(_0x5d6eba){return _0x5d6eba();},'XujYC':_0x14c9ad(0x11e),'nkgQD':_0x14c9ad(0x103),'wJNlb':_0x14c9ad(0x152),'tCBzQ':_0x14c9ad(0x181),'kxMTC':function(_0x4fb539,_0x47b1d1){return _0x4fb539(_0x47b1d1);},'vFLcx':function(_0x28a697,_0x53c32a){return _0x28a697(_0x53c32a);},'NjMdH':_0x14c9ad(0x1ae),'yPgJi':_0x14c9ad(0x169),'RKBJH':function(_0x333c09,_0x1f43fb){return _0x333c09!=_0x1f43fb;},'qnZPk':_0x14c9ad(0x105)},_0xf4c8a2=this;if(_0x4a4a09['KIvGE'](isAccessibilityAutomationSession)){let _0x543a9f=null;try{const _0x52bf4f=path[_0x14c9ad(0x14b)](_0x4a4a09[_0x14c9ad(0x10d)],_0x4a4a09[_0x14c9ad(0x17f)],_0x4a4a09[_0x14c9ad(0x15a)],_0x4a4a09[_0x14c9ad(0x112)]),_0xd8b700=_0x4a4a09['kxMTC'](importFileFromPWCore,_0x52bf4f);!_0xd8b700?_0x4a4a09[_0x14c9ad(0x143)](debug,_0x4a4a09[_0x14c9ad(0x149)]):_0x543a9f=_0xd8b700[_0x14c9ad(0x18e)];}catch(_0x1480b7){_0x4a4a09['rfAiD'](debug,_0x4a4a09[_0x14c9ad(0x19d)]);}try{if(_0x4a4a09[_0x14c9ad(0x13a)](_0x543a9f,null)){const _0x4eaf4e=_0x543a9f[_0x14c9ad(0xff)]['_onMessage'];Object[_0x14c9ad(0x10b)](_0x543a9f[_0x14c9ad(0xff)],_0x4a4a09[_0x14c9ad(0xf8)],{'get':function(){return async function _0x29d484(_0x3f6ff3){const _0x5964ab=a48_0x167e;try{if(BrowserstackCLI[_0x5964ab(0x154)]()[_0x5964ab(0x193)]()){const _0x58a264={};_0x58a264[_0x5964ab(0x117)]=_0x3f6ff3,await BrowserstackCLI['getInstance']()['getAutomationFramework']()[_0x5964ab(0x122)](AutomationFrameworkState[_0x5964ab(0x1ad)],HookState[_0x5964ab(0x18b)],_0x58a264),delete _0x3f6ff3[_0x5964ab(0x127)];}else{const _0x3c40ab=_0x3f6ff3[_0x5964ab(0x127)];if(_0x3c40ab){delete _0x3f6ff3[_0x5964ab(0x127)];const _0x1c6559=_0x3c40ab['sessionId'],_0x194b69=_0x3c40ab[_0x5964ab(0x16a)];_0x194b69&&(_0x4a4a09[_0x5964ab(0x19f)](debug,_0x5964ab(0x157)+_0x194b69['toString']()),_0xf4c8a2[_0x5964ab(0x14d)][_0x5964ab(0x179)]=_0x194b69[_0x5964ab(0x167)],_0xf4c8a2[_0x5964ab(0x14d)][_0x5964ab(0x147)]=_0x194b69[_0x5964ab(0x196)]),_0x1c6559&&(_0x4a4a09[_0x5964ab(0xf7)](debug,_0x5964ab(0x185)+_0x1c6559),_0xf4c8a2['currentSessionDetails'][_0x5964ab(0x12f)]=_0x1c6559);}}}catch(_0x2057a7){_0x4a4a09['rfAiD'](debug,'Error\x20in\x20finding\x20platform\x20details\x20'+_0x2057a7['toString']());}return _0x4eaf4e['apply'](this,arguments);};}});}}catch(_0x492bbd){_0x4a4a09[_0x14c9ad(0x143)](debug,_0x14c9ad(0xfc)+_0x492bbd),_0xf4c8a2['sessionError']=_0x492bbd[_0x14c9ad(0x109)]();}}}static['getDetails'](){return this['currentSessionDetails'];}}module[a48_0x1c5e11(0x12d)]=PlaywrightSessionDetails;
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a49_0x2d57(_0x347ca2,_0x363a35){const _0x4899f0=a49_0x4899();return a49_0x2d57=function(_0x2d5749,_0xbd96a7){_0x2d5749=_0x2d5749-0x150;let _0x1b82b7=_0x4899f0[_0x2d5749];return _0x1b82b7;},a49_0x2d57(_0x347ca2,_0x363a35);}function a49_0x4899(){const _0x5301f7=['IAKYM','10956912XogFIY','./nightwatch/command','Fqhsy','run','WAZnS','../helpers/utilities','rrTgk','--package','CkULP','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','fireFunnelTestEvent','stop','../helpers/performance/performance-tester','HST','--require','env','format','ats','1324UGsmbi','ZXHHa','stack','exitCode','316371tnNzyB','./cucumber-js/command','option','mocha/lib/cli/run.js','../helpers/logger','info','./utils/constants','debug','SwQYv','argv','14Ythena','parserConfiguration','getInstance','frYYX','cbLXT','SDK_CLEANUP','push','--mochaRequire','UOIbG','228mXlUei','1812126rHbaMe','error','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','framework','99UheGZm','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','existsSync','path','346QlzMDj','ysIKM','./playwright/command','--config','boolean','slice','uRfyb','find','2073975qmQkdw','../helpers/helper','VYoeG','Show\x20help','190KLqabD','Parsing\x20command\x20line\x20arguments','mocha/lib/cli/commands.js','YnJzW','SDK_SETUP','vanilla','yBDIJ','showHelpOnFail','node','EVENTS','alias','findAndReplace','INFO','cucumber-js','./jest/command','usage:\x20$0\x20<command>\x20[args]','QBHVT','includes','BROWSERSTACK_CONFIG_FILE_PATH','.local-not-set.json','../helpers/BrowserStackSetup','../../ats/src/index','NtAyD','handler','config','--no-config','19976rixbdB','FojnO','isUndefined','unlinkSync','mocha','QiIAk','hqHqt','strict','end','qxUEr','integrations','.browserstack','setBrowserStackAutomationDisable','setTestObservabilityDisable','start','./codeceptjs/command','--no-opts','JEST','sprfk','mocha/lib/cli/cli.js','./vanilla-js/command','util','INTEGRATIONS','../helpers/performance/constants','NRTag','getConfigPath','help','ufBZN','version','Running\x20SDK\x20with\x20args\x20','command','../helpers/test-observability/constants','PLAYWRIGHT','uKKfW','load\x20[subcommand]','kQSvr','jGCrM','jest','UwySG','VERSION','IrPsK','homedir','EkwDy','480915rlUSgn','join','FnFIm'];a49_0x4899=function(){return _0x5301f7;};return a49_0x4899();}const a49_0x224b55=a49_0x2d57;(function(_0x4e83b4,_0x514d1e){const _0x529037=a49_0x2d57,_0x9ecb93=_0x4e83b4();while(!![]){try{const _0x4b03c8=parseInt(_0x529037(0x16a))/0x1*(-parseInt(_0x529037(0x1d1))/0x2)+parseInt(_0x529037(0x166))/0x3*(parseInt(_0x529037(0x190))/0x4)+parseInt(_0x529037(0x172))/0x5+parseInt(_0x529037(0x162))/0x6*(parseInt(_0x529037(0x158))/0x7)+parseInt(_0x529037(0x1bf))/0x8+parseInt(_0x529037(0x1bb))/0x9*(-parseInt(_0x529037(0x176))/0xa)+parseInt(_0x529037(0x1d5))/0xb*(-parseInt(_0x529037(0x161))/0xc);if(_0x4b03c8===_0x514d1e)break;else _0x9ecb93['push'](_0x9ecb93['shift']());}catch(_0x409199){_0x9ecb93['push'](_0x9ecb93['shift']());}}}(a49_0x4899,0xba26d));const fs=require('fs'),path=require(a49_0x224b55(0x169)),util=require(a49_0x224b55(0x1a5)),spawn=require('child_process')['spawn'],{requireModule}=require(a49_0x224b55(0x173)),PerformanceTester=require(a49_0x224b55(0x1cb)),PerformanceEvents=require(a49_0x224b55(0x1a7))[a49_0x224b55(0x17f)],helper=require('../helpers/helper'),utilities=require(a49_0x224b55(0x1c4)),{default:BrowserStackSetup}=require(a49_0x224b55(0x18a)),{FRAMEWORKS}=require(a49_0x224b55(0x1af)),runIntegrations=require('./integrations/command'),yargs=require('yargs'),Constants=require(a49_0x224b55(0x154)),BrowserstackCLI=require('./v2/browserstackCLI'),logger=require(a49_0x224b55(0x152))['winstonLogger'],origArgs=Object['assign']([],process[a49_0x224b55(0x157)]),captureError=async(_0x5d3c9b,_0xd0a4d7,_0x185f9e,_0x5ca778=null)=>{const _0x52ef8a=a49_0x224b55,_0x4fc2a9={'KbCLO':function(_0x359166,_0x55fb72,_0x5313e3,_0x53e770){return _0x359166(_0x55fb72,_0x5313e3,_0x53e770);},'fgwbv':'SDKTestSuccessful'};try{logger[_0x52ef8a(0x153)](_0x52ef8a(0x1ad)+origArgs['join']('\x20')),await _0x4fc2a9['KbCLO'](_0x5d3c9b,_0xd0a4d7,_0x5ca778,_0x185f9e);}catch(_0x466ec){process[_0x52ef8a(0x1d4)]=0x1,logger[_0x52ef8a(0x163)](util[_0x52ef8a(0x1cf)](_0x466ec));const _0x34b21a={'globalException':util[_0x52ef8a(0x1cf)]('%j',_0x466ec)};PerformanceTester[_0x52ef8a(0x198)](PerformanceEvents['SDK_SETUP'],![],util[_0x52ef8a(0x1cf)](_0x466ec));if(helper[_0x52ef8a(0x192)](global[_0x52ef8a(0x18e)])&&helper[_0x52ef8a(0x192)](global[_0x52ef8a(0x165)]))return;try{utilities[_0x52ef8a(0x1c9)](_0x4fc2a9['fgwbv'],_0x34b21a,global[_0x52ef8a(0x18e)],global[_0x52ef8a(0x165)]);}catch(_0x43c22d){logger[_0x52ef8a(0x155)](_0x52ef8a(0x164)+_0x43c22d[_0x52ef8a(0x1d3)]);}try{await helper['sendLogs'](global[_0x52ef8a(0x18e)]);}catch(_0x4e4136){logger[_0x52ef8a(0x155)](_0x52ef8a(0x1c8)+_0x4e4136[_0x52ef8a(0x1d3)]);}await BrowserstackCLI[_0x52ef8a(0x15a)]()[_0x52ef8a(0x1ca)](),PerformanceTester[_0x52ef8a(0x198)](PerformanceEvents[_0x52ef8a(0x17a)],![],util[_0x52ef8a(0x1cf)](_0x466ec));}finally{PerformanceTester['start'](PerformanceEvents[_0x52ef8a(0x15d)]);}};try{const browserstackFolderPath=path['join'](helper[a49_0x224b55(0x1b9)](),a49_0x224b55(0x19b));if(fs[a49_0x224b55(0x168)](browserstackFolderPath)){const filePath=path[a49_0x224b55(0x1bc)](browserstackFolderPath,a49_0x224b55(0x189));fs[a49_0x224b55(0x168)](filePath)&&fs[a49_0x224b55(0x193)](filePath);}}catch(a49_0x5b355d){logger[a49_0x224b55(0x155)](a49_0x224b55(0x167)+a49_0x5b355d['message']);}process['argv'][a49_0x224b55(0x187)](a49_0x224b55(0x194))&&(!process['argv'][a49_0x224b55(0x187)]('--opts')&&process['argv']['push'](a49_0x224b55(0x1a0)),!process[a49_0x224b55(0x157)][a49_0x224b55(0x171)](_0xc8304e=>_0xc8304e['includes'](a49_0x224b55(0x16d)))&&process[a49_0x224b55(0x157)][a49_0x224b55(0x15e)](a49_0x224b55(0x18f)),!process[a49_0x224b55(0x157)][a49_0x224b55(0x187)](a49_0x224b55(0x1c6))&&process[a49_0x224b55(0x157)][a49_0x224b55(0x15e)]('--no-package'),helper[a49_0x224b55(0x181)](process[a49_0x224b55(0x157)],a49_0x224b55(0x1cd),a49_0x224b55(0x15f)));PerformanceTester[a49_0x224b55(0x19e)](PerformanceEvents[a49_0x224b55(0x17a)]);const a49_0x2db32b={};a49_0x2db32b['dot-notation']=![];const argv=yargs[a49_0x224b55(0x159)](a49_0x2db32b)['usage'](a49_0x224b55(0x185))[a49_0x224b55(0x180)]('v',a49_0x224b55(0x1ac))['describe']('v')[a49_0x224b55(0x180)]('h','help')['help'](a49_0x224b55(0x1aa))[a49_0x224b55(0x17d)](!![],Constants[a49_0x224b55(0x1b7)]['HELP'])[a49_0x224b55(0x1ae)](a49_0x224b55(0x1b5),Constants[a49_0x224b55(0x1a1)][a49_0x224b55(0x182)],function(_0x279ac3){const _0x59fd11=a49_0x224b55,_0x482ee={'hqHqt':_0x59fd11(0x1b5),'aExMx':function(_0x4ddb1d,_0x5449db,_0x2e3143,_0x4cf7e3,_0x50d64f){return _0x4ddb1d(_0x5449db,_0x2e3143,_0x4cf7e3,_0x50d64f);},'BJwiG':function(_0x1a5f60,_0x3c0967){return _0x1a5f60(_0x3c0967);},'kQSvr':_0x59fd11(0x184)},_0x922879=process['argv']['slice'](0x2);helper[_0x59fd11(0x19d)](),helper[_0x59fd11(0x19c)]();const _0x5e0f5d=new BrowserStackSetup(_0x279ac3[_0x59fd11(0x157)],_0x482ee[_0x59fd11(0x196)]);return _0x482ee['aExMx'](captureError,_0x482ee['BJwiG'](require,_0x482ee[_0x59fd11(0x1b3)]),_0x279ac3[_0x59fd11(0x157)],_0x5e0f5d,_0x922879);})[a49_0x224b55(0x1ae)]('mocha',Constants['MOCHA'][a49_0x224b55(0x182)],_0x5aa025=>{const _0x39c5ac=a49_0x224b55,_0x34db7b={'VYoeG':function(_0x2c4013,_0x352f6e,_0x291e23,_0x35e25b){return _0x2c4013(_0x352f6e,_0x291e23,_0x35e25b);},'rrTgk':function(_0xfa5643,_0x5d50ef){return _0xfa5643(_0x5d50ef);},'zhihF':'./mocha/command','uRfyb':_0x39c5ac(0x194),'yBDIJ':_0x39c5ac(0x177),'QBHVT':function(_0x1886ef,_0x4c49b1,_0x3c25d5){return _0x1886ef(_0x4c49b1,_0x3c25d5);},'SwQYv':_0x39c5ac(0x151),'mKXHD':_0x39c5ac(0x178),'cbLXT':function(_0x1b87bb,_0xc796bd,_0x2070ce){return _0x1b87bb(_0xc796bd,_0x2070ce);},'IAKYM':_0x39c5ac(0x1a3),'rFBew':function(_0x51be1a){return _0x51be1a();}};process[_0x39c5ac(0x157)]=process[_0x39c5ac(0x157)]['slice'](0x1),helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable']();const _0x191066=new BrowserStackSetup(_0x5aa025[_0x39c5ac(0x157)],_0x34db7b[_0x39c5ac(0x170)]);logger[_0x39c5ac(0x155)](_0x34db7b[_0x39c5ac(0x17c)]);const _0x4bbd24=_0x34db7b['QBHVT'](requireModule,_0x34db7b[_0x39c5ac(0x156)],_0x34db7b[_0x39c5ac(0x170)]),_0x48e0a1=_0x34db7b[_0x39c5ac(0x186)](requireModule,_0x34db7b['mKXHD'],_0x34db7b['uRfyb']);delete _0x4bbd24['handler'],_0x4bbd24[_0x39c5ac(0x18d)]=function(_0x13e472){const _0x425a75=_0x39c5ac;return _0x34db7b[_0x425a75(0x174)](captureError,_0x34db7b[_0x425a75(0x1c5)](require,_0x34db7b['zhihF']),_0x13e472,_0x191066);},_0x48e0a1[_0x39c5ac(0x1c2)]=_0x4bbd24;const {main:_0xd7b103}=_0x34db7b[_0x39c5ac(0x15c)](requireModule,_0x34db7b[_0x39c5ac(0x1be)],_0x34db7b[_0x39c5ac(0x170)]);_0x34db7b['rFBew'](_0xd7b103);})[a49_0x224b55(0x1ae)]('cucumber-js',Constants['CUCUMBER'][a49_0x224b55(0x182)],function(_0x5666f0){const _0x4d68fb=a49_0x224b55,_0x35d0e8={'YnJzW':_0x4d68fb(0x183),'FojnO':function(_0x575d4b,_0x3f4a46,_0x1c65ed,_0x2ebb55,_0x37fe7a){return _0x575d4b(_0x3f4a46,_0x1c65ed,_0x2ebb55,_0x37fe7a);},'UwySG':function(_0x1a505a,_0x2dc3db){return _0x1a505a(_0x2dc3db);},'uKKfW':_0x4d68fb(0x1d6)},_0xb0c1f0=process['argv'][_0x4d68fb(0x16f)](0x2),_0x5b18d6=new BrowserStackSetup(_0x5666f0[_0x4d68fb(0x157)],_0x35d0e8[_0x4d68fb(0x179)]);return _0x35d0e8[_0x4d68fb(0x191)](captureError,_0x35d0e8[_0x4d68fb(0x1b6)](require,_0x35d0e8[_0x4d68fb(0x1b1)]),_0x5666f0[_0x4d68fb(0x157)],_0x5b18d6,_0xb0c1f0);})['command'](a49_0x224b55(0x17e),Constants['VANILLA'][a49_0x224b55(0x182)],function(_0x532ce3){const _0x1c89ed=a49_0x224b55,_0x552a7b={'NRTag':_0x1c89ed(0x17b),'IfQMn':function(_0x193d39,_0x2a58e6,_0x4237d8,_0x27beed,_0x5e174c){return _0x193d39(_0x2a58e6,_0x4237d8,_0x27beed,_0x5e174c);},'jGCrM':function(_0x1072e6,_0x540f4d){return _0x1072e6(_0x540f4d);},'ysIKM':_0x1c89ed(0x1a4)},_0x3f18e0=process['argv'][_0x1c89ed(0x16f)](0x2),_0x2044b7=new BrowserStackSetup(_0x532ce3[_0x1c89ed(0x157)],_0x552a7b[_0x1c89ed(0x1a8)]);return _0x552a7b['IfQMn'](captureError,_0x552a7b[_0x1c89ed(0x1b4)](require,_0x552a7b[_0x1c89ed(0x16b)]),_0x532ce3[_0x1c89ed(0x157)],_0x2044b7,_0x3f18e0);})[a49_0x224b55(0x1ae)]('nightwatch',Constants['NIGHTWATCH'][a49_0x224b55(0x182)],function(_0x24399f){const _0x27b098=a49_0x224b55,_0x5864ba={'UOIbG':function(_0x5eb854,_0x5dfc78,_0x4a16c7,_0x1f6cca,_0x1692cf){return _0x5eb854(_0x5dfc78,_0x4a16c7,_0x1f6cca,_0x1692cf);},'Cbwma':function(_0x1c15e9,_0x153214){return _0x1c15e9(_0x153214);},'CkULP':_0x27b098(0x1c0)},_0x353ee7=process[_0x27b098(0x157)][_0x27b098(0x16f)](0x2),_0x10d253=new BrowserStackSetup(_0x24399f[_0x27b098(0x157)]);return _0x5864ba[_0x27b098(0x160)](captureError,_0x5864ba['Cbwma'](require,_0x5864ba[_0x27b098(0x1c7)]),_0x24399f[_0x27b098(0x157)],_0x10d253,_0x353ee7);})['command']('codeceptjs',Constants['CODECEPTJS'][a49_0x224b55(0x182)],function(_0x3f1143){const _0x6d72da=a49_0x224b55,_0x1035b5={'Fqhsy':'codeceptjs','QiIAk':function(_0x2db019,_0x52e529,_0x49260a,_0x2dc24c,_0x15e04f){return _0x2db019(_0x52e529,_0x49260a,_0x2dc24c,_0x15e04f);},'qxUEr':function(_0xb3fb93,_0xb0fb8f){return _0xb3fb93(_0xb0fb8f);},'NtAyD':_0x6d72da(0x19f)},_0x12cb64=process[_0x6d72da(0x157)][_0x6d72da(0x16f)](0x2),_0xb8162a=new BrowserStackSetup(_0x3f1143[_0x6d72da(0x157)],_0x1035b5[_0x6d72da(0x1c1)]);return _0x1035b5[_0x6d72da(0x195)](captureError,_0x1035b5[_0x6d72da(0x199)](require,_0x1035b5[_0x6d72da(0x18c)]),_0x3f1143[_0x6d72da(0x157)],_0xb8162a,_0x12cb64);})[a49_0x224b55(0x1ae)](a49_0x224b55(0x1d0),Constants[a49_0x224b55(0x1cc)]['INFO'],function(_0x36eb37){const _0x53ee79=a49_0x224b55,_0x4dc84f={'dNqkw':function(_0x2aa228,_0x52bc5c,_0x1c3922){return _0x2aa228(_0x52bc5c,_0x1c3922);},'VXUFK':function(_0x33cc46,_0x4f145d){return _0x33cc46(_0x4f145d);},'sprfk':_0x53ee79(0x18b)},_0x7ac29d=process[_0x53ee79(0x157)][_0x53ee79(0x16f)](0x2);return _0x4dc84f['dNqkw'](captureError,_0x4dc84f['VXUFK'](require,_0x4dc84f[_0x53ee79(0x1a2)]),_0x36eb37);})['command'](a49_0x224b55(0x19a),Constants[a49_0x224b55(0x1a6)]['INFO'],function(_0x2cb1cf){const _0x3b0da6=a49_0x224b55,_0x856522={'FnFIm':function(_0x4a1e55,_0x32eaf2){return _0x4a1e55(_0x32eaf2);}};return _0x856522[_0x3b0da6(0x1bd)](runIntegrations,_0x2cb1cf);})['command']('playwright',Constants[a49_0x224b55(0x1b0)]['INFO'],function(_0x1f4a18){const _0x51686d=a49_0x224b55,_0x27ce31={'VraHm':function(_0x10ccfd,_0x3bfbb5,_0x3eb3c0,_0x213fb1,_0x12ca2f){return _0x10ccfd(_0x3bfbb5,_0x3eb3c0,_0x213fb1,_0x12ca2f);},'RuszK':function(_0xe3c26,_0x1b2e6d){return _0xe3c26(_0x1b2e6d);},'ufBZN':_0x51686d(0x16c)},_0x1f9eed=process[_0x51686d(0x157)][_0x51686d(0x16f)](0x2);helper[_0x51686d(0x1a9)](process[_0x51686d(0x157)])&&(process[_0x51686d(0x1ce)][_0x51686d(0x188)]=helper[_0x51686d(0x1a9)](process[_0x51686d(0x157)]));helper['setTestObservabilityDisable'](),helper[_0x51686d(0x19c)]();const _0x151cf9=new BrowserStackSetup(_0x1f4a18[_0x51686d(0x157)],FRAMEWORKS[_0x51686d(0x1b0)]);return _0x27ce31['VraHm'](captureError,_0x27ce31['RuszK'](require,_0x27ce31[_0x51686d(0x1ab)]),_0x1f4a18[_0x51686d(0x157)],_0x151cf9,_0x1f9eed);})[a49_0x224b55(0x1ae)](a49_0x224b55(0x1b2),'Runs\x20the\x20binary\x20with\x20load\x20command',function(_0x598896){const _0x322751=a49_0x224b55,_0x56454={};_0x56454[_0x322751(0x1ba)]='help',_0x56454[_0x322751(0x1d2)]=_0x322751(0x16e),_0x56454['IrPsK']=_0x322751(0x175);const _0x36adc9=_0x56454;return _0x598896[_0x322751(0x1aa)](![])[_0x322751(0x150)](_0x36adc9['EkwDy'],{'alias':'h','type':_0x36adc9[_0x322751(0x1d2)],'describe':_0x36adc9[_0x322751(0x1b8)]})[_0x322751(0x197)](![])['exitProcess'](![]);},function(_0x81d223){const _0x19424b=a49_0x224b55,_0xc1637b={'frYYX':function(_0x5759db,_0x29cc71,_0xd02e12){return _0x5759db(_0x29cc71,_0xd02e12);},'WAZnS':function(_0x17c4e2,_0x5af2d1){return _0x17c4e2(_0x5af2d1);},'BcguS':'./load/index'},_0x55455d={};return _0x55455d[_0x19424b(0x157)]=_0x81d223,_0xc1637b[_0x19424b(0x15b)](captureError,_0xc1637b[_0x19424b(0x1c3)](require,_0xc1637b['BcguS']),_0x55455d);})['demandCommand'](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')['wrap'](null)[a49_0x224b55(0x157)];!helper[a49_0x224b55(0x192)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a49_0x224b55(0x1d0)&&console[a49_0x224b55(0x163)]('Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.');
|
|
2
|
+
'use strict';function a49_0x1305(_0x4403e2,_0xc2306c){const _0x203ead=a49_0x203e();return a49_0x1305=function(_0x13052d,_0x56e7a7){_0x13052d=_0x13052d-0x124;let _0x45a7cc=_0x203ead[_0x13052d];return _0x45a7cc;},a49_0x1305(_0x4403e2,_0xc2306c);}const a49_0x19de24=a49_0x1305;(function(_0x474470,_0xed5ac7){const _0x520129=a49_0x1305,_0x2e2b64=_0x474470();while(!![]){try{const _0x24298c=-parseInt(_0x520129(0x185))/0x1+-parseInt(_0x520129(0x139))/0x2+-parseInt(_0x520129(0x1b1))/0x3*(parseInt(_0x520129(0x19a))/0x4)+-parseInt(_0x520129(0x15b))/0x5*(-parseInt(_0x520129(0x188))/0x6)+-parseInt(_0x520129(0x132))/0x7*(-parseInt(_0x520129(0x169))/0x8)+-parseInt(_0x520129(0x1ab))/0x9+parseInt(_0x520129(0x177))/0xa;if(_0x24298c===_0xed5ac7)break;else _0x2e2b64['push'](_0x2e2b64['shift']());}catch(_0x2b31fd){_0x2e2b64['push'](_0x2e2b64['shift']());}}}(a49_0x203e,0x3401c));const fs=require('fs'),path=require(a49_0x19de24(0x159)),util=require('util'),spawn=require(a49_0x19de24(0x129))['spawn'],{requireModule}=require(a49_0x19de24(0x1ac)),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require('../helpers/performance/constants')[a49_0x19de24(0x164)],helper=require(a49_0x19de24(0x1ac)),utilities=require(a49_0x19de24(0x178)),{default:BrowserStackSetup}=require(a49_0x19de24(0x194)),{FRAMEWORKS}=require('../helpers/test-observability/constants'),runIntegrations=require(a49_0x19de24(0x19e)),yargs=require(a49_0x19de24(0x1a5)),Constants=require(a49_0x19de24(0x1a2)),BrowserstackCLI=require(a49_0x19de24(0x168)),logger=require(a49_0x19de24(0x135))[a49_0x19de24(0x1ae)],origArgs=Object[a49_0x19de24(0x17c)]([],process['argv']),captureError=async(_0x253a4a,_0x5ab249,_0x3f7f75,_0x13fcd5=null)=>{const _0x1a5915=a49_0x19de24,_0x320468={'eNTiK':function(_0x20997c,_0x4bd7bd,_0x333df4,_0x563642){return _0x20997c(_0x4bd7bd,_0x333df4,_0x563642);},'xIenC':'SDKTestSuccessful'};try{logger[_0x1a5915(0x138)](_0x1a5915(0x1a9)+origArgs[_0x1a5915(0x140)]('\x20')),await _0x320468[_0x1a5915(0x14f)](_0x253a4a,_0x5ab249,_0x13fcd5,_0x3f7f75);}catch(_0xd7f0f9){process[_0x1a5915(0x13b)]=0x1,logger[_0x1a5915(0x131)](util[_0x1a5915(0x16a)](_0xd7f0f9));const _0x416b2b={'globalException':util[_0x1a5915(0x16a)]('%j',_0xd7f0f9)};PerformanceTester['end'](PerformanceEvents[_0x1a5915(0x136)],![],util[_0x1a5915(0x16a)](_0xd7f0f9));if(helper[_0x1a5915(0x1ad)](global[_0x1a5915(0x165)])&&helper[_0x1a5915(0x1ad)](global['framework']))return;try{utilities['fireFunnelTestEvent'](_0x320468['xIenC'],_0x416b2b,global['config'],global[_0x1a5915(0x1a1)]);}catch(_0x3da185){logger[_0x1a5915(0x192)](_0x1a5915(0x18b)+_0x3da185['stack']);}try{await helper[_0x1a5915(0x16c)](global[_0x1a5915(0x165)]);}catch(_0x361e01){logger[_0x1a5915(0x192)](_0x1a5915(0x146)+_0x361e01['stack']);}await BrowserstackCLI['getInstance']()[_0x1a5915(0x1af)](),PerformanceTester[_0x1a5915(0x179)](PerformanceEvents['SDK_SETUP'],![],util[_0x1a5915(0x16a)](_0xd7f0f9));}finally{PerformanceTester['start'](PerformanceEvents['SDK_CLEANUP']);}};try{const browserstackFolderPath=path['join'](helper[a49_0x19de24(0x1aa)](),a49_0x19de24(0x1a4));if(fs[a49_0x19de24(0x1a3)](browserstackFolderPath)){const filePath=path[a49_0x19de24(0x140)](browserstackFolderPath,a49_0x19de24(0x18e));fs[a49_0x19de24(0x1a3)](filePath)&&fs[a49_0x19de24(0x145)](filePath);}}catch(a49_0x97d714){logger['debug']('Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'+a49_0x97d714[a49_0x19de24(0x160)]);}process[a49_0x19de24(0x17f)][a49_0x19de24(0x17d)](a49_0x19de24(0x18c))&&(!process[a49_0x19de24(0x17f)][a49_0x19de24(0x17d)](a49_0x19de24(0x167))&&process[a49_0x19de24(0x17f)][a49_0x19de24(0x12a)](a49_0x19de24(0x133)),!process['argv'][a49_0x19de24(0x16e)](_0x20dd3f=>_0x20dd3f['includes'](a49_0x19de24(0x158)))&&process[a49_0x19de24(0x17f)][a49_0x19de24(0x12a)](a49_0x19de24(0x134)),!process['argv'][a49_0x19de24(0x17d)](a49_0x19de24(0x147))&&process[a49_0x19de24(0x17f)][a49_0x19de24(0x12a)](a49_0x19de24(0x191)),helper[a49_0x19de24(0x15f)](process['argv'],a49_0x19de24(0x142),a49_0x19de24(0x124)));PerformanceTester[a49_0x19de24(0x130)](PerformanceEvents['SDK_SETUP']);const a49_0x57496c={};a49_0x57496c[a49_0x19de24(0x1b0)]=![];function a49_0x203e(){const _0x5f1db2=['includes','playwright','argv','getConfigPath','integrations','UvMbv','Parsing\x20command\x20line\x20arguments','./playwright/command','132466oWDbrX','azqqy','IOqOt','606aKmrmJ','ats','RBBvc','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','mocha','rBvQl','.local-not-set.json','bTJhX','tQKyW','--no-package','debug','yqcGg','../helpers/BrowserStackSetup','kfvzl','CUCUMBER','load\x20[subcommand]','jdLdU','RZkrG','195964ILyomc','alias','BROWSERSTACK_CONFIG_FILE_PATH','ZCukJ','./integrations/command','JvHvf','MOCHA','framework','./utils/constants','existsSync','.browserstack','yargs','zTgLA','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','RXwdJ','Running\x20SDK\x20with\x20args\x20','homedir','1874565MMUuCq','../helpers/helper','isUndefined','winstonLogger','stop','dot-notation','9AOCpWN','--mochaRequire','uCasm','JsuvH','codeceptjs','exitProcess','child_process','push','LgAvv','NIGHTWATCH','handler','Show\x20help','wrap','start','error','1057kggGmg','--no-opts','--no-config','../helpers/logger','SDK_SETUP','HELP','info','612756WIDwqK','parserConfiguration','exitCode','describe','showHelpOnFail','ciaJx','tvobu','join','cucumber-js','--require','jest','./jest/command','unlinkSync','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','--package','yhmIM','ROESQ','Jjtgk','usage','setBrowserStackAutomationDisable','./load/index','orafm','eNTiK','Runs\x20the\x20binary\x20with\x20load\x20command','INTEGRATIONS','laddI','command','setTestObservabilityDisable','blyaL','option','PLAYWRIGHT','--config','path','mocha/lib/cli/run.js','15310QVQiuF','JEST','slice','run','findAndReplace','message','YsKxL','hauDm','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','EVENTS','config','wrobc','--opts','./v2/browserstackCLI','10000OiaUBY','format','mocha/lib/cli/cli.js','sendLogs','qfsjy','find','oOujh','rCTRV','CwQcE','help','WQQIU','KLlWr','INFO','CODECEPTJS','5091100WwbumH','../helpers/utilities','end','yompw','RsKSn','assign'];a49_0x203e=function(){return _0x5f1db2;};return a49_0x203e();}const argv=yargs[a49_0x19de24(0x13a)](a49_0x57496c)[a49_0x19de24(0x14b)]('usage:\x20$0\x20<command>\x20[args]')[a49_0x19de24(0x19b)]('v','version')[a49_0x19de24(0x13c)]('v')[a49_0x19de24(0x19b)]('h',a49_0x19de24(0x172))[a49_0x19de24(0x172)]('help')[a49_0x19de24(0x13d)](!![],Constants['VERSION'][a49_0x19de24(0x137)])['command'](a49_0x19de24(0x143),Constants[a49_0x19de24(0x15c)][a49_0x19de24(0x175)],function(_0xaf6f98){const _0x31f7c8=a49_0x19de24,_0x2555c7={'xhqVR':_0x31f7c8(0x143),'yqcGg':function(_0xe6aaf5,_0x55eb97,_0x565e59,_0x1fd43f,_0x5b8902){return _0xe6aaf5(_0x55eb97,_0x565e59,_0x1fd43f,_0x5b8902);},'bGRzW':function(_0x52d232,_0x2ad426){return _0x52d232(_0x2ad426);},'CwQcE':_0x31f7c8(0x144)},_0x294059=process['argv'][_0x31f7c8(0x15d)](0x2);helper[_0x31f7c8(0x154)](),helper['setBrowserStackAutomationDisable']();const _0x1aaf01=new BrowserStackSetup(_0xaf6f98[_0x31f7c8(0x17f)],_0x2555c7['xhqVR']);return _0x2555c7[_0x31f7c8(0x193)](captureError,_0x2555c7['bGRzW'](require,_0x2555c7[_0x31f7c8(0x171)]),_0xaf6f98['argv'],_0x1aaf01,_0x294059);})['command']('mocha',Constants[a49_0x19de24(0x1a0)][a49_0x19de24(0x175)],_0x5d0829=>{const _0x25e044=a49_0x19de24,_0x57ceb2={'RsKSn':function(_0xb69f52,_0x1e1aa0,_0x45a5d2,_0x2e784f){return _0xb69f52(_0x1e1aa0,_0x45a5d2,_0x2e784f);},'tvobu':function(_0xa1c320,_0x3055ab){return _0xa1c320(_0x3055ab);},'IOqOt':'./mocha/command','RBBvc':_0x25e044(0x18c),'RXwdJ':_0x25e044(0x183),'hauDm':function(_0x3a8e84,_0x12f341,_0xb5fa3b){return _0x3a8e84(_0x12f341,_0xb5fa3b);},'KLlWr':_0x25e044(0x15a),'LgAvv':'mocha/lib/cli/commands.js','DmOQw':function(_0x1496a7,_0x389af9,_0x59913a){return _0x1496a7(_0x389af9,_0x59913a);},'yhmIM':_0x25e044(0x16b),'laddI':function(_0x363e09){return _0x363e09();}};process[_0x25e044(0x17f)]=process[_0x25e044(0x17f)]['slice'](0x1),helper[_0x25e044(0x154)](),helper[_0x25e044(0x14c)]();const _0x132e57=new BrowserStackSetup(_0x5d0829[_0x25e044(0x17f)],_0x57ceb2[_0x25e044(0x18a)]);logger[_0x25e044(0x192)](_0x57ceb2[_0x25e044(0x1a8)]);const _0x250acf=_0x57ceb2[_0x25e044(0x162)](requireModule,_0x57ceb2[_0x25e044(0x174)],_0x57ceb2[_0x25e044(0x18a)]),_0x1e37af=_0x57ceb2[_0x25e044(0x162)](requireModule,_0x57ceb2[_0x25e044(0x12b)],_0x57ceb2[_0x25e044(0x18a)]);delete _0x250acf[_0x25e044(0x12d)],_0x250acf[_0x25e044(0x12d)]=function(_0xeaaa81){const _0x5da621=_0x25e044;return _0x57ceb2[_0x5da621(0x17b)](captureError,_0x57ceb2[_0x5da621(0x13f)](require,_0x57ceb2[_0x5da621(0x187)]),_0xeaaa81,_0x132e57);},_0x1e37af[_0x25e044(0x15e)]=_0x250acf;const {main:_0x5976f5}=_0x57ceb2['DmOQw'](requireModule,_0x57ceb2[_0x25e044(0x148)],_0x57ceb2[_0x25e044(0x18a)]);_0x57ceb2[_0x25e044(0x152)](_0x5976f5);})[a49_0x19de24(0x153)](a49_0x19de24(0x141),Constants[a49_0x19de24(0x196)][a49_0x19de24(0x175)],function(_0x5a4ed5){const _0x37c78c=a49_0x19de24,_0x50b60c={'Jjtgk':_0x37c78c(0x141),'bTJhX':function(_0x538c23,_0x3a25f4,_0x50be1d,_0x19022b,_0x5cb612){return _0x538c23(_0x3a25f4,_0x50be1d,_0x19022b,_0x5cb612);},'azqqy':function(_0x45c9a6,_0x573a86){return _0x45c9a6(_0x573a86);},'ciaJx':'./cucumber-js/command'},_0x304935=process[_0x37c78c(0x17f)][_0x37c78c(0x15d)](0x2),_0x34232e=new BrowserStackSetup(_0x5a4ed5[_0x37c78c(0x17f)],_0x50b60c[_0x37c78c(0x14a)]);return _0x50b60c[_0x37c78c(0x18f)](captureError,_0x50b60c[_0x37c78c(0x186)](require,_0x50b60c[_0x37c78c(0x13e)]),_0x5a4ed5[_0x37c78c(0x17f)],_0x34232e,_0x304935);})['command']('node',Constants['VANILLA']['INFO'],function(_0x332bf7){const _0x498312=a49_0x19de24,_0xe31e4f={'UIdCK':'vanilla','oOujh':function(_0x3d1860,_0x440332,_0x509c19,_0x188c10,_0x14eed4){return _0x3d1860(_0x440332,_0x509c19,_0x188c10,_0x14eed4);},'wrobc':function(_0x53fffb,_0x31b0be){return _0x53fffb(_0x31b0be);},'BcqDd':'./vanilla-js/command'},_0x5b9150=process[_0x498312(0x17f)][_0x498312(0x15d)](0x2),_0x3719a0=new BrowserStackSetup(_0x332bf7['argv'],_0xe31e4f['UIdCK']);return _0xe31e4f[_0x498312(0x16f)](captureError,_0xe31e4f[_0x498312(0x166)](require,_0xe31e4f['BcqDd']),_0x332bf7[_0x498312(0x17f)],_0x3719a0,_0x5b9150);})[a49_0x19de24(0x153)]('nightwatch',Constants[a49_0x19de24(0x12c)][a49_0x19de24(0x175)],function(_0x400388){const _0x1740a6=a49_0x19de24,_0x3d86dd={'YsKxL':function(_0x7e8cd2,_0x58e9bc,_0x4dfcd2,_0xcb687,_0x58b89d){return _0x7e8cd2(_0x58e9bc,_0x4dfcd2,_0xcb687,_0x58b89d);},'zTgLA':function(_0x2a6e86,_0x3925b1){return _0x2a6e86(_0x3925b1);},'JvHvf':'./nightwatch/command'},_0x535f5e=process['argv'][_0x1740a6(0x15d)](0x2),_0x34b011=new BrowserStackSetup(_0x400388[_0x1740a6(0x17f)]);return _0x3d86dd[_0x1740a6(0x161)](captureError,_0x3d86dd[_0x1740a6(0x1a6)](require,_0x3d86dd[_0x1740a6(0x19f)]),_0x400388[_0x1740a6(0x17f)],_0x34b011,_0x535f5e);})[a49_0x19de24(0x153)]('codeceptjs',Constants[a49_0x19de24(0x176)][a49_0x19de24(0x175)],function(_0x30c42c){const _0x392e09=a49_0x19de24,_0x4a9a03={'MVROv':_0x392e09(0x127),'uCasm':function(_0x478bcb,_0x542b6e,_0x4f3605,_0x5e9a2b,_0x34d4d9){return _0x478bcb(_0x542b6e,_0x4f3605,_0x5e9a2b,_0x34d4d9);},'kfvzl':function(_0xbb5291,_0xfa2674){return _0xbb5291(_0xfa2674);},'rBvQl':'./codeceptjs/command'},_0x140ba0=process[_0x392e09(0x17f)][_0x392e09(0x15d)](0x2),_0x2875e7=new BrowserStackSetup(_0x30c42c[_0x392e09(0x17f)],_0x4a9a03['MVROv']);return _0x4a9a03[_0x392e09(0x125)](captureError,_0x4a9a03[_0x392e09(0x195)](require,_0x4a9a03[_0x392e09(0x18d)]),_0x30c42c[_0x392e09(0x17f)],_0x2875e7,_0x140ba0);})['command'](a49_0x19de24(0x189),Constants['HST']['INFO'],function(_0x47fc47){const _0x5a7a39=a49_0x19de24,_0x10beba={'ROESQ':function(_0x1bbb7a,_0x566d44,_0x51c5f2){return _0x1bbb7a(_0x566d44,_0x51c5f2);},'qfsjy':function(_0x5dd04d,_0x2f33b0){return _0x5dd04d(_0x2f33b0);},'JsuvH':'../../ats/src/index'},_0x4d343d=process[_0x5a7a39(0x17f)]['slice'](0x2);return _0x10beba[_0x5a7a39(0x149)](captureError,_0x10beba[_0x5a7a39(0x16d)](require,_0x10beba[_0x5a7a39(0x126)]),_0x47fc47);})[a49_0x19de24(0x153)](a49_0x19de24(0x181),Constants[a49_0x19de24(0x151)][a49_0x19de24(0x175)],function(_0x2a2d4f){const _0x3ad5fb=a49_0x19de24,_0x1263f6={'blyaL':function(_0x537ca4,_0x5b7cad){return _0x537ca4(_0x5b7cad);}};return _0x1263f6[_0x3ad5fb(0x155)](runIntegrations,_0x2a2d4f);})[a49_0x19de24(0x153)](a49_0x19de24(0x17e),Constants[a49_0x19de24(0x157)][a49_0x19de24(0x175)],function(_0x54e88e){const _0x57f728=a49_0x19de24,_0x44c849={'RZkrG':function(_0x9d8b45,_0x6579b,_0x187647,_0x32b9d0,_0x4d10fd){return _0x9d8b45(_0x6579b,_0x187647,_0x32b9d0,_0x4d10fd);},'tQKyW':function(_0xd7649,_0x3b3cd7){return _0xd7649(_0x3b3cd7);},'WQQIU':_0x57f728(0x184)},_0x45ec26=process[_0x57f728(0x17f)][_0x57f728(0x15d)](0x2);helper[_0x57f728(0x180)](process[_0x57f728(0x17f)])&&(process['env'][_0x57f728(0x19c)]=helper['getConfigPath'](process[_0x57f728(0x17f)]));helper[_0x57f728(0x154)](),helper[_0x57f728(0x14c)]();const _0x143ac8=new BrowserStackSetup(_0x54e88e[_0x57f728(0x17f)],FRAMEWORKS[_0x57f728(0x157)]);return _0x44c849[_0x57f728(0x199)](captureError,_0x44c849[_0x57f728(0x190)](require,_0x44c849[_0x57f728(0x173)]),_0x54e88e[_0x57f728(0x17f)],_0x143ac8,_0x45ec26);})['command'](a49_0x19de24(0x197),a49_0x19de24(0x150),function(_0x9e6506){const _0x1b4059=a49_0x19de24,_0x20f03a={};_0x20f03a[_0x1b4059(0x198)]=_0x1b4059(0x172),_0x20f03a[_0x1b4059(0x182)]='boolean',_0x20f03a[_0x1b4059(0x170)]=_0x1b4059(0x12e);const _0x42e8c6=_0x20f03a;return _0x9e6506[_0x1b4059(0x172)](![])[_0x1b4059(0x156)](_0x42e8c6['jdLdU'],{'alias':'h','type':_0x42e8c6[_0x1b4059(0x182)],'describe':_0x42e8c6[_0x1b4059(0x170)]})['strict'](![])[_0x1b4059(0x128)](![]);},function(_0x52e0b7){const _0x58a3e5=a49_0x19de24,_0x18c1b5={'yompw':function(_0x45a23f,_0x5ccfe0,_0x18cf6a){return _0x45a23f(_0x5ccfe0,_0x18cf6a);},'orafm':function(_0x16b189,_0x3aca61){return _0x16b189(_0x3aca61);},'ZCukJ':_0x58a3e5(0x14d)},_0x3a1cf9={};return _0x3a1cf9[_0x58a3e5(0x17f)]=_0x52e0b7,_0x18c1b5[_0x58a3e5(0x17a)](captureError,_0x18c1b5[_0x58a3e5(0x14e)](require,_0x18c1b5[_0x58a3e5(0x19d)]),_0x3a1cf9);})['demandCommand'](0x1,a49_0x19de24(0x163))[a49_0x19de24(0x12f)](null)['argv'];!helper['isUndefined'](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a49_0x19de24(0x189)&&console[a49_0x19de24(0x131)](a49_0x19de24(0x1a7));
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const a50_0x442ee9=a50_0x1d5f;(function(_0x5978f8,_0x1930cd){const _0x15b176=a50_0x1d5f,_0x2d6e46=_0x5978f8();while(!![]){try{const _0x5b36e9=-parseInt(_0x15b176(0xb6))/0x1+-parseInt(_0x15b176(0xde))/0x2*(parseInt(_0x15b176(0xc6))/0x3)+parseInt(_0x15b176(0xb4))/0x4*(-parseInt(_0x15b176(0xdb))/0x5)+-parseInt(_0x15b176(0xc7))/0x6+parseInt(_0x15b176(0xdd))/0x7*(parseInt(_0x15b176(0xd9))/0x8)+-parseInt(_0x15b176(0xda))/0x9*(parseInt(_0x15b176(0xc9))/0xa)+parseInt(_0x15b176(0xf1))/0xb;if(_0x5b36e9===_0x1930cd)break;else _0x2d6e46['push'](_0x2d6e46['shift']());}catch(_0x9eee02){_0x2d6e46['push'](_0x2d6e46['shift']());}}}(a50_0x3528,0xa77a8));function a50_0x1d5f(_0x2e13f1,_0x321adb){const _0x352832=a50_0x3528();return a50_0x1d5f=function(_0x1d5f94,_0x52f2ab){_0x1d5f94=_0x1d5f94-0xb3;let _0x5be7a1=_0x352832[_0x1d5f94];return _0x5be7a1;},a50_0x1d5f(_0x2e13f1,_0x321adb);}function a50_0x3528(){const _0x37590d=['yargs','Setup\x20completed','ywJIS','lROGS','/../../browserstack.yml.sample','WdXxz','node-setup','4rOjiXA','cucumber-js','732472WEtdRU','utf8','VpcCn','username','entries','XeqLD','includes','browserstack-node-sdk\x20','Creating\x20configuration\x20file...','fsiQV','../helpers/utilities','WvjRP','../helpers/helper','IAIOK','argv','ZlOzD','6PGAnrt','6663108DDRCTA','playwright','30wHlFZh','SDKSetup','writeFileSync','push','stringify','lxfoH','scripts','ImhcY','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','info','LYaCb','ClxOe','cwd','postinstall','Adding\x20new\x20script(s)\x20in\x20package.json...','npm\x20update\x20browserstack-node-sdk','2244888LjmiST','431703OdJcaF','1618455LQcpJP','YOUR_ACCESS_KEY','7eDCaNO','847426kgkHAJ','replace','ohSOz','error','\x20&&\x20npm\x20update\x20browserstack-node-sdk','NHSee','debug','indexOf','node','key','length','PPGdV','LPjec','YOUR_USERNAME','/../../browserstack.pw.yml.sample','../helpers/logger','browserstack-node-sdk','Nbvci','splice','39197279Lyldqe','load'];a50_0x3528=function(){return _0x37590d;};return a50_0x3528();}const fs=require('fs'),helper=require(a50_0x442ee9(0xc2)),utilities=require(a50_0x442ee9(0xc0)),yaml=require('js-yaml'),yargs=require(a50_0x442ee9(0xf3)),logger=require(a50_0x442ee9(0xed))['winstonLogger'],configFileTemplate=__dirname+a50_0x442ee9(0xf7),configFileTemplatePW=__dirname+a50_0x442ee9(0xec),configFile=process[a50_0x442ee9(0xd5)]()+'/browserstack.yml',packageFile=process[a50_0x442ee9(0xd5)]()+'/package.json',frameworks=['mocha','jest',a50_0x442ee9(0xb5),a50_0x442ee9(0xe6),'nightwatch','codeceptjs',a50_0x442ee9(0xc8)];let config;logger[a50_0x442ee9(0xd2)](a50_0x442ee9(0xbe)),createConfigurationFile(yargs[a50_0x442ee9(0xc4)][a50_0x442ee9(0xb9)],yargs['argv'][a50_0x442ee9(0xe7)],yargs[a50_0x442ee9(0xc4)][a50_0x442ee9(0xc8)]);try{sdkSetup();}catch(a50_0x11f233){logger[a50_0x442ee9(0xe4)]('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+a50_0x11f233);}addScriptInPackageJson();function createConfigurationFile(_0x16923b,_0x556c28,_0x3d70bc=![]){const _0x4f56e6=a50_0x442ee9,_0x235827={};_0x235827[_0x4f56e6(0xf6)]=_0x4f56e6(0xb7),_0x235827[_0x4f56e6(0xc1)]=_0x4f56e6(0xeb),_0x235827[_0x4f56e6(0xd4)]=_0x4f56e6(0xdc);const _0x527a4e=_0x235827;try{let _0x29abf7=fs['readFileSync'](_0x3d70bc?configFileTemplatePW:configFileTemplate,_0x527a4e[_0x4f56e6(0xf6)]);_0x16923b&&(_0x29abf7=_0x29abf7[_0x4f56e6(0xdf)](_0x527a4e[_0x4f56e6(0xc1)],_0x16923b)),_0x556c28&&(_0x29abf7=_0x29abf7['replace'](_0x527a4e['ClxOe'],_0x556c28)),config=yaml[_0x4f56e6(0xf2)](_0x29abf7),fs[_0x4f56e6(0xcb)](configFile,_0x29abf7,_0x5624df=>{const _0x1a56dc=_0x4f56e6;_0x5624df&&logger[_0x1a56dc(0xe1)](_0x5624df);});}catch(_0x4a2ab1){logger['error'](_0x4a2ab1);}}function addPostInstallScript(_0x21978b,_0x5d2b90){const _0x13a99f=a50_0x442ee9,_0xa8f21c={};_0xa8f21c[_0x13a99f(0xef)]=_0x13a99f(0xd6),_0xa8f21c['LPjec']=_0x13a99f(0xd8),_0xa8f21c[_0x13a99f(0xe9)]=_0x13a99f(0xe2);const _0x402659=_0xa8f21c;let _0x11450f=_0x21978b[_0x402659[_0x13a99f(0xef)]];if(_0x11450f&&_0x11450f[_0x13a99f(0xbc)](_0x402659[_0x13a99f(0xea)]))return;!_0x11450f?_0x11450f=_0x402659[_0x13a99f(0xea)]:_0x11450f+=_0x402659[_0x13a99f(0xe9)],_0x5d2b90[_0x13a99f(0xcc)]([_0x402659[_0x13a99f(0xef)],_0x11450f]);}function addScriptInPackageJson(){const _0x4db8ea=a50_0x442ee9,_0x4e48f4={'fsiQV':_0x4db8ea(0xb7),'IAIOK':function(_0x555a01,_0x376c9f){return _0x555a01<_0x376c9f;},'WdXxz':function(_0x2c0712,_0xbd673e,_0x1aa6e6){return _0x2c0712(_0xbd673e,_0x1aa6e6);},'XeqLD':function(_0x3bbbb5,_0x3f5ff0){return _0x3bbbb5<_0x3f5ff0;},'lwwmz':function(_0x426bbb,_0x3380de,_0x3c1ea9){return _0x426bbb(_0x3380de,_0x3c1ea9);},'lxfoH':function(_0x1d44f4,_0x24ebfb){return _0x1d44f4!==_0x24ebfb;},'ZlOzD':_0x4db8ea(0xd7)},_0x312b49=JSON['parse'](fs['readFileSync'](packageFile,_0x4e48f4[_0x4db8ea(0xbf)])),_0x47d745=[];for(let _0xf6c498=0x0;_0x4e48f4[_0x4db8ea(0xc3)](_0xf6c498,frameworks[_0x4db8ea(0xe8)]);_0xf6c498+=0x1){const _0x5c189c=_0x4e48f4[_0x4db8ea(0xf8)](findScriptsWithFramework,_0x312b49[_0x4db8ea(0xcf)],frameworks[_0xf6c498]);for(let _0x7978f5=0x0;_0x4e48f4[_0x4db8ea(0xbb)](_0x7978f5,_0x5c189c[_0x4db8ea(0xe8)]);_0x7978f5+=0x1){_0x47d745['push'](_0x4e48f4[_0x4db8ea(0xf8)](getUpdatedCommand,_0x312b49[_0x4db8ea(0xcf)],_0x5c189c[_0x7978f5]));}_0x4e48f4['lwwmz'](addPostInstallScript,_0x312b49[_0x4db8ea(0xcf)],_0x47d745);}const _0x4bb011={..._0x312b49[_0x4db8ea(0xcf)]},_0x3afea6=_0x4bb011;for(let _0x29cc6f=0x0;_0x4e48f4[_0x4db8ea(0xbb)](_0x29cc6f,_0x47d745['length']);_0x29cc6f+=0x1){_0x3afea6[_0x47d745[_0x29cc6f][0x0]]=_0x47d745[_0x29cc6f][0x1];}_0x4e48f4[_0x4db8ea(0xce)](JSON['stringify'](_0x312b49[_0x4db8ea(0xcf)]),JSON[_0x4db8ea(0xcd)](_0x3afea6))&&(logger[_0x4db8ea(0xd2)](_0x4e48f4[_0x4db8ea(0xc5)]),_0x312b49[_0x4db8ea(0xcf)]=_0x3afea6,fs[_0x4db8ea(0xcb)](packageFile,JSON['stringify'](_0x312b49,null,0x2),_0x15daf5=>{const _0x3101ff=_0x4db8ea;_0x15daf5&&logger[_0x3101ff(0xe1)](_0x15daf5);}));};function findScriptsWithFramework(_0x22ebf7,_0x2db164){const _0x99b352=a50_0x442ee9,_0x155be1={};_0x155be1['nZHei']=function(_0x499bd8,_0x404bd2){return _0x499bd8<_0x404bd2;},_0x155be1[_0x99b352(0xd0)]=_0x99b352(0xee);const _0x29e5d7=_0x155be1,_0xe4e836=[],_0x436ab1=Object[_0x99b352(0xba)](_0x22ebf7);for(let _0x503f16=0x0;_0x29e5d7['nZHei'](_0x503f16,_0x436ab1[_0x99b352(0xe8)]);_0x503f16+=0x1){_0x436ab1[_0x503f16][0x1][_0x99b352(0xbc)](_0x2db164)&&!_0x436ab1[_0x503f16][0x1][_0x99b352(0xbc)](_0x29e5d7['ImhcY'])&&_0xe4e836[_0x99b352(0xcc)](_0x436ab1[_0x503f16][0x0]);}return _0xe4e836;}function getUpdatedCommand(_0x22b9b3,_0x478091){const _0x2f35ca=a50_0x442ee9,_0x2cd475={};_0x2cd475[_0x2f35ca(0xe3)]=function(_0x318594,_0x31cc81){return _0x318594!==_0x31cc81;},_0x2cd475[_0x2f35ca(0xb8)]=_0x2f35ca(0xee),_0x2cd475[_0x2f35ca(0xf5)]=function(_0x2534e5,_0xdb8802){return _0x2534e5===_0xdb8802;};const _0x520ac4=_0x2cd475,_0x353489=_0x478091+'-browserstack',_0x25bcbe=_0x22b9b3[_0x478091],_0x555e06=_0x25bcbe['split']('\x20');for(const _0x440434 of frameworks){if(_0x520ac4[_0x2f35ca(0xe3)](_0x555e06['indexOf'](_0x440434),-0x1)){_0x555e06[_0x2f35ca(0xf0)](_0x555e06[_0x2f35ca(0xe5)](_0x440434),0x0,_0x520ac4[_0x2f35ca(0xb8)]);break;}}let _0x4a1da6=_0x555e06['join']('\x20');return _0x520ac4['ywJIS'](_0x4a1da6,_0x25bcbe)&&(_0x4a1da6=_0x2f35ca(0xbd)+_0x25bcbe),[_0x353489,_0x4a1da6];}function sdkSetup(){const _0x2a5a64=a50_0x442ee9,_0x2b888e={};_0x2b888e[_0x2a5a64(0xe0)]=_0x2a5a64(0xb3),_0x2b888e[_0x2a5a64(0xd3)]=_0x2a5a64(0xca);const _0x5d7521=_0x2b888e;if(helper['isUndefined'](config))return;config['source']=_0x5d7521['ohSOz'];try{utilities['fireFunnelTestEvent'](_0x5d7521['LYaCb'],{},config,'');}catch(_0x2fa40e){logger['debug'](_0x2a5a64(0xd1)+_0x2fa40e);}}logger[a50_0x442ee9(0xd2)](a50_0x442ee9(0xf4));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a51_0x4705(){const _0x322ae8=['DSBRA','JcDEB','4956864gRVqWV','../../helpers/performance/constants','getStderr','lUoeN','25335FFVJyp','MCtmH','xvSdM','qCIYH','2506VdpTcI','xroQC','kZxmX','postMessage','info','../../helpers/performance/performance-tester','length','aRqJd','cucumberWorker','config','p-limit','file','worker','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','platform-run-success','getStdout','test-file-failure','VdmER','test-file-success','configuration','platformCaps','qqYMw','AzmBU','XseVL','DGUzC','../../helpers/logger','exitCode','pipe','_child','platform-run-failure','parallelVanillaRun','jest-worker','313974ZrwTVU','platform','dbHAi','worker_threads','emit','GFCkR','Exception\x20in\x20sending\x20worker\x20message\x20','util','5279130CBdNbx','5PbbxDC','platforms','EVENTS','KyJPs','error','log','winstonLogger','gLcaY','iNLqo','CRHuU','XzMSC','../../helpers/test-observability/utils','lXRxk','Workers\x20failed\x20to\x20exit\x20gracefully','./testWorker.js','emittery','SDK_SETUP','Running\x20','1214512ERdJCe','usChY','debug','vanillaWorker','resolve','stdout','3665165oRpPwW','stderr','wOgUb','parallelTestRun','map','XIksV','UNSTABLE_onCustomMessage','all','format','dKXeF','then','getWorkers','2211tFvhVN','WVblz','parallelCucumberRun','vOEui','RiYDG','end','WnlNN'];a51_0x4705=function(){return _0x322ae8;};return a51_0x4705();}const a51_0x5a1708=a51_0x4cef;(function(_0x1db93b,_0x45c730){const _0x34d1c0=a51_0x4cef,_0x37ecd2=_0x1db93b();while(!![]){try{const _0xb93243=parseInt(_0x34d1c0(0x1c2))/0x1+parseInt(_0x34d1c0(0x1c6))/0x2*(-parseInt(_0x34d1c0(0x1b5))/0x3)+-parseInt(_0x34d1c0(0x1a3))/0x4+parseInt(_0x34d1c0(0x191))/0x5*(-parseInt(_0x34d1c0(0x188))/0x6)+parseInt(_0x34d1c0(0x1a9))/0x7+parseInt(_0x34d1c0(0x1be))/0x8+parseInt(_0x34d1c0(0x190))/0x9;if(_0xb93243===_0x45c730)break;else _0x37ecd2['push'](_0x37ecd2['shift']());}catch(_0x433d31){_0x37ecd2['push'](_0x37ecd2['shift']());}}}(a51_0x4705,0x7422a));const Worker=require(a51_0x5a1708(0x187))['Worker'],Emittery=require(a51_0x5a1708(0x1a0)),pLimit=require(a51_0x5a1708(0x172)),{parentPort}=require(a51_0x5a1708(0x18b)),util=require(a51_0x5a1708(0x18f)),logger=require(a51_0x5a1708(0x181))[a51_0x5a1708(0x197)],PerformanceTester=require(a51_0x5a1708(0x16d)),PerformanceEvents=require(a51_0x5a1708(0x1bf))[a51_0x5a1708(0x193)],{debug}=require(a51_0x5a1708(0x19c)),TestHubHandler=require('../../helpers/testhub/testhubHandler');function a51_0x4cef(_0x522b38,_0x38e6c1){const _0x4705c5=a51_0x4705();return a51_0x4cef=function(_0x4ceffd,_0x31bc0b){_0x4ceffd=_0x4ceffd-0x169;let _0x2aaf03=_0x4705c5[_0x4ceffd];return _0x2aaf03;},a51_0x4cef(_0x522b38,_0x38e6c1);}exports[a51_0x5a1708(0x1ac)]=(_0x62c2cb,_0x300b87,_0x5ee30d)=>new Promise(async _0x5f031b=>{const _0x3a247e=a51_0x5a1708,_0x13a515={'wOgUb':'failureCount','KyJPs':function(_0x457626,_0x457c4b){return _0x457626+_0x457c4b;},'CRHuU':'results','lUoeN':_0x3a247e(0x19e),'qqYMw':function(_0x2bb97b,_0x376d37){return _0x2bb97b(_0x376d37);},'qCIYH':function(_0x38c759,_0x1b2195){return _0x38c759(_0x1b2195);},'aRqJd':'test-file-start','Vlfyx':'./testWorker.js','eAeLd':_0x3a247e(0x174),'lXRxk':'json','MCtmH':_0x3a247e(0x183),'VdmER':function(_0x278e4f,_0x592bd1){return _0x278e4f*_0x592bd1;},'WnlNN':'test-file-success','WVblz':_0x3a247e(0x178),'gLcaY':function(_0x587c27,_0x4b380a){return _0x587c27*_0x4b380a;}},_0x132f97=_0x5ee30d[_0x3a247e(0x171)],_0x54065c={},_0x411153=new Worker(require[_0x3a247e(0x1a7)](_0x13a515['Vlfyx']),{'exposedMethods':[_0x13a515['eAeLd']],'forkOptions':{'serialization':_0x13a515[_0x3a247e(0x19d)],'stdio':_0x13a515[_0x3a247e(0x1c3)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0x13a515[_0x3a247e(0x179)](_0x300b87,0x1),'enableWorkerThreads':!![]}),_0x58dca1=new Emittery();_0x58dca1['on'](_0x13a515[_0x3a247e(0x1bb)],_0x2e7fb=>{const _0x3ea10b=_0x3a247e;_0x54065c[_0x2e7fb[0x0]]?(_0x54065c[_0x2e7fb[0x0]][_0x13a515[_0x3ea10b(0x1ab)]]=_0x13a515[_0x3ea10b(0x194)](_0x54065c[_0x2e7fb[0x0]][_0x13a515[_0x3ea10b(0x1ab)]],_0x2e7fb[0x1][_0x13a515[_0x3ea10b(0x1ab)]]),_0x54065c[_0x2e7fb[0x0]][_0x13a515[_0x3ea10b(0x19a)]]=[..._0x54065c[_0x2e7fb[0x0]][_0x13a515['CRHuU']],..._0x2e7fb[0x1][_0x13a515['CRHuU']]]):_0x54065c[_0x2e7fb[0x0]]={'failureCount':_0x2e7fb[0x1][_0x13a515['wOgUb']],'results':[..._0x2e7fb[0x1][_0x13a515['CRHuU']]]};}),_0x58dca1['on'](_0x13a515[_0x3a247e(0x1b6)],_0x4ab8a6=>console[_0x3a247e(0x196)](_0x4ab8a6[0x1]));_0x411153[_0x3a247e(0x177)]()&&_0x411153[_0x3a247e(0x177)]()[_0x3a247e(0x183)](process['stdout']);_0x411153['getStderr']()&&_0x411153['getStderr']()[_0x3a247e(0x183)](process['stderr']);const _0x5513da=async()=>{const _0x46f478=_0x3a247e,{forceExited:_0x467312}=await _0x411153[_0x46f478(0x1ba)]();_0x467312&&console[_0x46f478(0x195)](_0x13a515[_0x46f478(0x1c1)]);try{await TestHubHandler['stop']();}catch(_0x2d4b2b){_0x13a515[_0x46f478(0x17d)](debug,_0x46f478(0x175)+_0x2d4b2b);}_0x13a515[_0x46f478(0x1c5)](_0x5f031b,_0x54065c);},_0x515322=_0x13a515['qqYMw'](pLimit,_0x13a515[_0x3a247e(0x198)](_0x300b87,0x1)),_0x221709=_0x2c54f3=>_0x515322(async()=>{const _0x4ae439=_0x3a247e;await _0x58dca1[_0x4ae439(0x18c)](_0x13a515[_0x4ae439(0x16f)],_0x2c54f3);const _0x26c3ed=_0x411153[_0x4ae439(0x174)](_0x2c54f3,_0x132f97);try{parentPort&&_0x26c3ed[_0x4ae439(0x1af)](_0x160c56=>{const _0x137fe8=_0x4ae439;try{parentPort[_0x137fe8(0x16b)](_0x160c56);}catch(_0x2e73ef){logger[_0x137fe8(0x1a5)](_0x137fe8(0x18e)+util[_0x137fe8(0x1b1)](_0x2e73ef));}});}catch(_0x288130){logger[_0x4ae439(0x1a5)]('Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'+util['format'](_0x288130));}return _0x26c3ed;});PerformanceTester['end'](PerformanceEvents[_0x3a247e(0x1a1)]),Promise['all'](_0x62c2cb[_0x3a247e(0x1ad)](_0x2ad591=>_0x221709(_0x2ad591)[_0x3a247e(0x1b3)](_0x5871a4=>_0x58dca1[_0x3a247e(0x18c)]('test-file-success',[_0x2ad591[_0x3a247e(0x17b)]['platform'],_0x5871a4]),_0x3850a9=>_0x58dca1['emit']('test-file-failure',[_0x2ad591,_0x3850a9]))))[_0x3a247e(0x1b3)](_0x5513da,_0x5513da);}),exports[a51_0x5a1708(0x1b7)]=(_0x3aea14,_0x141e36,_0x1882e7,_0x39b28e,_0x45cb34)=>{const _0x95a673=a51_0x5a1708,_0x384e21={'AzmBU':_0x95a673(0x19e),'HkExH':function(_0x38da77,_0x1758e7){return _0x38da77(_0x1758e7);},'aIbMY':'platform-run-start','kZxmX':_0x95a673(0x19f),'JHimD':_0x95a673(0x170),'XIksV':'json','XuHdK':_0x95a673(0x183),'JcDEB':'platform-run-success','GFCkR':_0x95a673(0x185),'dKXeF':function(_0x3754c6,_0x3ae75f){return _0x3754c6(_0x3ae75f);}};return new Promise(_0x40f7e8=>{const _0x52eef0=_0x95a673,_0x496c03={'vOEui':_0x384e21[_0x52eef0(0x17e)],'HWyqz':function(_0x14f03a,_0x5109fe){return _0x384e21['HkExH'](_0x14f03a,_0x5109fe);},'IhDqS':_0x384e21['aIbMY']},_0x91a61e=[],_0x2a9bc3=new Worker(require['resolve'](_0x384e21[_0x52eef0(0x16a)]),{'exposedMethods':[_0x384e21['JHimD']],'forkOptions':{'serialization':_0x384e21[_0x52eef0(0x1ae)],'stdio':_0x384e21['XuHdK']},'numWorkers':_0x3aea14[_0x52eef0(0x16e)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x30000a=new Emittery();_0x30000a['on'](_0x384e21[_0x52eef0(0x1bd)],_0x44d1aa=>{_0x91a61e['push']([_0x44d1aa[0x0],_0x44d1aa[0x1]]);}),_0x30000a['on'](_0x384e21[_0x52eef0(0x18d)],_0x59d6ba=>console[_0x52eef0(0x196)](_0x59d6ba[0x1]));_0x2a9bc3[_0x52eef0(0x177)]()&&_0x2a9bc3[_0x52eef0(0x177)]()['pipe'](process[_0x52eef0(0x1a8)]);_0x2a9bc3[_0x52eef0(0x1c0)]()&&_0x2a9bc3[_0x52eef0(0x1c0)]()[_0x52eef0(0x183)](process['stderr']);const _0x5292f1=async()=>{const _0x5b59d3=_0x52eef0,{forceExited:_0x25f92a}=await _0x2a9bc3[_0x5b59d3(0x1ba)]();_0x25f92a&&console['error'](_0x496c03[_0x5b59d3(0x1b8)]),_0x496c03['HWyqz'](_0x40f7e8,_0x91a61e);},_0x454839=_0x384e21[_0x52eef0(0x1b2)](pLimit,_0x3aea14[_0x52eef0(0x16e)]||0x1),_0x2836da=(_0x11879c,_0x3328ec)=>_0x454839(async()=>{const _0x4c0845=_0x52eef0;return await _0x30000a[_0x4c0845(0x18c)](_0x496c03['IhDqS'],_0x11879c),_0x141e36[_0x4c0845(0x17c)]=_0x1882e7[_0x4c0845(0x192)][_0x3328ec],_0x2a9bc3[_0x4c0845(0x170)](_0x11879c,_0x141e36,_0x1882e7,_0x39b28e,_0x45cb34);});Promise[_0x52eef0(0x1b0)](_0x3aea14[_0x52eef0(0x1ad)]((_0x654e95,_0x981116)=>_0x2836da(_0x654e95,_0x981116)[_0x52eef0(0x1b3)](_0x4d910b=>_0x30000a[_0x52eef0(0x18c)](_0x52eef0(0x176),[_0x654e95,_0x4d910b]),_0x48c094=>_0x30000a['emit'](_0x52eef0(0x185),[_0x654e95,_0x48c094]))))[_0x52eef0(0x1b3)](_0x5292f1,_0x5292f1);});},exports[a51_0x5a1708(0x186)]=(_0x55cd32,_0x1594ce)=>new Promise(_0x2299dc=>{const _0x1bc181=a51_0x5a1708,_0x18c6e7={'xvSdM':function(_0x3881d3,_0x1228c3){return _0x3881d3===_0x1228c3;},'Zikhf':function(_0x4d27fc,_0x357678){return _0x4d27fc!==_0x357678;},'dbHAi':'exit','VpXEY':_0x1bc181(0x19e),'usChY':function(_0x396315,_0x49f978){return _0x396315(_0x49f978);},'DGUzC':_0x1bc181(0x19f),'xroQC':_0x1bc181(0x1a6),'XseVL':'json','RiYDG':_0x1bc181(0x183),'XzMSC':_0x1bc181(0x17a),'iNLqo':'test-file-failure','DdNyV':function(_0x57e8d2,_0x1aedc1){return _0x57e8d2(_0x1aedc1);}},_0x38b2c8={},_0x12756f=new Worker(require[_0x1bc181(0x1a7)](_0x18c6e7[_0x1bc181(0x180)]),{'exposedMethods':[_0x18c6e7[_0x1bc181(0x169)]],'forkOptions':{'serialization':_0x18c6e7[_0x1bc181(0x17f)],'stdio':_0x18c6e7[_0x1bc181(0x1b9)]},'numWorkers':_0x1594ce,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0x522878=new Emittery();_0x522878['on'](_0x18c6e7[_0x1bc181(0x19b)],_0x277532=>{const _0x3b0ab2=_0x1bc181;_0x277532[0x0]&&logger[_0x3b0ab2(0x16c)](_0x3b0ab2(0x1a2)+_0x277532[0x1]+'\x20for',_0x277532[0x0]);}),_0x522878['on'](_0x18c6e7[_0x1bc181(0x199)],_0x46c976=>{const _0x3b7521=_0x1bc181;process[_0x3b7521(0x182)]=0x1;});_0x12756f[_0x1bc181(0x177)]()&&_0x12756f[_0x1bc181(0x177)]()[_0x1bc181(0x183)](process[_0x1bc181(0x1a8)]);_0x12756f[_0x1bc181(0x1c0)]()&&_0x12756f[_0x1bc181(0x1c0)]()[_0x1bc181(0x183)](process[_0x1bc181(0x1aa)]);const _0x365e98=async()=>{const _0x3627cf=_0x1bc181;let _0x22b0d2=0x0;const _0x450a64=_0x12756f['_workerPool'][_0x3627cf(0x1b4)](),_0x414063=()=>{},_0x45758c=_0x450a64['map'](async _0x4014b2=>{const _0x564400=_0x3627cf,_0x3a52de={'dCJfc':function(_0x2625de,_0x4d7c89){const _0x23fb4a=a51_0x4cef;return _0x18c6e7[_0x23fb4a(0x1c4)](_0x2625de,_0x4d7c89);},'DSBRA':function(_0x187a96,_0x4c3622){return _0x18c6e7['Zikhf'](_0x187a96,_0x4c3622);}};_0x4014b2['send']([0x2,![]],_0x414063,_0x414063,_0x414063),_0x4014b2[_0x564400(0x184)]['on'](_0x18c6e7[_0x564400(0x18a)],_0x1f62f0=>{const _0x239ea4=_0x564400;_0x3a52de['dCJfc'](_0x22b0d2,0x0)&&_0x3a52de[_0x239ea4(0x1bc)](_0x1f62f0,0x0)&&(_0x22b0d2=_0x1f62f0);}),await _0x4014b2['waitForExit']();});await Promise[_0x3627cf(0x1b0)](_0x45758c),process['exitCode']=_0x22b0d2;const {forceExited:_0x4a8eae}=await _0x12756f[_0x3627cf(0x1ba)]();_0x4a8eae&&console[_0x3627cf(0x195)](_0x18c6e7['VpXEY']),_0x18c6e7[_0x3627cf(0x1a4)](_0x2299dc,_0x38b2c8);},_0x185641=_0x18c6e7['DdNyV'](pLimit,_0x1594ce),_0x415c56=_0x11de21=>_0x185641(async()=>{return _0x12756f['vanillaWorker'](_0x11de21);});Promise[_0x1bc181(0x1b0)](_0x55cd32[_0x1bc181(0x1ad)](_0x4d1c96=>_0x415c56(_0x4d1c96)[_0x1bc181(0x1b3)](_0x58c0b4=>_0x522878[_0x1bc181(0x18c)](_0x1bc181(0x17a),[_0x4d1c96[_0x1bc181(0x17b)][_0x1bc181(0x189)],_0x4d1c96[_0x1bc181(0x17b)][_0x1bc181(0x173)]]),_0x3b73fb=>_0x522878['emit']('test-file-failure',[_0x4d1c96,_0x3b73fb]))))['then'](_0x365e98,_0x365e98);});
|
|
1
|
+
function a51_0x312d(){const _0x415218=['cKLAL','resolve','file','results','exitCode','Running\x20','length','Exception\x20in\x20sending\x20worker\x20message\x20','IZcHI','stop','7295108jjfFFk','mNHTv','configuration','end','UNSTABLE_onCustomMessage','zrxCl','_workerPool','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','failureCount','stderr','FtUXs','../../helpers/test-observability/utils','getStderr','stdout','oCiGK','exit','171dAIONv','QlUKS','SDK_SETUP','DTrMV','test-file-failure','jkRko','json','../../helpers/performance/constants','platform-run-failure','_child','6IoQdsS','tAFVK','parallelTestRun','jest-worker','worker_threads','log','ecekJ','map','test-file-success','13715728WFLrzp','1109219jMgDhe','lffNB','then','AcgLp','1626KmwmjH','dwTTj','format','351470rJXTkU','pipe','jqKPw','waitForExit','util','kMsai','4144OncsYg','uWydJ','postMessage','YDcmZ','platforms','LfWbe','vanillaWorker','info','platform-run-success','UTcaV','VjNQr','Workers\x20failed\x20to\x20exit\x20gracefully','error','platform','emit','biCBZ','../../helpers/performance/performance-tester','4821745EAqoiT','5202827AYHYvv','./testWorker.js','doeQn','zglhB','worker','Worker','ypOAv','GDvQM','getStdout','config','wUndQ','cucumberWorker','all','vfKRg','SqZUk','platform-run-start','test-file-start','debug'];a51_0x312d=function(){return _0x415218;};return a51_0x312d();}function a51_0x5962(_0x1c9a61,_0x55d8cf){const _0x312d07=a51_0x312d();return a51_0x5962=function(_0x5962cc,_0x572ac4){_0x5962cc=_0x5962cc-0xdb;let _0x4e7966=_0x312d07[_0x5962cc];return _0x4e7966;},a51_0x5962(_0x1c9a61,_0x55d8cf);}const a51_0x947a44=a51_0x5962;(function(_0x95ceff,_0x497eae){const _0x22b4ac=a51_0x5962,_0x3b9447=_0x95ceff();while(!![]){try{const _0x1fa7d7=parseInt(_0x22b4ac(0xe2))/0x1+parseInt(_0x22b4ac(0xef))/0x2*(-parseInt(_0x22b4ac(0xe6))/0x3)+-parseInt(_0x22b4ac(0x11d))/0x4+parseInt(_0x22b4ac(0x100))/0x5+-parseInt(_0x22b4ac(0x137))/0x6*(-parseInt(_0x22b4ac(0x101))/0x7)+parseInt(_0x22b4ac(0xe1))/0x8+-parseInt(_0x22b4ac(0x12d))/0x9*(parseInt(_0x22b4ac(0xe9))/0xa);if(_0x1fa7d7===_0x497eae)break;else _0x3b9447['push'](_0x3b9447['shift']());}catch(_0x1ab90a){_0x3b9447['push'](_0x3b9447['shift']());}}}(a51_0x312d,0xdfcdd));const Worker=require(a51_0x947a44(0xdb))[a51_0x947a44(0x106)],Emittery=require('emittery'),pLimit=require('p-limit'),{parentPort}=require(a51_0x947a44(0xdc)),util=require(a51_0x947a44(0xed)),logger=require('../../helpers/logger')['winstonLogger'],PerformanceTester=require(a51_0x947a44(0xff)),PerformanceEvents=require(a51_0x947a44(0x134))['EVENTS'],{debug}=require(a51_0x947a44(0x128)),TestHubHandler=require('../../helpers/testhub/testhubHandler');exports[a51_0x947a44(0x139)]=(_0x3bf5a5,_0x2b07e4,_0x4023b6)=>new Promise(async _0x445975=>{const _0x57a424=a51_0x947a44,_0x4baf32={'lffNB':_0x57a424(0x125),'doeQn':function(_0x9c8608,_0x27f820){return _0x9c8608+_0x27f820;},'vfKRg':_0x57a424(0x116),'LfWbe':'Workers\x20failed\x20to\x20exit\x20gracefully','ecekJ':function(_0x135275,_0xc1acd2){return _0x135275(_0xc1acd2);},'wUndQ':_0x57a424(0x111),'oCiGK':_0x57a424(0x102),'cKLAL':_0x57a424(0x105),'FtUXs':_0x57a424(0x133),'SqZUk':_0x57a424(0xea),'AcgLp':function(_0x40c5ed,_0xddc8ad){return _0x40c5ed*_0xddc8ad;},'qaPCO':'test-file-success','DTrMV':_0x57a424(0x131)},_0x17c0bb=_0x4023b6[_0x57a424(0x10a)],_0x372163={},_0xc339cd=new Worker(require[_0x57a424(0x114)](_0x4baf32[_0x57a424(0x12b)]),{'exposedMethods':[_0x4baf32[_0x57a424(0x113)]],'forkOptions':{'serialization':_0x4baf32[_0x57a424(0x127)],'stdio':_0x4baf32[_0x57a424(0x10f)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0x4baf32[_0x57a424(0xe5)](_0x2b07e4,0x1),'enableWorkerThreads':!![]}),_0x37699d=new Emittery();_0x37699d['on'](_0x4baf32['qaPCO'],_0x3ae2f0=>{const _0x1ceb17=_0x57a424;_0x372163[_0x3ae2f0[0x0]]?(_0x372163[_0x3ae2f0[0x0]][_0x4baf32['lffNB']]=_0x4baf32[_0x1ceb17(0x103)](_0x372163[_0x3ae2f0[0x0]][_0x4baf32[_0x1ceb17(0xe3)]],_0x3ae2f0[0x1][_0x4baf32[_0x1ceb17(0xe3)]]),_0x372163[_0x3ae2f0[0x0]][_0x4baf32[_0x1ceb17(0x10e)]]=[..._0x372163[_0x3ae2f0[0x0]][_0x4baf32[_0x1ceb17(0x10e)]],..._0x3ae2f0[0x1][_0x4baf32[_0x1ceb17(0x10e)]]]):_0x372163[_0x3ae2f0[0x0]]={'failureCount':_0x3ae2f0[0x1][_0x4baf32['lffNB']],'results':[..._0x3ae2f0[0x1][_0x4baf32['vfKRg']]]};}),_0x37699d['on'](_0x4baf32[_0x57a424(0x130)],_0x3de3a0=>console['log'](_0x3de3a0[0x1]));_0xc339cd[_0x57a424(0x109)]()&&_0xc339cd[_0x57a424(0x109)]()['pipe'](process[_0x57a424(0x12a)]);_0xc339cd[_0x57a424(0x129)]()&&_0xc339cd['getStderr']()['pipe'](process[_0x57a424(0x126)]);const _0x4a754d=async()=>{const _0x2dd5d3=_0x57a424,{forceExited:_0x25aa38}=await _0xc339cd[_0x2dd5d3(0x120)]();_0x25aa38&&console['error'](_0x4baf32[_0x2dd5d3(0xf4)]);try{await TestHubHandler[_0x2dd5d3(0x11c)]();}catch(_0x3a7be4){_0x4baf32[_0x2dd5d3(0xde)](debug,_0x2dd5d3(0x124)+_0x3a7be4);}_0x4baf32[_0x2dd5d3(0xde)](_0x445975,_0x372163);},_0x20b024=_0x4baf32[_0x57a424(0xde)](pLimit,_0x4baf32[_0x57a424(0xe5)](_0x2b07e4,0x1)),_0x44866c=_0x335530=>_0x20b024(async()=>{const _0x43f22c=_0x57a424;await _0x37699d['emit'](_0x4baf32[_0x43f22c(0x10b)],_0x335530);const _0x1da924=_0xc339cd[_0x43f22c(0x105)](_0x335530,_0x17c0bb);try{parentPort&&_0x1da924[_0x43f22c(0x121)](_0x1c6373=>{const _0x197354=_0x43f22c;try{parentPort[_0x197354(0xf1)](_0x1c6373);}catch(_0x392f20){logger[_0x197354(0x112)](_0x197354(0x11a)+util[_0x197354(0xe8)](_0x392f20));}});}catch(_0x5909ee){logger[_0x43f22c(0x112)]('Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'+util[_0x43f22c(0xe8)](_0x5909ee));}return _0x1da924;});PerformanceTester[_0x57a424(0x120)](PerformanceEvents[_0x57a424(0x12f)]),Promise[_0x57a424(0x10d)](_0x3bf5a5[_0x57a424(0xdf)](_0x54bb4d=>_0x44866c(_0x54bb4d)[_0x57a424(0xe4)](_0x399aba=>_0x37699d['emit'](_0x57a424(0xe0),[_0x54bb4d['configuration'][_0x57a424(0xfc)],_0x399aba]),_0x105360=>_0x37699d['emit'](_0x57a424(0x131),[_0x54bb4d,_0x105360]))))[_0x57a424(0xe4)](_0x4a754d,_0x4a754d);}),exports['parallelCucumberRun']=(_0x3434da,_0x47b452,_0x3a4224,_0x26012c,_0x113cdd)=>{const _0x473238=a51_0x947a44,_0x41937a={'ivsfd':_0x473238(0xfa),'UTcaV':function(_0x33f6f2,_0x8b58c5){return _0x33f6f2(_0x8b58c5);},'GDvQM':_0x473238(0x110),'zrxCl':_0x473238(0x102),'ioXRc':_0x473238(0x10c),'QlUKS':'json','IZcHI':_0x473238(0xea),'SrCHW':_0x473238(0xf7),'KwSvZ':_0x473238(0x135),'ypOAv':function(_0x1a8f76,_0x6cee39){return _0x1a8f76(_0x6cee39);}};return new Promise(_0x17c5f6=>{const _0x325bdf=_0x473238,_0x41f56c={'grPjg':_0x41937a['ivsfd'],'kMsai':function(_0x1b61b0,_0x15022a){const _0x54beee=a51_0x5962;return _0x41937a[_0x54beee(0xf8)](_0x1b61b0,_0x15022a);},'XHwOs':_0x41937a[_0x325bdf(0x108)]},_0xb0f788=[],_0xa159b0=new Worker(require[_0x325bdf(0x114)](_0x41937a[_0x325bdf(0x122)]),{'exposedMethods':[_0x41937a['ioXRc']],'forkOptions':{'serialization':_0x41937a[_0x325bdf(0x12e)],'stdio':_0x41937a[_0x325bdf(0x11b)]},'numWorkers':_0x3434da[_0x325bdf(0x119)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x199e9d=new Emittery();_0x199e9d['on'](_0x41937a['SrCHW'],_0x342667=>{_0xb0f788['push']([_0x342667[0x0],_0x342667[0x1]]);}),_0x199e9d['on'](_0x41937a['KwSvZ'],_0x332110=>console[_0x325bdf(0xdd)](_0x332110[0x1]));_0xa159b0[_0x325bdf(0x109)]()&&_0xa159b0['getStdout']()[_0x325bdf(0xea)](process[_0x325bdf(0x12a)]);_0xa159b0[_0x325bdf(0x129)]()&&_0xa159b0['getStderr']()[_0x325bdf(0xea)](process[_0x325bdf(0x126)]);const _0x25a54a=async()=>{const _0x19ee2e=_0x325bdf,{forceExited:_0xeadf60}=await _0xa159b0[_0x19ee2e(0x120)]();_0xeadf60&&console[_0x19ee2e(0xfb)](_0x41f56c['grPjg']),_0x41f56c[_0x19ee2e(0xee)](_0x17c5f6,_0xb0f788);},_0x37cd02=_0x41937a[_0x325bdf(0x107)](pLimit,_0x3434da[_0x325bdf(0x119)]||0x1),_0x35edfa=(_0x1a6741,_0x1217d2)=>_0x37cd02(async()=>{const _0x50a5d7=_0x325bdf;return await _0x199e9d[_0x50a5d7(0xfd)](_0x41f56c['XHwOs'],_0x1a6741),_0x47b452['platformCaps']=_0x3a4224[_0x50a5d7(0xf3)][_0x1217d2],_0xa159b0['cucumberWorker'](_0x1a6741,_0x47b452,_0x3a4224,_0x26012c,_0x113cdd);});Promise[_0x325bdf(0x10d)](_0x3434da[_0x325bdf(0xdf)]((_0x1d69d5,_0x43d990)=>_0x35edfa(_0x1d69d5,_0x43d990)[_0x325bdf(0xe4)](_0x4f4e16=>_0x199e9d[_0x325bdf(0xfd)](_0x325bdf(0xf7),[_0x1d69d5,_0x4f4e16]),_0x4543ac=>_0x199e9d[_0x325bdf(0xfd)](_0x325bdf(0x135),[_0x1d69d5,_0x4543ac]))))[_0x325bdf(0xe4)](_0x25a54a,_0x25a54a);});},exports['parallelVanillaRun']=(_0x39f82c,_0x59f61c)=>new Promise(_0x5c01f7=>{const _0x10ca77=a51_0x947a44,_0x4928f3={'YDcmZ':_0x10ca77(0x12c),'tAFVK':function(_0x4a738b,_0x44f5b7){return _0x4a738b===_0x44f5b7;},'biCBZ':function(_0x1cb13f,_0x43817c){return _0x1cb13f!==_0x43817c;},'jkRko':_0x10ca77(0xfa),'uWydJ':function(_0x4b6592,_0x58ffd0){return _0x4b6592(_0x58ffd0);},'LLYav':_0x10ca77(0x102),'zglhB':_0x10ca77(0xf5),'mNHTv':_0x10ca77(0x133),'hVoVd':_0x10ca77(0xea),'DWxfB':'test-file-success','dwTTj':_0x10ca77(0x131),'VjNQr':function(_0x5224a4,_0x30fa28){return _0x5224a4(_0x30fa28);}},_0x11ad51={},_0x314ad1=new Worker(require['resolve'](_0x4928f3['LLYav']),{'exposedMethods':[_0x4928f3[_0x10ca77(0x104)]],'forkOptions':{'serialization':_0x4928f3[_0x10ca77(0x11e)],'stdio':_0x4928f3['hVoVd']},'numWorkers':_0x59f61c,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0x239005=new Emittery();_0x239005['on'](_0x4928f3['DWxfB'],_0x543b51=>{const _0x330610=_0x10ca77;_0x543b51[0x0]&&logger[_0x330610(0xf6)](_0x330610(0x118)+_0x543b51[0x1]+'\x20for',_0x543b51[0x0]);}),_0x239005['on'](_0x4928f3[_0x10ca77(0xe7)],_0x18a810=>{const _0x5be6cb=_0x10ca77;process[_0x5be6cb(0x117)]=0x1;});_0x314ad1[_0x10ca77(0x109)]()&&_0x314ad1[_0x10ca77(0x109)]()[_0x10ca77(0xea)](process['stdout']);_0x314ad1[_0x10ca77(0x129)]()&&_0x314ad1[_0x10ca77(0x129)]()[_0x10ca77(0xea)](process[_0x10ca77(0x126)]);const _0x1fcb81=async()=>{const _0x787452=_0x10ca77,_0x1f90fc={'eHjbf':function(_0x90102a,_0x52e9e6){const _0x1d113e=a51_0x5962;return _0x4928f3[_0x1d113e(0x138)](_0x90102a,_0x52e9e6);},'jqKPw':function(_0x50b62a,_0x2bba42){const _0x430169=a51_0x5962;return _0x4928f3[_0x430169(0xfe)](_0x50b62a,_0x2bba42);}};let _0x3c2c46=0x0;const _0x68550=_0x314ad1[_0x787452(0x123)]['getWorkers'](),_0x11152c=()=>{},_0x1ee157=_0x68550['map'](async _0x275729=>{const _0x4f6fca=_0x787452;_0x275729['send']([0x2,![]],_0x11152c,_0x11152c,_0x11152c),_0x275729[_0x4f6fca(0x136)]['on'](_0x4928f3[_0x4f6fca(0xf2)],_0x105b99=>{const _0x43307b=_0x4f6fca;_0x1f90fc['eHjbf'](_0x3c2c46,0x0)&&_0x1f90fc[_0x43307b(0xeb)](_0x105b99,0x0)&&(_0x3c2c46=_0x105b99);}),await _0x275729[_0x4f6fca(0xec)]();});await Promise[_0x787452(0x10d)](_0x1ee157),process[_0x787452(0x117)]=_0x3c2c46;const {forceExited:_0x574a3c}=await _0x314ad1[_0x787452(0x120)]();_0x574a3c&&console[_0x787452(0xfb)](_0x4928f3[_0x787452(0x132)]),_0x4928f3[_0x787452(0xf0)](_0x5c01f7,_0x11ad51);},_0x24ced6=_0x4928f3[_0x10ca77(0xf9)](pLimit,_0x59f61c),_0x2285d4=_0x11a95a=>_0x24ced6(async()=>{const _0x417898=_0x10ca77;return _0x314ad1[_0x417898(0xf5)](_0x11a95a);});Promise['all'](_0x39f82c[_0x10ca77(0xdf)](_0x4225a5=>_0x2285d4(_0x4225a5)['then'](_0x8b14b8=>_0x239005[_0x10ca77(0xfd)]('test-file-success',[_0x4225a5['configuration'][_0x10ca77(0xfc)],_0x4225a5[_0x10ca77(0x11f)][_0x10ca77(0x115)]]),_0x3b8715=>_0x239005[_0x10ca77(0xfd)](_0x10ca77(0x131),[_0x4225a5,_0x3b8715]))))[_0x10ca77(0xe4)](_0x1fcb81,_0x1fcb81);});
|