browserstack-node-sdk 1.36.0 → 1.36.1
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/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.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/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/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39_0x317824=a39_0x160a;(function(_0x121048,_0x332330){const _0x58a226=a39_0x160a,_0x200602=_0x121048();while(!![]){try{const _0x181059=-parseInt(_0x58a226(0x1df))/0x1*(-parseInt(_0x58a226(0x211))/0x2)+-parseInt(_0x58a226(0x1f8))/0x3*(-parseInt(_0x58a226(0x1ec))/0x4)+parseInt(_0x58a226(0x209))/0x5*(parseInt(_0x58a226(0x1e1))/0x6)+parseInt(_0x58a226(0x1ff))/0x7*(-parseInt(_0x58a226(0x200))/0x8)+-parseInt(_0x58a226(0x1f0))/0x9*(-parseInt(_0x58a226(0x1f2))/0xa)+-parseInt(_0x58a226(0x215))/0xb+parseInt(_0x58a226(0x1d9))/0xc*(parseInt(_0x58a226(0x1e5))/0xd);if(_0x181059===_0x332330)break;else _0x200602['push'](_0x200602['shift']());}catch(_0x6509bb){_0x200602['push'](_0x200602['shift']());}}}(a39_0x4f57,0xdb73a));function a39_0x160a(_0x3ecf73,_0x19f9eb){const _0x4f57d8=a39_0x4f57();return a39_0x160a=function(_0x160a61,_0x38d954){_0x160a61=_0x160a61-0x1d7;let _0x327c5d=_0x4f57d8[_0x160a61];return _0x327c5d;},a39_0x160a(_0x3ecf73,_0x19f9eb);}const path=require(a39_0x317824(0x1de)),util=require(a39_0x317824(0x1ef)),logger=require('../../helpers/logger'),{importFileFromPWCore,nestedKeyValue,isFalse,requirePWModule,getPlaywrightLibPath}=require('../../helpers/helper'),{o11yErrorHandler}=require(a39_0x317824(0x1fb)),AccessibilityHelper=require(a39_0x317824(0x20c)),PerformanceTester=require(a39_0x317824(0x1f3)),{O11y_EVENTS:PerformanceO11yEvents}=require('../../helpers/performance/constants'),doo11ySync=PerformanceTester['measureWrapper'](PerformanceO11yEvents[a39_0x317824(0x1da)],o11yErrorHandler(async function doo11ySync(_0x51fb50){const _0x1c7167=a39_0x317824,_0x42767d={'Vxvai':function(_0x42039c,_0x45c89f,_0x5f305c){return _0x42039c(_0x45c89f,_0x5f305c);},'JTRut':'__workerDetails','FfKRe':_0x1c7167(0x1f1),'vQlHH':_0x1c7167(0x20d),'DgWSL':_0x1c7167(0x202)};if(_0x42767d[_0x1c7167(0x204)](nestedKeyValue,global,[_0x42767d[_0x1c7167(0x208)],_0x42767d[_0x1c7167(0x1d7)]]))return;await _0x51fb50[_0x1c7167(0x1e8)](_0x398101=>{},_0x1c7167(0x1e4)+JSON['stringify']({'action':_0x42767d[_0x1c7167(0x213)],'arguments':{'data':_0x1c7167(0x20e)+Date[_0x1c7167(0x1fd)](),'level':_0x42767d[_0x1c7167(0x1ea)]}})),global[_0x1c7167(0x1f4)][_0x1c7167(0x1f1)]=!![];},a39_0x317824(0x210)));exports['mockContextNewPage']=()=>{const _0x4d6b85=a39_0x317824,_0x479298={'vZiIL':function(_0x3af049,_0x8625ea){return _0x3af049(_0x8625ea);},'wfsAI':function(_0x375a4d,_0x37eef0){return _0x375a4d(_0x37eef0);},'TMCDZ':function(_0x3f4401,_0xb1f2c5,_0x54b6cb){return _0x3f4401(_0xb1f2c5,_0x54b6cb);},'FRxyU':_0x4d6b85(0x1f4),'zqWfm':_0x4d6b85(0x1e3),'LLyPV':_0x4d6b85(0x1ed),'FbJcQ':_0x4d6b85(0x1db),'dQTWL':function(_0x31125d,_0x3011c9){return _0x31125d(_0x3011c9);},'fQUzo':'Unable\x20to\x20import\x20context\x20for\x20page','xiUEE':'newPage'},_0x5d3dcc=path['join'](_0x479298[_0x4d6b85(0x206)],_0x479298['LLyPV'],_0x479298['FbJcQ']),_0x24aa0b=_0x479298['dQTWL'](importFileFromPWCore,_0x5d3dcc);if(!_0x24aa0b){logger[_0x4d6b85(0x202)](_0x479298[_0x4d6b85(0x216)]);return;}const _0x4ac5a3=_0x24aa0b[_0x4d6b85(0x1ee)],_0x21369b=_0x4ac5a3[_0x4d6b85(0x1e7)],_0x499f5d=_0x21369b[_0x4d6b85(0x1dd)];Object['defineProperty'](_0x21369b,_0x479298[_0x4d6b85(0x1fa)],{'get':function(){return async function _0x14f8b7(){const _0x1f2de5=a39_0x160a,_0x27d304=await _0x499f5d[_0x1f2de5(0x1d8)](this,arguments);try{!_0x479298[_0x1f2de5(0x20b)](isFalse,process['env'][_0x1f2de5(0x1e2)])&&await _0x479298[_0x1f2de5(0x1f7)](doo11ySync,_0x27d304),!_0x479298[_0x1f2de5(0x20b)](isFalse,process[_0x1f2de5(0x1f5)][_0x1f2de5(0x1f9)])&&(_0x27d304[_0x1f2de5(0x20a)]=async()=>{const _0x93f47=_0x1f2de5;return await AccessibilityHelper[_0x93f47(0x20a)](_0x27d304);},_0x27d304[_0x1f2de5(0x1e9)]=async()=>{const _0x4b51a7=_0x1f2de5;return await AccessibilityHelper[_0x4b51a7(0x1e9)](_0x27d304);},_0x27d304[_0x1f2de5(0x207)]=async()=>{const _0x1947b2=_0x1f2de5;return await AccessibilityHelper[_0x1947b2(0x207)](_0x27d304);});}catch(_0x1237b8){logger['debug'](_0x1f2de5(0x1dc)+util[_0x1f2de5(0x1fc)](_0x1237b8));}return _0x479298[_0x1f2de5(0x201)](nestedKeyValue,global,[_0x479298[_0x1f2de5(0x205)]])&&(global[_0x1f2de5(0x1f4)][_0x1f2de5(0x214)]=_0x27d304),_0x27d304;};}});},exports[a39_0x317824(0x1e6)]=()=>{const _0xeea5b=a39_0x317824,_0x4b2684={'MIQBI':function(_0x5385bc,_0x171225){return _0x5385bc(_0x171225);},'lJkYw':'runner/dispatcher.js','aBrzm':'Unable\x20to\x20import\x20dispatcher\x20for\x20_isWorkerRedundant','FQKHe':'_isWorkerRedundant'};try{const _0x1482bb=requirePWModule['apply'](null,_0x4b2684[_0xeea5b(0x1e0)](getPlaywrightLibPath,_0x4b2684[_0xeea5b(0x20f)]));if(!_0x1482bb){logger[_0xeea5b(0x202)](_0x4b2684[_0xeea5b(0x1eb)]);return;}const _0xb0d7d0=_0x1482bb['Dispatcher'],_0x103607=_0xb0d7d0[_0xeea5b(0x1e7)],_0x2bcdeb=_0x103607[_0xeea5b(0x1fe)];Object[_0xeea5b(0x1f6)](_0x103607,_0x4b2684[_0xeea5b(0x212)],{'get':function(){return function _0x56d947(){return _0x2bcdeb['apply'](this,arguments),!![];};}});}catch(_0x3f7b12){logger['debug'](_0xeea5b(0x203)+util[_0xeea5b(0x1fc)](_0x3f7b12));}};function a39_0x4f57(){const _0x44a9af=['evaluate','getAccessibilityResultsSummary','DgWSL','aBrzm','8sufueH','client','BrowserContext','util','61515wPvCMw','o11ySyncDone','10QltDKu','../../helpers/performance/performance-tester','__workerDetails','env','defineProperty','wfsAI','1094253PqDFMR','BROWSERSTACK_TEST_ACCESSIBILITY_YML','xiUEE','../../helpers/test-observability/error-handler','format','now','_isWorkerRedundant','14oxmfca','1115432PEFEyr','TMCDZ','debug','Exception\x20while\x20mocking\x20IsWorkerRedundant:\x20','Vxvai','FRxyU','zqWfm','performScan','JTRut','3145ueQWze','getAccessibilityResults','vZiIL','./accessibility-helper','annotate','ObservabilitySync:','lJkYw','doo11ySync','2lojJYS','FQKHe','vQlHH','pwPage','18417355wkvZzM','fQUzo','FfKRe','apply','144OjrBpY','SYNC','browserContext.js','Error\x20during\x20syncing\x20o11y\x20with\x20automate\x20','newPage','path','383025DjxoHC','MIQBI','9498lDczhE','BROWSERSTACK_TEST_OBSERVABILITY','lib','browserstack_executor:\x20','798382zpmwav','mockIsWorkerRedundant','prototype'];a39_0x4f57=function(){return _0x44a9af;};return a39_0x4f57();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a40_0x21d0(_0x556f85,_0x27aad0){const _0x326df2=a40_0x326d();return a40_0x21d0=function(_0x21d072,_0x4a1956){_0x21d072=_0x21d072-0x17a;let _0x410082=_0x326df2[_0x21d072];return _0x410082;},a40_0x21d0(_0x556f85,_0x27aad0);}const a40_0x143ed4=a40_0x21d0;(function(_0x5dc55d,_0xf0bb7){const _0x36d981=a40_0x21d0,_0x46dc38=_0x5dc55d();while(!![]){try{const _0x5a02db=parseInt(_0x36d981(0x193))/0x1+-parseInt(_0x36d981(0x22d))/0x2+-parseInt(_0x36d981(0x1a0))/0x3*(-parseInt(_0x36d981(0x209))/0x4)+-parseInt(_0x36d981(0x19b))/0x5*(parseInt(_0x36d981(0x1e2))/0x6)+parseInt(_0x36d981(0x207))/0x7+-parseInt(_0x36d981(0x214))/0x8*(parseInt(_0x36d981(0x1b3))/0x9)+-parseInt(_0x36d981(0x1a1))/0xa*(parseInt(_0x36d981(0x1c8))/0xb);if(_0x5a02db===_0xf0bb7)break;else _0x46dc38['push'](_0x46dc38['shift']());}catch(_0x5f4ddb){_0x46dc38['push'](_0x46dc38['shift']());}}}(a40_0x326d,0x8d0b7));const {debug,getFrameworkVersion,removeAnsiColors,failureData}=require('../../../helpers/test-observability/utils'),PerformanceTester=require(a40_0x143ed4(0x180)),fs=require('fs'),{FRAMEWORKS,MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE}=require(a40_0x143ed4(0x185)),helper=require(a40_0x143ed4(0x211)),path=require('path'),logger=require(a40_0x143ed4(0x224))['winstonLogger'],SessionHandler=require('../../../helpers/test-observability/sessionHandler'),TestDetails=require(a40_0x143ed4(0x1af)),util=require(a40_0x143ed4(0x1a5)),getTagsFromTitle=_0x3424d7=>{const _0x238a73=a40_0x143ed4;return _0x3424d7[_0x238a73(0x22a)](/@(\w+)/g)?.[_0x238a73(0x1f7)](_0x12ec8e=>_0x12ec8e['slice'](0x1))||[];};function a40_0x326d(){const _0x22ae5d=['bBFHE','onBegin','test','JJDOw','debug','1.42.0','guOSx','qmtpA','onStepEnd','BqwwS','KZGCK','RFhKd','performance-report-worker-','nzamo','1.38.0','find','addTraceFilePath','Found\x20key:\x20','iFayS','.json','calculateTimesFromMultipleFiles','2602770VKRSsr','\x20bytes','BSFjG','sendTestLog','Error\x20in\x20sending\x20trace\x20file:\x20%s','qpZRO','slice','deJoW','START_TIME','Invalid\x20file\x20format.\x20Expected\x20a\x20.zip\x20file,\x20but\x20got:\x20','vYNac','sendTraceZip','DDdDD','GDZCK','getTime','sendEventData','onStepBegin','uVOwi','getPlaywrightLibPath','\x20in\x20attachments','KyYRr','map','prototype','yimwN','1.35.0','dubVa','size','uYuyj','jViKe','substr','title','SvQHT','processPageScreenshot','NuQeV','WSGyF','basename','Total\x20duration\x20for\x20whole\x20build\x20is\x20','7678349QKfqUB','calculatePerformance','5432xwLvPk','getTransformPath','gFbvP','Test\x20timeout\x20of','Searching\x20for\x20key:\x20','YhdeS','toISOString','Snxzt','../../../helpers/helper','CpnhN','playwright/lib/common/configLoader.js','3529936zjwZjR','CqNlN','PLAYWRIGHT','requestSpyCallback','mlWSZ','nqgxk','bwqef','lrarJ','message','createReadStream','oAmEj','toString','join','FJHnT','attachments','common','../../../helpers/logger','limzq','Vucxv','TEST_LOG','rqagv','runner/projectUtils.js','match','WkFEE','endsWith','1247966XRbFlg','call','statSync','process.js','MmIrk','extname','qrlmh','../../../helpers/performance/performance-tester','format','LbzCR','findNestedKey','beforeWorkerHook','../../../helpers/test-observability/constants','DNGbR','Arguments','@playwright/test/lib/common/transform.js','name','stack','wXdEF','jeMWH','DqMBE','getProjectUtilsPath','Svhhy','\x20in\x20arguments','getFailureData','doo11ySync','757696rLROhI','iZHPu','length','bYUhY','fAJCM','RMkQP','onTestEnd','runner/loadUtils.js','5SKWJna','ChIZk','path','MleXj','tags','645YzfUVl','2060fsZJxy','vwRTW','getLoadUtilsPath','toLowerCase','util','existsSync','pvMcl','beforeTestHook','error','dkZHk','compareVersions','qwGQU','uploadTraceZip','sendSessionDetails','./test-details','env','sIxQk','Percentage\x20of\x20increased\x20time\x20is\x20','9XsurHY','validateFilePath','startsWith','endSession','XUbRR','CfzhP','readdirSync','filter','jCOvX','@playwright/test','dOntj','filePath','AeEQB','.zip','cZseu','onTestBegin','cpZar','aDDSF','setupBrowserDetails','Trace\x20file\x20size\x20exceeds\x20100MB:\x20','testUId','3729oCtuHC','stopAndGenerate','performance-reporter.html','CuRkx','ERROR'];a40_0x326d=function(){return _0x22ae5d;};return a40_0x326d();}exports['getTestTags']=_0x3e771e=>{const _0x183021=a40_0x143ed4,_0x1fbaaf={'guOSx':function(_0x1e9b6d,_0x3fcb92){return _0x1e9b6d(_0x3fcb92);}};if(_0x3e771e[_0x183021(0x19f)])return _0x3e771e[_0x183021(0x19f)]['map'](_0x3c8a37=>_0x3c8a37[_0x183021(0x1b5)]('@')?_0x3c8a37[_0x183021(0x1ff)](0x1):_0x3c8a37);return _0x1fbaaf[_0x183021(0x1d3)](getTagsFromTitle,_0x3e771e[_0x183021(0x200)]);},exports[a40_0x143ed4(0x208)]=async()=>{const _0x1cda3a=a40_0x143ed4,_0x1ea0c4={'JJDOw':function(_0x3189e4,_0x123d71){return _0x3189e4-_0x123d71;},'nqgxk':_0x1cda3a(0x1ca),'jCOvX':_0x1cda3a(0x1ce),'NuQeV':_0x1cda3a(0x1b6),'iZHPu':_0x1cda3a(0x1c2),'KZGCK':_0x1cda3a(0x199),'NjxVu':_0x1cda3a(0x1f2),'kScxa':_0x1cda3a(0x1d5),'oAmEj':_0x1cda3a(0x184),'BSFjG':'afterWorkerHook','CfzhP':_0x1cda3a(0x1a8),'sIxQk':'afterTestHook','DNGbR':_0x1cda3a(0x192),'BqwwS':_0x1cda3a(0x202),'qrlmh':_0x1cda3a(0x1ae),'qpZRO':_0x1cda3a(0x1c5),'vYNac':_0x1cda3a(0x217),'uVOwi':_0x1cda3a(0x1e5),'RMkQP':function(_0x11519a,_0x557189){return _0x11519a(_0x557189);},'aDDSF':function(_0x1b042d,_0xa7f646){return _0x1b042d/_0xa7f646;},'nzamo':function(_0xc44820,_0x34667f){return _0xc44820(_0x34667f);},'DDdDD':function(_0x3f4696,_0x39a5fd){return _0x3f4696+_0x39a5fd;},'WkFEE':function(_0x3b2851,_0x177e2b){return _0x3b2851*_0x177e2b;},'bwqef':function(_0x409c8c,_0xa16099){return _0x409c8c+_0xa16099;}};if(!process['env'][_0x1cda3a(0x1ea)])return;const _0x2ff96f=_0x1ea0c4[_0x1cda3a(0x1d0)](new Date()[_0x1cda3a(0x1f0)](),new Date(process[_0x1cda3a(0x1b0)][_0x1cda3a(0x1ea)])[_0x1cda3a(0x1f0)]()),_0x55fa54=await PerformanceTester[_0x1cda3a(0x1c9)](_0x1ea0c4[_0x1cda3a(0x219)],[_0x1ea0c4[_0x1cda3a(0x1bb)],_0x1ea0c4[_0x1cda3a(0x203)],_0x1ea0c4[_0x1cda3a(0x194)],_0x1ea0c4[_0x1cda3a(0x1d7)],_0x1ea0c4['NjxVu'],_0x1ea0c4['kScxa']]),_0x1f93de=fs[_0x1cda3a(0x1b9)]('.'),_0x2e32bf=_0x1f93de[_0x1cda3a(0x1ba)](_0x38a334=>_0x38a334['startsWith'](_0x1cda3a(0x1d9))&&_0x38a334[_0x1cda3a(0x22c)](_0x1cda3a(0x1e0))),_0x48164a=await PerformanceTester[_0x1cda3a(0x1e1)](_0x2e32bf,[_0x1ea0c4[_0x1cda3a(0x21e)],_0x1ea0c4[_0x1cda3a(0x1e4)],_0x1ea0c4[_0x1cda3a(0x1b8)],_0x1ea0c4[_0x1cda3a(0x1b1)],_0x1ea0c4[_0x1cda3a(0x186)],_0x1ea0c4[_0x1cda3a(0x1d6)],_0x1ea0c4[_0x1cda3a(0x17f)],_0x1ea0c4[_0x1cda3a(0x1e7)],_0x1ea0c4[_0x1cda3a(0x1ec)],_0x1ea0c4[_0x1cda3a(0x1f3)]]);_0x1ea0c4[_0x1cda3a(0x198)](debug,_0x1cda3a(0x206)+_0x1ea0c4[_0x1cda3a(0x1c4)](_0x2ff96f,0x3e8)+'\x20s'),_0x1ea0c4[_0x1cda3a(0x1da)](debug,'Total\x20time\x20taken\x20by\x20O11y\x20is\x20'+_0x1ea0c4[_0x1cda3a(0x1ee)](_0x48164a,_0x55fa54)),_0x1ea0c4[_0x1cda3a(0x198)](debug,_0x1cda3a(0x1b2)+_0x1ea0c4[_0x1cda3a(0x22b)](_0x1ea0c4[_0x1cda3a(0x1c4)](_0x1ea0c4[_0x1cda3a(0x21a)](_0x48164a,_0x55fa54),_0x2ff96f),0x64));},exports[a40_0x143ed4(0x20a)]=()=>{const _0x27ad36=a40_0x143ed4,_0x2fd549={'lZHIR':function(_0x590213,_0x4103e2){return _0x590213(_0x4103e2);},'SvQHT':function(_0x23f31c,_0x325faa){return _0x23f31c>=_0x325faa;},'WSGyF':_0x27ad36(0x1db),'dkZHk':'playwright/lib/transform/transform.js','wXdEF':'playwright','labky':_0x27ad36(0x1fa),'SMMdI':'@playwright/test/lib/transform/transform.js','yimwN':_0x27ad36(0x1bc),'lrarJ':_0x27ad36(0x188)},_0xbf25cc=_0x2fd549['lZHIR'](getFrameworkVersion,FRAMEWORKS[_0x27ad36(0x216)]);if(_0x2fd549[_0x27ad36(0x201)](helper[_0x27ad36(0x1ab)](_0xbf25cc,_0x2fd549[_0x27ad36(0x204)]),0x0))return[_0x2fd549[_0x27ad36(0x1aa)],_0x2fd549[_0x27ad36(0x18b)]];if(_0x2fd549[_0x27ad36(0x201)](helper['compareVersions'](_0xbf25cc,_0x2fd549['labky']),0x0))return[_0x2fd549['SMMdI'],_0x2fd549['yimwN']];return[_0x2fd549[_0x27ad36(0x21b)],_0x2fd549[_0x27ad36(0x1f9)]];},exports['getConfigLoaderPath']=()=>{const _0x5a839b=a40_0x143ed4,_0x38ccad={'fAJCM':function(_0x2f7e9e,_0x31a019){return _0x2f7e9e(_0x31a019);},'DqMBE':function(_0xea4206,_0x593f25){return _0xea4206>=_0x593f25;},'dOntj':_0x5a839b(0x1db),'jeMWH':_0x5a839b(0x213),'bBFHE':'playwright','pvMcl':'@playwright/test/lib/common/configLoader.js','CqNlN':'@playwright/test'},_0x296929=_0x38ccad[_0x5a839b(0x197)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);if(_0x38ccad[_0x5a839b(0x18d)](helper[_0x5a839b(0x1ab)](_0x296929,_0x38ccad[_0x5a839b(0x1bd)]),0x0))return[_0x38ccad[_0x5a839b(0x18c)],_0x38ccad[_0x5a839b(0x1cd)]];return[_0x38ccad[_0x5a839b(0x1a7)],_0x38ccad[_0x5a839b(0x215)]];},exports[a40_0x143ed4(0x1a3)]=()=>{const _0x12fbdd=a40_0x143ed4,_0x4411f2={};_0x4411f2[_0x12fbdd(0x1ef)]=_0x12fbdd(0x19a);const _0x1937c3=_0x4411f2;return helper[_0x12fbdd(0x1f4)](_0x1937c3['GDZCK']);},exports[a40_0x143ed4(0x18e)]=()=>{const _0x35aa0b=a40_0x143ed4,_0x26a6e6={};_0x26a6e6[_0x35aa0b(0x221)]=_0x35aa0b(0x229);const _0x3c7a39=_0x26a6e6;return helper[_0x35aa0b(0x1f4)](_0x3c7a39['FJHnT']);},exports['getForkProcessPath']=()=>{const _0x5ba269=a40_0x143ed4,_0x18b906={'deJoW':function(_0x2fabfb,_0x1c4aed){return _0x2fabfb(_0x1c4aed);},'bYUhY':function(_0x2c66b0,_0x3a770e){return _0x2c66b0>=_0x3a770e;},'MleXj':'1.38.0','AeEQB':'lib','vwRTW':_0x5ba269(0x223),'dubVa':_0x5ba269(0x17c),'Vucxv':'test'},_0x28e541=_0x18b906[_0x5ba269(0x1e9)](getFrameworkVersion,FRAMEWORKS[_0x5ba269(0x216)]);if(_0x18b906[_0x5ba269(0x196)](helper[_0x5ba269(0x1ab)](_0x28e541,_0x18b906[_0x5ba269(0x19e)]),0x0))return path[_0x5ba269(0x220)](_0x18b906[_0x5ba269(0x1bf)],_0x18b906[_0x5ba269(0x1a2)],_0x18b906[_0x5ba269(0x1fb)]);return path[_0x5ba269(0x220)](_0x18b906[_0x5ba269(0x226)],_0x18b906[_0x5ba269(0x1bf)],_0x18b906[_0x5ba269(0x1a2)],_0x18b906[_0x5ba269(0x1fb)]);},exports[a40_0x143ed4(0x191)]=(_0x11f6dc,{test_run_uuid:_0x553f19})=>{const _0x4186ec=a40_0x143ed4,_0x592f97={'ChIZk':_0x4186ec(0x1cc),'Svhhy':_0x4186ec(0x227),'Snxzt':function(_0x1b53c3,_0x4e57cf){return _0x1b53c3<=_0x4e57cf;},'jViKe':function(_0x19e2b2,_0xc24dfe){return _0x19e2b2(_0xc24dfe);},'CuRkx':_0x4186ec(0x20c),'KyYRr':function(_0x4845d5,_0x3cc79e){return _0x4845d5(_0x3cc79e);},'CpnhN':function(_0x71a0ec,_0x41da3e){return _0x71a0ec>=_0x41da3e;},'cpZar':_0x4186ec(0x1d2),'XUbRR':function(_0x4b722a,_0x274a7b){return _0x4b722a>_0x274a7b;},'XXhSy':function(_0x110821,_0x70ee87){return _0x110821(_0x70ee87);},'limzq':function(_0x3aabed,_0x574ea9,_0x5c717b){return _0x3aabed(_0x574ea9,_0x5c717b);},'qwGQU':_0x4186ec(0x1cf)};if(!_0x11f6dc||_0x592f97[_0x4186ec(0x210)](_0x11f6dc[_0x4186ec(0x195)],0x0))return[];const _0x50bf17=_0x592f97[_0x4186ec(0x1fe)](removeAnsiColors,_0x11f6dc[0x0][_0x4186ec(0x21c)]);if(_0x50bf17[_0x4186ec(0x1b5)](_0x592f97[_0x4186ec(0x1cb)])){const _0x5394a1=_0x11f6dc[0x0],_0x3859db=_0x592f97[_0x4186ec(0x1f6)](getFrameworkVersion,FRAMEWORKS[_0x4186ec(0x216)]);if((!_0x5394a1[_0x4186ec(0x18a)]||_0x592f97[_0x4186ec(0x212)](_0x3859db,_0x592f97[_0x4186ec(0x1c3)]))&&_0x592f97[_0x4186ec(0x1b7)](_0x11f6dc[_0x4186ec(0x195)],0x1))return{'failureData':[{'backtrace':[_0x50bf17,_0x592f97['XXhSy'](removeAnsiColors,_0x11f6dc[0x1][_0x4186ec(0x18a)])]}],'logs':_0x11f6dc[_0x4186ec(0x1e8)](0x2)['map'](_0x1db05c=>{const _0x4863da=_0x4186ec;return{'timestamp':new Date()[_0x4863da(0x20f)](),'level':_0x592f97[_0x4863da(0x19c)],'message':''+_0x1db05c[_0x4863da(0x21c)],'kind':_0x592f97[_0x4863da(0x18f)],'http_response':{},'test_run_uuid':_0x553f19};})};}return{'failureData':_0x592f97[_0x4186ec(0x225)](failureData,_0x11f6dc,_0x592f97[_0x4186ec(0x1ac)]),'logs':[]};},exports[a40_0x143ed4(0x1b4)]=_0x24f45b=>{const _0x2b7a9f=a40_0x143ed4,_0x24a5b6={};_0x24a5b6[_0x2b7a9f(0x20e)]=function(_0x589870,_0x5963ee){return _0x589870!==_0x5963ee;},_0x24a5b6[_0x2b7a9f(0x1df)]=_0x2b7a9f(0x1c0),_0x24a5b6[_0x2b7a9f(0x20b)]=function(_0x410289,_0xbebad3){return _0x410289>_0xbebad3;};const _0x2bd58e=_0x24a5b6;if(_0x24f45b&&fs[_0x2b7a9f(0x1a6)](_0x24f45b)){if(_0x2bd58e[_0x2b7a9f(0x20e)](path[_0x2b7a9f(0x17e)](_0x24f45b)[_0x2b7a9f(0x1a4)](),_0x2bd58e['iFayS']))return logger[_0x2b7a9f(0x1a9)](_0x2b7a9f(0x1eb)+_0x24f45b),![];const _0x3b0947=fs[_0x2b7a9f(0x17b)](_0x24f45b)[_0x2b7a9f(0x1fc)];if(_0x2bd58e[_0x2b7a9f(0x20b)](_0x3b0947,MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE))return logger[_0x2b7a9f(0x1a9)](_0x2b7a9f(0x1c6)+_0x3b0947+_0x2b7a9f(0x1e3)),![];return!![];}return![];},exports[a40_0x143ed4(0x183)]=(_0x1883cc,_0xe78e0)=>{const _0x2b7b2b=a40_0x143ed4,_0x1beb88={};_0x1beb88[_0x2b7b2b(0x1d8)]=_0x2b7b2b(0x187);const _0x28d60d=_0x1beb88;logger[_0x2b7b2b(0x1d1)](_0x2b7b2b(0x20d)+_0xe78e0);if(_0x1883cc[_0x2b7b2b(0x222)]){const _0x52a170=_0x1883cc[_0x2b7b2b(0x222)][_0x2b7b2b(0x1dc)](_0x3283c6=>_0x3283c6[_0x2b7b2b(0x189)]==='trace');if(_0x52a170)return logger['debug'](_0x2b7b2b(0x1de)+_0xe78e0+_0x2b7b2b(0x1f5)),_0x52a170[_0xe78e0];}else{if(Object[_0x2b7b2b(0x1f8)][_0x2b7b2b(0x21f)][_0x2b7b2b(0x17a)](_0x1883cc)['includes'](_0x28d60d['RFhKd']))for(const _0x2d803a of _0x1883cc){if(_0x2d803a[_0xe78e0])return logger[_0x2b7b2b(0x1d1)](_0x2b7b2b(0x1de)+_0xe78e0+_0x2b7b2b(0x190)),_0x2d803a[_0xe78e0];}}return'';},exports[a40_0x143ed4(0x1ad)]=async(_0x3ab04d,_0x449e80)=>{const _0x59bd18=a40_0x143ed4,_0x291486={};_0x291486[_0x59bd18(0x218)]='LogCreated',_0x291486[_0x59bd18(0x1fd)]='TEST_ATTACHMENT',_0x291486['rqagv']=_0x59bd18(0x1ed),_0x291486[_0x59bd18(0x1c1)]=_0x59bd18(0x1e6);const _0x3ad294=_0x291486;try{const _0x50f63a={'event_type':_0x3ad294['mlWSZ'],'logs':[{'data':_0x3ab04d?fs[_0x59bd18(0x21d)](_0x3ab04d):'','test_run_uuid':_0x449e80,'kind':_0x3ad294[_0x59bd18(0x1fd)],'fileName':_0x3ab04d?path[_0x59bd18(0x205)](_0x3ab04d):''}]};return await SessionHandler[_0x59bd18(0x1f1)](_0x50f63a,0x0,_0x3ad294[_0x59bd18(0x228)]);}catch(_0x651c42){logger['error'](util[_0x59bd18(0x181)](_0x3ad294[_0x59bd18(0x1c1)],_0x651c42));}},exports[a40_0x143ed4(0x1ed)]=async(_0x2cfddc,_0x50c4a0)=>{const _0x4e2de8=a40_0x143ed4,_0x2bd126={};_0x2bd126[_0x4e2de8(0x182)]=_0x4e2de8(0x19d),_0x2bd126[_0x4e2de8(0x1d4)]='Trace\x20enabled',_0x2bd126[_0x4e2de8(0x17d)]=_0x4e2de8(0x1e6);const _0x102ee4=_0x2bd126;try{logger[_0x4e2de8(0x1d1)]('Checking\x20if\x20trace\x20is\x20enabled\x20for\x20test:\x20'+_0x50c4a0);const _0x4a8ab4=await exports['findNestedKey'](_0x2cfddc,_0x102ee4[_0x4e2de8(0x182)]);if(exports[_0x4e2de8(0x1b4)](_0x4a8ab4)){logger[_0x4e2de8(0x1d1)](_0x102ee4[_0x4e2de8(0x1d4)]);const _0x3d1eef={};_0x3d1eef[_0x4e2de8(0x1c7)]=_0x50c4a0,_0x3d1eef[_0x4e2de8(0x1be)]=_0x4a8ab4;const _0x4ecaa2=_0x3d1eef;TestDetails[_0x4e2de8(0x1dd)](_0x4ecaa2);};}catch(_0x300fdd){logger[_0x4e2de8(0x1a9)](util[_0x4e2de8(0x181)](_0x102ee4[_0x4e2de8(0x17d)],_0x300fdd));}};
|
|
1
|
+
const a40_0x5d083f=a40_0x1393;(function(_0x249a5c,_0x75fe8b){const _0xc97b79=a40_0x1393,_0x1f79fa=_0x249a5c();while(!![]){try{const _0x428537=parseInt(_0xc97b79(0x1f1))/0x1*(-parseInt(_0xc97b79(0x260))/0x2)+parseInt(_0xc97b79(0x25c))/0x3*(-parseInt(_0xc97b79(0x235))/0x4)+-parseInt(_0xc97b79(0x27b))/0x5*(parseInt(_0xc97b79(0x210))/0x6)+-parseInt(_0xc97b79(0x26e))/0x7*(-parseInt(_0xc97b79(0x208))/0x8)+-parseInt(_0xc97b79(0x245))/0x9+parseInt(_0xc97b79(0x1f9))/0xa+-parseInt(_0xc97b79(0x215))/0xb*(-parseInt(_0xc97b79(0x24f))/0xc);if(_0x428537===_0x75fe8b)break;else _0x1f79fa['push'](_0x1f79fa['shift']());}catch(_0xa00138){_0x1f79fa['push'](_0x1f79fa['shift']());}}}(a40_0x5b06,0x91f61));function a40_0x1393(_0x5afe43,_0x3584f0){const _0x5b06d9=a40_0x5b06();return a40_0x1393=function(_0x139314,_0x67c5c8){_0x139314=_0x139314-0x1d8;let _0x1e309e=_0x5b06d9[_0x139314];return _0x1e309e;},a40_0x1393(_0x5afe43,_0x3584f0);}const {debug,getFrameworkVersion,removeAnsiColors,failureData}=require('../../../helpers/test-observability/utils'),PerformanceTester=require('../../../helpers/performance/performance-tester'),fs=require('fs'),{FRAMEWORKS,MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE}=require(a40_0x5d083f(0x25e)),helper=require(a40_0x5d083f(0x1dc)),path=require(a40_0x5d083f(0x277)),logger=require(a40_0x5d083f(0x261))[a40_0x5d083f(0x27d)],SessionHandler=require(a40_0x5d083f(0x1fc)),TestDetails=require(a40_0x5d083f(0x1e6)),util=require(a40_0x5d083f(0x23b)),getTagsFromTitle=_0x31d4a2=>{const _0x1d35f0=a40_0x5d083f;return _0x31d4a2[_0x1d35f0(0x20f)](/@(\w+)/g)?.['map'](_0x22911f=>_0x22911f[_0x1d35f0(0x233)](0x1))||[];};exports['getTestTags']=_0x4a2453=>{const _0x3cb9b9=a40_0x5d083f,_0x494f0b={'pohqy':function(_0x3f018a,_0x52f841){return _0x3f018a(_0x52f841);}};if(_0x4a2453['tags'])return _0x4a2453[_0x3cb9b9(0x268)]['map'](_0x3576e0=>_0x3576e0[_0x3cb9b9(0x213)]('@')?_0x3576e0[_0x3cb9b9(0x216)](0x1):_0x3576e0);return _0x494f0b['pohqy'](getTagsFromTitle,_0x4a2453[_0x3cb9b9(0x1da)]);},exports['calculatePerformance']=async()=>{const _0x283c14=a40_0x5d083f,_0x709e11={'guGIH':function(_0x3100cc,_0x14f29a){return _0x3100cc-_0x14f29a;},'gjXrt':_0x283c14(0x20e),'veXDB':_0x283c14(0x258),'lcfBq':_0x283c14(0x27e),'TyvFs':_0x283c14(0x21e),'voszo':_0x283c14(0x254),'KuFcV':_0x283c14(0x22e),'QfDVu':'onStepEnd','pLfLL':_0x283c14(0x26b),'gkfkU':_0x283c14(0x231),'jFIPY':'beforeTestHook','dxrHO':_0x283c14(0x239),'Ysfuj':_0x283c14(0x20a),'JHohB':_0x283c14(0x1f7),'ELbgM':'sendSessionDetails','ZlWcT':_0x283c14(0x248),'VHpvU':_0x283c14(0x26d),'LNJRx':'sendTestLog','isdvY':function(_0x5813d3,_0x174797){return _0x5813d3(_0x174797);},'GDIFP':function(_0x4ab4ab,_0x2c61e5){return _0x4ab4ab/_0x2c61e5;},'OVyGy':function(_0x34e4ee,_0x407f35){return _0x34e4ee(_0x407f35);},'DmqMy':function(_0xf47ed5,_0x485a36){return _0xf47ed5+_0x485a36;},'eEMJz':function(_0x1d3dcb,_0x5e47dd){return _0x1d3dcb*_0x5e47dd;},'MBPyI':function(_0x4ee611,_0x2bb08a){return _0x4ee611/_0x2bb08a;},'BWmet':function(_0x1dbe8e,_0x3a6c0a){return _0x1dbe8e+_0x3a6c0a;}};if(!process['env'][_0x283c14(0x221)])return;const _0x49981d=_0x709e11[_0x283c14(0x1ed)](new Date()['getTime'](),new Date(process[_0x283c14(0x243)][_0x283c14(0x221)])[_0x283c14(0x228)]()),_0x4e013a=await PerformanceTester[_0x283c14(0x220)](_0x709e11[_0x283c14(0x1dd)],[_0x709e11['veXDB'],_0x709e11[_0x283c14(0x1e5)],_0x709e11[_0x283c14(0x22b)],_0x709e11[_0x283c14(0x1e3)],_0x709e11[_0x283c14(0x1ee)],_0x709e11[_0x283c14(0x23c)]]),_0x235f4e=fs[_0x283c14(0x275)]('.'),_0x4c44d6=_0x235f4e['filter'](_0x341b60=>_0x341b60[_0x283c14(0x213)]('performance-report-worker-')&&_0x341b60['endsWith'](_0x283c14(0x278))),_0x5e29c9=await PerformanceTester[_0x283c14(0x27c)](_0x4c44d6,[_0x709e11[_0x283c14(0x23d)],_0x709e11[_0x283c14(0x241)],_0x709e11[_0x283c14(0x24c)],_0x709e11[_0x283c14(0x21c)],_0x709e11[_0x283c14(0x234)],_0x709e11[_0x283c14(0x1e4)],_0x709e11['ELbgM'],_0x709e11['ZlWcT'],_0x709e11[_0x283c14(0x26c)],_0x709e11['LNJRx']]);_0x709e11[_0x283c14(0x1fa)](debug,_0x283c14(0x227)+_0x709e11['GDIFP'](_0x49981d,0x3e8)+'\x20s'),_0x709e11[_0x283c14(0x271)](debug,'Total\x20time\x20taken\x20by\x20O11y\x20is\x20'+_0x709e11[_0x283c14(0x209)](_0x5e29c9,_0x4e013a)),_0x709e11[_0x283c14(0x271)](debug,'Percentage\x20of\x20increased\x20time\x20is\x20'+_0x709e11[_0x283c14(0x246)](_0x709e11[_0x283c14(0x264)](_0x709e11[_0x283c14(0x222)](_0x5e29c9,_0x4e013a),_0x49981d),0x64));},exports[a40_0x5d083f(0x1fe)]=()=>{const _0x51803c=a40_0x5d083f,_0x4905b9={'dHRIa':function(_0x1f2ac8,_0x5a5179){return _0x1f2ac8(_0x5a5179);},'FbUGB':function(_0x5c7b85,_0x50e2ce){return _0x5c7b85>=_0x50e2ce;},'Qvlyc':_0x51803c(0x229),'PYsAz':_0x51803c(0x202),'JZGxd':_0x51803c(0x274),'dPndv':function(_0xcfec1e,_0x158e3f){return _0xcfec1e>=_0x158e3f;},'dlmXD':'1.35.0','tgEbl':'@playwright/test/lib/transform/transform.js','GOEFD':_0x51803c(0x269),'BROcm':_0x51803c(0x255)},_0x46a984=_0x4905b9[_0x51803c(0x247)](getFrameworkVersion,FRAMEWORKS[_0x51803c(0x23e)]);if(_0x4905b9[_0x51803c(0x1eb)](helper['compareVersions'](_0x46a984,_0x4905b9[_0x51803c(0x1d9)]),0x0))return[_0x4905b9[_0x51803c(0x259)],_0x4905b9['JZGxd']];if(_0x4905b9[_0x51803c(0x23f)](helper['compareVersions'](_0x46a984,_0x4905b9[_0x51803c(0x211)]),0x0))return[_0x4905b9['tgEbl'],_0x4905b9[_0x51803c(0x230)]];return[_0x4905b9[_0x51803c(0x244)],_0x4905b9['GOEFD']];},exports['getConfigLoaderPath']=()=>{const _0x22f51c=a40_0x5d083f,_0x37113e={'LNYaj':function(_0x55c1b8,_0x50868c){return _0x55c1b8(_0x50868c);},'uEgUP':function(_0x4c6ee3,_0x1ff62e){return _0x4c6ee3>=_0x1ff62e;},'wbVMx':_0x22f51c(0x229),'ogBTG':_0x22f51c(0x20b),'XBPqA':_0x22f51c(0x274),'efZEI':_0x22f51c(0x205),'dJeSg':'@playwright/test'},_0x5c1b5e=_0x37113e[_0x22f51c(0x214)](getFrameworkVersion,FRAMEWORKS[_0x22f51c(0x23e)]);if(_0x37113e[_0x22f51c(0x1f4)](helper[_0x22f51c(0x25b)](_0x5c1b5e,_0x37113e[_0x22f51c(0x1de)]),0x0))return[_0x37113e[_0x22f51c(0x20c)],_0x37113e[_0x22f51c(0x1ff)]];return[_0x37113e[_0x22f51c(0x207)],_0x37113e[_0x22f51c(0x223)]];},exports[a40_0x5d083f(0x25d)]=()=>{const _0x31ada1=a40_0x5d083f,_0x499bb8={};_0x499bb8['ipEbI']=_0x31ada1(0x236);const _0x5384be=_0x499bb8;return helper[_0x31ada1(0x1e9)](_0x5384be['ipEbI']);},exports['getProjectUtilsPath']=()=>{const _0x3960ab=a40_0x5d083f,_0x510ac8={};_0x510ac8['LvLGf']='runner/projectUtils.js';const _0x3c1dda=_0x510ac8;return helper[_0x3960ab(0x1e9)](_0x3c1dda[_0x3960ab(0x26f)]);},exports[a40_0x5d083f(0x276)]=()=>{const _0x4978a2=a40_0x5d083f,_0x663894={'XeHGt':function(_0x2b2619,_0x2d3b76){return _0x2b2619(_0x2d3b76);},'AFfdI':function(_0x16ddc9,_0x52c655){return _0x16ddc9>=_0x52c655;},'gKgou':'1.38.0','TZXfk':_0x4978a2(0x200),'BIUZb':_0x4978a2(0x25f),'VEiDX':_0x4978a2(0x224),'KfzwL':_0x4978a2(0x25a)},_0x3fc025=_0x663894[_0x4978a2(0x1db)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);if(_0x663894[_0x4978a2(0x256)](helper[_0x4978a2(0x25b)](_0x3fc025,_0x663894['gKgou']),0x0))return path[_0x4978a2(0x1f3)](_0x663894[_0x4978a2(0x24d)],_0x663894['BIUZb'],_0x663894[_0x4978a2(0x21a)]);return path[_0x4978a2(0x1f3)](_0x663894[_0x4978a2(0x24e)],_0x663894[_0x4978a2(0x24d)],_0x663894[_0x4978a2(0x1df)],_0x663894['VEiDX']);},exports[a40_0x5d083f(0x204)]=(_0x4fcb75,{test_run_uuid:_0x44800e})=>{const _0x163903=a40_0x5d083f,_0xd724ba={'GBIQx':_0x163903(0x250),'WdDak':_0x163903(0x1f8),'YaqwD':function(_0xd38b59,_0x3aca88){return _0xd38b59<=_0x3aca88;},'FCivk':function(_0x37be6d,_0x5a4dbb){return _0x37be6d(_0x5a4dbb);},'RVxeg':_0x163903(0x1e2),'cINHy':function(_0x528592,_0x30e473){return _0x528592(_0x30e473);},'DcQlN':function(_0x18448e,_0x134c41){return _0x18448e>=_0x134c41;},'kibKS':_0x163903(0x1fb),'wzMfC':function(_0x51974e,_0x508037){return _0x51974e>_0x508037;},'KzdiL':function(_0x5e4f2b,_0x3da41f,_0x468bf0){return _0x5e4f2b(_0x3da41f,_0x468bf0);},'GOZJu':_0x163903(0x25a)};if(!_0x4fcb75||_0xd724ba[_0x163903(0x265)](_0x4fcb75[_0x163903(0x206)],0x0))return[];const _0xeb374f=_0xd724ba[_0x163903(0x270)](removeAnsiColors,_0x4fcb75[0x0][_0x163903(0x1f2)]);if(_0xeb374f[_0x163903(0x213)](_0xd724ba['RVxeg'])){const _0xc2422=_0x4fcb75[0x0],_0x1e3619=_0xd724ba['cINHy'](getFrameworkVersion,FRAMEWORKS[_0x163903(0x23e)]);if((!_0xc2422[_0x163903(0x273)]||_0xd724ba[_0x163903(0x217)](_0x1e3619,_0xd724ba['kibKS']))&&_0xd724ba[_0x163903(0x24b)](_0x4fcb75[_0x163903(0x206)],0x1))return{'failureData':[{'backtrace':[_0xeb374f,_0xd724ba[_0x163903(0x270)](removeAnsiColors,_0x4fcb75[0x1][_0x163903(0x273)])]}],'logs':_0x4fcb75[_0x163903(0x233)](0x2)[_0x163903(0x20d)](_0x1e8a03=>{const _0x3b568f=_0x163903;return{'timestamp':new Date()[_0x3b568f(0x21d)](),'level':_0xd724ba['GBIQx'],'message':''+_0x1e8a03[_0x3b568f(0x1f2)],'kind':_0xd724ba[_0x3b568f(0x253)],'http_response':{},'test_run_uuid':_0x44800e};})};}return{'failureData':_0xd724ba[_0x163903(0x1ea)](failureData,_0x4fcb75,_0xd724ba[_0x163903(0x225)]),'logs':[]};},exports[a40_0x5d083f(0x1e0)]=_0x171486=>{const _0x13812a=a40_0x5d083f,_0x49e9ec={};_0x49e9ec[_0x13812a(0x263)]=function(_0x4e28fa,_0x5abeac){return _0x4e28fa!==_0x5abeac;},_0x49e9ec[_0x13812a(0x27a)]='.zip',_0x49e9ec[_0x13812a(0x22d)]=function(_0x2ea7c4,_0x4dc095){return _0x2ea7c4>_0x4dc095;};const _0x18455b=_0x49e9ec;if(_0x171486&&fs['existsSync'](_0x171486)){if(_0x18455b[_0x13812a(0x263)](path[_0x13812a(0x21b)](_0x171486)[_0x13812a(0x1e8)](),_0x18455b[_0x13812a(0x27a)]))return logger[_0x13812a(0x1ec)](_0x13812a(0x1f6)+_0x171486),![];const _0x23648c=fs[_0x13812a(0x232)](_0x171486)[_0x13812a(0x24a)];if(_0x18455b[_0x13812a(0x22d)](_0x23648c,MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE))return logger[_0x13812a(0x1ec)](_0x13812a(0x1f0)+_0x23648c+_0x13812a(0x22c)),![];return!![];}return![];},exports[a40_0x5d083f(0x203)]=(_0x36d957,_0x18b010)=>{const _0x4bc313=a40_0x5d083f,_0x49dcb9={};_0x49dcb9[_0x4bc313(0x262)]=_0x4bc313(0x219);const _0x12ebea=_0x49dcb9;logger['debug']('Searching\x20for\x20key:\x20'+_0x18b010);if(_0x36d957['attachments']){const _0x298c1d=_0x36d957['attachments'][_0x4bc313(0x201)](_0x42331d=>_0x42331d['name']===_0x4bc313(0x23a));if(_0x298c1d)return logger[_0x4bc313(0x251)](_0x4bc313(0x22f)+_0x18b010+_0x4bc313(0x1d8)),_0x298c1d[_0x18b010];}else{if(Object[_0x4bc313(0x1ef)][_0x4bc313(0x257)][_0x4bc313(0x1f5)](_0x36d957)[_0x4bc313(0x21f)](_0x12ebea['hewEJ']))for(const _0x454ffe of _0x36d957){if(_0x454ffe[_0x18b010])return logger[_0x4bc313(0x251)](_0x4bc313(0x22f)+_0x18b010+_0x4bc313(0x218)),_0x454ffe[_0x18b010];}}return'';},exports['uploadTraceZip']=async(_0x2c7ac0,_0x3ed0f1)=>{const _0x24e3f7=a40_0x5d083f,_0x4c4127={};_0x4c4127[_0x24e3f7(0x272)]=_0x24e3f7(0x237),_0x4c4127[_0x24e3f7(0x240)]=_0x24e3f7(0x1fd),_0x4c4127['IaAzQ']=_0x24e3f7(0x252),_0x4c4127[_0x24e3f7(0x242)]='Error\x20in\x20sending\x20trace\x20file:\x20%s';const _0x50d3e6=_0x4c4127;try{const _0x529132={'event_type':_0x50d3e6['XBXKG'],'logs':[{'data':_0x2c7ac0?fs[_0x24e3f7(0x279)](_0x2c7ac0):'','test_run_uuid':_0x3ed0f1,'kind':_0x50d3e6[_0x24e3f7(0x240)],'fileName':_0x2c7ac0?path[_0x24e3f7(0x267)](_0x2c7ac0):''}]};return await SessionHandler['sendEventData'](_0x529132,0x0,_0x50d3e6[_0x24e3f7(0x249)]);}catch(_0x3298ac){logger[_0x24e3f7(0x1ec)](util[_0x24e3f7(0x1e1)](_0x50d3e6[_0x24e3f7(0x242)],_0x3298ac));}},exports[a40_0x5d083f(0x252)]=async(_0x27423c,_0x321cd5)=>{const _0xee4b11=a40_0x5d083f,_0x547146={};_0x547146['QbwYa']=_0xee4b11(0x277),_0x547146['fTKFW']='Trace\x20enabled',_0x547146[_0xee4b11(0x26a)]=_0xee4b11(0x266);const _0x2b1fd0=_0x547146;try{logger[_0xee4b11(0x251)](_0xee4b11(0x238)+_0x321cd5);const _0x285d66=await exports['findNestedKey'](_0x27423c,_0x2b1fd0[_0xee4b11(0x1e7)]);if(exports[_0xee4b11(0x1e0)](_0x285d66)){logger[_0xee4b11(0x251)](_0x2b1fd0[_0xee4b11(0x22a)]);const _0x197e08={};_0x197e08['testUId']=_0x321cd5,_0x197e08[_0xee4b11(0x226)]=_0x285d66;const _0x42a585=_0x197e08;TestDetails[_0xee4b11(0x212)](_0x42a585);};}catch(_0x12dca7){logger[_0xee4b11(0x1ec)](util[_0xee4b11(0x1e1)](_0x2b1fd0[_0xee4b11(0x26a)],_0x12dca7));}};function a40_0x5b06(){const _0x15e057=['dxrHO','toISOString','onTestBegin','includes','stopAndGenerate','START_TIME','BWmet','dJeSg','process.js','GOZJu','filePath','Total\x20duration\x20for\x20whole\x20build\x20is\x20','getTime','1.38.0','fTKFW','TyvFs','\x20bytes','Iboig','onStepBegin','Found\x20key:\x20','GOEFD','afterWorkerHook','statSync','slice','Ysfuj','3412ZoEpik','runner/loadUtils.js','LogCreated','Checking\x20if\x20trace\x20is\x20enabled\x20for\x20test:\x20','afterTestHook','trace','util','QfDVu','pLfLL','PLAYWRIGHT','dPndv','CuYuT','gkfkU','rPkof','env','BROcm','10037223NYXhjM','eEMJz','dHRIa','setupBrowserDetails','IaAzQ','size','wzMfC','jFIPY','TZXfk','KfzwL','60252PMNLST','ERROR','debug','sendTraceZip','WdDak','onTestEnd','@playwright/test/lib/common/transform.js','AFfdI','toString','onBegin','PYsAz','test','compareVersions','81WQDMfu','getLoadUtilsPath','../../../helpers/test-observability/constants','common','188036tzMClb','../../../helpers/logger','hewEJ','fYmDh','MBPyI','YaqwD','Error\x20in\x20sending\x20trace\x20file:\x20%s','basename','tags','@playwright/test','ILTTI','beforeWorkerHook','VHpvU','requestSpyCallback','56XGayZV','LvLGf','FCivk','OVyGy','XBXKG','stack','playwright','readdirSync','getForkProcessPath','path','.json','createReadStream','ZfSwW','1015dnHgyq','calculateTimesFromMultipleFiles','winstonLogger','endSession','\x20in\x20attachments','Qvlyc','title','XeHGt','../../../helpers/helper','gjXrt','wbVMx','BIUZb','validateFilePath','format','Test\x20timeout\x20of','voszo','JHohB','lcfBq','./test-details','QbwYa','toLowerCase','getPlaywrightLibPath','KzdiL','FbUGB','error','guGIH','KuFcV','prototype','Trace\x20file\x20size\x20exceeds\x20100MB:\x20','7VDSbzz','message','join','uEgUP','call','Invalid\x20file\x20format.\x20Expected\x20a\x20.zip\x20file,\x20but\x20got:\x20','processPageScreenshot','TEST_LOG','8197470FjrGEB','isdvY','1.42.0','../../../helpers/test-observability/sessionHandler','TEST_ATTACHMENT','getTransformPath','XBPqA','lib','find','playwright/lib/transform/transform.js','findNestedKey','getFailureData','@playwright/test/lib/common/configLoader.js','length','efZEI','354016WXvYEj','DmqMy','doo11ySync','playwright/lib/common/configLoader.js','ogBTG','map','performance-reporter.html','match','32934dcZvZf','dlmXD','addTraceFilePath','startsWith','LNYaj','5115mCSMUI','substr','DcQlN','\x20in\x20arguments','Arguments','VEiDX','extname'];a40_0x5b06=function(){return _0x15e057;};return a40_0x5b06();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a41_0x326ccd=a41_0xac7f;(function(_0x30a0a3,_0x55b8a3){const _0x4a6710=a41_0xac7f,_0x2011b9=_0x30a0a3();while(!![]){try{const _0x222206=-parseInt(_0x4a6710(0x126))/0x1*(-parseInt(_0x4a6710(0x102))/0x2)+parseInt(_0x4a6710(0xb2))/0x3*(parseInt(_0x4a6710(0x18d))/0x4)+-parseInt(_0x4a6710(0x16d))/0x5+parseInt(_0x4a6710(0x114))/0x6*(-parseInt(_0x4a6710(0xce))/0x7)+parseInt(_0x4a6710(0xae))/0x8+-parseInt(_0x4a6710(0x159))/0x9+parseInt(_0x4a6710(0x103))/0xa*(parseInt(_0x4a6710(0x163))/0xb);if(_0x222206===_0x55b8a3)break;else _0x2011b9['push'](_0x2011b9['shift']());}catch(_0x4b53e7){_0x2011b9['push'](_0x2011b9['shift']());}}}(a41_0x303a,0xec670));function a41_0x303a(){const _0x5b076a=['PLAYWRIGHT','Prkyt','efxYX','Lfanw','filter','javascript','eLNaQ','titlePath','BROWSERSTACK_O11Y_PERF_MEASUREMENT','txLdB','retry','arkEp','35154UlQRxW','failure_reason','MxmTA','root','oJYlm','getStepsAndLogs','meta','_tags','getTestIdentifier','wlQFe','startMonitoring','Lqfdp','startsWith','Sending\x20session\x20details\x20for\x20','performance-report-reporter.json','onTestBegin','depth','getTestUUID','857mjPJEB','kqLns','../../../helpers/helper','xIuIr','test','getTime','ZDBlT','CYenY','push','VFCkB','FMmeZ','env','blxjo','../../../helpers/test-observability/requestQueueHandler','TestRunFinished','VbxrN','expectedStatus','onStepBegin','basename','gefEU','KJXrt','BYVRN','iLsHm','Trace\x20file\x20found\x20for\x20test:\x20','bWKwv','ZyBfk','aveoW','../../../helpers/test-observability/utils','GDLBj','test_run_uuid','skipped','reverse','../../../helpers/test-observability/sessionHandler','endSession','afterAll\x20hook','\x20-\x20','QYTaW','path','test_run','0|5|4|3|2|6|1','lAhLM','JhSRV','object','eygmo','Yapfg','category','NNvae','startTime','setStepIdentifier','NdJgY','base64','16899417ihwDnR','PNLxM','relative','toString','QADAW','getCustomRerunParam','./pwUtils','size','URXvC','BEFORE_EACH','12914JHfmkc','MvDML','wvkCs','yJXyk','_testHooksMap','title','length','../../../helpers/testhub/utils','BROWSERSTACK_TEST_RUN_ID','vcDMi','6397650dlpmeR','error','../../../helpers/test-observability/constants','cwd','\x20is\x20triggered','retry_of','LogCreated','_gitConfigPath','statSync','TEST_STEP','onStepEnd','smfow','PJrRw','message','errors','setup','TBKin','RSaBA','pending','EFpBX','attachments','event_type','format','forEach','timedOut','failed','SVAQM','TestRunStarted','afterEach\x20hook','FXilJ','piAxR','backtrace','120gFStcC','\x20is\x20triggered\x20for\x20test\x20','lHASH','getTestRunIdentifier','Error\x20in\x20sending\x20trace\x20zip:\x20%s','sendHookRunEvent','CAKAL','inspect','KRboF','After\x20Hooks','finishedAt','Error\x20in\x20calculating\x20performance:\x20','\x20for\x20','join','file','OBZfb','Error\x20in\x20sending\x20test\x20run\x20event:\x20%s','_bs_hookIdentifier','NgeIT','apepZ','UvNdR','err','Jcbol','duration','lhbvg','JSCar','HfvaN','onBegin','SAfZf','shutdown','bLers','util','hook','cWgcJ','startedAt','_tests','VvyLG','frBev','3925648tDfSmT','TEST_SCREENSHOT','logs','status','57999PWPiLt','parent','steps','Pvwsv','reportLogs','Expected\x20to\x20fail,\x20but\x20passed.','map','KtOOE','failure','eqfCV','../../../helpers/performance/performance-tester','getStepIdentifier','beforeEach\x20hook','QGVmk','onTestEnd','options','configureGit','Zforr','SZslA','mtime','beforeAll\x20hook','split','trace_','Before\x20Hooks','GRjyk','getInstance','screenshot','UvydX','462UuQYAg','location','getHierarchy','QCgyh','getScope','lNxKd','getHookType','lOrfD','gjqBk','FWdUK','needToReportStep','MyReporter','splice','uuid','Hook\x20Started\x20with\x20unique\x20id\x20','TXvYY','ZLzft','BEFORE_ALL','ChpqD','NYPcz','.txt','readFileSync','wvEpE','./test-details','exports','RnwLt','logLevel','MsGhQ','\x20at\x20','existsSync','passed','KAMYD','uploadEventData','hook_run_uuid','UXeRf','_gitConfigured','Gbrdt','BROWSERSTACK_LOG_LEVEL','hoAtb','sendTestRunEvent','onEnd','Hook\x20Finished\x20with\x20unique\x20id\x20','jknMT','RwvDz','HookRunStarted','toISOString','sendSessionDetails','expanded','FtgoR','hqikd','homedir','HookRunFinished','78akEnhk','29030LGahbT','AFTER_ALL','unknown','iWHaC','result'];a41_0x303a=function(){return _0x5b076a;};return a41_0x303a();}const RequestQueueHandler=require(a41_0x326ccd(0x133)),{calculatePerformance,getTestTags,getFailureData,sendTraceZip,findNestedKey,validateFilePath}=require(a41_0x326ccd(0x15f)),{v4:uuidv4}=require(a41_0x326ccd(0xdb)),path=require(a41_0x326ccd(0x14b)),{debug,removeAnsiColors,printBuildLink,getFailureType,failureData,trace}=require(a41_0x326ccd(0x141)),{getGitMetaData,setLogLevel}=require(a41_0x326ccd(0x128)),TestDetails=require(a41_0x326ccd(0xe5)),fs=require('fs'),util=require(a41_0x326ccd(0xa7)),{o11yClassErrorHandler}=require('../../../helpers/test-observability/error-handler'),PerformanceTester=require(a41_0x326ccd(0xbc)),{FRAMEWORKS}=require(a41_0x326ccd(0x16f)),SessionHandler=require(a41_0x326ccd(0x146)),{appendTesthubParams}=require(a41_0x326ccd(0x16a)),helper=require('../../../helpers/helper');class MyReporter{constructor(_0x3b7285){const _0x46bde6=a41_0x326ccd,_0x58469b={'arkEp':_0x46bde6(0x14d),'lNxKd':function(_0x241cf3,_0x1c4a24,_0x3498bf,_0x3dbb6){return _0x241cf3(_0x1c4a24,_0x3498bf,_0x3dbb6);},'JhSRV':_0x46bde6(0x122)},_0x5ad89e=_0x58469b[_0x46bde6(0x113)][_0x46bde6(0xc7)]('|');let _0x21bc7e=0x0;while(!![]){switch(_0x5ad89e[_0x21bc7e++]){case'0':const _0x3f92ce={};_0x3f92ce[_0x46bde6(0xe8)]=process[_0x46bde6(0x131)][_0x46bde6(0xf3)],_0x58469b[_0x46bde6(0xd3)](setLogLevel,_0x3f92ce,new Map(),new Map());continue;case'1':this[_0x46bde6(0x174)]=null;continue;case'2':this[_0x46bde6(0xc1)]=_0x3b7285;continue;case'3':this['_testHooksMap']={};continue;case'4':this[_0x46bde6(0xab)]={};continue;case'5':process[_0x46bde6(0x131)][_0x46bde6(0x110)]&&(PerformanceTester[_0x46bde6(0x11e)](_0x58469b[_0x46bde6(0x14f)]),process[_0x46bde6(0x131)]['START_TIME']=new Date()['toISOString']());continue;case'6':this[_0x46bde6(0xf1)]=![];continue;}break;}}async[a41_0x326ccd(0x1a8)](){const _0x101366=a41_0x326ccd;TestDetails[_0x101366(0x17c)](),await this['configureGit']();}async[a41_0x326ccd(0x123)](_0x5e9dc4,_0xd8b27e){const _0x19f12a=a41_0x326ccd,_0x36e241={'FXilJ':function(_0x43fd64,_0x4e688f){return _0x43fd64(_0x4e688f);},'eLNaQ':_0x19f12a(0x188)},_0x509ba2=this[_0x19f12a(0x11c)](_0x5e9dc4),_0x25d33c=TestDetails[_0x19f12a(0x125)](this[_0x19f12a(0x190)](_0x5e9dc4,_0xd8b27e[_0x19f12a(0x112)]));process['env'][_0x19f12a(0x16b)]=_0x25d33c;const _0x3d9c5a={};_0x3d9c5a[_0x19f12a(0xdb)]=_0x25d33c,_0x3d9c5a[_0x19f12a(0xaa)]=_0xd8b27e[_0x19f12a(0x155)],this[_0x19f12a(0xab)][_0x509ba2]=_0x3d9c5a,_0x36e241[_0x19f12a(0x18a)](trace,'Test\x20Started\x20with\x20unique\x20id\x20'+_0x509ba2),await this[_0x19f12a(0xf5)](_0x5e9dc4,_0x36e241[_0x19f12a(0x10e)],_0xd8b27e);}async[a41_0x326ccd(0x137)](_0x288710,_0xd75949,_0x248542){const _0x240b46=a41_0x326ccd,_0x2c797c={'kqLns':function(_0x533ecf,_0x54afde){return _0x533ecf(_0x54afde);},'vcDMi':_0x240b46(0xfa)};if(!this['needToReportStep'](_0x248542,_0x288710))return;const _0xdbf493=this[_0x240b46(0x156)](_0x288710,_0x248542);this['_tests'][_0xdbf493]={'uuid':TestDetails[_0x240b46(0x125)](_0xdbf493),'startedAt':_0x248542['startTime'][_0x240b46(0xfb)]()};const _0x388b79=this[_0x240b46(0x190)](_0x288710,_0xd75949['retry']);!this['_testHooksMap'][_0x388b79]&&(this['_testHooksMap'][_0x388b79]=[]),this['_testHooksMap'][_0x388b79][_0x240b46(0x12e)](this['_tests'][_0xdbf493][_0x240b46(0xdb)]),_0x2c797c[_0x240b46(0x127)](trace,_0x240b46(0xdc)+_0xdbf493+_0x240b46(0x18e)+_0x388b79),await this['sendHookRunEvent'](_0x288710,_0x248542,_0x2c797c[_0x240b46(0x16c)],_0xd75949);}async['onStepEnd'](_0x841db9,_0x5773e2,_0x2c17b8){const _0x5dac0f=a41_0x326ccd,_0x3b8c4a={'piAxR':function(_0x381cc8,_0x5ddb93){return _0x381cc8+_0x5ddb93;},'apepZ':function(_0x313a56,_0x4ada0a){return _0x313a56(_0x4ada0a);},'NYPcz':'HookRunFinished'};if(!this[_0x5dac0f(0xd8)](_0x2c17b8,_0x841db9))return;const _0x435791=this['getStepIdentifier'](_0x841db9,_0x2c17b8);this[_0x5dac0f(0xab)][_0x435791]={...this[_0x5dac0f(0xab)][_0x435791]||{},'finishedAt':new Date(_0x3b8c4a[_0x5dac0f(0x18b)](_0x2c17b8[_0x5dac0f(0x155)][_0x5dac0f(0x12b)](),_0x2c17b8[_0x5dac0f(0x1a4)]))},_0x3b8c4a[_0x5dac0f(0x1a0)](trace,_0x5dac0f(0xf7)+_0x435791+_0x5dac0f(0x171)),await this[_0x5dac0f(0x192)](_0x841db9,_0x2c17b8,_0x3b8c4a[_0x5dac0f(0xe1)],_0x5773e2);}async[a41_0x326ccd(0xc0)](_0x1de278,_0xd61978){const _0x110197=a41_0x326ccd,_0x308c02={'smfow':function(_0x5ecbae,_0x17671f){return _0x5ecbae===_0x17671f;},'XtPoQ':_0x110197(0xcc),'YgKwf':_0x110197(0xaf),'ZyBfk':_0x110197(0x158),'lHASH':function(_0x3567a6,_0x5eb439){return _0x3567a6(_0x5eb439);},'wlQFe':_0x110197(0x134),'MrATJ':_0x110197(0x19d),'CYenY':function(_0x321bfb,_0x293e90,_0x56ca3b){return _0x321bfb(_0x293e90,_0x56ca3b);},'VbxrN':_0x110197(0x191),'AbvyN':function(_0x5be388,_0xd5d5ec){return _0x5be388>_0xd5d5ec;}},_0x1c0d7f=this[_0x110197(0x11c)](_0x1de278),_0x3a171a=TestDetails['getTestUUID'](this[_0x110197(0x190)](_0x1de278,_0xd61978['retry']));this[_0x110197(0xab)][_0x1c0d7f]={...this[_0x110197(0xab)][_0x1c0d7f]||{},'finishedAt':new Date()[_0x110197(0xfb)]()},_0x308c02[_0x110197(0x18f)](debug,'Test\x20Finished\x20with\x20unique\x20id\x20'+_0x1c0d7f);try{await this[_0x110197(0xf5)](_0x1de278,_0x308c02[_0x110197(0x11d)],_0xd61978);}catch(_0x420b28){_0x308c02[_0x110197(0x18f)](debug,util[_0x110197(0x183)](_0x308c02['MrATJ'],_0x420b28[_0x110197(0x15c)]()));}try{_0x308c02['lHASH'](debug,'Starting\x20sending\x20trace\x20zip\x20for\x20test:\x20'+_0x3a171a),await _0x308c02[_0x110197(0x12d)](sendTraceZip,_0xd61978,_0x3a171a);}catch(_0x505e7c){_0x308c02[_0x110197(0x18f)](debug,util[_0x110197(0x183)](_0x308c02[_0x110197(0x135)],_0x505e7c[_0x110197(0x15c)]()));}const _0x4e7b5e=[];_0xd61978[_0x110197(0x181)]&&_0xd61978[_0x110197(0x181)]['map'](_0x4d71bf=>{const _0x4d11b6=_0x110197;if(_0x308c02[_0x4d11b6(0x178)](_0x4d71bf['name'],_0x308c02['XtPoQ'])){if(!_0x4d71bf['path']||!fs[_0x4d11b6(0xeb)](_0x4d71bf[_0x4d11b6(0x14b)]))return;_0x4e7b5e[_0x4d11b6(0x12e)]({'test_run_uuid':_0x3a171a,'timestamp':fs[_0x4d11b6(0x175)](_0x4d71bf['path'])[_0x4d11b6(0xc5)],'kind':_0x308c02['YgKwf'],'message':fs[_0x4d11b6(0xe3)](_0x4d71bf['path'],{'encoding':_0x308c02[_0x4d11b6(0x13f)]})});}}),_0x308c02['AbvyN'](_0x4e7b5e[_0x110197(0x169)],0x0)&&await MyReporter['reportLogs'](_0x4e7b5e);}async['endSession'](){const _0x312e01=a41_0x326ccd;await RequestQueueHandler[_0x312e01(0xcb)]()[_0x312e01(0x1aa)]();}async[a41_0x326ccd(0xf6)](_0x40187f){const _0x589521=a41_0x326ccd,_0x10b8a1={'blxjo':function(_0x49624a){return _0x49624a();},'NNvae':function(_0x4f6533,_0x3235da){return _0x4f6533(_0x3235da);}};await this[_0x589521(0x147)]();try{process['env'][_0x589521(0x110)]&&await _0x10b8a1[_0x589521(0x132)](calculatePerformance);}catch(_0x2c1504){_0x10b8a1[_0x589521(0x154)](debug,_0x589521(0x198)+_0x2c1504[_0x589521(0x15c)]());}}static async['addTestUIDAndReportLog'](_0x5dc448,_0x4afb7c){const _0x24c481=a41_0x326ccd;_0x4afb7c['test_run_uuid']=TestDetails[_0x24c481(0x125)](_0x5dc448),await this[_0x24c481(0xb6)]([_0x4afb7c]);}static async['reportLogs'](_0x28d6e1){const _0x571f0d=a41_0x326ccd,_0x5ef87a={};_0x5ef87a[_0x571f0d(0xe4)]=_0x571f0d(0x173);const _0x17b0c3=_0x5ef87a,_0x1cc951={};_0x1cc951[_0x571f0d(0x182)]=_0x17b0c3[_0x571f0d(0xe4)],_0x1cc951['logs']=_0x28d6e1,await SessionHandler[_0x571f0d(0xee)](_0x1cc951);}async[a41_0x326ccd(0x192)](_0x5da38d,_0xe34b89,_0x559b98,_0x5a1d47){const _0x5f377c=a41_0x326ccd,_0x3ff5cd={'FtgoR':_0x5f377c(0xa8),'SAfZf':'javascript','jnNgg':_0x5f377c(0x17f),'MxmTA':function(_0x2f3c65,_0x9d369f){return _0x2f3c65>=_0x9d369f;},'wvkCs':function(_0x3662ac,_0x4a3965){return _0x3662ac===_0x4a3965;},'DvLar':_0x5f377c(0x101),'sPGNu':function(_0x46a6f9,_0x181856){return _0x46a6f9>_0x181856;},'Lqfdp':'failed','KtOOE':function(_0x325ffe,_0x465b44){return _0x325ffe(_0x465b44);},'URXvC':function(_0x45286b,_0x2bc26d,_0x2dce99){return _0x45286b(_0x2bc26d,_0x2dce99);},'PJrRw':_0x5f377c(0x1a2),'RXfMu':'passed'},_0x55276e=this[_0x5f377c(0xbd)](_0x5da38d,_0xe34b89),_0xd80c8e=this[_0x5f377c(0xab)][_0x55276e],_0x2b2c90={'uuid':_0xd80c8e[_0x5f377c(0xdb)],'type':_0x3ff5cd[_0x5f377c(0xfe)],'hook_type':this[_0x5f377c(0xd4)](_0xe34b89[_0x5f377c(0x168)]),'name':_0xe34b89[_0x5f377c(0x168)],'scope':this[_0x5f377c(0xd2)](_0xe34b89),'scopes':this[_0x5f377c(0xd0)](_0x5da38d),'body':{'lang':_0x3ff5cd[_0x5f377c(0x1a9)],'code':null},'identifier':_0x55276e,'file_name':path[_0x5f377c(0x15b)](process['cwd'](),_0x5da38d['location'][_0x5f377c(0x19b)]),'location':path[_0x5f377c(0x15b)](process[_0x5f377c(0x170)](),_0x5da38d[_0x5f377c(0xcf)][_0x5f377c(0x19b)]),'result':_0x3ff5cd['jnNgg'],'duration_in_ms':_0x3ff5cd[_0x5f377c(0x116)](_0xe34b89[_0x5f377c(0x1a4)],0x0)?_0xe34b89[_0x5f377c(0x1a4)]:undefined,'vc_filepath':this[_0x5f377c(0x174)]&&_0x5da38d['location'][_0x5f377c(0x19b)]?path[_0x5f377c(0x15b)](this[_0x5f377c(0x174)],_0x5da38d[_0x5f377c(0xcf)][_0x5f377c(0x19b)]):undefined,'started_at':_0xd80c8e[_0x5f377c(0xaa)],'finished_at':_0xd80c8e[_0x5f377c(0x197)],'framework':FRAMEWORKS[_0x5f377c(0x108)]};if(_0x3ff5cd['wvkCs'](_0x559b98,_0x3ff5cd['DvLar'])){const {steps:_0x3dafc0,logs:_0x58e2c3}=this['getStepsAndLogs'](_0xe34b89[_0x5f377c(0xb4)],_0xd80c8e[_0x5f377c(0xdb)],_0x3ff5cd['FtgoR']);_0x58e2c3&&_0x3ff5cd['sPGNu'](_0x58e2c3['length'],0x0)&&await MyReporter[_0x5f377c(0xb6)](_0x58e2c3);const _0x2e9251={};_0x2e9251[_0x5f377c(0xb4)]=_0x3dafc0,_0x2b2c90[_0x5f377c(0x11a)]=_0x2e9251;if(_0xe34b89['error']){_0x2b2c90[_0x5f377c(0x107)]=_0x3ff5cd[_0x5f377c(0x11f)],_0x2b2c90[_0x5f377c(0x115)]=_0x3ff5cd[_0x5f377c(0xb9)](removeAnsiColors,_0xe34b89[_0x5f377c(0x16e)]['message']),_0x2b2c90['failure_type']=_0x3ff5cd[_0x5f377c(0xb9)](getFailureType,_0xe34b89['error'][_0x5f377c(0x17a)]);const _0x23a8b1=_0x3ff5cd[_0x5f377c(0x161)](failureData,_0xe34b89[_0x5f377c(0x16e)],_0x3ff5cd[_0x5f377c(0x179)]);if(_0x23a8b1&&_0x3ff5cd[_0x5f377c(0x165)](_0x23a8b1['length'],0x0)){const _0x26a921={};_0x26a921[_0x5f377c(0x18c)]=[_0x2b2c90[_0x5f377c(0x115)]],_0x26a921['expanded']=[],_0x23a8b1[_0x5f377c(0x12e)](_0x26a921);}_0x2b2c90[_0x5f377c(0xba)]=_0x23a8b1;}else _0x2b2c90[_0x5f377c(0x107)]=_0x3ff5cd['RXfMu'];}const _0x2c9f04={};_0x2c9f04[_0x5f377c(0x182)]=_0x559b98,_0x2c9f04['hook_run']=_0x2b2c90;const _0x896094=_0x2c9f04;await SessionHandler['uploadEventData'](_0x896094);}[a41_0x326ccd(0x119)](_0x34ffb0,_0x3dfa1d,_0x53539){const _0x37d629=a41_0x326ccd,_0x4414c8={'iLsHm':function(_0x128aae,_0xfdcdca){return _0x128aae===_0xfdcdca;},'OBZfb':_0x37d629(0xa8),'YKokY':_0x37d629(0x196),'bWKwv':function(_0x1613fe,_0x273233){return _0x1613fe===_0x273233;},'UXeRf':_0x37d629(0xc9),'Pvwsv':function(_0x55dd65,_0x3d4187){return _0x55dd65===_0x3d4187;},'lgGYX':function(_0x375715,_0x2b72ab){return _0x375715===_0x2b72ab;},'EFpBX':_0x37d629(0x12a),'ZDBlT':'test_run_uuid','Zforr':_0x37d629(0xef),'EulLg':_0x37d629(0x176),'Yapfg':'failed','eygmo':_0x37d629(0xec),'ChpqD':function(_0x39b6d6,_0x1ad7e3){return _0x39b6d6(_0x1ad7e3);},'Gbrdt':function(_0x2d2baf,_0x2d6b65){return _0x2d2baf(_0x2d6b65);},'CAKAL':function(_0x2bdf64){return _0x2bdf64();},'jknMT':function(_0x3a5248,_0x1506d3,_0x4cd2ed){return _0x3a5248(_0x1506d3,_0x4cd2ed);}},_0x24134b=[],_0x325b36=[],_0x31954c=_0x34ffb0[_0x37d629(0x10c)](_0x34ce1a=>{const _0x53ad49=_0x37d629;if(_0x4414c8[_0x53ad49(0x13c)](_0x34ce1a[_0x53ad49(0x153)],_0x4414c8[_0x53ad49(0x19c)])&&(_0x4414c8[_0x53ad49(0x13c)](_0x34ce1a[_0x53ad49(0x168)],_0x4414c8['YKokY'])||_0x4414c8[_0x53ad49(0x13e)](_0x34ce1a[_0x53ad49(0x168)],_0x4414c8[_0x53ad49(0xf0)])))return![];return!![];}),_0x4efa0c=(_0x213a4d,_0x5a5897=![])=>{const _0x4ce5c7=_0x37d629;if(_0x4414c8[_0x4ce5c7(0xb5)](_0x213a4d['steps'][_0x4ce5c7(0x169)],0x0)){const _0x3dd99a=_0x4414c8['lgGYX'](_0x53539,_0x4414c8[_0x4ce5c7(0x180)])?_0x4414c8[_0x4ce5c7(0x12c)]:_0x4414c8[_0x4ce5c7(0xc3)];_0x325b36[_0x4ce5c7(0x12e)]({'kind':_0x4414c8['EulLg'],[_0x3dd99a]:_0x3dfa1d,'message':_0x213a4d[_0x4ce5c7(0x168)],'timestamp':_0x213a4d[_0x4ce5c7(0x155)][_0x4ce5c7(0xfb)](),'level':_0x213a4d[_0x4ce5c7(0x16e)]?_0x4414c8['Yapfg']:_0x4414c8[_0x4ce5c7(0x151)],'duration':_0x213a4d[_0x4ce5c7(0x1a4)],'failure':_0x213a4d[_0x4ce5c7(0x16e)]&&_0x213a4d['error'][_0x4ce5c7(0x17a)]&&_0x4414c8[_0x4ce5c7(0xe0)](removeAnsiColors,_0x213a4d[_0x4ce5c7(0x16e)][_0x4ce5c7(0x17a)]),'failure_type':_0x4414c8[_0x4ce5c7(0xf2)](getFailureType,_0x213a4d[_0x4ce5c7(0x16e)]&&_0x213a4d['error'][_0x4ce5c7(0x17a)])});}else{!_0x5a5897&&_0x24134b[_0x4ce5c7(0x12e)]({'id':_0x4414c8[_0x4ce5c7(0x193)](uuidv4),'text':_0x213a4d[_0x4ce5c7(0x168)],'keyword':undefined,'started_at':_0x213a4d[_0x4ce5c7(0x155)]['toISOString'](),'duration':_0x213a4d[_0x4ce5c7(0x1a4)],'result':_0x213a4d[_0x4ce5c7(0x16e)]?_0x4414c8[_0x4ce5c7(0x152)]:_0x4414c8[_0x4ce5c7(0x151)],'failure':_0x213a4d[_0x4ce5c7(0x16e)]&&_0x213a4d[_0x4ce5c7(0x16e)]['message']&&_0x4414c8[_0x4ce5c7(0xe0)](removeAnsiColors,_0x213a4d[_0x4ce5c7(0x16e)]['message']),'failure_type':_0x4414c8[_0x4ce5c7(0xf2)](getFailureType,_0x213a4d[_0x4ce5c7(0x16e)]&&_0x213a4d[_0x4ce5c7(0x16e)][_0x4ce5c7(0x17a)])});for(const _0x1155e8 of _0x213a4d[_0x4ce5c7(0xb4)]){_0x4414c8[_0x4ce5c7(0xf8)](_0x4efa0c,_0x1155e8,!![]);}}};for(const _0x4d0806 of _0x31954c){_0x4414c8[_0x37d629(0xf8)](_0x4efa0c,_0x4d0806,![]);}const _0x40a035={};return _0x40a035[_0x37d629(0xb4)]=_0x24134b,_0x40a035[_0x37d629(0xb0)]=_0x325b36,_0x40a035;}async['sendTestRunEvent'](_0x255c72,_0x53b620,_0x1f6dfc){const _0x46d24d=a41_0x326ccd,_0x15977a={'yJXyk':function(_0x58b7ae,_0x161a3c){return _0x58b7ae(_0x161a3c);},'TXvYY':'TEST_ATTACHMENT','ZLzft':'PLAYWRIGHT_TRACE_LOGS','xIuIr':_0x46d24d(0x12a),'lOrfD':_0x46d24d(0x10d),'WVVMM':_0x46d24d(0x17f),'HWAzF':function(_0x1cb3fa,_0x13f81d,_0x3fc336,_0x22a8a7,_0x10c955){return _0x1cb3fa(_0x13f81d,_0x3fc336,_0x22a8a7,_0x10c955);},'eqfCV':function(_0x4caed2,_0x526424){return _0x4caed2>_0x526424;},'FWdUK':function(_0x3c5cc9,_0x3c431f){return _0x3c5cc9-_0x3c431f;},'QADAW':function(_0x1441c0,_0x19a480){return _0x1441c0===_0x19a480;},'Jcbol':'TestRunFinished','txLdB':function(_0x3f474f,_0x104a0a){return _0x3f474f===_0x104a0a;},'gjqBk':_0x46d24d(0x144),'GRjyk':_0x46d24d(0xec),'SVAQM':_0x46d24d(0x186),'QYTaW':_0x46d24d(0x185),'iWHaC':_0x46d24d(0xb7),'VFCkB':function(_0x564528,_0x443523){return _0x564528(_0x443523);},'NgeIT':function(_0x1a75a0,_0x1081ea,_0x17e9cd){return _0x1a75a0(_0x1081ea,_0x17e9cd);},'VvyLG':function(_0x3c310a,_0x4f9dd8,_0x3c4363){return _0x3c310a(_0x4f9dd8,_0x3c4363);},'zWhHL':'path','qTlfG':function(_0x59536a,_0x4e67cb){return _0x59536a(_0x4e67cb);},'lhbvg':function(_0x566812,_0x3dddbe){return _0x566812(_0x3dddbe);},'RwvDz':'.browserstack','sXrUb':'utf8','QGVmk':function(_0x46c52f,_0x487104){return _0x46c52f(_0x487104);},'UvydX':function(_0x4a25ee,_0x40be1b){return _0x4a25ee!==_0x40be1b;},'efxYX':function(_0xf5c5ce,_0x3e0435){return _0xf5c5ce===_0x3e0435;}},_0x21f899=this['getTestIdentifier'](_0x255c72),_0x452585=this[_0x46d24d(0xd2)](_0x255c72),_0x22ced0=this[_0x46d24d(0xab)][_0x21f899],_0x55a1a2=path[_0x46d24d(0x15b)](process[_0x46d24d(0x170)](),_0x255c72[_0x46d24d(0xcf)][_0x46d24d(0x19b)]);await this[_0x46d24d(0xc2)]();const _0x5a2dcf={'uuid':_0x22ced0[_0x46d24d(0xdb)],'type':_0x15977a[_0x46d24d(0x129)],'name':_0x255c72[_0x46d24d(0x168)],'body':{'lang':_0x15977a[_0x46d24d(0xd5)],'code':_0x255c72['fn'][_0x46d24d(0x15c)]()},'scope':_0x452585,'scopes':this['getHierarchy'](_0x255c72),'identifier':_0x21f899,'file_name':_0x55a1a2,'location':_0x55a1a2,'result':_0x15977a['WVVMM'],'duration_in_ms':_0x1f6dfc&&_0x1f6dfc['duration']?_0x1f6dfc['duration']:null,'vc_filepath':this[_0x46d24d(0x174)]&&_0x255c72[_0x46d24d(0xcf)][_0x46d24d(0x19b)]?path[_0x46d24d(0x15b)](this['_gitConfigPath'],_0x255c72[_0x46d24d(0xcf)]['file']):undefined,'started_at':_0x22ced0[_0x46d24d(0xaa)],'finished_at':_0x22ced0[_0x46d24d(0x197)],'framework':FRAMEWORKS[_0x46d24d(0x108)],'customRerunParam':{'rerun_name':this[_0x46d24d(0x15e)](_0x255c72)},'tags':_0x15977a['yJXyk'](getTestTags,_0x255c72)};_0x15977a['HWAzF'](appendTesthubParams,_0x5a2dcf,_0x53b620,_0x255c72,FRAMEWORKS[_0x46d24d(0x108)]);_0x1f6dfc&&_0x15977a['eqfCV'](_0x1f6dfc[_0x46d24d(0x112)],0x0)&&(_0x5a2dcf[_0x46d24d(0x172)]=TestDetails[_0x46d24d(0x125)](this[_0x46d24d(0x190)](_0x255c72,_0x15977a[_0x46d24d(0xd7)](_0x1f6dfc['retry'],0x1))));if(_0x15977a[_0x46d24d(0x15d)](_0x53b620,_0x15977a[_0x46d24d(0x1a3)])){_0x5a2dcf[_0x46d24d(0x107)]=_0x1f6dfc[_0x46d24d(0xb1)];if(_0x15977a[_0x46d24d(0x111)](_0x1f6dfc[_0x46d24d(0xb1)],_0x255c72[_0x46d24d(0x136)]))_0x5a2dcf[_0x46d24d(0x107)]=_0x15977a[_0x46d24d(0x111)](_0x1f6dfc['status'],_0x15977a[_0x46d24d(0xd6)])?_0x15977a[_0x46d24d(0xd6)]:_0x15977a[_0x46d24d(0xca)];else{(_0x15977a[_0x46d24d(0x111)](_0x5a2dcf['result'],_0x15977a[_0x46d24d(0xca)])||_0x15977a['txLdB'](_0x5a2dcf[_0x46d24d(0x107)],_0x15977a[_0x46d24d(0x187)])||_0x15977a[_0x46d24d(0x15d)](_0x5a2dcf[_0x46d24d(0x107)],_0x15977a[_0x46d24d(0x14a)]))&&(_0x5a2dcf[_0x46d24d(0x107)]=_0x15977a[_0x46d24d(0x187)]);if(_0x15977a[_0x46d24d(0x15d)](_0x1f6dfc[_0x46d24d(0xb1)],_0x15977a[_0x46d24d(0xca)])&&_0x15977a['txLdB'](_0x255c72['expectedStatus'],_0x15977a[_0x46d24d(0x187)])){const _0x56191d={};_0x56191d['message']=_0x15977a[_0x46d24d(0x106)],_0x56191d['stack']=_0x15977a[_0x46d24d(0x106)],_0x1f6dfc['error']=_0x56191d,_0x1f6dfc[_0x46d24d(0x17b)]=[_0x1f6dfc[_0x46d24d(0x16e)]];}}const _0x447bc4=this[_0x46d24d(0x190)](_0x255c72,_0x1f6dfc[_0x46d24d(0x112)]);_0x5a2dcf['hooks']=this[_0x46d24d(0x167)][_0x447bc4];const {steps:_0x459dc2,logs:_0x4e1759}=this[_0x46d24d(0x119)](_0x1f6dfc['steps'],_0x22ced0[_0x46d24d(0xdb)],_0x15977a[_0x46d24d(0x129)]);await MyReporter[_0x46d24d(0xb6)](_0x4e1759);const _0x35cee2={};_0x35cee2[_0x46d24d(0xb4)]=_0x459dc2,_0x5a2dcf['meta']=_0x35cee2;if(_0x1f6dfc['error']){_0x5a2dcf[_0x46d24d(0x115)]=_0x15977a[_0x46d24d(0x12f)](removeAnsiColors,_0x1f6dfc[_0x46d24d(0x16e)][_0x46d24d(0x17a)]),_0x5a2dcf['failure_type']=_0x15977a[_0x46d24d(0x12f)](getFailureType,_0x1f6dfc['error'][_0x46d24d(0x17a)]);const _0x2e7c29={};_0x2e7c29[_0x46d24d(0x143)]=_0x22ced0['uuid'];const {failureData:_0x5fbc2b,logs:_0x815fcd}=_0x15977a[_0x46d24d(0x19f)](getFailureData,_0x1f6dfc[_0x46d24d(0x17b)],_0x2e7c29);if(_0x5fbc2b&&_0x15977a[_0x46d24d(0x15d)](_0x5fbc2b['length'],0x0)){const _0x55eab6={};_0x55eab6[_0x46d24d(0x18c)]=[_0x5a2dcf['failure_reason']],_0x55eab6[_0x46d24d(0xfd)]=[],_0x5fbc2b['push'](_0x55eab6);}_0x5a2dcf['failure']=_0x5fbc2b,_0x815fcd&&_0x15977a[_0x46d24d(0xbb)](_0x815fcd['length'],0x0)&&await MyReporter[_0x46d24d(0xb6)](_0x815fcd);}}let _0x3f0dc6=_0x15977a[_0x46d24d(0xac)](findNestedKey,_0x1f6dfc,_0x15977a['zWhHL']);if(_0x3f0dc6&&_0x15977a['qTlfG'](validateFilePath,_0x3f0dc6))_0x15977a[_0x46d24d(0x1a5)](debug,_0x46d24d(0x13d)+_0x22ced0[_0x46d24d(0xdb)]+_0x46d24d(0xea)+_0x3f0dc6);else{const _0xb5a54=path[_0x46d24d(0x19a)](helper[_0x46d24d(0x100)](),_0x15977a[_0x46d24d(0xf9)]);!fs['existsSync'](_0xb5a54)&&fs['mkdirSync'](_0xb5a54),fs[_0x46d24d(0xeb)](path['join'](_0xb5a54,'trace_'+_0x22ced0[_0x46d24d(0xdb)]+_0x46d24d(0xe2)))&&(_0x3f0dc6=fs[_0x46d24d(0xe3)](path['join'](_0xb5a54,_0x46d24d(0xc8)+_0x22ced0['uuid']+'.txt'),_0x15977a['sXrUb']),_0x15977a[_0x46d24d(0xbf)](debug,_0x46d24d(0x13d)+_0x22ced0[_0x46d24d(0xdb)]+_0x46d24d(0xea)+_0x3f0dc6));}const _0x12c9c3={};_0x12c9c3[_0x46d24d(0x182)]=_0x53b620,_0x12c9c3[_0x46d24d(0x14c)]=_0x5a2dcf;const _0x316d44=_0x12c9c3;_0x3f0dc6&&_0x15977a[_0x46d24d(0xcd)](_0x3f0dc6,'')&&_0x15977a[_0x46d24d(0x10a)](_0x53b620,_0x15977a[_0x46d24d(0x1a3)])&&(!_0x316d44[_0x46d24d(0xb0)]&&(_0x316d44['logs']=[]),_0x3f0dc6[_0x46d24d(0xc7)]('\x0a')[_0x46d24d(0x184)](_0x2ab5ec=>{const _0x4908d3=_0x46d24d;_0x2ab5ec&&_0x15977a[_0x4908d3(0x166)](validateFilePath,_0x2ab5ec)&&_0x316d44['logs'][_0x4908d3(0x12e)]({'kind':_0x15977a[_0x4908d3(0xdd)],'timestamp':new Date()[_0x4908d3(0xfb)](),'test_run_uuid':_0x22ced0[_0x4908d3(0xdb)],'file_name':path[_0x4908d3(0x138)](_0x2ab5ec),'file_size':fs[_0x4908d3(0x175)](_0x2ab5ec)[_0x4908d3(0x160)],'attachment_type':_0x15977a[_0x4908d3(0xde)]});})),await SessionHandler[_0x46d24d(0xee)](_0x316d44);}[a41_0x326ccd(0x15e)](_0x3c46b2){const _0x1e714a=a41_0x326ccd,_0x3fd38b={};_0x3fd38b['MvDML']=function(_0x5490f3,_0x7c1ce6){return _0x5490f3===_0x7c1ce6;},_0x3fd38b[_0x1e714a(0x14e)]=function(_0x543077,_0x318118){return _0x543077>_0x318118;},_0x3fd38b['bLers']=function(_0x579f70,_0x8aa8d8){return _0x579f70+_0x8aa8d8;},_0x3fd38b[_0x1e714a(0x109)]=function(_0x14faef,_0x4e312c){return _0x14faef+_0x4e312c;},_0x3fd38b[_0x1e714a(0xc4)]=function(_0x3ae03a,_0x598716){return _0x3ae03a>_0x598716;};const _0xfc586c=_0x3fd38b,_0x5e54c8=_0x3c46b2[_0x1e714a(0x10f)]()[_0x1e714a(0xb8)](_0x130bca=>{const _0x4ddf97=_0x1e714a;if(_0x3c46b2[_0x4ddf97(0xb3)]&&_0xfc586c[_0x4ddf97(0x164)](_0x130bca,_0x3c46b2[_0x4ddf97(0xb3)][_0x4ddf97(0x168)])&&_0x3c46b2[_0x4ddf97(0xb3)][_0x4ddf97(0x11b)]&&_0xfc586c[_0x4ddf97(0x14e)](_0x3c46b2[_0x4ddf97(0xb3)][_0x4ddf97(0x11b)]['length'],0x0))return _0xfc586c[_0x4ddf97(0xa6)](_0xfc586c[_0x4ddf97(0x109)](_0x130bca,'\x20'),_0x3c46b2[_0x4ddf97(0xb3)][_0x4ddf97(0x11b)][_0x4ddf97(0x19a)]('\x20'));if(_0xfc586c[_0x4ddf97(0x164)](_0x130bca,_0x3c46b2[_0x4ddf97(0x168)])&&_0x3c46b2[_0x4ddf97(0x11b)]&&_0xfc586c[_0x4ddf97(0xc4)](_0x3c46b2['_tags'][_0x4ddf97(0x169)],0x0))return _0xfc586c[_0x4ddf97(0x109)](_0xfc586c[_0x4ddf97(0x109)](_0x130bca,'\x20'),_0x3c46b2[_0x4ddf97(0x11b)][_0x4ddf97(0x19a)]('\x20'));return _0x130bca;})[_0x1e714a(0x19a)]('\x20');return _0x5e54c8;}static async[a41_0x326ccd(0xfc)](_0x3b5969,_0x408e67){const _0x4db391=a41_0x326ccd,_0x4e3f8a={'dszxw':function(_0x24a478,_0x4f2898){return _0x24a478(_0x4f2898);},'UvNdR':'CBTSessionCreated'},_0x4ca933={'uuid':TestDetails[_0x4db391(0x125)](_0x3b5969),'integrations':_0x408e67},_0xdf204b={};_0xdf204b[_0x4db391(0x124)]=null,_0x4e3f8a['dszxw'](debug,_0x4db391(0x121)+_0x3b5969+',\x20'+util[_0x4db391(0x194)](_0x408e67,_0xdf204b));const _0x49102d={};_0x49102d[_0x4db391(0x182)]=_0x4e3f8a[_0x4db391(0x1a1)],_0x49102d[_0x4db391(0x14c)]=_0x4ca933,await SessionHandler[_0x4db391(0xee)](_0x49102d);}async[a41_0x326ccd(0xc2)](){const _0x272f1f=a41_0x326ccd,_0x5e0485={'NdJgY':function(_0xc66150){return _0xc66150();}};if(this[_0x272f1f(0xf1)])return;const _0x5d21fe=await _0x5e0485[_0x272f1f(0x157)](getGitMetaData);_0x5d21fe&&(this[_0x272f1f(0x174)]=_0x5d21fe[_0x272f1f(0x117)]),this[_0x272f1f(0xf1)]=!![];}[a41_0x326ccd(0xd0)](_0xdc6151){const _0x194526=a41_0x326ccd,_0xd234a2={};_0xd234a2[_0x194526(0x139)]=function(_0x23b3dd,_0x476c3b){return _0x23b3dd!==_0x476c3b;};const _0x57726f=_0xd234a2,_0x5e45f5=[];if(_0xdc6151&&_0xdc6151[_0x194526(0xb3)]){let _0x316fa4=_0xdc6151['parent'];while(_0x316fa4&&_0x57726f[_0x194526(0x139)](_0x316fa4[_0x194526(0x168)],'')){_0x5e45f5[_0x194526(0x12e)](_0x316fa4[_0x194526(0x168)]),_0x316fa4=_0x316fa4[_0x194526(0xb3)];}}return _0x5e45f5[_0x194526(0x145)]()[_0x194526(0xda)](0x0,0x2),_0x5e45f5;}[a41_0x326ccd(0xd8)](_0x4896e5){const _0x32160c=a41_0x326ccd,_0x2394ce={};_0x2394ce['PNLxM']=function(_0x3b0b51,_0x3784e2){return _0x3b0b51!==_0x3784e2;},_0x2394ce[_0x32160c(0x10b)]=_0x32160c(0xa8),_0x2394ce[_0x32160c(0xe7)]=function(_0x2226aa,_0x6c5ed){return _0x2226aa===_0x6c5ed;},_0x2394ce[_0x32160c(0x13b)]='beforeEach\x20hook',_0x2394ce[_0x32160c(0x1a7)]='beforeAll\x20hook',_0x2394ce['FrSpf']=_0x32160c(0x148),_0x2394ce[_0x32160c(0x13a)]=_0x32160c(0x189);const _0x2b4575=_0x2394ce;if(_0x2b4575[_0x32160c(0x15a)](_0x4896e5[_0x32160c(0x153)],_0x2b4575['Lfanw']))return![];if(_0x2b4575['RnwLt']([_0x2b4575[_0x32160c(0x13b)],_0x2b4575['HfvaN'],_0x2b4575['FrSpf'],_0x2b4575[_0x32160c(0x13a)]]['indexOf'](_0x4896e5[_0x32160c(0x168)]),-0x1))return![];return!![];}['getStepIdentifier'](_0x20a4b2,_0x2cf081){const _0x20da68=a41_0x326ccd,_0x5491cc=_0x2cf081['_bs_hookIdentifier'];if(_0x5491cc)return _0x5491cc;return _0x2cf081['title']+'\x20for\x20'+this[_0x20da68(0x11c)](_0x20a4b2);}[a41_0x326ccd(0x156)](_0x3a55c0,_0x4da17f){const _0x25b22c=a41_0x326ccd,_0x4f5410={'GDLBj':function(_0x1edbbc){return _0x1edbbc();}};let _0xce9055=_0x4da17f[_0x25b22c(0x168)]+_0x25b22c(0x199)+this[_0x25b22c(0x11c)](_0x3a55c0);return this[_0x25b22c(0xab)][_0xce9055]&&(_0xce9055=_0xce9055+_0x25b22c(0x149)+_0x4f5410[_0x25b22c(0x142)](uuidv4)),_0x4da17f[_0x25b22c(0x19e)]=_0xce9055,_0xce9055;}[a41_0x326ccd(0x11c)]=_0x897493=>{const _0x58c728=a41_0x326ccd,_0x459f54={};_0x459f54[_0x58c728(0x17d)]=function(_0x9fa2bc,_0x33f379){return _0x9fa2bc+_0x33f379;},_0x459f54[_0x58c728(0x130)]=function(_0xeed7e,_0x53f76c){return _0xeed7e+_0x53f76c;};const _0x227c67=_0x459f54;return _0x227c67['TBKin'](_0x227c67[_0x58c728(0x130)](_0x897493['_projectId'],'-'),_0x897493['id']);};[a41_0x326ccd(0x190)]=(_0x16017b,_0x43dc7a)=>{const _0x473242=a41_0x326ccd,_0x4c5166={};_0x4c5166[_0x473242(0x140)]=function(_0x2ffc3d,_0x166aff){return _0x2ffc3d+_0x166aff;};const _0x4bf09e=_0x4c5166;return _0x4bf09e['aveoW'](_0x4bf09e['aveoW'](this[_0x473242(0x11c)](_0x16017b),'-'),_0x43dc7a);};[a41_0x326ccd(0xd4)]=_0x10b92d=>{const _0x47e4f6=a41_0x326ccd,_0x11b2ae={};_0x11b2ae[_0x47e4f6(0xe9)]=_0x47e4f6(0xbe),_0x11b2ae[_0x47e4f6(0xff)]=_0x47e4f6(0x162),_0x11b2ae[_0x47e4f6(0xa9)]=_0x47e4f6(0xc6),_0x11b2ae[_0x47e4f6(0xed)]=_0x47e4f6(0xdf),_0x11b2ae['JSCar']=_0x47e4f6(0x189),_0x11b2ae[_0x47e4f6(0x118)]='AFTER_EACH',_0x11b2ae['RSaBA']='afterAll\x20hook',_0x11b2ae[_0x47e4f6(0xf4)]=_0x47e4f6(0x104),_0x11b2ae['frBev']=_0x47e4f6(0x105);const _0x49f80f=_0x11b2ae;if(_0x10b92d['startsWith'](_0x49f80f['MsGhQ']))return _0x49f80f[_0x47e4f6(0xff)];else{if(_0x10b92d[_0x47e4f6(0x120)](_0x49f80f[_0x47e4f6(0xa9)]))return _0x49f80f[_0x47e4f6(0xed)];else{if(_0x10b92d[_0x47e4f6(0x120)](_0x49f80f[_0x47e4f6(0x1a6)]))return _0x49f80f[_0x47e4f6(0x118)];else{if(_0x10b92d[_0x47e4f6(0x120)](_0x49f80f[_0x47e4f6(0x17e)]))return _0x49f80f[_0x47e4f6(0xf4)];}}}return _0x49f80f[_0x47e4f6(0xad)];};[a41_0x326ccd(0xd2)]=_0x498534=>{const _0x3ce224=a41_0x326ccd,_0x35d363={};_0x35d363['KRboF']=function(_0x1267be,_0x463fd1){return _0x1267be===_0x463fd1;},_0x35d363[_0x3ce224(0xd1)]=_0x3ce224(0x150);const _0x13280f=_0x35d363;let _0x18b4ee=_0x498534['parent'];return _0x13280f[_0x3ce224(0x195)](typeof _0x498534['parent'],_0x13280f[_0x3ce224(0xd1)])&&(_0x18b4ee=_0x18b4ee['title']),_0x18b4ee+_0x3ce224(0x149)+_0x498534[_0x3ce224(0x168)];};['printsToStdio'](){return![];}}function a41_0xac7f(_0x1fc569,_0x16f1ae){const _0x303a1c=a41_0x303a();return a41_0xac7f=function(_0xac7f84,_0x40201a){_0xac7f84=_0xac7f84-0xa6;let _0x28b7a6=_0x303a1c[_0xac7f84];return _0x28b7a6;},a41_0xac7f(_0x1fc569,_0x16f1ae);}module[a41_0x326ccd(0xe6)]=o11yClassErrorHandler(MyReporter,[a41_0x326ccd(0x1a8),a41_0x326ccd(0x147),a41_0x326ccd(0x123),a41_0x326ccd(0xc0),a41_0x326ccd(0x137),a41_0x326ccd(0x177),a41_0x326ccd(0xfc)],a41_0x326ccd(0xd9));
|
|
1
|
+
function a41_0xb708(){const _0x5db665=['NFWmo','542257ILkZuA','expanded','onStepEnd','kVMjr','fUuCy','BROWSERSTACK_LOG_LEVEL','title','Test\x20Started\x20with\x20unique\x20id\x20','afterEach\x20hook','DTcOT','Test\x20Finished\x20with\x20unique\x20id\x20','cUCoz','getStepsAndLogs','XMozw','addTestUIDAndReportLog','map','getTestUUID','getInstance','RcatY','failure','Hook\x20Started\x20with\x20unique\x20id\x20','mtime','category','\x20for\x20','KMGeE','javascript','../../../helpers/testhub/utils','GQOXc','parent','apKpC','iMUpL','getTime','lDjGg','75053sxVSXm','26856ZoYIyN','utf8','lPyGb','6|1|2|4|0|5|3','uJqkl','file','AFTER_ALL','hook_run','exports','vqHlI','TEST_SCREENSHOT','rzEaL','_bs_hookIdentifier','options','WnTbM','push','titlePath','sendTestRunEvent','cwd','gmnXy','IZVCb','hooks','finishedAt','../../../helpers/helper','KgkPX','noZAt','onTestEnd','crJcx','onEnd','onBegin','logLevel','aKWnS','sulrt','Nhimt','AUEfq','TnjMc','existsSync','WTAcv','DhUMV','message','hook','HKGYO','zjlyX','kqXHU','MejxI','HookRunFinished','logs','../../../helpers/test-observability/constants','startMonitoring','njiQn','getCustomRerunParam','Hook\x20Finished\x20with\x20unique\x20id\x20','reportLogs','gqvuW','bAkdS','duration','meta','uploadEventData','Starting\x20sending\x20trace\x20zip\x20for\x20test:\x20','startsWith','filter','_tags','FMomR','Error\x20in\x20calculating\x20performance:\x20','readFileSync','bJiUp','TestRunStarted','backtrace','sendHookRunEvent','expectedStatus','\x20at\x20','PLAYWRIGHT_TRACE_LOGS','skipped','28WwOiAr','failed','mkdirSync','12ukdTuf','errors','_tests','root','Error\x20in\x20sending\x20test\x20run\x20event:\x20%s','uRoLW','getHookType','After\x20Hooks','object','BROWSERSTACK_O11Y_PERF_MEASUREMENT','HuxST','getTestIdentifier','configureGit','homedir','2205TAceop','LogCreated','NdPWd','result','BEFORE_ALL','FyBXo','depth','err','20656532gZEhPH','SkcBX','LGCoJ','Trace\x20file\x20found\x20for\x20test:\x20','UWqYU','YZqTA','CvRCH','761832OVVUTB','sendSessionDetails','failure_type','../../../helpers/test-observability/error-handler','lcpLx','majMJ','beforeEach\x20hook','JcpUi','TJvLV','WBwpV','START_TIME','event_type','stack','test','Expected\x20to\x20fail,\x20but\x20passed.','error','toString','path','getScope','BAjYE','OhEci','TEST_ATTACHMENT','FGdIZ','length','pending','PIpzh','gIsWD','xkAsP','forEach','_testHooksMap','WXHaz','relative','unknown','xVkOP','olmlo','WfFjm','setup','screenshot','JGJUb','PXNgk','needToReportStep','JHQjE','test_run','AQPbl','status','ikuXJ','uuid','onTestBegin','beforeAll\x20hook','HookRunStarted','kLMuW','SlWGl','attachments','nPSeH','40420pYrZVB','trace_','passed','./test-details','168Mueqbk','performance-report-reporter.json','wXmIg','Error\x20in\x20sending\x20trace\x20zip:\x20%s','lyKCm','VWwaF','statSync','test_run_uuid','bmtDp','../../../helpers/test-observability/sessionHandler','RXzlL','PLAYWRIGHT','toISOString','\x20is\x20triggered','\x20is\x20triggered\x20for\x20test\x20','yYnwy','endSession','.browserstack','70608KIYGmy','48RpyKen','YFFtB','failure_reason','../../../helpers/test-observability/utils','retry_of','AnkGN','location','util','OvZJY','join','.txt','getTestRunIdentifier','Doqnk','RrMrr','kphbW','split','ADXRs','startedAt','pijLK','TestRunFinished','PpcKm','ykcZq','setStepIdentifier','env','LPUXO','afterAll\x20hook','fzedU','name','retry','getStepIdentifier','IUijc','FwaxC','890BJYcCl','getHierarchy','VWCqB','MCMfZ','CBTSessionCreated','Before\x20Hooks','IuDVr','_gitConfigPath','_projectId','tWahg','rdhOY','tWvKn','vvZcJ','reverse','gJhwE','AqEVk','startTime','SjVzQ','_gitConfigured','CgyIP','steps'];a41_0xb708=function(){return _0x5db665;};return a41_0xb708();}const a41_0x32ed6e=a41_0x4401;(function(_0x371698,_0x393a6a){const _0x3b57a4=a41_0x4401,_0x3ad32b=_0x371698();while(!![]){try{const _0x52a6c1=parseInt(_0x3b57a4(0x112))/0x1+-parseInt(_0x3b57a4(0xdc))/0x2*(parseInt(_0x3b57a4(0xdb))/0x3)+-parseInt(_0x3b57a4(0xc9))/0x4*(parseInt(_0x3b57a4(0xc5))/0x5)+parseInt(_0x3b57a4(0x8f))/0x6*(-parseInt(_0x3b57a4(0x17d))/0x7)+-parseInt(_0x3b57a4(0x134))/0x8*(parseInt(_0x3b57a4(0x80))/0x9)+-parseInt(_0x3b57a4(0xfc))/0xa*(-parseInt(_0x3b57a4(0x133))/0xb)+parseInt(_0x3b57a4(0x180))/0xc*(parseInt(_0x3b57a4(0x88))/0xd);if(_0x52a6c1===_0x393a6a)break;else _0x3ad32b['push'](_0x3ad32b['shift']());}catch(_0x241982){_0x3ad32b['push'](_0x3ad32b['shift']());}}}(a41_0xb708,0x7afab));function a41_0x4401(_0x115a03,_0x3d567e){const _0xb7081=a41_0xb708();return a41_0x4401=function(_0x4401ed,_0x3504ba){_0x4401ed=_0x4401ed-0x74;let _0x10e7ae=_0xb7081[_0x4401ed];return _0x10e7ae;},a41_0x4401(_0x115a03,_0x3d567e);}const RequestQueueHandler=require('../../../helpers/test-observability/requestQueueHandler'),{calculatePerformance,getTestTags,getFailureData,sendTraceZip,findNestedKey,validateFilePath}=require('./pwUtils'),{v4:uuidv4}=require(a41_0x32ed6e(0xbd)),path=require('path'),{debug,removeAnsiColors,printBuildLink,getFailureType,failureData,trace}=require(a41_0x32ed6e(0xdf)),{getGitMetaData,setLogLevel}=require('../../../helpers/helper'),TestDetails=require(a41_0x32ed6e(0xc8)),fs=require('fs'),util=require(a41_0x32ed6e(0xe3)),{o11yClassErrorHandler}=require(a41_0x32ed6e(0x92)),PerformanceTester=require('../../../helpers/performance/performance-tester'),{FRAMEWORKS}=require(a41_0x32ed6e(0x163)),SessionHandler=require(a41_0x32ed6e(0xd2)),{appendTesthubParams}=require(a41_0x32ed6e(0x12c)),helper=require(a41_0x32ed6e(0x14b));class MyReporter{constructor(_0x5975ba){const _0x5b90a0=a41_0x32ed6e,_0x28f78a={'fJDFG':_0x5b90a0(0x137),'cJWgx':_0x5b90a0(0xca),'ykcZq':function(_0x2e8024,_0x3ac93e,_0x338f51,_0x1c26b7){return _0x2e8024(_0x3ac93e,_0x338f51,_0x1c26b7);}},_0x3edf6e=_0x28f78a['fJDFG'][_0x5b90a0(0xeb)]('|');let _0x55d8ec=0x0;while(!![]){switch(_0x3edf6e[_0x55d8ec++]){case'0':this[_0x5b90a0(0x141)]=_0x5975ba;continue;case'1':process[_0x5b90a0(0xf3)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']&&(PerformanceTester[_0x5b90a0(0x164)](_0x28f78a['cJWgx']),process['env'][_0x5b90a0(0x99)]=new Date()['toISOString']());continue;case'2':this[_0x5b90a0(0x74)]={};continue;case'3':this['_gitConfigPath']=null;continue;case'4':this[_0x5b90a0(0xac)]={};continue;case'5':this[_0x5b90a0(0x10e)]=![];continue;case'6':const _0x514ef6={};_0x514ef6[_0x5b90a0(0x152)]=process['env'][_0x5b90a0(0x117)],_0x28f78a[_0x5b90a0(0xf1)](setLogLevel,_0x514ef6,new Map(),new Map());continue;}break;}}async[a41_0x32ed6e(0x151)](){const _0x10130d=a41_0x32ed6e;TestDetails[_0x10130d(0xb3)](),await this[_0x10130d(0x7e)]();}async[a41_0x32ed6e(0xbe)](_0x5eca3f,_0x1278ea){const _0xd550ed=a41_0x32ed6e,_0x489859={'AXxJC':function(_0x4e3f34,_0x23ad20){return _0x4e3f34(_0x23ad20);},'HSJqq':_0xd550ed(0x176)},_0x159041=this[_0xd550ed(0x7d)](_0x5eca3f),_0x5e6fe2=TestDetails['getTestUUID'](this[_0xd550ed(0xe7)](_0x5eca3f,_0x1278ea[_0xd550ed(0xf8)]));process[_0xd550ed(0xf3)]['BROWSERSTACK_TEST_RUN_ID']=_0x5e6fe2;const _0x56c877={};_0x56c877[_0xd550ed(0xbd)]=_0x5e6fe2,_0x56c877[_0xd550ed(0xed)]=_0x1278ea[_0xd550ed(0x10c)],this[_0xd550ed(0x74)][_0x159041]=_0x56c877,_0x489859['AXxJC'](trace,_0xd550ed(0x119)+_0x159041),await this[_0xd550ed(0x145)](_0x5eca3f,_0x489859['HSJqq'],_0x1278ea);}async['onStepBegin'](_0x38b210,_0x1b39e9,_0x3235a2){const _0x421984=a41_0x32ed6e,_0x42cb1f={'SkcBX':function(_0x5aec6c,_0x3327ed){return _0x5aec6c(_0x3327ed);},'AUEfq':_0x421984(0xc0)};if(!this[_0x421984(0xb7)](_0x3235a2,_0x38b210))return;const _0x264f43=this[_0x421984(0xf2)](_0x38b210,_0x3235a2);this['_tests'][_0x264f43]={'uuid':TestDetails[_0x421984(0x122)](_0x264f43),'startedAt':_0x3235a2[_0x421984(0x10c)][_0x421984(0xd5)]()};const _0x5eea6f=this[_0x421984(0xe7)](_0x38b210,_0x1b39e9[_0x421984(0xf8)]);!this['_testHooksMap'][_0x5eea6f]&&(this[_0x421984(0xac)][_0x5eea6f]=[]),this['_testHooksMap'][_0x5eea6f]['push'](this['_tests'][_0x264f43][_0x421984(0xbd)]),_0x42cb1f[_0x421984(0x89)](trace,_0x421984(0x126)+_0x264f43+_0x421984(0xd7)+_0x5eea6f),await this[_0x421984(0x178)](_0x38b210,_0x3235a2,_0x42cb1f[_0x421984(0x156)],_0x1b39e9);}async[a41_0x32ed6e(0x114)](_0x54515d,_0x2a1ff4,_0xb60e48){const _0x1c114b=a41_0x32ed6e,_0x59d174={'JctkH':function(_0x21f44b,_0xdc02a8){return _0x21f44b+_0xdc02a8;},'uRoLW':function(_0x528e7d,_0x4e376b){return _0x528e7d(_0x4e376b);},'RrMrr':_0x1c114b(0x161)};if(!this[_0x1c114b(0xb7)](_0xb60e48,_0x54515d))return;const _0x40990d=this[_0x1c114b(0xf9)](_0x54515d,_0xb60e48);this[_0x1c114b(0x74)][_0x40990d]={...this[_0x1c114b(0x74)][_0x40990d]||{},'finishedAt':new Date(_0x59d174['JctkH'](_0xb60e48[_0x1c114b(0x10c)][_0x1c114b(0x131)](),_0xb60e48[_0x1c114b(0x16b)]))},_0x59d174[_0x1c114b(0x77)](trace,_0x1c114b(0x167)+_0x40990d+_0x1c114b(0xd6)),await this['sendHookRunEvent'](_0x54515d,_0xb60e48,_0x59d174[_0x1c114b(0xe9)],_0x2a1ff4);}async[a41_0x32ed6e(0x14e)](_0x2c3ade,_0x46ecf2){const _0x29713e=a41_0x32ed6e,_0x7478e6={'FGdIZ':function(_0x3f992a,_0x488fd6){return _0x3f992a===_0x488fd6;},'lPyGb':_0x29713e(0xb4),'lcpLx':_0x29713e(0x13e),'NFWmo':'base64','RXzlL':function(_0x4bc388,_0xfd6139){return _0x4bc388(_0xfd6139);},'crJcx':_0x29713e(0xef),'cUCoz':function(_0x1a063c,_0x315754){return _0x1a063c(_0x315754);},'IuDVr':_0x29713e(0x76),'LGCoJ':function(_0x2f5126,_0x58fe8e,_0x7b0d39){return _0x2f5126(_0x58fe8e,_0x7b0d39);},'PXNgk':function(_0x173c01,_0x469e7d){return _0x173c01(_0x469e7d);},'etXHu':_0x29713e(0xcc),'FsgAX':function(_0x3d40e5,_0x38e377){return _0x3d40e5>_0x38e377;}},_0xd0d7fa=this[_0x29713e(0x7d)](_0x2c3ade),_0x34a97f=TestDetails[_0x29713e(0x122)](this[_0x29713e(0xe7)](_0x2c3ade,_0x46ecf2[_0x29713e(0xf8)]));this[_0x29713e(0x74)][_0xd0d7fa]={...this[_0x29713e(0x74)][_0xd0d7fa]||{},'finishedAt':new Date()[_0x29713e(0xd5)]()},_0x7478e6[_0x29713e(0xd3)](debug,_0x29713e(0x11c)+_0xd0d7fa);try{await this[_0x29713e(0x145)](_0x2c3ade,_0x7478e6[_0x29713e(0x14f)],_0x46ecf2);}catch(_0x25f979){_0x7478e6['cUCoz'](debug,util['format'](_0x7478e6[_0x29713e(0x102)],_0x25f979[_0x29713e(0x9f)]()));}try{_0x7478e6[_0x29713e(0x11d)](debug,_0x29713e(0x16e)+_0x34a97f),await _0x7478e6[_0x29713e(0x8a)](sendTraceZip,_0x46ecf2,_0x34a97f);}catch(_0x153ea0){_0x7478e6[_0x29713e(0xb6)](debug,util['format'](_0x7478e6['etXHu'],_0x153ea0['toString']()));}const _0x43c621=[];_0x46ecf2[_0x29713e(0xc3)]&&_0x46ecf2['attachments']['map'](_0x5eb8cf=>{const _0x982700=_0x29713e;if(_0x7478e6[_0x982700(0xa5)](_0x5eb8cf[_0x982700(0xf7)],_0x7478e6[_0x982700(0x136)])){if(!_0x5eb8cf[_0x982700(0xa0)]||!fs[_0x982700(0x158)](_0x5eb8cf[_0x982700(0xa0)]))return;_0x43c621[_0x982700(0x143)]({'test_run_uuid':_0x34a97f,'timestamp':fs[_0x982700(0xcf)](_0x5eb8cf['path'])[_0x982700(0x127)],'kind':_0x7478e6[_0x982700(0x93)],'message':fs['readFileSync'](_0x5eb8cf[_0x982700(0xa0)],{'encoding':_0x7478e6[_0x982700(0x111)]})});}}),_0x7478e6['FsgAX'](_0x43c621[_0x29713e(0xa6)],0x0)&&await MyReporter[_0x29713e(0x168)](_0x43c621);}async[a41_0x32ed6e(0xd9)](){const _0x1027c3=a41_0x32ed6e;await RequestQueueHandler[_0x1027c3(0x123)]()['shutdown']();}async[a41_0x32ed6e(0x150)](_0x4f6d93){const _0x50e24e=a41_0x32ed6e,_0x371324={'ykkkX':function(_0x19361e){return _0x19361e();},'noZAt':function(_0x3cb0e3,_0x4d8bbc){return _0x3cb0e3(_0x4d8bbc);}};await this[_0x50e24e(0xd9)]();try{process[_0x50e24e(0xf3)][_0x50e24e(0x7b)]&&await _0x371324['ykkkX'](calculatePerformance);}catch(_0x5de669){_0x371324[_0x50e24e(0x14d)](debug,_0x50e24e(0x173)+_0x5de669[_0x50e24e(0x9f)]());}}static async[a41_0x32ed6e(0x120)](_0x1a1ba4,_0x2c87e8){const _0x247327=a41_0x32ed6e;_0x2c87e8[_0x247327(0xd0)]=TestDetails[_0x247327(0x122)](_0x1a1ba4),await this[_0x247327(0x168)]([_0x2c87e8]);}static async[a41_0x32ed6e(0x168)](_0x2b7920){const _0xcc94c1=a41_0x32ed6e,_0xbe95c7={};_0xbe95c7[_0xcc94c1(0xf4)]=_0xcc94c1(0x81);const _0x5a7a02=_0xbe95c7,_0x321c6b={};_0x321c6b['event_type']=_0x5a7a02[_0xcc94c1(0xf4)],_0x321c6b[_0xcc94c1(0x162)]=_0x2b7920,await SessionHandler[_0xcc94c1(0x16d)](_0x321c6b);}async[a41_0x32ed6e(0x178)](_0x2b45da,_0x4b2dc6,_0x137eb7,_0x16e20d){const _0x649026=a41_0x32ed6e,_0x75241d={'SlWGl':'hook','HKGYO':_0x649026(0x12b),'DhUMV':_0x649026(0xa7),'RcatY':function(_0x537d6a,_0x5e474a){return _0x537d6a>=_0x5e474a;},'HuxST':function(_0x3ae554,_0x2541f9){return _0x3ae554===_0x2541f9;},'MCMfZ':_0x649026(0x161),'zkWJk':function(_0x49ebef,_0x375590){return _0x49ebef>_0x375590;},'gqvuW':_0x649026(0x17e),'FwaxC':function(_0x5c4e3b,_0x481c41){return _0x5c4e3b(_0x481c41);},'FMomR':function(_0x2e4681,_0x4ca145){return _0x2e4681(_0x4ca145);},'KMGeE':function(_0x59ed4f,_0x163303,_0x2f07b9){return _0x59ed4f(_0x163303,_0x2f07b9);},'Pmaff':_0x649026(0x87),'uJqkl':_0x649026(0xc7)},_0x1ecab0=this['getStepIdentifier'](_0x2b45da,_0x4b2dc6),_0x1f27d5=this[_0x649026(0x74)][_0x1ecab0],_0x5888ea={'uuid':_0x1f27d5[_0x649026(0xbd)],'type':_0x75241d[_0x649026(0xc2)],'hook_type':this[_0x649026(0x78)](_0x4b2dc6[_0x649026(0x118)]),'name':_0x4b2dc6[_0x649026(0x118)],'scope':this[_0x649026(0xa1)](_0x4b2dc6),'scopes':this[_0x649026(0xfd)](_0x2b45da),'body':{'lang':_0x75241d[_0x649026(0x15d)],'code':null},'identifier':_0x1ecab0,'file_name':path['relative'](process[_0x649026(0x146)](),_0x2b45da[_0x649026(0xe2)][_0x649026(0x139)]),'location':path[_0x649026(0xae)](process[_0x649026(0x146)](),_0x2b45da[_0x649026(0xe2)][_0x649026(0x139)]),'result':_0x75241d[_0x649026(0x15a)],'duration_in_ms':_0x75241d[_0x649026(0x124)](_0x4b2dc6['duration'],0x0)?_0x4b2dc6['duration']:undefined,'vc_filepath':this[_0x649026(0x103)]&&_0x2b45da['location'][_0x649026(0x139)]?path[_0x649026(0xae)](this[_0x649026(0x103)],_0x2b45da[_0x649026(0xe2)][_0x649026(0x139)]):undefined,'started_at':_0x1f27d5[_0x649026(0xed)],'finished_at':_0x1f27d5[_0x649026(0x14a)],'framework':FRAMEWORKS[_0x649026(0xd4)]};if(_0x75241d['HuxST'](_0x137eb7,_0x75241d[_0x649026(0xff)])){const {steps:_0x3a4ffc,logs:_0x48e504}=this[_0x649026(0x11e)](_0x4b2dc6[_0x649026(0x110)],_0x1f27d5[_0x649026(0xbd)],_0x75241d[_0x649026(0xc2)]);_0x48e504&&_0x75241d['zkWJk'](_0x48e504[_0x649026(0xa6)],0x0)&&await MyReporter[_0x649026(0x168)](_0x48e504);const _0x2d7200={};_0x2d7200['steps']=_0x3a4ffc,_0x5888ea['meta']=_0x2d7200;if(_0x4b2dc6['error']){_0x5888ea['result']=_0x75241d[_0x649026(0x169)],_0x5888ea[_0x649026(0xde)]=_0x75241d[_0x649026(0xfb)](removeAnsiColors,_0x4b2dc6[_0x649026(0x9e)][_0x649026(0x15b)]),_0x5888ea[_0x649026(0x91)]=_0x75241d[_0x649026(0x172)](getFailureType,_0x4b2dc6[_0x649026(0x9e)][_0x649026(0x15b)]);const _0x37dd24=_0x75241d[_0x649026(0x12a)](failureData,_0x4b2dc6[_0x649026(0x9e)],_0x75241d['Pmaff']);if(_0x37dd24&&_0x75241d[_0x649026(0x7c)](_0x37dd24[_0x649026(0xa6)],0x0)){const _0x424eb0={};_0x424eb0[_0x649026(0x177)]=[_0x5888ea[_0x649026(0xde)]],_0x424eb0[_0x649026(0x113)]=[],_0x37dd24[_0x649026(0x143)](_0x424eb0);}_0x5888ea[_0x649026(0x125)]=_0x37dd24;}else _0x5888ea[_0x649026(0x83)]=_0x75241d[_0x649026(0x138)];}const _0x599e8e={};_0x599e8e[_0x649026(0x9a)]=_0x137eb7,_0x599e8e[_0x649026(0x13b)]=_0x5888ea;const _0x3a5e1f=_0x599e8e;await SessionHandler['uploadEventData'](_0x3a5e1f);}[a41_0x32ed6e(0x11e)](_0x192307,_0x51f31c,_0x2167ed){const _0x50361d=a41_0x32ed6e,_0x3ba547={'kIDLW':function(_0x2bfdcc,_0x3edfea){return _0x2bfdcc===_0x3edfea;},'VWwaF':_0x50361d(0x15c),'TnjMc':function(_0x4f1d06,_0x217862){return _0x4f1d06===_0x217862;},'HMcsa':_0x50361d(0x79),'AqEVk':function(_0x2b1e7e,_0x5e2344){return _0x2b1e7e===_0x5e2344;},'KgkPX':_0x50361d(0x101),'WTAcv':_0x50361d(0x9c),'Nhimt':_0x50361d(0xd0),'olmlo':'hook_run_uuid','gmnXy':'TEST_STEP','gJhwE':_0x50361d(0x17e),'OvZJY':_0x50361d(0xc7),'rzEaL':function(_0x124914,_0x53714e){return _0x124914(_0x53714e);},'SjVzQ':function(_0x30bdc0,_0x5b97c2){return _0x30bdc0(_0x5b97c2);},'TJvLV':function(_0x21d1cb){return _0x21d1cb();},'YFFtB':function(_0x173c60,_0x70ef98){return _0x173c60(_0x70ef98);},'PpcKm':function(_0x2753fb,_0x2474bf,_0x6613f8){return _0x2753fb(_0x2474bf,_0x6613f8);},'nPSeH':function(_0x45dfe1,_0x119fba,_0x408943){return _0x45dfe1(_0x119fba,_0x408943);}},_0x410774=[],_0x5710f7=[],_0x4424dc=_0x192307[_0x50361d(0x170)](_0x5d8b8a=>{const _0x54bae3=_0x50361d;if(_0x3ba547['kIDLW'](_0x5d8b8a[_0x54bae3(0x128)],_0x3ba547[_0x54bae3(0xce)])&&(_0x3ba547['TnjMc'](_0x5d8b8a[_0x54bae3(0x118)],_0x3ba547['HMcsa'])||_0x3ba547[_0x54bae3(0x10b)](_0x5d8b8a[_0x54bae3(0x118)],_0x3ba547[_0x54bae3(0x14c)])))return![];return!![];}),_0x1e68d3=(_0x280ba9,_0x3be8bd=![])=>{const _0x8e9ce0=_0x50361d;if(_0x3ba547[_0x8e9ce0(0x10b)](_0x280ba9[_0x8e9ce0(0x110)][_0x8e9ce0(0xa6)],0x0)){const _0x309c44=_0x3ba547[_0x8e9ce0(0x157)](_0x2167ed,_0x3ba547[_0x8e9ce0(0x159)])?_0x3ba547[_0x8e9ce0(0x155)]:_0x3ba547[_0x8e9ce0(0xb1)];_0x5710f7[_0x8e9ce0(0x143)]({'kind':_0x3ba547[_0x8e9ce0(0x147)],[_0x309c44]:_0x51f31c,'message':_0x280ba9[_0x8e9ce0(0x118)],'timestamp':_0x280ba9[_0x8e9ce0(0x10c)][_0x8e9ce0(0xd5)](),'level':_0x280ba9[_0x8e9ce0(0x9e)]?_0x3ba547[_0x8e9ce0(0x10a)]:_0x3ba547[_0x8e9ce0(0xe4)],'duration':_0x280ba9[_0x8e9ce0(0x16b)],'failure':_0x280ba9[_0x8e9ce0(0x9e)]&&_0x280ba9[_0x8e9ce0(0x9e)][_0x8e9ce0(0x15b)]&&_0x3ba547[_0x8e9ce0(0x13f)](removeAnsiColors,_0x280ba9[_0x8e9ce0(0x9e)][_0x8e9ce0(0x15b)]),'failure_type':_0x3ba547[_0x8e9ce0(0x10d)](getFailureType,_0x280ba9['error']&&_0x280ba9[_0x8e9ce0(0x9e)][_0x8e9ce0(0x15b)])});}else{!_0x3be8bd&&_0x410774[_0x8e9ce0(0x143)]({'id':_0x3ba547[_0x8e9ce0(0x97)](uuidv4),'text':_0x280ba9['title'],'keyword':undefined,'started_at':_0x280ba9[_0x8e9ce0(0x10c)][_0x8e9ce0(0xd5)](),'duration':_0x280ba9['duration'],'result':_0x280ba9[_0x8e9ce0(0x9e)]?_0x3ba547['gJhwE']:_0x3ba547[_0x8e9ce0(0xe4)],'failure':_0x280ba9['error']&&_0x280ba9[_0x8e9ce0(0x9e)][_0x8e9ce0(0x15b)]&&_0x3ba547[_0x8e9ce0(0x13f)](removeAnsiColors,_0x280ba9[_0x8e9ce0(0x9e)][_0x8e9ce0(0x15b)]),'failure_type':_0x3ba547[_0x8e9ce0(0xdd)](getFailureType,_0x280ba9[_0x8e9ce0(0x9e)]&&_0x280ba9[_0x8e9ce0(0x9e)][_0x8e9ce0(0x15b)])});for(const _0x2dee51 of _0x280ba9[_0x8e9ce0(0x110)]){_0x3ba547[_0x8e9ce0(0xf0)](_0x1e68d3,_0x2dee51,!![]);}}};for(const _0x521769 of _0x4424dc){_0x3ba547[_0x50361d(0xc4)](_0x1e68d3,_0x521769,![]);}const _0x12aa73={};return _0x12aa73[_0x50361d(0x110)]=_0x410774,_0x12aa73[_0x50361d(0x162)]=_0x5710f7,_0x12aa73;}async[a41_0x32ed6e(0x145)](_0x2d7946,_0x32a161,_0x4769f4){const _0x1a09d4=a41_0x32ed6e,_0x1ebc6b={'JGJUb':function(_0x2567cc,_0x36da0b){return _0x2567cc(_0x36da0b);},'IZVCb':_0x1a09d4(0xa4),'RoYMR':_0x1a09d4(0x17b),'kqXHU':'test','NdPWd':_0x1a09d4(0x12b),'WBwpV':'pending','Doqnk':function(_0x1d6685,_0x187d12){return _0x1d6685(_0x187d12);},'iryAF':function(_0xbe73e8,_0x27e9a0,_0x1aac60,_0x3d2909,_0x3871c1){return _0xbe73e8(_0x27e9a0,_0x1aac60,_0x3d2909,_0x3871c1);},'ixFAA':function(_0x947a4d,_0x1d0ed7){return _0x947a4d>_0x1d0ed7;},'zhPGS':function(_0x3629bf,_0x4bf7f4){return _0x3629bf-_0x4bf7f4;},'AnkGN':function(_0x1828cb,_0x53f81a){return _0x1828cb===_0x53f81a;},'UWqYU':_0x1a09d4(0xef),'PIpzh':function(_0x88ec42,_0x17c464){return _0x88ec42===_0x17c464;},'bJiUp':_0x1a09d4(0x17c),'gIsWD':_0x1a09d4(0xc7),'zjlyX':function(_0x1ae132,_0x1956f6){return _0x1ae132===_0x1956f6;},'cidEg':function(_0x217e23,_0x319783){return _0x217e23===_0x319783;},'WnTbM':_0x1a09d4(0x17e),'kphbW':function(_0x10769d,_0x3d1257){return _0x10769d===_0x3d1257;},'MejxI':'timedOut','tWvKn':function(_0x38a1d4,_0x269659){return _0x38a1d4===_0x269659;},'ikuXJ':function(_0x306db6,_0x113467){return _0x306db6===_0x113467;},'WfFjm':_0x1a09d4(0x9d),'rdhOY':function(_0xbfdb73,_0x1803c0){return _0xbfdb73(_0x1803c0);},'YZqTA':function(_0x47450f,_0x4e7f0e){return _0x47450f(_0x4e7f0e);},'kLMuW':function(_0x2f891d,_0x103fbc,_0x3ccb05){return _0x2f891d(_0x103fbc,_0x3ccb05);},'BAjYE':function(_0x33d858,_0x13cb2a){return _0x33d858>_0x13cb2a;},'VWCqB':_0x1a09d4(0xa0),'sulrt':function(_0x1b1918,_0x27e0a2){return _0x1b1918(_0x27e0a2);},'njiQn':function(_0x3cccd6,_0xb6e3e){return _0x3cccd6(_0xb6e3e);},'pijLK':_0x1a09d4(0xda),'tWahg':_0x1a09d4(0x135),'xkAsP':function(_0x54c5a6,_0x4bf0f3){return _0x54c5a6(_0x4bf0f3);},'ADXRs':function(_0x5e13b4,_0x4dedd3){return _0x5e13b4!==_0x4dedd3;}},_0x2b7558=this[_0x1a09d4(0x7d)](_0x2d7946),_0x3b26ea=this[_0x1a09d4(0xa1)](_0x2d7946),_0x35f06c=this[_0x1a09d4(0x74)][_0x2b7558],_0x4c0e79=path['relative'](process[_0x1a09d4(0x146)](),_0x2d7946[_0x1a09d4(0xe2)][_0x1a09d4(0x139)]);await this[_0x1a09d4(0x7e)]();const _0x4da734={'uuid':_0x35f06c[_0x1a09d4(0xbd)],'type':_0x1ebc6b[_0x1a09d4(0x15f)],'name':_0x2d7946[_0x1a09d4(0x118)],'body':{'lang':_0x1ebc6b[_0x1a09d4(0x82)],'code':_0x2d7946['fn'][_0x1a09d4(0x9f)]()},'scope':_0x3b26ea,'scopes':this[_0x1a09d4(0xfd)](_0x2d7946),'identifier':_0x2b7558,'file_name':_0x4c0e79,'location':_0x4c0e79,'result':_0x1ebc6b[_0x1a09d4(0x98)],'duration_in_ms':_0x4769f4&&_0x4769f4['duration']?_0x4769f4[_0x1a09d4(0x16b)]:null,'vc_filepath':this[_0x1a09d4(0x103)]&&_0x2d7946[_0x1a09d4(0xe2)][_0x1a09d4(0x139)]?path[_0x1a09d4(0xae)](this[_0x1a09d4(0x103)],_0x2d7946[_0x1a09d4(0xe2)]['file']):undefined,'started_at':_0x35f06c[_0x1a09d4(0xed)],'finished_at':_0x35f06c['finishedAt'],'framework':FRAMEWORKS[_0x1a09d4(0xd4)],'customRerunParam':{'rerun_name':this[_0x1a09d4(0x166)](_0x2d7946)},'tags':_0x1ebc6b[_0x1a09d4(0xe8)](getTestTags,_0x2d7946)};_0x1ebc6b['iryAF'](appendTesthubParams,_0x4da734,_0x32a161,_0x2d7946,FRAMEWORKS[_0x1a09d4(0xd4)]);_0x4769f4&&_0x1ebc6b['ixFAA'](_0x4769f4[_0x1a09d4(0xf8)],0x0)&&(_0x4da734[_0x1a09d4(0xe0)]=TestDetails[_0x1a09d4(0x122)](this['getTestRunIdentifier'](_0x2d7946,_0x1ebc6b['zhPGS'](_0x4769f4[_0x1a09d4(0xf8)],0x1))));if(_0x1ebc6b['AnkGN'](_0x32a161,_0x1ebc6b[_0x1a09d4(0x8c)])){_0x4da734[_0x1a09d4(0x83)]=_0x4769f4[_0x1a09d4(0xbb)];if(_0x1ebc6b[_0x1a09d4(0xa8)](_0x4769f4['status'],_0x2d7946[_0x1a09d4(0x179)]))_0x4da734['result']=_0x1ebc6b['PIpzh'](_0x4769f4['status'],_0x1ebc6b[_0x1a09d4(0x175)])?_0x1ebc6b[_0x1a09d4(0x175)]:_0x1ebc6b['gIsWD'];else{(_0x1ebc6b[_0x1a09d4(0x15e)](_0x4da734[_0x1a09d4(0x83)],_0x1ebc6b[_0x1a09d4(0xa9)])||_0x1ebc6b['cidEg'](_0x4da734[_0x1a09d4(0x83)],_0x1ebc6b['WnTbM'])||_0x1ebc6b[_0x1a09d4(0xea)](_0x4da734[_0x1a09d4(0x83)],_0x1ebc6b[_0x1a09d4(0x160)]))&&(_0x4da734['result']=_0x1ebc6b['WnTbM']);if(_0x1ebc6b[_0x1a09d4(0x107)](_0x4769f4[_0x1a09d4(0xbb)],_0x1ebc6b[_0x1a09d4(0xa9)])&&_0x1ebc6b[_0x1a09d4(0xbc)](_0x2d7946['expectedStatus'],_0x1ebc6b[_0x1a09d4(0x142)])){const _0x52d071={};_0x52d071[_0x1a09d4(0x15b)]=_0x1ebc6b[_0x1a09d4(0xb2)],_0x52d071[_0x1a09d4(0x9b)]=_0x1ebc6b[_0x1a09d4(0xb2)],_0x4769f4['error']=_0x52d071,_0x4769f4[_0x1a09d4(0x181)]=[_0x4769f4['error']];}}const _0x5e0778=this['getTestRunIdentifier'](_0x2d7946,_0x4769f4[_0x1a09d4(0xf8)]);_0x4da734[_0x1a09d4(0x149)]=this[_0x1a09d4(0xac)][_0x5e0778];const {steps:_0x439df8,logs:_0x394a50}=this[_0x1a09d4(0x11e)](_0x4769f4['steps'],_0x35f06c[_0x1a09d4(0xbd)],_0x1ebc6b[_0x1a09d4(0x15f)]);await MyReporter[_0x1a09d4(0x168)](_0x394a50);const _0x391c8d={};_0x391c8d[_0x1a09d4(0x110)]=_0x439df8,_0x4da734[_0x1a09d4(0x16c)]=_0x391c8d;if(_0x4769f4[_0x1a09d4(0x9e)]){_0x4da734[_0x1a09d4(0xde)]=_0x1ebc6b[_0x1a09d4(0x106)](removeAnsiColors,_0x4769f4[_0x1a09d4(0x9e)]['message']),_0x4da734['failure_type']=_0x1ebc6b[_0x1a09d4(0x8d)](getFailureType,_0x4769f4[_0x1a09d4(0x9e)][_0x1a09d4(0x15b)]);const _0x524c23={};_0x524c23[_0x1a09d4(0xd0)]=_0x35f06c[_0x1a09d4(0xbd)];const {failureData:_0x284eb0,logs:_0xcb85dc}=_0x1ebc6b[_0x1a09d4(0xc1)](getFailureData,_0x4769f4[_0x1a09d4(0x181)],_0x524c23);if(_0x284eb0&&_0x1ebc6b['zjlyX'](_0x284eb0[_0x1a09d4(0xa6)],0x0)){const _0x32d296={};_0x32d296[_0x1a09d4(0x177)]=[_0x4da734['failure_reason']],_0x32d296[_0x1a09d4(0x113)]=[],_0x284eb0[_0x1a09d4(0x143)](_0x32d296);}_0x4da734['failure']=_0x284eb0,_0xcb85dc&&_0x1ebc6b[_0x1a09d4(0xa2)](_0xcb85dc[_0x1a09d4(0xa6)],0x0)&&await MyReporter[_0x1a09d4(0x168)](_0xcb85dc);}}let _0xd32591=_0x1ebc6b['kLMuW'](findNestedKey,_0x4769f4,_0x1ebc6b[_0x1a09d4(0xfe)]);if(_0xd32591&&_0x1ebc6b[_0x1a09d4(0x154)](validateFilePath,_0xd32591))_0x1ebc6b[_0x1a09d4(0x165)](debug,_0x1a09d4(0x8b)+_0x35f06c['uuid']+_0x1a09d4(0x17a)+_0xd32591);else{const _0x5db18b=path['join'](helper[_0x1a09d4(0x7f)](),_0x1ebc6b[_0x1a09d4(0xee)]);!fs[_0x1a09d4(0x158)](_0x5db18b)&&fs[_0x1a09d4(0x17f)](_0x5db18b),fs[_0x1a09d4(0x158)](path[_0x1a09d4(0xe5)](_0x5db18b,_0x1a09d4(0xc6)+_0x35f06c['uuid']+_0x1a09d4(0xe6)))&&(_0xd32591=fs[_0x1a09d4(0x174)](path[_0x1a09d4(0xe5)](_0x5db18b,'trace_'+_0x35f06c[_0x1a09d4(0xbd)]+_0x1a09d4(0xe6)),_0x1ebc6b[_0x1a09d4(0x105)]),_0x1ebc6b[_0x1a09d4(0xaa)](debug,_0x1a09d4(0x8b)+_0x35f06c[_0x1a09d4(0xbd)]+_0x1a09d4(0x17a)+_0xd32591));}const _0x594c1c={};_0x594c1c[_0x1a09d4(0x9a)]=_0x32a161,_0x594c1c['test_run']=_0x4da734;const _0xc0221a=_0x594c1c;_0xd32591&&_0x1ebc6b[_0x1a09d4(0xec)](_0xd32591,'')&&_0x1ebc6b[_0x1a09d4(0xe1)](_0x32a161,_0x1ebc6b['UWqYU'])&&(!_0xc0221a['logs']&&(_0xc0221a[_0x1a09d4(0x162)]=[]),_0xd32591['split']('\x0a')[_0x1a09d4(0xab)](_0x2833e6=>{const _0x9fd847=_0x1a09d4;_0x2833e6&&_0x1ebc6b[_0x9fd847(0xb5)](validateFilePath,_0x2833e6)&&_0xc0221a['logs'][_0x9fd847(0x143)]({'kind':_0x1ebc6b[_0x9fd847(0x148)],'timestamp':new Date()[_0x9fd847(0xd5)](),'test_run_uuid':_0x35f06c[_0x9fd847(0xbd)],'file_name':path['basename'](_0x2833e6),'file_size':fs[_0x9fd847(0xcf)](_0x2833e6)['size'],'attachment_type':_0x1ebc6b['RoYMR']});})),await SessionHandler[_0x1a09d4(0x16d)](_0xc0221a);}[a41_0x32ed6e(0x166)](_0x121f79){const _0x15e90e=a41_0x32ed6e,_0x5301ca={};_0x5301ca[_0x15e90e(0x12d)]=function(_0x4e01d6,_0x36b1f4){return _0x4e01d6===_0x36b1f4;},_0x5301ca[_0x15e90e(0x16a)]=function(_0x977443,_0xe89973){return _0x977443>_0xe89973;},_0x5301ca['CvRCH']=function(_0x16b3bb,_0x263610){return _0x16b3bb+_0x263610;},_0x5301ca[_0x15e90e(0x132)]=function(_0xfb5c5f,_0x9d578b){return _0xfb5c5f+_0x9d578b;};const _0x33b529=_0x5301ca,_0x1ddf87=_0x121f79[_0x15e90e(0x144)]()[_0x15e90e(0x121)](_0x1b2e17=>{const _0x501308=_0x15e90e;if(_0x121f79['parent']&&_0x33b529[_0x501308(0x12d)](_0x1b2e17,_0x121f79['parent']['title'])&&_0x121f79[_0x501308(0x12e)][_0x501308(0x171)]&&_0x33b529[_0x501308(0x16a)](_0x121f79[_0x501308(0x12e)]['_tags']['length'],0x0))return _0x33b529[_0x501308(0x8e)](_0x33b529['lDjGg'](_0x1b2e17,'\x20'),_0x121f79[_0x501308(0x12e)][_0x501308(0x171)]['join']('\x20'));if(_0x33b529[_0x501308(0x12d)](_0x1b2e17,_0x121f79[_0x501308(0x118)])&&_0x121f79[_0x501308(0x171)]&&_0x33b529[_0x501308(0x16a)](_0x121f79[_0x501308(0x171)][_0x501308(0xa6)],0x0))return _0x33b529[_0x501308(0x8e)](_0x33b529[_0x501308(0x132)](_0x1b2e17,'\x20'),_0x121f79[_0x501308(0x171)][_0x501308(0xe5)]('\x20'));return _0x1b2e17;})[_0x15e90e(0xe5)]('\x20');return _0x1ddf87;}static async[a41_0x32ed6e(0x90)](_0x1c6a47,_0x3c8877){const _0x3b6205=a41_0x32ed6e,_0x3aa8e6={'JcpUi':function(_0x34519e,_0x2f7d48){return _0x34519e(_0x2f7d48);},'majMJ':_0x3b6205(0x100)},_0x321522={'uuid':TestDetails[_0x3b6205(0x122)](_0x1c6a47),'integrations':_0x3c8877},_0x2b57d={};_0x2b57d[_0x3b6205(0x86)]=null,_0x3aa8e6[_0x3b6205(0x96)](debug,'Sending\x20session\x20details\x20for\x20'+_0x1c6a47+',\x20'+util['inspect'](_0x3c8877,_0x2b57d));const _0x32e338={};_0x32e338[_0x3b6205(0x9a)]=_0x3aa8e6[_0x3b6205(0x94)],_0x32e338[_0x3b6205(0xb9)]=_0x321522,await SessionHandler[_0x3b6205(0x16d)](_0x32e338);}async['configureGit'](){const _0x527290=a41_0x32ed6e,_0x37ece5={'vvZcJ':function(_0x292c46){return _0x292c46();}};if(this['_gitConfigured'])return;const _0x1fa173=await _0x37ece5[_0x527290(0x108)](getGitMetaData);_0x1fa173&&(this[_0x527290(0x103)]=_0x1fa173[_0x527290(0x75)]),this['_gitConfigured']=!![];}[a41_0x32ed6e(0xfd)](_0x5a9098){const _0x30a9b7=a41_0x32ed6e,_0x2da7f0={};_0x2da7f0[_0x30a9b7(0x115)]=function(_0x4f0d3d,_0xe3e018){return _0x4f0d3d!==_0xe3e018;};const _0x132dc4=_0x2da7f0,_0x77322c=[];if(_0x5a9098&&_0x5a9098['parent']){let _0x5ccba7=_0x5a9098[_0x30a9b7(0x12e)];while(_0x5ccba7&&_0x132dc4['kVMjr'](_0x5ccba7[_0x30a9b7(0x118)],'')){_0x77322c['push'](_0x5ccba7[_0x30a9b7(0x118)]),_0x5ccba7=_0x5ccba7[_0x30a9b7(0x12e)];}}return _0x77322c[_0x30a9b7(0x109)]()['splice'](0x0,0x2),_0x77322c;}[a41_0x32ed6e(0xb7)](_0x160ea4){const _0x3bc13a=a41_0x32ed6e,_0x3d14c2={};_0x3d14c2['fUuCy']=function(_0x51e81c,_0x5491c8){return _0x51e81c!==_0x5491c8;},_0x3d14c2[_0x3bc13a(0x153)]=_0x3bc13a(0x15c),_0x3d14c2[_0x3bc13a(0xb0)]=function(_0x558711,_0x430e6b){return _0x558711===_0x430e6b;},_0x3d14c2[_0x3bc13a(0xb8)]=_0x3bc13a(0x95),_0x3d14c2[_0x3bc13a(0x11f)]=_0x3bc13a(0xbf),_0x3d14c2[_0x3bc13a(0xad)]=_0x3bc13a(0xf5),_0x3d14c2[_0x3bc13a(0xba)]=_0x3bc13a(0x11a);const _0x5e5f44=_0x3d14c2;if(_0x5e5f44[_0x3bc13a(0x116)](_0x160ea4['category'],_0x5e5f44[_0x3bc13a(0x153)]))return![];if(_0x5e5f44['xVkOP']([_0x5e5f44['JHQjE'],_0x5e5f44[_0x3bc13a(0x11f)],_0x5e5f44[_0x3bc13a(0xad)],_0x5e5f44[_0x3bc13a(0xba)]]['indexOf'](_0x160ea4[_0x3bc13a(0x118)]),-0x1))return![];return!![];}['getStepIdentifier'](_0xee17a5,_0x82620b){const _0x49ea16=a41_0x32ed6e,_0x567973=_0x82620b[_0x49ea16(0x140)];if(_0x567973)return _0x567973;return _0x82620b[_0x49ea16(0x118)]+'\x20for\x20'+this[_0x49ea16(0x7d)](_0xee17a5);}[a41_0x32ed6e(0xf2)](_0x4358dc,_0x562e84){const _0x27d833=a41_0x32ed6e,_0x5b133c={'FyBXo':function(_0x2aa8f4){return _0x2aa8f4();}};let _0xe678ac=_0x562e84[_0x27d833(0x118)]+_0x27d833(0x129)+this[_0x27d833(0x7d)](_0x4358dc);return this[_0x27d833(0x74)][_0xe678ac]&&(_0xe678ac=_0xe678ac+'\x20-\x20'+_0x5b133c[_0x27d833(0x85)](uuidv4)),_0x562e84[_0x27d833(0x140)]=_0xe678ac,_0xe678ac;}[a41_0x32ed6e(0x7d)]=_0x577230=>{const _0x38fb14=a41_0x32ed6e,_0x74b099={};_0x74b099[_0x38fb14(0xcd)]=function(_0x3c8918,_0x187165){return _0x3c8918+_0x187165;};const _0x5babd8=_0x74b099;return _0x5babd8['lyKCm'](_0x5babd8[_0x38fb14(0xcd)](_0x577230[_0x38fb14(0x104)],'-'),_0x577230['id']);};[a41_0x32ed6e(0xe7)]=(_0x46eb24,_0x514173)=>{const _0x48b62e=a41_0x32ed6e,_0x2d7da5={};_0x2d7da5[_0x48b62e(0xd1)]=function(_0x3fc460,_0x4933ea){return _0x3fc460+_0x4933ea;};const _0x53c39e=_0x2d7da5;return _0x53c39e[_0x48b62e(0xd1)](_0x53c39e[_0x48b62e(0xd1)](this[_0x48b62e(0x7d)](_0x46eb24),'-'),_0x514173);};[a41_0x32ed6e(0x78)]=_0x51e027=>{const _0x587018=a41_0x32ed6e,_0x4185e2={};_0x4185e2['HDgjr']='beforeEach\x20hook',_0x4185e2['DTcOT']='BEFORE_EACH',_0x4185e2['apKpC']='beforeAll\x20hook',_0x4185e2['yYnwy']=_0x587018(0x84),_0x4185e2['iMUpL']=_0x587018(0x11a),_0x4185e2[_0x587018(0xcb)]='AFTER_EACH',_0x4185e2[_0x587018(0x13d)]=_0x587018(0xf5),_0x4185e2['OhEci']=_0x587018(0x13a),_0x4185e2[_0x587018(0xf6)]=_0x587018(0xaf);const _0xba8c44=_0x4185e2;if(_0x51e027[_0x587018(0x16f)](_0xba8c44['HDgjr']))return _0xba8c44[_0x587018(0x11b)];else{if(_0x51e027[_0x587018(0x16f)](_0xba8c44[_0x587018(0x12f)]))return _0xba8c44[_0x587018(0xd8)];else{if(_0x51e027[_0x587018(0x16f)](_0xba8c44[_0x587018(0x130)]))return _0xba8c44['wXmIg'];else{if(_0x51e027[_0x587018(0x16f)](_0xba8c44[_0x587018(0x13d)]))return _0xba8c44[_0x587018(0xa3)];}}}return _0xba8c44[_0x587018(0xf6)];};[a41_0x32ed6e(0xa1)]=_0xbc727=>{const _0x9ead4f=a41_0x32ed6e,_0x2a2e1b={};_0x2a2e1b['IUijc']=function(_0x28de6a,_0x36bebe){return _0x28de6a===_0x36bebe;},_0x2a2e1b[_0x9ead4f(0x10f)]=_0x9ead4f(0x7a);const _0x3462a9=_0x2a2e1b;let _0x3e51b4=_0xbc727[_0x9ead4f(0x12e)];return _0x3462a9[_0x9ead4f(0xfa)](typeof _0xbc727[_0x9ead4f(0x12e)],_0x3462a9[_0x9ead4f(0x10f)])&&(_0x3e51b4=_0x3e51b4[_0x9ead4f(0x118)]),_0x3e51b4+'\x20-\x20'+_0xbc727[_0x9ead4f(0x118)];};['printsToStdio'](){return![];}}module[a41_0x32ed6e(0x13c)]=o11yClassErrorHandler(MyReporter,[a41_0x32ed6e(0x151),a41_0x32ed6e(0xd9),'onTestBegin','onTestEnd','onStepBegin',a41_0x32ed6e(0x114),'sendSessionDetails'],'MyReporter');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a42_0x27c7(){const _0x257be9=['3020905rdNStN','../../../helpers/logger','getTraceFilePaths','pxzPn','appendToTracePaths','SPkUD','getDirPath','.json','util','readFileSync','Error\x20writing\x20trace\x20file:\x20','IFHek','getTraceZipDir','getStoreDirPath','451068kwoOtP','tests','setTestDetails','uuid','shutdown','env','retry','string','mfAhY','mkdirSync','../../../helpers/helper','forEach','parse','6KQJEEZ','setup','3523554cdytVm','toString','tLIxh','message','TSzBf','.txt','549MkfzNX','TDPBM','getTestRunIdFromTestInfo','writeFileSync','getTestUUID','EXzJd','4024279fExQIV','homedir','41184EqeXIs','setAccessibilityPlatformValidation','endsWith','path','zyPrr','MZhoX','_traceZipPaths.json','filePath','__projectId','893700aRECsC','JyKqN','exports','push','aSAiO','getStoreDirName','mHIIQ','udnZC','utf8','format','Error\x20handling\x20trace\x20file\x20paths:\x20','BS_TESTOPS_BUILD_HASHED_ID','GBhQU','trace_','addTraceFilePath','appendFileSync','xSGud','PyCJr','xsCHk','rmSync','lZFRJ','YSdNg','project','_platformDetails.json','_test','default','winstonLogger','pFUWA','recursive','getTestIdFromTestInfo','force','.browserstack','join','315786nuNKEf','getFilePath','existsSync','stringify','getProjectIdFromTestInfo','NdNsP','values','getAccessibilityPlatformValidation','error'];a42_0x27c7=function(){return _0x257be9;};return a42_0x27c7();}const a42_0x5e1423=a42_0xac50;(function(_0x308e06,_0x3c9fa7){const _0x5475f6=a42_0xac50,_0x390bae=_0x308e06();while(!![]){try{const _0x5606d5=-parseInt(_0x5475f6(0x14e))/0x1+-parseInt(_0x5475f6(0x15b))/0x2*(-parseInt(_0x5475f6(0x137))/0x3)+parseInt(_0x5475f6(0x174))/0x4+parseInt(_0x5475f6(0x140))/0x5+parseInt(_0x5475f6(0x15d))/0x6+-parseInt(_0x5475f6(0x169))/0x7+-parseInt(_0x5475f6(0x16b))/0x8*(parseInt(_0x5475f6(0x163))/0x9);if(_0x5606d5===_0x3c9fa7)break;else _0x390bae['push'](_0x390bae['shift']());}catch(_0x26bf8e){_0x390bae['push'](_0x390bae['shift']());}}}(a42_0x27c7,0x5f602));const fs=require('fs'),path=require(a42_0x5e1423(0x16e)),{v4:uuidv4}=require(a42_0x5e1423(0x151)),{TEMP_STORE_DIR_NAME}=require('../../../helpers/test-observability/constants'),{nestedKeyValue}=require(a42_0x5e1423(0x158)),logger=require(a42_0x5e1423(0x141))[a42_0x5e1423(0x130)],{getLogDir}=require(a42_0x5e1423(0x141)),util=require(a42_0x5e1423(0x148)),helper=require('../../../helpers/helper');function a42_0xac50(_0x123bff,_0x428f0e){const _0x27c737=a42_0x27c7();return a42_0xac50=function(_0xac50ce,_0x3f6fc5){_0xac50ce=_0xac50ce-0x118;let _0xc640a9=_0x27c737[_0xac50ce];return _0xc640a9;},a42_0xac50(_0x123bff,_0x428f0e);}class TestDetails{static [a42_0x5e1423(0x14f)]={};static[a42_0x5e1423(0x15c)](){const _0x4211b1=a42_0x5e1423;this[_0x4211b1(0x152)]();const _0x2c9713={};_0x2c9713[_0x4211b1(0x132)]=!![],fs['mkdirSync'](this[_0x4211b1(0x146)](),_0x2c9713);const _0x38b5b9={};_0x38b5b9[_0x4211b1(0x132)]=!![],fs[_0x4211b1(0x157)](this[_0x4211b1(0x14c)](),_0x38b5b9);}static['getStoreDirName'](){const _0x515855=a42_0x5e1423,_0x4ee063={};_0x4ee063[_0x515855(0x175)]=function(_0x23777a,_0x3898b3){return _0x23777a+_0x3898b3;},_0x4ee063[_0x515855(0x131)]=function(_0x16dc61,_0x5f3422){return _0x16dc61+_0x5f3422;};const _0x445f00=_0x4ee063;return _0x445f00[_0x515855(0x175)](_0x445f00[_0x515855(0x131)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x515855(0x121)]);}static[a42_0x5e1423(0x14d)](){const _0x49794d=a42_0x5e1423,_0x2a8b78={'xsCHk':function(_0x27fbee){return _0x27fbee();},'adBDm':function(_0x115e2,_0x1b19c3){return _0x115e2+_0x1b19c3;},'udnZC':_0x49794d(0x12f)};return path[_0x49794d(0x136)](_0x2a8b78[_0x49794d(0x128)](getLogDir),_0x2a8b78['adBDm'](_0x2a8b78['adBDm'](TEMP_STORE_DIR_NAME,'-'),process[_0x49794d(0x153)][_0x49794d(0x121)]||_0x2a8b78[_0x49794d(0x11d)]));}static['getTraceZipDir'](){const _0x36f479=a42_0x5e1423,_0x61f3b3={};_0x61f3b3[_0x36f479(0x161)]='traceZipPaths';const _0x1b416c=_0x61f3b3;return path['join'](this['getStoreDirPath'](),_0x1b416c[_0x36f479(0x161)]);}static[a42_0x5e1423(0x146)](){const _0x4eb3f5=a42_0x5e1423,_0x35d17b={'GBhQU':function(_0x237eb5){return _0x237eb5();}};return path[_0x4eb3f5(0x136)](_0x35d17b[_0x4eb3f5(0x122)](getLogDir),TestDetails[_0x4eb3f5(0x11b)]());}static[a42_0x5e1423(0x138)](_0x49fb5a){const _0x30b2b1=a42_0x5e1423,_0x5bbb50={};_0x5bbb50['iTpvi']=function(_0x1f6cd2,_0x1c04d0){return _0x1f6cd2+_0x1c04d0;},_0x5bbb50[_0x30b2b1(0x14b)]=_0x30b2b1(0x147);const _0x203118=_0x5bbb50;return path[_0x30b2b1(0x136)](this[_0x30b2b1(0x146)](),_0x203118['iTpvi'](_0x49fb5a,_0x203118[_0x30b2b1(0x14b)]));}static[a42_0x5e1423(0x165)](_0xc14e59){const _0x5b6e81=a42_0x5e1423,_0x3e8e47={};_0x3e8e47['TDPBM']=function(_0x321df0,_0xf868ed){return _0x321df0+_0xf868ed;};const _0x25989a=_0x3e8e47;return _0x25989a[_0x5b6e81(0x164)](_0x25989a['TDPBM'](_0x25989a[_0x5b6e81(0x164)](_0x25989a[_0x5b6e81(0x164)](this[_0x5b6e81(0x13b)](_0xc14e59),'-'),this[_0x5b6e81(0x133)](_0xc14e59)),'-'),_0xc14e59[_0x5b6e81(0x154)]);}static[a42_0x5e1423(0x13b)](_0x5aafbf){const _0x1c6b18=a42_0x5e1423,_0x5dffaa={'Enubx':function(_0x16ff49,_0x5d5605,_0x21ded2){return _0x16ff49(_0x5d5605,_0x21ded2);},'YSdNg':_0x1c6b18(0x12e),'mfAhY':'_projectId','SPkUD':function(_0x1be2c6,_0x38cd5c,_0x128e3c){return _0x1be2c6(_0x38cd5c,_0x128e3c);},'lZFRJ':_0x1c6b18(0x12c),'mHIIQ':_0x1c6b18(0x173)};return _0x5dffaa['Enubx'](nestedKeyValue,_0x5aafbf,[_0x5dffaa[_0x1c6b18(0x12b)],_0x5dffaa[_0x1c6b18(0x156)]])||_0x5dffaa[_0x1c6b18(0x145)](nestedKeyValue,_0x5aafbf,[_0x5dffaa[_0x1c6b18(0x12a)],_0x5dffaa[_0x1c6b18(0x11c)]]);}static['getTestIdFromTestInfo'](_0x72982d){const _0x40bbf7=a42_0x5e1423,_0x3b249f={'NdNsP':function(_0x3daab8,_0x508000,_0x56a60c){return _0x3daab8(_0x508000,_0x56a60c);},'PyCJr':_0x40bbf7(0x12e)};return _0x3b249f[_0x40bbf7(0x13c)](nestedKeyValue,_0x72982d,[_0x3b249f[_0x40bbf7(0x127)],'id'])||_0x72982d['testId'];}static[a42_0x5e1423(0x167)](_0x66c510){const _0x151a0d=a42_0x5e1423,_0x3573c7={'EXzJd':function(_0x542bd9,_0x23db64){return _0x542bd9===_0x23db64;},'xSGud':_0x151a0d(0x155),'UUKlP':function(_0x534c03){return _0x534c03();}};if(this[_0x151a0d(0x14f)][_0x66c510]&&_0x3573c7[_0x151a0d(0x168)](typeof this[_0x151a0d(0x14f)][_0x66c510][_0x151a0d(0x151)],_0x3573c7[_0x151a0d(0x126)]))return this['tests'][_0x66c510][_0x151a0d(0x151)];const _0x426148=this['getFilePath'](_0x66c510);if(_0x426148&&fs[_0x151a0d(0x139)](_0x426148)){const _0x27a6e6=JSON['parse'](fs['readFileSync'](_0x426148)[_0x151a0d(0x15e)]());return this[_0x151a0d(0x14f)][_0x66c510]=_0x27a6e6,this[_0x151a0d(0x14f)][_0x66c510]['uuid'];}return this[_0x151a0d(0x14f)][_0x66c510]={'uuid':_0x3573c7['UUKlP'](uuidv4)},fs['writeFileSync'](_0x426148,JSON[_0x151a0d(0x13a)](this[_0x151a0d(0x14f)][_0x66c510])),this[_0x151a0d(0x14f)][_0x66c510][_0x151a0d(0x151)];}static[a42_0x5e1423(0x13e)](_0x74599f){const _0x702d03=a42_0x5e1423,_0x11dc22=path['join'](this[_0x702d03(0x146)](),_0x74599f+_0x702d03(0x12d));if(_0x11dc22&&fs[_0x702d03(0x139)](_0x11dc22))return fs['readFileSync'](_0x11dc22)[_0x702d03(0x15e)]();}static[a42_0x5e1423(0x16c)](_0x42aaa5,_0x588d77){const _0x5a7321=a42_0x5e1423,_0x5b2d29=path[_0x5a7321(0x136)](this[_0x5a7321(0x146)](),_0x588d77+'_platformDetails.json');fs[_0x5a7321(0x166)](_0x5b2d29,_0x42aaa5[_0x5a7321(0x15e)]());}static[a42_0x5e1423(0x152)](){const _0x260a77=a42_0x5e1423,_0x40162f={};_0x40162f[_0x260a77(0x132)]=!![],_0x40162f[_0x260a77(0x134)]=!![],fs[_0x260a77(0x129)](this[_0x260a77(0x146)](),_0x40162f);}static['getTestDetails'](_0xfea335){const _0x12b883=a42_0x5e1423;if(this[_0x12b883(0x14f)][_0xfea335])return this[_0x12b883(0x14f)][_0xfea335];const _0x2aff9e=this[_0x12b883(0x138)](_0xfea335);if(_0x2aff9e&&fs[_0x12b883(0x139)](_0x2aff9e)){const _0x18d0a5=JSON[_0x12b883(0x15a)](fs[_0x12b883(0x149)](_0x2aff9e)[_0x12b883(0x15e)]());return this[_0x12b883(0x14f)][_0xfea335]=_0x18d0a5,_0x18d0a5;}return{};}static[a42_0x5e1423(0x150)](_0x58117e,_0x2e65fb){const _0x443c5d=a42_0x5e1423,_0x239a43=this[_0x443c5d(0x138)](_0x58117e);if(_0x239a43&&fs['existsSync'](_0x239a43)){const _0x52810b=JSON[_0x443c5d(0x15a)](fs['readFileSync'](_0x239a43)['toString']()),_0x552fcb={..._0x52810b,..._0x2e65fb};this[_0x443c5d(0x14f)][_0x58117e]=_0x552fcb;}else this[_0x443c5d(0x14f)][_0x58117e]=_0x2e65fb;fs[_0x443c5d(0x166)](_0x239a43,this['tests'][_0x58117e]);}static[a42_0x5e1423(0x124)](_0x238304){const _0x1205a9=a42_0x5e1423,_0x2cc7e={};_0x2cc7e[_0x1205a9(0x143)]=_0x1205a9(0x120);const _0x33b22d=_0x2cc7e;try{const _0x260886=process['pid'],_0x1d124e=path[_0x1205a9(0x136)](TestDetails[_0x1205a9(0x14c)](),_0x260886+_0x1205a9(0x171));let _0x8abf67=[];_0x1d124e&&fs['existsSync'](_0x1d124e)&&(_0x8abf67=JSON[_0x1205a9(0x15a)](fs[_0x1205a9(0x149)](_0x1d124e)[_0x1205a9(0x15e)]())),!_0x8abf67['some'](_0x4810c9=>_0x4810c9[_0x1205a9(0x172)]===_0x238304[_0x1205a9(0x172)])&&(_0x8abf67['push'](_0x238304),fs[_0x1205a9(0x166)](_0x1d124e,JSON[_0x1205a9(0x13a)](_0x8abf67)));}catch(_0x830711){logger['error'](_0x33b22d[_0x1205a9(0x143)],_0x830711);}}static[a42_0x5e1423(0x142)](){const _0x39dd28=a42_0x5e1423,_0x536815={};_0x536815[_0x39dd28(0x15f)]=_0x39dd28(0x171),_0x536815[_0x39dd28(0x16f)]='Error\x20reading\x20trace\x20file\x20paths:\x20%s';const _0x4090b2=_0x536815,_0x253986=[];try{const _0x1f2f32=TestDetails[_0x39dd28(0x14c)]();if(_0x1f2f32&&!fs['existsSync'](_0x1f2f32))return _0x253986;const _0x44aa5a=fs['readdirSync'](_0x1f2f32);_0x44aa5a[_0x39dd28(0x159)](_0x2531d9=>{const _0x4ffd22=_0x39dd28;if(_0x2531d9&&_0x2531d9[_0x4ffd22(0x16d)](_0x4090b2[_0x4ffd22(0x15f)])){const _0x12119b=JSON[_0x4ffd22(0x15a)](fs[_0x4ffd22(0x149)](path[_0x4ffd22(0x136)](_0x1f2f32,_0x2531d9))[_0x4ffd22(0x15e)]());_0x253986[_0x4ffd22(0x119)](..._0x12119b);}});}catch(_0x4fde16){logger[_0x39dd28(0x13f)](util[_0x39dd28(0x11f)](_0x4090b2[_0x39dd28(0x16f)],_0x4fde16));}const _0x5337d5={};return _0x253986[_0x39dd28(0x159)](_0x3b32f2=>{const _0x3a6623=_0x39dd28;_0x5337d5[_0x3b32f2[_0x3a6623(0x172)]]=_0x3b32f2;}),Object[_0x39dd28(0x13d)](_0x5337d5);}static[a42_0x5e1423(0x144)](_0x6f99ef,_0x7b434f){const _0x4ea1d2=a42_0x5e1423,_0x4a7bba={};_0x4a7bba[_0x4ea1d2(0x170)]=_0x4ea1d2(0x135),_0x4a7bba[_0x4ea1d2(0x11a)]=_0x4ea1d2(0x11e);const _0x54fee2=_0x4a7bba;try{const _0x359ed1=path[_0x4ea1d2(0x136)](helper[_0x4ea1d2(0x16a)](),_0x54fee2['MZhoX']);if(!fs[_0x4ea1d2(0x139)](_0x359ed1)){const _0x3c14e1={};_0x3c14e1[_0x4ea1d2(0x132)]=!![],fs['mkdirSync'](_0x359ed1,_0x3c14e1);}fs[_0x4ea1d2(0x125)](path['join'](_0x359ed1,_0x4ea1d2(0x123)+_0x7b434f+_0x4ea1d2(0x162)),_0x6f99ef+'\x0a',_0x54fee2[_0x4ea1d2(0x11a)]);}catch(_0x304f79){console[_0x4ea1d2(0x13f)](_0x4ea1d2(0x14a)+_0x304f79[_0x4ea1d2(0x160)]);}}}module[a42_0x5e1423(0x118)]=TestDetails;
|
|
1
|
+
function a42_0x24b0(_0x5815ac,_0x57e7c7){const _0x459b6f=a42_0x459b();return a42_0x24b0=function(_0x24b063,_0x49470e){_0x24b063=_0x24b063-0x1cc;let _0xc0ac17=_0x459b6f[_0x24b063];return _0xc0ac17;},a42_0x24b0(_0x5815ac,_0x57e7c7);}const a42_0x5e8dce=a42_0x24b0;(function(_0xf94436,_0x3491fa){const _0x2d98b7=a42_0x24b0,_0x1ed85d=_0xf94436();while(!![]){try{const _0x678b8a=parseInt(_0x2d98b7(0x208))/0x1*(-parseInt(_0x2d98b7(0x202))/0x2)+-parseInt(_0x2d98b7(0x1d4))/0x3+parseInt(_0x2d98b7(0x219))/0x4+parseInt(_0x2d98b7(0x1f1))/0x5+-parseInt(_0x2d98b7(0x1fc))/0x6+-parseInt(_0x2d98b7(0x214))/0x7*(parseInt(_0x2d98b7(0x1ec))/0x8)+parseInt(_0x2d98b7(0x1ee))/0x9;if(_0x678b8a===_0x3491fa)break;else _0x1ed85d['push'](_0x1ed85d['shift']());}catch(_0x18b79c){_0x1ed85d['push'](_0x1ed85d['shift']());}}}(a42_0x459b,0x76040));function a42_0x459b(){const _0x12e55a=['getTraceZipDir','VDRjm','default','544kaosQG','project','getStoreDirName','getProjectIdFromTestInfo','error','LGCKn','2434YJofQu','rmSync','PLcFG','qLuaH','message','shutdown','string','writeFileSync','push','RpMHd','env','recursive','2479967CWGXHN','__projectId','readFileSync','utf8','getTestDetails','3602240pHSMWz','format','homedir','getTestRunIdFromTestInfo','join','retry','parse','getTestIdFromTestInfo','force','mkdirSync','getTraceFilePaths','../../../helpers/logger','NSFUz','exports','traceZipPaths','forEach','679671kVCfgs','some','getStoreDirPath','TZLCX','_test','uPIRf','KZGra','path','YqYoq','Error\x20reading\x20trace\x20file\x20paths:\x20%s','eWmmN','IzhGZ','getFilePath','existsSync','BS_TESTOPS_BUILD_HASHED_ID','JJEim','AvREC','uuid','util','../../../helpers/helper','_traceZipPaths.json','values','filePath','Error\x20handling\x20trace\x20file\x20paths:\x20','8lLiXJa','IViFk','4321161vOxuKQ','tests','.json','1925020clRTCb','appendFileSync','getDirPath','uJmrs','toString','iyxbE','rMFcC','COHbo','setAccessibilityPlatformValidation','stringify','oPaUU','236490Lrweif','.txt','appendToTracePaths'];a42_0x459b=function(){return _0x12e55a;};return a42_0x459b();}const fs=require('fs'),path=require(a42_0x5e8dce(0x1db)),{v4:uuidv4}=require(a42_0x5e8dce(0x1e5)),{TEMP_STORE_DIR_NAME}=require('../../../helpers/test-observability/constants'),{nestedKeyValue}=require(a42_0x5e8dce(0x1e7)),logger=require('../../../helpers/logger')['winstonLogger'],{getLogDir}=require(a42_0x5e8dce(0x1cf)),util=require(a42_0x5e8dce(0x1e6)),helper=require(a42_0x5e8dce(0x1e7));class TestDetails{static [a42_0x5e8dce(0x1ef)]={};static['setup'](){const _0x3686e1=a42_0x5e8dce;this['shutdown']();const _0x54f601={};_0x54f601[_0x3686e1(0x213)]=!![],fs[_0x3686e1(0x1cd)](this[_0x3686e1(0x1f3)](),_0x54f601);const _0x304a5a={};_0x304a5a[_0x3686e1(0x213)]=!![],fs[_0x3686e1(0x1cd)](this[_0x3686e1(0x1ff)](),_0x304a5a);}static[a42_0x5e8dce(0x204)](){const _0x498fc9=a42_0x5e8dce,_0x1bf60a={};_0x1bf60a[_0x498fc9(0x1d0)]=function(_0x232eeb,_0x329c64){return _0x232eeb+_0x329c64;};const _0x51b4ca=_0x1bf60a;return _0x51b4ca[_0x498fc9(0x1d0)](_0x51b4ca[_0x498fc9(0x1d0)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x498fc9(0x1e2)]);}static[a42_0x5e8dce(0x1d6)](){const _0x247108=a42_0x5e8dce,_0x25152d={'PFXUB':function(_0x42ba30){return _0x42ba30();},'qLuaH':function(_0x483725,_0x51ee55){return _0x483725+_0x51ee55;},'axhFs':_0x247108(0x201)};return path[_0x247108(0x21d)](_0x25152d['PFXUB'](getLogDir),_0x25152d[_0x247108(0x20b)](_0x25152d['qLuaH'](TEMP_STORE_DIR_NAME,'-'),process[_0x247108(0x212)][_0x247108(0x1e2)]||_0x25152d['axhFs']));}static['getTraceZipDir'](){const _0x4a8692=a42_0x5e8dce,_0x5aada2={};_0x5aada2[_0x4a8692(0x1f7)]=_0x4a8692(0x1d2);const _0x903424=_0x5aada2;return path[_0x4a8692(0x21d)](this[_0x4a8692(0x1d6)](),_0x903424['rMFcC']);}static['getDirPath'](){const _0x2029fb=a42_0x5e8dce,_0x409460={'TZLCX':function(_0x812872){return _0x812872();}};return path['join'](_0x409460[_0x2029fb(0x1d7)](getLogDir),TestDetails[_0x2029fb(0x204)]());}static[a42_0x5e8dce(0x1e0)](_0x11e98c){const _0x420540=a42_0x5e8dce,_0x7c1b08={};_0x7c1b08[_0x420540(0x207)]=function(_0x15a9b2,_0x3e086d){return _0x15a9b2+_0x3e086d;},_0x7c1b08[_0x420540(0x1df)]=_0x420540(0x1f0);const _0x1bad30=_0x7c1b08;return path[_0x420540(0x21d)](this['getDirPath'](),_0x1bad30[_0x420540(0x207)](_0x11e98c,_0x1bad30[_0x420540(0x1df)]));}static[a42_0x5e8dce(0x21c)](_0x49799c){const _0x42443d=a42_0x5e8dce,_0x8f5e5c={};_0x8f5e5c['IViFk']=function(_0x53294c,_0x387901){return _0x53294c+_0x387901;},_0x8f5e5c[_0x42443d(0x1e3)]=function(_0x36ee7d,_0x51c6ae){return _0x36ee7d+_0x51c6ae;};const _0x56f792=_0x8f5e5c;return _0x56f792[_0x42443d(0x1ed)](_0x56f792[_0x42443d(0x1ed)](_0x56f792[_0x42443d(0x1ed)](_0x56f792[_0x42443d(0x1e3)](this[_0x42443d(0x205)](_0x49799c),'-'),this[_0x42443d(0x220)](_0x49799c)),'-'),_0x49799c[_0x42443d(0x21e)]);}static[a42_0x5e8dce(0x205)](_0x53540d){const _0x14f20f=a42_0x5e8dce,_0x29de3d={'oPaUU':function(_0x54d565,_0x40b00f,_0x4ae46a){return _0x54d565(_0x40b00f,_0x4ae46a);},'ZxDtH':_0x14f20f(0x1d8),'VDRjm':'_projectId','AvREC':_0x14f20f(0x203),'AupCa':_0x14f20f(0x215)};return _0x29de3d[_0x14f20f(0x1fb)](nestedKeyValue,_0x53540d,[_0x29de3d['ZxDtH'],_0x29de3d[_0x14f20f(0x200)]])||_0x29de3d[_0x14f20f(0x1fb)](nestedKeyValue,_0x53540d,[_0x29de3d[_0x14f20f(0x1e4)],_0x29de3d['AupCa']]);}static[a42_0x5e8dce(0x220)](_0x9049d5){const _0x5bf054=a42_0x5e8dce,_0xcf401a={'KZGra':function(_0x152623,_0x2914ec,_0x3aff41){return _0x152623(_0x2914ec,_0x3aff41);},'PLcFG':'_test'};return _0xcf401a[_0x5bf054(0x1da)](nestedKeyValue,_0x9049d5,[_0xcf401a[_0x5bf054(0x20a)],'id'])||_0x9049d5['testId'];}static['getTestUUID'](_0x57a34f){const _0x2d6982=a42_0x5e8dce,_0x51712b={'iyxbE':function(_0x1feeed,_0x5e8450){return _0x1feeed===_0x5e8450;},'uJmrs':_0x2d6982(0x20e),'COHbo':function(_0x42bbeb){return _0x42bbeb();}};if(this['tests'][_0x57a34f]&&_0x51712b[_0x2d6982(0x1f6)](typeof this[_0x2d6982(0x1ef)][_0x57a34f]['uuid'],_0x51712b[_0x2d6982(0x1f4)]))return this[_0x2d6982(0x1ef)][_0x57a34f]['uuid'];const _0x43777b=this[_0x2d6982(0x1e0)](_0x57a34f);if(_0x43777b&&fs[_0x2d6982(0x1e1)](_0x43777b)){const _0x46c01f=JSON['parse'](fs[_0x2d6982(0x216)](_0x43777b)[_0x2d6982(0x1f5)]());return this[_0x2d6982(0x1ef)][_0x57a34f]=_0x46c01f,this[_0x2d6982(0x1ef)][_0x57a34f]['uuid'];}return this[_0x2d6982(0x1ef)][_0x57a34f]={'uuid':_0x51712b[_0x2d6982(0x1f8)](uuidv4)},fs[_0x2d6982(0x20f)](_0x43777b,JSON[_0x2d6982(0x1fa)](this[_0x2d6982(0x1ef)][_0x57a34f])),this['tests'][_0x57a34f][_0x2d6982(0x1e5)];}static['getAccessibilityPlatformValidation'](_0x40b855){const _0x281512=a42_0x5e8dce,_0x3a8525=path[_0x281512(0x21d)](this[_0x281512(0x1f3)](),_0x40b855+'_platformDetails.json');if(_0x3a8525&&fs['existsSync'](_0x3a8525))return fs[_0x281512(0x216)](_0x3a8525)[_0x281512(0x1f5)]();}static[a42_0x5e8dce(0x1f9)](_0xcd6cc9,_0x171372){const _0x3a0d57=a42_0x5e8dce,_0x4bf8f4=path[_0x3a0d57(0x21d)](this[_0x3a0d57(0x1f3)](),_0x171372+'_platformDetails.json');fs[_0x3a0d57(0x20f)](_0x4bf8f4,_0xcd6cc9[_0x3a0d57(0x1f5)]());}static[a42_0x5e8dce(0x20d)](){const _0xc221e8=a42_0x5e8dce,_0x1c189b={};_0x1c189b['recursive']=!![],_0x1c189b[_0xc221e8(0x1cc)]=!![],fs[_0xc221e8(0x209)](this['getDirPath'](),_0x1c189b);}static[a42_0x5e8dce(0x218)](_0x57777){const _0x21866f=a42_0x5e8dce;if(this[_0x21866f(0x1ef)][_0x57777])return this['tests'][_0x57777];const _0x32504c=this[_0x21866f(0x1e0)](_0x57777);if(_0x32504c&&fs[_0x21866f(0x1e1)](_0x32504c)){const _0x45f6ec=JSON[_0x21866f(0x21f)](fs[_0x21866f(0x216)](_0x32504c)[_0x21866f(0x1f5)]());return this[_0x21866f(0x1ef)][_0x57777]=_0x45f6ec,_0x45f6ec;}return{};}static['setTestDetails'](_0x41e87f,_0x94f4e0){const _0x123ec1=a42_0x5e8dce,_0x258372=this[_0x123ec1(0x1e0)](_0x41e87f);if(_0x258372&&fs[_0x123ec1(0x1e1)](_0x258372)){const _0x4c6056=JSON[_0x123ec1(0x21f)](fs[_0x123ec1(0x216)](_0x258372)['toString']()),_0x3b840b={..._0x4c6056,..._0x94f4e0};this['tests'][_0x41e87f]=_0x3b840b;}else this[_0x123ec1(0x1ef)][_0x41e87f]=_0x94f4e0;fs['writeFileSync'](_0x258372,this[_0x123ec1(0x1ef)][_0x41e87f]);}static['addTraceFilePath'](_0x566f94){const _0x5b23cf=a42_0x5e8dce,_0x213606={};_0x213606[_0x5b23cf(0x1de)]=_0x5b23cf(0x1eb);const _0x1afe09=_0x213606;try{const _0x4abbd9=process['pid'],_0x1b12a7=path[_0x5b23cf(0x21d)](TestDetails[_0x5b23cf(0x1ff)](),_0x4abbd9+_0x5b23cf(0x1e8));let _0x4ec3c3=[];_0x1b12a7&&fs['existsSync'](_0x1b12a7)&&(_0x4ec3c3=JSON[_0x5b23cf(0x21f)](fs[_0x5b23cf(0x216)](_0x1b12a7)[_0x5b23cf(0x1f5)]())),!_0x4ec3c3[_0x5b23cf(0x1d5)](_0x383db1=>_0x383db1[_0x5b23cf(0x1ea)]===_0x566f94[_0x5b23cf(0x1ea)])&&(_0x4ec3c3[_0x5b23cf(0x210)](_0x566f94),fs[_0x5b23cf(0x20f)](_0x1b12a7,JSON[_0x5b23cf(0x1fa)](_0x4ec3c3)));}catch(_0x590063){logger[_0x5b23cf(0x206)](_0x1afe09[_0x5b23cf(0x1de)],_0x590063);}}static[a42_0x5e8dce(0x1ce)](){const _0x344c3d=a42_0x5e8dce,_0x3f866a={};_0x3f866a['RpMHd']='_traceZipPaths.json',_0x3f866a[_0x344c3d(0x1d9)]=_0x344c3d(0x1dd);const _0x3be03c=_0x3f866a,_0x197ec2=[];try{const _0x72680d=TestDetails[_0x344c3d(0x1ff)]();if(_0x72680d&&!fs['existsSync'](_0x72680d))return _0x197ec2;const _0x6e1bcf=fs['readdirSync'](_0x72680d);_0x6e1bcf['forEach'](_0x3a3cfe=>{const _0x3f4d35=_0x344c3d;if(_0x3a3cfe&&_0x3a3cfe['endsWith'](_0x3be03c[_0x3f4d35(0x211)])){const _0x3df914=JSON[_0x3f4d35(0x21f)](fs['readFileSync'](path[_0x3f4d35(0x21d)](_0x72680d,_0x3a3cfe))[_0x3f4d35(0x1f5)]());_0x197ec2[_0x3f4d35(0x210)](..._0x3df914);}});}catch(_0x76de0d){logger[_0x344c3d(0x206)](util[_0x344c3d(0x21a)](_0x3be03c[_0x344c3d(0x1d9)],_0x76de0d));}const _0x20287a={};return _0x197ec2[_0x344c3d(0x1d3)](_0xcdddfa=>{const _0x12879a=_0x344c3d;_0x20287a[_0xcdddfa[_0x12879a(0x1ea)]]=_0xcdddfa;}),Object[_0x344c3d(0x1e9)](_0x20287a);}static[a42_0x5e8dce(0x1fe)](_0x47d1f8,_0x45a0cd){const _0x1a9c8f=a42_0x5e8dce,_0xba29f6={};_0xba29f6['VFkhK']='.browserstack',_0xba29f6[_0x1a9c8f(0x1dc)]=_0x1a9c8f(0x217);const _0x4fa243=_0xba29f6;try{const _0x2d9074=path['join'](helper[_0x1a9c8f(0x21b)](),_0x4fa243['VFkhK']);if(!fs['existsSync'](_0x2d9074)){const _0x2f31a3={};_0x2f31a3[_0x1a9c8f(0x213)]=!![],fs[_0x1a9c8f(0x1cd)](_0x2d9074,_0x2f31a3);}fs[_0x1a9c8f(0x1f2)](path[_0x1a9c8f(0x21d)](_0x2d9074,'trace_'+_0x45a0cd+_0x1a9c8f(0x1fd)),_0x47d1f8+'\x0a',_0x4fa243['YqYoq']);}catch(_0x4b04de){console[_0x1a9c8f(0x206)]('Error\x20writing\x20trace\x20file:\x20'+_0x4b04de[_0x1a9c8f(0x20c)]);}}}module[a42_0x5e8dce(0x1d1)]=TestDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a43_0x13c4(){const _0x3f343b=['browserstack','browserstack.com','vtpFd','util','uTzSu','fqmSA','local_grid','url','cloudProvider','259617NpYmFE','CTXHA','eCWxS','client','XgrPY','gZXFV','ygyCI','sessionId','platform_version','LLFcH','browser_version','caps','zvQqY','chrome','format','isRemote','defineProperty','__driver','yCagq','browser','uUZpS','connectOptions','AWLRr','../utils/constants','toString','PqMVn','_type','_browserType','Error\x20in\x20importing\x20connection\x20','patch','function','Connection','./accessibility-helper','sessionError','exports','ZOPdg','dispatch','DBpeB','setupBrowserDetails','_defaultConnectOptions','wYTII','4MiaMWD','337030ZYhGFp','../../helpers/test-observability/utils','2DwxtdP','195238cTmCSO','11JQFBGi','CbYZb','../../helpers/helper','../../helpers/accessibility-automation/scripts','RQWfC','YGZLx','bsParams','parse','playwright-','2835YSxtan','product','platform','CRConnection','MDfxg','ATS_WSS_URL_REGEX','browserName','_onMessage','Gtxoo','deviceModel','1592RkYdim','assign','jnvcE','hPOfo','bStackParams','patchCRConnection','unknown_grid','use','dajhy','uegcj','params','platformVersion','__workerDetails','TMxiY','1300790SMKldM','lhSTe','RExcm','wsEndpoint','browserstack-ats.com','jfbMS','nkGGk','_name','nUyof','JxCKk','../../helpers/test-observability/error-handler','safari','RZlxe','join','shouldWrapCommand','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','HOEtb','project','lib','testInfo','YBfPm','bsSessionId','_connection','performScan','includes','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','GSOyh','hDbQE','Page','858756GpSwrX','UZeSM','Performing\x20scan\x20for\x20','currentTest','channel','Setting\x20session\x20id\x20received\x20from\x20BS\x20','getDetails','test','pwPage','ZXiNE','XTNUo','Error\x20in\x20importing\x20crConnection','XrAmq','currentSessionDetails','accessibilityPlatform','model','prototype','path','HJorr','titlePath','patchConnection','GnjZn','ffHjq','bstackPerformA11yScan','winstonLogger','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','1281042BjvddT','Error\x20in\x20finding\x20platform\x20details\x20','../../helpers/accessibility-automation/helper','sendMessageToServer','../../helpers/logger','HZTyo','apply','platformName','server','lkSET','query','LopfZ','Failed\x20to\x20perform\x20scan\x20','GTrJU','debug','firefox','NajDR','capabilities','platformDetails','RGVaz'];a43_0x13c4=function(){return _0x3f343b;};return a43_0x13c4();}function a43_0x5eab(_0x32671b,_0x2b5542){const _0x13c495=a43_0x13c4();return a43_0x5eab=function(_0x5eab39,_0x558554){_0x5eab39=_0x5eab39-0x156;let _0x591a04=_0x13c495[_0x5eab39];return _0x591a04;},a43_0x5eab(_0x32671b,_0x2b5542);}const a43_0x5304dd=a43_0x5eab;(function(_0x3be4c8,_0x4ce35d){const _0x4b9434=a43_0x5eab,_0x1b5508=_0x3be4c8();while(!![]){try{const _0x2058b6=parseInt(_0x4b9434(0x198))/0x1*(-parseInt(_0x4b9434(0x199))/0x2)+-parseInt(_0x4b9434(0x16c))/0x3+-parseInt(_0x4b9434(0x195))/0x4*(parseInt(_0x4b9434(0x196))/0x5)+parseInt(_0x4b9434(0x1d8))/0x6+parseInt(_0x4b9434(0x1a3))/0x7*(parseInt(_0x4b9434(0x1ad))/0x8)+parseInt(_0x4b9434(0x1f2))/0x9+parseInt(_0x4b9434(0x1bb))/0xa*(parseInt(_0x4b9434(0x19a))/0xb);if(_0x2058b6===_0x4ce35d)break;else _0x1b5508['push'](_0x1b5508['shift']());}catch(_0x3d8397){_0x1b5508['push'](_0x1b5508['shift']());}}}(a43_0x13c4,0x23e0b));const path=require(a43_0x5304dd(0x1e9)),url=require(a43_0x5304dd(0x16a)),util=require(a43_0x5304dd(0x166)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule}=require(a43_0x5304dd(0x19c)),{o11yErrorHandler}=require(a43_0x5304dd(0x1c5)),{debug,getPlatformDetails}=require(a43_0x5304dd(0x197)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a43_0x5304dd(0x1f4)),logger=require(a43_0x5304dd(0x1f6))[a43_0x5304dd(0x1f0)],scripts=require(a43_0x5304dd(0x19d)),{browserStackExecuteDriver}=require('../../bin/playwright/accessibility-helper'),AccessibilityHelper=require(a43_0x5304dd(0x18c)),constants=require(a43_0x5304dd(0x183)),getBrowserNameFromChannel=_0x45bee5=>{const _0x53624d=a43_0x5304dd,_0x35f15c={};_0x35f15c['HZTyo']=_0x53624d(0x179),_0x35f15c[_0x53624d(0x1c0)]='edge',_0x35f15c['yCagq']=_0x53624d(0x15e),_0x35f15c[_0x53624d(0x1ba)]=_0x53624d(0x1c6);const _0x78836e=_0x35f15c;if(_0x45bee5[_0x53624d(0x1d3)](_0x78836e[_0x53624d(0x1f7)]))return _0x78836e['HZTyo'];if(_0x45bee5[_0x53624d(0x1d3)](_0x78836e[_0x53624d(0x1c0)]))return _0x78836e[_0x53624d(0x1c0)];if(_0x45bee5[_0x53624d(0x1d3)](_0x78836e[_0x53624d(0x17e)]))return _0x78836e['yCagq'];if(_0x45bee5['includes'](_0x78836e[_0x53624d(0x1ba)]))return _0x78836e['TMxiY'];},getBrowserFromWSEndpoint=_0x5404fd=>{const _0x713974=a43_0x5304dd,_0x1e4cb7={'AWLRr':'chrome','XrAmq':function(_0x40de20,_0x1de569){return _0x40de20(_0x1de569);}};try{const _0x26963f=url[_0x713974(0x1a1)](_0x5404fd),_0x319604=new URLSearchParams(_0x26963f[_0x713974(0x159)]),_0x7e9739=Object['fromEntries'](_0x319604['entries']()),_0x457675=JSON[_0x713974(0x1a1)](_0x7e9739[_0x713974(0x177)]);if(_0x457675&&(_0x457675['browser']||_0x457675['browserName']))return _0x457675[_0x713974(0x17f)]||_0x457675[_0x713974(0x1a9)];return _0x1e4cb7[_0x713974(0x182)];}catch(_0x273c98){_0x1e4cb7[_0x713974(0x1e4)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x273c98['toString']());}},getCloudProviderFromWsEndpoint=_0x364283=>{const _0x5a40a6=a43_0x5304dd,_0x385d2e={};_0x385d2e[_0x5a40a6(0x175)]=_0x5a40a6(0x164),_0x385d2e[_0x5a40a6(0x1d9)]=_0x5a40a6(0x1bf),_0x385d2e[_0x5a40a6(0x1b0)]=_0x5a40a6(0x163),_0x385d2e[_0x5a40a6(0x1d5)]=_0x5a40a6(0x1b3);const _0x5e9c3f=_0x385d2e;if(_0x364283['includes'](_0x5e9c3f[_0x5a40a6(0x175)])||_0x364283['includes'](_0x5e9c3f[_0x5a40a6(0x1d9)]))return _0x5e9c3f[_0x5a40a6(0x1b0)];return _0x5e9c3f[_0x5a40a6(0x1d5)];},a43_0x4ac776={};a43_0x4ac776[a43_0x5304dd(0x16b)]=undefined,a43_0x4ac776['bsSessionId']=undefined,a43_0x4ac776[a43_0x5304dd(0x17f)]=undefined,a43_0x4ac776[a43_0x5304dd(0x176)]=undefined,a43_0x4ac776[a43_0x5304dd(0x1a5)]=undefined,a43_0x4ac776[a43_0x5304dd(0x174)]=undefined,a43_0x4ac776['product']=undefined,a43_0x4ac776['capabilities']={};class PlaywrightSessionDetails{static ['currentSessionDetails']=a43_0x4ac776;constructor(){const _0x430000=a43_0x5304dd,_0x1f38e3={};_0x1f38e3[_0x430000(0x1cf)]=_0x430000(0x1ca);const _0x33d987=_0x1f38e3;throw new Error(_0x33d987['YBfPm']);}static [a43_0x5304dd(0x18d)]=null;static[a43_0x5304dd(0x192)](_0x14fed3,_0x1d272b,_0x21c6c6=null){const _0x3ec0be=a43_0x5304dd,_0x4a0ef5={'XTNUo':function(_0x5bed36,_0xf8d08b){return _0x5bed36===_0xf8d08b;},'eFaYi':_0x3ec0be(0x18a),'hDbQE':'Browser\x20is\x20not\x20defined\x20or\x20not\x20available','uTzSu':'Device\x20Model\x20is\x20not\x20available','OUoLY':_0x3ec0be(0x169),'nUyof':function(_0x1e6953,_0x19c1b0,_0xcf73b4){return _0x1e6953(_0x19c1b0,_0xcf73b4);},'ffHjq':_0x3ec0be(0x187),'EqIFd':_0x3ec0be(0x193),'GxHbz':function(_0x13ad3a,_0x37b77f,_0x1797d0){return _0x13ad3a(_0x37b77f,_0x1797d0);},'PqMVn':_0x3ec0be(0x1cc),'JxCKk':_0x3ec0be(0x1b4),'MDfxg':_0x3ec0be(0x181),'dajhy':function(_0x50d2c0,_0x538576){return _0x50d2c0(_0x538576);},'eCWxS':function(_0x200288,_0x3c4267){return _0x200288===_0x3c4267;},'KMAkl':'browserstack','FYLKe':'turboscale','Gtxoo':'automate','RGVaz':function(_0x3799d0,_0x44ef78){return _0x3799d0(_0x44ef78);},'VIdqR':function(_0x24c8c5,_0x4cad84){return _0x24c8c5+_0x4cad84;},'ygyCI':_0x3ec0be(0x1a2),'vtpFd':function(_0x193f27){return _0x193f27();},'lhSTe':function(_0x2131b9,_0x363f06,_0x350c40){return _0x2131b9(_0x363f06,_0x350c40);},'zvQqY':_0x3ec0be(0x192)},_0x158cdc=this;return _0x4a0ef5[_0x3ec0be(0x1bc)](o11yErrorHandler,async function _0x297cc8(_0x5c63b8,_0x32c41a,_0x6327aa=null){const _0x47facd=_0x3ec0be;let _0x574a22=_0x5c63b8[_0x47facd(0x1c2)],_0x343ea3=null;_0x5c63b8&&_0x4a0ef5[_0x47facd(0x1e2)](typeof _0x5c63b8['version'],_0x4a0ef5['eFaYi'])?_0x343ea3=_0x5c63b8['version']():logger[_0x47facd(0x15d)](_0x4a0ef5[_0x47facd(0x1d6)]);let _0x39f698=null;_0x5c63b8&&_0x4a0ef5[_0x47facd(0x1e2)](typeof _0x5c63b8[_0x47facd(0x1e7)],_0x4a0ef5['eFaYi'])?_0x39f698=_0x5c63b8[_0x47facd(0x1e7)]():logger[_0x47facd(0x15d)](_0x4a0ef5[_0x47facd(0x167)]);let _0x21137a=null,_0x1aed66=null,_0x58c2f4=null,_0x42d0f6=_0x4a0ef5['OUoLY'];if(_0x5c63b8[_0x47facd(0x1d1)][_0x47facd(0x17b)]()||global[_0x47facd(0x1e6)]){let _0x23c914=null;_0x4a0ef5[_0x47facd(0x1c3)](nestedKeyValue,_0x5c63b8,[_0x4a0ef5[_0x47facd(0x1ee)],_0x4a0ef5['EqIFd']])?_0x23c914=_0x5c63b8['_browserType'][_0x47facd(0x193)]:_0x23c914=_0x4a0ef5['GxHbz'](nestedKeyValue,_0x32c41a,[_0x4a0ef5[_0x47facd(0x185)],_0x4a0ef5[_0x47facd(0x1c4)],_0x4a0ef5[_0x47facd(0x1a7)]]);const _0x172a22=_0x6327aa||_0x23c914&&_0x23c914[_0x47facd(0x1be)];_0x172a22&&(_0x42d0f6=_0x4a0ef5[_0x47facd(0x1b5)](getCloudProviderFromWsEndpoint,_0x172a22),_0x4a0ef5[_0x47facd(0x16e)](_0x42d0f6,_0x4a0ef5['KMAkl'])&&(_0x58c2f4=constants[_0x47facd(0x1a8)][_0x47facd(0x1df)](_0x172a22)?_0x4a0ef5['FYLKe']:_0x4a0ef5[_0x47facd(0x1ab)],_0x574a22=_0x4a0ef5[_0x47facd(0x162)](getBrowserFromWSEndpoint,_0x172a22)||_0x574a22,_0x21137a=_0x158cdc[_0x47facd(0x1e5)][_0x47facd(0x1a5)],_0x1aed66=_0x158cdc[_0x47facd(0x1e5)][_0x47facd(0x174)]));}else{_0x32c41a&&_0x32c41a['project'][_0x47facd(0x1b4)][_0x47facd(0x1dc)]?_0x574a22=_0x4a0ef5[_0x47facd(0x162)](getBrowserNameFromChannel,_0x32c41a['project'][_0x47facd(0x1b4)][_0x47facd(0x1dc)]):_0x574a22=_0x4a0ef5['VIdqR'](_0x4a0ef5[_0x47facd(0x172)],_0x574a22['toLowerCase']());const _0x23e6fe=await _0x4a0ef5[_0x47facd(0x165)](getPlatformDetails);_0x21137a=_0x23e6fe[_0x47facd(0x156)],_0x1aed66=_0x23e6fe['platformVersion'];}const _0x4faa46={};_0x4faa46[_0x47facd(0x17f)]=_0x574a22,_0x4faa46[_0x47facd(0x176)]=_0x343ea3,_0x4faa46[_0x47facd(0x160)]={},_0x4faa46[_0x47facd(0x1a5)]=_0x21137a,_0x4faa46[_0x47facd(0x174)]=_0x1aed66,_0x4faa46[_0x47facd(0x1a4)]=_0x58c2f4;const _0xb8505a=_0x4faa46;_0x39f698&&(_0xb8505a['capabilities'][_0x47facd(0x1ac)]=_0x39f698);const _0x315262={};_0x315262['cloudProvider']=_0x42d0f6,_0x158cdc[_0x47facd(0x1e5)]=Object[_0x47facd(0x1ae)]({},_0x158cdc[_0x47facd(0x1e5)],_0x315262,_0xb8505a);},_0x4a0ef5[_0x3ec0be(0x178)])(_0x14fed3,_0x1d272b,_0x21c6c6);}static[a43_0x5304dd(0x189)](){const _0x193888=a43_0x5304dd;this['patchConnection'](),this[_0x193888(0x1b2)]();}static[a43_0x5304dd(0x1ec)](){const _0x37a5bf=a43_0x5304dd,_0x45aca9={'jnvcE':function(_0xabb400,_0x1a21a8,_0x4d03c5){return _0xabb400(_0x1a21a8,_0x4d03c5);},'lkXPA':_0x37a5bf(0x1db),'HOEtb':_0x37a5bf(0x1ce),'uegcj':_0x37a5bf(0x1eb),'ZXiNE':function(_0x1b50f9,_0x30b88f,_0x3237ad){return _0x1b50f9(_0x30b88f,_0x3237ad);},'KbDZr':'__workerDetails','HJorr':_0x37a5bf(0x1e0),'NajDR':function(_0x357e76,_0x39b4fc){return _0x357e76===_0x39b4fc;},'gDrWY':_0x37a5bf(0x1d7),'RZlxe':function(_0xa75e7,_0x5e5913,_0x37ba30,_0x3b29c5){return _0xa75e7(_0x5e5913,_0x37ba30,_0x3b29c5);},'LopfZ':function(_0x4fbb6d,_0x160753){return _0x4fbb6d(_0x160753);},'GTrJU':'lib','ZOPdg':_0x37a5bf(0x16f),'yfZGF':'connection.js','EAXgT':function(_0x5c73a5,_0x3b5776){return _0x5c73a5(_0x3b5776);},'mASIK':function(_0x13fed7,_0x4b1b35){return _0x13fed7(_0x4b1b35);},'lkSET':'Not\x20able\x20to\x20import\x20Connection','fqmSA':function(_0x23073d,_0x1f9534){return _0x23073d(_0x1f9534);},'dBAjG':function(_0xbe14f7,_0x3533e8){return _0xbe14f7!=_0x3533e8;},'cEHya':function(_0x3d1be0){return _0x3d1be0();},'DBpeB':'sendMessageToServer','UtcUP':function(_0x206ebe,_0x19c969){return _0x206ebe(_0x19c969);},'GnjZn':_0x37a5bf(0x190),'gZXFV':function(_0x6dc550,_0x200190){return _0x6dc550(_0x200190);}},_0x4d5dc7=this;if(!this['Connection'])try{const _0x26bb19=path[_0x37a5bf(0x1c8)](_0x45aca9[_0x37a5bf(0x15c)],_0x45aca9[_0x37a5bf(0x18f)],_0x45aca9['yfZGF']),_0x3d10f6=_0x45aca9['EAXgT'](importFileFromPWCore,_0x26bb19);!_0x3d10f6?_0x45aca9['mASIK'](debug,_0x45aca9[_0x37a5bf(0x158)]):this[_0x37a5bf(0x18b)]=_0x3d10f6[_0x37a5bf(0x18b)];}catch(_0x95e73a){_0x45aca9[_0x37a5bf(0x168)](debug,_0x37a5bf(0x188)+_0x95e73a[_0x37a5bf(0x184)]());}const _0x2c1198=this[_0x37a5bf(0x18b)];try{if(_0x45aca9['dBAjG'](_0x2c1198,null)){const _0x444465=_0x2c1198[_0x37a5bf(0x1e8)]['dispatch'],_0x2fa367=_0x2c1198['prototype'][_0x37a5bf(0x1f5)];_0x45aca9['cEHya'](isAccessibilityAutomationSession)&&Object[_0x37a5bf(0x17c)](_0x2c1198[_0x37a5bf(0x1e8)],_0x45aca9[_0x37a5bf(0x191)],{'get':function(){return async function(){const _0x1aee06=a43_0x5eab;try{if(!global[_0x1aee06(0x1ef)]&&global['accessibilityPlatform']&&_0x45aca9[_0x1aee06(0x1af)](nestedKeyValue,global[_0x1aee06(0x1b9)],[_0x45aca9['lkXPA'],_0x45aca9[_0x1aee06(0x1cb)],_0x45aca9[_0x1aee06(0x1b6)]])&&_0x45aca9['jnvcE'](shouldScanTestForAccessibility,global[_0x1aee06(0x1b9)][_0x1aee06(0x1db)]['testInfo'][_0x1aee06(0x1eb)],!![])&&scripts[_0x1aee06(0x1c9)](arguments[0x1])){logger['debug'](_0x1aee06(0x1da)+arguments[0x1]),global[_0x1aee06(0x1ef)]=!![];const _0x2f259f=_0x45aca9[_0x1aee06(0x1e1)](nestedKeyValue,global,[_0x45aca9['KbDZr'],_0x45aca9[_0x1aee06(0x1ea)]]),_0x9cdba1={};_0x9cdba1['method']=arguments[0x1],_0x2f259f&&logger[_0x1aee06(0x15d)](util[_0x1aee06(0x17a)](await AccessibilityHelper[_0x1aee06(0x1d2)](_0x2f259f,_0x9cdba1)));if(_0x45aca9[_0x1aee06(0x15f)](arguments[0x0][_0x1aee06(0x186)],_0x45aca9['gDrWY'])&&global['__driver']){const _0x1d6cda={};_0x1d6cda['method']=arguments[0x1],await _0x45aca9[_0x1aee06(0x1c7)](browserStackExecuteDriver,global[_0x1aee06(0x17d)],scripts[_0x1aee06(0x1d2)],_0x1d6cda);}}}catch(_0x595dc0){logger[_0x1aee06(0x15d)](_0x1aee06(0x15b)+util[_0x1aee06(0x17a)](_0x595dc0));}return global[_0x1aee06(0x1ef)]=![],_0x2fa367[_0x1aee06(0x1f8)](this,arguments);};}}),!_0x45aca9['UtcUP'](isFalse,process['env']['BROWSERSTACK_TEST_OBSERVABILITY'])&&Object['defineProperty'](_0x2c1198[_0x37a5bf(0x1e8)],_0x45aca9[_0x37a5bf(0x1ed)],{'get':function(){return function _0x2323b0(_0x31a101){const _0x336402=a43_0x5eab,_0x205d1c=_0x31a101&&_0x31a101['params']&&_0x31a101[_0x336402(0x1b7)][_0x336402(0x1a0)];if(_0x205d1c){const _0x20d72e=_0x205d1c[_0x336402(0x173)],_0x131e1d=_0x205d1c[_0x336402(0x161)];_0x131e1d&&(_0x45aca9[_0x336402(0x15a)](debug,_0x336402(0x1d4)+_0x131e1d['toString']()),_0x4d5dc7['currentSessionDetails']['platform']=_0x131e1d['platformName'],_0x4d5dc7['currentSessionDetails'][_0x336402(0x174)]=_0x131e1d[_0x336402(0x1b8)]),_0x20d72e&&(_0x45aca9[_0x336402(0x15a)](debug,_0x336402(0x1dd)+_0x20d72e),_0x4d5dc7[_0x336402(0x1e5)][_0x336402(0x1d0)]=_0x20d72e);}return _0x444465['apply'](this,arguments);};}});}}catch(_0x2d5ddb){_0x45aca9[_0x37a5bf(0x171)](debug,'Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20'+_0x2d5ddb),_0x4d5dc7['sessionError']=_0x2d5ddb[_0x37a5bf(0x184)]();}}static[a43_0x5304dd(0x1b2)](){const _0x9fa627=a43_0x5304dd,_0x57834a={'XgrPY':function(_0xb0a625,_0x382606){return _0xb0a625(_0x382606);},'CTXHA':function(_0x3a4395,_0x22152f){return _0x3a4395(_0x22152f);},'dbRiK':function(_0x1b61d2){return _0x1b61d2();},'RQWfC':_0x9fa627(0x1cd),'nkGGk':_0x9fa627(0x157),'CbYZb':'chromium','YGZLx':'crConnection.js','sitHD':function(_0x25756e,_0x42e1ba){return _0x25756e(_0x42e1ba);},'wYTII':function(_0x303a2c,_0x15b785){return _0x303a2c(_0x15b785);},'RExcm':'Not\x20able\x20to\x20import\x20crConnection','ySYcN':_0x9fa627(0x1e3),'uUZpS':function(_0x5e4934,_0x503a59){return _0x5e4934!=_0x503a59;},'LfxDx':_0x9fa627(0x1aa)},_0x5531b2=this;if(_0x57834a['dbRiK'](isAccessibilityAutomationSession)){let _0x1efa93=null;try{const _0x1d71ad=path[_0x9fa627(0x1c8)](_0x57834a[_0x9fa627(0x19e)],_0x57834a[_0x9fa627(0x1c1)],_0x57834a[_0x9fa627(0x19b)],_0x57834a[_0x9fa627(0x19f)]),_0x1b199c=_0x57834a['sitHD'](importFileFromPWCore,_0x1d71ad);!_0x1b199c?_0x57834a[_0x9fa627(0x194)](debug,_0x57834a[_0x9fa627(0x1bd)]):_0x1efa93=_0x1b199c[_0x9fa627(0x1a6)];}catch(_0x186b33){_0x57834a[_0x9fa627(0x16d)](debug,_0x57834a['ySYcN']);}try{if(_0x57834a[_0x9fa627(0x180)](_0x1efa93,null)){const _0x30a2f2=_0x1efa93['prototype'][_0x9fa627(0x1aa)];Object[_0x9fa627(0x17c)](_0x1efa93[_0x9fa627(0x1e8)],_0x57834a['LfxDx'],{'get':function(){return function _0x317e63(_0x223902){const _0x1aeef7=a43_0x5eab;try{const _0x5c5d6a=_0x223902['bStackParams'];if(_0x5c5d6a){delete _0x223902[_0x1aeef7(0x1b1)];const _0x298a0f=_0x5c5d6a[_0x1aeef7(0x173)],_0x5d430d=_0x5c5d6a[_0x1aeef7(0x161)];_0x5d430d&&(_0x57834a[_0x1aeef7(0x170)](debug,_0x1aeef7(0x1f1)+_0x5d430d[_0x1aeef7(0x184)]()),_0x5531b2['currentSessionDetails'][_0x1aeef7(0x1a5)]=_0x5d430d['platformName'],_0x5531b2['currentSessionDetails'][_0x1aeef7(0x174)]=_0x5d430d[_0x1aeef7(0x1b8)]),_0x298a0f&&(_0x57834a[_0x1aeef7(0x16d)](debug,'Setting\x20session\x20id\x20received\x20from\x20browserstack\x20'+_0x298a0f),_0x5531b2[_0x1aeef7(0x1e5)][_0x1aeef7(0x1d0)]=_0x298a0f);}}catch(_0x38ae85){_0x57834a[_0x1aeef7(0x16d)](debug,_0x1aeef7(0x1f3)+_0x38ae85[_0x1aeef7(0x184)]());}return _0x30a2f2[_0x1aeef7(0x1f8)](this,arguments);};}});}}catch(_0x1bff31){_0x57834a[_0x9fa627(0x16d)](debug,'Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20'+_0x1bff31),_0x5531b2['sessionError']=_0x1bff31[_0x9fa627(0x184)]();}}}static[a43_0x5304dd(0x1de)](){const _0x23cac5=a43_0x5304dd;return this[_0x23cac5(0x1e5)];}}module[a43_0x5304dd(0x18e)]=PlaywrightSessionDetails;
|
|
1
|
+
const a43_0x8f5ebf=a43_0x30a8;(function(_0x399eaf,_0x92a07){const _0xa70151=a43_0x30a8,_0x46b415=_0x399eaf();while(!![]){try{const _0x201850=parseInt(_0xa70151(0x1c0))/0x1*(-parseInt(_0xa70151(0x1dd))/0x2)+-parseInt(_0xa70151(0x1b4))/0x3+parseInt(_0xa70151(0x207))/0x4+parseInt(_0xa70151(0x1c5))/0x5+parseInt(_0xa70151(0x22f))/0x6+-parseInt(_0xa70151(0x233))/0x7+parseInt(_0xa70151(0x217))/0x8*(parseInt(_0xa70151(0x1e0))/0x9);if(_0x201850===_0x92a07)break;else _0x46b415['push'](_0x46b415['shift']());}catch(_0x43be25){_0x46b415['push'](_0x46b415['shift']());}}}(a43_0x51a9,0xd7ec0));function a43_0x30a8(_0x5c99f4,_0x1cc5cf){const _0x51a9ad=a43_0x51a9();return a43_0x30a8=function(_0x30a810,_0x3a4cb9){_0x30a810=_0x30a810-0x180;let _0x81d6fd=_0x51a9ad[_0x30a810];return _0x81d6fd;},a43_0x30a8(_0x5c99f4,_0x1cc5cf);}const path=require(a43_0x8f5ebf(0x230)),url=require('url'),util=require(a43_0x8f5ebf(0x231)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule}=require(a43_0x8f5ebf(0x182)),{o11yErrorHandler}=require(a43_0x8f5ebf(0x1c2)),{debug,getPlatformDetails}=require('../../helpers/test-observability/utils'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a43_0x8f5ebf(0x1ac)),logger=require('../../helpers/logger')[a43_0x8f5ebf(0x197)],scripts=require('../../helpers/accessibility-automation/scripts'),{browserStackExecuteDriver}=require('../../bin/playwright/accessibility-helper'),AccessibilityHelper=require('./accessibility-helper'),constants=require(a43_0x8f5ebf(0x19b)),getBrowserNameFromChannel=_0x389a99=>{const _0x525328=a43_0x8f5ebf,_0x1c0307={};_0x1c0307['FbGMf']=_0x525328(0x21c),_0x1c0307[_0x525328(0x1ee)]=_0x525328(0x185),_0x1c0307[_0x525328(0x1a2)]=_0x525328(0x1f1),_0x1c0307[_0x525328(0x186)]=_0x525328(0x1df);const _0xaccea6=_0x1c0307;if(_0x389a99[_0x525328(0x1e6)](_0xaccea6[_0x525328(0x21f)]))return _0xaccea6[_0x525328(0x21f)];if(_0x389a99['includes'](_0xaccea6[_0x525328(0x1ee)]))return _0xaccea6[_0x525328(0x1ee)];if(_0x389a99[_0x525328(0x1e6)](_0xaccea6[_0x525328(0x1a2)]))return _0xaccea6[_0x525328(0x1a2)];if(_0x389a99['includes'](_0xaccea6['GfhHH']))return _0xaccea6['GfhHH'];},getBrowserFromWSEndpoint=_0x1fdbd4=>{const _0x575990=a43_0x8f5ebf,_0x2a3bf2={'TQgjJ':'chrome','HzcWu':function(_0x13ef01,_0x431f2c){return _0x13ef01(_0x431f2c);}};try{const _0x1da431=url[_0x575990(0x1cb)](_0x1fdbd4),_0x898c20=new URLSearchParams(_0x1da431[_0x575990(0x21b)]),_0x5173f3=Object[_0x575990(0x1ca)](_0x898c20[_0x575990(0x1d7)]()),_0xcd4b79=JSON[_0x575990(0x1cb)](_0x5173f3[_0x575990(0x193)]);if(_0xcd4b79&&(_0xcd4b79['browser']||_0xcd4b79[_0x575990(0x221)]))return _0xcd4b79[_0x575990(0x20e)]||_0xcd4b79[_0x575990(0x221)];return _0x2a3bf2[_0x575990(0x1f2)];}catch(_0x2d4ab6){_0x2a3bf2[_0x575990(0x194)](debug,_0x575990(0x1a7)+_0x2d4ab6['toString']());}},getCloudProviderFromWsEndpoint=_0x46e016=>{const _0x2274e8=a43_0x8f5ebf,_0x464ecf={};_0x464ecf[_0x2274e8(0x19c)]=_0x2274e8(0x21a),_0x464ecf[_0x2274e8(0x198)]=_0x2274e8(0x232),_0x464ecf[_0x2274e8(0x20d)]=_0x2274e8(0x1be),_0x464ecf['Eejqv']='unknown_grid';const _0x2fe6ec=_0x464ecf;if(_0x46e016['includes'](_0x2fe6ec[_0x2274e8(0x19c)])||_0x46e016[_0x2274e8(0x1e6)](_0x2fe6ec[_0x2274e8(0x198)]))return _0x2fe6ec['jPqeq'];return _0x2fe6ec[_0x2274e8(0x1fd)];},a43_0x1b3896={};function a43_0x51a9(){const _0x5a06fd=['NFdcF','BROWSERSTACK_TEST_OBSERVABILITY','getDetails','eICrM','caps','HzcWu','oehZR','fTJCZ','winstonLogger','KaoVV','method','automate','../utils/constants','BGQWk','env','params','bhYhC','accessibilityPlatform','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','HlaZj','qNacY','WOyCe','model','MukXU','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','wAXkw','nEdIX','Fxsdj','pwPage','../../helpers/accessibility-automation/helper','product','shouldWrapCommand','_browserType','Not\x20able\x20to\x20import\x20Connection','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','CHUeL','Failed\x20to\x20perform\x20scan\x20','3618687IPgyzJ','Error\x20in\x20finding\x20platform\x20details\x20','sessionError','project','exports','sendMessageToServer','turboscale','UzElh','WplTQ','yXqYs','browserstack','SIKxF','5241JBwZZv','lib','../../helpers/test-observability/error-handler','niLLm','connection.js','710655OlqCUJ','gsiMA','Zfbvy','mwsps','patchConnection','fromEntries','parse','xAsTj','dispatch','DOFZn','capabilities','bdpwJ','bsParams','FegdF','client','platformName','iCTiG','platform','entries','cloudProvider','pBmkq','XFxFK','_connection','CCZmK','248TFGQWv','kmhMt','safari','1325097kWCyfe','format','ydRXV','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','xKTrE','debug','includes','oQnPZ','qogAF','test','connectOptions','server','platformVersion','sessionId','JdpgG','mGAgq','aLbTQ','firefox','TQgjJ','local_grid','Page','FBABQ','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','toLowerCase','mZXpx','bstackPerformA11yScan','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','playwright-','fqwGC','Eejqv','isRemote','prototype','SoeVS','browser_version','currentSessionDetails','Connection','JTlzk','patch','mAnul','2706652pNYVQw','PuXrt','CRConnection','VkZLv','assign','version','jPqeq','browser','function','Device\x20Model\x20is\x20not\x20available','ZDLEn','ePpcN','defineProperty','XgLMi','_defaultConnectOptions','sjWcG','152DAcdFm','use','platform_version','browserstack.com','query','chrome','jQwiI','AGhnI','FbGMf','patchCRConnection','browserName','nmRkW','lCXxv','mipGR','platformDetails','apply','ATS_WSS_URL_REGEX','vgnMF','ELLHl','wsEndpoint','TfgCO','currentTest','deviceModel','CPCLO','2161698iCavTp','path','util','browserstack-ats.com','8651825LdvAxi','Setting\x20session\x20id\x20received\x20from\x20BS\x20','qkGXo','../../helpers/helper','__workerDetails','toString','edge','GfhHH','__driver','Not\x20able\x20to\x20import\x20crConnection','jcLgu','gmAGP','bsSessionId','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','crConnection.js','JBoGk'];a43_0x51a9=function(){return _0x5a06fd;};return a43_0x51a9();}a43_0x1b3896[a43_0x8f5ebf(0x1d8)]=undefined,a43_0x1b3896[a43_0x8f5ebf(0x18b)]=undefined,a43_0x1b3896['browser']=undefined,a43_0x1b3896[a43_0x8f5ebf(0x201)]=undefined,a43_0x1b3896['platform']=undefined,a43_0x1b3896[a43_0x8f5ebf(0x219)]=undefined,a43_0x1b3896[a43_0x8f5ebf(0x1ad)]=undefined,a43_0x1b3896[a43_0x8f5ebf(0x1cf)]={};class PlaywrightSessionDetails{static ['currentSessionDetails']=a43_0x1b3896;constructor(){const _0x4e374c=a43_0x8f5ebf,_0x28786b={};_0x28786b['gsiMA']=_0x4e374c(0x1b1);const _0x94b9b7=_0x28786b;throw new Error(_0x94b9b7[_0x4e374c(0x1c6)]);}static [a43_0x8f5ebf(0x1b6)]=null;static['setupBrowserDetails'](_0x2cef99,_0xf43926,_0x3af812=null){const _0x5af609=a43_0x8f5ebf,_0x4e5256={'gPInQ':function(_0x1415e8,_0x4b59ff){return _0x1415e8===_0x4b59ff;},'kmhMt':_0x5af609(0x20f),'hmYif':_0x5af609(0x1fa),'HpOSx':function(_0x11e402,_0x2a324b){return _0x11e402===_0x2a324b;},'WOyCe':_0x5af609(0x210),'LEClC':_0x5af609(0x1f3),'DOFZn':function(_0x1c572b,_0x5bda68,_0xfbb30b){return _0x1c572b(_0x5bda68,_0xfbb30b);},'xKTrE':'_browserType','eICrM':_0x5af609(0x215),'WplTQ':function(_0xa8d163,_0x2402e5,_0x40043e){return _0xa8d163(_0x2402e5,_0x40043e);},'CPCLO':'project','mAnul':_0x5af609(0x218),'mGAgq':_0x5af609(0x1ea),'TfgCO':function(_0x2c533c,_0x27e9e3){return _0x2c533c(_0x27e9e3);},'MukXU':function(_0x170aeb,_0x4a2eef){return _0x170aeb===_0x4a2eef;},'joONc':_0x5af609(0x1be),'BjCJP':_0x5af609(0x1ba),'CCZmK':_0x5af609(0x19a),'UZpxt':function(_0x20ccc6,_0x4f54b2){return _0x20ccc6+_0x4f54b2;},'IdBZg':_0x5af609(0x1fb),'ePpcN':function(_0x4b0c8b){return _0x4b0c8b();},'JTlzk':'setupBrowserDetails'},_0x568c63=this;return _0x4e5256[_0x5af609(0x1ce)](o11yErrorHandler,async function _0x1973e4(_0x59f976,_0x5c408f,_0x137875=null){const _0x132726=_0x5af609;let _0x44ad78=_0x59f976['_name'],_0x14eea4=null;_0x59f976&&_0x4e5256['gPInQ'](typeof _0x59f976[_0x132726(0x20c)],_0x4e5256[_0x132726(0x1de)])?_0x14eea4=_0x59f976[_0x132726(0x20c)]():logger[_0x132726(0x1e5)](_0x4e5256['hmYif']);let _0x4c4d90=null;_0x59f976&&_0x4e5256['HpOSx'](typeof _0x59f976[_0x132726(0x1a5)],_0x4e5256[_0x132726(0x1de)])?_0x4c4d90=_0x59f976[_0x132726(0x1a5)]():logger[_0x132726(0x1e5)](_0x4e5256[_0x132726(0x1a4)]);let _0x35842d=null,_0x360f50=null,_0x27e4c5=null,_0x364230=_0x4e5256['LEClC'];if(_0x59f976[_0x132726(0x1db)][_0x132726(0x1fe)]()||global[_0x132726(0x1a0)]){let _0x4ceddc=null;_0x4e5256['DOFZn'](nestedKeyValue,_0x59f976,[_0x4e5256[_0x132726(0x1e4)],_0x4e5256[_0x132726(0x192)]])?_0x4ceddc=_0x59f976[_0x132726(0x1af)][_0x132726(0x215)]:_0x4ceddc=_0x4e5256[_0x132726(0x1bc)](nestedKeyValue,_0x5c408f,[_0x4e5256[_0x132726(0x22e)],_0x4e5256[_0x132726(0x206)],_0x4e5256[_0x132726(0x1ef)]]);const _0x6fd510=_0x137875||_0x4ceddc&&_0x4ceddc[_0x132726(0x22a)];_0x6fd510&&(_0x364230=_0x4e5256['TfgCO'](getCloudProviderFromWsEndpoint,_0x6fd510),_0x4e5256[_0x132726(0x1a6)](_0x364230,_0x4e5256['joONc'])&&(_0x27e4c5=constants[_0x132726(0x227)][_0x132726(0x1e9)](_0x6fd510)?_0x4e5256['BjCJP']:_0x4e5256[_0x132726(0x1dc)],_0x44ad78=_0x4e5256[_0x132726(0x22b)](getBrowserFromWSEndpoint,_0x6fd510)||_0x44ad78,_0x35842d=_0x568c63[_0x132726(0x202)][_0x132726(0x1d6)],_0x360f50=_0x568c63[_0x132726(0x202)][_0x132726(0x219)]));}else{_0x5c408f&&_0x5c408f[_0x132726(0x1b7)][_0x132726(0x218)]['channel']?_0x44ad78=_0x4e5256['TfgCO'](getBrowserNameFromChannel,_0x5c408f['project'][_0x132726(0x218)]['channel']):_0x44ad78=_0x4e5256['UZpxt'](_0x4e5256['IdBZg'],_0x44ad78[_0x132726(0x1f7)]());const _0x4263de=await _0x4e5256[_0x132726(0x212)](getPlatformDetails);_0x35842d=_0x4263de[_0x132726(0x1d4)],_0x360f50=_0x4263de[_0x132726(0x1ec)];}const _0x5de440={};_0x5de440[_0x132726(0x20e)]=_0x44ad78,_0x5de440[_0x132726(0x201)]=_0x14eea4,_0x5de440['capabilities']={},_0x5de440[_0x132726(0x1d6)]=_0x35842d,_0x5de440[_0x132726(0x219)]=_0x360f50,_0x5de440[_0x132726(0x1ad)]=_0x27e4c5;const _0x38bc6b=_0x5de440;_0x4c4d90&&(_0x38bc6b['capabilities'][_0x132726(0x22d)]=_0x4c4d90);const _0x5b2c6a={};_0x5b2c6a[_0x132726(0x1d8)]=_0x364230,_0x568c63[_0x132726(0x202)]=Object[_0x132726(0x20b)]({},_0x568c63[_0x132726(0x202)],_0x5b2c6a,_0x38bc6b);},_0x4e5256[_0x5af609(0x204)])(_0x2cef99,_0xf43926,_0x3af812);}static[a43_0x8f5ebf(0x205)](){const _0x1824f0=a43_0x8f5ebf;this[_0x1824f0(0x1c9)](),this[_0x1824f0(0x220)]();}static[a43_0x8f5ebf(0x1c9)](){const _0x2c6f1e=a43_0x8f5ebf,_0x23df9a={'pBmkq':function(_0x46f56c,_0xef8997,_0x240f67){return _0x46f56c(_0xef8997,_0x240f67);},'yXqYs':_0x2c6f1e(0x22c),'VkZLv':'testInfo','lCXxv':'titlePath','ZDLEn':function(_0xa84404,_0x30f4b9,_0x1fb14e){return _0xa84404(_0x30f4b9,_0x1fb14e);},'FegdF':_0x2c6f1e(0x183),'xAsTj':_0x2c6f1e(0x1ab),'ELLHl':function(_0x7f1e95,_0x4272b8){return _0x7f1e95===_0x4272b8;},'wAXkw':_0x2c6f1e(0x1f4),'XFxFK':function(_0x507fda,_0x48b249,_0x32d341,_0x4afdfa){return _0x507fda(_0x48b249,_0x32d341,_0x4afdfa);},'bhYhC':function(_0x7b674a,_0xae601e){return _0x7b674a(_0xae601e);},'gmAGP':function(_0xf966a9,_0x558d69){return _0xf966a9(_0x558d69);},'oehZR':_0x2c6f1e(0x1c1),'vgnMF':_0x2c6f1e(0x1d3),'CHUeL':_0x2c6f1e(0x1c4),'SHSat':function(_0x4fe677,_0x424bfb){return _0x4fe677(_0x424bfb);},'Fxsdj':function(_0x4c4355,_0x13cf6d){return _0x4c4355(_0x13cf6d);},'jQwiI':_0x2c6f1e(0x1b0),'UzElh':function(_0x352c9c,_0x197528){return _0x352c9c!=_0x197528;},'mwsps':function(_0x1055a9){return _0x1055a9();},'AGhnI':_0x2c6f1e(0x1b9),'PuXrt':function(_0x1f6507,_0x47c8ff){return _0x1f6507(_0x47c8ff);},'Bjlww':_0x2c6f1e(0x1cd),'Zfbvy':function(_0x50a17d,_0x284bf6){return _0x50a17d(_0x284bf6);}},_0xad2e6b=this;if(!this[_0x2c6f1e(0x203)])try{const _0x3a667b=path['join'](_0x23df9a[_0x2c6f1e(0x195)],_0x23df9a[_0x2c6f1e(0x228)],_0x23df9a[_0x2c6f1e(0x1b2)]),_0x51544d=_0x23df9a['SHSat'](importFileFromPWCore,_0x3a667b);!_0x51544d?_0x23df9a[_0x2c6f1e(0x1aa)](debug,_0x23df9a[_0x2c6f1e(0x21d)]):this['Connection']=_0x51544d['Connection'];}catch(_0x199c39){_0x23df9a[_0x2c6f1e(0x19f)](debug,'Error\x20in\x20importing\x20connection\x20'+_0x199c39[_0x2c6f1e(0x184)]());}const _0x4636ff=this[_0x2c6f1e(0x203)];try{if(_0x23df9a[_0x2c6f1e(0x1bb)](_0x4636ff,null)){const _0x1505ee=_0x4636ff[_0x2c6f1e(0x1ff)]['dispatch'],_0x6de287=_0x4636ff[_0x2c6f1e(0x1ff)][_0x2c6f1e(0x1b9)];_0x23df9a[_0x2c6f1e(0x1c8)](isAccessibilityAutomationSession)&&Object[_0x2c6f1e(0x213)](_0x4636ff['prototype'],_0x23df9a[_0x2c6f1e(0x21e)],{'get':function(){const _0x188103=_0x2c6f1e,_0x304d36={'qkGXo':function(_0x6650d6,_0x1a18a6,_0x4248a7){const _0x4ac639=a43_0x30a8;return _0x23df9a[_0x4ac639(0x1d9)](_0x6650d6,_0x1a18a6,_0x4248a7);},'mipGR':_0x23df9a[_0x188103(0x1bd)],'nEdIX':_0x23df9a[_0x188103(0x20a)],'aLbTQ':_0x23df9a[_0x188103(0x223)],'qogAF':function(_0x43146f,_0x2fa1cd,_0xef4e78){const _0x5a97c4=_0x188103;return _0x23df9a[_0x5a97c4(0x211)](_0x43146f,_0x2fa1cd,_0xef4e78);},'mZXpx':_0x23df9a[_0x188103(0x1d2)],'FBABQ':_0x23df9a[_0x188103(0x1cc)],'iCTiG':function(_0x48c023,_0xbbd282){const _0x590377=_0x188103;return _0x23df9a[_0x590377(0x229)](_0x48c023,_0xbbd282);},'SoeVS':_0x23df9a[_0x188103(0x1a8)],'oQnPZ':function(_0x5a3cc5,_0x39567e,_0x502a94,_0x168209){const _0x20fd54=_0x188103;return _0x23df9a[_0x20fd54(0x1da)](_0x5a3cc5,_0x39567e,_0x502a94,_0x168209);}};return async function(){const _0x34862d=_0x188103;try{if(!global[_0x34862d(0x1f9)]&&global[_0x34862d(0x1a0)]&&_0x304d36[_0x34862d(0x181)](nestedKeyValue,global[_0x34862d(0x183)],[_0x304d36[_0x34862d(0x224)],_0x304d36[_0x34862d(0x1a9)],_0x304d36[_0x34862d(0x1f0)]])&&_0x304d36[_0x34862d(0x181)](shouldScanTestForAccessibility,global[_0x34862d(0x183)][_0x34862d(0x22c)]['testInfo']['titlePath'],!![])&&scripts[_0x34862d(0x1ae)](arguments[0x1])){logger[_0x34862d(0x1e5)]('Performing\x20scan\x20for\x20'+arguments[0x1]),global[_0x34862d(0x1f9)]=!![];const _0x2cf884=_0x304d36[_0x34862d(0x1e8)](nestedKeyValue,global,[_0x304d36[_0x34862d(0x1f8)],_0x304d36[_0x34862d(0x1f5)]]),_0x81d950={};_0x81d950[_0x34862d(0x199)]=arguments[0x1],_0x2cf884&&logger[_0x34862d(0x1e5)](util[_0x34862d(0x1e1)](await AccessibilityHelper['performScan'](_0x2cf884,_0x81d950)));if(_0x304d36[_0x34862d(0x1d5)](arguments[0x0]['_type'],_0x304d36[_0x34862d(0x200)])&&global[_0x34862d(0x187)]){const _0x4bb724={};_0x4bb724[_0x34862d(0x199)]=arguments[0x1],await _0x304d36[_0x34862d(0x1e7)](browserStackExecuteDriver,global[_0x34862d(0x187)],scripts['performScan'],_0x4bb724);}}}catch(_0x1e1983){logger['debug'](_0x34862d(0x1b3)+util[_0x34862d(0x1e1)](_0x1e1983));}return global[_0x34862d(0x1f9)]=![],_0x6de287[_0x34862d(0x226)](this,arguments);};}}),!_0x23df9a[_0x2c6f1e(0x208)](isFalse,process[_0x2c6f1e(0x19d)][_0x2c6f1e(0x190)])&&Object['defineProperty'](_0x4636ff[_0x2c6f1e(0x1ff)],_0x23df9a['Bjlww'],{'get':function(){return function _0x5d778d(_0x40f620){const _0x4f6cf3=a43_0x30a8,_0x23c6a3=_0x40f620&&_0x40f620[_0x4f6cf3(0x19e)]&&_0x40f620[_0x4f6cf3(0x19e)][_0x4f6cf3(0x1d1)];if(_0x23c6a3){const _0x39080a=_0x23c6a3[_0x4f6cf3(0x1ed)],_0x4b0bef=_0x23c6a3[_0x4f6cf3(0x225)];_0x4b0bef&&(_0x23df9a[_0x4f6cf3(0x19f)](debug,_0x4f6cf3(0x1f6)+_0x4b0bef[_0x4f6cf3(0x184)]()),_0xad2e6b[_0x4f6cf3(0x202)][_0x4f6cf3(0x1d6)]=_0x4b0bef[_0x4f6cf3(0x1d4)],_0xad2e6b['currentSessionDetails'][_0x4f6cf3(0x219)]=_0x4b0bef[_0x4f6cf3(0x1ec)]),_0x39080a&&(_0x23df9a[_0x4f6cf3(0x18a)](debug,_0x4f6cf3(0x180)+_0x39080a),_0xad2e6b['currentSessionDetails'][_0x4f6cf3(0x18b)]=_0x39080a);}return _0x1505ee[_0x4f6cf3(0x226)](this,arguments);};}});}}catch(_0x855fa5){_0x23df9a[_0x2c6f1e(0x1c7)](debug,_0x2c6f1e(0x18c)+_0x855fa5),_0xad2e6b[_0x2c6f1e(0x1b6)]=_0x855fa5[_0x2c6f1e(0x184)]();}}static['patchCRConnection'](){const _0x3831f2=a43_0x8f5ebf,_0x40df36={'fqwGC':function(_0x44283b,_0x34a0a2){return _0x44283b(_0x34a0a2);},'kgips':function(_0x5e261b,_0x4461fb){return _0x5e261b(_0x4461fb);},'jcLgu':function(_0xa84edb){return _0xa84edb();},'NFdcF':_0x3831f2(0x1c1),'qNacY':_0x3831f2(0x1eb),'ydRXV':'chromium','XgLMi':_0x3831f2(0x18d),'JBoGk':function(_0x207e83,_0x4f507e){return _0x207e83(_0x4f507e);},'QopEk':_0x3831f2(0x188),'niLLm':function(_0x559a1e,_0x46b9b8){return _0x559a1e(_0x46b9b8);},'SIKxF':'Error\x20in\x20importing\x20crConnection','fTJCZ':function(_0x481ea3,_0x1783f0){return _0x481ea3!=_0x1783f0;},'pxOiE':'_onMessage','nmRkW':function(_0x5a5b43,_0x364f1e){return _0x5a5b43(_0x364f1e);}},_0x3d1569=this;if(_0x40df36[_0x3831f2(0x189)](isAccessibilityAutomationSession)){let _0x42ef28=null;try{const _0x5da292=path['join'](_0x40df36[_0x3831f2(0x18f)],_0x40df36[_0x3831f2(0x1a3)],_0x40df36[_0x3831f2(0x1e2)],_0x40df36[_0x3831f2(0x214)]),_0x359988=_0x40df36[_0x3831f2(0x18e)](importFileFromPWCore,_0x5da292);!_0x359988?_0x40df36[_0x3831f2(0x1fc)](debug,_0x40df36['QopEk']):_0x42ef28=_0x359988[_0x3831f2(0x209)];}catch(_0x7af6af){_0x40df36[_0x3831f2(0x1c3)](debug,_0x40df36[_0x3831f2(0x1bf)]);}try{if(_0x40df36[_0x3831f2(0x196)](_0x42ef28,null)){const _0x4fd62a=_0x42ef28['prototype']['_onMessage'];Object[_0x3831f2(0x213)](_0x42ef28[_0x3831f2(0x1ff)],_0x40df36['pxOiE'],{'get':function(){const _0x2c6e87={'sjWcG':function(_0x1f50b6,_0x189159){const _0x590362=a43_0x30a8;return _0x40df36[_0x590362(0x1fc)](_0x1f50b6,_0x189159);},'bdpwJ':function(_0x179340,_0x2169e8){return _0x40df36['kgips'](_0x179340,_0x2169e8);}};return function _0x5ea8aa(_0x4b431c){const _0x5e9e50=a43_0x30a8;try{const _0x87ed37=_0x4b431c['bStackParams'];if(_0x87ed37){delete _0x4b431c['bStackParams'];const _0x1fb73e=_0x87ed37[_0x5e9e50(0x1ed)],_0x40db30=_0x87ed37[_0x5e9e50(0x225)];_0x40db30&&(_0x2c6e87[_0x5e9e50(0x216)](debug,'Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20'+_0x40db30['toString']()),_0x3d1569[_0x5e9e50(0x202)]['platform']=_0x40db30[_0x5e9e50(0x1d4)],_0x3d1569[_0x5e9e50(0x202)][_0x5e9e50(0x219)]=_0x40db30[_0x5e9e50(0x1ec)]),_0x1fb73e&&(_0x2c6e87['sjWcG'](debug,_0x5e9e50(0x1a1)+_0x1fb73e),_0x3d1569[_0x5e9e50(0x202)][_0x5e9e50(0x18b)]=_0x1fb73e);}}catch(_0x117833){_0x2c6e87[_0x5e9e50(0x1d0)](debug,_0x5e9e50(0x1b5)+_0x117833[_0x5e9e50(0x184)]());}return _0x4fd62a[_0x5e9e50(0x226)](this,arguments);};}});}}catch(_0x4a1281){_0x40df36[_0x3831f2(0x222)](debug,_0x3831f2(0x1e3)+_0x4a1281),_0x3d1569['sessionError']=_0x4a1281[_0x3831f2(0x184)]();}}}static[a43_0x8f5ebf(0x191)](){return this['currentSessionDetails'];}}module[a43_0x8f5ebf(0x1b8)]=PlaywrightSessionDetails;
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a44_0x1beab3=a44_0x39a6;(function(_0x53f9b2,_0x1c7e43){const _0x347222=a44_0x39a6,_0x24a712=_0x53f9b2();while(!![]){try{const _0xff44ca=-parseInt(_0x347222(0x1dd))/0x1+parseInt(_0x347222(0x20d))/0x2*(parseInt(_0x347222(0x23a))/0x3)+-parseInt(_0x347222(0x205))/0x4+-parseInt(_0x347222(0x22a))/0x5+parseInt(_0x347222(0x237))/0x6*(-parseInt(_0x347222(0x213))/0x7)+parseInt(_0x347222(0x212))/0x8+parseInt(_0x347222(0x1c9))/0x9;if(_0xff44ca===_0x1c7e43)break;else _0x24a712['push'](_0x24a712['shift']());}catch(_0x35ff38){_0x24a712['push'](_0x24a712['shift']());}}}(a44_0x58ae,0x1ee24));const fs=require('fs'),path=require(a44_0x1beab3(0x236)),util=require(a44_0x1beab3(0x21c)),{requireModule}=require('../helpers/helper'),PerformanceTester=require(a44_0x1beab3(0x238)),PerformanceEvents=require('../helpers/performance/constants')[a44_0x1beab3(0x1d5)],helper=require('../helpers/helper'),utilities=require('../helpers/utilities'),{default:BrowserStackSetup}=require('../helpers/BrowserStackSetup'),{FRAMEWORKS}=require('../helpers/test-observability/constants'),runIntegrations=require('./integrations/command'),yargs=require('yargs'),Constants=require(a44_0x1beab3(0x21d)),logger=require(a44_0x1beab3(0x20a))[a44_0x1beab3(0x1fd)],origArgs=Object[a44_0x1beab3(0x22c)]([],process['argv']),captureError=async(_0xa201ff,_0x520cf9,_0x3f11ff,_0x12604e=null)=>{const _0x323f7c=a44_0x1beab3,_0x25d37e={'jjBZY':function(_0x48b5e6,_0x36a587,_0x3b0296,_0x3a56ae){return _0x48b5e6(_0x36a587,_0x3b0296,_0x3a56ae);},'UVSoL':_0x323f7c(0x208)};try{logger[_0x323f7c(0x223)](_0x323f7c(0x1cc)+origArgs[_0x323f7c(0x1d3)]('\x20')),await _0x25d37e[_0x323f7c(0x1c8)](_0xa201ff,_0x520cf9,_0x12604e,_0x3f11ff);}catch(_0x4efdb5){process[_0x323f7c(0x209)]=0x1,logger[_0x323f7c(0x20e)](util[_0x323f7c(0x203)](_0x4efdb5));const _0x19c63c={'globalException':util[_0x323f7c(0x203)]('%j',_0x4efdb5)};PerformanceTester[_0x323f7c(0x1d9)](PerformanceEvents[_0x323f7c(0x1ec)],![],util['format'](_0x4efdb5));if(helper[_0x323f7c(0x234)](global['config'])&&helper[_0x323f7c(0x234)](global[_0x323f7c(0x1ea)]))return;try{utilities[_0x323f7c(0x1cb)](_0x25d37e[_0x323f7c(0x1df)],_0x19c63c,global[_0x323f7c(0x20f)],global[_0x323f7c(0x1ea)]);}catch(_0x29fdf2){logger[_0x323f7c(0x1e0)](_0x323f7c(0x1e8)+_0x29fdf2[_0x323f7c(0x201)]);}try{await helper[_0x323f7c(0x22b)](global[_0x323f7c(0x20f)]);}catch(_0x47312b){logger['debug']('Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20'+_0x47312b[_0x323f7c(0x201)]);}PerformanceTester[_0x323f7c(0x1d9)](PerformanceEvents[_0x323f7c(0x1ec)],![],util['format'](_0x4efdb5));}finally{PerformanceTester[_0x323f7c(0x1ee)](PerformanceEvents['SDK_CLEANUP']);}};try{const browserstackFolderPath=path['join'](helper[a44_0x1beab3(0x21a)](),a44_0x1beab3(0x1da));if(fs['existsSync'](browserstackFolderPath)){const filePath=path[a44_0x1beab3(0x1d3)](browserstackFolderPath,a44_0x1beab3(0x1ff));fs[a44_0x1beab3(0x218)](filePath)&&fs[a44_0x1beab3(0x1cd)](filePath);}}catch(a44_0x88892e){logger[a44_0x1beab3(0x1e0)]('Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'+a44_0x88892e[a44_0x1beab3(0x21e)]);}process[a44_0x1beab3(0x219)][a44_0x1beab3(0x1dc)](a44_0x1beab3(0x1e2))&&(!process[a44_0x1beab3(0x219)][a44_0x1beab3(0x1dc)](a44_0x1beab3(0x224))&&process['argv']['push']('--no-opts'),!process['argv'][a44_0x1beab3(0x1f5)](_0x422464=>_0x422464['includes'](a44_0x1beab3(0x1d7)))&&process[a44_0x1beab3(0x219)][a44_0x1beab3(0x1fe)]('--no-config'),!process[a44_0x1beab3(0x219)][a44_0x1beab3(0x1dc)](a44_0x1beab3(0x215))&&process[a44_0x1beab3(0x219)][a44_0x1beab3(0x1fe)](a44_0x1beab3(0x231)),helper['findAndReplace'](process[a44_0x1beab3(0x219)],a44_0x1beab3(0x1fb),a44_0x1beab3(0x1fa)));PerformanceTester[a44_0x1beab3(0x1ee)](PerformanceEvents[a44_0x1beab3(0x1ec)]);const a44_0x36880f={};function a44_0x39a6(_0x142618,_0x16463e){const _0x58aea3=a44_0x58ae();return a44_0x39a6=function(_0x39a624,_0x11737a){_0x39a624=_0x39a624-0x1c8;let _0x4d1a27=_0x58aea3[_0x39a624];return _0x4d1a27;},a44_0x39a6(_0x142618,_0x16463e);}a44_0x36880f[a44_0x1beab3(0x22e)]=![];function a44_0x58ae(){const _0x4ee53f=['qmDlr','format','kZxiU','89928udLijd','command','JEST','SDKTestSuccessful','exitCode','../helpers/logger','ZMubP','DEdON','26QqcRHv','error','config','describe','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','1631568SyHcUY','7fiZYpy','iykmN','--package','usage:\x20$0\x20<command>\x20[args]','qwPaq','existsSync','argv','homedir','iPiGV','util','./utils/constants','message','XIxEd','INFO','jest','BHkSm','info','--opts','setTestObservabilityDisable','ypTpd','AWcaW','setBrowserStackAutomationDisable','help','1222520PTUHzX','sendLogs','assign','../../ats/src/index','dot-notation','CODECEPTJS','demandCommand','--no-package','playwright','wrap','isUndefined','integrations','path','286266arQtFU','../helpers/performance/performance-tester','EgsXH','49596fGhBis','parserConfiguration','Ypuqv','slice','jjBZY','1521837HqjCAh','pWcCF','fireFunnelTestEvent','Running\x20SDK\x20with\x20args\x20','unlinkSync','vZqoO','INTEGRATIONS','mDkLJ','ESOWC','Parsing\x20command\x20line\x20arguments','join','VANILLA','EVENTS','CUCUMBER','--config','PLAYWRIGHT','end','.browserstack','./jest/command','includes','146758JDGWmQ','TAFdn','UVSoL','debug','ScIch','mocha','./cucumber-js/command','./codeceptjs/command','node','Niswe','./vanilla-js/command','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','MztBn','framework','HST','SDK_SETUP','VRjqV','start','FtFbu','TLWdB','eQptp','TViBQ','handler','NIGHTWATCH','find','ats','mocha/lib/cli/cli.js','cucumber-js','./nightwatch/command','--mochaRequire','--require','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','winstonLogger','push','.local-not-set.json','nightwatch','stack'];a44_0x58ae=function(){return _0x4ee53f;};return a44_0x58ae();}const argv=yargs[a44_0x1beab3(0x23b)](a44_0x36880f)['usage'](a44_0x1beab3(0x216))['alias']('v','version')[a44_0x1beab3(0x210)]('v')['alias']('h','help')[a44_0x1beab3(0x229)](a44_0x1beab3(0x229))['showHelpOnFail'](!![],Constants['VERSION']['HELP'])['command']('jest',Constants[a44_0x1beab3(0x207)][a44_0x1beab3(0x220)],function(_0x4dce0f){const _0x5aeec0=a44_0x1beab3,_0xb8518={'VRMaH':_0x5aeec0(0x221),'Ypuqv':function(_0x26da86,_0x3ad131,_0x16014a,_0x10f740,_0x41367d){return _0x26da86(_0x3ad131,_0x16014a,_0x10f740,_0x41367d);},'MTmGH':function(_0x3eb69a,_0x876ed5){return _0x3eb69a(_0x876ed5);},'uhexg':_0x5aeec0(0x1db)},_0xaa930e=process['argv'][_0x5aeec0(0x23d)](0x2);helper[_0x5aeec0(0x225)](),helper[_0x5aeec0(0x228)]();const _0x5b7bd9=new BrowserStackSetup(_0x4dce0f[_0x5aeec0(0x219)],_0xb8518['VRMaH']);return _0xb8518[_0x5aeec0(0x23c)](captureError,_0xb8518['MTmGH'](require,_0xb8518['uhexg']),_0x4dce0f[_0x5aeec0(0x219)],_0x5b7bd9,_0xaa930e);})[a44_0x1beab3(0x206)](a44_0x1beab3(0x1e2),Constants['MOCHA'][a44_0x1beab3(0x220)],_0x270123=>{const _0x2981a9=a44_0x1beab3,_0x4e9fa6={'vZqoO':function(_0x576499,_0x2dd15b,_0x3e886b,_0x1f1623){return _0x576499(_0x2dd15b,_0x3e886b,_0x1f1623);},'iRSSG':function(_0x396532,_0x391e38){return _0x396532(_0x391e38);},'Niswe':'./mocha/command','ESOWC':_0x2981a9(0x1e2),'eQptp':_0x2981a9(0x1d2),'AWcaW':function(_0x334155,_0x3b1069,_0x327811){return _0x334155(_0x3b1069,_0x327811);},'ZMubP':'mocha/lib/cli/run.js','VRjqV':function(_0x40c911,_0x4e620b,_0x32f54a){return _0x40c911(_0x4e620b,_0x32f54a);},'TLWdB':'mocha/lib/cli/commands.js','ScIch':_0x2981a9(0x1f7),'mDkLJ':function(_0x4cc3fb){return _0x4cc3fb();}};process[_0x2981a9(0x219)]=process[_0x2981a9(0x219)][_0x2981a9(0x23d)](0x1),helper[_0x2981a9(0x225)](),helper['setBrowserStackAutomationDisable']();const _0x1a4d0d=new BrowserStackSetup(_0x270123['argv'],_0x4e9fa6[_0x2981a9(0x1d1)]);logger[_0x2981a9(0x1e0)](_0x4e9fa6[_0x2981a9(0x1f1)]);const _0x569b09=_0x4e9fa6[_0x2981a9(0x227)](requireModule,_0x4e9fa6[_0x2981a9(0x20b)],_0x4e9fa6[_0x2981a9(0x1d1)]),_0x48e4ec=_0x4e9fa6[_0x2981a9(0x1ed)](requireModule,_0x4e9fa6[_0x2981a9(0x1f0)],_0x4e9fa6[_0x2981a9(0x1d1)]);delete _0x569b09[_0x2981a9(0x1f3)],_0x569b09[_0x2981a9(0x1f3)]=function(_0x14b1b6){const _0x1c58f6=_0x2981a9;return _0x4e9fa6[_0x1c58f6(0x1ce)](captureError,_0x4e9fa6['iRSSG'](require,_0x4e9fa6[_0x1c58f6(0x1e6)]),_0x14b1b6,_0x1a4d0d);},_0x48e4ec['run']=_0x569b09;const {main:_0x29a38a}=_0x4e9fa6[_0x2981a9(0x1ed)](requireModule,_0x4e9fa6[_0x2981a9(0x1e1)],_0x4e9fa6['ESOWC']);_0x4e9fa6[_0x2981a9(0x1d0)](_0x29a38a);})[a44_0x1beab3(0x206)](a44_0x1beab3(0x1f8),Constants[a44_0x1beab3(0x1d6)]['INFO'],function(_0x1602f5){const _0x210a77=a44_0x1beab3,_0x26091c={'kZxiU':_0x210a77(0x1f8),'qZeCS':function(_0x424274,_0x2df429,_0x4dd3b6,_0x14ee1c,_0x218d12){return _0x424274(_0x2df429,_0x4dd3b6,_0x14ee1c,_0x218d12);},'FjGYQ':function(_0x20e73c,_0x3282f9){return _0x20e73c(_0x3282f9);},'vFWzI':_0x210a77(0x1e3)},_0xbcb1cc=process['argv'][_0x210a77(0x23d)](0x2),_0x3dca26=new BrowserStackSetup(_0x1602f5[_0x210a77(0x219)],_0x26091c[_0x210a77(0x204)]);return _0x26091c['qZeCS'](captureError,_0x26091c['FjGYQ'](require,_0x26091c['vFWzI']),_0x1602f5[_0x210a77(0x219)],_0x3dca26,_0xbcb1cc);})[a44_0x1beab3(0x206)](a44_0x1beab3(0x1e5),Constants[a44_0x1beab3(0x1d4)][a44_0x1beab3(0x220)],function(_0x3cbcb6){const _0x2340ee=a44_0x1beab3,_0x40b783={'qmDlr':'vanilla','ypTpd':function(_0x36271a,_0x254114,_0x4483c8,_0x1825ee,_0x258897){return _0x36271a(_0x254114,_0x4483c8,_0x1825ee,_0x258897);},'iykmN':function(_0x59a556,_0x29fc0f){return _0x59a556(_0x29fc0f);},'NKyCP':_0x2340ee(0x1e7)},_0x47a345=process[_0x2340ee(0x219)]['slice'](0x2),_0xa24f3b=new BrowserStackSetup(_0x3cbcb6[_0x2340ee(0x219)],_0x40b783[_0x2340ee(0x202)]);return _0x40b783[_0x2340ee(0x226)](captureError,_0x40b783[_0x2340ee(0x214)](require,_0x40b783['NKyCP']),_0x3cbcb6[_0x2340ee(0x219)],_0xa24f3b,_0x47a345);})['command'](a44_0x1beab3(0x200),Constants[a44_0x1beab3(0x1f4)][a44_0x1beab3(0x220)],function(_0x10dc75){const _0x4dc635=a44_0x1beab3,_0x511127={'TViBQ':function(_0x5257a4,_0x6d20a2,_0x3109f1,_0x3adffa,_0x53ab0d){return _0x5257a4(_0x6d20a2,_0x3109f1,_0x3adffa,_0x53ab0d);},'FtFbu':function(_0xa15af4,_0x2a8654){return _0xa15af4(_0x2a8654);},'EgsXH':_0x4dc635(0x1f9)},_0x30c8dc=process[_0x4dc635(0x219)][_0x4dc635(0x23d)](0x2),_0x323c1f=new BrowserStackSetup(_0x10dc75[_0x4dc635(0x219)]);return _0x511127[_0x4dc635(0x1f2)](captureError,_0x511127[_0x4dc635(0x1ef)](require,_0x511127[_0x4dc635(0x239)]),_0x10dc75[_0x4dc635(0x219)],_0x323c1f,_0x30c8dc);})[a44_0x1beab3(0x206)]('codeceptjs',Constants[a44_0x1beab3(0x22f)][a44_0x1beab3(0x220)],function(_0x497a4b){const _0x415ab9=a44_0x1beab3,_0xe55510={'qwPaq':'codeceptjs','DEdON':function(_0x4c5905,_0x1362e8,_0x2c7203,_0x1e8f1b,_0x38c2e5){return _0x4c5905(_0x1362e8,_0x2c7203,_0x1e8f1b,_0x38c2e5);},'XIxEd':function(_0x144ccc,_0xb6a3be){return _0x144ccc(_0xb6a3be);},'wKNlz':_0x415ab9(0x1e4)},_0xa044cd=process[_0x415ab9(0x219)][_0x415ab9(0x23d)](0x2),_0x1714dc=new BrowserStackSetup(_0x497a4b[_0x415ab9(0x219)],_0xe55510[_0x415ab9(0x217)]);return _0xe55510[_0x415ab9(0x20c)](captureError,_0xe55510[_0x415ab9(0x21f)](require,_0xe55510['wKNlz']),_0x497a4b[_0x415ab9(0x219)],_0x1714dc,_0xa044cd);})['command'](a44_0x1beab3(0x1f6),Constants[a44_0x1beab3(0x1eb)][a44_0x1beab3(0x220)],function(_0x4654cd){const _0x5f1ba5=a44_0x1beab3,_0x216d34={'MztBn':function(_0xa2fe89,_0x5e6c23,_0x27313c){return _0xa2fe89(_0x5e6c23,_0x27313c);},'vARau':function(_0xeaa870,_0x4b0d4a){return _0xeaa870(_0x4b0d4a);},'ygkiw':_0x5f1ba5(0x22d)},_0x20f032=process[_0x5f1ba5(0x219)][_0x5f1ba5(0x23d)](0x2);return _0x216d34[_0x5f1ba5(0x1e9)](captureError,_0x216d34['vARau'](require,_0x216d34['ygkiw']),_0x4654cd);})['command'](a44_0x1beab3(0x235),Constants[a44_0x1beab3(0x1cf)][a44_0x1beab3(0x220)],function(_0x7e7d7f){const _0x1ee10b=a44_0x1beab3,_0x897ad8={'pWcCF':function(_0xed399e,_0x7b685){return _0xed399e(_0x7b685);}};return _0x897ad8[_0x1ee10b(0x1ca)](runIntegrations,_0x7e7d7f);})[a44_0x1beab3(0x206)](a44_0x1beab3(0x232),Constants['PLAYWRIGHT'][a44_0x1beab3(0x220)],function(_0x10a7f1){const _0x4a3e8b=a44_0x1beab3,_0x350dc3={'BHkSm':function(_0x2b5692,_0x360f3c,_0xf2117f,_0x4c9f0d,_0x7d65aa){return _0x2b5692(_0x360f3c,_0xf2117f,_0x4c9f0d,_0x7d65aa);},'iPiGV':function(_0x25f9b3,_0x4950e5){return _0x25f9b3(_0x4950e5);},'TAFdn':'./playwright/command'},_0x339cb2=process['argv'][_0x4a3e8b(0x23d)](0x2);helper[_0x4a3e8b(0x225)](),helper[_0x4a3e8b(0x228)]();const _0x235c63=new BrowserStackSetup(_0x10a7f1['argv'],FRAMEWORKS[_0x4a3e8b(0x1d8)]);return _0x350dc3[_0x4a3e8b(0x222)](captureError,_0x350dc3[_0x4a3e8b(0x21b)](require,_0x350dc3[_0x4a3e8b(0x1de)]),_0x10a7f1['argv'],_0x235c63,_0x339cb2);})[a44_0x1beab3(0x230)](0x1,a44_0x1beab3(0x1fc))[a44_0x1beab3(0x233)](null)[a44_0x1beab3(0x219)];!helper[a44_0x1beab3(0x234)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a44_0x1beab3(0x1f6)&&console[a44_0x1beab3(0x20e)](a44_0x1beab3(0x211));
|
|
2
|
+
'use strict';const a44_0xdee348=a44_0x48b6;(function(_0x15f88f,_0x419b26){const _0x3ce999=a44_0x48b6,_0x38c2e8=_0x15f88f();while(!![]){try{const _0x19c8e7=parseInt(_0x3ce999(0x10c))/0x1+parseInt(_0x3ce999(0xe8))/0x2+parseInt(_0x3ce999(0xd3))/0x3*(-parseInt(_0x3ce999(0xfe))/0x4)+parseInt(_0x3ce999(0xde))/0x5*(parseInt(_0x3ce999(0xdb))/0x6)+parseInt(_0x3ce999(0xef))/0x7*(-parseInt(_0x3ce999(0x10a))/0x8)+-parseInt(_0x3ce999(0xc8))/0x9+parseInt(_0x3ce999(0xcb))/0xa*(parseInt(_0x3ce999(0x117))/0xb);if(_0x19c8e7===_0x419b26)break;else _0x38c2e8['push'](_0x38c2e8['shift']());}catch(_0x25d8c0){_0x38c2e8['push'](_0x38c2e8['shift']());}}}(a44_0x1a25,0x1b5cd));const fs=require('fs'),path=require('path'),util=require(a44_0xdee348(0xe2)),{requireModule}=require('../helpers/helper'),PerformanceTester=require(a44_0xdee348(0x105)),PerformanceEvents=require(a44_0xdee348(0x11d))[a44_0xdee348(0xd5)],helper=require(a44_0xdee348(0x111)),utilities=require(a44_0xdee348(0xbf)),{default:BrowserStackSetup}=require('../helpers/BrowserStackSetup'),{FRAMEWORKS}=require(a44_0xdee348(0xb6)),runIntegrations=require(a44_0xdee348(0x121)),yargs=require(a44_0xdee348(0xdc)),Constants=require(a44_0xdee348(0xc2)),logger=require('../helpers/logger')[a44_0xdee348(0xb1)],origArgs=Object['assign']([],process[a44_0xdee348(0x123)]),captureError=async(_0x5e6683,_0x3ae61c,_0x7d2b1a,_0x11f64a=null)=>{const _0x5f55c2=a44_0xdee348,_0x375b39={'RQPOq':function(_0x42e994,_0x36dcbf,_0x3c59e3,_0x3a5f6c){return _0x42e994(_0x36dcbf,_0x3c59e3,_0x3a5f6c);},'xrIRi':'SDKTestSuccessful'};try{logger[_0x5f55c2(0xb5)]('Running\x20SDK\x20with\x20args\x20'+origArgs[_0x5f55c2(0x10f)]('\x20')),await _0x375b39['RQPOq'](_0x5e6683,_0x3ae61c,_0x11f64a,_0x7d2b1a);}catch(_0x4223cb){process[_0x5f55c2(0xe9)]=0x1,logger[_0x5f55c2(0xc3)](util[_0x5f55c2(0x118)](_0x4223cb));const _0x257f5f={'globalException':util[_0x5f55c2(0x118)]('%j',_0x4223cb)};PerformanceTester[_0x5f55c2(0xfb)](PerformanceEvents[_0x5f55c2(0x114)],![],util['format'](_0x4223cb));if(helper[_0x5f55c2(0x115)](global[_0x5f55c2(0xb0)])&&helper['isUndefined'](global['framework']))return;try{utilities[_0x5f55c2(0xe5)](_0x375b39[_0x5f55c2(0x11e)],_0x257f5f,global[_0x5f55c2(0xb0)],global[_0x5f55c2(0xed)]);}catch(_0x260742){logger[_0x5f55c2(0xbd)](_0x5f55c2(0x122)+_0x260742['stack']);}try{await helper[_0x5f55c2(0xe4)](global['config']);}catch(_0x42ed04){logger[_0x5f55c2(0xbd)](_0x5f55c2(0xe6)+_0x42ed04[_0x5f55c2(0x107)]);}PerformanceTester[_0x5f55c2(0xfb)](PerformanceEvents[_0x5f55c2(0x114)],![],util[_0x5f55c2(0x118)](_0x4223cb));}finally{PerformanceTester['start'](PerformanceEvents['SDK_CLEANUP']);}};try{const browserstackFolderPath=path[a44_0xdee348(0x10f)](helper[a44_0xdee348(0xee)](),a44_0xdee348(0xbb));if(fs[a44_0xdee348(0xe3)](browserstackFolderPath)){const filePath=path[a44_0xdee348(0x10f)](browserstackFolderPath,a44_0xdee348(0xb8));fs[a44_0xdee348(0xe3)](filePath)&&fs[a44_0xdee348(0xd2)](filePath);}}catch(a44_0x3360bb){logger['debug']('Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'+a44_0x3360bb[a44_0xdee348(0xeb)]);}function a44_0x48b6(_0x554b27,_0x1b0d81){const _0x1a25f0=a44_0x1a25();return a44_0x48b6=function(_0x48b658,_0xbe83cc){_0x48b658=_0x48b658-0xab;let _0x3dd3b2=_0x1a25f0[_0x48b658];return _0x3dd3b2;},a44_0x48b6(_0x554b27,_0x1b0d81);}function a44_0x1a25(){const _0x3755fc=['JtJIE','INFO','23466cOGnrZ','yargs','alias','120kBXGJn','rFOTn','pntdz','wrap','util','existsSync','sendLogs','fireFunnelTestEvent','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','showHelpOnFail','441000zhYGQf','exitCode','cdXEd','message','dot-notation','framework','homedir','7UZQjvk','qhgTO','./mocha/command','HELP','DtmET','FxGPt','--no-config','VANILLA','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','rTJyt','setBrowserStackAutomationDisable','setTestObservabilityDisable','end','xPcve','./jest/command','20WGcjMi','XzBSq','zQBFX','slice','VqFgT','smLOI','CODECEPTJS','../helpers/performance/performance-tester','vanilla','stack','nhbSO','./vanilla-js/command','1131128JAcnAX','JDBEQ','59337KYjRSa','ats','command','join','playwright','../helpers/helper','SOxOY','Parsing\x20command\x20line\x20arguments','SDK_SETUP','isUndefined','./playwright/command','11mrUptM','format','CUCUMBER','--mochaRequire','demandCommand','handler','../helpers/performance/constants','xrIRi','NIGHTWATCH','mocha','./integrations/command','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','argv','./cucumber-js/command','../../ats/src/index','mocha/lib/cli/run.js','mocha/lib/cli/cli.js','HST','push','yYfVT','config','winstonLogger','xnnae','--opts','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','info','../helpers/test-observability/constants','GVwWd','.local-not-set.json','--config','node','.browserstack','codeceptjs','debug','VERSION','../helpers/utilities','./codeceptjs/command','nagAQ','./utils/constants','error','INTEGRATIONS','FPcPB','hcDBO','parserConfiguration','1023714ONeiBO','nightwatch','DZSmZ','1191580odmeCa','EPjjP','includes','cucumber-js','PLAYWRIGHT','version','tymKb','unlinkSync','75387SoZbhI','AGxvZ','EVENTS','help','./nightwatch/command','QeaEY'];a44_0x1a25=function(){return _0x3755fc;};return a44_0x1a25();}process[a44_0xdee348(0x123)][a44_0xdee348(0xcd)](a44_0xdee348(0x120))&&(!process[a44_0xdee348(0x123)]['includes'](a44_0xdee348(0xb3))&&process[a44_0xdee348(0x123)][a44_0xdee348(0xae)]('--no-opts'),!process[a44_0xdee348(0x123)]['find'](_0x20cc9f=>_0x20cc9f['includes'](a44_0xdee348(0xb9)))&&process[a44_0xdee348(0x123)]['push'](a44_0xdee348(0xf5)),!process[a44_0xdee348(0x123)]['includes']('--package')&&process[a44_0xdee348(0x123)][a44_0xdee348(0xae)]('--no-package'),helper['findAndReplace'](process[a44_0xdee348(0x123)],'--require',a44_0xdee348(0x11a)));PerformanceTester['start'](PerformanceEvents[a44_0xdee348(0x114)]);const a44_0x520878={};a44_0x520878[a44_0xdee348(0xec)]=![];const argv=yargs[a44_0xdee348(0xc7)](a44_0x520878)['usage']('usage:\x20$0\x20<command>\x20[args]')[a44_0xdee348(0xdd)]('v',a44_0xdee348(0xd0))['describe']('v')['alias']('h',a44_0xdee348(0xd6))['help'](a44_0xdee348(0xd6))[a44_0xdee348(0xe7)](!![],Constants[a44_0xdee348(0xbe)][a44_0xdee348(0xf2)])[a44_0xdee348(0x10e)]('jest',Constants['JEST'][a44_0xdee348(0xda)],function(_0xaa0f7){const _0x384966=a44_0xdee348,_0x166640={'nhbSO':'jest','XzBSq':function(_0x57fb48,_0x3fd358,_0x549fb3,_0x559523,_0x13ff7a){return _0x57fb48(_0x3fd358,_0x549fb3,_0x559523,_0x13ff7a);},'iVwig':function(_0x1b24be,_0x449d61){return _0x1b24be(_0x449d61);},'FPcPB':_0x384966(0xfd)},_0x4d95d4=process[_0x384966(0x123)]['slice'](0x2);helper[_0x384966(0xfa)](),helper[_0x384966(0xf9)]();const _0x1774c3=new BrowserStackSetup(_0xaa0f7['argv'],_0x166640[_0x384966(0x108)]);return _0x166640[_0x384966(0xff)](captureError,_0x166640['iVwig'](require,_0x166640[_0x384966(0xc5)]),_0xaa0f7['argv'],_0x1774c3,_0x4d95d4);})['command'](a44_0xdee348(0x120),Constants['MOCHA'][a44_0xdee348(0xda)],_0xb9507b=>{const _0x1fe9e5=a44_0xdee348,_0x49b98a={'FxGPt':function(_0x542a8e,_0x123686,_0x3f3dae,_0x374004){return _0x542a8e(_0x123686,_0x3f3dae,_0x374004);},'hhBQy':function(_0x166f81,_0x4cf16c){return _0x166f81(_0x4cf16c);},'nagAQ':_0x1fe9e5(0xf1),'rFOTn':'mocha','pntdz':_0x1fe9e5(0x113),'xnnae':function(_0x2b8877,_0x14e3d7,_0x1a44dc){return _0x2b8877(_0x14e3d7,_0x1a44dc);},'AGxvZ':_0x1fe9e5(0xab),'OErVl':function(_0xb3121f,_0xd103bd,_0x37f124){return _0xb3121f(_0xd103bd,_0x37f124);},'Onesi':'mocha/lib/cli/commands.js','xPcve':function(_0x49751f,_0x583dfe,_0x1a430e){return _0x49751f(_0x583dfe,_0x1a430e);},'GVwWd':_0x1fe9e5(0xac),'zQBFX':function(_0x3ac01f){return _0x3ac01f();}};process['argv']=process['argv'][_0x1fe9e5(0x101)](0x1),helper[_0x1fe9e5(0xfa)](),helper[_0x1fe9e5(0xf9)]();const _0x2846f0=new BrowserStackSetup(_0xb9507b['argv'],_0x49b98a['rFOTn']);logger['debug'](_0x49b98a[_0x1fe9e5(0xe0)]);const _0x2c55af=_0x49b98a[_0x1fe9e5(0xb2)](requireModule,_0x49b98a[_0x1fe9e5(0xd4)],_0x49b98a[_0x1fe9e5(0xdf)]),_0x577cf5=_0x49b98a['OErVl'](requireModule,_0x49b98a['Onesi'],_0x49b98a[_0x1fe9e5(0xdf)]);delete _0x2c55af[_0x1fe9e5(0x11c)],_0x2c55af['handler']=function(_0x5761dc){const _0x2e7aea=_0x1fe9e5;return _0x49b98a[_0x2e7aea(0xf4)](captureError,_0x49b98a['hhBQy'](require,_0x49b98a[_0x2e7aea(0xc1)]),_0x5761dc,_0x2846f0);},_0x577cf5['run']=_0x2c55af;const {main:_0x1bf8c3}=_0x49b98a[_0x1fe9e5(0xfc)](requireModule,_0x49b98a[_0x1fe9e5(0xb7)],_0x49b98a[_0x1fe9e5(0xdf)]);_0x49b98a[_0x1fe9e5(0x100)](_0x1bf8c3);})[a44_0xdee348(0x10e)](a44_0xdee348(0xce),Constants[a44_0xdee348(0x119)]['INFO'],function(_0x1af191){const _0x2e7eaa=a44_0xdee348,_0x598a91={'tymKb':_0x2e7eaa(0xce),'QeaEY':function(_0x47c18d,_0x4366ca,_0x435f1b,_0x549f13,_0xc0dd2f){return _0x47c18d(_0x4366ca,_0x435f1b,_0x549f13,_0xc0dd2f);},'EPjjP':function(_0x359bbe,_0xdcb631){return _0x359bbe(_0xdcb631);},'smLOI':_0x2e7eaa(0x124)},_0x4c2a32=process[_0x2e7eaa(0x123)][_0x2e7eaa(0x101)](0x2),_0x379efb=new BrowserStackSetup(_0x1af191['argv'],_0x598a91[_0x2e7eaa(0xd1)]);return _0x598a91[_0x2e7eaa(0xd8)](captureError,_0x598a91[_0x2e7eaa(0xcc)](require,_0x598a91[_0x2e7eaa(0x103)]),_0x1af191[_0x2e7eaa(0x123)],_0x379efb,_0x4c2a32);})['command'](a44_0xdee348(0xba),Constants[a44_0xdee348(0xf6)]['INFO'],function(_0x384645){const _0x448c46=a44_0xdee348,_0x28234a={'JtJIE':_0x448c46(0x106),'cdXEd':function(_0x5b9d4f,_0x3d41aa,_0x2efc30,_0x5b016e,_0xf6e0a8){return _0x5b9d4f(_0x3d41aa,_0x2efc30,_0x5b016e,_0xf6e0a8);},'iiXTx':function(_0x585030,_0x450503){return _0x585030(_0x450503);},'SOxOY':_0x448c46(0x109)},_0x5301c8=process[_0x448c46(0x123)][_0x448c46(0x101)](0x2),_0x4ebe3d=new BrowserStackSetup(_0x384645[_0x448c46(0x123)],_0x28234a[_0x448c46(0xd9)]);return _0x28234a[_0x448c46(0xea)](captureError,_0x28234a['iiXTx'](require,_0x28234a[_0x448c46(0x112)]),_0x384645[_0x448c46(0x123)],_0x4ebe3d,_0x5301c8);})[a44_0xdee348(0x10e)](a44_0xdee348(0xc9),Constants[a44_0xdee348(0x11f)][a44_0xdee348(0xda)],function(_0x159b34){const _0x56b149=a44_0xdee348,_0x2ea3e8={'JDBEQ':function(_0x56a983,_0x4565fb,_0x20c05c,_0x2da53a,_0x62ee3b){return _0x56a983(_0x4565fb,_0x20c05c,_0x2da53a,_0x62ee3b);},'VqFgT':function(_0x5da05a,_0x150a91){return _0x5da05a(_0x150a91);},'xsWYO':_0x56b149(0xd7)},_0x2870bc=process[_0x56b149(0x123)][_0x56b149(0x101)](0x2),_0x5c125a=new BrowserStackSetup(_0x159b34[_0x56b149(0x123)]);return _0x2ea3e8[_0x56b149(0x10b)](captureError,_0x2ea3e8[_0x56b149(0x102)](require,_0x2ea3e8['xsWYO']),_0x159b34[_0x56b149(0x123)],_0x5c125a,_0x2870bc);})[a44_0xdee348(0x10e)](a44_0xdee348(0xbc),Constants[a44_0xdee348(0x104)][a44_0xdee348(0xda)],function(_0x51f1a3){const _0x3ed3c8=a44_0xdee348,_0x1d2a8d={'Xpkmr':_0x3ed3c8(0xbc),'yYfVT':function(_0x4db4fa,_0x131ec2,_0xc10e29,_0x43c550,_0x11f3fa){return _0x4db4fa(_0x131ec2,_0xc10e29,_0x43c550,_0x11f3fa);},'hcDBO':function(_0x2bd48e,_0xf336e0){return _0x2bd48e(_0xf336e0);},'rTJyt':_0x3ed3c8(0xc0)},_0x25c386=process[_0x3ed3c8(0x123)][_0x3ed3c8(0x101)](0x2),_0x360df6=new BrowserStackSetup(_0x51f1a3[_0x3ed3c8(0x123)],_0x1d2a8d['Xpkmr']);return _0x1d2a8d[_0x3ed3c8(0xaf)](captureError,_0x1d2a8d[_0x3ed3c8(0xc6)](require,_0x1d2a8d[_0x3ed3c8(0xf8)]),_0x51f1a3['argv'],_0x360df6,_0x25c386);})[a44_0xdee348(0x10e)](a44_0xdee348(0x10d),Constants[a44_0xdee348(0xad)]['INFO'],function(_0x2d87a0){const _0x48d3c8=a44_0xdee348,_0x21c8a8={'qhgTO':function(_0x4d7a22,_0x584690,_0x7f9779){return _0x4d7a22(_0x584690,_0x7f9779);},'tWgyu':function(_0x4f55e0,_0x41f202){return _0x4f55e0(_0x41f202);},'MFLVL':_0x48d3c8(0x125)},_0x266f0c=process[_0x48d3c8(0x123)][_0x48d3c8(0x101)](0x2);return _0x21c8a8[_0x48d3c8(0xf0)](captureError,_0x21c8a8['tWgyu'](require,_0x21c8a8['MFLVL']),_0x2d87a0);})[a44_0xdee348(0x10e)]('integrations',Constants[a44_0xdee348(0xc4)][a44_0xdee348(0xda)],function(_0x4b32a6){const _0x120364=a44_0xdee348,_0x2d4283={'DZSmZ':function(_0xa49b0c,_0x4bfbda){return _0xa49b0c(_0x4bfbda);}};return _0x2d4283[_0x120364(0xca)](runIntegrations,_0x4b32a6);})[a44_0xdee348(0x10e)](a44_0xdee348(0x110),Constants[a44_0xdee348(0xcf)][a44_0xdee348(0xda)],function(_0x111257){const _0x36f29a=a44_0xdee348,_0x352199={'TEUAe':function(_0x3121cd,_0x13765d,_0x32b646,_0x1b18fa,_0x35dc4d){return _0x3121cd(_0x13765d,_0x32b646,_0x1b18fa,_0x35dc4d);},'DtmET':function(_0x4bda6e,_0x382fc4){return _0x4bda6e(_0x382fc4);},'oKXjP':_0x36f29a(0x116)},_0x524312=process[_0x36f29a(0x123)][_0x36f29a(0x101)](0x2);helper['setTestObservabilityDisable'](),helper[_0x36f29a(0xf9)]();const _0x1539c1=new BrowserStackSetup(_0x111257[_0x36f29a(0x123)],FRAMEWORKS[_0x36f29a(0xcf)]);return _0x352199['TEUAe'](captureError,_0x352199[_0x36f29a(0xf3)](require,_0x352199['oKXjP']),_0x111257['argv'],_0x1539c1,_0x524312);})[a44_0xdee348(0x11b)](0x1,a44_0xdee348(0xb4))[a44_0xdee348(0xe1)](null)['argv'];!helper[a44_0xdee348(0x115)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a44_0xdee348(0x10d)&&console[a44_0xdee348(0xc3)](a44_0xdee348(0xf7));
|