browserstack-node-sdk 1.35.2 → 1.35.4
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 -60
- 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 a41_0x4634ac=a41_0x452c;(function(_0x21e9c9,_0xe36223){const _0x45bd15=a41_0x452c,_0x174b3e=_0x21e9c9();while(!![]){try{const _0x566933=parseInt(_0x45bd15(0x1f2))/0x1+-parseInt(_0x45bd15(0x1a3))/0x2*(parseInt(_0x45bd15(0x263))/0x3)+-parseInt(_0x45bd15(0x240))/0x4+parseInt(_0x45bd15(0x1cd))/0x5+-parseInt(_0x45bd15(0x1d7))/0x6+-parseInt(_0x45bd15(0x1fe))/0x7+parseInt(_0x45bd15(0x184))/0x8;if(_0x566933===_0xe36223)break;else _0x174b3e['push'](_0x174b3e['shift']());}catch(_0x2bc9da){_0x174b3e['push'](_0x174b3e['shift']());}}}(a41_0x4d42,0xc924d));const RequestQueueHandler=require('../../../helpers/test-observability/requestQueueHandler'),{calculatePerformance,getTestTags,getFailureData,sendTraceZip,findNestedKey,validateFilePath}=require(a41_0x4634ac(0x212)),{v4:uuidv4}=require('uuid'),path=require('path'),{debug,removeAnsiColors,printBuildLink,getFailureType,failureData,trace}=require(a41_0x4634ac(0x242)),{getGitMetaData,setLogLevel}=require('../../../helpers/helper'),TestDetails=require(a41_0x4634ac(0x1d0)),fs=require('fs'),util=require('util'),{o11yClassErrorHandler}=require(a41_0x4634ac(0x258)),PerformanceTester=require(a41_0x4634ac(0x1e2)),{FRAMEWORKS}=require(a41_0x4634ac(0x191)),SessionHandler=require(a41_0x4634ac(0x1eb)),{appendTesthubParams}=require('../../../helpers/testhub/utils'),TestHubHandler=require(a41_0x4634ac(0x267)),helper=require(a41_0x4634ac(0x1a8));class MyReporter{constructor(_0x4ec4ac){const _0x1095e9=a41_0x4634ac,_0x3c1fc4={'vHQoD':_0x1095e9(0x1b6),'aryau':_0x1095e9(0x1f1),'ZgyiY':function(_0x2a1c2d,_0x5d74a5,_0x432a48,_0x515260){return _0x2a1c2d(_0x5d74a5,_0x432a48,_0x515260);}},_0x1ae0cf=_0x3c1fc4['vHQoD']['split']('|');let _0x215870=0x0;while(!![]){switch(_0x1ae0cf[_0x215870++]){case'0':this[_0x1095e9(0x1e9)]=_0x4ec4ac;continue;case'1':this[_0x1095e9(0x181)]={};continue;case'2':this[_0x1095e9(0x21e)]={};continue;case'3':this[_0x1095e9(0x1f9)]=![];continue;case'4':process[_0x1095e9(0x1d8)][_0x1095e9(0x1ea)]&&(PerformanceTester[_0x1095e9(0x247)](_0x3c1fc4['aryau']),process[_0x1095e9(0x1d8)][_0x1095e9(0x244)]=new Date()['toISOString']());continue;case'5':this[_0x1095e9(0x22b)]=null;continue;case'6':const _0x1ad3c5={};_0x1ad3c5[_0x1095e9(0x1e0)]=process[_0x1095e9(0x1d8)][_0x1095e9(0x252)],_0x3c1fc4[_0x1095e9(0x1a2)](setLogLevel,_0x1ad3c5,new Map(),new Map());continue;}break;}}async[a41_0x4634ac(0x1a9)](){const _0x19c75f=a41_0x4634ac;TestDetails[_0x19c75f(0x17f)](),await this['configureGit']();}async[a41_0x4634ac(0x276)](_0x5ce77b,_0x237100){const _0x4b8c7c=a41_0x4634ac,_0x4f3e3d={'JLAuE':function(_0x3e7e0c,_0x23b3de){return _0x3e7e0c(_0x23b3de);},'swQSG':_0x4b8c7c(0x237)},_0x43c968=this[_0x4b8c7c(0x227)](_0x5ce77b),_0x18ee14=TestDetails[_0x4b8c7c(0x18d)](this[_0x4b8c7c(0x17b)](_0x5ce77b,_0x237100[_0x4b8c7c(0x19c)]));process[_0x4b8c7c(0x1d8)][_0x4b8c7c(0x1b7)]=_0x18ee14;const _0x53659a={};_0x53659a[_0x4b8c7c(0x21d)]=_0x18ee14,_0x53659a['startedAt']=_0x237100[_0x4b8c7c(0x1bc)],this[_0x4b8c7c(0x21e)][_0x43c968]=_0x53659a,_0x4f3e3d[_0x4b8c7c(0x20c)](trace,_0x4b8c7c(0x238)+_0x43c968),await this[_0x4b8c7c(0x1ce)](_0x5ce77b,_0x4f3e3d[_0x4b8c7c(0x1ec)],_0x237100);}async[a41_0x4634ac(0x1a0)](_0x1e516f,_0x43bd60,_0x431699){const _0x1b84b9=a41_0x4634ac,_0x21acf9={'wPVbv':function(_0x2e7e42,_0x922103){return _0x2e7e42(_0x922103);},'nNlYO':_0x1b84b9(0x1a4)};if(!this[_0x1b84b9(0x255)](_0x431699,_0x1e516f))return;const _0xf26bc6=this[_0x1b84b9(0x25c)](_0x1e516f,_0x431699);this[_0x1b84b9(0x21e)][_0xf26bc6]={'uuid':TestDetails[_0x1b84b9(0x18d)](_0xf26bc6),'startedAt':_0x431699[_0x1b84b9(0x1bc)][_0x1b84b9(0x22c)]()};const _0x675812=this[_0x1b84b9(0x17b)](_0x1e516f,_0x43bd60[_0x1b84b9(0x19c)]);!this[_0x1b84b9(0x181)][_0x675812]&&(this[_0x1b84b9(0x181)][_0x675812]=[]),this['_testHooksMap'][_0x675812][_0x1b84b9(0x19e)](this[_0x1b84b9(0x21e)][_0xf26bc6]['uuid']),_0x21acf9['wPVbv'](trace,_0x1b84b9(0x1c9)+_0xf26bc6+_0x1b84b9(0x26f)+_0x675812),await this['sendHookRunEvent'](_0x1e516f,_0x431699,_0x21acf9[_0x1b84b9(0x1d1)],_0x43bd60);}async[a41_0x4634ac(0x273)](_0x45400f,_0x4d0446,_0x36c952){const _0x54a044=a41_0x4634ac,_0x2e1de3={'yYTaL':function(_0x4e7755,_0x4f3512){return _0x4e7755+_0x4f3512;},'GpaDV':function(_0x31d3c9,_0xb57848){return _0x31d3c9(_0xb57848);},'KvyRc':_0x54a044(0x1d3)};if(!this[_0x54a044(0x255)](_0x36c952,_0x45400f))return;const _0x21d8af=this[_0x54a044(0x20a)](_0x45400f,_0x36c952);this['_tests'][_0x21d8af]={...this['_tests'][_0x21d8af]||{},'finishedAt':new Date(_0x2e1de3[_0x54a044(0x234)](_0x36c952[_0x54a044(0x1bc)][_0x54a044(0x18e)](),_0x36c952[_0x54a044(0x1aa)]))},_0x2e1de3[_0x54a044(0x269)](trace,'Hook\x20Finished\x20with\x20unique\x20id\x20'+_0x21d8af+_0x54a044(0x1cc)),await this[_0x54a044(0x210)](_0x45400f,_0x36c952,_0x2e1de3[_0x54a044(0x1bb)],_0x4d0446);}async[a41_0x4634ac(0x1bd)](_0x459552,_0x349738){const _0x268956=a41_0x4634ac,_0x31c506={'WmjbS':function(_0x28aa8d,_0x311c09){return _0x28aa8d===_0x311c09;},'nLQCe':_0x268956(0x262),'GVuEp':_0x268956(0x214),'FaVbh':_0x268956(0x1e5),'hnUPw':function(_0x2a7a2c,_0x4f7d4c){return _0x2a7a2c(_0x4f7d4c);},'JzAbb':'TestRunFinished','ttWkJ':'Error\x20in\x20sending\x20test\x20run\x20event:\x20%s','RMEKD':function(_0x503ef3,_0x20e40f,_0x5b959d){return _0x503ef3(_0x20e40f,_0x5b959d);},'CYzKO':function(_0x36371c,_0x512bf6){return _0x36371c(_0x512bf6);},'VICux':'Error\x20in\x20sending\x20trace\x20zip:\x20%s','SAxRj':function(_0x4d561e,_0x37848c){return _0x4d561e>_0x37848c;}},_0x1ba3dd=this[_0x268956(0x227)](_0x459552),_0x1713d7=TestDetails[_0x268956(0x18d)](this['getTestRunIdentifier'](_0x459552,_0x349738[_0x268956(0x19c)]));this[_0x268956(0x21e)][_0x1ba3dd]={...this[_0x268956(0x21e)][_0x1ba3dd]||{},'finishedAt':new Date()[_0x268956(0x22c)]()},_0x31c506[_0x268956(0x271)](trace,_0x268956(0x1ba)+_0x1ba3dd);try{await this[_0x268956(0x1ce)](_0x459552,_0x31c506[_0x268956(0x1bf)],_0x349738);}catch(_0x505e2b){_0x31c506[_0x268956(0x271)](debug,util[_0x268956(0x1b2)](_0x31c506['ttWkJ'],_0x505e2b[_0x268956(0x21f)]()));}try{_0x31c506[_0x268956(0x271)](debug,_0x268956(0x192)+_0x1713d7),await _0x31c506[_0x268956(0x25e)](sendTraceZip,_0x349738,_0x1713d7);}catch(_0x22bd4d){_0x31c506[_0x268956(0x18b)](debug,util['format'](_0x31c506['VICux'],_0x22bd4d['toString']()));}const _0xa6baf5=[];_0x349738[_0x268956(0x17c)]&&_0x349738['attachments'][_0x268956(0x1b4)](_0x4fa37d=>{const _0x486e77=_0x268956;if(_0x31c506['WmjbS'](_0x4fa37d[_0x486e77(0x1dd)],_0x31c506[_0x486e77(0x20f)])){if(!_0x4fa37d[_0x486e77(0x1c7)]||!fs[_0x486e77(0x231)](_0x4fa37d[_0x486e77(0x1c7)]))return;_0xa6baf5[_0x486e77(0x19e)]({'test_run_uuid':_0x1713d7,'timestamp':fs['statSync'](_0x4fa37d[_0x486e77(0x1c7)])[_0x486e77(0x1f5)],'kind':_0x31c506[_0x486e77(0x1db)],'message':fs[_0x486e77(0x22e)](_0x4fa37d['path'],{'encoding':_0x31c506['FaVbh']})});}}),_0x31c506[_0x268956(0x204)](_0xa6baf5[_0x268956(0x1e3)],0x0)&&await MyReporter['reportLogs'](_0xa6baf5);}async[a41_0x4634ac(0x265)](){const _0x5ea7c6=a41_0x4634ac;await RequestQueueHandler[_0x5ea7c6(0x21b)]()[_0x5ea7c6(0x219)]();}async[a41_0x4634ac(0x1a6)](_0x385153){const _0x50b613=a41_0x4634ac,_0x486be9={'KFOzZ':function(_0x5056c8){return _0x5056c8();},'JbneY':function(_0x2ae6ef,_0x399cf0){return _0x2ae6ef(_0x399cf0);}};await this[_0x50b613(0x265)]();try{process[_0x50b613(0x1d8)][_0x50b613(0x1ea)]&&await _0x486be9[_0x50b613(0x264)](calculatePerformance);}catch(_0x3f6b17){_0x486be9[_0x50b613(0x1b5)](debug,_0x50b613(0x195)+_0x3f6b17[_0x50b613(0x21f)]());}}static async['addTestUIDAndReportLog'](_0x3c090c,_0x5a7db7){const _0x1f0ca5=a41_0x4634ac;_0x5a7db7[_0x1f0ca5(0x1be)]=TestDetails[_0x1f0ca5(0x18d)](_0x3c090c),await this[_0x1f0ca5(0x205)]([_0x5a7db7]);}static async[a41_0x4634ac(0x205)](_0xdc1167){const _0x45c290=a41_0x4634ac,_0x281ad5={};_0x281ad5[_0x45c290(0x23a)]=_0x45c290(0x257);const _0x76c5ed=_0x281ad5,_0x2163c7={};_0x2163c7[_0x45c290(0x1e8)]=_0x76c5ed[_0x45c290(0x23a)],_0x2163c7[_0x45c290(0x254)]=_0xdc1167,await SessionHandler[_0x45c290(0x1b1)](_0x2163c7);}async['sendHookRunEvent'](_0x4e62d2,_0x426dd7,_0x49af00,_0x308e6c){const _0x51427f=a41_0x4634ac,_0x1a5fcc={'Toofo':_0x51427f(0x236),'tLZgI':_0x51427f(0x183),'RLhbs':'pending','cmCDJ':function(_0x33091f,_0x1b2e30){return _0x33091f>=_0x1b2e30;},'wdGyR':function(_0x40cd2e,_0xcf2883){return _0x40cd2e===_0xcf2883;},'uAeJI':_0x51427f(0x1d3),'SckwI':function(_0x263ef5,_0x39a505){return _0x263ef5>_0x39a505;},'qdUip':_0x51427f(0x241),'iLUOF':function(_0x10cd7f,_0xb39bbd){return _0x10cd7f(_0xb39bbd);},'Jhccg':function(_0x7c7c1,_0x57e2a4){return _0x7c7c1(_0x57e2a4);},'XDaHS':function(_0x1e4465,_0x3b5d5a,_0x189d21){return _0x1e4465(_0x3b5d5a,_0x189d21);},'ylpgK':_0x51427f(0x213),'doTSy':_0x51427f(0x1c6)},_0x2308c0=this[_0x51427f(0x20a)](_0x4e62d2,_0x426dd7),_0x11bc1d=this[_0x51427f(0x21e)][_0x2308c0],_0x306605={'uuid':_0x11bc1d[_0x51427f(0x21d)],'type':_0x1a5fcc[_0x51427f(0x1e1)],'hook_type':this[_0x51427f(0x203)](_0x426dd7[_0x51427f(0x194)]),'name':_0x426dd7['title'],'scope':this['getScope'](_0x426dd7),'scopes':this[_0x51427f(0x19d)](_0x4e62d2),'body':{'lang':_0x1a5fcc[_0x51427f(0x1df)],'code':null},'identifier':_0x2308c0,'file_name':path['relative'](process['cwd'](),_0x4e62d2['location'][_0x51427f(0x220)]),'location':path[_0x51427f(0x19b)](process['cwd'](),_0x4e62d2['location']['file']),'result':_0x1a5fcc[_0x51427f(0x211)],'duration_in_ms':_0x1a5fcc['cmCDJ'](_0x426dd7['duration'],0x0)?_0x426dd7['duration']:undefined,'vc_filepath':this['_gitConfigPath']&&_0x4e62d2['location']['file']?path[_0x51427f(0x19b)](this[_0x51427f(0x22b)],_0x4e62d2['location']['file']):undefined,'started_at':_0x11bc1d[_0x51427f(0x249)],'finished_at':_0x11bc1d[_0x51427f(0x17e)],'framework':FRAMEWORKS[_0x51427f(0x1c4)]};if(_0x1a5fcc[_0x51427f(0x1c3)](_0x49af00,_0x1a5fcc['uAeJI'])){const {steps:_0x3fab5b,logs:_0x276f83}=this['getStepsAndLogs'](_0x426dd7[_0x51427f(0x180)],_0x11bc1d['uuid'],_0x1a5fcc[_0x51427f(0x1e1)]);_0x276f83&&_0x1a5fcc[_0x51427f(0x1ef)](_0x276f83['length'],0x0)&&await MyReporter[_0x51427f(0x205)](_0x276f83);const _0x4390e8={};_0x4390e8[_0x51427f(0x180)]=_0x3fab5b,_0x306605[_0x51427f(0x1fb)]=_0x4390e8;if(_0x426dd7[_0x51427f(0x243)]){_0x306605[_0x51427f(0x1ed)]=_0x1a5fcc['qdUip'],_0x306605[_0x51427f(0x197)]=_0x1a5fcc[_0x51427f(0x19f)](removeAnsiColors,_0x426dd7[_0x51427f(0x243)][_0x51427f(0x24c)]),_0x306605[_0x51427f(0x235)]=_0x1a5fcc[_0x51427f(0x256)](getFailureType,_0x426dd7[_0x51427f(0x243)][_0x51427f(0x24c)]);const _0xf49c4=_0x1a5fcc[_0x51427f(0x202)](failureData,_0x426dd7[_0x51427f(0x243)],_0x1a5fcc[_0x51427f(0x196)]);if(_0xf49c4&&_0x1a5fcc[_0x51427f(0x1c3)](_0xf49c4['length'],0x0)){const _0x2c0494={};_0x2c0494[_0x51427f(0x222)]=[_0x306605[_0x51427f(0x197)]],_0x2c0494['expanded']=[],_0xf49c4[_0x51427f(0x19e)](_0x2c0494);}_0x306605[_0x51427f(0x187)]=_0xf49c4;}else _0x306605['result']=_0x1a5fcc[_0x51427f(0x225)];}const _0x2344c6={};_0x2344c6[_0x51427f(0x1e8)]=_0x49af00,_0x2344c6[_0x51427f(0x1b8)]=_0x306605;const _0x40b50f=_0x2344c6;await SessionHandler[_0x51427f(0x1b1)](_0x40b50f);}[a41_0x4634ac(0x1c1)](_0x101383,_0x39c3b1,_0x3d3fe3){const _0x221cea=a41_0x4634ac,_0x476a45={'FuUga':function(_0x3c018a,_0x16dd27){return _0x3c018a===_0x16dd27;},'qpNCA':_0x221cea(0x236),'bCvXV':function(_0x204c37,_0x46af8f){return _0x204c37===_0x46af8f;},'rZAZx':_0x221cea(0x179),'oYdrS':_0x221cea(0x21c),'nKBKd':_0x221cea(0x20b),'wuDbp':_0x221cea(0x1be),'EsFis':_0x221cea(0x1e4),'AFnuC':'TEST_STEP','RrFfS':'failed','HhpLJ':_0x221cea(0x1c6),'TSCyo':function(_0x5cdba1,_0x53cb75){return _0x5cdba1(_0x53cb75);},'CEfgt':function(_0x43ae2b){return _0x43ae2b();},'QuAXP':function(_0x25e68e,_0xd2a215){return _0x25e68e(_0xd2a215);},'fvNNt':function(_0x208ddb,_0x2cd5f3,_0xa47523){return _0x208ddb(_0x2cd5f3,_0xa47523);},'niiRL':function(_0x4ee3dc,_0x48a624,_0x453977){return _0x4ee3dc(_0x48a624,_0x453977);}},_0x468518=[],_0x1ad694=[],_0x3da56d=_0x101383['filter'](_0x15269e=>{const _0x97e40b=_0x221cea;if(_0x476a45[_0x97e40b(0x1d4)](_0x15269e['category'],_0x476a45[_0x97e40b(0x198)])&&(_0x476a45[_0x97e40b(0x275)](_0x15269e[_0x97e40b(0x194)],_0x476a45[_0x97e40b(0x1f8)])||_0x476a45[_0x97e40b(0x1d4)](_0x15269e['title'],_0x476a45[_0x97e40b(0x1a1)])))return![];return!![];}),_0x499dad=(_0x4c49c9,_0x2df083=![])=>{const _0x239b0d=_0x221cea;if(_0x476a45[_0x239b0d(0x1d4)](_0x4c49c9[_0x239b0d(0x180)][_0x239b0d(0x1e3)],0x0)){const _0x586f35=_0x476a45[_0x239b0d(0x1d4)](_0x3d3fe3,_0x476a45['nKBKd'])?_0x476a45[_0x239b0d(0x1c2)]:_0x476a45['EsFis'];_0x1ad694[_0x239b0d(0x19e)]({'kind':_0x476a45[_0x239b0d(0x1d9)],[_0x586f35]:_0x39c3b1,'message':_0x4c49c9['title'],'timestamp':_0x4c49c9[_0x239b0d(0x1bc)][_0x239b0d(0x22c)](),'level':_0x4c49c9[_0x239b0d(0x243)]?_0x476a45[_0x239b0d(0x24f)]:_0x476a45[_0x239b0d(0x230)],'duration':_0x4c49c9[_0x239b0d(0x1aa)],'failure':_0x4c49c9[_0x239b0d(0x243)]&&_0x4c49c9[_0x239b0d(0x243)][_0x239b0d(0x24c)]&&_0x476a45['TSCyo'](removeAnsiColors,_0x4c49c9[_0x239b0d(0x243)][_0x239b0d(0x24c)]),'failure_type':_0x476a45[_0x239b0d(0x25f)](getFailureType,_0x4c49c9['error']&&_0x4c49c9[_0x239b0d(0x243)]['message'])});}else{!_0x2df083&&_0x468518[_0x239b0d(0x19e)]({'id':_0x476a45['CEfgt'](uuidv4),'text':_0x4c49c9[_0x239b0d(0x194)],'keyword':undefined,'started_at':_0x4c49c9[_0x239b0d(0x1bc)]['toISOString'](),'duration':_0x4c49c9[_0x239b0d(0x1aa)],'result':_0x4c49c9[_0x239b0d(0x243)]?_0x476a45[_0x239b0d(0x24f)]:_0x476a45['HhpLJ'],'failure':_0x4c49c9[_0x239b0d(0x243)]&&_0x4c49c9['error'][_0x239b0d(0x24c)]&&_0x476a45['QuAXP'](removeAnsiColors,_0x4c49c9[_0x239b0d(0x243)]['message']),'failure_type':_0x476a45[_0x239b0d(0x216)](getFailureType,_0x4c49c9[_0x239b0d(0x243)]&&_0x4c49c9[_0x239b0d(0x243)]['message'])});for(const _0x1e1e02 of _0x4c49c9[_0x239b0d(0x180)]){_0x476a45[_0x239b0d(0x1f3)](_0x499dad,_0x1e1e02,!![]);}}};for(const _0xccf685 of _0x3da56d){_0x476a45[_0x221cea(0x1ca)](_0x499dad,_0xccf685,![]);}const _0x57f9f8={};return _0x57f9f8['steps']=_0x468518,_0x57f9f8[_0x221cea(0x254)]=_0x1ad694,_0x57f9f8;}async[a41_0x4634ac(0x1ce)](_0x4bfd4e,_0x50380c,_0x60cd5d){const _0x7df349=a41_0x4634ac,_0x54ea25={'pRrOw':function(_0x31ff0e,_0x2927eb){return _0x31ff0e(_0x2927eb);},'tLzgD':'TEST_ATTACHMENT','zYwnw':_0x7df349(0x209),'alnOT':_0x7df349(0x20b),'ueJdj':_0x7df349(0x183),'uVzdx':'pending','smphE':function(_0x32c707,_0x4d22f2){return _0x32c707(_0x4d22f2);},'nMLAo':function(_0x4020b3,_0x9b26cd,_0x470853,_0x2d2b3c,_0x4ad8b5){return _0x4020b3(_0x9b26cd,_0x470853,_0x2d2b3c,_0x4ad8b5);},'XAeXK':function(_0x425d41,_0x4d067b){return _0x425d41>_0x4d067b;},'Sydbh':function(_0x516bba,_0x2047a9){return _0x516bba-_0x2047a9;},'rBRMy':function(_0x5c4094,_0x15054b){return _0x5c4094===_0x15054b;},'auFtQ':_0x7df349(0x223),'urecu':function(_0x28052f,_0x162efc){return _0x28052f===_0x162efc;},'CsOul':_0x7df349(0x206),'HSsuo':_0x7df349(0x1c6),'XJDZY':function(_0x2e2024,_0x4f75ad){return _0x2e2024===_0x4f75ad;},'ZslCf':_0x7df349(0x241),'VmUUt':function(_0x3a8342,_0x3fc838){return _0x3a8342===_0x3fc838;},'MEtTK':'timedOut','YDvrt':function(_0x3c6266,_0x230557){return _0x3c6266===_0x230557;},'qNNGJ':function(_0x650434,_0x44afec){return _0x650434===_0x44afec;},'PvyLD':_0x7df349(0x1a5),'HgRIS':function(_0x1bffb6,_0x9748d7,_0x3436c0){return _0x1bffb6(_0x9748d7,_0x3436c0);},'IiSzD':'path','bRFEI':function(_0x4b677f,_0x4e8e5a){return _0x4b677f(_0x4e8e5a);},'bcNAm':_0x7df349(0x1ad),'vpmuw':_0x7df349(0x1d2),'oGfrv':function(_0xdf1c0c,_0x2cd628){return _0xdf1c0c(_0x2cd628);},'qUcLg':function(_0x27ba36,_0x5229f8){return _0x27ba36!==_0x5229f8;}},_0x17dbbe=this[_0x7df349(0x227)](_0x4bfd4e),_0x2328bd=this[_0x7df349(0x20d)](_0x4bfd4e),_0x3c760f=this['_tests'][_0x17dbbe],_0x59e32e=path['relative'](process[_0x7df349(0x1b3)](),_0x4bfd4e[_0x7df349(0x218)]['file']);await this[_0x7df349(0x1ac)]();const _0x4c6f7a={'uuid':_0x3c760f['uuid'],'type':_0x54ea25[_0x7df349(0x226)],'name':_0x4bfd4e[_0x7df349(0x194)],'body':{'lang':_0x54ea25[_0x7df349(0x1b9)],'code':_0x4bfd4e['fn']['toString']()},'scope':_0x2328bd,'scopes':this[_0x7df349(0x19d)](_0x4bfd4e),'identifier':_0x17dbbe,'file_name':_0x59e32e,'location':_0x59e32e,'result':_0x54ea25[_0x7df349(0x178)],'duration_in_ms':_0x60cd5d&&_0x60cd5d[_0x7df349(0x1aa)]?_0x60cd5d[_0x7df349(0x1aa)]:null,'vc_filepath':this[_0x7df349(0x22b)]&&_0x4bfd4e[_0x7df349(0x218)][_0x7df349(0x220)]?path[_0x7df349(0x19b)](this[_0x7df349(0x22b)],_0x4bfd4e[_0x7df349(0x218)]['file']):undefined,'started_at':_0x3c760f[_0x7df349(0x249)],'finished_at':_0x3c760f['finishedAt'],'framework':FRAMEWORKS[_0x7df349(0x1c4)],'customRerunParam':{'rerun_name':this[_0x7df349(0x232)](_0x4bfd4e)},'tags':_0x54ea25[_0x7df349(0x22a)](getTestTags,_0x4bfd4e)};_0x54ea25[_0x7df349(0x246)](appendTesthubParams,_0x4c6f7a,_0x50380c,_0x4bfd4e,FRAMEWORKS[_0x7df349(0x1c4)]);_0x60cd5d&&_0x54ea25[_0x7df349(0x23f)](_0x60cd5d[_0x7df349(0x19c)],0x0)&&(_0x4c6f7a[_0x7df349(0x186)]=TestDetails[_0x7df349(0x18d)](this[_0x7df349(0x17b)](_0x4bfd4e,_0x54ea25['Sydbh'](_0x60cd5d[_0x7df349(0x19c)],0x1))));if(_0x54ea25[_0x7df349(0x24d)](_0x50380c,_0x54ea25[_0x7df349(0x1ae)])){_0x4c6f7a[_0x7df349(0x1ed)]=_0x60cd5d[_0x7df349(0x245)];if(_0x54ea25[_0x7df349(0x19a)](_0x60cd5d[_0x7df349(0x245)],_0x4bfd4e[_0x7df349(0x253)]))_0x4c6f7a[_0x7df349(0x1ed)]=_0x54ea25[_0x7df349(0x24d)](_0x60cd5d[_0x7df349(0x245)],_0x54ea25['CsOul'])?_0x54ea25['CsOul']:_0x54ea25['HSsuo'];else{(_0x54ea25['urecu'](_0x4c6f7a['result'],_0x54ea25[_0x7df349(0x24e)])||_0x54ea25[_0x7df349(0x1d6)](_0x4c6f7a['result'],_0x54ea25['ZslCf'])||_0x54ea25[_0x7df349(0x217)](_0x4c6f7a[_0x7df349(0x1ed)],_0x54ea25[_0x7df349(0x1af)]))&&(_0x4c6f7a[_0x7df349(0x1ed)]=_0x54ea25[_0x7df349(0x22f)]);if(_0x54ea25['YDvrt'](_0x60cd5d[_0x7df349(0x245)],_0x54ea25[_0x7df349(0x24e)])&&_0x54ea25[_0x7df349(0x24a)](_0x4bfd4e[_0x7df349(0x253)],_0x54ea25[_0x7df349(0x22f)])){const _0x20377d={};_0x20377d[_0x7df349(0x24c)]=_0x54ea25[_0x7df349(0x274)],_0x20377d[_0x7df349(0x259)]=_0x54ea25[_0x7df349(0x274)],_0x60cd5d[_0x7df349(0x243)]=_0x20377d,_0x60cd5d[_0x7df349(0x23c)]=[_0x60cd5d[_0x7df349(0x243)]];}}const _0x59e309=this[_0x7df349(0x17b)](_0x4bfd4e,_0x60cd5d[_0x7df349(0x19c)]);_0x4c6f7a['hooks']=this[_0x7df349(0x181)][_0x59e309];const {steps:_0x2775e1,logs:_0x35a4b5}=this['getStepsAndLogs'](_0x60cd5d[_0x7df349(0x180)],_0x3c760f[_0x7df349(0x21d)],_0x54ea25[_0x7df349(0x226)]);await MyReporter[_0x7df349(0x205)](_0x35a4b5);const _0x1745e8={};_0x1745e8[_0x7df349(0x180)]=_0x2775e1,_0x4c6f7a[_0x7df349(0x1fb)]=_0x1745e8;if(_0x60cd5d[_0x7df349(0x243)]){_0x4c6f7a[_0x7df349(0x197)]=_0x54ea25[_0x7df349(0x22a)](removeAnsiColors,_0x60cd5d[_0x7df349(0x243)][_0x7df349(0x24c)]),_0x4c6f7a[_0x7df349(0x235)]=_0x54ea25[_0x7df349(0x22a)](getFailureType,_0x60cd5d['error'][_0x7df349(0x24c)]);const _0x1d4007={};_0x1d4007[_0x7df349(0x1be)]=_0x3c760f['uuid'];const {failureData:_0x342f29,logs:_0x43e37b}=_0x54ea25[_0x7df349(0x228)](getFailureData,_0x60cd5d[_0x7df349(0x23c)],_0x1d4007);if(_0x342f29&&_0x54ea25[_0x7df349(0x24a)](_0x342f29[_0x7df349(0x1e3)],0x0)){const _0x491c45={};_0x491c45[_0x7df349(0x222)]=[_0x4c6f7a[_0x7df349(0x197)]],_0x491c45[_0x7df349(0x215)]=[],_0x342f29[_0x7df349(0x19e)](_0x491c45);}_0x4c6f7a['failure']=_0x342f29,_0x43e37b&&_0x54ea25[_0x7df349(0x23f)](_0x43e37b[_0x7df349(0x1e3)],0x0)&&await MyReporter[_0x7df349(0x205)](_0x43e37b);}}let _0x49ae5e=_0x54ea25[_0x7df349(0x228)](findNestedKey,_0x60cd5d,_0x54ea25[_0x7df349(0x1f0)]);if(_0x49ae5e&&_0x54ea25[_0x7df349(0x250)](validateFilePath,_0x49ae5e))_0x54ea25['pRrOw'](debug,_0x7df349(0x1ff)+_0x3c760f['uuid']+_0x7df349(0x24b)+_0x49ae5e);else{const _0x3bce80=path[_0x7df349(0x26d)](helper['homedir'](),_0x54ea25[_0x7df349(0x182)]);!fs[_0x7df349(0x231)](_0x3bce80)&&fs['mkdirSync'](_0x3bce80),fs[_0x7df349(0x231)](path[_0x7df349(0x26d)](_0x3bce80,_0x7df349(0x177)+_0x3c760f[_0x7df349(0x21d)]+_0x7df349(0x270)))&&(_0x49ae5e=fs[_0x7df349(0x22e)](path[_0x7df349(0x26d)](_0x3bce80,'trace_'+_0x3c760f['uuid']+_0x7df349(0x270)),_0x54ea25[_0x7df349(0x23b)]),_0x54ea25[_0x7df349(0x248)](debug,_0x7df349(0x1ff)+_0x3c760f[_0x7df349(0x21d)]+_0x7df349(0x24b)+_0x49ae5e));}const _0x55c6ea={};_0x55c6ea['event_type']=_0x50380c,_0x55c6ea['test_run']=_0x4c6f7a;const _0x5e1fe9=_0x55c6ea;_0x49ae5e&&_0x54ea25[_0x7df349(0x224)](_0x49ae5e,'')&&_0x54ea25[_0x7df349(0x19a)](_0x50380c,_0x54ea25['auFtQ'])&&(!_0x5e1fe9[_0x7df349(0x254)]&&(_0x5e1fe9[_0x7df349(0x254)]=[]),_0x49ae5e[_0x7df349(0x1fa)]('\x0a')[_0x7df349(0x1f7)](_0x1d3d24=>{const _0x3ad6bd=_0x7df349;_0x1d3d24&&_0x54ea25[_0x3ad6bd(0x193)](validateFilePath,_0x1d3d24)&&_0x5e1fe9[_0x3ad6bd(0x254)][_0x3ad6bd(0x19e)]({'kind':_0x54ea25[_0x3ad6bd(0x1ee)],'timestamp':new Date()[_0x3ad6bd(0x22c)](),'test_run_uuid':_0x3c760f[_0x3ad6bd(0x21d)],'file_name':path[_0x3ad6bd(0x18f)](_0x1d3d24),'file_size':fs[_0x3ad6bd(0x20e)](_0x1d3d24)[_0x3ad6bd(0x26b)],'attachment_type':_0x54ea25['zYwnw']});})),await SessionHandler[_0x7df349(0x1b1)](_0x5e1fe9);}['getCustomRerunParam'](_0x2417a3){const _0x246446=a41_0x4634ac,_0x31eb0f={};_0x31eb0f[_0x246446(0x188)]=function(_0x401163,_0x5288c6){return _0x401163===_0x5288c6;},_0x31eb0f[_0x246446(0x207)]=function(_0x4e49a3,_0x526290){return _0x4e49a3>_0x526290;},_0x31eb0f[_0x246446(0x18c)]=function(_0x1605a5,_0x51e44a){return _0x1605a5+_0x51e44a;},_0x31eb0f[_0x246446(0x25d)]=function(_0xef0192,_0x5bddd8){return _0xef0192+_0x5bddd8;},_0x31eb0f['fkcHh']=function(_0x348b3c,_0x229d56){return _0x348b3c>_0x229d56;},_0x31eb0f[_0x246446(0x22d)]=function(_0x3fbd74,_0x2a4085){return _0x3fbd74+_0x2a4085;},_0x31eb0f[_0x246446(0x23e)]=function(_0x46d03d,_0xa73185){return _0x46d03d+_0xa73185;};const _0x22d734=_0x31eb0f,_0x132e5e=_0x2417a3[_0x246446(0x1ab)]()[_0x246446(0x1b4)](_0x41714e=>{const _0x452b9f=_0x246446;if(_0x2417a3[_0x452b9f(0x1d5)]&&_0x22d734[_0x452b9f(0x188)](_0x41714e,_0x2417a3[_0x452b9f(0x1d5)][_0x452b9f(0x194)])&&_0x2417a3[_0x452b9f(0x1d5)][_0x452b9f(0x1a7)]&&_0x22d734[_0x452b9f(0x207)](_0x2417a3['parent']['_tags'][_0x452b9f(0x1e3)],0x0))return _0x22d734[_0x452b9f(0x18c)](_0x22d734[_0x452b9f(0x25d)](_0x41714e,'\x20'),_0x2417a3[_0x452b9f(0x1d5)][_0x452b9f(0x1a7)]['join']('\x20'));if(_0x22d734[_0x452b9f(0x188)](_0x41714e,_0x2417a3[_0x452b9f(0x194)])&&_0x2417a3[_0x452b9f(0x1a7)]&&_0x22d734[_0x452b9f(0x261)](_0x2417a3[_0x452b9f(0x1a7)][_0x452b9f(0x1e3)],0x0))return _0x22d734['ippxV'](_0x22d734[_0x452b9f(0x23e)](_0x41714e,'\x20'),_0x2417a3[_0x452b9f(0x1a7)][_0x452b9f(0x26d)]('\x20'));return _0x41714e;})['join']('\x20');return _0x132e5e;}static async[a41_0x4634ac(0x1cf)](_0x1f1132,_0x507e12){const _0x137509=a41_0x4634ac,_0x1605b9={'WCsxs':function(_0x5a7571,_0x3385e0){return _0x5a7571(_0x3385e0);},'slbiA':'CBTSessionCreated'},_0x542038={'uuid':TestDetails[_0x137509(0x18d)](_0x1f1132),'integrations':_0x507e12},_0x1275f7={};_0x1275f7['depth']=null,_0x1605b9['WCsxs'](debug,_0x137509(0x201)+_0x1f1132+',\x20'+util['inspect'](_0x507e12,_0x1275f7));const _0x51b0d1={};_0x51b0d1['event_type']=_0x1605b9['slbiA'],_0x51b0d1[_0x137509(0x185)]=_0x542038,await SessionHandler[_0x137509(0x1b1)](_0x51b0d1);}async[a41_0x4634ac(0x1ac)](){const _0x4fdc06=a41_0x4634ac,_0xb7f109={'PraGX':function(_0x2b463f){return _0x2b463f();}};if(this['_gitConfigured'])return;const _0x247ee6=await _0xb7f109['PraGX'](getGitMetaData);_0x247ee6&&(this[_0x4fdc06(0x22b)]=_0x247ee6['root']),this[_0x4fdc06(0x1f9)]=!![];}[a41_0x4634ac(0x19d)](_0x38565d){const _0x4f1169=a41_0x4634ac,_0x41b00d={};_0x41b00d[_0x4f1169(0x1c5)]=function(_0x34b77,_0x4dddbe){return _0x34b77!==_0x4dddbe;};const _0x425a21=_0x41b00d,_0x4e34c1=[];if(_0x38565d&&_0x38565d[_0x4f1169(0x1d5)]){let _0x5ec117=_0x38565d[_0x4f1169(0x1d5)];while(_0x5ec117&&_0x425a21[_0x4f1169(0x1c5)](_0x5ec117[_0x4f1169(0x194)],'')){_0x4e34c1[_0x4f1169(0x19e)](_0x5ec117[_0x4f1169(0x194)]),_0x5ec117=_0x5ec117['parent'];}}return _0x4e34c1[_0x4f1169(0x239)]()[_0x4f1169(0x208)](0x0,0x2),_0x4e34c1;}[a41_0x4634ac(0x255)](_0x2a9c9f){const _0x3f2d8a=a41_0x4634ac,_0x182822={};_0x182822['ieCpl']=function(_0x37e88c,_0x4e7e0f){return _0x37e88c!==_0x4e7e0f;},_0x182822['OsJds']=_0x3f2d8a(0x236),_0x182822[_0x3f2d8a(0x189)]=function(_0x53d72e,_0x5a1fb3){return _0x53d72e===_0x5a1fb3;},_0x182822[_0x3f2d8a(0x23d)]=_0x3f2d8a(0x190),_0x182822['wTrXd']=_0x3f2d8a(0x1f4),_0x182822[_0x3f2d8a(0x1fd)]=_0x3f2d8a(0x26c),_0x182822['dMrCq']=_0x3f2d8a(0x233);const _0x47304b=_0x182822;if(_0x47304b[_0x3f2d8a(0x25a)](_0x2a9c9f[_0x3f2d8a(0x1c8)],_0x47304b[_0x3f2d8a(0x268)]))return![];if(_0x47304b[_0x3f2d8a(0x189)]([_0x47304b[_0x3f2d8a(0x23d)],_0x47304b[_0x3f2d8a(0x21a)],_0x47304b[_0x3f2d8a(0x1fd)],_0x47304b['dMrCq']][_0x3f2d8a(0x272)](_0x2a9c9f[_0x3f2d8a(0x194)]),-0x1))return![];return!![];}[a41_0x4634ac(0x20a)](_0x12dede,_0x2407a9){const _0x3b1283=a41_0x4634ac,_0x31dd49=_0x2407a9['_bs_hookIdentifier'];if(_0x31dd49)return _0x31dd49;return _0x2407a9[_0x3b1283(0x194)]+_0x3b1283(0x199)+this[_0x3b1283(0x227)](_0x12dede);}[a41_0x4634ac(0x25c)](_0x23676f,_0x115738){const _0x1383c5=a41_0x4634ac,_0x279664={'ocPQG':function(_0x4161e9){return _0x4161e9();}};let _0x4b00db=_0x115738['title']+_0x1383c5(0x199)+this[_0x1383c5(0x227)](_0x23676f);return this[_0x1383c5(0x21e)][_0x4b00db]&&(_0x4b00db=_0x4b00db+_0x1383c5(0x1de)+_0x279664['ocPQG'](uuidv4)),_0x115738['_bs_hookIdentifier']=_0x4b00db,_0x4b00db;}[a41_0x4634ac(0x227)]=_0x55bf4c=>{const _0x37ecdd=a41_0x4634ac,_0x3d952c={};_0x3d952c[_0x37ecdd(0x1cb)]=function(_0x1d7f59,_0x57c334){return _0x1d7f59+_0x57c334;},_0x3d952c['SJstf']=function(_0x1a0135,_0x2728b6){return _0x1a0135+_0x2728b6;};const _0x4b20bc=_0x3d952c;return _0x4b20bc[_0x37ecdd(0x1cb)](_0x4b20bc[_0x37ecdd(0x200)](_0x55bf4c[_0x37ecdd(0x260)],'-'),_0x55bf4c['id']);};['getTestRunIdentifier']=(_0x1c4249,_0x20227a)=>{const _0x4a190e=a41_0x4634ac,_0x47601e={};_0x47601e[_0x4a190e(0x1fc)]=function(_0x19ff40,_0xe2b604){return _0x19ff40+_0xe2b604;},_0x47601e[_0x4a190e(0x17a)]=function(_0x2d6f2d,_0xfa2dbf){return _0x2d6f2d+_0xfa2dbf;};const _0x481910=_0x47601e;return _0x481910[_0x4a190e(0x1fc)](_0x481910[_0x4a190e(0x17a)](this[_0x4a190e(0x227)](_0x1c4249),'-'),_0x20227a);};[a41_0x4634ac(0x203)]=_0x4fca14=>{const _0x8d513=a41_0x4634ac,_0x409510={};_0x409510['WIXHX']=_0x8d513(0x190),_0x409510[_0x8d513(0x1e7)]='BEFORE_EACH',_0x409510['uiTZb']='beforeAll\x20hook',_0x409510[_0x8d513(0x266)]=_0x8d513(0x1b0),_0x409510[_0x8d513(0x26e)]='afterEach\x20hook',_0x409510[_0x8d513(0x229)]=_0x8d513(0x1e6),_0x409510[_0x8d513(0x25b)]=_0x8d513(0x26c),_0x409510[_0x8d513(0x18a)]=_0x8d513(0x1dc),_0x409510['gCSHC']=_0x8d513(0x17d);const _0x1a099c=_0x409510;if(_0x4fca14[_0x8d513(0x1da)](_0x1a099c['WIXHX']))return _0x1a099c[_0x8d513(0x1e7)];else{if(_0x4fca14[_0x8d513(0x1da)](_0x1a099c[_0x8d513(0x251)]))return _0x1a099c[_0x8d513(0x266)];else{if(_0x4fca14[_0x8d513(0x1da)](_0x1a099c[_0x8d513(0x26e)]))return _0x1a099c[_0x8d513(0x229)];else{if(_0x4fca14['startsWith'](_0x1a099c['LGSSH']))return _0x1a099c[_0x8d513(0x18a)];}}}return _0x1a099c[_0x8d513(0x1f6)];};['getScope']=_0x43bb22=>{const _0x48f053=a41_0x4634ac,_0x22ce60={};_0x22ce60['gtbml']=function(_0x2d9863,_0x38f4c2){return _0x2d9863===_0x38f4c2;},_0x22ce60[_0x48f053(0x1c0)]=_0x48f053(0x221);const _0x4c81c9=_0x22ce60;let _0x290289=_0x43bb22[_0x48f053(0x1d5)];return _0x4c81c9['gtbml'](typeof _0x43bb22[_0x48f053(0x1d5)],_0x4c81c9[_0x48f053(0x1c0)])&&(_0x290289=_0x290289[_0x48f053(0x194)]),_0x290289+_0x48f053(0x1de)+_0x43bb22[_0x48f053(0x194)];};['printsToStdio'](){return![];}}function a41_0x452c(_0x4b9015,_0x14e9ae){const _0x4d4232=a41_0x4d42();return a41_0x452c=function(_0x452c33,_0x3ef04b){_0x452c33=_0x452c33-0x177;let _0x4d9028=_0x4d4232[_0x452c33];return _0x4d9028;},a41_0x452c(_0x4b9015,_0x14e9ae);}function a41_0x4d42(){const _0x5dbf3c=['\x20-\x20','tLZgI','logLevel','Toofo','../../../helpers/performance/performance-tester','length','hook_run_uuid','base64','AFTER_EACH','NRlEM','event_type','options','BROWSERSTACK_O11Y_PERF_MEASUREMENT','../../../helpers/test-observability/sessionHandler','swQSG','result','tLzgD','SckwI','IiSzD','performance-report-reporter.json','1200884RHjfwy','fvNNt','beforeAll\x20hook','mtime','gCSHC','forEach','rZAZx','_gitConfigured','split','meta','UiZeu','OaRLB','6503217kKOSNH','Trace\x20file\x20found\x20for\x20test:\x20','SJstf','Sending\x20session\x20details\x20for\x20','XDaHS','getHookType','SAxRj','reportLogs','skipped','AFZGL','splice','PLAYWRIGHT_TRACE_LOGS','getStepIdentifier','test','JLAuE','getScope','statSync','nLQCe','sendHookRunEvent','RLhbs','./pwUtils','err','TEST_SCREENSHOT','expanded','QuAXP','VmUUt','location','shutdown','wTrXd','getInstance','Before\x20Hooks','uuid','_tests','toString','file','object','backtrace','TestRunFinished','qUcLg','doTSy','alnOT','getTestIdentifier','HgRIS','XZctd','smphE','_gitConfigPath','toISOString','ippxV','readFileSync','ZslCf','HhpLJ','existsSync','getCustomRerunParam','afterEach\x20hook','yYTaL','failure_type','hook','TestRunStarted','Test\x20Started\x20with\x20unique\x20id\x20','reverse','hckYx','vpmuw','errors','AsNtT','HfdNK','XAeXK','5376172ifeKNb','failed','../../../helpers/test-observability/utils','error','START_TIME','status','nMLAo','startMonitoring','oGfrv','startedAt','qNNGJ','\x20at\x20','message','rBRMy','HSsuo','RrFfS','bRFEI','uiTZb','BROWSERSTACK_LOG_LEVEL','expectedStatus','logs','needToReportStep','Jhccg','LogCreated','../../../helpers/test-observability/error-handler','stack','ieCpl','LGSSH','setStepIdentifier','rhCJg','RMEKD','TSCyo','_projectId','fkcHh','screenshot','2839509fKcPLZ','KFOzZ','endSession','uFDXl','../../../helpers/testhub/testhubHandler','OsJds','GpaDV','MyReporter','size','afterAll\x20hook','join','oQlID','\x20is\x20triggered\x20for\x20test\x20','.txt','hnUPw','indexOf','onStepEnd','PvyLD','bCvXV','onTestBegin','trace_','uVzdx','After\x20Hooks','HLBUP','getTestRunIdentifier','attachments','unknown','finishedAt','setup','steps','_testHooksMap','bcNAm','javascript','23096664mqkSJb','test_run','retry_of','failure','JZscC','ayuSi','hkvtE','CYzKO','DWDxc','getTestUUID','getTime','basename','beforeEach\x20hook','../../../helpers/test-observability/constants','Starting\x20sending\x20trace\x20zip\x20for\x20test:\x20','pRrOw','title','Error\x20in\x20calculating\x20performance:\x20','ylpgK','failure_reason','qpNCA','\x20for\x20','urecu','relative','retry','getHierarchy','push','iLUOF','onStepBegin','oYdrS','ZgyiY','2KfEohK','HookRunStarted','Expected\x20to\x20fail,\x20but\x20passed.','onEnd','_tags','../../../helpers/helper','onBegin','duration','titlePath','configureGit','.browserstack','auFtQ','MEtTK','BEFORE_ALL','uploadEventData','format','cwd','map','JbneY','6|4|2|1|0|3|5','BROWSERSTACK_TEST_RUN_ID','hook_run','ueJdj','Test\x20Finished\x20with\x20unique\x20id\x20','KvyRc','startTime','onTestEnd','test_run_uuid','JzAbb','nEtcE','getStepsAndLogs','wuDbp','wdGyR','PLAYWRIGHT','kBLOF','passed','path','category','Hook\x20Started\x20with\x20unique\x20id\x20','niiRL','bKYgQ','\x20is\x20triggered','3507990ajlqGz','sendTestRunEvent','sendSessionDetails','./test-details','nNlYO','utf8','HookRunFinished','FuUga','parent','XJDZY','4476618fVwMJu','env','AFnuC','startsWith','GVuEp','AFTER_ALL','name'];a41_0x4d42=function(){return _0x5dbf3c;};return a41_0x4d42();}module['exports']=o11yClassErrorHandler(MyReporter,[a41_0x4634ac(0x1a9),'endSession',a41_0x4634ac(0x276),a41_0x4634ac(0x1bd),a41_0x4634ac(0x1a0),a41_0x4634ac(0x273),a41_0x4634ac(0x1cf)],a41_0x4634ac(0x26a));
|
|
1
|
+
const a41_0x3bb438=a41_0xe086;function a41_0x3ccd(){const _0x4c7ca5=['\x20is\x20triggered\x20for\x20test\x20','TCcXd','VxsbN','logs','BEFORE_EACH','name','../../../helpers/test-observability/error-handler','_gitConfigPath','uWXUc','getTestRunIdentifier','dKwsv','_testHooksMap','test_run_uuid','RnKdY','hEpgg','trace_','mkdirSync','getTestUUID','TEST_ATTACHMENT','screenshot','getHierarchy','4342212xfCwBp','hNidl','onEnd','sendTestRunEvent','9318iIGrES','getCustomRerunParam','7373585kzEMlv','90648pdvWWb','XqEWj','YORDO','onUWF','join','beforeAll\x20hook','toString','ESzXR','tbMtb','failure','ilWfY','onTestEnd','TestRunFinished','status','RMvyK','\x20at\x20','RHaJi','TestRunStarted','ttXdt','event_type','efOQb','NFIYa','finishedAt','configureGit','YWkZq','reportLogs','AFTER_EACH','message','cwd','retry_of','parent','startsWith','hook','onBegin','BZmwf','depth','env','sendSessionDetails','IQXPZ','Tlbep','attachments','splice','77wgSVOP','PXGxJ','PLAYWRIGHT_TRACE_LOGS','rWWvm','nYLIe','reverse','WUpbR','format','skipped','vGIWe','_tests','VSJdp','MyReporter','getScope','\x20for\x20','Fclvo','getStepsAndLogs','split','../../../helpers/test-observability/constants','AFTER_ALL','failure_reason','BEFORE_ALL','LMXpS','../../../helpers/performance/performance-tester','YoaqA','JvQPF','CedZX','../../../helpers/test-observability/requestQueueHandler','CykWR','filter','NpTdl','options','QsXxd','startedAt','homedir','failure_type','indexOf','4IWBync','PuCQJ','nNyGh','uClgf','.txt','duration','onStepEnd','../../../helpers/test-observability/utils','getInstance','existsSync','statSync','ClJZO','../../../helpers/helper','wQUwK','errors','onTestBegin','WQxua','HookRunStarted','steps','stack','uuid','../../../helpers/testhub/utils','vrZnQ','relative','wGbVM','afterEach\x20hook','retry','BROWSERSTACK_O11Y_PERF_MEASUREMENT','LZvhH','location','error','result','RQdew','akWqB','PGoyd','Starting\x20sending\x20trace\x20zip\x20for\x20test:\x20','test','Error\x20in\x20calculating\x20performance:\x20','readFileSync','timedOut','BROWSERSTACK_TEST_RUN_ID','zWadW','PLAYWRIGHT','_projectId','failed','hook_run','test_run','../../../helpers/test-observability/sessionHandler','YrJDH','Before\x20Hooks','getStepIdentifier','category','MPzsZ','IFQWw','Hook\x20Started\x20with\x20unique\x20id\x20','javascript','length','oHHCE','GDfMh','35169564DmMtxV','expectedStatus','\x20-\x20','UzvIJ','zZRon','EfvDu','onStepBegin','_gitConfigured','VGJaB','needToReportStep','toISOString','dRLcs','hook_run_uuid','6005493fLoacE','hvNrx','map','getTestIdentifier','AWZUe','titlePath','DcHGt','KBCOT','4181808vgTbcp','uCboT','Nqyuh','MqTFO','logLevel','xYLUx','bnvYM','title','getHookType','hfWba','106KKqJxm','yQHuU','Trace\x20file\x20found\x20for\x20test:\x20','ZLWoI','uzoFs','OLfKg','LxbCr','11xAcKgE','uxIsZ','forEach','path','HookRunFinished','uploadEventData','startTime','devTZ','ovpld','unknown','utf8','file','YeRmA','afterAll\x20hook','OSUKZ','passed','endSession','PnqAR','util','Test\x20Finished\x20with\x20unique\x20id\x20','Hook\x20Finished\x20with\x20unique\x20id\x20','bbjfv','MfzCZ','10wuCGwm','exports','iqPkK','Sending\x20session\x20details\x20for\x20','fVwgp','LRESh','./pwUtils','meta','expanded','GItZj','aNJYZ','../../../helpers/testhub/testhubHandler','XYlyc','_tags','PRGqC','LogCreated','ljzlM','beforeEach\x20hook','Weevg','ycqhf','_bs_hookIdentifier','rqbJe','backtrace','base64','hbYkt','iAtGi','Hbvgt','pending','push','getTime','performance-report-reporter.json','RCAfC','sendHookRunEvent','Error\x20in\x20sending\x20trace\x20zip:\x20%s','zqoYo','hooks'];a41_0x3ccd=function(){return _0x4c7ca5;};return a41_0x3ccd();}function a41_0xe086(_0x558605,_0x502d6a){const _0x3ccdfb=a41_0x3ccd();return a41_0xe086=function(_0xe08615,_0x437715){_0xe08615=_0xe08615-0xb5;let _0x5f5d79=_0x3ccdfb[_0xe08615];return _0x5f5d79;},a41_0xe086(_0x558605,_0x502d6a);}(function(_0x24cd33,_0x2fb58e){const _0x5ae8ab=a41_0xe086,_0x14db12=_0x24cd33();while(!![]){try{const _0x3d3708=-parseInt(_0x5ae8ab(0xc6))/0x1*(parseInt(_0x5ae8ab(0x121))/0x2)+-parseInt(_0x5ae8ab(0x11d))/0x3+parseInt(_0x5ae8ab(0x173))/0x4*(-parseInt(_0x5ae8ab(0x123))/0x5)+parseInt(_0x5ae8ab(0xbc))/0x6+parseInt(_0x5ae8ab(0x14e))/0x7*(-parseInt(_0x5ae8ab(0x124))/0x8)+-parseInt(_0x5ae8ab(0x1bb))/0x9*(-parseInt(_0x5ae8ab(0xe4))/0xa)+parseInt(_0x5ae8ab(0xcd))/0xb*(parseInt(_0x5ae8ab(0x1ae))/0xc);if(_0x3d3708===_0x2fb58e)break;else _0x14db12['push'](_0x14db12['shift']());}catch(_0x1d54d6){_0x14db12['push'](_0x14db12['shift']());}}}(a41_0x3ccd,0xb82fa));const RequestQueueHandler=require(a41_0x3bb438(0x169)),{calculatePerformance,getTestTags,getFailureData,sendTraceZip,findNestedKey,validateFilePath}=require(a41_0x3bb438(0xea)),{v4:uuidv4}=require(a41_0x3bb438(0x187)),path=require(a41_0x3bb438(0xd0)),{debug,removeAnsiColors,printBuildLink,getFailureType,failureData,trace}=require(a41_0x3bb438(0x17a)),{getGitMetaData,setLogLevel}=require(a41_0x3bb438(0x17f)),TestDetails=require('./test-details'),fs=require('fs'),util=require(a41_0x3bb438(0xdf)),{o11yClassErrorHandler}=require(a41_0x3bb438(0x10e)),PerformanceTester=require(a41_0x3bb438(0x165)),{FRAMEWORKS}=require(a41_0x3bb438(0x160)),SessionHandler=require(a41_0x3bb438(0x1a2)),{appendTesthubParams}=require(a41_0x3bb438(0x188)),TestHubHandler=require(a41_0x3bb438(0xef)),helper=require(a41_0x3bb438(0x17f));class MyReporter{constructor(_0x34a7a8){const _0x33ce06=a41_0x3bb438,_0x9fca16={'xYLUx':'5|0|3|6|1|2|4','qHxwb':_0x33ce06(0x102),'jZvLC':function(_0x4a0279,_0x16ec4e,_0x41bbe5,_0x1572a6){return _0x4a0279(_0x16ec4e,_0x41bbe5,_0x1572a6);}},_0x1de9cb=_0x9fca16[_0x33ce06(0xc1)][_0x33ce06(0x15f)]('|');let _0x355432=0x0;while(!![]){switch(_0x1de9cb[_0x355432++]){case'0':process[_0x33ce06(0x148)][_0x33ce06(0x18e)]&&(PerformanceTester['startMonitoring'](_0x9fca16['qHxwb']),process[_0x33ce06(0x148)]['START_TIME']=new Date()['toISOString']());continue;case'1':this[_0x33ce06(0x16d)]=_0x34a7a8;continue;case'2':this[_0x33ce06(0x1b5)]=![];continue;case'3':this[_0x33ce06(0x158)]={};continue;case'4':this[_0x33ce06(0x10f)]=null;continue;case'5':const _0x35b127={};_0x35b127[_0x33ce06(0xc0)]=process['env']['BROWSERSTACK_LOG_LEVEL'],_0x9fca16['jZvLC'](setLogLevel,_0x35b127,new Map(),new Map());continue;case'6':this[_0x33ce06(0x113)]={};continue;}break;}}async['onBegin'](){const _0x489588=a41_0x3bb438;TestDetails['setup'](),await this[_0x489588(0x13b)]();}async[a41_0x3bb438(0x182)](_0x2af253,_0x11578e){const _0x4a7f6f=a41_0x3bb438,_0x392110={'PnqAR':function(_0x5c0c39,_0x243049){return _0x5c0c39(_0x243049);},'VxsbN':_0x4a7f6f(0x135)},_0x4522b7=this[_0x4a7f6f(0xb7)](_0x2af253),_0x32a397=TestDetails[_0x4a7f6f(0x119)](this[_0x4a7f6f(0x111)](_0x2af253,_0x11578e['retry']));process[_0x4a7f6f(0x148)][_0x4a7f6f(0x19b)]=_0x32a397;const _0x4b4f33={};_0x4b4f33[_0x4a7f6f(0x187)]=_0x32a397,_0x4b4f33[_0x4a7f6f(0x16f)]=_0x11578e[_0x4a7f6f(0xd3)],this[_0x4a7f6f(0x158)][_0x4522b7]=_0x4b4f33,_0x392110[_0x4a7f6f(0xde)](trace,'Test\x20Started\x20with\x20unique\x20id\x20'+_0x4522b7),await this[_0x4a7f6f(0x120)](_0x2af253,_0x392110[_0x4a7f6f(0x10a)],_0x11578e);}async[a41_0x3bb438(0x1b4)](_0x54c40e,_0xaa444,_0x514b06){const _0x1b8d81=a41_0x3bb438,_0x4a0412={'ovpld':function(_0x38b583,_0x2c22e8){return _0x38b583(_0x2c22e8);},'ljzlM':_0x1b8d81(0x184)};if(!this[_0x1b8d81(0x1b7)](_0x514b06,_0x54c40e))return;const _0x54f891=this['setStepIdentifier'](_0x54c40e,_0x514b06);this[_0x1b8d81(0x158)][_0x54f891]={'uuid':TestDetails[_0x1b8d81(0x119)](_0x54f891),'startedAt':_0x514b06[_0x1b8d81(0xd3)][_0x1b8d81(0x1b8)]()};const _0x245591=this['getTestRunIdentifier'](_0x54c40e,_0xaa444[_0x1b8d81(0x18d)]);!this[_0x1b8d81(0x113)][_0x245591]&&(this[_0x1b8d81(0x113)][_0x245591]=[]),this[_0x1b8d81(0x113)][_0x245591]['push'](this[_0x1b8d81(0x158)][_0x54f891][_0x1b8d81(0x187)]),_0x4a0412[_0x1b8d81(0xd5)](trace,_0x1b8d81(0x1a9)+_0x54f891+_0x1b8d81(0x108)+_0x245591),await this[_0x1b8d81(0x104)](_0x54c40e,_0x514b06,_0x4a0412[_0x1b8d81(0xf4)],_0xaa444);}async['onStepEnd'](_0x3c434e,_0x2dd0df,_0x27f007){const _0x369115=a41_0x3bb438,_0x404750={'IFQWw':function(_0x4f5b47,_0x420e51){return _0x4f5b47+_0x420e51;},'muqNr':function(_0x6f2bb,_0x1f54c1){return _0x6f2bb(_0x1f54c1);},'sIAkf':_0x369115(0xd1)};if(!this[_0x369115(0x1b7)](_0x27f007,_0x3c434e))return;const _0x1215c3=this[_0x369115(0x1a5)](_0x3c434e,_0x27f007);this[_0x369115(0x158)][_0x1215c3]={...this['_tests'][_0x1215c3]||{},'finishedAt':new Date(_0x404750[_0x369115(0x1a8)](_0x27f007[_0x369115(0xd3)][_0x369115(0x101)](),_0x27f007[_0x369115(0x178)]))},_0x404750['muqNr'](trace,_0x369115(0xe1)+_0x1215c3+'\x20is\x20triggered'),await this[_0x369115(0x104)](_0x3c434e,_0x27f007,_0x404750['sIAkf'],_0x2dd0df);}async[a41_0x3bb438(0x12f)](_0x5f3b30,_0x308c0a){const _0x2c5191=a41_0x3bb438,_0x265f04={'ZEEOq':function(_0xd8fe82,_0x5d713e){return _0xd8fe82===_0x5d713e;},'RQdew':_0x2c5191(0x11b),'pvYcB':'TEST_SCREENSHOT','Hbvgt':_0x2c5191(0xfb),'NpTdl':function(_0x22ea1c,_0xee8c35){return _0x22ea1c(_0xee8c35);},'Nvcyh':_0x2c5191(0x130),'EfvDu':function(_0x3e3b20,_0x269609){return _0x3e3b20(_0x269609);},'ttXdt':'Error\x20in\x20sending\x20test\x20run\x20event:\x20%s','WQxua':function(_0x24cf82,_0x46e843){return _0x24cf82(_0x46e843);},'hiXMD':function(_0xbe871f,_0xbcb466,_0x61e6c0){return _0xbe871f(_0xbcb466,_0x61e6c0);},'nRtJl':function(_0x5be761,_0x2ead6d){return _0x5be761(_0x2ead6d);},'iAtGi':_0x2c5191(0x105),'Tlbep':function(_0x13e4fd,_0x2def05){return _0x13e4fd>_0x2def05;}},_0x45dc1d=this[_0x2c5191(0xb7)](_0x5f3b30),_0x60623e=TestDetails[_0x2c5191(0x119)](this[_0x2c5191(0x111)](_0x5f3b30,_0x308c0a[_0x2c5191(0x18d)]));this[_0x2c5191(0x158)][_0x45dc1d]={...this[_0x2c5191(0x158)][_0x45dc1d]||{},'finishedAt':new Date()[_0x2c5191(0x1b8)]()},_0x265f04[_0x2c5191(0x16c)](trace,_0x2c5191(0xe0)+_0x45dc1d);try{await this[_0x2c5191(0x120)](_0x5f3b30,_0x265f04['Nvcyh'],_0x308c0a);}catch(_0x3c7906){_0x265f04[_0x2c5191(0x1b3)](debug,util['format'](_0x265f04[_0x2c5191(0x136)],_0x3c7906['toString']()));}try{_0x265f04[_0x2c5191(0x183)](debug,_0x2c5191(0x196)+_0x60623e),await _0x265f04['hiXMD'](sendTraceZip,_0x308c0a,_0x60623e);}catch(_0x597320){_0x265f04['nRtJl'](debug,util[_0x2c5191(0x155)](_0x265f04[_0x2c5191(0xfd)],_0x597320[_0x2c5191(0x12a)]()));}const _0x536690=[];_0x308c0a[_0x2c5191(0x14c)]&&_0x308c0a[_0x2c5191(0x14c)][_0x2c5191(0xb6)](_0x3de68b=>{const _0x2feb6e=_0x2c5191;if(_0x265f04['ZEEOq'](_0x3de68b[_0x2feb6e(0x10d)],_0x265f04[_0x2feb6e(0x193)])){if(!_0x3de68b['path']||!fs[_0x2feb6e(0x17c)](_0x3de68b['path']))return;_0x536690['push']({'test_run_uuid':_0x60623e,'timestamp':fs[_0x2feb6e(0x17d)](_0x3de68b[_0x2feb6e(0xd0)])['mtime'],'kind':_0x265f04['pvYcB'],'message':fs[_0x2feb6e(0x199)](_0x3de68b['path'],{'encoding':_0x265f04[_0x2feb6e(0xfe)]})});}}),_0x265f04[_0x2c5191(0x14b)](_0x536690[_0x2c5191(0x1ab)],0x0)&&await MyReporter['reportLogs'](_0x536690);}async['endSession'](){const _0x1dd1d3=a41_0x3bb438;await RequestQueueHandler[_0x1dd1d3(0x17b)]()['shutdown']();}async[a41_0x3bb438(0x11f)](_0x501b6f){const _0x2a0459=a41_0x3bb438,_0x3618fe={'ycqhf':function(_0x272cf2){return _0x272cf2();},'Fclvo':function(_0x299464,_0x6dff83){return _0x299464(_0x6dff83);}};await this[_0x2a0459(0xdd)]();try{process[_0x2a0459(0x148)][_0x2a0459(0x18e)]&&await _0x3618fe[_0x2a0459(0xf7)](calculatePerformance);}catch(_0x4668f2){_0x3618fe[_0x2a0459(0x15d)](debug,_0x2a0459(0x198)+_0x4668f2['toString']());}}static async['addTestUIDAndReportLog'](_0x2f87e9,_0x2a8ff6){const _0x4e4f3a=a41_0x3bb438;_0x2a8ff6[_0x4e4f3a(0x114)]=TestDetails[_0x4e4f3a(0x119)](_0x2f87e9),await this[_0x4e4f3a(0x13d)]([_0x2a8ff6]);}static async[a41_0x3bb438(0x13d)](_0x236005){const _0x43add7=a41_0x3bb438,_0x27cfd0={};_0x27cfd0[_0x43add7(0xe6)]=_0x43add7(0xf3);const _0x1c33d9=_0x27cfd0,_0x1bc9e6={};_0x1bc9e6[_0x43add7(0x137)]=_0x1c33d9[_0x43add7(0xe6)],_0x1bc9e6['logs']=_0x236005,await SessionHandler[_0x43add7(0xd2)](_0x1bc9e6);}async[a41_0x3bb438(0x104)](_0x36f68e,_0x3da08b,_0x466d60,_0x488e6b){const _0x17a173=a41_0x3bb438,_0x4ad1a7={'TCcXd':_0x17a173(0x144),'akWqB':'javascript','YVhLD':_0x17a173(0xff),'xdRlq':function(_0x32d73a,_0x2e6787){return _0x32d73a>=_0x2e6787;},'ClJZO':function(_0x577283,_0x1ea0ef){return _0x577283===_0x1ea0ef;},'RHaJi':'HookRunFinished','mTkIN':function(_0x40c1d6,_0x5d01f6){return _0x40c1d6>_0x5d01f6;},'zqoYo':_0x17a173(0x19f),'dRLcs':function(_0x5d1745,_0x52aa98){return _0x5d1745(_0x52aa98);},'WulDz':function(_0x244efe,_0x6b3786){return _0x244efe(_0x6b3786);},'AWZUe':function(_0x208e43,_0x18a4c1,_0x527988){return _0x208e43(_0x18a4c1,_0x527988);},'PGoyd':'err','VGJaB':function(_0x3a4bd8,_0xb71ea3){return _0x3a4bd8===_0xb71ea3;},'ilWfY':_0x17a173(0xdc)},_0x58f2fc=this[_0x17a173(0x1a5)](_0x36f68e,_0x3da08b),_0x55bb71=this['_tests'][_0x58f2fc],_0x12cb92={'uuid':_0x55bb71[_0x17a173(0x187)],'type':_0x4ad1a7[_0x17a173(0x109)],'hook_type':this[_0x17a173(0xc4)](_0x3da08b[_0x17a173(0xc3)]),'name':_0x3da08b['title'],'scope':this['getScope'](_0x3da08b),'scopes':this[_0x17a173(0x11c)](_0x36f68e),'body':{'lang':_0x4ad1a7[_0x17a173(0x194)],'code':null},'identifier':_0x58f2fc,'file_name':path[_0x17a173(0x18a)](process[_0x17a173(0x140)](),_0x36f68e[_0x17a173(0x190)][_0x17a173(0xd8)]),'location':path['relative'](process['cwd'](),_0x36f68e['location'][_0x17a173(0xd8)]),'result':_0x4ad1a7['YVhLD'],'duration_in_ms':_0x4ad1a7['xdRlq'](_0x3da08b[_0x17a173(0x178)],0x0)?_0x3da08b['duration']:undefined,'vc_filepath':this[_0x17a173(0x10f)]&&_0x36f68e[_0x17a173(0x190)][_0x17a173(0xd8)]?path[_0x17a173(0x18a)](this['_gitConfigPath'],_0x36f68e[_0x17a173(0x190)][_0x17a173(0xd8)]):undefined,'started_at':_0x55bb71[_0x17a173(0x16f)],'finished_at':_0x55bb71[_0x17a173(0x13a)],'framework':FRAMEWORKS[_0x17a173(0x19d)]};if(_0x4ad1a7[_0x17a173(0x17e)](_0x466d60,_0x4ad1a7[_0x17a173(0x134)])){const {steps:_0x49ec78,logs:_0x1dce30}=this[_0x17a173(0x15e)](_0x3da08b[_0x17a173(0x185)],_0x55bb71[_0x17a173(0x187)],_0x4ad1a7[_0x17a173(0x109)]);_0x1dce30&&_0x4ad1a7['mTkIN'](_0x1dce30[_0x17a173(0x1ab)],0x0)&&await MyReporter['reportLogs'](_0x1dce30);const _0x1a6b0={};_0x1a6b0[_0x17a173(0x185)]=_0x49ec78,_0x12cb92[_0x17a173(0xeb)]=_0x1a6b0;if(_0x3da08b['error']){_0x12cb92[_0x17a173(0x192)]=_0x4ad1a7[_0x17a173(0x106)],_0x12cb92[_0x17a173(0x162)]=_0x4ad1a7[_0x17a173(0x1b9)](removeAnsiColors,_0x3da08b[_0x17a173(0x191)][_0x17a173(0x13f)]),_0x12cb92[_0x17a173(0x171)]=_0x4ad1a7['WulDz'](getFailureType,_0x3da08b['error'][_0x17a173(0x13f)]);const _0x3a38df=_0x4ad1a7[_0x17a173(0xb8)](failureData,_0x3da08b[_0x17a173(0x191)],_0x4ad1a7[_0x17a173(0x195)]);if(_0x3a38df&&_0x4ad1a7[_0x17a173(0x1b6)](_0x3a38df[_0x17a173(0x1ab)],0x0)){const _0x28ce9f={};_0x28ce9f[_0x17a173(0xfa)]=[_0x12cb92[_0x17a173(0x162)]],_0x28ce9f[_0x17a173(0xec)]=[],_0x3a38df[_0x17a173(0x100)](_0x28ce9f);}_0x12cb92[_0x17a173(0x12d)]=_0x3a38df;}else _0x12cb92[_0x17a173(0x192)]=_0x4ad1a7[_0x17a173(0x12e)];}const _0x9a659={};_0x9a659[_0x17a173(0x137)]=_0x466d60,_0x9a659[_0x17a173(0x1a0)]=_0x12cb92;const _0x3b1e4d=_0x9a659;await SessionHandler[_0x17a173(0xd2)](_0x3b1e4d);}[a41_0x3bb438(0x15e)](_0x2a1088,_0x35c61f,_0x466ba9){const _0x2cbfdf=a41_0x3bb438,_0x1b713a={'WUpbR':function(_0xe1918f,_0x33208d){return _0xe1918f===_0x33208d;},'RCAfC':'hook','CykWR':function(_0x2a51f9,_0x486858){return _0x2a51f9===_0x486858;},'KBCOT':'After\x20Hooks','wQUwK':function(_0x4ed1ae,_0x5c7a7e){return _0x4ed1ae===_0x5c7a7e;},'uxIsZ':_0x2cbfdf(0x1a4),'bnvYM':function(_0x2c36df,_0x1b4212){return _0x2c36df===_0x1b4212;},'dKwsv':'test','YORDO':_0x2cbfdf(0x114),'LRESh':_0x2cbfdf(0x1ba),'BZmwf':'TEST_STEP','Weevg':_0x2cbfdf(0x19f),'MPzsZ':_0x2cbfdf(0xdc),'aNJYZ':function(_0x4343ae,_0x65d62c){return _0x4343ae(_0x65d62c);},'swuJU':function(_0x117681,_0x1c454c){return _0x117681(_0x1c454c);},'yqCLV':function(_0x514637){return _0x514637();},'hfWba':function(_0x4202ed,_0x404f3f){return _0x4202ed(_0x404f3f);},'rsuyr':function(_0x49fc69,_0x129490){return _0x49fc69(_0x129490);},'kdVgE':function(_0x2399c4,_0x15de13,_0x4cf239){return _0x2399c4(_0x15de13,_0x4cf239);}},_0x58e568=[],_0x1e90e7=[],_0xbd90c1=_0x2a1088[_0x2cbfdf(0x16b)](_0x3cc331=>{const _0x93333c=_0x2cbfdf;if(_0x1b713a[_0x93333c(0x154)](_0x3cc331['category'],_0x1b713a[_0x93333c(0x103)])&&(_0x1b713a[_0x93333c(0x16a)](_0x3cc331['title'],_0x1b713a[_0x93333c(0xbb)])||_0x1b713a[_0x93333c(0x180)](_0x3cc331[_0x93333c(0xc3)],_0x1b713a[_0x93333c(0xce)])))return![];return!![];}),_0x3e6ea5=(_0x4f0566,_0x26a832=![])=>{const _0x369dec=_0x2cbfdf;if(_0x1b713a['wQUwK'](_0x4f0566[_0x369dec(0x185)][_0x369dec(0x1ab)],0x0)){const _0x3a57f9=_0x1b713a[_0x369dec(0xc2)](_0x466ba9,_0x1b713a[_0x369dec(0x112)])?_0x1b713a[_0x369dec(0x126)]:_0x1b713a[_0x369dec(0xe9)];_0x1e90e7['push']({'kind':_0x1b713a[_0x369dec(0x146)],[_0x3a57f9]:_0x35c61f,'message':_0x4f0566['title'],'timestamp':_0x4f0566[_0x369dec(0xd3)][_0x369dec(0x1b8)](),'level':_0x4f0566['error']?_0x1b713a['Weevg']:_0x1b713a[_0x369dec(0x1a7)],'duration':_0x4f0566[_0x369dec(0x178)],'failure':_0x4f0566['error']&&_0x4f0566[_0x369dec(0x191)][_0x369dec(0x13f)]&&_0x1b713a[_0x369dec(0xee)](removeAnsiColors,_0x4f0566['error'][_0x369dec(0x13f)]),'failure_type':_0x1b713a['swuJU'](getFailureType,_0x4f0566[_0x369dec(0x191)]&&_0x4f0566[_0x369dec(0x191)]['message'])});}else{!_0x26a832&&_0x58e568['push']({'id':_0x1b713a['yqCLV'](uuidv4),'text':_0x4f0566['title'],'keyword':undefined,'started_at':_0x4f0566[_0x369dec(0xd3)]['toISOString'](),'duration':_0x4f0566[_0x369dec(0x178)],'result':_0x4f0566['error']?_0x1b713a[_0x369dec(0xf6)]:_0x1b713a[_0x369dec(0x1a7)],'failure':_0x4f0566[_0x369dec(0x191)]&&_0x4f0566[_0x369dec(0x191)][_0x369dec(0x13f)]&&_0x1b713a[_0x369dec(0xc5)](removeAnsiColors,_0x4f0566[_0x369dec(0x191)]['message']),'failure_type':_0x1b713a['rsuyr'](getFailureType,_0x4f0566[_0x369dec(0x191)]&&_0x4f0566[_0x369dec(0x191)]['message'])});for(const _0x56b8a4 of _0x4f0566[_0x369dec(0x185)]){_0x1b713a['kdVgE'](_0x3e6ea5,_0x56b8a4,!![]);}}};for(const _0xdbb90e of _0xbd90c1){_0x1b713a['kdVgE'](_0x3e6ea5,_0xdbb90e,![]);}const _0x1ecf00={};return _0x1ecf00['steps']=_0x58e568,_0x1ecf00['logs']=_0x1e90e7,_0x1ecf00;}async['sendTestRunEvent'](_0x7bffd1,_0x32d968,_0x3086ee){const _0x5957e9=a41_0x3bb438,_0x58158d={'GItZj':function(_0x59eb36,_0x4b896b){return _0x59eb36(_0x4b896b);},'YWkZq':_0x5957e9(0x11a),'rqbJe':_0x5957e9(0x150),'PRGqC':_0x5957e9(0x197),'fkwIn':_0x5957e9(0x1aa),'hEpgg':_0x5957e9(0xff),'vOWEW':function(_0x423777,_0x411be9){return _0x423777(_0x411be9);},'bbjfv':function(_0x6d2b52,_0x288441,_0x3d201b,_0xc33be3,_0x10bacd){return _0x6d2b52(_0x288441,_0x3d201b,_0xc33be3,_0x10bacd);},'zZRon':function(_0x3fb681,_0x5cd83f){return _0x3fb681>_0x5cd83f;},'zWadW':function(_0x54e826,_0x49a65f){return _0x54e826-_0x49a65f;},'uzoFs':function(_0x5a4291,_0x3ee982){return _0x5a4291===_0x3ee982;},'ESzXR':_0x5957e9(0x130),'tbMtb':function(_0x42393c,_0x7bf773){return _0x42393c===_0x7bf773;},'devTZ':_0x5957e9(0x156),'efOQb':_0x5957e9(0xdc),'yQHuU':function(_0x3180a6,_0x2464aa){return _0x3180a6===_0x2464aa;},'XqEWj':_0x5957e9(0x19f),'dOTnp':_0x5957e9(0x19a),'MXLxF':function(_0x2b6334,_0x153cc8){return _0x2b6334===_0x153cc8;},'IQXPZ':function(_0x11d096,_0x1afaf3){return _0x11d096===_0x1afaf3;},'YoaqA':'Expected\x20to\x20fail,\x20but\x20passed.','RnKdY':function(_0x4dce84,_0x3a2705){return _0x4dce84(_0x3a2705);},'KWGAH':function(_0x43b004,_0xe57ebc){return _0x43b004(_0xe57ebc);},'nNyGh':function(_0x690d29,_0x5efd70,_0x273ef7){return _0x690d29(_0x5efd70,_0x273ef7);},'oHHCE':function(_0x3f5b0b,_0xed31e3){return _0x3f5b0b===_0xed31e3;},'hNidl':_0x5957e9(0xd0),'Nqyuh':'.browserstack','DcHGt':_0x5957e9(0xd7),'OSUKZ':function(_0x1af9f2,_0x555506){return _0x1af9f2!==_0x555506;}},_0x512707=this[_0x5957e9(0xb7)](_0x7bffd1),_0x2f8d55=this[_0x5957e9(0x15b)](_0x7bffd1),_0x313ad0=this[_0x5957e9(0x158)][_0x512707],_0x124595=path['relative'](process[_0x5957e9(0x140)](),_0x7bffd1[_0x5957e9(0x190)][_0x5957e9(0xd8)]);await this['configureGit']();const _0x5bb9bf={'uuid':_0x313ad0[_0x5957e9(0x187)],'type':_0x58158d[_0x5957e9(0xf2)],'name':_0x7bffd1[_0x5957e9(0xc3)],'body':{'lang':_0x58158d['fkwIn'],'code':_0x7bffd1['fn']['toString']()},'scope':_0x2f8d55,'scopes':this[_0x5957e9(0x11c)](_0x7bffd1),'identifier':_0x512707,'file_name':_0x124595,'location':_0x124595,'result':_0x58158d[_0x5957e9(0x116)],'duration_in_ms':_0x3086ee&&_0x3086ee[_0x5957e9(0x178)]?_0x3086ee['duration']:null,'vc_filepath':this[_0x5957e9(0x10f)]&&_0x7bffd1[_0x5957e9(0x190)][_0x5957e9(0xd8)]?path[_0x5957e9(0x18a)](this['_gitConfigPath'],_0x7bffd1[_0x5957e9(0x190)][_0x5957e9(0xd8)]):undefined,'started_at':_0x313ad0['startedAt'],'finished_at':_0x313ad0[_0x5957e9(0x13a)],'framework':FRAMEWORKS[_0x5957e9(0x19d)],'customRerunParam':{'rerun_name':this[_0x5957e9(0x122)](_0x7bffd1)},'tags':_0x58158d['vOWEW'](getTestTags,_0x7bffd1)};_0x58158d[_0x5957e9(0xe2)](appendTesthubParams,_0x5bb9bf,_0x32d968,_0x7bffd1,FRAMEWORKS[_0x5957e9(0x19d)]);_0x3086ee&&_0x58158d['zZRon'](_0x3086ee[_0x5957e9(0x18d)],0x0)&&(_0x5bb9bf[_0x5957e9(0x141)]=TestDetails[_0x5957e9(0x119)](this[_0x5957e9(0x111)](_0x7bffd1,_0x58158d[_0x5957e9(0x19c)](_0x3086ee['retry'],0x1))));if(_0x58158d[_0x5957e9(0xca)](_0x32d968,_0x58158d[_0x5957e9(0x12b)])){_0x5bb9bf[_0x5957e9(0x192)]=_0x3086ee[_0x5957e9(0x131)];if(_0x58158d['tbMtb'](_0x3086ee['status'],_0x7bffd1['expectedStatus']))_0x5bb9bf[_0x5957e9(0x192)]=_0x58158d['tbMtb'](_0x3086ee[_0x5957e9(0x131)],_0x58158d[_0x5957e9(0xd4)])?_0x58158d[_0x5957e9(0xd4)]:_0x58158d[_0x5957e9(0x138)];else{(_0x58158d[_0x5957e9(0xc7)](_0x5bb9bf['result'],_0x58158d[_0x5957e9(0x138)])||_0x58158d['tbMtb'](_0x5bb9bf['result'],_0x58158d[_0x5957e9(0x125)])||_0x58158d[_0x5957e9(0x12c)](_0x5bb9bf['result'],_0x58158d['dOTnp']))&&(_0x5bb9bf[_0x5957e9(0x192)]=_0x58158d[_0x5957e9(0x125)]);if(_0x58158d['MXLxF'](_0x3086ee[_0x5957e9(0x131)],_0x58158d[_0x5957e9(0x138)])&&_0x58158d[_0x5957e9(0x14a)](_0x7bffd1[_0x5957e9(0x1af)],_0x58158d[_0x5957e9(0x125)])){const _0x1f2136={};_0x1f2136['message']=_0x58158d[_0x5957e9(0x166)],_0x1f2136[_0x5957e9(0x186)]=_0x58158d[_0x5957e9(0x166)],_0x3086ee[_0x5957e9(0x191)]=_0x1f2136,_0x3086ee['errors']=[_0x3086ee['error']];}}const _0x117afd=this[_0x5957e9(0x111)](_0x7bffd1,_0x3086ee[_0x5957e9(0x18d)]);_0x5bb9bf[_0x5957e9(0x107)]=this['_testHooksMap'][_0x117afd];const {steps:_0x302b9a,logs:_0x472c08}=this[_0x5957e9(0x15e)](_0x3086ee['steps'],_0x313ad0[_0x5957e9(0x187)],_0x58158d['PRGqC']);await MyReporter['reportLogs'](_0x472c08);const _0x503225={};_0x503225[_0x5957e9(0x185)]=_0x302b9a,_0x5bb9bf[_0x5957e9(0xeb)]=_0x503225;if(_0x3086ee[_0x5957e9(0x191)]){_0x5bb9bf['failure_reason']=_0x58158d[_0x5957e9(0x115)](removeAnsiColors,_0x3086ee[_0x5957e9(0x191)][_0x5957e9(0x13f)]),_0x5bb9bf[_0x5957e9(0x171)]=_0x58158d['KWGAH'](getFailureType,_0x3086ee[_0x5957e9(0x191)][_0x5957e9(0x13f)]);const _0x4bb8a9={};_0x4bb8a9[_0x5957e9(0x114)]=_0x313ad0['uuid'];const {failureData:_0x166fd5,logs:_0x44060f}=_0x58158d[_0x5957e9(0x175)](getFailureData,_0x3086ee[_0x5957e9(0x181)],_0x4bb8a9);if(_0x166fd5&&_0x58158d[_0x5957e9(0x1ac)](_0x166fd5[_0x5957e9(0x1ab)],0x0)){const _0x47e190={};_0x47e190[_0x5957e9(0xfa)]=[_0x5bb9bf[_0x5957e9(0x162)]],_0x47e190[_0x5957e9(0xec)]=[],_0x166fd5[_0x5957e9(0x100)](_0x47e190);}_0x5bb9bf[_0x5957e9(0x12d)]=_0x166fd5,_0x44060f&&_0x58158d[_0x5957e9(0x1b2)](_0x44060f[_0x5957e9(0x1ab)],0x0)&&await MyReporter['reportLogs'](_0x44060f);}}let _0x57d19e=_0x58158d['nNyGh'](findNestedKey,_0x3086ee,_0x58158d[_0x5957e9(0x11e)]);if(_0x57d19e&&_0x58158d[_0x5957e9(0x115)](validateFilePath,_0x57d19e))_0x58158d[_0x5957e9(0xed)](debug,_0x5957e9(0xc8)+_0x313ad0[_0x5957e9(0x187)]+_0x5957e9(0x133)+_0x57d19e);else{const _0xba33e4=path[_0x5957e9(0x128)](helper[_0x5957e9(0x170)](),_0x58158d[_0x5957e9(0xbe)]);!fs[_0x5957e9(0x17c)](_0xba33e4)&&fs[_0x5957e9(0x118)](_0xba33e4),fs['existsSync'](path[_0x5957e9(0x128)](_0xba33e4,_0x5957e9(0x117)+_0x313ad0[_0x5957e9(0x187)]+_0x5957e9(0x177)))&&(_0x57d19e=fs[_0x5957e9(0x199)](path[_0x5957e9(0x128)](_0xba33e4,_0x5957e9(0x117)+_0x313ad0[_0x5957e9(0x187)]+'.txt'),_0x58158d[_0x5957e9(0xba)]),_0x58158d[_0x5957e9(0xed)](debug,_0x5957e9(0xc8)+_0x313ad0[_0x5957e9(0x187)]+'\x20at\x20'+_0x57d19e));}const _0xefbec2={};_0xefbec2[_0x5957e9(0x137)]=_0x32d968,_0xefbec2[_0x5957e9(0x1a1)]=_0x5bb9bf;const _0x2ff74f=_0xefbec2;_0x57d19e&&_0x58158d[_0x5957e9(0xdb)](_0x57d19e,'')&&_0x58158d[_0x5957e9(0xca)](_0x32d968,_0x58158d[_0x5957e9(0x12b)])&&(!_0x2ff74f[_0x5957e9(0x10b)]&&(_0x2ff74f[_0x5957e9(0x10b)]=[]),_0x57d19e[_0x5957e9(0x15f)]('\x0a')[_0x5957e9(0xcf)](_0x41b596=>{const _0x2df6c8=_0x5957e9;_0x41b596&&_0x58158d[_0x2df6c8(0xed)](validateFilePath,_0x41b596)&&_0x2ff74f[_0x2df6c8(0x10b)][_0x2df6c8(0x100)]({'kind':_0x58158d[_0x2df6c8(0x13c)],'timestamp':new Date()[_0x2df6c8(0x1b8)](),'test_run_uuid':_0x313ad0['uuid'],'file_name':path['basename'](_0x41b596),'file_size':fs[_0x2df6c8(0x17d)](_0x41b596)['size'],'attachment_type':_0x58158d[_0x2df6c8(0xf9)]});})),await SessionHandler[_0x5957e9(0xd2)](_0x2ff74f);}['getCustomRerunParam'](_0x10a960){const _0x6567a2=a41_0x3bb438,_0x112442={};_0x112442[_0x6567a2(0x1ad)]=function(_0x4519f2,_0x3b1c80){return _0x4519f2===_0x3b1c80;},_0x112442[_0x6567a2(0x189)]=function(_0x133208,_0x4645fe){return _0x133208>_0x4645fe;},_0x112442[_0x6567a2(0x1a3)]=function(_0x1e7f72,_0x137b92){return _0x1e7f72+_0x137b92;},_0x112442[_0x6567a2(0xcc)]=function(_0x1b8502,_0x4ab1d9){return _0x1b8502===_0x4ab1d9;},_0x112442[_0x6567a2(0x174)]=function(_0x500e9e,_0x4756d9){return _0x500e9e>_0x4756d9;},_0x112442[_0x6567a2(0x159)]=function(_0x47fa3c,_0x5bcc95){return _0x47fa3c+_0x5bcc95;};const _0x1d22c4=_0x112442,_0xaeabba=_0x10a960[_0x6567a2(0xb9)]()[_0x6567a2(0xb6)](_0x2fe77c=>{const _0x189fea=_0x6567a2;if(_0x10a960['parent']&&_0x1d22c4[_0x189fea(0x1ad)](_0x2fe77c,_0x10a960[_0x189fea(0x142)][_0x189fea(0xc3)])&&_0x10a960[_0x189fea(0x142)][_0x189fea(0xf1)]&&_0x1d22c4[_0x189fea(0x189)](_0x10a960[_0x189fea(0x142)][_0x189fea(0xf1)][_0x189fea(0x1ab)],0x0))return _0x1d22c4[_0x189fea(0x1a3)](_0x1d22c4['YrJDH'](_0x2fe77c,'\x20'),_0x10a960[_0x189fea(0x142)][_0x189fea(0xf1)][_0x189fea(0x128)]('\x20'));if(_0x1d22c4[_0x189fea(0xcc)](_0x2fe77c,_0x10a960[_0x189fea(0xc3)])&&_0x10a960['_tags']&&_0x1d22c4[_0x189fea(0x174)](_0x10a960['_tags']['length'],0x0))return _0x1d22c4[_0x189fea(0x159)](_0x1d22c4[_0x189fea(0x159)](_0x2fe77c,'\x20'),_0x10a960[_0x189fea(0xf1)]['join']('\x20'));return _0x2fe77c;})[_0x6567a2(0x128)]('\x20');return _0xaeabba;}static async[a41_0x3bb438(0x149)](_0x1f436a,_0x509bb8){const _0x1c5031=a41_0x3bb438,_0x715cb6={'LMXpS':function(_0x6bdb59,_0x11964e){return _0x6bdb59(_0x11964e);},'NFIYa':'CBTSessionCreated'},_0x2e03d3={'uuid':TestDetails[_0x1c5031(0x119)](_0x1f436a),'integrations':_0x509bb8},_0x4489ab={};_0x4489ab[_0x1c5031(0x147)]=null,_0x715cb6[_0x1c5031(0x164)](debug,_0x1c5031(0xe7)+_0x1f436a+',\x20'+util['inspect'](_0x509bb8,_0x4489ab));const _0x2eaac5={};_0x2eaac5[_0x1c5031(0x137)]=_0x715cb6[_0x1c5031(0x139)],_0x2eaac5[_0x1c5031(0x1a1)]=_0x2e03d3,await SessionHandler[_0x1c5031(0xd2)](_0x2eaac5);}async[a41_0x3bb438(0x13b)](){const _0x193e09=a41_0x3bb438,_0x49a3b4={'fVwgp':function(_0x13ff87){return _0x13ff87();}};if(this[_0x193e09(0x1b5)])return;const _0x1a4eb2=await _0x49a3b4[_0x193e09(0xe8)](getGitMetaData);_0x1a4eb2&&(this[_0x193e09(0x10f)]=_0x1a4eb2['root']),this['_gitConfigured']=!![];}[a41_0x3bb438(0x11c)](_0x31ff21){const _0x20c966=a41_0x3bb438,_0x4f57b4={};_0x4f57b4[_0x20c966(0xbf)]=function(_0x13b83a,_0x2042d0){return _0x13b83a!==_0x2042d0;};const _0x4c8030=_0x4f57b4,_0x50601e=[];if(_0x31ff21&&_0x31ff21[_0x20c966(0x142)]){let _0x184114=_0x31ff21[_0x20c966(0x142)];while(_0x184114&&_0x4c8030[_0x20c966(0xbf)](_0x184114[_0x20c966(0xc3)],'')){_0x50601e[_0x20c966(0x100)](_0x184114[_0x20c966(0xc3)]),_0x184114=_0x184114[_0x20c966(0x142)];}}return _0x50601e[_0x20c966(0x153)]()[_0x20c966(0x14d)](0x0,0x2),_0x50601e;}['needToReportStep'](_0x2e4055){const _0x42c12f=a41_0x3bb438,_0x24de21={};_0x24de21[_0x42c12f(0x167)]=function(_0x17a99d,_0x1e3dd7){return _0x17a99d!==_0x1e3dd7;},_0x24de21[_0x42c12f(0x157)]='hook',_0x24de21[_0x42c12f(0x176)]=function(_0x425d14,_0x50c6f4){return _0x425d14===_0x50c6f4;},_0x24de21[_0x42c12f(0x1b1)]=_0x42c12f(0xf5),_0x24de21[_0x42c12f(0x110)]=_0x42c12f(0x129),_0x24de21[_0x42c12f(0x16e)]='afterAll\x20hook',_0x24de21[_0x42c12f(0x168)]=_0x42c12f(0x18c);const _0x4fe815=_0x24de21;if(_0x4fe815['JvQPF'](_0x2e4055[_0x42c12f(0x1a6)],_0x4fe815[_0x42c12f(0x157)]))return![];if(_0x4fe815['uClgf']([_0x4fe815[_0x42c12f(0x1b1)],_0x4fe815['uWXUc'],_0x4fe815['QsXxd'],_0x4fe815[_0x42c12f(0x168)]][_0x42c12f(0x172)](_0x2e4055['title']),-0x1))return![];return!![];}[a41_0x3bb438(0x1a5)](_0x51d34d,_0x19fbb5){const _0x15c682=a41_0x3bb438,_0x2790aa=_0x19fbb5[_0x15c682(0xf8)];if(_0x2790aa)return _0x2790aa;return _0x19fbb5[_0x15c682(0xc3)]+_0x15c682(0x15c)+this[_0x15c682(0xb7)](_0x51d34d);}['setStepIdentifier'](_0xebebe3,_0x44626d){const _0x7ecea8=a41_0x3bb438,_0x5052b8={'MfzCZ':function(_0x462e68){return _0x462e68();}};let _0x42c6f8=_0x44626d[_0x7ecea8(0xc3)]+_0x7ecea8(0x15c)+this[_0x7ecea8(0xb7)](_0xebebe3);return this[_0x7ecea8(0x158)][_0x42c6f8]&&(_0x42c6f8=_0x42c6f8+_0x7ecea8(0x1b0)+_0x5052b8[_0x7ecea8(0xe3)](uuidv4)),_0x44626d[_0x7ecea8(0xf8)]=_0x42c6f8,_0x42c6f8;}['getTestIdentifier']=_0x4cbd07=>{const _0x2739a3=a41_0x3bb438,_0x10cebd={};_0x10cebd['LZvhH']=function(_0x4f541f,_0x3ddc45){return _0x4f541f+_0x3ddc45;};const _0x527732=_0x10cebd;return _0x527732[_0x2739a3(0x18f)](_0x527732[_0x2739a3(0x18f)](_0x4cbd07[_0x2739a3(0x19e)],'-'),_0x4cbd07['id']);};[a41_0x3bb438(0x111)]=(_0x3b24dc,_0x42a7f8)=>{const _0x3103d2=a41_0x3bb438,_0x199ede={};_0x199ede[_0x3103d2(0xbd)]=function(_0x257a5c,_0xbc2248){return _0x257a5c+_0xbc2248;},_0x199ede[_0x3103d2(0xf0)]=function(_0x414a37,_0x23d933){return _0x414a37+_0x23d933;};const _0x284429=_0x199ede;return _0x284429[_0x3103d2(0xbd)](_0x284429['XYlyc'](this[_0x3103d2(0xb7)](_0x3b24dc),'-'),_0x42a7f8);};[a41_0x3bb438(0xc4)]=_0x5822e8=>{const _0x31e822=a41_0x3bb438,_0x2872cc={};_0x2872cc[_0x31e822(0xcb)]=_0x31e822(0xf5),_0x2872cc[_0x31e822(0x14f)]=_0x31e822(0x10c),_0x2872cc[_0x31e822(0xfc)]=_0x31e822(0x129),_0x2872cc[_0x31e822(0x18b)]=_0x31e822(0x163),_0x2872cc[_0x31e822(0x152)]=_0x31e822(0x18c),_0x2872cc[_0x31e822(0xd9)]=_0x31e822(0x13e),_0x2872cc['ZLWoI']=_0x31e822(0xda),_0x2872cc[_0x31e822(0x127)]=_0x31e822(0x161),_0x2872cc[_0x31e822(0x151)]=_0x31e822(0xd6);const _0x247f16=_0x2872cc;if(_0x5822e8[_0x31e822(0x143)](_0x247f16[_0x31e822(0xcb)]))return _0x247f16[_0x31e822(0x14f)];else{if(_0x5822e8[_0x31e822(0x143)](_0x247f16[_0x31e822(0xfc)]))return _0x247f16['wGbVM'];else{if(_0x5822e8[_0x31e822(0x143)](_0x247f16[_0x31e822(0x152)]))return _0x247f16[_0x31e822(0xd9)];else{if(_0x5822e8['startsWith'](_0x247f16[_0x31e822(0xc9)]))return _0x247f16[_0x31e822(0x127)];}}}return _0x247f16[_0x31e822(0x151)];};[a41_0x3bb438(0x15b)]=_0x326dd3=>{const _0x55b1d8=a41_0x3bb438,_0x4badbb={};_0x4badbb[_0x55b1d8(0x132)]=function(_0x5e0b05,_0x38f9ef){return _0x5e0b05===_0x38f9ef;},_0x4badbb[_0x55b1d8(0xb5)]='object';const _0x2686a9=_0x4badbb;let _0x110aa3=_0x326dd3[_0x55b1d8(0x142)];return _0x2686a9[_0x55b1d8(0x132)](typeof _0x326dd3[_0x55b1d8(0x142)],_0x2686a9[_0x55b1d8(0xb5)])&&(_0x110aa3=_0x110aa3[_0x55b1d8(0xc3)]),_0x110aa3+_0x55b1d8(0x1b0)+_0x326dd3['title'];};['printsToStdio'](){return![];}}module[a41_0x3bb438(0xe5)]=o11yClassErrorHandler(MyReporter,[a41_0x3bb438(0x145),a41_0x3bb438(0xdd),a41_0x3bb438(0x182),a41_0x3bb438(0x12f),a41_0x3bb438(0x1b4),a41_0x3bb438(0x179),a41_0x3bb438(0x149)],a41_0x3bb438(0x15a));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a42_0x2fcb(){const _0x3db3c6=['getStoreDirName','bBbwO','setTestDetails','../../../helpers/helper','564FCRkJi','_test','traceZipPaths','dirPath','BS_TESTOPS_BUILD_HASHED_ID','setup','szLMe','existsSync','BDywf','join','91121VnWIrj','296714Tzhyoe','Error\x20reading\x20trace\x20file\x20paths:\x20%s','ThcfW','608646OkjhcA','MKkKU','homedir','string','PWXVb','__projectId','error','addTraceFilePath','cVLwy','4397016XdYUeU','_traceZipPaths.json','CGzeA','uuid','../../../helpers/logger','pMQzr','getTestUUID','path','16429lAnvXi','Ewykq','rmSync','traceZipDir','retry','mkdirSync','getTraceZipDir','fHyEb','getTestIdFromTestInfo','4|3|0|2|1','appendToTracePaths','stringify','pid','appendFileSync','getProjectIdFromTestInfo','winstonLogger','cVUhJ','toString','_projectId','shutdown','getFilePath','writeFileSync','759650CwmoLf','.browserstack','../../../helpers/test-observability/constants','sIRao','split','Error\x20writing\x20trace\x20file:\x20','675264HdVAjZ','zFmkg','tests','kdSDV','yWlBo','pzVwK','LsXRj','jAQpV','testId','getAccessibilityPlatformValidation','format','env','setAccessibilityPlatformValidation','getStoreDirPath','.json','filePath','cwd','readFileSync','pxJxv','message','forEach','_platformDetails.json','lRHKi','recursive','getTraceFilePaths','some','parse','push','EviQx','DCKSx','getTestDetails','getTestRunIdFromTestInfo','UIOlR'];a42_0x2fcb=function(){return _0x3db3c6;};return a42_0x2fcb();}const a42_0x597fd4=a42_0x327a;(function(_0x33ce93,_0x417b33){const _0x21a770=a42_0x327a,_0x297b3a=_0x33ce93();while(!![]){try{const _0x5c0f89=parseInt(_0x21a770(0x17d))/0x1+parseInt(_0x21a770(0x17e))/0x2+parseInt(_0x21a770(0x181))/0x3+parseInt(_0x21a770(0x14e))/0x4+-parseInt(_0x21a770(0x148))/0x5+parseInt(_0x21a770(0x173))/0x6*(parseInt(_0x21a770(0x192))/0x7)+-parseInt(_0x21a770(0x18a))/0x8;if(_0x5c0f89===_0x417b33)break;else _0x297b3a['push'](_0x297b3a['shift']());}catch(_0x11966b){_0x297b3a['push'](_0x297b3a['shift']());}}}(a42_0x2fcb,0x1fcbd));const fs=require('fs'),path=require(a42_0x597fd4(0x191)),{v4:uuidv4}=require('uuid'),{TEMP_STORE_DIR_NAME}=require(a42_0x597fd4(0x14a)),{nestedKeyValue}=require('../../../helpers/helper'),logger=require(a42_0x597fd4(0x18e))[a42_0x597fd4(0x141)],util=require('util'),helper=require(a42_0x597fd4(0x172));function a42_0x327a(_0x5b17e6,_0x60f19a){const _0x2fcb1d=a42_0x2fcb();return a42_0x327a=function(_0x327af4,_0x37b8ac){_0x327af4=_0x327af4-0x13a;let _0x253bd5=_0x2fcb1d[_0x327af4];return _0x253bd5;},a42_0x327a(_0x5b17e6,_0x60f19a);}class TestDetails{static [a42_0x597fd4(0x150)]={};static [a42_0x597fd4(0x176)]=path[a42_0x597fd4(0x17c)](process[a42_0x597fd4(0x15e)](),TestDetails[a42_0x597fd4(0x16f)]());static [a42_0x597fd4(0x195)]=path[a42_0x597fd4(0x17c)](TestDetails[a42_0x597fd4(0x176)],a42_0x597fd4(0x175));static[a42_0x597fd4(0x178)](){const _0x5e2aa9=a42_0x597fd4,_0x2947ef={};_0x2947ef[_0x5e2aa9(0x182)]=_0x5e2aa9(0x13b),_0x2947ef[_0x5e2aa9(0x154)]=_0x5e2aa9(0x175);const _0x21f4fe=_0x2947ef,_0xe0b8d5=_0x21f4fe[_0x5e2aa9(0x182)][_0x5e2aa9(0x14c)]('|');let _0x513092=0x0;while(!![]){switch(_0xe0b8d5[_0x513092++]){case'0':this[_0x5e2aa9(0x145)]();continue;case'1':const _0x3244f8={};_0x3244f8[_0x5e2aa9(0x165)]=!![],fs[_0x5e2aa9(0x197)](this[_0x5e2aa9(0x195)],_0x3244f8);continue;case'2':const _0x44b1d9={};_0x44b1d9[_0x5e2aa9(0x165)]=!![],fs[_0x5e2aa9(0x197)](this[_0x5e2aa9(0x176)],_0x44b1d9);continue;case'3':this[_0x5e2aa9(0x195)]=path[_0x5e2aa9(0x17c)](this['dirPath'],_0x21f4fe[_0x5e2aa9(0x154)]);continue;case'4':this[_0x5e2aa9(0x176)]=path['join'](process[_0x5e2aa9(0x15e)](),TestDetails[_0x5e2aa9(0x16f)]());continue;}break;}}static[a42_0x597fd4(0x16f)](){const _0x3052a4=a42_0x597fd4,_0x1b17fa={};_0x1b17fa['pxJxv']=function(_0x20b7e8,_0x27e02d){return _0x20b7e8+_0x27e02d;};const _0x211b07=_0x1b17fa;return _0x211b07[_0x3052a4(0x160)](_0x211b07[_0x3052a4(0x160)](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x3052a4(0x177)]);}static[a42_0x597fd4(0x15b)](){const _0x1f9a24=a42_0x597fd4,_0x510162={};_0x510162['EviQx']=function(_0x172ddc,_0xd1b2f7){return _0x172ddc+_0xd1b2f7;},_0x510162[_0x1f9a24(0x164)]='default';const _0x2f8a05=_0x510162;return path['join'](process[_0x1f9a24(0x15e)](),_0x2f8a05['EviQx'](_0x2f8a05[_0x1f9a24(0x16a)](TEMP_STORE_DIR_NAME,'-'),process[_0x1f9a24(0x159)][_0x1f9a24(0x177)]||_0x2f8a05[_0x1f9a24(0x164)]));}static[a42_0x597fd4(0x198)](){const _0x77740c=a42_0x597fd4,_0x1aafa={};_0x1aafa[_0x77740c(0x155)]=_0x77740c(0x175);const _0xb0a3bd=_0x1aafa;return path['join'](this['getStoreDirPath'](),_0xb0a3bd[_0x77740c(0x155)]);}static[a42_0x597fd4(0x146)](_0x1b696e){const _0x238aa5=a42_0x597fd4,_0x434412={};_0x434412[_0x238aa5(0x16b)]=function(_0x4a481e,_0x1c675d){return _0x4a481e+_0x1c675d;},_0x434412[_0x238aa5(0x142)]=_0x238aa5(0x15c);const _0x32bf49=_0x434412;return path[_0x238aa5(0x17c)](this['dirPath'],_0x32bf49[_0x238aa5(0x16b)](_0x1b696e,_0x32bf49['cVUhJ']));}static[a42_0x597fd4(0x16d)](_0x46b4ea){const _0x2bb4fa=a42_0x597fd4,_0x439145={};_0x439145['kdSDV']=function(_0x3d0887,_0x42d7e9){return _0x3d0887+_0x42d7e9;},_0x439145[_0x2bb4fa(0x153)]=function(_0x404e9f,_0x4be3b6){return _0x404e9f+_0x4be3b6;};const _0x344816=_0x439145;return _0x344816['kdSDV'](_0x344816[_0x2bb4fa(0x151)](_0x344816[_0x2bb4fa(0x151)](_0x344816[_0x2bb4fa(0x153)](this['getProjectIdFromTestInfo'](_0x46b4ea),'-'),this[_0x2bb4fa(0x13a)](_0x46b4ea)),'-'),_0x46b4ea[_0x2bb4fa(0x196)]);}static[a42_0x597fd4(0x140)](_0x3ce7ea){const _0x20a32a=a42_0x597fd4,_0x30cc3b={'ByEdq':function(_0x2a76b9,_0x12df37,_0x54ae26){return _0x2a76b9(_0x12df37,_0x54ae26);},'fHyEb':_0x20a32a(0x174),'pMQzr':_0x20a32a(0x144),'cVLwy':function(_0x211424,_0x4a9353,_0x3aac59){return _0x211424(_0x4a9353,_0x3aac59);},'HfNcP':'project','ThcfW':_0x20a32a(0x186)};return _0x30cc3b['ByEdq'](nestedKeyValue,_0x3ce7ea,[_0x30cc3b[_0x20a32a(0x199)],_0x30cc3b[_0x20a32a(0x18f)]])||_0x30cc3b[_0x20a32a(0x189)](nestedKeyValue,_0x3ce7ea,[_0x30cc3b['HfNcP'],_0x30cc3b[_0x20a32a(0x180)]]);}static['getTestIdFromTestInfo'](_0x34b1fd){const _0x29c9ab=a42_0x597fd4,_0x24b1ce={'zFmkg':function(_0x341448,_0x5d2733,_0xd6e24c){return _0x341448(_0x5d2733,_0xd6e24c);},'CGzeA':_0x29c9ab(0x174)};return _0x24b1ce[_0x29c9ab(0x14f)](nestedKeyValue,_0x34b1fd,[_0x24b1ce[_0x29c9ab(0x18c)],'id'])||_0x34b1fd[_0x29c9ab(0x156)];}static[a42_0x597fd4(0x190)](_0x50be52){const _0x23acd7=a42_0x597fd4,_0xadf9e7={'bBbwO':function(_0x36710a,_0x43fc2c){return _0x36710a===_0x43fc2c;},'UIOlR':_0x23acd7(0x184),'sIRao':function(_0x2e87d8){return _0x2e87d8();}};if(this[_0x23acd7(0x150)][_0x50be52]&&_0xadf9e7[_0x23acd7(0x170)](typeof this[_0x23acd7(0x150)][_0x50be52][_0x23acd7(0x18d)],_0xadf9e7[_0x23acd7(0x16e)]))return this[_0x23acd7(0x150)][_0x50be52][_0x23acd7(0x18d)];const _0x12a9c8=this['getFilePath'](_0x50be52);if(_0x12a9c8&&fs[_0x23acd7(0x17a)](_0x12a9c8)){const _0x44c54=JSON[_0x23acd7(0x168)](fs[_0x23acd7(0x15f)](_0x12a9c8)[_0x23acd7(0x143)]());return this[_0x23acd7(0x150)][_0x50be52]=_0x44c54,this['tests'][_0x50be52]['uuid'];}return this[_0x23acd7(0x150)][_0x50be52]={'uuid':_0xadf9e7[_0x23acd7(0x14b)](uuidv4)},fs[_0x23acd7(0x147)](_0x12a9c8,JSON[_0x23acd7(0x13d)](this[_0x23acd7(0x150)][_0x50be52])),this['tests'][_0x50be52][_0x23acd7(0x18d)];}static[a42_0x597fd4(0x157)](_0x153382){const _0x34b337=a42_0x597fd4,_0x1ebb7f=path[_0x34b337(0x17c)](this['dirPath'],_0x153382+'_platformDetails.json');if(_0x1ebb7f&&fs[_0x34b337(0x17a)](_0x1ebb7f))return fs[_0x34b337(0x15f)](_0x1ebb7f)[_0x34b337(0x143)]();}static[a42_0x597fd4(0x15a)](_0x39f824,_0x3fe260){const _0x584246=a42_0x597fd4,_0xf4a07d=path[_0x584246(0x17c)](this[_0x584246(0x176)],_0x3fe260+_0x584246(0x163));fs['writeFileSync'](_0xf4a07d,_0x39f824['toString']());}static[a42_0x597fd4(0x145)](){const _0x59f111=a42_0x597fd4,_0x1c9bbe={};_0x1c9bbe['recursive']=!![],_0x1c9bbe['force']=!![],fs[_0x59f111(0x194)](this[_0x59f111(0x176)],_0x1c9bbe);}static[a42_0x597fd4(0x16c)](_0x315e9f){const _0x1e0d6c=a42_0x597fd4;if(this['tests'][_0x315e9f])return this[_0x1e0d6c(0x150)][_0x315e9f];const _0x1f36e0=this['getFilePath'](_0x315e9f);if(_0x1f36e0&&fs[_0x1e0d6c(0x17a)](_0x1f36e0)){const _0x314ef4=JSON[_0x1e0d6c(0x168)](fs[_0x1e0d6c(0x15f)](_0x1f36e0)[_0x1e0d6c(0x143)]());return this[_0x1e0d6c(0x150)][_0x315e9f]=_0x314ef4,_0x314ef4;}return{};}static[a42_0x597fd4(0x171)](_0x2ab456,_0x192208){const _0x3c4a7f=a42_0x597fd4,_0x4261ae=this['getFilePath'](_0x2ab456);if(_0x4261ae&&fs[_0x3c4a7f(0x17a)](_0x4261ae)){const _0x1cd81b=JSON[_0x3c4a7f(0x168)](fs['readFileSync'](_0x4261ae)['toString']()),_0x423246={..._0x1cd81b,..._0x192208};this[_0x3c4a7f(0x150)][_0x2ab456]=_0x423246;}else this[_0x3c4a7f(0x150)][_0x2ab456]=_0x192208;fs[_0x3c4a7f(0x147)](_0x4261ae,this[_0x3c4a7f(0x150)][_0x2ab456]);}static[a42_0x597fd4(0x188)](_0x144103){const _0x551451=a42_0x597fd4,_0xe85d17={};_0xe85d17['Ewykq']='Error\x20handling\x20trace\x20file\x20paths:\x20';const _0x35316f=_0xe85d17;try{const _0x2ffa2e=process[_0x551451(0x13e)],_0x2511fd=path[_0x551451(0x17c)](TestDetails['getTraceZipDir'](),_0x2ffa2e+_0x551451(0x18b));let _0x1db522=[];_0x2511fd&&fs[_0x551451(0x17a)](_0x2511fd)&&(_0x1db522=JSON[_0x551451(0x168)](fs['readFileSync'](_0x2511fd)[_0x551451(0x143)]())),!_0x1db522[_0x551451(0x167)](_0x474fa9=>_0x474fa9[_0x551451(0x15d)]===_0x144103[_0x551451(0x15d)])&&(_0x1db522[_0x551451(0x169)](_0x144103),fs['writeFileSync'](_0x2511fd,JSON[_0x551451(0x13d)](_0x1db522)));}catch(_0x25d29b){logger[_0x551451(0x187)](_0x35316f[_0x551451(0x193)],_0x25d29b);}}static[a42_0x597fd4(0x166)](){const _0x12d386=a42_0x597fd4,_0x7e5519={};_0x7e5519[_0x12d386(0x185)]=_0x12d386(0x18b),_0x7e5519[_0x12d386(0x17b)]=_0x12d386(0x17f);const _0x9355fb=_0x7e5519,_0xd183e6=[];try{const _0x529529=TestDetails[_0x12d386(0x198)]();if(_0x529529&&!fs[_0x12d386(0x17a)](_0x529529))return _0xd183e6;const _0x233042=fs['readdirSync'](_0x529529);_0x233042['forEach'](_0x199b97=>{const _0x220520=_0x12d386;if(_0x199b97&&_0x199b97['endsWith'](_0x9355fb[_0x220520(0x185)])){const _0x13ed5f=JSON[_0x220520(0x168)](fs['readFileSync'](path[_0x220520(0x17c)](_0x529529,_0x199b97))[_0x220520(0x143)]());_0xd183e6[_0x220520(0x169)](..._0x13ed5f);}});}catch(_0x460a44){logger[_0x12d386(0x187)](util[_0x12d386(0x158)](_0x9355fb[_0x12d386(0x17b)],_0x460a44));}const _0x4a9977={};return _0xd183e6[_0x12d386(0x162)](_0x5de22b=>{const _0x338f5b=_0x12d386;_0x4a9977[_0x5de22b[_0x338f5b(0x15d)]]=_0x5de22b;}),Object['values'](_0x4a9977);}static[a42_0x597fd4(0x13c)](_0x30c432,_0x4d3714){const _0x16d742=a42_0x597fd4,_0x5ec5eb={};_0x5ec5eb[_0x16d742(0x152)]=_0x16d742(0x149),_0x5ec5eb[_0x16d742(0x179)]='utf8';const _0xf7be03=_0x5ec5eb;try{const _0x417c6e=path[_0x16d742(0x17c)](helper[_0x16d742(0x183)](),_0xf7be03[_0x16d742(0x152)]);if(!fs[_0x16d742(0x17a)](_0x417c6e)){const _0x55c354={};_0x55c354[_0x16d742(0x165)]=!![],fs['mkdirSync'](_0x417c6e,_0x55c354);}fs[_0x16d742(0x13f)](path[_0x16d742(0x17c)](_0x417c6e,'trace_'+_0x4d3714+'.txt'),_0x30c432+'\x0a',_0xf7be03[_0x16d742(0x179)]);}catch(_0x3d33be){console[_0x16d742(0x187)](_0x16d742(0x14d)+_0x3d33be[_0x16d742(0x161)]);}}}module['exports']=TestDetails;
|
|
1
|
+
const a42_0x32d926=a42_0x47c5;(function(_0x16ab04,_0x4670b5){const _0x448981=a42_0x47c5,_0x2946af=_0x16ab04();while(!![]){try{const _0x52400a=-parseInt(_0x448981(0x1aa))/0x1*(-parseInt(_0x448981(0x1ca))/0x2)+-parseInt(_0x448981(0x1c7))/0x3+-parseInt(_0x448981(0x1a6))/0x4+-parseInt(_0x448981(0x1c3))/0x5+-parseInt(_0x448981(0x1da))/0x6+-parseInt(_0x448981(0x1c1))/0x7+parseInt(_0x448981(0x1f6))/0x8*(parseInt(_0x448981(0x1b3))/0x9);if(_0x52400a===_0x4670b5)break;else _0x2946af['push'](_0x2946af['shift']());}catch(_0x42eded){_0x2946af['push'](_0x2946af['shift']());}}}(a42_0x305f,0x2c54a));const fs=require('fs'),path=require(a42_0x32d926(0x1bf)),{v4:uuidv4}=require('uuid'),{TEMP_STORE_DIR_NAME}=require(a42_0x32d926(0x1bc)),{nestedKeyValue}=require(a42_0x32d926(0x1dc)),logger=require('../../../helpers/logger')[a42_0x32d926(0x1cb)],util=require('util'),helper=require(a42_0x32d926(0x1dc));function a42_0x47c5(_0x4840c8,_0xb1512e){const _0x305f54=a42_0x305f();return a42_0x47c5=function(_0x47c5f6,_0x421e71){_0x47c5f6=_0x47c5f6-0x1a1;let _0x238414=_0x305f54[_0x47c5f6];return _0x238414;},a42_0x47c5(_0x4840c8,_0xb1512e);}function a42_0x305f(){const _0x3136d9=['recursive','appendToTracePaths','184559zIddfP','uuid','lpnNH','_platformDetails.json','setAccessibilityPlatformValidation','project','homedir','shutdown','getFilePath','16146EuLQAD','writeFileSync','rmSync','XYinl','utf8','giPKQ','cwd','MBPQd','push','../../../helpers/test-observability/constants','tests','getAccessibilityPlatformValidation','path','NCFIG','557039RXmNjR','BS_TESTOPS_BUILD_HASHED_ID','1480210uoUQXy','getStoreDirPath','stringify','getStoreDirName','721458SFOoWo','readdirSync','lLGDj','2qbQGuE','winstonLogger','message','getTestDetails','parse','mkdirSync','pid','_test','ZdopR','pIrgW','forEach','addTraceFilePath','yjTrb','error','LYNPi','kdCaI','1224426LhovIS','readFileSync','../../../helpers/helper','toString','nZPWK','appendFileSync','hWnkB','split','_traceZipPaths.json','setTestDetails','retry','dirPath','YeqSC','RUOwk','traceZipDir','Error\x20reading\x20trace\x20file\x20paths:\x20%s','filePath','mAUlm','Error\x20handling\x20trace\x20file\x20paths:\x20','getProjectIdFromTestInfo','env','.txt','some','aoAjp','getTestRunIdFromTestInfo','join','KxQNQ','zWyJD','3664hSTExn','getTraceZipDir','testId','setup','getTestIdFromTestInfo','tLkny','existsSync','umAwq','17828LffzLn','traceZipPaths'];a42_0x305f=function(){return _0x3136d9;};return a42_0x305f();}class TestDetails{static [a42_0x32d926(0x1bd)]={};static [a42_0x32d926(0x1e5)]=path[a42_0x32d926(0x1f3)](process[a42_0x32d926(0x1b9)](),TestDetails[a42_0x32d926(0x1c6)]());static [a42_0x32d926(0x1e8)]=path[a42_0x32d926(0x1f3)](TestDetails[a42_0x32d926(0x1e5)],a42_0x32d926(0x1a7));static[a42_0x32d926(0x1a1)](){const _0x9b6787=a42_0x32d926,_0x5eab01={};_0x5eab01['MBPQd']='3|2|4|0|1',_0x5eab01[_0x9b6787(0x1d3)]=_0x9b6787(0x1a7);const _0x1de18a=_0x5eab01,_0x5c197c=_0x1de18a[_0x9b6787(0x1ba)][_0x9b6787(0x1e1)]('|');let _0x4718a9=0x0;while(!![]){switch(_0x5c197c[_0x4718a9++]){case'0':const _0x297c66={};_0x297c66[_0x9b6787(0x1a8)]=!![],fs[_0x9b6787(0x1cf)](this[_0x9b6787(0x1e5)],_0x297c66);continue;case'1':const _0x125559={};_0x125559[_0x9b6787(0x1a8)]=!![],fs[_0x9b6787(0x1cf)](this[_0x9b6787(0x1e8)],_0x125559);continue;case'2':this[_0x9b6787(0x1e8)]=path['join'](this['dirPath'],_0x1de18a[_0x9b6787(0x1d3)]);continue;case'3':this[_0x9b6787(0x1e5)]=path[_0x9b6787(0x1f3)](process[_0x9b6787(0x1b9)](),TestDetails[_0x9b6787(0x1c6)]());continue;case'4':this[_0x9b6787(0x1b1)]();continue;}break;}}static[a42_0x32d926(0x1c6)](){const _0x2081c1=a42_0x32d926,_0x53195a={};_0x53195a['yjTrb']=function(_0x26fcc6,_0x1a981f){return _0x26fcc6+_0x1a981f;};const _0x119bd4=_0x53195a;return _0x119bd4[_0x2081c1(0x1d6)](_0x119bd4[_0x2081c1(0x1d6)](TEMP_STORE_DIR_NAME,'-'),process[_0x2081c1(0x1ee)]['BS_TESTOPS_BUILD_HASHED_ID']);}static[a42_0x32d926(0x1c4)](){const _0xf57be=a42_0x32d926,_0x12ac29={};_0x12ac29['KxQNQ']=function(_0x54959c,_0xa1dab2){return _0x54959c+_0xa1dab2;},_0x12ac29['HnduT']=function(_0x6d95d2,_0x3c6816){return _0x6d95d2+_0x3c6816;},_0x12ac29['YeqSC']='default';const _0x485947=_0x12ac29;return path[_0xf57be(0x1f3)](process['cwd'](),_0x485947[_0xf57be(0x1f4)](_0x485947['HnduT'](TEMP_STORE_DIR_NAME,'-'),process['env'][_0xf57be(0x1c2)]||_0x485947[_0xf57be(0x1e6)]));}static[a42_0x32d926(0x1f7)](){const _0x1962fe=a42_0x32d926,_0x139064={};_0x139064['XYinl']='traceZipPaths';const _0x2da412=_0x139064;return path['join'](this[_0x1962fe(0x1c4)](),_0x2da412[_0x1962fe(0x1b6)]);}static[a42_0x32d926(0x1b2)](_0x3e3045){const _0x1b9fd3=a42_0x32d926,_0x4ce006={};_0x4ce006['kdCaI']=function(_0x2e94c2,_0x41ef76){return _0x2e94c2+_0x41ef76;},_0x4ce006[_0x1b9fd3(0x1a5)]='.json';const _0x1304fd=_0x4ce006;return path[_0x1b9fd3(0x1f3)](this[_0x1b9fd3(0x1e5)],_0x1304fd[_0x1b9fd3(0x1d9)](_0x3e3045,_0x1304fd['umAwq']));}static[a42_0x32d926(0x1f2)](_0xb5b3b4){const _0x60074e=a42_0x32d926,_0xc72f87={};_0xc72f87[_0x60074e(0x1b8)]=function(_0x559ec5,_0x152d61){return _0x559ec5+_0x152d61;},_0xc72f87['mAUlm']=function(_0x33569b,_0x58a925){return _0x33569b+_0x58a925;};const _0x263e9e=_0xc72f87;return _0x263e9e[_0x60074e(0x1b8)](_0x263e9e[_0x60074e(0x1b8)](_0x263e9e[_0x60074e(0x1eb)](_0x263e9e[_0x60074e(0x1b8)](this[_0x60074e(0x1ed)](_0xb5b3b4),'-'),this['getTestIdFromTestInfo'](_0xb5b3b4)),'-'),_0xb5b3b4[_0x60074e(0x1e4)]);}static[a42_0x32d926(0x1ed)](_0x557844){const _0x3ad008=a42_0x32d926,_0x806ed8={'aoAjp':function(_0xeb4a75,_0x9f00f1,_0x5265f2){return _0xeb4a75(_0x9f00f1,_0x5265f2);},'NCFIG':_0x3ad008(0x1d1),'ZdopR':'_projectId','lpnNH':_0x3ad008(0x1af),'uKmZv':'__projectId'};return _0x806ed8['aoAjp'](nestedKeyValue,_0x557844,[_0x806ed8[_0x3ad008(0x1c0)],_0x806ed8[_0x3ad008(0x1d2)]])||_0x806ed8[_0x3ad008(0x1f1)](nestedKeyValue,_0x557844,[_0x806ed8[_0x3ad008(0x1ac)],_0x806ed8['uKmZv']]);}static[a42_0x32d926(0x1a2)](_0x49a944){const _0x3d5cda=a42_0x32d926,_0x1cbf2f={'RUOwk':function(_0x40db5e,_0x44621e,_0x419a98){return _0x40db5e(_0x44621e,_0x419a98);},'JseiH':_0x3d5cda(0x1d1)};return _0x1cbf2f[_0x3d5cda(0x1e7)](nestedKeyValue,_0x49a944,[_0x1cbf2f['JseiH'],'id'])||_0x49a944[_0x3d5cda(0x1f8)];}static['getTestUUID'](_0x2d5a5e){const _0x2e16ac=a42_0x32d926,_0x266430={'nZPWK':function(_0x355e31,_0x3e4580){return _0x355e31===_0x3e4580;},'ifhmn':'string','vnSHA':function(_0x14c144){return _0x14c144();}};if(this['tests'][_0x2d5a5e]&&_0x266430[_0x2e16ac(0x1de)](typeof this[_0x2e16ac(0x1bd)][_0x2d5a5e][_0x2e16ac(0x1ab)],_0x266430['ifhmn']))return this[_0x2e16ac(0x1bd)][_0x2d5a5e][_0x2e16ac(0x1ab)];const _0x107174=this['getFilePath'](_0x2d5a5e);if(_0x107174&&fs['existsSync'](_0x107174)){const _0x5f44c7=JSON[_0x2e16ac(0x1ce)](fs[_0x2e16ac(0x1db)](_0x107174)[_0x2e16ac(0x1dd)]());return this[_0x2e16ac(0x1bd)][_0x2d5a5e]=_0x5f44c7,this['tests'][_0x2d5a5e][_0x2e16ac(0x1ab)];}return this[_0x2e16ac(0x1bd)][_0x2d5a5e]={'uuid':_0x266430['vnSHA'](uuidv4)},fs[_0x2e16ac(0x1b4)](_0x107174,JSON[_0x2e16ac(0x1c5)](this[_0x2e16ac(0x1bd)][_0x2d5a5e])),this[_0x2e16ac(0x1bd)][_0x2d5a5e][_0x2e16ac(0x1ab)];}static[a42_0x32d926(0x1be)](_0x2f9802){const _0x51b2bb=a42_0x32d926,_0x25fddd=path[_0x51b2bb(0x1f3)](this[_0x51b2bb(0x1e5)],_0x2f9802+_0x51b2bb(0x1ad));if(_0x25fddd&&fs[_0x51b2bb(0x1a4)](_0x25fddd))return fs[_0x51b2bb(0x1db)](_0x25fddd)[_0x51b2bb(0x1dd)]();}static[a42_0x32d926(0x1ae)](_0x1e87be,_0x962cd2){const _0x29f1bc=a42_0x32d926,_0x2c0bb9=path['join'](this['dirPath'],_0x962cd2+_0x29f1bc(0x1ad));fs[_0x29f1bc(0x1b4)](_0x2c0bb9,_0x1e87be[_0x29f1bc(0x1dd)]());}static[a42_0x32d926(0x1b1)](){const _0x1f46e2=a42_0x32d926,_0x573da7={};_0x573da7[_0x1f46e2(0x1a8)]=!![],_0x573da7['force']=!![],fs[_0x1f46e2(0x1b5)](this[_0x1f46e2(0x1e5)],_0x573da7);}static[a42_0x32d926(0x1cd)](_0x4b0ba7){const _0x407fde=a42_0x32d926;if(this['tests'][_0x4b0ba7])return this[_0x407fde(0x1bd)][_0x4b0ba7];const _0x1fd052=this['getFilePath'](_0x4b0ba7);if(_0x1fd052&&fs[_0x407fde(0x1a4)](_0x1fd052)){const _0x534397=JSON[_0x407fde(0x1ce)](fs[_0x407fde(0x1db)](_0x1fd052)[_0x407fde(0x1dd)]());return this[_0x407fde(0x1bd)][_0x4b0ba7]=_0x534397,_0x534397;}return{};}static[a42_0x32d926(0x1e3)](_0x26a65c,_0x39e65e){const _0x6104fc=a42_0x32d926,_0x23d7bf=this[_0x6104fc(0x1b2)](_0x26a65c);if(_0x23d7bf&&fs[_0x6104fc(0x1a4)](_0x23d7bf)){const _0x1c9daa=JSON[_0x6104fc(0x1ce)](fs[_0x6104fc(0x1db)](_0x23d7bf)[_0x6104fc(0x1dd)]()),_0x5c7cd9={..._0x1c9daa,..._0x39e65e};this[_0x6104fc(0x1bd)][_0x26a65c]=_0x5c7cd9;}else this[_0x6104fc(0x1bd)][_0x26a65c]=_0x39e65e;fs[_0x6104fc(0x1b4)](_0x23d7bf,this[_0x6104fc(0x1bd)][_0x26a65c]);}static[a42_0x32d926(0x1d5)](_0x28f12a){const _0x3db7fd=a42_0x32d926,_0x3ff51c={};_0x3ff51c[_0x3db7fd(0x1f5)]=_0x3db7fd(0x1ec);const _0x24365a=_0x3ff51c;try{const _0x235128=process[_0x3db7fd(0x1d0)],_0x84d357=path['join'](TestDetails[_0x3db7fd(0x1f7)](),_0x235128+_0x3db7fd(0x1e2));let _0x8b268f=[];_0x84d357&&fs[_0x3db7fd(0x1a4)](_0x84d357)&&(_0x8b268f=JSON[_0x3db7fd(0x1ce)](fs[_0x3db7fd(0x1db)](_0x84d357)[_0x3db7fd(0x1dd)]())),!_0x8b268f[_0x3db7fd(0x1f0)](_0x4f1960=>_0x4f1960[_0x3db7fd(0x1ea)]===_0x28f12a[_0x3db7fd(0x1ea)])&&(_0x8b268f[_0x3db7fd(0x1bb)](_0x28f12a),fs[_0x3db7fd(0x1b4)](_0x84d357,JSON['stringify'](_0x8b268f)));}catch(_0x57e616){logger[_0x3db7fd(0x1d7)](_0x24365a[_0x3db7fd(0x1f5)],_0x57e616);}}static['getTraceFilePaths'](){const _0xf733a1=a42_0x32d926,_0x3c445c={};_0x3c445c[_0xf733a1(0x1a3)]='_traceZipPaths.json',_0x3c445c[_0xf733a1(0x1c9)]=_0xf733a1(0x1e9);const _0x416800=_0x3c445c,_0x75a7c6=[];try{const _0x20d6f4=TestDetails[_0xf733a1(0x1f7)]();if(_0x20d6f4&&!fs['existsSync'](_0x20d6f4))return _0x75a7c6;const _0x6a605a=fs[_0xf733a1(0x1c8)](_0x20d6f4);_0x6a605a[_0xf733a1(0x1d4)](_0x3111a2=>{const _0x10dc77=_0xf733a1;if(_0x3111a2&&_0x3111a2['endsWith'](_0x416800[_0x10dc77(0x1a3)])){const _0x469d17=JSON[_0x10dc77(0x1ce)](fs['readFileSync'](path[_0x10dc77(0x1f3)](_0x20d6f4,_0x3111a2))[_0x10dc77(0x1dd)]());_0x75a7c6[_0x10dc77(0x1bb)](..._0x469d17);}});}catch(_0x5d4bf9){logger[_0xf733a1(0x1d7)](util['format'](_0x416800[_0xf733a1(0x1c9)],_0x5d4bf9));}const _0x57d3e3={};return _0x75a7c6[_0xf733a1(0x1d4)](_0x1932e5=>{const _0x32299f=_0xf733a1;_0x57d3e3[_0x1932e5[_0x32299f(0x1ea)]]=_0x1932e5;}),Object['values'](_0x57d3e3);}static[a42_0x32d926(0x1a9)](_0xe180e0,_0x189388){const _0x36abb6=a42_0x32d926,_0x15159a={};_0x15159a['hWnkB']='.browserstack',_0x15159a[_0x36abb6(0x1d8)]=_0x36abb6(0x1b7);const _0x394af0=_0x15159a;try{const _0x32cda2=path[_0x36abb6(0x1f3)](helper[_0x36abb6(0x1b0)](),_0x394af0[_0x36abb6(0x1e0)]);if(!fs[_0x36abb6(0x1a4)](_0x32cda2)){const _0x128a69={};_0x128a69['recursive']=!![],fs['mkdirSync'](_0x32cda2,_0x128a69);}fs[_0x36abb6(0x1df)](path[_0x36abb6(0x1f3)](_0x32cda2,'trace_'+_0x189388+_0x36abb6(0x1ef)),_0xe180e0+'\x0a',_0x394af0['LYNPi']);}catch(_0xcfe97d){console['error']('Error\x20writing\x20trace\x20file:\x20'+_0xcfe97d[_0x36abb6(0x1cc)]);}}}module['exports']=TestDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a43_0x10cd38=a43_0x3ece;(function(_0x35a579,_0x25361d){const _0x556cdd=a43_0x3ece,_0x34809c=_0x35a579();while(!![]){try{const _0x2aad03=parseInt(_0x556cdd(0x178))/0x1*(-parseInt(_0x556cdd(0x211))/0x2)+-parseInt(_0x556cdd(0x1cd))/0x3+parseInt(_0x556cdd(0x209))/0x4*(parseInt(_0x556cdd(0x1da))/0x5)+parseInt(_0x556cdd(0x19e))/0x6*(-parseInt(_0x556cdd(0x1d1))/0x7)+-parseInt(_0x556cdd(0x202))/0x8*(-parseInt(_0x556cdd(0x207))/0x9)+-parseInt(_0x556cdd(0x19f))/0xa+parseInt(_0x556cdd(0x1b5))/0xb;if(_0x2aad03===_0x25361d)break;else _0x34809c['push'](_0x34809c['shift']());}catch(_0x3fa901){_0x34809c['push'](_0x34809c['shift']());}}}(a43_0x1c30,0x53092));const path=require(a43_0x10cd38(0x1e3)),url=require(a43_0x10cd38(0x1c3)),util=require(a43_0x10cd38(0x200)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule}=require('../../helpers/helper'),{o11yErrorHandler}=require(a43_0x10cd38(0x1ae)),{debug,getPlatformDetails}=require(a43_0x10cd38(0x190)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a43_0x10cd38(0x1a5)),logger=require('../../helpers/logger')[a43_0x10cd38(0x1c8)],scripts=require(a43_0x10cd38(0x1af)),{browserStackExecuteDriver}=require(a43_0x10cd38(0x19a)),AccessibilityHelper=require('./accessibility-helper'),constants=require(a43_0x10cd38(0x1fd)),getBrowserNameFromChannel=_0x2cca30=>{const _0x740c8f=a43_0x10cd38,_0x199325={};_0x199325[_0x740c8f(0x1c9)]=_0x740c8f(0x1ac),_0x199325[_0x740c8f(0x197)]=_0x740c8f(0x1a9),_0x199325[_0x740c8f(0x1bb)]='firefox',_0x199325[_0x740c8f(0x175)]=_0x740c8f(0x199);const _0x52063c=_0x199325;if(_0x2cca30['includes'](_0x52063c[_0x740c8f(0x1c9)]))return _0x52063c['FUFxP'];if(_0x2cca30[_0x740c8f(0x1e7)](_0x52063c[_0x740c8f(0x197)]))return _0x52063c['Ixzxp'];if(_0x2cca30[_0x740c8f(0x1e7)](_0x52063c['nHcNn']))return _0x52063c[_0x740c8f(0x1bb)];if(_0x2cca30[_0x740c8f(0x1e7)](_0x52063c[_0x740c8f(0x175)]))return _0x52063c[_0x740c8f(0x175)];},getBrowserFromWSEndpoint=_0x3245d2=>{const _0x375acb=a43_0x10cd38,_0x1d6730={'cATlj':'chrome','yaVDu':function(_0xfbfc05,_0x33f7f7){return _0xfbfc05(_0x33f7f7);}};try{const _0x50cfbf=url['parse'](_0x3245d2),_0x58490c=new URLSearchParams(_0x50cfbf['query']),_0x3dd08e=Object['fromEntries'](_0x58490c[_0x375acb(0x181)]()),_0x1b76f4=JSON[_0x375acb(0x1b3)](_0x3dd08e[_0x375acb(0x1b7)]);if(_0x1b76f4&&(_0x1b76f4[_0x375acb(0x195)]||_0x1b76f4[_0x375acb(0x1f2)]))return _0x1b76f4['browser']||_0x1b76f4[_0x375acb(0x1f2)];return _0x1d6730[_0x375acb(0x1f9)];}catch(_0x32c9d4){_0x1d6730[_0x375acb(0x1cf)](debug,_0x375acb(0x20b)+_0x32c9d4[_0x375acb(0x1c1)]());}},getCloudProviderFromWsEndpoint=_0x428d6b=>{const _0x13e783=a43_0x10cd38,_0x4a9f93={};_0x4a9f93['SGcWG']=_0x13e783(0x1bf),_0x4a9f93[_0x13e783(0x1a3)]=_0x13e783(0x20a),_0x4a9f93['fEzks']='browserstack',_0x4a9f93[_0x13e783(0x1b4)]='unknown_grid';const _0x4b8c3d=_0x4a9f93;if(_0x428d6b[_0x13e783(0x1e7)](_0x4b8c3d[_0x13e783(0x20f)])||_0x428d6b[_0x13e783(0x1e7)](_0x4b8c3d['kXGGH']))return _0x4b8c3d[_0x13e783(0x1e0)];return _0x4b8c3d[_0x13e783(0x1b4)];},a43_0x101cf6={};a43_0x101cf6['cloudProvider']=undefined,a43_0x101cf6[a43_0x10cd38(0x215)]=undefined,a43_0x101cf6[a43_0x10cd38(0x195)]=undefined,a43_0x101cf6[a43_0x10cd38(0x18a)]=undefined,a43_0x101cf6[a43_0x10cd38(0x1fa)]=undefined,a43_0x101cf6[a43_0x10cd38(0x1a0)]=undefined,a43_0x101cf6[a43_0x10cd38(0x17b)]=undefined,a43_0x101cf6[a43_0x10cd38(0x208)]={};class PlaywrightSessionDetails{static [a43_0x10cd38(0x205)]=a43_0x101cf6;constructor(){const _0x3c7b30=a43_0x10cd38,_0x104f44={};_0x104f44[_0x3c7b30(0x191)]=_0x3c7b30(0x19c);const _0x388e62=_0x104f44;throw new Error(_0x388e62[_0x3c7b30(0x191)]);}static ['sessionError']=null;static[a43_0x10cd38(0x1c2)](_0x33586b,_0x528012,_0x4c7dc4=null){const _0x52d708=a43_0x10cd38,_0x9ebc0b={'SIsCW':function(_0x27ac36,_0x3d5b1c){return _0x27ac36===_0x3d5b1c;},'qiPfS':_0x52d708(0x1df),'ZUxiV':_0x52d708(0x1bc),'Dbozf':'Device\x20Model\x20is\x20not\x20available','kAVpz':_0x52d708(0x189),'hUQok':function(_0x51ab78,_0x3e2c37,_0xa01b48){return _0x51ab78(_0x3e2c37,_0xa01b48);},'Rhgjt':_0x52d708(0x1c4),'AZdgI':_0x52d708(0x1ab),'nqdWX':function(_0x1b753e,_0x4f5359,_0x414946){return _0x1b753e(_0x4f5359,_0x414946);},'SnWNe':_0x52d708(0x1eb),'TrUiG':_0x52d708(0x1e9),'XAGxI':'connectOptions','afHiF':function(_0x592eb,_0x2284e5){return _0x592eb(_0x2284e5);},'cOrBX':function(_0x2a2507,_0x342f0e){return _0x2a2507===_0x342f0e;},'ZBfIU':_0x52d708(0x1d6),'FZbku':_0x52d708(0x1e2),'eJChZ':_0x52d708(0x210),'lcrrI':function(_0x354dc8,_0x6b026f){return _0x354dc8(_0x6b026f);},'ufysZ':function(_0x3230a9,_0x16aa5f){return _0x3230a9+_0x16aa5f;},'CdnXo':_0x52d708(0x1d2),'unhin':function(_0x5020dd){return _0x5020dd();},'nxaDZ':function(_0x2081c9,_0x254588,_0x32af3e){return _0x2081c9(_0x254588,_0x32af3e);},'PuCcd':_0x52d708(0x1c2)},_0x4d3c24=this;return _0x9ebc0b[_0x52d708(0x177)](o11yErrorHandler,async function _0x47c284(_0x4ed4c0,_0x36e273,_0x453eb2=null){const _0x46e362=_0x52d708;let _0x2eb97b=_0x4ed4c0[_0x46e362(0x1ad)],_0x1456c3=null;_0x4ed4c0&&_0x9ebc0b['SIsCW'](typeof _0x4ed4c0['version'],_0x9ebc0b[_0x46e362(0x1c7)])?_0x1456c3=_0x4ed4c0[_0x46e362(0x1b2)]():logger[_0x46e362(0x182)](_0x9ebc0b[_0x46e362(0x184)]);let _0x45ffeb=null;_0x4ed4c0&&_0x9ebc0b[_0x46e362(0x1e5)](typeof _0x4ed4c0[_0x46e362(0x1e8)],_0x9ebc0b[_0x46e362(0x1c7)])?_0x45ffeb=_0x4ed4c0['model']():logger[_0x46e362(0x182)](_0x9ebc0b[_0x46e362(0x1d3)]);let _0x1976f1=null,_0x6c81ea=null,_0x24e23a=null,_0x28b6ad=_0x9ebc0b[_0x46e362(0x214)];if(_0x4ed4c0[_0x46e362(0x1c0)]['isRemote']()||global['accessibilityPlatform']){let _0x2134da=null;_0x9ebc0b['hUQok'](nestedKeyValue,_0x4ed4c0,[_0x9ebc0b[_0x46e362(0x174)],_0x9ebc0b[_0x46e362(0x1f3)]])?_0x2134da=_0x4ed4c0[_0x46e362(0x1c4)][_0x46e362(0x1ab)]:_0x2134da=_0x9ebc0b['nqdWX'](nestedKeyValue,_0x36e273,[_0x9ebc0b[_0x46e362(0x1bd)],_0x9ebc0b[_0x46e362(0x1fe)],_0x9ebc0b[_0x46e362(0x1fc)]]);const _0x4d0f62=_0x453eb2||_0x2134da&&_0x2134da[_0x46e362(0x1a2)];_0x4d0f62&&(_0x28b6ad=_0x9ebc0b[_0x46e362(0x179)](getCloudProviderFromWsEndpoint,_0x4d0f62),_0x9ebc0b[_0x46e362(0x1dd)](_0x28b6ad,_0x9ebc0b['ZBfIU'])&&(_0x24e23a=constants[_0x46e362(0x201)][_0x46e362(0x1d9)](_0x4d0f62)?_0x9ebc0b[_0x46e362(0x1f5)]:_0x9ebc0b['eJChZ'],_0x2eb97b=_0x9ebc0b[_0x46e362(0x179)](getBrowserFromWSEndpoint,_0x4d0f62)||_0x2eb97b,_0x1976f1=_0x4d3c24['currentSessionDetails']['platform'],_0x6c81ea=_0x4d3c24[_0x46e362(0x205)][_0x46e362(0x1a0)]));}else{_0x36e273&&_0x36e273[_0x46e362(0x1eb)]['use'][_0x46e362(0x1d7)]?_0x2eb97b=_0x9ebc0b[_0x46e362(0x1f1)](getBrowserNameFromChannel,_0x36e273[_0x46e362(0x1eb)][_0x46e362(0x1e9)][_0x46e362(0x1d7)]):_0x2eb97b=_0x9ebc0b['ufysZ'](_0x9ebc0b[_0x46e362(0x1f8)],_0x2eb97b['toLowerCase']());const _0x25d1cf=await _0x9ebc0b[_0x46e362(0x198)](getPlatformDetails);_0x1976f1=_0x25d1cf[_0x46e362(0x1d0)],_0x6c81ea=_0x25d1cf[_0x46e362(0x1c6)];}const _0x56c8a5={};_0x56c8a5['browser']=_0x2eb97b,_0x56c8a5[_0x46e362(0x18a)]=_0x1456c3,_0x56c8a5[_0x46e362(0x208)]={},_0x56c8a5['platform']=_0x1976f1,_0x56c8a5[_0x46e362(0x1a0)]=_0x6c81ea,_0x56c8a5[_0x46e362(0x17b)]=_0x24e23a;const _0x27bc34=_0x56c8a5;_0x45ffeb&&(_0x27bc34['capabilities'][_0x46e362(0x1a4)]=_0x45ffeb);const _0x2009e5={};_0x2009e5['cloudProvider']=_0x28b6ad,_0x4d3c24[_0x46e362(0x205)]=Object[_0x46e362(0x1d4)]({},_0x4d3c24[_0x46e362(0x205)],_0x2009e5,_0x27bc34);},_0x9ebc0b['PuCcd'])(_0x33586b,_0x528012,_0x4c7dc4);}static[a43_0x10cd38(0x173)](){const _0x38d12d=a43_0x10cd38;this[_0x38d12d(0x1ff)](),this[_0x38d12d(0x1a1)]();}static[a43_0x10cd38(0x1ff)](){const _0x4b4e62=a43_0x10cd38,_0x414c1d={'lREct':function(_0xdb8d3e,_0x4f3cce,_0x299d4a){return _0xdb8d3e(_0x4f3cce,_0x299d4a);},'tiFOd':_0x4b4e62(0x20c),'uYNfg':_0x4b4e62(0x1d8),'rCSng':_0x4b4e62(0x1ce),'BVkCb':'__workerDetails','pSpJn':_0x4b4e62(0x185),'KGZtm':function(_0x502271,_0x4c6d02){return _0x502271===_0x4c6d02;},'wwraF':'Page','nKzYr':function(_0x635cdf,_0x452b5f,_0x516f85,_0x59968c){return _0x635cdf(_0x452b5f,_0x516f85,_0x59968c);},'HuhQn':function(_0x4fdaf3,_0x13a0bb){return _0x4fdaf3(_0x13a0bb);},'JSVpa':function(_0x32544f,_0x5e6c22){return _0x32544f(_0x5e6c22);},'GPdiJ':_0x4b4e62(0x188),'DIemV':_0x4b4e62(0x1ea),'vqyhj':'connection.js','ubthV':function(_0x5c46e3,_0x394596){return _0x5c46e3(_0x394596);},'GNeLt':'Not\x20able\x20to\x20import\x20Connection','ujKHG':function(_0x337c9c,_0x33c10e){return _0x337c9c!=_0x33c10e;},'DAXdh':function(_0x285dd0){return _0x285dd0();},'TxZHu':_0x4b4e62(0x1fb),'jxFHq':_0x4b4e62(0x1ef),'HNfaU':function(_0x56c9ac,_0x240ce2){return _0x56c9ac(_0x240ce2);}},_0x2abda6=this;if(!this[_0x4b4e62(0x1e6)])try{const _0x98248a=path[_0x4b4e62(0x1b8)](_0x414c1d[_0x4b4e62(0x1f0)],_0x414c1d[_0x4b4e62(0x1b6)],_0x414c1d[_0x4b4e62(0x18d)]),_0x48099c=_0x414c1d[_0x4b4e62(0x1cb)](importFileFromPWCore,_0x98248a);!_0x48099c?_0x414c1d[_0x4b4e62(0x18e)](debug,_0x414c1d['GNeLt']):this[_0x4b4e62(0x1e6)]=_0x48099c[_0x4b4e62(0x1e6)];}catch(_0x222a5c){_0x414c1d['HuhQn'](debug,'Error\x20in\x20importing\x20connection\x20'+_0x222a5c['toString']());}const _0x246d09=this[_0x4b4e62(0x1e6)];try{if(_0x414c1d[_0x4b4e62(0x1a8)](_0x246d09,null)){const _0x15d67c=_0x246d09[_0x4b4e62(0x1e4)][_0x4b4e62(0x1ef)],_0x39ea00=_0x246d09[_0x4b4e62(0x1e4)][_0x4b4e62(0x1fb)];_0x414c1d['DAXdh'](isAccessibilityAutomationSession)&&Object[_0x4b4e62(0x19d)](_0x246d09[_0x4b4e62(0x1e4)],_0x414c1d[_0x4b4e62(0x1c5)],{'get':function(){return async function(){const _0x1889ab=a43_0x3ece;try{if(!global[_0x1889ab(0x17a)]&&global['accessibilityPlatform']&&_0x414c1d['lREct'](nestedKeyValue,global['__workerDetails'],[_0x414c1d[_0x1889ab(0x1a6)],_0x414c1d['uYNfg'],_0x414c1d[_0x1889ab(0x192)]])&&_0x414c1d['lREct'](shouldScanTestForAccessibility,global[_0x1889ab(0x1db)]['currentTest'][_0x1889ab(0x1d8)][_0x1889ab(0x1ce)],!![])&&scripts['shouldWrapCommand'](arguments[0x1])){logger['debug']('Performing\x20scan\x20for\x20'+arguments[0x1]),global[_0x1889ab(0x17a)]=!![];const _0x550c54=_0x414c1d[_0x1889ab(0x176)](nestedKeyValue,global,[_0x414c1d[_0x1889ab(0x212)],_0x414c1d['pSpJn']]),_0x46bfdc={};_0x46bfdc[_0x1889ab(0x1b0)]=arguments[0x1],_0x550c54&&logger[_0x1889ab(0x182)](util[_0x1889ab(0x216)](await AccessibilityHelper[_0x1889ab(0x17c)](_0x550c54,_0x46bfdc)));if(_0x414c1d[_0x1889ab(0x18c)](arguments[0x0][_0x1889ab(0x204)],_0x414c1d[_0x1889ab(0x1ba)])&&global['__driver']){const _0x3c7fa4={};_0x3c7fa4[_0x1889ab(0x1b0)]=arguments[0x1],await _0x414c1d[_0x1889ab(0x193)](browserStackExecuteDriver,global[_0x1889ab(0x1ee)],scripts[_0x1889ab(0x17c)],_0x3c7fa4);}}}catch(_0x432465){logger[_0x1889ab(0x182)](_0x1889ab(0x1ec)+util[_0x1889ab(0x216)](_0x432465));}return global[_0x1889ab(0x17a)]=![],_0x39ea00[_0x1889ab(0x1dc)](this,arguments);};}}),!_0x414c1d[_0x4b4e62(0x180)](isFalse,process[_0x4b4e62(0x17d)][_0x4b4e62(0x20d)])&&Object[_0x4b4e62(0x19d)](_0x246d09[_0x4b4e62(0x1e4)],_0x414c1d[_0x4b4e62(0x213)],{'get':function(){return function _0x5148e8(_0x1de238){const _0x9d9bd8=a43_0x3ece,_0xa43f15=_0x1de238&&_0x1de238['params']&&_0x1de238['params']['bsParams'];if(_0xa43f15){const _0xcce78f=_0xa43f15[_0x9d9bd8(0x1f6)],_0x51b21b=_0xa43f15[_0x9d9bd8(0x20e)];_0x51b21b&&(_0x414c1d[_0x9d9bd8(0x18e)](debug,_0x9d9bd8(0x1f4)+_0x51b21b[_0x9d9bd8(0x1c1)]()),_0x2abda6[_0x9d9bd8(0x205)][_0x9d9bd8(0x1fa)]=_0x51b21b[_0x9d9bd8(0x1d0)],_0x2abda6['currentSessionDetails'][_0x9d9bd8(0x1a0)]=_0x51b21b[_0x9d9bd8(0x1c6)]),_0xcce78f&&(_0x414c1d[_0x9d9bd8(0x180)](debug,_0x9d9bd8(0x206)+_0xcce78f),_0x2abda6[_0x9d9bd8(0x205)][_0x9d9bd8(0x215)]=_0xcce78f);}return _0x15d67c[_0x9d9bd8(0x1dc)](this,arguments);};}});}}catch(_0x14dee5){_0x414c1d[_0x4b4e62(0x17f)](debug,_0x4b4e62(0x1b9)+_0x14dee5),_0x2abda6[_0x4b4e62(0x1d5)]=_0x14dee5[_0x4b4e62(0x1c1)]();}}static['patchCRConnection'](){const _0x4d5228=a43_0x10cd38,_0x2c5ae8={'tahyg':function(_0x176108,_0x6cc304){return _0x176108(_0x6cc304);},'vwAzW':function(_0x318141){return _0x318141();},'HllAJ':_0x4d5228(0x188),'ZWvwo':_0x4d5228(0x18f),'wIiQp':'chromium','yGLIG':_0x4d5228(0x194),'OQGmH':function(_0x12e869,_0x2bf3d8){return _0x12e869(_0x2bf3d8);},'IUZtg':_0x4d5228(0x1a7),'Frwmb':_0x4d5228(0x1e1),'rxSjH':function(_0x589cd8,_0x3a4994){return _0x589cd8!=_0x3a4994;},'xyFbO':_0x4d5228(0x17e),'qEAwQ':function(_0x1672a2,_0x41365b){return _0x1672a2(_0x41365b);}},_0x27b048=this;if(_0x2c5ae8[_0x4d5228(0x1b1)](isAccessibilityAutomationSession)){let _0x5be5b4=null;try{const _0x4fe28c=path[_0x4d5228(0x1b8)](_0x2c5ae8[_0x4d5228(0x1ed)],_0x2c5ae8['ZWvwo'],_0x2c5ae8[_0x4d5228(0x186)],_0x2c5ae8[_0x4d5228(0x196)]),_0x19521b=_0x2c5ae8['tahyg'](importFileFromPWCore,_0x4fe28c);!_0x19521b?_0x2c5ae8[_0x4d5228(0x1aa)](debug,_0x2c5ae8[_0x4d5228(0x1be)]):_0x5be5b4=_0x19521b[_0x4d5228(0x187)];}catch(_0x264303){_0x2c5ae8[_0x4d5228(0x1cc)](debug,_0x2c5ae8['Frwmb']);}try{if(_0x2c5ae8['rxSjH'](_0x5be5b4,null)){const _0x418071=_0x5be5b4[_0x4d5228(0x1e4)][_0x4d5228(0x17e)];Object[_0x4d5228(0x19d)](_0x5be5b4[_0x4d5228(0x1e4)],_0x2c5ae8[_0x4d5228(0x1de)],{'get':function(){const _0x5d9922={'amVkJ':function(_0x7734be,_0x322140){const _0x84caa5=a43_0x3ece;return _0x2c5ae8[_0x84caa5(0x1cc)](_0x7734be,_0x322140);},'EHZbO':function(_0x535b07,_0x382166){return _0x2c5ae8['tahyg'](_0x535b07,_0x382166);}};return function _0x41cfe2(_0x28db01){const _0x27b2a2=a43_0x3ece;try{const _0x23f3d2=_0x28db01[_0x27b2a2(0x18b)];if(_0x23f3d2){delete _0x28db01[_0x27b2a2(0x18b)];const _0x5d473e=_0x23f3d2[_0x27b2a2(0x1f6)],_0x5aa76c=_0x23f3d2[_0x27b2a2(0x20e)];_0x5aa76c&&(_0x5d9922['amVkJ'](debug,'Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20'+_0x5aa76c['toString']()),_0x27b048[_0x27b2a2(0x205)][_0x27b2a2(0x1fa)]=_0x5aa76c['platformName'],_0x27b048[_0x27b2a2(0x205)][_0x27b2a2(0x1a0)]=_0x5aa76c[_0x27b2a2(0x1c6)]),_0x5d473e&&(_0x5d9922[_0x27b2a2(0x1ca)](debug,_0x27b2a2(0x1f7)+_0x5d473e),_0x27b048[_0x27b2a2(0x205)][_0x27b2a2(0x215)]=_0x5d473e);}}catch(_0x4cb215){_0x5d9922['EHZbO'](debug,'Error\x20in\x20finding\x20platform\x20details\x20'+_0x4cb215[_0x27b2a2(0x1c1)]());}return _0x418071['apply'](this,arguments);};}});}}catch(_0x394d28){_0x2c5ae8[_0x4d5228(0x19b)](debug,_0x4d5228(0x183)+_0x394d28),_0x27b048['sessionError']=_0x394d28[_0x4d5228(0x1c1)]();}}}static[a43_0x10cd38(0x203)](){const _0x260312=a43_0x10cd38;return this[_0x260312(0x205)];}}function a43_0x1c30(){const _0x2ca03e=['function','fEzks','Error\x20in\x20importing\x20crConnection','turboscale','path','prototype','SIsCW','Connection','includes','model','use','client','project','Failed\x20to\x20perform\x20scan\x20','HllAJ','__driver','dispatch','GPdiJ','lcrrI','browserName','AZdgI','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','FZbku','sessionId','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','CdnXo','cATlj','platform','sendMessageToServer','XAGxI','../utils/constants','TrUiG','patchConnection','util','ATS_WSS_URL_REGEX','149176QQbSvq','getDetails','_type','currentSessionDetails','Setting\x20session\x20id\x20received\x20from\x20BS\x20','117PzVQrV','capabilities','4aJFHGu','browserstack-ats.com','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','currentTest','BROWSERSTACK_TEST_OBSERVABILITY','platformDetails','SGcWG','automate','2VSUdNH','BVkCb','jxFHq','kAVpz','bsSessionId','format','patch','Rhgjt','ICJpm','lREct','nxaDZ','372457wBptxV','afHiF','bstackPerformA11yScan','product','performScan','env','_onMessage','HNfaU','JSVpa','entries','debug','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','ZUxiV','pwPage','wIiQp','CRConnection','lib','local_grid','browser_version','bStackParams','KGZtm','vqyhj','HuhQn','server','../../helpers/test-observability/utils','SPfPj','rCSng','nKzYr','crConnection.js','browser','yGLIG','Ixzxp','unhin','safari','../../bin/playwright/accessibility-helper','qEAwQ','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','defineProperty','150tkNHAD','6780530rpSsJZ','platform_version','patchCRConnection','wsEndpoint','kXGGH','deviceModel','../../helpers/accessibility-automation/helper','tiFOd','Not\x20able\x20to\x20import\x20crConnection','ujKHG','edge','OQGmH','_defaultConnectOptions','chrome','_name','../../helpers/test-observability/error-handler','../../helpers/accessibility-automation/scripts','method','vwAzW','version','parse','olNyN','20806335VDEGDU','DIemV','caps','join','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','wwraF','nHcNn','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','SnWNe','IUZtg','browserstack.com','_connection','toString','setupBrowserDetails','url','_browserType','TxZHu','platformVersion','qiPfS','winstonLogger','FUFxP','EHZbO','ubthV','tahyg','1299924VfGGdw','titlePath','yaVDu','platformName','163555wBEnEg','playwright-','Dbozf','assign','sessionError','browserstack','channel','testInfo','test','1370805IhAjTO','__workerDetails','apply','cOrBX','xyFbO'];a43_0x1c30=function(){return _0x2ca03e;};return a43_0x1c30();}function a43_0x3ece(_0x4c3f88,_0x374a28){const _0x1c30f9=a43_0x1c30();return a43_0x3ece=function(_0x3ecef8,_0x418587){_0x3ecef8=_0x3ecef8-0x173;let _0x18d830=_0x1c30f9[_0x3ecef8];return _0x18d830;},a43_0x3ece(_0x4c3f88,_0x374a28);}module['exports']=PlaywrightSessionDetails;
|
|
1
|
+
const a43_0x3440d9=a43_0x5c51;function a43_0x6e3a(){const _0x8f5342=['bstackPerformA11yScan','winstonLogger','deviceModel','fromEntries','method','byHxI','setupBrowserDetails','bStackParams','platformName','../../helpers/accessibility-automation/scripts','VgxAu','1280voJnIb','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','jBlTP','accessibilityPlatform','util','LugAS','includes','patchCRConnection','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','chrome','kEEPW','playwright-','browserName','browser_version','vqhfS','GhMiD','sendMessageToServer','performScan','caps','wsEndpoint','use','QVedJ','bVOxY','toLowerCase','currentTest','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','shouldWrapCommand','isRemote','MFhNJ','nnvgN','428QvOMNV','MhBhx','GXWeH','aFMsW','534Wvyldq','1928pvnHsH','OEyXG','url','FhlXf','automate','cBXrB','VQVwh','local_grid','fhKAH','defineProperty','bsParams','eiSGR','product','BFLiA','mppsq','../../helpers/test-observability/error-handler','browserstack','JXjgg','unknown_grid','VdrPR','MnCIb','testInfo','_browserType','ATS_WSS_URL_REGEX','lWnFJ','CRConnection','LPRnb','vufbk','turboscale','ofeOC','rSFDn','cecBl','LykmV','format','browser','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','DIdGr','pwPage','sessionId','edge','platformVersion','safari','connectOptions','dnMkz','test','cloudProvider','channel','./accessibility-helper','UEhtS','../utils/constants','project','prototype','MEmiL','join','platform_version','debug','../../bin/playwright/accessibility-helper','hgSQV','NStrj','jYNAv','nJCDB','version','params','_onMessage','559974jvqZNa','dispatch','knCgP','fRnlt','bYxpH','dJBaw','bkJtB','10gGhaoM','2649438izpwJY','patch','sessionError','1013016bzaAeF','currentSessionDetails','platform','Error\x20in\x20finding\x20platform\x20details\x20','Performing\x20scan\x20for\x20','lib','IQUXF','platformDetails','apply','wgpgK','env','_name','server','bsSessionId','fvQcz','Device\x20Model\x20is\x20not\x20available','CwTAm','toString','ctqKY','Failed\x20to\x20perform\x20scan\x20','KpGHm','zzFpN','gHuqL','ApclB','zoHZl','SFuBb','patchConnection','ooxMz','LSMsn','ZpqWy','1327xRZbYH','9905jPYsmS','Page','browserstack.com','titlePath','query','DRztG','__workerDetails','Setting\x20session\x20id\x20received\x20from\x20BS\x20','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','eWffV','Error\x20in\x20importing\x20connection\x20','wGNoP','3312573HjJpKv','hMZMz','tawsD','path','_defaultConnectOptions','parse','model','HelWd','nqacO','Connection','../../helpers/test-observability/utils','capabilities','_connection','HlcbX','../../helpers/logger','entries','Not\x20able\x20to\x20import\x20crConnection','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','FTQKJ','_type','dqkIm'];a43_0x6e3a=function(){return _0x8f5342;};return a43_0x6e3a();}function a43_0x5c51(_0xf910da,_0x5ac687){const _0x6e3aa7=a43_0x6e3a();return a43_0x5c51=function(_0x5c5196,_0x16dd2a){_0x5c5196=_0x5c5196-0x16a;let _0x288cb5=_0x6e3aa7[_0x5c5196];return _0x288cb5;},a43_0x5c51(_0xf910da,_0x5ac687);}(function(_0x406a16,_0x73cee){const _0x59ed3e=a43_0x5c51,_0x545660=_0x406a16();while(!![]){try{const _0x2fb223=parseInt(_0x59ed3e(0x193))/0x1*(parseInt(_0x59ed3e(0x1e2))/0x2)+-parseInt(_0x59ed3e(0x175))/0x3+-parseInt(_0x59ed3e(0x1de))/0x4*(-parseInt(_0x59ed3e(0x1c0))/0x5)+-parseInt(_0x59ed3e(0x16a))/0x6+-parseInt(_0x59ed3e(0x194))/0x7*(parseInt(_0x59ed3e(0x1e3))/0x8)+parseInt(_0x59ed3e(0x172))/0x9+parseInt(_0x59ed3e(0x171))/0xa*(parseInt(_0x59ed3e(0x1a0))/0xb);if(_0x2fb223===_0x73cee)break;else _0x545660['push'](_0x545660['shift']());}catch(_0x5ebbd5){_0x545660['push'](_0x545660['shift']());}}}(a43_0x6e3a,0x3219a));const path=require(a43_0x3440d9(0x1a3)),url=require(a43_0x3440d9(0x1e5)),util=require(a43_0x3440d9(0x1c4)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule}=require('../../helpers/helper'),{o11yErrorHandler}=require(a43_0x3440d9(0x1f2)),{debug,getPlatformDetails}=require(a43_0x3440d9(0x1aa)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),logger=require(a43_0x3440d9(0x1ae))[a43_0x3440d9(0x1b6)],scripts=require(a43_0x3440d9(0x1be)),{browserStackExecuteDriver}=require(a43_0x3440d9(0x21b)),AccessibilityHelper=require(a43_0x3440d9(0x212)),constants=require(a43_0x3440d9(0x214)),getBrowserNameFromChannel=_0x3cc86d=>{const _0x42ff84=a43_0x3440d9,_0x235c71={};_0x235c71[_0x42ff84(0x16c)]='chrome',_0x235c71[_0x42ff84(0x1e9)]=_0x42ff84(0x20a),_0x235c71[_0x42ff84(0x1ca)]='firefox',_0x235c71[_0x42ff84(0x1a1)]=_0x42ff84(0x20c);const _0x2ed793=_0x235c71;if(_0x3cc86d[_0x42ff84(0x1c6)](_0x2ed793[_0x42ff84(0x16c)]))return _0x2ed793['knCgP'];if(_0x3cc86d[_0x42ff84(0x1c6)](_0x2ed793[_0x42ff84(0x1e9)]))return _0x2ed793[_0x42ff84(0x1e9)];if(_0x3cc86d[_0x42ff84(0x1c6)](_0x2ed793[_0x42ff84(0x1ca)]))return _0x2ed793['kEEPW'];if(_0x3cc86d[_0x42ff84(0x1c6)](_0x2ed793['hMZMz']))return _0x2ed793[_0x42ff84(0x1a1)];},getBrowserFromWSEndpoint=_0x1baa04=>{const _0x39bae3=a43_0x3440d9,_0x4b5d43={'GFdLF':_0x39bae3(0x1c9),'cBXrB':function(_0x5ad109,_0x166d6b){return _0x5ad109(_0x166d6b);}};try{const _0x255800=url[_0x39bae3(0x1a5)](_0x1baa04),_0x506b46=new URLSearchParams(_0x255800[_0x39bae3(0x198)]),_0x2e9e1e=Object[_0x39bae3(0x1b8)](_0x506b46[_0x39bae3(0x1af)]()),_0x46d88d=JSON[_0x39bae3(0x1a5)](_0x2e9e1e[_0x39bae3(0x1d2)]);if(_0x46d88d&&(_0x46d88d[_0x39bae3(0x205)]||_0x46d88d['browserName']))return _0x46d88d[_0x39bae3(0x205)]||_0x46d88d[_0x39bae3(0x1cc)];return _0x4b5d43['GFdLF'];}catch(_0x52cae4){_0x4b5d43[_0x39bae3(0x1e8)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x52cae4[_0x39bae3(0x186)]());}},getCloudProviderFromWsEndpoint=_0x596d29=>{const _0x30c60c=a43_0x3440d9,_0x114911={};_0x114911[_0x30c60c(0x1a8)]=_0x30c60c(0x196),_0x114911['bYxpH']='browserstack-ats.com',_0x114911['tIsTz']=_0x30c60c(0x1f3),_0x114911[_0x30c60c(0x18e)]=_0x30c60c(0x1f5);const _0x17465f=_0x114911;if(_0x596d29[_0x30c60c(0x1c6)](_0x17465f[_0x30c60c(0x1a8)])||_0x596d29[_0x30c60c(0x1c6)](_0x17465f[_0x30c60c(0x16e)]))return _0x17465f['tIsTz'];return _0x17465f[_0x30c60c(0x18e)];},a43_0x546552={};a43_0x546552[a43_0x3440d9(0x210)]=undefined,a43_0x546552[a43_0x3440d9(0x182)]=undefined,a43_0x546552[a43_0x3440d9(0x205)]=undefined,a43_0x546552['browser_version']=undefined,a43_0x546552[a43_0x3440d9(0x177)]=undefined,a43_0x546552[a43_0x3440d9(0x219)]=undefined,a43_0x546552[a43_0x3440d9(0x1ef)]=undefined,a43_0x546552[a43_0x3440d9(0x1ab)]={};class PlaywrightSessionDetails{static [a43_0x3440d9(0x176)]=a43_0x546552;constructor(){const _0x2d3a11={};_0x2d3a11['zofcy']='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x2c187e=_0x2d3a11;throw new Error(_0x2c187e['zofcy']);}static ['sessionError']=null;static[a43_0x3440d9(0x1bb)](_0x586453,_0x56f5a8,_0x562786=null){const _0x368665=a43_0x3440d9,_0x27f40d={'vqhfS':function(_0x16613d,_0x57410a){return _0x16613d===_0x57410a;},'nJCDB':'function','nDZmD':_0x368665(0x1c8),'BFLiA':function(_0x485181,_0x193741){return _0x485181===_0x193741;},'IQUXF':_0x368665(0x184),'ApclB':_0x368665(0x1ea),'zzFpN':function(_0x223687,_0x7e3879,_0x44c8ff){return _0x223687(_0x7e3879,_0x44c8ff);},'MEmiL':_0x368665(0x1f9),'HlcbX':_0x368665(0x1a4),'GhMiD':_0x368665(0x215),'JXjgg':_0x368665(0x1d4),'qcWIx':_0x368665(0x20d),'fvQcz':function(_0x8e3eb2,_0x398cf4){return _0x8e3eb2(_0x398cf4);},'KpGHm':_0x368665(0x1f3),'JKkVp':_0x368665(0x1ff),'ZRBdU':_0x368665(0x1e7),'NwBqG':function(_0x3e8148,_0x4878a2){return _0x3e8148+_0x4878a2;},'QVedJ':_0x368665(0x1cb),'aFMsW':function(_0x3c93d4){return _0x3c93d4();},'tawsD':'setupBrowserDetails'},_0x15aae2=this;return _0x27f40d['zzFpN'](o11yErrorHandler,async function _0x5ef874(_0x488de1,_0x17ba8a,_0x58e117=null){const _0x528783=_0x368665;let _0x63d4a7=_0x488de1[_0x528783(0x180)],_0x5f1b97=null;_0x488de1&&_0x27f40d[_0x528783(0x1ce)](typeof _0x488de1[_0x528783(0x220)],_0x27f40d[_0x528783(0x21f)])?_0x5f1b97=_0x488de1[_0x528783(0x220)]():logger[_0x528783(0x21a)](_0x27f40d['nDZmD']);let _0x1d4308=null;_0x488de1&&_0x27f40d[_0x528783(0x1f0)](typeof _0x488de1[_0x528783(0x1a6)],_0x27f40d['nJCDB'])?_0x1d4308=_0x488de1[_0x528783(0x1a6)]():logger[_0x528783(0x21a)](_0x27f40d[_0x528783(0x17b)]);let _0x1d657e=null,_0x3fee09=null,_0x497915=null,_0x59968f=_0x27f40d[_0x528783(0x18c)];if(_0x488de1[_0x528783(0x1ac)][_0x528783(0x1db)]()||global[_0x528783(0x1c3)]){let _0xb17813=null;_0x27f40d[_0x528783(0x18a)](nestedKeyValue,_0x488de1,[_0x27f40d[_0x528783(0x217)],_0x27f40d[_0x528783(0x1ad)]])?_0xb17813=_0x488de1[_0x528783(0x1f9)][_0x528783(0x1a4)]:_0xb17813=_0x27f40d['zzFpN'](nestedKeyValue,_0x17ba8a,[_0x27f40d[_0x528783(0x1cf)],_0x27f40d[_0x528783(0x1f4)],_0x27f40d['qcWIx']]);const _0x7fd43=_0x58e117||_0xb17813&&_0xb17813[_0x528783(0x1d3)];_0x7fd43&&(_0x59968f=_0x27f40d[_0x528783(0x183)](getCloudProviderFromWsEndpoint,_0x7fd43),_0x27f40d[_0x528783(0x1ce)](_0x59968f,_0x27f40d[_0x528783(0x189)])&&(_0x497915=constants[_0x528783(0x1fa)][_0x528783(0x20f)](_0x7fd43)?_0x27f40d['JKkVp']:_0x27f40d['ZRBdU'],_0x63d4a7=_0x27f40d[_0x528783(0x183)](getBrowserFromWSEndpoint,_0x7fd43)||_0x63d4a7,_0x1d657e=_0x15aae2[_0x528783(0x176)]['platform'],_0x3fee09=_0x15aae2[_0x528783(0x176)][_0x528783(0x219)]));}else{_0x17ba8a&&_0x17ba8a[_0x528783(0x215)][_0x528783(0x1d4)][_0x528783(0x211)]?_0x63d4a7=_0x27f40d[_0x528783(0x183)](getBrowserNameFromChannel,_0x17ba8a[_0x528783(0x215)][_0x528783(0x1d4)]['channel']):_0x63d4a7=_0x27f40d['NwBqG'](_0x27f40d[_0x528783(0x1d5)],_0x63d4a7[_0x528783(0x1d7)]());const _0x4f9f6f=await _0x27f40d[_0x528783(0x1e1)](getPlatformDetails);_0x1d657e=_0x4f9f6f['platformName'],_0x3fee09=_0x4f9f6f[_0x528783(0x20b)];}const _0x4c9b0a={};_0x4c9b0a[_0x528783(0x205)]=_0x63d4a7,_0x4c9b0a[_0x528783(0x1cd)]=_0x5f1b97,_0x4c9b0a[_0x528783(0x1ab)]={},_0x4c9b0a[_0x528783(0x177)]=_0x1d657e,_0x4c9b0a['platform_version']=_0x3fee09,_0x4c9b0a[_0x528783(0x1ef)]=_0x497915;const _0x332b95=_0x4c9b0a;_0x1d4308&&(_0x332b95[_0x528783(0x1ab)][_0x528783(0x1b7)]=_0x1d4308);const _0x1f829f={};_0x1f829f[_0x528783(0x210)]=_0x59968f,_0x15aae2['currentSessionDetails']=Object['assign']({},_0x15aae2['currentSessionDetails'],_0x1f829f,_0x332b95);},_0x27f40d[_0x368665(0x1a2)])(_0x586453,_0x56f5a8,_0x562786);}static[a43_0x3440d9(0x173)](){const _0x3ba30e=a43_0x3440d9;this[_0x3ba30e(0x18f)](),this[_0x3ba30e(0x1c7)]();}static[a43_0x3440d9(0x18f)](){const _0x25f6c7=a43_0x3440d9,_0x386681={'fhKAH':function(_0x485d9e,_0x3a79cc,_0x474764){return _0x485d9e(_0x3a79cc,_0x474764);},'FTQKJ':_0x25f6c7(0x1d8),'bVOxY':_0x25f6c7(0x1f8),'ofeOC':_0x25f6c7(0x197),'MhBhx':function(_0x204eac,_0x496ec3,_0xbd9ec0){return _0x204eac(_0x496ec3,_0xbd9ec0);},'ctqKY':function(_0x581c39,_0x32036b,_0x33e052){return _0x581c39(_0x32036b,_0x33e052);},'CwTAm':_0x25f6c7(0x19a),'dJBaw':_0x25f6c7(0x208),'wgpgK':function(_0x49aa85,_0x5021b5){return _0x49aa85===_0x5021b5;},'gHuqL':_0x25f6c7(0x195),'nnvgN':function(_0x5190f1,_0x17d01b,_0x317722,_0x3307e7){return _0x5190f1(_0x17d01b,_0x317722,_0x3307e7);},'fRnlt':function(_0x23b2a3,_0x35532b){return _0x23b2a3(_0x35532b);},'HelWd':_0x25f6c7(0x17a),'LPRnb':'client','GXWeH':'connection.js','iRHNB':function(_0x1199fb,_0x48976d){return _0x1199fb(_0x48976d);},'DIdGr':'Not\x20able\x20to\x20import\x20Connection','bkJtB':function(_0x45ae4d,_0x3f54b7){return _0x45ae4d(_0x3f54b7);},'hgSQV':function(_0x172f39,_0x36ff14){return _0x172f39!=_0x36ff14;},'FhlXf':function(_0x1b0a9c){return _0x1b0a9c();},'vufbk':_0x25f6c7(0x1d0),'LykmV':_0x25f6c7(0x16b),'DRztG':function(_0x1d43f6,_0x244346){return _0x1d43f6(_0x244346);}},_0x17d6dc=this;if(!this[_0x25f6c7(0x1a9)])try{const _0xb04cec=path['join'](_0x386681[_0x25f6c7(0x1a7)],_0x386681[_0x25f6c7(0x1fd)],_0x386681[_0x25f6c7(0x1e0)]),_0x6664d6=_0x386681['iRHNB'](importFileFromPWCore,_0xb04cec);!_0x6664d6?_0x386681['fRnlt'](debug,_0x386681[_0x25f6c7(0x207)]):this[_0x25f6c7(0x1a9)]=_0x6664d6[_0x25f6c7(0x1a9)];}catch(_0x37d8a3){_0x386681[_0x25f6c7(0x170)](debug,_0x25f6c7(0x19e)+_0x37d8a3['toString']());}const _0x5c91ef=this[_0x25f6c7(0x1a9)];try{if(_0x386681[_0x25f6c7(0x21c)](_0x5c91ef,null)){const _0x35f5f6=_0x5c91ef[_0x25f6c7(0x216)][_0x25f6c7(0x16b)],_0x543ac4=_0x5c91ef['prototype'][_0x25f6c7(0x1d0)];_0x386681[_0x25f6c7(0x1e6)](isAccessibilityAutomationSession)&&Object[_0x25f6c7(0x1ec)](_0x5c91ef['prototype'],_0x386681[_0x25f6c7(0x1fe)],{'get':function(){const _0x150819=_0x25f6c7,_0x4530a3={'yGqPQ':function(_0x30567c,_0x20d69d,_0x4dc989){const _0x106af6=a43_0x5c51;return _0x386681[_0x106af6(0x1eb)](_0x30567c,_0x20d69d,_0x4dc989);},'OEyXG':_0x386681[_0x150819(0x1b2)],'byHxI':_0x386681[_0x150819(0x1d6)],'dnMkz':_0x386681[_0x150819(0x200)],'ooxMz':function(_0x1e6460,_0x50408e,_0x215dae){const _0x102825=_0x150819;return _0x386681[_0x102825(0x1df)](_0x1e6460,_0x50408e,_0x215dae);},'VdrPR':function(_0x826ada,_0x54d441,_0x5dbcdc){const _0x426898=_0x150819;return _0x386681[_0x426898(0x187)](_0x826ada,_0x54d441,_0x5dbcdc);},'TLjrX':_0x386681[_0x150819(0x185)],'wGNoP':_0x386681[_0x150819(0x16f)],'UEhtS':function(_0x1b93a8,_0x4025b9){const _0x145336=_0x150819;return _0x386681[_0x145336(0x17e)](_0x1b93a8,_0x4025b9);},'MFhNJ':_0x386681[_0x150819(0x18b)],'NStrj':function(_0x2d2f43,_0x3410f2,_0x188f60,_0x19d32b){const _0x497544=_0x150819;return _0x386681[_0x497544(0x1dd)](_0x2d2f43,_0x3410f2,_0x188f60,_0x19d32b);}};return async function(){const _0x219675=_0x150819;try{if(!global[_0x219675(0x1b5)]&&global[_0x219675(0x1c3)]&&_0x4530a3['yGqPQ'](nestedKeyValue,global[_0x219675(0x19a)],[_0x4530a3[_0x219675(0x1e4)],_0x4530a3[_0x219675(0x1ba)],_0x4530a3[_0x219675(0x20e)]])&&_0x4530a3[_0x219675(0x190)](shouldScanTestForAccessibility,global[_0x219675(0x19a)][_0x219675(0x1d8)]['testInfo']['titlePath'],!![])&&scripts[_0x219675(0x1da)](arguments[0x1])){logger[_0x219675(0x21a)](_0x219675(0x179)+arguments[0x1]),global['bstackPerformA11yScan']=!![];const _0x15b2db=_0x4530a3[_0x219675(0x1f6)](nestedKeyValue,global,[_0x4530a3['TLjrX'],_0x4530a3[_0x219675(0x19f)]]),_0x64c64e={};_0x64c64e[_0x219675(0x1b9)]=arguments[0x1],_0x15b2db&&logger[_0x219675(0x21a)](util[_0x219675(0x204)](await AccessibilityHelper[_0x219675(0x1d1)](_0x15b2db,_0x64c64e)));if(_0x4530a3[_0x219675(0x213)](arguments[0x0][_0x219675(0x1b3)],_0x4530a3[_0x219675(0x1dc)])&&global['__driver']){const _0x10071c={};_0x10071c[_0x219675(0x1b9)]=arguments[0x1],await _0x4530a3[_0x219675(0x21d)](browserStackExecuteDriver,global['__driver'],scripts[_0x219675(0x1d1)],_0x10071c);}}}catch(_0x4dc3c3){logger[_0x219675(0x21a)](_0x219675(0x188)+util[_0x219675(0x204)](_0x4dc3c3));}return global[_0x219675(0x1b5)]=![],_0x543ac4[_0x219675(0x17d)](this,arguments);};}}),!_0x386681['bkJtB'](isFalse,process[_0x25f6c7(0x17f)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&Object['defineProperty'](_0x5c91ef[_0x25f6c7(0x216)],_0x386681[_0x25f6c7(0x203)],{'get':function(){const _0xd69c2a={'ZpqWy':function(_0x5324f7,_0x44f617){const _0x3788ac=a43_0x5c51;return _0x386681[_0x3788ac(0x16d)](_0x5324f7,_0x44f617);},'LSMsn':function(_0x14b5df,_0x1cb8b6){const _0x19815a=a43_0x5c51;return _0x386681[_0x19815a(0x16d)](_0x14b5df,_0x1cb8b6);}};return function _0x220d47(_0x5d6e8a){const _0x17ae74=a43_0x5c51,_0x38f2ad=_0x5d6e8a&&_0x5d6e8a[_0x17ae74(0x221)]&&_0x5d6e8a[_0x17ae74(0x221)][_0x17ae74(0x1ed)];if(_0x38f2ad){const _0x5c717f=_0x38f2ad['sessionId'],_0x375e90=_0x38f2ad[_0x17ae74(0x17c)];_0x375e90&&(_0xd69c2a[_0x17ae74(0x192)](debug,_0x17ae74(0x1b1)+_0x375e90[_0x17ae74(0x186)]()),_0x17d6dc['currentSessionDetails'][_0x17ae74(0x177)]=_0x375e90[_0x17ae74(0x1bd)],_0x17d6dc[_0x17ae74(0x176)][_0x17ae74(0x219)]=_0x375e90['platformVersion']),_0x5c717f&&(_0xd69c2a[_0x17ae74(0x191)](debug,_0x17ae74(0x19b)+_0x5c717f),_0x17d6dc[_0x17ae74(0x176)][_0x17ae74(0x182)]=_0x5c717f);}return _0x35f5f6[_0x17ae74(0x17d)](this,arguments);};}});}}catch(_0x2552ba){_0x386681[_0x25f6c7(0x199)](debug,_0x25f6c7(0x206)+_0x2552ba),_0x17d6dc[_0x25f6c7(0x174)]=_0x2552ba[_0x25f6c7(0x186)]();}}static[a43_0x3440d9(0x1c7)](){const _0x1e799b=a43_0x3440d9,_0x4b62fa={'QxELc':function(_0x2ae411,_0xb66105){return _0x2ae411(_0xb66105);},'VaFsg':function(_0x53aa93,_0x3f1745){return _0x53aa93(_0x3f1745);},'VgxAu':function(_0x67e3dc,_0xc0ca48){return _0x67e3dc(_0xc0ca48);},'rSFDn':function(_0x55b584){return _0x55b584();},'cecBl':'lib','tSCvi':_0x1e799b(0x181),'dqkIm':'chromium','jYNAv':'crConnection.js','mppsq':function(_0x210f07,_0x2e46d7){return _0x210f07(_0x2e46d7);},'jBlTP':function(_0x4ad4d0,_0x2e2aaa){return _0x4ad4d0(_0x2e2aaa);},'zoHZl':_0x1e799b(0x1b0),'MnCIb':function(_0x43015b,_0x23376e){return _0x43015b(_0x23376e);},'eiSGR':'Error\x20in\x20importing\x20crConnection','eWffV':function(_0x3bdd59,_0x3994b5){return _0x3bdd59!=_0x3994b5;},'LugAS':_0x1e799b(0x222),'lWnFJ':function(_0x3c1e49,_0x4e71f5){return _0x3c1e49(_0x4e71f5);}},_0x31c87c=this;if(_0x4b62fa[_0x1e799b(0x201)](isAccessibilityAutomationSession)){let _0x52db58=null;try{const _0x33a906=path[_0x1e799b(0x218)](_0x4b62fa[_0x1e799b(0x202)],_0x4b62fa['tSCvi'],_0x4b62fa[_0x1e799b(0x1b4)],_0x4b62fa[_0x1e799b(0x21e)]),_0x148a4f=_0x4b62fa[_0x1e799b(0x1f1)](importFileFromPWCore,_0x33a906);!_0x148a4f?_0x4b62fa[_0x1e799b(0x1c2)](debug,_0x4b62fa[_0x1e799b(0x18d)]):_0x52db58=_0x148a4f[_0x1e799b(0x1fc)];}catch(_0x4f7975){_0x4b62fa[_0x1e799b(0x1f7)](debug,_0x4b62fa[_0x1e799b(0x1ee)]);}try{if(_0x4b62fa[_0x1e799b(0x19d)](_0x52db58,null)){const _0x250945=_0x52db58['prototype'][_0x1e799b(0x222)];Object[_0x1e799b(0x1ec)](_0x52db58[_0x1e799b(0x216)],_0x4b62fa[_0x1e799b(0x1c5)],{'get':function(){return function _0x90bd0d(_0x1c6c1c){const _0x513e40=a43_0x5c51;try{const _0x5ba349=_0x1c6c1c['bStackParams'];if(_0x5ba349){delete _0x1c6c1c[_0x513e40(0x1bc)];const _0x20b9c4=_0x5ba349[_0x513e40(0x209)],_0x2c20c7=_0x5ba349['platformDetails'];_0x2c20c7&&(_0x4b62fa['QxELc'](debug,_0x513e40(0x1d9)+_0x2c20c7[_0x513e40(0x186)]()),_0x31c87c[_0x513e40(0x176)]['platform']=_0x2c20c7['platformName'],_0x31c87c[_0x513e40(0x176)][_0x513e40(0x219)]=_0x2c20c7[_0x513e40(0x20b)]),_0x20b9c4&&(_0x4b62fa['VaFsg'](debug,_0x513e40(0x19c)+_0x20b9c4),_0x31c87c[_0x513e40(0x176)][_0x513e40(0x182)]=_0x20b9c4);}}catch(_0x43f307){_0x4b62fa[_0x513e40(0x1bf)](debug,_0x513e40(0x178)+_0x43f307[_0x513e40(0x186)]());}return _0x250945['apply'](this,arguments);};}});}}catch(_0x241afb){_0x4b62fa[_0x1e799b(0x1fb)](debug,_0x1e799b(0x1c1)+_0x241afb),_0x31c87c['sessionError']=_0x241afb[_0x1e799b(0x186)]();}}}static['getDetails'](){return this['currentSessionDetails'];}}module['exports']=PlaywrightSessionDetails;
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a44_0x1dc8(){const _0x5b5ade=['../helpers/helper','PLAYWRIGHT','format','avLjL','NIGHTWATCH','./mocha/command','run','message','PWhKT','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','mrvpP','UvKuw','info','findAndReplace','pFgBM','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','CODECEPTJS','GQYaQ','.browserstack','422409mnbAle','ORkMj','command','integrations','JEST','./vanilla-js/command','unlinkSync','Running\x20SDK\x20with\x20args\x20','96zxrmCV','INFO','hdpHa','--opts','WgvxL','path','lqxrW','framework','describe','SDKTestSuccessful','util','ats','usage:\x20$0\x20<command>\x20[args]','RzjUb','push','startMonitoring','QgDKF','SDK_CLEANUP','HST','vgAjF','join','alias','argv','valEJ','handler','nightwatch','setBrowserStackAutomationDisable','mocha/lib/cli/run.js','end','../helpers/logger','231028hHfbnp','EVENTS','--no-package','uozBW','includes','nFqxj','codeceptjs','Parsing\x20command\x20line\x20arguements','2948040vtqzXo','idxIv','node','mkvbb','8LUShWz','start','assign','setTestObservabilityDisable','ixFSr','existsSync','../helpers/performance/constants','NOIzV','./nightwatch/command','dot-notation','../helpers/utilities','isUndefined','jest','./cucumber-js/command','usage','xzZAL','error','./integrations/command','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','116175CQwlcV','slice','gHkrU','homedir','3026KlRXRL','VANILLA','fireFunnelTestEvent','./codeceptjs/command','202LhhWoN','mocha/lib/cli/commands.js','find','demandCommand','winstonLogger','parserConfiguration','debug','--require','wrap','config','gYoVU','exitCode','889791YakwBs','VLHXy','./utils/constants','SDK_SETUP','mocha','help','playwright','INTEGRATIONS','.local-not-set.json','mIZzz','dLtcd','MOCHA','VsZOb','VERSION','3778330nsXhkL'];a44_0x1dc8=function(){return _0x5b5ade;};return a44_0x1dc8();}const a44_0x284b6e=a44_0x5595;(function(_0x5051a3,_0x3a379b){const _0x534a39=a44_0x5595,_0x55add4=_0x5051a3();while(!![]){try{const _0x291cd8=-parseInt(_0x534a39(0x1fe))/0x1*(parseInt(_0x534a39(0x1fa))/0x2)+-parseInt(_0x534a39(0x1b1))/0x3+-parseInt(_0x534a39(0x1d7))/0x4+-parseInt(_0x534a39(0x1f6))/0x5*(-parseInt(_0x534a39(0x1b9))/0x6)+-parseInt(_0x534a39(0x20a))/0x7*(parseInt(_0x534a39(0x1e3))/0x8)+parseInt(_0x534a39(0x1df))/0x9+parseInt(_0x534a39(0x218))/0xa;if(_0x291cd8===_0x3a379b)break;else _0x55add4['push'](_0x55add4['shift']());}catch(_0x16b12b){_0x55add4['push'](_0x55add4['shift']());}}}(a44_0x1dc8,0x6cd9e));const fs=require('fs'),path=require(a44_0x284b6e(0x1be)),util=require(a44_0x284b6e(0x1c3)),{requireModule}=require('../helpers/helper'),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a44_0x284b6e(0x1e9))[a44_0x284b6e(0x1d8)],helper=require(a44_0x284b6e(0x219)),utilities=require(a44_0x284b6e(0x1ed)),runIntegrations=require(a44_0x284b6e(0x1f4)),yargs=require('yargs'),Constants=require(a44_0x284b6e(0x20c)),logger=require(a44_0x284b6e(0x1d6))[a44_0x284b6e(0x202)],origArgs=Object[a44_0x284b6e(0x1e5)]([],process[a44_0x284b6e(0x1cf)]),captureError=async(_0xe5acc6,_0x33840c,_0x556f2a=null)=>{const _0x3a7a45=a44_0x284b6e,_0x290364={'WgvxL':function(_0x4e4b5b,_0x3057cb,_0x3c698b){return _0x4e4b5b(_0x3057cb,_0x3c698b);},'idxIv':_0x3a7a45(0x1c2)};try{logger[_0x3a7a45(0x225)](_0x3a7a45(0x1b8)+origArgs['join']('\x20')),await _0x290364[_0x3a7a45(0x1bd)](_0xe5acc6,_0x33840c,_0x556f2a);}catch(_0x598dcb){process[_0x3a7a45(0x209)]=0x1,logger['error'](util[_0x3a7a45(0x21b)](_0x598dcb));const _0x252014={};_0x252014['globalException']=_0x598dcb[_0x3a7a45(0x220)];const _0xb85ca5=_0x252014;PerformanceTester[_0x3a7a45(0x1d5)](PerformanceEvents[_0x3a7a45(0x20d)],![],util['format'](_0x598dcb));if(helper['isUndefined'](global[_0x3a7a45(0x207)])&&helper[_0x3a7a45(0x1ee)](global[_0x3a7a45(0x1c0)]))return;try{utilities[_0x3a7a45(0x1fc)](_0x290364[_0x3a7a45(0x1e0)],_0xb85ca5,global[_0x3a7a45(0x207)],global[_0x3a7a45(0x1c0)]);}catch(_0x3ab98c){logger[_0x3a7a45(0x204)](_0x3a7a45(0x222)+_0x3ab98c['stack']);}PerformanceTester['end'](PerformanceEvents[_0x3a7a45(0x20d)],![],util[_0x3a7a45(0x21b)](_0x598dcb));}finally{PerformanceTester[_0x3a7a45(0x1e4)](PerformanceEvents[_0x3a7a45(0x1ca)]);}};try{const browserstackFolderPath=path[a44_0x284b6e(0x1cd)](helper[a44_0x284b6e(0x1f9)](),a44_0x284b6e(0x1b0));if(fs[a44_0x284b6e(0x1e8)](browserstackFolderPath)){const filePath=path[a44_0x284b6e(0x1cd)](browserstackFolderPath,a44_0x284b6e(0x212));fs[a44_0x284b6e(0x1e8)](filePath)&&fs[a44_0x284b6e(0x1b7)](filePath);}}catch(a44_0x2fa533){logger[a44_0x284b6e(0x204)](a44_0x284b6e(0x1f5)+a44_0x2fa533['message']);}process['argv'][a44_0x284b6e(0x1db)]('mocha')&&(!process[a44_0x284b6e(0x1cf)][a44_0x284b6e(0x1db)](a44_0x284b6e(0x1bc))&&process['argv'][a44_0x284b6e(0x1c7)]('--no-opts'),!process[a44_0x284b6e(0x1cf)][a44_0x284b6e(0x200)](_0x2de876=>_0x2de876['includes']('--config'))&&process['argv'][a44_0x284b6e(0x1c7)]('--no-config'),!process['argv'][a44_0x284b6e(0x1db)]('--package')&&process[a44_0x284b6e(0x1cf)][a44_0x284b6e(0x1c7)](a44_0x284b6e(0x1d9)),helper[a44_0x284b6e(0x226)](process[a44_0x284b6e(0x1cf)],a44_0x284b6e(0x205),'--mochaRequire'));PerformanceTester[a44_0x284b6e(0x1c8)](),PerformanceTester[a44_0x284b6e(0x1e4)](PerformanceEvents[a44_0x284b6e(0x20d)]);const a44_0xe0373e={};a44_0xe0373e[a44_0x284b6e(0x1ec)]=![];const argv=yargs[a44_0x284b6e(0x203)](a44_0xe0373e)[a44_0x284b6e(0x1f1)](a44_0x284b6e(0x1c5))[a44_0x284b6e(0x1ce)]('v','version')[a44_0x284b6e(0x1c1)]('v')[a44_0x284b6e(0x1ce)]('h',a44_0x284b6e(0x20f))[a44_0x284b6e(0x20f)](a44_0x284b6e(0x20f))['showHelpOnFail'](!![],Constants[a44_0x284b6e(0x217)]['HELP'])[a44_0x284b6e(0x1b3)](a44_0x284b6e(0x1ef),Constants[a44_0x284b6e(0x1b5)][a44_0x284b6e(0x1ba)],function(_0x2b5c0b){const _0x88a908=a44_0x284b6e,_0x4ff357={'uozBW':function(_0x12fae9,_0x4ab98b,_0x40369c,_0xe2b979){return _0x12fae9(_0x4ab98b,_0x40369c,_0xe2b979);},'eCWiH':function(_0x30f3d7,_0x1781be){return _0x30f3d7(_0x1781be);},'NOIzV':'./jest/command'};helper[_0x88a908(0x1e6)](),helper[_0x88a908(0x1d3)]();const _0x441982=process[_0x88a908(0x1cf)]['slice'](0x2);return _0x4ff357[_0x88a908(0x1da)](captureError,_0x4ff357['eCWiH'](require,_0x4ff357[_0x88a908(0x1ea)]),_0x2b5c0b[_0x88a908(0x1cf)],_0x441982);})[a44_0x284b6e(0x1b3)](a44_0x284b6e(0x20e),Constants[a44_0x284b6e(0x215)][a44_0x284b6e(0x1ba)],_0x92db45=>{const _0x65a167=a44_0x284b6e,_0x96728f={'ixFSr':function(_0x25c4fb,_0x2907f7,_0x147ac4){return _0x25c4fb(_0x2907f7,_0x147ac4);},'depbB':function(_0x4229f0,_0x4c883f){return _0x4229f0(_0x4c883f);},'mkvbb':_0x65a167(0x21e),'ORkMj':_0x65a167(0x1de),'nFqxj':_0x65a167(0x1d4),'dLtcd':_0x65a167(0x20e),'mrvpP':_0x65a167(0x1ff),'xzZAL':'mocha/lib/cli/cli.js','gYoVU':function(_0x2fe41b){return _0x2fe41b();}};logger[_0x65a167(0x204)](_0x96728f[_0x65a167(0x1b2)]);const _0x4b015d=_0x96728f['ixFSr'](requireModule,_0x96728f[_0x65a167(0x1dc)],_0x96728f[_0x65a167(0x214)]),_0x24f898=_0x96728f['ixFSr'](requireModule,_0x96728f[_0x65a167(0x223)],_0x96728f[_0x65a167(0x214)]);process[_0x65a167(0x1cf)]=process['argv'][_0x65a167(0x1f7)](0x1),delete _0x4b015d[_0x65a167(0x1d1)],_0x4b015d[_0x65a167(0x1d1)]=function(_0x1027b4){const _0x17b0ce=_0x65a167;return _0x96728f[_0x17b0ce(0x1e7)](captureError,_0x96728f['depbB'](require,_0x96728f[_0x17b0ce(0x1e2)]),_0x1027b4);},_0x24f898[_0x65a167(0x21f)]=_0x4b015d;const {main:_0x215a07}=_0x96728f['ixFSr'](requireModule,_0x96728f[_0x65a167(0x1f2)],_0x96728f[_0x65a167(0x214)]);_0x96728f[_0x65a167(0x208)](_0x215a07);})[a44_0x284b6e(0x1b3)]('cucumber-js',Constants['CUCUMBER'][a44_0x284b6e(0x1ba)],function(_0x23adce){const _0x4f097d=a44_0x284b6e,_0x368597={'vgAjF':function(_0x1d5c2f,_0x1636f8,_0x12ef77,_0x582f09){return _0x1d5c2f(_0x1636f8,_0x12ef77,_0x582f09);},'kAwLm':function(_0x24fc78,_0x2b9cca){return _0x24fc78(_0x2b9cca);},'pFgBM':_0x4f097d(0x1f0)},_0x28b5e6=process['argv'][_0x4f097d(0x1f7)](0x2);return _0x368597[_0x4f097d(0x1cc)](captureError,_0x368597['kAwLm'](require,_0x368597[_0x4f097d(0x227)]),_0x23adce['argv'],_0x28b5e6);})[a44_0x284b6e(0x1b3)](a44_0x284b6e(0x1e1),Constants[a44_0x284b6e(0x1fb)][a44_0x284b6e(0x1ba)],function(_0x47da88){const _0x5d46e1=a44_0x284b6e,_0x3d339f={'lqxrW':function(_0x4d5cdc,_0x4a2751,_0x2e90af,_0x3cfee5){return _0x4d5cdc(_0x4a2751,_0x2e90af,_0x3cfee5);},'ZITMN':function(_0x3e8c7b,_0x131db8){return _0x3e8c7b(_0x131db8);},'gHkrU':_0x5d46e1(0x1b6)},_0x3582f1=process[_0x5d46e1(0x1cf)][_0x5d46e1(0x1f7)](0x2);return _0x3d339f[_0x5d46e1(0x1bf)](captureError,_0x3d339f['ZITMN'](require,_0x3d339f[_0x5d46e1(0x1f8)]),_0x47da88['argv'],_0x3582f1);})[a44_0x284b6e(0x1b3)](a44_0x284b6e(0x1d2),Constants[a44_0x284b6e(0x21d)][a44_0x284b6e(0x1ba)],function(_0x4e4da9){const _0x13be59=a44_0x284b6e,_0x28bdb8={'avLjL':function(_0x54e0aa,_0xa90382,_0x112c6f,_0x11a692){return _0x54e0aa(_0xa90382,_0x112c6f,_0x11a692);},'UvKuw':function(_0x265694,_0x44d88f){return _0x265694(_0x44d88f);},'UVpQS':_0x13be59(0x1eb)},_0x4f0f25=process[_0x13be59(0x1cf)]['slice'](0x2);return _0x28bdb8[_0x13be59(0x21c)](captureError,_0x28bdb8[_0x13be59(0x224)](require,_0x28bdb8['UVpQS']),_0x4e4da9[_0x13be59(0x1cf)],_0x4f0f25);})['command'](a44_0x284b6e(0x1dd),Constants[a44_0x284b6e(0x229)][a44_0x284b6e(0x1ba)],function(_0xdb85b1){const _0x4efe1b=a44_0x284b6e,_0x273b50={'GQYaQ':function(_0x3bb8ed,_0x4fff92,_0x3f3049,_0xb0e73a){return _0x3bb8ed(_0x4fff92,_0x3f3049,_0xb0e73a);},'ZjScI':function(_0x3094da,_0x550729){return _0x3094da(_0x550729);},'QgDKF':_0x4efe1b(0x1fd)},_0x42fbeb=process[_0x4efe1b(0x1cf)][_0x4efe1b(0x1f7)](0x2);return _0x273b50[_0x4efe1b(0x22a)](captureError,_0x273b50['ZjScI'](require,_0x273b50[_0x4efe1b(0x1c9)]),_0xdb85b1['argv'],_0x42fbeb);})[a44_0x284b6e(0x1b3)](a44_0x284b6e(0x1c4),Constants[a44_0x284b6e(0x1cb)]['INFO'],function(_0x2bc38e){const _0x188cba=a44_0x284b6e,_0x7ee1a9={'RzjUb':function(_0x358bd8,_0xeeaf14,_0x259d9f){return _0x358bd8(_0xeeaf14,_0x259d9f);},'hdpHa':function(_0x756768,_0x1787c5){return _0x756768(_0x1787c5);},'VLHXy':'../../ats/src/index'},_0x47d4b3=process[_0x188cba(0x1cf)][_0x188cba(0x1f7)](0x2);return _0x7ee1a9[_0x188cba(0x1c6)](captureError,_0x7ee1a9[_0x188cba(0x1bb)](require,_0x7ee1a9[_0x188cba(0x20b)]),_0x2bc38e);})[a44_0x284b6e(0x1b3)](a44_0x284b6e(0x1b4),Constants[a44_0x284b6e(0x211)][a44_0x284b6e(0x1ba)],function(_0x5c214a){const _0x2cec9a=a44_0x284b6e,_0x1efd11={'valEJ':function(_0x482b74,_0x33cbc5){return _0x482b74(_0x33cbc5);}};return _0x1efd11[_0x2cec9a(0x1d0)](runIntegrations,_0x5c214a);})[a44_0x284b6e(0x1b3)](a44_0x284b6e(0x210),Constants[a44_0x284b6e(0x21a)]['INFO'],function(_0x556af7){const _0x21f242=a44_0x284b6e,_0x5554be={'PWhKT':function(_0x58ca17,_0x49b5d3,_0x504671,_0x36629b){return _0x58ca17(_0x49b5d3,_0x504671,_0x36629b);},'mIZzz':function(_0x7e02bf,_0x2e4248){return _0x7e02bf(_0x2e4248);},'VsZOb':'./playwright/command'},_0x49221b=process[_0x21f242(0x1cf)][_0x21f242(0x1f7)](0x2);return _0x5554be[_0x21f242(0x221)](captureError,_0x5554be[_0x21f242(0x213)](require,_0x5554be[_0x21f242(0x216)]),_0x556af7[_0x21f242(0x1cf)],_0x49221b);})[a44_0x284b6e(0x201)](0x1,a44_0x284b6e(0x228))[a44_0x284b6e(0x206)](null)[a44_0x284b6e(0x1cf)];function a44_0x5595(_0x14a871,_0x37bb4c){const _0x1dc8d2=a44_0x1dc8();return a44_0x5595=function(_0x5595ae,_0x540672){_0x5595ae=_0x5595ae-0x1b0;let _0x470119=_0x1dc8d2[_0x5595ae];return _0x470119;},a44_0x5595(_0x14a871,_0x37bb4c);}!helper['isUndefined'](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a44_0x284b6e(0x1c4)&&console[a44_0x284b6e(0x1f3)]('Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.');
|
|
2
|
+
'use strict';const a44_0x16673a=a44_0x3b34;function a44_0x3b34(_0x4a1d0d,_0x51a6e5){const _0x1c4149=a44_0x1c41();return a44_0x3b34=function(_0x3b34,_0x2bec23){_0x3b34=_0x3b34-0x115;let _0x435144=_0x1c4149[_0x3b34];return _0x435144;},a44_0x3b34(_0x4a1d0d,_0x51a6e5);}function a44_0x1c41(){const _0x3d0c66=['push','iXVRp','debug','command','--no-package','nZcAm','start','959MUbmcT','homedir','error','./integrations/command','1498UiAEHz','assign','854264SHcRTW','--no-config','globalException','SDKTestSuccessful','findAndReplace','../helpers/helper','INTEGRATIONS','demandCommand','7925820cpeFPl','mocha/lib/cli/cli.js','tqVdj','version','JrPxy','wOOil','jAvYm','fireFunnelTestEvent','--no-opts','PLAYWRIGHT','7GsoITp','codeceptjs','playwright','util','help','framework','./jest/command','end','WVkcj','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','JTSYa','config','mocha','exitCode','isUndefined','CUCUMBER','path','CyBUo','NXzCL','NzQeA','handler','ahTHu','../helpers/utilities','run','./vanilla-js/command','mocha/lib/cli/run.js','info','2220723HuRuHJ','yargs','JEST','EVENTS','./nightwatch/command','ats','cucumber-js','11cPYvMu','NIGHTWATCH','5399896VTBDPW','VANILLA','showHelpOnFail','SDK_SETUP','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','parserConfiguration','alias','unlinkSync','--package','CODECEPTJS','GtdOm','existsSync','./mocha/command','./codeceptjs/command','QCdlg','message','UNGuq','--config','Parsing\x20command\x20line\x20arguements','../helpers/logger','bRTBk','argv','3284481xeUSeZ','Running\x20SDK\x20with\x20args\x20','startMonitoring','lVHyK','node','./playwright/command','nMKnY','setTestObservabilityDisable','10AlwTuM','SDK_CLEANUP','./utils/constants','slice','--require','10740050BMeiqE','integrations','format','SgdPE','PzaLV','VERSION','stack','INFO','dot-notation','usage','RafNf','nightwatch','includes','join'];a44_0x1c41=function(){return _0x3d0c66;};return a44_0x1c41();}(function(_0x291546,_0x559b43){const _0x24f4d2=a44_0x3b34,_0x1a5a99=_0x291546();while(!![]){try{const _0x5b1f72=-parseInt(_0x24f4d2(0x12a))/0x1*(-parseInt(_0x24f4d2(0x12e))/0x2)+parseInt(_0x24f4d2(0x17c))/0x3+parseInt(_0x24f4d2(0x130))/0x4*(-parseInt(_0x24f4d2(0x184))/0x5)+parseInt(_0x24f4d2(0x138))/0x6+-parseInt(_0x24f4d2(0x142))/0x7*(parseInt(_0x24f4d2(0x166))/0x8)+-parseInt(_0x24f4d2(0x15d))/0x9+parseInt(_0x24f4d2(0x115))/0xa*(-parseInt(_0x24f4d2(0x164))/0xb);if(_0x5b1f72===_0x559b43)break;else _0x1a5a99['push'](_0x1a5a99['shift']());}catch(_0x1b870e){_0x1a5a99['push'](_0x1a5a99['shift']());}}}(a44_0x1c41,0xada31));const fs=require('fs'),path=require(a44_0x16673a(0x152)),util=require(a44_0x16673a(0x145)),{requireModule}=require(a44_0x16673a(0x135)),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require('../helpers/performance/constants')[a44_0x16673a(0x160)],helper=require('../helpers/helper'),utilities=require(a44_0x16673a(0x158)),runIntegrations=require(a44_0x16673a(0x12d)),yargs=require(a44_0x16673a(0x15e)),Constants=require(a44_0x16673a(0x186)),logger=require(a44_0x16673a(0x179))['winstonLogger'],origArgs=Object[a44_0x16673a(0x12f)]([],process[a44_0x16673a(0x17b)]),captureError=async(_0xab1b77,_0x1a8d4e,_0x47e22d=null)=>{const _0x7e894d=a44_0x16673a,_0x1c885b={'tqVdj':function(_0x3527e4,_0xb0350f,_0x197c82){return _0x3527e4(_0xb0350f,_0x197c82);},'FKTXd':_0x7e894d(0x133)};try{logger[_0x7e894d(0x15c)](_0x7e894d(0x17d)+origArgs[_0x7e894d(0x122)]('\x20')),await _0x1c885b[_0x7e894d(0x13a)](_0xab1b77,_0x1a8d4e,_0x47e22d);}catch(_0x4c0aea){process[_0x7e894d(0x14f)]=0x1,logger[_0x7e894d(0x12c)](util[_0x7e894d(0x117)](_0x4c0aea));const _0x1c768f={};_0x1c768f[_0x7e894d(0x132)]=_0x4c0aea[_0x7e894d(0x175)];const _0x35f2f9=_0x1c768f;PerformanceTester['end'](PerformanceEvents[_0x7e894d(0x169)],![],util[_0x7e894d(0x117)](_0x4c0aea));if(helper[_0x7e894d(0x150)](global[_0x7e894d(0x14d)])&&helper['isUndefined'](global['framework']))return;try{utilities[_0x7e894d(0x13f)](_0x1c885b['FKTXd'],_0x35f2f9,global['config'],global[_0x7e894d(0x147)]);}catch(_0x38c6c1){logger[_0x7e894d(0x125)]('Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20'+_0x38c6c1[_0x7e894d(0x11b)]);}PerformanceTester[_0x7e894d(0x149)](PerformanceEvents[_0x7e894d(0x169)],![],util[_0x7e894d(0x117)](_0x4c0aea));}finally{PerformanceTester['start'](PerformanceEvents[_0x7e894d(0x185)]);}};try{const browserstackFolderPath=path['join'](helper[a44_0x16673a(0x12b)](),'.browserstack');if(fs['existsSync'](browserstackFolderPath)){const filePath=path[a44_0x16673a(0x122)](browserstackFolderPath,'.local-not-set.json');fs[a44_0x16673a(0x171)](filePath)&&fs[a44_0x16673a(0x16d)](filePath);}}catch(a44_0x1af35e){logger[a44_0x16673a(0x125)](a44_0x16673a(0x14b)+a44_0x1af35e[a44_0x16673a(0x175)]);}process[a44_0x16673a(0x17b)][a44_0x16673a(0x121)](a44_0x16673a(0x14e))&&(!process[a44_0x16673a(0x17b)]['includes']('--opts')&&process[a44_0x16673a(0x17b)][a44_0x16673a(0x123)](a44_0x16673a(0x140)),!process[a44_0x16673a(0x17b)]['find'](_0x5157a3=>_0x5157a3[a44_0x16673a(0x121)](a44_0x16673a(0x177)))&&process[a44_0x16673a(0x17b)][a44_0x16673a(0x123)](a44_0x16673a(0x131)),!process[a44_0x16673a(0x17b)][a44_0x16673a(0x121)](a44_0x16673a(0x16e))&&process[a44_0x16673a(0x17b)][a44_0x16673a(0x123)](a44_0x16673a(0x127)),helper[a44_0x16673a(0x134)](process[a44_0x16673a(0x17b)],a44_0x16673a(0x188),'--mochaRequire'));PerformanceTester[a44_0x16673a(0x17e)](),PerformanceTester[a44_0x16673a(0x129)](PerformanceEvents[a44_0x16673a(0x169)]);const a44_0x39b24c={};a44_0x39b24c[a44_0x16673a(0x11d)]=![];const argv=yargs[a44_0x16673a(0x16b)](a44_0x39b24c)[a44_0x16673a(0x11e)]('usage:\x20$0\x20<command>\x20[args]')[a44_0x16673a(0x16c)]('v',a44_0x16673a(0x13b))['describe']('v')['alias']('h',a44_0x16673a(0x146))['help'](a44_0x16673a(0x146))[a44_0x16673a(0x168)](!![],Constants[a44_0x16673a(0x11a)]['HELP'])[a44_0x16673a(0x126)]('jest',Constants[a44_0x16673a(0x15f)]['INFO'],function(_0x421afa){const _0x49f36c=a44_0x16673a,_0x1ca3ca={'nZcAm':function(_0x4517f4,_0x3cf789,_0x1f7c70,_0x3bc0d8){return _0x4517f4(_0x3cf789,_0x1f7c70,_0x3bc0d8);},'JSvSO':function(_0x575e8c,_0xdb7c07){return _0x575e8c(_0xdb7c07);},'NthAA':_0x49f36c(0x148)};helper[_0x49f36c(0x183)](),helper['setBrowserStackAutomationDisable']();const _0x5eb901=process[_0x49f36c(0x17b)][_0x49f36c(0x187)](0x2);return _0x1ca3ca[_0x49f36c(0x128)](captureError,_0x1ca3ca['JSvSO'](require,_0x1ca3ca['NthAA']),_0x421afa[_0x49f36c(0x17b)],_0x5eb901);})['command'](a44_0x16673a(0x14e),Constants['MOCHA'][a44_0x16673a(0x11c)],_0x2ee27c=>{const _0x47f468=a44_0x16673a,_0x5984ca={'UNGuq':function(_0x5a974c,_0x1b20b1,_0x4a31ed){return _0x5a974c(_0x1b20b1,_0x4a31ed);},'URees':function(_0x5301fe,_0x4c9058){return _0x5301fe(_0x4c9058);},'GtdOm':_0x47f468(0x172),'NzQeA':_0x47f468(0x178),'LTUCr':_0x47f468(0x15b),'iXVRp':_0x47f468(0x14e),'JTSYa':'mocha/lib/cli/commands.js','HYNvk':_0x47f468(0x139),'WVkcj':function(_0x2d4362){return _0x2d4362();}};logger[_0x47f468(0x125)](_0x5984ca[_0x47f468(0x155)]);const _0x1b960f=_0x5984ca['UNGuq'](requireModule,_0x5984ca['LTUCr'],_0x5984ca[_0x47f468(0x124)]),_0x5dee60=_0x5984ca[_0x47f468(0x176)](requireModule,_0x5984ca[_0x47f468(0x14c)],_0x5984ca['iXVRp']);process[_0x47f468(0x17b)]=process[_0x47f468(0x17b)][_0x47f468(0x187)](0x1),delete _0x1b960f[_0x47f468(0x156)],_0x1b960f['handler']=function(_0x382b0a){const _0x2e50a3=_0x47f468;return _0x5984ca['UNGuq'](captureError,_0x5984ca['URees'](require,_0x5984ca[_0x2e50a3(0x170)]),_0x382b0a);},_0x5dee60[_0x47f468(0x159)]=_0x1b960f;const {main:_0x45af77}=_0x5984ca['UNGuq'](requireModule,_0x5984ca['HYNvk'],_0x5984ca[_0x47f468(0x124)]);_0x5984ca[_0x47f468(0x14a)](_0x45af77);})[a44_0x16673a(0x126)](a44_0x16673a(0x163),Constants[a44_0x16673a(0x151)][a44_0x16673a(0x11c)],function(_0x1c2fae){const _0x29572c=a44_0x16673a,_0x53f755={'lVHyK':function(_0x31f40b,_0x30343b,_0x41a600,_0x12c88d){return _0x31f40b(_0x30343b,_0x41a600,_0x12c88d);},'NrZxX':function(_0x4db074,_0x4b2742){return _0x4db074(_0x4b2742);},'pPYLR':'./cucumber-js/command'},_0x261537=process[_0x29572c(0x17b)]['slice'](0x2);return _0x53f755[_0x29572c(0x17f)](captureError,_0x53f755['NrZxX'](require,_0x53f755['pPYLR']),_0x1c2fae[_0x29572c(0x17b)],_0x261537);})[a44_0x16673a(0x126)](a44_0x16673a(0x180),Constants[a44_0x16673a(0x167)]['INFO'],function(_0xa20549){const _0x6d76ff=a44_0x16673a,_0x1251c0={'wOOil':function(_0x4f29d6,_0x3698d0,_0x54592e,_0x41605d){return _0x4f29d6(_0x3698d0,_0x54592e,_0x41605d);},'ZnGef':function(_0xd73565,_0x2d942c){return _0xd73565(_0x2d942c);},'TKkmj':_0x6d76ff(0x15a)},_0x510e83=process['argv'][_0x6d76ff(0x187)](0x2);return _0x1251c0[_0x6d76ff(0x13d)](captureError,_0x1251c0['ZnGef'](require,_0x1251c0['TKkmj']),_0xa20549[_0x6d76ff(0x17b)],_0x510e83);})[a44_0x16673a(0x126)](a44_0x16673a(0x120),Constants[a44_0x16673a(0x165)][a44_0x16673a(0x11c)],function(_0x53f7b1){const _0x3a84a4=a44_0x16673a,_0x53cb2a={'SgdPE':function(_0x50fffd,_0x30ebf6,_0x3b45c3,_0x2f9279){return _0x50fffd(_0x30ebf6,_0x3b45c3,_0x2f9279);},'CyBUo':function(_0x2264af,_0x160faa){return _0x2264af(_0x160faa);},'dePZe':_0x3a84a4(0x161)},_0x226eac=process[_0x3a84a4(0x17b)][_0x3a84a4(0x187)](0x2);return _0x53cb2a[_0x3a84a4(0x118)](captureError,_0x53cb2a[_0x3a84a4(0x153)](require,_0x53cb2a['dePZe']),_0x53f7b1[_0x3a84a4(0x17b)],_0x226eac);})[a44_0x16673a(0x126)](a44_0x16673a(0x143),Constants[a44_0x16673a(0x16f)][a44_0x16673a(0x11c)],function(_0x17ad1e){const _0x338d57=a44_0x16673a,_0x166138={'bRTBk':function(_0x677312,_0x11c93c,_0x243e0f,_0x4206d0){return _0x677312(_0x11c93c,_0x243e0f,_0x4206d0);},'ahTHu':function(_0x3dceae,_0x483abf){return _0x3dceae(_0x483abf);},'jAvYm':_0x338d57(0x173)},_0xe3aa1b=process['argv'][_0x338d57(0x187)](0x2);return _0x166138[_0x338d57(0x17a)](captureError,_0x166138[_0x338d57(0x157)](require,_0x166138[_0x338d57(0x13e)]),_0x17ad1e[_0x338d57(0x17b)],_0xe3aa1b);})[a44_0x16673a(0x126)]('ats',Constants['HST'][a44_0x16673a(0x11c)],function(_0x59574c){const _0x98683f=a44_0x16673a,_0x2d0809={'RafNf':function(_0x53770b,_0x46f605,_0x4f574e){return _0x53770b(_0x46f605,_0x4f574e);},'NXzCL':function(_0x36d846,_0x573add){return _0x36d846(_0x573add);},'QCdlg':'../../ats/src/index'},_0x1db7b1=process[_0x98683f(0x17b)][_0x98683f(0x187)](0x2);return _0x2d0809[_0x98683f(0x11f)](captureError,_0x2d0809[_0x98683f(0x154)](require,_0x2d0809[_0x98683f(0x174)]),_0x59574c);})[a44_0x16673a(0x126)](a44_0x16673a(0x116),Constants[a44_0x16673a(0x136)]['INFO'],function(_0x5cd3d0){const _0xc41d5b={'YeFHJ':function(_0x7ea33d,_0x20338c){return _0x7ea33d(_0x20338c);}};return _0xc41d5b['YeFHJ'](runIntegrations,_0x5cd3d0);})[a44_0x16673a(0x126)](a44_0x16673a(0x144),Constants[a44_0x16673a(0x141)][a44_0x16673a(0x11c)],function(_0xb2b807){const _0x3515c0=a44_0x16673a,_0x1b9165={'nMKnY':function(_0x508414,_0x59764c,_0x3343ea,_0x2b23d2){return _0x508414(_0x59764c,_0x3343ea,_0x2b23d2);},'JrPxy':function(_0x365f4d,_0x568279){return _0x365f4d(_0x568279);},'PzaLV':_0x3515c0(0x181)},_0x7a78f8=process[_0x3515c0(0x17b)][_0x3515c0(0x187)](0x2);return _0x1b9165[_0x3515c0(0x182)](captureError,_0x1b9165[_0x3515c0(0x13c)](require,_0x1b9165[_0x3515c0(0x119)]),_0xb2b807[_0x3515c0(0x17b)],_0x7a78f8);})[a44_0x16673a(0x137)](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')['wrap'](null)[a44_0x16673a(0x17b)];!helper[a44_0x16673a(0x150)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a44_0x16673a(0x162)&&console[a44_0x16673a(0x12c)](a44_0x16673a(0x16a));
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
function a45_0x2bc4(){const _0x34fa0c=['indexOf','username','71109ZJQxpJ','entries','22lrLJXn','1172055yIZkxL','3713718qbhBiQ','/../../browserstack.yml.sample','isUndefined','1918705PkTVoa','4nPkYrL','Adding\x20new\x20script(s)\x20in\x20package.json...','npm\x20update\x20browserstack-node-sdk','TZMGc','270rutcba','includes','Yngtp','/package.json','key','push','replace','browserstack-node-sdk','485sXQcVP','playwright','node','postinstall','parse','error','utf8','scripts','\x20&&\x20npm\x20update\x20browserstack-node-sdk','QBoeu','../helpers/logger','Creating\x20configuration\x20file...','QSJot','winstonLogger','Setup\x20completed','mocha','nmdan','EwVVh','readFileSync','cucumber-js','jest','HjWMW','YOUR_ACCESS_KEY','source','jLjMj','length','dWjMW','join','WMcto','/browserstack.yml','argv','splice','js-yaml','2278daUbjG','debug','cwd','stringify','TPrGH','browserstack-node-sdk\x20','JFMbk','dhvck','QGOPR','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','../helpers/utilities','103082PdOFnW','split','yqobP','info','codeceptjs','tHtQp','168tsBfJf','GHtFw','10418388kZJpeX','/../../browserstack.pw.yml.sample','yargs','xYJfD'];a45_0x2bc4=function(){return _0x34fa0c;};return a45_0x2bc4();}const a45_0xc0cb7=a45_0x3b87;(function(_0x35cb33,_0x3ab0f9){const _0x19bff4=a45_0x3b87,_0x548c5c=_0x35cb33();while(!![]){try{const _0x3e91dd=-parseInt(_0x19bff4(0x137))/0x1*(parseInt(_0x19bff4(0x10a))/0x2)+-parseInt(_0x19bff4(0x126))/0x3+parseInt(_0x19bff4(0x12b))/0x4*(-parseInt(_0x19bff4(0x12a))/0x5)+-parseInt(_0x19bff4(0x127))/0x6+-parseInt(_0x19bff4(0x115))/0x7*(-parseInt(_0x19bff4(0x11b))/0x8)+-parseInt(_0x19bff4(0x123))/0x9*(-parseInt(_0x19bff4(0x12f))/0xa)+parseInt(_0x19bff4(0x125))/0xb*(parseInt(_0x19bff4(0x11d))/0xc);if(_0x3e91dd===_0x3ab0f9)break;else _0x548c5c['push'](_0x548c5c['shift']());}catch(_0x2e0efa){_0x548c5c['push'](_0x548c5c['shift']());}}}(a45_0x2bc4,0x4c759));const fs=require('fs'),helper=require('../helpers/helper'),utilities=require(a45_0xc0cb7(0x114)),yaml=require(a45_0xc0cb7(0x109)),yargs=require(a45_0xc0cb7(0x11f)),logger=require(a45_0xc0cb7(0x141))[a45_0xc0cb7(0xf6)],configFileTemplate=__dirname+a45_0xc0cb7(0x128),configFileTemplatePW=__dirname+a45_0xc0cb7(0x11e),configFile=process[a45_0xc0cb7(0x10c)]()+a45_0xc0cb7(0x106),packageFile=process[a45_0xc0cb7(0x10c)]()+a45_0xc0cb7(0x132),frameworks=[a45_0xc0cb7(0xf8),a45_0xc0cb7(0xfd),a45_0xc0cb7(0xfc),a45_0xc0cb7(0x139),'nightwatch',a45_0xc0cb7(0x119),a45_0xc0cb7(0x138)];let config;logger[a45_0xc0cb7(0x118)](a45_0xc0cb7(0xf4)),createConfigurationFile(yargs[a45_0xc0cb7(0x107)][a45_0xc0cb7(0x122)],yargs[a45_0xc0cb7(0x107)][a45_0xc0cb7(0x133)],yargs[a45_0xc0cb7(0x107)]['playwright']);try{sdkSetup();}catch(a45_0x66c099){logger[a45_0xc0cb7(0x10b)]('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+a45_0x66c099);}addScriptInPackageJson();function createConfigurationFile(_0x3d984f,_0x522910,_0x25b346=![]){const _0x334d6e=a45_0xc0cb7,_0x2cd893={};_0x2cd893[_0x334d6e(0x117)]=_0x334d6e(0x13d),_0x2cd893[_0x334d6e(0x103)]='YOUR_USERNAME',_0x2cd893[_0x334d6e(0x12e)]=_0x334d6e(0xff);const _0x6127eb=_0x2cd893;try{let _0x3f3ba4=fs[_0x334d6e(0xfb)](_0x25b346?configFileTemplatePW:configFileTemplate,_0x6127eb[_0x334d6e(0x117)]);_0x3d984f&&(_0x3f3ba4=_0x3f3ba4[_0x334d6e(0x135)](_0x6127eb[_0x334d6e(0x103)],_0x3d984f)),_0x522910&&(_0x3f3ba4=_0x3f3ba4['replace'](_0x6127eb[_0x334d6e(0x12e)],_0x522910)),config=yaml['load'](_0x3f3ba4),fs['writeFileSync'](configFile,_0x3f3ba4,_0x5ba133=>{const _0x229469=_0x334d6e;_0x5ba133&&logger[_0x229469(0x13c)](_0x5ba133);});}catch(_0x522246){logger[_0x334d6e(0x13c)](_0x522246);}}function addPostInstallScript(_0xa78462,_0x3adf80){const _0x4333ed=a45_0xc0cb7,_0x9bba23={};_0x9bba23[_0x4333ed(0x112)]=_0x4333ed(0x13a),_0x9bba23[_0x4333ed(0x110)]=_0x4333ed(0x12d),_0x9bba23['HjWMW']=_0x4333ed(0x13f);const _0x4a96ce=_0x9bba23;let _0x3ad2cd=_0xa78462[_0x4a96ce[_0x4333ed(0x112)]];if(_0x3ad2cd&&_0x3ad2cd[_0x4333ed(0x130)](_0x4a96ce[_0x4333ed(0x110)]))return;!_0x3ad2cd?_0x3ad2cd=_0x4a96ce[_0x4333ed(0x110)]:_0x3ad2cd+=_0x4a96ce[_0x4333ed(0xfe)],_0x3adf80[_0x4333ed(0x134)]([_0x4a96ce[_0x4333ed(0x112)],_0x3ad2cd]);}function addScriptInPackageJson(){const _0x141e0b=a45_0xc0cb7,_0x594829={'QSJot':_0x141e0b(0x13d),'QBoeu':function(_0x491751,_0x44fbc7){return _0x491751<_0x44fbc7;},'dhvck':function(_0xd2ecbe,_0xc626c,_0x339838){return _0xd2ecbe(_0xc626c,_0x339838);},'WMcto':function(_0x3251f9,_0xb622d5){return _0x3251f9<_0xb622d5;},'tHtQp':function(_0x5223ee,_0x5e3b3b){return _0x5223ee!==_0x5e3b3b;},'yAeyc':_0x141e0b(0x12c)},_0x21dd91=JSON[_0x141e0b(0x13b)](fs[_0x141e0b(0xfb)](packageFile,_0x594829[_0x141e0b(0xf5)])),_0x164703=[];for(let _0x2dc808=0x0;_0x594829[_0x141e0b(0x140)](_0x2dc808,frameworks[_0x141e0b(0x102)]);_0x2dc808+=0x1){const _0x25cc10=_0x594829[_0x141e0b(0x111)](findScriptsWithFramework,_0x21dd91[_0x141e0b(0x13e)],frameworks[_0x2dc808]);for(let _0x34617e=0x0;_0x594829[_0x141e0b(0x105)](_0x34617e,_0x25cc10[_0x141e0b(0x102)]);_0x34617e+=0x1){_0x164703[_0x141e0b(0x134)](_0x594829['dhvck'](getUpdatedCommand,_0x21dd91[_0x141e0b(0x13e)],_0x25cc10[_0x34617e]));}_0x594829['dhvck'](addPostInstallScript,_0x21dd91[_0x141e0b(0x13e)],_0x164703);}const _0x2689e4={..._0x21dd91[_0x141e0b(0x13e)]},_0x30fa4f=_0x2689e4;for(let _0x2ffa52=0x0;_0x594829['QBoeu'](_0x2ffa52,_0x164703['length']);_0x2ffa52+=0x1){_0x30fa4f[_0x164703[_0x2ffa52][0x0]]=_0x164703[_0x2ffa52][0x1];}_0x594829[_0x141e0b(0x11a)](JSON[_0x141e0b(0x10d)](_0x21dd91[_0x141e0b(0x13e)]),JSON[_0x141e0b(0x10d)](_0x30fa4f))&&(logger[_0x141e0b(0x118)](_0x594829['yAeyc']),_0x21dd91[_0x141e0b(0x13e)]=_0x30fa4f,fs['writeFileSync'](packageFile,JSON['stringify'](_0x21dd91,null,0x2),_0x11187f=>{const _0x22ab6d=_0x141e0b;_0x11187f&&logger[_0x22ab6d(0x13c)](_0x11187f);}));}function a45_0x3b87(_0x42def3,_0xc8273){const _0x2bc40c=a45_0x2bc4();return a45_0x3b87=function(_0x3b87cc,_0x564654){_0x3b87cc=_0x3b87cc-0xf4;let _0xcd23a1=_0x2bc40c[_0x3b87cc];return _0xcd23a1;},a45_0x3b87(_0x42def3,_0xc8273);};function findScriptsWithFramework(_0x88c84c,_0x44679b){const _0x49069e=a45_0xc0cb7,_0x45468a={};_0x45468a['nmdan']=function(_0x293789,_0x575d12){return _0x293789<_0x575d12;},_0x45468a[_0x49069e(0x131)]=_0x49069e(0x136);const _0x55fd29=_0x45468a,_0x128002=[],_0x4e6cff=Object[_0x49069e(0x124)](_0x88c84c);for(let _0x273117=0x0;_0x55fd29[_0x49069e(0xf9)](_0x273117,_0x4e6cff[_0x49069e(0x102)]);_0x273117+=0x1){_0x4e6cff[_0x273117][0x1][_0x49069e(0x130)](_0x44679b)&&!_0x4e6cff[_0x273117][0x1][_0x49069e(0x130)](_0x55fd29[_0x49069e(0x131)])&&_0x128002[_0x49069e(0x134)](_0x4e6cff[_0x273117][0x0]);}return _0x128002;}function getUpdatedCommand(_0x4705a6,_0x28a7f5){const _0x3311ce=a45_0xc0cb7,_0x5a0cf8={};_0x5a0cf8[_0x3311ce(0x11c)]=function(_0x1893fe,_0x17b6c2){return _0x1893fe!==_0x17b6c2;},_0x5a0cf8[_0x3311ce(0xfa)]=_0x3311ce(0x136),_0x5a0cf8[_0x3311ce(0x10e)]=function(_0x1e05a0,_0xdf8f1d){return _0x1e05a0===_0xdf8f1d;};const _0x36676f=_0x5a0cf8,_0x444d59=_0x28a7f5+'-browserstack',_0x152e48=_0x4705a6[_0x28a7f5],_0x58dc1d=_0x152e48[_0x3311ce(0x116)]('\x20');for(const _0x15456f of frameworks){if(_0x36676f['GHtFw'](_0x58dc1d[_0x3311ce(0x121)](_0x15456f),-0x1)){_0x58dc1d[_0x3311ce(0x108)](_0x58dc1d[_0x3311ce(0x121)](_0x15456f),0x0,_0x36676f[_0x3311ce(0xfa)]);break;}}let _0x9d1187=_0x58dc1d[_0x3311ce(0x104)]('\x20');return _0x36676f['TPrGH'](_0x9d1187,_0x152e48)&&(_0x9d1187=_0x3311ce(0x10f)+_0x152e48),[_0x444d59,_0x9d1187];}function sdkSetup(){const _0x195d8c=a45_0xc0cb7,_0x722db1={};_0x722db1[_0x195d8c(0x120)]='node-setup',_0x722db1[_0x195d8c(0x101)]='SDKSetup';const _0xdfea74=_0x722db1;if(helper[_0x195d8c(0x129)](config))return;config[_0x195d8c(0x100)]=_0xdfea74['xYJfD'];try{utilities['fireFunnelTestEvent'](_0xdfea74[_0x195d8c(0x101)],{},config,'');}catch(_0x4a6452){logger[_0x195d8c(0x10b)](_0x195d8c(0x113)+_0x4a6452);}}logger['info'](a45_0xc0cb7(0xf7));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a46_0x178f38=a46_0x5ed5;(function(_0x225cd2,_0x434672){const _0x5e2091=a46_0x5ed5,_0x3fcdac=_0x225cd2();while(!![]){try{const _0xb4e54c=parseInt(_0x5e2091(0x112))/0x1*(parseInt(_0x5e2091(0xed))/0x2)+-parseInt(_0x5e2091(0xff))/0x3*(-parseInt(_0x5e2091(0xfa))/0x4)+parseInt(_0x5e2091(0xfd))/0x5+parseInt(_0x5e2091(0x12b))/0x6+-parseInt(_0x5e2091(0x10d))/0x7*(parseInt(_0x5e2091(0x105))/0x8)+parseInt(_0x5e2091(0xf8))/0x9+-parseInt(_0x5e2091(0x128))/0xa;if(_0xb4e54c===_0x434672)break;else _0x3fcdac['push'](_0x3fcdac['shift']());}catch(_0x138cb1){_0x3fcdac['push'](_0x3fcdac['shift']());}}}(a46_0x1966,0xa66f6));const Worker=require('jest-worker')['Worker'],Emittery=require(a46_0x178f38(0x124)),pLimit=require('p-limit'),{parentPort}=require(a46_0x178f38(0x134)),util=require('util'),logger=require(a46_0x178f38(0xd7))[a46_0x178f38(0x132)],PerformanceTester=require(a46_0x178f38(0x127)),PerformanceEvents=require(a46_0x178f38(0xef))[a46_0x178f38(0x119)],{debug}=require(a46_0x178f38(0x10b)),TestHubHandler=require(a46_0x178f38(0x139)),{FRAMEWORKS}=require(a46_0x178f38(0x136));exports['parallelTestRun']=(_0x2480cc,_0x40ad11,_0x4c14f5)=>new Promise(async _0x5191b9=>{const _0x4169f8=a46_0x178f38,_0x131831={'xjWPW':_0x4169f8(0x115),'jfEnA':function(_0x2f0ba1,_0x54a0f9){return _0x2f0ba1+_0x54a0f9;},'xhkjH':_0x4169f8(0xe4),'pZxTm':'Workers\x20failed\x20to\x20exit\x20gracefully','CnPhT':function(_0x530c6c,_0x2545f4){return _0x530c6c(_0x2545f4);},'AyfFy':_0x4169f8(0xd5),'lMwbG':_0x4169f8(0x13b),'Sewmo':'worker','oLjwv':_0x4169f8(0x12d),'nBxXN':'pipe','DYysw':function(_0x145abe,_0x4ec1a9){return _0x145abe*_0x4ec1a9;},'ASmna':_0x4169f8(0xf4),'kHHKq':_0x4169f8(0x12f)},_0x32c22e=_0x4c14f5['config'],_0x1dc231={},_0x27f1c2=await TestHubHandler['launchBuild'](FRAMEWORKS[_0x4169f8(0xf6)],_0x4c14f5),_0x1d00be=new Worker(require[_0x4169f8(0x114)](_0x131831['lMwbG']),{'exposedMethods':[_0x131831[_0x4169f8(0xeb)]],'forkOptions':{'serialization':_0x131831[_0x4169f8(0x130)],'stdio':_0x131831[_0x4169f8(0xfb)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0x131831[_0x4169f8(0xe8)](_0x40ad11,0x1),'enableWorkerThreads':!![]}),_0x2e5860=new Emittery();_0x2e5860['on'](_0x131831['ASmna'],_0x227494=>{const _0x355a0a=_0x4169f8;_0x1dc231[_0x227494[0x0]]?(_0x1dc231[_0x227494[0x0]][_0x131831[_0x355a0a(0x11a)]]=_0x131831['jfEnA'](_0x1dc231[_0x227494[0x0]][_0x131831[_0x355a0a(0x11a)]],_0x227494[0x1][_0x131831[_0x355a0a(0x11a)]]),_0x1dc231[_0x227494[0x0]][_0x131831[_0x355a0a(0x116)]]=[..._0x1dc231[_0x227494[0x0]][_0x131831['xhkjH']],..._0x227494[0x1][_0x131831['xhkjH']]]):_0x1dc231[_0x227494[0x0]]={'failureCount':_0x227494[0x1][_0x131831[_0x355a0a(0x11a)]],'results':[..._0x227494[0x1][_0x131831[_0x355a0a(0x116)]]]};}),_0x2e5860['on'](_0x131831[_0x4169f8(0x120)],_0x218dc8=>console[_0x4169f8(0xf5)](_0x218dc8[0x1]));_0x1d00be['getStdout']()&&_0x1d00be['getStdout']()['pipe'](process[_0x4169f8(0x133)]);_0x1d00be[_0x4169f8(0xf9)]()&&_0x1d00be[_0x4169f8(0xf9)]()[_0x4169f8(0x108)](process[_0x4169f8(0xd4)]);const _0x4afba2=async()=>{const _0x4465b1=_0x4169f8,{forceExited:_0x5e3fdc}=await _0x1d00be[_0x4465b1(0x118)]();_0x5e3fdc&&console['error'](_0x131831[_0x4465b1(0x113)]);try{await TestHubHandler[_0x4465b1(0x11b)]();}catch(_0x3146ae){_0x131831[_0x4465b1(0x10f)](debug,_0x4465b1(0x110)+_0x3146ae);}_0x131831[_0x4465b1(0x10f)](_0x5191b9,_0x1dc231);},_0x4e2528=_0x131831[_0x4169f8(0x10f)](pLimit,_0x131831[_0x4169f8(0xe8)](_0x40ad11,0x1)),_0x5371ed=_0x272990=>_0x4e2528(async()=>{const _0x7e92e8=_0x4169f8;await _0x2e5860[_0x7e92e8(0x129)](_0x131831[_0x7e92e8(0xee)],_0x272990);const _0x3a1199=_0x1d00be[_0x7e92e8(0xea)](_0x272990,_0x32c22e);try{parentPort&&_0x3a1199[_0x7e92e8(0xfc)](_0x1a3e3d=>{const _0x4898d3=_0x7e92e8;try{parentPort[_0x4898d3(0xe0)](_0x1a3e3d);}catch(_0x2aada5){logger['debug'](_0x4898d3(0x121)+util[_0x4898d3(0xdb)](_0x2aada5));}});}catch(_0x3c8b48){logger[_0x7e92e8(0x109)](_0x7e92e8(0x102)+util[_0x7e92e8(0xdb)](_0x3c8b48));}return _0x3a1199;});PerformanceTester[_0x4169f8(0x118)](PerformanceEvents[_0x4169f8(0x103)]),Promise['all'](_0x2480cc[_0x4169f8(0xe2)](_0x158b1c=>_0x5371ed(_0x158b1c)['then'](_0x3ddf02=>_0x2e5860[_0x4169f8(0x129)](_0x4169f8(0xf4),[_0x158b1c[_0x4169f8(0x12c)][_0x4169f8(0xd6)],_0x3ddf02]),_0x23b665=>_0x2e5860[_0x4169f8(0x129)](_0x4169f8(0x12f),[_0x158b1c,_0x23b665]))))[_0x4169f8(0x125)](_0x4afba2,_0x4afba2);}),exports[a46_0x178f38(0x100)]=(_0x31cfdc,_0x1cd78e,_0x38e88d,_0x3d2255,_0x49abd8)=>{const _0x4cacd7=a46_0x178f38,_0x572399={'nICcM':_0x4cacd7(0x11d),'HyNyy':_0x4cacd7(0xf0),'ooSVp':function(_0x3b0bbb,_0x5a3e97){return _0x3b0bbb(_0x5a3e97);},'sMkgE':_0x4cacd7(0x13b),'AtUMr':_0x4cacd7(0x12a),'WWFGz':_0x4cacd7(0x12d),'eYlxR':'pipe','XJFnF':'platform-run-success','qJikL':_0x4cacd7(0x12e)};return new Promise(_0x3daa3d=>{const _0x1cef73=_0x4cacd7,_0x295efd={'GgROQ':_0x572399[_0x1cef73(0xf2)],'ZtGPv':function(_0x24a532,_0x448d8a){const _0x515f09=_0x1cef73;return _0x572399[_0x515f09(0x104)](_0x24a532,_0x448d8a);}},_0x3181a5=[],_0x47fb63=new Worker(require['resolve'](_0x572399[_0x1cef73(0xdc)]),{'exposedMethods':[_0x572399['AtUMr']],'forkOptions':{'serialization':_0x572399[_0x1cef73(0xd8)],'stdio':_0x572399[_0x1cef73(0x106)]},'numWorkers':_0x31cfdc['length']||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x2093ff=new Emittery();_0x2093ff['on'](_0x572399['XJFnF'],_0x4eac1c=>{const _0x27cb57=_0x1cef73;_0x3181a5[_0x27cb57(0xe6)]([_0x4eac1c[0x0],_0x4eac1c[0x1]]);}),_0x2093ff['on'](_0x572399['qJikL'],_0x4bb98c=>console[_0x1cef73(0xf5)](_0x4bb98c[0x1]));_0x47fb63[_0x1cef73(0x137)]()&&_0x47fb63[_0x1cef73(0x137)]()['pipe'](process[_0x1cef73(0x133)]);_0x47fb63[_0x1cef73(0xf9)]()&&_0x47fb63['getStderr']()[_0x1cef73(0x108)](process[_0x1cef73(0xd4)]);const _0x3359d4=async()=>{const _0x3f3401=_0x1cef73,{forceExited:_0x39d16b}=await _0x47fb63[_0x3f3401(0x118)]();_0x39d16b&&console[_0x3f3401(0xda)](_0x295efd[_0x3f3401(0xd9)]),_0x295efd[_0x3f3401(0x10c)](_0x3daa3d,_0x3181a5);},_0x480f47=_0x572399[_0x1cef73(0x104)](pLimit,_0x31cfdc[_0x1cef73(0x122)]||0x1),_0x33c823=(_0x3389d4,_0x55f260)=>_0x480f47(async()=>{const _0xbf365=_0x1cef73;return await _0x2093ff[_0xbf365(0x129)](_0x572399[_0xbf365(0xe7)],_0x3389d4),_0x1cd78e[_0xbf365(0xe3)]=_0x38e88d[_0xbf365(0xe1)][_0x55f260],_0x47fb63[_0xbf365(0x12a)](_0x3389d4,_0x1cd78e,_0x38e88d,_0x3d2255,_0x49abd8);});Promise['all'](_0x31cfdc[_0x1cef73(0xe2)]((_0x3eff22,_0x550ca1)=>_0x33c823(_0x3eff22,_0x550ca1)[_0x1cef73(0x125)](_0x4960aa=>_0x2093ff[_0x1cef73(0x129)](_0x1cef73(0x117),[_0x3eff22,_0x4960aa]),_0x5544e8=>_0x2093ff[_0x1cef73(0x129)](_0x1cef73(0x12e),[_0x3eff22,_0x5544e8]))))[_0x1cef73(0x125)](_0x3359d4,_0x3359d4);});},exports['parallelVanillaRun']=(_0x2fbb02,_0x18e694)=>new Promise(_0x5ecd02=>{const _0x309479=a46_0x178f38,_0x340faa={'woUOj':function(_0x145bf9,_0x1386e8){return _0x145bf9===_0x1386e8;},'TASkk':function(_0xb7b7d9,_0x169307){return _0xb7b7d9!==_0x169307;},'lQMGZ':_0x309479(0xdf),'fvGzk':'Workers\x20failed\x20to\x20exit\x20gracefully','bgKGh':function(_0x3e68d7,_0x26f05f){return _0x3e68d7(_0x26f05f);},'fWWuJ':_0x309479(0x13b),'FjSUI':_0x309479(0x131),'drfnr':'json','aMMyK':_0x309479(0x108),'iZYpp':'test-file-success','IWMPI':'test-file-failure','nEGJZ':function(_0x4e7a7b,_0x3eca0b){return _0x4e7a7b(_0x3eca0b);}},_0x25a0e2={},_0x5b7885=new Worker(require[_0x309479(0x114)](_0x340faa[_0x309479(0xe9)]),{'exposedMethods':[_0x340faa[_0x309479(0xfe)]],'forkOptions':{'serialization':_0x340faa[_0x309479(0x135)],'stdio':_0x340faa[_0x309479(0x11e)]},'numWorkers':_0x18e694,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0x1cd887=new Emittery();_0x1cd887['on'](_0x340faa[_0x309479(0x13a)],_0x2c9bd8=>{const _0xb3e330=_0x309479;_0x2c9bd8[0x0]&&logger['info'](_0xb3e330(0xde)+_0x2c9bd8[0x1]+'\x20for',_0x2c9bd8[0x0]);}),_0x1cd887['on'](_0x340faa[_0x309479(0x123)],_0xeaa470=>{const _0x33f9cb=_0x309479;process[_0x33f9cb(0xec)]=0x1;});_0x5b7885[_0x309479(0x137)]()&&_0x5b7885[_0x309479(0x137)]()[_0x309479(0x108)](process[_0x309479(0x133)]);_0x5b7885[_0x309479(0xf9)]()&&_0x5b7885[_0x309479(0xf9)]()['pipe'](process[_0x309479(0xd4)]);const _0x482240=async()=>{const _0x23a79d=_0x309479,_0x726a99={'jYRAu':function(_0x1da9da,_0x20a850){const _0x17049a=a46_0x5ed5;return _0x340faa[_0x17049a(0xf7)](_0x1da9da,_0x20a850);},'cFycu':function(_0x5d6be0,_0x3c2df2){const _0x510666=a46_0x5ed5;return _0x340faa[_0x510666(0x138)](_0x5d6be0,_0x3c2df2);},'ZOMyS':_0x340faa[_0x23a79d(0x101)]};let _0x3cbf46=0x0;const _0x17b9a5=_0x5b7885[_0x23a79d(0x11c)][_0x23a79d(0xe5)](),_0x19f7a0=()=>{},_0x2a855e=_0x17b9a5[_0x23a79d(0xe2)](async _0x1b99a8=>{const _0xf2372d=_0x23a79d,_0x2189ad={'KnHLX':function(_0x1dcc50,_0x23d66d){const _0x39ad9f=a46_0x5ed5;return _0x726a99[_0x39ad9f(0x11f)](_0x1dcc50,_0x23d66d);},'ZFugE':function(_0x3bfad4,_0x318486){return _0x726a99['cFycu'](_0x3bfad4,_0x318486);}};_0x1b99a8[_0xf2372d(0x10e)]([0x2,![]],_0x19f7a0,_0x19f7a0,_0x19f7a0),_0x1b99a8[_0xf2372d(0xf3)]['on'](_0x726a99[_0xf2372d(0x107)],_0x8199d3=>{const _0x53e559=_0xf2372d;_0x2189ad[_0x53e559(0x13c)](_0x3cbf46,0x0)&&_0x2189ad['ZFugE'](_0x8199d3,0x0)&&(_0x3cbf46=_0x8199d3);}),await _0x1b99a8[_0xf2372d(0x111)]();});await Promise[_0x23a79d(0x10a)](_0x2a855e),process['exitCode']=_0x3cbf46;const {forceExited:_0x2814c2}=await _0x5b7885['end']();_0x2814c2&&console[_0x23a79d(0xda)](_0x340faa['fvGzk']),_0x340faa[_0x23a79d(0xf1)](_0x5ecd02,_0x25a0e2);},_0x38ad3d=_0x340faa[_0x309479(0x126)](pLimit,_0x18e694),_0x1624c3=_0x2617ac=>_0x38ad3d(async()=>{const _0x5e58a4=_0x309479;return _0x5b7885[_0x5e58a4(0x131)](_0x2617ac);});Promise['all'](_0x2fbb02[_0x309479(0xe2)](_0x11e0bd=>_0x1624c3(_0x11e0bd)['then'](_0xa31b1f=>_0x1cd887[_0x309479(0x129)](_0x309479(0xf4),[_0x11e0bd[_0x309479(0x12c)]['platform'],_0x11e0bd['configuration'][_0x309479(0xdd)]]),_0x4d7358=>_0x1cd887[_0x309479(0x129)]('test-file-failure',[_0x11e0bd,_0x4d7358]))))[_0x309479(0x125)](_0x482240,_0x482240);});function a46_0x5ed5(_0x5cc3ce,_0x2f74be){const _0x1966ca=a46_0x1966();return a46_0x5ed5=function(_0x5ed500,_0x3d1448){_0x5ed500=_0x5ed500-0xd4;let _0x4f947f=_0x1966ca[_0x5ed500];return _0x4f947f;},a46_0x5ed5(_0x5cc3ce,_0x2f74be);}function a46_0x1966(){const _0x192c3b=['EVENTS','xjWPW','stop','_workerPool','platform-run-start','aMMyK','jYRAu','kHHKq','Exception\x20in\x20sending\x20worker\x20message\x20','length','IWMPI','emittery','then','nEGJZ','../../helpers/performance/performance-tester','22976090jqOnVj','emit','cucumberWorker','5044992AEyfFK','configuration','json','platform-run-failure','test-file-failure','oLjwv','vanillaWorker','winstonLogger','stdout','worker_threads','drfnr','../../helpers/test-observability/constants','getStdout','TASkk','../../helpers/testhub/testhubHandler','iZYpp','./testWorker.js','KnHLX','stderr','test-file-start','platform','../../helpers/logger','WWFGz','GgROQ','error','format','sMkgE','file','Running\x20','exit','postMessage','platforms','map','platformCaps','results','getWorkers','push','nICcM','DYysw','fWWuJ','worker','Sewmo','exitCode','2gfufDp','AyfFy','../../helpers/performance/constants','Workers\x20failed\x20to\x20exit\x20gracefully','bgKGh','HyNyy','_child','test-file-success','log','MOCHA','woUOj','4911471jcgyxQ','getStderr','88bAUVvq','nBxXN','UNSTABLE_onCustomMessage','4027130nKsFpv','FjSUI','12633jNUpVb','parallelCucumberRun','lQMGZ','Exception\x20in\x20adding\x20custom\x20message\x20channel\x20','SDK_SETUP','ooSVp','632zROyDY','eYlxR','ZOMyS','pipe','debug','all','../../helpers/test-observability/utils','ZtGPv','8414ZzqXeK','send','CnPhT','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','waitForExit','789666ZkeLom','pZxTm','resolve','failureCount','xhkjH','platform-run-success','end'];a46_0x1966=function(){return _0x192c3b;};return a46_0x1966();}
|
|
1
|
+
function a46_0xdf14(){const _0x359861=['end','util','configuration','879640mNCvzd','ArJgq','platform','json','FuSGu','stdout','Abplz','../../helpers/performance/performance-tester','length','worker_threads','file','gveRc','uhzXK','LEePd','beqgC','waitForExit','35300euCkyL','p-limit','stop','error','./testWorker.js','results','worker','13276rTmwtE','../../helpers/test-observability/utils','platform-run-failure','info','exit','cPkdr','owtmh','all','config','bkgah','28FOPKQx','vanillaWorker','905860BnElYR','NYbwD','getStderr','hlTTC','winstonLogger','getStdout','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','CgXld','Workers\x20failed\x20to\x20exit\x20gracefully','4802733kYqxzE','then','log','827658sbuInr','platform-run-start','SEvSA','format','pipe','sHULq','platforms','\x20for','Exception\x20in\x20adding\x20custom\x20message\x20channel\x20','339tgHTZE','postMessage','../../helpers/logger','resolve','WCUCV','_child','vDPBc','EVENTS','test-file-failure','cucumberWorker','PioDt','Exception\x20in\x20sending\x20worker\x20message\x20','stderr','YLzXR','test-file-start','tapTQ','getWorkers','23JaIcMi','Worker','xzYRd','hmPgX','failureCount','10363590VtUqFz','jest-worker','dLuWH','kAuoO','htDUW','11xzTyqW','WUkdJ','test-file-success','hmMyh','debug','iGGTp','DMiaB','map','_workerPool','../../helpers/testhub/testhubHandler','push','emit','owNQj','dfqje','LsTfL','parallelCucumberRun','kSLMi','UsmXl'];a46_0xdf14=function(){return _0x359861;};return a46_0xdf14();}const a46_0x5bdd62=a46_0x1e4c;function a46_0x1e4c(_0x36ca66,_0x2cd606){const _0xdf14ce=a46_0xdf14();return a46_0x1e4c=function(_0x1e4c5c,_0xe7e1ba){_0x1e4c5c=_0x1e4c5c-0xd5;let _0x36775e=_0xdf14ce[_0x1e4c5c];return _0x36775e;},a46_0x1e4c(_0x36ca66,_0x2cd606);}(function(_0x41c84b,_0xb2e3c){const _0x544e56=a46_0x1e4c,_0x3ef14c=_0x41c84b();while(!![]){try{const _0x57fa9f=parseInt(_0x544e56(0x11d))/0x1*(-parseInt(_0x544e56(0xe4))/0x2)+parseInt(_0x544e56(0x10c))/0x3*(-parseInt(_0x544e56(0xeb))/0x4)+-parseInt(_0x544e56(0xf7))/0x5+parseInt(_0x544e56(0x103))/0x6+parseInt(_0x544e56(0xf5))/0x7*(-parseInt(_0x544e56(0x13c))/0x8)+parseInt(_0x544e56(0x100))/0x9+parseInt(_0x544e56(0x122))/0xa*(parseInt(_0x544e56(0x127))/0xb);if(_0x57fa9f===_0xb2e3c)break;else _0x3ef14c['push'](_0x3ef14c['shift']());}catch(_0x6f066c){_0x3ef14c['push'](_0x3ef14c['shift']());}}}(a46_0xdf14,0x4ab1e));const Worker=require(a46_0x5bdd62(0x123))[a46_0x5bdd62(0x11e)],Emittery=require('emittery'),pLimit=require(a46_0x5bdd62(0xe5)),{parentPort}=require(a46_0x5bdd62(0xdd)),util=require(a46_0x5bdd62(0x13a)),logger=require(a46_0x5bdd62(0x10e))[a46_0x5bdd62(0xfb)],PerformanceTester=require(a46_0x5bdd62(0xdb)),PerformanceEvents=require('../../helpers/performance/constants')[a46_0x5bdd62(0x113)],{debug}=require(a46_0x5bdd62(0xec)),TestHubHandler=require(a46_0x5bdd62(0x130));exports['parallelTestRun']=(_0x451c3e,_0x51423a,_0x1adc99)=>new Promise(async _0x254699=>{const _0xc649db=a46_0x5bdd62,_0x40a35d={'beqgC':_0xc649db(0x121),'DMiaB':function(_0x5b487d,_0x799c2d){return _0x5b487d+_0x799c2d;},'SEvSA':_0xc649db(0xe9),'SrBRi':_0xc649db(0xff),'dfqje':function(_0x229200,_0x3dfb1d){return _0x229200(_0x3dfb1d);},'gveRc':_0xc649db(0x11a),'MtcNY':'./testWorker.js','kSLMi':'worker','WCUCV':_0xc649db(0xd7),'LsTfL':_0xc649db(0x107),'cPkdr':function(_0x3cc63e,_0x3c348a){return _0x3cc63e*_0x3c348a;},'PioDt':_0xc649db(0x129),'owtmh':'test-file-failure','vDPBc':function(_0x4ae315,_0x27f329){return _0x4ae315(_0x27f329);}},_0x528ff7=_0x1adc99[_0xc649db(0xf3)],_0x4b59fd={},_0x2bd9a7=new Worker(require[_0xc649db(0x10f)](_0x40a35d['MtcNY']),{'exposedMethods':[_0x40a35d[_0xc649db(0x137)]],'forkOptions':{'serialization':_0x40a35d[_0xc649db(0x110)],'stdio':_0x40a35d[_0xc649db(0x135)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0x40a35d[_0xc649db(0xf0)](_0x51423a,0x1),'enableWorkerThreads':!![]}),_0x266f72=new Emittery();_0x266f72['on'](_0x40a35d[_0xc649db(0x116)],_0x3eea06=>{const _0xe4eab8=_0xc649db;_0x4b59fd[_0x3eea06[0x0]]?(_0x4b59fd[_0x3eea06[0x0]][_0x40a35d[_0xe4eab8(0xe2)]]=_0x40a35d[_0xe4eab8(0x12d)](_0x4b59fd[_0x3eea06[0x0]][_0x40a35d['beqgC']],_0x3eea06[0x1][_0x40a35d[_0xe4eab8(0xe2)]]),_0x4b59fd[_0x3eea06[0x0]][_0x40a35d[_0xe4eab8(0x105)]]=[..._0x4b59fd[_0x3eea06[0x0]][_0x40a35d[_0xe4eab8(0x105)]],..._0x3eea06[0x1][_0x40a35d[_0xe4eab8(0x105)]]]):_0x4b59fd[_0x3eea06[0x0]]={'failureCount':_0x3eea06[0x1][_0x40a35d['beqgC']],'results':[..._0x3eea06[0x1][_0x40a35d['SEvSA']]]};}),_0x266f72['on'](_0x40a35d[_0xc649db(0xf1)],_0xfe184b=>console[_0xc649db(0x102)](_0xfe184b[0x1]));_0x2bd9a7[_0xc649db(0xfc)]()&&_0x2bd9a7[_0xc649db(0xfc)]()[_0xc649db(0x107)](process[_0xc649db(0xd9)]);_0x2bd9a7[_0xc649db(0xf9)]()&&_0x2bd9a7['getStderr']()[_0xc649db(0x107)](process[_0xc649db(0x118)]);const _0x2116e9=async()=>{const _0x1870ad=_0xc649db,{forceExited:_0x1e32cc}=await _0x2bd9a7[_0x1870ad(0x139)]();_0x1e32cc&&console[_0x1870ad(0xe7)](_0x40a35d['SrBRi']);try{await TestHubHandler[_0x1870ad(0xe6)]();}catch(_0x11efd9){_0x40a35d[_0x1870ad(0x134)](debug,_0x1870ad(0xfd)+_0x11efd9);}_0x40a35d[_0x1870ad(0x134)](_0x254699,_0x4b59fd);},_0x596470=_0x40a35d[_0xc649db(0x112)](pLimit,_0x40a35d[_0xc649db(0xf0)](_0x51423a,0x1)),_0x33eb47=_0x13a5f1=>_0x596470(async()=>{const _0x426585=_0xc649db;await _0x266f72[_0x426585(0x132)](_0x40a35d[_0x426585(0xdf)],_0x13a5f1);const _0x55cf1c=_0x2bd9a7[_0x426585(0xea)](_0x13a5f1,_0x528ff7);try{parentPort&&_0x55cf1c['UNSTABLE_onCustomMessage'](_0x51842a=>{const _0x33be16=_0x426585;try{parentPort[_0x33be16(0x10d)](_0x51842a);}catch(_0x25f5c2){logger[_0x33be16(0x12b)](_0x33be16(0x117)+util[_0x33be16(0x106)](_0x25f5c2));}});}catch(_0x79b01e){logger[_0x426585(0x12b)](_0x426585(0x10b)+util[_0x426585(0x106)](_0x79b01e));}return _0x55cf1c;});PerformanceTester['end'](PerformanceEvents['SDK_SETUP']),Promise['all'](_0x451c3e['map'](_0x5672e2=>_0x33eb47(_0x5672e2)['then'](_0x49c1eb=>_0x266f72[_0xc649db(0x132)]('test-file-success',[_0x5672e2[_0xc649db(0x13b)][_0xc649db(0xd6)],_0x49c1eb]),_0x424f7b=>_0x266f72['emit'](_0xc649db(0x114),[_0x5672e2,_0x424f7b]))))['then'](_0x2116e9,_0x2116e9);}),exports[a46_0x5bdd62(0x136)]=(_0x5381b6,_0x14d083,_0x1ef2f7,_0x2d7cea,_0x2d3733)=>{const _0x1cef94=a46_0x5bdd62,_0x4c07cb={'hlTTC':_0x1cef94(0xff),'owNQj':function(_0x1e7e36,_0x12b0f3){return _0x1e7e36(_0x12b0f3);},'CgXld':_0x1cef94(0x104),'TbrQv':'./testWorker.js','iGGTp':_0x1cef94(0x115),'htDUW':_0x1cef94(0xd7),'Abplz':_0x1cef94(0x107),'ArJgq':'platform-run-success','WUkdJ':_0x1cef94(0xed)};return new Promise(_0x4f387c=>{const _0x3cb0b0=_0x1cef94,_0x42ee3b=[],_0x5590f1=new Worker(require[_0x3cb0b0(0x10f)](_0x4c07cb['TbrQv']),{'exposedMethods':[_0x4c07cb[_0x3cb0b0(0x12c)]],'forkOptions':{'serialization':_0x4c07cb[_0x3cb0b0(0x126)],'stdio':_0x4c07cb[_0x3cb0b0(0xda)]},'numWorkers':_0x5381b6[_0x3cb0b0(0xdc)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x574f7c=new Emittery();_0x574f7c['on'](_0x4c07cb[_0x3cb0b0(0xd5)],_0x4841b5=>{const _0x56565f=_0x3cb0b0;_0x42ee3b[_0x56565f(0x131)]([_0x4841b5[0x0],_0x4841b5[0x1]]);}),_0x574f7c['on'](_0x4c07cb[_0x3cb0b0(0x128)],_0x376a5e=>console[_0x3cb0b0(0x102)](_0x376a5e[0x1]));_0x5590f1[_0x3cb0b0(0xfc)]()&&_0x5590f1[_0x3cb0b0(0xfc)]()[_0x3cb0b0(0x107)](process[_0x3cb0b0(0xd9)]);_0x5590f1[_0x3cb0b0(0xf9)]()&&_0x5590f1[_0x3cb0b0(0xf9)]()['pipe'](process[_0x3cb0b0(0x118)]);const _0x59373b=async()=>{const _0x290105=_0x3cb0b0,{forceExited:_0x4fb982}=await _0x5590f1[_0x290105(0x139)]();_0x4fb982&&console[_0x290105(0xe7)](_0x4c07cb[_0x290105(0xfa)]),_0x4c07cb[_0x290105(0x133)](_0x4f387c,_0x42ee3b);},_0x30fb15=_0x4c07cb[_0x3cb0b0(0x133)](pLimit,_0x5381b6['length']||0x1),_0x288e97=(_0x283e4f,_0x2c2178)=>_0x30fb15(async()=>{const _0x3c6418=_0x3cb0b0;return await _0x574f7c[_0x3c6418(0x132)](_0x4c07cb[_0x3c6418(0xfe)],_0x283e4f),_0x14d083['platformCaps']=_0x1ef2f7[_0x3c6418(0x109)][_0x2c2178],_0x5590f1[_0x3c6418(0x115)](_0x283e4f,_0x14d083,_0x1ef2f7,_0x2d7cea,_0x2d3733);});Promise['all'](_0x5381b6['map']((_0x52241a,_0x218cd0)=>_0x288e97(_0x52241a,_0x218cd0)[_0x3cb0b0(0x101)](_0x4b3773=>_0x574f7c[_0x3cb0b0(0x132)]('platform-run-success',[_0x52241a,_0x4b3773]),_0x192754=>_0x574f7c[_0x3cb0b0(0x132)](_0x3cb0b0(0xed),[_0x52241a,_0x192754]))))[_0x3cb0b0(0x101)](_0x59373b,_0x59373b);});},exports['parallelVanillaRun']=(_0x17951c,_0x17061e)=>new Promise(_0x3ab3f1=>{const _0x3d78b8=a46_0x5bdd62,_0x6dd7f8={'YLzXR':function(_0x240ad6,_0x1d9007){return _0x240ad6===_0x1d9007;},'XnXJt':function(_0x13ca23,_0x1e7e16){return _0x13ca23!==_0x1e7e16;},'dLuWH':_0x3d78b8(0xef),'uhzXK':_0x3d78b8(0xff),'NYbwD':function(_0x3faf56,_0x4627d9){return _0x3faf56(_0x4627d9);},'LEePd':_0x3d78b8(0xe8),'tapTQ':_0x3d78b8(0xf6),'FuSGu':_0x3d78b8(0xd7),'xzYRd':'pipe','qbPxd':'test-file-success','RgqDe':_0x3d78b8(0x114),'sHULq':function(_0x5504e3,_0x1cdb91){return _0x5504e3(_0x1cdb91);}},_0x1e323e={},_0x36a3bd=new Worker(require[_0x3d78b8(0x10f)](_0x6dd7f8[_0x3d78b8(0xe1)]),{'exposedMethods':[_0x6dd7f8[_0x3d78b8(0x11b)]],'forkOptions':{'serialization':_0x6dd7f8[_0x3d78b8(0xd8)],'stdio':_0x6dd7f8[_0x3d78b8(0x11f)]},'numWorkers':_0x17061e,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0xbb690f=new Emittery();_0xbb690f['on'](_0x6dd7f8['qbPxd'],_0x4a3fee=>{const _0xc29fd=_0x3d78b8;_0x4a3fee[0x0]&&logger[_0xc29fd(0xee)]('Running\x20'+_0x4a3fee[0x1]+_0xc29fd(0x10a),_0x4a3fee[0x0]);}),_0xbb690f['on'](_0x6dd7f8['RgqDe'],_0x159e31=>{process['exitCode']=0x1;});_0x36a3bd['getStdout']()&&_0x36a3bd[_0x3d78b8(0xfc)]()['pipe'](process['stdout']);_0x36a3bd['getStderr']()&&_0x36a3bd[_0x3d78b8(0xf9)]()[_0x3d78b8(0x107)](process[_0x3d78b8(0x118)]);const _0x4cbfbf=async()=>{const _0x5c566a=_0x3d78b8,_0x3f35e0={'UsmXl':function(_0x57cfb1,_0x2dfd56){const _0x562525=a46_0x1e4c;return _0x6dd7f8[_0x562525(0x119)](_0x57cfb1,_0x2dfd56);},'hmMyh':function(_0xa4713b,_0xf1cb35){return _0x6dd7f8['XnXJt'](_0xa4713b,_0xf1cb35);},'bkgah':_0x6dd7f8[_0x5c566a(0x124)]};let _0x45b1ea=0x0;const _0x5225c1=_0x36a3bd[_0x5c566a(0x12f)][_0x5c566a(0x11c)](),_0x3482d6=()=>{},_0x59fb13=_0x5225c1[_0x5c566a(0x12e)](async _0x4dd1b1=>{const _0x29deca=_0x5c566a,_0x42b82f={'kAuoO':function(_0xebda37,_0x4b4668){const _0x5b5bb8=a46_0x1e4c;return _0x3f35e0[_0x5b5bb8(0x138)](_0xebda37,_0x4b4668);},'hmPgX':function(_0x345cbb,_0x1c6787){const _0x50fb29=a46_0x1e4c;return _0x3f35e0[_0x50fb29(0x12a)](_0x345cbb,_0x1c6787);}};_0x4dd1b1['send']([0x2,![]],_0x3482d6,_0x3482d6,_0x3482d6),_0x4dd1b1[_0x29deca(0x111)]['on'](_0x3f35e0[_0x29deca(0xf4)],_0x1f56d2=>{const _0xb7d3b8=_0x29deca;_0x42b82f[_0xb7d3b8(0x125)](_0x45b1ea,0x0)&&_0x42b82f[_0xb7d3b8(0x120)](_0x1f56d2,0x0)&&(_0x45b1ea=_0x1f56d2);}),await _0x4dd1b1[_0x29deca(0xe3)]();});await Promise[_0x5c566a(0xf2)](_0x59fb13),process['exitCode']=_0x45b1ea;const {forceExited:_0x396d41}=await _0x36a3bd[_0x5c566a(0x139)]();_0x396d41&&console['error'](_0x6dd7f8[_0x5c566a(0xe0)]),_0x6dd7f8[_0x5c566a(0xf8)](_0x3ab3f1,_0x1e323e);},_0xf9d9fd=_0x6dd7f8[_0x3d78b8(0x108)](pLimit,_0x17061e),_0x16bc10=_0xc669ee=>_0xf9d9fd(async()=>{const _0x9035c3=_0x3d78b8;return _0x36a3bd[_0x9035c3(0xf6)](_0xc669ee);});Promise[_0x3d78b8(0xf2)](_0x17951c[_0x3d78b8(0x12e)](_0xe47398=>_0x16bc10(_0xe47398)[_0x3d78b8(0x101)](_0x2cf96b=>_0xbb690f['emit'](_0x3d78b8(0x129),[_0xe47398[_0x3d78b8(0x13b)][_0x3d78b8(0xd6)],_0xe47398[_0x3d78b8(0x13b)][_0x3d78b8(0xde)]]),_0x22e260=>_0xbb690f[_0x3d78b8(0x132)](_0x3d78b8(0x114),[_0xe47398,_0x22e260]))))[_0x3d78b8(0x101)](_0x4cbfbf,_0x4cbfbf);});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a47_0x337a(){const _0x2c360d=['piasj','EVENTS','SDK_POST_TEST','../../helpers/performance/constants','vanilla','startMonitoring','formatter','63vLNWik','runVanillaTest','../launcher/launcher','FmsKh','pphnb','5066blRstK','1275720kpSmBb','stopMonitoring','898060UpEXxI','114394FSfwKu','2294577bNOuSg','run','788895XYPLFG','../../helpers/test-observability/utils','655746crfHZU','cucumber-js','runTest','48oqIdoT'];a47_0x337a=function(){return _0x2c360d;};return a47_0x337a();}const a47_0x2b9281=a47_0x1e86;(function(_0x54d5ad,_0x3aeb48){const _0x110448=a47_0x1e86,_0x33246c=_0x54d5ad();while(!![]){try{const _0x2d0779=parseInt(_0x110448(0xf3))/0x1*(-parseInt(_0x110448(0xf8))/0x2)+-parseInt(_0x110448(0xe8))/0x3+-parseInt(_0x110448(0xfb))/0x4+parseInt(_0x110448(0xe6))/0x5+parseInt(_0x110448(0xf9))/0x6+-parseInt(_0x110448(0xe3))/0x7*(-parseInt(_0x110448(0xeb))/0x8)+parseInt(_0x110448(0xe4))/0x9;if(_0x2d0779===_0x3aeb48)break;else _0x33246c['push'](_0x33246c['shift']());}catch(_0x3bd869){_0x33246c['push'](_0x33246c['shift']());}}}(a47_0x337a,0x1d798));function a47_0x1e86(_0x4afbf9,_0xaca918){const _0x337a30=a47_0x337a();return a47_0x1e86=function(_0x1e8668,_0x561dae){_0x1e8668=_0x1e8668-0xe3;let _0x5400c5=_0x337a30[_0x1e8668];return _0x5400c5;},a47_0x1e86(_0x4afbf9,_0xaca918);}const PerformanceEvents=require(a47_0x2b9281(0xef))[a47_0x2b9281(0xed)],PerformanceTester=require('../../helpers/performance/performance-tester'),{sleep}=require(a47_0x2b9281(0xe7));exports[a47_0x2b9281(0xea)]=async(_0x2f6f2d,_0x30e132)=>{const _0x467b3e=a47_0x2b9281,_0xe7d9c0={'piasj':function(_0x2406e3,_0x421f03){return _0x2406e3(_0x421f03);},'SogIm':_0x467b3e(0xf5),'Eoowb':'mocha'};PerformanceTester[_0x467b3e(0xf1)]();const _0x1ac6ac=_0xe7d9c0[_0x467b3e(0xec)](require,_0xe7d9c0['SogIm']),_0x40075d=new _0x1ac6ac(_0xe7d9c0['Eoowb'],_0x2f6f2d,_0x30e132),_0x3c8979=await _0x40075d['run']();return PerformanceTester['end'](PerformanceEvents[_0x467b3e(0xee)]),await _0xe7d9c0[_0x467b3e(0xec)](sleep,0x3e8),PerformanceTester[_0x467b3e(0xfa)](),_0x3c8979;},exports['runCucumberTest']=async(_0x2956ae,_0x340eed,_0x3c7d08,_0x2bdaa4,_0x53fa55)=>{const _0x299734=a47_0x2b9281,_0x51dc7b={'eTpIL':function(_0x5c5a02,_0xa97a49){return _0x5c5a02(_0xa97a49);},'FmsKh':_0x299734(0xf5),'fzXsG':_0x299734(0xe9)},_0x566130={'capability':_0x2956ae,..._0x340eed},_0x573412={};_0x573412['configuration']=_0x566130,_0x573412[_0x299734(0xf2)]=_0x53fa55;const _0x589339=_0x573412,_0xc8234=_0x51dc7b['eTpIL'](require,_0x51dc7b[_0x299734(0xf6)]),_0x5769fe=new _0xc8234(_0x51dc7b['fzXsG'],_0x589339,_0x3c7d08,_0x2bdaa4);return await _0x5769fe[_0x299734(0xe5)]();},exports[a47_0x2b9281(0xf4)]=async _0x32e426=>{const _0x5cedc1=a47_0x2b9281,_0x3b0729={'jImyZ':function(_0x5475bb,_0x478686){return _0x5475bb(_0x478686);},'iQzQm':_0x5cedc1(0xf5),'pphnb':_0x5cedc1(0xf0)},_0x23b315=_0x3b0729['jImyZ'](require,_0x3b0729['iQzQm']),_0x6179de=new _0x23b315(_0x3b0729[_0x5cedc1(0xf7)],_0x32e426);return await _0x6179de[_0x5cedc1(0xe5)]();};
|